devextreme 18.1.13 → 18.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animation/easing.js +3 -3
- package/animation/frame.d.ts +3 -3
- package/animation/frame.js +3 -3
- package/animation/fx.d.ts +3 -3
- package/animation/fx.js +4 -4
- package/animation/position.js +3 -3
- package/animation/presets/presets.js +3 -3
- package/animation/presets.d.ts +3 -3
- package/animation/presets.js +3 -3
- package/animation/transition_executor/transition_executor.js +3 -3
- package/animation/transition_executor.d.ts +3 -3
- package/animation/transition_executor.js +3 -3
- package/animation/translator.js +3 -3
- package/aspnet.js +3 -3
- package/bundles/dx.all.d.ts +3 -3
- package/bundles/modules/core.js +3 -3
- package/bundles/modules/data.js +3 -3
- package/bundles/modules/data.odata.js +3 -3
- package/bundles/modules/framework.js +3 -3
- package/bundles/modules/ui.js +3 -3
- package/bundles/modules/viz.js +3 -3
- package/client_exporter/excel_creator.js +3 -3
- package/client_exporter/excel_format_converter.js +3 -3
- package/client_exporter/file_saver.js +3 -3
- package/client_exporter/image_creator.js +3 -3
- package/client_exporter/pdf_creator.js +3 -3
- package/client_exporter/svg_creator.js +3 -3
- package/client_exporter.js +3 -3
- package/color.js +3 -3
- package/core/action.js +3 -3
- package/core/class.js +3 -3
- package/core/component.js +3 -3
- package/core/component_registrator.js +3 -3
- package/core/component_registrator_callbacks.js +3 -3
- package/core/config.d.ts +3 -3
- package/core/config.js +3 -3
- package/core/devices.d.ts +3 -3
- package/core/devices.js +3 -3
- package/core/dom_adapter.js +3 -3
- package/core/dom_component.js +3 -3
- package/core/element_data.js +3 -3
- package/core/errors.js +3 -3
- package/core/events_mixin.js +3 -3
- package/core/events_strategy.js +3 -3
- package/core/guid.d.ts +3 -3
- package/core/guid.js +3 -3
- package/core/http_request.js +3 -3
- package/core/memorized_callbacks.js +3 -3
- package/core/polyfills/promise.js +3 -3
- package/core/polyfills/weak_map.js +3 -3
- package/core/remove_event.js +3 -3
- package/core/renderer.js +3 -3
- package/core/renderer_base.js +3 -3
- package/core/utils/ajax.js +3 -3
- package/core/utils/array.js +3 -3
- package/core/utils/browser.js +3 -3
- package/core/utils/call_once.js +3 -3
- package/core/utils/callbacks.js +3 -3
- package/core/utils/common.js +3 -3
- package/core/utils/console.js +3 -3
- package/core/utils/data.js +3 -3
- package/core/utils/date.js +3 -3
- package/core/utils/date_serialization.js +3 -3
- package/core/utils/deferred.js +3 -3
- package/core/utils/dependency_injector.js +3 -3
- package/core/utils/dom.js +3 -3
- package/core/utils/error.js +3 -3
- package/core/utils/extend.js +3 -3
- package/core/utils/html_parser.js +3 -3
- package/core/utils/icon.js +3 -3
- package/core/utils/inflector.js +3 -3
- package/core/utils/iterator.js +3 -3
- package/core/utils/locker.js +3 -3
- package/core/utils/math.js +3 -3
- package/core/utils/object.js +3 -3
- package/core/utils/position.js +3 -3
- package/core/utils/public_component.js +3 -3
- package/core/utils/queue.js +3 -3
- package/core/utils/ready_callbacks.js +3 -3
- package/core/utils/resize_callbacks.js +3 -3
- package/core/utils/selection_filter.js +3 -3
- package/core/utils/size.js +3 -3
- package/core/utils/storage.js +3 -3
- package/core/utils/string.js +3 -3
- package/core/utils/style.js +3 -3
- package/core/utils/support.js +3 -3
- package/core/utils/svg.js +3 -3
- package/core/utils/type.js +3 -3
- package/core/utils/variable_wrapper.js +3 -3
- package/core/utils/version.js +3 -3
- package/core/utils/view_port.js +3 -3
- package/core/utils/window.js +3 -3
- package/core/version.js +4 -4
- package/data/abstract_store.js +3 -3
- package/data/array_query.js +5 -4
- package/data/array_store.d.ts +3 -3
- package/data/array_store.js +3 -3
- package/data/custom_store.d.ts +3 -3
- package/data/custom_store.js +3 -3
- package/data/data_source/data_source.js +3 -3
- package/data/data_source.d.ts +3 -3
- package/data/data_source.js +3 -3
- package/data/endpoint_selector.d.ts +3 -3
- package/data/endpoint_selector.js +3 -3
- package/data/errors.d.ts +3 -3
- package/data/errors.js +3 -3
- package/data/local_store.d.ts +3 -3
- package/data/local_store.js +3 -3
- package/data/odata/context.d.ts +3 -3
- package/data/odata/context.js +3 -3
- package/data/odata/mixins.js +3 -3
- package/data/odata/query_adapter.js +3 -3
- package/data/odata/store.d.ts +3 -3
- package/data/odata/store.js +3 -3
- package/data/odata/utils.d.ts +3 -3
- package/data/odata/utils.js +3 -3
- package/data/proxy_url_formatter.js +3 -3
- package/data/query.d.ts +3 -3
- package/data/query.js +3 -3
- package/data/query_adapters.js +3 -3
- package/data/remote_query.js +3 -3
- package/data/store_helper.js +3 -3
- package/data/utils.d.ts +3 -3
- package/data/utils.js +3 -3
- package/data_helper.js +3 -3
- package/dist/css/dx.android5.light.css +3 -3
- package/dist/css/dx.carmine.compact.css +3 -3
- package/dist/css/dx.carmine.css +3 -3
- package/dist/css/dx.common.css +3 -3
- package/dist/css/dx.contrast.compact.css +3 -3
- package/dist/css/dx.contrast.css +3 -3
- package/dist/css/dx.dark.compact.css +3 -3
- package/dist/css/dx.dark.css +3 -3
- package/dist/css/dx.darkmoon.compact.css +3 -3
- package/dist/css/dx.darkmoon.css +3 -3
- package/dist/css/dx.darkviolet.compact.css +3 -3
- package/dist/css/dx.darkviolet.css +3 -3
- package/dist/css/dx.greenmist.compact.css +3 -3
- package/dist/css/dx.greenmist.css +3 -3
- package/dist/css/dx.ios7.default.css +3 -3
- package/dist/css/dx.light.compact.css +3 -3
- package/dist/css/dx.light.css +3 -3
- package/dist/css/dx.material.blue.dark.css +3 -3
- package/dist/css/dx.material.blue.light.css +3 -3
- package/dist/css/dx.material.lime.dark.css +3 -3
- package/dist/css/dx.material.lime.light.css +3 -3
- package/dist/css/dx.material.orange.dark.css +3 -3
- package/dist/css/dx.material.orange.light.css +3 -3
- package/dist/css/dx.material.purple.dark.css +3 -3
- package/dist/css/dx.material.purple.light.css +3 -3
- package/dist/css/dx.material.teal.dark.css +3 -3
- package/dist/css/dx.material.teal.light.css +3 -3
- package/dist/css/dx.softblue.compact.css +3 -3
- package/dist/css/dx.softblue.css +3 -3
- package/dist/css/dx.spa.css +3 -3
- package/dist/css/dx.win10.black.css +3 -3
- package/dist/css/dx.win10.white.css +3 -3
- package/dist/css/dx.win8.black.css +3 -3
- package/dist/css/dx.win8.white.css +3 -3
- package/dist/js/dx.all.debug.js +54 -48
- package/dist/js/dx.all.js +8 -8
- package/dist/js/dx.aspnet.mvc.js +3 -3
- package/dist/js/dx.mobile.debug.js +54 -48
- package/dist/js/dx.mobile.js +41 -41
- package/dist/js/dx.viz-web.debug.js +54 -48
- package/dist/js/dx.viz-web.js +8 -8
- package/dist/js/dx.viz.debug.js +54 -48
- package/dist/js/dx.viz.js +9 -9
- package/dist/js/dx.web.debug.js +54 -48
- package/dist/js/dx.web.js +23 -23
- package/dist/js/localization/dx.messages.cs.js +3 -3
- package/dist/js/localization/dx.messages.de.js +3 -3
- package/dist/js/localization/dx.messages.el.js +3 -3
- package/dist/js/localization/dx.messages.en.js +3 -3
- package/dist/js/localization/dx.messages.es.js +3 -3
- package/dist/js/localization/dx.messages.fi.js +3 -3
- package/dist/js/localization/dx.messages.fr.js +3 -3
- package/dist/js/localization/dx.messages.it.js +3 -3
- package/dist/js/localization/dx.messages.ja.js +3 -3
- package/dist/js/localization/dx.messages.nl.js +3 -3
- package/dist/js/localization/dx.messages.pt.js +3 -3
- package/dist/js/localization/dx.messages.ru.js +3 -3
- package/dist/js/localization/dx.messages.sv.js +3 -3
- package/dist/js/localization/dx.messages.zh.js +3 -3
- package/dist/js/vectormap-utils/dx.vectormaputils.debug.js +3 -3
- package/dist/js/vectormap-utils/dx.vectormaputils.js +3 -3
- package/dist/js/vectormap-utils/dx.vectormaputils.node.js +3 -3
- package/dist/ts/dx.all.d.ts +3 -3
- package/dist/ts/dx.all.legacy.d.ts +3 -3
- package/docEnums.js +3 -3
- package/events/click.d.ts +3 -3
- package/events/click.js +3 -3
- package/events/contextmenu.d.ts +3 -3
- package/events/contextmenu.js +3 -3
- package/events/core/emitter.feedback.js +3 -3
- package/events/core/emitter.js +3 -3
- package/events/core/emitter_registrator.js +3 -3
- package/events/core/event_registrator.js +3 -3
- package/events/core/event_registrator_callbacks.js +3 -3
- package/events/core/events_engine.js +3 -3
- package/events/core/hook_touch_props.js +3 -3
- package/events/core/wheel.js +3 -3
- package/events/core.js +3 -3
- package/events/dblclick.d.ts +3 -3
- package/events/dblclick.js +3 -3
- package/events/double_click.js +3 -3
- package/events/drag.d.ts +3 -3
- package/events/drag.js +3 -3
- package/events/gesture/emitter.gesture.js +3 -3
- package/events/gesture/swipeable.js +3 -3
- package/events/hold.d.ts +3 -3
- package/events/hold.js +3 -3
- package/events/hover.d.ts +3 -3
- package/events/hover.js +3 -3
- package/events/pointer/base.js +3 -3
- package/events/pointer/mouse.js +3 -3
- package/events/pointer/mouse_and_touch.js +3 -3
- package/events/pointer/mspointer.js +3 -3
- package/events/pointer/observer.js +3 -3
- package/events/pointer/touch.js +3 -3
- package/events/pointer.d.ts +3 -3
- package/events/pointer.js +3 -3
- package/events/swipe.d.ts +3 -3
- package/events/swipe.js +3 -3
- package/events/transform.d.ts +3 -3
- package/events/transform.js +3 -3
- package/events/utils.js +3 -3
- package/events.d.ts +3 -3
- package/events.js +3 -3
- package/exporter.js +3 -3
- package/format_helper.js +3 -3
- package/framework/action_executors.js +3 -3
- package/framework/application.js +3 -3
- package/framework/browser_adapters.js +3 -3
- package/framework/command.d.ts +3 -3
- package/framework/command.js +3 -3
- package/framework/command_mapping.js +3 -3
- package/framework/errors.js +3 -3
- package/framework/html/command_container.d.ts +3 -3
- package/framework/html/command_container.js +3 -3
- package/framework/html/command_manager.js +3 -3
- package/framework/html/html_application.d.ts +3 -3
- package/framework/html/html_application.js +3 -3
- package/framework/html/layout_controller.js +3 -3
- package/framework/html/markup_component.js +3 -3
- package/framework/html/presets.js +3 -3
- package/framework/html/view_engine.js +3 -3
- package/framework/html/view_engine_components.d.ts +3 -3
- package/framework/html/view_engine_components.js +3 -3
- package/framework/html/widget_command_adapters.js +3 -3
- package/framework/navigation_devices.js +3 -3
- package/framework/navigation_manager.js +3 -3
- package/framework/router.d.ts +3 -3
- package/framework/router.js +3 -3
- package/framework/state_manager.d.ts +3 -3
- package/framework/state_manager.js +3 -3
- package/framework/utils.js +3 -3
- package/framework/view_cache.d.ts +3 -3
- package/framework/view_cache.js +3 -3
- package/integration/angular/action_executors.js +3 -3
- package/integration/angular/component_registrator.js +3 -3
- package/integration/angular/components.js +3 -3
- package/integration/angular/event_registrator.js +3 -3
- package/integration/angular/module.js +3 -3
- package/integration/angular/template.js +3 -3
- package/integration/angular.js +3 -3
- package/integration/jquery/ajax.js +3 -3
- package/integration/jquery/component_registrator.js +3 -3
- package/integration/jquery/deferred.js +3 -3
- package/integration/jquery/easing.js +3 -3
- package/integration/jquery/element.js +3 -3
- package/integration/jquery/element_data.js +3 -3
- package/integration/jquery/events.js +3 -3
- package/integration/jquery/hold_ready.js +3 -3
- package/integration/jquery/hooks.js +3 -3
- package/integration/jquery/renderer.js +3 -3
- package/integration/jquery/use_jquery.js +3 -3
- package/integration/jquery.d.ts +3 -3
- package/integration/jquery.js +3 -3
- package/integration/knockout/clean_node.js +3 -3
- package/integration/knockout/clean_node_old.js +3 -3
- package/integration/knockout/component_registrator.js +3 -3
- package/integration/knockout/components.js +3 -3
- package/integration/knockout/event_registrator.js +3 -3
- package/integration/knockout/template.js +3 -3
- package/integration/knockout/utils.js +3 -3
- package/integration/knockout/validation.js +3 -3
- package/integration/knockout/variable_wrapper_utils.js +3 -3
- package/integration/knockout.js +3 -3
- package/localization/cldr-data/parentLocales.js +49 -44
- package/localization/core.js +3 -3
- package/localization/currency.js +3 -3
- package/localization/date.js +3 -3
- package/localization/default_date_names.js +3 -3
- package/localization/default_messages.js +3 -3
- package/localization/globalize/core.js +3 -3
- package/localization/globalize/currency.js +3 -3
- package/localization/globalize/date.js +3 -3
- package/localization/globalize/message.js +3 -3
- package/localization/globalize/number.js +3 -3
- package/localization/language_codes.js +3 -3
- package/localization/ldml/date.format.js +3 -3
- package/localization/ldml/date.formatter.js +3 -3
- package/localization/ldml/date.parser.js +3 -3
- package/localization/ldml/number.js +3 -3
- package/localization/message.js +3 -3
- package/localization/number.js +3 -3
- package/localization.d.ts +3 -3
- package/localization.js +3 -3
- package/mobile/hide_top_overlay.d.ts +3 -3
- package/mobile/hide_top_overlay.js +3 -3
- package/mobile/init_mobile_viewport/init_mobile_viewport.js +3 -3
- package/mobile/init_mobile_viewport.d.ts +3 -3
- package/mobile/init_mobile_viewport.js +3 -3
- package/mobile/process_hardware_back_button.d.ts +3 -3
- package/mobile/process_hardware_back_button.js +3 -3
- package/package.json +2 -2
- package/ui/accordion.d.ts +3 -3
- package/ui/accordion.js +3 -3
- package/ui/action_sheet.d.ts +3 -3
- package/ui/action_sheet.js +3 -3
- package/ui/autocomplete.d.ts +3 -3
- package/ui/autocomplete.js +3 -3
- package/ui/box.d.ts +3 -3
- package/ui/box.js +3 -3
- package/ui/button.d.ts +3 -3
- package/ui/button.js +3 -3
- package/ui/calendar/ui.calendar.base_view.js +3 -3
- package/ui/calendar/ui.calendar.js +3 -3
- package/ui/calendar/ui.calendar.navigator.js +3 -3
- package/ui/calendar/ui.calendar.views.js +3 -3
- package/ui/calendar.d.ts +3 -3
- package/ui/calendar.js +3 -3
- package/ui/check_box.d.ts +3 -3
- package/ui/check_box.js +3 -3
- package/ui/collection/item.js +3 -3
- package/ui/collection/ui.collection_widget.async.js +3 -3
- package/ui/collection/ui.collection_widget.base.js +3 -3
- package/ui/collection/ui.collection_widget.edit.js +3 -3
- package/ui/collection/ui.collection_widget.edit.strategy.js +3 -3
- package/ui/collection/ui.collection_widget.edit.strategy.plain.js +3 -3
- package/ui/color_box/color_box.js +3 -3
- package/ui/color_box/color_view.js +3 -3
- package/ui/color_box.d.ts +3 -3
- package/ui/color_box.js +3 -3
- package/ui/context_menu/ui.context_menu.js +3 -3
- package/ui/context_menu/ui.menu_base.edit.strategy.js +3 -3
- package/ui/context_menu/ui.menu_base.js +3 -3
- package/ui/context_menu.d.ts +3 -3
- package/ui/context_menu.js +3 -3
- package/ui/data_grid/aggregate_calculator.js +3 -3
- package/ui/data_grid/ui.data_grid.adaptivity.js +3 -3
- package/ui/data_grid/ui.data_grid.base.js +3 -3
- package/ui/data_grid/ui.data_grid.column_chooser.js +3 -3
- package/ui/data_grid/ui.data_grid.column_fixing.js +3 -3
- package/ui/data_grid/ui.data_grid.column_headers.js +3 -3
- package/ui/data_grid/ui.data_grid.columns_controller.js +3 -3
- package/ui/data_grid/ui.data_grid.columns_resizing_reordering.js +3 -3
- package/ui/data_grid/ui.data_grid.context_menu.js +3 -3
- package/ui/data_grid/ui.data_grid.core.js +3 -3
- package/ui/data_grid/ui.data_grid.data_controller.js +3 -3
- package/ui/data_grid/ui.data_grid.data_source_adapter.js +3 -3
- package/ui/data_grid/ui.data_grid.editing.js +3 -3
- package/ui/data_grid/ui.data_grid.editor_factory.js +3 -3
- package/ui/data_grid/ui.data_grid.error_handling.js +3 -3
- package/ui/data_grid/ui.data_grid.export.js +3 -3
- package/ui/data_grid/ui.data_grid.filter_builder.js +3 -3
- package/ui/data_grid/ui.data_grid.filter_panel.js +3 -3
- package/ui/data_grid/ui.data_grid.filter_row.js +3 -3
- package/ui/data_grid/ui.data_grid.filter_sync.js +3 -3
- package/ui/data_grid/ui.data_grid.grid_view.js +3 -3
- package/ui/data_grid/ui.data_grid.grouping.collapsed.js +3 -3
- package/ui/data_grid/ui.data_grid.grouping.core.js +3 -3
- package/ui/data_grid/ui.data_grid.grouping.expanded.js +3 -3
- package/ui/data_grid/ui.data_grid.grouping.js +3 -3
- package/ui/data_grid/ui.data_grid.header_filter.js +3 -3
- package/ui/data_grid/ui.data_grid.header_panel.js +3 -3
- package/ui/data_grid/ui.data_grid.js +3 -3
- package/ui/data_grid/ui.data_grid.keyboard_navigation.js +3 -3
- package/ui/data_grid/ui.data_grid.master_detail.js +3 -3
- package/ui/data_grid/ui.data_grid.pager.js +3 -3
- package/ui/data_grid/ui.data_grid.rows.js +3 -3
- package/ui/data_grid/ui.data_grid.search.js +3 -3
- package/ui/data_grid/ui.data_grid.selection.js +3 -3
- package/ui/data_grid/ui.data_grid.sorting.js +3 -3
- package/ui/data_grid/ui.data_grid.state_storing.js +3 -3
- package/ui/data_grid/ui.data_grid.summary.js +3 -3
- package/ui/data_grid/ui.data_grid.validating.js +3 -3
- package/ui/data_grid/ui.data_grid.virtual_columns.js +3 -3
- package/ui/data_grid/ui.data_grid.virtual_scrolling.js +3 -3
- package/ui/data_grid.d.ts +3 -3
- package/ui/data_grid.js +3 -3
- package/ui/date_box/ui.date_box.js +3 -3
- package/ui/date_box/ui.date_box.strategy.calendar.js +3 -3
- package/ui/date_box/ui.date_box.strategy.calendar_with_time.js +3 -3
- package/ui/date_box/ui.date_box.strategy.date_view.js +3 -3
- package/ui/date_box/ui.date_box.strategy.js +3 -3
- package/ui/date_box/ui.date_box.strategy.list.js +3 -3
- package/ui/date_box/ui.date_box.strategy.native.js +3 -3
- package/ui/date_box/ui.date_utils.js +3 -3
- package/ui/date_box/ui.date_view.js +3 -3
- package/ui/date_box/ui.date_view_roller.js +3 -3
- package/ui/date_box/ui.time_view.js +3 -3
- package/ui/date_box.d.ts +3 -3
- package/ui/date_box.js +3 -3
- package/ui/defer_rendering.d.ts +3 -3
- package/ui/defer_rendering.js +3 -3
- package/ui/dialog.d.ts +3 -3
- package/ui/dialog.js +3 -3
- package/ui/draggable.js +3 -3
- package/ui/drop_down_box.d.ts +3 -3
- package/ui/drop_down_box.js +3 -3
- package/ui/drop_down_editor/ui.drop_down_editor.js +3 -3
- package/ui/drop_down_editor/ui.drop_down_list.js +3 -3
- package/ui/drop_down_menu.js +3 -3
- package/ui/editor/editor.js +3 -3
- package/ui/editor/ui.data_expression.js +3 -3
- package/ui/file_uploader.d.ts +3 -3
- package/ui/file_uploader.js +3 -3
- package/ui/filter_builder/between.js +3 -3
- package/ui/filter_builder/filter_builder.js +3 -3
- package/ui/filter_builder/ui.filter_operations_dictionary.js +3 -3
- package/ui/filter_builder/utils.js +3 -3
- package/ui/filter_builder.d.ts +3 -3
- package/ui/filter_builder.js +3 -3
- package/ui/form/instance_storage.js +3 -3
- package/ui/form/ui.form.js +3 -3
- package/ui/form/ui.form.layout_manager.js +3 -3
- package/ui/form.d.ts +3 -3
- package/ui/form.js +3 -3
- package/ui/gallery.d.ts +3 -3
- package/ui/gallery.js +3 -3
- package/ui/grid_core/ui.grid_core.adaptivity.js +3 -3
- package/ui/grid_core/ui.grid_core.column_chooser.js +3 -3
- package/ui/grid_core/ui.grid_core.column_fixing.js +3 -3
- package/ui/grid_core/ui.grid_core.column_headers.js +3 -3
- package/ui/grid_core/ui.grid_core.column_state_mixin.js +3 -3
- package/ui/grid_core/ui.grid_core.columns_controller.js +3 -3
- package/ui/grid_core/ui.grid_core.columns_resizing_reordering.js +3 -3
- package/ui/grid_core/ui.grid_core.columns_view.js +3 -3
- package/ui/grid_core/ui.grid_core.context_menu.js +3 -3
- package/ui/grid_core/ui.grid_core.data_controller.js +3 -3
- package/ui/grid_core/ui.grid_core.data_source_adapter.js +3 -3
- package/ui/grid_core/ui.grid_core.editing.js +3 -3
- package/ui/grid_core/ui.grid_core.editor_factory.js +3 -3
- package/ui/grid_core/ui.grid_core.error_handling.js +3 -3
- package/ui/grid_core/ui.grid_core.export_mixin.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_builder.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_custom_operations.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_panel.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_row.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_sync.js +3 -3
- package/ui/grid_core/ui.grid_core.grid_view.js +3 -3
- package/ui/grid_core/ui.grid_core.header_filter.js +3 -3
- package/ui/grid_core/ui.grid_core.header_filter_core.js +3 -3
- package/ui/grid_core/ui.grid_core.header_panel.js +3 -3
- package/ui/grid_core/ui.grid_core.keyboard_navigation.js +3 -3
- package/ui/grid_core/ui.grid_core.master_detail.js +3 -3
- package/ui/grid_core/ui.grid_core.modules.js +3 -3
- package/ui/grid_core/ui.grid_core.pager.js +3 -3
- package/ui/grid_core/ui.grid_core.rows.js +3 -3
- package/ui/grid_core/ui.grid_core.search.js +3 -3
- package/ui/grid_core/ui.grid_core.selection.js +3 -3
- package/ui/grid_core/ui.grid_core.sorting.js +3 -3
- package/ui/grid_core/ui.grid_core.sorting_mixin.js +3 -3
- package/ui/grid_core/ui.grid_core.state_storing.js +3 -3
- package/ui/grid_core/ui.grid_core.state_storing_core.js +3 -3
- package/ui/grid_core/ui.grid_core.utils.js +3 -3
- package/ui/grid_core/ui.grid_core.validating.js +3 -3
- package/ui/grid_core/ui.grid_core.virtual_columns.js +3 -3
- package/ui/grid_core/ui.grid_core.virtual_columns_core.js +3 -3
- package/ui/grid_core/ui.grid_core.virtual_scrolling.js +3 -3
- package/ui/grid_core/ui.grid_core.virtual_scrolling_core.js +3 -3
- package/ui/hierarchical_collection/ui.data_adapter.js +3 -3
- package/ui/hierarchical_collection/ui.data_converter.js +3 -3
- package/ui/hierarchical_collection/ui.hierarchical_collection_widget.js +3 -3
- package/ui/list/item.js +3 -3
- package/ui/list/ui.list.base.js +3 -3
- package/ui/list/ui.list.edit.decorator.context.js +3 -3
- package/ui/list/ui.list.edit.decorator.js +3 -3
- package/ui/list/ui.list.edit.decorator.reorder.js +3 -3
- package/ui/list/ui.list.edit.decorator.selection.js +3 -3
- package/ui/list/ui.list.edit.decorator.static.js +3 -3
- package/ui/list/ui.list.edit.decorator.swipe.js +3 -3
- package/ui/list/ui.list.edit.decorator.switchable.button.js +3 -3
- package/ui/list/ui.list.edit.decorator.switchable.js +3 -3
- package/ui/list/ui.list.edit.decorator.switchable.slide.js +3 -3
- package/ui/list/ui.list.edit.decorator_menu_helper.js +3 -3
- package/ui/list/ui.list.edit.decorator_registry.js +3 -3
- package/ui/list/ui.list.edit.js +3 -3
- package/ui/list/ui.list.edit.provider.js +3 -3
- package/ui/list/ui.list.edit.search.js +3 -3
- package/ui/list/ui.list.edit.strategy.grouped.js +3 -3
- package/ui/list.d.ts +3 -3
- package/ui/list.js +3 -3
- package/ui/load_indicator.d.ts +3 -3
- package/ui/load_indicator.js +3 -3
- package/ui/load_panel.d.ts +3 -3
- package/ui/load_panel.js +3 -3
- package/ui/lookup.d.ts +3 -3
- package/ui/lookup.js +3 -3
- package/ui/map/provider.dynamic.bing.js +3 -3
- package/ui/map/provider.dynamic.google.js +3 -3
- package/ui/map/provider.dynamic.js +3 -3
- package/ui/map/provider.google_static.js +3 -3
- package/ui/map/provider.js +3 -3
- package/ui/map.d.ts +3 -3
- package/ui/map.js +3 -3
- package/ui/menu/ui.menu.js +3 -3
- package/ui/menu/ui.submenu.js +3 -3
- package/ui/menu.d.ts +3 -3
- package/ui/menu.js +3 -3
- package/ui/multi_view.d.ts +3 -3
- package/ui/multi_view.js +3 -3
- package/ui/nav_bar/item.js +3 -3
- package/ui/nav_bar.d.ts +3 -3
- package/ui/nav_bar.js +3 -3
- package/ui/notify.d.ts +3 -3
- package/ui/notify.js +3 -3
- package/ui/number_box/number_box.base.js +3 -3
- package/ui/number_box/number_box.caret.js +3 -3
- package/ui/number_box/number_box.js +3 -3
- package/ui/number_box/number_box.mask.js +3 -3
- package/ui/number_box/number_box.spin.js +3 -3
- package/ui/number_box.d.ts +3 -3
- package/ui/number_box.js +3 -3
- package/ui/overlay/ui.overlay.js +3 -3
- package/ui/overlay/utils.js +3 -3
- package/ui/overlay.d.ts +3 -3
- package/ui/overlay.js +3 -3
- package/ui/pager.js +3 -3
- package/ui/panorama/item.js +3 -3
- package/ui/panorama.d.ts +3 -3
- package/ui/panorama.js +3 -3
- package/ui/pivot/ui.pivot_tabs.js +3 -3
- package/ui/pivot.d.ts +3 -3
- package/ui/pivot.js +3 -3
- package/ui/pivot_grid/data_source.d.ts +3 -3
- package/ui/pivot_grid/data_source.js +3 -3
- package/ui/pivot_grid/local_store.js +3 -3
- package/ui/pivot_grid/remote_store.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.area_item.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.chart_integration.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.data_area.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.data_controller.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.export.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.field_chooser.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.field_chooser_base.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.fields_area.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.headers_area.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.summary_display_modes.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.utils.js +3 -3
- package/ui/pivot_grid/ui.sortable.js +3 -3
- package/ui/pivot_grid/xmla_store/xmla_store.js +3 -3
- package/ui/pivot_grid/xmla_store.d.ts +3 -3
- package/ui/pivot_grid/xmla_store.js +3 -3
- package/ui/pivot_grid.d.ts +3 -3
- package/ui/pivot_grid.js +3 -3
- package/ui/pivot_grid_field_chooser.d.ts +3 -3
- package/ui/pivot_grid_field_chooser.js +3 -3
- package/ui/popover.d.ts +3 -3
- package/ui/popover.js +3 -3
- package/ui/popup.d.ts +3 -3
- package/ui/popup.js +3 -3
- package/ui/progress_bar.d.ts +3 -3
- package/ui/progress_bar.js +3 -3
- package/ui/radio_group/radio_button.js +3 -3
- package/ui/radio_group/radio_group.js +3 -3
- package/ui/radio_group.d.ts +3 -3
- package/ui/radio_group.js +3 -3
- package/ui/range_slider.d.ts +3 -3
- package/ui/range_slider.js +3 -3
- package/ui/resizable.d.ts +3 -3
- package/ui/resizable.js +3 -3
- package/ui/responsive_box.d.ts +3 -3
- package/ui/responsive_box.js +3 -3
- package/ui/scheduler/ui.loading.js +3 -3
- package/ui/scheduler/ui.scheduler.agenda.js +3 -3
- package/ui/scheduler/ui.scheduler.appointment.js +3 -3
- package/ui/scheduler/ui.scheduler.appointment_form.js +3 -3
- package/ui/scheduler/ui.scheduler.appointment_model.js +3 -3
- package/ui/scheduler/ui.scheduler.appointment_tooltip.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.drop_down.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.layout_manager.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.agenda.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.base.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal_month.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal_month_line.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.vertical.js +3 -3
- package/ui/scheduler/ui.scheduler.current_time_shader.horizontal.js +3 -3
- package/ui/scheduler/ui.scheduler.current_time_shader.js +3 -3
- package/ui/scheduler/ui.scheduler.current_time_shader.vertical.js +3 -3
- package/ui/scheduler/ui.scheduler.header.js +3 -3
- package/ui/scheduler/ui.scheduler.js +3 -3
- package/ui/scheduler/ui.scheduler.navigator.js +3 -3
- package/ui/scheduler/ui.scheduler.publisher_mixin.js +3 -3
- package/ui/scheduler/ui.scheduler.recurrence_editor.js +3 -3
- package/ui/scheduler/ui.scheduler.resource_manager.js +3 -3
- package/ui/scheduler/ui.scheduler.subscribes.js +3 -3
- package/ui/scheduler/ui.scheduler.table_creator.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline_day.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline_month.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline_week.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline_work_week.js +3 -3
- package/ui/scheduler/ui.scheduler.timezone_editor.js +3 -3
- package/ui/scheduler/ui.scheduler.timezones.js +3 -3
- package/ui/scheduler/ui.scheduler.timezones_data.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.horizontal.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.vertical.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.indicator.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space_day.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space_month.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space_week.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space_work_week.js +3 -3
- package/ui/scheduler/utils.recurrence.js +3 -3
- package/ui/scheduler.d.ts +3 -3
- package/ui/scheduler.js +3 -3
- package/ui/scroll_view/animator.js +3 -3
- package/ui/scroll_view/ui.events.emitter.gesture.scroll.js +3 -3
- package/ui/scroll_view/ui.scroll_view.js +3 -3
- package/ui/scroll_view/ui.scroll_view.native.pull_down.js +3 -3
- package/ui/scroll_view/ui.scroll_view.native.slide_down.js +3 -3
- package/ui/scroll_view/ui.scroll_view.native.swipe_down.js +3 -3
- package/ui/scroll_view/ui.scroll_view.simulated.js +3 -3
- package/ui/scroll_view/ui.scrollable.js +3 -3
- package/ui/scroll_view/ui.scrollable.native.js +3 -3
- package/ui/scroll_view/ui.scrollable.simulated.js +3 -3
- package/ui/scroll_view/ui.scrollbar.js +3 -3
- package/ui/scroll_view.d.ts +3 -3
- package/ui/scroll_view.js +3 -3
- package/ui/select_box.d.ts +3 -3
- package/ui/select_box.js +3 -3
- package/ui/selection/selection.js +3 -3
- package/ui/selection/selection.strategy.deferred.js +3 -3
- package/ui/selection/selection.strategy.js +3 -3
- package/ui/selection/selection.strategy.standard.js +3 -3
- package/ui/set_template_engine.d.ts +3 -3
- package/ui/set_template_engine.js +3 -3
- package/ui/shared/async_template_mixin.js +3 -3
- package/ui/shared/filtering.js +3 -3
- package/ui/shared/ui.editor_factory_mixin.js +3 -3
- package/ui/slide_out.d.ts +3 -3
- package/ui/slide_out.js +3 -3
- package/ui/slide_out_view.d.ts +3 -3
- package/ui/slide_out_view.js +3 -3
- package/ui/slider/ui.slider.js +3 -3
- package/ui/slider/ui.slider_handle.js +3 -3
- package/ui/slider.d.ts +3 -3
- package/ui/slider.js +3 -3
- package/ui/switch.d.ts +3 -3
- package/ui/switch.js +3 -3
- package/ui/tab_panel/item.js +3 -3
- package/ui/tab_panel.d.ts +3 -3
- package/ui/tab_panel.js +3 -3
- package/ui/tabs/item.js +3 -3
- package/ui/tabs.d.ts +3 -3
- package/ui/tabs.js +3 -3
- package/ui/tag_box.d.ts +3 -3
- package/ui/tag_box.js +3 -3
- package/ui/text_area.d.ts +3 -3
- package/ui/text_area.js +3 -3
- package/ui/text_box/text_box.js +3 -3
- package/ui/text_box/ui.text_editor.base.js +3 -3
- package/ui/text_box/ui.text_editor.js +3 -3
- package/ui/text_box/ui.text_editor.mask.js +3 -3
- package/ui/text_box/ui.text_editor.mask.rule.js +3 -3
- package/ui/text_box/utils.caret.js +3 -3
- package/ui/text_box.d.ts +3 -3
- package/ui/text_box.js +3 -3
- package/ui/themes.d.ts +3 -3
- package/ui/themes.js +3 -3
- package/ui/themes_callback.js +3 -3
- package/ui/tile_view.d.ts +3 -3
- package/ui/tile_view.js +3 -3
- package/ui/toast.d.ts +3 -3
- package/ui/toast.js +3 -3
- package/ui/toolbar/ui.toolbar.base.js +3 -3
- package/ui/toolbar/ui.toolbar.menu.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.action_sheet.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.drop_down_menu.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.list_base.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.list_bottom.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.list_top.js +3 -3
- package/ui/toolbar.d.ts +3 -3
- package/ui/toolbar.js +3 -3
- package/ui/tooltip/tooltip.js +3 -3
- package/ui/tooltip/ui.tooltip.js +3 -3
- package/ui/tooltip.d.ts +3 -3
- package/ui/tooltip.js +3 -3
- package/ui/track_bar.js +3 -3
- package/ui/tree_list/ui.tree_list.adaptivity.js +3 -3
- package/ui/tree_list/ui.tree_list.base.js +3 -3
- package/ui/tree_list/ui.tree_list.column_chooser.js +3 -3
- package/ui/tree_list/ui.tree_list.column_fixing.js +3 -3
- package/ui/tree_list/ui.tree_list.column_headers.js +3 -3
- package/ui/tree_list/ui.tree_list.columns_controller.js +3 -3
- package/ui/tree_list/ui.tree_list.columns_resizing_reordering.js +3 -3
- package/ui/tree_list/ui.tree_list.context_menu.js +3 -3
- package/ui/tree_list/ui.tree_list.core.js +3 -3
- package/ui/tree_list/ui.tree_list.data_controller.js +3 -3
- package/ui/tree_list/ui.tree_list.data_source_adapter.js +3 -3
- package/ui/tree_list/ui.tree_list.editing.js +3 -3
- package/ui/tree_list/ui.tree_list.editor_factory.js +3 -3
- package/ui/tree_list/ui.tree_list.error_handling.js +3 -3
- package/ui/tree_list/ui.tree_list.filter_builder.js +3 -3
- package/ui/tree_list/ui.tree_list.filter_panel.js +3 -3
- package/ui/tree_list/ui.tree_list.filter_row.js +3 -3
- package/ui/tree_list/ui.tree_list.filter_sync.js +3 -3
- package/ui/tree_list/ui.tree_list.grid_view.js +3 -3
- package/ui/tree_list/ui.tree_list.header_filter.js +3 -3
- package/ui/tree_list/ui.tree_list.header_panel.js +3 -3
- package/ui/tree_list/ui.tree_list.js +3 -3
- package/ui/tree_list/ui.tree_list.keyboard_navigation.js +3 -3
- package/ui/tree_list/ui.tree_list.master_detail.js +3 -3
- package/ui/tree_list/ui.tree_list.pager.js +3 -3
- package/ui/tree_list/ui.tree_list.rows.js +3 -3
- package/ui/tree_list/ui.tree_list.search.js +3 -3
- package/ui/tree_list/ui.tree_list.selection.js +3 -3
- package/ui/tree_list/ui.tree_list.sorting.js +3 -3
- package/ui/tree_list/ui.tree_list.state_storing.js +3 -3
- package/ui/tree_list/ui.tree_list.validating.js +3 -3
- package/ui/tree_list/ui.tree_list.virtual_columns.js +3 -3
- package/ui/tree_list/ui.tree_list.virtual_scrolling.js +3 -3
- package/ui/tree_list.d.ts +3 -3
- package/ui/tree_list.js +3 -3
- package/ui/tree_view/ui.tree_view.base.js +3 -3
- package/ui/tree_view/ui.tree_view.search.js +3 -3
- package/ui/tree_view.d.ts +3 -3
- package/ui/tree_view.js +3 -3
- package/ui/validation/default_adapter.js +3 -3
- package/ui/validation/validation_mixin.js +3 -3
- package/ui/validation_engine.d.ts +3 -3
- package/ui/validation_engine.js +4 -4
- package/ui/validation_group.d.ts +3 -3
- package/ui/validation_group.js +3 -3
- package/ui/validation_summary.d.ts +3 -3
- package/ui/validation_summary.js +3 -3
- package/ui/validator.d.ts +3 -3
- package/ui/validator.js +3 -3
- package/ui/widget/bindable_template.js +3 -3
- package/ui/widget/child_default_template.js +3 -3
- package/ui/widget/empty_template.js +3 -3
- package/ui/widget/function_template.js +3 -3
- package/ui/widget/jquery.template.js +3 -3
- package/ui/widget/selectors.js +3 -3
- package/ui/widget/ui.errors.js +3 -3
- package/ui/widget/ui.keyboard_processor.js +3 -3
- package/ui/widget/ui.search_box_mixin.js +3 -3
- package/ui/widget/ui.template_base.js +3 -3
- package/ui/widget/ui.widget.js +3 -3
- package/ui/widget/utils.ink_ripple.js +3 -3
- package/utils.d.ts +3 -3
- package/utils.js +3 -3
- package/viz/axes/axes_constants.js +3 -3
- package/viz/axes/base_axis.js +3 -3
- package/viz/axes/datetime_breaks.js +3 -3
- package/viz/axes/polar_axes.js +3 -3
- package/viz/axes/smart_formatter.js +3 -3
- package/viz/axes/tick.js +3 -3
- package/viz/axes/tick_generator.js +3 -3
- package/viz/axes/xy_axes.js +3 -3
- package/viz/bar_gauge.d.ts +3 -3
- package/viz/bar_gauge.js +3 -3
- package/viz/bullet.d.ts +3 -3
- package/viz/bullet.js +3 -3
- package/viz/chart.d.ts +3 -3
- package/viz/chart.js +3 -3
- package/viz/chart_components/advanced_chart.js +3 -3
- package/viz/chart_components/base_chart.js +3 -3
- package/viz/chart_components/crosshair.js +3 -3
- package/viz/chart_components/header_block.js +3 -3
- package/viz/chart_components/layout_manager.js +3 -3
- package/viz/chart_components/multi_axes_synchronizer.js +3 -3
- package/viz/chart_components/scroll_bar.js +3 -3
- package/viz/chart_components/shutter_zoom.js +3 -3
- package/viz/chart_components/tracker.js +3 -3
- package/viz/circular_gauge.d.ts +3 -3
- package/viz/circular_gauge.js +3 -3
- package/viz/components/chart_theme_manager.js +3 -3
- package/viz/components/consts.js +3 -3
- package/viz/components/data_validator.js +3 -3
- package/viz/components/legend.js +3 -3
- package/viz/components/parse_utils.js +3 -3
- package/viz/components/tracker.js +3 -3
- package/viz/core/base_theme_manager.js +3 -3
- package/viz/core/base_widget.js +3 -3
- package/viz/core/data_source.js +3 -3
- package/viz/core/errors_warnings.js +3 -3
- package/viz/core/export.js +3 -3
- package/viz/core/format.js +3 -3
- package/viz/core/helpers.js +3 -3
- package/viz/core/layout.js +3 -3
- package/viz/core/layout_element.js +3 -3
- package/viz/core/loading_indicator.js +3 -3
- package/viz/core/renderers/animation.js +3 -3
- package/viz/core/renderers/renderer.js +3 -3
- package/viz/core/series_family.js +3 -3
- package/viz/core/themes/android.js +3 -3
- package/viz/core/themes/generic.carmine.js +3 -3
- package/viz/core/themes/generic.contrast.compact.js +3 -3
- package/viz/core/themes/generic.contrast.js +3 -3
- package/viz/core/themes/generic.dark.compact.js +3 -3
- package/viz/core/themes/generic.dark.js +3 -3
- package/viz/core/themes/generic.darkmoon.js +3 -3
- package/viz/core/themes/generic.darkviolet.js +3 -3
- package/viz/core/themes/generic.greenmist.js +3 -3
- package/viz/core/themes/generic.light.compact.js +3 -3
- package/viz/core/themes/generic.light.js +3 -3
- package/viz/core/themes/generic.softblue.js +3 -3
- package/viz/core/themes/ios.js +3 -3
- package/viz/core/themes/material.js +3 -3
- package/viz/core/themes/win.js +3 -3
- package/viz/core/title.js +3 -3
- package/viz/core/tooltip.js +3 -3
- package/viz/core/utils.js +3 -3
- package/viz/export.d.ts +3 -3
- package/viz/export.js +3 -3
- package/viz/funnel/funnel.js +3 -3
- package/viz/funnel/item.js +3 -3
- package/viz/funnel/label.js +3 -3
- package/viz/funnel/tiling.funnel.js +3 -3
- package/viz/funnel/tiling.js +3 -3
- package/viz/funnel/tiling.pyramid.js +3 -3
- package/viz/funnel/tooltip.js +3 -3
- package/viz/funnel/tracker.js +3 -3
- package/viz/funnel.d.ts +3 -3
- package/viz/funnel.js +3 -3
- package/viz/gauges/bar_gauge.js +3 -3
- package/viz/gauges/base_gauge.js +3 -3
- package/viz/gauges/base_indicators.js +3 -3
- package/viz/gauges/base_range_container.js +3 -3
- package/viz/gauges/circular_gauge.js +3 -3
- package/viz/gauges/circular_indicators.js +3 -3
- package/viz/gauges/circular_range_container.js +3 -3
- package/viz/gauges/common.js +3 -3
- package/viz/gauges/linear_gauge.js +3 -3
- package/viz/gauges/linear_indicators.js +3 -3
- package/viz/gauges/linear_range_container.js +3 -3
- package/viz/gauges/theme_manager.js +3 -3
- package/viz/gauges/tracker.js +3 -3
- package/viz/linear_gauge.d.ts +3 -3
- package/viz/linear_gauge.js +3 -3
- package/viz/palette.d.ts +3 -3
- package/viz/palette.js +3 -3
- package/viz/pie_chart.d.ts +3 -3
- package/viz/pie_chart.js +3 -3
- package/viz/polar_chart.d.ts +3 -3
- package/viz/polar_chart.js +3 -3
- package/viz/range_selector/common.js +3 -3
- package/viz/range_selector/range_selector.js +3 -3
- package/viz/range_selector/range_view.js +3 -3
- package/viz/range_selector/series_data_source.js +3 -3
- package/viz/range_selector/slider.js +3 -3
- package/viz/range_selector/slider_marker.js +3 -3
- package/viz/range_selector/sliders_controller.js +3 -3
- package/viz/range_selector/theme_manager.js +3 -3
- package/viz/range_selector/tracker.js +3 -3
- package/viz/range_selector.d.ts +3 -3
- package/viz/range_selector.js +3 -3
- package/viz/series/area_series.js +3 -3
- package/viz/series/bar_series.js +3 -3
- package/viz/series/base_series.js +3 -3
- package/viz/series/bubble_series.js +3 -3
- package/viz/series/financial_series.js +3 -3
- package/viz/series/helpers/range_data_calculator.js +3 -3
- package/viz/series/line_series.js +3 -3
- package/viz/series/pie_series.js +3 -3
- package/viz/series/points/bar_point.js +3 -3
- package/viz/series/points/base_point.js +3 -3
- package/viz/series/points/bubble_point.js +3 -3
- package/viz/series/points/candlestick_point.js +3 -3
- package/viz/series/points/label.js +3 -3
- package/viz/series/points/pie_point.js +3 -3
- package/viz/series/points/polar_point.js +3 -3
- package/viz/series/points/range_bar_point.js +3 -3
- package/viz/series/points/range_symbol_point.js +3 -3
- package/viz/series/points/stock_point.js +3 -3
- package/viz/series/points/symbol_point.js +3 -3
- package/viz/series/range_series.js +3 -3
- package/viz/series/scatter_series.js +3 -3
- package/viz/series/stacked_series.js +3 -3
- package/viz/sparkline.d.ts +3 -3
- package/viz/sparkline.js +3 -3
- package/viz/sparklines/base_sparkline.js +3 -3
- package/viz/sparklines/bullet.js +3 -3
- package/viz/sparklines/sparkline.js +3 -3
- package/viz/themes.d.ts +3 -3
- package/viz/themes.js +3 -3
- package/viz/translators/category_translator.js +3 -3
- package/viz/translators/datetime_translator.js +3 -3
- package/viz/translators/interval_translator.js +3 -3
- package/viz/translators/logarithmic_translator.js +3 -3
- package/viz/translators/numeric_translator.js +3 -3
- package/viz/translators/range.js +3 -3
- package/viz/translators/translator1d.js +3 -3
- package/viz/translators/translator2d.js +3 -3
- package/viz/tree_map/api.js +3 -3
- package/viz/tree_map/colorizing.discrete.js +3 -3
- package/viz/tree_map/colorizing.gradient.js +3 -3
- package/viz/tree_map/colorizing.js +3 -3
- package/viz/tree_map/colorizing.range.js +3 -3
- package/viz/tree_map/common.js +3 -3
- package/viz/tree_map/drilldown.js +3 -3
- package/viz/tree_map/hover.js +3 -3
- package/viz/tree_map/node.js +3 -3
- package/viz/tree_map/plain_data_source.js +3 -3
- package/viz/tree_map/selection.js +3 -3
- package/viz/tree_map/states.js +3 -3
- package/viz/tree_map/tiling.js +3 -3
- package/viz/tree_map/tiling.rotated_slice_and_dice.js +3 -3
- package/viz/tree_map/tiling.slice_and_dice.js +3 -3
- package/viz/tree_map/tiling.squarified.base.js +3 -3
- package/viz/tree_map/tiling.squarified.js +3 -3
- package/viz/tree_map/tiling.strip.js +3 -3
- package/viz/tree_map/tooltip.js +3 -3
- package/viz/tree_map/tracker.js +3 -3
- package/viz/tree_map/tree_map.base.js +3 -3
- package/viz/tree_map/tree_map.js +3 -3
- package/viz/tree_map.d.ts +3 -3
- package/viz/tree_map.js +3 -3
- package/viz/utils.d.ts +3 -3
- package/viz/utils.js +3 -3
- package/viz/vector_map/control_bar.js +3 -3
- package/viz/vector_map/data_exchanger.js +3 -3
- package/viz/vector_map/event_emitter.js +3 -3
- package/viz/vector_map/gesture_handler.js +3 -3
- package/viz/vector_map/layout.js +3 -3
- package/viz/vector_map/legend.js +3 -3
- package/viz/vector_map/map_layer.js +3 -3
- package/viz/vector_map/projection.d.ts +3 -3
- package/viz/vector_map/projection.js +3 -3
- package/viz/vector_map/projection.main.js +3 -3
- package/viz/vector_map/theme_manager.js +3 -3
- package/viz/vector_map/tooltip_viewer.js +3 -3
- package/viz/vector_map/tracker.js +3 -3
- package/viz/vector_map/vector_map.js +3 -3
- package/viz/vector_map.d.ts +3 -3
- package/viz/vector_map.js +3 -3
package/dist/js/dx.web.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExtreme (dx.web.js)
|
|
3
|
-
* Version: 18.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 18.1.17
|
|
4
|
+
* Build date: Fri Dec 03 2021
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2012 -
|
|
6
|
+
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
|
|
8
8
|
*/
|
|
9
9
|
"use strict";!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=759)}([function(e,t,n){var i=n(1).isPlainObject,o=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];i in e&&!n||(e[i]=o)}return e},a=function e(t){t=t||{};var n=1,o=!1;for("boolean"==typeof t&&(o=t,t=arguments[1]||{},n++);n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a){var s,l=t[r],c=a[r],d=!1;"__proto__"!==r&&t!==c&&(o&&c&&(i(c)||(d=Array.isArray(c)))?(s=d?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[r]=e(o,s,c)):void 0!==c&&(t[r]=c))}}return t};t.extend=a,t.extendFromObject=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},a=function(e){var t=Object.prototype.toString.call(e);return"object"===("undefined"==typeof e?"undefined":i(e))?o[t]||"object":"undefined"==typeof e?"undefined":i(e)},r=function(e){return"boolean"==typeof e},s=function(e){return h(e)&&e.toString().indexOf("e")!==-1},l=function(e){return"date"===a(e)},c=function(e){return null!==e&&void 0!==e},d=function(e){return"function"==typeof e},u=function(e){return"string"==typeof e},h=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},p=function(e){return"object"===a(e)},f=function(e){var t;for(t in e)return!1;return!0},g=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)},m=function(e){return["object","array","function"].indexOf(a(e))===-1},_=function(e){return null!=e&&e===e.window},v=function(e){return!(!e.jquery&&!e.dxRenderer)},w=function(e){return e&&d(e.then)},x=function(e){return e&&d(e.done)&&d(e.fail)};t.isBoolean=r,t.isExponential=s,t.isDate=l,t.isDefined=c,t.isFunction=d,t.isString=u,t.isNumeric=h,t.isObject=p,t.isEmptyObject=f,t.isPlainObject=g,t.isPrimitive=m,t.isWindow=_,t.isRenderer=v,t.isPromise=w,t.isDeferred=x,t.type=a},function(e,t,n){var i=n(214);e.exports=i.get()},function(e,t,n){var i=function(e,t){if(Array.isArray(e))return e.map(t);var n=[];for(var i in e)n.push(t(e[i],i));return n},o=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&t.call(e[n],n,e[n])!==!1;n++);else for(var i in e)if(t.call(e[i],i,e[i])===!1)break;return e}};t.map=i,t.each=o},function(e,t,n){var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(30),r=n(7),s=r.when,l=r.Deferred,c=n(3).each,d=n(1),u=function(e,t){return d.isDefined(e)?e:t},h=function(e,t){var n,i=new l,o=t||this,a={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(o)}},r=function(){var t=e.call(o);t&&t.done&&d.isFunction(t.done)?t.done(function(){i.resolveWith(o)}):i.resolveWith(o)};return n=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),a},p=[],f=[],g=[],m=function(e,t,n){if(i&&i!==e)return p.push(t),f.push(e),n=n||new l,g.push(n),n;var o=i,a=g.length;i=e;var r=t();return r||(g.length>a?r=s.apply(this,g.slice(a)):n&&n.resolve()),i=o,n&&r&&r.done&&r.done(n.resolve).fail(n.reject),!i&&p.length&&("render"===f.shift()?_:v)(p.shift(),g.shift()),r||s()},_=function(e,t){return m("render",e,t)},v=function(e,t){return m("update",e,t)},w=function(e){return function(){var t=this;return m("render",function(){return e.call(t)})}},x=function(e){return function(){var t=this;return m("update",function(){return e.call(t)})}},y=function(e,t,n){var i=[],o=0;return c(t,function(t,a){var r=0,s=n?n(a):a;c(e,function(e,t){var n=s[e];if(void 0!==n)return b(n,t)?void r++:(r=-1,!1)}),r<o||(r>o&&(i.length=0,o=r),i.push(a))}),i},b=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return c(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},C=function(e){switch("undefined"==typeof e?"undefined":o(e)){case"string":return e.split(/\s+/,2);case"object":return[e.x||e.h,e.y||e.v];case"number":return[e];default:return e}},k=function(e){switch("undefined"==typeof e?"undefined":o(e)){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}},S=function(e){var t=d.isString(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&c(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},I=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},D=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!E(e[i],t[i],n+1))return!1;return!0},T=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!E(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0},E=function(e,t,n){if(e===t)return!0;var i=3;return n=n||0,n>=i||(d.isObject(e)&&d.isObject(t)?T(e,t,n):Array.isArray(e)&&Array.isArray(t)?D(e,t,n):!(!d.isDate(e)||!d.isDate(t))&&e.getTime()===t.getTime())},A=function(e){if(d.isObject(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},B=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},O=function(e){var t=a().serverDecimalSeparator;return d.isDefined(e)&&(e=e.toString().replace(".",t)),e},R=function(){},M=function(e,t,n){for(var i,o=[],a=!n,r=0;r<e.length;r++)i=!!t(e[r],r),i===a&&o.push(e[r]);return o};t.ensureDefined=u,t.executeAsync=h,t.deferRender=_,t.deferRenderer=w,t.deferUpdate=v,t.deferUpdater=x,t.splitPair=C,t.splitQuad=k,t.findBestMatches=y,t.normalizeKey=S,t.denormalizeKey=I,t.equalByValue=E,t.getKeyHash=A,t.escapeRegExp=B,t.applyServerDecimalSeparator=O,t.noop=R,t.grep=M},function(e,t,n){var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(107),r=n(0).extend,s=n(12),l=n(6),c=l.getWindow(),d=n(55),u=n(1),h=n(19),p=u.isWindow,f=u.isFunction,g=u.isString,m=n(17),_=n(171),v=n(215),w="dxEmptyEventType",x={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},y={focusin:"focus",focusout:"blur"},b=["blur","focusout","focus","focusin","load"],C=["touchmove","wheel","mousewheel"],k=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},S=new _,I=0,D=function(){var e={};return a.add(function(t,n){e[t]=n}),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,o){return e[t]&&e[t][n]&&e[t][n].apply(i,o)}}}(),T=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||p(i))n.apply(L,t);else{if(g(i)||!("length"in i))throw m.Error("E0025");var o=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){o[0]=t,e(o,n)})}},E=function(e){return function(){T(arguments,e)}},A=function(e,t){var n=S.get(e);t=t||"";var o=t.split("."),a=o.slice(1),r=!!o[0];t=o[0]||w,n||(n={},S.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,o,c){var d=function(i,o){var a,r,s=[i],l=i.currentTarget,d=i.relatedTarget;t in x&&(a=d&&l&&(d===l||l.contains(d))),void 0!==o&&s.push(o),D.callMethod(t,"handle",e,[i,c]),a||(r=n.apply(l,s)),r===!1&&(i.preventDefault(),i.stopPropagation())},u=function(t,n){if(!i||t.type!==i)if(t.data=c,t.delegateTarget=e,o)for(var a=t.target;a&&a!==e;)k(a,o)&&(t.currentTarget=a,d(t,n)),a=a.parentNode;else d(t,n)},h={handler:n,wrappedHandler:u,selector:o,type:t,data:c,namespace:a.join("."),namespaces:a,guid:++I};l.handleObjects.push(h);var p,f=1===l.handleObjects.length,g=f&&r;g&&(g=!D.callMethod(t,"setup",e,[c,a,n])),g&&(l.nativeHandler=B(t),C.indexOf(t)>-1&&(p={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,p)),D.callMethod(t,"add",e,[h])},removeHandler:function(i,o){var s=function(t){var r=n[t];if(!r.handleObjects.length)return void delete n[t];var s;r.handleObjects=r.handleObjects.filter(function(n){var r=a.length&&!O(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return r||(s=n.handler,D.callMethod(t,"remove",e,[n])),r});var l=!r.handleObjects.length,c=l&&t!==w;c&&(D.callMethod(t,"teardown",e,[a,s]),r.nativeHandler&&r.removeListener(),delete n[t])};if(r)s(t);else for(var l in n)s(l);var c=0===Object.keys(n).length;c&&S.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!O(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[w]&&n[w].handleObjects.forEach(o)}}},B=function(e){return function(t,n){var i=A(this,e);t=L.Event(t),i.callHandlers(t,n)}},O=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},R=function(e){return function(t,n,i,o,a){a||(a=o,o=void 0),"string"!=typeof i&&(o=i,i=void 0),a||"string"!=typeof n||(a=o||i,i=void 0,o=void 0),e(t,n,i,o,a)}},M=function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}},P=function(e){return function(t,n,i){"string"==typeof n&&(n={type:n}),n.target||(n.target=t),n.currentTarget=t,n.delegateTarget||(n.delegateTarget=t),!n.type&&n.originalEvent&&(n.type=n.originalEvent.type),e(t,n instanceof L.Event?n:L.Event(n),i)}},V=function(e){return function(t,n){return this instanceof L.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new L.Event(t,n)}},F=function(e){var t=function(t,n){if(n&&n.indexOf(" ")>-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach(function(t){i[1]=t,e.apply(this,i)})}else e.apply(this,arguments)};return function(e,n){if("object"===("undefined"==typeof n?"undefined":o(n))){var i=Array.prototype.slice.call(arguments,0);for(var a in n)i[1]=a,i[i.length-1]=n[a],t.apply(this,i)}else t.apply(this,arguments)}},H=function(e,t){var n=y[e]||e,o=function(e,t){return"click"===e&&"a"===t.localName};o(e,t)||f(t[n])&&(i=e,t[n](),i=void 0)},$=function(e){var t=function(e){var t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;return!e.which&&void 0!==e.button&&t.test(e.type)},n=function(e){return null==e.which&&0===e.type.indexOf("key")};if(n(e))return null!=e.charCode?e.charCode:e.keyCode;if(t(e)){var i={1:1,2:3,3:1,4:2};return i[e.button]}return e.which},L=d({on:E(R(F(function(e,t,n,i,o){var a=A(e,t);a.addHandler(o,n,i)}))),one:E(R(function(e,t,n,i,o){var a=function i(){L.off(e,t,n,i),o.apply(this,arguments)};L.on(e,t,n,i,a)})),off:E(M(F(function(e,t,n,i){var o=A(e,t);o.removeHandler(i,n)}))),trigger:E(P(function(e,t,n){var i=t.type,o=A(e,t.type);D.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=D.getField(i,"noBubble")||t.isPropagationStopped()||b.indexOf(i)!==-1;if(!a){var s=[],l=function e(t){var n=t.parentNode;n&&(s.push(n),e(n))};l(e),s.push(c);for(var d=0;s[d]&&!t.isPropagationStopped();){var u=A(s[d],t.type);u.callHandlers(r(t,{currentTarget:s[d]}),n),d++}}(e.nodeType||p(e))&&(D.callMethod(i,"_default",e,[t,n]),H(i,e))})),triggerHandler:E(P(function(e,t,n){var i=A(e,t.type);i.callHandlers(t,n)}))}),z=function(e){e&&(L.Event=e,L.Event.prototype=e.prototype)};z(V(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof L.Event||l.hasWindow()&&e instanceof c.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof L.Event||r(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(a||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){a=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),N("which",$,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++I}));var N=function(e,t,n){Object.defineProperty(n||L.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})};v(N);var W=h(),q=h();L.set=function(e){W.fire(),L.inject(e),z(e.Event),q.fire()},L.subscribeGlobal=function(){T(arguments,R(function(){var e=arguments;L.on.apply(this,e),W.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),L.off.apply(this,t)}),q.add(function(){L.on.apply(this,e)})}))},L.forcePassiveFalseEventNames=C,e.exports=L},function(e,t,n){var i=n(12),o="undefined"!=typeof window,a=o&&window;a||(a={},a.window=a),e.exports={hasWindow:function(){return o},getWindow:function(){return a},hasProperty:function(e){return this.hasWindow()&&e in a},defaultScreenFactorFunc:function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},getCurrentScreenFactor:function(e){var t=e||this.defaultScreenFactorFunc,n=i.getDocumentElement().clientWidth;return t(n)},openWindow:function(){return this.hasProperty("open")?a.open():null},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=n(0).extend,s=n(19),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new c;return["done","fail"].forEach(function(i){var r="done"===i?e:t;this[i](function(){if(!r)return void n["done"===i?"resolve":"reject"].apply(this,arguments);var e=r&&r.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,e?[e]:arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?r(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;c.prototype[t+"With"]=function(e,i){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),o.fire(e,i)),this}}),t.fromPromise=function(e,t){if(a(e))return e;if(o(e)){var n=new c;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new c).resolveWith(t,[e])};var d=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new c,r=function(t){return function(a){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):a,i++,i===e.length&&o.resolveWith(n,e)}},s=0;s<e.length;s++)a(e[s])?e[s].promise().done(r(s)).fail(o.reject):i++;return i===e.length&&o.resolveWith(n,e),o.promise()};t.setStrategy=function(e){c=e.Deferred,d=e.when},t.Deferred=function(){return new c},t.when=function(){return d.apply(this,arguments)}},function(e,t,n){var i=n(2),o=n(138),a=n(17),r=n(100),s=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),o.fire(e,n)},l=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};o.add(l),e.exports=s},function(e,t,n){var i=n(2),o=n(5),a=n(17),r=n(57).focused,s=n(0).extend,l=n(3).each,c=function(){var e={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(t){var n="other";return l(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),d=function(e){return"dx"===c(e)},u=function(e){return"mouse"===c(e)},h=function(e){return"touch"===c(e)},p=function(e){return"pointer"===c(e)},f=function(e){return u(e)||(p(e)||d(e))&&"mouse"===e.pointerType},g=function(e){return h(e)||(p(e)||d(e))&&"touch"===e.pointerType},m=function(e){return"keyboard"===c(e)},_=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},v=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},w=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},x=function(e){return h(e)?(e.originalEvent.touches||[]).length:d(e)?(e.pointers||[]).length:0},y=function(e){var t=i(e.target),n=t.is("input, textarea, select");return!!t.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||("dxmousewheel"===e.type?t.is("input[type='number'], textarea, select")&&t.is(":focus"):f(e)?n||e.which>1:g(e)?n&&r(t):void 0)},b=function(e){return e},C=function(e){b=e},k=function(e){return b(o.Event(e,e),e)},S=function(e,t){var n=k(e);return t&&s(n,t),n},I=function(e){var t=S(e.originalEvent,e);return o.trigger(e.delegateTarget||t.target,t),t},D=function e(t,n){if(!n)throw a.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):(l(t,function(e,i){t[e]=i+"."+n}),t.join(" "))};e.exports={eventSource:c,isPointerEvent:p,isMouseEvent:f,isTouchEvent:g,isKeyboardEvent:m,isFakeClickEvent:_,hasTouches:x,eventData:v,eventDelta:w,needSkipEvent:y,createEvent:S,fireEvent:I,addNamespace:D,setEventFixMethod:C}},function(e,t,n){var i=n(17),o=n(1),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},r=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,o=this;if(!e)return o;for(n in e)i=e[n],t="function"==typeof o.prototype[n]&&"function"==typeof i,o.prototype[n]=t?a(o.parent.prototype,n,i):i;return o},l=function(){var e,t,n,i=this;for(n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},c=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},d=function(){throw i.Error("E0001")},u=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),h=function(){};h.inherit=function(e){var t=function(){if(!this||o.isWindow(this)||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,a=t.constructor._includedCtors,r=t.constructor._includedPostCtors;for(e=0;e<a.length;e++)a[e].call(t);for(n&&n.apply(t,arguments),e=0;e<r.length;e++)r[e].call(t)};return t.prototype=r(this),u(this,t),t.inherit=this.inherit,t.abstract=d,t.redefine=s,t.include=l,t.subclassOf=c,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},h.abstract=d,e.exports=h},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(54),r=function(e){return Array.isArray(e)&&!e.length},s=function(e){return Array.isArray(e)?e:[e]},l=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return o(e,function(e,i){var o=u(i,t);o!==-1&&n.push(i)}),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return o(e,function(e,i){var o=u(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,r){var s={},l=0;return o(e,function(e,o){e=o[t],i(e)&&(s[e]=s[e]||[],o===n?s[e].unshift(o):s[e].push(o),delete o[t])}),a.orderEach(s,function(e,n){o(n,function(){e>=0&&(this[t]=l++)})}),o(e,function(){i(this[t])||r&&!r(this)||(this[t]=l++)}),l},u=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},h=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e};t.isEmpty=r,t.wrapToArray=s,t.intersection=l,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=u,t.merge=h},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(55),a=n(4).noop,r={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var n=e.document||e.ownerDocument;if(!n)return!1;for(var i=this.querySelectorAll(n,t),o=0;o<i.length;o++)if(i[o]===e)return!0}.bind(this);return n.call(e,t)},createElement:function(e,t){return t=t||this._document,t.createElement(e)},createElementNS:function(e,t,n){return n=n||this._document,n.createElementNS(e,t)},createTextNode:function(e,t){return t=t||this._document,t.createTextNode(e)},isNode:function(e){return"object"===("undefined"==typeof e?"undefined":i(e))&&"nodeType"in e},isElementNode:function(e){return e&&e.nodeType===Node.ELEMENT_NODE},isTextNode:function(e){return e&&e.nodeType===Node.TEXT_NODE},isDocument:function(e){return e&&e.nodeType===Node.DOCUMENT_NODE},removeElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement:function(e,t,n){e&&t&&e!==t&&(n?e.insertBefore(t,n):e.appendChild(t))},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setProperty:function(e,t,n){e[t]=n},setText:function(e,t){e&&(e.textContent=t)},setClass:function(e,t,n){if(1===e.nodeType&&t)if(e.classList)n?e.classList.add(t):e.classList.remove(t);else{var i=e.className.split(" "),o=i.indexOf(t);n&&o<0&&(e.className=e.className?e.className+" "+t:t),!n&&o>=0&&(i.splice(o,1),e.className=i.join(" "))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):a}};e.exports=o(r)},function(e,t,n){var i,o=n(2),a=n(12),r=n(6),s=r.getWindow(),l=n(5),c=n(17),d=n(11).inArray,u=n(1),h=u.isDefined,p=u.isRenderer,f=n(216),g=function(){var e=a.getActiveElement();e&&e!==a.getBody()&&e.blur&&e.blur()},m=function(){var e=s.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},_=function(e,t){var n=o(e),i=o(t);if(n[0]===i[0])return n[0];for(var a=n.parents(),r=i.parents(),s=Math.min(a.length,r.length),l=-s;l<0;l++)if(a.get(l)===r.get(l))return a.get(l)},v=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=o(n||"body"),a=i.filter(t).add(i.find(t)),r=0;r<a.length;r++)l.triggerHandler(a[r],e)}},w=function(){var e=0;return function(t){return(t||"")+e++}}(),x="data-options",y=function(e){var t,n=o(e).attr(x)||"";"{"!==n.trim().charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw c.Error("E3018",e,n)}return t},b=function(e,t){var n=[],i="["+x+"]",a=e.find(i).add(e.filter(i));return a.each(function(e,i){var a=o(i),r=y(i);for(var s in r)(!t||d(s,t)>-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},C=function(e){if(!s.WinJS)return o(f.parseHTML(e));var t=o("<div>");return s.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},k=function e(t){var n=h(t)&&(t.nodeType||p(t))?o(t):o("<div>").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},S=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},I=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||s.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},D=function(e,t){return!!t&&(t=a.isTextNode(t)?t.parentNode:t,a.isDocument(e)?e.documentElement.contains(t):e.contains(t))},T=function(e){return i(e)},E=function(e){i=e};E(function(e){return e&&e.get(0)}),t.setPublicElementWrapper=E,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=y,t.createComponents=b,t.normalizeTemplateElement=k,t.clearSelection=m,t.uniqueId=w,t.closestCommonParent=_,t.clipboardText=I,t.toggleAttr=S,t.contains=D,t.getPublicElement=T},function(e,t,n){var i=n(2),o=n(6),a=o.getNavigator(),r=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,c=n(3).each,d=n(10),u=n(17),h=n(19),p=n(121),f=n(53),g=n(154).sessionStorage,m=n(73),_=n(30),v={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},w={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},x={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var o=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=480===r.screen.height,a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:a}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.(\d+)\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},y=d.inherit({ctor:function(e){this._window=e&&e.window||r,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=h(),o.hasWindow()&&(this._recalculateOrientation(),p.add(this._recalculateOrientation.bind(this)))},current:function(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice},real:function(){return s({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(e){var t=[],n=this._realDevice;return e=e||this.current(),e.deviceType&&(t.push("dx-device-"+e.deviceType),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-"+n.platform),n.version&&n.version.length&&t.push("dx-device-"+n.platform+"-"+n.version[0]),b.isSimulator()&&t.push("dx-simulator"),_().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),i(e).addClass(this._deviceClasses)},detachCssClasses:function(e){i(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||o.hasWindow()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}},forceSimulator:function(){this._isSimulator=!0},_getDevice:function(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),l(e))return this._fromConfig(e);var t;if(e){if(t=v[e],!t)throw u.Error("E0005")}else t=a.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return o.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},_getDeviceNameFromSessionStorage:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},w,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,win:"win"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;if(c(x,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=w;return i.mac=n,i},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(f),b=new y;m.changeCallback.add(function(e,t){b.detachCssClasses(t),b.attachCssClasses(e)}),b.isForced()||"win"!==b.current().platform||b.current({version:[10]}),e.exports=b},function(e,t,n){var i=n(2),o=n(55),a=n(0).extend,r=n(3).each,s=n(39).format,l=n(37).humanize,c=n(81);n(81);var d="-",u=a(!0,{},n(323)),h=n(324),p=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(d))},f=function(e,t){return e[t]||{}},g=function(e,t,n){for(var i,o=f(e,t)[n];!o&&!i;)t=p(t),t?o=f(e,t)[n]:i=!0;return o},m={},_=o({_dictionary:u,load:function(e){a(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,n=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=t._localizablePrefix+t._localizablePrefix;return e.replace(n,function(e,n,o,a){var r,s=t._localizablePrefix+a;return o!==i&&(r=t.format(a)),r||(m[a]=l(a)),n+(r||s)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||c.locale(),e)},localizeNode:function(e){var t=this;i(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):i(n).is("iframe")||(r(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),i(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?m:a({},m,this.getMessagesByLocales()[c.locale()])},getFormatter:function(e){
|
|
10
10
|
return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=g(this._dictionary,t||c.locale(),e);if(n)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(n),s.apply(this,e)}},format:function(e){var t=this.getFormatter(e),n=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,n)||""}});e.exports=_},,function(e,t,n){var i=n(102);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'})},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(12),s=n(13),l=n(105),c=n(9),d=n(25),u=n(108),h=n(84),p=n(59).compare,f="dxclick",g=10,m=Math.abs,_=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},w=u.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=c.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===d.cancel?void this._cancel(e):(_(e.target)||this._blurPrevented||s.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!s.contains(t,n)&&t!==n,o=c.eventDelta(c.eventData(e),this._startEventData),a=m(o.x)>g||m(o.y)>g;return i||a},_fireClickEvent:function(e){this._fireEvent(f,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){v.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=a.real(),n=t.generic||t.ios&&p(t.version,[9,3])>=0||t.android&&p(t.version,[5])>=0,r=function(t){return n||i(t).closest("."+e).length},s=null,l=null,d=function(e){var t=e.originalEvent,n=l!==t,i=!e.which||1===e.which;i&&!s&&r(e.target)&&n&&(l=t,c.fireEvent({type:f,originalEvent:e}))};w=w.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),o.on(e,"click",d)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,r(e.target)||this.callBase(e)},end:function(e){r(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",d)}})}(),function(){var e=a.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},u=function(e){var o=i(e.target);n||!t||o.is(t)||i(t).is("label")||!_(o)||s.resetActiveElement(),t=null,n=!1},h="NATIVE_CLICK_FIXER",p=r.getDocument();o.subscribeGlobal(p,c.addNamespace(d.down,h),l),o.subscribeGlobal(p,c.addNamespace("click",h),u)}}(),h({emitter:w,bubble:!0,events:[f]}),t.name=f},function(e,t,n){var i=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};i.prototype._fireCore=function(e,t){var n=this._firingIndexes,i=this._list,o=this._options.stopOnFalse,a=n.length;for(n[a]=0;n[a]<i.length;n[a]++){var r=i[n[a]].apply(e,t);if(r===!1&&o)break}n.pop()},i.prototype.add=function(e){return"function"!=typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},i.prototype.remove=function(e){var t=this._list,n=this._firingIndexes,i=t.indexOf(e);if(i>-1&&(t.splice(i,1),this._firing&&n.length))for(var o=0;o<n.length;o++)i<=n[o]&&n[o]--;return this},i.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-1:!!t.length},i.prototype.empty=function(e){return this._list=[],this},i.prototype.fireWith=function(e,t){var n=this._queue;if(t=t||[],t=t.slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(n.push([e,t]),this._firing)return;for(this._firing=!0;n.length;){var i=n.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},i.prototype.fire=function(){this.fireWith(this,arguments)},i.prototype.fired=function(){return this._fired};var o=function(e){return new i(e)};e.exports=o},function(e,t,n){function i(){if(!M.hasWindow())return null;var e,t=O("<div>",S).addClass("dx-theme-marker").appendTo(S.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,""),e.substr(0,Z.length)!==Z?null:e.substr(Z.length)):null}finally{t.remove()}}function o(e){function t(){E=null,q.fire(),q.empty()}var n;E=e,a()?t():(n=Date.now(),A=setInterval(function(){var e=a(),i=!e&&Date.now()-n>15e3;i&&F.log("W0004",E),(e||i)&&(clearInterval(A),A=void 0,t())},10))}function a(){return!E||i()===E}function r(){var e=O(j,S);e.length&&(D={},I=O(H.createMarkupFromString("<link rel=stylesheet>"),S),e.each(function(){var e=O(this,S),t=e.attr(U),n=e.attr("href"),i="true"===e.attr(Y);D[t]={url:n,isActive:i}}),e.last().after(I),e.remove())}function s(e){var t=e.split("."),n=null;if(D){if(e in D)return e;z(D,function(e,i){var o=e.split(".");if(o[0]===t[0]&&!(t[1]&&t[1]!==o[1]||t[2]&&t[2]!==o[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function l(e){try{e!==S&&(D=null)}catch(e){D=null}S=e}function c(e){e=e||{},l(e.context||R.getDocument()),S&&(r(),T=void 0,d(e))}function d(e){if(!arguments.length)return T=T||i();f(G()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(T=e.theme||T,n&&!T&&(T=u(N.current())),T=s(T),T&&(t=D[T]),a&&q.add(a),t)I.attr("href",D[T].url),!q.has()&&!e._forceTimeout||A?E&&(E=T):o(T);else{if(!n)throw F.Error("E0021",T);q.fire(),q.empty()}C(),p(W.originalViewPort(),T)}function u(e){var t=e.platform,n=e.version&&e.version[0];switch(t){case"ios":t+="7";break;case"android":t+="5";break;case"win":t+=n&&8===n?"8":"10"}return t}function h(e){e=e||d();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(_(e)?"-"+n[2]:""))),t}function p(e,t){B=h(t).join(" "),O(e).addClass(B);var n=function(){var t=M.hasWindow()&&P.devicePixelRatio;if(t&&!(t<2)){var n=O("<div>");n.css("border",".5px solid transparent"),O("body").append(n),1===n.outerHeight()&&(O(e).addClass(X),B+=" "+X),n.remove()}};n()}function f(e){O(e).removeClass(B)}function g(e){q.add(e)}function m(e,t){return t||(t=T||i()),new RegExp(e).test(t)}function _(e){return m("material",e)}function v(e){return m("android5",e)}function w(e){return m("ios7",e)}function x(e){return m("generic",e)}function y(e){return m("win8",e)}function b(e){return m("win10",e)}function C(){y()&&F.log("W0010","The 'win8' theme","16.1","Use the 'generic' theme instead."),b()&&F.log("W0010","The 'win10' theme","17.2","Use the 'generic' theme instead."),v()&&F.log("W0010","The 'android5' theme","18.1","Use the 'material' theme instead.")}function k(){if(c({_autoInit:!0,_forceTimeout:!0}),O(j,S).length)throw F.Error("E0022");J.resolve()}var S,I,D,T,E,A,B,O=n(2),R=n(12),M=n(6),P=M.getWindow(),V=n(7).Deferred,F=n(21),H=n(13),$=n(51),L=$.add,z=n(3).each,N=n(14),W=n(73),q=n(230),G=W.value,K=W.changeCallback,j="link[rel=dx-theme]",U="data-theme",Y="data-active",X="dx-hairlines",Z="dx.",J=new V;M.hasWindow()?k():L(k),K.add(function(e,t){J.done(function(){f(t),p(e)})}),N.changed.add(function(){c({_autoInit:!0})}),t.current=d,t.ready=g,t.init=c,t.attachCssClasses=p,t.detachCssClasses=f,t.themeNameFromDevice=u,t.waitForThemeLoad=o,t.isMaterial=_,t.isAndroid5=v,t.isIos7=w,t.isGeneric=x,t.isWin8=y,t.isWin10=b,t.resetTheme=function(){I&&I.attr("href","about:blank"),T=null,E=null}},function(e,t,n){var i=n(102),o=n(17);e.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The JSZip script is referenced after the DevExtreme scripts or not referenced at all",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"\u0421olumn '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects"})},function(e,t,n){var i=n(17),o=n(10),a=n(54),r=n(1),s=n(3).each,l=n(71),c=l.unwrap,d=l.isWrapped,u=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n){return n=n||{},"this"===t?m(e,n):m(e[t],n)},f=function(e,t,n,o){if("this"===t)throw new i.Error("E4016");var a=e[t];o.unwrapObservables&&d(a)?u(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},m=function(e,t){return t.unwrapObservables?c(e):e},_=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=h(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,o=("defaultValue"in n),a=m(e,n),s=0;s<t.length;s++){if(!a){if(null==a&&o)return n.defaultValue;break}var l=t[s];if(o&&r.isObject(a)&&!(l in a))return n.defaultValue;var c=m(a[l],n);!i&&r.isFunction(c)&&(c=c.call(a)),a=c}return a}}return Array.isArray(e)?v(e):r.isFunction(e)?e:void 0},v=function(e){for(var t={},n=0,i=e.length;n<i;n++){var o=e[n];t[o]=_(o)}return function(e,n){var i;return s(t,function(t){var o,a,r,s,l=this(e,n);if(void 0!==l){for(o=i||(i={}),a=t.split("."),r=a.length-1,s=0;s<r;s++)o=o[a[s]]={};o[a[s]]=l}}),i}},w=function(e,t,n,i){if(r.isDefined(n))return n;var o={};return f(e,t,o,i),o},x=function(e){e=h(e||"this").split(".");var t=e.length-1;return function(n,i,o){o=g(o);var s=m(n,o);e.forEach(function(e,n){var l=p(s,e,o),c=!o.functionsAsIs&&r.isFunction(l)&&!d(l);n===t?o.merge&&r.isPlainObject(i)&&(!r.isDefined(l)||r.isPlainObject(l))?(l=w(s,e,l,o),a.deepExtendArraySafe(l,i,!1,!0)):c?s[e](i):f(s,e,i,o):(l=w(s,e,l,o),c&&(l=l.call(s)),s=l)})}},y=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof o&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=_,t.compileSetter=x,t.toComparable=y},function(e,t,n){function i(e){return y[x(e)]||""}function o(e,t,n){var i=new Date(e.getTime()),o=d(t)?$(t.toLowerCase()):a.isNumeric(t)?_(t):t;return o.years&&i.setFullYear(i.getFullYear()+o.years*n),o.quarters&&i.setMonth(i.getMonth()+3*o.quarters*n),o.months&&i.setMonth(i.getMonth()+o.months*n),o.weeks&&i.setDate(i.getDate()+7*o.weeks*n),o.days&&i.setDate(i.getDate()+o.days*n),o.hours&&i.setTime(i.getTime()+36e5*o.hours*n),o.minutes&&i.setTime(i.getTime()+6e4*o.minutes*n),o.seconds&&i.setTime(i.getTime()+1e3*o.seconds*n),o.milliseconds&&i.setTime(i.getTime()+o.milliseconds*n),i}var a=n(1),r=n(31).adjust,s=n(3).each,l=n(37).camelize,c=a.isObject,d=a.isString,u=a.isDate,h=a.isDefined,p=["millisecond","second","minute","hour","day","week","month","quarter","year"],f=function e(t){switch(t){case"millisecond":return 1;case"second":return 1e3*e("millisecond");case"minute":return 60*e("second");case"hour":return 60*e("minute");case"day":return 24*e("hour");case"week":return 7*e("day");case"month":return 30*e("day");case"quarter":return 3*e("month");case"year":return 365*e("day");default:return 0}},g=function(e,t,n){var i=t.getTime()-e.getTime(),o=f(n)||1;return Math.floor(i/o)},m=function(e,t){var n=x(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},_=function(e){var t,n,i,o=["millisecond","second","minute","hour","day","month","year"],a={};for(t=o.length-1;t>=0;t--)i=o[t],n=Math.floor(e/f(i)),n>0&&(a[i+"s"]=n,e-=w(i,n));return a},v=function(e){var t=0;return c(e)&&s(e,function(e,n){t+=w(e.substr(0,e.length-1),n)}),d(e)&&(t=w(e,1)),t},w=function(e,t){return f(e)*t},x=function(e){var t,n=-1;return d(e)?e:c(e)?(s(e,function(e,i){for(t=0;t<p.length;t++)i&&(e===p[t]+"s"||e===p[t])&&n<t&&(n=t)}),p[n]):""},y={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},b=function(e){return Math.floor(e/3)},C=function(e){return 3*b(e)},k=function(e,t,n,i){e=new Date(e.getTime());var o,a,r=new Date(e.getTime()),s=x(t);switch(s){case"second":e=new Date(1e3*Math.floor(r.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(r.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(r.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":e=X(e,i||0),e.setHours(0,0,0,0);break;case"quarter":o=C(e.getMonth()),a=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),a!==o&&e.setMonth(o)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&te(r,e),e},S=function(e){return ae.correctDateWithUnitBeginning(e,"day")},I=function(e,t){var n,i=0;return n={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},s(n,function(e,t){t&&i++}),0===i&&0!==ie(e,t)&&(n.hour=!0,i++),n.count=i,n},D=function(e,t,n){var i=n?-1:1;return u(e)?o(e,t,i):r(e+t*i,t)},T=function(e,t,n){var i,o=[];for(o.push(u(e)?new Date(e.getTime()):e),i=e;i<t;)i=D(i,n),o.push(i);return o},E=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),1):"year"===e?new Date(t.getFullYear(),0,t.getDate()):"decade"===e?new Date(K(t),t.getMonth(),t.getDate()):"century"===e?new Date(G(t),t.getMonth(),t.getDate()):void 0},A=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),R(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(K(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(G(t)+90,t.getMonth(),t.getDate()):void 0},B=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),1);return"month"===e?n:(n.setMonth(0),"year"===e?n:("decade"===e&&n.setFullYear(K(t)),"century"===e&&n.setFullYear(G(t)),n))},O=function(e,t){var n=new Date(t);return n.setDate(R(t)),"month"===e?n:(n.setMonth(11),n.setDate(R(n)),"year"===e?n:("decade"===e&&n.setFullYear(K(t)+9),"century"===e&&n.setFullYear(G(t)+99),n))},R=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},M=function(e,t,n){return ae[l("same "+e)](t,n)},P=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},V=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},F=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},H=function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},$=function(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.weeks=1;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t},L=function(e,t){return z(e,t)&&e.getDate()===t.getDate()},z=function(e,t){return N(e,t)&&e.getMonth()===t.getMonth()},N=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},W=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},q=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},G=function(e){return e&&e.getFullYear()-e.getFullYear()%100},K=function(e){return e&&e.getFullYear()-e.getFullYear()%10},j=function(){return"yyyy/MM/dd"},U=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},Y=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},X=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},Z=function(e,t){var n=ae.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},J=function(e,t,n,i){return"date"===i&&(t=t&&ae.correctDateWithUnitBeginning(t,"day"),n=n&&ae.correctDateWithUnitBeginning(n,"day"),e=e&&ae.correctDateWithUnitBeginning(e,"day")),ee(e,t,n)===e},Q=function(e){var t=Math.floor(e),n=e%1*60;return{hours:t,minutes:n}},ee=function(e,t,n){var i=e;return h(e)?(h(t)&&e<t&&(i=t),h(n)&&e>n&&(i=n),i):e},te=function(e,t){if(h(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||o===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},ne=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},ie=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},oe=function(e){return new Date(e)},ae={dateUnitIntervals:p,convertMillisecondsToDateUnits:_,dateToMilliseconds:v,getNextDateUnit:m,convertDateUnitToMilliseconds:w,getDateUnitInterval:x,getDateFormatByTickInterval:i,getDatesDifferences:I,correctDateWithUnitBeginning:k,trimTime:S,dateTimeFromDecimal:Q,addDateInterval:o,addInterval:D,getSequenceByInterval:T,getDateIntervalByString:$,sameDate:L,sameMonthAndYear:z,sameMonth:z,sameYear:N,sameDecade:W,sameCentury:q,sameView:M,getDifferenceInMonth:F,getDifferenceInMonthForCells:H,getFirstYearInDecade:K,getFirstDecadeInCentury:G,getShortDateFormat:j,getViewFirstCellDate:E,getViewLastCellDate:A,getViewDown:V,getViewUp:P,getLastMonthDay:R,getLastMonthDate:Y,getFirstMonthDate:U,getFirstWeekDate:X,normalizeDateByWeek:Z,getQuarter:b,getFirstQuarterMonth:C,dateInRange:J,roundToHour:ne,normalizeDate:ee,getViewMinBoundaryDate:B,getViewMaxBoundaryDate:O,fixTimezoneGap:te,getTimezonesDifference:ie,makeDate:oe,getDatesInterval:g};e.exports=ae},function(e,t,n){var i=n(35),o=n(1).type,a="dxTranslator",r=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=u(e);return{left:t.x,top:t.y}},c=function(e,t){var n,i=t.left,o=t.top;void 0===i?(n=u(e),n.y=o||0):void 0===o?(n=u(e),n.x=i||0):(n={x:i||0,y:o||0,z:0},h(e,n)),e.css({transform:m(n)}),(d(i)||d(o))&&p(e)},d=function(e){return"string"===o(e)&&"%"===e[e.length-1]},u=function(e){var t=e.length?i.data(e.get(0),a):null;if(!t){var n=e.css("transform")||m({x:0,y:0}),o=n.match(r),s=o&&o[1];o?(o=o[2].split(","),"3d"===s?o=o.slice(12,15):(o.push(0),o=o.slice(4,7))):o=[0,0,0],t={x:parseFloat(o[0]),y:parseFloat(o[1]),z:parseFloat(o[2])},h(e,t)}return t},h=function(e,t){e.length&&i.data(e.get(0),a,t)},p=function(e){e.length&&i.removeData(e.get(0),a)},f=function(e,t){var n,i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),p(e),t&&(e.get(0).offsetHeight,e.css("transition",n))},g=function(e){var t=e.match(s);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},m=function(e){e.x=e.x||0,e.y=e.y||0;var t=d(e.x)?e.x:e.x+"px",n=d(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=c,t.locate=l,t.clearCache=p,t.parseTranslate=g,t.getTranslate=u,t.getTranslateCss=m,t.resetPosition=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(40),a=i(o),r=n(3),s=n(29),l=i(s),c=n(14),d=i(c),u=n(61),h=i(u),p=n(225),f=i(p),g=n(320),m=i(g),_=n(227),v=i(_),w=n(321),x=i(w),y=function(e,t,n){if(e.pointerEvents&&n.msie)return m.default;var i=t.tablet,o=t.phone;return!e.touch||i||o?e.touch?f.default:v.default:x.default},b=y(a.default,d.default.real(),l.default);(0,r.each)(b.map,function(e,t){(0,h.default)(e,new b(e,t))});var C={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"};e.exports=C},function(e,t){e.exports=window.jQuery},function(e,t,n){var i=n(0).extend,o=n(45),a=n(46);i(t,a,o,{modules:[]})},function(e,t,n){var i=n(2),o=n(5),a=n(21),r=n(76),s=n(0).extend,l=n(11).inArray,c=n(3).each,d=n(4),u=n(1),h=n(13),p=n(12),f=n(14),g=n(58),m=n(257),_=n(66),v=n(95),w=n(122),x=n(101),y=n(155),b=n(57),C=n(9),k=n(157),S=n(96),I=n(18),D=n(37),T="UIFeedback",E="dx-widget",A="dx-state-active",B="dx-state-disabled",O="dx-state-invisible",R="dx-state-hover",M="dx-state-focused",P=30,V=400,F="Focus",H="template",$=3,L="[data-options*='dxTemplate']",z="dx-template-wrapper",N=new v(function(e){var t=e.model.widget;if(t){var n=i("<div>"),o=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var r=t;t=D.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",r,"16.1","Use: '"+t+"' instead")}return n[t](o),n}return i()}),W=g.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return s(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,integrationOptions:{watchMethod:function(e,t,n){return n=n||{},n.skipImmediate||t(e()),d.noop},templates:{"dx-polymorph-widget":N},createTemplate:function(e){return new m(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:P,_feedbackHideTimeout:V,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_extractTemplates:function(){var e=this.option("integrationOptions.templates"),t=this.$element().contents().filter(L),n={};t.each(function(e,t){var o=h.getElementOptions(t).dxTemplate;if(o){if(!o.name)throw a.Error("E0023");i(t).addClass(z).detach(),n[o.name]=n[o.name]||[],n[o.name].push(t)}}),c(n,function(t,n){var i=this._findTemplateByDevice(n);i&&(e[t]=this._createTemplate(i))}.bind(this))},_findTemplateByDevice:function(e){var t=d.findBestMatches(f.current(),e,function(e){return h.getElementOptions(e).dxTemplate})[0];return c(e,function(e,n){n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),o=n.filter(function(e,t){var n=t.nodeType===$,o=i(t).text().trim().length<1;return!(n&&o)}),a=o.length<1;e[t]||a||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return H},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return u.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!u.isDefined(n))return new w;var o=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||u.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(o=!0,this._createTemplate(e))}.bind(this)),r=a.render(t);return o&&a.dispose&&a.dispose(),r}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){return null==e?new w:e instanceof x?this._defaultTemplates[e.name]:e instanceof _?e:u.isFunction(e.render)&&!u.isRenderer(e)?this._addOneRenderedCall(e):e.nodeType||u.isRenderer(e)?t(i(e)):"string"==typeof e?this._renderIntegrationTemplate(e)||this._defaultTemplates[e]||t(e):this._acquireTemplate(e.toString(),t)},_addOneRenderedCall:function(e){var t=e.render.bind(e);return s({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})},_renderIntegrationTemplate:function(e){var t=this.option("integrationOptions.templates")[e];if(t&&!(t instanceof _)){var n=this.option("templatesRenderAsynchronously");if(!n)return this._addOneRenderedCall(t)}return t},_createTemplateIfNeeded:function(e){var t=function(e){return u.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(E),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){h.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var e=this;d.deferRender(function(){e._renderContentImpl()}),e._fireContentReadyAction()},_renderContentImpl:d.noop,_fireContentReadyAction:d.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(O,!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=C.addNamespace(I.name,T);o.off(e,t),this.option("accessKey")&&o.on(e,t,function(e){C.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(this))},_isFocusable:function(){return this.option("focusStateEnabled")&&!this.option("disabled")},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit&&(e=e.find(this._activeStateUnit).not("."+B)),e},_renderFocusTarget:function(){
|
|
11
|
-
this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+F,n=C.addNamespace("focusin",t);n=n+" "+C.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+C.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+F,t=C.addNamespace("focusin",e),n=C.addNamespace("focusout",e),a=this._focusTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var r=C.addNamespace("beforeactivate",e);o.on(this._focusTarget(),r,function(e){i(e.target).is(b.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(M,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(M)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new y({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),o=i[n];if(void 0!==o){var a=o.bind(this);return a(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=C.addNamespace(k.start,T),a=C.addNamespace(k.end,T);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),a,t),e.option("hoverStateEnabled")){var s=new r(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();o.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),o.on(l,a,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:d.noop,_hoverEndHandler:d.noop,_attachFeedbackEvents:function(){var e,t,n=this,a=n._activeStateUnit,s=C.addNamespace(S.active,T),l=C.addNamespace(S.inactive,T);if(o.off(n._eventBindingTarget(),s,a),o.off(n._eventBindingTarget(),l,a),n.option("activeStateEnabled")){var c=function(e){var t=i(e.element),o=e.value,a=e.event;n._toggleActiveState(t,o,a)};o.on(n._eventBindingTarget(),s,a,{timeout:n._feedbackShowTimeout},function(t){e=e||new r(c),e.execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,a,{timeout:n._feedbackHideTimeout},function(e){t=t||new r(c,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(A,t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass(R,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(B,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(u.isPlainObject(t[0]))return void c(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var o=this[e+"OptionMap"];this[e].option(o?o(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null===n||void 0===n?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(u.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();c(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=W},function(e,t,n){var i=n(0).extend,o=n(6),a=o.getNavigator(),r=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,c=/(edge)\/((\d+)?[\w.]+)/,d=/(safari)/i,u=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||c.exec(e)||e.indexOf("compatible")<0&&u.exec(e)||r.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&d.exec(e)&&(i="safari",t.webkit=!0,o=/Version\/([0-9.]+)/i.exec(e),o=o&&o[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:h},h(a.userAgent))},function(e,t,n){var i=n(0),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},a=function(){return arguments.length?void i.extend(o,arguments[0]):o};"undefined"!=typeof DevExpress&&DevExpress.config&&a(DevExpress.config),e.exports=a},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function o(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function a(e,t){var n,a=r(t||0)+2,l=e.toString().split("."),c=e,d=Math.abs(e),u=s(e),h=d>1?10:0;return 1===l.length?e:(u||(s(t)&&(a=l[0].length+i(t)),e=d,e=e-Math.floor(e)+h),a=o()&&i(e)>6||a>7?15:7,u||(n=parseFloat(e.toPrecision(a)).toString().split("."),n[0]!==h.toString())?parseFloat(c.toPrecision(a)):parseFloat(l[0]+"."+n[1]))}function r(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[1].length)}var s=n(1).isExponential,l=function(e){return 0===e?0:e/Math.abs(e)},c=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},d=function(e,t,n){return e>=t&&e<=n};t.sign=l,t.fitIntoRange=c,t.inRange=d,t.adjust=a,t.getPrecision=r,t.getExponent=i},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6).getWindow(),r=n(5),s=n(17),l=n(13).getPublicElement,c=n(0).extend,d=n(1),u=n(3),h=n(24),p=n(224),f=n(105),g=n(40),m=n(77),_=n(129),v=n(9),w=n(7),x=w.when,y=w.Deferred,b=v.addNamespace(_,"dxFX"),C=d.isFunction,k=d.isPlainObject,S=n(4).noop,I=/^([+-])=(.*)/i,D="dxAnimData",T="dxAnimQueue",E="transform",A={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ce(e,t.from);var n=this,i=new y,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?x(i,o).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i,o=this,a=Date.now()+t.delay,s=new y,l=new y,c=new y,d=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),r.off(e,d),r.off(e,b)},r.one(e,d,function(){Date.now()-a>=t.duration&&l.reject()}),r.off(e,b),r.on(e,b,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ue._simulatedTransitionEndDelay),x(l,c).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ce(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(k(t.to)&&u.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},B={initAnimation:function(e,t){ce(e,t.from)},animate:function(e,t){var n=new y,i=this;return t?(u.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[E]&&(t.from[E]=i._parseTransform(t.from[E]),t.to[E]=i._parseTransform(t.to[E])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=c({},this.currentValue);n[E]&&(n[E]=u.map(n[E],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){r.off(e,b),r.on(e,b,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return u.each(e.match(/(\w|\d)+\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=f.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(o,a){var r=Array.isArray(a)?[]:{},s=function(n){var i=t/e.duration,r=t,s=1*o[n],l=a[n]-o[n],c=e.duration;return p.getEasing(e.easing)(i,r,s,l,c)};return u.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(r[e]="object"===("undefined"==typeof t?"undefined":i(t))?n(o[e],t):s(e))}),r};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},O={initAnimation:function(){},animate:function(){return(new y).resolve().promise()},stop:S,isSynchronous:!0},R=function(e){e=e||{};var t={transition:g.transition()?A:B,frame:B,noAnimation:O},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},M=function(e,t,n,i){u.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},P=function(e,t){return M(e,t,function(e){return k(e)},"a plain object")},V=function(e,t){return M(e,t,function(e){return"string"==typeof e},"a string")},F={setup:function(){}},H={validateConfig:function(e){V(e,"css")},setup:function(){}},$={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},L={validateConfig:function(e){P(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=c({of:a},$[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[E]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=I.exec(e)))return parseInt(t[1]+"1")*t[2]}},z={setup:function(e,t){var n,i=t.from,o=k(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},N={validateConfig:function(e){P(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=h.getTranslate(e);t.from[E]=this._getCssTransform(l,r),t.to={opacity:a},t.to[E]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},W={custom:F,slide:L,slideIn:L,slideOut:L,fade:z,fadeIn:z,fadeOut:z,pop:N,css:H},q=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},G={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},K={duration:400,easing:"ease",delay:0},j=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(D,e),ue.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},U=function(e){var t=e.element,n=e.config;if(t.removeData(D),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},Y=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){U(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},X=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(_,"dxFXStartAnimation"),J=function(e){r.off(e.element,Z),r.on(e.element,Z,function(){ue.stop(e.element)}),e.deferred.always(function(){r.off(e.element,Z)})},Q=function(e,t){var n="css"===t.type?K:G,i=c(!0,{},n,t),a=q(i),r=R(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:j,start:Y,stop:X,deferred:new y};return C(a.validateConfig)&&a.validateConfig(i),J(s),s},ee=function(e,t){var n=o(e);if(!n.length)return(new y).resolve().promise();var i=Q(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),ae(e)||re(e,n)},ne=function(e){return e.data(T)||[]},ie=function(e,t){e.data(T,t)},oe=function(e){e.removeData(T)},ae=function(e){return!!e.data(D)},re=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&oe(t),se(i).done(function(){ae(t)||e(t)})}},se=function(e){return e.setup(),ue.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=o(a),i=0,r=0,s=m.calculate(e,t.position),l=e.offset(),d=e.position();d.top>l.top&&(r=n.scrollTop()),d.left>l.left&&(i=n.scrollLeft()),c(t,{left:s.h.location-l.left+d.left-i,top:s.v.location-l.top+d.top-r}),delete t.position}},ce=function(e,t){u.each(t,function(t,n){try{e.css(t,d.isFunction(n)?n():n)}catch(e){}})},de=function(e,t){var n=o(e),i=ne(n);u.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ae(n)||re(n,i);var a=n.data(D);a&&a.stop(t),n.removeData(D),oe(n)},ue={off:!1,animationTypes:W,animate:ee,createAnimation:Q,isAnimating:ae,stop:de,_simulatedTransitionEndDelay:100};e.exports=ue},function(e,t,n){var i=n(55),o=n(1).isString,a=n(3),r=n(11).inArray,s=n(218).getFormatter,l=n(219).getFormat,c=n(314).getParser,d=n(220),u=n(49),h=n(17);n(81);var p={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},f={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},g=i({_getPatternByFormat:function(e){return p[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return a.each(t.split(/\W+/),function(e,t){a.each(f,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return d.getMonthNames(e)},getDayNames:function(e){return d.getDayNames(e)},getQuarterNames:function(e){return d.getQuarterNames(e)},getPeriodNames:function(e){return d.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a<i.length;a++)if(i[a]!==o[a])return!isNaN(parseInt(i[a]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,o(t))return t=p[t.toLowerCase()]||t,u.convertDigits(s(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,o,a=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||p[t.toLowerCase()]){o=function(e){var n=a.format(e,t);return u.convertDigits(n,!0)};try{i=l(o)}catch(e){}}else i=t;if(i)return e=u.convertDigits(e,!0),c(i,this)(e);if(h.log("W0012"),n=new Date(e),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=g},function(e,t,n){var i=n(0).extend,o=n(46);i(t,o,{modules:[],foreachNodes:function(e,t){for(var n=0;n<e.length;n++)t(e[n])!==!1&&e[n].hasChildren&&e[n].children.length&&this.foreachNodes(e[n].children,t)}})},function(e,t,n){var i,o=n(171),a=n(12),r=n(5),s=n(172),l=new o,c=new s,d=function(){},u=function(){},h=t.setDataStrategy=function(e){c.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){d(e);var n=t.call(this,e);return u(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)r.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=c,t.beforeCleanData=function(e){d=e},t.afterCleanData=function(e){u=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(a.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},function(e,t,n){var i=n(102),o=n(17),a={},r=i(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:r,errorHandler:s,_errorHandler:l},e.exports=a},function(e,t,n){var i=n(3).map,o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(r(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},c=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(s(e).replace(/-/g," "))},u=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()&&"-"!==n&&")"!==n||n in h,"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=s,t.camelize=c,t.humanize=d,t.titleize=u,t.underscore=l,t.captionize=p},function(e,t,n){var i=n(2),o=n(5),a=n(106),r=n(13),s=n(14),l=n(8),c=n(0).extend,d=n(156),u=n(89),h=n(28),p=n(69),f=n(9),g=n(20),m=n(18),_=n(95),v="dx-button",w="dx-button-content",x="dx-button-has-text",y="dx-button-has-icon",b="dx-template-wrapper",C="dx-button-text",k="content",S=100,I=h.inherit({_supportedKeys:function(){var e=this,t=function(t){t.preventDefault(),e._executeClickAction(t)};return c(this.callBase(),{space:t,enter:t})},_setDeprecatedOptions:function(){this.callBase()},_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=g.current();return g.isMaterial(e)||g.isAndroid5(e)},options:{useInkRipple:!0}}])},_getAnonymousTemplateName:function(){return k},_feedbackHideTimeout:S,_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new _(function(e){var t=e.model,n=a.getImageContainer(t&&t.icon),o=t&&t.text?i("<span>").text(t.text).addClass(C):void 0;i(e.container).append(n).append(o)},this)},_initMarkup:function(){this.$element().addClass(v),this._renderType(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),this.callBase(),this._updateContent()},_renderInkRipple:function(){var e=!this.option("text")&&this.option("icon")||"back"===this.option("type"),t={};e&&c(t,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=p.render(t)},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._$content,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_updateContent:function(){var e=this.$element(),t=this._getContentData();this._$content?this._$content.empty():this._$content=i("<div>").addClass(w).appendTo(e),e.toggleClass(y,!!t.icon).toggleClass(x,!!t.text);var n=this._getAnonymousTemplateName()===this.option("template"),o=this._getTemplateByOption("template"),a=i(o.render({model:t,container:r.getPublicElement(this._$content),transclude:n}));a.hasClass(b)&&(this._$content.replaceWith(a),this._$content=a,this._$content.addClass(w)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.event,n=u.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("<input>").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(this._$content),o.on(this._$submitInput,"click",function(t){e({event:t})})},_getContentData:function(){var e=this.option("icon"),t=this.option("text"),n="back"===this.option("type");return n&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=f.addNamespace(m.name,this.NAME),n={};this.option("useSubmitBehavior")&&(n.afterExecute=function(e){setTimeout(function(){e.component._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",n),o.off(this.$element(),t),o.on(this.$element(),t,function(t){e._executeClickAction(t)})},_executeClickAction:function(e){this._clickAction({event:e,validationGroup:u.getGroupConfig(this._findGroup())})},_updateAriaLabel:function(){var e=this.option("icon"),t=this.option("text");"image"===a.getImageSourceType(e)&&(e=e.indexOf("base64")===-1?e.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64");var n=t||e||"";n=n.toString().trim(),this.setAria("label",n)},_renderType:function(){var e=this.option("type");e&&this.$element().addClass("dx-button-"+e)},_refreshType:function(e){var t=this.option("type");e&&this.$element().removeClass("dx-button-"+e).addClass("dx-button-"+t),this.$element().hasClass(y)||"back"!==t||this._updateContent()},_optionChanged:function(e){switch(e.name){case"onClick":this._renderClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._refreshType(e.previousValue),this._updateContent(),this._updateAriaLabel();break;case"template":this._updateContent();break;case"useInkRipple":this._invalidate();break;case"useSubmitBehavior":this._invalidate();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase(),delete this._$content}}).include(d);l("dxButton",I),e.exports=I},function(e,t,n){var i=n(1),o=n(4),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")}}(),r=function(e){var t=o.splitPair(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),{h:n,v:i}},s=function(e){var t=o.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),r=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(r)||(r=i),{top:i,right:a,bottom:r,left:n}},l=function(){var e,t,n,o=arguments[0],a=[].slice.call(arguments).slice(1);if(i.isFunction(o))return o.apply(this,a);for(var r=0;r<a.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=a[r],"string"===i.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),o=o.replace(t,n);return o},c=function(){var e=function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),d=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.pairToObject=r,t.quadToObject=s,t.format=l,t.replaceAll=c,t.isEmpty=d},function(e,t,n){var i=n(11).inArray,o=n(12),a=n(68),r=n(6),s=r.getNavigator(),l=n(14),c=n(83),d={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},u=function(e){return!!c.styleProp(e)},h=function(){var e=l.real(),t=e.platform,n=e.version,o=n&&n[0]<4&&"android"===t,a=!o&&i(t,["ios","android","win"])>-1||e.mac;return a},p=function(e){if("text"===e)return!0;var t=o.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},f=function(e,t){return(e.hasProperty("ontouchstart")||!!t)&&!e.hasProperty("callPhantom")},g=function(e,t){return e.hasProperty("PointerEvent")||!!t.pointerEnabled},m=f(r,s.maxTouchPoints),_=g(r,s),v=!!s.maxTouchPoints||!!s.msMaxTouchPoints;t.touchEvents=m,t.pointerEvents=_,t.touch=m||_&&v,t.transition=a(function(){return u("transition")}),t.transitionEndEventName=a(function(){return d[c.styleProp("transition")]}),t.animation=a(function(){return u("animation")}),t.nativeScrolling=h(),t.styleProp=c.styleProp,t.stylePropPrefix=c.stylePropPrefix,t.supportProp=u,t.inputType=p},function(e,t,n){function i(e){return/^(or|\|\||\|)$/i.test(e)}function o(e){return/^(and|&&|&)$/i.test(e)}var a=n(1).isFunction,r=n(12),s=n(51).add,l=n(6),c=l.getWindow(),d=n(3).map,u=n(22).toComparable,h=n(7).Deferred,p=n(1),f="DEVEXTREME_XHR_ERROR_UNLOAD",g=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},m=function(e){return Array.isArray(e)||(e=[e]),d(e,function(e){var t={selector:a(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},_=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n?n:e};return s(function(){r.listen(c,"beforeunload",function(){e=!0})}),function(t,i){return e?f:t.status<400?n(i):t.statusText}}(),v={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},w=function(){var e,t=0,n=function(){0===t&&(e=new h),t++},i=function(){t--,t<1&&e.resolve();
|
|
11
|
+
this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+F,n=C.addNamespace("focusin",t);n=n+" "+C.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+C.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+F,t=C.addNamespace("focusin",e),n=C.addNamespace("focusout",e),a=this._focusTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var r=C.addNamespace("beforeactivate",e);o.on(this._focusTarget(),r,function(e){i(e.target).is(b.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(M,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(M)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new y({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),o=i[n];if(void 0!==o){var a=o.bind(this);return a(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=C.addNamespace(k.start,T),a=C.addNamespace(k.end,T);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),a,t),e.option("hoverStateEnabled")){var s=new r(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();o.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),o.on(l,a,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:d.noop,_hoverEndHandler:d.noop,_attachFeedbackEvents:function(){var e,t,n=this,a=n._activeStateUnit,s=C.addNamespace(S.active,T),l=C.addNamespace(S.inactive,T);if(o.off(n._eventBindingTarget(),s,a),o.off(n._eventBindingTarget(),l,a),n.option("activeStateEnabled")){var c=function(e){var t=i(e.element),o=e.value,a=e.event;n._toggleActiveState(t,o,a)};o.on(n._eventBindingTarget(),s,a,{timeout:n._feedbackShowTimeout},function(t){e=e||new r(c),e.execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,a,{timeout:n._feedbackHideTimeout},function(e){t=t||new r(c,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(A,t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass(R,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(B,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(u.isPlainObject(t[0]))return void c(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var o=this[e+"OptionMap"];this[e].option(o?o(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null===n||void 0===n?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(u.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();c(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=W},function(e,t,n){var i=n(0).extend,o=n(6),a=o.getNavigator(),r=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,c=/(edge)\/((\d+)?[\w.]+)/,d=/(safari)/i,u=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||c.exec(e)||e.indexOf("compatible")<0&&u.exec(e)||r.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&d.exec(e)&&(i="safari",t.webkit=!0,o=/Version\/([0-9.]+)/i.exec(e),o=o&&o[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:h},h(a.userAgent))},function(e,t,n){var i=n(0),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},a=function(){return arguments.length?void i.extend(o,arguments[0]):o};"undefined"!=typeof DevExpress&&DevExpress.config&&a(DevExpress.config),e.exports=a},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function o(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function a(e,t){var n,a=r(t||0)+2,l=e.toString().split("."),c=e,d=Math.abs(e),u=s(e),h=d>1?10:0;return 1===l.length?e:(u||(s(t)&&(a=l[0].length+i(t)),e=d,e=e-Math.floor(e)+h),a=o()&&i(e)>6||a>7?15:7,u||(n=parseFloat(e.toPrecision(a)).toString().split("."),n[0]!==h.toString())?parseFloat(c.toPrecision(a)):parseFloat(l[0]+"."+n[1]))}function r(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[1].length)}var s=n(1).isExponential,l=function(e){return 0===e?0:e/Math.abs(e)},c=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},d=function(e,t,n){return e>=t&&e<=n};t.sign=l,t.fitIntoRange=c,t.inRange=d,t.adjust=a,t.getPrecision=r,t.getExponent=i},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6).getWindow(),r=n(5),s=n(17),l=n(13).getPublicElement,c=n(0).extend,d=n(1),u=n(3),h=n(24),p=n(224),f=n(105),g=n(40),m=n(77),_=n(129),v=n(9),w=n(7),x=w.when,y=w.Deferred,b=v.addNamespace(_,"dxFX"),C=d.isFunction,k=d.isPlainObject,S=n(4).noop,I=/^([+-])=(.*)/i,D="dxAnimData",T="dxAnimQueue",E="transform",A={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ce(e,t.from);var n=this,i=new y,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?x(i,o).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i,o=this,a=Date.now()+t.delay,s=new y,l=new y,c=new y,d=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),r.off(e,d),r.off(e,b)},r.one(e,d,function(){Date.now()-a>=t.duration&&l.reject()}),r.off(e,b),r.on(e,b,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ue._simulatedTransitionEndDelay),x(l,c).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ce(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(k(t.to)&&u.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},B={initAnimation:function(e,t){ce(e,t.from)},animate:function(e,t){var n=new y,i=this;return t?(u.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[E]&&(t.from[E]=i._parseTransform(t.from[E]),t.to[E]=i._parseTransform(t.to[E])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=c({},this.currentValue);n[E]&&(n[E]=u.map(n[E],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){r.off(e,b),r.on(e,b,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return u.each(e.match(/\w+\d*\w*\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=f.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(o,a){var r=Array.isArray(a)?[]:{},s=function(n){var i=t/e.duration,r=t,s=1*o[n],l=a[n]-o[n],c=e.duration;return p.getEasing(e.easing)(i,r,s,l,c)};return u.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(r[e]="object"===("undefined"==typeof t?"undefined":i(t))?n(o[e],t):s(e))}),r};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},O={initAnimation:function(){},animate:function(){return(new y).resolve().promise()},stop:S,isSynchronous:!0},R=function(e){e=e||{};var t={transition:g.transition()?A:B,frame:B,noAnimation:O},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},M=function(e,t,n,i){u.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},P=function(e,t){return M(e,t,function(e){return k(e)},"a plain object")},V=function(e,t){return M(e,t,function(e){return"string"==typeof e},"a string")},F={setup:function(){}},H={validateConfig:function(e){V(e,"css")},setup:function(){}},$={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},L={validateConfig:function(e){P(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=c({of:a},$[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[E]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=I.exec(e)))return parseInt(t[1]+"1")*t[2]}},z={setup:function(e,t){var n,i=t.from,o=k(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},N={validateConfig:function(e){P(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=h.getTranslate(e);t.from[E]=this._getCssTransform(l,r),t.to={opacity:a},t.to[E]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},W={custom:F,slide:L,slideIn:L,slideOut:L,fade:z,fadeIn:z,fadeOut:z,pop:N,css:H},q=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},G={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},K={duration:400,easing:"ease",delay:0},j=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(D,e),ue.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},U=function(e){var t=e.element,n=e.config;if(t.removeData(D),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},Y=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){U(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},X=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(_,"dxFXStartAnimation"),J=function(e){r.off(e.element,Z),r.on(e.element,Z,function(){ue.stop(e.element)}),e.deferred.always(function(){r.off(e.element,Z)})},Q=function(e,t){var n="css"===t.type?K:G,i=c(!0,{},n,t),a=q(i),r=R(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:j,start:Y,stop:X,deferred:new y};return C(a.validateConfig)&&a.validateConfig(i),J(s),s},ee=function(e,t){var n=o(e);if(!n.length)return(new y).resolve().promise();var i=Q(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),ae(e)||re(e,n)},ne=function(e){return e.data(T)||[]},ie=function(e,t){e.data(T,t)},oe=function(e){e.removeData(T)},ae=function(e){return!!e.data(D)},re=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&oe(t),se(i).done(function(){ae(t)||e(t)})}},se=function(e){return e.setup(),ue.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=o(a),i=0,r=0,s=m.calculate(e,t.position),l=e.offset(),d=e.position();d.top>l.top&&(r=n.scrollTop()),d.left>l.left&&(i=n.scrollLeft()),c(t,{left:s.h.location-l.left+d.left-i,top:s.v.location-l.top+d.top-r}),delete t.position}},ce=function(e,t){u.each(t,function(t,n){try{e.css(t,d.isFunction(n)?n():n)}catch(e){}})},de=function(e,t){var n=o(e),i=ne(n);u.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ae(n)||re(n,i);var a=n.data(D);a&&a.stop(t),n.removeData(D),oe(n)},ue={off:!1,animationTypes:W,animate:ee,createAnimation:Q,isAnimating:ae,stop:de,_simulatedTransitionEndDelay:100};e.exports=ue},function(e,t,n){var i=n(55),o=n(1).isString,a=n(3),r=n(11).inArray,s=n(218).getFormatter,l=n(219).getFormat,c=n(314).getParser,d=n(220),u=n(49),h=n(17);n(81);var p={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},f={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},g=i({_getPatternByFormat:function(e){return p[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return a.each(t.split(/\W+/),function(e,t){a.each(f,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return d.getMonthNames(e)},getDayNames:function(e){return d.getDayNames(e)},getQuarterNames:function(e){return d.getQuarterNames(e)},getPeriodNames:function(e){return d.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a<i.length;a++)if(i[a]!==o[a])return!isNaN(parseInt(i[a]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,o(t))return t=p[t.toLowerCase()]||t,u.convertDigits(s(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,o,a=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||p[t.toLowerCase()]){o=function(e){var n=a.format(e,t);return u.convertDigits(n,!0)};try{i=l(o)}catch(e){}}else i=t;if(i)return e=u.convertDigits(e,!0),c(i,this)(e);if(h.log("W0012"),n=new Date(e),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=g},function(e,t,n){var i=n(0).extend,o=n(46);i(t,o,{modules:[],foreachNodes:function(e,t){for(var n=0;n<e.length;n++)t(e[n])!==!1&&e[n].hasChildren&&e[n].children.length&&this.foreachNodes(e[n].children,t)}})},function(e,t,n){var i,o=n(171),a=n(12),r=n(5),s=n(172),l=new o,c=new s,d=function(){},u=function(){},h=t.setDataStrategy=function(e){c.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){d(e);var n=t.call(this,e);return u(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)r.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=c,t.beforeCleanData=function(e){d=e},t.afterCleanData=function(e){u=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(a.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},function(e,t,n){var i=n(102),o=n(17),a={},r=i(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:r,errorHandler:s,_errorHandler:l},e.exports=a},function(e,t,n){var i=n(3).map,o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(r(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},c=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(s(e).replace(/-/g," "))},u=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()&&"-"!==n&&")"!==n||n in h,"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=s,t.camelize=c,t.humanize=d,t.titleize=u,t.underscore=l,t.captionize=p},function(e,t,n){var i=n(2),o=n(5),a=n(106),r=n(13),s=n(14),l=n(8),c=n(0).extend,d=n(156),u=n(89),h=n(28),p=n(69),f=n(9),g=n(20),m=n(18),_=n(95),v="dx-button",w="dx-button-content",x="dx-button-has-text",y="dx-button-has-icon",b="dx-template-wrapper",C="dx-button-text",k="content",S=100,I=h.inherit({_supportedKeys:function(){var e=this,t=function(t){t.preventDefault(),e._executeClickAction(t)};return c(this.callBase(),{space:t,enter:t})},_setDeprecatedOptions:function(){this.callBase()},_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=g.current();return g.isMaterial(e)||g.isAndroid5(e)},options:{useInkRipple:!0}}])},_getAnonymousTemplateName:function(){return k},_feedbackHideTimeout:S,_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new _(function(e){var t=e.model,n=a.getImageContainer(t&&t.icon),o=t&&t.text?i("<span>").text(t.text).addClass(C):void 0;i(e.container).append(n).append(o)},this)},_initMarkup:function(){this.$element().addClass(v),this._renderType(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),this.callBase(),this._updateContent()},_renderInkRipple:function(){var e=!this.option("text")&&this.option("icon")||"back"===this.option("type"),t={};e&&c(t,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=p.render(t)},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._$content,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_updateContent:function(){var e=this.$element(),t=this._getContentData();this._$content?this._$content.empty():this._$content=i("<div>").addClass(w).appendTo(e),e.toggleClass(y,!!t.icon).toggleClass(x,!!t.text);var n=this._getAnonymousTemplateName()===this.option("template"),o=this._getTemplateByOption("template"),a=i(o.render({model:t,container:r.getPublicElement(this._$content),transclude:n}));a.hasClass(b)&&(this._$content.replaceWith(a),this._$content=a,this._$content.addClass(w)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.event,n=u.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("<input>").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(this._$content),o.on(this._$submitInput,"click",function(t){e({event:t})})},_getContentData:function(){var e=this.option("icon"),t=this.option("text"),n="back"===this.option("type");return n&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=f.addNamespace(m.name,this.NAME),n={};this.option("useSubmitBehavior")&&(n.afterExecute=function(e){setTimeout(function(){e.component._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",n),o.off(this.$element(),t),o.on(this.$element(),t,function(t){e._executeClickAction(t)})},_executeClickAction:function(e){this._clickAction({event:e,validationGroup:u.getGroupConfig(this._findGroup())})},_updateAriaLabel:function(){var e=this.option("icon"),t=this.option("text");"image"===a.getImageSourceType(e)&&(e=e.indexOf("base64")===-1?e.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64");var n=t||e||"";n=n.toString().trim(),this.setAria("label",n)},_renderType:function(){var e=this.option("type");e&&this.$element().addClass("dx-button-"+e)},_refreshType:function(e){var t=this.option("type");e&&this.$element().removeClass("dx-button-"+e).addClass("dx-button-"+t),this.$element().hasClass(y)||"back"!==t||this._updateContent()},_optionChanged:function(e){switch(e.name){case"onClick":this._renderClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._refreshType(e.previousValue),this._updateContent(),this._updateAriaLabel();break;case"template":this._updateContent();break;case"useInkRipple":this._invalidate();break;case"useSubmitBehavior":this._invalidate();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase(),delete this._$content}}).include(d);l("dxButton",I),e.exports=I},function(e,t,n){var i=n(1),o=n(4),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")}}(),r=function(e){var t=o.splitPair(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),{h:n,v:i}},s=function(e){var t=o.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),r=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(r)||(r=i),{top:i,right:a,bottom:r,left:n}},l=function(){var e,t,n,o=arguments[0],a=[].slice.call(arguments).slice(1);if(i.isFunction(o))return o.apply(this,a);for(var r=0;r<a.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=a[r],"string"===i.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),o=o.replace(t,n);return o},c=function(){var e=function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),d=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.pairToObject=r,t.quadToObject=s,t.format=l,t.replaceAll=c,t.isEmpty=d},function(e,t,n){var i=n(11).inArray,o=n(12),a=n(68),r=n(6),s=r.getNavigator(),l=n(14),c=n(83),d={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},u=function(e){return!!c.styleProp(e)},h=function(){var e=l.real(),t=e.platform,n=e.version,o=n&&n[0]<4&&"android"===t,a=!o&&i(t,["ios","android","win"])>-1||e.mac;return a},p=function(e){if("text"===e)return!0;var t=o.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},f=function(e,t){return(e.hasProperty("ontouchstart")||!!t)&&!e.hasProperty("callPhantom")},g=function(e,t){return e.hasProperty("PointerEvent")||!!t.pointerEnabled},m=f(r,s.maxTouchPoints),_=g(r,s),v=!!s.maxTouchPoints||!!s.msMaxTouchPoints;t.touchEvents=m,t.pointerEvents=_,t.touch=m||_&&v,t.transition=a(function(){return u("transition")}),t.transitionEndEventName=a(function(){return d[c.styleProp("transition")]}),t.animation=a(function(){return u("animation")}),t.nativeScrolling=h(),t.styleProp=c.styleProp,t.stylePropPrefix=c.stylePropPrefix,t.supportProp=u,t.inputType=p},function(e,t,n){function i(e){return/^(or|\|\||\|)$/i.test(e)}function o(e){return/^(and|&&|&)$/i.test(e)}var a=n(1).isFunction,r=n(12),s=n(51).add,l=n(6),c=l.getWindow(),d=n(3).map,u=n(22).toComparable,h=n(7).Deferred,p=n(1),f="DEVEXTREME_XHR_ERROR_UNLOAD",g=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},m=function(e){return Array.isArray(e)||(e=[e]),d(e,function(e){var t={selector:a(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},_=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n?n:e};return s(function(){r.listen(c,"beforeunload",function(){e=!0})}),function(t,i){return e?f:t.status<400?n(i):t.statusText}}(),v={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},w=function(){var e,t=0,n=function(){0===t&&(e=new h),t++},i=function(){t--,t<1&&e.resolve();
|
|
12
12
|
},o=function(){var n=0===t?(new h).resolve():e;return n.promise()},a=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:o,reset:a}}(),x=function(e,t,n){if(Array.isArray(e)){for(var i,o=d(t,function(e,t){return t}),a=0;a<o.length;a++)if(i=o[a],u(t[i],!0)!=u(n[i],!0))return!1;return!0}return u(t,!0)==u(n,!0)},y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b=function(e){function t(e){return y.charAt(e)}Array.isArray(e)||(e=C(String(e)));for(var n="",i=0;i<e.length;i+=3){var o=e[i],a=e[i+1],r=e[i+2];n+=d([o>>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n},C=function(e){var t,n,i=[];for(n=0;n<e.length;n++)t=e.charCodeAt(n),t<128?i.push(t):t<2048?i.push(192+(t>>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},k=function(e){return"!"===e[0]&&Array.isArray(e[1])},S=function(e){return"and"===e||"or"===e},I=function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!p.isFunction(t)||!(Array.isArray(n)||p.isFunction(n)||S(n)))},D={XHR_ERROR_UNLOAD:f,normalizeBinaryCriterion:g,normalizeSortingInfo:m,errorMessageFromXhr:_,aggregators:v,keysEqual:x,isDisjunctiveOperator:i,isConjunctiveOperator:o,processRequestResultLock:w,isUnaryOperation:k,isGroupCriterion:I,base64_encode:b};e.exports=D},function(e,t,n){var i=n(144),o=n(349),a={array:i,remote:o},r=function(){var e=Array.isArray(arguments[0])?"array":"remote";return a[e].apply(this,arguments)};e.exports=r,e.exports.queryImpl=a},function(e,t,n){var i=n(26),o=n(59).compare,a=n(102),r=n(74)();if(r&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344)},function(e,t,n){var i=n(2),o=n(5),a=n(348),r=n(21),s=n(0).extend,l=n(3).each,c=n(4).noop,d=n(1).isDefined,u=n(188),h=n(22).compileGetter,p=n(52).DataSource,f=n(263),g=n(7),m=g.when,_=g.Deferred,v="dxItemDeleting",w=-1,x=function(e){return e!==w},y=a.inherit({_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return s(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:w,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=h(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new f({mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:function(){return e.option("keyExpr")?e.option("keyExpr"):e._dataSource&&e._dataSource.key()},keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){e._dataSource._applyMapFunction(t)}):(new _).resolve([])},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=u;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),l(e,function(e,i){var o=t._getIndexByKey(i);x(o)&&n.push(o)}),t._editStrategy.endCache(),n},_initMarkup:function(){this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||(this._syncSelectionOptions(),this._normalizeSelectedItems()),this.callBase();var e=this._getSelectedItemIndices();this._renderSelection(e,[])},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t,n,i;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),d(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":if(n=this.option("selectedItems")||[],i=this._editStrategy.getIndexByItemData(n[0]),this.option("selectionRequired")&&!x(i))return void this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",n[0]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(n));break;case"selectedItem":if(t=this.option("selectedItem"),i=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!x(i))return void this._syncSelectionOptions("selectedIndex");d(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",w));break;case"selectedItemKeys":var o=this.option("selectedItemKeys");if(this.option("selectionRequired")&&!x(this._getIndexByKey(o[0])))return void this._syncSelectionOptions("selectedIndex");this._selection.setSelection(o)}},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),n=d(t)&&t.length;return n||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this.option("selectedItems");if(e.length>1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionSilent("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}else this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,i)||this._selection.setSelection(i)}},_renderSelection:c,_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:i(e.currentTarget),event:e}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){if(this.option("selectionByClick")){var t=e.currentTarget;this.isItemSelected(t)?this.unselectItem(e.currentTarget):this.selectItem(e.currentTarget)}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=i(e.itemElement);this._isItemSelected(this._editStrategy.getNormalizedIndex(t))?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")}},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var o=t._selectionChangePromise;if(!t._rendering){var a,r,s=[],l=[];for(t._editStrategy.beginCache(),r=0;r<n.length;r++)a=t._getIndexByKey(n[r]),s.push(a),t._addSelection(a);for(r=0;r<i.length;r++)a=t._getIndexByKey(i[r]),l.push(a),t._removeSelection(a);t._editStrategy.endCache(),t._updateSelection(s,l)}m(o).done(function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)})}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:function(){this._renderSelection.apply(this,arguments)},_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);x(e)&&(t.removeClass(this._selectedItemClass()),this._setAriaSelected(t,"false"),o.triggerHandler(t,"stateChanged",!1))},_showDeprecatedSelectionMode:function(){r.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);x(e)&&(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true"),o.triggerHandler(t,"stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t)},_optionChanged:function(e){if(this._cancelOptionChange!==e.name)switch(e.name){case"selectionMode":"multi"===e.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"dataSource":(!e.value||Array.isArray(e.value)&&!e.value.length)&&this.option("selectedItemKeys",[]),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name),this._normalizeSelectedItems();break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_setOptionSilent:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},_waitDeletingPrepare:function(e){if(e.data(v))return(new _).resolve().promise();e.data(v,!0);var t=new _,n={cancel:!1},i=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return m(i).always(function(o){var a=!i,r=!a&&"resolved"===i.state(),s=!!arguments.length,l=a||r&&!s||r&&o;m(g.fromPromise(n.cancel)).always(function(){e.data(v,!1)}).done(function(e){l&&!e?t.resolve():t.reject()}).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new _).resolve().promise();var t=new _,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw r.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done(function(e){void 0!==e?t.resolve():t.reject()}).fail(function(){t.reject()}),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=new _;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),n=e+1;n<t.length;n++)i(t[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof p||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(x(t)){var n=this._getKeyByIndex(t);if(!this._selection.isItemSelected(n))if("single"===this.option("selectionMode"))this._selection.setSelection([n]);else{var i=this.option("selectedItemKeys");i.push(n),this._selection.setSelection(i)}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(x(t)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(t);this._selection.isItemSelected(i)&&this._selection.deselect([i])}}},deleteItem:function(e){var t=this,n=new _,i=this._editStrategy.getItemElement(e),o=this._editStrategy.getNormalizedIndex(e),a=this._dataSource?"dataSource":"items",r=this._itemResponseWaitClass();return x(o)?this._waitDeletingPrepare(i).done(function(){i.addClass(r);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done(function(){t._updateSelectionAfterDelete(o),t._updateIndicesAfterIndex(o),t._editStrategy.deleteItemAtIndex(o),t._simulateOptionChange(a),t._itemEventHandler(i,"onItemDeleted",e,{beforeExecute:function(){i.detach()},excludeValidators:["disabled","readOnly"]}),t._renderEmptyMessage(),t._tryRefreshLastPage().done(function(){n.resolveWith(t)})}).fail(function(){i.removeClass(r),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=new _,i=this,o=this._editStrategy,a=o.getItemElement(e),r=o.getItemElement(t),s=o.getNormalizedIndex(e),l=o.getNormalizedIndex(t),c=this._dataSource?"dataSource":"items",d=x(s)&&x(l)&&s!==l;return d?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){r[o.itemPlacementFunc(s,l)](a),o.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===c&&i._simulateOptionChange(c),i._itemEventHandler(a,"onItemReordered",{fromIndex:o.getIndex(s),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})})}});e.exports=y},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=n(196),s=n(39),l=n(3),c=n(0).extend,d=n(0).extendFromObject,u=n(22).toComparable,h=n(192),p=n(41),f=n(88),g=n(54),m=n(6).getWindow(),_="dx-selection-disabled",v="dx-datagrid-group-opened",w="dx-datagrid-group-closed",x="dx-datagrid-expand",y="nodata",b={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}};e.exports=function(){var t=function(){var e,t,n=arguments[1],i=this.calculateCellValue(n);return a.isDefined(i)?C(this.dataType)?(t=arguments[0],b[t](i)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(i)/e)*e):void 0:null},n=function(e,t){return a.isFunction(e)&&a.isFunction(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback:e===t},C=function(e){return"date"===e||"datetime"===e},k=function(e){e.get(0).textContent="\xa0"};return{renderNoDataText:function(e){var t=this;if(e=e||this.element()){var n=t.addWidgetPrefix(y),o=e.find("."+n).last(),a=this._dataController.isEmpty(),r=this._dataController.isLoading();o.length||(o=i("<span>").addClass(n).appendTo(e)),a&&!r?o.removeClass("dx-hidden").text(t._getNoDataText()):o.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var o,a=this;a._loadPanel&&a._loadPanel.$element().remove(),o=a.option("loadPanel"),o&&("auto"===o.enabled?!n:o.enabled)?(o=c({shading:!1,message:o.text,position:function(){return e.height()>i(m).height()?{of:i(m),boundary:e,collision:"fit"}:{of:e}},container:t},o),a._loadPanel=a._createComponent(i("<div>").appendTo(t),h,o)):a._loadPanel=null},getIndexByKey:function(e,t,n){var i,r=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var s=0;s<t.length;s++)if(i=a.isDefined(n)?t[s][n]:t[s],o.equalByValue(e,i)){r=s;break}}return r},combineFilters:function(e,t){var n,i=[];for(t=t||"and",n=0;n<e.length;n++)e[n]&&(i.length&&i.push(t),i.push(e[n]));if(1===i.length&&(i=i[0]),i.length)return i},checkChanges:function(e,t){var n,i=0;for(n=0;n<t.length;n++)e[t[n]]&&i++;return e.length&&e.length===i},equalFilterParameters:function(t,n){var i;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(i=0;i<t.length;i++)if(!e.exports.equalFilterParameters(t[i],n[i]))return!1;return!0}return a.isFunction(t)&&t.columnIndex>=0&&a.isFunction(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&u(t.filterValue)===u(n.filterValue):u(t)==u(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:function(e,t){var n=f.format(e,t.format,t.precision)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},getFormatOptionsByColumn:function(e,t){return{format:e.format,precision:e.precision,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(t,n){var i,o,a="(";for(i=0;i<t.length;i++)o=t[i],a+=(i>0?", ":"")+e.exports.getSummaryText(o,n);return a+=")"},getSummaryText:function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return this.formatValue(e.value,{format:e.valueFormat,precision:e.precision,getDisplayFormat:function(t){return n?s.format(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){e=e||[];var t,n;for(t=p.normalizeSortingInfo(e),n=0;n<e.length;n++)e&&e[n]&&void 0!==e[n].isExpanded&&(t[n].isExpanded=e[n].isExpanded),e&&e[n]&&void 0!==e[n].groupInterval&&(t[n].groupInterval=e[n].groupInterval);return t},getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,n){var i=[],o=e.dataField||e.name,a=r.getGroupInterval(e);return a?(l.each(a,function(r,s){i.push(n?{selector:o,groupInterval:s,isExpanded:r<a.length-1}:t.bind(e,s))}),i):(n?i=[{selector:o,isExpanded:!1}]:(i=function t(n){var t=e.calculateCellValue(n);return void 0!==t&&""!==t||(t=null),t},e.sortingMethod&&(i=[{selector:i,compare:e.sortingMethod.bind(e)}])),i)},equalSortParameters:function(t,i,o){var a;if(t=e.exports.normalizeSortingInfo(t),i=e.exports.normalizeSortingInfo(i),Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;for(a=0;a<t.length;a++)if(!n(t[a].selector,i[a].selector)||t[a].desc!==i[a].desc||t[a].groupInterval!==i[a].groupInterval||!o&&Boolean(t[a].isExpanded)!==Boolean(i[a].isExpanded))return!1;return!0}return(!t||!t.length)==(!i||!i.length)},getPointsByColumns:function(e,t,n,i){var o,a,r,s,l,c,d=e.length,u=!1,h=i||0,p=[];for(a=0;a<=d;a++)a<d&&(r=e.eq(a),s=r.offset(),c="rtl"===r.css("direction")),o={index:h,x:s?s.left+(!n&&c^a===d?r.outerWidth():0):0,y:s?s.top+(n&&a===d?r.outerHeight():0):0,columnIndex:h},!n&&a>0&&(l=e.eq(a-1).offset(),l.top<o.y&&(o.y=l.top)),t&&(u=t(o)),u||p.push(o),h++;return p},createObjectWithChanges:function(e,t){var n=e?Object.create(Object.getPrototypeOf(e)):{},i=d({},e);return g.deepExtendArraySafe(n,i,!0,!0),g.deepExtendArraySafe(n,t,!0,!0)},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(e,t){var n,o=i(e);!a.isDefined(t.value)||t.data&&t.data.isContinuation||t.row.inserted?k(o):(n=t.component.getView("rowsView"),o.addClass(x).addClass(_),i("<div>").addClass(t.value?v:w).appendTo(o),n.setAria("label",t.value?n.localize("dxDataGrid-ariaCollapse"):n.localize("dxDataGrid-ariaExpand"),o))}}},setEmptyText:k,isDateType:C,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},getLastResizableColumnIndex:function(e,t){for(var n=e.some(function(e){return e&&!e.command&&!e.fixed&&e.allowResizing!==!1}),i=e.length-1;e[i];i--){var o=e[i],a=t&&t[i],r=!n||o.allowResizing!==!1;if(!o.command&&!o.fixed&&"adaptiveHidden"!==a&&r)break}return i}}}()},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(19),s=n(4).grep,l=n(1).isFunction,c=n(11).inArray,d=n(3).each,u=n(21),h=n(15),p=n(6).hasWindow(),f="dxDataGrid",g=a.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},d(this.callbackNames()||[],function(e,n){var i=t.callbackFlags(n)||{};i.unique=!0,i.syncStrategy=!0,t[this]=r(i)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=h.format(e)),t[e]):h.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){var n;return l(e)?(n=this.component._createAction(e.bind(this),t),function(e){n({event:e})}):(this._actions[e]=this.component._createActionByOption(e,t),void(this._actionConfigs[e]=t))},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;d(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){var t=this.component.NAME;return"dx-"+t.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e=this.component.NAME===f?null:"container";return this.addWidgetPrefix(e)}}),m=g,_=m.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),v=g.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=p&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=r(),this.resizeCompleted=r()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0,i=e.get(0).offsetHeight;return i+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,o=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=i("<div>").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!o),o&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){o.trigger(this.element(),"focus")}}),w=1e6,x=function(e,t){var n=t.modules,i=t.modulesOrder,o=t.controllerTypes||{},a=t.viewTypes||{};t.controllerTypes||(i&&n.sort(function(e,t){var n=c(e.name,i),o=c(t.name,i);return n<0&&(n=w),o<0&&(o=w),n-o}),d(n,function(){var e=this.controllers,t=this.name,n=this.views;e&&d(e,function(e,n){if(o[e])throw u.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(m)))throw n.subclassOf(m),u.Error("E1002",t,e);o[e]=n}),n&&d(n,function(e,n){if(a[e])throw u.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(v)))throw u.Error("E1004",t,e);a[e]=n})}),d(n,function(){var e=this.extenders;e&&(e.controllers&&d(e.controllers,function(e,t){o[e]&&(o[e]=o[e].inherit(t))}),e.views&&d(e.views,function(e,t){a[e]&&(a[e]=a[e].inherit(t))}))}),t.controllerTypes=o,t.viewTypes=a);var r=function(e,t,n){var i=n.publicMethods();i&&d(i,function(i,o){if(!n[o])throw u.Error("E1006",t,o);if(e[o])throw u.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}})},s=function(t){var n={};return d(t,function(t,i){var o=new i(e);o.name=t,r(e,t,o),n[t]=o}),n};e._controllers=s(o),e._views=s(a)},y=function(e,t,n){n=n||[],e._controllers&&d(e._controllers,function(){this[t]&&this[t].apply(this,n)}),e._views&&d(e._views,function(){this[t]&&this[t].apply(this,n)})};e.exports={modules:[],View:v,ViewController:_,Controller:m,registerModule:function(e,t){var n,i=this.modules;for(n=0;n<i.length;n++)if(i[n].name===e)return;t.name=e,i.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=s(this.modules,function(t){return t.name!==e}),delete this.controllerTypes,delete this.viewTypes},processModules:x,callModuleItemsMethod:y}},,function(e,t,n){var i=n(2),o=n(35),a=n(19),r=n(4),s=n(6),l=n(103).getDefaultAlignment,c=n(0).extend,d=n(28),u=n(156),h=n(70),p="dx-state-readonly",f="dx-invalid",g="dx-invalid-message",m="dx-invalid-message-auto",_="dx-invalid-message-always",v="dx-validation-target",w=100,x=d.inherit({_init:function(){this.callBase(),this.validationRequest=a();var e=this.$element();e&&o.data(e[0],v,this)},_getDefaultOptions:function(){return c(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0}})},_attachKeyboardEvents:function(){this.option("readOnly")||(this.callBase(),this._keyboardProcessor&&this._attachChildKeyboardEvents())},_attachChildKeyboardEvents:r.noop,_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState()},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_renderValidationState:function(){var e=this.option("isValid"),t=this.option("validationError"),n=this.option("validationMessageMode"),o=this.$element();o.toggleClass(f,!e),this.setAria("invalid",!e||void 0),s.hasWindow()&&(this._$validationMessage&&(this._$validationMessage.remove(),this._$validationMessage=null),!e&&t&&t.message&&(this._$validationMessage=i("<div>").addClass(g).html(t.message).appendTo(o),this._validationMessage=this._createComponent(this._$validationMessage,h,{integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1}),this._$validationMessage.toggleClass(m,"auto"===n).toggleClass(_,"always"===n),this._setValidationMessageMaxWidth()))},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(w,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=l(t),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},a="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(o.h=-o.h),"below"!==e&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:n+a[0],at:n+a[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.$element().toggleClass(p,!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.$element()[0];o.data(e,v,null),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0)),e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this});break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}}).include(u);e.exports=x},function(e,t,n){var i=n(55),o=n(11).inArray,a=n(4).escapeRegExp,r=n(3).each,s=n(1).isPlainObject,l=n(256),c=n(30),d=n(17),u=4,h=10,p=["currency","fixedpoint","exponential","percent","decimal"],f={1:"K",2:"M",3:"B",4:"T"},g={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},m=i({numericFormats:p,defaultLargeNumberFormatPostfixes:f,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.toLowerCase().split(" "),r(t,function(e,t){o(t,p)>-1?n.formatType=t:t in g&&(n.power=g[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){
|
|
13
13
|
var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a<i);)a++,o/=t;else if(o>0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i,o;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,u)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n),o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,h),o=this._getNumberByPower(e,i,h);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=h&&(i++,o/=h),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(o,"fixedpoint",t)+"E"+n},_addZeroes:function(e,t){var n=Math.pow(10,t),i=e<0?"-":"";e=(Math.abs(e)*n>>>0)/n;for(var o=e.toString();o.length<t;)o="0"+o;return i+o},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,c().thousandsSeparator)+(t[1]?c().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e=100*e),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():e.toFixed(n.precision)),e="decimal"!==t?this._addGroupSeparators(e):e.toString().replace(".",c().decimalSeparator),"percent"===t&&(e+="%"),e)},_normalizeFormat:function(e){return e?"function"==typeof e?e:(s(e)||(e={type:e}),e):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e3,"fixedPoint")[1]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(e,t){var n=this.format(90,"decimal");if("string"!=typeof e||"0"===n[1])return e;var i=t?n[1]:"0",o=t?"0":n[1],a=t?n[0]:"9",r=new RegExp("["+i+"-"+a+"]","g");return e.replace(r,function(e){return String.fromCharCode(e.charCodeAt(0)+(o.charCodeAt(0)-i.charCodeAt(0)))})},getSign:function(e,t){if("-"===e.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!t)return 1;var n=this._getSeparators(),i=new RegExp("[0-9"+a(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),o=this.format(-1,t).replace(i,"1"),r=e.replace(i,"1");return r===o?-1:1},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if(t=t&&t.formatter||t,"function"==typeof t)return t(e);t=this._normalizeFormat(t),t.type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);return n?this._formatNumber(e,n,t):this.convertDigits(l.getFormatter(t.type,this._getSeparators())(e))},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!=typeof t&&d.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+a(n)+"]","g"),o=e.replace(i,"").replace(n,".").replace(/\.$/g,""),r=+o;return o=o.replace(/^\./g,""),o.length>15?NaN:""===o?null:r*this.getSign(e,t)}}});e.exports=m},function(e,t,n){var i=n(10),o=i.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});e.exports=o},function(e,t,n){var i=n(12),o=n(55),a=n(6),r=n(68),s=[],l=function(){return"complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll},c=r(function(){var e=i.listen(i.getDocument(),"DOMContentLoaded",function(){d.fire(),e()})}),d={add:function(e){var t=a.hasWindow();t&&l()?e():(s.push(e),t&&c())},fire:function(){s.forEach(function(e){return e()}),s=[]}};e.exports=o(d)},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function o(e){return"pending"===e.state()}function a(e,t){function n(){var t={};return h.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new v(t)}function i(e){var t=e.type;return delete e.type,m.create(t,e)}function o(e){return new v({load:function(){return p.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}var a;return"string"==typeof e&&(e={paginate:!1,store:o(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof m?{store:e}:d({},e),void 0===e.store&&(e.store=[]),a=e.store,"load"in e?a=n():Array.isArray(a)?a=new _(a):f.isPlainObject(a)&&(a=i(d({},a))),e.store=a,e}function r(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)}function s(e){return function(){var t=r(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?o(e,n):h.map(e,t):e}function o(e,t){return h.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}return i(e,n?g.normalizeSortingInfo(n).length:0)}var c=n(10),d=n(0).extend,u=n(4),h=n(3),p=n(72),f=n(1),g=n(41),m=n(91),_=n(79),v=n(158),w=n(53),x=n(36).errors,y=n(11),b=n(173),C=n(7),k=C.when,S=C.Deferred,I=f.isString,D=f.isNumeric,T=f.isBoolean,E=f.isDefined,A="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(A),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var B=c.inherit({ctor:function(e){var t=this;e=a(e),this._store=e.store,this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,h.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(n,i){i in e&&t.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,E(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._disposeEvents(),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),h.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return D(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return T(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return D(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:s("sort"),filter:function(){var e=r(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return T(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return I(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return b.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==A&&t.fireEvent("loadError",arguments)})},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t.fireEvent("changed")})},loadSingle:function(e,t){function n(){return r instanceof v&&!r._byKeyViaLoad()}var i=this,o=new S,a=this.key(),r=this._store,s=this._createStoreLoadOptions(),l=function(e){!E(e)||y.isEmpty(e)?o.reject(new x.Error("E4009")):(Array.isArray(e)||(e=[e]),o.resolve(i._applyMapFunction(e)[0]))};return this._scheduleFailCallbacks(o),arguments.length<2&&(t=e,e=a),delete s.skip,delete s.group,delete s.refresh,delete s.pageIndex,delete s.searchString,function(){return e===a||n()?r.byKey(t,s):(s.take=1,s.filter=s.filter?[s.filter,[e,t]]:[e,t],r.load(s))}().fail(o.reject).done(l),o.promise()},load:function(){function e(){if(!n._disposed&&o(i))return n._loadFromStore(t,i)}var t,n=this,i=new S;return this._scheduleLoadCallbacks(i),this._scheduleFailCallbacks(i),this._scheduleChangedCallbacks(i),t=this._createLoadOperation(i),this.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(function(){return"number"==typeof t.delay?n._delayedLoadTask=u.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.operationId})},_createLoadOperation:function(e){var t=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof v&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=d({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),h.each(i,function(e,i){o.length&&o.push("or"),o.push([i,n,t])}),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore:function(e,t){function n(n,a){function r(){var o;n&&!Array.isArray(n)&&n.data&&(a=n,n=n.data),Array.isArray(n)||(n=[n]),o=d({data:n,extra:a},e),i.fireEvent("customizeLoadResult",[o]),k(o.data).done(function(e){o.data=e,i._processStoreLoadResult(o,t)}).fail(t.reject)}i._disposed||o(t)&&r()}var i=this;return e.data?(new S).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return o._isLoaded=!0,o._totalCount=isFinite(r.totalCount)?r.totalCount:-1,t.resolve(a,r)}function i(){o.store().totalCount(s).done(function(e){r.totalCount=e,n()}).fail(t.reject)}var o=this,a=e.data,r=e.extra,s=e.storeLoadOptions;o._disposed||(a=o._applyPostProcessFunction(o._applyMapFunction(a)),f.isPlainObject(r)||(r={}),o._items=a,(!a.length||!o._paginate||o._pageSize&&a.length<o._pageSize)&&(o._isLastPage=!0),s.requireTotalCount&&!isFinite(r.totalCount)?i():n())},_applyMapFunction:function(e){return this._mapFunc?l(e,this._mapFunc,this.group()):e},_applyPostProcessFunction:function(e){return this._postProcessFunc?this._postProcessFunc(e):e}}).include(w);t.DataSource=B,t.normalizeDataSourceOptions=a},function(e,t,n){var i=n(318),o=n(3).each,a=n(1).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new i(this))},setEventsStrategy:function(e){"function"==typeof e&&(e=e(this)),this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return a(e)?o(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){var i=n(1),o=n(71),a=function(){function e(){}return function(t){return e.prototype=t,new e}}(),r=function(e,t){var n,o,a=[];for(n in e)e.hasOwnProperty(n)&&a.push(n);for(a.sort(function(e,t){var n=i.isNumeric(e),o=i.isNumeric(t);return n&&o?e-t:n&&!o?-1:!n&&o?1:e<t?-1:e>t?1:0}),o=0;o<a.length;o++)n=a[o],t(n,e[n])},s=function(e,t,n,i){!i&&o.isWrapped(e[t])?o.assign(e[t],n):e[t]=n},l=function e(t,n,o,a){var r,l;for(var c in n)if(r=t[c],l=n[c],"__proto__"!==c&&t!==l){if(i.isPlainObject(l)){var d=o?i.isObject(r):i.isPlainObject(r);l=e(d?r:{},l,o,a)}void 0!==l&&r!==l&&s(t,c,l,a)}return t};t.clone=a,t.orderEach=r,t.deepExtendArraySafe=l},function(e,t,n){e.exports=function(e){var t=n(0).extend,i=n(1).isFunction,o=n(3).each,a=n(10),r=a.inherit(e),s=r,l=new s(e),c={},d=function(t,n){o(t,function(t){i(l[t])?!n&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(n&&(c[t]=e[t]),e[t]=l[t])})};return d(e,!0),e.inject=function(e){s=s.inherit(e),l=new s,d(e)},e.resetInjection=function(){t(e,c),s=r,l=new r},e}},function(e,t){e.exports=window.ko},function(e,t,n){var i=n(2),o=n(12),a=function(e,t){if(!r(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),o=e.disabled,a=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=!0,c=e.isContentEditable;return l=a||c?!o:s?e.href||i:i},r=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return a(t,i(t).attr("tabIndex"))},tabbable:function(e,t){var n=i(t).attr("tabIndex");return(isNaN(n)||n>=0)&&a(t,n)},focused:function(e){var t=i(e).get(0);return o.getActiveElement()===t}}},function(e,t,n){var i=n(2),o=n(5),a=n(6),r=n(0).extend,s=n(30),l=n(17),c=n(13).getPublicElement,d=n(121),u=n(4),h=n(3).each,p=n(1),f=n(11).inArray,g=n(100),m=n(35),_=n(115),v=_.abstract,w="dx-rtl",x="dx-visibility-change-handler",y="VisibilityChange",b=_.inherit({_getDefaultOptions:function(){return r(this.callBase(),{width:void 0,height:void 0,rtlEnabled:s().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),g.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_visibilityChanged:v,_dimensionChanged:v,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);d.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==v},_renderComponent:function(){this._initMarkup(),a.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=r({},this.option("elementAttr")),t=e.class;delete e.class,this.$element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass(x)},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:n,height:i})},_isCssUpdateRequired:function(e,t,n){return!!(n||t||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+y;o.off(e.$element(),t),o.on(e.$element(),t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){if(this._isVisibilityChangeSupported()){var e=this,t="dxhiding."+this.NAME+y,n="dxshown."+this.NAME+y;e._isHidden=!e._isVisible(),o.off(e.$element(),t),o.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),o.off(e.$element(),n),o.on(e.$element(),n,function(){e._checkVisibilityChanged("shown")})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==v&&a.hasWindow()},_clean:u.noop,_modelByElement:function(){var e=this.option("modelByElement")||u.noop;return e(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw l.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&d.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass(w,e)},_createComponent:function(e,t,n){var o=this;n=n||{};var a=u.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),s=o.option("nestedComponentOptions")||u.noop;o._extendConfig(n,r({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},s(this)));var l;if(p.isString(t)){var c=i(e)[t](n);l=c[t]("instance")}else e&&(l=t.getInstance(e),l?l.option(n):l=new t(e,n));if(l){var d=function(e){f(e.name,a)>=0&&l.option(e.name,e.value)};o.on("optionChanged",d),l.on("disposing",function(){o.off("optionChanged",d)})}return l},_extendConfig:function(e,t){h(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return r(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return r(this.callBase(),{element:this.element(),model:e})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes.length-1;t>=0;t--){var n=e.attributes[t];if(!n)return;var i=n.name;0!==i.indexOf("aria-")&&i.indexOf("dx-")===-1&&"role"!==i&&"style"!==i&&"tabindex"!==i||e.removeAttribute(i)}},_removeClasses:function(e){var t=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf("dx-",0)});e.className=t.join(" ")},endUpdate:function(){var e=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},$element:function(){return this._$element},element:function(){return c(this.$element())},dispose:function(){var e=this.$element().get(0);m.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)}});b.getInstance=function(e){return g.getInstanceByElement(i(e),this)},b.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=b},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;a<o;a++){var r=parseInt(e[a]||0,10),s=parseInt(t[a]||0,10);if(r<s)return-1;if(r>s)return 1}return 0}},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(24),r=n(37).camelize,s=n(4).noop,l=n(13).getPublicElement,c=n(3).each,d=n(1).isDefined,u=n(11).inArray,h=n(0).extend,p=n(29),f=n(15),g=n(14),m=n(8),_=n(38),v=n(20),w=n(70),x=n(122),y=n(13),b=n(203),C=n(6);n(265);var k="dx-popup",S="dx-popup-wrapper",I="dx-popup-fullscreen",D="dx-popup-fullscreen-width",T="dx-popup-normal",E="dx-popup-content",A="dx-popup-draggable",B="dx-popup-title",O="dx-closebutton",R="dx-popup-bottom",M="dx-template-wrapper",P=["cancel","clear","done"],V="default",F="normal",H="dx-button-flat",$=p.msie&&11===parseInt(p.version),L=function(e){var t=g.current(),n=t.platform,i="bottom",o="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",o="after";break;case"done":o="after"}else if("win"===n)o="after";else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}},z=w.inherit({_getDefaultOptions:function(){return h(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=v.current();return this.callBase().concat([{device:function(t){return t.phone&&v.isWin8(e)},options:{position:{my:"top center",at:"top center",offset:"0 0"}}},{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"generic"===g.real().platform&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===g.real().deviceType&&!g.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return v.isMaterial(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){var e={show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}},t={show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}};return this.option("fullScreen")?e:t},_init:function(){this.callBase(),this.$element().addClass(k),this._wrapper().addClass(S),this._$popupContent=this._$content.wrapInner(i("<div>").addClass(E)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass(I,e).toggleClass(T,!e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new x(this),this._defaultTemplates.bottom=new x(this)},_renderContentImpl:function(){this.callBase(),this._renderTitle(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:g.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var o=i("<div>").addClass(B).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(B),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,o){var a=this._getTemplateByOption(e),r=a instanceof x;if(r){var s=h(o,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons")});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:s}});var c=n.children("div");return n.replaceWith(c),c}var d=i(a.render({container:l(n)}));return d.hasClass(M)&&(n.replaceWith(d),n=d),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:l(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["designMode","disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return function(e,t,n){var o=i("<div>").addClass(O);this._createComponent(o,_,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),i(n).append(o)}.bind(this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=g.current().platform,o=0;return c(t,function(t,a){var r=d(a.shortcut),s=r?L(a.shortcut):a;if(r&&"ios"===i&&o<2&&(s.toolbar="top",o++),s.toolbar=a.toolbar||s.toolbar||"top",s&&s.toolbar===e){r&&h(s,{location:a.location},this._getToolbarItemByAlias(a));var l="win"===i||"generic"===i;"done"===a.shortcut&&l||"cancel"===a.shortcut&&!l?n.unshift(s):n.push(s)}}.bind(this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(u(n,P)<0)return!1;var o=h({text:f.format(r(n,!0)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?V:F},e.options||{}),a=k+"-"+n;return t.option("useFlatToolbarButtons")&&(a+=" "+H),this._toolbarItemClasses.push(a),{template:function(e,n,r){var s=i("<div>").addClass(a).appendTo(r);t._createComponent(s,_,o)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=i("<div>").addClass(R).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(R),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=P;c(e,function(e,t){var n=k+"-"+t;u(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}.bind(this))},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(){this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this._$popupContent.css({height:"auto"})},_renderDrag:function(){this.callBase(),this._$content.toggleClass(A,this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||s)();var e=this._splitPopupHeight(),t=e.header+e.footer+e.contentVerticalOffsets+e.popupVerticalOffsets,n=this.overlayContent().get(0),o={},a=this._getOptionValue("maxHeight",n),r=this._getOptionValue("minHeight",n),l=!$||!a&&!r;if(this.option("autoResizeEnabled")&&this._isAutoHeight()&&l){if(!$){var c=i(this._getContainer()).get(0),d=b.addOffsetToMaxHeight(a,-t,c),u=b.addOffsetToMinHeight(r,-t,c);o=h(o,{minHeight:u,maxHeight:d})}}else{var p=n.getBoundingClientRect().height-t;o={height:Math.max(0,p)}}this.$content().css(o)},_isAutoHeight:function(){return"auto"===this.overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:b.getVisibleHeight(e&&e.get(0)),footer:b.getVisibleHeight(t&&t.get(0)),contentVerticalOffsets:b.getVerticalOffsets(this.overlayContent().get(0),!0),popupVerticalOffsets:b.getVerticalOffsets(this.$content().get(0),!0)}},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),C.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass(D,this.overlayContent().outerWidth()===i(o).width())},_renderShadingDimensions:function(){this.option("fullScreen")?this._wrapper().css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments)},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){return this.option("fullScreen")?void a.move(this._$content,{top:0,left:0}):((this.option("forceApplyBindings")||s)(),this.callBase.apply(this,arguments))},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry();break;case"bottomTemplate":this._renderBottom(),this._renderGeometry();break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var t=e.fullName.search(".options")!==-1;this._renderTitle(),this._renderBottom(),t||this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),y.triggerResizeEvent(this._$content);break;case"fullScreen":this._toggleFullScreenClass(e.value),this._renderGeometry(),y.triggerResizeEvent(this._$content);break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return l(this._$popupContent)},overlayContent:function(){return this._$content}});m("dxPopup",z),e.exports=z},function(e,t,n){var i=n(3).each,o=n(107),a=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),o.fire(e,n)};a.callbacks=o,e.exports=a},function(e,t,n){var i=n(102),o=n(17);e.exports=i(o.ERROR_MESSAGES,{E3001:"Routing rule is not found for the '{0}' URI.",E3002:"The passed object cannot be formatted into a URI string by the application's router. An appropriate route should be registered.",E3003:"Unable to navigate. Application is being initialized.",E3004:"Cannot execute the command: {0}.",E3005:"The '{0}' command {1} is not registered in the application's command mapping. Go to http://dxpr.es/1bTjfj1 for more details.",E3006:"Unknown navigation target: '{0}'. Use the 'current', 'back' or 'blank' values.",E3007:"Error while restoring the application state. The state has been cleared. Refresh the page.",E3008:"Unable to go back.",E3009:"Unable to go forward.",E3010:"The command's 'id' option should be specified.\r\nProcessed markup: {0}\n",E3011:"Layout controller cannot be resolved. There are no appropriate layout controllers for the current context. Check browser console for details.",E3012:"Layout controller cannot be resolved. Two or more layout controllers suit the current context. Check browser console for details.",
|
|
14
14
|
E3013:"The '{0}' template with the '{1}' name is not found. Make sure the case is correct in the specified view name and the template fits the current context.",E3014:"All the children of the dxView element should be either of the dxCommand or dxContent type.\r\nProcessed markup: {0}",E3015:"The 'exec' method should be called before the 'finalize' method.",E3016:"Unknown transition type '{0}'.",E3018:"Unable to parse options.\nMessage: {0};\nOptions value: {1}.",E3019:"View templates should be updated according to the 13.1 changes. Go to http://dxpr.es/15ikrJA for more details.",E3020:"Concurrent templates are found:\r\n{0}Target device:\r\n{1}.",E3021:"Remote template cannot be loaded.\r\nUrl:{0}\r\nError:{1}.",E3022:"Cannot initialize the HtmlApplication component.",E3023:"Navigation item is not found",E3024:"Layout controller is not initialized",W3001:"A view with the '{0}' key doesn't exist.",W3002:"A view with the '{0}' key has already been released.",W3003:"Layout resolving context:\n{0}\nAvailable layout controller registrations:\n{1}\n",W3004:"Layout resolving context:\n{0}\nConcurent layout controller registrations for the context:\n{1}\n",W3005:'Direct hash-based navigation is detected in a mobile application. Use data-bind="dxAction: url" instead of href="#url" to avoid navigation issues.\nFound markup:\n{0}\n'})},function(e,t,n){var i=n(62),o=n(13),a=n(8),r=n(177).MarkupComponent;n(109);var s=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=o.uniqueId(),this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.element().addClass("dx-view"),this.element().attr("dx-data-template-id",this._id)},getId:function(){return this._id}}),l=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),c=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),d=function(e,t,n,i){"absolute"===i?e.addClass("dx-transition-absolute"):e.addClass("dx-transition-static"),e.addClass("dx-transition").addClass("dx-transition-"+n).addClass("dx-transition-"+t).attr("data-dx-transition-type",t).attr("data-dx-transition-name",n)},u=function(e){e.addClass("dx-transition-inner-wrapper")},h=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var e=this.element();d(e,this.option("type")||this.option("animation"),this.option("name"),"absolute"),e.wrapInner("<div>"),u(e.children()),this.option("type")&&i.log("W0003","dxTransition","type","15.1","Use the 'animation' property instead")},_clean:function(){this.callBase(),this.element().empty()}}),p=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,transition:void 0,animation:"none",contentCssPosition:"absolute"})},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content-placeholder").addClass("dx-content-placeholder-"+this.option("name")),e.attr("data-dx-content-placeholder-name",this.option("name")),d(e,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&i.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),f=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({targetPlaceholder:null})},_optionChanged:function(){this._refresh()},_clean:function(){this.callBase(),this.element().removeClass(this._currentClass)},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content"),this._currentClass="dx-content-"+this.option("targetPlaceholder"),e.attr("data-dx-target-placeholder-id",this.option("targetPlaceholder")),e.addClass(this._currentClass),u(e)}});a("dxView",s),a("dxLayout",l),a("dxViewPlaceholder",c),a("dxContentPlaceholder",p),a("dxTransition",h),a("dxContent",f),t.dxView=s,t.dxLayout=l,t.dxViewPlaceholder=c,t.dxContentPlaceholder=p,t.dxTransition=h,t.dxContent=f},function(e,t){e.exports=window.Globalize},function(e,t,n){var i=n(30),o=n(218).getFormatter,a=n(220),r=n(1),s=r.isString,l=r.isDate,c=r.isNumeric,d="number",u="yyyy/MM/dd",h="yyyy/MM/dd HH:mm:ss",p=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,f=/^(\d{2}):(\d{2})(:(\d{2}))?$/,g=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],m=3,_=function(e,t){var n,i;return s(e)&&!t&&(n=v(e)),n||(i=!l(e)&&Date.parse(e),n=c(i)?new Date(i):e),n},v=function(e){var t=e.match(p),n=function(e){return+e||0};if(t){var i=t[1],o=--t[3],a=t[5],r=0,s=0;r=n(t[14]),s=n(t[16]),"-"===t[13]&&(r=-r,s=-s);var l=n(t[6])-r,c=n(t[8])-s,d=n(t[10]),u=function(e){return e=e||"",n(e)*Math.pow(10,m-e.length)},h=u(t[11]);return t[12]?new Date(Date.UTC(i,o,a,l,c,d,h)):new Date(i,o,a,l,c,d,h)}if(t=e.match(f))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},w=function(e,t){var n=e.match(p),i="";{if(n){for(var o=1;o<g.length;o++)n[o]&&(i+=g[o]||n[o]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(i+=n[15]?"xxx":n[16]?"xx":"x"),i}if(n=e.match(f))return n[3]?"HH:mm:ss":"HH:mm"}},x=function(e){return"number"==typeof e?new Date(e):_(e,!i().forceIsoDateParsing)},y=function(e,t){return t?l(e)?t===d?e&&e.valueOf?e.valueOf():null:o(t,a)(e):null:e},b=function(e){if("number"==typeof e)return d;if(s(e)){var t;return i().forceIsoDateParsing&&(t=w(e)),t?t:e.indexOf(":")>=0?h:u}return e?null:void 0};e.exports={dateParser:_,deserializeDate:x,serializeDate:y,getDateSerializationFormat:b}},function(e,t,n){var i=n(2),o=n(12),a=n(19),r=n(13),s=n(10),l=s.abstract,c=a(),d=s.inherit({render:function(e){e=e||{};var t=e.onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),c.fire(n,e.container),t&&t(),n},_ensureResultInContainer:function(e,t){if(t){var n=i(t),a=r.contains(n.get(0),e.get(0));if(n.append(e),!a){var s=o.getBody().contains(n.get(0));s&&r.triggerShownEvent(e)}}},_renderCore:l});e.exports=d,e.exports.renderedCallbacks=c},function(e,t,n){var i=n(2),o=n(66),a=n(5),r=n(129),s=n(3),l=n(1).isPrimitive,c=function(){var e=function(e,i,o,a,r){var s,c;return s=t(e,i,function(e){return c&&c(),l(e)?void r(e):void(c=n(e,i,o,a,function(e){r(e)}))}),function(){c&&c(),s&&s()}},t=function(e,t,n){return t(function(){return e},n)},n=function(e,t,n,i,o){var a={},r=n.slice(),l=s.map(n,function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},function(e){if(a[n]=e,r.length){var t=r.indexOf(n);t>=0&&r.splice(t,1)}r.length||o(a)})});return function(){s.each(l,function(e,t){t()})}};return e}();e.exports=o.inherit({ctor:function(e,t,n,i){this._render=e,this._fields=t,this._fieldsMap=i||{},this._watchMethod=n},_renderCore:function(e){var t=i(e.container),n=c(e.model,this._watchMethod,this._fields,this._fieldsMap,function(n){t.empty(),this._render(t,n,e.model)}.bind(this));return a.on(t,r,n),t.contents()}})},function(e,t,n){var i=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}};e.exports=i},function(e,t,n){var i=n(2),o="dx-inkripple",a="dx-inkripple-wave",r="dx-inkripple-showing",s="dx-inkripple-hiding",l=2,c=4e3,d=300,u=1e3,h=0,p=function(e){e=e||{},void 0===e.useHoldAnimation&&(e.useHoldAnimation=!0);var t={waveSizeCoefficient:e.waveSizeCoefficient||l,isCentered:e.isCentered||!1,wavesNumber:e.wavesNumber||1,durations:w(e.useHoldAnimation)};return{showWave:_.bind(this,t),hideWave:y.bind(this,t)}},f=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("<div>").addClass(o).appendTo(e)),t},g=function(e,t){for(var n=f(e),o=n.children("."+a).toArray(),r=o.length;r<t;r++){var s=i("<div>").appendTo(n).addClass(a);o.push(s[0])}return i(o)},m=function(e,t){var n,i,o=t.element,a=o.outerWidth(),r=o.outerHeight(),s=parseInt(Math.sqrt(a*a+r*r)),l=Math.min(c,parseInt(s*e.waveSizeCoefficient));if(e.isCentered)n=(a-l)/2,i=(r-l)/2;else{var d=t.event,u=t.element.offset(),h=d.pageX-u.left,p=d.pageY-u.top;n=h-l/2,i=p-l/2}return{left:n,top:i,height:l,width:l}},_=function(e,t){var n=g(t.element,e.wavesNumber).eq(t.wave||h);e.hidingTimeout&&clearTimeout(e.hidingTimeout),x(n),n.css(m(e,t)),e.showingTimeout=setTimeout(v.bind(this,e,n),0)},v=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(r).css("transitionDuration",n)},w=function(e){return{showingScale:e?u:d,hidingScale:d,hidingOpacity:d}},x=function(e){e.removeClass(s).css("transitionDuration","")},y=function(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=g(t.element,t.wavesNumber).eq(t.wave||h),i=e.durations,o=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(s).removeClass(r).css("transitionDuration",o);var a=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(x.bind(this,n),a)};e.exports={render:p}},function(e,t,n){e.exports=n(328)},function(e,t,n){var i=n(75).logger,o=n(55);e.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){var i=n(7).Deferred,o=n(12),a=n(316),r=n(6),s=r.getWindow(),l=n(0).extendFromObject,c=n(1).isDefined,d=n(99),u=n(55),h="success",p="error",f="timeout",g="nocontent",m="parsererror",_=function(e){return 200<=e&&e<300},v=function(e){return 204!==e},w=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")},x=function(e){var t=o.createElement("script");for(var n in e)t[n]=e[n];return t},y=function(e){e.parentNode.removeChild(e)},b=function(e){return o.getHead().appendChild(e)},C=function(e){var t=x({text:e});b(t),y(t)},k=function(e){var t=x({src:e});return new d(function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),y(t)};for(var r in i)o.listen(t,r,a);b(t)})},S=function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]},I=function(e){var t;return e.data&&!e.upload&&"GET"!==R(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},D=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText},T=function(e,t,n){var i=D(t);switch(n){case"jsonp":C(i);break;case"script":C(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,m,n)}break;default:e.resolve(i,h,t)}},E=function(e){if(!r.hasWindow())return!0;var t=!1,n=o.createElement("a"),i=o.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},A=function(e,t){return e&&setTimeout(function(){t.customStatus=f,t.abort()},e)},B=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}},O=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||s.location.href;return i||e.cache||(n=n||{},n._=Date.now()),n&&!e.upload&&(i||(n=w(n)),"GET"===R(e)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}},R=function(e){return(e.method||"GET").toUpperCase()},M=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||I(e),t.Accept=t.Accept||S(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},P=function(e){var t,n=a.getXhr(),o=new i,r=o.promise(),l=!c(e.async)||e.async,d=e.dataType,u=e.timeout||0;e.crossDomain=E(e.url);var f="jsonp"===d||"script"===d;void 0===e.cache&&(e.cache=!f);var m=B(e),w=M(e),x=O(e,w),y=x.url,b=x.parameters;if(m&&(s[m]=function(e){o.resolve(e,h,n)}),e.crossDomain&&f){var C=function(){o.reject(n,p)},S=function(){"jsonp"!==d&&o.resolve(null,h,n)};return k(y).then(S,C),r}if(e.crossDomain&&!("withCredentials"in n))return o.reject(n,p),r;if(n.open(R(e),y,l,e.username,e.password),l&&(n.timeout=u,t=A(u,n,o)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),_(n.status)?v(n.status)?T(o,n,d):o.resolve(null,g,n):o.reject(n,n.customStatus||p))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var I in e.xhrFields)n[I]=e.xhrFields[I];"arraybuffer"===e.responseType&&(n.responseType=e.responseType);for(var D in w)w.hasOwnProperty(D)&&c(w[D])&&n.setRequestHeader(D,w[D]);return e.beforeSend&&e.beforeSend(n),n.send(b),r.abort=function(){n.abort()},r};e.exports=u({sendRequest:P})},function(e,t,n){var i=n(2),o=n(51),a=o.add,r=n(19)(),s=i(),l=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var o=!!n.length,a=l();e=o?n:i("body"),r.fire(o?l():i(),a)}}();a(function(){l(".dx-viewport")}),t.value=l,t.changeCallback=r,t.originalViewPort=function(){return s}},function(e,t,n){var i=n(26),o=n(30),a=o().useJQuery;i&&a!==!1&&o({useJQuery:!0}),e.exports=function(){return i&&o().useJQuery}},function(e,t,n){var i=n(1).isFunction,o=function(){},a=function(e){return"undefined"!=typeof console&&i(console[e])?console[e].bind(console):o},r={info:a("info"),warn:a("warn"),error:a("error")},s=function(){function e(e,t){if(!e)throw new Error(t)}function t(t,n){e(null!==t&&void 0!==t,n)}return{assert:e,assertParam:t}}();t.logger=r,t.debug=s},function(e,t,n){var i=n(2),o=n(30),a=n(6).getWindow(),r=n(1),s=n(3).each,l=n(10),c=n(17),d=l.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||a,this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute,i=e.args[0]||{};if("jQueryEvent"in i||!i.event||!o().useJQuery||Object.defineProperty(i,"jQueryEvent",{get:function(){return c.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event},set:function(e){c.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event=e}}),this._validateAction(e)&&(t&&t.call(this._context,e),!e.cancel)){var a=this._executeAction(e);if(!i.cancel)return n&&n.call(this._context,e),a}},_validateAction:function(e){var t=this._excludeValidators,n=d.executors;for(var i in n)if(!t[i]){var o=n[i];if(o.validate&&o.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=d.executors;for(var i in n){var o=n[i];if(o.execute&&o.execute(e),e.handled){t=e.result;break}}return t}});d.executors={},d.registerExecutor=function(e,t){return r.isPlainObject(e)?void s(e,d.registerExecutor):void(d.executors[e]=t)},d.unregisterExecutor=function(){var e=[].slice.call(arguments);s(e,function(){delete d.executors[this]})},d.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){r.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var u=function(e){return function(t){if(t.args.length){var n=t.args[0],o=n[t.validatingTargetName]||n.element;o&&e(i(o))&&(t.cancel=!0)}}};d.registerExecutor({designMode:{validate:function(e){o().designMode&&(e.cancel=!0)}},disabled:{validate:u(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:u(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=d},function(e,t,n){var i,o=n(2),a=n(4),r=n(3).each,s=n(6),l=s.getWindow(),c=n(12),d=n(1).isWindow,u=n(39),h=n(0).extend,p=n(24),f=n(40),g=/left|right/,m=/top|bottom/,_=/fit|flip|none/,v=function(e){var t={h:"center",v:"center"},n=a.splitPair(e);return n&&r(n,function(){var e=String(this).toLowerCase();g.test(e)?t.h=e:m.test(e)&&(t.v=e)}),t},w=function(e){return u.pairToObject(e)},x=function(e){var t=a.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return _.test(n)||(n="none"),_.test(i)||(i=n),{h:n,v:i}},y=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},b=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},C=function(e,t){var n=0;return e.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},k=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},S=function(e){e.myLocation=e.atLocation+y(e.atAlign)*e.atSize-y(e.myAlign)*e.mySize+e.offset},I={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocation<t.min&&(e.myLocation=t.min,n=!0),e.fit=n},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.max)){var n=h({},e,{myAlign:b(e.myAlign),atAlign:b(e.atAlign),offset:-e.offset});S(n),n.oversize=C(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},D=function(){var e=o("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},T={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},E=function(e,t){var n=o(e),a=n.offset(),r=h(!0,{},T,{h:{location:a.left},v:{location:a.top}});if(!t)return r;var s=v(t.my),u=v(t.at),p=o(t.of).length&&t.of||l,g=w(t.offset),m=x(t.collision),_=t.boundary,y=w(t.boundaryOffset),b={mySize:n.outerWidth(),myAlign:s.h,atAlign:u.h,offset:g.h,collision:m.h,boundaryOffset:y.h},E={mySize:n.outerHeight(),myAlign:s.v,atAlign:u.v,offset:g.v,collision:m.v,boundaryOffset:y.v};if(p.preventDefault)b.atLocation=p.pageX,E.atLocation=p.pageY,b.atSize=0,E.atSize=0;else if(p=o(p),d(p[0]))b.atLocation=p.scrollLeft(),E.atLocation=p.scrollTop(),b.atSize=p[0].innerWidth>p[0].outerWidth?p[0].innerWidth:p.width(),E.atSize=p[0].innerHeight>p[0].outerHeight?p[0].innerHeight:p.height();else if(9===p[0].nodeType)b.atLocation=0,E.atLocation=0,b.atSize=p.width(),E.atSize=p.height();else{var A=p.offset();b.atLocation=A.left,E.atLocation=A.top,b.atSize=p.outerWidth(),E.atSize=p.outerHeight()}S(b),S(E);var B=function(){var e=o(l),t=e.width(),n=e.height(),a=e.scrollLeft(),r=e.scrollTop(),s=c.getDocumentElement(),d=f.touch?s.clientWidth/t:1,u=f.touch?s.clientHeight/n:1;void 0===i&&D();var h=t,p=n;if(_){var g=o(_),m=g.offset();a=m.left,r=m.top,h=g.width(),p=g.height()}return{h:{min:a+b.boundaryOffset,max:a+h/d-b.mySize-b.boundaryOffset},v:{min:r+E.boundaryOffset,max:r+p/u-E.mySize-E.boundaryOffset}}}();b.oversize=C(b,B.h),E.oversize=C(E,B.v),b.collisionSide=k("h",b,B.h),E.collisionSide=k("v",E,B.v),I[b.collision]&&I[b.collision](b,B.h),I[E.collision]&&I[E.collision](E,B.v);var O=function(e){return t.precise?e:Math.round(e)};return h(!0,r,{h:{location:O(b.myLocation),oversize:O(b.oversize),fit:b.fit,flip:b.flip,collisionSide:b.collisionSide},v:{location:O(E.myLocation),oversize:O(E.oversize),fit:E.fit,flip:E.flip,collisionSide:E.collisionSide},precise:t.precise}),r},A=function(e,t){var n=o(e);if(!t)return n.offset();p.resetPosition(n,!0);var i=n.offset(),a=t.h&&t.v?t:E(n,t),r=function(e){return t.precise?e:Math.round(e)};return p.move(n,{left:a.h.location-r(i.left),top:a.v.location-r(i.top)}),a},B=function(e){return e=o(e).get(0),d(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:o(e).offset()};A.inverseAlign||(A.inverseAlign=b),A.normalizeAlign||(A.normalizeAlign=v),e.exports={calculateScrollbarWidth:D,calculate:E,setup:A,offset:B}},function(e,t,n){var i=n(2),o=n(35),a=n(11).wrapToArray,r=n(11).inArray,s=n(3),l=n(13).contains,c=n(61),d=n(9),u=n(146),h=n(84),p="dxdragstart",f="dxdrag",g="dxdragend",m="dxdragenter",_="dxdragleave",v="dxdrop",w="dxDragEventsCount",x=[],y=[],b=[],C={setup:function(e,t){var n=r(e,x)!==-1;n||(x.push(e),y.push([]),b.push(t||{}))},add:function(e,t){var n=r(e,x);this.updateEventsCounter(e,t.type,1);var i=t.selector;r(i,y[n])===-1&&y[n].push(i)},updateEventsCounter:function(e,t,n){if([m,_,v].indexOf(t)>-1){var i=o.data(e,w)||0;o.data(e,w,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=o.data(e,w);if(!t){var n=r(e,x);x.splice(n,1),y.splice(n,1),b.splice(n,1),o.removeData(e,w)}}};c(m,C),c(_,C),c(v,C);var k=function(e){var t=r(e.get(0),x),n=y[t],i=e.find(n.join(", "));return r(void 0,n)!==-1&&(i=i.add(e)),i},S=function(e){var t=r(e.get(0),x);return b[t]},I=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},D=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},T=u.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(p,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=a(e.targetElements||(null===e.targetElements?[]:x));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=d.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(f,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),n=t===this._currentDropTarget;n||(this._fireDropTargetEvent(e,_),this._currentDropTarget=t,this._fireDropTargetEvent(e,m))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};d.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(x,function(o,a){if(n._checkDropTargetActive(a)){var r=i(a);s.each(k(r),function(o,a){var s=i(a);n._checkDropTarget(S(r),s,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return t=t||i===e||l(i,e),!t}),t},_checkDropTarget:function(e,t,n){var i=t.get(0)===this._$element.get(0);if(i)return!1;var o=I(e,t);if(n.pageX<o.left)return!1;if(n.pageY<o.top)return!1;var a=D(e,t);return!(n.pageX>o.left+a.width)&&(!(n.pageY>o.top+a.height)&&t)},_end:function(e){var t=d.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}});h({emitter:T,events:[p,f,g]}),t.move=f,t.start=p,t.end=g,t.enter=m,t.leave=_,t.drop=v},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(0).extend,a=n(1),r=n(50),s=n(54),l=n(41).keysEqual,c=n(42),d=n(36).errors,u=n(91),h=n(7).Deferred,p=function(e,t){for(var n,i="string"==typeof t?t.split():t.slice();i.length;)if(n=i.shift(),n in e)return!0;return!1},f=function(){var e=new h;return e.resolve.apply(e,arguments).promise()},g=function(){var e=new h;return e.reject.apply(e,arguments).promise()},m=u.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw d.Error("E4006");this._array=t||[]},createQuery:function(){return c(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=this._indexByKey(e);return t===-1?g(d.Error("E4009")):f(this._array[t])},_insertImpl:function(e){var t,n,s=this.key();if(n=a.isPlainObject(e)?o({},e):e,s){if(t=this.keyOf(n),void 0===t||"object"===("undefined"==typeof t?"undefined":i(t))&&a.isEmptyObject(t)){if(Array.isArray(s))throw d.Error("E4007");t=n[s]=String(new r)}else if(void 0!==this._array[this._indexByKey(t)])return g(d.Error("E4008"))}else t=n;return this._array.push(n),f(e,t)},_updateImpl:function(e,t){var n,i,o=this.key(),a=!0;if(o){if(p(t,o)&&!l(o,e,this.keyOf(t)))return g(d.Error("E4017"));if(n=this._indexByKey(e),n<0)return g(d.Error("E4009"));i=this._array[n]}else i=e;return s.deepExtendArraySafe(i,t,a),f(e,t)},_removeImpl:function(e){var t=this._indexByKey(e);return t>-1&&this._array.splice(t,1),f(e)},_indexByKey:function(e){for(var t=0,n=this._array.length;t<n;t++)if(l(this.key(),this.keyOf(this._array[t]),e))return t;return-1},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=m},function(e,t,n){function i(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select(function(e){return s({},e,{items:i(c(e.items),t.slice(1)).toArray()})})),e}function o(e,t){var n=[];return l(e,function(e,i){var o=r(t,function(e){return i.selector===e.selector});o.length<1&&n.push(i)}),n.concat(t)}function a(e,t,n){t=t||{};var a=t.filter,r=t.sort,s=t.select,c=t.group,u=t.skip,h=t.take;return a&&(e=e.filter(a)),c&&(c=d(c)),n||((r||c)&&(r=d(r||[]),c&&(r=o(c,r)),l(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),s&&(e=e.select(s))),c&&(e=i(e,c)),n||(h||u)&&(e=e.slice(u||0,h)),e}var r=n(4).grep,s=n(0).extend,l=n(3).each,c=n(144),d=n(41).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:a}},function(e,t,n){var i=n(55);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){function i(e,t,n){t.on(e,function(){n.fireEvent(e,arguments)})}var o=n(11).inArray,a=n(3).each,r=n(10),s=n(53),l=r.inherit({ctor:function(){this._cache={}},setView:function(e,t){this._cache[e]=t},getView:function(e){return this._cache[e]},removeView:function(e){var t=this._cache[e];return t&&(delete this._cache[e],this.fireEvent("viewRemoved",[{viewInfo:t}])),t},clear:function(){var e=this;a(this._cache,function(t){e.removeView(t)})},hasView:function(e){return e in this._cache}}).include(s),c=l.inherit({setView:function(e,t){this.callBase(e,t),this.removeView(e)}}),d=r.inherit({ctor:function(e){this._filter=e.filter,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},setView:function(e,t){this._viewCache.setView(e,t),this._filter(e,t)||this._viewCache.removeView(e)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s),u=5,h=r.inherit({ctor:function(e){this._keys=[],this._size=e.size||u,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},setView:function(e,t){this.hasView(e)||(this._keys.length===this._size&&this.removeView(this._keys[0]),this._keys.push(e)),this._viewCache.setView(e,t)},getView:function(e){var t=o(e,this._keys);return t<0?null:(this._keys.push(e),this._keys.splice(t,1),this._viewCache.getView(e))},removeView:function(e){var t=o(e,this._keys);return t>-1&&this._keys.splice(t,1),this._viewCache.removeView(e)},clear:function(){return this._keys=[],this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s),p=r.inherit({ctor:function(e){this._viewCache=e.viewCache||new l,this._navigationManager=e.navigationManager,this._navigationManager.on("itemRemoved",this._onNavigationItemRemoved.bind(this)),this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},_onNavigationItemRemoved:function(e){this.removeView(e.key)},setView:function(e,t){this._viewCache.setView(e,t)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s);e.exports=l,e.exports.NullViewCache=c,e.exports.ConditionalViewCacheDecorator=d,e.exports.CapacityViewCacheDecorator=h,e.exports.HistoryDependentViewCacheDecorator=p},function(e,t,n){var i=n(37).camelize,o=n(68),a=n(1),r=n(12),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=o(function(){return r.createElement("dx").style}),d=function(e,t){e=i(e,!0);for(var n,o=0,a=s.length;o<a;o++){var r=s[o],l=r+e,c=i(l);if(n=t(c,r),void 0===n&&(n=t(l,r)),void 0!==n)break}return n||""},u=function(e){if(e in c())return e;var t=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=1;n<s.length;n++){var i=s[n].toLowerCase()+e;if(i in c())return i}return t},h=function(e){return d(e,function(e,t){if(e in c())return l[t]})},p=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],f=function(e,t){return a.isNumeric(t)&&p.indexOf(e)===-1&&(t+="px"),t},g=function(e,t,n){if(e){n=a.isNumeric(n)?n+="px":n;for(var i=0;i<e.length;++i)e[i].style[t]=n}},m=function(e,t){g(e,"width",t)},_=function(e,t){g(e,"height",t)};t.styleProp=u,t.stylePropPrefix=h,t.normalizeStyleProp=f,t.setWidth=m,t.setHeight=_},function(e,t,n){var i=n(2),o=n(51),a=n(12),r=n(5),s=n(35),l=n(10),c=n(0).extend,d=n(11).inArray,u=n(3).each,h=n(61),p=n(9),f=n(25),g=n(117),m="dxEventManager",_="dxEmitter",v=l.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.add(function(){var e=a.getDocument();r.subscribeGlobal(e,p.addNamespace(f.down,m),this._pointerDownHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(f.move,m),this._pointerMoveHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace([f.up,f.cancel].join(" "),m),this._pointerUpHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(g.name,m),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(e(i)===!1)break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){p.isMouseEvent(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return u(t,function(e,t){return i=i||n[e]!==t,!i}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),o.push(i))}for(var n=this,o=[],a=i(e.target);a.length;){
|
|
15
|
-
var r=s.data(a.get(0),_)||[];u(r,t),a=a.parent()}return o},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=d(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n,o=i?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),w=new v,x="dxEmitterSubscription",y=function(e){var t=e.emitter,n=e.events[0],i=e.events;u(i,function(o,a){h(a,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,x)||{},o=s.data(e,_)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,s.data(e,_,o),s.data(e,x,i)},add:function(e,t){var i=s.data(e,_),o=i[n];o.configure(c({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,x),o=s.data(e,_),r=o[n];delete t[a];var l=!0;u(i,function(e,n){return l=l&&!t[n]}),l&&(w.isActive(e)&&w.resetEmitter(r),r&&r.dispose(),delete o[n])}})})};e.exports=y},,function(e,t,n){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=_[t]?"#"+_[t]:t,t=o(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=a(t[0]),this.g=a(t[1]),this.b=a(t[2]),this.a=a(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=d(this.r,this.g,this.b)}function o(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;n<i;++n)if(t=v[n].re.exec(e))return v[n].process(t);return null}function a(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function r(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r-s;if(a=r,o=0===r?0:1-s/r,r===s)i=0;else switch(r){case e:i=60*((t-n)/l),t<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function l(e,t,n){var i,o,a,r,s,l,c,d;switch(r=Math.floor(e%360/60),a=(100-t)*n/100,s=(n-a)*(e%60/60),o=a+s,i=n-s,r){case 0:l=n,c=o,d=a;break;case 1:l=i,c=n,d=a;break;case 2:l=a,c=n,d=o;break;case 3:l=a,c=i,d=n;break;case 4:l=o,c=a,d=n;break;case 5:l=n,c=a,d=i}return[Math.round(2.55*l),Math.round(2.55*c),Math.round(2.55*d)]}function c(e,t,n,i){var o=Math.max(e,t,n);switch(o){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function d(e,t,n){e=g(e,255),t=g(t,255),n=g(n,255);var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=a+r,l=s/2;if(a===r)i=o=0;else{var d=a-r;o=l>.5?d/(2-s):d/s,i=c(e,t,n,d),i/=6}return{h:w(360*i),s:w(100*o),l:w(100*l)}}function u(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return e<0&&(e+=1),e>1&&(e-=1),e}function p(e,t,n){return n=h(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var i,o,a;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=o=a=n;else{var r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=p(s,r,u("r",e)),o=p(s,r,u("g",e)),a=p(s,r,u("b",e))}return[w(255*i),w(255*o),w(255*a)]}function g(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e,t,n){return t=t||0,n=n||255,!(e%1!==0||e<t||e>n||"number"!=typeof e||isNaN(e))}var _={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=l(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=f(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],w=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=a(this.r+e),t.g=a(this.g+e),t.b=a(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),o=new i;return o.r=a(w(this.r*(1-t)+n.r*t)),o.g=a(w(this.g*(1-t)+n.g*t)),o.b=a(w(this.b*(1-t)+n.b*t)),o},toHex:function(){return r(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(m(e)&&m(t)&&m(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=f(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},function(e,t,n){var i=n(2),o=n(6),a=o.getNavigator(),r=n(40),s=n(20),l=n(29),c=n(0).extend,d=n(14),u=n(8),h=n(28),p="dx-loadindicator",f="dx-loadindicator-wrapper",g="dx-loadindicator-content",m="dx-loadindicator-icon",_="dx-loadindicator-segment",v="dx-loadindicator-segment-inner",w="dx-loadindicator-image",x=h.inherit({_getDefaultOptions:function(){return c(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=s.current();return this.callBase().concat([{device:function(){var e=d.real(),t="android"===e.platform&&!/chrome/i.test(a.userAgent);return l.msie&&l.version<10||t},options:{viaImage:!0}},{device:function(){return s.isWin8(e)||s.isWin10(e)},options:{_animatingSegmentCount:5}},{device:function(){return s.isIos7(e)},options:{_animatingSegmentCount:11}},{device:function(){return s.isMaterial(e)||s.isAndroid5(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return s.isGeneric(e)},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass(p)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("<div>").addClass(f),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("<div>").addClass(g),this._$wrapper.append(this._$content)},_renderMarkup:function(){!r.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("<div>").addClass(m),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("<div>").addClass(_).addClass(_+t);e&&n.append(i("<div>").addClass(v)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(w),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=this.$element().width(),t=this.$element().height();var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});u("dxLoadIndicator",x),e.exports=x},function(e,t,n){var i=n(1),o=n(23),a=n(49),r=n(33),s=n(55),l=n(75).logger;n(137),e.exports=s({format:function(e,t,n){var o=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),s=i.isNumeric(e)||i.isDate(e);return o&&s?i.isFunction(t)?t(e):(void 0!==n&&l.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),i.isString(t)&&(t={type:t,precision:n}),i.isNumeric(e)?a.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){var o=function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"};n.push(o)}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){var a=function(e){return r.getMonthNames("abbreviated")[e.getMonth()]+" "+r.format(e,"day")};n.unshift(a)}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{var s=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};n.unshift(s)}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i,a;if(e.length>1)for(n=o.getDatesDifferences(e[0],e[1]),a=1;a<e.length-1;a++)i=o.getDatesDifferences(e[a],e[a+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var a,r,s,l={week:"day"},c=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},d=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=i.isString(n)?n.toLowerCase():n,r=o.getDatesDifferences(e,t),e!==t&&d(r,e>t?t:e,e>t?e:t),s=o.getDateUnitInterval(r),c(r,s,!0),s=o.getDateUnitInterval(n||"second"),c(r,s,!1),r[l[s]||s]=!0,a=this.getDateFormatByDifferences(r)}})},function(e,t,n){var i=n(10),o=n(0).extend,a=n(11).inArray,r=n(3).each,s=n(53),l=n(17),c=n(4),d=n(1),u=n(49),h=n(15),p=i.inherit({NAME:"base",defaultMessage:function(e){return h.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return h.getFormatter("validation-"+this.NAME+"-formatted")(e)},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),f=p.inherit({NAME:"required",_validate:function(e,t){return!!d.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&d.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!b.required.validate(e,{})||(t.useCultureSettings&&d.isString(e)?!isNaN(u.parse(e)):d.isNumeric(e))}}),m=p.inherit({NAME:"range",_validate:function(e,t){if(!b.required.validate(e,{}))return!0;var n=b.numeric.validate(e,t),i=d.isDefined(e),o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!d.isDate(e)&&!i)return!1;if(d.isDefined(a))return d.isDefined(r)?o>=a&&o<=r:o>=a;if(d.isDefined(r))return o<=r;throw l.Error("E0101")}}),_=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=d.isDefined(e)?String(e):"",!t.trim&&d.isDefined(t.trim)||(e=e.trim()),b.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){var n=t.validator,i=n&&d.isFunction(n.option)&&n.option("dataGetter"),o=d.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),w=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");o(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}),x=p.inherit({NAME:"pattern",_validate:function(e,t){if(!b.required.validate(e,{}))return!0;var n=t.pattern;return d.isString(n)&&(n=new RegExp(n)),n.test(e)}}),y=p.inherit({NAME:"email",_validate:function(e,t){return!b.required.validate(e,{})||b.pattern.validate(e,o({},t,{pattern:/^[\d\w._-]+@([\d\w._-]+\.)+[\w]+$/i}))}}),b={required:new f,numeric:new g,range:new m,stringLength:new _,custom:new v,compare:new w,pattern:new x,email:new y},C=i.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return r(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){r(this.validators,function(e,t){t.reset()})}}).include(s),k={groups:[],getGroupConfig:function(e){var t=c.grep(this.groups,function(t){return t.group===e});if(t.length)return t[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new C(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=a(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){d.isDefined(e.message)||(t.defaultFormattedMessage&&d.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},o=this;return r(t||[],function(t,a){var r,s=b[a.type];if(!s)throw l.Error("E0100");return d.isDefined(a.isValid)&&a.value===e&&!a.reevaluate?!!a.isValid||(i.isValid=!1,i.brokenRule=a,!1):(a.value=e,r=s.validate(e,a),a.isValid=r,r||(i.isValid=!1,o._setDefaultMessage(a,s,n),i.brokenRule=a),!!a.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=k.addGroup(e);a(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=k.getGroupConfig(e),i=n&&n.validators,o=a(t,i);o>-1&&(i.splice(o,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};k.initGroups(),e.exports=k},function(e,t,n){var i=n(9),o=n(108),a=n(84),r=Math.abs,s="dxhold",l=750,c=5,d=o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return r(t.x)>c||r(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:d,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(10),o=i.abstract,a=n(53),r=n(3).each,s=n(36),l=n(41),c=n(22).compileGetter,d=n(80),u=d.queryByOptions,h=n(7).Deferred,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=c(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return u(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return u(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(e,t){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(a);f.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},f.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(p[n]=i),i}}(f.inherit),e.exports=f},function(e,t,n){var i=n(0).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=o,a=i(a,r)}},function(e,t,n){var i=n(2),o=n(5),a=n(40),r=n(29),s=n(4),l=n(1),c=n(0).extend,d=n(13).getPublicElement,u=n(6),h=u.getNavigator(),p=n(12),f=n(14),g=n(8),m=n(58),_=n(57),v=n(9),w=n(475),x=n(272),y=n(184),b=n(7).when,C="dxScrollable",k="dxScrollableStrategy",S="dx-scrollable",I="dx-scrollable-disabled",D="dx-scrollable-container",T="dx-scrollable-wrapper",E="dx-scrollable-content",A="dx-scrollable-customizable-scrollbars",B="vertical",O="horizontal",R="both",M=function(){return[{device:function(){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!f.isSimulator()&&"generic"===f.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]},P=m.inherit({_getDefaultOptions:function(){return c(this.callBase(),{disabled:!1,onScroll:null,direction:B,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(M(),[{device:function(){return a.nativeScrolling&&"android"===f.real().platform&&!r.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===f.real().platform},options:{pushBackValue:1}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(S),t=this._$container=i("<div>").addClass(D),n=this._$wrapper=i("<div>").addClass(T),a=this._$content=i("<div>").addClass(E);p.hasDocumentProperty("onbeforeactivate")&&r.msie&&r.version<12&&o.on(e,v.addNamespace("beforeactivate",C),function(e){i(e.target).is(_.focusable)||e.preventDefault()}),a.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==f.real().deviceType||h.platform.indexOf("Mac")>-1&&r.webkit||this.$element().addClass(A)},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachNativeScrollbarsCustomizationCss(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var e=this,t=e.option("rtlEnabled");this._updateBounds(),t&&this.option("direction")!==B&&s.deferUpdate(function(){var t=e.scrollWidth()-e.clientWidth();s.deferRender(function(){e.scrollTo({left:t})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};o.off(this._$wrapper,"."+C),o.on(this._$wrapper,v.addNamespace(w.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(w.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(w.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(w.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(w.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(w.stop,C),e.handleStop.bind(e)),o.off(this._$container,"."+C),o.on(this._$container,v.addNamespace("scroll",C),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass(I,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+O).removeClass("dx-scrollable-"+B).removeClass("dx-scrollable-"+R).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(k,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new y(this):new x.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&u.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===B?"left":e===O?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(l.isPlainObject(e)){var t=s.ensureDefined(e.left,e.x),n=s.ensureDefined(e.top,e.y);return{left:l.isDefined(t)?-t:void 0,top:l.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==B?-e:void 0,top:i!==O?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===B?t!==O:e===O?t!==B:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(R)&&e.vertical&&e.horizontal?this._allowedDirectionValue=R:this._isDirection(O)&&e.horizontal?this._allowedDirectionValue=O:this._isDirection(B)&&e.vertical?this._allowedDirectionValue=B:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return d(this._$content)},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return b(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t));var n=this._normalizeLocation({left:t.left-s.ensureDefined(e.left,t.left),top:t.top-s.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){t=t||{};var n=i(e),o=this.$content().find(e).length,a=n.parents("."+S).length-n.parents("."+E).length===0;if(o&&a){var r={top:0,left:0},s=this.option("direction");s!==B&&(r.left=this._scrollToElementPosition(n,O,t)),s!==O&&(r.top=this._scrollToElementPosition(n,B,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===B,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left"),l=s-r,c=e[i?"outerHeight":"outerWidth"](),d=i?this.scrollTop():this.scrollLeft(),u=i?this.clientHeight():this.clientWidth(),h=d-l+o,p=d-l-c+u-a;return h<=0&&p>=0?d:d-(Math.abs(h)>Math.abs(p)?p:h)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});g(C,P),e.exports=P,e.exports.deviceDependentOptions=M},function(e,t,n){function i(e){var t=function t(n,i,o,a,r,s){function l(e,r,s){_(t(n,i,o,a,r,s)).done(e.resolve)}a=a||[],n=n||[];var c,d,u,h;for(r=r||0,d=r;d<n.length;d++){if(e&&d>r&&d%1e4===0&&new Date-x>=300)return x=new Date,u=new v,setTimeout(l(u,d,!1),0),u;if(c=n[d],!s){if(a.unshift(c),o&&i(a,d)===!1)return;if(c.children&&(h=t(c.children,i,o,a),e&&h))return u=new v,h.done(l(u,d,!0)),u}if(s=!1,!o&&i(a,d)===!1)return;a.shift(),n[d]!==c&&d--}};return t}function o(e){return c.map(["year","quarter","month"],function(t,n){return d({},e,{groupInterval:t,groupIndex:n})})}function a(e,t,n,i){var s=[];return c.each(t||[],function(t,c){if(!t||0!==t.indexOf("__")){for(var d,u=1,h=n.length?n+"."+t:t,p=i[h],f=l.compileGetter(h);!r.isDefined(c)&&e[u];)c=f(e[u]),u++;!p&&r.isDefined(c)&&(p=r.type(c)),
|
|
15
|
+
var r=s.data(a.get(0),_)||[];u(r,t),a=a.parent()}return o},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=d(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n,o=i?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),w=new v,x="dxEmitterSubscription",y=function(e){var t=e.emitter,n=e.events[0],i=e.events;u(i,function(o,a){h(a,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,x)||{},o=s.data(e,_)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,s.data(e,_,o),s.data(e,x,i)},add:function(e,t){var i=s.data(e,_),o=i[n];o.configure(c({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,x),o=s.data(e,_),r=o[n];delete t[a];var l=!0;u(i,function(e,n){return l=l&&!t[n]}),l&&(w.isActive(e)&&w.resetEmitter(r),r&&r.dispose(),delete o[n])}})})};e.exports=y},,function(e,t,n){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=_[t]?"#"+_[t]:t,t=o(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=a(t[0]),this.g=a(t[1]),this.b=a(t[2]),this.a=a(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=d(this.r,this.g,this.b)}function o(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;n<i;++n)if(t=v[n].re.exec(e))return v[n].process(t);return null}function a(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function r(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r-s;if(a=r,o=0===r?0:1-s/r,r===s)i=0;else switch(r){case e:i=60*((t-n)/l),t<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function l(e,t,n){var i,o,a,r,s,l,c,d;switch(r=Math.floor(e%360/60),a=(100-t)*n/100,s=(n-a)*(e%60/60),o=a+s,i=n-s,r){case 0:l=n,c=o,d=a;break;case 1:l=i,c=n,d=a;break;case 2:l=a,c=n,d=o;break;case 3:l=a,c=i,d=n;break;case 4:l=o,c=a,d=n;break;case 5:l=n,c=a,d=i}return[Math.round(2.55*l),Math.round(2.55*c),Math.round(2.55*d)]}function c(e,t,n,i){var o=Math.max(e,t,n);switch(o){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function d(e,t,n){e=g(e,255),t=g(t,255),n=g(n,255);var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=a+r,l=s/2;if(a===r)i=o=0;else{var d=a-r;o=l>.5?d/(2-s):d/s,i=c(e,t,n,d),i/=6}return{h:w(360*i),s:w(100*o),l:w(100*l)}}function u(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return e<0&&(e+=1),e>1&&(e-=1),e}function p(e,t,n){return n=h(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var i,o,a;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=o=a=n;else{var r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=p(s,r,u("r",e)),o=p(s,r,u("g",e)),a=p(s,r,u("b",e))}return[w(255*i),w(255*o),w(255*a)]}function g(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function m(e,t,n){return t=t||0,n=n||255,!(e%1!==0||e<t||e>n||"number"!=typeof e||isNaN(e))}var _={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=l(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=f(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],w=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=a(this.r+e),t.g=a(this.g+e),t.b=a(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),o=new i;return o.r=a(w(this.r*(1-t)+n.r*t)),o.g=a(w(this.g*(1-t)+n.g*t)),o.b=a(w(this.b*(1-t)+n.b*t)),o},toHex:function(){return r(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(m(e)&&m(t)&&m(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=f(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},function(e,t,n){var i=n(2),o=n(6),a=o.getNavigator(),r=n(40),s=n(20),l=n(29),c=n(0).extend,d=n(14),u=n(8),h=n(28),p="dx-loadindicator",f="dx-loadindicator-wrapper",g="dx-loadindicator-content",m="dx-loadindicator-icon",_="dx-loadindicator-segment",v="dx-loadindicator-segment-inner",w="dx-loadindicator-image",x=h.inherit({_getDefaultOptions:function(){return c(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=s.current();return this.callBase().concat([{device:function(){var e=d.real(),t="android"===e.platform&&!/chrome/i.test(a.userAgent);return l.msie&&l.version<10||t},options:{viaImage:!0}},{device:function(){return s.isWin8(e)||s.isWin10(e)},options:{_animatingSegmentCount:5}},{device:function(){return s.isIos7(e)},options:{_animatingSegmentCount:11}},{device:function(){return s.isMaterial(e)||s.isAndroid5(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return s.isGeneric(e)},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass(p)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("<div>").addClass(f),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("<div>").addClass(g),this._$wrapper.append(this._$content)},_renderMarkup:function(){!r.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("<div>").addClass(m),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("<div>").addClass(_).addClass(_+t);e&&n.append(i("<div>").addClass(v)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(w),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=this.$element().width(),t=this.$element().height();var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});u("dxLoadIndicator",x),e.exports=x},function(e,t,n){var i=n(1),o=n(23),a=n(49),r=n(33),s=n(55),l=n(75).logger;n(137),e.exports=s({format:function(e,t,n){var o=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),s=i.isNumeric(e)||i.isDate(e);return o&&s?i.isFunction(t)?t(e):(void 0!==n&&l.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),i.isString(t)&&(t={type:t,precision:n}),i.isNumeric(e)?a.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){var o=function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"};n.push(o)}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){var a=function(e){return r.getMonthNames("abbreviated")[e.getMonth()]+" "+r.format(e,"day")};n.unshift(a)}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{var s=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};n.unshift(s)}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i,a;if(e.length>1)for(n=o.getDatesDifferences(e[0],e[1]),a=1;a<e.length-1;a++)i=o.getDatesDifferences(e[a],e[a+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var a,r,s,l={week:"day"},c=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},d=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=i.isString(n)?n.toLowerCase():n,r=o.getDatesDifferences(e,t),e!==t&&d(r,e>t?t:e,e>t?e:t),s=o.getDateUnitInterval(r),c(r,s,!0),s=o.getDateUnitInterval(n||"second"),c(r,s,!1),r[l[s]||s]=!0,a=this.getDateFormatByDifferences(r)}})},function(e,t,n){var i=n(10),o=n(0).extend,a=n(11).inArray,r=n(3).each,s=n(53),l=n(17),c=n(4),d=n(1),u=n(49),h=n(15),p=i.inherit({NAME:"base",defaultMessage:function(e){return h.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return h.getFormatter("validation-"+this.NAME+"-formatted")(e)},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),f=p.inherit({NAME:"required",_validate:function(e,t){return!!d.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&d.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!b.required.validate(e,{})||(t.useCultureSettings&&d.isString(e)?!isNaN(u.parse(e)):d.isNumeric(e))}}),m=p.inherit({NAME:"range",_validate:function(e,t){if(!b.required.validate(e,{}))return!0;var n=b.numeric.validate(e,t),i=d.isDefined(e),o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!d.isDate(e)&&!i)return!1;if(d.isDefined(a))return d.isDefined(r)?o>=a&&o<=r:o>=a;if(d.isDefined(r))return o<=r;throw l.Error("E0101")}}),_=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=d.isDefined(e)?String(e):"",!t.trim&&d.isDefined(t.trim)||(e=e.trim()),b.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){var n=t.validator,i=n&&d.isFunction(n.option)&&n.option("dataGetter"),o=d.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),w=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");o(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}),x=p.inherit({NAME:"pattern",_validate:function(e,t){if(!b.required.validate(e,{}))return!0;var n=t.pattern;return d.isString(n)&&(n=new RegExp(n)),n.test(e)}}),y=p.inherit({NAME:"email",_validate:function(e,t){return!b.required.validate(e,{})||b.pattern.validate(e,o({},t,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}),b={required:new f,numeric:new g,range:new m,stringLength:new _,custom:new v,compare:new w,pattern:new x,email:new y},C=i.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return r(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){r(this.validators,function(e,t){t.reset()})}}).include(s),k={groups:[],getGroupConfig:function(e){var t=c.grep(this.groups,function(t){return t.group===e});if(t.length)return t[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new C(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=a(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){d.isDefined(e.message)||(t.defaultFormattedMessage&&d.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},o=this;return r(t||[],function(t,a){var r,s=b[a.type];if(!s)throw l.Error("E0100");return d.isDefined(a.isValid)&&a.value===e&&!a.reevaluate?!!a.isValid||(i.isValid=!1,i.brokenRule=a,!1):(a.value=e,r=s.validate(e,a),a.isValid=r,r||(i.isValid=!1,o._setDefaultMessage(a,s,n),i.brokenRule=a),!!a.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=k.addGroup(e);a(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=k.getGroupConfig(e),i=n&&n.validators,o=a(t,i);o>-1&&(i.splice(o,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};k.initGroups(),e.exports=k},function(e,t,n){var i=n(9),o=n(108),a=n(84),r=Math.abs,s="dxhold",l=750,c=5,d=o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return r(t.x)>c||r(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:d,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(10),o=i.abstract,a=n(53),r=n(3).each,s=n(36),l=n(41),c=n(22).compileGetter,d=n(80),u=d.queryByOptions,h=n(7).Deferred,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=c(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return u(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return u(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(e,t){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(a);f.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},f.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(p[n]=i),i}}(f.inherit),e.exports=f},function(e,t,n){var i=n(0).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=o,a=i(a,r)}},function(e,t,n){var i=n(2),o=n(5),a=n(40),r=n(29),s=n(4),l=n(1),c=n(0).extend,d=n(13).getPublicElement,u=n(6),h=u.getNavigator(),p=n(12),f=n(14),g=n(8),m=n(58),_=n(57),v=n(9),w=n(475),x=n(272),y=n(184),b=n(7).when,C="dxScrollable",k="dxScrollableStrategy",S="dx-scrollable",I="dx-scrollable-disabled",D="dx-scrollable-container",T="dx-scrollable-wrapper",E="dx-scrollable-content",A="dx-scrollable-customizable-scrollbars",B="vertical",O="horizontal",R="both",M=function(){return[{device:function(){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!f.isSimulator()&&"generic"===f.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]},P=m.inherit({_getDefaultOptions:function(){return c(this.callBase(),{disabled:!1,onScroll:null,direction:B,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(M(),[{device:function(){return a.nativeScrolling&&"android"===f.real().platform&&!r.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===f.real().platform},options:{pushBackValue:1}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(S),t=this._$container=i("<div>").addClass(D),n=this._$wrapper=i("<div>").addClass(T),a=this._$content=i("<div>").addClass(E);p.hasDocumentProperty("onbeforeactivate")&&r.msie&&r.version<12&&o.on(e,v.addNamespace("beforeactivate",C),function(e){i(e.target).is(_.focusable)||e.preventDefault()}),a.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==f.real().deviceType||h.platform.indexOf("Mac")>-1&&r.webkit||this.$element().addClass(A)},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachNativeScrollbarsCustomizationCss(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var e=this,t=e.option("rtlEnabled");this._updateBounds(),t&&this.option("direction")!==B&&s.deferUpdate(function(){var t=e.scrollWidth()-e.clientWidth();s.deferRender(function(){e.scrollTo({left:t})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};o.off(this._$wrapper,"."+C),o.on(this._$wrapper,v.addNamespace(w.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(w.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(w.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(w.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(w.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(w.stop,C),e.handleStop.bind(e)),o.off(this._$container,"."+C),o.on(this._$container,v.addNamespace("scroll",C),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass(I,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+O).removeClass("dx-scrollable-"+B).removeClass("dx-scrollable-"+R).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(k,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new y(this):new x.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&u.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===B?"left":e===O?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(l.isPlainObject(e)){var t=s.ensureDefined(e.left,e.x),n=s.ensureDefined(e.top,e.y);return{left:l.isDefined(t)?-t:void 0,top:l.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==B?-e:void 0,top:i!==O?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===B?t!==O:e===O?t!==B:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(R)&&e.vertical&&e.horizontal?this._allowedDirectionValue=R:this._isDirection(O)&&e.horizontal?this._allowedDirectionValue=O:this._isDirection(B)&&e.vertical?this._allowedDirectionValue=B:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return d(this._$content)},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return b(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t));var n=this._normalizeLocation({left:t.left-s.ensureDefined(e.left,t.left),top:t.top-s.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){t=t||{};var n=i(e),o=this.$content().find(e).length,a=n.parents("."+S).length-n.parents("."+E).length===0;if(o&&a){var r={top:0,left:0},s=this.option("direction");s!==B&&(r.left=this._scrollToElementPosition(n,O,t)),s!==O&&(r.top=this._scrollToElementPosition(n,B,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===B,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left"),l=s-r,c=e[i?"outerHeight":"outerWidth"](),d=i?this.scrollTop():this.scrollLeft(),u=i?this.clientHeight():this.clientWidth(),h=d-l+o,p=d-l-c+u-a;return h<=0&&p>=0?d:d-(Math.abs(h)>Math.abs(p)?p:h)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});g(C,P),e.exports=P,e.exports.deviceDependentOptions=M},function(e,t,n){function i(e){var t=function t(n,i,o,a,r,s){function l(e,r,s){_(t(n,i,o,a,r,s)).done(e.resolve)}a=a||[],n=n||[];var c,d,u,h;for(r=r||0,d=r;d<n.length;d++){if(e&&d>r&&d%1e4===0&&new Date-x>=300)return x=new Date,u=new v,setTimeout(l(u,d,!1),0),u;if(c=n[d],!s){if(a.unshift(c),o&&i(a,d)===!1)return;if(c.children&&(h=t(c.children,i,o,a),e&&h))return u=new v,h.done(l(u,d,!0)),u}if(s=!1,!o&&i(a,d)===!1)return;a.shift(),n[d]!==c&&d--}};return t}function o(e){return c.map(["year","quarter","month"],function(t,n){return d({},e,{groupInterval:t,groupIndex:n})})}function a(e,t,n,i){var s=[];return c.each(t||[],function(t,c){if(!t||0!==t.indexOf("__")){for(var d,u=1,h=n.length?n+"."+t:t,p=i[h],f=l.compileGetter(h);!r.isDefined(c)&&e[u];)c=f(e[u]),u++;!p&&r.isDefined(c)&&(p=r.type(c)),
|
|
16
16
|
d=[{dataField:h,dataType:p,groupName:"date"===p?t:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?d=d.concat(o(d[0])):"object"===p&&(d=a(e,c,h,i)),s.push.apply(s,d)}}),s}var r=n(1),s=n(72),l=n(22),c=n(3),d=n(0).extend,u=n(1).isDefined,h=n(33),p=n(88),f=n(52),g=n(79),m=n(7),_=m.when,v=m.Deferred,w=t.setFieldProperty=function(e,t,n,i){var o=e._initProperties=e._initProperties||{},a=i?n:e[t];o.hasOwnProperty(t)&&!i||(o[t]=a),e[t]=n};t.sendRequest=function(e){return s.sendRequest(e)};var x=new Date;t.foreachTree=i(!1),t.foreachTreeAsync=i(!0),t.findField=function(e,t){var n,i;if(e&&r.isDefined(t))for(n=0;n<e.length;n++)if(i=e[n],i.name===t||i.caption===t||i.dataField===t||i.index===t)return n;return-1},t.formatValue=function(e,t){var n={value:e,valueText:p.format(e,t.format,t.precision)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var i=0,o=e(t),a=e(n),r=u(o),s=u(a);return r&&s&&(o>a?i=1:o<a&&(i=-1)),r&&!s&&(i=1),!r&&s&&(i=-1),i}},t.createPath=function(e){var t,n=[];for(t=e.length-1;t>=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,r;for(i=i||0,o=o||"children",t.length&&n(t,i),r=0;r<t.length;r++)a=t[r],a[o]&&a[o].length&&e(a[o],n,i+1,o)},t.mergeArraysByMaxValue=function(e,t){var n,i=[];for(n=0;n<e.length;n++)i.push(Math.max(e[n]||0,t[n]||0));return i},t.getExpandedLevel=function(e,t){var n=e[t],i=0,o=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:c.each(o,function(e,t){i=Math.max(i,t.length)});n[i+1]&&n[i].expanded;)i++;return i},t.discoverObjectFields=function(e,n){var i=t.getFieldsDataType(n);return a(e,e[0],"",i)},t.getFieldsDataType=function(e){var t={};return c.each(e,function(e,n){t[n.dataField]=t[n.dataField]||n.dataType}),t};var y={month:function(e){return h.getMonthNames()[e-1]},quarter:function(e){return h.format(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return h.getDayNames()[e]}};t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||w(e,"format",y[e.groupInterval]);else if("number"===e.dataType){var t=r.isNumeric(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&w(e,"customizeText",function(n){var i=n.value+t,o=p.format(i,e.format,e.precision);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i<t.length;i++)n.push(d({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.storeDrillDownMixin={createDrillDownDataSource:function(e,t){function n(e){return function(t){var n;return i?n=i[e](t):(n=new v,_(o).done(function(o){i=new g(o),i[e](t).done(n.resolve).fail(n.reject)}).fail(n.reject)),n}}var i,o=this.getDrillDownItems(e,t),a=new f.DataSource({load:n("load"),totalCount:n("totalCount"),key:this.key()});return a}},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var i=n(66),o=n(13),a=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return o.normalizeTemplateElement(this._render(e))}});e.exports=a},function(e,t,n){var i,o=n(10),a=n(4),r=n(13).contains,s=n(14),l=n(9),c=n(25),d=n(108),u=n(84),h="dxactive",p="dxinactive",f=30,g=400,m=o.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),_=d.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new m(0,a.noop),this._inactive=new m(0,a.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=r(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),o=l.isMouseEvent(e),r=s.isSimulator(),c=r||!o,d=a.ensureDefined(this.activeTimeout,f),u=a.ensureDefined(this.inactiveTimeout,g);this._active=new m(c?d:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new m(c?u:0,function(){t._fireEvent(p,e,{target:n}),i=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==c.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),i=null,this._cancel(),this._inactive.force.bind(this._inactive)}});_.lock=function(e){var t=i?i.lockInactive():a.noop;e.done(t)},u({emitter:_,events:[h,p]}),t.lock=_.lock,t.active=h,t.inactive=p},function(e,t,n){function i(e,t,n){var i=[],o=function(e){return e<10?"0".concat(e):String(e)},a=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1};return i.push(e.getFullYear()),i.push("-"),i.push(o(e.getMonth()+1)),i.push("-"),i.push(o(e.getDate())),t&&a()||(i.push("T"),i.push(o(e.getHours())),i.push(":"),i.push(o(e.getMinutes())),i.push(":"),i.push(o(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(e.getMilliseconds())),n||i.push("Z")),i.join("")}function o(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);return t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length&&(t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3])),t.setMilliseconds(Number(String(o[4]).substr(0,3))||0)),t}function a(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function r(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,o=n(e).split("/"),a=t.split("/");for(o.pop();a.length;)i=a.shift(),".."===i?o.pop():o.push(i);return o.join("/")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(10),c=n(0).extend,d=n(1),u=n(3),h=n(3).each,p=n(72),f=n(50),g=d.isDefined,m=d.isPlainObject,_=n(4).grep,v=n(7).Deferred,w=n(36).errors,x=n(41),y=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,b=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,C=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,k="application/json;odata=verbose",S=function(e){return"string"===d.type(e)?e.split():e},I=function(e){return/\./.test(e)},D=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},T=function(e,t,n){function o(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw w.Error("E4002")}})}t=c({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var a=n.beforeSend;a&&a(t);var r=(t.method||"get").toLowerCase(),s="get"===r,l=s&&n.jsonp,d=c({},t.params),u=s?d:o(t.payload),h=!s&&D(d),p=t.url,f=!s&&k;return h&&(p+=(p.indexOf("?")>-1?"&":"?")+h),l&&(u.$format="json"),{url:p,data:u,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:r,async:t.async,timeout:t.timeout,headers:t.headers,contentType:f,accepts:{json:[k,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},E=function e(t,n,i){var o=new v,s=T(t,n,i);return p.sendRequest(s).always(function(n,l){var c,d={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},u=O(n,l,d),h=u.error,p=u.data,f=u.nextUrl;h?h.message!==x.XHR_ERROR_UNLOAD&&o.reject(h):i.countOnly?isFinite(u.count)?o.resolve(u.count):o.reject(new w.Error("E4018")):f&&!i.isPaged?(a(f)||(f=r(s.url,f)),e(t,{url:f},i).fail(o.reject).done(function(e){o.resolve(p.concat(e))})):(isFinite(u.count)&&(c={totalCount:u.count}),o.resolve(p,c))}),o.promise()},A=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||t.indexOf("inner exception")!==-1););return t},B=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",o=e;if("success"!==t){n=e.status,i=x.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var a=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);return a?(i=A(a)||i,200===n&&(n=500),a.code&&(n=Number(a.code)),c(Error(i),{httpStatus:n,errorDetails:a})):200!==n?c(Error(i),{httpStatus:n}):void 0},O=function(e,t,n){var i,o=B(e,t);return o?{error:o}:m(e)?(i="d"in e&&(Array.isArray(e.d)||d.isObject(e.d))?R(e,t):M(e,t),V(i,n),i):{data:e}},R=function(e){var t=e.d;return g(t)?(g(t.results)&&(t=t.results),{data:t,nextUrl:e.d.__next,count:parseInt(e.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},M=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},P=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),V=function e(t,n){n=n||{},h(t,function(i,a){if(null!==a&&"object"===("undefined"==typeof a?"undefined":s(a)))"results"in a&&(t[i]=a.results),e(t[i],n);else if("string"==typeof a){var r=n.fieldTypes,l=!r||"String"!==r[i];if(l&&y.test(a)&&(t[i]=new f(a)),n.deserializeDates!==!1)if(a.match(b)){var c=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(c.valueOf()+60*c.getTimezoneOffset()*1e3)}else C.test(a)&&(t[i]=new Date(o(t[i]).valueOf()))}})},F=function(e){return"datetime'"+i(e,!0,!0)+"'"},H=function(e){return"'"+e.replace(/'/g,"''")+"'"},$=function(e){return e instanceof P?e.valueOf():e.replace(/\./g,"/")},L=function e(t){return t instanceof Date?i(t,!1,!1):t instanceof f?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":z(t)},z=function(e){return e instanceof Date?F(e):e instanceof f?"guid'"+e+"'":e instanceof P?e.valueOf():"string"==typeof e?H(e):String(e)},N=function(e,t){switch(t){case 2:case 3:return z(e);case 4:return L(e);default:throw w.Error("E4002")}},W=function(e,t){if(m(e)){var n=[];return h(e,function(e,i){n.push($(e)+"="+N(i,t))}),n.join()}return N(e,t)},q={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof P?e:new P(e+"L")},Guid:function(e){return e instanceof f?e:new f(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof P?e:new P(e+"f")},Decimal:function(e){return e instanceof P?e:new P(e+"m")}},G=function(e,t){if(null===t)return null;var n=q[e];if(!n)throw w.Error("E4014",e);return n(t)},K=function(e,t){if(t)return e<4?$(t.join()):_(t,I,!0).join()},j=function(e,t,n){var i=function(){var e={};return t&&u.each(S(t),function(){e[$(this)]=1}),n&&u.each(S(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[$(t.join("."))]=1)}),u.map(e,function(e,t){return t}).join()},o=function(){var e=function(e){var t=function e(t){var n="",i=[],o=[];return u.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),m(n)&&o.push(t+e(n))}),(i.length||o.length)&&(n+="(",i.length&&(n+="$select="+u.map(i,$).join()),o.length&&(i.length&&(n+=";"),n+="$expand="+u.map(o,$).join()),n+=")"),n},n=[];return u.each(e,function(e,i){n.push(e+t(i))}),n.join()},i=function(e,t,n){var i=function e(t,n,i){var o=i(n,t.shift(),t);o!==!1&&e(t,o,i)};u.each(e,function(e,o){i(o.split("."),t,n)})},o={};if(t||n)return t&&i(S(t),o,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(_(S(n),I),o,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),e(o)};return e<4?i():o()};t.sendRequest=E,t.serializePropName=$,t.serializeValue=N,t.serializeKey=W,t.keyConverters=q,t.convertPrimitiveValue=G,t.generateExpand=j,t.generateSelect=K,t.EdmLiteral=P},function(e,t,n){e.exports=n(456)},function(e,t,n){var i=n(7),o=n(6),a=i.Deferred,r=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||(s=function(e){var t=new a;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new a).resolve(e).promise()},s.reject=function(e){return(new a).reject(e).promise()},s.all=function(e){return r.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(35),o=n(5),a=n(171),r=n(1).isDefined,s=n(129),l="dxComponents",c="dxPrivateComponent",d=new a,u=0,h=t.name=function(e,t){if(r(t))return void d.set(e,t);if(!d.has(e)){var n=c+u++;return d.set(e,n),n}return d.get(e)};t.attachInstanceToElement=function(e,t,n){var a=i.data(e.get(0)),r=h(t.constructor);a[r]=t,n&&o.one(e,s,function(){n.call(t)}),a[l]||(a[l]=[]),a[l].push(r)},t.getInstanceByElement=function(e,t){var n=h(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(66);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(0).extend,o=n(75),a=n(39),r=n(120),s="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return d([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.logger[t]("log"===t?e:r([].slice.call(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),c(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")},c=function(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,s+e])},d=function(e){var t,n,o;return t=e[0],e=e.slice(1),n=l(t,e),o=c(t,n),i(new Error(o),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(30),o=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(65),r=n(1).isDate,s=n(3).each,l=n(33),c=function(){return["year","day","month","day"]},d=6e4,u=60*d*24,h=365*u,p=function(e){var t="undefined"==typeof e?"undefined":i(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},f={SUPPORTED_FORMATS:["date","time","datetime"],DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=o("<div>").addClass("dx-dateview-formatter-container");return o("<span>").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("<span>").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:d,ONE_DAY:u,ONE_YEAR:h,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var e=new Date;return new Date(e.getFullYear()+50,e.getMonth(),e.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:c()},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e;return function(){var t="yyyy-MM-ddTHH:mmZ",n="2000-01-01T01:01Z",i=o("<input>").attr("type","datetime");i.val(n),i.val()&&(e=t)}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),f.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:c().concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:c().concat(["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=f.FORMATS_INFO[t].getStandardPattern();return a.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=a.dateParser(e);return r(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var o=new Date(e.valueOf()),a=f.FORMATS_INFO[n];return s(a.components,function(){var e=f.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())}),o},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;t<e.length;++t)e[t].length>i&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return l.formatUsesMonthName(e)},formatUsesDayName:function(e){return l.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=p(e),o=9;i&&!f.formatUsesMonthName(i)||(o=f.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||f.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+f.getLongestCaptionIndex(n);a.setDate(r)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};f.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setFullYear(e),l.format(i,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setDate(e),t?f.DATE_COMPONENT_TEXT_FORMATTER(e,l.getDayNames()[i.getDay()]):l.format(i,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e,t){var n=l.getMonthNames()[e];return t?f.DATE_COMPONENT_TEXT_FORMATTER(e+1,n):n},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return l.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return l.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},e.exports=f},function(e,t,n){var i=n(6),o=i.hasWindow()?i.getWindow():{},a=n(68),r=1e3/60,s=function(e){return setTimeout(e,r)},l=function(e){clearTimeout(e)},c=a(function(){var e=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame,t=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||o.oCancelAnimationFrame||o.msCancelAnimationFrame;if(e&&t&&(s=e,l=t),e&&!t){var n={};s=function(t){var i=e.call(o,function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}});return i},l=function(e){n[e]=!0}}});t.requestAnimationFrame=function(){return c(),s.apply(o,arguments)},t.cancelAnimationFrame=function(){c(),l.apply(o,arguments)}},function(e,t,n){var i=n(2),o=function(e){return!(!e||"string"!=typeof e)&&(/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon")},a=function(e){var t=o(e),n="dx-icon";switch(t){case"image":return i("<img>").attr("src",e).addClass(n);case"fontIcon":return i("<i>").addClass(n+" "+e);case"dxIcon":return i("<i>").addClass(n+" "+n+"-"+e);default:return null}};t.getImageSourceType=o,t.getImageContainer=a},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(2),o=n(4).noop,a=n(10),r=n(19),s=n(0).extend,l=n(9),c=a.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=r(),this._acceptCallback=r()},getElement:function(){return this._$element},validate:function(e){return"dxmousewheel"!==e.type},validatePointers:function(e){return 1===l.hasTouches(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){s(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=s({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=l.fireEvent(i),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?i(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});e.exports=c},function(e,t,n){var i=n(56);if(i){var o=n(17),a=n(59).compare;if(a(i.version,[2,3])<0)throw o.Error("E0013");n(326),n(329),n(330),n(331),n(332),n(333),n(334)}},function(e,t,n){var i=n(56),o=n(3).each,a=n(228),r=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++)n(e[o],t)||i.push(e[o]);return i.push.apply(i,t),i},s=function(e,t){var n=!1;return o(t,function(t,i){var o=e.option("id")===i.option("id")&&i.option("id"),a=e.option("behavior")===i.option("behavior")&&e.option("behavior");if(n=o||a,a&&null===i.option("onExecute")&&i.option("onExecute",e.option("onExecute")),n)return e.$element().remove(),!1}),n},l=function(e,t){return r(e,t,s)},c=function(e,t,n,i){var o=t?t[n]:void 0,a=void 0===o?i:o,r=e.option(n);return void 0===r||r===i?a:r},d=function(e,t){var n=c(e,t,"showText"),i=!!e.option("icon"),o=c(e,t,"title","");return n||!i?o:""},u=function(e,t){var n=c(e,t,"showIcon"),i=!!e.option("title"),o=c(e,t,"icon","");return n||!i?o:""};t.utils={mergeCommands:l,commandToContainer:{resolveIconValue:u,resolveTextValue:d,resolvePropertyValue:c}},t.templateProvider={createTemplate:function(e){return new a(e)},applyTemplate:function(e,t){i.applyBindings(t,e)}}},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(19),r=n(4),s=n(3),l=n(1).isPlainObject,c=n(0).extend,d=n(142),u=n(53),h=n(62),p=n(223).processCallback,f=n(136),g=n(7).when,m={current:"current",blank:"blank",back:"back"},_="__history",v=o.inherit({ctor:function(e){e=e||{},this._currentItem=void 0,this._previousItem=void 0,this._createNavigationDevice(e)},_createNavigationDevice:function(e){this._navigationDevice=e.navigationDevice||new d.HistoryBasedNavigationDevice,this._navigationDevice.uriChanged.add(this._uriChangedHandler.bind(this))},_uriChangedHandler:function(e){for(;f(););this.navigate(e)},_syncUriWithCurrentNavigationItem:function(){var e=this._currentItem&&this._currentItem.uri;this._navigationDevice.setUri(e,!0)},_cancelNavigation:function(e){this._syncUriWithCurrentNavigationItem(),this.fireEvent("navigationCanceled",[e])},_getDefaultOptions:function(){return{direction:"none",target:m.blank}},_updateHistory:function(e,t){this._previousItem=this._currentItem,this._currentItem={uri:e,key:e},this._navigationDevice.setUri(e,t.target===m.current)},_setCurrentItem:function(e){this._currentItem=e},navigate:function(e,t){t=t||{};var n,o=this,a=!o._currentItem,s=o._currentItem||{},l=t.item||{},d=s.uri,u=s.key,h=l.key;return void 0===e&&(e=o._navigationDevice.getUri()),/^_back$/.test(e)?void o.back():(t=c(o._getDefaultOptions(),t||{}),a&&(t.target=m.current),n={currentUri:d,uri:e,cancel:!1,navigateWhen:[],options:t},o.fireEvent("navigating",[n]),e=n.uri,void(n.cancel||d===e&&(void 0===h||h===u)&&!o._forceNavigate?o._cancelNavigation(n):(o._forceNavigate=!1,g.apply(i,n.navigateWhen).done(function(){r.executeAsync(function(){o._updateHistory(e,t),o.fireEvent("navigated",[{uri:e,previousUri:d,options:t,item:o._currentItem}])})}))))},back:function(){return this._navigationDevice.back()},previousItem:function(){return this._previousItem},currentItem:function(e){if(!(arguments.length>0))return this._currentItem;if(!e)throw h.Error("E3023");this._setCurrentItem(e)},rootUri:function(){return this._currentItem&&this._currentItem.uri},canBack:function(){return!0},saveState:r.noop,restoreState:r.noop,removeState:r.noop}).include(u),w=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),p.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=e.stateStorageKey||_},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(e){e.navigationDevice||(e.navigationDevice=new d.StackBasedNavigationDevice),this.callBase(e),this._navigationDevice.backInitiated.add(this._deviceBackInitiated.bind(this))},_uriChangedHandler:function(e){this.navigate(e)},_createNavigationStacks:function(e){this.navigationStacks={},this._keepPositionInStack=e.keepPositionInStack,this.currentStack=new x},_deviceBackInitiated:function(){f()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:m.blank}},_createNavigationStack:function(){var e=new x;return e.itemsRemoved.add(this._removeItems.bind(this)),e},_setCurrentItem:function(e){this._setCurrentStack(e.stack),this.currentStack.currentItem(e),this.callBase(e),this._syncUriWithCurrentNavigationItem()},_setCurrentStack:function(e){var t,n;"string"==typeof e?(n=e,n in this.navigationStacks||(this.navigationStacks[n]=this._createNavigationStack()),t=this.navigationStacks[n]):(t=e,n=s.map(this.navigationStacks,function(t,n){return t===e?n:null})[0]),this.currentStack=t,this.currentStackKey=n},_getViewTargetStackKey:function(e,t){var n;if(t)if(void 0!==this.navigationStacks[e])n=e;else{for(var i in this.navigationStacks)if(this.navigationStacks[i].items[0].uri===e){n=i;break}n=n||e}else n=this.currentStackKey||e;return n},_updateHistory:function(e,t){var n=t.root,i=n,o=!1,a=this.currentStack,r=void 0!==t.keepPositionInStack?t.keepPositionInStack:this._keepPositionInStack;if(t.stack=t.stack||this._getViewTargetStackKey(e,n),this._setCurrentStack(t.stack),!n&&this.currentStack.items.length||(o=this.currentStack===a,i=!0),n&&this.currentStack.items.length)r&&!o||(this.currentStack.currentIndex=0,this.currentItem().uri!==e&&this.currentStack.navigate(e,!0)),t.direction=t.direction||"none";else{var s=this.currentStack.currentIndex,l=this.currentItem()||{};switch(t.target){case m.blank:this.currentStack.navigate(e);break;case m.current:this.currentStack.navigate(e,!0);break;case m.back:this.currentStack.currentIndex>0?this.currentStack.back(e):this.currentStack.navigate(e,!0);break;default:throw h.Error("E3006",t.target)}if(void 0===t.direction){var c=this.currentStack.currentIndex-s;c<0?t.direction=this.currentStack.currentItem().backDirection||"backward":c>0&&this.currentStack.currentIndex>0?t.direction="forward":t.direction="none"}l.backDirection="forward"===t.direction?"backward":"none"}t.root=i,this._currentItem=this.currentStack.currentItem(),this._syncUriWithCurrentNavigationItem()},_removeItems:function(e){var t=this;s.each(e,function(e,n){t.fireEvent("itemRemoved",[n])})},back:function(e){e=e||{};var t=c({cancel:!1},e);if(this.fireEvent("navigatingBack",[t]),t.cancel)return void this._syncUriWithCurrentNavigationItem();var n=this.previousItem(t.stack);n?this.navigate(n.uri,{stack:t.stack,target:m.back,item:n}):this.callBase()},rootUri:function(){return this.currentStack.items.length?this.currentStack.items[0].uri:this.callBase()},canBack:function(e){var t=e?this.navigationStacks[e]:this.currentStack;return!!t&&t.canBack()},saveState:function(e){if(this.currentStack.items.length){var t={navigationStacks:{},currentStackKey:this.currentStackKey};s.each(this.navigationStacks,function(e,n){var i={};t.navigationStacks[e]=i,i.currentIndex=n.currentIndex,i.items=s.map(n.items,function(e){return{key:e.key,uri:e.uri}})});var n=JSON.stringify(t);e.setItem(this._stateStorageKey,n)}else this.removeState(e)},restoreState:function(e){if(!this.disableRestoreState){var t=e.getItem(this._stateStorageKey);if(t)try{var n=this,i=JSON.parse(t);s.each(i.navigationStacks,function(e,t){var i=n._createNavigationStack();n.navigationStacks[e]=i,i.currentIndex=t.currentIndex,i.items=s.map(t.items,function(e){return e.stack=i,e})}),this.currentStackKey=i.currentStackKey,this.currentStack=this.navigationStacks[this.currentStackKey],this._currentItem=this.currentStack.currentItem(),this._navigationDevice.setUri(this.currentItem().uri),this._forceNavigate=!0}catch(t){throw this.removeState(e),h.Error("E3007")}}},removeState:function(e){e.removeItem(this._stateStorageKey)},currentIndex:function(){return this.currentStack.currentIndex},previousItem:function(e){var t=this.navigationStacks[e]||this.currentStack;return t.previousItem()},getItemByIndex:function(e){return this.currentStack.items[e]},clearHistory:function(){this._createNavigationStacks({keepPositionInStack:this._keepPositionInStack})},itemByKey:function(e){var t;return s.each(this.navigationStacks,function(n,i){var o=i.itemByKey(e);if(o)return t=o,!1}),t},currentItem:function(e){var t;return arguments.length>0?("string"==typeof e?t=this.itemByKey(e):l(e)&&(t=e),void this.callBase(t)):this.callBase()}}),x=o.inherit({ctor:function(e){e=e||{},this.itemsRemoved=a(),this.clear()},currentItem:function(e){if(!e)return this.items[this.currentIndex];for(var t=0;t<this.items.length;t++)if(e===this.items[t]){this.currentIndex=t;break}},previousItem:function(){return this.items.length>1?this.items[this.currentIndex-1]:void 0},canBack:function(){return this.currentIndex>0},clear:function(){this._deleteItems(this.items),this.items=[],this.currentIndex=-1},back:function(e){if(this.currentIndex--,this.currentIndex<0)throw h.Error("E3008");var t=this.currentItem();t.uri!==e&&this._updateItem(this.currentIndex,e)},forward:function(){if(this.currentIndex++,this.currentIndex>=this.items.length)throw h.Error("E3009")},navigate:function(e,t){if(!(this.currentIndex<this.items.length&&this.currentIndex>-1&&this.items[this.currentIndex].uri===e)){if(t&&this.currentIndex>-1&&this.currentIndex--,this.currentIndex+1<this.items.length&&this.items[this.currentIndex+1].uri===e)this.currentIndex++;else{var n=this.items.splice(this.currentIndex+1,this.items.length-this.currentIndex-1);this.items.push({stack:this}),this.currentIndex++,this._updateItem(this.currentIndex,e),this._deleteItems(n)}return this.currentItem()}},itemByKey:function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.key===e)return n}},_updateItem:function(e,t){var n=this.items[e];n.uri=t,n.key=this.items[0].uri+"_"+e+"_"+t},_deleteItems:function(e){e&&this.itemsRemoved.fire(e)}});t.HistoryBasedNavigationManager=v,t.StackBasedNavigationManager=w,t.NavigationStack=x},function(e,t,n){var i=n(52).DataSource,o=n(0).extend,a=n(52).normalizeDataSourceOptions,r="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",c="_dataSourceLoadingChangedHandler",d="_dataSourceFromUrlLoadMode",u="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=u in this?this[u]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=r in this?this[r]():{},t=this._dataSourceType?this._dataSourceType():i,n=a(n,{fromUrlLoadMode:d in this&&this[d]()}),this._dataSource=new t(o(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),c in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(){this[s](e.items())}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){
|
|
17
|
-
this._proxiedDataSourceLoadingChangedHandler=this[c].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};e.exports=h},function(e,t,n){var i=n(64),o=n(81);if(i&&i.load){var a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}};i.locale()||(i.load(a),i.locale("en")),o.inject({locale:function(e){return e?void i.locale(e):i.locale().locale}})}},function(e,t,n){var i=n(124),o=n(5),a=n(58),r=n(3).each,s=n(9),l=n(0).extend,c=n(100),d="dxSwipeable",u="dx-swipeable",h={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},p=a.inherit({_getDefaultOptions:function(){return l(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass(u),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),r(h,function(t,n){var i=this._createActionByOption(t,{context:this});n=s.addNamespace(n,e),o.on(this.$element(),n,this._eventData,function(e){return i({event:e})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.off(this.$element(),"."+d)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}}});c.name(p,d),e.exports=p},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(30),l=n(12),c=n(0).extend,d=n(10),u=n(76),h=n(17),p=n(22),f=n(4),g=n(1),m=n(7),_=m.Deferred,v=m.when,w=n(19),x=n(53),y=n(100),b=n(14),C=g.isFunction,k=f.noop,S={},I={},D=function(){function e(){o(this,e),this._postponedOperations={}}return r(e,[{key:"add",value:function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var i=new _;this._postponedOperations[e]={fn:t,completePromise:i,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()}},{key:"callPostponedOperations",value:function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];t.promises&&t.promises.length?v.apply(void 0,i(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve)}this._postponedOperations={}}}]),e}(),T=d.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){var t=this;return Object.keys(this._deprecatedOptions).filter(function(n){return e===t._deprecatedOptions[n].alias})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);c(!0,this._options,n);for(var i in this._optionsByReference)n.hasOwnProperty(i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=b.current(),i=function(e,t){var n=[];return Array.prototype.push.call(n,t),1===n.length&&g.isEmptyObject(n[0])||f.findBestMatches(e,n).length>0},o=0;o<e.length;o++){var a,r=e[o],s=r.device||{};a=C(s)?s(n):i(n,s),a&&c(t,r.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=C(t)&&C(n)?t.toString()===n.toString():f.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=y.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||w(),this._disposingCallbacks=e._disposingCallbacks||w(),this.postponedOperations=new D,this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){if(t=p.toComparable(t,!0),n=p.toComparable(n,!0),t&&n&&g.isRenderer(t)&&g.isRenderer(n))return n.is(t);var i=t!==t,o=n!==n;return!(!i||!o)||!(null!==t&&"object"===("undefined"==typeof t?"undefined":a(t))&&!l.isElementNode(t))&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly","designMode"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly","designMode"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&(this.postponedOperations.callPostponedOperations(),!this._initializing&&!this._initialized)){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly","designMode"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";h.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:k,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),a=0;a<o.length;a++){var r=o[a],s={name:r.split(/[.[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[c(i._defaultActionArgs(),s)]),i._optionChangedAction(c({},s)),i._disposed||i._optionChanged(s)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(o){return arguments.length||(o={}),g.isPlainObject(o)||(o={actionValue:o}),n=n||new u(e,c(t,i._defaultActionConfig())),n.execute.call(n,c(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,o,a=this,r=function(){if(!i){if(t=t||{},"string"!=typeof e)throw h.Error("E0008");0===e.indexOf("on")&&(i=a._getEventName(e)),o=a.option(e)}if(n||o||t.beforeExecute||t.afterExecute||a.hasEvent(i)){if(!n){var r=t.beforeExecute;t.beforeExecute=function(e){r&&r.apply(a,arguments),a.fireEvent(i,e.args)},a._suppressDeprecatedWarnings(),n=a._createAction(o,t),a._resumeDeprecatedWarnings()}if(s().wrapActionsBeforeExecute){var l=a.option("beforeActionExecute")||k,c=l(a,n,t)||n;return c.apply(a,arguments)}return n.apply(a,arguments)}};if(!s().wrapActionsBeforeExecute){var l=a.option("onActionCreated")||k;r=l(a,r,t)||r}return r},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return t.hasOwnProperty(e)},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames){e._cachedDeprecateNames=[];for(var i in e._deprecatedOptions)e._cachedDeprecateNames.push(i)}for(var o=0;o<e._cachedDeprecateNames.length;o++)if(e._cachedDeprecateNames[o]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var a=n.alias;a&&(t=a)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=S[t];return i||(i=S[t]=p.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},o=function(e,o){delete e[o];var a=t(o),r=n(o),s=a?i(e,a,!1):e;s&&delete s[r]},a=function(e,o,a){var r,s="";do s&&(s="."+s),s=n(o)+s,o=t(o),r=o?i(e,o,!1):e;while(!r);r[s]=a},r=function(t,n,i,r){if(i){var s=e(t,i);s&&s!==i&&(a(n,s,r),o(n,i))}},s=function e(t,n,i,o){if(g.isPlainObject(o))for(var a in o)e(t,n,i+"."+a,o[a]);r(t,n,i,o)},l=function(e,t,n){I[t]||(I[t]=p.compileSetter(t));var i=t.split(/[.[]/);I[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},c=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),l(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==g.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&(t={},t[a]=n),o.beginUpdate();try{var r;for(r in t)s(o,t,r,t[r]);for(r in t)c(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return C(n)?n.bind(t)():n}}).include(x);e.exports=T,e.exports.PostponedOperations=D},function(e,t,n){var i=n(2),o=n(10),a=n(0).extend,r=n(4),s=n(1),l=n(3),c=n(32),d=n(139),u=n(7),h=u.when,p=u.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",m=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a,r=this,s=[];return n=n||{},a=this._prepareElementAnimationConfig(t,n,o),a&&e.each(function(){var e=r._createAnimation(i(this),a,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=d.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=c.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=m},function(e,t,n){var i=n(2),o=n(5),a=n(12),r=n(68),s=n(61),l=n(9),c="dxmousewheel",d="dxWheel",u=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(u(),d),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+d)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:c,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(c,h),t.name=c},function(e,t,n){e.exports=n(486)},function(e,t,n){var i=n(6),o=i.getWindow(),a=o.DevExpress=o.DevExpress||{},r=a.errors=n(17);if(a._DEVEXTREME_BUNDLE_INITIALIZED)throw r.Error("E0024");a._DEVEXTREME_BUNDLE_INITIALIZED=!0,a.clientExporter=n(187),a.VERSION=n(120),a.Class=n(10),a.DOMComponent=n(58),a.registerComponent=n(8),a.devices=n(14),a.Color=n(86);var s=n(105);a.EventsMixin=n(53),a.utils={},a.utils.requestAnimationFrame=s.requestAnimationFrame,a.utils.cancelAnimationFrame=s.cancelAnimationFrame,a.utils.initMobileViewport=n(222).initMobileViewport,a.utils.extendFromObject=n(0).extendFromObject,a.utils.createComponents=n(13).createComponents,a.utils.triggerShownEvent=n(13).triggerShownEvent,a.utils.triggerHidingEvent=n(13).triggerHidingEvent,a.utils.resetActiveElement=n(13).resetActiveElement,a.utils.findBestMatches=n(4).findBestMatches,a.createQueue=n(173).create,a.utils.dom=n(13),a.utils.common=n(4),a.utils.date=n(23),a.utils.browser=n(29),a.utils.inflector=n(37),a.utils.iterator=n(3),a.utils.resizeCallbacks=n(121),a.utils.console=n(75),a.utils.string=n(39),a.utils.support=n(40),a.processHardwareBackButton=n(223),a.viewPort=n(73).value,a.hideTopOverlay=n(136),a.formatHelper=n(88),a.config=n(30),a.animationPresets=n(139).presets,a.fx=n(32),a.TransitionExecutor=n(116).TransitionExecutor,a.AnimationPresetCollection=n(139).PresetCollection,a.events=n(319),a.events.click=n(18),a.events.utils=n(9),a.events.GestureEmitter=n(146),a.localization=n(322),e.exports=a},function(e,t,n){e.exports="18.1.13"},function(e,t,n){var i=n(6),o=n(12),a=n(19),r=n(51),s=n(68),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var c,d=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},u=function(){var n=d();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,t.fire(i)}},h=s(function(){e=d()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!c&&t.has()&&(c=o.listen(i.getWindow(),"resize",u))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&c&&(c(),c=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(2),o=n(66),a=o.inherit({_renderCore:function(){return i()}});e.exports=a},function(e,t,n){var i=n(2),o=n(10),a=n(3).each,r=n(100),s="dx-state-invisible",l="dx-state-disabled",c="dx-item-content-placeholder",d=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},u=o.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,r.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<div>").addClass(c);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),o=d(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});u.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=u},function(e,t,n){var i=n(9),o=n(146),a=n(84),r="dxswipestart",s="dxswipe",l="dxswipeend",c={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},d={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},u={horizontal:c,vertical:d},h=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return u[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(r,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:h,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(460),o=n(8);o("dxList",i),e.exports=i},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(10),s=n(124),l=n(9),c="dxListEditDecorator",d=l.addNamespace(s.start,c),u=l.addNamespace(s.swipe,c),h=l.addNamespace(s.end,c),p=r.inherit({ctor:function(e){this._list=e,this._init()},_init:a,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.on(e.$itemElement,d,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,u,this._itemSwipeUpdateHandler.bind(this)),o.on(e.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(clearTimeout(this._list._inkRippleTimer),void this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:a,afterBag:a,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:a,handleClick:a,handleKeyboardEvents:a,handleEnterPressing:a,handleContextMenu:a,_swipeStartHandler:a,_swipeUpdateHandler:a,_swipeEndHandler:a,visibilityChange:a,getExcludedSelectors:a,dispose:a});e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(0).extend,s=n(69),l=n(48),c=n(8),d=n(9),u=n(20),h=n(18),p="dx-checkbox",f="dx-checkbox-icon",g="dx-checkbox-checked",m="dx-checkbox-container",_="dx-checkbox-text",v="dx-checkbox-has-text",w="dx-checkbox-indeterminate",x=100,y=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({event:e})};return r(this.callBase(),{space:e})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return u.isAndroid5()},options:{useInkRipple:!0}}])},_feedbackHideTimeout:x,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass(m),this.setAria("role","checkbox"),this.$element().addClass(p),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("<span>").addClass(f).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("<span>").addClass(_)),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(v)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(v)))},_renderClick:function(){var e=this,t=d.addNamespace(h.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.off(e.$element(),t),o.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass(g,Boolean(t)),e.toggleClass(w,n),this._$submitElement.val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});c("dxCheckBox",y),e.exports=y},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=r.isDefined,l=r.isPromise,c=n(0).extend,d=n(11).inArray,u=n(3).each,h=n(7),p=n(13).getPublicElement,f=h.Deferred,g=n(17),m=n(69),_=n(15),v=n(8),w=n(9),x=n(42),y=n(208),b=n(20),C=n(18),k=".dx-state-disabled",S="dx-selectbox",I="dx-selectbox-popup",D="dx-selectbox-container",T="dx-selectbox-popup-wrapper",E=y.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return c({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){t.escape&&t.escape.apply(this,arguments),this._cancelEditing()},enter:function(e){if(""===this._input().val()&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),this.option("opened");if(t.enter&&t.enter.apply(this,arguments))return this.option("opened")}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return c(this.callBase(),{placeholder:_.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){s(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_defaultOptionsRules:function(){var e=b.current();return this.callBase().concat([{device:function(){return b.isWin8(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{at:"left top",offset:{h:0,v:0}}}},{device:function(){return b.isAndroid5(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{offset:{h:-16,v:-8}},useInkRipple:!0}}])},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(S),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass(D)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass(I)},_popupWrapperClass:function(){return this.callBase()+" "+T},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=d(this.option("selectedItem"),this.option("items")),i=n>=0&&!this._isCustomItemSelected()?t.eq(n):null;this._focusListElement(i)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.not(k).eq(0);this._focusListElement(n)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",p(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataSource&&this._dataSource.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){this._renderInputValue(),this._setSubmitValue()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderInputAddons(),(new f).resolve()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_setNextValue:function(e){var t=this._dataSource.isLoaded()?(new f).resolve():this._dataSource.load();t.done(function(){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)}.bind(this))},_calcNextItem:function(e){var t=this._items(),n=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[n]},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items()),t=new x(e).filter("disabled","<>",!0).toArray();return t},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return u(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_setSelectedItem:function(e){
|
|
17
|
+
this._proxiedDataSourceLoadingChangedHandler=this[c].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};e.exports=h},function(e,t,n){var i=n(64),o=n(81);if(i&&i.load){var a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}};i.locale()||(i.load(a),i.locale("en")),o.inject({locale:function(e){return e?void i.locale(e):i.locale().locale}})}},function(e,t,n){var i=n(124),o=n(5),a=n(58),r=n(3).each,s=n(9),l=n(0).extend,c=n(100),d="dxSwipeable",u="dx-swipeable",h={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},p=a.inherit({_getDefaultOptions:function(){return l(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass(u),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),r(h,function(t,n){var i=this._createActionByOption(t,{context:this});n=s.addNamespace(n,e),o.on(this.$element(),n,this._eventData,function(e){return i({event:e})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.off(this.$element(),"."+d)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}}});c.name(p,d),e.exports=p},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(30),l=n(12),c=n(0).extend,d=n(10),u=n(76),h=n(17),p=n(22),f=n(4),g=n(1),m=n(7),_=m.Deferred,v=m.when,w=n(19),x=n(53),y=n(100),b=n(14),C=g.isFunction,k=f.noop,S={},I={},D=function(){function e(){o(this,e),this._postponedOperations={}}return r(e,[{key:"add",value:function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var i=new _;this._postponedOperations[e]={fn:t,completePromise:i,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()}},{key:"callPostponedOperations",value:function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];t.promises&&t.promises.length?v.apply(void 0,i(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve)}this._postponedOperations={}}}]),e}(),T=d.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){var t=this;return Object.keys(this._deprecatedOptions).filter(function(n){return e===t._deprecatedOptions[n].alias})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);c(!0,this._options,n);for(var i in this._optionsByReference)n.hasOwnProperty(i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=b.current(),i=function(e,t){var n=[];return Array.prototype.push.call(n,t),1===n.length&&g.isEmptyObject(n[0])||f.findBestMatches(e,n).length>0},o=0;o<e.length;o++){var a,r=e[o],s=r.device||{};a=C(s)?s(n):i(n,s),a&&c(t,r.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=C(t)&&C(n)?t.toString()===n.toString():f.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=y.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||w(),this._disposingCallbacks=e._disposingCallbacks||w(),this.postponedOperations=new D,this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){if(t=p.toComparable(t,!0),n=p.toComparable(n,!0),t&&n&&g.isRenderer(t)&&g.isRenderer(n))return n.is(t);var i=t!==t,o=n!==n;return!(!i||!o)||!(null!==t&&"object"===("undefined"==typeof t?"undefined":a(t))&&!l.isElementNode(t))&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly","designMode"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly","designMode"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&(this.postponedOperations.callPostponedOperations(),!this._initializing&&!this._initialized)){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly","designMode"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";h.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:k,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),a=0;a<o.length;a++){var r=o[a],s={name:r.split(/[.[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[c(i._defaultActionArgs(),s)]),i._optionChangedAction(c({},s)),i._disposed||i._optionChanged(s)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(o){return arguments.length||(o={}),g.isPlainObject(o)||(o={actionValue:o}),n=n||new u(e,c(t,i._defaultActionConfig())),n.execute.call(n,c(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,o,a=this,r=function(){if(!i){if(t=t||{},"string"!=typeof e)throw h.Error("E0008");0===e.indexOf("on")&&(i=a._getEventName(e)),o=a.option(e)}if(n||o||t.beforeExecute||t.afterExecute||a.hasEvent(i)){if(!n){var r=t.beforeExecute;t.beforeExecute=function(e){r&&r.apply(a,arguments),a.fireEvent(i,e.args)},a._suppressDeprecatedWarnings(),n=a._createAction(o,t),a._resumeDeprecatedWarnings()}if(s().wrapActionsBeforeExecute){var l=a.option("beforeActionExecute")||k,c=l(a,n,t)||n;return c.apply(a,arguments)}return n.apply(a,arguments)}};if(!s().wrapActionsBeforeExecute){var l=a.option("onActionCreated")||k;r=l(a,r,t)||r}return r},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return t.hasOwnProperty(e)},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames){e._cachedDeprecateNames=[];for(var i in e._deprecatedOptions)e._cachedDeprecateNames.push(i)}for(var o=0;o<e._cachedDeprecateNames.length;o++)if(e._cachedDeprecateNames[o]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var a=n.alias;a&&(t=a)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=S[t];return i||(i=S[t]=p.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},o=function(e,o){delete e[o];var a=t(o),r=n(o),s=a?i(e,a,!1):e;s&&delete s[r]},a=function(e,o,a){var r,s="";do s&&(s="."+s),s=n(o)+s,o=t(o),r=o?i(e,o,!1):e;while(!r);r[s]=a},r=function(t,n,i,r){if(i){var s=e(t,i);s&&s!==i&&(a(n,s,r),o(n,i))}},s=function e(t,n,i,o){if(g.isPlainObject(o))for(var a in o)e(t,n,i+"."+a,o[a]);r(t,n,i,o)},l=function(e,t,n){I[t]||(I[t]=p.compileSetter(t));var i=t.split(/[.[]/);I[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},c=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),l(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==g.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&(t={},t[a]=n),o.beginUpdate();try{var r;for(r in t)s(o,t,r,t[r]);for(r in t)c(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return C(n)?n.bind(t)():n}}).include(x);e.exports=T,e.exports.PostponedOperations=D},function(e,t,n){var i=n(2),o=n(10),a=n(0).extend,r=n(4),s=n(1),l=n(3),c=n(32),d=n(139),u=n(7),h=u.when,p=u.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",m=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a,r=this,s=[];return n=n||{},a=this._prepareElementAnimationConfig(t,n,o),a&&e.each(function(){var e=r._createAnimation(i(this),a,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=d.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=c.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=m},function(e,t,n){var i=n(2),o=n(5),a=n(12),r=n(68),s=n(61),l=n(9),c="dxmousewheel",d="dxWheel",u=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(u(),d),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+d)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:c,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(c,h),t.name=c},function(e,t,n){e.exports=n(486)},function(e,t,n){var i=n(6),o=i.getWindow(),a=o.DevExpress=o.DevExpress||{},r=a.errors=n(17);if(a._DEVEXTREME_BUNDLE_INITIALIZED)throw r.Error("E0024");a._DEVEXTREME_BUNDLE_INITIALIZED=!0,a.clientExporter=n(187),a.VERSION=n(120),a.Class=n(10),a.DOMComponent=n(58),a.registerComponent=n(8),a.devices=n(14),a.Color=n(86);var s=n(105);a.EventsMixin=n(53),a.utils={},a.utils.requestAnimationFrame=s.requestAnimationFrame,a.utils.cancelAnimationFrame=s.cancelAnimationFrame,a.utils.initMobileViewport=n(222).initMobileViewport,a.utils.extendFromObject=n(0).extendFromObject,a.utils.createComponents=n(13).createComponents,a.utils.triggerShownEvent=n(13).triggerShownEvent,a.utils.triggerHidingEvent=n(13).triggerHidingEvent,a.utils.resetActiveElement=n(13).resetActiveElement,a.utils.findBestMatches=n(4).findBestMatches,a.createQueue=n(173).create,a.utils.dom=n(13),a.utils.common=n(4),a.utils.date=n(23),a.utils.browser=n(29),a.utils.inflector=n(37),a.utils.iterator=n(3),a.utils.resizeCallbacks=n(121),a.utils.console=n(75),a.utils.string=n(39),a.utils.support=n(40),a.processHardwareBackButton=n(223),a.viewPort=n(73).value,a.hideTopOverlay=n(136),a.formatHelper=n(88),a.config=n(30),a.animationPresets=n(139).presets,a.fx=n(32),a.TransitionExecutor=n(116).TransitionExecutor,a.AnimationPresetCollection=n(139).PresetCollection,a.events=n(319),a.events.click=n(18),a.events.utils=n(9),a.events.GestureEmitter=n(146),a.localization=n(322),e.exports=a},function(e,t,n){e.exports="18.1.17"},function(e,t,n){var i=n(6),o=n(12),a=n(19),r=n(51),s=n(68),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var c,d=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},u=function(){var n=d();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,t.fire(i)}},h=s(function(){e=d()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!c&&t.has()&&(c=o.listen(i.getWindow(),"resize",u))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&c&&(c(),c=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(2),o=n(66),a=o.inherit({_renderCore:function(){return i()}});e.exports=a},function(e,t,n){var i=n(2),o=n(10),a=n(3).each,r=n(100),s="dx-state-invisible",l="dx-state-disabled",c="dx-item-content-placeholder",d=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},u=o.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,r.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<div>").addClass(c);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),o=d(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});u.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=u},function(e,t,n){var i=n(9),o=n(146),a=n(84),r="dxswipestart",s="dxswipe",l="dxswipeend",c={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},d={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},u={horizontal:c,vertical:d},h=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return u[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(r,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:h,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(460),o=n(8);o("dxList",i),e.exports=i},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(10),s=n(124),l=n(9),c="dxListEditDecorator",d=l.addNamespace(s.start,c),u=l.addNamespace(s.swipe,c),h=l.addNamespace(s.end,c),p=r.inherit({ctor:function(e){this._list=e,this._init()},_init:a,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.on(e.$itemElement,d,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,u,this._itemSwipeUpdateHandler.bind(this)),o.on(e.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(clearTimeout(this._list._inkRippleTimer),void this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:a,afterBag:a,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:a,handleClick:a,handleKeyboardEvents:a,handleEnterPressing:a,handleContextMenu:a,_swipeStartHandler:a,_swipeUpdateHandler:a,_swipeEndHandler:a,visibilityChange:a,getExcludedSelectors:a,dispose:a});e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(0).extend,s=n(69),l=n(48),c=n(8),d=n(9),u=n(20),h=n(18),p="dx-checkbox",f="dx-checkbox-icon",g="dx-checkbox-checked",m="dx-checkbox-container",_="dx-checkbox-text",v="dx-checkbox-has-text",w="dx-checkbox-indeterminate",x=100,y=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({event:e})};return r(this.callBase(),{space:e})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return u.isAndroid5()},options:{useInkRipple:!0}}])},_feedbackHideTimeout:x,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass(m),this.setAria("role","checkbox"),this.$element().addClass(p),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("<span>").addClass(f).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("<span>").addClass(_)),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(v)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(v)))},_renderClick:function(){var e=this,t=d.addNamespace(h.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.off(e.$element(),t),o.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass(g,Boolean(t)),e.toggleClass(w,n),this._$submitElement.val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});c("dxCheckBox",y),e.exports=y},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=r.isDefined,l=r.isPromise,c=n(0).extend,d=n(11).inArray,u=n(3).each,h=n(7),p=n(13).getPublicElement,f=h.Deferred,g=n(17),m=n(69),_=n(15),v=n(8),w=n(9),x=n(42),y=n(208),b=n(20),C=n(18),k=".dx-state-disabled",S="dx-selectbox",I="dx-selectbox-popup",D="dx-selectbox-container",T="dx-selectbox-popup-wrapper",E=y.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return c({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){t.escape&&t.escape.apply(this,arguments),this._cancelEditing()},enter:function(e){if(""===this._input().val()&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),this.option("opened");if(t.enter&&t.enter.apply(this,arguments))return this.option("opened")}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return c(this.callBase(),{placeholder:_.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){s(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_defaultOptionsRules:function(){var e=b.current();return this.callBase().concat([{device:function(){return b.isWin8(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{at:"left top",offset:{h:0,v:0}}}},{device:function(){return b.isAndroid5(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{offset:{h:-16,v:-8}},useInkRipple:!0}}])},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(S),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass(D)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass(I)},_popupWrapperClass:function(){return this.callBase()+" "+T},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=d(this.option("selectedItem"),this.option("items")),i=n>=0&&!this._isCustomItemSelected()?t.eq(n):null;this._focusListElement(i)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.not(k).eq(0);this._focusListElement(n)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",p(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataSource&&this._dataSource.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){this._renderInputValue(),this._setSubmitValue()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderInputAddons(),(new f).resolve()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_setNextValue:function(e){var t=this._dataSource.isLoaded()?(new f).resolve():this._dataSource.load();t.done(function(){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)}.bind(this))},_calcNextItem:function(e){var t=this._items(),n=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[n]},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items()),t=new x(e).filter("disabled","<>",!0).toArray();return t},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return u(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_setSelectedItem:function(e){
|
|
18
18
|
var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e)},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!s(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=c(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&c(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=i(t.option("focusedElement")),o=t._getItemData(n);this._updateField(o)}},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");return t&&this.option("fieldTemplate")?void this._renderInputAddons():void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):a.noop},_selectionChangeHandler:function(e){u(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if(e=arguments.length?e:!this.option("opened"),e||this._restoreInputText(),this._wasSearch()&&e)if(this._wasSearch(!1),this.option("showDataBeforeSearch")||0===this.option("minSearchLength")){if(this._searchTimer)return;var t=this._getActualSearchValue();t&&this._wasSearch(!0),this._filterDataSource(t||null)}else this._setListOption("items",[]);e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_popupHidingHandler:function(){this._cancelEditing(),this.callBase()},_restoreInputText:function(){this._loadItemDeferred&&this._loadItemDeferred.always(function(){if(!this.option("acceptCustomValue")){if(this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing"))return void this._clearTextValue();var e=this.option("selectedItem");(this._displayGetter(e)||"").toString()!==this._searchValue()&&this._renderInputValue().always(function(t){var n=a.ensureDefined(t,e);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this))}}.bind(this))},_focusOutHandler:function(e){this.callBase(e),this._restoreInputText()},_clearTextValue:function(){this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement(i(e.itemElement)),this._saveValueChangeEvent(e.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new f;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(){var t=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(t)?i.resolve(t):i.reject()}.bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler()},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=a.ensureDefined(n,t.customItem);return s(n)&&g.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(){var e=this._searchValue(),t=this._createCustomItem(e);if(void 0===t)throw this._renderValue(),g.Error("E0121");l(t)?h.fromPromise(t).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(t)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_createClearButton:function(){var e=w.addNamespace(C.name,this.NAME),t=this.callBase();return o.on(t,e,function(){return!1}),t},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(e){return this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(!this._shouldSubstitutionBeRendered())return void delete this._preventSubstitution;var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e).toString();i.value=o,this._caret({start:n,end:o.length})}}},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=a.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"selectedItem":e.previousValue!==e.value&&this.callBase(e);break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});v("dxSelectBox",E),e.exports=E},function(e,t,n){var i=n(2),o=n(35).beforeCleanData,a=n(5),r=n(61),s="dxremove",l="dxRemoveEvent";o(function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n[0][l]=null,a.triggerHandler(n,s))}}),r(s,{noBubble:!0,setup:function(e){i(e).prop(l,!0)}}),e.exports=s},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6),r=a.getWindow(),s=n(12),l=n(5),c=n(8),d=n(39),u=n(0).extend,h=n(24),p=n(77),f=n(4).noop,g=n(1),m=n(31),_=n(9),v=n(60),w="dx-popover",x="dx-popover-wrapper",y="dx-popover-arrow",b="dx-popover-without-title",C={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},k={left:-1,top:-1,center:0,right:1,bottom:1},S={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},I={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},D=function(e,t){var n=e.option(t);return T(n)},T=function(e){return g.isObject(e)?e.name:e},E=function(e,t){var n=e.option(t);return g.isObject(n)&&n.delay},A=function(e,t){var n,i,a,r,c=e.option("target"),d=D(e,t+"Event");d&&!e.option("disabled")&&(r=_.addNamespace(d,e.NAME),i=e._createAction(function(){n=E(e,t+"Event"),this._clearEventTimeout("hide"===t),n?this._timeouts[t]=setTimeout(function(){e[t]()},n):e[t]()}.bind(e),{validatingTargetName:"target"}),a=function(e){i({event:e,target:o(e.currentTarget)})},c.jquery||c.nodeType||g.isWindow(c)?(e["_"+t+"EventHandler"]=void 0,l.on(c,r,a)):(e["_"+t+"EventHandler"]=a,l.on(s.getDocument(),r,c,a)))},B=function(e,t,n,i){var a=i||D(e,n+"Event");a&&(a=_.addNamespace(a,e.NAME),e["_"+n+"EventHandler"]?l.off(s.getDocument(),a,t,e["_"+n+"EventHandler"]):l.off(o(t),a))},O=v.inherit({_getDefaultOptions:function(){return u(this.callBase(),{target:r,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:10,v:10}})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!a.hasWindow()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass(w),this._wrapper().addClass(x)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){B(this,e,"show"),B(this,e,"hide")},_attachEvents:function(){A(this,"show"),A(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass(y).prependTo(this.overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!o(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===i(e.to)&&u(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(b,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:f,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=p.setup(this._$content,e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip),this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),h.move(this._$content,{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this._$popupContent){var e=p.calculate(this._$content,this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=this._$content.width()-e.h.oversize;this._$content.width(t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=this._$content.height()-e.v.oversize,i=this._$popupContent.height()-e.v.oversize;this._$content.height(n),this._$popupContent.height(i)}}},_getContainerPosition:function(){var e=d.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isPopoverInside(),o=(i?-1:1)*k[this._positionSide],a=this._getContentBorderWidth(this._positionSide);return this._isVerticalSide()?n+=o*(this._$arrow.height()-a):this._isHorizontalSide()&&(t+=o*(this._$arrow.width()-a)),u({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(I[e]);return parseInt(t)||0},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?C[this._positionSide]:this._positionSide},_togglePositionClass:function(e){this._$wrapper.removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this._$wrapper.toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){this._$arrow.css(C[e],-(this._isVerticalSide(e)?this._$arrow.height():this._$arrow.width()));var t,n=this._isVerticalSide(e)?"left":"top",i=this._isVerticalSide(e)?"outerWidth":"outerHeight",a=o(this._position.of),r=p.offset(a)||{top:0,left:0},s=p.offset(this._$content),l=this._$arrow[i](),c=s[n],d=this._$content[i](),u=r[n],h=a.get(0).preventDefault?0:a[i](),f=Math.max(c,u),g=Math.min(c+d,u+h);t="start"===this.option("arrowPosition")?f-c:"end"===this.option("arrowPosition")?g-c-l:(f+g)/2-c-l/2;var _=this._getContentBorderWidth(e),v=m.fitIntoRange(t-_+this.option("arrowOffset"),_,d-l-2*_);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),S),t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_setContentHeight:function(e){e&&this.callBase()},_renderShadingPosition:function(){this.option("shading")&&this._$wrapper.css({top:0,left:0})},_renderShadingDimensions:function(){this.option("shading")&&this._$wrapper.css({width:"100%",height:"100%"})},_normalizePosition:function(){var e=u({},this._transformStringPosition(this.option("position"),S));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),this._positionSide=this._getDisplaySide(e),this._position=e},_getDisplaySide:function(e){var t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at),i=k[t.h]===k[n.h]&&k[t.v]===k[n.v]?-1:1,o=Math.abs(k[t.h]-i*k[n.h]),a=Math.abs(k[t.v]-i*k[n.v]);return o>a?n.h:n.v},_isVerticalSide:function(e){return e=e||this._positionSide,"top"===e||"bottom"===e},_isHorizontalSide:function(e){return e=e||this._positionSide,"left"===e||"right"===e},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e?"show":"hide"])},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this.callBase(e),this._renderGeometry();break;case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":var t=e.name.substring(0,4),n=T(e.previousValue);this.hide(),B(this,this.option("target"),t,n),A(this,t);break;case"visible":this._clearEventTimeout(e.value),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});c("dxPopover",O),e.exports=O},,,,,,function(e,t,n){var i=n(11).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(0).extend,o=n(49);o.inject({_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var o=this.format(e,i({},n,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace("$","$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+a+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(115),o=n(3).each,a=n(0).extend,r=n(14),s=n(32),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",d=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return r.current().android||r.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return c+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===r?l.from={left:a,opacity:e}:"backward"===r?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===r?l.to={left:-a,opacity:e}:"backward"===r?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];o(this._registeredPresets,function(i,o){e&&e!==o.name?n.push(o):t.option(t._getPresetOptionName(o.name),void 0)}),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];o(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=d;var u=new d;t.presets=u},function(e,t,n){var i=n(5),o=n(29),a=n(12),r=n(10),s=n(9),l="dxPointerEvents",c=r.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:o.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:a.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:a.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.getDocument(),i.off(e,this._originalEvents)}});e.exports=c},function(e,t,n){var i=n(0).extend,o=n(1),a=n(3),r=n(11).inArray,s=n(10),l=encodeURIComponent("json:"),c=s.inherit({_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_escapeRe:function(e){return e.replace(/[^-\w]/g,"\\$1")},_checkConstraint:function(e,t){e=String(e),"string"==typeof t&&(t=new RegExp(t));var n=t.exec(e);return!(!n||n[0]!==e)},_ensureReady:function(){var e=this;return!this._patternRe&&(this._pattern=this._trimSeparators(this._pattern),this._patternRe="",this._params=[],this._segments=[],this._separators=[],this._pattern.replace(/[^\/]+/g,function(t,n){e._segments.push(t),n&&e._separators.push(e._pattern.substr(n-1,1))}),a.each(this._segments,function(t){var n=this,i=t?e._separators[t-1]:"";":"===n.charAt(0)?(n=n.substr(1),e._params.push(n),e._patternRe+="(?:"+i+"([^/]*))",n in e._defaults&&(e._patternRe+="?")):e._patternRe+=i+e._escapeRe(n)}),void(this._patternRe=new RegExp("^"+this._patternRe+"$")))},ctor:function(e,t,n){this._pattern=e||"",this._defaults=t||{},this._constraints=n||{}},parse:function(e){var t=this;this._ensureReady();var n=this._patternRe.exec(e);if(!n)return!1;var o=i({},this._defaults);return a.each(this._params,function(e){var i=e+1;n.length>=i&&n[i]&&(o[this]=t.parseSegment(n[i]))}),a.each(this._constraints,function(e){if(!t._checkConstraint(o[e],t._constraints[e]))return o=!1,!1}),o},format:function(e){var t=this,n="";this._ensureReady();var s=i({},this._defaults),l=0,c=[],d=[],u={};a.each(e,function(n,i){e[n]=t.formatSegment(i),n in s||(u[n]=!0)}),a.each(this._segments,function(n,i){if(c[n]=n?t._separators[n-1]:"",":"===i.charAt(0)){var o=i.substr(1);if(!(o in e||o in t._defaults))return c=null,!1;if(o in t._constraints&&!t._checkConstraint(e[o],t._constraints[o]))return c=null,!1;o in e?(void 0!==e[o]&&(s[o]=e[o],c[n]+=e[o],l=n),delete u[o]):o in s&&(c[n]+=s[o],d.push(n))}else c[n]+=i,l=n}),a.each(s,function(n,i){if(i&&r(":"+n,t._segments)===-1&&e[n]!==i)return c=null,!1});var h=0;if(o.isEmptyObject(u)||(n="?",a.each(u,function(t){n+=t+"="+e[t]+"&",h++}),n=n.substr(0,n.length-1)),null===c)return!1;d.length&&a.map(d,function(e){e>=l&&(c[e]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+n,unusedCount:h}},formatSegment:function(e){return Array.isArray(e)||o.isPlainObject(e)?l+encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},parseSegment:function(e){if(e.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(e.substr(l.length)))}catch(e){}return decodeURIComponent(e)}}),d=s.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new c(e,t,n)},register:function(e,t,n){this._registry.push(this._createRoute(e,t,n))},_parseQuery:function(e){var t={},n=e.split("&");return a.each(n,function(e,n){var i=n.split("=");t[i[0]]=decodeURIComponent(i[1])}),t},parse:function(e){var t,n=this;e=this._trimSeparators(e);var o=e.split("?",2),r=o[0],s=o[1];return a.each(this._registry,function(){var e=this.parse(r);if(e!==!1)return t=e,s&&(t=i(t,n._parseQuery(s))),!1}),!!t&&t},format:function(e){var t=!1,n=99999;return e=e||{},a.each(this._registry,function(){var o=i(!0,{},e),a=this.format(o);a!==!1&&n>a.unusedCount&&(n=a.unusedCount,t=a.uri)}),t}});e.exports=d,e.exports.Route=c},function(e,t,n){n(43);var i=n(26),o=n(4).noop,a=n(6).getWindow(),r=n(10),s=n(19),l=n(234),c=n(154).sessionStorage,d=n(14),u="dxPhoneJSApplication",h=r.inherit({ctor:function(e){e=e||{},this._browserAdapter=e.browserAdapter||this._createBrowserAdapter(e),this.uriChanged=s(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:o,getUri:function(){return this._browserAdapter.getHash()},setUri:function(e,t){return t?this._browserAdapter.replaceState(e):e!==this.getUri()?this._browserAdapter.pushState(e):i.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var e=d.real(),t=e.version;return"android"===e.platform&&t.length>1&&(2===t[0]&&t[1]<4||t[0]<2)},_isBuggyAndroid4:function(){var e=d.real(),t=e.version;return"android"===e.platform&&t.length>1&&4===t[0]&&0===t[1]},_isWindowsPhone8:function(){var e=d.real();return"win"===e.platform&&e.phone},_createBrowserAdapter:function(e){var t,n=e.window||a,i=n.history.replaceState&&n.history.pushState;return t=this._isWindowsPhone8()?new l.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new l.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new l.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new l.OldBrowserAdapter(e):new l.DefaultBrowserAdapter(e)}}),p=h.inherit({ctor:function(e){this.callBase(e),this.backInitiated=s(),this._rootStateHandler=null,i(a).on("unload",this._saveBrowserState)},init:function(){var e=this;return e._browserAdapter.canWorkInPureBrowser?e._initRootPage().done(function(){e._browserAdapter.isRootPage()&&e._browserAdapter.pushState("")}):i.Deferred().resolve().promise()},setUri:function(e){return this.callBase(e,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var e=c();e&&e.setItem(u,!0)},_initRootPage:function(){var e=this.getUri(),t=c();return!t||t.getItem(u)?i.Deferred().resolve().promise():(t.removeItem(u),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(e))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var e=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(e),this._rootStateHandler=null}}});t.HistoryBasedNavigationDevice=h,t.StackBasedNavigationDevice=p},function(e,t,n){t.layoutSets={},t.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}
|
|
19
|
-
},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(e,t,n){var i=n(10),o=n(1),a=n(3),r=n(22).compileGetter,s=n(22).toComparable,l=n(7).Deferred,c=n(36),d=n(41),u=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=u.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=u.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=s(e),t=s(t),null===e&&null!==t?-1:null!==e&&null===t?1:void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:e<t?-1:e>t?1:0},m=u.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new m(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(a.each(e.rules,function(){this.getter=r(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var o=0,a=this.rules.length;o<a;o++){var r=this.rules[o],s=r.getter(e),l=r.getter(t),c=r.compare||g,d=c(s,l);if(d)return r.desc?-d:d}return n-i}}),_=function(){function e(e,n,i){return function(o){o=s(e(o));var a=t(n)?o===n:o==n;return i&&(a=!a),a}}function t(e){return""===e||0===e||e===!1}function n(e){var t=e[0],n=_(e[1]);if("!"===t)return function(e){return!n(e)};throw c.errors.Error("E4003",t)}var i=function(e){var t=[],n=!1,i=!1;return a.each(e,function(){if(Array.isArray(this)||o.isFunction(this)){if(t.length>1&&n!==i)throw new c.errors.Error("E4019");t.push(_(this)),n=i,i=!0}else i=d.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o<t.length;o++)if(t[o](e)!==n){i=!n;break}return i}},l=function(e){return o.isDefined(e)?e.toString():""},u=function(t){t=d.normalizeBinaryCriterion(t);var n=r(t[0]),i=t[1],o=t[2];switch(o=s(o),i.toLowerCase()){case"=":return e(n,o);case"<>":return e(n,o,!0);case">":return function(e){return s(n(e))>o};case"<":return function(e){return s(n(e))<o};case">=":return function(e){return s(n(e))>=o};case"<=":return function(e){return s(n(e))<=o};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(o)};case"endswith":return function(e){var t=s(l(n(e))),i=l(o);return!(t.length<i.length)&&t.lastIndexOf(o)===t.length-o.length};case"contains":return function(e){return s(l(n(e))).indexOf(o)>-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(o)===-1}}throw c.errors.Error("E4003",i)};return function(e){return o.isFunction(e)?e:d.isGroupCriterion(e)?i(e):d.isUnaryOperation(e)?n(e):u(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=_(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),w=u.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=r(this.getter);for(n.reset();n.next();){var o=n.current(),s=i(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new h(a.map(t,function(t){return{key:t,items:e[t]}}))}}}),x=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=r(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),y=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),b=function e(t,n){n=n||{},t instanceof u||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),c._errorHandler(e)},a=function(e){var n,o=(new l).fail(i),a=e.step,r=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var s=n;t.next();)s=a(s,t.current());o.resolve(r?r(s):s)}catch(e){o.reject(e)}return o.promise()},s=function(e,t,n){return a(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},p=function(e){return a(d.aggregators[e])},f=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),_(new x(t,e))},g=function(e){return f(r(e))},_=function(t){return e(t,n)};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,i){return _(new m(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof m)return _(t.thenBy(e,n,i));throw c.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),_(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),_(new y(t,e,n))},select:f,groupBy:function(e){return _(new w(t,e))},aggregate:s,count:function(){if(t.countable()){var e=(new l).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return p("count")},sum:function(e){return e?g(e).sum():p("sum")},min:function(e){return e?g(e).min():p("min")},max:function(e){return e?g(e).max():p("max")},avg:function(e){return e?g(e).avg():p("avg")}}};e.exports=b},function(e,t,n){var i=n(1),o=n(3),a=n(0).extend,r=n(181),s=n(97),l=s.serializePropName,c=n(36).errors,d=n(41),u=i.isFunction,h=2,p=function(){var e,t,n=function(e){return function(t,n){return t+" "+e+" "+n}},i=function(e,t){return t=t||{},function(n,i){var o=[e,"("];return t.forceLowerCase&&(n=n.indexOf("tolower(")===-1?"tolower("+n+")":n,i=i.toLowerCase()),t.reverse?o.push(i,",",n):o.push(n,",",i),o.push(")"),o.join("")}},r={"=":n("eq"),"<>":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:i("startswith",{forceLowerCase:!0}),endswith:i("endswith",{forceLowerCase:!0})},u=a({},r,{contains:i("substringof",{reverse:!0,forceLowerCase:!0}),notcontains:i("not substringof",{reverse:!0,forceLowerCase:!0})}),h=a({},r,{contains:i("contains",{forceLowerCase:!0}),notcontains:i("not contains",{forceLowerCase:!0})}),p=function(n){n=d.normalizeBinaryCriterion(n);var i=n[1],o=4===e?h:u,a=o[i.toLowerCase()];if(!a)throw c.Error("E4003",i);var r=n[0],p=n[2];return t&&t[r]&&(p=s.convertPrimitiveValue(t[r],p)),a(l(r),s.serializeValue(p,e))},f=function(e){var t=e[0],n=m(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},g=function(e){var t,n,i=[];return o.each(e,function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+m(o)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},m=function(e){return Array.isArray(e[0])?g(e):d.isUnaryOperation(e)?f(e):p(e)};return function(n,i,o){return t=o,e=i,m(n)}}(),f=function(e){function t(e){for(var t=-1,n=0;n<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&u(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}var n,i,o,r,c=[],d=[],f=e.expand,g=e.version||h,m=function(){return i||void 0!==o},_=function e(t){for(var n=0;n<t.length;n++){if(u(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(r||(c.length&&(t.$orderby=c.join(",")),i&&(t.$skip=i),void 0!==o&&(t.$top=o),t.$select=s.generateSelect(g,n)||void 0,t.$expand=s.generateExpand(g,f,n)||void 0),d.length){var a=d.length<2?d[0]:d,l=e&&e.fieldTypes;t.$filter=p(a,g,l)}return r&&(t.$top=0),(e.requireTotalCount||r)&&(4!==g?t.$inlinecount="allpages":t.$count="true"),t};return{optimize:function(e){t(e)},exec:function(t){return s.sendRequest(g,{url:t,params:a(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:r,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(o)})},multiSort:function(e){var t;if(m())return!1;for(var n=0;n<e.length;n++){var i,o=e[n][0],a=!!e[n][1];if("string"!=typeof o)return!1;i=l(o),a&&(i+=" desc"),t=t||[],t.push(i)}c=t},slice:function(e,t){return!m()&&(i=e,void(o=t))},filter:function(e){return!m()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!_(e)&&(d.length&&d.push("and"),void d.push(e)))},select:function(e){return!n&&!u(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){r=!0}}};r.odata=f,t.odata=f},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(83),s=n(68),l=n(29),c=n(13),d=n(51),u=d.add,h=n(31),p=n(4).noop,f=n(1).isDefined,g=n(9),m=n(108),_=h.sign,v=Math.abs,w=0,x=1,y=2,b=10,C=0,k=180,S=function(e){return e&&"dxmousewheel"===e.type},I=function(){var e=r.styleProp("pointer-events"),t=l.msie&&parseInt(l.version,10)<11;return e&&!t},D=s(function(){var e="dx-gesture-cover",t="generic"===a.real().platform;if(!I()||!t)return p;var n=i("<div>").addClass(e).css("pointerEvents","none");return o.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),u(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),T=function(e,t){var n=D();n(e,t)},E=m.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==y},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=w},start:function(e){return g.needSkipEvent(e)?void this._cancel(e):(this._startEvent=g.createEvent(e),this._startEventData=g.eventData(e),this._stage=x,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),k))},move:function(e){if(this._stage===x&&this._directionConfirmed(e)){if(this._stage=y,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===w)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===y&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e)),i=v(n.x),o=v(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),c="horizontal"===s&&a,d="vertical"===s&&r;return l||c||d||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||S(e)?C:b},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e));this._startEvent.pageX+=_(n.x)*t,this._startEvent.pageY+=_(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&c.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===y;t&&T(e,this.getElement().css("cursor"))},_clearSelection:function(e){S(e)||g.isTouchEvent(e)||c.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===y?this._end(e):this._stage===x&&this._stop(e),this._stage=w},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:p,_start:p,_move:p,_stop:p,_end:p});E.initialTouchBoundary=b,E.touchBoundary=function(e){return f(e)?void(b=e):b},e.exports=E},function(e,t,n){var i=n(2),o=n(264),a=n(5),r=n(50),s=n(8),l=n(4),c=n(13),d=n(57).focused,u=n(3).each,h=n(1).isDefined,p=n(0).extend,f=n(13).getPublicElement,g=n(21),m=n(77),_=n(103).getDefaultAlignment,v=n(15),w=n(38),x=n(9),y=n(98),b=n(18),C=n(95),k=n(60),S="dx-dropdowneditor",I="dx-dropdowneditor-input-wrapper",D="dx-dropdowneditor-button",T="dx-dropdowneditor-icon",E="dx-dropdowneditor-overlay",A="dx-dropdowneditor-overlay-flipped",B="dx-dropdowneditor-active",O="dx-dropdowneditor-button-visible",R="dx-dropdowneditor-field-clickable",M=y.inherit({_supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return p({},this.callBase(),{tab:function(e){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&a.trigger(t,"focus"),e.preventDefault()}},escape:function(e){this.option("opened")&&e.preventDefault(),this.close()},upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this.close(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0},home:e,end:e})},_getDefaultOptions:function(){return p(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:v.format("OK"),cancelButtonText:v.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=_(this.option("rtlEnabled"));return{offset:{h:0,v:-1},my:e+" top",at:e+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t="generic"===e.platform,n="win"===e.platform&&e.version&&10===e.version[0];return t||n},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+I)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction()},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly","designMode"]})},_initMarkup:function(){this.callBase(),this.$element().addClass(S),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner(i("<div>").addClass(I)),this._$container=this.$element().children().eq(0),this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&a.off(this._input(),"focusin focusout beforeactivate")},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");e&&this.option("fieldTemplate")&&this._renderTemplatedField(e,this._fieldRenderData())},_renderTemplatedField:function(e,t){var n=this,i=d(this._input());this._resetFocus(i);var o=this._$container;o.empty(),this._$dropDownButton=null,this._$clearButton=null,e.render({model:t,container:c.getPublicElement(o),onRendered:function(){if(!n._input().length)throw g.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),i&&a.trigger(n._input(),"focus")}})},_resetFocus:function(e){this._cleanFocusState(),e&&a.trigger(this._input(),"focusout")},_fieldRenderData:function(){return this.option("value")},_renderInputAddons:function(){this._renderField(),this.callBase(),this._renderDropDownButton()},_renderDropDownButton:function(){this._$dropDownButton&&(this._$dropDownButton.remove(),this._$dropDownButton=null);var e=this.option("showDropDownButton");this.$element().toggleClass(O,e),e&&(this._$dropDownButton=this._createDropDownButton(),this._attachDropDownButtonClickHandler())},_attachDropDownButtonClickHandler:function(){this.option("showDropDownButton")&&!this.option("openOnFieldClick")&&this._$dropDownButton.dxButton("option","onClick",this._openHandler.bind(this))},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new C(function(e){var t=i("<div>").addClass(T);i(e.container).append(t)},this)},_createDropDownButton:function(){var e=i("<div>").addClass(D).prependTo(this._buttonsContainer());return this._createComponent(e,w,{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,disabled:this.option("readOnly"),useInkRipple:!1,template:this._getTemplateByOption("dropDownButtonTemplate")}),e.removeClass("dx-button"),a.on(e,"mousedown",function(e){e.preventDefault()}),e},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=x.addNamespace(b.name,e.NAME),i=e.option("openOnFieldClick");a.off(t,n),a.on(t,n,e._getInputClickHandler(i)),e.$element().toggleClass(R,i),i&&(e._openOnFieldClickAction=e._createAction(e._openHandler.bind(e)))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!d(this._input())&&a.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass(B,e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:(e||void 0)&&this._popupContentId})},_createPopup:function(){this._$popup||(this._$popup=i("<div>").addClass(E).addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,k,this._popupConfig()),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler(),this._popupContentId="dx-"+new r,this.setAria("id",this._popupContentId,this._popup.$content())},_contentReadyHandler:l.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:p(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1}},_popupInitializedHandler:function(){if(this.option("onPopupInitialized"))return function(e){this._popupInitializedAction({popup:e.component})}.bind(this)},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass(A,e.position.v.flip)},_popupShowingHandler:l.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=m.setup(this.$element()).top,n=m.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_renderPopupContent:function(){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:c.getPublicElement(t),model:n})}},_closeOutsideDropDownHandler:function(e){var t=i(e.target),n=!!t.closest(this.$element()).length,o=!!t.closest(this._$dropDownButton).length,a=!n&&!o;return a},_clean:function(){delete this._$dropDownButton,delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=i(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(a.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){a.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=l.splitPair(t);u(n,function(e,t){p(t,{toolbar:i[0],location:i[1]})})}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_toggleReadOnlyState:function(){this.callBase(),this._$dropDownButton&&this._$dropDownButton.dxButton("option","disabled",this.option("readOnly"))},_optionChanged:function(e){switch(e.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":h(e.value)?this._renderInputAddons():this._invalidate();break;case"showDropDownButton":case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":this._renderDropDownButton();break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return f(this._input())},content:function(){return this._popup?this._popup.content():null}}).include(o);s("dxDropDownEditor",M),e.exports=M},function(e,t,n){var i={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}};e.exports=i},,,,,,function(e,t,n){var i=n(6).getWindow(),o=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=o},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(11).inArray,s=n(3).each,l=n(9),c=a.inherit({_keydown:l.addNamespace("keydown","KeyboardProcessor"),codes:{8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus"},ctor:function(e){var t=this;e=e||{},e.element&&(this._element=i(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){t.process(e)},o.on(this._element,this._keydown,this._processFunction))},dispose:function(){this._element&&o.off(this._element,this._keydown,this._processFunction),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new c;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){if(this._focusTarget&&this._focusTarget!==e.target&&r(e.target,this._focusTarget)<0)return!1;var t={key:this.codes[e.which]||e.which,ctrl:e.ctrlKey,shift:e.shiftKey,alt:e.altKey,originalEvent:e},n=this._handler&&this._handler.call(this._context,t);n&&this._childProcessors&&s(this._childProcessors,function(t,n){n.process(e)})}});e.exports=c},function(e,t,n){var i={_findGroup:function(){var e,t=this.option("validationGroup");return t||(e=this.$element().parents(".dx-validationgroup").first(),t=e.length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}};e.exports=i},function(e,t,n){var i=n(5),o=n(35),a=n(10),r=n(14),s=n(61),l=n(9),c=n(25),d="dxHoverStart",u="dxhoverstart",h=l.addNamespace(c.enter,d),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(c.leave,p),m=a.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){o.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,a=function(e){n._handler(e)};i.on(e,this._originalEventName,t.selector,a),o.data(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){l.isTouchEvent(e)||r.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=o.data(e,this._handlerArrayKeyPath)[t.guid];i.off(e,this._originalEventName,t.selector,n)},teardown:function(e){o.removeData(e,this._handlerArrayKeyPath)}}),_=m.inherit({ctor:function(){this._eventNamespace=d,this._eventName=u,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=m.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});s(u,new _),s(f,new v),t.start=u,t.end=f},function(e,t,n){function i(e){return e&&m(e.then)}function o(e){return(new b).resolve(e).promise()}function a(e,t){if(!m(t))throw _.Error("E4011",e)}function r(e){throw _.Error("E4012",e)}function s(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?g.errorMessageFromXhr(t,n):null}return function(n){var i;i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error"),i.message!==g.XHR_ERROR_UNLOAD&&e.reject(i)}}function l(e,t){
|
|
20
|
-
var n,s=e._loadFunc;return a(I,s),n=s.apply(e,[t]),Array.isArray(n)?n=o(n):null===n||void 0===n?n=o([]):i(n)||r(I),k(n)}function c(e,t){var n,a=e._totalCountFunc;if(!m(a))throw _.Error("E4021");return n=a.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||r(S),n=o(n)),k(n)}function d(e,t,n){var r,s=e._byKeyFunc;return a(D,s),r=s.apply(e,[t,n]),i(r)||(r=o(r)),k(r)}function u(e,t,n,i){t.__rawData?i(t.__rawData):l(t,n).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(s(e))}function h(e,t,n,i){n=n||{};var o={};"userData"in n&&(o.userData=n.userData),u(e,t,o,function(o){var a,r,s,l,c=w(o,{errorHandler:t._errorHandler}),d=[];i||(a=x(c,n),a===c?s=o.slice(0):d.push(a.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(r=x(c,n,!0),r===c?l=o.length:d.push(r.count().done(function(e){l=e}))),C.apply(f,d).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)}).fail(function(t){e.reject(t)})})}function p(e,t,n){u(e,t,{},function(i){for(var o,a=t.key(),r=0,s=i.length;r<s;r++)if(o=i[r],g.keysEqual(a,t.keyOf(i[r]),n))return void e.resolve(o);e.reject(_.Error("E4009"))})}var f=n(2),g=n(41),m=n(1).isFunction,_=n(36).errors,v=n(91),w=n(144),x=n(80).queryByOptions,y=n(7),b=y.Deferred,C=y.when,k=y.fromPromise,S="totalCount",I="load",D="byKey",T="insert",E="update",A="remove",B=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=e.cacheRawData!==!1,this._loadFunc=e[I],this._totalCountFunc=e[S],this._byKeyFunc=e[D],this._insertFunc=e[T],this._updateFunc=e[E],this._removeFunc=e[A]},createQuery:function(){throw _.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new b;return"raw"!==this._loadMode||this._totalCountFunc?(c(this,e).done(function(e){t.resolve(Number(e))}).fail(s(t)),t=this._addFailHandlers(t)):h(t,this,e,!0),t.promise()},_loadImpl:function(e){var t=new b;return"raw"===this._loadMode?h(t,this,e,!1):(l(this,e).done(function(e,n){t.resolve(e,n)}).fail(s(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new b;return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):d(this,e,t).done(function(e){n.resolve(e)}).fail(s(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this._insertFunc,r=new b;return a(T,n),t=n.apply(this,[e]),i(t)||(t=o(t)),k(t).done(function(t){r.resolve(e,t)}).fail(s(r)),r.promise()},_updateImpl:function(e,t){var n,r=this._updateFunc,l=new b;return a(E,r),n=r.apply(this,[e,t]),i(n)||(n=o()),k(n).done(function(){l.resolve(e,t)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,r=new b;return a(A,n),t=n.apply(this,[e]),i(t)||(t=o()),k(t).done(function(){r.resolve(e)}).fail(s(r)),r.promise()}});e.exports=B},function(e,t,n){var i=n(2),o=n(5),a=n(40),r=n(14),s=n(10),l=n(61),c=n(9),d=n(90),u="dxContexMenu",h=c.addNamespace("contextmenu",u),p=c.addNamespace(d.name,u),f="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);o.on(t,h,this._contextMenuHandler.bind(this)),(a.touch||r.isSimulator())&&o.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){c.isMouseEvent(e)&&!r.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return c.fireEvent({type:f,originalEvent:e})},teardown:function(e){o.off(e,"."+u)}});l(f,new g),t.name=f},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(14),r=n(8),s=n(0).extend,l=n(28),c=n(38),d=n(130),u=n(112),h=n(125),p=n(20),f=n(101),g="dx-dropdownmenu",m="dx-dropdownmenu-popup",_="dx-dropdownmenu-popup-wrapper",v="dx-dropdownmenu-list",w="dx-dropdownmenu-button",x={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight"},y={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},b=l.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),s(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return s(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:h,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return p.isMaterial()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===a.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass(g),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new f("item",this),this._defaultTemplates.content=new f("content",this)},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass(w),t=this._buttonOptions();this._button=this._createComponent(e,c,t)},_toggleActiveState:function(e,t,n){this._button._toggleActiveState(e,t,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=i("<div>").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,d,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass(_).toggleClass(m,e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass(v),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*i(o).height();t.height()>a&&t.height(a)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this._getTemplateByOption("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(y[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":this._popup.option(x[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(u);r("dxDropDownMenu",b),e.exports=b},function(e,t,n){e.exports=n(526)},function(e,t,n){e.exports=n(545)},function(e,t,n){var i=n(17),o=n(0).extend,a=n(3).each,r=n(11).inArray,s=n(23),l=s.dateToMilliseconds,c=4,d={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},u={bysecond:function(e,t){e.setSeconds(t)},byminute:function(e,t){e.setMinutes(t)},byhour:function(e,t){e.setHours(t)},bymonth:function(e,t){e.setMonth(t)},bymonthday:function(e,t){if(t<0){var n=new Date(e);h(n,1,-1);var i=n.getDate();i>=Math.abs(t)?h(e,1,t):h(e,2,t)}else e.setDate(t),D(e,t)},byday:function(e,t,n,i){var o=t;"DAILY"!==i&&"WEEKLY"!==i||0!==t||(o=7),t+=m[n]>o?7:0,e.setDate(e.getDate()-e.getDay()+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-m[n],r=o.getTime()-a*l("day"),s=a+1;s>c?e.setTime(r+7*t*l("day")):e.setTime(r+7*(t-1)*l("day"));var d=(e.getTimezoneOffset()-o.getTimezoneOffset())*l("minute");d&&e.setTime(e.getTime()+d)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},h=function(e,t,n){var i=new Date(e);e.setMonth(e.getMonth()+t),e.getMonth()-i.getMonth()>t&&e.setDate(n+1),e.setDate(n+1)},p={bysecond:function(e){return e.getSeconds()},byminute:function(e){return e.getMinutes()},byhour:function(e){return e.getHours()},bymonth:function(e){return e.getMonth()},bymonthday:function(e){return e.getDate()},byday:function(e){return e.getDay()},byweekno:function(e,t){var n,i=new Date(e),o=c-i.getDay()+m[t]-1,a=l("day");e.getDay()<m[t]&&(o-=7),i.setHours(0,0,0),i.setDate(i.getDate()+o);var r=new Date(i.getFullYear(),0,1),s=(r.getTimezoneOffset()-i.getTimezoneOffset())*l("minute");return n=1+(i-r+s)/a,Math.ceil(n/7)},byyearday:function(e){var t=new Date(e.getFullYear(),0,0),n=e.getTimezoneOffset()-t.getTimezoneOffset(),i=e-t-n*l("minute"),o=l("day");return Math.floor(i/o)}},f=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],g=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],m={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},_=function(){return(new Date).getTimezoneOffset()},v=function(e){var t=[];return e.rule&&(t=C(e)),!!t.length},w=function(e){var t=e.interval,n=e.freq,i={},o=d[n.toLowerCase()];return"MONTHLY"===n&&e.byday&&(o=d.daily),i[o]=t,i},x=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)n[i]=N(e[i],t);return n},y=function(e,t){var n=!1;if(!t)return n;for(var i=t.split(","),o=x(i,e),a=/\d{8}$/,r=0,s=o.length;r<s;r++)if(i[r].match(a)){var l=E(e,o[r]);0===l.years&&0===l.months&&0===l.days&&(n=!0)}else e.getTime()===o[r].getTime()&&(n=!0);return n},b=function(e,t,n,i,o){var a,r=!0;return n=n.getTime(),i.until&&i.until.getTime()<n&&(n=i.until.getTime()),i.count&&o===i.count&&(r=!1),a=e.getTime()<=n,a&&r},C=function(e){var t,n=[],i=A(e.rule),o={},r=i.rule,s=e.start;if(!i.isValid||!r.freq)return n;r.interval=w(r),t=K(r);var c=e.end?e.end.getTime()-e.start.getTime():l("day"),d={exception:e.exception,min:e.min,dateRules:t,rule:r,recurrenceStartDate:s,recurrenceEndDate:e.end,duration:c};if(t.length&&r.count){var u=0;Z(t,new Date(s),new Date(s),r).forEach(function(t,n){t<e.max&&(u++,o=k(u,o,t,n,d,!0))})}else X(t,new Date(s),r).forEach(function(t,n){for(var i=0;b(t,s,e.max,r,i);)i++,o=k(i,o,t,n,d),t=T(t,s,r,n)});return r.bysetpos&&a(o,function(e,t){o[e]=I(t,r.bysetpos)}),a(o,function(e,t){n=n.concat(t)}),n.sort(function(e,t){return e-t}),n},k=function(e,t,n,i,o,a){return t[e]||(t[e]=[]),S(n,i,o,a)&&t[e].push(n),t},S=function(e,t,n,i){if(!y(e,n.exception)){var o=s.sameDate(e,n.recurrenceEndDate)?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||J(e,[n.dateRules[t]],n.rule.wkst)}return!1},I=function(e,t){var n=[];return t.split(",").forEach(function(t){t=Number(t);var i=t>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},D=function(e,t){e.getDate()!==t&&e.setDate(t)},T=function(e,t,n,i){var o=new Date(e),a=!0;if(e=s.addInterval(e,n.interval),"MONTHLY"===n.freq&&!n.byday){var r=t.getDate();n.bymonthday&&(r=Number(n.bymonthday.split(",")[i]),r<0&&(o.setMonth(o.getMonth()+1,1),u.bymonthday(o,r),e=o,a=!1)),a&&D(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var l=Number(n.byyearday.split(",")[i]);u.byyearday(e,l)}var c=K(n);for(var d in c[i])u[d]&&u[d](e,c[i][d],n.wkst)}return e},E=function(e,t){return{years:e.getFullYear()-t.getFullYear(),months:e.getMonth()-t.getMonth(),days:e.getDate()-t.getDate(),hours:e.getHours()-t.getHours(),minutes:e.getMinutes()-t.getMinutes(),seconds:e.getSeconds()-t.getSeconds()}},A=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=z(e),t.isValid=O(t.rule,e)),t},B=[],O=function(e,t){return!($(e)||r(e.freq,g)===-1||M(e)||F(e)||H(e)||P(e)||V(e)||R(e))||(L(t),!1)},R=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},M=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},P=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},V=function e(t){var e=!1,n=t.bymonth;return n&&isNaN(parseInt(n))&&(e=!0),e},F=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},H=function(e){var t=q(e),n=!1;return a(t,function(e,t){if(!m.hasOwnProperty(t))return n=!0,!1}),n},$=function(e){var t=!1;return a(e,function(e){if(r(e,f)===-1)return t=!0,!1}),t},L=function(e){r(e,B)===-1&&(i.log("W0006",e),B.push(e))},z=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i<o;i++){var a=n[i].split("="),r=a[0].toLowerCase(),s=a[1];t[r]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var c=parseInt(t.interval);isNaN(c)||(t.interval=c)}else t.interval=1;return t.freq&&t.until&&(t.until=N(t.until)),t},N=function(e,t){if("string"!=typeof e)return e;var n=e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/);if(!n)return null;var i=void 0!==n[8],o=t?t.getTimezoneOffset():ee.getTimeZoneOffset(),a=new(Function.prototype.bind.apply(Date,W(n)));return o=6e4*o,i&&(a=new Date(a.getTime()-o)),a},W=function(e){return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),e},q=function(e){var t=[];return e.byday&&(t=e.byday.split(",")),t},G=function(e){var t=6e4*ee.getTimeZoneOffset();return e=new Date(e.getTime()+t),e.getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)+"Z"},K=function(e){var t=[];if(e.wkst||(e.wkst="MO"),e.byweekno&&!e.byday){for(var n=Object.keys(m),i=0;i<m[e.wkst];i++)n.push(n.shift());e.byday=n.join(",")}for(var o in u)if(e[o]){var a=e[o].split(","),r=j(o,a);t=t.length?Y(r,t):r}return t},j=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var a={};a[e]=U(e,t[i]),n.push(a)}return n},U=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=m[t]),n},Y=function(e,t){for(var n=[],i=0,a=e.length;i<a;i++)for(var r=0,s=t.length;r<s;r++)n.push(o({},e[i],t[r]));return n},X=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=new Date(t);for(var l in r)u[l]&&u[l](s,r[l],n.wkst,n.freq);Array.isArray(s)?i=i.concat(s):i.push(new Date(s))}return i.length||i.push(t),i},Z=function(e,t,n,i){for(var o=[],a=i.count,r=0,l=new Date(t.setDate(1));r<a;){for(var c=X(e,l,i),d=[],u=0;u<c.length;u++)c[u].getTime()>=n.getTime()&&d.push(c[u]);var h=d.length;r+=h;var p=r-a;for(r>a&&d.splice(h-p,p),u=0;u<d.length;u++)o.push(d[u]);var f=i.interval;"days"===Object.keys(f)[0]&&(f={weeks:1}),l=s.addInterval(l,f)}return o},J=function(e,t,n){for(var i=!1,o=0;o<t.length;o++){var a=t[o],r=!0;for(var s in a){var l="bymonthday"===s&&a[s]<0;p[s]&&!l&&a[s]!==p[s](e,n)&&(r=!1)}i=i||r}return i||!t.length},Q=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=G(i)),t+=n+"="+i+";")}return t=t.substring(0,t.length-1),t.toUpperCase()}},ee={getRecurrenceString:Q,getRecurrenceRule:A,getAsciiStringByDate:G,getDatesByRecurrence:C,dateInRecurrenceRange:v,getDateByAsciiString:N,daysFromByDayRule:q,getTimeZoneOffset:_};e.exports=ee},,,,,,,,function(e,t,n){var i=n(11).inArray,o=n(6),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var o=i(n,e);o!==-1&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(19),a=function(){var e=[],t=o();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=a},function(e,t,n){function i(e){function t(){for(;r.length;){s=!0;var e=r.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw o.Error("E0015")}}s=!1}function n(n,i){e?(r[0]&&i&&i(r[0]),r=[n]):r.push(n),s||t()}function i(){return s}var r=[],s=!1;return{add:n,busy:i}}var o=n(17),a=n(7).when;t.create=i,t.enqueue=i().add},function(e,t,n){n(43);var i=n(26),o=n(62),a=n(0).extend,r=n(1),s=n(8),l=n(58),c=r.isFunction,d=r.isPlainObject,u=n(4).noop;n(109);var h=l.inherit({ctor:function(e,t){d(e)&&(t=e,e=i("<div>")),this.callBase(e,t)},_setDeprecatedOptions:function(){this.callBase(),a(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return a(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var e=this._options.disabled;if(c(e)&&(e=!!e.apply(this,arguments)),e)throw o.Error("E3004",this._options.id);this.fireEvent("beforeExecute",arguments),this._createActionByOption("onExecute").apply(this,arguments),this.fireEvent("afterExecute",arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-command")},_renderDisabledState:u,_dispose:function(){this.callBase(),this.$element().removeData(this.NAME)}});s("dxCommand",h),e.exports=h},function(e,t,n){var i=n(10),o=n(11).inArray,a=n(3).each,r=i.inherit({ctor:function(){this.storage={}},getItem:function(e){return this.storage[e]},setItem:function(e,t){this.storage[e]=t},removeItem:function(e){delete this.storage[e]}}),s=i.inherit({ctor:function(e){e=e||{},this.storage=e.storage||new r,this.stateSources=e.stateSources||[]},addStateSource:function(e){this.stateSources.push(e)},removeStateSource:function(e){var t=o(e,this.stateSources);t>-1&&(this.stateSources.splice(t,1),e.removeState(this.storage))},saveState:function(){var e=this;a(this.stateSources,function(t,n){n.saveState(e.storage)})},restoreState:function(){var e=this;a(this.stateSources,function(t,n){n.restoreState(e.storage)})},clearState:function(){var e=this;a(this.stateSources,function(t,n){n.removeState(e.storage)})}});e.exports=s,e.exports.MemoryKeyValueStorage=r},function(e,t,n){n(43);var i=n(26),o=n(177).MarkupComponent,a=n(1).isPlainObject,r=n(8);n(109);var s=o.inherit({ctor:function(e,t){a(e)&&(t=e,e=i("<div>")),this.callBase(e,t)},_setDefaultOptions:function(){this.callBase(),this.option({id:null})},_render:function(){this.callBase(),this.element().addClass("dx-command-container")}});r("dxCommandContainer",s),e.exports=s},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(0).extend,r=n(4).noop,s=n(100),l=o.inherit({ctor:function(e,t){this.NAME=s.name(this.constructor),t=t||{},this._$element=i(e),s.attachInstanceToElement(this._$element,this,this._dispose),t.fromCache?this._options=t:(this._options={},this._setDefaultOptions(),t&&this.option(t),this._render())},_setDefaultOptions:r,_render:r,_dispose:r,element:function(){return this._$element},option:function(e,t){if(0===arguments.length)return this._options;if(1===arguments.length){if("string"==typeof e)return this._options[e];t=e,a(this._options,t)}else this._options[e]=t},instance:function(){return this}});l.getInstance=function(e){return s.getInstanceByElement(i(e),this)},t.MarkupComponent=l},function(e,t,n){var i=n(10),o=n(4).grep,a=n(0).extend,r=n(3).each,s=n(11).inArray,l=n(62),c=i.inherit({ctor:function(){this._commandMappings={},this._containerDefaults={}},setDefaults:function(e,t){return this._containerDefaults[e]=t,this},mapCommands:function(e,t){var n=this;return r(t,function(t,i){"string"==typeof i&&(i={id:i});var o=i.id,r=n._commandMappings[e]||{};r[o]=a({showIcon:!0,showText:!0},n._containerDefaults[e]||{},i),n._commandMappings[e]=r}),this._initExistingCommands(),this},unmapCommands:function(e,t){var n=this;r(t,function(t,i){var o=n._commandMappings[e]||{};o&&delete o[i]}),this._initExistingCommands()},getCommandMappingForContainer:function(e,t){return(this._commandMappings[t]||{})[e]},checkCommandsExist:function(e){var t=this,n=o(e,function(n,i){return s(n,t._existingCommands)<0&&s(n,e)===i});if(0!==n.length)throw l.Error("E3005",n.join("', '"),1===n.length?" is":"s are")},load:function(e){if(e){var t=this;return r(e,function(e,n){t.setDefaults(e,n.defaults),t.mapCommands(e,n.commands)}),this}},_initExistingCommands:function(){var e=this;this._existingCommands=[],r(e._commandMappings,function(t,n){r(n,function(t,n){s(n.id,e._existingCommands)<0&&e._existingCommands.push(n.id)})})}});c.defaultMapping={"global-navigation":{defaults:{showIcon:!0,showText:!0},commands:[]},"ios-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"ios-action-sheet":{defaults:{showIcon:!1,showText:!0},commands:[]},"ios-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"android-header-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},"create",{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-simple-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-footer-toolbar":{defaults:{location:"after"},commands:[{id:"create",showText:!1,location:"center"},{id:"edit",showText:!1,location:"before"},{id:"delete",locateInMenu:"always"},{id:"save",showIcon:!1,location:"before"}]},"generic-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"generic-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"win8-appbar":{defaults:{location:"after"},commands:["edit","cancel","save","delete",{id:"create",location:"before"},{id:"refresh",location:"before"}]},"win8-toolbar":{defaults:{showText:!1,location:"before"},commands:[{id:"previousPage"}]},"win8-phone-appbar":{defaults:{location:"center"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"win8-split-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,location:"before"},{id:"edit",showText:!0,locateInMenu:"always"},{id:"cancel",showText:!0,locateInMenu:"always"},{id:"delete",showText:!0,locateInMenu:"always"}]},"win8-master-detail-toolbar":{defaults:{showText:!1,location:"before"},commands:["back"]},"win10-appbar":{defaults:{showText:!1,location:"after"},commands:[{id:"back",location:"before"},"edit","cancel","save","delete","create","refresh"]},"win10-phone-appbar":{defaults:{location:"after"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"desktop-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["cancel","create","edit","save",{id:"delete",type:"danger"}]}},e.exports=c},function(e,t,n){n(43);var i=n(26),o=n(12),a=n(5),r=n(10),s=n(4),l=n(3),c=n(110),d=n(143).layoutSets,u=n(53),h=n(62),p=n(13),f=n(7).when,g="__hidden-bag",m=".dx-transition",_=".dx-content",v="onViewShown",w="dxcontentrendered.layoutController",x=".dx-pending-rendering",y=".dx-pending-rendering-manual",b=n(116);n(176),n(63);var C=function(e){return".dx-transition-"+e},k=r.inherit({ctor:function(e){e=e||{},this.name=e.name||"",this._layoutModel=e.layoutModel||{},this._defaultPaneName=e.defaultPaneName||"content",this._transitionDuration=void 0===e.transitionDuration?400:e.transitionDuration,this._showViewFired=!1},init:function(e){e=e||{},this._visibleViews={},this._$viewPort=e.$viewPort||i("body"),this._commandManager=e.commandManager,this._viewEngine=e.viewEngine,this.transitionExecutor=new b.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),e.templateContext&&(this._templateContext=e.templateContext,this._proxiedTemplateContextChangedHandler=this._templateContextChangedHandler.bind(this))},ensureActive:function(e){return this._disabledState?this.enable():this.activate(e)},activate:function(){this._showViewFired=!1;var e=this.element();return this._showElements(e),this._attachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(),this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,i.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(e,t){var n=this;t=t||this._visibleViews,l.each(t,function(t,i){n.fireEvent(e,[i])})},_notifyShowing:function(e){this._fireViewEvents("viewShowing",e)},_notifyShown:function(e){this._fireViewEvents("viewShown",e)},_notifyHidden:function(e){this._fireViewEvents("viewHidden",e)},_applyTemplate:function(e,t){e.each(function(e,n){c.templateProvider.applyTemplate(n,t)})},_releaseVisibleViews:function(){var e=this;l.each(this._visibleViews,function(t,n){e._hideView(n),e._releaseView(n)}),this._visibleViews={}},_templateContextChangedHandler:function(){var e=this,t=[];l.each(e._visibleViews,function(n,i){i.currentViewTemplateId!==e._getViewTemplateId(i)&&t.push(i)}),f.apply(i,l.map(t,function(t){return e.showView(t)})).done(function(){e._notifyShown(t)})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(e){return this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]},_prepareTemplates:function(){var e=this,t=e._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());e._$layoutTemplate=t,e._$mainLayout=e._createEmptyLayout(),e._showElements(e._$mainLayout),e._applyTemplate(e._$mainLayout,e._layoutModel),e._$navigationWidget=e._createNavigationWidget()},renderNavigation:function(e){this._clearNavigationWidget(),this._renderNavigationImpl(e)},_renderNavigationImpl:function(e){this._renderCommands(this._$mainLayout,e)},_createNavigationWidget:function(){var e,t=this._findCommandContainers(this._$mainLayout);return l.each(t,function(t,n){if("global-navigation"===n.option("id"))return e=n.element(),!1}),e},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(e){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(e,t){var n=this;this._getTransitionElements(e).each(function(e,o){n._applyTemplate(i(o).children(),t)})},_createViewLayoutTemplate:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),t},_createEmptyLayout:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),this._getTransitionElements(t).empty(),t.children(_).remove(),t},_getTransitionElements:function(e){for(var t=e.find(m).add(e.filter(m)),n=[],o=0;o<t.length;o++){var a=t.eq(o);0===a.parents(m).length&&n.push(a.get(0))}return i(n)},showView:function(e,t){t=t||"forward";var n,o=this,a=o._getPreviousViewInfo(e),r=a===e?a.currentViewTemplateId:void 0;return this._showViewFired=!0,this._updateCurrentViewTemplateId(e),r&&r===e.currentViewTemplateId&&e===a?(o.fireEvent("viewShowing",[e,t]),n=i.Deferred().resolve().promise()):(o._ensureViewRendered(e),o.fireEvent("viewShowing",[e,t]),n=this._showViewImpl(e,t,r).done(function(){o._onViewShown(e)})),n},disposeView:function(e){this._clearRenderResult(e)},_clearRenderResult:function(e){e.renderResult&&(e.renderResult.$markup.remove(),e.renderResult.$viewItems.remove(),delete e.renderResult)},_renderViewImpl:function(e,t){var n,o=this,a=".dx-command,.dx-content,script",r=this._createViewLayoutTemplate(),s=!0,l=i();if(0===e.children(a).length&&this._viewEngine._wrapViewDefaultContent(e),n=e.children(),this._applyModelToTransitionElements(r,t.model),
|
|
21
|
-
this._viewEngine.applyLayout(e,r),n.each(function(e,n){var r=i(n);o._applyTemplate(r,t.model),r.is(a)?s=!1:l=l.add(r)}),l.length&&!s)throw h.Error("E3014",l[0].outerHTML);t.renderResult=t.renderResult||{},t.renderResult.$viewItems=n,t.renderResult.$markup=r},_renderCommands:function(e,t){var n=this._findCommandContainers(e);return this._commandManager.renderCommandsToContainers(t,n)},_prepareViewCommands:function(e){var t=e.renderResult.$viewItems,n=this._commandManager.findCommands(t),i={};e.commands=c.utils.mergeCommands(e.commands||[],n),e.commandsToRenderMap=i,l.each(e.commands,function(e,t){var n=t.option("renderStage")||v,o=i[n]=i[n]||[];o.push(t)})},_applyViewCommands:function(e,t){t=t||v;var n,o=e.commandsToRenderMap[t],a=e.renderResult.$markup;return o?(n=this._renderCommands(a,o),delete e.commandsToRenderMap[t]):n=i.Deferred().resolve().promise(),n},_findCommandContainers:function(e){return p.createComponents(e,["dxCommandContainer"])},_getViewTemplateId:function(e){var t=e.$viewTemplate?e.$viewTemplate.dxView("instance"):this._viewEngine.getViewTemplateInfo(e.viewName);return t.getId()},_updateCurrentViewTemplateId:function(e){e.currentViewTemplateId=this._getViewTemplateId(e)},_ensureViewRendered:function(e){var t=e.renderResult&&e.renderResult.markupCache[e.currentViewTemplateId];t?e.renderResult.$markup=t:(this._renderView(e),e.renderResult.markupCache=e.renderResult.markupCache||{},e.renderResult.markupCache[e.currentViewTemplateId]=e.renderResult.$markup)},_renderView:function(e){var t=e.$viewTemplate||this._viewEngine.getViewTemplate(e.viewName);this._renderViewImpl(t,e),this._prepareViewCommands(e),this._applyViewCommands(e,"onViewRendering"),this._appendViewToLayout(e),t.remove(),this._onRenderComplete(e),this.fireEvent("viewRendered",[e])},_prepareTransition:function(e,t){0===e.children(".dx-content").length&&(e.wrapInner("<div>"),e.children().dxContent({targetPlaceholder:t}))},_appendViewToLayout:function(e){var t=this,n=t._getViewFrame(e),o=e.renderResult.$markup,a=i(),r=[];l.each(o.find(".dx-content-placeholder"),function(e,n){t._prepareTransition(i(n),i(n).attr("data-dx-content-placeholder-name"))}),l.each(t._getTransitionElements(n),function(e,n){var s=i(n),l=o.find(C(s.attr("data-dx-transition-name"))).children(),c={$element:l,animation:s.attr("data-dx-transition-type")};r.push(c),s.append(l),t._showViewElements(l),p.triggerShownEvent(l),a=a.add(l)}),t._$mainLayout.append(e.renderResult.$viewItems.filter(".dx-command")),o.remove(),e.renderResult.$markup=a,e.renderResult.animationItems=r},_onRenderComplete:function(e){},_onViewShown:function(e){a.trigger(o.getDocument(),"dx.viewchanged")},_enter:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.enter(i.$element,i.animation,t)})},_leave:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.leave(i.$element,i.animation,t)})},_doTransition:function(e,t,n){return e&&this._leave(e.renderResult.animationItems,n),this._enter(t.renderResult.animationItems,n),this._showView(t),this.transitionExecutor.start()},_showViewImpl:function(e,t,n){var o=this,a=this._getPreviousViewInfo(e),r={direction:t};a===e&&(a=void 0),a||(r.duration=0,r.delay=0);var s=i.Deferred();return o._doTransition(a,e,r).done(function(){o._changeView(e,n).done(function(e){s.resolve(e)})}),s.promise()},_releaseView:function(e){this.fireEvent("viewReleased",[e])},_getReadyForRenderDeferredItems:function(e){return i.Deferred().resolve().promise()},_changeView:function(e,t){var n=this;if(t)n._hideView(e,t);else{var o=n._getPreviousViewInfo(e);o&&o!==e&&(n._hideView(o),n._releaseView(o)),this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]=e}this._subscribeToDeferredItems(e);var a=i.Deferred();return this._getReadyForRenderDeferredItems(e).done(function(){n._applyViewCommands(e).done(function(){n._renderDeferredItems(e.renderResult.$markup).done(function(){a.resolve()})})}),a.promise()},_subscribeToDeferredItems:function(e){var t=this,n=e.renderResult.$markup;n.find(x).add(n.filter(x)).each(function(){var n={viewInfo:e,context:t};i(this).on(w,n,t._onDeferredContentRendered)})},_onDeferredContentRendered:function(e){var t=i(e.target),n=e.data.viewInfo,o=e.data.context;t.off(w,o._onDeferredContentRendered),o._renderCommands(t,n.commands)},_renderDeferredItems:function(e){var t=this,n=i.Deferred(),o=e.find(y).add(e.filter(y)).first();if(o.length){var a=o.data("dx-render-delegate");s.executeAsync(function(){a().done(function(){t._renderDeferredItems(e).done(function(){n.resolve()})})})}else n.resolve();return n.promise()},_getViewPaneName:function(e){return this._defaultPaneName},_hideElements:function(e){e.addClass("dx-fast-hidden")},_showElements:function(e){e.removeClass("dx-fast-hidden")},_hideViewElements:function(e){this._patchIds(e),this._disableInputs(e),e.removeClass("dx-active-view").addClass("dx-inactive-view")},_hideView:function(e,t){if(e.renderResult){var n=void 0===t?e.renderResult.$markup:e.renderResult.markupCache[t];this._hideViewElements(n),this.fireEvent("viewHidden",[e])}},_showViewElements:function(e){this._unPatchIds(e),this._enableInputs(e),e.removeClass("dx-inactive-view").addClass("dx-active-view"),this._skipAnimation(e)},_showView:function(e){e.renderResult&&this._showViewElements(e.renderResult.$markup)},_skipAnimation:function(e){e.addClass("dx-skip-animation");for(var t=0;t<e.length;t++)e.eq(t).css("transform");e.removeClass("dx-skip-animation")},_patchIds:function(e){this._processIds(e,function(e){var t=e;return e.indexOf(g)===-1&&(t=g+"-"+e),t})},_unPatchIds:function(e){this._processIds(e,function(e){var t=e;return 0===e.indexOf(g)&&(t=e.substr(g.length+1)),t})},_processIds:function(e,t){var n=e.find("[id]");l.each(n,function(e,n){var o=i(n),a=o.attr("id");o.attr("id",t(a))})},_enableInputs:function(e){var t=this._getInputs(e).filter("[data-disabled='true']");l.each(t,function(e,t){i(t).removeAttr("disabled").removeAttr("data-disabled")})},_disableInputs:function(e){var t=this._getInputs(e);t=t.filter(":not([disabled])").add(t.filter("[disabled=true]")),l.each(t,function(e,t){i(t).attr({disabled:!0,"data-disabled":!0})})},_getInputs:function(e){return e.find("input, button, select, textarea")}}).include(u);d.default=d.default||[],d.default.push({controller:new k}),t.DefaultLayoutController=k,t.layoutSets=d},function(e,t,n){var i=n(238);e.exports=i.module("dx",[])},function(e,t,n){e.exports={}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(113);var o=n(64),a=n(49),r=n(17);if(n(64),o&&o.formatNumber){var s={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{"native":"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###","long":{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},"short":{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"}},standard:"\xa4#,##0.00",accounting:"\xa4#,##0.00;(\xa4#,##0.00)","short":{standard:{"1000-count-one":"\xa40K","1000-count-other":"\xa40K","10000-count-one":"\xa400K","10000-count-other":"\xa400K","100000-count-one":"\xa4000K","100000-count-other":"\xa4000K","1000000-count-one":"\xa40M","1000000-count-other":"\xa40M","10000000-count-one":"\xa400M","10000000-count-other":"\xa400M","100000000-count-one":"\xa4000M","100000000-count-other":"\xa4000M","1000000000-count-one":"\xa40B","1000000000-count-other":"\xa40B","10000000000-count-one":"\xa400B","10000000000-count-other":"\xa400B","100000000000-count-one":"\xa4000B","100000000000-count-other":"\xa4000B","1000000000000-count-one":"\xa40T","1000000000000-count-other":"\xa40T","10000000000000-count-one":"\xa400T","10000000000000-count-other":"\xa400T","100000000000000-count-one":"\xa4000T","100000000000000-count-other":"\xa4000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}\u2013{1}"}}}}};"en"===o.locale().locale&&(o.load(s),o.locale("en"));var l={},c=function(e){var t,n;return n="object"===("undefined"==typeof e?"undefined":i(e))?o.locale().locale+":"+JSON.stringify(e):o.locale().locale+":"+e,t=l[n],t||(t=l[n]=o.numberFormatter(e)),t},d={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):c(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){var t;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):c(t)(e))},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&r.log("W0011");var n=o.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};a.inject(d)}},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(13).getPublicElement,l=n(3).each,c=n(22).compileGetter,d=n(0).extend,u=n(32),h=n(18),p=n(124),f=n(40),g=n(15),m=n(69),_=n(14),v=n(469),w=n(38),x=n(9),y=n(20),b=n(6),C=n(189),k=n(93).deviceDependentOptions,S=n(44),I=n(67),D=n(7).Deferred,T="dx-list",E="dx-list-item",A="."+E,B="dx-list-group",O="dx-list-group-header",R="dx-list-group-body",M="dx-list-collapsible-groups",P="dx-list-group-collapsed",V="dx-list-group-header-indicator",F="dx-has-next",H="dx-list-next-button",$=".dx-list-select-all",L="dxListItemData",z=70,N=c("items"),W=S.inherit({_activeStateUnit:[A,$].join(","),_supportedKeys:function(){var e=this,t=function(t){var i=n(t),a=i.is(e.option("focusedElement"));a&&(o(i,t),i=n(t)),e.option("focusedElement",s(i)),e.scrollToItem(i)},n=function(t){var n=e.scrollTop(),o=e.$element().height(),a=i(e.option("focusedElement")),r=!0;if(!a.length)return i();for(;r;){var s=a[t]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;r=l<o+n&&l>n,r&&(a=s)}return a},o=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.$element().height()+t.outerHeight()),e.scrollTo(i)};return d(this.callBase(),{leftArrow:a.noop,rightArrow:a.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:g.format("dxList-pullingDownText"),pulledDownText:g.format("dxList-pulledDownText"),refreshingText:g.format("dxList-refreshingText"),pageLoadingText:g.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:g.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},useInkRipple:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=y.current();return this.callBase().concat(k(),[{device:function(){return!f.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!f.nativeScrolling&&!_.isSimulator()&&"generic"===_.real().platform&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===_.real().deviceType&&!_.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return y.isAndroid5(e)},options:{useInkRipple:!0}},{device:function(){return"win"===_.current().platform&&_.isSimulator()},options:{bounceEnabled:!1}},{device:function(){return y.isMaterial(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return E},_itemDataKey:function(){return L},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+B).children("."+R).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},reorderItem:function(e,t){var n=this.callBase(e,t);return n.done(function(){this._refreshItemElements()})},deleteItem:function(e){var t=this.callBase(e);return t.done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=z,this._createGroupRenderAction(),this.setAria("role","listbox")},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return d(this.callBase(),{paginate:a.ensureDefined(e||t,!0)})},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),C,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=i(this._scrollView.content()),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new I(function(e,t){r.isPlainObject(t)?t.key&&e.text(t.key):e.text(String(t))},["key"],this.option("integrationOptions.watchMethod"))},_updateLoadingState:function(e){var t=!e||this._isLastPage(),n=this._scrollBottomMode(),i=t||!n,o=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e=!this._itemElements().length;this._scrollView&&!e&&this._scrollView.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(e){!this._shouldAppendItems()&&b.hasWindow()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase(e)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){return arguments.length?void(this._isLoadIndicationSuppressed=e):this._isLoadIndicationSuppressed},_scrollViewIsFull:function(){return!this._scrollView||this._scrollView.isFull()},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){var e=this.$element().is(":visible");!e||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(this._loadNextPage.bind(this)))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(l(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),y.isMaterial()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=x.addNamespace(h.name,this.NAME),t="."+O,n=this.$element(),a=this.option("collapsibleGroups");n.toggleClass(M,a),o.off(n,e,t),a&&o.on(n,e,t,function(e){this._createAction(function(e){var t=i(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",s(t.find("."+E).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new D;if(e.hasClass(P)===t)return n.resolve();var i=e.children("."+R),o=i.outerHeight(),a=0===o?i.height("auto").outerHeight():0;return e.toggleClass(P,t),u.animate(i,{type:"custom",from:{height:o},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=i(),this.$element().addClass(T),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:e,event:n};t?y.isMaterial()?this._inkRippleTimer=setTimeout(function(){i._inkRipple.showWave(o)},z/2):i._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(i(e.itemElement))},_attachSwipeEvent:function(e){var t=x.addNamespace(p.end,this.NAME);o.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(){var e=this._dataSource;e&&!e.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var n=i("<div>").addClass(B).appendTo(this._itemContainer()),o=i("<div>").addClass(O).appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,o),c={index:e,itemData:t,container:s(o)};this._createItemByTemplate(r,c),y.isMaterial()&&i("<div>").addClass(V).prependTo(o),this._renderingGroupIndex=e;var d=i("<div>").addClass(R).appendTo(n);l(N(t)||[],function(e,t){this._renderItem(e,t,d)}.bind(this)),this._groupRenderAction({groupElement:s(n),groupIndex:e,groupData:t})},attachGroupHeaderInkRippleEvents:function(){var e=this,t="."+O,n=this.$element();o.on(n,"dxpointerdown",t,function(t){e._toggleActiveState(i(t.currentTarget),!0,t)}),o.on(n,"dxpointerup dxhoverend",t,function(t){e._toggleActiveState(i(t.currentTarget),!1)})},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataSource,n=this._getNextButton();this.$element().toggleClass(F,e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=i("<div>").addClass(H),t=i("<div>").appendTo(e);return this._createComponent(t,w,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:y.isMaterial()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(b.hasWindow()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"useNative":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions(),this._invalidate();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(e),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+B),n=t.find("."+E);return d(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new D,n=this._itemContainer().find("."+B).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new D,n=this._itemContainer().find("."+B).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new D;return e._scrollView?e._scrollView.update().done(function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)}):t.resolveWith(e),t.promise()},reload:function(){this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e);this._scrollView.scrollToElement(t)}});W.ItemClass=v,e.exports=W},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(3).each,s=n(14),l=n(10),c=n(271),d="dxNativeScrollable",u="dx-scrollable-native",h="dx-scrollable-scrollbar-simulated",p="dx-scrollable-scrollbars-hidden",f="vertical",g="horizontal",m=500,_=l.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._renderPushBackOffset();var e=s.real(),t=e.platform;this._$element.addClass(u).addClass(u+"-"+t).toggleClass(p,!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:a,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(h),this._renderScrollbar(f),this._renderScrollbar(g)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new c(i("<div>").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:a,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:a,handleStop:a,_eachScrollbar:function(e){e=e.bind(this),r(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location();return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(g)?e.left>=0:void 0,reachedRight:this._isDirection(g)?e.left<=this._containerSize.width-this._componentContentSize.width:void 0,reachedTop:this._isDirection(f)?e.top>=0:void 0,reachedBottom:this._isDirection(f)?e.top<=this._containerSize.height-this._componentContentSize.height:void 0}},handleScroll:function(e){return this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),void this._pushBackFromBoundary()):void e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop(),i=t+n-2*e;n?i||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),m)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:a,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===f?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(f)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(g)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(u+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),o.off(this._$element,"."+d),o.off(this._$container,"."+d),this._removeScrollbars(),clearTimeout(this._gestureEndTimer),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var t=this.location();this._$container.scrollTop(-t.top-e.top+this.option("pushBackValue")),this._$container.scrollLeft(-t.left-e.left)},validate:function(){return!this.option("disabled")&&this._allowedDirection()},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=_},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(8),s=n(0).extend,l=n(4).noop,c=n(6),d=n(37),u=n(1).isDefined,h=n(83),p=n(3).each,f=n(29),g=n(123),m=n(14),_=n(44),v="dx-box",w=".dx-box",x="dx-box-item",y="dxBoxItemData",b={row:"minWidth",col:"minHeight"},C={row:"maxWidth",col:"maxHeight"},k=1,S={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},I={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},D={row:"row",col:"column"},T=g.inherit({_renderVisible:function(e,t){this.callBase(e),u(t)&&this._options.fireItemStateChangedAction({
|
|
22
|
-
name:"visible",state:e,oldState:t})}}),E=function(e,t,n){if(n=h.normalizeStyleProp(t,n),e.style[h.styleProp(t)]=n,!c.hasWindow()){if(""===n||!u(n))return;var i=d.dasherize(t),o=i+": "+n+";";e.attributes.style?e.attributes.style.value.indexOf(o)<0&&(e.attributes.style.value+=" "+o):e.setAttribute("style",o)}},A=a.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({display:h.stylePropPrefix("flexDirection")+"flex"}),E(this._$element.get(0),"flexDirection",D[this._option("direction")])},renderAlign:function(){this._$element.css({justifyContent:this._normalizedAlign()})},_normalizedAlign:function(){var e=this._option("align");return e in S?S[e]:e},renderCrossAlign:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})},_normalizedCrossAlign:function(){var e=this._option("crossAlign");return e in I?I[e]:e},renderItems:function(e){var t=h.stylePropPrefix("flexDirection"),n=this._option("direction");p(e,function(){var e=i(this),o=e.data(y);e.css({display:t+"flex"}).css(C[n],o.maxSize||"none").css(b[n],o.minSize||"0"),E(e.get(0),"flexBasis",o.baseSize||0),E(e.get(0),"flexGrow",o.ratio),E(e.get(0),"flexShrink",u(o.shrink)?o.shrink:k),e.children().each(function(e,t){i(t).css({width:"auto",height:"auto",display:h.stylePropPrefix("flexDirection")+"flex",flexBasis:0}),E(t,"flexGrow",1),E(t,"flexDirection",i(t)[0].style.flexDirection||"column")})})},initSize:l,update:l}),B="dxBox",O="dxupdate."+B,R="dx-box-fallback-item",M={row:"nowrap",col:"normal"},P={row:"width",col:"height"},V={row:"height",col:"width"},F={row:"marginLeft",col:"marginTop"},H={row:"marginRight",col:"marginBottom"},$={row:"marginTop",col:"marginLeft"},L={row:"marginBottom",col:"marginRight"},z={marginLeft:"marginRight",marginRight:"marginLeft"},N=a.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({fontSize:0,whiteSpace:M[this._option("direction")],verticalAlign:"top"}),o.off(this._$element,O),o.on(this._$element,O,this.update.bind(this))},renderAlign:function(){var e=this._$items;if(e){var t=this._option("align"),n=0,i=this.totalItemSize,o=this._option("direction"),a=this._$element[P[o]](),r=a-i;switch(this._setItemsMargins(e,o,0),t){case"start":break;case"end":n=r,e.first().css(this._chooseMarginSide(F[o]),n);break;case"center":n=.5*r,e.first().css(this._chooseMarginSide(F[o]),n),e.last().css(this._chooseMarginSide(H[o]),n);break;case"space-between":n=.5*r/(e.length-1),this._setItemsMargins(e,o,n),e.first().css(this._chooseMarginSide(F[o]),0),e.last().css(this._chooseMarginSide(H[o]),0);break;case"space-around":n=.5*r/e.length,this._setItemsMargins(e,o,n)}}},_setItemsMargins:function(e,t,n){e.css(this._chooseMarginSide(F[t]),n).css(this._chooseMarginSide(H[t]),n)},renderCrossAlign:function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),o=this._$element[V[n]](),a=this;switch(t){case"start":break;case"end":p(e,function(){var e=i(this),t=e[V[n]](),r=o-t;e.css(a._chooseMarginSide($[n]),r)});break;case"center":p(e,function(){var e=i(this),t=e[V[n]](),r=.5*(o-t);e.css(a._chooseMarginSide($[n]),r).css(a._chooseMarginSide(L[n]),r)});break;case"stretch":e.css(a._chooseMarginSide($[n]),0).css(a._chooseMarginSide(L[n]),0).css(V[n],"100%")}}},_chooseMarginSide:function(e){return this._option("rtlEnabled")?z[e]||e:e},renderItems:function(e){this._$items=e;var t=this._option("direction"),n=0,o=0,a=0;p(e,function(e,r){var s=i(r);s.css({display:"inline-block",verticalAlign:"top"}),s[P[t]]("auto"),s.removeClass(R);var l=s.data(y),c=l.ratio||0,d=this._baseSize(s),h=u(l.shrink)?l.shrink:k;n+=c,o+=h*d,a+=d}.bind(this));var r=this._boxSize()-a,s=function(e){var t=e.data(y),i=this._baseSize(e),a=r>=0?t.ratio||0:(u(t.shrink)?t.shrink:k)*i,s=r>=0?n:o,l=s?Math.round(r*a/s):0;return i+l}.bind(this),l=0;p(e,function(e,n){var o=i(n),a=i(n).data(y),r=s(o);l+=r,o.css(C[t],a.maxSize||"none").css(b[t],a.minSize||"0").css(P[t],r),o.addClass(R)}),this.totalItemSize=l},_baseSize:function(e){var t=i(e).data(y);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)},_contentSize:function(e){return i(e)[P[this._option("direction")]]()},_parseSize:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e},_boxSize:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)},_totalBaseSize:function(){var e=0;return p(this._$items,function(t,n){e+=this._baseSize(n)}.bind(this)),e},initSize:function(){this._boxSize(this._$element[P[this._option("direction")]]())},update:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find(w).each(function(){e===i(this).parent().closest(w).get(0)&&o.triggerHandler(this,O)})}}}),W=_.inherit({_getDefaultOptions:function(){return s(this.callBase(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function e(){var e=m.real(),t="android"===e.platform&&(e.version[0]<4||4===e.version[0]&&e.version[1]<4),n="ios"===e.platform&&e.version[0]<7;return"win"===e.platform||f.msie||t||n},options:{_layoutStrategy:"fallback"}}])},_itemClass:function(){return x},_itemDataKey:function(){return y},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.$element().addClass(v+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()},_initLayout:function(){this._layout="fallback"===this.option("_layoutStrategy")?new N(this.$element(),this.option.bind(this)):new A(this.$element(),this.option.bind(this))},_initBoxQueue:function(){this._queue=this.option("_queue")||[]},_queueIsNotEmpty:function(){return!this.option("_queue")&&!!this._queue.length},_pushItemToQueue:function(e,t){this._queue.push({$item:e,config:t})},_shiftItemFromQueue:function(){return this._queue.shift()},_initMarkup:function(){this.$element().addClass(v),this._layout.renderBox(),this.callBase(),this._renderAlign(),this._renderActions()},_renderActions:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")},_renderAlign:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()},_renderItems:function(e){for(this._layout.initSize(),this.callBase(e);this._queueIsNotEmpty();){var t=this._shiftItemFromQueue();this._createComponent(t.$item,W,s({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},t.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._isUpdated||this._layout.update(),this._isUpdated=!1,this._updateTimer=null}.bind(this))},_renderItemContent:function(e){var t=e.itemData&&e.itemData.node;return t?this._renderItemContentByNode(e,t):this.callBase(e)},_postprocessRenderItem:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)},_createItemByTemplate:function(e,t){return t.itemData.box?e.source?e.source():i():this.callBase(e,t)},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())},_dispose:function(){clearTimeout(this._updateTimer),this.callBase.apply(this,arguments)},_itemOptionChanged:function(e,t,n,i){"visible"===t&&this._onItemStateChanged({name:t,state:n,oldState:i!==!1}),this.callBase(e,t,n)},_optionChanged:function(e){switch(e.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:this.callBase(e)}},_itemOptions:function(){var e=this,t=this.callBase();return t.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},t},repaint:function(){this._dimensionChanged()}});W.ItemClass=T,r("dxBox",W),e.exports=W},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(10),s=n(33),l=r.abstract,c=r.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||i("<div>"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:l,_getWidgetName:l,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l,supportedKeys:a,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){var n=s.parse(e,t);return n?n:s.parse(e)},renderInputMinMax:a,renderOpenedState:function(){this._updateValue()},popupConfig:l,renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.off(t,"mousedown"),o.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a,getLastPopupElement:a,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a,popupHiddenHandler:a,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},_valueChangedHandler:function(e){this.dateBox.option("opened")&&"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(e.value)},useCurrentDateByDefault:a,textChangedHandler:a,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});e.exports=c},function(e,t,n){var i=n(213).fileSaver,o=n(312),a=n(221),r=n(315),s=n(1).isFunction;t.export=function(e,t,n){if(e){var o=t.exportingAction,a=t.exportedAction,r=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};s(o)&&o(l),l.cancel||n(e,t,function(e){s(a)&&a(),s(r)&&(l.data=e,r(l)),l.cancel||i.saveAs(l.fileName,t.format,e,t.proxyUrl,void 0,t.forceProxy)})}},t.fileSaver=i,t.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(217)},t.image={creator:a.imageCreator,getData:a.getData,testFormats:a.testFormats},t.pdf={getData:n(317).getData},t.svg={creator:r.svgCreator,getData:r.getData}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(11).inArray,a=n(350),r=a.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):o(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){var t=this._cache,n=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=n),"object"!==("undefined"==typeof e?"undefined":i(e)))return n.indexOf(e);for(var o=0,a=n.length;o<a;o++)if(this._equalKeys(e,n[o]))return o;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=r},function(e,t,n){e.exports=n(470)},function(e,t,n){var i=n(35),o=n(19),a=n(21),r=n(58),s=n(0).extend,l=n(3).map,c=n(156),d=n(89),u=n(504),h=n(8),p="dx-validator",f=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=o(),this._initAdapter()},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",function(e){d.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(d.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,d.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=e.$element()[0],n=i.data(t,"dx-validation-target"),o=e.option("adapter");if(!o){if(n)return o=new u(n,this),o.validationRequestsCallbacks.add(function(){e.validate()}),void this.option("adapter",o);throw a.Error("E0120")}var r=o.validationRequestsCallbacks;r&&(Array.isArray(r)?r.push(function(){e.validate()}):(a.log("W0014","validationRequestsCallbacks","jQuery.Callbacks","17.2","Use the array instead"),r.add(function(){e.validate()})))},_initMarkup:function(){this.$element().addClass(p),this.callBase()},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;default:this.callBase(e)}},_getValidationRules:function(){return this._validationRules||(this._validationRules=l(this.option("validationRules"),function(e){return s({},e,{validator:this})}.bind(this))),this._validationRules},_resetValidationRules:function(){delete this._validationRules},validate:function(){var e,t=this,n=t.option("adapter"),i=t.option("name"),o=n.bypass&&n.bypass(),a=n.getValue(),r=n.getCurrentValidationError&&n.getCurrentValidationError(),s=this._getValidationRules();return o?e={isValid:!0}:r&&r.editorSpecific?(r.validator=this,e={isValid:!1,brokenRule:r}):e=d.validate(a,s,i),this._applyValidationResult(e,n),e},reset:function(){var e=this,t=e.option("adapter"),n={isValid:!0,brokenRule:null};t.reset(),this._resetValidationRules(),this._applyValidationResult(n,t)},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated");e.validator=this,t.applyValidationResults&&t.applyValidationResults(e),this.option({isValid:e.isValid}),n(e)},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()}}).include(c);h("dxValidator",f),e.exports=f},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(8),s=n(38),l=n(69),c=n(9),d=n(0).extend,u=n(1).isPlainObject,h=n(25),p=n(280),f=n(20),g=n(90),m=n(93),_=n(44),v=n(106),w=n(67),x="dx-tabs",y="dx-tabs-wrapper",b="dx-tabs-expanded",C="dx-tabs-scrollable",k="dx-tabs-nav-buttons",S="dx-overflow-hidden",I="dx-tab",D="dx-tab-selected",T="dx-tabs-nav-button",E="dx-tabs-nav-button-left",A="dx-tabs-nav-button-right",B="dx-tab-text",O="dxTabData",R="chevronnext",M="chevronprev",P=100,V=5,F=300,H=30,$=_.inherit({_activeStateUnit:"."+I,_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=f.current();return this.callBase().concat([{device:function(){return"generic"!==a.real().platform},options:{showNavButtons:!1}},{device:{platform:"generic"},options:{scrollByContent:!1}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return f.isAndroid5(e)},options:{useInkRipple:!0}},{device:function(){return f.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(x),this._renderMultiple(),this._feedbackHideTimeout=P},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new w(function(e,t){u(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=v.getImageContainer(t.icon);e.wrapInner(i("<span>").addClass(B)),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return I},_selectedItemClass:function(){return D},_itemDataKey:function(){return O},_initMarkup:function(){this.callBase(),this._renderWrapper(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(S)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){this.$element().removeClass(b),this.$element().removeClass(S),this._allowScrolling()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this._allowScrolling()||(this._cleanScrolling(),this.$element().removeClass(k).addClass(b))},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._scrollable.$content().children("."+y).appendTo(this._itemContainer()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=l.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this.$element().wrapInner(i("<div>").addClass(y))},_renderScrollable:function(){var e=this.$element().wrapInner(i("<div>").addClass(C)).children();this._scrollable=this._createComponent(e,m,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_allowScrolling:function(){if(!this.option("scrollingEnabled"))return!1;var e=this._getSummaryItemsWidth(this._getVisibleItems(),!0);return e-1>this.$element().width()},_renderNavButtons:function(){if(this.$element().toggleClass(k,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-H,e?R:M);var t=this._leftButton.$element();t.addClass(E),this.$element().prepend(t),this._rightButton=this._createNavButton(H,e?M:R);var n=this._rightButton.$element();n.addClass(A),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,a=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,V)},V)}),r=c.addNamespace(g.name,"dxNavButton"),l=c.addNamespace(h.up,"dxNavButton"),d=c.addNamespace(h.out,"dxNavButton"),u=this._createComponent(i("<div>").addClass(T),s,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),p=u.$element();return o.on(p,r,{timeout:F},function(e){a({event:e})}.bind(this)),o.on(p,l,function(){n._clearInterval()}),o.on(p,d,function(){n._clearInterval()}),u},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_renderSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this.option("scrollingEnabled")&&this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._scrollable=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}}});$.ItemClass=p,r("dxTabs",$),e.exports=$,e.exports.getTabsExpandedClass=b},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(8),s=n(0).extend,l=n(87),c=n(70),d=n(7).Deferred,u=n(20),h="dx-loadpanel",p="dx-loadpanel-wrapper",f="dx-loadpanel-indicator",g="dx-loadpanel-message",m="dx-loadpanel-content",_="dx-loadpanel-content-wrapper",v="dx-loadpanel-pane-hidden",w=c.inherit({_supportedKeys:function(){return s(this.callBase(),{escape:o})},_getDefaultOptions:function(){return s(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return u.isMaterial()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_initOptions:function(){this.callBase.apply(this,arguments),this.option("templatesRenderAsynchronously",!1)},_render:function(){this.callBase(),this.$element().addClass(h),this._wrapper().addClass(p)},_renderContentImpl:function(){this.callBase(),this.$content().addClass(m),this._$contentWrapper=i("<div>").addClass(_),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new d,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("<div>").addClass(g).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("<div>").addClass(f).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+g).remove(),this.$content().find("."+f).remove()},_togglePaneVisible:function(){this.$content().toggleClass(v,!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});r("dxLoadPanel",w),e.exports=w},function(e,t,n){e.exports=n(491)},function(e,t,n){e.exports=n(286),e.exports.show=n(195).show,e.exports.hide=n(195).hide},function(e,t,n){var i=n(2),o=n(286),a=n(0).extend,r=n(7).Deferred,s=n(73),l=null,c=null,d=function(e){e=a({position:"top"},e);var t=e.content;delete e.content;var n=i("<div>").html(t).appendTo(s.value());c=function(){n.remove()},l=new o(n,e)},u=function(){l&&(c(),l=null)};t.show=function(e){return u(),d(e),l.show()},t.hide=function(){return l?l.hide().done(u).promise():(new r).resolve()}},function(e,t,n){var i=n(1),o=n(11).inArray,a=n(3),r=["year","month","day"],s=["year","month","day","hour","minute"];e.exports=function(){var t=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},n=function(e){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},l=function(e){return"date"===e||"datetime"===e},c=function(e){return i.isDate(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:a.map((""+e).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)})},d=function(e,o){var a,r,s,c=this,d=t(c,o);if(Array.isArray(e)&&i.isDefined(e[0])&&i.isDefined(e[1]))return r=[d,">=",e[0]],s=[d,"<=",e[1]],l(c.dataType)&&n(e[1])&&(a=new Date(e[1].getTime()),a.setDate(e[1].getDate()+1),s=[d,"<",a]),[r,"and",s]},u=function(n,i,o){var a,r,s,l=this,d=c(n),u=t(l,o);switch("headerFilter"===o?s=e.exports.getGroupInterval(l)[d.length-1]:"datetime"===l.dataType&&(s="minute"),s){case"year":a=new Date(d[0],0,1),r=new Date(d[0]+1,0,1);break;case"month":a=new Date(d[0],d[1],1),r=new Date(d[0],d[1]+1,1);break;case"quarter":a=new Date(d[0],3*d[1],1),r=new Date(d[0],3*d[1]+3,1);break;case"hour":a=new Date(d[0],d[1],d[2],d[3]),r=new Date(d[0],d[1],d[2],d[3]+1);break;case"minute":a=new Date(d[0],d[1],d[2],d[3],d[4]),r=new Date(d[0],d[1],d[2],d[3],d[4]+1);break;case"second":a=new Date(d[0],d[1],d[2],d[3],d[4],d[5]),r=new Date(d[0],d[1],d[2],d[3],d[4],d[5]+1);break;default:a=new Date(d[0],d[1],d[2]),r=new Date(d[0],d[1],d[2]+1)}switch(i){case"<":return[u,"<",a];case"<=":return[u,"<",r];case">":return[u,">=",r];case">=":return[u,">=",a];case"<>":return[[u,"<",a],"or",[u,">=",r]];default:return[[u,">=",a],"and",[u,"<",r]]}},h=function(n,o,a){var r=this,s=t(r,a),l=e.exports.getGroupInterval(r);if("headerFilter"===a&&l&&i.isDefined(n)){var c,d,u,h=(""+n).split("/"),p=Number(h[h.length-1]);c=l[h.length-1],d=[s,">=",p],u=[s,"<",p+c];var f=[d,"and",u];return f}return[s,o||"=",n]};return{defaultCalculateFilterExpression:function(e,n,o){var a=this,r=t(a,o),s=a.calculateDisplayValue&&"search"===o,c=s&&a.lookup&&a.lookup.dataType||a.dataType,p=null;if("headerFilter"!==o&&"filterBuilder"!==o||null!==e)if("string"!==c||a.lookup&&!s){if("between"===n)return d.apply(a,[e,o]);if(l(c)&&i.isDefined(e))return u.apply(a,arguments);if("number"===c)return h.apply(a,arguments);"object"!==c&&(p=[r,n||"=",e])}else p=[r,n||"contains",e];else p=[r,n||"=",null],"string"===c&&(p=[p,"="===n?"or":"and",[r,n||"=",""]]);return p},getGroupInterval:function(e){var t,n=[],a=["year","month","day","hour","minute","second"],c=e.headerFilter&&e.headerFilter.groupInterval,d="quarter"===c?"month":c;return l(e.dataType)&&null!==c?(n="datetime"===e.dataType?s:r,t=o(d,a),t>=0?(n=a.slice(0,t),n.push(c),n):n):i.isDefined(c)?Array.isArray(c)?c:[c]:void 0}}}()},function(e,t,n){var i=n(2),o=n(12),a=n(6),r=a.getWindow(),s=n(5),l=n(35),c=n(18),d=n(29),u=n(4),h=n(83),p=n(13).getPublicElement,f=n(1),g=n(3),m=n(0).extend,_=n(103).getDefaultAlignment,v=n(14),w=n(46),x=n(45),y=n(369),b=u.noop,C="scroll-container",k="group-space",S="content",I="table",D="table-fixed",T="content-fixed",E="dx-row",A="dx-group-row",B="dx-master-detail-row",O="filter-row",R="0.0001px",M="dxCellHintVisible",P="dx-field-item-content",V={render:function(e){e.container.append(e.content)}},F=function(e,t){function n(e){return setTimeout(function(){o=a=null},e)}var o,a,r;s.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(r),"touchstart"===e.type?(o=e.target,a=e.currentTarget,r=n(1e3)):r=n()}),s.on(t,"dxclick",".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var n=t.event;o&&(n.target=o,n.currentTarget=a),i(n.target).closest("a").length||(t.rowIndex=e.getRowIndex(n.currentTarget),t.rowIndex>=0&&(t.rowElement=p(i(n.currentTarget)),t.columns=e.getColumns(),e._rowClick(t)))}))},H=function(e){return"auto"===e?"":f.isNumeric(e)?e+"px":e},$=function(e,t,n){e.style.width=e.style.maxWidth=n,t.command||"auto"!==t.width||""!==n||(e.style.width="1px")};t.ColumnsView=w.View.inherit(y).inherit({_createScrollableOptions:function(){var e=this,t=e.option("scrolling"),n=e.option("scrolling.useNative"),i=m({},t,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===n&&(n=!0),"auto"===n?(delete i.useNative,delete i.useSimulatedScrollbar):(i.useNative=!!n,i.useSimulatedScrollbar=!n),i},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||_(this.option("rtlEnabled")),a=o.createElement("td");a.style.textAlign=n;var r=i(a);return"data"===e.rowType&&t.id&&this.setAria("describedby",t.id,r),!f.isDefined(t.groupIndex)&&t.cssClass&&r.addClass(t.cssClass),"expand"===t.command&&(r.addClass(t.cssClass),r.addClass(this.addWidgetPrefix(k))),t.colspan>1?r.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(a.style.minWidth=H(t.minWidth||t.width)),t.width&&$(a,t,H(t.width))),r},_createRow:function(e){var t=i("<tr>").addClass(E);return this.setAria("role","row",t),t},_createTable:function(e,t){var n=this,o=i("<table>").addClass(n.addWidgetPrefix(I)).addClass(n.addWidgetPrefix(D));if(e&&!t?(o.append(n._createColGroup(e)),v.real().ios&&o.append(i("<thead>").append("<tr>")),n.setAria("role","presentation",o)):n.setAria("hidden",!0,o),this.setAria("role","presentation",i("<tbody>").appendTo(o)),t)return o;d.mozilla&&s.on(o,"mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),n.option("cellHintEnabled")&&s.on(o,"mousemove",".dx-row > td",this.createAction(function(e){var t,o=e.event,a=i(o.target),r=i(o.currentTarget),s=r.parent(),l=s.hasClass("dx-data-row"),c=s.hasClass("dx-header-row"),u=s.hasClass(A),h=s.hasClass(B),p=s.hasClass(n.addWidgetPrefix(O)),g=n._columnsController.getVisibleColumns(),m=s.data("options"),_=r.index(),v=m&&m.cells&&m.cells[_],w=v?v.column:g[_],x=d.msie?1:0;h||p||l&&(!l||!w||w.cellTemplate)||c&&(!c||!w||w.headerCellTemplate)||u&&(!u||!w||void 0!==w.groupIndex&&w.groupCellTemplate)||(a.data(M)&&(a.removeAttr("title"),a.data(M,!1)),t=a[0].scrollWidth-a[0].clientWidth-x,t>0&&!f.isDefined(a.attr("title"))&&(a.attr("title",a.text()),a.data(M,!0)))}));var a=function(e){var t,o,a=i(e.currentTarget),r=i(e.target).closest("."+P),s=a.parent().data("options"),l=s&&s.cells&&s.cells[a.index()];if(a.closest("table").is(e.delegateTarget))return o=m({},l,{cellElement:p(a),event:e,eventType:e.type}),r.length&&(t=r.data("dx-form-item"),t.column&&(o.column=t.column,o.columnIndex=n._columnsController.getVisibleIndex(o.column.index))),o};return s.on(o,"mouseover",".dx-row > td",function(e){
|
|
23
|
-
var t=a(e);t&&n.executeAction("onCellHoverChanged",t)}),s.on(o,"mouseout",".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellHoverChanged",t)}),s.on(o,c.name,".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellClick",t)}),F(n,o),o},_isNativeClick:u.noop,_rowClick:u.noop,_createColGroup:function(e){var t,n,o,a=i("<colgroup>");for(t=0;t<e.length;t++)for(o=e[t].colspan||1,n=0;n<o;n++)a.append(this._createCol(e[t]));return a},_createCol:function(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=R);var n=i("<col>");return h.setWidth(n,t),n},renderDelayedTemplates:function(){var e=this._delayedTemplates,t=e.filter(function(e){return!e.async}),n=e.filter(function(e){return e.async});this._delayedTemplates=[],this._renderDelayedTemplatesCore(t),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&r.setTimeout(function(){t._renderDelayedTemplatesCore(e,!0)})},_renderDelayedTemplatesCore:function(e,t){for(var n,a=new Date;e.length;){n=e.shift();var r=n.options,s=r.model,l=o.getDocument();if(t&&!i(r.container).closest(l).length||(n.template.render(r),s&&s.column&&this._updateCell(r.container,s)),t&&new Date-a>30){this._renderDelayedTemplatesCoreAsync(e);break}}},_processTemplate:function(e){var t,n,o=this;return e&&e.render&&!f.isRenderer(e)?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}}:f.isFunction(e)?n={render:function(t){var n=e(p(t.container),t.model);n&&(n.nodeType||f.isRenderer(n))&&t.container.append(n)}}:(t=f.isString(e)?e:i(e).attr("id"),t?(o._templatesCache[t]||(o._templatesCache[t]=o.getTemplate(e)),n=o._templatesCache[t]):n=o.getTemplate(e)),n},renderTemplate:function(e,t,n,i){var o,a=this,r=a._processTemplate(t,n),s=n.column,l="data"===n.rowType;if(r){if(n.component=a.component,o=s&&(s.renderAsync&&l||a.option("renderAsync")&&(s.renderAsync!==!1&&(s.command||s.showEditorAlways)&&l||"filter"===n.rowType)),(r.allowRenderToDetachedContainer||i)&&!o)return r.render({container:e,model:n}),!0;a._delayedTemplates.push({template:r,options:{container:e,model:n},async:o})}return!1},_appendRow:function(e,t,n){n=n||V,n.render({content:t,container:e})},_resizeCore:function(){var e=this,t=e._scrollLeft;t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){e=e||{};var t,n=this;e.columns=n._columnsController.getVisibleColumns();var i=e.change&&e.change.changeType;return t=n._createTable(e.columns,"append"===i||"prepend"===i),n._renderRows(t,e),t},_renderRows:function(e,t){var n,i=this,o=i._getRows(t.change);for(n=0;n<o.length;n++)i._renderRow(e,m({row:o[n]},t))},_renderRow:function(e,t){var n,i=this;t.row.cells=[],n=i._createRow(t.row),i._renderCells(n,t),i._appendRow(e,n),i._rowPrepared(n,m({columns:t.columns},t.row))},_renderCells:function(e,t){var n,i=this,o=0,a=t.row,r=t.columns;for(n=0;n<r.length;n++)i._renderCell(e,m({column:r[n],columnIndex:o,value:a.values&&a.values[o]},t)),r[n].colspan>1?o+=r[n].colspan:o++},_setCellAriaAttributes:function(e,t){"freeSpace"!==t.rowType&&(this.setAria("selected",!1,e),this.setAria("role","gridcell",e),this.setAria("colindex",t.columnIndex+1,e))},_renderCell:function(e,t){var n,i=this,o=i._getCellOptions(t);return t.row.cells.push(o),n=i._createCell(o),i._setCellAriaAttributes(n,o),i._renderCellContent(n,o),e.get(0).appendChild(n.get(0)),n},_renderCellContent:function(e,t){var n=this._getCellTemplate(t);n&&!this.renderTemplate(e,n,t)||this._updateCell(e,t)},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){return{column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType}},_cellPrepared:function(e,t){t.cellElement=p(i(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){l.data(e.get(0),"options",t),t.rowElement=p(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if(x.checkChanges(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=g.map(n,function(e){var t=e.visibleWidth||e.width;return f.isDefined(t)?t:"auto"});return void this.setColumnWidths(i)}this._requireReady||this.render()},getTableElements:function(){return this._tableElement||i()},_getTableElement:function(){return this._tableElement},_setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:u.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this,n=t.element(),i=n&&n.children("."+t.addWidgetPrefix(C)).not("."+t.addWidgetPrefix(T));t._skipScrollChanged=!1,f.isDefined(e)&&f.isDefined(e.left)&&t._scrollLeft!==e.left&&(t._scrollLeft=e.left,i&&i.scrollLeft(Math.round(e.left)),t._skipScrollChanged=!0)},_wrapTableInScrollContainer:function(e){var t,n=this;return t=i("<div>"),s.on(t,"scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}),t.addClass(n.addWidgetPrefix(S)).addClass(n.addWidgetPrefix(C)).append(e).appendTo(n.element()),n.setAria("role","presentation",t),t},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:u.noop,_getWidths:function(e){var t,n,i=[],o=this.option("legacyRendering");return e&&g.each(e,function(e,a){t=a.offsetWidth,a.getBoundingClientRect&&(n=a.getBoundingClientRect(),n.width>t-1&&(t=o?Math.ceil(n.width):n.width)),i.push(t)}),i},getColumnWidths:function(e){var t,n,i=this,o=[];if((this.option("forceApplyBindings")||b)(),e=e||i._getTableElement()){t=e.children("tbody").children();for(var a=0;a<t.length;a++){var r=t.eq(a),s="none"!==r.get(0).style.display&&!r.hasClass("dx-state-invisible");if(!r.is("."+A)&&!r.is("."+B)&&s){n=r.children("td");break}}o=i._getWidths(n)}return o},getVisibleColumnIndex:function(e,t){return e},setColumnWidths:function(e,t,n,i){var o,a,r,s,l,c=this.option("columnAutoWidth"),d=this.option("legacyRendering");if(t=t||this._getTableElement(),t&&t.length&&e)for(l=0,o=t.children("colgroup").children("col"),h.setWidth(o,"auto"),n=n||this.getColumns(null,t),a=0;a<n.length;a++){if(!d&&c&&!i&&(r=n[a].width,r&&!n[a].command)){r=n[a].visibleWidth||r,r=H(r),s=H(n[a].minWidth||r);for(var u=u||t.children().children(".dx-row").not("."+A).not("."+B),p=0;p<u.length;p++){var g=this.getVisibleColumnIndex(a,p),m=u[p].cells[g];m&&($(m,n[a],r),m.style.minWidth=s)}}n[a].colspan?l+=n[a].colspan:(r=e[l],"adaptiveHidden"===r&&(r=R),"number"==typeof r&&(r=r.toFixed(3)+"px"),h.setWidth(o.eq(l),f.isDefined(r)?r:"auto"),l++)}},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){var t=this._getRowElements().eq(e);return t.children()},_getCellElement:function(e,t){var n,i=this,o=i.getCellElements(e),a=i._getVisibleColumnIndex(o,e,t);if(o.length&&a>=0&&(n=o.eq(a)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=i(),o=t.getTableElements();if(g.each(o,function(o,a){n=n.add(t._getRowElements(i(a)).eq(e))}),n.length)return n},getCellElement:function(e,t){return p(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!p(t).get)for(var i=0;i<t.length;i++)n.push(t[i]);else n=t;return n},_getVisibleColumnIndex:function(e,t,n){var i;return f.isString(n)?(i=this._columnsController.columnOption(n,"index"),this._columnsController.getVisibleIndex(i)):n},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();if(i.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex<i.length?e.rowIndex:i.length-1),n=this.getCellElements(e.rowIndex),n&&n.length>0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElements:function(e){return e=e||this._getTableElement(),e&&e.find("> tbody > ."+E+", > tbody."+E+", > ."+E)||i()},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this,n=t.element(),i=t.option("rtlEnabled");n&&n.css(i?{paddingLeft:e}:{paddingRight:e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}})},,,,,function(e,t,n){var i=n(119);i.framework=n(325),n(43),n(345),n(109),n(113),n(356),n(182),n(357),n(358),n(18),n(159),n(206),n(78),n(90),n(157),n(25),n(124),n(359),e.exports=i},function(e,t,n){var i=n(6).getWindow(),o=n(1),a=["auto","none","inherit","initial"],r=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:r(t,["padding"+n,"padding"+i]),border:r(t,["border"+n+"Width","border"+i+"Width"]),margin:r(t,["margin"+n,"margin"+i])}},l=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0},c=function(e,t,n){var o=i.getComputedStyle(e),a=s(t,o),r=e.getClientRects().length,c=e.getBoundingClientRect()[t],d=r?c:0;return d<=0?(d=parseFloat(o[t]||e.style[t])||0,d-=l(t,o,a)):d-=a.padding+a.border,n.paddings&&(d+=a.padding),n.borders&&(d+=a.border),n.margins&&(d+=a.margin),d},d=function(e){return o.isWindow(e)?e.innerHeight:e.offsetHeight},u=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*d(t)/100:isNaN(e)||(e=parseInt(e)),e},h=function(e,t,n){if(!e)return null;if(a.indexOf(e)>-1)return t?null:e;if(o.isString(e)&&(e=u(e,n)),o.isNumeric(e))return Math.max(0,e+t);var i=t<0?" - ":" ";return"calc("+e+i+Math.abs(t)+"px)"},p=function(e,t,n){var i=h(e,t,n);return null!==i?i:"none"},f=function(e,t,n){var i=h(e,t,n);return null!==i?i:0},g=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},m=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};t.getSize=c,t.getElementBoxParams=s,t.addOffsetToMaxHeight=p,t.addOffsetToMinHeight=f,t.getVerticalOffsets=g,t.getVisibleHeight=m},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(39),s=n(0).extend,l=n(11).inArray,c=n(3).each,d=n(1),u=n(6),h=n(24),p=n(31).fitIntoRange,f=n(58),g=n(9),m=n(78),_=d.isPlainObject,v=d.isFunction,w=n(13),x="dxResizable",y="dx-resizable",b="dx-resizable-resizing",C="dx-resizable-handle",k="dx-resizable-handle-top",S="dx-resizable-handle-bottom",I="dx-resizable-handle-left",D="dx-resizable-handle-right",T="dx-resizable-handle-corner",E=g.addNamespace(m.start,x),A=g.addNamespace(m.move,x),B=g.addNamespace(m.end,x),O={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},R=f.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null})},_init:function(){this.callBase(),this.$element().addClass(y)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");c(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("<div>");n.addClass(C).addClass(C+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[E]=this._dragStartHandler.bind(this),t[A]=this._dragHandler.bind(this),t[B]=this._dragEndHandler.bind(this),o.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null},_toggleResizingClass:function(e){this.$element().toggleClass(b,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+C),o=n.outerWidth(),a=n.outerHeight(),r=n.offset(),s=t.offset;e.maxLeftOffset=r.left-s.left,e.maxRightOffset=s.left+t.width-r.left-o,e.maxTopOffset=r.top-s.top,e.maxBottomOffset=s.top+t.height-r.top-a}},_getBorderWidth:function(e,t){if(d.isWindow(e.get(0)))return 0;var n=e.css(O[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),r=o.width+a.x*(n.left?-1:1),s=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(r),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),c=a.y-((l.height||s)-s),d=a.x-((l.width||r)-r);h.move(t,{top:i.top+(n.top?c:0),left:i.left+(n.left?d:0)}),this._resizeAction({event:e,width:this.option("width")||r,height:this.option("height")||s,handles:this._movingSides}),w.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=r.pairToObject(this.option("step")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,r=n.top?i.top:i.top+o.height,s=(a+e.x)%t.h,l=(r+e.y)%t.v,c=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},d=function(e,t){return(1+.2*c(t))%1*e},u=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>d(t.h,e.x)&&(h+=t.h),l>d(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||u(e.x,t.h)?0:h,y:!n.top&&!n.bottom||u(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(T+"-top-left"),o=t.hasClass(T+"-top-right"),a=t.hasClass(T+"-bottom-left"),r=t.hasClass(T+"-bottom-right");return{top:t.hasClass(k)||n||o,left:t.hasClass(I)||n||a,bottom:t.hasClass(S)||a||r,right:t.hasClass(D)||o||r}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),_(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},d.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",p(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",p(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":u.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":u.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+C).remove()}});a(x,R),e.exports=R},function(e,t,n){e.exports=n(502)},function(e,t,n){var i=n(5),o=n(13),a=n(12),r=n(10),s=n(61),l=n(18),c=n(9),d="dxdblclick",u="dxDblClick",h=c.addNamespace(l.name,u),p=300,f=r.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-p},add:function(){this._handlerCount<=0&&i.on(a.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStamp<p?(c.fireEvent({type:d,target:o.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(a.getDocument(),h))}});s(d,new f),t.name=d},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(4).noop,r=n(15),s=n(8),l=n(0).extend,c=n(38),d=n(44),u=n(60),h=n(130),p=n(67),f=n(7).Deferred,g="dx-actionsheet",m="dx-actionsheet-container",_="dx-actionsheet-popup-wrapper",v="dx-actionsheet-popover-wrapper",w="dx-actionsheet-cancel",x="dx-actionsheet-item",y="dxActionSheetItemData",b="dx-actionsheet-without-title",C=d.inherit({_getDefaultOptions:function(){return l(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:r.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new p(function(e,t){var n=new c(i("<div>"),l({onClick:t&&t.click},t));e.append(n.$element())},["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return x},_itemDataKey:function(){return y},_toggleVisibility:a,_renderDimensions:a,_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("<div>").addClass(m),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup._wrapper().toggleClass(b,!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!o.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h,l(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass(v)},_createPopup:function(){this._createComponent(this._$popup,u,l(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:o},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:o}},to:{position:{my:"bottom",at:"bottom",of:o}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:o}},to:{position:{my:"top",at:"bottom",of:o}}}}})),this._popup._wrapper().addClass(_)},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||a,t=this;this._$cancelButton=i("<div>").addClass(w).appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,c,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:a,_itemClickHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new f;return t._popup.toggle(e).done(function(){t.option("visible",e),n.resolveWith(t)}),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",C),e.exports=C},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6).getWindow(),r=n(5),s=n(50),l=n(8),c=n(4),d=n(1),u=n(0).extend,h=n(11).inArray,p=n(147),f=n(125),g=n(21),m=n(9),_=n(14),v=n(209),w=n(15),x=n(20),y=n(101),b=n(7).Deferred,C=".dx-list-item",k="dxListItemData",S="dx-dropdownlist-popup-wrapper",I="dx-skip-gesture-event",D="input",T=["startswith","contains","endwith","notcontains"],E=p.inherit({_supportedKeys:function(){var e=this.callBase();return u({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=o(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:c.noop,home:c.noop,end:c.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return u(this.callBase(),u(v._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:w.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:c.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{popupPosition:{offset:{v:-6}}}},{device:function(){return x.isAndroid5()},options:{popupWidthExtension:32}},{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),u(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new y("item",this)},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_createPopup:function(){this.callBase(),this._popup._wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();r.off(e,"mouseup"),r.on(e,"mouseup",this._saveFocusOnWidget.bind(this))},_popupWrapperClass:function(){return S},_renderInputValue:function(){var e=this._getCurrentValue();return this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_loadItem:function(e,t){var n,o;return t&&"object"!==("undefined"==typeof e?"undefined":i(e))&&(t.itemByValue||(t.itemByValue={},n=this._getPlainItems(),n.forEach(function(e){t.itemByValue[this._valueGetter(e)]=e},this)),o=t.itemByValue[e]),o||(n=this._getPlainItems(),o=c.grep(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),void 0!==o?(new b).resolve(o).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||[];for(var n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",c.ensureDefined(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,n){var i=o(n),a=this._valueGetter(i.data(k)),r=this._isSelectedValue(a,e);r?this._list.selectItem(i):this._list.unselectItem(i)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if(h(t,T)<0)throw g.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(C):o()},_popupConfig:function(){var e=this;return u(this.callBase(),{templatesRenderAsynchronously:!1,width:this.option("width"),onShowing:function(){e.$element().addClass(I)},onHidden:function(){e.$element().removeClass(I)},height:"auto",autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this._renderList()},_attachChildKeyboardEvents:function(){this._childKeyboardProcessor=this._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._childKeyboardProcessor)},_fireContentReadyAction:c.noop,_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this),this._list.setAria("role","combobox")},_renderList:function(){this._listId="dx-"+(new s)._value;var e=this._$list=o("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,f,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._renderPreventBlur(this._$list)},_renderPreventBlur:function(e){var t=m.addNamespace("mousedown","dxDropDownList");r.off(e,t),r.on(e,t,function(e){e.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase();var e=this.option("opened")||void 0;this.setAria({activedescendant:e&&this._list.getFocusedItemId(),owns:e&&this._listId})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){var e=!!this._list.option("dataSource");return e!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===_.real().deviceType},_getListKeyExpr:function(){var e=this.option("valueExpr"),t=d.isString(e)&&"this"!==e;return t?e:null},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this._getTemplateByOption("itemTemplate"),indicateLoading:!1,keyExpr:this._getListKeyExpr(),groupTemplate:this.option("groupTemplate"),tabIndex:null,onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_keyboardProcessor:this._childKeyboardProcessor,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return e},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:c.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded();
|
|
24
|
-
},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return m.addNamespace(D,this.NAME+"Search")},_getSetFocusPolicyEvent:function(){return m.addNamespace("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),r.on(this._input(),this._getSetFocusPolicyEvent(),this._setFocusPolicy.bind(this)),this._shouldRenderSearchEvent()&&r.on(this._input(),this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){r.off(this._input(),this._getSearchEvent()),r.off(this._input(),this._getSetFocusPolicyEvent()),this.callBase()},_searchHandler:function(){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()},_searchCanceled:function(){this._clearSearchTimer(),this._needPassDataSourceToList()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;return t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e))},_clearFilter:function(){var e=this._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){!this.option("readOnly")&&this._searchValue()&&(this.option("opened",this._shouldOpenPopup()),this.option("opened")&&this._dimensionChanged())},_dataSourceChangedHandler:function(e){0===this._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=this._dataSource&&this._dataSource.items()||[],t=e.length,n=this._needPassDataSourceToList();return!(!n||!t)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this._popup&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth()+this.option("popupWidthExtension"))},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=d.isDefined(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupHeight:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=e.offset(),n=o(a).height(),i=Math.max(t.top,n-t.top-e.outerHeight());return Math.min(.5*n,i)},_clean:function(){this._list&&delete this._list,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getListKeyExpr());break;case"displayExpr":this._renderValue();break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(v);l("dxDropDownList",E),e.exports=E},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(71),r=n(22),s=n(4),l=n(1),c=n(0).extend,d=n(95),u=n(112),h=n(52),p=n(79),f=n(7).Deferred,g=c(u,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new h.DataSource({store:new p(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=r.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=r.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new f;return e=this._unwrappedValue(e),l.isDefined(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail(function(){t.reject()}),t.promise()):t.reject().promise()},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){return e=l.isDefined(e)?e:this._getCurrentValue(),e&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),a.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},o=0,a=t.length;o<a;o++)n[t[o]]=e[t[o]];return n}return t&&"object"===("undefined"==typeof e?"undefined":i(e))&&(e=e[t]),e},_isValueEquals:function(e,t){var n=this._dataSource&&this._dataSource.key(),i=l.isDefined,o=this._compareValues(e,t);return!o&&n&&i(e)&&i(t)&&(o=Array.isArray(n)?this._compareByCompositeKey(e,t,n):this._compareByKey(e,t,n)),o},_compareByCompositeKey:function(e,t,n){var i=l.isObject;if(!i(e)||!i(t))return!1;for(var o=0,a=n.length;o<a;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},_compareByKey:function(e,t,n){var i=s.ensureDefined,o=a.unwrap,r=i(o(e[n]),e),l=i(o(t[n]),t);return this._compareValues(r,l)},_compareValues:function(e,t){return r.toComparable(e,!0)===r.toComparable(t,!0)},_initDynamicTemplates:function(){this._displayGetterExpr()?(this._originalItemTemplate=this._defaultTemplates.item,this._defaultTemplates.item=new d(function(e){return o("<div>").text(this._displayGetter(e.model)).html()}.bind(this))):this._originalItemTemplate&&(this._defaultTemplates.item=this._originalItemTemplate)},_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this._getTemplateByOption("itemTemplate"))},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._setCollectionWidgetItemTemplate()}}});e.exports=g},function(e,t,n){var i=n(2),o=n(48),a=n(8),r=n(0).extend,s=n(6),l=n(32),c="dx-trackbar",d="dx-trackbar-container",u="dx-trackbar-range",h="dx-trackbar-wrapper",p=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass(c),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=i("<div>").addClass(h).appendTo(this.$element())},_renderContainer:function(){this._$bar=i("<div>").addClass(d).appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("<div>").addClass(u).appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(e<t)return this.option("value",t),void(this._currentRatio=0);if(e>n)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(e){return l.stop(this._$range),e?void(!this._needPreventAnimation&&s.hasWindow()&&l.animate(this._$range,{type:"custom",duration:100,to:e})):void this._$range.css({width:0})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){l.stop(this._$range),this.callBase()}});a("dxTrackBar",p),e.exports=p},function(e,t,n){var i=n(8),o=n(5),a=n(4).grep,r=n(0).extend,s=n(3),l=n(156),c=n(89),d=n(44),u="dx-validationsummary",h=u+"-item",p=u+"-item-data",f=d.inherit({_getDefaultOptions:function(){return r(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),r(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this._findGroup(),t=c.addGroup(e);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=e,this.groupSubscription=this._groupValidationHandler.bind(this),t.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=c.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return s.each(e,function(e,i){var o=a(t,function(e){if(e.validator===i)return!0})[0];o&&n.push(o)}),n},_groupValidationHandler:function(e){var t=this,n=t._getOrderedItems(e.validators,s.map(e.brokenRules,function(e){return{text:e.message,validator:e.validator}}));t.validators=e.validators,s.each(t.validators,function(e,n){if(n._validationSummary!==this){var i=t._itemValidationHandler.bind(t),o=function(){n.off("validated",i),n._validationSummary=null,i=null};n.on("validated",i),n.on("disposing",o),n._validationSummary=this}}),t.option("items",n)},_itemValidationHandler:function(e){var t,n=this.option("items"),i=e.isValid,o=!1,a=e.brokenRule&&e.brokenRule.message,r=e.validator;s.each(n,function(e,n){if(n.validator===r)return i?t=e:n.text=a,o=!0,!1}),i^o||(i?n.splice(t,1):n.push({text:a,validator:r}),n=this._getOrderedItems(this.validators,n),this.option("items",n))},_initMarkup:function(){this.$element().addClass(u),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return h},_itemDataKey:function(){return p},_postprocessRenderItem:function(e){o.on(e.itemElement,"click",function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()})},_dispose:function(){this.callBase(),this._unsubscribeGroup()}}).include(l);i("dxValidationSummary",f),e.exports=f},function(e,t,n){var i=n(2),o=n(4).noop,a=n(3).each,r=n(17),s=n(22).compileGetter,l=n(10),c=n(38),d=l.abstract,u="dx-toolbar-menu-container",h="dx-toolbar-menu-button",p=l.inherit({ctor:function(e){this._toolbar=e},render:function(){this._renderMenuButton(),this._renderWidget()},_widgetOptions:function(){var e=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(t){this._toggleMenu(!1,!0),e(t)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var e=i("<div>").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:d,_menuWidgetClass:d,_hasVisibleMenuItems:function(e){var t=e||this._toolbar.option("items"),n=!1,i=s("visible"),o=s("locateInMenu"),l=!1;return a(t,function(e,t){var a=i(t,{functionsAsIs:!0}),r=o(t,{functionsAsIs:!0});"menu"===t.location&&(l=!0),a===!1||"auto"!==r&&"always"!==r&&"menu"!==t.location||(n=!0)}),l&&r.log("W0001","dxToolbar - 'location' item field","menu","16.1","Use 'locateInMenu' item field instead."),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_updateMenuVisibility:o,_renderMenuButton:function(){var e=this._menuButtonOptions();this._renderMenuButtonContainer(),this._$button=i("<div>").appendTo(this._$menuButtonContainer).addClass(h),this._toolbar._createComponent(this._$button,c,e)},_menuButtonOptions:function(){return{onClick:this._menuButtonClickHandler.bind(this)}},_menuButtonClickHandler:function(){this._toggleMenu(!this._menuShown,!0)},_renderMenuButtonContainer:function(){var e=this._toolbar._$afterSection;this._$menuButtonContainer=i("<div>").appendTo(e).addClass(this._toolbar._buttonClass()).addClass(u)},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},toggleMenuVisibility:function(e,t){this._menu&&this._toggleMenu(e,t)},_toggleMenu:function(e){this._menuShown=e},getMenuWidget:function(){return this._menu},widgetOption:function(e,t){this._menu&&this._menu.option(e,t)},handleToolbarVisibilityChange:o});e.exports=p},function(e,t,n){var i=n(2),o=n(12),a=n(6),r=a.getWindow(),s=a.getNavigator(),l=n(5),c=n(21),d=n(29),u=n(1),h={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},p=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){return"data:"+p[e]+";base64,"+t},_linkDownloader:function(e,t,n){var a=o.createElement("a"),r={download:e,href:t};return l.on(i(a),"click",function(){i(a).remove(),n&&n.apply(this,arguments)}),o.getBody().appendChild(a),i(a).css({display:"none"}).text("load").attr(r)[0].click(),a},_formDownloader:function(e,t,n,o){var a={method:"post",action:e,enctype:"multipart/form-data"},r=i("<form>").css({display:"none"}).attr(a);r.append('<input type="hidden" name="fileName" value="'+t+'" />'),r.append('<input type="hidden" name="contentType" value="'+n+'" />'),r.append('<input type="hidden" name="data" value="'+o+'" />'),r.appendTo("body"),l.trigger(r,"submit"),l.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,p[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(p[n],["."+h[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_saveBlobAs:function(e,t,n,i){var o=this;if(o._blobSaved=!1,u.isDefined(s.msSaveOrOpenBlob))s.msSaveOrOpenBlob(n,e),o._blobSaved=!0;else if(u.isDefined(r.WinJS))o._winJSBlobSave(n,e,t),o._blobSaved=!0;else{var a=r.URL||r.webkitURL||r.mozURL||r.msURL||r.oURL;if(u.isDefined(a)){var l=a.createObjectURL(n),c=o._revokeObjectURLTimeout,d=function(e){setTimeout(function(){a.revokeObjectURL(l)},c)};return o._linkDownloader(e,l,d)}}},saveAs:function(e,t,n,i,o,a){if(e+="."+h[t],a)this._saveByProxy(i,e,t,n);else if(u.isFunction(r.Blob))this._saveBlobAs(e,t,n,o);else if(u.isDefined(i)&&!u.isDefined(s.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{if(u.isDefined(s.userAgent.match(/iPad/i))||c.log("E1034"),d.msie&&parseInt(d.version)<10)return;this._linkDownloader(e,this._getDataUri(t,n),o)}}}},function(e,t,n){var i=n(35),o=n(12),a=n(6),r=a.getWindow(),s=n(1),l=n(83),c=n(203),d=n(216),u=function(e,t){return new h(e,t)},h=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:o.getBody(),this.length=1,this):(t=t||o.getDocument(),"<"===e[0]?(this[0]=o.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,o.querySelectorAll(t,e)),this)):o.isNode(e)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):u(e.toArray?e.toArray():[e]):(this.length=0,this)};u.fn={dxRenderer:!0},h.prototype=u.fn;var p=function(e,t){for(var n=0;n<this.length;n++){var i=u(this[n]);i[e].apply(i,t)}return this},f=function(e,t,n){void 0!==n&&null!==n?o.setAttribute(e,t,n):o.removeAttribute(e,t)};h.prototype.show=function(){return this.toggle(!0)},h.prototype.hide=function(){return this.toggle(!1)},h.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},h.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return s.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n<t.length;n++)if(this[0].classList){if(this[0].classList.contains(t[n]))return!0}else if(this[0].className.split(" ").indexOf(t[n])>=0)return!0;return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i<n.length;i++)o.setClass(this[0],n[i],t);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach(function(e){var t=e.toLowerCase().indexOf("width")>=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),a=0===e.indexOf("inner");h.prototype[e]=function(l){if(this.length>1&&arguments.length>0)return p.call(this,e,arguments);var d=this[0];if(d){if(s.isWindow(d))return i?d["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(d)){var u=o.getDocumentElement(),h=o.getBody();return Math.max(h["scroll"+t],h["offset"+t],u["scroll"+t],u["offset"+t],u["client"+t])}if(0===arguments.length||"boolean"==typeof l){var f={paddings:a||i,borders:i,margins:l};return c.getSize(d,n,f)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var g=r.getComputedStyle(d),m=c.getElementBoxParams(n,g),_="border-box"===g.boxSizing;i?l-=_?0:m.border+m.padding:a?l+=_?m.border:-m.padding:_&&(l+=m.border+m.padding)}return l+=s.isNumeric(l)?"px":"",o.setStyle(d,n,l),this}}}),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!d.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(d.parseHTML(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=d.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n<e.length;n++){var i=e[n],a=this[0],r="TABLE"===a.tagName&&"TR"===i.tagName;r&&a.tBodies&&a.tBodies.length&&(a=a.tBodies[0]),o.insertElement(a,i.nodeType?i:i[0],t)}}},m=function(e,t){if(this[0]&&this[0].style){e=l.styleProp(e);for(var n=0;n<this.length;n++)this[n].style[e]=l.normalizeStyleProp(e,t)}};h.prototype.css=function(e,t){if(s.isString(e)){if(2!==arguments.length){if(!this[0])return;e=l.styleProp(e);var n=r.getComputedStyle(this[0])[e]||this[0].style[e];return s.isNumeric(n)?n.toString():n}m.call(this,e,t)}else if(s.isPlainObject(e))for(var i in e)m.call(this,i,e[i]);return this},h.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return g.apply(this,[e,this[0].firstChild]),this},h.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return g.apply(this,[e]),this},h.prototype.prependTo=function(e){return e=u(e),e[0]&&o.insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(o.insertElement(u(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=u(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.insertBefore(this),this.remove(),e},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(o.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t].cloneNode(!0));return u(e)},h.prototype.text=function(e){if(!arguments.length){for(var t="",n=0;n<this.length;n++)t+=this[n]&&this[n].textContent||"";return t}var a=s.isFunction(e)?e():e;return i.cleanDataRecursive(this[0],!1),o.setText(this[0],s.isDefined(a)?a:""),this},h.prototype.val=function(e){return 1===arguments.length?this.prop("value",s.isDefined(e)?e:""):this.prop("value")},h.prototype.contents=function(){if(!this[0])return u();var e=[];return e.push.apply(e,this[0].childNodes),u(e)},h.prototype.find=function(e){var t=u();if(!e)return t;var n,i=[];if("string"==typeof e)for(e=e.trim(),n=0;n<this.length;n++){var a=this[n];if(o.isElementNode(a)){var r=a.getAttribute("id"),s=r||"dx-query-children";r||f(a,"id",s),s="[id='"+s+"'] ";var l=s+e.replace(/([^\\])(,)/g,"$1, "+s);i.push.apply(i,o.querySelectorAll(a,l)),f(a,"id",r)}else o.isDocument(a)&&i.push.apply(i,o.querySelectorAll(a,e))}else for(n=0;n<this.length;n++)e=o.isNode(e)?e:e[0],this[n]!==e&&this[n].contains(e)&&i.push(e);return t.add(i)};var _=function(e,t){return!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};h.prototype.filter=function(e){if(!e)return u();if(":visible"===e)return this.filter(_);if(":hidden"===e)return this.filter(function(e,t){return!_(e,t)});for(var t=[],n=0;n<this.length;n++){var i=this[n];if(o.isElementNode(i)&&"string"===s.type(e))o.elementMatches(i,e)&&t.push(i);else if(o.isNode(e)||s.isWindow(e))e===i&&t.push(i);else if(s.isFunction(e))e.call(i,n,i)&&t.push(i);else for(var a=0;a<e.length;a++)e[a]===i&&t.push(i)}return u(t)},h.prototype.not=function(e){for(var t=[],n=this.filter(e).toArray(),i=0;i<this.length;i++)n.indexOf(this[i])===-1&&t.push(this[i]);return u(t)},h.prototype.is=function(e){return!!this.filter(e).length},h.prototype.children=function(e){for(var t=[],n=0;n<this.length;n++)for(var i=this[n]?this[n].childNodes:[],a=0;a<i.length;a++)o.isElementNode(i[a])&&t.push(i[a]);return t=u(t),e?t.filter(e):t},h.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return u();for(var t=[],n=e.parentNode.childNodes||[],i=0;i<n.length;i++){var a=n[i];o.isElementNode(a)&&a!==e&&t.push(a)}return u(t)},h.prototype.each=function(e){for(var t=0;t<this.length&&e.call(this[t],t,this[t])!==!1;t++);},h.prototype.index=function(e){return e?(e=u(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},h.prototype.get=function(e){return this[e<0?this.length+e:e]},h.prototype.eq=function(e){return e=e<0?this.length+e:e,u(this[e])},h.prototype.first=function(){return this.eq(0)},h.prototype.last=function(){return this.eq(-1)},h.prototype.parent=function(e){if(!this[0])return u();var t=u(this[0].parentNode);return!e||t.is(e)?t:u()},h.prototype.parents=function(e){for(var t=[],n=this.parent();n&&n[0]&&!o.isDocument(n[0]);)o.isElementNode(n[0])&&(!e||e&&n.is(e))&&t.push(n.get(0)),n=n.parent();return u(t)},h.prototype.closest=function(e){if(this.is(e))return this;for(var t=this.parent();t&&t.length;){if(t.is(e))return t;t=t.parent()}return u()},h.prototype.next=function(e){if(!this[0])return u();var t=u(this[0].nextSibling);if(!arguments.length)return t;for(;t&&t.length;){if(t.is(e))return t;t=t.next()}return u()},h.prototype.prev=function(){return this[0]?u(this[0].previousSibling):u()},h.prototype.add=function(e){for(var t=u(e),n=this.toArray(),i=0;i<t.length;i++){var o=t[i];n.indexOf(o)===-1&&n.push(o)}return u(n)};var v=[];h.prototype.splice=function(){return u(v.splice.apply(this,arguments))},h.prototype.slice=function(){return u(v.slice.apply(this,arguments))},h.prototype.toArray=function(){return v.slice.call(this)};var w=function(e){return s.isWindow(e)?e:e.defaultView};h.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var e=this[0].getBoundingClientRect(),t=w(this[0].ownerDocument),n=this[0].ownerDocument.documentElement;return{top:e.top+t.pageYOffset-n.clientTop,left:e.left+t.pageXOffset-n.clientLeft}}},h.prototype.offsetParent=function(){if(!this[0])return u();for(var e=u(this[0].offsetParent);e[0]&&"static"===e.css("position");)e=u(e[0].offsetParent);return e=e[0]?e:u(o.getDocumentElement())},h.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return e=this[0].getBoundingClientRect(),{top:e.top-t,left:e.left-n};e=this.offset();var i=this.offsetParent(),o={top:0,left:0};return"HTML"!==i[0].nodeName&&(o=i.offset()),o={top:o.top+parseFloat(i.css("borderTopWidth")),left:o.left+parseFloat(i.css("borderLeftWidth"))},{top:e.top-o.top-t,left:e.left-o.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach(function(e){var t=e.name;h.prototype[t]=function(n){if(this[0]){var i=w(this[0]);return void 0===n?i?i[e.offsetProp]:this[0][t]:(i?e.scrollWindow(i,n):this[0][t]=n,this)}}}),h.prototype.data=function(e,t){if(this[0])return arguments.length<2?i.data.call(u,this[0],e):(i.data.call(u,this[0],e,t),this)},h.prototype.removeData=function(e){return this[0]&&i.removeData(this[0],e),this};var x=function(){return u.apply(this,arguments)};Object.defineProperty(x,"fn",{enumerable:!0,configurable:!0,get:function(){return u.fn},set:function(e){u.fn=e}}),e.exports={set:function(e){u=e},get:function(){return x}}},function(e,t,n){var i=["pageX","pageY","screenX","screenY","clientX","clientY"],o=function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;if(n.length)return n[0][e]};e.exports=function(e){i.forEach(function(t){e(t,function(e){return o(t,e)})},this)}},function(e,t,n){var i=n(11).merge,o=n(12),a=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,r={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;var s=function(e){if("string"!=typeof e)return null;var t=o.createDocumentFragment(),n=t.appendChild(o.createElement("div")),s=a.exec(e),l=s&&s[1].toLowerCase(),c=r[l]||r.default;n.innerHTML=c.startTags+e+c.endTags;for(var d=0;d<c.tagsCount;d++)n=n.lastChild;return i([],n.childNodes)},l=function(e){var t=a.exec(e);return t&&t[1]in r};t.parseHTML=s,t.isTablePart=l},function(e,t,n){var i=n(1),o=n(39),a=n(49),r=n(33),s=n(219).getFormat,l=n(261).getLanguageId,c={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},d=1632,u={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},h=/a+/g,p=/E/g,f=/dE+/g,g=/L/g,m=/h/g,_=/\//g,v=/\[/g,w=/]/g,x=/./g;n(137);var y=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return a.getOpenXmlCurrencyFormat(e)},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if(t=e.charCodeAt(n),t>=d&&t<d+10)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.replace(_,"\\/").split("'").map(function(e,t){return t%2===0?e.replace(h,"AM/PM").replace(f,"d").replace(p,"d").replace(g,"M").replace(m,"H").replace(v,"\\[").replace(w,"\\]"):e?e.replace(x,"\\$&"):"'"}).join("")},_convertDateFormat:function(e){e=c[e&&e.type||e]||e;var t=this,n=(r.format(new Date(2009,8,8,6,5,4),e)||"").toString(),i=s(function(t){return r.format(t,e)});return i=t._convertDateFormatToOpenXml(i),i=t._getLanguageInfo(n)+i},_getLanguageInfo:function(e){var t=l(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a="currency"===e?this._getCurrencyFormat(n):u[e.toLowerCase()];return a&&(i=o.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,o){if(i.isDefined(e)){if("date"===n)return y._convertDateFormat(e);if(i.isString(e)&&u[e.toLowerCase()])return y._convertNumberFormat(e,t,o)}}}},function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}var o={3:"abbreviated",4:"wide",5:"narrow"},a={y:function(e,t,n){var o=e[n?"getUTCFullYear":"getFullYear"]();return 2===t&&(o%=100),i(o.toString(),t)},M:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"format")[r]:i((r+1).toString(),Math.min(t,2))},L:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"standalone")[r]:i((r+1).toString(),Math.min(t,2))},Q:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=Math.floor(r/3),l=o[t];return l?a.getQuarterNames(l)[s]:i((s+1).toString(),Math.min(t,2))},E:function(e,t,n,i){var a=e[n?"getUTCDay":"getDay"](),r=o[t<3?3:t];return i.getDayNames(r)[a]},a:function(e,t,n,i){var a=e[n?"getUTCHours":"getHours"](),r=a<12?0:1,s=o[t];return i.getPeriodNames(s)[r]},d:function(e,t,n){return i(e[n?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,n){return i(e[n?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},h:function(e,t,n){var o=e[n?"getUTCHours":"getHours"]();return i((o%12||12).toString(),Math.min(t,2))},m:function(e,t,n){return i(e[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2));
|
|
25
|
-
},s:function(e,t,n){return i(e[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,n){return i(e[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,n){var o=n?0:e.getTimezoneOffset(),a=o>0?"-":"+",r=Math.abs(o),s=Math.floor(r/60),l=r%60,c=i(s.toString(),2),d=i(l.toString(),2);return a+c+(t>=3?":":"")+(t>1||l?d:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":a.x(e,t,n)},Z:function(e,t,n){return a.X(e,t>=5?3:2,n)}},r=function(e,t){return function(n){var i,o,r,s,l=0,c="'",d=!1,u="";if(!n)return null;if(!e)return n;var h="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i<e.length;i++)r=e[i],o=a[r],s=r===e[i+1],l++,s||(o&&!d&&(u+=o(n,l,h,t)),l=0),r!==c||s?!d&&o||(u+=r):d=!d,r===c&&s&&i++;return u}};e.exports.getFormatter=r},function(e,t,n){var i="\u060c",o=" .,:;/\\<>()-[]"+i,a=1632,r=function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=a&&t<a+10},s=function(e,t,n){var i=e[t],a=e[t-1],s=e[t+1];if(!n){if("."===i||" "===i&&"."===a)return!0;if("-"===i&&!r(s))return!0}return o.indexOf(i)<0&&n===r(i)},l=function(e,t){if(!r(e[t]))for(;t>0&&!r(e[t-1])&&("."===e[t-1]||o.indexOf(e[t-1])<0);)t--;return t},c=function(e,t,n,i){var o=0,a=[],c=function(t){return e[o]!==t[o]&&(void 0===i||r(e[o])===i)};for(Array.isArray(t)||(t=[t]),o=0;o<e.length;o++)if(n.indexOf(o)<0&&t.filter(c).length){o=l(e,o);do{if(i=r(e[o]),!a.length&&!i&&r(t[0][o]))break;a.push(o),n.unshift(o),o++}while(e[o]&&s(e,o,i));break}return 1!==a.length||"0"!==e[n[0]-1]&&"\u0660"!==e[n[0]-1]||n.unshift(n[0]-1),a},d=function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach(function(t,i){e=e.substr(0,a+i)+(n.length>1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("\u0660"+n,n+n)),e},u=function(e,t,n,i){var o,a,s;if(!r(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o<i.length;o++)i[o]--;e=e.substr(0,s)+e.substr(s+1)}for(a=t[t.length-1]+1,s=a<i.length?i[a]:a;t.length<l;){for(t.push(t[t.length-1]+1),o=a;o<i.length;o++)i[o]++;e=e.substr(0,s)+" "+e.substr(s)}}return e=d(e,t,n,i)},h=function(e,t){return Array.isArray(e)?e.map(function(e){return(t(e)||"").toString()}):(t(e)||"").toString()},p=/[a-zA-Z]/g,f=function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(e.match(p)||"'"===e)?i[t]:-1});return e=e.split("").map(function(e,t){var n=e,i=o.indexOf(t)>=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n}).join("")},g=function(e){var t=[],n=h(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),o=n,a={},r=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return r.forEach(function(r){var s=c(n,h(r.date,e),t,r.isDigit),l="M"!==r.pattern||a.d?r.pattern:"L";o=u(o,s,l,i),a[l]=s.length}),o=f(o,n,t,i),t.length?o:void 0};t.getFormat=g},function(e,t,n){var i=n(3),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=["AM","PM"],s=["Q1","Q2","Q3","Q4"],l=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return i.map(e,function(e){return e.substr(0,n[t])})};e.exports={getMonthNames:function(e){return l(o,e)},getDayNames:function(e){return l(a,e)},getQuarterNames:function(e){return s},getPeriodNames:function(e){return r}}},function(e,t,n){function i(e,t,n){var i=H("<canvas>")[0];return i.width=e+2*n,i.height=t+2*n,i}function o(e,t){var n=e.toDataURL(t,se),i=G.atob(n.substring(("data:"+t+";base64,").length));return i}function a(e,t,n,i,o,a,r,s){var l,c,d,u,h,p,f=(e+n)/2,g=(t+i)/2,m=ne(t-i,e-n),_=a?1:-1;m+=90*(Z/180)*(r?1:-1),l=ee(te(n-e,2)+te(i-t,2))/2,c=ee(Q(te(o,2)-te(l,2))),d=f+_*(c*ie(m)),u=g+_*(c*oe(m)),h=ne(t-u,e-d),p=ne(i-u,n-d),s.arc(d,u,o,h,p,!r)}function r(e){var t,n=he(e.attributes||{}),i=e.style||{},o=N({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),a=n.transform;return a&&(t=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.translateX=re(t[0]),o.translateY=t[1]?re(t[1]):0),t=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=re(t[0]),o.rotationX=t[1]&&re(t[1]),o.rotationY=t[2]&&re(t[2]))),d(i,o),o}function s(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=J(r,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,r),e.arcTo(o,a,0,a,r),e.arcTo(0,a,0,0,r),e.arcTo(0,0,r,0,r),e.lineTo(o/2,0),e.restore()):e.rect(t.x,t.y,t.width,t.height)}function l(e,t){var n=new Y,i=new G.Image;i.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,b(e,t),C(e,t),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore(),n.resolve()},i.onerror=function(){n.resolve()},P.push(n),i.setAttribute("crossOrigin","anonymous"),i.src=t["xlink:href"]}function c(e,t){var n,i,o=t.split(" "),r=0;do switch(n=re(o[r+1]),i=re(o[r+2]),o[r]){case"M":e.moveTo(n,i),r+=3;break;case"L":e.lineTo(n,i),r+=3;break;case"C":e.bezierCurveTo(n,i,re(o[r+3]),re(o[r+4]),re(o[r+5]),re(o[r+6])),r+=7;break;case"A":a(re(o[r-2]),re(o[r-1]),re(o[r+6]),re(o[r+7]),n,re(o[r+4]),re(o[r+5]),e),r+=8;break;case"Z":e.closePath(),r+=1}while(r<o.length)}function d(e,t){ae(e,function(n,i){""!==e[i]&&(t[K(i)]=e[i])}),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}function u(e){var t=e&&e.match(/url\(.*#(.*?)["']?\)/i);return t&&t[1]}function h(e,t){var n=[];t.fontSize=t.fontSize||ce,t.fontFamily||de,t.fill=t.fill||ue,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function p(e,t){h(e,t),y(e,t),t.text&&e.fillText(t.text,t.x||0,t.y||0),T(e,t,!0),f(e,t)}function f(e,t){if(t.textDecoration&&"none"!==t.textDecoration){var n=t.x,i=e.measureText(t.text).width,o=parseInt(t.fontSize,10),a=o*le<1?1:o*le,r=t.y;switch(t.textDecoration){case"line-through":r-=o/3+a/2;break;case"overline":r-=o-a;break;case"underline":r+=a}e.rect(n,r,i,a),A(e,t),T(e,t)}}function g(e){M[e.attributes.id.textContent]=e.childNodes[0]}function m(e){V[e.attributes.id.textContent]=e}function _(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}function v(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function w(e,t,n){for(var i,o=[],a=0,s=0;s<e.length;s++){var l=e[s];if(void 0===l.tagName)x(l,t,n);else if("tspan"===l.tagName||"text"===l.tagName){var c=r(l),d=N({},n,c);if("tspan"===l.tagName&&v(l)){w(l.childNodes,t,d);continue}d.textAlign="start",i&&void 0===c.x||(i={elements:[],options:[],widths:[],offsets:[]},o.push(i)),void 0!==c.y&&(a=0),void 0!==c.dy&&(a+=parseFloat(c.dy)),i.elements.push(l),i.options.push(d),i.offsets.push(a),h(t,d),i.widths.push(t.measureText(d.text).width)}}o.forEach(function(e){var i=e.widths.reduce(function(e,t){return e+t},0),o=0,a=0;"center"===n.textAlign&&(o=i/2),"end"===n.textAlign&&(o=i),e.options.forEach(function(t,n){var i=e.widths[n];t.x=t.x-o+a,t.y+=e.offsets[n],a+=i}),e.elements.forEach(function(n,i){w(n.childNodes,t,e.options[i])})})}function x(e,t,n){var i=e.tagName,o="text"===i||"tspan"===i||void 0===i,a="image"===i,d=N({},n,r(e));if("hidden"!==d.visibility){switch(t.save(),!a&&b(t,d),C(t,d),_(d),t.beginPath(),e.tagName){case void 0:p(t,d);break;case"text":case"tspan":w(e.childNodes,t,d);break;case"image":l(t,d);break;case"path":c(t,d.d);break;case"rect":s(t,d),t.closePath();break;case"circle":t.arc(d.cx,d.cy,d.r,0,2*Z,1)}o||(y(t,d),A(t,d),T(t,d)),t.restore()}}function y(e,t){var n,i=u(t.filter);i&&(n=F&&F[i],n||(n={offsetX:0,offsetY:0,blur:0,color:"#000"}),e.shadowOffsetX=n.offsetX,e.shadowOffsetY=n.offsetY,e.shadowColor=n.color,e.shadowBlur=n.blur)}function b(e,t){e.translate(t.translateX||0,t.translateY||0),delete t.translateX,delete t.translateY,t.rotationAngle&&(e.translate(t.rotationX||0,t.rotationY||0),e.rotate(t.rotationAngle*Z/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),delete t.rotationAngle,delete t.rotationX,delete t.rotationY)}function C(e,t){t["clip-path"]&&(x(M[u(t["clip-path"])],e,{}),e.clip(),delete t["clip-path"])}function k(e,t){var n=new $(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function S(e){var t,n,i={};ae(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":a.stdDeviation&&(i.blur=re(a.stdDeviation.value));break;case"offsetResult":i.offsetX=re(a.dx.value),i.offsetY=re(a.dy.value);break;case"floodResult":t=a["flood-color"]?a["flood-color"].value:"#000",n=a["flood-opacity"]?a["flood-opacity"].value:1,i.color=k(t,n)}}),F[e.id]=i}function I(e,t,n){ae(e,function(e,i){switch(i.tagName&&i.tagName.toLowerCase()){case"g":var o=N({},n,r(i));t.save(),b(t,o),C(t,o),I(i.childNodes,t,o),t.restore();break;case"defs":M={},V={},F={},I(i.childNodes,t);break;case"clippath":g(i);break;case"pattern":m(i);break;case"filter":S(i);break;default:x(i,t,n)}})}function D(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&e.setLineDash&&(n=z.map(n,function(e){return re(e)}),e.setLineDash(n))}function T(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(D(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function E(e,t){var n=V[u(t)],o=r(n),a=i(o.width,o.height,0),s=a.getContext("2d");return I(n.childNodes,s,o),e.createPattern(a,"repeat")}function A(e,t){var n=t.fill;n&&"none"!==n&&(e.fillStyle=n.search(/url/)===-1?n:E(e,n),e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1)}function B(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}function O(e,t,n,o,a){var r=i(t,n,a),s=r.getContext("2d"),l=new G.DOMParser,c=l.parseFromString(e,"image/svg+xml"),d=c.childNodes[0];return s.translate(a,a),P=[],W.getBody().appendChild(r),d.attributes.direction&&(r.dir=d.attributes.direction.textContent),B(s,t,n,o,a),I(d.childNodes,s,{}),W.getBody().removeChild(r),r}function R(e,t,n){U.apply(H,P).done(function(){var i=o(t,n);e.resolve(i)})}var M,P,V,F,H=n(2),$=n(86),L=n(1).isFunction,z=n(3),N=n(0).extend,W=n(12),q=n(6),G=q.getWindow(),K=n(37).camelize,j=n(7),U=j.when,Y=j.Deferred,X=Math,Z=X.PI,J=X.min,Q=X.abs,ee=X.sqrt,te=X.pow,ne=X.atan2,ie=X.cos,oe=X.sin,ae=z.each,re=Number,se=1,le=.05,ce="10px",de="sans-serif",ue="#000",he=function(e){var t,n={};return z.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=re(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=new Y,o=t.width,a=t.height,r=t.backgroundColor;return L(t.__parseAttributesFn)&&(he=t.__parseAttributesFn),R(i,O(e,o,a,r,t.margin),n),i},getData:function(e,n){var i=this,o=t.imageCreator.getImageData(e,n),a="image/"+n.format,r=new Y;return U(o).done(function(e){o=L(G.Blob)&&!n.forceProxy?i._getBlob(e,a):i._getBase64(e),r.resolve(o)}),r},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new G.Blob([i.buffer],{type:t})},_getBase64:function(e){return G.btoa(e)}},t.getData=function(e,n,i){t.imageCreator.getData(e,n).done(i)},t.testFormats=function(e){var t=i(100,100,0);return e.reduce(function(e,n){var i=("image/"+n).toLowerCase();return t.toDataURL(i).indexOf(i)!==-1?e.supported.push(n):e.unsupported.push(n),e},{supported:[],unsupported:[]})}},function(e,t,n){var i=n(2),o=n(12),a=n(6),r=a.getWindow(),s=n(5),l=n(0).extend,c=n(121),d=n(40),u=n(83),h=n(14),p=function(e){e=l({},e);var t=h.real(),n=e.allowZoom,a=e.allowPan,p="allowSelection"in e?e.allowSelection:"generic"===t.platform,f="meta[name=viewport]";i(f).length||i("<meta>").attr("name","viewport").appendTo("head");var g=["width=device-width"],m=[];if(n?m.push("pinch-zoom"):g.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),a&&m.push("pan-x","pan-y"),a||n?i("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):i("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!p&&d.supportProp("userSelect")&&i(".dx-viewport").css(u.styleProp("userSelect"),"none"),i(f).attr("content",g.join()),i("html").css("msTouchAction",m.join(" ")||"none"),t=h.real(),!d.touch||"win"===t.platform&&10===t.version[0]||(s.off(o.getDocument(),".dxInitMobileViewport"),s.on(o.getDocument(),"dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,r=!a&&1===t&&!e.isScrollingEvent;i&&(o||r)&&e.preventDefault()})),t.ios){var _="file:"===o.getLocation().protocol;_||c.add(function(){var e=i(r).width();i("body").width(e)})}t.android&&c.add(function(){setTimeout(function(){var e=o.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)})})};t.initMobileViewport=p},function(e,t,n){var i=n(19)();e.exports=function(){i.fire()},e.exports.processCallback=i},function(e,t,n){var i=n(1).isFunction,o=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,a={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},r=function(e,t,n,i){var o=3*e,a=3*(n-e)-o,r=1-o-a,s=3*t,l=3*(i-t)-s,c=1-s-l,d=function(e){return e*(o+e*(a+e*r))},u=function(e){return e*(s+e*(l+e*c))},h=function(e){for(var t,n=e,i=0;i<14&&(t=d(n)-e,!(Math.abs(t)<.001));)n-=t/p(n),i++;return n},p=function(e){return o+e*(2*a+3*e*r)};return function(e){return u(h(e))}},s={},l=function(e){e=a[e]||e;var t,n=e.match(o);n||(t="linear",n=a[t].match(o)),n=n.slice(1,5);for(var l=0;l<n.length;l++)n[l]=parseFloat(n[l]);var c=t||"cubicbezier_"+n.join("_").replace(/\./g,"p");return i(s[c])||(s[c]=function(e,t,i,o,a){return o*r(n[0],n[1],n[2],n[3])(t/a)+i}),c};t.setEasing=function(e){s=e},t.getEasing=function(e){return s[e]},t.convertTransitionTimingFuncToEasing=l},function(e,t,n){var i=n(14),o=n(0).extend,a=n(3).each,r=n(140),s={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},l=function(e){var t=[];return a(e.touches,function(e,n){t.push(o({pointerId:n.identifier},n))}),{pointers:t,pointerId:e.changedTouches[0].identifier}},c=function(e){return"ios"===i.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},d=r.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(c(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});d.map=s,d.normalize=l,e.exports=d},function(e,t,n){var i=n(3).each,o=n(51),a=n(12),r=function(e,t){o.add(function(){e.split(" ").forEach(function(e){a.listen(a.getDocument(),e,t,!0)})})},s=function(e,t,n){n=n||function(){};var o=[],a=function(e){var n=-1;return i(o,function(i,o){return!t(e,o)||(n=i,!1)}),n},s=function(e){a(e)===-1&&(n(e),o.push(e))},l=function(e){var t=a(e);t>-1&&o.splice(t,1)},c=function(e){o[a(e)]=e};r(e.dxpointerdown,s),r(e.dxpointermove,c),r(e.dxpointerup,l),r(e.dxpointercancel,l),this.pointers=function(){return o},this.reset=function(){o=[]}};e.exports=s},function(e,t,n){var i,o=n(0).extend,a=n(140),r=n(226),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},c=!1,d=function(){c||(i=new r(s,function(){return!0}),c=!0)},u=a.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});u.map=s,u.normalize=l,u.activate=d,u.resetObserver=function(){i.reset()},e.exports=u},function(e,t,n){var i=n(2),o=n(12),a=n(56),r=n(1),s=n(66),l=n(13),c=n(327).getClosestNodeWithContext,d=function(e){var t=o.createElement("div");a.applyBindingsToNode(t,null,e);var n=a.contextFor(t);return a.cleanNode(t),n},u=s.inherit({ctor:function(e){this._element=e,this._template=i("<div>").append(l.normalizeTemplateElement(e)),this._registerKoTemplate()},_registerKoTemplate:function(){var e=this._template.get(0);new a.templateSources.anonymousTemplate(e).nodes(e)},_prepareDataForContainer:function(e,t){if(t&&t.length){var n=t.get(0),i=c(n),o=a.contextFor(i);if(e=void 0!==e?e:a.dataFor(i)||{},o)return e===o.$data?o:o.createChildContext(e)}return d(e).createChildContext(e)},_renderCore:function(e){var t=this._prepareDataForContainer(e.model,i(e.container));r.isDefined(e.index)&&(t.$index=e.index);var n,o=i("<div>").appendTo(e.container);return a.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=i(e)}},o.get(0),"replaceNode"),n},source:function(){return i(this._element).clone()},dispose:function(){this._template.remove()}});e.exports=u},function(e,t,n){var i=n(17),o=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var o=t(n);if(o<1)throw i.Error("E0014");1===o?delete e[n]:e[n]=o-1},locked:function(e){return t(e)>0}}};e.exports=o},function(e,t,n){var i=n(19);e.exports=new i},function(e,t,n){n(43);var i=n(26),o=n(4),a=n(6).getWindow(),r=n(12),s=n(115),l=n(0),c=n(3).each,d=n(62),u=n(232).Application,h=n(82).ConditionalViewCacheDecorator,p=n(143),f=n(235),g=n(237).ViewEngine,m=n(15),_=n(73).value,v=n(222),w=n(14),x=n(96),y=n(116),b=n(139),C=n(7).when;n(179),n(20);var k="dx-viewport",S="layout-change",I=u.inherit({ctor:function(e){e=e||{},this.callBase(e),this._$root=i(e.rootNode||r.getBody()),this._initViewport(e.viewPort),"mobileApp"===this._applicationMode&&v.initMobileViewport(e.viewPort),this.device=e.device||w.current(),this.commandManager=e.commandManager||new f({commandMapping:this.commandMapping}),this._initTemplateContext(),this.viewEngine=e.viewEngine||new g({$root:this._$root,device:this.device,templateCacheStorage:e.templateCacheStorage||a.localStorage,templatesVersion:e.templatesVersion,templateContext:this._templateContext}),this.components.push(this.viewEngine),this._initMarkupFilters(this.viewEngine),this._layoutSet=e.layoutSet||p.layoutSets.default,this._animationSet=e.animationSet||p.animationSets.default,this._availableLayoutControllers=[],this._activeLayoutControllersStack=[],this.transitionExecutor=new y.TransitionExecutor,this._initAnimations(this._animationSet)},_initAnimations:function(e){e&&(c(e,function(e,t){c(t,function(t,n){b.presets.registerPreset(e,n)})}),b.presets.applyChanges())},_localizeMarkup:function(e){m.localizeNode(e)},_notifyIfBadMarkup:function(e){e.each(function(){var e=i(this).html();/href="#/.test(e)&&d.log("W3005",e)})},_initMarkupFilters:function(e){var t=[];t.push(this._localizeMarkup),e.markupLoaded&&e.markupLoaded.add(function(e){c(t,function(t,n){n(e.markup)})})},_createViewCache:function(e){var t=this.callBase(e);return e.viewCache||(t=new h({filter:function(e,t){return!t.viewTemplateInfo.disableCache},viewCache:t})),t},_initViewport:function(){this._$viewPort=this._getViewPort(),_(this._$viewPort)},_getViewPort:function(){var e=i("."+k);return e.length||(e=i("<div>").addClass(k).appendTo(this._$root)),e},_initTemplateContext:function(){this._templateContext=new s({orientation:w.orientation()}),w.on("orientationChanged",function(e){this._templateContext.option("orientation",e.orientation)}.bind(this))},_showViewImpl:function(e,t){var n=this,o=i.Deferred(),a=o.promise(),r=e.layoutController;return n._obtainViewLink(e),r.showView(e,t).done(function(){n._activateLayoutController(r,n._getTargetNode(e),t).done(function(){o.resolve()})}),x.lock(a),a},_resolveLayoutController:function(e){var t={viewInfo:e,layoutController:null,availableLayoutControllers:this._availableLayoutControllers};return this._processEvent("resolveLayoutController",t,e.model),t.layoutController||this._resolveLayoutControllerImpl(e)},_checkLayoutControllerIsInitialized:function(e){if(e){var t=!1;if(c(this._layoutSet,function(n,i){if(i.controller===e)return t=!0,!1}),!t)throw d.Error("E3024")}},_ensureOneLayoutControllerFound:function(e,t){var n=function(e,t){return"controller"===e?"[controller]: { name:"+t.name+" }":t};if(!t.length)throw d.log("W3003",JSON.stringify(e,null,4),JSON.stringify(this._availableLayoutControllers,n,4)),d.Error("E3011");if(t.length>1)throw d.log("W3004",JSON.stringify(e,null,4),JSON.stringify(t,n,4)),d.Error("E3012")},_resolveLayoutControllerImpl:function(e){var t=e.viewTemplateInfo||{},n=e.navigateOptions||{},i=l.extend({root:!e.canBack,customResolveRequired:!1,pane:t.pane,modal:void 0!==n.modal?n.modal:t.modal||!1},w.current()),a=o.findBestMatches(i,this._availableLayoutControllers);return this._ensureOneLayoutControllerFound(i,a),a[0].controller},_onNavigatingBack:function(e){if(this.callBase.apply(this,arguments),!e.cancel&&!this.canBack()&&this._activeLayoutControllersStack.length>1){var t=this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-2],n=t.activeViewInfo();e.cancel=!0,this._activateLayoutController(t,void 0,"backward"),this.navigationManager.currentItem(n.key)}},_activeLayoutController:function(){return this._activeLayoutControllersStack.length?this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-1]:void 0},_getTargetNode:function(e){var t=(e.navigateOptions||{}).event;return t?i(t.target):void 0},_activateLayoutController:function(e,t,n){var o=this,a=o._activeLayoutController();if(a===e)return i.Deferred().resolve().promise();var r=i.Deferred();return e.ensureActive(t).done(function(t){o._deactivatePreviousLayoutControllers(e,n,t).done(function(){o._activeLayoutControllersStack.push(e),r.resolve()})}),r.promise()},_deactivatePreviousLayoutControllers:function(e,t){var n=this,o=[],a=n._activeLayoutControllersStack.pop();if(!a)return i.Deferred().resolve().promise();if(e.isOverlay)n._activeLayoutControllersStack.push(a),o.push(a.disable());else{for(var r=i.Deferred(),s=!1,l=function(e,t){return function(){e.deactivate().done(function(){t.resolve()})}};a&&a!==e;){var c=i.Deferred();a.isOverlay?s=!0:s||n.transitionExecutor.leave(a.element(),S,{direction:t}),r.promise().done(l(a,c)),o.push(c.promise()),a=n._activeLayoutControllersStack.pop()}s?r.resolve():(n.transitionExecutor.enter(e.element(),S,{direction:t}),n.transitionExecutor.start().done(function(){r.resolve()}))}return C.apply(i,o)},init:function(){var e=this,t=this.callBase();return t.done(function(){e._initLayoutControllers(),e.renderNavigation()}),t},_disposeView:function(e){e.layoutController.disposeView&&e.layoutController.disposeView(e),this.callBase(e)},viewPort:function(){return this._$viewPort},_createViewInfo:function(){var e=this.callBase.apply(this,arguments),t=this.getViewTemplateInfo(e.viewName);if(!t)throw d.Error("E3013","dxView",e.viewName);return e.viewTemplateInfo=t,e.layoutController=this._resolveLayoutController(e),e},_createViewModel:function(e){this.callBase(e),l.extendFromObject(e.model,e.viewTemplateInfo)},_initLayoutControllers:function(){var e=this;c(e._layoutSet,function(t,n){var i=n.controller,a=w.current();o.findBestMatches(a,[n]).length&&(e._availableLayoutControllers.push(n),i.init&&i.init({app:e,$viewPort:e._$viewPort,navigationManager:e.navigationManager,viewEngine:e.viewEngine,templateContext:e._templateContext,commandManager:e.commandManager}),i.on&&(i.on("viewReleased",function(t){e._onViewReleased(t)}),i.on("viewHidden",function(t){e._onViewHidden(t)}),i.on("viewRendered",function(t){e._processEvent("viewRendered",{viewInfo:t},t.model)}),i.on("viewShowing",function(t,n){e._processEvent("viewShowing",{viewInfo:t,direction:n,params:t.routeData},t.model)}),i.on("viewShown",function(t,n){e._processEvent("viewShown",{viewInfo:t,direction:n,params:t.routeData},t.model)})))})},_onViewReleased:function(e){this._releaseViewLink(e)},renderNavigation:function(){var e=this;c(e._availableLayoutControllers,function(t,n){var i=n.controller;i.renderNavigation&&i.renderNavigation(e.navigation)})},getViewTemplate:function(e){return this.viewEngine.getViewTemplate(e)},getViewTemplateInfo:function(e){var t=this.viewEngine.getViewTemplateInfo(e);return t&&t.option()},loadTemplates:function(e){return this.viewEngine.loadTemplates(e)},templateContext:function(){return this._templateContext}});e.exports=I},function(e,t,n){n(43);var i,o=n(26),a=n(10),r=n(6).getWindow(),s=a.abstract,l=n(76),c=n(4),d=n(1),u=n(3),h=n(0).extend,p=n(110).utils.mergeCommands,f=n(233).createActionExecutors,g=n(141),m=n(111),_=n(175),v=n(174),w=n(15),x=n(178),y=n(82),b=n(53),C=n(154).sessionStorage,k=n(41),S=n(62),I=n(7).when,D="InProgress",T="Inited",E=a.inherit({ctor:function(e){e=e||{},this._options=e,this.namespace=e.namespace||r,this._applicationMode=e.mode?e.mode:"mobileApp",this.components=[],i=w.localizeString("@Back"),this.router=e.router||new g;var t={mobileApp:m.StackBasedNavigationManager,webSite:m.HistoryBasedNavigationManager};this.navigationManager=e.navigationManager||new t[this._applicationMode]({keepPositionInStack:"keepHistory"===e.navigateToRootViewMode}),this.navigationManager.on("navigating",this._onNavigating.bind(this)),this.navigationManager.on("navigatingBack",this._onNavigatingBack.bind(this)),this.navigationManager.on("navigated",this._onNavigated.bind(this)),this.navigationManager.on("navigationCanceled",this._onNavigationCanceled.bind(this)),this.stateManager=e.stateManager||new _({storage:e.stateStorage||C()}),this.stateManager.addStateSource(this.navigationManager),this.viewCache=this._createViewCache(e),this.commandMapping=this._createCommandMapping(e.commandMapping),this.createNavigation(e.navigation),this._isNavigating=!1,this._viewLinksHash={},this._removedViewInfos=[],l.registerExecutor(f(this)),this.components.push(this.router),this.components.push(this.navigationManager)},_createViewCache:function(e){var t;return t=e.viewCache?e.viewCache:e.disableViewCache?new y.NullViewCache:new y.CapacityViewCacheDecorator({size:e.viewCacheSize,viewCache:new y}),t.on("viewRemoved",function(e){this._releaseViewLink(e.viewInfo)}.bind(this)),t},_createCommandMapping:function(e){var t=e;return e instanceof x||(t=new x,t.load(x.defaultMapping||{}).load(e||{})),t},createNavigation:function(e){this.navigation=this._createNavigationCommands(e),this._mapNavigationCommands(this.navigation,this.commandMapping)},_createNavigationCommands:function(e){if(!e)return[];var t=0;return u.map(e,function(e){var n;return n=e instanceof v?e:new v(h({root:!0},e)),n.option("id")||n.option("id","navigation_"+t++),n})},_mapNavigationCommands:function(e,t){var n=u.map(e,function(e){return e.option("id")});t.mapCommands("global-navigation",n)},_callComponentMethod:function(e,t){var n=[];return u.each(this.components,function(i,o){if(o[e]&&d.isFunction(o[e])){var a=o[e](t);a&&a.done&&n.push(a)}}),I.apply(o,n)},init:function(){var e=this;return e._initState=D,e._callComponentMethod("init").done(function(){e._initState=T,e._processEvent("initialized")}).fail(function(e){throw e||S.Error("E3022")})},_onNavigatingBack:function(e){this._processEvent("navigatingBack",e)},_onNavigating:function(e){var t=this;if(t._isNavigating)return t._pendingNavigationArgs=e,void(e.cancel=!0);t._isNavigating=!0,delete t._pendingNavigationArgs;var n=this.router.parse(e.uri);if(!n)throw S.Error("E3001",e.uri);var i=this.router.format(n);e.uri!==i&&i?(e.cancel=!0,e.cancelReason="redirect",c.executeAsync(function(){t.navigate(i,e.options)})):t._processEvent("navigating",e)},_onNavigated:function(e){var t,n=this,i=e.options.direction,o=n._acquireViewInfo(e.item,e.options);return o.model||(this._processEvent("beforeViewSetup",{viewInfo:o}),n._createViewModel(o),n._createViewCommands(o),this._processEvent("afterViewSetup",{viewInfo:o})),n._highlightCurrentNavigationCommand(o),t=n._showView(o,i).always(function(){n._isNavigating=!1;var e=n._pendingNavigationArgs;e&&c.executeAsync(function(){n.navigate(e.uri,e.options)})})},_isViewReadyToShow:function(e){return!!e.model},_onNavigationCanceled:function(e){var t=this;if(!t._pendingNavigationArgs||t._pendingNavigationArgs.uri!==e.uri){var n=t.navigationManager.currentItem();n&&c.executeAsync(function(){var i=t._acquireViewInfo(n,e.options);t._highlightCurrentNavigationCommand(i,!0)}),t._isNavigating=!1}},_disposeRemovedViews:function(){var e=this;u.each(e._viewLinksHash,function(t,n){n.linkCount||(e._disposeRemovedView(n.viewInfo),delete e._viewLinksHash[t])}),this._removedViewInfos.forEach(function(t){e._disposeRemovedView(t)}),this._removedViewInfos=[]},_disposeRemovedView:function(e){var t={viewInfo:e};this._processEvent("viewDisposing",t,e.model),this._disposeView(e),this._processEvent("viewDisposed",t,e.model)},_onViewHidden:function(e){var t={viewInfo:e};this._processEvent("viewHidden",t,t.viewInfo.model)},_disposeView:function(e){var t=e.commands||[];u.each(t,function(e,t){t._dispose()})},_acquireViewInfo:function(e,t){var n=this.router.parse(e.uri),i=this._getViewInfoKey(e,n),o=this.viewCache.getView(i);return o?this._updateViewInfo(o,e,t):(o=this._createViewInfo(e,t),this._obtainViewLink(o),this.viewCache.setView(i,o)),o},_getViewInfoKey:function(e,t){var n={key:e.key,navigationItem:e,routeData:t};return this._processEvent("resolveViewCacheKey",n),n.key},_processEvent:function(e,t,n){this._callComponentMethod(e,t),this.fireEvent(e,t&&[t]);var i=(n||{})[e];i&&i.call(n,t)},_updateViewInfo:function(e,t,n){var i=t.uri,o=this.router.parse(i);e.viewName=o.view,e.routeData=o,e.uri=i,e.navigateOptions=n,e.canBack=this.canBack(n.stack),e.previousViewInfo=this._getPreviousViewInfo(n)},_createViewInfo:function(e,t){var n=e.uri,i=this.router.parse(n),o={key:this._getViewInfoKey(e,i)};return this._updateViewInfo(o,e,t),o},_createViewModel:function(e){e.model=e.model||this._callViewCodeBehind(e)},_createViewCommands:function(e){e.commands=e.model.commands||[],e.canBack&&"webSite"!==this._applicationMode&&this._appendBackCommand(e)},_callViewCodeBehind:function(e){var t=c.noop,n=e.routeData;return n.view in this.namespace&&(t=this.namespace[n.view]),t.call(this.namespace,n,e)||{}},_appendBackCommand:function(e){var t=e.commands,n=this,o=i;n._options.useViewTitleAsBackText&&(o=((e.previousViewInfo||{}).model||{}).title||o);var a=[new v({id:"back",title:o,behavior:"back",onExecute:function(){n.back({stack:e.navigateOptions.stack})},icon:"arrowleft",type:"back",renderStage:n._options.useViewTitleAsBackText?"onViewRendering":"onViewShown"})],r=p(a,t);t.length=0,t.push.apply(t,r)},_showView:function(e,t){var n=this,i={viewInfo:e,direction:t,params:e.routeData};return k.processRequestResultLock.obtain(),n._showViewImpl(i.viewInfo,i.direction).done(function(){c.executeAsync(function(){k.processRequestResultLock.release(),n._processEvent("viewShown",i,e.model),n._disposeRemovedViews()})})},_highlightCurrentNavigationCommand:function(e,t){var n,i=this,o=e.model&&e.model.currentNavigationItemId;void 0!==o&&u.each(this.navigation,function(e,t){if(t.option("id")===o)return n=t,!1}),n||u.each(this.navigation,function(e,t){
|
|
26
|
-
var o=t.option("onExecute");if(d.isString(o)&&(o=o.replace(/^#+/,""),o===i.navigationManager.rootUri()))return n=t,!1}),u.each(this.navigation,function(e,i){t&&i===n&&i.option("highlighted")&&i.fireEvent("optionChanged",[{name:"highlighted",value:!0,previousValue:!0}]),i.option("highlighted",i===n)})},_showViewImpl:s,_obtainViewLink:function(e){var t=e.key,n=this._viewLinksHash[t];n?(n.viewInfo!==e&&(this._removedViewInfos.push(n.viewInfo),n.viewInfo=e),this._viewLinksHash[t].linkCount++):this._viewLinksHash[t]={viewInfo:e,linkCount:1}},_releaseViewLink:function(e){void 0===this._viewLinksHash[e.key]&&S.log("W3001",e.key),0===this._viewLinksHash[e.key].linkCount&&S.log("W3002",e.key),this._viewLinksHash[e.key].linkCount--},navigate:function(e,t){var n=this;if(d.isPlainObject(e)&&(e=n.router.format(e),e===!1))throw S.Error("E3002");if(n._initState){if(n._initState!==T)throw S.Error("E3003");n._isNavigating&&!e||n.navigationManager.navigate(e,t)}else n.init().done(function(){n.restoreState(),n.navigate(e,t)})},canBack:function(e){return this.navigationManager.canBack(e)},_getPreviousViewInfo:function(e){var t,n=this.navigationManager.previousItem(e.stack);if(n){var i=this.router.parse(n.uri);t=this.viewCache.getView(this._getViewInfoKey(n,i))}return t},back:function(e){this.navigationManager.back(e)},saveState:function(){this.stateManager.saveState()},restoreState:function(){this.stateManager.restoreState()},clearState:function(){this.stateManager.clearState()}}).include(b);t.Application=E},function(e,t,n){function i(e,t){if(t.args){var n=t.args[0];e.event=n.event}"dxCommand"===(t.component||{}).NAME&&l(e,t.component.option())}function o(e){if(e){var t=a(e.target);t.attr("href")&&e.preventDefault()}}n(43);var a=n(26),r=n(12).getLocation(),s=n(22),l=n(0).extend,c=n(1).isPlainObject,d=n(3).map,u=n(141).Route,h=function(e){return{routing:{execute:function(t){var n,a,r=t.action,s={};c(r)&&(n=r.routeValues,n&&c(n)?s=r.options:n=r,a=e.router.format(n),i(s,t),o(s.event),e.navigate(a,s),t.handled=!0)}},hash:{execute:function(t){if("string"==typeof t.action&&"#"===t.action.charAt(0)){var n=t.action.substr(1),a=t.args[0],r=n,l=function(e){var n=s.compileGetter(e),i=t.args[0].model;return n(i)},c=a.evaluate||l;r=n.replace(/\{([^}]+)\}/g,function(e,t){t=t.trim(),t.indexOf(",")>-1&&(t=d(t.split(","),function(e){return e.trim()}));var n=c(t);return void 0===n&&(n=""),n=u.prototype.formatSegment(n)});var h={};i(h,t),o(h.event),e.navigate(r,h),t.handled=!0}}},url:{execute:function(e){"string"==typeof e.action&&"#"!==e.action.charAt(0)&&(r.href=e.action)}}}};t.createActionExecutors=h},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(19),r=n(6).getWindow(),s=n(173),l="__root__",c="__buffer__",d=o.inherit({ctor:function(e){e=e||{},this._window=e.window||r,this.popState=a(),i(this._window).on("hashchange",this._onHashChange.bind(this)),this._tasks=s.create(),this.canWorkInPureBrowser=!0},replaceState:function(e){var t=this;return this._addTask(function(){e=t._normalizeUri(e),t._window.history.replaceState(null,null,"#"+e),t._currentTask.resolve()})},pushState:function(e){var t=this;return this._addTask(function(){e=t._normalizeUri(e),t._window.history.pushState(null,null,"#"+e),t._currentTask.resolve()})},createRootPage:function(){return this.replaceState(l)},_onHashChange:function(){this._currentTask&&this._currentTask.resolve(),this.popState.fire()},back:function(){var e=this;return this._addTask(function(){e._window.history.back()})},getHash:function(){return this._normalizeUri(this._window.location.hash)},isRootPage:function(){return this.getHash()===l},_normalizeUri:function(e){return(e||"").replace(/^#+/,"")},_addTask:function(e){var t=this,n=i.Deferred();return this._tasks.add(function(){return t._currentTask=n,e(),n}),n.promise()}}),u=d.inherit({ctor:function(){this._innerEventCount=0,this.callBase.apply(this,arguments),this._skipNextEvent=!1},replaceState:function(e){var t=this;return e=t._normalizeUri(e),t.getHash()!==e?(t._addTask(function(){t._skipNextEvent=!0,t._window.history.back()}),t._addTask(function(){t._skipNextEvent=!0,t._window.location.hash=e})):i.Deferred().resolve().promise()},pushState:function(e){var t=this;return e=this._normalizeUri(e),this.getHash()!==e?t._addTask(function(){t._skipNextEvent=!0,t._window.location.hash=e}):i.Deferred().resolve().promise()},createRootPage:function(){return this.pushState(l)},_onHashChange:function(){var e=this._currentTask;this._currentTask=null,this._skipNextEvent?this._skipNextEvent=!1:this.popState.fire(),e&&e.resolve()}}),h=u.inherit({createRootPage:function(){return this.pushState(c),this.callBase()}}),p=d.inherit({ctor:function(e){e=e||{},this._window=e.window||r,this.popState=a(),i(this._window).on("dxback",this._onHashChange.bind(this)),this._currentHash=this._window.location.hash},replaceState:function(e){return this._currentHash=this._normalizeUri(e),i.Deferred().resolve().promise()},pushState:function(e){return this.replaceState(e)},createRootPage:function(){return this.replaceState(l)},getHash:function(){return this._normalizeUri(this._currentHash)},back:function(){return this.replaceState(l)},_onHashChange:function(){var e=this.back();return this.popState.fire(),e}}),f=d.inherit({ctor:function(e){this.callBase(e),this.canWorkInPureBrowser=!1}});t.DefaultBrowserAdapter=d,t.OldBrowserAdapter=u,t.BuggyAndroidBrowserAdapter=h,t.HistorylessBrowserAdapter=p,t.BuggyCordovaWP81BrowserAdapter=f},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(4).noop,r=n(3),s=n(62),l=n(178),c=n(236),d=n(7).when;n(174),n(176);var u=o.inherit({ctor:function(e){e=e||{},this.defaultWidgetAdapter=e.defaultWidgetAdapter||this._getDefaultWidgetAdapter(),this.commandMapping=e.commandMapping||new l},_getDefaultWidgetAdapter:function(){return{addCommand:a,clearContainer:a}},_getContainerAdapter:function(e){var t=e.data("dxComponents"),n=c;if(t)for(var i=0;i<t.length;i++){var o=t[i];if(o in n)return n[o]}return this.defaultWidgetAdapter},findCommands:function(e){var t=e.find(".dx-command").add(e.filter(".dx-command")),n=[].slice.call(t).map(function(e){return i(e).dxCommand("instance")});return n},findCommandContainers:function(e){var t=[].slice.call(e.find(".dx-command-container")).map(function(e){return i(e).dxCommandContainer("instance")});return t},_checkCommandId:function(e,t){if(null===e)throw s.Error("E3010",t.$element().get(0).outerHTML)},renderCommandsToContainers:function(e,t){var n=this,o={},a=[],s=[];return r.each(e,function(e,t){var i=t.option("id");n._checkCommandId(i,t),a.push(i),o[i]=t}),n.commandMapping.checkCommandsExist(a),r.each(t,function(e,t){var i=[];if(r.each(o,function(e,o){var a=e,r=n.commandMapping.getCommandMappingForContainer(a,t.option("id"));r&&i.push({command:o,options:r})}),i.length){var a=n._attachCommandsToContainer(t.element(),i);a&&s.push(a)}}),d.apply(i,s)},clearContainer:function(e){var t=e.element(),n=this._getContainerAdapter(t);n.clearContainer(t)},_arrangeCommandsToContainers:function(e,t){s.log("W0002","CommandManager","_arrangeCommandsToContainers","14.1","Use the 'renderCommandsToContainers' method instead."),this.renderCommandsToContainers(e,t)},_attachCommandsToContainer:function(e,t){var n,i=this._getContainerAdapter(e);return i.beginUpdate&&i.beginUpdate(e),r.each(t,function(t,n){i.addCommand(e,n.command,n.options)}),i.endUpdate&&(n=i.endUpdate(e)),n}});e.exports=u},function(e,t,n){var i=n(10),o=n(0).extend,a=n(11).inArray,r=n(3),s=n(110).utils.commandToContainer,l=n(32),c=n(116),d="dxCommandToWidgetAdapter",u=i.inherit({ctor:function(e,t){this.command=e,this.widgetItem=this._createWidgetItem(e,t)},_createWidgetItem:function(e,t){var n,i=o({},t,e.option()),a=function(t){e.execute(t)};return i.text=s.resolveTextValue(e,t),i.icon=s.resolveIconValue(e,t),i.type=s.resolvePropertyValue(e,t,"type"),i.location=s.resolvePropertyValue(e,t,"location"),i.locateInMenu=s.resolvePropertyValue(e,t,"locateInMenu"),i.showText=s.resolvePropertyValue(e,t,"showText"),n=this._createWidgetItemCore(i,a),n.command=e,n},_createWidgetItemCore:function(e,t){return e},dispose:function(){delete this.command,delete this.widgetItem}}),h=i.inherit({ctor:function(e){this._commandToWidgetItemOptionNames={},this.$widgetElement=e,this.$widgetElement.data(d,this),this.widget=this._getWidgetByElement(e),this._widgetWidgetContentReadyHandler=this._onWidgetContentReady.bind(this),this._widgetWidgetItemRenderedHandler=this._onWidgetItemRendered.bind(this),this._widgetDisposingHandler=this._onWidgetDisposing.bind(this),this.widget.on("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.on("contentReady",this._widgetWidgetContentReadyHandler),this.widget.on("disposing",this._widgetDisposingHandler),this.itemWrappers=[],this._transitionExecutor=new c.TransitionExecutor},addCommand:function(e,t){var n=this._createItemWrapper(e,t);this.itemWrappers.push(n),this._addItemToWidget(n),this._commandChangedHandler=this._onCommandChanged.bind(this),n.command.on("optionChanged",this._commandChangedHandler)},beginUpdate:function(){this.widget.beginUpdate()},endUpdate:function(){return this.widget.endUpdate(),this.animationDeferred},_onWidgetItemRendered:function(e){e.itemData.isJustAdded&&e.itemData.command&&e.itemData.command.option("visible")&&this._commandRenderedAnimation&&this._transitionExecutor.enter(e.itemElement,this._commandRenderedAnimation),delete e.itemData.isJustAdded},_onWidgetContentReady:function(e){this.animationDeferred=this._transitionExecutor.start()},_onWidgetDisposing:function(){this.dispose(!0)},_setWidgetItemOption:function(e,t,n){var i=this.widget.option("items"),o=a(n,r.map(i,function(e){return e.command||{}}));if(o>-1){var s="items["+o+"].";!this._requireWidgetRefresh(e)&&this.widget.option("items["+o+"]").options&&(s+="options."),s+=this._commandToWidgetItemOptionNames[e]||e,this.widget.option(s,t)}},_requireWidgetRefresh:function(e){return"visible"===e||"locateInMenu"===e||"location"===e},_onCommandChanged:function(e){"highlighted"===e.name||e.component.isOptionDeprecated(e.name)||this._setWidgetItemOption(e.name,e.value,e.component)},_addItemToWidget:function(e){var t=this.widget.option("items");t.push(e.widgetItem),this.widget.$element().is(":visible")&&(e.widgetItem.isJustAdded=!0),this.widget.option("items",t)},refresh:function(){var e=this.widget.option("items");this.widget.option("items",e)},clear:function(e){var t=this;r.each(t.itemWrappers,function(e,n){n.command.off("optionChanged",t._commandChangedHandler),n.dispose()}),this.itemWrappers.length=0,e||this._clearWidgetItems()},_clearWidgetItems:function(){this.widget.option("items",[])},dispose:function(e){this.clear(e),this.widget&&(this.widget.off("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.off("contentReady",this._widgetContentReadyHandler),this.widget.off("disposing",this._widgetDisposingHandler),this.$widgetElement.removeData(d),delete this.widget,delete this.$widgetElement)}}),p=i.inherit({ctor:function(e){this.createAdapter=e},_getWidgetAdapter:function(e){var t=e.data(d);return t||(t=this.createAdapter(e)),t},addCommand:function(e,t,n){var i=this._getWidgetAdapter(e);i.addCommand(t,n)},clearContainer:function(e){var t=this._getWidgetAdapter(e);t.clear()},beginUpdate:function(e){var t=this._getWidgetAdapter(e);t.beginUpdate()},endUpdate:function(e){var t=this._getWidgetAdapter(e);return t.endUpdate()}}),f=u.inherit({_createWidgetItemCore:function(e,t){var n;return e.onClick=t,"menu"===e.location||"always"===e.locateInMenu?(n=e,n.isAction=!0):(n={locateInMenu:e.locateInMenu,location:e.location,visible:e.visible,options:e,widget:"dxButton"},"inMenu"===e.showText&&(n.showText=e.showText),e.visible=!0,delete e.location),n}}),g=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},"topToolbar"===this.widget.option("renderAs")?this._commandRenderedAnimation="command-rendered-top":this._commandRenderedAnimation="command-rendered-bottom"},_getWidgetByElement:function(e){return e.dxToolbar("instance")},_createItemWrapper:function(e,t){return new f(e,t)},addCommand:function(e,t){this.widget.option("visible",!0),this.callBase(e,t)}}),m=u.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e.onClick=t,e}}),_=h.inherit({_createItemWrapper:function(e,t){return new m(e,t)},_getWidgetByElement:function(e){return e.dxList("instance")}}),v=u.inherit({}),w=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onNavBarItemClick.bind(this))},_onNavBarItemClick:function(e){for(var t=this.widget.option("items"),n=t.length;--n;)t[n].command.option("highlighted",!1);e.itemData.command.execute(e)},_getWidgetByElement:function(e){return e.dxNavBar("instance")},_createItemWrapper:function(e,t){return new v(e,t)},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)},_updateSelectedIndex:function(){for(var e=this.widget.option("items"),t=0,n=e.length;t<n;t++){var i=e[t].command;if(i&&i.option("highlighted")){this.widget.option("selectedIndex",t);break}}}}),x=u.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e}}),y=h.inherit({ctor:function(e){this.callBase(e),this.widget.option("onSelectionChanged",this._onPivotSelectionChange.bind(this))},_onPivotSelectionChange:function(e){e.addedItems.length&&e.removedItems.length&&e.addedItems[0]&&e.addedItems[0].command&&e.addedItems[0].command.execute(e)},_getWidgetByElement:function(e){return e.dxPivot("instance")},_createItemWrapper:function(e,t){return new x(e,t)},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"visible"===t?this._reRenderPivot():"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)},_addItemToWidget:function(e){e.command.option("visible")&&this.callBase(e)},_updateSelectedIndex:function(){var e=this.widget,t=e.option("items")||[];l.off=!0;for(var n=0,i=t.length;n<i;n++){var o=t[n].command;if(o&&o.option("highlighted")){e.option("selectedIndex",n);break}}l.off=!1},_reRenderPivot:function(){var e=this;e.widget.option("items",[]),r.each(e.itemWrappers,function(t,n){n.command.option("visible")&&e._addItemToWidget(n)}),e.refresh(),e._updateSelectedIndex()}}),b=u.inherit({}),C=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onSlideOutItemClick.bind(this))},_onSlideOutItemClick:function(e){e.itemData.command.execute(e)},_getWidgetByElement:function(e){return e.dxSlideOut("instance")},_createItemWrapper:function(e,t){return new b(e,t)},_updateSelectedIndex:function(){for(var e=this.widget.option("items")||[],t=0,n=e.length;t<n;t++){var i=e[t].command;if(i&&i.option("highlighted")){this.widget.option("selectedIndex",t);break}}},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)}});t.dxToolbar=new p(function(e){return new g(e)}),t.dxList=new p(function(e){return new _(e)}),t.dxNavBar=new p(function(e){return new w(e)}),t.dxPivot=new p(function(e){return new y(e)}),t.dxSlideOut=new p(function(e){return new C(e)})},function(e,t,n){n(43);var i=n(26),o=n(120),a=n(6).getWindow(),r=n(10),s=n(19),l=n(4),c=n(3).each,d=n(11).inArray,u=n(62),h=n(13),p=n(7).when,f=n(72),g="dxView",m="dxLayout",_="MarkupTemplate:";n(63);var v=r.inherit({ctor:function(e){e=e||{},this.$root=e.$root,this.device=e.device||{},this.dataOptionsAttributeName=e.dataOptionsAttributeName||"data-options",this._templateMap={},this._pendingViewContainer=null,this.markupLoaded=s(),this._templateContext=e.templateContext,this._$skippedMarkup=i(),void 0!==e.templatesVersion&&e.templateCacheStorage&&this._isReleaseVersion()&&(this._templateCacheEnabled=!0,this._templatesVersion="v_"+e.templatesVersion,this._templateCacheStorage=e.templateCacheStorage,this._templateCacheKey="dxTemplateCache_"+o+"_"+JSON.stringify(this.device))},_isReleaseVersion:function(){return!/http:\/\/localhost/.test(a.location.href)},_enumerateTemplates:function(e){var t=this;c(t._templateMap,function(t,n){c(n,function(t,n){c(n,function(t,n){e(n)})})})},_findComponent:function(e,t){var n=(this._templateMap[e]||{})[t]||[],i=this._templateContext&&this._templateContext.option()||{};return n=this._filterTemplates(i,n),this._checkMatchedTemplates(n),n[0]},_findTemplate:function(e,t){var n=this._findComponent(e,t);if(!n)throw this._clearCache(),u.Error("E3013",t,e);var i,o=n.element();return n._isStaticComponentsCreated||(h.createComponents(o,["dxContent","dxContentPlaceholder","dxTransition"]),n._isStaticComponentsCreated=!0),i=o.clone().removeClass("dx-hidden")},_clearCache:function(){this._templateCacheEnabled&&this._templateCacheStorage.removeItem(this._templateCacheKey)},_loadTemplatesFromMarkupCore:function(e){var t=this;if(e.find("[data-dx-role]").length)throw u.Error("E3019");t.markupLoaded.fire({markup:e});var n=h.createComponents(e,[g,m]);c(n,function(e,n){var i=n.element();i.addClass("dx-hidden"),t._registerTemplateComponent(n),n.element().detach()});var i=e.filter("script");i.appendTo(t.$root),t._$skippedMarkup=t._$skippedMarkup.add(i)},_registerTemplateComponent:function(e){var t=e.NAME,n=e.option(),i=n.name,o=this._templateMap[i]||{};o[t]=o[t]||[],o[t].push(e),this._templateMap[i]=o},_applyPartialViews:function(e){var t=this;h.createComponents(e,["dxViewPlaceholder"]),c(e.find(".dx-view-placeholder"),function(){var e=i(this);if(!e.children().length){var n=e.data("dxViewPlaceholder").option("viewName"),o=t._findTemplate(n,g);t._applyPartialViews(o),e.append(o),o.removeClass("dx-hidden")}})},_ajaxImpl:function(){return f.sendRequest.apply(i,arguments)},_loadTemplatesFromURL:function(e){var t=this,n=this._getWinPhonePrefix(),o=i.Deferred();return e=n+e,this._ajaxImpl({url:e,dataType:"html"}).done(function(e){t._loadTemplatesFromMarkupCore(h.createMarkupFromString(e)),o.resolve()}).fail(function(t,n,i){var a=u.Error("E3021",e,i);o.reject(a)}),o.promise()},_getWinPhonePrefix:function(){return a.location.protocol.indexOf("wmapp")>=0?a.location.protocol+"www/":""},_loadExternalTemplates:function(){var e=[],t=this;return i("head").find("link[rel='dx-template']").each(function(n,o){var a=t._loadTemplatesFromURL(i(o).attr("href"));e.push(a)}),p.apply(i,e)},_processTemplates:function(){var e=this;c(e._templateMap,function(t,n){c(n,function(t,n){e._filterTemplatesByDevice(n)})}),e._enumerateTemplates(function(t){e._applyPartialViews(t.element())})},_filterTemplatesByDevice:function(e){var t=this._filterTemplates(this.device,e);c(e,function(e,n){d(n,t)<0&&n.element().remove()}),e.length=0,e.push.apply(e,t)},_filterTemplates:function(e,t){return l.findBestMatches(e,t,function(e){return e.option()})},_checkMatchedTemplates:function(e){if(e.length>1){var t="";throw c(e,function(e,n){t+=n.element().attr("data-options")+"\r\n"}),u.Error("E3020",t,JSON.stringify(this.device))}},_wrapViewDefaultContent:function(e){e.wrapInner('<div class="dx-full-height"></div>'),e.children().eq(0).dxContent({targetPlaceholder:"content"})},_initDefaultLayout:function(){this._$defaultLayoutTemplate=i('<div class="dx-full-height" data-options="dxLayout : { name: \'default\' } "> \n <div class="dx-full-height" data-options="dxContentPlaceholder : { name: \'content\' } " ></div> \n</div>'),h.createComponents(this._$defaultLayoutTemplate)},_getDefaultLayoutTemplate:function(){return this._$defaultLayoutTemplate.clone()},applyLayout:function(e,t){void 0!==t&&0!==t.length||(t=this._getDefaultLayoutTemplate()),0===e.children(".dx-content").length&&this._wrapViewDefaultContent(e);var n=i().add(t).add(e),o=n.find(".dx-content");c(o,function(){var e=i(this),t=e.attr("data-dx-target-placeholder-id"),o=n.find(".dx-content-placeholder-"+t);o.empty(),o.append(e)});for(var a=o.length;a>=0;a--){var r=o.eq(a);r.is(".dx-content-placeholder .dx-content")||r.remove()}return t},_loadTemplatesFromCache:function(){if(this._templateCacheEnabled){var e,t=function(e,t){if("string"==typeof t&&0===t.indexOf(_)){var n=JSON.parse(t.substr(_.length)),o=n.type,a=n.options,r=h.createMarkupFromString(n.markup);return a.fromCache=!0,r[o](a)[o]("instance")}return"skippedMarkup"===e?i("<div>").append(h.createMarkupFromString(t)).contents():t},n=this._templateCacheStorage.getItem(this._templateCacheKey);if(n)try{var o=JSON.parse(n,t);e=o[this._templatesVersion]}catch(e){this._clearCache()}if(e)return this._templateMap=e.templates,this.$root.append(e.skippedMarkup),!0}},_putTemplatesToCache:function(){if(this._templateCacheEnabled){var e=function(e,t){return t&&t.element?_+JSON.stringify({markup:t.element().prop("outerHTML"),options:t.option(),type:t.NAME}):"skippedMarkup"===e?i("<div>").append(t.clone()).html():t},t={};t[this._templatesVersion]={templates:this._templateMap,skippedMarkup:this._$skippedMarkup},this._templateCacheStorage.setItem(this._templateCacheKey,JSON.stringify(t,e,4))}},init:function(){var e=this;return this._initDefaultLayout(),this._loadTemplatesFromCache()?i.Deferred().resolve().promise():(e._loadTemplatesFromMarkupCore(e.$root.children()),this._loadExternalTemplates().done(function(){e._processTemplates(),e._putTemplatesToCache()}))},getViewTemplate:function(e){return this._findTemplate(e,g)},getViewTemplateInfo:function(e){return this._findComponent(e,g)},getLayoutTemplate:function(e){return e?this._findTemplate(e,m):this._getDefaultLayoutTemplate()},getLayoutTemplateInfo:function(e){return this._findComponent(e,m)},loadTemplates:function(e){var t;return"string"==typeof e?t=this._loadTemplatesFromURL(e):(this._loadTemplatesFromMarkupCore(e),t=i.Deferred().resolve().promise()),t.done(this._processTemplates.bind(this))}});t.ViewEngine=v},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(42),o=n(4),a=n(1),r=o.getKeyHash,s=n(10),l=n(7).Deferred;e.exports=s.inherit({ctor:function(e){this.options=e,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function e(){var t=this.options.addedItemKeys,n=this.options.removedItemKeys,i=this.options.addedItems,a=this.options.removedItems,r=this.options.selectedItems,s=this.options.selectedItemKeys,e=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),e({selectedItems:r,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:n,addedItems:i,removedItems:a})},equalKeys:function(e,t){return this.options.equalByReference&&a.isObject(e)&&a.isObject(t)?e===t:o.equalByValue(e,t)},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n){var o=encodeURI(JSON.stringify(e)).length,r=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,s=new l,c={filter:r?void 0:e,select:r?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?s.resolve([]):this.options.load(c).done(function(n){var o=a.isPlainObject(n)?n.data:n;t?o=o.filter(t):r&&(o=i(o).filter(e).toArray()),s.resolve(o)}).fail(s.reject.bind(s)),s},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var n=r(e[t]);if(!a.isObject(n)){this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[];var i=this.options.keyHashIndices[n];i.push(t)}}},_isAnyItemSelected:function(e){for(var t=0;t<e.length;t++)if(this.options.isItemSelected(e[t]))return;return!1},_getFullSelectAllState:function(){var e=this.options.plainItems(),t=this.options.filter(),n=this.options.selectedItems;t&&(n=i(n).filter(t).toArray());var o=n.length;return o?o>=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i<e.length;i++){var o=e[i],a=this.options.getItemData(o),r=this.options.keyOf(a);this.options.isSelectableItem(o)&&(this.isItemKeySelected(r)?t=!0:n=!0)}return!!t&&(!n||void 0)}})},function(e,t,n){var i=n(202),o=i.data=n(241);o.odata=n(363),e.exports=o},function(e,t,n){var i=n(119);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(36).errorHandler},set:function(e){n(36).errorHandler=e}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(36)._errorHandler},set:function(e){n(36)._errorHandler=e}}),i.data.DataSource=n(360),i.data.query=n(42),i.data.Store=n(91),i.data.ArrayStore=n(79),i.data.CustomStore=n(158),i.data.LocalStore=n(361),i.data.base64_encode=n(41).base64_encode,i.data.Guid=n(50),i.data.utils={},i.data.utils.compileGetter=n(22).compileGetter,i.data.utils.compileSetter=n(22).compileSetter,i.EndpointSelector=n(362),i.data.queryImpl=n(42).queryImpl,i.data.queryAdapters=n(181);var o=n(41);i.data.utils.normalizeBinaryCriterion=o.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=o.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=o.errorMessageFromXhr,i.data.utils.aggregators=o.aggregators,i.data.utils.keysEqual=o.keysEqual,i.data.utils.isDisjunctiveOperator=o.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=o.isConjunctiveOperator,i.data.utils.processRequestResultLock=o.processRequestResultLock,i.data.utils.toComparable=n(22).toComparable,i.data.utils.multiLevelGroup=n(80).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(80).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(52).normalizeDataSourceOptions},function(e,t,n){var i=n(3).each,o=n(12),a=n(6).getWindow(),r=n(68),s="dxproxy.devexpress.com:8000",l={},c=r(function(){var e=o.createElement("a"),t=["protocol","hostname","port","pathname","search","hash"],n=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e};return function(o){e.href=o;var a={};return i(t,function(){a[this]=e[this]}),a.pathname=n(a.pathname),a}}),d=function(e){var t=c();return t(e)},u=function(){return a.location.pathname.split("/")[1]};e.exports={parseUrl:d,isProxyUsed:function(){return a.location.host===s},formatProxyUrl:function(e){var t=d(e);if(!/^(localhost$|127\.)/i.test(t.hostname))return e;var n=s+"/"+u()+"_"+t.port;l[n]=t.hostname+":"+t.port;var i="http://"+n+t.pathname+t.search;return i},formatLocalUrl:function(e){if(e.indexOf(s)<0)return e;var t=e;for(var n in l)if(l.hasOwnProperty(n)&&e.indexOf(n)>=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function o(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&l.log("W4001",o):n[o]=t[o];return n}var a=n(1).isDefined,r=n(97),s=n(242),l=n(36).errors,c=n(42),d=n(91),u=n(244),h=n(7),p=h.when,f=h.Deferred;n(145);var g="5d46402c-7899-4ea9-bd81-8b73c47c7683",m=d.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,a=e.keyType;if(a){var r="string"==typeof a;t||(t=r?g:Object.keys(a),this._legacyAnonymousKey=t),r&&(a=i(t,a)),n=o(n,a)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&t.expand&&(n.$expand=r.generateExpand(this._version,t.expand)),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n;if(e=e||{},n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes},t=a(e.urlOverride)?e.urlOverride:this._url,e.customQueryParams){var i=u.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=u.formatFunctionInvocationUrl(t,i):n.params=i}return c(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=new f;return p(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new f;return p(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(){n.resolve(e,t)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new f;return p(this._sendRequest(this._byKeyUrl(e),"DELETE")).done(function(){t.resolve(e)}).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var o=0;o<i.length;o++){var a=i[o];t[a]=r.convertPrimitiveValue(n[a],e[a])}}else n[i]&&(t=r.convertPrimitiveValue(n[i],e));return t},_byKeyUrl:function(e,t){var n=t?s.formatLocalUrl(this._url):this._url,i=this._convertKey(e);return n+"("+encodeURIComponent(r.serializeKey(i,this._version))+")"}},"odata").include(u.SharedMethods);e.exports=m},function(e,t,n){var i=n(39),o=n(3),a=n(97);n(145);var r=2,s=function(e,t){return i.format("{0}({1})",e,o.map(t||{},function(e,t){return i.format("{0}={1}",t,e)}).join(","))},l=function(e,t){if(!e)return e;var n={};return o.each(e,function(e,i){n[e]=a.serializeValue(i,t)}),n},c={_extractServiceOptions:function(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||r,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates},_sendRequest:function(e,t,n,i){return a.sendRequest(this.version(),{url:e,method:t,params:n||{},payload:i},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})},version:function(){return this._version}};t.SharedMethods=c,t.escapeServiceOperationParams=l,t.formatFunctionInvocationUrl=s},function(e,t,n){e.exports=n(479)},function(e,t,n){var i=n(371);e.exports={extend:function(e){i=i.inherit(e)},create:function(e){return new i(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.format||Ae[e.dataType];return pe.default.format(t,n)}function a(e){return e&&e.length>1&&"!"===e[0]&&!T(e)}function r(e){return a(e)?e[1]:e}function s(e,t){return a(e)?e[1]=t:e=t,e}function l(e,t){var n=function(e){return e.indexOf("!")!==-1},i=function(e){var t=e.slice(0);e.length=0,e.push("!",t)},o=function(e){var t=r(e);e.length=0,[].push.apply(e,t)};n(t)?a(e)||i(e):a(e)&&o(e)}function c(e,t){l(e,t);var n,i=r(e),o=function(e){return e.indexOf("!")===-1?e:e.substring(1)},a=function(e,t){for(n=0;n<e.length;n++)Array.isArray(e[n])||(e[n]=t)};return t=o(t),a(i,t),e}function d(e,t){var n=h(e);return t.filter(function(e){return e.value===n})[0]}function u(e){if(T(e))return Ie;for(var t="",n=0;n<e.length;n++){var i=e[n];if(!Array.isArray(i)){if(t&&t!==i)throw new re.errors.Error("E4019");t=i}}return t}function h(e){var t=r(e),n=u(t);return n||(n=Ie),t!==e&&(n="!"+n),n}function p(e){return e.lookup&&Be||Ee[e.dataType||ke]}function f(e){return Array.isArray(e)&&e.length}function g(e){var t=f(e.filterOperations)?e.filterOperations:p(e);return(0,fe.extend)([],t)}function m(e,t){var n=Ce.default.getNameByFilterOperation(e);return t&&t[n]?t[n]:n}function _(e,t){for(var n=0;n<t.length;n++)if(t[n].value===e)return t[n];throw new ce.default.Error("E1048",e)}function v(e,t){var n=e.filter(function(e){return e.name===t});return n.length?n[0]:null}function w(e,t,n){var i=g(e);return n.forEach(function(t){if(!e.filterOperations&&i.indexOf(t.name)===-1){var n=t&&t.dataTypes;n&&n.indexOf(e.dataType||ke)>=0&&i.push(t.name)}}),i.map(function(e){var i=v(n,e);return i?{icon:i.icon||Se,text:i.caption||me.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:Ce.default.getIconByFilterOperation(e)||Se,text:m(e,t),value:e}})}function x(e){return e.defaultFilterOperation||g(e)[0]}function y(e,t){var n=[e.dataField,"",""],i=x(e);return Y(n,i,t),n}function b(e,t){var n=r(e),i=n.indexOf(t);return n.splice(i,1),
|
|
27
|
-
1!==n.length&&n.splice(i,1),e}function C(e){return e.indexOf("not")!==-1?["!",[e.substring(3).toLowerCase()]]:[e]}function k(e){var t=r(e);if(T(t))return!1;var n=t.some(function(e){return T(e)});return!n}function S(e,t){var n=r(t),i=h(n);return 1===n.length?n.unshift(e):n.push(e,i),t}function I(e,t){for(var n=0;n<t.length;n++)if(t[n].dataField.toLowerCase()===e.toLowerCase())return t[n];var i=G(t,!0).filter(function(t){return t.dataField.toLowerCase()===e.toLowerCase()});if(i.length>0)return i[0];throw new ce.default.Error("E1047",e)}function D(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function T(e){return!!Array.isArray(e)&&(e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1]))}function E(e,t){for(var n=u(e).toLowerCase()||Ie,i=[],o=0;o<e.length;o++)D(e[o])?(i.push(O(e[o],t)),i.push(n)):T(e[o])&&(i.push(B(e[o],t)),i.push(n));return 0===i.length&&i.push(n),i}function A(e,t){var n=v(t,e[1]);return n&&n.name===e[1]}function B(e,t){return A(e,t)?e:(e.length<3&&(e[2]=e[1],e[1]=De),e)}function O(e,t){return e?(e=(0,fe.extend)(!0,[],e),T(e)?[B(e,t),Ie]:a(e)?["!",T(e[1])?[B(e[1],t),Ie]:E(e[1],t)]:E(e,t)):[Ie]}function R(e){return e.reduce(function(e,t){if((0,se.isDefined)(t.dataField)){var n={};for(var i in t)t[i]&&Oe.indexOf(i)>-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=ue.default.defaultCalculateFilterExpression,(0,se.isDefined)(n.dataType)||(n.dataType=ke),e.push(n)}return e},[])}function M(e,t,n,i){var o=I(e[0],t),a=B(e,n),r=n.length&&v(n,a[1]);return r&&r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[a[2],o,i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function P(e,t,n,i){if(null===e)return null;var o=r(e),s=[];if(T(o))s=M(o,t,n,i)||null;else{for(var l,c=h(o),d=0;d<o.length;d++)D(o[d])?(l=P(o[d],t,n,i),l&&(d&&s.push(c),s.push(l))):T(o[d])&&(l=M(o[d],t,n,i),l&&(d&&s.push(c),s.push(l)));s=s.length?s:null}return s&&a(e)?["!",s]:s}function V(e){var t,n=r(e);if(0===n.length)return null;var i=[];for(t=0;t<n.length;t++)if(D(n[t])){var o=V(n[t]);o?n[t]=o:i.push(n[t])}else T(n[t])&&(Z(n[t])||i.push(n[t]));for(t=0;t<i.length;t++)b(n,i[t]);return 1===n.length?null:(n.splice(n.length-1,1),1===n.length&&(e=s(e,n[0])),0===e.length?null:e)}function F(e,t,n){if(""===t)return void n("");var i=new ye.DataSource(e.lookup.dataSource);i.loadSingle(e.lookup.valueExpr,t).done(function(t){n(t?e.lookup.displayExpr?t[e.lookup.displayExpr]:t:"")}).fail(function(){n("")})}function H(e,t,n,i){var a;return a=t===!0?e.trueText||xe.default.format("dxDataGrid-trueText"):t===!1?e.falseText||xe.default.format("dxDataGrid-falseText"):o(e,t),e.customizeText&&(a=e.customizeText.call(e,{value:t,valueText:a,target:i})),n&&n.customizeText&&(a=n.customizeText.call(n,{value:t,valueText:a,field:e,target:i})),a}function $(e,t,n,i){return t.map(function(t){return H(e,t,n,i)})}function L(e){return""===e||null===e}function z(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(L(t))return"";if(Array.isArray(t)){var o=new ae.Deferred;return ae.when.apply(this,$(e,t,n,i)).done(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.some(function(e){return!L(e)})?t.map(function(e){return L(e)?"?":e}):"";o.resolve(i)}),o}return H(e,t,n,i)}function N(e,t){return e.some(function(e){return e.dataField===t})}function W(e,t,n){var i=n.dataField;K(i)&&(n.parentId=j(i),N(t,n.parentId)||N(e,n.parentId)||W(e,t,{dataType:"object",dataField:n.parentId,caption:q(n.parentId,!0),filterOperations:["isblank","isnotblank"]})),t.push(n)}function q(e,t){var n="";if(t)e=e.substring(e.lastIndexOf(".")+1);else if(K(e))return e.split(".").forEach(function(e,t,i){n+=me.default.captionize(e),t!==i.length-1&&(n+=".")}),n;return me.default.captionize(e)}function G(e,t){for(var n=[],i=0;i<e.length;i++){var o=(0,fe.extend)(!0,{caption:q(e[i].dataField,t)},e[i]);t?W(e,n,o):n.push(o)}return n}function K(e){return e.lastIndexOf(".")!==-1}function j(e){return e.substring(0,e.lastIndexOf("."))}function U(e,t){if(K(e.dataField))for(var n=j(e.dataField),i=0;i<t.length;i++)if(t[i].dataField===n)return U(t[i],t)+"."+e.caption;return e.caption}function Y(e,t,n){var i=v(n,t);return i?(i.hasValue===!1?(e[1]=t,e.length=2):(e[1]=t,e[2]=""),e):("isblank"===t?(e[1]=De,e[2]=null):"isnotblank"===t?(e[1]=Te,e[2]=null):(i=v(n,e[1]),(i||2===e.length||null===e[2])&&(e[2]=""),e[1]=t),e)}function X(e){var t;return t=null===e[2]?e[1]===De?"isblank":"isnotblank":e[1]}function Z(e){return""!==e[2]}function J(e,t){var n=(0,fe.extend)(!0,[],e),i=-1;return n.some(function(e,t){if("between"===e.name)return i=t,!0}),i!==-1?n[i]=(0,fe.extend)(ve.default.getConfig(t),n[i]):n.unshift(ve.default.getConfig(t)),n}function Q(e,t){return e[0]===t}function ee(e,t){if(!e||0===e.length)return null;if(T(e)){var n=Q(e,t);return n?null:e}return te(e,[t],!1)}function te(e,t,n){var i=[];return e.forEach(function(e){T(e)?Q(e,t[0])?n?(i.push(t),n=!1):i.splice(i.length-1,1):i.push(e):(i.length||D(e))&&i.push(e)}),0===i.length?null:(n&&(i.push(Ie),i.push(t)),1===i.length?i[0]:i)}function ne(e,t){if(null===e||0===e.length)return t;if(T(e))return Q(e,t[0])?t:[e,Ie,t];var n=h(e);return n!==Ie?[t,"and",e]:te(e,t,!0)}function ie(e,t){if(null===e||0===e.length)return[];if(T(e))return Q(e,t)?[e]:[];var n=h(e);if(n!==Ie)return[];var i=e.filter(function(e){return T(e)&&Q(e,t)});return i}function oe(e,t){return null!==e&&0!==e.length&&(T(e)?e[0]===t:e.some(function(e){return(T(e)||D(e))&&oe(e,t)}))}var ae=n(7),re=n(36),se=n(1),le=n(21),ce=i(le),de=n(196),ue=i(de),he=n(88),pe=i(he),fe=n(0),ge=n(37),me=i(ge),_e=n(560),ve=i(_e),we=n(15),xe=i(we),ye=n(52),be=n(561),Ce=i(be),ke="string",Se="icon-none",Ie="and",De="=",Te="<>",Ee={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],"boolean":["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Ae={date:"shortDate",datetime:"shortDateShortTime"},Be=["=","<>","isblank","isnotblank"],Oe=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression"];t.isValidCondition=Z,t.isEmptyGroup=k,t.getOperationFromAvailable=_,t.updateConditionByOperation=Y,t.getCaptionWithParents=U,t.getItems=G,t.setGroupValue=c,t.getGroupMenuItem=d,t.getGroupValue=h,t.getAvailableOperations=w,t.removeItem=b,t.createCondition=y,t.createEmptyGroup=C,t.addItem=S,t.getField=I,t.isGroup=D,t.isCondition=T,t.getNormalizedFields=R,t.getNormalizedFilter=V,t.getGroupCriteria=r,t.convertToInnerStructure=O,t.getDefaultOperation=x,t.getCurrentValueText=z,t.getCurrentLookupValueText=F,t.getFilterOperations=g,t.getCaptionByOperation=m,t.getOperationValue=X,t.getFilterExpression=P,t.getCustomOperation=v,t.getMergedOperations=J,t.syncFilters=ne,t.getMatchedConditions=ie,t.filterHasField=oe,t.removeFieldConditionsFromFilter=ee},function(e,t,n){function i(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return u.isString(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",b.titleize(t)+n}function o(e,t){var n=e._initProperties||{};f.each(t,function(t,i){n.hasOwnProperty(i)&&(e[i]=n[i])})}function a(e,t){o(e,t),g(e.caption)||V(e,"caption",i(e))}function r(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}function s(e){return e.some(function(e){return!!e.runningTotal})}var l=n(52),c=n(91),d=n(4),u=n(1),h=n(0).extend,p=n(11).inArray,f=n(3),g=u.isDefined,m=f.each,_=n(7),v=_.when,w=_.Deferred,x=n(10),y=n(53),b=n(37),C=n(11).normalizeIndexes,k=n(611),S=n(612),I=n(411),D=n(613),T=n(94),E=T.foreachTree,A=T.foreachTreeAsync,B=T.findField,O=T.formatValue,R=T.getCompareFunction,M=T.createPath,P=T.foreachDataLevel,V=T.setFieldProperty,F={row:"rows",column:"columns",data:"values",filter:"filters"},H=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],$=["format","selector","customizeText","caption"],L=$.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=x.inherit(function(){function e(e,t){var n=e.remoteOperations?S:k.LocalStore;return new n(h(l.normalizeDataSourceOptions(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function t(t,n){var i,o;return u.isPlainObject(t)&&t.load?i=e(t,n):(t&&!t.store&&(t={store:t}),o=t.store,"xmla"===o.type?i=new I.XmlaStore(o):u.isPlainObject(o)&&o.type||o instanceof c||Array.isArray(o)?i=e(t,n):o instanceof x&&(i=o)),i}function n(e,t,n){for(var i=0;i<n;i++)if(!e[i]||!t[i]||e[i].index!==t[i].index)return!1;return!0}function i(e,t,i,o){var a=[],r=t&&t[i]||[],s=o&&o[i]||[];return E(e[i],function(e){var t=e[0],i=M(e);t.children&&r[i.length-1]&&!r[i.length-1].expanded&&i.length<r.length&&(!o||n(r,s,i.length))&&a.push(i.slice())},!0),a}function _(e,t,n,i){return t?m(i,function(i,o){if(n)e[o]=t[o];else{if(("summaryType"===o||"summaryDisplayMode"===o)&&void 0===t[o])return;V(e,o,t[o])}}):o(e,i),e}function y(e,t){var n=[];return m(e,function(e,i){n.push(_({dataField:i.dataField,name:i.name},i,!0,t))}),n}function b(e){return e.name?e.name:e.dataField+""}function z(e,t){var n=[];return m(e||[],function(e,i){b(i)===t&&n.push(i)}),n}function N(e,t){return e=e||[],m(t,function(t,n){_(n,e[t],!1,H),a(n,$)}),t}function W(e,t){e=e||[];var n,i={};return m(t,function(e,o){n=b(o),i[n]||(i[n]=z(t,b(o)))}),m(i,function(t,n){N(z(e,t),n)}),t}function q(e,t){return e.filter(function(e){return e.groupName===t.groupName&&u.isNumeric(e.groupIndex)&&e.visible!==!1}).map(function(e){return h(e,{areaIndex:t.areaIndex,area:t.area,expanded:g(e.expanded)?e.expanded:t.expanded,dataField:e.dataField||t.dataField,dataType:e.dataType||t.dataType,sortBy:e.sortBy||t.sortBy,sortOrder:e.sortOrder||t.sortOrder,sortBySummaryField:e.sortBySummaryField||t.sortBySummaryField,sortBySummaryPath:e.sortBySummaryPath||t.sortBySummaryPath,visible:e.visible||t.visible,showTotals:g(e.showTotals)?e.showTotals:t.showTotals,showGrandTotals:g(e.showGrandTotals)?e.showGrandTotals:t.showGrandTotals})}).sort(function(e,t){return e.groupIndex-t.groupIndex})}function G(e){e.sort(function(e,t){return e.areaIndex-t.areaIndex||e.groupIndex-t.groupIndex})}function K(e,t){var n="data"===t||e.visible!==!1;return e.area===t&&!g(e.groupIndex)&&n}function j(e,t){var n=e.groupName||"";return(e.dataField||n)+(e.groupInterval?n+e.groupInterval:"NOGROUP")+(t?"":n)}function U(e,t,n){var i=[],a={},r={},s=[],l=T.getFieldsDataType(e);return t?(m(t,function(e,t){a[j(t,n)]=t}),m(e,function(e,t){var s,c=j(t,n),d=a[c]||r[c];d?(d._initProperties&&o(d,L),s=h({},d,t,{_initProperties:null})):a[c]=s=t,h(s,{dataType:l[t.dataField]}),delete a[c],r[c]=d,i.push(s)}),n&&m(a,function(e,t){i.push(t)})):i=e,i.push.apply(i,s),i}function Y(e){var t,n=new w,i=e._store,o=i&&i.getFields(e._fields);return v(o).done(function(i){e._storeFields=i,t=U(e._fields,i,e._retrieveFields),n.resolve(t)}).fail(n.reject),n}function X(e,t){var n=null,i=(t||[]).join(".");return i.length&&E(e,function(e){var t=e[0],o=M(e).join("."),a=f.map(e,function(e){return e.text}).reverse().join(".");if(i===o||t.key&&a===i)return n=e[0].index,!1}),n}function Z(e,t,n,i){var o=t.values,a=B(n.values,e.sortBySummaryField),r="rows"===i,s=r?t.columns:t.rows,l=r?t.grandTotalRowIndex:t.grandTotalColumnIndex,c=e.sortBySummaryPath||[],d=c.length?X(s,c):l;if(o&&o.length&&a>=0&&g(d))return function(e){var t=r?e.index:d,n=r?d:e.index,i=((o[t]||[[]])[n]||[])[a];return g(i)?i:null}}function J(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}function Q(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=J(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:R(function(e){return e[r]}),l=!o&&Z(e,t,n,i),c=l&&R(l),d=function(e,t){var n=c&&c(e,t)||s(e,t);return"desc"===a?-n:n};return d}function ee(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];P(e[n],function(a,s){var l=o[s]||{},c=r[s]=r[s]||Q(l,e,t,n,i);a.sort(c)},a)}function te(e,t,n){ee(t,e,"rows",n),ee(t,e,"columns",n)}function ne(e,t,n){return A(e[n],function(e){var i=e[0];i.text=i.text||O(i.value,t[n][M(e).length-1])})}function ie(e,t){return v(ne(t,e,"columns"),ne(t,e,"rows"))}function oe(e){var t=new w,n={};return v(A(e,function(e){var t=M(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function ae(e,t){var n=[];return m(e,function(){K(this,t)&&n.push(this)}),n}var re=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},se=function e(t,n){var i,o,a=-1;if(t)for(i=0;i<t.length;i++)o=t[i],a=Math.max(a,o.index),o.children?a=Math.max(a,e(o.children)):o.collapsedChildren&&(a=Math.max(a,e(o.collapsedChildren)));return g(n)&&(a=Math.max(a,n)),a},le=function(e,t,n,i){var o,a=se(n)+1,r=se(e,i)+1,s=[],l=new w;for(o=0;o<a;o++)s[o]=r++;return t.children=n,v(A(t.children,function(e){e[0].index=s[e[0].index]})).done(function(){l.resolve(s)}),l},ce=function(e,t){var n=new w,i=[];return v(A(e,function(e){delete e[0].collapsedChildren})).done(function(){v(A(t,function(t){var n=re(e,M(t));n&&(i[t[0].index]=n.index)})).done(function(){n.resolve(i)})}),n},de=function(e,t,n,i){var o,a,r,s,l,c,d=e.values;if(t)for(o=0;o<=t.length;o++)if(r=t[o],l=n[o],g(l)||(l=e.grandTotalRowIndex),r&&g(l))for(d[l]||(d[l]=[]),a=0;a<=r.length;a++)s=r[a],c=i[a],g(c)||(c=e.grandTotalColumnIndex),g(s)&&g(c)&&(d[l][c]=s)};return{ctor:function(e){e=e||{};var n=this,i=t(e,function(e){n.fireEvent("progressChanged",[e])});n._store=i,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,m(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);e.hasOwnProperty(i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!g(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?h(n._createDescriptions(),e.descriptions):void 0,i||h(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n,i=[];return t||"data"===e?(i=ae(this._fields,e),G(i)):(n=this._descriptions||{},i=n[F[e]]||[]),i},fields:function(e){var t=this;return e&&(t._fields=U(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function e(t,n){var i,o=this,r=o._fields,e=r&&r[u.isNumeric(t)?t:B(r,t)];return e&&n&&(m(n,function(t,n){var o=p(t,H)<0;if(V(e,t,n,o),"sortOrder"===t){i=e.levels||[];for(var a=0;a<i.length;a++)i[a][t]=n}}),a(e,$),o._descriptions=o._createDescriptions(e)),e},getFieldValues:function(e){var t=this,n=this._fields&&this._fields[e],i=this.store(),o=[],a={columns:o,rows:[],values:this.getAreaFields("data"),filters:[],skipValues:!0},r=new w;return n&&i?(m(n.levels||[n],function(){o.push(h({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null}))}),i.load(a).done(function(e){ie(a,e),t._sort(a,e),r.resolve(e.columns)}).fail(r)):r.reject(),r},reload:function(){return this.load({reload:!0})},filter:function(){var e=this._store;return e.filter.apply(e,arguments)},load:function(e){function t(){n._delayedLoadTask=void 0,n._descriptions?n._loadCore(e,i):v(Y(n)).done(function(t){n._fieldsPrepared(t),n._loadCore(e,i)}).fail(i.reject).fail(n._loadErrorHandler)}var n=this,i=new w;return e=e||{},n.beginLoading(),i.fail(function(e){n.fireEvent("loadError",[e])}).always(function(){n.endLoading()}),n.store()?n._delayedLoadTask=d.executeAsync(t):t(),i},createDrillDownDataSource:function(e){return this._store.createDrillDownDataSource(this._descriptions,e)},_createDescriptions:function(e){var t=this,n=t.fields(),i={rows:[],columns:[],values:[],filters:[]};m(["row","column","data","filter"],function(t,i){C(ae(n,i),"areaIndex",e)}),m(n||[],function(e,t){var o=F[t.area],a=i[o],r=t.groupName;r&&!u.isNumeric(t.groupIndex)&&(t.levels=q(n,t)),!a||r&&u.isNumeric(t.groupIndex)||t.visible===!1&&"data"!==t.area&&"filter"!==t.area||(t.levels&&a!==i.filters&&a!==i.values?(a.push.apply(a,t.levels),t.filterValues&&t.filterValues.length&&i.filters.push(t)):a.push(t))}),m(i,function(e,t){G(t)});var o={};return m(i.values,function(e,t){var a=t.calculateSummaryValue;if(u.isFunction(a)){var r=D.createMockSummaryCell(i,n,o);a(r)}}),i},_fieldsPrepared:function(e){var t=this;t._fields=e,m(e,function(e,t){t.index=e,a(t,L)});var n=y(e,["caption"]);t.fireEvent("fieldsPrepared",[e]);for(var i=0;i<e.length;i++)e[i].caption!==n[i].caption&&V(e[i],"caption",e[i].caption,!0);t._descriptions=t._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(e,t){var n=this;return arguments.length?(e=h({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(n._descriptions?(n._fields=W(e.fields,n._fields),n._descriptions=n._createDescriptions(),!t&&n.load(e)):(n.beginLoading(),v(Y(n)).done(function(i){n._fields=W(e.fields,i),n._fieldsPrepared(i),!t&&n.load(e)}).always(function(){n.endLoading()})))):{fields:y(n._fields,H),columnExpandedPaths:i(n._data,n._descriptions,"columns"),rowExpandedPaths:i(n._data,n._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_loadCore:function(e,t){var n=this,o=this._store,a=this._descriptions,r=F[e.area];e=e||{},o?(h(e,a),e.columnExpandedPaths=e.columnExpandedPaths||i(this._data,e,"columns",n._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||i(this._data,e,"rows",n._lastLoadOptions),r&&(e.headerName=r),n.beginLoading(),t.always(function(){n.endLoading()}),v(o.load(e)).done(function(i){e.path?n.applyPartialDataSource(e.area,e.path,i,t):(h(n._data,i),n._lastLoadOptions=e,n._update(t))}).fail(t.reject)):n._update(t)},_sort:function(e,t,n){var i=this._store;i&&te(e,t,n)},isEmpty:function(){var e=this.getAreaFields("data"),t=this.getData();return!e.length||!t.values.length},_update:function(e){var t=this,n=t._descriptions,i=t._data,o=n.values,a=r(o);return v(ie(n,i),oe(i.rows),oe(i.columns)).done(function(){a&&(t._sort(n,i,a),!t.isEmpty()&&D.applyDisplaySummaryMode(n,i)),t._sort(n,i),!t.isEmpty()&&s(o)&&D.applyRunningTotal(n,i),t._data=i,v(e).done(function(){t.fireEvent("changed"),g(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),g(t._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=t._data.grandTotalColumnIndex)}),e&&e.resolve(t._data)}),e},store:function(){return this._store},collapseHeaderItem:function(e,t){var n=this,i="column"===e?n._data.columns:n._data.rows,o=re(i,t),a=n.getAreaFields(e)[t.length-1];return!(!o||!o.children)&&(n.fireEvent("expandValueChanging",[{area:e,path:t,expanded:!1}]),a&&(a.expanded=!1),o.collapsedChildren=o.children,delete o.children,n._update(),!0)},collapseAll:function(e){var t=!1,n=this.field(e)||{},i=p(n,this.getAreaFields(n.area));n.expanded=!1,E(this._data[n.area+"s"],function(e){var n=e[0],o=M(e);n&&n.children&&i===o.length-1&&(n.collapsedChildren=n.children,delete n.children,t=!0)},!0),t&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,this.load())},expandHeaderItem:function(e,t){var n,i,o=this,a="column"===e?o._data.columns:o._data.rows,r=re(a,t);return!(!r||r.children)&&(n=!!r.collapsedChildren,i={area:e,path:t,expanded:!0,needExpandData:!n},o.fireEvent("expandValueChanging",[i]),n?(r.children=r.collapsedChildren,delete r.collapsedChildren,o._update()):o.load(i),n)},applyPartialDataSource:function(e,t,n,i){var o,a,r,s=this,l=s._data,c="column"===e?l.columns:l.rows;n&&n.values&&(n.rows=n.rows||[],n.columns=n.columns||[],o=re(c,t),o&&("column"===e?(r=le(c,o,n.columns,l.grandTotalColumnIndex),a=ce(l.rows,n.rows)):(a=le(c,o,n.rows,l.grandTotalRowIndex),r=ce(l.columns,n.columns)),v(a,r).done(function(t,o){("row"===e&&t.length||"column"===e&&o.length)&&de(l,n.values,t,o),s._update(i)})))},dispose:function(){var e=this,t=e._delayedLoadTask;this._disposeEvents(),t&&t.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}()).include(y)},function(e,t,n){var i=n(2),o=n(414),a=n(8),r=n(23),s=n(0).extend,l=n(6),c=r.dateToMilliseconds,d="dx-scheduler-date-time-indicator",u="dx-scheduler-time-panel-current-time-cell",h="dx-scheduler-header-panel-current-time-cell",p=o.inherit({_getToday:function(){var e=this.option("indicatorTime")||new Date;return this.invoke("convertDateByTimezone",e)||e},_needRenderDateTimeIndicator:function(){var e=this._getToday(),t=r.trimTime(this.getEndViewDate());return r.dateInRange(e,this._firstViewDate,new Date(t.getTime()+c("day")))},needRenderDateTimeIndication:function(){if(!l.hasWindow())return!1;var e=this._getToday();return e>=r.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(this),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,t,e)}},_renderIndicator:function(e,t,n,i){for(var o=0;o<i;o++){var a=this._createIndicator(n);a.width(this.getCellWidth()),this._groupedStrategy.shiftIndicator(a,e,t,o)}},_createIndicator:function(e){var t=i("<div>").addClass(d);return e.append(t),t},_getRtlOffset:function(e){return this.option("rtlEnabled")?this._dateTableScrollable.$content().get(0).getBoundingClientRect().width-this.getTimePanelWidth()-e:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t<i?t:i},getIndicatorOffset:function(e){var t=this._getIndicatorDuration()-1,n=t*this.getRoundedCellWidth(e,e*this._getCellCount(),t);return n},_getIndicatorDuration:function(){var e=this._getToday(),t=new Date(this._firstViewDate),n=e.getTime()-t.getTime()+1;return Math.ceil(n/c("day"))},getIndicationHeight:function(){var e=this._getToday(),t=this.getCellHeight(),n=new Date(this._firstViewDate);this._needRenderDateTimeIndicator()&&n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var i=e.getTime()-n.getTime(),o=i/this.getCellDuration();return o*t},_dispose:function(){this._clearIndicatorUpdateInterval(),this.callBase.apply(this,arguments)},_refreshDateTimeIndication:function(){this._cleanDateTimeIndicator(),this._shader&&this._shader.clean(),this._renderDateTimeIndication()},_isCurrentTime:function(e){if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var t=this._getToday(),n=!1;e=new Date(e),e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());var i=new Date(e),o=new Date(e);return r.sameDate(t,e)&&(i=i.setMilliseconds(e.getMilliseconds()-this.getCellDuration()+1),o=o.setMilliseconds(e.getMilliseconds()+this.getCellDuration()),n=r.dateInRange(t,i,o)),n}},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this.option("indicatorTime")||new Date;t=r.sameDate(n,i)}return t},_getTimeCellClass:function(e){var t=this._getTimeCellDate(e),n=this.callBase(e);return this._isCurrentTime(t)?n+" "+u:n},_getHeaderPanelCellClass:function(e){var t=this.callBase(e);return this._isCurrentTimeHeaderCell(e)?t+" "+h:t},_cleanView:function(){this.callBase(),this._cleanDateTimeIndicator()},_dimensionChanged:function(){this.callBase(),this._refreshDateTimeIndication()},_cleanDateTimeIndicator:function(){this.$element().find("."+d).remove()},_cleanWorkSpace:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_optionChanged:function(e){switch(e.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":this.callBase(e),this._refreshDateTimeIndication();break;case"allDayExpanded":this.callBase(e),this._refreshDateTimeIndication();break;case"crossScrollingEnabled":this.callBase(e),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:this.callBase(e)}},_getDefaultOptions:function(){return s(this.callBase(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*c("minute"),shadeUntilCurrentTime:!0})}});a("dxSchedulerWorkSpace",p),e.exports=p},,,,,,,function(e,t,n){function i(e){return e.split(",").slice(1).map(function(e){return e.split("").filter(function(e){return"#"===e||"0"===e}).length})}function o(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}function a(e){return e.toString().split("").reverse().join("")}function r(e){return e.indexOf("%")!==-1&&!e.match(/'[^']*%[^']*'/g)}function s(e){return e?e.length-e.replace(/[#]/g,"").length:0}function l(e){return e?e.length-e.replace(/[0]/g,"").length:0}function c(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length<t;)e+="0";return e}function d(e,t,n){if(!t.length)return e;for(var i=[],o=0;e;){var a=t[o];i.push(e.slice(0,a)),e=e.slice(a),o<t.length-1&&o++}return i.join(n)}function u(e,t){return e.split(x).map(function(e,n){var i=n%2;return!e&&i?x:i?e:e.replace(/[,#0]+/,t)}).join("")}function h(e){for(var t=!1,n=0;n<e.length;n++)if("'"===e[n]&&(t=!t),"."===e[n]&&!t)return n;return e.length}function p(e,t){return t=t||w,function(n){if("number"!=typeof n||isNaN(n))return"";var p=o(e),f=1/n===1/0,g=n>0||f,m=p[g?0:1];r(m)&&(n=100*n),g||(n=-n);var _=h(m),w=[m.substr(0,_),m.substr(_+1)],x=l(w[1]),b=x+s(w[1]),C=l(w[0]),k=s(w[0])?void 0:C,S=Math.floor(n).toString().length,I=v(b,0,y-S),D=i(w[0]).reverse(),T=n.toFixed(I<0?0:I).split("."),E=c(a(T[0]),C,k),A=c(T[1],x,b);E=d(E,D,t.thousandsSeparator);var B=a(u(a(w[0]),E)),O=b?u(w[1],A):"",R=B+(O.match(/\d/)?t.decimalSeparator:"")+O;return R}}function f(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function g(e,t,n,i){var o,a,r,s=e;do r&&(o=a.length===r.length?"0":"1",e=i?o+e:e+o),a=r||t(f(s,n)),s=i?"1"+s:s+"1",r=t(f(s,n));while(a!==r&&(i?a.length===r.length:a.length<=r.length));if(i&&r.length>a.length){var l=t(12345).indexOf("12345")===-1;do e="1"+e;while(l&&f(e,n)<1e5)}return e}function m(e,t,n,i){var o=t(f(e,n,i)),a=e.split("."),r=a[0]+".3"+a[1].slice(1),s=f(r,n,i),l=t(s).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(o=o.slice(0,l)+"."+o.slice(l+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}function _(e){var t=".",n=e(1).indexOf("100")>=0;t=g(t,e,n,!0),t=g(t,e,n,!1);var i=m(t,e,n,!1),o=m(t,e,n,!0);return o==="-"+i?i:i+";"+o}var v=n(31).fitIntoRange,w={thousandsSeparator:",",decimalSeparator:"."},x="'",y=15;t.getFormatter=p,t.getFormat=_},function(e,t,n){var i=n(2),o=n(17),a=n(1),r=n(66),s=n(13),l={},c=function(e,t){l[e]=t},d=function(e){e=i(e);var t=e.length&&e[0].nodeName.toLowerCase();return"script"===t?e.html():(e=i("<div>").append(e),e.html())};c("default",{compile:function(e){return s.normalizeTemplateElement(e)},render:function(e,t,n,i){return i?e:e.clone()}}),c("jquery-tmpl",{compile:function(e){return d(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),c("jsrender",{compile:function(e){return(jQuery?jQuery:jsrender).templates(d(e))},render:function(e,t){return e.render(t)}}),c("mustache",{compile:function(e){return d(e)},render:function(e,t){return Mustache.render(e,t)}}),c("hogan",{compile:function(e){return Hogan.compile(d(e))},render:function(e,t){return e.render(t)}}),c("underscore",{compile:function(e){return _.template(d(e))},render:function(e,t){return e(t)}}),c("handlebars",{compile:function(e){return Handlebars.compile(d(e))},render:function(e,t){return e(t)}}),c("doT",{compile:function(e){return doT.template(d(e))},render:function(e,t){return e(t)}});var u,h=function(e){if(a.isString(e)){if(u=l[e],!u)throw o.Error("E0020",e)}else u=e};h("default");var p=r.inherit({ctor:function(e){this._element=e,this._compiledTemplate=u.compile(e)},_renderCore:function(e){return i("<div>").append(u.render(this._compiledTemplate,e.model,e.index,e.transclude)).contents()},source:function(){return i(this._element).clone()}});e.exports=p,e.exports.setTemplateEngine=h},function(e,t,n){var i=n(4).getKeyHash,o=n(4).equalByValue,a=n(1),r=function(e,t){this.getLocalFilter=function(e,t,n,i){return t=void 0===t?o:t,l.bind(this,t,e,n,i)},this.getExpr=function(n){if(n){var i;return e.forEach(function(e,o){i=i||[];var r;o>0&&i.push(t?"and":"or"),r=a.isString(n)?c(n,e):d(n,e),i.push(r)}),i&&1===i.length&&(i=i[0]),i}},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),o=i;return t&&n&&(i?(o=[],o.push(i),o.push(n)):o=n),o};var n,r=function(e){if(!n){n={};for(var t=0;t<e.length;t++)n[i(e[t])]=!0}return n},s=function(e,t,n){return Array.isArray(n)?e.map(function(e){return t(e)}):e},l=function(n,o,l,c,d){var u,h,p=o(d);if(!l&&(u=i(p),!a.isObject(u))){var f=r(s(e,o,c));return f[u]?!t:!!t}for(h=0;h<e.length;h++)if(n(e[h],p))return!t;return!!t},c=function(e,n){if(void 0!==n)return[e,t?"<>":"=",n]},d=function(e,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=n&&n[r],l=c(r,s);if(!l)break;o>0&&i.push(t?"or":"and"),i.push(l)}return i}};t.SelectionFilterCreator=r},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(5),r=n(115),s=n(1).isFunction,l=n(76),c=n(13),d=n(3).each,u=n(73),h=n(0).extend,p=n(1).isPlainObject,f=n(14),g=n(20),m=n(21),_=n(15),v=n(60),w=n(30),x=n(7).Deferred,y={text:"OK",onClick:function(){return!0}},b="dx-dialog",C=b+"-wrapper",k=b+"-root",S=b+"-content",I=b+"-message",D=b+"-buttons",T=b+"-button",E=r.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){var e=g.current();return this.callBase().concat([{device:{platform:"ios"},options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}},{device:function(t){return!t.phone&&g.isWin8(e)},options:{width:function(){return i(o).width()}}},{device:function(t){return t.phone&&g.isWin8(e)},options:{position:{my:"top center",at:"top center",of:o,offset:"0 0"}}}])}});t.FakeDialogComponent=E,t.title="",t.custom=function(e){function n(){return R.show(),p.promise()}function r(e){p.resolve(e),R.hide().done(function(){R.$element().remove()})}var p=new x,g=(new E).option();e=h(g,e);var _=i("<div>").addClass(b).appendTo(u.value()),A=i("<div>").addClass(I).html(String(e.message)),B=[],O=e.toolbarItems;O?m.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):O=e.buttons,d(O||[y],function(){var e=new l(this.onClick,{context:R});B.push({toolbar:"bottom",location:f.current().android?"after":"center",widget:"dxButton",options:h({},this,{onClick:function(){var t=e.execute(arguments);r(t)}})})});var R=new v(_,{title:e.title||t.title,showTitle:function(){var t=void 0===e.showTitle||e.showTitle;return t}(),height:"auto",width:function(){var t=i(o).height()>i(o).width(),n=(t?"p":"l")+"Width",a=e.hasOwnProperty(n)?e[n]:e.width;return s(a)?a():a},showCloseButton:e.showCloseButton||!1,focusStateEnabled:!1,
|
|
28
|
-
onContentReady:function(e){e.component.$content().addClass(S).append(A)},onShowing:function(e){e.component.bottomToolbar().addClass(D).find(".dx-button").addClass(T),c.resetActiveElement()},onShown:function(e){var t=e.component.bottomToolbar().find(".dx-button").first();a.trigger(t,"focus")},onHiding:function(){p.reject()},toolbarItems:B,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:w().rtlEnabled,boundaryOffset:{h:10,v:0}});return R._wrapper().addClass(C),e.position&&R.option("position",e.position),R._wrapper().addClass(k),{show:n,hide:r}},t.alert=function(e,n,i){var o=p(e)?e:{title:n,message:e,showTitle:i};return t.custom(o).show()},t.confirm=function(e,n,i){var o=p(e)?e:{title:n,message:e,showTitle:i,buttons:[{text:_.format("Yes"),onClick:function(){return!0}},{text:_.format("No"),onClick:function(){return!1}}]};return t.custom(o).show()}},function(e,t,n){var i=n(2),o=n(0).extend,a=n(15),r=n(98),s=n(21),l=n(7).Deferred;e.exports={_getDefaultOptions:function(){return o(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e,t=this.$element(),n=this.option("searchEnabled"),o=this._addWidgetPrefix("search"),a=this._addWidgetPrefix("with-search");return n?(e=this._getSearchEditorOptions(),void(this._searchEditor?this._searchEditor.option(e):(t.addClass(a),this._$searchEditorElement=i("<div>").addClass(o).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,r,e)))):(t.removeClass(a),void this._removeSearchBox())},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions");return o({mode:"search",placeholder:a.format("Search"),tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",onValueChanged:function(t){var n=e.option("searchTimeout");e._valueChangeDeferred=new l,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout(function(){e._valueChangeDeferred.resolve()},n):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer():this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void s.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){return!this.option("focusedElement")&&this.option("searchEnabled")?void(this._searchEditor&&this._searchEditor.focus()):void this.callBase()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()}}},function(e,t,n){var i=n(81).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){function i(e){var t=r.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function o(e){var t=!0;return e.indexOf("xmlns:xlink")===-1&&(e=e.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function a(e){return e.replace(/"/gi,""").replace(/&/gi,"&").replace(/'/gi,"'").replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/­/gi,"­")}var r=n(12);t.getSvgMarkup=function(e){return o(a(i(e)))}},function(e,t,n){var i=n(10),o=n(351),a=n(352),r=n(0).extend,s=n(4).noop,l=n(1).isDefined,c=n(7).Deferred;e.exports=i.inherit({ctor:function(e){this.options=r(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o(this.options):new a(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:s,key:s,keyOf:function(e){return e},load:function(){return(new c).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:s,filter:s}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var t=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,t&&this.onSelectionChanged()},setSelection:function(e){return this.selectedItemKeys(e)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,n,i){var o=this;return e=e||[],e=Array.isArray(e)?e:[e],o.validate(),this._selectionStrategy.selectedItemKeys(e,t,n,i)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,t){this._selectionStrategy.addSelectedItem(t,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,t){this._selectionStrategy.setSelectedItems(e,t)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,t){var n,i=this.options.plainItems(),o=i[e];if(!this.isSelectable()||!this.isDataItem(o))return!1;var a=this.options.getItemData(o),r=this.options.keyOf(a);if(t=t||{},t.shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(r):this._addSelectedItem(a,r),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],r);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([r],[a]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e)},isItemSelected:function(e){return this._selectionStrategy.isItemKeySelected(e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,o=!1,a=this.options.keyOf,r=t[this._focusedItemIndex],s=this.options.getItemData(r),c=a(s),d=r&&this.isItemDataSelected(s);l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var u,h;if(this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(h=a(this.options.getItemData(t[i])),this._removeSelectedItem(h),o=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(u=this.options.getItemData(t[i]),h=a(u),this._addSelectedItem(u,h),o=!0);return this.isDataItem(r)&&!d&&(this._addSelectedItem(s,c),o=!0),o},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this.options.plainItems(),n=0;n<t.length;n++){var i=t[n];if(this.isDataItem(i)){var o=this.options.getItemData(i),a=this.options.keyOf(o),r=this.isItemSelected(a);r||e||this._addSelectedItem(o,a),r&&e&&this._removeSelectedItem(a)}}return this.onSelectionChanged(),(new c).resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}})},function(e,t,n){e.exports={_waitAsyncTemplates:function(e){if(this._options.templatesRenderAsynchronously){this._asyncTemplatesTimers=this._asyncTemplatesTimers||[];var t=setTimeout(function(){e.call(this),clearTimeout(t)}.bind(this));this._asyncTemplatesTimers.push(t)}else e.call(this)},_cleanAsyncTemplatesTimer:function(){for(var e=this._asyncTemplatesTimers||[],t=0;t<e.length;t++)clearTimeout(e[t]);delete this._asyncTemplatesTimers}}},function(e,t,n){var i=n(2),o=n(20),a=n(4),r=n(1).isPlainObject,s=n(8),l=n(11).inArray,c=n(0).extend,d=n(3).each,u=n(453),h=n(67),p="dx-toolbar",f="dx-toolbar-before",g="dx-toolbar-center",m="dx-toolbar-after",_="dx-toolbar-bottom",v="dx-toolbar-mini",w="dx-toolbar-item",x="dx-toolbar-label",y="dx-toolbar-button",b="dx-toolbar-items-container",C="dx-toolbar-group",k="dx-toolbar-compact",S="."+x,I="dx-button-flat",D="default",T="dxToolbarItemDataKey",E=u.inherit({compactMode:!1,_initTemplates:function(){this.callBase();var e=new h(function(e,t,n){if(r(t)){if(t.text&&e.text(t.text).wrapInner("<div>"),t.html&&e.html(t.html),"dxButton"===t.widget){if(t.options){var i=this.option("useFlatButtons")?I:"";if(t.options.elementAttr){var o=t.options.elementAttr.class;o&&(o=o.replace(I,""),i+=" "+o)}var a=c(t.options.elementAttr||{},{"class":i});t.options=c(t.options,{elementAttr:a})}this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||D)}}else e.text(String(t));this._getTemplate("dx-polymorph-widget").render({container:e,model:n})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._defaultTemplates.item=e,this._defaultTemplates.menuItem=e},_getDefaultOptions:function(){return c(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return o.isMaterial()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+f,"."+g,"."+m].join(","))},_itemClass:function(){return w},_itemDataKey:function(){return T},_buttonClass:function(){return y},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_render:function(){this.callBase(),this._renderItemsAsync()},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass(p).toggleClass(_,"bottomToolbar"===this.option("renderAs")),this._$toolbarItemsContainer=i("<div>").addClass(b).appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;d(["before","center","after"],function(){var n="dx-toolbar-"+this,o=e.find("."+n);o.length||(t["_$"+this+"Section"]=o=i("<div>").addClass(n).appendTo(e))})},_arrangeItems:function(e){e=e||this.$element().width(),this._$centerSection.css({margin:"0 auto","float":"none"});var t=this._$beforeSection.get(0).getBoundingClientRect(),n=this._$afterSection.get(0).getBoundingClientRect();this._alignCenterSection(t,n,e);var o=this._$toolbarItemsContainer.find(S).eq(0),a=o.parent();if(o.length){var r=t.width?t.width:o.position().left,s=a.hasClass(f)?0:r,l=a.hasClass(m)?0:n.width,c=0;a.children().not(S).each(function(){c+=i(this).outerWidth()});var d=e-c,u=Math.max(d-s-l,0);if(a.hasClass(f))this._alignSection(this._$beforeSection,u);else{var h=o.outerWidth()-o.width();o.css("maxWidth",u-h)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),o=i?t:e,a=i?e:t,r=this._$centerSection.get(0).getBoundingClientRect();(o.right>r.left||r.right>a.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:a.width,"float":o.width>a.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(S),i=n.toArray();t-=this._getCurrentLabelsPaddings(i);var o=this._getCurrentLabelsWidth(i),a=Math.abs(o-t);t<o?(i=i.reverse(),this._alignSectionLabels(i,a,!1)):this._alignSectionLabels(i,a,!0)},_alignSectionLabels:function(e,t,n){for(var o=function(e){return e.getBoundingClientRect().width},a=0;a<e.length;a++){var r,s=i(e[a]),l=Math.ceil(o(e[a]));n&&s.css("maxWidth","inherit");var c=Math.ceil(n?o(e[a]):l);if(!(c<t)){r=n?l+t:l-t,s.css("maxWidth",r);break}r=n?c:0,t-=c,s.css("maxWidth",r)}},_applyCompactMode:function(){var e=this.$element();e.removeClass(k),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>e.width()&&e.addClass(k)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach(function(e,n){t+=i(e).outerWidth()}),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach(function(e,n){t+=i(e).outerWidth()-i(e).width()}),t},_renderItem:function(e,t,n,i){var o=t.location||"center",a=n||this._$toolbarItemsContainer.find(".dx-toolbar-"+o),r=!(!t.text&&!t.html),s=this.callBase(e,t,a,i);return s.toggleClass(this._buttonClass(),!r).toggleClass(x,r),s},_renderGroupedItems:function(){var e=this;d(this.option("items"),function(t,n){var o=n.items,a=i("<div>").addClass(C),r=n.location||"center";o&&o.length&&(d(o,function(t,n){e._renderItem(t,n,a,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+r).append(a))})},_renderItems:function(e){var t=this.option("grouped")&&e.length&&e[0].items;t?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass(v,0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()},_renderEmptyMessage:a.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(e){return l(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}}});s("dxToolbarBase",E),e.exports=E},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(12),r=n(5),s=n(51).add,l=n(4),c=n(1),d=n(0).extend,u=n(11).inArray,h=n(25),p=n(8),f=n(70),g=n(20),m="dx-toast",_=m+"-",v=_+"wrapper",w=_+"content",x=_+"message",y=_+"icon",b="dxToast",C=["info","warning","error","success"],k=[],S=8e3,I=null,D={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}};s(function(){r.subscribeGlobal(a.getDocument(),h.down,function(e){for(var t=k.length-1;t>=0;t--)if(!k[t]._proxiedDocumentDownHandler(e))return})});var T=f.inherit({_getDefaultOptions:function(){return d(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",closeOnBackButton:!1,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{position:"top center",width:function(){return i(o).width()}}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{position:"bottom right",width:"auto"}},{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:o}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:o}}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform,i="win"===e.platform&&e.version&&10===e.version[0];return t&&(n||i)},options:{width:function(){return i(o).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(){return g.isMaterial()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=i("<div>").addClass(x).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),u(this.option("type").toLowerCase(),C)>-1&&this.$content().prepend(i("<div>").addClass(y)),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(m),this._wrapper().addClass(v),this._$content.addClass(_+String(this.option("type")).toLowerCase()),this.$content().addClass(w),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:l.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();r.off(this._$content,t),this.option("closeOn"+e)&&r.on(this._$content,t,this.hide.bind(this))},_posStringToObject:function(){if(c.isString(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",d({},D[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return I&&I!==this&&(clearTimeout(I._hideTimeout),I.hide()),I=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return I=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return k},_zIndexInitValue:function(){return this.callBase()+S},_dispose:function(){clearTimeout(this._hideTimeout),I=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this._$content.removeClass(_+e.previousValue),this._$content.addClass(_+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(e)}}});p(b,T),e.exports=T},function(e,t,n){var i=n(8),o=n(457);i("dxTextEditor",o),e.exports=o},function(e,t,n){var i=n(2),o=n(1).isDefined,a=n(29),r=n(12),s=a.msie||a.safari,l=function(e){return d(e)?u(e):{start:e.selectionStart,end:e.selectionEnd}},c=function(e,t){return d(e)?void h(e,t):void(r.getBody().contains(e)&&(e.selectionStart=t.start,e.selectionEnd=t.end))},d=function(e){return!e.setSelectionRange},u=function(e){var t=r.getSelection().createRange(),n=t.duplicate();return t.move("character",-e.value.length),t.setEndPoint("EndToStart",n),{start:t.text.length,end:t.text.length+n.text.length}},h=function(e,t){if(r.getBody().contains(e)){var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t.start),n.moveEnd("character",t.end-t.start),n.select()}},p=function(e,t){return e=i(e).get(0),o(t)?void(s&&r.getActiveElement()!==e||c(e,t)):l(e)};e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(126),s=r.abstract,l=n(9),c=n(25),d=n(96),u="dxListEditDecorator",h=l.addNamespace(c.down,u),p=l.addNamespace(d.active,u),f="dx-list-item-content",g="dx-list-switchable-delete-ready",m="dx-list-switchable-menu-shield-positioning",_="dx-list-switchable-delete-top-shield",v="dx-list-switchable-delete-bottom-shield",w="dx-list-switchable-menu-item-shield-positioning",x="dx-list-switchable-delete-item-content-shield",y=r.inherit({_init:function(){this._$topShield=i("<div>").addClass(_),this._$bottomShield=i("<div>").addClass(v),this._$itemContentShield=i("<div>").addClass(x),o.on(this._$topShield,h,this._cancelDeleteReadyItem.bind(this)),o.on(this._$bottomShield,h,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(g)},_toggleShields:function(e,t){this._list.$element().toggleClass(m,t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),n=t.offset().top,i=t.outerHeight(),o=e.offset().top,a=e.outerHeight(),r=o-n,s=i-a-r;this._$topShield.height(Math.max(r,0)),this._$bottomShield.height(Math.max(s,0))},_toggleContentShield:function(e,t){t?e.find("."+f).first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),o.off(e,c.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(w),o.on(e,p,a),o.one(e,c.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(w),o.off(e,p)},_prepareDeleteReady:function(e){e.addClass(g)},_forgetDeleteReady:function(e){e.removeClass(g)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_deleteItem:function(e){e=e||this._$readyToDeleteItem,e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});e.exports=y},function(e,t,n){var i={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}};e.exports=i},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(51).add,s=n(24),l=n(28),c=n(9),d=n(4),u=n(1).isPlainObject,h=n(0).extend,p=n(25),f="dxScrollbar",g="dx-scrollable-scrollbar",m=g+"-active",_="dx-scrollable-scroll",v="dx-scrollable-scroll-content",w="dx-scrollbar-hoverable",x="horizontal",y=15,b={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},C=l.inherit({_getDefaultOptions:function(){return h(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:b.onScroll,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass(w,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=i("<div>").addClass(_),i("<div>").addClass(v).appendTo(this._$thumb),this.$element().addClass(g).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===b.onHover||e===b.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===x?"width":"height",this._prop=e===x?"left":"top"},_attachPointerDownHandler:function(){a.on(this._$thumb,c.addNamespace(p.down,f),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(m),k=this},feedbackOff:function(){this.$element().removeClass(m),k=null},cursorEnter:function(){this._isHovered=!0,this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===b.onScroll&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this.containerToContentRatio()&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case b.onScroll:break;case b.onHover:e=e||!!this._isHovered;break;case b.never:e=!1;break;case b.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){u(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),s.move(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize"));this._containerToContentRatio=t?e/t:e;var n=Math.round(Math.max(Math.round(e*this._containerToContentRatio),y));this._thumbRatio=(e-n)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,n/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===b.never},_needScrollbar:function(){return!this._isHidden()&&this._containerToContentRatio<1},containerToContentRatio:function(){return this._containerToContentRatio},_normalizeSize:function(e){return u(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===k&&(k=null),a.off(this._$thumb,"."+f)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:d.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),k=null;r(function(){a.subscribeGlobal(o.getDocument(),c.addNamespace(p.up,f),function(){k&&k.feedbackOff()})}),e.exports=C},function(e,t,n){var i,o,a=n(2),r=n(12),s=n(5),l=Math,c=n(37).titleize,d=n(0).extend,u=n(6),h=n(3),p=n(1).isDefined,f=n(24),g=n(10),m=n(273),_=n(14),v=n(9),w=n(4),x=n(271),y=n(7),b=y.when,C=y.Deferred,k=_.real,S="win"===k.platform||"android"===k.platform,I="dxSimulatedScrollable",D="dxScrollableStrategy",T=I+"Cursor",E=I+"Keyboard",A="dx-scrollable-simulated",B="dx-scrollable-scrollbars-hidden",O="dx-scrollable-scrollbars-alwaysvisible",R="dx-scrollable-scrollbar",M="vertical",P="horizontal",V=S?.95:.92,F=.5,H=1,$=l.round(1e3/60),L=20,z=H/5,N=S?300:400,W=N/$,q=(1-l.pow(V,W))/(1-V),G={
|
|
19
|
+
},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(e,t,n){var i=n(10),o=n(1),a=n(3),r=n(22).compileGetter,s=n(22).toComparable,l=n(7).Deferred,c=n(36),d=n(41),u=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=u.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=u.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=s(e),t=s(t),null===e&&null!==t?-1:null!==e&&null===t?1:void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:e<t?-1:e>t?1:0},m=u.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new m(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(a.each(e.rules,function(){this.getter=r(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var o=0,a=this.rules.length;o<a;o++){var r=this.rules[o],s=r.getter(e),l=r.getter(t),c=r.compare||g,d=c(s,l);if(d)return r.desc?-d:d}return n-i}}),_=function(){function e(e,n,i){return function(o){o=s(e(o));var a=t(n)?o===n:o==n;return i&&(a=!a),a}}function t(e){return""===e||0===e||e===!1}function n(e){var t=e[0],n=_(e[1]);if("!"===t)return function(e){return!n(e)};throw c.errors.Error("E4003",t)}var i=function(e){var t=[],n=!1,i=!1;return a.each(e,function(){if(Array.isArray(this)||o.isFunction(this)){if(t.length>1&&n!==i)throw new c.errors.Error("E4019");t.push(_(this)),n=i,i=!0}else i=d.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o<t.length;o++)if(t[o](e)!==n){i=!n;break}return i}},l=function(e){return o.isDefined(e)?e.toString():""},u=function(t){t=d.normalizeBinaryCriterion(t);var n=r(t[0]),i=t[1],o=t[2];switch(o=s(o),i.toLowerCase()){case"=":return e(n,o);case"<>":return e(n,o,!0);case">":return function(e){return s(n(e))>o};case"<":return function(e){return s(n(e))<o};case">=":return function(e){return s(n(e))>=o};case"<=":return function(e){return s(n(e))<=o};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(o)};case"endswith":return function(e){var t=s(l(n(e))),i=l(o);if(t.length<i.length)return!1;var a=t.lastIndexOf(o);return a!==-1&&a===t.length-o.length};case"contains":return function(e){return s(l(n(e))).indexOf(o)>-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(o)===-1}}throw c.errors.Error("E4003",i)};return function(e){return o.isFunction(e)?e:d.isGroupCriterion(e)?i(e):d.isUnaryOperation(e)?n(e):u(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=_(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),w=u.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=r(this.getter);for(n.reset();n.next();){var o=n.current(),s=i(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new h(a.map(t,function(t){return{key:t,items:e[t]}}))}}}),x=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=r(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),y=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),b=function e(t,n){n=n||{},t instanceof u||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),c._errorHandler(e)},a=function(e){var n,o=(new l).fail(i),a=e.step,r=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var s=n;t.next();)s=a(s,t.current());o.resolve(r?r(s):s)}catch(e){o.reject(e)}return o.promise()},s=function(e,t,n){return a(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},p=function(e){return a(d.aggregators[e])},f=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),_(new x(t,e))},g=function(e){return f(r(e))},_=function(t){return e(t,n)};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,i){return _(new m(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof m)return _(t.thenBy(e,n,i));throw c.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),_(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),_(new y(t,e,n))},select:f,groupBy:function(e){return _(new w(t,e))},aggregate:s,count:function(){if(t.countable()){var e=(new l).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return p("count")},sum:function(e){return e?g(e).sum():p("sum")},min:function(e){return e?g(e).min():p("min")},max:function(e){return e?g(e).max():p("max")},avg:function(e){return e?g(e).avg():p("avg")}}};e.exports=b},function(e,t,n){var i=n(1),o=n(3),a=n(0).extend,r=n(181),s=n(97),l=s.serializePropName,c=n(36).errors,d=n(41),u=i.isFunction,h=2,p=function(){var e,t,n=function(e){return function(t,n){return t+" "+e+" "+n}},i=function(e,t){return t=t||{},function(n,i){var o=[e,"("];return t.forceLowerCase&&(n=n.indexOf("tolower(")===-1?"tolower("+n+")":n,i=i.toLowerCase()),t.reverse?o.push(i,",",n):o.push(n,",",i),o.push(")"),o.join("")}},r={"=":n("eq"),"<>":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:i("startswith",{forceLowerCase:!0}),endswith:i("endswith",{forceLowerCase:!0})},u=a({},r,{contains:i("substringof",{reverse:!0,forceLowerCase:!0}),notcontains:i("not substringof",{reverse:!0,forceLowerCase:!0})}),h=a({},r,{contains:i("contains",{forceLowerCase:!0}),notcontains:i("not contains",{forceLowerCase:!0})}),p=function(n){n=d.normalizeBinaryCriterion(n);var i=n[1],o=4===e?h:u,a=o[i.toLowerCase()];if(!a)throw c.Error("E4003",i);var r=n[0],p=n[2];return t&&t[r]&&(p=s.convertPrimitiveValue(t[r],p)),a(l(r),s.serializeValue(p,e))},f=function(e){var t=e[0],n=m(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},g=function(e){var t,n,i=[];return o.each(e,function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+m(o)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},m=function(e){return Array.isArray(e[0])?g(e):d.isUnaryOperation(e)?f(e):p(e)};return function(n,i,o){return t=o,e=i,m(n)}}(),f=function(e){function t(e){for(var t=-1,n=0;n<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&u(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}var n,i,o,r,c=[],d=[],f=e.expand,g=e.version||h,m=function(){return i||void 0!==o},_=function e(t){for(var n=0;n<t.length;n++){if(u(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(r||(c.length&&(t.$orderby=c.join(",")),i&&(t.$skip=i),void 0!==o&&(t.$top=o),t.$select=s.generateSelect(g,n)||void 0,t.$expand=s.generateExpand(g,f,n)||void 0),d.length){var a=d.length<2?d[0]:d,l=e&&e.fieldTypes;t.$filter=p(a,g,l)}return r&&(t.$top=0),(e.requireTotalCount||r)&&(4!==g?t.$inlinecount="allpages":t.$count="true"),t};return{optimize:function(e){t(e)},exec:function(t){return s.sendRequest(g,{url:t,params:a(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:r,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(o)})},multiSort:function(e){var t;if(m())return!1;for(var n=0;n<e.length;n++){var i,o=e[n][0],a=!!e[n][1];if("string"!=typeof o)return!1;i=l(o),a&&(i+=" desc"),t=t||[],t.push(i)}c=t},slice:function(e,t){return!m()&&(i=e,void(o=t))},filter:function(e){return!m()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!_(e)&&(d.length&&d.push("and"),void d.push(e)))},select:function(e){return!n&&!u(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){r=!0}}};r.odata=f,t.odata=f},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(83),s=n(68),l=n(29),c=n(13),d=n(51),u=d.add,h=n(31),p=n(4).noop,f=n(1).isDefined,g=n(9),m=n(108),_=h.sign,v=Math.abs,w=0,x=1,y=2,b=10,C=0,k=180,S=function(e){return e&&"dxmousewheel"===e.type},I=function(){var e=r.styleProp("pointer-events"),t=l.msie&&parseInt(l.version,10)<11;return e&&!t},D=s(function(){var e="dx-gesture-cover",t="generic"===a.real().platform;if(!I()||!t)return p;var n=i("<div>").addClass(e).css("pointerEvents","none");return o.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),u(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),T=function(e,t){var n=D();n(e,t)},E=m.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==y},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=w},start:function(e){return g.needSkipEvent(e)?void this._cancel(e):(this._startEvent=g.createEvent(e),this._startEventData=g.eventData(e),this._stage=x,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),k))},move:function(e){if(this._stage===x&&this._directionConfirmed(e)){if(this._stage=y,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===w)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===y&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e)),i=v(n.x),o=v(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),c="horizontal"===s&&a,d="vertical"===s&&r;return l||c||d||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||S(e)?C:b},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e));this._startEvent.pageX+=_(n.x)*t,this._startEvent.pageY+=_(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&c.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===y;t&&T(e,this.getElement().css("cursor"))},_clearSelection:function(e){S(e)||g.isTouchEvent(e)||c.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===y?this._end(e):this._stage===x&&this._stop(e),this._stage=w},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:p,_start:p,_move:p,_stop:p,_end:p});E.initialTouchBoundary=b,E.touchBoundary=function(e){return f(e)?void(b=e):b},e.exports=E},function(e,t,n){var i=n(2),o=n(264),a=n(5),r=n(50),s=n(8),l=n(4),c=n(13),d=n(57).focused,u=n(3).each,h=n(1).isDefined,p=n(0).extend,f=n(13).getPublicElement,g=n(21),m=n(77),_=n(103).getDefaultAlignment,v=n(15),w=n(38),x=n(9),y=n(98),b=n(18),C=n(95),k=n(60),S="dx-dropdowneditor",I="dx-dropdowneditor-input-wrapper",D="dx-dropdowneditor-button",T="dx-dropdowneditor-icon",E="dx-dropdowneditor-overlay",A="dx-dropdowneditor-overlay-flipped",B="dx-dropdowneditor-active",O="dx-dropdowneditor-button-visible",R="dx-dropdowneditor-field-clickable",M=y.inherit({_supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return p({},this.callBase(),{tab:function(e){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&a.trigger(t,"focus"),e.preventDefault()}},escape:function(e){this.option("opened")&&e.preventDefault(),this.close()},upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this.close(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0},home:e,end:e})},_getDefaultOptions:function(){return p(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:v.format("OK"),cancelButtonText:v.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=_(this.option("rtlEnabled"));return{offset:{h:0,v:-1},my:e+" top",at:e+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t="generic"===e.platform,n="win"===e.platform&&e.version&&10===e.version[0];return t||n},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+I)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction()},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly","designMode"]})},_initMarkup:function(){this.callBase(),this.$element().addClass(S),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner(i("<div>").addClass(I)),this._$container=this.$element().children().eq(0),this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&a.off(this._input(),"focusin focusout beforeactivate")},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");e&&this.option("fieldTemplate")&&this._renderTemplatedField(e,this._fieldRenderData())},_renderTemplatedField:function(e,t){var n=this,i=d(this._input());this._resetFocus(i);var o=this._$container;o.empty(),this._$dropDownButton=null,this._$clearButton=null,e.render({model:t,container:c.getPublicElement(o),onRendered:function(){if(!n._input().length)throw g.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),i&&a.trigger(n._input(),"focus")}})},_resetFocus:function(e){this._cleanFocusState(),e&&a.trigger(this._input(),"focusout")},_fieldRenderData:function(){return this.option("value")},_renderInputAddons:function(){this._renderField(),this.callBase(),this._renderDropDownButton()},_renderDropDownButton:function(){this._$dropDownButton&&(this._$dropDownButton.remove(),this._$dropDownButton=null);var e=this.option("showDropDownButton");this.$element().toggleClass(O,e),e&&(this._$dropDownButton=this._createDropDownButton(),this._attachDropDownButtonClickHandler())},_attachDropDownButtonClickHandler:function(){this.option("showDropDownButton")&&!this.option("openOnFieldClick")&&this._$dropDownButton.dxButton("option","onClick",this._openHandler.bind(this))},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new C(function(e){var t=i("<div>").addClass(T);i(e.container).append(t)},this)},_createDropDownButton:function(){var e=i("<div>").addClass(D).prependTo(this._buttonsContainer());return this._createComponent(e,w,{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,disabled:this.option("readOnly"),useInkRipple:!1,template:this._getTemplateByOption("dropDownButtonTemplate")}),e.removeClass("dx-button"),a.on(e,"mousedown",function(e){e.preventDefault()}),e},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=x.addNamespace(b.name,e.NAME),i=e.option("openOnFieldClick");a.off(t,n),a.on(t,n,e._getInputClickHandler(i)),e.$element().toggleClass(R,i),i&&(e._openOnFieldClickAction=e._createAction(e._openHandler.bind(e)))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!d(this._input())&&a.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass(B,e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:(e||void 0)&&this._popupContentId})},_createPopup:function(){this._$popup||(this._$popup=i("<div>").addClass(E).addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,k,this._popupConfig()),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler(),this._popupContentId="dx-"+new r,this.setAria("id",this._popupContentId,this._popup.$content())},_contentReadyHandler:l.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:p(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1}},_popupInitializedHandler:function(){if(this.option("onPopupInitialized"))return function(e){this._popupInitializedAction({popup:e.component})}.bind(this)},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass(A,e.position.v.flip)},_popupShowingHandler:l.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=m.setup(this.$element()).top,n=m.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_renderPopupContent:function(){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:c.getPublicElement(t),model:n})}},_closeOutsideDropDownHandler:function(e){var t=i(e.target),n=!!t.closest(this.$element()).length,o=!!t.closest(this._$dropDownButton).length,a=!n&&!o;return a},_clean:function(){delete this._$dropDownButton,delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=i(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(a.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){a.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=l.splitPair(t);u(n,function(e,t){p(t,{toolbar:i[0],location:i[1]})})}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_toggleReadOnlyState:function(){this.callBase(),this._$dropDownButton&&this._$dropDownButton.dxButton("option","disabled",this.option("readOnly"))},_optionChanged:function(e){switch(e.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":h(e.value)?this._renderInputAddons():this._invalidate();break;case"showDropDownButton":case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":this._renderDropDownButton();break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return f(this._input())},content:function(){return this._popup?this._popup.content():null}}).include(o);s("dxDropDownEditor",M),e.exports=M},function(e,t,n){var i={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}};e.exports=i},,,,,,function(e,t,n){var i=n(6).getWindow(),o=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=o},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(11).inArray,s=n(3).each,l=n(9),c=a.inherit({_keydown:l.addNamespace("keydown","KeyboardProcessor"),codes:{8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus"},ctor:function(e){var t=this;e=e||{},e.element&&(this._element=i(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){t.process(e)},o.on(this._element,this._keydown,this._processFunction))},dispose:function(){this._element&&o.off(this._element,this._keydown,this._processFunction),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new c;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){if(this._focusTarget&&this._focusTarget!==e.target&&r(e.target,this._focusTarget)<0)return!1;var t={key:this.codes[e.which]||e.which,ctrl:e.ctrlKey,shift:e.shiftKey,alt:e.altKey,originalEvent:e},n=this._handler&&this._handler.call(this._context,t);n&&this._childProcessors&&s(this._childProcessors,function(t,n){n.process(e)})}});e.exports=c},function(e,t,n){var i={_findGroup:function(){var e,t=this.option("validationGroup");return t||(e=this.$element().parents(".dx-validationgroup").first(),t=e.length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}};e.exports=i},function(e,t,n){var i=n(5),o=n(35),a=n(10),r=n(14),s=n(61),l=n(9),c=n(25),d="dxHoverStart",u="dxhoverstart",h=l.addNamespace(c.enter,d),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(c.leave,p),m=a.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){o.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,a=function(e){n._handler(e)};i.on(e,this._originalEventName,t.selector,a),o.data(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){l.isTouchEvent(e)||r.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=o.data(e,this._handlerArrayKeyPath)[t.guid];i.off(e,this._originalEventName,t.selector,n)},teardown:function(e){o.removeData(e,this._handlerArrayKeyPath)}}),_=m.inherit({ctor:function(){this._eventNamespace=d,this._eventName=u,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=m.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});s(u,new _),s(f,new v),t.start=u,t.end=f},function(e,t,n){function i(e){return e&&m(e.then)}function o(e){return(new b).resolve(e).promise()}function a(e,t){if(!m(t))throw _.Error("E4011",e)}function r(e){throw _.Error("E4012",e)}function s(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?g.errorMessageFromXhr(t,n):null}return function(n){var i;i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error"),i.message!==g.XHR_ERROR_UNLOAD&&e.reject(i);
|
|
20
|
+
}}function l(e,t){var n,s=e._loadFunc;return a(I,s),n=s.apply(e,[t]),Array.isArray(n)?n=o(n):null===n||void 0===n?n=o([]):i(n)||r(I),k(n)}function c(e,t){var n,a=e._totalCountFunc;if(!m(a))throw _.Error("E4021");return n=a.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||r(S),n=o(n)),k(n)}function d(e,t,n){var r,s=e._byKeyFunc;return a(D,s),r=s.apply(e,[t,n]),i(r)||(r=o(r)),k(r)}function u(e,t,n,i){t.__rawData?i(t.__rawData):l(t,n).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(s(e))}function h(e,t,n,i){n=n||{};var o={};"userData"in n&&(o.userData=n.userData),u(e,t,o,function(o){var a,r,s,l,c=w(o,{errorHandler:t._errorHandler}),d=[];i||(a=x(c,n),a===c?s=o.slice(0):d.push(a.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(r=x(c,n,!0),r===c?l=o.length:d.push(r.count().done(function(e){l=e}))),C.apply(f,d).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)}).fail(function(t){e.reject(t)})})}function p(e,t,n){u(e,t,{},function(i){for(var o,a=t.key(),r=0,s=i.length;r<s;r++)if(o=i[r],g.keysEqual(a,t.keyOf(i[r]),n))return void e.resolve(o);e.reject(_.Error("E4009"))})}var f=n(2),g=n(41),m=n(1).isFunction,_=n(36).errors,v=n(91),w=n(144),x=n(80).queryByOptions,y=n(7),b=y.Deferred,C=y.when,k=y.fromPromise,S="totalCount",I="load",D="byKey",T="insert",E="update",A="remove",B=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=e.cacheRawData!==!1,this._loadFunc=e[I],this._totalCountFunc=e[S],this._byKeyFunc=e[D],this._insertFunc=e[T],this._updateFunc=e[E],this._removeFunc=e[A]},createQuery:function(){throw _.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new b;return"raw"!==this._loadMode||this._totalCountFunc?(c(this,e).done(function(e){t.resolve(Number(e))}).fail(s(t)),t=this._addFailHandlers(t)):h(t,this,e,!0),t.promise()},_loadImpl:function(e){var t=new b;return"raw"===this._loadMode?h(t,this,e,!1):(l(this,e).done(function(e,n){t.resolve(e,n)}).fail(s(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new b;return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):d(this,e,t).done(function(e){n.resolve(e)}).fail(s(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this._insertFunc,r=new b;return a(T,n),t=n.apply(this,[e]),i(t)||(t=o(t)),k(t).done(function(t){r.resolve(e,t)}).fail(s(r)),r.promise()},_updateImpl:function(e,t){var n,r=this._updateFunc,l=new b;return a(E,r),n=r.apply(this,[e,t]),i(n)||(n=o()),k(n).done(function(){l.resolve(e,t)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,r=new b;return a(A,n),t=n.apply(this,[e]),i(t)||(t=o()),k(t).done(function(){r.resolve(e)}).fail(s(r)),r.promise()}});e.exports=B},function(e,t,n){var i=n(2),o=n(5),a=n(40),r=n(14),s=n(10),l=n(61),c=n(9),d=n(90),u="dxContexMenu",h=c.addNamespace("contextmenu",u),p=c.addNamespace(d.name,u),f="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);o.on(t,h,this._contextMenuHandler.bind(this)),(a.touch||r.isSimulator())&&o.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){c.isMouseEvent(e)&&!r.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return c.fireEvent({type:f,originalEvent:e})},teardown:function(e){o.off(e,"."+u)}});l(f,new g),t.name=f},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(14),r=n(8),s=n(0).extend,l=n(28),c=n(38),d=n(130),u=n(112),h=n(125),p=n(20),f=n(101),g="dx-dropdownmenu",m="dx-dropdownmenu-popup",_="dx-dropdownmenu-popup-wrapper",v="dx-dropdownmenu-list",w="dx-dropdownmenu-button",x={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight"},y={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},b=l.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),s(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return s(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:h,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return p.isMaterial()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===a.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass(g),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new f("item",this),this._defaultTemplates.content=new f("content",this)},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass(w),t=this._buttonOptions();this._button=this._createComponent(e,c,t)},_toggleActiveState:function(e,t,n){this._button._toggleActiveState(e,t,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=i("<div>").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,d,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass(_).toggleClass(m,e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass(v),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*i(o).height();t.height()>a&&t.height(a)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this._getTemplateByOption("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(y[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":this._popup.option(x[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(u);r("dxDropDownMenu",b),e.exports=b},function(e,t,n){e.exports=n(526)},function(e,t,n){e.exports=n(545)},function(e,t,n){var i=n(17),o=n(0).extend,a=n(3).each,r=n(11).inArray,s=n(23),l=s.dateToMilliseconds,c=4,d={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},u={bysecond:function(e,t){e.setSeconds(t)},byminute:function(e,t){e.setMinutes(t)},byhour:function(e,t){e.setHours(t)},bymonth:function(e,t){e.setMonth(t)},bymonthday:function(e,t){if(t<0){var n=new Date(e);h(n,1,-1);var i=n.getDate();i>=Math.abs(t)?h(e,1,t):h(e,2,t)}else e.setDate(t),D(e,t)},byday:function(e,t,n,i){var o=t;"DAILY"!==i&&"WEEKLY"!==i||0!==t||(o=7),t+=m[n]>o?7:0,e.setDate(e.getDate()-e.getDay()+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-m[n],r=o.getTime()-a*l("day"),s=a+1;s>c?e.setTime(r+7*t*l("day")):e.setTime(r+7*(t-1)*l("day"));var d=(e.getTimezoneOffset()-o.getTimezoneOffset())*l("minute");d&&e.setTime(e.getTime()+d)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},h=function(e,t,n){var i=new Date(e);e.setMonth(e.getMonth()+t),e.getMonth()-i.getMonth()>t&&e.setDate(n+1),e.setDate(n+1)},p={bysecond:function(e){return e.getSeconds()},byminute:function(e){return e.getMinutes()},byhour:function(e){return e.getHours()},bymonth:function(e){return e.getMonth()},bymonthday:function(e){return e.getDate()},byday:function(e){return e.getDay()},byweekno:function(e,t){var n,i=new Date(e),o=c-i.getDay()+m[t]-1,a=l("day");e.getDay()<m[t]&&(o-=7),i.setHours(0,0,0),i.setDate(i.getDate()+o);var r=new Date(i.getFullYear(),0,1),s=(r.getTimezoneOffset()-i.getTimezoneOffset())*l("minute");return n=1+(i-r+s)/a,Math.ceil(n/7)},byyearday:function(e){var t=new Date(e.getFullYear(),0,0),n=e.getTimezoneOffset()-t.getTimezoneOffset(),i=e-t-n*l("minute"),o=l("day");return Math.floor(i/o)}},f=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],g=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],m={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},_=function(){return(new Date).getTimezoneOffset()},v=function(e){var t=[];return e.rule&&(t=C(e)),!!t.length},w=function(e){var t=e.interval,n=e.freq,i={},o=d[n.toLowerCase()];return"MONTHLY"===n&&e.byday&&(o=d.daily),i[o]=t,i},x=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)n[i]=N(e[i],t);return n},y=function(e,t){var n=!1;if(!t)return n;for(var i=t.split(","),o=x(i,e),a=/\d{8}$/,r=0,s=o.length;r<s;r++)if(i[r].match(a)){var l=E(e,o[r]);0===l.years&&0===l.months&&0===l.days&&(n=!0)}else e.getTime()===o[r].getTime()&&(n=!0);return n},b=function(e,t,n,i,o){var a,r=!0;return n=n.getTime(),i.until&&i.until.getTime()<n&&(n=i.until.getTime()),i.count&&o===i.count&&(r=!1),a=e.getTime()<=n,a&&r},C=function(e){var t,n=[],i=A(e.rule),o={},r=i.rule,s=e.start;if(!i.isValid||!r.freq)return n;r.interval=w(r),t=K(r);var c=e.end?e.end.getTime()-e.start.getTime():l("day"),d={exception:e.exception,min:e.min,dateRules:t,rule:r,recurrenceStartDate:s,recurrenceEndDate:e.end,duration:c};if(t.length&&r.count){var u=0;Z(t,new Date(s),new Date(s),r).forEach(function(t,n){t<e.max&&(u++,o=k(u,o,t,n,d,!0))})}else X(t,new Date(s),r).forEach(function(t,n){for(var i=0;b(t,s,e.max,r,i);)i++,o=k(i,o,t,n,d),t=T(t,s,r,n)});return r.bysetpos&&a(o,function(e,t){o[e]=I(t,r.bysetpos)}),a(o,function(e,t){n=n.concat(t)}),n.sort(function(e,t){return e-t}),n},k=function(e,t,n,i,o,a){return t[e]||(t[e]=[]),S(n,i,o,a)&&t[e].push(n),t},S=function(e,t,n,i){if(!y(e,n.exception)){var o=s.sameDate(e,n.recurrenceEndDate)?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||J(e,[n.dateRules[t]],n.rule.wkst)}return!1},I=function(e,t){var n=[];return t.split(",").forEach(function(t){t=Number(t);var i=t>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},D=function(e,t){e.getDate()!==t&&e.setDate(t)},T=function(e,t,n,i){var o=new Date(e),a=!0;if(e=s.addInterval(e,n.interval),"MONTHLY"===n.freq&&!n.byday){var r=t.getDate();n.bymonthday&&(r=Number(n.bymonthday.split(",")[i]),r<0&&(o.setMonth(o.getMonth()+1,1),u.bymonthday(o,r),e=o,a=!1)),a&&D(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var l=Number(n.byyearday.split(",")[i]);u.byyearday(e,l)}var c=K(n);for(var d in c[i])u[d]&&u[d](e,c[i][d],n.wkst)}return e},E=function(e,t){return{years:e.getFullYear()-t.getFullYear(),months:e.getMonth()-t.getMonth(),days:e.getDate()-t.getDate(),hours:e.getHours()-t.getHours(),minutes:e.getMinutes()-t.getMinutes(),seconds:e.getSeconds()-t.getSeconds()}},A=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=z(e),t.isValid=O(t.rule,e)),t},B=[],O=function(e,t){return!($(e)||r(e.freq,g)===-1||M(e)||F(e)||H(e)||P(e)||V(e)||R(e))||(L(t),!1)},R=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},M=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},P=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},V=function e(t){var e=!1,n=t.bymonth;return n&&isNaN(parseInt(n))&&(e=!0),e},F=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},H=function(e){var t=q(e),n=!1;return a(t,function(e,t){if(!m.hasOwnProperty(t))return n=!0,!1}),n},$=function(e){var t=!1;return a(e,function(e){if(r(e,f)===-1)return t=!0,!1}),t},L=function(e){r(e,B)===-1&&(i.log("W0006",e),B.push(e))},z=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i<o;i++){var a=n[i].split("="),r=a[0].toLowerCase(),s=a[1];t[r]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var c=parseInt(t.interval);isNaN(c)||(t.interval=c)}else t.interval=1;return t.freq&&t.until&&(t.until=N(t.until)),t},N=function(e,t){if("string"!=typeof e)return e;var n=e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/);if(!n)return null;var i=void 0!==n[8],o=t?t.getTimezoneOffset():ee.getTimeZoneOffset(),a=new(Function.prototype.bind.apply(Date,W(n)));return o=6e4*o,i&&(a=new Date(a.getTime()-o)),a},W=function(e){return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),e},q=function(e){var t=[];return e.byday&&(t=e.byday.split(",")),t},G=function(e){var t=6e4*ee.getTimeZoneOffset();return e=new Date(e.getTime()+t),e.getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)+"Z"},K=function(e){var t=[];if(e.wkst||(e.wkst="MO"),e.byweekno&&!e.byday){for(var n=Object.keys(m),i=0;i<m[e.wkst];i++)n.push(n.shift());e.byday=n.join(",")}for(var o in u)if(e[o]){var a=e[o].split(","),r=j(o,a);t=t.length?Y(r,t):r}return t},j=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var a={};a[e]=U(e,t[i]),n.push(a)}return n},U=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=m[t]),n},Y=function(e,t){for(var n=[],i=0,a=e.length;i<a;i++)for(var r=0,s=t.length;r<s;r++)n.push(o({},e[i],t[r]));return n},X=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=new Date(t);for(var l in r)u[l]&&u[l](s,r[l],n.wkst,n.freq);Array.isArray(s)?i=i.concat(s):i.push(new Date(s))}return i.length||i.push(t),i},Z=function(e,t,n,i){for(var o=[],a=i.count,r=0,l=new Date(t.setDate(1));r<a;){for(var c=X(e,l,i),d=[],u=0;u<c.length;u++)c[u].getTime()>=n.getTime()&&d.push(c[u]);var h=d.length;r+=h;var p=r-a;for(r>a&&d.splice(h-p,p),u=0;u<d.length;u++)o.push(d[u]);var f=i.interval;"days"===Object.keys(f)[0]&&(f={weeks:1}),l=s.addInterval(l,f)}return o},J=function(e,t,n){for(var i=!1,o=0;o<t.length;o++){var a=t[o],r=!0;for(var s in a){var l="bymonthday"===s&&a[s]<0;p[s]&&!l&&a[s]!==p[s](e,n)&&(r=!1)}i=i||r}return i||!t.length},Q=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=G(i)),t+=n+"="+i+";")}return t=t.substring(0,t.length-1),t.toUpperCase()}},ee={getRecurrenceString:Q,getRecurrenceRule:A,getAsciiStringByDate:G,getDatesByRecurrence:C,dateInRecurrenceRange:v,getDateByAsciiString:N,daysFromByDayRule:q,getTimeZoneOffset:_};e.exports=ee},,,,,,,,function(e,t,n){var i=n(11).inArray,o=n(6),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var o=i(n,e);o!==-1&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(19),a=function(){var e=[],t=o();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=a},function(e,t,n){function i(e){function t(){for(;r.length;){s=!0;var e=r.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw o.Error("E0015")}}s=!1}function n(n,i){e?(r[0]&&i&&i(r[0]),r=[n]):r.push(n),s||t()}function i(){return s}var r=[],s=!1;return{add:n,busy:i}}var o=n(17),a=n(7).when;t.create=i,t.enqueue=i().add},function(e,t,n){n(43);var i=n(26),o=n(62),a=n(0).extend,r=n(1),s=n(8),l=n(58),c=r.isFunction,d=r.isPlainObject,u=n(4).noop;n(109);var h=l.inherit({ctor:function(e,t){d(e)&&(t=e,e=i("<div>")),this.callBase(e,t)},_setDeprecatedOptions:function(){this.callBase(),a(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return a(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var e=this._options.disabled;if(c(e)&&(e=!!e.apply(this,arguments)),e)throw o.Error("E3004",this._options.id);this.fireEvent("beforeExecute",arguments),this._createActionByOption("onExecute").apply(this,arguments),this.fireEvent("afterExecute",arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-command")},_renderDisabledState:u,_dispose:function(){this.callBase(),this.$element().removeData(this.NAME)}});s("dxCommand",h),e.exports=h},function(e,t,n){var i=n(10),o=n(11).inArray,a=n(3).each,r=i.inherit({ctor:function(){this.storage={}},getItem:function(e){return this.storage[e]},setItem:function(e,t){this.storage[e]=t},removeItem:function(e){delete this.storage[e]}}),s=i.inherit({ctor:function(e){e=e||{},this.storage=e.storage||new r,this.stateSources=e.stateSources||[]},addStateSource:function(e){this.stateSources.push(e)},removeStateSource:function(e){var t=o(e,this.stateSources);t>-1&&(this.stateSources.splice(t,1),e.removeState(this.storage))},saveState:function(){var e=this;a(this.stateSources,function(t,n){n.saveState(e.storage)})},restoreState:function(){var e=this;a(this.stateSources,function(t,n){n.restoreState(e.storage)})},clearState:function(){var e=this;a(this.stateSources,function(t,n){n.removeState(e.storage)})}});e.exports=s,e.exports.MemoryKeyValueStorage=r},function(e,t,n){n(43);var i=n(26),o=n(177).MarkupComponent,a=n(1).isPlainObject,r=n(8);n(109);var s=o.inherit({ctor:function(e,t){a(e)&&(t=e,e=i("<div>")),this.callBase(e,t)},_setDefaultOptions:function(){this.callBase(),this.option({id:null})},_render:function(){this.callBase(),this.element().addClass("dx-command-container")}});r("dxCommandContainer",s),e.exports=s},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(0).extend,r=n(4).noop,s=n(100),l=o.inherit({ctor:function(e,t){this.NAME=s.name(this.constructor),t=t||{},this._$element=i(e),s.attachInstanceToElement(this._$element,this,this._dispose),t.fromCache?this._options=t:(this._options={},this._setDefaultOptions(),t&&this.option(t),this._render())},_setDefaultOptions:r,_render:r,_dispose:r,element:function(){return this._$element},option:function(e,t){if(0===arguments.length)return this._options;if(1===arguments.length){if("string"==typeof e)return this._options[e];t=e,a(this._options,t)}else this._options[e]=t},instance:function(){return this}});l.getInstance=function(e){return s.getInstanceByElement(i(e),this)},t.MarkupComponent=l},function(e,t,n){var i=n(10),o=n(4).grep,a=n(0).extend,r=n(3).each,s=n(11).inArray,l=n(62),c=i.inherit({ctor:function(){this._commandMappings={},this._containerDefaults={}},setDefaults:function(e,t){return this._containerDefaults[e]=t,this},mapCommands:function(e,t){var n=this;return r(t,function(t,i){"string"==typeof i&&(i={id:i});var o=i.id,r=n._commandMappings[e]||{};r[o]=a({showIcon:!0,showText:!0},n._containerDefaults[e]||{},i),n._commandMappings[e]=r}),this._initExistingCommands(),this},unmapCommands:function(e,t){var n=this;r(t,function(t,i){var o=n._commandMappings[e]||{};o&&delete o[i]}),this._initExistingCommands()},getCommandMappingForContainer:function(e,t){return(this._commandMappings[t]||{})[e]},checkCommandsExist:function(e){var t=this,n=o(e,function(n,i){return s(n,t._existingCommands)<0&&s(n,e)===i});if(0!==n.length)throw l.Error("E3005",n.join("', '"),1===n.length?" is":"s are")},load:function(e){if(e){var t=this;return r(e,function(e,n){t.setDefaults(e,n.defaults),t.mapCommands(e,n.commands)}),this}},_initExistingCommands:function(){var e=this;this._existingCommands=[],r(e._commandMappings,function(t,n){r(n,function(t,n){s(n.id,e._existingCommands)<0&&e._existingCommands.push(n.id)})})}});c.defaultMapping={"global-navigation":{defaults:{showIcon:!0,showText:!0},commands:[]},"ios-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"ios-action-sheet":{defaults:{showIcon:!1,showText:!0},commands:[]},"ios-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"android-header-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},"create",{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-simple-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-footer-toolbar":{defaults:{location:"after"},commands:[{id:"create",showText:!1,location:"center"},{id:"edit",showText:!1,location:"before"},{id:"delete",locateInMenu:"always"},{id:"save",showIcon:!1,location:"before"}]},"generic-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"generic-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"win8-appbar":{defaults:{location:"after"},commands:["edit","cancel","save","delete",{id:"create",location:"before"},{id:"refresh",location:"before"}]},"win8-toolbar":{defaults:{showText:!1,location:"before"},commands:[{id:"previousPage"}]},"win8-phone-appbar":{defaults:{location:"center"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"win8-split-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,location:"before"},{id:"edit",showText:!0,locateInMenu:"always"},{id:"cancel",showText:!0,locateInMenu:"always"},{id:"delete",showText:!0,locateInMenu:"always"}]},"win8-master-detail-toolbar":{defaults:{showText:!1,location:"before"},commands:["back"]},"win10-appbar":{defaults:{showText:!1,location:"after"},commands:[{id:"back",location:"before"},"edit","cancel","save","delete","create","refresh"]},"win10-phone-appbar":{defaults:{location:"after"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"desktop-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["cancel","create","edit","save",{id:"delete",type:"danger"}]}},e.exports=c},function(e,t,n){n(43);var i=n(26),o=n(12),a=n(5),r=n(10),s=n(4),l=n(3),c=n(110),d=n(143).layoutSets,u=n(53),h=n(62),p=n(13),f=n(7).when,g="__hidden-bag",m=".dx-transition",_=".dx-content",v="onViewShown",w="dxcontentrendered.layoutController",x=".dx-pending-rendering",y=".dx-pending-rendering-manual",b=n(116);n(176),n(63);var C=function(e){return".dx-transition-"+e},k=r.inherit({ctor:function(e){e=e||{},this.name=e.name||"",this._layoutModel=e.layoutModel||{},this._defaultPaneName=e.defaultPaneName||"content",this._transitionDuration=void 0===e.transitionDuration?400:e.transitionDuration,this._showViewFired=!1},init:function(e){e=e||{},this._visibleViews={},this._$viewPort=e.$viewPort||i("body"),this._commandManager=e.commandManager,this._viewEngine=e.viewEngine,this.transitionExecutor=new b.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),e.templateContext&&(this._templateContext=e.templateContext,this._proxiedTemplateContextChangedHandler=this._templateContextChangedHandler.bind(this))},ensureActive:function(e){return this._disabledState?this.enable():this.activate(e)},activate:function(){this._showViewFired=!1;var e=this.element();return this._showElements(e),this._attachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(),this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,i.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(e,t){var n=this;t=t||this._visibleViews,l.each(t,function(t,i){n.fireEvent(e,[i])})},_notifyShowing:function(e){this._fireViewEvents("viewShowing",e)},_notifyShown:function(e){this._fireViewEvents("viewShown",e)},_notifyHidden:function(e){this._fireViewEvents("viewHidden",e)},_applyTemplate:function(e,t){e.each(function(e,n){c.templateProvider.applyTemplate(n,t)})},_releaseVisibleViews:function(){var e=this;l.each(this._visibleViews,function(t,n){e._hideView(n),e._releaseView(n)}),this._visibleViews={}},_templateContextChangedHandler:function(){var e=this,t=[];l.each(e._visibleViews,function(n,i){i.currentViewTemplateId!==e._getViewTemplateId(i)&&t.push(i)}),f.apply(i,l.map(t,function(t){return e.showView(t)})).done(function(){e._notifyShown(t)})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(e){return this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]},_prepareTemplates:function(){var e=this,t=e._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());e._$layoutTemplate=t,e._$mainLayout=e._createEmptyLayout(),e._showElements(e._$mainLayout),e._applyTemplate(e._$mainLayout,e._layoutModel),e._$navigationWidget=e._createNavigationWidget()},renderNavigation:function(e){this._clearNavigationWidget(),this._renderNavigationImpl(e)},_renderNavigationImpl:function(e){this._renderCommands(this._$mainLayout,e)},_createNavigationWidget:function(){var e,t=this._findCommandContainers(this._$mainLayout);return l.each(t,function(t,n){if("global-navigation"===n.option("id"))return e=n.element(),!1}),e},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(e){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(e,t){var n=this;this._getTransitionElements(e).each(function(e,o){n._applyTemplate(i(o).children(),t)})},_createViewLayoutTemplate:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),t},_createEmptyLayout:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),this._getTransitionElements(t).empty(),t.children(_).remove(),t},_getTransitionElements:function(e){for(var t=e.find(m).add(e.filter(m)),n=[],o=0;o<t.length;o++){var a=t.eq(o);0===a.parents(m).length&&n.push(a.get(0))}return i(n)},showView:function(e,t){t=t||"forward";var n,o=this,a=o._getPreviousViewInfo(e),r=a===e?a.currentViewTemplateId:void 0;return this._showViewFired=!0,this._updateCurrentViewTemplateId(e),r&&r===e.currentViewTemplateId&&e===a?(o.fireEvent("viewShowing",[e,t]),n=i.Deferred().resolve().promise()):(o._ensureViewRendered(e),o.fireEvent("viewShowing",[e,t]),n=this._showViewImpl(e,t,r).done(function(){o._onViewShown(e)})),n},disposeView:function(e){this._clearRenderResult(e)},_clearRenderResult:function(e){e.renderResult&&(e.renderResult.$markup.remove(),e.renderResult.$viewItems.remove(),delete e.renderResult)},_renderViewImpl:function(e,t){var n,o=this,a=".dx-command,.dx-content,script",r=this._createViewLayoutTemplate(),s=!0,l=i();if(0===e.children(a).length&&this._viewEngine._wrapViewDefaultContent(e),n=e.children(),
|
|
21
|
+
this._applyModelToTransitionElements(r,t.model),this._viewEngine.applyLayout(e,r),n.each(function(e,n){var r=i(n);o._applyTemplate(r,t.model),r.is(a)?s=!1:l=l.add(r)}),l.length&&!s)throw h.Error("E3014",l[0].outerHTML);t.renderResult=t.renderResult||{},t.renderResult.$viewItems=n,t.renderResult.$markup=r},_renderCommands:function(e,t){var n=this._findCommandContainers(e);return this._commandManager.renderCommandsToContainers(t,n)},_prepareViewCommands:function(e){var t=e.renderResult.$viewItems,n=this._commandManager.findCommands(t),i={};e.commands=c.utils.mergeCommands(e.commands||[],n),e.commandsToRenderMap=i,l.each(e.commands,function(e,t){var n=t.option("renderStage")||v,o=i[n]=i[n]||[];o.push(t)})},_applyViewCommands:function(e,t){t=t||v;var n,o=e.commandsToRenderMap[t],a=e.renderResult.$markup;return o?(n=this._renderCommands(a,o),delete e.commandsToRenderMap[t]):n=i.Deferred().resolve().promise(),n},_findCommandContainers:function(e){return p.createComponents(e,["dxCommandContainer"])},_getViewTemplateId:function(e){var t=e.$viewTemplate?e.$viewTemplate.dxView("instance"):this._viewEngine.getViewTemplateInfo(e.viewName);return t.getId()},_updateCurrentViewTemplateId:function(e){e.currentViewTemplateId=this._getViewTemplateId(e)},_ensureViewRendered:function(e){var t=e.renderResult&&e.renderResult.markupCache[e.currentViewTemplateId];t?e.renderResult.$markup=t:(this._renderView(e),e.renderResult.markupCache=e.renderResult.markupCache||{},e.renderResult.markupCache[e.currentViewTemplateId]=e.renderResult.$markup)},_renderView:function(e){var t=e.$viewTemplate||this._viewEngine.getViewTemplate(e.viewName);this._renderViewImpl(t,e),this._prepareViewCommands(e),this._applyViewCommands(e,"onViewRendering"),this._appendViewToLayout(e),t.remove(),this._onRenderComplete(e),this.fireEvent("viewRendered",[e])},_prepareTransition:function(e,t){0===e.children(".dx-content").length&&(e.wrapInner("<div>"),e.children().dxContent({targetPlaceholder:t}))},_appendViewToLayout:function(e){var t=this,n=t._getViewFrame(e),o=e.renderResult.$markup,a=i(),r=[];l.each(o.find(".dx-content-placeholder"),function(e,n){t._prepareTransition(i(n),i(n).attr("data-dx-content-placeholder-name"))}),l.each(t._getTransitionElements(n),function(e,n){var s=i(n),l=o.find(C(s.attr("data-dx-transition-name"))).children(),c={$element:l,animation:s.attr("data-dx-transition-type")};r.push(c),s.append(l),t._showViewElements(l),p.triggerShownEvent(l),a=a.add(l)}),t._$mainLayout.append(e.renderResult.$viewItems.filter(".dx-command")),o.remove(),e.renderResult.$markup=a,e.renderResult.animationItems=r},_onRenderComplete:function(e){},_onViewShown:function(e){a.trigger(o.getDocument(),"dx.viewchanged")},_enter:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.enter(i.$element,i.animation,t)})},_leave:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.leave(i.$element,i.animation,t)})},_doTransition:function(e,t,n){return e&&this._leave(e.renderResult.animationItems,n),this._enter(t.renderResult.animationItems,n),this._showView(t),this.transitionExecutor.start()},_showViewImpl:function(e,t,n){var o=this,a=this._getPreviousViewInfo(e),r={direction:t};a===e&&(a=void 0),a||(r.duration=0,r.delay=0);var s=i.Deferred();return o._doTransition(a,e,r).done(function(){o._changeView(e,n).done(function(e){s.resolve(e)})}),s.promise()},_releaseView:function(e){this.fireEvent("viewReleased",[e])},_getReadyForRenderDeferredItems:function(e){return i.Deferred().resolve().promise()},_changeView:function(e,t){var n=this;if(t)n._hideView(e,t);else{var o=n._getPreviousViewInfo(e);o&&o!==e&&(n._hideView(o),n._releaseView(o)),this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]=e}this._subscribeToDeferredItems(e);var a=i.Deferred();return this._getReadyForRenderDeferredItems(e).done(function(){n._applyViewCommands(e).done(function(){n._renderDeferredItems(e.renderResult.$markup).done(function(){a.resolve()})})}),a.promise()},_subscribeToDeferredItems:function(e){var t=this,n=e.renderResult.$markup;n.find(x).add(n.filter(x)).each(function(){var n={viewInfo:e,context:t};i(this).on(w,n,t._onDeferredContentRendered)})},_onDeferredContentRendered:function(e){var t=i(e.target),n=e.data.viewInfo,o=e.data.context;t.off(w,o._onDeferredContentRendered),o._renderCommands(t,n.commands)},_renderDeferredItems:function(e){var t=this,n=i.Deferred(),o=e.find(y).add(e.filter(y)).first();if(o.length){var a=o.data("dx-render-delegate");s.executeAsync(function(){a().done(function(){t._renderDeferredItems(e).done(function(){n.resolve()})})})}else n.resolve();return n.promise()},_getViewPaneName:function(e){return this._defaultPaneName},_hideElements:function(e){e.addClass("dx-fast-hidden")},_showElements:function(e){e.removeClass("dx-fast-hidden")},_hideViewElements:function(e){this._patchIds(e),this._disableInputs(e),e.removeClass("dx-active-view").addClass("dx-inactive-view")},_hideView:function(e,t){if(e.renderResult){var n=void 0===t?e.renderResult.$markup:e.renderResult.markupCache[t];this._hideViewElements(n),this.fireEvent("viewHidden",[e])}},_showViewElements:function(e){this._unPatchIds(e),this._enableInputs(e),e.removeClass("dx-inactive-view").addClass("dx-active-view"),this._skipAnimation(e)},_showView:function(e){e.renderResult&&this._showViewElements(e.renderResult.$markup)},_skipAnimation:function(e){e.addClass("dx-skip-animation");for(var t=0;t<e.length;t++)e.eq(t).css("transform");e.removeClass("dx-skip-animation")},_patchIds:function(e){this._processIds(e,function(e){var t=e;return e.indexOf(g)===-1&&(t=g+"-"+e),t})},_unPatchIds:function(e){this._processIds(e,function(e){var t=e;return 0===e.indexOf(g)&&(t=e.substr(g.length+1)),t})},_processIds:function(e,t){var n=e.find("[id]");l.each(n,function(e,n){var o=i(n),a=o.attr("id");o.attr("id",t(a))})},_enableInputs:function(e){var t=this._getInputs(e).filter("[data-disabled='true']");l.each(t,function(e,t){i(t).removeAttr("disabled").removeAttr("data-disabled")})},_disableInputs:function(e){var t=this._getInputs(e);t=t.filter(":not([disabled])").add(t.filter("[disabled=true]")),l.each(t,function(e,t){i(t).attr({disabled:!0,"data-disabled":!0})})},_getInputs:function(e){return e.find("input, button, select, textarea")}}).include(u);d.default=d.default||[],d.default.push({controller:new k}),t.DefaultLayoutController=k,t.layoutSets=d},function(e,t,n){var i=n(238);e.exports=i.module("dx",[])},function(e,t,n){e.exports={}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(113);var o=n(64),a=n(49),r=n(17);if(n(64),o&&o.formatNumber){var s={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{"native":"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###","long":{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},"short":{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"}},standard:"\xa4#,##0.00",accounting:"\xa4#,##0.00;(\xa4#,##0.00)","short":{standard:{"1000-count-one":"\xa40K","1000-count-other":"\xa40K","10000-count-one":"\xa400K","10000-count-other":"\xa400K","100000-count-one":"\xa4000K","100000-count-other":"\xa4000K","1000000-count-one":"\xa40M","1000000-count-other":"\xa40M","10000000-count-one":"\xa400M","10000000-count-other":"\xa400M","100000000-count-one":"\xa4000M","100000000-count-other":"\xa4000M","1000000000-count-one":"\xa40B","1000000000-count-other":"\xa40B","10000000000-count-one":"\xa400B","10000000000-count-other":"\xa400B","100000000000-count-one":"\xa4000B","100000000000-count-other":"\xa4000B","1000000000000-count-one":"\xa40T","1000000000000-count-other":"\xa40T","10000000000000-count-one":"\xa400T","10000000000000-count-other":"\xa400T","100000000000000-count-one":"\xa4000T","100000000000000-count-other":"\xa4000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}\u2013{1}"}}}}};"en"===o.locale().locale&&(o.load(s),o.locale("en"));var l={},c=function(e){var t,n;return n="object"===("undefined"==typeof e?"undefined":i(e))?o.locale().locale+":"+JSON.stringify(e):o.locale().locale+":"+e,t=l[n],t||(t=l[n]=o.numberFormatter(e)),t},d={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):c(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){var t;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):c(t)(e))},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&r.log("W0011");var n=o.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};a.inject(d)}},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(13).getPublicElement,l=n(3).each,c=n(22).compileGetter,d=n(0).extend,u=n(32),h=n(18),p=n(124),f=n(40),g=n(15),m=n(69),_=n(14),v=n(469),w=n(38),x=n(9),y=n(20),b=n(6),C=n(189),k=n(93).deviceDependentOptions,S=n(44),I=n(67),D=n(7).Deferred,T="dx-list",E="dx-list-item",A="."+E,B="dx-list-group",O="dx-list-group-header",R="dx-list-group-body",M="dx-list-collapsible-groups",P="dx-list-group-collapsed",V="dx-list-group-header-indicator",F="dx-has-next",H="dx-list-next-button",$=".dx-list-select-all",L="dxListItemData",z=70,N=c("items"),W=S.inherit({_activeStateUnit:[A,$].join(","),_supportedKeys:function(){var e=this,t=function(t){var i=n(t),a=i.is(e.option("focusedElement"));a&&(o(i,t),i=n(t)),e.option("focusedElement",s(i)),e.scrollToItem(i)},n=function(t){var n=e.scrollTop(),o=e.$element().height(),a=i(e.option("focusedElement")),r=!0;if(!a.length)return i();for(;r;){var s=a[t]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;r=l<o+n&&l>n,r&&(a=s)}return a},o=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.$element().height()+t.outerHeight()),e.scrollTo(i)};return d(this.callBase(),{leftArrow:a.noop,rightArrow:a.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:g.format("dxList-pullingDownText"),pulledDownText:g.format("dxList-pulledDownText"),refreshingText:g.format("dxList-refreshingText"),pageLoadingText:g.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:g.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},useInkRipple:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=y.current();return this.callBase().concat(k(),[{device:function(){return!f.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!f.nativeScrolling&&!_.isSimulator()&&"generic"===_.real().platform&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===_.real().deviceType&&!_.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return y.isAndroid5(e)},options:{useInkRipple:!0}},{device:function(){return"win"===_.current().platform&&_.isSimulator()},options:{bounceEnabled:!1}},{device:function(){return y.isMaterial(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return E},_itemDataKey:function(){return L},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+B).children("."+R).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},reorderItem:function(e,t){var n=this.callBase(e,t);return n.done(function(){this._refreshItemElements()})},deleteItem:function(e){var t=this.callBase(e);return t.done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=z,this._createGroupRenderAction(),this.setAria("role","listbox")},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return d(this.callBase(),{paginate:a.ensureDefined(e||t,!0)})},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),C,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=i(this._scrollView.content()),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new I(function(e,t){r.isPlainObject(t)?t.key&&e.text(t.key):e.text(String(t))},["key"],this.option("integrationOptions.watchMethod"))},_updateLoadingState:function(e){var t=!e||this._isLastPage(),n=this._scrollBottomMode(),i=t||!n,o=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e=!this._itemElements().length;this._scrollView&&!e&&this._scrollView.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(e){!this._shouldAppendItems()&&b.hasWindow()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase(e)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){return arguments.length?void(this._isLoadIndicationSuppressed=e):this._isLoadIndicationSuppressed},_scrollViewIsFull:function(){return!this._scrollView||this._scrollView.isFull()},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){var e=this.$element().is(":visible");!e||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(this._loadNextPage.bind(this)))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(l(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),y.isMaterial()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=x.addNamespace(h.name,this.NAME),t="."+O,n=this.$element(),a=this.option("collapsibleGroups");n.toggleClass(M,a),o.off(n,e,t),a&&o.on(n,e,t,function(e){this._createAction(function(e){var t=i(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",s(t.find("."+E).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new D;if(e.hasClass(P)===t)return n.resolve();var i=e.children("."+R),o=i.outerHeight(),a=0===o?i.height("auto").outerHeight():0;return e.toggleClass(P,t),u.animate(i,{type:"custom",from:{height:o},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=i(),this.$element().addClass(T),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:e,event:n};t?y.isMaterial()?this._inkRippleTimer=setTimeout(function(){i._inkRipple.showWave(o)},z/2):i._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(i(e.itemElement))},_attachSwipeEvent:function(e){var t=x.addNamespace(p.end,this.NAME);o.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(){var e=this._dataSource;e&&!e.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var n=i("<div>").addClass(B).appendTo(this._itemContainer()),o=i("<div>").addClass(O).appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,o),c={index:e,itemData:t,container:s(o)};this._createItemByTemplate(r,c),y.isMaterial()&&i("<div>").addClass(V).prependTo(o),this._renderingGroupIndex=e;var d=i("<div>").addClass(R).appendTo(n);l(N(t)||[],function(e,t){this._renderItem(e,t,d)}.bind(this)),this._groupRenderAction({groupElement:s(n),groupIndex:e,groupData:t})},attachGroupHeaderInkRippleEvents:function(){var e=this,t="."+O,n=this.$element();o.on(n,"dxpointerdown",t,function(t){e._toggleActiveState(i(t.currentTarget),!0,t)}),o.on(n,"dxpointerup dxhoverend",t,function(t){e._toggleActiveState(i(t.currentTarget),!1)})},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataSource,n=this._getNextButton();this.$element().toggleClass(F,e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=i("<div>").addClass(H),t=i("<div>").appendTo(e);return this._createComponent(t,w,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:y.isMaterial()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(b.hasWindow()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"useNative":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions(),this._invalidate();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(e),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+B),n=t.find("."+E);return d(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new D,n=this._itemContainer().find("."+B).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new D,n=this._itemContainer().find("."+B).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new D;return e._scrollView?e._scrollView.update().done(function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)}):t.resolveWith(e),t.promise()},reload:function(){this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e);this._scrollView.scrollToElement(t)}});W.ItemClass=v,e.exports=W},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(3).each,s=n(14),l=n(10),c=n(271),d="dxNativeScrollable",u="dx-scrollable-native",h="dx-scrollable-scrollbar-simulated",p="dx-scrollable-scrollbars-hidden",f="vertical",g="horizontal",m=500,_=l.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._renderPushBackOffset();var e=s.real(),t=e.platform;this._$element.addClass(u).addClass(u+"-"+t).toggleClass(p,!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:a,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(h),this._renderScrollbar(f),this._renderScrollbar(g)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new c(i("<div>").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:a,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:a,handleStop:a,_eachScrollbar:function(e){e=e.bind(this),r(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location();return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(g)?e.left>=0:void 0,reachedRight:this._isDirection(g)?e.left<=this._containerSize.width-this._componentContentSize.width:void 0,reachedTop:this._isDirection(f)?e.top>=0:void 0,reachedBottom:this._isDirection(f)?e.top<=this._containerSize.height-this._componentContentSize.height:void 0}},handleScroll:function(e){return this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),void this._pushBackFromBoundary()):void e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop(),i=t+n-2*e;n?i||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),m)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:a,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===f?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(f)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(g)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(u+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),o.off(this._$element,"."+d),o.off(this._$container,"."+d),this._removeScrollbars(),clearTimeout(this._gestureEndTimer),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var t=this.location();this._$container.scrollTop(-t.top-e.top+this.option("pushBackValue")),this._$container.scrollLeft(-t.left-e.left)},validate:function(){return!this.option("disabled")&&this._allowedDirection()},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=_},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(8),s=n(0).extend,l=n(4).noop,c=n(6),d=n(37),u=n(1).isDefined,h=n(83),p=n(3).each,f=n(29),g=n(123),m=n(14),_=n(44),v="dx-box",w=".dx-box",x="dx-box-item",y="dxBoxItemData",b={row:"minWidth",col:"minHeight"},C={row:"maxWidth",col:"maxHeight"},k=1,S={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},I={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},D={row:"row",col:"column"},T=g.inherit({_renderVisible:function(e,t){this.callBase(e),
|
|
22
|
+
u(t)&&this._options.fireItemStateChangedAction({name:"visible",state:e,oldState:t})}}),E=function(e,t,n){if(n=h.normalizeStyleProp(t,n),e.style[h.styleProp(t)]=n,!c.hasWindow()){if(""===n||!u(n))return;var i=d.dasherize(t),o=i+": "+n+";";e.attributes.style?e.attributes.style.value.indexOf(o)<0&&(e.attributes.style.value+=" "+o):e.setAttribute("style",o)}},A=a.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({display:h.stylePropPrefix("flexDirection")+"flex"}),E(this._$element.get(0),"flexDirection",D[this._option("direction")])},renderAlign:function(){this._$element.css({justifyContent:this._normalizedAlign()})},_normalizedAlign:function(){var e=this._option("align");return e in S?S[e]:e},renderCrossAlign:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})},_normalizedCrossAlign:function(){var e=this._option("crossAlign");return e in I?I[e]:e},renderItems:function(e){var t=h.stylePropPrefix("flexDirection"),n=this._option("direction");p(e,function(){var e=i(this),o=e.data(y);e.css({display:t+"flex"}).css(C[n],o.maxSize||"none").css(b[n],o.minSize||"0"),E(e.get(0),"flexBasis",o.baseSize||0),E(e.get(0),"flexGrow",o.ratio),E(e.get(0),"flexShrink",u(o.shrink)?o.shrink:k),e.children().each(function(e,t){i(t).css({width:"auto",height:"auto",display:h.stylePropPrefix("flexDirection")+"flex",flexBasis:0}),E(t,"flexGrow",1),E(t,"flexDirection",i(t)[0].style.flexDirection||"column")})})},initSize:l,update:l}),B="dxBox",O="dxupdate."+B,R="dx-box-fallback-item",M={row:"nowrap",col:"normal"},P={row:"width",col:"height"},V={row:"height",col:"width"},F={row:"marginLeft",col:"marginTop"},H={row:"marginRight",col:"marginBottom"},$={row:"marginTop",col:"marginLeft"},L={row:"marginBottom",col:"marginRight"},z={marginLeft:"marginRight",marginRight:"marginLeft"},N=a.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({fontSize:0,whiteSpace:M[this._option("direction")],verticalAlign:"top"}),o.off(this._$element,O),o.on(this._$element,O,this.update.bind(this))},renderAlign:function(){var e=this._$items;if(e){var t=this._option("align"),n=0,i=this.totalItemSize,o=this._option("direction"),a=this._$element[P[o]](),r=a-i;switch(this._setItemsMargins(e,o,0),t){case"start":break;case"end":n=r,e.first().css(this._chooseMarginSide(F[o]),n);break;case"center":n=.5*r,e.first().css(this._chooseMarginSide(F[o]),n),e.last().css(this._chooseMarginSide(H[o]),n);break;case"space-between":n=.5*r/(e.length-1),this._setItemsMargins(e,o,n),e.first().css(this._chooseMarginSide(F[o]),0),e.last().css(this._chooseMarginSide(H[o]),0);break;case"space-around":n=.5*r/e.length,this._setItemsMargins(e,o,n)}}},_setItemsMargins:function(e,t,n){e.css(this._chooseMarginSide(F[t]),n).css(this._chooseMarginSide(H[t]),n)},renderCrossAlign:function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),o=this._$element[V[n]](),a=this;switch(t){case"start":break;case"end":p(e,function(){var e=i(this),t=e[V[n]](),r=o-t;e.css(a._chooseMarginSide($[n]),r)});break;case"center":p(e,function(){var e=i(this),t=e[V[n]](),r=.5*(o-t);e.css(a._chooseMarginSide($[n]),r).css(a._chooseMarginSide(L[n]),r)});break;case"stretch":e.css(a._chooseMarginSide($[n]),0).css(a._chooseMarginSide(L[n]),0).css(V[n],"100%")}}},_chooseMarginSide:function(e){return this._option("rtlEnabled")?z[e]||e:e},renderItems:function(e){this._$items=e;var t=this._option("direction"),n=0,o=0,a=0;p(e,function(e,r){var s=i(r);s.css({display:"inline-block",verticalAlign:"top"}),s[P[t]]("auto"),s.removeClass(R);var l=s.data(y),c=l.ratio||0,d=this._baseSize(s),h=u(l.shrink)?l.shrink:k;n+=c,o+=h*d,a+=d}.bind(this));var r=this._boxSize()-a,s=function(e){var t=e.data(y),i=this._baseSize(e),a=r>=0?t.ratio||0:(u(t.shrink)?t.shrink:k)*i,s=r>=0?n:o,l=s?Math.round(r*a/s):0;return i+l}.bind(this),l=0;p(e,function(e,n){var o=i(n),a=i(n).data(y),r=s(o);l+=r,o.css(C[t],a.maxSize||"none").css(b[t],a.minSize||"0").css(P[t],r),o.addClass(R)}),this.totalItemSize=l},_baseSize:function(e){var t=i(e).data(y);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)},_contentSize:function(e){return i(e)[P[this._option("direction")]]()},_parseSize:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e},_boxSize:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)},_totalBaseSize:function(){var e=0;return p(this._$items,function(t,n){e+=this._baseSize(n)}.bind(this)),e},initSize:function(){this._boxSize(this._$element[P[this._option("direction")]]())},update:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find(w).each(function(){e===i(this).parent().closest(w).get(0)&&o.triggerHandler(this,O)})}}}),W=_.inherit({_getDefaultOptions:function(){return s(this.callBase(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function e(){var e=m.real(),t="android"===e.platform&&(e.version[0]<4||4===e.version[0]&&e.version[1]<4),n="ios"===e.platform&&e.version[0]<7;return"win"===e.platform||f.msie||t||n},options:{_layoutStrategy:"fallback"}}])},_itemClass:function(){return x},_itemDataKey:function(){return y},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.$element().addClass(v+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()},_initLayout:function(){this._layout="fallback"===this.option("_layoutStrategy")?new N(this.$element(),this.option.bind(this)):new A(this.$element(),this.option.bind(this))},_initBoxQueue:function(){this._queue=this.option("_queue")||[]},_queueIsNotEmpty:function(){return!this.option("_queue")&&!!this._queue.length},_pushItemToQueue:function(e,t){this._queue.push({$item:e,config:t})},_shiftItemFromQueue:function(){return this._queue.shift()},_initMarkup:function(){this.$element().addClass(v),this._layout.renderBox(),this.callBase(),this._renderAlign(),this._renderActions()},_renderActions:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")},_renderAlign:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()},_renderItems:function(e){for(this._layout.initSize(),this.callBase(e);this._queueIsNotEmpty();){var t=this._shiftItemFromQueue();this._createComponent(t.$item,W,s({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},t.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._isUpdated||this._layout.update(),this._isUpdated=!1,this._updateTimer=null}.bind(this))},_renderItemContent:function(e){var t=e.itemData&&e.itemData.node;return t?this._renderItemContentByNode(e,t):this.callBase(e)},_postprocessRenderItem:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)},_createItemByTemplate:function(e,t){return t.itemData.box?e.source?e.source():i():this.callBase(e,t)},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())},_dispose:function(){clearTimeout(this._updateTimer),this.callBase.apply(this,arguments)},_itemOptionChanged:function(e,t,n,i){"visible"===t&&this._onItemStateChanged({name:t,state:n,oldState:i!==!1}),this.callBase(e,t,n)},_optionChanged:function(e){switch(e.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:this.callBase(e)}},_itemOptions:function(){var e=this,t=this.callBase();return t.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},t},repaint:function(){this._dimensionChanged()}});W.ItemClass=T,r("dxBox",W),e.exports=W},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(10),s=n(33),l=r.abstract,c=r.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||i("<div>"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:l,_getWidgetName:l,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l,supportedKeys:a,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){var n=s.parse(e,t);return n?n:s.parse(e)},renderInputMinMax:a,renderOpenedState:function(){this._updateValue()},popupConfig:l,renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.off(t,"mousedown"),o.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a,getLastPopupElement:a,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a,popupHiddenHandler:a,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},_valueChangedHandler:function(e){this.dateBox.option("opened")&&"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(e.value)},useCurrentDateByDefault:a,textChangedHandler:a,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});e.exports=c},function(e,t,n){var i=n(213).fileSaver,o=n(312),a=n(221),r=n(315),s=n(1).isFunction;t.export=function(e,t,n){if(e){var o=t.exportingAction,a=t.exportedAction,r=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};s(o)&&o(l),l.cancel||n(e,t,function(e){s(a)&&a(),s(r)&&(l.data=e,r(l)),l.cancel||i.saveAs(l.fileName,t.format,e,t.proxyUrl,void 0,t.forceProxy)})}},t.fileSaver=i,t.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(217)},t.image={creator:a.imageCreator,getData:a.getData,testFormats:a.testFormats},t.pdf={getData:n(317).getData},t.svg={creator:r.svgCreator,getData:r.getData}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(11).inArray,a=n(350),r=a.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):o(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){var t=this._cache,n=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=n),"object"!==("undefined"==typeof e?"undefined":i(e)))return n.indexOf(e);for(var o=0,a=n.length;o<a;o++)if(this._equalKeys(e,n[o]))return o;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=r},function(e,t,n){e.exports=n(470)},function(e,t,n){var i=n(35),o=n(19),a=n(21),r=n(58),s=n(0).extend,l=n(3).map,c=n(156),d=n(89),u=n(504),h=n(8),p="dx-validator",f=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=o(),this._initAdapter()},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",function(e){d.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(d.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,d.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=e.$element()[0],n=i.data(t,"dx-validation-target"),o=e.option("adapter");if(!o){if(n)return o=new u(n,this),o.validationRequestsCallbacks.add(function(){e.validate()}),void this.option("adapter",o);throw a.Error("E0120")}var r=o.validationRequestsCallbacks;r&&(Array.isArray(r)?r.push(function(){e.validate()}):(a.log("W0014","validationRequestsCallbacks","jQuery.Callbacks","17.2","Use the array instead"),r.add(function(){e.validate()})))},_initMarkup:function(){this.$element().addClass(p),this.callBase()},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;default:this.callBase(e)}},_getValidationRules:function(){return this._validationRules||(this._validationRules=l(this.option("validationRules"),function(e){return s({},e,{validator:this})}.bind(this))),this._validationRules},_resetValidationRules:function(){delete this._validationRules},validate:function(){var e,t=this,n=t.option("adapter"),i=t.option("name"),o=n.bypass&&n.bypass(),a=n.getValue(),r=n.getCurrentValidationError&&n.getCurrentValidationError(),s=this._getValidationRules();return o?e={isValid:!0}:r&&r.editorSpecific?(r.validator=this,e={isValid:!1,brokenRule:r}):e=d.validate(a,s,i),this._applyValidationResult(e,n),e},reset:function(){var e=this,t=e.option("adapter"),n={isValid:!0,brokenRule:null};t.reset(),this._resetValidationRules(),this._applyValidationResult(n,t)},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated");e.validator=this,t.applyValidationResults&&t.applyValidationResults(e),this.option({isValid:e.isValid}),n(e)},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()}}).include(c);h("dxValidator",f),e.exports=f},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(8),s=n(38),l=n(69),c=n(9),d=n(0).extend,u=n(1).isPlainObject,h=n(25),p=n(280),f=n(20),g=n(90),m=n(93),_=n(44),v=n(106),w=n(67),x="dx-tabs",y="dx-tabs-wrapper",b="dx-tabs-expanded",C="dx-tabs-scrollable",k="dx-tabs-nav-buttons",S="dx-overflow-hidden",I="dx-tab",D="dx-tab-selected",T="dx-tabs-nav-button",E="dx-tabs-nav-button-left",A="dx-tabs-nav-button-right",B="dx-tab-text",O="dxTabData",R="chevronnext",M="chevronprev",P=100,V=5,F=300,H=30,$=_.inherit({_activeStateUnit:"."+I,_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=f.current();return this.callBase().concat([{device:function(){return"generic"!==a.real().platform},options:{showNavButtons:!1}},{device:{platform:"generic"},options:{scrollByContent:!1}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return f.isAndroid5(e)},options:{useInkRipple:!0}},{device:function(){return f.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(x),this._renderMultiple(),this._feedbackHideTimeout=P},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new w(function(e,t){u(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=v.getImageContainer(t.icon);e.wrapInner(i("<span>").addClass(B)),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return I},_selectedItemClass:function(){return D},_itemDataKey:function(){return O},_initMarkup:function(){this.callBase(),this._renderWrapper(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(S)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){this.$element().removeClass(b),this.$element().removeClass(S),this._allowScrolling()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this._allowScrolling()||(this._cleanScrolling(),this.$element().removeClass(k).addClass(b))},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._scrollable.$content().children("."+y).appendTo(this._itemContainer()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=l.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this.$element().wrapInner(i("<div>").addClass(y))},_renderScrollable:function(){var e=this.$element().wrapInner(i("<div>").addClass(C)).children();this._scrollable=this._createComponent(e,m,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_allowScrolling:function(){if(!this.option("scrollingEnabled"))return!1;var e=this._getSummaryItemsWidth(this._getVisibleItems(),!0);return e-1>this.$element().width()},_renderNavButtons:function(){if(this.$element().toggleClass(k,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-H,e?R:M);var t=this._leftButton.$element();t.addClass(E),this.$element().prepend(t),this._rightButton=this._createNavButton(H,e?M:R);var n=this._rightButton.$element();n.addClass(A),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,a=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,V)},V)}),r=c.addNamespace(g.name,"dxNavButton"),l=c.addNamespace(h.up,"dxNavButton"),d=c.addNamespace(h.out,"dxNavButton"),u=this._createComponent(i("<div>").addClass(T),s,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),p=u.$element();return o.on(p,r,{timeout:F},function(e){a({event:e})}.bind(this)),o.on(p,l,function(){n._clearInterval()}),o.on(p,d,function(){n._clearInterval()}),u},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_renderSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this.option("scrollingEnabled")&&this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._scrollable=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}}});$.ItemClass=p,r("dxTabs",$),e.exports=$,e.exports.getTabsExpandedClass=b},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(8),s=n(0).extend,l=n(87),c=n(70),d=n(7).Deferred,u=n(20),h="dx-loadpanel",p="dx-loadpanel-wrapper",f="dx-loadpanel-indicator",g="dx-loadpanel-message",m="dx-loadpanel-content",_="dx-loadpanel-content-wrapper",v="dx-loadpanel-pane-hidden",w=c.inherit({_supportedKeys:function(){return s(this.callBase(),{escape:o})},_getDefaultOptions:function(){return s(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return u.isMaterial()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_initOptions:function(){this.callBase.apply(this,arguments),this.option("templatesRenderAsynchronously",!1)},_render:function(){this.callBase(),this.$element().addClass(h),this._wrapper().addClass(p)},_renderContentImpl:function(){this.callBase(),this.$content().addClass(m),this._$contentWrapper=i("<div>").addClass(_),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new d,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("<div>").addClass(g).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("<div>").addClass(f).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+g).remove(),this.$content().find("."+f).remove()},_togglePaneVisible:function(){this.$content().toggleClass(v,!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});r("dxLoadPanel",w),e.exports=w},function(e,t,n){e.exports=n(491)},function(e,t,n){e.exports=n(286),e.exports.show=n(195).show,e.exports.hide=n(195).hide},function(e,t,n){var i=n(2),o=n(286),a=n(0).extend,r=n(7).Deferred,s=n(73),l=null,c=null,d=function(e){e=a({position:"top"},e);var t=e.content;delete e.content;var n=i("<div>").html(t).appendTo(s.value());c=function(){n.remove()},l=new o(n,e)},u=function(){l&&(c(),l=null)};t.show=function(e){return u(),d(e),l.show()},t.hide=function(){return l?l.hide().done(u).promise():(new r).resolve()}},function(e,t,n){var i=n(1),o=n(11).inArray,a=n(3),r=["year","month","day"],s=["year","month","day","hour","minute"];e.exports=function(){var t=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},n=function(e){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},l=function(e){return"date"===e||"datetime"===e},c=function(e){return i.isDate(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:a.map((""+e).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)})},d=function(e,o){var a,r,s,c=this,d=t(c,o);if(Array.isArray(e)&&i.isDefined(e[0])&&i.isDefined(e[1]))return r=[d,">=",e[0]],s=[d,"<=",e[1]],l(c.dataType)&&n(e[1])&&(a=new Date(e[1].getTime()),a.setDate(e[1].getDate()+1),s=[d,"<",a]),[r,"and",s]},u=function(n,i,o){var a,r,s,l=this,d=c(n),u=t(l,o);switch("headerFilter"===o?s=e.exports.getGroupInterval(l)[d.length-1]:"datetime"===l.dataType&&(s="minute"),s){case"year":a=new Date(d[0],0,1),r=new Date(d[0]+1,0,1);break;case"month":a=new Date(d[0],d[1],1),r=new Date(d[0],d[1]+1,1);break;case"quarter":a=new Date(d[0],3*d[1],1),r=new Date(d[0],3*d[1]+3,1);break;case"hour":a=new Date(d[0],d[1],d[2],d[3]),r=new Date(d[0],d[1],d[2],d[3]+1);break;case"minute":a=new Date(d[0],d[1],d[2],d[3],d[4]),r=new Date(d[0],d[1],d[2],d[3],d[4]+1);break;case"second":a=new Date(d[0],d[1],d[2],d[3],d[4],d[5]),r=new Date(d[0],d[1],d[2],d[3],d[4],d[5]+1);break;default:a=new Date(d[0],d[1],d[2]),r=new Date(d[0],d[1],d[2]+1)}switch(i){case"<":return[u,"<",a];case"<=":return[u,"<",r];case">":return[u,">=",r];case">=":return[u,">=",a];case"<>":return[[u,"<",a],"or",[u,">=",r]];default:return[[u,">=",a],"and",[u,"<",r]]}},h=function(n,o,a){var r=this,s=t(r,a),l=e.exports.getGroupInterval(r);if("headerFilter"===a&&l&&i.isDefined(n)){var c,d,u,h=(""+n).split("/"),p=Number(h[h.length-1]);c=l[h.length-1],d=[s,">=",p],u=[s,"<",p+c];var f=[d,"and",u];return f}return[s,o||"=",n]};return{defaultCalculateFilterExpression:function(e,n,o){var a=this,r=t(a,o),s=a.calculateDisplayValue&&"search"===o,c=s&&a.lookup&&a.lookup.dataType||a.dataType,p=null;if("headerFilter"!==o&&"filterBuilder"!==o||null!==e)if("string"!==c||a.lookup&&!s){if("between"===n)return d.apply(a,[e,o]);if(l(c)&&i.isDefined(e))return u.apply(a,arguments);if("number"===c)return h.apply(a,arguments);"object"!==c&&(p=[r,n||"=",e])}else p=[r,n||"contains",e];else p=[r,n||"=",null],"string"===c&&(p=[p,"="===n?"or":"and",[r,n||"=",""]]);return p},getGroupInterval:function(e){var t,n=[],a=["year","month","day","hour","minute","second"],c=e.headerFilter&&e.headerFilter.groupInterval,d="quarter"===c?"month":c;return l(e.dataType)&&null!==c?(n="datetime"===e.dataType?s:r,t=o(d,a),t>=0?(n=a.slice(0,t),n.push(c),n):n):i.isDefined(c)?Array.isArray(c)?c:[c]:void 0}}}()},function(e,t,n){var i=n(2),o=n(12),a=n(6),r=a.getWindow(),s=n(5),l=n(35),c=n(18),d=n(29),u=n(4),h=n(83),p=n(13).getPublicElement,f=n(1),g=n(3),m=n(0).extend,_=n(103).getDefaultAlignment,v=n(14),w=n(46),x=n(45),y=n(369),b=u.noop,C="scroll-container",k="group-space",S="content",I="table",D="table-fixed",T="content-fixed",E="dx-row",A="dx-group-row",B="dx-master-detail-row",O="filter-row",R="0.0001px",M="dxCellHintVisible",P="dx-field-item-content",V={render:function(e){e.container.append(e.content)}},F=function(e,t){function n(e){return setTimeout(function(){o=a=null},e)}var o,a,r;s.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(r),"touchstart"===e.type?(o=e.target,a=e.currentTarget,r=n(1e3)):r=n()}),s.on(t,"dxclick",".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var n=t.event;o&&(n.target=o,n.currentTarget=a),i(n.target).closest("a").length||(t.rowIndex=e.getRowIndex(n.currentTarget),t.rowIndex>=0&&(t.rowElement=p(i(n.currentTarget)),t.columns=e.getColumns(),e._rowClick(t)))}))},H=function(e){return"auto"===e?"":f.isNumeric(e)?e+"px":e},$=function(e,t,n){e.style.width=e.style.maxWidth=n,t.command||"auto"!==t.width||""!==n||(e.style.width="1px")};t.ColumnsView=w.View.inherit(y).inherit({_createScrollableOptions:function(){var e=this,t=e.option("scrolling"),n=e.option("scrolling.useNative"),i=m({},t,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===n&&(n=!0),"auto"===n?(delete i.useNative,delete i.useSimulatedScrollbar):(i.useNative=!!n,i.useSimulatedScrollbar=!n),i},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||_(this.option("rtlEnabled")),a=o.createElement("td");a.style.textAlign=n;var r=i(a);return"data"===e.rowType&&t.id&&this.setAria("describedby",t.id,r),!f.isDefined(t.groupIndex)&&t.cssClass&&r.addClass(t.cssClass),"expand"===t.command&&(r.addClass(t.cssClass),r.addClass(this.addWidgetPrefix(k))),t.colspan>1?r.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(a.style.minWidth=H(t.minWidth||t.width)),t.width&&$(a,t,H(t.width))),r},_createRow:function(e){var t=i("<tr>").addClass(E);return this.setAria("role","row",t),t},_createTable:function(e,t){var n=this,o=i("<table>").addClass(n.addWidgetPrefix(I)).addClass(n.addWidgetPrefix(D));if(e&&!t?(o.append(n._createColGroup(e)),v.real().ios&&o.append(i("<thead>").append("<tr>")),n.setAria("role","presentation",o)):n.setAria("hidden",!0,o),this.setAria("role","presentation",i("<tbody>").appendTo(o)),t)return o;d.mozilla&&s.on(o,"mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),n.option("cellHintEnabled")&&s.on(o,"mousemove",".dx-row > td",this.createAction(function(e){var t,o=e.event,a=i(o.target),r=i(o.currentTarget),s=r.parent(),l=s.hasClass("dx-data-row"),c=s.hasClass("dx-header-row"),u=s.hasClass(A),h=s.hasClass(B),p=s.hasClass(n.addWidgetPrefix(O)),g=n._columnsController.getVisibleColumns(),m=s.data("options"),_=r.index(),v=m&&m.cells&&m.cells[_],w=v?v.column:g[_],x=d.msie?1:0;h||p||l&&(!l||!w||w.cellTemplate)||c&&(!c||!w||w.headerCellTemplate)||u&&(!u||!w||void 0!==w.groupIndex&&w.groupCellTemplate)||(a.data(M)&&(a.removeAttr("title"),a.data(M,!1)),t=a[0].scrollWidth-a[0].clientWidth-x,t>0&&!f.isDefined(a.attr("title"))&&(a.attr("title",a.text()),a.data(M,!0)))}));var a=function(e){var t,o,a=i(e.currentTarget),r=i(e.target).closest("."+P),s=a.parent().data("options"),l=s&&s.cells&&s.cells[a.index()];if(a.closest("table").is(e.delegateTarget))return o=m({},l,{cellElement:p(a),event:e,eventType:e.type}),r.length&&(t=r.data("dx-form-item"),t.column&&(o.column=t.column,o.columnIndex=n._columnsController.getVisibleIndex(o.column.index))),o;
|
|
23
|
+
};return s.on(o,"mouseover",".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellHoverChanged",t)}),s.on(o,"mouseout",".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellHoverChanged",t)}),s.on(o,c.name,".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellClick",t)}),F(n,o),o},_isNativeClick:u.noop,_rowClick:u.noop,_createColGroup:function(e){var t,n,o,a=i("<colgroup>");for(t=0;t<e.length;t++)for(o=e[t].colspan||1,n=0;n<o;n++)a.append(this._createCol(e[t]));return a},_createCol:function(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=R);var n=i("<col>");return h.setWidth(n,t),n},renderDelayedTemplates:function(){var e=this._delayedTemplates,t=e.filter(function(e){return!e.async}),n=e.filter(function(e){return e.async});this._delayedTemplates=[],this._renderDelayedTemplatesCore(t),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&r.setTimeout(function(){t._renderDelayedTemplatesCore(e,!0)})},_renderDelayedTemplatesCore:function(e,t){for(var n,a=new Date;e.length;){n=e.shift();var r=n.options,s=r.model,l=o.getDocument();if(t&&!i(r.container).closest(l).length||(n.template.render(r),s&&s.column&&this._updateCell(r.container,s)),t&&new Date-a>30){this._renderDelayedTemplatesCoreAsync(e);break}}},_processTemplate:function(e){var t,n,o=this;return e&&e.render&&!f.isRenderer(e)?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}}:f.isFunction(e)?n={render:function(t){var n=e(p(t.container),t.model);n&&(n.nodeType||f.isRenderer(n))&&t.container.append(n)}}:(t=f.isString(e)?e:i(e).attr("id"),t?(o._templatesCache[t]||(o._templatesCache[t]=o.getTemplate(e)),n=o._templatesCache[t]):n=o.getTemplate(e)),n},renderTemplate:function(e,t,n,i){var o,a=this,r=a._processTemplate(t,n),s=n.column,l="data"===n.rowType;if(r){if(n.component=a.component,o=s&&(s.renderAsync&&l||a.option("renderAsync")&&(s.renderAsync!==!1&&(s.command||s.showEditorAlways)&&l||"filter"===n.rowType)),(r.allowRenderToDetachedContainer||i)&&!o)return r.render({container:e,model:n}),!0;a._delayedTemplates.push({template:r,options:{container:e,model:n},async:o})}return!1},_appendRow:function(e,t,n){n=n||V,n.render({content:t,container:e})},_resizeCore:function(){var e=this,t=e._scrollLeft;t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){e=e||{};var t,n=this;e.columns=n._columnsController.getVisibleColumns();var i=e.change&&e.change.changeType;return t=n._createTable(e.columns,"append"===i||"prepend"===i),n._renderRows(t,e),t},_renderRows:function(e,t){var n,i=this,o=i._getRows(t.change);for(n=0;n<o.length;n++)i._renderRow(e,m({row:o[n]},t))},_renderRow:function(e,t){var n,i=this;t.row.cells=[],n=i._createRow(t.row),i._renderCells(n,t),i._appendRow(e,n),i._rowPrepared(n,m({columns:t.columns},t.row))},_renderCells:function(e,t){var n,i=this,o=0,a=t.row,r=t.columns;for(n=0;n<r.length;n++)i._renderCell(e,m({column:r[n],columnIndex:o,value:a.values&&a.values[o]},t)),r[n].colspan>1?o+=r[n].colspan:o++},_setCellAriaAttributes:function(e,t){"freeSpace"!==t.rowType&&(this.setAria("selected",!1,e),this.setAria("role","gridcell",e),this.setAria("colindex",t.columnIndex+1,e))},_renderCell:function(e,t){var n,i=this,o=i._getCellOptions(t);return t.row.cells.push(o),n=i._createCell(o),i._setCellAriaAttributes(n,o),i._renderCellContent(n,o),e.get(0).appendChild(n.get(0)),n},_renderCellContent:function(e,t){var n=this._getCellTemplate(t);n&&!this.renderTemplate(e,n,t)||this._updateCell(e,t)},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){return{column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType}},_cellPrepared:function(e,t){t.cellElement=p(i(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){l.data(e.get(0),"options",t),t.rowElement=p(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if(x.checkChanges(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=g.map(n,function(e){var t=e.visibleWidth||e.width;return f.isDefined(t)?t:"auto"});return void this.setColumnWidths(i)}this._requireReady||this.render()},getTableElements:function(){return this._tableElement||i()},_getTableElement:function(){return this._tableElement},_setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:u.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this,n=t.element(),i=n&&n.children("."+t.addWidgetPrefix(C)).not("."+t.addWidgetPrefix(T));t._skipScrollChanged=!1,f.isDefined(e)&&f.isDefined(e.left)&&t._scrollLeft!==e.left&&(t._scrollLeft=e.left,i&&i.scrollLeft(Math.round(e.left)),t._skipScrollChanged=!0)},_wrapTableInScrollContainer:function(e){var t,n=this;return t=i("<div>"),s.on(t,"scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}),t.addClass(n.addWidgetPrefix(S)).addClass(n.addWidgetPrefix(C)).append(e).appendTo(n.element()),n.setAria("role","presentation",t),t},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:u.noop,_getWidths:function(e){var t,n,i=[],o=this.option("legacyRendering");return e&&g.each(e,function(e,a){t=a.offsetWidth,a.getBoundingClientRect&&(n=a.getBoundingClientRect(),n.width>t-1&&(t=o?Math.ceil(n.width):n.width)),i.push(t)}),i},getColumnWidths:function(e){var t,n,i=this,o=[];if((this.option("forceApplyBindings")||b)(),e=e||i._getTableElement()){t=e.children("tbody").children();for(var a=0;a<t.length;a++){var r=t.eq(a),s="none"!==r.get(0).style.display&&!r.hasClass("dx-state-invisible");if(!r.is("."+A)&&!r.is("."+B)&&s){n=r.children("td");break}}o=i._getWidths(n)}return o},getVisibleColumnIndex:function(e,t){return e},setColumnWidths:function(e,t,n,i){var o,a,r,s,l,c=this.option("columnAutoWidth"),d=this.option("legacyRendering");if(t=t||this._getTableElement(),t&&t.length&&e)for(l=0,o=t.children("colgroup").children("col"),h.setWidth(o,"auto"),n=n||this.getColumns(null,t),a=0;a<n.length;a++){if(!d&&c&&!i&&(r=n[a].width,r&&!n[a].command)){r=n[a].visibleWidth||r,r=H(r),s=H(n[a].minWidth||r);for(var u=u||t.children().children(".dx-row").not("."+A).not("."+B),p=0;p<u.length;p++){var g=this.getVisibleColumnIndex(a,p),m=u[p].cells[g];m&&($(m,n[a],r),m.style.minWidth=s)}}n[a].colspan?l+=n[a].colspan:(r=e[l],"adaptiveHidden"===r&&(r=R),"number"==typeof r&&(r=r.toFixed(3)+"px"),h.setWidth(o.eq(l),f.isDefined(r)?r:"auto"),l++)}},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){var t=this._getRowElements().eq(e);return t.children()},_getCellElement:function(e,t){var n,i=this,o=i.getCellElements(e),a=i._getVisibleColumnIndex(o,e,t);if(o.length&&a>=0&&(n=o.eq(a)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=i(),o=t.getTableElements();if(g.each(o,function(o,a){n=n.add(t._getRowElements(i(a)).eq(e))}),n.length)return n},getCellElement:function(e,t){return p(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!p(t).get)for(var i=0;i<t.length;i++)n.push(t[i]);else n=t;return n},_getVisibleColumnIndex:function(e,t,n){var i;return f.isString(n)?(i=this._columnsController.columnOption(n,"index"),this._columnsController.getVisibleIndex(i)):n},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();if(i.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex<i.length?e.rowIndex:i.length-1),n=this.getCellElements(e.rowIndex),n&&n.length>0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElements:function(e){return e=e||this._getTableElement(),e&&e.find("> tbody > ."+E+", > tbody."+E+", > ."+E)||i()},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this,n=t.element(),i=t.option("rtlEnabled");n&&n.css(i?{paddingLeft:e}:{paddingRight:e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}})},,,,,function(e,t,n){var i=n(119);i.framework=n(325),n(43),n(345),n(109),n(113),n(356),n(182),n(357),n(358),n(18),n(159),n(206),n(78),n(90),n(157),n(25),n(124),n(359),e.exports=i},function(e,t,n){var i=n(6).getWindow(),o=n(1),a=["auto","none","inherit","initial"],r=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:r(t,["padding"+n,"padding"+i]),border:r(t,["border"+n+"Width","border"+i+"Width"]),margin:r(t,["margin"+n,"margin"+i])}},l=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0},c=function(e,t,n){var o=i.getComputedStyle(e),a=s(t,o),r=e.getClientRects().length,c=e.getBoundingClientRect()[t],d=r?c:0;return d<=0?(d=parseFloat(o[t]||e.style[t])||0,d-=l(t,o,a)):d-=a.padding+a.border,n.paddings&&(d+=a.padding),n.borders&&(d+=a.border),n.margins&&(d+=a.margin),d},d=function(e){return o.isWindow(e)?e.innerHeight:e.offsetHeight},u=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*d(t)/100:isNaN(e)||(e=parseInt(e)),e},h=function(e,t,n){if(!e)return null;if(a.indexOf(e)>-1)return t?null:e;if(o.isString(e)&&(e=u(e,n)),o.isNumeric(e))return Math.max(0,e+t);var i=t<0?" - ":" ";return"calc("+e+i+Math.abs(t)+"px)"},p=function(e,t,n){var i=h(e,t,n);return null!==i?i:"none"},f=function(e,t,n){var i=h(e,t,n);return null!==i?i:0},g=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},m=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};t.getSize=c,t.getElementBoxParams=s,t.addOffsetToMaxHeight=p,t.addOffsetToMinHeight=f,t.getVerticalOffsets=g,t.getVisibleHeight=m},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(39),s=n(0).extend,l=n(11).inArray,c=n(3).each,d=n(1),u=n(6),h=n(24),p=n(31).fitIntoRange,f=n(58),g=n(9),m=n(78),_=d.isPlainObject,v=d.isFunction,w=n(13),x="dxResizable",y="dx-resizable",b="dx-resizable-resizing",C="dx-resizable-handle",k="dx-resizable-handle-top",S="dx-resizable-handle-bottom",I="dx-resizable-handle-left",D="dx-resizable-handle-right",T="dx-resizable-handle-corner",E=g.addNamespace(m.start,x),A=g.addNamespace(m.move,x),B=g.addNamespace(m.end,x),O={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},R=f.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null})},_init:function(){this.callBase(),this.$element().addClass(y)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");c(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("<div>");n.addClass(C).addClass(C+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[E]=this._dragStartHandler.bind(this),t[A]=this._dragHandler.bind(this),t[B]=this._dragEndHandler.bind(this),o.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null},_toggleResizingClass:function(e){this.$element().toggleClass(b,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+C),o=n.outerWidth(),a=n.outerHeight(),r=n.offset(),s=t.offset;e.maxLeftOffset=r.left-s.left,e.maxRightOffset=s.left+t.width-r.left-o,e.maxTopOffset=r.top-s.top,e.maxBottomOffset=s.top+t.height-r.top-a}},_getBorderWidth:function(e,t){if(d.isWindow(e.get(0)))return 0;var n=e.css(O[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),r=o.width+a.x*(n.left?-1:1),s=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(r),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),c=a.y-((l.height||s)-s),d=a.x-((l.width||r)-r);h.move(t,{top:i.top+(n.top?c:0),left:i.left+(n.left?d:0)}),this._resizeAction({event:e,width:this.option("width")||r,height:this.option("height")||s,handles:this._movingSides}),w.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=r.pairToObject(this.option("step")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,r=n.top?i.top:i.top+o.height,s=(a+e.x)%t.h,l=(r+e.y)%t.v,c=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},d=function(e,t){return(1+.2*c(t))%1*e},u=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>d(t.h,e.x)&&(h+=t.h),l>d(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||u(e.x,t.h)?0:h,y:!n.top&&!n.bottom||u(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(T+"-top-left"),o=t.hasClass(T+"-top-right"),a=t.hasClass(T+"-bottom-left"),r=t.hasClass(T+"-bottom-right");return{top:t.hasClass(k)||n||o,left:t.hasClass(I)||n||a,bottom:t.hasClass(S)||a||r,right:t.hasClass(D)||o||r}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),_(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},d.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",p(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",p(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":u.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":u.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+C).remove()}});a(x,R),e.exports=R},function(e,t,n){e.exports=n(502)},function(e,t,n){var i=n(5),o=n(13),a=n(12),r=n(10),s=n(61),l=n(18),c=n(9),d="dxdblclick",u="dxDblClick",h=c.addNamespace(l.name,u),p=300,f=r.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-p},add:function(){this._handlerCount<=0&&i.on(a.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStamp<p?(c.fireEvent({type:d,target:o.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(a.getDocument(),h))}});s(d,new f),t.name=d},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(4).noop,r=n(15),s=n(8),l=n(0).extend,c=n(38),d=n(44),u=n(60),h=n(130),p=n(67),f=n(7).Deferred,g="dx-actionsheet",m="dx-actionsheet-container",_="dx-actionsheet-popup-wrapper",v="dx-actionsheet-popover-wrapper",w="dx-actionsheet-cancel",x="dx-actionsheet-item",y="dxActionSheetItemData",b="dx-actionsheet-without-title",C=d.inherit({_getDefaultOptions:function(){return l(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:r.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new p(function(e,t){var n=new c(i("<div>"),l({onClick:t&&t.click},t));e.append(n.$element())},["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return x},_itemDataKey:function(){return y},_toggleVisibility:a,_renderDimensions:a,_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("<div>").addClass(m),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup._wrapper().toggleClass(b,!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!o.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h,l(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass(v)},_createPopup:function(){this._createComponent(this._$popup,u,l(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:o},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:o}},to:{position:{my:"bottom",at:"bottom",of:o}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:o}},to:{position:{my:"top",at:"bottom",of:o}}}}})),this._popup._wrapper().addClass(_)},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||a,t=this;this._$cancelButton=i("<div>").addClass(w).appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,c,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:a,_itemClickHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new f;return t._popup.toggle(e).done(function(){t.option("visible",e),n.resolveWith(t)}),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",C),e.exports=C},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6).getWindow(),r=n(5),s=n(50),l=n(8),c=n(4),d=n(1),u=n(0).extend,h=n(11).inArray,p=n(147),f=n(125),g=n(21),m=n(9),_=n(14),v=n(209),w=n(15),x=n(20),y=n(101),b=n(7).Deferred,C=".dx-list-item",k="dxListItemData",S="dx-dropdownlist-popup-wrapper",I="dx-skip-gesture-event",D="input",T=["startswith","contains","endwith","notcontains"],E=p.inherit({_supportedKeys:function(){var e=this.callBase();return u({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=o(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:c.noop,home:c.noop,end:c.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return u(this.callBase(),u(v._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:w.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:c.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{popupPosition:{offset:{v:-6}}}},{device:function(){return x.isAndroid5()},options:{popupWidthExtension:32}},{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),u(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new y("item",this)},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_createPopup:function(){this.callBase(),this._popup._wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();r.off(e,"mouseup"),r.on(e,"mouseup",this._saveFocusOnWidget.bind(this))},_popupWrapperClass:function(){return S},_renderInputValue:function(){var e=this._getCurrentValue();return this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_loadItem:function(e,t){var n,o;return t&&"object"!==("undefined"==typeof e?"undefined":i(e))&&(t.itemByValue||(t.itemByValue={},n=this._getPlainItems(),n.forEach(function(e){t.itemByValue[this._valueGetter(e)]=e},this)),o=t.itemByValue[e]),o||(n=this._getPlainItems(),o=c.grep(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),void 0!==o?(new b).resolve(o).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||[];for(var n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",c.ensureDefined(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,n){var i=o(n),a=this._valueGetter(i.data(k)),r=this._isSelectedValue(a,e);r?this._list.selectItem(i):this._list.unselectItem(i)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if(h(t,T)<0)throw g.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(C):o()},_popupConfig:function(){var e=this;return u(this.callBase(),{templatesRenderAsynchronously:!1,width:this.option("width"),onShowing:function(){e.$element().addClass(I)},onHidden:function(){e.$element().removeClass(I)},height:"auto",autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this._renderList()},_attachChildKeyboardEvents:function(){this._childKeyboardProcessor=this._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._childKeyboardProcessor)},_fireContentReadyAction:c.noop,_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this),this._list.setAria("role","combobox")},_renderList:function(){this._listId="dx-"+(new s)._value;var e=this._$list=o("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,f,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._renderPreventBlur(this._$list)},_renderPreventBlur:function(e){var t=m.addNamespace("mousedown","dxDropDownList");r.off(e,t),r.on(e,t,function(e){e.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase();var e=this.option("opened")||void 0;this.setAria({activedescendant:e&&this._list.getFocusedItemId(),owns:e&&this._listId})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){var e=!!this._list.option("dataSource");return e!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===_.real().deviceType},_getListKeyExpr:function(){var e=this.option("valueExpr"),t=d.isString(e)&&"this"!==e;return t?e:null},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this._getTemplateByOption("itemTemplate"),indicateLoading:!1,keyExpr:this._getListKeyExpr(),groupTemplate:this.option("groupTemplate"),tabIndex:null,onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_keyboardProcessor:this._childKeyboardProcessor,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return e},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:c.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]));
|
|
24
|
+
},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return m.addNamespace(D,this.NAME+"Search")},_getSetFocusPolicyEvent:function(){return m.addNamespace("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),r.on(this._input(),this._getSetFocusPolicyEvent(),this._setFocusPolicy.bind(this)),this._shouldRenderSearchEvent()&&r.on(this._input(),this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){r.off(this._input(),this._getSearchEvent()),r.off(this._input(),this._getSetFocusPolicyEvent()),this.callBase()},_searchHandler:function(){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()},_searchCanceled:function(){this._clearSearchTimer(),this._needPassDataSourceToList()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;return t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e))},_clearFilter:function(){var e=this._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){!this.option("readOnly")&&this._searchValue()&&(this.option("opened",this._shouldOpenPopup()),this.option("opened")&&this._dimensionChanged())},_dataSourceChangedHandler:function(e){0===this._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=this._dataSource&&this._dataSource.items()||[],t=e.length,n=this._needPassDataSourceToList();return!(!n||!t)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this._popup&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth()+this.option("popupWidthExtension"))},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=d.isDefined(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupHeight:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=e.offset(),n=o(a).height(),i=Math.max(t.top,n-t.top-e.outerHeight());return Math.min(.5*n,i)},_clean:function(){this._list&&delete this._list,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getListKeyExpr());break;case"displayExpr":this._renderValue();break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(v);l("dxDropDownList",E),e.exports=E},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(71),r=n(22),s=n(4),l=n(1),c=n(0).extend,d=n(95),u=n(112),h=n(52),p=n(79),f=n(7).Deferred,g=c(u,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new h.DataSource({store:new p(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=r.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=r.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new f;return e=this._unwrappedValue(e),l.isDefined(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail(function(){t.reject()}),t.promise()):t.reject().promise()},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){return e=l.isDefined(e)?e:this._getCurrentValue(),e&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),a.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},o=0,a=t.length;o<a;o++)n[t[o]]=e[t[o]];return n}return t&&"object"===("undefined"==typeof e?"undefined":i(e))&&(e=e[t]),e},_isValueEquals:function(e,t){var n=this._dataSource&&this._dataSource.key(),i=l.isDefined,o=this._compareValues(e,t);return!o&&n&&i(e)&&i(t)&&(o=Array.isArray(n)?this._compareByCompositeKey(e,t,n):this._compareByKey(e,t,n)),o},_compareByCompositeKey:function(e,t,n){var i=l.isObject;if(!i(e)||!i(t))return!1;for(var o=0,a=n.length;o<a;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},_compareByKey:function(e,t,n){var i=s.ensureDefined,o=a.unwrap,r=i(o(e[n]),e),l=i(o(t[n]),t);return this._compareValues(r,l)},_compareValues:function(e,t){return r.toComparable(e,!0)===r.toComparable(t,!0)},_initDynamicTemplates:function(){this._displayGetterExpr()?(this._originalItemTemplate=this._defaultTemplates.item,this._defaultTemplates.item=new d(function(e){return o("<div>").text(this._displayGetter(e.model)).html()}.bind(this))):this._originalItemTemplate&&(this._defaultTemplates.item=this._originalItemTemplate)},_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this._getTemplateByOption("itemTemplate"))},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._setCollectionWidgetItemTemplate()}}});e.exports=g},function(e,t,n){var i=n(2),o=n(48),a=n(8),r=n(0).extend,s=n(6),l=n(32),c="dx-trackbar",d="dx-trackbar-container",u="dx-trackbar-range",h="dx-trackbar-wrapper",p=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass(c),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=i("<div>").addClass(h).appendTo(this.$element())},_renderContainer:function(){this._$bar=i("<div>").addClass(d).appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("<div>").addClass(u).appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(e<t)return this.option("value",t),void(this._currentRatio=0);if(e>n)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(e){return l.stop(this._$range),e?void(!this._needPreventAnimation&&s.hasWindow()&&l.animate(this._$range,{type:"custom",duration:100,to:e})):void this._$range.css({width:0})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){l.stop(this._$range),this.callBase()}});a("dxTrackBar",p),e.exports=p},function(e,t,n){var i=n(8),o=n(5),a=n(4).grep,r=n(0).extend,s=n(3),l=n(156),c=n(89),d=n(44),u="dx-validationsummary",h=u+"-item",p=u+"-item-data",f=d.inherit({_getDefaultOptions:function(){return r(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),r(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this._findGroup(),t=c.addGroup(e);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=e,this.groupSubscription=this._groupValidationHandler.bind(this),t.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=c.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return s.each(e,function(e,i){var o=a(t,function(e){if(e.validator===i)return!0})[0];o&&n.push(o)}),n},_groupValidationHandler:function(e){var t=this,n=t._getOrderedItems(e.validators,s.map(e.brokenRules,function(e){return{text:e.message,validator:e.validator}}));t.validators=e.validators,s.each(t.validators,function(e,n){if(n._validationSummary!==this){var i=t._itemValidationHandler.bind(t),o=function(){n.off("validated",i),n._validationSummary=null,i=null};n.on("validated",i),n.on("disposing",o),n._validationSummary=this}}),t.option("items",n)},_itemValidationHandler:function(e){var t,n=this.option("items"),i=e.isValid,o=!1,a=e.brokenRule&&e.brokenRule.message,r=e.validator;s.each(n,function(e,n){if(n.validator===r)return i?t=e:n.text=a,o=!0,!1}),i^o||(i?n.splice(t,1):n.push({text:a,validator:r}),n=this._getOrderedItems(this.validators,n),this.option("items",n))},_initMarkup:function(){this.$element().addClass(u),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return h},_itemDataKey:function(){return p},_postprocessRenderItem:function(e){o.on(e.itemElement,"click",function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()})},_dispose:function(){this.callBase(),this._unsubscribeGroup()}}).include(l);i("dxValidationSummary",f),e.exports=f},function(e,t,n){var i=n(2),o=n(4).noop,a=n(3).each,r=n(17),s=n(22).compileGetter,l=n(10),c=n(38),d=l.abstract,u="dx-toolbar-menu-container",h="dx-toolbar-menu-button",p=l.inherit({ctor:function(e){this._toolbar=e},render:function(){this._renderMenuButton(),this._renderWidget()},_widgetOptions:function(){var e=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(t){this._toggleMenu(!1,!0),e(t)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var e=i("<div>").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:d,_menuWidgetClass:d,_hasVisibleMenuItems:function(e){var t=e||this._toolbar.option("items"),n=!1,i=s("visible"),o=s("locateInMenu"),l=!1;return a(t,function(e,t){var a=i(t,{functionsAsIs:!0}),r=o(t,{functionsAsIs:!0});"menu"===t.location&&(l=!0),a===!1||"auto"!==r&&"always"!==r&&"menu"!==t.location||(n=!0)}),l&&r.log("W0001","dxToolbar - 'location' item field","menu","16.1","Use 'locateInMenu' item field instead."),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_updateMenuVisibility:o,_renderMenuButton:function(){var e=this._menuButtonOptions();this._renderMenuButtonContainer(),this._$button=i("<div>").appendTo(this._$menuButtonContainer).addClass(h),this._toolbar._createComponent(this._$button,c,e)},_menuButtonOptions:function(){return{onClick:this._menuButtonClickHandler.bind(this)}},_menuButtonClickHandler:function(){this._toggleMenu(!this._menuShown,!0)},_renderMenuButtonContainer:function(){var e=this._toolbar._$afterSection;this._$menuButtonContainer=i("<div>").appendTo(e).addClass(this._toolbar._buttonClass()).addClass(u)},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},toggleMenuVisibility:function(e,t){this._menu&&this._toggleMenu(e,t)},_toggleMenu:function(e){this._menuShown=e},getMenuWidget:function(){return this._menu},widgetOption:function(e,t){this._menu&&this._menu.option(e,t)},handleToolbarVisibilityChange:o});e.exports=p},function(e,t,n){var i=n(2),o=n(12),a=n(6),r=a.getWindow(),s=a.getNavigator(),l=n(5),c=n(21),d=n(29),u=n(1),h={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},p=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){return"data:"+p[e]+";base64,"+t},_linkDownloader:function(e,t,n){var a=o.createElement("a"),r={download:e,href:t};return l.on(i(a),"click",function(){i(a).remove(),n&&n.apply(this,arguments)}),o.getBody().appendChild(a),i(a).css({display:"none"}).text("load").attr(r)[0].click(),a},_formDownloader:function(e,t,n,o){var a={method:"post",action:e,enctype:"multipart/form-data"},r=i("<form>").css({display:"none"}).attr(a);r.append('<input type="hidden" name="fileName" value="'+t+'" />'),r.append('<input type="hidden" name="contentType" value="'+n+'" />'),r.append('<input type="hidden" name="data" value="'+o+'" />'),r.appendTo("body"),l.trigger(r,"submit"),l.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,p[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(p[n],["."+h[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_saveBlobAs:function(e,t,n,i){var o=this;if(o._blobSaved=!1,u.isDefined(s.msSaveOrOpenBlob))s.msSaveOrOpenBlob(n,e),o._blobSaved=!0;else if(u.isDefined(r.WinJS))o._winJSBlobSave(n,e,t),o._blobSaved=!0;else{var a=r.URL||r.webkitURL||r.mozURL||r.msURL||r.oURL;if(u.isDefined(a)){var l=a.createObjectURL(n),c=o._revokeObjectURLTimeout,d=function(e){setTimeout(function(){a.revokeObjectURL(l)},c)};return o._linkDownloader(e,l,d)}}},saveAs:function(e,t,n,i,o,a){if(e+="."+h[t],a)this._saveByProxy(i,e,t,n);else if(u.isFunction(r.Blob))this._saveBlobAs(e,t,n,o);else if(u.isDefined(i)&&!u.isDefined(s.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{if(u.isDefined(s.userAgent.match(/iPad/i))||c.log("E1034"),d.msie&&parseInt(d.version)<10)return;this._linkDownloader(e,this._getDataUri(t,n),o)}}}},function(e,t,n){var i=n(35),o=n(12),a=n(6),r=a.getWindow(),s=n(1),l=n(83),c=n(203),d=n(216),u=function(e,t){return new h(e,t)},h=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:o.getBody(),this.length=1,this):(t=t||o.getDocument(),"<"===e[0]?(this[0]=o.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,o.querySelectorAll(t,e)),this)):o.isNode(e)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):u(e.toArray?e.toArray():[e]):(this.length=0,this)};u.fn={dxRenderer:!0},h.prototype=u.fn;var p=function(e,t){for(var n=0;n<this.length;n++){var i=u(this[n]);i[e].apply(i,t)}return this},f=function(e,t,n){void 0!==n&&null!==n?o.setAttribute(e,t,n):o.removeAttribute(e,t)};h.prototype.show=function(){return this.toggle(!0)},h.prototype.hide=function(){return this.toggle(!1)},h.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},h.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return s.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n<t.length;n++)if(this[0].classList){if(this[0].classList.contains(t[n]))return!0}else if(this[0].className.split(" ").indexOf(t[n])>=0)return!0;return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i<n.length;i++)o.setClass(this[0],n[i],t);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach(function(e){var t=e.toLowerCase().indexOf("width")>=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),a=0===e.indexOf("inner");h.prototype[e]=function(l){if(this.length>1&&arguments.length>0)return p.call(this,e,arguments);var d=this[0];if(d){if(s.isWindow(d))return i?d["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(d)){var u=o.getDocumentElement(),h=o.getBody();return Math.max(h["scroll"+t],h["offset"+t],u["scroll"+t],u["offset"+t],u["client"+t])}if(0===arguments.length||"boolean"==typeof l){var f={paddings:a||i,borders:i,margins:l};return c.getSize(d,n,f)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var g=r.getComputedStyle(d),m=c.getElementBoxParams(n,g),_="border-box"===g.boxSizing;i?l-=_?0:m.border+m.padding:a?l+=_?m.border:-m.padding:_&&(l+=m.border+m.padding)}return l+=s.isNumeric(l)?"px":"",o.setStyle(d,n,l),this}}}),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!d.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(d.parseHTML(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=d.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n<e.length;n++){var i=e[n],a=this[0],r="TABLE"===a.tagName&&"TR"===i.tagName;r&&a.tBodies&&a.tBodies.length&&(a=a.tBodies[0]),o.insertElement(a,i.nodeType?i:i[0],t)}}},m=function(e,t){if(this[0]&&this[0].style){e=l.styleProp(e);for(var n=0;n<this.length;n++)this[n].style[e]=l.normalizeStyleProp(e,t)}};h.prototype.css=function(e,t){if(s.isString(e)){if(2!==arguments.length){if(!this[0])return;e=l.styleProp(e);var n=r.getComputedStyle(this[0])[e]||this[0].style[e];return s.isNumeric(n)?n.toString():n}m.call(this,e,t)}else if(s.isPlainObject(e))for(var i in e)m.call(this,i,e[i]);return this},h.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return g.apply(this,[e,this[0].firstChild]),this},h.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return g.apply(this,[e]),this},h.prototype.prependTo=function(e){return e=u(e),e[0]&&o.insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(o.insertElement(u(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=u(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.insertBefore(this),this.remove(),e},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(o.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t].cloneNode(!0));return u(e)},h.prototype.text=function(e){if(!arguments.length){for(var t="",n=0;n<this.length;n++)t+=this[n]&&this[n].textContent||"";return t}var a=s.isFunction(e)?e():e;return i.cleanDataRecursive(this[0],!1),o.setText(this[0],s.isDefined(a)?a:""),this},h.prototype.val=function(e){return 1===arguments.length?this.prop("value",s.isDefined(e)?e:""):this.prop("value")},h.prototype.contents=function(){if(!this[0])return u();var e=[];return e.push.apply(e,this[0].childNodes),u(e)},h.prototype.find=function(e){var t=u();if(!e)return t;var n,i=[];if("string"==typeof e)for(e=e.trim(),n=0;n<this.length;n++){var a=this[n];if(o.isElementNode(a)){var r=a.getAttribute("id"),s=r||"dx-query-children";r||f(a,"id",s),s="[id='"+s+"'] ";var l=s+e.replace(/([^\\])(,)/g,"$1, "+s);i.push.apply(i,o.querySelectorAll(a,l)),f(a,"id",r)}else o.isDocument(a)&&i.push.apply(i,o.querySelectorAll(a,e))}else for(n=0;n<this.length;n++)e=o.isNode(e)?e:e[0],this[n]!==e&&this[n].contains(e)&&i.push(e);return t.add(i)};var _=function(e,t){return!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};h.prototype.filter=function(e){if(!e)return u();if(":visible"===e)return this.filter(_);if(":hidden"===e)return this.filter(function(e,t){return!_(e,t)});for(var t=[],n=0;n<this.length;n++){var i=this[n];if(o.isElementNode(i)&&"string"===s.type(e))o.elementMatches(i,e)&&t.push(i);else if(o.isNode(e)||s.isWindow(e))e===i&&t.push(i);else if(s.isFunction(e))e.call(i,n,i)&&t.push(i);else for(var a=0;a<e.length;a++)e[a]===i&&t.push(i)}return u(t)},h.prototype.not=function(e){for(var t=[],n=this.filter(e).toArray(),i=0;i<this.length;i++)n.indexOf(this[i])===-1&&t.push(this[i]);return u(t)},h.prototype.is=function(e){return!!this.filter(e).length},h.prototype.children=function(e){for(var t=[],n=0;n<this.length;n++)for(var i=this[n]?this[n].childNodes:[],a=0;a<i.length;a++)o.isElementNode(i[a])&&t.push(i[a]);return t=u(t),e?t.filter(e):t},h.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return u();for(var t=[],n=e.parentNode.childNodes||[],i=0;i<n.length;i++){var a=n[i];o.isElementNode(a)&&a!==e&&t.push(a)}return u(t)},h.prototype.each=function(e){for(var t=0;t<this.length&&e.call(this[t],t,this[t])!==!1;t++);},h.prototype.index=function(e){return e?(e=u(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},h.prototype.get=function(e){return this[e<0?this.length+e:e]},h.prototype.eq=function(e){return e=e<0?this.length+e:e,u(this[e])},h.prototype.first=function(){return this.eq(0)},h.prototype.last=function(){return this.eq(-1)},h.prototype.parent=function(e){if(!this[0])return u();var t=u(this[0].parentNode);return!e||t.is(e)?t:u()},h.prototype.parents=function(e){for(var t=[],n=this.parent();n&&n[0]&&!o.isDocument(n[0]);)o.isElementNode(n[0])&&(!e||e&&n.is(e))&&t.push(n.get(0)),n=n.parent();return u(t)},h.prototype.closest=function(e){if(this.is(e))return this;for(var t=this.parent();t&&t.length;){if(t.is(e))return t;t=t.parent()}return u()},h.prototype.next=function(e){if(!this[0])return u();var t=u(this[0].nextSibling);if(!arguments.length)return t;for(;t&&t.length;){if(t.is(e))return t;t=t.next()}return u()},h.prototype.prev=function(){return this[0]?u(this[0].previousSibling):u()},h.prototype.add=function(e){for(var t=u(e),n=this.toArray(),i=0;i<t.length;i++){var o=t[i];n.indexOf(o)===-1&&n.push(o)}return u(n)};var v=[];h.prototype.splice=function(){return u(v.splice.apply(this,arguments))},h.prototype.slice=function(){return u(v.slice.apply(this,arguments))},h.prototype.toArray=function(){return v.slice.call(this)};var w=function(e){return s.isWindow(e)?e:e.defaultView};h.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var e=this[0].getBoundingClientRect(),t=w(this[0].ownerDocument),n=this[0].ownerDocument.documentElement;return{top:e.top+t.pageYOffset-n.clientTop,left:e.left+t.pageXOffset-n.clientLeft}}},h.prototype.offsetParent=function(){if(!this[0])return u();for(var e=u(this[0].offsetParent);e[0]&&"static"===e.css("position");)e=u(e[0].offsetParent);return e=e[0]?e:u(o.getDocumentElement())},h.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return e=this[0].getBoundingClientRect(),{top:e.top-t,left:e.left-n};e=this.offset();var i=this.offsetParent(),o={top:0,left:0};return"HTML"!==i[0].nodeName&&(o=i.offset()),o={top:o.top+parseFloat(i.css("borderTopWidth")),left:o.left+parseFloat(i.css("borderLeftWidth"))},{top:e.top-o.top-t,left:e.left-o.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach(function(e){var t=e.name;h.prototype[t]=function(n){if(this[0]){var i=w(this[0]);return void 0===n?i?i[e.offsetProp]:this[0][t]:(i?e.scrollWindow(i,n):this[0][t]=n,this)}}}),h.prototype.data=function(e,t){if(this[0])return arguments.length<2?i.data.call(u,this[0],e):(i.data.call(u,this[0],e,t),this)},h.prototype.removeData=function(e){return this[0]&&i.removeData(this[0],e),this};var x=function(){return u.apply(this,arguments)};Object.defineProperty(x,"fn",{enumerable:!0,configurable:!0,get:function(){return u.fn},set:function(e){u.fn=e}}),e.exports={set:function(e){u=e},get:function(){return x}}},function(e,t,n){var i=["pageX","pageY","screenX","screenY","clientX","clientY"],o=function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;if(n.length)return n[0][e]};e.exports=function(e){i.forEach(function(t){e(t,function(e){return o(t,e)})},this)}},function(e,t,n){var i=n(11).merge,o=n(12),a=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,r={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;var s=function(e){if("string"!=typeof e)return null;var t=o.createDocumentFragment(),n=t.appendChild(o.createElement("div")),s=a.exec(e),l=s&&s[1].toLowerCase(),c=r[l]||r.default;n.innerHTML=c.startTags+e+c.endTags;for(var d=0;d<c.tagsCount;d++)n=n.lastChild;return i([],n.childNodes)},l=function(e){var t=a.exec(e);return t&&t[1]in r};t.parseHTML=s,t.isTablePart=l},function(e,t,n){var i=n(1),o=n(39),a=n(49),r=n(33),s=n(219).getFormat,l=n(261).getLanguageId,c={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},d=1632,u={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},h=/a+/g,p=/E/g,f=/dE+/g,g=/L/g,m=/h/g,_=/\//g,v=/\[/g,w=/]/g,x=/./g;n(137);var y=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return a.getOpenXmlCurrencyFormat(e)},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if(t=e.charCodeAt(n),t>=d&&t<d+10)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.replace(_,"\\/").split("'").map(function(e,t){return t%2===0?e.replace(h,"AM/PM").replace(f,"d").replace(p,"d").replace(g,"M").replace(m,"H").replace(v,"\\[").replace(w,"\\]"):e?e.replace(x,"\\$&"):"'"}).join("")},_convertDateFormat:function(e){e=c[e&&e.type||e]||e;var t=this,n=(r.format(new Date(2009,8,8,6,5,4),e)||"").toString(),i=s(function(t){return r.format(t,e)});return i=t._convertDateFormatToOpenXml(i),i=t._getLanguageInfo(n)+i},_getLanguageInfo:function(e){var t=l(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a="currency"===e?this._getCurrencyFormat(n):u[e.toLowerCase()];return a&&(i=o.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,o){if(i.isDefined(e)){if("date"===n)return y._convertDateFormat(e);if(i.isString(e)&&u[e.toLowerCase()])return y._convertNumberFormat(e,t,o)}}}},function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}var o={3:"abbreviated",4:"wide",5:"narrow"},a={y:function(e,t,n){var o=e[n?"getUTCFullYear":"getFullYear"]();return 2===t&&(o%=100),i(o.toString(),t)},M:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"format")[r]:i((r+1).toString(),Math.min(t,2))},L:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"standalone")[r]:i((r+1).toString(),Math.min(t,2))},Q:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=Math.floor(r/3),l=o[t];return l?a.getQuarterNames(l)[s]:i((s+1).toString(),Math.min(t,2))},E:function(e,t,n,i){var a=e[n?"getUTCDay":"getDay"](),r=o[t<3?3:t];return i.getDayNames(r)[a]},a:function(e,t,n,i){var a=e[n?"getUTCHours":"getHours"](),r=a<12?0:1,s=o[t];return i.getPeriodNames(s)[r]},d:function(e,t,n){return i(e[n?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,n){return i(e[n?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},h:function(e,t,n){
|
|
25
|
+
var o=e[n?"getUTCHours":"getHours"]();return i((o%12||12).toString(),Math.min(t,2))},m:function(e,t,n){return i(e[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2))},s:function(e,t,n){return i(e[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,n){return i(e[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,n){var o=n?0:e.getTimezoneOffset(),a=o>0?"-":"+",r=Math.abs(o),s=Math.floor(r/60),l=r%60,c=i(s.toString(),2),d=i(l.toString(),2);return a+c+(t>=3?":":"")+(t>1||l?d:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":a.x(e,t,n)},Z:function(e,t,n){return a.X(e,t>=5?3:2,n)}},r=function(e,t){return function(n){var i,o,r,s,l=0,c="'",d=!1,u="";if(!n)return null;if(!e)return n;var h="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i<e.length;i++)r=e[i],o=a[r],s=r===e[i+1],l++,s||(o&&!d&&(u+=o(n,l,h,t)),l=0),r!==c||s?!d&&o||(u+=r):d=!d,r===c&&s&&i++;return u}};e.exports.getFormatter=r},function(e,t,n){var i="\u060c",o=" .,:;/\\<>()-[]"+i,a=1632,r=function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=a&&t<a+10},s=function(e,t,n){var i=e[t],a=e[t-1],s=e[t+1];if(!n){if("."===i||" "===i&&"."===a)return!0;if("-"===i&&!r(s))return!0}return o.indexOf(i)<0&&n===r(i)},l=function(e,t){if(!r(e[t]))for(;t>0&&!r(e[t-1])&&("."===e[t-1]||o.indexOf(e[t-1])<0);)t--;return t},c=function(e,t,n,i){var o=0,a=[],c=function(t){return e[o]!==t[o]&&(void 0===i||r(e[o])===i)};for(Array.isArray(t)||(t=[t]),o=0;o<e.length;o++)if(n.indexOf(o)<0&&t.filter(c).length){o=l(e,o);do{if(i=r(e[o]),!a.length&&!i&&r(t[0][o]))break;a.push(o),n.unshift(o),o++}while(e[o]&&s(e,o,i));break}return 1!==a.length||"0"!==e[n[0]-1]&&"\u0660"!==e[n[0]-1]||n.unshift(n[0]-1),a},d=function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach(function(t,i){e=e.substr(0,a+i)+(n.length>1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("\u0660"+n,n+n)),e},u=function(e,t,n,i){var o,a,s;if(!r(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o<i.length;o++)i[o]--;e=e.substr(0,s)+e.substr(s+1)}for(a=t[t.length-1]+1,s=a<i.length?i[a]:a;t.length<l;){for(t.push(t[t.length-1]+1),o=a;o<i.length;o++)i[o]++;e=e.substr(0,s)+" "+e.substr(s)}}return e=d(e,t,n,i)},h=function(e,t){return Array.isArray(e)?e.map(function(e){return(t(e)||"").toString()}):(t(e)||"").toString()},p=/[a-zA-Z]/g,f=function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(e.match(p)||"'"===e)?i[t]:-1});return e=e.split("").map(function(e,t){var n=e,i=o.indexOf(t)>=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n}).join("")},g=function(e){var t=[],n=h(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),o=n,a={},r=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return r.forEach(function(r){var s=c(n,h(r.date,e),t,r.isDigit),l="M"!==r.pattern||a.d?r.pattern:"L";o=u(o,s,l,i),a[l]=s.length}),o=f(o,n,t,i),t.length?o:void 0};t.getFormat=g},function(e,t,n){var i=n(3),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=["AM","PM"],s=["Q1","Q2","Q3","Q4"],l=function(e,t){var n={abbreviated:3,"short":2,narrow:1};return i.map(e,function(e){return e.substr(0,n[t])})};e.exports={getMonthNames:function(e){return l(o,e)},getDayNames:function(e){return l(a,e)},getQuarterNames:function(e){return s},getPeriodNames:function(e){return r}}},function(e,t,n){function i(e,t,n){var i=H("<canvas>")[0];return i.width=e+2*n,i.height=t+2*n,i}function o(e,t){var n=e.toDataURL(t,se),i=G.atob(n.substring(("data:"+t+";base64,").length));return i}function a(e,t,n,i,o,a,r,s){var l,c,d,u,h,p,f=(e+n)/2,g=(t+i)/2,m=ne(t-i,e-n),_=a?1:-1;m+=90*(Z/180)*(r?1:-1),l=ee(te(n-e,2)+te(i-t,2))/2,c=ee(Q(te(o,2)-te(l,2))),d=f+_*(c*ie(m)),u=g+_*(c*oe(m)),h=ne(t-u,e-d),p=ne(i-u,n-d),s.arc(d,u,o,h,p,!r)}function r(e){var t,n=he(e.attributes||{}),i=e.style||{},o=N({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),a=n.transform;return a&&(t=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.translateX=re(t[0]),o.translateY=t[1]?re(t[1]):0),t=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=re(t[0]),o.rotationX=t[1]&&re(t[1]),o.rotationY=t[2]&&re(t[2]))),d(i,o),o}function s(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=J(r,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,r),e.arcTo(o,a,0,a,r),e.arcTo(0,a,0,0,r),e.arcTo(0,0,r,0,r),e.lineTo(o/2,0),e.restore()):e.rect(t.x,t.y,t.width,t.height)}function l(e,t){var n=new Y,i=new G.Image;i.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,b(e,t),C(e,t),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore(),n.resolve()},i.onerror=function(){n.resolve()},P.push(n),i.setAttribute("crossOrigin","anonymous"),i.src=t["xlink:href"]}function c(e,t){var n,i,o=t.split(" "),r=0;do switch(n=re(o[r+1]),i=re(o[r+2]),o[r]){case"M":e.moveTo(n,i),r+=3;break;case"L":e.lineTo(n,i),r+=3;break;case"C":e.bezierCurveTo(n,i,re(o[r+3]),re(o[r+4]),re(o[r+5]),re(o[r+6])),r+=7;break;case"A":a(re(o[r-2]),re(o[r-1]),re(o[r+6]),re(o[r+7]),n,re(o[r+4]),re(o[r+5]),e),r+=8;break;case"Z":e.closePath(),r+=1}while(r<o.length)}function d(e,t){ae(e,function(n,i){""!==e[i]&&(t[K(i)]=e[i])}),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}function u(e){var t=e&&e.match(/url\(.*#(.*?)["']?\)/i);return t&&t[1]}function h(e,t){var n=[];t.fontSize=t.fontSize||ce,t.fontFamily||de,t.fill=t.fill||ue,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function p(e,t){h(e,t),y(e,t),t.text&&e.fillText(t.text,t.x||0,t.y||0),T(e,t,!0),f(e,t)}function f(e,t){if(t.textDecoration&&"none"!==t.textDecoration){var n=t.x,i=e.measureText(t.text).width,o=parseInt(t.fontSize,10),a=o*le<1?1:o*le,r=t.y;switch(t.textDecoration){case"line-through":r-=o/3+a/2;break;case"overline":r-=o-a;break;case"underline":r+=a}e.rect(n,r,i,a),A(e,t),T(e,t)}}function g(e){M[e.attributes.id.textContent]=e.childNodes[0]}function m(e){V[e.attributes.id.textContent]=e}function _(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}function v(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function w(e,t,n){for(var i,o=[],a=0,s=0;s<e.length;s++){var l=e[s];if(void 0===l.tagName)x(l,t,n);else if("tspan"===l.tagName||"text"===l.tagName){var c=r(l),d=N({},n,c);if("tspan"===l.tagName&&v(l)){w(l.childNodes,t,d);continue}d.textAlign="start",i&&void 0===c.x||(i={elements:[],options:[],widths:[],offsets:[]},o.push(i)),void 0!==c.y&&(a=0),void 0!==c.dy&&(a+=parseFloat(c.dy)),i.elements.push(l),i.options.push(d),i.offsets.push(a),h(t,d),i.widths.push(t.measureText(d.text).width)}}o.forEach(function(e){var i=e.widths.reduce(function(e,t){return e+t},0),o=0,a=0;"center"===n.textAlign&&(o=i/2),"end"===n.textAlign&&(o=i),e.options.forEach(function(t,n){var i=e.widths[n];t.x=t.x-o+a,t.y+=e.offsets[n],a+=i}),e.elements.forEach(function(n,i){w(n.childNodes,t,e.options[i])})})}function x(e,t,n){var i=e.tagName,o="text"===i||"tspan"===i||void 0===i,a="image"===i,d=N({},n,r(e));if("hidden"!==d.visibility){switch(t.save(),!a&&b(t,d),C(t,d),_(d),t.beginPath(),e.tagName){case void 0:p(t,d);break;case"text":case"tspan":w(e.childNodes,t,d);break;case"image":l(t,d);break;case"path":c(t,d.d);break;case"rect":s(t,d),t.closePath();break;case"circle":t.arc(d.cx,d.cy,d.r,0,2*Z,1)}o||(y(t,d),A(t,d),T(t,d)),t.restore()}}function y(e,t){var n,i=u(t.filter);i&&(n=F&&F[i],n||(n={offsetX:0,offsetY:0,blur:0,color:"#000"}),e.shadowOffsetX=n.offsetX,e.shadowOffsetY=n.offsetY,e.shadowColor=n.color,e.shadowBlur=n.blur)}function b(e,t){e.translate(t.translateX||0,t.translateY||0),delete t.translateX,delete t.translateY,t.rotationAngle&&(e.translate(t.rotationX||0,t.rotationY||0),e.rotate(t.rotationAngle*Z/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),delete t.rotationAngle,delete t.rotationX,delete t.rotationY)}function C(e,t){t["clip-path"]&&(x(M[u(t["clip-path"])],e,{}),e.clip(),delete t["clip-path"])}function k(e,t){var n=new $(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function S(e){var t,n,i={};ae(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":a.stdDeviation&&(i.blur=re(a.stdDeviation.value));break;case"offsetResult":i.offsetX=re(a.dx.value),i.offsetY=re(a.dy.value);break;case"floodResult":t=a["flood-color"]?a["flood-color"].value:"#000",n=a["flood-opacity"]?a["flood-opacity"].value:1,i.color=k(t,n)}}),F[e.id]=i}function I(e,t,n){ae(e,function(e,i){switch(i.tagName&&i.tagName.toLowerCase()){case"g":var o=N({},n,r(i));t.save(),b(t,o),C(t,o),I(i.childNodes,t,o),t.restore();break;case"defs":M={},V={},F={},I(i.childNodes,t);break;case"clippath":g(i);break;case"pattern":m(i);break;case"filter":S(i);break;default:x(i,t,n)}})}function D(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&e.setLineDash&&(n=z.map(n,function(e){return re(e)}),e.setLineDash(n))}function T(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(D(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function E(e,t){var n=V[u(t)],o=r(n),a=i(o.width,o.height,0),s=a.getContext("2d");return I(n.childNodes,s,o),e.createPattern(a,"repeat")}function A(e,t){var n=t.fill;n&&"none"!==n&&(e.fillStyle=n.search(/url/)===-1?n:E(e,n),e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1)}function B(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}function O(e,t,n,o,a){var r=i(t,n,a),s=r.getContext("2d"),l=new G.DOMParser,c=l.parseFromString(e,"image/svg+xml"),d=c.childNodes[0];return s.translate(a,a),P=[],W.getBody().appendChild(r),d.attributes.direction&&(r.dir=d.attributes.direction.textContent),B(s,t,n,o,a),I(d.childNodes,s,{}),W.getBody().removeChild(r),r}function R(e,t,n){U.apply(H,P).done(function(){var i=o(t,n);e.resolve(i)})}var M,P,V,F,H=n(2),$=n(86),L=n(1).isFunction,z=n(3),N=n(0).extend,W=n(12),q=n(6),G=q.getWindow(),K=n(37).camelize,j=n(7),U=j.when,Y=j.Deferred,X=Math,Z=X.PI,J=X.min,Q=X.abs,ee=X.sqrt,te=X.pow,ne=X.atan2,ie=X.cos,oe=X.sin,ae=z.each,re=Number,se=1,le=.05,ce="10px",de="sans-serif",ue="#000",he=function(e){var t,n={};return z.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=re(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=new Y,o=t.width,a=t.height,r=t.backgroundColor;return L(t.__parseAttributesFn)&&(he=t.__parseAttributesFn),R(i,O(e,o,a,r,t.margin),n),i},getData:function(e,n){var i=this,o=t.imageCreator.getImageData(e,n),a="image/"+n.format,r=new Y;return U(o).done(function(e){o=L(G.Blob)&&!n.forceProxy?i._getBlob(e,a):i._getBase64(e),r.resolve(o)}),r},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new G.Blob([i.buffer],{type:t})},_getBase64:function(e){return G.btoa(e)}},t.getData=function(e,n,i){t.imageCreator.getData(e,n).done(i)},t.testFormats=function(e){var t=i(100,100,0);return e.reduce(function(e,n){var i=("image/"+n).toLowerCase();return t.toDataURL(i).indexOf(i)!==-1?e.supported.push(n):e.unsupported.push(n),e},{supported:[],unsupported:[]})}},function(e,t,n){var i=n(2),o=n(12),a=n(6),r=a.getWindow(),s=n(5),l=n(0).extend,c=n(121),d=n(40),u=n(83),h=n(14),p=function(e){e=l({},e);var t=h.real(),n=e.allowZoom,a=e.allowPan,p="allowSelection"in e?e.allowSelection:"generic"===t.platform,f="meta[name=viewport]";i(f).length||i("<meta>").attr("name","viewport").appendTo("head");var g=["width=device-width"],m=[];if(n?m.push("pinch-zoom"):g.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),a&&m.push("pan-x","pan-y"),a||n?i("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):i("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!p&&d.supportProp("userSelect")&&i(".dx-viewport").css(u.styleProp("userSelect"),"none"),i(f).attr("content",g.join()),i("html").css("msTouchAction",m.join(" ")||"none"),t=h.real(),!d.touch||"win"===t.platform&&10===t.version[0]||(s.off(o.getDocument(),".dxInitMobileViewport"),s.on(o.getDocument(),"dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,r=!a&&1===t&&!e.isScrollingEvent;i&&(o||r)&&e.preventDefault()})),t.ios){var _="file:"===o.getLocation().protocol;_||c.add(function(){var e=i(r).width();i("body").width(e)})}t.android&&c.add(function(){setTimeout(function(){var e=o.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)})})};t.initMobileViewport=p},function(e,t,n){var i=n(19)();e.exports=function(){i.fire()},e.exports.processCallback=i},function(e,t,n){var i=n(1).isFunction,o=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,a={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},r=function(e,t,n,i){var o=3*e,a=3*(n-e)-o,r=1-o-a,s=3*t,l=3*(i-t)-s,c=1-s-l,d=function(e){return e*(o+e*(a+e*r))},u=function(e){return e*(s+e*(l+e*c))},h=function(e){for(var t,n=e,i=0;i<14&&(t=d(n)-e,!(Math.abs(t)<.001));)n-=t/p(n),i++;return n},p=function(e){return o+e*(2*a+3*e*r)};return function(e){return u(h(e))}},s={},l=function(e){e=a[e]||e;var t,n=e.match(o);n||(t="linear",n=a[t].match(o)),n=n.slice(1,5);for(var l=0;l<n.length;l++)n[l]=parseFloat(n[l]);var c=t||"cubicbezier_"+n.join("_").replace(/\./g,"p");return i(s[c])||(s[c]=function(e,t,i,o,a){return o*r(n[0],n[1],n[2],n[3])(t/a)+i}),c};t.setEasing=function(e){s=e},t.getEasing=function(e){return s[e]},t.convertTransitionTimingFuncToEasing=l},function(e,t,n){var i=n(14),o=n(0).extend,a=n(3).each,r=n(140),s={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},l=function(e){var t=[];return a(e.touches,function(e,n){t.push(o({pointerId:n.identifier},n))}),{pointers:t,pointerId:e.changedTouches[0].identifier}},c=function(e){return"ios"===i.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},d=r.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(c(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});d.map=s,d.normalize=l,e.exports=d},function(e,t,n){var i=n(3).each,o=n(51),a=n(12),r=function(e,t){o.add(function(){e.split(" ").forEach(function(e){a.listen(a.getDocument(),e,t,!0)})})},s=function(e,t,n){n=n||function(){};var o=[],a=function(e){var n=-1;return i(o,function(i,o){return!t(e,o)||(n=i,!1)}),n},s=function(e){a(e)===-1&&(n(e),o.push(e))},l=function(e){var t=a(e);t>-1&&o.splice(t,1)},c=function(e){o[a(e)]=e};r(e.dxpointerdown,s),r(e.dxpointermove,c),r(e.dxpointerup,l),r(e.dxpointercancel,l),this.pointers=function(){return o},this.reset=function(){o=[]}};e.exports=s},function(e,t,n){var i,o=n(0).extend,a=n(140),r=n(226),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},c=!1,d=function(){c||(i=new r(s,function(){return!0}),c=!0)},u=a.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});u.map=s,u.normalize=l,u.activate=d,u.resetObserver=function(){i.reset()},e.exports=u},function(e,t,n){var i=n(2),o=n(12),a=n(56),r=n(1),s=n(66),l=n(13),c=n(327).getClosestNodeWithContext,d=function(e){var t=o.createElement("div");a.applyBindingsToNode(t,null,e);var n=a.contextFor(t);return a.cleanNode(t),n},u=s.inherit({ctor:function(e){this._element=e,this._template=i("<div>").append(l.normalizeTemplateElement(e)),this._registerKoTemplate()},_registerKoTemplate:function(){var e=this._template.get(0);new a.templateSources.anonymousTemplate(e).nodes(e)},_prepareDataForContainer:function(e,t){if(t&&t.length){var n=t.get(0),i=c(n),o=a.contextFor(i);if(e=void 0!==e?e:a.dataFor(i)||{},o)return e===o.$data?o:o.createChildContext(e)}return d(e).createChildContext(e)},_renderCore:function(e){var t=this._prepareDataForContainer(e.model,i(e.container));r.isDefined(e.index)&&(t.$index=e.index);var n,o=i("<div>").appendTo(e.container);return a.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=i(e)}},o.get(0),"replaceNode"),n},source:function(){return i(this._element).clone()},dispose:function(){this._template.remove()}});e.exports=u},function(e,t,n){var i=n(17),o=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var o=t(n);if(o<1)throw i.Error("E0014");1===o?delete e[n]:e[n]=o-1},locked:function(e){return t(e)>0}}};e.exports=o},function(e,t,n){var i=n(19);e.exports=new i},function(e,t,n){n(43);var i=n(26),o=n(4),a=n(6).getWindow(),r=n(12),s=n(115),l=n(0),c=n(3).each,d=n(62),u=n(232).Application,h=n(82).ConditionalViewCacheDecorator,p=n(143),f=n(235),g=n(237).ViewEngine,m=n(15),_=n(73).value,v=n(222),w=n(14),x=n(96),y=n(116),b=n(139),C=n(7).when;n(179),n(20);var k="dx-viewport",S="layout-change",I=u.inherit({ctor:function(e){e=e||{},this.callBase(e),this._$root=i(e.rootNode||r.getBody()),this._initViewport(e.viewPort),"mobileApp"===this._applicationMode&&v.initMobileViewport(e.viewPort),this.device=e.device||w.current(),this.commandManager=e.commandManager||new f({commandMapping:this.commandMapping}),this._initTemplateContext(),this.viewEngine=e.viewEngine||new g({$root:this._$root,device:this.device,templateCacheStorage:e.templateCacheStorage||a.localStorage,templatesVersion:e.templatesVersion,templateContext:this._templateContext}),this.components.push(this.viewEngine),this._initMarkupFilters(this.viewEngine),this._layoutSet=e.layoutSet||p.layoutSets.default,this._animationSet=e.animationSet||p.animationSets.default,this._availableLayoutControllers=[],this._activeLayoutControllersStack=[],this.transitionExecutor=new y.TransitionExecutor,this._initAnimations(this._animationSet)},_initAnimations:function(e){e&&(c(e,function(e,t){c(t,function(t,n){b.presets.registerPreset(e,n)})}),b.presets.applyChanges())},_localizeMarkup:function(e){m.localizeNode(e)},_notifyIfBadMarkup:function(e){e.each(function(){var e=i(this).html();/href="#/.test(e)&&d.log("W3005",e)})},_initMarkupFilters:function(e){var t=[];t.push(this._localizeMarkup),e.markupLoaded&&e.markupLoaded.add(function(e){c(t,function(t,n){n(e.markup)})})},_createViewCache:function(e){var t=this.callBase(e);return e.viewCache||(t=new h({filter:function(e,t){return!t.viewTemplateInfo.disableCache},viewCache:t})),t},_initViewport:function(){this._$viewPort=this._getViewPort(),_(this._$viewPort)},_getViewPort:function(){var e=i("."+k);return e.length||(e=i("<div>").addClass(k).appendTo(this._$root)),e},_initTemplateContext:function(){this._templateContext=new s({orientation:w.orientation()}),w.on("orientationChanged",function(e){this._templateContext.option("orientation",e.orientation)}.bind(this))},_showViewImpl:function(e,t){var n=this,o=i.Deferred(),a=o.promise(),r=e.layoutController;return n._obtainViewLink(e),r.showView(e,t).done(function(){n._activateLayoutController(r,n._getTargetNode(e),t).done(function(){o.resolve()})}),x.lock(a),a},_resolveLayoutController:function(e){var t={viewInfo:e,layoutController:null,availableLayoutControllers:this._availableLayoutControllers};return this._processEvent("resolveLayoutController",t,e.model),t.layoutController||this._resolveLayoutControllerImpl(e)},_checkLayoutControllerIsInitialized:function(e){if(e){var t=!1;if(c(this._layoutSet,function(n,i){if(i.controller===e)return t=!0,!1}),!t)throw d.Error("E3024")}},_ensureOneLayoutControllerFound:function(e,t){var n=function(e,t){return"controller"===e?"[controller]: { name:"+t.name+" }":t};if(!t.length)throw d.log("W3003",JSON.stringify(e,null,4),JSON.stringify(this._availableLayoutControllers,n,4)),d.Error("E3011");if(t.length>1)throw d.log("W3004",JSON.stringify(e,null,4),JSON.stringify(t,n,4)),d.Error("E3012")},_resolveLayoutControllerImpl:function(e){var t=e.viewTemplateInfo||{},n=e.navigateOptions||{},i=l.extend({root:!e.canBack,customResolveRequired:!1,pane:t.pane,modal:void 0!==n.modal?n.modal:t.modal||!1},w.current()),a=o.findBestMatches(i,this._availableLayoutControllers);return this._ensureOneLayoutControllerFound(i,a),a[0].controller},_onNavigatingBack:function(e){if(this.callBase.apply(this,arguments),!e.cancel&&!this.canBack()&&this._activeLayoutControllersStack.length>1){var t=this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-2],n=t.activeViewInfo();e.cancel=!0,this._activateLayoutController(t,void 0,"backward"),this.navigationManager.currentItem(n.key)}},_activeLayoutController:function(){return this._activeLayoutControllersStack.length?this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-1]:void 0},_getTargetNode:function(e){var t=(e.navigateOptions||{}).event;return t?i(t.target):void 0},_activateLayoutController:function(e,t,n){var o=this,a=o._activeLayoutController();if(a===e)return i.Deferred().resolve().promise();var r=i.Deferred();return e.ensureActive(t).done(function(t){o._deactivatePreviousLayoutControllers(e,n,t).done(function(){o._activeLayoutControllersStack.push(e),r.resolve()})}),r.promise()},_deactivatePreviousLayoutControllers:function(e,t){var n=this,o=[],a=n._activeLayoutControllersStack.pop();if(!a)return i.Deferred().resolve().promise();if(e.isOverlay)n._activeLayoutControllersStack.push(a),o.push(a.disable());else{for(var r=i.Deferred(),s=!1,l=function(e,t){return function(){e.deactivate().done(function(){t.resolve()})}};a&&a!==e;){var c=i.Deferred();a.isOverlay?s=!0:s||n.transitionExecutor.leave(a.element(),S,{direction:t}),r.promise().done(l(a,c)),o.push(c.promise()),a=n._activeLayoutControllersStack.pop()}s?r.resolve():(n.transitionExecutor.enter(e.element(),S,{direction:t}),n.transitionExecutor.start().done(function(){r.resolve()}))}return C.apply(i,o)},init:function(){var e=this,t=this.callBase();return t.done(function(){e._initLayoutControllers(),e.renderNavigation()}),t},_disposeView:function(e){e.layoutController.disposeView&&e.layoutController.disposeView(e),this.callBase(e)},viewPort:function(){return this._$viewPort},_createViewInfo:function(){var e=this.callBase.apply(this,arguments),t=this.getViewTemplateInfo(e.viewName);if(!t)throw d.Error("E3013","dxView",e.viewName);return e.viewTemplateInfo=t,e.layoutController=this._resolveLayoutController(e),e},_createViewModel:function(e){this.callBase(e),l.extendFromObject(e.model,e.viewTemplateInfo)},_initLayoutControllers:function(){var e=this;c(e._layoutSet,function(t,n){var i=n.controller,a=w.current();o.findBestMatches(a,[n]).length&&(e._availableLayoutControllers.push(n),i.init&&i.init({app:e,$viewPort:e._$viewPort,navigationManager:e.navigationManager,viewEngine:e.viewEngine,templateContext:e._templateContext,commandManager:e.commandManager}),i.on&&(i.on("viewReleased",function(t){e._onViewReleased(t)}),i.on("viewHidden",function(t){e._onViewHidden(t)}),i.on("viewRendered",function(t){e._processEvent("viewRendered",{viewInfo:t},t.model)}),i.on("viewShowing",function(t,n){e._processEvent("viewShowing",{viewInfo:t,direction:n,params:t.routeData},t.model)}),i.on("viewShown",function(t,n){e._processEvent("viewShown",{viewInfo:t,direction:n,params:t.routeData},t.model)})))})},_onViewReleased:function(e){this._releaseViewLink(e)},renderNavigation:function(){var e=this;c(e._availableLayoutControllers,function(t,n){var i=n.controller;i.renderNavigation&&i.renderNavigation(e.navigation)})},getViewTemplate:function(e){return this.viewEngine.getViewTemplate(e)},getViewTemplateInfo:function(e){var t=this.viewEngine.getViewTemplateInfo(e);return t&&t.option()},loadTemplates:function(e){return this.viewEngine.loadTemplates(e)},templateContext:function(){return this._templateContext}});e.exports=I},function(e,t,n){n(43);var i,o=n(26),a=n(10),r=n(6).getWindow(),s=a.abstract,l=n(76),c=n(4),d=n(1),u=n(3),h=n(0).extend,p=n(110).utils.mergeCommands,f=n(233).createActionExecutors,g=n(141),m=n(111),_=n(175),v=n(174),w=n(15),x=n(178),y=n(82),b=n(53),C=n(154).sessionStorage,k=n(41),S=n(62),I=n(7).when,D="InProgress",T="Inited",E=a.inherit({ctor:function(e){e=e||{},this._options=e,this.namespace=e.namespace||r,this._applicationMode=e.mode?e.mode:"mobileApp",this.components=[],i=w.localizeString("@Back"),this.router=e.router||new g;var t={mobileApp:m.StackBasedNavigationManager,webSite:m.HistoryBasedNavigationManager};this.navigationManager=e.navigationManager||new t[this._applicationMode]({keepPositionInStack:"keepHistory"===e.navigateToRootViewMode}),this.navigationManager.on("navigating",this._onNavigating.bind(this)),this.navigationManager.on("navigatingBack",this._onNavigatingBack.bind(this)),this.navigationManager.on("navigated",this._onNavigated.bind(this)),this.navigationManager.on("navigationCanceled",this._onNavigationCanceled.bind(this)),this.stateManager=e.stateManager||new _({storage:e.stateStorage||C()}),this.stateManager.addStateSource(this.navigationManager),this.viewCache=this._createViewCache(e),this.commandMapping=this._createCommandMapping(e.commandMapping),this.createNavigation(e.navigation),this._isNavigating=!1,this._viewLinksHash={},this._removedViewInfos=[],l.registerExecutor(f(this)),this.components.push(this.router),this.components.push(this.navigationManager)},_createViewCache:function(e){var t;return t=e.viewCache?e.viewCache:e.disableViewCache?new y.NullViewCache:new y.CapacityViewCacheDecorator({size:e.viewCacheSize,viewCache:new y}),t.on("viewRemoved",function(e){this._releaseViewLink(e.viewInfo)}.bind(this)),t},_createCommandMapping:function(e){var t=e;return e instanceof x||(t=new x,t.load(x.defaultMapping||{}).load(e||{})),t},createNavigation:function(e){this.navigation=this._createNavigationCommands(e),this._mapNavigationCommands(this.navigation,this.commandMapping)},_createNavigationCommands:function(e){if(!e)return[];var t=0;return u.map(e,function(e){var n;return n=e instanceof v?e:new v(h({root:!0},e)),n.option("id")||n.option("id","navigation_"+t++),n})},_mapNavigationCommands:function(e,t){var n=u.map(e,function(e){return e.option("id")});t.mapCommands("global-navigation",n)},_callComponentMethod:function(e,t){var n=[];return u.each(this.components,function(i,o){if(o[e]&&d.isFunction(o[e])){var a=o[e](t);a&&a.done&&n.push(a)}}),I.apply(o,n)},init:function(){var e=this;return e._initState=D,e._callComponentMethod("init").done(function(){e._initState=T,e._processEvent("initialized")}).fail(function(e){throw e||S.Error("E3022")})},_onNavigatingBack:function(e){this._processEvent("navigatingBack",e)},_onNavigating:function(e){var t=this;if(t._isNavigating)return t._pendingNavigationArgs=e,void(e.cancel=!0);t._isNavigating=!0,delete t._pendingNavigationArgs;var n=this.router.parse(e.uri);if(!n)throw S.Error("E3001",e.uri);var i=this.router.format(n);e.uri!==i&&i?(e.cancel=!0,e.cancelReason="redirect",c.executeAsync(function(){t.navigate(i,e.options)})):t._processEvent("navigating",e)},_onNavigated:function(e){var t,n=this,i=e.options.direction,o=n._acquireViewInfo(e.item,e.options);return o.model||(this._processEvent("beforeViewSetup",{viewInfo:o}),n._createViewModel(o),n._createViewCommands(o),this._processEvent("afterViewSetup",{viewInfo:o})),n._highlightCurrentNavigationCommand(o),t=n._showView(o,i).always(function(){n._isNavigating=!1;var e=n._pendingNavigationArgs;e&&c.executeAsync(function(){n.navigate(e.uri,e.options)})})},_isViewReadyToShow:function(e){return!!e.model},_onNavigationCanceled:function(e){var t=this;if(!t._pendingNavigationArgs||t._pendingNavigationArgs.uri!==e.uri){var n=t.navigationManager.currentItem();n&&c.executeAsync(function(){var i=t._acquireViewInfo(n,e.options);t._highlightCurrentNavigationCommand(i,!0)}),t._isNavigating=!1}},_disposeRemovedViews:function(){var e=this;u.each(e._viewLinksHash,function(t,n){n.linkCount||(e._disposeRemovedView(n.viewInfo),delete e._viewLinksHash[t])}),this._removedViewInfos.forEach(function(t){e._disposeRemovedView(t)}),this._removedViewInfos=[]},_disposeRemovedView:function(e){var t={viewInfo:e};this._processEvent("viewDisposing",t,e.model),this._disposeView(e),this._processEvent("viewDisposed",t,e.model)},_onViewHidden:function(e){var t={viewInfo:e};this._processEvent("viewHidden",t,t.viewInfo.model)},_disposeView:function(e){var t=e.commands||[];u.each(t,function(e,t){t._dispose()})},_acquireViewInfo:function(e,t){var n=this.router.parse(e.uri),i=this._getViewInfoKey(e,n),o=this.viewCache.getView(i);return o?this._updateViewInfo(o,e,t):(o=this._createViewInfo(e,t),this._obtainViewLink(o),this.viewCache.setView(i,o)),o},_getViewInfoKey:function(e,t){var n={key:e.key,navigationItem:e,routeData:t};return this._processEvent("resolveViewCacheKey",n),n.key},_processEvent:function(e,t,n){this._callComponentMethod(e,t),this.fireEvent(e,t&&[t]);var i=(n||{})[e];i&&i.call(n,t)},_updateViewInfo:function(e,t,n){var i=t.uri,o=this.router.parse(i);e.viewName=o.view,e.routeData=o,e.uri=i,e.navigateOptions=n,e.canBack=this.canBack(n.stack),e.previousViewInfo=this._getPreviousViewInfo(n)},_createViewInfo:function(e,t){var n=e.uri,i=this.router.parse(n),o={key:this._getViewInfoKey(e,i)};return this._updateViewInfo(o,e,t),o},_createViewModel:function(e){e.model=e.model||this._callViewCodeBehind(e)},_createViewCommands:function(e){e.commands=e.model.commands||[],e.canBack&&"webSite"!==this._applicationMode&&this._appendBackCommand(e)},_callViewCodeBehind:function(e){var t=c.noop,n=e.routeData;return n.view in this.namespace&&(t=this.namespace[n.view]),t.call(this.namespace,n,e)||{}},_appendBackCommand:function(e){var t=e.commands,n=this,o=i;n._options.useViewTitleAsBackText&&(o=((e.previousViewInfo||{}).model||{}).title||o);var a=[new v({id:"back",title:o,behavior:"back",onExecute:function(){n.back({stack:e.navigateOptions.stack})},icon:"arrowleft",type:"back",renderStage:n._options.useViewTitleAsBackText?"onViewRendering":"onViewShown"})],r=p(a,t);t.length=0,t.push.apply(t,r)},_showView:function(e,t){var n=this,i={viewInfo:e,direction:t,params:e.routeData};return k.processRequestResultLock.obtain(),n._showViewImpl(i.viewInfo,i.direction).done(function(){c.executeAsync(function(){k.processRequestResultLock.release(),n._processEvent("viewShown",i,e.model),n._disposeRemovedViews()})})},_highlightCurrentNavigationCommand:function(e,t){
|
|
26
|
+
var n,i=this,o=e.model&&e.model.currentNavigationItemId;void 0!==o&&u.each(this.navigation,function(e,t){if(t.option("id")===o)return n=t,!1}),n||u.each(this.navigation,function(e,t){var o=t.option("onExecute");if(d.isString(o)&&(o=o.replace(/^#+/,""),o===i.navigationManager.rootUri()))return n=t,!1}),u.each(this.navigation,function(e,i){t&&i===n&&i.option("highlighted")&&i.fireEvent("optionChanged",[{name:"highlighted",value:!0,previousValue:!0}]),i.option("highlighted",i===n)})},_showViewImpl:s,_obtainViewLink:function(e){var t=e.key,n=this._viewLinksHash[t];n?(n.viewInfo!==e&&(this._removedViewInfos.push(n.viewInfo),n.viewInfo=e),this._viewLinksHash[t].linkCount++):this._viewLinksHash[t]={viewInfo:e,linkCount:1}},_releaseViewLink:function(e){void 0===this._viewLinksHash[e.key]&&S.log("W3001",e.key),0===this._viewLinksHash[e.key].linkCount&&S.log("W3002",e.key),this._viewLinksHash[e.key].linkCount--},navigate:function(e,t){var n=this;if(d.isPlainObject(e)&&(e=n.router.format(e),e===!1))throw S.Error("E3002");if(n._initState){if(n._initState!==T)throw S.Error("E3003");n._isNavigating&&!e||n.navigationManager.navigate(e,t)}else n.init().done(function(){n.restoreState(),n.navigate(e,t)})},canBack:function(e){return this.navigationManager.canBack(e)},_getPreviousViewInfo:function(e){var t,n=this.navigationManager.previousItem(e.stack);if(n){var i=this.router.parse(n.uri);t=this.viewCache.getView(this._getViewInfoKey(n,i))}return t},back:function(e){this.navigationManager.back(e)},saveState:function(){this.stateManager.saveState()},restoreState:function(){this.stateManager.restoreState()},clearState:function(){this.stateManager.clearState()}}).include(b);t.Application=E},function(e,t,n){function i(e,t){if(t.args){var n=t.args[0];e.event=n.event}"dxCommand"===(t.component||{}).NAME&&l(e,t.component.option())}function o(e){if(e){var t=a(e.target);t.attr("href")&&e.preventDefault()}}n(43);var a=n(26),r=n(12).getLocation(),s=n(22),l=n(0).extend,c=n(1).isPlainObject,d=n(3).map,u=n(141).Route,h=function(e){return{routing:{execute:function(t){var n,a,r=t.action,s={};c(r)&&(n=r.routeValues,n&&c(n)?s=r.options:n=r,a=e.router.format(n),i(s,t),o(s.event),e.navigate(a,s),t.handled=!0)}},hash:{execute:function(t){if("string"==typeof t.action&&"#"===t.action.charAt(0)){var n=t.action.substr(1),a=t.args[0],r=n,l=function(e){var n=s.compileGetter(e),i=t.args[0].model;return n(i)},c=a.evaluate||l;r=n.replace(/\{([^}]+)\}/g,function(e,t){t=t.trim(),t.indexOf(",")>-1&&(t=d(t.split(","),function(e){return e.trim()}));var n=c(t);return void 0===n&&(n=""),n=u.prototype.formatSegment(n)});var h={};i(h,t),o(h.event),e.navigate(r,h),t.handled=!0}}},url:{execute:function(e){"string"==typeof e.action&&"#"!==e.action.charAt(0)&&(r.href=e.action)}}}};t.createActionExecutors=h},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(19),r=n(6).getWindow(),s=n(173),l="__root__",c="__buffer__",d=o.inherit({ctor:function(e){e=e||{},this._window=e.window||r,this.popState=a(),i(this._window).on("hashchange",this._onHashChange.bind(this)),this._tasks=s.create(),this.canWorkInPureBrowser=!0},replaceState:function(e){var t=this;return this._addTask(function(){e=t._normalizeUri(e),t._window.history.replaceState(null,null,"#"+e),t._currentTask.resolve()})},pushState:function(e){var t=this;return this._addTask(function(){e=t._normalizeUri(e),t._window.history.pushState(null,null,"#"+e),t._currentTask.resolve()})},createRootPage:function(){return this.replaceState(l)},_onHashChange:function(){this._currentTask&&this._currentTask.resolve(),this.popState.fire()},back:function(){var e=this;return this._addTask(function(){e._window.history.back()})},getHash:function(){return this._normalizeUri(this._window.location.hash)},isRootPage:function(){return this.getHash()===l},_normalizeUri:function(e){return(e||"").replace(/^#+/,"")},_addTask:function(e){var t=this,n=i.Deferred();return this._tasks.add(function(){return t._currentTask=n,e(),n}),n.promise()}}),u=d.inherit({ctor:function(){this._innerEventCount=0,this.callBase.apply(this,arguments),this._skipNextEvent=!1},replaceState:function(e){var t=this;return e=t._normalizeUri(e),t.getHash()!==e?(t._addTask(function(){t._skipNextEvent=!0,t._window.history.back()}),t._addTask(function(){t._skipNextEvent=!0,t._window.location.hash=e})):i.Deferred().resolve().promise()},pushState:function(e){var t=this;return e=this._normalizeUri(e),this.getHash()!==e?t._addTask(function(){t._skipNextEvent=!0,t._window.location.hash=e}):i.Deferred().resolve().promise()},createRootPage:function(){return this.pushState(l)},_onHashChange:function(){var e=this._currentTask;this._currentTask=null,this._skipNextEvent?this._skipNextEvent=!1:this.popState.fire(),e&&e.resolve()}}),h=u.inherit({createRootPage:function(){return this.pushState(c),this.callBase()}}),p=d.inherit({ctor:function(e){e=e||{},this._window=e.window||r,this.popState=a(),i(this._window).on("dxback",this._onHashChange.bind(this)),this._currentHash=this._window.location.hash},replaceState:function(e){return this._currentHash=this._normalizeUri(e),i.Deferred().resolve().promise()},pushState:function(e){return this.replaceState(e)},createRootPage:function(){return this.replaceState(l)},getHash:function(){return this._normalizeUri(this._currentHash)},back:function(){return this.replaceState(l)},_onHashChange:function(){var e=this.back();return this.popState.fire(),e}}),f=d.inherit({ctor:function(e){this.callBase(e),this.canWorkInPureBrowser=!1}});t.DefaultBrowserAdapter=d,t.OldBrowserAdapter=u,t.BuggyAndroidBrowserAdapter=h,t.HistorylessBrowserAdapter=p,t.BuggyCordovaWP81BrowserAdapter=f},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(4).noop,r=n(3),s=n(62),l=n(178),c=n(236),d=n(7).when;n(174),n(176);var u=o.inherit({ctor:function(e){e=e||{},this.defaultWidgetAdapter=e.defaultWidgetAdapter||this._getDefaultWidgetAdapter(),this.commandMapping=e.commandMapping||new l},_getDefaultWidgetAdapter:function(){return{addCommand:a,clearContainer:a}},_getContainerAdapter:function(e){var t=e.data("dxComponents"),n=c;if(t)for(var i=0;i<t.length;i++){var o=t[i];if(o in n)return n[o]}return this.defaultWidgetAdapter},findCommands:function(e){var t=e.find(".dx-command").add(e.filter(".dx-command")),n=[].slice.call(t).map(function(e){return i(e).dxCommand("instance")});return n},findCommandContainers:function(e){var t=[].slice.call(e.find(".dx-command-container")).map(function(e){return i(e).dxCommandContainer("instance")});return t},_checkCommandId:function(e,t){if(null===e)throw s.Error("E3010",t.$element().get(0).outerHTML)},renderCommandsToContainers:function(e,t){var n=this,o={},a=[],s=[];return r.each(e,function(e,t){var i=t.option("id");n._checkCommandId(i,t),a.push(i),o[i]=t}),n.commandMapping.checkCommandsExist(a),r.each(t,function(e,t){var i=[];if(r.each(o,function(e,o){var a=e,r=n.commandMapping.getCommandMappingForContainer(a,t.option("id"));r&&i.push({command:o,options:r})}),i.length){var a=n._attachCommandsToContainer(t.element(),i);a&&s.push(a)}}),d.apply(i,s)},clearContainer:function(e){var t=e.element(),n=this._getContainerAdapter(t);n.clearContainer(t)},_arrangeCommandsToContainers:function(e,t){s.log("W0002","CommandManager","_arrangeCommandsToContainers","14.1","Use the 'renderCommandsToContainers' method instead."),this.renderCommandsToContainers(e,t)},_attachCommandsToContainer:function(e,t){var n,i=this._getContainerAdapter(e);return i.beginUpdate&&i.beginUpdate(e),r.each(t,function(t,n){i.addCommand(e,n.command,n.options)}),i.endUpdate&&(n=i.endUpdate(e)),n}});e.exports=u},function(e,t,n){var i=n(10),o=n(0).extend,a=n(11).inArray,r=n(3),s=n(110).utils.commandToContainer,l=n(32),c=n(116),d="dxCommandToWidgetAdapter",u=i.inherit({ctor:function(e,t){this.command=e,this.widgetItem=this._createWidgetItem(e,t)},_createWidgetItem:function(e,t){var n,i=o({},t,e.option()),a=function(t){e.execute(t)};return i.text=s.resolveTextValue(e,t),i.icon=s.resolveIconValue(e,t),i.type=s.resolvePropertyValue(e,t,"type"),i.location=s.resolvePropertyValue(e,t,"location"),i.locateInMenu=s.resolvePropertyValue(e,t,"locateInMenu"),i.showText=s.resolvePropertyValue(e,t,"showText"),n=this._createWidgetItemCore(i,a),n.command=e,n},_createWidgetItemCore:function(e,t){return e},dispose:function(){delete this.command,delete this.widgetItem}}),h=i.inherit({ctor:function(e){this._commandToWidgetItemOptionNames={},this.$widgetElement=e,this.$widgetElement.data(d,this),this.widget=this._getWidgetByElement(e),this._widgetWidgetContentReadyHandler=this._onWidgetContentReady.bind(this),this._widgetWidgetItemRenderedHandler=this._onWidgetItemRendered.bind(this),this._widgetDisposingHandler=this._onWidgetDisposing.bind(this),this.widget.on("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.on("contentReady",this._widgetWidgetContentReadyHandler),this.widget.on("disposing",this._widgetDisposingHandler),this.itemWrappers=[],this._transitionExecutor=new c.TransitionExecutor},addCommand:function(e,t){var n=this._createItemWrapper(e,t);this.itemWrappers.push(n),this._addItemToWidget(n),this._commandChangedHandler=this._onCommandChanged.bind(this),n.command.on("optionChanged",this._commandChangedHandler)},beginUpdate:function(){this.widget.beginUpdate()},endUpdate:function(){return this.widget.endUpdate(),this.animationDeferred},_onWidgetItemRendered:function(e){e.itemData.isJustAdded&&e.itemData.command&&e.itemData.command.option("visible")&&this._commandRenderedAnimation&&this._transitionExecutor.enter(e.itemElement,this._commandRenderedAnimation),delete e.itemData.isJustAdded},_onWidgetContentReady:function(e){this.animationDeferred=this._transitionExecutor.start()},_onWidgetDisposing:function(){this.dispose(!0)},_setWidgetItemOption:function(e,t,n){var i=this.widget.option("items"),o=a(n,r.map(i,function(e){return e.command||{}}));if(o>-1){var s="items["+o+"].";!this._requireWidgetRefresh(e)&&this.widget.option("items["+o+"]").options&&(s+="options."),s+=this._commandToWidgetItemOptionNames[e]||e,this.widget.option(s,t)}},_requireWidgetRefresh:function(e){return"visible"===e||"locateInMenu"===e||"location"===e},_onCommandChanged:function(e){"highlighted"===e.name||e.component.isOptionDeprecated(e.name)||this._setWidgetItemOption(e.name,e.value,e.component)},_addItemToWidget:function(e){var t=this.widget.option("items");t.push(e.widgetItem),this.widget.$element().is(":visible")&&(e.widgetItem.isJustAdded=!0),this.widget.option("items",t)},refresh:function(){var e=this.widget.option("items");this.widget.option("items",e)},clear:function(e){var t=this;r.each(t.itemWrappers,function(e,n){n.command.off("optionChanged",t._commandChangedHandler),n.dispose()}),this.itemWrappers.length=0,e||this._clearWidgetItems()},_clearWidgetItems:function(){this.widget.option("items",[])},dispose:function(e){this.clear(e),this.widget&&(this.widget.off("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.off("contentReady",this._widgetContentReadyHandler),this.widget.off("disposing",this._widgetDisposingHandler),this.$widgetElement.removeData(d),delete this.widget,delete this.$widgetElement)}}),p=i.inherit({ctor:function(e){this.createAdapter=e},_getWidgetAdapter:function(e){var t=e.data(d);return t||(t=this.createAdapter(e)),t},addCommand:function(e,t,n){var i=this._getWidgetAdapter(e);i.addCommand(t,n)},clearContainer:function(e){var t=this._getWidgetAdapter(e);t.clear()},beginUpdate:function(e){var t=this._getWidgetAdapter(e);t.beginUpdate()},endUpdate:function(e){var t=this._getWidgetAdapter(e);return t.endUpdate()}}),f=u.inherit({_createWidgetItemCore:function(e,t){var n;return e.onClick=t,"menu"===e.location||"always"===e.locateInMenu?(n=e,n.isAction=!0):(n={locateInMenu:e.locateInMenu,location:e.location,visible:e.visible,options:e,widget:"dxButton"},"inMenu"===e.showText&&(n.showText=e.showText),e.visible=!0,delete e.location),n}}),g=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},"topToolbar"===this.widget.option("renderAs")?this._commandRenderedAnimation="command-rendered-top":this._commandRenderedAnimation="command-rendered-bottom"},_getWidgetByElement:function(e){return e.dxToolbar("instance")},_createItemWrapper:function(e,t){return new f(e,t)},addCommand:function(e,t){this.widget.option("visible",!0),this.callBase(e,t)}}),m=u.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e.onClick=t,e}}),_=h.inherit({_createItemWrapper:function(e,t){return new m(e,t)},_getWidgetByElement:function(e){return e.dxList("instance")}}),v=u.inherit({}),w=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onNavBarItemClick.bind(this))},_onNavBarItemClick:function(e){for(var t=this.widget.option("items"),n=t.length;--n;)t[n].command.option("highlighted",!1);e.itemData.command.execute(e)},_getWidgetByElement:function(e){return e.dxNavBar("instance")},_createItemWrapper:function(e,t){return new v(e,t)},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)},_updateSelectedIndex:function(){for(var e=this.widget.option("items"),t=0,n=e.length;t<n;t++){var i=e[t].command;if(i&&i.option("highlighted")){this.widget.option("selectedIndex",t);break}}}}),x=u.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e}}),y=h.inherit({ctor:function(e){this.callBase(e),this.widget.option("onSelectionChanged",this._onPivotSelectionChange.bind(this))},_onPivotSelectionChange:function(e){e.addedItems.length&&e.removedItems.length&&e.addedItems[0]&&e.addedItems[0].command&&e.addedItems[0].command.execute(e)},_getWidgetByElement:function(e){return e.dxPivot("instance")},_createItemWrapper:function(e,t){return new x(e,t)},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"visible"===t?this._reRenderPivot():"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)},_addItemToWidget:function(e){e.command.option("visible")&&this.callBase(e)},_updateSelectedIndex:function(){var e=this.widget,t=e.option("items")||[];l.off=!0;for(var n=0,i=t.length;n<i;n++){var o=t[n].command;if(o&&o.option("highlighted")){e.option("selectedIndex",n);break}}l.off=!1},_reRenderPivot:function(){var e=this;e.widget.option("items",[]),r.each(e.itemWrappers,function(t,n){n.command.option("visible")&&e._addItemToWidget(n)}),e.refresh(),e._updateSelectedIndex()}}),b=u.inherit({}),C=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onSlideOutItemClick.bind(this))},_onSlideOutItemClick:function(e){e.itemData.command.execute(e)},_getWidgetByElement:function(e){return e.dxSlideOut("instance")},_createItemWrapper:function(e,t){return new b(e,t)},_updateSelectedIndex:function(){for(var e=this.widget.option("items")||[],t=0,n=e.length;t<n;t++){var i=e[t].command;if(i&&i.option("highlighted")){this.widget.option("selectedIndex",t);break}}},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)}});t.dxToolbar=new p(function(e){return new g(e)}),t.dxList=new p(function(e){return new _(e)}),t.dxNavBar=new p(function(e){return new w(e)}),t.dxPivot=new p(function(e){return new y(e)}),t.dxSlideOut=new p(function(e){return new C(e)})},function(e,t,n){n(43);var i=n(26),o=n(120),a=n(6).getWindow(),r=n(10),s=n(19),l=n(4),c=n(3).each,d=n(11).inArray,u=n(62),h=n(13),p=n(7).when,f=n(72),g="dxView",m="dxLayout",_="MarkupTemplate:";n(63);var v=r.inherit({ctor:function(e){e=e||{},this.$root=e.$root,this.device=e.device||{},this.dataOptionsAttributeName=e.dataOptionsAttributeName||"data-options",this._templateMap={},this._pendingViewContainer=null,this.markupLoaded=s(),this._templateContext=e.templateContext,this._$skippedMarkup=i(),void 0!==e.templatesVersion&&e.templateCacheStorage&&this._isReleaseVersion()&&(this._templateCacheEnabled=!0,this._templatesVersion="v_"+e.templatesVersion,this._templateCacheStorage=e.templateCacheStorage,this._templateCacheKey="dxTemplateCache_"+o+"_"+JSON.stringify(this.device))},_isReleaseVersion:function(){return!/http:\/\/localhost/.test(a.location.href)},_enumerateTemplates:function(e){var t=this;c(t._templateMap,function(t,n){c(n,function(t,n){c(n,function(t,n){e(n)})})})},_findComponent:function(e,t){var n=(this._templateMap[e]||{})[t]||[],i=this._templateContext&&this._templateContext.option()||{};return n=this._filterTemplates(i,n),this._checkMatchedTemplates(n),n[0]},_findTemplate:function(e,t){var n=this._findComponent(e,t);if(!n)throw this._clearCache(),u.Error("E3013",t,e);var i,o=n.element();return n._isStaticComponentsCreated||(h.createComponents(o,["dxContent","dxContentPlaceholder","dxTransition"]),n._isStaticComponentsCreated=!0),i=o.clone().removeClass("dx-hidden")},_clearCache:function(){this._templateCacheEnabled&&this._templateCacheStorage.removeItem(this._templateCacheKey)},_loadTemplatesFromMarkupCore:function(e){var t=this;if(e.find("[data-dx-role]").length)throw u.Error("E3019");t.markupLoaded.fire({markup:e});var n=h.createComponents(e,[g,m]);c(n,function(e,n){var i=n.element();i.addClass("dx-hidden"),t._registerTemplateComponent(n),n.element().detach()});var i=e.filter("script");i.appendTo(t.$root),t._$skippedMarkup=t._$skippedMarkup.add(i)},_registerTemplateComponent:function(e){var t=e.NAME,n=e.option(),i=n.name,o=this._templateMap[i]||{};o[t]=o[t]||[],o[t].push(e),this._templateMap[i]=o},_applyPartialViews:function(e){var t=this;h.createComponents(e,["dxViewPlaceholder"]),c(e.find(".dx-view-placeholder"),function(){var e=i(this);if(!e.children().length){var n=e.data("dxViewPlaceholder").option("viewName"),o=t._findTemplate(n,g);t._applyPartialViews(o),e.append(o),o.removeClass("dx-hidden")}})},_ajaxImpl:function(){return f.sendRequest.apply(i,arguments)},_loadTemplatesFromURL:function(e){var t=this,n=this._getWinPhonePrefix(),o=i.Deferred();return e=n+e,this._ajaxImpl({url:e,dataType:"html"}).done(function(e){t._loadTemplatesFromMarkupCore(h.createMarkupFromString(e)),o.resolve()}).fail(function(t,n,i){var a=u.Error("E3021",e,i);o.reject(a)}),o.promise()},_getWinPhonePrefix:function(){return a.location.protocol.indexOf("wmapp")>=0?a.location.protocol+"www/":""},_loadExternalTemplates:function(){var e=[],t=this;return i("head").find("link[rel='dx-template']").each(function(n,o){var a=t._loadTemplatesFromURL(i(o).attr("href"));e.push(a)}),p.apply(i,e)},_processTemplates:function(){var e=this;c(e._templateMap,function(t,n){c(n,function(t,n){e._filterTemplatesByDevice(n)})}),e._enumerateTemplates(function(t){e._applyPartialViews(t.element())})},_filterTemplatesByDevice:function(e){var t=this._filterTemplates(this.device,e);c(e,function(e,n){d(n,t)<0&&n.element().remove()}),e.length=0,e.push.apply(e,t)},_filterTemplates:function(e,t){return l.findBestMatches(e,t,function(e){return e.option()})},_checkMatchedTemplates:function(e){if(e.length>1){var t="";throw c(e,function(e,n){t+=n.element().attr("data-options")+"\r\n"}),u.Error("E3020",t,JSON.stringify(this.device))}},_wrapViewDefaultContent:function(e){e.wrapInner('<div class="dx-full-height"></div>'),e.children().eq(0).dxContent({targetPlaceholder:"content"})},_initDefaultLayout:function(){this._$defaultLayoutTemplate=i('<div class="dx-full-height" data-options="dxLayout : { name: \'default\' } "> \n <div class="dx-full-height" data-options="dxContentPlaceholder : { name: \'content\' } " ></div> \n</div>'),h.createComponents(this._$defaultLayoutTemplate)},_getDefaultLayoutTemplate:function(){return this._$defaultLayoutTemplate.clone()},applyLayout:function(e,t){void 0!==t&&0!==t.length||(t=this._getDefaultLayoutTemplate()),0===e.children(".dx-content").length&&this._wrapViewDefaultContent(e);var n=i().add(t).add(e),o=n.find(".dx-content");c(o,function(){var e=i(this),t=e.attr("data-dx-target-placeholder-id"),o=n.find(".dx-content-placeholder-"+t);o.empty(),o.append(e)});for(var a=o.length;a>=0;a--){var r=o.eq(a);r.is(".dx-content-placeholder .dx-content")||r.remove()}return t},_loadTemplatesFromCache:function(){if(this._templateCacheEnabled){var e,t=function(e,t){if("string"==typeof t&&0===t.indexOf(_)){var n=JSON.parse(t.substr(_.length)),o=n.type,a=n.options,r=h.createMarkupFromString(n.markup);return a.fromCache=!0,r[o](a)[o]("instance")}return"skippedMarkup"===e?i("<div>").append(h.createMarkupFromString(t)).contents():t},n=this._templateCacheStorage.getItem(this._templateCacheKey);if(n)try{var o=JSON.parse(n,t);e=o[this._templatesVersion]}catch(e){this._clearCache()}if(e)return this._templateMap=e.templates,this.$root.append(e.skippedMarkup),!0}},_putTemplatesToCache:function(){if(this._templateCacheEnabled){var e=function(e,t){return t&&t.element?_+JSON.stringify({markup:t.element().prop("outerHTML"),options:t.option(),type:t.NAME}):"skippedMarkup"===e?i("<div>").append(t.clone()).html():t},t={};t[this._templatesVersion]={templates:this._templateMap,skippedMarkup:this._$skippedMarkup},this._templateCacheStorage.setItem(this._templateCacheKey,JSON.stringify(t,e,4))}},init:function(){var e=this;return this._initDefaultLayout(),this._loadTemplatesFromCache()?i.Deferred().resolve().promise():(e._loadTemplatesFromMarkupCore(e.$root.children()),this._loadExternalTemplates().done(function(){e._processTemplates(),e._putTemplatesToCache()}))},getViewTemplate:function(e){return this._findTemplate(e,g)},getViewTemplateInfo:function(e){return this._findComponent(e,g)},getLayoutTemplate:function(e){return e?this._findTemplate(e,m):this._getDefaultLayoutTemplate()},getLayoutTemplateInfo:function(e){return this._findComponent(e,m)},loadTemplates:function(e){var t;return"string"==typeof e?t=this._loadTemplatesFromURL(e):(this._loadTemplatesFromMarkupCore(e),t=i.Deferred().resolve().promise()),t.done(this._processTemplates.bind(this))}});t.ViewEngine=v},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(42),o=n(4),a=n(1),r=o.getKeyHash,s=n(10),l=n(7).Deferred;e.exports=s.inherit({ctor:function(e){this.options=e,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function e(){var t=this.options.addedItemKeys,n=this.options.removedItemKeys,i=this.options.addedItems,a=this.options.removedItems,r=this.options.selectedItems,s=this.options.selectedItemKeys,e=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),e({selectedItems:r,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:n,addedItems:i,removedItems:a})},equalKeys:function(e,t){return this.options.equalByReference&&a.isObject(e)&&a.isObject(t)?e===t:o.equalByValue(e,t)},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n){var o=encodeURI(JSON.stringify(e)).length,r=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,s=new l,c={filter:r?void 0:e,select:r?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?s.resolve([]):this.options.load(c).done(function(n){var o=a.isPlainObject(n)?n.data:n;t?o=o.filter(t):r&&(o=i(o).filter(e).toArray()),s.resolve(o)}).fail(s.reject.bind(s)),s},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var n=r(e[t]);if(!a.isObject(n)){this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[];var i=this.options.keyHashIndices[n];i.push(t)}}},_isAnyItemSelected:function(e){for(var t=0;t<e.length;t++)if(this.options.isItemSelected(e[t]))return;return!1},_getFullSelectAllState:function(){var e=this.options.plainItems(),t=this.options.filter(),n=this.options.selectedItems;t&&(n=i(n).filter(t).toArray());var o=n.length;return o?o>=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i<e.length;i++){var o=e[i],a=this.options.getItemData(o),r=this.options.keyOf(a);this.options.isSelectableItem(o)&&(this.isItemKeySelected(r)?t=!0:n=!0)}return!!t&&(!n||void 0)}})},function(e,t,n){var i=n(202),o=i.data=n(241);o.odata=n(363),e.exports=o},function(e,t,n){var i=n(119);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(36).errorHandler},set:function(e){n(36).errorHandler=e}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(36)._errorHandler},set:function(e){n(36)._errorHandler=e}}),i.data.DataSource=n(360),i.data.query=n(42),i.data.Store=n(91),i.data.ArrayStore=n(79),i.data.CustomStore=n(158),i.data.LocalStore=n(361),i.data.base64_encode=n(41).base64_encode,i.data.Guid=n(50),i.data.utils={},i.data.utils.compileGetter=n(22).compileGetter,i.data.utils.compileSetter=n(22).compileSetter,i.EndpointSelector=n(362),i.data.queryImpl=n(42).queryImpl,i.data.queryAdapters=n(181);var o=n(41);i.data.utils.normalizeBinaryCriterion=o.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=o.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=o.errorMessageFromXhr,i.data.utils.aggregators=o.aggregators,i.data.utils.keysEqual=o.keysEqual,i.data.utils.isDisjunctiveOperator=o.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=o.isConjunctiveOperator,i.data.utils.processRequestResultLock=o.processRequestResultLock,i.data.utils.toComparable=n(22).toComparable,i.data.utils.multiLevelGroup=n(80).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(80).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(52).normalizeDataSourceOptions},function(e,t,n){var i=n(3).each,o=n(12),a=n(6).getWindow(),r=n(68),s="dxproxy.devexpress.com:8000",l={},c=r(function(){var e=o.createElement("a"),t=["protocol","hostname","port","pathname","search","hash"],n=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e};return function(o){e.href=o;var a={};return i(t,function(){a[this]=e[this]}),a.pathname=n(a.pathname),a}}),d=function(e){var t=c();return t(e)},u=function(){return a.location.pathname.split("/")[1]};e.exports={parseUrl:d,isProxyUsed:function(){return a.location.host===s},formatProxyUrl:function(e){var t=d(e);if(!/^(localhost$|127\.)/i.test(t.hostname))return e;var n=s+"/"+u()+"_"+t.port;l[n]=t.hostname+":"+t.port;var i="http://"+n+t.pathname+t.search;return i},formatLocalUrl:function(e){if(e.indexOf(s)<0)return e;var t=e;for(var n in l)if(l.hasOwnProperty(n)&&e.indexOf(n)>=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function o(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&l.log("W4001",o):n[o]=t[o];return n}var a=n(1).isDefined,r=n(97),s=n(242),l=n(36).errors,c=n(42),d=n(91),u=n(244),h=n(7),p=h.when,f=h.Deferred;n(145);var g="5d46402c-7899-4ea9-bd81-8b73c47c7683",m=d.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,a=e.keyType;if(a){var r="string"==typeof a;t||(t=r?g:Object.keys(a),this._legacyAnonymousKey=t),r&&(a=i(t,a)),n=o(n,a)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&t.expand&&(n.$expand=r.generateExpand(this._version,t.expand)),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n;if(e=e||{},n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes},t=a(e.urlOverride)?e.urlOverride:this._url,e.customQueryParams){var i=u.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=u.formatFunctionInvocationUrl(t,i):n.params=i}return c(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=new f;return p(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new f;return p(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(){n.resolve(e,t)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new f;return p(this._sendRequest(this._byKeyUrl(e),"DELETE")).done(function(){t.resolve(e)}).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var o=0;o<i.length;o++){var a=i[o];t[a]=r.convertPrimitiveValue(n[a],e[a])}}else n[i]&&(t=r.convertPrimitiveValue(n[i],e));return t},_byKeyUrl:function(e,t){var n=t?s.formatLocalUrl(this._url):this._url,i=this._convertKey(e);return n+"("+encodeURIComponent(r.serializeKey(i,this._version))+")"}},"odata").include(u.SharedMethods);e.exports=m},function(e,t,n){var i=n(39),o=n(3),a=n(97);n(145);var r=2,s=function(e,t){return i.format("{0}({1})",e,o.map(t||{},function(e,t){return i.format("{0}={1}",t,e)}).join(","))},l=function(e,t){if(!e)return e;var n={};return o.each(e,function(e,i){n[e]=a.serializeValue(i,t)}),n},c={_extractServiceOptions:function(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||r,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates},_sendRequest:function(e,t,n,i){return a.sendRequest(this.version(),{url:e,method:t,params:n||{},payload:i},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})},version:function(){return this._version}};t.SharedMethods=c,t.escapeServiceOperationParams=l,t.formatFunctionInvocationUrl=s},function(e,t,n){e.exports=n(479)},function(e,t,n){var i=n(371);e.exports={extend:function(e){i=i.inherit(e)},create:function(e){return new i(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.format||Ae[e.dataType];return pe.default.format(t,n)}function a(e){return e&&e.length>1&&"!"===e[0]&&!T(e)}function r(e){return a(e)?e[1]:e}function s(e,t){return a(e)?e[1]=t:e=t,e}function l(e,t){var n=function(e){return e.indexOf("!")!==-1},i=function(e){var t=e.slice(0);e.length=0,e.push("!",t)},o=function(e){var t=r(e);e.length=0,[].push.apply(e,t)};n(t)?a(e)||i(e):a(e)&&o(e)}function c(e,t){l(e,t);var n,i=r(e),o=function(e){return e.indexOf("!")===-1?e:e.substring(1)},a=function(e,t){for(n=0;n<e.length;n++)Array.isArray(e[n])||(e[n]=t)};return t=o(t),a(i,t),e}function d(e,t){var n=h(e);return t.filter(function(e){return e.value===n})[0]}function u(e){if(T(e))return Ie;for(var t="",n=0;n<e.length;n++){var i=e[n];if(!Array.isArray(i)){if(t&&t!==i)throw new re.errors.Error("E4019");t=i}}return t}function h(e){var t=r(e),n=u(t);return n||(n=Ie),t!==e&&(n="!"+n),n}function p(e){return e.lookup&&Be||Ee[e.dataType||ke]}function f(e){return Array.isArray(e)&&e.length}function g(e){var t=f(e.filterOperations)?e.filterOperations:p(e);return(0,fe.extend)([],t)}function m(e,t){var n=Ce.default.getNameByFilterOperation(e);return t&&t[n]?t[n]:n}function _(e,t){for(var n=0;n<t.length;n++)if(t[n].value===e)return t[n];throw new ce.default.Error("E1048",e)}function v(e,t){var n=e.filter(function(e){return e.name===t});return n.length?n[0]:null}function w(e,t,n){var i=g(e);return n.forEach(function(t){if(!e.filterOperations&&i.indexOf(t.name)===-1){var n=t&&t.dataTypes;n&&n.indexOf(e.dataType||ke)>=0&&i.push(t.name)}}),i.map(function(e){var i=v(n,e);return i?{icon:i.icon||Se,text:i.caption||me.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:Ce.default.getIconByFilterOperation(e)||Se,text:m(e,t),value:e
|
|
27
|
+
}})}function x(e){return e.defaultFilterOperation||g(e)[0]}function y(e,t){var n=[e.dataField,"",""],i=x(e);return Y(n,i,t),n}function b(e,t){var n=r(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function C(e){return e.indexOf("not")!==-1?["!",[e.substring(3).toLowerCase()]]:[e]}function k(e){var t=r(e);if(T(t))return!1;var n=t.some(function(e){return T(e)});return!n}function S(e,t){var n=r(t),i=h(n);return 1===n.length?n.unshift(e):n.push(e,i),t}function I(e,t){for(var n=0;n<t.length;n++)if(t[n].dataField.toLowerCase()===e.toLowerCase())return t[n];var i=G(t,!0).filter(function(t){return t.dataField.toLowerCase()===e.toLowerCase()});if(i.length>0)return i[0];throw new ce.default.Error("E1047",e)}function D(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function T(e){return!!Array.isArray(e)&&(e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1]))}function E(e,t){for(var n=u(e).toLowerCase()||Ie,i=[],o=0;o<e.length;o++)D(e[o])?(i.push(O(e[o],t)),i.push(n)):T(e[o])&&(i.push(B(e[o],t)),i.push(n));return 0===i.length&&i.push(n),i}function A(e,t){var n=v(t,e[1]);return n&&n.name===e[1]}function B(e,t){return A(e,t)?e:(e.length<3&&(e[2]=e[1],e[1]=De),e)}function O(e,t){return e?(e=(0,fe.extend)(!0,[],e),T(e)?[B(e,t),Ie]:a(e)?["!",T(e[1])?[B(e[1],t),Ie]:E(e[1],t)]:E(e,t)):[Ie]}function R(e){return e.reduce(function(e,t){if((0,se.isDefined)(t.dataField)){var n={};for(var i in t)t[i]&&Oe.indexOf(i)>-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=ue.default.defaultCalculateFilterExpression,(0,se.isDefined)(n.dataType)||(n.dataType=ke),e.push(n)}return e},[])}function M(e,t,n,i){var o=I(e[0],t),a=B(e,n),r=n.length&&v(n,a[1]);return r&&r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[a[2],o,i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function P(e,t,n,i){if(null===e)return null;var o=r(e),s=[];if(T(o))s=M(o,t,n,i)||null;else{for(var l,c=h(o),d=0;d<o.length;d++)D(o[d])?(l=P(o[d],t,n,i),l&&(d&&s.push(c),s.push(l))):T(o[d])&&(l=M(o[d],t,n,i),l&&(d&&s.push(c),s.push(l)));s=s.length?s:null}return s&&a(e)?["!",s]:s}function V(e){var t,n=r(e);if(0===n.length)return null;var i=[];for(t=0;t<n.length;t++)if(D(n[t])){var o=V(n[t]);o?n[t]=o:i.push(n[t])}else T(n[t])&&(Z(n[t])||i.push(n[t]));for(t=0;t<i.length;t++)b(n,i[t]);return 1===n.length?null:(n.splice(n.length-1,1),1===n.length&&(e=s(e,n[0])),0===e.length?null:e)}function F(e,t,n){if(""===t)return void n("");var i=new ye.DataSource(e.lookup.dataSource);i.loadSingle(e.lookup.valueExpr,t).done(function(t){n(t?e.lookup.displayExpr?t[e.lookup.displayExpr]:t:"")}).fail(function(){n("")})}function H(e,t,n,i){var a;return a=t===!0?e.trueText||xe.default.format("dxDataGrid-trueText"):t===!1?e.falseText||xe.default.format("dxDataGrid-falseText"):o(e,t),e.customizeText&&(a=e.customizeText.call(e,{value:t,valueText:a,target:i})),n&&n.customizeText&&(a=n.customizeText.call(n,{value:t,valueText:a,field:e,target:i})),a}function $(e,t,n,i){return t.map(function(t){return H(e,t,n,i)})}function L(e){return""===e||null===e}function z(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(L(t))return"";if(Array.isArray(t)){var o=new ae.Deferred;return ae.when.apply(this,$(e,t,n,i)).done(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.some(function(e){return!L(e)})?t.map(function(e){return L(e)?"?":e}):"";o.resolve(i)}),o}return H(e,t,n,i)}function N(e,t){return e.some(function(e){return e.dataField===t})}function W(e,t,n){var i=n.dataField;K(i)&&(n.parentId=j(i),N(t,n.parentId)||N(e,n.parentId)||W(e,t,{dataType:"object",dataField:n.parentId,caption:q(n.parentId,!0),filterOperations:["isblank","isnotblank"]})),t.push(n)}function q(e,t){var n="";if(t)e=e.substring(e.lastIndexOf(".")+1);else if(K(e))return e.split(".").forEach(function(e,t,i){n+=me.default.captionize(e),t!==i.length-1&&(n+=".")}),n;return me.default.captionize(e)}function G(e,t){for(var n=[],i=0;i<e.length;i++){var o=(0,fe.extend)(!0,{caption:q(e[i].dataField,t)},e[i]);t?W(e,n,o):n.push(o)}return n}function K(e){return e.lastIndexOf(".")!==-1}function j(e){return e.substring(0,e.lastIndexOf("."))}function U(e,t){if(K(e.dataField))for(var n=j(e.dataField),i=0;i<t.length;i++)if(t[i].dataField===n)return U(t[i],t)+"."+e.caption;return e.caption}function Y(e,t,n){var i=v(n,t);return i?(i.hasValue===!1?(e[1]=t,e.length=2):(e[1]=t,e[2]=""),e):("isblank"===t?(e[1]=De,e[2]=null):"isnotblank"===t?(e[1]=Te,e[2]=null):(i=v(n,e[1]),(i||2===e.length||null===e[2])&&(e[2]=""),e[1]=t),e)}function X(e){var t;return t=null===e[2]?e[1]===De?"isblank":"isnotblank":e[1]}function Z(e){return""!==e[2]}function J(e,t){var n=(0,fe.extend)(!0,[],e),i=-1;return n.some(function(e,t){if("between"===e.name)return i=t,!0}),i!==-1?n[i]=(0,fe.extend)(ve.default.getConfig(t),n[i]):n.unshift(ve.default.getConfig(t)),n}function Q(e,t){return e[0]===t}function ee(e,t){if(!e||0===e.length)return null;if(T(e)){var n=Q(e,t);return n?null:e}return te(e,[t],!1)}function te(e,t,n){var i=[];return e.forEach(function(e){T(e)?Q(e,t[0])?n?(i.push(t),n=!1):i.splice(i.length-1,1):i.push(e):(i.length||D(e))&&i.push(e)}),0===i.length?null:(n&&(i.push(Ie),i.push(t)),1===i.length?i[0]:i)}function ne(e,t){if(null===e||0===e.length)return t;if(T(e))return Q(e,t[0])?t:[e,Ie,t];var n=h(e);return n!==Ie?[t,"and",e]:te(e,t,!0)}function ie(e,t){if(null===e||0===e.length)return[];if(T(e))return Q(e,t)?[e]:[];var n=h(e);if(n!==Ie)return[];var i=e.filter(function(e){return T(e)&&Q(e,t)});return i}function oe(e,t){return null!==e&&0!==e.length&&(T(e)?e[0]===t:e.some(function(e){return(T(e)||D(e))&&oe(e,t)}))}var ae=n(7),re=n(36),se=n(1),le=n(21),ce=i(le),de=n(196),ue=i(de),he=n(88),pe=i(he),fe=n(0),ge=n(37),me=i(ge),_e=n(560),ve=i(_e),we=n(15),xe=i(we),ye=n(52),be=n(561),Ce=i(be),ke="string",Se="icon-none",Ie="and",De="=",Te="<>",Ee={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],"boolean":["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Ae={date:"shortDate",datetime:"shortDateShortTime"},Be=["=","<>","isblank","isnotblank"],Oe=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression"];t.isValidCondition=Z,t.isEmptyGroup=k,t.getOperationFromAvailable=_,t.updateConditionByOperation=Y,t.getCaptionWithParents=U,t.getItems=G,t.setGroupValue=c,t.getGroupMenuItem=d,t.getGroupValue=h,t.getAvailableOperations=w,t.removeItem=b,t.createCondition=y,t.createEmptyGroup=C,t.addItem=S,t.getField=I,t.isGroup=D,t.isCondition=T,t.getNormalizedFields=R,t.getNormalizedFilter=V,t.getGroupCriteria=r,t.convertToInnerStructure=O,t.getDefaultOperation=x,t.getCurrentValueText=z,t.getCurrentLookupValueText=F,t.getFilterOperations=g,t.getCaptionByOperation=m,t.getOperationValue=X,t.getFilterExpression=P,t.getCustomOperation=v,t.getMergedOperations=J,t.syncFilters=ne,t.getMatchedConditions=ie,t.filterHasField=oe,t.removeFieldConditionsFromFilter=ee},function(e,t,n){function i(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return u.isString(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",b.titleize(t)+n}function o(e,t){var n=e._initProperties||{};f.each(t,function(t,i){n.hasOwnProperty(i)&&(e[i]=n[i])})}function a(e,t){o(e,t),g(e.caption)||V(e,"caption",i(e))}function r(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}function s(e){return e.some(function(e){return!!e.runningTotal})}var l=n(52),c=n(91),d=n(4),u=n(1),h=n(0).extend,p=n(11).inArray,f=n(3),g=u.isDefined,m=f.each,_=n(7),v=_.when,w=_.Deferred,x=n(10),y=n(53),b=n(37),C=n(11).normalizeIndexes,k=n(611),S=n(612),I=n(411),D=n(613),T=n(94),E=T.foreachTree,A=T.foreachTreeAsync,B=T.findField,O=T.formatValue,R=T.getCompareFunction,M=T.createPath,P=T.foreachDataLevel,V=T.setFieldProperty,F={row:"rows",column:"columns",data:"values",filter:"filters"},H=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],$=["format","selector","customizeText","caption"],L=$.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=x.inherit(function(){function e(e,t){var n=e.remoteOperations?S:k.LocalStore;return new n(h(l.normalizeDataSourceOptions(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function t(t,n){var i,o;return u.isPlainObject(t)&&t.load?i=e(t,n):(t&&!t.store&&(t={store:t}),o=t.store,"xmla"===o.type?i=new I.XmlaStore(o):u.isPlainObject(o)&&o.type||o instanceof c||Array.isArray(o)?i=e(t,n):o instanceof x&&(i=o)),i}function n(e,t,n){for(var i=0;i<n;i++)if(!e[i]||!t[i]||e[i].index!==t[i].index)return!1;return!0}function i(e,t,i,o){var a=[],r=t&&t[i]||[],s=o&&o[i]||[];return E(e[i],function(e){var t=e[0],i=M(e);t.children&&r[i.length-1]&&!r[i.length-1].expanded&&i.length<r.length&&(!o||n(r,s,i.length))&&a.push(i.slice())},!0),a}function _(e,t,n,i){return t?m(i,function(i,o){if(n)e[o]=t[o];else{if(("summaryType"===o||"summaryDisplayMode"===o)&&void 0===t[o])return;V(e,o,t[o])}}):o(e,i),e}function y(e,t){var n=[];return m(e,function(e,i){n.push(_({dataField:i.dataField,name:i.name},i,!0,t))}),n}function b(e){return e.name?e.name:e.dataField+""}function z(e,t){var n=[];return m(e||[],function(e,i){b(i)===t&&n.push(i)}),n}function N(e,t){return e=e||[],m(t,function(t,n){_(n,e[t],!1,H),a(n,$)}),t}function W(e,t){e=e||[];var n,i={};return m(t,function(e,o){n=b(o),i[n]||(i[n]=z(t,b(o)))}),m(i,function(t,n){N(z(e,t),n)}),t}function q(e,t){return e.filter(function(e){return e.groupName===t.groupName&&u.isNumeric(e.groupIndex)&&e.visible!==!1}).map(function(e){return h(e,{areaIndex:t.areaIndex,area:t.area,expanded:g(e.expanded)?e.expanded:t.expanded,dataField:e.dataField||t.dataField,dataType:e.dataType||t.dataType,sortBy:e.sortBy||t.sortBy,sortOrder:e.sortOrder||t.sortOrder,sortBySummaryField:e.sortBySummaryField||t.sortBySummaryField,sortBySummaryPath:e.sortBySummaryPath||t.sortBySummaryPath,visible:e.visible||t.visible,showTotals:g(e.showTotals)?e.showTotals:t.showTotals,showGrandTotals:g(e.showGrandTotals)?e.showGrandTotals:t.showGrandTotals})}).sort(function(e,t){return e.groupIndex-t.groupIndex})}function G(e){e.sort(function(e,t){return e.areaIndex-t.areaIndex||e.groupIndex-t.groupIndex})}function K(e,t){var n="data"===t||e.visible!==!1;return e.area===t&&!g(e.groupIndex)&&n}function j(e,t){var n=e.groupName||"";return(e.dataField||n)+(e.groupInterval?n+e.groupInterval:"NOGROUP")+(t?"":n)}function U(e,t,n){var i=[],a={},r={},s=[],l=T.getFieldsDataType(e);return t?(m(t,function(e,t){a[j(t,n)]=t}),m(e,function(e,t){var s,c=j(t,n),d=a[c]||r[c];d?(d._initProperties&&o(d,L),s=h({},d,t,{_initProperties:null})):a[c]=s=t,h(s,{dataType:l[t.dataField]}),delete a[c],r[c]=d,i.push(s)}),n&&m(a,function(e,t){i.push(t)})):i=e,i.push.apply(i,s),i}function Y(e){var t,n=new w,i=e._store,o=i&&i.getFields(e._fields);return v(o).done(function(i){e._storeFields=i,t=U(e._fields,i,e._retrieveFields),n.resolve(t)}).fail(n.reject),n}function X(e,t){var n=null,i=(t||[]).join(".");return i.length&&E(e,function(e){var t=e[0],o=M(e).join("."),a=f.map(e,function(e){return e.text}).reverse().join(".");if(i===o||t.key&&a===i)return n=e[0].index,!1}),n}function Z(e,t,n,i){var o=t.values,a=B(n.values,e.sortBySummaryField),r="rows"===i,s=r?t.columns:t.rows,l=r?t.grandTotalRowIndex:t.grandTotalColumnIndex,c=e.sortBySummaryPath||[],d=c.length?X(s,c):l;if(o&&o.length&&a>=0&&g(d))return function(e){var t=r?e.index:d,n=r?d:e.index,i=((o[t]||[[]])[n]||[])[a];return g(i)?i:null}}function J(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}function Q(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=J(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:R(function(e){return e[r]}),l=!o&&Z(e,t,n,i),c=l&&R(l),d=function(e,t){var n=c&&c(e,t)||s(e,t);return"desc"===a?-n:n};return d}function ee(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];P(e[n],function(a,s){var l=o[s]||{},c=r[s]=r[s]||Q(l,e,t,n,i);a.sort(c)},a)}function te(e,t,n){ee(t,e,"rows",n),ee(t,e,"columns",n)}function ne(e,t,n){return A(e[n],function(e){var i=e[0];i.text=i.text||O(i.value,t[n][M(e).length-1])})}function ie(e,t){return v(ne(t,e,"columns"),ne(t,e,"rows"))}function oe(e){var t=new w,n={};return v(A(e,function(e){var t=M(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function ae(e,t){var n=[];return m(e,function(){K(this,t)&&n.push(this)}),n}var re=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},se=function e(t,n){var i,o,a=-1;if(t)for(i=0;i<t.length;i++)o=t[i],a=Math.max(a,o.index),o.children?a=Math.max(a,e(o.children)):o.collapsedChildren&&(a=Math.max(a,e(o.collapsedChildren)));return g(n)&&(a=Math.max(a,n)),a},le=function(e,t,n,i){var o,a=se(n)+1,r=se(e,i)+1,s=[],l=new w;for(o=0;o<a;o++)s[o]=r++;return t.children=n,v(A(t.children,function(e){e[0].index=s[e[0].index]})).done(function(){l.resolve(s)}),l},ce=function(e,t){var n=new w,i=[];return v(A(e,function(e){delete e[0].collapsedChildren})).done(function(){v(A(t,function(t){var n=re(e,M(t));n&&(i[t[0].index]=n.index)})).done(function(){n.resolve(i)})}),n},de=function(e,t,n,i){var o,a,r,s,l,c,d=e.values;if(t)for(o=0;o<=t.length;o++)if(r=t[o],l=n[o],g(l)||(l=e.grandTotalRowIndex),r&&g(l))for(d[l]||(d[l]=[]),a=0;a<=r.length;a++)s=r[a],c=i[a],g(c)||(c=e.grandTotalColumnIndex),g(s)&&g(c)&&(d[l][c]=s)};return{ctor:function(e){e=e||{};var n=this,i=t(e,function(e){n.fireEvent("progressChanged",[e])});n._store=i,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,m(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);e.hasOwnProperty(i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!g(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?h(n._createDescriptions(),e.descriptions):void 0,i||h(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n,i=[];return t||"data"===e?(i=ae(this._fields,e),G(i)):(n=this._descriptions||{},i=n[F[e]]||[]),i},fields:function(e){var t=this;return e&&(t._fields=U(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function e(t,n){var i,o=this,r=o._fields,e=r&&r[u.isNumeric(t)?t:B(r,t)];return e&&n&&(m(n,function(t,n){var o=p(t,H)<0;if(V(e,t,n,o),"sortOrder"===t){i=e.levels||[];for(var a=0;a<i.length;a++)i[a][t]=n}}),a(e,$),o._descriptions=o._createDescriptions(e)),e},getFieldValues:function(e){var t=this,n=this._fields&&this._fields[e],i=this.store(),o=[],a={columns:o,rows:[],values:this.getAreaFields("data"),filters:[],skipValues:!0},r=new w;return n&&i?(m(n.levels||[n],function(){o.push(h({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null}))}),i.load(a).done(function(e){ie(a,e),t._sort(a,e),r.resolve(e.columns)}).fail(r)):r.reject(),r},reload:function(){return this.load({reload:!0})},filter:function(){var e=this._store;return e.filter.apply(e,arguments)},load:function(e){function t(){n._delayedLoadTask=void 0,n._descriptions?n._loadCore(e,i):v(Y(n)).done(function(t){n._fieldsPrepared(t),n._loadCore(e,i)}).fail(i.reject).fail(n._loadErrorHandler)}var n=this,i=new w;return e=e||{},n.beginLoading(),i.fail(function(e){n.fireEvent("loadError",[e])}).always(function(){n.endLoading()}),n.store()?n._delayedLoadTask=d.executeAsync(t):t(),i},createDrillDownDataSource:function(e){return this._store.createDrillDownDataSource(this._descriptions,e)},_createDescriptions:function(e){var t=this,n=t.fields(),i={rows:[],columns:[],values:[],filters:[]};m(["row","column","data","filter"],function(t,i){C(ae(n,i),"areaIndex",e)}),m(n||[],function(e,t){var o=F[t.area],a=i[o],r=t.groupName;r&&!u.isNumeric(t.groupIndex)&&(t.levels=q(n,t)),!a||r&&u.isNumeric(t.groupIndex)||t.visible===!1&&"data"!==t.area&&"filter"!==t.area||(t.levels&&a!==i.filters&&a!==i.values?(a.push.apply(a,t.levels),t.filterValues&&t.filterValues.length&&i.filters.push(t)):a.push(t))}),m(i,function(e,t){G(t)});var o={};return m(i.values,function(e,t){var a=t.calculateSummaryValue;if(u.isFunction(a)){var r=D.createMockSummaryCell(i,n,o);a(r)}}),i},_fieldsPrepared:function(e){var t=this;t._fields=e,m(e,function(e,t){t.index=e,a(t,L)});var n=y(e,["caption"]);t.fireEvent("fieldsPrepared",[e]);for(var i=0;i<e.length;i++)e[i].caption!==n[i].caption&&V(e[i],"caption",e[i].caption,!0);t._descriptions=t._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(e,t){var n=this;return arguments.length?(e=h({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(n._descriptions?(n._fields=W(e.fields,n._fields),n._descriptions=n._createDescriptions(),!t&&n.load(e)):(n.beginLoading(),v(Y(n)).done(function(i){n._fields=W(e.fields,i),n._fieldsPrepared(i),!t&&n.load(e)}).always(function(){n.endLoading()})))):{fields:y(n._fields,H),columnExpandedPaths:i(n._data,n._descriptions,"columns"),rowExpandedPaths:i(n._data,n._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_loadCore:function(e,t){var n=this,o=this._store,a=this._descriptions,r=F[e.area];e=e||{},o?(h(e,a),e.columnExpandedPaths=e.columnExpandedPaths||i(this._data,e,"columns",n._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||i(this._data,e,"rows",n._lastLoadOptions),r&&(e.headerName=r),n.beginLoading(),t.always(function(){n.endLoading()}),v(o.load(e)).done(function(i){e.path?n.applyPartialDataSource(e.area,e.path,i,t):(h(n._data,i),n._lastLoadOptions=e,n._update(t))}).fail(t.reject)):n._update(t)},_sort:function(e,t,n){var i=this._store;i&&te(e,t,n)},isEmpty:function(){var e=this.getAreaFields("data"),t=this.getData();return!e.length||!t.values.length},_update:function(e){var t=this,n=t._descriptions,i=t._data,o=n.values,a=r(o);return v(ie(n,i),oe(i.rows),oe(i.columns)).done(function(){a&&(t._sort(n,i,a),!t.isEmpty()&&D.applyDisplaySummaryMode(n,i)),t._sort(n,i),!t.isEmpty()&&s(o)&&D.applyRunningTotal(n,i),t._data=i,v(e).done(function(){t.fireEvent("changed"),g(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),g(t._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=t._data.grandTotalColumnIndex)}),e&&e.resolve(t._data)}),e},store:function(){return this._store},collapseHeaderItem:function(e,t){var n=this,i="column"===e?n._data.columns:n._data.rows,o=re(i,t),a=n.getAreaFields(e)[t.length-1];return!(!o||!o.children)&&(n.fireEvent("expandValueChanging",[{area:e,path:t,expanded:!1}]),a&&(a.expanded=!1),o.collapsedChildren=o.children,delete o.children,n._update(),!0)},collapseAll:function(e){var t=!1,n=this.field(e)||{},i=p(n,this.getAreaFields(n.area));n.expanded=!1,E(this._data[n.area+"s"],function(e){var n=e[0],o=M(e);n&&n.children&&i===o.length-1&&(n.collapsedChildren=n.children,delete n.children,t=!0)},!0),t&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,this.load())},expandHeaderItem:function(e,t){var n,i,o=this,a="column"===e?o._data.columns:o._data.rows,r=re(a,t);return!(!r||r.children)&&(n=!!r.collapsedChildren,i={area:e,path:t,expanded:!0,needExpandData:!n},o.fireEvent("expandValueChanging",[i]),n?(r.children=r.collapsedChildren,delete r.collapsedChildren,o._update()):o.load(i),n)},applyPartialDataSource:function(e,t,n,i){var o,a,r,s=this,l=s._data,c="column"===e?l.columns:l.rows;n&&n.values&&(n.rows=n.rows||[],n.columns=n.columns||[],o=re(c,t),o&&("column"===e?(r=le(c,o,n.columns,l.grandTotalColumnIndex),a=ce(l.rows,n.rows)):(a=le(c,o,n.rows,l.grandTotalRowIndex),r=ce(l.columns,n.columns)),v(a,r).done(function(t,o){("row"===e&&t.length||"column"===e&&o.length)&&de(l,n.values,t,o),s._update(i)})))},dispose:function(){var e=this,t=e._delayedLoadTask;this._disposeEvents(),t&&t.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}()).include(y)},function(e,t,n){var i=n(2),o=n(414),a=n(8),r=n(23),s=n(0).extend,l=n(6),c=r.dateToMilliseconds,d="dx-scheduler-date-time-indicator",u="dx-scheduler-time-panel-current-time-cell",h="dx-scheduler-header-panel-current-time-cell",p=o.inherit({_getToday:function(){var e=this.option("indicatorTime")||new Date;return this.invoke("convertDateByTimezone",e)||e},_needRenderDateTimeIndicator:function(){var e=this._getToday(),t=r.trimTime(this.getEndViewDate());return r.dateInRange(e,this._firstViewDate,new Date(t.getTime()+c("day")))},needRenderDateTimeIndication:function(){if(!l.hasWindow())return!1;var e=this._getToday();return e>=r.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(this),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,t,e)}},_renderIndicator:function(e,t,n,i){for(var o=0;o<i;o++){var a=this._createIndicator(n);a.width(this.getCellWidth()),this._groupedStrategy.shiftIndicator(a,e,t,o)}},_createIndicator:function(e){var t=i("<div>").addClass(d);return e.append(t),t},_getRtlOffset:function(e){return this.option("rtlEnabled")?this._dateTableScrollable.$content().get(0).getBoundingClientRect().width-this.getTimePanelWidth()-e:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t<i?t:i},getIndicatorOffset:function(e){var t=this._getIndicatorDuration()-1,n=t*this.getRoundedCellWidth(e,e*this._getCellCount(),t);return n},_getIndicatorDuration:function(){var e=this._getToday(),t=new Date(this._firstViewDate),n=e.getTime()-t.getTime()+1;return Math.ceil(n/c("day"))},getIndicationHeight:function(){var e=this._getToday(),t=this.getCellHeight(),n=new Date(this._firstViewDate);this._needRenderDateTimeIndicator()&&n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var i=e.getTime()-n.getTime(),o=i/this.getCellDuration();return o*t},_dispose:function(){this._clearIndicatorUpdateInterval(),this.callBase.apply(this,arguments)},_refreshDateTimeIndication:function(){this._cleanDateTimeIndicator(),this._shader&&this._shader.clean(),this._renderDateTimeIndication()},_isCurrentTime:function(e){if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var t=this._getToday(),n=!1;e=new Date(e),e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());var i=new Date(e),o=new Date(e);return r.sameDate(t,e)&&(i=i.setMilliseconds(e.getMilliseconds()-this.getCellDuration()+1),o=o.setMilliseconds(e.getMilliseconds()+this.getCellDuration()),n=r.dateInRange(t,i,o)),n}},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this.option("indicatorTime")||new Date;t=r.sameDate(n,i)}return t},_getTimeCellClass:function(e){var t=this._getTimeCellDate(e),n=this.callBase(e);return this._isCurrentTime(t)?n+" "+u:n},_getHeaderPanelCellClass:function(e){var t=this.callBase(e);return this._isCurrentTimeHeaderCell(e)?t+" "+h:t},_cleanView:function(){this.callBase(),this._cleanDateTimeIndicator()},_dimensionChanged:function(){this.callBase(),this._refreshDateTimeIndication()},_cleanDateTimeIndicator:function(){this.$element().find("."+d).remove()},_cleanWorkSpace:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_optionChanged:function(e){switch(e.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":this.callBase(e),this._refreshDateTimeIndication();break;case"allDayExpanded":this.callBase(e),this._refreshDateTimeIndication();break;case"crossScrollingEnabled":this.callBase(e),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:this.callBase(e)}},_getDefaultOptions:function(){return s(this.callBase(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*c("minute"),shadeUntilCurrentTime:!0})}});a("dxSchedulerWorkSpace",p),e.exports=p},,,,,,,function(e,t,n){function i(e){return e.split(",").slice(1).map(function(e){return e.split("").filter(function(e){return"#"===e||"0"===e}).length})}function o(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}function a(e){return e.toString().split("").reverse().join("")}function r(e){return e.indexOf("%")!==-1&&!e.match(/'[^']*%[^']*'/g)}function s(e){return e?e.length-e.replace(/[#]/g,"").length:0}function l(e){return e?e.length-e.replace(/[0]/g,"").length:0}function c(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length<t;)e+="0";return e}function d(e,t,n){if(!t.length)return e;for(var i=[],o=0;e;){var a=t[o];i.push(e.slice(0,a)),e=e.slice(a),o<t.length-1&&o++}return i.join(n)}function u(e,t){return e.split(x).map(function(e,n){var i=n%2;return!e&&i?x:i?e:e.replace(/[,#0]+/,t)}).join("")}function h(e){for(var t=!1,n=0;n<e.length;n++)if("'"===e[n]&&(t=!t),"."===e[n]&&!t)return n;return e.length}function p(e,t){return t=t||w,function(n){if("number"!=typeof n||isNaN(n))return"";var p=o(e),f=1/n===1/0,g=n>0||f,m=p[g?0:1];r(m)&&(n=100*n),g||(n=-n);var _=h(m),w=[m.substr(0,_),m.substr(_+1)],x=l(w[1]),b=x+s(w[1]),C=l(w[0]),k=s(w[0])?void 0:C,S=Math.floor(n).toString().length,I=v(b,0,y-S),D=i(w[0]).reverse(),T=n.toFixed(I<0?0:I).split("."),E=c(a(T[0]),C,k),A=c(T[1],x,b);E=d(E,D,t.thousandsSeparator);var B=a(u(a(w[0]),E)),O=b?u(w[1],A):"",R=B+(O.match(/\d/)?t.decimalSeparator:"")+O;return R}}function f(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function g(e,t,n,i){var o,a,r,s=e;do r&&(o=a.length===r.length?"0":"1",e=i?o+e:e+o),a=r||t(f(s,n)),s=i?"1"+s:s+"1",r=t(f(s,n));while(a!==r&&(i?a.length===r.length:a.length<=r.length));if(i&&r.length>a.length){var l=t(12345).indexOf("12345")===-1;do e="1"+e;while(l&&f(e,n)<1e5)}return e}function m(e,t,n,i){var o=t(f(e,n,i)),a=e.split("."),r=a[0]+".3"+a[1].slice(1),s=f(r,n,i),l=t(s).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(o=o.slice(0,l)+"."+o.slice(l+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}function _(e){var t=".",n=e(1).indexOf("100")>=0;t=g(t,e,n,!0),t=g(t,e,n,!1);var i=m(t,e,n,!1),o=m(t,e,n,!0);return o==="-"+i?i:i+";"+o}var v=n(31).fitIntoRange,w={thousandsSeparator:",",decimalSeparator:"."},x="'",y=15;t.getFormatter=p,t.getFormat=_},function(e,t,n){var i=n(2),o=n(17),a=n(1),r=n(66),s=n(13),l={},c=function(e,t){l[e]=t},d=function(e){e=i(e);var t=e.length&&e[0].nodeName.toLowerCase();return"script"===t?e.html():(e=i("<div>").append(e),e.html())};c("default",{compile:function(e){return s.normalizeTemplateElement(e)},render:function(e,t,n,i){return i?e:e.clone()}}),c("jquery-tmpl",{compile:function(e){return d(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),c("jsrender",{compile:function(e){return(jQuery?jQuery:jsrender).templates(d(e))},render:function(e,t){return e.render(t)}}),c("mustache",{compile:function(e){return d(e)},render:function(e,t){return Mustache.render(e,t)}}),c("hogan",{compile:function(e){return Hogan.compile(d(e))},render:function(e,t){return e.render(t)}}),c("underscore",{compile:function(e){return _.template(d(e))},render:function(e,t){return e(t)}}),c("handlebars",{compile:function(e){return Handlebars.compile(d(e))},render:function(e,t){return e(t)}}),c("doT",{compile:function(e){return doT.template(d(e))},render:function(e,t){return e(t)}});var u,h=function(e){if(a.isString(e)){if(u=l[e],!u)throw o.Error("E0020",e)}else u=e};h("default");var p=r.inherit({ctor:function(e){this._element=e,this._compiledTemplate=u.compile(e)},_renderCore:function(e){return i("<div>").append(u.render(this._compiledTemplate,e.model,e.index,e.transclude)).contents()},source:function(){return i(this._element).clone()}});e.exports=p,e.exports.setTemplateEngine=h},function(e,t,n){var i=n(4).getKeyHash,o=n(4).equalByValue,a=n(1),r=function(e,t){this.getLocalFilter=function(e,t,n,i){return t=void 0===t?o:t,l.bind(this,t,e,n,i)},this.getExpr=function(n){if(n){var i;return e.forEach(function(e,o){i=i||[];var r;o>0&&i.push(t?"and":"or"),r=a.isString(n)?c(n,e):d(n,e),i.push(r)}),i&&1===i.length&&(i=i[0]),i}},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),o=i;return t&&n&&(i?(o=[],o.push(i),o.push(n)):o=n),o};var n,r=function(e){if(!n){n={};for(var t=0;t<e.length;t++)n[i(e[t])]=!0}return n},s=function(e,t,n){return Array.isArray(n)?e.map(function(e){return t(e)}):e},l=function(n,o,l,c,d){var u,h,p=o(d);if(!l&&(u=i(p),!a.isObject(u))){var f=r(s(e,o,c));return f[u]?!t:!!t}for(h=0;h<e.length;h++)if(n(e[h],p))return!t;return!!t},c=function(e,n){if(void 0!==n)return[e,t?"<>":"=",n]},d=function(e,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=n&&n[r],l=c(r,s);if(!l)break;o>0&&i.push(t?"or":"and"),i.push(l)}return i}};t.SelectionFilterCreator=r},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(5),r=n(115),s=n(1).isFunction,l=n(76),c=n(13),d=n(3).each,u=n(73),h=n(0).extend,p=n(1).isPlainObject,f=n(14),g=n(20),m=n(21),_=n(15),v=n(60),w=n(30),x=n(7).Deferred,y={text:"OK",onClick:function(){return!0}},b="dx-dialog",C=b+"-wrapper",k=b+"-root",S=b+"-content",I=b+"-message",D=b+"-buttons",T=b+"-button",E=r.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){var e=g.current();return this.callBase().concat([{device:{platform:"ios"},options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}},{device:function(t){return!t.phone&&g.isWin8(e)},options:{width:function(){return i(o).width()}}},{device:function(t){return t.phone&&g.isWin8(e)},options:{position:{my:"top center",at:"top center",of:o,offset:"0 0"}}}])}});t.FakeDialogComponent=E,t.title="",t.custom=function(e){function n(){return R.show(),p.promise()}function r(e){p.resolve(e),R.hide().done(function(){R.$element().remove()})}var p=new x,g=(new E).option();e=h(g,e);var _=i("<div>").addClass(b).appendTo(u.value()),A=i("<div>").addClass(I).html(String(e.message)),B=[],O=e.toolbarItems;O?m.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):O=e.buttons,d(O||[y],function(){var e=new l(this.onClick,{context:R});B.push({toolbar:"bottom",location:f.current().android?"after":"center",widget:"dxButton",options:h({},this,{onClick:function(){var t=e.execute(arguments);r(t)}})})});var R=new v(_,{title:e.title||t.title,showTitle:function(){var t=void 0===e.showTitle||e.showTitle;return t}(),height:"auto",
|
|
28
|
+
width:function(){var t=i(o).height()>i(o).width(),n=(t?"p":"l")+"Width",a=e.hasOwnProperty(n)?e[n]:e.width;return s(a)?a():a},showCloseButton:e.showCloseButton||!1,focusStateEnabled:!1,onContentReady:function(e){e.component.$content().addClass(S).append(A)},onShowing:function(e){e.component.bottomToolbar().addClass(D).find(".dx-button").addClass(T),c.resetActiveElement()},onShown:function(e){var t=e.component.bottomToolbar().find(".dx-button").first();a.trigger(t,"focus")},onHiding:function(){p.reject()},toolbarItems:B,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:w().rtlEnabled,boundaryOffset:{h:10,v:0}});return R._wrapper().addClass(C),e.position&&R.option("position",e.position),R._wrapper().addClass(k),{show:n,hide:r}},t.alert=function(e,n,i){var o=p(e)?e:{title:n,message:e,showTitle:i};return t.custom(o).show()},t.confirm=function(e,n,i){var o=p(e)?e:{title:n,message:e,showTitle:i,buttons:[{text:_.format("Yes"),onClick:function(){return!0}},{text:_.format("No"),onClick:function(){return!1}}]};return t.custom(o).show()}},function(e,t,n){var i=n(2),o=n(0).extend,a=n(15),r=n(98),s=n(21),l=n(7).Deferred;e.exports={_getDefaultOptions:function(){return o(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e,t=this.$element(),n=this.option("searchEnabled"),o=this._addWidgetPrefix("search"),a=this._addWidgetPrefix("with-search");return n?(e=this._getSearchEditorOptions(),void(this._searchEditor?this._searchEditor.option(e):(t.addClass(a),this._$searchEditorElement=i("<div>").addClass(o).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,r,e)))):(t.removeClass(a),void this._removeSearchBox())},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions");return o({mode:"search",placeholder:a.format("Search"),tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",onValueChanged:function(t){var n=e.option("searchTimeout");e._valueChangeDeferred=new l,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout(function(){e._valueChangeDeferred.resolve()},n):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer():this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void s.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){return!this.option("focusedElement")&&this.option("searchEnabled")?void(this._searchEditor&&this._searchEditor.focus()):void this.callBase()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()}}},function(e,t,n){var i=n(81).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){function i(e){var t=r.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function o(e){var t=!0;return e.indexOf("xmlns:xlink")===-1&&(e=e.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function a(e){return e.replace(/"/gi,""").replace(/&/gi,"&").replace(/'/gi,"'").replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/­/gi,"­")}var r=n(12);t.getSvgMarkup=function(e){return o(a(i(e)))}},function(e,t,n){var i=n(10),o=n(351),a=n(352),r=n(0).extend,s=n(4).noop,l=n(1).isDefined,c=n(7).Deferred;e.exports=i.inherit({ctor:function(e){this.options=r(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o(this.options):new a(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:s,key:s,keyOf:function(e){return e},load:function(){return(new c).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:s,filter:s}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var t=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,t&&this.onSelectionChanged()},setSelection:function(e){return this.selectedItemKeys(e)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,n,i){var o=this;return e=e||[],e=Array.isArray(e)?e:[e],o.validate(),this._selectionStrategy.selectedItemKeys(e,t,n,i)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,t){this._selectionStrategy.addSelectedItem(t,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,t){this._selectionStrategy.setSelectedItems(e,t)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,t){var n,i=this.options.plainItems(),o=i[e];if(!this.isSelectable()||!this.isDataItem(o))return!1;var a=this.options.getItemData(o),r=this.options.keyOf(a);if(t=t||{},t.shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(r):this._addSelectedItem(a,r),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],r);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([r],[a]),n=!0)}return n?(this._focusedItemIndex=e,this.onSelectionChanged(),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e)},isItemSelected:function(e){return this._selectionStrategy.isItemKeySelected(e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,o=!1,a=this.options.keyOf,r=t[this._focusedItemIndex],s=this.options.getItemData(r),c=a(s),d=r&&this.isItemDataSelected(s);l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var u,h;if(this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(h=a(this.options.getItemData(t[i])),this._removeSelectedItem(h),o=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(u=this.options.getItemData(t[i]),h=a(u),this._addSelectedItem(u,h),o=!0);return this.isDataItem(r)&&!d&&(this._addSelectedItem(s,c),o=!0),o},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this.options.plainItems(),n=0;n<t.length;n++){var i=t[n];if(this.isDataItem(i)){var o=this.options.getItemData(i),a=this.options.keyOf(o),r=this.isItemSelected(a);r||e||this._addSelectedItem(o,a),r&&e&&this._removeSelectedItem(a)}}return this.onSelectionChanged(),(new c).resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}})},function(e,t,n){e.exports={_waitAsyncTemplates:function(e){if(this._options.templatesRenderAsynchronously){this._asyncTemplatesTimers=this._asyncTemplatesTimers||[];var t=setTimeout(function(){e.call(this),clearTimeout(t)}.bind(this));this._asyncTemplatesTimers.push(t)}else e.call(this)},_cleanAsyncTemplatesTimer:function(){for(var e=this._asyncTemplatesTimers||[],t=0;t<e.length;t++)clearTimeout(e[t]);delete this._asyncTemplatesTimers}}},function(e,t,n){var i=n(2),o=n(20),a=n(4),r=n(1).isPlainObject,s=n(8),l=n(11).inArray,c=n(0).extend,d=n(3).each,u=n(453),h=n(67),p="dx-toolbar",f="dx-toolbar-before",g="dx-toolbar-center",m="dx-toolbar-after",_="dx-toolbar-bottom",v="dx-toolbar-mini",w="dx-toolbar-item",x="dx-toolbar-label",y="dx-toolbar-button",b="dx-toolbar-items-container",C="dx-toolbar-group",k="dx-toolbar-compact",S="."+x,I="dx-button-flat",D="default",T="dxToolbarItemDataKey",E=u.inherit({compactMode:!1,_initTemplates:function(){this.callBase();var e=new h(function(e,t,n){if(r(t)){if(t.text&&e.text(t.text).wrapInner("<div>"),t.html&&e.html(t.html),"dxButton"===t.widget){if(t.options){var i=this.option("useFlatButtons")?I:"";if(t.options.elementAttr){var o=t.options.elementAttr.class;o&&(o=o.replace(I,""),i+=" "+o)}var a=c(t.options.elementAttr||{},{"class":i});t.options=c(t.options,{elementAttr:a})}this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||D)}}else e.text(String(t));this._getTemplate("dx-polymorph-widget").render({container:e,model:n})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._defaultTemplates.item=e,this._defaultTemplates.menuItem=e},_getDefaultOptions:function(){return c(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return o.isMaterial()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+f,"."+g,"."+m].join(","))},_itemClass:function(){return w},_itemDataKey:function(){return T},_buttonClass:function(){return y},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_render:function(){this.callBase(),this._renderItemsAsync()},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass(p).toggleClass(_,"bottomToolbar"===this.option("renderAs")),this._$toolbarItemsContainer=i("<div>").addClass(b).appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;d(["before","center","after"],function(){var n="dx-toolbar-"+this,o=e.find("."+n);o.length||(t["_$"+this+"Section"]=o=i("<div>").addClass(n).appendTo(e))})},_arrangeItems:function(e){e=e||this.$element().width(),this._$centerSection.css({margin:"0 auto","float":"none"});var t=this._$beforeSection.get(0).getBoundingClientRect(),n=this._$afterSection.get(0).getBoundingClientRect();this._alignCenterSection(t,n,e);var o=this._$toolbarItemsContainer.find(S).eq(0),a=o.parent();if(o.length){var r=t.width?t.width:o.position().left,s=a.hasClass(f)?0:r,l=a.hasClass(m)?0:n.width,c=0;a.children().not(S).each(function(){c+=i(this).outerWidth()});var d=e-c,u=Math.max(d-s-l,0);if(a.hasClass(f))this._alignSection(this._$beforeSection,u);else{var h=o.outerWidth()-o.width();o.css("maxWidth",u-h)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),o=i?t:e,a=i?e:t,r=this._$centerSection.get(0).getBoundingClientRect();(o.right>r.left||r.right>a.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:a.width,"float":o.width>a.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(S),i=n.toArray();t-=this._getCurrentLabelsPaddings(i);var o=this._getCurrentLabelsWidth(i),a=Math.abs(o-t);t<o?(i=i.reverse(),this._alignSectionLabels(i,a,!1)):this._alignSectionLabels(i,a,!0)},_alignSectionLabels:function(e,t,n){for(var o=function(e){return e.getBoundingClientRect().width},a=0;a<e.length;a++){var r,s=i(e[a]),l=Math.ceil(o(e[a]));n&&s.css("maxWidth","inherit");var c=Math.ceil(n?o(e[a]):l);if(!(c<t)){r=n?l+t:l-t,s.css("maxWidth",r);break}r=n?c:0,t-=c,s.css("maxWidth",r)}},_applyCompactMode:function(){var e=this.$element();e.removeClass(k),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>e.width()&&e.addClass(k)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach(function(e,n){t+=i(e).outerWidth()}),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach(function(e,n){t+=i(e).outerWidth()-i(e).width()}),t},_renderItem:function(e,t,n,i){var o=t.location||"center",a=n||this._$toolbarItemsContainer.find(".dx-toolbar-"+o),r=!(!t.text&&!t.html),s=this.callBase(e,t,a,i);return s.toggleClass(this._buttonClass(),!r).toggleClass(x,r),s},_renderGroupedItems:function(){var e=this;d(this.option("items"),function(t,n){var o=n.items,a=i("<div>").addClass(C),r=n.location||"center";o&&o.length&&(d(o,function(t,n){e._renderItem(t,n,a,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+r).append(a))})},_renderItems:function(e){var t=this.option("grouped")&&e.length&&e[0].items;t?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass(v,0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()},_renderEmptyMessage:a.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(e){return l(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}}});s("dxToolbarBase",E),e.exports=E},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(12),r=n(5),s=n(51).add,l=n(4),c=n(1),d=n(0).extend,u=n(11).inArray,h=n(25),p=n(8),f=n(70),g=n(20),m="dx-toast",_=m+"-",v=_+"wrapper",w=_+"content",x=_+"message",y=_+"icon",b="dxToast",C=["info","warning","error","success"],k=[],S=8e3,I=null,D={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}};s(function(){r.subscribeGlobal(a.getDocument(),h.down,function(e){for(var t=k.length-1;t>=0;t--)if(!k[t]._proxiedDocumentDownHandler(e))return})});var T=f.inherit({_getDefaultOptions:function(){return d(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",closeOnBackButton:!1,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{position:"top center",width:function(){return i(o).width()}}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{position:"bottom right",width:"auto"}},{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:o}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:o}}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform,i="win"===e.platform&&e.version&&10===e.version[0];return t&&(n||i)},options:{width:function(){return i(o).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(){return g.isMaterial()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=i("<div>").addClass(x).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),u(this.option("type").toLowerCase(),C)>-1&&this.$content().prepend(i("<div>").addClass(y)),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(m),this._wrapper().addClass(v),this._$content.addClass(_+String(this.option("type")).toLowerCase()),this.$content().addClass(w),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:l.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();r.off(this._$content,t),this.option("closeOn"+e)&&r.on(this._$content,t,this.hide.bind(this))},_posStringToObject:function(){if(c.isString(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",d({},D[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return I&&I!==this&&(clearTimeout(I._hideTimeout),I.hide()),I=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return I=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return k},_zIndexInitValue:function(){return this.callBase()+S},_dispose:function(){clearTimeout(this._hideTimeout),I=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this._$content.removeClass(_+e.previousValue),this._$content.addClass(_+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(e)}}});p(b,T),e.exports=T},function(e,t,n){var i=n(8),o=n(457);i("dxTextEditor",o),e.exports=o},function(e,t,n){var i=n(2),o=n(1).isDefined,a=n(29),r=n(12),s=a.msie||a.safari,l=function(e){return d(e)?u(e):{start:e.selectionStart,end:e.selectionEnd}},c=function(e,t){return d(e)?void h(e,t):void(r.getBody().contains(e)&&(e.selectionStart=t.start,e.selectionEnd=t.end))},d=function(e){return!e.setSelectionRange},u=function(e){var t=r.getSelection().createRange(),n=t.duplicate();return t.move("character",-e.value.length),t.setEndPoint("EndToStart",n),{start:t.text.length,end:t.text.length+n.text.length}},h=function(e,t){if(r.getBody().contains(e)){var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t.start),n.moveEnd("character",t.end-t.start),n.select()}},p=function(e,t){return e=i(e).get(0),o(t)?void(s&&r.getActiveElement()!==e||c(e,t)):l(e)};e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(126),s=r.abstract,l=n(9),c=n(25),d=n(96),u="dxListEditDecorator",h=l.addNamespace(c.down,u),p=l.addNamespace(d.active,u),f="dx-list-item-content",g="dx-list-switchable-delete-ready",m="dx-list-switchable-menu-shield-positioning",_="dx-list-switchable-delete-top-shield",v="dx-list-switchable-delete-bottom-shield",w="dx-list-switchable-menu-item-shield-positioning",x="dx-list-switchable-delete-item-content-shield",y=r.inherit({_init:function(){this._$topShield=i("<div>").addClass(_),this._$bottomShield=i("<div>").addClass(v),this._$itemContentShield=i("<div>").addClass(x),o.on(this._$topShield,h,this._cancelDeleteReadyItem.bind(this)),o.on(this._$bottomShield,h,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(g)},_toggleShields:function(e,t){this._list.$element().toggleClass(m,t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),n=t.offset().top,i=t.outerHeight(),o=e.offset().top,a=e.outerHeight(),r=o-n,s=i-a-r;this._$topShield.height(Math.max(r,0)),this._$bottomShield.height(Math.max(s,0))},_toggleContentShield:function(e,t){t?e.find("."+f).first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),o.off(e,c.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(w),o.on(e,p,a),o.one(e,c.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(w),o.off(e,p)},_prepareDeleteReady:function(e){e.addClass(g)},_forgetDeleteReady:function(e){e.removeClass(g)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_deleteItem:function(e){e=e||this._$readyToDeleteItem,e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});e.exports=y},function(e,t,n){var i={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}};e.exports=i},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(51).add,s=n(24),l=n(28),c=n(9),d=n(4),u=n(1).isPlainObject,h=n(0).extend,p=n(25),f="dxScrollbar",g="dx-scrollable-scrollbar",m=g+"-active",_="dx-scrollable-scroll",v="dx-scrollable-scroll-content",w="dx-scrollbar-hoverable",x="horizontal",y=15,b={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},C=l.inherit({_getDefaultOptions:function(){return h(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:b.onScroll,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass(w,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=i("<div>").addClass(_),i("<div>").addClass(v).appendTo(this._$thumb),this.$element().addClass(g).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===b.onHover||e===b.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===x?"width":"height",this._prop=e===x?"left":"top"},_attachPointerDownHandler:function(){a.on(this._$thumb,c.addNamespace(p.down,f),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(m),k=this},feedbackOff:function(){this.$element().removeClass(m),k=null},cursorEnter:function(){this._isHovered=!0,this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===b.onScroll&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this.containerToContentRatio()&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case b.onScroll:break;case b.onHover:e=e||!!this._isHovered;break;case b.never:e=!1;break;case b.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){u(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),s.move(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize"));this._containerToContentRatio=t?e/t:e;var n=Math.round(Math.max(Math.round(e*this._containerToContentRatio),y));this._thumbRatio=(e-n)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,n/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===b.never},_needScrollbar:function(){return!this._isHidden()&&this._containerToContentRatio<1},containerToContentRatio:function(){return this._containerToContentRatio},_normalizeSize:function(e){return u(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===k&&(k=null),a.off(this._$thumb,"."+f)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:d.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),k=null;r(function(){a.subscribeGlobal(o.getDocument(),c.addNamespace(p.up,f),function(){k&&k.feedbackOff()})}),e.exports=C},function(e,t,n){var i,o,a=n(2),r=n(12),s=n(5),l=Math,c=n(37).titleize,d=n(0).extend,u=n(6),h=n(3),p=n(1).isDefined,f=n(24),g=n(10),m=n(273),_=n(14),v=n(9),w=n(4),x=n(271),y=n(7),b=y.when,C=y.Deferred,k=_.real,S="win"===k.platform||"android"===k.platform,I="dxSimulatedScrollable",D="dxScrollableStrategy",T=I+"Cursor",E=I+"Keyboard",A="dx-scrollable-simulated",B="dx-scrollable-scrollbars-hidden",O="dx-scrollable-scrollbars-alwaysvisible",R="dx-scrollable-scrollbar",M="vertical",P="horizontal",V=S?.95:.92,F=.5,H=1,$=l.round(1e3/60),L=20,z=H/5,N=S?300:400,W=N/$,q=(1-l.pow(V,W))/(1-V),G={
|
|
29
29
|
PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},K=m.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:H,_isFinished:function(){return l.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?V:F},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),j=K.inherit({VELOCITY_LIMIT:z,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return V},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),U=function(e){return"dxmousewheel"===e.type},Y=g.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===P?"x":"y",this._prop=e.direction===P?"left":"top",this._dimension=e.direction===P?"width":"height",this._scrollProp=e.direction===P?"scrollLeft":"scrollTop",h.each(e,function(e,t){this["_"+e]=t}.bind(this))},_initAnimators:function(){this._inertiaAnimator=new K(this),this._bounceAnimator=new j(this)},_initScrollbar:function(){this._scrollbar=new x(a("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return e===!0?"onScroll":e===!1?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||s.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,l.max(l.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if(u.hasWindow()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),n=this._getBaseDimension(e,this._dimension);this._scaleRatio=t/n}return this._scaleRatio||1},_getRealDimension:function(e,t){return l.round(e.getBoundingClientRect()[t])},_getBaseDimension:function(e,t){var n="offset"+c(t);return e[n]},_moveContentByTranslator:function(e){var t,n=-this._maxScrollPropValue;if(t=e>0?e:e<=n?e-n:e%1,this._translateOffset!==t){var i={};return i[this._prop]=t,this._translateOffset=t,0===t?void f.resetPosition(this._$content):void f.move(this._$content,i)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=this._bounceLocation=this._boundLocation(),t=e-this._location;this._velocity=t/q},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e<this._minOffset&&t>=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){return this._stopDeferred=new C,this._stopScrolling(),this._prepareThumbScrolling(e),this._stopDeferred.promise()},_stopScrolling:w.deferRenderer(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(e){if(!U(e.originalEvent)){var t=a(e.originalEvent.target),n=this._isScrollbar(t);n&&this._moveToMouseLocation(e),this._thumbScrolling=n||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],n=this._location+t/this._containerToContentRatio()-this._$container.height()/2;this._scrollStep(-Math.round(n))},_stopComplete:function(){this._stopDeferred&&this._stopDeferred.resolve()},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=F),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new C,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){var e=this;return e._stopScrolling(),w.deferUpdate(function(){e._resetScaleRatio(),e._updateLocation(),e._updateBounds(),e._updateScrollbar(),w.deferRender(function(){e._moveScrollbar(),e._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(f.locate(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=Math.round(this._getMaxOffset()),this._minOffset=Math.round(this._getMinOffset())},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=l.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:w.deferUpdater(function(){var e=this,t=e._containerSize(),n=e._contentSize();w.deferRender(function(){e._scrollbar.option({containerSize:t,contentSize:n,scaleRatio:e._getScaleRatio()})})}),_moveToBounds:w.deferRenderer(w.deferUpdater(w.deferRenderer(function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()}))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),t=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var n=this._$content[0]["scroll"+c(this._dimension)]*this._getScaleRatio();t=l.max(n,t)}return t},_validateEvent:function(e){var t=a(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)||this._isContent(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_isContent:function(e){return this._scrollByContent&&!!e.closest(this._$element).length},_reachedMin:function(){return this._location<=this._minOffset},_reachedMax:function(){return this._location>=this._maxOffset},_cursorEnterHandler:function(){this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:w.noop}),X=g.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$wrapper=e._$wrapper,this._$content=e._$content,this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e)},render:function(){this._$element.addClass(A),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(P)&&this._createScroller(P),this._isDirection(M)&&this._createScroller(M),this._$element.toggleClass(O,"always"===this.option("showScrollbar")),this._$element.toggleClass(B,!this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new Y(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var t in this._scrollers){var n=this._getPropByDirection(t);if(p(e[n])){var i=this._scrollers[t];e[n]*=i._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done(function(e,n){t=e||n}),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e).done(this._stopAction)},_suppressDirections:function(e){return U(e.originalEvent)?void this._prepareDirections(!0):(this._prepareDirections(),void this._eachScroller(function(t,n){var i=t._validateEvent(e);this._validDirections[n]=i}))},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[P]=e,this._validDirections[M]=e},_eachScroller:function(e){e=e.bind(this),h.each(this._scrollers,function(t,n){e(n,t)})},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){o=this},_resetActive:function(){o===this&&(o=null)},handleMove:function(e){return this._isLocked()?(e.cancel=!0,void this._resetActive()):(this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e.delta),this._eventForUserAction=e,void this._eventHandler("move",e.delta))},_adjustDistance:function(e){e.x*=this._validDirections[P],e.y*=this._validDirections[M]},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._scrollAction()},_attachKeyboardHandler:function(){s.off(this._$element,"."+E),!this.option("disabled")&&this.option("useKeyboard")&&s.on(this._$element,v.addNamespace("keydown",E),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(this._$container.is(r.getActiveElement())){var t=!0;switch(e.keyCode){case G.DOWN:this._scrollByLine({y:1});break;case G.UP:this._scrollByLine({y:-1});break;case G.RIGHT:this._scrollByLine({x:1});break;case G.LEFT:this._scrollByLine({x:-1});break;case G.PAGE_DOWN:this._scrollByPage(1);break;case G.PAGE_UP:this._scrollByPage(-1);break;case G.HOME:this._scrollToHome();break;case G.END:this._scrollToEnd();break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){this.scrollBy({top:(e.y||0)*-L,left:(e.x||0)*-L})},_scrollByPage:function(e){var t=this._wheelProp(),n=this._dimensionByProp(t),i={};i[t]=e*-this._$container[n](),this.scrollBy(i)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===P?"left":"top"},_scrollToHome:function(){var e=this._wheelProp(),t={};t[e]=0,this._component.scrollTo(t)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),n={};n[e]=this._$content[t]()-this._$container[t](),this._component.scrollTo(n)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._stopAction=this._createActionHandler("onStop"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=this,n=t._createActionByOption(e);return function(){n(d(t._createActionArgs(),arguments))}},_createActionArgs:function(){var e=this._scrollers[P],t=this._scrollers[M],n=this.location();return this._scrollOffset={top:t&&-n.top,left:e&&-n.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:t&&t._reachedMax(),reachedBottom:t&&t._reachedMin()}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),n=h.map(this._scrollers,function(n){return n["_"+e+"Handler"].apply(n,t)});return b.apply(a,n).promise()},location:function e(){var e=f.locate(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){s.off(this._$element,"."+T),!this.option("disabled")&&this._isHoverMode()&&(s.on(this._$element,v.addNamespace("mouseenter",T),this._cursorEnterHandler.bind(this)),s.on(this._$element,v.addNamespace("mouseleave",T),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){e=e||{},e.originalEvent=e.originalEvent||{},o||e.originalEvent._hoverHandled||(i&&i._cursorLeaveHandler(),i=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){i===this&&o!==i&&(this._eventHandler("cursorLeave"),i=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!o){var t=a(e),n=t.closest("."+A+":not(.dx-state-disabled)"),r=n.length&&n.data(D);i&&i!==r&&i._cursorLeaveHandler(),r&&r._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return b(t,w.deferUpdate(function(){var t=e._allowedDirections();return w.deferRender(function(){var n=t.vertical?"pan-x":"";n=t.horizontal?"pan-y":n,n=t.vertical&&t.horizontal?"none":n,e._$container.css("touchAction",n)}),b().promise()}))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[M],n=this._scrollers[P];return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},updateBounds:function(){this._scrollers[P]&&this._scrollers[P]._updateBounds()},scrollBy:function(e){var t=this._scrollers[M],n=this._scrollers[P];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),n&&(e.left=n._boundLocation(e.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction()},validate:function(e){return!this.option("disabled")&&(!!this.option("bounceEnabled")||(U(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this._scrollers[this._wheelDirection(e)],n=t._reachedMin(),i=t._reachedMax(),o=!n||!i,a=!n&&!i,r=n&&e.delta>0,s=i&&e.delta<0;return o&&(a||r||s)},_validateMove:function(e){return!(!this.option("scrollByContent")&&!a(e.target).closest("."+R).length)&&this._allowedDirection()},getDirection:function(e){return U(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===P?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case P:return P;case M:return M;default:return e&&e.shiftKey?P:M}},verticalOffset:function(){return 0},dispose:function(){this._resetActive(),i===this&&(i=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(A),this._eventForUserAction=null,clearTimeout(this._gestureEndTimer)},_detachEventHandlers:function(){s.off(this._$element,"."+T),s.off(this._$container,"."+E)}});t.SimulatedStrategy=X,t.Scroller=Y},function(e,t,n){var i=n(4).noop,o=n(10),a=o.abstract,r=n(105),s=o.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,r.cancelAnimationFrame(this._stepAnimationFrame)},_stepCore:function(){return this._isStopped()?void this._stop():this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=r.requestAnimationFrame(this._proxiedStepCore)))},_step:a,_isFinished:i,_stop:i,_complete:i,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});e.exports=s},function(e,t,n){var i=n(245),o=n(186),a=n(23),r=n(4),s=n(1).isFunction,l=n(0).extend,c=n(15),d=o.inherit({NAME:"Calendar",supportedKeys:function(){return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")!==this._widget.option("maxZoomLevel"))return!0;var t=this._widget._view.option("contouredDate");t&&this.dateBoxValue(t,e),this.dateBox.close(),this.dateBox._valueChangeEventHandler(e)}else this.dateBox._valueChangeEventHandler(e)}.bind(this)}},getDisplayFormat:function(e){return e||"shortdate"},_getWidgetName:function(){return i},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return l(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,_keyboardProcessor:this._widgetKeyboardProcessor,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:s(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),hasFocus:function(){return!0}})},_injectComponent:function(e){var t=this;return function(n){return l(n,{component:t.dateBox}),e(n)}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",e.actionValue)},popupConfig:function(e){var t=e.toolbarItems,n=this.dateBox.option("buttonsLocation"),i=[];return i="default"!==n?r.splitPair(n):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&t.unshift({widget:"dxButton",toolbar:i[0],location:"after"===i[1]?"before":i[1],options:{onClick:function(){this._widget._toTodayView()}.bind(this),text:c.format("dxCalendar-todayButtonText"),type:"today"}}),l(!0,e,{toolbarItems:t,position:{collision:"flipfit flip"}})},_valueChangedHandler:function(e){var t=this.dateBox,n=e.value,i=e.previousValue;a.sameDate(n,i)||"instantly"===t.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.event))}});e.exports=d},function(e,t,n){var i=n(2),o=n(210),a=n(0).extend,r=n(1).isFunction,s=n(8),l="dx-progressbar",c="dx-progressbar-container",d="dx-progressbar-range-container",u="dx-progressbar-range",h="dx-progressbar-wrapper",p="dx-progressbar-status",f="dx-progressbar-animating-container",g="dx-progressbar-animating-segment",m=o.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:0,statusFormat:function(e){return"Progress: "+Math.round(100*e)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"win"},options:{_animatingSegmentCount:5}},{device:function(e){return"android"===e.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass(l),this._$wrapper.addClass(h),this._$bar.addClass(c),this.setAria("role","progressbar"),i("<div>").addClass(d).appendTo(this._$wrapper).append(this._$bar),this._$range.addClass(u),this._toggleStatus(this.option("showStatus"))},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=i("<div>").addClass(p)},_renderIndeterminateState:function(){this._$segmentContainer=i("<div>").addClass(f);for(var e=this.option("_animatingSegmentCount"),t=0;t<e;t++)i("<div>").addClass(g).addClass(g+"-"+(t+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(e){var t=this.option("statusPosition").split(" ");e?"top"===t[0]||"left"===t[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition"),t=e.split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var n="dx-position-"+t[0];t[1]&&(n+="-"+t[1]),this._$wrapper.addClass(n)},_toggleIndeterminateState:function(e){e?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var e=this.option("value"),t=this.option("max");return e||0===e?(this._$segmentContainer&&this._toggleIndeterminateState(!1),e===t&&this._completeAction(),this.callBase(),void this._setStatus()):void this._toggleIndeterminateState(!0)},_setStatus:function(){var e=this.option("statusFormat");e=r(e)?e.bind(this):function(e){return e};var t=e(this._currentRatio,this.option("value"));this._$status.text(t)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(e){switch(e.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(e.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(e)}}});s("dxProgressBar",m),e.exports=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(50),s=i(r),l=n(3),c=function(){function e(){o(this,e),this._storage={}}return a(e,[{key:"_find",value:function(e){var t;return(0,l.each)(this._storage,function(n,i){var o=i.instance,a=i.item;if(e(a))return t=o,!1}),t}},{key:"clear",value:function(){this._storage={}}},{key:"add",value:function(e,t,n){return n=n||new s.default,this._storage[n]={item:e,instance:t},n}},{key:"extend",value:function(e){var t=this;e.each(function(e,n,i){t._storage[i]?t._storage[i].instance=e:t.add(n,e,i)})}},{key:"findByItem",value:function(e){return this._find(function(t){return t===e})}},{key:"findByName",value:function(e){return this._find(function(t){return e===t.name})}},{key:"findByDataField",value:function(e){return this._find(function(t){return e===t.dataField})}},{key:"each",value:function(e){(0,l.each)(this._storage,function(t,n){var i=n.instance,o=n.item;i&&e(i,o,t)})}}]),e}();t.default=c},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(21),l=n(6),c=l.getWindow(),d=n(3),u=n(0).extend,h=n(8),p=n(185),f=n(44),g="dx-responsivebox",m=g+"-screen-",_="dx-box-item",v="dxBoxItemData",w=1920,x=f.inherit({_getDefaultOptions:function(){return u(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0,_layoutStrategy:void 0})},_init:function(){this.option("screenByWidth")||(this._options.screenByWidth=l.defaultScreenFactorFunc),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return _},_itemDataKey:function(){return v},_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._updateRootBox()},_updateRootBox:function(){clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._$root&&o.triggerHandler(this._$root,"dxupdate")}.bind(this))},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(e){var t=this._findItemElementByItem(e);t.length&&(this._refreshItem(t,e),this._clearItemNodeTemplates(),this._update())},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(m+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.$element().removeClass(m+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),d.each(this._rows,function(){var t=[];e.push(t),d.each(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var e=this.option("rows"),t=this._screenItems.length;if(e.length){for(var n=this._filterByScreen(e),i=[],o=0;o<t;o++){var a=this._defaultSizeConfig();o<n.length&&r.isDefined(n[o].shrink)&&(a.shrink=n[o].shrink),i.push(a)}return i}return this._defaultSizeConfig(t)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort(function(e,t){return e.location.row-t.location.row||e.location.col-t.location.col}),d.each(this._screenItems,function(e,t){u(t.location,{row:e,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(e){return d.map(this._filterByScreen(e),function(e){return u(this._defaultSizeConfig(),e)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(e){var t=this._createDefaultSizeConfig();if(!arguments.length)return t;for(var n=[],i=0;i<e;i++)n.push(t);return n},_filterByScreen:function(e){var t=this._screenRegExp();return a.grep(e,function(e){return!e.screen||t.test(e.screen)})},_screenRegExp:function(){var e=this._getCurrentScreen();return new RegExp("(^|\\s)"+e+"($|\\s)","i")},_getCurrentScreen:function(){var e=this._screenWidth();return this.option("screenByWidth")(e)},_screenWidth:function(){return l.hasWindow()?i(c).width():w},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){d.each(this._screenItems,function(e,t){var n=t.location||{},i=n.col,o=n.row,a=this._grid[o],r=a&&a[i];this._occupyCells(r,t)}.bind(this))},_itemsByScreen:function(){var e=this;return this.option("items").reduce(function(t,n){var i=n.location||{};return i=r.isPlainObject(i)?[i]:i,e._filterByScreen(i).forEach(function(e){t.push({item:n,location:u({rowspan:1,colspan:1},e)})}),t},[])},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&(u(e,t),this._markSpanningCell(e))},_isItemCellOccupied:function(e,t){if(!r.isEmptyObject(e.item))return!0;var n=!1;return this._loopOverSpanning(t.location,function(e){n=n||!r.isEmptyObject(e.item)}),n},_loopOverSpanning:function(e,t){var n=e.row+e.rowspan-1,i=e.col+e.colspan-1,o=Math.min(n,this._rows.length-1),a=Math.min(i,this._cols.length-1);e.rowspan-=n-o,e.colspan-=i-a;for(var r=e.row;r<=o;r++)for(var s=e.col;s<=a;s++)r===e.row&&s===e.col||t(this._grid[r][s])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,function(t){u(t,{item:e.item,spanningCell:e})})},_linkNodeToItem:function(){d.each(this._itemElements(),function(e,t){var n=i(t),o=n.data(v);o.box||(o.node=n.children())})},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var n=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),o=this._prepareBoxConfig(n.box||{direction:"row",items:[u(n,{ratio:1})]});u(o,this._rootBoxConfig(o.items)),this._$root=i("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,p,o)}},_rootBoxConfig:function(e){var t=d.each(e,function(e,t){this._needApplyAutoBaseSize(t)&&u(t,{baseSize:"auto"})}.bind(this));return u({width:"100%",height:"100%",items:t,itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")},{_layoutStrategy:this.option("_layoutStrategy")})},_needApplyAutoBaseSize:function(e){return!(e.baseSize||e.minSize&&"auto"!==e.minSize||e.maxSize&&"auto"!==e.maxSize)},_prepareBoxConfig:function(e){return u(e||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(e){return this._isSingleItem(e)?this._itemByCell(e.row.start,e.col.start):this._layoutDirection(e)},_isSingleItem:function(e){var t=this._grid[e.row.start][e.col.start].location,n=e.row.end-e.row.start===t.rowspan-1,i=e.col.end-e.col.start===t.colspan-1;return n&&i},_itemByCell:function(e,t){var n=this._grid[e][t];return n.spanningCell?null:n.item},_layoutDirection:function(e){for(var t,n=[],i=e.direction,o=this._crossDirection(i);t=this._nextBlock(e);){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw s.Error("E1025");var a=this._layoutBlock({direction:o,row:t.row,col:t.col,prevBlockOptions:e});a&&(u(a,this._blockSize(t,o)),n.push(a)),e[o].start=t[o].end+1}return{box:this._prepareBoxConfig({direction:i,items:n})}},_isBlockIndivisible:function(e,t){return e&&e.col.start===t.col.start&&e.col.end===t.col.end&&e.row.start===t.row.start&&e.row.end===t.row.end},_crossDirection:function(e){return"col"===e?"row":"col"},_nextBlock:function(e){var t=e.direction,n=this._crossDirection(t),i=e[t].start,o=e[t].end,a=e[n].start;if(a>e[n].end)return null;for(var r=1,s=a;s<a+r;s++){for(var l=1,c=i;c<=o;c++){var d=this._cellByDirection(t,c,s);l=Math.max(l,d.location[n+"span"])}var u=s+l,h=a+r;u>h&&(r+=u-h)}var p={};return p[t]={start:i,end:o},p[n]={start:a,end:a+r-1},p},_cellByDirection:function(e,t,n){return"col"===e?this._grid[n][t]:this._grid[t][n]},_blockSize:function(e,t){
|
|
30
30
|
for(var n="row"===t?this._rows:this._cols,i=u(this._createDefaultSizeConfig(),{ratio:0}),o=e[t].start;o<=e[t].end;o++){var a=n[o];i.ratio+=a.ratio,i.baseSize+=a.baseSize,i.minSize+=a.minSize,i.maxSize+=a.maxSize,r.isDefined(a.shrink)&&(i.shrink=a.shrink)}return i.minSize=i.minSize?i.minSize:"auto",i.maxSize=i.maxSize?i.maxSize:"auto",this._isSingleColumnScreen()&&(i.baseSize="auto"),i},_update:function(){var e=this._$root;this._renderItems(),e&&e.detach(),this._saveAssistantRoot(e),this._layoutChangedAction(),this._updateRootBox()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){clearTimeout(this._updateTimer),this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&d.each(this._assistantRoots,function(e,t){i(t).remove()})},_clearItemNodeTemplates:function(){d.each(this.option("items"),function(){delete this.node})},_toggleVisibility:function(e){this.callBase(e),e&&this._updateRootBox()},_attachClickEvent:a.noop,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"_layoutStrategy":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(e),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(e);break;case"currentScreenFactor":break;default:this.callBase(e)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});h("dxResponsiveBox",x),e.exports=x},function(e,t,n){var i=n(2),o=n(40),a=n(0).extend,r=n(14),s=n(8),l=n(279),c=n(191),d=n(505).default,u=n(106),h=n(13).getPublicElement,p=n(67),f=n(6),g="dx-tabpanel",m="dx-tabpanel-tabs",_="dx-tabpanel-container",v="dx-tab-text",w=l.inherit({_getDefaultOptions:function(){return a(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===r.real().deviceType&&!r.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!o.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass(g),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new p(function(e,t){e.text(t.title||String(t));var n=u.getImageContainer(t.icon);e.wrapInner(i("<span>").addClass(v)),n&&n.prependTo(e)},["title","icon"],this.option("integrationOptions.watchMethod"))},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){e._updateLayout()},0))},_renderLayout:function(){if(!this._tabs){var e=this.$element();this._$tabContainer=i("<div>").addClass(m).appendTo(e);var t=i("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,c,this._tabConfig()),this._$container=i("<div>").addClass(_).appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if(f.hasWindow()){var e=this._$tabContainer.outerHeight();this._$container.css({marginTop:-e,paddingTop:e})}},_refreshActiveDescendant:function(){if(this._tabs){var e=this._tabs,t=e.itemElements(),n=i(t[e.option("selectedIndex")]),o=this.getFocusedItemId();this.setAria("controls",void 0,i(t)),this.setAria("controls",o,n)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(e){this.option("selectedIndex",e.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(e){if("focusedElement"===e.name)if(e.value){var t=i(e.value),n=this._itemElements().eq(t.index());this.option("focusedElement",h(n))}else this.option("focusedElement",e.value)}.bind(this),onFocusIn:function(e){this._focusInHandler(e.event)}.bind(this),onFocusOut:function(e){this._focusOutHandler(e.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1),this._refreshActiveDescendant()},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},_optionChanged:function(e){var t=e.name,n=e.value,o=e.fullName;switch(t){case"dataSource":this.callBase(e);break;case"items":this._setTabsOption(o,n),this._updateLayout(),this._tabs.repaint(),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(o,n),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(o,n);break;case"focusedElement":var a=n?i(n).index():n,r=n?this._tabs._itemElements().eq(a):n;this._setTabsOption("focusedElement",h(r)),this.callBase(e);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",n);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});w.ItemClass=d,s("dxTabPanel",w),e.exports=w},function(e,t,n){var i=n(2),o=n(32),a=n(24),r=n(31),s=n(0).extend,l=n(4).noop,c=n(13),d=n(1).isDefined,u=n(14),h=n(13).getPublicElement,p=n(8),f=n(44),g=n(114),m=n(7).Deferred,_="dx-multiview",v="dx-multiview-wrapper",w="dx-multiview-item-container",x="dx-multiview-item",y="dx-multiview-item-hidden",b="dxMultiViewItemData",C=200,k=function(e){return+e},S=function(e){return a.locate(e).left},I=function(e,t){a.move(e,{left:t})},D={moveTo:function(e,t,n,i){o.animate(e,{type:"slide",to:{left:t},duration:n,complete:i})},complete:function(e){o.stop(e,!0)}},T=f.inherit({_activeStateUnit:"."+x,_supportedKeys:function(){return s(this.callBase(),{pageUp:l,pageDown:l})},_getDefaultOptions:function(){return s(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return x},_itemDataKey:function(){return b},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=this._$wrapper.width()),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(e){var t=this._itemsCount();return e<0&&(e+=t),e>=t&&(e-=t),e},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var e=this.$element();e.addClass(_),this._$wrapper=i("<div>").addClass(v),this._$wrapper.appendTo(e),this._$itemContainer=i("<div>").addClass(w),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=new m,n=this,i=this.callBase,o=new m;return o.done(function(){var o=i.call(n,e);t.resolve(o)}),this._deferredItems[e.index]=o,this.option("deferRendering")||o.resolve(),t.promise()},_render:function(){this.callBase();var e=this._getSelectedItemIndices();this._updateItemsPosition(e[0]),this._updateItemsVisibility(e[0])},_renderSelection:function(e){this._updateItemsVisibility(e[0])},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_updateItemsPosition:function(e,t){var n=this._itemElements(),i=-this._animationDirection(t,e),o=n.eq(e);I(o,0),I(n.eq(t),100*i+"%")},_updateItemsVisibility:function(e,t){var n=this._itemElements();n.each(function(n,o){var a=i(o),r=n!==e&&n!==t;r||this._renderSpecificItem(n),a.toggleClass(y,r),this.setAria("hidden",r||void 0,a)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e),n=t.find(this._itemContentClass()).length>0;d(e)&&!n&&(this._deferredItems[e].resolve(),c.triggerResizeEvent(t))},_refreshItem:function(e,t){this.callBase(e,t),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:l,_updateSelection:function(e,t){var n=e[0],i=t[0];D.complete(this._$itemContainer),this._updateItems(i,n);var o=this._animationDirection(n,i);this._animateItemContainer(o*this._itemWidth(),function(){I(this._$itemContainer,0),this._updateItems(n),this._$itemContainer.width()}.bind(this))},_animateItemContainer:function(e,t){var n=this.option("animationEnabled")?C:0;D.moveTo(this._$itemContainer,e,n,t)},_animationDirection:function(e,t){var n=S(this._$itemContainer),i=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),o=0!==n,a=o?n:i;return r.sign(a)},_initSwipeable:function(){this._createComponent(this.$element(),g,{disabled:!this.option("swipeEnabled"),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:function(e){this._swipeStartHandler(e.event)}.bind(this),onUpdated:function(e){this._swipeUpdateHandler(e.event)}.bind(this),onEnd:function(e){this._swipeEndHandler(e.event)}.bind(this)})},_swipeStartHandler:function(e){D.complete(this._$itemContainer);var t=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=k(n||(o?t>0:t<i)),e.maxRightOffset=k(n||(o?t<i:t>0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,n=r.sign(t)*this._getRTLSignCorrection();if(I(this._$itemContainer,t*this._itemWidth()),n!==this._swipeDirection){this._swipeDirection=n;var i=this.option("selectedIndex"),o=this._normalizeIndex(i-n);this._updateItems(i,o)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var n=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",h(n))}else this._animateItemContainer(0,l)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.last()),t},_nextItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.first()),t},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":g.getInstance(this.$element()).option("disabled",!t);break;case"deferRendering":this._invalidate();break;default:this.callBase(e)}}});p("dxMultiView",T),e.exports=T},function(e,t,n){var i=n(2),o=n(123),a="dx-tabs-item-badge",r="dx-badge",s=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+r).remove(),e){var t=i("<div>").addClass(a).addClass(r).text(e);this._$element.append(t)}}});e.exports=s},function(e,t,n){var i=n(2),o=n(8),a=n(58),r=n(211),s=n(89),l=n(190),c="dx-validationgroup",d=a.inherit({_getDefaultOptions:function(){return this.callBase()},_init:function(){this.callBase()},_initMarkup:function(){var e=this.$element();e.addClass(c),e.find(".dx-validator").each(function(e,t){l.getInstance(i(t))._initGroupRegistration()}),e.find(".dx-validationsummary").each(function(e,t){r.getInstance(i(t))._initGroupRegistration()}),this.callBase()},validate:function(){return s.validateGroup(this)},reset:function(){return s.resetGroup(this)},_optionChanged:function(e){switch(e.name){default:this.callBase(e)}},_dispose:function(){s.removeGroup(this),this.$element().removeClass(c),this.callBase()}});o("dxValidationGroup",d),e.exports=d},function(e,t,n){var i=n(99),o=n(10),a=n(3).map,r=n(1),s=n(9),l=r.isPlainObject,c=r.isNumeric,d=o.abstract,u=o.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(e,t){this._mapWidget=e,this._$container=t},render:function(e,t){return this._renderImpl().then(function(){return i.all([this._applyFunctionIfNeeded("addMarkers",e),this._applyFunctionIfNeeded("addRoutes",t)]).then(function(){return!0})}.bind(this))},_renderImpl:d,updateDimensions:d,updateMapType:d,updateBounds:d,updateCenter:d,updateZoom:d,updateControls:d,updateMarkers:function(e,t){return new i(function(n){return this._applyFunctionIfNeeded("removeMarkers",e).then(function(e){this._applyFunctionIfNeeded("addMarkers",t).then(function(t){n(t?t:e)})}.bind(this))}.bind(this))},addMarkers:d,removeMarkers:d,adjustViewport:d,updateRoutes:function(e,t){return new i(function(n){return this._applyFunctionIfNeeded("removeRoutes",e).then(function(e){this._applyFunctionIfNeeded("addRoutes",t).then(function(t){n(t?t:e)})}.bind(this))}.bind(this))},addRoutes:d,removeRoutes:d,clean:d,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(e,t){return void 0===t?this._mapWidget.option(e):void this._mapWidget.setOptionSilent(e,t)},_keyOption:function(e){var t=this._option("key");return void 0===t[e]?t:t[e]},_parseTooltipOptions:function(e){return{text:e.text||e,visible:e.isShown||!1}},_getLatLng:function(e){if("string"==typeof e){var t=a(e.split(","),function(e){return e.trim()}),n=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(n)&&t[1].match(n))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(e)&&2===e.length)return{lat:e[0],lng:e[1]};if(l(e)&&c(e.lat)&&c(e.lng))return e}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(e){return s.addNamespace(e,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(e,t){return t.length?this[e](t):i.resolve()},_fireAction:function(e,t){this._mapWidget._createActionByOption(e)(t)},_fireClickAction:function(e){this._fireAction("onClick",e)},_fireMarkerAddedAction:function(e){this._fireAction("onMarkerAdded",e)},_fireMarkerRemovedAction:function(e){this._fireAction("onMarkerRemoved",e)},_fireRouteAddedAction:function(e){this._fireAction("onRouteAdded",e)},_fireRouteRemovedAction:function(e){this._fireAction("onRouteRemoved",e)}});e.exports=u},function(e,t,n){var i=n(99),o=n(0).extend,a=n(3),r=n(282),s=r.abstract,l=r.inherit({_geocodeLocation:function(e){return new i(function(t){var n=this._geocodedLocations,i=n[e];i?t(i):this._geocodeLocationImpl(e).then(function(i){n[e]=i,t(i)})}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return i.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new i(function(e){var t=setTimeout(function(){clearTimeout(t),e()})})}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:s,_init:s,_attachHandlers:s,addMarkers:function(e){return i.all(a.map(e,function(e){return this._addMarker(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,a.map(e,function(e){return e.marker})]}.bind(this))},_addMarker:function(e){return this._renderMarker(e).then(function(t){return this._markers.push(o({options:e},t)),this._fireMarkerAddedAction({options:e,originalMarker:t.marker}),t}.bind(this))},_renderMarker:s,removeMarkers:function(e){var t=this;return a.each(e,function(e,n){t._removeMarker(n)}),i.resolve()},_removeMarker:function(e){var t=this;a.each(this._markers,function(n,i){return i.options!==e||(t._destroyMarker(i),t._markers.splice(n,1),t._fireMarkerRemovedAction({options:i.options}),!1)})},_destroyMarker:s,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(e){return i.all(a.map(e,function(e){return this._addRoute(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,a.map(e,function(e){return e.instance})]}.bind(this))},_addRoute:function(e){return this._renderRoute(e).then(function(t){return this._routes.push(o({options:e},t)),this._fireRouteAddedAction({options:e,originalRoute:t.instance}),t}.bind(this))},_renderRoute:s,removeRoutes:function(e){var t=this;return a.each(e,function(e,n){t._removeRoute(n)}),i.resolve()},_removeRoute:function(e){var t=this;a.each(this._routes,function(n,i){return i.options!==e||(t._destroyRoute(i),t._routes.splice(n,1),t._fireRouteRemovedAction({options:e}),!1)})},_destroyRoute:s,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:s,_updateBounds:function(){var e=this;this._clearBounds(),this._option("autoAdjust")&&(a.each(this._markers,function(t,n){e._extendBounds(n.location)}),a.each(this._routes,function(t,n){n.northEast&&e._extendBounds(n.northEast),n.southWest&&e._extendBounds(n.southWest)}))},_clearBounds:function(){this._bounds=null},_extendBounds:s});e.exports=l},function(e,t,n){e.exports=n(516)},function(e,t,n){var i=n(2),o=n(28),a=n(194),r=n(24),s=n(77),l=n(31),c=n(1),d=n(0).extend,u=n(49),h="dx-slider",p="dx-slider-handle",f={top:{my:"bottom center",at:"top center",collision:"none"},bottom:{my:"top center",at:"bottom center",collision:"none"},right:{my:"left center",at:"right center",collision:"none"},left:{my:"right center",at:"left center",collision:"none"}},g=o.inherit({_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!1,value:0,tooltipEnabled:!1,tooltipFormat:function(e){return e},tooltipPosition:"top",tooltipShowMode:"onHover",tooltipFitIn:null})},_initMarkup:function(){this.callBase(),this.$element().addClass(p),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this._renderTooltip(),this.callBase()},_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=i("<div>").appendTo(this.$element())),this._$slider=this.$element().closest("."+h),this._updateTooltip()):this._removeTooltip()},_createTooltip:function(){return!this._tooltip&&(this._tooltip=this._createComponent(this._$tooltip,a,{visible:!0,target:this.$element(),closeOnOutsideClick:!1,container:this.$element(),closeOnBackButton:!1,closeOnTargetScroll:!1,onPositioned:function(e){this._saveTooltipElements(e.component),this._saveTooltipLocation(),this._centeredTooltipPosition()}.bind(this),animation:null,arrowPosition:null,templatesRenderAsynchronously:!1}),!0)},_removeTooltip:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip)},_renderTooltipPosition:function(){if(this._tooltip){var e=this.option("tooltipPosition");this._saveTooltipElements(),this._resetTooltipPosition(),"string"===c.type(e)&&(e=d({boundary:this._$slider,boundaryOffset:{h:1,v:1}},f[e])),this._tooltip.option("position",e),this._saveTooltipLocation()}},_saveTooltipElements:function(e){e=this._tooltip||e,this._$tooltipContent=e.$content().parent(),this._$tooltipArrow=this._$tooltipContent.find(".dx-popover-arrow")},_resetTooltipPosition:function(){r.resetPosition(this._$tooltipContent),r.resetPosition(this._$tooltipArrow)},_saveTooltipLocation:function(){this._contentLocate=r.locate(this._$tooltipContent)},_centeredTooltipPosition:function(){if(this._tooltip){this._$tooltipContent.outerWidth("auto");var e=this._$tooltipContent.get(0).getBoundingClientRect().width,t=Math.ceil(e),n=t%2+t;this._$tooltipContent.outerWidth(n);var i=(n-this.$element().width())/2;this._contentLocate.left=-i,this._$tooltipArrow.css({marginLeft:-this._$tooltipArrow.outerWidth()/2,left:"50%"}),this._fitTooltip()}},_fitTooltip:function(){if(this._tooltip){var e=this.option("tooltipPosition");"string"===c.type(e)&&(e=d({of:this.$element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},f[e],{collision:"fit none"}));var t=s.calculate(this._$tooltipContent,e),n="left"===t.h.collisionSide,i=(n?-1:1)*t.h.oversize,o=this._contentLocate.left,a=this._contentLocate.left+this._$tooltipContent.outerWidth()-this._$tooltipArrow.outerWidth();r.move(this._$tooltipContent,{left:this._contentLocate.left+(n?1:-1)*t.h.oversize}),r.move(this._$tooltipArrow,{left:l.fitIntoRange(i,o,a)})}},_getFormattedValue:function(e){return u.format(e,this.option("tooltipFormat"))},_renderValue:function(){if(this._tooltip){var e=this.option("value");this._tooltip.$content().html(this._getFormattedValue(e)),this._fitTooltip()}},_updateTooltip:function(){var e=/^onhover$/i.test(this.option("tooltipShowMode"));e||this._createTooltip(),this.$element().toggleClass("dx-slider-tooltip-on-hover",e),this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition()},_clean:function(){this.callBase(),delete this._$tooltip,delete this._tooltip},_ensureTooltipIsCentered:function(e,t){c.isDefined(e)&&c.isDefined(t)&&e.toString().length!==t.toString().length&&this._centeredTooltipPosition()},_optionChanged:function(e){switch(e.name){case"tooltipFormat":this._renderValue();break;case"value":this._renderValue();var t=this._getFormattedValue(e.value),n=this._getFormattedValue(e.previousValue);this._ensureTooltipIsCentered(t,n),this.setAria("valuenow",e.value);break;case"tooltipEnabled":this._renderTooltip();break;case"tooltipPosition":this._renderTooltipPosition(),this._centeredTooltipPosition();break;case"tooltipShowMode":this._updateTooltip();break;case"tooltipFitIn":this._fitTooltip();break;default:this.callBase(e)}},fitTooltipPosition:function(){this._fitTooltip()},updateTooltip:function(){this._createTooltip()&&(this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition())},repaint:function(){this._renderTooltipPosition(),this._centeredTooltipPosition(),this._tooltip&&this._tooltip._visibilityChanged(!0)}});e.exports=g},function(e,t,n){var i=n(2),o=n(50),a=n(8),r=n(0).extend,s=n(130),l="dx-tooltip",c="dx-tooltip-wrapper",d=s.inherit({_getDefaultOptions:function(){return r(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass(l),this._wrapper().addClass(c),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o,this._$content.attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(e){var t=i(this.option("target")),n=e?this._contentId:void 0;this.setAria("describedby",n,t)}});a("dxTooltip",d),e.exports=d},function(e,t,n){var i=n(2),o=n(0).extend,a=n(7).Deferred,r=n(212),s=n(24),l=n(136).hideCallback,c=n(32),d=n(70),u=n(183),h="dx-toolbar-list-visible",p="easeOutCubic",f=200,g=400,m=r.inherit({render:function(){this._renderListOverlay(),this.callBase(),this._changeListVisible(this._toolbar.option("visible"))},_renderWidget:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return u},_menuContainer:function(){return this._listOverlay.$content()},_menuButtonOptions:function(){return o({},this.callBase(),{activeStateEnabled:!1,text:"..."})},_widgetOptions:function(){return o({},this.callBase(),{width:"100%",indicateLoading:!1})},_renderListOverlay:function(){var e=i("<div>").appendTo(this._toolbar.$element());this._listOverlay=this._toolbar._createComponent(e,d,this._listOverlayConfig())},_listOverlayConfig:function(){return{container:!1,deferRendering:!1,shading:!1,height:"auto",width:"100%",showTitle:!1,closeOnOutsideClick:this._listOutsideClickHandler.bind(this),position:null,animation:null,closeOnBackButton:!1}},_listOutsideClickHandler:function(e){i(e.target).closest(this._listOverlay.$content()).length||this._toggleMenu(!1,!0)},_getListHeight:function(){var e=this._listOverlay.$content().find(".dx-list").height(),t=this._toolbar._$toolbarItemsContainer.height()-this._toolbar.$element().height();return e+t},_hideTopOverlayHandler:function(){this._toggleMenu(!1,!0)},_toggleHideTopOverlayCallback:function(){this._closeCallback&&l.remove(this._closeCallback),this._menuShown&&(this._closeCallback=this._hideTopOverlayHandler.bind(this),l.add(this._closeCallback))},_calculatePixelOffset:function(e){e=(e||0)-1;var t=this._getListHeight();return e*t},_renderMenuPosition:function(e,t){var n=this._calculatePixelOffset(e),i=this._listOverlay.$content();return t?this._animateMenuToggling(i,n,this._menuShown):(s.move(i,{top:n}),(new a).resolve().promise())},_animateMenuToggling:function(e,t,n){var i=n?g:f;return c.animate(e,{type:"slide",to:{top:t},easing:p,duration:i})},_toggleMenu:function(e,t){this.callBase.apply(this,arguments),this._toggleHideTopOverlayCallback(),this._renderMenuPosition(this._menuShown?0:1,t).done(function(){this._toolbar.$element().toggleClass(h,e)}.bind(this))},_changeListVisible:function(e){this._listOverlay&&(this._listOverlay.option("visible",e),this._toggleMenu(!1,!1))},handleToolbarVisibilityChange:function(e){this._changeListVisible(e)}});e.exports=m},function(e,t,n){function i(e,t,n,i){var o=0,a=0,r=n/2;return e+i-(t+n)>1?(e>=t+n+r&&(a=parseInt((e-(t+n))/r,10)),o=t+n+r*a):e<t?(e<=t-r&&(a=parseInt((e-(t-r))/r,10)),o=t-(n-r*a)):o=t,o}var o=n(2),a=n(10),r=n(13).getPublicElement,s=n(0).extend,l=n(1).isDefined,c="dx-expand",d=function(e){var t,n=0;return e.getBoundingClientRect&&(t=e.getBoundingClientRect(),n=t.width,n||(n=t.right-t.left)),n>0?n:e.offsetWidth};t.AreaItem=a.inherit({_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return o("<div>")},_createTableElement:function(){return o("<table>")},_getCellText:function(e,t){var n=e.isWhiteSpace?" ":e.text||" ";return!t||n.indexOf("<")===-1&&n.indexOf(">")===-1||(n=o("<div>").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(e,t){var n,i,o,a,r,s,d,u,h=this,p=t.length,f=h.option("rtlEnabled"),g=[],m=h.option("encodeHtml"),_="colspan='",v="rowspan='";for(e.data("area",h._getAreaName()),e.data("data",t),e.css("width",""),g.push(h._getMainElementMarkup()),o=0;o<p;o++){n=t[o];var w=[];for(u=[],g.push("<tr "),a=0;a<n.length;a++){if(i=n[a],this._getRowClassNames(o,i,u),w.push("<td "),i){i.rowspan&&w.push(v+(i.rowspan||1)+"'"),i.colspan&&w.push(_+(i.colspan||1)+"'");var x={cellElement:s,cell:i,cellsCount:n.length,cellIndex:a,rowElement:r,rowIndex:o,rowsCount:p,rtlEnabled:f,classArray:[],cssArray:[]};h._applyCustomStyles(x),x.cssArray.length&&(w.push("style='"),w.push(x.cssArray.join(";")),w.push("'")),x.classArray.length&&(w.push("class='"),w.push(x.classArray.join(" ")),w.push("'")),w.push(">"),l(i.expanded)&&w.push("<div class='dx-expand-icon-container'><span class='"+c+"'></span></div>"),d=this._getCellText(i,m)}else d="";w.push("<span "),l(i.wordWrapEnabled)&&w.push("style='white-space:",i.wordWrapEnabled?"normal":"nowrap",";'"),w.push(">"+d+"</span>"),i.sorted&&w.push("<span class='dx-icon-sorted'></span>"),w.push("</td>")}u.length&&(g.push("class='"),g.push(u.join(" ")),g.push("'")),g.push(">"),g.push(w.join("")),g.push("</tr>")}g.push(this._getCloseMainElementMarkup()),e.append(g.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,l,c,d,u=this,h=e.find("tr"),p=u._getAreaName(),f=u.option("onCellPrepared"),g=u.component.hasEvent("cellPrepared"),m=this.component._defaultActionArgs();if(f||g)for(c=0;c<t.length;c++)for(a=t[c],n=h.eq(c),d=0;d<a.length;d++)l=a[d],i=n.children().eq(d),o={area:p,rowIndex:c,columnIndex:d,cellElement:r(i),cell:l},g?u.component._trigger("onCellPrepared",o):f(s(o,m))},_getRowHeight:function(e){var t,n=this._getRowElement(e),i=0;return n&&n.lastChild?(n.getBoundingClientRect&&(t=n.getBoundingClientRect(),i=t.height),i>0?i:n.offsetHeight):0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=this,n=[],i=t.getRowsLength();for(e=0;e<i;e++)n.push(t._getRowHeight(e));return n},setRowsHeight:function(e){var t,n=this,i=0,o=e.length;for(t=0;t<o;t++)i+=e[t],n._setRowHeight(t,e[t]);this._tableHeight=i,this._tableElement[0].style.height=i+"px"},getColumnsWidth:function(){var e,t,n,i,o=this.getRowsLength(),a=[],r=[],s=function(e,t,n,i,o){var a,r;for(a=0;a<i;a++)for(r=0;r<o;r++)e[t+a]=e[t+a]||[],e[t+a][n+r]=!0};if(o)for(e=0;e<o;e++)for(a[e]=a[e]||[],t=this._getRowElement(e),n=0;n<t.cells.length;n++){for(i=0;a[e][i];i++);s(a,e,i,t.cells[n].rowSpan,t.cells[n].colSpan),1===t.cells[n].colSpan&&(r[i]=r[i]||d(t.cells[n]))}return r},setColumnsWidth:function(e){var t,n=0,i=this._tableElement[0],o="",a=this.getColumnsCount(),r=[];for(t=0;t<a;t++)r.push(e[t]||0);for(t=a;t<e.length&&e;t++)r[a-1]+=e[t];for(t=0;t<a;t++)n+=r[t],o+='<col style="width: '+r[t]+'px">';this._colgroupElement.html(o),this._tableWidth=n,i.style.width=n+"px",i.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({
|
|
31
31
|
width:"",tableLayout:""})},groupWidth:function(e){return void 0===e?this._groupElement.width():e>=0?(this._groupWidth=e,this._groupElement[0].style.width=e+"px"):this._groupElement[0].style.width=e},groupHeight:function(e){return void 0===e?this._groupElement.height():(this._groupHeight=null,void(e>=0?(this._groupHeight=e,this._groupElement[0].style.height=e+"px"):this._groupElement[0].style.height=e))},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=o("<div>").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.groupWidth("100%"),e.groupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var e=this,t=e.tableElement()[0],n=e.option("rtlEnabled")?"right":"left",i=e._fakeTable[0];t.style.top===i.style.top&&i.style[n]===t.style[n]?e._fakeTable.addClass("dx-hidden"):e._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(e){var t=this,n=t.option("rtlEnabled"),o=n?"right":"left",a=parseFloat(t.tableElement()[0].style[o]),r=i(e,a,t._tableWidth,t._groupWidth);parseFloat(t._fakeTable[0].style[o])!==r&&(t._fakeTable[0].style[o]=r+"px")},_moveFakeTableTop:function(e){var t=this,n=parseFloat(t.tableElement()[0].style.top),o=i(e,n,t._tableHeight,t._groupHeight);parseFloat(t._fakeTable[0].style.top)!==o&&(t._fakeTable[0].style.top=o+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){var e=this;e._fakeTable||(e._fakeTable=e.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(e._virtualContent))},render:function(e,t){var n=this;if(n._tableElement){try{n._tableElement[0].innerHTML=""}catch(e){n._tableElement.empty()}n._tableElement.attr("style","")}else n._groupElement=n._createGroupElement(),n._tableElement=n._createTableElement(),n._tableElement.appendTo(n._groupElement),n._groupElement.appendTo(e),n._rootElement=e;n._colgroupElement=o("<colgroup>").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,function(e){n.option("rtlEnabled")&&l(e.scrollOffset.left)&&(e.scrollOffset.left=i.$content().width()-i._container().width()-e.scrollOffset.left),t(e)}),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=t.$content().width()-t._container().width()-e:"data"===this._getAreaName()&&(n={x:t.$content().width()-t._container().width()-e.x,y:e.y})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n){e=n.cells;for(var i=0,o=e.length;i<o;++i)t+=e[i].colSpan}return t},getData:function(){var e=this._tableElement;return e?e.data("data"):[]}})},function(e,t,n){function i(e,t){var n=t;return d(t.groupIndex)&&(n=e.getAreaFields(t.area,!0)[t.areaIndex]),n}function o(e){return JSON.stringify([e.fields,e.columnExpandedPaths,e.rowExpandedPaths])}var a=n(2),r=n(5),s=n(79),l=n(18),c=n(4).noop,d=n(1).isDefined,u=n(11).inArray,h=n(0).extend,p=n(3),f=n(15),g=n(8),m=n(28),_=n(395),v=n(369),w=n(374),x=n(94),y=n(617),b=n(7).Deferred,C=p.each,k=1,S="<div>",I=_.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}}),D=function(e,t){var n=[],i=!!t.groupName,o="exclude"===t.filterType;t.filterValues&&C(t.filterValues,function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())}),x.foreachTree(e,function(e){var t,a=e[0],r=x.createPath(e),s=i?p.map(e,function(e){return e.text}).reverse().join("/"):a.text;a.value=i?r.slice(0):a.key||a.value,t=i?r.join("/"):a.value&&a.value.valueOf(),a.children&&(a.items=a.children,a.children=null),_.updateHeaderFilterItemSelectionState(a,a.key&&u(s,n)>-1||u(t,n)>-1,o)})},T=m.inherit(v).inherit(w).inherit(_.headerFilterMixin).inherit({_getDefaultOptions:function(){return h(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:f.format("dxDataGrid-headerFilterEmptyValue"),ok:f.format("dxDataGrid-headerFilterOK"),cancel:f.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new I(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;o(this._dataSource.state())===o(e.value)?(this._clean(!0),this._renderComponent()):this._dataSource.state(e.value);break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,o=a(S).addClass("dx-area-field-content").text(e.caption||e.dataField),r=a(S).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(o),s=i(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:r,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc"},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:r,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:s.filterValues,allowFiltering:s.allowFiltering&&!e.groupIndex},showColumnLines:t})),e.groupName&&r.attr("item-group",e.groupName),r},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var e=this;e._createComponent(e.$element(),y,h({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=a(this).closest(".dx-sortable"),i=n.data("dxPivotGrid"),o=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!o&&o.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&C(e,function(e,t){n.eq(e).css("width",parseInt(a(t).outerWidth(),10)+k)})):n=a(S).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=a(S);return C(n,function(e,t){var n=a("<div>").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append(a(t));i.append(n)}),i.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,t.isMeasure===!0?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):t.isMeasure===!1&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,o=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),o&&e._applyChanges([i(n,o)],{area:t.targetGroup,areaIndex:t.targetIndex})}},e._getSortableOptions()))},_processDemandState:function(e){var t=this,n="instantly"===t.option("applyChangesMode"),i=t._dataSource;if(n)e(i,n);else{var o=i.state();i.state(t.option("state"),!0),e(i,n),i.state(o,!0)}},_applyChanges:function(e,t){var n=this;n._processDemandState(function(i,o){e.forEach(function(e){var n=e.index;i.field(n,t)}),o?i.load():n._changedHandler()})},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=a(e.currentTarget).data("field"),o=h(!0,{},i(t._dataSource,n)),r=a(e.target).hasClass("dx-header-filter"),l=t._dataSource;r?t._headerFilterView.showHeaderFilterMenu(a(e.currentTarget),h(o,{type:o.groupName?"tree":"list",encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!0,load:function(e){var t=e.userData;if(t.store)return t.store.load(e);var n=new b;return l.getFieldValues(o.index).done(function(i){t.store=new s(i),t.store.load(e).done(n.resolve).fail(n.reject)}).fail(n.reject),n},postProcess:function(e){return D(e,o),e}},apply:function(){t._applyChanges([o],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&t._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};return e?void r.on(e,l.name,".dx-area-field.dx-area-box",n):void r.on(t.$element(),l.name,".dx-area-field.dx-area-box",n)},_initTemplates:c,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});g("dxPivotGridFieldChooserBase",T),e.exports=T},function(e,t,n){var i=n(2),o=n(12),a=n(35),r=n(1),s=n(13).getPublicElement,l="tr",c={VERTICAL:"vertical",HORIZONTAL:"horizontal",insertAllDayRow:function(e,t,n){if(e[n]){var a=e[n].find(l);a.length||(a=i(o.createElement(l)),a.append(e[n].get(0))),t.appendChild(a.get?a.get(0):a)}},makeTable:function(e){var t,n=o.createElement("tbody"),c=[],d=e.groupCount?e.rowCount/e.groupCount:e.rowCount,u=0,h=e.allDayElements,p=e.groupIndex,f=e.rowCount;i(e.container).append(n),h&&(this.insertAllDayRow(h,n,0),u++);for(var g=0;g<f;g++){t=o.createElement(l),n.appendChild(t);var m=(g+1)%d===0;e.rowClass&&(t.className=e.rowClass);for(var _=0;_<e.cellCount;_++){var v=o.createElement("td");t.appendChild(v),e.cellClass&&(r.isFunction(e.cellClass)?v.className=e.cellClass(g,_):v.className=e.cellClass);var w,x,y;if(e.getCellData&&(w=e.getCellData(v,g,_,p),x=w.key,y=w.value,x&&a.data(v,x,y)),e.cellTemplate&&e.cellTemplate.render){var b={model:{text:e.getCellText?e.getCellText(g,_):""},container:s(i(v)),index:g*e.cellCount+_};y&&(y.startDate&&(b.model.startDate=y.startDate),y.endDate&&(b.model.endDate=y.endDate),y.groups&&(b.model.groups=y.groups),y.allDay&&(b.model.allDay=y.allDay)),c.push(e.cellTemplate.render.bind(e.cellTemplate,b))}else e.getCellText&&(v.innerHTML="<div>"+e.getCellText(g,_)+"</div>")}h&&m&&(this.insertAllDayRow(h,n,u),u++)}return c},makeGroupedTable:function(e,t,n,i,o,a){var r=[];return r=e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o,a):this._makeHorizontalGroupedRows(t,n,i,o)},makeGroupedTableFromJSON:function(e,t,n){function i(){d=o.createElement("table"),m&&(d.className=m)}function a(e){return e[f]?e[f].length:0}function r(e,t,n,i){var a={element:o.createElement(p),childCount:t};v&&(a.element.className=v);var r=o.createTextNode(e);return"function"==typeof w?w(a.element,r,n,i):a.element.appendChild(r),a}function s(e){for(var t=0;t<e.length;t++){var n=a(e[t]),i=r(e[t][g],n,t,e[t]);u[h]||(u[h]=[]),u[h].push(i),n?s(e[t][f]):h++}}function c(){u.forEach(function(e){var t=o.createElement(l);_&&(t.className=_);for(var n=[],i=e.length-1;i>=0;i--){var a=e[i+1],r=e[i].childCount;a&&a.childCount&&(r*=a.childCount),n.push(r)}n.reverse(),e.forEach(function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)}),d.appendChild(t)})}var d,u=[],h=0;n=n||{};var p=n.cellTag||"td",f=n.childrenField||"children",g=n.titleField||"title",m=n.groupTableClass,_=n.groupRowClass,v=n.groupCellClass,w=n.groupCellCustomContent;return i(),s(t),c(),d},_makeVerticalGroupedRows:function(e,t,n,o){var a,r=[],s=1,l=[],c=function(e){e.template&&r.push(e.template)};for(a=0;a<e.length;a++){a>0&&(s=e[a-1].items.length*s);var d=this._makeGroupedRowCells(e[a],s,t,n);d.forEach(c),l.push(d)}var u=[],h=l.length,p=l[h-1].length;for(a=0;a<p;a++)u.push(i("<tr>").addClass(t.groupHeaderRowClass));for(a=h-1;a>=0;a--)for(var f=l[a].length,g=p/f,m=0;m<f;m++){var _=m*g,v=u[_];v.prepend(l[a][m].element.attr("rowSpan",g))}return{elements:u,cellTemplates:r}},_makeHorizontalGroupedRows:function(e,t,n,o){for(var a=1,r=e.length,s=[],l=[],c=function(e){return e.template&&l.push(e.template),e.element},d=0;d<r;d++){d>0&&(a=e[d-1].items.length*a);var u=this._makeGroupedRowCells(e[d],a,t,o);s.push(i("<tr>").addClass(t.groupRowClass).append(u.map(c)))}for(var h=s[r-1].find("th").length,p=0;p<r;p++){var f=s[p].find("th"),g=h/f.length*n;g>1&&f.attr("colSpan",g)}return{elements:s,cellTemplates:l}},_makeGroupedRowCells:function(e,t,n,o){for(var a=[],r=e.items,l=r.length,c=0;c<t;c++)for(var d=0;d<l;d++){var u=i("<div>"),h={};if(o&&o.render){var p={model:r[d],container:s(u),index:c*l+d};e.data&&(p.model.data=e.data[d]),h.template=o.render.bind(o,p)}else u.text(r[d].text),u=i("<div>").append(u);u.addClass(n.groupHeaderContentClass),h.element=i("<th>").addClass(n.groupHeaderClass).append(u),a.push(h)}return a}};e.exports=c},function(e,t,n){var i=n(2),o=n(4).noop,a=n(0).extend,r=n(8),s=n(249),l=n(23),c=n(290),d=n(636),u="dx-scheduler-timeline",h="dx-scheduler-group-table",p="dx-scheduler-work-space-horizontal-grouped",f="horizontal",g=75,m=1,_=l.dateToMilliseconds,v=s.inherit({_init:function(){this.callBase(),this.$element().addClass(u),this._$sidebarTable=i("<table>").addClass(h)},_getCellFromNextRow:function(e,t){return t?this._$focusedCell:this.callBase(e,t)},_getDefaultGroupStrategy:function(){return"vertical"},_toggleGroupingDirectionClass:function(){this.$element().toggleClass(p,this._isHorizontalGroupedWorkSpace())},_getDefaultOptions:function(){return a(this.callBase(),{groupOrientation:"vertical"})},_getRightCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?0:n-1,o=this._isRTL()?"prev":"next";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getLeftCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?n-1:0,o=this._isRTL()?"next":"prev";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getRowCount:function(){return 1},_getCellCount:function(){return this._getCellCountInDay()*this.option("intervalCount")},_getTotalRowCount:function(e){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(e=e||1,this._getRowCount()*e)},_getDateByIndex:function(e){var t=new Date(this._firstViewDate),n=Math.floor(e/this._getCellCountInDay());return t.setTime(this._firstViewDate.getTime()+this._calculateCellIndex(0,e)*this._getInterval()+n*this._getHiddenInterval()),t},_getFormat:function(){return"shorttime"},_needApplyLastGroupCellClass:function(){return!0},_calculateHiddenInterval:function(e,t){var n=Math.floor(t/this._getCellCountInDay());return n*this._getHiddenInterval()},_getMillisecondsOffset:function(e,t){return t=this._calculateCellIndex(e,t),this._getInterval()*t+this._calculateHiddenInterval(e,t)},_createWorkSpaceElements:function(){this._createWorkSpaceScrollableElements()},_getWorkSpaceHeight:function(){return this.option("crossScrollingEnabled")?this._$dateTable.get(0).getBoundingClientRect().height:this.$element().get(0).getBoundingClientRect().height},_dateTableScrollableConfig:function(){var e,t=this.callBase(),n={direction:f,onStart:function(){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0))}.bind(this),onScroll:function(e){this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),onEnd:function(t){this._headerScrollable&&this._headerScrollable.option("onScroll",e)}.bind(this)};return this.option("crossScrollingEnabled")?t:a(t,n)},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_isHorizontalGroupedWorkSpace:function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},_getGroupHeaderContainer:function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},_insertAllDayRowsIntoDateTable:function(){return!1},_createAllDayPanelElements:o,_renderView:function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new d,this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(e)},_setHorizontalGroupHeaderCellsHeight:o,getIndicationWidth:function(){var e=this._getToday(),t=this.getCellWidth(),n=this._getIndicationFirstViewDate(),i=this._getHiddenInterval(),o=e.getTime()-n.getTime(),a=Math.ceil(o/_("day"))-1,r=o-a*i,s=r/this.getCellDuration();return s*t},_renderIndicator:function(e,t,n,i){var o,a=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a:a);else for(var r=0;r<i;r++){var s=this._getCellCount()*this.getCellWidth()*r;o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a-s:a+s)}},_isVerticalShader:function(){return!1},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this._getToday();if(n=new Date(n),l.sameDate(i,n)){var o=new Date(n),a=new Date(n);a=a.setMilliseconds(n.getMilliseconds()+this.getCellDuration()),t=l.dateInRange(i,o,a)}}return t},_cleanView:function(){this.callBase(),this._$sidebarTable.empty()},_visibilityChanged:function(e){this.callBase(e)},_setTableSizes:function(){this.callBase();var e=g,t=this._getWorkSpaceMinHeight(),n=this._$sidebarTable.find("tr"),i=e*n.length;i<t&&(i=t),this._$sidebarTable.height(i),this._$dateTable.height(i)},_getWorkSpaceMinHeight:function(){var e=this._getWorkSpaceHeight(),t=this.$element().outerHeight(!0)-this.getHeaderPanelHeight()-2*m-1;return e<t&&(e=t),e},_makeGroupRows:function(e){var t="vertical"===this.option("groupOrientation")?c.VERTICAL:c.HORIZONTAL;return c.makeGroupedTable(t,e,{groupRowClass:this._getGroupRowClass(),groupHeaderRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass(),groupHeaderContentClass:this._getGroupHeaderContentClass()},void 0,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()))},_ensureGroupHeaderCellsHeight:function(e){var t=this._calculateMinCellHeight();return e<t?t:e},_calculateMinCellHeight:function(){var e=this._getDateTable(),t="."+this._getDateTableRowClass();return e.get(0).getBoundingClientRect().height/e.find(t).length-2*m},_getCellCoordinatesByIndex:function(e){return{cellIndex:e%this._getCellCount(),rowIndex:0}},_getCellByCoordinates:function(e,t){var n=this._groupedStrategy.prepareCellIndexes(e,t);return this._$dateTable.find("tr").eq(n.rowIndex).find("td").eq(n.cellIndex)},_getWorkSpaceWidth:function(){return this._$dateTable.outerWidth(!0)},_getGroupIndexByCell:function(e){return e.parent().index()},_getIndicationFirstViewDate:function(){return new Date(this._firstViewDate)},_getIntervalBetween:function(e,t){var n=this.option("startDayHour"),i=this.option("endDayHour"),o=this.getStartViewDate(),a=o.getTime(),r=(24-i+n)*_("hour"),s=l.getTimezonesDifference(o,e),c=e.getTime(),d=c-a-s,u=Math.floor(d/_("day")),h=d-u*_("day"),p=0,f=this._getCellCountInDay()*(u-this._getWeekendsCount(u)),g=c-l.trimTime(new Date(e)).getTime(),m=f*this.option("hoursInterval")*_("hour");return t||(e.getHours()<n?p=h-r+g:e.getHours()>=n&&e.getHours()<i?p=h:e.getHours()>=n&&e.getHours()>=i?p=h-(g-i*_("hour")):u||(m=d),m+=p),m},_getWeekendsCount:function(){return 0},getAllDayContainer:function(){return null},getTimePanelWidth:function(){return 0},getPositionShift:function(e){var t=this.callBase(e),n=this.getCellWidth()*e;return this.option("rtlEnabled")&&(n*=-1),n+=t.left,{top:0,left:n,cellPosition:n}},getVisibleBounds:function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().$element(),i=this.getCellWidth(),o=e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft(),a=o/i,r=n.width()/i,s=e?a-r:a+r,c=this._getDateByIndex(a),d=this._getDateByIndex(s);return e&&(c=this._getDateByIndex(s),d=this._getDateByIndex(a)),t.left={hours:c.getHours(),minutes:c.getMinutes()>=30?30:0,date:l.trimTime(c)},t.right={hours:d.getHours(),minutes:d.getMinutes()>=30?30:0,date:l.trimTime(d)},t},needUpdateScrollPosition:function(e,t,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(e<n.left.hours||e>n.right.hours)&&(o=!0),e===n.left.hours&&t<n.left.minutes&&(o=!0),e===n.right.hours&&t>n.right.minutes&&(o=!0),o},_dateWithinBounds:function(e,t){var n=l.trimTime(new Date(t)),i=!1;return(n<e.left.date||n>e.right.date)&&(i=!0),i},_supportCompactDropDownAppointments:function(){return!1},getCellMinWidth:function(){return 0},scrollToTime:function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable(),a=this.option("rtlEnabled")?this.getScrollableContainer().get(0).getBoundingClientRect().width:0;o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}});r("dxSchedulerTimeline",v),e.exports=v},function(e,t,n){var i=n(4).noop,o=n(10),a=n(0).extend,r=n(21),s=n(23),l=n(1).isNumeric,c=n(1),d=n(20),u=s.dateToMilliseconds,h=o.abstract,p=1,f=2,g=15,m=20,_=40,v=18,w=22,x=3,y=24,b=o.inherit({ctor:function(e){this.instance=e},getAppointmentMinSize:function(){return f},keepAppointmentSettings:function(){return!1},getDeltaTime:h,getAppointmentGeometry:function(e){return e},needCorrectAppointmentDates:function(){return!0},getDirection:function(){return"horizontal"},createTaskPositionMap:function(e){delete this._maxAppointmentCountPerCell;var t=e&&e.length;if(t){this._defaultWidth=this.instance._cellWidth,this._defaultHeight=this.instance._cellHeight,this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;i<t;i++){var o=this._getItemPosition(e[i]);this._isRtl()&&(o=this._correctRtlCoordinates(o)),n.push(o)}var a=this._getSortedPositions(n),r=this._getResultPositions(a);return this._getExtendedPositionMap(n,r)}},_getDeltaWidth:function(e,t){var n=this._defaultWidth||this.getAppointmentMinSize(),i=t.width;return Math.round((e.width-i)/n)},_correctRtlCoordinates:function(e){var t=e[0].width||this._getAppointmentMaxWidth();return e[0].appointmentReduced||(e[0].left-=t),this._correctRtlCoordinatesParts(e,t),e},_correctRtlCoordinatesParts:i,_getAppointmentMaxWidth:function(){return this._defaultWidth},_getItemPosition:function(e){for(var t=this._getAppointmentCoordinates(e),n=this.isAllDay(e),i=[],o=new Date(this.instance.fire("getField","startDate",e)),r=!!this.instance.fire("getField","recurrenceRule",e),s=0;s<t.length;s++){var l=this.calculateAppointmentHeight(e,t[s],r),c=this.calculateAppointmentWidth(e,t[s],r),d=c,u=null,h=[],p=t[s].rowIndex,f=t[s].cellIndex;if(this._needVerifyItemSize()||n){var g=t[s].hMax;this.isAppointmentGreaterThan(g,{left:t[s].left,width:c})&&(u="head",p=t[s].rowIndex,f=t[s].cellIndex,d=this._reduceMultiWeekAppointment(c,{left:t[s].left,right:g}),h=this._getAppointmentParts({sourceAppointmentWidth:c,reducedWidth:d,height:l},t[s],o),this._isRtl()&&(t[s].left=g))}a(t[s],{height:l,width:d,allDay:n,rowIndex:p,cellIndex:f,appointmentReduced:u}),i=this._getAppointmentPartsPosition(h,t[s],i)}return i},_getAppointmentPartsPosition:function(e,t,n){return e.length?(e.unshift(t),n=n.concat(e)):n.push(t),n},_getAppointmentCoordinates:function(e){var t=[{top:0,left:0}];return this.instance.fire("needCoordinates",{startDate:this._startDate(e),originalStartDate:this._startDate(e,!0),appointmentData:e,callback:function(e){t=e}}),t},_isRtl:function(){return this.instance.option("rtlEnabled")},_getAppointmentParts:function(){return[]},_getCompactAppointmentParts:function(e){var t=this._defaultWidth||this.getAppointmentMinSize();return Math.round(e/t)},_reduceMultiWeekAppointment:function(e,t){return e=this._isRtl()?Math.floor(t.left-t.right):t.right-Math.floor(t.left)},calculateAppointmentHeight:function(){return 0},calculateAppointmentWidth:function(){return 0},isAppointmentGreaterThan:function(e,t){var n=t.left+t.width-e;return this._isRtl()&&(n=e+t.width-t.left),n>this._defaultWidth/2},isAllDay:function(){return!1},_getSortedPositions:function(e){for(var t=[],n=0,i=0,o=e.length;i<o;i++)for(var a=0,r=e[i].length;a<r;a++){var s=e[i][a],l={i:i,j:a,top:s.top,left:s.left,cellPosition:s.cellPosition,isStart:!0,allDay:s.allDay,__tmpIndex:n};n++;var c={i:i,j:a,top:s.top+s.height,left:s.left+s.width,cellPosition:s.cellPosition,isStart:!1,allDay:s.allDay,__tmpIndex:n};t.push(l,c),n++}return t.sort(function(e,t){return this._sortCondition(e,t)}.bind(this)),t},_fixUnstableSorting:function(e,t,n){if(0===e){if(t.__tmpIndex<n.__tmpIndex)return-1;if(t.__tmpIndex>n.__tmpIndex)return 1}return e},_sortCondition:h,_rowCondition:function(e,t){var n=this._normalizeCondition(e.left,t.left),i=this._normalizeCondition(e.top,t.top);return n?n:i?i:e.isStart-t.isStart},_columnCondition:function(e,t){var n=this._normalizeCondition(e.left,t.left),i=this._normalizeCondition(e.top,t.top);return i?i:n?n:e.isStart-t.isStart},_normalizeCondition:function(e,t){var n=e-t;return Math.abs(n)>.1?n:0},_getResultPositions:function(e){for(var t,n=[],i=[],o=[],a=[],r=0,s=0,l=0;l<e.length;l++){var c,d=e[l];if(d.isStart){for(t=void 0,c=0;c<i.length;c++)if(!i[c]){t=c,i[c]=!0;break}if(void 0===t)for(t=i.length,i.push(!0),c=0;c<n.length;c++)n[c].count++;n.push({index:t,count:i.length,i:d.i,j:d.j,sortedIndex:this._skipSortedIndex(t)?null:s++}),r<i.length&&(r=i.length)}else{var u=this._findIndexByKey(n,"i","j",d.i,d.j),h=n[u];if(n.splice(u,1),i[h.index]=!1,a.push(h),!n.length){i=[];for(var p=0;p<a.length;p++)a[p].count=r;a=[],r=0}o.push(h)}}return o.sort(function(e,t){var n=e.j-t.j,i=e.i-t.i;return i?i:n})},_skipSortedIndex:function(e){return this.instance.fire("getMaxAppointmentsPerCell")&&e>this._getMaxAppointmentCountPerCell()-1},_findIndexByKey:function(e,t,n,i,o){for(var a=0,r=0,s=e.length;r<s;r++)if(e[r][t]===i&&e[r][n]===o){a=r;break}return a},_getExtendedPositionMap:function(e,t){for(var n=0,i=[],o=0,a=e.length;o<a;o++){for(var r=[],s=0,l=e[o].length;s<l;s++)e[o][s].index=t[n].index,e[o][s].sortedIndex=t[n].sortedIndex,e[o][s].count=t[n++].count,r.push(e[o][s]),this._checkLongCompactAppointment(e[o][s],r);i.push(r)}return i},_checkLongCompactAppointment:i,_splitLongCompactAppointment:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(e.allDay),i=0;if(void 0!==n&&e.index>n-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;o<i;o++){var r=a(!0,{},e);r.left=this._getCompactLeftCoordinate(e.left,o),r.cellIndex=r.cellIndex+o,r.sortedIndex=null,t.push(r)}}return t},_startDate:function(e,t,n){var i=n&&n.startDate,o=this.instance._getStartDate(e,t),a=this.instance.fire("getField","text",e);if((i&&o>i||!i)&&(i=o),isNaN(i.getTime()))throw r.Error("E1032",a);return i},_endDate:function(e,t,n){var i=this.instance._getEndDate(e),o=this._startDate(e,!0),a=this._startDate(e,!1,t);if(i=this._checkWrongEndDate(e,o,i),a.getTime()>i.getTime()||n){var r=t?t.startDate:o,l=i.getTime()-o.getTime();if(l=this._adjustDurationByDaylightDiff(l,o,i),i=new Date((a.getTime()>=r.getTime()?r.getTime():a.getTime())+l),!s.sameDate(o,i)&&r.getTime()<a.getTime()){var c=s.trimTime(i).getTime()-r.getTime(),d=l-c||l;i=new Date(s.trimTime(a).getTime()+d)}}if(!this.isAllDay(e)){var u=s.roundToHour(this.instance.fire("getEndViewDate"));i>u&&(i=u)}return i},_adjustDurationByDaylightDiff:function(e,t,n){var i=this.instance.fire("getDaylightOffset",t,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(e,i):e},_needAdjustDuration:function(e){return 0!==e},_calculateDurationByDaylightDiff:function(e,t){return e+t*u("minute")},_checkWrongEndDate:function(e,t,n){return(!n||t.getTime()>=n.getTime())&&(n=new Date(t.getTime()+6e4*this.instance.getAppointmentDurationInMinutes()),this.instance.fire("setField","endDate",e,n)),n},_getAppointmentDurationInMs:function(e,t,n){var i;return this.instance.fire("getAppointmentDurationInMs",{startDate:e,endDate:t,allDay:n,callback:function(e){i=e}}),i},_getMaxNeighborAppointmentCount:function(){var e=this.instance.fire("getMaxAppointmentsPerCell");if(e)return 0;var t=this.getCompactAppointmentDefaultSize()+this.getCompactAppointmentDefaultOffset();return Math.floor(this.getCompactAppointmentGroupMaxWidth()/t)},_markAppointmentAsVirtual:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(t);e.count-n>this._getMaxNeighborAppointmentCount()&&(e.virtual={top:e.top,left:e.left,index:e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex,isAllDay:t})},_getMaxAppointmentCountPerCellByType:function(e){var t=this._getMaxAppointmentCountPerCell();return c.isObject(t)?e?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:t},getCompactAppointmentGroupMaxWidth:function(e,t){if(t||!c.isDefined(t)){var n=75;return n*this.getDefaultCellWidth()/100}return y},getDefaultCellWidth:function(){return this._defaultWidth},getCompactAppointmentDefaultSize:function(){return g},getCompactAppointmentDefaultOffset:function(){return x},getAppointmentDataCalculator:i,_customizeCoordinates:function(e,t,n,i,o){var a,r,s=e.index,l=t/n,c=e.top+s*l,d=c+i,u=e.width,h=e.left;return e.isCompact&&(a=this.getCompactAppointmentDefaultSize(),r=this.getCompactAppointmentDefaultOffset(),d=e.top+r,h=e.left+(s-n)*(a+r)+r,l=a,u=a,this._markAppointmentAsVirtual(e,o)),{height:l,width:u,top:d,left:h,empty:this._isAppointmentEmpty(t,u)}},_isAppointmentEmpty:function(e,t){return e<this._getAppointmentDefaultHeight()||t<this._getAppointmentDefaultWidth()},_calculateGeometryConfig:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),a=this._getDefaultRatio(e,o),r=this._getMaxHeight();l(o)||(o=e.count,a=(r-n.unlimited)/r);var s=(1-a)*r;return("auto"===t||l(t))&&(a=1,r-=i,s=i),{height:a*r,appointmentCountPerCell:o,offset:s}},_getAppointmentCount:i,_getDefaultRatio:i,_getOffsets:i,_getMaxHeight:i,_needVerifyItemSize:function(){return!1},_getMaxAppointmentCountPerCell:function(){if(!this._maxAppointmentCountPerCell){var e,t=this.instance.fire("getMaxAppointmentsPerCell");t||(e=2),l(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell},_getDynamicAppointmentCountPerCell:function(){var e=this.instance.fire("getCellHeight");return Math.floor((e-this._getAppointmentDefaultOffset())/this._getAppointmentDefaultHeight())||this._getAppointmentMinCount()},_getAppointmentMinCount:function(){return p},_isCompactTheme:function(){return"compact"===(d.current()||"").split(".")[2]},_getAppointmentDefaultOffset:function(){return this._isCompactTheme()?w:this.instance.option("_appointmentOffset")},_getAppointmentDefaultHeight:function(){return this._getAppointmentHeightByTheme()},_getAppointmentHeightByTheme:function(){return this._isCompactTheme()?v:m},_getAppointmentDefaultWidth:function(){return _},_needVerticalGroupBounds:function(){return!1},_needHorizontalGroupBounds:function(){return!1}});e.exports=b},,,,,,,,,,,,,function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(5),r=n(39),s=n(8),l=n(24),c=n(37).dasherize,d=n(0).extend,u=n(58),h=n(9),p=n(25),f=n(78),g=n(77),m=n(1).isFunction,_=n(4).noop,v="dxDraggable",w=h.addNamespace(f.start,v),x=h.addNamespace(f.move,v),y=h.addNamespace(f.end,v),b=h.addNamespace(p.down,v),C=c(v),k=C+"-dragging",S=u.inherit({
|
|
32
32
|
_getDefaultOptions:function(){return d(this.callBase(),{onDragStart:_,onDrag:_,onDragEnd:_,immediate:!0,direction:"both",area:o,boundOffset:0,allowMoveByClick:!1})},_init:function(){this.callBase(),this._attachEventHandlers()},_attachEventHandlers:function(){if(!this.option("disabled")){var e=this.$element().css("position","absolute"),t={},n=this.option("allowMoveByClick");t[w]=this._dragStartHandler.bind(this),t[x]=this._dragHandler.bind(this),t[y]=this._dragEndHandler.bind(this),n&&(t[b]=this._pointerDownHandler.bind(this),e=this._getArea()),a.on(e,t,{direction:this.option("direction"),immediate:this.option("immediate")})}},_detachEventHandlers:function(){a.off(this.$element(),"."+v),a.off(this._getArea(),"."+v)},_move:function(e){l.move(this.$element(),e)},_pointerDownHandler:function(e){if(!h.needSkipEvent(e)){var t=this._getAreaOffset(i(e.currentTarget)),n=this.option("direction"),o={};"horizontal"!==n&&"both"!==n||(o.left=e.pageX-this.$element().width()/2-t.left),"vertical"!==n&&"both"!==n||(o.top=e.pageY-this.$element().height()/2-t.top),this._move(o),this._getAction("onDrag")({event:e})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);var n=this._getArea(),i=this._getAreaOffset(n),o=this._getBoundOffset(),a=n.outerWidth(),r=n.outerHeight(),s=t.width(),c=t.height();this._toggleDraggingClass(!0);var d={left:t.offset().left-i.left,top:t.offset().top-i.top};this._startPosition=l.locate(t),e.maxLeftOffset=d.left-o.left,e.maxRightOffset=a-d.left-s-o.right,e.maxTopOffset=d.top-o.top,e.maxBottomOffset=r-d.top-c-o.bottom,this._getAction("onDragStart")({event:e})},_getAreaOffset:function(e){var t=e&&g.offset(e);return t?t:{left:0,top:0}},_toggleDraggingClass:function(e){this.$element().toggleClass(k,e)},_getBoundOffset:function(){var e=this.option("boundOffset");return m(e)&&(e=e.call(this)),r.quadToObject(e)},_getArea:function(){var e=this.option("area");return m(e)&&(e=e.call(this)),i(e)},_dragHandler:function(e){var t=e.offset,n=this._startPosition;this._move({left:n.left+t.x,top:n.top+t.y}),this._getAction("onDrag")({event:e})},_dragEndHandler:function(e){this._toggleDraggingClass(!1),this._getAction("onDragEnd")({event:e})},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_render:function(){this.callBase(),this.$element().addClass(C)},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDrag":case"onDragEnd":this["_"+t+"Action"]=this._createActionByOption(t);break;case"allowMoveByClick":case"direction":case"disabled":this._detachEventHandlers(),this._attachEventHandlers();break;case"boundOffset":case"area":break;default:this.callBase(e)}},_dispose:function(){this.callBase(),this._detachEventHandlers()}});s(v,S),e.exports=S},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getElementMaxHeightByWindow=void 0;var o=n(2),a=i(o),r=n(6),s=.9,l=function(e){var t=(0,r.getWindow)(),n=e.offset().top-(0,a.default)(t).scrollTop(),i=(0,a.default)(t).innerHeight()-n-e.outerHeight();return Math.max(n,i)*s};t.getElementMaxHeightByWindow=l},function(e,t,n){e.exports=n(514)},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(0).extend,s=n(69),l=n(8),c=n(48),d=n(9),u=n(96),h=n(20),p=n(32),f=n(15),g=n(18),m=n(114),_=n(7).Deferred,v="dx-switch",w=v+"-wrapper",x=v+"-container",y=v+"-inner",b=v+"-handle",C=v+"-on-value",k=v+"-on",S=v+"-off",I=100,D=c.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=function(e){e.preventDefault(),this._clickAction({event:e})},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._animateValue(e)};return r(this.callBase(),{space:t,enter:t,leftArrow:n.bind(this,!!e),rightArrow:n.bind(this,!e)})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,onText:f.format("dxSwitch-onText"),offText:f.format("dxSwitch-offText"),value:!1,useInkRipple:!1,_animateHandle:!0})},_defaultOptionsRules:function(){var e=h.current();return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return h.isAndroid5(e)},options:{useInkRipple:!0}},{device:function(t){return h.isIos7(e)},options:{_animateHandle:!1}}])},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(v).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(e,t){var n=(t-this._offsetDirection()*Number(!e))/2;return 100*n+"%"},_getHandleOffset:function(e,t){if(this.option("rtlEnabled")&&(e=!e),e){var n=-100+100*-t;return n+"%"}return 100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=i("<div>").addClass(y).appendTo(this._$switchContainer),this._$handle=i("<div>").addClass(b).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("<div>").addClass(k).prependTo(this._$switchInner),this._$labelOff=i("<div>").addClass(S).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("<div>").addClass(x),this._$switchWrapper=i("<div>").addClass(w).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),m,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return this._$switchContainer.outerWidth(!0)-this._$handle.get(0).getBoundingClientRect().width},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:1.7,isCentered:!0,useHoldAnimation:!1,wavesNumber:2})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,n,t,1)},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(e,t){var n=this._getInnerOffset(e,t),i=this._getHandleOffset(e,t);this.option("_animateHandle")&&(this._$switchInner.css("transform"," translateX("+n+")"),this._$handle.css("transform"," translateX("+i+")"))},_validateValue:function(){var e=this.option("value");"boolean"!=typeof e&&(this._options.value=!!e)},_renderClick:function(){var e=d.addNamespace(g.name,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),o.off(t,e),o.on(t,e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){var t=e.event;this._saveValueChangeEvent(t),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(e){var t=this.option("value"),n=e;if(t!==n){this._animating=!0;var i=this._getInnerOffset(t,0),o=this._getInnerOffset(n,0),a=this._getHandleOffset(t,0),r=this._getHandleOffset(n,0),s=this,l={},c={},d={},u={};l.transform=" translateX("+i+")",c.transform=" translateX("+o+")",d.transform=" translateX("+a+")",u.transform=" translateX("+r+")",this.$element().toggleClass(C,n),p.animate(this._$handle,{from:d,to:u,duration:I}),p.animate(this._$switchInner,{from:l,to:c,duration:I,complete:function(){s._animating=!1,s.option("value",n)}})}},_swipeStartHandler:function(e){var t=this.option("value"),n=this.option("rtlEnabled"),i=n?0:1,o=n?1:0;e.event.maxLeftOffset=t?i:o,e.event.maxRightOffset=t?o:i,this._swiping=!0,this._feedbackDeferred=new _,u.lock(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(e){this._renderPosition(this.option("value"),e.event.offset)},_swipeEndHandler:function(e){var t=this,n=this._offsetDirection(),i={},o={},a=this._getInnerOffset(t.option("value"),e.event.targetOffset),r=this._getHandleOffset(t.option("value"),e.event.targetOffset);i.transform=" translateX("+a+")",o.transform=" translateX("+r+")",p.animate(this._$handle,{to:o,duration:I}),p.animate(this._$switchInner,{to:i,duration:I,complete:function(){t._swiping=!1;var i=t.option("value")+n*e.event.targetOffset;t.option("value",Boolean(i)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var e=this.option("value");this._renderPosition(e,0),this.$element().toggleClass(C,e),this._$submitElement.val(e),this.setAria({pressed:e,label:e?this.option("onText"):this.option("offText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("onText")),this._$labelOff&&this._$labelOff.text(this.option("offText"))},_visibilityChanged:function(e){e&&this.repaint()},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"width":delete this._marginBound,this._refresh();break;case"onText":case"offText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;case"_animateHandle":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxSwitch",D),e.exports=D},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(14),r=n(35),s=n(5),l=n(8),c=n(29),d=n(4),u=d.noop,h=n(258).SelectionFilterCreator,p=n(7),f=p.when,g=p.Deferred,m=n(13).getPublicElement,_=n(1),v=_.isDefined,w=n(6),x=n(0).extend,y=n(11).inArray,b=n(3).each,C=n(15),k=n(9),S=n(18),I=n(128),D=n(268),T=n(67),E="dxTagData",A="dx-tagbox",B="dx-tag-container",O="dx-tag",R="dx-tagbox-multi-tag",M="dx-tag-custom",P="dx-tag-remove-button",V="dx-tagbox-only-select",F="dx-tagbox-single-line",H="dx-tagbox-popup-wrapper",$="dx-list-select-all-checkbox",L="dx-tag-content",z="dx-tagbox-default-template",N="dx-tagbox-custom-template",W="dx-native-click",q="dx-texteditor-container",G=-.3,K=I.inherit({_supportedKeys:function(){var e=this.callBase();return x(e,{backspace:function(e){if(this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e){var t=this._list&&null!==this._list.option("focusedElement"),n=this.option("acceptCustomValue")&&!t;return n?(e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler())):void(this.option("opened")&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e)))},space:function(e){var t=this.option("opened"),n=this._shouldRenderSearchEvent();t&&!n&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e))},leftArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||!t||this._$focusedTag){e.preventDefault();var n=t?"next":"prev";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}},rightArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||t||this._$focusedTag){e.preventDefault();var n=t?"prev":"next";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}}})},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var e=D(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===e?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[e]("."+O);i.length>0?this._replaceFocusedTag(i):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_scrollContainer:function(e){if(!this.option("multiline")&&w.hasWindow()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),n="end"===e^t,i=t&&!c.webkit,o=!t||c.webkit||c.msie?1:-1;return n^!i?0:o*(this._$tagsContainer.get(0).scrollWidth-this._$tagsContainer.outerWidth())},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),n="next"===e^t,i=this._$focusedTag.position().left,o=this._$tagsContainer.scrollLeft();if(n&&(i+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^i<0){var a=t&&c.msie?-1:1;o+=i*a}return o},_setNextValue:u,_getDefaultOptions:function(){return x(this.callBase(),{value:[],showDropDownButton:!1,maxFilterLength:1500,tagTemplate:"tag",selectAllText:C.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(e){this._multiTagPreparingHandler(e.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(e){var t=this._getValue().length;this.option("showMultiTagOnly")?e.text=C.getFormatter("dxTagBox-selected")(t):e.text=C.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._defaultTemplates.tag=new T(function(e,t){var n=o("<div>").addClass(L);o("<span>").text(t.text||t).appendTo(n),o("<div>").addClass(P).appendTo(n),e.append(n)}.bind(this),["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})},_toggleSubmitElement:function(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=o("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t="this"===this.option("valueExpr"),n=[],i=0,a=e.length;i<a;i++)n.push(o("<option>").val(t?this._displayGetter(e[i]):e[i]).attr("selected","selected"));this._$submitElement.empty(),this._$submitElement.append(n)}},_initMarkup:function(){this._tagElementsCache=o();var e=!this.option("multiline");this.$element().addClass(A).toggleClass(V,!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(F,e),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!v(this.option("fieldTemplate"));this.$element().toggleClass(z,e).toggleClass(N,!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=k.addNamespace(S.name,"dxTagBoxTagRemove");s.off(this._$tagsContainer,t),s.on(this._$tagsContainer,t,"."+P,function(t){e({event:t})}),this._renderTypingEvent()},_renderSingleLineScroll:function(){var e=k.addNamespace("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");return s.off(t,e),"desktop"!==a.real().deviceType?void(this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")):void(n||s.on(t,e,this._tagContainerMouseWheelHandler.bind(this)))},_tagContainerMouseWheelHandler:function(e){var t=this._$tagsContainer.scrollLeft();return this._$tagsContainer.scrollLeft(t+e.delta*G),!1},_renderTypingEvent:function(){s.on(this._input(),k.addNamespace("keydown",this.NAME),function(e){!this._isControlKey(e.key)&&this._isEditable()&&this._clearTagFocus()}.bind(this))},_popupWrapperClass:function(){return this.callBase()+" "+H},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return f()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler()},_focusInHandler:function(e){this.callBase(e),this._scrollContainer("end")},_restoreInputText:function(){this._clearTextValue()},_focusOutHandler:function(e){this.callBase(e),this._clearTagFocus(),this._scrollContainer("start")},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._popup._wrapper().find("."+$):this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){if(this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")){var e=this._list.$element().find("."+$),t=e.dxCheckBox("instance");t.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),t.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))}},_listConfig:function(){var e=this,t=this.option("showSelectionControls")?"all":"multiple";return x(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){e._selectAllValueChangeAction({value:t.value})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=new g;return this._$tagsContainer=this.$element().find("."+q).addClass(B).addClass(W),this._renderInputSize(),this._renderTags().always(function(){this._popup&&this._popup.refreshPosition(),e.resolve()}.bind(this)),e.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&this.callBase(e)},_shouldClearFilter:function(){var e=this.callBase(),t=this.option("showSelectionControls");return!t&&e},_renderInputSize:function(){var e=this._input();e.prop("size",e.val()?e.val().length+2:1)},_renderInputSubstitution:function(){this.callBase(),this._renderInputSize()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return v(t)&&e.length>t},_renderMultiTag:function(e){var t=o("<div>").addClass(O).addClass(R),n={multiTagElement:m(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(E,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:m(t)}),t)},_getFilteredItems:function(e){var t=new h(e),n=this._list&&this._list.option("selectedItems")||this.option("selectedItems"),i=t.getLocalFilter(this._valueGetter),o=n.filter(i),a=o.length===e.length,r=new g;if(a)return r.resolve(o).promise();var s=this._dataSource.filter(),l=t.getCombinedFilter(this.option("valueExpr"),s),c=encodeURI(JSON.stringify(l)).length,d=c>this.option("maxFilterLength")?void 0:l,u=this._dataSource.loadOptions(),p=u.customQueryParams;return this._dataSource.store().load({filter:d,customQueryParams:p}).done(function(e){r.resolve(e.filter(i))}),r.promise()},_createTagsData:function(e,t){var n=[],i={},o="this"===this._valueGetterExpr(),a={};return t.forEach(function(e){var t=o?JSON.stringify(e):this._valueGetter(e);a[t]=e}.bind(this)),e.forEach(function(e,t){var r=a[o?JSON.stringify(e):e];o&&!v(r)?this._loadItem(e,i).always(function(i){this._createTagData(n,i,e,t)}.bind(this)):this._createTagData(n,r,e,t)}.bind(this)),n},_createTagData:function(e,t,n,i){if(v(t))this._selectedItems.push(t),e.splice(i,0,t);else{var o=this.option("selectedItem"),a=this._valueGetter(o)===n?o:n;e.splice(i,0,a)}},_loadTagsData:function(){var e=this._getValue(),t=new g;return this._selectedItems=[],this._getFilteredItems(e).done(function(n){var i=this._createTagsData(e,n);t.resolve(i)}.bind(this)).fail(t.reject.bind(this)),t.promise()},_renderTags:function(){var e=new g;return this._loadTagsData().always(function(t){this._renderTagsCore(t),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus(),e.resolve()}.bind(this)),e.promise()},_renderTagsCore:function(e){this._renderInputAddons(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var t=this._multiTagRequired()&&this._renderMultiTag(this._input()),n=this.option("showMultiTagOnly"),i=this.option("maxDisplayedTags");e.forEach(function(e,o){return!(t&&n||t&&!n&&o-i>=-1)&&void this._renderTag(e,t||this._input())}.bind(this)),this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();b(e,function(e,n){var i=o(n),a=y(i.data(E),t);a<0&&i.remove()})}},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find("."+O)},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:m(t)})},_renderTag:function(e,t){var n=this._valueGetter(e);if(v(n)){var i=this._getTag(n),o=this._displayGetter(e),a=this._getItemModel(e,o);i?(v(o)&&(i.empty(),this._applyTagTemplate(a,i)),i.removeClass(M)):(i=this._createTag(n,t),v(e)?this._applyTagTemplate(a,i):(i.addClass(M),this._applyTagTemplate(n,i)))}},_getItemModel:function(e,t){return _.isObject(e)?e:t},_getTag:function(e){for(var t=this._tagElements(),n=t.length,i=!1,a=0;a<n;a++){var s=t[a],l=r.data(s,E);if(e===l||d.equalByValue(e,l)){i=o(s);break}}return i},_createTag:function(e,t){return o("<div>").addClass(O).data(E,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._input().val("")},_removeTagHandler:function(e){var t=e.event;t.stopPropagation();var n=o(t.target).closest("."+O);this._removeTagElement(n)},_removeTagElement:function(e){if(e.hasClass(R))return void(this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags"))));var t=e.data(E);this._removeTagWithUpdate(t),this._refreshTagElements()},_updateField:u,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){if("useButtons"!==this.option("applyValueMode")){var t=this._getValue().slice();b(e.removedItems||[],function(e,n){this._removeTag(t,this._valueGetter(n))}.bind(this)),b(e.addedItems||[],function(e,n){this._addTag(t,this._valueGetter(n))}.bind(this)),this._updateWidgetHeight(),this.option("value",t)}},_removeTag:function(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag:function(e,t){var n=this._valueIndex(t);n<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(e){this.option("showSelectionControls")||this._setValue(e)},_setValue:function(e){if(null!==e){var t="useButtons"===this.option("applyValueMode"),n=this._valueIndex(e),i=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();n>=0?i.splice(n,1):i.push(e),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex:function(e,t,n){var o=-1;return n&&"object"!==("undefined"==typeof e?"undefined":i(e))&&(n.indexByValues||(n.indexByValues={},t=t||this._getValue(),t.forEach(function(e,t){n.indexByValues[e]=t})),e in n.indexByValues)?n.indexByValues[e]:(t=t||this._getValue(),b(t,function(t,n){if(this._isValueEquals(e,n))return o=t,!1}.bind(this)),o)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return v(t)?t:null},_valueChangeEventHandler:u,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&this.callBase(e),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.$element(),t=e.height();this._renderInputSize();var n=e.height();this._popup&&this.option("opened")&&this._isEditable()&&n!==t&&this._popup.repaint()},_refreshSelected:function(){this._list&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var e=this._getDataSource();e&&(delete this._userFilter,e.filter(null),e.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._getDataSource();if(e){var t=this._valueGetterExpr();if(_.isString(t)&&"this"!==t){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?e.filter(n):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}}},_dataSourceFilterExpr:function(){var e=[];return b(this._getValue(),function(t,n){e.push(["!",[this._valueGetterExpr(),n]])}.bind(this)),e},_dataSourceFilterFunction:function(e){var t=this._valueGetter(e),n=!0;return b(this._getValue(),function(e,i){if(this._isValueEquals(i,t))return n=!1,!1}.bind(this)),n},_applyButtonHandler:function(){this.option("value",this._getSortedListValues()),this._clearTextValue(),this._clearFilter(),this.callBase()},_getSortedListValues:function(){var e=this._getListValues(),t=this.option("value")||[],n=e.length?t.filter(function(t){return e.indexOf(t)!==-1}):[],i=n.length?e.filter(function(e){return t.indexOf(e)===-1}):e;return n.concat(i)},_getListValues:function(){if(!this._list)return[];var e=this,t=this._getPlainItems(this._list.option("selectedItems")),n=[];return b(t,function(t,i){n[t]=e._valueGetter(i)}),n},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText(),this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._tagTemplate},_removeDuplicates:function(e,t){var n=this,i=[];return b(e,function(e,o){var a=t.filter(function(e){return n._valueGetter(o)===n._valueGetter(e)});a.length||i.push(o)}),i},_optionChanged:function(e){switch(e.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e.value);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"value":this.callBase(e),this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(e.name,e.value);break;case"selectedItem":break;case"selectedItems":var t=this._removeDuplicates(e.value,e.previousValue),n=this._removeDuplicates(e.previousValue,e.value);this._selectionChangedAction({addedItems:t,removedItems:n});break;case"multiline":this.$element().toggleClass(F,!e.value),this._renderSingleLineScroll();break;case"maxFilterLength":break;default:this.callBase(e)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});l("dxTagBox",K),e.exports=K},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(8),s=n(0).extend,l=n(9),c=n(25),d=n(98),u="dx-textarea",h="dx-texteditor-input",p=d.inherit({_getDefaultOptions:function(){return s(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass(u),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=i("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_applyInputAttributes:function(e,t){e.attr(t).addClass(h)},_renderScrollHandler:function(){var e=this._input(),t=0;o.on(e,l.addNamespace(c.down,this.NAME),function(e){t=l.eventData(e).y}),o.on(e,l.addNamespace(c.move,this.NAME),function(n){var i=e.scrollTop(),o=e.prop("scrollHeight")-e.prop("clientHeight")-i;if(0!==i||0!==o){var a=l.eventData(n).y,r=0===i&&t>=a,s=0===o&&t<=a,c=i>0&&o>0;(r||s||c)&&(n.isScrollingEvent=!0,n.stopPropagation()),t=a}})},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t),o=this.option("minHeight"),a=this.option("maxHeight");e.css({minHeight:void 0!==o?o:"",maxHeight:void 0!==a?a:"",width:n,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&o.on(this._input(),l.addNamespace("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){o.off(this._input(),l.addNamespace("input paste",this.NAME)),this.callBase()},_updateInputHeight:function(){var e=this._input();if(!this.option("autoResizeEnabled")||void 0!==this.option("height"))return void e.css("height","");this._resetDimensions(),e.css("height",0);var t=this._$element.outerHeight()-e.outerHeight();this._renderDimensions();var n=this.option("minHeight"),i=this.option("maxHeight"),o=e[0].scrollHeight;void 0!==n&&(o=Math.max(o,n-t)),void 0!==i&&(o=Math.min(o,i-t)),e.css("height",o)},_renderInputType:a,_visibilityChanged:function(e){e&&this._updateInputHeight()},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(e),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(e),e.value&&this._updateInputHeight();break;default:this.callBase(e)}}});r("dxTextArea",p),e.exports=p},function(e,t,n){var i=n(2),o=n(20),a=n(8),r=n(4).grep,s=n(0).extend,l=n(11),c=n(3),d=n(518),u=n(519),h=n(521),p=n(522),f=n(265),g=n(101),m={actionSheet:d,dropDownMenu:u,listBottom:h,listTop:p},_="dx-toolbar-item-auto-hide",v="dx-toolbar-text-auto-hide",w="dx-toolbar-item-invisible",x=f.inherit({
|
|
33
33
|
_getDefaultOptions:function(){return s(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu"})},_defaultOptionsRules:function(){var e=o.current();return this.callBase().concat([{device:function(){return o.isIos7(e)},options:{submenuType:"actionSheet"}},{device:function(){return o.isAndroid5(e)},options:{submenuType:"dropDownMenu"}},{device:function(){return o.isWin8(e)},options:{submenuType:"listBottom"}},{device:function(){return o.isWin10(e)},options:{submenuType:"listTop"}}])},_dimensionChanged:function(e){"height"!==e&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._defaultTemplates.actionSheetItem=new g("item",this)},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),this._menuStrategy.renderMenuItems()},_renderItem:function(e,t,n,i){var o=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&o.addClass(_),"dxButton"===t.widget&&"inMenu"===t.showText&&o.toggleClass(v),o},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var t=this.$element().find("."+_);if(t.length){e=e||this.$element().width(),i(t).removeClass(w);for(var n=this._getItemsWidth();t.length&&e<n;){var o=t.eq(-1);n-=o.outerWidth(),o.addClass(w),t.splice(-1,1)}}},_getMenuItems:function(){var e=this,t=r(this.option("items")||[],function(t){return e._isMenuItem(t)}),n=this._itemContainer().children("."+_+"."+w).not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var o=[].slice.call(n).map(function(t){var n=e._getItemData(t),o=i(t).children(),a=o.children();return s({menuItemTemplate:function(){e._restoreItems.push({container:o,item:a});var t=i("<div>").addClass(_);return t.append(a)}},n)});return l.merge(o,t)},_getToolbarItems:function(){var e=this;return r(this.option("items")||[],function(t){return!e._isMenuItem(t)})},_renderMenu:function(){this._renderMenuStrategy(),this._menuStrategy.render()},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=m[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("submenuType");if(("listBottom"===e||"listTop"===e)&&"topToolbar"===this.option("renderAs"))return!0;var t=this.option("items")||[],n=!1;return c.each(t,function(e,t){"auto"===t.locateInMenu?n=!0:"always"===t.locateInMenu&&t.widget&&(n=!0)}),n},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto","float":"none"}),c.each(this._restoreItems||[],function(e,t){i(t.container).append(t.item)}),this._restoreItems=[];var e=this.$element().width();this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems())},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"visible":this.callBase.apply(this,arguments),this._menuStrategy.handleToolbarVisibilityChange(n);break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});a("dxToolbar",x),e.exports=x},function(e,t,n){var i=n(10),o=n(6).getWindow(),a=n(1),r=n(0).extend,s=n(11).inArray,l=n(21),c=n(39),d=n(313),u=n(213),h=n(217),p='<?xml version="1.0" encoding="utf-8"?>',f='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',g="<sheetPr/>",m='<fonts count="2"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font><font><b/><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="1"><fill><patternFill patternType="none"/></fill></fills><borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',_="http://schemas.openxmlformats.org",v="rels",w="xl",x="workbook.xml",y="[Content_Types].xml",b="sharedStrings.xml",C="styles.xml",k="worksheets",S="sheet1.xml",I={"boolean":"b",date:"d",number:"n",string:"s"},D=Date.UTC(1899,11,30),T=60,E=4,A=7,B=165;t.ExcelCreator=i.inherit({_getXMLTag:function(e,t,n){var i,o,r="<"+e,s=t.length;for(i=0;i<s;i++)o=t[i],r=r+" "+o.name+'="'+o.value+'"';return a.isDefined(n)?r+">"+n+"</"+e+">":r+" />"},_getCellIndex:function(e,t){var n,i,o="",a=26;for(this._maxIndex[0]<Number(e)&&(this._maxIndex[0]=Number(e)),this._maxIndex[1]<Number(t)&&(this._maxIndex[1]=Number(t));!i;)n=65+(t>=a?t%a:Math.ceil(t)),o=String.fromCharCode(n)+o,t>=a?t=Math.floor(t/a)-1:i=!0;return o+e},_getDataType:function(e){return I[e]||"s"},_formatObjectConverter:function(e,t,n){var i={format:e,precision:t,dataType:n};return a.isObject(e)?r(i,e,{format:e.formatter||e.type,currency:e.currency}):i},_appendFormat:function(e,t,n){var i,o=this._formatObjectConverter(e,t,n);if(e=o.format,t=o.precision,i=o.currency,n=o.dataType,e=h.convertFormat(e,t,n,i))return s(e,this._styleFormat)===-1&&this._styleFormat.push(e),s(e,this._styleFormat)+1},_appendString:function(e){if(a.isDefined(e)&&(e=String(e),e.length))return e=c.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_getExcelDateValue:function(e){var t,n;if(a.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-D)/864e5),t<T&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n},_prepareValue:function(e,t){var n=this._dataProvider,i=n.getCellValue(e,t),o=this._getDataType(n.getCellType(e,t)),r=this._styleArray[this._dataProvider.getStyleId(e,t)].formatID,s=a.isNumeric(r)?this._styleFormat[r-1]:null;switch("d"!==o||a.isDate(i)||(o="s"),o){case"s":i=this._appendString(i);break;case"d":i=this._getExcelDateValue(i,s),o="n"}return{value:i,type:o}},_getDataArray:function(){var e,t,n,i,o,a=this,r=[],s=a._dataProvider,l=s.getRowsCount(),c=s.getColumns();for(e=0;e<l;e++){for(n=[],o=c.length,t=0;t!==o;t++)i=a._prepareValue(e,t),n.push({style:s.getStyleId(e,t),value:i.value,type:i.type});!a._needSheetPr&&s.getGroupLevel(e)>0&&(a._needSheetPr=!0),r.push(n)}return r},_getBoldStyleID:function(e){for(var t=0;t<E-1;t++)if(this._styleArray[t].alignment===e)return t},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/A*100+.5)/100)},_prepareStyleData:function(){var e=this,t=e._dataProvider.getStyles();e._dataProvider.getColumns().forEach(function(t){e._colsArray.push(e._calculateWidth(t.width))}),t.forEach(function(t){e._styleArray.push({bold:!!t.bold,alignment:t.alignment||"left",formatID:e._appendFormat(t.format,t.precision,t.dataType),wrapText:t.wrapText})})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:_+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:_+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){var e='<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>';return p+this._getXMLTag("workbook",[{name:"xmlns:r",value:_+"/officeDocument/2006/relationships"},{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return p+'<Types xmlns="'+_+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e,t=this,n=t._zip.folder(w),i=[],o="";for(e=0;e<t._styleFormat.length;e++)t._styleFormat[e]=t._getXMLTag("numFmt",[{name:"numFmtId",value:Number(e)+B},{name:"formatCode",value:t._styleFormat[e]}]);o=o+t._getXMLTag("numFmts",[{name:"count",value:t._styleFormat.length}],t._styleFormat.join(""))+m,this._styleArray.forEach(function(e){i.push(t._getXMLTag("xf",[{name:"xfId",value:0},{name:"applyAlignment",value:1},{name:"fontId",value:Number(!!e.bold)},{name:"applyNumberFormat",value:a.isDefined(e.formatID)?1:0},{name:"numFmtId",value:a.isDefined(e.formatID)?Number(e.formatID)+B-1:0}],t._getXMLTag("alignment",[{name:"vertical",value:"top"},{name:"wrapText",value:Number(!!e.wrapText)},{name:"horizontal",value:e.alignment}])))}),o+=t._getXMLTag("cellXfs",[{name:"count",value:i.length}],i.join("")),o+=t._getXMLTag("cellStyles",[{name:"count",value:1}],t._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),o=p+t._getXMLTag("styleSheet",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],o),n.file(C,o),t._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(w),n=this._stringArray.length,i=p;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(b,i),this._stringArray=[]},_getPaneXML:function(){var e=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],t=this._dataProvider.getFrozenArea();return t.x||t.y?(t.x&&e.push({name:"xSplit",value:t.x}),t.y&&e.push({name:"ySplit",value:t.y}),e.push({name:"topLeftCell",value:this._getCellIndex(t.y+1,t.x)}),this._getXMLTag("pane",e)):""},_getAutoFilterXML:function(e){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+e+'" />':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+e+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var e,t,n,i,o,r,s=0,l=[],c=this._cellsArray.length,d=this._colsArray.length,u="1:"+d,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,p=[['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',this._needSheetPr?f:g,'<dimension ref="A1:',this._getCellIndex(this._maxIndex[0],this._maxIndex[1])+'"/><sheetViews><sheetView '+(this._rtlEnabled?'rightToLeft="1" ':"")+'tabSelected="1" workbookViewId="0">'+this._getPaneXML()+'</sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" outlineLevelRow="',this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0,'" x14ac:dyDescent="0.25"/>'].join("")];for(e=0;e<d;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1}]);for(p.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<c;t++){for(i=[],r=this._cellsArray[t].length,e=0;e<r;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._getCellIndex(t+1,e)},{name:"s",value:n.style},{name:"t",value:n.type}],a.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));l.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:u},{name:"outlineLevel",value:t>=h?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s++>1e4&&(p.push(l.join("")),l=[],s=0)}p.push(l.join("")),l=[],o=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),p.push("</sheetData>"+this._getAutoFilterXML(o)+this._generateMergingXML()+this._getIgnoredErrorsXML(o)+"</worksheet>"),this._zip.folder(w).folder(k).file(S,p.join("")),this._colsArray=[],this._cellsArray=[],p=[]},_generateMergingXML:function(){var e,t,n,i,o,r,s=a.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],d=[],u="";for(i=0;i<s;i++)for(n=0;n!==l;n++)if(!a.isDefined(c[i])||!a.isDefined(c[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(d.push({start:this._getCellIndex(i+1,n),end:this._getCellIndex(i+1+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)a.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(o=d.length,r=0;r<o;r++)u+=this._getXMLTag("mergeCell",[{name:"ref",value:d[r].start+":"+d[r].end}]);return u.length?this._getXMLTag("mergeCells",[{name:"count",value:o}],u):""},_generateCommonXML:function(){var e,t=p+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+x)),n=this._zip.folder(w),i=p;this._zip.folder("_"+v).file("."+v,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+S)+this._createXMLRelationship(2,"styles",C)+this._createXMLRelationship(3,"sharedStrings",b),i+=this._createXMLRelationships(e),n.folder("_"+v).file(x+".rels",i),n.file(x,this._getWorkbookContent()),this._zip.file(y,this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxIndex=[1,2],this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._styleFormat=[],this._needSheetPr=!1,this._dataProvider=e,a.isDefined(d)?this._zip=new d:this._zip=null},_checkZipState:function(){if(!this._zip)throw l.Error("E1041")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:u.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}}),t.getData=function(e,n,i){var r=new t.ExcelCreator(e,n);r._checkZipState(),r.ready().done(function(){r._zip.generateAsync?r.getData(a.isFunction(o.Blob)).then(i):i(r.getData(a.isFunction(o.Blob)))})}},function(e,t){e.exports=window.JSZip},function(e,t,n){var i=n(4).escapeRegExp,o={3:"abbreviated",4:"wide",5:"narrow"},a=function(e,t){return e>2?Object.keys(o).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(o[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},r={y:function(e){return"[0-9]+"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(o[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(o[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},c=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(o).map(function(i){var a=n.getMonthNames(o[i],t);return l(a,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},d={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:c,L:c,Q:function(e,t,n){return t>2?n.getQuarterNames(o[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(o[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(o[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},u=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t){var n=e.getHours();t||12!==n?t&&12!==n&&e.setHours(n+12):e.setHours(0)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},p=function(e,t){var n=e[t],i=0;do t++,i++;while(e[t]===n);return i},f=function(e,t){for(var n="",i=0;i<t;i++)n+=e;return n},g=function(e,t){var n,o="",a=[];e=i(e);for(var s=0;s<e.length;s++){var l=e[s],c="'"===l,d=r[l];if(!c||(n=!n,"'"===e[s-1]))if(d&&!n){var u=p(e,s),h=f(l,u);a.push(h),o+="("+d(u,t)+")",s+=u-1}else o+=l}return{patterns:a,regexp:new RegExp("^"+o+"$","i")}},m=function(e,t,n,i){var o=t[0],a=h[o],r=d[o];if(a&&r){var s=r(n,t.length,i);e[a]?e[a](s):a(e,s)}},_=function(e,t,n){var i=h[t],o="g"+i.substr(1);e[i](n[o]())},v=function(e){return e.map(function(e){return"H"===e[0]?"h":e[0]})},w=function(e){var t=e.map(function(e){return u.indexOf(e)});return Math.max.apply(Math,t)},x=function(e){var t=e.filter(function(e){return u.indexOf(e)<0});return u.concat(t)},y=function(e,t){var n=g(e,t);return function(e){var i=n.regexp.exec(e);if(i){var o=new Date,a=new Date(o.getFullYear(),0,1),r=v(n.patterns),s=w(r),l=x(r);return l.forEach(function(e,l){if(!(l<u.length&&l>s)){var c=r.indexOf(e);c>=0?m(a,n.patterns[c],i[c+1],t):_(a,e,o)}}),a}return null}};t.getParser=y},function(e,t,n){var i=n(2),o=n(72),a=n(6).getWindow(),r=n(1).isFunction,s=n(3).each,l=n(262).getSvgMarkup,c=n(7),d=c.when,u=c.Deferred;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){o.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail(function(){t(!1)})},_loadImages:function(){var e=this;s(e._imageArray,function(t){var n=new u;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,r="",s=new Uint8Array(i),l=s.byteLength;for(o=0;o<l;o++)r+=String.fromCharCode(s[o]);e._imageArray[t]="data:image/png;base64,"+a.btoa(r),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),s(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),d.apply(i,this._imageDeferreds)},getData:function(e,t){var n,o=this,c='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',d=new u,h=new a.DOMParser,p=h.parseFromString(e,"image/svg+xml"),f=p.childNodes[0],g=i(f);return g.css("backgroundColor",t.backgroundColor),n=c+l(g.get(0)),o._prepareImages(f).done(function(){s(o._imageArray,function(e,t){n=n.split(e).join(t)}),d.resolve(r(a.Blob)?o._getBlob(n):o._getBase64(n))}),d},_getBlob:function(e){return new a.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return a.btoa(e)}},t.getData=function(e,n,i){t.svgCreator.getData(e,n).done(i)}},function(e,t,n){var i=n(6),o=i.getWindow(),a=n(55),r={getXhr:function(){return new o.XMLHttpRequest}};e.exports=a(r)},function(e,t,n){var i=n(120),o=n(6).getWindow(),a=n(221).imageCreator,r=n(1).isFunction,s=n(0).extend,l=n(7),c=l.when,d=l.Deferred,u="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",h="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",p="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",f="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",g="\r\nendstream\r\nendobj\r\n",m="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",_="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",v=function e(t,n){return t.length<n?e("0"+t,n):t},w=function(e,t,n){var o=2*(t.margin||0),a=t.width+o,r=t.height+o,s=(.75*a).toFixed(2),l=(.75*r).toFixed(2),c=u.replace("_width_",s).replace("_height_",l),d=h.replace("_width_",s).replace("_height_",l),_=p.replace("_date_",n).replace("_version_",i),v=f.replace("_width_",a).replace("_height_",r).replace("_length_",e.length)+e+g,w=x(c.length,d.length,_.length),y=c+d+_+v,b=m.replace("_length_",y.length);return y+w+b},x=function(e,t,n){return _.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},y=function(){return new Date},b=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new o.Blob([n.buffer],{type:"application/pdf"})},C=function(e){return o.btoa(e)};t.getData=function(e,t,n){var i=a.getImageData(e,s({},t,{format:"JPEG"})),l=new d;l.done(n),c(i).done(function(e){var n=w(e,t,y()),i=r(o.Blob)?b(n):C(n);l.resolve(i)})}},function(e,t,n){var i=n(19),o=n(1).isFunction,a=n(3).each,r=n(10);e.exports=r.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,o=this._events[e];o||(o=i(),this._events[e]=o),n=o.originalAdd||o.add,n.call(o,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){a(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(5);t.on=i.on,t.one=i.one,t.off=i.off,t.trigger=i.trigger,t.triggerHandler=i.triggerHandler,t.Event=i.Event},function(e,t,n){var i,o=n(140),a=n(226),r=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,c=function(){l||(i=new a(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(r({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});d.map=s,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(0).extend,o=n(140),a=n(227),r=n(225),s=n(9),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},c=!1,d=function(){c||(a.activate(),c=!0)},u=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),d()},_handler:function(e){var t=s.isMouseEvent(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout(function(){n._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=s.isMouseEvent(e.originalEvent),n=t?a.normalize:r.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});u.map=l,u.resetObserver=a.resetObserver,e.exports=u},function(e,t,n){var i=n(81),o=n(15),a=n(49),r=n(33);n(137),t.locale=i.locale.bind(i),t.loadMessages=o.load.bind(o),t.formatMessage=o.format.bind(o),t.formatNumber=a.format.bind(a),t.parseNumber=a.parse.bind(a),t.formatDate=r.format.bind(r),t.parseDate=r.parse.bind(r),t.message=o,t.number=a,t.date=r},function(e,t,n){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-onText":"ON","dxSwitch-offText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A",
|
|
34
|
-
"dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceEvery":"Every","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of"}}},function(e,t,n){e.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"root","az-Cyrl":"root","blt-Latn":"root","bm-Nkoo":"root","bs-Cyrl":"root","byn-Latn":"root","cu-Glag":"root","dje-Arab":"root","dyo-Arab":"root","en-Dsrt":"root","en-Shaw":"root","ff-Adlm":"root","ff-Arab":"root","ha-Arab":"root","iu-Latn":"root","kk-Arab":"root","ku-Arab":"root","ky-Arab":"root","ky-Latn":"root","ml-Arab":"root","mn-Mong":"root","ms-Arab":"root","pa-Arab":"root","sd-Deva":"root","sd-Khoj":"root","sd-Sind":"root","shi-Latn":"root","so-Arab":"root","sr-Latn":"root","sw-Arab":"root","tg-Arab":"root","ug-Cyrl":"root","uz-Arab":"root","uz-Cyrl":"root","vai-Latn":"root","wo-Arab":"root","yo-Arab":"root","yue-Hans":"root","zh-Hant":"root","zh-Hant-MO":"zh-Hant-HK"}},function(e,t,n){n(119),n(109),e.exports=DevExpress.framework={},DevExpress.framework.dxCommand=n(174),DevExpress.framework.Router=n(141),DevExpress.framework.StateManager=n(175),DevExpress.framework.ViewCache=n(82),DevExpress.framework.NullViewCache=n(82).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=n(82).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=n(82).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=n(82).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=n(176),DevExpress.framework.dxView=n(63).dxView,DevExpress.framework.dxLayout=n(63).dxLayout,DevExpress.framework.dxViewPlaceholder=n(63).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=n(63).dxContentPlaceholder,DevExpress.framework.dxTransition=n(63).dxTransition,DevExpress.framework.dxContent=n(63).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=n(231),DevExpress.framework.Route=n(141).Route,DevExpress.framework.MemoryKeyValueStorage=n(175).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=n(142),DevExpress.framework.NavigationManager=n(111),DevExpress.framework.createActionExecutors=n(233).createActionExecutors,DevExpress.framework.Application=n(232).Application;var i=n(234);DevExpress.framework.DefaultBrowserAdapter=i.DefaultBrowserAdapter,DevExpress.framework.OldBrowserAdapter=i.OldBrowserAdapter,DevExpress.framework.BuggyAndroidBrowserAdapter=i.BuggyAndroidBrowserAdapter,DevExpress.framework.HistorylessBrowserAdapter=i.HistorylessBrowserAdapter,DevExpress.framework.BuggyCordovaWP81BrowserAdapter=i.BuggyCordovaWP81BrowserAdapter,DevExpress.framework.CommandMapping=n(178),DevExpress.framework.HistoryBasedNavigationDevice=n(142).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=n(142).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=n(111).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=n(111).StackBasedNavigationManager,DevExpress.framework.NavigationStack=n(111).NavigationStack,DevExpress.framework.utils=n(110).utils,DevExpress.framework.templateProvider=n(110).templateProvider,DevExpress.framework.html.CommandManager=n(235),DevExpress.framework.html.HtmlApplication=n(231),DevExpress.framework.html.layoutSets=n(143).layoutSets,DevExpress.framework.html.animationSets=n(143).animationSets,DevExpress.framework.html.DefaultLayoutController=n(179).DefaultLayoutController,DevExpress.framework.html.layoutSets=n(179).layoutSets,DevExpress.framework.html.MarkupComponent=n(177).MarkupComponent,DevExpress.framework.html.ViewEngine=n(237).ViewEngine,DevExpress.framework.html.ViewEngineComponents=n(63);var o=n(236);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:o.dxToolbar,dxList:o.dxList,dxNavBar:o.dxNavBar,dxPivot:o.dxPivot,dxSlideOut:o.dxSlideOut}},function(e,t,n){var i=n(2),o=n(56),a=n(19),r=n(17),s=n(37),l=n(1).isPlainObject,c=n(138),d=n(28),u=n(228),h=n(48),p=n(229),f=n(30),g="dxKoLocks",m="dxKoCreation",_=[],v=function(e,t){t.subclassOf(h)&&_.push(e),o.bindingHandlers[e]={init:function(e,n){var c,h,_=i(e),v=a(),w={},x=f().knockout,y=x&&x.isBindingPropertyPredicateName,b={onInitializing:function(){w=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());c&&c.beginUpdate(),h=y&&e&&e[y],T(e),c&&c.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),c=this},modelByElement:function(e){if(e.length)return o.dataFor(e.get(0))},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:v,integrationOptions:{watchMethod:function(e,t,n){n=n||{};var i=n.skipImmediate,a=o.computed(function(){var n=o.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),r.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var a=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(a),o.applyBindings(e.model,a)}}}},createTemplate:function(e){return new u(e)}}},C={},k=function(e,t,n){var i=_.data(g),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(C[e]=t),c){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(c.option,c,[e,a]):c.option(e,a)}finally{i.release(e)}}else b[e]=a},S=function(e){var t=e.fullName,n=e.value;if(t in C){var i=this._$element,o=i.data(g);if(!o.locked(t)){o.obtain(t);try{C[t](n)}finally{o.release(t)}}}},I=function(){v.add(S),_.data(m,!0).data(g,new p),new t(_,b),b=null},D=function(t,n,i){if(i!==y)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];k(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(w[i]||T(a,i))}else k(i,t[n],!1)},T=function(e,t){for(var n in e)e.hasOwnProperty(n)&&D(e,n,t?[t,n].join("."):n)};return I(),{controlsDescendantBindings:t.subclassOf(d)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=_)};c.add(function(e,t){v(e,t)})},function(e,t,n){var i=n(56),o=function e(t){var n=i.contextFor(t);return!n&&t.parentNode?e(t.parentNode):t};e.exports.getClosestNodeWithContext=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(12),r=n(6),s=n(51).add,l=r.getWindow(),c=r.getNavigator(),d=n(5),u=n(32),h=n(24),p=n(59).compare,f=n(73),g=n(0).extend,m=n(11).inArray,_=n(13).getPublicElement,v=f.changeCallback,w=n(136).hideCallback,x=n(77),y=n(31).fitIntoRange,b=n(13),C=n(4).noop,k=n(1),S=n(3).each,I=n(14),D=n(29),T=n(8),E=n(28),A=n(155),B=n(57),O=n(78),R=n(9),M=n(25),P=n(204),V=n(122),F=n(7).Deferred,H="dx-overlay",$="dx-overlay-wrapper",L="dx-overlay-content",z="dx-overlay-shader",N="dx-overlay-modal",W="dx-state-invisible",q="content",G="dx-rtl",K=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],j=1500,U=[],Y="dx-state-disabled",X=9,Z={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},J=I.real(),Q=J.version,ee=D.mozilla&&"desktop"===J.deviceType,te="ios"===J.platform,ne=D.safari&&"desktop"!==J.deviceType,ie=te&&p(Q,[7,1])<0,oe="android"===J.platform&&0===p(Q,[4,0],2)&&c.userAgent.indexOf("Chrome")===-1,ae=function(e){if((ie||ee)&&e.width(),oe){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},re=function(e){return e&&o(e.target||e)};s(function(){d.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=U.length-1;t>=0;t--)if(!U[t]._proxiedDocumentDownHandler(e))return})});var se=E.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:y(e,-i.top,i.bottom),left:y(t,-i.left,i.right)};this._changePosition(o)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=I.real(),t=e.platform,n=e.version;return"android"===t&&p(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!r.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return q},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass($),this._$content=o("<div>").addClass(L);var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(H),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),d.on(this._$wrapper,"MSPointerDown",C),d.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();S(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var o=i.split("."),a=t;a;){if(1===o.length){k.isPlainObject(a)&&(a[o.shift()]=e);break}a=a[o.shift()]}})}},_initContainer:function(e){e=void 0===e?f.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=o(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},S(K,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");k.isFunction(t)&&(t=t(e));var n=this._$content,i=o(l.document).is(e.target)||b.contains(l.document,e.target),a=i&&!(n.is(e.target)||b.contains(n.get(0),e.target));return a&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new V(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return U},_zIndexInitValue:function(){return j},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return k.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new F;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return t.resolve();if(this._currentVisible)return(new F).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),o=i&&i.start||C,a=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(i,function(){e.option("focusStateEnabled")&&d.trigger(e._focusTarget(),"focus"),a.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),t.resolve()},function(){o.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(r)):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new F).resolve().promise();this._currentVisible=!1;var e=this,t=new F,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),o=i&&i.start||C,a=i&&i.complete||C,r={cancel:!1};return this._actions.onHiding(r),r.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),a.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),o.apply(this,arguments)})),t.promise()},_forceFocusLost:function(){var e=a.getActiveElement();e&&this._$content.find(e).length&&e.blur()},_animate:function(e,t,n){e?(n=n||e.start||C,u.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){u.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||b.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(W,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),b.triggerShownEvent(this._$content),b.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=m(this,t);if(e){if(n===-1){var i=t.length;this._zIndex=(i?t[i-1]._zIndex:this._zIndexInitValue())+1,t.push(this)}this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)}else n!==-1&&t.splice(n,1)},_toggleShading:function(e){this._$wrapper.toggleClass(N,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(z,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=R.addNamespace("keydown",this.NAME);e?d.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):d.off(a.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(B.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(B.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if(e.keyCode===X&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),r=0===t.length,s=!b.contains(this._$wrapper.get(0),e.target);if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;d.trigger(l,"focusin"),d.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?w.add(this._hideTopOverlayHandler):w.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=re(t).parents(),a=R.addNamespace("scroll",this.NAME);"generic"===I.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),d.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(d.on(i,a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");k.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._$content.appendTo(this.$element()),this._renderVisibilityAnimate(this.option("visible"))},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();return t?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=o(this);if("none"===e.css("display"))return t=!0,!1}),t||!a.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this.$element();this._$content.appendTo(e);var t=this.option("contentTemplate"),n=this._getTemplate(t),i=this._getAnonymousTemplateName()===t;n&&n.render({container:_(this.$content()),noModel:!0,transclude:i}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=R.addNamespace(O.start,this.NAME),n=R.addNamespace(O.move,this.NAME);d.off(e,t),d.off(e,n),this.option("dragEnabled")&&(d.on(e,t,this._dragStartHandler.bind(this)),d.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,P,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=R.addNamespace(O.move,this.NAME);d.off(e,t),d.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:C,_clearSelection:C,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){var e=f.originalViewPort().get(0)||this.option("container"),t=e?this._$container:o(l);return t},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),r=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var l=a.getDocument(),c=Math.max(o(l).outerHeight(),s),d=Math.max(o(l).outerWidth(),r);s=c,r=d}return{width:r-n,height:s-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=h.locate(this._$content);h.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=h.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:n?e.top+i.top+o.v:0,bottom:n?-e.top-i.top+t.height-o.v:0,left:n?e.left+i.left+o.h:0,right:n?-e.left-i.left+t.width-o.h:0}},_fireContentReadyAction:function(){this.option("visible")&&this._moveToContainer(),this.callBase.apply(this,arguments)},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element();this._$container&&this._$container[0]!==e.parent()[0]?this._$wrapper.appendTo(this._$container):this._$wrapper.appendTo(e)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&ne&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(){this.option("visible")&&r.hasWindow()&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._fixHeightAfterSafariAddressBarResizing(),this._renderShading(),this._renderDimensions();var e=this._renderPosition();this._actions.onPositioned({position:e})},_renderShading:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)&&!te?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();x.setup(this._$wrapper,{my:"top left",at:"top left",of:e})}},_renderShadingDimensions:function(){var e,t;if(this.option("shading")){var n=this._getContainer();e=this._isWindow(n)?"100%":n.outerWidth(),t=this._isWindow(n)?"100%":n.outerHeight()}else e="",t="";this._$wrapper.css({width:e,height:t})},_isWindow:function(e){return!!e&&k.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||l:null;return re(t||n)},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var e=this._transformStringPosition(this._position,Z),t=x.setup(this._$content,e);return ae(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:y(0,-n.top,n.bottom),left:y(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return k.isString(e)&&(e=g({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new A({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent,n=o(t.target);n.is(this._$content)&&this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){u.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Y,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(G,e)},_optionChanged:function(e){var t=e.value;if(m(e.name,K)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();
|
|
35
|
-
break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return(new F).resolve().promise();var t=new F;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return _(this._$content)},repaint:function(){this._renderGeometry()}});se.baseZIndex=function(e){j=e},T("dxOverlay",se),e.exports=se},function(e,t,n){var i=n(2),o=n(5),a=n(56),r=n(1).isPlainObject,s=n(107),l=n(9);s.add(function(e){var t=l.addNamespace(e,e+"Binding");a.bindingHandlers[e]={update:function(e,n,s,l){var c=i(e),d=a.utils.unwrapObservable(n()),u=d.execute?d.execute:d;o.off(c,t),o.on(c,t,r(d)?d:{},function(e){u.call(l,l,e)})}}})},function(e,t,n){var i=n(2),o=n(5),a=n(76),r=n(22).compileGetter,s=n(0).extend,l=n(56),c=n(106),d=n(18);l.bindingHandlers.dxAction={update:function(e,t,n,c){var u=i(e),h=l.utils.unwrapObservable(t()),p=h,f={context:e};h.execute&&(p=h.execute,s(f,h));var g=new a(p,f);o.off(u,".dxActionBinding"),o.on(u,d.name+".dxActionBinding",function(t){g.execute({element:u,model:c,evaluate:function(t){var n=c;t.length>0&&"$"===t[0]&&(n=l.contextFor(e));var i=r(t);return i(n)},event:t}),f.bubbling||t.stopPropagation()})}},l.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:l.unwrap(t())}}},l.bindingHandlers.dxIcon={init:function(e,t){var n=l.utils.unwrapObservable(t())||{},i=c.getImageContainer(n);l.virtualElements.emptyNode(e),i&&l.virtualElements.prepend(e,i.get(0))},update:function(e,t){var n=l.utils.unwrapObservable(t())||{},i=c.getImageContainer(n);l.virtualElements.emptyNode(e),i&&l.virtualElements.prepend(e,i.get(0))}},l.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){var i=n(3).each,o=n(10),a=n(53),r=n(89),s=n(56),l=o.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=s.observable(!0),n.validationError=s.observable(),i(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=r.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(e),e},reset:function(){this.target(null);var e={isValid:!0,brokenRule:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){e.validator=this,this.target.dxValidator.isValid(e.isValid),this.target.dxValidator.validationError(e.brokenRule),this.fireEvent("validated",[e])}}).include(a);s.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},r.registerModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.registerValidatorInGroup(e,n.dxValidator)})},r.unregisterModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.removeRegisteredValidator(e,n.dxValidator)})},r.validateModel=r.validateGroup},function(e,t,n){var i=n(56),o=n(71);o.inject({isWrapped:i.isObservable,isWritableWrapped:i.isWritableObservable,wrap:i.observable,unwrap:function(e){return i.isObservable(e)?i.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(35),o=i.afterCleanData,a=i.strategyChanging,r=n(56),s=n(59).compare,l=r.utils.domNodeDisposal.cleanExternalData,c=function(){o(function(e){for(var t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||r.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery}),r.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])}},d=function(){o(function(){}),r.utils.domNodeDisposal.cleanExternalData=l};c(),a.add(function(e){var t=!!e.fn;t&&s(e.fn.jquery,[2,0])<0&&d()})},function(e,t,n){var i=n(56),o=n(59).compare,a=n(35).strategyChanging,r=function(e){var t=function(e,t){var n=function(){i.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var o=e.fn.remove;e.fn.remove=function(e,n){if(!n){var i=this;e&&(i=i.filter(e)),t(i,!0)}return o.call(this,e,n)};var a=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),a.apply(this,arguments)};var r=e.fn.replaceWith;e.fn.replaceWith=function(){var e=r.apply(this,arguments);return this.parent().length||t(this,!0),e}};a.add(function(e){var t=!!e.fn;t&&o(e.fn.jquery,[2,0])<0&&r(e)})},function(e,t,n){var i=n(26),o=n(214),a=n(74)();a&&o.set(i)},function(e,t,n){var i=n(26),o=n(74)(),a=n(59).compare,r=n(3).each,s=n(1).isNumeric,l=n(9).setEventFixMethod,c=n(61),d=n(215);if(o)if(a(i.fn.jquery,[3])<0){var u={2:"touch",3:"pen",4:"mouse"};r(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return s(n)&&(e.pointerType=u[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),r(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return d(function(n,i){e[n]=i(t)}),e},props:i.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),i.event.fixHooks.wheel=i.event.mouseHooks;var h={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};c.callbacks.add(function(e){i.event.fixHooks[e]=h});var p=function(e,t){for(var n=i.event.fixHooks[t.type]||i.event.mouseHooks,o=n.props?i.event.props.concat(n.props):i.event.props,a=o.length;a--;){var r=o[a];e[r]=t[r]}return n.filter?n.filter(e,t):e};l(p)}else d(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(26),o=n(7),a=n(74)(),r=n(59).compare;if(a){var s=i.Deferred,l={Deferred:s};l.when=r(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.when.apply(i,arguments)},o.setStrategy(l)}},function(e,t,n){var i=n(26),o=n(230),a=n(51).add;if(i&&!o.fired()){var r=i.holdReady||i.fn.holdReady;r(!0),o.add(function(){a(function(){r(!1)})})}},function(e,t,n){var i=n(26),o=n(5),a=n(74)(),r=n(107),s=n(12);a&&(r.add(function(e,t){i.event.special[e]=t}),o.forcePassiveFalseEventNames.forEach(function(e){i.event.special[e]={setup:function(t,n,i){s.listen(this,e,i,{passive:!1})}}}),o.set({on:function(e){i(e).on.apply(i(e),Array.prototype.slice.call(arguments,1))},one:function(e){i(e).one.apply(i(e),Array.prototype.slice.call(arguments,1))},off:function(e){i(e).off.apply(i(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){i(e).trigger.apply(i(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){i(e).triggerHandler.apply(i(e),Array.prototype.slice.call(arguments,1))},Event:i.Event}))},function(e,t,n){var i=n(26),o=n(224);i&&o.setEasing(i.easing)},function(e,t,n){var i=n(26),o=n(35),a=n(74)();a&&o.setDataStrategy(i)},function(e,t,n){var i=n(13).setPublicElementWrapper,o=n(74)(),a=function(e){return e};o&&i(a)},function(e,t,n){var i=n(26),o=n(138),a=n(17);if(i){var r=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};o.add(r)}},function(e,t,n){var i=n(26),o=n(72),a=n(74)();a&&o.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):i.ajax(e)}})},function(e,t,n){var i=n(238);i&&(n(43),n(346),n(353),n(354),n(355))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(2),r=i(a),s=n(5),l=i(s),c=n(30),d=i(c),u=n(138),h=i(u),p=n(10),f=i(p),g=n(19),m=i(g),_=n(1),v=i(_),w=n(3),x=i(w),y=n(11),b=i(y),C=n(229),k=i(C),S=n(28),I=i(S),D=n(48),T=i(D),E=n(347),A=i(E),B=n(180),O=i(B),R=n(44),M=i(R),P=n(22),V=i(P),F=n(0),H=i(F),$=n(37),L=i($),z=n(17),N=i(z),W=x.default.each,q=b.default.inArray,G=V.default.compileSetter,K=V.default.compileGetter,j=H.default.extendFromObject,U="dxItemAlias",Y=["rendering"],X="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},J=f.default.inherit({ctor:function(e){this._componentDisposing=(0,m.default)(),this._optionChangedCallbacks=(0,m.default)(),this._ngLocker=new k.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))});this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=j({},e),e&&(!e.hasOwnProperty("bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&W(e.bindingOptions,function(e,n){"string"===v.default.type(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})}))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add(function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)})},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&(W(this._ngOptions.bindingOptions,function(n,i){var o=n.search(/\[|\./),a=o>-1?n.substring(0,o):n,r=void 0,s=void 0,l=i.dataPath,c=!0,d=!1;void 0!==i.deep&&(d=c=!!i.deep),t[a]||(t[a]={}),t[a][n]=l;var u=function(t,i){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,t),h(),e._component._optionValuesEqual(n,i,t)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))},h=function(){var t=Array.isArray(e._scope.$eval(l))&&!d?"$watchCollection":"$watch";r!==t&&(s&&s(),s=e._scope[t](l,u,c),r=t)};h(),e._componentDisposing.add(s)}),this._optionChangedCallbacks.add(function(n){var i=n.name,o=n.fullName,a=n.component;if(e._ngLocker.locked(o))return void e._ngLocker.release(o);if(t&&t[i]){var r=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(o)};r?e._digestCallbacks.begin.add(s):s(),Z(function(){W(t[i],function(t,i){if(e._optionsAreLinked(o,t)){var r=a.option(t);e._parse(i).assign(e._scope,r);var s=e._parse(i)(e._scope);s!==r&&n.component.option(t,s)}})},e._scope);var l=function t(){e._ngLocker.locked(o)&&e._ngLocker.release(o),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};r?e._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var o=(0,r.default)(e).clone(),a=i.model&&i.model.constructor===t._scope.$root.constructor,s=a?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(s,n,i.index),o.appendTo(i.container),i.noModel||l.default.on(o,"$destroy",function(){var e=!s.$parent;e||s.$destroy()});var c=t._compile(o,t._transcludeFn);return t._applyAsync(function(e){c(e,null,{parentBoundTranscludeFn:t._transcludeFn})},s),o}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(this._renderingTimer||(this._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),this._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(M.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),v.default.isDefined(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==o(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t=e.parentScope,n=e.childScope,i=e.fieldPath,o=e.parentPrefix,a=e.itemIndex,r=i===this._itemAlias?"":"."+i,s=void 0!==a,l=[o],c=void 0;if(s){if(!v.default.isNumeric(a))return;l.push("[",a,"]")}l.push(r),c=l.join("");var d=t.$watch(c,function(e,t){e!==t&&G(i)(n,e)}),u=n.$watch(i,function(e,n){if(e!==n){if(s&&!K(o)(t)[a])return void u();G(c)(t,e)}});this._componentDisposing.add([d,u])},_evalOptions:function(e){var t=this,n=j({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&W(this._ngOptions.bindingOptions,function(t,i){n[t]=e.$eval(i.dataPath)}),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){if(i&&q(i.category,Y)>-1)return n;var o=function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?Z(function(){return n.apply(t,i)},e):n.apply(this,i)};return o},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,d.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){Z(function(){},e)}),n.integrationOptions={createTemplate:function(e){return new A.default(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,o){o=o||{};var a=void 0,r=o.skipImmediate,s=e.$watch(function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=a===e;!r&&(!t||t&&o.deep)&&i(e),r=!1},o.deep);return r||(a=n(),i(a)),(0,d.default)().wrapActionsBeforeExecute&&t._applyAsync(function(){},e),s},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){if("button"===n||"tabs"===n||"dropDownMenu"===n){var i=n;n=L.default.camelize("dx-"+n),N.default.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+n+"' instead")}var o=(0,r.default)("<div>").attr(L.default.dasherize(n),"options").get(0),a=t._scope.$new();a.options=e.model.options,e.container.append(o),t._compile(o)(a)}}}}},n.modelByElement=function(){return e},n}});J=J.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return this._componentClass.subclassOf(T.default)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,function(t,n){e._ngLocker.locked(X)||t!==n&&e._component.option(X,t)});this._optionChangedCallbacks.add(function(t){e._ngLocker.obtain(X);try{if(t.name!==X)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(X)&&e._ngLocker.release(X)}}),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[X]=this._parse(this._ngModel)(this._scope),e}});var Q={},ee=function(e){var t="dxValidator"!==e?1:10;O.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,o){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=Q[e],r=a.subclassOf(I.default)?t.contents().detach():null;return function(t,s,l,c,d){s.append(r),Z(function(){new J({componentClass:a,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:c,transcludeFn:d,itemAlias:l[U],dxDigestCallbacks:o})},t)}}}}])};h.default.add(function(e,t){Q[e]||ee(e),Q[e]=t})},function(e,t,n){var i=n(2),o=n(66),a=n(1).isFunction,r=n(13),s=o.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(r.normalizeTemplateElement(this._element))},_renderCore:function(e){var t=this._compiledTemplate;return a(t)?t(e):t},source:function(){return i(this._element).clone()}});e.exports=s},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(13).getPublicElement,s=n(12),l=n(1).isPlainObject,c=n(7).when,d=n(0).extend,u=n(11).inArray,h=n(3),p=n(76),f=n(50),g=n(13),m=n(22),_=n(28),v=n(9),w=n(25),x=n(112),y=n(123),b=n(57),C=n(15),k=n(90),S=n(18),I=n(159),D=n(67),T="dx-collection",E="dx-item",A="-content",B="dx-item-content-placeholder",O="dxItemData",R="dxItemIndex",M="tmpl-",P="[data-options*='dxItem']",V="dx-item-selected",F="dx-item-response-wait",H="dx-empty-collection",$="dx-template-wrapper",L=/^([^.]+\[\d+\]\.)+([\w.]+)$/,z="up",N="down",W="left",q="right",G="pageup",K="pagedown",j="last",U="first",Y=_.inherit({_activeStateUnit:"."+E,_supportedKeys:function(){var e=function(e){var t=i(this.option("focusedElement"));t.length&&(e.target=t,e.currentTarget=t,this._itemClickHandler(e))},t=function(t){t.preventDefault(),e.call(this,t)},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return d(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,W),rightArrow:n.bind(this,q),upArrow:n.bind(this,z),downArrow:n.bind(this,N),pageUp:n.bind(this,z),pageDown:n.bind(this,N),home:n.bind(this,U),end:n.bind(this,j)})},_getDefaultOptions:function(){return d(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:C.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._defaultTemplates.item=new D(function(e,t){l(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t))}.bind(this),["text","html"],this.option("integrationOptions.watchMethod"))},_prepareDefaultItemTemplate:function(e,t){e.text&&t.text(e.text),e.html&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=this.$element().contents().filter(P);if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=i(t),o=g.getElementOptions(t).dxItem,a=n.html().trim()&&!o.template;return a?o.template=e._prepareItemTemplate(n):n.remove(),o});this.option("items",n)}},_prepareItemTemplate:function(e){var t=M+new f,n='dxTemplate: { name: "'+t+'" }';return e.detach().clone().attr("data-options",n).data("options",n).appendTo(this.$element()),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),u(e.target,this._focusTarget())!==-1){var t=i(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",r(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=i(this.option("focusedElement"));e.length&&this._toggleFocusClass(!1,e)},_getActiveItem:function(e){var t=i(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,o=this._getActiveElement(),a=o.length-1;return n<0&&(n=e?a:0),o.eq(n)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case G:case z:t=this._prevItem(n);break;case K:case N:t=this._nextItem(n);break;case q:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case W:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case U:t=n.first();break;case j:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",r(t))},_getVisibleItems:function(e){return e=e||this._itemElements(),e.filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),o=e.last(),a=i(e[n-1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),o=e.first(),a=i(e[n+1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_selectFocusedItem:function(e){this.selectItem(e)},_removeFocusedItem:function(e){var t=i(e);t.length&&(this._toggleFocusClass(!1,t),t.removeAttr("id"))},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(e){e&&e.length&&(e.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,e),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=i(),n=this;return this.itemElements().each(function(){var o=i(this);if(o.data(n._itemDataKey())===e)return t=o,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var o=this._findItemElementByItem(e);o.length&&(this.constructor.ItemClass.getInstance(o).setDataField(t,n)||this._refreshItem(o,e))},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(L);if(t&&t.length){var n=t[t.length-1],o=e.fullName.replace("."+n,""),a=this.option(o);return void this._itemOptionChanged(a,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this.option("items",[]),this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._removeFocusedItem(e.previousValue),this._setFocusedItem(i(e.value));break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&this._startIndexForAppendedItems===-1||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent(),this._renderFocusTarget()):this.option("items",e)},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){i(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return E},_itemContentClass:function(){return this._itemClass()+A},_selectedItemClass:function(){return V},_itemResponseWaitClass:function(){return F},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return O},_itemIndexKey:function(){return R},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(T),this._prepareContent()},_prepareContent:a.deferRenderer(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=v.addNamespace(S.name,this.NAME),n=v.addNamespace(w.down,this.NAME),a=this,r=new p(function(e){var t=e.event;a._itemPointerDownHandler(t)});o.off(this._itemContainer(),t,e),o.off(this._itemContainer(),n,e),o.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),o.on(this._itemContainer(),n,e,function(e){r.execute({element:i(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=i(e.target),n=t.closest(this._itemElements()),o=this._closestFocusable(t);n.length&&o&&u(o.get(0),this._focusTarget())!==-1&&this.option("focusedElement",r(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(b.focusable))return e;for(e=e.parent();e.length&&!s.isDocument(e.get(0));){if(e.is(b.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=v.addNamespace(k.name,this.NAME);o.off(e,n,t),o.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=v.addNamespace(I.name,this.NAME);o.off(e,n,t),o.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&h.each(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var o=this._renderItemFrame(e,t,n,i);this._setElementData(o,t,e),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,o);var a=this._getItemContent(o),s=this._renderItemContent({index:e,itemData:t,container:r(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return c(s).done(function(n){l._postprocessRenderItem({itemElement:o,itemContent:n,itemData:t,itemIndex:e}),l._executeItemRenderAction(e,t,r(o))}),o},_getItemContent:function(e){var t=e.find("."+B);return t.removeClass(B),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&o.on(t,S.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var o=i(this._createItemByTemplate(n,e));return o.hasClass($)?this._renderItemContentByNode(e,o):e.container},_renderItemContentByNode:function(e,t){return i(e.container).replaceWith(t),e.container=r(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[E+A,e.contentClass];i(e.container).addClass(t.join(" "))},_renderItemFrame:function(e,t,n,o){var a=i("<div>");return new this.constructor.ItemClass(a,this._itemOptions(),t||{}),o&&o.length?o.replaceWith(a):a.appendTo(n),a},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},fieldGetter:function(t){var n=e.option(t+"Expr"),i=m.compileGetter(n);return i}}},_postprocessRenderItem:a.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([E,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["designMode","disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty"),i=t&&t[n];return i||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer();
|
|
36
|
-
},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||i("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass(H,!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,d(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,d({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,d({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var o=this._closestItemElement(i(e)),a=d({},n);return t(d(n,this._extendActionArgs(o),a))},_extendActionArgs:function(e){return{itemElement:r(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return i(e).closest(this._itemSelector())},_getItemData:function(e){return i(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&h.each(e,function(e,o){n+=i(o).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new f),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(x);Y.ItemClass=y,e.exports=Y},function(e,t,n){var i=n(181),o=n(36),a=n(3).each,r=n(1).isFunction,s=n(7).Deferred,l=n(144),c=function e(t,n,c){c=c||[],n=n||{};var d=function(e,t){return{name:e,args:t}},u=function(e){function u(e){switch(e.name){case"sortBy":return _=[e.args],!0;case"thenBy":if(!_)throw o.errors.Error("E4004");return _.push(e.args),!0}return!1}function h(){var e=g[0],t=[];e&&"multiSort"===e.name&&(g.shift(),a(e.args[0],function(){t.push(d(t.length?"thenBy":"sortBy",this))})),g=t.concat(g)}var p,f,g,m,_,v=new s,w=function(e){var t=n.errorHandler;t&&t(e),o._errorHandler(e),v.reject(e)};try{p=n.adapter,r(p)||(p=i[p]),f=p(n),g=[].concat(c).concat(e);var x=f.optimize;for(x&&x(g);g.length;){if(m=g[0],!u(m)){if(_){g.unshift(d("multiSort",[_])),_=null;continue}if("enumerate"!==String(m.name)&&(!f[m.name]||f[m.name].apply(f,m.args)===!1))break}g.shift()}h(),f.exec(t).done(function(e,t){if(g.length){var i=l(e,{errorHandler:n.errorHandler});a(g,function(){i=i[this.name].apply(i,this.args)}),i.done(v.resolve).fail(v.reject)}else v.resolve(e,t)}).fail(w)}catch(e){w(e)}return v.promise()},h={};return a(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);h[i]=function(){return e(t,n,c.concat(d(i,arguments)))}}),a(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return u.call(this,d(e,arguments))}}),h};e.exports=c},function(e,t,n){var i=n(2),o=n(10),a=n(4),r=o.abstract,s=o.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:r,getItemDataByIndex:r,getKeysByItems:r,getItemsByKeys:r,itemsGetter:r,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?a.equalByValue(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:r,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isDOMNode(e))return i(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},deleteItemAtIndex:r,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:r,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isDOMNode:function(e){var t;try{t=i(e)}catch(e){return!1}return t&&t.length&&t.get(0).nodeType},_isItemIndex:r,_getNormalizedItemIndex:r,_normalizeItemIndex:r,_denormalizeItemIndex:r,_getItemByNormalizedIndex:r,_itemsFromSameParent:r});e.exports=s},function(e,t,n){var i=n(1),o=n(239),a=n(21),r=n(42),s=n(7).Deferred;e.exports=o.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new s,t=this,n=this.options.key(),o=i.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,o).done(function(n){var i=n.map(function(e){return t.options.keyOf(e)});e.resolve(i)}).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var o=this.options.filter();o?this._addSelectionFilter(n,o,!1):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var a=0;a<e.length;a++)n?this.removeSelectedItem(e[a]):this.addSelectedItem(e[a])}return this.onSelectionChanged(),(new s).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!r([e]).filter(t).toArray().length},_processSelectedItem:function(e){var t=this.options.key(),n=[t,"=",e];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!1,t,!0)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t,!0)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.Error("E1042")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var o=e[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&(this._findSubFilter(e,t)===e.length-1||0===this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&i.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&i.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,o=!0,a=e?["!",t]:t,r=e?"and":"or",s=i.options.selectionFilter||[];if(s=i._denormalizeFilter(s),s&&s.length){i._removeSameFilter(s,t,e);var l=i._removeSameFilter(s,t,!e);l&&("or"!==l&&e||"and"!==l&&!e)&&(o=!1,s=[]),o&&(s=i._addFilterOperator(s,r))}o&&s.push(a),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeSameFilter:function(e,t,n){t=n?["!",t]:t;var i=this._findSubFilter(e,t);if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),"undefined";if(i>=0)return i>0?e.splice(i-1,2)[0]:e.splice(i,2)[1]||"undefined";for(var o=0;o<e.length;o++){var a=Array.isArray(e[o])&&e[o].length>2&&this._removeSameFilter(e[o],t);if(a)return 1===e[o].length&&(e[o]=e[o][0]),a}},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;if(!t)return!0;if(!t.length)return!1;if(e&&e.length)return t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0}})},function(e,t,n){var i=n(4),o=n(1),a=i.getKeyHash,r=n(42),s=n(7),l=n(258).SelectionFilterCreator,c=s.when,d=s.Deferred,u=n(21),h=n(239);e.exports=h.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,o,a=this.options.keyOf;if(a){var r=t&&e.length>1&&!this.options.equalByReference;for(r&&(n={}),o=0;o<e.length;o++){var s=e[o],l=a(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}r&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new d,o=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var a=this.options.filter();if(n&&t&&!a)return i.resolve(this.getSelectedItems()),i;var s=new l(e,n),c=s.getCombinedFilter(o,a),u=[];t&&(u=c?r(this.options.selectedItems).filter(c).toArray():this.options.selectedItems.slice(0));var h=u.length?u:this.options.plainItems().filter(this.options.isSelectableItem).map(this.options.getItemData),p=s.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return h=h.filter(p),u.length||!n&&h.length===e.length?i.resolve(h):i=this._loadFilteredData(c,p),i},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var o=e[i],a=n(o);t.push(a)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=0;t<e.length;t++)this.isItemKeySelected(e[t])||u.log("W1002",e[t])},_loadSelectedItems:function(e,t,n){var i=this,o=new d;return c(i._lastLoadDeferred).always(function(){i._loadSelectedItemsCore(e,t,n).done(o.resolve).fail(o.reject)}),i._lastLoadDeferred=o,o},selectedItemKeys:function(e,t,n,i){var o=this,a=o._loadSelectedItems(e,n,i);return a.done(function(e){t?o._preserveSelectionUpdate(e,n):o._replaceSelectionUpdate(e),o.onSelectionChanged()}),a},addSelectedItem:function(e,t){var n=this._getKeyHash(e);this._indexOfSelectedItemKey(n)===-1&&(!o.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){var n;return n=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):o.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=a(n),o=this.options.keyHashIndices[i];if(o)for(var r=0;r<o.length;r++)o[r]>e&&o[r]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,a=this._indexOfSelectedItemKey(n,t);if(a<0)return a;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[a]),i)return a;if(this.options.selectedItemKeys.splice(a,1),this.options.selectedItems.splice(a,1),o.isObject(n)||!this.options.keyHashIndices)return a;var r=this.options.keyHashIndices[n];return r?(r.shift(),r.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(a),a):a},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(e){return this.options.equalByReference?e:a(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=this.options.keyOf(e);return this.isItemKeySelected(t)},isItemKeySelected:function(e){var t=this._getKeyHash(e),n=this._indexOfSelectedItemKey(t);return n!==-1},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(e,t,n){var i=n(107),o=n(5),a=n(180);i.add(function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.directive(t,["$parse",function(n){return function(i,a,r){var s,l=r[t].trim(),c={};"{"===l.charAt(0)?(c=i.$eval(l),s=n(c.execute)):s=n(r[t]),o.on(a,e,c,function(e){i.$apply(function(){s(i,{$event:e})})})}}])})},function(e,t,n){var i=n(19),o=n(180);o.service("dxDigestCallbacks",["$rootScope",function(e){var t=i(),n=i(),o=i(),a=!1;return e.$watch(function(){a||(a=!0,t.fire(),e.$$postDigest(function(){a=!1,n.fire(),o.fire()}))}),{begin:{add:function(e){a&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:o.add.bind(o),addPrioritized:n.add.bind(n),remove:o.remove.bind(o)}}}])},function(e,t,n){var i=n(76);i.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){n(113);var i=n(64),o=n(15),a=n(81);if(n(64),i&&i.formatMessage){var r="en",s=i.loadMessages;i.loadMessages=function(e){o.load(e)};var l={ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),s(e)},getMessagesByLocales:function(){return i.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||a.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||n===r||(i=this.getFormatter(e,r)),i},_formatterByGlobalize:function(e,t){var n,o=t&&t!==a.locale()?new i(t):i;return this._messageLoaded(e,t)&&(n=o.messageFormatter(e)),n},_messageLoaded:function(e,t){var n=t?new i(t).cldr:i.locale(),o=n.get(["globalize-messages/{bundle}",e]);return!!o},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};o.inject(l)}},function(e,t,n){n(113),n(182),n(64);var i={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},o={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y","long":"MMMM d, y",medium:"MMM d, y","short":"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz","long":"h:mm:ss a z",medium:"h:mm:ss a","short":"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}","long":"{1} 'at' {0}",medium:"{1}, {0}","short":"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} \u2013 {1}",d:{d:"d \u2013 d"},h:{a:"h a \u2013 h a",h:"h \u2013 h a"},H:{H:"HH \u2013 HH"},hm:{a:"h:mm a \u2013 h:mm a",h:"h:mm \u2013 h:mm a",m:"h:mm \u2013 h:mm a"},Hm:{H:"HH:mm \u2013 HH:mm",m:"HH:mm \u2013 HH:mm"},hmv:{a:"h:mm a \u2013 h:mm a v",h:"h:mm \u2013 h:mm a v",m:"h:mm \u2013 h:mm a v"},Hmv:{H:"HH:mm \u2013 HH:mm v",m:"HH:mm \u2013 HH:mm v"},hv:{a:"h a \u2013 h a v",h:"h \u2013 h a v"},Hv:{H:"HH \u2013 HH v"},M:{M:"M \u2013 M"},Md:{d:"M/d \u2013 M/d",M:"M/d \u2013 M/d"},MEd:{d:"E, M/d \u2013 E, M/d",M:"E, M/d \u2013 E, M/d"},MMM:{M:"MMM \u2013 MMM"},MMMd:{d:"MMM d \u2013 d",M:"MMM d \u2013 MMM d"},MMMEd:{d:"E, MMM d \u2013 E, MMM d",M:"E, MMM d \u2013 E, MMM d"},y:{y:"y \u2013 y"},yM:{M:"M/y \u2013 M/y",y:"M/y \u2013 M/y"},yMd:{d:"M/d/y \u2013 M/d/y",M:"M/d/y \u2013 M/d/y",y:"M/d/y \u2013 M/d/y"},yMEd:{d:"E, M/d/y \u2013 E, M/d/y",M:"E, M/d/y \u2013 E, M/d/y",y:"E, M/d/y \u2013 E, M/d/y"},yMMM:{M:"MMM \u2013 MMM y",y:"MMM y \u2013 MMM y"},yMMMd:{d:"MMM d \u2013 d, y",M:"MMM d \u2013 MMM d, y",y:"MMM d, y \u2013 MMM d, y"},yMMMEd:{d:"E, MMM d \u2013 E, MMM d, y",M:"E, MMM d \u2013 E, MMM d, y",y:"E, MMM d, y \u2013 E, MMM d, y"},yMMMM:{M:"MMMM \u2013 MMMM y",y:"MMMM y \u2013 MMMM y"}}}}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},r=["skeleton","date","time","datetime","raw"],s=n(64),l=n(33),c=n(1).isObject,d=n(11).inArray,u=n(3);if(s&&s.formatDate){"en"===s.locale().locale&&(s.load(a,i,o),s.locale("en"));var h={},p={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},mediumdatemediumtime:{path:"dateTimeFormats/medium",parts:["shorttime","monthandday"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},f={_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=p[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var o=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&u.each(i.parts,function(e,n){o=o.replace("{"+e+"}",t._getPatternByFormat(n))}),o}},_getFormatStringByPath:function(e){return s.locale().main("dates/calendars/gregorian/"+e)},getPeriodNames:function(){var e=s.locale().main("dates/calendars/gregorian/dayPeriods/stand-alone/wide");return[e.am,e.pm]},getMonthNames:function(e,t){var n=s.locale().main("dates/calendars/gregorian/months/"+(t||"stand-alone")+"/"+(e||"wide"));return u.map(n,function(e){return e})},getDayNames:function(e){var t=s.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return u.map(t,function(e){return e})},getTimeSeparator:function(){return s.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},format:function(e,t){if(e){if(!t)return e;var n,i;if("function"==typeof t)return t(e);if(t.formatter)return t.formatter(e);if(t=t.type||t,"string"==typeof t)i=s.locale().locale+":"+t,n=h[i],n||(t={raw:this._getPatternByFormat(t)||t},n=h[i]=s.dateFormatter(t));else{if(!this._isAcceptableFormat(t))return;n=s.dateFormatter(t)}return n(e)}},parse:function(e,t){if(e){if(!t||"function"==typeof t||c(t)&&!this._isAcceptableFormat(t)){if(t){var n=this.callBase(e,t);if(n)return n}return s.parseDate(e)}return t.parser?t.parser(e):("string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t}),s.parseDate(e,t))}},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<r.length;t++)if(e.hasOwnProperty(r[t]))return!0},firstDayOfWeekIndex:function(){var e=s.locale().supplemental.weekData.firstDay();return d(e,this._getDayKeys())},_getDayKeys:function(){var e=s.locale().main("dates/calendars/gregorian/days/format/short");return u.map(e,function(e,t){return t})}};l.inject(f)}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(113),n(182),n(137),n(64);var o={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}},r=n(64),s=n(30),l=n(49);if(r&&r.formatCurrency){"en"===r.locale().locale&&(r.load(o,a),r.locale("en"));var c={},d=function(e,t){var n,o;return o="object"===("undefined"==typeof t?"undefined":i(t))?r.locale().locale+":"+e+":"+JSON.stringify(t):r.locale().locale+":"+e+":"+t,n=c[o],n||(n=c[o]=r.currencyFormatter(e,t)),n},u={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||s().defaultCurrency;return d(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=s().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return d(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=s().defaultCurrency),r.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t,n,i,o,a=this.getCurrencySymbol(e).symbol,s=r.cldr.main("numbers/currencyFormats-numberSystem-latn");if(s.accounting){for(o={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':""","\\\xa4":a},n=s.accounting.split(";"),t=0;t<n.length;t++)for(i in o)o.hasOwnProperty(i)&&(n[t]=n[t].replace(new RegExp(i,"g"),o[i]));return 2===n.length?n[0]+"_);"+n[1]:n[0]}}};l.inject(u)}},function(e,t,n){var i=n(31),o=n(3),a=n(17),r=n(9),s=n(108),l=n(84),c="dx",d="transform",u="translate",h="zoom",p="pinch",f="rotate",g="start",m="",_="end",v=[],w=function(e,t){v.push({name:e,args:t})};w(d,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),w(u,{translation:!0,deltaTranslation:!0}),w(h,{scale:!0,deltaScale:!0}),w(p,{scale:!0,deltaScale:!0}),w(f,{rotation:!0,deltaRotation:!0});var x=function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}},y=function(e){var t=e.pointers;return x(t[0],t[1])},b=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},C=function(e,t){return b(e)/b(t)},k=function(e,t){var n=e.x*t.x+e.y*t.y,o=b(e)*b(t);if(0===o)return 0;var a=i.sign(e.x*t.y-t.x*e.y),r=Math.acos(i.fitIntoRange(n/o,-1,1));return a*r},S=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},I=s.inherit({configure:function(e,t){t.indexOf(h)>-1&&a.log("W0005",t,"15.1","Use '"+t.replace(h,p)+"' event instead"),this.callBase(e)},validatePointers:function(e){return r.hasTouches(e)>1},start:function(e){this._accept(e);var t=y(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(g,e)},move:function(e){var t=y(e),n=this._getEventArgs(t);this._fireEventAliases(m,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(_,e,t)},_getEventArgs:function(e){return{scale:C(e,this._startVector),deltaScale:C(e,this._prevVector),rotation:k(e,this._startVector),deltaRotation:k(e,this._prevVector),translation:S(e,this._startVector),deltaTranslation:S(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},o.each(v,function(i,a){var r={};o.each(a.args,function(e){e in n&&(r[e]=n[e])}),this._fireEvent(c+a.name+e,t,r)}.bind(this))}}),D=v.reduce(function(e,t){return[g,m,_].forEach(function(n){e.push(c+t.name+n)}),e},[]);l({emitter:I,events:D}),o.each(D,function(e,n){t[n.substring(c.length)]=n})},function(e,t,n){e.exports=n(52).DataSource},function(e,t,n){var i=n(5),o=n(12),a=n(6),r=a.getWindow(),s=n(10),l=s.abstract,c=n(36).errors,d=n(79),u=s.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,a=Math.max(100,t.flushInterval||1e4);if(!n){var s=this.save.bind(this);setInterval(s,a),i.on(r,"beforeunload",s),r.cordova&&o.listen(o.getDocument(),"pause",s,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:l,_saveImpl:l}),h=u.inherit({ctor:function(e,t){var n=t.name;if(!n)throw c.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=r.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?r.localStorage.setItem(this._key,JSON.stringify(e)):r.localStorage.removeItem(this._key)}}),p={dom:h},f=d.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new p[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");e.exports=f},function(e,t,n){function i(e){return/^(localhost$|127\.)/i.test(e)}var o,a,r=n(17),s=n(6).getWindow(),l=n(242),c=function(e){this.config=e,o="ms-appx:"===s.location.protocol,a=i(s.location.hostname)};c.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw r.Error("E0006");return l.isProxyUsed()?l.formatProxyUrl(t.local):t.production&&(o&&!Debug.debuggerEnabled||!o&&!a)?t.production:t.local}},e.exports=c},function(e,t,n){n(241),DevExpress.data.ODataStore=n(243),DevExpress.data.ODataContext=n(364),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(97).keyConverters,DevExpress.data.EdmLiteral=n(97).EdmLiteral;var i=n(97);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(145).odata},function(e,t,n){var i=n(10),o=n(0).extend,a=n(1),r=n(3).each,s=n(36),l=n(243),c=n(244),d=n(7),u=d.when,h=d.Deferred;n(145);var p=i.inherit({ctor:function(e){var t=this;t._extractServiceOptions(e),t._errorHandler=e.errorHandler,r(e.entities||[],function(n,i){t[n]=new l(o({},e,{url:t._url+"/"+encodeURIComponent(i.name||n)},i))})},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e,t,n){t=t||{},n=(n||"POST").toLowerCase();var i,o=new h,r=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(r=c.formatFunctionInvocationUrl(r,c.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(i=t,t=null)),u(this._sendRequest(r,n,c.escapeServiceOperationParams(t,this.version()),i)).done(function(t){a.isPlainObject(t)&&e in t&&(t=t[e]),o.resolve(t)}).fail(this._errorHandler).fail(s._errorHandler).fail(o.reject),o.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw s.errors.Error("E4015",e);return a.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(c.SharedMethods);e.exports=p},function(e,t,n){var i=n(202);n(240);var o=i.ui=n(451);o.themes=n(20),o.setTemplateEngine=n(452),o.dialog=n(259),o.notify=n(454),o.dxActionSheet=n(207),o.dxAutocomplete=n(455),o.dxBox=n(185),o.dxButton=n(38),o.dxCalendar=n(245),o.dxCheckBox=n(127),o.dxColorBox=n(483),o.dxDateBox=n(193),o.dxDeferRendering=n(499),o.dxDropDownBox=n(500),o.dxDropDownMenu=n(160),
|
|
37
|
-
o.dxFileUploader=n(501),o.dxForm=n(205),o.dxGallery=n(506),o.dxList=n(125),o.dxLoadIndicator=n(87),o.dxLoadPanel=n(192),o.dxLookup=n(507),o.dxMap=n(508),o.dxMultiView=n(279),o.dxNavBar=n(512),o.dxNumberBox=n(118),o.dxOverlay=n(70),o.dxPopover=n(130),o.dxPopup=n(60),o.dxProgressBar=n(275),o.dxRadioGroup=n(307),o.dxRangeSlider=n(515),o.dxResizable=n(204),o.dxResponsiveBox=n(277),o.dxScrollView=n(189),o.dxSelectBox=n(128),o.dxSlider=n(284),o.dxSwitch=n(308),o.dxTabPanel=n(278),o.dxTabs=n(191),o.dxTagBox=n(309),o.dxTextArea=n(310),o.dxTextBox=n(98),o.dxTileView=n(517),o.dxToast=n(266),o.dxToolbar=n(311),o.dxTooltip=n(194),o.dxTrackBar=n(210),i.validationEngine=n(89),o.dxValidationSummary=n(211),o.dxValidationGroup=n(281),o.dxValidator=n(190),o.CollectionWidget=n(44),o.dxDropDownEditor=n(147),e.exports=o},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=n(3).each,s=n(0).extend,l=n(69),c=n(367),d=n(529),u=n(14),h=n(20),p="dx-menu",f=p+"-no-icons",g="dx-menu-base",m=p+"-item",_=m+"-content",v=m+"-selected",w=m+"-wrapper",x=p+"-items-container",y=m+"-expanded",b=p+"-separator",C=p+"-last-group-item",k=m+"-has-text",S=m+"-has-icon",I=m+"-has-submenu",D=m+"-popout",T=D+"-container",E=m+"-text",A="single",B={show:50,hide:300},O=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return h.isAndroid5()},options:{useInkRipple:!0}}])},_activeStateUnit:"."+m,_itemDataKey:function(){return"dxMenuItemDataKey"},_itemClass:function(){return m},_setAriaSelected:o.noop,_selectedItemClass:function(){return v},_widgetClass:function(){return g},_focusTarget:function(){return this._itemContainer()},_clean:function(){this.option("focusedElement",null),this.callBase()},_supportedKeys:function(){var e=function(){var e=i(this.option("focusedElement"));e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])};return s(this.callBase(),{space:e,pageUp:o.noop,pageDown:o.noop})},_isSelectionEnabled:function(){return this.option("selectionMode")===A},_init:function(){this.callBase(),this._renderSelectedItem(),this._initActions()},_getTextContainer:function(e){var t=e.text,n=i("<span>").addClass(E),o=a.isPlainObject(e)?t:String(e);return t&&n.text(o)},_getPopoutContainer:function(e){var t,n=e.items;if(n&&n.length){var o=i("<div>").addClass(D);t=i("<span>").addClass(T).append(o)}return t},_getDataAdapterOptions:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}},_selectByItem:function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}},_renderSelectedItem:function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(!t)return void this._selectByItem(n);var i=this._dataAdapter.getNodeByKey(t);if(i.selectable!==!1)return n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item)},_initActions:o.noop,_initMarkup:function(){this.callBase(),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=l.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_getShowSubmenuMode:function(){var e="onClick",t=this.option("showSubmenuMode");return t=a.isObject(t)?t.name:t,this._isDesktopDevice()?t:e},_initSelectedItems:o.noop,_isDesktopDevice:function(){return"desktop"===u.real().deviceType},_initEditStrategy:function(){var e=d;this._editStrategy=new e(this)},_addCustomCssClass:function(e){e.addClass(this.option("cssClass"))},_itemWrapperSelector:function(){return"."+w},_hoverStartHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e);n&&!t._isItemDisabled(n)&&(e.stopPropagation(),"onHover"===t._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(t._showSubmenu.bind(t,n),t._getSubmenuDelay("show"))))},_getAvailableItems:function(e){return this.callBase(e).filter(function(){return"hidden"!==i(this).css("visibility")})},_isItemDisabled:function(e){return this._disabledGetter(e.data(this._itemDataKey()))},_showSubmenu:function(e){this._addExpandedClass(e)},_addExpandedClass:function(e){i(e).addClass(y)},_getSubmenuDelay:function(e){var t=this.option("showSubmenuMode").delay;return a.isDefined(t)?a.isObject(t)?t[e]:t:B[e]},_getItemElementByEventArgs:function(e){var t=i(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if(t=t.parent(),t.hasClass("dx-submenu"))return null;return t},_hoverEndHandler:function(){clearTimeout(this._showSubmenusTimeout)},_hasSubmenu:function(e){return e.internalFields.childrenKeys.length},_renderContentImpl:function(){this._renderItems(this._dataAdapter.getRootNodes())},_renderItems:function(e,t){var n,i=this;if(e.length){this.hasIcons=!1,n=this._renderContainer(this.$element(),t);var o=-1,a=-1;r(e,function(e,t){var r=t.visible!==!1;r&&o<0&&(o=e);var s=o<e&&(t.beginGroup||e===a);s&&(a=r?e:e+1),e===a&&o<e&&i._renderSeparator(n),i._renderItem(e,t,n)}),this.hasIcons||n.addClass(f)}},_renderContainer:function(e){return i("<ul>").appendTo(e).addClass(x)},_createDOMElement:function(e){var t=i("<li>").appendTo(e).addClass(w);return t},_renderItem:function(e,t,n,i){var o,a=this.option("items");if(t.internalFields.item.visible!==!1){var r=i||this._createDOMElement(n);a[e+1]&&a[e+1].beginGroup&&r.addClass(C),o=this.callBase(e,t.internalFields.item,r),t.internalFields.item===this.option("selectedItem")&&o.addClass(v),o.attr("tabIndex",-1),this._hasSubmenu(t)&&this.setAria("haspopup","true",o)}},_renderItemFrame:function(e,t,n){var i=n.children("."+m);return i.length?i:this.callBase.apply(this,arguments)},_refreshItem:function(e,t){var n=this._dataAdapter.getNodeByItem(t),i=e.data(this._itemIndexKey()),o=e.closest("ul"),a=e.closest("li");this._renderItem(i,n,o,a)},_addContentClasses:function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass(k,n),t.toggleClass(S,i),this.hasIcons||(this.hasIcons=i),t.toggleClass(I,o)},_getItemContent:function(e){var t=this.callBase(e);return t.length||(t=e.children("."+_)),t},_postprocessRenderItem:function(e){var t,n=i(e.itemElement),o=this._dataAdapter.getSelectedNodesKeys();return o.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)?(t=this._dataAdapter.getNodeByItem(e.itemData),void(t.internalFields.key===o[0]?(n.addClass(this._selectedItemClass()),this._setAriaSelected(n,"true")):this._setAriaSelected(n,"false"))):void this._setAriaSelected(n,"false")},_isItemSelectable:function(e){return e.selectable!==!1},_renderSeparator:function(e){i("<li>").appendTo(e).addClass(b)},_itemClickHandler:function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}},_updateSubmenuVisibilityOnClick:function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)},_updateSelectedItemOnClick:function(e){var t,n=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(n.itemData)){t=this._dataAdapter.getSelectedNodesKeys();var i=t.length&&this._dataAdapter.getNodeByKey(t[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===n.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionSilent("selectedItem",null)):this.selectItem(n.itemData)}},_isItemSelectionAllowed:function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)},_isContainerEmpty:function(){return this._itemContainer().is(":empty")},_syncSelectionOptions:o.noop,_optionChanged:function(e){if(this._cancelOptionChange!==e.name)switch(e.name){case"showSubmenuMode":break;case"selectedItem":var t=e.value,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(n.selectable===!1)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_toggleItemSelection:function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&i(n).toggleClass(v),this._dataAdapter.toggleSelection(e.internalFields.key,t)},_getElementByItem:function(e){var t,n=this;return r(this._itemElements(),function(o,a){return i(a).data(n._itemDataKey())!==e||(t=a,!1)}),t},_updateSelectedItems:function(e,t){(e||t)&&(this._updateSelection(t,e),this._fireSelectionChangeEvent(t,e))},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})},selectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0],o=this.option("selectedItem");n.internalFields.key!==i&&(i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems(o,t),this._setOptionSilent("selectedItem",t))},unselectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionSilent("selectedItem",null))}});e.exports=O},function(e,t,n){var i=n(2),o=n(22),a=n(0).extend,r=n(3).each,s=n(14),l=n(106),c=n(527),d=n(44),u=n(67),h=n(1).isFunction,p=n(4).noop,f="dx-state-disabled",g=d.inherit({_getDefaultOptions:function(){return a(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new c(a({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:p,_initDynamicTemplates:function(){var e=this;this._defaultTemplates.item=new u(function(t,n){t.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),e._addContentClasses(n,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})},_getIconContainer:function(e){return e.icon?l.getImageContainer(e.icon):void 0},_getTextContainer:function(e){return i("<span>").text(e.text)},_getPopoutContainer:p,_addContentClasses:p,_initAccessors:function(){var e=this;r(this._getAccessors(),function(t,n){e._compileAccessor(n)})},_getAccessors:function(){return["key","display","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return r(e.internalFields.childrenKeys,function(e,i){var o=t._dataAdapter.getNodeByKey(i);n.push(o)}),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?h(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=o.compileGetter(i),void(this[n]=o.compileSetter(i))):(this[t]=p,void(this[n]=p))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return r(this._getAccessors(),function(n,i){var o="_"+i+"Getter",a="_"+i+"Setter",r="parentId"===i?"parentKey":i;t.getters[r]=e[o],t.setters[r]=e[a]}),t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:p,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(f,!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});e.exports=g},function(e,t,n){var i=n(2),o=n(5),a=n(197),r=n(1).isDefined,s=n(3).each,l=n(15),c=n(0).extend,d="text-content",u="headers",h="nowrap",p="dx-header-row",f="dx-column-lines",g="context-menu-sort-asc",m="context-menu-sort-desc",_="context-menu-sort-none",v="dx-cell-focus-disabled",w="dx-visibility-hidden",x="dx-text-content-alignment-",y="dx-sort-indicator",b="dx-header-filter-indicator",C="dx-header-multi-row";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:a.ColumnsView.inherit(function(){var e=function(e,n,o){var a,r=i("<div>").addClass(e.addWidgetPrefix(d));return e.setAria("role","presentation",r),t(e,n,o.column,r),a=e.option("showColumnLines"),r[a||"right"===o.column.alignment?"appendTo":"prependTo"](n)},t=function(e,t,n,i){var o=e._getIndicatorElements(t,!0),a=e._getIndicatorElements(t),r=o&&o.length,s=e._getColumnAlignment(n.alignment);i=i||t.children("."+e.addWidgetPrefix(d)),i.toggleClass(x+s,r>0).toggleClass(x+("left"===s?"right":"left"),r>0&&"center"===n.alignment).toggleClass(y,!!a.filter("."+e._getIndicatorClassName("sort")).length).toggleClass(b,!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return o.on(e,"mousedown selectstart",this.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()})),e},_getDefaultTemplate:function(t){var n,i=this;return n=t.command?function(e,t){var n=t.column;e.html(" "),e.addClass(n.cssClass)}:function(n,o){var a=e(i,n,o);a.text(t.caption)}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i,o=this,a=n.column,r=o.callBase(t);return i="header"===n.rowType&&r&&a.headerCellTemplate&&!a.command?{render:function(t){var n=e(o,t.container,t.model);r.render(c({},t,{container:n}))}}:r},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&n.addClass(v),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.id),this.setAria("label",l.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass(f,this.option("showColumnLines"));return"header"===e.rowType&&t.addClass(p),t},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(u)).toggleClass(e.addWidgetPrefix(h),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(C),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e,t=[],n=this.getRowCount();if(this.option("showColumnHeaders"))for(e=0;e<n;e++)t.push({rowType:"header",rowIndex:e});return t},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;return t.grouping?void(this._isGroupingChanged=!0):(this.callBase(e),void((n.width||n.visible)&&this.resizeCompleted.fire()))},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+w).remove(),t=this._getIndicatorContainer(e),t.clone().addClass(w).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(d))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(e),t(this,e,n),o},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(."+w+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this._getTableElement(),t=e&&e.find("."+p);return t&&t.toArray().reduce(function(e,t){return e+i(t).height()},0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,o,a,l,c=this,d=c._columnsController,u=c.getRowCount();if(c.option("showColumnHeaders")){if(u>1&&(!r(e)||r(t)))return o=[],l=r(t)?d.getChildrenByBandColumn(t,!0):d.getVisibleColumns(),s(l,function(t,i){n=r(e)?e:d.getRowIndex(i.index),a=c._getCellElement(n,d.getVisibleIndex(i.index,n)),a&&o.push(a.get(0))}),i(o);if(!e||e<u)return c.getCellElements(e||0)}},getVisibleColumnIndex:function(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,o,a=e&&this._columnsController.getRowIndex(e.index),r=this.getColumns(0===a?0:null),s=0,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<r.length;i++)l(r[i])&&s++;if(s<=1)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++)if(o=n[i],o&&o.allowDragging(e,t))return!0;return!1},getBoundingRect:function(){var e,t=this,n=t.getColumnElements();return n&&n.length?(e=t._getTableElement().offset(),{top:e.top}):null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){var t=this;switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":t._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t,n,i=this,o=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)&&(n=i.option("sorting"),n&&"none"!==n.mode&&o&&o.allowSorting))return t=function(e){setTimeout(function(){i._columnsController.changeSortOrder(o.index,e.itemData.value)})},[{text:n.ascendingText,value:"asc",disabled:"asc"===o.sortOrder,icon:g,onItemClick:t},{text:n.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:m,onItemClick:t},{text:n.clearText,value:"none",disabled:!o.sortOrder,icon:_,onItemClick:t}]},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,o,a=this,l=a.getRowCount(),c=a._columnsController.getColumns(),d=c&&c[e],u=d&&d.isBand&&d.index,h=function(e,n){n.ownerBand===u&&(o.eq(e).css({opacity:t}),n.isBand&&a.setRowsOpacity(n.index,t,i+1))};if(r(u))for(n=n||0,i=n;i<l;i++)o=a.getCellElements(i),s(a.getColumns(i),h)}}}())}}},function(e,t,n){var i=n(2),o=n(0).extend,a=n(103).getDefaultAlignment,r=n(4),s="dx-column-indicators",l="dx-group-panel-item";e.exports={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),a=t._getColumnAlignment(e.column.alignment,n),r=o(!0,{columnAlignment:a},e),s=r.rootElement.hasClass(l),c=t._createIndicatorContainer(r,s),d=i("<span>").addClass(t._getIndicatorClassName(e.name)),u=function(){return n?"left"===a?"right":"left":a};return r.container=c,r.indicator=d,t._renderIndicator(r),c[!s&&e.showColumnLines||"left"!==u()?"prependTo":"appendTo"](e.rootElement),d},_getIndicatorClassName:r.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:a(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),o="left"===e.columnAlignment?"right":"left";return n.length||(n=i("<div>").addClass(s)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?o:null)},_getIndicatorContainer:function(e){return e&&e.find("."+s)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n,i,o=this,a=o.getColumns(),r=o.getColumnElements();if(r&&r.length)for(i=0;i<a.length;i++)n=r.eq(i),o._updateIndicator(n,a[i],e),t=n.parent().data("options"),t&&t.cells&&(t.cells[n.index()].column=a[i])},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}}},function(e,t,n){var i=n(2),o=n(19),a=n(71).isWrapped,r=n(22),s=n(4).grep,l=n(1),c=n(3),d=n(103).getDefaultAlignment,u=n(0).extend,h=n(11).inArray,p=n(30),f=l.isDefined,g=n(54),m=n(21),_=n(46),v=n(45),w=v.normalizeSortingInfo,x=v.equalSortParameters,y=n(11).normalizeIndexes,b=n(37),C=n(65),k=n(49),S=n(33),I=n(15),D=n(7),T=D.when,E=D.Deferred,A=n(91),B=n(52),O=B.normalizeDataSourceOptions,R=n(196),M=["filterValues","filterType","fixed","fixedPosition"],P=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(M),V={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},F="dx-command-expand",H=/columns\[(\d+)\]\.?/gi,$=1;e.exports={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:I.format("dxDataGrid-trueText"),falseText:I.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:_.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},_="group",I="columnChooser",D=function(e){e.filterOperations=e.defaultFilterOperations},L=function(t,n,i,o){var a,r,s={};if(n){l.isString(n)&&(n={dataField:n});var c=void 0;return n.command?(r=t._commandColumns.some(function(e){return e.command===n.command}),r||(s.visible=!0),c=u(!0,s,n)):(s=t.getCommonSettings(),i&&i.name&&i.dataField&&(n=u({},n,{dataField:i.dataField})),a=t._createCalculatedColumnOptions(n,o),c=u(!0,{id:"dx-col-"+$++},e,s,a,n,{selector:null})),n.filterOperations===n.defaultFilterOperations&&D(c),c}},z=function e(t,n,i){var o=[];return n&&c.each(n,function(n,a){var r=t._columnsUserState&&re(a,t._columnsUserState[n])&&t._columnsUserState[n],s=L(t,a,r,i);s&&(i&&(s.ownerBand=i),o.push(s),s.isBand&&(o=o.concat(e(t,s.columns,s)),delete s.columns))}),o},N=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),e=i.index,i=t[e];return n},W=function e(t,n,i){var o,a=[],r=n[t];if(r)for(var s=0;s<r.length;s++)o=r[s],f(o.groupIndex)&&!o.showWhenGrouped||(a.push(o),i&&o.isBand&&(a=a.concat(e(o.index,n,i))));return a},q=function(e,t){for(var n,i=function(e){var t=n?n.index:void 0;return e.ownerBand===t},o=e._columns.filter(i),a=0;a<t.length;a++)n=o[t[a]],n&&(o=e._columns.filter(i));return n},G=function(e,t){for(var n=[],i=e.getBandColumnsCache(),o=function(e){return e.ownerBand===t.ownerBand},a=e._columns.filter(o);a.length&&a.indexOf(t)!==-1;)n.unshift("columns["+a.indexOf(t)+"]"),t=i.columnParentByIndex[t.index],a=t?e._columns.filter(o):[];return n.join(".")},K=function e(t,n){var i=0,o=t.getChildrenByBandColumn(n,!0);return c.each(o,function(n,o){o.isBand?(o.colspan=o.colspan||e(t,o.index),i+=o.colspan||1):i+=1}),i},j=function(e,t,n){var i,o,a,r=e.getRowCount();for(i=0;i<t.length;i++)o=t[i],(o.visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||K(e,o.index)),o.isBand&&o.colspan||(a=r-(o.command||f(o.groupIndex)?0:N(o.index,n.columnParentByIndex).length),a>1&&(o.rowspan=a)))},U=function(e){var t=l.type(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},Y=function(e,t){switch(e){case"date":case"datetime":return C.getDateSerializationFormat(t);case"number":if(l.isString(t))return"string";if(l.isNumeric(t))return null}},X=function(e,t){e.deserializeValue||(v.isDateType(t)&&(e.deserializeValue=function(e){return C.deserializeDate(e)},e.serializeValue=function(e){return l.isString(e)?e:C.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:f(e)&&"string"===this.serializationFormat?e.toString():e}))},Z=function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return d(t)}},J=function(e){if("boolean"===e)return function(e){return e.value===!0?this.trueText||"true":e.value===!1?this.falseText||"false":e.valueText||""}},Q=function(e,t){var n,i,o=e._getFirstItems(t),r={},s=[];for(i=0;i<o.length;i++)if(o[i])for(n in o[i])l.isFunction(o[i][n])&&!a(o[i][n])||(r[n]=!0);for(n in r)if(0!==n.indexOf("__")){var c=L(e,n);s.push(c)}return s},ee=function(e){c.each(e._columns,function(e,t){t.index=e}),c.each(e._columns,function(e,t){l.isObject(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),c.each(e._commandColumns,function(e,t){t.index=-(e+1)})},te=function(e,t){y(e._columns,"groupIndex",t,function(e){var t=e.grouped;return delete e.grouped,t})},ne=function(e,t){c.each(e._columns,function(e,t){f(t.sortIndex)&&!me(t.sortOrder)&&delete t.sortIndex}),y(e._columns,"sortIndex",t,function(e){return!f(e.groupIndex)&&me(e.sortOrder)})},ie=function(e,t){var n,i,o,a,r,s={},l=[],c=e.getBandColumnsCache(),d=e._columns.filter(function(e){return!e.command});for(n=0;n<d.length;n++)o=d[n],r=N(n,c.columnParentByIndex),r.length?(a=r[r.length-1].index,s[a]=s[a]||[],s[a].push(o)):l.push(o);for(i in s)y(s[i],"visibleIndex",t);y(l,"visibleIndex",t)},oe=function(e,t,n){var i,o=l.isObject(t)?t.rowIndex:null,a=n===_?e.getGroupColumns():n===I?e.getChooserColumns():e.getVisibleColumns(o);return t=l.isObject(t)?t.columnIndex:t,i=a[t],i&&f(i.index)?i.index:-1},ae=function(e,t,n){var i,o=e.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);return n},re=function(e,t){return e&&t&&t.name===e.name&&(t.dataField===e.dataField||e.name)},se=function(e){function t(e,t){var n;if(t)for(var i=0;i<P.length;i++)n=P[i],h(n,l)>=0||("dataType"===n?e[n]=e[n]||t[n]:h(n,M)>=0?n in t&&(e[n]=t[n]):("selectedFilterOperation"===n&&t[n]&&(e.defaultSelectedFilterOperation=e[n]||null),e[n]=t[n]))}function n(e,t){for(var n=t.name||t.dataField,i=d[n]||0,o=0;o<e.length;o++)if(re(t,e[o])){if(!i)return d[n]=d[n]||0,d[n]++,o;i--}return-1}var i,o,a,r,s=e._columnsUserState,l=e._ignoreColumnOptionNames||[],c=e._columns,d={},u=[],p=!0,g=[];if(s){for(r=0;r<c.length;r++)a=n(s,c[r]),p=p&&a>=0,g.push(a);for(r=0;r<c.length;r++)i=c[r],a=g[r],(e._hasUserState||p)&&t(i,s[a]),a>=0&&f(s[a].initialIndex)?u[a]=i:u.push(i);for(r=0;r<s.length;r++)o=s[r],o.added&&n(c,o)<0&&(i=L(e,o.added),t(i,o),u.push(i),o.added.columns&&(u=z(e,u)));de(e,u)}},le=function(e,t){ee(e),te(e,t),ne(e,t),ie(e,t)},ce=function(e){e.resetColumnsCache()},de=function(e,t){e._columns=t,ce(e),e.updateColumnDataTypes()},ue=function(e,t,n,i){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=n||"all",n=n.split(".")[0];var a=o.changeTypes;t&&!a[t]&&(a[t]=!0,a.length++);var r=o.optionNames;n&&!r[n]&&(r[n]=!0,r.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,e._columnChanges=o,ce(e)},he=function(e){var t=e.option("onColumnsChanging"),n=e._columnChanges;e.isInitialized()&&!e._updateLockCount&&n&&(t&&(e._updateLockCount++,t(u({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,n.optionNames&&(n.optionNames.dataField||n.optionNames.lookup||n.optionNames.dataType)?e.reinit():e.columnsChanged.fire(n))},pe=function(e,t,n){var i=n>=0;t>=0?i||(e.lastSortOrder=e.sortOrder):e.sortOrder=e.lastSortOrder},fe=function(e,t){var n=t.value,i=t.optionName,o=t.prevValue,a=t.fullOptionName;V[i]||(e._skipProcessingColumnsChange=!0,e.component._notifyOptionChanged(a+"."+i,n,o),e._skipProcessingColumnsChange=!1)},ge=function(e,t,n,i,o){var a,s,c,d,u,p,g=r.compileGetter(n),m=t.index;return 3===arguments.length?g(t,{functionsAsIs:!0}):(a=g(t,{functionsAsIs:!0}),void(a!==i&&("groupIndex"===n||"calculateGroupValue"===n?(d="grouping",pe(t,i,a)):d="sortIndex"===n||"sortOrder"===n||"calculateSortValue"===n?"sorting":"columns",s=r.compileSetter(n),s(t,i,{functionsAsIs:!0}),u=G(e,t),u&&fe(e,{fullOptionName:u,optionName:n,value:i,prevValue:a}),f(a)||f(i)||0===n.indexOf("buffer")||(o=!0),o?ce(e):(h(n,P)<0&&"visibleWidth"!==n&&(c=e.option("columns"),p=e.getColumnByPath(u,c),l.isString(p)&&(p=c[m]={dataField:p}),p&&re(p,t)&&s(p,i,{functionsAsIs:!0})),ue(e,d,n,m)))))},me=function(e){return"asc"===e||"desc"===e},_e=function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)},ve=function(e,t){var n,i,o=this.dataField.split("."),a=o.length-1;for(this.serializeValue&&(t=this.serializeValue(t)),i=0;i<a;i++)n=o[i],e=e[n]=e[n]||{};e[o[a]]=t},we=function e(t,n,i){var o=[];return n=n||0,t[n]&&c.each(t[n],function(a,r){(r.ownerBand===i||f(r.groupIndex))&&(r.isBand&&r.colspan?o.push.apply(o,e(t,n+1,r.index)):(!r.command||n<1)&&o.push(r))}),o},xe=function(e,t,n){var i=1,o=e.getBandColumnsCache(),a=o.columnParentByIndex;return e._columns.forEach(function(e){var t=N(e.index,a),n=t.filter(function(e){return!e.visible});e.visible&&!n.length&&(i=Math.max(i,t.length+1))}),i},ye=function(e){return e.fixedPosition?e.fixedPosition:"left"},be=function(e,t,n){var i=e[n]&&e[n].rowspan,o=t.slice(0);return i>1&&(o=c.map(o,function(e){return u({},e,{rowspan:i})})),o.unshift(n,0),e.splice.apply(e,o),i||1},Ce=function(e){var t;for(t=0;e>1;t++)e/=10;return t},ke=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n},Se=function(e,t,n){var i,o,a,r=e.length?(n&&t||e).slice().map(function(e){
|
|
38
|
-
return u({},e)}):[],s=function(e){return t.reduce(function(t,n,i){return n.command===e.command?i:t},-1)};if(r.length)for(i=0;i<e.length;i++)o=e[i],a=o&&o.command?s(o):-1,a>=0?n?r[a]=u({},r[a],o):r[i]=u({},r[i],t[a]):o&&n&&r.push(u({},o));return r};return{_getExpandColumnOptions:function(){return{command:"expand",width:"auto",cssClass:F,allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,n=[],i=function e(t,n){var i,o;if(!t||!n)return t;for(i=0;i<t.length;i++)if(o=e(t[i].items||t[i].collapsedItems,n-1),o&&o.length)return o};return e&&e.items().length>0&&(t=w(e.group()).length,n=i(e.items(),t)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&he(this)},init:function(){var e=this,t=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],_e(e),e._isColumnsFromOptions=!!t,e._isColumnsFromOptions?(de(e,t?z(e,t):[]),se(e)):de(e,e._columnsUserState?z(e,e._columnsUserState):e._columns),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):le(e)},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var n,i=this,o=[];return e.replace(H,function(e,t){return o.push(parseInt(t)),""}),o.length&&(n=t?o.reduce(function(e,t){return e&&e.columns&&e.columns[t]},{columns:t}):q(i,o)),n},optionChanged:function(e){switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"columns":e.handled=!0,this._skipProcessingColumnsChange?this._updateRequireResize(e):e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):this._columnOptionChanged(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0,this.reinit();break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},n=this.getColumnByPath(e.fullName),i=e.fullName.replace(H,"");n&&(i?t[i]=e.value:t=e.value,this.columnOption(n.index,t))},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(H,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns"]},applyDataSource:function(e,t){var n=this,i=e&&e.isLoaded();if(n._dataSource=e,!n._dataSourceApplied||0===n._dataSourceColumnsCount||t||n.option("regenerateColumnsByVisibleItems")){if(i){if(!n._isColumnsFromOptions){var o=Q(n,e);o.length&&(de(n,o),n._dataSourceColumnsCount=n._columns.length,se(n))}return n.updateColumns(e,t)}n._dataSourceApplied=!1}else if(i&&!n.isAllDataTypesDefined(!0)&&n.updateColumnDataTypes(e))return ue(n,"columns"),he(n),(new E).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){var e=this;e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,e._bandColumnsCache=void 0},reinit:function(){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=null,this.init()},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(){var e=this.option("commonColumnSettings")||{},t=this.option("grouping")||{},n=this.option("groupPanel")||{};return u({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:t.autoExpandAll,allowCollapsing:t.allowCollapsing,allowGrouping:n.allowColumnDragging&&n.visible||t.contextMenuEnabled},e)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t,n=this._columns;if(!n.length)return!1;for(t=0;t<n.length;t++)if((n[t].dataField||n[t].calculateCellValue!==n[t].defaultCalculateCellValue)&&(!n[t].dataType||e&&n[t].deserializeValue&&void 0===n[t].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(e){return e.isBand})},getGroupColumns:function(){var e=[];return c.each(this._columns,function(){var t=this;f(t.groupIndex)&&(e[t.groupIndex]=t)}),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),e=f(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=f(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},getFilteringColumns:function(){return this.getColumns().filter(function(e){return(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)}).map(function(e){var t=u(!0,{},e);return f(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t})},_getFixedColumnsCore:function(){var e,t,n,i,o,a,r,s,l=this,c=[],d=l.getRowCount(),u=l._isColumnFixing(),h={command:"transparent"},p=0;if(u)for(e=0;e<=d;e++){for(o=0,r=null,a=null,s=l.getVisibleColumns(e,!0),t=0;t<s.length;t++)i=s[t-1],n=s[t],n.command||(n.fixed?i&&i.fixed&&ye(i)!==ye(n)?f(a)||(a=t):r=n.fixedPosition:(0===e&&(n.isBand&&n.colspan?p+=n.colspan:p++),o++,f(a)||(a=t)));if(0===e&&(0===o||o>=s.length))return[];f(a)||(a="right"===r?0:s.length),c[e]=s.slice(0),h.colspan||(h.colspan=p),c[e].splice(a,o,h)}return c},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&c.each(this._columns,function(t,n){if(n.fixed)return e=!0,!1}),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore();return t.length&&(e=this.columnOption("command:expand")),t=c.map(t,function(t){return u({},t,{visibleWidth:null,minWidth:null,cellTemplate:l.isDefined(t.groupIndex)?null:t.cellTemplate,headerCellTemplate:null},e,{index:t.index})})},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},n={};e.forEach(function(i){var o=i.ownerBand,a=e[o];i.colspan&&(i.colspan=void 0),i.rowspan&&(i.rowspan=void 0),a?n[i.index]=a:o=-1,t[o]=t[o]||[],t[o].push(i)}),this._bandColumnsCache={columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_getVisibleColumnsCore:function(){var e,t,n,i=this,o=[],a=0,r=Se(i.getExpandColumns(),i._columns),s=i.getRowCount(),l=[],d=[],u=0,h=i.option("rtlEnabled"),p=Se(i._columns,i._commandColumns,!0),m=i.getBandColumnsCache(),_=Ce(p.length);for(j(i,p,m),e=0;e<s;e++)o[e]=[],d[e]=[{}],l[e]=[{},{},{}];return c.each(p,function(){var t,o,a=this,r=a.visibleIndex,s=N(a.index,m.columnParentByIndex),c=i._isColumnVisible(a);if(c&&(!f(a.groupIndex)||a.showWhenGrouped)){if(t=s.length,r<0?(r=-r,o=d[t]):(a.fixed=s.length?s[0].fixed:a.fixed,a.fixedPosition=s.length?s[0].fixedPosition:a.fixedPosition,a.fixed||a.command?(n="right"===a.fixedPosition,h&&(n=!n),o=n||a.command?l[t][2]:l[t][0]):o=l[t][1]),s.length)for(r=ke(r,_),e=s.length-1;e>=0;e--)r=ke(s[e].visibleIndex,_)+r;o[r]=o[r]||[],o[r].push(a),u++}}),c.each(o,function(e){g.orderEach(d[e],function(t,n){o[e].unshift.apply(o[e],n)}),t=o[e].length,c.each(l[e],function(t,n){g.orderEach(n,function(t,n){o[e].push.apply(o[e],n)})}),a<e+1&&(a+=be(o[e],r,t))}),o.push(we(o)),!u&&i._columns.length&&o[s].push({command:"empty"}),o},getInvisibleColumns:function(e,t){var n,i=this,o=[];return e=e||i._columns,c.each(e,function(e,a){if(a.ownerBand===t)return a.isBand?(n=a.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(a.index),a.index):i.getChildrenByBandColumn(a.index),void(n.length&&(o.push(a),o=o.concat(n)))):void(a.visible||o.push(a))}),o},getChooserColumns:function(e){var t=e?this.getColumns():this.getInvisibleColumns();return s(t,function(e){return e.showInColumnChooser})},allowMoveColumn:function(e,t,n,i){var o=this,a=oe(o,e,n),r=o._columns[a];return!(!r||!(r.allowReordering||r.allowGrouping||r.allowHiding))&&(n===i?n!==I&&(e=l.isObject(e)?e.columnIndex:e,t=l.isObject(t)?t.columnIndex:t,e!==t&&e+1!==t):n===_&&i!==I||i===_?r&&r.allowGrouping:n!==I&&i!==I||r&&r.allowHiding)},moveColumn:function(e,t,n,i){var o,a,r,s=this,c={},d=oe(s,e,n),u=oe(s,t,i);if(d>=0){if(r=s._columns[d],t=l.isObject(t)?t.columnIndex:t,a=u>=0?s._columns[u].groupIndex:-1,f(r.groupIndex)&&n===_&&(a>r.groupIndex&&a--,i!==_?c.groupIndex=void 0:(o=r.groupIndex,delete r.groupIndex,te(s))),i===_)c.groupIndex=ae(s,r,a),r.groupIndex=o;else if(t>=0){var h=s._columns[u];h&&r.ownerBand===h.ownerBand?r.fixed^h.fixed?c.visibleIndex=void 0:c.visibleIndex=h.visibleIndex:c.visibleIndex=void 0}var p=i!==I;r.visible!==p&&(c.visible=p),s.columnOption(r.index,c)}},changeSortOrder:function(e,t){var n=this,i={},o=n.option("sorting"),a=o&&o.mode,r="single"===a||!t,s="single"===a||"multiple"===a,l=n._columns[e],d=function(e){if("ctrl"===t){if(!("sortOrder"in e&&"sortIndex"in e))return!1;i.sortOrder=void 0,i.sortIndex=void 0}else f(e.groupIndex)||f(e.sortIndex)?i.sortOrder="desc"===e.sortOrder?"asc":"desc":i.sortOrder="asc";return!0};s&&l&&l.allowSorting&&(r&&!f(l.groupIndex)&&c.each(n._columns,function(t){t!==e&&this.sortOrder&&!f(this.groupIndex)&&(delete this.sortOrder,delete this.sortIndex)}),me(t)?l.sortOrder!==t&&(i.sortOrder=t):"none"===t?l.sortOrder&&(i.sortIndex=void 0,i.sortOrder=void 0):d(l)),n.columnOption(l.index,i)},getSortDataSourceParameters:function(e){var t=this,n=[],i=[];return c.each(t._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&f(this.sortIndex)&&!f(this.groupIndex)&&(n[this.sortIndex]=this)}),c.each(n,function(){var t=this&&this.sortOrder;if(me(t)){var n={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(n.compare=this.sortingMethod.bind(this)),i.push(n)}}),i.length>0?i:null},getGroupDataSourceParameters:function(e){var t=[];return c.each(this.getGroupColumns(),function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),t.push(i)}}),t.length>0?t:null},refresh:function(e){var t=[];return c.each(this._columns,function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}}),T.apply(i,t).done(ce.bind(null,this))},_updateColumnOptions:function(e){e.selector=e.selector||function(t){return e.calculateCellValue(t)},c.each(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(t,n){var i=e[n];l.isFunction(i)&&!i.originalCallback&&(e[n]=function(t){return i.call(e,t)},e[n].originalCallback=i)}),l.isString(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=r.compileGetter(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),X(e,e.dataType);var n=e.lookup;n&&X(n,n.dataType);var i=n?n.dataType:e.dataType;i&&(e.alignment=e.alignment||Z(i,this.option("rtlEnabled")),e.format=e.format||v.getFormatByDataType(i),e.customizeText=e.customizeText||J(i),e.defaultFilterOperations=e.defaultFilterOperations||!n&&t[i]||[],f(e.filterOperations)||D(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=f(e.showEditorAlways)?e.showEditorAlways:"boolean"===i&&!e.cellTemplate)},updateColumnDataTypes:function(e){var t=this,n=t.option("dateSerializationFormat"),i=t._getFirstItems(e),o=!1;return c.each(t._columns,function(e,a){var r,s,l,c,d,u=a.lookup;if(v.isDateType(a.dataType)&&void 0===a.serializationFormat&&(a.serializationFormat=n),u&&v.isDateType(u.dataType)&&void 0===a.serializationFormat&&(u.serializationFormat=n),a.calculateCellValue&&i.length){if(!a.dataType||u&&!u.dataType){for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r]),a.dataType||(d=U(s),l=l||d,l&&d&&l!==d&&(l="string")),u&&!u.dataType&&(d=U(v.getDisplayValue(a,s,i[r])),c=c||d,c&&d&&c!==d&&(c="string"));(l||c)&&(l&&(a.dataType=l),u&&c&&(u.dataType=c),o=!0)}if(void 0===a.serializationFormat||u&&void 0===u.serializationFormat)for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r],!0),void 0===a.serializationFormat&&(a.serializationFormat=Y(a.dataType,s)),u&&void 0===u.serializationFormat&&(u.serializationFormat=Y(u.dataType,u.calculateCellValue(s,!0)))}t._updateColumnOptions(a)}),o},_customizeColumns:function(e){var t,n=this,i=n.option("customizeColumns");i&&(t=e.some(function(e){return l.isObject(e.ownerBand)}),t&&le(n),i(e),de(n,z(n,e)))},updateColumns:function(e,t){var n,i,o=this;if(t||o.updateSortingGrouping(e),!e||e.isLoaded()){n=e?e.sort()||[]:o.getSortDataSourceParameters(),i=e?e.group()||[]:o.getGroupDataSourceParameters(),o._customizeColumns(o._columns),le(o);var a=o._columns;return T(o.refresh(!0)).always(function(){o._columns===a&&(o._updateChanges(e,{sorting:n,grouping:i}),he(o))})}},_updateChanges:function(e,t){var n=this;e&&(n.updateColumnDataTypes(e),n._dataSourceApplied=!0),x(t.sorting,n.getSortDataSourceParameters())||ue(n,"sorting"),x(t.grouping,n.getGroupDataSourceParameters())||ue(n,"grouping"),ue(n,"columns")},updateSortingGrouping:function(e,t){var n,i,o,a,r,s=this,l=function(e,t,n){var i,o,a;c.each(e,function(e,r){if(delete r[n],t)for(i=0;i<t.length;i++)if(o=t[i].selector,a=t[i].isExpanded,o===r.dataField||o===r.name||o===r.selector||o===r.calculateCellValue||o===r.calculateGroupValue){r.sortOrder=r.sortOrder||(t[i].desc?"desc":"asc"),void 0!==a&&(r.autoExpandGroup=a),r[n]=i;break}})};e&&(n=w(e.sort()),i=w(e.group()),o=s.getGroupDataSourceParameters(),a=s.getSortDataSourceParameters(),s._columns.length||(c.each(i,function(e,t){s._columns.push(t.selector)}),c.each(n,function(e,t){s._columns.push(t.selector)}),de(s,z(s,s._columns))),!t&&(o||s._hasUserState)||x(i,o)||(l(s._columns,i,"groupIndex"),t&&(ue(s,"grouping"),r=!0)),!t&&(a||s._hasUserState)||x(n,a)||(l(s._columns,n,"sortIndex"),t&&(ue(s,"sorting"),r=!0)),r&&he(s))},updateFilter:function(e,t,n,i){var o=this;if(!Array.isArray(e))return e;var a,r;for(e=u([],e),n=e.columnIndex||n,i=e.filterValue||i,l.isString(e[0])?(a=o.columnOption(e[0]),t?p().forceIsoDateParsing&&a&&a.serializeValue&&e.length>1&&(e[e.length-1]=a.serializeValue(e[e.length-1],"filter")):a&&a.selector&&(e[0]=a.selector,e[0].columnIndex=a.index)):l.isFunction(e[0])&&(e[0].columnIndex=n,e[0].filterValue=i),r=0;r<e.length;r++)e[r]=o.updateFilter(e[r],t,n,i);return e},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(e,t,i,o){var a,r,s,d=this,h=l.isString(e)&&e.substr(0,e.indexOf(":")),p=e<0||"command"===h?d._columns.concat(d._commandColumns):d._columns;if(void 0!==e){for(h&&(e=e.substr(h.length+1)),a=0;a<p.length;a++)if(h){if(""+p[a][h]===e){s=p[a];break}}else if(p[a].index===e||p[a].name===e||p[a].dataField===e||p[a].caption===e){s=p[a];break}if(s){if(1===arguments.length)return u({},s);if(l.isString(t)){if(2===arguments.length)return ge(d,s,t);r=r||n[t],ge(d,s,t,i,o)}else l.isObject(t)&&c.each(t,function(e,t){r=r||n[e],ge(d,s,e,t,o)});r&&le(d,s),he(d)}}},clearSorting:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"sortOrder",void 0);t.endUpdate()},clearGrouping:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"groupIndex",void 0);t.endUpdate()},getVisibleIndex:function(e,t){var n,i=this.getVisibleColumns(t);for(n=i.length-1;n>=0;n--)if(i[n].index===e)return n;return-1},addColumn:function(e){var t=this,n=L(t,e),i=t._columns.length;t._columns.push(n),n.isBand&&(t._columns=z(t,t._columns),n=t._columns[i]),n.added=e,le(t,n),t.updateColumns(t._dataSource)},deleteColumn:function(e){var t,n=this,i=n.columnOption(e);i&&i.index>=0&&(n._columns.splice(i.index,1),i.isBand&&(t=n.getChildrenByBandColumn(i.index).map(function(e){return e.index}),n._columns=n._columns.filter(function(e){return t.indexOf(e.index)<0})),le(n),n.updateColumns(n._dataSource))},addCommandColumn:function(e){var t,n=this._commandColumns;for(t=0;t<n.length;t++)if(n[t].command===e.command)return;n.push(e)},getUserState:function(){function e(e,o){void 0!==n[t][o]&&(i[t][o]=n[t][o])}var t,n=this._columns,i=[];for(t=0;t<n.length;t++)i[t]={},c.each(P,e);return i},setUserState:function(e){var t,n=this,i=n.option("stateStoring.ignoreColumnOptionNames");i||(i=[],t=n.getCommonSettings(),n.option("columnChooser.enabled")||i.push("visible"),"none"===n.option("sorting.mode")&&i.push("sortIndex","sortOrder"),t.allowGrouping||i.push("groupIndex"),t.allowFixing||i.push("fixed","fixedPosition"),t.allowResizing||i.push("width","visibleWidth"),n.option("filterRow.visible")||i.push("filterValue","selectedFilterOperation"),n.option("headerFilter.visible")||i.push("filterValues","filterType")),n._columnsUserState=e,n._ignoreColumnOptionNames=i,n._hasUserState=!!e,ue(n,"filtering"),n.init()},_createCalculatedColumnOptions:function(e,t){var n,i={},s=e.dataField;return(Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(i.isBand=!0,s=null),s?(l.isString(s)&&(n=r.compileGetter(s),i={caption:b.captionize(s),calculateCellValue:function(e,t){var i=n(e);return this.deserializeValue&&!t?this.deserializeValue(i):i},setCellValue:ve,parseValue:function(e){var t,n,i=this;return"number"===i.dataType?l.isString(e)&&i.format?(n=k.parse(e),l.isNumeric(n)&&(t=n)):f(e)&&l.isNumeric(e)&&(t=Number(e)):"boolean"===i.dataType?e===i.trueText?t=!0:e===i.falseText&&(t=!1):v.isDateType(i.dataType)?(n=S.parse(e,i.format),n&&(t=n)):t=e,t}}),i.allowFiltering=!0):i.allowFiltering=!!e.calculateFilterExpression,i.calculateFilterExpression=function(){return R.defaultCalculateFilterExpression.apply(this,arguments)},i.createFilterExpression=function(e){var t;return this.calculateFilterExpression&&(t=this.calculateFilterExpression.apply(this,arguments)),l.isFunction(t)?t=[t,"=",!0]:t&&(t.columnIndex=this.index,t.filterValue=e),t},s&&l.isString(s)||u(!0,i,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(i.allowFixing=!1),e.dataType&&(i.userDataType=e.dataType),!e.selectedFilterOperation||"defaultSelectedFilterOperation"in i||(i.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(i.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){var e,t,n,i;if(this.valueMap={},this.items)for(e=r.compileGetter(this.valueExpr),t=r.compileGetter(this.displayExpr),i=0;i<this.items.length;i++){n=this.items[i];var o=t(n);this.valueMap[e(n)]=o,this.dataType=this.dataType||U(o)}},update:function(){var e,t=this,n=t.dataSource;if(n)if(l.isFunction(n)&&!a(n)&&(n=n({})),l.isPlainObject(n)||n instanceof A||Array.isArray(n)){if(t.valueExpr)return e=O(n),e.paginate=!1,n=new B.DataSource(e),n.load().done(function(e){t.items=e,t.updateValueMap&&t.updateValueMap()})}else m.log("E1016");else t.updateValueMap&&t.updateValueMap()}}),i.resizedCallbacks=o(),e.resized&&i.resizedCallbacks.add(e.resized.bind(e)),c.each(i,function(e){var t;l.isFunction(i[e])&&0!==e.indexOf("default")&&(t="default"+e.charAt(0).toUpperCase()+e.substr(1),i[t]=i[e])}),i},getRowCount:function(){return this._rowCount=this._rowCount||xe(this),this._rowCount},getRowIndex:function(e,t){var n=this._columns[e],i=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!f(n.groupIndex))?N(e,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var n=this,i=n.getBandColumnsCache(),o=W(e,i.columnChildrenByIndex,!t);return t?o.filter(function(e){return e.visible&&!e.command}).sort(function(e,t){return e.visibleIndex-t.visibleIndex}):o},isParentBandColumn:function(e,t){var n=!1,i=this._columns[e],o=this.getBandColumnsCache(),a=i&&N(e,o.columnParentByIndex);return a&&c.each(a,function(e,i){if(i.index===t)return n=!0,!1}),n},isParentColumnVisible:function(e){var t=!0,n=this.getBandColumnsCache(),i=e>=0&&N(e,n.columnParentByIndex);return i&&c.each(i,function(e,n){return t=t&&n.visible}),t}}}())}}},function(e,t,n){var i=n(19),o=n(27),a=n(4),r=n(1),s=n(3).each,l=n(0).extend,c=n(79),d=n(7),u=d.when,h=d.Deferred;e.exports=o.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i<t.length;i++)t[i]=l({key:t[i].key},t[i]),t[i].items=e(t[i].items,n-1);return t}function t(e,t){var n={};return t&&(n={sorting:!o.equalSortParameters(e.sort,t.sort),grouping:!o.equalSortParameters(e.group,t.group,!0),groupExpanding:!o.equalSortParameters(e.group,t.group),filtering:!o.equalFilterParameters(e.filter,t.filter),skip:e.skip!==t.skip,take:e.take!==t.take},n.reload=n.sorting||n.grouping||n.filtering,n.paging=n.skip||n.take),n}function n(e,t){r.isDefined(t)?a.executeAsync(e,t):e()}function d(){return{pages:{}}}function p(e){return e.cachedPagesData.pages[e.pageIndex]}function f(e,t){var n=e.pageIndex;void 0!==n&&(e.cachedPagesData.pages[n]=t)}return{init:function(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedPagesData=d(),n.changed=i(),n.loadingChanged=i(),n.loadError=i(),n.customizeStoreLoadOptions=i(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataLoadingHandler=n._handleDataLoading.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._dataLoadingHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),s(e,function(e,t){!n[e]&&r.isFunction(t)&&(n[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this,n=t._dataSource;n.off("changed",t._dataChangedHandler),n.off("customizeStoreLoadOptions",t._dataLoadingHandler),n.off("customizeLoadResult",t._dataLoadedHandler),n.off("loadingChanged",t._loadingChangedHandler),n.off("loadError",t._loadErrorHandler),e||n.dispose()},refresh:function(e,t,n){var i=this,o=i._dataSource;(t||n.reload)&&(i._currentTotalCount=0,i._isLastPage=!o.paginate(),i._hasLastPage=i._isLastPage)},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedPagesData=d()},_customizeRemoteOperations:function(e,t,n){var i=this,o=i._cachedStoreData,a=i._cachedPagingData,r=i._cachedPagesData;t?(o=void 0,a=void 0,r=d()):(n.reload?(a=void 0,r=d()):(n.take||n.groupExpanding)&&(r=d()),s(n,function(t,n){n&&e.remoteOperations[t]&&(o=void 0,a=void 0)})),a&&(e.remoteOperations.paging=!1),e.cachedStoreData=o,e.cachedPagingData=a,e.cachedPagesData=r,e.isCustomLoading||(i._cachedStoreData=o,i._cachedPagingData=a,i._cachedPagesData=r)},_handleDataLoading:function(e){var n,i,o=this,a=o._dataSource,r=o._lastLoadOptions;o.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=l({},this.remoteOperations());var s=!o.isLoaded()&&!o._isRefreshing;if(o.option("integrationOptions.renderedOnServer")&&!o.isLoaded()&&(e.delay=void 0),n=l({},e.storeLoadOptions),i=t(n,r),o._customizeRemoteOperations(e,s,i),!e.isCustomLoading){var c=o._isRefreshing;e.pageIndex=a.pageIndex(),e.lastLoadOptions=n,o._isRefreshing=!0,u(c||o._isRefreshed||o.refresh(e,s,i)).done(function(){o._lastOperationId===e.operationId&&(o._isRefreshed=!0,o.load().always(function(){o._isRefreshed=!1}))}).fail(function(){a.cancel(e.operationId)}).always(function(){o._isRefreshing=!1}),a.cancel(o._lastOperationId),o._lastOperationId=e.operationId,o._isRefreshing&&a.cancel(o._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var n=e.cachedPagesData.extra,i={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:n&&"totalCount"in n||!t.paging};s(e.storeLoadOptions,function(t,n){i[t]&&(e.loadOptions[t]=n,delete e.storeLoadOptions[t])}),n&&(e.extra=n),e.data=p(e)||e.cachedStoreData},_handleDataLoaded:function(t){var n=this,i=t.loadOptions,a=t.remoteOperations&&!t.remoteOperations.paging,s=t.cachedPagesData,d=this.option("cacheEnabled")!==!1&&t.storeLoadOptions,g=d&&!t.isCustomLoading&&s&&(!a||t.storeLoadOptions.group)&&!this.option("legacyRendering"),m=d&&a,_=m&&!t.isCustomLoading;if(!i)return void this._dataSource.cancel(t.operationId);t.lastLoadOptions&&(this._lastLoadOptions=t.lastLoadOptions),a&&(t.skip=i.skip,t.take=i.take,delete i.skip,delete i.take),i.group&&(i.group=t.group||i.group);var v=o.normalizeSortingInfo(t.storeLoadOptions.group||i.group).length;g&&p(t)||(m&&t.cachedPagingData?t.data=e(t.cachedPagingData,v):(_&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,o.normalizeSortingInfo(t.storeLoadOptions.group).length)),new c(t.data).load(i).done(function(i){t.data=i,_&&(n._cachedPagingData=e(t.data,v))}).fail(function(e){t.data=(new h).reject(e)})),i.requireTotalCount&&a&&(t.extra=r.isPlainObject(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),this._handleDataLoadedCore(t),g&&(s.extra=s.extra||l({},t.extra),u(t.data).done(function(n){f(t,e(n,v))}))),t.storeLoadOptions=t.originalStoreLoadOptions},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.changed.fire({changeType:"loadError",error:e}),this.loadError.fire(e)},_handleDataChanged:function(e){var t,n=this,i=n._dataSource,o=!1,a=n.itemsCount();n._isLastPage=!a||!n.pageSize()||a<n.pageSize(),n._isLastPage&&(n._hasLastPage=!0),i.totalCount()>=0?i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),n.pageIndex(i.pageIndex()),i.reload(),o=!0):(t=i.pageIndex()*n.pageSize()+a,n._currentTotalCount=Math.max(n._currentTotalCount,t),0===a&&i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),"infinite"!==n.option("scrolling.mode")&&(i.load(),o=!0))),o||(this.component._optionCache={},this.changed.fire(e),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always(function(){t._isCustomLoading=!1})},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt(this._currentTotalCount||this._dataSource.totalCount())},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this,t=e.totalItemsCount(),n=e.pageSize();return n&&t>0?Math.max(1,Math.ceil(t/n)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e){var t=this._dataSource,n=new h;if(t)return t.store().load(e).done(function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),n.resolve(e,t)}).fail(n.reject),n},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t,i,o,a=this,r=a._dataSource,l=new h;return e?(t=r.store(),o=r.loadOptions(),i={storeLoadOptions:e,isCustomLoading:!0},s(t._customLoadOptions()||[],function(e,t){t in i.storeLoadOptions||(i.storeLoadOptions[t]=o[t])}),a._scheduleCustomLoadCallbacks(l),r._scheduleLoadCallbacks(l),a._handleDataLoading(i),n(function(){return r.store()?void u(i.data||a.loadFromStore(i.storeLoadOptions)).done(function(n,o){i.data=n,i.extra=o||{},a._handleDataLoaded(i),e.requireTotalCount&&void 0===i.extra.totalCount&&(i.extra.totalCount=t.totalCount(i.storeLoadOptions)),u(i.data,i.extra.totalCount).done(function(e,t){i.extra.totalCount=t,l.resolve(e,i.extra)}).fail(l.reject)}).fail(l.reject):l.reject("canceled")},a.option("loadingTimeout")),l.fail(function(){a.fireEvent("loadError",arguments)}).promise()):r.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()}}}())},function(e,t,n){var i=n(2),o=n(46),a=n(45),r=n(79),s=n(158),l=n(21),c=n(4),d=n(3).each,u=n(1),h=n(0).extend,p=n(112),f=c.equalByValue,g=n(7),m=g.when,_=g.Deferred;e.exports={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:o.Controller.inherit({}).include(p).inherit(function(){var e=function(e,t,n){var i=e._dataSource;return i?void 0!==n?i[t]()!==n?("pageSize"===t&&i.pageIndex(0),i[t](n),e._skipProcessingPagingChange=!0,e.option("paging."+t,n),e._skipProcessingPagingChange=!1,i["pageIndex"===t?"load":"reload"]().done(e.pageChanged.fire.bind(e.pageChanged))):_().resolve().promise():i[t]():0},t={init:function(){var e=this;e._items=[],e._columnsController=e.getController("columns"),e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._dataChangedHandler=e._handleDataChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add(function(t){return e.executeAction("onDataErrorOccurred",{error:t})}),e._refreshDataSource()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},optionChanged:function(e){function t(){e.handled=!0}var n,i=this;if("dataSource"===e.name&&e.name===e.fullName&&e.value===e.previousValue)return t(),void i.refresh();switch(e.name){case"cacheEnabled":case"loadingTimeout":case"remoteOperations":t();break;case"keyExpr":case"dataSource":case"scrolling":t(),i.skipProcessingPagingChange(e.fullName)||i.reset();break;case"paging":n=i.dataSource(),n&&i._setPagingOptions(n)&&n.load(),t();break;case"rtlEnabled":i.reset();break;case"columns":n=i.dataSource(),n&&n.isLoading()&&e.name===e.fullName&&n.load();break;default:i.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var n,i=this,o=i._dataSource,r=i._columnsController;return o&&(void 0===e&&(e=o.filter()),n=i._calculateAdditionalFilter(),n&&(r.isDataSourceApplied()||r.isAllDataTypesDefined())&&(e=a.combineFilters([n,e])),e=r.updateFilter(e,t||o.remoteOperations().filtering)),e},_endUpdateCore:function(){var e=this._changes;
|
|
39
|
-
e.length&&(this._changes=[],this.updateItems(1===e.length?e[0]:{}))},_handleCustomizeStoreLoadOptions:function(e){var t=this._columnsController,n=this._dataSource,i=e.storeLoadOptions;e.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),t.isDataSourceApplied()||t.updateColumnDataTypes(n),this._columnsUpdating=!0,t.updateSortingGrouping(n,!this._isFirstLoading),this._columnsUpdating=!1,i.sort=t.getSortDataSourceParameters(),i.group=t.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=t.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=t.getGroupDataSourceParameters(!n.remoteOperations().grouping),this._isFirstLoading=!1)},_handleColumnsChanged:function(e){var t,n,i,o=this,r=e.changeTypes,s=e.optionNames,l=function e(){o._columnsController.columnsChanged.remove(e),o.updateItems()};if(r.sorting||r.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(r.columns&&((s.filterValues||s.filterValue||s.selectedFilterOperation)&&(t=o._columnsController.columnOption(e.columnIndex,"filterValue"),n=o._columnsController.columnOption(e.columnIndex,"filterValues"),(Array.isArray(n)||void 0===e.columnIndex||u.isDefined(t)||!s.selectedFilterOperation||s.filterValue)&&(o._applyFilter(),i=!0)),o._needApplyFilter||a.checkChanges(s,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||o._columnsController.columnsChanged.add(l),u.isDefined(s.visible))){var c=o._columnsController.columnOption(e.columnIndex);c&&(u.isDefined(c.filterValue)||u.isDefined(c.filterValues))&&(o._applyFilter(),i=!0)}!i&&r.filtering&&o.reload()},_handleDataChanged:function(e){var t=this,n=t._dataSource,i=t._columnsController,o=!1;n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,m(t._columnsController.applyDataSource(n)).done(function(){t._isLoading&&t._handleLoadingChanged(!1),o&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var n=t._calculateAdditionalFilter(),i=t._needApplyFilter;t._needApplyFilter=!1,i&&n&&n.length&&!t._isAllDataTypesDefined?(l.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e)}).fail(function(){t._isDataSourceApplying=!1}),t._isDataSourceApplying&&(o=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=i.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),o=this.option("scrolling.mode"),a="infinite"===o,r="virtual"===o,s=i||r||a,l=!1;return e.requireTotalCount(!a),void 0!==i&&e.paginate()!==s&&(e.paginate(s),l=!0),void 0!==n&&e.pageSize()!==n&&(e.pageSize(n),l=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),l=!0),l},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this,t=this.option("dataSource"),n=this._dataSource;e.callBase(),t=e._dataSource,e._isFirstLoading=!0,t?(e._setPagingOptions(t),e.setDataSource(t)):n&&e.updateItems()},_loadDataSource:function(){var e=this._dataSource,t=new _;return m(this._columnsController.refresh(!0)).always(function(){e?e.load().done(t.resolve).fail(t.reject):t.resolve()}),t.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(e,t){var n=this,i=n.getRowIndexDelta(),o=n._columnsController.getVisibleColumns(null,"loadingAll"===t),a=n._items,r="append"===t&&a.length>0?a[a.length-1].dataIndex+1:0,s={visibleColumns:o,dataIndex:r},l=[];return d(e,function(e,t){u.isDefined(t)&&(s.rowIndex=e-i,t=n._processItem(t,s),l.push(t))}),l},_processItem:function(e,t){return e=this._generateDataItem(e),e=this._processDataItem(e,t),e.dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t){for(var n,i,o=[],a=0;a<t.length;a++)n=t[a],i=null,n.command?i=null:n.calculateCellValue?i=n.calculateCellValue(e):n.dataField&&(i=e[n.dataField]),o.push(i);return o},_applyChangeUpdate:function(e){var t,n=this,i=e.items,o=e.rowIndices.slice(0),a=n.getRowIndexDelta(),r=-1,s=0;o.sort(function(e,t){return e-t});for(var l=0;l<o.length;l++)o[l]<0&&(o.splice(l,1),l--);e.items=[],e.rowIndices=[],e.changeTypes=[];var c=function(e,t,n){var i=e&&t&&f(e.key,t.key);return i&&n&&(i=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),i};d(o,function(o,l){var d,u,h,p,f;if(l+=s+a,r!==l){if(r=l,d=n._items[l],h=n._items[l+1],u=i[l],p=i[l+1],f=c(d,h)||c(u,p),u&&e.items.push(u),d&&u&&c(d,u,f))t="update",n._items[l]=u,d.visible!==u.visible&&e.items.splice(-1,1,{visible:u.visible});else if(u&&!d||p&&c(d,p,f))t="insert",n._items.splice(l,0,u),s++;else if(d&&!u||h&&c(u,h,f))t="remove",n._items.splice(l,1),s--,r=-1;else{if(!u)return;t="update",n._items[l]=u}e.rowIndices.push(l-a),e.changeTypes.push(t)}})},_applyChange:function(e){var t=this;"update"===e.changeType?t._applyChangeUpdate(e):t._items=e.items.slice(0)},_updateItemsCore:function(e){var t,n=this,i=n._dataSource,o=e.changeType||"refresh";e.changeType=o,i?(t=e.items||i.items(),t=n._beforeProcessItems(t),t=n._processItems(t,o),e.items=t,n._applyChange(e),d(n._items,function(e,t){t.rowIndex=e})):n._items=[]},updateItems:function(e){e=e||{};var t=this;return t._updateLockCount?void t._changes.push(e):(t._updateItemsCore(e),void(e.cancel||t._fireChanged(e)))},_fireChanged:function(e){var t=this;c.deferRender(function(){t.changed.fire(e)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this,t=e._dataSource;if(t)return t.pageIndex(0),e.reload().done(e.pageChanged.fire.bind(e.pageChanged))},filter:function e(t){var n=this._dataSource,e=n.filter();return 0===arguments.length?n?n.filter():void 0:(t=arguments.length>1?Array.prototype.slice.call(arguments,0):t,void(a.equalFilterParameters(e,t)||(n&&n.filter(t),this._applyFilter())))},clearFilter:function(e){var t=this,n=t._columnsController,i=function(e){var t,i=n.columnCount();for(t=0;t<i;t++)n.columnOption(t,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else t.filter(null),t.searchByText(""),i("filterValue"),i("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this,t=function t(){e.changed.remove(t),e.dataSourceChanged.fire()};e.changed.add(t)},_getDataSourceAdapter:c.noop,_createDataSourceAdapterCore:function(e,t){var n=this._getDataSourceAdapter(),i=n.create(this.component);return i.init(e,t),i},isLocalStore:function(e){return e=e||this.store(),e instanceof r},isCustomStore:function(e){return e=e||this.store(),e instanceof s},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),n=e.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=h({},i,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),t===!0&&(t=i),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this,n=t._dataSource;!e&&n&&(n.changed.remove(t._dataChangedHandler),n.loadingChanged.remove(t._loadingChangedHandler),n.loadError.remove(t._loadErrorHandler),n.customizeStoreLoadOptions.remove(t._customizeStoreLoadOptionsHandler),n.dispose(t._isSharedDataSource)),e&&(e=t._createDataSourceAdapter(e)),t._dataSource=e,e&&(t._fireDataSourceChanged(),t._isLoading=!e.isLoaded(),t._needApplyFilter=!0,t._isAllDataTypesDefined=t._columnsController.isAllDataTypesDefined(),e.changed.add(t._dataChangedHandler),e.loadingChanged.add(t._loadingChangedHandler),e.loadError.add(t._loadErrorHandler),e.customizeStoreLoadOptions.add(t._customizeStoreLoadOptionsHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,n=new _,i=t._dataSource;if(i)if(e){var o={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t.getCombinedFilter(),group:i.group(),sort:i.sort()}};i._handleDataLoaded(o),m(o.data).done(function(e){e=t._beforeProcessItems(e),n.resolve(t._processItems(e,"loadingAll"),o.extra&&o.extra.summary)}).fail(n.reject)}else if(t.isLoading())n.reject();else{var a=h({},i.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});i.load(a).done(function(e,i){e=t._beforeProcessItems(e),e=t._processItems(e,"loadingAll"),n.resolve(e,i&&i.summary)}).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(e){var t=this.items()[e];if(t)return t.key},getRowIndexByKey:function(e){return a.getIndexByKey(e,this.items())},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,n=this.store(),i=this.getRowIndexByKey(e);if(n)return i>=0&&(t=(new _).resolve(this.items()[i].data)),t||n.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,n=new _,o=[],a=[];return d(e,function(e,n){o.push(t.byKey(n).done(function(t){a[e]=t}))}),m.apply(i,o).always(function(){n.resolve(a)}),n},pageIndex:function(t){return e(this,"pageIndex",t)},pageSize:function(t){return e(this,"pageSize",t)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(){var e=this,t=new _;return m(this._columnsController.refresh()).always(function(){m(e.reload(!0)).done(t.resolve).fail(t.reject)}),t},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},repaintRows:function(e){e=Array.isArray(e)?e:[e],(e.length>1||u.isDefined(e[0]))&&this.updateItems({changeType:"update",rowIndices:e})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}}};return a.proxyMethod(t,"load"),a.proxyMethod(t,"reload"),a.proxyMethod(t,"itemsCount",0),a.proxyMethod(t,"totalItemsCount",0),a.proxyMethod(t,"hasKnownLastPage",!0),a.proxyMethod(t,"isLoaded",!0),a.proxyMethod(t,"totalCount",0),t}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(18),c=i(l),d=n(1),u=i(d),h=n(0),p=i(h),f=n(374),g=i(f),m=n(15),_=i(m),v=n(9),w=i(v),x=u.default.isDefined,y=p.default.extend,b="dxDataGridColumnHeadersView",C=y({},g.default,{_createRow:function(e){var t=this,n=t.callBase(e);return"header"===e.rowType&&s.default.on(n,w.default.addNamespace(c.default.name,b),"td",t.createAction(function(e){if((0,a.default)(e.event.currentTarget).parent().get(0)===n.get(0)){var i=null,o=e.event,r=(0,a.default)(o.currentTarget),s=r.parent().index(),l=-1;[].slice.call(t.getCellElements(s)).some(function(e,t){if(e===r.get(0))return l=t,!0});var c=t._columnsController.getVisibleColumns(s),d=c[l],u=t.getController("editing"),h=t.option("editing.mode"),p=u&&u.isEditing()&&("batch"===h||"cell"===h);!p&&t._isSortableElement((0,a.default)(o.target))&&(!d||x(d.groupIndex)||d.command||(o.shiftKey?i="shift":o.ctrlKey&&(i="ctrl"),setTimeout(function(){t._columnsController.changeSortOrder(d.index,i)})))}})),n},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),n.callBase(e,t)},_columnOptionChanged:function(e){var t=e.changeTypes;return 1===t.length&&t.sorting?void this._updateIndicators("sort"):void this.callBase(e)},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}}),k=y({},g.default,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return s.default.on(i,w.default.addNamespace(c.default.name,"dxDataGridHeaderPanel"),n.createAction(function(){setTimeout(function(){n.getController("columns").changeSortOrder(t.index)})})),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:_.default.format("dxDataGrid-sortingAscendingText"),descendingText:_.default.format("dxDataGrid-sortingDescendingText"),clearText:_.default.format("dxDataGrid-sortingClearText")}}},extenders:{views:{columnHeadersView:C,headerPanel:k}}}},function(e,t,n){var i=n(1).isDefined,o="dx-sort",a="dx-sort-none",r="dx-sort-up",s="dx-sort-down",l="action";e.exports={_applyColumnState:function(e){var t,n,a=this,c=a.option("sorting.mode"),d=e.rootElement,u=e.column,h=a._getIndicatorContainer(d);return"sort"===e.name?(d.find("."+o).remove(),!h.children().length&&h.remove(),(("single"===c||"multiple"===c)&&u.allowSorting||i(u.sortOrder))&&(t="asc"===u.sortOrder?"ascending":"descending",n=a.callBase(e).toggleClass(r,"asc"===u.sortOrder).toggleClass(s,"desc"===u.sortOrder),e.rootElement.addClass(a.addWidgetPrefix(l))),i(u.sortOrder)?a.setAria("sort",t,d):a.setAria("sort","none",d),n):a.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?o:this.callBase(e)},_renderIndicator:function(e){var t,n=e.column,o=e.container,r=e.indicator;return"sort"===e.name&&(t=this.option("rtlEnabled"),i(n.sortOrder)||r&&r.addClass(a),o.children().length&&(!t&&"left"===e.columnAlignment||t&&"right"===e.columnAlignment))?void o.prepend(r):void this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!i(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not("."+a)}}},function(e,t,n){var i=n(2),o=n(6),a=o.getWindow(),r=n(5),s=n(4),l=n(83),c=n(1),d=n(3).each,u=n(0).extend,h=n(39),p=n(103).getDefaultAlignment,f=n(22).compileGetter,g=n(21),m=n(45),_=n(197),v=n(93),w=n(129),x=n(15),y=n(29),b=c.isDefined,C="rowsview",k="content",S="nowrap",I="dx-group-row",D="dx-group-cell",T="dx-data-row",E="dx-freespace-row",A="dx-row-lines",B="dx-column-lines",O="dx-row-alt",R="dx-last-row-border",M="dx-empty",P=200;e.exports={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:x.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:x.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:_.ColumnsView.inherit(function(){var e={render:function(e){var t=e.container.find("tbody");t.length?t.last().append(e.content):e.container.append(e.content)}},t=function(e,t){var n=h.isEmpty(t.text)&&"data"===t.rowType,i=t.text,o=e.get(0);n?m.setEmptyText(e):t.column.encodeHtml?o.textContent=i:o.innerHTML=i};return{_getDefaultTemplate:function(e){switch(e.command){case"empty":return function(e){e.html(" ")};default:return t}},_getDefaultGroupTemplate:function(e){var t=this,n=t.option("summary.texts");return function(t,i){var o=i.data,a=i.column.caption+": "+i.text,r=t.get(0);i.summaryItems&&i.summaryItems.length&&(a+=" "+m.getGroupRowSummaryText(i.summaryItems,n)),o&&(i.groupContinuedMessage&&i.groupContinuesMessage?a+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?a+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(a+=" ("+i.groupContinuedMessage+")")),t.addClass(D),e.encodeHtml?r.textContent=a:r.innerHTML=a}},_update:function(){},_getCellTemplate:function(e){var t,n=this,i=e.column;return t="group"!==e.rowType||!b(i.groupIndex)||i.showWhenGrouped||i.command?i.cellTemplate||{allowRenderToDetachedContainer:!0,render:n._getDefaultTemplate(i)}:i.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:n._getDefaultGroupTemplate(i)}},_createRow:function(e){var t,n,i,o=this.callBase(e);return e&&(t="group"===e.rowType,n="data"===e.rowType,n&&o.addClass(T),n&&e.dataIndex%2===1&&this.option("rowAlternationEnabled")&&o.addClass(O),n&&this.option("showRowLines")&&o.addClass(A),this.option("showColumnLines")&&o.addClass(B),e.visible===!1&&o.hide(),t&&(o.addClass(I),i=e.isExpanded,this.setAria("role","row",o),this.setAria("expanded",b(i)&&i.toString(),o)),this._setAriaRowIndex(e,o)),o},_setAriaRowIndex:function(e,t){var n=this.component,i="standard"===n.option("scrolling.mode")&&"virtual"!==n.option("scrolling.rowRenderingMode"),o=e.rowIndex+1;i?o=n.pageIndex()*n.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,t)},_afterRowPrepared:function(e){var t=e.args[0],n=this._dataController,i=this.option("integrationOptions.watchMethod");if(t.data&&"data"===t.rowType&&!t.inserted&&this.option("twoWayBindingEnabled")&&i){var o=i(function(){return n.generateDataValues(t.data,t.columns)},function(){n.repaintRows([t.rowIndex])},{deep:!0,skipImmediate:!0});r.on(t.rowElement,w,o)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("<div>"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),o=!0,a=0;a<i.length;a++)if(!i[a].width&&!i[a].minWidth){o=!1;break}(t.option("columnAutoWidth")||t._hasHeight||o||t._columnsController._isColumnFixing())&&t._renderScrollableCore(n)}},_handleScroll:function(e){var t=this;t._isScrollByEvent=!!e.event,t._scrollTop=e.scrollOffset.top,t._scrollLeft=e.scrollOffset.left,t.scrollChanged.fire(e.scrollOffset,t.name)},_renderScrollableCore:function(e){var t=this,n=t._createScrollableOptions(),i=t._handleScroll.bind(t);n.onScroll=i,n.onStop=i,t._scrollable=t._createComponent(e,v,n),t._scrollableContainer=t._scrollable&&t._scrollable._$container},_renderLoadPanel:m.renderLoadPanel,_renderContent:function(e,t){return e.replaceWith(i("<div>").addClass(this.addWidgetPrefix(k)).append(t)),this._findContentElement()},_updateContent:function(e,t){var n=this,i=n._getTableElement(),o=n._findContentElement(),a=t&&t.changeType,r=[];switch(a){case"update":d(t.rowIndices,function(o,a){var s=n._getRowElements(e).eq(o),l=t.changeTypes&&t.changeTypes[o],c=t.items&&t.items[o];r.push(function(){var e=n._getRowElements(),t=e.eq(a);switch(l){case"update":c&&(b(c.visible)&&c.visible!==t.is(":visible")?t.toggle(c.visible):t.replaceWith(s));break;case"insert":e.length?t.length?s.insertBefore(t):s.insertAfter(e.last()):s.prependTo(i.children("tbody"));break;case"remove":t.remove()}})}),d(r,function(){this()}),e.remove();break;default:n._setTableElement(e),o.addClass(n.addWidgetPrefix(k)),n._renderContent(o,e)}},_createEmptyRow:function(){var e,t=this,n=t._createRow(),i=this.getColumns();for(n.toggleClass(B,t.option("showColumnLines")),e=0;e<i.length;e++)n.append(t._createCell({column:i[e],rowType:"freeSpace",columnIndex:e,columns:i}));return t.setAria("role","presentation",n),n},_renderFreeSpaceRow:function(t,n){var i=this._createEmptyRow().addClass(E);this._appendRow(t,i,e)},_checkRowKeys:function(e){var t=this,n=t._getRows(e),i=t._dataController.store()&&t._dataController.store().key();i&&n.some(function(e){if("data"===e.rowType&&void 0===e.key)return t._dataController.dataErrorOccurred.fire(g.Error("E1046",i)),!0})},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){var t=e.children("tbody").children().not(".dx-virtual-row").not("."+E);return t.toArray().reduce(function(e,t){return e+t.getBoundingClientRect().height},0)},_updateRowHeight:function(){var e,t=this,n=t._getTableElement(),i=t._dataController.items().length;n&&t._needUpdateRowHeight(i)&&(e=t._getRowsHeight(n),t._rowHeight=e/i)},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=t.$content()),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+E)},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children("."+E)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",u({evaluate:function(e){var n=f(e);return n(t.data)}},e,t))},_getGroupCellOptions:function(e){var t=(e.row.groupIndex||0)+e.columnsCountBeforeGroups;return{columnIndex:t,colspan:e.columns.length-t-1}},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){var n,i,o,a,r,s=t.row,l=t.columns,c=s.rowIndex,d=this._getGroupCellOptions(t);for(n=0;n<=d.columnIndex;n++)n===d.columnIndex&&l[n].allowCollapsing&&"infinite"!==t.scrollingMode?(o=!!s.isExpanded,i=l[n]):(o=null,i={command:"expand",cssClass:l[n].cssClass}),this._renderCell(e,{value:o,row:s,rowIndex:c,column:i,columnIndex:n});r=p(this.option("rtlEnabled")),a=u({},l[d.columnIndex],{command:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:r}),d.colspan>1&&(a.colspan=d.colspan),this._renderCell(e,{value:s.values[s.groupIndex],row:s,rowIndex:c,column:a,columnIndex:d.columnIndex})},_renderRows:function(e,t){var n,i=this,o=t.columns,a=0,r=i.option("scrolling.mode");for(n=0;n<o.length;n++)if("expand"===o[n].command){a=n;break}i.callBase(e,u({scrollingMode:r,columnsCountBeforeGroups:a},t)),i._checkRowKeys(t.change),i._renderFreeSpaceRow(e),i._hasHeight||i.updateFreeSpaceRowHeight(e)},_renderRow:function(e,t){var n=this,i=t.row,o=n.option("rowTemplate");"data"!==i.rowType&&"group"!==i.rowType||b(i.groupIndex)||!o?n.callBase(e,t):n.renderTemplate(e,o,u({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,n=t.callBase(e),i=function e(){var n=t.getScrollable();n&&t.element().closest(a.document).length&&(t.resizeCompleted.remove(e),n._visibilityChanged(!0))};return b(t._getTableElement())?t._renderScrollable():(t._setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add(i)),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t,n=this,i=n.element();i.addClass(n.addWidgetPrefix(C)).toggleClass(n.addWidgetPrefix(S),!n.option("wordWrapEnabled")),i.toggleClass(M,0===n._dataController.items().length),n.setAria("role","presentation",i),t=n._renderTable({change:e}),n._updateContent(t,e),n.callBase(e),n._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t,n,i,o=this,a=e.column,r=e.row,s=r.data,l=r&&r.summaryCells,c=e.value,d=m.getDisplayValue(a,c,s,r.rowType);return t=this.callBase(e),t.value=c,t.displayValue=d,t.row=r,t.key=r.key,t.data=s,t.rowType=r.rowType,t.values=r.values,t.text=a.command?"":m.formatValue(d,a),t.rowIndex=r.rowIndex,t.summaryItems=l&&l[e.columnIndex],t.resized=a.resizedCallbacks,b(a.groupIndex)&&!a.command&&(n=o.option("grouping.texts"),i=o.option("scrolling.mode"),"virtual"!==i&&"infinite"!==i&&(t.groupContinuesMessage=s&&s.isContinuationOnNextPage&&n&&n.groupContinuesMessage,t.groupContinuedMessage=s&&s.isContinuation&&n&&n.groupContinuedMessage)),t},_setRowsOpacityCore:function(e,t,n,o){var a=this._columnsController,r=a.getColumns(),s=r&&r[n],l=s&&s.isBand&&s.index;d(e,function(r,s){if(!i(s).hasClass(I))for(var d=0;d<t.length&&(!(c.isNumeric(l)&&a.isParentBandColumn(t[d].index,l)||t[d].index===n)||(e.eq(r).children().eq(d).css({opacity:o}),c.isNumeric(l)));d++);})},_getDevicePixelRatio:function(){return a.devicePixelRatio},renderNoDataText:m.renderNoDataText,getCellOptions:function(e,t){var n,i,o=this._dataController.items()[e];return o&&(i=c.isString(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t],i&&(n=this._getCellOptions({value:i.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:i}))),n},getRow:function(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return i(t[e])}},getCellIndex:function(e){var t=e.length?e[0].cellIndex:-1;return t},updateFreeSpaceRowHeight:function(e){var t,n,i=this,o=i._dataController.items().length,a=i._findContentElement(),r=i._getFreeSpaceRowElements(e);if(r&&a){var c=!1;o>0?i._hasHeight?(r.hide(),s.deferUpdate(function(){var t=i.getScrollbarWidth(!0),n=i.element().height()-t,o=a.outerHeight(),l=n-o>0,d=i._getRowsHeight(a.children().first()),u=e||i.getTableElements(),h=Math.ceil(parseFloat(u.css("borderTopWidth"))),p=y.webkit&&i._getDevicePixelRatio()>=2?1:0,f=n-d-h-p;l&&s.deferRender(function(){r.css("height",f),c=!0,r.show()}),s.deferRender(function(){i._updateLastRowBorder(c)})})):(t=i._dataController.pageSize()-o,n=i.option("scrolling.mode"),t>0&&i._dataController.pageCount()>1&&"virtual"!==n&&"infinite"!==n&&(l.setHeight(r,t*i._rowHeight),c=!0),!c&&e?l.setHeight(r,0):r.toggle(c),i._updateLastRowBorder(c)):(r.css("height",0),r.show(),i._updateLastRowBorder(!0))}},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._hasHeight=!1,t.loadingChanged.add(function(t,n){e.setLoading(t,n)}),t.dataSourceChanged.add(function(){e._scrollLeft>=0&&e._handleScroll({scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})})},_handleDataChanged:function(e){var t=this;switch(e.changeType){case"refresh":case"prepend":case"append":case"update":t.render(null,e);break;default:t._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(e){var t=this._scrollableContainer&&this._scrollableContainer.get(0),n=0;return t&&(n=e?t.clientHeight?t.offsetHeight-t.clientHeight:0:t.clientWidth?t.offsetWidth-t.clientWidth:0),n>0?n:0},_fireColumnResizedCallbacks:function(){var e,t=this,n=t._lastColumnWidths||[],i=[],o=t.getColumns();for(e=0;e<o.length;e++)i[e]=o[e].visibleWidth,o[e].resizedCallbacks&&!b(o[e].groupIndex)&&n[e]!==i[e]&&o[e].resizedCallbacks.fire(i[e]);t._lastColumnWidths=i},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(R):this.element().removeClass(R)},_updateScrollable:function(){var e=v.getInstance(this.element());e&&(e.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),s.deferRender(function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),s.deferUpdate(function(){e._updateScrollable()})})},scrollTo:function(e){var t=this.element(),n=t&&v.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this,i=this.element();return 0===arguments.length?i?i.outerHeight(!0):0:(n._hasHeight=void 0===t?"auto"!==e:t,void(b(e)&&i&&l.setHeight(i,e)))},setLoading:function(e,t){var n,i=this,a=i._loadPanel,r=i._dataController,s=i.option("loadPanel")||{},l=r.isLoaded()?s.animation:null,c=i.element();o.hasWindow()&&(!a&&void 0!==t&&r.isLocalStore()&&"auto"===s.enabled&&c&&(i._renderLoadPanel(c,c.parent()),a=i._loadPanel),a&&(n={message:t||s.text,animation:l,visible:e},clearTimeout(i._hideLoadingTimeoutID),a.option("visible")&&!e?i._hideLoadingTimeoutID=setTimeout(function(){a.option(n)},P):a.option(n)))},setRowsOpacity:function(e,t){var n=this._getRowElements().not("."+I)||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t,n=this.callBase(e);return n&&(t=n.filter("."+D).index(),t>=0&&n.length>t+1)?n.slice(0,t+1):n},getTopVisibleItemIndex:function(){var e,t,n=this,i=0,o=0,a=0,r=n._scrollTop,s=n._findContentElement().offset().top,l=n._dataController.items(),c=n._getTableElement();if(l.length&&c){for(e=n._getRowElements(c).filter(":visible"),i=0;i<l.length;i++)if(o=a,t=e.eq(i),t.length&&(a=t.offset().top-s,a>r)){2*r<Math.round(a+o)&&i&&i--;break}i&&i===l.length&&i--}return i},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"twoWayBindingEnabled":t._invalidate(!0,!0),e.handled=!0;break;case"scrolling":t._rowHeight=null,t._tableElement=null,e.handled=!0;break;case"rtlEnabled":t._rowHeight=null,t._tableElement=null;break;case"loadPanel":t._tableElement=null,t._invalidate(!0,!0),e.handled=!0;break;case"noDataText":t.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID)},setScrollerSpacing:function(){}}}())}}},function(e,t,n){var i=n(2),o=n(13).getPublicElement,a=n(4).noop,r=n(3).each,s=n(46),l=n(161),c="dx-context-menu",d={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},u=["columnHeadersView","rowsView","footerView","headerPanel"],h=s.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,n,a,s,l,c,h,p,f,g=this,m=i(e.target);return r(u,function(){if(t=g.getView(this),c=t&&t.element(),c&&(c.is(m)||c.find(m).length)&&(p=m.closest("td"),h=p.closest(".dx-row"),a=t.getRowIndex(h),s=p[0]&&p[0].cellIndex,l=h.data("options"),n={event:e,targetElement:o(m),target:d[this],rowIndex:a,row:t._getRows()[a],columnIndex:s,column:l&&l.cells[s].column},n.items=t.getContextMenuItems&&t.getContextMenuItems(n),g.executeAction("onContextMenuPreparing",n),g._contextMenuPrepared(n),f=n.items))return!1}),f},_contextMenuPrepared:a}),p=s.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass(c);this.setAria("role","presentation",t),this._createComponent(t,l,{onPositioning:function(t){var n=t.event,i=t.component,o=e.getController("contextMenu").getContextMenuItems(n);o?(i.option("items",o),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}});e.exports={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:h},views:{contextMenuView:p}}},function(e,t,n){var i=n(2),o=n(5),a=n(18),r=n(3).each,s=n(46),l="dx-error-row",c="dx-error-message",d="dx-closebutton",u="action",h=s.ViewController.inherit({init:function(){var e=this;e._columnHeadersView=e.getView("columnHeadersView"),e._rowsView=e.getView("rowsView");
|
|
40
|
-
},_createErrorRow:function(e,t){var n,s,h=this,p=i("<div>").addClass(c).text(e);return t?(n=i("<tr>").addClass(l),s=i("<div>").addClass(d).addClass(h.addWidgetPrefix(u)),o.on(s,a.name,h.createAction(function(e){var n,o=e.event,a=i(o.currentTarget).closest("."+l).index();o.stopPropagation(),r(t,function(e,t){n=i(t).children("tbody").children("tr").eq(a),h.removeErrorRow(n)})})),i("<td>").attr({colSpan:h.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(s).append(p).appendTo(n),n):p},renderErrorRow:function(e,t,n){var o,a,s,l,d,u,h=this;return n?(n.find("."+c).remove(),a=h._createErrorRow(e),n.prepend(a),a):(d=t>=0||!h._columnHeadersView.isVisible()?h._rowsView:h._columnHeadersView,u=n||d.getTableElements(),r(u,function(n,r){if(a=h._createErrorRow(e,u),s=s||a,t>=0)o=d._getRowElements(i(r)).eq(t),h.removeErrorRow(o.next()),a.insertAfter(o);else{var c=i(r).children("tbody");l=c.children("tr"),h._columnHeadersView.isVisible()?(h.removeErrorRow(l.last()),i(r).append(a)):(h.removeErrorRow(l.first()),c.first().prepend(a))}}),s)},removeErrorRow:function(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(e=t&&t.find("."+l),!e||!e.length){var n=this._rowsView.element();e=n&&n.find("."+l)}}e&&e.hasClass(l)&&e.remove()},optionChanged:function(e){var t=this;switch(e.name){case"errorRowEnabled":e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:h},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add(function(n,i){var o=n&&n.message||n;e.option("errorRowEnabled")&&t.renderErrorRow(o,void 0,i)}),e.changed.add(function(){var t=e.getController("errorHandling"),n=e.getController("editing");n&&!n.hasChanges()&&t&&t.removeErrorRow()})}}}}}},function(e,t,n){var i=n(2),o=n(46),a=n(4),r=n(6),s=n(3).each,l=n(1),c=n(45),d=n(15),u=n(7),h=u.when,p=u.Deferred,f=n(12),g=n(29),m="table",_="borders",v="table-fixed",w="important-margin",x="text-content",y="dx-hidden",b="dx-gridbase-container",C="adaptiveHidden",k="input:not([type='hidden'])",S=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],I=function(e){return l.isString(e)&&"%"===e.slice(-1)},D=function(e,t){var n,i=[];if(e&&t&&e.length&&e.length===t.length)for(n=0;n<e.length;n++)i.push(e[n]>t[n]?e[n]:t[n]);else e&&e.length?i=e:t&&(i=t);return i},T=function(e){var t=e.get(0).clientHeight,n=parseFloat(e.css("paddingTop")),i=parseFloat(e.css("paddingBottom"));return t-n-i},E=function(e,t){var n=e._rowsView.contentWidth(),i=e._getTotalWidth(t,n);return n-i},A=function(e,t,n,i){return E(e,i.map(function(e,i){return i===t?n:e}))},B=function(e,t){e.focus(),c.setSelectionRange(e,t)},O=o.ViewController.inherit({_initPostRenderHandlers:function(){var e=this,t=e._dataController;e._refreshSizesHandler||(e._refreshSizesHandler=function(n){t.changed.remove(e._refreshSizesHandler);var i,o=n&&n.changeType,a=n&&n.isDelayed,r=t.items();n&&"refresh"!==o&&"prepend"!==o&&"append"!==o?"update"===o&&n.changeTypes&&(!(r.length>1||"insert"!==n.changeTypes[0])||0===r.length&&"remove"===n.changeTypes[0]?i=e.resize():e._rowsView.resize()):a||(i=e.resize()),o&&"updateSelection"!==o&&!a&&h(i).done(function(){e._setAriaRowColCount(),e.component._fireContentReadyAction()})},e._dataController.changed.add(function(){e._dataController.changed.add(e._refreshSizesHandler)}))},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children("."+b))},_getBestFitWidths:function(){if(!this.option("legacyRendering"))return this._rowsView.getColumnWidths();var e,t,n,i,o=this;return e=o._rowsView.getColumnWidths(),t=o._columnHeadersView&&o._columnHeadersView.getColumnWidths(),n=o._footerView&&o._footerView.getColumnWidths(),i=D(e,t),i=D(i,n)},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),s(e,function(e,i){var o=i.command?"command:"+i.command:i.index;n.columnOption(o,"visibleWidth",t[e])}),n.endUpdate()},_toggleBestFitModeForView:function(e,t,n){if(e){var i,o=this._rowsView._getTableElement(),a=e._getTableElement();a&&(i=n?a.children("tbody").appendTo(o):o.children("."+t).appendTo(a),i.toggleClass(t,n),i.toggleClass(this.addWidgetPrefix("best-fit"),n))}},_toggleBestFitMode:function(e){var t=this.component.$element(),n=this;if(n.option("legacyRendering"))t.find("."+this.addWidgetPrefix(m)).toggleClass(this.addWidgetPrefix(v),!e),t.find(k).toggleClass(y,e),t.find(".dx-group-cell").toggleClass(y,e),t.find(".dx-header-row ."+this.addWidgetPrefix(x)).css("maxWidth","");else{var i=n._rowsView._getTableElement(),o=n._rowsView.getTableElements().eq(1);i.css("tableLayout",e?"auto":"fixed"),i.children("colgroup").css("display",e?"none":""),o.toggleClass(this.addWidgetPrefix(v),!e),n._toggleBestFitModeForView(n._columnHeadersView,"dx-header",e),n._toggleBestFitModeForView(n._footerView,"dx-footer",e),n._needStretch()&&(i.get(0).style.width=e?"auto":""),g.msie&&11===parseInt(g.version)&&i.find("."+this.addWidgetPrefix(v)).each(function(){this.style.width=e?"10px":""})}},_synchronizeColumns:function(){var e,t,n,i,o=this,r=o._columnsController,d=r.getVisibleColumns(),u=o.option("columnAutoWidth"),h=o.option("legacyRendering"),p=o._needBestFit(),m=!1,_=!1,v=[],w=function(){var e;s(d,function(t,n){"expand"===n.command&&(e=v[t])}),s(d,function(t,n){"expand"===n.command&&e&&(v[t]=e)})};!p&&s(d,function(e,t){if("auto"===t.width||h&&t.fixed)return p=!0,!1}),s(d,function(e,t){if(t.minWidth)return m=!0,!1}),o._setVisibleWidths(d,[]),p&&(t=f.getActiveElement(),i=c.getSelectionRange(t),o._toggleBestFitMode(!0),e=!0),a.deferUpdate(function(){p?(v=o._getBestFitWidths(),s(d,function(e,t){var n=t.command?"command:"+t.command:t.index;r.columnOption(n,"bestFitWidth",v[e],!0)})):m&&(v=o._getBestFitWidths()),s(d,function(e){var t=this.width;"auto"!==t&&(l.isDefined(t)?v[e]=l.isNumeric(t)?parseFloat(t):t:u||(v[e]=void 0))}),e&&(o._toggleBestFitMode(!1),e=!1,t&&t!==f.getActiveElement()&&(n=t.getBoundingClientRect().bottom<0,n||(g.msie?setTimeout(function(){B(t,i)}):B(t,i)))),_=o._correctColumnWidths(v,d),u&&(w(),o._needStretch()&&o._processStretch(v,d)),a.deferRender(function(){(p||_)&&o._setVisibleWidths(d,v)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this.option("legacyRendering")||this._columnsController.getVisibleColumns().some(function(e){return"auto"===e.width&&!e.command})},_getAverageColumnsWidth:function(e){var t=E(this,e),n=e.filter(function(e){return void 0===e}).length;return t/n},_correctColumnWidths:function(e,t){var n,i,o,a=this,r=!1,s=!1,d=!1,u=a.component.$element(),h=a._hasWidth;for(n=0;n<t.length;n++){var p=n,f=t[p],g=e[p]===C,m=e[p],_=f.minWidth;if(_)if(void 0===m)i=a._getAverageColumnsWidth(e),m=i;else if(I(m)){var v=A(a,p,_,e);v<0&&(m=-1)}m<_&&!g&&(e[p]=_,d=!0,n=-1),l.isDefined(f.width)||(s=!0),I(f.width)&&(r=!0)}if(u&&a._maxWidth&&(delete a._maxWidth,u.css("maxWidth","")),!s&&e.length){var w=a._rowsView.contentWidth(),x=a._rowsView.getScrollbarWidth(),y=a._getTotalWidth(e,w);y<w&&(o=c.getLastResizableColumnIndex(t,e),o>=0&&(e[o]="auto",d=!0,h||r||(a._maxWidth=y+x+(a.option("showBorders")?2:0),u.css("maxWidth",a._maxWidth))))}return d},_processStretch:function(e,t){var n,i,o,a,r=this._rowsView.contentWidth(),l=this._getTotalWidth(e,r),c={length:0};if(e.length&&(s(t,function(t){(this.width||e[t]===C)&&(c[t]=!0,c.length++)}),n=r-l,i=Math.floor(n/(e.length-c.length)),o=n-i*(e.length-c.length),n>=0))for(a=0;a<e.length;a++)c[a]||(e[a]+=i,o>0&&(o<1?(e[a]+=o,o=0):(e[a]++,o--)))},_getTotalWidth:function(e,t){var n,i,o=0;for(i=0;i<e.length;i++)n=e[i],n&&n!==C&&(o+=I(n)?parseFloat(n)*t/100:parseFloat(n));return Math.round(o)},updateSize:function(e){var t,n,i=this,o=i.addWidgetPrefix(w);void 0===i._hasHeight&&e&&e.is(":visible")&&(t=e.children("."+i.getWidgetContainerClass()),t.length&&t.detach(),i._hasHeight=!!T(e),n=e.width(),e.addClass(o),i._hasWidth=e.width()===n,e.removeClass(o),t.length&&t.appendTo(e))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var n=t._resizeDeferred,i=t._resizeDeferred=new p;return h(n).always(function(){a.deferRender(function(){t._dataController.isLoaded()&&t._synchronizeColumns(),a.deferUpdate(function(){a.deferRender(function(){a.deferUpdate(function(){t._updateDimensionsCore()})})})}).done(i.resolve).fail(i.reject)}),i.promise()}},_checkSize:function(e){var t=this.component.$element();return!(e&&(this._lastWidth===t.width()&&this._lastHeight===t.height()||!t.is(":visible")))},_updateDimensionsCore:function(){var e,t,n=this,o=n._dataController,r=n._rowsView,l=n._columnHeadersView,c=n._footerView,d=n.component.$element(),u=d.children().get(0),h=d&&(d.get(0).clientHeight||d.height()),p=parseFloat(d.css("maxHeight")),f=p&&h>=p,g=n.option("height")||d.get(0).style.height,m=n.getController("editorFactory"),_=f&&u.scrollHeight===u.offsetHeight;n.updateSize(d),e=n._hasHeight||f,g&&n._hasHeight^"auto"!==g&&(t=i("<div>").height(g).appendTo(d),n._hasHeight=!!t.height(),t.remove()),a.deferRender(function(){return r.height(null,e),f&&!_&&i(u).css("height",p),o.isLoaded()?void a.deferUpdate(function(){n._updateLastSizes(d);var t=e?r.getScrollbarWidth():0,i=r.getScrollbarWidth(!0);a.deferRender(function(){l&&l.setScrollerSpacing(t),c&&c.setScrollerSpacing(t),r.setScrollerSpacing(t,i)}),s(S,function(e,t){var i=n.getView(t);i&&i.resize()}),m&&m.resize()}):void r.setLoading(!0)})},_updateLastSizes:function(e){this._lastWidth=e.width(),this._lastHeight=e.height()},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"legacyRendering":case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){var e=this;e._dataController=e.getController("data"),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._footerView=e.getView("footerView"),e._rowsView=e.getView("rowsView")}}),R=o.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i<e.length;i++)e[i]&&e[i].name!==n&&e[i].scrollTo({left:t.left,top:t.top})},init:function(){var e,t,n=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")];for(t=0;t<n.length;t++)e=n[t],e&&e.scrollChanged.add(this._scrollChangedHandler.bind(this,n))}}),M=o.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){var e=this;e._resizingController=e.getController("resizing"),e._dataController=e.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){var t=this;l.isDefined(t._groupElement)&&"showBorders"===e.name?(t._groupElement.toggleClass(t.addWidgetPrefix(_),!!e.value),e.handled=!0):t.callBase(e)},_renderViews:function(e){var t=this;s(S,function(n,i){var o=t.getView(i);o&&o.render(e)})},_getTableRoleName:function(){return"grid"},render:function(e){var t=this,n=!t._groupElement,o=t._groupElement||i("<div>").addClass(t.getWidgetContainerClass());o.addClass(b),o.toggleClass(t.addWidgetPrefix(_),!!t.option("showBorders")),t.setAria("role","presentation",e),t.component.setAria({role:this._getTableRoleName(),label:d.format(t._getWidgetAriaLabel())},o),t._rootElement=e||t._rootElement,n&&(t._groupElement=o,r.hasWindow()&&t.getController("resizing").updateSize(e),o.appendTo(e)),t._renderViews(o)},update:function(){var e=this,t=e._rootElement,n=e._groupElement,i=e.getController("resizing");t&&n&&(i.resize(),e._dataController.isLoaded()&&e.component._fireContentReadyAction())}});e.exports={defaultOptions:function(){return{showBorders:!1,renderAsync:!1,legacyRendering:!1}},controllers:{resizing:O,synchronizeScrolling:R},views:{gridView:M}}},function(e,t,n){var i=n(2),o=n(311),a=n(197),r=n(4).noop,s=n(1).isDefined,l=n(13);n(160);var c="header-panel",d="toolbar-button",u=a.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return i("<div>").addClass(this.addWidgetPrefix(d))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(d)+t},_getToolbarOptions:function(){var e,t={toolbarOptions:{items:this._getToolbarItems(),onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}};return this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!s(t.toolbarOptions.visible)&&(e=t.toolbarOptions.items,t.toolbarOptions.visible=!(!e||!e.length)),t.toolbarOptions},_renderCore:function(){this._toolbar?this._toolbar.option(this._toolbarOptions):(this.element().addClass(this.addWidgetPrefix(c)),this._toolbar=this._createComponent(i("<div>").appendTo(this.element()),o,this._toolbarOptions))},_columnOptionChanged:r,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["designMode","disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=n.option("items")||[],o=i.indexOf(i.filter(function(t){return t.name===e})[0]);if(o>=0){var a="items["+o+"]";n.option(a+".options")?n.option(a+".options.disabled",t):n.option(a+".disabled",t)}}},updateToolbarDimensions:function(){this._toolbar&&l.triggerResizeEvent(this.getHeaderPanel())},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){"onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:r});e.exports={defaultOptions:function(){return{}},views:{headerPanel:u},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}}},function(e,t,n){var i=n(4),o=n(1).isDefined,a=n(0).extend,r=n(381),s=n(7).Deferred,l=i.equalByValue,c=function(e){var t=e.getController("columns"),n=e.getController("selection"),o=e.getController("export"),r=e.getController("data"),s=e.getView("pagerView");t&&t.columnsChanged.add(function(){var n=t.getUserState(),o=i.getKeyHash(n),r=i.getKeyHash(e._state.columns);l(r,o)||(a(e._state,{columns:n}),e.isEnabled()&&e.save())}),n&&n.selectionChanged.add(function(t){a(e._state,{selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter}),e.isEnabled()&&e.save()}),r&&(e._initialPageSize=e.option("paging.pageSize"),r.changed.add(function(){var t=r.getUserState();a(e._state,t,{allowedPageSizes:s?s.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue")}),e.isEnabled()&&e.save()})),o&&o.selectionOnlyChanged.add(function(){a(e._state,{exportSelectionOnly:o.selectionOnly()}),e.isEnabled()&&e.save()})};e.exports={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:r.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add(function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var n=e.component.getView("columnHeadersView");n&&n.render(),e.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),c(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState(a({},e)),t},applyState:function(e){var t=this,n=e.allowedPageSizes,i=e.searchText,a=e.selectedRowKeys,r=e.selectionFilter,s=t.getController("export"),l=t.getController("columns"),c=t.getController("data"),d=t.getController("filterSync"),u=t.option("scrolling.mode");t.component.beginUpdate(),l&&l.setUserState(e.columns),s&&s.selectionOnly(e.exportSelectionOnly),t.option("selectedRowKeys",a||[]),t.option("selectionFilter",r),n&&"auto"===t.option("pager.allowedPageSizes")&&(t.option("pager").allowedPageSizes=n),t.component.endUpdate(),t.option("searchPanel.text",i||""),t.option("filterValue",e.filterValue||(d?d.getFilterValueFromColumns(e.columns):null)),t.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),t.option("paging.pageSize","virtual"!==u&&"infinite"!==u&&o(e.pageSize)?e.pageSize:t._initialPageSize),t.option("paging.pageIndex",e.pageIndex||0),c&&c.reset()}},columns:{getVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return t.isEnabled()&&!t.isLoaded()?[]:e}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=e.callBase,n=e.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(e._restoreStateTimeoutID);var i=new s;return e._restoreStateTimeoutID=setTimeout(function(){n.load().always(function(){e._restoreStateTimeoutID=null,t.call(e),e.stateLoaded.fire(),i.resolve()})}),i.promise()}e.isStateLoading()||t.call(e)},isLoading:function(){var e=this,t=e.getController("stateStoring");return this.callBase()||t.isLoading()},isStateLoading:function(){return o(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}}}}}},function(e,t,n){var i=n(5),o=n(6).getWindow(),a=n(46),r=n(21),s=n(29),l=n(154).sessionStorage,c=n(0).extend,d=n(3).each,u=n(1),h=n(7).fromPromise,p=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,f=function e(t){t&&d(t,function(n,i){var o;u.isPlainObject(i)||Array.isArray(i)?e(i):"string"==typeof i&&(o=p.exec(i),o&&(t[n]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6]))))})};t.StateStoringController=a.ViewController.inherit(function(){var e=function(e){var t="sessionStorage"===e.type?l():o.localStorage;if(!t)throw"file:"===o.location.protocol&&s.msie?new Error("E1038"):new Error("E1007");return t},t=function(e){return u.isDefined(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var n=this.option("stateStoring");if("custom"===n.type)return n.customLoad&&n.customLoad();try{return JSON.parse(e(n).getItem(t(n)))}catch(e){r.log(e.message)}},_saveState:function(n){var i=this.option("stateStoring");if("custom"===i.type)return void(i.customSave&&i.customSave(n));try{e(i).setItem(t(i),JSON.stringify(n))}catch(e){}},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},i.on(o,"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e,t=this;return t._isLoading=!0,e=h(t._loadState()),e.done(function(e){t._isLoaded=!0,t._isLoading=!1,t.state(e)}),e},state:function(e){var t=this;return arguments.length?(t._state=c({},e),void f(t._state)):c(!0,{},t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(function(){e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))},optionChanged:function(e){var t=this;switch(e.name){case"stateStoring":t.isEnabled()&&!t.isLoading()&&t.load(),e.handled=!0;break;default:t.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),i.off(o,"unload",this._windowUnloadHandler)}}}())},function(e,t,n){var i=n(2),o=n(5),a=n(27),r=n(45),s=n(1),l=n(3).each,c=n(0).extend,d=n(40),u=n(18),h=n(15),p=n(9),f=n(90),g=n(263),m=n(7).Deferred,_="dx-editor-cell",v="dx-row",w="dx-selection",x="dx-select-checkbox",y="dx-select-checkboxes-hidden",b="dx-command-select",C="dx-selection-disabled",k="dx-data-row",S="selection.showCheckBoxesMode",I="selection.mode",D=function(e,t){var n=e.getController("selection"),o=e.getView("rowsView"),a=i(t.target).closest("."+k),r=o.getRowIndex(a);r<0||("onLongTap"===e.option(S)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(S)&&n.startSelectionWithCheckboxes(),"always"!==e.option(S)&&n.changeItemSelection(r,{control:!0})))};t.SelectionController=a.Controller.inherit(function(){var e=function(e,t){var n=0,i=e._dataController.store(),o=i&&i.key(),a=Array.isArray(o);if(!t.length)return!1;if(a&&Array.isArray(t[0])&&"and"===t[1]){for(var r=0;r<t.length;r++)if(Array.isArray(t[r])){if(t[r][0]!==o[n]||"="!==t[r][1])return!0;n++}return!1}return o!==t[0]},t=function(e,t){var n=t.component.getView("rowsView");n.renderSelectCheckBoxContainer(i(e),t)},n=function(e,t){var n=t.column,o=i(e),a=t.component.getView("columnHeadersView");o.addClass(_),a._renderSelectAllCheckBox(o,n),a._attachSelectAllCheckBoxClickEvent(o)};return{init:function(){var e=this,t=e.getController("data"),n=e.option("selection")||{};e._dataController=t,e._selectionMode=e.option(I),e._isSelectionWithCheckboxes=!1,e._selection=e._createSelection({selectedKeys:e.option("selectedRowKeys"),mode:e._selectionMode,deferred:n.deferred,maxFilterLengthInRequest:n.maxFilterLengthInRequest,selectionFilter:e.option("selectionFilter"),key:function(){return t&&t.key()},keyOf:function(e){return t&&t.keyOf(e)},dataFields:function(){return t.dataSource()&&t.dataSource().select()},load:function(e){return t.dataSource()&&t.dataSource().load(e)||(new m).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return e&&"data"===e.rowType&&!e.inserted},getItemData:function(e){return e&&(e.oldData||e.data||e)},filter:function(){return t.getCombinedFilter()},totalCount:function(){return t.totalCount()},onSelectionChanged:e._updateSelectedItems.bind(this)}),e._updateSelectColumn(),e.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_updateSelectColumn:function(){var e=this.getController("columns"),i=this.isSelectColumnVisible();e.addCommandColumn({command:"select",visible:i,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:b,width:"auto",cellTemplate:t,headerCellTemplate:n}),e.columnOption("command:select","visible",i)},_createSelection:function(e){return new g(e)},_fireSelectionChanged:function(e){e&&this.executeAction("onSelectionChanged",e);var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t)},_updateCheckboxesState:function(t){var n=t.isDeferredMode,i=t.selectionFilter,o=t.selectedItemKeys,a=t.removedItemKeys;"onClick"===this.option(S)&&((n?i&&e(this,i):o.length>1)?this.startSelectionWithCheckboxes():(n?i&&!i.length:0===o.length&&a.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t,n=this,i=n.option("selection.deferred"),o=n._selection.selectionFilter(),a=n._dataController,r=a.items();if(r){var s=n.isSelectionWithCheckboxes(),l=n.getChangedItemIndexes(r);n._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:o,isDeferredMode:i}),(l.length||s!==n.isSelectionWithCheckboxes())&&a.updateItems({changeType:"updateSelection",itemIndexes:l}),i?(n.option("selectionFilter",o),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(n._selectedItemsInternalChange=!0,n.option("selectedRowKeys",e.selectedItemKeys.slice(0)),n._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),n._fireSelectionChanged(t)}},getChangedItemIndexes:function(e){for(var t=this,n=[],i=this.option("selection.deferred"),o=0,a=e.length;o<a;o++){var r=e[o],s=t.isRowSelected(i?r.data:r.key);t._selection.isDataItem(r)&&r.isSelected!==s&&n.push(o)}return n},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"selection":var n=t._selectionMode;t.init();var i=t._selectionMode,o=t.option("selectedRowKeys");n!==i&&("single"===i?o.length>1&&(o=[o[0]]):"multiple"!==i&&(o=[])),t.selectRows(o).always(function(){t._fireSelectionChanged()}),t.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":Array.isArray(e.value)&&!t._selectedItemsInternalChange&&t.component.getDataSource()&&t.selectRows(e.value),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(I)&&("always"===this.option(S)||"onClick"===this.option(S)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(S)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new m).resolve().promise()},selectedItemKeys:function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),l(e,function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)}),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t){return t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0),this._selection.changeItemSelection(this._dataController.getRowIndexDelta()+e,t)},focusedItemIndex:function(e){var t=this;return s.isDefined(e)?void(t._selection._focusedItemIndex=e):t._selection._focusedItemIndex},isSelectionWithCheckboxes:function(){return"multiple"===this.option(I)&&("always"===this.option(S)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){var e=this;return"multiple"===e.option(I)&&!e.isSelectionWithCheckboxes()&&(e._isSelectionWithCheckboxes=!0,e._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){var e=this;return!!e._isSelectionWithCheckboxes&&(e._isSelectionWithCheckboxes=!1,e._updateSelectColumn(),!0)}}}()),e.exports={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:t.SelectionController},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done(function(){e.getController("selection").refresh()})},_processDataItem:function(e,t){var n=this,i=n.getController("selection"),o=i.isSelectColumnVisible(),a=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,r=this.callBase.apply(this,arguments);if(r.isSelected=i.isRowSelected(a?r.data:r.key),o&&r.values)for(var s=0;s<t.visibleColumns.length;s++)if("select"===t.visibleColumns[s].command){r.values[s]=r.isSelected;break}return r},refresh:function(){var e=this,t=new m;return this.callBase.apply(this,arguments).done(function(){e.getController("selection").refresh().done(t.resolve).fail(t.reject)}).fail(t.reject),t.promise()},_handleDataChanged:function(e){this.callBase.apply(this,arguments),e&&"refresh"!==e.changeType||this.getController("selection").focusedItemIndex(-1)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||D(this,t)}}},views:{columnHeadersView:{init:function(){var e=this;e.callBase(),e.getController("selection").selectionChanged.add(e._updateSelectAllValue.bind(e))},_updateSelectAllValue:function(){var e=this,t=e.element(),n=t&&t.find("."+x);t&&n.length&&"multiple"===e.option("selection.mode")&&n.dxCheckBox("instance").option("value",e.getController("selection").isSelectAll())},_handleDataChanged:function(e){this.callBase(e),e&&"refresh"!==e.changeType||this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,t){var n,o=this,a=o.getController("selection");return n=i("<div>").appendTo(e).addClass(x),o.setAria("label",h.format("dxDataGrid-ariaSelectAll"),e),o.getController("editorFactory").createEditor(n,c({},t,{parentType:"headerRow",dataType:"boolean",value:a.isSelectAll(),editorOptions:{visible:o.option("selection.allowSelectAll")||a.isSelectAll()!==!1},tabIndex:-1,setValue:function(e,t){var n=o.option("selection.allowSelectAll");t.component.option("visible",n||t.component.option("value")!==!1),t.event&&a.isSelectAll()!==e&&(t.value&&!n?t.component.option("value",!1):t.value?a.selectAll():a.deselectAll(),t.event.preventDefault())}})),n},_attachSelectAllCheckBoxClickEvent:function(e){o.on(e,u.name,this.createAction(function(e){var t=e.event;i(t.target).closest("."+x).length||o.trigger(i(t.currentTarget).children("."+x),u.name),t.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.inserted?r.setEmptyText(e):(e.addClass(_),this._attachCheckBoxClickEvent(e),this.setAria("label",h.format("dxDataGrid-ariaSelectRow"),e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var n=i("<div>").addClass(x).appendTo(e);return this.getController("editorFactory").createEditor(n,c({},t.column,{parentType:"dataRow",dataType:"boolean",value:t.value,tabIndex:-1,setValue:function(t,n){n&&n.event&&"keydown"===n.event.type&&o.trigger(e,u.name,n)},row:t.row})),n},_attachCheckBoxClickEvent:function(e){o.on(e,u.name,this.createAction(function(e){var t=this.getController("selection"),n=e.event,o=this.getRowIndex(i(n.currentTarget).closest("."+v));o>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(o,{shift:n.shiftKey}),i(n.target).closest("."+x).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[o]}))}))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&(l(n,function(n,o){l(e.itemIndexes||[],function(n,a){var r,s;e.items[a]&&(r=t._getRowElements(i(o)).eq(a),s=e.items[a].isSelected,r.toggleClass(w,void 0!==s&&s).find("."+x).dxCheckBox("option","value",s),
|
|
34
|
+
"dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceEvery":"Every","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of"}}},function(e,t,n){e.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","hi-Latn":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"}},function(e,t,n){n(119),n(109),e.exports=DevExpress.framework={},DevExpress.framework.dxCommand=n(174),DevExpress.framework.Router=n(141),DevExpress.framework.StateManager=n(175),DevExpress.framework.ViewCache=n(82),DevExpress.framework.NullViewCache=n(82).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=n(82).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=n(82).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=n(82).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=n(176),DevExpress.framework.dxView=n(63).dxView,DevExpress.framework.dxLayout=n(63).dxLayout,DevExpress.framework.dxViewPlaceholder=n(63).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=n(63).dxContentPlaceholder,DevExpress.framework.dxTransition=n(63).dxTransition,DevExpress.framework.dxContent=n(63).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=n(231),DevExpress.framework.Route=n(141).Route,DevExpress.framework.MemoryKeyValueStorage=n(175).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=n(142),DevExpress.framework.NavigationManager=n(111),DevExpress.framework.createActionExecutors=n(233).createActionExecutors,DevExpress.framework.Application=n(232).Application;var i=n(234);DevExpress.framework.DefaultBrowserAdapter=i.DefaultBrowserAdapter,DevExpress.framework.OldBrowserAdapter=i.OldBrowserAdapter,DevExpress.framework.BuggyAndroidBrowserAdapter=i.BuggyAndroidBrowserAdapter,DevExpress.framework.HistorylessBrowserAdapter=i.HistorylessBrowserAdapter,DevExpress.framework.BuggyCordovaWP81BrowserAdapter=i.BuggyCordovaWP81BrowserAdapter,DevExpress.framework.CommandMapping=n(178),DevExpress.framework.HistoryBasedNavigationDevice=n(142).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=n(142).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=n(111).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=n(111).StackBasedNavigationManager,DevExpress.framework.NavigationStack=n(111).NavigationStack,DevExpress.framework.utils=n(110).utils,DevExpress.framework.templateProvider=n(110).templateProvider,DevExpress.framework.html.CommandManager=n(235),DevExpress.framework.html.HtmlApplication=n(231),DevExpress.framework.html.layoutSets=n(143).layoutSets,DevExpress.framework.html.animationSets=n(143).animationSets,DevExpress.framework.html.DefaultLayoutController=n(179).DefaultLayoutController,DevExpress.framework.html.layoutSets=n(179).layoutSets,DevExpress.framework.html.MarkupComponent=n(177).MarkupComponent,DevExpress.framework.html.ViewEngine=n(237).ViewEngine,DevExpress.framework.html.ViewEngineComponents=n(63);var o=n(236);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:o.dxToolbar,dxList:o.dxList,dxNavBar:o.dxNavBar,dxPivot:o.dxPivot,dxSlideOut:o.dxSlideOut}},function(e,t,n){var i=n(2),o=n(56),a=n(19),r=n(17),s=n(37),l=n(1).isPlainObject,c=n(138),d=n(28),u=n(228),h=n(48),p=n(229),f=n(30),g="dxKoLocks",m="dxKoCreation",_=[],v=function(e,t){t.subclassOf(h)&&_.push(e),o.bindingHandlers[e]={init:function(e,n){var c,h,_=i(e),v=a(),w={},x=f().knockout,y=x&&x.isBindingPropertyPredicateName,b={onInitializing:function(){w=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());c&&c.beginUpdate(),h=y&&e&&e[y],T(e),c&&c.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),c=this},modelByElement:function(e){if(e.length)return o.dataFor(e.get(0))},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:v,integrationOptions:{watchMethod:function(e,t,n){n=n||{};var i=n.skipImmediate,a=o.computed(function(){var n=o.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),r.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var a=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(a),o.applyBindings(e.model,a)}}}},createTemplate:function(e){return new u(e)}}},C={},k=function(e,t,n){var i=_.data(g),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(C[e]=t),c){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(c.option,c,[e,a]):c.option(e,a)}finally{i.release(e)}}else b[e]=a},S=function(e){var t=e.fullName,n=e.value;if(t in C){var i=this._$element,o=i.data(g);if(!o.locked(t)){o.obtain(t);try{C[t](n)}finally{o.release(t)}}}},I=function(){v.add(S),_.data(m,!0).data(g,new p),new t(_,b),b=null},D=function(t,n,i){if(i!==y)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];k(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(w[i]||T(a,i))}else k(i,t[n],!1)},T=function(e,t){for(var n in e)e.hasOwnProperty(n)&&D(e,n,t?[t,n].join("."):n)};return I(),{controlsDescendantBindings:t.subclassOf(d)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=_)};c.add(function(e,t){v(e,t)})},function(e,t,n){var i=n(56),o=function e(t){var n=i.contextFor(t);return!n&&t.parentNode?e(t.parentNode):t};e.exports.getClosestNodeWithContext=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(12),r=n(6),s=n(51).add,l=r.getWindow(),c=r.getNavigator(),d=n(5),u=n(32),h=n(24),p=n(59).compare,f=n(73),g=n(0).extend,m=n(11).inArray,_=n(13).getPublicElement,v=f.changeCallback,w=n(136).hideCallback,x=n(77),y=n(31).fitIntoRange,b=n(13),C=n(4).noop,k=n(1),S=n(3).each,I=n(14),D=n(29),T=n(8),E=n(28),A=n(155),B=n(57),O=n(78),R=n(9),M=n(25),P=n(204),V=n(122),F=n(7).Deferred,H="dx-overlay",$="dx-overlay-wrapper",L="dx-overlay-content",z="dx-overlay-shader",N="dx-overlay-modal",W="dx-state-invisible",q="content",G="dx-rtl",K=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],j=1500,U=[],Y="dx-state-disabled",X=9,Z={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},J=I.real(),Q=J.version,ee=D.mozilla&&"desktop"===J.deviceType,te="ios"===J.platform,ne=D.safari&&"desktop"!==J.deviceType,ie=te&&p(Q,[7,1])<0,oe="android"===J.platform&&0===p(Q,[4,0],2)&&c.userAgent.indexOf("Chrome")===-1,ae=function(e){if((ie||ee)&&e.width(),oe){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},re=function(e){return e&&o(e.target||e)};s(function(){d.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=U.length-1;t>=0;t--)if(!U[t]._proxiedDocumentDownHandler(e))return})});var se=E.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:y(e,-i.top,i.bottom),left:y(t,-i.left,i.right)};this._changePosition(o)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=I.real(),t=e.platform,n=e.version;return"android"===t&&p(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!r.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return q},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass($),this._$content=o("<div>").addClass(L);var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(H),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),d.on(this._$wrapper,"MSPointerDown",C),d.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();S(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var o=i.split("."),a=t;a;){if(1===o.length){k.isPlainObject(a)&&(a[o.shift()]=e);break}a=a[o.shift()]}})}},_initContainer:function(e){e=void 0===e?f.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=o(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},S(K,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");k.isFunction(t)&&(t=t(e));var n=this._$content,i=o(l.document).is(e.target)||b.contains(l.document,e.target),a=i&&!(n.is(e.target)||b.contains(n.get(0),e.target));return a&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new V(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return U},_zIndexInitValue:function(){return j},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return k.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new F;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return t.resolve();if(this._currentVisible)return(new F).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),o=i&&i.start||C,a=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(i,function(){e.option("focusStateEnabled")&&d.trigger(e._focusTarget(),"focus"),a.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),t.resolve()},function(){o.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(r)):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new F).resolve().promise();this._currentVisible=!1;var e=this,t=new F,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),o=i&&i.start||C,a=i&&i.complete||C,r={cancel:!1};return this._actions.onHiding(r),r.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),a.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),o.apply(this,arguments)})),t.promise()},_forceFocusLost:function(){var e=a.getActiveElement();e&&this._$content.find(e).length&&e.blur()},_animate:function(e,t,n){e?(n=n||e.start||C,u.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){u.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||b.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(W,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),b.triggerShownEvent(this._$content),b.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=m(this,t);if(e){if(n===-1){var i=t.length;this._zIndex=(i?t[i-1]._zIndex:this._zIndexInitValue())+1,t.push(this)}this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)}else n!==-1&&t.splice(n,1)},_toggleShading:function(e){this._$wrapper.toggleClass(N,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(z,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=R.addNamespace("keydown",this.NAME);e?d.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):d.off(a.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(B.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(B.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if(e.keyCode===X&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),r=0===t.length,s=!b.contains(this._$wrapper.get(0),e.target);if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;d.trigger(l,"focusin"),d.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?w.add(this._hideTopOverlayHandler):w.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=re(t).parents(),a=R.addNamespace("scroll",this.NAME);"generic"===I.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),d.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(d.on(i,a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");k.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._$content.appendTo(this.$element()),this._renderVisibilityAnimate(this.option("visible"))},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();return t?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=o(this);if("none"===e.css("display"))return t=!0,!1}),t||!a.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this.$element();this._$content.appendTo(e);var t=this.option("contentTemplate"),n=this._getTemplate(t),i=this._getAnonymousTemplateName()===t;n&&n.render({container:_(this.$content()),noModel:!0,transclude:i}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=R.addNamespace(O.start,this.NAME),n=R.addNamespace(O.move,this.NAME);d.off(e,t),d.off(e,n),this.option("dragEnabled")&&(d.on(e,t,this._dragStartHandler.bind(this)),d.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,P,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=R.addNamespace(O.move,this.NAME);d.off(e,t),d.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:C,_clearSelection:C,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){var e=f.originalViewPort().get(0)||this.option("container"),t=e?this._$container:o(l);return t},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),r=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var l=a.getDocument(),c=Math.max(o(l).outerHeight(),s),d=Math.max(o(l).outerWidth(),r);s=c,r=d}return{width:r-n,height:s-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=h.locate(this._$content);h.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=h.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:n?e.top+i.top+o.v:0,bottom:n?-e.top-i.top+t.height-o.v:0,left:n?e.left+i.left+o.h:0,right:n?-e.left-i.left+t.width-o.h:0}},_fireContentReadyAction:function(){this.option("visible")&&this._moveToContainer(),this.callBase.apply(this,arguments)},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element();this._$container&&this._$container[0]!==e.parent()[0]?this._$wrapper.appendTo(this._$container):this._$wrapper.appendTo(e)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&ne&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(){this.option("visible")&&r.hasWindow()&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._fixHeightAfterSafariAddressBarResizing(),this._renderShading(),this._renderDimensions();var e=this._renderPosition();this._actions.onPositioned({position:e})},_renderShading:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)&&!te?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();x.setup(this._$wrapper,{my:"top left",at:"top left",of:e})}},_renderShadingDimensions:function(){var e,t;if(this.option("shading")){var n=this._getContainer();e=this._isWindow(n)?"100%":n.outerWidth(),t=this._isWindow(n)?"100%":n.outerHeight()}else e="",t="";this._$wrapper.css({width:e,height:t})},_isWindow:function(e){return!!e&&k.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||l:null;return re(t||n)},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var e=this._transformStringPosition(this._position,Z),t=x.setup(this._$content,e);return ae(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:y(0,-n.top,n.bottom),left:y(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return k.isString(e)&&(e=g({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new A({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent,n=o(t.target);n.is(this._$content)&&this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){u.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Y,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(G,e)},_optionChanged:function(e){var t=e.value;if(m(e.name,K)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,
|
|
35
|
+
this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return(new F).resolve().promise();var t=new F;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return _(this._$content)},repaint:function(){this._renderGeometry()}});se.baseZIndex=function(e){j=e},T("dxOverlay",se),e.exports=se},function(e,t,n){var i=n(2),o=n(5),a=n(56),r=n(1).isPlainObject,s=n(107),l=n(9);s.add(function(e){var t=l.addNamespace(e,e+"Binding");a.bindingHandlers[e]={update:function(e,n,s,l){var c=i(e),d=a.utils.unwrapObservable(n()),u=d.execute?d.execute:d;o.off(c,t),o.on(c,t,r(d)?d:{},function(e){u.call(l,l,e)})}}})},function(e,t,n){var i=n(2),o=n(5),a=n(76),r=n(22).compileGetter,s=n(0).extend,l=n(56),c=n(106),d=n(18);l.bindingHandlers.dxAction={update:function(e,t,n,c){var u=i(e),h=l.utils.unwrapObservable(t()),p=h,f={context:e};h.execute&&(p=h.execute,s(f,h));var g=new a(p,f);o.off(u,".dxActionBinding"),o.on(u,d.name+".dxActionBinding",function(t){g.execute({element:u,model:c,evaluate:function(t){var n=c;t.length>0&&"$"===t[0]&&(n=l.contextFor(e));var i=r(t);return i(n)},event:t}),f.bubbling||t.stopPropagation()})}},l.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:l.unwrap(t())}}},l.bindingHandlers.dxIcon={init:function(e,t){var n=l.utils.unwrapObservable(t())||{},i=c.getImageContainer(n);l.virtualElements.emptyNode(e),i&&l.virtualElements.prepend(e,i.get(0))},update:function(e,t){var n=l.utils.unwrapObservable(t())||{},i=c.getImageContainer(n);l.virtualElements.emptyNode(e),i&&l.virtualElements.prepend(e,i.get(0))}},l.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){var i=n(3).each,o=n(10),a=n(53),r=n(89),s=n(56),l=o.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=s.observable(!0),n.validationError=s.observable(),i(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=r.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(e),e},reset:function(){this.target(null);var e={isValid:!0,brokenRule:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){e.validator=this,this.target.dxValidator.isValid(e.isValid),this.target.dxValidator.validationError(e.brokenRule),this.fireEvent("validated",[e])}}).include(a);s.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},r.registerModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.registerValidatorInGroup(e,n.dxValidator)})},r.unregisterModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.removeRegisteredValidator(e,n.dxValidator)})},r.validateModel=r.validateGroup},function(e,t,n){var i=n(56),o=n(71);o.inject({isWrapped:i.isObservable,isWritableWrapped:i.isWritableObservable,wrap:i.observable,unwrap:function(e){return i.isObservable(e)?i.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(35),o=i.afterCleanData,a=i.strategyChanging,r=n(56),s=n(59).compare,l=r.utils.domNodeDisposal.cleanExternalData,c=function(){o(function(e){for(var t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||r.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery}),r.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])}},d=function(){o(function(){}),r.utils.domNodeDisposal.cleanExternalData=l};c(),a.add(function(e){var t=!!e.fn;t&&s(e.fn.jquery,[2,0])<0&&d()})},function(e,t,n){var i=n(56),o=n(59).compare,a=n(35).strategyChanging,r=function(e){var t=function(e,t){var n=function(){i.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var o=e.fn.remove;e.fn.remove=function(e,n){if(!n){var i=this;e&&(i=i.filter(e)),t(i,!0)}return o.call(this,e,n)};var a=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),a.apply(this,arguments)};var r=e.fn.replaceWith;e.fn.replaceWith=function(){var e=r.apply(this,arguments);return this.parent().length||t(this,!0),e}};a.add(function(e){var t=!!e.fn;t&&o(e.fn.jquery,[2,0])<0&&r(e)})},function(e,t,n){var i=n(26),o=n(214),a=n(74)();a&&o.set(i)},function(e,t,n){var i=n(26),o=n(74)(),a=n(59).compare,r=n(3).each,s=n(1).isNumeric,l=n(9).setEventFixMethod,c=n(61),d=n(215);if(o)if(a(i.fn.jquery,[3])<0){var u={2:"touch",3:"pen",4:"mouse"};r(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return s(n)&&(e.pointerType=u[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),r(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return d(function(n,i){e[n]=i(t)}),e},props:i.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),i.event.fixHooks.wheel=i.event.mouseHooks;var h={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};c.callbacks.add(function(e){i.event.fixHooks[e]=h});var p=function(e,t){for(var n=i.event.fixHooks[t.type]||i.event.mouseHooks,o=n.props?i.event.props.concat(n.props):i.event.props,a=o.length;a--;){var r=o[a];e[r]=t[r]}return n.filter?n.filter(e,t):e};l(p)}else d(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(26),o=n(7),a=n(74)(),r=n(59).compare;if(a){var s=i.Deferred,l={Deferred:s};l.when=r(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.when.apply(i,arguments)},o.setStrategy(l)}},function(e,t,n){var i=n(26),o=n(230),a=n(51).add;if(i&&!o.fired()){var r=i.holdReady||i.fn.holdReady;r(!0),o.add(function(){a(function(){r(!1)})})}},function(e,t,n){var i=n(26),o=n(5),a=n(74)(),r=n(107),s=n(12);a&&(r.add(function(e,t){i.event.special[e]=t}),o.forcePassiveFalseEventNames.forEach(function(e){i.event.special[e]={setup:function(t,n,i){s.listen(this,e,i,{passive:!1})}}}),o.set({on:function(e){i(e).on.apply(i(e),Array.prototype.slice.call(arguments,1))},one:function(e){i(e).one.apply(i(e),Array.prototype.slice.call(arguments,1))},off:function(e){i(e).off.apply(i(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){i(e).trigger.apply(i(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){i(e).triggerHandler.apply(i(e),Array.prototype.slice.call(arguments,1))},Event:i.Event}))},function(e,t,n){var i=n(26),o=n(224);i&&o.setEasing(i.easing)},function(e,t,n){var i=n(26),o=n(35),a=n(74)();a&&o.setDataStrategy(i)},function(e,t,n){var i=n(13).setPublicElementWrapper,o=n(74)(),a=function(e){return e};o&&i(a)},function(e,t,n){var i=n(26),o=n(138),a=n(17);if(i){var r=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};o.add(r)}},function(e,t,n){var i=n(26),o=n(72),a=n(74)();a&&o.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):i.ajax(e)}})},function(e,t,n){var i=n(238);i&&(n(43),n(346),n(353),n(354),n(355))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(2),r=i(a),s=n(5),l=i(s),c=n(30),d=i(c),u=n(138),h=i(u),p=n(10),f=i(p),g=n(19),m=i(g),_=n(1),v=i(_),w=n(3),x=i(w),y=n(11),b=i(y),C=n(229),k=i(C),S=n(28),I=i(S),D=n(48),T=i(D),E=n(347),A=i(E),B=n(180),O=i(B),R=n(44),M=i(R),P=n(22),V=i(P),F=n(0),H=i(F),$=n(37),L=i($),z=n(17),N=i(z),W=x.default.each,q=b.default.inArray,G=V.default.compileSetter,K=V.default.compileGetter,j=H.default.extendFromObject,U="dxItemAlias",Y=["rendering"],X="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},J=f.default.inherit({ctor:function(e){this._componentDisposing=(0,m.default)(),this._optionChangedCallbacks=(0,m.default)(),this._ngLocker=new k.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))});this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=j({},e),e&&(!e.hasOwnProperty("bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&W(e.bindingOptions,function(e,n){"string"===v.default.type(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})}))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add(function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)})},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&(W(this._ngOptions.bindingOptions,function(n,i){var o=n.search(/\[|\./),a=o>-1?n.substring(0,o):n,r=void 0,s=void 0,l=i.dataPath,c=!0,d=!1;void 0!==i.deep&&(d=c=!!i.deep),t[a]||(t[a]={}),t[a][n]=l;var u=function(t,i){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,t),h(),e._component._optionValuesEqual(n,i,t)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))},h=function(){var t=Array.isArray(e._scope.$eval(l))&&!d?"$watchCollection":"$watch";r!==t&&(s&&s(),s=e._scope[t](l,u,c),r=t)};h(),e._componentDisposing.add(s)}),this._optionChangedCallbacks.add(function(n){var i=n.name,o=n.fullName,a=n.component;if(e._ngLocker.locked(o))return void e._ngLocker.release(o);if(t&&t[i]){var r=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(o)};r?e._digestCallbacks.begin.add(s):s(),Z(function(){W(t[i],function(t,i){if(e._optionsAreLinked(o,t)){var r=a.option(t);e._parse(i).assign(e._scope,r);var s=e._parse(i)(e._scope);s!==r&&n.component.option(t,s)}})},e._scope);var l=function t(){e._ngLocker.locked(o)&&e._ngLocker.release(o),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};r?e._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var o=(0,r.default)(e).clone(),a=i.model&&i.model.constructor===t._scope.$root.constructor,s=a?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(s,n,i.index),o.appendTo(i.container),i.noModel||l.default.on(o,"$destroy",function(){var e=!s.$parent;e||s.$destroy()});var c=t._compile(o,t._transcludeFn);return t._applyAsync(function(e){c(e,null,{parentBoundTranscludeFn:t._transcludeFn})},s),o}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(this._renderingTimer||(this._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),this._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(M.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),v.default.isDefined(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==o(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t=e.parentScope,n=e.childScope,i=e.fieldPath,o=e.parentPrefix,a=e.itemIndex,r=i===this._itemAlias?"":"."+i,s=void 0!==a,l=[o],c=void 0;if(s){if(!v.default.isNumeric(a))return;l.push("[",a,"]")}l.push(r),c=l.join("");var d=t.$watch(c,function(e,t){e!==t&&G(i)(n,e)}),u=n.$watch(i,function(e,n){if(e!==n){if(s&&!K(o)(t)[a])return void u();G(c)(t,e)}});this._componentDisposing.add([d,u])},_evalOptions:function(e){var t=this,n=j({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&W(this._ngOptions.bindingOptions,function(t,i){n[t]=e.$eval(i.dataPath)}),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){if(i&&q(i.category,Y)>-1)return n;var o=function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?Z(function(){return n.apply(t,i)},e):n.apply(this,i)};return o},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,d.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){Z(function(){},e)}),n.integrationOptions={createTemplate:function(e){return new A.default(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,o){o=o||{};var a=void 0,r=o.skipImmediate,s=e.$watch(function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=a===e;!r&&(!t||t&&o.deep)&&i(e),r=!1},o.deep);return r||(a=n(),i(a)),(0,d.default)().wrapActionsBeforeExecute&&t._applyAsync(function(){},e),s},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){if("button"===n||"tabs"===n||"dropDownMenu"===n){var i=n;n=L.default.camelize("dx-"+n),N.default.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+n+"' instead")}var o=(0,r.default)("<div>").attr(L.default.dasherize(n),"options").get(0),a=t._scope.$new();a.options=e.model.options,e.container.append(o),t._compile(o)(a)}}}}},n.modelByElement=function(){return e},n}});J=J.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return this._componentClass.subclassOf(T.default)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,function(t,n){e._ngLocker.locked(X)||t!==n&&e._component.option(X,t)});this._optionChangedCallbacks.add(function(t){e._ngLocker.obtain(X);try{if(t.name!==X)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(X)&&e._ngLocker.release(X)}}),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[X]=this._parse(this._ngModel)(this._scope),e}});var Q={},ee=function(e){var t="dxValidator"!==e?1:10;O.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,o){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=Q[e],r=a.subclassOf(I.default)?t.contents().detach():null;return function(t,s,l,c,d){s.append(r),Z(function(){new J({componentClass:a,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:c,transcludeFn:d,itemAlias:l[U],dxDigestCallbacks:o})},t)}}}}])};h.default.add(function(e,t){Q[e]||ee(e),Q[e]=t})},function(e,t,n){var i=n(2),o=n(66),a=n(1).isFunction,r=n(13),s=o.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(r.normalizeTemplateElement(this._element))},_renderCore:function(e){var t=this._compiledTemplate;return a(t)?t(e):t},source:function(){return i(this._element).clone()}});e.exports=s},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(13).getPublicElement,s=n(12),l=n(1).isPlainObject,c=n(7).when,d=n(0).extend,u=n(11).inArray,h=n(3),p=n(76),f=n(50),g=n(13),m=n(22),_=n(28),v=n(9),w=n(25),x=n(112),y=n(123),b=n(57),C=n(15),k=n(90),S=n(18),I=n(159),D=n(67),T="dx-collection",E="dx-item",A="-content",B="dx-item-content-placeholder",O="dxItemData",R="dxItemIndex",M="tmpl-",P="[data-options*='dxItem']",V="dx-item-selected",F="dx-item-response-wait",H="dx-empty-collection",$="dx-template-wrapper",L=/^([^.]+\[\d+\]\.)+([\w.]+)$/,z="up",N="down",W="left",q="right",G="pageup",K="pagedown",j="last",U="first",Y=_.inherit({_activeStateUnit:"."+E,_supportedKeys:function(){var e=function(e){var t=i(this.option("focusedElement"));t.length&&(e.target=t,e.currentTarget=t,this._itemClickHandler(e))},t=function(t){t.preventDefault(),e.call(this,t)},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return d(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,W),rightArrow:n.bind(this,q),upArrow:n.bind(this,z),downArrow:n.bind(this,N),pageUp:n.bind(this,z),pageDown:n.bind(this,N),home:n.bind(this,U),end:n.bind(this,j)})},_getDefaultOptions:function(){return d(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:C.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._defaultTemplates.item=new D(function(e,t){l(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t))}.bind(this),["text","html"],this.option("integrationOptions.watchMethod"))},_prepareDefaultItemTemplate:function(e,t){e.text&&t.text(e.text),e.html&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=this.$element().contents().filter(P);if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=i(t),o=g.getElementOptions(t).dxItem,a=n.html().trim()&&!o.template;return a?o.template=e._prepareItemTemplate(n):n.remove(),o});this.option("items",n)}},_prepareItemTemplate:function(e){var t=M+new f,n='dxTemplate: { name: "'+t+'" }';return e.detach().clone().attr("data-options",n).data("options",n).appendTo(this.$element()),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),u(e.target,this._focusTarget())!==-1){var t=i(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",r(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=i(this.option("focusedElement"));e.length&&this._toggleFocusClass(!1,e)},_getActiveItem:function(e){var t=i(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,o=this._getActiveElement(),a=o.length-1;return n<0&&(n=e?a:0),o.eq(n)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case G:case z:t=this._prevItem(n);break;case K:case N:t=this._nextItem(n);break;case q:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case W:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case U:t=n.first();break;case j:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",r(t))},_getVisibleItems:function(e){return e=e||this._itemElements(),e.filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),o=e.last(),a=i(e[n-1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),o=e.first(),a=i(e[n+1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_selectFocusedItem:function(e){this.selectItem(e)},_removeFocusedItem:function(e){var t=i(e);t.length&&(this._toggleFocusClass(!1,t),t.removeAttr("id"))},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(e){e&&e.length&&(e.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,e),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=i(),n=this;return this.itemElements().each(function(){var o=i(this);if(o.data(n._itemDataKey())===e)return t=o,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var o=this._findItemElementByItem(e);o.length&&(this.constructor.ItemClass.getInstance(o).setDataField(t,n)||this._refreshItem(o,e))},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(L);if(t&&t.length){var n=t[t.length-1],o=e.fullName.replace("."+n,""),a=this.option(o);return void this._itemOptionChanged(a,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this.option("items",[]),this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._removeFocusedItem(e.previousValue),this._setFocusedItem(i(e.value));break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&this._startIndexForAppendedItems===-1||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent(),this._renderFocusTarget()):this.option("items",e)},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){i(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return E},_itemContentClass:function(){return this._itemClass()+A},_selectedItemClass:function(){return V},_itemResponseWaitClass:function(){return F},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return O},_itemIndexKey:function(){return R},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(T),this._prepareContent()},_prepareContent:a.deferRenderer(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=v.addNamespace(S.name,this.NAME),n=v.addNamespace(w.down,this.NAME),a=this,r=new p(function(e){var t=e.event;a._itemPointerDownHandler(t)});o.off(this._itemContainer(),t,e),o.off(this._itemContainer(),n,e),o.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),o.on(this._itemContainer(),n,e,function(e){r.execute({element:i(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=i(e.target),n=t.closest(this._itemElements()),o=this._closestFocusable(t);n.length&&o&&u(o.get(0),this._focusTarget())!==-1&&this.option("focusedElement",r(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(b.focusable))return e;for(e=e.parent();e.length&&!s.isDocument(e.get(0));){if(e.is(b.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=v.addNamespace(k.name,this.NAME);o.off(e,n,t),o.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=v.addNamespace(I.name,this.NAME);o.off(e,n,t),o.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&h.each(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var o=this._renderItemFrame(e,t,n,i);this._setElementData(o,t,e),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,o);var a=this._getItemContent(o),s=this._renderItemContent({index:e,itemData:t,container:r(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return c(s).done(function(n){l._postprocessRenderItem({itemElement:o,itemContent:n,itemData:t,itemIndex:e}),l._executeItemRenderAction(e,t,r(o))}),o},_getItemContent:function(e){var t=e.find("."+B);return t.removeClass(B),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&o.on(t,S.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var o=i(this._createItemByTemplate(n,e));return o.hasClass($)?this._renderItemContentByNode(e,o):e.container},_renderItemContentByNode:function(e,t){return i(e.container).replaceWith(t),e.container=r(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[E+A,e.contentClass];i(e.container).addClass(t.join(" "))},_renderItemFrame:function(e,t,n,o){var a=i("<div>");return new this.constructor.ItemClass(a,this._itemOptions(),t||{}),o&&o.length?o.replaceWith(a):a.appendTo(n),a},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},fieldGetter:function(t){var n=e.option(t+"Expr"),i=m.compileGetter(n);return i}}},_postprocessRenderItem:a.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([E,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["designMode","disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty"),i=t&&t[n];return i||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){
|
|
36
|
+
return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||i("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass(H,!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,d(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,d({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,d({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var o=this._closestItemElement(i(e)),a=d({},n);return t(d(n,this._extendActionArgs(o),a))},_extendActionArgs:function(e){return{itemElement:r(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return i(e).closest(this._itemSelector())},_getItemData:function(e){return i(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&h.each(e,function(e,o){n+=i(o).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new f),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(x);Y.ItemClass=y,e.exports=Y},function(e,t,n){var i=n(181),o=n(36),a=n(3).each,r=n(1).isFunction,s=n(7).Deferred,l=n(144),c=function e(t,n,c){c=c||[],n=n||{};var d=function(e,t){return{name:e,args:t}},u=function(e){function u(e){switch(e.name){case"sortBy":return _=[e.args],!0;case"thenBy":if(!_)throw o.errors.Error("E4004");return _.push(e.args),!0}return!1}function h(){var e=g[0],t=[];e&&"multiSort"===e.name&&(g.shift(),a(e.args[0],function(){t.push(d(t.length?"thenBy":"sortBy",this))})),g=t.concat(g)}var p,f,g,m,_,v=new s,w=function(e){var t=n.errorHandler;t&&t(e),o._errorHandler(e),v.reject(e)};try{p=n.adapter,r(p)||(p=i[p]),f=p(n),g=[].concat(c).concat(e);var x=f.optimize;for(x&&x(g);g.length;){if(m=g[0],!u(m)){if(_){g.unshift(d("multiSort",[_])),_=null;continue}if("enumerate"!==String(m.name)&&(!f[m.name]||f[m.name].apply(f,m.args)===!1))break}g.shift()}h(),f.exec(t).done(function(e,t){if(g.length){var i=l(e,{errorHandler:n.errorHandler});a(g,function(){i=i[this.name].apply(i,this.args)}),i.done(v.resolve).fail(v.reject)}else v.resolve(e,t)}).fail(w)}catch(e){w(e)}return v.promise()},h={};return a(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);h[i]=function(){return e(t,n,c.concat(d(i,arguments)))}}),a(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return u.call(this,d(e,arguments))}}),h};e.exports=c},function(e,t,n){var i=n(2),o=n(10),a=n(4),r=o.abstract,s=o.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:r,getItemDataByIndex:r,getKeysByItems:r,getItemsByKeys:r,itemsGetter:r,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?a.equalByValue(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:r,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isDOMNode(e))return i(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},deleteItemAtIndex:r,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:r,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isDOMNode:function(e){var t;try{t=i(e)}catch(e){return!1}return t&&t.length&&t.get(0).nodeType},_isItemIndex:r,_getNormalizedItemIndex:r,_normalizeItemIndex:r,_denormalizeItemIndex:r,_getItemByNormalizedIndex:r,_itemsFromSameParent:r});e.exports=s},function(e,t,n){var i=n(1),o=n(239),a=n(21),r=n(42),s=n(7).Deferred;e.exports=o.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new s,t=this,n=this.options.key(),o=i.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,o).done(function(n){var i=n.map(function(e){return t.options.keyOf(e)});e.resolve(i)}).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var o=this.options.filter();o?this._addSelectionFilter(n,o,!1):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var a=0;a<e.length;a++)n?this.removeSelectedItem(e[a]):this.addSelectedItem(e[a])}return this.onSelectionChanged(),(new s).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!r([e]).filter(t).toArray().length},_processSelectedItem:function(e){var t=this.options.key(),n=[t,"=",e];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!1,t,!0)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t,!0)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.Error("E1042")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var o=e[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&(this._findSubFilter(e,t)===e.length-1||0===this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&i.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&i.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,o=!0,a=e?["!",t]:t,r=e?"and":"or",s=i.options.selectionFilter||[];if(s=i._denormalizeFilter(s),s&&s.length){i._removeSameFilter(s,t,e);var l=i._removeSameFilter(s,t,!e);l&&("or"!==l&&e||"and"!==l&&!e)&&(o=!1,s=[]),o&&(s=i._addFilterOperator(s,r))}o&&s.push(a),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeSameFilter:function(e,t,n){t=n?["!",t]:t;var i=this._findSubFilter(e,t);if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),"undefined";if(i>=0)return i>0?e.splice(i-1,2)[0]:e.splice(i,2)[1]||"undefined";for(var o=0;o<e.length;o++){var a=Array.isArray(e[o])&&e[o].length>2&&this._removeSameFilter(e[o],t);if(a)return 1===e[o].length&&(e[o]=e[o][0]),a}},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;if(!t)return!0;if(!t.length)return!1;if(e&&e.length)return t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0}})},function(e,t,n){var i=n(4),o=n(1),a=i.getKeyHash,r=n(42),s=n(7),l=n(258).SelectionFilterCreator,c=s.when,d=s.Deferred,u=n(21),h=n(239);e.exports=h.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,o,a=this.options.keyOf;if(a){var r=t&&e.length>1&&!this.options.equalByReference;for(r&&(n={}),o=0;o<e.length;o++){var s=e[o],l=a(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}r&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new d,o=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var a=this.options.filter();if(n&&t&&!a)return i.resolve(this.getSelectedItems()),i;var s=new l(e,n),c=s.getCombinedFilter(o,a),u=[];t&&(u=c?r(this.options.selectedItems).filter(c).toArray():this.options.selectedItems.slice(0));var h=u.length?u:this.options.plainItems().filter(this.options.isSelectableItem).map(this.options.getItemData),p=s.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return h=h.filter(p),u.length||!n&&h.length===e.length?i.resolve(h):i=this._loadFilteredData(c,p),i},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var o=e[i],a=n(o);t.push(a)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=0;t<e.length;t++)this.isItemKeySelected(e[t])||u.log("W1002",e[t])},_loadSelectedItems:function(e,t,n){var i=this,o=new d;return c(i._lastLoadDeferred).always(function(){i._loadSelectedItemsCore(e,t,n).done(o.resolve).fail(o.reject)}),i._lastLoadDeferred=o,o},selectedItemKeys:function(e,t,n,i){var o=this,a=o._loadSelectedItems(e,n,i);return a.done(function(e){t?o._preserveSelectionUpdate(e,n):o._replaceSelectionUpdate(e),o.onSelectionChanged()}),a},addSelectedItem:function(e,t){var n=this._getKeyHash(e);this._indexOfSelectedItemKey(n)===-1&&(!o.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){var n;return n=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):o.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=a(n),o=this.options.keyHashIndices[i];if(o)for(var r=0;r<o.length;r++)o[r]>e&&o[r]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,a=this._indexOfSelectedItemKey(n,t);if(a<0)return a;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[a]),i)return a;if(this.options.selectedItemKeys.splice(a,1),this.options.selectedItems.splice(a,1),o.isObject(n)||!this.options.keyHashIndices)return a;var r=this.options.keyHashIndices[n];return r?(r.shift(),r.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(a),a):a},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(e){return this.options.equalByReference?e:a(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=this.options.keyOf(e);return this.isItemKeySelected(t)},isItemKeySelected:function(e){var t=this._getKeyHash(e),n=this._indexOfSelectedItemKey(t);return n!==-1},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(e,t,n){var i=n(107),o=n(5),a=n(180);i.add(function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.directive(t,["$parse",function(n){return function(i,a,r){var s,l=r[t].trim(),c={};"{"===l.charAt(0)?(c=i.$eval(l),s=n(c.execute)):s=n(r[t]),o.on(a,e,c,function(e){i.$apply(function(){s(i,{$event:e})})})}}])})},function(e,t,n){var i=n(19),o=n(180);o.service("dxDigestCallbacks",["$rootScope",function(e){var t=i(),n=i(),o=i(),a=!1;return e.$watch(function(){a||(a=!0,t.fire(),e.$$postDigest(function(){a=!1,n.fire(),o.fire()}))}),{begin:{add:function(e){a&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:o.add.bind(o),addPrioritized:n.add.bind(n),remove:o.remove.bind(o)}}}])},function(e,t,n){var i=n(76);i.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){n(113);var i=n(64),o=n(15),a=n(81);if(n(64),i&&i.formatMessage){var r="en",s=i.loadMessages;i.loadMessages=function(e){o.load(e)};var l={ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),s(e)},getMessagesByLocales:function(){return i.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||a.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||n===r||(i=this.getFormatter(e,r)),i},_formatterByGlobalize:function(e,t){var n,o=t&&t!==a.locale()?new i(t):i;return this._messageLoaded(e,t)&&(n=o.messageFormatter(e)),n},_messageLoaded:function(e,t){var n=t?new i(t).cldr:i.locale(),o=n.get(["globalize-messages/{bundle}",e]);return!!o},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};o.inject(l)}},function(e,t,n){n(113),n(182),n(64);var i={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},o={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y","long":"MMMM d, y",medium:"MMM d, y","short":"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz","long":"h:mm:ss a z",medium:"h:mm:ss a","short":"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}","long":"{1} 'at' {0}",medium:"{1}, {0}","short":"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} \u2013 {1}",d:{d:"d \u2013 d"},h:{a:"h a \u2013 h a",h:"h \u2013 h a"},H:{H:"HH \u2013 HH"},hm:{a:"h:mm a \u2013 h:mm a",h:"h:mm \u2013 h:mm a",m:"h:mm \u2013 h:mm a"},Hm:{H:"HH:mm \u2013 HH:mm",m:"HH:mm \u2013 HH:mm"},hmv:{a:"h:mm a \u2013 h:mm a v",h:"h:mm \u2013 h:mm a v",m:"h:mm \u2013 h:mm a v"},Hmv:{H:"HH:mm \u2013 HH:mm v",m:"HH:mm \u2013 HH:mm v"},hv:{a:"h a \u2013 h a v",h:"h \u2013 h a v"},Hv:{H:"HH \u2013 HH v"},M:{M:"M \u2013 M"},Md:{d:"M/d \u2013 M/d",M:"M/d \u2013 M/d"},MEd:{d:"E, M/d \u2013 E, M/d",M:"E, M/d \u2013 E, M/d"},MMM:{M:"MMM \u2013 MMM"},MMMd:{d:"MMM d \u2013 d",M:"MMM d \u2013 MMM d"},MMMEd:{d:"E, MMM d \u2013 E, MMM d",M:"E, MMM d \u2013 E, MMM d"},y:{y:"y \u2013 y"},yM:{M:"M/y \u2013 M/y",y:"M/y \u2013 M/y"},yMd:{d:"M/d/y \u2013 M/d/y",M:"M/d/y \u2013 M/d/y",y:"M/d/y \u2013 M/d/y"},yMEd:{d:"E, M/d/y \u2013 E, M/d/y",M:"E, M/d/y \u2013 E, M/d/y",y:"E, M/d/y \u2013 E, M/d/y"},yMMM:{M:"MMM \u2013 MMM y",y:"MMM y \u2013 MMM y"},yMMMd:{d:"MMM d \u2013 d, y",M:"MMM d \u2013 MMM d, y",y:"MMM d, y \u2013 MMM d, y"},yMMMEd:{d:"E, MMM d \u2013 E, MMM d, y",M:"E, MMM d \u2013 E, MMM d, y",y:"E, MMM d, y \u2013 E, MMM d, y"},yMMMM:{M:"MMMM \u2013 MMMM y",y:"MMMM y \u2013 MMMM y"}}}}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},r=["skeleton","date","time","datetime","raw"],s=n(64),l=n(33),c=n(1).isObject,d=n(11).inArray,u=n(3);if(s&&s.formatDate){"en"===s.locale().locale&&(s.load(a,i,o),s.locale("en"));var h={},p={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},mediumdatemediumtime:{path:"dateTimeFormats/medium",parts:["shorttime","monthandday"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},f={_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=p[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var o=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&u.each(i.parts,function(e,n){o=o.replace("{"+e+"}",t._getPatternByFormat(n))}),o}},_getFormatStringByPath:function(e){return s.locale().main("dates/calendars/gregorian/"+e)},getPeriodNames:function(){var e=s.locale().main("dates/calendars/gregorian/dayPeriods/stand-alone/wide");return[e.am,e.pm]},getMonthNames:function(e,t){var n=s.locale().main("dates/calendars/gregorian/months/"+(t||"stand-alone")+"/"+(e||"wide"));return u.map(n,function(e){return e})},getDayNames:function(e){var t=s.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return u.map(t,function(e){return e})},getTimeSeparator:function(){return s.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},format:function(e,t){if(e){if(!t)return e;var n,i;if("function"==typeof t)return t(e);if(t.formatter)return t.formatter(e);if(t=t.type||t,"string"==typeof t)i=s.locale().locale+":"+t,n=h[i],n||(t={raw:this._getPatternByFormat(t)||t},n=h[i]=s.dateFormatter(t));else{if(!this._isAcceptableFormat(t))return;n=s.dateFormatter(t)}return n(e)}},parse:function(e,t){if(e){if(!t||"function"==typeof t||c(t)&&!this._isAcceptableFormat(t)){if(t){var n=this.callBase(e,t);if(n)return n}return s.parseDate(e)}return t.parser?t.parser(e):("string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t}),s.parseDate(e,t))}},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<r.length;t++)if(e.hasOwnProperty(r[t]))return!0},firstDayOfWeekIndex:function(){var e=s.locale().supplemental.weekData.firstDay();return d(e,this._getDayKeys())},_getDayKeys:function(){var e=s.locale().main("dates/calendars/gregorian/days/format/short");return u.map(e,function(e,t){return t})}};l.inject(f)}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(113),n(182),n(137),n(64);var o={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}},r=n(64),s=n(30),l=n(49);if(r&&r.formatCurrency){"en"===r.locale().locale&&(r.load(o,a),r.locale("en"));var c={},d=function(e,t){var n,o;return o="object"===("undefined"==typeof t?"undefined":i(t))?r.locale().locale+":"+e+":"+JSON.stringify(t):r.locale().locale+":"+e+":"+t,n=c[o],n||(n=c[o]=r.currencyFormatter(e,t)),n},u={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||s().defaultCurrency;return d(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=s().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return d(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=s().defaultCurrency),r.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t,n,i,o,a=this.getCurrencySymbol(e).symbol,s=r.cldr.main("numbers/currencyFormats-numberSystem-latn");if(s.accounting){for(o={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':""","\\\xa4":a},n=s.accounting.split(";"),t=0;t<n.length;t++)for(i in o)o.hasOwnProperty(i)&&(n[t]=n[t].replace(new RegExp(i,"g"),o[i]));return 2===n.length?n[0]+"_);"+n[1]:n[0]}}};l.inject(u)}},function(e,t,n){var i=n(31),o=n(3),a=n(17),r=n(9),s=n(108),l=n(84),c="dx",d="transform",u="translate",h="zoom",p="pinch",f="rotate",g="start",m="",_="end",v=[],w=function(e,t){v.push({name:e,args:t})};w(d,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),w(u,{translation:!0,deltaTranslation:!0}),w(h,{scale:!0,deltaScale:!0}),w(p,{scale:!0,deltaScale:!0}),w(f,{rotation:!0,deltaRotation:!0});var x=function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}},y=function(e){var t=e.pointers;return x(t[0],t[1])},b=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},C=function(e,t){return b(e)/b(t)},k=function(e,t){var n=e.x*t.x+e.y*t.y,o=b(e)*b(t);if(0===o)return 0;var a=i.sign(e.x*t.y-t.x*e.y),r=Math.acos(i.fitIntoRange(n/o,-1,1));return a*r},S=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},I=s.inherit({configure:function(e,t){t.indexOf(h)>-1&&a.log("W0005",t,"15.1","Use '"+t.replace(h,p)+"' event instead"),this.callBase(e)},validatePointers:function(e){return r.hasTouches(e)>1},start:function(e){this._accept(e);var t=y(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(g,e)},move:function(e){var t=y(e),n=this._getEventArgs(t);this._fireEventAliases(m,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(_,e,t)},_getEventArgs:function(e){return{scale:C(e,this._startVector),deltaScale:C(e,this._prevVector),rotation:k(e,this._startVector),deltaRotation:k(e,this._prevVector),translation:S(e,this._startVector),deltaTranslation:S(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},o.each(v,function(i,a){var r={};o.each(a.args,function(e){e in n&&(r[e]=n[e])}),this._fireEvent(c+a.name+e,t,r)}.bind(this))}}),D=v.reduce(function(e,t){return[g,m,_].forEach(function(n){e.push(c+t.name+n)}),e},[]);l({emitter:I,events:D}),o.each(D,function(e,n){t[n.substring(c.length)]=n})},function(e,t,n){e.exports=n(52).DataSource},function(e,t,n){var i=n(5),o=n(12),a=n(6),r=a.getWindow(),s=n(10),l=s.abstract,c=n(36).errors,d=n(79),u=s.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,a=Math.max(100,t.flushInterval||1e4);if(!n){var s=this.save.bind(this);setInterval(s,a),i.on(r,"beforeunload",s),r.cordova&&o.listen(o.getDocument(),"pause",s,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:l,_saveImpl:l}),h=u.inherit({ctor:function(e,t){var n=t.name;if(!n)throw c.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=r.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?r.localStorage.setItem(this._key,JSON.stringify(e)):r.localStorage.removeItem(this._key)}}),p={dom:h},f=d.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new p[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");e.exports=f},function(e,t,n){function i(e){return/^(localhost$|127\.)/i.test(e)}var o,a,r=n(17),s=n(6).getWindow(),l=n(242),c=function(e){this.config=e,o="ms-appx:"===s.location.protocol,a=i(s.location.hostname)};c.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw r.Error("E0006");return l.isProxyUsed()?l.formatProxyUrl(t.local):t.production&&(o&&!Debug.debuggerEnabled||!o&&!a)?t.production:t.local}},e.exports=c},function(e,t,n){n(241),DevExpress.data.ODataStore=n(243),DevExpress.data.ODataContext=n(364),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(97).keyConverters,DevExpress.data.EdmLiteral=n(97).EdmLiteral;var i=n(97);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(145).odata},function(e,t,n){var i=n(10),o=n(0).extend,a=n(1),r=n(3).each,s=n(36),l=n(243),c=n(244),d=n(7),u=d.when,h=d.Deferred;n(145);var p=i.inherit({ctor:function(e){var t=this;t._extractServiceOptions(e),t._errorHandler=e.errorHandler,r(e.entities||[],function(n,i){t[n]=new l(o({},e,{url:t._url+"/"+encodeURIComponent(i.name||n)},i))})},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e,t,n){t=t||{},n=(n||"POST").toLowerCase();var i,o=new h,r=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(r=c.formatFunctionInvocationUrl(r,c.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(i=t,t=null)),u(this._sendRequest(r,n,c.escapeServiceOperationParams(t,this.version()),i)).done(function(t){a.isPlainObject(t)&&e in t&&(t=t[e]),o.resolve(t)}).fail(this._errorHandler).fail(s._errorHandler).fail(o.reject),o.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw s.errors.Error("E4015",e);return a.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(c.SharedMethods);e.exports=p},function(e,t,n){var i=n(202);n(240);var o=i.ui=n(451);o.themes=n(20),o.setTemplateEngine=n(452),o.dialog=n(259),o.notify=n(454),o.dxActionSheet=n(207),o.dxAutocomplete=n(455),o.dxBox=n(185),o.dxButton=n(38),o.dxCalendar=n(245),o.dxCheckBox=n(127),o.dxColorBox=n(483),o.dxDateBox=n(193),o.dxDeferRendering=n(499),o.dxDropDownBox=n(500),
|
|
37
|
+
o.dxDropDownMenu=n(160),o.dxFileUploader=n(501),o.dxForm=n(205),o.dxGallery=n(506),o.dxList=n(125),o.dxLoadIndicator=n(87),o.dxLoadPanel=n(192),o.dxLookup=n(507),o.dxMap=n(508),o.dxMultiView=n(279),o.dxNavBar=n(512),o.dxNumberBox=n(118),o.dxOverlay=n(70),o.dxPopover=n(130),o.dxPopup=n(60),o.dxProgressBar=n(275),o.dxRadioGroup=n(307),o.dxRangeSlider=n(515),o.dxResizable=n(204),o.dxResponsiveBox=n(277),o.dxScrollView=n(189),o.dxSelectBox=n(128),o.dxSlider=n(284),o.dxSwitch=n(308),o.dxTabPanel=n(278),o.dxTabs=n(191),o.dxTagBox=n(309),o.dxTextArea=n(310),o.dxTextBox=n(98),o.dxTileView=n(517),o.dxToast=n(266),o.dxToolbar=n(311),o.dxTooltip=n(194),o.dxTrackBar=n(210),i.validationEngine=n(89),o.dxValidationSummary=n(211),o.dxValidationGroup=n(281),o.dxValidator=n(190),o.CollectionWidget=n(44),o.dxDropDownEditor=n(147),e.exports=o},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=n(3).each,s=n(0).extend,l=n(69),c=n(367),d=n(529),u=n(14),h=n(20),p="dx-menu",f=p+"-no-icons",g="dx-menu-base",m=p+"-item",_=m+"-content",v=m+"-selected",w=m+"-wrapper",x=p+"-items-container",y=m+"-expanded",b=p+"-separator",C=p+"-last-group-item",k=m+"-has-text",S=m+"-has-icon",I=m+"-has-submenu",D=m+"-popout",T=D+"-container",E=m+"-text",A="single",B={show:50,hide:300},O=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return h.isAndroid5()},options:{useInkRipple:!0}}])},_activeStateUnit:"."+m,_itemDataKey:function(){return"dxMenuItemDataKey"},_itemClass:function(){return m},_setAriaSelected:o.noop,_selectedItemClass:function(){return v},_widgetClass:function(){return g},_focusTarget:function(){return this._itemContainer()},_clean:function(){this.option("focusedElement",null),this.callBase()},_supportedKeys:function(){var e=function(){var e=i(this.option("focusedElement"));e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])};return s(this.callBase(),{space:e,pageUp:o.noop,pageDown:o.noop})},_isSelectionEnabled:function(){return this.option("selectionMode")===A},_init:function(){this.callBase(),this._renderSelectedItem(),this._initActions()},_getTextContainer:function(e){var t=e.text,n=i("<span>").addClass(E),o=a.isPlainObject(e)?t:String(e);return t&&n.text(o)},_getPopoutContainer:function(e){var t,n=e.items;if(n&&n.length){var o=i("<div>").addClass(D);t=i("<span>").addClass(T).append(o)}return t},_getDataAdapterOptions:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}},_selectByItem:function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}},_renderSelectedItem:function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(!t)return void this._selectByItem(n);var i=this._dataAdapter.getNodeByKey(t);if(i.selectable!==!1)return n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item)},_initActions:o.noop,_initMarkup:function(){this.callBase(),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=l.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_getShowSubmenuMode:function(){var e="onClick",t=this.option("showSubmenuMode");return t=a.isObject(t)?t.name:t,this._isDesktopDevice()?t:e},_initSelectedItems:o.noop,_isDesktopDevice:function(){return"desktop"===u.real().deviceType},_initEditStrategy:function(){var e=d;this._editStrategy=new e(this)},_addCustomCssClass:function(e){e.addClass(this.option("cssClass"))},_itemWrapperSelector:function(){return"."+w},_hoverStartHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e);n&&!t._isItemDisabled(n)&&(e.stopPropagation(),"onHover"===t._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(t._showSubmenu.bind(t,n),t._getSubmenuDelay("show"))))},_getAvailableItems:function(e){return this.callBase(e).filter(function(){return"hidden"!==i(this).css("visibility")})},_isItemDisabled:function(e){return this._disabledGetter(e.data(this._itemDataKey()))},_showSubmenu:function(e){this._addExpandedClass(e)},_addExpandedClass:function(e){i(e).addClass(y)},_getSubmenuDelay:function(e){var t=this.option("showSubmenuMode").delay;return a.isDefined(t)?a.isObject(t)?t[e]:t:B[e]},_getItemElementByEventArgs:function(e){var t=i(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if(t=t.parent(),t.hasClass("dx-submenu"))return null;return t},_hoverEndHandler:function(){clearTimeout(this._showSubmenusTimeout)},_hasSubmenu:function(e){return e.internalFields.childrenKeys.length},_renderContentImpl:function(){this._renderItems(this._dataAdapter.getRootNodes())},_renderItems:function(e,t){var n,i=this;if(e.length){this.hasIcons=!1,n=this._renderContainer(this.$element(),t);var o=-1,a=-1;r(e,function(e,t){var r=t.visible!==!1;r&&o<0&&(o=e);var s=o<e&&(t.beginGroup||e===a);s&&(a=r?e:e+1),e===a&&o<e&&i._renderSeparator(n),i._renderItem(e,t,n)}),this.hasIcons||n.addClass(f)}},_renderContainer:function(e){return i("<ul>").appendTo(e).addClass(x)},_createDOMElement:function(e){var t=i("<li>").appendTo(e).addClass(w);return t},_renderItem:function(e,t,n,i){var o,a=this.option("items");if(t.internalFields.item.visible!==!1){var r=i||this._createDOMElement(n);a[e+1]&&a[e+1].beginGroup&&r.addClass(C),o=this.callBase(e,t.internalFields.item,r),t.internalFields.item===this.option("selectedItem")&&o.addClass(v),o.attr("tabIndex",-1),this._hasSubmenu(t)&&this.setAria("haspopup","true",o)}},_renderItemFrame:function(e,t,n){var i=n.children("."+m);return i.length?i:this.callBase.apply(this,arguments)},_refreshItem:function(e,t){var n=this._dataAdapter.getNodeByItem(t),i=e.data(this._itemIndexKey()),o=e.closest("ul"),a=e.closest("li");this._renderItem(i,n,o,a)},_addContentClasses:function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass(k,n),t.toggleClass(S,i),this.hasIcons||(this.hasIcons=i),t.toggleClass(I,o)},_getItemContent:function(e){var t=this.callBase(e);return t.length||(t=e.children("."+_)),t},_postprocessRenderItem:function(e){var t,n=i(e.itemElement),o=this._dataAdapter.getSelectedNodesKeys();return o.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)?(t=this._dataAdapter.getNodeByItem(e.itemData),void(t.internalFields.key===o[0]?(n.addClass(this._selectedItemClass()),this._setAriaSelected(n,"true")):this._setAriaSelected(n,"false"))):void this._setAriaSelected(n,"false")},_isItemSelectable:function(e){return e.selectable!==!1},_renderSeparator:function(e){i("<li>").appendTo(e).addClass(b)},_itemClickHandler:function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}},_updateSubmenuVisibilityOnClick:function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)},_updateSelectedItemOnClick:function(e){var t,n=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(n.itemData)){t=this._dataAdapter.getSelectedNodesKeys();var i=t.length&&this._dataAdapter.getNodeByKey(t[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===n.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionSilent("selectedItem",null)):this.selectItem(n.itemData)}},_isItemSelectionAllowed:function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)},_isContainerEmpty:function(){return this._itemContainer().is(":empty")},_syncSelectionOptions:o.noop,_optionChanged:function(e){if(this._cancelOptionChange!==e.name)switch(e.name){case"showSubmenuMode":break;case"selectedItem":var t=e.value,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(n.selectable===!1)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_toggleItemSelection:function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&i(n).toggleClass(v),this._dataAdapter.toggleSelection(e.internalFields.key,t)},_getElementByItem:function(e){var t,n=this;return r(this._itemElements(),function(o,a){return i(a).data(n._itemDataKey())!==e||(t=a,!1)}),t},_updateSelectedItems:function(e,t){(e||t)&&(this._updateSelection(t,e),this._fireSelectionChangeEvent(t,e))},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})},selectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0],o=this.option("selectedItem");n.internalFields.key!==i&&(i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems(o,t),this._setOptionSilent("selectedItem",t))},unselectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionSilent("selectedItem",null))}});e.exports=O},function(e,t,n){var i=n(2),o=n(22),a=n(0).extend,r=n(3).each,s=n(14),l=n(106),c=n(527),d=n(44),u=n(67),h=n(1).isFunction,p=n(4).noop,f="dx-state-disabled",g=d.inherit({_getDefaultOptions:function(){return a(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new c(a({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:p,_initDynamicTemplates:function(){var e=this;this._defaultTemplates.item=new u(function(t,n){t.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),e._addContentClasses(n,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})},_getIconContainer:function(e){return e.icon?l.getImageContainer(e.icon):void 0},_getTextContainer:function(e){return i("<span>").text(e.text)},_getPopoutContainer:p,_addContentClasses:p,_initAccessors:function(){var e=this;r(this._getAccessors(),function(t,n){e._compileAccessor(n)})},_getAccessors:function(){return["key","display","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return r(e.internalFields.childrenKeys,function(e,i){var o=t._dataAdapter.getNodeByKey(i);n.push(o)}),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?h(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=o.compileGetter(i),void(this[n]=o.compileSetter(i))):(this[t]=p,void(this[n]=p))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return r(this._getAccessors(),function(n,i){var o="_"+i+"Getter",a="_"+i+"Setter",r="parentId"===i?"parentKey":i;t.getters[r]=e[o],t.setters[r]=e[a]}),t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:p,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(f,!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});e.exports=g},function(e,t,n){var i=n(2),o=n(5),a=n(197),r=n(1).isDefined,s=n(3).each,l=n(15),c=n(0).extend,d="text-content",u="headers",h="nowrap",p="dx-header-row",f="dx-column-lines",g="context-menu-sort-asc",m="context-menu-sort-desc",_="context-menu-sort-none",v="dx-cell-focus-disabled",w="dx-visibility-hidden",x="dx-text-content-alignment-",y="dx-sort-indicator",b="dx-header-filter-indicator",C="dx-header-multi-row";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:a.ColumnsView.inherit(function(){var e=function(e,n,o){var a,r=i("<div>").addClass(e.addWidgetPrefix(d));return e.setAria("role","presentation",r),t(e,n,o.column,r),a=e.option("showColumnLines"),r[a||"right"===o.column.alignment?"appendTo":"prependTo"](n)},t=function(e,t,n,i){var o=e._getIndicatorElements(t,!0),a=e._getIndicatorElements(t),r=o&&o.length,s=e._getColumnAlignment(n.alignment);i=i||t.children("."+e.addWidgetPrefix(d)),i.toggleClass(x+s,r>0).toggleClass(x+("left"===s?"right":"left"),r>0&&"center"===n.alignment).toggleClass(y,!!a.filter("."+e._getIndicatorClassName("sort")).length).toggleClass(b,!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return o.on(e,"mousedown selectstart",this.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()})),e},_getDefaultTemplate:function(t){var n,i=this;return n=t.command?function(e,t){var n=t.column;e.html(" "),e.addClass(n.cssClass)}:function(n,o){var a=e(i,n,o);a.text(t.caption)}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i,o=this,a=n.column,r=o.callBase(t);return i="header"===n.rowType&&r&&a.headerCellTemplate&&!a.command?{render:function(t){var n=e(o,t.container,t.model);r.render(c({},t,{container:n}))}}:r},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&n.addClass(v),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.id),this.setAria("label",l.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass(f,this.option("showColumnLines"));return"header"===e.rowType&&t.addClass(p),t},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(u)).toggleClass(e.addWidgetPrefix(h),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(C),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e,t=[],n=this.getRowCount();if(this.option("showColumnHeaders"))for(e=0;e<n;e++)t.push({rowType:"header",rowIndex:e});return t},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;return t.grouping?void(this._isGroupingChanged=!0):(this.callBase(e),void((n.width||n.visible)&&this.resizeCompleted.fire()))},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+w).remove(),t=this._getIndicatorContainer(e),t.clone().addClass(w).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(d))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(e),t(this,e,n),o},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(."+w+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this._getTableElement(),t=e&&e.find("."+p);return t&&t.toArray().reduce(function(e,t){return e+i(t).height()},0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,o,a,l,c=this,d=c._columnsController,u=c.getRowCount();if(c.option("showColumnHeaders")){if(u>1&&(!r(e)||r(t)))return o=[],l=r(t)?d.getChildrenByBandColumn(t,!0):d.getVisibleColumns(),s(l,function(t,i){n=r(e)?e:d.getRowIndex(i.index),a=c._getCellElement(n,d.getVisibleIndex(i.index,n)),a&&o.push(a.get(0))}),i(o);if(!e||e<u)return c.getCellElements(e||0)}},getVisibleColumnIndex:function(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,o,a=e&&this._columnsController.getRowIndex(e.index),r=this.getColumns(0===a?0:null),s=0,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<r.length;i++)l(r[i])&&s++;if(s<=1)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++)if(o=n[i],o&&o.allowDragging(e,t))return!0;return!1},getBoundingRect:function(){var e,t=this,n=t.getColumnElements();return n&&n.length?(e=t._getTableElement().offset(),{top:e.top}):null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){var t=this;switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":t._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t,n,i=this,o=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)&&(n=i.option("sorting"),n&&"none"!==n.mode&&o&&o.allowSorting))return t=function(e){setTimeout(function(){i._columnsController.changeSortOrder(o.index,e.itemData.value)})},[{text:n.ascendingText,value:"asc",disabled:"asc"===o.sortOrder,icon:g,onItemClick:t},{text:n.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:m,onItemClick:t},{text:n.clearText,value:"none",disabled:!o.sortOrder,icon:_,onItemClick:t}]},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,o,a=this,l=a.getRowCount(),c=a._columnsController.getColumns(),d=c&&c[e],u=d&&d.isBand&&d.index,h=function(e,n){n.ownerBand===u&&(o.eq(e).css({opacity:t}),n.isBand&&a.setRowsOpacity(n.index,t,i+1))};if(r(u))for(n=n||0,i=n;i<l;i++)o=a.getCellElements(i),s(a.getColumns(i),h)}}}())}}},function(e,t,n){var i=n(2),o=n(0).extend,a=n(103).getDefaultAlignment,r=n(4),s="dx-column-indicators",l="dx-group-panel-item";e.exports={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),a=t._getColumnAlignment(e.column.alignment,n),r=o(!0,{columnAlignment:a},e),s=r.rootElement.hasClass(l),c=t._createIndicatorContainer(r,s),d=i("<span>").addClass(t._getIndicatorClassName(e.name)),u=function(){return n?"left"===a?"right":"left":a};return r.container=c,r.indicator=d,t._renderIndicator(r),c[!s&&e.showColumnLines||"left"!==u()?"prependTo":"appendTo"](e.rootElement),d},_getIndicatorClassName:r.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:a(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),o="left"===e.columnAlignment?"right":"left";return n.length||(n=i("<div>").addClass(s)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?o:null)},_getIndicatorContainer:function(e){return e&&e.find("."+s)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n,i,o=this,a=o.getColumns(),r=o.getColumnElements();if(r&&r.length)for(i=0;i<a.length;i++)n=r.eq(i),o._updateIndicator(n,a[i],e),t=n.parent().data("options"),t&&t.cells&&(t.cells[n.index()].column=a[i])},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}}},function(e,t,n){var i=n(2),o=n(19),a=n(71).isWrapped,r=n(22),s=n(4).grep,l=n(1),c=n(3),d=n(103).getDefaultAlignment,u=n(0).extend,h=n(11).inArray,p=n(30),f=l.isDefined,g=n(54),m=n(21),_=n(46),v=n(45),w=v.normalizeSortingInfo,x=v.equalSortParameters,y=n(11).normalizeIndexes,b=n(37),C=n(65),k=n(49),S=n(33),I=n(15),D=n(7),T=D.when,E=D.Deferred,A=n(91),B=n(52),O=B.normalizeDataSourceOptions,R=n(196),M=["filterValues","filterType","fixed","fixedPosition"],P=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(M),V={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},F="dx-command-expand",H=/columns\[(\d+)\]\.?/gi,$=1;e.exports={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:I.format("dxDataGrid-trueText"),falseText:I.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:_.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},_="group",I="columnChooser",D=function(e){e.filterOperations=e.defaultFilterOperations},L=function(t,n,i,o){var a,r,s={};if(n){l.isString(n)&&(n={dataField:n});var c=void 0;return n.command?(r=t._commandColumns.some(function(e){return e.command===n.command}),r||(s.visible=!0),c=u(!0,s,n)):(s=t.getCommonSettings(),i&&i.name&&i.dataField&&(n=u({},n,{dataField:i.dataField})),a=t._createCalculatedColumnOptions(n,o),c=u(!0,{id:"dx-col-"+$++},e,s,a,n,{selector:null})),n.filterOperations===n.defaultFilterOperations&&D(c),c}},z=function e(t,n,i){var o=[];return n&&c.each(n,function(n,a){var r=t._columnsUserState&&re(a,t._columnsUserState[n])&&t._columnsUserState[n],s=L(t,a,r,i);s&&(i&&(s.ownerBand=i),o.push(s),s.isBand&&(o=o.concat(e(t,s.columns,s)),delete s.columns))}),o},N=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),e=i.index,i=t[e];return n},W=function e(t,n,i){var o,a=[],r=n[t];if(r)for(var s=0;s<r.length;s++)o=r[s],f(o.groupIndex)&&!o.showWhenGrouped||(a.push(o),i&&o.isBand&&(a=a.concat(e(o.index,n,i))));return a},q=function(e,t){for(var n,i=function(e){var t=n?n.index:void 0;return e.ownerBand===t},o=e._columns.filter(i),a=0;a<t.length;a++)n=o[t[a]],n&&(o=e._columns.filter(i));return n},G=function(e,t){for(var n=[],i=e.getBandColumnsCache(),o=function(e){return e.ownerBand===t.ownerBand},a=e._columns.filter(o);a.length&&a.indexOf(t)!==-1;)n.unshift("columns["+a.indexOf(t)+"]"),t=i.columnParentByIndex[t.index],a=t?e._columns.filter(o):[];return n.join(".")},K=function e(t,n){var i=0,o=t.getChildrenByBandColumn(n,!0);return c.each(o,function(n,o){o.isBand?(o.colspan=o.colspan||e(t,o.index),i+=o.colspan||1):i+=1}),i},j=function(e,t,n){var i,o,a,r=e.getRowCount();for(i=0;i<t.length;i++)o=t[i],(o.visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||K(e,o.index)),o.isBand&&o.colspan||(a=r-(o.command||f(o.groupIndex)?0:N(o.index,n.columnParentByIndex).length),a>1&&(o.rowspan=a)))},U=function(e){var t=l.type(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},Y=function(e,t){switch(e){case"date":case"datetime":return C.getDateSerializationFormat(t);case"number":if(l.isString(t))return"string";if(l.isNumeric(t))return null}},X=function(e,t){e.deserializeValue||(v.isDateType(t)&&(e.deserializeValue=function(e){return C.deserializeDate(e)},e.serializeValue=function(e){return l.isString(e)?e:C.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:f(e)&&"string"===this.serializationFormat?e.toString():e}))},Z=function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return d(t)}},J=function(e){if("boolean"===e)return function(e){return e.value===!0?this.trueText||"true":e.value===!1?this.falseText||"false":e.valueText||""}},Q=function(e,t){var n,i,o=e._getFirstItems(t),r={},s=[];for(i=0;i<o.length;i++)if(o[i])for(n in o[i])l.isFunction(o[i][n])&&!a(o[i][n])||(r[n]=!0);for(n in r)if(0!==n.indexOf("__")){var c=L(e,n);s.push(c)}return s},ee=function(e){c.each(e._columns,function(e,t){t.index=e}),c.each(e._columns,function(e,t){l.isObject(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),c.each(e._commandColumns,function(e,t){t.index=-(e+1)})},te=function(e,t){y(e._columns,"groupIndex",t,function(e){var t=e.grouped;return delete e.grouped,t})},ne=function(e,t){c.each(e._columns,function(e,t){f(t.sortIndex)&&!me(t.sortOrder)&&delete t.sortIndex}),y(e._columns,"sortIndex",t,function(e){return!f(e.groupIndex)&&me(e.sortOrder)})},ie=function(e,t){var n,i,o,a,r,s={},l=[],c=e.getBandColumnsCache(),d=e._columns.filter(function(e){return!e.command});for(n=0;n<d.length;n++)o=d[n],r=N(n,c.columnParentByIndex),r.length?(a=r[r.length-1].index,s[a]=s[a]||[],s[a].push(o)):l.push(o);for(i in s)y(s[i],"visibleIndex",t);y(l,"visibleIndex",t)},oe=function(e,t,n){var i,o=l.isObject(t)?t.rowIndex:null,a=n===_?e.getGroupColumns():n===I?e.getChooserColumns():e.getVisibleColumns(o);return t=l.isObject(t)?t.columnIndex:t,i=a[t],i&&f(i.index)?i.index:-1},ae=function(e,t,n){var i,o=e.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);return n},re=function(e,t){return e&&t&&t.name===e.name&&(t.dataField===e.dataField||e.name)},se=function(e){function t(e,t){var n;if(t)for(var i=0;i<P.length;i++)n=P[i],h(n,l)>=0||("dataType"===n?e[n]=e[n]||t[n]:h(n,M)>=0?n in t&&(e[n]=t[n]):("selectedFilterOperation"===n&&t[n]&&(e.defaultSelectedFilterOperation=e[n]||null),e[n]=t[n]))}function n(e,t){for(var n=t.name||t.dataField,i=d[n]||0,o=0;o<e.length;o++)if(re(t,e[o])){if(!i)return d[n]=d[n]||0,d[n]++,o;i--}return-1}var i,o,a,r,s=e._columnsUserState,l=e._ignoreColumnOptionNames||[],c=e._columns,d={},u=[],p=!0,g=[];if(s){for(r=0;r<c.length;r++)a=n(s,c[r]),p=p&&a>=0,g.push(a);for(r=0;r<c.length;r++)i=c[r],a=g[r],(e._hasUserState||p)&&t(i,s[a]),a>=0&&f(s[a].initialIndex)?u[a]=i:u.push(i);for(r=0;r<s.length;r++)o=s[r],o.added&&n(c,o)<0&&(i=L(e,o.added),t(i,o),u.push(i),o.added.columns&&(u=z(e,u)));de(e,u)}},le=function(e,t){ee(e),te(e,t),ne(e,t),ie(e,t)},ce=function(e){e.resetColumnsCache()},de=function(e,t){e._columns=t,ce(e),e.updateColumnDataTypes()},ue=function(e,t,n,i){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=n||"all",n=n.split(".")[0];var a=o.changeTypes;t&&!a[t]&&(a[t]=!0,a.length++);var r=o.optionNames;n&&!r[n]&&(r[n]=!0,r.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,e._columnChanges=o,ce(e)},he=function(e){var t=e.option("onColumnsChanging"),n=e._columnChanges;e.isInitialized()&&!e._updateLockCount&&n&&(t&&(e._updateLockCount++,t(u({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,n.optionNames&&(n.optionNames.dataField||n.optionNames.lookup||n.optionNames.dataType)?e.reinit():e.columnsChanged.fire(n))},pe=function(e,t,n){var i=n>=0;t>=0?i||(e.lastSortOrder=e.sortOrder):e.sortOrder=e.lastSortOrder},fe=function(e,t){var n=t.value,i=t.optionName,o=t.prevValue,a=t.fullOptionName;V[i]||(e._skipProcessingColumnsChange=!0,e.component._notifyOptionChanged(a+"."+i,n,o),e._skipProcessingColumnsChange=!1)},ge=function(e,t,n,i,o){var a,s,c,d,u,p,g=r.compileGetter(n),m=t.index;return 3===arguments.length?g(t,{functionsAsIs:!0}):(a=g(t,{functionsAsIs:!0}),void(a!==i&&("groupIndex"===n||"calculateGroupValue"===n?(d="grouping",pe(t,i,a)):d="sortIndex"===n||"sortOrder"===n||"calculateSortValue"===n?"sorting":"columns",s=r.compileSetter(n),s(t,i,{functionsAsIs:!0}),u=G(e,t),u&&fe(e,{fullOptionName:u,optionName:n,value:i,prevValue:a}),f(a)||f(i)||0===n.indexOf("buffer")||(o=!0),o?ce(e):(h(n,P)<0&&"visibleWidth"!==n&&(c=e.option("columns"),p=e.getColumnByPath(u,c),l.isString(p)&&(p=c[m]={dataField:p}),p&&re(p,t)&&s(p,i,{functionsAsIs:!0})),ue(e,d,n,m)))))},me=function(e){return"asc"===e||"desc"===e},_e=function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)},ve=function(e,t){var n,i,o=this.dataField.split("."),a=o.length-1;for(this.serializeValue&&(t=this.serializeValue(t)),i=0;i<a;i++)n=o[i],e=e[n]=e[n]||{};e[o[a]]=t},we=function e(t,n,i){var o=[];return n=n||0,t[n]&&c.each(t[n],function(a,r){(r.ownerBand===i||f(r.groupIndex))&&(r.isBand&&r.colspan?o.push.apply(o,e(t,n+1,r.index)):(!r.command||n<1)&&o.push(r))}),o},xe=function(e,t,n){var i=1,o=e.getBandColumnsCache(),a=o.columnParentByIndex;return e._columns.forEach(function(e){var t=N(e.index,a),n=t.filter(function(e){return!e.visible});e.visible&&!n.length&&(i=Math.max(i,t.length+1))}),i},ye=function(e){return e.fixedPosition?e.fixedPosition:"left"},be=function(e,t,n){var i=e[n]&&e[n].rowspan,o=t.slice(0);return i>1&&(o=c.map(o,function(e){return u({},e,{rowspan:i})})),o.unshift(n,0),e.splice.apply(e,o),i||1},Ce=function(e){var t;for(t=0;e>1;t++)e/=10;return t},ke=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n},Se=function(e,t,n){
|
|
38
|
+
var i,o,a,r=e.length?(n&&t||e).slice().map(function(e){return u({},e)}):[],s=function(e){return t.reduce(function(t,n,i){return n.command===e.command?i:t},-1)};if(r.length)for(i=0;i<e.length;i++)o=e[i],a=o&&o.command?s(o):-1,a>=0?n?r[a]=u({},r[a],o):r[i]=u({},r[i],t[a]):o&&n&&r.push(u({},o));return r};return{_getExpandColumnOptions:function(){return{command:"expand",width:"auto",cssClass:F,allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,n=[],i=function e(t,n){var i,o;if(!t||!n)return t;for(i=0;i<t.length;i++)if(o=e(t[i].items||t[i].collapsedItems,n-1),o&&o.length)return o};return e&&e.items().length>0&&(t=w(e.group()).length,n=i(e.items(),t)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&he(this)},init:function(){var e=this,t=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],_e(e),e._isColumnsFromOptions=!!t,e._isColumnsFromOptions?(de(e,t?z(e,t):[]),se(e)):de(e,e._columnsUserState?z(e,e._columnsUserState):e._columns),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):le(e)},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var n,i=this,o=[];return e.replace(H,function(e,t){return o.push(parseInt(t)),""}),o.length&&(n=t?o.reduce(function(e,t){return e&&e.columns&&e.columns[t]},{columns:t}):q(i,o)),n},optionChanged:function(e){switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"columns":e.handled=!0,this._skipProcessingColumnsChange?this._updateRequireResize(e):e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):this._columnOptionChanged(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0,this.reinit();break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},n=this.getColumnByPath(e.fullName),i=e.fullName.replace(H,"");n&&(i?t[i]=e.value:t=e.value,this.columnOption(n.index,t))},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(H,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns"]},applyDataSource:function(e,t){var n=this,i=e&&e.isLoaded();if(n._dataSource=e,!n._dataSourceApplied||0===n._dataSourceColumnsCount||t||n.option("regenerateColumnsByVisibleItems")){if(i){if(!n._isColumnsFromOptions){var o=Q(n,e);o.length&&(de(n,o),n._dataSourceColumnsCount=n._columns.length,se(n))}return n.updateColumns(e,t)}n._dataSourceApplied=!1}else if(i&&!n.isAllDataTypesDefined(!0)&&n.updateColumnDataTypes(e))return ue(n,"columns"),he(n),(new E).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){var e=this;e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,e._bandColumnsCache=void 0},reinit:function(){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=null,this.init()},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(){var e=this.option("commonColumnSettings")||{},t=this.option("grouping")||{},n=this.option("groupPanel")||{};return u({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:t.autoExpandAll,allowCollapsing:t.allowCollapsing,allowGrouping:n.allowColumnDragging&&n.visible||t.contextMenuEnabled},e)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t,n=this._columns;if(!n.length)return!1;for(t=0;t<n.length;t++)if((n[t].dataField||n[t].calculateCellValue!==n[t].defaultCalculateCellValue)&&(!n[t].dataType||e&&n[t].deserializeValue&&void 0===n[t].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(e){return e.isBand})},getGroupColumns:function(){var e=[];return c.each(this._columns,function(){var t=this;f(t.groupIndex)&&(e[t.groupIndex]=t)}),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),e=f(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=f(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},getFilteringColumns:function(){return this.getColumns().filter(function(e){return(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)}).map(function(e){var t=u(!0,{},e);return f(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t})},_getFixedColumnsCore:function(){var e,t,n,i,o,a,r,s,l=this,c=[],d=l.getRowCount(),u=l._isColumnFixing(),h={command:"transparent"},p=0;if(u)for(e=0;e<=d;e++){for(o=0,r=null,a=null,s=l.getVisibleColumns(e,!0),t=0;t<s.length;t++)i=s[t-1],n=s[t],n.command||(n.fixed?i&&i.fixed&&ye(i)!==ye(n)?f(a)||(a=t):r=n.fixedPosition:(0===e&&(n.isBand&&n.colspan?p+=n.colspan:p++),o++,f(a)||(a=t)));if(0===e&&(0===o||o>=s.length))return[];f(a)||(a="right"===r?0:s.length),c[e]=s.slice(0),h.colspan||(h.colspan=p),c[e].splice(a,o,h)}return c},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&c.each(this._columns,function(t,n){if(n.fixed)return e=!0,!1}),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore();return t.length&&(e=this.columnOption("command:expand")),t=c.map(t,function(t){return u({},t,{visibleWidth:null,minWidth:null,cellTemplate:l.isDefined(t.groupIndex)?null:t.cellTemplate,headerCellTemplate:null},e,{index:t.index})})},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},n={};e.forEach(function(i){var o=i.ownerBand,a=e[o];i.colspan&&(i.colspan=void 0),i.rowspan&&(i.rowspan=void 0),a?n[i.index]=a:o=-1,t[o]=t[o]||[],t[o].push(i)}),this._bandColumnsCache={columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_getVisibleColumnsCore:function(){var e,t,n,i=this,o=[],a=0,r=Se(i.getExpandColumns(),i._columns),s=i.getRowCount(),l=[],d=[],u=0,h=i.option("rtlEnabled"),p=Se(i._columns,i._commandColumns,!0),m=i.getBandColumnsCache(),_=Ce(p.length);for(j(i,p,m),e=0;e<s;e++)o[e]=[],d[e]=[{}],l[e]=[{},{},{}];return c.each(p,function(){var t,o,a=this,r=a.visibleIndex,s=N(a.index,m.columnParentByIndex),c=i._isColumnVisible(a);if(c&&(!f(a.groupIndex)||a.showWhenGrouped)){if(t=s.length,r<0?(r=-r,o=d[t]):(a.fixed=s.length?s[0].fixed:a.fixed,a.fixedPosition=s.length?s[0].fixedPosition:a.fixedPosition,a.fixed||a.command?(n="right"===a.fixedPosition,h&&(n=!n),o=n||a.command?l[t][2]:l[t][0]):o=l[t][1]),s.length)for(r=ke(r,_),e=s.length-1;e>=0;e--)r=ke(s[e].visibleIndex,_)+r;o[r]=o[r]||[],o[r].push(a),u++}}),c.each(o,function(e){g.orderEach(d[e],function(t,n){o[e].unshift.apply(o[e],n)}),t=o[e].length,c.each(l[e],function(t,n){g.orderEach(n,function(t,n){o[e].push.apply(o[e],n)})}),a<e+1&&(a+=be(o[e],r,t))}),o.push(we(o)),!u&&i._columns.length&&o[s].push({command:"empty"}),o},getInvisibleColumns:function(e,t){var n,i=this,o=[];return e=e||i._columns,c.each(e,function(e,a){if(a.ownerBand===t)return a.isBand?(n=a.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(a.index),a.index):i.getChildrenByBandColumn(a.index),void(n.length&&(o.push(a),o=o.concat(n)))):void(a.visible||o.push(a))}),o},getChooserColumns:function(e){var t=e?this.getColumns():this.getInvisibleColumns();return s(t,function(e){return e.showInColumnChooser})},allowMoveColumn:function(e,t,n,i){var o=this,a=oe(o,e,n),r=o._columns[a];return!(!r||!(r.allowReordering||r.allowGrouping||r.allowHiding))&&(n===i?n!==I&&(e=l.isObject(e)?e.columnIndex:e,t=l.isObject(t)?t.columnIndex:t,e!==t&&e+1!==t):n===_&&i!==I||i===_?r&&r.allowGrouping:n!==I&&i!==I||r&&r.allowHiding)},moveColumn:function(e,t,n,i){var o,a,r,s=this,c={},d=oe(s,e,n),u=oe(s,t,i);if(d>=0){if(r=s._columns[d],t=l.isObject(t)?t.columnIndex:t,a=u>=0?s._columns[u].groupIndex:-1,f(r.groupIndex)&&n===_&&(a>r.groupIndex&&a--,i!==_?c.groupIndex=void 0:(o=r.groupIndex,delete r.groupIndex,te(s))),i===_)c.groupIndex=ae(s,r,a),r.groupIndex=o;else if(t>=0){var h=s._columns[u];h&&r.ownerBand===h.ownerBand?r.fixed^h.fixed?c.visibleIndex=void 0:c.visibleIndex=h.visibleIndex:c.visibleIndex=void 0}var p=i!==I;r.visible!==p&&(c.visible=p),s.columnOption(r.index,c)}},changeSortOrder:function(e,t){var n=this,i={},o=n.option("sorting"),a=o&&o.mode,r="single"===a||!t,s="single"===a||"multiple"===a,l=n._columns[e],d=function(e){if("ctrl"===t){if(!("sortOrder"in e&&"sortIndex"in e))return!1;i.sortOrder=void 0,i.sortIndex=void 0}else f(e.groupIndex)||f(e.sortIndex)?i.sortOrder="desc"===e.sortOrder?"asc":"desc":i.sortOrder="asc";return!0};s&&l&&l.allowSorting&&(r&&!f(l.groupIndex)&&c.each(n._columns,function(t){t!==e&&this.sortOrder&&!f(this.groupIndex)&&(delete this.sortOrder,delete this.sortIndex)}),me(t)?l.sortOrder!==t&&(i.sortOrder=t):"none"===t?l.sortOrder&&(i.sortIndex=void 0,i.sortOrder=void 0):d(l)),n.columnOption(l.index,i)},getSortDataSourceParameters:function(e){var t=this,n=[],i=[];return c.each(t._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&f(this.sortIndex)&&!f(this.groupIndex)&&(n[this.sortIndex]=this)}),c.each(n,function(){var t=this&&this.sortOrder;if(me(t)){var n={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(n.compare=this.sortingMethod.bind(this)),i.push(n)}}),i.length>0?i:null},getGroupDataSourceParameters:function(e){var t=[];return c.each(this.getGroupColumns(),function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),t.push(i)}}),t.length>0?t:null},refresh:function(e){var t=[];return c.each(this._columns,function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}}),T.apply(i,t).done(ce.bind(null,this))},_updateColumnOptions:function(e){e.selector=e.selector||function(t){return e.calculateCellValue(t)},c.each(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(t,n){var i=e[n];l.isFunction(i)&&!i.originalCallback&&(e[n]=function(t){return i.call(e,t)},e[n].originalCallback=i)}),l.isString(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=r.compileGetter(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),X(e,e.dataType);var n=e.lookup;n&&X(n,n.dataType);var i=n?n.dataType:e.dataType;i&&(e.alignment=e.alignment||Z(i,this.option("rtlEnabled")),e.format=e.format||v.getFormatByDataType(i),e.customizeText=e.customizeText||J(i),e.defaultFilterOperations=e.defaultFilterOperations||!n&&t[i]||[],f(e.filterOperations)||D(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=f(e.showEditorAlways)?e.showEditorAlways:"boolean"===i&&!e.cellTemplate)},updateColumnDataTypes:function(e){var t=this,n=t.option("dateSerializationFormat"),i=t._getFirstItems(e),o=!1;return c.each(t._columns,function(e,a){var r,s,l,c,d,u=a.lookup;if(v.isDateType(a.dataType)&&void 0===a.serializationFormat&&(a.serializationFormat=n),u&&v.isDateType(u.dataType)&&void 0===a.serializationFormat&&(u.serializationFormat=n),a.calculateCellValue&&i.length){if(!a.dataType||u&&!u.dataType){for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r]),a.dataType||(d=U(s),l=l||d,l&&d&&l!==d&&(l="string")),u&&!u.dataType&&(d=U(v.getDisplayValue(a,s,i[r])),c=c||d,c&&d&&c!==d&&(c="string"));(l||c)&&(l&&(a.dataType=l),u&&c&&(u.dataType=c),o=!0)}if(void 0===a.serializationFormat||u&&void 0===u.serializationFormat)for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r],!0),void 0===a.serializationFormat&&(a.serializationFormat=Y(a.dataType,s)),u&&void 0===u.serializationFormat&&(u.serializationFormat=Y(u.dataType,u.calculateCellValue(s,!0)))}t._updateColumnOptions(a)}),o},_customizeColumns:function(e){var t,n=this,i=n.option("customizeColumns");i&&(t=e.some(function(e){return l.isObject(e.ownerBand)}),t&&le(n),i(e),de(n,z(n,e)))},updateColumns:function(e,t){var n,i,o=this;if(t||o.updateSortingGrouping(e),!e||e.isLoaded()){n=e?e.sort()||[]:o.getSortDataSourceParameters(),i=e?e.group()||[]:o.getGroupDataSourceParameters(),o._customizeColumns(o._columns),le(o);var a=o._columns;return T(o.refresh(!0)).always(function(){o._columns===a&&(o._updateChanges(e,{sorting:n,grouping:i}),he(o))})}},_updateChanges:function(e,t){var n=this;e&&(n.updateColumnDataTypes(e),n._dataSourceApplied=!0),x(t.sorting,n.getSortDataSourceParameters())||ue(n,"sorting"),x(t.grouping,n.getGroupDataSourceParameters())||ue(n,"grouping"),ue(n,"columns")},updateSortingGrouping:function(e,t){var n,i,o,a,r,s=this,l=function(e,t,n){var i,o,a;c.each(e,function(e,r){if(delete r[n],t)for(i=0;i<t.length;i++)if(o=t[i].selector,a=t[i].isExpanded,o===r.dataField||o===r.name||o===r.selector||o===r.calculateCellValue||o===r.calculateGroupValue){r.sortOrder=r.sortOrder||(t[i].desc?"desc":"asc"),void 0!==a&&(r.autoExpandGroup=a),r[n]=i;break}})};e&&(n=w(e.sort()),i=w(e.group()),o=s.getGroupDataSourceParameters(),a=s.getSortDataSourceParameters(),s._columns.length||(c.each(i,function(e,t){s._columns.push(t.selector)}),c.each(n,function(e,t){s._columns.push(t.selector)}),de(s,z(s,s._columns))),!t&&(o||s._hasUserState)||x(i,o)||(l(s._columns,i,"groupIndex"),t&&(ue(s,"grouping"),r=!0)),!t&&(a||s._hasUserState)||x(n,a)||(l(s._columns,n,"sortIndex"),t&&(ue(s,"sorting"),r=!0)),r&&he(s))},updateFilter:function(e,t,n,i){var o=this;if(!Array.isArray(e))return e;var a,r;for(e=u([],e),n=e.columnIndex||n,i=e.filterValue||i,l.isString(e[0])?(a=o.columnOption(e[0]),t?p().forceIsoDateParsing&&a&&a.serializeValue&&e.length>1&&(e[e.length-1]=a.serializeValue(e[e.length-1],"filter")):a&&a.selector&&(e[0]=a.selector,e[0].columnIndex=a.index)):l.isFunction(e[0])&&(e[0].columnIndex=n,e[0].filterValue=i),r=0;r<e.length;r++)e[r]=o.updateFilter(e[r],t,n,i);return e},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(e,t,i,o){var a,r,s,d=this,h=l.isString(e)&&e.substr(0,e.indexOf(":")),p=e<0||"command"===h?d._columns.concat(d._commandColumns):d._columns;if(void 0!==e){for(h&&(e=e.substr(h.length+1)),a=0;a<p.length;a++)if(h){if(""+p[a][h]===e){s=p[a];break}}else if(p[a].index===e||p[a].name===e||p[a].dataField===e||p[a].caption===e){s=p[a];break}if(s){if(1===arguments.length)return u({},s);if(l.isString(t)){if(2===arguments.length)return ge(d,s,t);r=r||n[t],ge(d,s,t,i,o)}else l.isObject(t)&&c.each(t,function(e,t){r=r||n[e],ge(d,s,e,t,o)});r&&le(d,s),he(d)}}},clearSorting:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"sortOrder",void 0);t.endUpdate()},clearGrouping:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"groupIndex",void 0);t.endUpdate()},getVisibleIndex:function(e,t){var n,i=this.getVisibleColumns(t);for(n=i.length-1;n>=0;n--)if(i[n].index===e)return n;return-1},addColumn:function(e){var t=this,n=L(t,e),i=t._columns.length;t._columns.push(n),n.isBand&&(t._columns=z(t,t._columns),n=t._columns[i]),n.added=e,le(t,n),t.updateColumns(t._dataSource)},deleteColumn:function(e){var t,n=this,i=n.columnOption(e);i&&i.index>=0&&(n._columns.splice(i.index,1),i.isBand&&(t=n.getChildrenByBandColumn(i.index).map(function(e){return e.index}),n._columns=n._columns.filter(function(e){return t.indexOf(e.index)<0})),le(n),n.updateColumns(n._dataSource))},addCommandColumn:function(e){var t,n=this._commandColumns;for(t=0;t<n.length;t++)if(n[t].command===e.command)return;n.push(e)},getUserState:function(){function e(e,o){void 0!==n[t][o]&&(i[t][o]=n[t][o])}var t,n=this._columns,i=[];for(t=0;t<n.length;t++)i[t]={},c.each(P,e);return i},setUserState:function(e){var t,n=this,i=n.option("stateStoring.ignoreColumnOptionNames");i||(i=[],t=n.getCommonSettings(),n.option("columnChooser.enabled")||i.push("visible"),"none"===n.option("sorting.mode")&&i.push("sortIndex","sortOrder"),t.allowGrouping||i.push("groupIndex"),t.allowFixing||i.push("fixed","fixedPosition"),t.allowResizing||i.push("width","visibleWidth"),n.option("filterRow.visible")||i.push("filterValue","selectedFilterOperation"),n.option("headerFilter.visible")||i.push("filterValues","filterType")),n._columnsUserState=e,n._ignoreColumnOptionNames=i,n._hasUserState=!!e,ue(n,"filtering"),n.init()},_createCalculatedColumnOptions:function(e,t){var n,i={},s=e.dataField;return(Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(i.isBand=!0,s=null),s?(l.isString(s)&&(n=r.compileGetter(s),i={caption:b.captionize(s),calculateCellValue:function(e,t){var i=n(e);return this.deserializeValue&&!t?this.deserializeValue(i):i},setCellValue:ve,parseValue:function(e){var t,n,i=this;return"number"===i.dataType?l.isString(e)&&i.format?(n=k.parse(e),l.isNumeric(n)&&(t=n)):f(e)&&l.isNumeric(e)&&(t=Number(e)):"boolean"===i.dataType?e===i.trueText?t=!0:e===i.falseText&&(t=!1):v.isDateType(i.dataType)?(n=S.parse(e,i.format),n&&(t=n)):t=e,t}}),i.allowFiltering=!0):i.allowFiltering=!!e.calculateFilterExpression,i.calculateFilterExpression=function(){return R.defaultCalculateFilterExpression.apply(this,arguments)},i.createFilterExpression=function(e){var t;return this.calculateFilterExpression&&(t=this.calculateFilterExpression.apply(this,arguments)),l.isFunction(t)?t=[t,"=",!0]:t&&(t.columnIndex=this.index,t.filterValue=e),t},s&&l.isString(s)||u(!0,i,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(i.allowFixing=!1),e.dataType&&(i.userDataType=e.dataType),!e.selectedFilterOperation||"defaultSelectedFilterOperation"in i||(i.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(i.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){var e,t,n,i;if(this.valueMap={},this.items)for(e=r.compileGetter(this.valueExpr),t=r.compileGetter(this.displayExpr),i=0;i<this.items.length;i++){n=this.items[i];var o=t(n);this.valueMap[e(n)]=o,this.dataType=this.dataType||U(o)}},update:function(){var e,t=this,n=t.dataSource;if(n)if(l.isFunction(n)&&!a(n)&&(n=n({})),l.isPlainObject(n)||n instanceof A||Array.isArray(n)){if(t.valueExpr)return e=O(n),e.paginate=!1,n=new B.DataSource(e),n.load().done(function(e){t.items=e,t.updateValueMap&&t.updateValueMap()})}else m.log("E1016");else t.updateValueMap&&t.updateValueMap()}}),i.resizedCallbacks=o(),e.resized&&i.resizedCallbacks.add(e.resized.bind(e)),c.each(i,function(e){var t;l.isFunction(i[e])&&0!==e.indexOf("default")&&(t="default"+e.charAt(0).toUpperCase()+e.substr(1),i[t]=i[e])}),i},getRowCount:function(){return this._rowCount=this._rowCount||xe(this),this._rowCount},getRowIndex:function(e,t){var n=this._columns[e],i=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!f(n.groupIndex))?N(e,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var n=this,i=n.getBandColumnsCache(),o=W(e,i.columnChildrenByIndex,!t);return t?o.filter(function(e){return e.visible&&!e.command}).sort(function(e,t){return e.visibleIndex-t.visibleIndex}):o},isParentBandColumn:function(e,t){var n=!1,i=this._columns[e],o=this.getBandColumnsCache(),a=i&&N(e,o.columnParentByIndex);return a&&c.each(a,function(e,i){if(i.index===t)return n=!0,!1}),n},isParentColumnVisible:function(e){var t=!0,n=this.getBandColumnsCache(),i=e>=0&&N(e,n.columnParentByIndex);return i&&c.each(i,function(e,n){return t=t&&n.visible}),t}}}())}}},function(e,t,n){var i=n(19),o=n(27),a=n(4),r=n(1),s=n(3).each,l=n(0).extend,c=n(79),d=n(7),u=d.when,h=d.Deferred;e.exports=o.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i<t.length;i++)t[i]=l({key:t[i].key},t[i]),t[i].items=e(t[i].items,n-1);return t}function t(e,t){var n={};return t&&(n={sorting:!o.equalSortParameters(e.sort,t.sort),grouping:!o.equalSortParameters(e.group,t.group,!0),groupExpanding:!o.equalSortParameters(e.group,t.group),filtering:!o.equalFilterParameters(e.filter,t.filter),skip:e.skip!==t.skip,take:e.take!==t.take},n.reload=n.sorting||n.grouping||n.filtering,n.paging=n.skip||n.take),n}function n(e,t){r.isDefined(t)?a.executeAsync(e,t):e()}function d(){return{pages:{}}}function p(e){return e.cachedPagesData.pages[e.pageIndex]}function f(e,t){var n=e.pageIndex;void 0!==n&&(e.cachedPagesData.pages[n]=t)}return{init:function(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedPagesData=d(),n.changed=i(),n.loadingChanged=i(),n.loadError=i(),n.customizeStoreLoadOptions=i(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataLoadingHandler=n._handleDataLoading.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._dataLoadingHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),s(e,function(e,t){!n[e]&&r.isFunction(t)&&(n[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this,n=t._dataSource;n.off("changed",t._dataChangedHandler),n.off("customizeStoreLoadOptions",t._dataLoadingHandler),n.off("customizeLoadResult",t._dataLoadedHandler),n.off("loadingChanged",t._loadingChangedHandler),n.off("loadError",t._loadErrorHandler),e||n.dispose()},refresh:function(e,t,n){var i=this,o=i._dataSource;(t||n.reload)&&(i._currentTotalCount=0,i._isLastPage=!o.paginate(),i._hasLastPage=i._isLastPage)},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedPagesData=d()},_customizeRemoteOperations:function(e,t,n){var i=this,o=i._cachedStoreData,a=i._cachedPagingData,r=i._cachedPagesData;t?(o=void 0,a=void 0,r=d()):(n.reload?(a=void 0,r=d()):(n.take||n.groupExpanding)&&(r=d()),s(n,function(t,n){n&&e.remoteOperations[t]&&(o=void 0,a=void 0)})),a&&(e.remoteOperations.paging=!1),e.cachedStoreData=o,e.cachedPagingData=a,e.cachedPagesData=r,e.isCustomLoading||(i._cachedStoreData=o,i._cachedPagingData=a,i._cachedPagesData=r)},_handleDataLoading:function(e){var n,i,o=this,a=o._dataSource,r=o._lastLoadOptions;o.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=l({},this.remoteOperations());var s=!o.isLoaded()&&!o._isRefreshing;if(o.option("integrationOptions.renderedOnServer")&&!o.isLoaded()&&(e.delay=void 0),n=l({},e.storeLoadOptions),i=t(n,r),o._customizeRemoteOperations(e,s,i),!e.isCustomLoading){var c=o._isRefreshing;e.pageIndex=a.pageIndex(),e.lastLoadOptions=n,o._isRefreshing=!0,u(c||o._isRefreshed||o.refresh(e,s,i)).done(function(){o._lastOperationId===e.operationId&&(o._isRefreshed=!0,o.load().always(function(){o._isRefreshed=!1}))}).fail(function(){a.cancel(e.operationId)}).always(function(){o._isRefreshing=!1}),a.cancel(o._lastOperationId),o._lastOperationId=e.operationId,o._isRefreshing&&a.cancel(o._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var n=e.cachedPagesData.extra,i={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:n&&"totalCount"in n||!t.paging};s(e.storeLoadOptions,function(t,n){i[t]&&(e.loadOptions[t]=n,delete e.storeLoadOptions[t])}),n&&(e.extra=n),e.data=p(e)||e.cachedStoreData},_handleDataLoaded:function(t){var n=this,i=t.loadOptions,a=t.remoteOperations&&!t.remoteOperations.paging,s=t.cachedPagesData,d=this.option("cacheEnabled")!==!1&&t.storeLoadOptions,g=d&&!t.isCustomLoading&&s&&(!a||t.storeLoadOptions.group)&&!this.option("legacyRendering"),m=d&&a,_=m&&!t.isCustomLoading;if(!i)return void this._dataSource.cancel(t.operationId);t.lastLoadOptions&&(this._lastLoadOptions=t.lastLoadOptions),a&&(t.skip=i.skip,t.take=i.take,delete i.skip,delete i.take),i.group&&(i.group=t.group||i.group);var v=o.normalizeSortingInfo(t.storeLoadOptions.group||i.group).length;g&&p(t)||(m&&t.cachedPagingData?t.data=e(t.cachedPagingData,v):(_&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,o.normalizeSortingInfo(t.storeLoadOptions.group).length)),new c(t.data).load(i).done(function(i){t.data=i,_&&(n._cachedPagingData=e(t.data,v))}).fail(function(e){t.data=(new h).reject(e)})),i.requireTotalCount&&a&&(t.extra=r.isPlainObject(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),this._handleDataLoadedCore(t),g&&(s.extra=s.extra||l({},t.extra),u(t.data).done(function(n){f(t,e(n,v))}))),t.storeLoadOptions=t.originalStoreLoadOptions},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.changed.fire({changeType:"loadError",error:e}),this.loadError.fire(e)},_handleDataChanged:function(e){var t,n=this,i=n._dataSource,o=!1,a=n.itemsCount();n._isLastPage=!a||!n.pageSize()||a<n.pageSize(),n._isLastPage&&(n._hasLastPage=!0),i.totalCount()>=0?i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),n.pageIndex(i.pageIndex()),i.reload(),o=!0):(t=i.pageIndex()*n.pageSize()+a,n._currentTotalCount=Math.max(n._currentTotalCount,t),0===a&&i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),"infinite"!==n.option("scrolling.mode")&&(i.load(),o=!0))),o||(this.component._optionCache={},this.changed.fire(e),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always(function(){t._isCustomLoading=!1})},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt(this._currentTotalCount||this._dataSource.totalCount())},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this,t=e.totalItemsCount(),n=e.pageSize();return n&&t>0?Math.max(1,Math.ceil(t/n)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e){var t=this._dataSource,n=new h;if(t)return t.store().load(e).done(function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),n.resolve(e,t)}).fail(n.reject),n},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t,i,o,a=this,r=a._dataSource,l=new h;return e?(t=r.store(),o=r.loadOptions(),i={storeLoadOptions:e,isCustomLoading:!0},s(t._customLoadOptions()||[],function(e,t){t in i.storeLoadOptions||(i.storeLoadOptions[t]=o[t])}),a._scheduleCustomLoadCallbacks(l),r._scheduleLoadCallbacks(l),a._handleDataLoading(i),n(function(){return r.store()?void u(i.data||a.loadFromStore(i.storeLoadOptions)).done(function(n,o){i.data=n,i.extra=o||{},a._handleDataLoaded(i),e.requireTotalCount&&void 0===i.extra.totalCount&&(i.extra.totalCount=t.totalCount(i.storeLoadOptions)),u(i.data,i.extra.totalCount).done(function(e,t){i.extra.totalCount=t,l.resolve(e,i.extra)}).fail(l.reject)}).fail(l.reject):l.reject("canceled")},a.option("loadingTimeout")),l.fail(function(){a.fireEvent("loadError",arguments)}).promise()):r.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()}}}())},function(e,t,n){var i=n(2),o=n(46),a=n(45),r=n(79),s=n(158),l=n(21),c=n(4),d=n(3).each,u=n(1),h=n(0).extend,p=n(112),f=c.equalByValue,g=n(7),m=g.when,_=g.Deferred;e.exports={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:o.Controller.inherit({}).include(p).inherit(function(){var e=function(e,t,n){var i=e._dataSource;return i?void 0!==n?i[t]()!==n?("pageSize"===t&&i.pageIndex(0),i[t](n),e._skipProcessingPagingChange=!0,e.option("paging."+t,n),e._skipProcessingPagingChange=!1,i["pageIndex"===t?"load":"reload"]().done(e.pageChanged.fire.bind(e.pageChanged))):_().resolve().promise():i[t]():0},t={init:function(){var e=this;e._items=[],e._columnsController=e.getController("columns"),e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._dataChangedHandler=e._handleDataChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add(function(t){return e.executeAction("onDataErrorOccurred",{error:t})}),e._refreshDataSource()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},optionChanged:function(e){function t(){e.handled=!0}var n,i=this;if("dataSource"===e.name&&e.name===e.fullName&&e.value===e.previousValue)return t(),void i.refresh();switch(e.name){case"cacheEnabled":case"loadingTimeout":case"remoteOperations":t();break;case"keyExpr":case"dataSource":case"scrolling":t(),i.skipProcessingPagingChange(e.fullName)||i.reset();break;case"paging":n=i.dataSource(),n&&i._setPagingOptions(n)&&n.load(),t();break;case"rtlEnabled":i.reset();break;case"columns":n=i.dataSource(),n&&n.isLoading()&&e.name===e.fullName&&n.load();break;default:i.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var n,i=this,o=i._dataSource,r=i._columnsController;return o&&(void 0===e&&(e=o.filter()),n=i._calculateAdditionalFilter(),n&&(r.isDataSourceApplied()||r.isAllDataTypesDefined())&&(e=a.combineFilters([n,e])),e=r.updateFilter(e,t||o.remoteOperations().filtering)),
|
|
39
|
+
e},_endUpdateCore:function(){var e=this._changes;e.length&&(this._changes=[],this.updateItems(1===e.length?e[0]:{}))},_handleCustomizeStoreLoadOptions:function(e){var t=this._columnsController,n=this._dataSource,i=e.storeLoadOptions;e.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),t.isDataSourceApplied()||t.updateColumnDataTypes(n),this._columnsUpdating=!0,t.updateSortingGrouping(n,!this._isFirstLoading),this._columnsUpdating=!1,i.sort=t.getSortDataSourceParameters(),i.group=t.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=t.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=t.getGroupDataSourceParameters(!n.remoteOperations().grouping),this._isFirstLoading=!1)},_handleColumnsChanged:function(e){var t,n,i,o=this,r=e.changeTypes,s=e.optionNames,l=function e(){o._columnsController.columnsChanged.remove(e),o.updateItems()};if(r.sorting||r.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(r.columns&&((s.filterValues||s.filterValue||s.selectedFilterOperation)&&(t=o._columnsController.columnOption(e.columnIndex,"filterValue"),n=o._columnsController.columnOption(e.columnIndex,"filterValues"),(Array.isArray(n)||void 0===e.columnIndex||u.isDefined(t)||!s.selectedFilterOperation||s.filterValue)&&(o._applyFilter(),i=!0)),o._needApplyFilter||a.checkChanges(s,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||o._columnsController.columnsChanged.add(l),u.isDefined(s.visible))){var c=o._columnsController.columnOption(e.columnIndex);c&&(u.isDefined(c.filterValue)||u.isDefined(c.filterValues))&&(o._applyFilter(),i=!0)}!i&&r.filtering&&o.reload()},_handleDataChanged:function(e){var t=this,n=t._dataSource,i=t._columnsController,o=!1;n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,m(t._columnsController.applyDataSource(n)).done(function(){t._isLoading&&t._handleLoadingChanged(!1),o&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var n=t._calculateAdditionalFilter(),i=t._needApplyFilter;t._needApplyFilter=!1,i&&n&&n.length&&!t._isAllDataTypesDefined?(l.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e)}).fail(function(){t._isDataSourceApplying=!1}),t._isDataSourceApplying&&(o=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=i.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),o=this.option("scrolling.mode"),a="infinite"===o,r="virtual"===o,s=i||r||a,l=!1;return e.requireTotalCount(!a),void 0!==i&&e.paginate()!==s&&(e.paginate(s),l=!0),void 0!==n&&e.pageSize()!==n&&(e.pageSize(n),l=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),l=!0),l},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this,t=this.option("dataSource"),n=this._dataSource;e.callBase(),t=e._dataSource,e._isFirstLoading=!0,t?(e._setPagingOptions(t),e.setDataSource(t)):n&&e.updateItems()},_loadDataSource:function(){var e=this._dataSource,t=new _;return m(this._columnsController.refresh(!0)).always(function(){e?e.load().done(t.resolve).fail(t.reject):t.resolve()}),t.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(e,t){var n=this,i=n.getRowIndexDelta(),o=n._columnsController.getVisibleColumns(null,"loadingAll"===t),a=n._items,r="append"===t&&a.length>0?a[a.length-1].dataIndex+1:0,s={visibleColumns:o,dataIndex:r},l=[];return d(e,function(e,t){u.isDefined(t)&&(s.rowIndex=e-i,t=n._processItem(t,s),l.push(t))}),l},_processItem:function(e,t){return e=this._generateDataItem(e),e=this._processDataItem(e,t),e.dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t){for(var n,i,o=[],a=0;a<t.length;a++)n=t[a],i=null,n.command?i=null:n.calculateCellValue?i=n.calculateCellValue(e):n.dataField&&(i=e[n.dataField]),o.push(i);return o},_applyChangeUpdate:function(e){var t,n=this,i=e.items,o=e.rowIndices.slice(0),a=n.getRowIndexDelta(),r=-1,s=0;o.sort(function(e,t){return e-t});for(var l=0;l<o.length;l++)o[l]<0&&(o.splice(l,1),l--);e.items=[],e.rowIndices=[],e.changeTypes=[];var c=function(e,t,n){var i=e&&t&&f(e.key,t.key);return i&&n&&(i=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),i};d(o,function(o,l){var d,u,h,p,f;if(l+=s+a,r!==l){if(r=l,d=n._items[l],h=n._items[l+1],u=i[l],p=i[l+1],f=c(d,h)||c(u,p),u&&e.items.push(u),d&&u&&c(d,u,f))t="update",n._items[l]=u,d.visible!==u.visible&&e.items.splice(-1,1,{visible:u.visible});else if(u&&!d||p&&c(d,p,f))t="insert",n._items.splice(l,0,u),s++;else if(d&&!u||h&&c(u,h,f))t="remove",n._items.splice(l,1),s--,r=-1;else{if(!u)return;t="update",n._items[l]=u}e.rowIndices.push(l-a),e.changeTypes.push(t)}})},_applyChange:function(e){var t=this;"update"===e.changeType?t._applyChangeUpdate(e):t._items=e.items.slice(0)},_updateItemsCore:function(e){var t,n=this,i=n._dataSource,o=e.changeType||"refresh";e.changeType=o,i?(t=e.items||i.items(),t=n._beforeProcessItems(t),t=n._processItems(t,o),e.items=t,n._applyChange(e),d(n._items,function(e,t){t.rowIndex=e})):n._items=[]},updateItems:function(e){e=e||{};var t=this;return t._updateLockCount?void t._changes.push(e):(t._updateItemsCore(e),void(e.cancel||t._fireChanged(e)))},_fireChanged:function(e){var t=this;c.deferRender(function(){t.changed.fire(e)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this,t=e._dataSource;if(t)return t.pageIndex(0),e.reload().done(e.pageChanged.fire.bind(e.pageChanged))},filter:function e(t){var n=this._dataSource,e=n.filter();return 0===arguments.length?n?n.filter():void 0:(t=arguments.length>1?Array.prototype.slice.call(arguments,0):t,void(a.equalFilterParameters(e,t)||(n&&n.filter(t),this._applyFilter())))},clearFilter:function(e){var t=this,n=t._columnsController,i=function(e){var t,i=n.columnCount();for(t=0;t<i;t++)n.columnOption(t,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else t.filter(null),t.searchByText(""),i("filterValue"),i("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this,t=function t(){e.changed.remove(t),e.dataSourceChanged.fire()};e.changed.add(t)},_getDataSourceAdapter:c.noop,_createDataSourceAdapterCore:function(e,t){var n=this._getDataSourceAdapter(),i=n.create(this.component);return i.init(e,t),i},isLocalStore:function(e){return e=e||this.store(),e instanceof r},isCustomStore:function(e){return e=e||this.store(),e instanceof s},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),n=e.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=h({},i,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),t===!0&&(t=i),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this,n=t._dataSource;!e&&n&&(n.changed.remove(t._dataChangedHandler),n.loadingChanged.remove(t._loadingChangedHandler),n.loadError.remove(t._loadErrorHandler),n.customizeStoreLoadOptions.remove(t._customizeStoreLoadOptionsHandler),n.dispose(t._isSharedDataSource)),e&&(e=t._createDataSourceAdapter(e)),t._dataSource=e,e&&(t._fireDataSourceChanged(),t._isLoading=!e.isLoaded(),t._needApplyFilter=!0,t._isAllDataTypesDefined=t._columnsController.isAllDataTypesDefined(),e.changed.add(t._dataChangedHandler),e.loadingChanged.add(t._loadingChangedHandler),e.loadError.add(t._loadErrorHandler),e.customizeStoreLoadOptions.add(t._customizeStoreLoadOptionsHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,n=new _,i=t._dataSource;if(i)if(e){var o={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t.getCombinedFilter(),group:i.group(),sort:i.sort()}};i._handleDataLoaded(o),m(o.data).done(function(e){e=t._beforeProcessItems(e),n.resolve(t._processItems(e,"loadingAll"),o.extra&&o.extra.summary)}).fail(n.reject)}else if(t.isLoading())n.reject();else{var a=h({},i.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});i.load(a).done(function(e,i){e=t._beforeProcessItems(e),e=t._processItems(e,"loadingAll"),n.resolve(e,i&&i.summary)}).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(e){var t=this.items()[e];if(t)return t.key},getRowIndexByKey:function(e){return a.getIndexByKey(e,this.items())},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,n=this.store(),i=this.getRowIndexByKey(e);if(n)return i>=0&&(t=(new _).resolve(this.items()[i].data)),t||n.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,n=new _,o=[],a=[];return d(e,function(e,n){o.push(t.byKey(n).done(function(t){a[e]=t}))}),m.apply(i,o).always(function(){n.resolve(a)}),n},pageIndex:function(t){return e(this,"pageIndex",t)},pageSize:function(t){return e(this,"pageSize",t)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(){var e=this,t=new _;return m(this._columnsController.refresh()).always(function(){m(e.reload(!0)).done(t.resolve).fail(t.reject)}),t},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},repaintRows:function(e){e=Array.isArray(e)?e:[e],(e.length>1||u.isDefined(e[0]))&&this.updateItems({changeType:"update",rowIndices:e})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}}};return a.proxyMethod(t,"load"),a.proxyMethod(t,"reload"),a.proxyMethod(t,"itemsCount",0),a.proxyMethod(t,"totalItemsCount",0),a.proxyMethod(t,"hasKnownLastPage",!0),a.proxyMethod(t,"isLoaded",!0),a.proxyMethod(t,"totalCount",0),t}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(18),c=i(l),d=n(1),u=i(d),h=n(0),p=i(h),f=n(374),g=i(f),m=n(15),_=i(m),v=n(9),w=i(v),x=u.default.isDefined,y=p.default.extend,b="dxDataGridColumnHeadersView",C=y({},g.default,{_createRow:function(e){var t=this,n=t.callBase(e);return"header"===e.rowType&&s.default.on(n,w.default.addNamespace(c.default.name,b),"td",t.createAction(function(e){if((0,a.default)(e.event.currentTarget).parent().get(0)===n.get(0)){var i=null,o=e.event,r=(0,a.default)(o.currentTarget),s=r.parent().index(),l=-1;[].slice.call(t.getCellElements(s)).some(function(e,t){if(e===r.get(0))return l=t,!0});var c=t._columnsController.getVisibleColumns(s),d=c[l],u=t.getController("editing"),h=t.option("editing.mode"),p=u&&u.isEditing()&&("batch"===h||"cell"===h);!p&&t._isSortableElement((0,a.default)(o.target))&&(!d||x(d.groupIndex)||d.command||(o.shiftKey?i="shift":o.ctrlKey&&(i="ctrl"),setTimeout(function(){t._columnsController.changeSortOrder(d.index,i)})))}})),n},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),n.callBase(e,t)},_columnOptionChanged:function(e){var t=e.changeTypes;return 1===t.length&&t.sorting?void this._updateIndicators("sort"):void this.callBase(e)},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}}),k=y({},g.default,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return s.default.on(i,w.default.addNamespace(c.default.name,"dxDataGridHeaderPanel"),n.createAction(function(){setTimeout(function(){n.getController("columns").changeSortOrder(t.index)})})),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},optionChanged:function(e){var t=this;switch(e.name){case"sorting":t._invalidate(),e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:_.default.format("dxDataGrid-sortingAscendingText"),descendingText:_.default.format("dxDataGrid-sortingDescendingText"),clearText:_.default.format("dxDataGrid-sortingClearText")}}},extenders:{views:{columnHeadersView:C,headerPanel:k}}}},function(e,t,n){var i=n(1).isDefined,o="dx-sort",a="dx-sort-none",r="dx-sort-up",s="dx-sort-down",l="action";e.exports={_applyColumnState:function(e){var t,n,a=this,c=a.option("sorting.mode"),d=e.rootElement,u=e.column,h=a._getIndicatorContainer(d);return"sort"===e.name?(d.find("."+o).remove(),!h.children().length&&h.remove(),(("single"===c||"multiple"===c)&&u.allowSorting||i(u.sortOrder))&&(t="asc"===u.sortOrder?"ascending":"descending",n=a.callBase(e).toggleClass(r,"asc"===u.sortOrder).toggleClass(s,"desc"===u.sortOrder),e.rootElement.addClass(a.addWidgetPrefix(l))),i(u.sortOrder)?a.setAria("sort",t,d):a.setAria("sort","none",d),n):a.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?o:this.callBase(e)},_renderIndicator:function(e){var t,n=e.column,o=e.container,r=e.indicator;return"sort"===e.name&&(t=this.option("rtlEnabled"),i(n.sortOrder)||r&&r.addClass(a),o.children().length&&(!t&&"left"===e.columnAlignment||t&&"right"===e.columnAlignment))?void o.prepend(r):void this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!i(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not("."+a)}}},function(e,t,n){var i=n(2),o=n(6),a=o.getWindow(),r=n(5),s=n(4),l=n(83),c=n(1),d=n(3).each,u=n(0).extend,h=n(39),p=n(103).getDefaultAlignment,f=n(22).compileGetter,g=n(21),m=n(45),_=n(197),v=n(93),w=n(129),x=n(15),y=n(29),b=c.isDefined,C="rowsview",k="content",S="nowrap",I="dx-group-row",D="dx-group-cell",T="dx-data-row",E="dx-freespace-row",A="dx-row-lines",B="dx-column-lines",O="dx-row-alt",R="dx-last-row-border",M="dx-empty",P=200;e.exports={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:x.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:x.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:_.ColumnsView.inherit(function(){var e={render:function(e){var t=e.container.find("tbody");t.length?t.last().append(e.content):e.container.append(e.content)}},t=function(e,t){var n=h.isEmpty(t.text)&&"data"===t.rowType,i=t.text,o=e.get(0);n?m.setEmptyText(e):t.column.encodeHtml?o.textContent=i:o.innerHTML=i};return{_getDefaultTemplate:function(e){switch(e.command){case"empty":return function(e){e.html(" ")};default:return t}},_getDefaultGroupTemplate:function(e){var t=this,n=t.option("summary.texts");return function(t,i){var o=i.data,a=i.column.caption+": "+i.text,r=t.get(0);i.summaryItems&&i.summaryItems.length&&(a+=" "+m.getGroupRowSummaryText(i.summaryItems,n)),o&&(i.groupContinuedMessage&&i.groupContinuesMessage?a+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?a+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(a+=" ("+i.groupContinuedMessage+")")),t.addClass(D),e.encodeHtml?r.textContent=a:r.innerHTML=a}},_update:function(){},_getCellTemplate:function(e){var t,n=this,i=e.column;return t="group"!==e.rowType||!b(i.groupIndex)||i.showWhenGrouped||i.command?i.cellTemplate||{allowRenderToDetachedContainer:!0,render:n._getDefaultTemplate(i)}:i.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:n._getDefaultGroupTemplate(i)}},_createRow:function(e){var t,n,i,o=this.callBase(e);return e&&(t="group"===e.rowType,n="data"===e.rowType,n&&o.addClass(T),n&&e.dataIndex%2===1&&this.option("rowAlternationEnabled")&&o.addClass(O),n&&this.option("showRowLines")&&o.addClass(A),this.option("showColumnLines")&&o.addClass(B),e.visible===!1&&o.hide(),t&&(o.addClass(I),i=e.isExpanded,this.setAria("role","row",o),this.setAria("expanded",b(i)&&i.toString(),o)),this._setAriaRowIndex(e,o)),o},_setAriaRowIndex:function(e,t){var n=this.component,i="standard"===n.option("scrolling.mode")&&"virtual"!==n.option("scrolling.rowRenderingMode"),o=e.rowIndex+1;i?o=n.pageIndex()*n.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,t)},_afterRowPrepared:function(e){var t=e.args[0],n=this._dataController,i=this.option("integrationOptions.watchMethod");if(t.data&&"data"===t.rowType&&!t.inserted&&this.option("twoWayBindingEnabled")&&i){var o=i(function(){return n.generateDataValues(t.data,t.columns)},function(){n.repaintRows([t.rowIndex])},{deep:!0,skipImmediate:!0});r.on(t.rowElement,w,o)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("<div>"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),o=!0,a=0;a<i.length;a++)if(!i[a].width&&!i[a].minWidth){o=!1;break}(t.option("columnAutoWidth")||t._hasHeight||o||t._columnsController._isColumnFixing())&&t._renderScrollableCore(n)}},_handleScroll:function(e){var t=this;t._isScrollByEvent=!!e.event,t._scrollTop=e.scrollOffset.top,t._scrollLeft=e.scrollOffset.left,t.scrollChanged.fire(e.scrollOffset,t.name)},_renderScrollableCore:function(e){var t=this,n=t._createScrollableOptions(),i=t._handleScroll.bind(t);n.onScroll=i,n.onStop=i,t._scrollable=t._createComponent(e,v,n),t._scrollableContainer=t._scrollable&&t._scrollable._$container},_renderLoadPanel:m.renderLoadPanel,_renderContent:function(e,t){return e.replaceWith(i("<div>").addClass(this.addWidgetPrefix(k)).append(t)),this._findContentElement()},_updateContent:function(e,t){var n=this,i=n._getTableElement(),o=n._findContentElement(),a=t&&t.changeType,r=[];switch(a){case"update":d(t.rowIndices,function(o,a){var s=n._getRowElements(e).eq(o),l=t.changeTypes&&t.changeTypes[o],c=t.items&&t.items[o];r.push(function(){var e=n._getRowElements(),t=e.eq(a);switch(l){case"update":c&&(b(c.visible)&&c.visible!==t.is(":visible")?t.toggle(c.visible):t.replaceWith(s));break;case"insert":e.length?t.length?s.insertBefore(t):s.insertAfter(e.last()):s.prependTo(i.children("tbody"));break;case"remove":t.remove()}})}),d(r,function(){this()}),e.remove();break;default:n._setTableElement(e),o.addClass(n.addWidgetPrefix(k)),n._renderContent(o,e)}},_createEmptyRow:function(){var e,t=this,n=t._createRow(),i=this.getColumns();for(n.toggleClass(B,t.option("showColumnLines")),e=0;e<i.length;e++)n.append(t._createCell({column:i[e],rowType:"freeSpace",columnIndex:e,columns:i}));return t.setAria("role","presentation",n),n},_renderFreeSpaceRow:function(t,n){var i=this._createEmptyRow().addClass(E);this._appendRow(t,i,e)},_checkRowKeys:function(e){var t=this,n=t._getRows(e),i=t._dataController.store()&&t._dataController.store().key();i&&n.some(function(e){if("data"===e.rowType&&void 0===e.key)return t._dataController.dataErrorOccurred.fire(g.Error("E1046",i)),!0})},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){var t=e.children("tbody").children().not(".dx-virtual-row").not("."+E);return t.toArray().reduce(function(e,t){return e+t.getBoundingClientRect().height},0)},_updateRowHeight:function(){var e,t=this,n=t._getTableElement(),i=t._dataController.items().length;n&&t._needUpdateRowHeight(i)&&(e=t._getRowsHeight(n),t._rowHeight=e/i)},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=t.$content()),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+E)},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children("."+E)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",u({evaluate:function(e){var n=f(e);return n(t.data)}},e,t))},_getGroupCellOptions:function(e){var t=(e.row.groupIndex||0)+e.columnsCountBeforeGroups;return{columnIndex:t,colspan:e.columns.length-t-1}},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){var n,i,o,a,r,s=t.row,l=t.columns,c=s.rowIndex,d=this._getGroupCellOptions(t);for(n=0;n<=d.columnIndex;n++)n===d.columnIndex&&l[n].allowCollapsing&&"infinite"!==t.scrollingMode?(o=!!s.isExpanded,i=l[n]):(o=null,i={command:"expand",cssClass:l[n].cssClass}),this._renderCell(e,{value:o,row:s,rowIndex:c,column:i,columnIndex:n});r=p(this.option("rtlEnabled")),a=u({},l[d.columnIndex],{command:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:r}),d.colspan>1&&(a.colspan=d.colspan),this._renderCell(e,{value:s.values[s.groupIndex],row:s,rowIndex:c,column:a,columnIndex:d.columnIndex})},_renderRows:function(e,t){var n,i=this,o=t.columns,a=0,r=i.option("scrolling.mode");for(n=0;n<o.length;n++)if("expand"===o[n].command){a=n;break}i.callBase(e,u({scrollingMode:r,columnsCountBeforeGroups:a},t)),i._checkRowKeys(t.change),i._renderFreeSpaceRow(e),i._hasHeight||i.updateFreeSpaceRowHeight(e)},_renderRow:function(e,t){var n=this,i=t.row,o=n.option("rowTemplate");"data"!==i.rowType&&"group"!==i.rowType||b(i.groupIndex)||!o?n.callBase(e,t):n.renderTemplate(e,o,u({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,n=t.callBase(e),i=function e(){var n=t.getScrollable();n&&t.element().closest(a.document).length&&(t.resizeCompleted.remove(e),n._visibilityChanged(!0))};return b(t._getTableElement())?t._renderScrollable():(t._setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add(i)),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t,n=this,i=n.element();i.addClass(n.addWidgetPrefix(C)).toggleClass(n.addWidgetPrefix(S),!n.option("wordWrapEnabled")),i.toggleClass(M,0===n._dataController.items().length),n.setAria("role","presentation",i),t=n._renderTable({change:e}),n._updateContent(t,e),n.callBase(e),n._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t,n,i,o=this,a=e.column,r=e.row,s=r.data,l=r&&r.summaryCells,c=e.value,d=m.getDisplayValue(a,c,s,r.rowType);return t=this.callBase(e),t.value=c,t.displayValue=d,t.row=r,t.key=r.key,t.data=s,t.rowType=r.rowType,t.values=r.values,t.text=a.command?"":m.formatValue(d,a),t.rowIndex=r.rowIndex,t.summaryItems=l&&l[e.columnIndex],t.resized=a.resizedCallbacks,b(a.groupIndex)&&!a.command&&(n=o.option("grouping.texts"),i=o.option("scrolling.mode"),"virtual"!==i&&"infinite"!==i&&(t.groupContinuesMessage=s&&s.isContinuationOnNextPage&&n&&n.groupContinuesMessage,t.groupContinuedMessage=s&&s.isContinuation&&n&&n.groupContinuedMessage)),t},_setRowsOpacityCore:function(e,t,n,o){var a=this._columnsController,r=a.getColumns(),s=r&&r[n],l=s&&s.isBand&&s.index;d(e,function(r,s){if(!i(s).hasClass(I))for(var d=0;d<t.length&&(!(c.isNumeric(l)&&a.isParentBandColumn(t[d].index,l)||t[d].index===n)||(e.eq(r).children().eq(d).css({opacity:o}),c.isNumeric(l)));d++);})},_getDevicePixelRatio:function(){return a.devicePixelRatio},renderNoDataText:m.renderNoDataText,getCellOptions:function(e,t){var n,i,o=this._dataController.items()[e];return o&&(i=c.isString(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t],i&&(n=this._getCellOptions({value:i.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:i}))),n},getRow:function(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return i(t[e])}},getCellIndex:function(e){var t=e.length?e[0].cellIndex:-1;return t},updateFreeSpaceRowHeight:function(e){var t,n,i=this,o=i._dataController.items().length,a=i._findContentElement(),r=i._getFreeSpaceRowElements(e);if(r&&a){var c=!1;o>0?i._hasHeight?(r.hide(),s.deferUpdate(function(){var t=i.getScrollbarWidth(!0),n=i.element().height()-t,o=a.outerHeight(),l=n-o>0,d=i._getRowsHeight(a.children().first()),u=e||i.getTableElements(),h=Math.ceil(parseFloat(u.css("borderTopWidth"))),p=y.webkit&&i._getDevicePixelRatio()>=2?1:0,f=n-d-h-p;l&&s.deferRender(function(){r.css("height",f),c=!0,r.show()}),s.deferRender(function(){i._updateLastRowBorder(c)})})):(t=i._dataController.pageSize()-o,n=i.option("scrolling.mode"),t>0&&i._dataController.pageCount()>1&&"virtual"!==n&&"infinite"!==n&&(l.setHeight(r,t*i._rowHeight),c=!0),!c&&e?l.setHeight(r,0):r.toggle(c),i._updateLastRowBorder(c)):(r.css("height",0),r.show(),i._updateLastRowBorder(!0))}},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._hasHeight=!1,t.loadingChanged.add(function(t,n){e.setLoading(t,n)}),t.dataSourceChanged.add(function(){e._scrollLeft>=0&&e._handleScroll({scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})})},_handleDataChanged:function(e){var t=this;switch(e.changeType){case"refresh":case"prepend":case"append":case"update":t.render(null,e);break;default:t._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(e){var t=this._scrollableContainer&&this._scrollableContainer.get(0),n=0;return t&&(n=e?t.clientHeight?t.offsetHeight-t.clientHeight:0:t.clientWidth?t.offsetWidth-t.clientWidth:0),n>0?n:0},_fireColumnResizedCallbacks:function(){var e,t=this,n=t._lastColumnWidths||[],i=[],o=t.getColumns();for(e=0;e<o.length;e++)i[e]=o[e].visibleWidth,o[e].resizedCallbacks&&!b(o[e].groupIndex)&&n[e]!==i[e]&&o[e].resizedCallbacks.fire(i[e]);t._lastColumnWidths=i},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(R):this.element().removeClass(R)},_updateScrollable:function(){var e=v.getInstance(this.element());e&&(e.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),s.deferRender(function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),s.deferUpdate(function(){e._updateScrollable()})})},scrollTo:function(e){var t=this.element(),n=t&&v.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this,i=this.element();return 0===arguments.length?i?i.outerHeight(!0):0:(n._hasHeight=void 0===t?"auto"!==e:t,void(b(e)&&i&&l.setHeight(i,e)))},setLoading:function(e,t){var n,i=this,a=i._loadPanel,r=i._dataController,s=i.option("loadPanel")||{},l=r.isLoaded()?s.animation:null,c=i.element();o.hasWindow()&&(!a&&void 0!==t&&r.isLocalStore()&&"auto"===s.enabled&&c&&(i._renderLoadPanel(c,c.parent()),a=i._loadPanel),a&&(n={message:t||s.text,animation:l,visible:e},clearTimeout(i._hideLoadingTimeoutID),a.option("visible")&&!e?i._hideLoadingTimeoutID=setTimeout(function(){a.option(n)},P):a.option(n)))},setRowsOpacity:function(e,t){var n=this._getRowElements().not("."+I)||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t,n=this.callBase(e);return n&&(t=n.filter("."+D).index(),t>=0&&n.length>t+1)?n.slice(0,t+1):n},getTopVisibleItemIndex:function(){var e,t,n=this,i=0,o=0,a=0,r=n._scrollTop,s=n._findContentElement().offset().top,l=n._dataController.items(),c=n._getTableElement();if(l.length&&c){for(e=n._getRowElements(c).filter(":visible"),i=0;i<l.length;i++)if(o=a,t=e.eq(i),t.length&&(a=t.offset().top-s,a>r)){2*r<Math.round(a+o)&&i&&i--;break}i&&i===l.length&&i--}return i},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"twoWayBindingEnabled":t._invalidate(!0,!0),e.handled=!0;break;case"scrolling":t._rowHeight=null,t._tableElement=null,e.handled=!0;break;case"rtlEnabled":t._rowHeight=null,t._tableElement=null;break;case"loadPanel":t._tableElement=null,t._invalidate(!0,!0),e.handled=!0;break;case"noDataText":t.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID)},setScrollerSpacing:function(){}}}())}}},function(e,t,n){var i=n(2),o=n(13).getPublicElement,a=n(4).noop,r=n(3).each,s=n(46),l=n(161),c="dx-context-menu",d={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},u=["columnHeadersView","rowsView","footerView","headerPanel"],h=s.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,n,a,s,l,c,h,p,f,g=this,m=i(e.target);return r(u,function(){if(t=g.getView(this),c=t&&t.element(),c&&(c.is(m)||c.find(m).length)&&(p=m.closest("td"),h=p.closest(".dx-row"),a=t.getRowIndex(h),s=p[0]&&p[0].cellIndex,l=h.data("options"),n={event:e,targetElement:o(m),target:d[this],rowIndex:a,row:t._getRows()[a],columnIndex:s,column:l&&l.cells[s].column},n.items=t.getContextMenuItems&&t.getContextMenuItems(n),g.executeAction("onContextMenuPreparing",n),g._contextMenuPrepared(n),f=n.items))return!1}),f},_contextMenuPrepared:a}),p=s.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass(c);this.setAria("role","presentation",t),this._createComponent(t,l,{onPositioning:function(t){var n=t.event,i=t.component,o=e.getController("contextMenu").getContextMenuItems(n);o?(i.option("items",o),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}});e.exports={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:h},views:{contextMenuView:p}}},function(e,t,n){var i=n(2),o=n(5),a=n(18),r=n(3).each,s=n(46),l="dx-error-row",c="dx-error-message",d="dx-closebutton",u="action",h=s.ViewController.inherit({init:function(){var e=this;e._columnHeadersView=e.getView("columnHeadersView"),
|
|
40
|
+
e._rowsView=e.getView("rowsView")},_createErrorRow:function(e,t){var n,s,h=this,p=i("<div>").addClass(c).text(e);return t?(n=i("<tr>").addClass(l),s=i("<div>").addClass(d).addClass(h.addWidgetPrefix(u)),o.on(s,a.name,h.createAction(function(e){var n,o=e.event,a=i(o.currentTarget).closest("."+l).index();o.stopPropagation(),r(t,function(e,t){n=i(t).children("tbody").children("tr").eq(a),h.removeErrorRow(n)})})),i("<td>").attr({colSpan:h.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(s).append(p).appendTo(n),n):p},renderErrorRow:function(e,t,n){var o,a,s,l,d,u,h=this;return n?(n.find("."+c).remove(),a=h._createErrorRow(e),n.prepend(a),a):(d=t>=0||!h._columnHeadersView.isVisible()?h._rowsView:h._columnHeadersView,u=n||d.getTableElements(),r(u,function(n,r){if(a=h._createErrorRow(e,u),s=s||a,t>=0)o=d._getRowElements(i(r)).eq(t),h.removeErrorRow(o.next()),a.insertAfter(o);else{var c=i(r).children("tbody");l=c.children("tr"),h._columnHeadersView.isVisible()?(h.removeErrorRow(l.last()),i(r).append(a)):(h.removeErrorRow(l.first()),c.first().prepend(a))}}),s)},removeErrorRow:function(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(e=t&&t.find("."+l),!e||!e.length){var n=this._rowsView.element();e=n&&n.find("."+l)}}e&&e.hasClass(l)&&e.remove()},optionChanged:function(e){var t=this;switch(e.name){case"errorRowEnabled":e.handled=!0;break;default:t.callBase(e)}}});e.exports={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:h},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add(function(n,i){var o=n&&n.message||n;e.option("errorRowEnabled")&&t.renderErrorRow(o,void 0,i)}),e.changed.add(function(){var t=e.getController("errorHandling"),n=e.getController("editing");n&&!n.hasChanges()&&t&&t.removeErrorRow()})}}}}}},function(e,t,n){var i=n(2),o=n(46),a=n(4),r=n(6),s=n(3).each,l=n(1),c=n(45),d=n(15),u=n(7),h=u.when,p=u.Deferred,f=n(12),g=n(29),m="table",_="borders",v="table-fixed",w="important-margin",x="text-content",y="dx-hidden",b="dx-gridbase-container",C="adaptiveHidden",k="input:not([type='hidden'])",S=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],I=function(e){return l.isString(e)&&"%"===e.slice(-1)},D=function(e,t){var n,i=[];if(e&&t&&e.length&&e.length===t.length)for(n=0;n<e.length;n++)i.push(e[n]>t[n]?e[n]:t[n]);else e&&e.length?i=e:t&&(i=t);return i},T=function(e){var t=e.get(0).clientHeight,n=parseFloat(e.css("paddingTop")),i=parseFloat(e.css("paddingBottom"));return t-n-i},E=function(e,t){var n=e._rowsView.contentWidth(),i=e._getTotalWidth(t,n);return n-i},A=function(e,t,n,i){return E(e,i.map(function(e,i){return i===t?n:e}))},B=function(e,t){e.focus(),c.setSelectionRange(e,t)},O=o.ViewController.inherit({_initPostRenderHandlers:function(){var e=this,t=e._dataController;e._refreshSizesHandler||(e._refreshSizesHandler=function(n){t.changed.remove(e._refreshSizesHandler);var i,o=n&&n.changeType,a=n&&n.isDelayed,r=t.items();n&&"refresh"!==o&&"prepend"!==o&&"append"!==o?"update"===o&&n.changeTypes&&(!(r.length>1||"insert"!==n.changeTypes[0])||0===r.length&&"remove"===n.changeTypes[0]?i=e.resize():e._rowsView.resize()):a||(i=e.resize()),o&&"updateSelection"!==o&&!a&&h(i).done(function(){e._setAriaRowColCount(),e.component._fireContentReadyAction()})},e._dataController.changed.add(function(){e._dataController.changed.add(e._refreshSizesHandler)}))},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children("."+b))},_getBestFitWidths:function(){if(!this.option("legacyRendering"))return this._rowsView.getColumnWidths();var e,t,n,i,o=this;return e=o._rowsView.getColumnWidths(),t=o._columnHeadersView&&o._columnHeadersView.getColumnWidths(),n=o._footerView&&o._footerView.getColumnWidths(),i=D(e,t),i=D(i,n)},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),s(e,function(e,i){var o=i.command?"command:"+i.command:i.index;n.columnOption(o,"visibleWidth",t[e])}),n.endUpdate()},_toggleBestFitModeForView:function(e,t,n){if(e){var i,o=this._rowsView._getTableElement(),a=e._getTableElement();a&&(i=n?a.children("tbody").appendTo(o):o.children("."+t).appendTo(a),i.toggleClass(t,n),i.toggleClass(this.addWidgetPrefix("best-fit"),n))}},_toggleBestFitMode:function(e){var t=this.component.$element(),n=this;if(n.option("legacyRendering"))t.find("."+this.addWidgetPrefix(m)).toggleClass(this.addWidgetPrefix(v),!e),t.find(k).toggleClass(y,e),t.find(".dx-group-cell").toggleClass(y,e),t.find(".dx-header-row ."+this.addWidgetPrefix(x)).css("maxWidth","");else{var i=n._rowsView._getTableElement(),o=n._rowsView.getTableElements().eq(1);i.css("tableLayout",e?"auto":"fixed"),i.children("colgroup").css("display",e?"none":""),o.toggleClass(this.addWidgetPrefix(v),!e),n._toggleBestFitModeForView(n._columnHeadersView,"dx-header",e),n._toggleBestFitModeForView(n._footerView,"dx-footer",e),n._needStretch()&&(i.get(0).style.width=e?"auto":""),g.msie&&11===parseInt(g.version)&&i.find("."+this.addWidgetPrefix(v)).each(function(){this.style.width=e?"10px":""})}},_synchronizeColumns:function(){var e,t,n,i,o=this,r=o._columnsController,d=r.getVisibleColumns(),u=o.option("columnAutoWidth"),h=o.option("legacyRendering"),p=o._needBestFit(),m=!1,_=!1,v=[],w=function(){var e;s(d,function(t,n){"expand"===n.command&&(e=v[t])}),s(d,function(t,n){"expand"===n.command&&e&&(v[t]=e)})};!p&&s(d,function(e,t){if("auto"===t.width||h&&t.fixed)return p=!0,!1}),s(d,function(e,t){if(t.minWidth)return m=!0,!1}),o._setVisibleWidths(d,[]),p&&(t=f.getActiveElement(),i=c.getSelectionRange(t),o._toggleBestFitMode(!0),e=!0),a.deferUpdate(function(){p?(v=o._getBestFitWidths(),s(d,function(e,t){var n=t.command?"command:"+t.command:t.index;r.columnOption(n,"bestFitWidth",v[e],!0)})):m&&(v=o._getBestFitWidths()),s(d,function(e){var t=this.width;"auto"!==t&&(l.isDefined(t)?v[e]=l.isNumeric(t)?parseFloat(t):t:u||(v[e]=void 0))}),e&&(o._toggleBestFitMode(!1),e=!1,t&&t!==f.getActiveElement()&&(n=t.getBoundingClientRect().bottom<0,n||(g.msie?setTimeout(function(){B(t,i)}):B(t,i)))),_=o._correctColumnWidths(v,d),u&&(w(),o._needStretch()&&o._processStretch(v,d)),a.deferRender(function(){(p||_)&&o._setVisibleWidths(d,v)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this.option("legacyRendering")||this._columnsController.getVisibleColumns().some(function(e){return"auto"===e.width&&!e.command})},_getAverageColumnsWidth:function(e){var t=E(this,e),n=e.filter(function(e){return void 0===e}).length;return t/n},_correctColumnWidths:function(e,t){var n,i,o,a=this,r=!1,s=!1,d=!1,u=a.component.$element(),h=a._hasWidth;for(n=0;n<t.length;n++){var p=n,f=t[p],g=e[p]===C,m=e[p],_=f.minWidth;if(_)if(void 0===m)i=a._getAverageColumnsWidth(e),m=i;else if(I(m)){var v=A(a,p,_,e);v<0&&(m=-1)}m<_&&!g&&(e[p]=_,d=!0,n=-1),l.isDefined(f.width)||(s=!0),I(f.width)&&(r=!0)}if(u&&a._maxWidth&&(delete a._maxWidth,u.css("maxWidth","")),!s&&e.length){var w=a._rowsView.contentWidth(),x=a._rowsView.getScrollbarWidth(),y=a._getTotalWidth(e,w);y<w&&(o=c.getLastResizableColumnIndex(t,e),o>=0&&(e[o]="auto",d=!0,h||r||(a._maxWidth=y+x+(a.option("showBorders")?2:0),u.css("maxWidth",a._maxWidth))))}return d},_processStretch:function(e,t){var n,i,o,a,r=this._rowsView.contentWidth(),l=this._getTotalWidth(e,r),c={length:0};if(e.length&&(s(t,function(t){(this.width||e[t]===C)&&(c[t]=!0,c.length++)}),n=r-l,i=Math.floor(n/(e.length-c.length)),o=n-i*(e.length-c.length),n>=0))for(a=0;a<e.length;a++)c[a]||(e[a]+=i,o>0&&(o<1?(e[a]+=o,o=0):(e[a]++,o--)))},_getTotalWidth:function(e,t){var n,i,o=0;for(i=0;i<e.length;i++)n=e[i],n&&n!==C&&(o+=I(n)?parseFloat(n)*t/100:parseFloat(n));return Math.round(o)},updateSize:function(e){var t,n,i=this,o=i.addWidgetPrefix(w);void 0===i._hasHeight&&e&&e.is(":visible")&&(t=e.children("."+i.getWidgetContainerClass()),t.length&&t.detach(),i._hasHeight=!!T(e),n=e.width(),e.addClass(o),i._hasWidth=e.width()===n,e.removeClass(o),t.length&&t.appendTo(e))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var n=t._resizeDeferred,i=t._resizeDeferred=new p;return h(n).always(function(){a.deferRender(function(){t._dataController.isLoaded()&&t._synchronizeColumns(),a.deferUpdate(function(){a.deferRender(function(){a.deferUpdate(function(){t._updateDimensionsCore()})})})}).done(i.resolve).fail(i.reject)}),i.promise()}},_checkSize:function(e){var t=this.component.$element();return!(e&&(this._lastWidth===t.width()&&this._lastHeight===t.height()||!t.is(":visible")))},_updateDimensionsCore:function(){var e,t,n=this,o=n._dataController,r=n._rowsView,l=n._columnHeadersView,c=n._footerView,d=n.component.$element(),u=d.children().get(0),h=d&&(d.get(0).clientHeight||d.height()),p=parseFloat(d.css("maxHeight")),f=p&&h>=p,g=n.option("height")||d.get(0).style.height,m=n.getController("editorFactory"),_=f&&u.scrollHeight===u.offsetHeight;n.updateSize(d),e=n._hasHeight||f,g&&n._hasHeight^"auto"!==g&&(t=i("<div>").height(g).appendTo(d),n._hasHeight=!!t.height(),t.remove()),a.deferRender(function(){return r.height(null,e),f&&!_&&i(u).css("height",p),o.isLoaded()?void a.deferUpdate(function(){n._updateLastSizes(d);var t=e?r.getScrollbarWidth():0,i=r.getScrollbarWidth(!0);a.deferRender(function(){l&&l.setScrollerSpacing(t),c&&c.setScrollerSpacing(t),r.setScrollerSpacing(t,i)}),s(S,function(e,t){var i=n.getView(t);i&&i.resize()}),m&&m.resize()}):void r.setLoading(!0)})},_updateLastSizes:function(e){this._lastWidth=e.width(),this._lastHeight=e.height()},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"legacyRendering":case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){var e=this;e._dataController=e.getController("data"),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._footerView=e.getView("footerView"),e._rowsView=e.getView("rowsView")}}),R=o.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i<e.length;i++)e[i]&&e[i].name!==n&&e[i].scrollTo({left:t.left,top:t.top})},init:function(){var e,t,n=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")];for(t=0;t<n.length;t++)e=n[t],e&&e.scrollChanged.add(this._scrollChangedHandler.bind(this,n))}}),M=o.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){var e=this;e._resizingController=e.getController("resizing"),e._dataController=e.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){var t=this;l.isDefined(t._groupElement)&&"showBorders"===e.name?(t._groupElement.toggleClass(t.addWidgetPrefix(_),!!e.value),e.handled=!0):t.callBase(e)},_renderViews:function(e){var t=this;s(S,function(n,i){var o=t.getView(i);o&&o.render(e)})},_getTableRoleName:function(){return"grid"},render:function(e){var t=this,n=!t._groupElement,o=t._groupElement||i("<div>").addClass(t.getWidgetContainerClass());o.addClass(b),o.toggleClass(t.addWidgetPrefix(_),!!t.option("showBorders")),t.setAria("role","presentation",e),t.component.setAria({role:this._getTableRoleName(),label:d.format(t._getWidgetAriaLabel())},o),t._rootElement=e||t._rootElement,n&&(t._groupElement=o,r.hasWindow()&&t.getController("resizing").updateSize(e),o.appendTo(e)),t._renderViews(o)},update:function(){var e=this,t=e._rootElement,n=e._groupElement,i=e.getController("resizing");t&&n&&(i.resize(),e._dataController.isLoaded()&&e.component._fireContentReadyAction())}});e.exports={defaultOptions:function(){return{showBorders:!1,renderAsync:!1,legacyRendering:!1}},controllers:{resizing:O,synchronizeScrolling:R},views:{gridView:M}}},function(e,t,n){var i=n(2),o=n(311),a=n(197),r=n(4).noop,s=n(1).isDefined,l=n(13);n(160);var c="header-panel",d="toolbar-button",u=a.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return i("<div>").addClass(this.addWidgetPrefix(d))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(d)+t},_getToolbarOptions:function(){var e,t={toolbarOptions:{items:this._getToolbarItems(),onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}};return this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!s(t.toolbarOptions.visible)&&(e=t.toolbarOptions.items,t.toolbarOptions.visible=!(!e||!e.length)),t.toolbarOptions},_renderCore:function(){this._toolbar?this._toolbar.option(this._toolbarOptions):(this.element().addClass(this.addWidgetPrefix(c)),this._toolbar=this._createComponent(i("<div>").appendTo(this.element()),o,this._toolbarOptions))},_columnOptionChanged:r,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["designMode","disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=n.option("items")||[],o=i.indexOf(i.filter(function(t){return t.name===e})[0]);if(o>=0){var a="items["+o+"]";n.option(a+".options")?n.option(a+".options.disabled",t):n.option(a+".disabled",t)}}},updateToolbarDimensions:function(){this._toolbar&&l.triggerResizeEvent(this.getHeaderPanel())},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){"onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:r});e.exports={defaultOptions:function(){return{}},views:{headerPanel:u},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}}},function(e,t,n){var i=n(4),o=n(1).isDefined,a=n(0).extend,r=n(381),s=n(7).Deferred,l=i.equalByValue,c=function(e){var t=e.getController("columns"),n=e.getController("selection"),o=e.getController("export"),r=e.getController("data"),s=e.getView("pagerView");t&&t.columnsChanged.add(function(){var n=t.getUserState(),o=i.getKeyHash(n),r=i.getKeyHash(e._state.columns);l(r,o)||(a(e._state,{columns:n}),e.isEnabled()&&e.save())}),n&&n.selectionChanged.add(function(t){a(e._state,{selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter}),e.isEnabled()&&e.save()}),r&&(e._initialPageSize=e.option("paging.pageSize"),r.changed.add(function(){var t=r.getUserState();a(e._state,t,{allowedPageSizes:s?s.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue")}),e.isEnabled()&&e.save()})),o&&o.selectionOnlyChanged.add(function(){a(e._state,{exportSelectionOnly:o.selectionOnly()}),e.isEnabled()&&e.save()})};e.exports={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:r.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add(function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var n=e.component.getView("columnHeadersView");n&&n.render(),e.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),c(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState(a({},e)),t},applyState:function(e){var t=this,n=e.allowedPageSizes,i=e.searchText,a=e.selectedRowKeys,r=e.selectionFilter,s=t.getController("export"),l=t.getController("columns"),c=t.getController("data"),d=t.getController("filterSync"),u=t.option("scrolling.mode");t.component.beginUpdate(),l&&l.setUserState(e.columns),s&&s.selectionOnly(e.exportSelectionOnly),t.option("selectedRowKeys",a||[]),t.option("selectionFilter",r),n&&"auto"===t.option("pager.allowedPageSizes")&&(t.option("pager").allowedPageSizes=n),t.component.endUpdate(),t.option("searchPanel.text",i||""),t.option("filterValue",e.filterValue||(d?d.getFilterValueFromColumns(e.columns):null)),t.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),t.option("paging.pageSize","virtual"!==u&&"infinite"!==u&&o(e.pageSize)?e.pageSize:t._initialPageSize),t.option("paging.pageIndex",e.pageIndex||0),c&&c.reset()}},columns:{getVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return t.isEnabled()&&!t.isLoaded()?[]:e}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=e.callBase,n=e.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(e._restoreStateTimeoutID);var i=new s;return e._restoreStateTimeoutID=setTimeout(function(){n.load().always(function(){e._restoreStateTimeoutID=null,t.call(e),e.stateLoaded.fire(),i.resolve()})}),i.promise()}e.isStateLoading()||t.call(e)},isLoading:function(){var e=this,t=e.getController("stateStoring");return this.callBase()||t.isLoading()},isStateLoading:function(){return o(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}}}}}},function(e,t,n){var i=n(5),o=n(6).getWindow(),a=n(46),r=n(21),s=n(29),l=n(154).sessionStorage,c=n(0).extend,d=n(3).each,u=n(1),h=n(7).fromPromise,p=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,f=function e(t){t&&d(t,function(n,i){var o;u.isPlainObject(i)||Array.isArray(i)?e(i):"string"==typeof i&&(o=p.exec(i),o&&(t[n]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6]))))})};t.StateStoringController=a.ViewController.inherit(function(){var e=function(e){var t="sessionStorage"===e.type?l():o.localStorage;if(!t)throw"file:"===o.location.protocol&&s.msie?new Error("E1038"):new Error("E1007");return t},t=function(e){return u.isDefined(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var n=this.option("stateStoring");if("custom"===n.type)return n.customLoad&&n.customLoad();try{return JSON.parse(e(n).getItem(t(n)))}catch(e){r.log(e.message)}},_saveState:function(n){var i=this.option("stateStoring");if("custom"===i.type)return void(i.customSave&&i.customSave(n));try{e(i).setItem(t(i),JSON.stringify(n))}catch(e){}},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},i.on(o,"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e,t=this;return t._isLoading=!0,e=h(t._loadState()),e.done(function(e){t._isLoaded=!0,t._isLoading=!1,t.state(e)}),e},state:function(e){var t=this;return arguments.length?(t._state=c({},e),void f(t._state)):c(!0,{},t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(function(){e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))},optionChanged:function(e){var t=this;switch(e.name){case"stateStoring":t.isEnabled()&&!t.isLoading()&&t.load(),e.handled=!0;break;default:t.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),i.off(o,"unload",this._windowUnloadHandler)}}}())},function(e,t,n){var i=n(2),o=n(5),a=n(27),r=n(45),s=n(1),l=n(3).each,c=n(0).extend,d=n(40),u=n(18),h=n(15),p=n(9),f=n(90),g=n(263),m=n(7).Deferred,_="dx-editor-cell",v="dx-row",w="dx-selection",x="dx-select-checkbox",y="dx-select-checkboxes-hidden",b="dx-command-select",C="dx-selection-disabled",k="dx-data-row",S="selection.showCheckBoxesMode",I="selection.mode",D=function(e,t){var n=e.getController("selection"),o=e.getView("rowsView"),a=i(t.target).closest("."+k),r=o.getRowIndex(a);r<0||("onLongTap"===e.option(S)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(S)&&n.startSelectionWithCheckboxes(),"always"!==e.option(S)&&n.changeItemSelection(r,{control:!0})))};t.SelectionController=a.Controller.inherit(function(){var e=function(e,t){var n=0,i=e._dataController.store(),o=i&&i.key(),a=Array.isArray(o);if(!t.length)return!1;if(a&&Array.isArray(t[0])&&"and"===t[1]){for(var r=0;r<t.length;r++)if(Array.isArray(t[r])){if(t[r][0]!==o[n]||"="!==t[r][1])return!0;n++}return!1}return o!==t[0]},t=function(e,t){var n=t.component.getView("rowsView");n.renderSelectCheckBoxContainer(i(e),t)},n=function(e,t){var n=t.column,o=i(e),a=t.component.getView("columnHeadersView");o.addClass(_),a._renderSelectAllCheckBox(o,n),a._attachSelectAllCheckBoxClickEvent(o)};return{init:function(){var e=this,t=e.getController("data"),n=e.option("selection")||{};e._dataController=t,e._selectionMode=e.option(I),e._isSelectionWithCheckboxes=!1,e._selection=e._createSelection({selectedKeys:e.option("selectedRowKeys"),mode:e._selectionMode,deferred:n.deferred,maxFilterLengthInRequest:n.maxFilterLengthInRequest,selectionFilter:e.option("selectionFilter"),key:function(){return t&&t.key()},keyOf:function(e){return t&&t.keyOf(e)},dataFields:function(){return t.dataSource()&&t.dataSource().select()},load:function(e){return t.dataSource()&&t.dataSource().load(e)||(new m).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return e&&"data"===e.rowType&&!e.inserted},getItemData:function(e){return e&&(e.oldData||e.data||e)},filter:function(){return t.getCombinedFilter()},totalCount:function(){return t.totalCount()},onSelectionChanged:e._updateSelectedItems.bind(this)}),e._updateSelectColumn(),e.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_updateSelectColumn:function(){var e=this.getController("columns"),i=this.isSelectColumnVisible();e.addCommandColumn({command:"select",visible:i,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:b,width:"auto",cellTemplate:t,headerCellTemplate:n}),e.columnOption("command:select","visible",i)},_createSelection:function(e){return new g(e)},_fireSelectionChanged:function(e){e&&this.executeAction("onSelectionChanged",e);var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t)},_updateCheckboxesState:function(t){var n=t.isDeferredMode,i=t.selectionFilter,o=t.selectedItemKeys,a=t.removedItemKeys;"onClick"===this.option(S)&&((n?i&&e(this,i):o.length>1)?this.startSelectionWithCheckboxes():(n?i&&!i.length:0===o.length&&a.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t,n=this,i=n.option("selection.deferred"),o=n._selection.selectionFilter(),a=n._dataController,r=a.items();if(r){var s=n.isSelectionWithCheckboxes(),l=n.getChangedItemIndexes(r);n._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:o,isDeferredMode:i}),(l.length||s!==n.isSelectionWithCheckboxes())&&a.updateItems({changeType:"updateSelection",itemIndexes:l}),i?(n.option("selectionFilter",o),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(n._selectedItemsInternalChange=!0,n.option("selectedRowKeys",e.selectedItemKeys.slice(0)),n._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),n._fireSelectionChanged(t)}},getChangedItemIndexes:function(e){for(var t=this,n=[],i=this.option("selection.deferred"),o=0,a=e.length;o<a;o++){var r=e[o],s=t.isRowSelected(i?r.data:r.key);t._selection.isDataItem(r)&&r.isSelected!==s&&n.push(o)}return n},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"selection":var n=t._selectionMode;t.init();var i=t._selectionMode,o=t.option("selectedRowKeys");n!==i&&("single"===i?o.length>1&&(o=[o[0]]):"multiple"!==i&&(o=[])),t.selectRows(o).always(function(){t._fireSelectionChanged()}),t.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":Array.isArray(e.value)&&!t._selectedItemsInternalChange&&t.component.getDataSource()&&t.selectRows(e.value),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(I)&&("always"===this.option(S)||"onClick"===this.option(S)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(S)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new m).resolve().promise()},selectedItemKeys:function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),l(e,function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)}),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t){return t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0),this._selection.changeItemSelection(this._dataController.getRowIndexDelta()+e,t)},focusedItemIndex:function(e){var t=this;return s.isDefined(e)?void(t._selection._focusedItemIndex=e):t._selection._focusedItemIndex},isSelectionWithCheckboxes:function(){return"multiple"===this.option(I)&&("always"===this.option(S)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){var e=this;return"multiple"===e.option(I)&&!e.isSelectionWithCheckboxes()&&(e._isSelectionWithCheckboxes=!0,e._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){var e=this;return!!e._isSelectionWithCheckboxes&&(e._isSelectionWithCheckboxes=!1,e._updateSelectColumn(),!0)}}}()),e.exports={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:t.SelectionController},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done(function(){e.getController("selection").refresh()})},_processDataItem:function(e,t){var n=this,i=n.getController("selection"),o=i.isSelectColumnVisible(),a=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,r=this.callBase.apply(this,arguments);if(r.isSelected=i.isRowSelected(a?r.data:r.key),o&&r.values)for(var s=0;s<t.visibleColumns.length;s++)if("select"===t.visibleColumns[s].command){r.values[s]=r.isSelected;break}return r},refresh:function(){var e=this,t=new m;return this.callBase.apply(this,arguments).done(function(){e.getController("selection").refresh().done(t.resolve).fail(t.reject)}).fail(t.reject),t.promise()},_handleDataChanged:function(e){this.callBase.apply(this,arguments),e&&"refresh"!==e.changeType||this.getController("selection").focusedItemIndex(-1)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||D(this,t)}}},views:{columnHeadersView:{init:function(){var e=this;e.callBase(),e.getController("selection").selectionChanged.add(e._updateSelectAllValue.bind(e))},_updateSelectAllValue:function(){var e=this,t=e.element(),n=t&&t.find("."+x);t&&n.length&&"multiple"===e.option("selection.mode")&&n.dxCheckBox("instance").option("value",e.getController("selection").isSelectAll())},_handleDataChanged:function(e){this.callBase(e),e&&"refresh"!==e.changeType||this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,t){var n,o=this,a=o.getController("selection");return n=i("<div>").appendTo(e).addClass(x),o.setAria("label",h.format("dxDataGrid-ariaSelectAll"),e),o.getController("editorFactory").createEditor(n,c({},t,{parentType:"headerRow",dataType:"boolean",value:a.isSelectAll(),editorOptions:{visible:o.option("selection.allowSelectAll")||a.isSelectAll()!==!1},tabIndex:-1,setValue:function(e,t){var n=o.option("selection.allowSelectAll");t.component.option("visible",n||t.component.option("value")!==!1),t.event&&a.isSelectAll()!==e&&(t.value&&!n?t.component.option("value",!1):t.value?a.selectAll():a.deselectAll(),t.event.preventDefault())}})),n},_attachSelectAllCheckBoxClickEvent:function(e){o.on(e,u.name,this.createAction(function(e){var t=e.event;i(t.target).closest("."+x).length||o.trigger(i(t.currentTarget).children("."+x),u.name),t.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.inserted?r.setEmptyText(e):(e.addClass(_),this._attachCheckBoxClickEvent(e),this.setAria("label",h.format("dxDataGrid-ariaSelectRow"),e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var n=i("<div>").addClass(x).appendTo(e);return this.getController("editorFactory").createEditor(n,c({},t.column,{parentType:"dataRow",dataType:"boolean",value:t.value,tabIndex:-1,setValue:function(t,n){n&&n.event&&"keydown"===n.event.type&&o.trigger(e,u.name,n)},row:t.row})),n},_attachCheckBoxClickEvent:function(e){o.on(e,u.name,this.createAction(function(e){var t=this.getController("selection"),n=e.event,o=this.getRowIndex(i(n.currentTarget).closest("."+v));o>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(o,{shift:n.shiftKey}),i(n.target).closest("."+x).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[o]}))}))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&(l(n,function(n,o){l(e.itemIndexes||[],function(n,a){var r,s;e.items[a]&&(r=t._getRowElements(i(o)).eq(a),s=e.items[a].isSelected,r.toggleClass(w,void 0!==s&&s).find("."+x).dxCheckBox("option","value",s),
|
|
41
41
|
t.setAria("selected",s,r))})}),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),n=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(S)&&d.touch||o.on(n,p.addNamespace(f.name,"dxDataGridRowsView"),"."+k,e.createAction(function(t){D(e.component,t.event),t.event.stopPropagation()})),o.on(n,"mousedown selectstart",e.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()}))),n},_createRow:function(e){var t,n=this.callBase(e);return e&&(t=!!e.isSelected,t&&n.addClass(w),this.setAria("selected",t,n)),n},_rowClick:function(e){var t=this,n=e.event,o=i(n.target).closest("."+C).length;t.isClickableElement(i(n.target))||(o||"multiple"===t.option(I)&&"always"===t.option(S)||t.getController("selection").changeItemSelection(e.rowIndex,{control:n.ctrlKey||n.metaKey,shift:n.shiftKey})&&(n.preventDefault(),e.handled=!0),t.callBase(e))},isClickableElement:function(e){var t=e.closest("."+b).length;return!!t},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),n=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();l(e,function(e,t){i(t).toggleClass(y,n)})}}}}}},function(e,t,n){var i=n(2),o=n(4),a=n(46),r=n(197),s=n(4).noop,l=n(1).isDefined,c=n(0).extend,d=n(3).each,u=n(15),h=n(20),p=n(38),f=n(162),g=n(14),m=n(60),_="column-chooser",v="column-chooser-button",w="notouch-action",x="column-chooser-list",y="column-chooser-plain",b="column-chooser-mode-drag",C="column-chooser-mode-select",k="column-chooser",S="dx-column-chooser-item",I=300,D=function(e,t){var n,i=[],o="select"===e.option("columnChooser.mode");return t.length&&d(t,function(e,t){n={text:t.caption,cssClass:t.cssClass,allowHiding:t.allowHiding,expanded:!0,id:t.index,disabled:t.allowHiding===!1,parentId:l(t.ownerBand)?t.ownerBand:null},o&&(n.selected=t.visible),i.push(n)}),i},T=a.ViewController.inherit({renderShowColumnChooserButton:function(e){var t,n=this,o=n.addWidgetPrefix(v),a=n.option("columnChooser.enabled"),r=e.find("."+o);a?r.length?r.show():(t=i("<div>").addClass(o).appendTo(e),n._createComponent(t,p,{icon:k,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):r.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}),E=r.ColumnsView.inherit({_resizeCore:s,_isWinDevice:function(){return!!g.real().win},_updateList:function(e){var t,n=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),o=this._columnsController.getChooserColumns(i);i&&this._columnChooserList&&!e||(this._popupContainer._wrapper().toggleClass(this.addWidgetPrefix(b),!i).toggleClass(this.addWidgetPrefix(C),i),t=D(this,o),this._renderTreeView(n,t))},_initializePopupContainer:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix(_)),n=e.option("columnChooser"),o=h.current(),a=h.isGeneric(o),r=h.isAndroid5(o),s=h.isMaterial(o),d={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,toolbarItems:[{text:n.title,toolbar:"top",location:a||r||s?"before":"center"}],position:e.getController("columnChooser").getPosition(),width:n.width,height:n.height,rtlEnabled:e.option("rtlEnabled"),onHidden:function(){e._isWinDevice()&&i("body").removeClass(e.addWidgetPrefix(w))},container:n.container};a||s?c(d,{showCloseButton:!0}):d.toolbarItems[d.toolbarItems.length]={shortcut:"cancel"},l(this._popupContainer)?this._popupContainer.option(d):(e._popupContainer=e._createComponent(t,m,d),e._popupContainer.on("optionChanged",function(t){"visible"===t.name&&e.renderCompleted.fire()}))},_renderCore:function(e){this._popupContainer&&this._updateList(e)},_renderTreeView:function(e,t){var n,a,r=this,s=this.option("columnChooser"),l="select"===s.mode,d={items:t,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:s.allowSearch,searchTimeout:s.searchTimeout};l&&(a=e.find(".dx-scrollable").data("dxScrollable"),n=a&&a.scrollTop(),!this._columnsController.isBandColumnsUsed()&&e.addClass(this.addWidgetPrefix(y))),d.onContentReady=function(e){o.deferUpdate(function(){if(n){var t=i(e.element).find(".dx-scrollable").data("dxScrollable");t&&t.scrollTo({y:n})}r.renderCompleted.fire()})},this._isWinDevice()&&(d.useNativeScrolling=!1),c(d,l?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(d.searchEnabled||(d.searchValue=""),this._columnChooserList.option(d)):(this._columnChooserList=this._createComponent(e,f,d),e.addClass(this.addWidgetPrefix(x)))},_prepareDragModeConfig:function(){var e=this.option("columnChooser");return{noDataText:e.emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(e,t,n){i(n).text(e.text).parent().addClass(e.cssClass).addClass(S)}}},_prepareSelectModeConfig:function(){var e=this,t=function(t){var n=e._columnsController.getVisibleColumns().filter(function(e){return!e.command}),i=1===n.length&&!t.itemData.selected;i?t.component.selectItem(t.itemElement):setTimeout(function(){e._columnsController.columnOption(t.itemData.id,"visible",t.itemData.selected)},I)};return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:t}},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames,i="select"===this.option("columnChooser.mode");this.callBase(e),i&&(n.showInColumnChooser||n.visible||t.columns&&n.all)&&this.render(null,!0)},optionChanged:function(e){switch(e.name){case"columnChooser":this._initializePopupContainer(),this.render(null,!0);break;default:this.callBase(e)}},getColumnElements:function(){var e,t,n=[],o="select"===this.option("columnChooser.mode"),a=this._columnsController.getChooserColumns(o),r=this._popupContainer&&this._popupContainer.$content(),s=r&&r.find(".dx-treeview-node");return s&&a.forEach(function(i){e=s.filter("[data-item-id = '"+i.index+"']"),t=e.length?e.children("."+S).get(0):null,n.push(t)}),i(n)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(e,t){var n=e&&e.allowHiding&&("columnChooser"!==t||!e.visible&&this._columnsController.isParentColumnVisible(e.index));return this.isColumnChooserVisible()&&n},getBoundingRect:function(){var e,t=this,n=t._popupContainer&&t._popupContainer._container();return n&&n.is(":visible")?(e=n.offset(),{left:e.left,top:e.top,right:e.left+n.outerWidth(),bottom:e.top+n.outerHeight()}):null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&i("body").addClass(this.addWidgetPrefix(w))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var e=this._popupContainer;return e&&e.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}});e.exports={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:u.format("dxDataGrid-columnChooserTitle"),emptyPanelText:u.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:T},views:{columnChooserView:E},extenders:{views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendColumnChooserItem(e)},_appendColumnChooserItem:function(e){var t=this,n=t.option("columnChooser.enabled");if(n){var o=function(){t.component.getView("columnChooserView").showColumnChooser()},a=function(e){i(e.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(v)))},r=t.option("columnChooser.title"),s={widget:"dxButton",options:{icon:k,onClick:o,hint:r,text:r,onInitialized:a},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};e.push(s)}return e},optionChanged:function(e){switch(e.name){case"columnChooser":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this,t=e.option("columnChooser.enabled");return e.callBase()||t}}},controllers:{columns:{allowMoveColumn:function(e,t,n,i){var o=this.option("columnChooser.mode"),a="select"===o&&"columnChooser"===i;return!a&&this.callBase(e,t,n,i)}}}}}},function(e,t,n){var i=n(2),o=n(10),a=n(27),r=n(41).normalizeSortingInfo,s=n(7).when;t.createGroupFilter=function(e,t){var n,i=r(t.group),o=[];for(n=0;n<e.length;n++)o.push([i[n].selector,"=",e[n]]);return t.filter&&o.push(t.filter),a.combineFilters(o)},t.createOffsetFilter=function(e,t){var n,i,o,s,l,c=r(t.group),d=[];for(n=0;n<e.length;n++){for(o=[],i=0;i<=n;i++)s=c[i].selector,n!==i||null!==e[i]&&e[i]!==!1&&e[i]!==!0?(l=[s,n===i?c[i].desc?">":"<":"=",e[i]],"<"===l[1]?o.push([l,"or",[s,"=",null]]):o.push(l)):e[i]===!1?o.push([s,"=",!!c[i].desc||null]):(e[i]?!c[i].desc:c[i].desc)?o.push([s,"<>",e[i]]):(o.push([s,"<>",null]),o.push([s,"=",null]));d.push(a.combineFilters(o))}return d=a.combineFilters(d,"or"),a.combineFilters([d,t.filter])},t.GroupingHelper=o.inherit(function(){var e=function(e,t){var n=e.hash;return n&&n[JSON.stringify(t)]},t=function(e,t){var n,i=0,o=e.length-1;if(!e.length)return 0;do{var a=o+i>>1;e[a].offset>t?o=a:i=a}while(o-i>1);for(n=i;n<=o&&!(e[n].offset>t);n++);return n},n=function(e,t){var n,i;for(t=t||[],i=0;i<e.length;i++)if(n=e[i],n.data&&n.data.offset!==n.offset){n.offset=n.data.offset;for(var o=0;o<t.length;o++)t[o].offset=n.offset}e.sort(function(e,t){return e.offset-t.offset})},o=function e(t,n,i){var o;for(o=0;o<t.length;o++)n+1>=i?t[o].children=[]:e(t[o].children,n+1,i)},l=function e(t,n,i){var o,a=0;if(n)if(i)for(o=0;o<n.length;o++)t.isGroupItemCountable(n[o])&&a++,a+=e(t,n[o].items,i-1);else a=n.length;return a};return{ctor:function(e){this._dataSource=e,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(e){this._totalCountCorrection=e||0},isGroupItemCountable:function(e){return!this._isVirtualPaging()||!e.isContinuation},_isVirtualPaging:function(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e},itemsCount:function e(){var t=this._dataSource,n=t._dataSource,i=a.normalizeSortingInfo(n.group()||[]).length,e=l(this,n.items(),i);return e},foreachGroups:function(e,t,o,a,r){function l(e,t,c,d){function u(e,t,n,i){var o=t&&e(t,n);return o&&i.push(o),o}var h,p,f=[];for(h=0;h<e.length;h++){if(d.push(e[h].data),!c&&u(t,e[h].data,d,f)===!1)return!1;if((!e[h].data||e[h].data.isExpanded||o)&&(p=l(e[h].children,t,c,d),p&&f.push(p),p===!1))return!1;if(c&&u(t,e[h].data,d,f)===!1)return!1;e[h].data&&e[h].data.offset===e[h].offset||(a=!0),d.pop()}var g=r&&d.slice(0);return a&&s.apply(i,f).always(function(){n(e,g)})}var c=this;return l(c._groupsInfo,e,t,[])},findGroupInfo:function(t){var n,i,o=this,a=o._groupsInfo;for(n=0;a&&n<t.length;n++)i=e(a,t[n]),a=i&&i.children;return i&&i.data},addGroupInfo:function(i){var o,a,r,s=this,l=i.path,c=s._groupsInfo;for(r=0;r<l.length;r++)a=e(c,l[r]),a||(a={key:l[r],offset:i.offset,data:{offset:i.offset,isExpanded:!0,path:l.slice(0,r+1)},children:[]},o=t(c,i.offset),c.splice(o,0,a),c.hash=c.hash||{},c.hash[JSON.stringify(a.key)]=a),r===l.length-1&&(a.data=i,a.offset!==i.offset&&n(c)),c=a.children},allowCollapseAll:function(){return!0},refresh:function(e){var t,n=this,i=e.storeLoadOptions,a=r(i.group||[]),s="_group"in n?r(n._group||[]):a,l=Math.min(s.length,a.length);for(n._group=i.group,t=0;t<l;t++)if(s[t].selector!==a[t].selector){l=t;break}l?o(n._groupsInfo,0,l):n.reset()},handleDataLoading:function(){},handleDataLoaded:function(e,t){t(e)},handleDataLoadedCore:function(e,t){t(e)}}}())},function(e,t,n){var i=n(2),o=n(45),a=n(4).grep,r=n(3).each,s=n(1).isDefined,l="dx-master-detail-cell",c="dx-master-detail-row",d="dx-cell-focus-disabled",u="dx-row-lines";e.exports={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var e=this.callBase();return this.option("masterDetail.enabled")&&e.push({cellTemplate:o.getExpandCellTemplate()}),e}},data:function(){var e=function(e){e._expandedItems=[],e._isExpandAll=e.option("masterDetail.autoExpandAll")};return{init:function(){var t=this;e(t),t.callBase()},expandAll:function(e){var t=this;e<0?(t._isExpandAll=!0,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},collapseAll:function(e){var t=this;e<0?(t._isExpandAll=!1,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},isRowExpanded:function(e){var t=this,n=o.getIndexByKey(e,t._expandedItems);return Array.isArray(e)?t.callBase.apply(t,arguments):!!(t._isExpandAll^(n>=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n,i=this;if(Array.isArray(e))return i.callBase.apply(i,arguments);if(t=o.getIndexByKey(e,i._expandedItems),t>=0){var a=i._expandedItems[t].visible;i._expandedItems[t].visible=!a}else i._expandedItems.push({key:e,visible:!0}),n=i.getController("editing"),n&&n.correctEditRowIndexAfterExpand(e);i.updateItems({changeType:"update",rowIndices:i._getRowIndicesForExpand(e)})},_processDataItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,r(t.visibleColumns,function(e,n){if("expand"===n.command&&!s(n.groupIndex))return t.detailColumnIndex=e,!1})),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i},_processItems:function(e,t){var n,i=this,s=[];return e=i.callBase.apply(i,arguments),"loadingAll"===t?e:("refresh"===t&&(i._expandedItems=a(i._expandedItems,function(e){return e.visible})),r(e,function(e,t){s.push(t),n=o.getIndexByKey(t.key,i._expandedItems),"data"===t.rowType&&(t.isExpanded||n>=0)&&!t.inserted&&s.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})}),s)},optionChanged:function(t){var n,i,o,a,r=this;if("masterDetail"===t.name){switch(t.name="dataSource",t.fullName){case"masterDetail":n=t.value||{},i=t.previousValue||{},o=n.enabled!==i.enabled,a=n.autoExpandAll!==i.autoExpandAll;break;case"masterDetail.enabled":o=!0;break;case"masterDetail.autoExpandAll":a=!0}(o||a)&&e(r)}r.callBase(t)}}}()},views:{rowsView:function(){return{_getCellTemplate:function(e){var t,n=this,i=e.column,o=n.getController("editing"),a=o&&o.isEditRow(e.rowIndex);return t="detail"!==i.command||a?n.callBase.apply(n,arguments):n.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:n._getDefaultTemplate(i)}},_cellPrepared:function(e,t){var n=this,o=n.component;n.callBase.apply(n,arguments),"detail"===t.rowType&&"detail"===t.column.command&&e.find("."+n.getWidgetContainerClass()).each(function(){var e=i(this).parent().data("dxDataGrid");e&&e.on("contentReady",function(){if(n._isFixedColumns){var e=i(o.getRowElement(t.rowIndex));e&&2===e.length&&e.eq(0).height()!==e.eq(1).height()&&o.updateDimensions()}else{var a=o.getScrollable();a&&a.update()}})})},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase(e);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass(u),t.addClass(c),s(e.visible)&&t.toggle(e.visible)),t},_getGroupCellOptions:function(e){var t=e.row,n=this._columnsController.getGroupColumns(),i=n.length+e.columnsCountBeforeGroups,o=i+Number(this.option("masterDetail.enabled"));return t&&this._isDetailRow(t)?{columnIndex:i,emptyCellsCount:o,colspan:e.columns.length-o}:this.callBase(e)},_renderCells:function(e,t){var n,i,o,a=t.row;if(a.rowType&&this._isDetailRow(a)){for(i=this._getGroupCellOptions(t),o=0;o<i.emptyCellsCount;o++)this._renderCell(e,{value:null,row:a,rowIndex:a.rowIndex,column:t.columns[o]});n=this._renderCell(e,{value:null,row:a,rowIndex:a.rowIndex,column:{command:"detail"},columnIndex:i.columnIndex}),n.addClass(d).addClass(l).attr("colSpan",i.colspan)}else this.callBase.apply(this,arguments)}}}()}}}},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(46),s=n(18),l=n(159),c=n(25),d=n(77),u=n(9),h=u.addNamespace,p=n(29),f=n(0).extend,g=n(387),m="dx-editor-inline-block",_="dx-cell-focus-disabled",v="focus-overlay",w="content",x="dx-focused",y="dx-row",b="dxDataGridEditorFactory",C=h([c.down,"focusin",s.name].join(" "),b),k="dx-pointer-events-target",S="dx-pointer-events-none",I="td[tabindex]:focus, tr[tabindex]:focus, input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus",D="dx-hidden",T=9,E=r.ViewController.inherit({_getFocusedElement:function(e){return e.find(I)},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,n=this._$focusedElement,i=this.component&&this.component.$element();return i&&(n=this._getFocusedElement(i),n.length&&(n.hasClass(_)||n.hasClass(y)||(e=n.closest(this._getFocusCellSelector()+", ."+_),t=e.get(0)!==n.get(0)&&e.hasClass(m),n=e),n.length&&!n.hasClass(_)))?void this.focus(n,t):void this.loseFocus()},_updateFocus:function(e){var t=this,n=e&&e.event&&i(e.event.target).hasClass(t.addWidgetPrefix(v));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout(function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1})},_updateFocusOverlaySize:function(e,t){var n=d.calculate(e,f({collision:"fit"},t));n.h.oversize>0&&e.outerWidth(e.outerWidth()-n.h.oversize),n.v.oversize>0&&e.outerHeight(e.outerHeight()-n.v.oversize)},callbackNames:function(){return["focused"]},focus:function(e,t){var n=this;return void 0===e?n._$focusedElement:void(e&&(n._$focusedElement&&n._$focusedElement.removeClass(x),n._$focusedElement=e,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout(function(){delete n._focusTimeoutID;var o,a=n._$focusOverlay=n._$focusOverlay||i("<div>").addClass(n.addWidgetPrefix(v)+" "+k);if(t)n._$focusOverlay&&n._$focusOverlay.addClass(D);else if(e.length){var r=p.msie?"left bottom":p.mozilla?"right bottom":"left top",s=e.closest("."+n.addWidgetPrefix(w)),l=e[0].getBoundingClientRect();a.removeClass(D).appendTo(s).outerWidth(l.right-l.left+1).outerHeight(l.bottom-l.top+1),o={precise:!0,my:r,at:r,of:e,boundary:s.length&&s},n._updateFocusOverlaySize(a,o),d.setup(a,o),a.css("visibility","visible")}e.addClass(x),n.focused.fire(e)})))},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(x),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(D)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),a.on(o.getDocument(),C,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.$element(),n=p.msie&&parseInt(p.version)<11;t&&(a.on(t,h("keydown",b),function(t){t.which===T&&e._updateFocusHandler(t)}),n&&a.on(t,[c.down,c.move,c.up,s.name,l.name].join(" "),"."+k,e._focusOverlayEventProxy.bind(e)))},_focusOverlayEventProxy:function(e){var t,n=i(e.target),o=i(e.currentTarget),r=n.hasClass(k)||n.hasClass(S);r&&!o.hasClass(D)&&(o.addClass(D),t=n.get(0).ownerDocument.elementFromPoint(e.clientX,e.clientY),u.fireEvent({originalEvent:e,target:t}),e.stopPropagation(),o.removeClass(D),e.type===s.name&&"INPUT"===t.tagName&&a.trigger(i(t),"focus"))},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),a.off(o.getDocument(),C,this._updateFocusHandler)}}).include(g);e.exports={defaultOptions:function(){return{}},controllers:{editorFactory:E},extenders:{controllers:{columnsResizer:{_startResizing:function(e){this.callBase(e),this.isResizing()&&this.getController("editorFactory").loseFocus()}}}}}},function(e,t,n){var i=n(2),o=n(4).noop,a=n(5),r=n(1),s=n(71).isWrapped,l=n(22).compileGetter,c=n(29),d=n(0).extend,u=n(14),h=n(13).getPublicElement,p=n(52).normalizeDataSourceOptions;n(98),n(118),n(127),n(128),n(193);var f="checkbox-size",g="dx-cell-focus-disabled",m="dx-editor-inline-block",_=function(){var e=function(e,t){return d(e,{readOnly:t.readOnly,placeholder:t.placeholder,inputAttr:{id:t.id},tabIndex:t.tabIndex},t.editorOptions)},t=function(){return c.msie||c.mozilla||u.real().ios},n=function(n){var o={},s=t(),l=n.sharedData||o;return e({placeholder:n.placeholder,width:n.width,value:n.value,onValueChanged:function(e){var t="filterRow"===n.parentType||"searchPanel"===n.parentType,i=e.event&&"keyup"===e.event.type,a=function(e,t){n&&n.setValue(e.value,t)};clearTimeout(o.valueChangeTimeout),i&&t?l.valueChangeTimeout=o.valueChangeTimeout=setTimeout(function(){a(e,o.valueChangeTimeout!==l.valueChangeTimeout)},r.isDefined(n.updateValueTimeout)?n.updateValueTimeout:0):a(e)},onKeyDown:function(e){s&&13===e.event.keyCode&&a.trigger(i(e.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===n.parentType?" keyup":"")},n)},_=function(n){n.editorName="dxDateBox",n.editorOptions=e({value:n.value,onValueChanged:function(e){n.setValue(e.value)},onKeyDown:function(e){t()&&13===e.event.keyCode&&(e.component.blur(),e.component.focus())},displayFormat:n.format,type:n.dataType,formatWidthCalculator:null,dateSerializationFormat:null,width:"filterBuilder"===n.parentType?void 0:"auto"},n)},v=function(e){var t=n(e),i="searchPanel"===e.parentType,o=function(e){return r.isDefined(e)?e.toString():""};t.value=o(e.value),t.valueChangeEvent+=i?" keyup search":"",t.mode=t.mode||(i?"search":"text"),e.editorName="dxTextBox",e.editorOptions=t},w=function(e){var t=n(e);t.value=r.isDefined(e.value)?e.value:null,e.editorName="dxNumberBox",e.editorOptions=t},x=function(e){"filterRow"===e.parentType||"filterBuilder"===e.parentType?y(d(e,{lookup:{displayExpr:function(t){return t===!0?e.trueText||"true":t===!1?e.falseText||"false":void 0},dataSource:[!0,!1]}})):b(e)},y=function(t){var n,i,o,a=t.lookup,c="filterRow"===t.parentType;if(a){n=l(a.displayExpr),i=a.dataSource,r.isFunction(i)&&!s(i)&&(i=i(t.row||{})),(r.isObject(i)||Array.isArray(i))&&(i=p(i),c&&(o=i.postProcess,i.postProcess=function(e){return 0===this.pageIndex()&&(e=e.slice(0),e.unshift(null)),o?o.call(this,e):e}));var d=Boolean(a.allowClearing&&!c);t.editorName="dxSelectBox",t.editorOptions=e({searchEnabled:!0,value:t.value,valueExpr:t.lookup.valueExpr,searchExpr:t.lookup.searchExpr||t.lookup.displayExpr,allowClearing:d,showClearButton:d,displayExpr:function(e){return null===e?t.showAllText:n(e)},dataSource:i,onValueChanged:function(e){var n=[e.value];!c&&n.push(e.component.option("text")),t.setValue.apply(this,n)}},t)}},b=function(t){t.editorName="dxCheckBox",t.editorOptions=e({value:r.isDefined(t.value)?t.value:void 0,hoverStateEnabled:!t.readOnly,focusStateEnabled:!t.readOnly,activeStateEnabled:!1,onValueChanged:function(e){t.setValue&&t.setValue(e.value,e)}},t)},C=function(e,t){var n=i(t.editorElement);t.editorName&&t.editorOptions&&n[t.editorName]&&("dxCheckBox"===t.editorName&&(t.isOnForm||(n.addClass(e.addWidgetPrefix(f)),n.parent().addClass(m)),(t.command||t.editorOptions.readOnly)&&n.parent().addClass(g)),e._createComponent(n,t.editorName,t.editorOptions),"dxTextBox"===t.editorName&&n.dxTextBox("instance").registerKeyHandler("enter",o))};return{createEditor:function(e,t){if(t.cancel=!1,t.editorElement=h(e),r.isDefined(t.tabIndex)||(t.tabIndex=this.option("tabIndex")),t.lookup)y(t);else switch(t.dataType){case"date":case"datetime":_(t);break;case"boolean":x(t);break;case"number":w(t);break;default:v(t)}this.executeAction("onEditorPreparing",t),t.cancel||(C(this,t),this.executeAction("onEditorPrepared",t))}}}();e.exports=_},function(e,t,n){var i=n(2),o=n(12),a=n(6).getWindow(),r=n(5),s=n(50),l=n(1),c=n(3).each,d=n(0).extend,u=n(46),h=n(18),p=n(45),f=p.getIndexByKey,g=n(9),m=g.addNamespace,_=n(259),v=n(15),w=n(38),x=n(60),y=n(21),b=n(14),C=n(205),k=n(90),S=n(7),I=S.when,D=S.Deferred,T=n(4),E=n(93),A="edit-form",B="edit-form-item",O="focus-overlay",R="readonly",M="edit-popup",P="form-buttons-container",V="addrow-button",F="dx-link",H="dx-editor-cell",$="dx-selection",L="dx-edit-row",z="dx-edit-button",N="dx-command-edit",W=N+"-with-icons",q="dx-scrollable-container",G="dx-button",K="__DX_INSERT_INDEX__",j="dx-row",U="dx-row-removed",Y="dx-row-inserted",X="dx-row-modified",Z="dx-cell-modified",J="dx-highlight-outline",Q="dxDataGridEditing",ee="dx-data-row",te="dx-cell-focus-disabled",ne="input:not([type='hidden'])",ie="[tabindex], "+ne,oe="batch",ae="row",re="cell",se="form",le="popup",ce="insert",de="update",ue="remove",he="dx-pointer-events-none",pe="dx-pointer-events-target",fe=[oe,ae,re,se,le],ge=[ae,se,le],me=[oe,re],_e=[se,le],ve=[ae,se],we={saveEditData:"dx-link-save",cancelEditData:"dx-link-cancel",editRow:"dx-link-edit",undeleteRow:"dx-link-undelete",deleteRow:"dx-link-delete",addRowByRowIndex:"dx-link-add"},xe={saveEditData:"dx-icon-save",cancelEditData:"dx-icon-revert",editRow:"dx-icon-edit",undeleteRow:"dx-icon-revert",deleteRow:"dx-icon-trash",addRowByRowIndex:"dx-icon-add"},ye=function(e){var t=e.option("editing.mode");return fe.indexOf(t)!==-1?t:ae},be=function(e){var t=ye(e);return ge.indexOf(t)!==-1},Ce=u.ViewController.inherit(function(){var e=function(e){return function(t,n){var o=i("<div>").appendTo(t);e.getController("editorFactory").createEditor(o,d({},n.column,{value:n.value,setValue:n.setValue,row:n.row,parentType:"dataRow",width:null,readOnly:!n.setValue,isOnForm:n.isOnForm,id:n.id}))}},t=function(e,t){var n,o,a=i(e),r=t.component.getController("editing"),s=be(r);"data"===t.rowType?(a.css("textAlign","center"),t.rtlEnabled=r.option("rtlEnabled"),o=r.option("editing")||{},n=o.texts||{},t.row&&t.row.rowIndex===r._getVisibleEditRowIndex()&&s?(r._createLink(a,n.saveRowChanges,"saveEditData",t,o.useIcons),r._createLink(a,n.cancelRowChanges,"cancelEditData",t,o.useIcons)):r._createEditingLinks(a,t,o,s)):p.setEmptyText(a)};return{init:function(){var e=this;e._editRowIndex=-1,e._editData=[],e._editColumnIndex=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._editForm=null,e._dataChangedHandler||(e._dataChangedHandler=e._handleDataChanged.bind(e),e._dataController.changed.add(e._dataChangedHandler)),e._saveEditorHandler||(e.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),e.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),e._saveEditorHandler=e.createAction(function(t){var n,o,r,s,l,c,d=t.event;be(e)||e._editCellInProgress||(c=i(d.target),n=c.closest(".dx-dropdowneditor-overlay").length,o=c.closest(a.document).length,s=c.closest("."+e.addWidgetPrefix(V)).length,r=c.hasClass(e.addWidgetPrefix(O)),l=ye(e)===re,n||r||s&&l&&e.isEditing()||!o||e._closeEditItem.bind(e)(c))}),r.on(o.getDocument(),h.name,e._saveEditorHandler)),e._updateEditColumn(),e._updateEditButtons()},_needToCloseEditableCell:function(e){var t=e.closest("."+ee).length,n=e.closest("."+j+"> td"),i=n[0]&&n[0].cellIndex,o=this.getView("rowsView").getRowIndex(n.parent()),a=this._columnsController.getVisibleColumns(),r=a[i]&&a[i].allowEditing;return this.isEditing()&&(!t||t&&!r&&!this.isEditCell(o,i))},_closeEditItem:function(e){this._needToCloseEditableCell(e)&&this.closeEditCell()},_handleDataChanged:function(e){var t=this,n=t._editForm;"standard"===t.option("scrolling.mode")&&t.resetRowAndPageIndices(),"prepend"===e.changeType&&c(t._editData,function(t,n){n.rowIndex+=e.items.length,n.type===ce&&(n.key.rowIndex+=e.items.length,n.key.dataRowIndex+=e.items.filter(function(e){return"data"===e.rowType}).length)}),"refresh"===e.changeType&&ye(t)===le&&n&&n.option("visible")&&n.repaint()},correctEditRowIndexAfterExpand:function(e){this._editRowIndex>this._dataController.getRowIndexByKey(e)&&this._editRowIndex++},isRowEditMode:function(){return be(this)},isFormEditMode:function(){var e=ye(this);return _e.indexOf(e)!==-1},getEditMode:function(){return ye(this)},getFirstEditableColumnIndex:function(){var e,t=this.getController("columns"),n=this._firstFormItem;if(ye(this)===se&&n){var i=this._rowsView.getCellElements(this._editRowIndex);e=this._rowsView._getEditFormEditorVisibleIndex(i,n.column)}else{var o=t.getVisibleColumns();c(o,function(t,n){if(n.allowEditing)return e=t,!1})}return e},getFirstEditableCellInRow:function(e){return this.getView("rowsView")._getCellElement(e?e:0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(e){return this.getFirstEditableCellInRow(e)},getIndexByKey:function(e,t){return f(e,t)},hasChanges:function(e){for(var t=this,n=!1,i=0;i<t._editData.length;i++)if(t._editData[i].type&&(!l.isDefined(e)||t._dataController.getRowIndexByKey(t._editData[i].key)===e)){n=!0;break}return n},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),r.off(o.getDocument(),h.name,this._saveEditorHandler)},optionChanged:function(e){if("editing"===e.name){if(this._editPopup&&this._editPopup.option("visible")&&0===e.fullName.indexOf("editing.form")){var t=this._getVisibleEditRowIndex();t>=0&&this._showEditPopup(t)}else this.init();e.handled=!0}else this.callBase(e)},publicMethods:function(){return["insertRow","addRow","removeRow","deleteRow","undeleteRow","editRow","editCell","closeEditCell","saveEditData","cancelEditData","hasEditData"]},refresh:function(){ye(this)!==re&&(ye(this)!==oe?this.init():(this._editRowIndex=-1,this._editColumnIndex=-1))},isEditing:function(){return this._editRowIndex>-1},isEditRow:function(e){var t=ye(this);return this._getVisibleEditRowIndex()===e&&ge.indexOf(t)!==-1},getEditRowKey:function(){var e=this._dataController.items(),t=e[this._getVisibleEditRowIndex()];return t&&t.key},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){var e=ye(this);return e===se||e===le?this._getVisibleEditRowIndex():-1},isEditCell:function(e,t){var n=!(!Array.isArray(this._editData)||!this._editData.length);return n&&this._getVisibleEditRowIndex()===e&&this._editColumnIndex===t},getPopupContent:function(){var e=ye(this),t=this._editPopup&&this._editPopup.option("visible");if(e===le&&t)return this._$popupContent},getEditForm:function(){return this._editForm},_needInsertItem:function(e,t){var n=this,i=n._dataController.dataSource(),o=n.option("scrolling.mode"),a=i.pageIndex(),r=i.beginPageIndex?i.beginPageIndex():a,s=i.endPageIndex?i.endPageIndex():a;if("standard"!==o)switch(t){case"append":return e.key.pageIndex===s;case"prepend":return e.key.pageIndex===r;case"refresh":e.key.rowIndex=0,e.key.dataRowIndex=0,e.key.pageIndex=0;break;default:return e.key.pageIndex>=r&&e.key.pageIndex<=s}return e.key.pageIndex===a},_generateNewItem:function(e){var t={key:e};return e&&e[K]&&(t[K]=e[K]),t},processItems:function(e,t){var n,i,o,a=this,r=a._editData;for(a.update(t),n=0;n<r.length;n++)i=r[n].key,o=a._generateNewItem(i),r[n].type===ce&&a._needInsertItem(r[n],t,e,o)&&e.splice(i.dataRowIndex,0,o);return e},processDataItem:function(e,t,n){
|
|
42
42
|
var i,o,a,r,s=this,l=t.visibleColumns,c=e.data[K]?e.data.key:e.key;if(r=f(c,s._editData),r>=0)switch(o=ye(s),a=s._editData[r],i=a.data,e.isEditing=!1,a.type){case ce:o===le&&(e.visible=!1),e.inserted=!0,e.key=c,e.data=i;break;case de:e.modified=!0,e.oldData=e.data,e.data=p.createObjectWithChanges(e.data,i),e.modifiedValues=n(i,l);break;case ue:o===oe&&(e.data=p.createObjectWithChanges(e.data,i)),e.removed=!0}},insertRow:function(){return y.log("W0002","dxDataGrid","insertRow","15.2","Use the 'addRow' method instead"),this.addRow()},_initNewRow:function(e,t){this.executeAction("onInitNewRow",e);var n=this._dataController.items(),i=n[t.rowIndex];i&&(!i.isEditing&&"detail"===i.rowType||"detailAdaptive"===i.rowType)&&t.rowIndex++,t.dataRowIndex=n.filter(function(e,n){return n<t.rowIndex&&("data"===e.rowType||"group"===e.rowType)}).length},_getInsertIndex:function(){var e=0;return this._editData.forEach(function(t){t.type===ce&&t.key[K]>e&&(e=t.key[K])}),e+1},addRow:function(e){var t,n=this,i=n._dataController,o=i.store(),a=o&&o.key(),l=n.getView("rowsView"),c={data:{}},d=i.getRowIndexByKey(e),u={pageIndex:i.pageIndex(),rowIndex:d>=0?d+1:l?l.getTopVisibleItemIndex():0,parentKey:e},p=n._getVisibleEditRowIndex(),f=ye(n);f===re&&n.hasChanges()&&n.saveEditData(),n.refresh();var g=n._getInsertIndex();f!==oe&&g>1||(a||(c.data.__KEY__=String(new s)),n._initNewRow(c,u),f=ye(n),f!==oe&&(n._editRowIndex=u.rowIndex+n._dataController.getRowIndexOffset()),u[K]=g,n._addEditData({key:u,data:c.data,type:ce}),i.updateItems({changeType:"update",rowIndices:[p,u.rowIndex]}),f===le?n._showEditPopup(u.rowIndex):(t=n.getFirstEditableCellInRow(u.rowIndex),n._editCellInProgress=!0,n._delayedInputFocus(t,function(){n._editCellInProgress=!1;var e=n.getFirstEditableCellInRow(u.rowIndex);e&&r.trigger(e,h.name)})),n._afterInsertRow({key:u,data:c.data}))},_isEditingStart:function(e){return this.executeAction("onEditingStart",e),e.cancel},_beforeEditCell:function(e,t,n){var i=this;if(ye(i)===re&&!n.inserted&&i.hasChanges()){var o=new D;return i.saveEditData().always(function(){o.resolve(i.hasChanges())}),o}},_beforeUpdateItems:function(){},_getVisibleEditRowIndex:function(){return this._editRowIndex>=0?this._editRowIndex-this._dataController.getRowIndexOffset():-1},editRow:function(e){var t,n=this,i=n._dataController,o=i.items(),a=o[e],r={data:a&&a.data,cancel:!1},s=n._getVisibleEditRowIndex();if(a){if(e===s)return!0;if(a.inserted||(r.key=a.key),!n._isEditingStart(r)){n.init(),n._pageIndex=i.pageIndex(),n._editRowIndex=(o[0].inserted?e-1:e)+n._dataController.getRowIndexOffset(),n._addEditData({data:{},key:a.key,oldData:a.data});var l=[s,e],c=ye(n);n._beforeUpdateItems(l,e,s),c===le?n._showEditPopup(e):i.updateItems({changeType:"update",rowIndices:l}),ve.indexOf(c)!==-1&&(t=n.getFocusedCellInRow(n._getVisibleEditRowIndex()),n._delayedInputFocus(t,function(){t&&n.component.focus(t)}))}}},_showEditPopup:function(e){var t=this,n="desktop"!==b.current().deviceType,o=d({showTitle:!1,fullScreen:n,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:t._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:t._getCancelButtonConfig()}],contentTemplate:t._getPopupEditFormTemplate(e)},t.option("editing.popup"));if(!t._editPopup){var a=i("<div>").appendTo(t.component.$element()).addClass(t.addWidgetPrefix(M));t._editPopup=t._createComponent(a,x,{}),t._editPopup.on("hiding",t._getEditPopupHiddenHandler()),t._editPopup.on("shown",function(e){r.trigger(e.component.$content().find(ie).not("."+q).first(),"focus")})}t._editPopup.option(o),t._editPopup.show()},_getEditPopupHiddenHandler:function(){var e=this;return function(t){e.isEditing()&&e.cancelEditData()}},_getPopupEditFormTemplate:function(e){var t=this,n=t.component.getVisibleRows()[e],o={row:n,rowType:n.rowType,key:n.key};return function(e){var n=t.getEditFormTemplate(),a=t._createComponent(i("<div>").appendTo(e),E);t._$popupContent=a.$content(),n(t._$popupContent,o,!0)}},_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeEditDataItem:function(e){e>=0&&this._editData.splice(e,1)},editCell:function(e,t){var n=this,i=n._columnsController,o=n._dataController,a=o.items(),r=a[e],s={data:r&&r.data,cancel:!1},c=n._getVisibleEditRowIndex(),d=i.getVisibleColumns(),u=d[n._editColumnIndex];l.isString(t)&&(t=i.columnOption(t,"index"),t=i.getVisibleIndex(t));var h=s.column=d[t];if(h&&r&&("data"===r.rowType||"detailAdaptive"===r.rowType)&&!r.removed&&!be(n)){if(n.isEditCell(e,t))return!0;var p=e+o.getRowIndexOffset();return I(n._beforeEditCell(e,t,r)).done(function(e){e||n._prepareEditCell(s,r,t,p)&&T.deferRender(function(){n._repaintEditCell(h,u,c)})})}return!1},_prepareEditCell:function(e,t,n,i){var o=this;return t.inserted||(e.key=t.key),!o._isEditingStart(e)&&(o._editRowIndex=i,o._editColumnIndex=n,o._pageIndex=o._dataController.pageIndex(),o._addEditData({data:{},key:t.key,oldData:t.data}),!0)},_repaintEditCell:function(e,t,n){var i=this,o=i._rowsView;e&&e.showEditorAlways&&(!t||t.showEditorAlways)||(i._editCellInProgress=!0,i.getController("editorFactory").loseFocus(),i._dataController.updateItems({changeType:"update",rowIndices:[n,i._getVisibleEditRowIndex()]}));var a=o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex);a&&!a.find(":focus").length?i._focusEditingCell(function(){i._editCellInProgress=!1},a,!0):i._editCellInProgress=!1},_delayedInputFocus:function(e,t,n){function i(){t&&t(),e&&r.trigger(e.find(ie).first(),"focus"),o._beforeFocusCallback=null}var o=this;b.real().ios||b.real().android?i():(o._beforeFocusCallback&&o._beforeFocusCallback(),clearTimeout(o._inputFocusTimeoutID),n&&(o._beforeFocusCallback=t),o._inputFocusTimeoutID=setTimeout(i))},_focusEditingCell:function(e,t,n){var i=this,o=i.getView("rowsView");t=t||o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex),i._delayedInputFocus(t,e,n)},removeRow:function(e){return y.log("W0002","dxDataGrid","removeRow","15.2","Use the 'deleteRow' method instead"),this.deleteRow(e)},deleteRow:function(e){var t,n,i=this,o=i.option("editing"),a=o&&o.texts,r=a&&a.confirmDeleteTitle,s=o&&o.mode===oe,c=a&&a.confirmDeleteMessage,d=i._dataController,u=i._getVisibleEditRowIndex(),h=d.items()[e],p=h&&h.key;h&&(t=function(t){i.refresh();var n=f(t,i._editData);n>=0?i._editData[n].type===ce?i._removeEditDataItem(n):i._editData[n].type=ue:i._addEditData({key:t,oldData:h.data,type:ue}),s?d.updateItems({changeType:"update",rowIndices:[u,e]}):i.saveEditData()},s||!c?t(p):(n=l.isDefined(r)&&r.length>0,_.confirm(c,r,n).done(function(e){e&&t(p)})))},undeleteRow:function(e){var t=this,n=t._dataController,i=n.items()[e],o=t._getVisibleEditRowIndex(),a=i&&i.key;if(i){var r,s=f(a,t._editData);s>=0&&(r=t._editData[s],l.isEmptyObject(r.data)?t._removeEditDataItem(s):r.type=de,n.updateItems({changeType:"update",rowIndices:[o,e]}))}},_saveEditDataCore:function(e,t){function n(e,t,n){function o(e){return function(t){var n=t instanceof Error?t:new Error(t&&String(t)||"Unknown error");e.reject(n)}}var a=new D;return i.executeAction(e,t),I(S.fromPromise(t.cancel)).done(function(e){e?setTimeout(function(){a.resolve("cancel")}):n(t).done(a.resolve).fail(o(a))}).fail(o(a)),a}var i=this,o=i._dataController.store(),a=!0;return c(i._editData,function(r,s){var c,d,u,h=s.data,p=s.oldData,f=s.type;if(!i._beforeSaveEditData(s,r)){switch(f){case ue:u={data:p,key:s.key,cancel:!1},c=n("onRowRemoving",u,function(){return o.remove(s.key)});break;case ce:u={data:h,cancel:!1},c=n("onRowInserting",u,function(){return o.insert(u.data).done(function(e,t){l.isDefined(t)&&(s.key=t)})});break;case de:u={newData:h,oldData:p,key:s.key,cancel:!1},c=n("onRowUpdating",u,function(){return o.update(s.key,u.newData)})}c&&(d=new D,c.always(function(e){a="cancel"!==e,t.push({key:s.key,result:e})}).always(d.resolve),e.push(d.promise()))}}),a},_processSaveEditDataResult:function(e){var t,n,i,o,a,r,s,l=this,c=l._dataController,d=!1,u=ye(l);for(t=0;t<e.length;t++)if(n=e[t].result,i="cancel"===n,a=f(e[t].key,l._editData),o=l._editData[a],r=n&&n instanceof Error){if(o&&(o.error=n),s=l.getPopupContent(),c.dataErrorOccurred.fire(n,s),u!==oe){o&&o.type===ue&&l._removeEditDataItem(a);break}}else i&&o&&(u===oe||o.type!==ue)||(l._removeEditDataItem(a),d=!i);return d},_fireSaveEditDataEvents:function(e){var t=this;c(e,function(e,n){var i=n.data,o=n.key,a=n.type,r={key:o,data:i};switch(n.error&&(r.error=n.error),a){case ue:t.executeAction("onRowRemoved",d({},r,{data:n.oldData}));break;case ce:t.executeAction("onRowInserted",r);break;case de:t.executeAction("onRowUpdated",r)}})},saveEditData:function(){var e,t=this,n=[],o=[],a=t._dataController,r=a.dataSource(),s=ye(t),l=new D,c=function(e){s!==re&&(e._editColumnIndex=-1,e._editRowIndex=-1)};return t._beforeSaveEditData()||t._saving?(t._afterSaveEditData(),l.resolve().promise()):(e=t._editData.slice(0),t._saveEditDataCore(o,n)||s!==re||t._focusEditingCell(),o.length?(t._saving=!0,r&&r.beginLoading(),I.apply(i,o).done(function(){t._processSaveEditDataResult(n)?(c(t),s===le&&t._editPopup&&t._editPopup.hide(),r&&r.endLoading(),I(a.refresh()).always(function(){t._fireSaveEditDataEvents(e),t._afterSaveEditData(),l.resolve()})):(r&&r.endLoading(),l.resolve())}).fail(function(){r&&r.endLoading(),l.resolve()}),l.always(function(){t._focusEditingCell(),t._saving=!1}).promise()):(be(t)?t.hasChanges()||t.cancelEditData():me.indexOf(s)!==-1?(c(t),a.updateItems()):t._focusEditingCell(),t._afterSaveEditData(),l.resolve().promise()))},isSaving:function(){return this._saving},_updateEditColumn:function(){var e=this,n=e.option("editing.useIcons"),i=e._isEditColumnVisible(),o=N+(n?" "+W:"");e._columnsController.addCommandColumn({command:"edit",visible:i,cssClass:o,width:"auto",cellTemplate:t}),e._columnsController.columnOption("command:edit",{visible:i,cssClass:o})},_isEditColumnVisible:function(){var e=this,t=e.option("editing");if(t){var n=ye(e),i=!1;switch(n){case ae:i=t.allowUpdating||t.allowAdding;break;case se:case le:i=t.allowUpdating}return t.allowDeleting||i}},_updateEditButtons:function(){var e=this,t=e.getView("headerPanel"),n=e.hasChanges();t&&(t.setToolbarItemDisabled("saveButton",!n),t.setToolbarItemDisabled("revertButton",!n))},_applyModified:function(e){e&&e.addClass(Z)},_beforeCloseEditCellInBatchMode:function(){},cancelEditData:function(){var e=this,t=ye(e),n=this._getVisibleEditRowIndex(),i=e._dataController;e._beforeCancelEditData(),e.init(),ge.indexOf(t)!==-1&&n>=0?i.updateItems({changeType:"update",rowIndices:[n,n+1]}):i.updateItems(),t===le&&e._hideEditPopup()},_hideEditPopup:function(){this._editPopup&&this._editPopup.option("visible",!1)},hasEditData:function(){return this.hasChanges()},closeEditCell:function(){var e=this,t=ye(e),n=e._getVisibleEditRowIndex(),i=e._dataController;be(e)||setTimeout(function(){if(t===re&&e.hasChanges())e.saveEditData().done(function(){e.hasChanges()||e.closeEditCell()});else if(n>=0){var o=[n];e._editRowIndex=-1,e._editColumnIndex=-1,e._beforeCloseEditCellInBatchMode(o),i.updateItems({changeType:"update",rowIndices:o})}})},update:function(e){var t=this,n=t._dataController;n&&t._pageIndex!==n.pageIndex()&&("refresh"===e&&t.refresh(),t._pageIndex=n.pageIndex()),t._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(e,t){return t?[]:[e.rowIndex]},updateFieldValue:function(e,t,n,o){var a,r,s=this,l={},c=e.data,u=e.key,h=i(e.cellElement),p=ye(s);if(void 0===u&&s._dataController.dataErrorOccurred.fire(y.Error("E1043")),e.column.setCellValue){if(void 0!==u&&(p===oe&&s._applyModified(h,e),e.value=t,e.column.setCellValue(l,t,d(!0,{},c),n),n&&e.column.displayValueMap&&(e.column.displayValueMap[t]=n)),a={data:l,key:u,oldData:c,type:de},s._addEditData(a,e.row),s._updateEditButtons(),e.column.showEditorAlways&&!o){if(p===re&&e.row&&!e.row.inserted)return s.saveEditData();p===oe&&(r=s._columnsController.getVisibleColumns(),o=r.some(function(e){return e.calculateCellValue!==e.defaultCalculateCellValue}))}e.row&&(o||e.column.setCellValue!==e.column.defaultSetCellValue)&&s._updateEditRow(e.row,o)}},_updateEditRowCore:function(e,t){var n=this,i=n._editForm,o=ye(n);o===le?i&&i.repaint():n._dataController.updateItems({changeType:"update",rowIndices:n._getRowIndicesForCascadeUpdating(e,t)})},_updateEditRow:function(e,t){var n=this;t||!be(n)?(n._updateEditRowCore(e,!t),t||n._focusEditingCell()):setTimeout(function(){var t=i(o.getActiveElement()),a=n._rowsView.getCellIndex(t,e.rowIndex),r=t.get(0),s=p.getSelectionRange(r);if(n._updateEditRowCore(e),a>=0){var l=n._rowsView._getCellElement(e.rowIndex,a);n._delayedInputFocus(l,function(){setTimeout(function(){r=o.getActiveElement(),s.selectionStart>=0&&p.setSelectionRange(r,s)})})}})},_addEditData:function(e,t){var n=this,i=f(e.key,n._editData);return i<0&&(i=n._editData.length,n._editData.push(e)),n._editData[i]&&(e.data&&(n._editData[i].data=p.createObjectWithChanges(n._editData[i].data,e.data)),!n._editData[i].type&&e.type&&(n._editData[i].type=e.type),t&&(t.oldData=n._editData[i].oldData,t.data=p.createObjectWithChanges(t.data,e.data))),i},_getFormEditItemTemplate:function(t,n){return n.editCellTemplate||e(this)},renderFormEditTemplate:function(e,t,n,o,r){var s=this,l=i(o),c=t.column,u=e.row&&e.row.data,h=d({},e,{data:u,cellElement:null,isOnForm:!0,item:t,value:c.calculateCellValue(u),column:d({},c,{editorOptions:t.editorOptions}),id:n.getItemID(t.name||t.dataField),columnIndex:c.index,setValue:!r&&c.allowEditing&&function(e){s.updateFieldValue(h,e)}}),p=s._getFormEditItemTemplate.bind(s)(h,c);s._rowsView.renderTemplate(l,p,h,!!l.closest(a.document).length)&&s._rowsView._updateCell(l,h)},getFormEditorTemplate:function(e,t){var n=this;return function(i,o){n.renderFormEditTemplate.bind(n)(e,t,i.component,o)}},getEditFormTemplate:function(){var e=this;return function(t,n,o){var a=e.option("editing.form"),r=e.option("editing.form.items"),u=e.option("editing.form.customizeItem"),h=e._editData[f(n.key,e._editData)],p=e.addWidgetPrefix(B);if(!r){var g=e.getController("columns").getColumns();r=[],c(g,function(e,t){t.isBand||r.push({column:t,name:t.name,dataField:t.dataField})})}if(e._firstFormItem=void 0,e._editForm=e._createComponent(i("<div>").appendTo(t),C,d({},a,{items:r,formID:"dx-"+new s,validationGroup:h,customizeItem:function(t){var i;if((t.column||t.dataField||t.name)&&(i=t.column||e._columnsController.columnOption(t.name?"name:"+t.name:"dataField:"+t.dataField)),i){t.label=t.label||{},t.label.text=t.label.text||i.caption,t.template=t.template||e.getFormEditorTemplate(n,t),t.column=i,i.formItem&&d(t,i.formItem),void 0===t.isRequired&&i.validationRules&&(t.isRequired=i.validationRules.some(function(e){return"required"===e.type}),t.validationRules=[]);var o=!l.isDefined(t.visible)||t.visible;!e._firstFormItem&&o&&(e._firstFormItem=t)}u&&u.call(this,t),t.cssClass=l.isString(t.cssClass)?t.cssClass+" "+p:p}})),!o){var m=i("<div>").addClass(e.addWidgetPrefix(P)).appendTo(t);e._createComponent(i("<div>").appendTo(m),w,e._getSaveButtonConfig()),e._createComponent(i("<div>").appendTo(m),w,e._getCancelButtonConfig())}e._editForm.on("contentReady",function(){e._editPopup&&e._editPopup.repaint()})}},getColumnTemplate:function(t){var n,i,o,a=this,r=t.column,s=t.row&&t.row.rowIndex,l=be(a),c=a.isEditRow(s),d=a.isEditCell(s,t.columnIndex);return!(r.showEditorAlways||r.setCellValue&&(c&&r.allowEditing||d))||"data"!==t.rowType&&"detailAdaptive"!==t.rowType||r.command?"detail"===r.command&&"detail"===t.rowType&&c&&(n=a.getEditFormTemplate(t)):(i=a.option("editing.allowUpdating"),((i||c)&&r.allowEditing||d)&&(l&&c||!l)&&(r.showEditorAlways&&!l&&(o={cancel:!1,key:t.row.inserted?void 0:t.row.key,data:t.row.data,column:r},a._isEditingStart(o)),o&&o.cancel||(t.setValue=function(e,n){a.updateFieldValue(t,e,n)})),n=r.editCellTemplate||e(a)),n},_createLink:function(e,t,n,o,a){var s=this,l=i("<a>").attr("href","#").addClass(F).addClass(we[n]);a?l.addClass(xe[n]).attr("title",t):l.text(t),r.on(l,m(h.name,Q),s.createAction(function(e){var t=e.event;t.stopPropagation(),t.preventDefault(),setTimeout(function(){o.row&&s[n](o.row.rowIndex)})})),o.rtlEnabled?e.prepend(l," "):e.append(l," ")},_createEditingLinks:function(e,t,n,i){var o=n.texts||{};n.allowUpdating&&i&&this._createLink(e,o.editRow,"editRow",t,n.useIcons),n.allowDeleting&&(t.row.removed?this._createLink(e,o.undeleteRow,"undeleteRow",t,n.useIcons):this._createLink(e,o.deleteRow,"deleteRow",t,n.useIcons))},prepareEditButtons:function(e){var t=this,n=t.option("editing")||{},o=t.option("editing.texts")||{},a={revert:o.cancelAllChanges,save:o.saveAllChanges,addRow:o.addRow},r={revert:"cancel",save:"save",addRow:"addrow"},s=[],l=function(n,o,s){var l=r[n],c=function(n){i(n.element).addClass(e._getToolbarButtonClass(z+" "+t.addWidgetPrefix(l)+"-button"))},d=a[n],u=("save"===l||"cancel"===l)&&!t.hasChanges();return{widget:"dxButton",options:{onInitialized:c,icon:"edit-button-"+l,disabled:u,onClick:function(){setTimeout(function(){t[o]()})},text:d,hint:d},showText:"inMenu",name:n+"Button",location:"after",locateInMenu:"auto",sortIndex:s}};return n.allowAdding&&s.push(l("addRow","addRow",20)),(n.allowUpdating||n.allowAdding||n.allowDeleting)&&ye(t)===oe&&(s.push(l("save","saveEditData",21)),s.push(l("revert","cancelEditData",22))),s},showHighlighting:function(e){var t=e.find("."+J);"TD"!==e.get(0).tagName||t.length||e.wrapInner(i("<div>").addClass(J+" "+pe))},resetRowAndPageIndices:function(e){var t=this;c(t._editData,function(n,i){(i.pageIndex!==t._pageIndex||e)&&(delete i.pageIndex,delete i.rowIndex)})},_afterInsertRow:function(){},_beforeSaveEditData:function(e){if(e&&!l.isDefined(e.key)&&l.isDefined(e.type))return!0},_afterSaveEditData:function(){},_beforeCancelEditData:function(){}}}());e.exports={defaultOptions:function(){return{editing:{mode:"row",allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,texts:{editRow:v.format("dxDataGrid-editingEditRow"),saveAllChanges:v.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:v.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:v.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:v.format("dxDataGrid-editingCancelRowChanges"),addRow:v.format("dxDataGrid-editingAddRow"),deleteRow:v.format("dxDataGrid-editingDeleteRow"),undeleteRow:v.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:v.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{}}}},controllers:{editing:Ce},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(e){var t,n=this.getController("editing");return this._editingController.refresh(),t=this.callBase(e),t&&t.done(function(){n.resetRowAndPageIndices(!0)})},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(e){var t=this._editingController,n=t.getEditRowIndex(),i=e[n];i&&(i.isEditing=!0,t.getEditMode()===se&&(i.rowType="detail"))},_updateItemsCore:function(e){this.callBase(e),this._updateEditRow(this.items())},_applyChangeUpdate:function(e){this._updateEditRow(e.items),this.callBase(e)},_processItems:function(e,t){return e=this._editingController.processItems(e,t),this.callBase(e,t)},_processDataItem:function(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),this.callBase(e,t)},_processItem:function(e,t){return e=this.callBase(e,t),e.inserted&&(t.dataIndex--,delete e.dataIndex),e}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellElements:function(e){var t=this.callBase(e),n=this._editingController,i=n.getEditForm(),o=n.getEditFormRowIndex();return o===e&&t&&i?i.$element().find("."+this.addWidgetPrefix(B)+", ."+G):t},getCellIndex:function(e,t){if(!e.is("td")&&t>=0){var n=this.getCellElements(t),o=-1;return c(n,function(t,n){if(i(n).find(e).length)return o=t,!1}),o}return this.callBase.apply(this,arguments)},_getVisibleColumnIndex:function(e,t,n){var i,o=this._editingController.getEditFormRowIndex();return o===t&&l.isString(n)?(i=this._columnsController.columnOption(n),this._getEditFormEditorVisibleIndex(e,i)):this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(e,t){var n,o=-1;return c(e,function(e,a){if(n=i(a).find(".dx-field-item-content").data("dx-form-item"),n&&n.column&&t&&n.column.index===t.index)return o=e,!1}),o},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(e){var t=this,n=t._editingController.getColumnTemplate(e);return n||t.callBase(e)},_isNativeClick:function(){return(b.real().ios||b.real().android)&&this.option("editing.allowUpdating")},_createTable:function(){var e=this,t=e.callBase.apply(e,arguments);return!be(e)&&e.option("editing.allowUpdating")&&r.on(t,m(k.name,"dxDataGridRowsView"),"td:not(."+H+")",e.createAction(function(){var t=e._editingController;t.isEditing()&&t.closeEditCell()})),t},_createRow:function(e){var t,n,i,o,a,r=this.callBase(e);return e&&(t=this._editingController,n=t.isEditRow(e.rowIndex),i=!!e.removed,o=!!e.inserted,a=!!e.modified,ye(this)===oe?i&&r.addClass(U):n&&r.addClass(L),o&&r.addClass(Y),a&&r.addClass(X),(n||o||i)&&r.removeClass($),n&&"detail"===e.rowType&&r.addClass(this.addWidgetPrefix(A))),r},_getColumnIndexByElement:function(e){for(var t=e.closest("table"),n=this.getTableElements();t.length&&!n.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)},_getColumnIndexByElementCore:function(e){var t=e.closest("."+j+"> td:not(.dx-master-detail-cell)");return this.getCellIndex(t)},_rowClick:function(e){var t=this,n=t._editingController,o=i(e.event.target),a=t._getColumnIndexByElement(o),r=t._dataController.items()[e.rowIndex],s=t.option("editing.allowUpdating")||r&&r.inserted,l=t._columnsController.getVisibleColumns()[a],c=l&&(l.allowEditing||n.isEditCell(e.rowIndex,a));o.closest("."+j+"> td").hasClass(he)||s&&c&&n.editCell(e.rowIndex,a)||n.isEditRow(e.rowIndex)||t.callBase(e)},_cellPrepared:function(e,t){var n=t.columnIndex,i=this._editingController,o=!!t.column.command,a=t.setValue,r=t.isEditing||i.isEditRow(t.rowIndex)&&t.column.allowEditing;if("data"===t.rowType&&!t.column.command&&(r||t.column.showEditorAlways)){var s=t.column.alignment;e.addClass(H).toggleClass(this.addWidgetPrefix(R),!a).toggleClass(te,!a),s&&e.find(ne).first().css("textAlign",s)}var l=t.row&&(t.row.inserted?t.row.values:t.row.modifiedValues);l&&void 0!==l[n]&&t.column&&!o&&t.column.setCellValue?(i.showHighlighting(e),e.addClass(Z)):a&&i.showHighlighting(e,!0),this.callBase.apply(this,arguments)},_formItemPrepared:function(){},_isFormItem:function(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,n="data"===e.rowType&&"popup"===ye(this);return(t||n)&&e.item},_updateCell:function(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):this.callBase(e,t)},_update:function(e){this.callBase(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children("."+L).removeClass($)},_getCellOptions:function(e){var t=this.callBase(e);return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t},cellValue:function(e,t,n,i){var o=this.getCellOptions(e,t);if(o){if(void 0===n)return o.value;this._editingController.updateFieldValue(o,n,i,!0)}}},headerPanel:{_getToolbarItems:function(){var e=this.callBase(),t=this.getController("editing").prepareEditButtons(this);return t.concat(e)},optionChanged:function(e){switch(e.name){case"editing":this._invalidate(),this.callBase(e);break;default:this.callBase(e)}},isVisible:function(){var e=this,t=e.getController("editing").option("editing");return e.callBase()||t&&(t.allowAdding||(t.allowUpdating||t.allowDeleting)&&t.mode===oe)}}}}}},function(e,t,n){var i=n(2),o=n(5),a=n(46),r=n(45),s=n(4),l=n(3).each,c=n(1),d=n(0).extend,u=n(57).focused,h=s.equalByValue,p=n(15),f=n(38),g=n(25),m=n(89),_=n(190),v=n(194),w=n(70),x=n(20),y=n(21),b="invalid",C="revert-tooltip",k="rowsview",S="dx-invalid-message",I="invalid-message",D="dx-invalid-message-always",T="dx-revert-button",E="dx-highlight-outline",A="validator",B="__DX_INSERT_INDEX__",O=2,R="row",M="form",P="batch",V="cell",F="popup",H="dx-group-cell",$=[F,M],L=a.Controller.inherit(function(){return{init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating")},_rowValidating:function(e,t){var n=this,i=t?t.brokenRules||t.brokenRule&&[t.brokenRule]:[],o=t?t.isValid:e.isValid,a={brokenRules:i,isValid:o,key:e.key,newData:e.data,oldData:e.oldData,errorText:this.getHiddenValidatorsErrorText(i)};return n.executeAction("onRowValidating",a),e.isValid=a.isValid,e.errorText=a.errorText,a},getHiddenValidatorsErrorText:function(e){var t=[];return l(e,function(e,n){n.validator.$element().parent().length||t.push(n.message)}),t.join(", ")},validate:function(e){var t=this,n=!0,i=t._editingController;return e=e||i.getEditMode()===R,!t._isValidationInProgress&&(t._isValidationInProgress=!0,e?l(i._editData,function(e,o){var a;o.type&&"remove"!==o.type&&(a=t.validateGroup(o),a.isValid||l(a.brokenRules,function(){var e=this.validator.option("adapter").getValue();void 0===e&&(e=null),this.column&&i.updateFieldValue({key:o.key,column:this.column},e,null,!0)}),n=n&&a.isValid)}):t._currentCellValidator&&(n=t.validateGroup(t._currentCellValidator._findGroup()).isValid),t._isValidationInProgress=!1,n)},validateGroup:function e(t){var n,i=this,e=m.getGroupConfig(t);return e&&e.validators.length&&(n=m.validateGroup(t)),i._rowValidating(t,n)},updateEditData:function(e){var t=this._editingController.getEditMode();$.indexOf(t)===-1?(this.setDisableApplyValidationResults(!0),e.isValid=!m.getGroupConfig(e)||m.validateGroup(e).isValid,this.setDisableApplyValidationResults(!1)):e.isValid=!0},setValidator:function(e){this._currentCellValidator=e},getValidator:function(){return this._currentCellValidator},createValidator:function(e,t){var n,a,s,l,h=this,p=h._editingController,f=e.column,m=function(e){if(e.brokenRule&&(e.brokenRule.columnIndex=f.index,e.brokenRule.column=f),t&&!h.getDisableApplyValidationResults()){if(!e.isValid){var n=t.find(":focus");p.showHighlighting(t,!0),u(n)||(o.trigger(n,"focus"),o.trigger(n,g.down))}t.toggleClass(h.addWidgetPrefix(b),!e.isValid)}},v=function(){var t=f.calculateCellValue(n.data||{});return void 0!==t?t:e.value},w=f.showEditorAlways;if(f.validationRules&&Array.isArray(f.validationRules)&&!c.isDefined(f.command)&&(a=p.getIndexByKey(e.key,p._editData),a<0&&(w||(l=h.getController("columns"),s=l&&l.getVisibleColumns()||[],w=s.some(function(e){return e.showEditorAlways})),w&&(a=p._addEditData({key:e.key,oldData:e.data}))),a>=0)){if(t&&!t.length)return void y.log("E1050");n=p._editData[a];var x=t&&t.hasClass("dx-widget");t&&t.addClass(h.addWidgetPrefix(A));var C=new _(t||i("<div>"),{name:f.caption,validationRules:d(!0,[],f.validationRules),validationGroup:n,adapter:x?null:{getValue:v,applyValidationResults:m},dataGetter:function(){return r.createObjectWithChanges(n.oldData,n.data)}});if(x){var k=C.option("adapter");k&&(k.getValue=v)}return C}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults}}}());e.exports={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:p.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:L},extenders:{controllers:{editing:{_addEditData:function(e,t){var n,i=this,o=i.getController("validating"),a=i.callBase(e,t);return a>=0&&(n=i._editData[a],o.updateEditData(n)),a},_updateRowAndPageIndices:function(){var e=this,t=e.getView("rowsView").getTopVisibleItemIndex(),n=t;l(e._editData,function(i,o){o.isValid||o.pageIndex===e._pageIndex||(o.pageIndex=e._pageIndex,"insert"===o.type?o.rowIndex=t:o.rowIndex=n,n++)})},_needInsertItem:function(e){var t=this.callBase.apply(this,arguments);return t&&!e.isValid&&(t=e.key.pageIndex===this._pageIndex),t},processItems:function(e,t){var n,i,o=this,a=o._editData,r=o.getController("data"),s=function(e,t){var n=-1,i="insert"===e.type,o=e.key;return l(t,function(e,t){if(h(o,i?t:r.keyOf(t)))return n=e,!1}),n},c=function(t){var n,o={key:t.key},a=s(t,e);a>=0||(t.rowIndex=t.rowIndex>i?t.rowIndex%i:t.rowIndex,n=t.rowIndex,o[B]=1,e.splice(n,0,o))};if(e=o.callBase(e,t),i=e.length,o.getEditMode()===P&&"prepend"!==t&&"append"!==t)for(n=0;n<a.length;n++)a[n].type&&a[n].pageIndex===o._pageIndex&&a[n].key.pageIndex!==o._pageIndex&&c(a[n]);return e},processDataItem:function(e){var t,n,i=this,o=e.data[B],a=o?e.data.key:e.key,s=i.getEditMode();s===P&&o&&a&&(t=r.getIndexByKey(a,i._editData),t>=0&&(n=i._editData[t],"insert"!==n.type&&(e.data=d(!0,{},n.oldData,n.data),e.key=a))),i.callBase.apply(i,arguments)},_createInvisibleColumnValidators:function(e){var t=this.getController("validating"),n=s.grep(this.getController("columns").getInvisibleColumns(),function(e){return!e.isBand}),i=[];return $.indexOf(this.getEditMode())===-1&&l(n,function(n,o){e.forEach(function(e){var n;if("insert"===e.type?n=e.data:"update"===e.type&&(n=r.createObjectWithChanges(e.oldData,e.data)),n){var a=t.createValidator({column:o,key:e.key,value:o.calculateCellValue(n)});a&&i.push(a)}})}),function(){i.forEach(function(e){e._dispose()})}},_beforeSaveEditData:function(e,t){var n,i,o=this,a=o.callBase.apply(o,arguments),r=o.getController("validating");if(e)n="remove"===e.type||e.isValid,a=a||!n;else{var s=o._createInvisibleColumnValidators(this._editData);switch(i=r.validate(!0),s(),o._updateRowAndPageIndices(),o.getEditMode()){case V:i||(o._focusEditingCell(),a=!0);break;case P:i||(o._editRowIndex=-1,o._editColumnIndex=-1,o.getController("data").updateItems(),a=!0);break;case R:case F:a=!i}}return a},_beforeEditCell:function(e,t,n){var i=this.callBase(e,t,n),o=this._rowsView._getCellElement(e,t),a=o&&o.data("dxValidator"),r=a&&a.option("adapter").getValue();if(this.getEditMode(this)===V&&(!a||void 0!==r&&a.validate().isValid))return i},_afterSaveEditData:function(){var e,t=this;if(l(t._editData,function(n,i){var o=t._showErrorRow(i);e=e||o}),e){var n=this._rowsView.getScrollable();n&&(n.update(),n.scrollToElement(e))}},_showErrorRow:function(e){var t,n=this.getController("errorHandling"),i=this.getController("data").items(),o=this.getIndexByKey(e.key,i);if(!e.isValid&&e.errorText&&o>=0)return t=this.getPopupContent(),n&&n.renderErrorRow(e.errorText,o,t)},updateFieldValue:function(e){var t=this,n=t.getEditMode();if(t.callBase.apply(t,arguments),n===R||n===P&&e.column.showEditorAlways){var i=t.getController("validating").getValidator();i&&i.validate()}},showHighlighting:function(e,t){var n,i=!0;t||(n=e.data("dxValidator"),n&&(i=n.validate().isValid)),i&&this.callBase(e)},getEditDataByKey:function(e){return this._editData[r.getIndexByKey(e,this._editData)]}},editorFactory:{_showRevertButton:function(e,t){var n=this;if(t&&t.length){var o=i("<div>").addClass(this.addWidgetPrefix(C)).appendTo(e),a={animation:null,visible:!0,target:t,container:e,closeOnOutsideClick:!1,closeOnTargetScroll:!1,boundary:this._rowsView.element(),contentTemplate:function(){var e=i("<div>").addClass(T),t={icon:"revert",hint:n.option("editing.texts.validationCancelChanges"),onClick:function(){n._editingController.cancelEditData()}};return new f(e,t).$element()},position:{my:"left top",at:"right top",of:t,offset:"1 0",collision:"flip"}};return new v(o,a)}},_hideFixedGroupCell:function(e,t){var n,o,a,r=this._rowsView.isFixedColumns(),s=this._editingController.isFormEditMode();r&&!s&&(n=e.closest(".dx-row").next().data("options"),n&&"group"===n.rowType&&(o=i(this._rowsView.getRowElement(n.rowIndex)).last(),a=o.find("."+H),a.length&&"hidden"!==a.get(0).style.visibility&&(a.css("visibility","hidden"),
|
|
43
43
|
t.onDisposing=function(){a.css("visibility","")})))},_showValidationMessage:function(e,t,n,o){var a=this,r=void 0,s=e.find("."+E),l=x.isMaterial(),c=s.length&&!l?s:e,d=e.find(".dx-dropdowneditor-overlay").is(":visible"),u=d?"top right":"top "+n,h=d?"top left":"bottom "+n,p=i("<div>").addClass(S).addClass(D).addClass(this.addWidgetPrefix(I)).text(t).appendTo(e),f={target:c,container:e,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,closeOnOutsideClick:!1,closeOnTargetScroll:!1,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",my:u,at:h},onPositioned:function(t){r||(r=a._rowsView.updateFreeSpaceRowHeight(),r&&t.component.repaint()),a._shiftValidationMessageIfNeed(t.component.$content(),o&&o.$content(),e)}};this._hideFixedGroupCell(e,f),new w(p,f)},_shiftValidationMessageIfNeed:function(e,t,n){if(t){var i=e.offset(),o=t.offset();if(i.top===o.top&&i.left+e.width()>o.left){var a=t.width()+O;e.css("left",o.left<n.offset().left?-a:a)}}},_getTooltipsSelector:function(){var e=this.addWidgetPrefix(I),t=this.addWidgetPrefix(C);return".dx-editor-cell ."+t+", .dx-editor-cell ."+e+", .dx-cell-modified ."+e},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},focus:function(e,t){var n,i,o=this,a=e&&e.closest(o._getFocusCellSelector()),r=a&&(a.data("dxValidator")||e.find("."+o.addWidgetPrefix(A)).eq(0).data("dxValidator")),s=a&&a.closest(".dx-row").data("options"),l=s?o.getController("editing").getEditDataByKey(s.key):null,c=a&&a.closest("."+o.addWidgetPrefix(k)).find(o._getTooltipsSelector()),d=a&&a.is("td")?a:null,u=!1,h=d&&o.getController("columns").getVisibleColumns()[d.index()];return arguments.length?(c&&c.remove(),r&&(o.getController("validating").setValidator(r),void 0!==r.option("adapter").getValue()&&(n=r.validate(),n.isValid||(t=!0,u=!0))),(n&&!n.isValid||l&&"update"===l.type&&!o._editingController.isSaving())&&o._editingController.getEditMode()===V&&(i=o._showRevertButton(a,d?a.find("."+E).first():a)),u&&d&&h&&n.brokenRule.message&&o._showValidationMessage(a,n.brokenRule.message,h.alignment,i),!t&&o._rowsView.element()&&o._rowsView.updateFreeSpaceRowHeight(),o.callBase(e,t)):o.callBase()}}},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,n,i,o=this,a=o.element(),r=a&&a.find("."+o.addWidgetPrefix(I)+" .dx-overlay-content");if(o.callBase(e),r&&r.length&&(t=o._getRowElements(),i=o._getFreeSpaceRowElements(e),n=i.first(),n&&1===t.length&&(!n.is(":visible")||r.outerHeight()>n.outerHeight())))return i.show(),i.height(r.outerHeight()),!0},_formItemPrepared:function(e,t){this.callBase.apply(this,arguments),this.getController("validating").createValidator(e,t.find(".dx-widget").first())},_cellPrepared:function(e,t){this.getController("editing").isFormEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)}}}}}},function(e,t,n){var i=n(2),o=n(6),a=o.getWindow(),r=n(4),s=n(391),l=n(45),c=n(3).each,d=n(7),u=d.Deferred,h=n(24),p=n(87),f="table",g="bottom-load-panel",m="table-content",_="group-space",v="content",w="dx-row",x="dx-freespace-row",y="dx-column-lines",b="infinite",C="virtual",k="standard",S=25e4,I=function(e){return e.option("scrolling.mode")===C},D=function(e){return e.option("scrolling.mode")===b},T=function(e){var t=e.option("scrolling.rowRenderingMode");return t===C||t!==k&&void 0},E=function(e){return e.children("tbody").not(".dx-header").not(".dx-footer")},A=function(){var e=function(e){var t=e._virtualScrollController.beginPageIndex(-1);I(e)&&(t<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))},t={init:function(t){var n=this;n.callBase.apply(n,arguments),n._items=[],n._isLoaded=!0,n._virtualScrollController=new s.VirtualScrollController(n.component,{pageSize:function(){return n.pageSize()},totalItemsCount:function(){return n.totalItemsCount()},hasKnownLastPage:function(){return n.hasKnownLastPage()},pageIndex:function(e){return t.pageIndex(e)},isLoading:function(){return t.isLoading()&&!n.isCustomLoading()},pageCount:function(){return n.pageCount()},load:function(){return t.load()},updateLoading:function(){e(n)},itemsCount:function(){return n.itemsCount(!0)},items:function(){return t.items()},viewportItems:function(e){return e&&(n._items=e),n._items},onChanged:function(e){n.changed.fire(e)},changingDuration:function(e){return n._renderTime||0}})},_handleLoadingChanged:function(e){var t=this;I(t)||(t._isLoading=e,t.callBase.apply(t,arguments))},_handleLoadError:function(){var e=this;e._isLoading=!1,e.loadingChanged.fire(!1),e.callBase.apply(e,arguments)},_handleDataChanged:function(){var e=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(e)},_customizeRemoteOperations:function(e,t,n){var i=this;!i.option("legacyRendering")&&I(i)&&!n.reload&&n.paging&&i._renderTime<i.option("scrolling.renderingThreshold")&&(e.delay=void 0),i.callBase.apply(i,arguments)},items:function(){return this._items},itemsCount:function(e){return e?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},_changeRowExpandCore:function(){var t=this.callBase.apply(this,arguments);return this._virtualScrollController.reset(),this.resetPagesCache(),e(this),t},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(e){var t=new u;return this.callBase.apply(this,arguments).done(function(n){var i=e._delayDeferred;i?i.done(t.resolve).fail(t.reject):t.resolve(n)}).fail(t.reject),t}return this.callBase.apply(this,arguments)},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,r=o._dataSource;return(n||i.reload)&&(o._virtualScrollController.reset(),r.items().length=0,o._isLoaded=!1,e(o),o._isLoaded=!0,D(o)?(o.pageIndex(0),r.pageIndex(0),a.pageIndex=0,t.pageIndex=0,a.skip=0):(r.pageIndex(o.pageIndex()),r.paginate()&&(a.skip=o.pageIndex()*o.pageSize()))),o.callBase.apply(o,arguments)}};return["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentSize","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","pageIndex","beginPageIndex","endPageIndex","loadIfNeed"].forEach(function(e){t[e]=function(){var t=this._virtualScrollController;return t[e].apply(t,arguments)}}),t}(),B=function(){return{init:function(){var e=this,t=e.getController("data");if(e.callBase(),t.pageChanged.add(function(){e.scrollToPage(t.pageIndex())}),!e.option("legacyRendering")&&t.pageIndex()>0){var n=function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())};e.resizeCompleted.add(n)}},scrollToPage:function(e){var t,n=this,i=n._dataController,o=i?i.pageSize():0;if(I(n)||D(n)){var a=i.getItemSize(),r=i.getItemSizes(),s=e*o;t=s*a;for(var l in r)l<=s&&(t+=r[l]-a)}else t=0;n.scrollTo({y:t,x:n._scrollLeft})},renderDelayedTemplates:function(e){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(e){var t=this,n=new Date;t.callBase.apply(t,arguments);var i=t._dataController._dataSource;if(i&&e){var o=e.items?e.items.length:20,a=t._dataController.viewportSize()||20;T(t)?i._renderTime=(new Date-n)*a/o:i._renderTime=new Date-n}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not(".dx-virtual-row")},_renderContent:function(e,t){var n=this,i=n._dataController.virtualItemsCount();return i&&n.option("legacyRendering")?(o.hasWindow()&&t.addClass(n.addWidgetPrefix(m)),e.children().length?e.children().first().replaceWith(t):e.append(t),1===e.children("table").length&&(e.append(n._createTable()),n._contentHeight=0),e):n.callBase.apply(n,arguments)},_removeRowsElements:function(e,t,n){var o=this._getRowElements(e).toArray();o="append"===n?o.slice(0,t):o.slice(-t);var a=this.getController("errorHandling");o.map(function(e){var t=i(e);a&&a.removeErrorRow(t.next()),t.remove()})},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each(function(e,n){var o=i(n).data("options");if(o){var a=t.getEditDataByKey(o.key);a&&t._showErrorRow(a)}})},_updateContent:function(e,t){var n,i=this,o=i._findContentElement(),a=t&&t.changeType;if("append"===a||"prepend"===a){n=o.children().first();var r=E(e);i.option("legacyRendering")||1!==r.length?r["append"===a?"appendTo":"prependTo"](n):E(n)["append"===a?"append":"prepend"](r.children()),e.remove();for(var s=i._getFreeSpaceRowElements(n),l=0;l<s.length-1;l++)s.eq(l).remove();t.removeCount&&i._removeRowsElements(n,t.removeCount,a),i._restoreErrorRow(n)}else i.callBase.apply(i,arguments);i._updateBottomLoading()},_updateContentPosition:function(e){var t=this,n=t._dataController,i=t._rowHeight||20;if(n.viewportItemSize(i),t.option("legacyRendering")||!I(t)&&!T(t))r.deferUpdate(function(){t._updateContentPositionCore()});else{if(!e){var o=t._getRowElements(t._tableElement).toArray().map(function(e){return e.getBoundingClientRect().height});n.setContentSize(o)}var a=n.getContentOffset("begin"),s=n.getContentOffset("end"),l=E(t._tableElement);if(l.children(".dx-virtual-row").remove(),a){var c=t._createEmptyRow().addClass("dx-virtual-row");c.prependTo(l.first()).css("height",a)}if(s){var d=t._createEmptyRow().addClass("dx-virtual-row");d.appendTo(l.last()).css("height",s)}!e&&t._updateScrollTopPosition(a)}},_updateScrollTopPosition:function(e){this._scrollTop<e&&!this._isScrollByEvent&&this._dataController.pageIndex()>0&&this.scrollTo({top:e,left:this._scrollLeft})},_updateContentPositionCore:function(){var e,t,n,i,o,a,s,l=this,c=l._rowHeight||20,d=l._dataController.virtualItemsCount();d&&(e=l._findContentElement(),i=e.children(),o=i.eq(0),a=i.eq(1),l._contentTableHeight=o[0].offsetHeight,l._dataController.viewportItemSize(c),l._dataController.setContentSize(l._contentTableHeight),t=l._dataController.getVirtualContentSize(),n=l._dataController.getContentOffset(),r.deferRender(function(){h.move(o,{left:0,top:n}),s=l._contentHeight!==t||0===t||!l._isTableLinesDisplaysCorrect(a)||!l._isColumnElementsEqual(o.find("col"),a.find("col")),s&&(l._contentHeight=t,l._renderVirtualTableContent(a,t)),l._updateScrollTopPosition(n)}))},_isTableLinesDisplaysCorrect:function(e){var t=e.find("."+y).length>0;return t===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&c(e,function(e,i){if(i.style.width!==t[e].style.width)return n=!1}),n},_renderVirtualTableContent:function(e,t){var n,i=this,o=i._columnsController.getVisibleColumns(),a=i._createColGroup(o).prop("outerHTML"),r="",s=i.option("showColumnLines")?y:"",l=function(e){return"<tr style='height:"+e+"px;' class='"+x+" "+w+" "+s+"' >"+r+"</tr>"};for(n=0;n<o.length;n++){var c=i._getCellClasses(o[n]),d=c.length?" class='"+c.join(" ")+"'":"";r+="<td"+d+"/>"}for(;t>S;)a+=l(S),t-=S;a+=l(t),e.addClass(i.addWidgetPrefix(f)),e.html(a)},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix(_)),t},_findBottomLoadPanel:function(){var e=this.element(),t=e&&e.find("."+this.addWidgetPrefix(g));if(t&&t.length)return t},_updateBottomLoading:function(){var e=this,t=e.option("scrolling.mode"),n=t===C,o=t===b,a=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(n||o),r=e._findBottomLoadPanel();a?r||i("<div>").addClass(e.addWidgetPrefix(g)).append(e._createComponent(i("<div>"),p).$element()).appendTo(e._findContentElement()):r&&r.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e.scrollOffset.top),t.callBase.apply(t,arguments)},_needUpdateRowHeight:function(e){var t=this;return t.callBase.apply(t,arguments)||e>0&&t.option("scrolling.mode")===b},_updateRowHeight:function(){var e,t=this;t.callBase.apply(t,arguments),t._rowHeight&&(t._updateContentPosition(),e=t._hasHeight?t.element().outerHeight():i(a).outerHeight(),t._dataController.viewportSize(Math.ceil(e/t._rowHeight)))},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var n=this,i=n.callBase,o=n._dataController,a=o.pageIndex()>0&&o.isLoaded()&&!!n._findBottomLoadPanel();a&&(e=!1),i.call(n,e,t)},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&t.closest(a.document).length&&(e._windowScroll=s.subscribeToExternalScrollers(t,function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)},e.component.$element()),e.on("disposing",function(){e._windowScroll.dispose()})),e.loadIfNeed()},loadIfNeed:function(){var e=this._dataController;e&&e.loadIfNeed&&e.loadIfNeed()},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?n.$content():this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix(v)).children(":not(."+this.addWidgetPrefix(m)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}();e.exports={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard"}}},extenders:{dataSourceAdapter:A,controllers:{data:function(){var e={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new u).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e},reload:function(){var e=this,t=e._rowsScrollController||e._dataSource,n=t&&t.getItemIndexByPosition(),o=this.callBase.apply(this,arguments);return o&&o.done(function(){if(I(e)||T(e)){var t=e.getRowIndexOffset(),o=Math.floor(n)-t,a=e.component,r=a.getScrollable&&a.getScrollable();if(r&&!e.option("legacyRendering")){var s=a.getRowElement(o),l=s&&s[0]&&i(s[0]),c=l&&l.position().top;c>0&&(c=Math.round(c+l.outerHeight()*(n%1)),r.scrollTo({y:c}))}}})},initVirtualRows:function(){var e=this,t=T(e);return"virtual"!==e.option("scrolling.mode")&&t!==!0||t===!1||e.option("legacyRendering")||!e.option("scrolling.rowPageSize")?(e._visibleItems=null,void(e._rowsScrollController=null)):(e._rowPageIndex=Math.ceil(e.pageIndex()*e.pageSize()/e.getRowPageSize()),e._visibleItems=[],e._rowsScrollController=new s.VirtualScrollController(e.component,{pageSize:function(){return e.getRowPageSize()},totalItemsCount:function(){return I(e)?e.totalItemsCount():e._items.length},hasKnownLastPage:function(){return!0},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function e(){var e=Math.ceil(this.totalItemsCount()/this.pageSize());return e?e:1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!e._rowsScrollController._dataSource.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged(function(t){t=t||{},t.changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach(function(e,t){e.rowIndex=t}),e._fireChanged(t)})},updateLoading:function(){},itemsCount:function(){return e._rowsScrollController._dataSource.items().length},items:function(){var t=e.dataSource(),n=t&&t.virtualItemsCount(),i=n?n.begin:0,o=e.getRowPageSize(),a=e._rowPageIndex*o-i,r=o,s=e._items;return a<0?[]:(a&&(s=s.slice(a)),r&&(s=s.slice(0,r)),s)},viewportItems:function(t){return t&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var n=e.dataSource();return n&&n._renderTime||0}},(!0)),void(e.isLoaded()&&e._rowsScrollController.load()))},_updateItemsCore:function(e){var t=this,n=this.getRowIndexDelta();this.callBase.apply(this,arguments);var i=this._rowsScrollController;if(i){var o=this._visibleItems,a="refresh"===e.changeType;if("append"===e.changeType&&e.items&&!e.items.length)return;a||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,a&&i.reset(),i.load()):("update"===e.changeType?e.rowIndices.forEach(function(t,n){var i=e.changeTypes[n],a=e.items[n];"update"===i?o[t]=a:"insert"===i?o.splice(t,0,a):"remove"===i&&o.splice(t,1)}):(o.forEach(function(e,i){o[i]=t._items[i+n]||o[i]}),e.items=o),o.forEach(function(e,t){e.rowIndex=t}))}},_applyChange:function(e){var t=this,n=e.items,i=e.changeType,o=e.removeCount;if(o){for(var a=0;a<o+1;a++){var r=t._items["prepend"===i?t._items.length-1-a:a];r&&"data"!==r.rowType&&("group"!==r.rowType||!this._dataSource.isGroupItemCountable(r.data)&&("prepend"===i||a<o))&&o++}e.removeCount=o}switch(i){case"prepend":t._items.unshift.apply(t._items,n),o&&t._items.splice(-o);break;case"append":t._items.push.apply(t._items,n),o&&t._items.splice(0,o);break;default:t.callBase(e)}},items:function(e){return e?this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=this._visibleItems,t=0;return e&&e[0]&&(t=this._items.indexOf(e[0])),t<0?0:t},getRowIndexOffset:function(){var e=0,t=this.dataSource(),n=this._rowsScrollController;return n?e=n.beginPageIndex()*n._dataSource.pageSize():"virtual"===this.option("scrolling.mode")&&t&&(e=t.beginPageIndex()*t.pageSize()),e},viewportSize:function(){var e=this._rowsScrollController;e&&e.viewportSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportSize.apply(t,arguments)},viewportItemSize:function(){var e=this._rowsScrollController;e&&e.viewportItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;e?e.setViewportPosition.apply(e,arguments).done(function(){t&&t.setViewportItemIndex(e.getViewportItemIndex())}):t&&t.setViewportPosition.apply(t,arguments)},setContentSize:function(e){var t=this._rowsScrollController;t&&t.setContentSize(e);var n=this._dataSource;return n&&n.setContentSize(e)},loadIfNeed:function(){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)}};return l.proxyMethod(e,"virtualItemsCount"),l.proxyMethod(e,"getVirtualContentSize"),l.proxyMethod(e,"setViewportItemIndex"),e}(),resizing:{resize:function(){var e,t=this,n=t.callBase;if(t.option("legacyRendering")||!I(t)&&!T(t))e=n.apply(t);else{clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,o=t.option("scrolling.updateTimeout");t._lastTime&&i<o?(e=new u,t._resizeTimeout=setTimeout(function(){n.apply(t).done(e.resolve).fail(e.reject),t._lastTime=new Date},o),t._lastTime=new Date):(e=n.apply(t),t._dataController.isLoaded()&&(t._lastTime=new Date))}return e},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:B}}}},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(5),r=n(29),s=n(77),l=n(3).each,c=n(10),d=n(7).Deferred,u="infinite",h="virtual",p=function(e){return e.option("scrolling.mode")===h||e._isVirtual},f=function(e){return e.option("scrolling.mode")===u&&!e._isVirtual};t.getContentHeightLimit=function(e){return e.msie?4e6:e.mozilla?8e6:15e6},t.subscribeToExternalScrollers=function(e,t,n){function r(t){var n=t.element?t.$element():t,i=s.offset(n);return i?t.scrollTop()-(i.top-e.offset().top):e.offset().top}function c(e){return function(){var n=e.scrollTop()-r(e);n=n>0?n:0,t(n)}}function d(e){var t="#document"===e.get(0).nodeName,n=e.data("dxScrollable"),s=g;if(n||(n=t&&i(o)||"auto"===e.css("overflowY")&&e,s=a,n)){var l=c(n);s.on(n,"scroll",l),p.push(function(e){var t=r(n),i=n.scrollTo?"scrollTo":"scrollTop";e-t>=0&&n[i](e+t)}),h.push(n),f.push(function(){s.off(n,"scroll",l)})}}var u,h=[],p=[],f=[];n=n||e;var g={on:function(e,t,n){e.on("scroll",n)},off:function(e,t,n){e.off("scroll",n)}};for(u=n.parent();u.length;u=u.parent())d(u);return{scrollTo:function(e){l(p,function(t,n){n(e)})},dispose:function(){l(f,function(e,t){t()})}}},t.VirtualScrollController=c.inherit(function(){var e=function(e){var t=e._dataSource.pageSize(),n=e.option("scrolling.preventPreload");if(n)return 0;var i=e._viewportSize;if(p(e)&&e.option("legacyRendering")===!1&&e.option("scrolling.removeInvisiblePages")){i=0;for(var o=e._viewportSize*e._viewportItemSize,a=e.getContentOffset(),r=e._position||0,s=e.virtualItemsCount(),l=e._dataSource.totalItemsCount(),c=s.begin;c<l&&!(a>=r+o);c++){var d=e._itemSizes[c]||e._viewportItemSize;a+=d,a>=r&&i++}}return t&&i>0?Math.ceil(i/t):1},n=function(t,n){var i=t.option("scrolling.preloadEnabled"),o=e(t);return o&&(n?o=i?1:0:(i&&o++,f(t)&&o--)),o},i=function(e){var t=e._dataSource.pageIndex();return e._cache.some(function(e){return e.pageIndex===t})},o=function(e){var t,o,r,l=-1,c=a(e),d=e._dataSource;return c<0?l=e._pageIndex:e._cache[e._pageIndex-c]?c>=0&&e._viewportSize>=0&&(c>0&&(r=s(e)+1===d.pageCount()&&e._cache.length<n(e)+1,o=r||e._pageIndex===c&&n(e,!0),o&&(l=c-1)),l<0&&(t=c+e._cache.length<=e._pageIndex+n(e),t&&(l=c+e._cache.length))):(i(e)||e._isVirtual)&&(l=e._pageIndex),l},a=function(e){return e._cache.length?e._cache[0].pageIndex:-1},s=function(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1},c=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},u=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,c(e,t,n),!0},h=function(e,t,n,i,o){var a,r=e._dataSource,s=r.items().slice();n&&!e._isDelayChanged&&(a={changeType:n,items:s},o&&(a.removeCount=o.itemsCount));var l=e._dataSource.viewportItems();"append"===n?(l.push.apply(l,s),o&&l.splice(0,o.itemsLength)):"prepend"===n?(l.unshift.apply(l,s),o&&l.splice(-o.itemsLength)):e._dataSource.viewportItems(s),r.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||c(e,t,a)},g=function(e,t){var n=e._dataSource;if(t===e.pageIndex()||!n.isLoading()&&t<n.pageCount()||!n.hasKnownLastPage()&&t===n.pageCount())return n.pageIndex(t),n.load()};return{ctor:function(e,t,n){var i=this;i._dataSource=t,i.component=e,i._pageIndex=i._lastPageIndex=t.pageIndex(),i._viewportSize=0,i._viewportItemSize=20,i._viewportItemIndex=-1,i._itemSizes={},i._sizeRatio=1,i._items=[],i._cache=[],i._isVirtual=n},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var e,t,n,i=this,o=0;if(p(i))return e=a(i),e<0&&(e=i._dataSource.pageIndex()),t=e*i._dataSource.pageSize(),o=i._cache.length*i._dataSource.pageSize(),n=Math.max(0,i._dataSource.totalItemsCount()-o-t),{begin:t,end:n}},setViewportPosition:function(e){var t=this,n=new d,i=Math.min(t.option("scrolling.timeout")||0,t._dataSource.changingDuration());return i<t.option("scrolling.renderingThreshold")&&(i=t.option("scrolling.minTimeout")||0),clearTimeout(t._scrollTimeoutID),i>0?t._scrollTimeoutID=setTimeout(function(){t._setViewportPositionCore(e),n.resolve()},i):(t._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var e,t=this,n=t._position,i=t.getItemSize(),o=0,a=0,r=Object.keys(t._itemSizes).concat(-1),s=0;s<r.length&&o<n;s++){var l=parseInt(r[s]),c=(n-o)/i;if(l<0||a+c<l){a+=c;break}c=l-a,o+=c*i,a+=c,e=t._itemSizes[l],o+=e,a+=o<n?1:(n-o+e)/e}return Math.round(50*a)/50},_setViewportPositionCore:function(e){this._position=e;var t=this.getItemIndexByPosition();return this.setViewportItemIndex(t)},setContentSize:function(e){var n=this,i=Array.isArray(e)&&e,o=n.virtualItemsCount();if(i&&(e=i.reduce(function(e,t){return e+t},0)),n._contentSize=e,o){i&&i.forEach(function(e,t){n._itemSizes[o.begin+t]=e});var a=(o.begin+o.end+n.itemsCount())*n._viewportItemSize,s=t.getContentHeightLimit(r);a>s?n._sizeRatio=s/a:n._sizeRatio=1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getContentOffset:function(e){var t,n=this,i=n.virtualItemsCount(),o="end"===e;if(!i)return 0;t=o?i.end:i.begin;var a=0,r=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach(function(e){t&&(o?e>=r-i.end:e<i.begin)&&(a+=n._itemSizes[e],t--)}),Math.floor(a+t*n._viewportItemSize*n._sizeRatio)},getVirtualContentSize:function(){var e=this,t=e.virtualItemsCount();return t?(t.begin+t.end)*e._viewportItemSize*e._sizeRatio+e._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(e){var t,n,i,o=this,a=o._dataSource.pageSize(),r=o._dataSource.pageCount(),s=p(o),l=f(o),c=o._dataSource.totalItemsCount(),d=o._viewportItemIndex<0;if(o._viewportItemIndex=e,a&&(s||l)&&c>=0)return o._viewportSize&&e+o._viewportSize>=c&&!o._isVirtual?o._dataSource.hasKnownLastPage()?(i=r-1,t=c%a,i>0&&t>0&&t<a/2&&i--):i=r:(i=Math.floor(e/a),n=r-1,i=Math.max(i,0),i=Math.min(i,n)),(o.pageIndex()!==i||d)&&o.pageIndex(i),o.load()},viewportItemSize:function(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize},viewportSize:function(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize},pageIndex:function(e){return p(this)||f(this)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataSource.pageIndex(e)},beginPageIndex:function e(t){var e=a(this);return e<0&&(e=void 0!==t?t:this.pageIndex()),e},endPageIndex:function e(){var e=s(this);return e>0?e:this._lastPageIndex},load:function(){var e,t,n=this._dataSource;return p(this)||f(this)?(e=o(this),e>=0&&(t=g(this,e)),n.updateLoading()):t=n.load(),t||this._lastPageIndex===this.pageIndex()||this._dataSource.onChanged({changeType:"pageIndex"}),t||(new d).resolve()},loadIfNeed:function(){var e=this;if((p(e)||f(e))&&!e._dataSource.isLoading()&&!e._isChangedFiring){var t=e.getViewportPosition();t>0?e._setViewportPositionCore(t):e.load()}},handleDataChanged:function(e){var t,i,o,r,l=this,d=l._dataSource,g=l._cache.length;if(p(l)||f(l)){if(t=a(l),t>=0&&(p(l)&&t+l._cache.length!==d.pageIndex()&&t-1!==d.pageIndex()&&(l._cache=[]),f(l)))if(0===d.pageIndex())l._cache=[];else if(d.pageIndex()<s(l))return void c(l,e,{changeType:"append",items:[]});r={pageIndex:d.pageIndex(),itemsLength:d.items().length,itemsCount:l.itemsCount(!0)},!l.option("legacyRendering")&&l.option("scrolling.removeInvisiblePages")&&p(l)?o=l._cache.length>Math.max(n(this)+(l.option("scrolling.preloadEnabled")?1:0),2):u(l,e,{isDelayed:!0});var m;t===d.pageIndex()+1?(o&&(m=l._cache.pop()),i="prepend",l._cache.unshift(r)):(o&&(m=l._cache.shift()),i="append",l._cache.push(r)),h(l,e,l._cache.length>1?i:void 0,0===g,m),l._delayDeferred=l.load().done(function(){u(l,e)&&l.load()})}else h(l,e)},itemsCount:function e(t){var e=0;return!t&&p(this)?l(this._cache,function(){e+=this.itemsCount}):e=this._dataSource.itemsCount(),e},reset:function(){this._cache=[],this._itemSizes={}},subscribeToWindowScrollEvents:function(e){var n=this;n._windowScroll=n._windowScroll||t.subscribeToExternalScrollers(e,function(e){n.viewportItemSize()&&n.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}())},function(e,t,n){function i(e){return"onClick"===e.option("filterRow.applyFilter")}var o=n(2),a=n(5),r=n(1).isDefined,s=n(0).extend,l=n(3),c=n(46),d=n(45),u=n(15),h=n(48),p=n(70),f=n(393),g={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal","default":"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},m={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},_=700,v=1,w="filter-row",x="filter-range-overlay",y="filter-range-start",b="filter-range-end",C="dx-menu",k="dx-editor-with-menu",S="dx-editor-container",I="dx-editor-cell",D="dx-filter-menu",T="dx-apply-button",E="dx-highlight-outline",A="dx-focused",B="dx-cell-focus-disabled",O="dx-filter-range-content",R="dx-filter-modified",M="input:not([type='hidden'])",P=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof h)return i},t=function(e,t){var i="",o="",a=n(e,t),s=d.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(a)?(i=d.formatValue(a[0],s),o=d.formatValue(a[1],s),""!==o&&(i+=" - "+o)):r(a)&&(i=d.formatValue(a,s)),i},n=function(e,t){if(t)return i(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue},c=function(e,t){if(t)return i(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},T=function(e,t,i){var o=e._columnsController.columnOption(t),a=n(e,o),r=i.closest("."+e.addWidgetPrefix(x)).length,s=i.hasClass(e.addWidgetPrefix(y));return a&&Array.isArray(a)&&"between"===c(e,o)?s?a[0]:a[1]:r||void 0===a?null:a},E=function(e,t,i,o){if("between"===c(e,i)){var a=n(e,i);return o.hasClass(e.addWidgetPrefix(y))?[t,Array.isArray(a)?a[1]:void 0]:[Array.isArray(a)?a[0]:a,t]}return t},R=function(e,t){var n=""===t.value?null:t.value,o=t.container,a=e._columnsController.columnOption(t.column.index),s=T(e,a.index,o);(r(s)||r(n))&&(e._applyFilterViewController.setHighLight(o,s!==n),e._columnsController.columnOption(a.index,i(e)?"bufferedFilterValue":"filterValue",E(e,n,a,o),t.notFireEvent))};return{_updateEditorValue:function(t,n){var i=this,o=e(n);o&&o.option("value",T(i,t.index,n))},_columnOptionChanged:function(e){var n,i,a,r,s,l,u,h=this,p=e.optionNames;return d.checkChanges(p,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex?(i=h._columnsController.getVisibleIndex(e.columnIndex),a=h._columnsController.columnOption(e.columnIndex),r=h._getCellElement(h.element().find("."+h.addWidgetPrefix(w)).index(),i)||o(),s=r.find("."+S).first(),(p.filterValue||p.bufferedFilterValue)&&(h._updateEditorValue(a,s),n=r.find("."+h.addWidgetPrefix(x)).data("dxOverlay"),n&&(l=n.$content().find("."+S),h._updateEditorValue(a,l.first()),h._updateEditorValue(a,l.last())),n&&n.option("visible")||h._updateFilterRangeContent(r,t(h,a))),void((p.selectedFilterOperation||p.bufferedSelectedFilterOperation)&&i>=0&&a&&(u=r.find("."+C),u.length&&(h._updateFilterOperationChooser(u,a,s),"between"===c(h,a)?h._renderFilterRangeContent(r,a):s.find("."+O).length&&(h._renderEditor(s,h._getEditorOptions(s,a)),h._hideFilterRange()))))):void h.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint();
|