@devexpress/analytics-core 22.1.2-beta → 22.1.3
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/accessibility/_accordionKeyboardHelper.d.ts +2 -2
- package/accessibility/_accordionKeyboardHelper.js +2 -2
- package/accessibility/_controlElementBase.d.ts +2 -2
- package/accessibility/_controlElementBase.js +2 -2
- package/accessibility/_controlElementWithParentHighlight.d.ts +2 -2
- package/accessibility/_controlElementWithParentHighlight.js +2 -2
- package/accessibility/_internal.d.ts +2 -2
- package/accessibility/_internal.js +2 -2
- package/accessibility/_keyboardHelperBase.d.ts +2 -2
- package/accessibility/_keyboardHelperBase.js +2 -2
- package/accessibility/_keyboardHelperWithArrowButtonBase.d.ts +2 -2
- package/accessibility/_keyboardHelperWithArrowButtonBase.js +2 -2
- package/accessibility/_listKeyboardHelper.d.ts +2 -2
- package/accessibility/_listKeyboardHelper.js +2 -2
- package/accessibility/_rightPanelKeyboardHelper.d.ts +2 -2
- package/accessibility/_rightPanelKeyboardHelper.js +2 -2
- package/accessibility/_toolbarKeyboardHelper.d.ts +2 -2
- package/accessibility/_toolbarKeyboardHelper.js +2 -2
- package/accessibility/_treeListKeyboardHelper.d.ts +2 -2
- package/accessibility/_treeListKeyboardHelper.js +2 -2
- package/analytics-criteria-utils.d.ts +2 -2
- package/analytics-criteria-utils.js +2 -2
- package/analytics-criteria.d.ts +2 -2
- package/analytics-criteria.js +2 -2
- package/analytics-data-internal.d.ts +2 -2
- package/analytics-data-internal.js +2 -2
- package/analytics-data-metadata.d.ts +2 -2
- package/analytics-data-metadata.js +2 -2
- package/analytics-data-utils.d.ts +2 -2
- package/analytics-data-utils.js +2 -2
- package/analytics-data.d.ts +2 -2
- package/analytics-data.js +2 -2
- package/analytics-diagram.d.ts +2 -2
- package/analytics-diagram.js +2 -2
- package/analytics-elements-metadata.d.ts +2 -2
- package/analytics-elements-metadata.js +2 -2
- package/analytics-elements.d.ts +2 -2
- package/analytics-elements.js +2 -2
- package/analytics-internal.d.ts +2 -2
- package/analytics-internal.js +2 -2
- package/analytics-localization.d.ts +2 -2
- package/analytics-localization.js +2 -2
- package/analytics-tools.d.ts +2 -2
- package/analytics-tools.js +2 -2
- package/analytics-utils.d.ts +2 -2
- package/analytics-utils.js +2 -2
- package/analytics-version.d.ts +2 -2
- package/analytics-version.js +3 -3
- package/analytics-widgets-ace.d.ts +2 -2
- package/analytics-widgets-ace.js +2 -2
- package/analytics-widgets-filtering.d.ts +2 -2
- package/analytics-widgets-filtering.js +2 -2
- package/analytics-widgets-internal.d.ts +2 -2
- package/analytics-widgets-internal.js +2 -2
- package/analytics-widgets-metadata.d.ts +2 -2
- package/analytics-widgets-metadata.js +2 -2
- package/analytics-widgets-treeList.d.ts +2 -2
- package/analytics-widgets-treeList.js +2 -2
- package/analytics-widgets.d.ts +2 -2
- package/analytics-widgets.js +2 -2
- package/analytics-wizard-internal.d.ts +2 -2
- package/analytics-wizard-internal.js +2 -2
- package/analytics-wizard.d.ts +2 -2
- package/analytics-wizard.js +2 -2
- package/bundle/_add-analytics-to-bundle.d.ts +2 -2
- package/bundle/_add-analytics-to-bundle.js +2 -2
- package/bundle/_add-devextreme-to-bundle.d.ts +2 -2
- package/bundle/_add-devextreme-to-bundle.js +2 -2
- package/bundle/_add-querybuilder-to-bundle.d.ts +2 -2
- package/bundle/_add-querybuilder-to-bundle.js +2 -2
- package/bundle/_add-to-context.d.ts +2 -2
- package/bundle/_add-to-context.js +2 -2
- package/bundle/_validator.d.ts +2 -2
- package/bundle/_validator.js +2 -2
- package/bundle/analytic-core-bundle.d.ts +2 -2
- package/bundle/analytic-core-bundle.js +2 -2
- package/bundle/query-builder-bundle.d.ts +2 -2
- package/bundle/query-builder-bundle.js +2 -2
- package/core/_actionProvider.d.ts +2 -2
- package/core/_actionProvider.js +2 -2
- package/core/_bindings.d.ts +2 -2
- package/core/_bindings.js +2 -2
- package/core/_legacy.d.ts +2 -2
- package/core/_legacy.js +2 -2
- package/core/_metadata.d.ts +2 -2
- package/core/_metadata.js +2 -2
- package/core/binding/_jsDesignerBindingCommon.d.ts +2 -2
- package/core/binding/_jsDesignerBindingCommon.js +2 -2
- package/core/binding/_jsDesignerBindingCommonOptions.d.ts +2 -2
- package/core/binding/_jsDesignerBindingCommonOptions.js +2 -2
- package/core/binding/_requestHelper.d.ts +2 -2
- package/core/binding/_requestHelper.js +2 -2
- package/core/dragDrop/_dragDropHandler.d.ts +2 -2
- package/core/dragDrop/_dragDropHandler.js +2 -2
- package/core/dragDrop/_dragHelperContent.d.ts +2 -2
- package/core/dragDrop/_dragHelperContent.js +2 -2
- package/core/dragDrop/_selectionDragDropHandler.d.ts +2 -2
- package/core/dragDrop/_selectionDragDropHandler.js +2 -2
- package/core/dragDrop/_toolboxDragDropHandler.d.ts +2 -2
- package/core/dragDrop/_toolboxDragDropHandler.js +2 -2
- package/core/dragDrop/_wizardDragDropHandler.d.ts +2 -2
- package/core/dragDrop/_wizardDragDropHandler.js +2 -2
- package/core/elements/baseSurface.d.ts +6 -6
- package/core/elements/baseSurface.js +2 -2
- package/core/elements/elementViewModel.d.ts +33 -33
- package/core/elements/elementViewModel.js +4 -4
- package/core/elements/margins.d.ts +2 -2
- package/core/elements/margins.js +2 -2
- package/core/elements/paddingModel.d.ts +2 -2
- package/core/elements/paddingModel.js +2 -2
- package/core/elements/paddingModelMetaData.d.ts +2 -2
- package/core/elements/paddingModelMetaData.js +2 -2
- package/core/elements/point.d.ts +2 -2
- package/core/elements/point.js +2 -2
- package/core/elements/rectangle.d.ts +2 -2
- package/core/elements/rectangle.js +2 -2
- package/core/elements/serializableModel.d.ts +2 -2
- package/core/elements/serializableModel.js +2 -2
- package/core/elements/size.d.ts +2 -2
- package/core/elements/size.js +2 -2
- package/core/internal/_ajaxSetup.d.ts +2 -2
- package/core/internal/_ajaxSetup.js +2 -2
- package/core/internal/_controlsHelper.d.ts +2 -2
- package/core/internal/_controlsHelper.js +2 -2
- package/core/internal/_cssCalculator.d.ts +2 -2
- package/core/internal/_cssCalculator.js +2 -2
- package/core/internal/_editorTypeMapper.d.ts +2 -2
- package/core/internal/_editorTypeMapper.js +2 -2
- package/core/internal/_getNameHelpers.d.ts +3 -3
- package/core/internal/_getNameHelpers.js +2 -2
- package/core/internal/_globalize.d.ts +2 -2
- package/core/internal/_globalize.js +2 -2
- package/core/internal/_hoverInfo.d.ts +2 -2
- package/core/internal/_hoverInfo.js +2 -2
- package/core/internal/_inlineTextEdit.d.ts +2 -2
- package/core/internal/_inlineTextEdit.js +2 -2
- package/core/internal/_objectStructureControllers.d.ts +2 -2
- package/core/internal/_objectStructureControllers.js +2 -2
- package/core/internal/_objectStructureProviders.d.ts +2 -2
- package/core/internal/_objectStructureProviders.js +2 -2
- package/core/internal/_papperKindMapper.d.ts +2 -2
- package/core/internal/_papperKindMapper.js +2 -2
- package/core/internal/_processError.d.ts +2 -2
- package/core/internal/_processError.js +2 -2
- package/core/internal/_resizable.d.ts +2 -2
- package/core/internal/_resizable.js +2 -2
- package/core/internal/_scrollProcessor.d.ts +2 -2
- package/core/internal/_scrollProcessor.js +2 -2
- package/core/internal/_stores.d.ts +4 -4
- package/core/internal/_stores.js +7 -9
- package/core/internal/_surfaceHelpers.d.ts +3 -3
- package/core/internal/_surfaceHelpers.js +2 -2
- package/core/internal/_utils.d.ts +2 -2
- package/core/internal/_utils.js +2 -2
- package/core/internal/_validation.d.ts +2 -2
- package/core/internal/_validation.js +2 -2
- package/core/internal/ajaxSetup.d.ts +2 -2
- package/core/internal/ajaxSetup.js +2 -2
- package/core/internal/dx-versions.d.ts +2 -2
- package/core/internal/dx-versions.js +2 -2
- package/core/selection/_combinedObj.d.ts +2 -2
- package/core/selection/_combinedObj.js +2 -2
- package/core/selection/_selection.d.ts +17 -17
- package/core/selection/_selection.js +2 -2
- package/core/selection/_selectionHelpers.d.ts +2 -2
- package/core/selection/_selectionHelpers.js +2 -2
- package/core/snapLines/_snapLineSurface.d.ts +2 -2
- package/core/snapLines/_snapLineSurface.js +2 -2
- package/core/snapLines/_snapLinesCollector.d.ts +2 -2
- package/core/snapLines/_snapLinesCollector.js +2 -2
- package/core/snapLines/_snapLinesHelper.d.ts +2 -2
- package/core/snapLines/_snapLinesHelper.js +2 -2
- package/core/tools/_actionList.d.ts +2 -2
- package/core/tools/_actionList.js +2 -2
- package/core/tools/_copyPaste.d.ts +2 -2
- package/core/tools/_copyPaste.js +2 -2
- package/core/tools/_keyboardHelper.d.ts +2 -2
- package/core/tools/_keyboardHelper.js +2 -2
- package/core/tools/_tabInfoWithPropertyGrid.d.ts +2 -2
- package/core/tools/_tabInfoWithPropertyGrid.js +2 -2
- package/core/tools/actionId.d.ts +2 -2
- package/core/tools/actionId.js +2 -2
- package/core/tools/tabPanel.d.ts +2 -2
- package/core/tools/tabPanel.js +2 -2
- package/core/tools/toolbox.d.ts +2 -2
- package/core/tools/toolbox.js +2 -2
- package/core/utils/_arrayutils.d.ts +2 -2
- package/core/utils/_arrayutils.js +2 -2
- package/core/utils/_debug.d.ts +2 -2
- package/core/utils/_debug.js +2 -2
- package/core/utils/_designerCreator.d.ts +15 -15
- package/core/utils/_designerCreator.js +17 -17
- package/core/utils/_designerInitializer.d.ts +2 -2
- package/core/utils/_designerInitializer.js +2 -2
- package/core/utils/_fieldListProvider.d.ts +2 -2
- package/core/utils/_fieldListProvider.js +2 -2
- package/core/utils/_infoMessageHelpers.d.ts +2 -2
- package/core/utils/_infoMessageHelpers.js +2 -2
- package/core/utils/_units.d.ts +2 -2
- package/core/utils/_units.js +2 -2
- package/core/utils/_utils.d.ts +2 -2
- package/core/utils/_utils.js +2 -2
- package/core/utils/_visitors.d.ts +2 -2
- package/core/utils/_visitors.js +2 -2
- package/core/utils/controlsFactory.d.ts +12 -10
- package/core/utils/controlsFactory.js +11 -5
- package/core/utils/parsers.d.ts +2 -2
- package/core/utils/parsers.js +2 -2
- package/core/widgets/_buttonInlineEditor.d.ts +2 -2
- package/core/widgets/_buttonInlineEditor.js +2 -2
- package/core/widgets/_dataMemberEditor.d.ts +2 -2
- package/core/widgets/_dataMemberEditor.js +2 -2
- package/core/widgets/_fieldlistpicker.d.ts +3 -3
- package/core/widgets/_fieldlistpicker.js +5 -5
- package/core/widgets/_popupEditorBase.d.ts +2 -2
- package/core/widgets/_popupEditorBase.js +2 -2
- package/core/widgets/_requiredNullableEditor.d.ts +2 -2
- package/core/widgets/_requiredNullableEditor.js +2 -2
- package/core/widgets/bordereditor/_binding.d.ts +2 -2
- package/core/widgets/bordereditor/_binding.js +2 -2
- package/core/widgets/bordereditor/_bordereditor.d.ts +2 -2
- package/core/widgets/bordereditor/_bordereditor.js +2 -2
- package/core/widgets/colorPickerEditor.d.ts +2 -2
- package/core/widgets/colorPickerEditor.js +2 -2
- package/core/widgets/dataMemberEditor.d.ts +2 -2
- package/core/widgets/dataMemberEditor.js +2 -2
- package/core/widgets/fieldListEditor.d.ts +2 -2
- package/core/widgets/fieldListEditor.js +2 -2
- package/core/widgets/propertygrid/_controlProperties.d.ts +2 -2
- package/core/widgets/propertygrid/_controlProperties.js +2 -2
- package/core/widgets/propertygrid/_group.d.ts +2 -2
- package/core/widgets/propertygrid/_group.js +2 -2
- package/core/widgets/registerDesignerEditors.d.ts +2 -2
- package/core/widgets/registerDesignerEditors.js +2 -2
- package/core/widgets/textAlignmentEditor/_binding.d.ts +2 -2
- package/core/widgets/textAlignmentEditor/_binding.js +2 -2
- package/core/widgets/textAlignmentEditor/_textAlignmentEditor.d.ts +2 -2
- package/core/widgets/textAlignmentEditor/_textAlignmentEditor.js +2 -2
- package/diagram/_legacy.d.ts +2 -2
- package/diagram/_legacy.js +2 -2
- package/diagram/bindings.d.ts +2 -2
- package/diagram/bindings.js +2 -2
- package/diagram/controlRegistrator.d.ts +2 -2
- package/diagram/controlRegistrator.js +2 -2
- package/diagram/controlsFactory.d.ts +3 -3
- package/diagram/controlsFactory.js +2 -2
- package/diagram/dragDrop/connectingPointDragHandler.d.ts +2 -2
- package/diagram/dragDrop/connectingPointDragHandler.js +2 -2
- package/diagram/dragDrop/connectionPointDragHandler.d.ts +2 -2
- package/diagram/dragDrop/connectionPointDragHandler.js +2 -2
- package/diagram/elements/connectingPointModel.d.ts +2 -2
- package/diagram/elements/connectingPointModel.js +2 -2
- package/diagram/elements/connectingPointSurface.d.ts +2 -2
- package/diagram/elements/connectingPointSurface.js +2 -2
- package/diagram/elements/connectors/connectionPointModel.d.ts +2 -2
- package/diagram/elements/connectors/connectionPointModel.js +2 -2
- package/diagram/elements/connectors/connectionPointSurface.d.ts +2 -2
- package/diagram/elements/connectors/connectionPointSurface.js +2 -2
- package/diagram/elements/connectors/connectorModel.d.ts +2 -2
- package/diagram/elements/connectors/connectorModel.js +2 -2
- package/diagram/elements/connectors/connectorSurface.d.ts +2 -2
- package/diagram/elements/connectors/connectorSurface.js +2 -2
- package/diagram/elements/connectors/routedConnectorModel.d.ts +2 -2
- package/diagram/elements/connectors/routedConnectorModel.js +2 -2
- package/diagram/elements/connectors/routedConnectorSurface.d.ts +2 -2
- package/diagram/elements/connectors/routedConnectorSurface.js +2 -2
- package/diagram/elements/diagramElementBaseSurface.d.ts +2 -2
- package/diagram/elements/diagramElementBaseSurface.js +2 -2
- package/diagram/elements/diagramElementBaseViewModel.d.ts +2 -2
- package/diagram/elements/diagramElementBaseViewModel.js +2 -2
- package/diagram/elements/diagramElementSurface.d.ts +2 -2
- package/diagram/elements/diagramElementSurface.js +2 -2
- package/diagram/elements/diagramElementViewModel.d.ts +2 -2
- package/diagram/elements/diagramElementViewModel.js +2 -2
- package/diagram/elements/diagramModel.d.ts +2 -2
- package/diagram/elements/diagramModel.js +2 -2
- package/diagram/elements/diagramSurface.d.ts +2 -2
- package/diagram/elements/diagramSurface.js +2 -2
- package/diagram/initializer.d.ts +2 -2
- package/diagram/initializer.js +2 -2
- package/diagram/metadata.d.ts +2 -2
- package/diagram/metadata.js +2 -2
- package/diagram/utils.d.ts +2 -2
- package/diagram/utils.js +2 -2
- package/dist/css/dx-analytics.carmine.compact.css +2 -2
- package/dist/css/dx-analytics.carmine.css +2 -2
- package/dist/css/dx-analytics.common.css +5 -5
- package/dist/css/dx-analytics.contrast.compact.css +2 -2
- package/dist/css/dx-analytics.contrast.css +2 -2
- package/dist/css/dx-analytics.dark.compact.css +2 -2
- package/dist/css/dx-analytics.dark.css +2 -2
- package/dist/css/dx-analytics.darkmoon.compact.css +2 -2
- package/dist/css/dx-analytics.darkmoon.css +2 -2
- package/dist/css/dx-analytics.darkviolet.compact.css +2 -2
- package/dist/css/dx-analytics.darkviolet.css +2 -2
- package/dist/css/dx-analytics.greenmist.compact.css +2 -2
- package/dist/css/dx-analytics.greenmist.css +2 -2
- package/dist/css/dx-analytics.light.compact.css +2 -2
- package/dist/css/dx-analytics.light.css +2 -2
- package/dist/css/dx-analytics.material.blue.dark.compact.css +97 -46
- package/dist/css/dx-analytics.material.blue.dark.css +97 -46
- package/dist/css/dx-analytics.material.blue.light.compact.css +97 -46
- package/dist/css/dx-analytics.material.blue.light.css +97 -46
- package/dist/css/dx-analytics.material.lime.dark.compact.css +97 -46
- package/dist/css/dx-analytics.material.lime.dark.css +97 -46
- package/dist/css/dx-analytics.material.lime.light.compact.css +97 -46
- package/dist/css/dx-analytics.material.lime.light.css +97 -46
- package/dist/css/dx-analytics.material.orange.dark.compact.css +97 -46
- package/dist/css/dx-analytics.material.orange.dark.css +97 -46
- package/dist/css/dx-analytics.material.orange.light.compact.css +97 -46
- package/dist/css/dx-analytics.material.orange.light.css +97 -46
- package/dist/css/dx-analytics.material.purple.dark.compact.css +97 -46
- package/dist/css/dx-analytics.material.purple.dark.css +97 -46
- package/dist/css/dx-analytics.material.purple.light.compact.css +97 -46
- package/dist/css/dx-analytics.material.purple.light.css +97 -46
- package/dist/css/dx-analytics.material.teal.dark.compact.css +97 -46
- package/dist/css/dx-analytics.material.teal.dark.css +97 -46
- package/dist/css/dx-analytics.material.teal.light.compact.css +97 -46
- package/dist/css/dx-analytics.material.teal.light.css +97 -46
- package/dist/css/dx-analytics.softblue.compact.css +2 -2
- package/dist/css/dx-analytics.softblue.css +2 -2
- package/dist/css/dx-querybuilder.css +10 -4
- package/dist/js/dx-analytics-core.d.ts +2237 -2219
- package/dist/js/dx-analytics-core.js +598 -592
- package/dist/js/dx-analytics-core.min.js +3 -3
- package/dist/js/dx-querybuilder.js +1727 -1701
- package/dist/js/dx-querybuilder.min.js +3 -3
- package/dx-analytics-core-imports.d.ts +2 -2
- package/dx-analytics-core-imports.js +2 -2
- package/dx-analytics-core-svg-templates.d.ts +2 -2
- package/dx-analytics-core-svg-templates.js +2 -2
- package/dx-analytics-core-templates.d.ts +2 -2
- package/dx-analytics-core-templates.js +5 -5
- package/dx-analytics-core.d.ts +2 -2
- package/dx-analytics-core.js +2 -2
- package/dx-query-builder-templates.d.ts +2 -2
- package/dx-query-builder-templates.js +6 -6
- package/dx-querybuilder-imports.d.ts +2 -2
- package/dx-querybuilder-imports.js +2 -2
- package/dx-querybuilder.d.ts +2 -2
- package/dx-querybuilder.js +2 -2
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/less/dx-material.fix-style.less +122 -66
- package/package.json +2 -2
- package/property-grid/_legacy.d.ts +2 -2
- package/property-grid/_legacy.js +2 -2
- package/property-grid/_propertiesAccessibilityProvider.d.ts +2 -2
- package/property-grid/_propertiesAccessibilityProvider.js +2 -2
- package/property-grid/bindings.d.ts +2 -2
- package/property-grid/bindings.js +2 -2
- package/property-grid/internal/_addon.d.ts +2 -2
- package/property-grid/internal/_addon.js +2 -2
- package/property-grid/internal/_codeResolver.d.ts +2 -2
- package/property-grid/internal/_codeResolver.js +2 -2
- package/property-grid/internal/_popupService.d.ts +2 -2
- package/property-grid/internal/_popupService.js +2 -2
- package/property-grid/localization/_localization.d.ts +2 -2
- package/property-grid/localization/_localization.js +2 -2
- package/property-grid/localization/_localizationStringIds.d.ts +2 -2
- package/property-grid/localization/_localizationStringIds.js +2 -2
- package/property-grid/localization/localization.d.ts +2 -2
- package/property-grid/localization/localization.js +2 -2
- package/property-grid/localization/localization_utils.d.ts +2 -2
- package/property-grid/localization/localization_utils.js +2 -2
- package/property-grid/propertygrid.d.ts +2 -2
- package/property-grid/propertygrid.js +2 -2
- package/property-grid/widgets/collectioneditor/_bindings.d.ts +2 -2
- package/property-grid/widgets/collectioneditor/_bindings.js +2 -2
- package/property-grid/widgets/collectioneditor/_editor.d.ts +2 -2
- package/property-grid/widgets/collectioneditor/_editor.js +2 -2
- package/property-grid/widgets/editor.d.ts +2 -2
- package/property-grid/widgets/editor.js +2 -2
- package/property-grid/widgets/editorValidator.d.ts +2 -2
- package/property-grid/widgets/editorValidator.js +2 -2
- package/property-grid/widgets/editorsInfo.d.ts +2 -2
- package/property-grid/widgets/editorsInfo.js +2 -2
- package/property-grid/widgets/ellipsiseditor/_editor.d.ts +2 -2
- package/property-grid/widgets/ellipsiseditor/_editor.js +2 -2
- package/property-grid/widgets/fileimageeditor/_editor.d.ts +2 -2
- package/property-grid/widgets/fileimageeditor/_editor.js +2 -2
- package/property-grid/widgets/fonteditor/_fonts.d.ts +2 -2
- package/property-grid/widgets/fonteditor/_fonts.js +2 -2
- package/property-grid/widgets/fonteditor/_model.d.ts +2 -2
- package/property-grid/widgets/fonteditor/_model.js +2 -2
- package/property-grid/widgets/fonteditor/editor.d.ts +2 -2
- package/property-grid/widgets/fonteditor/editor.js +2 -2
- package/property-grid/widgets/fonteditor/metadata.d.ts +2 -2
- package/property-grid/widgets/fonteditor/metadata.js +2 -2
- package/property-grid/widgets/guideditor.d.ts +2 -2
- package/property-grid/widgets/guideditor.js +2 -2
- package/property-grid/widgets/internal/_extendedSvgTemplates.d.ts +2 -2
- package/property-grid/widgets/internal/_extendedSvgTemplates.js +2 -2
- package/property-grid/widgets/internal/_internal.d.ts +2 -2
- package/property-grid/widgets/internal/_internal.js +2 -2
- package/property-grid/widgets/internal/_svgTemplateEngine.d.ts +2 -2
- package/property-grid/widgets/internal/_svgTemplateEngine.js +2 -2
- package/property-grid/widgets/internal/_utils.d.ts +2 -2
- package/property-grid/widgets/internal/_utils.js +2 -2
- package/property-grid/widgets/registerBaseEdtior.d.ts +2 -2
- package/property-grid/widgets/registerBaseEdtior.js +2 -2
- package/property-grid/widgets/templateUtils.d.ts +2 -2
- package/property-grid/widgets/templateUtils.js +2 -2
- package/query-builder/_accordionTabInfo.d.ts +2 -2
- package/query-builder/_accordionTabInfo.js +2 -2
- package/query-builder/_bindings.d.ts +2 -2
- package/query-builder/_bindings.js +2 -2
- package/query-builder/_initializer.d.ts +2 -2
- package/query-builder/_initializer.js +2 -2
- package/query-builder/_legacy.d.ts +2 -2
- package/query-builder/_legacy.js +2 -2
- package/query-builder/_queryBuilderModel.d.ts +2 -2
- package/query-builder/_queryBuilderModel.js +2 -2
- package/query-builder/binding/eventGenerator.d.ts +2 -2
- package/query-builder/binding/eventGenerator.js +2 -2
- package/query-builder/binding/jsQueryBuilder.d.ts +2 -2
- package/query-builder/binding/jsQueryBuilder.js +2 -2
- package/query-builder/binding/jsQueryBuilderBinding.d.ts +2 -2
- package/query-builder/binding/jsQueryBuilderBinding.js +2 -2
- package/query-builder/binding/jsQueryBuilderBindingOptions.d.ts +2 -2
- package/query-builder/binding/jsQueryBuilderBindingOptions.js +2 -2
- package/query-builder/dataSource/_dbSchema.d.ts +2 -2
- package/query-builder/dataSource/_dbSchema.js +2 -2
- package/query-builder/dataSource/_dbSchemaProvider.d.ts +2 -2
- package/query-builder/dataSource/_dbSchemaProvider.js +2 -2
- package/query-builder/dataSource/_utils.d.ts +2 -2
- package/query-builder/dataSource/_utils.js +2 -2
- package/query-builder/dataSource/dataSourceParameter.d.ts +2 -2
- package/query-builder/dataSource/dataSourceParameter.js +2 -2
- package/query-builder/dataSource/dataSourceParameterMeta.d.ts +2 -2
- package/query-builder/dataSource/dataSourceParameterMeta.js +2 -2
- package/query-builder/dataSource/dbColumn.d.ts +2 -2
- package/query-builder/dataSource/dbColumn.js +2 -2
- package/query-builder/dataSource/dbForeignKey.d.ts +2 -2
- package/query-builder/dataSource/dbForeignKey.js +2 -2
- package/query-builder/dataSource/dbSchema.d.ts +2 -2
- package/query-builder/dataSource/dbSchema.js +2 -2
- package/query-builder/dataSource/dbSchemaProvider.d.ts +2 -2
- package/query-builder/dataSource/dbSchemaProvider.js +2 -2
- package/query-builder/dataSource/dbStoredProcedure.d.ts +2 -2
- package/query-builder/dataSource/dbStoredProcedure.js +2 -2
- package/query-builder/dataSource/dbTable.d.ts +2 -2
- package/query-builder/dataSource/dbTable.js +2 -2
- package/query-builder/dataSource/federation/_dbSchemaFederationDataSourceProvider.d.ts +2 -2
- package/query-builder/dataSource/federation/_dbSchemaFederationDataSourceProvider.js +2 -2
- package/query-builder/dataSource/federation/federatedQueries/selectQuery.d.ts +7 -7
- package/query-builder/dataSource/federation/federatedQueries/selectQuery.js +12 -12
- package/query-builder/dataSource/federation/federatedQueries/sourceQuery.d.ts +2 -2
- package/query-builder/dataSource/federation/federatedQueries/sourceQuery.js +2 -2
- package/query-builder/dataSource/federation/federatedQueries/subNode.d.ts +2 -2
- package/query-builder/dataSource/federation/federatedQueries/subNode.js +9 -9
- package/query-builder/dataSource/federation/federatedQueries/transformQuery.d.ts +2 -2
- package/query-builder/dataSource/federation/federatedQueries/transformQuery.js +2 -2
- package/query-builder/dataSource/federation/federatedQueries/unionQuery.d.ts +2 -2
- package/query-builder/dataSource/federation/federatedQueries/unionQuery.js +2 -2
- package/query-builder/dataSource/federation/federatedQueriesContainer.d.ts +2 -2
- package/query-builder/dataSource/federation/federatedQueriesContainer.js +2 -2
- package/query-builder/dataSource/federation/federatedQueryExpression.d.ts +2 -2
- package/query-builder/dataSource/federation/federatedQueryExpression.js +2 -2
- package/query-builder/dataSource/federation/federationDataSource.d.ts +9 -11
- package/query-builder/dataSource/federation/federationDataSource.js +8 -8
- package/query-builder/dataSource/federation/federationDataSourceMeta.d.ts +2 -2
- package/query-builder/dataSource/federation/federationDataSourceMeta.js +2 -2
- package/query-builder/dataSource/federation/federationMasterDetailRelation.d.ts +2 -2
- package/query-builder/dataSource/federation/federationMasterDetailRelation.js +2 -2
- package/query-builder/dataSource/federation/federationSerializableModel.d.ts +2 -2
- package/query-builder/dataSource/federation/federationSerializableModel.js +4 -3
- package/query-builder/dataSource/federation/federationSource.d.ts +2 -2
- package/query-builder/dataSource/federation/federationSource.js +5 -5
- package/query-builder/dataSource/json/_jsonSchemaProvider.d.ts +2 -2
- package/query-builder/dataSource/json/_jsonSchemaProvider.js +2 -2
- package/query-builder/dataSource/json/jsonAuthenticationInfo.d.ts +2 -2
- package/query-builder/dataSource/json/jsonAuthenticationInfo.js +2 -2
- package/query-builder/dataSource/json/jsonDataSource.d.ts +2 -2
- package/query-builder/dataSource/json/jsonDataSource.js +2 -2
- package/query-builder/dataSource/json/jsonParameter.d.ts +2 -2
- package/query-builder/dataSource/json/jsonParameter.js +2 -2
- package/query-builder/dataSource/json/jsonSchemaNode.d.ts +2 -2
- package/query-builder/dataSource/json/jsonSchemaNode.js +2 -2
- package/query-builder/dataSource/json/jsonSchemaProvider.d.ts +2 -2
- package/query-builder/dataSource/json/jsonSchemaProvider.js +2 -2
- package/query-builder/dataSource/json/jsonSource.d.ts +2 -2
- package/query-builder/dataSource/json/jsonSource.js +2 -2
- package/query-builder/dataSource/object/objectDataSource.d.ts +2 -2
- package/query-builder/dataSource/object/objectDataSource.js +2 -2
- package/query-builder/dataSource/object/objectSchema.d.ts +2 -2
- package/query-builder/dataSource/object/objectSchema.js +2 -2
- package/query-builder/dataSource/resultSet.d.ts +2 -2
- package/query-builder/dataSource/resultSet.js +2 -2
- package/query-builder/dataSource/resultTable.d.ts +2 -2
- package/query-builder/dataSource/resultTable.js +2 -2
- package/query-builder/dataSource/sql/connectionOptions.d.ts +2 -2
- package/query-builder/dataSource/sql/connectionOptions.js +2 -2
- package/query-builder/dataSource/sql/customSqlQuery.d.ts +2 -2
- package/query-builder/dataSource/sql/customSqlQuery.js +2 -2
- package/query-builder/dataSource/sql/customSqlQueryMeta.d.ts +2 -2
- package/query-builder/dataSource/sql/customSqlQueryMeta.js +2 -2
- package/query-builder/dataSource/sql/masterDetailRelation.d.ts +2 -2
- package/query-builder/dataSource/sql/masterDetailRelation.js +2 -2
- package/query-builder/dataSource/sql/masterDetailRelationMeta.d.ts +2 -2
- package/query-builder/dataSource/sql/masterDetailRelationMeta.js +2 -2
- package/query-builder/dataSource/sql/sqlDataConnection.d.ts +2 -2
- package/query-builder/dataSource/sql/sqlDataConnection.js +2 -2
- package/query-builder/dataSource/sql/sqlDataSource.d.ts +2 -2
- package/query-builder/dataSource/sql/sqlDataSource.js +2 -2
- package/query-builder/dataSource/sql/storedProcQuery.d.ts +2 -2
- package/query-builder/dataSource/sql/storedProcQuery.js +2 -2
- package/query-builder/dataSource/sql/storedProcQueryMeta.d.ts +2 -2
- package/query-builder/dataSource/sql/storedProcQueryMeta.js +2 -2
- package/query-builder/dataSource/sql/tableQuery.d.ts +2 -2
- package/query-builder/dataSource/sql/tableQuery.js +2 -2
- package/query-builder/dataSource/sql/tableQueryMeta.d.ts +2 -2
- package/query-builder/dataSource/sql/tableQueryMeta.js +2 -2
- package/query-builder/dataSource/utils.d.ts +2 -2
- package/query-builder/dataSource/utils.js +2 -2
- package/query-builder/dragDrop/_columnDragHandler.d.ts +2 -2
- package/query-builder/dragDrop/_columnDragHandler.js +2 -2
- package/query-builder/dragDrop/_dbObjectDragDropHandler.d.ts +2 -2
- package/query-builder/dragDrop/_dbObjectDragDropHandler.js +2 -2
- package/query-builder/elements/_federationColumnModel.d.ts +2 -2
- package/query-builder/elements/_federationColumnModel.js +2 -2
- package/query-builder/elements/_federationQueryModel.d.ts +6 -6
- package/query-builder/elements/_federationQueryModel.js +7 -7
- package/query-builder/elements/allColumnsModel.d.ts +2 -2
- package/query-builder/elements/allColumnsModel.js +2 -2
- package/query-builder/elements/allColumnsModelMeta.d.ts +2 -2
- package/query-builder/elements/allColumnsModelMeta.js +2 -2
- package/query-builder/elements/allColumnsSurface.d.ts +2 -2
- package/query-builder/elements/allColumnsSurface.js +2 -2
- package/query-builder/elements/columnExpression.d.ts +2 -2
- package/query-builder/elements/columnExpression.js +2 -2
- package/query-builder/elements/columnExpressionMeta.d.ts +2 -2
- package/query-builder/elements/columnExpressionMeta.js +2 -2
- package/query-builder/elements/columnModel.d.ts +2 -2
- package/query-builder/elements/columnModel.js +2 -2
- package/query-builder/elements/columnModelMeta.d.ts +2 -2
- package/query-builder/elements/columnModelMeta.js +2 -2
- package/query-builder/elements/columnSurface.d.ts +2 -2
- package/query-builder/elements/columnSurface.js +2 -2
- package/query-builder/elements/joinConditionModel.d.ts +2 -2
- package/query-builder/elements/joinConditionModel.js +2 -2
- package/query-builder/elements/joinConditionModelMeta.d.ts +2 -2
- package/query-builder/elements/joinConditionModelMeta.js +2 -2
- package/query-builder/elements/joinConditionSurface.d.ts +2 -2
- package/query-builder/elements/joinConditionSurface.js +2 -2
- package/query-builder/elements/parameterModel.d.ts +2 -2
- package/query-builder/elements/parameterModel.js +2 -2
- package/query-builder/elements/parameterModelMeta.d.ts +2 -2
- package/query-builder/elements/parameterModelMeta.js +2 -2
- package/query-builder/elements/queryElementModel.d.ts +2 -2
- package/query-builder/elements/queryElementModel.js +2 -2
- package/query-builder/elements/queryElementSurface.d.ts +2 -2
- package/query-builder/elements/queryElementSurface.js +2 -2
- package/query-builder/elements/queryModel.d.ts +2 -2
- package/query-builder/elements/queryModel.js +2 -2
- package/query-builder/elements/queryModelMeta.d.ts +2 -2
- package/query-builder/elements/queryModelMeta.js +2 -2
- package/query-builder/elements/querySurface.d.ts +2 -2
- package/query-builder/elements/querySurface.js +2 -2
- package/query-builder/elements/relationModel.d.ts +2 -2
- package/query-builder/elements/relationModel.js +2 -2
- package/query-builder/elements/relationModelMeta.d.ts +2 -2
- package/query-builder/elements/relationModelMeta.js +2 -2
- package/query-builder/elements/relationSurface.d.ts +2 -2
- package/query-builder/elements/relationSurface.js +2 -2
- package/query-builder/elements/tableModel.d.ts +2 -2
- package/query-builder/elements/tableModel.js +2 -2
- package/query-builder/elements/tableModelMeta.d.ts +2 -2
- package/query-builder/elements/tableModelMeta.js +2 -2
- package/query-builder/elements/tableSurface.d.ts +2 -2
- package/query-builder/elements/tableSurface.js +2 -2
- package/query-builder/initializer.d.ts +2 -2
- package/query-builder/initializer.js +2 -2
- package/query-builder/metadata.d.ts +2 -2
- package/query-builder/metadata.js +2 -2
- package/query-builder/utils/_callbacks.d.ts +2 -2
- package/query-builder/utils/_callbacks.js +2 -2
- package/query-builder/utils/_columnExpressionCollectionHelper.d.ts +2 -2
- package/query-builder/utils/_columnExpressionCollectionHelper.js +2 -2
- package/query-builder/utils/_controlsFactory.d.ts +2 -2
- package/query-builder/utils/_controlsFactory.js +2 -2
- package/query-builder/utils/_dataConnection.d.ts +2 -2
- package/query-builder/utils/_dataConnection.js +2 -2
- package/query-builder/utils/_federationUnionQueryBuilderTreeListController.d.ts +2 -2
- package/query-builder/utils/_federationUnionQueryBuilderTreeListController.js +2 -2
- package/query-builder/utils/_queryBuilderTreeListController.d.ts +2 -2
- package/query-builder/utils/_queryBuilderTreeListController.js +2 -2
- package/query-builder/utils/_requestwrapper.d.ts +2 -2
- package/query-builder/utils/_requestwrapper.js +2 -2
- package/query-builder/utils/controlsFactory.d.ts +3 -3
- package/query-builder/utils/controlsFactory.js +2 -2
- package/query-builder/utils/requestwrapper.d.ts +2 -2
- package/query-builder/utils/requestwrapper.js +2 -2
- package/query-builder/widgets/_federatedQueriesHelper.d.ts +3 -3
- package/query-builder/widgets/_federatedQueriesHelper.js +16 -9
- package/query-builder/widgets/_manageFederatedQueriesEditor.d.ts +4 -3
- package/query-builder/widgets/_manageFederatedQueriesEditor.js +7 -3
- package/query-builder/widgets/_rightPanelSwitcher.d.ts +2 -2
- package/query-builder/widgets/_rightPanelSwitcher.js +2 -2
- package/query-builder/widgets/_undoEditor.d.ts +2 -2
- package/query-builder/widgets/_undoEditor.js +2 -2
- package/query-builder/widgets/ace/_ace-mode-sql.d.ts +2 -2
- package/query-builder/widgets/ace/_ace-mode-sql.js +2 -2
- package/query-builder/widgets/ace/_options.d.ts +2 -2
- package/query-builder/widgets/ace/_options.js +2 -2
- package/query-builder/widgets/editorTemplates.d.ts +2 -2
- package/query-builder/widgets/editorTemplates.js +2 -2
- package/query-builder/widgets/expressionFunctions.d.ts +2 -2
- package/query-builder/widgets/expressionFunctions.js +2 -2
- package/query-builder/widgets/filterEditor/_groupFilterEditorSerializer.d.ts +2 -2
- package/query-builder/widgets/filterEditor/_groupFilterEditorSerializer.js +2 -2
- package/query-builder/widgets/filterEditor/_operandParameterQBSurface.d.ts +2 -2
- package/query-builder/widgets/filterEditor/_operandParameterQBSurface.js +2 -2
- package/query-builder/widgets/filterEditor/_operandPropertyQBSurface.d.ts +2 -2
- package/query-builder/widgets/filterEditor/_operandPropertyQBSurface.js +2 -2
- package/query-builder/widgets/filterEditor/_qbFilterEditorHelper.d.ts +2 -2
- package/query-builder/widgets/filterEditor/_qbFilterEditorHelper.js +2 -2
- package/query-builder/widgets/filterEditor/_qbFilterStringOptions.d.ts +2 -2
- package/query-builder/widgets/filterEditor/_qbFilterStringOptions.js +2 -2
- package/query-builder/widgets/filterEditor/_queryBuilderObjectsProvider.d.ts +2 -2
- package/query-builder/widgets/filterEditor/_queryBuilderObjectsProvider.js +2 -2
- package/query-builder/widgets/masterdetaileditor/_keyColumnSurface.d.ts +2 -2
- package/query-builder/widgets/masterdetaileditor/_keyColumnSurface.js +2 -2
- package/query-builder/widgets/masterdetaileditor/_masterDetailEditor.d.ts +2 -2
- package/query-builder/widgets/masterdetaileditor/_masterDetailEditor.js +2 -2
- package/query-builder/widgets/masterdetaileditor/_masterDetailEditorPopupManager.d.ts +2 -2
- package/query-builder/widgets/masterdetaileditor/_masterDetailEditorPopupManager.js +2 -2
- package/query-builder/widgets/masterdetaileditor/_masterDetailRelationSurface.d.ts +2 -2
- package/query-builder/widgets/masterdetaileditor/_masterDetailRelationSurface.js +2 -2
- package/query-builder/widgets/masterdetaileditor/_masterQuerySurface.d.ts +2 -2
- package/query-builder/widgets/masterdetaileditor/_masterQuerySurface.js +2 -2
- package/query-builder/widgets/registerEditorTemplates.d.ts +2 -2
- package/query-builder/widgets/registerEditorTemplates.js +2 -2
- package/query-builder/wizard/chooseAvailablePage.d.ts +2 -2
- package/query-builder/wizard/chooseAvailablePage.js +2 -2
- package/query-builder/wizard/dataSourceWizard.d.ts +9 -9
- package/query-builder/wizard/dataSourceWizard.js +10 -10
- package/query-builder/wizard/dataSourceWizardState.d.ts +2 -2
- package/query-builder/wizard/dataSourceWizardState.js +2 -2
- package/query-builder/wizard/fullscreen/fullscreenMultiQueryDataSourceWizard.d.ts +5 -6
- package/query-builder/wizard/fullscreen/fullscreenMultiQueryDataSourceWizard.js +9 -14
- package/query-builder/wizard/fullscreen/fullscreenWizard.d.ts +2 -2
- package/query-builder/wizard/fullscreen/fullscreenWizard.js +2 -2
- package/query-builder/wizard/fullscreen/fullscreenWizardNavigation.d.ts +2 -2
- package/query-builder/wizard/fullscreen/fullscreenWizardNavigation.js +2 -2
- package/query-builder/wizard/fullscreen/fullscreenWizardPageFactory.d.ts +2 -2
- package/query-builder/wizard/fullscreen/fullscreenWizardPageFactory.js +2 -2
- package/query-builder/wizard/fullscreen/pages/fullscreenWizardPage.d.ts +2 -2
- package/query-builder/wizard/fullscreen/pages/fullscreenWizardPage.js +2 -2
- package/query-builder/wizard/fullscreen/pages/specifyFederationDataSourceSettingsPage.d.ts +2 -2
- package/query-builder/wizard/fullscreen/pages/specifyFederationDataSourceSettingsPage.js +2 -2
- package/query-builder/wizard/fullscreen/pages/specifyJsonDataSourceSettingsPage.d.ts +2 -2
- package/query-builder/wizard/fullscreen/pages/specifyJsonDataSourceSettingsPage.js +2 -2
- package/query-builder/wizard/fullscreen/pages/specifyObjectDataSourceSettingsPage.d.ts +2 -2
- package/query-builder/wizard/fullscreen/pages/specifyObjectDataSourceSettingsPage.js +2 -2
- package/query-builder/wizard/fullscreen/pages/specifySqlDataSourceSettingsPage.d.ts +2 -2
- package/query-builder/wizard/fullscreen/pages/specifySqlDataSourceSettingsPage.js +2 -2
- package/query-builder/wizard/internal/_configureParametersUtils.d.ts +2 -2
- package/query-builder/wizard/internal/_configureParametersUtils.js +2 -2
- package/query-builder/wizard/internal/_constants.d.ts +2 -2
- package/query-builder/wizard/internal/_constants.js +2 -2
- package/query-builder/wizard/internal/_dbSchemaItemsProvider.d.ts +2 -2
- package/query-builder/wizard/internal/_dbSchemaItemsProvider.js +2 -2
- package/query-builder/wizard/internal/_dbSchemaTreeListController.d.ts +2 -2
- package/query-builder/wizard/internal/_dbSchemaTreeListController.js +2 -2
- package/query-builder/wizard/internal/_jsonDataSourceWidgets.d.ts +2 -2
- package/query-builder/wizard/internal/_jsonDataSourceWidgets.js +2 -2
- package/query-builder/wizard/internal/_jsonSourceSettings.d.ts +2 -2
- package/query-builder/wizard/internal/_jsonSourceSettings.js +2 -2
- package/query-builder/wizard/internal/_jsonTreeNodeItemsProvider.d.ts +2 -2
- package/query-builder/wizard/internal/_jsonTreeNodeItemsProvider.js +2 -2
- package/query-builder/wizard/internal/_queryBuilderPopup.d.ts +2 -2
- package/query-builder/wizard/internal/_queryBuilderPopup.js +2 -2
- package/query-builder/wizard/internal/_selectQuerySqlTextProvider.d.ts +2 -2
- package/query-builder/wizard/internal/_selectQuerySqlTextProvider.js +2 -2
- package/query-builder/wizard/internal/_selectStatementQueryControl.d.ts +2 -2
- package/query-builder/wizard/internal/_selectStatementQueryControl.js +2 -2
- package/query-builder/wizard/internal/_storedProceduresQueryControl.d.ts +2 -2
- package/query-builder/wizard/internal/_storedProceduresQueryControl.js +2 -2
- package/query-builder/wizard/internal/_treeListNode.d.ts +6 -5
- package/query-builder/wizard/internal/_treeListNode.js +6 -3
- package/query-builder/wizard/internal/_treeNodeItemsProvider.d.ts +2 -2
- package/query-builder/wizard/internal/_treeNodeItemsProvider.js +2 -2
- package/query-builder/wizard/internal/_utils.d.ts +2 -2
- package/query-builder/wizard/internal/_utils.js +2 -2
- package/query-builder/wizard/internal/_wizardAction.d.ts +2 -2
- package/query-builder/wizard/internal/_wizardAction.js +2 -2
- package/query-builder/wizard/internal/_wizardPageProcessor.d.ts +2 -2
- package/query-builder/wizard/internal/_wizardPageProcessor.js +2 -2
- package/query-builder/wizard/internal/_wizardPageSectionFactory.d.ts +2 -2
- package/query-builder/wizard/internal/_wizardPageSectionFactory.js +2 -2
- package/query-builder/wizard/internal/_wizardPageSectionIterator.d.ts +2 -2
- package/query-builder/wizard/internal/_wizardPageSectionIterator.js +2 -2
- package/query-builder/wizard/internal/_wrappedWizardPageSection.d.ts +2 -2
- package/query-builder/wizard/internal/_wrappedWizardPageSection.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federatedQueriesTreeNode.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federatedQueriesTreeNode.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationDataSourceItemsExtender.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationDataSourceItemsExtender.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationQueryBuilderPopupBase.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationQueryBuilderPopupBase.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationSelectQueryBuilderPopup.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationSelectQueryBuilderPopup.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationTablesExpressionFieldListProvider.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationTablesExpressionFieldListProvider.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationTransformQueryBuilderPopup.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationTransformQueryBuilderPopup.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationTransformResultSchemaProvider.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationTransformResultSchemaProvider.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationTreeNodeProvider.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationTreeNodeProvider.js +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationUnionQueryBuilderPopup.d.ts +2 -2
- package/query-builder/wizard/internal/federationDataSource/_federationUnionQueryBuilderPopup.js +2 -2
- package/query-builder/wizard/internal/initializer.d.ts +2 -2
- package/query-builder/wizard/internal/initializer.js +2 -2
- package/query-builder/wizard/internal/jsonSourceSettings.d.ts +2 -2
- package/query-builder/wizard/internal/jsonSourceSettings.js +2 -2
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectDataMembers.d.ts +2 -2
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectDataMembers.js +2 -2
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectParameters.d.ts +6 -3
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectParameters.js +19 -4
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectTypes.d.ts +2 -2
- package/query-builder/wizard/internal/objectDataSource/_chooseObjectTypes.js +2 -2
- package/query-builder/wizard/internal/objectDataSource/_objectSchemaProvider.d.ts +2 -2
- package/query-builder/wizard/internal/objectDataSource/_objectSchemaProvider.js +2 -2
- package/query-builder/wizard/internal/wizardPageSectionMetadata.d.ts +2 -2
- package/query-builder/wizard/internal/wizardPageSectionMetadata.js +2 -2
- package/query-builder/wizard/multiQueryDataSourceWizard.d.ts +5 -5
- package/query-builder/wizard/multiQueryDataSourceWizard.js +15 -15
- package/query-builder/wizard/pageFactory.d.ts +2 -2
- package/query-builder/wizard/pageFactory.js +2 -2
- package/query-builder/wizard/pageId.d.ts +2 -2
- package/query-builder/wizard/pageId.js +2 -2
- package/query-builder/wizard/pageIterator.d.ts +5 -3
- package/query-builder/wizard/pageIterator.js +6 -2
- package/query-builder/wizard/pages/IWizardPage.d.ts +2 -2
- package/query-builder/wizard/pages/IWizardPage.js +2 -2
- package/query-builder/wizard/pages/__wrappedWizardPage.d.ts +2 -2
- package/query-builder/wizard/pages/__wrappedWizardPage.js +2 -2
- package/query-builder/wizard/pages/chooseDataSourceTypePage.d.ts +2 -2
- package/query-builder/wizard/pages/chooseDataSourceTypePage.js +2 -2
- package/query-builder/wizard/pages/chooseSqlConnectionPage.d.ts +2 -2
- package/query-builder/wizard/pages/chooseSqlConnectionPage.js +2 -2
- package/query-builder/wizard/pages/federationDataSourceWizard/federatedMasterDetailRelationshipsPage.d.ts +2 -2
- package/query-builder/wizard/pages/federationDataSourceWizard/federatedMasterDetailRelationshipsPage.js +2 -2
- package/query-builder/wizard/pages/federationDataSourceWizard/federatedQueryConfigurePage.d.ts +10 -10
- package/query-builder/wizard/pages/federationDataSourceWizard/federatedQueryConfigurePage.js +12 -15
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonConnectionPage.d.ts +2 -2
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonConnectionPage.js +2 -2
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSchemaPage.d.ts +2 -2
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSchemaPage.js +2 -2
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSourcePage.d.ts +2 -2
- package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSourcePage.js +2 -2
- package/query-builder/wizard/pages/jsonDataSourceWizard/specifyJsonConnectionPage.d.ts +2 -2
- package/query-builder/wizard/pages/jsonDataSourceWizard/specifyJsonConnectionPage.js +2 -2
- package/query-builder/wizard/pages/multiQueryWizard/configureMasterDetailRelationshipsPage.d.ts +2 -2
- package/query-builder/wizard/pages/multiQueryWizard/configureMasterDetailRelationshipsPage.js +2 -2
- package/query-builder/wizard/pages/multiQueryWizard/masterDetailRelationshipsPageBase.d.ts +2 -2
- package/query-builder/wizard/pages/multiQueryWizard/masterDetailRelationshipsPageBase.js +2 -2
- package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigurePage.d.ts +2 -2
- package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigurePage.js +2 -2
- package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigureParametersPage.d.ts +2 -2
- package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigureParametersPage.js +2 -2
- package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceDataMembersPage.d.ts +2 -2
- package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceDataMembersPage.js +2 -2
- package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceTypesPage.d.ts +2 -2
- package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceTypesPage.js +2 -2
- package/query-builder/wizard/pages/objectDataSourceWizard/configureObjectDataSourceParametersPage.d.ts +2 -2
- package/query-builder/wizard/pages/objectDataSourceWizard/configureObjectDataSourceParametersPage.js +2 -2
- package/query-builder/wizard/pages/sqlDataSourceWizard/_sqlDataSourceWrapper.d.ts +2 -2
- package/query-builder/wizard/pages/sqlDataSourceWizard/_sqlDataSourceWrapper.js +2 -2
- package/query-builder/wizard/pages/sqlDataSourceWizard/configureParametersPage.d.ts +2 -2
- package/query-builder/wizard/pages/sqlDataSourceWizard/configureParametersPage.js +2 -2
- package/query-builder/wizard/pages/sqlDataSourceWizard/configureQueryPage.d.ts +2 -2
- package/query-builder/wizard/pages/sqlDataSourceWizard/configureQueryPage.js +2 -2
- package/query-builder/wizard/pages/wizardPageBase.d.ts +2 -2
- package/query-builder/wizard/pages/wizardPageBase.js +2 -2
- package/query-builder/wizard/pages/wizardPageMetadata.d.ts +2 -2
- package/query-builder/wizard/pages/wizardPageMetadata.js +2 -2
- package/query-builder/wizard/popupWizard.d.ts +2 -2
- package/query-builder/wizard/popupWizard.js +2 -2
- package/query-builder/wizard/stateManager.d.ts +2 -2
- package/query-builder/wizard/stateManager.js +2 -2
- package/query-builder/wizard/wizard.d.ts +2 -2
- package/query-builder/wizard/wizard.js +2 -2
- package/query-builder/wizard/wizardEventManager.d.ts +2 -2
- package/query-builder/wizard/wizardEventManager.js +2 -2
- package/queryBuilder-elements-metadata.d.ts +2 -2
- package/queryBuilder-elements-metadata.js +2 -2
- package/queryBuilder-elements.d.ts +2 -2
- package/queryBuilder-elements.js +2 -2
- package/queryBuilder-internal.d.ts +2 -2
- package/queryBuilder-internal.js +2 -2
- package/queryBuilder-metadata.d.ts +2 -2
- package/queryBuilder-metadata.js +2 -2
- package/queryBuilder-utils.d.ts +2 -2
- package/queryBuilder-utils.js +2 -2
- package/queryBuilder-widgets-internal.d.ts +2 -2
- package/queryBuilder-widgets-internal.js +2 -2
- package/queryBuilder-widgets.d.ts +2 -2
- package/queryBuilder-widgets.js +2 -2
- package/querybuilder.d.ts +2 -2
- package/querybuilder.js +2 -2
- package/serializer/_internal.d.ts +2 -2
- package/serializer/_internal.js +2 -2
- package/serializer/_legacy.d.ts +2 -2
- package/serializer/_legacy.js +2 -2
- package/serializer/_utils.d.ts +2 -2
- package/serializer/_utils.js +2 -2
- package/serializer/eventManager.d.ts +2 -2
- package/serializer/eventManager.js +2 -2
- package/serializer/serializationInfo.d.ts +2 -2
- package/serializer/serializationInfo.js +2 -2
- package/serializer/serializer.d.ts +2 -2
- package/serializer/serializer.js +2 -2
- package/serializer/utils.d.ts +2 -2
- package/serializer/utils.js +2 -2
- package/undo-engine/_legacy.d.ts +2 -2
- package/undo-engine/_legacy.js +2 -2
- package/undo-engine/_utils.d.ts +2 -2
- package/undo-engine/_utils.js +2 -2
- package/undo-engine/undoengine.d.ts +2 -2
- package/undo-engine/undoengine.js +2 -2
- package/utils/theme-builder.js +2 -2
- package/widgets/_legacy.d.ts +2 -2
- package/widgets/_legacy.js +2 -2
- package/widgets/_searchHighlighting.d.ts +2 -2
- package/widgets/_searchHighlighting.js +2 -2
- package/widgets/_utils.d.ts +2 -2
- package/widgets/_utils.js +2 -2
- package/widgets/ace/_ace-available.d.ts +2 -2
- package/widgets/ace/_ace-available.js +2 -2
- package/widgets/ace/_ace-mode-criteria.d.ts +2 -2
- package/widgets/ace/_ace-mode-criteria.js +2 -2
- package/widgets/ace/_ace-mode-doc-comment.d.ts +2 -2
- package/widgets/ace/_ace-mode-doc-comment.js +2 -2
- package/widgets/ace/_binding.d.ts +2 -2
- package/widgets/ace/_binding.js +2 -2
- package/widgets/bindings.d.ts +2 -2
- package/widgets/bindings.js +2 -2
- package/widgets/common/_codeCompletor.d.ts +2 -2
- package/widgets/common/_codeCompletor.js +2 -2
- package/widgets/common/_displayNameProvider.d.ts +2 -2
- package/widgets/common/_displayNameProvider.js +2 -2
- package/widgets/common/displayNameProvider.d.ts +2 -2
- package/widgets/common/displayNameProvider.js +2 -2
- package/widgets/common/pathRequest.d.ts +2 -2
- package/widgets/common/pathRequest.js +2 -2
- package/widgets/criteria/operators/aggregate.d.ts +2 -2
- package/widgets/criteria/operators/aggregate.js +2 -2
- package/widgets/criteria/operators/between.d.ts +2 -2
- package/widgets/criteria/operators/between.js +2 -2
- package/widgets/criteria/operators/binary.d.ts +2 -2
- package/widgets/criteria/operators/binary.js +2 -2
- package/widgets/criteria/operators/constant.d.ts +2 -2
- package/widgets/criteria/operators/constant.js +2 -2
- package/widgets/criteria/operators/criteriaOperator.d.ts +2 -2
- package/widgets/criteria/operators/criteriaOperator.js +2 -2
- package/widgets/criteria/operators/function.d.ts +2 -2
- package/widgets/criteria/operators/function.js +2 -2
- package/widgets/criteria/operators/group.d.ts +2 -2
- package/widgets/criteria/operators/group.js +2 -2
- package/widgets/criteria/operators/in.d.ts +2 -2
- package/widgets/criteria/operators/in.js +2 -2
- package/widgets/criteria/operators/join.d.ts +2 -2
- package/widgets/criteria/operators/join.js +2 -2
- package/widgets/criteria/operators/options/aggregate.d.ts +2 -2
- package/widgets/criteria/operators/options/aggregate.js +2 -2
- package/widgets/criteria/operators/options/between.d.ts +2 -2
- package/widgets/criteria/operators/options/between.js +2 -2
- package/widgets/criteria/operators/options/binary.d.ts +2 -2
- package/widgets/criteria/operators/options/binary.js +2 -2
- package/widgets/criteria/operators/options/function.d.ts +2 -2
- package/widgets/criteria/operators/options/function.js +2 -2
- package/widgets/criteria/operators/options/group.d.ts +2 -2
- package/widgets/criteria/operators/options/group.js +2 -2
- package/widgets/criteria/operators/options/in.d.ts +2 -2
- package/widgets/criteria/operators/options/in.js +2 -2
- package/widgets/criteria/operators/options/join.d.ts +2 -2
- package/widgets/criteria/operators/options/join.js +2 -2
- package/widgets/criteria/operators/options/parameter.d.ts +2 -2
- package/widgets/criteria/operators/options/parameter.js +2 -2
- package/widgets/criteria/operators/options/property.d.ts +2 -2
- package/widgets/criteria/operators/options/property.js +2 -2
- package/widgets/criteria/operators/options/unary.d.ts +2 -2
- package/widgets/criteria/operators/options/unary.js +2 -2
- package/widgets/criteria/operators/options/value.d.ts +2 -2
- package/widgets/criteria/operators/options/value.js +2 -2
- package/widgets/criteria/operators/parameter.d.ts +2 -2
- package/widgets/criteria/operators/parameter.js +2 -2
- package/widgets/criteria/operators/property.d.ts +2 -2
- package/widgets/criteria/operators/property.js +2 -2
- package/widgets/criteria/operators/unary.d.ts +2 -2
- package/widgets/criteria/operators/unary.js +2 -2
- package/widgets/criteria/operators/value.d.ts +2 -2
- package/widgets/criteria/operators/value.js +2 -2
- package/widgets/criteria/parser/criteriaparser.d.ts +2 -2
- package/widgets/criteria/parser/criteriaparser.js +2 -2
- package/widgets/criteria/utils/criteriaChangeOperator.d.ts +2 -2
- package/widgets/criteria/utils/criteriaChangeOperator.js +2 -2
- package/widgets/criteria/utils/criteriaEnumeration.d.ts +2 -2
- package/widgets/criteria/utils/criteriaEnumeration.js +2 -2
- package/widgets/criteria/utils/criteriaOperatorPreprocessor.d.ts +2 -2
- package/widgets/criteria/utils/criteriaOperatorPreprocessor.js +2 -2
- package/widgets/criteria/utils/criteriaOperatorStateMachine.d.ts +2 -2
- package/widgets/criteria/utils/criteriaOperatorStateMachine.js +2 -2
- package/widgets/criteria/utils/criteriaOperatorVisitor.d.ts +2 -2
- package/widgets/criteria/utils/criteriaOperatorVisitor.js +2 -2
- package/widgets/criteria/utils/criteriaProcessType.d.ts +3 -4
- package/widgets/criteria/utils/criteriaProcessType.js +2 -2
- package/widgets/criteria/utils/operatorTokens.d.ts +2 -2
- package/widgets/criteria/utils/operatorTokens.js +2 -2
- package/widgets/criteria/utils/propertyLocation.d.ts +2 -2
- package/widgets/criteria/utils/propertyLocation.js +2 -2
- package/widgets/expressioneditor/_expressioneditor.d.ts +7 -16
- package/widgets/expressioneditor/_expressioneditor.js +2 -2
- package/widgets/expressioneditor/bindings.d.ts +2 -2
- package/widgets/expressioneditor/bindings.js +2 -2
- package/widgets/expressioneditor/expressioneditor.d.ts +29 -15
- package/widgets/expressioneditor/expressioneditor.js +12 -12
- package/widgets/expressioneditor/tools/_functions.d.ts +2 -2
- package/widgets/expressioneditor/tools/_functions.js +2 -2
- package/widgets/expressioneditor/tools/_operatorNames.d.ts +2 -2
- package/widgets/expressioneditor/tools/_operatorNames.js +2 -2
- package/widgets/expressioneditor/tools/_tools.d.ts +14 -6
- package/widgets/expressioneditor/tools/_tools.js +7 -7
- package/widgets/expressioneditor/tools/_treeListControllers.d.ts +9 -12
- package/widgets/expressioneditor/tools/_treeListControllers.js +6 -5
- package/widgets/filtereditor/filtereditor.d.ts +2 -2
- package/widgets/filtereditor/filtereditor.js +2 -2
- package/widgets/filtereditor/filtereditoroptions.d.ts +2 -2
- package/widgets/filtereditor/filtereditoroptions.js +2 -2
- package/widgets/filtereditor/helpers/_addon.d.ts +2 -2
- package/widgets/filtereditor/helpers/_addon.js +2 -2
- package/widgets/filtereditor/helpers/_codeCompletor.d.ts +2 -2
- package/widgets/filtereditor/helpers/_codeCompletor.js +2 -2
- package/widgets/filtereditor/helpers/_helper.d.ts +2 -2
- package/widgets/filtereditor/helpers/_helper.js +2 -2
- package/widgets/filtereditor/helpers/_serializer.d.ts +2 -2
- package/widgets/filtereditor/helpers/_serializer.js +2 -2
- package/widgets/filtereditor/helpers/_treelistController.d.ts +2 -2
- package/widgets/filtereditor/helpers/_treelistController.js +2 -2
- package/widgets/filtereditor/helpers/_validator.d.ts +2 -2
- package/widgets/filtereditor/helpers/_validator.js +2 -2
- package/widgets/filtereditor/helpers/helper.d.ts +15 -15
- package/widgets/filtereditor/helpers/helper.js +23 -22
- package/widgets/filtereditor/operators/aggregateOperandSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/aggregateOperandSurface.js +2 -2
- package/widgets/filtereditor/operators/betweenOperandSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/betweenOperandSurface.js +2 -2
- package/widgets/filtereditor/operators/binaryOperandSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/binaryOperandSurface.js +2 -2
- package/widgets/filtereditor/operators/criteriaOperatorSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/criteriaOperatorSurface.js +2 -2
- package/widgets/filtereditor/operators/functionOperandSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/functionOperandSurface.js +2 -2
- package/widgets/filtereditor/operators/groupOperandSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/groupOperandSurface.js +2 -2
- package/widgets/filtereditor/operators/inOperandSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/inOperandSurface.js +2 -2
- package/widgets/filtereditor/operators/operandParameterSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/operandParameterSurface.js +2 -2
- package/widgets/filtereditor/operators/operandPropertySurface.d.ts +2 -2
- package/widgets/filtereditor/operators/operandPropertySurface.js +2 -2
- package/widgets/filtereditor/operators/operandSurfaceBase.d.ts +2 -2
- package/widgets/filtereditor/operators/operandSurfaceBase.js +2 -2
- package/widgets/filtereditor/operators/operandValueSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/operandValueSurface.js +2 -2
- package/widgets/filtereditor/operators/unaryOperandSurface.d.ts +2 -2
- package/widgets/filtereditor/operators/unaryOperandSurface.js +2 -2
- package/widgets/formatstring/_patterns.d.ts +2 -2
- package/widgets/formatstring/_patterns.js +2 -2
- package/widgets/formatstring/binding.d.ts +2 -2
- package/widgets/formatstring/binding.js +2 -2
- package/widgets/formatstring/formatstringeditor.d.ts +2 -2
- package/widgets/formatstring/formatstringeditor.js +2 -2
- package/widgets/internal/_dxtInherit.d.ts +2 -2
- package/widgets/internal/_dxtInherit.js +2 -2
- package/widgets/internal/_popupComponentBase.d.ts +3 -3
- package/widgets/internal/_popupComponentBase.js +3 -3
- package/widgets/internal/_popupwithautoheight.d.ts +2 -2
- package/widgets/internal/_popupwithautoheight.js +2 -2
- package/widgets/internal/_resizeHelper.d.ts +2 -2
- package/widgets/internal/_resizeHelper.js +2 -2
- package/widgets/internal/_valueEditorHelper.d.ts +2 -2
- package/widgets/internal/_valueEditorHelper.js +2 -2
- package/widgets/treelist/_binding.d.ts +2 -2
- package/widgets/treelist/_binding.js +2 -2
- package/widgets/treelist/_reorderTreeListDragDropHelper.d.ts +2 -2
- package/widgets/treelist/_reorderTreeListDragDropHelper.js +2 -2
- package/widgets/treelist/_treeListSearchViewModel.d.ts +2 -2
- package/widgets/treelist/_treeListSearchViewModel.js +2 -2
- package/widgets/treelist/_treelistController.d.ts +2 -2
- package/widgets/treelist/_treelistController.js +2 -2
- package/widgets/treelist/_treelistItem.d.ts +2 -2
- package/widgets/treelist/_treelistItem.js +2 -2
- package/widgets/treelist/options.d.ts +2 -2
- package/widgets/treelist/options.js +2 -2
- package/widgets/utils.d.ts +4 -4
- package/widgets/utils.js +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress Analytics (dist\js\dx-querybuilder.min.js)
|
|
3
|
-
* Version: 22.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 22.1.3
|
|
4
|
+
* Build date: Jun 14, 2022
|
|
5
5
|
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
|
|
6
6
|
* License: https://www.devexpress.com/Support/EULAs/universal.xml
|
|
7
7
|
*/
|
|
8
|
-
!function(r){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=r,i.c=o,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=224)}([function(e,t){e.exports=DevExpress.Analytics.Internal},function(e,t){e.exports=DevExpress.Analytics.Utils},function(e,t){e.exports=ko},function(e,t){e.exports=jQuery},function(e,t){e.exports=DevExpress.Analytics.Elements},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenDataSourceWizardSectionId=t.FullscreenDataSourceWizardPageId=t.ObjectDataSourceWizardPageId=t.JsonDataSourceWizardPageId=t.FederationDataSourceWizardPageId=t.SqlDataSourceWizardPageId=t.DataSourceWizardPageId=void 0,t.DataSourceWizardPageId={ChooseDataSourceTypePage:"chooseDataSourceTypePage",ConfigureMasterDetailRelationshipsPage:"configureMasterDetailRelationshipsPage"},t.SqlDataSourceWizardPageId={ChooseConnectionPage:"chooseSqlConnectionPage",ConfigureQueryPage:"configureSqlQueryPage",ConfigureParametersPage:"configureSqlParametersPage",MultiQueryConfigurePage:"multiSqlQueryConfigurePage",MultiQueryConfigureParametersPage:"multiSqlQueryConfigureParametersPage",FederatedQueryConfigurePage:"federatedQueryConfigurePage"},t.FederationDataSourceWizardPageId={FederatedQueryConfigurePage:"federatedQueryConfigurePage",FederatedMasterDetailRelationshipsPage:"federatedMasterDetailRelationshipsPage"},t.JsonDataSourceWizardPageId={ChooseJsonSourcePage:"chooseJsonSourcePage",ChooseJsonSchemaPage:"chooseJsonSchemaPage",ChooseConnectionPage:"chooseJsonConnectionPage",SpecifyJsonConnectionPage:"specifyJsonConnectionPage"},t.ObjectDataSourceWizardPageId={ChooseTypesPage:"chooseObjectDataSourceTypesPage",ChooseDataMembersPage:"chooseObjectDataSourceDataMembersPage",ConfigureParametersPage:"configureObjectDataSourceParametersPage"},t.FullscreenDataSourceWizardPageId={ChooseDataSourceTypePage:t.DataSourceWizardPageId.ChooseDataSourceTypePage,SpecifySqlDataSourceSettingsPage:"specifySqlDataSourceSettingsPage",SpecifyJsonDataSourceSettingsPage:"specifyJsonDataSourceSettingsPage",SpecifyObjectDataSourceSettingsPage:"specifyObjectDataSourceSettingsPage",SpecifyFederationDataSourceSettingsPage:"specifyFederationDataSourceSettingsPage"},t.FullscreenDataSourceWizardSectionId={SpecifyJsonConnectionPage:t.JsonDataSourceWizardPageId.SpecifyJsonConnectionPage,ChooseJsonSchemaPage:t.JsonDataSourceWizardPageId.ChooseJsonSchemaPage,ChooseJsonSourcePage:t.JsonDataSourceWizardPageId.ChooseJsonSourcePage,ChooseSqlConnectionPage:t.SqlDataSourceWizardPageId.ChooseConnectionPage,ConfigureFederatedQueriesPage:t.FederationDataSourceWizardPageId.FederatedQueryConfigurePage,ConfigureFederatedMasterDetailRelationshipsPage:t.FederationDataSourceWizardPageId.FederatedMasterDetailRelationshipsPage,ConfigureQueryPage:t.SqlDataSourceWizardPageId.MultiQueryConfigurePage,ConfigureQueryParametersPage:t.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage,ConfigureMasterDetailRelationshipsPage:t.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage}},function(e,t){e.exports=DevExpress.Analytics.Widgets},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FederationQueryType=t.JsonSourceType=t.SqlQueryType=void 0,t.SqlQueryType={customSqlQuery:"CustomSqlQuery",tableQuery:"SelectQuery",storedProcQuery:"StoredProcQuery"},t.JsonSourceType={fileJsonSource:"FileJsonSource",customJsonSource:"CustomJsonSource",uriJsonSource:"UriJsonSource"},(t=t.FederationQueryType||(t.FederationQueryType={}))[t.SelectNode=0]="SelectNode",t[t.UnionNode=1]="UnionNode",t[t.SourceNode=2]="SourceNode",t[t.TransformationNode=3]="TransformationNode"},function(e,t){e.exports=DevExpress.Analytics.Widgets.Internal},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageBase=void 0,r(1)),s=r(3),r=(i=a.Disposable,n(l,i),l.prototype.dispose=function(){i.prototype.dispose.call(this),this._onChange=function(){}},l.prototype.commit=function(){return s.Deferred().resolve().promise()},l.prototype.onChange=function(e){this._onChange=e},l.prototype.initialize=function(e,t){return s.Deferred().resolve().promise()},l.prototype.canNext=function(){return!0},l.prototype.canFinish=function(){return!1},l);function l(){var e=null!==i&&i.apply(this,arguments)||this;return e.changeAlways=!1,e._onChange=function(){},e}t.WizardPageBase=r},function(e,t,r){"use strict";var o,i,n,a=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t._createPageEventArgs=t._createBeforeInitializePageEventArgs=t.subscribeObject=t.subscribeProperties=t.subscribeArray=t.getSectionStyle=t.MultiQueryTreeListItemFactory=t.CustomQueryTreeListItem=t.WizardSectionPosition=void 0,r(2)),r=r(8),l=((u=i=t.WizardSectionPosition||(t.WizardSectionPosition={}))[u.Left=1]="Left",u[u.TopLeft=2]="TopLeft",u[u.BottomLeft=3]="BottomLeft",u[u.Right=4]="Right",u[u.TopRight=5]="TopRight",u[u.BottomRight=6]="BottomRight",u[u.Top=7]="Top",u[u.Bottom=8]="Bottom",n=r.TreeListItemViewModel,a(c,n),c.prototype.dispose=function(){n.prototype.dispose.call(this),this.queryName.dispose()},c.prototype._getTemplateName=function(){return this._getCustomizedTemplateName(!0)},c.prototype._getCustomizedTemplateName=function(e){return e?"dxd-custom-query-treelisitem":n.prototype._getTemplateName.call(this)},c);function c(){var r=null!==n&&n.apply(this,arguments)||this;return r.queryName=s.computed({read:function(){return r.data&&r.data.name},write:function(e){var t=r.data;t&&t.name!==e&&(t.name=e,t._afterCheckToggled&&t._afterCheckToggled(t))}}),r.editingMode=s.observable(!1),r}t.CustomQueryTreeListItem=l;d=r.DefaultTreeListItemFactory,a(p,d),p.prototype.createItem=function(e,t,r,o,i){return"queries"===t[0]?new l(e,t,r,o,i):d.prototype.createItem.call(this,e,t,r,o,i)};var d,u=p;function p(){return null!==d&&d.apply(this,arguments)||this}t.MultiQueryTreeListItemFactory=u,t.getSectionStyle=function(e,t,r){void 0===r&&(r=!0);var o="inherit",t="-"+(t=void 0===t?30:t)/2+"px";return e?{top:e===i.Left||e===i.Right||e===i.Top||e===i.TopLeft||e===i.TopRight?t:o,bottom:e===i.Left||e===i.Right||e===i.Bottom||e===i.BottomLeft||e===i.BottomRight?t:o,left:e===i.Top||e===i.Bottom||e===i.Left||e===i.TopLeft||e===i.BottomLeft?t:o,right:e===i.Top||e===i.Bottom||e===i.Right||e===i.TopRight||e===i.BottomRight?t:o,width:e===i.Top||e===i.Bottom?o:"50%",height:e===i.Left||e===i.Right?o:"50%",display:r?"block":"none"}:{top:t,bottom:t,left:t,right:t,width:o,height:o,display:r?"block":"none"}},t.subscribeArray=function(e,t,r){return e().forEach(function(e){return t(e,r)}),e.subscribe(function(e){e.forEach(function(e){"added"===e.status?t(e.value,r):"deleted"===e.status&&e.value.dispose&&e.value.dispose()}),r()},null,"arrayChange")},t.subscribeProperties=function(e,t){var r=[];return e.forEach(function(e){e&&e.subscribe&&r.push(e.subscribe(function(e){return t(e)}))}),r},t.subscribeObject=function(e,t,r){return t(e(),r),e.subscribe(function(e){t(e,r),r()})},t._createBeforeInitializePageEventArgs=function(e,t){return{page:e.page,pageId:e.pageId,wizard:t,state:t.stateManager.getPageState(e.pageId)}},t._createPageEventArgs=function(e,t){return{page:e.page,pageId:e.pageId,wizard:t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestWrapper=void 0;var o=r(0),i=r(87),n=r(1),a=r(61);function s(){}s.prototype.sendRequest=function(e,t){return o.ajax(i.HandlerUri(),e,t)},s.prototype._sendRequest=function(e){return o.ajax(e)},s.prototype.getDbSchema=function(e,t){e={connectionJSON:a.serializeDataConnection(e),tables:null,views:null};return t&&0<t.length&&(e.tables=(t||[]).filter(function(e){return!e.isView}).map(function(e){return e.name}),e.views=(t||[]).filter(function(e){return e.isView}).map(function(e){return e.name})),this.sendRequest("getDBSchema",encodeURIComponent(JSON.stringify(e)))},s.prototype.getDbStoredProcedures=function(e){e=JSON.stringify({connectionJSON:a.serializeDataConnection(e)});return this.sendRequest("getDBStoredProcedures",encodeURIComponent(e))},s.prototype.getSelectStatement=function(e,t){e=JSON.stringify({connectionJSON:a.serializeDataConnection(e),sqlQueryJSON:t});return this.sendRequest("getSelectStatement",encodeURIComponent(e))},s.prototype.getDataPreview=function(e,t){e=JSON.stringify({connectionJSON:a.serializeDataConnection(e),sqlQueryJSON:t});return this.sendRequest("getDataPreview",encodeURIComponent(e))},s.prototype.rebuildResultSchema=function(e,t,r){void 0===r&&(r=!1);e=JSON.stringify({sqlDataSourceJSON:JSON.stringify({SqlDataSource:(new n.ModelSerializer).serialize(e)}),queryName:t,relationsEditing:r});return this.sendRequest("rebuildResultSchema",encodeURIComponent(e))},s.prototype.getFederationResultSchema=function(e){var t=e.getSerializableModel().getSerializableFederationDataSourceInfo(),e=JSON.stringify({federationDataSourceJSON:JSON.stringify({FederationDataSource:(new n.ModelSerializer).serialize(e)}),dataSources:t.dataSources});return this.sendRequest("getFederationResultSchema",encodeURIComponent(e))},s.prototype.validateJsonUri=function(e){e=JSON.stringify(e.source.serialize(!0)),e=JSON.stringify({uriJsonSourceJSON:e}),e={uri:i.HandlerUri(),action:"validateJsonEndPoint",arg:encodeURIComponent(e),ignoreError:function(){return!0}};return this._sendRequest(e)},s.prototype.saveJsonSource=function(e,t){var t=t.source,r=JSON.stringify(t.serialize(!0)),e=JSON.stringify({connectionName:e,customJson:t.json(),uriJsonSourceJSON:r});return this.sendRequest("saveJsonSource",encodeURIComponent(e))},s.prototype.getJsonSchema=function(e,t){var r=e.source,o=JSON.stringify(r.serialize(!0)),e=JSON.stringify({connectionName:e.connectionName(),customJson:r.json(),uriJsonSourceJSON:o,parameters:t});return this.sendRequest("getJsonSchema",encodeURIComponent(e))},s.prototype.getObjectTypeDescriptions=function(e){return this.sendRequest("getObjectSchema",e)},t.RequestWrapper=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createDefaultDataSourceWizardState=t._restoreObjectDataSourceFromState=t._resetRestoreJsonDataSourceFromState=t._setRestoreJsonDataSourceFromState=t._restoreJsonDataSourceFromState=t._restoreFederationDataSourceFromState=t._resetRestoreSqlDataSourceFromState=t._setRestoreSqlDataSourceFromState=t._restoreSqlDataSourceFromState=void 0;function o(e,t,r){var o=new f._SqlDataSourceWrapper(e.sqlDataSourceJSON,e.queryName,t),i=(e.name&&o.sqlDataSource.connection.name(e.name),new a.ModelSerializer);return e.customQueries&&0<e.customQueries.length&&(o.customQueries=e.customQueries.map(function(e){return o.sqlDataSource.createQuery(JSON.parse(e),i)}),(t=o.sqlDataSource.queries).push.apply(t,o.customQueries)),e.relations&&0<e.relations.length&&(t=o.sqlDataSource.relations).push.apply(t,e.relations.map(function(e){return new s.MasterDetailRelation(JSON.parse(e),i)})),o.sqlDataSource.id=r||l.guid().replace(/-/g,""),o}function i(e,t,r){return t=new c.JsonDataSource({Source:e.jsonSource&&JSON.parse(e.jsonSource)||{},Schema:e.jsonScheme&&JSON.parse(e.jsonScheme)||{},"@RootElement":e.rootElement||""},void 0,t),e.connectionName&&t.connectionName(e.connectionName),e.dataSourceName&&t.name(e.dataSourceName),t.id=r||l.guid().replace(/-/g,""),t}var n=r(48),a=r(1),s=r(42),l=r(0),c=r(63),d=r(26),u=r(97),p=r(66),f=r(49);t._restoreSqlDataSourceFromState=o,t._setRestoreSqlDataSourceFromState=function(e){return t._restoreSqlDataSourceFromState=e},t._resetRestoreSqlDataSourceFromState=function(){return t._restoreSqlDataSourceFromState=o},t._restoreFederationDataSourceFromState=function(e,t,r){t=new u.FederationDataSource(JSON.parse(e.federationDataSourceJSON),t);return r&&(t.id=r),e.relations&&0<e.relations.length&&(r=t.relations).push.apply(r,e.relations.map(function(e){return new p.FederationMasterDetailRelation(JSON.parse(e),new a.ModelSerializer)})),t};t._restoreJsonDataSourceFromState=i,t._setRestoreJsonDataSourceFromState=function(e){t._restoreJsonDataSourceFromState=e},t._resetRestoreJsonDataSourceFromState=function(){t._restoreJsonDataSourceFromState=i},t._restoreObjectDataSourceFromState=function(e,t,r){var o=new d.ObjectDataSource;return o.setState(e),r&&(o.id=r),o},t._createDefaultDataSourceWizardState=function(e,t,r,o){return{dataSourceType:n.DataSourceType.Sql,jsonDataSourceWizard:t=void 0===t?{jsonSource:""}:t,sqlDataSourceWizard:e=void 0===e?{}:e,objectDataSourceWizard:r=void 0===r?{}:r,federationDataSourceWizard:o=void 0===o?{}:o,dataSourceId:l.guid().replace(/-/g,"")}}},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.DataSourceParameter=void 0,r(2)),a=r(0),s=r(0),l=r(18),c=r(0),d=r(1),u=r(0),p=r(41),f=r(139),m=r(1),y=r(0);function h(e,t,r){return a.integerValueConverter(e,t,r)}function g(e,t,r){return a.floatValueConverter(e,t,r)}function _(e){var t;return e instanceof Date?s.formatUnicorn("#{0}/{1}/{2} {3}:{4}#",(t=function(e){return(e<10?"0":"")+e})(e.getMonth()+1),t(e.getDate()),e.getFullYear(),t(e.getHours()),t(e.getMinutes())):(e||"").toString()}Object.defineProperty(b.prototype,"specifics",{get:function(){return l.DBColumn.GetSpecific(this.realTypeName||this.name)},enumerable:!1,configurable:!0});r=b;function b(e,t,r,o){var i=this;this.name=e,this.defaultValue=t,this.realTypeName=o,r&&(this.valueConverter=function(e){return r(e,t,i.name)})}function S(e){var t;try{t=c.parseDate(e)}catch(e){t=P()}return t}var v,P=function(){var e=new Date;return e.setHours(0,0,0,0),e},d=(v=d.Disposable,i(x,v),x._getTypeValue=function(t,e){void 0===e&&(e=null);var r=x._typeValues.filter(function(e){return e.name===t});return 0<r.length?(e&&u.IsDataAccessExpression(t)&&(r[0].realTypeName=e),r[0]):{name:t,defaultValue:null,specifics:"String",disableEditor:!0}},x.prototype._getTypeValue=function(e){return x._getTypeValue(e,this.resultType())},x.prototype._tryConvertValue=function(e,t){if(!x._isValueValid(e))return t.defaultValue;e=(t.valueConverter||function(e){return e})(e);return x._isValueValid(e)?e:t.defaultValue},x._isValueValid=function(e){return null!=e&&!isNaN("string"==typeof e?"":e)},x.prototype.getEditorType=function(e){return u.getEditorType(e)},x.prototype._updateValueInfo=function(e){var t=this,e=this._getTypeValue(e),r=this._tryConvertValue(this._value(),e),o=this._expressionValue.peek();this._expressionValue(null),this._value(null),this._valueInfo(y.extend({},p.parameterValueSerializationsInfo,{editor:this.getEditorType(e.name),disabled:!0===e.disableEditor,editorOptions:{onFocusOut:function(e){t.isValid(e.component.option("isValid"))}}})),this._expressionValue(o),this._value(r)},Object.defineProperty(x.prototype,"specifics",{get:function(){var t=u.IsDataAccessExpression(this.type.peek())?this.resultType():this.type(),e=x._typeValues.filter(function(e){return e.name===t});return 0<e.length?e[0].specifics:"string"},enumerable:!1,configurable:!0}),x.prototype.getInfo=function(){var e;return this.type?((e=y.extend(!0,[],this._serializationsInfo)).splice(e.indexOf(e.filter(function(e){return"value"===e.propertyName})[0]),1,this._valueInfo()),e):this._serializationsInfo},x.prototype.isPropertyVisible=function(e){return"resultType"!==e||u.IsDataAccessExpression(this.type())},x._typeValues=[new r("System.DateTime",P(),S),new r("System.String",""),new r("System.SByte","0",h),new r("System.Int16","0",h),new r("System.Int32","0",h),new r("System.Int64","0",h),new r("System.Byte","0",h),new r("System.UInt16","0",h),new r("System.UInt32","0",h),new r("System.UInt64","0",h),new r("System.Decimal","0",g),new r("System.Double","0",g),new r("System.Single","0",g),new r("System.Boolean",!1,function(e){return void 0!==e?"true"===String(e).toLowerCase():e}),new r("System.Guid","00000000-0000-0000-0000-000000000000"),new r(u.ExpressionType,"",_),new r("System.Char","")],x);function x(e,t,r){void 0===r&&(r=p.dsParameterSerializationInfo);var o=v.call(this)||this;return o._serializationsInfo=r,o._valueInfo=n.observable(p.parameterValueSerializationsInfo),o._parametersFunctions=f.expressionFunctions,o.isValid=n.observable(!0),(t=t||new m.ModelSerializer).deserialize(o,y.extend(e,{"@ItemType":"Parameter"})),o._disposables.push(o.name=n.pureComputed({read:function(){return o._name()},write:function(e){p.validateName(e)&&o._name(e)}})),o._expressionValue=n.observable({value:o._value,functions:o._parametersFunctions}),o._disposables.push(o.type.subscribe(function(e){u.IsDataAccessExpression(e)?o.resultType(o._previousResultType):(o.resultType(null),o._previousResultType=e),o._updateValueInfo(e)})),o._previousResultType=u.IsDataAccessExpression(o.type.peek())?o.resultType():o.type(),o.value=n.pureComputed({read:function(){return u.IsDataAccessExpression(o.type())?o._expressionValue():o._value()},write:function(e){o._value(e)}}),o._updateValueInfo(o.type.peek()),o}t.DataSourceParameter=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__nextActionFunctionName=t.__loadingStateFunctionName=void 0,t.__loadingStateFunctionName="__loadingState",t.__nextActionFunctionName="__nextAction"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownSerializationsInfo=t.sizeLocation=t.location=t.size=t.selected=t.text=t.alias=t.name=void 0;var o=r(28),i=r(4),r=r(4);t.name={propertyName:"name",modelName:"@Name",displayName:"Name",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Name",disabled:!0,editor:o.editorTemplates.getEditor("text")},t.alias={propertyName:"alias",modelName:"@Alias",displayName:"Alias",localizationId:"DataAccessUIStringId.QueryBuilderColumns_Alias",defaultVal:"",editor:o.editorTemplates.getEditor("text")},t.text={propertyName:"text",modelName:"@Text",displayName:"Text",editor:o.editorTemplates.getEditor("text")},t.selected={propertyName:"selected",displayName:"Output",editor:o.editorTemplates.getEditor("bool"),localizationId:"DataAccessUIStringId.QueryBuilderColumns_Output"},t.size={propertyName:"size",modelName:"@Size",defaultVal:"100,125",from:i.Size.fromString},t.location={propertyName:"location",modelName:"@Location",from:r.Point.fromString},t.sizeLocation=[t.size,t.location],t.unknownSerializationsInfo=[t.name].concat(t.sizeLocation)},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.diagramElementSerializationInfo=t.DiagramElementBaseViewModel=void 0,r(4)),s=r(23),l=r(57),r=(i=a.ElementViewModel,n(c,i),c.prototype.getControlFactory=function(){return l.diagramControlsFactory},c);function c(e,t,r){return i.call(this,e,t,r)||this}t.DiagramElementBaseViewModel=r,t.diagramElementSerializationInfo=[s.size,s.location,s.name,s.text,{propertyName:"type",modelName:"@Type"}]},function(e,t){e.exports={default:""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBColumn=t.DBColumnType=void 0,(i=o=t.DBColumnType||(t.DBColumnType={}))[i.Unknown=0]="Unknown",i[i.Boolean=1]="Boolean",i[i.Byte=2]="Byte",i[i.SByte=3]="SByte",i[i.Char=4]="Char",i[i.Decimal=5]="Decimal",i[i.Double=6]="Double",i[i.Single=7]="Single",i[i.Int32=8]="Int32",i[i.UInt32=9]="UInt32",i[i.Int16=10]="Int16",i[i.UInt16=11]="UInt16",i[i.Int64=12]="Int64",i[i.UInt64=13]="UInt64",i[i.String=14]="String",i[i.DateTime=15]="DateTime",i[i.Guid=16]="Guid",i[i.TimeSpan=17]="TimeSpan",i[i.ByteArray=18]="ByteArray",n.GetType=function(e){switch(e){case o.Boolean:return"System.Boolean";case o.Byte:return"System.Byte";case o.SByte:return"System.SByte";case o.Char:return"System.Char";case o.Decimal:return"System.Decimal";case o.Double:return"System.Double";case o.Single:return"System.Single";case o.Int32:return"System.Int32";case o.UInt32:return"System.UInt32";case o.Int16:return"System.Int16";case o.UInt16:return"System.UInt16";case o.Int64:return"System.Int64";case o.UInt64:return"System.UInt64";case o.String:return"System.String";case o.DateTime:return"System.DateTime";case o.Guid:return"System.Guid";case o.TimeSpan:return"System.TimeSpan";case o.ByteArray:return"System.Byte[]";default:return"System.Object"}},n.GetSpecific=function(e){switch(e){case"System.Boolean":return"Bool";case"System.Byte":case"System.SByte":case"System.Int16":case"System.UInt16":case"System.Int32":case"System.UInt32":case"System.Int64":case"System.UInt64":return"Integer";case"System.Char":case"System.Guid":case"System.ByteArray":case"System.String":return"String";case"System.Double":case"System.Single":case"System.Decimal":return"Float";case"System.DateTime":case"System.TimeSpan":return"Date";default:return"String"}};var o,i=n;function n(e){this.name=e.Name,this.type=e.ColumnType,this.size=e.Size}t.DBColumn=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeToCollection=void 0,t.deserializeToCollection=function(e,t,r){return r=r||[],e&&e.forEach(function(e){r.push(t(e))}),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedQueryExpression=t.FederatedQueryExpressionType=t.expressionSerializationInfo=void 0;var o=r(1),i=r(0),r=r(15),r=(t.expressionSerializationInfo=[{propertyName:"table",modelName:"@NodeAlias"},r.name,r.alias,{propertyName:"expressionType",modelName:"@ExpressionType"},{propertyName:"columnExpression",modelName:"@ColumnExpression"}],(r=t.FederatedQueryExpressionType||(t.FederatedQueryExpressionType={}))[r.SelectColumnExpression=0]="SelectColumnExpression",r[r.SelectExpression=1]="SelectExpression",r[r.SelectAllColumnsExpression=2]="SelectAllColumnsExpression",r[r.SelectAllNodeColumnsExpression=3]="SelectAllNodeColumnsExpression",r[r.SelectRowCountExpression=4]="SelectRowCountExpression",n.prototype.getInfo=function(){return t.expressionSerializationInfo},n);function n(e,t){(t=t||new o.ModelSerializer).deserialize(this,i.extend(e,{"@ItemType":"Expression"}))}t.FederatedQueryExpression=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.controlsFactory=void 0;r=r(1);t.controlsFactory=new r.ControlsFactory},function(e,s,t){"use strict";var o,a,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=(Object.defineProperty(s,"__esModule",{value:!0}),s.SingleCheckedDataMemberTreeNode=s.DataMemberTreeNode=s.FieldTreeNode=s.TreeQueryNode=s.QueriesTreeNode=s.ParameterTreeNode=s.TreeNode=s.TreeLeafNode=s.TreeNodeBase=s.defaultObjectDataSourceItemSpecifics=void 0,t(2)),c=t(3),d=t(1),t=t(1),t=(s.defaultObjectDataSourceItemSpecifics="Default",a=t.Disposable,r(i,a),i.prototype.unChecked=function(){return!1===this.checked()},i.prototype.toggleChecked=function(){this.setChecked(!this.checked.peek()),this._afterCheckToggled(this)},i.prototype.setChecked=function(e){this._checked(e)},i);function i(e,t,r,o,i){void 0===o&&(o=!1);var n=a.call(this)||this;return n.name=e,n.displayName=t,n.specifics=r,n.checked=l.pureComputed(function(){return n._checked()}),n.isList=!1,n._checked=l.observable(o),n._afterCheckToggled=i||c.noop,n}s.TreeNodeBase=t;r(p,u=t);var u,n=p;function p(e,t,r,o,i,n){void 0===i&&(i=null);o=u.call(this,e,t,r,o=void 0===o?!1:o,n)||this;return o.name=e,o.displayName=t,o.specifics=r,o.hasQuery=!1,o.arguments=i,o}s.TreeLeafNode=n;r(y,f=t),y.prototype.initialized=function(){return 0<this.children().length},y.prototype.setChecked=function(t){this._checked(t),this.children.peek().forEach(function(e){e.setChecked(t)})},y.prototype.initializeChildren=function(e){this.children(e||[])};var f,m=y;function y(e,t,r,o,i){var n=f.call(this,e,t,r,o,i)||this;return n.countChecked=l.pureComputed(function(){for(var e=0,t=0;t<n.children().length;t++)if(!n.children()[t].unChecked()){if(1<e)break;e++}return e}),n.isList=!0,n.children=l.observableArray([]),n.checked=l.pureComputed({read:function(){var t,r;return n.initialized()?(r=t=0,n.children().forEach(function(e){!0===e.checked()?t++:!1!==e.checked()&&r++}),(0!==t||0!==r)&&(t===n.children.peek().length||void 0)):n._checked()}}),n}s.TreeNode=m;r(_,h=m);var h,g=_;function _(e,t,r,o,i){var n=h.call(this,e,t,r,o,i)||this;return n.countChecked=l.pureComputed(function(){var e=0;n.hasParamsToEdit(!1);for(var t=0;t<n.children().length;t++){var r=n.children()[t];if(!r.unChecked()){if(1<e)break;e++,r.arguments&&0<r.arguments.length&&n.hasParamsToEdit(!0),"query"===r.specifics&&n.hasParamsToEdit(!0)}}return e}),n.hasParamsToEdit=l.observable(!1),n}s.ParameterTreeNode=g;r(S,b=g),S.prototype.getActions=function(e){var t=[];return 0===e.path.indexOf("queries")&&t.push(this.addAction),t},S.prototype.popoverListItems=function(){var e=this;return[{name:d.getLocalization("Run Query Builder","DataAccessUIStringId.Button_QueryBuilder"),addAction:function(){return e.addQuery()}},{name:d.getLocalization("Write Custom SQL","AnalyticsCoreStringId.SqlDSWizard_WriteCustomSQL"),addAction:function(){return e.addCustomQuery()}}]},S.prototype.showPopover=function(){this.popoverVisible(!0)};var b,g=S;function S(e,t,r,o,i,n){var a=b.call(this,e,t,r,o,n)||this;return a.addAction={clickAction:function(e){return a.disableCustomSql()?a.addQuery():a.showPopover()},imageClassName:"dxrd-image-add",imageTemplateName:"dxrd-svg-operations-add",templateName:"dx-treelist-action-with-popover",text:d.getLocalization("Add query","AnalyticsCoreStringId.SqlDSWizard_AddQuery")},a.itemClickAction=function(e){a.popoverVisible(!1),e.itemData.addAction()},a.className="dx-addqueries-popover",a.popoverVisible=l.observable(!1),a.path=e,a.addQuery=function(){i().showQbCallBack()},a.addCustomQuery=function(){i().showQbCallBack(null,!0)},a.disableCustomSql=function(){return i&&i().disableCustomSql},a.target="."+a.addAction.templateName,a}s.QueriesTreeNode=g;r(P,v=n),P.prototype.setObservableName=function(e){var t=this;this._name=e,["name","displayName"].forEach(function(e){return Object.defineProperty(t,e,{get:function(){return this._name()},set:function(e){return this._name(e)},configurable:!0})})},P.prototype.getActions=function(e){var t=[];return t.push(this.removeAction),t.push(this.editAction),t};var v,g=P;function P(e,t,r,o,i,n,a,s){var l=v.call(this,e,t,r,o,null,a)||this;return l.query=s,l.editAction={clickAction:function(e){return l.editQuery()},imageClassName:"dx-image-edit",imageTemplateName:"dxrd-svg-operations-edit",text:d.getLocalization("Edit query","AnalyticsCoreStringId.SqlDSWizard_EditQuery")},l.removeAction={clickAction:function(e){l.removeQuery({model:e.data})},imageClassName:"dxrd-image-recycle-bin",imageTemplateName:"dxrd-svg-operations-recycle_bin",text:d.getLocalization("Remove query","AnalyticsCoreStringId.SqlDSWizard_RemoveQuery")},l.parameters=i,l.removeQuery=function(e){e.model.unChecked()||e.model.toggleChecked(),n().deleteAction(e.model.name)},l.editQuery=function(e){n().showQbCallBack(l.name)},l.hasQuery=!0,l}s.TreeQueryNode=g;r(C,x=t);var x,n=C;function C(e,t,r,o,i,n,a){void 0===a&&(a=!1);e=x.call(this,e,t,r,o,n)||this;return e.visible=l.observable(!0),e.disabled=l.observable(!1),e.path=i,e.isComplex=r===s.defaultObjectDataSourceItemSpecifics,a&&(e.dragData={noDragable:!1}),e}s.FieldTreeNode=n;r(w,T=m),w.prototype.setChecked=function(e){T.prototype.setChecked.call(this,!!this.visible()&&e)};var T,g=w;function w(e,t,r,o,i,n){var a=T.call(this,e,t,r,o,n)||this;return a.visible=l.observable(!0),a.path=i,a.isComplex=a.isList&&r===s.defaultObjectDataSourceItemSpecifics,a.checked=l.pureComputed({read:function(){var t,r,e;return a.initialized()?(r=t=0,(e=a.children().filter(function(e){return e.visible()})).forEach(function(e){!0===e.checked()?t++:!1!==e.checked()&&r++}),(0!==t||0!==r)&&(t===e.length||void 0)):a._checked()}}),a}s.DataMemberTreeNode=g;r(D,O=g);var O,t=D;function D(e,t,r,o,i,n){var a=O.call(this,e,t,r,o,i,n)||this;return a.checked=l.pureComputed({read:function(){return a._checked()}}),a}s.SingleCheckedDataMemberTreeNode=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownSerializationsInfo=t.sizeLocation=t.location=t.size=t.text=t.name=void 0;var o=r(6),i=r(0),n=r(4),r=r(4);t.name={propertyName:"name",modelName:"@Name",displayName:"Name",editor:o.editorTemplates.getEditor("text"),validationRules:i.nameValidationRules},t.text={propertyName:"text",modelName:"@Text",displayName:"Text",editor:o.editorTemplates.getEditor("text")},t.size={propertyName:"size",modelName:"@Size",defaultVal:"100,50",from:n.Size.fromString,displayName:"Size",editor:o.editorTemplates.getEditor("objecteditor")},t.location={propertyName:"location",modelName:"@Location",from:r.Point.fromString,displayName:"Location",editor:o.editorTemplates.getEditor("objecteditor")},t.sizeLocation=[t.size,t.location],t.unknownSerializationsInfo=[t.name].concat(t.sizeLocation)},function(e,i,t){"use strict";var r;Object.defineProperty(i,"__esModule",{value:!0}),i.determineConnectingPoints=i.GRID_SIZE=i.PointSide=void 0,(r=i.PointSide||(i.PointSide={}))[r.East=0]="East",r[r.South=1]="South",r[r.North=2]="North",r[r.West=3]="West",i.GRID_SIZE=10,i.determineConnectingPoints=function(e,t){var r,o={start:null,end:null};return t.leftConnectionPoint.location.x()>e.rightConnectionPoint.location.x()+2*i.GRID_SIZE?(o.start=e.rightConnectionPoint,o.end=t.leftConnectionPoint):e.leftConnectionPoint.location.x()>t.rightConnectionPoint.location.x()+2*i.GRID_SIZE?(o.start=e.leftConnectionPoint,o.end=t.rightConnectionPoint):(r=(e.rightConnectionPoint.location.x()+e.rightConnectionPoint.location.x())/2,(t.rightConnectionPoint.location.x()+t.rightConnectionPoint.location.x())/2<r?(o.start=e.rightConnectionPoint,o.end=t.rightConnectionPoint):(o.start=e.leftConnectionPoint,o.end=t.leftConnectionPoint)),o}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPointSurface=void 0,r(2)),r=r(4),r=(i=r.SurfaceElementBase,n(s,i),s.prototype.container=function(){return this.getRoot()},s._unitProperties={_x:function(e){return e.location.x},_y:function(e){return e.location.y}},s);function s(e,t){var r=i.call(this,e,t,s._unitProperties)||this;return r.template="dx-diagram-connection-point",r.selectiontemplate="dx-diagram-connection-point",r.relativeX=a.pureComputed(function(){return r.rect().left-r.parent.rect().left}),r.relativeY=a.pureComputed(function(){return r.rect().top-r.parent.rect().top}),r}t.ConnectionPointSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectDataSource=void 0,r(2)),s=r(1),l=r(0),r=(i=s.Disposable,n(c,i),c.prototype.setState=function(e){this.ctor=e.ctor,this.dataMember=e.dataMember,this.selectedType=e.selectedType,this.id=l.guid().replace(/-/g,""),this.name(e.dataSourceName)},c);function c(){var e=null!==i&&i.apply(this,arguments)||this;return e.name=a.observable(),e}t.ObjectDataSource=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SourceQuery=t.sourceQuerySerializationsInfo=void 0,r(2)),s=r(7),l=r(1),c=r(15),r=r(1),c=(t.sourceQuerySerializationsInfo=[{propertyName:"queryType",modelName:"@QueryType"},c.name,c.alias,{propertyName:"sourceName",modelName:"@SourceName"}],n=r.Disposable,i(d,n),d.prototype.getInfo=function(){return t.sourceQuerySerializationsInfo},d.prototype.getPath=function(){return this._sourcePath||(this.name()?this.name()===this.sourceName()?this.name():this.sourceName().slice(0,this.sourceName().indexOf(this.name())-1)+"."+this.name():void 0)},d);function d(e,t,r,o){var i=n.call(this)||this;return i._sourcePath=o,e["@SourceName"]=e["@SourceName"]||r,(t||new l.ModelSerializer).deserialize(i,e),i._disposables.push(i.queryType=a.pureComputed(function(){return s.FederationQueryType[s.FederationQueryType.SourceNode]})),i}t.SourceQuery=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorTemplates=void 0;r=r(6);t.editorTemplates=new r.EditorTemplates},function(e,t){e.exports=DevExpress.Analytics.Criteria},function(e,t){e.exports=DevExpress.Analytics.Criteria.Utils},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryElementBaseViewModel=void 0,r(4)),s=r(21),r=(i=a.ElementViewModel,n(l,i),l.prototype.getControlFactory=function(){return s.controlsFactory},l);function l(e,t,r){return i.call(this,e,t,r)||this}t.QueryElementBaseViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapGetFederationdResultSchema=t.wrapRebuildResultSchema=t.wrapGetSelectStatement=void 0;var i=r(11);t.wrapGetSelectStatement=function(r){return function(e,t){return r?r(e,t):(new i.RequestWrapper).getSelectStatement(e,t)}},t.wrapRebuildResultSchema=function(o){return function(e,t,r){return o?o(e,t,r):(new i.RequestWrapper).rebuildResultSchema(e,t,r)}},t.wrapGetFederationdResultSchema=function(t){return function(e){return t?t(e):(new i.RequestWrapper).getFederationResultSchema(e)}}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWizard=void 0,r(2)),s=r(3),l=r(159),c=r(1),d=r(0),u=r(6),r=(i=l.BaseWizard,n(p,i),p._getLoadPanelViewModel=function(e,t){e=s(e).closest(".dxrd-wizard-content");return{animation:{show:{type:"fade",from:0,to:1,duration:700},hide:{type:"fade",from:1,to:0,duration:700}},deferRendering:!1,message:c.getLocalization("Loading...","AnalyticsCoreStringId.Loading"),visible:t,shading:!0,shadingColor:"transparent",position:{of:e},container:e}},p.prototype.start=function(){i.prototype.start.call(this),this.isVisible(!0)},p.prototype._wizardPopupPosition=function(e){return{of:d.getParentContainer(e)}},p.prototype._loadPanelViewModel=function(e){return this._getLoadPanelViewModel(e,this.isLoading)},p.prototype._getLoadPanelViewModel=function(e,t){return p._getLoadPanelViewModel(e,t)},p);function p(e,t){var r=i.call(this,e,t)||this;return r.height=a.observable(520),r.width=a.observable(690),r._extendCssClass="",r._container=d.getParentContainer,r.itemsProvider=a.observable(),r.nextButton={text:c.getLocalization("Next","AnalyticsCoreStringId.Wizard_Next"),disabled:a.computed(function(){return!r.canNext()}),onClick:function(){return r.nextAction()}},r.cancelButton={text:c.getLocalization("Cancel","AnalyticsCoreStringId.SearchDialog_Cancel"),onClick:function(){r.iterator.dispose(),r.isVisible(!1)}},r.previousButton={text:c.getLocalization("Previous","AnalyticsCoreStringId.Wizard_Previous"),disabled:a.computed(function(){return r.isFirstPage()}),onClick:function(){return r.previousAction()}},r.finishButton={text:c.getLocalization("Finish","AnalyticsCoreStringId.Wizard_Finish"),type:"default",disabled:a.computed(function(){return!r.canFinish()}),onClick:function(){return r.finishAction()}},r._titleTemplate=u.getTemplate("dx-wizard-headerNew"),r.title="Popup Wizard",r}t.PopupWizard=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnExpression=void 0;var n=r(2),a=r(1),s=r(29),l=r(0),o=r(35),c=r(30),d=r(30);function i(e,r,t){var o=this;if((t=t||new a.ModelSerializer).deserialize(this,e),this._dependedTables=[],this.table()){var i=r.getTable(this.table());this.table=n.pureComputed(function(){return i.actualName()}),this._dependedTables.push(i)}else if(this.expression())try{this._criteria=d.CriteriaOperatorStateMachine.parse(this.expression()),c.criteriaForEach(this._criteria,function(t){var e;t instanceof s.OperandProperty&&((e=l.findFirstItemMatchesCondition(r.tables(),function(e){return 0===t.propertyName.indexOf(e.actualName()+".")}))&&o._dependedTables.push(e))})}catch(e){}this.__table=this.table,this.__column=this.column,this.__expression=this.expression}i.prototype.actualName=function(){return this.alias()||this.column()},i.prototype.toTable=function(){this.table=this.__table,this.column=this.__column,this.expression=n.observable(null),this.itemType(o.ColumnType[o.ColumnType.Column]),this.__column.peek()&&0===this.alias().indexOf("Expr")&&this.alias(null)},i.prototype.getInfo=function(){return o.columnExpressionSerializationsInfo},i.prototype.isDepended=function(t){return!!l.findFirstItemMatchesCondition(this._dependedTables,function(e){return e.actualName()===t})},t.ColumnExpression=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.columnExpressionSerializationsInfo=t.ColumnType=void 0;r=r(36);t.ColumnType={RecordsCount:"RecordsCount",Column:"Column",Expression:"Expression",AllColumns:"AllColumns",AllColumnsQuery:"AllColumnsQuery"},t.columnExpressionSerializationsInfo=[{propertyName:"expression",modelName:"#text"},{propertyName:"table",modelName:"@Table"},{propertyName:"column",modelName:"@Name"},{propertyName:"aggregate",modelName:"@Aggregate",defaultVal:r.AggregationType.None},{propertyName:"alias",modelName:"@Alias"},{propertyName:"descending",modelName:"@Descending",defaultVal:!1},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.columnSerializationInfo=t.AggregationType=void 0;var o=r(15),r=r(28);t.AggregationType={None:"None",Count:"Count",Max:"Max",Min:"Min",Avg:"Avg",Sum:"Sum",CountDistinct:"CountDistinct",AvgDistinct:"AvgDistinct",SumDistinct:"SumDistinct"},t.columnSerializationInfo=[o.name,{propertyName:"displayType",displayName:"Type",localizationId:"DataAccessUIStringId.ParametersColumn_Type",disabled:!0,editor:r.editorTemplates.getEditor("text")},{propertyName:"alias",displayName:"Alias",localizationId:"DataAccessUIStringId.QueryBuilderColumns_Alias",editor:r.editorTemplates.getEditor("text")},o.selected,{propertyName:"sortingType",displayName:"Sort Type",editor:r.editorTemplates.getEditor("combobox"),defaultVal:"Unsorted",valuesArray:[{value:"Unsorted",displayValue:"Unsorted",localizationId:"DataAccessUIStringId.SortingTypeNone"},{value:"Ascending",displayValue:"Ascending",localizationId:"DataAccessUIStringId.SortingTypeAscending"},{value:"Descending",displayValue:"Descending",localizationId:"DataAccessUIStringId.SortingTypeDescending"}],localizationId:"AnalyticsCoreStringId.QueryBuilder_SortType"},{propertyName:"sortOrder",displayName:"Sort Order",editor:r.editorTemplates.getEditor("numeric"),localizationId:"DataAccessUIStringId.QueryBuilderColumns_SortOrder"},{propertyName:"groupBy",displayName:"Group By",editor:r.editorTemplates.getEditor("bool"),defaultVal:!1,localizationId:"DataAccessUIStringId.QueryBuilderColumns_GroupBy"},{propertyName:"aggregate",displayName:"Aggregate",editor:r.editorTemplates.getEditor("comboboxUndo"),values:t.AggregationType,defaultVal:t.AggregationType.None,localizationId:"DataAccessUIStringId.QueryBuilderColumns_Aggregate"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParametersMode=void 0,t.ParametersMode={ReadWrite:"ReadWrite",Read:"Read",Disabled:"Disabled"}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramElementBaseSurface=void 0,r(2)),s=r(4),l=r(0),r=(i=s.SurfaceElementBase,n(c,i),c._unitProperties={_height:function(e){return e.size.height},_width:function(e){return e.size.width},_x:function(e){return e.location.x},_y:function(e){return e.location.y}},c);function c(e,t,r){var o=i.call(this,e,t,l.extend({},c._unitProperties,r))||this;return o.template="dx-diagram-element",o.selectiontemplate="dx-diagram-element-selection",o.contenttemplate="dx-diagram-element-content",o.margin=a.observable(0),o._disposables.push(o.positionWidthWithoutMargins=a.pureComputed(function(){return o.position.width()-2*o.margin()})),o._disposables.push(o.positionLineHeightWithoutMargins=a.pureComputed(function(){return o.position.lineHeight()-2*o.margin()})),o}t.DiagramElementBaseSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.connectingPointSerializationInfo=t.ConnectingPointViewModel=void 0,r(2)),s=r(4),l=r(24),c=r(16),d=r(4),u=r(1),p=r(0),r=(i=c.DiagramElementBaseViewModel,n(f,i),f);function f(e,t,r){var o=i.call(this,p.extend({"@ControlType":"ConnectingPoint"},e),t,r)||this;return o.side=a.pureComputed(function(){return o.percentOffsetY()>=o.percentOffsetX()?o.percentOffsetY()>1-o.percentOffsetX()?l.PointSide.South:l.PointSide.West:o.percentOffsetY()>1-o.percentOffsetX()?l.PointSide.East:l.PointSide.North}),o.size=new d.Size(7,7),o.location=new s.Point(0,0),o.location.x=a.pureComputed(function(){var e=o.parentModel();return e.location.x()+e.size.width()*o.percentOffsetX()}),o.location.y=a.pureComputed(function(){var e=o.parentModel();return e.location.y()+e.size.height()*o.percentOffsetY()}),o}t.ConnectingPointViewModel=r,t.connectingPointSerializationInfo=[{propertyName:"percentOffsetX",modelName:"@PercentOffsetX",defaultVal:.5,from:u.floatFromModel},{propertyName:"percentOffsetY",modelName:"@PercentOffsetY",defaultVal:.5,from:u.floatFromModel}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomSqlQuery=void 0;var o=r(2),i=r(7),n=r(1),a=r(1),s=r(13),l=r(140),c=r(0);function d(e,t,r){this.parent=t,(r||new n.ModelSerializer).deserialize(this,c.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.customSqlQuery}),this.parameters=a.deserializeArray(e.Parameters,function(e){return new s.DataSourceParameter(e,r)})}d.prototype.getInfo=function(){return l.customQuerySerializationsInfo},d.prototype.generateName=function(){return"CustomSqlQuery"},t.CustomSqlQuery=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storedProcParameterSerializationsInfo=t.dsParameterSerializationInfo=t.parameterValueSerializationsInfo=t.dsParameterNameValidationRules=t.validateName=void 0;var o=r(1),i=r(6),n=r(0),a=r(0);function s(e){return e&&!e.match(/[~`!"№;%\^:\?*\(\)&\-\+={}\[\]\|\\\/,\.<>'\s]/)}t.validateName=s,t.dsParameterNameValidationRules=[{type:"custom",validationCallback:function(e){return s(e.value)},get message(){return o.getLocalization("Name is required and should be a valid identifier.","AnalyticsCoreStringId.NameIsRequired_Error")}}],t.parameterValueSerializationsInfo={propertyName:"value",displayName:"Value",localizationId:"DevExpress.DataAccess.Parameter.Value",editor:i.editorTemplates.getEditor("text")};var l={propertyName:"name",displayName:"Name",localizationId:"DevExpress.DataAccess.Parameter.Name",validationRules:t.dsParameterNameValidationRules,editor:i.editorTemplates.getEditor("text")},c={propertyName:"type",displayName:"Type",localizationId:"DevExpress.DataAccess.Parameter.Type",modelName:"@Type",editor:i.editorTemplates.getEditor("combobox"),valuesArray:[{value:"System.String",displayValue:"String",localizationId:"AnalyticsCoreStringId.Parameter_Type_String"},{value:"System.DateTime",displayValue:"Date",localizationId:"AnalyticsCoreStringId.Parameter_Type_DateTime"},{value:"System.Int16",displayValue:"Number (16 bit integer)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Int16"},{value:"System.Int32",displayValue:"Number (32 bit integer)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Int32"},{value:"System.Int64",displayValue:"Number (64 bit integer)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Int64"},{value:"System.Single",displayValue:"Number (floating-point)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Float"},{value:"System.Double",displayValue:"Number (double-precision floating-point)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Double"},{value:"System.Decimal",displayValue:"Number (decimal)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Decimal"},{value:"System.Boolean",displayValue:"Boolean",localizationId:"AnalyticsCoreStringId.Parameter_Type_Boolean"},{value:"System.Guid",displayValue:"Guid",localizationId:"AnalyticsCoreStringId.Parameter_Type_Guid"},{value:n.ExpressionType,displayValue:"Expression",localizationId:"DataAccessUIStringId.ParametersColumn_Expression"}]},d={propertyName:"resultType",displayName:"Result Type",localizationId:"DataAccessWebStringId.QueryBuilder_ResultType",modelName:"@ResultType",editor:i.editorTemplates.getEditor("combobox"),valuesArray:c.valuesArray.filter(function(e){return!n.IsDataAccessExpression(e.value)})},u=[{propertyName:"_name",modelName:"@Name"},{propertyName:"_value",modelName:"#text"},t.parameterValueSerializationsInfo,{propertyName:"itemType",modelName:"@ItemType"}],p=(t.dsParameterSerializationInfo=[l,c,d].concat(u),[{value:"System.Byte",displayValue:"Non-negative number (8 bit integer)",localizationId:"DataAccessStringId.Type_Byte"},{value:"System.SByte",displayValue:"Number (8 bit integer)",localizationId:"DataAccessStringId.Type_SByte"},{value:"System.UInt32",displayValue:"Non-negative number (32 bit integer)",localizationId:"DataAccessStringId.Type_UInt"},{value:"System.UInt16",displayValue:"Non-negative number (16 bit integer)",localizationId:"DataAccessStringId.Type_UShort"},{value:"System.UInt64",displayValue:"Non-negative number (64 bit integer)",localizationId:"DataAccessStringId.Type_ULong"},{value:"System.Char",displayValue:"Char",localizationId:"DataAccessStringId.Type_Char"},{value:"System.Object",displayValue:"Object",localizationId:"DataAccessStringId.Type_Object"},{value:"System.Byte[]",displayValue:"Byte array",localizationId:"DataAccessStringId.Type_ByteArray"},{value:"System.TimeSpan",displayValue:"Time interval",localizationId:"DataAccessStringId.Type_TimeSpan"}]);t.storedProcParameterSerializationsInfo=function(t){var e=a.extend(!0,{},c),r=[],o=(r.push(c.valuesArray.filter(function(e){return e.value===t})[0]||p.filter(function(e){return e.value===t})[0]),r.push(c.valuesArray.filter(function(e){return n.IsDataAccessExpression(e.value)})[0]),e.valuesArray=r,a.extend(!0,{},d));return o.valuesArray=r.slice(0,0),o.disabled=!0,[a.extend({disabled:!0},l),e,o].concat(u)}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailRelation=void 0,r(2)),s=r(1),l=r(1),c=r(141),d=r(0),r=(i=s.Disposable,n(u,i),u.prototype.dispose=function(){i.prototype.dispose.call(this),this.disposeObservableArray(this.keyColumns)},u.prototype.createKeyColumn=function(){var e={masterColumn:a.observable(),detailColumn:a.observable(),itemType:"KeyColumn"};this.keyColumns.push(e)},u.prototype.getInfo=function(){return c.masterDetailRelationSerializationsInfo},u);function u(e,t){var r=i.call(this)||this;return r.name=a.pureComputed({read:function(){return r._customName()||r.masterQuery()+r.detailQuery()},write:function(e){r._customName(e)},deferEvaluation:!0}),(t||new l.ModelSerializer).deserialize(r,d.extend(e,{"@ItemType":"Relation"})),r._disposables.push(r.name),r}t.MasterDetailRelation=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableQuery=void 0;var o=r(2),i=r(7),n=r(1),a=r(1),s=r(13),l=r(143),c=r(0);function d(e,t,r){this.parent=t,(r||new n.ModelSerializer).deserialize(this,c.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.tableQuery}),this.parameters=a.deserializeArray(e.Parameters,function(e){return new s.DataSourceParameter(e,r)})}d.prototype.tables=function(){return this._tablesObject.tables()},d.prototype.getInfo=function(){return l.tableQuerySerializationsInfo},d.prototype.generateName=function(){return 0<this.tables().length?this.tables()[0].alias()||this.tables()[0].name():"SelectQuery"},t.TableQuery=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StoredProcQuery=void 0;var o=r(2),i=r(7),n=r(1),a=r(1),s=r(13),l=r(0),c=r(41),d=r(144),u=r(0);function p(e,t,r){this.parent=t,(r||new n.ModelSerializer).deserialize(this,u.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.storedProcQuery}),this.parameters=a.deserializeArray(e.Parameters,function(e){var t=e["@Type"];return l.IsDataAccessExpression(t)&&(t=e["@ResultType"]||t),new s.DataSourceParameter(e,r,c.storedProcParameterSerializationsInfo(t))})}p.prototype.getInfo=function(){return d.storedProcQuerySerializationsInfo},p.prototype.generateName=function(){return this.procName()||"Query"},t.StoredProcQuery=p},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationSource=void 0,r(1)),s=r(1),l=r(0),c=r(96),r=(n=a.Disposable,i(d,n),d.prototype.getInfo=function(){return c.sourceSerializationInfo},d.prototype.getDataSourceName=function(){return this.hasDataMember()?this.sourceName().slice(0,this.sourceName().indexOf(this.dataMember())-1):this.sourceName()},d.prototype.getPath=function(){return this.getDataSourceName()+(this.hasDataMember()?"."+this.dataMember():"")},d.prototype.hasDataMember=function(){return this.dataMember()&&0!==this.sourceName().indexOf(this.dataMember())},d);function d(e,t,r,o){var i=n.call(this)||this;return t=t||new s.ModelSerializer,r&&1<(r=r.split(".")).length&&(e["@DataMember"]=r.slice(1).join("_")),o&&(e["@SourceName"]=o),t.deserialize(i,l.extend(e,{"@ItemType":"Source"})),i}t.FederationSource=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTransformationRule=t.TransformQuery=t.transformationRuleSerializationsInfo=t.transformQuerySerializationsInfo=void 0,r(2)),s=r(7),l=r(1),c=r(0),d=r(27),u=r(1),p=r(45),r=(t.transformQuerySerializationsInfo=[{propertyName:"queryType",modelName:"@QueryType"},{propertyName:"alias",modelName:"@Alias"},{propertyName:"transformationRules",modelName:"TransformationRules",array:!0},{propertyName:"root",modelName:"Root"},{propertyName:"itemType",modelName:"@ItemType"}],t.transformationRuleSerializationsInfo=[{propertyName:"name",modelName:"@Name"},{propertyName:"alias",modelName:"@Alias"},{propertyName:"unfold",modelName:"@Unfold"},{propertyName:"flatten",modelName:"@Flatten"},{propertyName:"itemType",modelName:"@ItemType"}],i=u.Disposable,n(f,i),Object.defineProperty(f.prototype,"sources",{get:function(){return a.observableArray([new p.FederationSource({},new l.ModelSerializer,this.root().getPath(),this.root().sourceName())])},enumerable:!1,configurable:!0}),f.prototype.getInfo=function(){return t.transformQuerySerializationsInfo},f.prototype.generateName=function(){return this.root()&&this.root().sourceName().split("_").pop()},f);function f(e,t){var r=i.call(this)||this;return(t||new l.ModelSerializer).deserialize(r,c.extend(e,{"@ItemType":"Query"})),r._disposables.push(r.queryType=a.pureComputed(function(){return s.FederationQueryType[s.FederationQueryType.TransformationNode]})),r.transformationRules=u.deserializeArray(e.TransformationRules,function(e){return new m(e,t)}),e.Root&&(r.root=a.observable(new d.SourceQuery(e.Root,t))),r}t.TransformQuery=r;y.prototype.getInfo=function(){return t.transformationRuleSerializationsInfo};var m=y;function y(e,t){(t||new l.ModelSerializer).deserialize(this,c.extend(e,{"@ItemType":"TransformationRule"}))}t.FederationTransformationRule=m},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.UnionQuery=t.UnionTypes=t.unionQuerySerializationsInfo=void 0,r(2)),s=r(7),l=r(1),c=r(1),d=r(98),u=r(0),r=(t.unionQuerySerializationsInfo=[{propertyName:"queryType",modelName:"@QueryType"},{propertyName:"unionType",modelName:"@UnionType"},{propertyName:"alias",modelName:"@Alias"},{propertyName:"queries",modelName:"UnionElements",array:!0}],(r=t.UnionTypes||(t.UnionTypes={}))[r.Union=0]="Union",r[r.UnionAll=1]="UnionAll",i=d.FederatedQueriesContainer,n(p,i),p.prototype.getInfo=function(){return t.unionQuerySerializationsInfo},p.prototype.generateName=function(){return this.queries()[0]&&this.queries()[0].alias().split("_").pop()},p);function p(e,t,r){var o=i.call(this,e,t,r)||this;return(r||new l.ModelSerializer).deserialize(o,u.extend(e,{"@ItemType":"Query"})),o._disposables.push(o.queryType=a.pureComputed(function(){return s.FederationQueryType[s.FederationQueryType.UnionNode]})),o.queries=c.deserializeArray(e.UnionElements,function(e){return o.createQuery(e)}),o}t.UnionQuery=r},function(e,t,r){"use strict";var o,i,n,a=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseDataSourceTypePage=t.ChooseDataSourceTypePage=t.TypeItem=t.DataSourceType=void 0,r(2)),l=r(3),c=r(1),d=r(0),u=r(5),p=r(9),f=r(14),m=((r=i=t.DataSourceType||(t.DataSourceType={}))[r.NoData=0]="NoData",r[r.Sql=1]="Sql",r[r.Json=2]="Json",r[r.Object=3]="Object",r[r.Federation=4]="Federation",function(e,t,r,o,i){this.text=c.getLocalization(e,t),this.imageClassName=r,this.imageTemplateName=o,this.type=i}),y=(t.TypeItem=m,n=p.WizardPageBase,a(h,n),h.prototype.canNext=function(){return null!=this.selectedItem()},h.prototype.canFinish=function(){return!1},h.prototype._goToNextPage=function(){this[f.__nextActionFunctionName]&&this[f.__nextActionFunctionName]()},h.prototype.commit=function(){return l.Deferred().resolve({dataSourceType:this.selectedItem().type}).promise()},h.prototype._createTypeItems=function(){var e=[];return this._dataSourceTypeOptions.sqlDataSourceAvailable&&e.push(new m("Database","DataAccessUIStringId.DSTypeSql","sqldatasource","dxrd-svg-wizard-SqlDataSource",i.Sql)),this._dataSourceTypeOptions.jsonDataSourceAvailable&&e.push(new m("JSON","DataAccessUIStringId.DSTypeJson","jsondatasource","dxrd-svg-wizard-JsonDataSource",i.Json)),this._dataSourceTypeOptions.objectDataSourceAvailable&&e.push(new m("Object","DataAccessUIStringId.DSTypeObject","objectdatasource","dxrd-svg-wizard-ObjectDataSource",i.Object)),this._dataSourceTypeOptions.federationDataSourceAvailable&&e.push(new m("Data Federation","DataAccessUIStringId.DSTypeFederation","federationdatasource","dxrd-svg-wizard-FederationDataSource",i.Federation)),e},h.prototype.initialize=function(e){var t;return this.typeItems&&0!==this.typeItems.length?(t=void 0!==e.dataSourceType?e.dataSourceType:this.typeItems[0].type,this.selectedItem(d.findFirstItemMatchesCondition(this.typeItems,function(e){return e.type===t}))):this.selectedItem(null),l.Deferred().resolve().promise()},h);function h(e){var t=n.call(this)||this;return t._dataSourceTypeOptions=e,t._itemClick=function(e){t.selectedItem(e)},t._IsSelected=function(e){return t.selectedItem().type===e.type},t.selectedItem=s.observable(),t.typeItems=t._createTypeItems(),t._disposables.push(t.selectedItem.subscribe(function(){return t._onChange()})),t._extendCssClass=l.noop,t}t.ChooseDataSourceTypePage=y,t._registerChooseDataSourceTypePage=function(e,t){e.registerMetadata(u.DataSourceWizardPageId.ChooseDataSourceTypePage,{setState:function(e,t){t.dataSourceType=e.dataSourceType},getState:function(e){return e},resetState:function(e,t){e.dataSourceType=t.dataSourceType},create:function(){return new y(t)},description:c.getLocalization("Select the data source type.","DataAccessUIStringId.WizardPageChooseDSType"),template:"dxrd-page-choose-datasource-type"})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._SqlDataSourceWrapper=void 0;var i=r(91),o=r(1);function n(e,r,t){var o=this;this.sqlDataSourceJSON=e,this.customQueries=[],this.sqlDataSource=new i.SqlDataSource(e?JSON.parse(e):{},void 0,t),r?this.sqlDataSource.queries().some(function(e,t){return e.name()===r&&(o._queryIndex=t,!0)}):this._queryIndex=this.sqlDataSource.queries().length}Object.defineProperty(n.prototype,"sqlQuery",{get:function(){return this.sqlDataSource.queries()[this._queryIndex]},set:function(e){e&&(e.parent=this.sqlDataSource),this.sqlDataSource.queries()[this._queryIndex]=e},enumerable:!1,configurable:!0}),n.prototype.saveCustomQueries=function(){var t=new o.ModelSerializer;return 0<this.customQueries.length&&this.customQueries.map(function(e){return JSON.stringify(t.serialize(e))})},n.prototype.save=function(){return JSON.stringify((new o.ModelSerializer).serialize(this.sqlDataSource))},t._SqlDataSourceWrapper=n},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseJsonSourcePage=t.ChooseJsonSourcePage=void 0,r(2)),s=r(3),l=r(12),c=r(151),d=r(11),u=r(63),p=r(1),f=r(1),m=r(5),y=r(106),r=r(9),h=(i=r.WizardPageBase,n(g,i),g.prototype._onValidationGroupInitialized=function(e){this.__validationGroup=e.component},g.prototype._onValidationGroupDisposing=function(e){this.__validationGroup=null},g.prototype._onValidationSummaryInitialized=function(e){var t=this;this.__validationSummary=e.component,this.__validationGroup&&this.__validationSummary&&this._connectionName&&this._connectionName()&&setTimeout(function(){t.__validationGroup&&t.__validationGroup.validate()},1)},g.prototype._onValidationSummaryDisposing=function(e){this.__validationSummary=null},g.prototype.canNext=function(){var e=!!this._connectionName(),t=this._selectedSource().isValid(),r=this._selectedSource().isEmpty();return e&&t&&!r},g.prototype.commit=function(){var e=new u.JsonDataSource({}),e=(this._selectedSource().applySettings(e),(new p.ModelSerializer).serialize(e));return s.Deferred().resolve({jsonSource:JSON.stringify(e.Source),newConnectionName:this._connectionName()}).promise()},g.prototype.initialize=function(e){this.__validationGroup=null,this.__validationSummary=null;e=l._restoreJsonDataSourceFromState(e);return e.source.uri()?this._selectedSource(this._jsonUriSetting):e.source.json()&&this._selectedSource(this._jsonStringSettings),this._selectedSource().setValue(e),s.Deferred().resolve().promise()},g);function g(e,t){void 0===e&&(e=new d.RequestWrapper);var r=i.call(this)||this,o=(r._requestWrapper=e,r.__validationGroup=null,r.__validationSummary=null,r._jsonSourceTitle=f.getLocalization("JSON Source:","DataAccessUIStringId.WizardPageChooseJsonSource_SourceType"),r._jsonConnectionTitle=f.getLocalization("Connection Name:","AnalyticsCoreStringId.ReportDesigner_Wizard_Json_ConnectionName"),r._connectionNameValidationRules=[{type:"required",get message(){return y.getLocalizedValidationErrorMessage(null,this._jsonConnectionTitle)}}],r._connectionName=a.observable(""),r._validationGroup={onInitialized:function(e){return r._onValidationGroupInitialized(e)},onDisposing:function(e){return r._onValidationGroupDisposing(e)}},r._validationSummary={onInitialized:function(e){return r._onValidationSummaryInitialized(e)},onDisposing:function(e){return r._onValidationSummaryDisposing(e)}},r._sources=[],r._disposables.push(r._jsonStringSettings=new c.JsonDataSourceJsonSourcePageStringSettings),r._jsonStringSettings.onChange(function(){return r._onChange()}),r._disposables.push(r._jsonUriSetting=new c.JsonDataSourceJsonSourcePageUriSettings(r._requestWrapper,t)),r._jsonUriSetting.onChange(function(){return r._onChange()}),r._sources=[{value:r._jsonUriSetting,displayValue:"Web Service Endpoint (URI)",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_SourceType_Uri"},{value:r._jsonStringSettings,displayValue:"JSON String",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_SourceType_Custom"}],a.observable());return r._selectedSource=a.pureComputed({read:function(){return o()},write:function(e){o()!==e&&(o(e),e._validatorsReady&&e._validatorsReady(!1),setTimeout(function(){e._validate&&e._validate()},1),r._onChange())}}),r._selectedSource(r._sources[0].value),r._disposables.push(r._selectedSource),r._disposables.push(r._connectionName.subscribe(function(){return r._onChange()})),r}t.ChooseJsonSourcePage=h,t._registerChooseJsonSourcePage=function(e,t,r){e.registerMetadata(m.JsonDataSourceWizardPageId.ChooseJsonSourcePage,{setState:function(e,t){t.jsonSource=e.jsonSource,t.newConnectionName=e.newConnectionName},getState:function(e){return e.jsonDataSourceWizard},resetState:function(e,t){e.jsonSource=t.jsonSource},create:function(){return new h(t,r&&r())},description:f.getLocalization("Create a data connection.","AnalyticsCoreStringId.JsonDSWizard_CreateNewConnectionPage_Description"),template:"dxrd-page-jsonsource"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.PageIterator=void 0,r(3)),s=r(1),l=r(100),r=(i=s.Disposable,n(c,i),c.prototype.dispose=function(){this._pages.forEach(function(e){return e.dispose()}),this._pages=[]},c.prototype.__resetPages=function(e){if(e<this._pages.length)for(var t=this._pages.length-1;e<=t;t--)this.stateManager.resetPageState(this._pages[t].pageId),this._onResetPage(this._pages[t]),this._pages[t].dispose(),this._pages.splice(t,1)},c.prototype._nextPage=function(){return this._pages[this._currentIndex+1]},c.prototype._getNextExistingPage=function(){this._currentIndex+=1;var e=a.Deferred();return e.resolve(this._pages[this._currentIndex]),e.promise()},c.prototype._resetPages=function(){this.__resetPages(this._currentIndex+1)},c.prototype._getNextNewPage=function(e){this._currentIndex+=1;var t=a.Deferred(),r=(this.__resetPages(this._currentIndex),this.pageFactory.getMetadata(e)),e=new l._WrappedWizardPage(e,r.create(),r.template,r.description);return this._pages.push(e),t.resolve(e),t.promise()},c.prototype._getStartPage=function(e){e=e||this.getNextPageId();var t=this.pageFactory.getMetadata(e),e=new l._WrappedWizardPage(e,t.create(),t.template,t.description);return this._pages.push(e),e},c.prototype._getNextPage=function(){var e,t=this._getCurrentPage();return t.isChanged||!this._nextPage()?(e=this.getNextPageId(this._getCurrentPage().pageId))?(t.isChanged=!1,this._getNextNewPage(e)):a.Deferred().reject().promise():this._getNextExistingPage()},c.prototype._getPreviousPage=function(){var e=a.Deferred();return this._currentIndex-1<0?e.reject(null):(--this._currentIndex,e.resolve(this._pages[this._currentIndex])),e.promise()},c.prototype._goToPage=function(t){var e=a.Deferred(),r=this._pages.filter(function(e){return e.pageId===t})[0];return r?(this._currentIndex=this._pages.indexOf(r),e.resolve(r)):e.reject(null),e.promise()},c.prototype._getCurrentPage=function(){return this._pages[this._currentIndex]},c.prototype._getCurrentState=function(){return this.stateManager.getCurrentState()},c.prototype.getNextPageId=function(e){return""},c);function c(e,t,r){void 0===r&&(r=function(){});var o=i.call(this)||this;return o.pageFactory=e,o.stateManager=t,o._onResetPage=r,o._pages=[],o._currentIndex=0,o}t.PageIterator=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySurface=void 0,r(2)),s=r(4),l=r(0),c=r(1),d=r(0),r=(i=s.SurfaceElementBase,n(u,i),u.prototype.checkParent=function(e){return!1},u.prototype.getChildrenCollection=function(){return this.tables},u.prototype.isJoined=function(e){return-1<this._joinedColumns().indexOf(e.getControlModel())},u._unitProperties={_width:function(e){return e.pageWidth},_height:function(e){return e.pageWidth},pageWidth:function(e){return e.pageWidth},pageHeight:function(e){return e.pageHeight},_bottom:function(e){return e.margins.bottom},_left:function(e){return e.margins.left},_right:function(e){return e.margins.right},_top:function(e){return e.margins.top}},u);function u(e,t){void 0===t&&(t=a.observable(1));var r=i.call(this,e,{measureUnit:a.observable("Pixels"),zoom:t,dpi:a.observable(100)},u._unitProperties)||this;return r.placeholder=function(){return c.getLocalization("Drop a table or view here to create a query.","AnalyticsCoreStringId.QueryBuilder_SurfacePlaceholder")},r.tables=a.observableArray(),r.relations=a.observableArray(),r.allowMultiselect=!1,r.focused=a.observable(!1),r.selected=a.observable(!1),r.underCursor=a.observable(new d.HoverInfo),r.templateName="dx-query-surface",r.rtl=a.observable(!1),r.measureUnit=r._context.measureUnit,r.dpi=r._context.dpi,(r._context=r).margins={bottom:r._bottom,left:r._left,right:r._right,top:r._top},r.zoom=t,l.createObservableArrayMapCollection(e.tables,r.tables,r._createSurface),l.createObservableArrayMapCollection(e.relations,r.relations,r._createSurface),r._joinedColumns=a.computed(function(){var t=[];return r.relations().forEach(function(e){e.conditions().forEach(function(e){e=e.getControlModel();e.parentColumn()&&t.push(e.parentColumn()),e.nestedColumn()&&t.push(e.nestedColumn())})}),t}),r}t.QuerySurface=r},function(e,t,r){"use strict";var o,l,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryViewModel=t.QueryViewModelBase=void 0,r(2)),n=r(31),s=r(54),d=r(34),a=r(18),u=r(37),p=r(1),f=r(1),m=r(35),y=r(65),h=r(75),g=r(0),_=r(172),b=r(36),S=r(55),v=r(176),P=r(4),x=r(0),C=r(1),T=r(0),w=r(123),O=r(0),D=r(0),r=(l=n.QueryElementBaseViewModel,i(N,l),N.prototype._initializeTable=function(t){this.dbSchemaProvider.getDbTable(t.name()).done(function(e){t.createColumns(e)})},N.prototype._addColumnsToTable=function(e,t){e._initColumns(t.map(function(e){return new a.DBColumn({Name:e.column()})}))},N.prototype.dispose=function(){l.prototype.dispose.call(this),this.onSave=null},N.prototype.addChild=function(e){e instanceof y.RelationViewModel?-1<this.relations.indexOf(e)||(e.parentModel(this),this.relations.push(e)):e instanceof s.TableViewModel?-1<this.tables.indexOf(e)||(e.parentModel(this),null!==O.getFirstItemByPropertyValue(this.tables(),"actualName",e.name())&&e.alias(g.getUniqueName(this.tables().map(function(e){return e.actualName()}),e.name()+"_")),this.tables.push(e)):T.NotifyAboutWarning("Attempt to add wrong child control.")},N.prototype.removeChild=function(t){if(t instanceof y.RelationViewModel){if(!(this.relations().length<1)){for(var e=t,r=this.relations().indexOf(e);0<e.conditions().length;)e.conditions.pop();this.relations.splice(r,1)}}else if(t instanceof s.TableViewModel){if(!(this.tables().length<1)){this.tables.splice(this.tables().indexOf(t),1);for(var o=this.relations(),i=o.length-1;-1<i;i--)o[i].parentTable()!==t&&o[i].nestedTable()!==t||this.removeChild(o[i]);this.sorting.remove(function(e){return e.isDepended(t.actualName())}),this.grouping.remove(function(e){return e.isDepended(t.actualName())}),this.columns.remove(function(e){return e.isDepended(t.actualName())})}}else T.NotifyAboutWarning("Attempt to remove wrong child control.")},N.prototype._validate=function(){if(0===this.tables().length)return!1;if(!(this.allColumnsInTablesSelected()||0<this.columns().length))return!1;var e=this.tables().map(function(e){return e.actualName()});return this._validateTable(e,e[0]),e.length<1},N.prototype._validateTable=function(t,r){var o=this,e=t.indexOf(r);e<0||(t.splice(e,1),this.relations().map(function(e){return e.parentTableName()===r?e.nestedTableName():e.nestedTableName()===r?e.parentTableName():null}).forEach(function(e){return o._validateTable(t,e)}))},N.prototype.createChild=function(e,t,r){return t?(this._initializeTable(t),this.addChild(t),t):l.prototype.createChild.call(this,e)},N.prototype.init=function(){var i=this,r=(this.tables().forEach(function(r){var o=[],e=i.sorting&&i.sorting()||[],t=i.grouping&&i.grouping()||[];[i.columns(),e,t].forEach(function(e){e.forEach(function(t){r.name()===t.table()&&t.itemType()===m.ColumnType.Column&&o.every(function(e){return e.column()!==t.column()})&&o.push(t)})}),i._addColumnsToTable(r,o),i._initializeTable(r)}),this.tables().reduce(function(e,t){return t.location.x(e),t.location.y(i.topOffset),e+t.size.width()+t.size.width()/2},30),!1);this._disposables.push(c.computed(function(){var e,t;r||(r=!0,t=(e=i.getAllColumns()).filter(function(e){return e.aggregate()===b.AggregationType.None}),i.aggregatedColumnsCount(e.length-t.length),e.length!==t.length?t.filter(function(e){return e.selected()&&!e.groupBy.peek()}).forEach(function(e){return e.groupBy(!0)}):e.every(function(e){return!e.selected.peek()||e.groupBy.peek()})||e.forEach(function(e){e.groupBy.peek()&&e.groupBy(!1)}),r=!1)}))},N.prototype.getTable=function(t){return O.findFirstItemMatchesCondition(this.tables(),function(e){return e.actualName()===t})},N.prototype.canSave=function(e){void 0===e&&(e=!0);var r=[];return this.tables().forEach(function(t){t.getInvalidColumns().forEach(function(e){r.push(x.formatUnicorn(C.getLocalization('The schema does not contain the following column: "{0}"."{1}".',"DataAccessStringId.ColumnNotInSchemaValidationException"),t.actualName(),e.actualName()))})}),!(0<r.length)||(e&&T.ShowMessage(r.join("\n"),"error"),!1)},N.prototype.save=function(){var e;if(this.canSave())return e=this.serialize(!0),this.onSave&&this.onSave(e),e},N.prototype.serialize=function(e){return(e=void 0===e?!1:e)?{Query:this.serialize()}:(new p.ModelSerializer).serialize(this)},N.prototype._findTableInAncestors=function(t,r){var o=this;return this.relations().some(function(e){return e.nestedTable()===t&&(e.parentTable()===r||o._findTableInAncestors(e.parentTable(),r))})},N.prototype._findHead=function(t){var r=null;return this.relations().some(function(e){return!!(r=e.nestedTable()===t?e:r)}),r?this._findHead(r.parentTable()):t},N.prototype._isHead=function(t){return!this.relations().some(function(e){return e.nestedTable()===t})},N.prototype._reverseRelations=function(e,t){t.forEach(function(e){var t=e.parentTable();e.parentTable(e.nestedTable()),e.nestedTable(t),e.conditions().forEach(function(e){var t=e.parentColumnName();e.parentColumnName(e.nestedColumnName()),e.nestedColumnName(t)})})},N.prototype.getAllColumns=function(){return[].concat.apply([],this.tables().map(function(e){return e.columns()}))},N.prototype.cerateJoinCondition=function(t,r){var o=t.parentModel(),i=r.parentModel();if(o===i)return null;var e,n,a=!1,s=O.findFirstItemMatchesCondition(this.relations(),function(e){return a=e.parentTable()===i&&e.nestedTable()===o,e.parentTable()===o&&e.nestedTable()===i||a});return s||(this._findTableInAncestors(o,i)?a=!0:this._findHead(o)===this._findHead(i)||this._isHead(i)||(n=this._findAncestorsRelations(o),e=this._findAncestorsRelations(i),n.outer>e.outer?this._reverseRelations(i,e.relations):n.outer<e.outer?(this._reverseRelations(o,n.relations),a=!0):n.inner>=e.inner?this._reverseRelations(i,e.relations):n.inner<e.inner&&(this._reverseRelations(o,n.relations),a=!0))),a&&(e=o,o=i,i=e,n=t,t=r,r=n),s=s||this.createChild({"@ControlType":"Relation","@Parent":o.actualName(),"@Nested":i.actualName(),"@Type":"Inner"}),O.findFirstItemMatchesCondition(s.conditions(),function(e){return e.parentColumn()===t&&e.nestedColumn()===r})||s.createChild({"@ControlType":"JoinCondition","@Parent":t.name(),"@Nested":r.name()})},N.prototype.tryToCreateRelationsByFK=function(e){},N.pageMargin=20,N);function N(e,t,r,o,i){void 0===r&&(r=u.ParametersMode.ReadWrite);function n(e){return!e.table()&&e.itemType()===m.ColumnType.AllColumns}var a=l.call(this,e,null,i)||this,s=(a.topOffset=65,a._findAncestorsRelations=function(t){var r={inner:0,outer:0,relations:[]};return a.relations().forEach(function(e){e.nestedTable()===t&&(r.relations.push(e),"LeftOuter"===e.joinType()?r.outer++:r.inner++,e=a._findAncestorsRelations(e.parentTable()),r.inner+=e.inner,r.outer+=e.outer,r.relations.push.apply(r.relations,e.relations))}),r},a.aggregatedColumnsCount=c.observable(0),a.defaultPageHeight=500,a.defaultPageWidth=500,a.dbSchemaProvider=t,a.onSave=o,a.editableName=c.observable(a.name()),a._disposables.push(a.name=c.pureComputed({read:a.editableName,write:function(e){}})),c.observable(0));a._disposables.push(a.pageWidth=c.pureComputed({read:function(){var t=a.defaultPageWidth;return a.tables().forEach(function(e){e=e.location.x()+e.size.width();t<e&&(t=e)}),Math.max(s(),t)},write:function(e){s(e)}})),a._disposables.push(a.pageHeight=c.pureComputed(function(){var t=a.defaultPageHeight;return a.tables().forEach(function(e){e=e.location.y()+e.size.height();t<e&&(t=e+E.pageMargin)}),t})),a.margins=P.Margins.fromString(),a._disposables.push(a.isValid=c.pureComputed(function(){return a._validate()}));return a._disposables.push(a.allColumnsInTablesSelected=c.pureComputed({read:function(){return a.columns().some(n)},write:function(e){e?a.columns.push(new d.ColumnExpression({"@ItemType":"AllColumns"},a,i)):a.columns.remove(n)}})),a.sorting||(a.sorting=c.observableArray([])),a.grouping||(a.grouping=c.observableArray([])),a}t.QueryViewModelBase=r;i(z,I=r),z.prototype.isPropertyDisabled=function(e){return"skip"===e&&(0===this.skip()&&!this.sorting().length)},z.prototype.getInfo=function(){return w.querySerializationsInfo},z.prototype.createChild=function(e){return I.prototype.createChild.call(this,e,"Table"===e["@ControlType"]?new s.TableViewModel(e,this):void 0)},z.prototype.tryToCreateRelationsByFK=function(n){var a=this;this.dbSchemaProvider.getDbSchema().done(function(t){var e=t.tables.filter(function(e){return e.name===n.name()})[0];e&&e.foreignKeys.forEach(function(e){var t=O.getFirstItemByPropertyValue(a.tables.peek(),"name",e.primaryKeyTable);if(t)for(var r=0;r<e.primaryKeyColumns.length;r++){var o=O.getFirstItemByPropertyValue(n.columns(),"name",e.columns[r]),i=O.getFirstItemByPropertyValue(t.columns(),"name",e.primaryKeyColumns[r]);o&&i&&a.cerateJoinCondition(o,i)}}),a.tables.peek().forEach(function(i){var e=t.tables.filter(function(e){return e.name===i.name()})[0];e&&e.foreignKeys.forEach(function(e){if(e.primaryKeyTable===n.name())for(var t=0;t<e.primaryKeyColumns.length;t++){var r=O.getFirstItemByPropertyValue(n.columns(),"name",e.primaryKeyColumns[t]),o=O.getFirstItemByPropertyValue(i.columns(),"name",e.columns[t]);r&&o&&a.cerateJoinCondition(o,r)}})})})},z.emptyModel={"@ItemType":"Query",Tables:{SelectedTables:{},Relations:{}},Columns:{},Sorting:{},Grouping:{}};var I,E=z;function z(e,t,r,o,i){void 0===r&&(r=u.ParametersMode.ReadWrite);var n=I.call(this,D.extend(!0,e,z.emptyModel,e),t,r,o,i)||this,a=(n.controlType="Query",n.type("SelectQuery"),n.tables=f.deserializeArray(e.Tables.SelectedTables,function(e){return new s.TableViewModel(e,n,i)}),n.columns=f.deserializeArray(e.Columns,function(e){return new d.ColumnExpression(e,n,i)}),n.sorting=f.deserializeArray(e.Sorting,function(e){return new d.ColumnExpression(e,n,i)}),n.grouping=f.deserializeArray(e.Grouping,function(e){return new d.ColumnExpression(e,n,i)}),n.relations=f.deserializeArray(e.Tables.Relations,function(e){return new y.RelationViewModel(e,n,i)}),n.init(),n._tablesObject.tables=n.tables,n._tablesObject.relations=n.relations,f.deserializeArray(e.Parameters,function(e){return new h.ParameterViewModel(e,i)}));return r===u.ParametersMode.ReadWrite?(n.parameters=a,n._disposables.push(n.parameters.subscribe(function(e){e.forEach(function(t){"added"!==t.status||t.value.name()||t.value.name(g.getUniqueName(n.parameters().filter(function(e){return e!==t.value}).map(function(e){return e.name()}),"parameter"))})},null,"arrayChange"))):n._disposables.push(n.parameters=c.computed(function(){return a()})),n.filterString=new _.QBFilterStringOptions(n._filterString,null,c.pureComputed(function(){return 0===n.tables().length&&n.filterString&&0===n.filterString.value().length})),n.filterString.initializeFilterStringHelper(n.parameters,r),n.groupFilterString=new _.QBFilterStringOptions(n._groupFilterString,null,c.pureComputed(function(){return!n.columns().some(S.isAggregatedExpression)&&n.groupFilterString&&0===(n.groupFilterString.value()||"").length})),n.groupFilterString.initializeFilterStringHelper(n.parameters,r,new v.GroupFilterEditorSerializer(n.columns)),n}t.QueryViewModel=E},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.TableViewModel=void 0,r(2)),s=r(31),l=r(72),c=r(74),d=r(4),u=r(4),p=r(122),f=r(0),r=(i=s.QueryElementBaseViewModel,n(m,i),m.prototype.columns=function(){return this._columns()},m.prototype.toggleSelectedColumns=function(){var t=!this.allColumnsSelected.peek(),e=this.parentModel();this._columns.peek().forEach(function(e){return e.toggleSelected(t,!0)}),e.columns.valueHasMutated()},m.prototype.getColumnConnectionPoints=function(t){var r=this,e=a.pureComputed({read:function(){var e=r._columns.indexOf(t)+1;return r.location.y()+m.COLUMNS_OFFSET+m.COLUMN_MARGIN*e+m.COLUMN_HEIGHT*(e+.5)+r.tableOffset()},deferEvaluation:!0});return this._disposables.push(e),{left:{x:this._columnsConnectionPointLeftX,y:e},right:{x:this._columnsConnectionPointRightX,y:e}}},m.prototype.getInfo=function(){return p.tableSerializationInfo},m.prototype.getInvalidColumns=function(){return this.columns().filter(function(e){return e.isNotAvailable()&&e.selected()})},m.prototype.getColumn=function(e){return f.getFirstItemByPropertyValue(this._columns(),"name",e)},m.prototype._initColumns=function(e,t){var r=this,o=(void 0===t&&(t=!1),[]);e.forEach(function(e){o.push(r.createChildColumn(e))}),this._columns(t?[].concat([],this.columns(),o):o)},m.prototype.createChildColumn=function(e){return new l.ColumnViewModel({"@Name":e.name},e,this,this.serializer)},m.prototype.createColumns=function(r){var e=this,o=0;this.columns().forEach(function(t){var e=r.columns.filter(function(e){return e.name===t.name()})[0];e?(t._type(e.type),t._size(e.size)):(t.isNotAvailable(r.columns.every(function(e){return e.name!==t.name()})),o++)}),this.columns().length-o<r.columns.length&&this._initColumns(r.columns.filter(function(t){return e.columns().every(function(e){return e.name()!==t.name})}),!0),this._initialized(!0)},m.COLUMNS_OFFSET=37,m.COLUMN_HEIGHT=32,m.COLUMN_MARGIN=1,m.TABLE_MIN_WIDTH=80,m.TABLE_DEFAULT_HEIGHT=136,m);function m(e,t,r){var o=i.call(this,e,t,r)||this;return o.serializer=r,o._columnsConnectionPointLeftX=a.pureComputed(function(){return o.location.x()}),o._columnsConnectionPointRightX=a.pureComputed(function(){return o.location.x()+o.size.width()}),o._columns=a.observableArray(),o._initialized=a.observable(!1),o.tableOffset=a.observable(0),o.size=new d.Size(199,123),o.location=new u.Point(0,0),o.isReady=a.observable(!1),o.allColumnsSelected=a.computed({read:function(){var e=o.columns().filter(function(e){return e.selected()});return 0!==e.length&&e.length===o._columns.peek().length},deferEvaluation:!0}),o.isInitialized=a.pureComputed(function(){return o._initialized()}),o.itemType="Table",o.controlType="Table",o._disposables.push(o.size.height=a.pureComputed({read:function(){return 0===o._columns().length?m.TABLE_DEFAULT_HEIGHT+o.tableOffset():m.COLUMNS_OFFSET+(m.COLUMN_HEIGHT+m.COLUMN_MARGIN)*(o._columns().length+1)+o.tableOffset()},write:function(){}})),o.asterisk=new c.AllColumnsViewModel(o,o.serializer),o._disposables.push(o.actualName=a.pureComputed(function(){return o.alias()||o.name()})),o}t.TableViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryBuilderObjectsProvider=t.isAggregatedExpression=void 0;var o=r(2),a=r(3),i=r(36),s=r(0);function n(e){return e.aggregate()!==i.AggregationType.None}t.isAggregatedExpression=n;l._createTableInfo=function(e){return{displayName:e.actualName(),name:e.actualName(),isList:!0,specifics:"Default",collapsed:o.observable(!0)}},l._createColumnInfo=function(e,t){return{displayName:t.getColumnName(e),isList:!1,specifics:t.getSpecifics(e),dataType:t.getDataType(e),name:t.getColumnName(e)}},l.whereClauseObjectsFilter={filterColumns:function(e){return e},filterTables:function(e){return e},getColumnName:function(e){return e.name.peek()},getSpecifics:function(e){return e.specifics},getDataType:function(e){return e.dataType.peek()}},l.groupByObjectsFilter={filterColumns:function(e){return e.filter(n)},filterTables:function(e){return e.filter(function(e){return e.columns().some(n)})},getColumnName:function(e){return e.actualName.peek()},getSpecifics:function(e){switch(e.aggregate()){case i.AggregationType.Avg:case i.AggregationType.AvgDistinct:return"Float";case i.AggregationType.Count:case i.AggregationType.CountDistinct:return"Integer";default:return e.specifics}},getDataType:function(e){return null}};r=l;function l(i,n){this.getItems=function(t){var e,r=a.Deferred(),o=[];return o=""===t.fullPath?n.filterTables(i().tables()).map(l._createTableInfo):(e=s.findFirstItemMatchesCondition(i().tables(),function(e){return e.actualName()===t.fullPath}),n.filterColumns(e&&e.columns()||[]).map(function(e){return l._createColumnInfo(e,n)})),r.resolve(o),r.promise()},this.hasParameter=function(t){return 0<i().parameters().filter(function(e){return e.name()===t}).length},this.getColumnInfo=function(t){if(t){var e,r=s.find(i().tables(),function(e){return 0===t.indexOf(e.actualName()+".")});if(r)return(e=s.find(n.filterColumns(r.columns()||[]),function(e){return t===r.actualName()+"."+n.getColumnName(e)}))?l._createColumnInfo(e,n):null}return null}}t.QueryBuilderObjectsProvider=r},function(e,t,r){"use strict";function o(){this.metadata={}}Object.defineProperty(t,"__esModule",{value:!0}),t.PageFactory=void 0,o.prototype.registerMetadata=function(e,t){t.canFinish||(t.canFinish=function(e){return e.canFinish()}),t.canNext||(t.canNext=function(e){return e.canNext()}),this.metadata[e]=t},o.prototype.getMetadata=function(e){return this.metadata[e]},o.prototype.unregisterMetadata=function(e){delete this.metadata[e]},o.prototype.reset=function(){this.metadata={}},t.PageFactory=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diagramControlsFactory=void 0;r=r(1);t.diagramControlsFactory=new r.ControlsFactory},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramElementViewModel=void 0,r(1)),s=r(0),l=r(39),r=r(16),r=(i=r.DiagramElementBaseViewModel,n(c,i),c);function c(e,t,r){var o=i.call(this,s.extend({"@ControlType":"DiagramElement"},e),t,r)||this;return o.connectingPoints=a.deserializeArray(e&&e.ConnectingPoints||[],function(e){return new l.ConnectingPointViewModel(e,o,r)}),void 0===o.text()&&o.text(o.name()),o}t.DiagramElementViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.RoutedConnectorViewModel=void 0,r(2)),s=r(82),f=r(4),m=r(24),l=r(0),r=(i=s.ConnectorViewModel,n(c,i),c.prototype.getX=function(){var t=i.prototype.getX.call(this);return this.routePoints&&this.routePoints().forEach(function(e){e.x()<t&&(t=e.x())}),t},c.prototype.getY=function(){var t=i.prototype.getY.call(this);return this.routePoints&&this.routePoints().forEach(function(e){e.y()<t&&(t=e.y())}),t},c.prototype.getWidth=function(){var t=i.prototype.getWidth.call(this),r=this.getX();return this.routePoints&&[this.startPoint().location,this.endPoint().location].concat(this.routePoints()).forEach(function(e){e.x()-r>t&&(t=e.x()-r)}),t},c.prototype.getHeight=function(){var t=i.prototype.getHeight.call(this),r=this.getY();return this.routePoints&&[this.startPoint().location,this.endPoint().location].concat(this.routePoints()).forEach(function(e){e.y()-r>t&&(t=e.y()-r)}),Math.round(t)},c.prototype._fixPoint=function(e,t){switch(t){case m.PointSide.North:e.y(e.y()-m.GRID_SIZE);break;case m.PointSide.East:e.x(e.x()+m.GRID_SIZE);break;case m.PointSide.West:e.x(e.x()-m.GRID_SIZE);break;case m.PointSide.South:e.y(e.y()+m.GRID_SIZE)}},c.prototype._getStartPointSide=function(){return this.startPoint().connectingPoint()?this.startPoint().connectingPoint().side():this.startPoint().location.y()!==this.endPoint().location.y()?this.startPoint().location.y()>this.endPoint().location.y()?m.PointSide.North:m.PointSide.South:this.startPoint().location.x()>this.endPoint().location.x()?m.PointSide.West:m.PointSide.East},c.prototype._getEndPointSide=function(){return this.endPoint().connectingPoint()?this.endPoint().connectingPoint().side():this.startPoint().location.y()!==this.endPoint().location.y()?this.startPoint().location.y()>this.endPoint().location.y()?m.PointSide.South:m.PointSide.North:this.startPoint().location.x()>this.endPoint().location.x()?m.PointSide.East:m.PointSide.West},c.prototype._getRatio=function(e){for(var t=this._getPower(e),r=Math.pow(2,t),o=Math.pow(2,t-1),i=[],n=1;n<o;n++)n%2!=0&&(i.push(r-n),i.push(n));return i.reverse(),(i[e-o]||1)/r},c.prototype.beginUpdate=function(){this._isUpdating=!0},c.prototype.endUpdate=function(){this._isUpdating=!1},c);function c(e,t,r){var p=i.call(this,l.extend({"@ControlType":"RoutedConnector"},e),t,r)||this;return p._isUpdating=!1,p._getPower=function(e){for(var t=0;t<10;t++)if(e>=Math.pow(2,t)&&e<Math.pow(2,t+1))return t+1;return 1},p.seriesNumber=a.observable(1),p.routePoints=a.observable([]),p.freezeRoute=a.observable(!1),p._disposables.push(a.computed(function(){var e=!(1+p.startPoint().location.x()+p.startPoint().location.y()+p.endPoint().location.x()+p.endPoint().location.y());p._isUpdating||p.freezeRoute(e)})),p._disposables.push(a.computed(function(){var e,t,r,o,i,n,a,s,l,c,d,u;p.freezeRoute()||(e=[],t=p._getStartPointSide(),r=p._getEndPointSide(),o=new f.Point(p.startPoint().location.x(),p.startPoint().location.y()),i=new f.Point(p.endPoint().location.x(),p.endPoint().location.y()),p.startPoint().connectingPoint()&&(p._fixPoint(o,p.startPoint().connectingPoint().side()),e.push(o)),p.endPoint().connectingPoint()&&p._fixPoint(i,p.endPoint().connectingPoint().side()),n=Math.min(o.x(),i.x()),a=Math.min(o.y(),i.y()),s=Math.abs(o.x()-i.x()),l=Math.abs(o.y()-i.y()),c=p.seriesNumber(),d=p._getRatio(c),u=(c-1)*m.GRID_SIZE,0<o.y()-i.y()?0<o.x()-i.x()?t===m.PointSide.North||t===m.PointSide.East?r===m.PointSide.North||r===m.PointSide.East?(1!==c&&e.push(new f.Point(n+(s+=u),a+l)),e.push(new f.Point(n+s,a))):(e.push(new f.Point(n+s,a+l*d)),e.push(new f.Point(n,a+l*d))):r===m.PointSide.South||r===m.PointSide.West?e.push(new f.Point(n,a+l)):(e.push(new f.Point(n+s*d,a+l)),e.push(new f.Point(n+s*d,a))):t===m.PointSide.North||t===m.PointSide.West?r===m.PointSide.North||r===m.PointSide.West?(1!==c&&e.push(new f.Point(n-=u,a+l)),e.push(new f.Point(n,a))):(e.push(new f.Point(n,a+l*d)),e.push(new f.Point(n+s,a+l*d))):r===m.PointSide.South||r===m.PointSide.East?e.push(new f.Point(n+s,a+l)):(e.push(new f.Point(n+s*d,a+l)),e.push(new f.Point(n+s*d,a))):0<o.x()-i.x()?t===m.PointSide.South||t===m.PointSide.East?r===m.PointSide.South||r===m.PointSide.East?(1!==c&&e.push(new f.Point(n+(s+=u),a)),e.push(new f.Point(n+s,a+l))):(e.push(new f.Point(n+s,a+l*d)),e.push(new f.Point(n,a+l*d))):r===m.PointSide.North||r===m.PointSide.West?e.push(new f.Point(n,a)):(e.push(new f.Point(n+s*d,a)),e.push(new f.Point(n+s*d,a+l))):t===m.PointSide.South||t===m.PointSide.West?r===m.PointSide.South||r===m.PointSide.West?(1!==c&&e.push(new f.Point(n-=u,a)),e.push(new f.Point(n,a+l))):(e.push(new f.Point(n,a+l*d)),e.push(new f.Point(n+s,a+l*d))):r===m.PointSide.North||r===m.PointSide.East?e.push(new f.Point(n+s,a)):(e.push(new f.Point(n+s*d,a)),e.push(new f.Point(n+s*d,a+l))),p.endPoint().connectingPoint()&&e.push(i),p.routePoints(e))})),p}t.RoutedConnectorViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=(Object.defineProperty(t,"__esModule",{value:!0}),t.RoutedConnectorSurface=void 0,r(2)),a=r(38),s=r(25),r=(i=a.DiagramElementBaseSurface,n(l,i),l.prototype._createRoutePoint=function(e,t){var r=this;return{x:d.pureComputed(function(){return r._context.rtl()?Math.round(r.getControlModel().size.width()-(e.x()-t.x())):Math.round(e.x()-t.x())}),y:d.pureComputed(function(){return Math.round(e.y()-t.y())}),modelPoint:e}},l.prototype._createRouteLineWrapper=function(o,i,e){var n=this,a=(void 0===e&&(e=!1),this),s=Math.abs(o.x.peek()-i.x.peek())<1,l=o.modelPoint.y.peek(),c=o.modelPoint.x.peek();return{position:{top:Math.min(o.y.peek(),i.y.peek())-2,left:Math.min(o.x.peek(),i.x.peek())-2,width:Math.abs(o.x.peek()-i.x.peek())+6,height:Math.abs(o.y.peek()-i.y.peek())+6},isVerticalLine:s,resizeHandler:function(e){a._control.freezeRoute(!0);try{var t,r;a._control.beginUpdate(),s?(t=n._context.rtl()?c-e.delta.dx:c+e.delta.dx,o.modelPoint.x(t),i.modelPoint.x(t)):(r=l+e.delta.dy,o.modelPoint.y(r),i.modelPoint.y(r))}finally{a._control.endUpdate()}},resizeStopped:function(){a._control.routePoints.notifySubscribers(a._control.routePoints())},isLocked:d.observable(e)}},l.prototype._updateRoutePoints=function(){var t=this,r=[],e=this.getControlModel(),o=e.location;r.push(this._createRoutePoint(e.startPoint().location,o)),e.routePoints().forEach(function(e){r.push(t._createRoutePoint(e,o))}),r.push(this._createRoutePoint(e.endPoint().location,o)),this.routePoints(r)},l._connectorsCount=0,l);function l(e,t){var r=i.call(this,e,t,null)||this;return r.template="dxdd-routed-connector",r.selectiontemplate="dxdd-routed-connector-selection",r.showArrow=d.observable(!1),r.showRightArrow=d.observable(!1),r.isVisible=d.observable(!0),r.routePoints=d.observableArray(),r.routePointsSet=d.pureComputed(function(){var t=[];return r.routePoints().forEach(function(e){t.push(e.x()+" "+e.y())}),t.join(", ")}),r.routeLineWrappers=d.pureComputed(function(){for(var e=[],t=1;t<r.routePoints().length;t++)e.push(r._createRouteLineWrapper(r.routePoints()[t-1],r.routePoints()[t],1===t||t===r.routePoints().length-1));return e}),r.connectorID=function(){return r._connectorID},r._disposables.push(e),r._connectorID=l._connectorsCount++,r.startPoint=d.pureComputed(function(){return new s.ConnectionPointSurface(e.startPoint(),t)}),r.endPoint=d.pureComputed(function(){return new s.ConnectionPointSurface(e.endPoint(),t)}),r._disposables.push(e.routePoints.subscribe(function(e){r._updateRoutePoints()})),r._updateRoutePoints(),r}t.RoutedConnectorSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeDataConnection=void 0;var o=r(1),i=r(0);t.serializeDataConnection=function(e){var t=new o.ModelSerializer,r={DataConnection:t.serialize(e)};return e.options&&i.extend(r,{ConnectionOptions:t.serialize(e.options)}),JSON.stringify(r)}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSchemaRootNode=t.JsonSchemaNode=t.JsonNode=t.JsonNodeType=void 0,r(2)),s=r(1),l=r(19),c=r(1),r=r(1),d=((h=n=t.JsonNodeType||(t.JsonNodeType={}))[h.Object=0]="Object",h[h.Array=1]="Array",h[h.Property=2]="Property",u.from=function(e,t){return new u(e,t)},u.toJsonNodes=function(e,t,r){return(e||[]).map(function(e){return u.toJsonNode(e,t,r)})},u.toJsonNode=function(e,t,r,o){void 0===o&&(o=!0);var i=t.serialize(e,_,r),o=o?u.toJsonNodes(e.nodes,t,r):[];return 0<o.length&&(i.Node=o),i},u.prototype.getInfo=function(){return _},u);function u(e,t){this.nodes=[],e&&((t=t||new s.ModelSerializer).deserialize(this,e),e=(t=e.Node)instanceof Array?l.deserializeToCollection(t,function(e){return new u(e)}).sort(function(e,t){return e.name().localeCompare(t.name())}):t?[new u(t)]:[],this.nodes=e)}t.JsonNode=d;i(m,p=d),m.from=function(e,t){return new m(e||{},t)},m.toJson=function(e,t,r){if(!e)return{};var o={Node:d.toJsonNode(e,t,r,!1)};return o.Node.Node=d.toJsonNodes(e.nodes,t,r),o},m.prototype.getInfo=function(){return _};var p,f=m;function m(e,t){e=p.call(this,e.Node,t)||this;return e.nodeType=n[n.Object],e.valueType="Unknown",e.displayName=c.getLocalization("root"),e.selected=a.observable(!1),e}t.JsonSchemaNode=f;i(g,y=d),g.from=function(e,t){return new g(e)},g.toJson=function(e,t,r){return f.toJson(e.nodes[0],t,r)},g.prototype.getInfo=function(){return b},g.prototype.getRootElementPartList=function(e){if(void 0===e&&(e=!0),this._rootElementList)return this._rootElementList;if(0===this.nodes.length)return[];this._rootElementList=[];var t=this.nodes[0],r={fullPath:a.unwrap(t.name),path:"",pathParts:[a.unwrap(t.name)]};return this._fillRootElementList(t,r,e),this._rootElementList.sort(function(e,t){return e.fullPath.localeCompare(t.fullPath)}),this._rootElementList},g.prototype._fillRootElementList=function(e,r,o){var i=this;if(void 0===e&&(e=this.nodes[0]),void 0===r&&(r={fullPath:"root",path:"",pathParts:["root"]}),!e)return this._rootElementList;var t=a.unwrap(e.nodeType);if(t!=n[n.Property]){if(t!==n[n.Array])return o&&t===n[n.Object]&&this._rootElementList.push(r),(e.nodes||[]).forEach(function(e){var t=i._getNextPath(r,e.name());i._fillRootElementList(e,t,o)}),this._rootElementList;this._rootElementList.push(r)}},g.prototype._getNextPath=function(e,t){var r=e.fullPath?[e.fullPath,t].join("."):t;return{pathParts:e.pathParts.concat(t),fullPath:r,path:t}};var y,h=g;function g(e,t){e=y.call(this,e)||this;return e._rootElementList=null,e}t.JsonSchemaRootNode=h;var _=[{propertyName:"nodes",modelName:"Node",from:d.from,toJsonObject:d.toJsonNodes},{propertyName:"name",modelName:"@Name"},{propertyName:"selected",modelName:"@Selected",from:r.parseBool},{propertyName:"nodeType",modelName:"@NodeType"},{propertyName:"type",modelName:"@Type"}],b=[{propertyName:"nodes",modelName:"Node",from:h.from,toJsonObject:h.toJsonNodes}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonDataSource=void 0,r(3)),s=r(1),l=r(1),c=r(11),d=r(136),u=r(62),r=r(135),s=(i=s.Disposable,n(p,i),p.prototype.getInfo=function(){return f},p.prototype.clone=function(e){return new p((e=e||new l.ModelSerializer).serialize(this))},p.from=function(e,t){return new p(e,t)},p.toJson=function(e,t,r){return t.serialize(e,f,r)},p.prototype.getSchema=function(e){var t=this,r=(void 0===e&&(e=[]),a.Deferred());return this.jsonSchemaProvider.getJsonSchema(e).done(function(e){t.schema=e,r.resolve(e)}).fail(function(){t.schema=null,r.reject()}),r.promise()},p);function p(e,t,r){void 0===r&&(r=new c.RequestWrapper);var o=i.call(this)||this;return(t=t||new l.ModelSerializer).deserialize(o,e),o.jsonSchemaProvider=new d.JsonSchemaProvider(o,r),o.source&&o._disposables.push(o.source),o._disposables.push(o.connectionName.subscribe(function(){o.source.resetSource()})),o}t.JsonDataSource=s;var f=[{propertyName:"name",modelName:"@Name"},{propertyName:"connectionName",modelName:"@ConnectionName"},{propertyName:"rootElement",modelName:"@RootElement",defaultVal:"root"},{propertyName:"schema",modelName:"Schema",from:u.JsonSchemaRootNode.from,toJsonObject:u.JsonSchemaRootNode.toJson},{propertyName:"source",modelName:"Source",from:r.JsonSource.from,toJsonObject:r.JsonSource.toJson}]},function(e,t,r){"use strict";function o(e){var t=this;e&&(t.name=e.name,t.displayName=e.displayName,t.dataMember=e.dataMember)}var i,n,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectType=t.ObjectCtor=t.ObjectDataMember=t.ObjectDataSourceMethodBase=t.ObjectParameter=t.ObjectDataMemberBase=void 0,r(2)),l=r(19),c=r(1),d=(t.ObjectDataMemberBase=o,a(u,n=o),u);function u(e){var t=n.call(this,e)||this;return e&&(t.value=e.value,t.type=e.type,t.resultType=e.resultType),t}t.ObjectParameter=d;a(f,p=o);var p,r=f;function f(e){var t=p.call(this,e)||this;return t.parameters=l.deserializeToCollection(e.parameters,function(e){return new d(e)}),t}t.ObjectDataSourceMethodBase=r;a(h,m=r),h.empty=function(){return new h({displayName:h.entireObject(),name:h.entireObject(),parameters:[]})},h.prototype.isEntireObject=function(){return this.name==h.entireObject()&&this.displayName==h.entireObject()},h.prototype.isAvailable=function(){return!this.disabled()},h.entireObject=function(){return c.getLocalization("Entire Object","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_EntireObject")};var m,y=h;function h(e){var t=m.call(this,e)||this;return t.disabled=s.observable(!1),t.memberType=e&&e.memberType,t.isStatic=e.isStatic,t}t.ObjectDataMember=y;a(b,g=r);var g,_=b;function b(){return null!==g&&g.apply(this,arguments)||this}t.ObjectCtor=_;a(v,S=o),v.prototype.updateMembers=function(t){this.members.forEach(function(e){t?e.disabled(!1):e.disabled(!!e.isEntireObject()||!e.isStatic)})};var S,r=v;function v(e){var t=S.call(this,e)||this;return t.ctors=l.deserializeToCollection(e.ctors,function(e){return new _(e)}),t.members=l.deserializeToCollection(e.members,function(e){return new y(e)}),t}t.ObjectType=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.RelationViewModel=void 0,r(2)),s=r(31),l=r(1),c=r(94),d=r(95),u=r(0),r=(i=s.QueryElementBaseViewModel,n(p,i),p.prototype._getConditionNumber=function(){for(var e=this.conditions().length+1,t=this.conditions().map(function(e){return e.seriesNumber()}),r=0;r<this.conditions().length;r++)if(-1===t.indexOf(r+1)){e=r+1;break}return e},p.prototype.getInfo=function(){return d.relationSerializationInfo},p.prototype.addChild=function(e){this.conditions&&-1===this.conditions.indexOf(e)&&(e.seriesNumber(this._getConditionNumber()),e.parentModel(this),this.conditions.push(e))},p.prototype.removeChild=function(e){e=this.conditions().indexOf(e);-1<e&&this.conditions.splice(e,1),0===this.conditions().length&&this.parentModel().removeChild(this)},p);function p(e,t,r){var o=i.call(this,u.extend(e,{"@ControlType":"Relation","@ItemType":"Relation"}),t,r)||this;return o.parentTable=a.observable(t.getTable(o.parentTableName.peek())),o.nestedTable=a.observable(t.getTable(o.nestedTableName.peek())),o.parentTableName=a.pureComputed(function(){return o.parentTable().actualName()}),o.nestedTableName=a.pureComputed(function(){return o.nestedTable().actualName()}),o.conditions=l.deserializeArray(e.KeyColumns,function(e){return new c.JoinConditionViewModel(e,o,r)}),o}t.RelationViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationMasterDetailRelation=void 0,r(1)),s=r(0),r=r(42),l=[{propertyName:"masterColumn",modelName:"@Parent"},{propertyName:"detailColumn",modelName:"@Nested"},{propertyName:"itemType",modelName:"@ItemType"}],c=[{propertyName:"masterQuery",modelName:"@MasterQueryName"},{propertyName:"detailQuery",modelName:"@DetailQueryName"},{propertyName:"_customName",modelName:"@RelationName"},{propertyName:"keyColumns",modelName:"KeyColumns",array:!0,info:l},{propertyName:"itemType",modelName:"@ItemType"}],r=(i=r.MasterDetailRelation,n(d,i),d.create=function(e){var t=new a.ModelSerializer;return(e=new d(t.serialize(e),t)).keyColumns().forEach(function(e){return e.getInfo=function(){return l}}),e},d);function d(e,t){var r=i.call(this,e,t)||this;return r.getInfo=function(){return c},e["@MasterQueryName"]&&e["@DetailQueryName"]&&(t||new a.ModelSerializer).deserialize(r,s.extend(e,{"@ItemType":"Relation"})),r}t.FederationMasterDetailRelation=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseSqlConnectionPage=t.ChooseSqlConnectionPage=void 0,r(2)),s=r(3),l=r(0),c=r(5),d=r(0),u=r(1),r=r(9),p=(i=r.WizardPageBase,n(f,i),f.prototype.initialize=function(e){var t=this._connectionStrings();return 1===t.length?this._selectedConnectionString([t[0]]):(e=l.getFirstItemByPropertyValue(t,"name",e.name)||t[0],this._selectedConnectionString(e?[e]:[])),s.Deferred().resolve().promise()},f.prototype.canNext=function(){return 0!==this._selectedConnectionString().length},f.prototype.commit=function(){var e=s.Deferred();return this._selectedConnectionString()[0]?e.resolve({name:this._selectedConnectionString()[0].name}):e.resolve(),e.promise()},f);function f(e){var t=i.call(this)||this;return t._connectionStrings=a.observableArray([]),t._selectedConnectionString=a.observableArray([]),t._connectionStrings=e,t._disposables.push(t._selectedConnectionString.subscribe(function(){return t._onChange()})),t}t.ChooseSqlConnectionPage=p,t._registerChooseSqlConnectionPage=function(e,t){e.registerMetadata(c.SqlDataSourceWizardPageId.ChooseConnectionPage,{create:function(){return new p(t)},setState:function(e,t){t.name=e.name},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.name=t.name},template:"dxrd-page-connectionstring",description:d.isCustomizedWithUpdateLocalizationMethod("Choose a data connection")||u.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection")})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseJsonConnectionPage=t.ChooseJsonConnectionPage=void 0,r(3)),s=r(149),l=r(0),c=r(1),d=r(5),u=(i=s.ChooseAvailableItemPage,n(p,i),p.prototype.commit=function(){return a.Deferred().resolve({connectionName:this.selectedOperation().createNew?null:this.selectedItems()[0].name}).promise()},p.prototype._getSelectedItem=function(e){return l.getFirstItemByPropertyValue(this.items(),"name",e.connectionName)||i.prototype._getSelectedItem.call(this)},Object.defineProperty(p.prototype,"createNewOperationText",{get:function(){return c.getLocalization("No, I'd like to create a new data connection","AnalyticsCoreStringId.JsonDSWizard_CreateNewConnection")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"existingOperationText",{get:function(){return c.getLocalization("Yes, let me choose an existing data connection from the list","AnalyticsCoreStringId.JsonDSWizard_UseExistingConnection")},enumerable:!1,configurable:!0}),p);function p(){return null!==i&&i.apply(this,arguments)||this}t.ChooseJsonConnectionPage=u,t._registerChooseJsonConnectionPage=function(e,t){e.registerMetadata(d.JsonDataSourceWizardPageId.ChooseConnectionPage,{create:function(){return new u(t.connectionStrings&&t.connectionStrings.json,t.allowCreateNewJsonConnection)},description:t.allowCreateNewJsonConnection?c.getLocalization("Do you want to use an existing data connection?","AnalyticsCoreStringId.JsonDSWizard_ChooseConnection_Description"):c.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection"),getState:function(e){return e.jsonDataSourceWizard},setState:function(e,t){return t.connectionName=e.connectionName},resetState:function(e,t){e.connectionName=t.connectionName},template:"dxrd-page-selectitems"})}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseJsonSchemaPage=t.ChooseJsonSchemaPage=void 0,r(2)),s=r(3),l=r(12),c=r(153),d=r(62),u=r(22),p=r(11),f=r(0),m=r(1),y=r(1),h=r(5),r=r(9),g=(n=r.WizardPageBase,i(_,n),_.prototype._clear=function(){this._rootItems([]),this._fieldSelectedPath(""),this._rootElementList([]),this._selectedRootElement(null),this._dataSource&&this._dataSource.jsonSchemaProvider.reset(),this._cachedState={connectionName:null,jsonSource:null}},_.prototype._createFieldListCallback=function(){var r=this;return function(e){var t=new d.JsonNode({}),e=(t.nodes=[r._rootItems()[0].data],r._getInnerItemsByPath(e,t));return s.Deferred().resolve(e).promise()}},_.prototype._getSchemaToDataMemberInfo=function(t){for(var e=this._dataSource.schema,r=0;r<t.pathParts.length;r++)if(!(e=e.nodes.filter(function(e){return e.name()===t.pathParts[r]})[0]))return null;return e},_.prototype._mapJsonNodesToTreelistItems=function(e){return s.map(e||[],function(e){return{name:e.name(),displayName:e.displayName||e.name(),isSelected:e.selected(),isList:e.nodes&&0<e.nodes.length,specifics:"Default"}})},_.prototype._getNodesByPath=function(t,e){if(t.fullPath){for(var r=e.nodes,o=0;o<t.pathParts.length;o++){var i=(r||[]).filter(function(e){return e.name()==t.pathParts[o]})[0];if(!i)return[];r=i.nodes}return r}return e.nodes},_.prototype._getInnerItemsByPath=function(e,t){e=this._getNodesByPath(e,t);return this._mapJsonNodesToTreelistItems(e)},_.prototype._beginInternal=function(e){var t=this;if(e.connectionName&&this._cachedState.connectionName===e.connectionName||e.jsonSource&&this._cachedState.jsonSource===e.jsonSource)return s.Deferred().resolve().promise();this._clear(),this._cachedState={connectionName:e.connectionName,jsonSource:e.jsonSource};var r=this._dataSource&&this._dataSource.id;return this._dataSource=l._restoreJsonDataSourceFromState(e,this._requestWrapper),r&&r!=this._dataSource.id||!this._dataSource.schema.nodes.length?this._dataSource.getSchema(this._callbacks&&this._callbacks.getParameters&&this._callbacks.getParameters()).done(function(e){return t._updatePage(e)}):s.Deferred().done(function(e){return t._updatePage(e)}).resolve(this._dataSource.schema).promise()},_.prototype._updatePage=function(e){var t,r=e.getRootElementPartList(this._allowObjectRootElements);this._rootElementList()!==r&&this._rootElementList(this._filterRootElementList(r,e)),this._dataSource.rootElement()&&(t=["root",this._dataSource.rootElement()].join("."),r=this._rootElementList().filter(function(e){return e.fullPath===t})[0]||this._rootElementList()[0],this._selectedRootElement(r)),this._onChange()},_.prototype._resetSelectionRecursive=function(e,t){var r=this;e!==t&&(e.selected&&e.selected(!1),(e.nodes||[]).forEach(function(e){return r._resetSelectionRecursive(e,t)}))},_.prototype._mapJsonSchema=function(e,o){var i=this,t=this._fieldListItemsProvider().getNodeByPath(o);if(t)return e.selected(!1!==t.checked()),(e.nodes||[]).forEach(function(e){var t=o.pathParts.concat(e.name()),r=t.join("."),r={fullPath:r,path:e.name(),id:r,pathParts:t};i._mapJsonSchema(e,r)}),e},_.prototype._filterRootElementList=function(e,t){return e},_.prototype.canNext=function(){return!1},_.prototype.canFinish=function(){return this._fieldListItemsProvider().hasCheckedItems()},_.prototype.commit=function(){var e;if(this._rootItems()[0])return e=this._rootItems()[0].data,this._resetSelectionRecursive(this._dataSource.schema,e),e=e.name(),e={fullPath:e,path:"",id:e,pathParts:[e]},this._mapJsonSchema(this._rootItems()[0].data,e),e=this._selectedRootElement().pathParts.slice(1).join("."),this._dataSource.rootElement(e),e=(new m.ModelSerializer).serialize(this._dataSource),s.Deferred().resolve({connectionName:this._dataSource.connectionName(),dataSourceName:e["@Name"],jsonScheme:JSON.stringify(e.Schema),rootElement:e["@RootElement"]}).promise()},_.prototype.initialize=function(e){return this._beginInternal(e)},_.prototype.reset=function(){this._clear()},_);function _(e,t,r){void 0===e&&(e=new p.RequestWrapper),void 0===t&&(t=!0);var o=n.call(this)||this,i=(o._requestWrapper=e,o._allowObjectRootElements=t,o._callbacks=r,o._rootItems=a.observableArray([]),o._fieldListItemsProvider=a.observable(null),o._fieldSelectedPath=a.observable(null),o._cachedState={connectionName:null,jsonSource:null},o._createTreeNode=function(e,t,r){e=new u.DataMemberTreeNode(e.name,e.displayName,e.specifics,t,r);return o._disposables.push(e.checked.subscribe(function(){return o._onChange()})),e},o._createLeafTreeNode=function(e,t,r){e=new u.FieldTreeNode(e.name,e.displayName,e.specifics,t,r);return o._disposables.push(e.checked.subscribe(function(){return o._onChange()})),e},o._rootElementTitle=y.getLocalization("Root element:","DataAccessUIStringId.WizardPageChooseJsonSchema_RootElement"),o._rootElementList=a.observable([]),o._selectedRootElement=a.observable(null),null),e=(o._disposables.push(o._rootElementList.subscribe(function(e){i&&i.dispose(),i=o._selectedRootElement.subscribe(function(e){if(!e)return o._rootItems([]);e=o._getSchemaToDataMemberInfo(e);e&&o._rootItems([{name:a.unwrap(e.name),isSelected:a.unwrap(e.selected),displayName:a.unwrap(e.displayName)||a.unwrap(e.name),data:e,specifics:0<e.nodes.length?"List":"Default"}])}),o._selectedRootElement(e[0])})),new f.FieldListProvider(o._createFieldListCallback(),o._rootItems));return o._fieldListItemsProvider(new c.JsonTreeNodeItemsProvider(e,o._rootItems,o._createTreeNode,o._createLeafTreeNode)),o._disposables.push(o._fieldListItemsProvider()),o._fieldListModel={expandRootItems:!0,itemsProvider:o._fieldListItemsProvider(),selectedPath:o._fieldSelectedPath,treeListController:null,templateName:"dxrd-treelist-with-checkbox"},o}t.ChooseJsonSchemaPage=g,t._registerChooseJsonSchemaPage=function(e,t,r){e.registerMetadata(h.JsonDataSourceWizardPageId.ChooseJsonSchemaPage,{setState:function(e,t){t.dataSourceName=e.dataSourceName,t.jsonScheme=e.jsonScheme,t.rootElement=e.rootElement},getState:function(e){return e.jsonDataSourceWizard},resetState:function(e,t){e.dataSourceName=t.dataSourceName,e.jsonScheme=t.jsonScheme,e.rootElement=t.rootElement},create:function(){return new g(t,void 0,r)},description:y.getLocalization("Select data fields.","DataAccessUIStringId.WizardPageChooseJsonSchema"),template:"dxrd-jsondatasource-fields-page"})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultSQLLanguageHelper=t.createDefaultSQLAdditionalOptions=t.createDefaultSQLAceOptions=void 0,r(156),t.createDefaultSQLAceOptions=function(e){return{showLineNumbers:!1,showPrintMargin:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,readOnly:e=void 0===e?!1:e,highlightSelectedWord:e,showGutter:!1,highlightActiveLine:!1}},t.createDefaultSQLAdditionalOptions=function(t){return{onChange:function(e){t(e.getValue())},onValueChange:function(e){e.resize(!0)},changeTimeout:200,overrideEditorFocus:!0,setUseWrapMode:!0}},t.createDefaultSQLLanguageHelper=function(){return{getLanguageMode:function(){return"ace/mode/sql"},createCompleters:function(){return[]}}}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationQueryBuilderPopupBase=void 0,r(2)),s=r(0),l=r(0),c=r(0),d=r(120),u=r(0),p=r(8),f=r(52),m=r(8),r=(n=p.PopupEditorBase,i(y,n),y.prototype._aliasValidationCallback=function(e,t){return!0},y.prototype.dispose=function(){n.prototype.dispose.call(this),this.fieldListModel=null,this.onSaveCallback=null,this._dataSource=null},y.prototype.addDataMember=function(e,t){},y.prototype.save=function(){this.close()},y.prototype.close=function(){this.popupVisible(!1)},y.prototype.popupTarget=function(){return".dxrd-result-source-grid"},y.prototype.onHiding=function(){},y);function y(e,t,r){void 0===r&&(r=!1);var o=n.call(this)||this,i=(o.onSaveCallback=e,o._dataSource=t,o.rtl=r,o.selectedPath=a.observable(),o.title=function(){return s.getLocalization("Query Builder","DataAccessUIStringId.QueryBuilder")},o.getPopupContainer=l.getParentContainer,o.loaded=a.observable(!1),o.maxHeight="90%",o.width="900px",o.height="710px",o.cssClass="dxrd-querybuilder-federation-popup-wrapper",o.resultGridHeight=a.observable(250),o.dragDropHandler=new u.WizardDragDropHandler({dragHelperContent:new c.DragHelperContent(null),parent:".dx-designer-viewport .dxrd-querybuilder-federation-popup-wrapper > .dx-popup-normal",containment:".dxrd-querybuilder-federation-popup",target:o.popupTarget(),addHandler:function(e,t,r){(e&&e instanceof y||e instanceof f.QuerySurface)&&o.addDataMember(t,r)}}),new d.FederatedUnionQueryBuilderTreeListController(o.dragDropHandler,function(e){return i.isDraggable(e)&&o.addDataMember(e)}));return o.fieldListModel={itemsProvider:o._dataSource.dbSchemaProvider,treeListController:i,selectedPath:o.selectedPath,pageSize:100,expandRootItems:!0,onItemsChanged:function(e){e.forEach(function(e){e.parent&&i.isDraggable(e.parent)&&e.parent.data.isListType&&e.parent.collapsed(!0)})},rtl:r},o._disposables.push(o.dragDropHandler,i),o._aliasValidationRule={type:"custom",validationCallback:function(e){return!e.value||o._aliasValidationCallback(e.value,e.data)},get message(){return s.getLocalization("Alias is not unique","DataAccessUIStringId.FederationDataSourceQueryBuilder_AliasUniqueMessage")}},o.resizeHelper=new m.ResizeHelper,o}t.FederationQueryBuilderPopupBase=r},function(e,t,r){"use strict";var o,c,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=(Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnViewModel=void 0,r(2)),n=r(31),u=r(36),p=r(18),f=r(24),m=r(73),y=r(0),r=(c=n.QueryElementBaseViewModel,i(a,c),a.prototype._isAliasAutoGenerated=function(e){if(e&&this.alias()&&0===this.alias().indexOf(e+"_")&&this.alias().substring(e.length+1)===this.name())return!0;if(!this.alias()||0!==this.alias().indexOf(this.name()+"_"))return!1;e=this.alias().substring(this.name().length+1);return e.match(new RegExp("_[0-9]+$"))&&(e=e.substring(0,e.indexOf("_"))),0<Object.keys(u.AggregationType).indexOf(e)},a.prototype.getInfo=function(){return u.columnSerializationInfo},a.prototype.isPropertyDisabled=function(e){return!!this.isNotAvailable()||("sortOrder"===e?"Unsorted"===this.sortingType():"aggregate"===e||"alias"===e?!this.selected():"groupBy"===e&&(e=this.root,this.aggregate()&&1===e.aggregatedColumnsCount()))},Object.defineProperty(a.prototype,"specifics",{get:function(){return p.DBColumn.GetSpecific(this.dataType())},enumerable:!1,configurable:!0}),a);function a(e,t,r,o){var i=c.call(this,y.extend({"@ControlType":"Column"},e),r,o)||this,e=(i.isNotAvailable=d.observable(!1),i._type=d.observable(p.DBColumnType.Unknown),i._size=d.observable(""),t.size&&i._size(t.size),t.type&&i._type(t.type),i.displayType=d.pureComputed(function(){return p.DBColumnType[i._type()]+(i._size()?"("+i._size()+")":"")}),i.dataType=d.pureComputed(function(){return p.DBColumn.GetType(i._type())}),i.actualName=d.pureComputed(function(){return i.alias()||i.name()}),r.getColumnConnectionPoints(i)),n=(i.rightConnectionPoint={side:d.observable(f.PointSide.East),location:e.right},i.leftConnectionPoint={side:d.observable(f.PointSide.West),location:e.left},r.parentModel()),a=d.pureComputed(function(){return m.ColumnExpressionCollectionHelper.find(n.columns,r.actualName(),i.name())}),s=(i.aggregate=d.pureComputed({read:function(){return a()?a().aggregate():u.AggregationType.None},write:function(e){a()&&a().aggregate(e)}}),i.alias=d.pureComputed({read:function(){return a()?a().alias():""},write:function(e){a()&&a().alias(e||null)}}),d.pureComputed(function(){return m.ColumnExpressionCollectionHelper.find(n.sorting,r.actualName(),i.name())})),l=(i.sortingType=d.computed({read:function(){return s()?s().descending()?"Descending":"Ascending":"Unsorted"},write:function(e){"Unsorted"!==e?(s()?s():m.ColumnExpressionCollectionHelper.addNew(n,n.sorting,r.actualName(),i.name())).descending("Descending"===e):s()&&m.ColumnExpressionCollectionHelper.remove(n.sorting,r.actualName(),i.name())}}),i.sortOrder=d.computed({read:function(){var e=n.sorting().indexOf(s());return e<0?void 0:e+1},write:function(e){var t;s()&&(e=Math.min(e,n.sorting().length),e=Math.max(e,1),t=n.sorting().indexOf(s()),t=n.sorting.splice(t,1),n.sorting.splice(e-1,0,t[0]))}}),d.computed(function(){return m.ColumnExpressionCollectionHelper.find(n.grouping,r.actualName(),i.name())}));return i.aggregate.subscribe(function(e){var t=i.parentModel();e!==u.AggregationType.None?(i.groupBy(!1),i.alias()&&!i._isAliasAutoGenerated(t.actualName())||(e=i.name()+"_"+e,i.alias(m.ColumnExpressionCollectionHelper.setUniqueAlias(n.columns,e)))):i._isAliasAutoGenerated(t.actualName())&&i.alias(null)}),i.groupBy=d.computed({read:function(){return!!l()},write:function(e){e?(m.ColumnExpressionCollectionHelper.addNew(n,n.grouping,r.actualName(),i.name()),i.aggregate(u.AggregationType.None)):m.ColumnExpressionCollectionHelper.remove(n.grouping,r.actualName(),i.name())}}),i.toggleSelected=function(e,t){void 0===t&&(t=!1),!!a()!==e&&(e?m.ColumnExpressionCollectionHelper.addNew(n,n.columns,r.actualName(),i.name(),t):(m.ColumnExpressionCollectionHelper.remove(n.columns,r.actualName(),i.name(),t),i.groupBy(!1)))},i.selected=d.pureComputed({read:function(){return!!a()},write:function(e){return i.toggleSelected(e)}}),i}t.ColumnViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnExpressionCollectionHelper=void 0;var o=r(2),i=r(34),n=r(0),a=r(0),s=r(35),l=r(20);function c(){}c.find=function(e,t,r){return n.findFirstItemMatchesCondition(e(),function(e){return e.column()===r&&e.table()===t})},c.findByName=function(e,t){return n.findFirstItemMatchesCondition(e(),function(e){return e.actualName()===t})},c.removeDependend=function(e,t){e.remove(function(e){return e.isDepended(t)})},c.toExpresson=function(e,t,r){e.table=o.observable(null),e.column=o.observable(null),e.expression=e.__expression,e.itemType(s.ColumnType[s.ColumnType.Expression]),e.alias()||e.alias(c.setUniqueAlias(t,"Expr")),e.expression(r)},c.setUniqueAlias=function(e,t){return c.findByName(e,t)?a.getUniqueName(e().map(function(e){return e.actualName()}),t+"_"):t},c.createNew=function(e,t,r,o){r=new i.ColumnExpression({"@Table":r,"@Name":o,"@ItemType":"Column"},e);return e.columns===t&&!r.alias()&&c.findByName(t,r.actualName())&&r.alias(this.setUniqueAlias(t,r.table()+"_"+r.column())),r},c.addNew=function(e,t,r,o,i){void 0===i&&(i=!1);e=this.createNew(e,t,r,o);return(i?t():t).push(e),e},c.remove=function(e,t,r,o){if(o=void 0===o?!1:o){for(var i=0;i<e().length;i++)if(e()[i].column()===r&&e()[i].table()===t)return void e().splice(i,1)}else e.remove(function(e){return e.column()===r&&e.table()===t})},c.columnTypeToFederated=function(e){switch(e){case s.ColumnType[s.ColumnType.Expression]:return l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectExpression];case s.ColumnType[s.ColumnType.AllColumns]:return l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectAllNodeColumnsExpression];case s.ColumnType[s.ColumnType.AllColumnsQuery]:return l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectAllColumnsExpression];default:return l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectColumnExpression]}},c.federatedTypeToColumn=function(e){switch(e){case l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectExpression]:return s.ColumnType[s.ColumnType.Expression];case l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectAllNodeColumnsExpression]:return s.ColumnType[s.ColumnType.AllColumns];case l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectAllColumnsExpression]:return s.ColumnType[s.ColumnType.AllColumnsQuery];default:return s.ColumnType[s.ColumnType.Column]}},t.ColumnExpressionCollectionHelper=c},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.AllColumnsViewModel=void 0,r(2)),s=r(31),l=r(0),c=r(35),d=r(1),u=r(171),p=r(34),r=(n=s.QueryElementBaseViewModel,i(f,n),f.prototype.getInfo=function(){return u.allColumnsSerializationInfo},f.DisplayName=function(){var e=d.getLocalization("(All Columns)","DataAccessStringId.QueryBuilder_AllColumns");return"*"===e.charAt(0)?e:"* "+e},f);function f(t,r){var e=n.call(this,{"@ControlType":"Column"},t,r)||this,o=t.parentModel(),i=a.pureComputed(function(){return l.findFirstItemMatchesCondition(o.columns(),function(e){return t.actualName()===e.table()&&c.ColumnType.AllColumns===e.itemType()})});return e.selected=a.pureComputed({read:function(){return!!i()},write:function(e){!!i()!==e&&(e?o.columns.push(new p.ColumnExpression({"@ItemType":c.ColumnType.AllColumns,"@Table":t.actualName()},o,r)):o.columns.remove(function(e){return t.actualName()===e.table()&&c.ColumnType.AllColumns===e.itemType()}))}}),e.name=a.pureComputed(f.DisplayName),e._disposables.push(e.name),e}t.AllColumnsViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterViewModel=void 0,r(13)),s=r(0),r=(i=a.DataSourceParameter,n(l,i),l.prototype.getEditorType=function(e){return s.IsDataAccessExpression(e)?{header:"dxqb-expressionstring"}:s.getEditorType(e)},l);function l(){return null!==i&&i.apply(this,arguments)||this}t.ParameterViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnSurface=void 0,r(2)),s=r(4),l=r(55),c=r(0),r=(i=s.SurfaceElementBase,n(d,i),d);function d(e,t){var o=i.call(this,e,t,null)||this;return o.template="dxqb-table-field",o.toggleSelected=function(){o.getControlModel().selected(!o.getControlModel().selected())},o.selectedWrapper=a.pureComputed(function(){return o.getControlModel().selected()}),o.isNotAvailable=a.pureComputed(function(){return o._control.isNotAvailable()}),o.isAggregate=a.pureComputed(function(){return l.isAggregatedExpression(o.getControlModel())}),o.isAscending=a.pureComputed(function(){return"Ascending"===o.getControlModel().sortingType()}),o.isDescending=a.pureComputed(function(){return"Descending"===o.getControlModel().sortingType()}),o.cssClasses=function(e,t,r){return o._isJoined||(o._isJoined=a.pureComputed(function(){return e.isJoined(o)||o.getControlModel()===t.getDragColumn()})),o._isHovered||(o._isHovered=a.pureComputed(function(){var e=!!t.getDragColumn()&&o.getControlModel().parentModel()!==t.getDragColumn().parentModel();return o.underCursor().isOver&&(!c.DragDropHandler.started()||e)})),{"dxd-state-invalid":o.isNotAvailable,"dxd-state-active":o.selected(),"dxd-state-joined":o._isJoined,"dxd-state-hovered":o._isHovered}},o}t.ColumnSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenWizardPage=void 0,r(2)),s=r(3),l=r(10),c=r(184),d=r(185),u=r(1),p=r(0),f=r(9),m=r(14),r=(i=f.WizardPageBase,n(y,i),y.prototype.dispose=function(){this._sectionsProcessor.dispose(),this._factory.reset(),this._sections=[]},y.prototype._patchOnChange=function(){var t=this;Object.keys(this._factory.metadata).forEach(function(e){t._factory.metadata[e].onChange=function(){return t._onChange()}})},y.prototype._getPageStyle=function(e,t){return l.getSectionStyle(e,this._defaultMargin,t=void 0===t?!0:t)},y.prototype._applyCustomizations=function(){this._sectionsToUnregister.forEach(function(e){return e()}),this._sectionsToUnregister=[],this._sectionPositions.forEach(function(e){return e()}),this._sectionPositions=[],this._sectionsToRegister.forEach(function(e){return e()}),this._sectionsToRegister=[]},y.prototype._setSectionPosition=function(e,t){this._pageCss[e]=a.observable(this._getPageStyle(t))},y.prototype.registerSections=function(){},y.prototype.canNext=function(){return this._sectionsProcessor.sections.every(this._sectionCondition)},y.prototype._sectionCondition=function(e){return e.metadata.required?e.page()&&e.metadata.canNext(e.page().page):!e.page()||e.metadata.canNext(e.page().page)},y.prototype.canFinish=function(){for(var e=this._sections.length-1;0<=e;e--)if(this._sections[e].page()&&this._sections[e].metadata.canFinish(this._sections[e].page().page))return!0;return!1},y.prototype.setSectionPosition=function(e,t){var r=this;this._sectionPositions.push(function(){r._setSectionPosition(e,t)})},y.prototype.registerSection=function(e,t){var r=this;this._sectionsToRegister.push(function(){r._factory.registerMetadata(e,t)})},y.prototype.unregisterSection=function(e){var t=this;this._sectionsToUnregister.push(function(){return t._factory.unregisterMetadata(e)})},y.prototype._loadPanelViewModel=function(e){return!1},y.prototype.getNextSectionId=function(e){},y.prototype.initialize=function(e,t){var r=this;return this.registerSections(),this._applyCustomizations(),this._sectionsProcessor.initialize(p.extend(!0,{},e)),this._stateManager=this._sectionsProcessor.stateManager,this._sectionsProcessor.iterator.getNextPageId=function(e){return r.getNextSectionId(e)},this._sectionsProcessor.start(),s.Deferred().resolve().promise()},y.prototype._beforeStart=function(){},y.prototype.commit=function(){var e=this,t=s.Deferred();return this._sectionsProcessor.finishAction().done(function(){t.resolve(p.extend(!0,{},e._stateManager.getCurrentState()))}),t.promise()},y.prototype._getPageDescription=function(e,t){return e+1+". "+t.metadata.description},y.prototype._showPageDescription=function(){return 1<this._sections.length},y);function y(){var t=i.call(this)||this;return t._sectionsToUnregister=[],t._sectionsToRegister=[],t._sectionPositions=[],t._initInProgress=a.observable(!1),t._defaultMargin=24,t._parentMarginOffset=t._defaultMargin+t._defaultMargin/2,t._className="",t._pageCss={},t.events=new u.EventManager,t._factory=new c.WizardPageSectionFactory,t._sectionsProcessor=new d.WizardPageProcessor(t._factory,function(e){t[m.__loadingStateFunctionName]&&t[m.__loadingStateFunctionName](e)},function(){return t[m.__nextActionFunctionName]&&t[m.__nextActionFunctionName]()}),t._sectionsProcessor.events.addHandler("beforeStart",function(){t._sections=t._sectionsProcessor.sections,t._beforeStart(),t._patchOnChange()}),t._sectionsProcessor.events.addHandler("beforePageInitialize",function(e){t.events.call("beforeSectionInitialize",{section:e.page,sectionId:e.pageId,page:t,state:e.state})}),t._sectionsProcessor.events.addHandler("afterPageInitialize",function(e){t.events.call("afterSectionInitialize",{section:e.page,sectionId:e.pageId,page:t})}),t}t.FullscreenWizardPage=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectingPointSurface=void 0,r(2)),r=r(38),r=(i=r.DiagramElementBaseSurface,n(s,i),s._unitProperties={_x:function(e){return a.pureComputed(function(){return e.location.x()-e.parentModel().location.x()})},_y:function(e){return a.pureComputed(function(){return e.location.y()-e.parentModel().location.y()})}},s);function s(e,t){e=i.call(this,e,t,s._unitProperties)||this;return e.template="dxdd-connecting-point",e.selectiontemplate="dxdd-connection-point-selection",e.contenttemplate="",e}t.ConnectingPointSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.diagramSerializationsInfo=t.pageHeight=t.pageWidth=t.margins=t.DiagramViewModel=void 0,r(2)),s=r(16),l=r(1),c=r(4),d=r(1),u=r(23),r=r(6),s=(i=s.DiagramElementBaseViewModel,n(p,i),p.prototype.getInfo=function(){return t.diagramSerializationsInfo},p);function p(e){var t=this,r=new l.ModelSerializer;return(t=i.call(this,e,null,r)||this).controlType="Diagram",t.controls=a.observableArray(),t.name("Diagram"),t}t.DiagramViewModel=s,t.margins={propertyName:"margins",modelName:"@Margins",from:c.Margins.fromString,displayName:"Margins"},t.pageWidth={propertyName:"pageWidth",modelName:"@PageWidth",defaultVal:850,from:d.floatFromModel,displayName:"Page Width",editor:r.editorTemplates.getEditor("numeric")},t.pageHeight={propertyName:"pageHeight",modelName:"@PageHeight",defaultVal:1250,from:d.floatFromModel,displayName:"Page Height",editor:r.editorTemplates.getEditor("numeric")},t.diagramSerializationsInfo=[u.name,t.pageWidth,t.pageHeight,t.margins]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramSurface=void 0,r(2)),s=r(4),l=r(0),c=r(0),r=(i=s.SurfaceElementBase,n(d,i),d.prototype.checkParent=function(e){return!1},Object.defineProperty(d.prototype,"parent",{get:function(){return this._parent},set:function(e){this._parent=e},enumerable:!1,configurable:!0}),d.prototype.getChildrenCollection=function(){return a.observableArray([])},d._unitProperties={_width:function(e){return e.pageWidth},_height:function(e){return e.pageWidth},pageWidth:function(e){return e.pageWidth},pageHeight:function(e){return e.pageHeight},_bottom:function(e){return e.margins.bottom},_left:function(e){return e.margins.left},_right:function(e){return e.margins.right},_top:function(e){return e.margins.top}},d);function d(e,t){void 0===t&&(t=a.observable(1));var r=i.call(this,e,{measureUnit:a.observable("Pixels"),zoom:t,dpi:a.observable(100)},d._unitProperties)||this;return r.measureUnit=a.observable("Pixels"),r.dpi=a.observable(100),r.controls=a.observableArray(),r.allowMultiselect=!1,r.focused=a.observable(!1),r.selected=a.observable(!1),r.underCursor=a.observable(new c.HoverInfo),r.templateName="dx-diagram-surface",r.margins={bottom:r._bottom,left:r._left,right:r._right,top:r._top},r.zoom=t,r._context=r,l.createObservableArrayMapCollection(e.controls,r.controls,r._createSurface),r}t.DiagramSurface=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.connectionPointSerializationInfo=t.ConnectionPointViewModel=void 0,r(2)),n=r(16),l=r(23),c=r(0),r=(a=n.DiagramElementBaseViewModel,i(d,a),d);function d(e,t,r){var o=a.call(this,c.extend(e,{"@ControlType":"ConnectionPoint"}),t,r)||this,i=o.location.x,n=o.location.y;return o.location.x=s.pureComputed({read:function(){return o.connectingPoint()&&o.connectingPoint().location.x()||i()},write:function(e){o.connectingPoint(null),i(e)}}),o.location.y=s.pureComputed({read:function(){return o.connectingPoint()&&o.connectingPoint().location.y()||n()},write:function(e){o.connectingPoint(null),n(e)}}),o}t.ConnectionPointViewModel=r,t.connectionPointSerializationInfo=[l.location,{propertyName:"connectingPoint",modelName:"@ConnectingPoint",link:!0}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorViewModel=void 0,r(2)),s=r(16),l=r(81),c=r(4),d=r(4),u=r(0),r=(i=s.DiagramElementBaseViewModel,n(p,i),p.prototype.getX=function(){return(this.startPoint().location.x()<this.endPoint().location.x()?this.startPoint():this.endPoint()).location.x()},p.prototype.getY=function(){return(this.startPoint().location.y()<this.endPoint().location.y()?this.startPoint():this.endPoint()).location.y()},p.prototype.getWidth=function(){return Math.abs(this.startPoint().location.x()-this.endPoint().location.x())||p.MIN_LINE_THICKNESS},p.prototype.getHeight=function(){return Math.abs(this.startPoint().location.y()-this.endPoint().location.y())||p.MIN_LINE_THICKNESS},p.MIN_LINE_THICKNESS=3,p);function p(e,t,r){var o=i.call(this,u.extend({"@ControlType":"Connector"},e),t,r)||this;return o.startPoint(o.startPoint()||new l.ConnectionPointViewModel({"@Location":"0, 0"},o,r)),o.endPoint(o.endPoint()||new l.ConnectionPointViewModel({"@Location":"150, 75"},o,r)),o.location=new c.Point(0,0),o._disposables.push(o.location.x=a.pureComputed({read:function(){return o.getX()},write:function(e){e-=(o.startPoint().location.x()<o.endPoint().location.x()?o.startPoint():o.endPoint()).location.x();o.startPoint().location.x(o.startPoint().location.x()+e),o.endPoint().location.x(o.endPoint().location.x()+e)}})),o._disposables.push(o.location.y=a.pureComputed({read:function(){return o.getY()},write:function(e){e-=(o.startPoint().location.y()<o.endPoint().location.y()?o.startPoint():o.endPoint()).location.y();o.startPoint().location.y(o.startPoint().location.y()+e),o.endPoint().location.y(o.endPoint().location.y()+e)}})),o.size=new d.Size(0,0),o._disposables.push(o.size.width=a.pureComputed({read:function(){return o.getWidth()},write:function(e){o.startPoint().location.x()<o.endPoint().location.x()?o.endPoint().location.x(o.startPoint().location.x()+e):o.startPoint().location.x(o.endPoint().location.x()+e)}})),o._disposables.push(o.size.height=a.pureComputed({read:function(){return o.getHeight()},write:function(e){o.startPoint().location.y()<o.endPoint().location.y()?o.endPoint().location.y(o.startPoint().location.y()+e):o.startPoint().location.y(o.endPoint().location.y()+e)}})),o}t.ConnectorViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerControls=void 0;var o=r(23),i=r(4),n=r(4),a=r(130),s=r(16),l=r(82),c=r(60),d=r(59),u=r(81),p=r(25),f=r(79),m=r(80),y=r(39),h=r(78),g=r(6),_=r(129),b=r(58),S=r(57);t.registerControls=function(){S.diagramControlsFactory.registerControl("Unknown",{info:o.unknownSerializationsInfo,type:i.ElementViewModel,nonToolboxItem:!0,surfaceType:n.SurfaceElementBase}),S.diagramControlsFactory.registerControl("Connector",{info:[o.name,{propertyName:"location",displayName:"Location",editor:g.editorTemplates.getEditor("objecteditor")},{propertyName:"startPoint",modelName:"@StartPoint",link:!0},{propertyName:"endPoint",modelName:"@EndPoint",link:!0}],surfaceType:a.ConnectorSurface,type:l.ConnectorViewModel,elementActionsTypes:[],nonToolboxItem:!1}),S.diagramControlsFactory.registerControl("RoutedConnector",{info:[o.name,{propertyName:"location",displayName:"Location",editor:g.editorTemplates.getEditor("objecteditor")},{propertyName:"startPoint",modelName:"@StartPoint",link:!0},{propertyName:"endPoint",modelName:"@EndPoint",link:!0}],surfaceType:c.RoutedConnectorSurface,type:d.RoutedConnectorViewModel,elementActionsTypes:[],nonToolboxItem:!1}),S.diagramControlsFactory.registerControl("ConnectionPoint",{info:u.connectionPointSerializationInfo,surfaceType:p.ConnectionPointSurface,type:u.ConnectionPointViewModel,elementActionsTypes:[],nonToolboxItem:!0}),S.diagramControlsFactory.registerControl("Diagram",{info:f.diagramSerializationsInfo,surfaceType:m.DiagramSurface,popularProperties:["name"],type:f.DiagramViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0}),S.diagramControlsFactory.registerControl("DiagramElement",{info:s.diagramElementSerializationInfo,defaultVal:{"@SizeF":"150,50",ConnectingPoints:{Item1:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"1","@PercentOffsetY":"0.5"},Item2:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"1"},Item3:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"0"},Item4:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0","@PercentOffsetY":"0.5"}}},surfaceType:_.DiagramElementSurface,popularProperties:["text"],type:b.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),S.diagramControlsFactory.registerControl("Ellipse",{info:s.diagramElementSerializationInfo,defaultVal:{"@SizeF":"150,50","@Type":"Ellipse",ConnectingPoints:{Item1:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"1","@PercentOffsetY":"0.5"},Item2:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"1"},Item3:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"0"},Item4:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0","@PercentOffsetY":"0.5"}}},surfaceType:_.DiagramElementSurface,popularProperties:["text"],type:b.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),S.diagramControlsFactory.registerControl("Condition",{info:s.diagramElementSerializationInfo,defaultVal:{"@SizeF":"150,50","@Type":"Condition",ConnectingPoints:{Item1:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"1","@PercentOffsetY":"0.5"},Item2:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"1"},Item3:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"0"},Item4:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0","@PercentOffsetY":"0.5"}}},surfaceType:_.DiagramElementSurface,popularProperties:["text"],type:b.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),S.diagramControlsFactory.registerControl("ConnectingPoint",{info:y.connectingPointSerializationInfo,surfaceType:h.ConnectingPointSurface,type:y.ConnectingPointViewModel,elementActionsTypes:[],nonToolboxItem:!0})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchemaProvider=void 0,r(2)),s=r(3),l=r(1),c=r(131),d=r(11),u=r(0),p=r(0),f=r(1),m=r(0),r=(i=l.Disposable,n(y,i),y.prototype._getDBSchema=function(e){return this._getDBSchemaCallback(this.connection,e)},y.prototype._getDBSchemaCallback=function(e,t){return c.getDBSchemaCallback(this._requestWrapper,e,t)},y.prototype._getDBStoredProcedures=function(e){return c.getDBStoredProceduresCallback(this._requestWrapper,e)},y.prototype.getDbSchema=function(){return this._dbSchema&&"rejected"!==this._dbSchema.state()||(this._dbSchema=this._getDBSchema()),this._dbSchema},y.prototype.getDbStoredProcedures=function(){return this._dbStoredProceduresSchema&&"rejected"!==this._dbStoredProceduresSchema.state()||(this._dbStoredProceduresSchema=this._getDBStoredProcedures(this.connection)),this._dbStoredProceduresSchema},y.prototype.getDbTable=function(t){var r,o=this;return this._tables[t]||(r=s.Deferred(),this._tables[t]=r.promise(),this.getDbSchema().done(function(e){e=u.findFirstItemMatchesCondition(e.tables,function(e){return e.name===t});e?0<e.columns.length?r.resolve(e):o._tableRequests.push({table:e,deferred:r}):(r.reject(),p.isCustomizedWithUpdateLocalizationMethod("The schema does not contain the specified table: ")?f.getLocalization("The schema does not contain the specified table: "):m.formatUnicorn(f.getLocalization('The schema does not contain the specified table: "{0}".',"DataAccessStringId.TableNotInSchemaValidationException"),t))}).fail(function(){return r.reject()})),this._tables[t]},y);function y(e,t){void 0===t&&(t=new d.RequestWrapper);var r=i.call(this)||this;return r._requestWrapper=t,r._tables={},r._tableRequests=a.observableArray([]).extend({deferred:!0}),r.connection=e,r._disposables.push(r.connection.name.subscribe(function(){r._tables={},r._dbSchema=null,r._dbStoredProceduresSchema=null})),r._disposables.push(a.computed(function(){var e,t=r._tableRequests();t.length&&(r._tableRequests([]),e=t.map(function(e){return e.table}),r._getDBSchema(e).done(function(r){t.forEach(function(t){var e=r.tables.filter(function(e){return e.name===t.table.name})[0];e?(t.table.columns=e.columns,t.deferred.resolve(t.table)):t.deferred.reject()})}).fail(function(){return t.forEach(function(e){return e.deferred.reject()})}))})),r.getItems=function(e){var t=s.Deferred();return e.fullPath?t.resolve([]):r.getDbSchema().done(function(e){t.resolve(s.map(e.tables,function(e){return{name:e.name,displayName:e.name,isList:!1,specifics:e.isView?"view":"table",dragData:{noDragable:!1}}}))}),t.promise()},r}t.DBSchemaProvider=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBTable=void 0;var o=r(18),i=r(133),n=r(19);t.DBTable=function(e){this.name=e.Name,this.isView="true"===e.IsView||!0===e.IsView,this.columns=n.deserializeToCollection(e.columns,function(e){return new o.DBColumn(e)}),this.foreignKeys=n.deserializeToCollection(e.foreignKeys,function(e){return new i.DBForeignKey(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBStoredProcedureArgument=t.DBStoredProcedureArgumentDirection=t.DBStoredProcedure=void 0;var o=r(19),i=(t.DBStoredProcedure=function(e){this.name=e.Name,this.arguments=o.deserializeToCollection(e.arguments,function(e){return new i(e)})},(r=t.DBStoredProcedureArgumentDirection||(t.DBStoredProcedureArgumentDirection={}))[r.In=0]="In",r[r.Out=1]="Out",r[r.InOut=2]="InOut",function(e){this.name=e.Name,this.type=e.Type,this.direction=e.Direction});t.DBStoredProcedureArgument=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HandlerUri=t.ActionId=void 0;r=r(0);t.ActionId={Save:"dxqb-save",DataPreview:"dxqb-data-preview",SelectStatementPreview:"dxqb-select-statement-preview"},t.HandlerUri=r.createGlobalModuleVariableFunc("DXQB.axd")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultSet=void 0;var o=r(1),i=r(1),n=r(134),a=[{propertyName:"name",modelName:"@Name"},{propertyName:"tables",modelName:"Views",array:!0}];function s(e,t){(t=t||new o.ModelSerializer).deserialize(this,e),this.tables=i.deserializeArray(e&&e.Views||[],function(e){return new n.ResultTable(e,t)})}s.prototype.getInfo=function(){return a},s.from=function(e,t){return e&&new s(e.DataSet,t)||null},s.toJson=function(e,t,r){return{DataSet:t.serialize(e,a,r)}},t.ResultSet=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonAuthenticationInfo=void 0;var o=r(1);function i(e,t){(t=t||new o.ModelSerializer).deserialize(this,e||{})}i.from=function(e,t){return new i(e,t)},i.toJson=function(e,t,r){return t.serialize(e,e.getInfo(),r)},i.prototype.getInfo=function(){return[{propertyName:"password",modelName:"@password",defaultVal:""},{propertyName:"userName",modelName:"@user",defaultVal:""}]},t.JsonAuthenticationInfo=i},function(e,t,r){"use strict";var o,i,n,a=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonParameter=t.JsonParameterType=void 0,r(2)),l=r(1),c=r(1),d=r(6),u=r(1),r=((r=i=t.JsonParameterType||(t.JsonParameterType={}))[r.PathParameter=0]="PathParameter",r[r.QueryParameter=1]="QueryParameter",r[r.Header=2]="Header",n=l.Disposable,a(p,n),p.from=function(e,t){return new p(e||{},t)},p.toJson=function(e,t,r){return t.serialize(e,e.getInfo(),r)},p.prototype._initEditingProperties=function(){var e=this.value()||"";0===e.indexOf(this.expression_Prefix)?(this.isExpression(!0),this._expression.value(e.substring(this.expression_Prefix.length))):this._editingValue(e)},p.prototype.switchEditors=function(){var e=!this.isExpression();this.isExpression(e),e?this._expression.value(this._editingValue()?"'"+this._editingValue()+"'":""):this._editingValue("")},p.prototype.getInfo=function(){return[{propertyName:"name",modelName:"@Name",displayName:"Name",editor:d.editorTemplates.getEditor("text")},{propertyName:"value",modelName:"@Value",displayName:"Value",editor:d.editorTemplates.getEditor("text")},{propertyName:"itemType",modelName:"@ItemType",defaultVal:i[i.PathParameter],alwaysSerialize:!0}]},p);function p(e,t){var r=n.call(this)||this;return r.expression_Prefix="expression:",r.namePlaceholder=function(){return u.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder")},r.valuePlaceholder=function(){return u.getLocalization("Value","AnalyticsCoreStringId.CollectionEditor_Value_Placeholder")},r._editingValue=s.observable(""),r._expression={value:s.observable("")},r.isExpression=s.observable(!1),r.itemsProvider=null,r._parameterTypes=f,(t=t||new c.ModelSerializer).deserialize(r,e),r._initEditingProperties(),r._disposables.push(r.value=s.computed(function(){var e=r.expression_Prefix+r._expression.value(),t=r._editingValue();return r.isExpression.peek()?e:t})),r}t.JsonParameter=r;var f=[{value:i[i.PathParameter],displayValue:"Path Parameter",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_PathParameter"},{value:i[i.QueryParameter],displayValue:"Query Parameter",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_QueryParameter"},{value:i[i.Header],displayValue:"Header",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_Header"}]},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SqlDataSource=void 0,r(142)),s=r(88),l=r(1),c=r(7),d=r(40),u=r(43),p=r(44),f=r(1),m=r(11),y=r(42),h=r(138),g=r(84),_=r(0),b=[{propertyName:"name",modelName:"@Name"},{propertyName:"connection",modelName:"Connection",from:a.SqlDataConnection.from,toJsonObject:a.SqlDataConnection.toJson},{propertyName:"queries",modelName:"Queries",array:!0},{propertyName:"relations",modelName:"Relations",array:!0},{propertyName:"resultSet",modelName:"ResultSchema",from:s.ResultSet.from,toJsonObject:s.ResultSet.toJson},{propertyName:"itemType",modelName:"@ItemType"}],r=(n=l.Disposable,i(S,n),S.prototype.getInfo=function(){return b},S.prototype.createQuery=function(e,t){if(e["@Type"]===c.SqlQueryType.customSqlQuery)return new d.CustomSqlQuery(e,this,t);if(e["@Type"]===c.SqlQueryType.tableQuery)return new u.TableQuery(e,this,t);if(e["@Type"]===c.SqlQueryType.storedProcQuery)return new p.StoredProcQuery(e,this,t);throw new Error("Unknown sql query type.")},S);function S(e,t,r){void 0===r&&(r=new m.RequestWrapper);var o=n.call(this)||this,i=((t=t||new f.ModelSerializer).deserialize(o,_.extend(e,{"@ItemType":"SqlDataSource"})),o._model.Name);return i&&(o.name()||o.name(i),delete o._model.Name),o.queries=l.deserializeArray(e.Queries,function(e){return o.createQuery(e,t)}),o.relations=l.deserializeArray(e.Relations,function(e){return new y.MasterDetailRelation(e,t)}),o.connection&&e.ConnectionOptions&&(o.connection.options=new h.ConnectionOptions(e.ConnectionOptions,t)),o.dbSchemaProvider=new g.DBSchemaProvider(o.connection,r),o._disposables.push(o.connection.name.subscribe(function(){o.queries([]),o.relations([]),o.resultSet=null})),o}t.SqlDataSource=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectQuery=t.selectQuerySerializationsInfo=void 0,r(2)),s=r(7),l=r(1),c=r(0),d=r(20),u=r(27),p=r(1),f=r(93),m=r(45),r=(t.selectQuerySerializationsInfo=[{propertyName:"queryType",modelName:"@QueryType"},{propertyName:"alias",modelName:"@Alias"},{propertyName:"expressions",modelName:"Expressions",array:!0},{propertyName:"subNodes",modelName:"SubNodes",array:!0},{propertyName:"root",modelName:"Root"},{propertyName:"itemType",modelName:"@ItemType"}],i=p.Disposable,n(y,i),Object.defineProperty(y.prototype,"sources",{get:function(){return a.observableArray([this.root()].concat(this.subNodes().map(function(e){return e.query()})).map(function(e){return new m.FederationSource({},new l.ModelSerializer,e.getPath(),e.sourceName())}))},enumerable:!1,configurable:!0}),y.prototype.getInfo=function(){return t.selectQuerySerializationsInfo},y.prototype.generateName=function(){return this.root()?this.root().alias():"SelectQuery"},y.prototype.init=function(e,t){(t||new l.ModelSerializer).deserialize(this,c.extend(e,{"@ItemType":"Query"})),this._disposables.push(this.queryType=a.pureComputed(function(){return s.FederationQueryType[s.FederationQueryType.SelectNode]})),this.expressions=p.deserializeArray(e.Expressions,function(e){return new d.FederatedQueryExpression(e,t)}),this.subNodes=p.deserializeArray(e.SubNodes,function(e){return new f.SubNode(e,t)}),e.Root&&(this.root=a.observable(new u.SourceQuery(e.Root,t,this.alias(),this._path)))},y);function y(e,t,r){var o=i.call(this)||this;return o._path=r,o.init(e,t),o}t.SelectQuery=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubNode=t.subNodeSerializationInfo=void 0;var o=r(2),s=r(1),i=r(0),l=r(29),c=r(29),a=r(30),d=r(65),n=r(27),u=r(30),p=r(29),r=(t.subNodeSerializationInfo=[{propertyName:"condition",modelName:"@Condition",defaultVal:""},{propertyName:"joinType",modelName:"@JoinType",defaultVal:"Inner"},{propertyName:"query",modelName:"Query"}],f.deserializeRelationModel=function(e,t){var o=t.parentTableName(),i=t.nestedTableName(),n=[],t=(t.conditions().forEach(function(e){var t="["+o+"."+e.parentColumnName()+"]",r="["+i+"."+e.nestedColumnName()+"]",e=a.operatorTokens[e.operator()];n.push(t+" "+e+" "+r)}),new f({"@JoinType":t.joinType(),"@Condition":n.join(" And ")}));return t.query(e),t},f.prototype._parsePath=function(e){return"["===e[0]&&"]"===e[e.length-1]?u.CriteriaOperatorStateMachine.parse(e).propertyName:e},f.prototype._createCondition=function(e,t,r){return{"@ControlType":"JoinCondition","@ItemType":"KeyColumn","@Operator":r,"@Nested":t,"@Parent":e}},f.prototype._conditionBinary=function(e){var t=this._parsePath(e.leftPart.propertyName),r=this._parsePath(e.rightPart.propertyName),e=p.BinaryOperatorType[e.operatorType];return this._createCondition(t.split(".")[1],r.split(".")[1],e)},f.prototype.createRelationModel=function(e){for(var t=u.CriteriaOperatorStateMachine.parse(this.condition()),r=[],t=(t instanceof c.GroupOperator?t.operands.forEach(function(e){e instanceof l.BinaryOperator&&r.push(e)}):t instanceof l.BinaryOperator&&r.push(t),this._parsePath(r[0].leftPart.propertyName).split(".")[0]),o=this._parsePath(r[0].rightPart.propertyName).split(".")[0],i={},n=0;n<r.length;n++){var a=r[n];i["Item"+(n+1)]=this._conditionBinary(a)}return new d.RelationViewModel({"@Parent":t,"@Nested":o,"@Type":this.joinType(),KeyColumns:i},e,new s.ModelSerializer)},f.prototype.getInfo=function(){return t.subNodeSerializationInfo},f);function f(e,t){(t=t||new s.ModelSerializer).deserialize(this,i.extend(e,{"@ItemType":"JoinElement"})),e.Query&&(this.query=o.observable(new n.SourceQuery(e.Query)))}t.SubNode=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JoinConditionViewModel=void 0,r(2)),s=r(59),l=r(21),c=r(24),d=r(0),r=(i=s.RoutedConnectorViewModel,n(u,i),u.prototype.getControlFactory=function(){return l.controlsFactory},u.prototype.preInitProperties=function(){this.startPoint=a.observable(),this.endPoint=a.observable()},u);function u(e,t,r){var o=i.call(this,d.extend(e,{"@ControlType":"JoinCondition","@ItemType":"KeyColumn"}),t,r)||this;return o.parentColumn=a.pureComputed(function(){return t.parentTable().getColumn(o.parentColumnName())}),o.nestedColumn=a.pureComputed(function(){return t.nestedTable().getColumn(o.nestedColumnName())}),o.joinType=t.joinType,o.left=a.pureComputed(function(){return t.parentTableName()+"."+o.parentColumnName()}),o.right=a.pureComputed(function(){return t.nestedTableName()+"."+o.nestedColumnName()}),o._disposables.push(a.computed(function(){var e;o.parentColumn()&&o.nestedColumn()&&(e=c.determineConnectingPoints(o.parentColumn(),o.nestedColumn()),o.startPoint().connectingPoint(e.start),o.endPoint().connectingPoint(e.end))})),o}t.JoinConditionViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.relationSerializationInfo=void 0,t.relationSerializationInfo=[{propertyName:"joinType",modelName:"@Type"},{propertyName:"parentTableName",modelName:"@Parent"},{propertyName:"nestedTableName",modelName:"@Nested"},{propertyName:"conditions",modelName:"KeyColumns",defaultVal:[],array:!0},{propertyName:"itemType",modelName:"@itemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sourceSerializationInfo=t.federationDataSourceSerializationInfo=void 0,t.federationDataSourceSerializationInfo=[{propertyName:"name",modelName:"@Name"},{propertyName:"queries",modelName:"Queries",array:!0},{propertyName:"relations",modelName:"Relations",array:!0},{propertyName:"sources",modelName:"Sources",array:!0},{modelName:"SerializableSourceMap",propertyName:"serializableSourceMap",array:!0,info:[{modelName:"@DataSource",propertyName:"dataSource",link:!0},{modelName:"@Name",propertyName:"name"}]}],t.sourceSerializationInfo=[{propertyName:"sourceName",modelName:"@SourceName"},{propertyName:"dataMember",modelName:"@DataMember"}]},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationDataSource=void 0,r(2)),s=r(1),l=r(7),c=r(0),d=r(96),u=r(145),p=r(146),f=r(66),m=r(98),y=r(47),h=r(45),g=r(46),r=(n=m.FederatedQueriesContainer,i(_,n),_.prototype.getInfo=function(){return d.federationDataSourceSerializationInfo},_.prototype.getSerializableModel=function(){return this._serializableModel},_.prototype.createQuery=function(e){var t=n.prototype.createQuery.call(this,e);if(!t){if(e["@QueryType"]===l.FederationQueryType[l.FederationQueryType.UnionNode])return new y.UnionQuery(e,this.dataSources,this._serializer);if(e["@QueryType"]===l.FederationQueryType[l.FederationQueryType.TransformationNode])return new g.TransformQuery(e,this._serializer)}return t},_.prototype.updateSerializableModel=function(){var r=this;this.serializableSourceMap=a.observableArray(),this.sources().forEach(function(e){var t=e.getDataSourceName();t&&r.serializableSourceMap().push({name:a.observable(e.sourceName()),dataSource:a.observable(r.dataSources().filter(function(e){return e.name===t})[0].data)})}),this._serializableModel=new p.SerializableDataFederationDataSource(this,this._serializer)},_.prototype.dispose=function(){n.prototype.dispose.call(this),this.disposeObservableArray(this.relations),this._serializableModel.dispose()},_);function _(e,t,r,o){var i=n.call(this,e,t,o)||this;return i.dataSources=t,i.fielListProvider=r,i.serializableSourceMap=a.observableArray(),i._serializer.deserialize(i,c.extend(e,{"@ItemType":"FederationDataSource"})),i.sources=s.deserializeArray(e.Sources,function(e){return new h.FederationSource(e,o)}),i.queries=s.deserializeArray(e.Queries,function(e){return i.createQuery(e)}),i.relations=s.deserializeArray(e.Relations,function(e){return new f.FederationMasterDetailRelation(e,i._serializer)}),r&&i._disposables.push(i.dbSchemaProvider=new u.DBSchemaFederationDataSourceProvider(i.fielListProvider)),i.updateSerializableModel(),i}t.FederationDataSource=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedQueriesContainer=void 0,r(2)),s=r(1),l=r(7),c=r(45),d=r(20),u=r(1),p=r(92),f=r(0),r=(i=u.Disposable,n(m,i),m.prototype.getQueryNameFromPath=function(e){var t=e.split("."),e=this.dataSources().filter(function(e){return e.ref==t[0]||e.id==t[0]})[0];return t[0]=e&&e.name||t[0],t.join("_")},m.prototype.getPathFromQueryName=function(e){for(var t=0,r=this.sources();t<r.length;t++){var o,i,n=r[t];if(n.sourceName()===e)return n=n.getPath().split("."),i=n.shift(),o=this.dataSources().filter(function(e){return e.name==i})[0],(i=o&&(o.ref||o.id)||i)+(0<n.length?"."+n.join("."):"")}},m.prototype.createQuery=function(e,t){return e["@QueryType"]===l.FederationQueryType[l.FederationQueryType.SelectNode]?new p.SelectQuery(e,this._serializer,(t||this).getPathFromQueryName(e.Root&&e.Root["@SourceName"])):null},m.prototype.addSource=function(t,e){t instanceof c.FederationSource?this.sources().filter(function(e){return e.sourceName()==t.sourceName()})[0]||this.sources.push(t):this.sources().filter(function(e){return e.sourceName()==t})[0]||this.sources.push(new c.FederationSource({},this._serializer,e,t))},m.prototype.removeSource=function(t){var e=f.findFirstItemMatchesCondition(this.sources(),function(e){return e.sourceName()===t});this.queries().some(function(e){return e.expressions().some(function(e){return e.table()===t})})||this.sources.remove(e)},m.prototype.addSelectQuery=function(e,t){var r=this.getQueryNameFromPath(e),o=this.queries().filter(function(e){return e.alias()===r})[0];o||(o=new p.SelectQuery({"@Alias":r,Root:{}},this._serializer,e),this.queries.push(o),this.addSource(r,e)),t&&!o.expressions().filter(function(e){return e.name()==t})[0]&&(e=new d.FederatedQueryExpression({"@NodeAlias":r,"@Name":t,"@ExpressionType":d.FederatedQueryExpressionType[d.FederatedQueryExpressionType.SelectColumnExpression]},this._serializer),o.expressions.push(e))},m.prototype.removeQuery=function(t){var e=this.queries().filter(function(e){return e.alias()===t})[0],e=(this.queries.remove(e),this.sources().filter(function(e){return e.sourceName()==t})[0]);e&&this.sources.remove(e)},m.prototype.removeExpression=function(t,e){var r=this.getQueryNameFromPath(e),e=this.queries().filter(function(e){return e.alias()===r})[0],o=e.expressions().filter(function(e){return e.name()==t})[0];e.expressions.remove(o),0==e.expressions().length&&this.removeQuery(r)},m.prototype.dispose=function(){i.prototype.dispose.call(this),this.disposeObservableArray(this.sources),this.disposeObservableArray(this.queries)},m);function m(e,t,r){var o=i.call(this)||this;return o.dataSources=t,o._serializer=r,o.sources=a.observableArray(),o._serializer=r||new s.ModelSerializer,o}t.FederatedQueriesContainer=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateQueryUniqueName=void 0;var i=r(0),n=r(0);t.generateQueryUniqueName=function(e,t,r){var o=(t[r=void 0===r?"name":r]()||t.generateName()).replace(".","_");return i.findFirstItemMatchesCondition(e,function(e){return e[r]()===o})?n.getUniqueNameForNamedObjectsArray(e,o+"_"):o}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._WrappedWizardPage=void 0,r(3)),s=r(1),l=r(14),r=(n=s.Disposable,i(c,n),c.prototype.dispose=function(){this.onChange=null,this[l.__loadingStateFunctionName]=null,this.page.dispose(),this._initDef&&this._initDef.reject(),this._initDef=null},c.prototype.resetCommitedState=function(){this._lastCommitedState=null},c.prototype.commit=function(){var t=this;return this.page.commit().done(function(e){t.isChanged=JSON.stringify(t._lastCommitedState)!==JSON.stringify(e),t._lastCommitedState=e})},c.prototype.initialize=function(e,t,r){var o=this;return void 0===t&&(t=!1),void 0===r&&(r=!1),this._initDef&&this._initDef.reject(),this._initDef=a.Deferred(),!this._isInitialized||t?(this._isInitialized=!0,this.page.initialize(e,r).fail(function(){o._isInitialized=!1,o._initDef&&o._initDef.reject()}).done(function(e){o._initDef&&o._initDef.resolve(e)})):this._initDef.resolve(),this._initDef.promise()},c);function c(e,t,r,o){var i=n.call(this)||this;return i.pageId=e,i.page=t,i.template=r,i.description=o,i._isInitialized=!1,i._initDef=null,i.isChanged=!0,t.onChange&&(i.onChange=function(e){return t.onChange(e)}),i}t._WrappedWizardPage=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerConfigureObjectDataSourceParametersPage=t.ConfigureObjectDataSourceParametersPage=void 0,r(3)),s=r(26),l=r(102),c=r(5),d=r(1),r=r(9),u=(i=r.WizardPageBase,n(p,i),p.prototype.canNext=function(){return!1},p.prototype.canFinish=function(){return!0},p.prototype.commit=function(){return a.Deferred().resolve({selectedType:this._objectDataSource.selectedType,ctor:this._objectDataSource.ctor,dataMember:this._objectDataSource.dataMember,dataSourceName:this._objectDataSource.name()}).promise()},p.prototype.initialize=function(e){return this._objectDataSource.setState(e),this._chooseObjectParameters.updateCtorParameters(this._objectDataSource.ctor),this._chooseObjectParameters.updateMethodParameters(this._objectDataSource.dataMember),a.Deferred().resolve().promise()},p);function p(e){var t=i.call(this)||this;return t._objectDataSource=new s.ObjectDataSource,t._disposables.push(t._chooseObjectParameters=new l.ChooseObjectMemberParameters(e)),t}t.ConfigureObjectDataSourceParametersPage=u,t._registerConfigureObjectDataSourceParametersPage=function(e,t){e.registerMetadata(c.ObjectDataSourceWizardPageId.ConfigureParametersPage,{setState:function(e,t){t.ctor=e.ctor,t.dataMember=e.dataMember,t.selectedType=e.selectedType},getState:function(e){return e.objectDataSourceWizard},resetState:function(e,t){e.dataMember=t.dataMember},create:function(){return new u(t&&t())},description:d.getLocalization("Configure constructor parameters and/or method parameters.","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_Description"),template:"dx-objectdatasource-configureparameters-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChooseObjectParameters=t.ChooseObjectMemberParameters=t.ObjectDataSourceParametersModel=t.ObjectDataSourceParameterProperty=void 0,r(2)),s=r(1),l=r(0),c=r(0),d=r(13),u=r(1),r=r(6),p=(i=s.Disposable,n(f,i),f.prototype.switchPropertyType=function(){this.isExpression()?(this.type(this._parameter.resultType),this._parameter.value=this.value()):(this.type(l.ExpressionType),this._parameter.value=this.expression.value())},f.prototype.isExpression=function(){return l.IsDataAccessExpression(this.type())},f.prototype._generateInfo=function(e,t){return c.extend({},{displayName:this._parameter.displayName,propertyName:t=void 0===t?"value":t,modelName:t,editorOptions:{}},e)},f.prototype._initGetInfo=function(t){var r=this,e=[this._generateInfo({editor:l.getEditorType(this._parameter.resultType),from:function(e){return a.observable((t.valueConverter||function(e){return e})(e))},defaultVal:!this.isExpression()&&this._parameter.value||t.defaultValue}),this._generateInfo({editor:{header:"dx-objectdatasource-expression-popup"},from:function(e){return{value:a.observable(e),itemsProvider:r._itemsProvider}},defaultVal:this.isExpression()&&this._parameter.value||""},"expression")];this._disposables.push({dispose:function(){return r.getInfo=void 0}}),this.getInfo=function(){return e}},f.prototype._subscribeProperties=function(){var t=this;this._disposables.push(this.type.subscribe(function(e){t._parameter.type=e}),this.expression.value.subscribe(function(e){t.isExpression()&&(t._parameter.value=e)}),this.value.subscribe(function(e){t.isExpression()||(t._parameter.value=e)}))},f.prototype.isPropertyVisible=function(e){return this.isExpression()?"expression"===e:"value"===e},f);function f(e,t){var r=i.call(this)||this,e=(r._parameter=e,r._itemsProvider=t,r.type=a.observable(""),r.type(r._parameter.type),d.DataSourceParameter._getTypeValue(r._parameter.resultType));return r._initGetInfo(e),(new u.ModelSerializer).deserialize(r,{}),r._subscribeProperties(),r}t.ObjectDataSourceParameterProperty=p;y.prototype._doWithModel=function(e){var t=this._editor._model();if(t instanceof p)return e(t)},y.prototype.switchEditors=function(){this._doWithModel(function(e){return e.switchPropertyType()})},y.prototype.isExpression=function(){return this._doWithModel(function(e){return e.isExpression()})};var m=y;function y(e){this._editor=e,this.imageTemplateName="dx-objectdatasource-expression"}h=r.ObjectProperties,n(_,h);var h,g=_;function _(e){e=h.call(this,a.observable(e))||this;return e.createEditorAddOn=function(e){return{data:new m(e),templateName:"dx-wizard-menu-box-editorswitch"}},e}b=s.Disposable,n(v,b);var b,S=v;function v(e,r){var o=b.call(this)||this;return o.displayName=e.displayName,o._grids=e.parameters.map(function(e){var e=new p(e,r),t=new g(e);return o._disposables.push(e),o._disposables.push(t),t}),o}t.ObjectDataSourceParametersModel=S;P=s.Disposable,n(x,P),x.prototype._updateParameters=function(e,t){this[e]()&&this[e]().dispose(),t&&0<t.parameters.length?this[e](new S(t,this._itemsProvider)):this[e](null)},x.prototype.updateCtorParameters=function(e){this._updateParameters("_ctorParametersObject",e)},x.prototype.updateMethodParameters=function(e){this._updateParameters("_dataMemberParametersObject",e)};var P,r=x;function x(e){var t=P.call(this)||this;return t._itemsProvider=e,t._ctorParametersObject=a.observable(),t._dataMemberParametersObject=a.observable(),t.hasParameters=function(){return t._dataMemberParametersObject()||t._ctorParametersObject()},t}t.ChooseObjectMemberParameters=r;n(T,C=r);var C,s=T;function T(e,t,r){var o=C.call(this,r)||this;return o._disposables.push(e.subscribe(function(e){o.updateCtorParameters(e)})),o._disposables.push(t.subscribe(function(e){o.updateMethodParameters(e[0])})),o}t.ChooseObjectParameters=s},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectSchemaProvider=t.getObjectTypeDescriptionsCallback=t.ObjectTypeDescriptions=void 0,r(3)),a=r(64),s=r(19),l=r(11),c=r(0),d=r(0),u=r(1),p=r(1),f=r(0),m=function(e){e=s.deserializeToCollection(e,function(e){return new a.ObjectType(e)}),this.types=e.sort(function(e,t){return e.displayName.localeCompare(t.displayName)})};function y(e,t){var r=n.Deferred();return e.getObjectTypeDescriptions(t).done(function(e){try{var t=new m(e.objectDataSourceInfoJson);r.resolve(t)}finally{"pending"===r.state()&&r.reject()}}).fail(function(e){c.ShowMessage(d.formatUnicorn(u.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),c.getErrorMessage(e))),r.reject()}),r.promise()}t.ObjectTypeDescriptions=m,t.getObjectTypeDescriptionsCallback=y;h=p.Disposable,i(g,h),g.prototype.dispose=function(){this._objectTypeDescriptionsPromise=null},g.prototype.getSchemaByPath=function(t,e){if(t.fullPath){for(var r=[],o=0;o<t.pathParts.length;o++){var i=(e.types||[]).filter(function(e){return e.name==t.pathParts[o]})[0];if(!i)return[];r=i.ctors}return r.map(function(e){return f.extend({},e,{isList:!1,specifics:"default"})})}return e.types.map(function(e){return f.extend({},e,{isList:!0,specifics:"List"})})},g.prototype.getObjectTypeDescriptions=function(e){return void 0===e&&(e=""),this._objectTypeDescriptionsPromise&&"rejected"!==this._objectTypeDescriptionsPromise.state()||(this._objectTypeDescriptionsPromise=y(this._requestWrapper,e)),this._objectTypeDescriptionsPromise};var h,r=g;function g(e){void 0===e&&(e=new l.RequestWrapper);var o=h.call(this)||this;return o._requestWrapper=e,o.getItems=function(t){var r=n.Deferred();return o.getObjectTypeDescriptions().done(function(e){r.resolve(o.getSchemaByPath(t,e))}).fail(r.reject),r.promise()},o}t.ObjectSchemaProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChooseObjectTypes=t.ChooseObjectTypesTreelistController=void 0,r(2)),s=r(8),r=r(1),l=(i=s.TreeListController,n(c,i),c.prototype.canSelect=function(e){return!0},c);function c(){return null!==i&&i.apply(this,arguments)||this}t.ChooseObjectTypesTreelistController=l;d=r.Disposable,n(u,d);var d,s=u;function u(e,t){var o=d.call(this)||this;return o.types=e,o.selectedType=a.observable(),o.selectedCtor=a.observable(),o.selectedPath=a.observable(""),o._scrollViewHeight="calc(100% - 36px)",o.availableTypesTreelistModel={expandRootItems:!0,itemsProvider:t,selectedPath:o.selectedPath,treeListController:new l},o._disposables.push(o.availableTypesTreelistModel.selectedPath.subscribe(function(r){e().forEach(function(t){t.name==r?(o.selectedType(t),null==o.selectedCtor()?o.selectedCtor.valueHasMutated():o.selectedCtor(null)):t.ctors.forEach(function(e){t.name.concat(".").concat(e.name)==r&&(o.selectedType(t),o.selectedCtor(e))})})})),o}t.ChooseObjectTypes=s},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChooseObjectDataMembers=void 0,r(2)),r=r(1),r=(i=r.Disposable,n(s,i),s.prototype.coerceSelection=function(){var e=this.selectedDataMembers()[0],e=e&&e.isAvailable()?e:this.dataMembers().filter(function(e){return e.isAvailable()})[0];this.selectedDataMembers([e])},s);function s(t,e){var r=i.call(this)||this,o=(r.dataMembers=a.observableArray([]),r.selectedDataMembers=a.observableArray([]),t()&&t().name);return r._disposables.push(e.subscribe(function(e){t().updateMembers(e),o!=t().name&&(r.dataMembers(t().members),r.selectedDataMembers([]),o=t().name),r.coerceSelection()})),r}t.ChooseObjectDataMembers=r},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonStringEditor=t.getLocalizedValidationErrorMessage=void 0,r(2)),a=r(6),s=r(0),l=r(1),c=r(8);function d(e,t,r){e=e||l.getLocalization("The value cannot be empty","AnalyticsCoreStringId.ParametersPanel_DateTimeValueValidationError");if(!t)return e;r=r?s.formatUnicorn("{0}. {1}",t,r):t;return l._stringEndsWith(r,":")||(r+=":"),s.formatUnicorn("{0} {1}",r,e)}t.getLocalizedValidationErrorMessage=d;u=a.Editor,i(p,u),p.prototype.uploadFile=function(e){var t=this;e&&e.event&&(e.event.stopPropagation(),e.event.preventDefault()),s.uploadFile({accept:".json,.txt"}).done(function(e){e=atob(e.content);0===e.indexOf("")&&(e=e.substr("".length)),t.value(e)})},p.prototype.getUploadTitle=function(){return l.getLocalization("Upload JSON File","AnalyticsCoreStringId.UploadJsonFile_Title")};var u,r=p;function p(e,t,r,o){var i=u.call(this,e,t,r,o)||this;return i.aceEditorHasErrors=n.observable(!1),i.aceAvailable=c.aceAvailable(),i.editorContainer=n.observable(),i.languageHelper={getLanguageMode:function(){return"ace/mode/json"},createCompleters:function(){return[]}},i.aceOptions={showLineNumbers:!1,highlightActiveLine:!1,showPrintMargin:!1,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0},i.isValid=n.computed(function(){return i._model()&&i._model().isValid()}),i.additionalOptions={onChangeAnnotation:function(e){e=e&&e.getAnnotations()||[];i._model()&&i._model().aceEditorHasErrors&&i._model().aceEditorHasErrors(0<e.filter(function(e){return"error"===e.type||"warning"===e.type}).length)},onBlur:function(){var e=i.editorContainer();e&&i.value(e.getValue())}},i.jsonStringValidationRules=[{type:"custom",reevaluate:!0,validationCallback:function(e){return i.isValid()},get message(){return d(l.getLocalization("The value cannot be empty and should have a valid format.","AnalyticsCoreStringId.ValueIsRequiredOrInvalidFormat_Error"),l.getLocalization("JSON String:","DataAccessUIStringId.WizardPageChooseJsonSource_Custom"))}}],i}t.JsonStringEditor=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNodeItemsProvider=void 0,r(2)),d=r(3),s=r(1),l=r(22),u=r(1),c=r(0),r=(i=s.Disposable,n(p,i),p.prototype._createTree=function(){var t=this;return this._fullTreeLoaded?d.Deferred().resolve().promise():d.when.apply(d,this._rootItems().map(function(e){return t.getItems(new u.PathRequest(e.path),!0)})).always(function(){return t._fullTreeLoaded=!0})},p.prototype._createTreePart=function(t,r,e){var o,i,n=this;return void 0===r&&(r=d.Deferred()),this._fullTreeLoaded?r.resolve().promise():0===t.length?r.resolve():e?(o=[].concat([],e,t[0]),i=new u.PathRequest(o.join("."),o),void(this._getParentNode(i)?this._createTreePart(t.slice(1),r,o):this.getItems(new u.PathRequest(e.join("."),e)).done(function(e){n._createTreePart(t.slice(1),r,o)}).fail(function(){return r.reject()}))):(r=d.Deferred(),1===t.length?this.getItems(new u.PathRequest(t[0],t)).done(function(){return r.resolve()}).fail(function(){return r.reject()}):this._createTreePart(t.slice(1),r,[t[0]]),r)},p.prototype._setChecked=function(e){var t=this;e.setChecked(!0),e instanceof l.DataMemberTreeNode&&e.children().forEach(function(e){return t._setChecked(e)})},p.prototype.selectAllItems=function(e){var t=this,r=(void 0===e&&(e=!0),d.Deferred());return this._createTree().always(function(){e?t._rootItems().forEach(function(e){return e.setChecked(!0)}):t._rootItems().forEach(function(e){return t._setChecked(e)}),r.resolve()}),r.promise()},p.prototype.selectItemsByPath=function(e){var t=this,r=d.Deferred(),o=e.split(".");return this._createTreePart(o).done(function(){t.getItems(new u.PathRequest(o.join("."),o)).done(function(e){e.forEach(function(e){e instanceof l.TreeNodeBase&&e.setChecked(!0)})}).always(function(){return r.resolve()})}),r.promise()},p.prototype.selectItemByPath=function(e){var r=this,o=d.Deferred(),i=e.split(".");return this._createTreePart(i).done(function(){var t=i.pop();r.getItems(new u.PathRequest(i.join("."),i)).done(function(e){e=e.filter(function(e){return e.name===t})[0];e instanceof l.TreeNodeBase&&e.setChecked(!0)}).always(function(){return o.resolve()})}),o.promise()},p.prototype._getParentNode=function(t){var e=this._rootItems().filter(function(e){return e.path===(t.id||t.ref)})[0];if(e){for(var r=e.path,o=1;o<t.pathParts.length;o++){if(!e)return;r+="."+t.pathParts[o],e=e.children().filter(function(e){return c.isList(e)&&e.path==r})[0]}return e}},p.prototype._getDefaultTreeNodeCheckState=function(e){return!1},p.prototype.isList=function(e,t){return c.isList(e)},p);function p(e,t,s,l){var c=i.call(this)||this;return c._fullTreeLoaded=!1,c._rootItems=a.observableArray([]),c._checkedRootNodesCount=a.computed(function(){if(!c._rootItems||0===c._rootItems().length)return 0;for(var e=0,t=0;t<c._rootItems().length&&e<1;t++)e+=c._rootItems()[t].unChecked()?0:1;return e}),c.hasCheckedItems=a.computed(function(){return!(0===c._checkedRootNodesCount())}),c.getRootItems=function(){return c._rootItems()},c.getItems=function(n,t){void 0===t&&(t=!1);var a=d.Deferred();return n.fullPath||0!==n.pathParts.length?e.getItems(n).done(function(e){var r,o,i=c._getParentNode(n);if(!i||!i.children)return a.reject();0===i.children().length?(r=[],o=[],e.forEach(function(e){var t=c._getDefaultTreeNodeCheckState(e);c.isList(e,i)?n.pathParts.length<=5&&(o.push([].concat(n.fullPath.split("."),[e.name])),r.push(s(e,t,[n.fullPath,e.name].join(".")))):r.push(l(e,t,[n.fullPath,e.name].join(".")))}),i.initializeChildren(r),t?d.when.apply(d,o.map(function(e){return c.getItems(new u.PathRequest(e.join("."),e),t)})).always(function(){return a.resolve(r)}):a.resolve(r)):a.resolve(i.children())}):a.resolve(c._rootItems()),a.promise()},c._disposables.push(t.subscribe(function(e){c._fullTreeLoaded=!1,c._rootItems(e.map(function(e){var t=c._getDefaultTreeNodeCheckState(e);return s(e,t,e.name)}))})),c._disposables.push(c.hasCheckedItems),c}t.TreeNodeItemsProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.StoredProceduresQueryControl=void 0,r(2)),s=r(3),l=r(1),c=r(44),d=r(86),u=r(0),p=r(1),f=r(13),m=r(18),y=r(41),r=(i=l.Disposable,n(h,i),h.prototype._needToProcessParameters=function(e){return e.arguments.some(h._availableConvertToParameter)},h._availableConvertToParameter=function(e){return e.direction!==d.DBStoredProcedureArgumentDirection.Out},Object.defineProperty(h.prototype,"_selectedProcedure",{get:function(){return this.selectedProcedure()[0]},set:function(e){this.selectedProcedure(e?[e]:[])},enumerable:!1,configurable:!0}),h.prototype.scrollActiveItem=function(e){var t=e.model.selectedProcedure.peek();e.component.scrollToItem(t[0])},h.generateStoredProcedureDisplayName=function(e){return 0===e.arguments.length?e.name:e.arguments.reduce(function(e,t,r,o){return e+(t.name+(r<o.length-1?", ":")"))},e.name+"(")},h.prototype.setQuery=function(e){return this._query=e,this._selectedProcedure=u.getFirstItemByPropertyValue(this.storedProcedures(),"name",e.procName()),s.Deferred().resolve().promise()},h.prototype.getQuery=function(){var t=this;if(!this._selectedProcedure)return null;var r=new c.StoredProcQuery({"@Name":this._query.name()||this._selectedProcedure.name,ProcName:this._selectedProcedure.name},this._query.parent);return this._selectedProcedure.arguments.forEach(function(e){h._availableConvertToParameter(e)&&r.parameters.push(u.getFirstItemByPropertyValue(t._query.parameters(),"name",e.name)||new f.DataSourceParameter({"@Name":e.name,"@Type":m.DBColumn.GetType(e.type)},null,y.storedProcParameterSerializationsInfo(m.DBColumn.GetType(e.type))))}),r},Object.defineProperty(h.prototype,"runQueryBuilderDisabled",{get:function(){return!0},enumerable:!1,configurable:!0}),h);function h(){var t=i.call(this)||this;return t.template="dxrd-procedures-control",t.storedProcedures=a.observableArray([]),t.selectedProcedure=a.observableArray([]),t.caption=function(){return p.getLocalization("Select a stored procedure:","DataAccessUIStringId.StoredProcControl_Caption")},t.generateStoredProcedureDisplayName=function(e){return h.generateStoredProcedureDisplayName(e)},t.isNextDisabled=a.pureComputed(function(){return!t._selectedProcedure||!t._needToProcessParameters(t._selectedProcedure)}),t.isFinishDisabled=a.pureComputed(function(){return!t._selectedProcedure||t._needToProcessParameters(t._selectedProcedure)}),t.storedProcedures.subscribe(function(e){e?t._selectedProcedure?t._selectedProcedure=u.getFirstItemByPropertyValue(t.storedProcedures(),"name",t._selectedProcedure.name):t._query&&t._query.procName()?t._selectedProcedure=u.getFirstItemByPropertyValue(t.storedProcedures(),"name",t._query.procName()):t._selectedProcedure=e[0]:t._selectedProcedure=null}),t}t.StoredProceduresQueryControl=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectQuerySqlTextProvider=void 0;var o=r(1),i=r(0);function n(e,t){this._selectStatementCallback=e,this._connection=t}n.prototype.getQuerySqlText=function(e){e=JSON.stringify({Query:(new o.ModelSerializer).serialize(e)});return this._selectStatementCallback(this._connection(),e).fail(function(e){e=i.getErrorMessage(e);i.ShowMessage("Unable to build a SQL string"+(e?": "+e:"."))})},t.SelectQuerySqlTextProvider=n},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryBuilderPopup=t.QueryBuilderPopupBase=void 0,r(2)),s=r(0),l=r(43),c=r(1),d=r(0),u=r(1),r=r(1),r=(i=r.Disposable,n(p,i),p.prototype.show=function(e,t){this._dataSource=t,this._dbSchemaProvider(t.dbSchemaProvider),this._querySource((new c.ModelSerializer).serialize(e)),this.isVisible(!0),this.designer().updateSurface()},p.prototype.cancelHandler=function(){this.isVisible(!1)},p.prototype.previewHandler=function(){this.designer().showPreview()},p.prototype.okHandler=function(){var e=this;this.designer().model().canSave()&&this._applyQuery(this.createQuery(),this.showLoadIndicator).done(function(){e.isVisible(!1)})},p.prototype.onHiddingHandler=function(){this.designer().dataPreview.isVisible(!1)},p.prototype.popupViewModel=function(e){e=d.getParentContainer(e);return{visible:this.isVisible,title:this.getDisplayText("title"),showTitle:!0,shading:!0,fullScreen:!1,width:"95%",height:"95%",container:e,wrapperAttr:{class:"dxrd-querybuilder-popup"},position:{of:e},onHidding:this.onHiddingHandler}},p.prototype.getDisplayText=function(e){return u.getLocalization(this.localizationIdMap[e].text,this.localizationIdMap[e].localizationId)},p.customizeQueryBuilderActions=function(e){var t=s.findFirstItemMatchesCondition(e,function(e){return"Delete"===e.text}),r=s.findFirstItemMatchesCondition(e,function(e){return"Undo"===e.text}),o=s.findFirstItemMatchesCondition(e,function(e){return"Redo"===e.text});e.splice(0,e.length,t,r,o)},p);function p(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=function(e){return e});var o=i.call(this)||this;return o.customizeQBInitializationData=r,o._querySource=a.observable(null),o._dbSchemaProvider=a.observable(null),o.designer=a.observable(),o.qbOptions=a.observable(null),o.okButtonDisabled=a.pureComputed(function(){return o.designer()&&!o.designer().model().isValid()}),o.isVisible=a.observable(!1),o.showLoadIndicator=a.observable(!1),o.localizationIdMap={title:{text:"Query Builder",localizationId:"DataAccessUIStringId.QueryBuilder"},loading:{text:"Loading...",localizationId:"AnalyticsCoreStringId.Loading"},previewResults:{text:"Preview Results...",localizationId:"DataAccessUIStringId.QueryBuilderButtons_PreviewResults"},cancel:{text:"Cancel",localizationId:"AnalyticsCoreStringId.SearchDialog_Cancel"},ok:{text:"OK",localizationId:"DataAccessUIStringId.Button_OK"}},o._rtl=t,o._applyQuery=e,o.qbOptions(o.qbOptions()||o.customizeQBInitializationData({queryBuilderModel:o.designer,dbSchemaProvider:o._dbSchemaProvider,querySource:o._querySource,callbacks:{customizeActions:m.customizeQueryBuilderActions},rtl:o._rtl})),o}t.QueryBuilderPopupBase=r;n(y,f=r),y.prototype.getDataSource=function(){return this._dataSource},y.prototype.createQuery=function(){return new l.TableQuery(this.designer().model().serialize(),this.getDataSource())};var f,m=y;function y(e,t,r){e=f.call(this,e,t=void 0===t?!1:t,r=void 0===r?function(e){return e}:r)||this;return e.customizeQBInitializationData=r,e}t.QueryBuilderPopup=m},function(j,e,t){"use strict";var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(e,"__esModule",{value:!0}),e._registerMultiQueryConfigurePage=e.MultiQueryConfigurePage=void 0,t(2)),a=t(3),s=t(12),l=t(10),c=t(158),d=t(43),u=t(7),p=t(109),f=t(49),m=t(1),y=t(44),h=t(13),g=t(18),_=t(41),b=t(0),S=t(99),v=t(32),P=t(110),x=t(33),C=t(40),T=t(1),w=t(113),O=t(1),D=t(70),N=t(5),I=t(8),E=t(9),z=t(14),A=(r=E.WizardPageBase,i(M,r),M.prototype._addQueryAlgorithm=function(e,t,r,o){e.unChecked()&&"queries"!==t?e.children().forEach(function(e){M._removeQuery(r.queries,e)}):(0===e.children().length&&this._itemsProvider().getItems(new m.PathRequest(t)),"tables"===t||"views"===t?this._addQueryFromTables(e,r):"procedures"===t?this._addQueryFromStoredProcedures(e,r):this._addQueryFromCustomQueries(e,o,r.queries))},M.prototype._addQueryFromTables=function(e,t){for(var r=0;r<e.children().length;r++){var o=e.children()[r];if(o.unChecked())M._removeQuery(t.queries,o);else{var i={},n={Columns:i,Tables:{SelectedTables:{Item1:{"@Name":o.name,"@ControlType":"Table","@ItemType":"Table"}}}};0===o.children().length&&this._itemsProvider().getItems(new m.PathRequest("tables."+o.name)).done(function(){o.initializeChildren(o.children())});for(var a=0;a<o.children().length;a++){var s=o.children()[a];s.checked()&&(i["Item"+(a+1)]={"@Table":o.name,"@Name":s.name,"@ItemType":"Column"})}M._pushQuery(new d.TableQuery(n,t),o,t.queries)}}},M.prototype._addQueryFromStoredProcedures=function(e,t){for(var r=0;r<e.children().length;r++){var o,i=e.children()[r];i.checked()?(o=new y.StoredProcQuery({"@Name":i.name,ProcName:i.name},t),i.arguments.forEach(function(e){o.parameters.push(new h.DataSourceParameter({"@Name":e.name,"@Type":g.DBColumn.GetType(e.type)},null,_.storedProcParameterSerializationsInfo(g.DBColumn.GetType(e.type))))}),M._pushQuery(o,i,t.queries)):M._removeQuery(t.queries,i)}},M.prototype._addQueryFromCustomQueries=function(e,t,r){for(var o=0;o<e.children().length;o++){var i=e.children()[o],n=b.findFirstItemMatchesCondition(t.peek(),function(e){return i.name===(e.name()||e.generateName())});i.checked()&&(n.name(S.generateQueryUniqueName(r.peek(),n)),this._checkedQueries.push(n))}},M.prototype._getItemsPromise=function(e){return this._itemsProvider().getItems(e)},M.prototype._resetDataSourceResult=function(){this._customResetOptions(),this._dataSource().relations([]),this._dataSource().resultSet=null,this._onChange()},M.prototype._setQueryCore=function(e){var t=this._fieldListModel().itemsProvider,r=this._queryEditIndex();0<=r?(this._itemsProvider().queries().children()[r].name=e.name(),t.customQueries().splice(r,1,e)):(e.name(S.generateQueryUniqueName(t.customQueries().peek(),e)),t.customQueries().push(e),this._selectedPath("queries."+e.name()),(t=(r=this._itemsProvider().queries().children())[r.length-1]).setChecked(!0),t._afterCheckToggled&&t._afterCheckToggled(t)),this._resetDataSourceResult()},M._pushQuery=function(t,e,r){b.findFirstItemMatchesCondition(r.peek(),function(e){return e.name()===(t.name()||t.generateName())})||(t.name(S.generateQueryUniqueName(r.peek(),t)),r.push(t)),e.hasQuery=!0},M._removeQuery=function(e,r){var o;r.hasQuery&&(o=-1,e.peek().some(function(e,t){return(e.name()===r.name||e.generateName()===r.name)&&(o=t,!0)})&&e.splice(o,1),r.hasQuery=!1)},M.prototype.canNext=function(){return!this._itemsProvider().nextButtonDisabled()&&this.canFinish()},M.prototype.canFinish=function(){return this._itemsProvider()&&this._itemsProvider().hasCheckedItems()&&!this._isDataLoadingInProcess()},M.prototype._AddQueryWithBuilder=function(){},M.prototype._runQueryBuilder=function(){},M.prototype._loadPanelViewModel=function(e){return x.PopupWizard._getLoadPanelViewModel(e,this._isDataLoadingInProcess)},M.prototype._setTableQuery=function(e,t){var r=this;return t&&t(!0),this._sqlTextProvider.getQuerySqlText(e).done(function(){return r._setQueryCore(e)}).always(function(){t&&t(!1)})},M.prototype._setCustomSqlQuery=function(e){this._setQueryCore(e)},M.prototype._createTreeListFactory=function(){return new l.MultiQueryTreeListItemFactory},M.prototype.commit=function(){var t=this,e=(this._dataSource().queries.removeAll(),this._checkedQueries.removeAll(),this._addQueryAlgorithm(this._itemsProvider().tables(),"tables",this._dataSource()),this._addQueryAlgorithm(this._itemsProvider().views(),"views",this._dataSource()),this._addQueryAlgorithm(this._itemsProvider().procedures(),"procedures",this._dataSource()),this._addQueryAlgorithm(this._itemsProvider().queries(),"queries",this._dataSource(),this._customQueries),n.utils.arrayPushAll(this._dataSource().queries(),this._checkedQueries()),this._dataSource().queries.valueHasMutated(),this._itemsProvider().queries().children().filter(function(e){return e.checked()}).map(function(e){return e.name})),r=this._sqlDataSourceWrapper.sqlDataSource.queries().filter(function(t){return e.some(function(e){return e===t.name()})||t instanceof y.StoredProcQuery}),o=(r.forEach(function(e){return t._sqlDataSourceWrapper.sqlDataSource.queries.remove(e)}),new T.ModelSerializer);return a.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.save(),customQueries:r.map(function(e){return JSON.stringify(o.serialize(e))})}).promise()},M.prototype.initialize=function(e){var t=this,e=(this._sqlDataSourceWrapper=s._restoreSqlDataSourceFromState(e,this._options.requestWrapper),this._callbacks.customQueriesPreset?this._callbacks.customQueriesPreset(this._dataSource()):a.Deferred().resolve([]).promise()),r=a.Deferred();return e.done(function(e){t._customQueries(e),t._selectedPath("");e=new c.DBSchemaItemsProvider(t._dataSource().dbSchemaProvider,t._customQueries,t._showQbCallBack,t.disableCustomSql,t._getItemsAfterCheck);t._disposables.push(e),t._itemsProvider(e),t._getItemsPromise(new m.PathRequest("queries")),t._fieldListModel({factory:t._createTreeListFactory(),itemsProvider:t._itemsProvider(),selectedPath:t._selectedPath,treeListController:new w.DBSchemaTreeListController(t._customizeDBSchemaTreeListActions),templateName:"dxrd-treelist-with-checkbox"}),t._popupQueryBuilder.isVisible(!1),t._dataSource().dbSchemaProvider.getDbSchema().done(function(){r.resolve()}).fail(r.reject)}).fail(r.reject),r.promise()},M);function M(e){var o=r.call(this)||this;return o._options=e,o._selectedPath=n.observable(null),o._itemsProvider=n.observable(),o._customQueries=n.observableArray([]),o._checkedQueries=n.observableArray([]),o._sqlDataSourceWrapper=new f._SqlDataSourceWrapper(void 0,void 0,void 0),o._dataSource=function(){return o._sqlDataSourceWrapper&&o._sqlDataSourceWrapper.sqlDataSource},o._dataConnection=function(){return o._dataSource()&&o._dataSource().connection},o._showStatementPopup=function(e){o._popupSelectStatement.isVisible(!0),o._popupSelectStatement.query=e,o._popupSelectStatement.data(e.sqlString())},o._showQbCallBack=function(t,e){var r;void 0===e&&(e=!1),null!==(t=void 0===t?null:t)?(r=b.findFirstItemMatchesCondition(o._customQueries(),function(e){return t===(e.name()||e.generateName())}),o._queryEditIndex(o._customQueries().indexOf(r)),r.type()===u.SqlQueryType.customSqlQuery?o._showStatementPopup(r):o._popupQueryBuilder.show(r,o._dataSource())):(o._queryEditIndex(-1),e?o._showStatementPopup(new C.CustomSqlQuery({"@Name":null},o._dataSource())):(r=new d.TableQuery({"@Name":null},o._dataSource()),o._popupQueryBuilder.show(r,o._dataSource())))},o._popupSelectStatement={isVisible:n.observable(!1),title:function(){return O.getLocalization("Custom SQL Editor","AnalyticsCoreStringId.SqlDSWizard_CustomSqlEditor")},query:null,data:n.observable(),okButtonText:function(){return O.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){o._popupSelectStatement.query.sqlString(e.model.data()),o._setCustomSqlQuery(o._popupSelectStatement.query),e.model.isVisible(!1)},aceOptions:D.createDefaultSQLAceOptions(),aceAvailable:I.aceAvailable(),additionalOptions:D.createDefaultSQLAdditionalOptions(function(e){o._popupSelectStatement.data(e)}),languageHelper:D.createDefaultSQLLanguageHelper(),closest:function(e,t){return a(e).closest(t)}},o._customResetOptions=a.noop,o._queryEditIndex=n.observable(-1),o.disableCustomSql=!0,o._scrollViewHeight="calc(100% - 37px)",o._customizeDBSchemaTreeListActions=null,o._isDataLoadingInProcess=n.observable(!1),o._callbacks=o._options.callbacks,o._sqlTextProvider=new p.SelectQuerySqlTextProvider(v.wrapGetSelectStatement(o._callbacks.selectStatement),o._dataConnection),o._popupQueryBuilder=new P.QueryBuilderPopup(function(e,t){return o._setTableQuery(e,t)},e.rtl,e.callbacks.customizeQBInitData),o._fieldListModel=n.observable(null),o._disposables.push(o._hasParametersToEdit=n.pureComputed(function(){return o._itemsProvider().hasParametersToEdit()})),o._disposables.push(o._isDataLoadingInProcess.subscribe(function(e){e||o._onChange(),o[z.__loadingStateFunctionName]&&o[z.__loadingStateFunctionName](e)})),o.disableCustomSql=o._options.disableCustomSql,o._getItemsAfterCheck=function(t){o._resetDataSourceResult(),o._isDataLoadingInProcess(!0),t.checked.peek()&&t.isList?"tables"===t.name||"views"===t.name?o._itemsProvider().getItems(new m.PathRequest(t.name)).done(function(){t.isList&&0<t.children.peek().length?a.when.apply(a,t.children.peek().map(function(e){return o._getItemsPromise(new m.PathRequest(t.name+"."+e.name))})).always(function(){return o._isDataLoadingInProcess(!1)}):o._isDataLoadingInProcess(!1)}):"table"===t.specifics||"view"===t.specifics?o._itemsProvider().getItems(new m.PathRequest(t.specifics+"."+t.name)).always(function(){return o._isDataLoadingInProcess(!1)}):"procedures"===t.name?o._itemsProvider().getItems(new m.PathRequest(t.name)).always(function(){return o._isDataLoadingInProcess(!1)}):o._isDataLoadingInProcess(!1):o._isDataLoadingInProcess(!1)},o}e.MultiQueryConfigurePage=A,e._registerMultiQueryConfigurePage=function(e,t){e.registerMetadata(N.SqlDataSourceWizardPageId.MultiQueryConfigurePage,{create:function(){return new A(t)},setState:function(e,t){t.sqlDataSourceJSON=e.sqlDataSourceJSON,t.customQueries=e.customQueries},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.sqlDataSourceJSON=t.sqlDataSourceJSON,e.customQueries=t.customQueries},description:O.getLocalization("Columns selected from specific tables and/or views will be automatically included into a separate query.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMultiQuery"),template:"dxrd-wizard-add-queries-page"})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StateManager=void 0;var o=r(0);function i(e,t){this.globalState=e,this.pageFactory=t,this.defaultState=o.extend(!0,{},e)}i.prototype._getPageState=function(e,t){return void 0===t&&(t=this.globalState),this.pageFactory.getMetadata(e).getState(t)},i.prototype.setPageState=function(e,t){this.pageFactory.getMetadata(e).setState(t,this.getPageState(e))},i.prototype.getPageState=function(e){return this._getPageState(e)},i.prototype.resetPageState=function(e){var t=o.extend(!0,{},this._getPageState(e,this.defaultState));this.pageFactory.getMetadata(e).resetState(this.getPageState(e),t)},i.prototype.getCurrentState=function(){return this.globalState},i.prototype.reset=function(){this.globalState.reset()},t.StateManager=i},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchemaTreeListController=void 0,r(8)),s=r(22),r=(i=a.TreeListController,n(l,i),l.prototype.getActions=function(e){if(!e.data)return[];if(!(e.data instanceof s.QueriesTreeNode||e.data instanceof s.TreeQueryNode))return[];var t=e.data.getActions(e);return this._customizeDBSchemaTreeListActions&&this._customizeDBSchemaTreeListActions(e.data,t),t},l.prototype.canSelect=function(e){return!0},l);function l(e){var t=i.call(this)||this;return t._customizeDBSchemaTreeListActions=e,t}t.DBSchemaTreeListController=r},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerMultiQueryConfigureParametersPage=t.MultiQueryConfigureParametersPage=t._canEditQueryParameters=void 0,r(3)),a=r(2),s=r(7),l=r(12),c=r(49),d=r(160),u=r(13),p=r(0),f=r(10),m=r(6),y=r(0),h=r(1),g=r(5),r=r(9);function _(e,t){return e.type()===s.SqlQueryType.tableQuery||e.type()===s.SqlQueryType.customSqlQuery?-1<t.indexOf(e):e.type()===s.SqlQueryType.storedProcQuery&&0<e.parameters().length}t._canEditQueryParameters=_;b=r.WizardPageBase,i(v,b),v.prototype._isParametersValid=function(){return this._getParameters().every(function(e){return e.isValid()})},v.prototype.canNext=function(){return this._isParametersValid()&&1<this._sqlDataSourceWrapper.sqlDataSource.queries().length},v.prototype.canFinish=function(){return this._isParametersValid()&&1<=this._sqlDataSourceWrapper.sqlDataSource.queries().length},v.prototype._getParameters=function(){return[].concat.apply([],(this._rootItems()||[]).map(function(e){return e.parameters().map(function(e){return e.dataSourceParameter()})}))},v.prototype.initialize=function(e){var o=this,r=[],i=this._rootItems();return this._sqlDataSourceWrapper=l._restoreSqlDataSourceFromState(e,this._requestWrapper),this._sqlDataSourceWrapper.sqlDataSource.queries().forEach(function(e){var t;_(e,o._sqlDataSourceWrapper.customQueries)&&((t=new d.ParametersTreeListRootItem(e)).parameters(e.parameters().map(function(e){return new d.ParametersTreeListItem(o.parametersConverter.createParameterViewModel(e),t)})),r.push(t))}),i.filter(function(t){return r.every(function(e){return e.name!==t.name})}).forEach(function(e){i.splice(o._rootItems().indexOf(e),1)}),r.forEach(function(t){var r=i.filter(function(e){return e.name===t.name})[0];r?t.parameters().filter(function(t){return r.parameters().every(function(e){return e.name!==t.name})}).forEach(function(e){r.parameters.push(e)}):i.push(t)}),this._rootItems.valueHasMutated(),this._fieldListModel({itemsProvider:{getItems:function(t){var e,r=n.Deferred();return t.fullPath?(e=y.findFirstItemMatchesCondition(o._rootItems(),function(e){return e.name===t.ref}),r.resolve(e.parameters())):r.resolve(o._rootItems()),r.promise()}},templateName:"dx-treelist-item-with-hover",selectedPath:this._selectedPath,treeListController:new d.ParametersTreeListController(this._rootItems(),this._createNewParameter)}),n.Deferred().resolve().promise()},v.prototype.commit=function(){var t=this;return this._rootItems().forEach(function(e){e.query().parameters(e.parameters().map(function(e){return t.parametersConverter.getParameterFromViewModel(e.dataSourceParameter())}))}),n.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.sqlDataSourceJSON,customQueries:this._sqlDataSourceWrapper.saveCustomQueries()}).promise()};var b,S=v;function v(e,t){void 0===e&&(e={createParameterViewModel:function(e){return e},getParameterFromViewModel:function(e){return e}});function r(){return o._onChange()}var o=b.call(this)||this;o.parametersConverter=e,o._requestWrapper=t,o._sqlDataSourceWrapper=new c._SqlDataSourceWrapper(void 0,void 0,o._requestWrapper),o._selectedPath=a.observable(null),o._rootItems=a.observableArray(),o._createNewParameter=function(e,t){t=new u.DataSourceParameter({"@Name":p.getUniqueNameForNamedObjectsArray(t,"parameter"),"@Type":"System.Int32"});return o._selectedPath(e+"."+t.name()),o.parametersConverter.createParameterViewModel(t)},o._scrollViewHeight="100%",o._fieldListModel=a.observable(null),o._removeButtonTitle=h.getLocalization("Remove","DataAccessUIStringId.Button_Remove");return o._disposables.push(f.subscribeArray(o._rootItems,function(e){o._disposables.push(f.subscribeArray(e.parameters,function(e){o._disposables.push(f.subscribeObject(e.dataSourceParameter,function(e){var t;(t=o._disposables).push.apply(t,f.subscribeProperties([e.name,e.value,e.type],r))},r))},r))},r)),o._parametersEditorOptions={addHandler:function(){return o.parametersConverter.createParameterViewModel(new u.DataSourceParameter({"@Name":p.getUniqueNameForNamedObjectsArray(o._parametersEditorOptions.values.peek().peek(),"param"),"@Type":"System.Int32"}))},values:a.observable(a.observableArray([])),displayName:"Parameters",level:0,info:a.observable({displayName:"Parameters",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Parameters",propertyName:"parameters",modelName:"Parameter",array:!0,editor:m.editorTemplates.getEditor("commonCollection"),template:"#dxrd-parameter-collection-item"}),editorTemplate:"#dxrd-wizard-datasource-parameters",hideButtons:a.observable(!1),collapsed:!1},o}t.MultiQueryConfigureParametersPage=S,t._registerMultiQueryConfigureParametersPage=function(e,t,r){e.registerMetadata(g.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage,{create:function(){return new S(r,t)},getState:function(e){return e.sqlDataSourceWizard},setState:function(e,t){return t.customQueries=e.customQueries},resetState:function(){},description:h.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters"),template:"dxrd-configure-query-parameters-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailRelationshipsPageBase=void 0,r(2)),s=r(3),l=r(88),c=r(10),d=r(161),u=r(0),r=r(9),r=(i=r.WizardPageBase,n(p,i),p.prototype._getResultSet=function(e){var t=s.Deferred();return e.resultSet?t.resolve(e.resultSet):this._getResultSchema(e).done(function(e){t.resolve(new l.ResultSet(JSON.parse(e.resultSchemaJSON)))}).fail(function(e){t.reject(e)}),t.promise()},p.prototype._dataSource=function(){return null},p.prototype._restoreDataSource=function(e){},p.prototype._updateRelations=function(){var n=this,a=this._relations();a.forEach(function(t,e){var r,o=n._resultSet.tables().filter(function(e){return e.tableName()===t.detailQuery()})[0],i=n._resultSet.tables().filter(function(e){return e.tableName()===t.masterQuery()})[0];o&&i?((r=t.keyColumns()).forEach(function(t,e){(o.columns().every(function(e){return e.name()!==t.detailColumn()})||i.columns().every(function(e){return e.name()!==t.masterColumn()}))&&r.splice(e,1)}),0===r.length&&a.splice(e,1)):a.splice(e,1)}),this._relations.valueHasMutated()},p.prototype.canNext=function(){return!1},p.prototype.canFinish=function(){return this._relations().every(function(e){return e.keyColumns().every(function(e){return!!e.detailColumn()&&!!e.masterColumn()})})},p.prototype.initialize=function(e){var t=this;return this.relationsSubscription&&this.relationsSubscription.dispose(),this._restoreDataSource(e),this._disposables.push(this.relationsSubscription=this._relations.subscribe(function(e){e.some(function(e){return!e.moved&&0!==e.moved})&&t._customResetOptions()},null,"arrayChange")),this._getResultSet(this._dataSource()).done(function(e){t._resultSet=e,t._updateRelations(),t._relationsEditor(new d.MasterDetailEditor(t._relations,t._resultSet,s.noop))}).fail(function(e){u.getErrorMessage(e)&&u.ShowMessage(u.getErrorMessage(e))})},p.prototype.dispose=function(){i.prototype.dispose.call(this),this.disposeObservableArray(this._relations)},p);function p(e){function o(){return t._onChange()}var t=i.call(this)||this;t._getResultSchema=e,t._relations=a.observableArray([]),t._customResetOptions=s.noop,t._relationsEditor=a.observable(null);return t._disposables.push(c.subscribeArray(t._relations,function(r){var e;(e=r._disposables).push.apply(e,c.subscribeProperties([r.detailQuery,r.name,r.masterQuery],o)),r._disposables.push(c.subscribeArray(r.keyColumns,function(e){var t;(t=r._disposables).push.apply(t,c.subscribeProperties([e.detailColumn,e.masterColumn],o))},o))},o)),t}t.MasterDetailRelationshipsPageBase=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerConfigureMasterDetailRelationshipsPage=t.ConfigureMasterDetailRelationshipsPage=void 0,r(2)),s=r(3),l=r(12),c=r(1),d=r(5),u=r(1),r=r(115),p=(i=r.MasterDetailRelationshipsPageBase,n(f,i),f.prototype._restoreDataSource=function(e){this._sqlDataSourceWrapper=l._restoreSqlDataSourceFromState(e)},f.prototype._dataSource=function(){return this._sqlDataSourceWrapper.sqlDataSource},f.prototype.commit=function(){this.relationsSubscription.dispose(),this._sqlDataSourceWrapper.sqlDataSource.relations(this._relations()),this._sqlDataSourceWrapper.sqlDataSource.resultSet=this._resultSet;var t=new c.ModelSerializer;return s.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.sqlDataSourceJSON,customQueries:this._sqlDataSourceWrapper.saveCustomQueries(),relations:this._relations().map(function(e){return JSON.stringify(t.serialize(e))})}).promise()},f);function f(){var e=null!==i&&i.apply(this,arguments)||this;return e._customResetOptions=s.noop,e._relationsEditor=a.observable(null),e}t.ConfigureMasterDetailRelationshipsPage=p,t._registerConfigureMasterDetailRelationshipsPage=function(e,t){e.registerMetadata(d.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage,{create:function(){return new p(t)},setState:function(e,t){t.relations=e.relations},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.relations=t.relations},description:u.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),template:"dxrd-wizard-configure-relations-page"})}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerFederatedQueryConfigurePage=t.FederatedQueryConfigurePage=void 0,r(2)),s=r(3),l=r(10),c=r(1),d=r(5),u=r(0),p=r(166),f=r(33),m=r(113),y=r(97),h=r(1),g=r(0),_=r(119),b=r(181),S=r(9),v=r(14),P=(n=S.WizardPageBase,i(x,n),x.prototype.canNext=function(){return 1<this._dataSource.queries().length},x.prototype.canFinish=function(){return 0<this._dataSource.queries().length},x.prototype._createTreeListFactory=function(){return new l.MultiQueryTreeListItemFactory},x.prototype._loadPanelViewModel=function(e){return f.PopupWizard._getLoadPanelViewModel(e,this._isDataLoadingInProcess)},x.prototype.commit=function(){return s.Deferred().resolve({federationDataSourceJSON:JSON.stringify((new h.ModelSerializer).serialize(this._dataSource)),federatedQueries:[]}).promise()},x.prototype.initialize=function(e){var t=s.Deferred(),r=a.observableArray(s.map(this._dataSources(),function(e){return{name:e.id||e.ref,displayName:e.name,isList:!0,specifics:e.specifics||"ListSource",isListType:e.isListType,dragData:{noDragable:!1}}})),r=new p.FederationTreeNodeProvider(this._fieldListProvider,r,this._queriesPopupHelper.callBacks,this._customQueries,this._getItemsAfterCheck);return this._disposables.push(r),this._itemsProvider(r),this._fieldListModel({factory:this._createTreeListFactory(),itemsProvider:this._itemsProvider(),selectedPath:this._selectedPath,treeListController:new m.DBSchemaTreeListController(this._customizeDBSchemaTreeListActions),templateName:"dxrd-treelist-with-checkbox"}),t.resolve().promise()},x);function x(e){var i=n.call(this)||this;return i._options=e,i._selectedPath=a.observable(null),i._itemsProvider=a.observable(),i._customQueries=a.observableArray([]),i._setQueryChecked=function(e){var t=i._itemsProvider().getRootItems();i._selectedPath("queries."+e.alias());e=g.findFirstItemMatchesCondition(t,function(e){return"queries"===e.name}).children(),t=e[e.length-1];t.setChecked(!0),t._afterCheckToggled&&t._afterCheckToggled(t)},i._dataSources=a.observableArray(),i._scrollViewHeight="calc(100% - 37px)",i._isDataLoadingInProcess=a.observable(!1),i._customizeDBSchemaTreeListActions=null,i._dataSources(i._options.dataSources()),i._disposables.push(i._fieldListProvider=new u.FieldListProvider(i._options.callbacks.fieldListsCallback,i._dataSources,[new b.FederationDataSourceItemsExtender(i._dataSources)],!0)),i._disposables.push(i._dataSource=new y.FederationDataSource({},i._dataSources,i._fieldListProvider,new h.ModelSerializer)),i._disposables.push(i._queriesPopupHelper=new _.FederatedQueriesHelper(i._dataSource,i._customQueries,i._setQueryChecked,i._options.rtl)),i._disposables.push(i._customQueries.subscribe(function(e){return e.forEach(function(e){e.sources().forEach(function(e){return i._dataSource.addSource(e)})})})),i._fieldListModel=a.observable(null),i._getItemsAfterCheck=function(t){var r,e,o=t.path.split(".");"query"==t.specifics?((r=t.query||g.findFirstItemMatchesCondition(i._customQueries(),function(e){return(e.alias()||r.generateName())===t.name})).alias(t.name),t.checked.peek()?-1===i._dataSource.queries.indexOf(r)&&i._dataSource.queries.push(r):i._dataSource.queries.remove(r)):!t.isList||2<o.length?(e=o.pop(),o=o.join("."),t.checked.peek()?i._dataSource.addSelectQuery(o,e):i._dataSource.removeExpression(e,o)):t.children().forEach(function(e){return i._getItemsAfterCheck(e)}),i._onChange(),i[v.__loadingStateFunctionName]&&i[v.__loadingStateFunctionName](!1)},i}t.FederatedQueryConfigurePage=P,t._registerFederatedQueryConfigurePage=function(e,t){e.registerMetadata(d.FederationDataSourceWizardPageId.FederatedQueryConfigurePage,{create:function(){return new P(t)},setState:function(e,t){t.federationDataSourceJSON=e.federationDataSourceJSON,t.federatedQueries=e.federatedQueries},getState:function(e){return e.federationDataSourceWizard},resetState:function(e,t){e.federationDataSourceJSON=t.federationDataSourceJSON,e.federatedQueries=t.federatedQueries},description:c.getLocalization("Columns selected from specific tables and/or views will be automatically included into a separate query.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMultiQuery"),template:"dxrd-wizard-add-federated-queries-page"})}},function(e,t,r){"use strict";var o,s,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedQueriesTreeNode=void 0,r(0)),r=r(22),r=(s=r.QueriesTreeNode,i(n,s),n.prototype.getActions=function(e){var t=[];return 0===e.path.indexOf("queries")&&t.push(this.addAction),t},n.prototype.popoverListItems=function(){var e=this;return[{name:l.getLocalization("Join","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_Select"),addAction:function(){return e.callbacks().showQbCallBacks.joinCallBack()},className:this.className},{name:l.getLocalization("Union","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_Union"),addAction:function(){return e.callbacks().showQbCallBacks.unionCallBack()},className:this.className},{name:l.getLocalization("Transform","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_Transform"),addAction:function(){return e.callbacks().showQbCallBacks.transformCallBack()},className:this.className}]},n);function n(e,t,r,o,i,n){var a=s.call(this,e,t,r,o,i,n)||this;return a.callbacks=i,a.addAction={clickAction:function(){return a.showPopover()},imageClassName:"dxrd-image-add",imageTemplateName:"dxrd-svg-operations-add",templateName:"dx-treelist-federation-action-with-popover",text:l.getLocalization("Add query","AnalyticsCoreStringId.SqlDSWizard_AddQuery")},a.className="dxrd-federation-addqueries-popover",a}t.FederatedQueriesTreeNode=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedQueriesHelper=void 0,r(1)),s=r(0),l=r(92),c=r(47),d=r(46),u=r(0),p=r(167),f=r(169),m=r(170),r=(n=a.Disposable,i(y,n),y.prototype._getQuery=function(e,t){return t?s.findFirstItemMatchesCondition(this.queries(),function(e){return t===e.alias()}):e()},y.prototype._setQuery=function(t){t&&-1===this.queries.indexOf(t)&&(t.alias(t.alias()||t.generateName()),this._dataSource.queries().filter(function(e){return e.alias()===t.alias()})[0]&&t.alias(u.getUniqueName(this._dataSource.queries().map(function(e){return e.alias()}),t.alias())),this.queries.push(t),this._afterAddQuery(t))},y.prototype.dispose=function(){n.prototype.dispose.call(this),this._dataSource=null},y);function y(e,t,r,o){void 0===o&&(o=!1);var i=n.call(this)||this;return i._dataSource=e,i.queries=t,i._afterAddQuery=r,i._showSelectQbCallBack=function(e){i._popupSelectQueryBuilder.show(i._getQuery(function(){return new l.SelectQuery({})},e=void 0===e?null:e))},i._showUnionQbCallBack=function(e){i._popupUnionQueryBuilder.show(i._getQuery(function(){return new c.UnionQuery({},i._dataSource.dataSources)},e=void 0===e?null:e))},i._showTransformQbCallBack=function(e){i._popupTransformQueryBuilder.show(i._getQuery(function(){return new d.TransformQuery({})},e=void 0===e?null:e))},i.template="dx-querybuilder-federation-popup-templates",i._disposables.push(i._popupSelectQueryBuilder=new m.FederationSelectQueryBuilderPopup(function(e){return i._setQuery(e)},i._dataSource,o)),i._disposables.push(i._popupUnionQueryBuilder=new f.FederationUnionQueryBuilderPopup(function(e){return i._setQuery(e)},i._dataSource,o)),i._disposables.push(i._popupTransformQueryBuilder=new p.FederationTransformQueryBuilderPopup(function(e){return i._setQuery(e)},i._dataSource,o)),i.callBacks={joinCallBack:i._showSelectQbCallBack,unionCallBack:i._showUnionQbCallBack,transformCallBack:i._showTransformQbCallBack},i.popupItems=[{template:"dxrd-querybuilder-federation-popup",model:i._popupSelectQueryBuilder},{template:"dxrd-querybuilder-federation-popup",model:i._popupUnionQueryBuilder},{template:"dxrd-querybuilder-federation-popup",model:i._popupTransformQueryBuilder}],i}t.FederatedQueriesHelper=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedTransformQueryBuilderTreeListController=t.FederatedUnionQueryBuilderTreeListController=void 0,r(8)),r=(i=r.TreeListController,n(a,i),a.prototype.itemsFilter=function(e,t,r){return"none"!==e.specifics},a.prototype.isDraggable=function(e){if(!e.data)return!1;if(e.data.isListType||!1===e.data.isSupportQueries){for(var t=e.parent;t&&t.data;){if(t.data.isListType)return!1;t=t.parent}return!0}return!1},a);function a(e,t){var r=i.call(this)||this;return r.dragDropHandler=e,r.dblClickHandler=t,r}t.FederatedUnionQueryBuilderTreeListController=r;n(l,s=r),l.prototype.itemsFilter=function(e,t,r){return s.prototype.itemsFilter.call(this,e,t,r)&&e.isList},l.prototype.hasItems=function(e){return s.prototype.hasItems.call(this,e)&&(!e.isListType||!1===e.isSupportQueries)};var s,n=l;function l(){return null!==s&&s.apply(this,arguments)||this}t.FederatedTransformQueryBuilderTreeListController=n},function(e,t,r){"use strict";var o,s,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTableSurface=t.FederationTableViewModel=t.FederationQuerySurface=t.FederationQueryViewModel=t.federationQuerySerializationsInfo=void 0,r(2)),n=r(1),c=r(1),d=r(0),a=r(27),u=r(20),p=r(93),f=r(7),m=r(34),y=r(37),h=r(53),g=r(52),_=r(54),b=r(124),S=r(0),v=r(73),P=r(179),r=(t.federationQuerySerializationsInfo=[{propertyName:"name",modelName:"@Alias"},{propertyName:"type",modelName:"@Type"},{propertyName:"itemType",modelName:"@ItemType"},{propertyName:"queryType",modelName:"@QueryType"},{propertyName:"rootModel",modelName:"Root"},{propertyName:"expressions",modelName:"Expressions",array:!0},{propertyName:"subNodes",modelName:"SubNodes",array:!0}],s=h.QueryViewModelBase,i(x,s),x.prototype._initializeTable=function(t){this._dbSchemaProvider.getDbTable(t.name(),t.path).done(function(e){t.createColumns(e)})},x.prototype._createTableViewModel=function(e){var t=this.dataSource.getPathFromQueryName(e["@SourceName"]);return new O(e,this,t,this.serializer)},x.prototype.dispose=function(){s.prototype.dispose.call(this),this.dataSource=null},x.prototype.serialize=function(e){var r=this.serializer||new n.ModelSerializer,t=(this.expressions(this.columns().map(function(e){var t={"@Alias":e.alias(),"@ColumnExpression":e.expression(),"@Name":e.column(),"@NodeAlias":e.table()};return t["@ExpressionType"]=v.ColumnExpressionCollectionHelper.columnTypeToFederated(e.itemType()),new u.FederatedQueryExpression(t,r)})),this.rootModel(this.tables()[0]),this.tables()),o=(t.shift(),this.relations());return this.subNodes(t.map(function(t){var e=(e=S.findFirstItemMatchesCondition(o,function(e){return e.parentTable()===t}))||S.findFirstItemMatchesCondition(o,function(e){return e.nestedTable()===t});return o.splice(o.indexOf(e),1),p.SubNode.deserializeRelationModel(t,e)})),s.prototype.serialize.call(this,e)},x.prototype.createChild=function(e,t,r){return s.prototype.createChild.call(this,e,"FTable"===e["@ControlType"]?new O(e,this,r):void 0)},x.prototype.getInfo=function(){return t.federationQuerySerializationsInfo},x.emptyModel={"@ItemType":"Query",SubNodes:{},Expressions:{}},x);function x(r,e,t,o,i){void 0===o&&(o=y.ParametersMode.ReadWrite);var n=s.call(this,d.extend(!0,r,x.emptyModel,r),t,o,function(e){return e},i)||this,a=(n._dbSchemaProvider=t,n.serializer=i,n.expressions=l.observableArray(),n.subNodes=l.observableArray(),n.controlType="FQuery",n.defaultPageHeight=300,n.topOffset=20,n.dataSource=e,[]);return n.tables=l.observableArray(),r.Root&&n.tables.push(n._createTableViewModel(r.Root)),Object.keys(r.SubNodes).forEach(function(e){var t=new p.SubNode(r.SubNodes[e],i),e=n._createTableViewModel(r.SubNodes[e].Query);n.tables.push(e),a.push(t.createRelationModel(n))}),n.columns=c.deserializeArray(r.Expressions,function(e){return new m.ColumnExpression({"@Name":e["@Name"],"@Alias":e["@Alias"],"@Table":e["@NodeAlias"],"#text":e["@ColumnExpression"],"@ItemType":v.ColumnExpressionCollectionHelper.federatedTypeToColumn(e["@ExpressionType"])},n,i)}),n.relations=l.observableArray(a),n.init(),n}t.FederationQueryViewModel=r;C=g.QuerySurface,i(T,C);var C,h=T;function T(){return null!==C&&C.apply(this,arguments)||this}t.FederationQuerySurface=h;w=_.TableViewModel,i(D,w),D.prototype.getInfo=function(){return a.sourceQuerySerializationsInfo},D.prototype.getPath=function(){return this.path},D.prototype.createChildColumn=function(e){return new P.FederationColumnViewModel({"@Name":e.name},e,this,this.serializer)};var w,O=D;function D(e,t,r,o){var o=w.call(this,e,t,o)||this,i=(o.controlType="FTable",r&&!e["@SourceName"]&&o.sourceName(t.dataSource.getQueryNameFromPath(r)),o.name()||o.name(o.sourceName()),o.alias()||o.alias(o.name()),o._disposables.push(o.queryType=l.pureComputed(function(){return f.FederationQueryType[f.FederationQueryType.SourceNode]})),o.tableOffset(12),r.split(".")),e=t.dataSource.dataSources().filter(function(e){return e.id===i[0]||e.ref===i[0]||e.name===i[0]})[0];return o.path=(e.id||e.ref)+(1<i.length?"."+i.slice(1).join("."):""),o.displaySourceName=l.observable(e.name),o.asterisk=new P.FederationAllColumnsViewModel(o,o.serializer),o}t.FederationTableViewModel=O;N=b.TableSurface,i(I,N);var N,r=I;function I(){var e=null!==N&&N.apply(this,arguments)||this;return e.titletemplate="dxqb-federation-table-title",e}t.FederationTableSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableSerializationInfo=void 0;r=r(15);t.tableSerializationInfo=[r.name,r.alias,{propertyName:"controlType",modelName:"@ControlType"},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.querySerializationsInfo=void 0;var o=r(28),r=r(1);t.querySerializationsInfo=[{propertyName:"_tablesObject",modelName:"Tables",info:[{propertyName:"tables",modelName:"SelectedTables",array:!0},{propertyName:"relations",modelName:"Relations",array:!0}]},{propertyName:"parameters",modelName:"Parameters",array:!0},{propertyName:"type",modelName:"@Type"},{propertyName:"name",modelName:"@Name"},{propertyName:"editableName",displayName:"Name",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Name",editor:o.editorTemplates.getEditor("text")},{propertyName:"_filterString",modelName:"Filter",defaultVal:""},{propertyName:"filterString",defaultVal:"",displayName:"Filter",localizationId:"DataAccessUIStringId.FiltersView_Filter",editor:o.editorTemplates.getEditor("filterEditor")},{propertyName:"_groupFilterString",modelName:"GroupFilter",defaultVal:""},{propertyName:"groupFilterString",defaultVal:"",displayName:"Group Filter",localizationId:"DataAccessUIStringId.FiltersView_GroupFilter",editor:o.editorTemplates.getEditor("filterGroupEditor")},{propertyName:"columns",modelName:"Columns",array:!0},{propertyName:"sorting",modelName:"Sorting",array:!0},{propertyName:"grouping",modelName:"Grouping",array:!0},{propertyName:"itemType",modelName:"@ItemType"},{propertyName:"allColumnsInTablesSelected",displayName:"Select All (*)",localizationId:"AnalyticsCoreStringId.QueryBuilder_SelectAll",editor:o.editorTemplates.getEditor("bool")},{propertyName:"top",modelName:"@Top",displayName:"Select Top",defaultVal:0,from:r.floatFromModel,localizationId:"AnalyticsCoreStringId.QueryBuilder_SelectTop",editor:o.editorTemplates.getEditor("numeric"),editorOptions:{format:"#0",min:0}},{propertyName:"skip",modelName:"@Skip",displayName:"Offset",defaultVal:0,from:r.floatFromModel,localizationId:"AnalyticsCoreStringId.QueryBuilder_Offset",editor:o.editorTemplates.getEditor("numeric"),editorOptions:{format:"#0",min:0}},{propertyName:"distinct",modelName:"@Distinct",defaultVal:!1,from:r.parseBool,displayName:"Select distinct",localizationId:"AnalyticsCoreStringId.QueryBuilder_SelectDistinct",editor:o.editorTemplates.getEditor("bool")}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.TableSurface=void 0,r(3)),s=r(2),l=r(177),c=r(54),d=r(76),u=r(178),p=r(0),r=(i=l.QueryElementBaseSurface,n(f,i),f.prototype.resizable=function(e,t){return p.extend({},e,{handles:"e, w",$selectedNodes:a(t),minWidth:c.TableViewModel.TABLE_MIN_WIDTH})},f);function f(e,t){var r=i.call(this,e,t,null)||this;return r.showSourceName=!1,r.contenttemplate="dxqb-table",r.titletemplate="dxqb-table-title",r.template="dxqb-table-main",r.toggleSelected=function(){r.getControlModel().toggleSelectedColumns()},r.selectedWrapper=s.pureComputed(function(){return r.getControlModel().allColumnsSelected()}),r.isInitialized=e.isInitialized,r.columns=s.pureComputed(function(){return e.columns().map(function(e){return new d.ColumnSurface(e,t)})}),r.asterisk=new u.AllColumnsSurface(e.asterisk,t),r}t.TableSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerFederatedMasterDetailRelationshipsPage=t.FederatedMasterDetailRelationshipsPage=void 0,r(2)),s=r(3),l=r(12),c=r(1),d=r(5),u=r(1),p=r(115),f=r(66),m=(i=p.MasterDetailRelationshipsPageBase,n(y,i),y.prototype._restoreDataSource=function(e){this._federationDataSource=l._restoreFederationDataSourceFromState(e,this._options.dataSources)},y.prototype._dataSource=function(){return this._federationDataSource},y.prototype.commit=function(){this.relationsSubscription.dispose();var e=this._relations().map(function(e){return f.FederationMasterDetailRelation.create(e)}),t=(this._federationDataSource.relations(e),this._federationDataSource.resultSet=this._resultSet,new c.ModelSerializer);return s.Deferred().resolve({federationDataSourceJSON:JSON.stringify((new c.ModelSerializer).serialize(this._federationDataSource)),relations:e.map(function(e){return JSON.stringify(t.serialize(e))})}).promise()},y);function y(e,t){e=i.call(this,e)||this;return e._options=t,e._customResetOptions=s.noop,e._relationsEditor=a.observable(null),e}t.FederatedMasterDetailRelationshipsPage=m,t._registerFederatedMasterDetailRelationshipsPage=function(e,t,r){e.registerMetadata(d.FederationDataSourceWizardPageId.FederatedMasterDetailRelationshipsPage,{create:function(){return new m(t,r)},setState:function(e,t){t.relations=e.relations},getState:function(e){return e.federationDataSourceWizard},resetState:function(e,t){e.relations=t.relations},description:u.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),template:"dxrd-wizard-configure-relations-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifyObjectDataSourceSettingsPage=t.SpecifyObjectDataSourceSettingsPage=void 0,r(2)),s=r(3),l=r(10),c=r(64),d=r(26),u=r(103),p=r(104),f=r(105),m=r(102),y=r(1),h=r(5),r=r(9),g=(i=r.WizardPageBase,n(_,i),_.prototype._initSections=function(){var e=this;this._sections=[{data:this._chooseObjectType,disabled:function(){return!1},description:y.getLocalization("Choose the type and its constructor.","AnalyticsCoreStringId.ObjectDSWizard_ChooseType_Description"),position:l.getSectionStyle(this._dataSourceWizardOptions.rtl?l.WizardSectionPosition.Right:l.WizardSectionPosition.Left),template:"dx-objectdatasource-types-section"},{data:this._chooseObjectDataMember,disabled:function(){return!e._chooseObjectDataMember.dataMembers().length},description:y.getLocalization("Choose the entire object or a data member to bind.","AnalyticsCoreStringId.ObjectDSWizard_ChooseDataMember_Description"),position:l.getSectionStyle(this._dataSourceWizardOptions.rtl?l.WizardSectionPosition.TopLeft:l.WizardSectionPosition.TopRight),disabledText:y.getLocalization("To select a data member, choose a type that contains at least one data member.","AnalyticsCoreStringId.ObjectDSWizard_ChooseDataMember_Disabled_Description"),template:"dx-objectdatasource-datamembers-section"},{data:this._chooseObjectParameters,disabled:function(){return!e._chooseObjectParameters.hasParameters()},position:l.getSectionStyle(this._dataSourceWizardOptions.rtl?l.WizardSectionPosition.BottomLeft:l.WizardSectionPosition.BottomRight),description:y.getLocalization("Configure constructor parameters and/or method parameters.","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_Description"),disabledText:y.getLocalization("To specify parameters, select a parameterized constructor or method.","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_Disabled_Description"),template:"dx-objectdatasource-parameters-section"}]},_.prototype.showDescription=function(e,t){return[e+1,t].join(". ")},_.prototype.canNext=function(){return!1},_.prototype.canFinish=function(){return!!this._chooseObjectDataMember.selectedDataMembers().length},_.prototype.commit=function(){var e=this._chooseObjectDataMember.selectedDataMembers()[0];return s.Deferred().resolve({selectedType:this._chooseObjectType.selectedType().name,ctor:this._chooseObjectType.selectedCtor(),dataSourceName:this._objectDataSource.name(),context:this._context,dataMember:!e||e.isEntireObject()?void 0:e}).promise()},_.prototype.initialize=function(e){var t=this;return this._context=e.objectDataSourceWizard.context,this._objectDataSource.setState(e.objectDataSourceWizard),this._chooseObjectType.selectedCtor(this._objectDataSource.ctor),this._chooseObjectDataMember.selectedDataMembers([this._objectDataSource.dataMember]),this._provider.getObjectTypeDescriptions(e.objectDataSourceWizard.context).done(function(e){e.types.forEach(function(e){return e.members.splice(0,0,c.ObjectDataMember.empty())}),t._types(e.types||[]),0<e.types.length&&t._chooseObjectType.selectedPath(e.types[0].name)}),s.Deferred().resolve().promise()},_);function _(e){var t=i.call(this)||this,e=(t._dataSourceWizardOptions=e,t._types=a.observableArray([]),t._objectDataSource=new d.ObjectDataSource,t._dataSourceWizardOptions.callbacks.getItemsProviderCallback);return t._disposables.push(t._provider=new u.ObjectSchemaProvider(t._dataSourceWizardOptions.requestWrapper),t._chooseObjectType=new p.ChooseObjectTypes(t._types,t._provider),t._chooseObjectDataMember=new f.ChooseObjectDataMembers(t._chooseObjectType.selectedType,t._chooseObjectType.selectedCtor),t._chooseObjectParameters=new m.ChooseObjectParameters(t._chooseObjectType.selectedCtor,t._chooseObjectDataMember.selectedDataMembers,e&&e())),t._initSections(),t}t.SpecifyObjectDataSourceSettingsPage=g,t._registerSpecifyObjectDataSourceSettingsPage=function(e,t){e.registerMetadata(h.FullscreenDataSourceWizardPageId.SpecifyObjectDataSourceSettingsPage,{setState:function(e,t){t.objectDataSourceWizard.ctor=e.ctor,t.objectDataSourceWizard.dataMember=e.dataMember,t.objectDataSourceWizard.selectedType=e.selectedType,t.objectDataSourceWizard.dataSourceName=e.dataSourceName},getState:function(e){return e},resetState:function(e,t){e.objectDataSourceWizard.ctor=t.objectDataSourceWizard.ctor,e.objectDataSourceWizard.dataMember=t.objectDataSourceWizard.dataMember,e.objectDataSourceWizard.selectedType=t.objectDataSourceWizard.selectedType,e.objectDataSourceWizard.dataSourceName=t.objectDataSourceWizard.dataSourceName},create:function(){return new g(t)},template:"dxrd-page-objectsource",navigationPanelText:y.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage")})}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectingPointDragHandler=void 0,r(0)),s=r(78),l=r(39),c=r(0),d=r(58),r=(n=a.DragDropHandler,i(u,n),u.prototype.startDrag=function(e){if(!(e instanceof s.ConnectingPointSurface))throw new Error("ConnectingPointDragHandler can be applied to the ConnectingPoint only.");this.startConnectingPoint=e;e=this.startConnectingPoint.parent.getControlModel();this.newConnector=e.parentModel().createChild({"@ControlType":"RoutedConnector"}),this.newConnector.startPoint().connectingPoint(this.startConnectingPoint.getControlModel())},u.prototype.drag=function(e,t){t.position.left+=t.scroll.left,t.position.top+=t.scroll.top;t=this._getAbsoluteSurfacePosition(t);this.newConnectorSurface.endPoint().rect({top:t.top,left:t.left})},u.prototype.doStopDrag=function(){var e;this.dragHelperContent.reset(),this.selection.dropTarget&&((e=this.selection.dropTarget.getControlModel())instanceof l.ConnectingPointViewModel?this.newConnector.endPoint().connectingPoint(e):e instanceof d.DiagramElementViewModel&&(e=e.connectingPoints(),this.newConnector.endPoint().connectingPoint(e[0])),this.selection.initialize(this.newConnectorSurface))},Object.defineProperty(u.prototype,"newConnectorSurface",{get:function(){return this.newConnector&&c.findSurface(this.newConnector)},enumerable:!1,configurable:!0}),u);function u(e,t,r,o,i){e=n.call(this,e,t,r,o,i)||this;return e.startConnectingPoint=null,e.newConnector=null,e.cursor="arrow",e.containment=".dxrd-ghost-container",e.helper=function(e){i.update(e)},e}t.ConnectingPointDragHandler=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPointDragHandler=void 0,r(0)),s=r(25),l=r(39),c=r(58),r=(n=a.DragDropHandler,i(d,n),d.prototype.startDrag=function(e){if(!(e instanceof s.ConnectionPointSurface))throw new Error("ConnectionPointDragHandler can be applied to the ConnectionPoint only.");this.currentConnectionPoint=e},d.prototype.drag=function(e,t){t.position.left+=t.scroll.left,t.position.top+=t.scroll.top;t=this._getAbsoluteSurfacePosition(t);this.currentConnectionPoint.rect({top:t.top,left:t.left})},d.prototype.doStopDrag=function(){var e,t;this.dragHelperContent.reset(),this.selection.dropTarget&&((t=this.selection.dropTarget.getControlModel())instanceof l.ConnectingPointViewModel?(e=this.currentConnectionPoint.parent.getControlModel(),(this.currentConnectionPoint.getControlModel()===e.startPoint()?e.startPoint():e.endPoint()).connectingPoint(t)):t instanceof c.DiagramElementViewModel&&(e=this.currentConnectionPoint.parent.getControlModel(),t=t.connectingPoints(),(this.currentConnectionPoint.getControlModel()===e.startPoint()?e.startPoint():e.endPoint()).connectingPoint(t[0])))},d);function d(e,t,r,o,i){e=n.call(this,e,t,r,o,i)||this;return e.currentConnectionPoint=null,e.cursor="arrow",e.containment=".dxrd-ghost-container",e.helper=function(e){i.update(e)},e}t.ConnectionPointDragHandler=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramElementSurface=void 0,r(38)),r=(i=r.DiagramElementBaseSurface,n(a,i),a.prototype._getChildrenHolderName=function(){return"connectingPoints"},a);function a(e,t){e=i.call(this,e,t,null)||this;return e.contenttemplate="dxdd-element-content-with-connecting-points",e}t.DiagramElementSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorSurface=void 0,r(2)),s=r(38),l=r(25),r=(i=s.DiagramElementBaseSurface,n(c,i),c);function c(e,t){var r=i.call(this,e,t,null)||this;return r.template="dxdd-connector",r.selectiontemplate="dxdd-connector-selection",r.startPoint=a.pureComputed(function(){return new l.ConnectionPointSurface(e.startPoint(),t)}),r.endPoint=a.pureComputed(function(){return new l.ConnectionPointSurface(e.endPoint(),t)}),r}t.ConnectorSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDBStoredProceduresCallback=t.getDBSchemaCallback=void 0;var i=r(3),n=r(132),a=r(0),s=r(0),l=r(1);t.getDBSchemaCallback=function(e,t,r){var o=i.Deferred();return e.getDbSchema(t,r).done(function(e){o.resolve(new n.DBSchema(JSON.parse(e.dbSchemaJSON)))}).fail(function(e){a.ShowMessage(s.formatUnicorn(l.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),a.getErrorMessage(e))),o.reject()}),o.promise()},t.getDBStoredProceduresCallback=function(e,t){var r=i.Deferred();return e.getDbStoredProcedures(t).done(function(e){r.resolve(new n.DBSchema(JSON.parse(e.dbSchemaJSON)).procedures)}).fail(function(e){a.ShowMessage(s.formatUnicorn(l.getLocalization("Stored procedures loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),a.getErrorMessage(e))),r.reject()}),r.promise()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchema=void 0;var o=r(85),i=r(86),n=r(19);t.DBSchema=function(e){var t=n.deserializeToCollection(e.Tables,function(e){return new o.DBTable(e)}),r=(t.sort(function(e,t){return e.name.localeCompare(t.name)}),n.deserializeToCollection(e.Views,function(e){return new o.DBTable(e)}));r.sort(function(e,t){return e.name.localeCompare(t.name)}),this.tables=t.concat(r),this.procedures=n.deserializeToCollection(e.StoredProcedures,function(e){return new i.DBStoredProcedure(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBForeignKey=void 0,t.DBForeignKey=function(e){this.name=e.Name,this.primaryKeyTable=e.PrimaryKeyTable,this.columns=e.Columns,this.primaryKeyColumns=e.PrimaryKeyTableKeyColumns}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultTable=void 0;var o=r(1),i=[{propertyName:"tableName",modelName:"@Name"},{propertyName:"columns",modelName:"Fields",array:!0,info:[{propertyName:"name",modelName:"@Name"},{propertyName:"propertyType",modelName:"@Type"}]}];function n(e,t){(t=t||new o.ModelSerializer).deserialize(this,e)}n.prototype.getInfo=function(){return i},t.ResultTable=n},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSource=void 0,r(2)),s=r(1),l=r(1),c=r(90),r=r(89),n=(i=s.Disposable,n(d,i),d.from=function(e,t){return new d(e||{},t)},d.toJson=function(e,t,r){return t.serialize(e,u,r)},d.prototype.getInfo=function(){return u},d.prototype.serialize=function(e){return(e=void 0===e?!1:e)?{Source:this.serialize()}:(new l.ModelSerializer).serialize(this)},d.prototype.resetSource=function(){this.sourceType(""),this.json(""),this.uri("")},d._URIJSONSOURCE_TYPE="DevExpress.DataAccess.Json.UriJsonSource",d._CUSTOMJSONSOURCE_TYPE="DevExpress.DataAccess.Json.CustomJsonSource",d);function d(e,r){void 0===e&&(e={});var t=i.call(this)||this;function o(e,t){return e&&Array.isArray(e[c.JsonParameterType[t]])&&e[c.JsonParameterType[t]]&&(e=e[c.JsonParameterType[t]]),s.deserializeArray(e,function(e){return e["@ItemType"]||(e["@ItemType"]=c.JsonParameterType[t]),new c.JsonParameter(e,r)})}return t.sourceType=a.observable(),t.uri=a.observable(),t.json=a.observable(),(r=r||new l.ModelSerializer).deserialize(t,e),t._disposables.push(t.uri.subscribe(function(e){e&&t.sourceType(d._URIJSONSOURCE_TYPE)})),t._disposables.push(t.json.subscribe(function(e){e&&t.sourceType(d._CUSTOMJSONSOURCE_TYPE)})),t.queryParameters=o(e.QueryParameters,c.JsonParameterType.QueryParameter),t.headers=o(e.Headers,c.JsonParameterType.Header),t.pathParameters=o(e.PathParameters,c.JsonParameterType.PathParameter),t}t.JsonSource=n;var u=[{propertyName:"sourceType",modelName:"@SourceType",defaultVal:""},{propertyName:"json",modelName:"@Json",defaultVal:""},{propertyName:"uri",modelName:"@Uri",defaultVal:""},{propertyName:"authenticationInfo",modelName:"AuthenticationInfo",from:r.JsonAuthenticationInfo.from,toJsonObject:r.JsonAuthenticationInfo.toJson},{propertyName:"headers",modelName:"Headers",array:!0},{propertyName:"queryParameters",modelName:"QueryParameters",array:!0},{propertyName:"pathParameters",modelName:"PathParameters",array:!0}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSchemaProvider=void 0,r(3)),s=r(1),l=r(11),c=r(137),r=(i=s.Disposable,n(d,i),d.prototype.reset=function(){this._jsonSchemaPromise=null},d.prototype.mapToDataMemberContract=function(e){return a.map(e||[],function(e){return{name:e.name(),displayName:e.displayName||e.name(),isSelected:e.selected(),isList:e.nodes&&0<e.nodes.length,specifics:"table",dragData:{noDragable:!1}}})},d.prototype.getSchemaByPath=function(t,e){if(t.fullPath){for(var r=e.nodes,o=0;o<t.pathParts.length;o++){var i=(r||[]).filter(function(e){return e.name()==t.pathParts[o]})[0];if(!i)return[];r=i.nodes}return this.mapToDataMemberContract(r)}return this.mapToDataMemberContract(e.nodes)},d.prototype.getJsonSchema=function(e){return void 0===e&&(e=[]),this._jsonSchemaPromise&&"rejected"!==this._jsonSchemaPromise.state()||(this._jsonSchemaPromise=c.getJsonSchemaCallback(this._requestWrapper,this._jsonDataSource,e)),this._jsonSchemaPromise},d);function d(e,t){void 0===t&&(t=new l.RequestWrapper);var o=i.call(this)||this;return o._requestWrapper=t,o._jsonDataSource=e,o._disposables.push(o._jsonDataSource.source.sourceType.subscribe(function(){o._jsonSchemaPromise=null})),o.getItems=function(t){var r=a.Deferred();return(o._jsonSchema?a.Deferred().resolve(o._jsonSchema).promise():o.getJsonSchema()).done(function(e){o._jsonSchema=e;e=o.getSchemaByPath(t,e);r.resolve(e)}).fail(r.reject),r.promise()},o}t.JsonSchemaProvider=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resetGetJsonSchemaCallback=t._setGetJsonSchemaCallback=t.getJsonSchemaCallback=void 0;function o(e,t,r){void 0===r&&(r=[]);var o=i.Deferred();return e.getJsonSchema(t,r).done(function(e){try{var t=JSON.parse(e.jsonSchemaJSON),r=new n.JsonSchemaRootNode(t);o.resolve(r)}finally{"pending"===o.state()&&o.reject()}}).fail(function(e){a.ShowMessage(s.formatUnicorn(l.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),a.getErrorMessage(e))),o.reject()}),o.promise()}var i=r(3),n=r(62),a=r(0),s=r(0),l=r(1);t.getJsonSchemaCallback=o,t._setGetJsonSchemaCallback=function(e){t.getJsonSchemaCallback=e},t._resetGetJsonSchemaCallback=function(){t.getJsonSchemaCallback=o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionOptions=void 0;var o=r(2),i=r(1),n=r(1),a=[{propertyName:"closeConnection",modelName:"@CloseConnection",from:i.parseBool},{propertyName:"commandTimeout",modelName:"@DbCommandTimeout",from:function(e){e=parseInt(e);return isNaN(e)&&(e=null),o.observable(e)},defaultVal:null}];function s(e,t){this.closeConnection=o.observable(!0),this.commandTimeout=o.observable(null),(t=t||new n.ModelSerializer).deserialize(this,e)}s.prototype.getInfo=function(){return a},t.ConnectionOptions=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expressionFunctions=void 0;r=r(8);t.expressionFunctions=r.insertInFunctionDisplay({String:{CreateTable:[{paramCount:1,text:"CreateTable(, )",displayName:"CreateTable(Column1, ..., ColumnN)",descriptionStringId:"ExpressionEditorStringId.Function_CreateTable"}]}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customQuerySerializationsInfo=void 0,t.customQuerySerializationsInfo=[{propertyName:"type",modelName:"@Type"},{propertyName:"name",modelName:"@Name"},{propertyName:"sqlString",modelName:"Sql",defaultVal:""},{propertyName:"parameters",modelName:"Parameters",array:!0},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.masterDetailRelationSerializationsInfo=void 0,t.masterDetailRelationSerializationsInfo=[{propertyName:"masterQuery",modelName:"@Master"},{propertyName:"detailQuery",modelName:"@Detail"},{propertyName:"_customName",modelName:"@Name"},{propertyName:"keyColumns",modelName:"KeyColumns",array:!0,info:[{propertyName:"masterColumn",modelName:"@Master"},{propertyName:"detailColumn",modelName:"@Detail"},{propertyName:"itemType",modelName:"@ItemType"}]},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SqlDataConnection=void 0;var o=r(2),i=r(1),r=r(1);function n(e,t){this.name=o.observable(),this.parameteres=o.observable(),this.fromAppConfig=o.observable(!0),(t=t||new i.ModelSerializer).deserialize(this,e)}n.from=function(e,t){return new n(e,t)},n.toJson=function(e,t,r){return t.serialize(e,a,r)},n.prototype.getInfo=function(){return a},t.SqlDataConnection=n;var a=[{propertyName:"name",modelName:"@Name"},{propertyName:"parameteres",modelName:"Parameters"},{propertyName:"fromAppConfig",modelName:"@FromAppConfig",defaultVal:!1,from:r.parseBool}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableQuerySerializationsInfo=void 0,t.tableQuerySerializationsInfo=[{propertyName:"type",modelName:"@Type"},{propertyName:"name",modelName:"@Name"},{propertyName:"parameters",modelName:"Parameters",array:!0},{propertyName:"_tablesObject",modelName:"Tables",info:[{propertyName:"tables",modelName:"SelectedTables",array:!0,info:[{propertyName:"name",modelName:"@Name"},{propertyName:"alias",modelName:"@Alias"}]}]},{propertyName:"filterString",modelName:"Filter",defaultVal:""},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storedProcQuerySerializationsInfo=void 0,t.storedProcQuerySerializationsInfo=[{propertyName:"type",modelName:"@Type"},{propertyName:"name",modelName:"@Name"},{propertyName:"procName",modelName:"ProcName"},{propertyName:"parameters",modelName:"Parameters",array:!0},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchemaFederationDataSourceProvider=void 0,r(3)),s=r(1),l=r(1),c=r(85),r=(i=s.Disposable,n(d,i),d.prototype.getDbSchema=function(){var t=a.Deferred();return this._rootItems.length?t.resolve(this._rootItems):this.getItems(new l.PathRequest("")).done(function(e){t.resolve(e)}),t.promise()},d.prototype.getDbTable=function(t,e){var r=a.Deferred();return this.getItems(new l.PathRequest(e)).done(function(e){e=e.map(function(e){return{Name:e.displayName||e.name}});r.resolve(new c.DBTable({Name:t,columns:e}))}),r.promise()},d.prototype.dispose=function(){i.prototype.dispose.call(this),this.getItems=null},d);function d(e){var t=i.call(this)||this;return t._rootItems=[],t.getItems=e.getItems,t}t.DBSchemaFederationDataSourceProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableDataFederationDataSource=void 0,r(2)),s=r(1),r=r(1),r=(i=r.Disposable,n(l,i),Object.defineProperty(l.prototype,"_currentDataSources",{get:function(){var e=[];return this.dataSource&&this.dataSource.serializableSourceMap().reduce(function(e,t){return-1===e.indexOf(t.dataSource())&&e.push(t.dataSource()),e},e),e},enumerable:!1,configurable:!0}),l.prototype._collectDependentDataSources=function(e,t){var r=this;e.serializableSourceMap&&e.serializableSourceMap().forEach(function(e){return r._collectDependentDataSources(e.dataSource(),t)}),t.push(e)},l.prototype.dispose=function(){this.dataSource=null,this.dataSources=null},l.prototype.getInfo=function(){return[{propertyName:"dataSources",modelName:"dataSources",array:!0},{propertyName:"dataSource",modelName:"dataSource"}]},l.prototype.collectDependentDataSources=function(){var t=this,r=[];return this._currentDataSources.forEach(function(e){return t._collectDependentDataSources(e,r)}),r},l.prototype.serialize=function(){var e=new l(null),t=(e.dataSource=this.dataSource,e.dataSources(this.collectDependentDataSources()),this.serializer.serialize(e));return e.dispose(),t},l.prototype.getSerializableFederationDataSourceInfo=function(){var t=this.serialize();return{dataSource:JSON.stringify(t.dataSource),dataSources:Object.keys(t.dataSources).map(function(e){return JSON.stringify(t.dataSources[e])})}},l);function l(e,t){var r=i.call(this)||this;return r.dataSources=a.observableArray([]),r.serializer=t||new s.ModelSerializer,e&&(r.dataSource=e,r.dataSources(r._currentDataSources)),r}t.SerializableDataFederationDataSource=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseObjectDataSourceTypesPage=t.ChooseObjectDataSourceTypesPage=void 0,r(2)),s=r(3),l=r(11),c=r(103),d=r(104),u=r(26),p=r(64),f=r(5),m=r(1),r=r(9),y=(i=r.WizardPageBase,n(h,i),h.prototype.canNext=function(){return!!this._selectedTypeName},h.prototype.canFinish=function(){return!1},h.prototype.commit=function(){return s.Deferred().resolve({selectedType:this._selectedTypeName,selectedObjectType:this._chooseObjectType.selectedType(),ctor:this._chooseObjectType.selectedCtor()}).promise()},h.prototype.initialize=function(e){var t=this;return this._objectDataSource.setState(e),this._provider.getObjectTypeDescriptions(e.context).done(function(e){e.types.forEach(function(e){return e.members.splice(0,0,p.ObjectDataMember.empty())}),t._types(e.types||[]),0<e.types.length&&t._chooseObjectType.selectedPath(e.types[0].name)}),s.Deferred().resolve().promise()},Object.defineProperty(h.prototype,"_selectedTypeName",{get:function(){return this._chooseObjectType.selectedType()?this._chooseObjectType.selectedType().name:null},enumerable:!1,configurable:!0}),h);function h(e){void 0===e&&(e=new l.RequestWrapper);var t=i.call(this)||this;return t._requestWrapper=e,t._objectDataSource=new u.ObjectDataSource,t._types=a.observableArray([]),t._disposables.push(t._provider=new c.ObjectSchemaProvider(t._requestWrapper),t._chooseObjectType=new d.ChooseObjectTypes(t._types,t._provider)),t}t.ChooseObjectDataSourceTypesPage=y,t._registerChooseObjectDataSourceTypesPage=function(e,t){e.registerMetadata(f.ObjectDataSourceWizardPageId.ChooseTypesPage,{setState:function(e,t){t.selectedType=e.selectedType,t.selectedObjectType=e.selectedObjectType,t.ctor=e.ctor},getState:function(e){return e.objectDataSourceWizard},resetState:function(e,t){e.selectedType=t.selectedType,e.selectedObjectType=t.selectedObjectType,e.ctor=t.ctor},create:function(){return new y(t.requestWrapper)},description:m.getLocalization("Choose the type and its constructor.","AnalyticsCoreStringId.ObjectDSWizard_ChooseType_Description"),template:"dxrd-page-objectdatasource-types"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseObjectDataSourceDataMembersPage=t.ChooseObjectDataSourceDataMembersPage=void 0,r(2)),s=r(3),l=r(11),c=r(105),d=r(26),u=r(5),p=r(1),r=r(9),f=(i=r.WizardPageBase,n(m,i),m.prototype.initialize=function(e){return this._objectDataSource.setState(e),this._type(e.selectedObjectType),this._ctor(e.ctor),s.Deferred().resolve().promise()},m.prototype.canNext=function(){return!!this._needParametersPage},m.prototype.canFinish=function(){return!this._needParametersPage},m.prototype.commit=function(){return s.Deferred().resolve({selectedType:this._type().name,ctor:this._ctor(),dataMember:!this._selectedDataMember||this._selectedDataMember.isEntireObject()?void 0:this._selectedDataMember}).promise()},Object.defineProperty(m.prototype,"_selectedDataMember",{get:function(){var e=this._chooseObjectDataMember.selectedDataMembers();return e?e[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"_needParametersPage",{get:function(){return!!this._selectedDataMember&&0<this._selectedDataMember.parameters.length||!!this._ctor()&&0<this._ctor().parameters.length},enumerable:!1,configurable:!0}),m);function m(e){void 0===e&&(e=new l.RequestWrapper);var t=i.call(this)||this;return t._requestWrapper=e,t._objectDataSource=new d.ObjectDataSource,t._type=a.observable(),t._ctor=a.observable(),t._disposables.push(t._chooseObjectDataMember=new c.ChooseObjectDataMembers(t._type,t._ctor)),t}t.ChooseObjectDataSourceDataMembersPage=f,t._registerChooseObjectDataSourceDataMembersPage=function(e,t){e.registerMetadata(u.ObjectDataSourceWizardPageId.ChooseDataMembersPage,{setState:function(e,t){t.selectedType=e.selectedType,t.ctor=e.ctor,t.dataMember=e.dataMember},getState:function(e){return e.objectDataSourceWizard},resetState:function(e,t){e.dataMember=t.dataMember},create:function(){return new f(t.requestWrapper)},description:p.getLocalization("Choose the entire object or a data member to bind.","AnalyticsCoreStringId.ObjectDSWizard_ChooseDataMember_Description"),template:"dxrd-page-objectdatasource-datamembers"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChooseAvailableItemPage=void 0,r(2)),s=r(3),l=r(10),c=r(1),d=r(9),u=r(14),r=(i=d.WizardPageBase,n(p,i),p.prototype.canNext=function(){return 0!==this.selectedItems().length||this.selectedOperation().createNew},p.prototype.initialize=function(e){e=this._getSelectedItem(e);return this.selectedItems(e?[e]:[]),s.Deferred().resolve(this).promise()},p.prototype._displayExpr=function(e){return e.description||e.name},p.prototype._getSelectedItem=function(e){return this.items()[0]},p.prototype.onDblClick=function(){this[u.__nextActionFunctionName]&&this[u.__nextActionFunctionName]()},Object.defineProperty(p.prototype,"createNewOperationText",{get:function(){return c.getLocalization("No, I'd like to create a new data source","AnalyticsCoreStringId.Wizard_CreateNewDataSource")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"existingOperationText",{get:function(){return c.getLocalization("Yes, let me choose an existing data source from the list","AnalyticsCoreStringId.Wizard_ChooseDataSourceFromList")},enumerable:!1,configurable:!0}),p);function p(e,t){void 0===t&&(t=!0);var r=i.call(this)||this;return r.items=e,r.selectedItems=a.observableArray([]),r.operations=[{text:r.existingOperationText,createNew:!1},{text:r.createNewOperationText,createNew:!0}],r.selectedOperation=a.observable(r.operations[0]),r._createNew=a.pureComputed(function(){return r.selectedOperation().createNew}),r.canCreateNew=a.observable(t),(e=r._disposables).push.apply(e,l.subscribeProperties([r.selectedOperation,r.selectedItems],function(){return r._onChange()})),r}t.ChooseAvailableItemPage=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifyJsonConnectionPage=t.SpecifyJsonConnectionPage=void 0,r(3)),s=r(68),l=r(11),c=r(50),d=r(5),u=r(1),p=(n=s.ChooseJsonConnectionPage,i(f,n),f.prototype.commit=function(){var t=a.Deferred(),e=this._createNew()?this._specifySourceData.commit():n.prototype.commit.call(this);return e.done(function(e){t.resolve(e)}),t.promise()},f.prototype.canNext=function(){return this._createNew()?this._specifySourceData.canNext():n.prototype.canNext.call(this)},f.prototype.initialize=function(e){var t=this,r=a.Deferred();return n.prototype.initialize.call(this,e).done(function(){t._specifySourceData.initialize(e).done(function(){r.resolve(t)})}),r.promise()},f);function f(e,t,r,o){void 0===o&&(o=new l.RequestWrapper);var i=n.call(this,e,t)||this;return i._requestWrapper=o,i._disposables.push(i._specifySourceData=new c.ChooseJsonSourcePage(o,r)),i._specifySourceData.onChange(function(){return i._onChange()}),i}t.SpecifyJsonConnectionPage=p,t._registerSpecifyJsonConnectionPage=function(e,t,r,o){e.registerMetadata(d.JsonDataSourceWizardPageId.SpecifyJsonConnectionPage,{create:function(){return new p(t,r,o&&o())},description:r?u.getLocalization("Do you want to use an existing data connection?","AnalyticsCoreStringId.JsonDSWizard_ChooseConnection_Description"):u.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection"),getState:function(e){return e.jsonDataSourceWizard},setState:function(e,t){t.connectionName=e.connectionName,t.jsonSource=e.jsonSource,t.newConnectionName=e.newConnectionName},resetState:function(e,t){e.connectionName=t.connectionName,e.jsonSource=t.jsonSource,e.newConnectionName=t.newConnectionName},template:"dxrd-page-specify-connection"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e},l=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonDataSourceJsonSourcePageUriSettings=t.JsonDataSourceJsonSourcePageStringSettings=t.JsonDataSourceJsonSourcePageSettingsBase=void 0,r(2)),c=r(3),d=r(1),u=r(1),p=r(152),f=r(6),m=r(63),y=r(106),h=r(89),g=r(6),_=r(0),b=r(90),S=r(10),v=r(0),r=(i=u.Disposable,n(P,i),P.prototype.dispose=function(){this._validationSummary&&this._validationSummary.dispose(),this._validationGroup&&this._validationGroup.dispose(),this._validationSummary=null,this._validationGroup=null,i.prototype.dispose.call(this)},P.prototype._onValidationGroupInitialized=function(e){this._validationGroup=e.component},P.prototype._onValidationGroupDisposing=function(e){this._validationGroup=null},P.prototype._onValidationSummaryInitialized=function(e){this._validationSummary=e.component},P.prototype._onValidationSummaryDisposing=function(e){this._validationSummary=null},P.prototype._repaintSummary=function(){this._validationSummary&&this._validationSummary.repaint()},P.prototype._validate=function(){this._validationSummary&&this._validationGroup&&this._validationGroup.validate()},P);function P(){var t=i.call(this)||this;return t._validationGroup=null,t._validationSummary=null,t.validationGroup={onInitialized:function(e){return t._onValidationGroupInitialized(e)},onDisposing:function(e){return t._onValidationGroupDisposing(e)},validate:function(){return t._validate()}},t.validationSummary={onInitialized:function(e){return t._onValidationSummaryInitialized(e)},onDisposing:function(e){return t._onValidationSummaryDisposing(e)}},t._disposables.push(t.grid=new f.ObjectProperties(l.observable(t))),t}t.JsonDataSourceJsonSourcePageSettingsBase=r;n(C,x=r),C.prototype.onChange=function(t){var r=this,o=null;this._disposables.push(this.stringSource.subscribe(function(e){t(),clearTimeout(o),o=setTimeout(function(){return r._validate()},1)}))},C.prototype._isJsonSourceValid=function(e){if(!e)return!1;var t=!0;try{JSON.parse(e)}catch(e){t=!1}return t},C.prototype.isEmpty=function(){return!this.stringSource()},C.prototype.reset=function(){this.stringSource("")},C.prototype.setValue=function(e){this.stringSource(e.source.json())},C.prototype.getInfo=function(){return[{propertyName:"stringSource",defaultVal:"",displayName:"JSON String",editor:{header:"dx-jsonwizard-jsonstring-editor",editorType:y.JsonStringEditor,custom:"dx-property-json-string-editor"}}]},C.prototype.applySettings=function(e){e.source.uri(void 0),e.source.json(this.stringSource()),e.source.authenticationInfo=new h.JsonAuthenticationInfo({}),e.source.headers([]),e.source.queryParameters([]),e.source.pathParameters([])};var x,u=C;function C(){var r=x.call(this)||this;return r._validatorsReady=l.observable(!1),r.isValid=l.pureComputed(function(){var e=r._isJsonSourceValid(r.stringSource()),t=r.aceEditorHasErrors();return e&&!t}),r.validationGroup=null,r.validationSummary=null,r.stringSource=l.observable(""),r.aceEditorHasErrors=l.observable(!1),r.cssClass={"dxrd-wizard-json-string-source-grid":!0},r._disposables.push(r.grid=new f.ObjectProperties(l.observable(r))),r}t.JsonDataSourceJsonSourcePageStringSettings=u;n(w,T=r),w.prototype._validateUriSource=function(){var r=this,o=d.getLocalization("Invalid URI.","AnalyticsCoreStringId.ReportDesigner_Wizard_JsonSource_UriValidationError"),i=d.getLocalization("Web Service Endpoint (URI):","DataAccessUIStringId.WizardPageChooseJsonSource_URI"),n=(this._isUriValid(!1),this._lastValidateDeferred&&this._lastValidateDeferred.reject(),c.Deferred());this._lastValidateDeferred=n;try{var e=new m.JsonDataSource({}),t=this._getSerializedUriSource(e),a=(this._lastValidatedJsonSourceJSON=t,function(e){var t;n.state&&"rejected"===n.state()||(r._isUriValid(e.isUriValid),t=y.getLocalizedValidationErrorMessage((e.isUriValid?"":e&&e.faultMessage)||o,i),n.resolve({isUriValid:e.isUriValid,faultMessage:t}))});this._requestWrapper.validateJsonUri(e).done(a).fail(function(e){(e=void 0===e?{}:e).isValid=!1,a(e)})}catch(e){this._isUriValid(!1)}return n.promise()},w.prototype._isCollectionValid=function(e){return!this[e]().length||this[e]().every(function(e){return e.name()})},w.prototype._isParametersValid=function(){return this._isCollectionValid("parameters")},w.prototype._isBasicHttpAuthValid=function(){return!this.basicHttpAuth.password()||!!this.basicHttpAuth.userName()},w.prototype._getSourceUriInfo=function(){var t=this,e={propertyName:"sourceUri",displayName:"Web Service Endpoint (URI):",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_URI",defaultVal:"",editor:g.editorTemplates.getEditor("text"),validatorOptions:null,isRequired:!0,editorOptions:{elementAttr:{title:this.sourceUri}}},r=this;return e.validatorOptions={onInitialized:function(e){t._sourceUriValidatorsReady(!0)},onDisposed:function(){t._sourceUriValidatorsReady(!1)},validationRules:[{type:"custom",assignValueFirst:!0,isDeferred:l.pureComputed(function(){return t._noEmptyProperties()}),get message(){return r._lastValidationMessage()},validationCallback:this._sourceUriValidationCallback}]},e},w.prototype._getBasicHttpAuthInfo=function(){var t=this,e={propertyName:"userName",displayName:"Username:",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_UsernameText",editor:g.editorTemplates.getEditor("text"),validatorOptions:void 0},r={propertyName:"basicHttpAuth",displayName:"Basic HTTP Authentication",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_BasicHttpAuthText",info:[e,v.createPasswordSerializationInfo({propertyName:"password",displayName:"Password:",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_PasswordText"},!1)],editor:g.editorTemplates.getEditor("objecteditor")};return e.validatorOptions={onInitialized:function(e){e=e&&e.component;t._authNameValidatorInstance&&t._authNameValidatorInstance!=e&&t._authNameValidatorInstance.dispose(),t._authNameValidatorInstance=e,t._basicAuthValidatorsReady(!0)},onDisposed:function(){t._authNameValidatorInstance=null},validationRules:[{type:"custom",reevaluate:!0,assignValueFirst:!0,get message(){return y.getLocalizedValidationErrorMessage(null,d.getLocalization(r.displayName,r.localizationId),d.getLocalization(e.displayName,e.localizationId))},validationCallback:function(e){return t._isBasicHttpAuthValid()}}]},r},w.prototype._getParametersInfo=function(){var t=this,e={propertyName:"parameters",displayName:"Parameters",localizationId:"AnalyticsCoreStringId.QueryBuilder_Parameters",array:!0,addHandler:function(){var e=_.getUniqueNameForNamedObjectsArray(t.parameters(),"parameter");return b.JsonParameter.from({"@Name":e})},editor:g.editorTemplates.getEditor("commonCollection"),editorOptions:null,template:"#dx-jsonwizard-parametercollection"};return e.editorOptions={itemsProvider:this._itemsProvider,nameValidationRules:[{type:"required",get message(){return y.getLocalizedValidationErrorMessage(null,d.getLocalization(e.displayName,e.localizationId),this._collectionItemNamePlaceholder)}}]},e},w.prototype._getResultUriInfo=function(){return{propertyName:"resultUri",displayName:"Resulting URI:",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_ResultingUri",defaultVal:"",editor:g.editorTemplates.getEditor("text"),editorOptions:{readOnly:!0,elementAttr:{title:this.resultUri}}}},w.prototype._getResultUri=function(){if(!this.sourceUri()||!this._isUriValid()||!this._isParametersValid())return null;if(this.sourceUri()&&0===this.parameters().length)return this.sourceUri();var e=this.sourceUri().split("?"),t=(e[0],e[1]),e=this._appendPathSegmentsToUri(e[0]);return this._appendQuerySegmentsToUri(e,t)},w.prototype._appendPathSegmentsToUri=function(t){return this.parameters().filter(function(e){return"PathParameter"===e.itemType()}).map(function(e){return"{"+e.name()+"}"}).forEach(function(e){t=t.replace(/[\/]+$/g,"")+"/"+e.replace(/^[\/]+/g,"")}),t},w.prototype._appendQuerySegmentsToUri=function(e,t){var r=t||"";return this.parameters().filter(function(e){return"QueryParameter"===e.itemType()}).map(function(e){return e.name()+"={?}"}).forEach(function(e){r&&(r+="&"),r+=e}),0<r.length&&(e+="?"+r),e},w.prototype._onValidationSummaryInitialized=function(e){var t=this;T.prototype._onValidationSummaryInitialized.call(this,e),this._isInitUri=!0,setTimeout(function(){t._validate()},1)},w.prototype._applyParametersToSource=function(t){var r=this.parameters().reduce(function(e,t){var r;return a(a({},e),((r={})[t.itemType()]=s(s([],e[t.itemType()]||[]),[t]),r))},{});["PathParameter","QueryParameter","Header"].forEach(function(e){r[e]&&t.source[p.parameterTypeToPropertyMap[e]](r[e])})},w.prototype.applySettings=function(e){e.source.uri(this.sourceUri()),e.source.json(void 0),e.source.authenticationInfo.password(this.basicHttpAuth.password()),e.source.authenticationInfo.userName(this.basicHttpAuth.userName()),this._applyParametersToSource(e)},w.prototype.getInfo=function(){return[this._getSourceUriInfo(),this._getBasicHttpAuthInfo(),this._getParametersInfo(),this._getResultUriInfo()]},w.prototype.reset=function(){this.sourceUri(""),this.basicHttpAuth.password(""),this.basicHttpAuth.userName(""),this.parameters([])},w.prototype.setValue=function(e){this.sourceUri(e.source.uri()),this.basicHttpAuth.userName(e.source.authenticationInfo.userName()),this.basicHttpAuth.password(e.source.authenticationInfo.password());e=[].concat.apply([],[e.source.pathParameters(),e.source.queryParameters(),e.source.headers()]);this.parameters(e)},w.prototype.dispose=function(){this._authNameValidatorInstance&&this._authNameValidatorInstance.dispose(),this._lastValidateDeferred&&(this._lastValidateDeferred.reject(),this._lastValidateDeferred=null),T.prototype.dispose.call(this),this.disposeObservableArray(this.parameters)},w.prototype.onChange=function(e){function r(){e(),clearTimeout(i),i=setTimeout(function(){return o._validate()},1)}var t,o=this,i=null;(t=this._disposables).push.apply(t,S.subscribeProperties([this.sourceUri,this.basicHttpAuth.password,this.basicHttpAuth.userName,this.resultUri],r)),this._disposables.push(S.subscribeArray(this.parameters,function(e){var t;(t=e._disposables).push.apply(t,S.subscribeProperties([e.name,e.itemType,e.value],r))},r))},w.prototype.isEmpty=function(){return!this.sourceUri()},w.prototype._validate=function(){this._validationSummary&&this._validationGroup&&(this._validatorsReady()?(this._validationGroup.validate(),this._validationRequested(!1)):this._validationRequested(!0))};var T,u=w;function w(e,t){var o=T.call(this)||this;return o._requestWrapper=e,o._itemsProvider=t,o._isUriValid=l.observable(!1),o._lastValidatedJsonSourceJSON="",o._authNameValidatorInstance=null,o._isInitUri=!0,o._collectionItemNamePlaceholder=d.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder"),o._lastValidateDeferred=null,o._sourceUriValidatorsReady=l.observable(!0),o._basicAuthValidatorsReady=l.observable(!1),o._validationRequested=l.observable(!1).extend({deferred:!0}),o._noEmptyProperties=l.pureComputed(function(){var e=o._isBasicHttpAuthValid(),t=o._isParametersValid(),r=!!o.sourceUri();return e&&t&&r}),o._lastValidationMessage=l.observable(),o._getSerializedUriSource=function(e){return void 0===e&&(e=new m.JsonDataSource({})),o.applySettings(e),JSON.stringify(e.source.serialize(!0))},o._sourceUriValidationCallback=function(t){if(!o.sourceUri())return o._isInitUri?!(o._isInitUri=!1):(t.rule.message=y.getLocalizedValidationErrorMessage(null,d.getLocalization("Web Service Endpoint (URI):","DataAccessUIStringId.WizardPageChooseJsonSource_URI")),!1);var r=!1;return o._isInitUri=!1,o._getSerializedUriSource()==o._lastValidatedJsonSourceJSON?!o._lastValidationMessage():(o._lastValidationMessage()||o._lastValidationMessage(d.getLocalization("Validation...","AnalyticsCoreStringId.Validation")),o._validateUriSource().done(function(e){r=t.rule.isValid=e.isUriValid,e.faultMessage&&(t.rule.message=e.faultMessage),o._lastValidationMessage(r?null:e.faultMessage),t.validator.validate(),setTimeout(function(){return o._repaintSummary()},1)}),r)},o.isValid=l.pureComputed(function(){var e=o._noEmptyProperties(),t=o._isUriValid();return e&&t}),o._validatorsReady=l.pureComputed({read:function(){var e=o._sourceUriValidatorsReady(),t=!o.basicHttpAuth.password()&&!o.basicHttpAuth.userName(),r=o._basicAuthValidatorsReady();return e&&(r||t)},write:function(e){o._basicAuthValidatorsReady(e)}}),o.sourceUri=l.observable(""),o.basicHttpAuth={password:l.observable(""),userName:l.observable("")},o.parameters=l.observableArray([]),o._disposables.push(o.resultUri=l.pureComputed(function(){return o._getResultUri()})),o._disposables.push(o.grid=new f.ObjectProperties(l.observable(o))),o._disposables.push(l.computed(function(){var e=o._validatorsReady(),t=o._validationRequested();e&&t&&o._validate()})),o._disposables.push(o._validatorsReady),o}t.JsonDataSourceJsonSourcePageUriSettings=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterTypeToPropertyMap=void 0,t.parameterTypeToPropertyMap={PathParameter:"pathParameters",QueryParameter:"queryParameters",Header:"headers"}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonTreeNodeItemsProvider=void 0,r(107)),r=(i=r.TreeNodeItemsProvider,n(a,i),a.prototype._getDefaultTreeNodeCheckState=function(e){return e.isSelected},a.prototype.getNodeByPath=function(t){var e=this._rootItems().filter(function(e){return e.path===(t.pathParts||[])[0]})[0];if(e){for(var r=e.path,o=1;o<t.pathParts.length;o++){if(!e)return;r+="."+t.pathParts[o],e=e.children().filter(function(e){return e.path==r})[0]}return e}},a);function a(e,t,r,o){return i.call(this,e,t,r,o)||this}t.JsonTreeNodeItemsProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerConfigureQueryPage=t.ConfigureQueryPage=void 0,r(2)),s=r(3),l=r(7),c=r(12),d=r(108),u=r(155),p=r(0),f=r(1),m=r(109),y=r(32),h=r(110),g=r(43),_=r(44),b=r(40),S=r(99),v=r(5),P=r(0),x=r(0),C=r(9),T=r(14),w=(i=C.WizardPageBase,n(O,i),O.prototype.canNext=function(){return!this.queryControl().isNextDisabled()},O.prototype.canFinish=function(){return!this.queryControl().isFinishDisabled()||!this.queryControl().isNextDisabled()},O.prototype.runQueryBuilder=function(){var e=this.queryControl().getQuery();e&&e.type()===l.SqlQueryType.tableQuery?(e.name(this.queryName()),this.popupQueryBuilder.show(e,this._dataSource())):this.popupQueryBuilder.show(new g.TableQuery({"@Name":this.queryName()},this._dataSource()),this._dataSource())},O.prototype.localizeQueryType=function(e){return O.QUERY_TEXT===e?f.getLocalization(O.QUERY_TEXT,"DataAccessUIStringId.WizardPageConfigureQuery_Query"):f.getLocalization(O.SP_TEXT,"DataAccessUIStringId.WizardPageConfigureQuery_StoredProcedure")},O.prototype.initialize=function(e){return this._dataSourceWrapper=c._restoreSqlDataSourceFromState(e,this._options.requestWrapper),this._proceduresList.setQuery(new _.StoredProcQuery({},this._dataSource())),this._selectStatementControl.setQuery(new b.CustomSqlQuery({},this._dataSource())),this.popupQueryBuilder.isVisible(!1),this._dataSourceWrapper.sqlQuery?(this.initialName=this._dataSourceWrapper.sqlQuery.name(),this.queryName(this.initialName),this.selectedQueryType(this._dataSourceWrapper.sqlQuery.type()===l.SqlQueryType.storedProcQuery?O.SP_TEXT:O.QUERY_TEXT),this.queryControl().setQuery(this._dataSourceWrapper.sqlQuery)):(this.selectedQueryType(O.QUERY_TEXT),s.Deferred().resolve().promise())},O.prototype.commit=function(){var e,t=this.queryControl().getQuery();return t&&((e=this.queryName()||this.initialName)&&t.name(e),t.name()&&this._dataSourceWrapper.sqlQuery&&this._dataSourceWrapper.sqlQuery.name()===t.name()||t.name(S.generateQueryUniqueName(this._dataSource().queries(),t)),this._dataSourceWrapper.sqlQuery=t),s.Deferred().resolve({queryName:this._dataSourceWrapper.sqlQuery.name(),sqlDataSourceJSON:this._dataSourceWrapper.save()}).promise()},O.QUERY_TEXT="Query",O.SP_TEXT="Stored Procedure",O);function O(e){var r=i.call(this)||this;return r._options=e,r._connection=function(){return r._dataSource().connection},r._dataSource=function(){return r._dataSourceWrapper&&r._dataSourceWrapper.sqlDataSource},r.queryNameCaption=function(){return f.getLocalization("Query Name","AnalyticsCoreStringId.SqlDSWizard_QueryName")+":"},r.queryControl=a.observable(),r.runQueryBuilderBtnText=a.pureComputed(function(){return r._selectStatementControl.sqlString()&&r._selectStatementControl.getQuery().type()!==l.SqlQueryType.tableQuery?f.getLocalization("Create New Query...","AnalyticsCoreStringId.SqlDSWizard_CreateNewQuery"):f.getLocalization("Run Query Builder...","DataAccessUIStringId.Button_QueryBuilder")}).extend({deferred:!0}),r.placeholder=function(){var e=r.queryControl(),e=e&&e.getQuery(),e=r.initialName||e&&e.generateName();return e&&p.formatUnicorn(f.getLocalization("Type custom query name (current name: {0})","AnalyticsCoreStringId.SqlDSWizard_QueryNamePlaceholder"),e)},r.queryName=a.observable(""),r.queryTypeItems=[O.QUERY_TEXT,O.SP_TEXT],r.selectedQueryType=a.observable(),r.initialName="",r._proceduresList=new d.StoredProceduresQueryControl,r._disposables.push(r._selectStatementControl=new u.SelectStatementQueryControl(new m.SelectQuerySqlTextProvider(y.wrapGetSelectStatement(r._options.callbacks.selectStatement),r._connection),r._options.disableCustomSql)),r._disposables.push(r.selectedQueryType.subscribe(function(e){e===O.SP_TEXT?(r[T.__loadingStateFunctionName]&&r[T.__loadingStateFunctionName](!0),r._dataSource().dbSchemaProvider.getDbStoredProcedures().done(function(e){r._proceduresList.storedProcedures([]),r._proceduresList.storedProcedures(e)}).always(function(e){return r[T.__loadingStateFunctionName]&&r[T.__loadingStateFunctionName](!1)}),r.queryControl(r._proceduresList)):r.queryControl(r._selectStatementControl)})),r.selectedQueryType(O.QUERY_TEXT),r.popupQueryBuilder=new h.QueryBuilderPopup(function(e,t){return r.queryName(e.name()||e.generateName()),r._selectStatementControl.setQuery(e,t)},r._options.rtl,r._options.callbacks.customizeQBInitData),r}t.ConfigureQueryPage=w,t._registerConfigureQueryPage=function(e,t){e.registerMetadata(v.SqlDataSourceWizardPageId.ConfigureQueryPage,{create:function(){return new w(t)},setState:function(e,t){t.queryName=e.queryName,t.sqlDataSourceJSON=e.sqlDataSourceJSON},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.sqlDataSourceJSON=t.sqlDataSourceJSON,e.queryName=t.queryName},template:"dxrd-wizard-create-query-page",description:P.isCustomizedWithUpdateLocalizationMethod("Create a query or select a stored procedure")||f.getLocalization("Create a query or select a stored procedure.",x.StringId.WizardPageConfigureQuery)})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectStatementQueryControl=void 0,r(2)),s=r(3),l=r(7),c=r(1),d=r(70),u=r(1),p=r(40),f=r(0),m=r(8),r=(i=c.Disposable,n(y,i),y.prototype.setQuery=function(t,e){var r=this;return this._query()!==t&&t.type()===l.SqlQueryType.tableQuery?(e&&e(!0),this._sqlTextProvider.getQuerySqlText(t).done(function(e){e.errorMessage&&f.ShowMessage(e.errorMessage),r._tableQueryString(e.sqlSelectStatement),r._query(t)}).always(function(){e&&e(!1)})):(this._query(t),s.Deferred().resolve().promise())},y.prototype.getQuery=function(){return this._query()},Object.defineProperty(y.prototype,"runQueryBuilderDisabled",{get:function(){return!1},enumerable:!1,configurable:!0}),y);function y(e,t){var r=i.call(this)||this;return r._tableQueryString=a.observable(""),r._query=a.observable(),r._needToCustomizeParameters=a.pureComputed(function(){return r._query()&&(r._query().type()===l.SqlQueryType.customSqlQuery||0<r._query().parameters().length)}),r.template="dxrd-select-control",r.aceOptions=d.createDefaultSQLAceOptions(),r.additionalOptions=d.createDefaultSQLAdditionalOptions(function(e){r.sqlString(e)}),r.aceAvailable=m.aceAvailable(),r.languageHelper=d.createDefaultSQLLanguageHelper(),r.caption=function(){return u.getLocalization("SQL string:","DataAccessUIStringId.QueryControl_SqlString")},r.sqlString=a.pureComputed({read:function(){return r._query()&&r._query().type()===l.SqlQueryType.customSqlQuery?r._query().sqlString():r._tableQueryString()},write:function(e){var t;r._query().type()!==l.SqlQueryType.customSqlQuery?((t=new p.CustomSqlQuery({"@Name":r._query().name()},r._query().parent)).parameters(r._query().parameters()),t.sqlString(e),r._query(t)):r._query().sqlString(e)}}),r.isNextDisabled=a.pureComputed(function(){return!r.sqlString()||!r._needToCustomizeParameters()}),r.isFinishDisabled=a.pureComputed(function(){return!r.sqlString()||r._needToCustomizeParameters()}),r._sqlTextProvider=e,r.disableCustomSql=function(){return t},r.aceOptions.readOnly=r.disableCustomSql(),r._disposables.push(r._needToCustomizeParameters,r.sqlString),r}t.SelectStatementQueryControl=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(232);s.default&&(s.default.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/doc_comment_highlight_rules"],function(e,t,r){function o(){for(var o="ALL|AND|ANY|BETWEEN|EXISTS|IN|LIKE|NOT|OR|SOME",i=(o+="|NULL|IS|APPLY|INNER|OUTER|LEFT|RIGHT|JOIN|CROSS","OPENDATASOURCE|OPENQUERY|OPENROWSET|OPENXML|AVG|CHECKSUM_AGG|COUNT|COUNT_BIG|GROUPING|GROUPING_ID|MAX|MIN|STDEV|STDEVP|SUM|VAR|VARP|DENSE_RANK|NTILE|RANK|ROW_NUMBER@@DATEFIRST|@@DBTS|@@LANGID|@@LANGUAGE|@@LOCK_TIMEOUT|@@MAX_CONNECTIONS|@@MAX_PRECISION|@@NESTLEVEL|@@OPTIONS|@@REMSERVER|@@SERVERNAME|@@SERVICENAME|@@SPID|@@TEXTSIZE|@@VERSION|CAST|CONVERT|PARSE|TRY_CAST|TRY_CONVERT|TRY_PARSE@@CURSOR_ROWS|@@FETCH_STATUS|CURSOR_STATUS|@@DATEFIRST|@@LANGUAGE|CURRENT_TIMESTAMP|DATEADD|DATEDIFF|DATEFROMPARTS|DATENAME|DATEPART|DATETIME2FROMPARTS|DATETIMEFROMPARTS|DATETIMEOFFSETFROMPARTS|DAY|EOMONTH|GETDATE|GETUTCDATE|ISDATE|MONTH|SET DATEFIRST|SET DATEFORMAT|SET LANGUAGE|SMALLDATETIMEFROMPARTS|SP_HELPLANGUAGE|SWITCHOFFSET|SYSDATETIME|SYSDATETIMEOFFSET|SYSUTCDATETIME|TIMEFROMPARTS|TODATETIMEOFFSET|YEAR|CHOOSE|IIF|ABS|ACOS|ASIN|ATAN|ATN2|CEILING|COS|COT|DEGREES|EXP|FLOOR|LOG|LOG10|PI|POWER|RADIANS|RAND|ROUND|SIGN|SIN|SQRT|SQUARE|TAN|@@PROCID|APPLOCK_MODE|APPLOCK_TEST|APP_NAME|ASSEMBLYPROPERTY|COLUMNPROPERTY|COL_LENGTH|COL_NAME|DATABASEPROPERTYEX|DATABASE_PRINCIPAL_ID|DB_ID|DB_NAME|FILEGROUPPROPERTY|FILEGROUP_ID|FILEGROUP_NAME|FILEPROPERTY|FILE_ID|FILE_IDEX|FILE_NAME|FULLTEXTCATALOGPROPERTY|FULLTEXTSERVICEPROPERTY|INDEXKEY_PROPERTY|INDEXPROPERTY|INDEX_COL|OBJECTPROPERTY|OBJECTPROPERTYEX|OBJECT_DEFINITION|OBJECT_ID|OBJECT_NAME|OBJECT_SCHEMA_NAME|ORIGINAL_DB_NAME|PARSENAME|SCHEMA_ID|SCHEMA_NAME|SCOPE_IDENTITY|SERVERPROPERTY|STATS_DATE|TYPEPROPERTY|TYPE_ID|TYPE_NAME|CERTENCODED|CERTPRIVATEKEY|CURRENT_USER|DATABASE_PRINCIPAL_ID|HAS_PERMS_BY_NAME|IS_MEMBER|IS_ROLEMEMBER|IS_SRVROLEMEMBER|ORIGINAL_LOGIN|PERMISSIONS|PWDCOMPARE|PWDENCRYPT|SCHEMA_ID|SCHEMA_NAME|SESSION_USER|SUSER_ID|SUSER_NAME|SUSER_SID|SUSER_SNAME|SYS.FN_BUILTIN_PERMISSIONS|SYS.FN_GET_AUDIT_FILE|SYS.FN_MY_PERMISSIONS|SYSTEM_USER|USER_ID|USER_NAME|ASCII|CHAR|CHARINDEX|CONCAT|DIFFERENCE|FORMAT|LEN|LOWER|LTRIM|NCHAR|PATINDEX|QUOTENAME|REPLACE|REPLICATE|REVERSE|RTRIM|SOUNDEX|SPACE|STR|STUFF|SUBSTRING|UNICODE|UPPER|$PARTITION|@@ERROR|@@IDENTITY|@@PACK_RECEIVED|@@ROWCOUNT|@@TRANCOUNT|BINARY_CHECKSUM|CHECKSUM|CONNECTIONPROPERTY|CONTEXT_INFO|CURRENT_REQUEST_ID|ERROR_LINE|ERROR_MESSAGE|ERROR_NUMBER|ERROR_PROCEDURE|ERROR_SEVERITY|ERROR_STATE|FORMATMESSAGE|GETANSINULL|GET_FILESTREAM_TRANSACTION_CONTEXT|HOST_ID|HOST_NAME|ISNULL|ISNUMERIC|MIN_ACTIVE_ROWVERSION|NEWID|NEWSEQUENTIALID|ROWCOUNT_BIG|XACT_STATE|@@CONNECTIONS|@@CPU_BUSY|@@IDLE|@@IO_BUSY|@@PACKET_ERRORS|@@PACK_RECEIVED|@@PACK_SENT|@@TIMETICKS|@@TOTAL_ERRORS|@@TOTAL_READ|@@TOTAL_WRITE|FN_VIRTUALFILESTATS|PATINDEX|TEXTPTR|TEXTVALID|COALESCE|NULLIF"),n="BIGINT|BINARY|BIT|CHAR|CURSOR|DATE|DATETIME|DATETIME2|DATETIMEOFFSET|DECIMAL|FLOAT|HIERARCHYID|IMAGE|INTEGER|INT|MONEY|NCHAR|NTEXT|NUMERIC|NVARCHAR|REAL|SMALLDATETIME|SMALLINT|SMALLMONEY|SQL_VARIANT|TABLE|TEXT|TIME|TIMESTAMP|TINYINT|UNIQUEIDENTIFIER|VARBINARY|VARCHAR|XML",e="sp_addextendedproc|sp_addextendedproperty|sp_addmessage|sp_addtype|sp_addumpdevice|sp_add_data_file_recover_suspect_db|sp_add_log_file_recover_suspect_db|sp_altermessage|sp_attach_db|sp_attach_single_file_db|sp_autostats|sp_bindefault|sp_bindrule|sp_bindsession|sp_certify_removable|sp_clean_db_file_free_space|sp_clean_db_free_space|sp_configure|sp_control_plan_guide|sp_createstats|sp_create_plan_guide|sp_create_plan_guide_from_handle|sp_create_removable|sp_cycle_errorlog|sp_datatype_info|sp_dbcmptlevel|sp_dbmmonitoraddmonitoring|sp_dbmmonitorchangealert|sp_dbmmonitorchangemonitoring|sp_dbmmonitordropalert|sp_dbmmonitordropmonitoring|sp_dbmmonitorhelpalert|sp_dbmmonitorhelpmonitoring|sp_dbmmonitorresults|sp_db_increased_partitions|sp_delete_backuphistory|sp_depends|sp_describe_first_result_set|sp_describe_undeclared_parameters|sp_detach_db|sp_dropdevice|sp_dropextendedproc|sp_dropextendedproperty|sp_dropmessage|sp_droptype|sp_execute|sp_executesql|sp_getapplock|sp_getbindtoken|sp_help|sp_helpconstraint|sp_helpdb|sp_helpdevice|sp_helpextendedproc|sp_helpfile|sp_helpfilegroup|sp_helpindex|sp_helplanguage|sp_helpserver|sp_helpsort|sp_helpstats|sp_helptext|sp_helptrigger|sp_indexoption|sp_invalidate_textptr|sp_lock|sp_monitor|sp_prepare|sp_prepexec|sp_prepexecrpc|sp_procoption|sp_recompile|sp_refreshview|sp_releaseapplock|sp_rename|sp_renamedb|sp_resetstatus|sp_sequence_get_range|sp_serveroption|sp_setnetname|sp_settriggerorder|sp_spaceused|sp_tableoption|sp_unbindefault|sp_unbindrule|sp_unprepare|sp_updateextendedproperty|sp_updatestats|sp_validname|sp_who|sys.sp_merge_xtp_checkpoint_files|sys.sp_xtp_bind_db_resource_pool|sys.sp_xtp_checkpoint_force_garbage_collection|sys.sp_xtp_control_proc_exec_stats|sys.sp_xtp_control_query_exec_stats|sys.sp_xtp_unbind_db_resource_pool",t="ABSOLUTE|ACTION|ADA|ADD|ADMIN|AFTER|AGGREGATE|ALIAS|ALL|ALLOCATE|ALTER|AND|ANY|ARE|ARRAY|AS|ASC|ASENSITIVE|ASSERTION|ASYMMETRIC|AT|ATOMIC|AUTHORIZATION|BACKUP|BEFORE|BEGIN|BETWEEN|BIT_LENGTH|BLOB|BOOLEAN|BOTH|BREADTH|BREAK|BROWSE|BULK|BY|CALL|CALLED|CARDINALITY|CASCADE|CASCADED|CASE|CATALOG|CHARACTER|CHARACTER_LENGTH|CHAR_LENGTH|CHECK|CHECKPOINT|CLASS|CLOB|CLOSE|CLUSTERED|COALESCE|COLLATE|COLLATION|COLLECT|COLUMN|COMMIT|COMPLETION|COMPUTE|CONDITION|CONNECT|CONNECTION|CONSTRAINT|CONSTRAINTS|CONSTRUCTOR|CONTAINS|CONTAINSTABLE|CONTINUE|CORR|CORRESPONDING|COVAR_POP|COVAR_SAMP|CREATE|CROSS|CUBE|CUME_DIST|CURRENT|CURRENT_CATALOG|CURRENT_DATE|CURRENT_DEFAULT_TRANSFORM_GROUP|CURRENT_PATH|CURRENT_ROLE|CURRENT_SCHEMA|CURRENT_TIME|CURRENT_TRANSFORM_GROUP_FOR_TYPE|CYCLE|DATA|DATABASE|DBCC|DEALLOCATE|DEC|DECLARE|DEFAULT|DEFERRABLE|DEFERRED|DELETE|DENY|DEPTH|DEREF|DESC|DESCRIBE|DESCRIPTOR|DESTROY|DESTRUCTOR|DETERMINISTIC|DIAGNOSTICS|DICTIONARY|DISCONNECT|DISK|DISTINCT|DISTRIBUTED|DOMAIN|DOUBLE|DROP|DUMP|DYNAMIC|EACH|ELEMENT|ELSE|END|END-EXEC|EQUALS|ERRLVL|ESCAPE|EVERY|EXCEPT|EXCEPTION|EXEC|EXECUTE|EXISTS|EXIT|EXTERNAL|EXTRACT|FETCH|FILE|FILLFACTOR|FILTER|FIRST|FOR|FOREIGN|FORTRAN|FOUND|FREE|FREETEXT|FREETEXTTABLE|FROM|FULL|FULLTEXTTABLE|FUNCTION|FUSION|GENERAL|GET|GLOBAL|GO|GOTO|GRANT|GROUP|HAVING|HOLD|HOLDLOCK|HOST|HOUR|IDENTITY|IDENTITYCOL|IDENTITY_INSERT|IF|IGNORE|IMMEDIATE|IN|INCLUDE|INDEX|INDICATOR|INITIALIZE|INITIALLY|INNER|INOUT|INPUT|INSENSITIVE|INSERT|INTEGER|INTERSECT|INTERSECTION|INTERVAL|INTO|IS|ISOLATION|ITERATE|JOIN|KEY|KILL|LANGUAGE|LARGE|LAST|LATERAL|LEADING|LESS|LEVEL|LIKE|LIKE_REGEX|LIMIT|LINENO|LN|LOAD|LOCAL|LOCALTIME|LOCALTIMESTAMP|LOCATOR|MAP|MATCH|MEMBER|MERGE|METHOD|MINUTE|MOD|MODIFIES|MODIFY|MODULE|MULTISET|NAMES|NATIONAL|NATURAL|NCLOB|NEW|NEXT|NO|NOCHECK|NONCLUSTERED|NONE|NORMALIZE|NOT|NULL|NULLIF|OBJECT|OCCURRENCES_REGEX|OCTET_LENGTH|OF|OFF|OFFSETS|OLD|ON|ONLY|OPEN|OPERATION|OPTION|OR|ORDER|ORDINALITY|OUT|OUTER|OUTPUT|OVER|OVERLAPS|OVERLAY|PAD|PARAMETER|PARAMETERS|PARTIAL|PARTITION|PASCAL|PATH|PERCENT|PERCENTILE_CONT|PERCENTILE_DISC|PERCENT_RANK|PIVOT|PLAN|POSITION|POSITION_REGEX|POSTFIX|PRECISION|PREFIX|PREORDER|PREPARE|PRESERVE|PRIMARY|PRINT|PRIOR|PRIVILEGES|PROC|PROCEDURE|PUBLIC|RAISERROR|RANGE|READ|READS|READTEXT|RECONFIGURE|RECURSIVE|REF|REFERENCES|REFERENCING|REGR_AVGX|REGR_AVGY|REGR_COUNT|REGR_INTERCEPT|REGR_R2|REGR_SLOPE|REGR_SXX|REGR_SXY|REGR_SYY|RELATIVE|RELEASE|REPLICATION|RESTORE|RESTRICT|RESULT|RETURN|RETURNS|REVERT|REVOKE|ROLE|ROLLBACK|ROLLUP|ROUTINE|ROW|ROWCOUNT|ROWGUIDCOL|ROWS|RULE|SAVE|SAVEPOINT|SCHEMA|SCOPE|SCROLL|SEARCH|SECOND|SECTION|SECURITYAUDIT|SELECT|SEMANTICKEYPHRASETABLE|SEMANTICSIMILARITYDETAILSTABLE|SEMANTICSIMILARITYTABLE|SENSITIVE|SEQUENCE|SESSION|SET|SETS|SETUSER|SHUTDOWN|SIMILAR|SIZE|SOME|SPECIFIC|SPECIFICTYPE|SQL|SQLCA|SQLCODE|SQLERROR|SQLEXCEPTION|SQLSTATE|SQLWARNING|START|STATE|STATEMENT|STATIC|STATISTICS|STDDEV_POP|STDDEV_SAMP|STRUCTURE|SUBMULTISET|SUBSTRING_REGEX|SYMMETRIC|SYSTEM|TABLESAMPLE|TEMPORARY|TERMINATE|TEXTSIZE|THAN|THEN|TIMEZONE_HOUR|TIMEZONE_MINUTE|TO|TOP|TRAILING|TRAN|TRANSACTION|TRANSLATE|TRANSLATE_REGEX|TRANSLATION|TREAT|TRIGGER|TRIM|TRUNCATE|TSEQUAL|UESCAPE|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNPIVOT|UPDATE|UPDATETEXT|USAGE|USE|USER|USING|VALUE|VALUES|VARIABLE|VARYING|VAR_POP|VAR_SAMP|VIEW|WAITFOR|WHEN|WHENEVER|WHERE|WHILE|WIDTH_BUCKET|WINDOW|WITH|WITHIN|WITHIN GROUP|WITHOUT|WORK|WRITE|WRITETEXT|XMLAGG|XMLATTRIBUTES|XMLBINARY|XMLCAST|XMLCOMMENT|XMLCONCAT|XMLDOCUMENT|XMLELEMENT|XMLEXISTS|XMLFOREST|XMLITERATE|XMLNAMESPACES|XMLPARSE|XMLPI|XMLQUERY|XMLSERIALIZE|XMLTABLE|XMLTEXT|XMLVALIDATE|ZONE",r=(t=(t=(t=(t=(t=t+"|KEEPIDENTITY|KEEPDEFAULTS|IGNORE_CONSTRAINTS|IGNORE_TRIGGERS|XLOCK|FORCESCAN|FORCESEEK|HOLDLOCK|NOLOCK|NOWAIT|PAGLOCK|READCOMMITTED|READCOMMITTEDLOCK|READPAST|READUNCOMMITTED|REPEATABLEREAD|ROWLOCK|SERIALIZABLE|SNAPSHOT|SPATIAL_WINDOW_MAX_CELLS|TABLOCK|TABLOCKX|UPDLOCK|XLOCK|IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX|EXPAND|VIEWS|FAST|FORCE|KEEP|KEEPFIXED|MAXDOP|MAXRECURSION|OPTIMIZE|PARAMETERIZATION|SIMPLE|FORCED|RECOMPILE|ROBUST|PLAN|SPATIAL_WINDOW_MAX_CELLS|NOEXPAND|HINT"+"|LOOP|HASH|MERGE|REMOTE")+"|TRY|CATCH|THROW"+"|TYPE").split("|")).filter(function(e,t,r){return-1===o.split("|").indexOf(e)&&-1===i.split("|").indexOf(e)&&-1===n.split("|").indexOf(e)})).sort().join("|"),this.createKeywordMapper({"constant.language":o,"storage.type":n,"support.function":i,"support.storedprocedure":e,keyword:t},"identifier",!0)),a="SET ANSI_DEFAULTS|SET ANSI_NULLS|SET ANSI_NULL_DFLT_OFF|SET ANSI_NULL_DFLT_ON|SET ANSI_PADDING|SET ANSI_WARNINGS|SET ARITHABORT|SET ARITHIGNORE|SET CONCAT_NULL_YIELDS_NULL|SET CURSOR_CLOSE_ON_COMMIT|SET DATEFIRST|SET DATEFORMAT|SET DEADLOCK_PRIORITY|SET FIPS_FLAGGER|SET FMTONLY|SET FORCEPLAN|SET IDENTITY_INSERT|SET IMPLICIT_TRANSACTIONS|SET LANGUAGE|SET LOCK_TIMEOUT|SET NOCOUNT|SET NOEXEC|SET NUMERIC_ROUNDABORT|SET OFFSETS|SET PARSEONLY|SET QUERY_GOVERNOR_COST_LIMIT|SET QUOTED_IDENTIFIER|SET REMOTE_PROC_TRANSACTIONS|SET ROWCOUNT|SET SHOWPLAN_ALL|SET SHOWPLAN_TEXT|SET SHOWPLAN_XML|SET STATISTICS IO|SET STATISTICS PROFILE|SET STATISTICS TIME|SET STATISTICS XML|SET TEXTSIZE|SET XACT_ABORT".split("|"),s="READ UNCOMMITTED|READ COMMITTED|REPEATABLE READ|SNAPSHOP|SERIALIZABLE".split("|"),l=0;l<s.length;l++)a.push("SET TRANSACTION ISOLATION LEVEL "+s[l]);for(this.$rules={start:[{token:"string.start",regex:"'",next:[{token:"constant.language.escape",regex:/''/},{token:"string.end",next:"start",regex:"'"},{defaultToken:"string"}]},u.getStartRule("doc-start"),{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:r,regex:"@{0,2}[a-zA-Z_$][a-zA-Z0-9_$]*\\b(?!])"},{token:"constant.class",regex:"@@?[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|=|\\*"},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"punctuation",regex:",|;"},{token:"text",regex:"\\s+"}],comment:[u.getTagRule(),{token:"comment",regex:"\\*\\/",next:"no_regex"},{defaultToken:"comment",caseInsensitive:!0}]},l=0;l<a.length;l++)this.$rules.start.unshift({token:"set.statement",regex:a[l]});function c(e,t){e.forEach(function(e){d.push({name:e,value:e,score:0,meta:t})})}this.embedRules(u,"doc-",[u.getEndRule("start")]),this.normalizeRules();var d=[];c(e.split("|"),"procedure"),c(o.split("|"),"operator"),c(i.split("|"),"function"),c(n.split("|"),"type"),c(a,"statement"),c(t.split("|"),"keyword"),this.completions=d}var i=s.default.require("ace/lib/oop"),u=s.default.require("ace/mode/doc_comment_highlight_rules").DocCommentHighlightRules,n=s.default.require("ace/mode/text_highlight_rules").TextHighlightRules;i.inherits(o,n),t.SqlHighlightRules=o}),s.default.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/range"],function(e,t,r){function o(){this.HighlightRules=a}var i=s.default.require("ace/lib/oop"),n=s.default.require("ace/mode/text").Mode,a=s.default.require("ace/mode/sql_highlight_rules").SqlHighlightRules;s.default.require("ace/range").Range;i.inherits(o,n),function(){this.lineCommentStart="--",this.$id="ace/mode/sql"}.call(o.prototype),t.Mode=o}))},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerConfigureParametersPage=t.ConfigureQueryParametersPage=void 0,r(2)),s=r(3),l=r(12),c=r(49),d=r(13),u=r(0),p=r(6),f=r(7),m=r(1),y=r(5),r=r(9),h=(i=r.WizardPageBase,n(g,i),g.prototype._isParametersValid=function(){return this.getParameters().every(function(e){return e.isValid()})},g.prototype.canNext=function(){return!1},g.prototype.canFinish=function(){return this._isParametersValid()},g.prototype.getParameters=function(){return this.parametersEditorOptions.values()()},g.prototype.initialize=function(e){var t=this;return this._sqlDataSourceWrapper=l._restoreSqlDataSourceFromState(e,this._requestWrapper),this.parametersEditorOptions.hideButtons(this._sqlDataSourceWrapper.sqlQuery.type()===f.SqlQueryType.storedProcQuery),setTimeout(function(){t.parametersEditorOptions.values(a.observableArray(t._sqlDataSourceWrapper.sqlQuery.parameters().map(function(e){return t.parametersConverter.createParameterViewModel(e)})))},100),s.Deferred().resolve().promise()},g.prototype.commit=function(){var t=this;return this._sqlDataSourceWrapper.sqlQuery.parameters(this.parametersEditorOptions.values()().map(function(e){return t.parametersConverter.getParameterFromViewModel(e)})),s.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.save()}).promise()},g);function g(e,t){void 0===e&&(e={createParameterViewModel:function(e){return e},getParameterFromViewModel:function(e){return e}});var r=i.call(this)||this;return r.parametersConverter=e,r._requestWrapper=t,r._sqlDataSourceWrapper=new c._SqlDataSourceWrapper(void 0,void 0,r._requestWrapper),r.removeButtonTitle=m.getLocalization("Remove","DataAccessUIStringId.Button_Remove"),r.parametersEditorOptions={addHandler:function(){return r.parametersConverter.createParameterViewModel(new d.DataSourceParameter({"@Name":u.getUniqueNameForNamedObjectsArray(r.parametersEditorOptions.values.peek().peek(),"param"),"@Type":"System.Int32"}))},values:a.observable(a.observableArray([])),displayName:"Parameters",level:0,info:a.observable({displayName:"Parameters",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Parameters",propertyName:"parameters",modelName:"Parameter",array:!0,editor:p.editorTemplates.getEditor("commonCollection"),template:"#dxrd-parameter-collection-item"}),editorTemplate:"#dxrd-wizard-datasource-parameters",hideButtons:a.observable(!1),collapsed:!1},r}t.ConfigureQueryParametersPage=h,t._registerConfigureParametersPage=function(e,t,r){e.registerMetadata(y.SqlDataSourceWizardPageId.ConfigureParametersPage,{create:function(){return new h(r,t)},getState:function(e){return e.sqlDataSourceWizard},setState:function(e,t){return t.sqlDataSourceJSON=e.sqlDataSourceJSON},resetState:function(){},template:"dxrd-page-configure-parameters",description:m.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters")})}},function(e,t,r){"use strict";var o,s,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=(Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchemaItemsProvider=void 0,r(2)),c=r(3),d=r(0),u=r(22),p=r(1),f=r(108),r=r(1),r=(s=r.Disposable,i(n,s),n);function n(r,i,e,t,n){var a=s.call(this)||this;return a._callBack=l.observable({deleteAction:function(t){a._customQueries.remove(d.findFirstItemMatchesCondition(a._customQueries(),function(e){return(e.name()||e.generateName())===t}))},showQbCallBack:null,disableCustomSql:!1}),a._checkedRootNodesCount=l.pureComputed(function(){for(var e=0,t=0;t<a._rootItems.length&&e<2;t++)e+=a._rootItems[t].countChecked();return e}),a.hasCheckedItems=l.pureComputed(function(){return!(0===a._checkedRootNodesCount())}),a.nextButtonDisabled=l.pureComputed(function(){return!(1<a._checkedRootNodesCount())&&!a.hasParametersToEdit()}),a.hasParametersToEdit=l.pureComputed(function(){for(var e=0;e<a._rootItems.length;e++)if(a._rootItems[e].hasParamsToEdit&&a._rootItems[e].hasParamsToEdit())return!0;return!1}),a.tables=function(){return a._tables},a.views=function(){return a._views},a.procedures=function(){return a._procedures},a.queries=function(){return a._queries},a.customQueries=function(){return a._customQueries},a._callBack().showQbCallBack=e,a._callBack().disableCustomSql=t,a._tables=new u.TreeNode("tables",p.getLocalization("Tables","DataAccessStringId.ConfigureMultiQueryPage_TableCategory"),"list",!1,n),a._views=new u.TreeNode("views",p.getLocalization("Views","DataAccessStringId.ConfigureMultiQueryPage_ViewCategory"),"list",!1,n),a._procedures=new u.ParameterTreeNode("procedures",p.getLocalization("Stored Procedures","DataAccessStringId.ConfigureMultiQueryPage_SpCategory"),"list",!1,n),a._queries=new u.QueriesTreeNode("queries",p.getLocalization("Queries","DataAccessStringId.ConfigureMultiQueryPage_QueryCategory"),"list",!1,a._callBack,n),(e=a._disposables).push.apply(e,[a._tables,a._views,a._procedures,a._queries]),a._rootItems=[a._tables,a._views,a._procedures,a._queries],a.getItems=function(e){var t,o=c.Deferred();return e.fullPath?"tables"===e.fullPath?r.getDbSchema().done(function(e){var t;0===a._tables.children().length?(t=[],e.tables.forEach(function(e){e.isView||t.push(new u.TreeNode(e.name,e.name,"table",a._tables.checked.peek(),n))}),a._tables.initializeChildren(t),o.resolve(t)):o.resolve(a._tables.children())}).fail(o.reject):"views"===e.fullPath?r.getDbSchema().done(function(e){var t;0===a._views.children().length?(t=[],e.tables.forEach(function(e){e.isView&&t.push(new u.TreeNode(e.name,e.name,"view",a._views.checked.peek(),n))}),a._views.initializeChildren(t),o.resolve(t)):o.resolve(a._views.children())}).fail(o.reject):"procedures"===e.fullPath?r.getDbStoredProcedures().done(function(e){0===a._procedures.children().length?(e=e.map(function(e){e=new u.TreeLeafNode(e.name,f.StoredProceduresQueryControl.generateStoredProcedureDisplayName(e),"procedure",a._procedures.checked.peek(),e.arguments,n);return a._disposables.push(e),e}),a._procedures.initializeChildren(e),o.resolve(e)):o.resolve(a._procedures.children())}).fail(o.reject):"queries"===e.fullPath?(t=i().map(function(t){var e=t.name()||t.generateName(),r=a._queries.children().filter(function(e){return e.query===t})[0];if(r)return r;e=new u.TreeQueryNode(e,e,"query",!!r&&r.checked(),t.parameters,a._callBack,n,t);return a._disposables.push(e),e.setObservableName(l.computed({read:function(){return t.name()||t.generateName()},write:function(e){return t.name(e)}})),e}),a._queries.initializeChildren(t),o.resolve(t)):r.getDbTable(e.path).done(function(t){var e,r=t.isView?d.findFirstItemMatchesCondition(a._views.children(),function(e){return e.name===t.name}):d.findFirstItemMatchesCondition(a._tables.children(),function(e){return e.name===t.name});0===r.children().length?(e=t.columns.map(function(e){e=new u.TreeLeafNode(e.name,e.name,"column",r.checked.peek(),null,n);return a._disposables.push(e),e}),r.initializeChildren(e),o.resolve(e)):o.resolve(r.children())}).fail(o.reject):o.resolve(a._rootItems),o.promise()},a._customQueries=i,a}t.DBSchemaItemsProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWizard=void 0,r(2)),s=r(1),l=r(112),c=r(51),d=r(1),u=r(10),p=r(14),r=(i=s.Disposable,n(f,i),f.prototype._createLoadingState=function(e){var t=this;e[p.__loadingStateFunctionName]||(e[p.__loadingStateFunctionName]=function(e){return t._loadingState(e)})},f.prototype._createNextAction=function(e){var t=this;e[p.__nextActionFunctionName]||(e[p.__nextActionFunctionName]=function(){return t.nextAction()})},f.prototype._loadingState=function(e){var t=this;e?(this._loadingTimeout&&clearTimeout(this._loadingTimeout),this._loadingTimeout=setTimeout(function(){t.isLoading(!0)},100)):(this._loadingTimeout&&clearTimeout(this._loadingTimeout),this.isLoading(!1))},f.prototype._callBeforeFinishHandler=function(e,t){this.events.call("beforeFinish",{state:e})},f.prototype._callAfterFinishHandler=function(e,t){this.events.call("afterFinish",{state:e})},f.prototype.onFinish=function(){this.iterator.dispose()},f.prototype.initialize=function(e,t){void 0===t&&(t=function(e,t){return new c.PageIterator(e,t)}),this.events.call("beforeInitialize",{wizard:this,state:e=void 0===e?{}:e}),this.stateManager=new l.StateManager(e,this.pageFactory),this.iterator=t(this.pageFactory,this.stateManager),this.events.call("afterInitialize",{wizard:this})},f.prototype.isFirstPage=function(){return this._currentPage()&&this._currentPage().pageId==this.iterator.getNextPageId()},f.prototype.canNext=function(){return!this.isLoading()&&this._currentPage()&&this.pageFactory.getMetadata(this._currentPage().pageId).canNext(this._currentPage().page)},f.prototype.canFinish=function(){return!this.isLoading()&&this._currentPage()&&this.pageFactory.getMetadata(this._currentPage().pageId).canFinish(this._currentPage().page)},f.prototype._initPage=function(e){return this.events.call("beforePageInitialize",u._createBeforeInitializePageEventArgs(e,this)),this._createLoadingState(e.page),this._createNextAction(e.page),e.initialize(this.stateManager.getPageState(e.pageId))},f.prototype.start=function(){var e=this,t=(this.events.call("beforeStart",{wizard:this}),this._loadingState(!0),this.iterator._getStartPage());this._initPage(t).done(function(){e._currentPage(t),e.events.call("afterPageInitialize",u._createPageEventArgs(t,e))}).always(function(){return e._loadingState(!1)}).fail(function(){e.isVisible(!1)})},f.prototype.canRunWizard=function(){return!0},f.prototype.nextAction=function(){var t,r,o=this;this.canNext()&&(t=this.iterator._getCurrentPage(),this._loadingState(!0),r=function(){return o.iterator._getPreviousPage().always(function(){o.iterator._resetPages(),o._loadingState(!1)})},t.commit().done(function(e){t.isChanged&&o.stateManager.setPageState(t.pageId,e),o.iterator._getNextPage().done(function(e){e?o._initPage(e).done(function(){o._currentPage(e),o.events.call("afterPageInitialize",u._createPageEventArgs(e,o)),o._loadingState(!1)}).fail(r):r()}).fail(function(){return o._loadingState(!1)})}).fail(function(){return o._loadingState(!1)}))},f.prototype.previousAction=function(){var t=this;this.isFirstPage()||(this._loadingState(!0),this.iterator._getPreviousPage().done(function(e){e&&t._currentPage(e)}).always(function(){return t._loadingState(!1)}))},f.prototype.goToPage=function(e){var t=this;this._loadingState(!0),this.iterator._goToPage(e).done(function(e){e&&t._currentPage(e)}).always(function(){return t._loadingState(!1)})},f.prototype.finishAction=function(){var r,o=this;this.canFinish()&&(this._loadingState(!0),(r=this.iterator._getCurrentPage()).commit().done(function(e){var t;o.stateManager.setPageState(r.pageId,e),o.iterator._resetPages(),o._finishCallback?(t=o.stateManager.getCurrentState(),o._callBeforeFinishHandler(t),o._finishCallback(t).done(function(e){o.onFinish(),o._callAfterFinishHandler(t,e),o.isVisible(!1)}).always(function(){o._loadingState(!1)})):(o._loadingState(!1),o.isVisible(!1))}))},f);function f(e,t){var r=i.call(this)||this;return r.pageFactory=e,r.events=new d.EventManager,r._loadingTimeout=null,r.isLoading=a.observable(!1),r._currentPage=a.observable(),r.isVisible=a.observable(!1),r._finishCallback=t,r._disposables.push(r.events),r}t.BaseWizard=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ParametersTreeListController=t.ParametersTreeListRootItem=t.ParametersTreeListRootItemBase=t.ParametersTreeListItem=t.ParametersTreeListItemBase=void 0,r(2)),s=r(1),l=r(6),c=r(7),d=r(8),u=r(8),p=r(1),r=(i=s.Disposable,n(f,i),Object.defineProperty(f.prototype,"name",{get:function(){return this._name()},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"displayName",{get:function(){return this._displayName||this.name},enumerable:!1,configurable:!0}),f);function f(e){var t=i.call(this)||this;return t.editor=l.editorTemplates.getEditor("commonCollection"),t.isList=!1,t.contenttemplate="dx-treelist-accordion-contenttemplate-custom-with-actions",t.actionsTemplate="dx-treelist-item-actions",t.dataSourceParameter=a.observable(e),t._name=e.name,t._displayName=e.displayName,t}t.ParametersTreeListItemBase=r;n(h,m=r),h.prototype.query=function(){return this.parent.query()};var m,y=h;function h(e,t){e=m.call(this,e)||this;return e.parent=t,e}t.ParametersTreeListItem=y;g.prototype.removeChild=function(e){this.parameters.remove(e)};s=g;function g(e){this.isList=!0,this.specifics="List",this.visible=a.observable(!0),this.name=this.displayName=e,this.parameters=a.observableArray([])}t.ParametersTreeListRootItemBase=s;n(b,_=s),b.prototype.query=function(){return this._query};var _,r=b;function b(e){var t=_.call(this,e.name())||this;return t._query=e,t}t.ParametersTreeListRootItem=r;S=d.TreeListController,n(v,S),v.prototype.hasItems=function(e){return e.isList},v.prototype.getActions=function(e){var t,r,o=this,i=[];return e.data?e.data.query().type()===c.SqlQueryType.storedProcQuery?e.data.isList?[]:[u.treeListEditAction]:(e.data.isList?(t=e.data,i.push({clickAction:function(){return t.parameters.push(new y(o._createNewParameter(t.name,t.parameters()),t))},imageClassName:"dxrd-image-add",imageTemplateName:"dxrd-svg-operations-add",text:p.getLocalization("Add parameter","AnalyticsCoreStringId.FieldListActions_AddParameter")})):(r=e.data,i.push({clickAction:function(){r.parent.removeChild(r)},imageClassName:"dxrd-image-recycle-bin",imageTemplateName:"dxrd-svg-operations-recycle_bin",text:p.getLocalization("Remove parameter","DataAccessUIStringId.Button_Remove")}),i.push(u.treeListEditAction)),i):i},v.prototype.canSelect=function(e){return!0};var S,s=v;function v(e,t){var r=S.call(this)||this;return r._createNewParameter=t,r._rootItems=e,r}t.ParametersTreeListController=s},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailEditor=void 0,r(2)),s=r(3),l=r(1),c=r(0),d=r(0),u=r(0),p=r(162),f=r(0),m=r(163),r=r(8),r=(n=r.PopupEditorBase,i(y,n),y.prototype.title=function(){return l.getLocalization("Master-Detail Relation Editor",c.StringId.MasterDetailRelationsEditor)},y);function y(t,r,e){var o=n.call(this)||this,i=(o.isValid=a.observable(!0),o.loadPanelVisible=a.observable(!1),o.masterQueries=a.observableArray(),o.popupService=new d.PopupService,o.save=function(){t().some(function(e){return!e.detailQuery()||!e.masterQuery()||e.keyColumns().some(function(e){return!e.detailColumn()||!e.masterColumn()})})?u.ShowMessage(l.getLocalization("Some fields are empty. Please fill all empty fields or remove the corresponding conditions to proceed.","DataAccessUIStringId.JoinEditorFillAllFieldsException")):e().done(function(){o.popupVisible(!1)})},o.createRelation=function(t){var e=r.tables().filter(function(e){return e.tableName()!==t.queryName}).map(function(e){return{name:e.tableName()}});return{data:new p.MasterDetailEditorPopupManager(t,o.popupService,"create",e),templateName:"dx-filtereditor-create"}},o.setColumn=function(e){var t=f.getFirstItemByPropertyValue(r.tables(),"tableName",e.queryName);return{data:new p.MasterDetailEditorPopupManager(e,o.popupService,"setColumn",t?t.columns():[]),templateName:"dx-masterdetail-editor-setColumn"}},o._createMainPopupButtons(),{});return r.tables().forEach(function(e){i[e.tableName()]=new m.MasterQuerySurface(e.tableName(),t)}),t().forEach(function(e){i[e.masterQuery()]=i[e.masterQuery()]||new m.MasterQuerySurface(e.masterQuery(),t),i[e.masterQuery()].add(e)}),o.masterQueries(s.map(i,function(e){return e})),o}t.MasterDetailEditor=r},function(e,t,r){"use strict";function o(e,t,r,o){var i=this;this.showPopup=function(e,t){i._popupService.subscription&&i._popupService.subscription.dispose(),i._popupService.title(""),i._updateActions(i.target),i._popupService.target(t),i._popupService.visible(!0)},this.target=e,this._action=r,this._popupService=t,this._popupItems=o}Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailEditorPopupManager=void 0,o.prototype._updateActions=function(t){var r=this;this._popupService.subscription=this._popupService.visible.subscribe(function(e){r.target.isSelected&&r.target.isSelected(e)}),this._popupService.data({data:this._popupItems,template:"dx-filtereditor-popup-common",click:function(e){t[r._action](e),r._popupService.visible(!1)}})},t.MasterDetailEditorPopupManager=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MasterQuerySurface=void 0;var i=r(2),n=r(42),a=r(164),s=r(0),l=r(0);t.MasterQuerySurface=function(e,r){var o=this;this.relations=i.observableArray(),this.queryName=e,this.add=function(e){o.relations.push(new a.MasterDetailRelationSurface(e,o))},this.create=function(e){e=new n.MasterDetailRelation({"@Master":o.queryName,"@Detail":e.name});s.getFirstItemByPropertyValue(o.relations(),"relationName",e.name())&&e.name(l.getUniqueName(o.relations().map(function(e){return e.relationName()}),e.name()+"_")),e.createKeyColumn(),o.add(e),r.push(e)},this.remove=function(t){o.relations.remove(t),r.remove(function(e){return e.name===t.relationName})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailRelationSurface=void 0;var i=r(2),n=r(165);t.MasterDetailRelationSurface=function(r,e){var o=this;this.isEditable=i.observable(!1),this.relationName=r.name,this.keyColumns=i.pureComputed(function(){return r.keyColumns().map(function(e){return{master:new n.KeyColumnSurface(e.masterColumn,r.masterQuery(),!0),detail:new n.KeyColumnSurface(e.detailColumn,r.detailQuery(),!1)}})}),this.create=function(){r.createKeyColumn()},this.remove=function(t){r.keyColumns.remove(function(e){return e.masterColumn===t.master.column&&e.detailColumn===t.detail.column}),0===r.keyColumns().length&&e.remove(o)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyColumnSurface=void 0;var i=r(2),n=r(1);t.KeyColumnSurface=function(e,t,r){var o=this;this._isMaster=r=void 0===r?!1:r,this.getTitle=function(){return o._isMaster?n.getLocalization("Master Query","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_MasterQuery"):n.getLocalization("Detail Query","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_DetailQuery")},this.isSelected=i.observable(!1),this.selectColumnText=function(){return n.getLocalization("<Select a Column>","DataAccessUIStringId.JoinEditorEmptyColumnText")},this.column=e,this.queryName=t,this.setColumn=function(e){o.column(e.name())}}},function(e,t,r){"use strict";var o,l,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTreeNodeProvider=void 0,r(3)),d=r(2),u=r(22),n=r(107),p=r(0),f=r(118),m=r(47),y=r(0),h=r(46),g=r(1),r=(l=n.TreeNodeItemsProvider,i(a,l),a.prototype.isList=function(e,t){return!t.isListType&&l.prototype.isList.call(this,e,t)},a);function a(e,t,i,o,n){var a=l.call(this,e,t,function(e,t,r){return new _(e.name,e.displayName,e.specifics,e.isListType,t,r,n)},function(e,t,r){return new u.FieldTreeNode(e.name,e.displayName,e.specifics,t,r,n)})||this,s=(a._callBack=d.observable({deleteAction:function(t){a._customQueries.remove(p.findFirstItemMatchesCondition(a._customQueries(),function(e){return(e.alias()||e.generateName())===t}))},disableCustomSql:!1,showQbCallBack:null,showQbCallBacks:null}),a.getItems);return a._customQueries=o,a.getItems=function(e){var t,r=c.Deferred();return e.fullPath&&2<e.fullPath.split(".").length&&r.resolve([]),"queries"===e.fullPath?(t=o().map(function(t){var e,r=t.alias()||t.generateName(),o=a._queries.children().filter(function(e){return e.query===t})[0];if(o)return o;e=t instanceof m.UnionQuery?d.observable(y.extend(a._callBack(),{showQbCallBack:i.unionCallBack})):t instanceof h.TransformQuery?d.observable(y.extend(a._callBack(),{showQbCallBack:i.transformCallBack})):d.observable(y.extend(a._callBack(),{showQbCallBack:i.joinCallBack}));r=new u.TreeQueryNode(r,r,"query",!!o&&o.checked(),d.observableArray([]),e,n,t);return r.path="queries."+r.name,a._disposables.push(r),r}),a._queries.initializeChildren(t),r.resolve(t)):s(e,!0).done(function(e){return r.resolve(e)}),r.promise()},a._callBack().showQbCallBacks=i,a._disposables.push(a._queries=new f.FederatedQueriesTreeNode("queries",g.getLocalization("Federated Queries","DataAccessUIStringId.FederatedQueryCollectionList_Title"),"list",!1,a._callBack,n)),t.valueHasMutated(),a._rootItems.push(a._queries),a.dispose=function(){l.prototype.dispose.call(a),a.removeProperties()},a}t.FederationTreeNodeProvider=r;s=u.DataMemberTreeNode,i(b,s);var s,_=b;function b(e,t,r,o,i,n,a){e=s.call(this,e,t,r,i,n,a)||this;return e.isListType=o,e}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTransformQueryBuilderPopup=void 0,r(2)),s=r(0),l=r(1),c=r(71),d=r(0),u=r(46),p=r(27),f=r(1),m=r(168),y=r(120),h=r(0),r=(n=c.FederationQueryBuilderPopupBase,i(g,n),g.prototype._updateColumns=function(r,o){var i=this;this.transformSources(r.map(function(e){var t=!e.isList;return{columns:r,column:e.displayName,name:e.name,key:o+"."+e.name,alias:void 0,transform:{value:a.observable(t&&void 0),disabled:t,onValueChanged:function(){i.resultFieldListModel.valueHasMutated()}}}}))},g.prototype._aliasValidationCallback=function(t,e){var r=h.findFirstItemMatchesCondition(this.transformSources(),function(e){return e.alias===t});return!(!r||r.key!==e.key)||!r},g.prototype.dispose=function(){n.prototype.dispose.call(this),this.resultFieldListModel=null,this.transformGrid=null},g.prototype.addDataMember=function(e){this.currentPath(e.path),this.updateColumns(),this.transformSources.valueHasMutated()},g.prototype.updateColumns=function(){var t=this,r=this.currentPath();this._dataSource.fielListProvider.getItems(new l.PathRequest(this.currentPath())).done(function(e){t._updateColumns(e,r)})},g.prototype.canSave=function(){return this.transformSources().some(function(e){return e.transform.value()||e.alias})},g.prototype.save=function(){var t=this.transformQuery();t.root(new p.SourceQuery({},new f.ModelSerializer,this._dataSource.getQueryNameFromPath(this.currentPath()),this.currentPath())),t.transformationRules([]),this.transformSources().forEach(function(e){(e.transform.value()||e.alias)&&t.transformationRules.push(new u.FederationTransformationRule({"@Name":e.name,"@Alias":e.alias,"@Unfold":e.transform.value(),"@Flatten":e.transform.value()}))}),this.onSaveCallback(this.transformQuery()),this.close()},g.prototype.onHiding=function(){this.transformQuery(null),this.transformResultCollapsed(!1),this.currentPath(""),this.transformSources([])},g.prototype.show=function(t){var r,e,o,i=this;this.transformQuery(t),t.root&&t.root()&&(r=this._dataSource.getPathFromQueryName(t.root().sourceName()),this.currentPath(r),this._dataSource.fielListProvider.getItems(new l.PathRequest(r)).done(function(e){i._updateColumns(e,r),t.transformationRules().forEach(function(t){var e=i.transformSources().filter(function(e){return e.name===t.name()})[0];e.alias=t.alias(),e.transform.value(t.unfold())})})),this.currentPath()||(e=this._dataSource.dataSources()[0],o=e.ref||e.id,e.isListType?(this.currentPath(o),this.updateColumns()):this._dataSource.fielListProvider.getItems(new l.PathRequest(o)).done(function(e){i.currentPath(e[0]&&e[0].isListType?o+"."+e[0].name:o),i.updateColumns()})),this.popupVisible(!0)},g);function g(e,t,r){var o=n.call(this,e,t,r=void 0===r?!1:r)||this,e=(o.transformGridTitle=a.observable(),o.transformResultGridTitle=a.observable(),o.transformResultCollapsed=a.observable(!1),o.transformSources=a.observable([]),o.currentPath=a.observable(),o.transformQuery=a.observable(),o.popupContentTemplate="dxrd-querybuilder-transform-popup-content",o.transformGrid={rtlEnabled:r,noDataText:function(){return""},dataSource:o.transformSources,showRowLines:!0,paging:{enabled:!1},scrolling:{mode:"infinite"},editing:{allowUpdating:!0,mode:"cell"},height:"100%",columns:[{dataField:"column",get caption(){return s.getLocalization("Column Name","DataAccessUIStringId.QueryBuilderColumns_ColumnName")},allowEditing:!1},{dataField:"alias",get caption(){return s.getLocalization("Alias","DataAccessUIStringId.QueryBuilderColumns_Alias")},validationRules:[o._aliasValidationRule]},{type:"buttons",get caption(){return s.getLocalization("Transform","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_Transform")},buttons:[{template:function(e,t){var r=document.createElement("div");e.append(r),a.renderTemplate("dxrd-querybuilder-transform-checkbox",t.data,{},r,"replaceNode")}}]}],onRowUpdating:function(e){e.oldData.alias=e.newData.alias,o.resultFieldListModel.valueHasMutated(),o.transformSources.valueHasMutated()}},new m.TransformResultSchemaProvider(o._dataSource.dbSchemaProvider,o.transformSources,o.currentPath)),i=(o.resultFieldListModel=a.observable({itemsProvider:e,path:o.currentPath,selectedPath:a.observable(),treeListController:null}),new y.FederatedTransformQueryBuilderTreeListController(o.dragDropHandler,function(e){return i.isDraggable(e)&&o.addDataMember(e)}));return o.fieldListModel={itemsProvider:o._dataSource.dbSchemaProvider,treeListController:i,selectedPath:o.selectedPath,pageSize:100,expandRootItems:!0},o._disposables.push(o.currentPath.subscribe(function(e){o.selectedPath(e),o.transformGridTitle(d.formatUnicorn(s.getLocalization("Transformation node root: {0}","DataAccessUIStringId.FederationDataSourceQueryBuilder_TransformationNodeRoot"),o._dataSource.getQueryNameFromPath(e)))}),i,e,i),o.transformResultGridTitle(s.getLocalization("Transformation result","DataAccessUIStringId.FederationDataSourceQueryBuilder_TransformationResult")),o}t.FederationTransformQueryBuilderPopup=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransformResultSchemaProvider=void 0;var s=r(3),l=r(1),c=r(0);t.TransformResultSchemaProvider=function(n,a,e){var t=this;this.getItems=function(t){var i=s.Deferred();return!e()||t.fullPath.split(".").length>e().split(".").length?i.resolve([]).promise():(n.getItems(t).done(function(e){var o=[],r=[];e.forEach(function(t){var e=a().filter(function(e){return e.name==t.name})[0];c.isList(t)&&e&&e.transform.value()?r.push(e):(t.displayName=e&&e.alias||t.displayName,o.push(t))}),0===r.length?i.resolve(o):s.when.apply(s,r.map(function(r){return n.getItems(new l.PathRequest(t.fullPath+"."+r.name)).always(function(e){e.forEach(function(e){var t=(r.alias||r.column)+"_"+e.displayName;e.displayName=t,e.name=t}),i.resolve(e.concat(o))})}))}),i.promise())},this.dispose=function(){t.getItems=null,n=null}}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationUnionQueryBuilderPopup=void 0,r(2)),s=r(0),l=r(47),c=r(6),d=r(1),u=r(71),p=r(0),r=(n=u.FederationQueryBuilderPopupBase,i(f,n),f.prototype._aliasValidationCallback=function(t,e){var r=p.findFirstItemMatchesCondition(this.columns(),function(e){return e.alias===t});return!(!r||r.key!==e.key)||!r},f.prototype.dispose=function(){n.prototype.dispose.call(this),this.sourcesGrid=null,this.aliasGrid=null},f.prototype.addDataMember=function(t){var r=this;this._dataSource.fielListProvider.getItems(new d.PathRequest(t.path)).done(function(e){e.forEach(function(e){return r.unionQuery().addSelectQuery(t.path,e.name)}),r.unionQuery.valueHasMutated()})},f.prototype.canSave=function(){return this.unionQuery()&&0<this.unionQuery().queries().length},f.prototype.save=function(){var r=this;this.unionQuery().queries().forEach(function(e){e.expressions(e.expressions().filter(function(t){var e=r.columns().filter(function(e){return e.name===t.name()})[0];return!!e&&(t.alias(e.alias),!0)}))}),this.onSaveCallback(this.unionQuery()),this.close()},f.prototype.onHiding=function(){this.unionQuery(null),this.unionAll(!1)},f.prototype.show=function(e){this.unionQuery(e),this.popupVisible(!0),this.unionAll(e.unionType()===l.UnionTypes[l.UnionTypes.UnionAll])},f);function f(e,t,r){var i=n.call(this,e,t,r=void 0===r?!1:r)||this,e=(i.unionQuery=a.observable(),i.unionAll=a.observable(!1),i.columns=a.observableArray(),i.popupContentTemplate="dxrd-querybuilder-union-popup-content",i.buttonItems.push({toolbar:"bottom",location:"before",widget:"dxCheckBox",options:{text:s.getLocalization("Union All","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_UnionAll"),value:i.unionAll}}),a.pureComputed(function(){return i.unionQuery()&&i.unionQuery().queries().map(function(e){e=e.alias.peek();return{source:e.split("_").join(" - "),name:e}})}));return i._disposables.push(e),i.sourcesGrid={rtlEnabled:r,noDataText:function(){return s.getLocalization("Drop a table or view here to create a query.","AnalyticsCoreStringId.QueryBuilder_SurfacePlaceholder")},dataSource:e,showRowLines:!0,paging:{enabled:!1},scrolling:{mode:"infinite"},columns:[{dataField:"source",get caption(){return s.getLocalization("Source","DataAccessUIStringId.QueryBuilderColumns_Source")}},{type:"buttons",width:30,buttons:[{icon:"delete",onClick:function(e){i.unionQuery().removeQuery(e.row.data.name),i.unionQuery.valueHasMutated()},cssClass:"dxrd-image-recycle-bin",template:c.getTemplate("dxrd-svg-operations-recycle_bin")}]}]},i._disposables.push(i.unionQuery.subscribe(function(e){var r=[],o=[];i.columns([]),e&&0!==e.queries().length&&(e.queries().forEach(function(e){return r.push(e.expressions())}),r[0]&&r[0].forEach(function(t){r.every(function(e){return!!e.filter(function(e){return e.name()===t.name()})[0]})&&o.push({name:t.name(),alias:t.alias(),key:t.table()+"."+t.name()})}),i.columns(o))})),i._disposables.push(i.unionAll.subscribe(function(e){i.unionQuery()&&(e?i.unionQuery().unionType(l.UnionTypes[l.UnionTypes.UnionAll]):i.unionQuery().unionType(l.UnionTypes[l.UnionTypes.Union]))})),i.aliasGrid={rtlEnabled:r,dataSource:i.columns,showRowLines:!0,editing:{allowUpdating:!0,mode:"cell"},paging:{enabled:!1},scrolling:{mode:"infinite"},height:"100%",columns:[{dataField:"name",caption:"Column Name",allowEditing:!1},{dataField:"alias",get caption(){return s.getLocalization("Alias","DataAccessUIStringId.QueryBuilderColumns_Alias")},validationRules:[i._aliasValidationRule]}],onRowUpdating:function(e){e.oldData.alias=e.newData.alias}},i}t.FederationUnionQueryBuilderPopup=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationSelectQueryBuilderPopup=void 0,r(2)),l=r(3),n=r(71),c=r(1),d=r(121),u=r(0),p=r(21),f=r(0),m=r(6),y=r(73),h=r(0),g=r(74),_=r(34),b=r(35),S=r(180),v=r(20),P=r(0),x=r(8),C=r(8),r=(a=n.FederationQueryBuilderPopupBase,i(T,a),T.prototype._onContentReady=function(e){e.component._isFirstLoad||(e.component._isFirstLoad=!0,l(e.component.content())[0].parentElement.className+=" dx-dropdowneditor-overlay")},T.prototype._getQuery=function(){return this.designer()&&this.designer().model()},T.prototype._afterChangeColumn=function(r,e){var o=this;this._gridComponent.saveEditData().then(function(){o._gridComponent.cancelEditData();function t(){var e=o._gridComponent.getVisibleRows(),e=null!=r?r:e.length-1;o._gridComponent.editCell(e,0),o._gridComponent.navigateToRow(o.columnsExpressions()[e]),o._gridComponent.off("contentReady",t)}o._gridComponent.on("contentReady",t),e()})},T.prototype._changeColumn=function(e,t){var r,o=this;e&&(r=y.ColumnExpressionCollectionHelper.createNew(this._getQuery(),this._getQuery().columns,e.table,e.column),this._isSelectAllItemByKey(e.key)&&(r=e.table?new _.ColumnExpression({"@Table":e.table,"@ItemType":b.ColumnType[b.ColumnType.AllColumns]},this._getQuery()):new _.ColumnExpression({"@ItemType":b.ColumnType[b.ColumnType.AllColumnsQuery]},this._getQuery())),this._afterChangeColumn(t,function(){return null!=t?o._getQuery().columns.splice(t,1,r):o._getQuery().columns.push(r)}))},T.prototype._switchEditors=function(e){var t,r,o=this,i=function(){return o._getQuery().columns.notifySubscribers()};null!=e.index?(r=this._getQuery().columns()[e.index],e.isExpression()?r.toTable():r.itemType()===b.ColumnType[b.ColumnType.AllColumns]||r.itemType()===b.ColumnType[b.ColumnType.AllColumnsQuery]?(r=new _.ColumnExpression({},this._getQuery()),y.ColumnExpressionCollectionHelper.toExpresson(r,this._getQuery().columns,""),this._getQuery().columns.splice(e.index,1,r)):(t=r.column()?"["+r.table()+"."+r.column()+"]":"",y.ColumnExpressionCollectionHelper.toExpresson(r,this._getQuery().columns,t))):(r=new _.ColumnExpression({},this._getQuery()),y.ColumnExpressionCollectionHelper.toExpresson(r,this._getQuery().columns,""),i=function(){return o._getQuery().columns.push(r)}),this._afterChangeColumn(e.index,i)},T.prototype._deleteRow=function(e){this._gridComponent.deleteRow(e),this._gridComponent.deselectAll(),this._getQuery().columns.splice(e,1)},T.prototype._onRowUpdating=function(e,t){var r=this._getQuery().columns()[e.index];r&&r.alias(t.alias),e.alias=t.alias,this._gridComponent.saveEditData()},T.prototype._aliasValidationCallback=function(e,t){return e===t.alias&&e===t.key||!y.ColumnExpressionCollectionHelper.findByName(this._getQuery().columns,e)},T.prototype.dispose=function(){a.prototype.dispose.call(this),this._bindingContext=null,this._gridComponent=null,this._qbOptions=null,this.queryBuilderSurfaceCreator=null,this.columnsGrid=null},T.prototype._generateKey=function(e,t,r,o){return o===r?r:e+"_"+t},T.prototype._isSelectAllItemByKey=function(e){return e===v.FederatedQueryExpressionType[v.FederatedQueryExpressionType.SelectAllColumnsExpression]||-1!==e.indexOf(v.FederatedQueryExpressionType[v.FederatedQueryExpressionType.SelectAllNodeColumnsExpression])},T.prototype.save=function(){this.selectQuery.init(this._getQuery().serialize()),this.onSaveCallback(this.selectQuery),this.close()},T.prototype.addRow=function(){this._gridComponent.addRow(),this._gridComponent.deselectAll()},T.prototype.canSave=function(){return this._getQuery()&&this._getQuery().isValid()},T.prototype.addDataMember=function(e,t){var r=this._getQuery(),o=e.data.displayName||e.data.name,i=r.createChild(u.extend({"@ControlType":"FTable","@Name":o},p.controlsFactory.controlsMap.FTable.defaultVal),void 0,e.path),o=s.unwrap(f.findSurface(i));t?((e=s.unwrap(f.findSurface(this.designer()))).underCursor().x=t.left-e.absolutePosition.x(),e.underCursor().y=t.top-e.absolutePosition.y(),o.rect({left:e.underCursor().x,top:e.underCursor().y,width:199})):(t=Math.max.apply(null,r.tables.peek().filter(function(e){return e!==i}).map(function(e){return e.location.x.peek()+1.25*e.size.width.peek()}).concat([30])),i.location.x(t),i.location.y(20)),this.designer().selection.initialize(o)},T.prototype.close=function(){this.popupVisible(!1)},T.prototype.show=function(e){this.selectQuery=e,this._querySource((new c.ModelSerializer).serialize(e)),this.popupVisible(!0)},T.prototype.popupTarget=function(){return".dxrd-select-querybuilder-surface .dxqb-main"},T);function T(e,t,r){var i=a.call(this,e,t,r=void 0===r?!1:r)||this,n=(i.popupContentTemplate="dxrd-querybuilder-select-popup-content",i._querySource=s.observable(null),i.designer=s.observable(null),i.joinResultCollapsed=s.observable(!1),i.width="90%",i.height="90%",i.cssClass="dxrd-querybuilder-federation-popup-wrapper dxrd-querybuilder-select-federation-popup",i._qbOptions={queryBuilderModel:i.designer,dataSource:t,dbSchemaProvider:s.observable(t.dbSchemaProvider),showPropertyGridCondition:function(e){return"JoinCondition"===e.controlType||"FTable"===e.controlType||"Column"===e.controlType},querySource:i._querySource},[{name:"DataSource",needPrefix:!(i.queryBuilderSurfaceCreator={options:i._qbOptions,creator:function(e){return new d.FederationQueryViewModel(e.querySource(),e.dataSource,e.dbSchemaProvider(),e.parametersMode,new c.ModelSerializer)}}),rootPath:"Root"}]),o=(i.allColumns=s.pureComputed(function(){var t,r=[];return i._getQuery()&&(t="",r.push({column:g.AllColumnsViewModel.DisplayName(),table:t,key:v.FederatedQueryExpressionType[v.FederatedQueryExpressionType.SelectAllColumnsExpression]}),i._getQuery().getAllColumns().map(function(e){var t=e.parentModel();return{column:e.name(),table:t.actualName(),key:i._generateKey(t.actualName(),e.name(),e.actualName(),e.alias())}}).forEach(function(e){e.table&&t!==e.table&&r.push({column:g.AllColumnsViewModel.DisplayName(),table:e.table,key:e.table+"_"+v.FederatedQueryExpressionType[v.FederatedQueryExpressionType.SelectAllNodeColumnsExpression]}),t=e.table,r.push(e)})),r}),i.columnsExpressions=s.pureComputed(function(){return i._getQuery()&&i._getQuery().columns().map(function(e,t){var r,o;return e.actualName()&&(r=i._generateKey(e.table(),e.column(),e.actualName(),e.alias())),e.itemType()===b.ColumnType[b.ColumnType.Column]?o=e.column():e.itemType()===b.ColumnType[b.ColumnType.Expression]?o=e.expression():e.itemType()===b.ColumnType[b.ColumnType.AllColumns]?(r=e.table()+"_"+v.FederatedQueryExpressionType[v.FederatedQueryExpressionType.SelectAllNodeColumnsExpression],o=g.AllColumnsViewModel.DisplayName()):e.itemType()===b.ColumnType[b.ColumnType.AllColumnsQuery]&&(r=v.FederatedQueryExpressionType[v.FederatedQueryExpressionType.SelectAllColumnsExpression],o=g.AllColumnsViewModel.DisplayName()),{alias:e.alias(),key:r,index:t,column:o,table:e.table(),isExpression:s.observable(e.itemType()===b.ColumnType[b.ColumnType.Expression]),expression:e.expression}})}),i._disposables.push(i.columnsExpressions,i.allColumns),function(e,t){var r=l(e),t=i._bindingContext.createChildContext({allColumns:i.allColumns,itemsProvider:new S.FederationTablesExpressionFieldListProvider(i._dataSource.dbSchemaProvider,i._getQuery().tables),cellInfo:t.data,expression:{value:t.data.expression,onContentReady:i._onContentReady,path:s.observable(n[0].name),customizeCategories:function(){},rootItems:n,functions:C.functionDisplay().filter(function(e){return"Aggregate"!=e.category})},isExpression:t.data.isExpression||s.observable(!1),changeColumn:function(e){i._changeColumn(e.selectedRowsData[0],e.model.cellInfo.index)},switchEditors:function(e){i._switchEditors(e.model.cellInfo)}}),o=document.createElement("div"),r=r.append(o);s.renderTemplate("dxrd-querybuilder-column-combobox",t,{},o,"replaceNode"),P.addDisposeCallback(e,function(){r=null})});return i._disposables.push(i.addRowDisabled=s.pureComputed(function(){return!i._getQuery()||0===i._getQuery().tables().length})),i.columnsGrid={rtlEnabled:r,dataSource:i.columnsExpressions,disabled:i.addRowDisabled,showRowLines:!0,height:"100%",showBorders:!0,editing:{allowUpdating:function(e){return!(e.row&&e.row.data.key&&i._isSelectAllItemByKey(e.row.data.key))},newRowPosition:"last",mode:"cell",texts:{confirmDeleteMessage:""}},paging:{enabled:!1},columns:[{dataField:"column",get caption(){return h.getLocalization("Column Name","DataAccessUIStringId.QueryBuilderColumns_ColumnName")},cssClass:"dx-editor-cell",editCellTemplate:o,cellTemplate:function(e,t){if(t.data.key&&i._isSelectAllItemByKey(t.data.key))return o(e,t);var r=m.getTemplate("dxrd-querybuilder-column-combobox-masked"),e=l(e).append(r),r={cellInfo:t.data,isExpression:t.data.isExpression||s.observable(!1),switchEditors:function(){return null}};s.applyBindings(r,e[0])}},{dataField:"table",get caption(){return h.getLocalization("Table Name","DataAccessUIStringId.QueryBuilderColumns_TableName")},allowEditing:!1},{dataField:"alias",get caption(){return h.getLocalization("Alias","DataAccessUIStringId.QueryBuilderColumns_Alias")},disabled:!0,validationRules:[i._aliasValidationRule,{type:"custom",validationCallback:function(e){if(""===e.value&&e.data&&e.data.key){e=y.ColumnExpressionCollectionHelper.findByName(i._getQuery().columns,e.data.key);if(e&&e.itemType()===b.ColumnType[b.ColumnType.Expression])return!1}return!0},get message(){return h.getLocalization("The column name is not specified.","DataAccessStringId.UnnamedColumnValidationException")}}]},{type:"buttons",width:50,buttons:[{icon:"delete",onClick:function(e){i._deleteRow(null!=e.row.data.index?e.row.data.index:i._getQuery().columns().length)},cssClass:"dxrd-querybuilder-grid-actions dxd-icon-highlighted dxrd-image-recycle-bin",template:m.getTemplate("dxrd-svg-operations-recycle_bin")}]}],onInitialized:function(e){i._bindingContext=s.contextFor(l(e.element)[0]),i._gridComponent=e.component},onRowUpdating:function(e){i._onRowUpdating(e.oldData,e.newData)}},i.gridResizeHelper=new x.ResizeHelper(i.resultGridHeight,i.joinResultCollapsed),i}t.FederationSelectQueryBuilderPopup=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allColumnsSerializationInfo=void 0;r=r(15);t.allColumnsSerializationInfo=[r.name,r.selected]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.QBFilterStringOptions=void 0,r(2)),a=r(6),l=r(173),c=r(37),d=r(29),r=(i=a.FilterStringOptions,n(u,i),u.prototype.initializeFilterStringHelper=function(r,o,e){var i,n=this,a=new l.QBFilterEditorHelperDefault(o);a.canChoiceParameters=o!==c.ParametersMode.Disabled,e&&(a.serializer=e),o===c.ParametersMode.ReadWrite?(a.parameters=s.computed(function(){return[].concat(r(),a.newParameters())}),a.onSave=function(e){var t=a.newParameters();r.push.apply(r,t),a.newParameters([])}):(o===c.ParametersMode.Read&&(a.parameters=r),i=a.criteriaTreeValidator._checkRightPart,a.criteriaTreeValidator._checkRightPart=function(e){return e instanceof d.OperandParameter?o!==c.ParametersMode.Disabled&&(o===c.ParametersMode.Read?(t=e.parameterName,0!==r.peek().filter(function(e){return e.name()===t}).length):void 0):i.apply(n,[e]);var t}),this.helper=a},u);function u(e,t,r,o){return i.call(this,e,t,r,o)||this}t.QBFilterStringOptions=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t._setQBFilterEditorHelperDefault=t.QBFilterEditorHelperDefault=t.QBFilterEditorHelper=void 0,r(2)),l=r(3),a=r(6),c=r(8),d=r(174),u=r(175),p=r(37),f=r(29),m=r(30),r=(i=a.FilterEditorHelper,n(y,i),y);function y(e){var a=i.call(this)||this;return a.handlers.changeParameter=function(e,t){return{data:new c.FilterEditorAddOn(e,t,"changeParameter","items","dxqb-filtereditor-parameterspopup"),templateName:"dxqb-filtereditor-changeparameter"}},a.mapper.parameter=d.OperandParameterQBSurface,a.mapper.property=u.OperandPropertyQBSurface,e===p.ParametersMode.ReadWrite&&(a.canCreateParameters=!0,a.newParameters=s.observableArray([]),a.onEditorFocusOut=function(e){if(e){var r=a.newParameters(),o=[];if(m.criteriaForEach(e,function(t){var e;t instanceof f.OperandParameter&&((e=r.filter(function(e){return e.name()===t.parameterName})[0])&&o.push(e))}),0===o.length)a.newParameters.splice(0);else{for(var t=r.filter(function(e){return-1===o.indexOf(e)}),i=0;i<t.length;i++){var n=r.indexOf(t[i]);-1!==n&&r.splice(n,1)}a.newParameters.valueHasMutated()}}},a.onClosing=function(){a.newParameters([])}),a.canSelectLists=!1,a.getDisplayPropertyName=function(){return l.Deferred().resolve("").promise()},a}t.QBFilterEditorHelper=r,t.QBFilterEditorHelperDefault=r,t._setQBFilterEditorHelperDefault=function(e){t.QBFilterEditorHelperDefault=e}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.OperandParameterQBSurface=void 0,r(2)),s=r(211),l=r(1),c=r(75),r=(n=s.OperandParameterSurface,i(d,n),Object.defineProperty(d.prototype,"_parameterType",{get:function(){return this.fieldsOptions()&&this.fieldsOptions().selected()&&this.fieldsOptions().selected().dataType||"System.String"},enumerable:!1,configurable:!0}),d.prototype._createParameter=function(t,e){""!==t&&t!==d.defaultDisplay()&&0===this.helper.parameters().filter(function(e){return e.name()===t}).length&&(e=new c.ParameterViewModel({"@Name":t,"@Type":e}),this.helper.newParameters.push(e))},d.prototype.isDefaultTextDisplayed=function(){return this.parameterName()===d.defaultDisplay()},d.defaultDisplay=function(){return l.getLocalization("Create new parameter","AnalyticsCoreStringId.FilterEditor_Operand_CreateNewParameter")},d);function d(e,t,r,o){var i=n.call(this,e,t,r,o)||this;return i.createParameter=function(){i.canCreateParameters&&(i.model.parameterName=i.parameterName(),i._createParameter(i.parameterName(),i._parameterType),i.helper.onChange())},i._parameterName=a.observable(""),i.isEditable=a.observable(!1),i.defaultDisplay=d.defaultDisplay,i._parameterName(a.unwrap(e.parameterName)),i.canCreateParameters=i.helper.canCreateParameters,i.fieldsOptions=t.leftPart.fieldsOptions,i.parameterName=a.pureComputed({read:function(){return i._parameterName()||i.canCreateParameters&&d.defaultDisplay()||""},write:function(e){e!==d.defaultDisplay()&&e&&(i.model.parameterName=a.unwrap(e),i._parameterName(i.model.parameterName))}}),!i.canCreateParameters||i.isDefaultTextDisplayed()||a.unwrap(i.fieldListProvider).hasParameter(e.parameterName)||i.createParameter(),i}t.OperandParameterQBSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.OperandPropertyQBSurface=void 0,r(2)),r=r(211),r=(i=r.OperandPropertySurface,n(s,i),s.prototype._updateSpecifics=function(){s.updateSpecifics(this)},s.updateSpecifics=function(e){var t=a.unwrap(e.fieldListProvider);t&&t.getColumnInfo&&((t=t.getColumnInfo(e.propertyName()))&&(e.specifics(t.specifics.toLowerCase()),e.dataType(t.dataType),(e=a.unwrap(e.fieldsOptions))&&e.selected(t)))},s);function s(e,t,r,o){return i.call(this,e,t,r,o)||this}t.OperandPropertyQBSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.GroupFilterEditorSerializer=void 0,r(8)),s=r(0),l=r(55),c=r(29),d=r(30),u=r(30),r=(i=a.FilterEditorSerializer,n(p,i),p.prototype._columnDisplayName=function(e){return e.table()+"."+e.actualName()},p.prototype._findAggregatedColumn=function(t){return s.find(this._columns(),function(e){return l.isAggregatedExpression(e)&&t(e)})},p.prototype.serializeOperandProperty=function(t){var r=this,e=this._findAggregatedColumn(function(e){return t.propertyName===r._columnDisplayName(e)});return"["+(e?e.actualName():t.propertyName)+"]"},p.prototype.deserialize=function(e){var t=this,e=u.CriteriaOperatorStateMachine.parse(e);return e&&d.criteriaForEach(e,function(e){e instanceof c.OperandProperty&&(e.propertyName=t._aggregatePropertyName(e))}),i.prototype.deserializeOperand.call(this,e)},p);function p(e){var r=i.call(this)||this;return r._columns=e,r._aggregatePropertyName=function(t){var e=r._findAggregatedColumn(function(e){return e.actualName()===t.propertyName});return e?r._columnDisplayName(e):t.propertyName},r}t.GroupFilterEditorSerializer=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryElementBaseSurface=void 0,r(2)),s=r(4),l=r(0),r=(i=s.SurfaceElementBase,n(c,i),c._unitProperties={_height:function(e){return e.size.height},_width:function(e){return e.size.width},_x:function(e){return e.location.x},_y:function(e){return e.location.y}},c);function c(e,t,r){e=i.call(this,e,t,l.extend({},c._unitProperties,r))||this;return e.template="dx-diagram-element",e.selectiontemplate="dx-diagram-element-selection",e.contenttemplate="dx-diagram-element-content",e.margin=a.observable(0),e}t.QueryElementBaseSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.AllColumnsSurface=void 0,r(2)),s=r(4),l=r(0),r=(i=s.SurfaceElementBase,n(c,i),c);function c(e,t){var r=i.call(this,e,t,null)||this;return r.template="dxqb-table-asterisk-field",r.toggleSelected=function(){r.getControlModel().selected(!r.getControlModel().selected())},r.selectedWrapper=a.pureComputed(function(){return r.getControlModel().selected()}),r.isOverAsterisk=a.pureComputed(function(){return r.underCursor().isOver&&!l.DragDropHandler.started()}),r.cssClasses=function(){return{"dxd-state-active":r.selected,"dxd-state-hovered":r.isOverAsterisk()}},r}t.AllColumnsSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationAllColumnsViewModel=t.FederationColumnViewModel=void 0,r(20)),s=r(15),l=r(74),r=r(72),r=(i=r.ColumnViewModel,n(c,i),c.prototype.getInfo=function(){return a.expressionSerializationInfo},c);function c(e,t,r,o){return i.call(this,e,t,r,o)||this}t.FederationColumnViewModel=r;d=l.AllColumnsViewModel,n(u,d),u.prototype.getInfo=function(){return[s.name]};var d,r=u;function u(e,t){return d.call(this,e,t)||this}t.FederationAllColumnsViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTablesExpressionFieldListProvider=void 0;var o=r(3),i=r(0),n=r(1);function a(e,t){this.provider=e,this.tables=t}a.prototype.getItems=function(e){var t,r=o.Deferred();return""===e.path?r.resolve(this.tables().map(function(e){return{name:e.actualName(),displayName:e.actualName(),isList:!0,specifics:"List",dragData:{noDragable:!1}}})):((t=e.fullPath.split(".")).shift(),(e=i.findFirstItemMatchesCondition(this.tables(),function(e){return e.actualName()===t.join(".")}))&&this.provider.getItems(new n.PathRequest(e.path)).done(function(e){return r.resolve(e)})),r.promise()},t.FederationTablesExpressionFieldListProvider=a},function(e,t,r){"use strict";function o(e){this._rootItems=e}Object.defineProperty(t,"__esModule",{value:!0}),t.FederationDataSourceItemsExtender=void 0,o.prototype.afterItemsFilled=function(e,t){t.forEach(function(e){void 0===e.isListType&&(e.isListType="List"===e.specifics)})},o.prototype.beforeItemsFilled=function(e,t){return!e.fullPath&&(t.push.apply(t,this._rootItems().map(function(e){return{name:e.id||e.ref,displayName:e.name,isList:!0,specifics:e.specifics||"ListSource",isSupportQueries:e.isSupportQueries,isListType:e.isListType}})),!0)},t.FederationDataSourceItemsExtender=o},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t._createDataSourceWizard=t._registerDataSourceWizardPages=t.DataSourceWizard=t.DataSourceWizardPageIterator=t.DataSourceWizardSettings=t._DataSourceWizardOptions=t._DataSourceWizardOptionsBase=void 0,r(2)),a=r(51),s=r(56),l=r(5),c=r(48),d=r(33),u=r(0),p=r(1),f=r(50),m=r(68),y=r(69),h=r(101),g=r(154),_=r(67),b=r(157),r=(Object.defineProperty(S.prototype,"jsonDataSourceAvailable",{get:function(){return this.wizardSettings.enableJsonDataSource&&(this.allowCreateNewJsonConnection||0<(n.unwrap(this.connectionStrings.json)||[]).length)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"sqlDataSourceAvailable",{get:function(){return this.wizardSettings.enableSqlDataSource&&0<(n.unwrap(this.connectionStrings.sql)||[]).length},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"objectDataSourceAvailable",{get:function(){return this.wizardSettings.enableObjectDataSource},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"canCreateDataSource",{get:function(){return this.jsonDataSourceAvailable||this.sqlDataSourceAvailable||this.objectDataSourceAvailable},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"federationDataSourceAvailable",{get:function(){return this.wizardSettings.enableFederationDataSource&&this.dataSources&&this.dataSources()&&0<this.dataSources().length},enumerable:!1,configurable:!0}),S);function S(){this.connectionStrings={json:n.observableArray([]),sql:n.observableArray([])},this.callbacks={},this.rtl=!1,this.disableCustomSql=!1,this.wizardSettings=(new x).createDefault(),this.allowCreateNewJsonConnection=!1}t._DataSourceWizardOptionsBase=r;i(P,v=r);var v,r=P;function P(){return null!==v&&v.apply(this,arguments)||this}t._DataSourceWizardOptions=r;C.prototype.createDefault=function(e){var t={enableJsonDataSource:!0,enableSqlDataSource:!0,enableObjectDataSource:!0,enableFederationDataSource:!0};return e&&(void 0!==e.enableJsonDataSource&&(t.enableJsonDataSource=e.enableJsonDataSource),void 0!==e.enableSqlDataSource&&(t.enableSqlDataSource=e.enableSqlDataSource),null!=e.enableObjectDataSource&&(t.enableObjectDataSource=e.enableObjectDataSource),null!=e.enableFederationDataSource&&(t.enableFederationDataSource=e.enableFederationDataSource)),t};var x=C;function C(){}t.DataSourceWizardSettings=x;T=a.PageIterator,i(O,T),O.prototype.getNextPageId=function(e){return!e&&this._dataSourceWizardOptions.jsonDataSourceAvailable&&this._dataSourceWizardOptions.sqlDataSourceAvailable?l.DataSourceWizardPageId.ChooseDataSourceTypePage:e?e===l.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===c.DataSourceType.Sql?l.SqlDataSourceWizardPageId.ChooseConnectionPage:e===l.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===c.DataSourceType.Federation?l.FederationDataSourceWizardPageId.FederatedQueryConfigurePage:e===l.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===c.DataSourceType.Json&&0<this._dataSourceWizardOptions.connectionStrings.json().length?l.JsonDataSourceWizardPageId.ChooseConnectionPage:this._dataSourceWizardOptions.allowCreateNewJsonConnection&&e===l.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===c.DataSourceType.Json?l.JsonDataSourceWizardPageId.ChooseJsonSourcePage:e===l.JsonDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().jsonDataSourceWizard.connectionName?l.JsonDataSourceWizardPageId.ChooseJsonSchemaPage:this._dataSourceWizardOptions.allowCreateNewJsonConnection&&e===l.JsonDataSourceWizardPageId.ChooseConnectionPage&&!this._getCurrentState().jsonDataSourceWizard.connectionName?l.JsonDataSourceWizardPageId.ChooseJsonSourcePage:e===l.JsonDataSourceWizardPageId.ChooseJsonSourcePage?l.JsonDataSourceWizardPageId.ChooseJsonSchemaPage:e===l.SqlDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().sqlDataSourceWizard.name?l.SqlDataSourceWizardPageId.ConfigureQueryPage:e===l.SqlDataSourceWizardPageId.ConfigureQueryPage&&this._getCurrentState().sqlDataSourceWizard.sqlDataSourceJSON?l.SqlDataSourceWizardPageId.ConfigureParametersPage:void 0:this.getNextPageId(l.DataSourceWizardPageId.ChooseDataSourceTypePage)};var T,w=O;function O(e,t,r){e=T.call(this,e,t)||this;return e._dataSourceWizardOptions=r,e}t.DataSourceWizardPageIterator=w;D=d.PopupWizard,i(I,D),I.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new w(e,t,r._wizardOptions)}),this._wizardOptions.sqlDataSourceAvailable||!u.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=c.DataSourceType.Sql:(this._wizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource)&&(e.dataSourceType=c.DataSourceType.Json),D.prototype.initialize.call(this,e,t)},I.prototype.canRunWizard=function(){return this._wizardOptions.jsonDataSourceAvailable||this._wizardOptions.sqlDataSourceAvailable};var D,N=I;function I(e,t){e=D.call(this,e,t.callbacks.finishCallback)||this;return e._wizardOptions=t,e._extendCssClass="dxrd-sqldatasource-wizard",e.title=p.getLocalization("Data Source Wizard","AnalyticsCoreStringId.DSWizard_Title"),e}function E(e,t){return void 0===e&&(e=new s.PageFactory),c._registerChooseDataSourceTypePage(e,t),f._registerChooseJsonSourcePage(e,t.requestWrapper,t.callbacks.getItemsProviderCallback),m._registerChooseJsonConnectionPage(e,t),y._registerChooseJsonSchemaPage(e,t.requestWrapper,t.callbacks),h._registerConfigureObjectDataSourceParametersPage(e,t.callbacks.getItemsProviderCallback),g._registerConfigureQueryPage(e,t),_._registerChooseSqlConnectionPage(e,t.connectionStrings.sql),b._registerConfigureParametersPage(e,t.requestWrapper),e}t.DataSourceWizard=N,t._registerDataSourceWizardPages=E,t._createDataSourceWizard=function(e,t){return e=E(e=void 0===e?new s.PageFactory:e,t),new N(e,t)}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenWizardPageFactory=void 0,r(56)),r=(i=r.PageFactory,n(a,i),a.prototype.registerMetadata=function(e,t){i.prototype.registerMetadata.call(this,e,t)},a.prototype.getMetadata=function(e){return i.prototype.getMetadata.call(this,e)},a);function a(){var e=null!==i&&i.apply(this,arguments)||this;return e.metadata={},e}t.FullscreenWizardPageFactory=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageSectionFactory=void 0,r(56)),r=(i=r.PageFactory,n(a,i),a.prototype.registerMetadata=function(e,t){i.prototype.registerMetadata.call(this,e,t),void 0===t.position&&(t.position=Object.keys(this.metadata).length-1),void 0===t.recreate&&(t.recreate=!1),void 0===t.disabledText&&(t.disabledText="")},a);function a(){return null!==i&&i.apply(this,arguments)||this}t.WizardPageSectionFactory=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageProcessor=void 0,r(2)),s=r(3),l=r(1),c=r(112),d=r(186),u=r(1),p=r(10),f=r(14),r=(i=l.Disposable,n(m,i),m.prototype.dispose=function(){i.prototype.dispose.call(this),this.sections.forEach(function(e){return e.resetPage()}),this.sections=[]},m.prototype._createLoadingState=function(e){var t=this;e[m.__loadingStateFunctionName]||(e[m.__loadingStateFunctionName]=function(e){return t._loadingState(e)})},m.prototype._createNextAction=function(e){var t=this;e[f.__nextActionFunctionName]||(e[f.__nextActionFunctionName]=function(){return t._extendedNextAction()})},m.prototype._loadingState=function(e){var t=this;e?(this._loadingTimeout&&clearTimeout(this._loadingTimeout),this._loadingTimeout=setTimeout(function(){t.isLoading(!0)},100)):(this._loadingTimeout&&clearTimeout(this._loadingTimeout),this.isLoading(!1))},m.prototype._extendedNextAction=function(){},m.prototype._resetPageById=function(e){this.getPageById(e).resetPage()},m.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new d.WizardPageSectionIterator(e,t,function(e){return r._resetPageById(e)})}),this.events.call("beforeInitialize",{wizard:this,state:e}),this.stateManager=new c.StateManager(e,this.pageFactory),this.iterator=t(this.pageFactory,this.stateManager),this.sections=[],Object.keys(this.pageFactory.metadata).forEach(function(e){r.sections.push(new d.WizardPageSection(e,r.pageFactory.metadata[e]))}),this.sections=this.sections.sort(function(e,t){return e.metadata.position-t.metadata.position}),this.events.call("afterInitialize",{wizard:this})},m.prototype._canNext=function(e){var t=!this.isLoading()&&e&&e.page&&this.pageFactory.getMetadata(e.pageId);return t&&t.canNext(e.page)},m.prototype._canFinish=function(e){return!this.isLoading()&&e&&this.pageFactory.getMetadata(e.pageId).canFinish(e.page)},m.prototype._initPage=function(e,t,r){var o=this;if(void 0===t&&(t=!1),void 0===r&&(r=!1),this._createNextAction(e.page),e.onChange)return e.onChange(function(){o._changeTimeout&&clearTimeout(o._changeTimeout),o._changeTimeout=setTimeout(function(){o._nextAction(e)},100)}),e.initialize(this.stateManager.getPageState(e.pageId),t,r).always(function(){return o._loadingState(!1)});throw Error("Page with id "+e.pageId+" cannot be used in AutoNavigation, because it does not have method OnChange")},m.prototype.getPageById=function(t){return this.sections.filter(function(e){return e.pageId===t})[0]},m.prototype.start=function(){var t=this,r=(this.events.call("beforeStart",{wizard:this}),this._loadingState(!0),this.iterator.getStartPage());this.events.call("beforePageInitialize",p._createBeforeInitializePageEventArgs(r,this)),this._initPage(r).done(function(){var e=t.getPageById(r.pageId);if(!e)throw Error("Page Section with id "+r.pageId+" is not found.");e.setPage(r),t.events.call("afterPageInitialize",p._createPageEventArgs(r,t)),t._nextAction(r)})},m.prototype.finishAction=function(){for(var t=this,e=s.Deferred(),r=!1,o=this.sections.length-1;0<=o;o--)if(this.sections[o].page()){this.sections[o].page().commit().done(function(e){t.sections[o].page().isChanged&&(t.events.call("beforeFinish",{wizardModel:t,state:t.stateManager.getCurrentState()}),t.stateManager.setPageState(t.sections[o].page().pageId,e),t.events.call("afterFinish",{wizardResult:t,state:t.stateManager.getCurrentState()}))}).always(function(){return e.resolve()}),r=!0;break}return r||e.resolve(),e.promise()},m.prototype._nextAction=function(r,o){var i=this;if(void 0===o&&(o=!1),!this._canNext(r)&&!this._canFinish(r))return r.resetCommitedState(),this.iterator.resetNextPages(r.pageId);this._loadingState(!0),r.commit().done(function(e){r.isChanged||o||r.page&&r.page.changeAlways?(i.stateManager.setPageState(r.pageId,e),i.iterator.getNextPage(r.pageId).done(function(e){e&&0<e.length?e.forEach(function(e){var t=i.getPageById(e.pageId),e=t&&t.page()||e;i.events.call("beforePageInitialize",p._createBeforeInitializePageEventArgs(e,i)),i._initPage(e,!!t.page(),r.isChanged||o).done(function(){i.getPageById(e.pageId).setPage(e),i.events.call("afterPageInitialize",p._createPageEventArgs(e,i)),i._nextAction(e,r.isChanged)})}):i._loadingState(!1),r.isChanged=!1}).fail(function(){return i._loadingState(!1)})):i._loadingState(!1)}).fail(function(){return i._loadingState(!1)})},m.__loadingStateFunctionName="__loadingState",m);function m(e,t,r){var o=i.call(this)||this;return o.pageFactory=e,o.events=new u.EventManager,o._loadingTimeout=null,o._changeTimeout=null,o.sections=[],o.isLoading=a.observable(!1),t&&(o._loadingState=t),r&&(o._extendedNextAction=r),o._disposables.push(o.events),o}t.WizardPageProcessor=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageSectionIterator=t.WizardPageSection=void 0;var o=r(2),i=r(3),n=r(187);function a(e,t){this.pageId=e,this.metadata=t,this.page=o.observable(null)}function s(e,t,r){this.pageFactory=e,this.stateManager=t,this._resetPageCallback=r,this._pagesIds=[],this._pages=[]}a.prototype.resetPage=function(){this.page()&&this.page().dispose(),this.page(null)},a.prototype.setPage=function(e){this.page()!==e&&this.page(e)},t.WizardPageSection=a,s.prototype._resetPages=function(e,t){var r=this;if(void 0===t&&(t=function(e){return r._resetPage(e)}),e<this._pagesIds.length)for(var o=this._pagesIds.length-1;e<=o;o--)this._pagesIds[o].forEach(function(e){return t(e)}),this._pagesIds.splice(o,1)},s.prototype._tryResetPageByMetadata=function(e){return!!this.pageFactory.getMetadata(e).recreate&&(this._resetPage(e),!0)},s.prototype._resetPage=function(e){this.stateManager.resetPageState(e),this._resetPageCallback(e);e=this._getPage(e);e&&(e.dispose(),this._pages.splice(this._pages.indexOf(e),1))},s.prototype._createNewPage=function(e){var t=this.pageFactory.getMetadata(e);return new n.WrappedWizardPageSection(e,t.create(),t)},s.prototype._getPage=function(t){return this._pages.filter(function(e){return e.pageId===t})[0]},s.prototype._getNextPage=function(e){var r=this;return i.Deferred().resolve(e.map(function(e){var t=r._getPage(e);return t&&!r._tryResetPageByMetadata(e)||(t=r._createNewPage(e),r._pages.push(t)),t})).promise()},s.prototype._getPageIndex=function(t){return this._pagesIds.indexOf(this._pagesIds.filter(function(e){return e.some(function(e){return e===t})})[0])},s.prototype.resetNextPages=function(e){this._resetPages(this._getPageIndex(e)+1)},s.prototype.getStartPage=function(){var e=this.getNextPageId(),t=this.pageFactory.getMetadata(e),t=new n.WrappedWizardPageSection(e,t.create(),t);return this._pagesIds.push([e]),t},s.prototype.getNextPage=function(e){var t=this,r=this._getPageIndex(e),o=this.getNextPageId(e);return o?(o.push||(o=[o]),JSON.stringify(this._pagesIds[r+1])!==JSON.stringify(o)&&(this._resetPages(r+1,function(e){-1===o.indexOf(e)&&t._resetPage(e)}),this._pagesIds.push(o)),this._getNextPage(o)):(this.resetNextPages(e),i.Deferred().reject().promise())},s.prototype.getCurrentState=function(){return this.stateManager.getCurrentState()},s.prototype.getNextPageId=function(e){return""},t.WizardPageSectionIterator=s},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedWizardPageSection=void 0,r(100)),r=(i=r._WrappedWizardPage,n(a,i),a);function a(e,t,r){var o=i.call(this,e,t,r.template,r.description)||this;return o.pageId=e,(o.page=t).onChange&&(o.onChange=function(e){t.onChange(function(){e(),r.onChange&&r.onChange()})}),o}t.WrappedWizardPageSection=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifyJsonDataSourceSettingsPage=t.SpecifyJsonDataSourceSettingsPage=void 0,r(77)),s=r(150),l=r(5),c=r(50),d=r(1),u=r(69),p=r(10),f=(i=a.FullscreenWizardPage,n(m,i),m.prototype.registerSections=function(){0<this._dataSourceWizardOptions.connectionStrings.json().length&&(s._registerSpecifyJsonConnectionPage(this._factory,this._dataSourceWizardOptions.connectionStrings.json,this._dataSourceWizardOptions.allowCreateNewJsonConnection,this._dataSourceWizardOptions.callbacks.getItemsProviderCallback),this._setSectionPosition(l.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage,this._dataSourceWizardOptions.rtl?p.WizardSectionPosition.Right:p.WizardSectionPosition.Left)),this._dataSourceWizardOptions.allowCreateNewJsonConnection&&0===this._dataSourceWizardOptions.connectionStrings.json().length&&(c._registerChooseJsonSourcePage(this._factory,this._dataSourceWizardOptions.requestWrapper,this._dataSourceWizardOptions.callbacks.getItemsProviderCallback),this._setSectionPosition(l.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage,this._dataSourceWizardOptions.rtl?p.WizardSectionPosition.Right:p.WizardSectionPosition.Left),this._factory.getMetadata(l.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage).disabledText=d.getLocalization('To create a data connection, select "No, I\'d like to create a new data connection".',"AnalyticsCoreStringId.JsonDSWizard_CreateNewConnectionPage_Placeholder")),u._registerChooseJsonSchemaPage(this._factory,this._dataSourceWizardOptions.requestWrapper,this._dataSourceWizardOptions.callbacks),this._setSectionPosition(l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage,this._dataSourceWizardOptions.rtl?p.WizardSectionPosition.Left:p.WizardSectionPosition.Right),this._factory.getMetadata(l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage).disabledText=d.getLocalization("To select data fields, choose or create a data connection.","AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSchemaPage_Placeholder")},m.prototype.getNextSectionId=function(e){return!e&&0<this._dataSourceWizardOptions.connectionStrings.json().length?l.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage:e?this._dataSourceWizardOptions.allowCreateNewJsonConnection?e===l.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage||e===l.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage?l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage:void 0:e===l.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage?l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage:void 0:l.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage},m.prototype.canNext=function(){var e=this._sectionsProcessor.getPageById(l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage);return e&&e.page()&&e.metadata.canNext(e.page().page)},m);function m(e){var t=i.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifyJsonDataSourceSettingsPage=f,t._registerSpecifyJsonDataSourceSettingsPage=function(e,t){e.registerMetadata(l.FullscreenDataSourceWizardPageId.SpecifyJsonDataSourceSettingsPage,{setState:function(e,t){t.jsonDataSourceWizard.connectionName=e.jsonDataSourceWizard.connectionName,t.jsonDataSourceWizard.newConnectionName=e.jsonDataSourceWizard.newConnectionName,t.jsonDataSourceWizard.jsonSource=e.jsonDataSourceWizard.jsonSource,t.jsonDataSourceWizard.dataSourceName=e.jsonDataSourceWizard.dataSourceName,t.jsonDataSourceWizard.jsonScheme=e.jsonDataSourceWizard.jsonScheme,t.jsonDataSourceWizard.rootElement=e.jsonDataSourceWizard.rootElement},getState:function(e){return e},resetState:function(e,t){e.jsonDataSourceWizard.connectionName=t.jsonDataSourceWizard.connectionName,e.jsonDataSourceWizard.jsonSource=t.jsonDataSourceWizard.jsonSource,e.jsonDataSourceWizard.dataSourceName=t.jsonDataSourceWizard.dataSourceName,e.jsonDataSourceWizard.newConnectionName=t.jsonDataSourceWizard.newConnectionName,e.jsonDataSourceWizard.jsonScheme=t.jsonDataSourceWizard.jsonScheme,e.jsonDataSourceWizard.rootElement=t.jsonDataSourceWizard.rootElement},create:function(){return new f(t)},navigationPanelText:d.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifySqlDataSourceSettingsPage=t.SpecifySqlDataSourceSettingsPage=void 0,r(77)),s=r(5),l=r(12),c=r(67),d=r(111),u=r(116),p=r(32),f=r(114),m=r(1),y=r(0),h=r(10),g=(i=a.FullscreenWizardPage,n(_,i),_.prototype.getNextSectionId=function(e){return e?e===s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage&&this._stateManager.getCurrentState().sqlDataSourceWizard.name?s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage:e===s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage?(e=[],0<((t=this._stateManager.getCurrentState().sqlDataSourceWizard).customQueries||[]).length&&e.push(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage),1<l._restoreSqlDataSourceFromState(t).sqlDataSource.queries().length&&e.push(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage),e):void 0:s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage;var t},_.prototype.registerSections=function(){c._registerChooseSqlConnectionPage(this._factory,this._dataSourceWizardOptions.connectionStrings.sql),d._registerMultiQueryConfigurePage(this._factory,this._dataSourceWizardOptions),u._registerConfigureMasterDetailRelationshipsPage(this._factory,p.wrapRebuildResultSchema(this._dataSourceWizardOptions.callbacks.sqlDataSourceResultSchema)),f._registerMultiQueryConfigureParametersPage(this._factory,this._dataSourceWizardOptions.requestWrapper);var e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage);e.description=m.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection"),(e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage)).recreate=!0,e.description=m.getLocalization("Choose predefined queries and/or create custom queries.","AnalyticsCoreStringId.Wizard_Queries_Description"),e.required=!0,(e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage)).description=m.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),e.disabledText=m.getLocalization("To create a master-detail relationship, select two or more queries.","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_Placeholder"),(e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage)).description=m.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters"),e.disabledText=m.getLocalization("To specify query parameters, select a parameterized stored procedure or create a custom query.","AnalyticsCoreStringId.Wizard_ConfigureQueryParameters_Placeholder"),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage,this._dataSourceWizardOptions.rtl?h.WizardSectionPosition.TopRight:h.WizardSectionPosition.TopLeft),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage,this._dataSourceWizardOptions.rtl?h.WizardSectionPosition.TopLeft:h.WizardSectionPosition.TopRight),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage,this._dataSourceWizardOptions.rtl?h.WizardSectionPosition.BottomLeft:h.WizardSectionPosition.BottomRight),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage,this._dataSourceWizardOptions.rtl?h.WizardSectionPosition.BottomRight:h.WizardSectionPosition.BottomLeft)},_);function _(e){var t=i.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifySqlDataSourceSettingsPage=g,t._registerSpecifySqlDataSourceSettingsPage=function(e,t){e.registerMetadata(s.FullscreenDataSourceWizardPageId.SpecifySqlDataSourceSettingsPage,{setState:function(e,t){t.sqlDataSourceWizard.customQueries=e.sqlDataSourceWizard.customQueries,t.sqlDataSourceWizard.name=e.sqlDataSourceWizard.name,t.sqlDataSourceWizard.queryName=e.sqlDataSourceWizard.name,t.sqlDataSourceWizard.sqlDataSourceJSON=e.sqlDataSourceWizard.sqlDataSourceJSON,t.sqlDataSourceWizard.relations=e.sqlDataSourceWizard.relations},getState:function(e){return e},resetState:function(e,t){e.sqlDataSourceWizard=y.extend(!0,{},t)},create:function(){return new g(t)},navigationPanelText:m.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifyFederationDataSourceSettingsPage=t.SpecifyFederationDataSourceSettingsPage=void 0,r(77)),s=r(5),l=r(12),c=r(1),d=r(0),u=r(117),p=r(125),f=r(32),m=r(10),y=(i=a.FullscreenWizardPage,n(h,i),h.prototype.getNextSectionId=function(e){return e?e===s.FullscreenDataSourceWizardSectionId.ConfigureFederatedQueriesPage&&1<l._restoreFederationDataSourceFromState(this._stateManager.getCurrentState().federationDataSourceWizard,this._dataSourceWizardOptions.dataSources).queries().length?s.FullscreenDataSourceWizardSectionId.ConfigureFederatedMasterDetailRelationshipsPage:void 0:s.FullscreenDataSourceWizardSectionId.ConfigureFederatedQueriesPage},h.prototype._showPageDescription=function(){return!0},h.prototype.registerSections=function(){u._registerFederatedQueryConfigurePage(this._factory,this._dataSourceWizardOptions),p._registerFederatedMasterDetailRelationshipsPage(this._factory,f.wrapGetFederationdResultSchema(this._dataSourceWizardOptions.callbacks.federationDataSourceResultSchema),this._dataSourceWizardOptions);var e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureFederatedQueriesPage);e.description=c.getLocalization("Create a federated query.","DataAccessUIStringId.WizardPageConfigureFederatedQueryPage"),(e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureFederatedMasterDetailRelationshipsPage)).description=c.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),e.disabledText=c.getLocalization("To create a master-detail relationship, select two or more queries.","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_Placeholder"),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureFederatedQueriesPage,m.WizardSectionPosition.Top),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureFederatedMasterDetailRelationshipsPage,m.WizardSectionPosition.Bottom)},h);function h(e){var t=i.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifyFederationDataSourceSettingsPage=y,t._registerSpecifyFederationDataSourceSettingsPage=function(e,t){e.registerMetadata(s.FullscreenDataSourceWizardPageId.SpecifyFederationDataSourceSettingsPage,{setState:function(e,t){t.federationDataSourceWizard.federationDataSourceJSON=e.federationDataSourceWizard.federationDataSourceJSON,t.federationDataSourceWizard.federatedQueries=e.federationDataSourceWizard.federatedQueries,t.federationDataSourceWizard.relations=e.federationDataSourceWizard.relations,t.federationDataSourceWizard.name=e.federationDataSourceWizard.name},getState:function(e){return e},resetState:function(e,t){e.federationDataSourceWizard=d.extend(!0,{},t)},create:function(){return new y(t)},navigationPanelText:c.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenWizard=void 0,r(2)),s=r(33),l=r(192),r=(i=s.PopupWizard,n(c,i),c.prototype._onClose=function(e){this._onCloseCallback=e},c.prototype.onFinish=function(){i.prototype.onFinish.call(this),this.navigationPanel().dispose()},c.prototype._initPage=function(e){var t=this;return e.onChange&&e.onChange(function(){return t.navigationPanel()._resetNextPages(e.pageId)}),i.prototype._initPage.call(this,e)},c.prototype._onResetPage=function(e){this.navigationPanel()._reset(e.pageId)},c.prototype.start=function(e){e&&(this._finishCallback=e),this.navigationPanel()&&this.navigationPanel().resetAll(),this.navigationPanel()&&this.navigationPanel().dispose(),this.navigationPanel(new l.WizardNavigationPanel(this)),i.prototype.start.call(this)},c.prototype._pageDescription=function(){var e=this.navigationPanel()._steps.filter(function(e){return e.isActive()})[0];return e?e.text:this.pageFactory.getMetadata(this._currentPage().pageId).description},c.prototype._description=function(){return""},c);function c(e,t){var r=i.call(this,e,t)||this;return r._extendCssClass="dx-wizard-fullscreen",r.navigationPanel=a.observable(null),r.isVisible.subscribe(function(e){e||(r.navigationPanel()&&r.navigationPanel().resetAll(),r.navigationPanel()&&r.navigationPanel().dispose(),r._onCloseCallback&&r._onCloseCallback())}),r}t.FullscreenWizard=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.WizardNavigationPanel=void 0,r(2)),r=r(1),r=(a=r.Disposable,i(n,a),n.prototype.resetAll=function(){this._steps.forEach(function(e){e.disabled(!0)})},n.prototype._currentStep=function(t){return this._steps.filter(function(e){return e.currentPageId===t})[0]},n.prototype._reset=function(e){e=this._currentStep(e);e&&e.disabled(!0)},n.prototype._resetNextPages=function(e){e=this._currentStep(e);if(e)for(var t=e.stepIndex+1;t<this._steps.length;t++)this._steps[t].disabled(!0)},n.prototype._setStepVisible=function(r){var e=this._steps.filter(function(e,t){return t<r});0<e.length&&!e.some(function(e){return!e.disabled()})&&e.forEach(function(e){return e.visible(!1)})},n);function n(i){var n=a.call(this)||this;return n._steps=[],n._disposables.push(i._currentPage.subscribe(function(t){var e=n._steps.filter(function(e){return e.pageIds.some(function(e){return e===t.pageId})})[0];e&&(e.currentPageId=t.pageId,e.disabled(!1),n._setStepVisible(e.stepIndex))})),Object.keys(i.pageFactory.metadata).forEach(function(e){var t,r=i.pageFactory.metadata[e],o=n._steps.filter(function(e){return e.text===r.navigationPanelText})[0];o?o.pageIds.push(e):(t={text:r.navigationPanelText,pageIds:[e],currentPageId:null,stepIndex:n._steps.length,disabled:s.observable(!0),visible:s.observable(!0)},n._disposables.push(t.isActive=s.computed(function(){return i._currentPage()&&t.currentPageId===i._currentPage().pageId})),t.clickAction=function(){t.isActive()||i.goToPage(t.currentPageId)},n._steps.push(t))}),n._disposables.push(n.isVisible=s.computed(function(){return 1<n._steps.filter(function(e){return e.visible()}).length})),n}t.WizardNavigationPanel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.UndoEditor=void 0,r(2)),r=r(6),r=(i=r.Editor,n(s,i),s.prototype.generateValue=function(t){var r=this;return this.undoValue||this._disposables.push(this.undoValue=a.computed({read:function(){return r.value()},write:function(e){t().start(),r.value(e),t().end()}})),this.undoValue},s);function s(e,t,r,o){return i.call(this,e,t,r,o)||this}t.UndoEditor=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.RightPanelSwitcher=void 0,r(2)),r=r(1),r=(n=r.Disposable,i(s,n),s.prototype.dispose=function(){n.prototype.dispose.call(this),this._collapsed=null},s.prototype.toogle=function(){this._collapsed(!this._collapsed())},Object.defineProperty(s.prototype,"title",{get:function(){return this.getDisplayName(this.editableObj())},enumerable:!1,configurable:!0}),s);function s(e,t,r,o){void 0===r&&(r=function(e){return!0});var i=n.call(this)||this;return i.editableObj=t,i.getDisplayName=o,i._collapsed=e,i._disposables.push(i.visible=a.pureComputed(function(){return!i.disabled()&&!i._collapsed()})),i._disposables.push(i.disabled=a.pureComputed(function(){var e=!t()||!r(t());return e&&!i._collapsed()&&i._collapsed(!0),e})),i}t.RightPanelSwitcher=r},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createQueryBuilderSurface=e.createQueryBuilder=e.createIsLoadingFlag=e.updateQueryBuilderSurfaceContentSize=void 0;var S=t(2),v=t(3),P=t(53),x=t(0),C=t(87),T=t(1),a=t(52),w=t(84),O=t(11),D=t(0),s=t(0),N=t(0),I=t(37),l=t(0),c=t(21),E=t(0),z=t(70),A=t(196),M=t(197),j=t(6),k=t(0),R=t(198),q=t(199),L=t(55),Q=t(0),F=t(0),d=t(200),n=t(240),H=t(91),$=t(8),u=t(0),f=t(194),B=t(0),G=t(61),W={Surface:"dxrd-surface-template-base",Toolbar:"dxqb-toolbar",RightPanel:"dx-right-panel-lightweight",RightPanelSwitcher:"dx-right-panel-switcher",DataPreview:"dxqb-popup#data",SqlPreview:"dxqb-popup#sql"};function p(o,i,n,e){return function(){var e=o(),t=e.find(".dxrd-right-panel:visible").outerWidth()||0,r=e.width()-(t+5);e.find(".dxrd-surface-wrapper").css(n().rtl()?{left:t,right:0,width:r}:{left:0,right:t,width:r}),i(r),n().pageWidth(r)}}function V(e,t){var r=S.observable(!1);return e()._disposables.push(t.subscribe(function(){r(!1)})),S.pureComputed(function(){return t.peek().getDbSchema().done(function(){r(!0)}),!r()||e().tables.peek().some(function(e){return!e.isInitialized()})})}function U(e,t,r){var o=e.subscribe(function(e){t(new a.QuerySurface(e)),t().rtl(!!r.rtl)}),i=new l.SurfaceSelection(["alias","name","sortOrder"]),n=s.createDesigner(e,t,c.controlsFactory,void 0,void 0,void 0,!!r.rtl,i);return n.addDisposables(o),n.findControl=function(e,r){v(".dxqb-main").children(".dxrd-control").each(function(e,t){t=v(t);t.offset().top<=r.clientY&&t.offset().left<=r.clientX&&n.selection.focused(S.dataFor(t[0]))})},n.addDisposables({dispose:function(){return n.findControl=null}}),n}function J(e,t,r,o){function i(){setTimeout(function(){return n()})}var n=p(function(){return v(e).find(".dxqb-designer")},t.surfaceSize,r);t.addDisposables(r.subscribe(function(){n()}));window.addEventListener("resize",i),u.addDisposeCallback(e,function(){window.removeEventListener("resize",i),t.disposableContainer.dispose()}),t.addDisposables(t.tabPanel.width.subscribe(function(){n()})),t.updateSurfaceSize=function(){n()},t.updateSurface=function(){n(),o&&o()}}function m(e,t,r,o){void 0===o&&(o=!0);function i(e){f(new P.QueryViewModel(e,t.dbSchemaProvider(),u,function(e){r.saveQueryRequested({queryLayout:encodeURIComponent(JSON.stringify(e)),connection:encodeURIComponent(G.serializeDataConnection(p))})}))}function n(e){i(e),y({itemsProvider:t.dbSchemaProvider(),treeListController:new M.QueryBuilderTreeListController(h.undoEngine,f,h.fieldDragHandler),selectedPath:S.observable(),pageSize:100,templateName:"dxqb-treelist-item-with-search"})}var a,s,l,c=r&&r.onServerError&&N.processErrorEvent(r.onServerError),d=t.requestWrapper||new O.RequestWrapper,u=t.parametersMode||I.ParametersMode.ReadWrite,p=(C.HandlerUri(t.handlerUri),t.queryModelJson&&(m=new H.SqlDataSource(JSON.parse(t.dataSourceJson)),t.dbSchemaProvider=D._wrapModelInObservable(t.dbSchemaProvider),t.dbSchemaProvider(new w.DBSchemaProvider(m.connection)),t.querySource=D._wrapModelInObservable(t.querySource),t.querySource(JSON.parse(t.queryModelJson))),t.dbSchemaProvider().connection),f=S.observable(),m=S.observable(),y=S.observable(),h=(i(t.querySource()),U(f,m,t)),c=(c&&h.addDisposables(c),h.rootStyle="dxqb-designer dxd-back-primary-invariant",E.getParentContainer),g=(h.dataPreview={isLoading:S.observable(!1),isVisible:S.observable(!1),title:function(){return T.getLocalization("Data Preview (First 100 Rows Displayed)","AnalyticsCoreStringId.DataPreview_Title")},template:"dxqb-data-preview",data:{value:S.observable()},okButtonText:function(){return T.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){e.model.isVisible(!1)},container:c},h.selectStatmentPreview={isLoading:S.observable(!1),isVisible:S.observable(!1),template:"dxqb-selectstatment-preview",title:function(){return T.getLocalization("Select Statement Preview","AnalyticsCoreStringId.QueryBuilder_SelectStatementPreview_Title")},data:{value:S.observable(),aceOptions:z.createDefaultSQLAceOptions(!0),aceAvailable:$.aceAvailable(),additionalOptions:z.createDefaultSQLAdditionalOptions(function(e){h.selectStatmentPreview.data.value(e)}),languageHelper:z.createDefaultSQLLanguageHelper()},okButtonText:function(){return T.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){e.model.isVisible(!1)},container:c},h.parts=[{id:W.Surface,templateName:W.Surface,model:h},{id:W.Toolbar,templateName:W.Toolbar,model:h},{id:W.RightPanel,templateName:W.RightPanel,model:h},{id:W.DataPreview,templateName:W.DataPreview.split("#")[0],model:h.dataPreview},{id:W.SqlPreview,templateName:W.SqlPreview.split("#")[0],model:h.selectStatmentPreview}],h.columnDragHandler=new A.ColumnDragHandler(m,h.selection,h.undoEngine,h.snapHelper,h.dragHelperContent),h.fieldDragHandler=new q.DbObjectDragDropHandler(m,h.selection,h.undoEngine,h.snapHelper,h.dragHelperContent),h.connectionPointDragHandler=h.columnDragHandler,h.resizeHandler.handles="e, w",h.columnsLoadingMsg=function(){return T.getLocalization("Loading...","DataAccessWebStringId.QueryBuilder_ColumnsLoading")},h.addDisposables(t.querySource.subscribe(function(e){n(e)})),n(t.querySource()),S.observable(B.calculateWithZoomFactor(355))),c={editableObject:h.editableObject,properties:new j.ObjectProperties(h.editableObject,null,1),fieldListModel:{treeListOptions:y},tablesTop:g,searchPlaceholder:function(){return k.searchPlaceholder()}},c=new R.AccordionTabInfo(f,c,h.undoEngine,h.selection.focused,u===I.ParametersMode.ReadWrite),_=h.tabPanel,b=(_.tabs.length=0,_.tabs.push(c),_.width(B.calculateWithZoomFactor(375)),h.fieldDragHandler=new q.DbObjectDragDropHandler(m,h.selection,h.undoEngine,h.snapHelper,h.dragHelperContent),h.fieldListProvider=new L.QueryBuilderObjectsProvider(f,L.QueryBuilderObjectsProvider.whereClauseObjectsFilter),h.dataBindingsProvider=h.fieldListProvider,h.parametersBindingsProvider=t.parametersItemsProvider||h.dataBindingsProvider,h.dataBindingsGroupProvider=new L.QueryBuilderObjectsProvider(f,L.QueryBuilderObjectsProvider.groupByObjectsFilter),h.isLoading=V(h.model,t.dbSchemaProvider),h.actionLists=new Q.ActionLists(m,h.selection,h.undoEngine,(a=h,s=r&&r.customizeActions,l=a.model,function(e){var t=x.findFirstItemMatchesCondition(e,function(e){return"Delete"===e.text}),r=(t.imageClassName="dx-icon-dxrd-image-recycle-bin",t.imageTemplateName="dxrd-svg-operations-recycle_bin",x.findFirstItemMatchesCondition(e,function(e){return"Undo"===e.text})),o=(r.disabled=S.pureComputed(function(){return a.isLoading()||!a.undoEngine().undoEnabled()}),x.findFirstItemMatchesCondition(e,function(e){return"Redo"===e.text}));e.splice(0,e.length,t,r,o),e.push({id:C.ActionId.Save,text:"Save",displayText:function(){return T.getLocalization("Save","AnalyticsCoreStringId.MenuButtons_Save")},imageClassName:"dxqb-image-save",imageTemplateName:"dxrd-svg-menu-save",disabled:a.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"S".charCodeAt(0)},clickAction:function(){l().save()},hasSeparator:!0}),e.push({id:C.ActionId.DataPreview,text:"Preview Results",displayText:function(){return T.getLocalization("Preview Results","DataAccessUIStringId.QueryBuilderButtons_PreviewResults")},imageClassName:"dxrd-image-data-preview",imageTemplateName:"dxrd-svg-queryBuilder-data_preview",disabled:a.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"P".charCodeAt(0)},clickAction:function(){l().canSave()&&a.showPreview()},hasSeparator:!0}),e.push({id:C.ActionId.SelectStatementPreview,text:"Preview Select Statement",displayText:function(){return T.getLocalization("Preview Select Statement","AnalyticsCoreStringId.QueryBuilder_PreviewSelectStatement_Tooltip")},imageClassName:"dxrd-image-selectstatement-preview",imageTemplateName:"dxrd-svg-queryBuilder-select_statment",disabled:a.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"E".charCodeAt(0)},clickAction:function(){l().canSave()&&a.showStatement()},hasSeparator:!0}),s&&s(e)})),h.isLoading()||h.undoEngine&&h.undoEngine().clearHistory(),h.addDisposables(h.isLoading.subscribe(function(e){h.undoEngine&&h.undoEngine().clearHistory()})),h.selection.focused(m()),m.subscribe(function(e){h.selection.focused(e)}));return h.addDisposables({dispose:function(){return b.dispose()}}),h.addDisposables(h.editableObject.subscribe(function(e){g.notifySubscribers(null)})),D.appendStaticContextToRootViewModel(h),o&&(r&&r.beforeRender&&r.beforeRender(h),v(e).empty(),S.cleanNode(e),S.applyBindings(h,e)),J(e,h,m,function(){return g(355)}),o&&h.updateSurface(),h.showPreview=function(){h.dataPreview.isLoading(!0),h.dataPreview.isVisible(!0),d.getDataPreview(p,JSON.stringify(f().serialize(!0))).done(function(e){h.dataPreview.data.value(JSON.parse(e.dataPreviewJSON)),h.dataPreview.isLoading(!1)}).fail(function(e){h.dataPreview.isVisible(!1),F.ShowMessage(F.getErrorMessage(e))})},h.showStatement=function(){h.selectStatmentPreview.isLoading(!0),h.selectStatmentPreview.isVisible(!0),d.getSelectStatement(p,JSON.stringify(f().serialize(!0))).done(function(e){e.errorMessage&&F.ShowMessage(e.errorMessage),h.selectStatmentPreview.data.value(e.sqlSelectStatement),h.selectStatmentPreview.isLoading(!1)}).fail(function(e){h.selectStatmentPreview.isVisible(!1),F.ShowMessage(F.getErrorMessage(e))})},h}e.updateQueryBuilderSurfaceContentSize=p,e.createIsLoadingFlag=V,e.createQueryBuilder=function(e,t,r,o){void 0===o&&(o=!0),t.localization&&T.addCultureInfo({messages:t.localization}),n.default({rtlEnabled:!!t.rtl}),d.registerControls();var i=[];return r&&r.customizeLocalization&&r.customizeLocalization(i),k.resolveFromPromises(i,function(){return m(e,t,r,o)})},e.createQueryBuilderSurface=function(e,t,r){var o=S.observable(),i=S.observable(),n=(d.registerControls(),U(o,i,t)),a=new R.SelectedTabInfo(new j.ObjectProperties(n.editableObject,null,1)),s=n.tabPanel,l=new f.RightPanelSwitcher(s.collapsed,n.editableObject,t.showPropertyGridCondition,R.AccordionTabInfo._getSelectedItemPropertyName);return n.addDisposables(a,s,l),s.tabs.length=0,s.tabs.push(a),s.width(B.calculateWithZoomFactor(325)),n.parts=[{id:W.Surface,templateName:W.Surface,model:n},{id:W.RightPanel,templateName:W.RightPanel,model:n},{id:W.RightPanelSwitcher,templateName:W.RightPanelSwitcher,model:l}],n.columnDragHandler=new A.ColumnDragHandler(i,n.selection,n.undoEngine,n.snapHelper,n.dragHelperContent),n.connectionPointDragHandler=n.columnDragHandler,n.selection.focused(i()),n.addDisposables(i.subscribe(function(e){n.selection.focused(e)})),n.rootStyle="dxqb-designer dxd-back-primary-invariant",n.resizeHandler.handles="e, w",n.columnsLoadingMsg=function(){return T.getLocalization("Loading...","DataAccessWebStringId.QueryBuilder_ColumnsLoading")},D.appendStaticContextToRootViewModel(n),o(r(t)),v(e).empty(),S.cleanNode(e),S.applyBindings(n,e),J(e,n,i),n.isLoading(!1),n.updateSurface(),u.addDisposeCallback(e,function(){o()&&o().dispose(),i()&&i().dispose(),r=null,n.disposableContainer.dispose(),n.dispose()}),n}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnDragHandler=void 0,r(2)),s=r(0),l=r(76),c=r(25),d=r(0),u=r(59),p=r(60),f=r(24),m=r(0),r=(n=s.DragDropHandler,i(y,n),y.prototype._needToCreateRelation=function(){return!!(this.selection.dropTarget&&this.selection.dropTarget instanceof l.ColumnSurface)&&this.selection.dropTarget.getControlModel().parentModel()!==this.getDragColumn().parentModel()},y.prototype.startDrag=function(e){if(this._scrollProcessor=new m.dxScrollProcessor(document.getElementsByClassName("dxqb-mainwin")[0]),e instanceof c.ConnectionPointSurface){var t=e.getControlModel().parentModel();if(this._dragConditionSurface=d.findSurface(t),!this._dragConditionSurface)return;this._dragConditionSurface.isVisible(!1),this._dragColumn(t.startPoint()===e.getControlModel()?t.nestedColumn():t.parentColumn())}else{if(!(e instanceof l.ColumnSurface))throw new Error("ColumnDragHandler can be applied to the Column only.");this._dragColumn(e.getControlModel())}t=new u.RoutedConnectorViewModel({},this.querySurface().getControlModel());this.dragDropConnector(new p.RoutedConnectorSurface(t,this.surface()))},y.prototype.setConnectorPoints=function(e){var t,r,o=this._dragColumn(),i=this.dragDropConnector().getControlModel();this._needToCreateRelation()?(r=f.determineConnectingPoints(o,this.selection.dropTarget.getControlModel()),i.startPoint().connectingPoint(r.start),i.endPoint().connectingPoint(r.end)):(r=this.querySurface().rtl()?this.querySurface().pageWidth()-o.leftConnectionPoint.location.x():o.leftConnectionPoint.location.x(),t=this.querySurface().rtl()?this.querySurface().pageWidth()-o.rightConnectionPoint.location.x():o.rightConnectionPoint.location.x(),r=Math.abs(r-e.left)>Math.abs(t-e.left)?o.rightConnectionPoint:o.leftConnectionPoint,i.startPoint().connectingPoint(r),this.dragDropConnector().endPoint().rect({top:e.top,left:e.left}))},y.prototype.drag=function(e,t){var r=this._scrollProcessor.getScrollOffset();t.position.left+=t.scroll.left+r.left,t.position.top+=t.scroll.top+r.top,t.delta.left=t.position.left-this.surface().underCursor().x-6,t.delta.top=t.position.top-this.surface().underCursor().y-6,this.setConnectorPoints(this._getAbsoluteSurfacePosition(t)),this._scrollProcessor.processOffset({x:e.clientX,y:e.clientY})},y.prototype.doStopDrag=function(){this._scrollProcessor.dispose(),this._scrollProcessor=null,this.dragHelperContent.reset(),this.dragDropConnector()&&this.dragDropConnector().dispose(),this.dragDropConnector(null);try{var e,t,r=null,o=(this._dragConditionSurface&&!this._dragConditionSurface.isVisible()&&(r=this._dragConditionSurface.getControlModel(),this._dragConditionSurface.isVisible(!0)),this.querySurface().getControlModel());this._needToCreateRelation()&&(e=this.selection.dropTarget.getControlModel(),this.undoEngine().start(),r&&r.parentModel().removeChild(r),t=o.cerateJoinCondition(this._dragColumn(),e),this.undoEngine().end(),null!==t&&this.selection.initialize(d.findSurface(t)))}finally{this._dragColumn(null)}},y.prototype.getDragColumn=function(){return this._dragColumn()},y);function y(e,t,r,o,i){t=n.call(this,e,t,r,o,i)||this;return t.querySurface=e,t.undoEngine=r,t._dragColumn=a.observable(null),t._dragConditionSurface=null,t.dragDropConnector=a.observable(null),t.cursor="arrow",t.containment=".dxrd-ghost-container",t.helper=void 0,t}t.ColumnDragHandler=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryBuilderTreeListController=void 0,r(8)),r=(i=r.TreeListController,n(a,i),a.prototype.dblClickHandler=function(e){this.undoEngine().start(),this._dragDropHandler(e,this.query()),this.undoEngine().end()},a);function a(e,t,r){var o=i.call(this)||this;return o.undoEngine=e,o.query=t,o._dragDropHandler=r.getDropCallback(e,!0),o}t.QueryBuilderTreeListController=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectedTabInfo=t.AccordionTabInfo=void 0,r(2)),l=r(6),n=r(1),c=r(1),d=r(75),u=r(53),p=r(0),f={propertyName:"parameters",displayName:"parameters",editor:{custom:"dxqb-parameterspanel"}},m={propertyName:"selectedItem",displayName:"selectedItem",editor:{custom:"dxqb-propertygrid"}},y={propertyName:"fields",displayName:"fields",editor:{custom:"dxqb-fieldspanel"}},h={propertyName:"query",displayName:"query",editor:{custom:"dxqb-propertygrid"}},r=(a=n.TabInfo,i(g,a),g._getSelectedItemPropertyName=function(e){var t="Selection Properties",r="AnalyticsCoreStringId.QueryBuilder_SelectionProperties";switch(e&&e.controlType){case"Query":case"FQuery":t="Query Properties",r="AnalyticsCoreStringId.QueryBuilder_QueryProperties";break;case"Table":case"FTable":t="Table Properties",r="AnalyticsCoreStringId.QueryBuilder_TableProperties";break;case"Column":t="Column Properties",r="AnalyticsCoreStringId.QueryBuilder_ColumnProperties";break;case"JoinCondition":t="Relation Properties",r="AnalyticsCoreStringId.QueryBuilder_RelationProperties"}return c.getLocalization(t,r)},g._createWrappedObject=function(t,r,e,o){var i=new l.ObjectProperties(t,null,1),n=s.computed(function(){return t()&&t().parameters}),a=[h,m,y],i={selectedItem:r,query:{editableObject:t,properties:i},fields:r,isPropertyVisible:function(e){return"selectedItem"!==e||r.editableObject()!==t()}};return o&&(i.parameters={values:n,addHandler:function(){return new d.ParameterViewModel({"@Type":"System.String"})},collapsed:!1,undoEngine:e,isVisibleButton:function(e,t){return"add"===t||"delete"===t},template:"#dxqb-collectioneditor-template",textEmptyArray:{text:"Click the Add button to create a parameter.",localizationId:"AnalyticsCoreStringId.QueryBuilder_PageConfigureParametersEmpty"}},a.push(f)),i.getInfo=function(){return a},i},g._createGroups=function(e,t){var r=this,o={Query:{info:[h],displayName:function(){return c.getLocalization("Query Properties","AnalyticsCoreStringId.QueryBuilder_QueryProperties")}},SelectedItem:{info:[m],displayName:function(){return r._getSelectedItemPropertyName(e())}},Fields:{info:[y],displayName:function(){return c.getLocalization("Available tables and views","AnalyticsCoreStringId.QueryBuilder_AvailableTables")}}};return t&&(o.Parameters={info:[f],displayName:function(){return c.getLocalization("Parameters","AnalyticsCoreStringId.QueryBuilder_Parameters")}}),o},g._createQBPropertyGrid=function(e,t,r,o){e=this._createWrappedObject(e,t,r,o);return new p.ControlProperties(s.observable(e),{groups:this._createGroups(t.editableObject,o),editors:e.getInfo()},void 0,!1)},g.prototype._getGroupByName=function(t){return this.model.groups.filter(function(e){return e._displayName===t})[0]},g);function g(e,t,r,o,i){var n=a.call(this,{text:"Properties",template:"dxqb-properties-wrapper",model:g._createQBPropertyGrid(e,t,r,i)})||this;return n.active(!0),n._getGroupByName("Fields").collapsed(!1),n._disposables.push(o.subscribe(function(e){e instanceof u.QueryViewModel||n._getGroupByName("SelectedItem").collapsed(!1)})),n}t.AccordionTabInfo=r;_=n.TabInfo,i(b,_);var _,r=b;function b(e){var t=_.call(this,{text:"Properties",template:"dxqb-properties-wrapper-editorlist",model:e})||this;return t.model=e,t}t.SelectedTabInfo=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.DbObjectDragDropHandler=void 0,r(0)),s=r(21),l=r(4),c=r(4),d=r(0),u=r(0),r=(a=n.DragDropHandler,i(p,a),p.prototype.suggestLocation=function(t,e){e=Math.max.apply(null,e.tables.peek().filter(function(e){return e!==t}).map(function(e){return e.location.x.peek()+3*e.size.width.peek()/2}).concat([30]));t.location.x(e),t.location.y(65)},p.prototype.startDrag=function(e){e&&e.name&&this._query().dbSchemaProvider.getDbTable(e.name)},p.prototype.doStopDrag=function(e,t){this.dragHelperContent.reset(),this.selection.dropTarget&&(e=this._getAbsoluteSurfacePosition(e),this._querySurface().underCursor().x=e.left-this._querySurface().absolutePosition.x(),this._querySurface().underCursor().y=e.top-this._querySurface().absolutePosition.y(),e=t,t=this.getDropCallback(this._undoEngine,!1)(e,this._query()),this.addControl(t,this._querySurface(),this._size))},p.prototype.addControl=function(e,t,r){t.getControlModel().addChild(e);e=d.findSurface(e);e&&(e.rect({left:t.underCursor().x,top:t.underCursor().y,width:r.width()}),this.selection.initialize(e))},p);function p(e,t,r,o,i){var n=a.call(this,e,t,r,o,i)||this;return n._undoEngine=r,n._query=function(){return n._querySurface().getControlModel()},n.getDropCallback=function(o,i){return function(e,t){var r=t.createChild(u.extend({"@ControlType":"Table","@Name":e.data.name},s.controlsFactory.controlsMap.Table.defaultVal));return r.isInitialized()?t.tryToCreateRelationsByFK(r):r.isInitialized.subscribe(function(){o().start(),t.tryToCreateRelationsByFK(r),o().end()}),i&&n.suggestLocation(r,t),r}},n._querySurface=e,n.cursor="arrow",n.containment=".dxqb-designer",n.cursorAt={top:0,left:0},n.helper=function(e){a.prototype.helper.call(n,e),n.recalculateSize(l.Size.fromString("199, 123")),i.setContent(new c.Rectangle(0,0,n._size.width(),n._size.height()))},n}t.DbObjectDragDropHandler=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerControls=void 0;var o=r(83),i=r(21),n=r(15),a=r(4),s=r(4),l=r(95),c=r(201),d=r(65),u=r(202),p=r(203),f=r(94),m=r(122),y=r(124),h=r(54),g=r(36),_=r(76),b=r(72),S=r(123),v=r(52),P=r(53),x=r(121);t.registerControls=function(){o.registerControls(),i.controlsFactory.registerControl("Unknown",{info:n.unknownSerializationsInfo,type:a.ElementViewModel,nonToolboxItem:!0,surfaceType:s.SurfaceElementBase,isDeleteDeny:!0}),i.controlsFactory.registerControl("Relation",{info:l.relationSerializationInfo,defaultVal:{},surfaceType:c.RelationSurface,popularProperties:[],type:d.RelationViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("JoinCondition",{info:u.joinConditionSerializationInfo,defaultVal:{},surfaceType:p.JoinConditionSurface,popularProperties:["_parentColumnName","_nestedColumnName","joinType"],type:f.JoinConditionViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("Table",{info:m.tableSerializationInfo,defaultVal:{},surfaceType:y.TableSurface,popularProperties:["name","alias","columns"],type:h.TableViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("Column",{info:g.columnSerializationInfo,defaultVal:{},surfaceType:_.ColumnSurface,popularProperties:["name","alias","selected"],type:b.ColumnViewModel,elementActionsTypes:[],nonToolboxItem:!0,isDeleteDeny:!0}),i.controlsFactory.registerControl("Query",{info:S.querySerializationsInfo,surfaceType:v.QuerySurface,popularProperties:["name","filterString","groupFilterString"],type:P.QueryViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0,isDeleteDeny:!0}),i.controlsFactory.registerControl("FTable",{info:m.tableSerializationInfo,defaultVal:{},surfaceType:x.FederationTableSurface,popularProperties:["name","alias","columns"],type:x.FederationTableViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("FQuery",{info:x.federationQuerySerializationsInfo,surfaceType:x.FederationQuerySurface,popularProperties:["name"],type:x.FederationQueryViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0,isDeleteDeny:!0})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.RelationSurface=void 0,r(2)),s=r(4),l=r(0),r=(i=s.SurfaceElementBase,n(c,i),c.prototype._getChildrenHolderName=function(){return"conditions"},c);function c(e,t){t=i.call(this,e,t,null)||this;return t.conditions=a.observableArray(),t.template="dxqb-relation",l.createObservableArrayMapCollection(e.conditions,t.conditions,t._createSurface),t}t.RelationSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinConditionSerializationInfo=t.ConditionType=void 0;r=r(28);t.ConditionType={Equal:"Equal",NotEqual:"NotEqual",Greater:"Greater",GreaterOrEqual:"GreaterOrEqual",Less:"Less",LessOrEqual:"LessOrEqual"},t.joinConditionSerializationInfo=[{propertyName:"left",displayName:"Left",editor:r.editorTemplates.getEditor("text"),disabled:!0,localizationId:"AnalyticsCoreStringId.QueryBuilder_LeftOperand"},{propertyName:"right",displayName:"Right",editor:r.editorTemplates.getEditor("text"),disabled:!0,localizationId:"AnalyticsCoreStringId.QueryBuilder_RightOperand"},{propertyName:"parentColumnName",modelName:"@Parent"},{propertyName:"nestedColumnName",modelName:"@Nested"},{propertyName:"joinType",displayName:"Join Type",editor:r.editorTemplates.getEditor("combobox"),defaultVal:"Inner",valuesArray:[{value:"Inner",displayValue:"Inner join",localizationId:"DataAccessStringId.RelationEditorRelationTypeInnerJoin"},{value:"LeftOuter",displayValue:"Left outer join",localizationId:"DataAccessStringId.RelationEditorRelationTypeLeftOuterJoin"},{value:"RightOuter",displayValue:"Right outer join",localizationId:"DataAccessStringId.RelationEditorRelationTypeRightOuterJoin"},{value:"FullOuter",displayValue:"Full outer join",localizationId:"DataAccessStringId.RelationEditorRelationTypeFullOuterJoin"}],localizationId:"AnalyticsCoreStringId.QueryBuilder_JoinType"},{propertyName:"operator",modelName:"@Operator",displayName:"Operator",editor:r.editorTemplates.getEditor("combobox"),defaultVal:t.ConditionType.Equal,valuesArray:[{value:"Equal",displayValue:"Equals to",localizationId:"DataAccessUIStringId.JoinEditorEqualOperator"},{value:"NotEqual",displayValue:"Does not equal to",localizationId:"DataAccessUIStringId.JoinEditorNotEqualOperator"},{value:"Greater",displayValue:"Is greater than",localizationId:"DataAccessUIStringId.JoinEditorGreaterOperator"},{value:"GreaterOrEqual",displayValue:"Is greater than or equal to",localizationId:"DataAccessUIStringId.JoinEditorGreaterOrEqualOperator"},{value:"Less",displayValue:"Is less than",localizationId:"DataAccessUIStringId.JoinEditorLessOperator"},{value:"LessOrEqual",displayValue:"Is less than or equal to",localizationId:"DataAccessUIStringId.JoinEditorLessOrEqualOperator"}],localizationId:"AnalyticsCoreStringId.QueryBuilder_Operator"},{propertyName:"itemType",modelName:"@itemType"}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JoinConditionSurface=void 0,r(2)),r=r(60),r=(i=r.RoutedConnectorSurface,n(s,i),s.prototype.container=function(){return this.getRoot()},s);function s(e,t){t=i.call(this,e,t)||this;return t._disposables.push(t.showArrow=a.pureComputed(function(){return"LeftOuter"===e.joinType()||"FullOuter"===e.joinType()})),t._disposables.push(t.showRightArrow=a.pureComputed(function(){return"RightOuter"===e.joinType()||"FullOuter"===e.joinType()})),t}t.JoinConditionSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSQueryBuilder=void 0;var o=r(1),i=r(0),n=r(61);function a(e){this._queryBuilderModel=e}Object.defineProperty(a.prototype,"queryBuilderModel",{get:function(){return this._queryBuilderModel()},set:function(e){this._queryBuilderModel(e)},enumerable:!1,configurable:!0}),a.prototype.UpdateLocalization=function(e){o.updateLocalization(e)},a.prototype.GetQueryBuilderModel=function(){return this.queryBuilderModel},a.prototype.GetJsonQueryModel=function(){return{Query:this.queryBuilderModel.model().serialize()}},a.prototype.GetSaveQueryModel=function(){return{queryLayout:JSON.stringify(this.GetJsonQueryModel()),connection:this.SerializeDataConnection()}},a.prototype.SerializeDataConnection=function(){var e=this.queryBuilderModel.model().dbSchemaProvider.connection;return n.serializeDataConnection(e)},a.prototype.AdjustControlCore=function(){this.queryBuilderModel&&this.queryBuilderModel.updateSurfaceSize()},a.prototype.Save=function(){this.queryBuilderModel&&this.queryBuilderModel.model().onSave()},a.prototype.ShowPreview=function(){this.queryBuilderModel&&this.queryBuilderModel.showPreview()},a.prototype.IsQueryValid=function(){return this.queryBuilderModel&&this.queryBuilderModel.model().isValid()},a.prototype.OnCallback=function(e){e.queryValidationError&&i.NotifyAboutWarning(e.queryValidationError,!0)},t.JSQueryBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventGenerator=void 0;var o=r(246),i=r(247);function n(){}n.generateQueryBuilderEvents=function(r){return{beforeRender:function(e){r("BeforeRender",e)},saveQueryRequested:function(e){r("SaveQueryRequested",e)},customizeActions:function(e){r("CustomizeMenuActions",{Actions:e,GetById:function(t){return t?e.filter(function(e){return t===e.id})[0]:null}})},customizeLocalization:function(t){r("CustomizeLocalization",{LoadMessages:function(e){e&&("function"==typeof e.then?t.push(e):i.loadMessages(e))},WidgetLocalization:o})},onServerError:function(e){r("OnServerError",{Error:e})}}},t.EventGenerator=n},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.createDiagramDesigner=s.groups=void 0;var l=t(2),c=t(3),r=t(23),d=t(79),u=t(1),p=t(57),f=t(80),m=t(0),y=t(128),h=t(127),g=t(0),_=t(0),b=t(83);s.groups={Appearance:{info:[]},Behavior:{info:[]},Design:{info:[r.name]},Layout:{info:[r.location,r.size,d.pageWidth,d.pageHeight]}},s.createDiagramDesigner=function(e,t,r,o){function i(){a()}r&&u.addCultureInfo({messages:r}),b.registerControls();var n=l.pureComputed(function(){return new d.DiagramViewModel(t())}),r=l.pureComputed(function(){return new f.DiagramSurface(n())}),a=((o=m.createDesigner(n,r,p.diagramControlsFactory,s.groups,void 0,void 0,o)).connectionPointDragHandler=new y.ConnectionPointDragHandler(r,o.selection,o.undoEngine,o.snapHelper,o.dragHelperContent),o.connectingPointDragHandler=new h.ConnectingPointDragHandler(r,o.selection,o.undoEngine,o.snapHelper,o.dragHelperContent),o.isLoading(!1),o.selection.focused(r()),c(e).children().remove(),l.applyBindings(o,e),g.updateSurfaceContentSize(o.surfaceSize,e));return window.addEventListener("resize",i),_.addDisposeCallback(e,function(){window.removeEventListener("resize",i)}),o.tabPanel.width.subscribe(function(){a()}),a(),o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),n=r(3),a=(r(17),r(17),r(17),r(17),r(0)),s=r(0),l=r(0);i.bindingHandlers.routeLineDraggable={init:function(e,t){var o=t(),t=l.extend({snap:".dxrd-drag-snap-line",snapTolerance:a.SnapLinesHelper.snapTolerance},i.unwrap(o),{start:function(e,t){o.starting()},stop:function(e,t){o.stopped()},drag:function(e,t){var r=t.position.left-t.originalPosition.left,t=t.position.top-t.originalPosition.top;o.forceResize({delta:{dx:r,dy:t}})}});n(e).draggable(t)}},i.bindingHandlers.updateConnectorArrow={init:function(e,t,r,o,i){var n,a;n=-1,"Microsoft Internet Explorer"==navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&(n=parseFloat(RegExp.$1)):"Netscape"==navigator.appName&&null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&(n=parseFloat(RegExp.$1)),-1<n&&n<=11&&(a=i.$data.routePointsSet.subscribe(function(){i.$data.showArrow()&&e.parentNode.insertBefore(e,e)}),s.addDisposeCallback(e.parentNode,function(){return a.dispose()}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){e.exports=DevExpress.Analytics.Widgets.Filtering},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(k,e,t){"use strict";var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(e,"__esModule",{value:!0}),e._createMultiQueryDataSourceWizard=e._registerMultiQueryDataSourcePages=e.MultiQueryDataSourceWizardPageIterator=e.MultiQueryDataSourceWizard=e._MultiQueryDataSourceWizardOptions=void 0,t(182)),a=t(33),s=t(12),l=t(56),c=t(51),d=t(0),u=t(48),p=t(1),f=t(5),m=t(68),y=t(50),h=t(69),g=t(67),_=t(126),b=t(111),S=t(114),v=t(116),P=t(32),x=t(147),C=t(148),T=t(101),w=t(117),O=t(125),t=(r=n._DataSourceWizardOptionsBase,i(D,r),D);function D(){return null!==r&&r.apply(this,arguments)||this}e._MultiQueryDataSourceWizardOptions=t;N=a.PopupWizard,i(E,N),E.prototype.canRunWizard=function(){return this._wizardOptions.jsonDataSourceAvailable||this._wizardOptions.sqlDataSourceAvailable||this._wizardOptions.objectDataSourceAvailable},E.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new A(e,t,r._wizardOptions)}),this._wizardOptions.sqlDataSourceAvailable||!d.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=u.DataSourceType.Sql:this._wizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource?e.dataSourceType=u.DataSourceType.Json:this._wizardOptions.objectDataSourceAvailable&&(e.dataSourceType=u.DataSourceType.Object),N.prototype.initialize.call(this,e,t)};var N,I=E;function E(e,t){e=N.call(this,e,t.callbacks.finishCallback)||this;return e._wizardOptions=t,e.title=p.getLocalization("Data Source Wizard","AnalyticsCoreStringId.SqlDSWizard_Title"),e._extendCssClass="dxrd-multiqueries-sqldatasource-wizard",e.height(443),e}e.MultiQueryDataSourceWizard=I;z=c.PageIterator,i(M,z),M.prototype.getNextPageId=function(e){if(!e&&this._wizardOptions.jsonDataSourceAvailable&&this._wizardOptions.sqlDataSourceAvailable)return f.DataSourceWizardPageId.ChooseDataSourceTypePage;if(!e)return this.getNextPageId(f.DataSourceWizardPageId.ChooseDataSourceTypePage);if(e===f.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Sql)return f.SqlDataSourceWizardPageId.ChooseConnectionPage;if(e===f.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Federation)return f.FederationDataSourceWizardPageId.FederatedQueryConfigurePage;if(e===f.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Object)return f.ObjectDataSourceWizardPageId.ChooseTypesPage;if(e===f.ObjectDataSourceWizardPageId.ChooseTypesPage&&this._getCurrentState().objectDataSourceWizard.selectedType)return f.ObjectDataSourceWizardPageId.ChooseDataMembersPage;if(e===f.ObjectDataSourceWizardPageId.ChooseDataMembersPage)return f.ObjectDataSourceWizardPageId.ConfigureParametersPage;if(e===f.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Json&&0<this._wizardOptions.connectionStrings.json().length)return f.JsonDataSourceWizardPageId.ChooseConnectionPage;if(this._wizardOptions.allowCreateNewJsonConnection&&e===f.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Json)return f.JsonDataSourceWizardPageId.ChooseJsonSourcePage;if(e===f.JsonDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().jsonDataSourceWizard.connectionName)return f.JsonDataSourceWizardPageId.ChooseJsonSchemaPage;if(this._wizardOptions.allowCreateNewJsonConnection&&e===f.JsonDataSourceWizardPageId.ChooseConnectionPage&&!this._getCurrentState().jsonDataSourceWizard.connectionName)return f.JsonDataSourceWizardPageId.ChooseJsonSourcePage;if(e===f.JsonDataSourceWizardPageId.ChooseJsonSourcePage)return f.JsonDataSourceWizardPageId.ChooseJsonSchemaPage;if(e===f.SqlDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().sqlDataSourceWizard.name)return f.SqlDataSourceWizardPageId.MultiQueryConfigurePage;if(this._getCurrentState().sqlDataSourceWizard.sqlDataSourceJSON&&e===f.SqlDataSourceWizardPageId.MultiQueryConfigurePage&&0<this._getCurrentState().sqlDataSourceWizard.customQueries.length)return f.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage;if(e===f.SqlDataSourceWizardPageId.MultiQueryConfigurePage||e===f.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage){if(1<s._restoreSqlDataSourceFromState(this._getCurrentState().sqlDataSourceWizard).sqlDataSource.queries().length)return f.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage}else if(e===f.FederationDataSourceWizardPageId.FederatedQueryConfigurePage)if(1<s._restoreFederationDataSourceFromState(this._getCurrentState().federationDataSourceWizard,this._wizardOptions.dataSources).queries().length)return f.FederationDataSourceWizardPageId.FederatedMasterDetailRelationshipsPage};var z,A=M;function M(e,t,r){e=z.call(this,e,t)||this;return e._wizardOptions=r,e}function j(e,t){return void 0===e&&(e=new l.PageFactory),u._registerChooseDataSourceTypePage(e,t),m._registerChooseJsonConnectionPage(e,t),y._registerChooseJsonSourcePage(e,t.requestWrapper,t.callbacks.getItemsProviderCallback),h._registerChooseJsonSchemaPage(e,t.requestWrapper,t.callbacks),g._registerChooseSqlConnectionPage(e,t.connectionStrings.sql),_._registerSpecifyObjectDataSourceSettingsPage(e,t),w._registerFederatedQueryConfigurePage(e,t),O._registerFederatedMasterDetailRelationshipsPage(e,P.wrapGetFederationdResultSchema(t.callbacks.federationDataSourceResultSchema),t),b._registerMultiQueryConfigurePage(e,t),S._registerMultiQueryConfigureParametersPage(e,t.requestWrapper),v._registerConfigureMasterDetailRelationshipsPage(e,P.wrapRebuildResultSchema(t.callbacks.sqlDataSourceResultSchema)),x._registerChooseObjectDataSourceTypesPage(e,t),C._registerChooseObjectDataSourceDataMembersPage(e,t),T._registerConfigureObjectDataSourceParametersPage(e,t.callbacks.getItemsProviderCallback),e}e.MultiQueryDataSourceWizardPageIterator=A,e._registerMultiQueryDataSourcePages=j,e._createMultiQueryDataSourceWizard=function(e,t){return j(e=void 0===e?new l.PageFactory:e,t),new I(e,t)}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._createDataSourceFullscreenWizard=t.FullscreenDataSourceWizardPageIterator=t.FullscreenDataSourceWizard=void 0,r(191)),s=r(51),l=r(0),c=r(48),d=r(1),u=r(5),p=r(183),f=r(189),m=r(188),y=r(126),h=r(190),g=(i=a.FullscreenWizard,n(_,i),_.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new S(e,t,r._dataSourceWizardOptions,function(e){return r._onResetPage(e)})}),this._dataSourceWizardOptions.sqlDataSourceAvailable||!l.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=c.DataSourceType.Sql:this._dataSourceWizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource?e.dataSourceType=c.DataSourceType.Json:!this._dataSourceWizardOptions.objectDataSourceAvailable&&l.isEmptyObject(e.objectDataSourceWizard)||(e.dataSourceType=c.DataSourceType.Object),i.prototype.initialize.call(this,e,t)},_.prototype.canRunWizard=function(){return this._dataSourceWizardOptions.canCreateDataSource},_.prototype._description=function(){return d.getLocalization("Data Source Wizard","AnalyticsCoreStringId.DSWizard_Title")},_);function _(e,t){e=i.call(this,e,t.callbacks.finishCallback)||this;return e._dataSourceWizardOptions=t,e}t.FullscreenDataSourceWizard=g;b=s.PageIterator,n(v,b),v.prototype._isMoreThanOneDataSourceTypeAvailable=function(){return this._dataSourceOptions.sqlDataSourceAvailable?this._dataSourceOptions.jsonDataSourceAvailable||this._dataSourceOptions.objectDataSourceAvailable:this._dataSourceOptions.jsonDataSourceAvailable&&this._dataSourceOptions.objectDataSourceAvailable},v.prototype.getNextPageId=function(e){return!e&&this._isMoreThanOneDataSourceTypeAvailable()?u.DataSourceWizardPageId.ChooseDataSourceTypePage:!e&&this._dataSourceOptions.sqlDataSourceAvailable?u.FullscreenDataSourceWizardPageId.SpecifySqlDataSourceSettingsPage:!e&&this._dataSourceOptions.jsonDataSourceAvailable?u.FullscreenDataSourceWizardPageId.SpecifyJsonDataSourceSettingsPage:!e&&this._dataSourceOptions.objectDataSourceAvailable?u.FullscreenDataSourceWizardPageId.SpecifyObjectDataSourceSettingsPage:e===u.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===c.DataSourceType.Json?u.FullscreenDataSourceWizardPageId.SpecifyJsonDataSourceSettingsPage:e===u.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===c.DataSourceType.Sql?u.FullscreenDataSourceWizardPageId.SpecifySqlDataSourceSettingsPage:e===u.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===c.DataSourceType.Object?u.FullscreenDataSourceWizardPageId.SpecifyObjectDataSourceSettingsPage:e===u.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===c.DataSourceType.Federation?u.FullscreenDataSourceWizardPageId.SpecifyFederationDataSourceSettingsPage:void 0};var b,S=v;function v(e,t,r,o){e=b.call(this,e,t,o)||this;return e._dataSourceOptions=r,e}t.FullscreenDataSourceWizardPageIterator=S,t._createDataSourceFullscreenWizard=function(e){var t=new p.FullscreenWizardPageFactory;return c._registerChooseDataSourceTypePage(t,e),t.getMetadata(u.DataSourceWizardPageId.ChooseDataSourceTypePage).navigationPanelText=d.getLocalization("Select Data Source Type","AnalyticsCoreStringId.Wizard_SelectDataSourceType"),f._registerSpecifySqlDataSourceSettingsPage(t,e),h._registerSpecifyFederationDataSourceSettingsPage(t,e),m._registerSpecifyJsonDataSourceSettingsPage(t,e),y._registerSpecifyObjectDataSourceSettingsPage(t,e),new g(t,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WizardAction=void 0;var o=r(2);t.WizardAction=function(e,t){this.handler=e,this.isVisible=o.observable(!0),this.isDisabled=o.observable(!1),this.text=t}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ManageFederatedQueriesEditor=void 0,r(2)),s=r(0),l=r(0),c=r(6),d=r(7),u=r(118),p=r(8),f=r(119),r=(i=p.PopupEditorBase,n(m,i),m.prototype._createAddQueryButton=function(){var e=new u.FederatedQueriesTreeNode("queries",l.getLocalization("Federated Queries","DataAccessUIStringId.FederatedQueryCollectionList_Title"),"list",!1,a.observable({showQbCallBacks:this._queriesPopupHelper.callBacks})).popoverListItems(),e={text:l.getLocalization("Add query","AnalyticsCoreStringId.SqlDSWizard_AddQuery"),items:e.map(function(e){return{text:e.name,onClick:e.addAction}}),dropDownOptions:{width:150},useItemTextAsTitle:!1};this.buttonItems.push({toolbar:"bottom",location:"before",template:function(){return c.getTemplate("dxrd-managequeries-selectbox")},options:e})},m.prototype.save=function(){var r=this;this.queriesStoreData().forEach(function(t){var e=s.findFirstItemMatchesCondition(r._dataSource.queries(),function(e){return e.alias()===t.id});e.sources().forEach(function(e){return r._dataSource.addSource(e)}),e&&t.id!==t.name&&e.alias(t.name)}),this._callBack(),i.prototype.save.call(this),this.dispose()},m.prototype.close=function(){i.prototype.close.call(this),this.dispose()},m.prototype.dispose=function(){i.prototype.dispose.call(this),this.queriesGrid=null,this._dataSource=null,this._callBack=null},m.prototype.title=function(){return l.getLocalization("Manage Queries","DataAccessUIStringId.FederatedQueryCollectionEditorForm_Title")},m);function m(e,t,r){void 0===r&&(r=!1);var o=i.call(this)||this;return o._dataSource=e,o._callBack=t,o.rtl=r,o.className="dxrd-federated-manageQueries-editor",o._disposables.push(o._queriesPopupHelper=new f.FederatedQueriesHelper(o._dataSource,o._dataSource.queries,function(){return null},r)),o._createAddQueryButton(),o.queriesStoreData=a.pureComputed(function(){return o._dataSource&&o._dataSource.queries().map(function(e){return{name:e.alias(),id:e.alias(),type:d.FederationQueryType[e.queryType()]}})}),o._disposables.push(o.queriesStoreData),o.queriesGrid={rtlEnabled:r,dataSource:o.queriesStoreData,showColumnLines:!1,hoverStateEnabled:!0,scrolling:{mode:"infinite"},height:"100%",editing:{mode:"cell",allowUpdating:!0},onRowUpdating:function(e){e.oldData.alias=e.newData.name},columns:[{dataField:"name",get caption(){return l.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder")}},{type:"buttons",width:100,buttons:[{icon:"edit",onClick:function(e){switch(e.row.data.type){case d.FederationQueryType.SelectNode:o._queriesPopupHelper.callBacks.joinCallBack(e.row.data.id);break;case d.FederationQueryType.UnionNode:o._queriesPopupHelper.callBacks.unionCallBack(e.row.data.id);break;case d.FederationQueryType.TransformationNode:o._queriesPopupHelper.callBacks.transformCallBack(e.row.data.id)}},cssClass:"dxrd-manage-queries-actions dxd-icon-highlighted dxrd-image-operations-edit-query",template:c.getTemplate("dxrd-svg-operations-edit")},{icon:"delete",onClick:function(e){o._dataSource.removeQuery(e.row.data.id)},cssClass:"dxrd-manage-queries-actions dxd-icon-highlighted dxrd-image-recycle-bin",template:c.getTemplate("dxrd-svg-operations-recycle_bin")}]}]},o}t.ManageFederatedQueriesEditor=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(2),p=r(3),f=(r(17),r(17),r(17),r(17),r(0)),m=r(0),y=r(6);u.bindingHandlers.dxdTableView={init:function(e,t,r,o,i){var n,a,s=y.getTemplate("dxd-tableview"),l=p(e).append(s),c=!!i.$root.rtl,d=u.unwrap(t());return u.applyBindings({onDataScroll:function(e){0<=e.scrollOffset.left&&(n=n||l.find(".dxd-tableview-titles"),a=a||l.find(".dxd-tableview-data table"),n.offset({left:a.offset().left,top:n.offset().top}))},onDataScrollInitialized:function(e){var t;a=null,c&&(t=e.component,setTimeout(function(){return t.scrollTo({left:t.scrollWidth(),top:0})},1))},data:d,rtl:c,noDataText:f.noDataText,isImage:function(e){return"System.Byte[]"===d.schema[e].type},isImageTooLarge:function(e){return"!"===e[0]},getImageTooLargeText:function(e){return"Image too large ("+e.substring(1)+" bytes)"}},l.children()[0]),l.find(".dxd-tableview-titles .dxd-tableview-resizable").each(function(e,t){var r=p(t).find(".dxd-tableview-cell-text"),o=l.find(".dxd-tableview-data .dxd-tableview-resizable"+e),e=(e<d.schema.length-1&&p(t).resizable({handles:"e",alsoResize:o.parent(),resize:function(e,t){r.outerWidth(t.size.width),o.outerWidth(t.size.width)}}),Math.max(r.width(),o.width()));r.width(e),o.width(e)}),m.addDisposeCallback(l.children()[0],function(){l.find(".dxd-tableview-titles .dxd-tableview-resizable").each(function(e,t){p(t).data("ui-resizable")&&p(t).resizable("destroy")}),l=null}),{controlsDescendantBindings:!0}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JSQueryBuilderBinding=void 0,r(2)),s=r(3),l=r(204),c=r(0),d=r(195),u=r(1),p=r(205),f=r(0),m=r(6),y=(i=c.JSDesignerBindingCommon,n(h,i),h.prototype._applyBindings=function(e,t){this._disposables.push(e),t.children().remove();var r,t=t.append(this._templateHtml).children()[0];t&&(a.cleanNode(t),this._callbacks&&this._callbacks.beforeRender&&this._callbacks.beforeRender(e),a.applyBindings(e,t),r=setTimeout(function(){e&&e.updateSurfaceSize()},1),this._disposables.push({dispose:function(){return clearTimeout(r)}}))},h.prototype._initializeEvents=function(){var r=this;return this._getAvailableEvents(p.EventGenerator.generateQueryBuilderEvents(function(e,t){r._fireEvent(e,t)}))},h.prototype._initializeCallbacks=function(){if(this._options.callbacks)return this._initializeEvents()},h.prototype._createModel=function(e){return this._callbacks=this._initializeCallbacks(),d.createQueryBuilder(e,this._options,this._callbacks,!1)},h.prototype.dispose=function(){(this._deferreds||[]).forEach(function(e){e.reject()}),i.prototype.dispose.call(this)},h.prototype.applyBindings=function(t){function e(){i&&i.invokeAction&&(r._options.handlerUri=r._getServerActionUrl(i.host,i.invokeAction)),r._deferreds.push(r._createModel(t).done(function(e){r.options.queryBuilderModel(e),r.sender.queryBuilderModel=e,r._createDisposeFunction(t),r._applyBindings(r.sender.queryBuilderModel,o)}))}var r=this,o=s(t),i=this._options.requestOptions;i?this._getLocalizationRequest().done(function(e){e&&u.addCultureInfo(e)}).always(function(){e()}):e()},h);function h(e,t){t=i.call(this,a.unwrap(e),t)||this;return t.options=e,t._deferreds=[],t._templateHtml=m.getTemplate("dxrd-querybuilder"),e.queryBuilderModel=f._wrapModelInObservable(e.queryBuilderModel),t.sender=new l.JSQueryBuilder(e.queryBuilderModel),e.callbacks&&e.callbacks._eventSenderCreated&&e.callbacks._eventSenderCreated(t.sender),t}t.JSQueryBuilderBinding=y,a.bindingHandlers.dxQueryBuilder={init:function(e,t){t=a.unwrap(t());return new y(t||{}).applyBindings(e),{controlsDescendantBindings:!0}}},a.bindingHandlers.dxQueryBuilderSurface={init:function(e,t){var t=a.unwrap(t()),r=t.options,o=m.getTemplate("dxrd-querybuilder"),e=s(e).append(o),o=d.createQueryBuilderSurface(e.children()[0],r,t.creator);return r.queryBuilderModel(o),{controlsDescendantBindings:!0}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var r=r(225),o=window.DevExpress||{};r._addQueryBuilderToBundle(o),e.exports={Analytics:o.Analytics,QueryBuilder:o.QueryBuilder}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._addQueryBuilderToBundle=void 0;var o=r(226),i=r(227),n=r(228),a=r(229),s=r(230),l=r(231),c=r(233),d=r(234),u=r(235),p=r(237),f=r(238),m=r(239),y=r(243),h=r(244),g=r(245);t._addQueryBuilderToBundle=function(e){return e.Analytics=e.Analytics||{},e.QueryBuilder=g,e.Analytics.Diagram=o,e.Analytics.Data=i,e.Analytics.Data.Internal=n,e.Analytics.Data.Utils=a,e.Analytics.Data.Metadata=s,e.Analytics.Wizard=l,e.Analytics.Wizard.Internal=c,e.QueryBuilder.Widgets=d,e.QueryBuilder.Widgets.Internal=u,e.QueryBuilder.Metadata=p,e.QueryBuilder.Utils=f,e.QueryBuilder.Internal=m,e.QueryBuilder.Elements=y,e.QueryBuilder.Elements.Metadata=h,e}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(23),r(127),r(128),r(16),r(58),r(38),r(129),r(79),r(80),r(81),r(25),r(82),r(130),r(59),r(60),r(39),r(78),r(57),r(83),r(206),r(24),r(207),r(208),i(r(23),t),i(r(127),t),i(r(128),t),i(r(16),t),i(r(58),t),i(r(38),t),i(r(129),t),i(r(79),t),i(r(80),t),i(r(81),t),i(r(25),t),i(r(82),t),i(r(130),t),i(r(59),t),i(r(60),t),i(r(39),t),i(r(78),t),i(r(57),t),i(r(83),t),i(r(206),t),i(r(24),t),i(r(207),t),i(r(208),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(84),r(86),r(85),r(88),r(134),r(62),r(89),r(90),r(135),r(63),r(136),r(138),r(40),r(42),r(142),r(91),r(44),r(43),r(13),r(18),r(133),r(132),r(26),r(64),r(27),r(92),r(93),r(46),r(97),r(45),r(66),r(146),r(98),r(20),r(47),i(r(84),t),i(r(86),t),i(r(85),t),i(r(88),t),i(r(134),t),i(r(62),t),i(r(89),t),i(r(90),t),i(r(135),t),i(r(63),t),i(r(136),t),i(r(138),t),i(r(40),t),i(r(42),t),i(r(142),t),i(r(91),t),i(r(44),t),i(r(43),t),i(r(13),t),i(r(18),t),i(r(133),t),i(r(132),t),i(r(26),t),i(r(64),t),i(r(27),t),i(r(92),t),i(r(93),t),i(r(46),t),i(r(97),t),i(r(45),t),i(r(66),t),i(r(146),t),i(r(98),t),i(r(20),t),i(r(47),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(131),r(145),r(99),r(137),r(19),i(r(131),t),i(r(145),t),i(r(99),t),i(r(137),t),i(r(19),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(7),i(r(7),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(140),r(141),r(144),r(143),r(96),r(41),i(r(140),t),i(r(141),t),i(r(144),t),i(r(143),t),i(r(96),t),i(r(41),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(5),r(12),r(209),r(9),r(100),r(210),r(48),r(67),r(101),r(147),r(148),r(149),r(68),r(150),r(50),r(69),r(49),r(154),r(157),r(111),r(114),r(115),r(116),r(117),r(125),r(56),r(112),r(51),r(212),r(14),r(159),r(213),r(33),r(182),r(214),r(183),r(77),r(188),r(189),r(190),r(191),r(192),r(215),r(216),r(152),r(126),i(r(5),t),i(r(12),t),i(r(209),t),i(r(9),t),i(r(100),t),i(r(210),t),i(r(48),t),i(r(67),t),i(r(101),t),i(r(147),t),i(r(148),t),i(r(149),t),i(r(68),t),i(r(150),t),i(r(50),t),i(r(69),t),i(r(49),t),i(r(154),t),i(r(157),t),i(r(111),t),i(r(114),t),i(r(115),t),i(r(116),t),i(r(117),t),i(r(125),t),i(r(56),t),i(r(112),t),i(r(51),t),i(r(212),t),i(r(14),t),i(r(159),t),i(r(213),t),i(r(33),t),i(r(182),t),i(r(214),t),i(r(183),t),i(r(77),t),i(r(188),t),i(r(189),t),i(r(190),t),i(r(191),t),i(r(192),t),i(r(215),t),i(r(216),t),i(r(152),t),i(r(126),t)},function(e,t){e.exports={default:window.ace}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(187),r(186),r(184),r(185),r(106),r(151),r(10),r(160),r(158),r(113),r(166),r(118),r(181),r(180),r(170),r(169),r(71),r(167),r(168),r(110),r(109),r(155),r(108),r(22),r(107),r(153),r(217),r(103),r(104),r(102),r(105),i(r(187),t),i(r(186),t),i(r(184),t),i(r(185),t),i(r(106),t),i(r(151),t),i(r(10),t),i(r(160),t),i(r(158),t),i(r(113),t),i(r(166),t),i(r(118),t),i(r(181),t),i(r(180),t),i(r(170),t),i(r(169),t),i(r(71),t),i(r(167),t),i(r(168),t),i(r(110),t),i(r(109),t),i(r(155),t),i(r(108),t),i(r(22),t),i(r(107),t),i(r(153),t),i(r(217),t),i(r(103),t),i(r(104),t),i(r(102),t),i(r(105),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(139),i(r(139),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(28),r(156),r(70),r(193),r(218),r(119),r(194),r(176),r(174),r(175),r(55),r(173),r(172),r(165),r(161),r(162),r(164),r(163),r(236).registerEditorTemplates(),i(r(28),t),i(r(156),t),i(r(70),t),i(r(193),t),i(r(218),t),i(r(119),t),i(r(194),t),i(r(176),t),i(r(174),t),i(r(175),t),i(r(55),t),i(r(173),t),i(r(172),t),i(r(165),t),i(r(161),t),i(r(162),t),i(r(164),t),i(r(163),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerEditorTemplates=void 0;var o=r(193),i=r(28);t.registerEditorTemplates=function(){i.editorTemplates.registerEditors({bool:{header:"dx-boolean-select",custom:"dxqb-property-editor"},combobox:{header:"dx-combobox",custom:"dxqb-property-editor"},comboboxUndo:{header:"dx-combobox-undo",custom:"dxqb-property-editor",editorType:o.UndoEditor},text:{header:"dx-text",custom:"dxqb-property-editor"},filterEditor:{header:"dxrd-filterstring",custom:"dxqb-property-editor"},filterGroupEditor:{header:"dxrd-filterstringgroup",custom:"dxqb-property-editor"},numeric:{header:"dx-numeric",custom:"dxqb-property-editor"}})}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(15),i(r(15),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(87),r(21),r(11),r(7),i(r(87),t),i(r(21),t),i(r(11),t),i(r(7),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(195),r(219),r(198),r(220),r(73),r(200),r(197),r(120),r(32),r(61),r(196),r(199),r(241),r(242),r(221),r(121),r(179),i(r(195),t),i(r(219),t),i(r(198),t),i(r(220),t),i(r(73),t),i(r(200),t),i(r(197),t),i(r(120),t),i(r(32),t),i(r(61),t),i(r(196),t),i(r(199),t),i(r(221),t),i(r(121),t),i(r(179),t)},function(e,t){e.exports={default:DevExpress.config}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8).SvgTemplatesEngine.addTemplates({"dxdd-connection-line":'<svg class="dxdd-connection-line" style="width:100%; height: 100%"> <line class="dxd-qb-relationship-line-color" data-bind="attr: { x1: startPoint().relativeX, y1: startPoint().relativeY, x2: endPoint().relativeX, y2: endPoint().relativeY }" /> </svg>',"dxdd-connecting-point":'<div class="dxdd-connecting-point" data-bind="styleunit: position, trackCursor: underCursor, style: { \'marginLeft\': -3 * _context.zoom() + \'px\', \'marginTop\': -3 * _context.zoom() + \'px\' }, draggable: $root.connectingPointDragHandler"> <svg style="width:100%; height: 100%"> <line x1="0" y1="0" x2="100%" y2="100%" /> <line x1=0 y1="100%" x2="100%" y2="0" /> </svg> </div>',"dxdd-connection-point-selection":'<div class="dxrd-control" data-bind="draggable: $root.connectionPointDragHandler, styleunit: { top: relativeY, left: relativeX }"> </div>',"dxdd-connector":'<div class="dxdd-connector" data-bind="styleunit: position, trackCursor: underCursor"> \x3c!-- ko template: { name: \'dxdd-connection-line\' } --\x3e \x3c!-- /ko --\x3e </div>',"dxdd-connector-selection":"<div class=\"dxdd-connector\" data-bind=\"styleunit: position, dxclick: function() {}, draggable: $root.dragHandler\"> \x3c!-- ko template: { name: 'dxdd-connection-line' } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: startPoint --\x3e \x3c!-- ko template: { name: 'dxdd-connection-point-selection' } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: endPoint --\x3e \x3c!-- ko template: { name: 'dxdd-connection-point-selection' } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>","dxdd-routed-connection-line":'<svg class="dxdd-connection-line"> <defs> \x3c!-- ko if: showArrow --\x3e <marker data-bind="attr: { id: \'dxqb-arrow_end\' + connectorID() }" viewBox="0 0 5 10" refX="5" refY="5" markerUnits="userSpaceOnUse" orient="auto" markerWidth="14" markerHeight="14"> <polyline class="dxd-qb-relationship-line-color" points="0,0 5,5 0,10" /> </marker> \x3c!-- /ko --\x3e \x3c!-- ko if: showRightArrow --\x3e <marker data-bind="attr: { id: \'dxqb-arrow_start\' + connectorID() }" viewBox="0 0 5 10" refX="5" refY="5" markerUnits="userSpaceOnUse" orient="auto-start-reverse" markerWidth="14" markerHeight="14"> <polyline class="dxd-qb-relationship-line-color" points="0,0 5,5 0,10" /> </marker> \x3c!-- /ko --\x3e </defs> <polyline class="dxd-qb-relationship-line-color" fill="none" data-bind="attr: { points: routePointsSet, \'marker-end\': showArrow() ? \'url(#dxqb-arrow_end\' + connectorID() + \')\' : \'\', \'marker-start\': showRightArrow() ? \'url(#dxqb-arrow_start\' + connectorID() + \')\' : \'\' }, updateConnectorArrow: $data" /> </svg>',"dxdd-routed-connector":'<div class="dxdd-connector" data-bind="styleunit: position, visible: isVisible"> \x3c!-- ko template: { name: \'dxdd-routed-connection-line\' } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: routeLineWrappers --\x3e <div data-bind="styleunit: position" style="position: absolute;"> \x3c!-- ko with: $parent --\x3e <div class="dxd-selectable" data-bind="trackCursor: underCursor, click: $root.selectItemProperties" style="position: relative; width: 100%; height: 100%;"></div> \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div>',"dxdd-routed-connector-selection":'<div class="dxdd-connector dxrd-selected dxd-state-selected" data-bind="styleunit: position, dxclick: function() {}, visible: isVisible"> \x3c!-- ko template: { name: \'dxdd-routed-connection-line\' } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: routeLineWrappers --\x3e \x3c!-- ko ifnot: isLocked --\x3e <div data-bind="styleunit: position, style: { cursor: isVerticalLine ? \'ew-resize\' : \'ns-resize\' }, routeLineDraggable: { starting: $root.resizeHandler.starting, stopped: function() { resizeStopped(); $root.resizeHandler.stopped(); }, forceResize: resizeHandler }" style="position: absolute;"> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: isLocked --\x3e <div data-bind="styleunit: position" style="position: absolute;"> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: startPoint --\x3e \x3c!-- ko template: { name: \'dxdd-connection-point-selection\' } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: endPoint --\x3e \x3c!-- ko template: { name: \'dxdd-connection-point-selection\' } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-diagram-element":'<div class="dxrd-control dxd-selectable" data-bind="styleunit: position, trackCursor: underCursor"> <div class="dxrd-control-content-main" data-bind="styleunit: { lineHeight: positionLineHeightWithoutMargins }, style: css"> <div data-bind="template: contenttemplate, styleunit: { \'height\': positionLineHeightWithoutMargins, \'width\': positionWidthWithoutMargins }"> </div> </div> </div>',"dx-diagram-element-selection":'<div class="dxrd-control" data-bind="event: { dblclick: $root.inlineTextEdit.show }, css: {\'dxrd-selected\': selected, \'dxrd-focused\': focused }, resizable: $root.resizeHandler, draggable: $root.dragHandler, styleunit: position, trackCursor: underCursor"> \x3c!-- ko if: !$root.inlineTextEdit.visible() --\x3e <div class="dxrd-control-content-main" data-bind="styleunit: { lineHeight: positionLineHeightWithoutMargins }, style: css"> <div data-bind="template: contenttemplate, styleunit: { \'height\': positionLineHeightWithoutMargins, \'width\': positionWidthWithoutMargins}"> </div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: $root.inlineTextEdit.visible --\x3e \x3c!-- ko with: $root.inlineTextEdit --\x3e <div class="inline-text-edit" data-bind="dxTextArea: { value: text, onKeyUp: keypressAction, valueChangeEvent: \'keyup\' }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-diagram-element-content":'<div style="width: 100%; height: 100%; border: 1px solid black"> <div data-bind="text: getControlModel().text"></div> </div>',"dxdd-element-content-with-connecting-points":'<div style="width: 100%; height: 100%; overflow: hidden"> <svg style="top:0; left: 0; width: 100%; height: 100%; stroke: black; fill: transparent; stroke-width: 1"> \x3c!-- ko if: getControlModel().type() === \'Ellipse\' --\x3e <ellipse cx="50%" cy="50%" rx="50%" ry="50%" /> \x3c!-- /ko --\x3e \x3c!-- ko if: getControlModel().type() === \'Condition\' --\x3e <line x1="50%" y1="0" x2="100%" y2="50%" /> <line x1="100%" y1="50%" x2="50%" y2="100%" /> <line x1="50%" y1="100%" x2="0" y2="50%" /> <line x1="0" y1="50%" x2="50%" y2="0" /> \x3c!-- /ko --\x3e \x3c!-- ko if: !getControlModel().type() --\x3e <rect height="100%" width="100%" /> \x3c!-- /ko --\x3e <text x="50%" y="50%" alignment-baseline="middle" style="text-anchor: middle; cursor:default;" data-bind="text: getControlModel().text"></text> </svg> \x3c!-- ko foreach: connectingPoints --\x3e \x3c!-- ko template: \'dxdd-connecting-point\' --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-diagram-surface":'<div class="dxrd-surface" style="height: 100%; display:inline-block;" data-bind="styleunit: { \'width\': Math.min(pageWidth(), $root.surfaceSize()) }, click: function(_, e) { $root.selection.clickHandler(null, e); e.stopPropagation(); }, keyDownActions: $root.actionLists"> <div class="dxrd-viewport" style="overflow:auto;width:inherit;height:inherit;" data-bind="styleunit: { minWidth: Math.min(pageWidth(), $root.surfaceSize()), maxWidth: pageWidth(), maxHeight: pageHeight() + 20 }"> <div data-bind="selectable: { selection: $root.selection, zoom: zoom }"> <div class="dxrd-ghost-containment"> <div class="dxrd-ghost-container" style="background: white;position: relative;" data-bind="styleunit: { \'width\': pageWidth(), \'height\': pageHeight() }, trackCursor: underCursor"> \x3c!-- ko foreach: controls --\x3e \x3c!-- ko template: { name: isSelected() ? selectiontemplate : template } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div> </div> </div>',"dxqb-joincondition":'<div class="dxdd-connector" data-bind="styleunit: position, trackCursor: underCursor"> <svg style="width:100%; height: 100%"> <line data-bind="attr: { x1: startPoint.x, y1: startPoint.y, x2: endPoint.x, y2: endPoint.y }" /> </svg> </div>',"dx-query-surface":'<div class="dxrd-surface" style="display:inline-block;" data-bind="styleunit: { \'width\': $root.surfaceSize }, click: function(_, e) { $root.selection.clickHandler(null, e); e.stopPropagation(); }, keyDownActions: $root.actionLists"> <div class="dxrd-viewport" style="width:inherit;height:inherit;"> <div class="dxqb-mainwin" data-bind="dxScrollView: { direction: \'both\', showScrollbar: \'onHover\', scrollByContent: false, scrollByThumb: true, bounceEnabled: false, useNative: false, height: \'100%\' }"> <div style="height:100%;"> <div class="dxrd-ghost-containment" style="height:100%;"> <div class="dxrd-ghost-container dxqb-ghost-container" data-bind="styleunit: { \'minWidth\': pageWidth, \'minHeight\': pageHeight }, trackCursor: { recalculateBounds: true, underCursor: underCursor }"> <div class="dxqb-main" data-bind="trackCursor: { recalculateBounds: true, underCursor: underCursor }, style: { \'z-index\' : $parent.dragDropStarted() ? 2 : null }"> \x3c!-- ko if: tables().length === 0--\x3e <div class="dxqb-placeholder dxd-empty-area-placeholder-text-color dxd-text-info" data-bind="text: placeholder()"></div> \x3c!-- /ko --\x3e \x3c!-- ko foreach: relations --\x3e \x3c!-- ko foreach: conditions --\x3e \x3c!-- ko if: !isSelected()--\x3e \x3c!-- ko template: template --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: tables --\x3e \x3c!-- ko template: template --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: relations --\x3e \x3c!-- ko foreach: conditions --\x3e \x3c!-- ko if: isSelected()--\x3e \x3c!-- ko template: selectiontemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: $root.columnDragHandler.dragDropConnector --\x3e <svg class="dxdd-connection-line-draggable" data-bind="styleunit: { top: position.top(), left: position.left() }"> \x3c!-- ko foreach: routePoints --\x3e \x3c!-- ko if: $index() < ($parent.routePoints().length - 1) --\x3e <line class="dxd-qb-relationship-line-color" fill="none" data-bind="attr: {x1 : $data.x, y1: $data.y, x2: $parent.routePoints()[$index()+1].x, y2: $parent.routePoints()[$index()+1].y }"></line> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </svg> \x3c!-- /ko --\x3e </div> </div> </div> </div> </div> </div> </div>',"dxqb-relation":"\x3c!-- ko foreach: conditions --\x3e \x3c!-- ko template: { name: isSelected() ? selectiontemplate : template } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e","dxqb-table-field":'<div class="dx-border-inheritor dxd-border-accented"> <div class="dxqb-table-field dxd-qb-table-field-border-color dxd-qb-table-field-back-color dxd-back-highlighted dxd-qb-table-field-separator-color dxd-border-primary" data-bind="trackCursor: { recalculateBounds: true, underCursor: underCursor }, draggable: $root.columnDragHandler, css: cssClasses($root.surface(), $root.columnDragHandler, $parent), click: $root.selectItemProperties"> <div class="dxqb-table-field-background dxd-back-accented"></div> <div class="dxqb-table-field-checkbox-wrapper"> <div class="dxqb-table-field-checkbox" data-bind="dxCheckBox: { value: selectedWrapper }, click: function(surface, e) { surface.toggleSelected(); e.stopPropagation(); return true; }"></div> </div> <div class="dxqb-table-field-content dxd-text-primary" data-bind="attr: { title: getControlModel().actualName }"> <div class="dxqb-table-field-state"> \x3c!-- ko if: $data.isAscending() --\x3e <div class="dxqb-image-field-state dxqb-image-field-sorting-asc">\x3c!-- ko template: \'dxrd-svg-queryBuilder-sorting_asc\' --\x3e\x3c!-- /ko --\x3e</div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.isDescending() --\x3e <div class="dxqb-image-field-state dxqb-image-field-sorting-desc">\x3c!-- ko template: \'dxrd-svg-queryBuilder-sorting_desc\' --\x3e\x3c!-- /ko --\x3e</div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.getControlModel().groupBy --\x3e <div class="dxqb-image-field-state dxqb-image-field-group-by">\x3c!-- ko template: \'dxrd-svg-queryBuilder-group_by\' --\x3e\x3c!-- /ko --\x3e</div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.isAggregate() --\x3e <div class="dxqb-image-field-state dxqb-image-field-aggregate">\x3c!-- ko template: \'dxrd-svg-queryBuilder-aggregate\' --\x3e\x3c!-- /ko --\x3e</div> \x3c!-- /ko --\x3e </div> <div class="dxqb-table-field-caption"> <div class="dxqb-table-field-text dxd-qb-table-field-text-color" data-bind="text: getControlModel().actualName"></div> </div> </div> </div> </div>',"dxqb-table-asterisk-field":'<div class="dx-border-inheritor dxd-border-accented"> <div class="dxqb-table-field dxd-qb-table-field-border-color dxd-qb-table-field-back-color dxd-back-highlighted dxd-border-primary" data-bind="trackCursor: underCursor, css: cssClasses(), click: $root.selectItemProperties"> <div class="dxqb-table-field-background dxd-back-accented"></div> <div class="dxqb-table-field-checkbox-wrapper"> <div class="dxqb-table-field-checkbox" data-bind="dxCheckBox: { value: selectedWrapper }, click: function(surface, e) { surface.toggleSelected(); e.stopPropagation(); return true; }"></div> </div> <div class="dxqb-table-field-content dxd-text-primary" data-bind="attr: { title: getControlModel().name }"> <div class="dxqb-table-field-caption"> <div class="dxqb-table-field-text dxd-qb-table-field-text-color" data-bind="text: getControlModel().name"></div> </div> </div> </div> </div>',"dxqb-table-main":'\x3c!-- ko if: $data.isSelected() --\x3e <div class="dxqb-table-resize-ghost" data-bind="resizable: resizable($root.resizeHandler, $element), styleunit: position"></div> \x3c!-- /ko --\x3e <div class="dxrd-control" data-bind="css: {\'dxrd-selected\': selected, \'dxrd-focused\': focused }, draggable: $root.dragHandler, styleunit: position, trackCursor: underCursor, click: $root.selectItemProperties"> <div class="dxrd-control-content-main dxd-qb-table-back-color dxd-back-primary2" data-bind="styleunit: { lineHeight: position.lineHeight }, style: css"> <div class="dxqb-table-background dxd-back-accented"></div> <div class="dx-background-inheritor dxd-back-accented"> <div class="dxqb-table-border dxd-qb-table-border-color dxd-back-highlighted dxd-state-active dxd-state-no-hover"></div> </div> <div data-bind="template: contenttemplate, styleunit: { \'height\': position.lineHeight, \'width\': position.width }"> </div> </div> </div>',"dxqb-table":'<div class="dxqb-table dxd-qb-table-back-color dxd-back-primary2"> <div class="dx-border-inheritor dxd-border-accented"> <div class="dxqb-table-head-field dxd-qb-table-field-border-color dxd-qb-table-field-back-color dxd-back-highlighted dxd-border-primary"> <div class="dxqb-table-checkbox-all"> <div data-bind="dxCheckBox: { value: selectedWrapper }, click: function(surface, e) { $root.undoEngine().start(); surface.toggleSelected(); $root.undoEngine().end(); e.stopPropagation(); return true; }"></div> </div> \x3c!-- ko template: titletemplate --\x3e \x3c!-- /ko --\x3e </div> </div> <div class="dxqb-table-content"> <div class="dxqb-tableFields-wrapper"> \x3c!-- ko ifnot: $data.isInitialized() --\x3e <div class="dxqb-table-loading"> <div class="dxqb-table-loading-text dxd-text-primary" data-bind="text: $root.columnsLoadingMsg()"></div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.isInitialized() --\x3e \x3c!-- ko template: { name: asterisk.template, data: asterisk } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: columns --\x3e \x3c!-- ko lazy: { template: $data.template }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div>',"dxqb-table-title":'<div class="dxqb-table-title" data-bind="style: { cursor: selected() ? \'move\' : \'default\' }"> <div class="dxqb-table-title-content dxd-text-primary" data-bind="text: getControlModel().actualName"></div> </div>',"dxqb-federation-table-title":'<div class="dxqb-table-title dxqb-federation-table-title" data-bind="event: { dblclick: $root.inlineTextEdit.show }, style: { cursor: selected() ? \'move\' : \'default\' }"> <div class="dxqb-federation-table-title-container"> \x3c!-- ko if: !$root.inlineTextEdit.visible() || !selected() --\x3e <div class="dxqb-table-title-content dxd-text-primary" data-bind="text: getControlModel().actualName"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $root.inlineTextEdit.visible() && selected() --\x3e \x3c!-- ko with: $root.inlineTextEdit --\x3e <div class="inline-text-edit" data-bind="dxTextArea: { value: text, onKeyUp: keypressAction, valueChangeEvent: \'keyup\' }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> <div class="dxqb-table-subtitle dxd-text-info" data-bind="text: getControlModel().displaySourceName"></div> </div>',"dxrd-masterDetail-editor":"\x3c!-- ko if: $data --\x3e <div> <div data-bind=\"dxPopup: { showTitle: true, width: '95%', height: '95%', title: title(), visible: popupVisible, wrapperAttr: { class: 'dx-filtereditor' }, toolbarItems: buttonItems, showCloseButton: true, container: $root.getPopupContainer($element), position: { of: $root.getPopupContainer($element) }, }\"> <div class=\"dx-filtereditor-tree dxd-border-secondary\" data-bind=\"dxScrollView: { showScrollbar: 'onHover', direction: 'both' }\" style=\"cursor: default\"> \x3c!-- ko foreach: masterQueries --\x3e <div class=\"criteria-operator-group\"> <div class=\"criteria-operator-group-item\"> <div class=\"criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-group dxd-filter-editor-group-back-color dxd-state-no-hover stylized\" data-bind=\"text: queryName\"></div> <div data-bind=\"service: { name: 'createRelation' }\"></div> </div> <div class=\"criteria-operator-content\"> \x3c!-- ko template: { name: 'dx-masterDetail-editor-relation', foreach: relations }--\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div> <div class=\"dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay\" data-bind=\"dxPopupWithAutoHeight: { width: '170px', height: '300px', focusStateEnabled: false, wrapperAttr: { class: 'dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay' }, position: $root.rtl ? { my: 'right top', at: 'right bottom', of: popupService.target } : { my: 'left top', at: 'left bottom', of: popupService.target }, container: $root.getPopupContainer($element), target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, hideOnOutsideClick: true, shading: false, visible: popupService.visible }\"> \x3c!-- ko with: popupService--\x3e \x3c!-- ko with: data --\x3e \x3c!-- ko template: template--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e","dx-masterDetail-editor-keyColumn":'<div class="criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-field dxd-filter-editor-field-back-color dxd-state-no-hover stylized" data-bind="attr: { title: $data.getTitle() }, text: queryName"></div> <div class="criteria-operator-text dxd-filter-editor-text-color">.</div> <div class="criteria-operator-text dxd-filter-editor-text-color"> <div data-bind="service: { name: \'setColumn\' }"></div> </div>',"dx-masterDetail-editor-relation":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $parent.remove($data); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> <div class="criteria-operator-item" data-bind="visible: isEditable"> <div class="criteria-operator-item-editor" data-bind="dxTextBox: { value: relationName, onFocusOut: function() { isEditable(false); } }, focus: { on: isEditable }"></div> </div> <div class="criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-value dxd-filter-editor-value-back-color" data-bind="visible: !isEditable()"> <div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: relationName, click: function() { isEditable(true); }"></div> </div> <div class="criteria-operator-action" data-bind="dxclick: create"> <div class="criteria-operator-action-image dx-image-filtereditor-add">\x3c!-- ko template: \'dxrd-svg-filtereditor-add\' --\x3e\x3c!-- /ko --\x3e</div> </div> </div> <div class="criteria-operator-content"> \x3c!-- ko foreach: keyColumns --\x3e <div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $parent.remove($data); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko template: { name: \'dx-masterDetail-editor-keyColumn\', data: master } --\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-text dxd-filter-editor-text-color"> = </div> \x3c!-- ko template: { name: \'dx-masterDetail-editor-keyColumn\', data: detail } --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dx-masterdetail-editor-setColumn":"<div class=\"criteria-operator-text dxd-filter-editor-text-color clickable criteria-operator-item-field dxd-filter-editor-field-back-color\" data-bind=\"text: target.column() || target.selectColumnText(), dxclick: showPopup, css: { 'dxd-state-selected': target.isSelected, 'default': !target.column() }\"></div>","dxqb-data-preview":'<div style="height: 100%" data-bind="dxdTableView: $data.value"></div>',"dxqb-popup":'<div data-bind="dxPopup: { animation: { show: { type: \'fade\', from: 0, to: 1, duration: 700 }, hide: { type: \'fade\', from: 1, to: 0, duration: 700 } }, wrapperAttr: { class: \'dxqb-preview\' }, visible: isVisible, title: title(), showTitle: true, resizeEnabled: true, shading: true, shadingColor: \'transparent\', fullScreen: false, width: 800, height: 544, container: container($element), position: { of: container($element) }, onHidden: function() { $data.data.value(null) }, focusStateEnabled: false }"> <div class="dxqb-preview-popup-content"> \x3c!-- ko if: data && !isLoading() --\x3e \x3c!-- ko template: { name: template, data: data } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: isLoading --\x3e <div style="text-align: center; padding-top: 25%;"> <div data-bind="dxLoadIndicator: { visible: true }"></div> </div> \x3c!-- /ko --\x3e </div> <div class="dxqb-preview-popup-buttons dxd-border-secondary"> <div class="dxqb-preview-popup-button" data-bind="dxButton: { text: okButtonText(), onClick: okButtonHandler, disabled: isLoading }"></div> </div> </div>',"dxqb-selectstatment-preview":'<div class="dxqb-show-query-string-content dx-widget"> \x3c!-- ko if: !aceAvailable --\x3e <div class="dxrd-show-query-string-editor" data-bind="dxTextArea: { value: value, valueChangeEvent: \'keyup\', readOnly: true }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dxrd-show-query-string-editor"> <div class="dxrd-show-query-string-editor-content"> <div class="dx-sql_editor dx-disabled-ace dxd-back-primary2" data-bind="dxAceEditor: { value: value, options: aceOptions, additionalOptions: additionalOptions }"></div> </div> </div> \x3c!-- /ko --\x3e </div>',"dxd-tableview":'<div class="dxd-tableview"> <div class="dxd-tableview-titles"> <table> <tbody> <tr> \x3c!-- ko foreach: rtl ? data.schema.reverse() : data.schema --\x3e <td data-bind="attr: { class: \'dxd-tableview-title-cell dxd-border-secondary dxd-tableview-resizable\' }"> <div class="dxd-tableview-cell-text dxd-qb-data-preview-cell-text-color dxd-text-info" data-bind="text: name"></div> </td> \x3c!-- /ko --\x3e </tr> </tbody> </table> </div> \x3c!-- ko if: data.values --\x3e <div class="dxd-tableview-data" data-bind="dxScrollView: { direction: \'both\', scrollByContent: false, showScrollbar: \'always\', scrollByThumb: true, bounceEnabled: false, useNative: false, onScroll: $data.onDataScroll, onInitialized: $data.onDataScrollInitialized }"> <table> <tbody> \x3c!-- ko foreach: data.values --\x3e <tr> \x3c!-- ko foreach: $parent.rtl ? $data.reverse() : $data --\x3e <td class="dxd-tableview-cell dxd-border-secondary"> \x3c!-- ko ifnot: $parents[1].isImage($index()) --\x3e <div data-bind="text: $data, attr: { class: \'dxd-tableview-cell-text dxd-text-primary dxd-tableview-resizable\' + $index() }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $parents[1].isImage($index()) --\x3e \x3c!-- ko if: $parents[1].isImageTooLarge($data) --\x3e <div data-bind="text: $parents[1].getImageTooLargeText($data), attr: { class: \'dxd-tableview-cell-text dxd-text-primary dxd-tableview-resizable\' + $index() }"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $parents[1].isImageTooLarge($data) --\x3e <div data-bind="attr: { class: \'dxd-tableview-cell-text dxd-text-primary dxd-tableview-resizable\' + $index() }"> <img data-bind="attr: { src: \'data:image/bmp;base64,\' + $data }" /> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </td> \x3c!-- /ko --\x3e </tr> \x3c!-- /ko --\x3e <tr class="dxd-tableview-data-fakerow"> \x3c!-- ko foreach: data.values[0] --\x3e <td class="dxd-tableview-cell dxd-border-secondary"> <div data-bind="attr: { class: \'dxd-tableview-cell-text dxd-text-primary dxd-tableview-resizable\' + $index() }"></div> </td> \x3c!-- /ko --\x3e </tr> </tbody> </table> </div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: data.values --\x3e <div class="dxd-tableview-empty-message" data-bind="text: noDataText()"></div> \x3c!-- /ko --\x3e </div>',"dxqb-fieldlist-wrapper":'<div id="tree" data-bind="treelist: treeListOptions" style="width:100%; height: 100%;"></div>',"dxqb-properties-wrapper":'<div class="dxrd-properties-wrapper" data-bind="visible: active() && visible()"> <div style="height:100%" class="dxd-text-primary"> \x3c!-- ko with: model --\x3e <div class="dxrd-properties-grid dxd-border-primary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }" style="top: 0px;"> <div> \x3c!-- ko foreach: groups --\x3e <div class="dx-fieldset" data-bind="visible: visible"> <div class="dx-accordion" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header dxd-border-primary" data-bind="css: { \'dxrd-group-header-collapsed\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: displayName()"></span> </div> <div class="dx-accordion-content dxd-back-primary dxd-border-primary"> \x3c!-- ko ifnot: editorsCreated --\x3e <div class="dx-accordion-content-loading-panel"> <div data-bind="dxLoadIndicator: { visible: !editorsCreated() }"></div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.editorsRendered() --\x3e <div data-bind="visible: editorsCreated"> <div class="dx-editors"> \x3c!-- ko foreach: editors --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: ($index() === $parent.editors().length - 1 && $parent.editorsCreated(true)) --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dxqb-propertygrid":'\x3c!-- ko with: value --\x3e <div class="dx-fieldset dxqb-selected-properties"> \x3c!-- ko foreach: properties.getEditors() --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e',"dxqb-fieldspanel":'\x3c!-- ko with: value --\x3e <div data-bind="treeListSearchPanel: { controllers: $data.fieldListModel.treeListOptions().treeListController }"></div> <div class="dxqb-right-panel-fields" data-bind="dxScrollView: { showScrollbar: \'onHover\', scrollByContent: false, scrollByThumb: true, bounceEnabled: false, useNative: false }"> \x3c!-- ko template: { name: "dxqb-fieldlist-wrapper", data: fieldListModel } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e',"dxqb-parameterspanel":'\x3c!-- ko with: value --\x3e <div class="dxqb-right-panel-parameters" data-bind="dxScrollView: { showScrollbar: \'onHover\', scrollByContent: false, scrollByThumb: true, bounceEnabled: false, useNative: false }"> <div style="width: 100%" data-bind="dxCollectionEditor: $data"></div> </div> \x3c!-- /ko --\x3e',"dxqb-collectioneditor-template":'<div class="dxrd-accordion-collection-item" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header"> <div> <div class="propertygrid-editor-collapsed dx-collapsing-image" data-bind="css: { \'dx-image-expanded\': !collapsed() }, template: \'dxrd-svg-collapsed\'"></div> <div class="dx-group-header-font" data-bind="text: $root.getLocalization($parent.name), attr: { title: $root.getLocalization($parent.name) }"></div> </div> </div> <div class="dx-accordion-content"> <div data-bind="dxPropertyGrid: { target: value, level: 1, parentDisabled: editor.disabled }"></div> </div> </div>',"dxqb-properties-wrapper-editorlist":'<div class="dxrd-properties-wrapper" data-bind="visible: active() && visible()"> <div style="height:100%" class="dxd-text-primary"> \x3c!-- ko with: model --\x3e <div class="dxrd-properties-grid dxd-border-primary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }" style="top: 0px;"> <div class="dx-fieldset dxqb-selected-properties"> \x3c!-- ko foreach: getEditors() --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dxqb-toolbar":'<div class="dxrd-toolbar-wrapper dxd-toolbar-back-color" data-bind="click: $root.findControl"> <div class="dxqb-toolbar-background dxd-back-primary-invariant"></div> <div class="dxrd-toolbar" data-bind="template: {name: \'dxqb-toolbar-items\', data: actionLists.toolbarItems }"></div> </div>',"dxqb-toolbar-items":'\x3c!-- ko foreach: $data --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dxrd-toolbar-item" data-bind="visible: visible"> <div class="dxqb-toolbar-item-container"> <div class="dxqb-toolbar-item-background dxd-back-secondary"></div> <div data-bind="template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { class: \'dxrd-toolbar-item-image dxd-icon-highlighted dxd-state-normal \' + (ko.unwrap($data.imageClassName) || \'\'), title: $data.displayText && $data.displayText() || text }, dxclick: function() { if((typeof $data.disabled === \'function\') && !disabled() || !disabled) { clickAction($root.model && $root.model()); } }, css: {\'dxrd-disabled-button\': disabled, \'dxd-state-active\': $data.selected }"> </div> </div> <div class="dxrd-toolbar-item-separator dxd-toolbar-separator-color dxd-border-secondary" data-bind="visible: $data.hasSeparator"></div> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e',"dxqb-property-editor":'<div class="dxrd-editor" data-bind="visible: visible"> <div class="dxrd-editor-header"> <div class="dx-field dxd-back-primary"> <div class="dx-field-label dxd-text-primary"> <div class="propertygrid-editor-displayName" data-bind="text: displayName, attr: { \'title\': displayName }"></div> </div> <div class="dx-field-value"> <div data-bind="service: { name: \'createEditorAddOn\' }"></div> \x3c!-- ko lazy: { template: templateName } --\x3e \x3c!-- /ko --\x3e </div> </div> </div> </div>',"dxqb-expressionstring":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxExpressionEditor: getOptions({ options: value, fieldListProvider: $root.parametersBindingsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() })"></div> \x3c!-- /ko --\x3e',"dxqb-filtereditor-changeparameter":'<div class="criteria-operator-item" data-bind="visible: target.isEditable"> <div class="criteria-operator-item" data-bind="dxTextBox: { value: target._parameterName, onFocusOut: function() { target.createParameter(); target.isEditable(false); } }"></div> </div> <div class="criteria-operator-text dxd-filter-editor-text-color clickable " data-bind="text: target.parameterName, dxclick: showPopup, css: { \'dxd-state-selected\': target.isSelected, \'default\': target.isDefaultTextDisplayed() }, visible: $data.target.isEditable() === false"></div>',"dxqb-filtereditor-propertiespopup":'<div class="dx-widget" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: data --\x3e <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dx-accordion-header"> <div class="dx-filtereditor-popup-item dxd-list-item-back-color dx-item dx-list-item dxd-back-highlighted"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block; margin-left: 5px;"></div> <span class="dx-item-content dx-list-item-content" style="padding-left: 17px" data-bind="text: name"></span> </div> </div> <div class="dx-accordion-content dxd-back-primary"> \x3c!-- ko foreach: items --\x3e <div class="dx-filtereditor-popup-item dx-item dx-list-item dxd-list-item-back-color dxd-back-highlighted"> <span class="dx-item-content dx-list-item-content" style="padding-left: 17px" data-bind="text: name, attr: { \'title\': name }, click: function() { $parents[1].click($data); }"></span> </div> \x3c!--/ko --\x3e </div> </div> \x3c!--/ko --\x3e </div>',"dxqb-filtereditor-parameterspopup":'<div class="dx-widget" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko if: $parent.viewModel.canCreateParameters --\x3e <div class="dx-filtereditor-popup-item dx-item dx-list-item dxd-list-item-back-color dxd-back-highlighted"> <span class="dx-item-content dx-list-item-content" data-bind="text: $parent.viewModel.defaultDisplay(), click: function() { $parent.viewModel.isEditable(true); $parent.viewModel._parameterName(\'\'); $parent.visible(false); }"></span> </div> \x3c!-- /ko --\x3e \x3c!-- ko foreach: data --\x3e <div class="dx-filtereditor-popup-item dx-item dx-list-item dxd-list-item-back-color dxd-back-highlighted"> <span class="dx-item-content dx-list-item-content" data-bind="text: name, click: function() { $parent.click($data); } "></span> </div> \x3c!-- /ko --\x3e </div>',"dxqb-treelist-item-with-search":'<div data-bind="visible: visible"> \x3c!-- ko template: "dxqb-treelist-header-item-with-search" --\x3e \x3c!-- /ko --\x3e </div>',"dxqb-treelist-header-item-with-search":'<div class="dx-treelist-item dxd-list-item-back-color dxd-back-highlighted" data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() } }, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected\': isSelected() || isMultiSelected() }"> <div class="dx-treelist-collapsedbutton"></div> <div class="dx-treelist-caption"> <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected, draggable: isDraggable ? dragDropHandler : null"> <div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> \x3c!-- ko template: { name: \'dx-treelist-item-text-content\' } --\x3e \x3c!-- /ko --\x3e </div> </div> </div>',"dxrd-page-choose-datasource-type":"<div class=\"dxrd-wizard-type-page\" data-bind=\"css: $data._extendCssClass('type-page')\"> \x3c!-- ko foreach: typeItems --\x3e <div data-bind=\"event: { click: $parent._itemClick, dblclick: function() { $parent._goToNextPage() } }, attr: { class: 'dxd-back-highlighted dxd-state-normal dxrd-wizard-type-item dx-fontsize-reestablished dxrd-wizard-type-item-border-color dxd-list-item-back-color ' + $parent._extendCssClass('type-item')}, css: { 'dxd-border-secondary dxd-back-secondary': $parent._IsSelected($data) } \"> <div data-bind=\"attr: { class: 'dxrd-wizard-type-image ' + $parent._extendCssClass('type-image') }, css: imageClassName, template: imageTemplateName\"> </div> <div class=\"dxrd-wizard-type-text\" data-bind=\"text: text, attr: { title: text }, css: $parent._extendCssClass('type-text')\"></div> </div> \x3c!-- /ko --\x3e </div>","dxrd-wizard-add-federated-queries-page":'<div class="dxrd-wizard-page dxrd-wizard-add-federation-queries-page dxrd-wizard-page-treelist-accordion-style"> <div data-bind="treeListSearchPanel: {controllers: ko.unwrap(_fieldListModel).treeListController}"></div> <div class="dxrd-wizard-dataMember dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _scrollViewHeight }"> <div class="dxrd-wizard-dataMember-treelist" data-bind="treelist: _fieldListModel" style="width:100%; height: 100%;"></div> </div> \x3c!-- ko template: { name: $data._queriesPopupHelper.template, data: _queriesPopupHelper } --\x3e \x3c!-- /ko --\x3e <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel: _loadPanelViewModel($element)"> </div> </div>',"dx-treelist-federation-action-with-popover":"<div class=\"dx-treelist-action-with-popover\" style=\"display: inline-block\"> <div class=\"dx-treelist-action\" data-bind=\"dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: $data.imageTemplateName, iconClass: $data.imageClassName , disabled: $data.disabled && $data.disabled() }, attr: { title: text }\"></div> \x3c!-- ko template: { name: 'dx-popover-list-items', data: ko.utils.extend($parent.data, { className: 'dxrd-federation-addqueries-popover', position: $root.rtl ? 'left' : 'right', popupContainer: $root.getPopupContainer, width: 150 }) }--\x3e \x3c!-- /ko --\x3e </div>","dxrd-querybuilder-select-popup-content":'<div class="dxrd-federation-result-grids dxrd-federation-data-container-column"> <div class="dxd-border-secondary dxrd-select-querybuilder-surface" data-bind="resizable: gridResizeHelper.resizable($root.resizeHandler, \'s\')"> <div style="height:100%;" data-bind="dxQueryBuilderSurface: queryBuilderSurfaceCreator"></div> </div> <div class="dx-accordion dxd-border-secondary dxrd-select-result-alias-grid" data-bind="dxdAccordion: { collapsed: joinResultCollapsed }"> <div class="dxd-back-secondary dx-accordion-header dxd-text-primary"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !joinResultCollapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: $root.getLocalization(\'Join result\', \'DataAccessUIStringId.FederationDataSourceQueryBuilder_SelectResult\')"></span> </div> <div class="dx-accordion-content dxd-border-secondary" data-bind="style: { height: resultGridHeight }"> <div class="dxrd-federation-action-add dxrd-collectioneditor-action" data-bind="dxButton: { icon: \'add\', disabled: addRowDisabled, onClick:addRow }"></div> <div data-bind="dxDataGrid: columnsGrid"></div> </div> </div> </div>',"dxrd-querybuilder-column-combobox-masked":'<div class="dxrd-querybuilder-column-container dxrd-querybuilder-column-container-masked"> <div class="dxrd-querybuilder-column-data"> <div class="dx-texteditor-input" data-bind="text: cellInfo.column || \' \'"></div> </div> <div class="dxrd-querybuilder-column-editorswitch"> \x3c!-- ko template: { name: \'dx-wizard-menu-box-editorswitch\', data: $data } --\x3e \x3c!-- /ko --\x3e </div> </div>',"dxrd-querybuilder-column-combobox":"<div class=\"dxrd-querybuilder-column-container dxrd-querybuilder-column-container-full\"> <div class=\"dxrd-querybuilder-column-data\"> <div class=\"dx-texteditor-input dx-padding-none\" data-bind=\"dxDropDownBox: { dataSource: $data.allColumns, dropDownOptions: { container: $root.getPopupContainer($element), width: $root.calculateWithZoomFactor(357) }, popupPosition: { boundary: $root.getPopupContainer($element) }, value: cellInfo.key, valueExpr: 'key', displayExpr: 'column' }, visible: !$data.isExpression()\"> <div data-bind=\"dxDataGrid: { dataSource: $data.allColumns, keyExpr: 'key', remoteOperations: true, height: $root.calculateWithZoomFactor(250), columns: [{ dataField: 'column', sortOrder: 'asc' } , { dataField: 'table'}], hoverStateEnabled: true, selection: { mode: 'single' }, selectedRowKeys: [cellInfo.key], focusedRowEnabled: true, focusedRowKey: cellInfo.key, onSelectionChanged: $data.changeColumn } \"></div> </div> <div class=\"dx-texteditor-input dx-padding-none\" data-bind=\"dxExpressionEditor: { options: expression, fieldListProvider: itemsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }, visible: $data.isExpression\"></div> </div> <div class=\"dxrd-querybuilder-column-editorswitch\"> \x3c!-- ko template: { name: 'dx-wizard-menu-box-editorswitch', data: $data } --\x3e \x3c!-- /ko --\x3e </div> </div>","dxrd-querybuilder-transform-popup-content":'<div class="dxrd-federation-result-grids dxrd-federation-data-container-column"> <div class="dx-accordion dxd-border-secondary dxrd-transform-source-grid dxrd-result-source-grid"> <div class="dxd-back-secondary dx-accordion-header dxd-text-primary"> <span class="dxrd-group-header-text" data-bind="text: $data.transformGridTitle"></span> </div> <div class="dx-accordion-content dxd-border-secondary"> <div class="dxd-border-primary dxrd-transform-source-grid dxrd-result-source-grid" data-bind="dxDataGrid: transformGrid"></div> </div> </div> <div class="dx-accordion dxd-border-secondary dxrd-transform-result-grid" data-bind="dxdAccordion: { collapsed: transformResultCollapsed }"> <div class="dxd-back-secondary dx-accordion-header dxd-text-primary"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !transformResultCollapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: $data.transformResultGridTitle"></span> </div> <div class="dx-accordion-content dxd-border-secondary"> <div data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div data-bind="treelist: resultFieldListModel" style="width:100%; height: 100%;"></div> </div> </div> </div> </div>',"dxrd-querybuilder-transform-checkbox":'<div class="dxrd-querybuilder-transform-checkbox" data-bind="dxCheckBox: transform"></div>',"dxrd-querybuilder-federation-popup":'<div data-bind="dxPopup: { showTitle: true, title: title(), wrapperAttr: { class: cssClass }, visible: popupVisible, toolbarItems: buttonItems, showCloseButton: true, fullScreen: false, maxHeight: maxHeight, height: height, width: width, onShowing: function(e) { $data.loaded(true); }, rtlEnabled: rtl, onHiding: onHiding, container: getPopupContainer($element), position: { of: getPopupContainer($element)}, resizeEnabled: true, minHeight: 450, minWidth: 650 }"> <div class="dxrd-querybuilder-federation-popup"> \x3c!-- ko if: popupVisible --\x3e \x3c!-- ko if: loaded --\x3e <div class="dxrd-federation-treelist-wrapper dxd-border-secondary" data-bind="resizable: resizeHelper.resizable($root.resizeHandler, \'e\')"> <div class="dxrd-federation-treelist" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div data-bind="treelist: fieldListModel" style="width:100%; height: 100%;"></div> </div> </div> <div class="dxrd-federation-data-container"> \x3c!-- ko template: { name: popupContentTemplate } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dxrd-querybuilder-union-popup-content":'<div class="dxrd-federation-result-grids dxrd-federation-data-container-column"> <div class="dxd-border-secondary dxrd-union-result-source-grid dxrd-result-source-grid" data-bind="dxDataGrid: sourcesGrid"></div> <div class="dxd-border-secondary dxrd-union-result-alias-grid"> <div data-bind="dxDataGrid: aliasGrid"></div> </div> </div>',"dx-wizard-fullscreen":'\x3c!-- ko if: $data && $data.isVisible() --\x3e <div class="dx-fullscreen-wizard dx-editors" data-bind="css: { \'dx-rtl\': $root.rtl, \'dx-ltr\': !$root.rtl }"> <div class="dxrd-wizard dxrd-report-wizard dx-editors dxd-text-primary dxd-back-primary2" data-bind="css: _extendCssClass"> <div class="dxrd-wizard-steps-container dxd-back-primary" data-bind="visible: $data.navigationPanel().isVisible"> <div class="dxrd-wizard-title dxd-border-primary" data-bind="text: _description(), attr: {\'title\': _description() }"></div> \x3c!-- ko with: navigationPanel --\x3e <div class="dxrd-wizard-steps" data-bind="foreach: _steps"> <div class="dxrd-wizard-steps-relative" style="position:relative" data-bind="visible: $data.visible"> <div class="dxrd-wizard-steps-content" data-bind="click: $data.clickAction, text: $data.text, attr: {\'title\': $data.text }, css: { \'dxrd-disabled\': $data.disabled, \'dxd-back-secondary\': $data.isActive() }"></div> <div class="dxrd-wizard-steps-marker dxd-back-primary2" data-bind="visible: $data.isActive"></div> </div> </div> \x3c!-- /ko --\x3e </div> <div class="dxrd-wizard-content" data-bind="css: { \'withoutPanel\': !$data.navigationPanel().isVisible() }"> <div class="dxrd-wizard-part-description dxd-back-contrast"> <div class="dxrd-wizard-part-description-text dxd-text-primary dxd-border-primary" data-bind="text: _pageDescription()"></div> </div> \x3c!-- ko with: _currentPage --\x3e <div class="dxrd-wizard-work-content"> <div class="dxrd-wizard-work-content-relative"> <div data-bind="template: { name: template, data: page } "></div> </div> </div> \x3c!-- /ko --\x3e <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel: _loadPanelViewModel($element)"> </div> <div class="dxrd-wizard-navigation"> <div data-bind="dxButton: cancelButton" class="dxrd-wizard-btn left"></div> <div data-bind="dxButton: finishButton" class="dxrd-wizard-btn right"></div> <div data-bind="dxButton: nextButton" class="dxrd-wizard-btn right"></div> <div data-bind="dxButton: previousButton" class="dxrd-wizard-btn right"></div> </div> </div> </div> </div> \x3c!-- /ko --\x3e',"dx-wizard-fullscreen-page":'\x3c!-- ko if: $data._sections.length > 0 --\x3e <div style="position:absolute;" data-bind="foreach: _sections, css: _className, styleunit: { top: _parentMarginOffset, left: _parentMarginOffset, right: _parentMarginOffset, bottom: _parentMarginOffset }"> <div class="dx-border-inheritor dxd-border-accented"> <div class="dxrd-report-page-tile dxd-border-secondary" data-bind="css: { \'dxrd-disabled\': !$data.page() }, style: $parent._pageCss[$data.pageId]"> <div class="dxrd-report-page-tile-title" data-bind="visible: $parent._showPageDescription(), text: $parent._getPageDescription($index(), $data), attr: { title: $parent._getPageDescription($index(), $data) }"></div> \x3c!-- ko if: $data.page() !== null --\x3e \x3c!-- ko with: page --\x3e <div class="dxrd-report-page-tile-content" data-bind="template: { name: $parent.metadata.template, data: page }, dxScrollView: { showScrollbar: \'onHover\'}"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.page() === null --\x3e <div class="dxrd-report-page-tile-content dx-default-border-style dxd-border-secondary"> <div class="dxrd-wizard-page dxrd-wizard-disabled-content" data-bind="text: metadata.disabledText"></div> </div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-jsondatasource-fields-page":'<div class="dxrd-wizard-page dx-jsonschema-page dx-frameless-style"> <div class="dx-default-border-style dxd-border-secondary dxrd-wizard-dataMember dx-fieldset" style="height:100%"> <div class="dx-field"> <div class="dx-field-label" data-bind="text: _rootElementTitle"></div> <div class="dx-field-value" data-bind="dxSelectBox: { dataSource: _rootElementList, value: _selectedRootElement, displayExpr: \'fullPath\', displayCustomValue: true, useItemTextAsTitle: true, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div> <div class="dxrd-wizard-add-queries-page dxrd-wizard-page-treelist-accordion-style dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div data-bind="treelist: _fieldListModel" style="width:100%; height: 100%;"></div> </div> </div> </div>',"dxrd-page-jsonsource":'<div class="dxrd-wizard-page dx-jsonsource-page dx-frameless-style"> <div class="dx-default-border-style dxd-border-secondary dxrd-wizard-dataMember dx-fieldset" style="height: 100%" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }, dxValidationGroup: $data._validationGroup || {}"> <div class="dx-field"> <div class="dx-property-required dx-field-label" data-bind="text: _jsonConnectionTitle, attr: { \'title\': _jsonConnectionTitle }"></div> <div class="dx-field-value" data-bind="dxTextBox: { value: _connectionName }, dxValidator: { validationRules: $data._connectionNameValidationRules || [] }"></div> </div> <div class="dx-field"> <div class="dx-field-label" data-bind="text: _jsonSourceTitle, attr: { \'title\': _jsonSourceTitle }"></div> <div class="dx-field-value" data-bind="dxLocalizedSelectBox: { dataSource: _sources, value: _selectedSource, valueExpr:\'value\', displayExpr: \'displayValue\', displayCustomValue: true, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div> \x3c!-- ko with: _selectedSource --\x3e <div data-bind="dxValidationGroup: $data.validationGroup || {}"> <div data-bind="css: $data.cssClass"> \x3c!-- ko template: { name: \'dx-propertieseditor\', data: grid } --\x3e \x3c!-- /ko --\x3e </div> <div class="dxrd-wizard-validationsummary" data-bind="dxValidationSummary: $data.validationSummary || {}, visible: $data.validationSummary && !isValid()"></div> </div> \x3c!-- /ko --\x3e <div class="dxrd-wizard-validationsummary" data-bind="dxValidationSummary: $data._validationSummary || {}, visible: $data._validationSummary && _selectedSource().validationSummary && !canNext()"></div> </div> </div>',"dx-property-json-string-editor":'<div class="dx-field" data-bind="visible: visible"> \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e </div>',"dxrd-page-dataSource":'<div class="dxrd-wizard-page"> \x3c!-- ko if: isDataSourceCreationAvailable --\x3e <div class="dxrd-wizard-datasourceoperation dxrd-radio-nowrap-ellipsis" data-bind="dxRadioGroup: { value: selectedDataSourceOperation, items: dataSourceOperations, layout: \'vertical\' }"> <div data-options="dxTemplate : { name: \'item\' }"> <div class="dxrd-radio-nowrap-ellipsis-text" data-bind="text: text, attr: { \'title\': text }"></div> </div> </div> \x3c!-- /ko --\x3e <div class="dxrd-wizard-availabledatasources dx-default-border-style dxd-border-secondary"> <div class="dxrd-wizard-list" data-bind="dxList: { dataSource: availableDataSources, selectedItems: selectedDataSource, focusStateEnabled:false, editEnabled: true, height: dataSourcesListHeight, editConfig: { selectionEnabled: false }, selectionMode: \'single\', activeStateEnabled: false, disabled: createNewDataSource, noDataText: $root.dx._static.noDataText() }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: name"></div> </div> </div> </div></div>',"dxrd-page-selectitems":"<div class=\"dxrd-wizard-page\"> \x3c!-- ko template: { name: 'dxrd-page-selectitems-radio-group', data: $data } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: { name: 'dxrd-page-selectitems-list', data: $data } --\x3e \x3c!-- /ko --\x3e </div>","dxrd-page-selectitems-radio-group":'\x3c!-- ko if: canCreateNew --\x3e <div class="dxrd-wizard-datasourceoperation dxrd-radio-nowrap-ellipsis" data-bind="dxRadioGroup: { value: selectedOperation, items: operations, layout: \'vertical\' }"> <div data-options="dxTemplate : { name: \'item\' }"> <div class="dxrd-radio-nowrap-ellipsis-text" data-bind="text: text, attr: { \'title\': text }"></div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-page-selectitems-list":'<div class="dxrd-wizard-availabledatasources dx-default-border-style dxd-border-secondary" data-bind="styleunit: { top: $data.canCreateNew() ? 65 : 0 }"> <div class="dxrd-wizard-list dxd-border-primary" data-bind="dxList: { dataSource: items, onSelectionChanged: function(e) { selectedItems(e.addedItems) }, selectedItems: selectedItems.peek(), hoverStateEnabled:false, editEnabled: true, height: \'100%\', editConfig: { selectionEnabled: false }, searchExpr: \'name\', searchEnabled: true, selectionMode: \'single\', activeStateEnabled: false, disabled: _createNew, noDataText: $root.dx._static.noDataText(), searchEditorOptions: { placeholder: $root.dx._static.searchPlaceholder() } }"> <div data-options="dxTemplate : { name: \'item\' }" data-bind="event: { dblclick: function(e){ $parent.onDblClick() } }"> <div data-bind="text: $parent._displayExpr($data)"></div> </div> </div> </div>',"dxrd-page-specify-connection":"<div class=\"dxrd-wizard-page\"> \x3c!-- ko template: { name: 'dxrd-page-selectitems-radio-group', data: $data } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !_createNew() --\x3e \x3c!-- ko template: { name: 'dxrd-page-selectitems-list', data: $data } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: _createNew --\x3e <div class=\"dxrd-page-specify-connection_createNew\"> \x3c!-- ko template: { name: 'dxrd-page-jsonsource', data: _specifySourceData } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e</div>","dx-jsonwizard-parametercollection":'<div class="dx-field"> \x3c!-- ko with: value --\x3e <div class="dx-jsonwizard-parameter-left-container"> <div class="dx-jsonwizard-parameter"> <div data-bind="dxLocalizedSelectBox: { dataSource: _parameterTypes, value: itemType, valueExpr:\'value\', displayExpr: \'displayValue\', displayCustomValue: true, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div> </div> <div class="dx-jsonwizard-parameter-middle-container"> <div data-bind="dxTextBox: { value: name, placeholder: $data.namePlaceholder() }, dxValidator: { validationRules: $parent.editor.editorOptions.nameValidationRules || [] }"></div> </div> <div class="dx-jsonwizard-parameter-right-container"> <div class="dx-jsonwizard-parameter"> <div data-bind="dxTextBox: { value: _editingValue, placeholder: $data.valuePlaceholder() }, visible: !$data.isExpression()"></div> <div data-bind="dxExpressionEditor: { options: _expression, fieldListProvider: $parent.editor.editorOptions.itemsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }, visible: $data.isExpression"></div> </div> </div> \x3c!-- ko template: { name: \'dx-wizard-menu-box-editorswitch\', data: $data } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-jsonwizard-loadfile-editor":"<div data-bind=\"dxFileImagePicker: { value: value, placeholderId: 'File', accept:'.json,.txt' }\"></div>","dx-jsonwizard-jsonstring-editor":'\x3c!-- ko if: !aceAvailable --\x3e <div class="dxrd-jsonwizard-jsonstring-editor dxd-border-secondary dxd-back-primary2" data-bind="dxTextArea: { value: value, spellcheck: false, isValid: isValid }, dxValidator: $data.validator || { validationRules: jsonStringValidationRules || [] }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dx-texteditor dx-editor-outlined dxrd-jsonwizard-jsonstring-editor dxd-wizard-jsoneditor dxd-border-secondary dxd-back-primary2" data-bind="dxAceEditor: { value: value, editorContainer: editorContainer, options: aceOptions, additionalOptions: additionalOptions }, css: { \'dx-invalid\' : !value() || !isValid() }"></div> \x3c!-- /ko --\x3e <div class="dxd-upload-file"> <div class="dxd-back-primary2"></div> <div data-bind="dxButtonWithTemplate: { onClick: uploadFile, hint: $data.getUploadTitle(), icon: \'dxrd-svg-wizard-Download\' }"></div> </div>',"dxrd-wizard-add-queries-page":'<div class="dxrd-wizard-page dxrd-wizard-add-queries-page dxrd-wizard-page-treelist-accordion-style"> <div data-bind="treeListSearchPanel: {controllers: ko.unwrap(_fieldListModel).treeListController}"></div> <div class="dxrd-wizard-dataMember dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _scrollViewHeight }"> <div data-bind="treelist: _fieldListModel" style="width:100%; height: 100%;"></div> </div> \x3c!-- ko ifnot: $data.disableCustomSql --\x3e \x3c!-- ko template: { name: \'dxqb-popup-selectStatment\', data: _popupSelectStatement } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: { name: \'dxrd-querybuilder-popup\', data: _popupQueryBuilder } --\x3e \x3c!-- /ko --\x3e <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel: _loadPanelViewModel($element)"> </div> </div>',"dxd-custom-query-treelisitem":'<div data-bind="visible: visible"> <div class="dx-background-inheritor dxd-back-highlighted dxd-state-selected"> <div class="dx-treelist-item dx-fontsize-reestablished dxd-list-item-back-color" data-bind=" styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected dxd-back-secondary\': isSelected }"> <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass"></div> <div class="dx-treelist-caption"> \x3c!-- ko if: actions && actions.length > 0 --\x3e <div class="dx-treelist-action-container" data-bind="visible: isSelected() || isHovered()"> \x3c!-- ko foreach: actions --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: $data.imageTemplateName, iconClass: $data.imageClassName, disabled: $data.disabled && $data.disabled() }, attr: { title: text }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected"> <div class="dx-treelist-text-wrapper"> <div class="dx-add-queries-page-checkbox" data-bind="dxCheckBox: { value: data.checked }, click: function(treeNode, e) { treeNode.data.toggleChecked(); e.stopPropagation(); return true; }"></div> <div class="dx-treelist-text dx-treelist-text-with-checkbox"> <div class="dx-queryname-textbox" data-bind="dxTextBox: { value: queryName }"></div> </div> </div> </div> </div> </div> </div> </div>',"dxrd-configure-query-parameters-page":'<div class="dxrd-wizard-page dxrd-configure-query-parameters-page dxrd-wizard-page-treelist-accordion-style"> <div class="dxrd-wizard-dataMember dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _scrollViewHeight }"> \x3c!-- ko if: !!$data._fieldListModel() --\x3e <div data-bind="treelist: _fieldListModel" style="width:100%; height: 100%;"></div> \x3c!-- /ko --\x3e </div> </div>',"dxrd-wizard-configure-relations-page":"<div class=\"dxrd-wizard-page dxrd-wizard-configure-relations-page\"> \x3c!-- ko if: $data._relationsEditor() --\x3e \x3c!-- ko template: { name: 'dxrd-masterDetail-editor-complete-wizard', data: $data._relationsEditor }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>","dxrd-masterDetail-editor-complete-wizard":"<div class=\"dx-filtereditor dxrd-masterDetail-editor-complete-wizard dxd-border-secondary\"> \x3c!-- ko if: $data --\x3e <div class=\"dx-filtereditor-tree dxd-border-secondary\" data-bind=\"dxScrollView: { showScrollbar: 'onHover', direction: 'both' }\" style=\"cursor: default\"> \x3c!-- ko foreach: masterQueries --\x3e <div class=\"criteria-operator-group\"> <div class=\"criteria-operator-group-item\"> <div class=\"criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-group dxd-filter-editor-group-back-color stylized\" data-bind=\"text: queryName\"></div> <div data-bind=\"service: { name: 'createRelation' }\"></div> </div> <div class=\"criteria-operator-content\"> \x3c!-- ko template: { name: 'dx-masterDetail-editor-relation', foreach: relations }--\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> <div class=\"dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay\" data-bind=\"dxPopupWithAutoHeight: { width: '170px', height: '235px', focusStateEnabled: false, position: $root.rtl ? { my: 'right top', at: 'right bottom', of: popupService.target, collision: 'flipfit' } : { my: 'left top', at: 'left bottom', of: popupService.target, collision: 'flipfit' }, wrapperAttr: { class: 'dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay' }, container: $root.getPopupContainer($element), target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, hideOnOutsideClick: true, shading: false, visible: popupService.visible }\"> \x3c!-- ko with: popupService--\x3e \x3c!-- ko with: data --\x3e \x3c!-- ko template: template--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div>","dxqb-popup-selectStatment":'<div data-bind="dxPopup: { animation: { show: { type: \'fade\', from: 0, to: 1, duration: 700 }, hide: { type: \'fade\', from: 1, to: 0, duration: 700 } }, wrapperAttr: { class: \'dxqb-preview\' }, visible: isVisible, title: title(), showTitle: true, resizeEnabled: true, shading: true, shadingColor: \'transparent\', fullScreen: false, width: 800, height: 544, container: closest($element, \'.dxrd-wizard\'), position: { of: closest($element, \'.dx-designer-viewport\') }, onHidden: function() { $data.data(null) }, focusStateEnabled: false }"> <div class="dxqb-preview-popup-content"> <div class="dxqb-show-query-string-content dx-widget"> \x3c!-- ko if: !aceAvailable --\x3e <div class="dxrd-show-query-string-editor" data-bind="dxTextArea: { value: data, valueChangeEvent: \'keyup\', disabled: false }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dxrd-show-query-string-editor"> <div class="dxrd-show-query-string-editor-content"> <div class="dx-sql_editor dxd-back-primary2" data-bind="dxAceEditor: { value: data, additionalOptions: additionalOptions, options: aceOptions }"></div> </div> </div> \x3c!-- /ko --\x3e </div> </div> <div class="dxqb-preview-popup-buttons dxd-border-secondary"> <div data-bind="dxButton: { text: okButtonText(), onClick: okButtonHandler }" class="dxqb-preview-popup-button"></div> </div> </div>',"dxrd-treelist-with-checkbox":'<div data-bind="visible: visible"> \x3c!-- ko if: hasContent --\x3e \x3c!-- ko template: "dx-treelist-accordion-item-with-checkbox" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: hasContent --\x3e \x3c!-- ko template: "dx-treelist-header-item-with-checkbox" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-treelist-accordion-item-with-checkbox":'<div data-bind="dxdAccordionExt: { collapsed: collapsed, lazyContentRendering: true }"> \x3c!-- ko template: "dx-treelist-header-item-with-checkbox" --\x3e \x3c!-- /ko --\x3e <div class="dx-fieldset dx-accordion-content dxd-back-primary"> \x3c!-- ko with: data --\x3e \x3c!-- ko template: { name: contenttemplate } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-treelist-header-item-with-checkbox":'<div class="dx-background-inheritor dxd-back-highlighted dxd-state-selected"> <div data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() }, mouseenter: mouseenter, mouseleave: mouseleave }, attr: { class: \'dx-treeview-item dx-treelist-item dx-fontsize-reestablished dxd-list-item-back-color \' + ($data.hasItems ? \'dx-treelist-list-item-content \' : \'dx-treelist-field-item-content \') + ($data.isSelected() ? \'dx-treelist-item-selected dxd-state-selected dxd-back-secondary\' : \'\') }, styleunit: padding, css: { \'dx-state-hover\': isHovered }"> \x3c!-- ko ifnot: $data.hasItems--\x3e \x3c!-- ko if: $data.showIcon --\x3e <div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $data.showIcon --\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.hasItems --\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass, visible: hasItems, template: \'dxrd-svg-collapsed\', click: toggleCollapsed"></div> \x3c!-- /ko --\x3e <div class="dx-treelist-caption"> \x3c!-- ko if: actions && actions.length > 0 --\x3e <div class="dx-treelist-action-container" data-bind="visible: isSelected() || isHovered()"> \x3c!-- ko foreach: actions --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: $data.imageTemplateName, iconClass: $data.imageClassName, disabled: $data.disabled && $data.disabled() }, attr: { title: text }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e <div class="dx-treelist-selectedcontent" data-bind="event: { dblclick: function() { $data.dblClickHandler && $data.dblClickHandler($data); } }, click: toggleSelected, draggable: isDraggable ? dragDropHandler : null, css: { \'dxrd-disabled\': $data.data.disabled && $data.data.disabled() }"> <div class="dx-treelist-text-wrapper"> <div class="dx-add-queries-page-checkbox" data-bind="dxCheckBox: { value: data.checked }, click: function(treeNode, e) { treeNode.data.toggleChecked(); e.stopPropagation(); return true; }"></div> \x3c!--ko if: treeListController.searchEnabled --\x3e <div class="dx-treelist-text dx-highlighted-search-text dx-treelist-text-with-checkbox" data-bind="searchHighlighting: { text: text, textToSearch: treeListController.textToSearch, searchOptions: treeListController.searchOptions }, attr: { title: text }"></div> \x3c!-- /ko --\x3e \x3c!--ko ifnot: treeListController.searchEnabled --\x3e <div class="dx-treelist-text dx-treelist-text-with-checkbox" data-bind="text: text, attr: { title: text }"></div> \x3c!-- /ko --\x3e </div> </div> </div> </div></div>',"dx-treelist-action-with-popover":'<div class="dx-treelist-action-with-popover" style="display: inline-block"> <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: $data.imageTemplateName, iconClass: $data.imageClassName , disabled: $data.disabled && $data.disabled() }, attr: { title: text }"></div> \x3c!-- ko template: { name: \'dx-popover-list-items\', data: ko.utils.extend($parent.data, { position: $root.rtl ? \'left\' : \'right\', popupContainer: $root.getPopupContainer }) }--\x3e \x3c!-- /ko --\x3e </div>',"dx-treelist-accordion-contenttemplate-custom-with-actions":'<div data-bind="dxPropertyGrid: { target: $parent.data.dataSourceParameter, level: $parent.data.editor.level + 1 }"></div>',"dxrd-page-objectdatasource-datamembers":'<div class="dx-objectdatasource-datamembers-page"> <div data-bind="dxList: { dataSource: _chooseObjectDataMember.dataMembers, selectedItems: _chooseObjectDataMember.selectedDataMembers, selectionMode: \'single\', activeStateEnabled: false, focusStateEnabled: false, searchExpr: \'displayName\', searchEnabled: true, noDataText: $dx._static.noDataText(), searchEditorOptions: { placeholder: $root.dx._static.searchPlaceholder() } }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: $data.displayName"></div> </div> </div> </div>',"dxrd-page-objectdatasource-types":'<div class="dx-objectdatasource-types-page"> <div class="dxd-border-primary" data-bind="treeListSearchPanel: {controllers: _chooseObjectType.availableTypesTreelistModel.treeListController}"></div> <div data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _chooseObjectType._scrollViewHeight}"> <div data-bind="treelist: _chooseObjectType.availableTypesTreelistModel"></div> \x3c!-- ko if: _chooseObjectType.types && !_chooseObjectType.types().length --\x3e <div class="dxa-no-data-message" data-bind="text: $root.dx._static.noDataText()"></div> \x3c!-- /ko--\x3e </div> </div>',"dxrd-page-objectsource":'<div class="dxrd-wizard-page dx-objectsource-page dx-frameless-style" style="position: absolute; top: 45px; left: 45px; right: 45px; bottom: 45px; margin:0"> \x3c!-- ko foreach: _sections--\x3e <div class="dx-border-inheritor dxd-border-accented"> <div class="dxrd-report-page-tile dxd-border-secondary" data-bind="style: position, css: { \'dxrd-disabled\': $data.disabled() }"> <div class="dxrd-report-page-tile-title" data-bind="text: $parent.showDescription($index(), description), attr: { title: $parent.showDescription($index(), description) }"></div> <div class="dxrd-report-page-tile-content dx-default-border-style dxd-border-secondary"> \x3c!-- ko if: !$data.disabled() --\x3e \x3c!-- ko template: { name: template, data: data } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.disabled() --\x3e <div class="dxrd-wizard-page dxrd-wizard-disabled-content" data-bind="text: disabledText"></div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e </div>',"dx-objectdatasource-types-section":'<div class="dx-objectdatasource-types-section"> <div data-bind="treeListSearchPanel: {controllers: availableTypesTreelistModel.treeListController}"></div> <div data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _scrollViewHeight}"> <div data-bind="treelist: availableTypesTreelistModel"></div> </div> </div>',"dx-objectdatasource-datamembers-section":'<div class="dx-objectdatasource-parameters-datamembers-section"> <div class="dxd-border-primary" data-bind="dxList: { dataSource: dataMembers, selectedItems: selectedDataMembers, selectionMode: \'single\', activeStateEnabled: false, focusStateEnabled: false, searchExpr: \'displayName\', searchEnabled: true, noDataText: $root.dx._static.noDataText(), searchEditorOptions: { placeholder: $root.dx._static.searchPlaceholder() } }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: $data.displayName"></div> </div> </div> </div>',"dx-objectdatasource-parameters-grid":'\x3c!-- ko if: !!$data --\x3e <div class="dx-field dxd-back-primary"> <div class="dx-field-label" data-bind="text: $data.displayName, attr: { \'title\': $data.displayName}"></div> </div> <div class="dxrd-properties-wrapper"> \x3c!-- ko foreach: _grids --\x3e \x3c!-- ko template: { name: \'dx-propertieseditor\', data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e',"dx-objectdatasource-expression-popup":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxExpressionEditor: getOptions({ options: value, fieldListProvider: value().itemsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() })"></div> \x3c!-- /ko --\x3e',"dx-objectdatasource-parameters-section":"<div class=\"dx-objectdatasource-parameters-section\"> <div class=\"dx-fieldset\" data-bind=\"dxScrollView: { showScrollbar: 'onHover'}\"> \x3c!-- ko template: { name: 'dx-objectdatasource-parameters-grid', data: _ctorParametersObject }--\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: { name: 'dx-objectdatasource-parameters-grid', data: _dataMemberParametersObject }--\x3e \x3c!-- /ko --\x3e </div> </div>","dx-objectdatasource-configureparameters-page":"<div class=\"dxrd-report-page-tile-content dx-default-border-style dxd-border-secondary\" data-bind=\"dxScrollView: { showScrollbar: 'onHover'}\"> \x3c!-- ko template: { name: 'dx-objectdatasource-parameters-section', data: _chooseObjectParameters } --\x3e \x3c!-- /ko --\x3e </div>","dxrd-page-configure-parameters":'<div class="dxrd-wizard-page"> <div class="dxrd-datasource-parameters" data-bind="dxCollectionEditor: parametersEditorOptions"></div> </div>',"dxrd-parameter-collection-item":'<div class="dx-accordion" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header dxd-text-primary dxd-border-primary" style="border-bottom: 0" data-bind="styleunit: { \'marginLeft\' : editor.padding }, css: { \'dxrd-group-header-collapsed\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text dxd-text-primary" data-bind="text: value().name"></span> </div> <div class="dx-accordion-content dxd-border-primary"> <div data-bind="dxPropertyGrid: { target: value, level: editor.level + 1 }"></div> </div> </div>',"dxrd-wizard-datasource-parameters":'<div class="dx-fieldset" style="height:100%"> <div class="dx-collectioneditor" style="height:100%"> <div class="dxrd-datasource-parameters-collection"> <div class="dxrd-datasource-parameters-container dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }"> \x3c!-- ko if: values().length === 0 --\x3e <div class="dx-collectioneditor-empty dxd-empty-area-placeholder-text-color dxd-text-info"> <span class="dxrd-datasource-parameters-empty-text" data-bind="text: getDisplayTextEmptyArray()"></span> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: values().length !== 0 --\x3e <div class="dx-collectioneditor-items" data-bind="foreach: values"> <div class="dx-background-inheritor dxd-back-highlighted dxd-state-selected" data-bind="with: $parent.createCollectionItemWrapper($parents[1], $index, $element)"> <div class="dx-collectioneditor-item-container dx-fontsize-reestablished dxd-list-item-back-color" data-bind="dxclick: $parents[1].select, css: { \'dxd-state-selected dxd-back-secondary\' : $parents[1].selectedIndex() === $index() }"> <div class="dx-collection-item"></div> </div> </div> </div> \x3c!-- /ko --\x3e </div> </div> <div class="dxrd-collectioneditor-wizard-buttons" data-bind="visible: showButtons"> <div class="dxrd-collectioneditor-action" data-bind="dxButton: { onClick: add, text: getDisplayTextButton(\'add\') }, attr: { title: getDisplayTextButton(\'add\') }"></div> <div class="dxrd-collectioneditor-action" data-bind="dxButton: { onClick: remove, disabled: selectedIndex() === null, text: $parent.removeButtonTitle }, attr: { title: $parent.removeButtonTitle }"></div> </div> </div> </div>',"dxrd-page-connectionstring":'<div class="dxrd-wizard-page"> <div class="dx-wizard-connections dx-default-border-style dxd-border-secondary"> <div class="dxrd-wizard-list dxd-border-primary" data-bind="dxList: { dataSource: _connectionStrings, onSelectionChanged: function(e) { _selectedConnectionString(e.addedItems) }, selectedItems: _selectedConnectionString.peek(), focusStateEnabled: false, searchEnabled: true, searchExpr: \'description\', editEnabled: true, editConfig: { selectionEnabled: true }, selectionMode: \'single\', activeStateEnabled: false, noDataText: $root.dx._static.noDataText(), searchEditorOptions: { placeholder: $root.dx._static.searchPlaceholder() } }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: $data[\'description\'] || $data[\'name\']"></div> </div> </div> </div> </div>',"dxrd-select-control":'<div class="dxrd-create-query-page-query-header"> <div class="dx-editquery-editor" data-bind="text: caption()"></div> <div class="dxd-hyperlink-color dxd-text-accented" data-bind="visible: !runQueryBuilderDisabled, text: $parent.runQueryBuilderBtnText, click: function() { $parent.runQueryBuilder() }"></div> </div> \x3c!-- ko if: !aceAvailable --\x3e <div class="dxrd-wizard-list dxrd-create-query-page-editor dx-default-border-style dxd-border-secondary dx-editquery-editor" data-bind="dxTextArea: { value: sqlString, valueChangeEvent: \'keyup input blur\', readOnly: disableCustomSql() }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dxrd-create-query-page-editor dxrd-create-query-page-editor-border dxd-border-secondary dx-editquery-editor"> <div class="dxrd-create-query-page-editor-content"> <div class="dx-sql_editor dxd-back-primary2" data-bind="dxAceEditor: { value: sqlString, additionalOptions: additionalOptions, options: aceOptions }, css: { \'dx-disabled-ace\': disableCustomSql() }"></div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-procedures-control":'<div style="margin-top: 20px" class="dx-editquery-editor" data-bind="text: caption()"></div> <div class="dx-editquery-editor dx-default-border-style dxd-border-secondary"> <div class="dxrd-wizard-list dxrd-create-query-page-editor" data-bind="dxList: { dataSource: storedProcedures, searchEnabled: true, searchExpr: \'name\', onContentReady: scrollActiveItem, selectedItems: selectedProcedure, editEnabled: true, editConfig: { selectionEnabled: true }, selectionMode: \'single\', activeStateEnabled: false, noDataText: $root.dx._static.noDataText() }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: $parent.generateStoredProcedureDisplayName($data)"></div> </div> </div> </div>',"dxrd-wizard-create-query-page":'<div class="dxrd-wizard-page dxrd-wizard-create-query-page"> <div class="dxrd-create-query-page-content"> <div data-bind="text: queryNameCaption()"></div> <div class="dx-editquery-editor" data-bind="dxTextBox: { value: queryName, placeholder: $data.placeholder() }"></div> <div class="dxrd-radio-nowrap-ellipsis" data-bind="dxRadioGroup: { value: selectedQueryType, layout: \'horizontal\', items: queryTypeItems }"> <div data-options="dxTemplate : { name: \'item\' }"> <div class="dxrd-radio-nowrap-ellipsis-text" data-bind="text: $parent.localizeQueryType($data), attr: { \'title\': $parent.localizeQueryType($data) }"></div> </div> </div> \x3c!-- ko template: { name: queryControl().template, data: queryControl() } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- ko template: { name: \'dxrd-querybuilder-popup\', data: popupQueryBuilder } --\x3e \x3c!-- /ko --\x3e </div>',"dxrd-querybuilder-popup":'<div data-bind="dxPopup: popupViewModel($element)"> \x3c!-- ko if: qbOptions --\x3e \x3c!-- ko if: isVisible --\x3e <div class="dxrd-querybuilder-popup-content"> <div style="height:100%;" data-bind="dxQueryBuilder: qbOptions"></div> </div> \x3c!-- /ko --\x3e <div class="dxrd-querybuilder-popup-buttons dxd-border-secondary"> <div data-bind="dxButton: { text: getDisplayText(\'previewResults\'), onClick: previewHandler, disabled: okButtonDisabled }" class="dxrd-querybuilder-popup-button-left"></div> <div data-bind="dxButton: { text: getDisplayText(\'cancel\'), onClick: cancelHandler }" class="dxrd-querybuilder-popup-button"></div> <div data-bind="dxButton: { text: getDisplayText(\'ok\'), type: \'default\', onClick: okHandler, disabled: okButtonDisabled }" class="dxrd-querybuilder-popup-button"></div> </div> <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel:{ animation: { show: { type: \'fade\', from: 0, to: 1, duration: 700 }, hide: { type: \'fade\', from: 1, to: 0, duration: 700 } }, deferRendering: false, message: getDisplayText(\'loading\'), visible: showLoadIndicator, shading: true, shadingColor: \'transparent\'}"> </div> \x3c!-- /ko --\x3e </div>',"dxrd-querybuilder":'<div class="dx-designer dx-querybuilder" data-bind="template: \'dxrd-designer\'"> </div>',"dx-wizard-menu-box-editorswitch":"<div class=\"dxrd-editormenu-box dxd-property-grid-menu-box-color dxd-back-highlighted\" data-bind=\"css: { 'dxd-state-active': $data.isExpression() }, dxButtonWithTemplate: { onClick: switchEditors, icon: 'dxrd-svg-wizard-expressions' }\"> </div>","dx-popover-list-items":'<div data-bind="dxPopover: { wrapperAttr: { class: $data.className }, width: $data.width || 200, position: position, visible: popoverVisible, target: target, container: popupContainer($element)}"> <div data-bind="attr: { class: $data.className + \'-list\'}, dxList: { dataSource: popoverListItems(), onItemClick: itemClickAction }"> <div data-bind="attr: { class: $data.className + \'-list-item\'}" data-options="dxTemplate : { name: \'item\' }"> <div class="dx-text-content" data-bind="text: name, attr: { title: name }"></div> </div> </div> </div>',"dx-wizard-headerNew":'<div class="dxrd-wizard-header-custom"> \x3c!-- ko with: _currentPage --\x3e <div class="dxrd-span-title" data-bind="text: $data.title || $parent.title"></div> <div class="dxrd-span-description" data-bind="text: description, attr: { title: description }"></div> \x3c!-- /ko --\x3e </div>',"dx-wizard-newlayout":'<div class="dxrd-wizard dx-editors dxd-text-primary" data-bind="dxPopup: { visible: isVisible, wrapperAttr: { class: \'dxrd-wizard dx-editors dxd-text-primary\' }, title: isVisible() ? title : \'\', showTitle: true, fullScreen: false, width: width, height: height, container: $element, visualContainer: _container($element), titleTemplate: _titleTemplate, position: _wizardPopupPosition($element) }, cssArray: [ $data._extendCssClass, { \'dx-rtl\': $root.rtl, \'dx-ltr\': !$root.rtl }]"> <div class="dxrd-wizard-content"> \x3c!-- ko with: _currentPage --\x3e <div style="height: 100%" data-bind="template: { name: template, data: page } "></div> \x3c!-- /ko --\x3e <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel: _loadPanelViewModel($element)"></div> </div> <div class="dxrd-wizard-navigation"> <div data-bind="dxButton: cancelButton" class="dxrd-wizard-btn left"></div> <div data-bind="dxButton: finishButton" class="dxrd-wizard-btn right"></div> <div data-bind="dxButton: nextButton" class="dxrd-wizard-btn right"></div> <div data-bind="dxButton: previousButton" class="dxrd-wizard-btn right"></div> </div> </div>'})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(31),r(74),r(178),r(72),r(34),r(76),r(94),r(203),r(75),r(177),r(53),r(52),r(65),r(201),r(54),r(124),i(r(31),t),i(r(74),t),i(r(178),t),i(r(72),t),i(r(34),t),i(r(76),t),i(r(94),t),i(r(203),t),i(r(75),t),i(r(177),t),i(r(53),t),i(r(52),t),i(r(65),t),i(r(201),t),i(r(54),t),i(r(124),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(171),r(36),r(35),r(202),r(37),r(123),r(95),r(122),i(r(171),t),i(r(36),t),i(r(35),t),i(r(202),t),i(r(37),t),i(r(123),t),i(r(95),t),i(r(122),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(204),r(222),r(223),r(205),i(r(204),t),i(r(222),t),i(r(223),t),i(r(205),t)},function(e,t){e.exports=DevExpress.localization},function(e,t){e.exports=DevExpress.Analytics.Localization}]);
|
|
8
|
+
!function(r){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=r,i.c=o,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=224)}([function(e,t){e.exports=DevExpress.Analytics.Internal},function(e,t){e.exports=DevExpress.Analytics.Utils},function(e,t){e.exports=ko},function(e,t){e.exports=jQuery},function(e,t){e.exports=DevExpress.Analytics.Elements},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenDataSourceWizardSectionId=t.FullscreenDataSourceWizardPageId=t.ObjectDataSourceWizardPageId=t.JsonDataSourceWizardPageId=t.FederationDataSourceWizardPageId=t.SqlDataSourceWizardPageId=t.DataSourceWizardPageId=void 0,t.DataSourceWizardPageId={ChooseDataSourceTypePage:"chooseDataSourceTypePage",ConfigureMasterDetailRelationshipsPage:"configureMasterDetailRelationshipsPage"},t.SqlDataSourceWizardPageId={ChooseConnectionPage:"chooseSqlConnectionPage",ConfigureQueryPage:"configureSqlQueryPage",ConfigureParametersPage:"configureSqlParametersPage",MultiQueryConfigurePage:"multiSqlQueryConfigurePage",MultiQueryConfigureParametersPage:"multiSqlQueryConfigureParametersPage",FederatedQueryConfigurePage:"federatedQueryConfigurePage"},t.FederationDataSourceWizardPageId={FederatedQueryConfigurePage:"federatedQueryConfigurePage",FederatedMasterDetailRelationshipsPage:"federatedMasterDetailRelationshipsPage"},t.JsonDataSourceWizardPageId={ChooseJsonSourcePage:"chooseJsonSourcePage",ChooseJsonSchemaPage:"chooseJsonSchemaPage",ChooseConnectionPage:"chooseJsonConnectionPage",SpecifyJsonConnectionPage:"specifyJsonConnectionPage"},t.ObjectDataSourceWizardPageId={ChooseTypesPage:"chooseObjectDataSourceTypesPage",ChooseDataMembersPage:"chooseObjectDataSourceDataMembersPage",ConfigureParametersPage:"configureObjectDataSourceParametersPage"},t.FullscreenDataSourceWizardPageId={ChooseDataSourceTypePage:t.DataSourceWizardPageId.ChooseDataSourceTypePage,SpecifySqlDataSourceSettingsPage:"specifySqlDataSourceSettingsPage",SpecifyJsonDataSourceSettingsPage:"specifyJsonDataSourceSettingsPage",SpecifyObjectDataSourceSettingsPage:"specifyObjectDataSourceSettingsPage",SpecifyFederationDataSourceSettingsPage:"specifyFederationDataSourceSettingsPage"},t.FullscreenDataSourceWizardSectionId={SpecifyJsonConnectionPage:t.JsonDataSourceWizardPageId.SpecifyJsonConnectionPage,ChooseJsonSchemaPage:t.JsonDataSourceWizardPageId.ChooseJsonSchemaPage,ChooseJsonSourcePage:t.JsonDataSourceWizardPageId.ChooseJsonSourcePage,ChooseSqlConnectionPage:t.SqlDataSourceWizardPageId.ChooseConnectionPage,ConfigureFederatedQueriesPage:t.FederationDataSourceWizardPageId.FederatedQueryConfigurePage,ConfigureFederatedMasterDetailRelationshipsPage:t.FederationDataSourceWizardPageId.FederatedMasterDetailRelationshipsPage,ConfigureQueryPage:t.SqlDataSourceWizardPageId.MultiQueryConfigurePage,ConfigureQueryParametersPage:t.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage,ConfigureMasterDetailRelationshipsPage:t.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage}},function(e,t){e.exports=DevExpress.Analytics.Widgets},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FederationQueryType=t.JsonSourceType=t.SqlQueryType=void 0,t.SqlQueryType={customSqlQuery:"CustomSqlQuery",tableQuery:"SelectQuery",storedProcQuery:"StoredProcQuery"},t.JsonSourceType={fileJsonSource:"FileJsonSource",customJsonSource:"CustomJsonSource",uriJsonSource:"UriJsonSource"},(t=t.FederationQueryType||(t.FederationQueryType={}))[t.SelectNode=0]="SelectNode",t[t.UnionNode=1]="UnionNode",t[t.SourceNode=2]="SourceNode",t[t.TransformationNode=3]="TransformationNode"},function(e,t){e.exports=DevExpress.Analytics.Widgets.Internal},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageBase=void 0,r(1)),s=r(3),r=(i=a.Disposable,n(l,i),l.prototype.dispose=function(){i.prototype.dispose.call(this),this._onChange=function(){}},l.prototype.commit=function(){return s.Deferred().resolve().promise()},l.prototype.onChange=function(e){this._onChange=e},l.prototype.initialize=function(e,t){return s.Deferred().resolve().promise()},l.prototype.canNext=function(){return!0},l.prototype.canFinish=function(){return!1},l);function l(){var e=null!==i&&i.apply(this,arguments)||this;return e.changeAlways=!1,e._onChange=function(){},e}t.WizardPageBase=r},function(e,t,r){"use strict";var o,i,n,a=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t._createPageEventArgs=t._createBeforeInitializePageEventArgs=t.subscribeObject=t.subscribeProperties=t.subscribeArray=t.getSectionStyle=t.MultiQueryTreeListItemFactory=t.CustomQueryTreeListItem=t.WizardSectionPosition=void 0,r(2)),r=r(8),l=((u=i=t.WizardSectionPosition||(t.WizardSectionPosition={}))[u.Left=1]="Left",u[u.TopLeft=2]="TopLeft",u[u.BottomLeft=3]="BottomLeft",u[u.Right=4]="Right",u[u.TopRight=5]="TopRight",u[u.BottomRight=6]="BottomRight",u[u.Top=7]="Top",u[u.Bottom=8]="Bottom",n=r.TreeListItemViewModel,a(c,n),c.prototype.dispose=function(){n.prototype.dispose.call(this),this.queryName.dispose()},c.prototype._getTemplateName=function(){return this._getCustomizedTemplateName(!0)},c.prototype._getCustomizedTemplateName=function(e){return e?"dxd-custom-query-treelisitem":n.prototype._getTemplateName.call(this)},c);function c(){var r=null!==n&&n.apply(this,arguments)||this;return r.queryName=s.computed({read:function(){return r.data&&r.data.name},write:function(e){var t=r.data;t&&t.name!==e&&(t.name=e,t._afterCheckToggled&&t._afterCheckToggled(t))}}),r.editingMode=s.observable(!1),r}t.CustomQueryTreeListItem=l;d=r.DefaultTreeListItemFactory,a(p,d),p.prototype.createItem=function(e,t,r,o,i){return"queries"===t[0]?new l(e,t,r,o,i):d.prototype.createItem.call(this,e,t,r,o,i)};var d,u=p;function p(){return null!==d&&d.apply(this,arguments)||this}t.MultiQueryTreeListItemFactory=u,t.getSectionStyle=function(e,t,r){void 0===r&&(r=!0);var o="inherit",t="-"+(t=void 0===t?30:t)/2+"px";return e?{top:e===i.Left||e===i.Right||e===i.Top||e===i.TopLeft||e===i.TopRight?t:o,bottom:e===i.Left||e===i.Right||e===i.Bottom||e===i.BottomLeft||e===i.BottomRight?t:o,left:e===i.Top||e===i.Bottom||e===i.Left||e===i.TopLeft||e===i.BottomLeft?t:o,right:e===i.Top||e===i.Bottom||e===i.Right||e===i.TopRight||e===i.BottomRight?t:o,width:e===i.Top||e===i.Bottom?o:"50%",height:e===i.Left||e===i.Right?o:"50%",display:r?"block":"none"}:{top:t,bottom:t,left:t,right:t,width:o,height:o,display:r?"block":"none"}},t.subscribeArray=function(e,t,r){return e().forEach(function(e){return t(e,r)}),e.subscribe(function(e){e.forEach(function(e){"added"===e.status?t(e.value,r):"deleted"===e.status&&e.value.dispose&&e.value.dispose()}),r()},null,"arrayChange")},t.subscribeProperties=function(e,t){var r=[];return e.forEach(function(e){e&&e.subscribe&&r.push(e.subscribe(function(e){return t(e)}))}),r},t.subscribeObject=function(e,t,r){return t(e(),r),e.subscribe(function(e){t(e,r),r()})},t._createBeforeInitializePageEventArgs=function(e,t){return{page:e.page,pageId:e.pageId,wizard:t,state:t.stateManager.getPageState(e.pageId)}},t._createPageEventArgs=function(e,t){return{page:e.page,pageId:e.pageId,wizard:t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestWrapper=void 0;var o=r(0),i=r(87),n=r(1),a=r(61);function s(){}s.prototype.sendRequest=function(e,t){return o.ajax(i.HandlerUri(),e,t)},s.prototype._sendRequest=function(e){return o.ajax(e)},s.prototype.getDbSchema=function(e,t){e={connectionJSON:a.serializeDataConnection(e),tables:null,views:null};return t&&0<t.length&&(e.tables=(t||[]).filter(function(e){return!e.isView}).map(function(e){return e.name}),e.views=(t||[]).filter(function(e){return e.isView}).map(function(e){return e.name})),this.sendRequest("getDBSchema",encodeURIComponent(JSON.stringify(e)))},s.prototype.getDbStoredProcedures=function(e){e=JSON.stringify({connectionJSON:a.serializeDataConnection(e)});return this.sendRequest("getDBStoredProcedures",encodeURIComponent(e))},s.prototype.getSelectStatement=function(e,t){e=JSON.stringify({connectionJSON:a.serializeDataConnection(e),sqlQueryJSON:t});return this.sendRequest("getSelectStatement",encodeURIComponent(e))},s.prototype.getDataPreview=function(e,t){e=JSON.stringify({connectionJSON:a.serializeDataConnection(e),sqlQueryJSON:t});return this.sendRequest("getDataPreview",encodeURIComponent(e))},s.prototype.rebuildResultSchema=function(e,t,r){void 0===r&&(r=!1);e=JSON.stringify({sqlDataSourceJSON:JSON.stringify({SqlDataSource:(new n.ModelSerializer).serialize(e)}),queryName:t,relationsEditing:r});return this.sendRequest("rebuildResultSchema",encodeURIComponent(e))},s.prototype.getFederationResultSchema=function(e){var t=e.getSerializableModel().getSerializableFederationDataSourceInfo(),e=JSON.stringify({federationDataSourceJSON:JSON.stringify({FederationDataSource:(new n.ModelSerializer).serialize(e)}),dataSources:t.dataSources});return this.sendRequest("getFederationResultSchema",encodeURIComponent(e))},s.prototype.validateJsonUri=function(e){e=JSON.stringify(e.source.serialize(!0)),e=JSON.stringify({uriJsonSourceJSON:e}),e={uri:i.HandlerUri(),action:"validateJsonEndPoint",arg:encodeURIComponent(e),ignoreError:function(){return!0}};return this._sendRequest(e)},s.prototype.saveJsonSource=function(e,t){var t=t.source,r=JSON.stringify(t.serialize(!0)),e=JSON.stringify({connectionName:e,customJson:t.json(),uriJsonSourceJSON:r});return this.sendRequest("saveJsonSource",encodeURIComponent(e))},s.prototype.getJsonSchema=function(e,t){var r=e.source,o=JSON.stringify(r.serialize(!0)),e=JSON.stringify({connectionName:e.connectionName(),customJson:r.json(),uriJsonSourceJSON:o,parameters:t});return this.sendRequest("getJsonSchema",encodeURIComponent(e))},s.prototype.getObjectTypeDescriptions=function(e){return this.sendRequest("getObjectSchema",e)},t.RequestWrapper=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._createDefaultDataSourceWizardState=t._restoreObjectDataSourceFromState=t._resetRestoreJsonDataSourceFromState=t._setRestoreJsonDataSourceFromState=t._restoreJsonDataSourceFromState=t._restoreFederationDataSourceFromState=t._resetRestoreSqlDataSourceFromState=t._setRestoreSqlDataSourceFromState=t._restoreSqlDataSourceFromState=void 0;function o(e,t,r){var o=new f._SqlDataSourceWrapper(e.sqlDataSourceJSON,e.queryName,t),i=(e.name&&o.sqlDataSource.connection.name(e.name),new a.ModelSerializer);return e.customQueries&&0<e.customQueries.length&&(o.customQueries=e.customQueries.map(function(e){return o.sqlDataSource.createQuery(JSON.parse(e),i)}),(t=o.sqlDataSource.queries).push.apply(t,o.customQueries)),e.relations&&0<e.relations.length&&(t=o.sqlDataSource.relations).push.apply(t,e.relations.map(function(e){return new s.MasterDetailRelation(JSON.parse(e),i)})),o.sqlDataSource.id=r||l.guid().replace(/-/g,""),o}function i(e,t,r){return t=new c.JsonDataSource({Source:e.jsonSource&&JSON.parse(e.jsonSource)||{},Schema:e.jsonScheme&&JSON.parse(e.jsonScheme)||{},"@RootElement":e.rootElement||""},void 0,t),e.connectionName&&t.connectionName(e.connectionName),e.dataSourceName&&t.name(e.dataSourceName),t.id=r||l.guid().replace(/-/g,""),t}var n=r(48),a=r(1),s=r(42),l=r(0),c=r(63),d=r(26),u=r(97),p=r(66),f=r(49);t._restoreSqlDataSourceFromState=o,t._setRestoreSqlDataSourceFromState=function(e){return t._restoreSqlDataSourceFromState=e},t._resetRestoreSqlDataSourceFromState=function(){return t._restoreSqlDataSourceFromState=o},t._restoreFederationDataSourceFromState=function(e,t,r){t=new u.FederationDataSource(JSON.parse(e.federationDataSourceJSON),t);return r&&(t.id=r),e.relations&&0<e.relations.length&&(r=t.relations).push.apply(r,e.relations.map(function(e){return new p.FederationMasterDetailRelation(JSON.parse(e),new a.ModelSerializer)})),t};t._restoreJsonDataSourceFromState=i,t._setRestoreJsonDataSourceFromState=function(e){t._restoreJsonDataSourceFromState=e},t._resetRestoreJsonDataSourceFromState=function(){t._restoreJsonDataSourceFromState=i},t._restoreObjectDataSourceFromState=function(e,t,r){var o=new d.ObjectDataSource;return o.setState(e),r&&(o.id=r),o},t._createDefaultDataSourceWizardState=function(e,t,r,o){return{dataSourceType:n.DataSourceType.Sql,jsonDataSourceWizard:t=void 0===t?{jsonSource:""}:t,sqlDataSourceWizard:e=void 0===e?{}:e,objectDataSourceWizard:r=void 0===r?{}:r,federationDataSourceWizard:o=void 0===o?{}:o,dataSourceId:l.guid().replace(/-/g,"")}}},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.DataSourceParameter=void 0,r(2)),a=r(0),s=r(0),l=r(18),c=r(0),d=r(1),u=r(0),p=r(41),f=r(139),m=r(1),y=r(0);function h(e,t,r){return a.integerValueConverter(e,t,r)}function g(e,t,r){return a.floatValueConverter(e,t,r)}function _(e){var t;return e instanceof Date?s.formatUnicorn("#{0}/{1}/{2} {3}:{4}#",(t=function(e){return(e<10?"0":"")+e})(e.getMonth()+1),t(e.getDate()),e.getFullYear(),t(e.getHours()),t(e.getMinutes())):(e||"").toString()}Object.defineProperty(b.prototype,"specifics",{get:function(){return l.DBColumn.GetSpecific(this.realTypeName||this.name)},enumerable:!1,configurable:!0});r=b;function b(e,t,r,o){var i=this;this.name=e,this.defaultValue=t,this.realTypeName=o,r&&(this.valueConverter=function(e){return r(e,t,i.name)})}function v(e){var t;try{t=c.parseDate(e)}catch(e){t=P()}return t}var S,P=function(){var e=new Date;return e.setHours(0,0,0,0),e},d=(S=d.Disposable,i(x,S),x._getTypeValue=function(t,e){void 0===e&&(e=null);var r=x._typeValues.filter(function(e){return e.name===t});return 0<r.length?(e&&u.IsDataAccessExpression(t)&&(r[0].realTypeName=e),r[0]):{name:t,defaultValue:null,specifics:"String",disableEditor:!0}},x.prototype._getTypeValue=function(e){return x._getTypeValue(e,this.resultType())},x.prototype._tryConvertValue=function(e,t){if(!x._isValueValid(e))return t.defaultValue;e=(t.valueConverter||function(e){return e})(e);return x._isValueValid(e)?e:t.defaultValue},x._isValueValid=function(e){return null!=e&&!isNaN("string"==typeof e?"":e)},x.prototype.getEditorType=function(e){return u.getEditorType(e)},x.prototype._updateValueInfo=function(e){var t=this,e=this._getTypeValue(e),r=this._tryConvertValue(this._value(),e),o=this._expressionValue.peek();this._expressionValue(null),this._value(null),this._valueInfo(y.extend({},p.parameterValueSerializationsInfo,{editor:this.getEditorType(e.name),disabled:!0===e.disableEditor,editorOptions:{onFocusOut:function(e){t.isValid(e.component.option("isValid"))}}})),this._expressionValue(o),this._value(r)},Object.defineProperty(x.prototype,"specifics",{get:function(){var t=u.IsDataAccessExpression(this.type.peek())?this.resultType():this.type(),e=x._typeValues.filter(function(e){return e.name===t});return 0<e.length?e[0].specifics:"string"},enumerable:!1,configurable:!0}),x.prototype.getInfo=function(){var e;return this.type?((e=y.extend(!0,[],this._serializationsInfo)).splice(e.indexOf(e.filter(function(e){return"value"===e.propertyName})[0]),1,this._valueInfo()),e):this._serializationsInfo},x.prototype.isPropertyVisible=function(e){return"resultType"!==e||u.IsDataAccessExpression(this.type())},x._typeValues=[new r("System.DateTime",P(),v),new r("System.String",""),new r("System.SByte","0",h),new r("System.Int16","0",h),new r("System.Int32","0",h),new r("System.Int64","0",h),new r("System.Byte","0",h),new r("System.UInt16","0",h),new r("System.UInt32","0",h),new r("System.UInt64","0",h),new r("System.Decimal","0",g),new r("System.Double","0",g),new r("System.Single","0",g),new r("System.Boolean",!1,function(e){return void 0!==e?"true"===String(e).toLowerCase():e}),new r("System.Guid","00000000-0000-0000-0000-000000000000"),new r(u.ExpressionType,"",_),new r("System.Char","")],x);function x(e,t,r){void 0===r&&(r=p.dsParameterSerializationInfo);var o=S.call(this)||this;return o._serializationsInfo=r,o._valueInfo=n.observable(p.parameterValueSerializationsInfo),o._parametersFunctions=f.expressionFunctions,o.isValid=n.observable(!0),(t=t||new m.ModelSerializer).deserialize(o,y.extend(e,{"@ItemType":"Parameter"})),o._disposables.push(o.name=n.pureComputed({read:function(){return o._name()},write:function(e){p.validateName(e)&&o._name(e)}})),o._expressionValue=n.observable({value:o._value,functions:o._parametersFunctions}),o._disposables.push(o.type.subscribe(function(e){u.IsDataAccessExpression(e)?o.resultType(o._previousResultType):(o.resultType(null),o._previousResultType=e),o._updateValueInfo(e)})),o._previousResultType=u.IsDataAccessExpression(o.type.peek())?o.resultType():o.type(),o.value=n.pureComputed({read:function(){return u.IsDataAccessExpression(o.type())?o._expressionValue():o._value()},write:function(e){o._value(e)}}),o._updateValueInfo(o.type.peek()),o}t.DataSourceParameter=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__nextActionFunctionName=t.__loadingStateFunctionName=void 0,t.__loadingStateFunctionName="__loadingState",t.__nextActionFunctionName="__nextAction"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownSerializationsInfo=t.sizeLocation=t.location=t.size=t.selected=t.text=t.alias=t.name=void 0;var o=r(28),i=r(4),r=r(4);t.name={propertyName:"name",modelName:"@Name",displayName:"Name",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Name",disabled:!0,editor:o.editorTemplates.getEditor("text")},t.alias={propertyName:"alias",modelName:"@Alias",displayName:"Alias",localizationId:"DataAccessUIStringId.QueryBuilderColumns_Alias",defaultVal:"",editor:o.editorTemplates.getEditor("text")},t.text={propertyName:"text",modelName:"@Text",displayName:"Text",editor:o.editorTemplates.getEditor("text")},t.selected={propertyName:"selected",displayName:"Output",editor:o.editorTemplates.getEditor("bool"),localizationId:"DataAccessUIStringId.QueryBuilderColumns_Output"},t.size={propertyName:"size",modelName:"@Size",defaultVal:"100,125",from:i.Size.fromString},t.location={propertyName:"location",modelName:"@Location",from:r.Point.fromString},t.sizeLocation=[t.size,t.location],t.unknownSerializationsInfo=[t.name].concat(t.sizeLocation)},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.diagramElementSerializationInfo=t.DiagramElementBaseViewModel=void 0,r(4)),s=r(23),l=r(57),r=(i=a.ElementViewModel,n(c,i),c.prototype.getControlFactory=function(){return l.diagramControlsFactory},c);function c(e,t,r){return i.call(this,e,t,r)||this}t.DiagramElementBaseViewModel=r,t.diagramElementSerializationInfo=[s.size,s.location,s.name,s.text,{propertyName:"type",modelName:"@Type"}]},function(e,t){e.exports={default:""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBColumn=t.DBColumnType=void 0,(i=o=t.DBColumnType||(t.DBColumnType={}))[i.Unknown=0]="Unknown",i[i.Boolean=1]="Boolean",i[i.Byte=2]="Byte",i[i.SByte=3]="SByte",i[i.Char=4]="Char",i[i.Decimal=5]="Decimal",i[i.Double=6]="Double",i[i.Single=7]="Single",i[i.Int32=8]="Int32",i[i.UInt32=9]="UInt32",i[i.Int16=10]="Int16",i[i.UInt16=11]="UInt16",i[i.Int64=12]="Int64",i[i.UInt64=13]="UInt64",i[i.String=14]="String",i[i.DateTime=15]="DateTime",i[i.Guid=16]="Guid",i[i.TimeSpan=17]="TimeSpan",i[i.ByteArray=18]="ByteArray",n.GetType=function(e){switch(e){case o.Boolean:return"System.Boolean";case o.Byte:return"System.Byte";case o.SByte:return"System.SByte";case o.Char:return"System.Char";case o.Decimal:return"System.Decimal";case o.Double:return"System.Double";case o.Single:return"System.Single";case o.Int32:return"System.Int32";case o.UInt32:return"System.UInt32";case o.Int16:return"System.Int16";case o.UInt16:return"System.UInt16";case o.Int64:return"System.Int64";case o.UInt64:return"System.UInt64";case o.String:return"System.String";case o.DateTime:return"System.DateTime";case o.Guid:return"System.Guid";case o.TimeSpan:return"System.TimeSpan";case o.ByteArray:return"System.Byte[]";default:return"System.Object"}},n.GetSpecific=function(e){switch(e){case"System.Boolean":return"Bool";case"System.Byte":case"System.SByte":case"System.Int16":case"System.UInt16":case"System.Int32":case"System.UInt32":case"System.Int64":case"System.UInt64":return"Integer";case"System.Char":case"System.Guid":case"System.ByteArray":case"System.String":return"String";case"System.Double":case"System.Single":case"System.Decimal":return"Float";case"System.DateTime":case"System.TimeSpan":return"Date";default:return"String"}};var o,i=n;function n(e){this.name=e.Name,this.type=e.ColumnType,this.size=e.Size}t.DBColumn=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeToCollection=void 0,t.deserializeToCollection=function(e,t,r){return r=r||[],e&&e.forEach(function(e){r.push(t(e))}),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedQueryExpression=t.FederatedQueryExpressionType=t.expressionSerializationInfo=void 0;var o=r(1),i=r(0),r=r(15),r=(t.expressionSerializationInfo=[{propertyName:"table",modelName:"@NodeAlias"},r.name,r.alias,{propertyName:"expressionType",modelName:"@ExpressionType"},{propertyName:"columnExpression",modelName:"@ColumnExpression"}],(r=t.FederatedQueryExpressionType||(t.FederatedQueryExpressionType={}))[r.SelectColumnExpression=0]="SelectColumnExpression",r[r.SelectExpression=1]="SelectExpression",r[r.SelectAllColumnsExpression=2]="SelectAllColumnsExpression",r[r.SelectAllNodeColumnsExpression=3]="SelectAllNodeColumnsExpression",r[r.SelectRowCountExpression=4]="SelectRowCountExpression",n.prototype.getInfo=function(){return t.expressionSerializationInfo},n);function n(e,t){(t=t||new o.ModelSerializer).deserialize(this,i.extend(e,{"@ItemType":"Expression"}))}t.FederatedQueryExpression=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.controlsFactory=void 0;r=r(1);t.controlsFactory=new r.ControlsFactory},function(e,s,t){"use strict";var o,a,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=(Object.defineProperty(s,"__esModule",{value:!0}),s.SingleCheckedDataMemberTreeNode=s.DataMemberTreeNode=s.FieldTreeNode=s.TreeQueryNode=s.QueriesTreeNode=s.ParameterTreeNode=s.TreeNode=s.TreeLeafNode=s.TreeNodeBase=s.defaultObjectDataSourceItemSpecifics=void 0,t(3)),c=t(2),d=t(1),t=t(1),t=(s.defaultObjectDataSourceItemSpecifics="Default",a=t.Disposable,r(i,a),i.prototype.unChecked=function(){return!1===this.checked()},i.prototype.toggleChecked=function(){this.setChecked(!this.checked.peek()),this._afterCheckToggled(this)},i.prototype.setChecked=function(e){this._checked(e)},i);function i(e,t,r,o,i){void 0===o&&(o=!1);var n=a.call(this)||this;return n.name=e,n.displayName=t,n.specifics=r,n.checked=c.pureComputed(function(){return n._checked()}),n.isList=!1,n._checked=c.observable(o),n._afterCheckToggled=i||l.noop,n}s.TreeNodeBase=t;r(p,u=t);var u,n=p;function p(e,t,r,o,i,n){void 0===i&&(i=null);o=u.call(this,e,t,r,o=void 0===o?!1:o,n)||this;return o.name=e,o.displayName=t,o.specifics=r,o.hasQuery=!1,o.arguments=i,o}s.TreeLeafNode=n;r(y,f=t),y.prototype.initialized=function(){return 0<this.children().length},y.prototype.setChecked=function(t){this._checked(t),this.children.peek().forEach(function(e){e.setChecked(t)})},y.prototype.initializeChildren=function(e){this.children(e||[])};var f,m=y;function y(e,t,r,o,i){var n=f.call(this,e,t,r,o,i)||this;return n.countChecked=c.pureComputed(function(){for(var e=0,t=0;t<n.children().length;t++)if(!n.children()[t].unChecked()){if(1<e)break;e++}return e}),n.isList=!0,n.children=c.observableArray([]),n.checked=c.pureComputed({read:function(){var t,r;return n.initialized()?(r=t=0,n.children().forEach(function(e){!0===e.checked()?t++:!1!==e.checked()&&r++}),(0!==t||0!==r)&&(t===n.children.peek().length||void 0)):n._checked()}}),n}s.TreeNode=m;r(_,h=m);var h,g=_;function _(e,t,r,o,i){var n=h.call(this,e,t,r,o,i)||this;return n.countChecked=c.pureComputed(function(){var e=0;n.hasParamsToEdit(!1);for(var t=0;t<n.children().length;t++){var r=n.children()[t];if(!r.unChecked()){if(1<e)break;e++,r.arguments&&0<r.arguments.length&&n.hasParamsToEdit(!0),"query"===r.specifics&&n.hasParamsToEdit(!0)}}return e}),n.hasParamsToEdit=c.observable(!1),n}s.ParameterTreeNode=g;r(v,b=g),v.prototype.getActions=function(e){var t=[];return 0===e.path.indexOf("queries")&&t.push(this.addAction),t},v.prototype.popoverListItems=function(){var e=this;return[{name:d.getLocalization("Run Query Builder","DataAccessUIStringId.Button_QueryBuilder"),addAction:function(){return e.addQuery()}},{name:d.getLocalization("Write Custom SQL","AnalyticsCoreStringId.SqlDSWizard_WriteCustomSQL"),addAction:function(){return e.addCustomQuery()}}]},v.prototype.showPopover=function(){this.popoverVisible(!0)};var b,g=v;function v(e,t,r,o,i,n){var a=b.call(this,e,t,r,o,n)||this;return a.addAction={clickAction:function(e){return a.disableCustomSql()?a.addQuery():a.showPopover()},imageClassName:"dxrd-image-add",imageTemplateName:"dxrd-svg-operations-add",templateName:"dx-treelist-action-with-popover",text:d.getLocalization("Add query","AnalyticsCoreStringId.SqlDSWizard_AddQuery")},a.itemClickAction=function(e){a.popoverVisible(!1),e.itemData.addAction()},a.className="dx-addqueries-popover",a.popoverVisible=c.observable(!1),a.path=e,a.addQuery=function(){i().showQbCallBack()},a.addCustomQuery=function(){i().showQbCallBack(null,!0)},a.disableCustomSql=function(){return i&&i().disableCustomSql},a.target="."+a.addAction.templateName,a.selectionDisabled=c.pureComputed(function(){return!a.children().length}),a}s.QueriesTreeNode=g;r(P,S=n),P.prototype.setObservableName=function(e){var t=this;this._name=e,["name","displayName"].forEach(function(e){return Object.defineProperty(t,e,{get:function(){return this._name()},set:function(e){return this._name(e)},configurable:!0})})},P.prototype.getActions=function(e){var t=[];return t.push(this.removeAction),t.push(this.editAction),t};var S,g=P;function P(e,t,r,o,i,n,a,s){var l=S.call(this,e,t,r,o,null,a)||this;return l.query=s,l.editAction={clickAction:function(e){return l.editQuery()},imageClassName:"dx-image-edit",imageTemplateName:"dxrd-svg-operations-edit",text:d.getLocalization("Edit query","AnalyticsCoreStringId.SqlDSWizard_EditQuery")},l.removeAction={clickAction:function(e){l.removeQuery({model:e.data})},imageClassName:"dxrd-image-recycle-bin",imageTemplateName:"dxrd-svg-operations-recycle_bin",text:d.getLocalization("Remove query","AnalyticsCoreStringId.SqlDSWizard_RemoveQuery")},l.parameters=i,l.removeQuery=function(e){e.model.unChecked()||e.model.toggleChecked(),n().deleteAction(e.model.name)},l.editQuery=function(e){n().showQbCallBack(l.name)},l.hasQuery=!0,l}s.TreeQueryNode=g;r(C,x=t);var x,n=C;function C(e,t,r,o,i,n,a){void 0===a&&(a=!1);e=x.call(this,e,t,r,o,n)||this;return e.visible=c.observable(!0),e.disabled=c.observable(!1),e.path=i,e.isComplex=r===s.defaultObjectDataSourceItemSpecifics,a&&(e.dragData={noDragable:!1}),e}s.FieldTreeNode=n;r(w,T=m),w.prototype.setChecked=function(e){T.prototype.setChecked.call(this,!!this.visible()&&e)};var T,g=w;function w(e,t,r,o,i,n){var a=T.call(this,e,t,r,o,n)||this;return a.visible=c.observable(!0),a.path=i,a.isComplex=a.isList&&r===s.defaultObjectDataSourceItemSpecifics,a.checked=c.pureComputed({read:function(){var t,r,e;return a.initialized()?(r=t=0,(e=a.children().filter(function(e){return e.visible()})).forEach(function(e){!0===e.checked()?t++:!1!==e.checked()&&r++}),(0!==t||0!==r)&&(t===e.length||void 0)):a._checked()}}),a}s.DataMemberTreeNode=g;r(D,O=g);var O,t=D;function D(e,t,r,o,i,n){var a=O.call(this,e,t,r,o,i,n)||this;return a.checked=c.pureComputed({read:function(){return a._checked()}}),a}s.SingleCheckedDataMemberTreeNode=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unknownSerializationsInfo=t.sizeLocation=t.location=t.size=t.text=t.name=void 0;var o=r(6),i=r(0),n=r(4),r=r(4);t.name={propertyName:"name",modelName:"@Name",displayName:"Name",editor:o.editorTemplates.getEditor("text"),validationRules:i.nameValidationRules},t.text={propertyName:"text",modelName:"@Text",displayName:"Text",editor:o.editorTemplates.getEditor("text")},t.size={propertyName:"size",modelName:"@Size",defaultVal:"100,50",from:n.Size.fromString,displayName:"Size",editor:o.editorTemplates.getEditor("objecteditor")},t.location={propertyName:"location",modelName:"@Location",from:r.Point.fromString,displayName:"Location",editor:o.editorTemplates.getEditor("objecteditor")},t.sizeLocation=[t.size,t.location],t.unknownSerializationsInfo=[t.name].concat(t.sizeLocation)},function(e,i,t){"use strict";var r;Object.defineProperty(i,"__esModule",{value:!0}),i.determineConnectingPoints=i.GRID_SIZE=i.PointSide=void 0,(r=i.PointSide||(i.PointSide={}))[r.East=0]="East",r[r.South=1]="South",r[r.North=2]="North",r[r.West=3]="West",i.GRID_SIZE=10,i.determineConnectingPoints=function(e,t){var r,o={start:null,end:null};return t.leftConnectionPoint.location.x()>e.rightConnectionPoint.location.x()+2*i.GRID_SIZE?(o.start=e.rightConnectionPoint,o.end=t.leftConnectionPoint):e.leftConnectionPoint.location.x()>t.rightConnectionPoint.location.x()+2*i.GRID_SIZE?(o.start=e.leftConnectionPoint,o.end=t.rightConnectionPoint):(r=(e.rightConnectionPoint.location.x()+e.rightConnectionPoint.location.x())/2,(t.rightConnectionPoint.location.x()+t.rightConnectionPoint.location.x())/2<r?(o.start=e.rightConnectionPoint,o.end=t.rightConnectionPoint):(o.start=e.leftConnectionPoint,o.end=t.leftConnectionPoint)),o}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPointSurface=void 0,r(2)),r=r(4),r=(i=r.SurfaceElementBase,n(s,i),s.prototype.container=function(){return this.getRoot()},s._unitProperties={_x:function(e){return e.location.x},_y:function(e){return e.location.y}},s);function s(e,t){var r=i.call(this,e,t,s._unitProperties)||this;return r.template="dx-diagram-connection-point",r.selectiontemplate="dx-diagram-connection-point",r.relativeX=a.pureComputed(function(){return r.rect().left-r.parent.rect().left}),r.relativeY=a.pureComputed(function(){return r.rect().top-r.parent.rect().top}),r}t.ConnectionPointSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectDataSource=void 0,r(2)),s=r(1),l=r(0),r=(i=s.Disposable,n(c,i),c.prototype.setState=function(e){this.ctor=e.ctor,this.dataMember=e.dataMember,this.selectedType=e.selectedType,this.id=l.guid().replace(/-/g,""),this.name(e.dataSourceName)},c);function c(){var e=null!==i&&i.apply(this,arguments)||this;return e.name=a.observable(),e}t.ObjectDataSource=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SourceQuery=t.sourceQuerySerializationsInfo=void 0,r(2)),s=r(7),l=r(1),c=r(15),r=r(1),c=(t.sourceQuerySerializationsInfo=[{propertyName:"queryType",modelName:"@QueryType"},c.name,c.alias,{propertyName:"sourceName",modelName:"@SourceName"}],n=r.Disposable,i(d,n),d.prototype.getInfo=function(){return t.sourceQuerySerializationsInfo},d.prototype.getPath=function(){return this._sourcePath||(this.name()?this.name()===this.sourceName()?this.name():this.sourceName().slice(0,this.sourceName().indexOf(this.name())-1)+"."+this.name():void 0)},d);function d(e,t,r,o){var i=n.call(this)||this;return i._sourcePath=o,e["@SourceName"]=e["@SourceName"]||r,(t||new l.ModelSerializer).deserialize(i,e),i._disposables.push(i.queryType=a.pureComputed(function(){return s.FederationQueryType[s.FederationQueryType.SourceNode]})),i}t.SourceQuery=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorTemplates=void 0;r=r(6);t.editorTemplates=new r.EditorTemplates},function(e,t){e.exports=DevExpress.Analytics.Criteria},function(e,t){e.exports=DevExpress.Analytics.Criteria.Utils},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryElementBaseViewModel=void 0,r(4)),s=r(21),r=(i=a.ElementViewModel,n(l,i),l.prototype.getControlFactory=function(){return s.controlsFactory},l);function l(e,t,r){return i.call(this,e,t,r)||this}t.QueryElementBaseViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapGetFederationdResultSchema=t.wrapRebuildResultSchema=t.wrapGetSelectStatement=void 0;var i=r(11);t.wrapGetSelectStatement=function(r){return function(e,t){return r?r(e,t):(new i.RequestWrapper).getSelectStatement(e,t)}},t.wrapRebuildResultSchema=function(o){return function(e,t,r){return o?o(e,t,r):(new i.RequestWrapper).rebuildResultSchema(e,t,r)}},t.wrapGetFederationdResultSchema=function(t){return function(e){return t?t(e):(new i.RequestWrapper).getFederationResultSchema(e)}}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.PopupWizard=void 0,r(2)),s=r(3),l=r(159),c=r(1),d=r(0),u=r(6),r=(i=l.BaseWizard,n(p,i),p._getLoadPanelViewModel=function(e,t){e=s(e).closest(".dxrd-wizard-content");return{animation:{show:{type:"fade",from:0,to:1,duration:700},hide:{type:"fade",from:1,to:0,duration:700}},deferRendering:!1,message:c.getLocalization("Loading...","AnalyticsCoreStringId.Loading"),visible:t,shading:!0,shadingColor:"transparent",position:{of:e},container:e}},p.prototype.start=function(){i.prototype.start.call(this),this.isVisible(!0)},p.prototype._wizardPopupPosition=function(e){return{of:d.getParentContainer(e)}},p.prototype._loadPanelViewModel=function(e){return this._getLoadPanelViewModel(e,this.isLoading)},p.prototype._getLoadPanelViewModel=function(e,t){return p._getLoadPanelViewModel(e,t)},p);function p(e,t){var r=i.call(this,e,t)||this;return r.height=a.observable(520),r.width=a.observable(690),r._extendCssClass="",r._container=d.getParentContainer,r.itemsProvider=a.observable(),r.nextButton={text:c.getLocalization("Next","AnalyticsCoreStringId.Wizard_Next"),disabled:a.computed(function(){return!r.canNext()}),onClick:function(){return r.nextAction()}},r.cancelButton={text:c.getLocalization("Cancel","AnalyticsCoreStringId.SearchDialog_Cancel"),onClick:function(){r.iterator.dispose(),r.isVisible(!1)}},r.previousButton={text:c.getLocalization("Previous","AnalyticsCoreStringId.Wizard_Previous"),disabled:a.computed(function(){return r.isFirstPage()}),onClick:function(){return r.previousAction()}},r.finishButton={text:c.getLocalization("Finish","AnalyticsCoreStringId.Wizard_Finish"),type:"default",disabled:a.computed(function(){return!r.canFinish()}),onClick:function(){return r.finishAction()}},r._titleTemplate=u.getTemplate("dx-wizard-headerNew"),r.title="Popup Wizard",r}t.PopupWizard=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnExpression=void 0;var n=r(2),a=r(1),s=r(29),l=r(0),o=r(35),c=r(30),d=r(30);function i(e,r,t){var o=this;if((t=t||new a.ModelSerializer).deserialize(this,e),this._dependedTables=[],this.table()){var i=r.getTable(this.table());this.table=n.pureComputed(function(){return i.actualName()}),this._dependedTables.push(i)}else if(this.expression())try{this._criteria=d.CriteriaOperatorStateMachine.parse(this.expression()),c.criteriaForEach(this._criteria,function(t){var e;t instanceof s.OperandProperty&&((e=l.findFirstItemMatchesCondition(r.tables(),function(e){return 0===t.propertyName.indexOf(e.actualName()+".")}))&&o._dependedTables.push(e))})}catch(e){}this.__table=this.table,this.__column=this.column,this.__expression=this.expression}i.prototype.actualName=function(){return this.alias()||this.column()},i.prototype.toTable=function(){this.table=this.__table,this.column=this.__column,this.expression=n.observable(null),this.itemType(o.ColumnType[o.ColumnType.Column]),this.__column.peek()&&0===this.alias().indexOf("Expr")&&this.alias(null)},i.prototype.getInfo=function(){return o.columnExpressionSerializationsInfo},i.prototype.isDepended=function(t){return!!l.findFirstItemMatchesCondition(this._dependedTables,function(e){return e.actualName()===t})},t.ColumnExpression=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.columnExpressionSerializationsInfo=t.ColumnType=void 0;r=r(36);t.ColumnType={RecordsCount:"RecordsCount",Column:"Column",Expression:"Expression",AllColumns:"AllColumns",AllColumnsQuery:"AllColumnsQuery"},t.columnExpressionSerializationsInfo=[{propertyName:"expression",modelName:"#text"},{propertyName:"table",modelName:"@Table"},{propertyName:"column",modelName:"@Name"},{propertyName:"aggregate",modelName:"@Aggregate",defaultVal:r.AggregationType.None},{propertyName:"alias",modelName:"@Alias"},{propertyName:"descending",modelName:"@Descending",defaultVal:!1},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.columnSerializationInfo=t.AggregationType=void 0;var o=r(15),r=r(28);t.AggregationType={None:"None",Count:"Count",Max:"Max",Min:"Min",Avg:"Avg",Sum:"Sum",CountDistinct:"CountDistinct",AvgDistinct:"AvgDistinct",SumDistinct:"SumDistinct"},t.columnSerializationInfo=[o.name,{propertyName:"displayType",displayName:"Type",localizationId:"DataAccessUIStringId.ParametersColumn_Type",disabled:!0,editor:r.editorTemplates.getEditor("text")},{propertyName:"alias",displayName:"Alias",localizationId:"DataAccessUIStringId.QueryBuilderColumns_Alias",editor:r.editorTemplates.getEditor("text")},o.selected,{propertyName:"sortingType",displayName:"Sort Type",editor:r.editorTemplates.getEditor("combobox"),defaultVal:"Unsorted",valuesArray:[{value:"Unsorted",displayValue:"Unsorted",localizationId:"DataAccessUIStringId.SortingTypeNone"},{value:"Ascending",displayValue:"Ascending",localizationId:"DataAccessUIStringId.SortingTypeAscending"},{value:"Descending",displayValue:"Descending",localizationId:"DataAccessUIStringId.SortingTypeDescending"}],localizationId:"AnalyticsCoreStringId.QueryBuilder_SortType"},{propertyName:"sortOrder",displayName:"Sort Order",editor:r.editorTemplates.getEditor("numeric"),localizationId:"DataAccessUIStringId.QueryBuilderColumns_SortOrder"},{propertyName:"groupBy",displayName:"Group By",editor:r.editorTemplates.getEditor("bool"),defaultVal:!1,localizationId:"DataAccessUIStringId.QueryBuilderColumns_GroupBy"},{propertyName:"aggregate",displayName:"Aggregate",editor:r.editorTemplates.getEditor("comboboxUndo"),values:t.AggregationType,defaultVal:t.AggregationType.None,localizationId:"DataAccessUIStringId.QueryBuilderColumns_Aggregate"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParametersMode=void 0,t.ParametersMode={ReadWrite:"ReadWrite",Read:"Read",Disabled:"Disabled"}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramElementBaseSurface=void 0,r(2)),s=r(4),l=r(0),r=(i=s.SurfaceElementBase,n(c,i),c._unitProperties={_height:function(e){return e.size.height},_width:function(e){return e.size.width},_x:function(e){return e.location.x},_y:function(e){return e.location.y}},c);function c(e,t,r){var o=i.call(this,e,t,l.extend({},c._unitProperties,r))||this;return o.template="dx-diagram-element",o.selectiontemplate="dx-diagram-element-selection",o.contenttemplate="dx-diagram-element-content",o.margin=a.observable(0),o._disposables.push(o.positionWidthWithoutMargins=a.pureComputed(function(){return o.position.width()-2*o.margin()})),o._disposables.push(o.positionLineHeightWithoutMargins=a.pureComputed(function(){return o.position.lineHeight()-2*o.margin()})),o}t.DiagramElementBaseSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.connectingPointSerializationInfo=t.ConnectingPointViewModel=void 0,r(2)),s=r(4),l=r(24),c=r(16),d=r(4),u=r(1),p=r(0),r=(i=c.DiagramElementBaseViewModel,n(f,i),f);function f(e,t,r){var o=i.call(this,p.extend({"@ControlType":"ConnectingPoint"},e),t,r)||this;return o.side=a.pureComputed(function(){return o.percentOffsetY()>=o.percentOffsetX()?o.percentOffsetY()>1-o.percentOffsetX()?l.PointSide.South:l.PointSide.West:o.percentOffsetY()>1-o.percentOffsetX()?l.PointSide.East:l.PointSide.North}),o.size=new d.Size(7,7),o.location=new s.Point(0,0),o.location.x=a.pureComputed(function(){var e=o.parentModel();return e.location.x()+e.size.width()*o.percentOffsetX()}),o.location.y=a.pureComputed(function(){var e=o.parentModel();return e.location.y()+e.size.height()*o.percentOffsetY()}),o}t.ConnectingPointViewModel=r,t.connectingPointSerializationInfo=[{propertyName:"percentOffsetX",modelName:"@PercentOffsetX",defaultVal:.5,from:u.floatFromModel},{propertyName:"percentOffsetY",modelName:"@PercentOffsetY",defaultVal:.5,from:u.floatFromModel}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomSqlQuery=void 0;var o=r(2),i=r(7),n=r(1),a=r(1),s=r(13),l=r(140),c=r(0);function d(e,t,r){this.parent=t,(r||new n.ModelSerializer).deserialize(this,c.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.customSqlQuery}),this.parameters=a.deserializeArray(e.Parameters,function(e){return new s.DataSourceParameter(e,r)})}d.prototype.getInfo=function(){return l.customQuerySerializationsInfo},d.prototype.generateName=function(){return"CustomSqlQuery"},t.CustomSqlQuery=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storedProcParameterSerializationsInfo=t.dsParameterSerializationInfo=t.parameterValueSerializationsInfo=t.dsParameterNameValidationRules=t.validateName=void 0;var o=r(1),i=r(6),n=r(0),a=r(0);function s(e){return e&&!e.match(/[~`!"№;%\^:\?*\(\)&\-\+={}\[\]\|\\\/,\.<>'\s]/)}t.validateName=s,t.dsParameterNameValidationRules=[{type:"custom",validationCallback:function(e){return s(e.value)},get message(){return o.getLocalization("Name is required and should be a valid identifier.","AnalyticsCoreStringId.NameIsRequired_Error")}}],t.parameterValueSerializationsInfo={propertyName:"value",displayName:"Value",localizationId:"DevExpress.DataAccess.Parameter.Value",editor:i.editorTemplates.getEditor("text")};var l={propertyName:"name",displayName:"Name",localizationId:"DevExpress.DataAccess.Parameter.Name",validationRules:t.dsParameterNameValidationRules,editor:i.editorTemplates.getEditor("text")},c={propertyName:"type",displayName:"Type",localizationId:"DevExpress.DataAccess.Parameter.Type",modelName:"@Type",editor:i.editorTemplates.getEditor("combobox"),valuesArray:[{value:"System.String",displayValue:"String",localizationId:"AnalyticsCoreStringId.Parameter_Type_String"},{value:"System.DateTime",displayValue:"Date",localizationId:"AnalyticsCoreStringId.Parameter_Type_DateTime"},{value:"System.Int16",displayValue:"Number (16 bit integer)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Int16"},{value:"System.Int32",displayValue:"Number (32 bit integer)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Int32"},{value:"System.Int64",displayValue:"Number (64 bit integer)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Int64"},{value:"System.Single",displayValue:"Number (floating-point)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Float"},{value:"System.Double",displayValue:"Number (double-precision floating-point)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Double"},{value:"System.Decimal",displayValue:"Number (decimal)",localizationId:"AnalyticsCoreStringId.Parameter_Type_Decimal"},{value:"System.Boolean",displayValue:"Boolean",localizationId:"AnalyticsCoreStringId.Parameter_Type_Boolean"},{value:"System.Guid",displayValue:"Guid",localizationId:"AnalyticsCoreStringId.Parameter_Type_Guid"},{value:n.ExpressionType,displayValue:"Expression",localizationId:"DataAccessUIStringId.ParametersColumn_Expression"}]},d={propertyName:"resultType",displayName:"Result Type",localizationId:"DataAccessWebStringId.QueryBuilder_ResultType",modelName:"@ResultType",editor:i.editorTemplates.getEditor("combobox"),valuesArray:c.valuesArray.filter(function(e){return!n.IsDataAccessExpression(e.value)})},u=[{propertyName:"_name",modelName:"@Name"},{propertyName:"_value",modelName:"#text"},t.parameterValueSerializationsInfo,{propertyName:"itemType",modelName:"@ItemType"}],p=(t.dsParameterSerializationInfo=[l,c,d].concat(u),[{value:"System.Byte",displayValue:"Non-negative number (8 bit integer)",localizationId:"DataAccessStringId.Type_Byte"},{value:"System.SByte",displayValue:"Number (8 bit integer)",localizationId:"DataAccessStringId.Type_SByte"},{value:"System.UInt32",displayValue:"Non-negative number (32 bit integer)",localizationId:"DataAccessStringId.Type_UInt"},{value:"System.UInt16",displayValue:"Non-negative number (16 bit integer)",localizationId:"DataAccessStringId.Type_UShort"},{value:"System.UInt64",displayValue:"Non-negative number (64 bit integer)",localizationId:"DataAccessStringId.Type_ULong"},{value:"System.Char",displayValue:"Char",localizationId:"DataAccessStringId.Type_Char"},{value:"System.Object",displayValue:"Object",localizationId:"DataAccessStringId.Type_Object"},{value:"System.Byte[]",displayValue:"Byte array",localizationId:"DataAccessStringId.Type_ByteArray"},{value:"System.TimeSpan",displayValue:"Time interval",localizationId:"DataAccessStringId.Type_TimeSpan"}]);t.storedProcParameterSerializationsInfo=function(t){var e=a.extend(!0,{},c),r=[],o=(r.push(c.valuesArray.filter(function(e){return e.value===t})[0]||p.filter(function(e){return e.value===t})[0]),r.push(c.valuesArray.filter(function(e){return n.IsDataAccessExpression(e.value)})[0]),e.valuesArray=r,a.extend(!0,{},d));return o.valuesArray=r.slice(0,0),o.disabled=!0,[a.extend({disabled:!0},l),e,o].concat(u)}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailRelation=void 0,r(2)),s=r(1),l=r(1),c=r(141),d=r(0),r=(i=s.Disposable,n(u,i),u.prototype.dispose=function(){i.prototype.dispose.call(this),this.disposeObservableArray(this.keyColumns)},u.prototype.createKeyColumn=function(){var e={masterColumn:a.observable(),detailColumn:a.observable(),itemType:"KeyColumn"};this.keyColumns.push(e)},u.prototype.getInfo=function(){return c.masterDetailRelationSerializationsInfo},u);function u(e,t){var r=i.call(this)||this;return r.name=a.pureComputed({read:function(){return r._customName()||r.masterQuery()+r.detailQuery()},write:function(e){r._customName(e)},deferEvaluation:!0}),(t||new l.ModelSerializer).deserialize(r,d.extend(e,{"@ItemType":"Relation"})),r._disposables.push(r.name),r}t.MasterDetailRelation=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableQuery=void 0;var o=r(2),i=r(7),n=r(1),a=r(1),s=r(13),l=r(143),c=r(0);function d(e,t,r){this.parent=t,(r||new n.ModelSerializer).deserialize(this,c.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.tableQuery}),this.parameters=a.deserializeArray(e.Parameters,function(e){return new s.DataSourceParameter(e,r)})}d.prototype.tables=function(){return this._tablesObject.tables()},d.prototype.getInfo=function(){return l.tableQuerySerializationsInfo},d.prototype.generateName=function(){return 0<this.tables().length?this.tables()[0].alias()||this.tables()[0].name():"SelectQuery"},t.TableQuery=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StoredProcQuery=void 0;var o=r(2),i=r(7),n=r(1),a=r(1),s=r(13),l=r(0),c=r(41),d=r(144),u=r(0);function p(e,t,r){this.parent=t,(r||new n.ModelSerializer).deserialize(this,u.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.storedProcQuery}),this.parameters=a.deserializeArray(e.Parameters,function(e){var t=e["@Type"];return l.IsDataAccessExpression(t)&&(t=e["@ResultType"]||t),new s.DataSourceParameter(e,r,c.storedProcParameterSerializationsInfo(t))})}p.prototype.getInfo=function(){return d.storedProcQuerySerializationsInfo},p.prototype.generateName=function(){return this.procName()||"Query"},t.StoredProcQuery=p},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationSource=void 0,r(1)),s=r(1),l=r(0),c=r(93),r=(n=s.Disposable,i(d,n),d.prototype.getInfo=function(){return c.sourceSerializationInfo},d.prototype.getDataSourceName=function(){return this.hasDataMember()?this.sourceName().slice(0,this.sourceName().lastIndexOf(this.dataMember())-1):this.sourceName()},d.prototype.getPath=function(){return this.getDataSourceName()+(this.hasDataMember()?"."+this.dataMember():"")},d.prototype.hasDataMember=function(){return this.dataMember()&&0!==this.sourceName().lastIndexOf(this.dataMember())},d);function d(e,t,r,o){var i=n.call(this)||this;return t=t||new a.ModelSerializer,r&&1<(r=r.split(".")).length&&(e["@DataMember"]=r.slice(1).join("_")),o&&(e["@SourceName"]=o),t.deserialize(i,l.extend(e,{"@ItemType":"Source"})),i}t.FederationSource=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTransformationRule=t.TransformQuery=t.transformationRuleSerializationsInfo=t.transformQuerySerializationsInfo=void 0,r(2)),s=r(7),l=r(1),c=r(0),d=r(27),u=r(1),p=r(45),r=(t.transformQuerySerializationsInfo=[{propertyName:"queryType",modelName:"@QueryType"},{propertyName:"alias",modelName:"@Alias"},{propertyName:"transformationRules",modelName:"TransformationRules",array:!0},{propertyName:"root",modelName:"Root"},{propertyName:"itemType",modelName:"@ItemType"}],t.transformationRuleSerializationsInfo=[{propertyName:"name",modelName:"@Name"},{propertyName:"alias",modelName:"@Alias"},{propertyName:"unfold",modelName:"@Unfold"},{propertyName:"flatten",modelName:"@Flatten"},{propertyName:"itemType",modelName:"@ItemType"}],i=u.Disposable,n(f,i),Object.defineProperty(f.prototype,"sources",{get:function(){return a.observableArray([new p.FederationSource({},new l.ModelSerializer,this.root().getPath(),this.root().sourceName())])},enumerable:!1,configurable:!0}),f.prototype.getInfo=function(){return t.transformQuerySerializationsInfo},f.prototype.generateName=function(){return this.root()&&this.root().sourceName().split("_").pop()},f);function f(e,t){var r=i.call(this)||this;return(t||new l.ModelSerializer).deserialize(r,c.extend(e,{"@ItemType":"Query"})),r._disposables.push(r.queryType=a.pureComputed(function(){return s.FederationQueryType[s.FederationQueryType.TransformationNode]})),r.transformationRules=u.deserializeArray(e.TransformationRules,function(e){return new m(e,t)}),e.Root&&(r.root=a.observable(new d.SourceQuery(e.Root,t))),r}t.TransformQuery=r;y.prototype.getInfo=function(){return t.transformationRuleSerializationsInfo};var m=y;function y(e,t){(t||new l.ModelSerializer).deserialize(this,c.extend(e,{"@ItemType":"TransformationRule"}))}t.FederationTransformationRule=m},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.UnionQuery=t.UnionTypes=t.unionQuerySerializationsInfo=void 0,r(2)),s=r(7),l=r(1),c=r(1),d=r(98),u=r(0),r=(t.unionQuerySerializationsInfo=[{propertyName:"queryType",modelName:"@QueryType"},{propertyName:"unionType",modelName:"@UnionType"},{propertyName:"alias",modelName:"@Alias"},{propertyName:"queries",modelName:"UnionElements",array:!0}],(r=t.UnionTypes||(t.UnionTypes={}))[r.Union=0]="Union",r[r.UnionAll=1]="UnionAll",i=d.FederatedQueriesContainer,n(p,i),p.prototype.getInfo=function(){return t.unionQuerySerializationsInfo},p.prototype.generateName=function(){return this.queries()[0]&&this.queries()[0].alias().split("_").pop()},p);function p(e,t,r){var o=i.call(this,e,t,r)||this;return(r||new l.ModelSerializer).deserialize(o,u.extend(e,{"@ItemType":"Query"})),o._disposables.push(o.queryType=a.pureComputed(function(){return s.FederationQueryType[s.FederationQueryType.UnionNode]})),o.queries=c.deserializeArray(e.UnionElements,function(e){return o.createQuery(e)}),o}t.UnionQuery=r},function(e,t,r){"use strict";var o,i,n,a=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseDataSourceTypePage=t.ChooseDataSourceTypePage=t.TypeItem=t.DataSourceType=void 0,r(2)),l=r(3),c=r(1),d=r(0),u=r(5),p=r(9),f=r(14),m=((r=i=t.DataSourceType||(t.DataSourceType={}))[r.NoData=0]="NoData",r[r.Sql=1]="Sql",r[r.Json=2]="Json",r[r.Object=3]="Object",r[r.Federation=4]="Federation",function(e,t,r,o,i){this.text=c.getLocalization(e,t),this.imageClassName=r,this.imageTemplateName=o,this.type=i}),y=(t.TypeItem=m,n=p.WizardPageBase,a(h,n),h.prototype.canNext=function(){return null!=this.selectedItem()},h.prototype.canFinish=function(){return!1},h.prototype._goToNextPage=function(){this[f.__nextActionFunctionName]&&this[f.__nextActionFunctionName]()},h.prototype.commit=function(){return l.Deferred().resolve({dataSourceType:this.selectedItem().type}).promise()},h.prototype._createTypeItems=function(){var e=[];return this._dataSourceTypeOptions.sqlDataSourceAvailable&&e.push(new m("Database","DataAccessUIStringId.DSTypeSql","sqldatasource","dxrd-svg-wizard-SqlDataSource",i.Sql)),this._dataSourceTypeOptions.jsonDataSourceAvailable&&e.push(new m("JSON","DataAccessUIStringId.DSTypeJson","jsondatasource","dxrd-svg-wizard-JsonDataSource",i.Json)),this._dataSourceTypeOptions.objectDataSourceAvailable&&e.push(new m("Object","DataAccessUIStringId.DSTypeObject","objectdatasource","dxrd-svg-wizard-ObjectDataSource",i.Object)),this._dataSourceTypeOptions.federationDataSourceAvailable&&e.push(new m("Data Federation","DataAccessUIStringId.DSTypeFederation","federationdatasource","dxrd-svg-wizard-FederationDataSource",i.Federation)),e},h.prototype.initialize=function(e){var t;return this.typeItems&&0!==this.typeItems.length?(t=void 0!==e.dataSourceType?e.dataSourceType:this.typeItems[0].type,this.selectedItem(d.findFirstItemMatchesCondition(this.typeItems,function(e){return e.type===t}))):this.selectedItem(null),l.Deferred().resolve().promise()},h);function h(e){var t=n.call(this)||this;return t._dataSourceTypeOptions=e,t._itemClick=function(e){t.selectedItem(e)},t._IsSelected=function(e){return t.selectedItem().type===e.type},t.selectedItem=s.observable(),t.typeItems=t._createTypeItems(),t._disposables.push(t.selectedItem.subscribe(function(){return t._onChange()})),t._extendCssClass=l.noop,t}t.ChooseDataSourceTypePage=y,t._registerChooseDataSourceTypePage=function(e,t){e.registerMetadata(u.DataSourceWizardPageId.ChooseDataSourceTypePage,{setState:function(e,t){t.dataSourceType=e.dataSourceType},getState:function(e){return e},resetState:function(e,t){e.dataSourceType=t.dataSourceType},create:function(){return new y(t)},description:c.getLocalization("Select the data source type.","DataAccessUIStringId.WizardPageChooseDSType"),template:"dxrd-page-choose-datasource-type"})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._SqlDataSourceWrapper=void 0;var i=r(91),o=r(1);function n(e,r,t){var o=this;this.sqlDataSourceJSON=e,this.customQueries=[],this.sqlDataSource=new i.SqlDataSource(e?JSON.parse(e):{},void 0,t),r?this.sqlDataSource.queries().some(function(e,t){return e.name()===r&&(o._queryIndex=t,!0)}):this._queryIndex=this.sqlDataSource.queries().length}Object.defineProperty(n.prototype,"sqlQuery",{get:function(){return this.sqlDataSource.queries()[this._queryIndex]},set:function(e){e&&(e.parent=this.sqlDataSource),this.sqlDataSource.queries()[this._queryIndex]=e},enumerable:!1,configurable:!0}),n.prototype.saveCustomQueries=function(){var t=new o.ModelSerializer;return 0<this.customQueries.length&&this.customQueries.map(function(e){return JSON.stringify(t.serialize(e))})},n.prototype.save=function(){return JSON.stringify((new o.ModelSerializer).serialize(this.sqlDataSource))},t._SqlDataSourceWrapper=n},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseJsonSourcePage=t.ChooseJsonSourcePage=void 0,r(2)),s=r(3),l=r(12),c=r(151),d=r(11),u=r(63),p=r(1),f=r(1),m=r(5),y=r(106),r=r(9),h=(i=r.WizardPageBase,n(g,i),g.prototype._onValidationGroupInitialized=function(e){this.__validationGroup=e.component},g.prototype._onValidationGroupDisposing=function(e){this.__validationGroup=null},g.prototype._onValidationSummaryInitialized=function(e){var t=this;this.__validationSummary=e.component,this.__validationGroup&&this.__validationSummary&&this._connectionName&&this._connectionName()&&setTimeout(function(){t.__validationGroup&&t.__validationGroup.validate()},1)},g.prototype._onValidationSummaryDisposing=function(e){this.__validationSummary=null},g.prototype.canNext=function(){var e=!!this._connectionName(),t=this._selectedSource().isValid(),r=this._selectedSource().isEmpty();return e&&t&&!r},g.prototype.commit=function(){var e=new u.JsonDataSource({}),e=(this._selectedSource().applySettings(e),(new p.ModelSerializer).serialize(e));return s.Deferred().resolve({jsonSource:JSON.stringify(e.Source),newConnectionName:this._connectionName()}).promise()},g.prototype.initialize=function(e){this.__validationGroup=null,this.__validationSummary=null;e=l._restoreJsonDataSourceFromState(e);return e.source.uri()?this._selectedSource(this._jsonUriSetting):e.source.json()&&this._selectedSource(this._jsonStringSettings),this._selectedSource().setValue(e),s.Deferred().resolve().promise()},g);function g(e,t){void 0===e&&(e=new d.RequestWrapper);var r=i.call(this)||this,o=(r._requestWrapper=e,r.__validationGroup=null,r.__validationSummary=null,r._jsonSourceTitle=f.getLocalization("JSON Source:","DataAccessUIStringId.WizardPageChooseJsonSource_SourceType"),r._jsonConnectionTitle=f.getLocalization("Connection Name:","AnalyticsCoreStringId.ReportDesigner_Wizard_Json_ConnectionName"),r._connectionNameValidationRules=[{type:"required",get message(){return y.getLocalizedValidationErrorMessage(null,this._jsonConnectionTitle)}}],r._connectionName=a.observable(""),r._validationGroup={onInitialized:function(e){return r._onValidationGroupInitialized(e)},onDisposing:function(e){return r._onValidationGroupDisposing(e)}},r._validationSummary={onInitialized:function(e){return r._onValidationSummaryInitialized(e)},onDisposing:function(e){return r._onValidationSummaryDisposing(e)}},r._sources=[],r._disposables.push(r._jsonStringSettings=new c.JsonDataSourceJsonSourcePageStringSettings),r._jsonStringSettings.onChange(function(){return r._onChange()}),r._disposables.push(r._jsonUriSetting=new c.JsonDataSourceJsonSourcePageUriSettings(r._requestWrapper,t)),r._jsonUriSetting.onChange(function(){return r._onChange()}),r._sources=[{value:r._jsonUriSetting,displayValue:"Web Service Endpoint (URI)",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_SourceType_Uri"},{value:r._jsonStringSettings,displayValue:"JSON String",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_SourceType_Custom"}],a.observable());return r._selectedSource=a.pureComputed({read:function(){return o()},write:function(e){o()!==e&&(o(e),e._validatorsReady&&e._validatorsReady(!1),setTimeout(function(){e._validate&&e._validate()},1),r._onChange())}}),r._selectedSource(r._sources[0].value),r._disposables.push(r._selectedSource),r._disposables.push(r._connectionName.subscribe(function(){return r._onChange()})),r}t.ChooseJsonSourcePage=h,t._registerChooseJsonSourcePage=function(e,t,r){e.registerMetadata(m.JsonDataSourceWizardPageId.ChooseJsonSourcePage,{setState:function(e,t){t.jsonSource=e.jsonSource,t.newConnectionName=e.newConnectionName},getState:function(e){return e.jsonDataSourceWizard},resetState:function(e,t){e.jsonSource=t.jsonSource},create:function(){return new h(t,r&&r())},description:f.getLocalization("Create a data connection.","AnalyticsCoreStringId.JsonDSWizard_CreateNewConnectionPage_Description"),template:"dxrd-page-jsonsource"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.PageIterator=void 0,r(3)),s=r(1),l=r(100),r=(i=s.Disposable,n(c,i),c.prototype.dispose=function(){this._pages.forEach(function(e){return e.dispose()}),this._pages=[]},c.prototype.__resetPages=function(e){if(e<this._pages.length)for(var t=this._pages.length-1;e<=t;t--)this.stateManager.resetPageState(this._pages[t].pageId),this._onResetPage(this._pages[t]),this._pages[t].dispose(),this._pages.splice(t,1)},c.prototype._nextPage=function(){return this._pages[this._currentIndex+1]},c.prototype._getNextExistingPage=function(){this._currentIndex+=1;var e=a.Deferred();return e.resolve(this._pages[this._currentIndex]),e.promise()},c.prototype._resetPages=function(){this.__resetPages(this._currentIndex+1)},c.prototype._getNextNewPage=function(e){this._currentIndex+=1;var t=a.Deferred(),r=(this.__resetPages(this._currentIndex),this.pageFactory.getMetadata(e)),e=new l._WrappedWizardPage(e,r.create(),r.template,r.description);return this._pages.push(e),t.resolve(e),t.promise()},c.prototype._isMoreThanOneDataSourceTypeAvailable=function(e){return 1<[e.jsonDataSourceAvailable,e.sqlDataSourceAvailable,e.objectDataSourceAvailable,e.federationDataSourceAvailable].filter(function(e){return!!e}).length},c.prototype._getStartPage=function(e){e=e||this.getNextPageId();var t=this.pageFactory.getMetadata(e),e=new l._WrappedWizardPage(e,t.create(),t.template,t.description);return this._pages.push(e),e},c.prototype._getNextPage=function(){var e,t=this._getCurrentPage();return t.isChanged||!this._nextPage()?(e=this.getNextPageId(this._getCurrentPage().pageId))?(t.isChanged=!1,this._getNextNewPage(e)):a.Deferred().reject().promise():this._getNextExistingPage()},c.prototype._getPreviousPage=function(){var e=a.Deferred();return this._currentIndex-1<0?e.reject(null):(--this._currentIndex,e.resolve(this._pages[this._currentIndex])),e.promise()},c.prototype._goToPage=function(t){var e=a.Deferred(),r=this._pages.filter(function(e){return e.pageId===t})[0];return r?(this._currentIndex=this._pages.indexOf(r),e.resolve(r)):e.reject(null),e.promise()},c.prototype._getCurrentPage=function(){return this._pages[this._currentIndex]},c.prototype._getCurrentState=function(){return this.stateManager.getCurrentState()},c.prototype.getNextPageId=function(e){return""},c);function c(e,t,r){void 0===r&&(r=function(){});var o=i.call(this)||this;return o.pageFactory=e,o.stateManager=t,o._onResetPage=r,o._pages=[],o._currentIndex=0,o}t.PageIterator=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySurface=void 0,r(2)),s=r(4),l=r(0),c=r(1),d=r(0),r=(i=s.SurfaceElementBase,n(u,i),u.prototype.checkParent=function(e){return!1},u.prototype.getChildrenCollection=function(){return this.tables},u.prototype.isJoined=function(e){return-1<this._joinedColumns().indexOf(e.getControlModel())},u._unitProperties={_width:function(e){return e.pageWidth},_height:function(e){return e.pageWidth},pageWidth:function(e){return e.pageWidth},pageHeight:function(e){return e.pageHeight},_bottom:function(e){return e.margins.bottom},_left:function(e){return e.margins.left},_right:function(e){return e.margins.right},_top:function(e){return e.margins.top}},u);function u(e,t){void 0===t&&(t=a.observable(1));var r=i.call(this,e,{measureUnit:a.observable("Pixels"),zoom:t,dpi:a.observable(100)},u._unitProperties)||this;return r.placeholder=function(){return c.getLocalization("Drop a table or view here to create a query.","AnalyticsCoreStringId.QueryBuilder_SurfacePlaceholder")},r.tables=a.observableArray(),r.relations=a.observableArray(),r.allowMultiselect=!1,r.focused=a.observable(!1),r.selected=a.observable(!1),r.underCursor=a.observable(new d.HoverInfo),r.templateName="dx-query-surface",r.rtl=a.observable(!1),r.measureUnit=r._context.measureUnit,r.dpi=r._context.dpi,(r._context=r).margins={bottom:r._bottom,left:r._left,right:r._right,top:r._top},r.zoom=t,l.createObservableArrayMapCollection(e.tables,r.tables,r._createSurface),l.createObservableArrayMapCollection(e.relations,r.relations,r._createSurface),r._joinedColumns=a.computed(function(){var t=[];return r.relations().forEach(function(e){e.conditions().forEach(function(e){e=e.getControlModel();e.parentColumn()&&t.push(e.parentColumn()),e.nestedColumn()&&t.push(e.nestedColumn())})}),t}),r}t.QuerySurface=r},function(e,t,r){"use strict";var o,l,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryViewModel=t.QueryViewModelBase=void 0,r(2)),n=r(31),s=r(54),d=r(34),a=r(18),u=r(37),p=r(1),f=r(1),m=r(35),y=r(65),h=r(75),g=r(0),_=r(168),b=r(36),v=r(55),S=r(172),P=r(4),x=r(0),C=r(1),T=r(0),w=r(122),O=r(0),D=r(0),r=(l=n.QueryElementBaseViewModel,i(N,l),N.prototype._initializeTable=function(t){this.dbSchemaProvider.getDbTable(t.name()).done(function(e){t.createColumns(e)})},N.prototype._addColumnsToTable=function(e,t){e._initColumns(t.map(function(e){return new a.DBColumn({Name:e.column()})}))},N.prototype.dispose=function(){l.prototype.dispose.call(this),this.onSave=null},N.prototype.addChild=function(e){e instanceof y.RelationViewModel?-1<this.relations.indexOf(e)||(e.parentModel(this),this.relations.push(e)):e instanceof s.TableViewModel?-1<this.tables.indexOf(e)||(e.parentModel(this),null!==O.getFirstItemByPropertyValue(this.tables(),"actualName",e.name())&&e.alias(g.getUniqueName(this.tables().map(function(e){return e.actualName()}),e.name()+"_")),this.tables.push(e)):T.NotifyAboutWarning("Attempt to add wrong child control.")},N.prototype.removeChild=function(t){if(t instanceof y.RelationViewModel){if(!(this.relations().length<1)){for(var e=t,r=this.relations().indexOf(e);0<e.conditions().length;)e.conditions.pop();this.relations.splice(r,1)}}else if(t instanceof s.TableViewModel){if(!(this.tables().length<1)){this.tables.splice(this.tables().indexOf(t),1);for(var o=this.relations(),i=o.length-1;-1<i;i--)o[i].parentTable()!==t&&o[i].nestedTable()!==t||this.removeChild(o[i]);this.sorting.remove(function(e){return e.isDepended(t.actualName())}),this.grouping.remove(function(e){return e.isDepended(t.actualName())}),this.columns.remove(function(e){return e.isDepended(t.actualName())})}}else T.NotifyAboutWarning("Attempt to remove wrong child control.")},N.prototype._validate=function(){if(0===this.tables().length)return!1;if(!(this.allColumnsInTablesSelected()||0<this.columns().length))return!1;var e=this.tables().map(function(e){return e.actualName()});return this._validateTable(e,e[0]),e.length<1},N.prototype._validateTable=function(t,r){var o=this,e=t.indexOf(r);e<0||(t.splice(e,1),this.relations().map(function(e){return e.parentTableName()===r?e.nestedTableName():e.nestedTableName()===r?e.parentTableName():null}).forEach(function(e){return o._validateTable(t,e)}))},N.prototype.createChild=function(e,t,r){return t?(this._initializeTable(t),this.addChild(t),t):l.prototype.createChild.call(this,e)},N.prototype.init=function(){var i=this,r=(this.tables().forEach(function(r){var o=[],e=i.sorting&&i.sorting()||[],t=i.grouping&&i.grouping()||[];[i.columns(),e,t].forEach(function(e){e.forEach(function(t){r.name()===t.table()&&t.itemType()===m.ColumnType.Column&&o.every(function(e){return e.column()!==t.column()})&&o.push(t)})}),i._addColumnsToTable(r,o),i._initializeTable(r)}),this.tables().reduce(function(e,t){return t.location.x(e),t.location.y(i.topOffset),e+t.size.width()+t.size.width()/2},30),!1);this._disposables.push(c.computed(function(){var e,t;r||(r=!0,t=(e=i.getAllColumns()).filter(function(e){return e.aggregate()===b.AggregationType.None}),i.aggregatedColumnsCount(e.length-t.length),e.length!==t.length?t.filter(function(e){return e.selected()&&!e.groupBy.peek()}).forEach(function(e){return e.groupBy(!0)}):e.every(function(e){return!e.selected.peek()||e.groupBy.peek()})||e.forEach(function(e){e.groupBy.peek()&&e.groupBy(!1)}),r=!1)}))},N.prototype.getTable=function(t){return O.findFirstItemMatchesCondition(this.tables(),function(e){return e.actualName()===t})},N.prototype.canSave=function(e){void 0===e&&(e=!0);var r=[];return this.tables().forEach(function(t){t.getInvalidColumns().forEach(function(e){r.push(x.formatUnicorn(C.getLocalization('The schema does not contain the following column: "{0}"."{1}".',"DataAccessStringId.ColumnNotInSchemaValidationException"),t.actualName(),e.actualName()))})}),!(0<r.length)||(e&&T.ShowMessage(r.join("\n"),"error"),!1)},N.prototype.save=function(){var e;if(this.canSave())return e=this.serialize(!0),this.onSave&&this.onSave(e),e},N.prototype.serialize=function(e){return(e=void 0===e?!1:e)?{Query:this.serialize()}:(new p.ModelSerializer).serialize(this)},N.prototype._findTableInAncestors=function(t,r){var o=this;return this.relations().some(function(e){return e.nestedTable()===t&&(e.parentTable()===r||o._findTableInAncestors(e.parentTable(),r))})},N.prototype._findHead=function(t){var r=null;return this.relations().some(function(e){return!!(r=e.nestedTable()===t?e:r)}),r?this._findHead(r.parentTable()):t},N.prototype._isHead=function(t){return!this.relations().some(function(e){return e.nestedTable()===t})},N.prototype._reverseRelations=function(e,t){t.forEach(function(e){var t=e.parentTable();e.parentTable(e.nestedTable()),e.nestedTable(t),e.conditions().forEach(function(e){var t=e.parentColumnName();e.parentColumnName(e.nestedColumnName()),e.nestedColumnName(t)})})},N.prototype.getAllColumns=function(){return[].concat.apply([],this.tables().map(function(e){return e.columns()}))},N.prototype.cerateJoinCondition=function(t,r){var o=t.parentModel(),i=r.parentModel();if(o===i)return null;var e,n,a=!1,s=O.findFirstItemMatchesCondition(this.relations(),function(e){return a=e.parentTable()===i&&e.nestedTable()===o,e.parentTable()===o&&e.nestedTable()===i||a});return s||(this._findTableInAncestors(o,i)?a=!0:this._findHead(o)===this._findHead(i)||this._isHead(i)||(n=this._findAncestorsRelations(o),e=this._findAncestorsRelations(i),n.outer>e.outer?this._reverseRelations(i,e.relations):n.outer<e.outer?(this._reverseRelations(o,n.relations),a=!0):n.inner>=e.inner?this._reverseRelations(i,e.relations):n.inner<e.inner&&(this._reverseRelations(o,n.relations),a=!0))),a&&(e=o,o=i,i=e,n=t,t=r,r=n),s=s||this.createChild({"@ControlType":"Relation","@Parent":o.actualName(),"@Nested":i.actualName(),"@Type":"Inner"}),O.findFirstItemMatchesCondition(s.conditions(),function(e){return e.parentColumn()===t&&e.nestedColumn()===r})||s.createChild({"@ControlType":"JoinCondition","@Parent":t.name(),"@Nested":r.name()})},N.prototype.tryToCreateRelationsByFK=function(e){},N.pageMargin=20,N);function N(e,t,r,o,i){void 0===r&&(r=u.ParametersMode.ReadWrite);function n(e){return!e.table()&&e.itemType()===m.ColumnType.AllColumns}var a=l.call(this,e,null,i)||this,s=(a.topOffset=65,a._findAncestorsRelations=function(t){var r={inner:0,outer:0,relations:[]};return a.relations().forEach(function(e){e.nestedTable()===t&&(r.relations.push(e),"LeftOuter"===e.joinType()?r.outer++:r.inner++,e=a._findAncestorsRelations(e.parentTable()),r.inner+=e.inner,r.outer+=e.outer,r.relations.push.apply(r.relations,e.relations))}),r},a.aggregatedColumnsCount=c.observable(0),a.defaultPageHeight=500,a.defaultPageWidth=500,a.dbSchemaProvider=t,a.onSave=o,a.editableName=c.observable(a.name()),a._disposables.push(a.name=c.pureComputed({read:a.editableName,write:function(e){}})),c.observable(0));a._disposables.push(a.pageWidth=c.pureComputed({read:function(){var t=a.defaultPageWidth;return a.tables().forEach(function(e){e=e.location.x()+e.size.width();t<e&&(t=e)}),Math.max(s(),t)},write:function(e){s(e)}})),a._disposables.push(a.pageHeight=c.pureComputed(function(){var t=a.defaultPageHeight;return a.tables().forEach(function(e){e=e.location.y()+e.size.height();t<e&&(t=e+E.pageMargin)}),t})),a.margins=P.Margins.fromString(),a._disposables.push(a.isValid=c.pureComputed(function(){return a._validate()}));return a._disposables.push(a.allColumnsInTablesSelected=c.pureComputed({read:function(){return a.columns().some(n)},write:function(e){e?a.columns.push(new d.ColumnExpression({"@ItemType":"AllColumns"},a,i)):a.columns.remove(n)}})),a.sorting||(a.sorting=c.observableArray([])),a.grouping||(a.grouping=c.observableArray([])),a}t.QueryViewModelBase=r;i(z,I=r),z.prototype.isPropertyDisabled=function(e){return"skip"===e&&(0===this.skip()&&!this.sorting().length)},z.prototype.getInfo=function(){return w.querySerializationsInfo},z.prototype.createChild=function(e){return I.prototype.createChild.call(this,e,"Table"===e["@ControlType"]?new s.TableViewModel(e,this):void 0)},z.prototype.tryToCreateRelationsByFK=function(n){var a=this;this.dbSchemaProvider.getDbSchema().done(function(t){var e=t.tables.filter(function(e){return e.name===n.name()})[0];e&&e.foreignKeys.forEach(function(e){var t=O.getFirstItemByPropertyValue(a.tables.peek(),"name",e.primaryKeyTable);if(t)for(var r=0;r<e.primaryKeyColumns.length;r++){var o=O.getFirstItemByPropertyValue(n.columns(),"name",e.columns[r]),i=O.getFirstItemByPropertyValue(t.columns(),"name",e.primaryKeyColumns[r]);o&&i&&a.cerateJoinCondition(o,i)}}),a.tables.peek().forEach(function(i){var e=t.tables.filter(function(e){return e.name===i.name()})[0];e&&e.foreignKeys.forEach(function(e){if(e.primaryKeyTable===n.name())for(var t=0;t<e.primaryKeyColumns.length;t++){var r=O.getFirstItemByPropertyValue(n.columns(),"name",e.primaryKeyColumns[t]),o=O.getFirstItemByPropertyValue(i.columns(),"name",e.columns[t]);r&&o&&a.cerateJoinCondition(o,r)}})})})},z.emptyModel={"@ItemType":"Query",Tables:{SelectedTables:{},Relations:{}},Columns:{},Sorting:{},Grouping:{}};var I,E=z;function z(e,t,r,o,i){void 0===r&&(r=u.ParametersMode.ReadWrite);var n=I.call(this,D.extend(!0,e,z.emptyModel,e),t,r,o,i)||this,a=(n.controlType="Query",n.type("SelectQuery"),n.tables=f.deserializeArray(e.Tables.SelectedTables,function(e){return new s.TableViewModel(e,n,i)}),n.columns=f.deserializeArray(e.Columns,function(e){return new d.ColumnExpression(e,n,i)}),n.sorting=f.deserializeArray(e.Sorting,function(e){return new d.ColumnExpression(e,n,i)}),n.grouping=f.deserializeArray(e.Grouping,function(e){return new d.ColumnExpression(e,n,i)}),n.relations=f.deserializeArray(e.Tables.Relations,function(e){return new y.RelationViewModel(e,n,i)}),n.init(),n._tablesObject.tables=n.tables,n._tablesObject.relations=n.relations,f.deserializeArray(e.Parameters,function(e){return new h.ParameterViewModel(e,i)}));return r===u.ParametersMode.ReadWrite?(n.parameters=a,n._disposables.push(n.parameters.subscribe(function(e){e.forEach(function(t){"added"!==t.status||t.value.name()||t.value.name(g.getUniqueName(n.parameters().filter(function(e){return e!==t.value}).map(function(e){return e.name()}),"parameter"))})},null,"arrayChange"))):n._disposables.push(n.parameters=c.computed(function(){return a()})),n.filterString=new _.QBFilterStringOptions(n._filterString,null,c.pureComputed(function(){return 0===n.tables().length&&n.filterString&&0===n.filterString.value().length})),n.filterString.initializeFilterStringHelper(n.parameters,r),n.groupFilterString=new _.QBFilterStringOptions(n._groupFilterString,null,c.pureComputed(function(){return!n.columns().some(v.isAggregatedExpression)&&n.groupFilterString&&0===(n.groupFilterString.value()||"").length})),n.groupFilterString.initializeFilterStringHelper(n.parameters,r,new S.GroupFilterEditorSerializer(n.columns)),n}t.QueryViewModel=E},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.TableViewModel=void 0,r(2)),s=r(31),l=r(73),c=r(74),d=r(4),u=r(4),p=r(121),f=r(0),r=(i=s.QueryElementBaseViewModel,n(m,i),m.prototype.columns=function(){return this._columns()},m.prototype.toggleSelectedColumns=function(){var t=!this.allColumnsSelected.peek(),e=this.parentModel();this._columns.peek().forEach(function(e){return e.toggleSelected(t,!0)}),e.columns.valueHasMutated()},m.prototype.getColumnConnectionPoints=function(t){var r=this,e=a.pureComputed({read:function(){var e=r._columns.indexOf(t)+1;return r.location.y()+m.COLUMNS_OFFSET+m.COLUMN_MARGIN*e+m.COLUMN_HEIGHT*(e+.5)+r.tableOffset()},deferEvaluation:!0});return this._disposables.push(e),{left:{x:this._columnsConnectionPointLeftX,y:e},right:{x:this._columnsConnectionPointRightX,y:e}}},m.prototype.getInfo=function(){return p.tableSerializationInfo},m.prototype.getInvalidColumns=function(){return this.columns().filter(function(e){return e.isNotAvailable()&&e.selected()})},m.prototype.getColumn=function(e){return f.getFirstItemByPropertyValue(this._columns(),"name",e)},m.prototype._initColumns=function(e,t){var r=this,o=(void 0===t&&(t=!1),[]);e.forEach(function(e){o.push(r.createChildColumn(e))}),this._columns(t?[].concat([],this.columns(),o):o)},m.prototype.createChildColumn=function(e){return new l.ColumnViewModel({"@Name":e.name},e,this,this.serializer)},m.prototype.createColumns=function(r){var e=this,o=0;this.columns().forEach(function(t){var e=r.columns.filter(function(e){return e.name===t.name()})[0];e?(t._type(e.type),t._size(e.size)):(t.isNotAvailable(r.columns.every(function(e){return e.name!==t.name()})),o++)}),this.columns().length-o<r.columns.length&&this._initColumns(r.columns.filter(function(t){return e.columns().every(function(e){return e.name()!==t.name})}),!0),this._initialized(!0)},m.COLUMNS_OFFSET=37,m.COLUMN_HEIGHT=32,m.COLUMN_MARGIN=1,m.TABLE_MIN_WIDTH=80,m.TABLE_DEFAULT_HEIGHT=136,m);function m(e,t,r){var o=i.call(this,e,t,r)||this;return o.serializer=r,o._columnsConnectionPointLeftX=a.pureComputed(function(){return o.location.x()}),o._columnsConnectionPointRightX=a.pureComputed(function(){return o.location.x()+o.size.width()}),o._columns=a.observableArray(),o._initialized=a.observable(!1),o.tableOffset=a.observable(0),o.size=new d.Size(199,123),o.location=new u.Point(0,0),o.isReady=a.observable(!1),o.allColumnsSelected=a.computed({read:function(){var e=o.columns().filter(function(e){return e.selected()});return 0!==e.length&&e.length===o._columns.peek().length},deferEvaluation:!0}),o.isInitialized=a.pureComputed(function(){return o._initialized()}),o.itemType="Table",o.controlType="Table",o._disposables.push(o.size.height=a.pureComputed({read:function(){return 0===o._columns().length?m.TABLE_DEFAULT_HEIGHT+o.tableOffset():m.COLUMNS_OFFSET+(m.COLUMN_HEIGHT+m.COLUMN_MARGIN)*(o._columns().length+1)+o.tableOffset()},write:function(){}})),o.asterisk=new c.AllColumnsViewModel(o,o.serializer),o._disposables.push(o.actualName=a.pureComputed(function(){return o.alias()||o.name()})),o}t.TableViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryBuilderObjectsProvider=t.isAggregatedExpression=void 0;var o=r(2),a=r(3),i=r(36),s=r(0);function n(e){return e.aggregate()!==i.AggregationType.None}t.isAggregatedExpression=n;l._createTableInfo=function(e){return{displayName:e.actualName(),name:e.actualName(),isList:!0,specifics:"Default",collapsed:o.observable(!0)}},l._createColumnInfo=function(e,t){return{displayName:t.getColumnName(e),isList:!1,specifics:t.getSpecifics(e),dataType:t.getDataType(e),name:t.getColumnName(e)}},l.whereClauseObjectsFilter={filterColumns:function(e){return e},filterTables:function(e){return e},getColumnName:function(e){return e.name.peek()},getSpecifics:function(e){return e.specifics},getDataType:function(e){return e.dataType.peek()}},l.groupByObjectsFilter={filterColumns:function(e){return e.filter(n)},filterTables:function(e){return e.filter(function(e){return e.columns().some(n)})},getColumnName:function(e){return e.actualName.peek()},getSpecifics:function(e){switch(e.aggregate()){case i.AggregationType.Avg:case i.AggregationType.AvgDistinct:return"Float";case i.AggregationType.Count:case i.AggregationType.CountDistinct:return"Integer";default:return e.specifics}},getDataType:function(e){return null}};r=l;function l(i,n){this.getItems=function(t){var e,r=a.Deferred(),o=[];return o=""===t.fullPath?n.filterTables(i().tables()).map(l._createTableInfo):(e=s.findFirstItemMatchesCondition(i().tables(),function(e){return e.actualName()===t.fullPath}),n.filterColumns(e&&e.columns()||[]).map(function(e){return l._createColumnInfo(e,n)})),r.resolve(o),r.promise()},this.hasParameter=function(t){return 0<i().parameters().filter(function(e){return e.name()===t}).length},this.getColumnInfo=function(t){if(t){var e,r=s.find(i().tables(),function(e){return 0===t.indexOf(e.actualName()+".")});if(r)return(e=s.find(n.filterColumns(r.columns()||[]),function(e){return t===r.actualName()+"."+n.getColumnName(e)}))?l._createColumnInfo(e,n):null}return null}}t.QueryBuilderObjectsProvider=r},function(e,t,r){"use strict";function o(){this.metadata={}}Object.defineProperty(t,"__esModule",{value:!0}),t.PageFactory=void 0,o.prototype.registerMetadata=function(e,t){t.canFinish||(t.canFinish=function(e){return e.canFinish()}),t.canNext||(t.canNext=function(e){return e.canNext()}),this.metadata[e]=t},o.prototype.getMetadata=function(e){return this.metadata[e]},o.prototype.unregisterMetadata=function(e){delete this.metadata[e]},o.prototype.reset=function(){this.metadata={}},t.PageFactory=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diagramControlsFactory=void 0;r=r(1);t.diagramControlsFactory=new r.ControlsFactory},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramElementViewModel=void 0,r(1)),s=r(0),l=r(39),r=r(16),r=(i=r.DiagramElementBaseViewModel,n(c,i),c);function c(e,t,r){var o=i.call(this,s.extend({"@ControlType":"DiagramElement"},e),t,r)||this;return o.connectingPoints=a.deserializeArray(e&&e.ConnectingPoints||[],function(e){return new l.ConnectingPointViewModel(e,o,r)}),void 0===o.text()&&o.text(o.name()),o}t.DiagramElementViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.RoutedConnectorViewModel=void 0,r(2)),s=r(82),f=r(4),m=r(24),l=r(0),r=(i=s.ConnectorViewModel,n(c,i),c.prototype.getX=function(){var t=i.prototype.getX.call(this);return this.routePoints&&this.routePoints().forEach(function(e){e.x()<t&&(t=e.x())}),t},c.prototype.getY=function(){var t=i.prototype.getY.call(this);return this.routePoints&&this.routePoints().forEach(function(e){e.y()<t&&(t=e.y())}),t},c.prototype.getWidth=function(){var t=i.prototype.getWidth.call(this),r=this.getX();return this.routePoints&&[this.startPoint().location,this.endPoint().location].concat(this.routePoints()).forEach(function(e){e.x()-r>t&&(t=e.x()-r)}),t},c.prototype.getHeight=function(){var t=i.prototype.getHeight.call(this),r=this.getY();return this.routePoints&&[this.startPoint().location,this.endPoint().location].concat(this.routePoints()).forEach(function(e){e.y()-r>t&&(t=e.y()-r)}),Math.round(t)},c.prototype._fixPoint=function(e,t){switch(t){case m.PointSide.North:e.y(e.y()-m.GRID_SIZE);break;case m.PointSide.East:e.x(e.x()+m.GRID_SIZE);break;case m.PointSide.West:e.x(e.x()-m.GRID_SIZE);break;case m.PointSide.South:e.y(e.y()+m.GRID_SIZE)}},c.prototype._getStartPointSide=function(){return this.startPoint().connectingPoint()?this.startPoint().connectingPoint().side():this.startPoint().location.y()!==this.endPoint().location.y()?this.startPoint().location.y()>this.endPoint().location.y()?m.PointSide.North:m.PointSide.South:this.startPoint().location.x()>this.endPoint().location.x()?m.PointSide.West:m.PointSide.East},c.prototype._getEndPointSide=function(){return this.endPoint().connectingPoint()?this.endPoint().connectingPoint().side():this.startPoint().location.y()!==this.endPoint().location.y()?this.startPoint().location.y()>this.endPoint().location.y()?m.PointSide.South:m.PointSide.North:this.startPoint().location.x()>this.endPoint().location.x()?m.PointSide.East:m.PointSide.West},c.prototype._getRatio=function(e){for(var t=this._getPower(e),r=Math.pow(2,t),o=Math.pow(2,t-1),i=[],n=1;n<o;n++)n%2!=0&&(i.push(r-n),i.push(n));return i.reverse(),(i[e-o]||1)/r},c.prototype.beginUpdate=function(){this._isUpdating=!0},c.prototype.endUpdate=function(){this._isUpdating=!1},c);function c(e,t,r){var p=i.call(this,l.extend({"@ControlType":"RoutedConnector"},e),t,r)||this;return p._isUpdating=!1,p._getPower=function(e){for(var t=0;t<10;t++)if(e>=Math.pow(2,t)&&e<Math.pow(2,t+1))return t+1;return 1},p.seriesNumber=a.observable(1),p.routePoints=a.observable([]),p.freezeRoute=a.observable(!1),p._disposables.push(a.computed(function(){var e=!(1+p.startPoint().location.x()+p.startPoint().location.y()+p.endPoint().location.x()+p.endPoint().location.y());p._isUpdating||p.freezeRoute(e)})),p._disposables.push(a.computed(function(){var e,t,r,o,i,n,a,s,l,c,d,u;p.freezeRoute()||(e=[],t=p._getStartPointSide(),r=p._getEndPointSide(),o=new f.Point(p.startPoint().location.x(),p.startPoint().location.y()),i=new f.Point(p.endPoint().location.x(),p.endPoint().location.y()),p.startPoint().connectingPoint()&&(p._fixPoint(o,p.startPoint().connectingPoint().side()),e.push(o)),p.endPoint().connectingPoint()&&p._fixPoint(i,p.endPoint().connectingPoint().side()),n=Math.min(o.x(),i.x()),a=Math.min(o.y(),i.y()),s=Math.abs(o.x()-i.x()),l=Math.abs(o.y()-i.y()),c=p.seriesNumber(),d=p._getRatio(c),u=(c-1)*m.GRID_SIZE,0<o.y()-i.y()?0<o.x()-i.x()?t===m.PointSide.North||t===m.PointSide.East?r===m.PointSide.North||r===m.PointSide.East?(1!==c&&e.push(new f.Point(n+(s+=u),a+l)),e.push(new f.Point(n+s,a))):(e.push(new f.Point(n+s,a+l*d)),e.push(new f.Point(n,a+l*d))):r===m.PointSide.South||r===m.PointSide.West?e.push(new f.Point(n,a+l)):(e.push(new f.Point(n+s*d,a+l)),e.push(new f.Point(n+s*d,a))):t===m.PointSide.North||t===m.PointSide.West?r===m.PointSide.North||r===m.PointSide.West?(1!==c&&e.push(new f.Point(n-=u,a+l)),e.push(new f.Point(n,a))):(e.push(new f.Point(n,a+l*d)),e.push(new f.Point(n+s,a+l*d))):r===m.PointSide.South||r===m.PointSide.East?e.push(new f.Point(n+s,a+l)):(e.push(new f.Point(n+s*d,a+l)),e.push(new f.Point(n+s*d,a))):0<o.x()-i.x()?t===m.PointSide.South||t===m.PointSide.East?r===m.PointSide.South||r===m.PointSide.East?(1!==c&&e.push(new f.Point(n+(s+=u),a)),e.push(new f.Point(n+s,a+l))):(e.push(new f.Point(n+s,a+l*d)),e.push(new f.Point(n,a+l*d))):r===m.PointSide.North||r===m.PointSide.West?e.push(new f.Point(n,a)):(e.push(new f.Point(n+s*d,a)),e.push(new f.Point(n+s*d,a+l))):t===m.PointSide.South||t===m.PointSide.West?r===m.PointSide.South||r===m.PointSide.West?(1!==c&&e.push(new f.Point(n-=u,a)),e.push(new f.Point(n,a+l))):(e.push(new f.Point(n,a+l*d)),e.push(new f.Point(n+s,a+l*d))):r===m.PointSide.North||r===m.PointSide.East?e.push(new f.Point(n+s,a)):(e.push(new f.Point(n+s*d,a)),e.push(new f.Point(n+s*d,a+l))),p.endPoint().connectingPoint()&&e.push(i),p.routePoints(e))})),p}t.RoutedConnectorViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=(Object.defineProperty(t,"__esModule",{value:!0}),t.RoutedConnectorSurface=void 0,r(2)),a=r(38),s=r(25),r=(i=a.DiagramElementBaseSurface,n(l,i),l.prototype._createRoutePoint=function(e,t){var r=this;return{x:d.pureComputed(function(){return r._context.rtl()?Math.round(r.getControlModel().size.width()-(e.x()-t.x())):Math.round(e.x()-t.x())}),y:d.pureComputed(function(){return Math.round(e.y()-t.y())}),modelPoint:e}},l.prototype._createRouteLineWrapper=function(o,i,e){var n=this,a=(void 0===e&&(e=!1),this),s=Math.abs(o.x.peek()-i.x.peek())<1,l=o.modelPoint.y.peek(),c=o.modelPoint.x.peek();return{position:{top:Math.min(o.y.peek(),i.y.peek())-2,left:Math.min(o.x.peek(),i.x.peek())-2,width:Math.abs(o.x.peek()-i.x.peek())+6,height:Math.abs(o.y.peek()-i.y.peek())+6},isVerticalLine:s,resizeHandler:function(e){a._control.freezeRoute(!0);try{var t,r;a._control.beginUpdate(),s?(t=n._context.rtl()?c-e.delta.dx:c+e.delta.dx,o.modelPoint.x(t),i.modelPoint.x(t)):(r=l+e.delta.dy,o.modelPoint.y(r),i.modelPoint.y(r))}finally{a._control.endUpdate()}},resizeStopped:function(){a._control.routePoints.notifySubscribers(a._control.routePoints())},isLocked:d.observable(e)}},l.prototype._updateRoutePoints=function(){var t=this,r=[],e=this.getControlModel(),o=e.location;r.push(this._createRoutePoint(e.startPoint().location,o)),e.routePoints().forEach(function(e){r.push(t._createRoutePoint(e,o))}),r.push(this._createRoutePoint(e.endPoint().location,o)),this.routePoints(r)},l._connectorsCount=0,l);function l(e,t){var r=i.call(this,e,t,null)||this;return r.template="dxdd-routed-connector",r.selectiontemplate="dxdd-routed-connector-selection",r.showArrow=d.observable(!1),r.showRightArrow=d.observable(!1),r.isVisible=d.observable(!0),r.routePoints=d.observableArray(),r.routePointsSet=d.pureComputed(function(){var t=[];return r.routePoints().forEach(function(e){t.push(e.x()+" "+e.y())}),t.join(", ")}),r.routeLineWrappers=d.pureComputed(function(){for(var e=[],t=1;t<r.routePoints().length;t++)e.push(r._createRouteLineWrapper(r.routePoints()[t-1],r.routePoints()[t],1===t||t===r.routePoints().length-1));return e}),r.connectorID=function(){return r._connectorID},r._disposables.push(e),r._connectorID=l._connectorsCount++,r.startPoint=d.pureComputed(function(){return new s.ConnectionPointSurface(e.startPoint(),t)}),r.endPoint=d.pureComputed(function(){return new s.ConnectionPointSurface(e.endPoint(),t)}),r._disposables.push(e.routePoints.subscribe(function(e){r._updateRoutePoints()})),r._updateRoutePoints(),r}t.RoutedConnectorSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeDataConnection=void 0;var o=r(1),i=r(0);t.serializeDataConnection=function(e){var t=new o.ModelSerializer,r={DataConnection:t.serialize(e)};return e.options&&i.extend(r,{ConnectionOptions:t.serialize(e.options)}),JSON.stringify(r)}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSchemaRootNode=t.JsonSchemaNode=t.JsonNode=t.JsonNodeType=void 0,r(2)),s=r(1),l=r(19),c=r(1),r=r(1),d=((h=n=t.JsonNodeType||(t.JsonNodeType={}))[h.Object=0]="Object",h[h.Array=1]="Array",h[h.Property=2]="Property",u.from=function(e,t){return new u(e,t)},u.toJsonNodes=function(e,t,r){return(e||[]).map(function(e){return u.toJsonNode(e,t,r)})},u.toJsonNode=function(e,t,r,o){void 0===o&&(o=!0);var i=t.serialize(e,_,r),o=o?u.toJsonNodes(e.nodes,t,r):[];return 0<o.length&&(i.Node=o),i},u.prototype.getInfo=function(){return _},u);function u(e,t){this.nodes=[],e&&((t=t||new s.ModelSerializer).deserialize(this,e),e=(t=e.Node)instanceof Array?l.deserializeToCollection(t,function(e){return new u(e)}).sort(function(e,t){return e.name().localeCompare(t.name())}):t?[new u(t)]:[],this.nodes=e)}t.JsonNode=d;i(m,p=d),m.from=function(e,t){return new m(e||{},t)},m.toJson=function(e,t,r){if(!e)return{};var o={Node:d.toJsonNode(e,t,r,!1)};return o.Node.Node=d.toJsonNodes(e.nodes,t,r),o},m.prototype.getInfo=function(){return _};var p,f=m;function m(e,t){e=p.call(this,e.Node,t)||this;return e.nodeType=n[n.Object],e.valueType="Unknown",e.displayName=c.getLocalization("root"),e.selected=a.observable(!1),e}t.JsonSchemaNode=f;i(g,y=d),g.from=function(e,t){return new g(e)},g.toJson=function(e,t,r){return f.toJson(e.nodes[0],t,r)},g.prototype.getInfo=function(){return b},g.prototype.getRootElementPartList=function(e){if(void 0===e&&(e=!0),this._rootElementList)return this._rootElementList;if(0===this.nodes.length)return[];this._rootElementList=[];var t=this.nodes[0],r={fullPath:a.unwrap(t.name),path:"",pathParts:[a.unwrap(t.name)]};return this._fillRootElementList(t,r,e),this._rootElementList.sort(function(e,t){return e.fullPath.localeCompare(t.fullPath)}),this._rootElementList},g.prototype._fillRootElementList=function(e,r,o){var i=this;if(void 0===e&&(e=this.nodes[0]),void 0===r&&(r={fullPath:"root",path:"",pathParts:["root"]}),!e)return this._rootElementList;var t=a.unwrap(e.nodeType);if(t!=n[n.Property]){if(t!==n[n.Array])return o&&t===n[n.Object]&&this._rootElementList.push(r),(e.nodes||[]).forEach(function(e){var t=i._getNextPath(r,e.name());i._fillRootElementList(e,t,o)}),this._rootElementList;this._rootElementList.push(r)}},g.prototype._getNextPath=function(e,t){var r=e.fullPath?[e.fullPath,t].join("."):t;return{pathParts:e.pathParts.concat(t),fullPath:r,path:t}};var y,h=g;function g(e,t){e=y.call(this,e)||this;return e._rootElementList=null,e}t.JsonSchemaRootNode=h;var _=[{propertyName:"nodes",modelName:"Node",from:d.from,toJsonObject:d.toJsonNodes},{propertyName:"name",modelName:"@Name"},{propertyName:"selected",modelName:"@Selected",from:r.parseBool},{propertyName:"nodeType",modelName:"@NodeType"},{propertyName:"type",modelName:"@Type"}],b=[{propertyName:"nodes",modelName:"Node",from:h.from,toJsonObject:h.toJsonNodes}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonDataSource=void 0,r(3)),s=r(1),l=r(1),c=r(11),d=r(136),u=r(62),r=r(135),s=(i=s.Disposable,n(p,i),p.prototype.getInfo=function(){return f},p.prototype.clone=function(e){return new p((e=e||new l.ModelSerializer).serialize(this))},p.from=function(e,t){return new p(e,t)},p.toJson=function(e,t,r){return t.serialize(e,f,r)},p.prototype.getSchema=function(e){var t=this,r=(void 0===e&&(e=[]),a.Deferred());return this.jsonSchemaProvider.getJsonSchema(e).done(function(e){t.schema=e,r.resolve(e)}).fail(function(){t.schema=null,r.reject()}),r.promise()},p);function p(e,t,r){void 0===r&&(r=new c.RequestWrapper);var o=i.call(this)||this;return(t=t||new l.ModelSerializer).deserialize(o,e),o.jsonSchemaProvider=new d.JsonSchemaProvider(o,r),o.source&&o._disposables.push(o.source),o._disposables.push(o.connectionName.subscribe(function(){o.source.resetSource()})),o}t.JsonDataSource=s;var f=[{propertyName:"name",modelName:"@Name"},{propertyName:"connectionName",modelName:"@ConnectionName"},{propertyName:"rootElement",modelName:"@RootElement",defaultVal:"root"},{propertyName:"schema",modelName:"Schema",from:u.JsonSchemaRootNode.from,toJsonObject:u.JsonSchemaRootNode.toJson},{propertyName:"source",modelName:"Source",from:r.JsonSource.from,toJsonObject:r.JsonSource.toJson}]},function(e,t,r){"use strict";function o(e){var t=this;e&&(t.name=e.name,t.displayName=e.displayName,t.dataMember=e.dataMember)}var i,n,a=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectType=t.ObjectCtor=t.ObjectDataMember=t.ObjectDataSourceMethodBase=t.ObjectParameter=t.ObjectDataMemberBase=void 0,r(2)),l=r(19),c=r(1),d=(t.ObjectDataMemberBase=o,a(u,n=o),u);function u(e){var t=n.call(this,e)||this;return e&&(t.value=e.value,t.type=e.type,t.resultType=e.resultType),t}t.ObjectParameter=d;a(f,p=o);var p,r=f;function f(e){var t=p.call(this,e)||this;return t.parameters=l.deserializeToCollection(e.parameters,function(e){return new d(e)}),t}t.ObjectDataSourceMethodBase=r;a(h,m=r),h.empty=function(){return new h({displayName:h.entireObject(),name:h.entireObject(),parameters:[]})},h.prototype.isEntireObject=function(){return this.name==h.entireObject()&&this.displayName==h.entireObject()},h.prototype.isAvailable=function(){return!this.disabled()},h.entireObject=function(){return c.getLocalization("Entire Object","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_EntireObject")};var m,y=h;function h(e){var t=m.call(this,e)||this;return t.disabled=s.observable(!1),t.memberType=e&&e.memberType,t.isStatic=e.isStatic,t}t.ObjectDataMember=y;a(b,g=r);var g,_=b;function b(){return null!==g&&g.apply(this,arguments)||this}t.ObjectCtor=_;a(S,v=o),S.prototype.updateMembers=function(t){this.members.forEach(function(e){t?e.disabled(!1):e.disabled(!!e.isEntireObject()||!e.isStatic)})};var v,r=S;function S(e){var t=v.call(this,e)||this;return t.ctors=l.deserializeToCollection(e.ctors,function(e){return new _(e)}),t.members=l.deserializeToCollection(e.members,function(e){return new y(e)}),t}t.ObjectType=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.RelationViewModel=void 0,r(2)),s=r(31),l=r(1),c=r(95),d=r(96),u=r(0),r=(i=s.QueryElementBaseViewModel,n(p,i),p.prototype._getConditionNumber=function(){for(var e=this.conditions().length+1,t=this.conditions().map(function(e){return e.seriesNumber()}),r=0;r<this.conditions().length;r++)if(-1===t.indexOf(r+1)){e=r+1;break}return e},p.prototype.getInfo=function(){return d.relationSerializationInfo},p.prototype.addChild=function(e){this.conditions&&-1===this.conditions.indexOf(e)&&(e.seriesNumber(this._getConditionNumber()),e.parentModel(this),this.conditions.push(e))},p.prototype.removeChild=function(e){e=this.conditions().indexOf(e);-1<e&&this.conditions.splice(e,1),0===this.conditions().length&&this.parentModel().removeChild(this)},p);function p(e,t,r){var o=i.call(this,u.extend(e,{"@ControlType":"Relation","@ItemType":"Relation"}),t,r)||this;return o.parentTable=a.observable(t.getTable(o.parentTableName.peek())),o.nestedTable=a.observable(t.getTable(o.nestedTableName.peek())),o.parentTableName=a.pureComputed(function(){return o.parentTable().actualName()}),o.nestedTableName=a.pureComputed(function(){return o.nestedTable().actualName()}),o.conditions=l.deserializeArray(e.KeyColumns,function(e){return new c.JoinConditionViewModel(e,o,r)}),o}t.RelationViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationMasterDetailRelation=void 0,r(1)),s=r(0),r=r(42),l=[{propertyName:"masterColumn",modelName:"@Parent"},{propertyName:"detailColumn",modelName:"@Nested"},{propertyName:"itemType",modelName:"@ItemType"}],c=[{propertyName:"masterQuery",modelName:"@MasterQueryName"},{propertyName:"detailQuery",modelName:"@DetailQueryName"},{propertyName:"_customName",modelName:"@RelationName"},{propertyName:"keyColumns",modelName:"KeyColumns",array:!0,info:l},{propertyName:"itemType",modelName:"@ItemType"}],r=(i=r.MasterDetailRelation,n(d,i),d.create=function(e){var t=new a.ModelSerializer;return(e=new d(t.serialize(e),t)).keyColumns().forEach(function(e){return e.getInfo=function(){return l}}),e},d);function d(e,t){var r=i.call(this,e,t)||this;return r.getInfo=function(){return c},e["@MasterQueryName"]&&e["@DetailQueryName"]&&(t||new a.ModelSerializer).deserialize(r,s.extend(e,{"@ItemType":"Relation"})),r}t.FederationMasterDetailRelation=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseSqlConnectionPage=t.ChooseSqlConnectionPage=void 0,r(2)),s=r(3),l=r(0),c=r(5),d=r(0),u=r(1),r=r(9),p=(i=r.WizardPageBase,n(f,i),f.prototype.initialize=function(e){var t=this._connectionStrings();return 1===t.length?this._selectedConnectionString([t[0]]):(e=l.getFirstItemByPropertyValue(t,"name",e.name)||t[0],this._selectedConnectionString(e?[e]:[])),s.Deferred().resolve().promise()},f.prototype.canNext=function(){return 0!==this._selectedConnectionString().length},f.prototype.commit=function(){var e=s.Deferred();return this._selectedConnectionString()[0]?e.resolve({name:this._selectedConnectionString()[0].name}):e.resolve(),e.promise()},f);function f(e){var t=i.call(this)||this;return t._connectionStrings=a.observableArray([]),t._selectedConnectionString=a.observableArray([]),t._connectionStrings=e,t._disposables.push(t._selectedConnectionString.subscribe(function(){return t._onChange()})),t}t.ChooseSqlConnectionPage=p,t._registerChooseSqlConnectionPage=function(e,t){e.registerMetadata(c.SqlDataSourceWizardPageId.ChooseConnectionPage,{create:function(){return new p(t)},setState:function(e,t){t.name=e.name},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.name=t.name},template:"dxrd-page-connectionstring",description:d.isCustomizedWithUpdateLocalizationMethod("Choose a data connection")||u.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection")})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseJsonConnectionPage=t.ChooseJsonConnectionPage=void 0,r(3)),s=r(149),l=r(0),c=r(1),d=r(5),u=(i=s.ChooseAvailableItemPage,n(p,i),p.prototype.commit=function(){return a.Deferred().resolve({connectionName:this.selectedOperation().createNew?null:this.selectedItems()[0].name}).promise()},p.prototype._getSelectedItem=function(e){return l.getFirstItemByPropertyValue(this.items(),"name",e.connectionName)||i.prototype._getSelectedItem.call(this)},Object.defineProperty(p.prototype,"createNewOperationText",{get:function(){return c.getLocalization("No, I'd like to create a new data connection","AnalyticsCoreStringId.JsonDSWizard_CreateNewConnection")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"existingOperationText",{get:function(){return c.getLocalization("Yes, let me choose an existing data connection from the list","AnalyticsCoreStringId.JsonDSWizard_UseExistingConnection")},enumerable:!1,configurable:!0}),p);function p(){return null!==i&&i.apply(this,arguments)||this}t.ChooseJsonConnectionPage=u,t._registerChooseJsonConnectionPage=function(e,t){e.registerMetadata(d.JsonDataSourceWizardPageId.ChooseConnectionPage,{create:function(){return new u(t.connectionStrings&&t.connectionStrings.json,t.allowCreateNewJsonConnection)},description:t.allowCreateNewJsonConnection?c.getLocalization("Do you want to use an existing data connection?","AnalyticsCoreStringId.JsonDSWizard_ChooseConnection_Description"):c.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection"),getState:function(e){return e.jsonDataSourceWizard},setState:function(e,t){return t.connectionName=e.connectionName},resetState:function(e,t){e.connectionName=t.connectionName},template:"dxrd-page-selectitems"})}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseJsonSchemaPage=t.ChooseJsonSchemaPage=void 0,r(2)),s=r(3),l=r(12),c=r(153),d=r(62),u=r(22),p=r(11),f=r(0),m=r(1),y=r(1),h=r(5),r=r(9),g=(n=r.WizardPageBase,i(_,n),_.prototype._clear=function(){this._rootItems([]),this._fieldSelectedPath(""),this._rootElementList([]),this._selectedRootElement(null),this._dataSource&&this._dataSource.jsonSchemaProvider.reset(),this._cachedState={connectionName:null,jsonSource:null}},_.prototype._createFieldListCallback=function(){var r=this;return function(e){var t=new d.JsonNode({}),e=(t.nodes=[r._rootItems()[0].data],r._getInnerItemsByPath(e,t));return s.Deferred().resolve(e).promise()}},_.prototype._getSchemaToDataMemberInfo=function(t){for(var e=this._dataSource.schema,r=0;r<t.pathParts.length;r++)if(!(e=e.nodes.filter(function(e){return e.name()===t.pathParts[r]})[0]))return null;return e},_.prototype._mapJsonNodesToTreelistItems=function(e){return s.map(e||[],function(e){return{name:e.name(),displayName:e.displayName||e.name(),isSelected:e.selected(),isList:e.nodes&&0<e.nodes.length,specifics:"Default"}})},_.prototype._getNodesByPath=function(t,e){if(t.fullPath){for(var r=e.nodes,o=0;o<t.pathParts.length;o++){var i=(r||[]).filter(function(e){return e.name()==t.pathParts[o]})[0];if(!i)return[];r=i.nodes}return r}return e.nodes},_.prototype._getInnerItemsByPath=function(e,t){e=this._getNodesByPath(e,t);return this._mapJsonNodesToTreelistItems(e)},_.prototype._beginInternal=function(e){var t=this;if(e.connectionName&&this._cachedState.connectionName===e.connectionName||e.jsonSource&&this._cachedState.jsonSource===e.jsonSource)return s.Deferred().resolve().promise();this._clear(),this._cachedState={connectionName:e.connectionName,jsonSource:e.jsonSource};var r=this._dataSource&&this._dataSource.id;return this._dataSource=l._restoreJsonDataSourceFromState(e,this._requestWrapper),r&&r!=this._dataSource.id||!this._dataSource.schema.nodes.length?this._dataSource.getSchema(this._callbacks&&this._callbacks.getParameters&&this._callbacks.getParameters()).done(function(e){return t._updatePage(e)}):s.Deferred().done(function(e){return t._updatePage(e)}).resolve(this._dataSource.schema).promise()},_.prototype._updatePage=function(e){var t,r=e.getRootElementPartList(this._allowObjectRootElements);this._rootElementList()!==r&&this._rootElementList(this._filterRootElementList(r,e)),this._dataSource.rootElement()&&(t=["root",this._dataSource.rootElement()].join("."),r=this._rootElementList().filter(function(e){return e.fullPath===t})[0]||this._rootElementList()[0],this._selectedRootElement(r)),this._onChange()},_.prototype._resetSelectionRecursive=function(e,t){var r=this;e!==t&&(e.selected&&e.selected(!1),(e.nodes||[]).forEach(function(e){return r._resetSelectionRecursive(e,t)}))},_.prototype._mapJsonSchema=function(e,o){var i=this,t=this._fieldListItemsProvider().getNodeByPath(o);if(t)return e.selected(!1!==t.checked()),(e.nodes||[]).forEach(function(e){var t=o.pathParts.concat(e.name()),r=t.join("."),r={fullPath:r,path:e.name(),id:r,pathParts:t};i._mapJsonSchema(e,r)}),e},_.prototype._filterRootElementList=function(e,t){return e},_.prototype.canNext=function(){return!1},_.prototype.canFinish=function(){return this._fieldListItemsProvider().hasCheckedItems()},_.prototype.commit=function(){var e;if(this._rootItems()[0])return e=this._rootItems()[0].data,this._resetSelectionRecursive(this._dataSource.schema,e),e=e.name(),e={fullPath:e,path:"",id:e,pathParts:[e]},this._mapJsonSchema(this._rootItems()[0].data,e),e=this._selectedRootElement().pathParts.slice(1).join("."),this._dataSource.rootElement(e),e=(new m.ModelSerializer).serialize(this._dataSource),s.Deferred().resolve({connectionName:this._dataSource.connectionName(),dataSourceName:e["@Name"],jsonScheme:JSON.stringify(e.Schema),rootElement:e["@RootElement"]}).promise()},_.prototype.initialize=function(e){return this._beginInternal(e)},_.prototype.reset=function(){this._clear()},_);function _(e,t,r){void 0===e&&(e=new p.RequestWrapper),void 0===t&&(t=!0);var o=n.call(this)||this,i=(o._requestWrapper=e,o._allowObjectRootElements=t,o._callbacks=r,o._rootItems=a.observableArray([]),o._fieldListItemsProvider=a.observable(null),o._fieldSelectedPath=a.observable(null),o._cachedState={connectionName:null,jsonSource:null},o._createTreeNode=function(e,t,r){e=new u.DataMemberTreeNode(e.name,e.displayName,e.specifics,t,r);return o._disposables.push(e.checked.subscribe(function(){return o._onChange()})),e},o._createLeafTreeNode=function(e,t,r){e=new u.FieldTreeNode(e.name,e.displayName,e.specifics,t,r);return o._disposables.push(e.checked.subscribe(function(){return o._onChange()})),e},o._rootElementTitle=y.getLocalization("Root element:","DataAccessUIStringId.WizardPageChooseJsonSchema_RootElement"),o._rootElementList=a.observable([]),o._selectedRootElement=a.observable(null),null),e=(o._disposables.push(o._rootElementList.subscribe(function(e){i&&i.dispose(),i=o._selectedRootElement.subscribe(function(e){if(!e)return o._rootItems([]);e=o._getSchemaToDataMemberInfo(e);e&&o._rootItems([{name:a.unwrap(e.name),isSelected:a.unwrap(e.selected),displayName:a.unwrap(e.displayName)||a.unwrap(e.name),data:e,specifics:0<e.nodes.length?"List":"Default"}])}),o._selectedRootElement(e[0])})),new f.FieldListProvider(o._createFieldListCallback(),o._rootItems));return o._fieldListItemsProvider(new c.JsonTreeNodeItemsProvider(e,o._rootItems,o._createTreeNode,o._createLeafTreeNode)),o._disposables.push(o._fieldListItemsProvider()),o._fieldListModel={expandRootItems:!0,itemsProvider:o._fieldListItemsProvider(),selectedPath:o._fieldSelectedPath,treeListController:null,templateName:"dxrd-treelist-with-checkbox"},o}t.ChooseJsonSchemaPage=g,t._registerChooseJsonSchemaPage=function(e,t,r){e.registerMetadata(h.JsonDataSourceWizardPageId.ChooseJsonSchemaPage,{setState:function(e,t){t.dataSourceName=e.dataSourceName,t.jsonScheme=e.jsonScheme,t.rootElement=e.rootElement},getState:function(e){return e.jsonDataSourceWizard},resetState:function(e,t){e.dataSourceName=t.dataSourceName,e.jsonScheme=t.jsonScheme,e.rootElement=t.rootElement},create:function(){return new g(t,void 0,r)},description:y.getLocalization("Select data fields.","DataAccessUIStringId.WizardPageChooseJsonSchema"),template:"dxrd-jsondatasource-fields-page"})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultSQLLanguageHelper=t.createDefaultSQLAdditionalOptions=t.createDefaultSQLAceOptions=void 0,r(156),t.createDefaultSQLAceOptions=function(e){return{showLineNumbers:!1,showPrintMargin:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,readOnly:e=void 0===e?!1:e,highlightSelectedWord:e,showGutter:!1,highlightActiveLine:!1}},t.createDefaultSQLAdditionalOptions=function(t){return{onChange:function(e){t(e.getValue())},onValueChange:function(e){e.resize(!0)},changeTimeout:200,overrideEditorFocus:!0,setUseWrapMode:!0}},t.createDefaultSQLLanguageHelper=function(){return{getLanguageMode:function(){return"ace/mode/sql"},createCompleters:function(){return[]}}}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationQueryBuilderPopupBase=void 0,r(2)),s=r(0),l=r(0),c=r(0),d=r(119),u=r(0),p=r(8),f=r(52),m=r(8),r=(n=p.PopupEditorBase,i(y,n),y.prototype._aliasValidationCallback=function(e,t){return!0},y.prototype.dispose=function(){n.prototype.dispose.call(this),this.fieldListModel=null,this.onSaveCallback=null,this._dataSource=null},y.prototype.addDataMember=function(e,t){},y.prototype.save=function(){this.close()},y.prototype.close=function(){this.popupVisible(!1)},y.prototype.popupTarget=function(){return".dxrd-result-source-grid"},y.prototype.onHiding=function(){},y);function y(e,t,r){void 0===r&&(r=!1);var o=n.call(this)||this,i=(o.onSaveCallback=e,o._dataSource=t,o.rtl=r,o.selectedPath=a.observable(),o.title=function(){return s.getLocalization("Query Builder","DataAccessUIStringId.QueryBuilder")},o.getPopupContainer=l.getParentContainer,o.loaded=a.observable(!1),o.maxHeight="90%",o.width="900px",o.height="710px",o.cssClass="dxrd-querybuilder-federation-popup-wrapper",o.resultGridHeight=a.observable(250),o.dragDropHandler=new u.WizardDragDropHandler({dragHelperContent:new c.DragHelperContent(null),parent:".dx-designer-viewport .dxrd-querybuilder-federation-popup-wrapper > .dx-popup-normal",containment:".dxrd-querybuilder-federation-popup",target:o.popupTarget(),addHandler:function(e,t,r){(e&&e instanceof y||e instanceof f.QuerySurface)&&o.addDataMember(t,r)}}),new d.FederatedUnionQueryBuilderTreeListController(o.dragDropHandler,function(e){return i.isDraggable(e)&&o.addDataMember(e)}));return o.fieldListModel={itemsProvider:o._dataSource.dbSchemaProvider,treeListController:i,selectedPath:o.selectedPath,pageSize:100,expandRootItems:!0,onItemsChanged:function(e){e.forEach(function(e){e.parent&&i.isDraggable(e.parent)&&e.parent.data.isListType&&e.parent.collapsed(!0)})},rtl:r},o._disposables.push(o.dragDropHandler,i),o._aliasValidationRule={type:"custom",validationCallback:function(e){return!e.value||o._aliasValidationCallback(e.value,e.data)},get message(){return s.getLocalization("Alias is not unique","DataAccessUIStringId.FederationDataSourceQueryBuilder_AliasUniqueMessage")}},o.resizeHelper=new m.ResizeHelper,o}t.FederationQueryBuilderPopupBase=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnExpressionCollectionHelper=void 0;var o=r(2),i=r(34),n=r(0),a=r(0),s=r(35),l=r(20);function c(){}c.find=function(e,t,r){return n.findFirstItemMatchesCondition(e(),function(e){return e.column()===r&&e.table()===t})},c.findByName=function(e,t){return n.findFirstItemMatchesCondition(e(),function(e){return e.actualName()===t})},c.removeDependend=function(e,t){e.remove(function(e){return e.isDepended(t)})},c.toExpresson=function(e,t,r){e.table=o.observable(null),e.column=o.observable(null),e.expression=e.__expression,e.itemType(s.ColumnType[s.ColumnType.Expression]),e.alias()||e.alias(c.setUniqueAlias(t,"Expr")),e.expression(r)},c.setUniqueAlias=function(e,t){return c.findByName(e,t)?a.getUniqueName(e().map(function(e){return e.actualName()}),t+"_"):t},c.createNew=function(e,t,r,o){r=new i.ColumnExpression({"@Table":r,"@Name":o,"@ItemType":"Column"},e);return e.columns===t&&!r.alias()&&c.findByName(t,r.actualName())&&r.alias(this.setUniqueAlias(t,r.table()+"_"+r.column())),r},c.addNew=function(e,t,r,o,i){void 0===i&&(i=!1);e=this.createNew(e,t,r,o);return(i?t():t).push(e),e},c.remove=function(e,t,r,o){if(o=void 0===o?!1:o){for(var i=0;i<e().length;i++)if(e()[i].column()===r&&e()[i].table()===t)return void e().splice(i,1)}else e.remove(function(e){return e.column()===r&&e.table()===t})},c.columnTypeToFederated=function(e){switch(e){case s.ColumnType[s.ColumnType.Expression]:return l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectExpression];case s.ColumnType[s.ColumnType.AllColumns]:return l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectAllNodeColumnsExpression];case s.ColumnType[s.ColumnType.AllColumnsQuery]:return l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectAllColumnsExpression];default:return l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectColumnExpression]}},c.federatedTypeToColumn=function(e){switch(e){case l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectExpression]:return s.ColumnType[s.ColumnType.Expression];case l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectAllNodeColumnsExpression]:return s.ColumnType[s.ColumnType.AllColumns];case l.FederatedQueryExpressionType[l.FederatedQueryExpressionType.SelectAllColumnsExpression]:return s.ColumnType[s.ColumnType.AllColumnsQuery];default:return s.ColumnType[s.ColumnType.Column]}},t.ColumnExpressionCollectionHelper=c},function(e,t,r){"use strict";var o,c,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=(Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnViewModel=void 0,r(2)),n=r(31),u=r(36),p=r(18),f=r(24),m=r(72),y=r(0),r=(c=n.QueryElementBaseViewModel,i(a,c),a.prototype._isAliasAutoGenerated=function(e){if(e&&this.alias()&&0===this.alias().indexOf(e+"_")&&this.alias().substring(e.length+1)===this.name())return!0;if(!this.alias()||0!==this.alias().indexOf(this.name()+"_"))return!1;e=this.alias().substring(this.name().length+1);return e.match(new RegExp("_[0-9]+$"))&&(e=e.substring(0,e.indexOf("_"))),0<Object.keys(u.AggregationType).indexOf(e)},a.prototype.getInfo=function(){return u.columnSerializationInfo},a.prototype.isPropertyDisabled=function(e){return!!this.isNotAvailable()||("sortOrder"===e?"Unsorted"===this.sortingType():"aggregate"===e||"alias"===e?!this.selected():"groupBy"===e&&(e=this.root,this.aggregate()&&1===e.aggregatedColumnsCount()))},Object.defineProperty(a.prototype,"specifics",{get:function(){return p.DBColumn.GetSpecific(this.dataType())},enumerable:!1,configurable:!0}),a);function a(e,t,r,o){var i=c.call(this,y.extend({"@ControlType":"Column"},e),r,o)||this,e=(i.isNotAvailable=d.observable(!1),i._type=d.observable(p.DBColumnType.Unknown),i._size=d.observable(""),t.size&&i._size(t.size),t.type&&i._type(t.type),i.displayType=d.pureComputed(function(){return p.DBColumnType[i._type()]+(i._size()?"("+i._size()+")":"")}),i.dataType=d.pureComputed(function(){return p.DBColumn.GetType(i._type())}),i.actualName=d.pureComputed(function(){return i.alias()||i.name()}),r.getColumnConnectionPoints(i)),n=(i.rightConnectionPoint={side:d.observable(f.PointSide.East),location:e.right},i.leftConnectionPoint={side:d.observable(f.PointSide.West),location:e.left},r.parentModel()),a=d.pureComputed(function(){return m.ColumnExpressionCollectionHelper.find(n.columns,r.actualName(),i.name())}),s=(i.aggregate=d.pureComputed({read:function(){return a()?a().aggregate():u.AggregationType.None},write:function(e){a()&&a().aggregate(e)}}),i.alias=d.pureComputed({read:function(){return a()?a().alias():""},write:function(e){a()&&a().alias(e||null)}}),d.pureComputed(function(){return m.ColumnExpressionCollectionHelper.find(n.sorting,r.actualName(),i.name())})),l=(i.sortingType=d.computed({read:function(){return s()?s().descending()?"Descending":"Ascending":"Unsorted"},write:function(e){"Unsorted"!==e?(s()?s():m.ColumnExpressionCollectionHelper.addNew(n,n.sorting,r.actualName(),i.name())).descending("Descending"===e):s()&&m.ColumnExpressionCollectionHelper.remove(n.sorting,r.actualName(),i.name())}}),i.sortOrder=d.computed({read:function(){var e=n.sorting().indexOf(s());return e<0?void 0:e+1},write:function(e){var t;s()&&(e=Math.min(e,n.sorting().length),e=Math.max(e,1),t=n.sorting().indexOf(s()),t=n.sorting.splice(t,1),n.sorting.splice(e-1,0,t[0]))}}),d.computed(function(){return m.ColumnExpressionCollectionHelper.find(n.grouping,r.actualName(),i.name())}));return i.aggregate.subscribe(function(e){var t=i.parentModel();e!==u.AggregationType.None?(i.groupBy(!1),i.alias()&&!i._isAliasAutoGenerated(t.actualName())||(e=i.name()+"_"+e,i.alias(m.ColumnExpressionCollectionHelper.setUniqueAlias(n.columns,e)))):i._isAliasAutoGenerated(t.actualName())&&i.alias(null)}),i.groupBy=d.computed({read:function(){return!!l()},write:function(e){e?(m.ColumnExpressionCollectionHelper.addNew(n,n.grouping,r.actualName(),i.name()),i.aggregate(u.AggregationType.None)):m.ColumnExpressionCollectionHelper.remove(n.grouping,r.actualName(),i.name())}}),i.toggleSelected=function(e,t){void 0===t&&(t=!1),!!a()!==e&&(e?m.ColumnExpressionCollectionHelper.addNew(n,n.columns,r.actualName(),i.name(),t):(m.ColumnExpressionCollectionHelper.remove(n.columns,r.actualName(),i.name(),t),i.groupBy(!1)))},i.selected=d.pureComputed({read:function(){return!!a()},write:function(e){return i.toggleSelected(e)}}),i}t.ColumnViewModel=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.AllColumnsViewModel=void 0,r(2)),s=r(31),l=r(0),c=r(35),d=r(1),u=r(167),p=r(34),r=(n=s.QueryElementBaseViewModel,i(f,n),f.prototype.getInfo=function(){return u.allColumnsSerializationInfo},f.DisplayName=function(){var e=d.getLocalization("(All Columns)","DataAccessStringId.QueryBuilder_AllColumns");return"*"===e.charAt(0)?e:"* "+e},f);function f(t,r){var e=n.call(this,{"@ControlType":"Column"},t,r)||this,o=t.parentModel(),i=a.pureComputed(function(){return l.findFirstItemMatchesCondition(o.columns(),function(e){return t.actualName()===e.table()&&c.ColumnType.AllColumns===e.itemType()})});return e.selected=a.pureComputed({read:function(){return!!i()},write:function(e){!!i()!==e&&(e?o.columns.push(new p.ColumnExpression({"@ItemType":c.ColumnType.AllColumns,"@Table":t.actualName()},o,r)):o.columns.remove(function(e){return t.actualName()===e.table()&&c.ColumnType.AllColumns===e.itemType()}))}}),e.name=a.pureComputed(f.DisplayName),e._disposables.push(e.name),e}t.AllColumnsViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterViewModel=void 0,r(13)),s=r(0),r=(i=a.DataSourceParameter,n(l,i),l.prototype.getEditorType=function(e){return s.IsDataAccessExpression(e)?{header:"dxqb-expressionstring"}:s.getEditorType(e)},l);function l(){return null!==i&&i.apply(this,arguments)||this}t.ParameterViewModel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnSurface=void 0,r(2)),s=r(4),l=r(55),c=r(0),r=(i=s.SurfaceElementBase,n(d,i),d);function d(e,t){var o=i.call(this,e,t,null)||this;return o.template="dxqb-table-field",o.toggleSelected=function(){o.getControlModel().selected(!o.getControlModel().selected())},o.selectedWrapper=a.pureComputed(function(){return o.getControlModel().selected()}),o.isNotAvailable=a.pureComputed(function(){return o._control.isNotAvailable()}),o.isAggregate=a.pureComputed(function(){return l.isAggregatedExpression(o.getControlModel())}),o.isAscending=a.pureComputed(function(){return"Ascending"===o.getControlModel().sortingType()}),o.isDescending=a.pureComputed(function(){return"Descending"===o.getControlModel().sortingType()}),o.cssClasses=function(e,t,r){return o._isJoined||(o._isJoined=a.pureComputed(function(){return e.isJoined(o)||o.getControlModel()===t.getDragColumn()})),o._isHovered||(o._isHovered=a.pureComputed(function(){var e=!!t.getDragColumn()&&o.getControlModel().parentModel()!==t.getDragColumn().parentModel();return o.underCursor().isOver&&(!c.DragDropHandler.started()||e)})),{"dxd-state-invalid":o.isNotAvailable,"dxd-state-active":o.selected(),"dxd-state-joined":o._isJoined,"dxd-state-hovered":o._isHovered}},o}t.ColumnSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenWizardPage=void 0,r(2)),s=r(3),l=r(10),c=r(184),d=r(185),u=r(1),p=r(0),f=r(9),m=r(14),r=(i=f.WizardPageBase,n(y,i),y.prototype.dispose=function(){this._sectionsProcessor.dispose(),this._factory.reset(),this._sections=[]},y.prototype._patchOnChange=function(){var t=this;Object.keys(this._factory.metadata).forEach(function(e){t._factory.metadata[e].onChange=function(){return t._onChange()}})},y.prototype._getPageStyle=function(e,t){return l.getSectionStyle(e,this._defaultMargin,t=void 0===t?!0:t)},y.prototype._applyCustomizations=function(){this._sectionsToUnregister.forEach(function(e){return e()}),this._sectionsToUnregister=[],this._sectionPositions.forEach(function(e){return e()}),this._sectionPositions=[],this._sectionsToRegister.forEach(function(e){return e()}),this._sectionsToRegister=[]},y.prototype._setSectionPosition=function(e,t){this._pageCss[e]=a.observable(this._getPageStyle(t))},y.prototype.registerSections=function(){},y.prototype.canNext=function(){return this._sectionsProcessor.sections.every(this._sectionCondition)},y.prototype._sectionCondition=function(e){return e.metadata.required?e.page()&&e.metadata.canNext(e.page().page):!e.page()||e.metadata.canNext(e.page().page)},y.prototype.canFinish=function(){for(var e=this._sections.length-1;0<=e;e--)if(this._sections[e].page()&&this._sections[e].metadata.canFinish(this._sections[e].page().page))return!0;return!1},y.prototype.setSectionPosition=function(e,t){var r=this;this._sectionPositions.push(function(){r._setSectionPosition(e,t)})},y.prototype.registerSection=function(e,t){var r=this;this._sectionsToRegister.push(function(){r._factory.registerMetadata(e,t)})},y.prototype.unregisterSection=function(e){var t=this;this._sectionsToUnregister.push(function(){return t._factory.unregisterMetadata(e)})},y.prototype._loadPanelViewModel=function(e){return!1},y.prototype.getNextSectionId=function(e){},y.prototype.initialize=function(e,t){var r=this;return this.registerSections(),this._applyCustomizations(),this._sectionsProcessor.initialize(p.extend(!0,{},e)),this._stateManager=this._sectionsProcessor.stateManager,this._sectionsProcessor.iterator.getNextPageId=function(e){return r.getNextSectionId(e)},this._sectionsProcessor.start(),s.Deferred().resolve().promise()},y.prototype._beforeStart=function(){},y.prototype.commit=function(){var e=this,t=s.Deferred();return this._sectionsProcessor.finishAction().done(function(){t.resolve(p.extend(!0,{},e._stateManager.getCurrentState()))}),t.promise()},y.prototype._getPageDescription=function(e,t){return e+1+". "+t.metadata.description},y.prototype._showPageDescription=function(){return 1<this._sections.length},y);function y(){var t=i.call(this)||this;return t._sectionsToUnregister=[],t._sectionsToRegister=[],t._sectionPositions=[],t._initInProgress=a.observable(!1),t._defaultMargin=24,t._parentMarginOffset=t._defaultMargin+t._defaultMargin/2,t._className="",t._pageCss={},t.events=new u.EventManager,t._factory=new c.WizardPageSectionFactory,t._sectionsProcessor=new d.WizardPageProcessor(t._factory,function(e){t[m.__loadingStateFunctionName]&&t[m.__loadingStateFunctionName](e)},function(){return t[m.__nextActionFunctionName]&&t[m.__nextActionFunctionName]()}),t._sectionsProcessor.events.addHandler("beforeStart",function(){t._sections=t._sectionsProcessor.sections,t._beforeStart(),t._patchOnChange()}),t._sectionsProcessor.events.addHandler("beforePageInitialize",function(e){t.events.call("beforeSectionInitialize",{section:e.page,sectionId:e.pageId,page:t,state:e.state})}),t._sectionsProcessor.events.addHandler("afterPageInitialize",function(e){t.events.call("afterSectionInitialize",{section:e.page,sectionId:e.pageId,page:t})}),t}t.FullscreenWizardPage=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectingPointSurface=void 0,r(2)),r=r(38),r=(i=r.DiagramElementBaseSurface,n(s,i),s._unitProperties={_x:function(e){return a.pureComputed(function(){return e.location.x()-e.parentModel().location.x()})},_y:function(e){return a.pureComputed(function(){return e.location.y()-e.parentModel().location.y()})}},s);function s(e,t){e=i.call(this,e,t,s._unitProperties)||this;return e.template="dxdd-connecting-point",e.selectiontemplate="dxdd-connection-point-selection",e.contenttemplate="",e}t.ConnectingPointSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.diagramSerializationsInfo=t.pageHeight=t.pageWidth=t.margins=t.DiagramViewModel=void 0,r(2)),s=r(16),l=r(1),c=r(4),d=r(1),u=r(23),r=r(6),s=(i=s.DiagramElementBaseViewModel,n(p,i),p.prototype.getInfo=function(){return t.diagramSerializationsInfo},p);function p(e){var t=this,r=new l.ModelSerializer;return(t=i.call(this,e,null,r)||this).controlType="Diagram",t.controls=a.observableArray(),t.name("Diagram"),t}t.DiagramViewModel=s,t.margins={propertyName:"margins",modelName:"@Margins",from:c.Margins.fromString,displayName:"Margins"},t.pageWidth={propertyName:"pageWidth",modelName:"@PageWidth",defaultVal:850,from:d.floatFromModel,displayName:"Page Width",editor:r.editorTemplates.getEditor("numeric")},t.pageHeight={propertyName:"pageHeight",modelName:"@PageHeight",defaultVal:1250,from:d.floatFromModel,displayName:"Page Height",editor:r.editorTemplates.getEditor("numeric")},t.diagramSerializationsInfo=[u.name,t.pageWidth,t.pageHeight,t.margins]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramSurface=void 0,r(2)),s=r(4),l=r(0),c=r(0),r=(i=s.SurfaceElementBase,n(d,i),d.prototype.checkParent=function(e){return!1},Object.defineProperty(d.prototype,"parent",{get:function(){return this._parent},set:function(e){this._parent=e},enumerable:!1,configurable:!0}),d.prototype.getChildrenCollection=function(){return a.observableArray([])},d._unitProperties={_width:function(e){return e.pageWidth},_height:function(e){return e.pageWidth},pageWidth:function(e){return e.pageWidth},pageHeight:function(e){return e.pageHeight},_bottom:function(e){return e.margins.bottom},_left:function(e){return e.margins.left},_right:function(e){return e.margins.right},_top:function(e){return e.margins.top}},d);function d(e,t){void 0===t&&(t=a.observable(1));var r=i.call(this,e,{measureUnit:a.observable("Pixels"),zoom:t,dpi:a.observable(100)},d._unitProperties)||this;return r.measureUnit=a.observable("Pixels"),r.dpi=a.observable(100),r.controls=a.observableArray(),r.allowMultiselect=!1,r.focused=a.observable(!1),r.selected=a.observable(!1),r.underCursor=a.observable(new c.HoverInfo),r.templateName="dx-diagram-surface",r.margins={bottom:r._bottom,left:r._left,right:r._right,top:r._top},r.zoom=t,r._context=r,l.createObservableArrayMapCollection(e.controls,r.controls,r._createSurface),r}t.DiagramSurface=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.connectionPointSerializationInfo=t.ConnectionPointViewModel=void 0,r(2)),n=r(16),l=r(23),c=r(0),r=(a=n.DiagramElementBaseViewModel,i(d,a),d);function d(e,t,r){var o=a.call(this,c.extend(e,{"@ControlType":"ConnectionPoint"}),t,r)||this,i=o.location.x,n=o.location.y;return o.location.x=s.pureComputed({read:function(){return o.connectingPoint()&&o.connectingPoint().location.x()||i()},write:function(e){o.connectingPoint(null),i(e)}}),o.location.y=s.pureComputed({read:function(){return o.connectingPoint()&&o.connectingPoint().location.y()||n()},write:function(e){o.connectingPoint(null),n(e)}}),o}t.ConnectionPointViewModel=r,t.connectionPointSerializationInfo=[l.location,{propertyName:"connectingPoint",modelName:"@ConnectingPoint",link:!0}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorViewModel=void 0,r(2)),s=r(16),l=r(81),c=r(4),d=r(4),u=r(0),r=(i=s.DiagramElementBaseViewModel,n(p,i),p.prototype.getX=function(){return(this.startPoint().location.x()<this.endPoint().location.x()?this.startPoint():this.endPoint()).location.x()},p.prototype.getY=function(){return(this.startPoint().location.y()<this.endPoint().location.y()?this.startPoint():this.endPoint()).location.y()},p.prototype.getWidth=function(){return Math.abs(this.startPoint().location.x()-this.endPoint().location.x())||p.MIN_LINE_THICKNESS},p.prototype.getHeight=function(){return Math.abs(this.startPoint().location.y()-this.endPoint().location.y())||p.MIN_LINE_THICKNESS},p.MIN_LINE_THICKNESS=3,p);function p(e,t,r){var o=i.call(this,u.extend({"@ControlType":"Connector"},e),t,r)||this;return o.startPoint(o.startPoint()||new l.ConnectionPointViewModel({"@Location":"0, 0"},o,r)),o.endPoint(o.endPoint()||new l.ConnectionPointViewModel({"@Location":"150, 75"},o,r)),o.location=new c.Point(0,0),o._disposables.push(o.location.x=a.pureComputed({read:function(){return o.getX()},write:function(e){e-=(o.startPoint().location.x()<o.endPoint().location.x()?o.startPoint():o.endPoint()).location.x();o.startPoint().location.x(o.startPoint().location.x()+e),o.endPoint().location.x(o.endPoint().location.x()+e)}})),o._disposables.push(o.location.y=a.pureComputed({read:function(){return o.getY()},write:function(e){e-=(o.startPoint().location.y()<o.endPoint().location.y()?o.startPoint():o.endPoint()).location.y();o.startPoint().location.y(o.startPoint().location.y()+e),o.endPoint().location.y(o.endPoint().location.y()+e)}})),o.size=new d.Size(0,0),o._disposables.push(o.size.width=a.pureComputed({read:function(){return o.getWidth()},write:function(e){o.startPoint().location.x()<o.endPoint().location.x()?o.endPoint().location.x(o.startPoint().location.x()+e):o.startPoint().location.x(o.endPoint().location.x()+e)}})),o._disposables.push(o.size.height=a.pureComputed({read:function(){return o.getHeight()},write:function(e){o.startPoint().location.y()<o.endPoint().location.y()?o.endPoint().location.y(o.startPoint().location.y()+e):o.startPoint().location.y(o.endPoint().location.y()+e)}})),o}t.ConnectorViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerControls=void 0;var o=r(23),i=r(4),n=r(4),a=r(130),s=r(16),l=r(82),c=r(60),d=r(59),u=r(81),p=r(25),f=r(79),m=r(80),y=r(39),h=r(78),g=r(6),_=r(129),b=r(58),v=r(57);t.registerControls=function(){v.diagramControlsFactory.registerControl("Unknown",{info:o.unknownSerializationsInfo,type:i.ElementViewModel,nonToolboxItem:!0,surfaceType:n.SurfaceElementBase}),v.diagramControlsFactory.registerControl("Connector",{info:[o.name,{propertyName:"location",displayName:"Location",editor:g.editorTemplates.getEditor("objecteditor")},{propertyName:"startPoint",modelName:"@StartPoint",link:!0},{propertyName:"endPoint",modelName:"@EndPoint",link:!0}],surfaceType:a.ConnectorSurface,type:l.ConnectorViewModel,elementActionsTypes:[],nonToolboxItem:!1}),v.diagramControlsFactory.registerControl("RoutedConnector",{info:[o.name,{propertyName:"location",displayName:"Location",editor:g.editorTemplates.getEditor("objecteditor")},{propertyName:"startPoint",modelName:"@StartPoint",link:!0},{propertyName:"endPoint",modelName:"@EndPoint",link:!0}],surfaceType:c.RoutedConnectorSurface,type:d.RoutedConnectorViewModel,elementActionsTypes:[],nonToolboxItem:!1}),v.diagramControlsFactory.registerControl("ConnectionPoint",{info:u.connectionPointSerializationInfo,surfaceType:p.ConnectionPointSurface,type:u.ConnectionPointViewModel,elementActionsTypes:[],nonToolboxItem:!0}),v.diagramControlsFactory.registerControl("Diagram",{info:f.diagramSerializationsInfo,surfaceType:m.DiagramSurface,popularProperties:["name"],type:f.DiagramViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0}),v.diagramControlsFactory.registerControl("DiagramElement",{info:s.diagramElementSerializationInfo,defaultVal:{"@SizeF":"150,50",ConnectingPoints:{Item1:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"1","@PercentOffsetY":"0.5"},Item2:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"1"},Item3:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"0"},Item4:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0","@PercentOffsetY":"0.5"}}},surfaceType:_.DiagramElementSurface,popularProperties:["text"],type:b.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),v.diagramControlsFactory.registerControl("Ellipse",{info:s.diagramElementSerializationInfo,defaultVal:{"@SizeF":"150,50","@Type":"Ellipse",ConnectingPoints:{Item1:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"1","@PercentOffsetY":"0.5"},Item2:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"1"},Item3:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"0"},Item4:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0","@PercentOffsetY":"0.5"}}},surfaceType:_.DiagramElementSurface,popularProperties:["text"],type:b.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),v.diagramControlsFactory.registerControl("Condition",{info:s.diagramElementSerializationInfo,defaultVal:{"@SizeF":"150,50","@Type":"Condition",ConnectingPoints:{Item1:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"1","@PercentOffsetY":"0.5"},Item2:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"1"},Item3:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0.5","@PercentOffsetY":"0"},Item4:{"@ControlType":"ConnectingPoint","@PercentOffsetX":"0","@PercentOffsetY":"0.5"}}},surfaceType:_.DiagramElementSurface,popularProperties:["text"],type:b.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),v.diagramControlsFactory.registerControl("ConnectingPoint",{info:y.connectingPointSerializationInfo,surfaceType:h.ConnectingPointSurface,type:y.ConnectingPointViewModel,elementActionsTypes:[],nonToolboxItem:!0})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchemaProvider=void 0,r(2)),s=r(3),l=r(1),c=r(131),d=r(11),u=r(0),p=r(0),f=r(1),m=r(0),r=(i=l.Disposable,n(y,i),y.prototype._getDBSchema=function(e){return this._getDBSchemaCallback(this.connection,e)},y.prototype._getDBSchemaCallback=function(e,t){return c.getDBSchemaCallback(this._requestWrapper,e,t)},y.prototype._getDBStoredProcedures=function(e){return c.getDBStoredProceduresCallback(this._requestWrapper,e)},y.prototype.getDbSchema=function(){return this._dbSchema&&"rejected"!==this._dbSchema.state()||(this._dbSchema=this._getDBSchema()),this._dbSchema},y.prototype.getDbStoredProcedures=function(){return this._dbStoredProceduresSchema&&"rejected"!==this._dbStoredProceduresSchema.state()||(this._dbStoredProceduresSchema=this._getDBStoredProcedures(this.connection)),this._dbStoredProceduresSchema},y.prototype.getDbTable=function(t){var r,o=this;return this._tables[t]||(r=s.Deferred(),this._tables[t]=r.promise(),this.getDbSchema().done(function(e){e=u.findFirstItemMatchesCondition(e.tables,function(e){return e.name===t});e?0<e.columns.length?r.resolve(e):o._tableRequests.push({table:e,deferred:r}):(r.reject(),p.isCustomizedWithUpdateLocalizationMethod("The schema does not contain the specified table: ")?f.getLocalization("The schema does not contain the specified table: "):m.formatUnicorn(f.getLocalization('The schema does not contain the specified table: "{0}".',"DataAccessStringId.TableNotInSchemaValidationException"),t))}).fail(function(){return r.reject()})),this._tables[t]},y);function y(e,t){void 0===t&&(t=new d.RequestWrapper);var r=i.call(this)||this;return r._requestWrapper=t,r._tables={},r._tableRequests=a.observableArray([]).extend({deferred:!0}),r.connection=e,r._disposables.push(r.connection.name.subscribe(function(){r._tables={},r._dbSchema=null,r._dbStoredProceduresSchema=null})),r._disposables.push(a.computed(function(){var e,t=r._tableRequests();t.length&&(r._tableRequests([]),e=t.map(function(e){return e.table}),r._getDBSchema(e).done(function(r){t.forEach(function(t){var e=r.tables.filter(function(e){return e.name===t.table.name})[0];e?(t.table.columns=e.columns,t.deferred.resolve(t.table)):t.deferred.reject()})}).fail(function(){return t.forEach(function(e){return e.deferred.reject()})}))})),r.getItems=function(e){var t=s.Deferred();return e.fullPath?t.resolve([]):r.getDbSchema().done(function(e){t.resolve(s.map(e.tables,function(e){return{name:e.name,displayName:e.name,isList:!1,specifics:e.isView?"view":"table",dragData:{noDragable:!1}}}))}),t.promise()},r}t.DBSchemaProvider=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBTable=void 0;var o=r(18),i=r(133),n=r(19);t.DBTable=function(e){this.name=e.Name,this.isView="true"===e.IsView||!0===e.IsView,this.columns=n.deserializeToCollection(e.columns,function(e){return new o.DBColumn(e)}),this.foreignKeys=n.deserializeToCollection(e.foreignKeys,function(e){return new i.DBForeignKey(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBStoredProcedureArgument=t.DBStoredProcedureArgumentDirection=t.DBStoredProcedure=void 0;var o=r(19),i=(t.DBStoredProcedure=function(e){this.name=e.Name,this.arguments=o.deserializeToCollection(e.arguments,function(e){return new i(e)})},(r=t.DBStoredProcedureArgumentDirection||(t.DBStoredProcedureArgumentDirection={}))[r.In=0]="In",r[r.Out=1]="Out",r[r.InOut=2]="InOut",function(e){this.name=e.Name,this.type=e.Type,this.direction=e.Direction});t.DBStoredProcedureArgument=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HandlerUri=t.ActionId=void 0;r=r(0);t.ActionId={Save:"dxqb-save",DataPreview:"dxqb-data-preview",SelectStatementPreview:"dxqb-select-statement-preview"},t.HandlerUri=r.createGlobalModuleVariableFunc("DXQB.axd")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultSet=void 0;var o=r(1),i=r(1),n=r(134),a=[{propertyName:"name",modelName:"@Name"},{propertyName:"tables",modelName:"Views",array:!0}];function s(e,t){(t=t||new o.ModelSerializer).deserialize(this,e),this.tables=i.deserializeArray(e&&e.Views||[],function(e){return new n.ResultTable(e,t)})}s.prototype.getInfo=function(){return a},s.from=function(e,t){return e&&new s(e.DataSet,t)||null},s.toJson=function(e,t,r){return{DataSet:t.serialize(e,a,r)}},t.ResultSet=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonAuthenticationInfo=void 0;var o=r(1);function i(e,t){(t=t||new o.ModelSerializer).deserialize(this,e||{})}i.from=function(e,t){return new i(e,t)},i.toJson=function(e,t,r){return t.serialize(e,e.getInfo(),r)},i.prototype.getInfo=function(){return[{propertyName:"password",modelName:"@password",defaultVal:""},{propertyName:"userName",modelName:"@user",defaultVal:""}]},t.JsonAuthenticationInfo=i},function(e,t,r){"use strict";var o,i,n,a=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonParameter=t.JsonParameterType=void 0,r(2)),l=r(1),c=r(1),d=r(6),u=r(1),r=((r=i=t.JsonParameterType||(t.JsonParameterType={}))[r.PathParameter=0]="PathParameter",r[r.QueryParameter=1]="QueryParameter",r[r.Header=2]="Header",n=l.Disposable,a(p,n),p.from=function(e,t){return new p(e||{},t)},p.toJson=function(e,t,r){return t.serialize(e,e.getInfo(),r)},p.prototype._initEditingProperties=function(){var e=this.value()||"";0===e.indexOf(this.expression_Prefix)?(this.isExpression(!0),this._expression.value(e.substring(this.expression_Prefix.length))):this._editingValue(e)},p.prototype.switchEditors=function(){var e=!this.isExpression();this.isExpression(e),e?this._expression.value(this._editingValue()?"'"+this._editingValue()+"'":""):this._editingValue("")},p.prototype.getInfo=function(){return[{propertyName:"name",modelName:"@Name",displayName:"Name",editor:d.editorTemplates.getEditor("text")},{propertyName:"value",modelName:"@Value",displayName:"Value",editor:d.editorTemplates.getEditor("text")},{propertyName:"itemType",modelName:"@ItemType",defaultVal:i[i.PathParameter],alwaysSerialize:!0}]},p);function p(e,t){var r=n.call(this)||this;return r.expression_Prefix="expression:",r.namePlaceholder=function(){return u.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder")},r.valuePlaceholder=function(){return u.getLocalization("Value","AnalyticsCoreStringId.CollectionEditor_Value_Placeholder")},r._editingValue=s.observable(""),r._expression={value:s.observable("")},r.isExpression=s.observable(!1),r.itemsProvider=null,r._parameterTypes=f,(t=t||new c.ModelSerializer).deserialize(r,e),r._initEditingProperties(),r._disposables.push(r.value=s.computed(function(){var e=r.expression_Prefix+r._expression.value(),t=r._editingValue();return r.isExpression.peek()?e:t})),r}t.JsonParameter=r;var f=[{value:i[i.PathParameter],displayValue:"Path Parameter",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_PathParameter"},{value:i[i.QueryParameter],displayValue:"Query Parameter",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_QueryParameter"},{value:i[i.Header],displayValue:"Header",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_Header"}]},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SqlDataSource=void 0,r(142)),s=r(88),l=r(1),c=r(7),d=r(40),u=r(43),p=r(44),f=r(1),m=r(11),y=r(42),h=r(138),g=r(84),_=r(0),b=[{propertyName:"name",modelName:"@Name"},{propertyName:"connection",modelName:"Connection",from:a.SqlDataConnection.from,toJsonObject:a.SqlDataConnection.toJson},{propertyName:"queries",modelName:"Queries",array:!0},{propertyName:"relations",modelName:"Relations",array:!0},{propertyName:"resultSet",modelName:"ResultSchema",from:s.ResultSet.from,toJsonObject:s.ResultSet.toJson},{propertyName:"itemType",modelName:"@ItemType"}],r=(n=l.Disposable,i(v,n),v.prototype.getInfo=function(){return b},v.prototype.createQuery=function(e,t){if(e["@Type"]===c.SqlQueryType.customSqlQuery)return new d.CustomSqlQuery(e,this,t);if(e["@Type"]===c.SqlQueryType.tableQuery)return new u.TableQuery(e,this,t);if(e["@Type"]===c.SqlQueryType.storedProcQuery)return new p.StoredProcQuery(e,this,t);throw new Error("Unknown sql query type.")},v);function v(e,t,r){void 0===r&&(r=new m.RequestWrapper);var o=n.call(this)||this,i=((t=t||new f.ModelSerializer).deserialize(o,_.extend(e,{"@ItemType":"SqlDataSource"})),o._model.Name);return i&&(o.name()||o.name(i),delete o._model.Name),o.queries=l.deserializeArray(e.Queries,function(e){return o.createQuery(e,t)}),o.relations=l.deserializeArray(e.Relations,function(e){return new y.MasterDetailRelation(e,t)}),o.connection&&e.ConnectionOptions&&(o.connection.options=new h.ConnectionOptions(e.ConnectionOptions,t)),o.dbSchemaProvider=new g.DBSchemaProvider(o.connection,r),o._disposables.push(o.connection.name.subscribe(function(){o.queries([]),o.relations([]),o.resultSet=null})),o}t.SqlDataSource=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectQuery=t.selectQuerySerializationsInfo=void 0,r(2)),s=r(1),l=r(1),c=r(0),d=r(7),u=r(20),p=r(45),f=r(27),m=r(94),r=(t.selectQuerySerializationsInfo=[{propertyName:"queryType",modelName:"@QueryType"},{propertyName:"alias",modelName:"@Alias"},{propertyName:"expressions",modelName:"Expressions",array:!0},{propertyName:"subNodes",modelName:"SubNodes",array:!0},{propertyName:"root",modelName:"Root"},{propertyName:"itemType",modelName:"@ItemType"}],i=l.Disposable,n(y,i),Object.defineProperty(y.prototype,"sources",{get:function(){return a.observableArray([this.root()].concat(this.subNodes().map(function(e){return e.query()})).map(function(e){return new p.FederationSource({},new s.ModelSerializer,e.getPath(),e.sourceName())}))},enumerable:!1,configurable:!0}),y.prototype.getInfo=function(){return t.selectQuerySerializationsInfo},y.prototype.generateName=function(){return this.root()?this.root().alias():"SelectQuery"},y.prototype.init=function(e,t,r){(t||new s.ModelSerializer).deserialize(this,c.extend(e,{"@ItemType":"Query"})),this._disposables.push(this.queryType=a.pureComputed(function(){return d.FederationQueryType[d.FederationQueryType.SelectNode]})),this.expressions=l.deserializeArray(e.Expressions,function(e){return new u.FederatedQueryExpression(e,t)}),this.subNodes=l.deserializeArray(e.SubNodes,function(e){return new m.SubNode(e,t)}),e.Root&&(this.root=a.observable(new f.SourceQuery(e.Root,t,this.alias(),r)))},y);function y(e,t,r){var o=i.call(this)||this;return o._path=r,o.init(e,t,r),o}t.SelectQuery=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sourceSerializationInfo=t.federationDataSourceSerializationInfo=void 0,t.federationDataSourceSerializationInfo=[{propertyName:"name",modelName:"@Name"},{propertyName:"queries",modelName:"Queries",array:!0},{propertyName:"relations",modelName:"Relations",array:!0},{propertyName:"sources",modelName:"Sources",array:!0},{modelName:"SerializableSourceMap",propertyName:"serializableSourceMap",array:!0,info:[{modelName:"@DataSource",propertyName:"dataSource",link:!0},{modelName:"@Name",propertyName:"name"}]}],t.sourceSerializationInfo=[{propertyName:"sourceName",modelName:"@SourceName"},{propertyName:"dataMember",modelName:"@DataMember"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubNode=t.subNodeSerializationInfo=void 0;var o=r(2),s=r(1),i=r(0),l=r(29),c=r(29),n=r(29),d=r(30),a=r(30),u=r(65),p=r(27),r=(t.subNodeSerializationInfo=[{propertyName:"condition",modelName:"@Condition",defaultVal:""},{propertyName:"joinType",modelName:"@JoinType",defaultVal:"Inner"},{propertyName:"query",modelName:"Query"}],f.deserializeRelationModel=function(e,t){var o=t.parentTableName(),i=t.nestedTableName(),n=[],t=(t.conditions().forEach(function(e){var t="["+i+"."+e.nestedColumnName()+"]",r="["+o+"."+e.parentColumnName()+"]",e=a.operatorTokens[e.operator()];n.push(t+" "+e+" "+r)}),new f({"@JoinType":t.joinType(),"@Condition":n.join(" And ")}));return t.query(e),t},f.prototype._parsePath=function(e){return"["===e[0]&&"]"===e[e.length-1]?d.CriteriaOperatorStateMachine.parse(e).propertyName:e},f.prototype._createCondition=function(e,t,r){return{"@ControlType":"JoinCondition","@ItemType":"KeyColumn","@Operator":r,"@Nested":t,"@Parent":e}},f.prototype._conditionBinary=function(e){var t=this._parsePath(e.leftPart.propertyName),r=this._parsePath(e.rightPart.propertyName),e=n.BinaryOperatorType[e.operatorType];return this._createCondition(r.split(".")[1],t.split(".")[1],e)},f.prototype.createRelationModel=function(e){for(var t=d.CriteriaOperatorStateMachine.parse(this.condition()),r=[],t=(t instanceof c.GroupOperator?t.operands.forEach(function(e){e instanceof l.BinaryOperator&&r.push(e)}):t instanceof l.BinaryOperator&&r.push(t),this._parsePath(r[0].rightPart.propertyName).split(".")[0]),o=this._parsePath(r[0].leftPart.propertyName).split(".")[0],i={},n=0;n<r.length;n++){var a=r[n];i["Item"+(n+1)]=this._conditionBinary(a)}return new u.RelationViewModel({"@Parent":t,"@Nested":o,"@Type":this.joinType(),KeyColumns:i},e,new s.ModelSerializer)},f.prototype.getInfo=function(){return t.subNodeSerializationInfo},f);function f(e,t){(t=t||new s.ModelSerializer).deserialize(this,i.extend(e,{"@ItemType":"JoinElement"})),e.Query&&(this.query=o.observable(new p.SourceQuery(e.Query)))}t.SubNode=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JoinConditionViewModel=void 0,r(2)),s=r(59),l=r(21),c=r(24),d=r(0),r=(i=s.RoutedConnectorViewModel,n(u,i),u.prototype.getControlFactory=function(){return l.controlsFactory},u.prototype.preInitProperties=function(){this.startPoint=a.observable(),this.endPoint=a.observable()},u);function u(e,t,r){var o=i.call(this,d.extend(e,{"@ControlType":"JoinCondition","@ItemType":"KeyColumn"}),t,r)||this;return o.parentColumn=a.pureComputed(function(){return t.parentTable().getColumn(o.parentColumnName())}),o.nestedColumn=a.pureComputed(function(){return t.nestedTable().getColumn(o.nestedColumnName())}),o.joinType=t.joinType,o.left=a.pureComputed(function(){return t.parentTableName()+"."+o.parentColumnName()}),o.right=a.pureComputed(function(){return t.nestedTableName()+"."+o.nestedColumnName()}),o._disposables.push(a.computed(function(){var e;o.parentColumn()&&o.nestedColumn()&&(e=c.determineConnectingPoints(o.parentColumn(),o.nestedColumn()),o.startPoint().connectingPoint(e.start),o.endPoint().connectingPoint(e.end))})),o}t.JoinConditionViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.relationSerializationInfo=void 0,t.relationSerializationInfo=[{propertyName:"joinType",modelName:"@Type"},{propertyName:"parentTableName",modelName:"@Parent"},{propertyName:"nestedTableName",modelName:"@Nested"},{propertyName:"conditions",modelName:"KeyColumns",defaultVal:[],array:!0},{propertyName:"itemType",modelName:"@itemType"}]},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationDataSource=void 0,r(2)),s=r(1),l=r(0),c=r(7),d=r(46),u=r(47),p=r(98),f=r(93),m=r(66),y=r(145),h=r(45),g=r(146),r=(n=p.FederatedQueriesContainer,i(_,n),_.prototype.getInfo=function(){return f.federationDataSourceSerializationInfo},_.prototype.getSerializableModel=function(){return this._serializableModel},_.prototype.createQuery=function(e){var t=n.prototype.createQuery.call(this,e);if(!t){if(e["@QueryType"]===c.FederationQueryType[c.FederationQueryType.UnionNode])return new u.UnionQuery(e,this.dataSources,this._serializer);if(e["@QueryType"]===c.FederationQueryType[c.FederationQueryType.TransformationNode])return new d.TransformQuery(e,this._serializer)}return t},_.prototype.updateSerializableModel=function(){var r=this;this.serializableSourceMap=a.observableArray(),this.sources().forEach(function(e){var t=e.getDataSourceName();t&&r.serializableSourceMap().push({name:a.observable(e.sourceName()),dataSource:a.observable(r.dataSources().filter(function(e){return e.name===t})[0].data)})}),this._serializableModel=new y.SerializableDataFederationDataSource(this,this._serializer)},_.prototype.dispose=function(){n.prototype.dispose.call(this),this.disposeObservableArray(this.relations),this._serializableModel.dispose()},_);function _(e,t,r,o){var i=n.call(this,e,t,o)||this;return i.dataSources=t,i.fielListProvider=r,i.serializableSourceMap=a.observableArray(),i._serializer.deserialize(i,l.extend(e,{"@ItemType":"FederationDataSource"})),i.sources=s.deserializeArray(e.Sources,function(e){return new h.FederationSource(e,o)}),i.queries=s.deserializeArray(e.Queries,function(e){return i.createQuery(e)}),i.relations=s.deserializeArray(e.Relations,function(e){return new m.FederationMasterDetailRelation(e,i._serializer)}),r&&i._disposables.push(i.dbSchemaProvider=new g.DBSchemaFederationDataSourceProvider(i.fielListProvider)),i.updateSerializableModel(),i}t.FederationDataSource=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedQueriesContainer=void 0,r(2)),s=r(1),l=r(7),c=r(45),d=r(20),u=r(1),p=r(92),f=r(0),r=(i=u.Disposable,n(m,i),m.prototype.getQueryNameFromPath=function(e){var t=e.split("."),e=this.dataSources().filter(function(e){return e.ref==t[0]||e.id==t[0]})[0];return t[0]=e&&e.name||t[0],t.join("_")},m.prototype.getPathFromQueryName=function(e){for(var t=0,r=this.sources();t<r.length;t++){var o,i,n=r[t];if(n.sourceName()===e)return n=n.getPath().split("."),i=n.shift(),o=this.dataSources().filter(function(e){return e.name==i})[0],(i=o&&(o.ref||o.id)||i)+(0<n.length?"."+n.join("."):"")}},m.prototype.createQuery=function(e,t){return e["@QueryType"]===l.FederationQueryType[l.FederationQueryType.SelectNode]?new p.SelectQuery(e,this._serializer,(t||this).getPathFromQueryName(e.Root&&e.Root["@SourceName"])):null},m.prototype.addSource=function(t,e){t instanceof c.FederationSource?this.sources().filter(function(e){return e.sourceName()==t.sourceName()})[0]||this.sources.push(t):this.sources().filter(function(e){return e.sourceName()==t})[0]||this.sources.push(new c.FederationSource({},this._serializer,e,t))},m.prototype.removeSource=function(t){var e=f.findFirstItemMatchesCondition(this.sources(),function(e){return e.sourceName()===t});this.queries().some(function(e){return e.expressions().some(function(e){return e.table()===t})})||this.sources.remove(e)},m.prototype.addSelectQuery=function(e,t){var r=this.getQueryNameFromPath(e),o=this.queries().filter(function(e){return e.alias()===r})[0];o||(o=new p.SelectQuery({"@Alias":r,Root:{}},this._serializer,e),this.queries.push(o),this.addSource(r,e)),t&&!o.expressions().filter(function(e){return e.name()==t})[0]&&(e=new d.FederatedQueryExpression({"@NodeAlias":r,"@Name":t,"@ExpressionType":d.FederatedQueryExpressionType[d.FederatedQueryExpressionType.SelectColumnExpression]},this._serializer),o.expressions.push(e))},m.prototype.removeQuery=function(t){var e=this.queries().filter(function(e){return e.alias()===t})[0],e=(this.queries.remove(e),this.sources().filter(function(e){return e.sourceName()==t})[0]);e&&this.sources.remove(e)},m.prototype.removeExpression=function(t,e){var r=this.getQueryNameFromPath(e),e=this.queries().filter(function(e){return e.alias()===r})[0],o=e.expressions().filter(function(e){return e.name()==t})[0];e.expressions.remove(o),0==e.expressions().length&&this.removeQuery(r)},m.prototype.dispose=function(){i.prototype.dispose.call(this),this.disposeObservableArray(this.sources),this.disposeObservableArray(this.queries)},m);function m(e,t,r){var o=i.call(this)||this;return o.dataSources=t,o._serializer=r,o.sources=a.observableArray(),o._serializer=r||new s.ModelSerializer,o}t.FederatedQueriesContainer=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateQueryUniqueName=void 0;var i=r(0),n=r(0);t.generateQueryUniqueName=function(e,t,r){var o=(t[r=void 0===r?"name":r]()||t.generateName()).replace(".","_");return i.findFirstItemMatchesCondition(e,function(e){return e[r]()===o})?n.getUniqueNameForNamedObjectsArray(e,o+"_"):o}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._WrappedWizardPage=void 0,r(3)),s=r(1),l=r(14),r=(n=s.Disposable,i(c,n),c.prototype.dispose=function(){this.onChange=null,this[l.__loadingStateFunctionName]=null,this.page.dispose(),this._initDef&&this._initDef.reject(),this._initDef=null},c.prototype.resetCommitedState=function(){this._lastCommitedState=null},c.prototype.commit=function(){var t=this;return this.page.commit().done(function(e){t.isChanged=JSON.stringify(t._lastCommitedState)!==JSON.stringify(e),t._lastCommitedState=e})},c.prototype.initialize=function(e,t,r){var o=this;return void 0===t&&(t=!1),void 0===r&&(r=!1),this._initDef&&this._initDef.reject(),this._initDef=a.Deferred(),!this._isInitialized||t?(this._isInitialized=!0,this.page.initialize(e,r).fail(function(){o._isInitialized=!1,o._initDef&&o._initDef.reject()}).done(function(e){o._initDef&&o._initDef.resolve(e)})):this._initDef.resolve(),this._initDef.promise()},c);function c(e,t,r,o){var i=n.call(this)||this;return i.pageId=e,i.page=t,i.template=r,i.description=o,i._isInitialized=!1,i._initDef=null,i.isChanged=!0,t.onChange&&(i.onChange=function(e){return t.onChange(e)}),i}t._WrappedWizardPage=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerConfigureObjectDataSourceParametersPage=t.ConfigureObjectDataSourceParametersPage=void 0,r(3)),s=r(26),l=r(102),c=r(5),d=r(1),r=r(9),u=(i=r.WizardPageBase,n(p,i),p.prototype.canNext=function(){return!1},p.prototype.canFinish=function(){return!0},p.prototype.commit=function(){return a.Deferred().resolve({selectedType:this._objectDataSource.selectedType,ctor:this._objectDataSource.ctor,dataMember:this._objectDataSource.dataMember,dataSourceName:this._objectDataSource.name()}).promise()},p.prototype.initialize=function(e){return this._objectDataSource.setState(e),this._chooseObjectParameters.updateCtorParameters(this._objectDataSource.ctor),this._chooseObjectParameters.updateMethodParameters(this._objectDataSource.dataMember),a.Deferred().resolve().promise()},p);function p(e){var t=i.call(this)||this;return t._objectDataSource=new s.ObjectDataSource,t._disposables.push(t._chooseObjectParameters=new l.ChooseObjectMemberParameters(e)),t}t.ConfigureObjectDataSourceParametersPage=u,t._registerConfigureObjectDataSourceParametersPage=function(e,t){e.registerMetadata(c.ObjectDataSourceWizardPageId.ConfigureParametersPage,{setState:function(e,t){t.ctor=e.ctor,t.dataMember=e.dataMember,t.selectedType=e.selectedType},getState:function(e){return e.objectDataSourceWizard},resetState:function(e,t){e.dataMember=t.dataMember},create:function(){return new u(t&&t())},description:d.getLocalization("Configure constructor parameters and/or method parameters.","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_Description"),template:"dx-objectdatasource-configureparameters-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChooseObjectParameters=t.ChooseObjectMemberParameters=t.ObjectDataSourceParametersModel=t.ObjectDataSourceParameterProperty=void 0,r(2)),s=r(1),l=r(0),c=r(0),d=r(13),u=r(1),r=r(6),p=(i=s.Disposable,n(f,i),f.prototype.switchPropertyType=function(){this.isExpression()?(this.type(this._parameter.resultType),this._parameter.value=this.value()):(this.type(l.ExpressionType),this._parameter.value=this.expression.value())},f.prototype.isExpression=function(){return l.IsDataAccessExpression(this.type())},f.prototype._generateInfo=function(e,t){return c.extend({},{displayName:this._parameter.displayName,propertyName:t=void 0===t?"value":t,modelName:t,editorOptions:{}},e)},f.prototype._initGetInfo=function(t){var r=this,e=[this._generateInfo({editor:l.getEditorType(this._parameter.resultType),from:function(e){return a.observable((t.valueConverter||function(e){return e})(e))},defaultVal:!this.isExpression()&&this._parameter.value||t.defaultValue}),this._generateInfo({editor:{header:"dx-objectdatasource-expression-popup"},from:function(e){return{value:a.observable(e),itemsProvider:r._itemsProvider}},defaultVal:this.isExpression()&&this._parameter.value||""},"expression")];this._disposables.push({dispose:function(){return r.getInfo=void 0}}),this.getInfo=function(){return e}},f.prototype._isDateTimeParamerterType=function(){return"System.DateTime"===this._parameter.resultType},f.prototype._patchOriginalParameterValue=function(e){e&&this._isDateTimeParamerterType()?this._parameter.value=s.serializeDate(e):this._parameter.value=e},f.prototype._afterInitialize=function(){!this.isExpression()&&this._isDateTimeParamerterType()&&this._patchOriginalParameterValue(this.value())},f.prototype._subscribeProperties=function(){var t=this;this._disposables.push(this.type.subscribe(function(e){t._parameter.type=e}),this.expression.value.subscribe(function(e){t.isExpression()&&t._patchOriginalParameterValue(e)}),this.value.subscribe(function(e){t.isExpression()||t._patchOriginalParameterValue(e)}))},f.prototype.isPropertyVisible=function(e){return this.isExpression()?"expression"===e:"value"===e},f);function f(e,t){var r=i.call(this)||this,e=(r._parameter=e,r._itemsProvider=t,r.type=a.observable(""),r.type(r._parameter.type),d.DataSourceParameter._getTypeValue(r._parameter.resultType));return r._initGetInfo(e),(new u.ModelSerializer).deserialize(r,{}),r._subscribeProperties(),r._afterInitialize(),r}t.ObjectDataSourceParameterProperty=p;y.prototype._doWithModel=function(e){var t=this._editor._model();if(t instanceof p)return e(t)},y.prototype.switchEditors=function(){this._doWithModel(function(e){return e.switchPropertyType()})},y.prototype.isExpression=function(){return this._doWithModel(function(e){return e.isExpression()})};var m=y;function y(e){this._editor=e,this.imageTemplateName="dx-objectdatasource-expression"}h=r.ObjectProperties,n(_,h);var h,g=_;function _(e){e=h.call(this,a.observable(e))||this;return e.createEditorAddOn=function(e){return{data:new m(e),templateName:"dx-wizard-menu-box-editorswitch"}},e}b=s.Disposable,n(S,b);var b,v=S;function S(e,r){var o=b.call(this)||this;return o.displayName=e.displayName,o._grids=e.parameters.map(function(e){var e=new p(e,r),t=new g(e);return o._disposables.push(e),o._disposables.push(t),t}),o}t.ObjectDataSourceParametersModel=v;P=s.Disposable,n(x,P),x.prototype._updateParameters=function(e,t){this[e]()&&this[e]().dispose(),t&&0<t.parameters.length?this[e](new v(t,this._itemsProvider)):this[e](null)},x.prototype.updateCtorParameters=function(e){this._updateParameters("_ctorParametersObject",e)},x.prototype.updateMethodParameters=function(e){this._updateParameters("_dataMemberParametersObject",e)};var P,r=x;function x(e){var t=P.call(this)||this;return t._itemsProvider=e,t._ctorParametersObject=a.observable(),t._dataMemberParametersObject=a.observable(),t.hasParameters=function(){return t._dataMemberParametersObject()||t._ctorParametersObject()},t}t.ChooseObjectMemberParameters=r;n(T,C=r);var C,n=T;function T(e,t,r){var o=C.call(this,r)||this;return o._disposables.push(e.subscribe(function(e){o.updateCtorParameters(e)})),o._disposables.push(t.subscribe(function(e){o.updateMethodParameters(e[0])})),o}t.ChooseObjectParameters=n},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectSchemaProvider=t.getObjectTypeDescriptionsCallback=t.ObjectTypeDescriptions=void 0,r(3)),a=r(64),s=r(19),l=r(11),c=r(0),d=r(0),u=r(1),p=r(1),f=r(0),m=function(e){e=s.deserializeToCollection(e,function(e){return new a.ObjectType(e)}),this.types=e.sort(function(e,t){return e.displayName.localeCompare(t.displayName)})};function y(e,t){var r=n.Deferred();return e.getObjectTypeDescriptions(t).done(function(e){try{var t=new m(e.objectDataSourceInfoJson);r.resolve(t)}finally{"pending"===r.state()&&r.reject()}}).fail(function(e){c.ShowMessage(d.formatUnicorn(u.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),c.getErrorMessage(e))),r.reject()}),r.promise()}t.ObjectTypeDescriptions=m,t.getObjectTypeDescriptionsCallback=y;h=p.Disposable,i(g,h),g.prototype.dispose=function(){this._objectTypeDescriptionsPromise=null},g.prototype.getSchemaByPath=function(t,e){if(t.fullPath){for(var r=[],o=0;o<t.pathParts.length;o++){var i=(e.types||[]).filter(function(e){return e.name==t.pathParts[o]})[0];if(!i)return[];r=i.ctors}return r.map(function(e){return f.extend({},e,{isList:!1,specifics:"default"})})}return e.types.map(function(e){return f.extend({},e,{isList:!0,specifics:"List"})})},g.prototype.getObjectTypeDescriptions=function(e){return void 0===e&&(e=""),this._objectTypeDescriptionsPromise&&"rejected"!==this._objectTypeDescriptionsPromise.state()||(this._objectTypeDescriptionsPromise=y(this._requestWrapper,e)),this._objectTypeDescriptionsPromise};var h,r=g;function g(e){void 0===e&&(e=new l.RequestWrapper);var o=h.call(this)||this;return o._requestWrapper=e,o.getItems=function(t){var r=n.Deferred();return o.getObjectTypeDescriptions().done(function(e){r.resolve(o.getSchemaByPath(t,e))}).fail(r.reject),r.promise()},o}t.ObjectSchemaProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChooseObjectTypes=t.ChooseObjectTypesTreelistController=void 0,r(2)),s=r(8),r=r(1),l=(i=s.TreeListController,n(c,i),c.prototype.canSelect=function(e){return!0},c);function c(){return null!==i&&i.apply(this,arguments)||this}t.ChooseObjectTypesTreelistController=l;d=r.Disposable,n(u,d);var d,s=u;function u(e,t){var o=d.call(this)||this;return o.types=e,o.selectedType=a.observable(),o.selectedCtor=a.observable(),o.selectedPath=a.observable(""),o._scrollViewHeight="calc(100% - 36px)",o.availableTypesTreelistModel={expandRootItems:!0,itemsProvider:t,selectedPath:o.selectedPath,treeListController:new l},o._disposables.push(o.availableTypesTreelistModel.selectedPath.subscribe(function(r){e().forEach(function(t){t.name==r?(o.selectedType(t),null==o.selectedCtor()?o.selectedCtor.valueHasMutated():o.selectedCtor(null)):t.ctors.forEach(function(e){t.name.concat(".").concat(e.name)==r&&(o.selectedType(t),o.selectedCtor(e))})})})),o}t.ChooseObjectTypes=s},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChooseObjectDataMembers=void 0,r(2)),r=r(1),r=(i=r.Disposable,n(s,i),s.prototype.coerceSelection=function(){var e=this.selectedDataMembers()[0],e=e&&e.isAvailable()?e:this.dataMembers().filter(function(e){return e.isAvailable()})[0];this.selectedDataMembers([e])},s);function s(t,e){var r=i.call(this)||this,o=(r.dataMembers=a.observableArray([]),r.selectedDataMembers=a.observableArray([]),t()&&t().name);return r._disposables.push(e.subscribe(function(e){t().updateMembers(e),o!=t().name&&(r.dataMembers(t().members),r.selectedDataMembers([]),o=t().name),r.coerceSelection()})),r}t.ChooseObjectDataMembers=r},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonStringEditor=t.getLocalizedValidationErrorMessage=void 0,r(2)),a=r(6),s=r(0),l=r(1),c=r(8);function d(e,t,r){e=e||l.getLocalization("The value cannot be empty","AnalyticsCoreStringId.ParametersPanel_DateTimeValueValidationError");if(!t)return e;r=r?s.formatUnicorn("{0}. {1}",t,r):t;return l._stringEndsWith(r,":")||(r+=":"),s.formatUnicorn("{0} {1}",r,e)}t.getLocalizedValidationErrorMessage=d;u=a.Editor,i(p,u),p.prototype.uploadFile=function(e){var t=this;e&&e.event&&(e.event.stopPropagation(),e.event.preventDefault()),s.uploadFile({accept:".json,.txt"}).done(function(e){e=atob(e.content);0===e.indexOf("")&&(e=e.substr("".length)),t.value(e)})},p.prototype.getUploadTitle=function(){return l.getLocalization("Upload JSON File","AnalyticsCoreStringId.UploadJsonFile_Title")};var u,r=p;function p(e,t,r,o){var i=u.call(this,e,t,r,o)||this;return i.aceEditorHasErrors=n.observable(!1),i.aceAvailable=c.aceAvailable(),i.editorContainer=n.observable(),i.languageHelper={getLanguageMode:function(){return"ace/mode/json"},createCompleters:function(){return[]}},i.aceOptions={showLineNumbers:!1,highlightActiveLine:!1,showPrintMargin:!1,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0},i.isValid=n.computed(function(){return i._model()&&i._model().isValid()}),i.additionalOptions={onChangeAnnotation:function(e){e=e&&e.getAnnotations()||[];i._model()&&i._model().aceEditorHasErrors&&i._model().aceEditorHasErrors(0<e.filter(function(e){return"error"===e.type||"warning"===e.type}).length)},onBlur:function(){var e=i.editorContainer();e&&i.value(e.getValue())}},i.jsonStringValidationRules=[{type:"custom",reevaluate:!0,validationCallback:function(e){return i.isValid()},get message(){return d(l.getLocalization("The value cannot be empty and should have a valid format.","AnalyticsCoreStringId.ValueIsRequiredOrInvalidFormat_Error"),l.getLocalization("JSON String:","DataAccessUIStringId.WizardPageChooseJsonSource_Custom"))}}],i}t.JsonStringEditor=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNodeItemsProvider=void 0,r(2)),d=r(3),s=r(1),l=r(22),u=r(1),c=r(0),r=(i=s.Disposable,n(p,i),p.prototype._createTree=function(){var t=this;return this._fullTreeLoaded?d.Deferred().resolve().promise():d.when.apply(d,this._rootItems().map(function(e){return t.getItems(new u.PathRequest(e.path),!0)})).always(function(){return t._fullTreeLoaded=!0})},p.prototype._createTreePart=function(t,r,e){var o,i,n=this;return void 0===r&&(r=d.Deferred()),this._fullTreeLoaded?r.resolve().promise():0===t.length?r.resolve():e?(o=[].concat([],e,t[0]),i=new u.PathRequest(o.join("."),o),void(this._getParentNode(i)?this._createTreePart(t.slice(1),r,o):this.getItems(new u.PathRequest(e.join("."),e)).done(function(e){n._createTreePart(t.slice(1),r,o)}).fail(function(){return r.reject()}))):(r=d.Deferred(),1===t.length?this.getItems(new u.PathRequest(t[0],t)).done(function(){return r.resolve()}).fail(function(){return r.reject()}):this._createTreePart(t.slice(1),r,[t[0]]),r)},p.prototype._setChecked=function(e){var t=this;e.setChecked(!0),e instanceof l.DataMemberTreeNode&&e.children().forEach(function(e){return t._setChecked(e)})},p.prototype.selectAllItems=function(e){var t=this,r=(void 0===e&&(e=!0),d.Deferred());return this._createTree().always(function(){e?t._rootItems().forEach(function(e){return e.setChecked(!0)}):t._rootItems().forEach(function(e){return t._setChecked(e)}),r.resolve()}),r.promise()},p.prototype.selectItemsByPath=function(e){var t=this,r=d.Deferred(),o=e.split(".");return this._createTreePart(o).done(function(){t.getItems(new u.PathRequest(o.join("."),o)).done(function(e){e.forEach(function(e){e instanceof l.TreeNodeBase&&e.setChecked(!0)})}).always(function(){return r.resolve()})}),r.promise()},p.prototype.selectItemByPath=function(e){var r=this,o=d.Deferred(),i=e.split(".");return this._createTreePart(i).done(function(){var t=i.pop();r.getItems(new u.PathRequest(i.join("."),i)).done(function(e){e=e.filter(function(e){return e.name===t})[0];e instanceof l.TreeNodeBase&&e.setChecked(!0)}).always(function(){return o.resolve()})}),o.promise()},p.prototype._getParentNode=function(t){var e=this._rootItems().filter(function(e){return e.path===(t.id||t.ref)})[0];if(e){for(var r=e.path,o=1;o<t.pathParts.length;o++){if(!e)return;r+="."+t.pathParts[o],e=e.children().filter(function(e){return c.isList(e)&&e.path==r})[0]}return e}},p.prototype._getDefaultTreeNodeCheckState=function(e){return!1},p.prototype.isList=function(e,t){return c.isList(e)},p);function p(e,t,s,l){var c=i.call(this)||this;return c._fullTreeLoaded=!1,c._rootItems=a.observableArray([]),c._checkedRootNodesCount=a.computed(function(){if(!c._rootItems||0===c._rootItems().length)return 0;for(var e=0,t=0;t<c._rootItems().length&&e<1;t++)e+=c._rootItems()[t].unChecked()?0:1;return e}),c.hasCheckedItems=a.computed(function(){return!(0===c._checkedRootNodesCount())}),c.getRootItems=function(){return c._rootItems()},c.getItems=function(n,t){void 0===t&&(t=!1);var a=d.Deferred();return n.fullPath||0!==n.pathParts.length?e.getItems(n).done(function(e){var r,o,i=c._getParentNode(n);if(!i||!i.children)return a.reject();0===i.children().length?(r=[],o=[],e.forEach(function(e){var t=c._getDefaultTreeNodeCheckState(e);c.isList(e,i)?n.pathParts.length<=5&&(o.push([].concat(n.fullPath.split("."),[e.name])),r.push(s(e,t,[n.fullPath,e.name].join(".")))):r.push(l(e,t,[n.fullPath,e.name].join(".")))}),i.initializeChildren(r),t?d.when.apply(d,o.map(function(e){return c.getItems(new u.PathRequest(e.join("."),e),t)})).always(function(){return a.resolve(r)}):a.resolve(r)):a.resolve(i.children())}):a.resolve(c._rootItems()),a.promise()},c._disposables.push(t.subscribe(function(e){c._fullTreeLoaded=!1,c._rootItems(e.map(function(e){var t=c._getDefaultTreeNodeCheckState(e);return s(e,t,e.name)}))})),c._disposables.push(c.hasCheckedItems),c}t.TreeNodeItemsProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.StoredProceduresQueryControl=void 0,r(2)),s=r(3),l=r(1),c=r(44),d=r(86),u=r(0),p=r(1),f=r(13),m=r(18),y=r(41),r=(i=l.Disposable,n(h,i),h.prototype._needToProcessParameters=function(e){return e.arguments.some(h._availableConvertToParameter)},h._availableConvertToParameter=function(e){return e.direction!==d.DBStoredProcedureArgumentDirection.Out},Object.defineProperty(h.prototype,"_selectedProcedure",{get:function(){return this.selectedProcedure()[0]},set:function(e){this.selectedProcedure(e?[e]:[])},enumerable:!1,configurable:!0}),h.prototype.scrollActiveItem=function(e){var t=e.model.selectedProcedure.peek();e.component.scrollToItem(t[0])},h.generateStoredProcedureDisplayName=function(e){return 0===e.arguments.length?e.name:e.arguments.reduce(function(e,t,r,o){return e+(t.name+(r<o.length-1?", ":")"))},e.name+"(")},h.prototype.setQuery=function(e){return this._query=e,this._selectedProcedure=u.getFirstItemByPropertyValue(this.storedProcedures(),"name",e.procName()),s.Deferred().resolve().promise()},h.prototype.getQuery=function(){var t=this;if(!this._selectedProcedure)return null;var r=new c.StoredProcQuery({"@Name":this._query.name()||this._selectedProcedure.name,ProcName:this._selectedProcedure.name},this._query.parent);return this._selectedProcedure.arguments.forEach(function(e){h._availableConvertToParameter(e)&&r.parameters.push(u.getFirstItemByPropertyValue(t._query.parameters(),"name",e.name)||new f.DataSourceParameter({"@Name":e.name,"@Type":m.DBColumn.GetType(e.type)},null,y.storedProcParameterSerializationsInfo(m.DBColumn.GetType(e.type))))}),r},Object.defineProperty(h.prototype,"runQueryBuilderDisabled",{get:function(){return!0},enumerable:!1,configurable:!0}),h);function h(){var t=i.call(this)||this;return t.template="dxrd-procedures-control",t.storedProcedures=a.observableArray([]),t.selectedProcedure=a.observableArray([]),t.caption=function(){return p.getLocalization("Select a stored procedure:","DataAccessUIStringId.StoredProcControl_Caption")},t.generateStoredProcedureDisplayName=function(e){return h.generateStoredProcedureDisplayName(e)},t.isNextDisabled=a.pureComputed(function(){return!t._selectedProcedure||!t._needToProcessParameters(t._selectedProcedure)}),t.isFinishDisabled=a.pureComputed(function(){return!t._selectedProcedure||t._needToProcessParameters(t._selectedProcedure)}),t.storedProcedures.subscribe(function(e){e?t._selectedProcedure?t._selectedProcedure=u.getFirstItemByPropertyValue(t.storedProcedures(),"name",t._selectedProcedure.name):t._query&&t._query.procName()?t._selectedProcedure=u.getFirstItemByPropertyValue(t.storedProcedures(),"name",t._query.procName()):t._selectedProcedure=e[0]:t._selectedProcedure=null}),t}t.StoredProceduresQueryControl=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectQuerySqlTextProvider=void 0;var o=r(1),i=r(0);function n(e,t){this._selectStatementCallback=e,this._connection=t}n.prototype.getQuerySqlText=function(e){e=JSON.stringify({Query:(new o.ModelSerializer).serialize(e)});return this._selectStatementCallback(this._connection(),e).fail(function(e){e=i.getErrorMessage(e);i.ShowMessage("Unable to build a SQL string"+(e?": "+e:"."))})},t.SelectQuerySqlTextProvider=n},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryBuilderPopup=t.QueryBuilderPopupBase=void 0,r(2)),s=r(0),l=r(43),c=r(1),d=r(0),u=r(1),r=r(1),r=(i=r.Disposable,n(p,i),p.prototype.show=function(e,t){this._dataSource=t,this._dbSchemaProvider(t.dbSchemaProvider),this._querySource((new c.ModelSerializer).serialize(e)),this.isVisible(!0),this.designer().updateSurface()},p.prototype.cancelHandler=function(){this.isVisible(!1)},p.prototype.previewHandler=function(){this.designer().showPreview()},p.prototype.okHandler=function(){var e=this;this.designer().model().canSave()&&this._applyQuery(this.createQuery(),this.showLoadIndicator).done(function(){e.isVisible(!1)})},p.prototype.onHiddingHandler=function(){this.designer().dataPreview.isVisible(!1)},p.prototype.popupViewModel=function(e){e=d.getParentContainer(e);return{visible:this.isVisible,title:this.getDisplayText("title"),showTitle:!0,shading:!0,fullScreen:!1,width:"95%",height:"95%",container:e,wrapperAttr:{class:"dxrd-querybuilder-popup"},position:{of:e},onHidding:this.onHiddingHandler}},p.prototype.getDisplayText=function(e){return u.getLocalization(this.localizationIdMap[e].text,this.localizationIdMap[e].localizationId)},p.customizeQueryBuilderActions=function(e){var t=s.findFirstItemMatchesCondition(e,function(e){return"Delete"===e.text}),r=s.findFirstItemMatchesCondition(e,function(e){return"Undo"===e.text}),o=s.findFirstItemMatchesCondition(e,function(e){return"Redo"===e.text});e.splice(0,e.length,t,r,o)},p);function p(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=function(e){return e});var o=i.call(this)||this;return o.customizeQBInitializationData=r,o._querySource=a.observable(null),o._dbSchemaProvider=a.observable(null),o.designer=a.observable(),o.qbOptions=a.observable(null),o.okButtonDisabled=a.pureComputed(function(){return o.designer()&&!o.designer().model().isValid()}),o.isVisible=a.observable(!1),o.showLoadIndicator=a.observable(!1),o.localizationIdMap={title:{text:"Query Builder",localizationId:"DataAccessUIStringId.QueryBuilder"},loading:{text:"Loading...",localizationId:"AnalyticsCoreStringId.Loading"},previewResults:{text:"Preview Results...",localizationId:"DataAccessUIStringId.QueryBuilderButtons_PreviewResults"},cancel:{text:"Cancel",localizationId:"AnalyticsCoreStringId.SearchDialog_Cancel"},ok:{text:"OK",localizationId:"DataAccessUIStringId.Button_OK"}},o._rtl=t,o._applyQuery=e,o.qbOptions(o.qbOptions()||o.customizeQBInitializationData({queryBuilderModel:o.designer,dbSchemaProvider:o._dbSchemaProvider,querySource:o._querySource,callbacks:{customizeActions:m.customizeQueryBuilderActions},rtl:o._rtl})),o}t.QueryBuilderPopupBase=r;n(y,f=r),y.prototype.getDataSource=function(){return this._dataSource},y.prototype.createQuery=function(){return new l.TableQuery(this.designer().model().serialize(),this.getDataSource())};var f,m=y;function y(e,t,r){e=f.call(this,e,t=void 0===t?!1:t,r=void 0===r?function(e){return e}:r)||this;return e.customizeQBInitializationData=r,e}t.QueryBuilderPopup=m},function(j,e,t){"use strict";var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(e,"__esModule",{value:!0}),e._registerMultiQueryConfigurePage=e.MultiQueryConfigurePage=void 0,t(2)),a=t(3),s=t(12),l=t(10),c=t(158),d=t(43),u=t(7),p=t(109),f=t(49),m=t(1),y=t(44),h=t(13),g=t(18),_=t(41),b=t(0),v=t(99),S=t(32),P=t(110),x=t(33),C=t(40),T=t(1),w=t(113),O=t(1),D=t(70),N=t(5),I=t(8),E=t(9),z=t(14),A=(r=E.WizardPageBase,i(M,r),M.prototype._addQueryAlgorithm=function(e,t,r,o){e.unChecked()&&"queries"!==t?e.children().forEach(function(e){M._removeQuery(r.queries,e)}):(0===e.children().length&&this._itemsProvider().getItems(new m.PathRequest(t)),"tables"===t||"views"===t?this._addQueryFromTables(e,r):"procedures"===t?this._addQueryFromStoredProcedures(e,r):this._addQueryFromCustomQueries(e,o,r.queries))},M.prototype._addQueryFromTables=function(e,t){for(var r=0;r<e.children().length;r++){var o=e.children()[r];if(o.unChecked())M._removeQuery(t.queries,o);else{var i={},n={Columns:i,Tables:{SelectedTables:{Item1:{"@Name":o.name,"@ControlType":"Table","@ItemType":"Table"}}}};0===o.children().length&&this._itemsProvider().getItems(new m.PathRequest("tables."+o.name)).done(function(){o.initializeChildren(o.children())});for(var a=0;a<o.children().length;a++){var s=o.children()[a];s.checked()&&(i["Item"+(a+1)]={"@Table":o.name,"@Name":s.name,"@ItemType":"Column"})}M._pushQuery(new d.TableQuery(n,t),o,t.queries)}}},M.prototype._addQueryFromStoredProcedures=function(e,t){for(var r=0;r<e.children().length;r++){var o,i=e.children()[r];i.checked()?(o=new y.StoredProcQuery({"@Name":i.name,ProcName:i.name},t),i.arguments.forEach(function(e){o.parameters.push(new h.DataSourceParameter({"@Name":e.name,"@Type":g.DBColumn.GetType(e.type)},null,_.storedProcParameterSerializationsInfo(g.DBColumn.GetType(e.type))))}),M._pushQuery(o,i,t.queries)):M._removeQuery(t.queries,i)}},M.prototype._addQueryFromCustomQueries=function(e,t,r){for(var o=0;o<e.children().length;o++){var i=e.children()[o],n=b.findFirstItemMatchesCondition(t.peek(),function(e){return i.name===(e.name()||e.generateName())});i.checked()&&(n.name(v.generateQueryUniqueName(r.peek(),n)),this._checkedQueries.push(n))}},M.prototype._getItemsPromise=function(e){return this._itemsProvider().getItems(e)},M.prototype._resetDataSourceResult=function(){this._customResetOptions(),this._dataSource().relations([]),this._dataSource().resultSet=null,this._onChange()},M.prototype._setQueryCore=function(e){var t=this._fieldListModel().itemsProvider,r=this._queryEditIndex();0<=r?(this._itemsProvider().queries().children()[r].name=e.name(),t.customQueries().splice(r,1,e)):(e.name(v.generateQueryUniqueName(t.customQueries().peek(),e)),t.customQueries().push(e),this._selectedPath("queries."+e.name()),(t=(r=this._itemsProvider().queries().children())[r.length-1]).setChecked(!0),t._afterCheckToggled&&t._afterCheckToggled(t)),this._resetDataSourceResult()},M._pushQuery=function(t,e,r){b.findFirstItemMatchesCondition(r.peek(),function(e){return e.name()===(t.name()||t.generateName())})||(t.name(v.generateQueryUniqueName(r.peek(),t)),r.push(t)),e.hasQuery=!0},M._removeQuery=function(e,r){var o;r.hasQuery&&(o=-1,e.peek().some(function(e,t){return(e.name()===r.name||e.generateName()===r.name)&&(o=t,!0)})&&e.splice(o,1),r.hasQuery=!1)},M.prototype.canNext=function(){return!this._itemsProvider().nextButtonDisabled()&&this.canFinish()},M.prototype.canFinish=function(){return this._itemsProvider()&&this._itemsProvider().hasCheckedItems()&&!this._isDataLoadingInProcess()},M.prototype._AddQueryWithBuilder=function(){},M.prototype._runQueryBuilder=function(){},M.prototype._loadPanelViewModel=function(e){return x.PopupWizard._getLoadPanelViewModel(e,this._isDataLoadingInProcess)},M.prototype._setTableQuery=function(e,t){var r=this;return t&&t(!0),this._sqlTextProvider.getQuerySqlText(e).done(function(){return r._setQueryCore(e)}).always(function(){t&&t(!1)})},M.prototype._setCustomSqlQuery=function(e){this._setQueryCore(e)},M.prototype._createTreeListFactory=function(){return new l.MultiQueryTreeListItemFactory},M.prototype.commit=function(){var t=this,e=(this._dataSource().queries.removeAll(),this._checkedQueries.removeAll(),this._addQueryAlgorithm(this._itemsProvider().tables(),"tables",this._dataSource()),this._addQueryAlgorithm(this._itemsProvider().views(),"views",this._dataSource()),this._addQueryAlgorithm(this._itemsProvider().procedures(),"procedures",this._dataSource()),this._addQueryAlgorithm(this._itemsProvider().queries(),"queries",this._dataSource(),this._customQueries),n.utils.arrayPushAll(this._dataSource().queries(),this._checkedQueries()),this._dataSource().queries.valueHasMutated(),this._itemsProvider().queries().children().filter(function(e){return e.checked()}).map(function(e){return e.name})),r=this._sqlDataSourceWrapper.sqlDataSource.queries().filter(function(t){return e.some(function(e){return e===t.name()})||t instanceof y.StoredProcQuery}),o=(r.forEach(function(e){return t._sqlDataSourceWrapper.sqlDataSource.queries.remove(e)}),new T.ModelSerializer);return a.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.save(),customQueries:r.map(function(e){return JSON.stringify(o.serialize(e))})}).promise()},M.prototype.initialize=function(e){var t=this,e=(this._sqlDataSourceWrapper=s._restoreSqlDataSourceFromState(e,this._options.requestWrapper),this._callbacks.customQueriesPreset?this._callbacks.customQueriesPreset(this._dataSource()):a.Deferred().resolve([]).promise()),r=a.Deferred();return e.done(function(e){t._customQueries(e),t._selectedPath("");e=new c.DBSchemaItemsProvider(t._dataSource().dbSchemaProvider,t._customQueries,t._showQbCallBack,t.disableCustomSql,t._getItemsAfterCheck);t._disposables.push(e),t._itemsProvider(e),t._getItemsPromise(new m.PathRequest("queries")),t._fieldListModel({factory:t._createTreeListFactory(),itemsProvider:t._itemsProvider(),selectedPath:t._selectedPath,treeListController:new w.DBSchemaTreeListController(t._customizeDBSchemaTreeListActions),templateName:"dxrd-treelist-with-checkbox"}),t._popupQueryBuilder.isVisible(!1),t._dataSource().dbSchemaProvider.getDbSchema().done(function(){r.resolve()}).fail(r.reject)}).fail(r.reject),r.promise()},M);function M(e){var o=r.call(this)||this;return o._options=e,o._selectedPath=n.observable(null),o._itemsProvider=n.observable(),o._customQueries=n.observableArray([]),o._checkedQueries=n.observableArray([]),o._sqlDataSourceWrapper=new f._SqlDataSourceWrapper(void 0,void 0,void 0),o._dataSource=function(){return o._sqlDataSourceWrapper&&o._sqlDataSourceWrapper.sqlDataSource},o._dataConnection=function(){return o._dataSource()&&o._dataSource().connection},o._showStatementPopup=function(e){o._popupSelectStatement.isVisible(!0),o._popupSelectStatement.query=e,o._popupSelectStatement.data(e.sqlString())},o._showQbCallBack=function(t,e){var r;void 0===e&&(e=!1),null!==(t=void 0===t?null:t)?(r=b.findFirstItemMatchesCondition(o._customQueries(),function(e){return t===(e.name()||e.generateName())}),o._queryEditIndex(o._customQueries().indexOf(r)),r.type()===u.SqlQueryType.customSqlQuery?o._showStatementPopup(r):o._popupQueryBuilder.show(r,o._dataSource())):(o._queryEditIndex(-1),e?o._showStatementPopup(new C.CustomSqlQuery({"@Name":null},o._dataSource())):(r=new d.TableQuery({"@Name":null},o._dataSource()),o._popupQueryBuilder.show(r,o._dataSource())))},o._popupSelectStatement={isVisible:n.observable(!1),title:function(){return O.getLocalization("Custom SQL Editor","AnalyticsCoreStringId.SqlDSWizard_CustomSqlEditor")},query:null,data:n.observable(),okButtonText:function(){return O.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){o._popupSelectStatement.query.sqlString(e.model.data()),o._setCustomSqlQuery(o._popupSelectStatement.query),e.model.isVisible(!1)},aceOptions:D.createDefaultSQLAceOptions(),aceAvailable:I.aceAvailable(),additionalOptions:D.createDefaultSQLAdditionalOptions(function(e){o._popupSelectStatement.data(e)}),languageHelper:D.createDefaultSQLLanguageHelper(),closest:function(e,t){return a(e).closest(t)}},o._customResetOptions=a.noop,o._queryEditIndex=n.observable(-1),o.disableCustomSql=!0,o._scrollViewHeight="calc(100% - 37px)",o._customizeDBSchemaTreeListActions=null,o._isDataLoadingInProcess=n.observable(!1),o._callbacks=o._options.callbacks,o._sqlTextProvider=new p.SelectQuerySqlTextProvider(S.wrapGetSelectStatement(o._callbacks.selectStatement),o._dataConnection),o._popupQueryBuilder=new P.QueryBuilderPopup(function(e,t){return o._setTableQuery(e,t)},e.rtl,e.callbacks.customizeQBInitData),o._fieldListModel=n.observable(null),o._disposables.push(o._hasParametersToEdit=n.pureComputed(function(){return o._itemsProvider().hasParametersToEdit()})),o._disposables.push(o._isDataLoadingInProcess.subscribe(function(e){e||o._onChange(),o[z.__loadingStateFunctionName]&&o[z.__loadingStateFunctionName](e)})),o.disableCustomSql=o._options.disableCustomSql,o._getItemsAfterCheck=function(t){o._resetDataSourceResult(),o._isDataLoadingInProcess(!0),t.checked.peek()&&t.isList?"tables"===t.name||"views"===t.name?o._itemsProvider().getItems(new m.PathRequest(t.name)).done(function(){t.isList&&0<t.children.peek().length?a.when.apply(a,t.children.peek().map(function(e){return o._getItemsPromise(new m.PathRequest(t.name+"."+e.name))})).always(function(){return o._isDataLoadingInProcess(!1)}):o._isDataLoadingInProcess(!1)}):"table"===t.specifics||"view"===t.specifics?o._itemsProvider().getItems(new m.PathRequest(t.specifics+"."+t.name)).always(function(){return o._isDataLoadingInProcess(!1)}):"procedures"===t.name?o._itemsProvider().getItems(new m.PathRequest(t.name)).always(function(){return o._isDataLoadingInProcess(!1)}):o._isDataLoadingInProcess(!1):o._isDataLoadingInProcess(!1)},o}e.MultiQueryConfigurePage=A,e._registerMultiQueryConfigurePage=function(e,t){e.registerMetadata(N.SqlDataSourceWizardPageId.MultiQueryConfigurePage,{create:function(){return new A(t)},setState:function(e,t){t.sqlDataSourceJSON=e.sqlDataSourceJSON,t.customQueries=e.customQueries},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.sqlDataSourceJSON=t.sqlDataSourceJSON,e.customQueries=t.customQueries},description:O.getLocalization("Columns selected from specific tables and/or views will be automatically included into a separate query.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMultiQuery"),template:"dxrd-wizard-add-queries-page"})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StateManager=void 0;var o=r(0);function i(e,t){this.globalState=e,this.pageFactory=t,this.defaultState=o.extend(!0,{},e)}i.prototype._getPageState=function(e,t){return void 0===t&&(t=this.globalState),this.pageFactory.getMetadata(e).getState(t)},i.prototype.setPageState=function(e,t){this.pageFactory.getMetadata(e).setState(t,this.getPageState(e))},i.prototype.getPageState=function(e){return this._getPageState(e)},i.prototype.resetPageState=function(e){var t=o.extend(!0,{},this._getPageState(e,this.defaultState));this.pageFactory.getMetadata(e).resetState(this.getPageState(e),t)},i.prototype.getCurrentState=function(){return this.globalState},i.prototype.reset=function(){this.globalState.reset()},t.StateManager=i},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchemaTreeListController=void 0,r(8)),s=r(22),r=(i=a.TreeListController,n(l,i),l.prototype.getActions=function(e){if(!e.data)return[];if(!(e.data instanceof s.QueriesTreeNode||e.data instanceof s.TreeQueryNode))return[];var t=e.data.getActions(e);return this._customizeDBSchemaTreeListActions&&this._customizeDBSchemaTreeListActions(e.data,t),t},l.prototype.canSelect=function(e){return!0},l);function l(e){var t=i.call(this)||this;return t._customizeDBSchemaTreeListActions=e,t}t.DBSchemaTreeListController=r},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerMultiQueryConfigureParametersPage=t.MultiQueryConfigureParametersPage=t._canEditQueryParameters=void 0,r(3)),a=r(2),s=r(7),l=r(12),c=r(49),d=r(160),u=r(13),p=r(0),f=r(10),m=r(6),y=r(0),h=r(1),g=r(5),r=r(9);function _(e,t){return e.type()===s.SqlQueryType.tableQuery||e.type()===s.SqlQueryType.customSqlQuery?-1<t.indexOf(e):e.type()===s.SqlQueryType.storedProcQuery&&0<e.parameters().length}t._canEditQueryParameters=_;b=r.WizardPageBase,i(S,b),S.prototype._isParametersValid=function(){return this._getParameters().every(function(e){return e.isValid()})},S.prototype.canNext=function(){return this._isParametersValid()&&1<this._sqlDataSourceWrapper.sqlDataSource.queries().length},S.prototype.canFinish=function(){return this._isParametersValid()&&1<=this._sqlDataSourceWrapper.sqlDataSource.queries().length},S.prototype._getParameters=function(){return[].concat.apply([],(this._rootItems()||[]).map(function(e){return e.parameters().map(function(e){return e.dataSourceParameter()})}))},S.prototype.initialize=function(e){var o=this,r=[],i=this._rootItems();return this._sqlDataSourceWrapper=l._restoreSqlDataSourceFromState(e,this._requestWrapper),this._sqlDataSourceWrapper.sqlDataSource.queries().forEach(function(e){var t;_(e,o._sqlDataSourceWrapper.customQueries)&&((t=new d.ParametersTreeListRootItem(e)).parameters(e.parameters().map(function(e){return new d.ParametersTreeListItem(o.parametersConverter.createParameterViewModel(e),t)})),r.push(t))}),i.filter(function(t){return r.every(function(e){return e.name!==t.name})}).forEach(function(e){i.splice(o._rootItems().indexOf(e),1)}),r.forEach(function(t){var r=i.filter(function(e){return e.name===t.name})[0];r?t.parameters().filter(function(t){return r.parameters().every(function(e){return e.name!==t.name})}).forEach(function(e){r.parameters.push(e)}):i.push(t)}),this._rootItems.valueHasMutated(),this._fieldListModel({itemsProvider:{getItems:function(t){var e,r=n.Deferred();return t.fullPath?(e=y.findFirstItemMatchesCondition(o._rootItems(),function(e){return e.name===t.ref}),r.resolve(e.parameters())):r.resolve(o._rootItems()),r.promise()}},templateName:"dx-treelist-item-with-hover",selectedPath:this._selectedPath,treeListController:new d.ParametersTreeListController(this._rootItems(),this._createNewParameter)}),n.Deferred().resolve().promise()},S.prototype.commit=function(){var t=this;return this._rootItems().forEach(function(e){e.query().parameters(e.parameters().map(function(e){return t.parametersConverter.getParameterFromViewModel(e.dataSourceParameter())}))}),n.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.sqlDataSourceJSON,customQueries:this._sqlDataSourceWrapper.saveCustomQueries()}).promise()};var b,v=S;function S(e,t){void 0===e&&(e={createParameterViewModel:function(e){return e},getParameterFromViewModel:function(e){return e}});function r(){return o._onChange()}var o=b.call(this)||this;o.parametersConverter=e,o._requestWrapper=t,o._sqlDataSourceWrapper=new c._SqlDataSourceWrapper(void 0,void 0,o._requestWrapper),o._selectedPath=a.observable(null),o._rootItems=a.observableArray(),o._createNewParameter=function(e,t){t=new u.DataSourceParameter({"@Name":p.getUniqueNameForNamedObjectsArray(t,"parameter"),"@Type":"System.Int32"});return o._selectedPath(e+"."+t.name()),o.parametersConverter.createParameterViewModel(t)},o._scrollViewHeight="100%",o._fieldListModel=a.observable(null),o._removeButtonTitle=h.getLocalization("Remove","DataAccessUIStringId.Button_Remove");return o._disposables.push(f.subscribeArray(o._rootItems,function(e){o._disposables.push(f.subscribeArray(e.parameters,function(e){o._disposables.push(f.subscribeObject(e.dataSourceParameter,function(e){var t;(t=o._disposables).push.apply(t,f.subscribeProperties([e.name,e.value,e.type],r))},r))},r))},r)),o._parametersEditorOptions={addHandler:function(){return o.parametersConverter.createParameterViewModel(new u.DataSourceParameter({"@Name":p.getUniqueNameForNamedObjectsArray(o._parametersEditorOptions.values.peek().peek(),"param"),"@Type":"System.Int32"}))},values:a.observable(a.observableArray([])),displayName:"Parameters",level:0,info:a.observable({displayName:"Parameters",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Parameters",propertyName:"parameters",modelName:"Parameter",array:!0,editor:m.editorTemplates.getEditor("commonCollection"),template:"#dxrd-parameter-collection-item"}),editorTemplate:"#dxrd-wizard-datasource-parameters",hideButtons:a.observable(!1),collapsed:!1},o}t.MultiQueryConfigureParametersPage=v,t._registerMultiQueryConfigureParametersPage=function(e,t,r){e.registerMetadata(g.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage,{create:function(){return new v(r,t)},getState:function(e){return e.sqlDataSourceWizard},setState:function(e,t){return t.customQueries=e.customQueries},resetState:function(){},description:h.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters"),template:"dxrd-configure-query-parameters-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailRelationshipsPageBase=void 0,r(2)),s=r(3),l=r(88),c=r(10),d=r(161),u=r(0),r=r(9),r=(i=r.WizardPageBase,n(p,i),p.prototype._getResultSet=function(e){var t=s.Deferred();return e.resultSet?t.resolve(e.resultSet):this._getResultSchema(e).done(function(e){t.resolve(new l.ResultSet(JSON.parse(e.resultSchemaJSON)))}).fail(function(e){t.reject(e)}),t.promise()},p.prototype._dataSource=function(){return null},p.prototype._restoreDataSource=function(e){},p.prototype._updateRelations=function(){var n=this,a=this._relations();a.forEach(function(t,e){var r,o=n._resultSet.tables().filter(function(e){return e.tableName()===t.detailQuery()})[0],i=n._resultSet.tables().filter(function(e){return e.tableName()===t.masterQuery()})[0];o&&i?((r=t.keyColumns()).forEach(function(t,e){(o.columns().every(function(e){return e.name()!==t.detailColumn()})||i.columns().every(function(e){return e.name()!==t.masterColumn()}))&&r.splice(e,1)}),0===r.length&&a.splice(e,1)):a.splice(e,1)}),this._relations.valueHasMutated()},p.prototype.canNext=function(){return!1},p.prototype.canFinish=function(){return this._relations().every(function(e){return e.keyColumns().every(function(e){return!!e.detailColumn()&&!!e.masterColumn()})})},p.prototype.initialize=function(e){var t=this;return this.relationsSubscription&&this.relationsSubscription.dispose(),this._restoreDataSource(e),this._disposables.push(this.relationsSubscription=this._relations.subscribe(function(e){e.some(function(e){return!e.moved&&0!==e.moved})&&t._customResetOptions()},null,"arrayChange")),this._getResultSet(this._dataSource()).done(function(e){t._resultSet=e,t._updateRelations(),t._relationsEditor(new d.MasterDetailEditor(t._relations,t._resultSet,s.noop))}).fail(function(e){u.getErrorMessage(e)&&u.ShowMessage(u.getErrorMessage(e))})},p.prototype.dispose=function(){i.prototype.dispose.call(this),this.disposeObservableArray(this._relations)},p);function p(e){function o(){return t._onChange()}var t=i.call(this)||this;t._getResultSchema=e,t._relations=a.observableArray([]),t._customResetOptions=s.noop,t._relationsEditor=a.observable(null);return t._disposables.push(c.subscribeArray(t._relations,function(r){var e;(e=r._disposables).push.apply(e,c.subscribeProperties([r.detailQuery,r.name,r.masterQuery],o)),r._disposables.push(c.subscribeArray(r.keyColumns,function(e){var t;(t=r._disposables).push.apply(t,c.subscribeProperties([e.detailColumn,e.masterColumn],o))},o))},o)),t}t.MasterDetailRelationshipsPageBase=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerConfigureMasterDetailRelationshipsPage=t.ConfigureMasterDetailRelationshipsPage=void 0,r(2)),s=r(3),l=r(12),c=r(1),d=r(5),u=r(1),r=r(115),p=(i=r.MasterDetailRelationshipsPageBase,n(f,i),f.prototype._restoreDataSource=function(e){this._sqlDataSourceWrapper=l._restoreSqlDataSourceFromState(e)},f.prototype._dataSource=function(){return this._sqlDataSourceWrapper.sqlDataSource},f.prototype.commit=function(){this.relationsSubscription.dispose(),this._sqlDataSourceWrapper.sqlDataSource.relations(this._relations()),this._sqlDataSourceWrapper.sqlDataSource.resultSet=this._resultSet;var t=new c.ModelSerializer;return s.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.sqlDataSourceJSON,customQueries:this._sqlDataSourceWrapper.saveCustomQueries(),relations:this._relations().map(function(e){return JSON.stringify(t.serialize(e))})}).promise()},f);function f(){var e=null!==i&&i.apply(this,arguments)||this;return e._customResetOptions=s.noop,e._relationsEditor=a.observable(null),e}t.ConfigureMasterDetailRelationshipsPage=p,t._registerConfigureMasterDetailRelationshipsPage=function(e,t){e.registerMetadata(d.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage,{create:function(){return new p(t)},setState:function(e,t){t.relations=e.relations},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.relations=t.relations},description:u.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),template:"dxrd-wizard-configure-relations-page"})}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerFederatedQueryConfigurePage=t.FederatedQueryConfigurePage=void 0,r(3)),s=r(2),l=r(0),c=r(0),d=r(1),u=r(1),p=r(97),f=r(118),m=r(180),y=r(181),h=r(14),g=r(113),_=r(10),b=r(5),v=r(33),r=r(9),S=(n=r.WizardPageBase,i(P,n),P.prototype.canNext=function(){return 1<this._dataSource.queries().length},P.prototype.canFinish=function(){return 0<this._dataSource.queries().length},P.prototype._createTreeListFactory=function(){return new _.MultiQueryTreeListItemFactory},P.prototype._loadPanelViewModel=function(e){return v.PopupWizard._getLoadPanelViewModel(e,this._isDataLoadingInProcess)},P.prototype.commit=function(){return a.Deferred().resolve({federationDataSourceJSON:JSON.stringify((new u.ModelSerializer).serialize(this._dataSource)),federatedQueries:[]}).promise()},P.prototype.initialize=function(e){var t=a.Deferred(),r=s.observableArray(a.map(this._dataSources(),function(e){return{name:e.id||e.ref,displayName:e.name,isList:!0,specifics:e.specifics||"ListSource",isListType:e.isListType,dragData:{noDragable:!1}}})),r=new y.FederationTreeNodeProvider(this._fieldListProvider,r,this._queriesPopupHelper.callBacks,this._customQueries,this._getItemsAfterCheck);return this._disposables.push(r),this._itemsProvider(r),this._fieldListModel({factory:this._createTreeListFactory(),itemsProvider:this._itemsProvider(),selectedPath:this._selectedPath,treeListController:new g.DBSchemaTreeListController(this._customizeDBSchemaTreeListActions),templateName:"dxrd-treelist-with-checkbox"}),t.resolve().promise()},P);function P(e){var i=n.call(this)||this;return i._options=e,i._selectedPath=s.observable(null),i._itemsProvider=s.observable(),i._customQueries=s.observableArray([]),i._setQueryChecked=function(e){var t=i._itemsProvider().getRootItems();i._selectedPath("queries."+e.alias());e=l.findFirstItemMatchesCondition(t,function(e){return"queries"===e.name}).children(),t=e[e.length-1];t.setChecked(!0),t._afterCheckToggled&&t._afterCheckToggled(t)},i._dataSources=s.observableArray(),i._scrollViewHeight="calc(100% - 37px)",i._isDataLoadingInProcess=s.observable(!1),i._customizeDBSchemaTreeListActions=null,i._dataSources(i._options.dataSources()),i._disposables.push(i._fieldListProvider=new c.FieldListProvider(i._options.callbacks.fieldListsCallback,i._dataSources,[new m.FederationDataSourceItemsExtender(i._dataSources)],!0)),i._disposables.push(i._dataSource=new p.FederationDataSource({},i._dataSources,i._fieldListProvider,new u.ModelSerializer)),i._disposables.push(i._queriesPopupHelper=new f.FederatedQueriesHelper(i._dataSource,i._customQueries,i._setQueryChecked,i._options.rtl)),i._fieldListModel=s.observable(null),i._getItemsAfterCheck=function(t){var r,e,o=t.path.split(".");"query"==t.specifics?((r=t.query||l.findFirstItemMatchesCondition(i._customQueries(),function(e){return(e.alias()||r.generateName())===t.name})).alias(t.name),t.checked.peek()?-1===i._dataSource.queries.indexOf(r)&&i._dataSource.queries.push(r):i._dataSource.queries.remove(r)):!t.isList||2<o.length?(e=o.pop(),o=o.join("."),t.checked.peek()?i._dataSource.addSelectQuery(o,e):i._dataSource.removeExpression(e,o)):t.children().forEach(function(e){return i._getItemsAfterCheck(e)}),i._onChange(),i[h.__loadingStateFunctionName]&&i[h.__loadingStateFunctionName](!1)},i}t.FederatedQueryConfigurePage=S,t._registerFederatedQueryConfigurePage=function(e,t){e.registerMetadata(b.FederationDataSourceWizardPageId.FederatedQueryConfigurePage,{create:function(){return new S(t)},setState:function(e,t){t.federationDataSourceJSON=e.federationDataSourceJSON,t.federatedQueries=e.federatedQueries},getState:function(e){return e.federationDataSourceWizard},resetState:function(e,t){e.federationDataSourceJSON=t.federationDataSourceJSON,e.federatedQueries=t.federatedQueries},description:d.getLocalization("Columns selected from specific tables and/or views will be automatically included into a separate query.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMultiQuery"),template:"dxrd-wizard-add-federated-queries-page"})}},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedQueriesHelper=void 0,r(0)),s=r(0),l=r(1),c=r(92),d=r(46),u=r(47),p=r(166),f=r(177),m=r(179),r=(a=l.Disposable,i(y,a),y.prototype._getQuery=function(e,t){return t?s.findFirstItemMatchesCondition(this.queries(),function(e){return t===e.alias()}):e()},y.prototype._setQuery=function(t){t&&-1===this.queries.indexOf(t)&&(t.alias(t.alias()||t.generateName()),this._dataSource.queries().filter(function(e){return e.alias()===t.alias()})[0]&&t.alias(n.getUniqueName(this._dataSource.queries().map(function(e){return e.alias()}),t.alias())),this.queries.push(t),this._afterAddQuery(t))},y.prototype.dispose=function(){a.prototype.dispose.call(this),this._dataSource=null},y);function y(e,t,r,o){void 0===o&&(o=!1);function i(e){n._setQuery(e),t.valueHasMutated()}var n=a.call(this)||this;n._dataSource=e,n.queries=t,n._afterAddQuery=r,n._showSelectQbCallBack=function(e){n._popupSelectQueryBuilder.show(n._getQuery(function(){return new c.SelectQuery({})},e=void 0===e?null:e))},n._showUnionQbCallBack=function(e){n._popupUnionQueryBuilder.show(n._getQuery(function(){return new u.UnionQuery({},n._dataSource.dataSources)},e=void 0===e?null:e))},n._showTransformQbCallBack=function(e){n._popupTransformQueryBuilder.show(n._getQuery(function(){return new d.TransformQuery({})},e=void 0===e?null:e))},n.template="dx-querybuilder-federation-popup-templates";return n._disposables.push(t.subscribe(function(e){return e.forEach(function(e){e.sources().forEach(function(e){return n._dataSource.addSource(e)})})})),n._disposables.push(n._popupSelectQueryBuilder=new p.FederationSelectQueryBuilderPopup(i,n._dataSource,o)),n._disposables.push(n._popupUnionQueryBuilder=new m.FederationUnionQueryBuilderPopup(i,n._dataSource,o)),n._disposables.push(n._popupTransformQueryBuilder=new f.FederationTransformQueryBuilderPopup(i,n._dataSource,o)),n.callBacks={joinCallBack:n._showSelectQbCallBack,unionCallBack:n._showUnionQbCallBack,transformCallBack:n._showTransformQbCallBack},n.popupItems=[{template:"dxrd-querybuilder-federation-popup",model:n._popupSelectQueryBuilder},{template:"dxrd-querybuilder-federation-popup",model:n._popupUnionQueryBuilder},{template:"dxrd-querybuilder-federation-popup",model:n._popupTransformQueryBuilder}],n}t.FederatedQueriesHelper=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedTransformQueryBuilderTreeListController=t.FederatedUnionQueryBuilderTreeListController=void 0,r(8)),r=(i=r.TreeListController,n(a,i),a.prototype.itemsFilter=function(e,t,r){return"none"!==e.specifics},a.prototype.isDraggable=function(e){if(!e.data)return!1;if(e.data.isListType||!1===e.data.isSupportQueries){for(var t=e.parent;t&&t.data;){if(t.data.isListType)return!1;t=t.parent}return!0}return!1},a);function a(e,t){var r=i.call(this)||this;return r.dragDropHandler=e,r.dblClickHandler=t,r}t.FederatedUnionQueryBuilderTreeListController=r;n(l,s=r),l.prototype.itemsFilter=function(e,t,r){return s.prototype.itemsFilter.call(this,e,t,r)&&e.isList},l.prototype.hasItems=function(e){return s.prototype.hasItems.call(this,e)&&(!e.isListType||!1===e.isSupportQueries)};var s,n=l;function l(){return null!==s&&s.apply(this,arguments)||this}t.FederatedTransformQueryBuilderTreeListController=n},function(e,t,r){"use strict";var o,s,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTableSurface=t.FederationTableViewModel=t.FederationQuerySurface=t.FederationQueryViewModel=t.federationQuerySerializationsInfo=void 0,r(2)),n=r(0),a=r(1),c=r(1),d=r(0),u=r(27),p=r(94),f=r(20),m=r(7),y=r(72),h=r(34),g=r(37),_=r(53),b=r(52),v=r(54),S=r(123),P=r(175),r=(t.federationQuerySerializationsInfo=[{propertyName:"name",modelName:"@Alias"},{propertyName:"type",modelName:"@Type"},{propertyName:"itemType",modelName:"@ItemType"},{propertyName:"queryType",modelName:"@QueryType"},{propertyName:"rootModel",modelName:"Root"},{propertyName:"expressions",modelName:"Expressions",array:!0},{propertyName:"subNodes",modelName:"SubNodes",array:!0}],s=_.QueryViewModelBase,i(x,s),x.prototype._initializeTable=function(t){this._dbSchemaProvider.getDbTable(t.name(),t.path).done(function(e){t.createColumns(e)})},x.prototype._createTableViewModel=function(e){var t=this.dataSource.getPathFromQueryName(e["@SourceName"]);return new O(e,this,t,this.serializer)},x.prototype.dispose=function(){s.prototype.dispose.call(this),this.dataSource=null},x.prototype.serialize=function(e){var r=this.serializer||new a.ModelSerializer,t=(this.expressions(this.columns().map(function(e){var t={"@Alias":e.alias(),"@ColumnExpression":e.expression(),"@Name":e.column(),"@NodeAlias":e.table()};return t["@ExpressionType"]=y.ColumnExpressionCollectionHelper.columnTypeToFederated(e.itemType()),new f.FederatedQueryExpression(t,r)})),this.rootModel(this.tables()[0]),this.tables()),o=(t.shift(),this.relations());return this.subNodes(t.map(function(t){var e=(e=n.findFirstItemMatchesCondition(o,function(e){return e.nestedTable()===t}))||n.findFirstItemMatchesCondition(o,function(e){return e.parentTable()===t});return o.splice(o.indexOf(e),1),p.SubNode.deserializeRelationModel(t,e)})),s.prototype.serialize.call(this,e)},x.prototype.createChild=function(e,t,r){return s.prototype.createChild.call(this,e,"FTable"===e["@ControlType"]?new O(e,this,r):void 0)},x.prototype.getInfo=function(){return t.federationQuerySerializationsInfo},x.emptyModel={"@ItemType":"Query",SubNodes:{},Expressions:{}},x);function x(r,e,t,o,i){void 0===o&&(o=g.ParametersMode.ReadWrite);var n=s.call(this,d.extend(!0,r,x.emptyModel,r),t,o,function(e){return e},i)||this,a=(n._dbSchemaProvider=t,n.serializer=i,n.expressions=l.observableArray(),n.subNodes=l.observableArray(),n.controlType="FQuery",n.defaultPageHeight=300,n.topOffset=20,n.dataSource=e,[]);return n.tables=l.observableArray(),r.Root&&n.tables.push(n._createTableViewModel(r.Root)),Object.keys(r.SubNodes).forEach(function(e){var t=new p.SubNode(r.SubNodes[e],i),e=n._createTableViewModel(r.SubNodes[e].Query);n.tables.push(e),a.push(t.createRelationModel(n))}),n.columns=c.deserializeArray(r.Expressions,function(e){return new h.ColumnExpression({"@Name":e["@Name"],"@Alias":e["@Alias"],"@Table":e["@NodeAlias"],"#text":e["@ColumnExpression"],"@ItemType":y.ColumnExpressionCollectionHelper.federatedTypeToColumn(e["@ExpressionType"])},n,i)}),n.relations=l.observableArray(a),n.init(),n}t.FederationQueryViewModel=r;C=b.QuerySurface,i(T,C);var C,_=T;function T(){return null!==C&&C.apply(this,arguments)||this}t.FederationQuerySurface=_;w=v.TableViewModel,i(D,w),D.prototype.getInfo=function(){return u.sourceQuerySerializationsInfo},D.prototype.getPath=function(){return this.path},D.prototype.createChildColumn=function(e){return new P.FederationColumnViewModel({"@Name":e.name},e,this,this.serializer)};var w,O=D;function D(e,t,r,o){var o=w.call(this,e,t,o)||this,i=(o.controlType="FTable",r&&!e["@SourceName"]&&o.sourceName(t.dataSource.getQueryNameFromPath(r)),o.name()||o.name(o.sourceName()),o.alias()||o.alias(o.name()),o._disposables.push(o.queryType=l.pureComputed(function(){return m.FederationQueryType[m.FederationQueryType.SourceNode]})),o.tableOffset(12),r.split(".")),e=t.dataSource.dataSources().filter(function(e){return e.id===i[0]||e.ref===i[0]||e.name===i[0]})[0];return o.path=(e.id||e.ref)+(1<i.length?"."+i.slice(1).join("."):""),o.displaySourceName=l.observable(e.name),o.asterisk=new P.FederationAllColumnsViewModel(o,o.serializer),o}t.FederationTableViewModel=O;N=S.TableSurface,i(I,N);var N,r=I;function I(){var e=null!==N&&N.apply(this,arguments)||this;return e.titletemplate="dxqb-federation-table-title",e}t.FederationTableSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableSerializationInfo=void 0;r=r(15);t.tableSerializationInfo=[r.name,r.alias,{propertyName:"controlType",modelName:"@ControlType"},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.querySerializationsInfo=void 0;var o=r(28),r=r(1);t.querySerializationsInfo=[{propertyName:"_tablesObject",modelName:"Tables",info:[{propertyName:"tables",modelName:"SelectedTables",array:!0},{propertyName:"relations",modelName:"Relations",array:!0}]},{propertyName:"parameters",modelName:"Parameters",array:!0},{propertyName:"type",modelName:"@Type"},{propertyName:"name",modelName:"@Name"},{propertyName:"editableName",displayName:"Name",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Name",editor:o.editorTemplates.getEditor("text")},{propertyName:"_filterString",modelName:"Filter",defaultVal:""},{propertyName:"filterString",defaultVal:"",displayName:"Filter",localizationId:"DataAccessUIStringId.FiltersView_Filter",editor:o.editorTemplates.getEditor("filterEditor")},{propertyName:"_groupFilterString",modelName:"GroupFilter",defaultVal:""},{propertyName:"groupFilterString",defaultVal:"",displayName:"Group Filter",localizationId:"DataAccessUIStringId.FiltersView_GroupFilter",editor:o.editorTemplates.getEditor("filterGroupEditor")},{propertyName:"columns",modelName:"Columns",array:!0},{propertyName:"sorting",modelName:"Sorting",array:!0},{propertyName:"grouping",modelName:"Grouping",array:!0},{propertyName:"itemType",modelName:"@ItemType"},{propertyName:"allColumnsInTablesSelected",displayName:"Select All (*)",localizationId:"AnalyticsCoreStringId.QueryBuilder_SelectAll",editor:o.editorTemplates.getEditor("bool")},{propertyName:"top",modelName:"@Top",displayName:"Select Top",defaultVal:0,from:r.floatFromModel,localizationId:"AnalyticsCoreStringId.QueryBuilder_SelectTop",editor:o.editorTemplates.getEditor("numeric"),editorOptions:{format:"#0",min:0}},{propertyName:"skip",modelName:"@Skip",displayName:"Offset",defaultVal:0,from:r.floatFromModel,localizationId:"AnalyticsCoreStringId.QueryBuilder_Offset",editor:o.editorTemplates.getEditor("numeric"),editorOptions:{format:"#0",min:0}},{propertyName:"distinct",modelName:"@Distinct",defaultVal:!1,from:r.parseBool,displayName:"Select distinct",localizationId:"AnalyticsCoreStringId.QueryBuilder_SelectDistinct",editor:o.editorTemplates.getEditor("bool")}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.TableSurface=void 0,r(3)),s=r(2),l=r(173),c=r(54),d=r(76),u=r(174),p=r(0),r=(i=l.QueryElementBaseSurface,n(f,i),f.prototype.resizable=function(e,t){return p.extend({},e,{handles:"e, w",$selectedNodes:a(t),minWidth:c.TableViewModel.TABLE_MIN_WIDTH})},f);function f(e,t){var r=i.call(this,e,t,null)||this;return r.showSourceName=!1,r.contenttemplate="dxqb-table",r.titletemplate="dxqb-table-title",r.template="dxqb-table-main",r.toggleSelected=function(){r.getControlModel().toggleSelectedColumns()},r.selectedWrapper=s.pureComputed(function(){return r.getControlModel().allColumnsSelected()}),r.isInitialized=e.isInitialized,r.columns=s.pureComputed(function(){return e.columns().map(function(e){return new d.ColumnSurface(e,t)})}),r.asterisk=new u.AllColumnsSurface(e.asterisk,t),r}t.TableSurface=r},function(e,t,r){"use strict";var o,s,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederatedQueriesTreeNode=void 0,r(0)),r=r(22),r=(s=r.QueriesTreeNode,i(n,s),n.prototype.getActions=function(e){var t=[];return 0===e.path.indexOf("queries")&&t.push(this.addAction),t},n.prototype.popoverListItems=function(){var e=this;return[{name:l.getLocalization("Join","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_Select"),addAction:function(){return e.callbacks().showQbCallBacks.joinCallBack()},className:this.className},{name:l.getLocalization("Union","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_Union"),addAction:function(){return e.callbacks().showQbCallBacks.unionCallBack()},className:this.className},{name:l.getLocalization("Transform","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_Transform"),addAction:function(){return e.callbacks().showQbCallBacks.transformCallBack()},className:this.className}]},n);function n(e,t,r,o,i,n){var a=s.call(this,e,t,r,o,i,n)||this;return a.callbacks=i,a.addAction={clickAction:function(){return a.showPopover()},imageClassName:"dxrd-image-add",imageTemplateName:"dxrd-svg-operations-add",templateName:"dx-treelist-federation-action-with-popover",text:l.getLocalization("Add query","AnalyticsCoreStringId.SqlDSWizard_AddQuery")},a.className="dxrd-federation-addqueries-popover",a}t.FederatedQueriesTreeNode=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerFederatedMasterDetailRelationshipsPage=t.FederatedMasterDetailRelationshipsPage=void 0,r(2)),s=r(3),l=r(12),c=r(1),d=r(5),u=r(1),p=r(115),f=r(66),m=(i=p.MasterDetailRelationshipsPageBase,n(y,i),y.prototype._restoreDataSource=function(e){this._federationDataSource=l._restoreFederationDataSourceFromState(e,this._options.dataSources)},y.prototype._dataSource=function(){return this._federationDataSource},y.prototype.commit=function(){this.relationsSubscription.dispose();var e=this._relations().map(function(e){return f.FederationMasterDetailRelation.create(e)}),t=(this._federationDataSource.relations(e),this._federationDataSource.resultSet=this._resultSet,new c.ModelSerializer);return s.Deferred().resolve({federationDataSourceJSON:JSON.stringify((new c.ModelSerializer).serialize(this._federationDataSource)),relations:e.map(function(e){return JSON.stringify(t.serialize(e))})}).promise()},y);function y(e,t){e=i.call(this,e)||this;return e._options=t,e._customResetOptions=s.noop,e._relationsEditor=a.observable(null),e}t.FederatedMasterDetailRelationshipsPage=m,t._registerFederatedMasterDetailRelationshipsPage=function(e,t,r){e.registerMetadata(d.FederationDataSourceWizardPageId.FederatedMasterDetailRelationshipsPage,{create:function(){return new m(t,r)},setState:function(e,t){t.relations=e.relations},getState:function(e){return e.federationDataSourceWizard},resetState:function(e,t){e.relations=t.relations},description:u.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),template:"dxrd-wizard-configure-relations-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifyObjectDataSourceSettingsPage=t.SpecifyObjectDataSourceSettingsPage=void 0,r(2)),s=r(3),l=r(10),c=r(64),d=r(26),u=r(103),p=r(104),f=r(105),m=r(102),y=r(1),h=r(5),r=r(9),g=(i=r.WizardPageBase,n(_,i),_.prototype._initSections=function(){var e=this;this._sections=[{data:this._chooseObjectType,disabled:function(){return!1},description:y.getLocalization("Choose the type and its constructor.","AnalyticsCoreStringId.ObjectDSWizard_ChooseType_Description"),position:l.getSectionStyle(this._dataSourceWizardOptions.rtl?l.WizardSectionPosition.Right:l.WizardSectionPosition.Left),template:"dx-objectdatasource-types-section"},{data:this._chooseObjectDataMember,disabled:function(){return!e._chooseObjectDataMember.dataMembers().length},description:y.getLocalization("Choose the entire object or a data member to bind.","AnalyticsCoreStringId.ObjectDSWizard_ChooseDataMember_Description"),position:l.getSectionStyle(this._dataSourceWizardOptions.rtl?l.WizardSectionPosition.TopLeft:l.WizardSectionPosition.TopRight),disabledText:y.getLocalization("To select a data member, choose a type that contains at least one data member.","AnalyticsCoreStringId.ObjectDSWizard_ChooseDataMember_Disabled_Description"),template:"dx-objectdatasource-datamembers-section"},{data:this._chooseObjectParameters,disabled:function(){return!e._chooseObjectParameters.hasParameters()},position:l.getSectionStyle(this._dataSourceWizardOptions.rtl?l.WizardSectionPosition.BottomLeft:l.WizardSectionPosition.BottomRight),description:y.getLocalization("Configure constructor parameters and/or method parameters.","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_Description"),disabledText:y.getLocalization("To specify parameters, select a parameterized constructor or method.","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_Disabled_Description"),template:"dx-objectdatasource-parameters-section"}]},_.prototype.showDescription=function(e,t){return[e+1,t].join(". ")},_.prototype.canNext=function(){return!1},_.prototype.canFinish=function(){return!!this._chooseObjectDataMember.selectedDataMembers().length},_.prototype.commit=function(){var e=this._chooseObjectDataMember.selectedDataMembers()[0];return s.Deferred().resolve({selectedType:this._chooseObjectType.selectedType().name,ctor:this._chooseObjectType.selectedCtor(),dataSourceName:this._objectDataSource.name(),context:this._context,dataMember:!e||e.isEntireObject()?void 0:e}).promise()},_.prototype.initialize=function(e){var t=this;return this._context=e.objectDataSourceWizard.context,this._objectDataSource.setState(e.objectDataSourceWizard),this._chooseObjectType.selectedCtor(this._objectDataSource.ctor),this._chooseObjectDataMember.selectedDataMembers([this._objectDataSource.dataMember]),this._provider.getObjectTypeDescriptions(e.objectDataSourceWizard.context).done(function(e){e.types.forEach(function(e){return e.members.splice(0,0,c.ObjectDataMember.empty())}),t._types(e.types||[]),0<e.types.length&&t._chooseObjectType.selectedPath(e.types[0].name)}),s.Deferred().resolve().promise()},_);function _(e){var t=i.call(this)||this,e=(t._dataSourceWizardOptions=e,t._types=a.observableArray([]),t._objectDataSource=new d.ObjectDataSource,t._dataSourceWizardOptions.callbacks.getItemsProviderCallback);return t._disposables.push(t._provider=new u.ObjectSchemaProvider(t._dataSourceWizardOptions.requestWrapper),t._chooseObjectType=new p.ChooseObjectTypes(t._types,t._provider),t._chooseObjectDataMember=new f.ChooseObjectDataMembers(t._chooseObjectType.selectedType,t._chooseObjectType.selectedCtor),t._chooseObjectParameters=new m.ChooseObjectParameters(t._chooseObjectType.selectedCtor,t._chooseObjectDataMember.selectedDataMembers,e&&e())),t._initSections(),t}t.SpecifyObjectDataSourceSettingsPage=g,t._registerSpecifyObjectDataSourceSettingsPage=function(e,t){e.registerMetadata(h.FullscreenDataSourceWizardPageId.SpecifyObjectDataSourceSettingsPage,{setState:function(e,t){t.objectDataSourceWizard.ctor=e.ctor,t.objectDataSourceWizard.dataMember=e.dataMember,t.objectDataSourceWizard.selectedType=e.selectedType,t.objectDataSourceWizard.dataSourceName=e.dataSourceName},getState:function(e){return e},resetState:function(e,t){e.objectDataSourceWizard.ctor=t.objectDataSourceWizard.ctor,e.objectDataSourceWizard.dataMember=t.objectDataSourceWizard.dataMember,e.objectDataSourceWizard.selectedType=t.objectDataSourceWizard.selectedType,e.objectDataSourceWizard.dataSourceName=t.objectDataSourceWizard.dataSourceName},create:function(){return new g(t)},template:"dxrd-page-objectsource",navigationPanelText:y.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage")})}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectingPointDragHandler=void 0,r(0)),s=r(78),l=r(39),c=r(0),d=r(58),r=(n=a.DragDropHandler,i(u,n),u.prototype.startDrag=function(e){if(!(e instanceof s.ConnectingPointSurface))throw new Error("ConnectingPointDragHandler can be applied to the ConnectingPoint only.");this.startConnectingPoint=e;e=this.startConnectingPoint.parent.getControlModel();this.newConnector=e.parentModel().createChild({"@ControlType":"RoutedConnector"}),this.newConnector.startPoint().connectingPoint(this.startConnectingPoint.getControlModel())},u.prototype.drag=function(e,t){t.position.left+=t.scroll.left,t.position.top+=t.scroll.top;t=this._getAbsoluteSurfacePosition(t);this.newConnectorSurface.endPoint().rect({top:t.top,left:t.left})},u.prototype.doStopDrag=function(){var e;this.dragHelperContent.reset(),this.selection.dropTarget&&((e=this.selection.dropTarget.getControlModel())instanceof l.ConnectingPointViewModel?this.newConnector.endPoint().connectingPoint(e):e instanceof d.DiagramElementViewModel&&(e=e.connectingPoints(),this.newConnector.endPoint().connectingPoint(e[0])),this.selection.initialize(this.newConnectorSurface))},Object.defineProperty(u.prototype,"newConnectorSurface",{get:function(){return this.newConnector&&c.findSurface(this.newConnector)},enumerable:!1,configurable:!0}),u);function u(e,t,r,o,i){e=n.call(this,e,t,r,o,i)||this;return e.startConnectingPoint=null,e.newConnector=null,e.cursor="arrow",e.containment=".dxrd-ghost-container",e.helper=function(e){i.update(e)},e}t.ConnectingPointDragHandler=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPointDragHandler=void 0,r(0)),s=r(25),l=r(39),c=r(58),r=(n=a.DragDropHandler,i(d,n),d.prototype.startDrag=function(e){if(!(e instanceof s.ConnectionPointSurface))throw new Error("ConnectionPointDragHandler can be applied to the ConnectionPoint only.");this.currentConnectionPoint=e},d.prototype.drag=function(e,t){t.position.left+=t.scroll.left,t.position.top+=t.scroll.top;t=this._getAbsoluteSurfacePosition(t);this.currentConnectionPoint.rect({top:t.top,left:t.left})},d.prototype.doStopDrag=function(){var e,t;this.dragHelperContent.reset(),this.selection.dropTarget&&((t=this.selection.dropTarget.getControlModel())instanceof l.ConnectingPointViewModel?(e=this.currentConnectionPoint.parent.getControlModel(),(this.currentConnectionPoint.getControlModel()===e.startPoint()?e.startPoint():e.endPoint()).connectingPoint(t)):t instanceof c.DiagramElementViewModel&&(e=this.currentConnectionPoint.parent.getControlModel(),t=t.connectingPoints(),(this.currentConnectionPoint.getControlModel()===e.startPoint()?e.startPoint():e.endPoint()).connectingPoint(t[0])))},d);function d(e,t,r,o,i){e=n.call(this,e,t,r,o,i)||this;return e.currentConnectionPoint=null,e.cursor="arrow",e.containment=".dxrd-ghost-container",e.helper=function(e){i.update(e)},e}t.ConnectionPointDragHandler=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.DiagramElementSurface=void 0,r(38)),r=(i=r.DiagramElementBaseSurface,n(a,i),a.prototype._getChildrenHolderName=function(){return"connectingPoints"},a);function a(e,t){e=i.call(this,e,t,null)||this;return e.contenttemplate="dxdd-element-content-with-connecting-points",e}t.DiagramElementSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectorSurface=void 0,r(2)),s=r(38),l=r(25),r=(i=s.DiagramElementBaseSurface,n(c,i),c);function c(e,t){var r=i.call(this,e,t,null)||this;return r.template="dxdd-connector",r.selectiontemplate="dxdd-connector-selection",r.startPoint=a.pureComputed(function(){return new l.ConnectionPointSurface(e.startPoint(),t)}),r.endPoint=a.pureComputed(function(){return new l.ConnectionPointSurface(e.endPoint(),t)}),r}t.ConnectorSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDBStoredProceduresCallback=t.getDBSchemaCallback=void 0;var i=r(3),n=r(132),a=r(0),s=r(0),l=r(1);t.getDBSchemaCallback=function(e,t,r){var o=i.Deferred();return e.getDbSchema(t,r).done(function(e){o.resolve(new n.DBSchema(JSON.parse(e.dbSchemaJSON)))}).fail(function(e){a.ShowMessage(s.formatUnicorn(l.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),a.getErrorMessage(e))),o.reject()}),o.promise()},t.getDBStoredProceduresCallback=function(e,t){var r=i.Deferred();return e.getDbStoredProcedures(t).done(function(e){r.resolve(new n.DBSchema(JSON.parse(e.dbSchemaJSON)).procedures)}).fail(function(e){a.ShowMessage(s.formatUnicorn(l.getLocalization("Stored procedures loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),a.getErrorMessage(e))),r.reject()}),r.promise()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchema=void 0;var o=r(85),i=r(86),n=r(19);t.DBSchema=function(e){var t=n.deserializeToCollection(e.Tables,function(e){return new o.DBTable(e)}),r=(t.sort(function(e,t){return e.name.localeCompare(t.name)}),n.deserializeToCollection(e.Views,function(e){return new o.DBTable(e)}));r.sort(function(e,t){return e.name.localeCompare(t.name)}),this.tables=t.concat(r),this.procedures=n.deserializeToCollection(e.StoredProcedures,function(e){return new i.DBStoredProcedure(e)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DBForeignKey=void 0,t.DBForeignKey=function(e){this.name=e.Name,this.primaryKeyTable=e.PrimaryKeyTable,this.columns=e.Columns,this.primaryKeyColumns=e.PrimaryKeyTableKeyColumns}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResultTable=void 0;var o=r(1),i=[{propertyName:"tableName",modelName:"@Name"},{propertyName:"columns",modelName:"Fields",array:!0,info:[{propertyName:"name",modelName:"@Name"},{propertyName:"propertyType",modelName:"@Type"}]}];function n(e,t){(t=t||new o.ModelSerializer).deserialize(this,e)}n.prototype.getInfo=function(){return i},t.ResultTable=n},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSource=void 0,r(2)),s=r(1),l=r(1),c=r(90),r=r(89),n=(i=s.Disposable,n(d,i),d.from=function(e,t){return new d(e||{},t)},d.toJson=function(e,t,r){return t.serialize(e,u,r)},d.prototype.getInfo=function(){return u},d.prototype.serialize=function(e){return(e=void 0===e?!1:e)?{Source:this.serialize()}:(new l.ModelSerializer).serialize(this)},d.prototype.resetSource=function(){this.sourceType(""),this.json(""),this.uri("")},d._URIJSONSOURCE_TYPE="DevExpress.DataAccess.Json.UriJsonSource",d._CUSTOMJSONSOURCE_TYPE="DevExpress.DataAccess.Json.CustomJsonSource",d);function d(e,r){void 0===e&&(e={});var t=i.call(this)||this;function o(e,t){return e&&Array.isArray(e[c.JsonParameterType[t]])&&e[c.JsonParameterType[t]]&&(e=e[c.JsonParameterType[t]]),s.deserializeArray(e,function(e){return e["@ItemType"]||(e["@ItemType"]=c.JsonParameterType[t]),new c.JsonParameter(e,r)})}return t.sourceType=a.observable(),t.uri=a.observable(),t.json=a.observable(),(r=r||new l.ModelSerializer).deserialize(t,e),t._disposables.push(t.uri.subscribe(function(e){e&&t.sourceType(d._URIJSONSOURCE_TYPE)})),t._disposables.push(t.json.subscribe(function(e){e&&t.sourceType(d._CUSTOMJSONSOURCE_TYPE)})),t.queryParameters=o(e.QueryParameters,c.JsonParameterType.QueryParameter),t.headers=o(e.Headers,c.JsonParameterType.Header),t.pathParameters=o(e.PathParameters,c.JsonParameterType.PathParameter),t}t.JsonSource=n;var u=[{propertyName:"sourceType",modelName:"@SourceType",defaultVal:""},{propertyName:"json",modelName:"@Json",defaultVal:""},{propertyName:"uri",modelName:"@Uri",defaultVal:""},{propertyName:"authenticationInfo",modelName:"AuthenticationInfo",from:r.JsonAuthenticationInfo.from,toJsonObject:r.JsonAuthenticationInfo.toJson},{propertyName:"headers",modelName:"Headers",array:!0},{propertyName:"queryParameters",modelName:"QueryParameters",array:!0},{propertyName:"pathParameters",modelName:"PathParameters",array:!0}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSchemaProvider=void 0,r(3)),s=r(1),l=r(11),c=r(137),r=(i=s.Disposable,n(d,i),d.prototype.reset=function(){this._jsonSchemaPromise=null},d.prototype.mapToDataMemberContract=function(e){return a.map(e||[],function(e){return{name:e.name(),displayName:e.displayName||e.name(),isSelected:e.selected(),isList:e.nodes&&0<e.nodes.length,specifics:"table",dragData:{noDragable:!1}}})},d.prototype.getSchemaByPath=function(t,e){if(t.fullPath){for(var r=e.nodes,o=0;o<t.pathParts.length;o++){var i=(r||[]).filter(function(e){return e.name()==t.pathParts[o]})[0];if(!i)return[];r=i.nodes}return this.mapToDataMemberContract(r)}return this.mapToDataMemberContract(e.nodes)},d.prototype.getJsonSchema=function(e){return void 0===e&&(e=[]),this._jsonSchemaPromise&&"rejected"!==this._jsonSchemaPromise.state()||(this._jsonSchemaPromise=c.getJsonSchemaCallback(this._requestWrapper,this._jsonDataSource,e)),this._jsonSchemaPromise},d);function d(e,t){void 0===t&&(t=new l.RequestWrapper);var o=i.call(this)||this;return o._requestWrapper=t,o._jsonDataSource=e,o._disposables.push(o._jsonDataSource.source.sourceType.subscribe(function(){o._jsonSchemaPromise=null})),o.getItems=function(t){var r=a.Deferred();return(o._jsonSchema?a.Deferred().resolve(o._jsonSchema).promise():o.getJsonSchema()).done(function(e){o._jsonSchema=e;e=o.getSchemaByPath(t,e);r.resolve(e)}).fail(r.reject),r.promise()},o}t.JsonSchemaProvider=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._resetGetJsonSchemaCallback=t._setGetJsonSchemaCallback=t.getJsonSchemaCallback=void 0;function o(e,t,r){void 0===r&&(r=[]);var o=i.Deferred();return e.getJsonSchema(t,r).done(function(e){try{var t=JSON.parse(e.jsonSchemaJSON),r=new n.JsonSchemaRootNode(t);o.resolve(r)}finally{"pending"===o.state()&&o.reject()}}).fail(function(e){a.ShowMessage(s.formatUnicorn(l.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),a.getErrorMessage(e))),o.reject()}),o.promise()}var i=r(3),n=r(62),a=r(0),s=r(0),l=r(1);t.getJsonSchemaCallback=o,t._setGetJsonSchemaCallback=function(e){t.getJsonSchemaCallback=e},t._resetGetJsonSchemaCallback=function(){t.getJsonSchemaCallback=o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionOptions=void 0;var o=r(2),i=r(1),n=r(1),a=[{propertyName:"closeConnection",modelName:"@CloseConnection",from:i.parseBool},{propertyName:"commandTimeout",modelName:"@DbCommandTimeout",from:function(e){e=parseInt(e);return isNaN(e)&&(e=null),o.observable(e)},defaultVal:null}];function s(e,t){this.closeConnection=o.observable(!0),this.commandTimeout=o.observable(null),(t=t||new n.ModelSerializer).deserialize(this,e)}s.prototype.getInfo=function(){return a},t.ConnectionOptions=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expressionFunctions=void 0;r=r(8);t.expressionFunctions=r.insertInFunctionDisplay({String:{CreateTable:[{paramCount:1,text:"CreateTable(, )",displayName:"CreateTable(Column1, ..., ColumnN)",descriptionStringId:"ExpressionEditorStringId.Function_CreateTable"}]}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customQuerySerializationsInfo=void 0,t.customQuerySerializationsInfo=[{propertyName:"type",modelName:"@Type"},{propertyName:"name",modelName:"@Name"},{propertyName:"sqlString",modelName:"Sql",defaultVal:""},{propertyName:"parameters",modelName:"Parameters",array:!0},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.masterDetailRelationSerializationsInfo=void 0,t.masterDetailRelationSerializationsInfo=[{propertyName:"masterQuery",modelName:"@Master"},{propertyName:"detailQuery",modelName:"@Detail"},{propertyName:"_customName",modelName:"@Name"},{propertyName:"keyColumns",modelName:"KeyColumns",array:!0,info:[{propertyName:"masterColumn",modelName:"@Master"},{propertyName:"detailColumn",modelName:"@Detail"},{propertyName:"itemType",modelName:"@ItemType"}]},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SqlDataConnection=void 0;var o=r(2),i=r(1),r=r(1);function n(e,t){this.name=o.observable(),this.parameteres=o.observable(),this.fromAppConfig=o.observable(!0),(t=t||new i.ModelSerializer).deserialize(this,e)}n.from=function(e,t){return new n(e,t)},n.toJson=function(e,t,r){return t.serialize(e,a,r)},n.prototype.getInfo=function(){return a},t.SqlDataConnection=n;var a=[{propertyName:"name",modelName:"@Name"},{propertyName:"parameteres",modelName:"Parameters"},{propertyName:"fromAppConfig",modelName:"@FromAppConfig",defaultVal:!1,from:r.parseBool}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableQuerySerializationsInfo=void 0,t.tableQuerySerializationsInfo=[{propertyName:"type",modelName:"@Type"},{propertyName:"name",modelName:"@Name"},{propertyName:"parameters",modelName:"Parameters",array:!0},{propertyName:"_tablesObject",modelName:"Tables",info:[{propertyName:"tables",modelName:"SelectedTables",array:!0,info:[{propertyName:"name",modelName:"@Name"},{propertyName:"alias",modelName:"@Alias"}]}]},{propertyName:"filterString",modelName:"Filter",defaultVal:""},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storedProcQuerySerializationsInfo=void 0,t.storedProcQuerySerializationsInfo=[{propertyName:"type",modelName:"@Type"},{propertyName:"name",modelName:"@Name"},{propertyName:"procName",modelName:"ProcName"},{propertyName:"parameters",modelName:"Parameters",array:!0},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableDataFederationDataSource=void 0,r(2)),s=r(1),r=r(1),r=(i=r.Disposable,n(l,i),Object.defineProperty(l.prototype,"_currentDataSources",{get:function(){var e=[];return this.dataSource&&this.dataSource.serializableSourceMap().reduce(function(e,t){return-1===e.indexOf(t.dataSource())&&e.push(t.dataSource()),e},e),e},enumerable:!1,configurable:!0}),l.prototype._collectDependentDataSources=function(t,r){var o=this;t.serializableSourceMap&&t.serializableSourceMap().forEach(function(e){return o._collectDependentDataSources(e.dataSource(),r)}),r.filter(function(e){return a.unwrap(e.name)===a.unwrap(t.name)})[0]||r.push(t)},l.prototype.dispose=function(){this.dataSource=null,this.dataSources=null},l.prototype.getInfo=function(){return[{propertyName:"dataSources",modelName:"dataSources",array:!0},{propertyName:"dataSource",modelName:"dataSource"}]},l.prototype.collectDependentDataSources=function(){var t=this,r=[];return this._currentDataSources.forEach(function(e){return t._collectDependentDataSources(e,r)}),r},l.prototype.serialize=function(){var e=new l(null),t=(e.dataSource=this.dataSource,e.dataSources(this.collectDependentDataSources()),this.serializer.serialize(e));return e.dispose(),t},l.prototype.getSerializableFederationDataSourceInfo=function(){var t=this.serialize();return{dataSource:JSON.stringify(t.dataSource),dataSources:Object.keys(t.dataSources).map(function(e){return JSON.stringify(t.dataSources[e])})}},l);function l(e,t){var r=i.call(this)||this;return r.dataSources=a.observableArray([]),r.serializer=t||new s.ModelSerializer,e&&(r.dataSource=e,r.dataSources(r._currentDataSources)),r}t.SerializableDataFederationDataSource=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchemaFederationDataSourceProvider=void 0,r(3)),s=r(1),l=r(1),c=r(85),r=(i=s.Disposable,n(d,i),d.prototype.getDbSchema=function(){var t=a.Deferred();return this._rootItems.length?t.resolve(this._rootItems):this.getItems(new l.PathRequest("")).done(function(e){t.resolve(e)}),t.promise()},d.prototype.getDbTable=function(t,e){var r=a.Deferred();return this.getItems(new l.PathRequest(e)).done(function(e){e=e.map(function(e){return{Name:e.displayName||e.name}});r.resolve(new c.DBTable({Name:t,columns:e}))}),r.promise()},d.prototype.dispose=function(){i.prototype.dispose.call(this),this.getItems=null},d);function d(e){var t=i.call(this)||this;return t._rootItems=[],t.getItems=e.getItems,t}t.DBSchemaFederationDataSourceProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseObjectDataSourceTypesPage=t.ChooseObjectDataSourceTypesPage=void 0,r(2)),s=r(3),l=r(11),c=r(103),d=r(104),u=r(26),p=r(64),f=r(5),m=r(1),r=r(9),y=(i=r.WizardPageBase,n(h,i),h.prototype.canNext=function(){return!!this._selectedTypeName},h.prototype.canFinish=function(){return!1},h.prototype.commit=function(){return s.Deferred().resolve({selectedType:this._selectedTypeName,selectedObjectType:this._chooseObjectType.selectedType(),ctor:this._chooseObjectType.selectedCtor()}).promise()},h.prototype.initialize=function(e){var t=this;return this._objectDataSource.setState(e),this._provider.getObjectTypeDescriptions(e.context).done(function(e){e.types.forEach(function(e){return e.members.splice(0,0,p.ObjectDataMember.empty())}),t._types(e.types||[]),0<e.types.length&&t._chooseObjectType.selectedPath(e.types[0].name)}),s.Deferred().resolve().promise()},Object.defineProperty(h.prototype,"_selectedTypeName",{get:function(){return this._chooseObjectType.selectedType()?this._chooseObjectType.selectedType().name:null},enumerable:!1,configurable:!0}),h);function h(e){void 0===e&&(e=new l.RequestWrapper);var t=i.call(this)||this;return t._requestWrapper=e,t._objectDataSource=new u.ObjectDataSource,t._types=a.observableArray([]),t._disposables.push(t._provider=new c.ObjectSchemaProvider(t._requestWrapper),t._chooseObjectType=new d.ChooseObjectTypes(t._types,t._provider)),t}t.ChooseObjectDataSourceTypesPage=y,t._registerChooseObjectDataSourceTypesPage=function(e,t){e.registerMetadata(f.ObjectDataSourceWizardPageId.ChooseTypesPage,{setState:function(e,t){t.selectedType=e.selectedType,t.selectedObjectType=e.selectedObjectType,t.ctor=e.ctor},getState:function(e){return e.objectDataSourceWizard},resetState:function(e,t){e.selectedType=t.selectedType,e.selectedObjectType=t.selectedObjectType,e.ctor=t.ctor},create:function(){return new y(t.requestWrapper)},description:m.getLocalization("Choose the type and its constructor.","AnalyticsCoreStringId.ObjectDSWizard_ChooseType_Description"),template:"dxrd-page-objectdatasource-types"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerChooseObjectDataSourceDataMembersPage=t.ChooseObjectDataSourceDataMembersPage=void 0,r(2)),s=r(3),l=r(11),c=r(105),d=r(26),u=r(5),p=r(1),r=r(9),f=(i=r.WizardPageBase,n(m,i),m.prototype.initialize=function(e){return this._objectDataSource.setState(e),this._type(e.selectedObjectType),this._ctor(e.ctor),s.Deferred().resolve().promise()},m.prototype.canNext=function(){return!!this._needParametersPage},m.prototype.canFinish=function(){return!this._needParametersPage},m.prototype.commit=function(){return s.Deferred().resolve({selectedType:this._type().name,ctor:this._ctor(),dataMember:!this._selectedDataMember||this._selectedDataMember.isEntireObject()?void 0:this._selectedDataMember}).promise()},Object.defineProperty(m.prototype,"_selectedDataMember",{get:function(){var e=this._chooseObjectDataMember.selectedDataMembers();return e?e[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"_needParametersPage",{get:function(){return!!this._selectedDataMember&&0<this._selectedDataMember.parameters.length||!!this._ctor()&&0<this._ctor().parameters.length},enumerable:!1,configurable:!0}),m);function m(e){void 0===e&&(e=new l.RequestWrapper);var t=i.call(this)||this;return t._requestWrapper=e,t._objectDataSource=new d.ObjectDataSource,t._type=a.observable(),t._ctor=a.observable(),t._disposables.push(t._chooseObjectDataMember=new c.ChooseObjectDataMembers(t._type,t._ctor)),t}t.ChooseObjectDataSourceDataMembersPage=f,t._registerChooseObjectDataSourceDataMembersPage=function(e,t){e.registerMetadata(u.ObjectDataSourceWizardPageId.ChooseDataMembersPage,{setState:function(e,t){t.selectedType=e.selectedType,t.ctor=e.ctor,t.dataMember=e.dataMember},getState:function(e){return e.objectDataSourceWizard},resetState:function(e,t){e.dataMember=t.dataMember},create:function(){return new f(t.requestWrapper)},description:p.getLocalization("Choose the entire object or a data member to bind.","AnalyticsCoreStringId.ObjectDSWizard_ChooseDataMember_Description"),template:"dxrd-page-objectdatasource-datamembers"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ChooseAvailableItemPage=void 0,r(2)),s=r(3),l=r(10),c=r(1),d=r(9),u=r(14),r=(i=d.WizardPageBase,n(p,i),p.prototype.canNext=function(){return 0!==this.selectedItems().length||this.selectedOperation().createNew},p.prototype.initialize=function(e){e=this._getSelectedItem(e);return this.selectedItems(e?[e]:[]),s.Deferred().resolve(this).promise()},p.prototype._displayExpr=function(e){return e.description||e.name},p.prototype._getSelectedItem=function(e){return this.items()[0]},p.prototype.onDblClick=function(){this[u.__nextActionFunctionName]&&this[u.__nextActionFunctionName]()},Object.defineProperty(p.prototype,"createNewOperationText",{get:function(){return c.getLocalization("No, I'd like to create a new data source","AnalyticsCoreStringId.Wizard_CreateNewDataSource")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"existingOperationText",{get:function(){return c.getLocalization("Yes, let me choose an existing data source from the list","AnalyticsCoreStringId.Wizard_ChooseDataSourceFromList")},enumerable:!1,configurable:!0}),p);function p(e,t){void 0===t&&(t=!0);var r=i.call(this)||this;return r.items=e,r.selectedItems=a.observableArray([]),r.operations=[{text:r.existingOperationText,createNew:!1},{text:r.createNewOperationText,createNew:!0}],r.selectedOperation=a.observable(r.operations[0]),r._createNew=a.pureComputed(function(){return r.selectedOperation().createNew}),r.canCreateNew=a.observable(t),(e=r._disposables).push.apply(e,l.subscribeProperties([r.selectedOperation,r.selectedItems],function(){return r._onChange()})),r}t.ChooseAvailableItemPage=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifyJsonConnectionPage=t.SpecifyJsonConnectionPage=void 0,r(3)),s=r(68),l=r(11),c=r(50),d=r(5),u=r(1),p=(n=s.ChooseJsonConnectionPage,i(f,n),f.prototype.commit=function(){var t=a.Deferred(),e=this._createNew()?this._specifySourceData.commit():n.prototype.commit.call(this);return e.done(function(e){t.resolve(e)}),t.promise()},f.prototype.canNext=function(){return this._createNew()?this._specifySourceData.canNext():n.prototype.canNext.call(this)},f.prototype.initialize=function(e){var t=this,r=a.Deferred();return n.prototype.initialize.call(this,e).done(function(){t._specifySourceData.initialize(e).done(function(){r.resolve(t)})}),r.promise()},f);function f(e,t,r,o){void 0===o&&(o=new l.RequestWrapper);var i=n.call(this,e,t)||this;return i._requestWrapper=o,i._disposables.push(i._specifySourceData=new c.ChooseJsonSourcePage(o,r)),i._specifySourceData.onChange(function(){return i._onChange()}),i}t.SpecifyJsonConnectionPage=p,t._registerSpecifyJsonConnectionPage=function(e,t,r,o){e.registerMetadata(d.JsonDataSourceWizardPageId.SpecifyJsonConnectionPage,{create:function(){return new p(t,r,o&&o())},description:r?u.getLocalization("Do you want to use an existing data connection?","AnalyticsCoreStringId.JsonDSWizard_ChooseConnection_Description"):u.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection"),getState:function(e){return e.jsonDataSourceWizard},setState:function(e,t){t.connectionName=e.connectionName,t.jsonSource=e.jsonSource,t.newConnectionName=e.newConnectionName},resetState:function(e,t){e.connectionName=t.connectionName,e.jsonSource=t.jsonSource,e.newConnectionName=t.newConnectionName},template:"dxrd-page-specify-connection"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__spreadArray||function(e,t){for(var r=0,o=t.length,i=e.length;r<o;r++,i++)e[i]=t[r];return e},l=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonDataSourceJsonSourcePageUriSettings=t.JsonDataSourceJsonSourcePageStringSettings=t.JsonDataSourceJsonSourcePageSettingsBase=void 0,r(2)),c=r(3),d=r(1),u=r(1),p=r(152),f=r(6),m=r(63),y=r(106),h=r(89),g=r(6),_=r(0),b=r(90),v=r(10),S=r(0),r=(i=u.Disposable,n(P,i),P.prototype.dispose=function(){this._validationSummary&&this._validationSummary.dispose(),this._validationGroup&&this._validationGroup.dispose(),this._validationSummary=null,this._validationGroup=null,i.prototype.dispose.call(this)},P.prototype._onValidationGroupInitialized=function(e){this._validationGroup=e.component},P.prototype._onValidationGroupDisposing=function(e){this._validationGroup=null},P.prototype._onValidationSummaryInitialized=function(e){this._validationSummary=e.component},P.prototype._onValidationSummaryDisposing=function(e){this._validationSummary=null},P.prototype._repaintSummary=function(){this._validationSummary&&this._validationSummary.repaint()},P.prototype._validate=function(){this._validationSummary&&this._validationGroup&&this._validationGroup.validate()},P);function P(){var t=i.call(this)||this;return t._validationGroup=null,t._validationSummary=null,t.validationGroup={onInitialized:function(e){return t._onValidationGroupInitialized(e)},onDisposing:function(e){return t._onValidationGroupDisposing(e)},validate:function(){return t._validate()}},t.validationSummary={onInitialized:function(e){return t._onValidationSummaryInitialized(e)},onDisposing:function(e){return t._onValidationSummaryDisposing(e)}},t._disposables.push(t.grid=new f.ObjectProperties(l.observable(t))),t}t.JsonDataSourceJsonSourcePageSettingsBase=r;n(C,x=r),C.prototype.onChange=function(t){var r=this,o=null;this._disposables.push(this.stringSource.subscribe(function(e){t(),clearTimeout(o),o=setTimeout(function(){return r._validate()},1)}))},C.prototype._isJsonSourceValid=function(e){if(!e)return!1;var t=!0;try{JSON.parse(e)}catch(e){t=!1}return t},C.prototype.isEmpty=function(){return!this.stringSource()},C.prototype.reset=function(){this.stringSource("")},C.prototype.setValue=function(e){this.stringSource(e.source.json())},C.prototype.getInfo=function(){return[{propertyName:"stringSource",defaultVal:"",displayName:"JSON String",editor:{header:"dx-jsonwizard-jsonstring-editor",editorType:y.JsonStringEditor,custom:"dx-property-json-string-editor"}}]},C.prototype.applySettings=function(e){e.source.uri(void 0),e.source.json(this.stringSource()),e.source.authenticationInfo=new h.JsonAuthenticationInfo({}),e.source.headers([]),e.source.queryParameters([]),e.source.pathParameters([])};var x,u=C;function C(){var r=x.call(this)||this;return r._validatorsReady=l.observable(!1),r.isValid=l.pureComputed(function(){var e=r._isJsonSourceValid(r.stringSource()),t=r.aceEditorHasErrors();return e&&!t}),r.validationGroup=null,r.validationSummary=null,r.stringSource=l.observable(""),r.aceEditorHasErrors=l.observable(!1),r.cssClass={"dxrd-wizard-json-string-source-grid":!0},r._disposables.push(r.grid=new f.ObjectProperties(l.observable(r))),r}t.JsonDataSourceJsonSourcePageStringSettings=u;n(w,T=r),w.prototype._validateUriSource=function(){var r=this,o=d.getLocalization("Invalid URI.","AnalyticsCoreStringId.ReportDesigner_Wizard_JsonSource_UriValidationError"),i=d.getLocalization("Web Service Endpoint (URI):","DataAccessUIStringId.WizardPageChooseJsonSource_URI"),n=(this._isUriValid(!1),this._lastValidateDeferred&&this._lastValidateDeferred.reject(),c.Deferred());this._lastValidateDeferred=n;try{var e=new m.JsonDataSource({}),t=this._getSerializedUriSource(e),a=(this._lastValidatedJsonSourceJSON=t,function(e){var t;n.state&&"rejected"===n.state()||(r._isUriValid(e.isUriValid),t=y.getLocalizedValidationErrorMessage((e.isUriValid?"":e&&e.faultMessage)||o,i),n.resolve({isUriValid:e.isUriValid,faultMessage:t}))});this._requestWrapper.validateJsonUri(e).done(a).fail(function(e){(e=void 0===e?{}:e).isValid=!1,a(e)})}catch(e){this._isUriValid(!1)}return n.promise()},w.prototype._isCollectionValid=function(e){return!this[e]().length||this[e]().every(function(e){return e.name()})},w.prototype._isParametersValid=function(){return this._isCollectionValid("parameters")},w.prototype._isBasicHttpAuthValid=function(){return!this.basicHttpAuth.password()||!!this.basicHttpAuth.userName()},w.prototype._getSourceUriInfo=function(){var t=this,e={propertyName:"sourceUri",displayName:"Web Service Endpoint (URI):",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_URI",defaultVal:"",editor:g.editorTemplates.getEditor("text"),validatorOptions:null,isRequired:!0,editorOptions:{elementAttr:{title:this.sourceUri}}},r=this;return e.validatorOptions={onInitialized:function(e){t._sourceUriValidatorsReady(!0)},onDisposed:function(){t._sourceUriValidatorsReady(!1)},validationRules:[{type:"custom",assignValueFirst:!0,isDeferred:l.pureComputed(function(){return t._noEmptyProperties()}),get message(){return r._lastValidationMessage()},validationCallback:this._sourceUriValidationCallback}]},e},w.prototype._getBasicHttpAuthInfo=function(){var t=this,e={propertyName:"userName",displayName:"Username:",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_UsernameText",editor:g.editorTemplates.getEditor("text"),validatorOptions:void 0},r={propertyName:"basicHttpAuth",displayName:"Basic HTTP Authentication",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_BasicHttpAuthText",info:[e,S.createPasswordSerializationInfo({propertyName:"password",displayName:"Password:",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_PasswordText"},!1)],editor:g.editorTemplates.getEditor("objecteditor")};return e.validatorOptions={onInitialized:function(e){e=e&&e.component;t._authNameValidatorInstance&&t._authNameValidatorInstance!=e&&t._authNameValidatorInstance.dispose(),t._authNameValidatorInstance=e,t._basicAuthValidatorsReady(!0)},onDisposed:function(){t._authNameValidatorInstance=null},validationRules:[{type:"custom",reevaluate:!0,assignValueFirst:!0,get message(){return y.getLocalizedValidationErrorMessage(null,d.getLocalization(r.displayName,r.localizationId),d.getLocalization(e.displayName,e.localizationId))},validationCallback:function(e){return t._isBasicHttpAuthValid()}}]},r},w.prototype._getParametersInfo=function(){var t=this,e={propertyName:"parameters",displayName:"Parameters",localizationId:"AnalyticsCoreStringId.QueryBuilder_Parameters",array:!0,addHandler:function(){var e=_.getUniqueNameForNamedObjectsArray(t.parameters(),"parameter");return b.JsonParameter.from({"@Name":e})},editor:g.editorTemplates.getEditor("commonCollection"),editorOptions:null,template:"#dx-jsonwizard-parametercollection"};return e.editorOptions={itemsProvider:this._itemsProvider,nameValidationRules:[{type:"required",get message(){return y.getLocalizedValidationErrorMessage(null,d.getLocalization(e.displayName,e.localizationId),this._collectionItemNamePlaceholder)}}]},e},w.prototype._getResultUriInfo=function(){return{propertyName:"resultUri",displayName:"Resulting URI:",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_ResultingUri",defaultVal:"",editor:g.editorTemplates.getEditor("text"),editorOptions:{readOnly:!0,elementAttr:{title:this.resultUri}}}},w.prototype._getResultUri=function(){if(!this.sourceUri()||!this._isUriValid()||!this._isParametersValid())return null;if(this.sourceUri()&&0===this.parameters().length)return this.sourceUri();var e=this.sourceUri().split("?"),t=(e[0],e[1]),e=this._appendPathSegmentsToUri(e[0]);return this._appendQuerySegmentsToUri(e,t)},w.prototype._appendPathSegmentsToUri=function(t){return this.parameters().filter(function(e){return"PathParameter"===e.itemType()}).map(function(e){return"{"+e.name()+"}"}).forEach(function(e){t=t.replace(/[\/]+$/g,"")+"/"+e.replace(/^[\/]+/g,"")}),t},w.prototype._appendQuerySegmentsToUri=function(e,t){var r=t||"";return this.parameters().filter(function(e){return"QueryParameter"===e.itemType()}).map(function(e){return e.name()+"={?}"}).forEach(function(e){r&&(r+="&"),r+=e}),0<r.length&&(e+="?"+r),e},w.prototype._onValidationSummaryInitialized=function(e){var t=this;T.prototype._onValidationSummaryInitialized.call(this,e),this._isInitUri=!0,setTimeout(function(){t._validate()},1)},w.prototype._applyParametersToSource=function(t){var r=this.parameters().reduce(function(e,t){var r;return a(a({},e),((r={})[t.itemType()]=s(s([],e[t.itemType()]||[]),[t]),r))},{});["PathParameter","QueryParameter","Header"].forEach(function(e){r[e]&&t.source[p.parameterTypeToPropertyMap[e]](r[e])})},w.prototype.applySettings=function(e){e.source.uri(this.sourceUri()),e.source.json(void 0),e.source.authenticationInfo.password(this.basicHttpAuth.password()),e.source.authenticationInfo.userName(this.basicHttpAuth.userName()),this._applyParametersToSource(e)},w.prototype.getInfo=function(){return[this._getSourceUriInfo(),this._getBasicHttpAuthInfo(),this._getParametersInfo(),this._getResultUriInfo()]},w.prototype.reset=function(){this.sourceUri(""),this.basicHttpAuth.password(""),this.basicHttpAuth.userName(""),this.parameters([])},w.prototype.setValue=function(e){this.sourceUri(e.source.uri()),this.basicHttpAuth.userName(e.source.authenticationInfo.userName()),this.basicHttpAuth.password(e.source.authenticationInfo.password());e=[].concat.apply([],[e.source.pathParameters(),e.source.queryParameters(),e.source.headers()]);this.parameters(e)},w.prototype.dispose=function(){this._authNameValidatorInstance&&this._authNameValidatorInstance.dispose(),this._lastValidateDeferred&&(this._lastValidateDeferred.reject(),this._lastValidateDeferred=null),T.prototype.dispose.call(this),this.disposeObservableArray(this.parameters)},w.prototype.onChange=function(e){function r(){e(),clearTimeout(i),i=setTimeout(function(){return o._validate()},1)}var t,o=this,i=null;(t=this._disposables).push.apply(t,v.subscribeProperties([this.sourceUri,this.basicHttpAuth.password,this.basicHttpAuth.userName,this.resultUri],r)),this._disposables.push(v.subscribeArray(this.parameters,function(e){var t;(t=e._disposables).push.apply(t,v.subscribeProperties([e.name,e.itemType,e.value],r))},r))},w.prototype.isEmpty=function(){return!this.sourceUri()},w.prototype._validate=function(){this._validationSummary&&this._validationGroup&&(this._validatorsReady()?(this._validationGroup.validate(),this._validationRequested(!1)):this._validationRequested(!0))};var T,u=w;function w(e,t){var o=T.call(this)||this;return o._requestWrapper=e,o._itemsProvider=t,o._isUriValid=l.observable(!1),o._lastValidatedJsonSourceJSON="",o._authNameValidatorInstance=null,o._isInitUri=!0,o._collectionItemNamePlaceholder=d.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder"),o._lastValidateDeferred=null,o._sourceUriValidatorsReady=l.observable(!0),o._basicAuthValidatorsReady=l.observable(!1),o._validationRequested=l.observable(!1).extend({deferred:!0}),o._noEmptyProperties=l.pureComputed(function(){var e=o._isBasicHttpAuthValid(),t=o._isParametersValid(),r=!!o.sourceUri();return e&&t&&r}),o._lastValidationMessage=l.observable(),o._getSerializedUriSource=function(e){return void 0===e&&(e=new m.JsonDataSource({})),o.applySettings(e),JSON.stringify(e.source.serialize(!0))},o._sourceUriValidationCallback=function(t){if(!o.sourceUri())return o._isInitUri?!(o._isInitUri=!1):(t.rule.message=y.getLocalizedValidationErrorMessage(null,d.getLocalization("Web Service Endpoint (URI):","DataAccessUIStringId.WizardPageChooseJsonSource_URI")),!1);var r=!1;return o._isInitUri=!1,o._getSerializedUriSource()==o._lastValidatedJsonSourceJSON?!o._lastValidationMessage():(o._lastValidationMessage()||o._lastValidationMessage(d.getLocalization("Validation...","AnalyticsCoreStringId.Validation")),o._validateUriSource().done(function(e){r=t.rule.isValid=e.isUriValid,e.faultMessage&&(t.rule.message=e.faultMessage),o._lastValidationMessage(r?null:e.faultMessage),t.validator.validate(),setTimeout(function(){return o._repaintSummary()},1)}),r)},o.isValid=l.pureComputed(function(){var e=o._noEmptyProperties(),t=o._isUriValid();return e&&t}),o._validatorsReady=l.pureComputed({read:function(){var e=o._sourceUriValidatorsReady(),t=!o.basicHttpAuth.password()&&!o.basicHttpAuth.userName(),r=o._basicAuthValidatorsReady();return e&&(r||t)},write:function(e){o._basicAuthValidatorsReady(e)}}),o.sourceUri=l.observable(""),o.basicHttpAuth={password:l.observable(""),userName:l.observable("")},o.parameters=l.observableArray([]),o._disposables.push(o.resultUri=l.pureComputed(function(){return o._getResultUri()})),o._disposables.push(o.grid=new f.ObjectProperties(l.observable(o))),o._disposables.push(l.computed(function(){var e=o._validatorsReady(),t=o._validationRequested();e&&t&&o._validate()})),o._disposables.push(o._validatorsReady),o}t.JsonDataSourceJsonSourcePageUriSettings=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterTypeToPropertyMap=void 0,t.parameterTypeToPropertyMap={PathParameter:"pathParameters",QueryParameter:"queryParameters",Header:"headers"}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.JsonTreeNodeItemsProvider=void 0,r(107)),r=(i=r.TreeNodeItemsProvider,n(a,i),a.prototype._getDefaultTreeNodeCheckState=function(e){return e.isSelected},a.prototype.getNodeByPath=function(t){var e=this._rootItems().filter(function(e){return e.path===(t.pathParts||[])[0]})[0];if(e){for(var r=e.path,o=1;o<t.pathParts.length;o++){if(!e)return;r+="."+t.pathParts[o],e=e.children().filter(function(e){return e.path==r})[0]}return e}},a);function a(e,t,r,o){return i.call(this,e,t,r,o)||this}t.JsonTreeNodeItemsProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerConfigureQueryPage=t.ConfigureQueryPage=void 0,r(2)),s=r(3),l=r(7),c=r(12),d=r(108),u=r(155),p=r(0),f=r(1),m=r(109),y=r(32),h=r(110),g=r(43),_=r(44),b=r(40),v=r(99),S=r(5),P=r(0),x=r(0),C=r(9),T=r(14),w=(i=C.WizardPageBase,n(O,i),O.prototype.canNext=function(){return!this.queryControl().isNextDisabled()},O.prototype.canFinish=function(){return!this.queryControl().isFinishDisabled()||!this.queryControl().isNextDisabled()},O.prototype.runQueryBuilder=function(){var e=this.queryControl().getQuery();e&&e.type()===l.SqlQueryType.tableQuery?(e.name(this.queryName()),this.popupQueryBuilder.show(e,this._dataSource())):this.popupQueryBuilder.show(new g.TableQuery({"@Name":this.queryName()},this._dataSource()),this._dataSource())},O.prototype.localizeQueryType=function(e){return O.QUERY_TEXT===e?f.getLocalization(O.QUERY_TEXT,"DataAccessUIStringId.WizardPageConfigureQuery_Query"):f.getLocalization(O.SP_TEXT,"DataAccessUIStringId.WizardPageConfigureQuery_StoredProcedure")},O.prototype.initialize=function(e){return this._dataSourceWrapper=c._restoreSqlDataSourceFromState(e,this._options.requestWrapper),this._proceduresList.setQuery(new _.StoredProcQuery({},this._dataSource())),this._selectStatementControl.setQuery(new b.CustomSqlQuery({},this._dataSource())),this.popupQueryBuilder.isVisible(!1),this._dataSourceWrapper.sqlQuery?(this.initialName=this._dataSourceWrapper.sqlQuery.name(),this.queryName(this.initialName),this.selectedQueryType(this._dataSourceWrapper.sqlQuery.type()===l.SqlQueryType.storedProcQuery?O.SP_TEXT:O.QUERY_TEXT),this.queryControl().setQuery(this._dataSourceWrapper.sqlQuery)):(this.selectedQueryType(O.QUERY_TEXT),s.Deferred().resolve().promise())},O.prototype.commit=function(){var e,t=this.queryControl().getQuery();return t&&((e=this.queryName()||this.initialName)&&t.name(e),t.name()&&this._dataSourceWrapper.sqlQuery&&this._dataSourceWrapper.sqlQuery.name()===t.name()||t.name(v.generateQueryUniqueName(this._dataSource().queries(),t)),this._dataSourceWrapper.sqlQuery=t),s.Deferred().resolve({queryName:this._dataSourceWrapper.sqlQuery.name(),sqlDataSourceJSON:this._dataSourceWrapper.save()}).promise()},O.QUERY_TEXT="Query",O.SP_TEXT="Stored Procedure",O);function O(e){var r=i.call(this)||this;return r._options=e,r._connection=function(){return r._dataSource().connection},r._dataSource=function(){return r._dataSourceWrapper&&r._dataSourceWrapper.sqlDataSource},r.queryNameCaption=function(){return f.getLocalization("Query Name","AnalyticsCoreStringId.SqlDSWizard_QueryName")+":"},r.queryControl=a.observable(),r.runQueryBuilderBtnText=a.pureComputed(function(){return r._selectStatementControl.sqlString()&&r._selectStatementControl.getQuery().type()!==l.SqlQueryType.tableQuery?f.getLocalization("Create New Query...","AnalyticsCoreStringId.SqlDSWizard_CreateNewQuery"):f.getLocalization("Run Query Builder...","DataAccessUIStringId.Button_QueryBuilder")}).extend({deferred:!0}),r.placeholder=function(){var e=r.queryControl(),e=e&&e.getQuery(),e=r.initialName||e&&e.generateName();return e&&p.formatUnicorn(f.getLocalization("Type custom query name (current name: {0})","AnalyticsCoreStringId.SqlDSWizard_QueryNamePlaceholder"),e)},r.queryName=a.observable(""),r.queryTypeItems=[O.QUERY_TEXT,O.SP_TEXT],r.selectedQueryType=a.observable(),r.initialName="",r._proceduresList=new d.StoredProceduresQueryControl,r._disposables.push(r._selectStatementControl=new u.SelectStatementQueryControl(new m.SelectQuerySqlTextProvider(y.wrapGetSelectStatement(r._options.callbacks.selectStatement),r._connection),r._options.disableCustomSql)),r._disposables.push(r.selectedQueryType.subscribe(function(e){e===O.SP_TEXT?(r[T.__loadingStateFunctionName]&&r[T.__loadingStateFunctionName](!0),r._dataSource().dbSchemaProvider.getDbStoredProcedures().done(function(e){r._proceduresList.storedProcedures([]),r._proceduresList.storedProcedures(e)}).always(function(e){return r[T.__loadingStateFunctionName]&&r[T.__loadingStateFunctionName](!1)}),r.queryControl(r._proceduresList)):r.queryControl(r._selectStatementControl)})),r.selectedQueryType(O.QUERY_TEXT),r.popupQueryBuilder=new h.QueryBuilderPopup(function(e,t){return r.queryName(e.name()||e.generateName()),r._selectStatementControl.setQuery(e,t)},r._options.rtl,r._options.callbacks.customizeQBInitData),r}t.ConfigureQueryPage=w,t._registerConfigureQueryPage=function(e,t){e.registerMetadata(S.SqlDataSourceWizardPageId.ConfigureQueryPage,{create:function(){return new w(t)},setState:function(e,t){t.queryName=e.queryName,t.sqlDataSourceJSON=e.sqlDataSourceJSON},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.sqlDataSourceJSON=t.sqlDataSourceJSON,e.queryName=t.queryName},template:"dxrd-wizard-create-query-page",description:P.isCustomizedWithUpdateLocalizationMethod("Create a query or select a stored procedure")||f.getLocalization("Create a query or select a stored procedure.",x.StringId.WizardPageConfigureQuery)})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectStatementQueryControl=void 0,r(2)),s=r(3),l=r(7),c=r(1),d=r(70),u=r(1),p=r(40),f=r(0),m=r(8),r=(i=c.Disposable,n(y,i),y.prototype.setQuery=function(t,e){var r=this;return this._query()!==t&&t.type()===l.SqlQueryType.tableQuery?(e&&e(!0),this._sqlTextProvider.getQuerySqlText(t).done(function(e){e.errorMessage&&f.ShowMessage(e.errorMessage),r._tableQueryString(e.sqlSelectStatement),r._query(t)}).always(function(){e&&e(!1)})):(this._query(t),s.Deferred().resolve().promise())},y.prototype.getQuery=function(){return this._query()},Object.defineProperty(y.prototype,"runQueryBuilderDisabled",{get:function(){return!1},enumerable:!1,configurable:!0}),y);function y(e,t){var r=i.call(this)||this;return r._tableQueryString=a.observable(""),r._query=a.observable(),r._needToCustomizeParameters=a.pureComputed(function(){return r._query()&&(r._query().type()===l.SqlQueryType.customSqlQuery||0<r._query().parameters().length)}),r.template="dxrd-select-control",r.aceOptions=d.createDefaultSQLAceOptions(),r.additionalOptions=d.createDefaultSQLAdditionalOptions(function(e){r.sqlString(e)}),r.aceAvailable=m.aceAvailable(),r.languageHelper=d.createDefaultSQLLanguageHelper(),r.caption=function(){return u.getLocalization("SQL string:","DataAccessUIStringId.QueryControl_SqlString")},r.sqlString=a.pureComputed({read:function(){return r._query()&&r._query().type()===l.SqlQueryType.customSqlQuery?r._query().sqlString():r._tableQueryString()},write:function(e){var t;r._query().type()!==l.SqlQueryType.customSqlQuery?((t=new p.CustomSqlQuery({"@Name":r._query().name()},r._query().parent)).parameters(r._query().parameters()),t.sqlString(e),r._query(t)):r._query().sqlString(e)}}),r.isNextDisabled=a.pureComputed(function(){return!r.sqlString()||!r._needToCustomizeParameters()}),r.isFinishDisabled=a.pureComputed(function(){return!r.sqlString()||r._needToCustomizeParameters()}),r._sqlTextProvider=e,r.disableCustomSql=function(){return t},r.aceOptions.readOnly=r.disableCustomSql(),r._disposables.push(r._needToCustomizeParameters,r.sqlString),r}t.SelectStatementQueryControl=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(232);s.default&&(s.default.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/doc_comment_highlight_rules"],function(e,t,r){function o(){for(var o="ALL|AND|ANY|BETWEEN|EXISTS|IN|LIKE|NOT|OR|SOME",i=(o+="|NULL|IS|APPLY|INNER|OUTER|LEFT|RIGHT|JOIN|CROSS","OPENDATASOURCE|OPENQUERY|OPENROWSET|OPENXML|AVG|CHECKSUM_AGG|COUNT|COUNT_BIG|GROUPING|GROUPING_ID|MAX|MIN|STDEV|STDEVP|SUM|VAR|VARP|DENSE_RANK|NTILE|RANK|ROW_NUMBER@@DATEFIRST|@@DBTS|@@LANGID|@@LANGUAGE|@@LOCK_TIMEOUT|@@MAX_CONNECTIONS|@@MAX_PRECISION|@@NESTLEVEL|@@OPTIONS|@@REMSERVER|@@SERVERNAME|@@SERVICENAME|@@SPID|@@TEXTSIZE|@@VERSION|CAST|CONVERT|PARSE|TRY_CAST|TRY_CONVERT|TRY_PARSE@@CURSOR_ROWS|@@FETCH_STATUS|CURSOR_STATUS|@@DATEFIRST|@@LANGUAGE|CURRENT_TIMESTAMP|DATEADD|DATEDIFF|DATEFROMPARTS|DATENAME|DATEPART|DATETIME2FROMPARTS|DATETIMEFROMPARTS|DATETIMEOFFSETFROMPARTS|DAY|EOMONTH|GETDATE|GETUTCDATE|ISDATE|MONTH|SET DATEFIRST|SET DATEFORMAT|SET LANGUAGE|SMALLDATETIMEFROMPARTS|SP_HELPLANGUAGE|SWITCHOFFSET|SYSDATETIME|SYSDATETIMEOFFSET|SYSUTCDATETIME|TIMEFROMPARTS|TODATETIMEOFFSET|YEAR|CHOOSE|IIF|ABS|ACOS|ASIN|ATAN|ATN2|CEILING|COS|COT|DEGREES|EXP|FLOOR|LOG|LOG10|PI|POWER|RADIANS|RAND|ROUND|SIGN|SIN|SQRT|SQUARE|TAN|@@PROCID|APPLOCK_MODE|APPLOCK_TEST|APP_NAME|ASSEMBLYPROPERTY|COLUMNPROPERTY|COL_LENGTH|COL_NAME|DATABASEPROPERTYEX|DATABASE_PRINCIPAL_ID|DB_ID|DB_NAME|FILEGROUPPROPERTY|FILEGROUP_ID|FILEGROUP_NAME|FILEPROPERTY|FILE_ID|FILE_IDEX|FILE_NAME|FULLTEXTCATALOGPROPERTY|FULLTEXTSERVICEPROPERTY|INDEXKEY_PROPERTY|INDEXPROPERTY|INDEX_COL|OBJECTPROPERTY|OBJECTPROPERTYEX|OBJECT_DEFINITION|OBJECT_ID|OBJECT_NAME|OBJECT_SCHEMA_NAME|ORIGINAL_DB_NAME|PARSENAME|SCHEMA_ID|SCHEMA_NAME|SCOPE_IDENTITY|SERVERPROPERTY|STATS_DATE|TYPEPROPERTY|TYPE_ID|TYPE_NAME|CERTENCODED|CERTPRIVATEKEY|CURRENT_USER|DATABASE_PRINCIPAL_ID|HAS_PERMS_BY_NAME|IS_MEMBER|IS_ROLEMEMBER|IS_SRVROLEMEMBER|ORIGINAL_LOGIN|PERMISSIONS|PWDCOMPARE|PWDENCRYPT|SCHEMA_ID|SCHEMA_NAME|SESSION_USER|SUSER_ID|SUSER_NAME|SUSER_SID|SUSER_SNAME|SYS.FN_BUILTIN_PERMISSIONS|SYS.FN_GET_AUDIT_FILE|SYS.FN_MY_PERMISSIONS|SYSTEM_USER|USER_ID|USER_NAME|ASCII|CHAR|CHARINDEX|CONCAT|DIFFERENCE|FORMAT|LEN|LOWER|LTRIM|NCHAR|PATINDEX|QUOTENAME|REPLACE|REPLICATE|REVERSE|RTRIM|SOUNDEX|SPACE|STR|STUFF|SUBSTRING|UNICODE|UPPER|$PARTITION|@@ERROR|@@IDENTITY|@@PACK_RECEIVED|@@ROWCOUNT|@@TRANCOUNT|BINARY_CHECKSUM|CHECKSUM|CONNECTIONPROPERTY|CONTEXT_INFO|CURRENT_REQUEST_ID|ERROR_LINE|ERROR_MESSAGE|ERROR_NUMBER|ERROR_PROCEDURE|ERROR_SEVERITY|ERROR_STATE|FORMATMESSAGE|GETANSINULL|GET_FILESTREAM_TRANSACTION_CONTEXT|HOST_ID|HOST_NAME|ISNULL|ISNUMERIC|MIN_ACTIVE_ROWVERSION|NEWID|NEWSEQUENTIALID|ROWCOUNT_BIG|XACT_STATE|@@CONNECTIONS|@@CPU_BUSY|@@IDLE|@@IO_BUSY|@@PACKET_ERRORS|@@PACK_RECEIVED|@@PACK_SENT|@@TIMETICKS|@@TOTAL_ERRORS|@@TOTAL_READ|@@TOTAL_WRITE|FN_VIRTUALFILESTATS|PATINDEX|TEXTPTR|TEXTVALID|COALESCE|NULLIF"),n="BIGINT|BINARY|BIT|CHAR|CURSOR|DATE|DATETIME|DATETIME2|DATETIMEOFFSET|DECIMAL|FLOAT|HIERARCHYID|IMAGE|INTEGER|INT|MONEY|NCHAR|NTEXT|NUMERIC|NVARCHAR|REAL|SMALLDATETIME|SMALLINT|SMALLMONEY|SQL_VARIANT|TABLE|TEXT|TIME|TIMESTAMP|TINYINT|UNIQUEIDENTIFIER|VARBINARY|VARCHAR|XML",e="sp_addextendedproc|sp_addextendedproperty|sp_addmessage|sp_addtype|sp_addumpdevice|sp_add_data_file_recover_suspect_db|sp_add_log_file_recover_suspect_db|sp_altermessage|sp_attach_db|sp_attach_single_file_db|sp_autostats|sp_bindefault|sp_bindrule|sp_bindsession|sp_certify_removable|sp_clean_db_file_free_space|sp_clean_db_free_space|sp_configure|sp_control_plan_guide|sp_createstats|sp_create_plan_guide|sp_create_plan_guide_from_handle|sp_create_removable|sp_cycle_errorlog|sp_datatype_info|sp_dbcmptlevel|sp_dbmmonitoraddmonitoring|sp_dbmmonitorchangealert|sp_dbmmonitorchangemonitoring|sp_dbmmonitordropalert|sp_dbmmonitordropmonitoring|sp_dbmmonitorhelpalert|sp_dbmmonitorhelpmonitoring|sp_dbmmonitorresults|sp_db_increased_partitions|sp_delete_backuphistory|sp_depends|sp_describe_first_result_set|sp_describe_undeclared_parameters|sp_detach_db|sp_dropdevice|sp_dropextendedproc|sp_dropextendedproperty|sp_dropmessage|sp_droptype|sp_execute|sp_executesql|sp_getapplock|sp_getbindtoken|sp_help|sp_helpconstraint|sp_helpdb|sp_helpdevice|sp_helpextendedproc|sp_helpfile|sp_helpfilegroup|sp_helpindex|sp_helplanguage|sp_helpserver|sp_helpsort|sp_helpstats|sp_helptext|sp_helptrigger|sp_indexoption|sp_invalidate_textptr|sp_lock|sp_monitor|sp_prepare|sp_prepexec|sp_prepexecrpc|sp_procoption|sp_recompile|sp_refreshview|sp_releaseapplock|sp_rename|sp_renamedb|sp_resetstatus|sp_sequence_get_range|sp_serveroption|sp_setnetname|sp_settriggerorder|sp_spaceused|sp_tableoption|sp_unbindefault|sp_unbindrule|sp_unprepare|sp_updateextendedproperty|sp_updatestats|sp_validname|sp_who|sys.sp_merge_xtp_checkpoint_files|sys.sp_xtp_bind_db_resource_pool|sys.sp_xtp_checkpoint_force_garbage_collection|sys.sp_xtp_control_proc_exec_stats|sys.sp_xtp_control_query_exec_stats|sys.sp_xtp_unbind_db_resource_pool",t="ABSOLUTE|ACTION|ADA|ADD|ADMIN|AFTER|AGGREGATE|ALIAS|ALL|ALLOCATE|ALTER|AND|ANY|ARE|ARRAY|AS|ASC|ASENSITIVE|ASSERTION|ASYMMETRIC|AT|ATOMIC|AUTHORIZATION|BACKUP|BEFORE|BEGIN|BETWEEN|BIT_LENGTH|BLOB|BOOLEAN|BOTH|BREADTH|BREAK|BROWSE|BULK|BY|CALL|CALLED|CARDINALITY|CASCADE|CASCADED|CASE|CATALOG|CHARACTER|CHARACTER_LENGTH|CHAR_LENGTH|CHECK|CHECKPOINT|CLASS|CLOB|CLOSE|CLUSTERED|COALESCE|COLLATE|COLLATION|COLLECT|COLUMN|COMMIT|COMPLETION|COMPUTE|CONDITION|CONNECT|CONNECTION|CONSTRAINT|CONSTRAINTS|CONSTRUCTOR|CONTAINS|CONTAINSTABLE|CONTINUE|CORR|CORRESPONDING|COVAR_POP|COVAR_SAMP|CREATE|CROSS|CUBE|CUME_DIST|CURRENT|CURRENT_CATALOG|CURRENT_DATE|CURRENT_DEFAULT_TRANSFORM_GROUP|CURRENT_PATH|CURRENT_ROLE|CURRENT_SCHEMA|CURRENT_TIME|CURRENT_TRANSFORM_GROUP_FOR_TYPE|CYCLE|DATA|DATABASE|DBCC|DEALLOCATE|DEC|DECLARE|DEFAULT|DEFERRABLE|DEFERRED|DELETE|DENY|DEPTH|DEREF|DESC|DESCRIBE|DESCRIPTOR|DESTROY|DESTRUCTOR|DETERMINISTIC|DIAGNOSTICS|DICTIONARY|DISCONNECT|DISK|DISTINCT|DISTRIBUTED|DOMAIN|DOUBLE|DROP|DUMP|DYNAMIC|EACH|ELEMENT|ELSE|END|END-EXEC|EQUALS|ERRLVL|ESCAPE|EVERY|EXCEPT|EXCEPTION|EXEC|EXECUTE|EXISTS|EXIT|EXTERNAL|EXTRACT|FETCH|FILE|FILLFACTOR|FILTER|FIRST|FOR|FOREIGN|FORTRAN|FOUND|FREE|FREETEXT|FREETEXTTABLE|FROM|FULL|FULLTEXTTABLE|FUNCTION|FUSION|GENERAL|GET|GLOBAL|GO|GOTO|GRANT|GROUP|HAVING|HOLD|HOLDLOCK|HOST|HOUR|IDENTITY|IDENTITYCOL|IDENTITY_INSERT|IF|IGNORE|IMMEDIATE|IN|INCLUDE|INDEX|INDICATOR|INITIALIZE|INITIALLY|INNER|INOUT|INPUT|INSENSITIVE|INSERT|INTEGER|INTERSECT|INTERSECTION|INTERVAL|INTO|IS|ISOLATION|ITERATE|JOIN|KEY|KILL|LANGUAGE|LARGE|LAST|LATERAL|LEADING|LESS|LEVEL|LIKE|LIKE_REGEX|LIMIT|LINENO|LN|LOAD|LOCAL|LOCALTIME|LOCALTIMESTAMP|LOCATOR|MAP|MATCH|MEMBER|MERGE|METHOD|MINUTE|MOD|MODIFIES|MODIFY|MODULE|MULTISET|NAMES|NATIONAL|NATURAL|NCLOB|NEW|NEXT|NO|NOCHECK|NONCLUSTERED|NONE|NORMALIZE|NOT|NULL|NULLIF|OBJECT|OCCURRENCES_REGEX|OCTET_LENGTH|OF|OFF|OFFSETS|OLD|ON|ONLY|OPEN|OPERATION|OPTION|OR|ORDER|ORDINALITY|OUT|OUTER|OUTPUT|OVER|OVERLAPS|OVERLAY|PAD|PARAMETER|PARAMETERS|PARTIAL|PARTITION|PASCAL|PATH|PERCENT|PERCENTILE_CONT|PERCENTILE_DISC|PERCENT_RANK|PIVOT|PLAN|POSITION|POSITION_REGEX|POSTFIX|PRECISION|PREFIX|PREORDER|PREPARE|PRESERVE|PRIMARY|PRINT|PRIOR|PRIVILEGES|PROC|PROCEDURE|PUBLIC|RAISERROR|RANGE|READ|READS|READTEXT|RECONFIGURE|RECURSIVE|REF|REFERENCES|REFERENCING|REGR_AVGX|REGR_AVGY|REGR_COUNT|REGR_INTERCEPT|REGR_R2|REGR_SLOPE|REGR_SXX|REGR_SXY|REGR_SYY|RELATIVE|RELEASE|REPLICATION|RESTORE|RESTRICT|RESULT|RETURN|RETURNS|REVERT|REVOKE|ROLE|ROLLBACK|ROLLUP|ROUTINE|ROW|ROWCOUNT|ROWGUIDCOL|ROWS|RULE|SAVE|SAVEPOINT|SCHEMA|SCOPE|SCROLL|SEARCH|SECOND|SECTION|SECURITYAUDIT|SELECT|SEMANTICKEYPHRASETABLE|SEMANTICSIMILARITYDETAILSTABLE|SEMANTICSIMILARITYTABLE|SENSITIVE|SEQUENCE|SESSION|SET|SETS|SETUSER|SHUTDOWN|SIMILAR|SIZE|SOME|SPECIFIC|SPECIFICTYPE|SQL|SQLCA|SQLCODE|SQLERROR|SQLEXCEPTION|SQLSTATE|SQLWARNING|START|STATE|STATEMENT|STATIC|STATISTICS|STDDEV_POP|STDDEV_SAMP|STRUCTURE|SUBMULTISET|SUBSTRING_REGEX|SYMMETRIC|SYSTEM|TABLESAMPLE|TEMPORARY|TERMINATE|TEXTSIZE|THAN|THEN|TIMEZONE_HOUR|TIMEZONE_MINUTE|TO|TOP|TRAILING|TRAN|TRANSACTION|TRANSLATE|TRANSLATE_REGEX|TRANSLATION|TREAT|TRIGGER|TRIM|TRUNCATE|TSEQUAL|UESCAPE|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNPIVOT|UPDATE|UPDATETEXT|USAGE|USE|USER|USING|VALUE|VALUES|VARIABLE|VARYING|VAR_POP|VAR_SAMP|VIEW|WAITFOR|WHEN|WHENEVER|WHERE|WHILE|WIDTH_BUCKET|WINDOW|WITH|WITHIN|WITHIN GROUP|WITHOUT|WORK|WRITE|WRITETEXT|XMLAGG|XMLATTRIBUTES|XMLBINARY|XMLCAST|XMLCOMMENT|XMLCONCAT|XMLDOCUMENT|XMLELEMENT|XMLEXISTS|XMLFOREST|XMLITERATE|XMLNAMESPACES|XMLPARSE|XMLPI|XMLQUERY|XMLSERIALIZE|XMLTABLE|XMLTEXT|XMLVALIDATE|ZONE",r=(t=(t=(t=(t=(t=t+"|KEEPIDENTITY|KEEPDEFAULTS|IGNORE_CONSTRAINTS|IGNORE_TRIGGERS|XLOCK|FORCESCAN|FORCESEEK|HOLDLOCK|NOLOCK|NOWAIT|PAGLOCK|READCOMMITTED|READCOMMITTEDLOCK|READPAST|READUNCOMMITTED|REPEATABLEREAD|ROWLOCK|SERIALIZABLE|SNAPSHOT|SPATIAL_WINDOW_MAX_CELLS|TABLOCK|TABLOCKX|UPDLOCK|XLOCK|IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX|EXPAND|VIEWS|FAST|FORCE|KEEP|KEEPFIXED|MAXDOP|MAXRECURSION|OPTIMIZE|PARAMETERIZATION|SIMPLE|FORCED|RECOMPILE|ROBUST|PLAN|SPATIAL_WINDOW_MAX_CELLS|NOEXPAND|HINT"+"|LOOP|HASH|MERGE|REMOTE")+"|TRY|CATCH|THROW"+"|TYPE").split("|")).filter(function(e,t,r){return-1===o.split("|").indexOf(e)&&-1===i.split("|").indexOf(e)&&-1===n.split("|").indexOf(e)})).sort().join("|"),this.createKeywordMapper({"constant.language":o,"storage.type":n,"support.function":i,"support.storedprocedure":e,keyword:t},"identifier",!0)),a="SET ANSI_DEFAULTS|SET ANSI_NULLS|SET ANSI_NULL_DFLT_OFF|SET ANSI_NULL_DFLT_ON|SET ANSI_PADDING|SET ANSI_WARNINGS|SET ARITHABORT|SET ARITHIGNORE|SET CONCAT_NULL_YIELDS_NULL|SET CURSOR_CLOSE_ON_COMMIT|SET DATEFIRST|SET DATEFORMAT|SET DEADLOCK_PRIORITY|SET FIPS_FLAGGER|SET FMTONLY|SET FORCEPLAN|SET IDENTITY_INSERT|SET IMPLICIT_TRANSACTIONS|SET LANGUAGE|SET LOCK_TIMEOUT|SET NOCOUNT|SET NOEXEC|SET NUMERIC_ROUNDABORT|SET OFFSETS|SET PARSEONLY|SET QUERY_GOVERNOR_COST_LIMIT|SET QUOTED_IDENTIFIER|SET REMOTE_PROC_TRANSACTIONS|SET ROWCOUNT|SET SHOWPLAN_ALL|SET SHOWPLAN_TEXT|SET SHOWPLAN_XML|SET STATISTICS IO|SET STATISTICS PROFILE|SET STATISTICS TIME|SET STATISTICS XML|SET TEXTSIZE|SET XACT_ABORT".split("|"),s="READ UNCOMMITTED|READ COMMITTED|REPEATABLE READ|SNAPSHOP|SERIALIZABLE".split("|"),l=0;l<s.length;l++)a.push("SET TRANSACTION ISOLATION LEVEL "+s[l]);for(this.$rules={start:[{token:"string.start",regex:"'",next:[{token:"constant.language.escape",regex:/''/},{token:"string.end",next:"start",regex:"'"},{defaultToken:"string"}]},u.getStartRule("doc-start"),{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:r,regex:"@{0,2}[a-zA-Z_$][a-zA-Z0-9_$]*\\b(?!])"},{token:"constant.class",regex:"@@?[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|=|\\*"},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"punctuation",regex:",|;"},{token:"text",regex:"\\s+"}],comment:[u.getTagRule(),{token:"comment",regex:"\\*\\/",next:"no_regex"},{defaultToken:"comment",caseInsensitive:!0}]},l=0;l<a.length;l++)this.$rules.start.unshift({token:"set.statement",regex:a[l]});function c(e,t){e.forEach(function(e){d.push({name:e,value:e,score:0,meta:t})})}this.embedRules(u,"doc-",[u.getEndRule("start")]),this.normalizeRules();var d=[];c(e.split("|"),"procedure"),c(o.split("|"),"operator"),c(i.split("|"),"function"),c(n.split("|"),"type"),c(a,"statement"),c(t.split("|"),"keyword"),this.completions=d}var i=s.default.require("ace/lib/oop"),u=s.default.require("ace/mode/doc_comment_highlight_rules").DocCommentHighlightRules,n=s.default.require("ace/mode/text_highlight_rules").TextHighlightRules;i.inherits(o,n),t.SqlHighlightRules=o}),s.default.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/range"],function(e,t,r){function o(){this.HighlightRules=a}var i=s.default.require("ace/lib/oop"),n=s.default.require("ace/mode/text").Mode,a=s.default.require("ace/mode/sql_highlight_rules").SqlHighlightRules;s.default.require("ace/range").Range;i.inherits(o,n),function(){this.lineCommentStart="--",this.$id="ace/mode/sql"}.call(o.prototype),t.Mode=o}))},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerConfigureParametersPage=t.ConfigureQueryParametersPage=void 0,r(2)),s=r(3),l=r(12),c=r(49),d=r(13),u=r(0),p=r(6),f=r(7),m=r(1),y=r(5),r=r(9),h=(i=r.WizardPageBase,n(g,i),g.prototype._isParametersValid=function(){return this.getParameters().every(function(e){return e.isValid()})},g.prototype.canNext=function(){return!1},g.prototype.canFinish=function(){return this._isParametersValid()},g.prototype.getParameters=function(){return this.parametersEditorOptions.values()()},g.prototype.initialize=function(e){var t=this;return this._sqlDataSourceWrapper=l._restoreSqlDataSourceFromState(e,this._requestWrapper),this.parametersEditorOptions.hideButtons(this._sqlDataSourceWrapper.sqlQuery.type()===f.SqlQueryType.storedProcQuery),setTimeout(function(){t.parametersEditorOptions.values(a.observableArray(t._sqlDataSourceWrapper.sqlQuery.parameters().map(function(e){return t.parametersConverter.createParameterViewModel(e)})))},100),s.Deferred().resolve().promise()},g.prototype.commit=function(){var t=this;return this._sqlDataSourceWrapper.sqlQuery.parameters(this.parametersEditorOptions.values()().map(function(e){return t.parametersConverter.getParameterFromViewModel(e)})),s.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.save()}).promise()},g);function g(e,t){void 0===e&&(e={createParameterViewModel:function(e){return e},getParameterFromViewModel:function(e){return e}});var r=i.call(this)||this;return r.parametersConverter=e,r._requestWrapper=t,r._sqlDataSourceWrapper=new c._SqlDataSourceWrapper(void 0,void 0,r._requestWrapper),r.removeButtonTitle=m.getLocalization("Remove","DataAccessUIStringId.Button_Remove"),r.parametersEditorOptions={addHandler:function(){return r.parametersConverter.createParameterViewModel(new d.DataSourceParameter({"@Name":u.getUniqueNameForNamedObjectsArray(r.parametersEditorOptions.values.peek().peek(),"param"),"@Type":"System.Int32"}))},values:a.observable(a.observableArray([])),displayName:"Parameters",level:0,info:a.observable({displayName:"Parameters",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Parameters",propertyName:"parameters",modelName:"Parameter",array:!0,editor:p.editorTemplates.getEditor("commonCollection"),template:"#dxrd-parameter-collection-item"}),editorTemplate:"#dxrd-wizard-datasource-parameters",hideButtons:a.observable(!1),collapsed:!1},r}t.ConfigureQueryParametersPage=h,t._registerConfigureParametersPage=function(e,t,r){e.registerMetadata(y.SqlDataSourceWizardPageId.ConfigureParametersPage,{create:function(){return new h(r,t)},getState:function(e){return e.sqlDataSourceWizard},setState:function(e,t){return t.sqlDataSourceJSON=e.sqlDataSourceJSON},resetState:function(){},template:"dxrd-page-configure-parameters",description:m.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters")})}},function(e,t,r){"use strict";var o,s,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=(Object.defineProperty(t,"__esModule",{value:!0}),t.DBSchemaItemsProvider=void 0,r(2)),c=r(3),d=r(0),u=r(22),p=r(1),f=r(108),r=r(1),r=(s=r.Disposable,i(n,s),n);function n(r,i,e,t,n){var a=s.call(this)||this;return a._callBack=l.observable({deleteAction:function(t){a._customQueries.remove(d.findFirstItemMatchesCondition(a._customQueries(),function(e){return(e.name()||e.generateName())===t}))},showQbCallBack:null,disableCustomSql:!1}),a._checkedRootNodesCount=l.pureComputed(function(){for(var e=0,t=0;t<a._rootItems.length&&e<2;t++)e+=a._rootItems[t].countChecked();return e}),a.hasCheckedItems=l.pureComputed(function(){return!(0===a._checkedRootNodesCount())}),a.nextButtonDisabled=l.pureComputed(function(){return!(1<a._checkedRootNodesCount())&&!a.hasParametersToEdit()}),a.hasParametersToEdit=l.pureComputed(function(){for(var e=0;e<a._rootItems.length;e++)if(a._rootItems[e].hasParamsToEdit&&a._rootItems[e].hasParamsToEdit())return!0;return!1}),a.tables=function(){return a._tables},a.views=function(){return a._views},a.procedures=function(){return a._procedures},a.queries=function(){return a._queries},a.customQueries=function(){return a._customQueries},a._callBack().showQbCallBack=e,a._callBack().disableCustomSql=t,a._tables=new u.TreeNode("tables",p.getLocalization("Tables","DataAccessStringId.ConfigureMultiQueryPage_TableCategory"),"list",!1,n),a._views=new u.TreeNode("views",p.getLocalization("Views","DataAccessStringId.ConfigureMultiQueryPage_ViewCategory"),"list",!1,n),a._procedures=new u.ParameterTreeNode("procedures",p.getLocalization("Stored Procedures","DataAccessStringId.ConfigureMultiQueryPage_SpCategory"),"list",!1,n),a._queries=new u.QueriesTreeNode("queries",p.getLocalization("Queries","DataAccessStringId.ConfigureMultiQueryPage_QueryCategory"),"list",!1,a._callBack,n),(e=a._disposables).push.apply(e,[a._tables,a._views,a._procedures,a._queries]),a._rootItems=[a._tables,a._views,a._procedures,a._queries],a.getItems=function(e){var t,o=c.Deferred();return e.fullPath?"tables"===e.fullPath?r.getDbSchema().done(function(e){var t;0===a._tables.children().length?(t=[],e.tables.forEach(function(e){e.isView||t.push(new u.TreeNode(e.name,e.name,"table",a._tables.checked.peek(),n))}),a._tables.initializeChildren(t),o.resolve(t)):o.resolve(a._tables.children())}).fail(o.reject):"views"===e.fullPath?r.getDbSchema().done(function(e){var t;0===a._views.children().length?(t=[],e.tables.forEach(function(e){e.isView&&t.push(new u.TreeNode(e.name,e.name,"view",a._views.checked.peek(),n))}),a._views.initializeChildren(t),o.resolve(t)):o.resolve(a._views.children())}).fail(o.reject):"procedures"===e.fullPath?r.getDbStoredProcedures().done(function(e){0===a._procedures.children().length?(e=e.map(function(e){e=new u.TreeLeafNode(e.name,f.StoredProceduresQueryControl.generateStoredProcedureDisplayName(e),"procedure",a._procedures.checked.peek(),e.arguments,n);return a._disposables.push(e),e}),a._procedures.initializeChildren(e),o.resolve(e)):o.resolve(a._procedures.children())}).fail(o.reject):"queries"===e.fullPath?(t=i().map(function(t){var e=t.name()||t.generateName(),r=a._queries.children().filter(function(e){return e.query===t})[0];if(r)return r;e=new u.TreeQueryNode(e,e,"query",!!r&&r.checked(),t.parameters,a._callBack,n,t);return a._disposables.push(e),e.setObservableName(l.computed({read:function(){return t.name()||t.generateName()},write:function(e){return t.name(e)}})),e}),a._queries.initializeChildren(t),o.resolve(t)):r.getDbTable(e.path).done(function(t){var e,r=t.isView?d.findFirstItemMatchesCondition(a._views.children(),function(e){return e.name===t.name}):d.findFirstItemMatchesCondition(a._tables.children(),function(e){return e.name===t.name});0===r.children().length?(e=t.columns.map(function(e){e=new u.TreeLeafNode(e.name,e.name,"column",r.checked.peek(),null,n);return a._disposables.push(e),e}),r.initializeChildren(e),o.resolve(e)):o.resolve(r.children())}).fail(o.reject):o.resolve(a._rootItems),o.promise()},a._customQueries=i,a}t.DBSchemaItemsProvider=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWizard=void 0,r(2)),s=r(1),l=r(112),c=r(51),d=r(1),u=r(10),p=r(14),r=(i=s.Disposable,n(f,i),f.prototype._createLoadingState=function(e){var t=this;e[p.__loadingStateFunctionName]||(e[p.__loadingStateFunctionName]=function(e){return t._loadingState(e)})},f.prototype._createNextAction=function(e){var t=this;e[p.__nextActionFunctionName]||(e[p.__nextActionFunctionName]=function(){return t.nextAction()})},f.prototype._loadingState=function(e){var t=this;e?(this._loadingTimeout&&clearTimeout(this._loadingTimeout),this._loadingTimeout=setTimeout(function(){t.isLoading(!0)},100)):(this._loadingTimeout&&clearTimeout(this._loadingTimeout),this.isLoading(!1))},f.prototype._callBeforeFinishHandler=function(e,t){this.events.call("beforeFinish",{state:e})},f.prototype._callAfterFinishHandler=function(e,t){this.events.call("afterFinish",{state:e})},f.prototype.onFinish=function(){this.iterator.dispose()},f.prototype.initialize=function(e,t){void 0===t&&(t=function(e,t){return new c.PageIterator(e,t)}),this.events.call("beforeInitialize",{wizard:this,state:e=void 0===e?{}:e}),this.stateManager=new l.StateManager(e,this.pageFactory),this.iterator=t(this.pageFactory,this.stateManager),this.events.call("afterInitialize",{wizard:this})},f.prototype.isFirstPage=function(){return this._currentPage()&&this._currentPage().pageId==this.iterator.getNextPageId()},f.prototype.canNext=function(){return!this.isLoading()&&this._currentPage()&&this.pageFactory.getMetadata(this._currentPage().pageId).canNext(this._currentPage().page)},f.prototype.canFinish=function(){return!this.isLoading()&&this._currentPage()&&this.pageFactory.getMetadata(this._currentPage().pageId).canFinish(this._currentPage().page)},f.prototype._initPage=function(e){return this.events.call("beforePageInitialize",u._createBeforeInitializePageEventArgs(e,this)),this._createLoadingState(e.page),this._createNextAction(e.page),e.initialize(this.stateManager.getPageState(e.pageId))},f.prototype.start=function(){var e=this,t=(this.events.call("beforeStart",{wizard:this}),this._loadingState(!0),this.iterator._getStartPage());this._initPage(t).done(function(){e._currentPage(t),e.events.call("afterPageInitialize",u._createPageEventArgs(t,e))}).always(function(){return e._loadingState(!1)}).fail(function(){e.isVisible(!1)})},f.prototype.canRunWizard=function(){return!0},f.prototype.nextAction=function(){var t,r,o=this;this.canNext()&&(t=this.iterator._getCurrentPage(),this._loadingState(!0),r=function(){return o.iterator._getPreviousPage().always(function(){o.iterator._resetPages(),o._loadingState(!1)})},t.commit().done(function(e){t.isChanged&&o.stateManager.setPageState(t.pageId,e),o.iterator._getNextPage().done(function(e){e?o._initPage(e).done(function(){o._currentPage(e),o.events.call("afterPageInitialize",u._createPageEventArgs(e,o)),o._loadingState(!1)}).fail(r):r()}).fail(function(){return o._loadingState(!1)})}).fail(function(){return o._loadingState(!1)}))},f.prototype.previousAction=function(){var t=this;this.isFirstPage()||(this._loadingState(!0),this.iterator._getPreviousPage().done(function(e){e&&t._currentPage(e)}).always(function(){return t._loadingState(!1)}))},f.prototype.goToPage=function(e){var t=this;this._loadingState(!0),this.iterator._goToPage(e).done(function(e){e&&t._currentPage(e)}).always(function(){return t._loadingState(!1)})},f.prototype.finishAction=function(){var r,o=this;this.canFinish()&&(this._loadingState(!0),(r=this.iterator._getCurrentPage()).commit().done(function(e){var t;o.stateManager.setPageState(r.pageId,e),o.iterator._resetPages(),o._finishCallback?(t=o.stateManager.getCurrentState(),o._callBeforeFinishHandler(t),o._finishCallback(t).done(function(e){o.onFinish(),o._callAfterFinishHandler(t,e),o.isVisible(!1)}).always(function(){o._loadingState(!1)})):(o._loadingState(!1),o.isVisible(!1))}))},f);function f(e,t){var r=i.call(this)||this;return r.pageFactory=e,r.events=new d.EventManager,r._loadingTimeout=null,r.isLoading=a.observable(!1),r._currentPage=a.observable(),r.isVisible=a.observable(!1),r._finishCallback=t,r._disposables.push(r.events),r}t.BaseWizard=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ParametersTreeListController=t.ParametersTreeListRootItem=t.ParametersTreeListRootItemBase=t.ParametersTreeListItem=t.ParametersTreeListItemBase=void 0,r(2)),s=r(1),l=r(6),c=r(7),d=r(8),u=r(8),p=r(1),r=(i=s.Disposable,n(f,i),Object.defineProperty(f.prototype,"name",{get:function(){return this._name()},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"displayName",{get:function(){return this._displayName||this.name},enumerable:!1,configurable:!0}),f);function f(e){var t=i.call(this)||this;return t.editor=l.editorTemplates.getEditor("commonCollection"),t.isList=!1,t.contenttemplate="dx-treelist-accordion-contenttemplate-custom-with-actions",t.actionsTemplate="dx-treelist-item-actions",t.dataSourceParameter=a.observable(e),t._name=e.name,t._displayName=e.displayName,t}t.ParametersTreeListItemBase=r;n(h,m=r),h.prototype.query=function(){return this.parent.query()};var m,y=h;function h(e,t){e=m.call(this,e)||this;return e.parent=t,e}t.ParametersTreeListItem=y;g.prototype.removeChild=function(e){this.parameters.remove(e)};s=g;function g(e){this.isList=!0,this.specifics="List",this.visible=a.observable(!0),this.name=this.displayName=e,this.parameters=a.observableArray([])}t.ParametersTreeListRootItemBase=s;n(b,_=s),b.prototype.query=function(){return this._query};var _,r=b;function b(e){var t=_.call(this,e.name())||this;return t._query=e,t}t.ParametersTreeListRootItem=r;v=d.TreeListController,n(S,v),S.prototype.hasItems=function(e){return e.isList},S.prototype.getActions=function(e){var t,r,o=this,i=[];return e.data?e.data.query().type()===c.SqlQueryType.storedProcQuery?e.data.isList?[]:[u.treeListEditAction]:(e.data.isList?(t=e.data,i.push({clickAction:function(){return t.parameters.push(new y(o._createNewParameter(t.name,t.parameters()),t))},imageClassName:"dxrd-image-add",imageTemplateName:"dxrd-svg-operations-add",text:p.getLocalization("Add parameter","AnalyticsCoreStringId.FieldListActions_AddParameter")})):(r=e.data,i.push({clickAction:function(){r.parent.removeChild(r)},imageClassName:"dxrd-image-recycle-bin",imageTemplateName:"dxrd-svg-operations-recycle_bin",text:p.getLocalization("Remove parameter","DataAccessUIStringId.Button_Remove")}),i.push(u.treeListEditAction)),i):i},S.prototype.canSelect=function(e){return!0};var v,s=S;function S(e,t){var r=v.call(this)||this;return r._createNewParameter=t,r._rootItems=e,r}t.ParametersTreeListController=s},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailEditor=void 0,r(2)),s=r(3),l=r(1),c=r(0),d=r(0),u=r(0),p=r(162),f=r(0),m=r(163),r=r(8),r=(n=r.PopupEditorBase,i(y,n),y.prototype.title=function(){return l.getLocalization("Master-Detail Relation Editor",c.StringId.MasterDetailRelationsEditor)},y);function y(t,r,e){var o=n.call(this)||this,i=(o.isValid=a.observable(!0),o.loadPanelVisible=a.observable(!1),o.masterQueries=a.observableArray(),o.popupService=new d.PopupService,o.save=function(){t().some(function(e){return!e.detailQuery()||!e.masterQuery()||e.keyColumns().some(function(e){return!e.detailColumn()||!e.masterColumn()})})?u.ShowMessage(l.getLocalization("Some fields are empty. Please fill all empty fields or remove the corresponding conditions to proceed.","DataAccessUIStringId.JoinEditorFillAllFieldsException")):e().done(function(){o.popupVisible(!1)})},o.createRelation=function(t){var e=r.tables().filter(function(e){return e.tableName()!==t.queryName}).map(function(e){return{name:e.tableName()}});return{data:new p.MasterDetailEditorPopupManager(t,o.popupService,"create",e),templateName:"dx-filtereditor-create"}},o.setColumn=function(e){var t=f.getFirstItemByPropertyValue(r.tables(),"tableName",e.queryName);return{data:new p.MasterDetailEditorPopupManager(e,o.popupService,"setColumn",t?t.columns():[]),templateName:"dx-masterdetail-editor-setColumn"}},o._createMainPopupButtons(),{});return r.tables().forEach(function(e){i[e.tableName()]=new m.MasterQuerySurface(e.tableName(),t)}),t().forEach(function(e){i[e.masterQuery()]=i[e.masterQuery()]||new m.MasterQuerySurface(e.masterQuery(),t),i[e.masterQuery()].add(e)}),o.masterQueries(s.map(i,function(e){return e})),o}t.MasterDetailEditor=r},function(e,t,r){"use strict";function o(e,t,r,o){var i=this;this.showPopup=function(e,t){i._popupService.subscription&&i._popupService.subscription.dispose(),i._popupService.title(""),i._updateActions(i.target),i._popupService.target(t),i._popupService.visible(!0)},this.target=e,this._action=r,this._popupService=t,this._popupItems=o}Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailEditorPopupManager=void 0,o.prototype._updateActions=function(t){var r=this;this._popupService.subscription=this._popupService.visible.subscribe(function(e){r.target.isSelected&&r.target.isSelected(e)}),this._popupService.data({data:this._popupItems,template:"dx-filtereditor-popup-common",click:function(e){t[r._action](e),r._popupService.visible(!1)}})},t.MasterDetailEditorPopupManager=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MasterQuerySurface=void 0;var i=r(2),n=r(42),a=r(164),s=r(0),l=r(0);t.MasterQuerySurface=function(e,r){var o=this;this.relations=i.observableArray(),this.queryName=e,this.add=function(e){o.relations.push(new a.MasterDetailRelationSurface(e,o))},this.create=function(e){e=new n.MasterDetailRelation({"@Master":o.queryName,"@Detail":e.name});s.getFirstItemByPropertyValue(o.relations(),"relationName",e.name())&&e.name(l.getUniqueName(o.relations().map(function(e){return e.relationName()}),e.name()+"_")),e.createKeyColumn(),o.add(e),r.push(e)},this.remove=function(t){o.relations.remove(t),r.remove(function(e){return e.name===t.relationName})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MasterDetailRelationSurface=void 0;var i=r(2),n=r(165);t.MasterDetailRelationSurface=function(r,e){var o=this;this.isEditable=i.observable(!1),this.relationName=r.name,this.keyColumns=i.pureComputed(function(){return r.keyColumns().map(function(e){return{master:new n.KeyColumnSurface(e.masterColumn,r.masterQuery(),!0),detail:new n.KeyColumnSurface(e.detailColumn,r.detailQuery(),!1)}})}),this.create=function(){r.createKeyColumn()},this.remove=function(t){r.keyColumns.remove(function(e){return e.masterColumn===t.master.column&&e.detailColumn===t.detail.column}),0===r.keyColumns().length&&e.remove(o)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyColumnSurface=void 0;var i=r(2),n=r(1);t.KeyColumnSurface=function(e,t,r){var o=this;this._isMaster=r=void 0===r?!1:r,this.getTitle=function(){return o._isMaster?n.getLocalization("Master Query","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_MasterQuery"):n.getLocalization("Detail Query","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_DetailQuery")},this.isSelected=i.observable(!1),this.selectColumnText=function(){return n.getLocalization("<Select a Column>","DataAccessUIStringId.JoinEditorEmptyColumnText")},this.column=e,this.queryName=t,this.setColumn=function(e){o.column(e.name())}}},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationSelectQueryBuilderPopup=void 0,r(2)),l=r(3),n=r(71),c=r(1),d=r(120),u=r(0),p=r(21),f=r(0),m=r(6),y=r(72),h=r(0),g=r(74),_=r(34),b=r(35),v=r(176),S=r(20),P=r(0),x=r(8),C=r(8),r=(a=n.FederationQueryBuilderPopupBase,i(T,a),T.prototype._onContentReady=function(e){e.component._isFirstLoad||(e.component._isFirstLoad=!0,l(e.component.content())[0].parentElement.className+=" dx-dropdowneditor-overlay")},T.prototype._getQuery=function(){return this.designer()&&this.designer().model()},T.prototype._afterChangeColumn=function(r,e){var o=this;this._gridComponent.saveEditData().then(function(){o._gridComponent.cancelEditData();function t(){var e=o._gridComponent.getVisibleRows(),e=null!=r?r:e.length-1;o._gridComponent.editCell(e,0),o._gridComponent.navigateToRow(o.columnsExpressions()[e]),o._gridComponent.off("contentReady",t)}o._gridComponent.on("contentReady",t),e()})},T.prototype._changeColumn=function(e,t){var r,o=this;e&&(r=y.ColumnExpressionCollectionHelper.createNew(this._getQuery(),this._getQuery().columns,e.table,e.column),this._isSelectAllItemByKey(e.key)&&(r=e.table?new _.ColumnExpression({"@Table":e.table,"@ItemType":b.ColumnType[b.ColumnType.AllColumns]},this._getQuery()):new _.ColumnExpression({"@ItemType":b.ColumnType[b.ColumnType.AllColumnsQuery]},this._getQuery())),this._afterChangeColumn(t,function(){return null!=t?o._getQuery().columns.splice(t,1,r):o._getQuery().columns.push(r)}))},T.prototype._switchEditors=function(e){var t,r,o=this,i=function(){return o._getQuery().columns.notifySubscribers()};null!=e.index?(r=this._getQuery().columns()[e.index],e.isExpression()?r.toTable():r.itemType()===b.ColumnType[b.ColumnType.AllColumns]||r.itemType()===b.ColumnType[b.ColumnType.AllColumnsQuery]?(r=new _.ColumnExpression({},this._getQuery()),y.ColumnExpressionCollectionHelper.toExpresson(r,this._getQuery().columns,""),this._getQuery().columns.splice(e.index,1,r)):(t=r.column()?"["+r.table()+"."+r.column()+"]":"",y.ColumnExpressionCollectionHelper.toExpresson(r,this._getQuery().columns,t))):(r=new _.ColumnExpression({},this._getQuery()),y.ColumnExpressionCollectionHelper.toExpresson(r,this._getQuery().columns,""),i=function(){return o._getQuery().columns.push(r)}),this._afterChangeColumn(e.index,i)},T.prototype._deleteRow=function(e){this._gridComponent.deleteRow(e),this._gridComponent.deselectAll(),this._getQuery().columns.splice(e,1)},T.prototype._onRowUpdating=function(e,t){var r=this._getQuery().columns()[e.index];r&&r.alias(t.alias),e.alias=t.alias,this._gridComponent.saveEditData()},T.prototype._aliasValidationCallback=function(e,t){return e===t.alias&&e===t.key||!y.ColumnExpressionCollectionHelper.findByName(this._getQuery().columns,e)},T.prototype.dispose=function(){a.prototype.dispose.call(this),this._bindingContext=null,this._gridComponent=null,this._qbOptions=null,this.queryBuilderSurfaceCreator=null,this.columnsGrid=null},T.prototype._generateKey=function(e,t,r,o){return o===r?r:e+"_"+t},T.prototype._isSelectAllItemByKey=function(e){return e===S.FederatedQueryExpressionType[S.FederatedQueryExpressionType.SelectAllColumnsExpression]||-1!==e.indexOf(S.FederatedQueryExpressionType[S.FederatedQueryExpressionType.SelectAllNodeColumnsExpression])},T.prototype.save=function(){this.selectQuery.init(this._getQuery().serialize()),this.onSaveCallback(this.selectQuery),this.close()},T.prototype.addRow=function(){this._gridComponent.addRow(),this._gridComponent.deselectAll()},T.prototype.canSave=function(){return this._getQuery()&&this._getQuery().isValid()},T.prototype.addDataMember=function(e,t){var r=this._getQuery(),o=e.data.displayName||e.data.name,i=r.createChild(u.extend({"@ControlType":"FTable","@Name":o},p.controlsFactory.controlsMap.FTable.defaultVal),void 0,e.path),o=s.unwrap(f.findSurface(i));t?((e=s.unwrap(f.findSurface(this.designer()))).underCursor().x=t.left-e.absolutePosition.x(),e.underCursor().y=t.top-e.absolutePosition.y(),o.rect({left:e.underCursor().x,top:e.underCursor().y,width:199})):(t=Math.max.apply(null,r.tables.peek().filter(function(e){return e!==i}).map(function(e){return e.location.x.peek()+1.25*e.size.width.peek()}).concat([30])),i.location.x(t),i.location.y(20)),this.designer().selection.initialize(o)},T.prototype.close=function(){this.popupVisible(!1)},T.prototype.show=function(e){this.selectQuery=e,this._querySource((new c.ModelSerializer).serialize(e)),this.popupVisible(!0)},T.prototype.popupTarget=function(){return".dxrd-select-querybuilder-surface .dxqb-main"},T);function T(e,t,r){var i=a.call(this,e,t,r=void 0===r?!1:r)||this,n=(i.popupContentTemplate="dxrd-querybuilder-select-popup-content",i._querySource=s.observable(null),i.designer=s.observable(null),i.joinResultCollapsed=s.observable(!1),i.width="90%",i.height="90%",i.cssClass="dxrd-querybuilder-federation-popup-wrapper dxrd-querybuilder-select-federation-popup",i._qbOptions={queryBuilderModel:i.designer,dataSource:t,dbSchemaProvider:s.observable(t.dbSchemaProvider),showPropertyGridCondition:function(e){return"JoinCondition"===e.controlType||"FTable"===e.controlType||"Column"===e.controlType},querySource:i._querySource},[{name:"DataSource",needPrefix:!(i.queryBuilderSurfaceCreator={options:i._qbOptions,creator:function(e){return new d.FederationQueryViewModel(e.querySource(),e.dataSource,e.dbSchemaProvider(),e.parametersMode,new c.ModelSerializer)}}),rootPath:"Root"}]),o=(i.allColumns=s.pureComputed(function(){var t,r=[];return i._getQuery()&&(t="",r.push({column:g.AllColumnsViewModel.DisplayName(),table:t,key:S.FederatedQueryExpressionType[S.FederatedQueryExpressionType.SelectAllColumnsExpression]}),i._getQuery().getAllColumns().map(function(e){var t=e.parentModel();return{column:e.name(),table:t.actualName(),key:i._generateKey(t.actualName(),e.name(),e.actualName(),e.alias())}}).forEach(function(e){e.table&&t!==e.table&&r.push({column:g.AllColumnsViewModel.DisplayName(),table:e.table,key:e.table+"_"+S.FederatedQueryExpressionType[S.FederatedQueryExpressionType.SelectAllNodeColumnsExpression]}),t=e.table,r.push(e)})),r}),i.columnsExpressions=s.pureComputed(function(){return i._getQuery()&&i._getQuery().columns().map(function(e,t){var r,o;return e.actualName()&&(r=i._generateKey(e.table(),e.column(),e.actualName(),e.alias())),e.itemType()===b.ColumnType[b.ColumnType.Column]?o=e.column():e.itemType()===b.ColumnType[b.ColumnType.Expression]?o=e.expression():e.itemType()===b.ColumnType[b.ColumnType.AllColumns]?(r=e.table()+"_"+S.FederatedQueryExpressionType[S.FederatedQueryExpressionType.SelectAllNodeColumnsExpression],o=g.AllColumnsViewModel.DisplayName()):e.itemType()===b.ColumnType[b.ColumnType.AllColumnsQuery]&&(r=S.FederatedQueryExpressionType[S.FederatedQueryExpressionType.SelectAllColumnsExpression],o=g.AllColumnsViewModel.DisplayName()),{alias:e.alias(),key:r,index:t,column:o,table:e.table(),isExpression:s.observable(e.itemType()===b.ColumnType[b.ColumnType.Expression]),expression:e.expression}})}),i._disposables.push(i.columnsExpressions,i.allColumns),function(e,t){var r=l(e),t=i._bindingContext.createChildContext({allColumns:i.allColumns,itemsProvider:new v.FederationTablesExpressionFieldListProvider(i._dataSource.dbSchemaProvider,i._getQuery().tables),cellInfo:t.data,expression:{value:t.data.expression,onContentReady:i._onContentReady,path:s.observable(n[0].name),customizeCategories:function(){},rootItems:n,functions:C.functionDisplay().filter(function(e){return"Aggregate"!=e.category})},isExpression:t.data.isExpression||s.observable(!1),changeColumn:function(e){i._changeColumn(e.selectedRowsData[0],e.model.cellInfo.index)},switchEditors:function(e){i._switchEditors(e.model.cellInfo)}}),o=document.createElement("div"),r=r.append(o);s.renderTemplate("dxrd-querybuilder-column-combobox",t,{},o,"replaceNode"),P.addDisposeCallback(e,function(){r=null})});return i._disposables.push(i.addRowDisabled=s.pureComputed(function(){return!i._getQuery()||0===i._getQuery().tables().length})),i.columnsGrid={rtlEnabled:r,dataSource:i.columnsExpressions,disabled:i.addRowDisabled,showRowLines:!0,height:"100%",showBorders:!0,editing:{allowUpdating:function(e){return!(e.row&&e.row.data.key&&i._isSelectAllItemByKey(e.row.data.key))},newRowPosition:"last",mode:"cell",texts:{confirmDeleteMessage:""}},paging:{enabled:!1},columns:[{dataField:"column",get caption(){return h.getLocalization("Column Name","DataAccessUIStringId.QueryBuilderColumns_ColumnName")},cssClass:"dx-editor-cell",editCellTemplate:o,cellTemplate:function(e,t){if(t.data.key&&i._isSelectAllItemByKey(t.data.key))return o(e,t);var r=m.getTemplate("dxrd-querybuilder-column-combobox-masked"),e=l(e).append(r),r={cellInfo:t.data,isExpression:t.data.isExpression||s.observable(!1),switchEditors:function(){return null}};s.applyBindings(r,e[0])}},{dataField:"table",get caption(){return h.getLocalization("Table Name","DataAccessUIStringId.QueryBuilderColumns_TableName")},allowEditing:!1},{dataField:"alias",get caption(){return h.getLocalization("Alias","DataAccessUIStringId.QueryBuilderColumns_Alias")},disabled:!0,validationRules:[i._aliasValidationRule,{type:"custom",validationCallback:function(e){if(""===e.value&&e.data&&e.data.key){e=y.ColumnExpressionCollectionHelper.findByName(i._getQuery().columns,e.data.key);if(e&&e.itemType()===b.ColumnType[b.ColumnType.Expression])return!1}return!0},get message(){return h.getLocalization("The column name is not specified.","DataAccessStringId.UnnamedColumnValidationException")}}]},{type:"buttons",width:50,buttons:[{icon:"delete",onClick:function(e){i._deleteRow(null!=e.row.data.index?e.row.data.index:i._getQuery().columns().length)},cssClass:"dxrd-querybuilder-grid-actions dxd-icon-highlighted dxrd-image-recycle-bin",template:m.getTemplate("dxrd-svg-operations-recycle_bin")}]}],onInitialized:function(e){i._bindingContext=s.contextFor(l(e.element)[0]),i._gridComponent=e.component},onRowUpdating:function(e){i._onRowUpdating(e.oldData,e.newData)}},i.gridResizeHelper=new x.ResizeHelper(i.resultGridHeight,i.joinResultCollapsed),i}t.FederationSelectQueryBuilderPopup=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allColumnsSerializationInfo=void 0;r=r(15);t.allColumnsSerializationInfo=[r.name,r.selected]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.QBFilterStringOptions=void 0,r(2)),a=r(6),l=r(169),c=r(37),d=r(29),r=(i=a.FilterStringOptions,n(u,i),u.prototype.initializeFilterStringHelper=function(r,o,e){var i,n=this,a=new l.QBFilterEditorHelperDefault(o);a.canChoiceParameters=o!==c.ParametersMode.Disabled,e&&(a.serializer=e),o===c.ParametersMode.ReadWrite?(a.parameters=s.computed(function(){return[].concat(r(),a.newParameters())}),a.onSave=function(e){var t=a.newParameters();r.push.apply(r,t),a.newParameters([])}):(o===c.ParametersMode.Read&&(a.parameters=r),i=a.criteriaTreeValidator._checkRightPart,a.criteriaTreeValidator._checkRightPart=function(e){return e instanceof d.OperandParameter?o!==c.ParametersMode.Disabled&&(o===c.ParametersMode.Read?(t=e.parameterName,0!==r.peek().filter(function(e){return e.name()===t}).length):void 0):i.apply(n,[e]);var t}),this.helper=a},u);function u(e,t,r,o){return i.call(this,e,t,r,o)||this}t.QBFilterStringOptions=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t._setQBFilterEditorHelperDefault=t.QBFilterEditorHelperDefault=t.QBFilterEditorHelper=void 0,r(2)),l=r(3),a=r(6),c=r(8),d=r(170),u=r(171),p=r(37),f=r(29),m=r(30),r=(i=a.FilterEditorHelper,n(y,i),y);function y(e){var a=i.call(this)||this;return a.handlers.changeParameter=function(e,t){return{data:new c.FilterEditorAddOn(e,t,"changeParameter","items","dxqb-filtereditor-parameterspopup"),templateName:"dxqb-filtereditor-changeparameter"}},a.mapper.parameter=d.OperandParameterQBSurface,a.mapper.property=u.OperandPropertyQBSurface,e===p.ParametersMode.ReadWrite&&(a.canCreateParameters=!0,a.newParameters=s.observableArray([]),a.onEditorFocusOut=function(e){if(e){var r=a.newParameters(),o=[];if(m.criteriaForEach(e,function(t){var e;t instanceof f.OperandParameter&&((e=r.filter(function(e){return e.name()===t.parameterName})[0])&&o.push(e))}),0===o.length)a.newParameters.splice(0);else{for(var t=r.filter(function(e){return-1===o.indexOf(e)}),i=0;i<t.length;i++){var n=r.indexOf(t[i]);-1!==n&&r.splice(n,1)}a.newParameters.valueHasMutated()}}},a.onClosing=function(){a.newParameters([])}),a.canSelectLists=!1,a.getDisplayPropertyName=function(){return l.Deferred().resolve("").promise()},a}t.QBFilterEditorHelper=r,t.QBFilterEditorHelperDefault=r,t._setQBFilterEditorHelperDefault=function(e){t.QBFilterEditorHelperDefault=e}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.OperandParameterQBSurface=void 0,r(2)),s=r(211),l=r(1),c=r(75),r=(n=s.OperandParameterSurface,i(d,n),Object.defineProperty(d.prototype,"_parameterType",{get:function(){return this.fieldsOptions()&&this.fieldsOptions().selected()&&this.fieldsOptions().selected().dataType||"System.String"},enumerable:!1,configurable:!0}),d.prototype._createParameter=function(t,e){""!==t&&t!==d.defaultDisplay()&&0===this.helper.parameters().filter(function(e){return e.name()===t}).length&&(e=new c.ParameterViewModel({"@Name":t,"@Type":e}),this.helper.newParameters.push(e))},d.prototype.isDefaultTextDisplayed=function(){return this.parameterName()===d.defaultDisplay()},d.defaultDisplay=function(){return l.getLocalization("Create new parameter","AnalyticsCoreStringId.FilterEditor_Operand_CreateNewParameter")},d);function d(e,t,r,o){var i=n.call(this,e,t,r,o)||this;return i.createParameter=function(){i.canCreateParameters&&(i.model.parameterName=i.parameterName(),i._createParameter(i.parameterName(),i._parameterType),i.helper.onChange())},i._parameterName=a.observable(""),i.isEditable=a.observable(!1),i.defaultDisplay=d.defaultDisplay,i._parameterName(a.unwrap(e.parameterName)),i.canCreateParameters=i.helper.canCreateParameters,i.fieldsOptions=t.leftPart.fieldsOptions,i.parameterName=a.pureComputed({read:function(){return i._parameterName()||i.canCreateParameters&&d.defaultDisplay()||""},write:function(e){e!==d.defaultDisplay()&&e&&(i.model.parameterName=a.unwrap(e),i._parameterName(i.model.parameterName))}}),!i.canCreateParameters||i.isDefaultTextDisplayed()||a.unwrap(i.fieldListProvider).hasParameter(e.parameterName)||i.createParameter(),i}t.OperandParameterQBSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.OperandPropertyQBSurface=void 0,r(2)),r=r(211),r=(i=r.OperandPropertySurface,n(s,i),s.prototype._updateSpecifics=function(){s.updateSpecifics(this)},s.updateSpecifics=function(e){var t=a.unwrap(e.fieldListProvider);t&&t.getColumnInfo&&((t=t.getColumnInfo(e.propertyName()))&&(e.specifics(t.specifics.toLowerCase()),e.dataType(t.dataType),(e=a.unwrap(e.fieldsOptions))&&e.selected(t)))},s);function s(e,t,r,o){return i.call(this,e,t,r,o)||this}t.OperandPropertyQBSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.GroupFilterEditorSerializer=void 0,r(8)),s=r(0),l=r(55),c=r(29),d=r(30),u=r(30),r=(i=a.FilterEditorSerializer,n(p,i),p.prototype._columnDisplayName=function(e){return e.table()+"."+e.actualName()},p.prototype._findAggregatedColumn=function(t){return s.find(this._columns(),function(e){return l.isAggregatedExpression(e)&&t(e)})},p.prototype.serializeOperandProperty=function(t){var r=this,e=this._findAggregatedColumn(function(e){return t.propertyName===r._columnDisplayName(e)});return"["+(e?e.actualName():t.propertyName)+"]"},p.prototype.deserialize=function(e){var t=this,e=u.CriteriaOperatorStateMachine.parse(e);return e&&d.criteriaForEach(e,function(e){e instanceof c.OperandProperty&&(e.propertyName=t._aggregatePropertyName(e))}),i.prototype.deserializeOperand.call(this,e)},p);function p(e){var r=i.call(this)||this;return r._columns=e,r._aggregatePropertyName=function(t){var e=r._findAggregatedColumn(function(e){return e.actualName()===t.propertyName});return e?r._columnDisplayName(e):t.propertyName},r}t.GroupFilterEditorSerializer=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryElementBaseSurface=void 0,r(2)),s=r(4),l=r(0),r=(i=s.SurfaceElementBase,n(c,i),c._unitProperties={_height:function(e){return e.size.height},_width:function(e){return e.size.width},_x:function(e){return e.location.x},_y:function(e){return e.location.y}},c);function c(e,t,r){e=i.call(this,e,t,l.extend({},c._unitProperties,r))||this;return e.template="dx-diagram-element",e.selectiontemplate="dx-diagram-element-selection",e.contenttemplate="dx-diagram-element-content",e.margin=a.observable(0),e}t.QueryElementBaseSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.AllColumnsSurface=void 0,r(2)),s=r(4),l=r(0),r=(i=s.SurfaceElementBase,n(c,i),c);function c(e,t){var r=i.call(this,e,t,null)||this;return r.template="dxqb-table-asterisk-field",r.toggleSelected=function(){r.getControlModel().selected(!r.getControlModel().selected())},r.selectedWrapper=a.pureComputed(function(){return r.getControlModel().selected()}),r.isOverAsterisk=a.pureComputed(function(){return r.underCursor().isOver&&!l.DragDropHandler.started()}),r.cssClasses=function(){return{"dxd-state-active":r.selected,"dxd-state-hovered":r.isOverAsterisk()}},r}t.AllColumnsSurface=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationAllColumnsViewModel=t.FederationColumnViewModel=void 0,r(20)),s=r(15),l=r(74),r=r(73),r=(i=r.ColumnViewModel,n(c,i),c.prototype.getInfo=function(){return a.expressionSerializationInfo},c);function c(e,t,r,o){return i.call(this,e,t,r,o)||this}t.FederationColumnViewModel=r;d=l.AllColumnsViewModel,n(u,d),u.prototype.getInfo=function(){return[s.name]};var d,r=u;function u(e,t){return d.call(this,e,t)||this}t.FederationAllColumnsViewModel=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTablesExpressionFieldListProvider=void 0;var o=r(3),i=r(0),n=r(1);function a(e,t){this.provider=e,this.tables=t}a.prototype.getItems=function(e){var t,r=o.Deferred();return""===e.path?r.resolve(this.tables().map(function(e){return{name:e.actualName(),displayName:e.actualName(),isList:!0,specifics:"List",dragData:{noDragable:!1}}})):((t=e.fullPath.split(".")).shift(),(e=i.findFirstItemMatchesCondition(this.tables(),function(e){return e.actualName()===t.join(".")}))&&this.provider.getItems(new n.PathRequest(e.path)).done(function(e){return r.resolve(e)})),r.promise()},t.FederationTablesExpressionFieldListProvider=a},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTransformQueryBuilderPopup=void 0,r(2)),s=r(0),l=r(1),c=r(71),d=r(0),u=r(46),p=r(27),f=r(1),m=r(178),y=r(119),h=r(0),r=(n=c.FederationQueryBuilderPopupBase,i(g,n),g.prototype._updateColumns=function(r,o){var i=this;this.transformSources(r.map(function(e){var t=!e.isList;return{columns:r,column:e.displayName,name:e.name,key:o+"."+e.name,alias:void 0,transform:{value:a.observable(t&&void 0),disabled:t,onValueChanged:function(){i.resultFieldListModel.valueHasMutated()}}}}))},g.prototype._aliasValidationCallback=function(t,e){var r=h.findFirstItemMatchesCondition(this.transformSources(),function(e){return e.alias===t});return!(!r||r.key!==e.key)||!r},g.prototype.dispose=function(){n.prototype.dispose.call(this),this.resultFieldListModel=null,this.transformGrid=null},g.prototype.addDataMember=function(e){this.currentPath(e.path),this.updateColumns(),this.transformSources.valueHasMutated()},g.prototype.updateColumns=function(){var t=this,r=this.currentPath();this._dataSource.fielListProvider.getItems(new l.PathRequest(this.currentPath())).done(function(e){t._updateColumns(e,r)})},g.prototype.canSave=function(){return this.transformSources().some(function(e){return e.transform.value()||e.alias})},g.prototype.save=function(){var t=this.transformQuery();t.root(new p.SourceQuery({},new f.ModelSerializer,this._dataSource.getQueryNameFromPath(this.currentPath()),this.currentPath())),t.transformationRules([]),this.transformSources().forEach(function(e){(e.transform.value()||e.alias)&&t.transformationRules.push(new u.FederationTransformationRule({"@Name":e.name,"@Alias":e.alias,"@Unfold":e.transform.value(),"@Flatten":e.transform.value()}))}),this.onSaveCallback(this.transformQuery()),this.close()},g.prototype.onHiding=function(){this.transformQuery(null),this.transformResultCollapsed(!1),this.currentPath(""),this.transformSources([])},g.prototype.show=function(t){var r,e,o,i=this;this.transformQuery(t),t.root&&t.root()&&(r=this._dataSource.getPathFromQueryName(t.root().sourceName()),this.currentPath(r),this._dataSource.fielListProvider.getItems(new l.PathRequest(r)).done(function(e){i._updateColumns(e,r),t.transformationRules().forEach(function(t){var e=i.transformSources().filter(function(e){return e.name===t.name()})[0];e.alias=t.alias(),e.transform.value(t.unfold())})})),this.currentPath()||(e=this._dataSource.dataSources()[0],o=e.ref||e.id,e.isListType?(this.currentPath(o),this.updateColumns()):this._dataSource.fielListProvider.getItems(new l.PathRequest(o)).done(function(e){i.currentPath(e[0]&&e[0].isListType?o+"."+e[0].name:o),i.updateColumns()})),this.popupVisible(!0)},g);function g(e,t,r){var o=n.call(this,e,t,r=void 0===r?!1:r)||this,e=(o.transformGridTitle=a.observable(),o.transformResultGridTitle=a.observable(),o.transformResultCollapsed=a.observable(!1),o.transformSources=a.observable([]),o.currentPath=a.observable(),o.transformQuery=a.observable(),o.popupContentTemplate="dxrd-querybuilder-transform-popup-content",o.transformGrid={rtlEnabled:r,noDataText:function(){return""},dataSource:o.transformSources,showRowLines:!0,paging:{enabled:!1},scrolling:{mode:"infinite"},editing:{allowUpdating:!0,mode:"cell"},height:"100%",columns:[{dataField:"column",get caption(){return s.getLocalization("Column Name","DataAccessUIStringId.QueryBuilderColumns_ColumnName")},allowEditing:!1},{dataField:"alias",get caption(){return s.getLocalization("Alias","DataAccessUIStringId.QueryBuilderColumns_Alias")},validationRules:[o._aliasValidationRule]},{type:"buttons",get caption(){return s.getLocalization("Transform","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_Transform")},buttons:[{template:function(e,t){var r=document.createElement("div");e.append(r),a.renderTemplate("dxrd-querybuilder-transform-checkbox",t.data,{},r,"replaceNode")}}]}],onRowUpdating:function(e){e.oldData.alias=e.newData.alias,o.resultFieldListModel.valueHasMutated(),o.transformSources.valueHasMutated()}},new m.TransformResultSchemaProvider(o._dataSource.dbSchemaProvider,o.transformSources,o.currentPath)),i=(o.resultFieldListModel=a.observable({itemsProvider:e,path:o.currentPath,selectedPath:a.observable(),treeListController:null}),new y.FederatedTransformQueryBuilderTreeListController(o.dragDropHandler,function(e){return i.isDraggable(e)&&o.addDataMember(e)}));return o.fieldListModel={itemsProvider:o._dataSource.dbSchemaProvider,treeListController:i,selectedPath:o.selectedPath,pageSize:100,expandRootItems:!0},o._disposables.push(o.currentPath.subscribe(function(e){o.selectedPath(e),o.transformGridTitle(d.formatUnicorn(s.getLocalization("Transformation node root: {0}","DataAccessUIStringId.FederationDataSourceQueryBuilder_TransformationNodeRoot"),o._dataSource.getQueryNameFromPath(e)))}),i,e,i),o.transformResultGridTitle(s.getLocalization("Transformation result","DataAccessUIStringId.FederationDataSourceQueryBuilder_TransformationResult")),o}t.FederationTransformQueryBuilderPopup=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransformResultSchemaProvider=void 0;var s=r(3),l=r(1),c=r(0);t.TransformResultSchemaProvider=function(n,a,e){var t=this;this.getItems=function(t){var i=s.Deferred();return!e()||t.fullPath.split(".").length>e().split(".").length?i.resolve([]).promise():(n.getItems(t).done(function(e){var o=[],r=[];e.forEach(function(t){var e=a().filter(function(e){return e.name==t.name})[0];c.isList(t)&&e&&e.transform.value()?r.push(e):(t.displayName=e&&e.alias||t.displayName,o.push(t))}),0===r.length?i.resolve(o):s.when.apply(s,r.map(function(r){return n.getItems(new l.PathRequest(t.fullPath+"."+r.name)).always(function(e){e.forEach(function(e){var t=(r.alias||r.column)+"_"+e.displayName;e.displayName=t,e.name=t}),i.resolve(e.concat(o))})}))}),i.promise())},this.dispose=function(){t.getItems=null,n=null}}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationUnionQueryBuilderPopup=void 0,r(2)),s=r(0),l=r(47),c=r(6),d=r(1),u=r(71),p=r(0),r=(n=u.FederationQueryBuilderPopupBase,i(f,n),f.prototype._aliasValidationCallback=function(t,e){var r=p.findFirstItemMatchesCondition(this.columns(),function(e){return e.alias===t});return!(!r||r.key!==e.key)||!r},f.prototype.dispose=function(){n.prototype.dispose.call(this),this.sourcesGrid=null,this.aliasGrid=null},f.prototype.addDataMember=function(t){var r=this;this._dataSource.fielListProvider.getItems(new d.PathRequest(t.path)).done(function(e){e.forEach(function(e){return r.unionQuery().addSelectQuery(t.path,e.name)}),r.unionQuery.valueHasMutated()})},f.prototype.canSave=function(){return this.unionQuery()&&0<this.unionQuery().queries().length},f.prototype.save=function(){var r=this;this.unionQuery().queries().forEach(function(e){e.expressions(e.expressions().filter(function(t){var e=r.columns().filter(function(e){return e.name===t.name()})[0];return!!e&&(t.alias(e.alias),!0)}))}),this.onSaveCallback(this.unionQuery()),this.close()},f.prototype.onHiding=function(){this.unionQuery(null),this.unionAll(!1)},f.prototype.show=function(e){this.unionQuery(e),this.popupVisible(!0),this.unionAll(e.unionType()===l.UnionTypes[l.UnionTypes.UnionAll])},f);function f(e,t,r){var i=n.call(this,e,t,r=void 0===r?!1:r)||this,e=(i.unionQuery=a.observable(),i.unionAll=a.observable(!1),i.columns=a.observableArray(),i.popupContentTemplate="dxrd-querybuilder-union-popup-content",i.buttonItems.push({toolbar:"bottom",location:"before",widget:"dxCheckBox",options:{text:s.getLocalization("Union All","DataAccessUIStringId.FederationDataSourceQueryBuilder_NodeType_UnionAll"),value:i.unionAll}}),a.pureComputed(function(){return i.unionQuery()&&i.unionQuery().queries().map(function(e){e=e.alias.peek();return{source:e.split("_").join(" - "),name:e}})}));return i._disposables.push(e),i.sourcesGrid={rtlEnabled:r,noDataText:function(){return s.getLocalization("Drop a table or view here to create a query.","AnalyticsCoreStringId.QueryBuilder_SurfacePlaceholder")},dataSource:e,showRowLines:!0,paging:{enabled:!1},scrolling:{mode:"infinite"},columns:[{dataField:"source",get caption(){return s.getLocalization("Source","DataAccessUIStringId.QueryBuilderColumns_Source")}},{type:"buttons",width:30,buttons:[{icon:"delete",onClick:function(e){i.unionQuery().removeQuery(e.row.data.name),i.unionQuery.valueHasMutated()},cssClass:"dxrd-image-recycle-bin",template:c.getTemplate("dxrd-svg-operations-recycle_bin")}]}]},i._disposables.push(i.unionQuery.subscribe(function(e){var r=[],o=[];i.columns([]),e&&0!==e.queries().length&&(e.queries().forEach(function(e){return r.push(e.expressions())}),r[0]&&r[0].forEach(function(t){r.every(function(e){return!!e.filter(function(e){return e.name()===t.name()})[0]})&&o.push({name:t.name(),alias:t.alias(),key:t.table()+"."+t.name()})}),i.columns(o))})),i._disposables.push(i.unionAll.subscribe(function(e){i.unionQuery()&&(e?i.unionQuery().unionType(l.UnionTypes[l.UnionTypes.UnionAll]):i.unionQuery().unionType(l.UnionTypes[l.UnionTypes.Union]))})),i.aliasGrid={rtlEnabled:r,dataSource:i.columns,showRowLines:!0,editing:{allowUpdating:!0,mode:"cell"},paging:{enabled:!1},scrolling:{mode:"infinite"},height:"100%",columns:[{dataField:"name",caption:"Column Name",allowEditing:!1},{dataField:"alias",get caption(){return s.getLocalization("Alias","DataAccessUIStringId.QueryBuilderColumns_Alias")},validationRules:[i._aliasValidationRule]}],onRowUpdating:function(e){e.oldData.alias=e.newData.alias}},i}t.FederationUnionQueryBuilderPopup=r},function(e,t,r){"use strict";function o(e){this._rootItems=e}Object.defineProperty(t,"__esModule",{value:!0}),t.FederationDataSourceItemsExtender=void 0,o.prototype.afterItemsFilled=function(e,t){t.forEach(function(e){void 0===e.isListType&&(e.isListType="List"===e.specifics)})},o.prototype.beforeItemsFilled=function(e,t){return!e.fullPath&&(t.push.apply(t,this._rootItems().map(function(e){return{name:e.id||e.ref,displayName:e.name,isList:!0,specifics:e.specifics||"ListSource",isSupportQueries:e.isSupportQueries,isListType:e.isListType}})),!0)},t.FederationDataSourceItemsExtender=o},function(e,t,r){"use strict";var o,l,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=(Object.defineProperty(t,"__esModule",{value:!0}),t.FederationTreeNodeProvider=void 0,r(3)),d=r(2),u=r(22),n=r(107),p=r(0),f=r(124),m=r(47),y=r(0),h=r(46),g=r(1),r=(l=n.TreeNodeItemsProvider,i(a,l),a.prototype.isList=function(e,t){return!t.isListType&&l.prototype.isList.call(this,e,t)},a);function a(e,t,i,o,n){var a=l.call(this,e,t,function(e,t,r){return new _(e.name,e.displayName,e.specifics,e.isListType,t,r,n)},function(e,t,r){return new u.FieldTreeNode(e.name,e.displayName,e.specifics,t,r,n)})||this,s=(a._callBack=d.observable({deleteAction:function(t){a._customQueries.remove(p.findFirstItemMatchesCondition(a._customQueries(),function(e){return(e.alias()||e.generateName())===t}))},disableCustomSql:!1,showQbCallBack:null,showQbCallBacks:null}),a.getItems);return a._customQueries=o,a.getItems=function(e){var t,r=c.Deferred();return e.fullPath&&2<e.fullPath.split(".").length&&r.resolve([]),"queries"===e.fullPath?(t=o().map(function(t){var e,r=t.alias()||t.generateName(),o=a._queries.children().filter(function(e){return e.query===t})[0];if(o)return o;e=t instanceof m.UnionQuery?d.observable(y.extend(a._callBack(),{showQbCallBack:i.unionCallBack})):t instanceof h.TransformQuery?d.observable(y.extend(a._callBack(),{showQbCallBack:i.transformCallBack})):d.observable(y.extend(a._callBack(),{showQbCallBack:i.joinCallBack}));r=new u.TreeQueryNode(r,r,"query",!!o&&o.checked(),d.observableArray([]),e,n,t);return r.path="queries."+r.name,a._disposables.push(r),r}),a._queries.initializeChildren(t),r.resolve(t)):s(e,!0).done(function(e){return r.resolve(e)}),r.promise()},a._callBack().showQbCallBacks=i,a._disposables.push(a._queries=new f.FederatedQueriesTreeNode("queries",g.getLocalization("Federated Queries","DataAccessUIStringId.FederatedQueryCollectionList_Title"),"list",!1,a._callBack,n)),t.valueHasMutated(),a._rootItems.push(a._queries),a.dispose=function(){l.prototype.dispose.call(a),a.removeProperties()},a}t.FederationTreeNodeProvider=r;s=u.DataMemberTreeNode,i(b,s);var s,_=b;function b(e,t,r,o,i,n,a){e=s.call(this,e,t,r,i,n,a)||this;return e.isListType=o,e}},function(e,t,r){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t._createDataSourceWizard=t._registerDataSourceWizardPages=t.DataSourceWizard=t.DataSourceWizardPageIterator=t.DataSourceWizardSettings=t._DataSourceWizardOptions=t._DataSourceWizardOptionsBase=void 0,r(2)),a=r(1),s=r(0),l=r(56),c=r(5),d=r(51),u=r(48),p=r(67),f=r(68),m=r(69),y=r(50),h=r(101),g=r(157),_=r(154),r=r(33),b=(Object.defineProperty(v.prototype,"jsonDataSourceAvailable",{get:function(){return this.wizardSettings.enableJsonDataSource&&(this.allowCreateNewJsonConnection||0<(n.unwrap(this.connectionStrings.json)||[]).length)},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"sqlDataSourceAvailable",{get:function(){return this.wizardSettings.enableSqlDataSource&&0<(n.unwrap(this.connectionStrings.sql)||[]).length},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"objectDataSourceAvailable",{get:function(){return this.wizardSettings.enableObjectDataSource},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"canCreateDataSource",{get:function(){return this.jsonDataSourceAvailable||this.sqlDataSourceAvailable||this.objectDataSourceAvailable},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"federationDataSourceAvailable",{get:function(){return this.wizardSettings.enableFederationDataSource&&this.dataSources&&this.dataSources()&&0<this.dataSources().length},enumerable:!1,configurable:!0}),v);function v(){this.connectionStrings={json:n.observableArray([]),sql:n.observableArray([])},this.callbacks={},this.rtl=!1,this.disableCustomSql=!1,this.wizardSettings=(new x).createDefault(),this.allowCreateNewJsonConnection=!1}t._DataSourceWizardOptionsBase=b;i(P,S=b);var S,b=P;function P(){return null!==S&&S.apply(this,arguments)||this}t._DataSourceWizardOptions=b;C.prototype.createDefault=function(e){var t={enableJsonDataSource:!0,enableSqlDataSource:!0,enableObjectDataSource:!0,enableFederationDataSource:!0};return e&&(void 0!==e.enableJsonDataSource&&(t.enableJsonDataSource=e.enableJsonDataSource),void 0!==e.enableSqlDataSource&&(t.enableSqlDataSource=e.enableSqlDataSource),null!=e.enableObjectDataSource&&(t.enableObjectDataSource=e.enableObjectDataSource),null!=e.enableFederationDataSource&&(t.enableFederationDataSource=e.enableFederationDataSource)),t};var x=C;function C(){}t.DataSourceWizardSettings=x;T=d.PageIterator,i(O,T),O.prototype.getNextPageId=function(e){return!e&&this._isMoreThanOneDataSourceTypeAvailable(this._dataSourceWizardOptions)?c.DataSourceWizardPageId.ChooseDataSourceTypePage:e?e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Sql?c.SqlDataSourceWizardPageId.ChooseConnectionPage:e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Federation?c.FederationDataSourceWizardPageId.FederatedQueryConfigurePage:e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Json&&0<this._dataSourceWizardOptions.connectionStrings.json().length?c.JsonDataSourceWizardPageId.ChooseConnectionPage:this._dataSourceWizardOptions.allowCreateNewJsonConnection&&e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===u.DataSourceType.Json?c.JsonDataSourceWizardPageId.ChooseJsonSourcePage:e===c.JsonDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().jsonDataSourceWizard.connectionName?c.JsonDataSourceWizardPageId.ChooseJsonSchemaPage:this._dataSourceWizardOptions.allowCreateNewJsonConnection&&e===c.JsonDataSourceWizardPageId.ChooseConnectionPage&&!this._getCurrentState().jsonDataSourceWizard.connectionName?c.JsonDataSourceWizardPageId.ChooseJsonSourcePage:e===c.JsonDataSourceWizardPageId.ChooseJsonSourcePage?c.JsonDataSourceWizardPageId.ChooseJsonSchemaPage:e===c.SqlDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().sqlDataSourceWizard.name?c.SqlDataSourceWizardPageId.ConfigureQueryPage:e===c.SqlDataSourceWizardPageId.ConfigureQueryPage&&this._getCurrentState().sqlDataSourceWizard.sqlDataSourceJSON?c.SqlDataSourceWizardPageId.ConfigureParametersPage:void 0:this.getNextPageId(c.DataSourceWizardPageId.ChooseDataSourceTypePage)};var T,w=O;function O(e,t,r){e=T.call(this,e,t)||this;return e._dataSourceWizardOptions=r,e}t.DataSourceWizardPageIterator=w;D=r.PopupWizard,i(I,D),I.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new w(e,t,r._wizardOptions)}),this._wizardOptions.sqlDataSourceAvailable||!s.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=u.DataSourceType.Sql:(this._wizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource)&&(e.dataSourceType=u.DataSourceType.Json),D.prototype.initialize.call(this,e,t)},I.prototype.canRunWizard=function(){return this._wizardOptions.jsonDataSourceAvailable||this._wizardOptions.sqlDataSourceAvailable};var D,N=I;function I(e,t){e=D.call(this,e,t.callbacks.finishCallback)||this;return e._wizardOptions=t,e._extendCssClass="dxrd-sqldatasource-wizard",e.title=a.getLocalization("Data Source Wizard","AnalyticsCoreStringId.DSWizard_Title"),e}function E(e,t){return void 0===e&&(e=new l.PageFactory),u._registerChooseDataSourceTypePage(e,t),y._registerChooseJsonSourcePage(e,t.requestWrapper,t.callbacks.getItemsProviderCallback),f._registerChooseJsonConnectionPage(e,t),m._registerChooseJsonSchemaPage(e,t.requestWrapper,t.callbacks),h._registerConfigureObjectDataSourceParametersPage(e,t.callbacks.getItemsProviderCallback),_._registerConfigureQueryPage(e,t),p._registerChooseSqlConnectionPage(e,t.connectionStrings.sql),g._registerConfigureParametersPage(e,t.requestWrapper),e}t.DataSourceWizard=N,t._registerDataSourceWizardPages=E,t._createDataSourceWizard=function(e,t){return e=E(e=void 0===e?new l.PageFactory:e,t),new N(e,t)}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenWizardPageFactory=void 0,r(56)),r=(i=r.PageFactory,n(a,i),a.prototype.registerMetadata=function(e,t){i.prototype.registerMetadata.call(this,e,t)},a.prototype.getMetadata=function(e){return i.prototype.getMetadata.call(this,e)},a);function a(){var e=null!==i&&i.apply(this,arguments)||this;return e.metadata={},e}t.FullscreenWizardPageFactory=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageSectionFactory=void 0,r(56)),r=(i=r.PageFactory,n(a,i),a.prototype.registerMetadata=function(e,t){i.prototype.registerMetadata.call(this,e,t),void 0===t.position&&(t.position=Object.keys(this.metadata).length-1),void 0===t.recreate&&(t.recreate=!1),void 0===t.disabledText&&(t.disabledText="")},a);function a(){return null!==i&&i.apply(this,arguments)||this}t.WizardPageSectionFactory=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageProcessor=void 0,r(2)),s=r(3),l=r(1),c=r(112),d=r(186),u=r(1),p=r(10),f=r(14),r=(i=l.Disposable,n(m,i),m.prototype.dispose=function(){i.prototype.dispose.call(this),this.sections.forEach(function(e){return e.resetPage()}),this.sections=[]},m.prototype._createLoadingState=function(e){var t=this;e[m.__loadingStateFunctionName]||(e[m.__loadingStateFunctionName]=function(e){return t._loadingState(e)})},m.prototype._createNextAction=function(e){var t=this;e[f.__nextActionFunctionName]||(e[f.__nextActionFunctionName]=function(){return t._extendedNextAction()})},m.prototype._loadingState=function(e){var t=this;e?(this._loadingTimeout&&clearTimeout(this._loadingTimeout),this._loadingTimeout=setTimeout(function(){t.isLoading(!0)},100)):(this._loadingTimeout&&clearTimeout(this._loadingTimeout),this.isLoading(!1))},m.prototype._extendedNextAction=function(){},m.prototype._resetPageById=function(e){this.getPageById(e).resetPage()},m.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new d.WizardPageSectionIterator(e,t,function(e){return r._resetPageById(e)})}),this.events.call("beforeInitialize",{wizard:this,state:e}),this.stateManager=new c.StateManager(e,this.pageFactory),this.iterator=t(this.pageFactory,this.stateManager),this.sections=[],Object.keys(this.pageFactory.metadata).forEach(function(e){r.sections.push(new d.WizardPageSection(e,r.pageFactory.metadata[e]))}),this.sections=this.sections.sort(function(e,t){return e.metadata.position-t.metadata.position}),this.events.call("afterInitialize",{wizard:this})},m.prototype._canNext=function(e){var t=!this.isLoading()&&e&&e.page&&this.pageFactory.getMetadata(e.pageId);return t&&t.canNext(e.page)},m.prototype._canFinish=function(e){return!this.isLoading()&&e&&this.pageFactory.getMetadata(e.pageId).canFinish(e.page)},m.prototype._initPage=function(e,t,r){var o=this;if(void 0===t&&(t=!1),void 0===r&&(r=!1),this._createNextAction(e.page),e.onChange)return e.onChange(function(){o._changeTimeout&&clearTimeout(o._changeTimeout),o._changeTimeout=setTimeout(function(){o._nextAction(e)},100)}),e.initialize(this.stateManager.getPageState(e.pageId),t,r).always(function(){return o._loadingState(!1)});throw Error("Page with id "+e.pageId+" cannot be used in AutoNavigation, because it does not have method OnChange")},m.prototype.getPageById=function(t){return this.sections.filter(function(e){return e.pageId===t})[0]},m.prototype.start=function(){var t=this,r=(this.events.call("beforeStart",{wizard:this}),this._loadingState(!0),this.iterator.getStartPage());this.events.call("beforePageInitialize",p._createBeforeInitializePageEventArgs(r,this)),this._initPage(r).done(function(){var e=t.getPageById(r.pageId);if(!e)throw Error("Page Section with id "+r.pageId+" is not found.");e.setPage(r),t.events.call("afterPageInitialize",p._createPageEventArgs(r,t)),t._nextAction(r)})},m.prototype.finishAction=function(){for(var t=this,e=s.Deferred(),r=!1,o=this.sections.length-1;0<=o;o--)if(this.sections[o].page()){this.sections[o].page().commit().done(function(e){t.sections[o].page().isChanged&&(t.events.call("beforeFinish",{wizardModel:t,state:t.stateManager.getCurrentState()}),t.stateManager.setPageState(t.sections[o].page().pageId,e),t.events.call("afterFinish",{wizardResult:t,state:t.stateManager.getCurrentState()}))}).always(function(){return e.resolve()}),r=!0;break}return r||e.resolve(),e.promise()},m.prototype._nextAction=function(r,o){var i=this;if(void 0===o&&(o=!1),!this._canNext(r)&&!this._canFinish(r))return r.resetCommitedState(),this.iterator.resetNextPages(r.pageId);this._loadingState(!0),r.commit().done(function(e){r.isChanged||o||r.page&&r.page.changeAlways?(i.stateManager.setPageState(r.pageId,e),i.iterator.getNextPage(r.pageId).done(function(e){e&&0<e.length?e.forEach(function(e){var t=i.getPageById(e.pageId),e=t&&t.page()||e;i.events.call("beforePageInitialize",p._createBeforeInitializePageEventArgs(e,i)),i._initPage(e,!!t.page(),r.isChanged||o).done(function(){i.getPageById(e.pageId).setPage(e),i.events.call("afterPageInitialize",p._createPageEventArgs(e,i)),i._nextAction(e,r.isChanged)})}):i._loadingState(!1),r.isChanged=!1}).fail(function(){return i._loadingState(!1)})):i._loadingState(!1)}).fail(function(){return i._loadingState(!1)})},m.__loadingStateFunctionName="__loadingState",m);function m(e,t,r){var o=i.call(this)||this;return o.pageFactory=e,o.events=new u.EventManager,o._loadingTimeout=null,o._changeTimeout=null,o.sections=[],o.isLoading=a.observable(!1),t&&(o._loadingState=t),r&&(o._extendedNextAction=r),o._disposables.push(o.events),o}t.WizardPageProcessor=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageSectionIterator=t.WizardPageSection=void 0;var o=r(2),i=r(3),n=r(187);function a(e,t){this.pageId=e,this.metadata=t,this.page=o.observable(null)}function s(e,t,r){this.pageFactory=e,this.stateManager=t,this._resetPageCallback=r,this._pagesIds=[],this._pages=[]}a.prototype.resetPage=function(){this.page()&&this.page().dispose(),this.page(null)},a.prototype.setPage=function(e){this.page()!==e&&this.page(e)},t.WizardPageSection=a,s.prototype._resetPages=function(e,t){var r=this;if(void 0===t&&(t=function(e){return r._resetPage(e)}),e<this._pagesIds.length)for(var o=this._pagesIds.length-1;e<=o;o--)this._pagesIds[o].forEach(function(e){return t(e)}),this._pagesIds.splice(o,1)},s.prototype._tryResetPageByMetadata=function(e){return!!this.pageFactory.getMetadata(e).recreate&&(this._resetPage(e),!0)},s.prototype._resetPage=function(e){this.stateManager.resetPageState(e),this._resetPageCallback(e);e=this._getPage(e);e&&(e.dispose(),this._pages.splice(this._pages.indexOf(e),1))},s.prototype._createNewPage=function(e){var t=this.pageFactory.getMetadata(e);return new n.WrappedWizardPageSection(e,t.create(),t)},s.prototype._getPage=function(t){return this._pages.filter(function(e){return e.pageId===t})[0]},s.prototype._getNextPage=function(e){var r=this;return i.Deferred().resolve(e.map(function(e){var t=r._getPage(e);return t&&!r._tryResetPageByMetadata(e)||(t=r._createNewPage(e),r._pages.push(t)),t})).promise()},s.prototype._getPageIndex=function(t){return this._pagesIds.indexOf(this._pagesIds.filter(function(e){return e.some(function(e){return e===t})})[0])},s.prototype.resetNextPages=function(e){this._resetPages(this._getPageIndex(e)+1)},s.prototype.getStartPage=function(){var e=this.getNextPageId(),t=this.pageFactory.getMetadata(e),t=new n.WrappedWizardPageSection(e,t.create(),t);return this._pagesIds.push([e]),t},s.prototype.getNextPage=function(e){var t=this,r=this._getPageIndex(e),o=this.getNextPageId(e);return o?(o.push||(o=[o]),JSON.stringify(this._pagesIds[r+1])!==JSON.stringify(o)&&(this._resetPages(r+1,function(e){-1===o.indexOf(e)&&t._resetPage(e)}),this._pagesIds.push(o)),this._getNextPage(o)):(this.resetNextPages(e),i.Deferred().reject().promise())},s.prototype.getCurrentState=function(){return this.stateManager.getCurrentState()},s.prototype.getNextPageId=function(e){return""},t.WizardPageSectionIterator=s},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedWizardPageSection=void 0,r(100)),r=(i=r._WrappedWizardPage,n(a,i),a);function a(e,t,r){var o=i.call(this,e,t,r.template,r.description)||this;return o.pageId=e,(o.page=t).onChange&&(o.onChange=function(e){t.onChange(function(){e(),r.onChange&&r.onChange()})}),o}t.WrappedWizardPageSection=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifyJsonDataSourceSettingsPage=t.SpecifyJsonDataSourceSettingsPage=void 0,r(77)),s=r(150),l=r(5),c=r(50),d=r(1),u=r(69),p=r(10),f=(i=a.FullscreenWizardPage,n(m,i),m.prototype.registerSections=function(){0<this._dataSourceWizardOptions.connectionStrings.json().length&&(s._registerSpecifyJsonConnectionPage(this._factory,this._dataSourceWizardOptions.connectionStrings.json,this._dataSourceWizardOptions.allowCreateNewJsonConnection,this._dataSourceWizardOptions.callbacks.getItemsProviderCallback),this._setSectionPosition(l.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage,this._dataSourceWizardOptions.rtl?p.WizardSectionPosition.Right:p.WizardSectionPosition.Left)),this._dataSourceWizardOptions.allowCreateNewJsonConnection&&0===this._dataSourceWizardOptions.connectionStrings.json().length&&(c._registerChooseJsonSourcePage(this._factory,this._dataSourceWizardOptions.requestWrapper,this._dataSourceWizardOptions.callbacks.getItemsProviderCallback),this._setSectionPosition(l.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage,this._dataSourceWizardOptions.rtl?p.WizardSectionPosition.Right:p.WizardSectionPosition.Left),this._factory.getMetadata(l.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage).disabledText=d.getLocalization('To create a data connection, select "No, I\'d like to create a new data connection".',"AnalyticsCoreStringId.JsonDSWizard_CreateNewConnectionPage_Placeholder")),u._registerChooseJsonSchemaPage(this._factory,this._dataSourceWizardOptions.requestWrapper,this._dataSourceWizardOptions.callbacks),this._setSectionPosition(l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage,this._dataSourceWizardOptions.rtl?p.WizardSectionPosition.Left:p.WizardSectionPosition.Right),this._factory.getMetadata(l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage).disabledText=d.getLocalization("To select data fields, choose or create a data connection.","AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSchemaPage_Placeholder")},m.prototype.getNextSectionId=function(e){return!e&&0<this._dataSourceWizardOptions.connectionStrings.json().length?l.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage:e?this._dataSourceWizardOptions.allowCreateNewJsonConnection?e===l.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage||e===l.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage?l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage:void 0:e===l.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage?l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage:void 0:l.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage},m.prototype.canNext=function(){var e=this._sectionsProcessor.getPageById(l.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage);return e&&e.page()&&e.metadata.canNext(e.page().page)},m);function m(e){var t=i.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifyJsonDataSourceSettingsPage=f,t._registerSpecifyJsonDataSourceSettingsPage=function(e,t){e.registerMetadata(l.FullscreenDataSourceWizardPageId.SpecifyJsonDataSourceSettingsPage,{setState:function(e,t){t.jsonDataSourceWizard.connectionName=e.jsonDataSourceWizard.connectionName,t.jsonDataSourceWizard.newConnectionName=e.jsonDataSourceWizard.newConnectionName,t.jsonDataSourceWizard.jsonSource=e.jsonDataSourceWizard.jsonSource,t.jsonDataSourceWizard.dataSourceName=e.jsonDataSourceWizard.dataSourceName,t.jsonDataSourceWizard.jsonScheme=e.jsonDataSourceWizard.jsonScheme,t.jsonDataSourceWizard.rootElement=e.jsonDataSourceWizard.rootElement},getState:function(e){return e},resetState:function(e,t){e.jsonDataSourceWizard.connectionName=t.jsonDataSourceWizard.connectionName,e.jsonDataSourceWizard.jsonSource=t.jsonDataSourceWizard.jsonSource,e.jsonDataSourceWizard.dataSourceName=t.jsonDataSourceWizard.dataSourceName,e.jsonDataSourceWizard.newConnectionName=t.jsonDataSourceWizard.newConnectionName,e.jsonDataSourceWizard.jsonScheme=t.jsonDataSourceWizard.jsonScheme,e.jsonDataSourceWizard.rootElement=t.jsonDataSourceWizard.rootElement},create:function(){return new f(t)},navigationPanelText:d.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifySqlDataSourceSettingsPage=t.SpecifySqlDataSourceSettingsPage=void 0,r(77)),s=r(5),l=r(12),c=r(67),d=r(111),u=r(116),p=r(32),f=r(114),m=r(1),y=r(0),h=r(10),g=(i=a.FullscreenWizardPage,n(_,i),_.prototype.getNextSectionId=function(e){return e?e===s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage&&this._stateManager.getCurrentState().sqlDataSourceWizard.name?s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage:e===s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage?(e=[],0<((t=this._stateManager.getCurrentState().sqlDataSourceWizard).customQueries||[]).length&&e.push(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage),1<l._restoreSqlDataSourceFromState(t).sqlDataSource.queries().length&&e.push(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage),e):void 0:s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage;var t},_.prototype.registerSections=function(){c._registerChooseSqlConnectionPage(this._factory,this._dataSourceWizardOptions.connectionStrings.sql),d._registerMultiQueryConfigurePage(this._factory,this._dataSourceWizardOptions),u._registerConfigureMasterDetailRelationshipsPage(this._factory,p.wrapRebuildResultSchema(this._dataSourceWizardOptions.callbacks.sqlDataSourceResultSchema)),f._registerMultiQueryConfigureParametersPage(this._factory,this._dataSourceWizardOptions.requestWrapper);var e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage);e.description=m.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection"),(e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage)).recreate=!0,e.description=m.getLocalization("Choose predefined queries and/or create custom queries.","AnalyticsCoreStringId.Wizard_Queries_Description"),e.required=!0,(e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage)).description=m.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),e.disabledText=m.getLocalization("To create a master-detail relationship, select two or more queries.","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_Placeholder"),(e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage)).description=m.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters"),e.disabledText=m.getLocalization("To specify query parameters, select a parameterized stored procedure or create a custom query.","AnalyticsCoreStringId.Wizard_ConfigureQueryParameters_Placeholder"),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage,this._dataSourceWizardOptions.rtl?h.WizardSectionPosition.TopRight:h.WizardSectionPosition.TopLeft),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage,this._dataSourceWizardOptions.rtl?h.WizardSectionPosition.TopLeft:h.WizardSectionPosition.TopRight),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage,this._dataSourceWizardOptions.rtl?h.WizardSectionPosition.BottomLeft:h.WizardSectionPosition.BottomRight),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage,this._dataSourceWizardOptions.rtl?h.WizardSectionPosition.BottomRight:h.WizardSectionPosition.BottomLeft)},_);function _(e){var t=i.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifySqlDataSourceSettingsPage=g,t._registerSpecifySqlDataSourceSettingsPage=function(e,t){e.registerMetadata(s.FullscreenDataSourceWizardPageId.SpecifySqlDataSourceSettingsPage,{setState:function(e,t){t.sqlDataSourceWizard.customQueries=e.sqlDataSourceWizard.customQueries,t.sqlDataSourceWizard.name=e.sqlDataSourceWizard.name,t.sqlDataSourceWizard.queryName=e.sqlDataSourceWizard.name,t.sqlDataSourceWizard.sqlDataSourceJSON=e.sqlDataSourceWizard.sqlDataSourceJSON,t.sqlDataSourceWizard.relations=e.sqlDataSourceWizard.relations},getState:function(e){return e},resetState:function(e,t){e.sqlDataSourceWizard=y.extend(!0,{},t)},create:function(){return new g(t)},navigationPanelText:m.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._registerSpecifyFederationDataSourceSettingsPage=t.SpecifyFederationDataSourceSettingsPage=void 0,r(77)),s=r(5),l=r(12),c=r(1),d=r(0),u=r(117),p=r(125),f=r(32),m=r(10),y=(i=a.FullscreenWizardPage,n(h,i),h.prototype.getNextSectionId=function(e){return e?e===s.FullscreenDataSourceWizardSectionId.ConfigureFederatedQueriesPage&&1<l._restoreFederationDataSourceFromState(this._stateManager.getCurrentState().federationDataSourceWizard,this._dataSourceWizardOptions.dataSources).queries().length?s.FullscreenDataSourceWizardSectionId.ConfigureFederatedMasterDetailRelationshipsPage:void 0:s.FullscreenDataSourceWizardSectionId.ConfigureFederatedQueriesPage},h.prototype._showPageDescription=function(){return!0},h.prototype.registerSections=function(){u._registerFederatedQueryConfigurePage(this._factory,this._dataSourceWizardOptions),p._registerFederatedMasterDetailRelationshipsPage(this._factory,f.wrapGetFederationdResultSchema(this._dataSourceWizardOptions.callbacks.federationDataSourceResultSchema),this._dataSourceWizardOptions);var e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureFederatedQueriesPage);e.description=c.getLocalization("Create a federated query.","DataAccessUIStringId.WizardPageConfigureFederatedQueryPage"),(e=this._factory.getMetadata(s.FullscreenDataSourceWizardSectionId.ConfigureFederatedMasterDetailRelationshipsPage)).description=c.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),e.disabledText=c.getLocalization("To create a master-detail relationship, select two or more queries.","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_Placeholder"),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureFederatedQueriesPage,m.WizardSectionPosition.Top),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureFederatedMasterDetailRelationshipsPage,m.WizardSectionPosition.Bottom)},h);function h(e){var t=i.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifyFederationDataSourceSettingsPage=y,t._registerSpecifyFederationDataSourceSettingsPage=function(e,t){e.registerMetadata(s.FullscreenDataSourceWizardPageId.SpecifyFederationDataSourceSettingsPage,{setState:function(e,t){t.federationDataSourceWizard.federationDataSourceJSON=e.federationDataSourceWizard.federationDataSourceJSON,t.federationDataSourceWizard.federatedQueries=e.federationDataSourceWizard.federatedQueries,t.federationDataSourceWizard.relations=e.federationDataSourceWizard.relations,t.federationDataSourceWizard.name=e.federationDataSourceWizard.name},getState:function(e){return e},resetState:function(e,t){e.federationDataSourceWizard=d.extend(!0,{},t)},create:function(){return new y(t)},navigationPanelText:c.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.FullscreenWizard=void 0,r(2)),s=r(33),l=r(192),r=(i=s.PopupWizard,n(c,i),c.prototype._onClose=function(e){this._onCloseCallback=e},c.prototype.onFinish=function(){i.prototype.onFinish.call(this),this.navigationPanel().dispose()},c.prototype._initPage=function(e){var t=this;return e.onChange&&e.onChange(function(){return t.navigationPanel()._resetNextPages(e.pageId)}),i.prototype._initPage.call(this,e)},c.prototype._onResetPage=function(e){this.navigationPanel()._reset(e.pageId)},c.prototype.start=function(e){e&&(this._finishCallback=e),this.navigationPanel()&&this.navigationPanel().resetAll(),this.navigationPanel()&&this.navigationPanel().dispose(),this.navigationPanel(new l.WizardNavigationPanel(this)),i.prototype.start.call(this)},c.prototype._pageDescription=function(){var e=this.navigationPanel()._steps.filter(function(e){return e.isActive()})[0];return e?e.text:this.pageFactory.getMetadata(this._currentPage().pageId).description},c.prototype._description=function(){return""},c);function c(e,t){var r=i.call(this,e,t)||this;return r._extendCssClass="dx-wizard-fullscreen",r.navigationPanel=a.observable(null),r.isVisible.subscribe(function(e){e||(r.navigationPanel()&&r.navigationPanel().resetAll(),r.navigationPanel()&&r.navigationPanel().dispose(),r._onCloseCallback&&r._onCloseCallback())}),r}t.FullscreenWizard=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.WizardNavigationPanel=void 0,r(2)),r=r(1),r=(a=r.Disposable,i(n,a),n.prototype.resetAll=function(){this._steps.forEach(function(e){e.disabled(!0)})},n.prototype._currentStep=function(t){return this._steps.filter(function(e){return e.currentPageId===t})[0]},n.prototype._reset=function(e){e=this._currentStep(e);e&&e.disabled(!0)},n.prototype._resetNextPages=function(e){e=this._currentStep(e);if(e)for(var t=e.stepIndex+1;t<this._steps.length;t++)this._steps[t].disabled(!0)},n.prototype._setStepVisible=function(r){var e=this._steps.filter(function(e,t){return t<r});0<e.length&&!e.some(function(e){return!e.disabled()})&&e.forEach(function(e){return e.visible(!1)})},n);function n(i){var n=a.call(this)||this;return n._steps=[],n._disposables.push(i._currentPage.subscribe(function(t){var e=n._steps.filter(function(e){return e.pageIds.some(function(e){return e===t.pageId})})[0];e&&(e.currentPageId=t.pageId,e.disabled(!1),n._setStepVisible(e.stepIndex))})),Object.keys(i.pageFactory.metadata).forEach(function(e){var t,r=i.pageFactory.metadata[e],o=n._steps.filter(function(e){return e.text===r.navigationPanelText})[0];o?o.pageIds.push(e):(t={text:r.navigationPanelText,pageIds:[e],currentPageId:null,stepIndex:n._steps.length,disabled:s.observable(!0),visible:s.observable(!0)},n._disposables.push(t.isActive=s.computed(function(){return i._currentPage()&&t.currentPageId===i._currentPage().pageId})),t.clickAction=function(){t.isActive()||i.goToPage(t.currentPageId)},n._steps.push(t))}),n._disposables.push(n.isVisible=s.computed(function(){return 1<n._steps.filter(function(e){return e.visible()}).length})),n}t.WizardNavigationPanel=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.UndoEditor=void 0,r(2)),r=r(6),r=(i=r.Editor,n(s,i),s.prototype.generateValue=function(t){var r=this;return this.undoValue||this._disposables.push(this.undoValue=a.computed({read:function(){return r.value()},write:function(e){t().start(),r.value(e),t().end()}})),this.undoValue},s);function s(e,t,r,o){return i.call(this,e,t,r,o)||this}t.UndoEditor=r},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.RightPanelSwitcher=void 0,r(2)),r=r(1),r=(n=r.Disposable,i(s,n),s.prototype.dispose=function(){n.prototype.dispose.call(this),this._collapsed=null},s.prototype.toogle=function(){this._collapsed(!this._collapsed())},Object.defineProperty(s.prototype,"title",{get:function(){return this.getDisplayName(this.editableObj())},enumerable:!1,configurable:!0}),s);function s(e,t,r,o){void 0===r&&(r=function(e){return!0});var i=n.call(this)||this;return i.editableObj=t,i.getDisplayName=o,i._collapsed=e,i._disposables.push(i.visible=a.pureComputed(function(){return!i.disabled()&&!i._collapsed()})),i._disposables.push(i.disabled=a.pureComputed(function(){var e=!t()||!r(t());return e&&!i._collapsed()&&i._collapsed(!0),e})),i}t.RightPanelSwitcher=r},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createQueryBuilderSurface=e.createQueryBuilder=e.createIsLoadingFlag=e.updateQueryBuilderSurfaceContentSize=void 0;var v=t(2),S=t(3),P=t(53),x=t(0),C=t(87),T=t(1),a=t(52),w=t(84),O=t(11),D=t(0),s=t(0),N=t(0),I=t(37),l=t(0),c=t(21),E=t(0),z=t(70),A=t(196),M=t(197),j=t(6),k=t(0),R=t(198),q=t(199),L=t(55),Q=t(0),F=t(0),d=t(200),n=t(240),H=t(91),$=t(8),u=t(0),f=t(194),B=t(0),G=t(61),W={Surface:"dxrd-surface-template-base",Toolbar:"dxqb-toolbar",RightPanel:"dx-right-panel-lightweight",RightPanelSwitcher:"dx-right-panel-switcher",DataPreview:"dxqb-popup#data",SqlPreview:"dxqb-popup#sql"};function p(o,i,n,e){return function(){var e=o(),t=e.find(".dxrd-right-panel:visible").outerWidth()||0,r=e.width()-(t+5);e.find(".dxrd-surface-wrapper").css(n().rtl()?{left:t,right:0,width:r}:{left:0,right:t,width:r}),i(r),n().pageWidth(r)}}function V(e,t){var r=v.observable(!1);return e()._disposables.push(t.subscribe(function(){r(!1)})),v.pureComputed(function(){return t.peek().getDbSchema().done(function(){r(!0)}),!r()||e().tables.peek().some(function(e){return!e.isInitialized()})})}function U(e,t,r){var o=e.subscribe(function(e){t(new a.QuerySurface(e)),t().rtl(!!r.rtl)}),i=new l.SurfaceSelection(["alias","name","sortOrder"]),n=s.createDesigner(e,t,c.controlsFactory,void 0,void 0,void 0,!!r.rtl,i);return n.addDisposables(o),n.findControl=function(e,r){S(".dxqb-main").children(".dxrd-control").each(function(e,t){t=S(t);t.offset().top<=r.clientY&&t.offset().left<=r.clientX&&n.selection.focused(v.dataFor(t[0]))})},n.addDisposables({dispose:function(){return n.findControl=null}}),n}function J(e,t,r,o){function i(){setTimeout(function(){return n()})}var n=p(function(){return S(e).find(".dxqb-designer")},t.surfaceSize,r);t.addDisposables(r.subscribe(function(){n()}));window.addEventListener("resize",i),u.addDisposeCallback(e,function(){window.removeEventListener("resize",i),t.disposableContainer.dispose()}),t.addDisposables(t.tabPanel.width.subscribe(function(){n()})),t.updateSurfaceSize=function(){n()},t.updateSurface=function(){n(),o&&o()}}function m(e,t,r,o){void 0===o&&(o=!0);function i(e){f(new P.QueryViewModel(e,t.dbSchemaProvider(),u,function(e){r.saveQueryRequested({queryLayout:encodeURIComponent(JSON.stringify(e)),connection:encodeURIComponent(G.serializeDataConnection(p))})}))}function n(e){i(e),y({itemsProvider:t.dbSchemaProvider(),treeListController:new M.QueryBuilderTreeListController(h.undoEngine,f,h.fieldDragHandler),selectedPath:v.observable(),pageSize:100,templateName:"dxqb-treelist-item-with-search"})}var a,s,l,c=r&&r.onServerError&&N.processErrorEvent(r.onServerError),d=t.requestWrapper||new O.RequestWrapper,u=t.parametersMode||I.ParametersMode.ReadWrite,p=(C.HandlerUri(t.handlerUri),t.queryModelJson&&(m=new H.SqlDataSource(JSON.parse(t.dataSourceJson)),t.dbSchemaProvider=D._wrapModelInObservable(t.dbSchemaProvider),t.dbSchemaProvider(new w.DBSchemaProvider(m.connection)),t.querySource=D._wrapModelInObservable(t.querySource),t.querySource(JSON.parse(t.queryModelJson))),t.dbSchemaProvider().connection),f=v.observable(),m=v.observable(),y=v.observable(),h=(i(t.querySource()),U(f,m,t)),c=(c&&h.addDisposables(c),h.rootStyle="dxqb-designer dxd-back-primary-invariant",E.getParentContainer),g=(h.dataPreview={isLoading:v.observable(!1),isVisible:v.observable(!1),title:function(){return T.getLocalization("Data Preview (First 100 Rows Displayed)","AnalyticsCoreStringId.DataPreview_Title")},template:"dxqb-data-preview",data:{value:v.observable()},okButtonText:function(){return T.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){e.model.isVisible(!1)},container:c},h.selectStatmentPreview={isLoading:v.observable(!1),isVisible:v.observable(!1),template:"dxqb-selectstatment-preview",title:function(){return T.getLocalization("Select Statement Preview","AnalyticsCoreStringId.QueryBuilder_SelectStatementPreview_Title")},data:{value:v.observable(),aceOptions:z.createDefaultSQLAceOptions(!0),aceAvailable:$.aceAvailable(),additionalOptions:z.createDefaultSQLAdditionalOptions(function(e){h.selectStatmentPreview.data.value(e)}),languageHelper:z.createDefaultSQLLanguageHelper()},okButtonText:function(){return T.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){e.model.isVisible(!1)},container:c},h.parts=[{id:W.Surface,templateName:W.Surface,model:h},{id:W.Toolbar,templateName:W.Toolbar,model:h},{id:W.RightPanel,templateName:W.RightPanel,model:h},{id:W.DataPreview,templateName:W.DataPreview.split("#")[0],model:h.dataPreview},{id:W.SqlPreview,templateName:W.SqlPreview.split("#")[0],model:h.selectStatmentPreview}],h.columnDragHandler=new A.ColumnDragHandler(m,h.selection,h.undoEngine,h.snapHelper,h.dragHelperContent),h.fieldDragHandler=new q.DbObjectDragDropHandler(m,h.selection,h.undoEngine,h.snapHelper,h.dragHelperContent),h.connectionPointDragHandler=h.columnDragHandler,h.resizeHandler.handles="e, w",h.columnsLoadingMsg=function(){return T.getLocalization("Loading...","DataAccessWebStringId.QueryBuilder_ColumnsLoading")},h.addDisposables(t.querySource.subscribe(function(e){n(e)})),n(t.querySource()),v.observable(B.calculateWithZoomFactor(355))),c={editableObject:h.editableObject,properties:new j.ObjectProperties(h.editableObject,null,1),fieldListModel:{treeListOptions:y},tablesTop:g,searchPlaceholder:function(){return k.searchPlaceholder()}},c=new R.AccordionTabInfo(f,c,h.undoEngine,h.selection.focused,u===I.ParametersMode.ReadWrite),_=h.tabPanel,b=(_.tabs.length=0,_.tabs.push(c),_.width(B.calculateWithZoomFactor(375)),h.fieldDragHandler=new q.DbObjectDragDropHandler(m,h.selection,h.undoEngine,h.snapHelper,h.dragHelperContent),h.fieldListProvider=new L.QueryBuilderObjectsProvider(f,L.QueryBuilderObjectsProvider.whereClauseObjectsFilter),h.dataBindingsProvider=h.fieldListProvider,h.parametersBindingsProvider=t.parametersItemsProvider||h.dataBindingsProvider,h.dataBindingsGroupProvider=new L.QueryBuilderObjectsProvider(f,L.QueryBuilderObjectsProvider.groupByObjectsFilter),h.isLoading=V(h.model,t.dbSchemaProvider),h.actionLists=new Q.ActionLists(m,h.selection,h.undoEngine,(a=h,s=r&&r.customizeActions,l=a.model,function(e){var t=x.findFirstItemMatchesCondition(e,function(e){return"Delete"===e.text}),r=(t.imageClassName="dx-icon-dxrd-image-recycle-bin",t.imageTemplateName="dxrd-svg-operations-recycle_bin",x.findFirstItemMatchesCondition(e,function(e){return"Undo"===e.text})),o=(r.disabled=v.pureComputed(function(){return a.isLoading()||!a.undoEngine().undoEnabled()}),x.findFirstItemMatchesCondition(e,function(e){return"Redo"===e.text}));e.splice(0,e.length,t,r,o),e.push({id:C.ActionId.Save,text:"Save",displayText:function(){return T.getLocalization("Save","AnalyticsCoreStringId.MenuButtons_Save")},imageClassName:"dxqb-image-save",imageTemplateName:"dxrd-svg-menu-save",disabled:a.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"S".charCodeAt(0)},clickAction:function(){l().save()},hasSeparator:!0}),e.push({id:C.ActionId.DataPreview,text:"Preview Results",displayText:function(){return T.getLocalization("Preview Results","DataAccessUIStringId.QueryBuilderButtons_PreviewResults")},imageClassName:"dxrd-image-data-preview",imageTemplateName:"dxrd-svg-queryBuilder-data_preview",disabled:a.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"P".charCodeAt(0)},clickAction:function(){l().canSave()&&a.showPreview()},hasSeparator:!0}),e.push({id:C.ActionId.SelectStatementPreview,text:"Preview Select Statement",displayText:function(){return T.getLocalization("Preview Select Statement","AnalyticsCoreStringId.QueryBuilder_PreviewSelectStatement_Tooltip")},imageClassName:"dxrd-image-selectstatement-preview",imageTemplateName:"dxrd-svg-queryBuilder-select_statment",disabled:a.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"E".charCodeAt(0)},clickAction:function(){l().canSave()&&a.showStatement()},hasSeparator:!0}),s&&s(e)})),h.isLoading()||h.undoEngine&&h.undoEngine().clearHistory(),h.addDisposables(h.isLoading.subscribe(function(e){h.undoEngine&&h.undoEngine().clearHistory()})),h.selection.focused(m()),m.subscribe(function(e){h.selection.focused(e)}));return h.addDisposables({dispose:function(){return b.dispose()}}),h.addDisposables(h.editableObject.subscribe(function(e){g.notifySubscribers(null)})),D.appendStaticContextToRootViewModel(h),o&&(r&&r.beforeRender&&r.beforeRender(h),S(e).empty(),v.cleanNode(e),v.applyBindings(h,e)),J(e,h,m,function(){return g(355)}),o&&h.updateSurface(),h.showPreview=function(){h.dataPreview.isLoading(!0),h.dataPreview.isVisible(!0),d.getDataPreview(p,JSON.stringify(f().serialize(!0))).done(function(e){h.dataPreview.data.value(JSON.parse(e.dataPreviewJSON)),h.dataPreview.isLoading(!1)}).fail(function(e){h.dataPreview.isVisible(!1),F.ShowMessage(F.getErrorMessage(e))})},h.showStatement=function(){h.selectStatmentPreview.isLoading(!0),h.selectStatmentPreview.isVisible(!0),d.getSelectStatement(p,JSON.stringify(f().serialize(!0))).done(function(e){e.errorMessage&&F.ShowMessage(e.errorMessage),h.selectStatmentPreview.data.value(e.sqlSelectStatement),h.selectStatmentPreview.isLoading(!1)}).fail(function(e){h.selectStatmentPreview.isVisible(!1),F.ShowMessage(F.getErrorMessage(e))})},h}e.updateQueryBuilderSurfaceContentSize=p,e.createIsLoadingFlag=V,e.createQueryBuilder=function(e,t,r,o){void 0===o&&(o=!0),t.localization&&T.addCultureInfo({messages:t.localization}),n.default({rtlEnabled:!!t.rtl}),d.registerControls();var i=[];return r&&r.customizeLocalization&&r.customizeLocalization(i),k.resolveFromPromises(i,function(){return m(e,t,r,o)})},e.createQueryBuilderSurface=function(e,t,r){var o=v.observable(),i=v.observable(),n=(d.registerControls(),U(o,i,t)),a=new R.SelectedTabInfo(new j.ObjectProperties(n.editableObject,null,1)),s=n.tabPanel,l=new f.RightPanelSwitcher(s.collapsed,n.editableObject,t.showPropertyGridCondition,R.AccordionTabInfo._getSelectedItemPropertyName);return n.addDisposables(a,s,l),s.tabs.length=0,s.tabs.push(a),s.width(B.calculateWithZoomFactor(325)),n.parts=[{id:W.Surface,templateName:W.Surface,model:n},{id:W.RightPanel,templateName:W.RightPanel,model:n},{id:W.RightPanelSwitcher,templateName:W.RightPanelSwitcher,model:l}],n.columnDragHandler=new A.ColumnDragHandler(i,n.selection,n.undoEngine,n.snapHelper,n.dragHelperContent),n.connectionPointDragHandler=n.columnDragHandler,n.selection.focused(i()),n.addDisposables(i.subscribe(function(e){n.selection.focused(e)})),n.rootStyle="dxqb-designer dxd-back-primary-invariant",n.resizeHandler.handles="e, w",n.columnsLoadingMsg=function(){return T.getLocalization("Loading...","DataAccessWebStringId.QueryBuilder_ColumnsLoading")},D.appendStaticContextToRootViewModel(n),o(r(t)),S(e).empty(),v.cleanNode(e),v.applyBindings(n,e),J(e,n,i),n.isLoading(!1),n.updateSurface(),u.addDisposeCallback(e,function(){o()&&o().dispose(),i()&&i().dispose(),r=null,n.disposableContainer.dispose(),n.dispose()}),n}},function(e,t,r){"use strict";var o,n,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnDragHandler=void 0,r(2)),s=r(0),l=r(76),c=r(25),d=r(0),u=r(59),p=r(60),f=r(24),m=r(0),r=(n=s.DragDropHandler,i(y,n),y.prototype._needToCreateRelation=function(){return!!(this.selection.dropTarget&&this.selection.dropTarget instanceof l.ColumnSurface)&&this.selection.dropTarget.getControlModel().parentModel()!==this.getDragColumn().parentModel()},y.prototype.startDrag=function(e){if(this._scrollProcessor=new m.dxScrollProcessor(document.getElementsByClassName("dxqb-mainwin")[0]),e instanceof c.ConnectionPointSurface){var t=e.getControlModel().parentModel();if(this._dragConditionSurface=d.findSurface(t),!this._dragConditionSurface)return;this._dragConditionSurface.isVisible(!1),this._dragColumn(t.startPoint()===e.getControlModel()?t.nestedColumn():t.parentColumn())}else{if(!(e instanceof l.ColumnSurface))throw new Error("ColumnDragHandler can be applied to the Column only.");this._dragColumn(e.getControlModel())}t=new u.RoutedConnectorViewModel({},this.querySurface().getControlModel());this.dragDropConnector(new p.RoutedConnectorSurface(t,this.surface()))},y.prototype.setConnectorPoints=function(e){var t,r,o=this._dragColumn(),i=this.dragDropConnector().getControlModel();this._needToCreateRelation()?(r=f.determineConnectingPoints(o,this.selection.dropTarget.getControlModel()),i.startPoint().connectingPoint(r.start),i.endPoint().connectingPoint(r.end)):(r=this.querySurface().rtl()?this.querySurface().pageWidth()-o.leftConnectionPoint.location.x():o.leftConnectionPoint.location.x(),t=this.querySurface().rtl()?this.querySurface().pageWidth()-o.rightConnectionPoint.location.x():o.rightConnectionPoint.location.x(),r=Math.abs(r-e.left)>Math.abs(t-e.left)?o.rightConnectionPoint:o.leftConnectionPoint,i.startPoint().connectingPoint(r),this.dragDropConnector().endPoint().rect({top:e.top,left:e.left}))},y.prototype.drag=function(e,t){var r=this._scrollProcessor.getScrollOffset();t.position.left+=t.scroll.left+r.left,t.position.top+=t.scroll.top+r.top,t.delta.left=t.position.left-this.surface().underCursor().x-6,t.delta.top=t.position.top-this.surface().underCursor().y-6,this.setConnectorPoints(this._getAbsoluteSurfacePosition(t)),this._scrollProcessor.processOffset({x:e.clientX,y:e.clientY})},y.prototype.doStopDrag=function(){this._scrollProcessor.dispose(),this._scrollProcessor=null,this.dragHelperContent.reset(),this.dragDropConnector()&&this.dragDropConnector().dispose(),this.dragDropConnector(null);try{var e,t,r=null,o=(this._dragConditionSurface&&!this._dragConditionSurface.isVisible()&&(r=this._dragConditionSurface.getControlModel(),this._dragConditionSurface.isVisible(!0)),this.querySurface().getControlModel());this._needToCreateRelation()&&(e=this.selection.dropTarget.getControlModel(),this.undoEngine().start(),r&&r.parentModel().removeChild(r),t=o.cerateJoinCondition(this._dragColumn(),e),this.undoEngine().end(),null!==t&&this.selection.initialize(d.findSurface(t)))}finally{this._dragColumn(null)}},y.prototype.getDragColumn=function(){return this._dragColumn()},y);function y(e,t,r,o,i){t=n.call(this,e,t,r,o,i)||this;return t.querySurface=e,t.undoEngine=r,t._dragColumn=a.observable(null),t._dragConditionSurface=null,t.dragDropConnector=a.observable(null),t.cursor="arrow",t.containment=".dxrd-ghost-container",t.helper=void 0,t}t.ColumnDragHandler=r},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),r=(Object.defineProperty(t,"__esModule",{value:!0}),t.QueryBuilderTreeListController=void 0,r(8)),r=(i=r.TreeListController,n(a,i),a.prototype.dblClickHandler=function(e){this.undoEngine().start(),this._dragDropHandler(e,this.query()),this.undoEngine().end()},a);function a(e,t,r){var o=i.call(this)||this;return o.undoEngine=e,o.query=t,o._dragDropHandler=r.getDropCallback(e,!0),o}t.QueryBuilderTreeListController=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.SelectedTabInfo=t.AccordionTabInfo=void 0,r(2)),l=r(6),n=r(1),c=r(1),d=r(75),u=r(53),p=r(0),f={propertyName:"parameters",displayName:"parameters",editor:{custom:"dxqb-parameterspanel"}},m={propertyName:"selectedItem",displayName:"selectedItem",editor:{custom:"dxqb-propertygrid"}},y={propertyName:"fields",displayName:"fields",editor:{custom:"dxqb-fieldspanel"}},h={propertyName:"query",displayName:"query",editor:{custom:"dxqb-propertygrid"}},r=(a=n.TabInfo,i(g,a),g._getSelectedItemPropertyName=function(e){var t="Selection Properties",r="AnalyticsCoreStringId.QueryBuilder_SelectionProperties";switch(e&&e.controlType){case"Query":case"FQuery":t="Query Properties",r="AnalyticsCoreStringId.QueryBuilder_QueryProperties";break;case"Table":case"FTable":t="Table Properties",r="AnalyticsCoreStringId.QueryBuilder_TableProperties";break;case"Column":t="Column Properties",r="AnalyticsCoreStringId.QueryBuilder_ColumnProperties";break;case"JoinCondition":t="Relation Properties",r="AnalyticsCoreStringId.QueryBuilder_RelationProperties"}return c.getLocalization(t,r)},g._createWrappedObject=function(t,r,e,o){var i=new l.ObjectProperties(t,null,1),n=s.computed(function(){return t()&&t().parameters}),a=[h,m,y],i={selectedItem:r,query:{editableObject:t,properties:i},fields:r,isPropertyVisible:function(e){return"selectedItem"!==e||r.editableObject()!==t()}};return o&&(i.parameters={values:n,addHandler:function(){return new d.ParameterViewModel({"@Type":"System.String"})},collapsed:!1,undoEngine:e,isVisibleButton:function(e,t){return"add"===t||"delete"===t},template:"#dxqb-collectioneditor-template",textEmptyArray:{text:"Click the Add button to create a parameter.",localizationId:"AnalyticsCoreStringId.QueryBuilder_PageConfigureParametersEmpty"}},a.push(f)),i.getInfo=function(){return a},i},g._createGroups=function(e,t){var r=this,o={Query:{info:[h],displayName:function(){return c.getLocalization("Query Properties","AnalyticsCoreStringId.QueryBuilder_QueryProperties")}},SelectedItem:{info:[m],displayName:function(){return r._getSelectedItemPropertyName(e())}},Fields:{info:[y],displayName:function(){return c.getLocalization("Available tables and views","AnalyticsCoreStringId.QueryBuilder_AvailableTables")}}};return t&&(o.Parameters={info:[f],displayName:function(){return c.getLocalization("Parameters","AnalyticsCoreStringId.QueryBuilder_Parameters")}}),o},g._createQBPropertyGrid=function(e,t,r,o){e=this._createWrappedObject(e,t,r,o);return new p.ControlProperties(s.observable(e),{groups:this._createGroups(t.editableObject,o),editors:e.getInfo()},void 0,!1)},g.prototype._getGroupByName=function(t){return this.model.groups.filter(function(e){return e._displayName===t})[0]},g);function g(e,t,r,o,i){var n=a.call(this,{text:"Properties",template:"dxqb-properties-wrapper",model:g._createQBPropertyGrid(e,t,r,i)})||this;return n.active(!0),n._getGroupByName("Fields").collapsed(!1),n._disposables.push(o.subscribe(function(e){e instanceof u.QueryViewModel||n._getGroupByName("SelectedItem").collapsed(!1)})),n}t.AccordionTabInfo=r;_=n.TabInfo,i(b,_);var _,r=b;function b(e){var t=_.call(this,{text:"Properties",template:"dxqb-properties-wrapper-editorlist",model:e})||this;return t.model=e,t}t.SelectedTabInfo=r},function(e,t,r){"use strict";var o,a,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(t,"__esModule",{value:!0}),t.DbObjectDragDropHandler=void 0,r(0)),s=r(21),l=r(4),c=r(4),d=r(0),u=r(0),r=(a=n.DragDropHandler,i(p,a),p.prototype.suggestLocation=function(t,e){e=Math.max.apply(null,e.tables.peek().filter(function(e){return e!==t}).map(function(e){return e.location.x.peek()+3*e.size.width.peek()/2}).concat([30]));t.location.x(e),t.location.y(65)},p.prototype.startDrag=function(e){e&&e.name&&this._query().dbSchemaProvider.getDbTable(e.name)},p.prototype.doStopDrag=function(e,t){this.dragHelperContent.reset(),this.selection.dropTarget&&(e=this._getAbsoluteSurfacePosition(e),this._querySurface().underCursor().x=e.left-this._querySurface().absolutePosition.x(),this._querySurface().underCursor().y=e.top-this._querySurface().absolutePosition.y(),e=t,t=this.getDropCallback(this._undoEngine,!1)(e,this._query()),this.addControl(t,this._querySurface(),this._size))},p.prototype.addControl=function(e,t,r){t.getControlModel().addChild(e);e=d.findSurface(e);e&&(e.rect({left:t.underCursor().x,top:t.underCursor().y,width:r.width()}),this.selection.initialize(e))},p);function p(e,t,r,o,i){var n=a.call(this,e,t,r,o,i)||this;return n._undoEngine=r,n._query=function(){return n._querySurface().getControlModel()},n.getDropCallback=function(o,i){return function(e,t){var r=t.createChild(u.extend({"@ControlType":"Table","@Name":e.data.name},s.controlsFactory.controlsMap.Table.defaultVal));return r.isInitialized()?t.tryToCreateRelationsByFK(r):r.isInitialized.subscribe(function(){o().start(),t.tryToCreateRelationsByFK(r),o().end()}),i&&n.suggestLocation(r,t),r}},n._querySurface=e,n.cursor="arrow",n.containment=".dxqb-designer",n.cursorAt={top:0,left:0},n.helper=function(e){a.prototype.helper.call(n,e),n.recalculateSize(l.Size.fromString("199, 123")),i.setContent(new c.Rectangle(0,0,n._size.width(),n._size.height()))},n}t.DbObjectDragDropHandler=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerControls=void 0;var o=r(83),i=r(21),n=r(15),a=r(4),s=r(4),l=r(96),c=r(201),d=r(65),u=r(202),p=r(203),f=r(95),m=r(121),y=r(123),h=r(54),g=r(36),_=r(76),b=r(73),v=r(122),S=r(52),P=r(53),x=r(120);t.registerControls=function(){o.registerControls(),i.controlsFactory.registerControl("Unknown",{info:n.unknownSerializationsInfo,type:a.ElementViewModel,nonToolboxItem:!0,surfaceType:s.SurfaceElementBase,isDeleteDeny:!0}),i.controlsFactory.registerControl("Relation",{info:l.relationSerializationInfo,defaultVal:{},surfaceType:c.RelationSurface,popularProperties:[],type:d.RelationViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("JoinCondition",{info:u.joinConditionSerializationInfo,defaultVal:{},surfaceType:p.JoinConditionSurface,popularProperties:["_parentColumnName","_nestedColumnName","joinType"],type:f.JoinConditionViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("Table",{info:m.tableSerializationInfo,defaultVal:{},surfaceType:y.TableSurface,popularProperties:["name","alias","columns"],type:h.TableViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("Column",{info:g.columnSerializationInfo,defaultVal:{},surfaceType:_.ColumnSurface,popularProperties:["name","alias","selected"],type:b.ColumnViewModel,elementActionsTypes:[],nonToolboxItem:!0,isDeleteDeny:!0}),i.controlsFactory.registerControl("Query",{info:v.querySerializationsInfo,surfaceType:S.QuerySurface,popularProperties:["name","filterString","groupFilterString"],type:P.QueryViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0,isDeleteDeny:!0}),i.controlsFactory.registerControl("FTable",{info:m.tableSerializationInfo,defaultVal:{},surfaceType:x.FederationTableSurface,popularProperties:["name","alias","columns"],type:x.FederationTableViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("FQuery",{info:x.federationQuerySerializationsInfo,surfaceType:x.FederationQuerySurface,popularProperties:["name"],type:x.FederationQueryViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0,isDeleteDeny:!0})}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.RelationSurface=void 0,r(2)),s=r(4),l=r(0),r=(i=s.SurfaceElementBase,n(c,i),c.prototype._getChildrenHolderName=function(){return"conditions"},c);function c(e,t){t=i.call(this,e,t,null)||this;return t.conditions=a.observableArray(),t.template="dxqb-relation",l.createObservableArrayMapCollection(e.conditions,t.conditions,t._createSurface),t}t.RelationSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinConditionSerializationInfo=t.ConditionType=void 0;r=r(28);t.ConditionType={Equal:"Equal",NotEqual:"NotEqual",Greater:"Greater",GreaterOrEqual:"GreaterOrEqual",Less:"Less",LessOrEqual:"LessOrEqual"},t.joinConditionSerializationInfo=[{propertyName:"left",displayName:"Left",editor:r.editorTemplates.getEditor("text"),disabled:!0,localizationId:"AnalyticsCoreStringId.QueryBuilder_LeftOperand"},{propertyName:"right",displayName:"Right",editor:r.editorTemplates.getEditor("text"),disabled:!0,localizationId:"AnalyticsCoreStringId.QueryBuilder_RightOperand"},{propertyName:"parentColumnName",modelName:"@Parent"},{propertyName:"nestedColumnName",modelName:"@Nested"},{propertyName:"joinType",displayName:"Join Type",editor:r.editorTemplates.getEditor("combobox"),defaultVal:"Inner",valuesArray:[{value:"Inner",displayValue:"Inner join",localizationId:"DataAccessStringId.RelationEditorRelationTypeInnerJoin"},{value:"LeftOuter",displayValue:"Left outer join",localizationId:"DataAccessStringId.RelationEditorRelationTypeLeftOuterJoin"},{value:"RightOuter",displayValue:"Right outer join",localizationId:"DataAccessStringId.RelationEditorRelationTypeRightOuterJoin"},{value:"FullOuter",displayValue:"Full outer join",localizationId:"DataAccessStringId.RelationEditorRelationTypeFullOuterJoin"}],localizationId:"AnalyticsCoreStringId.QueryBuilder_JoinType"},{propertyName:"operator",modelName:"@Operator",displayName:"Operator",editor:r.editorTemplates.getEditor("combobox"),defaultVal:t.ConditionType.Equal,valuesArray:[{value:"Equal",displayValue:"Equals to",localizationId:"DataAccessUIStringId.JoinEditorEqualOperator"},{value:"NotEqual",displayValue:"Does not equal to",localizationId:"DataAccessUIStringId.JoinEditorNotEqualOperator"},{value:"Greater",displayValue:"Is greater than",localizationId:"DataAccessUIStringId.JoinEditorGreaterOperator"},{value:"GreaterOrEqual",displayValue:"Is greater than or equal to",localizationId:"DataAccessUIStringId.JoinEditorGreaterOrEqualOperator"},{value:"Less",displayValue:"Is less than",localizationId:"DataAccessUIStringId.JoinEditorLessOperator"},{value:"LessOrEqual",displayValue:"Is less than or equal to",localizationId:"DataAccessUIStringId.JoinEditorLessOrEqualOperator"}],localizationId:"AnalyticsCoreStringId.QueryBuilder_Operator"},{propertyName:"itemType",modelName:"@itemType"}]},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JoinConditionSurface=void 0,r(2)),r=r(60),r=(i=r.RoutedConnectorSurface,n(s,i),s.prototype.container=function(){return this.getRoot()},s);function s(e,t){t=i.call(this,e,t)||this;return t._disposables.push(t.showArrow=a.pureComputed(function(){return"LeftOuter"===e.joinType()||"FullOuter"===e.joinType()})),t._disposables.push(t.showRightArrow=a.pureComputed(function(){return"RightOuter"===e.joinType()||"FullOuter"===e.joinType()})),t}t.JoinConditionSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSQueryBuilder=void 0;var o=r(1),i=r(0),n=r(61);function a(e){this._queryBuilderModel=e}Object.defineProperty(a.prototype,"queryBuilderModel",{get:function(){return this._queryBuilderModel()},set:function(e){this._queryBuilderModel(e)},enumerable:!1,configurable:!0}),a.prototype.UpdateLocalization=function(e){o.updateLocalization(e)},a.prototype.GetQueryBuilderModel=function(){return this.queryBuilderModel},a.prototype.GetJsonQueryModel=function(){return{Query:this.queryBuilderModel.model().serialize()}},a.prototype.GetSaveQueryModel=function(){return{queryLayout:JSON.stringify(this.GetJsonQueryModel()),connection:this.SerializeDataConnection()}},a.prototype.SerializeDataConnection=function(){var e=this.queryBuilderModel.model().dbSchemaProvider.connection;return n.serializeDataConnection(e)},a.prototype.AdjustControlCore=function(){this.queryBuilderModel&&this.queryBuilderModel.updateSurfaceSize()},a.prototype.Save=function(){this.queryBuilderModel&&this.queryBuilderModel.model().onSave()},a.prototype.ShowPreview=function(){this.queryBuilderModel&&this.queryBuilderModel.showPreview()},a.prototype.IsQueryValid=function(){return this.queryBuilderModel&&this.queryBuilderModel.model().isValid()},a.prototype.OnCallback=function(e){e.queryValidationError&&i.NotifyAboutWarning(e.queryValidationError,!0)},t.JSQueryBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventGenerator=void 0;var o=r(246),i=r(247);function n(){}n.generateQueryBuilderEvents=function(r){return{beforeRender:function(e){r("BeforeRender",e)},saveQueryRequested:function(e){r("SaveQueryRequested",e)},customizeActions:function(e){r("CustomizeMenuActions",{Actions:e,GetById:function(t){return t?e.filter(function(e){return t===e.id})[0]:null}})},customizeLocalization:function(t){r("CustomizeLocalization",{LoadMessages:function(e){e&&("function"==typeof e.then?t.push(e):i.loadMessages(e))},WidgetLocalization:o})},onServerError:function(e){r("OnServerError",{Error:e})}}},t.EventGenerator=n},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.createDiagramDesigner=s.groups=void 0;var l=t(2),c=t(3),r=t(23),d=t(79),u=t(1),p=t(57),f=t(80),m=t(0),y=t(128),h=t(127),g=t(0),_=t(0),b=t(83);s.groups={Appearance:{info:[]},Behavior:{info:[]},Design:{info:[r.name]},Layout:{info:[r.location,r.size,d.pageWidth,d.pageHeight]}},s.createDiagramDesigner=function(e,t,r,o){function i(){a()}r&&u.addCultureInfo({messages:r}),b.registerControls();var n=l.pureComputed(function(){return new d.DiagramViewModel(t())}),r=l.pureComputed(function(){return new f.DiagramSurface(n())}),a=((o=m.createDesigner(n,r,p.diagramControlsFactory,s.groups,void 0,void 0,o)).connectionPointDragHandler=new y.ConnectionPointDragHandler(r,o.selection,o.undoEngine,o.snapHelper,o.dragHelperContent),o.connectingPointDragHandler=new h.ConnectingPointDragHandler(r,o.selection,o.undoEngine,o.snapHelper,o.dragHelperContent),o.isLoading(!1),o.selection.focused(r()),c(e).children().remove(),l.applyBindings(o,e),g.updateSurfaceContentSize(o.surfaceSize,e));return window.addEventListener("resize",i),_.addDisposeCallback(e,function(){window.removeEventListener("resize",i)}),o.tabPanel.width.subscribe(function(){a()}),a(),o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),n=r(3),a=(r(17),r(17),r(17),r(17),r(0)),s=r(0),l=r(0);i.bindingHandlers.routeLineDraggable={init:function(e,t){var o=t(),t=l.extend({snap:".dxrd-drag-snap-line",snapTolerance:a.SnapLinesHelper.snapTolerance},i.unwrap(o),{start:function(e,t){o.starting()},stop:function(e,t){o.stopped()},drag:function(e,t){var r=t.position.left-t.originalPosition.left,t=t.position.top-t.originalPosition.top;o.forceResize({delta:{dx:r,dy:t}})}});n(e).draggable(t)}},i.bindingHandlers.updateConnectorArrow={init:function(e,t,r,o,i){var n,a;n=-1,"Microsoft Internet Explorer"==navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&(n=parseFloat(RegExp.$1)):"Netscape"==navigator.appName&&null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&(n=parseFloat(RegExp.$1)),-1<n&&n<=11&&(a=i.$data.routePointsSet.subscribe(function(){i.$data.showArrow()&&e.parentNode.insertBefore(e,e)}),s.addDisposeCallback(e.parentNode,function(){return a.dispose()}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){e.exports=DevExpress.Analytics.Widgets.Filtering},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(j,e,t){"use strict";var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n=(Object.defineProperty(e,"__esModule",{value:!0}),e._createMultiQueryDataSourceWizard=e._registerMultiQueryDataSourcePages=e.MultiQueryDataSourceWizardPageIterator=e.MultiQueryDataSourceWizard=e._MultiQueryDataSourceWizardOptions=void 0,t(1)),a=t(0),s=t(32),l=t(182),c=t(12),d=t(126),u=t(56),p=t(5),f=t(51),m=t(48),y=t(67),h=t(125),g=t(117),_=t(68),b=t(69),v=t(50),S=t(116),P=t(111),x=t(114),C=t(148),T=t(147),w=t(101),t=t(33),l=(r=l._DataSourceWizardOptionsBase,i(O,r),O);function O(){return null!==r&&r.apply(this,arguments)||this}e._MultiQueryDataSourceWizardOptions=l;D=t.PopupWizard,i(I,D),I.prototype.canRunWizard=function(){return this._wizardOptions.jsonDataSourceAvailable||this._wizardOptions.sqlDataSourceAvailable||this._wizardOptions.objectDataSourceAvailable},I.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new z(e,t,r._wizardOptions)}),this._wizardOptions.sqlDataSourceAvailable||!a.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=m.DataSourceType.Sql:this._wizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource?e.dataSourceType=m.DataSourceType.Json:this._wizardOptions.objectDataSourceAvailable&&(e.dataSourceType=m.DataSourceType.Object),D.prototype.initialize.call(this,e,t)};var D,N=I;function I(e,t){e=D.call(this,e,t.callbacks.finishCallback)||this;return e._wizardOptions=t,e.title=n.getLocalization("Data Source Wizard","AnalyticsCoreStringId.SqlDSWizard_Title"),e._extendCssClass="dxrd-multiqueries-sqldatasource-wizard",e.height(443),e}e.MultiQueryDataSourceWizard=N;E=f.PageIterator,i(A,E),A.prototype.getNextPageId=function(e){if(!e&&this._isMoreThanOneDataSourceTypeAvailable(this._wizardOptions))return p.DataSourceWizardPageId.ChooseDataSourceTypePage;if(!e)return this.getNextPageId(p.DataSourceWizardPageId.ChooseDataSourceTypePage);if(e===p.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===m.DataSourceType.Sql)return p.SqlDataSourceWizardPageId.ChooseConnectionPage;if(e===p.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===m.DataSourceType.Federation)return p.FederationDataSourceWizardPageId.FederatedQueryConfigurePage;if(e===p.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===m.DataSourceType.Object)return p.ObjectDataSourceWizardPageId.ChooseTypesPage;if(e===p.ObjectDataSourceWizardPageId.ChooseTypesPage&&this._getCurrentState().objectDataSourceWizard.selectedType)return p.ObjectDataSourceWizardPageId.ChooseDataMembersPage;if(e===p.ObjectDataSourceWizardPageId.ChooseDataMembersPage)return p.ObjectDataSourceWizardPageId.ConfigureParametersPage;if(e===p.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===m.DataSourceType.Json&&0<this._wizardOptions.connectionStrings.json().length)return p.JsonDataSourceWizardPageId.ChooseConnectionPage;if(this._wizardOptions.allowCreateNewJsonConnection&&e===p.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===m.DataSourceType.Json)return p.JsonDataSourceWizardPageId.ChooseJsonSourcePage;if(e===p.JsonDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().jsonDataSourceWizard.connectionName)return p.JsonDataSourceWizardPageId.ChooseJsonSchemaPage;if(this._wizardOptions.allowCreateNewJsonConnection&&e===p.JsonDataSourceWizardPageId.ChooseConnectionPage&&!this._getCurrentState().jsonDataSourceWizard.connectionName)return p.JsonDataSourceWizardPageId.ChooseJsonSourcePage;if(e===p.JsonDataSourceWizardPageId.ChooseJsonSourcePage)return p.JsonDataSourceWizardPageId.ChooseJsonSchemaPage;if(e===p.SqlDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().sqlDataSourceWizard.name)return p.SqlDataSourceWizardPageId.MultiQueryConfigurePage;if(this._getCurrentState().sqlDataSourceWizard.sqlDataSourceJSON&&e===p.SqlDataSourceWizardPageId.MultiQueryConfigurePage&&0<this._getCurrentState().sqlDataSourceWizard.customQueries.length)return p.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage;if(e===p.SqlDataSourceWizardPageId.MultiQueryConfigurePage||e===p.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage){if(1<c._restoreSqlDataSourceFromState(this._getCurrentState().sqlDataSourceWizard).sqlDataSource.queries().length)return p.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage}else if(e===p.FederationDataSourceWizardPageId.FederatedQueryConfigurePage)if(1<c._restoreFederationDataSourceFromState(this._getCurrentState().federationDataSourceWizard,this._wizardOptions.dataSources).queries().length)return p.FederationDataSourceWizardPageId.FederatedMasterDetailRelationshipsPage};var E,z=A;function A(e,t,r){e=E.call(this,e,t)||this;return e._wizardOptions=r,e}function M(e,t){return void 0===e&&(e=new u.PageFactory),m._registerChooseDataSourceTypePage(e,t),_._registerChooseJsonConnectionPage(e,t),v._registerChooseJsonSourcePage(e,t.requestWrapper,t.callbacks.getItemsProviderCallback),b._registerChooseJsonSchemaPage(e,t.requestWrapper,t.callbacks),y._registerChooseSqlConnectionPage(e,t.connectionStrings.sql),d._registerSpecifyObjectDataSourceSettingsPage(e,t),g._registerFederatedQueryConfigurePage(e,t),h._registerFederatedMasterDetailRelationshipsPage(e,s.wrapGetFederationdResultSchema(t.callbacks.federationDataSourceResultSchema),t),P._registerMultiQueryConfigurePage(e,t),x._registerMultiQueryConfigureParametersPage(e,t.requestWrapper),S._registerConfigureMasterDetailRelationshipsPage(e,s.wrapRebuildResultSchema(t.callbacks.sqlDataSourceResultSchema)),T._registerChooseObjectDataSourceTypesPage(e,t),C._registerChooseObjectDataSourceDataMembersPage(e,t),w._registerConfigureObjectDataSourceParametersPage(e,t.callbacks.getItemsProviderCallback),e}e.MultiQueryDataSourceWizardPageIterator=z,e._registerMultiQueryDataSourcePages=M,e._createMultiQueryDataSourceWizard=function(e,t){return M(e=void 0===e?new u.PageFactory:e,t),new N(e,t)}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t._createDataSourceFullscreenWizard=t.FullscreenDataSourceWizardPageIterator=t.FullscreenDataSourceWizard=void 0,r(1)),s=r(0),l=r(5),c=r(51),d=r(48),u=r(191),p=r(183),f=r(190),m=r(188),y=r(126),h=r(189),g=(i=u.FullscreenWizard,n(_,i),_.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new v(e,t,r._dataSourceWizardOptions,function(e){return r._onResetPage(e)})}),this._dataSourceWizardOptions.sqlDataSourceAvailable||!s.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=d.DataSourceType.Sql:this._dataSourceWizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource?e.dataSourceType=d.DataSourceType.Json:!this._dataSourceWizardOptions.objectDataSourceAvailable&&s.isEmptyObject(e.objectDataSourceWizard)||(e.dataSourceType=d.DataSourceType.Object),i.prototype.initialize.call(this,e,t)},_.prototype.canRunWizard=function(){return this._dataSourceWizardOptions.canCreateDataSource},_.prototype._description=function(){return a.getLocalization("Data Source Wizard","AnalyticsCoreStringId.DSWizard_Title")},_);function _(e,t){e=i.call(this,e,t.callbacks.finishCallback)||this;return e._dataSourceWizardOptions=t,e}t.FullscreenDataSourceWizard=g;b=c.PageIterator,n(S,b),S.prototype.getNextPageId=function(e){return!e&&this._isMoreThanOneDataSourceTypeAvailable(this._dataSourceOptions)?l.DataSourceWizardPageId.ChooseDataSourceTypePage:!e&&this._dataSourceOptions.sqlDataSourceAvailable?l.FullscreenDataSourceWizardPageId.SpecifySqlDataSourceSettingsPage:!e&&this._dataSourceOptions.jsonDataSourceAvailable?l.FullscreenDataSourceWizardPageId.SpecifyJsonDataSourceSettingsPage:!e&&this._dataSourceOptions.objectDataSourceAvailable?l.FullscreenDataSourceWizardPageId.SpecifyObjectDataSourceSettingsPage:e===l.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Json?l.FullscreenDataSourceWizardPageId.SpecifyJsonDataSourceSettingsPage:e===l.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Sql?l.FullscreenDataSourceWizardPageId.SpecifySqlDataSourceSettingsPage:e===l.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Object?l.FullscreenDataSourceWizardPageId.SpecifyObjectDataSourceSettingsPage:e===l.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Federation?l.FullscreenDataSourceWizardPageId.SpecifyFederationDataSourceSettingsPage:void 0};var b,v=S;function S(e,t,r,o){e=b.call(this,e,t,o)||this;return e._dataSourceOptions=r,e}t.FullscreenDataSourceWizardPageIterator=v,t._createDataSourceFullscreenWizard=function(e){var t=new p.FullscreenWizardPageFactory;return d._registerChooseDataSourceTypePage(t,e),t.getMetadata(l.DataSourceWizardPageId.ChooseDataSourceTypePage).navigationPanelText=a.getLocalization("Select Data Source Type","AnalyticsCoreStringId.Wizard_SelectDataSourceType"),h._registerSpecifySqlDataSourceSettingsPage(t,e),f._registerSpecifyFederationDataSourceSettingsPage(t,e),m._registerSpecifyJsonDataSourceSettingsPage(t,e),y._registerSpecifyObjectDataSourceSettingsPage(t,e),new g(t,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WizardAction=void 0;var o=r(2);t.WizardAction=function(e,t){this.handler=e,this.isVisible=o.observable(!0),this.isDisabled=o.observable(!1),this.text=t}},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.ManageFederatedQueriesEditor=void 0,r(2)),s=r(0),l=r(8),c=r(0),d=r(6),u=r(7),p=r(124),f=r(118),r=(i=l.PopupEditorBase,n(m,i),m.prototype._createAddQueryButton=function(){var e=new p.FederatedQueriesTreeNode("queries",c.getLocalization("Federated Queries","DataAccessUIStringId.FederatedQueryCollectionList_Title"),"list",!1,a.observable({showQbCallBacks:this._queriesPopupHelper.callBacks})).popoverListItems(),e={text:c.getLocalization("Add query","AnalyticsCoreStringId.SqlDSWizard_AddQuery"),items:e.map(function(e){return{text:e.name,onClick:e.addAction}}),dropDownOptions:{width:150,container:".dx-designer-viewport"},useItemTextAsTitle:!1};this.buttonItems.push({toolbar:"bottom",location:"before",template:function(){return d.getTemplate("dxrd-managequeries-selectbox")},options:e})},m.prototype.save=function(){var r=this;this.queriesStoreData().forEach(function(t){var e=s.findFirstItemMatchesCondition(r._dataSource.queries(),function(e){return e.alias()===t.id});e.sources().forEach(function(e){return r._dataSource.addSource(e)}),e&&t.id!==t.name&&e.alias(t.name)}),this._callBack(),i.prototype.save.call(this),this.dispose()},m.prototype.canSave=function(){return!!this.queriesStoreData().length},m.prototype.close=function(){i.prototype.close.call(this),this.dispose()},m.prototype.dispose=function(){i.prototype.dispose.call(this),this.queriesGrid=null,this._dataSource=null,this._callBack=null},m.prototype.title=function(){return c.getLocalization("Manage Queries","DataAccessUIStringId.FederatedQueryCollectionEditorForm_Title")},m);function m(e,t,r){void 0===r&&(r=!1);var o=i.call(this)||this;return o._dataSource=e,o._callBack=t,o.rtl=r,o.className="dxrd-federated-manageQueries-editor",o._disposables.push(o._queriesPopupHelper=new f.FederatedQueriesHelper(o._dataSource,o._dataSource.queries,function(){return null},r)),o._createAddQueryButton(),o.queriesStoreData=a.pureComputed(function(){return o._dataSource&&o._dataSource.queries().map(function(e){return{name:e.alias(),id:e.alias(),type:u.FederationQueryType[e.queryType()]}})}),o._disposables.push(o.queriesStoreData),o.queriesGrid={rtlEnabled:r,dataSource:o.queriesStoreData,showColumnLines:!1,hoverStateEnabled:!0,scrolling:{mode:"infinite"},height:"100%",editing:{mode:"cell",allowUpdating:!0},onRowUpdating:function(e){e.oldData.alias=e.newData.name},columns:[{dataField:"name",get caption(){return c.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder")}},{type:"buttons",width:100,buttons:[{icon:"edit",onClick:function(e){switch(e.row.data.type){case u.FederationQueryType.SelectNode:o._queriesPopupHelper.callBacks.joinCallBack(e.row.data.id);break;case u.FederationQueryType.UnionNode:o._queriesPopupHelper.callBacks.unionCallBack(e.row.data.id);break;case u.FederationQueryType.TransformationNode:o._queriesPopupHelper.callBacks.transformCallBack(e.row.data.id)}},cssClass:"dxrd-manage-queries-actions dxd-icon-highlighted dxrd-image-operations-edit-query",template:d.getTemplate("dxrd-svg-operations-edit")},{icon:"delete",onClick:function(e){o._dataSource.removeQuery(e.row.data.id)},cssClass:"dxrd-manage-queries-actions dxd-icon-highlighted dxrd-image-recycle-bin",template:d.getTemplate("dxrd-svg-operations-recycle_bin")}]}]},o}t.ManageFederatedQueriesEditor=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(2),p=r(3),f=(r(17),r(17),r(17),r(17),r(0)),m=r(0),y=r(6);u.bindingHandlers.dxdTableView={init:function(e,t,r,o,i){var n,a,s=y.getTemplate("dxd-tableview"),l=p(e).append(s),c=!!i.$root.rtl,d=u.unwrap(t());return u.applyBindings({onDataScroll:function(e){0<=e.scrollOffset.left&&(n=n||l.find(".dxd-tableview-titles"),a=a||l.find(".dxd-tableview-data table"),n.offset({left:a.offset().left,top:n.offset().top}))},onDataScrollInitialized:function(e){var t;a=null,c&&(t=e.component,setTimeout(function(){return t.scrollTo({left:t.scrollWidth(),top:0})},1))},data:d,rtl:c,noDataText:f.noDataText,isImage:function(e){return"System.Byte[]"===d.schema[e].type},isImageTooLarge:function(e){return"!"===e[0]},getImageTooLargeText:function(e){return"Image too large ("+e.substring(1)+" bytes)"}},l.children()[0]),l.find(".dxd-tableview-titles .dxd-tableview-resizable").each(function(e,t){var r=p(t).find(".dxd-tableview-cell-text"),o=l.find(".dxd-tableview-data .dxd-tableview-resizable"+e),e=(e<d.schema.length-1&&p(t).resizable({handles:"e",alsoResize:o.parent(),resize:function(e,t){r.outerWidth(t.size.width),o.outerWidth(t.size.width)}}),Math.max(r.width(),o.width()));r.width(e),o.width(e)}),m.addDisposeCallback(l.children()[0],function(){l.find(".dxd-tableview-titles .dxd-tableview-resizable").each(function(e,t){p(t).data("ui-resizable")&&p(t).resizable("destroy")}),l=null}),{controlsDescendantBindings:!0}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o,i,n=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=(Object.defineProperty(t,"__esModule",{value:!0}),t.JSQueryBuilderBinding=void 0,r(2)),s=r(3),l=r(204),c=r(0),d=r(195),u=r(1),p=r(205),f=r(0),m=r(6),y=(i=c.JSDesignerBindingCommon,n(h,i),h.prototype._applyBindings=function(e,t){this._disposables.push(e),t.children().remove();var r,t=t.append(this._templateHtml).children()[0];t&&(a.cleanNode(t),this._callbacks&&this._callbacks.beforeRender&&this._callbacks.beforeRender(e),a.applyBindings(e,t),r=setTimeout(function(){e&&e.updateSurfaceSize()},1),this._disposables.push({dispose:function(){return clearTimeout(r)}}))},h.prototype._initializeEvents=function(){var r=this;return this._getAvailableEvents(p.EventGenerator.generateQueryBuilderEvents(function(e,t){r._fireEvent(e,t)}))},h.prototype._initializeCallbacks=function(){if(this._options.callbacks)return this._initializeEvents()},h.prototype._createModel=function(e){return this._callbacks=this._initializeCallbacks(),d.createQueryBuilder(e,this._options,this._callbacks,!1)},h.prototype.dispose=function(){(this._deferreds||[]).forEach(function(e){e.reject()}),i.prototype.dispose.call(this)},h.prototype.applyBindings=function(t){function e(){i&&i.invokeAction&&(r._options.handlerUri=r._getServerActionUrl(i.host,i.invokeAction)),r._deferreds.push(r._createModel(t).done(function(e){r.options.queryBuilderModel(e),r.sender.queryBuilderModel=e,r._createDisposeFunction(t),r._applyBindings(r.sender.queryBuilderModel,o)}))}var r=this,o=s(t),i=this._options.requestOptions;i?this._getLocalizationRequest().done(function(e){e&&u.addCultureInfo(e)}).always(function(){e()}):e()},h);function h(e,t){t=i.call(this,a.unwrap(e),t)||this;return t.options=e,t._deferreds=[],t._templateHtml=m.getTemplate("dxrd-querybuilder"),e.queryBuilderModel=f._wrapModelInObservable(e.queryBuilderModel),t.sender=new l.JSQueryBuilder(e.queryBuilderModel),e.callbacks&&e.callbacks._eventSenderCreated&&e.callbacks._eventSenderCreated(t.sender),t}t.JSQueryBuilderBinding=y,a.bindingHandlers.dxQueryBuilder={init:function(e,t){t=a.unwrap(t());return new y(t||{}).applyBindings(e),{controlsDescendantBindings:!0}}},a.bindingHandlers.dxQueryBuilderSurface={init:function(e,t){var t=a.unwrap(t()),r=t.options,o=m.getTemplate("dxrd-querybuilder"),e=s(e).append(o),o=d.createQueryBuilderSurface(e.children()[0],r,t.creator);return r.queryBuilderModel(o),{controlsDescendantBindings:!0}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var r=r(225),o=window.DevExpress||{};r._addQueryBuilderToBundle(o),e.exports={Analytics:o.Analytics,QueryBuilder:o.QueryBuilder}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._addQueryBuilderToBundle=void 0;var o=r(226),i=r(227),n=r(228),a=r(229),s=r(230),l=r(231),c=r(233),d=r(234),u=r(235),p=r(237),f=r(238),m=r(239),y=r(243),h=r(244),g=r(245);t._addQueryBuilderToBundle=function(e){return e.Analytics=e.Analytics||{},e.QueryBuilder=g,e.Analytics.Diagram=o,e.Analytics.Data=i,e.Analytics.Data.Internal=n,e.Analytics.Data.Utils=a,e.Analytics.Data.Metadata=s,e.Analytics.Wizard=l,e.Analytics.Wizard.Internal=c,e.QueryBuilder.Widgets=d,e.QueryBuilder.Widgets.Internal=u,e.QueryBuilder.Metadata=p,e.QueryBuilder.Utils=f,e.QueryBuilder.Internal=m,e.QueryBuilder.Elements=y,e.QueryBuilder.Elements.Metadata=h,e}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(23),r(127),r(128),r(16),r(58),r(38),r(129),r(79),r(80),r(81),r(25),r(82),r(130),r(59),r(60),r(39),r(78),r(57),r(83),r(206),r(24),r(207),r(208),i(r(23),t),i(r(127),t),i(r(128),t),i(r(16),t),i(r(58),t),i(r(38),t),i(r(129),t),i(r(79),t),i(r(80),t),i(r(81),t),i(r(25),t),i(r(82),t),i(r(130),t),i(r(59),t),i(r(60),t),i(r(39),t),i(r(78),t),i(r(57),t),i(r(83),t),i(r(206),t),i(r(24),t),i(r(207),t),i(r(208),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(84),r(86),r(85),r(88),r(134),r(62),r(89),r(90),r(135),r(63),r(136),r(138),r(40),r(42),r(142),r(91),r(44),r(43),r(13),r(18),r(133),r(132),r(26),r(64),r(27),r(92),r(94),r(46),r(97),r(45),r(66),r(145),r(98),r(20),r(47),i(r(84),t),i(r(86),t),i(r(85),t),i(r(88),t),i(r(134),t),i(r(62),t),i(r(89),t),i(r(90),t),i(r(135),t),i(r(63),t),i(r(136),t),i(r(138),t),i(r(40),t),i(r(42),t),i(r(142),t),i(r(91),t),i(r(44),t),i(r(43),t),i(r(13),t),i(r(18),t),i(r(133),t),i(r(132),t),i(r(26),t),i(r(64),t),i(r(27),t),i(r(92),t),i(r(94),t),i(r(46),t),i(r(97),t),i(r(45),t),i(r(66),t),i(r(145),t),i(r(98),t),i(r(20),t),i(r(47),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(131),r(146),r(99),r(137),r(19),i(r(131),t),i(r(146),t),i(r(99),t),i(r(137),t),i(r(19),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(7),i(r(7),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(140),r(141),r(144),r(143),r(93),r(41),i(r(140),t),i(r(141),t),i(r(144),t),i(r(143),t),i(r(93),t),i(r(41),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(5),r(12),r(209),r(9),r(100),r(210),r(48),r(67),r(101),r(147),r(148),r(149),r(68),r(150),r(50),r(69),r(49),r(154),r(157),r(111),r(114),r(115),r(116),r(117),r(125),r(56),r(112),r(51),r(212),r(14),r(159),r(213),r(33),r(182),r(214),r(183),r(77),r(188),r(189),r(190),r(191),r(192),r(215),r(216),r(152),r(126),i(r(5),t),i(r(12),t),i(r(209),t),i(r(9),t),i(r(100),t),i(r(210),t),i(r(48),t),i(r(67),t),i(r(101),t),i(r(147),t),i(r(148),t),i(r(149),t),i(r(68),t),i(r(150),t),i(r(50),t),i(r(69),t),i(r(49),t),i(r(154),t),i(r(157),t),i(r(111),t),i(r(114),t),i(r(115),t),i(r(116),t),i(r(117),t),i(r(125),t),i(r(56),t),i(r(112),t),i(r(51),t),i(r(212),t),i(r(14),t),i(r(159),t),i(r(213),t),i(r(33),t),i(r(182),t),i(r(214),t),i(r(183),t),i(r(77),t),i(r(188),t),i(r(189),t),i(r(190),t),i(r(191),t),i(r(192),t),i(r(215),t),i(r(216),t),i(r(152),t),i(r(126),t)},function(e,t){e.exports={default:window.ace}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(187),r(186),r(184),r(185),r(106),r(151),r(10),r(160),r(158),r(113),r(181),r(124),r(180),r(176),r(166),r(179),r(71),r(177),r(178),r(110),r(109),r(155),r(108),r(22),r(107),r(153),r(217),r(103),r(104),r(102),r(105),i(r(187),t),i(r(186),t),i(r(184),t),i(r(185),t),i(r(106),t),i(r(151),t),i(r(10),t),i(r(160),t),i(r(158),t),i(r(113),t),i(r(181),t),i(r(124),t),i(r(180),t),i(r(176),t),i(r(166),t),i(r(179),t),i(r(71),t),i(r(177),t),i(r(178),t),i(r(110),t),i(r(109),t),i(r(155),t),i(r(108),t),i(r(22),t),i(r(107),t),i(r(153),t),i(r(217),t),i(r(103),t),i(r(104),t),i(r(102),t),i(r(105),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(139),i(r(139),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(28),r(156),r(70),r(193),r(218),r(118),r(194),r(172),r(170),r(171),r(55),r(169),r(168),r(165),r(161),r(162),r(164),r(163),r(236).registerEditorTemplates(),i(r(28),t),i(r(156),t),i(r(70),t),i(r(193),t),i(r(218),t),i(r(118),t),i(r(194),t),i(r(172),t),i(r(170),t),i(r(171),t),i(r(55),t),i(r(169),t),i(r(168),t),i(r(165),t),i(r(161),t),i(r(162),t),i(r(164),t),i(r(163),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerEditorTemplates=void 0;var o=r(193),i=r(28);t.registerEditorTemplates=function(){i.editorTemplates.registerEditors({bool:{header:"dx-boolean-select",custom:"dxqb-property-editor"},combobox:{header:"dx-combobox",custom:"dxqb-property-editor"},comboboxUndo:{header:"dx-combobox-undo",custom:"dxqb-property-editor",editorType:o.UndoEditor},text:{header:"dx-text",custom:"dxqb-property-editor"},filterEditor:{header:"dxrd-filterstring",custom:"dxqb-property-editor"},filterGroupEditor:{header:"dxrd-filterstringgroup",custom:"dxqb-property-editor"},numeric:{header:"dx-numeric",custom:"dxqb-property-editor"}})}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(15),i(r(15),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(87),r(21),r(11),r(7),i(r(87),t),i(r(21),t),i(r(11),t),i(r(7),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(195),r(219),r(198),r(220),r(72),r(200),r(197),r(119),r(32),r(61),r(196),r(199),r(241),r(242),r(221),r(120),r(175),i(r(195),t),i(r(219),t),i(r(198),t),i(r(220),t),i(r(72),t),i(r(200),t),i(r(197),t),i(r(119),t),i(r(32),t),i(r(61),t),i(r(196),t),i(r(199),t),i(r(221),t),i(r(120),t),i(r(175),t)},function(e,t){e.exports={default:DevExpress.config}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8).SvgTemplatesEngine.addTemplates({"dxdd-connection-line":'<svg class="dxdd-connection-line" style="width:100%; height: 100%"> <line class="dxd-qb-relationship-line-color" data-bind="attr: { x1: startPoint().relativeX, y1: startPoint().relativeY, x2: endPoint().relativeX, y2: endPoint().relativeY }" /> </svg>',"dxdd-connecting-point":'<div class="dxdd-connecting-point" data-bind="styleunit: position, trackCursor: underCursor, style: { \'marginLeft\': -3 * _context.zoom() + \'px\', \'marginTop\': -3 * _context.zoom() + \'px\' }, draggable: $root.connectingPointDragHandler"> <svg style="width:100%; height: 100%"> <line x1="0" y1="0" x2="100%" y2="100%" /> <line x1=0 y1="100%" x2="100%" y2="0" /> </svg> </div>',"dxdd-connection-point-selection":'<div class="dxrd-control" data-bind="draggable: $root.connectionPointDragHandler, styleunit: { top: relativeY, left: relativeX }"> </div>',"dxdd-connector":'<div class="dxdd-connector" data-bind="styleunit: position, trackCursor: underCursor"> \x3c!-- ko template: { name: \'dxdd-connection-line\' } --\x3e \x3c!-- /ko --\x3e </div>',"dxdd-connector-selection":"<div class=\"dxdd-connector\" data-bind=\"styleunit: position, dxclick: function() {}, draggable: $root.dragHandler\"> \x3c!-- ko template: { name: 'dxdd-connection-line' } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: startPoint --\x3e \x3c!-- ko template: { name: 'dxdd-connection-point-selection' } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: endPoint --\x3e \x3c!-- ko template: { name: 'dxdd-connection-point-selection' } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>","dxdd-routed-connection-line":'<svg class="dxdd-connection-line"> <defs> \x3c!-- ko if: showArrow --\x3e <marker data-bind="attr: { id: \'dxqb-arrow_end\' + connectorID() }" viewBox="0 0 5 10" refX="5" refY="5" markerUnits="userSpaceOnUse" orient="auto" markerWidth="14" markerHeight="14"> <polyline class="dxd-qb-relationship-line-color" points="0,0 5,5 0,10" /> </marker> \x3c!-- /ko --\x3e \x3c!-- ko if: showRightArrow --\x3e <marker data-bind="attr: { id: \'dxqb-arrow_start\' + connectorID() }" viewBox="0 0 5 10" refX="5" refY="5" markerUnits="userSpaceOnUse" orient="auto-start-reverse" markerWidth="14" markerHeight="14"> <polyline class="dxd-qb-relationship-line-color" points="0,0 5,5 0,10" /> </marker> \x3c!-- /ko --\x3e </defs> <polyline class="dxd-qb-relationship-line-color" fill="none" data-bind="attr: { points: routePointsSet, \'marker-end\': showArrow() ? \'url(#dxqb-arrow_end\' + connectorID() + \')\' : \'\', \'marker-start\': showRightArrow() ? \'url(#dxqb-arrow_start\' + connectorID() + \')\' : \'\' }, updateConnectorArrow: $data" /> </svg>',"dxdd-routed-connector":'<div class="dxdd-connector" data-bind="styleunit: position, visible: isVisible"> \x3c!-- ko template: { name: \'dxdd-routed-connection-line\' } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: routeLineWrappers --\x3e <div data-bind="styleunit: position" style="position: absolute;"> \x3c!-- ko with: $parent --\x3e <div class="dxd-selectable" data-bind="trackCursor: underCursor, click: $root.selectItemProperties" style="position: relative; width: 100%; height: 100%;"></div> \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div>',"dxdd-routed-connector-selection":'<div class="dxdd-connector dxrd-selected dxd-state-selected" data-bind="styleunit: position, dxclick: function() {}, visible: isVisible"> \x3c!-- ko template: { name: \'dxdd-routed-connection-line\' } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: routeLineWrappers --\x3e \x3c!-- ko ifnot: isLocked --\x3e <div data-bind="styleunit: position, style: { cursor: isVerticalLine ? \'ew-resize\' : \'ns-resize\' }, routeLineDraggable: { starting: $root.resizeHandler.starting, stopped: function() { resizeStopped(); $root.resizeHandler.stopped(); }, forceResize: resizeHandler }" style="position: absolute;"> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: isLocked --\x3e <div data-bind="styleunit: position" style="position: absolute;"> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: startPoint --\x3e \x3c!-- ko template: { name: \'dxdd-connection-point-selection\' } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: endPoint --\x3e \x3c!-- ko template: { name: \'dxdd-connection-point-selection\' } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-diagram-element":'<div class="dxrd-control dxd-selectable" data-bind="styleunit: position, trackCursor: underCursor"> <div class="dxrd-control-content-main" data-bind="styleunit: { lineHeight: positionLineHeightWithoutMargins }, style: css"> <div data-bind="template: contenttemplate, styleunit: { \'height\': positionLineHeightWithoutMargins, \'width\': positionWidthWithoutMargins }"> </div> </div> </div>',"dx-diagram-element-selection":'<div class="dxrd-control" data-bind="event: { dblclick: $root.inlineTextEdit.show }, css: {\'dxrd-selected\': selected, \'dxrd-focused\': focused }, resizable: $root.resizeHandler, draggable: $root.dragHandler, styleunit: position, trackCursor: underCursor"> \x3c!-- ko if: !$root.inlineTextEdit.visible() --\x3e <div class="dxrd-control-content-main" data-bind="styleunit: { lineHeight: positionLineHeightWithoutMargins }, style: css"> <div data-bind="template: contenttemplate, styleunit: { \'height\': positionLineHeightWithoutMargins, \'width\': positionWidthWithoutMargins}"> </div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: $root.inlineTextEdit.visible --\x3e \x3c!-- ko with: $root.inlineTextEdit --\x3e <div class="inline-text-edit" data-bind="dxTextArea: { value: text, onKeyUp: keypressAction, valueChangeEvent: \'keyup\' }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-diagram-element-content":'<div style="width: 100%; height: 100%; border: 1px solid black"> <div data-bind="text: getControlModel().text"></div> </div>',"dxdd-element-content-with-connecting-points":'<div style="width: 100%; height: 100%; overflow: hidden"> <svg style="top:0; left: 0; width: 100%; height: 100%; stroke: black; fill: transparent; stroke-width: 1"> \x3c!-- ko if: getControlModel().type() === \'Ellipse\' --\x3e <ellipse cx="50%" cy="50%" rx="50%" ry="50%" /> \x3c!-- /ko --\x3e \x3c!-- ko if: getControlModel().type() === \'Condition\' --\x3e <line x1="50%" y1="0" x2="100%" y2="50%" /> <line x1="100%" y1="50%" x2="50%" y2="100%" /> <line x1="50%" y1="100%" x2="0" y2="50%" /> <line x1="0" y1="50%" x2="50%" y2="0" /> \x3c!-- /ko --\x3e \x3c!-- ko if: !getControlModel().type() --\x3e <rect height="100%" width="100%" /> \x3c!-- /ko --\x3e <text x="50%" y="50%" alignment-baseline="middle" style="text-anchor: middle; cursor:default;" data-bind="text: getControlModel().text"></text> </svg> \x3c!-- ko foreach: connectingPoints --\x3e \x3c!-- ko template: \'dxdd-connecting-point\' --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-diagram-surface":'<div class="dxrd-surface" style="height: 100%; display:inline-block;" data-bind="styleunit: { \'width\': Math.min(pageWidth(), $root.surfaceSize()) }, click: function(_, e) { $root.selection.clickHandler(null, e); e.stopPropagation(); }, keyDownActions: $root.actionLists"> <div class="dxrd-viewport" style="overflow:auto;width:inherit;height:inherit;" data-bind="styleunit: { minWidth: Math.min(pageWidth(), $root.surfaceSize()), maxWidth: pageWidth(), maxHeight: pageHeight() + 20 }"> <div data-bind="selectable: { selection: $root.selection, zoom: zoom }"> <div class="dxrd-ghost-containment"> <div class="dxrd-ghost-container" style="background: white;position: relative;" data-bind="styleunit: { \'width\': pageWidth(), \'height\': pageHeight() }, trackCursor: underCursor"> \x3c!-- ko foreach: controls --\x3e \x3c!-- ko template: { name: isSelected() ? selectiontemplate : template } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div> </div> </div>',"dxqb-joincondition":'<div class="dxdd-connector" data-bind="styleunit: position, trackCursor: underCursor"> <svg style="width:100%; height: 100%"> <line data-bind="attr: { x1: startPoint.x, y1: startPoint.y, x2: endPoint.x, y2: endPoint.y }" /> </svg> </div>',"dx-query-surface":'<div class="dxrd-surface" style="display:inline-block;" data-bind="styleunit: { \'width\': $root.surfaceSize }, click: function(_, e) { $root.selection.clickHandler(null, e); e.stopPropagation(); }, keyDownActions: $root.actionLists"> <div class="dxrd-viewport" style="width:inherit;height:inherit;"> <div class="dxqb-mainwin" data-bind="dxScrollView: { direction: \'both\', showScrollbar: \'onHover\', scrollByContent: false, scrollByThumb: true, bounceEnabled: false, useNative: false, height: \'100%\' }"> <div style="height:100%;"> <div class="dxrd-ghost-containment" style="height:100%;"> <div class="dxrd-ghost-container dxqb-ghost-container" data-bind="styleunit: { \'minWidth\': pageWidth, \'minHeight\': pageHeight }, trackCursor: { recalculateBounds: true, underCursor: underCursor }"> <div class="dxqb-main" data-bind="trackCursor: { recalculateBounds: true, underCursor: underCursor }, style: { \'z-index\' : $parent.dragDropStarted() ? 2 : null }"> \x3c!-- ko if: tables().length === 0--\x3e <div class="dxqb-placeholder dxd-empty-area-placeholder-text-color dxd-text-info" data-bind="text: placeholder()"></div> \x3c!-- /ko --\x3e \x3c!-- ko foreach: relations --\x3e \x3c!-- ko foreach: conditions --\x3e \x3c!-- ko if: !isSelected()--\x3e \x3c!-- ko template: template --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: tables --\x3e \x3c!-- ko template: template --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: relations --\x3e \x3c!-- ko foreach: conditions --\x3e \x3c!-- ko if: isSelected()--\x3e \x3c!-- ko template: selectiontemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko with: $root.columnDragHandler.dragDropConnector --\x3e <svg class="dxdd-connection-line-draggable" data-bind="styleunit: { top: position.top(), left: position.left() }"> \x3c!-- ko foreach: routePoints --\x3e \x3c!-- ko if: $index() < ($parent.routePoints().length - 1) --\x3e <line class="dxd-qb-relationship-line-color" fill="none" data-bind="attr: {x1 : $data.x, y1: $data.y, x2: $parent.routePoints()[$index()+1].x, y2: $parent.routePoints()[$index()+1].y }"></line> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </svg> \x3c!-- /ko --\x3e </div> </div> </div> </div> </div> </div> </div>',"dxqb-relation":"\x3c!-- ko foreach: conditions --\x3e \x3c!-- ko template: { name: isSelected() ? selectiontemplate : template } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e","dxqb-table-field":'<div class="dx-border-inheritor dxd-border-accented"> <div class="dxqb-table-field dxd-qb-table-field-border-color dxd-qb-table-field-back-color dxd-back-highlighted dxd-qb-table-field-separator-color dxd-border-primary" data-bind="trackCursor: { recalculateBounds: true, underCursor: underCursor }, draggable: $root.columnDragHandler, css: cssClasses($root.surface(), $root.columnDragHandler, $parent), click: $root.selectItemProperties"> <div class="dxqb-table-field-background dxd-back-accented"></div> <div class="dxqb-table-field-checkbox-wrapper"> <div class="dxqb-table-field-checkbox" data-bind="dxCheckBox: { value: selectedWrapper }, click: function(surface, e) { surface.toggleSelected(); e.stopPropagation(); return true; }"></div> </div> <div class="dxqb-table-field-content dxd-text-primary" data-bind="attr: { title: getControlModel().actualName }"> <div class="dxqb-table-field-state"> \x3c!-- ko if: $data.isAscending() --\x3e <div class="dxqb-image-field-state dxqb-image-field-sorting-asc">\x3c!-- ko template: \'dxrd-svg-queryBuilder-sorting_asc\' --\x3e\x3c!-- /ko --\x3e</div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.isDescending() --\x3e <div class="dxqb-image-field-state dxqb-image-field-sorting-desc">\x3c!-- ko template: \'dxrd-svg-queryBuilder-sorting_desc\' --\x3e\x3c!-- /ko --\x3e</div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.getControlModel().groupBy --\x3e <div class="dxqb-image-field-state dxqb-image-field-group-by">\x3c!-- ko template: \'dxrd-svg-queryBuilder-group_by\' --\x3e\x3c!-- /ko --\x3e</div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.isAggregate() --\x3e <div class="dxqb-image-field-state dxqb-image-field-aggregate">\x3c!-- ko template: \'dxrd-svg-queryBuilder-aggregate\' --\x3e\x3c!-- /ko --\x3e</div> \x3c!-- /ko --\x3e </div> <div class="dxqb-table-field-caption"> <div class="dxqb-table-field-text dxd-qb-table-field-text-color" data-bind="text: getControlModel().actualName"></div> </div> </div> </div> </div>',"dxqb-table-asterisk-field":'<div class="dx-border-inheritor dxd-border-accented"> <div class="dxqb-table-field dxd-qb-table-field-border-color dxd-qb-table-field-back-color dxd-back-highlighted dxd-border-primary" data-bind="trackCursor: underCursor, css: cssClasses(), click: $root.selectItemProperties"> <div class="dxqb-table-field-background dxd-back-accented"></div> <div class="dxqb-table-field-checkbox-wrapper"> <div class="dxqb-table-field-checkbox" data-bind="dxCheckBox: { value: selectedWrapper }, click: function(surface, e) { surface.toggleSelected(); e.stopPropagation(); return true; }"></div> </div> <div class="dxqb-table-field-content dxd-text-primary" data-bind="attr: { title: getControlModel().name }"> <div class="dxqb-table-field-caption"> <div class="dxqb-table-field-text dxd-qb-table-field-text-color" data-bind="text: getControlModel().name"></div> </div> </div> </div> </div>',"dxqb-table-main":'\x3c!-- ko if: $data.isSelected() --\x3e <div class="dxqb-table-resize-ghost" data-bind="resizable: resizable($root.resizeHandler, $element), styleunit: position"></div> \x3c!-- /ko --\x3e <div class="dxrd-control" data-bind="css: {\'dxrd-selected\': selected, \'dxrd-focused\': focused }, draggable: $root.dragHandler, styleunit: position, trackCursor: underCursor, click: $root.selectItemProperties"> <div class="dxrd-control-content-main dxd-qb-table-back-color dxd-back-primary2" data-bind="styleunit: { lineHeight: position.lineHeight }, style: css"> <div class="dxqb-table-background dxd-back-accented"></div> <div class="dx-background-inheritor dxd-back-accented"> <div class="dxqb-table-border dxd-qb-table-border-color dxd-back-highlighted dxd-state-active dxd-state-no-hover"></div> </div> <div data-bind="template: contenttemplate, styleunit: { \'height\': position.lineHeight, \'width\': position.width }"> </div> </div> </div>',"dxqb-table":'<div class="dxqb-table dxd-qb-table-back-color dxd-back-primary2"> <div class="dx-border-inheritor dxd-border-accented"> <div class="dxqb-table-head-field dxd-qb-table-field-border-color dxd-qb-table-field-back-color dxd-back-highlighted dxd-border-primary"> <div class="dxqb-table-checkbox-all"> <div data-bind="dxCheckBox: { value: selectedWrapper }, click: function(surface, e) { $root.undoEngine().start(); surface.toggleSelected(); $root.undoEngine().end(); e.stopPropagation(); return true; }"></div> </div> \x3c!-- ko template: titletemplate --\x3e \x3c!-- /ko --\x3e </div> </div> <div class="dxqb-table-content"> <div class="dxqb-tableFields-wrapper"> \x3c!-- ko ifnot: $data.isInitialized() --\x3e <div class="dxqb-table-loading"> <div class="dxqb-table-loading-text dxd-text-primary" data-bind="text: $root.columnsLoadingMsg()"></div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.isInitialized() --\x3e \x3c!-- ko template: { name: asterisk.template, data: asterisk } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko foreach: columns --\x3e \x3c!-- ko lazy: { template: $data.template }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> </div>',"dxqb-table-title":'<div class="dxqb-table-title" data-bind="style: { cursor: selected() ? \'move\' : \'default\' }"> <div class="dxqb-table-title-content dxd-text-primary" data-bind="text: getControlModel().actualName"></div> </div>',"dxqb-federation-table-title":'<div class="dxqb-table-title dxqb-federation-table-title" data-bind="event: { dblclick: $root.inlineTextEdit.show }, style: { cursor: selected() ? \'move\' : \'default\' }"> <div class="dxqb-federation-table-title-container"> \x3c!-- ko if: !$root.inlineTextEdit.visible() || !selected() --\x3e <div class="dxqb-table-title-content dxd-text-primary" data-bind="text: getControlModel().actualName"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $root.inlineTextEdit.visible() && selected() --\x3e \x3c!-- ko with: $root.inlineTextEdit --\x3e <div class="inline-text-edit" data-bind="dxTextArea: { value: text, onKeyUp: keypressAction, valueChangeEvent: \'keyup\' }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> <div class="dxqb-table-subtitle dxd-text-info" data-bind="text: getControlModel().displaySourceName"></div> </div>',"dxrd-masterDetail-editor":"\x3c!-- ko if: $data --\x3e <div> <div data-bind=\"dxPopup: { showTitle: true, resizeEnabled: true, width: 700, height: 500, maxHeight: '95%', maxWidth: '95%', minHeight: 300, minWidth: 400, title: title(), visible: popupVisible, wrapperAttr: { class: 'dx-filtereditor' }, toolbarItems: buttonItems, showCloseButton: true, container: $root.getPopupContainer($element), position: { of: $root.getPopupContainer($element) }, }\"> <div class=\"dx-filtereditor-tree dxd-border-secondary\" data-bind=\"dxScrollView: { showScrollbar: 'onHover', direction: 'both' }\" style=\"cursor: default\"> \x3c!-- ko foreach: masterQueries --\x3e <div class=\"criteria-operator-group\"> <div class=\"criteria-operator-group-item\"> <div class=\"criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-group dxd-filter-editor-group-back-color dxd-state-no-hover stylized\" data-bind=\"text: queryName\"></div> <div data-bind=\"service: { name: 'createRelation' }\"></div> </div> <div class=\"criteria-operator-content\"> \x3c!-- ko template: { name: 'dx-masterDetail-editor-relation', foreach: relations }--\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div> <div class=\"dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay\" data-bind=\"dxPopupWithAutoHeight: { width: '170px', height: '300px', focusStateEnabled: false, wrapperAttr: { class: 'dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay' }, position: $root.rtl ? { my: 'right top', at: 'right bottom', of: popupService.target } : { my: 'left top', at: 'left bottom', of: popupService.target }, container: $root.getPopupContainer($element), target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, hideOnOutsideClick: true, shading: false, minWidth:'170px', maxWidth:'500px', width: 'auto', visible: popupService.visible }\"> \x3c!-- ko with: popupService--\x3e \x3c!-- ko with: data --\x3e \x3c!-- ko template: template--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e","dx-masterDetail-editor-keyColumn":'<div class="criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-field dxd-filter-editor-field-back-color dxd-state-no-hover stylized" data-bind="attr: { title: $data.getTitle() }, text: queryName"></div> <div class="criteria-operator-text dxd-filter-editor-text-color">.</div> <div class="criteria-operator-text dxd-filter-editor-text-color"> <div data-bind="service: { name: \'setColumn\' }"></div> </div>',"dx-masterDetail-editor-relation":'<div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $parent.remove($data); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> <div class="criteria-operator-item" data-bind="visible: isEditable"> <div class="criteria-operator-item-editor" data-bind="dxTextBox: { value: relationName, onFocusOut: function() { isEditable(false); } }, focus: { on: isEditable }"></div> </div> <div class="criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-value dxd-filter-editor-value-back-color" data-bind="visible: !isEditable()"> <div class="criteria-operator-text dxd-filter-editor-text-color clickable" data-bind="text: relationName, click: function() { isEditable(true); }"></div> </div> <div class="criteria-operator-action" data-bind="dxclick: create"> <div class="criteria-operator-action-image dx-image-filtereditor-add">\x3c!-- ko template: \'dxrd-svg-filtereditor-add\' --\x3e\x3c!-- /ko --\x3e</div> </div> </div> <div class="criteria-operator-content"> \x3c!-- ko foreach: keyColumns --\x3e <div class="criteria-operator-group"> <div class="criteria-operator-group-item"> <div class="criteria-operator-action" data-bind="dxclick: function() { $parent.remove($data); }"> <div class="criteria-operator-action-image dx-image-filtereditor-remove">\x3c!-- ko template: \'dxrd-svg-filtereditor-remove\' --\x3e\x3c!-- /ko --\x3e</div> </div> \x3c!-- ko template: { name: \'dx-masterDetail-editor-keyColumn\', data: master } --\x3e \x3c!-- /ko --\x3e <div class="criteria-operator-text dxd-filter-editor-text-color"> = </div> \x3c!-- ko template: { name: \'dx-masterDetail-editor-keyColumn\', data: detail } --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dx-masterdetail-editor-setColumn":"<div class=\"criteria-operator-text dxd-filter-editor-text-color clickable criteria-operator-item-field dxd-filter-editor-field-back-color\" data-bind=\"text: target.column() || target.selectColumnText(), dxclick: showPopup, css: { 'dxd-state-selected': target.isSelected, 'default': !target.column() }\"></div>","dxqb-data-preview":'<div style="height: 100%" data-bind="dxdTableView: $data.value"></div>',"dxqb-popup":'<div data-bind="dxPopup: { animation: { show: { type: \'fade\', from: 0, to: 1, duration: 700 }, hide: { type: \'fade\', from: 1, to: 0, duration: 700 } }, wrapperAttr: { class: \'dxqb-preview\' }, visible: isVisible, title: title(), showTitle: true, resizeEnabled: true, shading: true, shadingColor: \'transparent\', fullScreen: false, width: 800, height: 544, container: container($element), position: { of: container($element) }, onHidden: function() { $data.data.value(null) }, focusStateEnabled: false }"> <div class="dxqb-preview-popup-content"> \x3c!-- ko if: data && !isLoading() --\x3e \x3c!-- ko template: { name: template, data: data } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: isLoading --\x3e <div style="text-align: center; padding-top: 25%;"> <div data-bind="dxLoadIndicator: { visible: true }"></div> </div> \x3c!-- /ko --\x3e </div> <div class="dxqb-preview-popup-buttons dxd-border-secondary"> <div class="dxqb-preview-popup-button" data-bind="dxButton: { text: okButtonText(), onClick: okButtonHandler, disabled: isLoading }"></div> </div> </div>',"dxqb-selectstatment-preview":'<div class="dxqb-show-query-string-content dx-widget"> \x3c!-- ko if: !aceAvailable --\x3e <div class="dxrd-show-query-string-editor" data-bind="dxTextArea: { value: value, valueChangeEvent: \'keyup\', readOnly: true }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dxrd-show-query-string-editor"> <div class="dxrd-show-query-string-editor-content"> <div class="dx-sql_editor dx-disabled-ace dxd-back-primary2" data-bind="dxAceEditor: { value: value, options: aceOptions, additionalOptions: additionalOptions }"></div> </div> </div> \x3c!-- /ko --\x3e </div>',"dxd-tableview":'<div class="dxd-tableview"> <div class="dxd-tableview-titles"> <table> <tbody> <tr> \x3c!-- ko foreach: rtl ? data.schema.reverse() : data.schema --\x3e <td data-bind="attr: { class: \'dxd-tableview-title-cell dxd-border-secondary dxd-tableview-resizable\' }"> <div class="dxd-tableview-cell-text dxd-qb-data-preview-cell-text-color dxd-text-info" data-bind="text: name"></div> </td> \x3c!-- /ko --\x3e </tr> </tbody> </table> </div> \x3c!-- ko if: data.values --\x3e <div class="dxd-tableview-data" data-bind="dxScrollView: { direction: \'both\', scrollByContent: false, showScrollbar: \'always\', scrollByThumb: true, bounceEnabled: false, useNative: false, onScroll: $data.onDataScroll, onInitialized: $data.onDataScrollInitialized }"> <table> <tbody> \x3c!-- ko foreach: data.values --\x3e <tr> \x3c!-- ko foreach: $parent.rtl ? $data.reverse() : $data --\x3e <td class="dxd-tableview-cell dxd-border-secondary"> \x3c!-- ko ifnot: $parents[1].isImage($index()) --\x3e <div data-bind="text: $data, attr: { class: \'dxd-tableview-cell-text dxd-text-primary dxd-tableview-resizable\' + $index() }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: $parents[1].isImage($index()) --\x3e \x3c!-- ko if: $parents[1].isImageTooLarge($data) --\x3e <div data-bind="text: $parents[1].getImageTooLargeText($data), attr: { class: \'dxd-tableview-cell-text dxd-text-primary dxd-tableview-resizable\' + $index() }"></div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $parents[1].isImageTooLarge($data) --\x3e <div data-bind="attr: { class: \'dxd-tableview-cell-text dxd-text-primary dxd-tableview-resizable\' + $index() }"> <img data-bind="attr: { src: \'data:image/bmp;base64,\' + $data }" /> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </td> \x3c!-- /ko --\x3e </tr> \x3c!-- /ko --\x3e <tr class="dxd-tableview-data-fakerow"> \x3c!-- ko foreach: data.values[0] --\x3e <td class="dxd-tableview-cell dxd-border-secondary"> <div data-bind="attr: { class: \'dxd-tableview-cell-text dxd-text-primary dxd-tableview-resizable\' + $index() }"></div> </td> \x3c!-- /ko --\x3e </tr> </tbody> </table> </div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: data.values --\x3e <div class="dxd-tableview-empty-message" data-bind="text: noDataText()"></div> \x3c!-- /ko --\x3e </div>',"dxqb-fieldlist-wrapper":'<div id="tree" data-bind="treelist: treeListOptions" style="width:100%; height: 100%;"></div>',"dxqb-properties-wrapper":'<div class="dxrd-properties-wrapper" data-bind="visible: active() && visible()"> <div style="height:100%" class="dxd-text-primary"> \x3c!-- ko with: model --\x3e <div class="dxrd-properties-grid dxd-border-primary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }" style="top: 0px;"> <div> \x3c!-- ko foreach: groups --\x3e <div class="dx-fieldset" data-bind="visible: visible"> <div class="dx-accordion" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header dxd-border-primary" data-bind="css: { \'dxrd-group-header-collapsed\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: displayName()"></span> </div> <div class="dx-accordion-content dxd-back-primary dxd-border-primary"> \x3c!-- ko ifnot: editorsCreated --\x3e <div class="dx-accordion-content-loading-panel"> <div data-bind="dxLoadIndicator: { visible: !editorsCreated() }"></div> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: $data.editorsRendered() --\x3e <div data-bind="visible: editorsCreated"> <div class="dx-editors"> \x3c!-- ko foreach: editors --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: ($index() === $parent.editors().length - 1 && $parent.editorsCreated(true)) --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dxqb-propertygrid":'\x3c!-- ko with: value --\x3e <div class="dx-fieldset dxqb-selected-properties"> \x3c!-- ko foreach: properties.getEditors() --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e',"dxqb-fieldspanel":'\x3c!-- ko with: value --\x3e <div data-bind="treeListSearchPanel: { controllers: $data.fieldListModel.treeListOptions().treeListController }"></div> <div class="dxqb-right-panel-fields" data-bind="dxScrollView: { showScrollbar: \'onHover\', scrollByContent: false, scrollByThumb: true, bounceEnabled: false, useNative: false }"> \x3c!-- ko template: { name: "dxqb-fieldlist-wrapper", data: fieldListModel } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e',"dxqb-parameterspanel":'\x3c!-- ko with: value --\x3e <div class="dxqb-right-panel-parameters" data-bind="dxScrollView: { showScrollbar: \'onHover\', scrollByContent: false, scrollByThumb: true, bounceEnabled: false, useNative: false }"> <div style="width: 100%" data-bind="dxCollectionEditor: $data"></div> </div> \x3c!-- /ko --\x3e',"dxqb-collectioneditor-template":'<div class="dxrd-accordion-collection-item" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header"> <div> <div class="propertygrid-editor-collapsed dx-collapsing-image" data-bind="css: { \'dx-image-expanded\': !collapsed() }, template: \'dxrd-svg-collapsed\'"></div> <div class="dx-group-header-font" data-bind="text: $root.getLocalization($parent.name), attr: { title: $root.getLocalization($parent.name) }"></div> </div> </div> <div class="dx-accordion-content"> <div data-bind="dxPropertyGrid: { target: value, level: 1, parentDisabled: editor.disabled }"></div> </div> </div>',"dxqb-properties-wrapper-editorlist":'<div class="dxrd-properties-wrapper" data-bind="visible: active() && visible()"> <div style="height:100%" class="dxd-text-primary"> \x3c!-- ko with: model --\x3e <div class="dxrd-properties-grid dxd-border-primary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }" style="top: 0px;"> <div class="dx-fieldset dxqb-selected-properties"> \x3c!-- ko foreach: getEditors() --\x3e \x3c!-- ko template: editorTemplate --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> </div>',"dxqb-toolbar":'<div class="dxrd-toolbar-wrapper dxd-toolbar-back-color" data-bind="click: $root.findControl"> <div class="dxqb-toolbar-background dxd-back-primary-invariant"></div> <div class="dxrd-toolbar" data-bind="template: {name: \'dxqb-toolbar-items\', data: actionLists.toolbarItems }"></div> </div>',"dxqb-toolbar-items":'\x3c!-- ko foreach: $data --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dxrd-toolbar-item" data-bind="visible: visible"> <div class="dxqb-toolbar-item-container"> <div class="dxqb-toolbar-item-background dxd-back-secondary"></div> <div data-bind="template: {name: ko.unwrap($data.imageTemplateName), if: !!ko.unwrap($data.imageTemplateName)}, attr: { class: \'dxrd-toolbar-item-image dxd-icon-highlighted dxd-state-normal \' + (ko.unwrap($data.imageClassName) || \'\'), title: $data.displayText && $data.displayText() || text }, dxclick: function() { if((typeof $data.disabled === \'function\') && !disabled() || !disabled) { clickAction($root.model && $root.model()); } }, css: {\'dxrd-disabled-button\': disabled, \'dxd-state-active\': $data.selected }"> </div> </div> <div class="dxrd-toolbar-item-separator dxd-toolbar-separator-color dxd-border-secondary" data-bind="visible: $data.hasSeparator"></div> </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e',"dxqb-property-editor":'<div class="dxrd-editor" data-bind="visible: visible"> <div class="dxrd-editor-header"> <div class="dx-field dxd-back-primary"> <div class="dx-field-label dxd-text-primary"> <div class="propertygrid-editor-displayName" data-bind="text: displayName, attr: { \'title\': displayName }"></div> </div> <div class="dx-field-value"> <div data-bind="service: { name: \'createEditorAddOn\' }"></div> \x3c!-- ko lazy: { template: templateName } --\x3e \x3c!-- /ko --\x3e </div> </div> </div> </div>',"dxqb-expressionstring":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxExpressionEditor: getOptions({ options: value, fieldListProvider: $root.parametersBindingsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() })"></div> \x3c!-- /ko --\x3e',"dxqb-filtereditor-changeparameter":'<div class="criteria-operator-item" data-bind="visible: target.isEditable"> <div class="criteria-operator-item" data-bind="dxTextBox: { value: target._parameterName, onFocusOut: function() { target.createParameter(); target.isEditable(false); } }"></div> </div> <div class="criteria-operator-text dxd-filter-editor-text-color clickable " data-bind="text: target.parameterName, dxclick: showPopup, css: { \'dxd-state-selected\': target.isSelected, \'default\': target.isDefaultTextDisplayed() }, visible: $data.target.isEditable() === false"></div>',"dxqb-filtereditor-propertiespopup":'<div class="dx-widget" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko foreach: data --\x3e <div data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dx-accordion-header"> <div class="dx-filtereditor-popup-item dxd-list-item-back-color dx-item dx-list-item dxd-back-highlighted"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block; margin-left: 5px;"></div> <span class="dx-item-content dx-list-item-content" style="padding-left: 17px" data-bind="text: name"></span> </div> </div> <div class="dx-accordion-content dxd-back-primary"> \x3c!-- ko foreach: items --\x3e <div class="dx-filtereditor-popup-item dx-item dx-list-item dxd-list-item-back-color dxd-back-highlighted"> <span class="dx-item-content dx-list-item-content" style="padding-left: 17px" data-bind="text: name, attr: { \'title\': name }, click: function() { $parents[1].click($data); }"></span> </div> \x3c!--/ko --\x3e </div> </div> \x3c!--/ko --\x3e </div>',"dxqb-filtereditor-parameterspopup":'<div class="dx-widget" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> \x3c!-- ko if: $parent.viewModel.canCreateParameters --\x3e <div class="dx-filtereditor-popup-item dx-item dx-list-item dxd-list-item-back-color dxd-back-highlighted"> <span class="dx-item-content dx-list-item-content" data-bind="text: $parent.viewModel.defaultDisplay(), click: function() { $parent.viewModel.isEditable(true); $parent.viewModel._parameterName(\'\'); $parent.visible(false); }"></span> </div> \x3c!-- /ko --\x3e \x3c!-- ko foreach: data --\x3e <div class="dx-filtereditor-popup-item dx-item dx-list-item dxd-list-item-back-color dxd-back-highlighted"> <span class="dx-item-content dx-list-item-content" data-bind="text: name, click: function() { $parent.click($data); } "></span> </div> \x3c!-- /ko --\x3e </div>',"dxqb-treelist-item-with-search":'<div data-bind="visible: visible"> \x3c!-- ko template: "dxqb-treelist-header-item-with-search" --\x3e \x3c!-- /ko --\x3e </div>',"dxqb-treelist-header-item-with-search":'<div class="dx-treelist-item dxd-list-item-back-color dxd-back-highlighted" data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() } }, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected\': isSelected() || isMultiSelected() }"> <div class="dx-treelist-collapsedbutton"></div> <div class="dx-treelist-caption"> <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected, draggable: isDraggable ? dragDropHandler : null"> <div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> \x3c!-- ko template: { name: \'dx-treelist-item-text-content\' } --\x3e \x3c!-- /ko --\x3e </div> </div> </div>',"dxrd-page-choose-datasource-type":"<div class=\"dxrd-wizard-type-page\" data-bind=\"css: $data._extendCssClass('type-page')\"> \x3c!-- ko foreach: typeItems --\x3e <div data-bind=\"event: { click: $parent._itemClick, dblclick: function() { $parent._goToNextPage() } }, attr: { class: 'dxd-back-highlighted dxd-state-normal dxrd-wizard-type-item dx-fontsize-reestablished dxrd-wizard-type-item-border-color dxd-list-item-back-color ' + $parent._extendCssClass('type-item')}, css: { 'dxd-border-secondary dxd-back-secondary': $parent._IsSelected($data) } \"> <div data-bind=\"attr: { class: 'dxrd-wizard-type-image ' + $parent._extendCssClass('type-image') }, css: imageClassName, template: imageTemplateName\"> </div> <div class=\"dxrd-wizard-type-text\" data-bind=\"text: text, attr: { title: text }, css: $parent._extendCssClass('type-text')\"></div> </div> \x3c!-- /ko --\x3e </div>","dxrd-wizard-add-federated-queries-page":'<div class="dxrd-wizard-page dxrd-wizard-add-federation-queries-page dxrd-wizard-page-treelist-accordion-style"> <div data-bind="treeListSearchPanel: {controllers: ko.unwrap(_fieldListModel).treeListController}"></div> <div class="dxrd-wizard-dataMember dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _scrollViewHeight }"> <div class="dxrd-wizard-dataMember-treelist" data-bind="treelist: _fieldListModel" style="width:100%; height: 100%;"></div> </div> \x3c!-- ko template: { name: $data._queriesPopupHelper.template, data: _queriesPopupHelper } --\x3e \x3c!-- /ko --\x3e <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel: _loadPanelViewModel($element)"> </div> </div>',"dx-treelist-federation-action-with-popover":"<div class=\"dx-treelist-action-with-popover\" style=\"display: inline-block\"> <div class=\"dx-treelist-action\" data-bind=\"dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: $data.imageTemplateName, iconClass: $data.imageClassName , disabled: $data.disabled && $data.disabled() }, attr: { title: text }\"></div> \x3c!-- ko template: { name: 'dx-popover-list-items', data: ko.utils.extend($parent.data, { className: 'dxrd-federation-addqueries-popover', position: $root.rtl ? 'right' : 'left', popupContainer: $root.getPopupContainer, width: 150 }) }--\x3e \x3c!-- /ko --\x3e </div>","dxrd-querybuilder-select-popup-content":'<div class="dxrd-federation-result-grids dxrd-federation-data-container-column"> <div class="dxd-border-secondary dxrd-select-querybuilder-surface" data-bind="resizable: gridResizeHelper.resizable($root.resizeHandler, \'s\')"> <div style="height:100%;" data-bind="dxQueryBuilderSurface: queryBuilderSurfaceCreator"></div> </div> <div class="dx-accordion dxd-border-secondary dxrd-select-result-alias-grid" data-bind="dxdAccordion: { collapsed: joinResultCollapsed }"> <div class="dxd-back-secondary dx-accordion-header dxd-text-primary"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !joinResultCollapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: $root.getLocalization(\'Join result\', \'DataAccessUIStringId.FederationDataSourceQueryBuilder_SelectResult\')"></span> </div> <div class="dx-accordion-content dxd-border-secondary" data-bind="style: { height: resultGridHeight }"> <div class="dxrd-federation-action-add dxrd-collectioneditor-action" data-bind="dxButton: { icon: \'add\', disabled: addRowDisabled, onClick:addRow }"></div> <div data-bind="dxDataGrid: columnsGrid"></div> </div> </div> </div>',"dxrd-querybuilder-column-combobox-masked":'<div class="dxrd-querybuilder-column-container dxrd-querybuilder-column-container-masked"> <div class="dxrd-querybuilder-column-data"> <div class="dx-texteditor-input" data-bind="text: cellInfo.column || \' \'"></div> </div> <div class="dxrd-querybuilder-column-editorswitch"> \x3c!-- ko template: { name: \'dx-wizard-menu-box-editorswitch\', data: $data } --\x3e \x3c!-- /ko --\x3e </div> </div>',"dxrd-querybuilder-column-combobox":"<div class=\"dxrd-querybuilder-column-container dxrd-querybuilder-column-container-full\"> <div class=\"dxrd-querybuilder-column-data\"> <div class=\"dx-texteditor-input dx-padding-none\" data-bind=\"dxDropDownBox: { dataSource: $data.allColumns, dropDownOptions: { container: $root.getPopupContainer($element), width: $root.calculateWithZoomFactor(357) }, popupPosition: { boundary: $root.getPopupContainer($element) }, value: cellInfo.key, valueExpr: 'key', displayExpr: 'column' }, visible: !$data.isExpression()\"> <div data-bind=\"dxDataGrid: { dataSource: $data.allColumns, keyExpr: 'key', remoteOperations: true, height: $root.calculateWithZoomFactor(250), columns: [{ dataField: 'column', sortOrder: 'asc' } , { dataField: 'table'}], hoverStateEnabled: true, selection: { mode: 'single' }, selectedRowKeys: [cellInfo.key], focusedRowEnabled: true, focusedRowKey: cellInfo.key, onSelectionChanged: $data.changeColumn } \"></div> </div> <div class=\"dx-texteditor-input dx-padding-none\" data-bind=\"dxExpressionEditor: { options: expression, fieldListProvider: itemsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }, visible: $data.isExpression\"></div> </div> <div class=\"dxrd-querybuilder-column-editorswitch\"> \x3c!-- ko template: { name: 'dx-wizard-menu-box-editorswitch', data: $data } --\x3e \x3c!-- /ko --\x3e </div> </div>","dxrd-querybuilder-transform-popup-content":'<div class="dxrd-federation-result-grids dxrd-federation-data-container-column"> <div class="dx-accordion dxd-border-secondary dxrd-transform-source-grid dxrd-result-source-grid"> <div class="dxd-back-secondary dx-accordion-header dxd-text-primary"> <span class="dxrd-group-header-text" data-bind="text: $data.transformGridTitle"></span> </div> <div class="dx-accordion-content dxd-border-secondary"> <div class="dxd-border-primary dxrd-transform-source-grid dxrd-result-source-grid" data-bind="dxDataGrid: transformGrid"></div> </div> </div> <div class="dx-accordion dxd-border-secondary dxrd-transform-result-grid" data-bind="dxdAccordion: { collapsed: transformResultCollapsed }"> <div class="dxd-back-secondary dx-accordion-header dxd-text-primary"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !transformResultCollapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text" data-bind="text: $data.transformResultGridTitle"></span> </div> <div class="dx-accordion-content dxd-border-secondary"> <div data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div data-bind="treelist: resultFieldListModel" style="width:100%; height: 100%;"></div> </div> </div> </div> </div>',"dxrd-querybuilder-transform-checkbox":'<div class="dxrd-querybuilder-transform-checkbox" data-bind="dxCheckBox: transform"></div>',"dxrd-querybuilder-federation-popup":'<div data-bind="dxPopup: { showTitle: true, title: title(), wrapperAttr: { class: cssClass }, visible: popupVisible, toolbarItems: buttonItems, showCloseButton: true, fullScreen: false, maxHeight: maxHeight, height: height, width: width, onShowing: function(e) { $data.loaded(true); }, rtlEnabled: rtl, onHiding: onHiding, container: getPopupContainer($element), position: { of: getPopupContainer($element)}, resizeEnabled: true, minHeight: 450, minWidth: 650 }"> <div class="dxrd-querybuilder-federation-popup"> \x3c!-- ko if: popupVisible --\x3e \x3c!-- ko if: loaded --\x3e <div class="dxrd-federation-treelist-wrapper dxd-border-secondary" data-bind="resizable: resizeHelper.resizable($root.resizeHandler, \'e\')"> <div class="dxrd-federation-treelist" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div data-bind="treelist: fieldListModel" style="width:100%; height: 100%;"></div> </div> </div> <div class="dxrd-federation-data-container"> \x3c!-- ko template: { name: popupContentTemplate } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dxrd-querybuilder-union-popup-content":'<div class="dxrd-federation-result-grids dxrd-federation-data-container-column"> <div class="dxd-border-secondary dxrd-union-result-source-grid dxrd-result-source-grid" data-bind="dxDataGrid: sourcesGrid"></div> <div class="dxd-border-secondary dxrd-union-result-alias-grid"> <div data-bind="dxDataGrid: aliasGrid"></div> </div> </div>',"dx-wizard-fullscreen":'\x3c!-- ko if: $data && $data.isVisible() --\x3e <div class="dx-fullscreen-wizard dx-editors" data-bind="css: { \'dx-rtl\': $root.rtl, \'dx-ltr\': !$root.rtl }"> <div class="dxrd-wizard dxrd-report-wizard dx-editors dxd-text-primary dxd-back-primary2" data-bind="css: _extendCssClass"> <div class="dxrd-wizard-steps-container dxd-back-primary" data-bind="visible: $data.navigationPanel().isVisible"> <div class="dxrd-wizard-title dxd-border-primary" data-bind="text: _description(), attr: {\'title\': _description() }"></div> \x3c!-- ko with: navigationPanel --\x3e <div class="dxrd-wizard-steps" data-bind="foreach: _steps"> <div class="dxrd-wizard-steps-relative" style="position:relative" data-bind="visible: $data.visible"> <div class="dxrd-wizard-steps-content" data-bind="click: $data.clickAction, text: $data.text, attr: {\'title\': $data.text }, css: { \'dxrd-disabled\': $data.disabled, \'dxd-back-secondary\': $data.isActive() }"></div> <div class="dxrd-wizard-steps-marker dxd-back-primary2" data-bind="visible: $data.isActive"></div> </div> </div> \x3c!-- /ko --\x3e </div> <div class="dxrd-wizard-content" data-bind="css: { \'withoutPanel\': !$data.navigationPanel().isVisible() }"> <div class="dxrd-wizard-part-description dxd-back-contrast"> <div class="dxrd-wizard-part-description-text dxd-text-primary dxd-border-primary" data-bind="text: _pageDescription()"></div> </div> \x3c!-- ko with: _currentPage --\x3e <div class="dxrd-wizard-work-content"> <div class="dxrd-wizard-work-content-relative"> <div data-bind="template: { name: template, data: page } "></div> </div> </div> \x3c!-- /ko --\x3e <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel: _loadPanelViewModel($element)"> </div> <div class="dxrd-wizard-navigation"> <div data-bind="dxButton: cancelButton" class="dxrd-wizard-btn left"></div> <div data-bind="dxButton: finishButton" class="dxrd-wizard-btn right"></div> <div data-bind="dxButton: nextButton" class="dxrd-wizard-btn right"></div> <div data-bind="dxButton: previousButton" class="dxrd-wizard-btn right"></div> </div> </div> </div> </div> \x3c!-- /ko --\x3e',"dx-wizard-fullscreen-page":'\x3c!-- ko if: $data._sections.length > 0 --\x3e <div style="position:absolute;" data-bind="foreach: _sections, css: _className, styleunit: { top: _parentMarginOffset, left: _parentMarginOffset, right: _parentMarginOffset, bottom: _parentMarginOffset }"> <div class="dx-border-inheritor dxd-border-accented"> <div class="dxrd-report-page-tile dxd-border-secondary" data-bind="css: { \'dxrd-disabled\': !$data.page() }, style: $parent._pageCss[$data.pageId]"> <div class="dxrd-report-page-tile-title" data-bind="visible: $parent._showPageDescription(), text: $parent._getPageDescription($index(), $data), attr: { title: $parent._getPageDescription($index(), $data) }"></div> \x3c!-- ko if: $data.page() !== null --\x3e \x3c!-- ko with: page --\x3e <div class="dxrd-report-page-tile-content" data-bind="template: { name: $parent.metadata.template, data: page }, dxScrollView: { showScrollbar: \'onHover\'}"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.page() === null --\x3e <div class="dxrd-report-page-tile-content dx-default-border-style dxd-border-secondary"> <div class="dxrd-wizard-page dxrd-wizard-disabled-content" data-bind="text: metadata.disabledText"></div> </div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-jsondatasource-fields-page":'<div class="dxrd-wizard-page dx-jsonschema-page dx-frameless-style"> <div class="dx-default-border-style dxd-border-secondary dxrd-wizard-dataMember dx-fieldset" style="height:100%"> <div class="dx-field"> <div class="dx-field-label" data-bind="text: _rootElementTitle"></div> <div class="dx-field-value" data-bind="dxSelectBox: { dataSource: _rootElementList, value: _selectedRootElement, displayExpr: \'fullPath\', displayCustomValue: true, useItemTextAsTitle: true, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div> <div class="dxrd-wizard-add-queries-page dxrd-wizard-page-treelist-accordion-style dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\' }"> <div data-bind="treelist: _fieldListModel" style="width:100%; height: 100%;"></div> </div> </div> </div>',"dxrd-page-jsonsource":'<div class="dxrd-wizard-page dx-jsonsource-page dx-frameless-style"> <div class="dx-default-border-style dxd-border-secondary dxrd-wizard-dataMember dx-fieldset" style="height: 100%" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }, dxValidationGroup: $data._validationGroup || {}"> <div class="dx-field"> <div class="dx-property-required dx-field-label" data-bind="text: _jsonConnectionTitle, attr: { \'title\': _jsonConnectionTitle }"></div> <div class="dx-field-value" data-bind="dxTextBox: { value: _connectionName }, dxValidator: { validationRules: $data._connectionNameValidationRules || [] }"></div> </div> <div class="dx-field"> <div class="dx-field-label" data-bind="text: _jsonSourceTitle, attr: { \'title\': _jsonSourceTitle }"></div> <div class="dx-field-value" data-bind="dxLocalizedSelectBox: { dataSource: _sources, value: _selectedSource, valueExpr:\'value\', displayExpr: \'displayValue\', displayCustomValue: true, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div> \x3c!-- ko with: _selectedSource --\x3e <div data-bind="dxValidationGroup: $data.validationGroup || {}"> <div data-bind="css: $data.cssClass"> \x3c!-- ko template: { name: \'dx-propertieseditor\', data: grid } --\x3e \x3c!-- /ko --\x3e </div> <div class="dxrd-wizard-validationsummary" data-bind="dxValidationSummary: $data.validationSummary || {}, visible: $data.validationSummary && !isValid()"></div> </div> \x3c!-- /ko --\x3e <div class="dxrd-wizard-validationsummary" data-bind="dxValidationSummary: $data._validationSummary || {}, visible: $data._validationSummary && _selectedSource().validationSummary && !canNext()"></div> </div> </div>',"dx-property-json-string-editor":'<div class="dx-field" data-bind="visible: visible"> \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e </div>',"dxrd-page-dataSource":'<div class="dxrd-wizard-page"> \x3c!-- ko if: isDataSourceCreationAvailable --\x3e <div class="dxrd-wizard-datasourceoperation dxrd-radio-nowrap-ellipsis" data-bind="dxRadioGroup: { value: selectedDataSourceOperation, items: dataSourceOperations, layout: \'vertical\' }"> <div data-options="dxTemplate : { name: \'item\' }"> <div class="dxrd-radio-nowrap-ellipsis-text" data-bind="text: text, attr: { \'title\': text }"></div> </div> </div> \x3c!-- /ko --\x3e <div class="dxrd-wizard-availabledatasources dx-default-border-style dxd-border-secondary"> <div class="dxrd-wizard-list" data-bind="dxList: { dataSource: availableDataSources, selectedItems: selectedDataSource, focusStateEnabled:false, editEnabled: true, height: dataSourcesListHeight, editConfig: { selectionEnabled: false }, selectionMode: \'single\', activeStateEnabled: false, disabled: createNewDataSource, noDataText: $root.dx._static.noDataText() }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: name"></div> </div> </div> </div></div>',"dxrd-page-selectitems":"<div class=\"dxrd-wizard-page\"> \x3c!-- ko template: { name: 'dxrd-page-selectitems-radio-group', data: $data } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: { name: 'dxrd-page-selectitems-list', data: $data } --\x3e \x3c!-- /ko --\x3e </div>","dxrd-page-selectitems-radio-group":'\x3c!-- ko if: canCreateNew --\x3e <div class="dxrd-wizard-datasourceoperation dxrd-radio-nowrap-ellipsis" data-bind="dxRadioGroup: { value: selectedOperation, items: operations, layout: \'vertical\' }"> <div data-options="dxTemplate : { name: \'item\' }"> <div class="dxrd-radio-nowrap-ellipsis-text" data-bind="text: text, attr: { \'title\': text }"></div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-page-selectitems-list":'<div class="dxrd-wizard-availabledatasources dx-default-border-style dxd-border-secondary" data-bind="styleunit: { top: $data.canCreateNew() ? 65 : 0 }"> <div class="dxrd-wizard-list dxd-border-primary" data-bind="dxList: { dataSource: items, onSelectionChanged: function(e) { selectedItems(e.addedItems) }, selectedItems: selectedItems.peek(), hoverStateEnabled:false, editEnabled: true, height: \'100%\', editConfig: { selectionEnabled: false }, searchExpr: \'name\', searchEnabled: true, selectionMode: \'single\', activeStateEnabled: false, disabled: _createNew, noDataText: $root.dx._static.noDataText(), searchEditorOptions: { placeholder: $root.dx._static.searchPlaceholder() } }"> <div data-options="dxTemplate : { name: \'item\' }" data-bind="event: { dblclick: function(e){ $parent.onDblClick() } }"> <div data-bind="text: $parent._displayExpr($data)"></div> </div> </div> </div>',"dxrd-page-specify-connection":"<div class=\"dxrd-wizard-page\"> \x3c!-- ko template: { name: 'dxrd-page-selectitems-radio-group', data: $data } --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !_createNew() --\x3e \x3c!-- ko template: { name: 'dxrd-page-selectitems-list', data: $data } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: _createNew --\x3e <div class=\"dxrd-page-specify-connection_createNew\"> \x3c!-- ko template: { name: 'dxrd-page-jsonsource', data: _specifySourceData } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e</div>","dx-jsonwizard-parametercollection":'<div class="dx-field"> \x3c!-- ko with: value --\x3e <div class="dx-jsonwizard-parameter-left-container"> <div class="dx-jsonwizard-parameter"> <div data-bind="dxLocalizedSelectBox: { dataSource: _parameterTypes, value: itemType, valueExpr:\'value\', displayExpr: \'displayValue\', displayCustomValue: true, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div> </div> <div class="dx-jsonwizard-parameter-middle-container"> <div data-bind="dxTextBox: { value: name, placeholder: $data.namePlaceholder() }, dxValidator: { validationRules: $parent.editor.editorOptions.nameValidationRules || [] }"></div> </div> <div class="dx-jsonwizard-parameter-right-container"> <div class="dx-jsonwizard-parameter"> <div data-bind="dxTextBox: { value: _editingValue, placeholder: $data.valuePlaceholder() }, visible: !$data.isExpression()"></div> <div data-bind="dxExpressionEditor: { options: _expression, fieldListProvider: $parent.editor.editorOptions.itemsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() }, visible: $data.isExpression"></div> </div> </div> \x3c!-- ko template: { name: \'dx-wizard-menu-box-editorswitch\', data: $data } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-jsonwizard-loadfile-editor":"<div data-bind=\"dxFileImagePicker: { value: value, placeholderId: 'File', accept:'.json,.txt' }\"></div>","dx-jsonwizard-jsonstring-editor":'\x3c!-- ko if: !aceAvailable --\x3e <div class="dxrd-jsonwizard-jsonstring-editor dxd-border-secondary dxd-back-primary2" data-bind="dxTextArea: { value: value, spellcheck: false, isValid: isValid }, dxValidator: $data.validator || { validationRules: jsonStringValidationRules || [] }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dx-texteditor dx-editor-outlined dxrd-jsonwizard-jsonstring-editor dxd-wizard-jsoneditor dxd-border-secondary dxd-back-primary2" data-bind="dxAceEditor: { value: value, editorContainer: editorContainer, options: aceOptions, additionalOptions: additionalOptions }, css: { \'dx-invalid\' : !value() || !isValid() }"></div> \x3c!-- /ko --\x3e <div class="dxd-upload-file"> <div class="dxd-back-primary2"></div> <div data-bind="dxButtonWithTemplate: { onClick: uploadFile, hint: $data.getUploadTitle(), icon: \'dxrd-svg-wizard-Download\' }"></div> </div>',"dxrd-wizard-add-queries-page":'<div class="dxrd-wizard-page dxrd-wizard-add-queries-page dxrd-wizard-page-treelist-accordion-style"> <div data-bind="treeListSearchPanel: {controllers: ko.unwrap(_fieldListModel).treeListController}"></div> <div class="dxrd-wizard-dataMember dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _scrollViewHeight }"> <div data-bind="treelist: _fieldListModel" style="width:100%; height: 100%;"></div> </div> \x3c!-- ko ifnot: $data.disableCustomSql --\x3e \x3c!-- ko template: { name: \'dxqb-popup-selectStatment\', data: _popupSelectStatement } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: { name: \'dxrd-querybuilder-popup\', data: _popupQueryBuilder } --\x3e \x3c!-- /ko --\x3e <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel: _loadPanelViewModel($element)"> </div> </div>',"dxd-custom-query-treelisitem":'<div data-bind="visible: visible"> <div class="dx-background-inheritor dxd-back-highlighted dxd-state-selected"> <div class="dx-treelist-item dx-fontsize-reestablished dxd-list-item-back-color" data-bind=" styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected dxd-back-secondary\': isSelected }"> <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass"></div> <div class="dx-treelist-caption"> \x3c!-- ko if: actions && actions.length > 0 --\x3e <div class="dx-treelist-action-container" data-bind="visible: isSelected() || isHovered()"> \x3c!-- ko foreach: actions --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: $data.imageTemplateName, iconClass: $data.imageClassName, disabled: $data.disabled && $data.disabled() }, attr: { title: text }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e <div class="dx-treelist-selectedcontent" data-bind="click: toggleSelected"> <div class="dx-treelist-text-wrapper"> <div class="dx-add-queries-page-checkbox" data-bind="dxCheckBox: { value: data.checked }, click: function(treeNode, e) { treeNode.data.toggleChecked(); e.stopPropagation(); return true; }"></div> <div class="dx-treelist-text dx-treelist-text-with-checkbox"> <div class="dx-queryname-textbox" data-bind="dxTextBox: { value: queryName }"></div> </div> </div> </div> </div> </div> </div> </div>',"dxrd-configure-query-parameters-page":'<div class="dxrd-wizard-page dxrd-configure-query-parameters-page dxrd-wizard-page-treelist-accordion-style"> <div class="dxrd-wizard-dataMember dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _scrollViewHeight }"> \x3c!-- ko if: !!$data._fieldListModel() --\x3e <div data-bind="treelist: _fieldListModel" style="width:100%; height: 100%;"></div> \x3c!-- /ko --\x3e </div> </div>',"dxrd-wizard-configure-relations-page":"<div class=\"dxrd-wizard-page dxrd-wizard-configure-relations-page\"> \x3c!-- ko if: $data._relationsEditor() --\x3e \x3c!-- ko template: { name: 'dxrd-masterDetail-editor-complete-wizard', data: $data._relationsEditor }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>","dxrd-masterDetail-editor-complete-wizard":"<div class=\"dx-filtereditor dxrd-masterDetail-editor-complete-wizard dxd-border-secondary\"> \x3c!-- ko if: $data --\x3e <div class=\"dx-filtereditor-tree dxd-border-secondary\" data-bind=\"dxScrollView: { showScrollbar: 'onHover', direction: 'both' }\" style=\"cursor: default\"> \x3c!-- ko foreach: masterQueries --\x3e <div class=\"criteria-operator-group\"> <div class=\"criteria-operator-group-item\"> <div class=\"criteria-operator-text dxd-filter-editor-text-color criteria-operator-item-group dxd-filter-editor-group-back-color stylized\" data-bind=\"text: queryName\"></div> <div data-bind=\"service: { name: 'createRelation' }\"></div> </div> <div class=\"criteria-operator-content\"> \x3c!-- ko template: { name: 'dx-masterDetail-editor-relation', foreach: relations }--\x3e \x3c!-- /ko --\x3e </div> </div> \x3c!-- /ko --\x3e </div> <div class=\"dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay\" data-bind=\"dxPopupWithAutoHeight: { height: '235px', focusStateEnabled: false, position: $root.rtl ? { my: 'right top', at: 'right bottom', of: popupService.target, collision: 'flipfit' } : { my: 'left top', at: 'left bottom', of: popupService.target, collision: 'flipfit' }, wrapperAttr: { class: 'dx-selectbox-popup-wrapper dx-dropdownlist-popup-wrapper dx-filtereditor-criteriaoperator-popup dx-dropdowneditor-overlay' }, container: $root.getPopupContainer($element), target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, hideOnOutsideClick: true, shading: false, minWidth:'170px', maxWidth:'500px', width: 'auto', visible: popupService.visible }\"> \x3c!-- ko with: popupService--\x3e \x3c!-- ko with: data --\x3e \x3c!-- ko template: template--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e </div>","dxqb-popup-selectStatment":'<div data-bind="dxPopup: { animation: { show: { type: \'fade\', from: 0, to: 1, duration: 700 }, hide: { type: \'fade\', from: 1, to: 0, duration: 700 } }, wrapperAttr: { class: \'dxqb-preview\' }, visible: isVisible, title: title(), showTitle: true, resizeEnabled: true, shading: true, shadingColor: \'transparent\', fullScreen: false, width: 800, height: 544, container: closest($element, \'.dxrd-wizard\'), position: { of: closest($element, \'.dx-designer-viewport\') }, onHidden: function() { $data.data(null) }, focusStateEnabled: false }"> <div class="dxqb-preview-popup-content"> <div class="dxqb-show-query-string-content dx-widget"> \x3c!-- ko if: !aceAvailable --\x3e <div class="dxrd-show-query-string-editor" data-bind="dxTextArea: { value: data, valueChangeEvent: \'keyup\', disabled: false }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dxrd-show-query-string-editor"> <div class="dxrd-show-query-string-editor-content"> <div class="dx-sql_editor dxd-back-primary2" data-bind="dxAceEditor: { value: data, additionalOptions: additionalOptions, options: aceOptions }"></div> </div> </div> \x3c!-- /ko --\x3e </div> </div> <div class="dxqb-preview-popup-buttons dxd-border-secondary"> <div data-bind="dxButton: { text: okButtonText(), onClick: okButtonHandler }" class="dxqb-preview-popup-button"></div> </div> </div>',"dxrd-treelist-with-checkbox":'<div data-bind="visible: visible"> \x3c!-- ko if: hasContent --\x3e \x3c!-- ko template: "dx-treelist-accordion-item-with-checkbox" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko ifnot: hasContent --\x3e \x3c!-- ko template: "dx-treelist-header-item-with-checkbox" --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div>',"dx-treelist-accordion-item-with-checkbox":'<div data-bind="dxdAccordionExt: { collapsed: collapsed, lazyContentRendering: true }"> \x3c!-- ko template: "dx-treelist-header-item-with-checkbox" --\x3e \x3c!-- /ko --\x3e <div class="dx-fieldset dx-accordion-content dxd-back-primary"> \x3c!-- ko with: data --\x3e \x3c!-- ko template: { name: contenttemplate } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </div>',"dx-treelist-header-item-with-checkbox":'<div class="dx-background-inheritor dxd-back-highlighted dxd-state-selected"> <div data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() }, mouseenter: mouseenter, mouseleave: mouseleave }, attr: { class: \'dx-treeview-item dx-treelist-item dx-fontsize-reestablished dxd-list-item-back-color \' + ($data.hasItems ? \'dx-treelist-list-item-content \' : \'dx-treelist-field-item-content \') + ($data.isSelected() ? \'dx-treelist-item-selected dxd-state-selected dxd-back-secondary\' : \'\') }, styleunit: padding, css: { \'dx-state-hover\': isHovered }"> \x3c!-- ko ifnot: $data.hasItems--\x3e \x3c!-- ko if: $data.showIcon --\x3e <div class="dx-treelist-image" data-bind="css: $data.imageClassName, template: {name: $data.imageTemplateName, if: !!ko.unwrap($data.imageTemplateName)}, attr: { title: text }"> </div> \x3c!-- /ko --\x3e \x3c!-- ko ifnot: $data.showIcon --\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.hasItems --\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass, visible: hasItems, template: \'dxrd-svg-collapsed\', click: toggleCollapsed"></div> \x3c!-- /ko --\x3e <div class="dx-treelist-caption"> \x3c!-- ko if: actions && actions.length > 0 --\x3e <div class="dx-treelist-action-container" data-bind="visible: isSelected() || isHovered()"> \x3c!-- ko foreach: actions --\x3e \x3c!-- ko if: $data.templateName --\x3e \x3c!-- ko template: templateName --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: !$data.templateName --\x3e <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: $data.imageTemplateName, iconClass: $data.imageClassName, disabled: $data.disabled && $data.disabled() }, attr: { title: text }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e <div class="dx-treelist-selectedcontent" data-bind="event: { dblclick: function() { $data.dblClickHandler && $data.dblClickHandler($data); } }, click: toggleSelected, draggable: isDraggable ? dragDropHandler : null, css: { \'dxrd-disabled\': $data.data.disabled && $data.data.disabled() }"> <div class="dx-treelist-text-wrapper"> <div class="dx-add-queries-page-checkbox" data-bind="dxCheckBox: { value: data.checked, disabled: data.selectionDisabled }, click: function(treeNode, e) { treeNode.data.toggleChecked(); e.stopPropagation(); return true; }"></div> \x3c!--ko if: treeListController.searchEnabled --\x3e <div class="dx-treelist-text dx-highlighted-search-text dx-treelist-text-with-checkbox" data-bind="searchHighlighting: { text: text, textToSearch: treeListController.textToSearch, searchOptions: treeListController.searchOptions }, attr: { title: text }"></div> \x3c!-- /ko --\x3e \x3c!--ko ifnot: treeListController.searchEnabled --\x3e <div class="dx-treelist-text dx-treelist-text-with-checkbox" data-bind="text: text, attr: { title: text }"></div> \x3c!-- /ko --\x3e </div> </div> </div> </div></div>',"dx-treelist-action-with-popover":'<div class="dx-treelist-action-with-popover" style="display: inline-block"> <div class="dx-treelist-action" data-bind="dxButtonWithTemplate: { onClick: function() { clickAction($parent); }, icon: $data.imageTemplateName, iconClass: $data.imageClassName , disabled: $data.disabled && $data.disabled() }, attr: { title: text }"></div> \x3c!-- ko template: { name: \'dx-popover-list-items\', data: ko.utils.extend($parent.data, { position: $root.rtl ? \'left\' : \'right\', popupContainer: $root.getPopupContainer }) }--\x3e \x3c!-- /ko --\x3e </div>',"dx-treelist-accordion-contenttemplate-custom-with-actions":'<div data-bind="dxPropertyGrid: { target: $parent.data.dataSourceParameter, level: $parent.data.editor.level + 1 }"></div>',"dxrd-page-objectdatasource-datamembers":'<div class="dx-objectdatasource-datamembers-page"> <div data-bind="dxList: { dataSource: _chooseObjectDataMember.dataMembers, selectedItems: _chooseObjectDataMember.selectedDataMembers, selectionMode: \'single\', activeStateEnabled: false, focusStateEnabled: false, searchExpr: \'displayName\', searchEnabled: true, noDataText: $dx._static.noDataText(), searchEditorOptions: { placeholder: $root.dx._static.searchPlaceholder() } }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: $data.displayName"></div> </div> </div> </div>',"dxrd-page-objectdatasource-types":'<div class="dx-objectdatasource-types-page"> <div class="dxd-border-primary" data-bind="treeListSearchPanel: {controllers: _chooseObjectType.availableTypesTreelistModel.treeListController}"></div> <div data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _chooseObjectType._scrollViewHeight}"> <div data-bind="treelist: _chooseObjectType.availableTypesTreelistModel"></div> \x3c!-- ko if: _chooseObjectType.types && !_chooseObjectType.types().length --\x3e <div class="dxa-no-data-message" data-bind="text: $root.dx._static.noDataText()"></div> \x3c!-- /ko--\x3e </div> </div>',"dxrd-page-objectsource":'<div class="dxrd-wizard-page dx-objectsource-page dx-frameless-style" style="position: absolute; top: 45px; left: 45px; right: 45px; bottom: 45px; margin:0"> \x3c!-- ko foreach: _sections--\x3e <div class="dx-border-inheritor dxd-border-accented"> <div class="dxrd-report-page-tile dxd-border-secondary" data-bind="style: position, css: { \'dxrd-disabled\': $data.disabled() }"> <div class="dxrd-report-page-tile-title" data-bind="text: $parent.showDescription($index(), description), attr: { title: $parent.showDescription($index(), description) }"></div> <div class="dxrd-report-page-tile-content dx-default-border-style dxd-border-secondary"> \x3c!-- ko if: !$data.disabled() --\x3e \x3c!-- ko template: { name: template, data: data } --\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e \x3c!-- ko if: $data.disabled() --\x3e <div class="dxrd-wizard-page dxrd-wizard-disabled-content" data-bind="text: disabledText"></div> \x3c!-- /ko --\x3e </div> </div> </div> \x3c!-- /ko --\x3e </div>',"dx-objectdatasource-types-section":'<div class="dx-objectdatasource-types-section"> <div data-bind="treeListSearchPanel: {controllers: availableTypesTreelistModel.treeListController}"></div> <div data-bind="dxScrollView: { showScrollbar: \'onHover\', height: _scrollViewHeight}"> <div data-bind="treelist: availableTypesTreelistModel"></div> </div> </div>',"dx-objectdatasource-datamembers-section":'<div class="dx-objectdatasource-parameters-datamembers-section"> <div class="dxd-border-primary" data-bind="dxList: { dataSource: dataMembers, selectedItems: selectedDataMembers, selectionMode: \'single\', activeStateEnabled: false, focusStateEnabled: false, searchExpr: \'displayName\', searchEnabled: true, noDataText: $root.dx._static.noDataText(), searchEditorOptions: { placeholder: $root.dx._static.searchPlaceholder() } }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: $data.displayName"></div> </div> </div> </div>',"dx-objectdatasource-parameters-grid":'\x3c!-- ko if: !!$data --\x3e <div class="dx-field dxd-back-primary"> <div class="dx-field-label" data-bind="text: $data.displayName, attr: { \'title\': $data.displayName}"></div> </div> <div class="dxrd-properties-wrapper"> \x3c!-- ko foreach: _grids --\x3e \x3c!-- ko template: { name: \'dx-propertieseditor\', data: $data }--\x3e \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- /ko --\x3e',"dx-objectdatasource-expression-popup":'\x3c!-- ko if: $data.value() --\x3e <div data-bind="dxExpressionEditor: getOptions({ options: value, fieldListProvider: value().itemsProvider, displayNameProvider: $root.displayNameProvider && $root.displayNameProvider() })"></div> \x3c!-- /ko --\x3e',"dx-objectdatasource-parameters-section":"<div class=\"dx-objectdatasource-parameters-section\"> <div class=\"dx-fieldset\" data-bind=\"dxScrollView: { showScrollbar: 'onHover'}\"> \x3c!-- ko template: { name: 'dx-objectdatasource-parameters-grid', data: _ctorParametersObject }--\x3e \x3c!-- /ko --\x3e \x3c!-- ko template: { name: 'dx-objectdatasource-parameters-grid', data: _dataMemberParametersObject }--\x3e \x3c!-- /ko --\x3e </div> </div>","dx-objectdatasource-configureparameters-page":"<div class=\"dxrd-report-page-tile-content dx-default-border-style dxd-border-secondary\" data-bind=\"dxScrollView: { showScrollbar: 'onHover'}\"> \x3c!-- ko template: { name: 'dx-objectdatasource-parameters-section', data: _chooseObjectParameters } --\x3e \x3c!-- /ko --\x3e </div>","dxrd-page-configure-parameters":'<div class="dxrd-wizard-page"> <div class="dxrd-datasource-parameters" data-bind="dxCollectionEditor: parametersEditorOptions"></div> </div>',"dxrd-parameter-collection-item":'<div class="dx-accordion" data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header dxd-text-primary dxd-border-primary" style="border-bottom: 0" data-bind="styleunit: { \'marginLeft\' : editor.padding }, css: { \'dxrd-group-header-collapsed\': collapsed() }"> <div class="dx-collapsing-image" data-bind="template: \'dxrd-svg-collapsed\', css: { \'dx-image-expanded\': !collapsed() }" style="display:inline-block;"></div> <span class="dxrd-group-header-text dxd-text-primary" data-bind="text: value().name"></span> </div> <div class="dx-accordion-content dxd-border-primary"> <div data-bind="dxPropertyGrid: { target: value, level: editor.level + 1 }"></div> </div> </div>',"dxrd-wizard-datasource-parameters":'<div class="dx-fieldset" style="height:100%"> <div class="dx-collectioneditor" style="height:100%"> <div class="dxrd-datasource-parameters-collection"> <div class="dxrd-datasource-parameters-container dxd-border-secondary" data-bind="dxScrollView: { showScrollbar: \'onHover\', useNative: false, scrollByThumb: true }"> \x3c!-- ko if: values().length === 0 --\x3e <div class="dx-collectioneditor-empty dxd-empty-area-placeholder-text-color dxd-text-info"> <span class="dxrd-datasource-parameters-empty-text" data-bind="text: getDisplayTextEmptyArray()"></span> </div> \x3c!-- /ko --\x3e \x3c!-- ko if: values().length !== 0 --\x3e <div class="dx-collectioneditor-items" data-bind="foreach: values"> <div class="dx-background-inheritor dxd-back-highlighted dxd-state-selected" data-bind="with: $parent.createCollectionItemWrapper($parents[1], $index, $element)"> <div class="dx-collectioneditor-item-container dx-fontsize-reestablished dxd-list-item-back-color" data-bind="dxclick: $parents[1].select, css: { \'dxd-state-selected dxd-back-secondary\' : $parents[1].selectedIndex() === $index() }"> <div class="dx-collection-item"></div> </div> </div> </div> \x3c!-- /ko --\x3e </div> </div> <div class="dxrd-collectioneditor-wizard-buttons" data-bind="visible: showButtons"> <div class="dxrd-collectioneditor-action" data-bind="dxButton: { onClick: add, text: getDisplayTextButton(\'add\') }, attr: { title: getDisplayTextButton(\'add\') }"></div> <div class="dxrd-collectioneditor-action" data-bind="dxButton: { onClick: remove, disabled: selectedIndex() === null, text: $parent.removeButtonTitle }, attr: { title: $parent.removeButtonTitle }"></div> </div> </div> </div>',"dxrd-page-connectionstring":'<div class="dxrd-wizard-page"> <div class="dx-wizard-connections dx-default-border-style dxd-border-secondary"> <div class="dxrd-wizard-list dxd-border-primary" data-bind="dxList: { dataSource: _connectionStrings, onSelectionChanged: function(e) { _selectedConnectionString(e.addedItems) }, selectedItems: _selectedConnectionString.peek(), focusStateEnabled: false, searchEnabled: true, searchExpr: \'description\', editEnabled: true, editConfig: { selectionEnabled: true }, selectionMode: \'single\', activeStateEnabled: false, noDataText: $root.dx._static.noDataText(), searchEditorOptions: { placeholder: $root.dx._static.searchPlaceholder() } }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: $data[\'description\'] || $data[\'name\']"></div> </div> </div> </div> </div>',"dxrd-select-control":'<div class="dxrd-create-query-page-query-header"> <div class="dx-editquery-editor" data-bind="text: caption()"></div> <div class="dxd-hyperlink-color dxd-text-accented" data-bind="visible: !runQueryBuilderDisabled, text: $parent.runQueryBuilderBtnText, click: function() { $parent.runQueryBuilder() }"></div> </div> \x3c!-- ko if: !aceAvailable --\x3e <div class="dxrd-wizard-list dxrd-create-query-page-editor dx-default-border-style dxd-border-secondary dx-editquery-editor" data-bind="dxTextArea: { value: sqlString, valueChangeEvent: \'keyup input blur\', readOnly: disableCustomSql() }"></div> \x3c!-- /ko --\x3e \x3c!-- ko if: aceAvailable --\x3e <div class="dxrd-create-query-page-editor dxrd-create-query-page-editor-border dxd-border-secondary dx-editquery-editor"> <div class="dxrd-create-query-page-editor-content"> <div class="dx-sql_editor dxd-back-primary2" data-bind="dxAceEditor: { value: sqlString, additionalOptions: additionalOptions, options: aceOptions }, css: { \'dx-disabled-ace\': disableCustomSql() }"></div> </div> </div> \x3c!-- /ko --\x3e',"dxrd-procedures-control":'<div style="margin-top: 20px" class="dx-editquery-editor" data-bind="text: caption()"></div> <div class="dx-editquery-editor dx-default-border-style dxd-border-secondary"> <div class="dxrd-wizard-list dxrd-create-query-page-editor" data-bind="dxList: { dataSource: storedProcedures, searchEnabled: true, searchExpr: \'name\', onContentReady: scrollActiveItem, selectedItems: selectedProcedure, editEnabled: true, editConfig: { selectionEnabled: true }, selectionMode: \'single\', activeStateEnabled: false, noDataText: $root.dx._static.noDataText() }"> <div data-options="dxTemplate : { name: \'item\' }"> <div data-bind="text: $parent.generateStoredProcedureDisplayName($data)"></div> </div> </div> </div>',"dxrd-wizard-create-query-page":'<div class="dxrd-wizard-page dxrd-wizard-create-query-page"> <div class="dxrd-create-query-page-content"> <div data-bind="text: queryNameCaption()"></div> <div class="dx-editquery-editor" data-bind="dxTextBox: { value: queryName, placeholder: $data.placeholder() }"></div> <div class="dxrd-radio-nowrap-ellipsis" data-bind="dxRadioGroup: { value: selectedQueryType, layout: \'horizontal\', items: queryTypeItems }"> <div data-options="dxTemplate : { name: \'item\' }"> <div class="dxrd-radio-nowrap-ellipsis-text" data-bind="text: $parent.localizeQueryType($data), attr: { \'title\': $parent.localizeQueryType($data) }"></div> </div> </div> \x3c!-- ko template: { name: queryControl().template, data: queryControl() } --\x3e \x3c!-- /ko --\x3e </div> \x3c!-- ko template: { name: \'dxrd-querybuilder-popup\', data: popupQueryBuilder } --\x3e \x3c!-- /ko --\x3e </div>',"dxrd-querybuilder-popup":'<div data-bind="dxPopup: popupViewModel($element)"> \x3c!-- ko if: qbOptions --\x3e \x3c!-- ko if: isVisible --\x3e <div class="dxrd-querybuilder-popup-content"> <div style="height:100%;" data-bind="dxQueryBuilder: qbOptions"></div> </div> \x3c!-- /ko --\x3e <div class="dxrd-querybuilder-popup-buttons dxd-border-secondary"> <div data-bind="dxButton: { text: getDisplayText(\'previewResults\'), onClick: previewHandler, disabled: okButtonDisabled }" class="dxrd-querybuilder-popup-button-left"></div> <div data-bind="dxButton: { text: getDisplayText(\'cancel\'), onClick: cancelHandler }" class="dxrd-querybuilder-popup-button"></div> <div data-bind="dxButton: { text: getDisplayText(\'ok\'), type: \'default\', onClick: okHandler, disabled: okButtonDisabled }" class="dxrd-querybuilder-popup-button"></div> </div> <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel:{ animation: { show: { type: \'fade\', from: 0, to: 1, duration: 700 }, hide: { type: \'fade\', from: 1, to: 0, duration: 700 } }, deferRendering: false, message: getDisplayText(\'loading\'), visible: showLoadIndicator, shading: true, shadingColor: \'transparent\'}"> </div> \x3c!-- /ko --\x3e </div>',"dxrd-querybuilder":'<div class="dx-designer dx-querybuilder" data-bind="template: \'dxrd-designer\'"> </div>',"dx-wizard-menu-box-editorswitch":"<div class=\"dxrd-editormenu-box dxd-property-grid-menu-box-color dxd-back-highlighted\" data-bind=\"css: { 'dxd-state-active': $data.isExpression() }, dxButtonWithTemplate: { onClick: switchEditors, icon: 'dxrd-svg-wizard-expressions' }\"> </div>","dx-popover-list-items":'<div data-bind="dxPopover: { wrapperAttr: { class: $data.className }, width: $data.width || 200, position: position, visible: popoverVisible, target: target, container: popupContainer($element)}"> <div data-bind="attr: { class: $data.className + \'-list\'}, dxList: { dataSource: popoverListItems(), onItemClick: itemClickAction }"> <div data-bind="attr: { class: $data.className + \'-list-item\'}" data-options="dxTemplate : { name: \'item\' }"> <div class="dx-text-content" data-bind="text: name, attr: { title: name }"></div> </div> </div> </div>',"dx-wizard-headerNew":'<div class="dxrd-wizard-header-custom"> \x3c!-- ko with: _currentPage --\x3e <div class="dxrd-span-title" data-bind="text: $data.title || $parent.title"></div> <div class="dxrd-span-description" data-bind="text: description, attr: { title: description }"></div> \x3c!-- /ko --\x3e </div>',"dx-wizard-newlayout":'<div class="dxrd-wizard dx-editors dxd-text-primary" data-bind="dxPopup: { visible: isVisible, wrapperAttr: { class: \'dxrd-wizard dx-editors dxd-text-primary\' }, title: isVisible() ? title : \'\', showTitle: true, fullScreen: false, width: width, height: height, container: $element, visualContainer: _container($element), titleTemplate: _titleTemplate, position: _wizardPopupPosition($element) }, cssArray: [ $data._extendCssClass, { \'dx-rtl\': $root.rtl, \'dx-ltr\': !$root.rtl }]"> <div class="dxrd-wizard-content"> \x3c!-- ko with: _currentPage --\x3e <div style="height: 100%" data-bind="template: { name: template, data: page } "></div> \x3c!-- /ko --\x3e <div class="dxrd-wizard-load-panel dxd-text-primary" data-bind="dxLoadPanel: _loadPanelViewModel($element)"></div> </div> <div class="dxrd-wizard-navigation"> <div data-bind="dxButton: cancelButton" class="dxrd-wizard-btn left"></div> <div data-bind="dxButton: finishButton" class="dxrd-wizard-btn right"></div> <div data-bind="dxButton: nextButton" class="dxrd-wizard-btn right"></div> <div data-bind="dxButton: previousButton" class="dxrd-wizard-btn right"></div> </div> </div>'})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(31),r(74),r(174),r(73),r(34),r(76),r(95),r(203),r(75),r(173),r(53),r(52),r(65),r(201),r(54),r(123),i(r(31),t),i(r(74),t),i(r(174),t),i(r(73),t),i(r(34),t),i(r(76),t),i(r(95),t),i(r(203),t),i(r(75),t),i(r(173),t),i(r(53),t),i(r(52),t),i(r(65),t),i(r(201),t),i(r(54),t),i(r(123),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(167),r(36),r(35),r(202),r(37),r(122),r(96),r(121),i(r(167),t),i(r(36),t),i(r(35),t),i(r(202),t),i(r(37),t),i(r(122),t),i(r(96),t),i(r(121),t)},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){e[o=void 0===o?r:o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(204),r(222),r(223),r(205),i(r(204),t),i(r(222),t),i(r(223),t),i(r(205),t)},function(e,t){e.exports=DevExpress.localization},function(e,t){e.exports=DevExpress.Analytics.Localization}]);
|