@devexpress/analytics-core 20.2.2-alpha-20232-1710 → 20.2.5

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.
Files changed (849) hide show
  1. package/accessibility/_accordionKeyboardHelper.d.ts +20 -0
  2. package/accessibility/_accordionKeyboardHelper.js +74 -0
  3. package/accessibility/_controlElementBase.d.ts +17 -0
  4. package/accessibility/_controlElementBase.js +58 -0
  5. package/accessibility/_controlElementWithParentHighlight.d.ts +17 -0
  6. package/accessibility/_controlElementWithParentHighlight.js +50 -0
  7. package/accessibility/_internal.d.ts +9 -0
  8. package/accessibility/_internal.js +14 -0
  9. package/accessibility/_keyboardHelperBase.d.ts +62 -0
  10. package/accessibility/_keyboardHelperBase.js +258 -0
  11. package/accessibility/_keyboardHelperWithArrowButtonBase.d.ts +14 -0
  12. package/accessibility/_keyboardHelperWithArrowButtonBase.js +50 -0
  13. package/accessibility/_listKeyboardHelper.d.ts +15 -0
  14. package/accessibility/_listKeyboardHelper.js +45 -0
  15. package/accessibility/_rightPanelKeyboardHelper.d.ts +19 -0
  16. package/accessibility/_rightPanelKeyboardHelper.js +58 -0
  17. package/accessibility/_toolbarKeyboardHelper.d.ts +37 -0
  18. package/accessibility/_toolbarKeyboardHelper.js +118 -0
  19. package/accessibility/_treeListKeyboardHelper.d.ts +22 -0
  20. package/accessibility/_treeListKeyboardHelper.js +98 -0
  21. package/analytics-criteria-utils.d.ts +3 -3
  22. package/analytics-criteria-utils.js +3 -3
  23. package/analytics-criteria.d.ts +3 -3
  24. package/analytics-criteria.js +3 -3
  25. package/analytics-data-internal.d.ts +3 -3
  26. package/analytics-data-internal.js +3 -3
  27. package/analytics-data-metadata.d.ts +3 -3
  28. package/analytics-data-metadata.js +3 -3
  29. package/analytics-data-utils.d.ts +3 -3
  30. package/analytics-data-utils.js +3 -3
  31. package/analytics-data.d.ts +3 -3
  32. package/analytics-data.js +3 -3
  33. package/{diagram.d.ts → analytics-diagram.d.ts} +4 -4
  34. package/{diagram.js → analytics-diagram.js} +4 -4
  35. package/analytics-elements-metadata.d.ts +3 -3
  36. package/analytics-elements-metadata.js +3 -3
  37. package/analytics-elements.d.ts +3 -3
  38. package/analytics-elements.js +3 -3
  39. package/analytics-internal.d.ts +27 -3
  40. package/analytics-internal.js +26 -3
  41. package/analytics-localization.d.ts +3 -3
  42. package/analytics-localization.js +3 -3
  43. package/analytics-tools.d.ts +3 -3
  44. package/analytics-tools.js +3 -3
  45. package/analytics-utils.d.ts +5 -3
  46. package/analytics-utils.js +5 -3
  47. package/analytics-widgets-ace.d.ts +13 -0
  48. package/analytics-widgets-ace.js +12 -0
  49. package/analytics-widgets-filtering.d.ts +3 -3
  50. package/analytics-widgets-filtering.js +3 -3
  51. package/analytics-widgets-internal.d.ts +8 -9
  52. package/analytics-widgets-internal.js +8 -7
  53. package/analytics-widgets-metadata.d.ts +3 -3
  54. package/analytics-widgets-metadata.js +3 -3
  55. package/analytics-widgets-treeList.d.ts +3 -3
  56. package/analytics-widgets-treeList.js +3 -3
  57. package/analytics-widgets.d.ts +5 -5
  58. package/analytics-widgets.js +9 -5
  59. package/analytics-wizard-internal.d.ts +3 -3
  60. package/analytics-wizard-internal.js +3 -3
  61. package/analytics-wizard.d.ts +3 -3
  62. package/analytics-wizard.js +3 -3
  63. package/bundle/_add-analytics-to-bundle.d.ts +8 -0
  64. package/bundle/_add-analytics-to-bundle.js +42 -0
  65. package/bundle/_add-devextreme-to-bundle.d.ts +8 -0
  66. package/bundle/_add-devextreme-to-bundle.js +27 -0
  67. package/bundle/_add-querybuilder-to-bundle.d.ts +8 -0
  68. package/bundle/_add-querybuilder-to-bundle.js +44 -0
  69. package/bundle/_add-to-context.d.ts +8 -0
  70. package/bundle/_add-to-context.js +25 -0
  71. package/bundle/analytic-core-bundle.d.ts +9 -0
  72. package/bundle/analytic-core-bundle.js +12 -0
  73. package/bundle/query-builder-bundle.d.ts +12 -0
  74. package/bundle/query-builder-bundle.js +15 -0
  75. package/core/_actionProvider.d.ts +3 -3
  76. package/core/_actionProvider.js +3 -3
  77. package/core/_bindings.d.ts +3 -3
  78. package/core/_bindings.js +82 -45
  79. package/core/_legacy.d.ts +3 -3
  80. package/core/_legacy.js +3 -3
  81. package/core/_metadata.d.ts +3 -3
  82. package/core/_metadata.js +7 -7
  83. package/core/binding/_jsDesignerBindingCommon.d.ts +8 -7
  84. package/core/binding/_jsDesignerBindingCommon.js +5 -6
  85. package/core/binding/_jsDesignerBindingCommonOptions.d.ts +14 -0
  86. package/core/binding/_jsDesignerBindingCommonOptions.js +9 -0
  87. package/core/binding/_requestHelper.d.ts +3 -3
  88. package/core/binding/_requestHelper.js +4 -4
  89. package/core/dragDrop/_dragDropHandler.d.ts +3 -3
  90. package/core/dragDrop/_dragDropHandler.js +5 -6
  91. package/core/dragDrop/_dragHelperContent.d.ts +3 -3
  92. package/core/dragDrop/_dragHelperContent.js +3 -3
  93. package/core/dragDrop/_selectionDragDropHandler.d.ts +3 -3
  94. package/core/dragDrop/_selectionDragDropHandler.js +10 -10
  95. package/core/dragDrop/_toolboxDragDropHandler.d.ts +3 -3
  96. package/core/dragDrop/_toolboxDragDropHandler.js +7 -7
  97. package/core/elements/baseSurface.d.ts +3 -3
  98. package/core/elements/baseSurface.js +10 -11
  99. package/core/elements/elementViewModel.d.ts +3 -3
  100. package/core/elements/elementViewModel.js +23 -23
  101. package/core/elements/margins.d.ts +3 -3
  102. package/core/elements/margins.js +6 -6
  103. package/core/elements/paddingModel.d.ts +3 -3
  104. package/core/elements/paddingModel.js +12 -12
  105. package/core/elements/paddingModelMetaData.d.ts +3 -3
  106. package/core/elements/paddingModelMetaData.js +5 -5
  107. package/core/elements/point.d.ts +3 -3
  108. package/core/elements/point.js +6 -6
  109. package/core/elements/rectangle.d.ts +3 -3
  110. package/core/elements/rectangle.js +4 -4
  111. package/core/elements/serializableModel.d.ts +3 -3
  112. package/core/elements/serializableModel.js +3 -3
  113. package/core/elements/size.d.ts +3 -3
  114. package/core/elements/size.js +8 -8
  115. package/core/internal/_ajaxSetup.d.ts +3 -3
  116. package/core/internal/_ajaxSetup.js +3 -3
  117. package/core/internal/_controlsHelper.d.ts +4 -3
  118. package/core/internal/_controlsHelper.js +11 -10
  119. package/core/internal/_cssCalculator.d.ts +3 -3
  120. package/core/internal/_cssCalculator.js +117 -117
  121. package/core/internal/_editorTypeMapper.d.ts +3 -3
  122. package/core/internal/_editorTypeMapper.js +22 -23
  123. package/core/internal/_getNameHelpers.d.ts +3 -3
  124. package/core/internal/_getNameHelpers.js +12 -13
  125. package/core/internal/_globalize.d.ts +3 -3
  126. package/core/internal/_globalize.js +4 -4
  127. package/core/internal/_hoverInfo.d.ts +3 -3
  128. package/core/internal/_hoverInfo.js +3 -3
  129. package/core/internal/_inlineTextEdit.d.ts +3 -3
  130. package/core/internal/_inlineTextEdit.js +9 -8
  131. package/core/internal/_objectStructureControllers.d.ts +3 -3
  132. package/core/internal/_objectStructureControllers.js +4 -4
  133. package/core/internal/_objectStructureProviders.d.ts +3 -3
  134. package/core/internal/_objectStructureProviders.js +21 -21
  135. package/core/internal/_papperKindMapper.d.ts +3 -3
  136. package/core/internal/_papperKindMapper.js +3 -3
  137. package/core/internal/_processError.d.ts +3 -3
  138. package/core/internal/_processError.js +4 -4
  139. package/core/internal/_resizable.d.ts +3 -3
  140. package/core/internal/_resizable.js +36 -36
  141. package/core/internal/_stores.d.ts +3 -3
  142. package/core/internal/_stores.js +3 -3
  143. package/core/internal/_surfaceHelpers.d.ts +3 -3
  144. package/core/internal/_surfaceHelpers.js +13 -13
  145. package/core/internal/_utils.d.ts +3 -3
  146. package/core/internal/_utils.js +6 -6
  147. package/core/internal/_validation.d.ts +3 -3
  148. package/core/internal/_validation.js +7 -7
  149. package/core/internal/ajaxSetup.d.ts +3 -3
  150. package/core/internal/ajaxSetup.js +3 -3
  151. package/core/selection/_combinedObj.d.ts +3 -3
  152. package/core/selection/_combinedObj.js +15 -15
  153. package/core/selection/_selection.d.ts +3 -3
  154. package/core/selection/_selection.js +6 -6
  155. package/core/selection/_selectionHelpers.d.ts +3 -3
  156. package/core/selection/_selectionHelpers.js +3 -3
  157. package/core/snapLines/_snapLineSurface.d.ts +3 -3
  158. package/core/snapLines/_snapLineSurface.js +4 -4
  159. package/core/snapLines/_snapLinesCollector.d.ts +3 -3
  160. package/core/snapLines/_snapLinesCollector.js +4 -4
  161. package/core/snapLines/_snapLinesHelper.d.ts +3 -3
  162. package/core/snapLines/_snapLinesHelper.js +3 -3
  163. package/core/tools/_actionList.d.ts +3 -3
  164. package/core/tools/_actionList.js +48 -48
  165. package/core/tools/_copyPaste.d.ts +3 -3
  166. package/core/tools/_copyPaste.js +4 -4
  167. package/core/tools/_keyboardHelper.d.ts +15 -10
  168. package/core/tools/_keyboardHelper.js +59 -27
  169. package/core/tools/_tabInfoWithPropertyGrid.d.ts +13 -0
  170. package/core/tools/_tabInfoWithPropertyGrid.js +41 -0
  171. package/core/tools/actionId.d.ts +3 -3
  172. package/core/tools/actionId.js +12 -12
  173. package/core/tools/tabPanel.d.ts +12 -4
  174. package/core/tools/tabPanel.js +41 -22
  175. package/core/tools/toolbox.d.ts +4 -4
  176. package/core/tools/toolbox.js +5 -5
  177. package/core/utils/_arrayutils.d.ts +3 -3
  178. package/core/utils/_arrayutils.js +11 -11
  179. package/core/utils/_designerCreator.d.ts +3 -3
  180. package/core/utils/_designerCreator.js +43 -41
  181. package/core/utils/_designerInitializer.d.ts +21 -0
  182. package/core/utils/_designerInitializer.js +114 -0
  183. package/core/utils/_fieldListProvider.d.ts +3 -3
  184. package/core/utils/_fieldListProvider.js +4 -4
  185. package/core/utils/_infoMessageHelpers.d.ts +3 -3
  186. package/core/utils/_infoMessageHelpers.js +14 -14
  187. package/core/utils/_units.d.ts +4 -3
  188. package/core/utils/_units.js +14 -9
  189. package/core/utils/_utils.d.ts +14 -19
  190. package/core/utils/_utils.js +69 -145
  191. package/core/utils/_visitors.d.ts +3 -3
  192. package/core/utils/_visitors.js +6 -6
  193. package/core/utils/controlsFactory.d.ts +3 -3
  194. package/core/utils/controlsFactory.js +8 -7
  195. package/core/utils/parsers.d.ts +3 -3
  196. package/core/utils/parsers.js +16 -16
  197. package/core/widgets/_buttonInlineEditor.d.ts +3 -3
  198. package/core/widgets/_buttonInlineEditor.js +13 -13
  199. package/core/widgets/_dataMemberEditor.d.ts +3 -3
  200. package/core/widgets/_dataMemberEditor.js +6 -6
  201. package/core/widgets/_fieldlistpicker.d.ts +7 -4
  202. package/core/widgets/_fieldlistpicker.js +54 -54
  203. package/core/widgets/_requiredNullableEditor.d.ts +3 -3
  204. package/core/widgets/_requiredNullableEditor.js +4 -4
  205. package/core/widgets/bordereditor/_binding.d.ts +3 -3
  206. package/core/widgets/bordereditor/_binding.js +5 -5
  207. package/core/widgets/bordereditor/_bordereditor.d.ts +3 -3
  208. package/core/widgets/bordereditor/_bordereditor.js +16 -16
  209. package/core/widgets/colorPickerEditor.d.ts +3 -3
  210. package/core/widgets/colorPickerEditor.js +7 -7
  211. package/core/widgets/dataMemberEditor.d.ts +3 -3
  212. package/core/widgets/dataMemberEditor.js +3 -3
  213. package/core/widgets/fieldListEditor.d.ts +3 -3
  214. package/core/widgets/fieldListEditor.js +4 -4
  215. package/core/widgets/propertygrid/_controlProperties.d.ts +3 -3
  216. package/core/widgets/propertygrid/_controlProperties.js +6 -6
  217. package/core/widgets/propertygrid/_group.d.ts +3 -3
  218. package/core/widgets/propertygrid/_group.js +3 -3
  219. package/core/widgets/registerDesignerEditors.d.ts +8 -0
  220. package/core/widgets/registerDesignerEditors.js +42 -0
  221. package/diagram/_legacy.d.ts +3 -3
  222. package/diagram/_legacy.js +3 -3
  223. package/diagram/bindings.d.ts +3 -3
  224. package/diagram/bindings.js +9 -9
  225. package/diagram/controlsFactory.d.ts +3 -3
  226. package/diagram/controlsFactory.js +79 -79
  227. package/diagram/dragDrop/connectingPointDragHandler.d.ts +3 -3
  228. package/diagram/dragDrop/connectingPointDragHandler.js +8 -8
  229. package/diagram/dragDrop/connectionPointDragHandler.d.ts +3 -3
  230. package/diagram/dragDrop/connectionPointDragHandler.js +7 -7
  231. package/diagram/elements/connectingPointModel.d.ts +3 -3
  232. package/diagram/elements/connectingPointModel.js +6 -6
  233. package/diagram/elements/connectingPointSurface.d.ts +3 -3
  234. package/diagram/elements/connectingPointSurface.js +6 -6
  235. package/diagram/elements/connectors/connectionPointModel.d.ts +3 -3
  236. package/diagram/elements/connectors/connectionPointModel.js +5 -5
  237. package/diagram/elements/connectors/connectionPointSurface.d.ts +3 -3
  238. package/diagram/elements/connectors/connectionPointSurface.js +5 -5
  239. package/diagram/elements/connectors/connectorModel.d.ts +3 -3
  240. package/diagram/elements/connectors/connectorModel.js +6 -6
  241. package/diagram/elements/connectors/connectorSurface.d.ts +3 -3
  242. package/diagram/elements/connectors/connectorSurface.js +5 -5
  243. package/diagram/elements/connectors/routedConnectorModel.d.ts +3 -3
  244. package/diagram/elements/connectors/routedConnectorModel.js +4 -4
  245. package/diagram/elements/connectors/routedConnectorSurface.d.ts +3 -3
  246. package/diagram/elements/connectors/routedConnectorSurface.js +7 -7
  247. package/diagram/elements/diagramElementModel.d.ts +3 -3
  248. package/diagram/elements/diagramElementModel.js +5 -5
  249. package/diagram/elements/diagramElementSurface.d.ts +3 -3
  250. package/diagram/elements/diagramElementSurface.js +10 -10
  251. package/diagram/elements/diagramModel.d.ts +3 -3
  252. package/diagram/elements/diagramModel.js +9 -9
  253. package/diagram/elements/diagramSurface.d.ts +3 -3
  254. package/diagram/elements/diagramSurface.js +7 -7
  255. package/diagram/initializer.d.ts +3 -3
  256. package/diagram/initializer.js +10 -10
  257. package/diagram/metadata.d.ts +3 -3
  258. package/diagram/metadata.js +7 -7
  259. package/diagram/utils.d.ts +3 -3
  260. package/diagram/utils.js +3 -3
  261. package/dist/css/dx-analytics.carmine.compact.css +10 -3
  262. package/dist/css/dx-analytics.carmine.css +10 -3
  263. package/dist/css/dx-analytics.common.css +23 -18
  264. package/dist/css/dx-analytics.contrast.compact.css +10 -3
  265. package/dist/css/dx-analytics.contrast.css +10 -3
  266. package/dist/css/dx-analytics.dark.compact.css +10 -3
  267. package/dist/css/dx-analytics.dark.css +10 -3
  268. package/dist/css/dx-analytics.darkmoon.compact.css +10 -3
  269. package/dist/css/dx-analytics.darkmoon.css +10 -3
  270. package/dist/css/dx-analytics.darkviolet.compact.css +10 -3
  271. package/dist/css/dx-analytics.darkviolet.css +10 -3
  272. package/dist/css/dx-analytics.greenmist.compact.css +10 -3
  273. package/dist/css/dx-analytics.greenmist.css +10 -3
  274. package/dist/css/dx-analytics.light.compact.css +10 -3
  275. package/dist/css/dx-analytics.light.css +10 -3
  276. package/dist/css/dx-analytics.softblue.compact.css +10 -3
  277. package/dist/css/dx-analytics.softblue.css +10 -3
  278. package/dist/css/dx-querybuilder.css +8 -3
  279. package/dist/js/dx-analytics-core.d.ts +7835 -8366
  280. package/dist/js/dx-analytics-core.js +10684 -9470
  281. package/dist/js/dx-analytics-core.min.js +4 -4
  282. package/dist/js/dx-querybuilder.js +2757 -2408
  283. package/dist/js/dx-querybuilder.min.js +4 -4
  284. package/{imports.d.ts → dx-analytics-core-imports.d.ts} +4 -8
  285. package/{imports.js → dx-analytics-core-imports.js} +4 -8
  286. package/dx-analytics-core-svg-templates.d.ts +3 -3
  287. package/dx-analytics-core-svg-templates.js +3 -3
  288. package/dx-analytics-core-templates.d.ts +3 -3
  289. package/dx-analytics-core-templates.js +101 -101
  290. package/dx-analytics-core.d.ts +26 -0
  291. package/dx-analytics-core.js +28 -0
  292. package/dx-query-builder-templates.d.ts +8 -0
  293. package/dx-query-builder-templates.js +101 -0
  294. package/dx-querybuilder-imports.d.ts +11 -0
  295. package/dx-querybuilder-imports.js +13 -0
  296. package/dx-querybuilder.d.ts +20 -0
  297. package/dx-querybuilder.js +22 -0
  298. package/index.d.ts +5 -31
  299. package/index.js +5 -31
  300. package/less/common.less +1 -0
  301. package/less/dx-variable-style.less +9 -0
  302. package/package.json +2 -2
  303. package/property-grid/_legacy.d.ts +3 -3
  304. package/property-grid/_legacy.js +3 -3
  305. package/property-grid/_propertiesAccessibilityProvider.d.ts +3 -3
  306. package/property-grid/_propertiesAccessibilityProvider.js +3 -3
  307. package/property-grid/bindings.d.ts +3 -3
  308. package/property-grid/bindings.js +28 -27
  309. package/property-grid/internal/_addon.d.ts +3 -3
  310. package/property-grid/internal/_addon.js +8 -8
  311. package/property-grid/internal/_codeResolver.d.ts +3 -3
  312. package/property-grid/internal/_codeResolver.js +3 -3
  313. package/property-grid/internal/_popupService.d.ts +3 -3
  314. package/property-grid/internal/_popupService.js +3 -3
  315. package/property-grid/localization/_localization.d.ts +3 -3
  316. package/property-grid/localization/_localization.js +16 -16
  317. package/property-grid/localization/_localizationStringIds.d.ts +3 -3
  318. package/property-grid/localization/_localizationStringIds.js +7 -7
  319. package/property-grid/localization/localization.d.ts +3 -3
  320. package/property-grid/localization/localization.js +3 -3
  321. package/property-grid/localization/localization_utils.d.ts +3 -3
  322. package/property-grid/localization/localization_utils.js +3 -4
  323. package/property-grid/propertygrid.d.ts +3 -3
  324. package/property-grid/propertygrid.js +5 -10
  325. package/property-grid/widgets/collectioneditor/_bindings.d.ts +3 -3
  326. package/property-grid/widgets/collectioneditor/_bindings.js +8 -8
  327. package/property-grid/widgets/collectioneditor/_editor.d.ts +3 -3
  328. package/property-grid/widgets/collectioneditor/_editor.js +16 -16
  329. package/property-grid/widgets/editor.d.ts +6 -3
  330. package/property-grid/widgets/editor.js +22 -11
  331. package/property-grid/widgets/editorValidator.d.ts +3 -3
  332. package/property-grid/widgets/editorValidator.js +7 -7
  333. package/property-grid/widgets/editorsInfo.d.ts +17 -6
  334. package/property-grid/widgets/editorsInfo.js +39 -24
  335. package/property-grid/widgets/ellipsiseditor/_editor.d.ts +9 -4
  336. package/property-grid/widgets/ellipsiseditor/_editor.js +49 -31
  337. package/property-grid/widgets/fileimageeditor/_editor.d.ts +3 -3
  338. package/property-grid/widgets/fileimageeditor/_editor.js +25 -25
  339. package/property-grid/widgets/fonteditor/_fonts.d.ts +3 -3
  340. package/property-grid/widgets/fonteditor/_fonts.js +4 -22
  341. package/property-grid/widgets/fonteditor/_model.d.ts +3 -3
  342. package/property-grid/widgets/fonteditor/_model.js +21 -21
  343. package/property-grid/widgets/fonteditor/editor.d.ts +3 -3
  344. package/property-grid/widgets/fonteditor/editor.js +3 -5
  345. package/property-grid/widgets/fonteditor/metadata.d.ts +3 -3
  346. package/property-grid/widgets/fonteditor/metadata.js +8 -8
  347. package/property-grid/widgets/guideditor.d.ts +3 -3
  348. package/property-grid/widgets/guideditor.js +3 -3
  349. package/property-grid/widgets/internal/_extendedSvgTemplates.d.ts +3 -3
  350. package/property-grid/widgets/internal/_extendedSvgTemplates.js +3 -3
  351. package/property-grid/widgets/internal/_internal.d.ts +4 -4
  352. package/property-grid/widgets/internal/_internal.js +7 -6
  353. package/property-grid/widgets/internal/_svgTemplateEngine.d.ts +5 -5
  354. package/property-grid/widgets/internal/_svgTemplateEngine.js +17 -17
  355. package/property-grid/widgets/internal/_utils.d.ts +38 -4
  356. package/property-grid/widgets/internal/_utils.js +58 -23
  357. package/property-grid/widgets/registerBaseEdtior.d.ts +8 -0
  358. package/property-grid/widgets/registerBaseEdtior.js +31 -0
  359. package/property-grid/widgets/templateUtils.d.ts +9 -0
  360. package/property-grid/widgets/templateUtils.js +20 -0
  361. package/query-builder/_accordionTabInfo.d.ts +3 -3
  362. package/query-builder/_accordionTabInfo.js +41 -41
  363. package/query-builder/_bindings.d.ts +3 -3
  364. package/query-builder/_bindings.js +18 -30
  365. package/query-builder/_initializer.d.ts +10 -16
  366. package/query-builder/_initializer.js +101 -75
  367. package/query-builder/_legacy.d.ts +3 -3
  368. package/query-builder/_legacy.js +3 -3
  369. package/query-builder/_queryBuilderModel.d.ts +42 -0
  370. package/query-builder/_queryBuilderModel.js +9 -0
  371. package/query-builder/binding/eventGenerator.d.ts +11 -0
  372. package/query-builder/binding/eventGenerator.js +58 -0
  373. package/query-builder/binding/jsQueryBuilder.d.ts +28 -0
  374. package/query-builder/binding/jsQueryBuilder.js +65 -0
  375. package/query-builder/binding/jsQueryBuilderBinding.d.ts +24 -0
  376. package/query-builder/binding/jsQueryBuilderBinding.js +114 -0
  377. package/query-builder/binding/jsQueryBuilderBindingOptions.d.ts +32 -0
  378. package/query-builder/binding/jsQueryBuilderBindingOptions.js +9 -0
  379. package/query-builder/dataSource/_dbSchema.d.ts +3 -3
  380. package/query-builder/dataSource/_dbSchema.js +3 -3
  381. package/query-builder/dataSource/_dbSchemaProvider.d.ts +3 -3
  382. package/query-builder/dataSource/_dbSchemaProvider.js +3 -3
  383. package/query-builder/dataSource/_utils.d.ts +3 -3
  384. package/query-builder/dataSource/_utils.js +4 -4
  385. package/query-builder/dataSource/dataSourceParameter.d.ts +3 -3
  386. package/query-builder/dataSource/dataSourceParameter.js +29 -29
  387. package/query-builder/dataSource/dataSourceParameterMeta.d.ts +4 -4
  388. package/query-builder/dataSource/dataSourceParameterMeta.js +35 -35
  389. package/query-builder/dataSource/dbColumn.d.ts +3 -3
  390. package/query-builder/dataSource/dbColumn.js +49 -49
  391. package/query-builder/dataSource/dbForeignKey.d.ts +3 -3
  392. package/query-builder/dataSource/dbForeignKey.js +7 -7
  393. package/query-builder/dataSource/dbSchema.d.ts +3 -3
  394. package/query-builder/dataSource/dbSchema.js +6 -6
  395. package/query-builder/dataSource/dbSchemaProvider.d.ts +3 -3
  396. package/query-builder/dataSource/dbSchemaProvider.js +9 -9
  397. package/query-builder/dataSource/dbStoredProcedure.d.ts +3 -3
  398. package/query-builder/dataSource/dbStoredProcedure.js +8 -8
  399. package/query-builder/dataSource/dbTable.d.ts +3 -3
  400. package/query-builder/dataSource/dbTable.js +7 -7
  401. package/query-builder/dataSource/json/_jsonSchemaProvider.d.ts +3 -3
  402. package/query-builder/dataSource/json/_jsonSchemaProvider.js +4 -4
  403. package/query-builder/dataSource/json/jsonAuthenticationInfo.d.ts +3 -3
  404. package/query-builder/dataSource/json/jsonAuthenticationInfo.js +5 -5
  405. package/query-builder/dataSource/json/jsonDataSource.d.ts +3 -3
  406. package/query-builder/dataSource/json/jsonDataSource.js +8 -8
  407. package/query-builder/dataSource/json/jsonParameter.d.ts +3 -3
  408. package/query-builder/dataSource/json/jsonParameter.js +17 -17
  409. package/query-builder/dataSource/json/jsonSchemaNode.d.ts +3 -3
  410. package/query-builder/dataSource/json/jsonSchemaNode.js +18 -18
  411. package/query-builder/dataSource/json/jsonSchemaProvider.d.ts +3 -3
  412. package/query-builder/dataSource/json/jsonSchemaProvider.js +5 -5
  413. package/query-builder/dataSource/json/jsonSource.d.ts +3 -3
  414. package/query-builder/dataSource/json/jsonSource.js +21 -21
  415. package/query-builder/dataSource/object/objectDataSource.d.ts +3 -3
  416. package/query-builder/dataSource/object/objectDataSource.js +4 -4
  417. package/query-builder/dataSource/object/objectSchema.d.ts +3 -3
  418. package/query-builder/dataSource/object/objectSchema.js +4 -4
  419. package/query-builder/dataSource/resultSet.d.ts +4 -4
  420. package/query-builder/dataSource/resultSet.js +8 -8
  421. package/query-builder/dataSource/resultTable.d.ts +3 -3
  422. package/query-builder/dataSource/resultTable.js +7 -7
  423. package/query-builder/dataSource/sql/connectionOptions.d.ts +3 -3
  424. package/query-builder/dataSource/sql/connectionOptions.js +5 -5
  425. package/query-builder/dataSource/sql/customSqlQuery.d.ts +3 -3
  426. package/query-builder/dataSource/sql/customSqlQuery.js +6 -6
  427. package/query-builder/dataSource/sql/customSqlQueryMeta.d.ts +3 -3
  428. package/query-builder/dataSource/sql/customSqlQueryMeta.js +8 -8
  429. package/query-builder/dataSource/sql/masterDetailRelation.d.ts +3 -3
  430. package/query-builder/dataSource/sql/masterDetailRelation.js +5 -5
  431. package/query-builder/dataSource/sql/masterDetailRelationMeta.d.ts +3 -3
  432. package/query-builder/dataSource/sql/masterDetailRelationMeta.js +11 -11
  433. package/query-builder/dataSource/sql/sqlDataConnection.d.ts +3 -3
  434. package/query-builder/dataSource/sql/sqlDataConnection.js +6 -6
  435. package/query-builder/dataSource/sql/sqlDataSource.d.ts +3 -3
  436. package/query-builder/dataSource/sql/sqlDataSource.js +20 -20
  437. package/query-builder/dataSource/sql/storedProcQuery.d.ts +3 -3
  438. package/query-builder/dataSource/sql/storedProcQuery.js +8 -8
  439. package/query-builder/dataSource/sql/storedProcQueryMeta.d.ts +3 -3
  440. package/query-builder/dataSource/sql/storedProcQueryMeta.js +8 -8
  441. package/query-builder/dataSource/sql/tableQuery.d.ts +3 -3
  442. package/query-builder/dataSource/sql/tableQuery.js +7 -7
  443. package/query-builder/dataSource/sql/tableQueryMeta.d.ts +3 -3
  444. package/query-builder/dataSource/sql/tableQueryMeta.js +12 -12
  445. package/query-builder/dataSource/utils.d.ts +3 -3
  446. package/query-builder/dataSource/utils.js +9 -9
  447. package/query-builder/dragDrop/_columnDragHandler.d.ts +4 -4
  448. package/query-builder/dragDrop/_columnDragHandler.js +9 -9
  449. package/query-builder/dragDrop/_dbObjectDragDropHandler.d.ts +5 -5
  450. package/query-builder/dragDrop/_dbObjectDragDropHandler.js +9 -9
  451. package/query-builder/elements/allColumnsModel.d.ts +3 -3
  452. package/query-builder/elements/allColumnsModel.js +7 -7
  453. package/query-builder/elements/allColumnsModelMeta.d.ts +3 -3
  454. package/query-builder/elements/allColumnsModelMeta.js +3 -3
  455. package/query-builder/elements/allColumnsSurface.d.ts +3 -3
  456. package/query-builder/elements/allColumnsSurface.js +4 -4
  457. package/query-builder/elements/columnExpression.d.ts +3 -3
  458. package/query-builder/elements/columnExpression.js +4 -4
  459. package/query-builder/elements/columnExpressionMeta.d.ts +3 -3
  460. package/query-builder/elements/columnExpressionMeta.js +14 -14
  461. package/query-builder/elements/columnModel.d.ts +3 -3
  462. package/query-builder/elements/columnModel.js +16 -16
  463. package/query-builder/elements/columnModelMeta.d.ts +3 -3
  464. package/query-builder/elements/columnModelMeta.js +28 -28
  465. package/query-builder/elements/columnSurface.d.ts +3 -3
  466. package/query-builder/elements/columnSurface.js +6 -6
  467. package/query-builder/elements/joinConditionModel.d.ts +3 -3
  468. package/query-builder/elements/joinConditionModel.js +4 -4
  469. package/query-builder/elements/joinConditionModelMeta.d.ts +3 -3
  470. package/query-builder/elements/joinConditionModelMeta.js +32 -32
  471. package/query-builder/elements/joinConditionSurface.d.ts +3 -3
  472. package/query-builder/elements/joinConditionSurface.js +4 -4
  473. package/query-builder/elements/parameterModel.d.ts +3 -3
  474. package/query-builder/elements/parameterModel.js +4 -4
  475. package/query-builder/elements/parameterModelMeta.d.ts +3 -3
  476. package/query-builder/elements/parameterModelMeta.js +6 -6
  477. package/query-builder/elements/queryElementModel.d.ts +3 -3
  478. package/query-builder/elements/queryElementModel.js +3 -3
  479. package/query-builder/elements/queryElementSurface.d.ts +3 -3
  480. package/query-builder/elements/queryElementSurface.js +6 -6
  481. package/query-builder/elements/queryModel.d.ts +4 -4
  482. package/query-builder/elements/queryModel.js +39 -39
  483. package/query-builder/elements/queryModelMeta.d.ts +3 -3
  484. package/query-builder/elements/queryModelMeta.js +22 -22
  485. package/query-builder/elements/querySurface.d.ts +3 -3
  486. package/query-builder/elements/querySurface.js +6 -6
  487. package/query-builder/elements/relationModel.d.ts +3 -3
  488. package/query-builder/elements/relationModel.js +5 -5
  489. package/query-builder/elements/relationModelMeta.d.ts +3 -3
  490. package/query-builder/elements/relationModelMeta.js +8 -8
  491. package/query-builder/elements/relationSurface.d.ts +3 -3
  492. package/query-builder/elements/relationSurface.js +5 -5
  493. package/query-builder/elements/tableModel.d.ts +3 -3
  494. package/query-builder/elements/tableModel.js +6 -6
  495. package/query-builder/elements/tableModelMeta.d.ts +3 -3
  496. package/query-builder/elements/tableModelMeta.js +4 -4
  497. package/query-builder/elements/tableSurface.d.ts +3 -3
  498. package/query-builder/elements/tableSurface.js +5 -5
  499. package/query-builder/initializer.d.ts +4 -5
  500. package/query-builder/initializer.js +8 -8
  501. package/query-builder/metadata.d.ts +3 -3
  502. package/query-builder/metadata.js +9 -9
  503. package/query-builder/utils/_callbacks.d.ts +14 -0
  504. package/query-builder/utils/_callbacks.js +9 -0
  505. package/query-builder/utils/_columnExpressionCollectionHelper.d.ts +3 -3
  506. package/query-builder/utils/_columnExpressionCollectionHelper.js +6 -6
  507. package/query-builder/utils/_controlsFactory.d.ts +3 -3
  508. package/query-builder/utils/_controlsFactory.js +13 -13
  509. package/query-builder/utils/_queryBuilderTreeListController.d.ts +4 -4
  510. package/query-builder/utils/_queryBuilderTreeListController.js +3 -3
  511. package/query-builder/utils/_requestwrapper.d.ts +4 -3
  512. package/query-builder/utils/_requestwrapper.js +13 -3
  513. package/query-builder/utils/controlsFactory.d.ts +3 -3
  514. package/query-builder/utils/controlsFactory.js +3 -3
  515. package/query-builder/utils/requestwrapper.d.ts +3 -4
  516. package/query-builder/utils/requestwrapper.js +20 -28
  517. package/query-builder/widgets/_undoEditor.d.ts +3 -3
  518. package/query-builder/widgets/_undoEditor.js +3 -3
  519. package/query-builder/widgets/ace/_ace-mode-sql.d.ts +3 -3
  520. package/query-builder/widgets/ace/_ace-mode-sql.js +81 -81
  521. package/query-builder/widgets/ace/_options.d.ts +4 -4
  522. package/query-builder/widgets/ace/_options.js +4 -4
  523. package/query-builder/widgets/editorTemplates.d.ts +7 -35
  524. package/query-builder/widgets/editorTemplates.js +5 -13
  525. package/query-builder/widgets/expressionFunctions.d.ts +3 -3
  526. package/query-builder/widgets/expressionFunctions.js +5 -5
  527. package/query-builder/widgets/filterEditor/_groupFilterEditorSerializer.d.ts +3 -3
  528. package/query-builder/widgets/filterEditor/_groupFilterEditorSerializer.js +6 -6
  529. package/query-builder/widgets/filterEditor/_operandParameterQBSurface.d.ts +3 -3
  530. package/query-builder/widgets/filterEditor/_operandParameterQBSurface.js +9 -9
  531. package/query-builder/widgets/filterEditor/_operandPropertyQBSurface.d.ts +3 -3
  532. package/query-builder/widgets/filterEditor/_operandPropertyQBSurface.js +3 -3
  533. package/query-builder/widgets/filterEditor/_qbFilterEditorHelper.d.ts +3 -3
  534. package/query-builder/widgets/filterEditor/_qbFilterEditorHelper.js +6 -6
  535. package/query-builder/widgets/filterEditor/_qbFilterStringOptions.d.ts +3 -3
  536. package/query-builder/widgets/filterEditor/_qbFilterStringOptions.js +3 -3
  537. package/query-builder/widgets/filterEditor/_queryBuilderObjectsProvider.d.ts +3 -3
  538. package/query-builder/widgets/filterEditor/_queryBuilderObjectsProvider.js +9 -9
  539. package/query-builder/widgets/masterdetaileditor/_keyColumnSurface.d.ts +3 -3
  540. package/query-builder/widgets/masterdetaileditor/_keyColumnSurface.js +5 -5
  541. package/query-builder/widgets/masterdetaileditor/_masterDetailEditor.d.ts +3 -3
  542. package/query-builder/widgets/masterdetaileditor/_masterDetailEditor.js +9 -9
  543. package/query-builder/widgets/masterdetaileditor/_masterDetailEditorPopupManager.d.ts +3 -3
  544. package/query-builder/widgets/masterdetaileditor/_masterDetailEditorPopupManager.js +8 -8
  545. package/query-builder/widgets/masterdetaileditor/_masterDetailRelationSurface.d.ts +3 -3
  546. package/query-builder/widgets/masterdetaileditor/_masterDetailRelationSurface.js +3 -3
  547. package/query-builder/widgets/masterdetaileditor/_masterQuerySurface.d.ts +3 -3
  548. package/query-builder/widgets/masterdetaileditor/_masterQuerySurface.js +5 -5
  549. package/query-builder/widgets/registerEditorTemplates.d.ts +8 -0
  550. package/query-builder/widgets/registerEditorTemplates.js +23 -0
  551. package/query-builder/wizard/chooseAvailablePage.d.ts +3 -3
  552. package/query-builder/wizard/chooseAvailablePage.js +5 -5
  553. package/query-builder/wizard/dataSourceWizard.d.ts +3 -3
  554. package/query-builder/wizard/dataSourceWizard.js +5 -5
  555. package/query-builder/wizard/dataSourceWizardState.d.ts +3 -3
  556. package/query-builder/wizard/dataSourceWizardState.js +12 -12
  557. package/query-builder/wizard/fullscreen/fullscreenMultiQueryDataSourceWizard.d.ts +3 -3
  558. package/query-builder/wizard/fullscreen/fullscreenMultiQueryDataSourceWizard.js +5 -5
  559. package/query-builder/wizard/fullscreen/fullscreenWizard.d.ts +3 -3
  560. package/query-builder/wizard/fullscreen/fullscreenWizard.js +6 -6
  561. package/query-builder/wizard/fullscreen/fullscreenWizardNavigation.d.ts +3 -3
  562. package/query-builder/wizard/fullscreen/fullscreenWizardNavigation.js +3 -3
  563. package/query-builder/wizard/fullscreen/fullscreenWizardPageFactory.d.ts +3 -3
  564. package/query-builder/wizard/fullscreen/fullscreenWizardPageFactory.js +3 -3
  565. package/query-builder/wizard/fullscreen/pages/fullscreenWizardPage.d.ts +5 -5
  566. package/query-builder/wizard/fullscreen/pages/fullscreenWizardPage.js +9 -9
  567. package/query-builder/wizard/fullscreen/pages/specifyJsonDataSourceSettingsPage.d.ts +3 -3
  568. package/query-builder/wizard/fullscreen/pages/specifyJsonDataSourceSettingsPage.js +7 -7
  569. package/query-builder/wizard/fullscreen/pages/specifyObjectDataSourceSettingsPage.d.ts +3 -3
  570. package/query-builder/wizard/fullscreen/pages/specifyObjectDataSourceSettingsPage.js +11 -10
  571. package/query-builder/wizard/fullscreen/pages/specifySqlDataSourceSettingsPage.d.ts +3 -3
  572. package/query-builder/wizard/fullscreen/pages/specifySqlDataSourceSettingsPage.js +13 -13
  573. package/query-builder/wizard/internal/_configureParametersUtils.d.ts +4 -4
  574. package/query-builder/wizard/internal/_configureParametersUtils.js +13 -13
  575. package/query-builder/wizard/internal/_dbSchemaItemsProvider.d.ts +3 -3
  576. package/query-builder/wizard/internal/_dbSchemaItemsProvider.js +18 -18
  577. package/query-builder/wizard/internal/_dbSchemaTreeListController.d.ts +3 -3
  578. package/query-builder/wizard/internal/_dbSchemaTreeListController.js +3 -3
  579. package/query-builder/wizard/internal/_jsonDataSourceWidgets.d.ts +3 -3
  580. package/query-builder/wizard/internal/_jsonDataSourceWidgets.js +12 -12
  581. package/query-builder/wizard/internal/_jsonSourceSettings.d.ts +3 -3
  582. package/query-builder/wizard/internal/_jsonSourceSettings.js +58 -60
  583. package/query-builder/wizard/internal/_jsonTreeNodeItemsProvider.d.ts +3 -3
  584. package/query-builder/wizard/internal/_jsonTreeNodeItemsProvider.js +4 -4
  585. package/query-builder/wizard/internal/_queryBuilderPopup.d.ts +7 -6
  586. package/query-builder/wizard/internal/_queryBuilderPopup.js +13 -14
  587. package/query-builder/wizard/internal/_selectQuerySqlTextProvider.d.ts +3 -3
  588. package/query-builder/wizard/internal/_selectQuerySqlTextProvider.js +5 -5
  589. package/query-builder/wizard/internal/_selectStatementQueryControl.d.ts +4 -4
  590. package/query-builder/wizard/internal/_selectStatementQueryControl.js +9 -9
  591. package/query-builder/wizard/internal/_storedProceduresQueryControl.d.ts +4 -4
  592. package/query-builder/wizard/internal/_storedProceduresQueryControl.js +14 -12
  593. package/query-builder/wizard/internal/_treeListNode.d.ts +3 -3
  594. package/query-builder/wizard/internal/_treeListNode.js +19 -19
  595. package/query-builder/wizard/internal/_treeNodeItemsProvider.d.ts +3 -3
  596. package/query-builder/wizard/internal/_treeNodeItemsProvider.js +6 -6
  597. package/query-builder/wizard/internal/_utils.d.ts +3 -3
  598. package/query-builder/wizard/internal/_utils.js +15 -15
  599. package/query-builder/wizard/internal/_wizardAction.d.ts +3 -3
  600. package/query-builder/wizard/internal/_wizardAction.js +3 -3
  601. package/query-builder/wizard/internal/_wizardPageProcessor.d.ts +3 -3
  602. package/query-builder/wizard/internal/_wizardPageProcessor.js +15 -15
  603. package/query-builder/wizard/internal/_wizardPageSectionFactory.d.ts +3 -3
  604. package/query-builder/wizard/internal/_wizardPageSectionFactory.js +4 -4
  605. package/query-builder/wizard/internal/_wizardPageSectionIterator.d.ts +3 -3
  606. package/query-builder/wizard/internal/_wizardPageSectionIterator.js +6 -6
  607. package/query-builder/wizard/internal/_wrappedWizardPageSection.d.ts +3 -3
  608. package/query-builder/wizard/internal/_wrappedWizardPageSection.js +3 -3
  609. package/query-builder/wizard/internal/initializer.d.ts +3 -3
  610. package/query-builder/wizard/internal/initializer.js +3 -3
  611. package/query-builder/wizard/internal/jsonSourceSettings.d.ts +3 -3
  612. package/query-builder/wizard/internal/jsonSourceSettings.js +6 -6
  613. package/query-builder/wizard/internal/objectDataSource/_chooseObjectDataMembers.d.ts +3 -3
  614. package/query-builder/wizard/internal/objectDataSource/_chooseObjectDataMembers.js +3 -4
  615. package/query-builder/wizard/internal/objectDataSource/_chooseObjectParameters.d.ts +3 -3
  616. package/query-builder/wizard/internal/objectDataSource/_chooseObjectParameters.js +13 -13
  617. package/query-builder/wizard/internal/objectDataSource/_chooseObjectTypes.d.ts +3 -3
  618. package/query-builder/wizard/internal/objectDataSource/_chooseObjectTypes.js +6 -6
  619. package/query-builder/wizard/internal/objectDataSource/_objectSchemaProvider.d.ts +3 -3
  620. package/query-builder/wizard/internal/objectDataSource/_objectSchemaProvider.js +8 -8
  621. package/query-builder/wizard/internal/wizardPageSectionMetadata.d.ts +3 -3
  622. package/query-builder/wizard/internal/wizardPageSectionMetadata.js +3 -3
  623. package/query-builder/wizard/multiQueryDataSourceWizard.d.ts +3 -3
  624. package/query-builder/wizard/multiQueryDataSourceWizard.js +5 -5
  625. package/query-builder/wizard/pageFactory.d.ts +3 -3
  626. package/query-builder/wizard/pageFactory.js +3 -3
  627. package/query-builder/wizard/pageId.d.ts +3 -3
  628. package/query-builder/wizard/pageId.js +20 -20
  629. package/query-builder/wizard/pageIterator.d.ts +3 -3
  630. package/query-builder/wizard/pageIterator.js +4 -4
  631. package/query-builder/wizard/pages/chooseDataSourceTypePage.d.ts +3 -3
  632. package/query-builder/wizard/pages/chooseDataSourceTypePage.js +8 -8
  633. package/query-builder/wizard/pages/chooseSqlConnectionPage.d.ts +3 -3
  634. package/query-builder/wizard/pages/chooseSqlConnectionPage.js +6 -6
  635. package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonConnectionPage.d.ts +3 -3
  636. package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonConnectionPage.js +10 -8
  637. package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSchemaPage.d.ts +3 -3
  638. package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSchemaPage.js +13 -13
  639. package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSourcePage.d.ts +3 -3
  640. package/query-builder/wizard/pages/jsonDataSourceWizard/chooseJsonSourcePage.js +11 -11
  641. package/query-builder/wizard/pages/jsonDataSourceWizard/specifyJsonConnectionPage.d.ts +3 -3
  642. package/query-builder/wizard/pages/jsonDataSourceWizard/specifyJsonConnectionPage.js +6 -6
  643. package/query-builder/wizard/pages/multiQueryWizard/configureMasterDetailRelationshipsPage.d.ts +3 -3
  644. package/query-builder/wizard/pages/multiQueryWizard/configureMasterDetailRelationshipsPage.js +7 -7
  645. package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigurePage.d.ts +3 -4
  646. package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigurePage.js +44 -46
  647. package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigureParametersPage.d.ts +3 -3
  648. package/query-builder/wizard/pages/multiQueryWizard/multiQueryConfigureParametersPage.js +21 -21
  649. package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceDataMembersPage.d.ts +3 -3
  650. package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceDataMembersPage.js +5 -5
  651. package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceTypesPage.d.ts +3 -3
  652. package/query-builder/wizard/pages/objectDataSourceWizard/chooseObjectDataSourceTypesPage.js +5 -5
  653. package/query-builder/wizard/pages/objectDataSourceWizard/configureObjectDataSourceParametersPage.d.ts +3 -3
  654. package/query-builder/wizard/pages/objectDataSourceWizard/configureObjectDataSourceParametersPage.js +5 -5
  655. package/query-builder/wizard/pages/sqlDataSourceWizard/configureParametersPage.d.ts +3 -3
  656. package/query-builder/wizard/pages/sqlDataSourceWizard/configureParametersPage.js +15 -15
  657. package/query-builder/wizard/pages/sqlDataSourceWizard/configureQueryPage.d.ts +4 -4
  658. package/query-builder/wizard/pages/sqlDataSourceWizard/configureQueryPage.js +18 -18
  659. package/query-builder/wizard/pages/wizardPage.d.ts +3 -3
  660. package/query-builder/wizard/pages/wizardPage.js +3 -3
  661. package/query-builder/wizard/pages/wizardPageMetadata.d.ts +3 -3
  662. package/query-builder/wizard/pages/wizardPageMetadata.js +3 -3
  663. package/query-builder/wizard/popupWizard.d.ts +3 -3
  664. package/query-builder/wizard/popupWizard.js +11 -11
  665. package/query-builder/wizard/stateManager.d.ts +3 -3
  666. package/query-builder/wizard/stateManager.js +3 -3
  667. package/query-builder/wizard/wizard.d.ts +3 -3
  668. package/query-builder/wizard/wizard.js +13 -13
  669. package/query-builder/wizard/wizardEventManager.d.ts +10 -10
  670. package/query-builder/wizard/wizardEventManager.js +3 -3
  671. package/queryBuilder-elements-metadata.d.ts +3 -3
  672. package/queryBuilder-elements-metadata.js +3 -3
  673. package/queryBuilder-elements.d.ts +3 -3
  674. package/queryBuilder-elements.js +3 -3
  675. package/queryBuilder-internal.d.ts +8 -5
  676. package/queryBuilder-internal.js +6 -4
  677. package/queryBuilder-metadata.d.ts +3 -3
  678. package/queryBuilder-metadata.js +3 -3
  679. package/queryBuilder-utils.d.ts +5 -3
  680. package/queryBuilder-utils.js +5 -3
  681. package/queryBuilder-widgets-internal.d.ts +5 -3
  682. package/queryBuilder-widgets-internal.js +7 -3
  683. package/queryBuilder-widgets.d.ts +3 -3
  684. package/queryBuilder-widgets.js +3 -3
  685. package/querybuilder.d.ts +15 -0
  686. package/querybuilder.js +19 -0
  687. package/serializer/_internal.d.ts +4 -3
  688. package/serializer/_internal.js +14 -6
  689. package/serializer/_legacy.d.ts +3 -3
  690. package/serializer/_legacy.js +3 -3
  691. package/serializer/_utils.d.ts +3 -3
  692. package/serializer/_utils.js +13 -14
  693. package/serializer/eventManager.d.ts +3 -3
  694. package/serializer/eventManager.js +3 -3
  695. package/serializer/serializationInfo.d.ts +3 -3
  696. package/serializer/serializationInfo.js +3 -3
  697. package/serializer/serializer.d.ts +3 -3
  698. package/serializer/serializer.js +21 -22
  699. package/serializer/utils.d.ts +3 -3
  700. package/serializer/utils.js +8 -8
  701. package/undo-engine/_legacy.d.ts +3 -3
  702. package/undo-engine/_legacy.js +3 -3
  703. package/undo-engine/_utils.d.ts +3 -3
  704. package/undo-engine/_utils.js +7 -7
  705. package/undo-engine/undoengine.d.ts +3 -3
  706. package/undo-engine/undoengine.js +27 -27
  707. package/utils/20.2/convert.js +82 -0
  708. package/utils/analytics-core-namespaces.js +1 -0
  709. package/utils/converter.js +5 -88
  710. package/utils/theme-builder.js +3 -3
  711. package/widgets/_legacy.d.ts +3 -3
  712. package/widgets/_legacy.js +3 -3
  713. package/widgets/_searchHighlighting.d.ts +3 -3
  714. package/widgets/_searchHighlighting.js +12 -12
  715. package/widgets/_utils.d.ts +4 -4
  716. package/widgets/_utils.js +22 -22
  717. package/widgets/ace/_ace-available.d.ts +8 -0
  718. package/widgets/ace/_ace-available.js +11 -0
  719. package/widgets/ace/_ace-mode-criteria.d.ts +3 -3
  720. package/widgets/ace/_ace-mode-criteria.js +33 -33
  721. package/widgets/ace/_ace-mode-doc-comment.d.ts +3 -3
  722. package/widgets/ace/_ace-mode-doc-comment.js +21 -21
  723. package/widgets/ace/_binding.d.ts +3 -4
  724. package/widgets/ace/_binding.js +23 -19
  725. package/widgets/bindings.d.ts +3 -3
  726. package/widgets/bindings.js +8 -8
  727. package/widgets/common/_codeCompletor.d.ts +3 -3
  728. package/widgets/common/_codeCompletor.js +67 -67
  729. package/widgets/common/_displayNameProvider.d.ts +3 -3
  730. package/widgets/common/_displayNameProvider.js +6 -6
  731. package/widgets/common/displayNameProvider.d.ts +3 -3
  732. package/widgets/common/displayNameProvider.js +3 -3
  733. package/widgets/common/pathRequest.d.ts +3 -3
  734. package/widgets/common/pathRequest.js +4 -4
  735. package/widgets/criteria/criteriaOperatorPreprocessor.d.ts +3 -3
  736. package/widgets/criteria/criteriaOperatorPreprocessor.js +15 -15
  737. package/widgets/criteria/operators/aggregate.d.ts +3 -3
  738. package/widgets/criteria/operators/aggregate.js +4 -4
  739. package/widgets/criteria/operators/between.d.ts +3 -3
  740. package/widgets/criteria/operators/between.js +6 -6
  741. package/widgets/criteria/operators/binary.d.ts +3 -3
  742. package/widgets/criteria/operators/binary.js +4 -4
  743. package/widgets/criteria/operators/constant.d.ts +3 -3
  744. package/widgets/criteria/operators/constant.js +3 -3
  745. package/widgets/criteria/operators/criteriaOperator.d.ts +3 -3
  746. package/widgets/criteria/operators/criteriaOperator.js +14 -15
  747. package/widgets/criteria/operators/function.d.ts +3 -3
  748. package/widgets/criteria/operators/function.js +6 -6
  749. package/widgets/criteria/operators/group.d.ts +3 -3
  750. package/widgets/criteria/operators/group.js +9 -9
  751. package/widgets/criteria/operators/in.d.ts +3 -3
  752. package/widgets/criteria/operators/in.js +6 -6
  753. package/widgets/criteria/operators/join.d.ts +3 -3
  754. package/widgets/criteria/operators/join.js +6 -6
  755. package/widgets/criteria/operators/parameter.d.ts +3 -3
  756. package/widgets/criteria/operators/parameter.js +5 -5
  757. package/widgets/criteria/operators/property.d.ts +3 -3
  758. package/widgets/criteria/operators/property.js +5 -5
  759. package/widgets/criteria/operators/unary.d.ts +3 -3
  760. package/widgets/criteria/operators/unary.js +4 -4
  761. package/widgets/criteria/operators/value.d.ts +3 -3
  762. package/widgets/criteria/operators/value.js +13 -12
  763. package/widgets/criteria/parser/criteriaparser.d.ts +3 -3
  764. package/widgets/criteria/parser/criteriaparser.js +3 -3
  765. package/widgets/criteria/utils.d.ts +11 -11
  766. package/widgets/criteria/utils.js +14 -14
  767. package/widgets/expressioneditor/_expressioneditor.d.ts +3 -3
  768. package/widgets/expressioneditor/_expressioneditor.js +5 -5
  769. package/widgets/expressioneditor/bindings.d.ts +3 -3
  770. package/widgets/expressioneditor/bindings.js +6 -6
  771. package/widgets/expressioneditor/expressioneditor.d.ts +3 -3
  772. package/widgets/expressioneditor/expressioneditor.js +29 -26
  773. package/widgets/expressioneditor/tools/_functions.d.ts +4 -5
  774. package/widgets/expressioneditor/tools/_functions.js +135 -135
  775. package/widgets/expressioneditor/tools/_operatorNames.d.ts +3 -3
  776. package/widgets/expressioneditor/tools/_operatorNames.js +24 -24
  777. package/widgets/expressioneditor/tools/_tools.d.ts +3 -3
  778. package/widgets/expressioneditor/tools/_tools.js +20 -20
  779. package/widgets/expressioneditor/tools/_treeListControllers.d.ts +3 -3
  780. package/widgets/expressioneditor/tools/_treeListControllers.js +5 -5
  781. package/widgets/filtereditor/filtereditor.d.ts +3 -3
  782. package/widgets/filtereditor/filtereditor.js +28 -27
  783. package/widgets/filtereditor/filtereditoroptions.d.ts +3 -3
  784. package/widgets/filtereditor/filtereditoroptions.js +7 -7
  785. package/widgets/filtereditor/helpers/_addon.d.ts +3 -3
  786. package/widgets/filtereditor/helpers/_addon.js +9 -9
  787. package/widgets/filtereditor/helpers/_codeCompletor.d.ts +3 -3
  788. package/widgets/filtereditor/helpers/_codeCompletor.js +5 -5
  789. package/widgets/filtereditor/helpers/_helper.d.ts +3 -3
  790. package/widgets/filtereditor/helpers/_helper.js +3 -3
  791. package/widgets/filtereditor/helpers/_serializer.d.ts +19 -19
  792. package/widgets/filtereditor/helpers/_serializer.js +33 -33
  793. package/widgets/filtereditor/helpers/_treelistController.d.ts +3 -3
  794. package/widgets/filtereditor/helpers/_treelistController.js +5 -5
  795. package/widgets/filtereditor/helpers/_validator.d.ts +3 -3
  796. package/widgets/filtereditor/helpers/_validator.js +3 -3
  797. package/widgets/filtereditor/helpers/helper.d.ts +3 -3
  798. package/widgets/filtereditor/helpers/helper.js +90 -90
  799. package/widgets/filtereditor/operators/aggregateOperandSurface.d.ts +3 -3
  800. package/widgets/filtereditor/operators/aggregateOperandSurface.js +7 -7
  801. package/widgets/filtereditor/operators/betweenOperandSurface.d.ts +3 -3
  802. package/widgets/filtereditor/operators/betweenOperandSurface.js +4 -4
  803. package/widgets/filtereditor/operators/binaryOperandSurface.d.ts +3 -3
  804. package/widgets/filtereditor/operators/binaryOperandSurface.js +4 -4
  805. package/widgets/filtereditor/operators/criteriaOperatorSurface.d.ts +3 -3
  806. package/widgets/filtereditor/operators/criteriaOperatorSurface.js +12 -12
  807. package/widgets/filtereditor/operators/functionOperandSurface.d.ts +3 -3
  808. package/widgets/filtereditor/operators/functionOperandSurface.js +6 -6
  809. package/widgets/filtereditor/operators/groupOperandSurface.d.ts +3 -3
  810. package/widgets/filtereditor/operators/groupOperandSurface.js +10 -10
  811. package/widgets/filtereditor/operators/inOperandSurface.d.ts +3 -3
  812. package/widgets/filtereditor/operators/inOperandSurface.js +4 -4
  813. package/widgets/filtereditor/operators/operandParameterSurface.d.ts +3 -3
  814. package/widgets/filtereditor/operators/operandParameterSurface.js +6 -6
  815. package/widgets/filtereditor/operators/operandPropertySurface.d.ts +3 -3
  816. package/widgets/filtereditor/operators/operandPropertySurface.js +15 -15
  817. package/widgets/filtereditor/operators/operandSurfaceBase.d.ts +3 -3
  818. package/widgets/filtereditor/operators/operandSurfaceBase.js +10 -10
  819. package/widgets/filtereditor/operators/operandValueSurface.d.ts +3 -3
  820. package/widgets/filtereditor/operators/operandValueSurface.js +14 -12
  821. package/widgets/filtereditor/operators/unaryOperandSurface.d.ts +3 -3
  822. package/widgets/filtereditor/operators/unaryOperandSurface.js +5 -5
  823. package/widgets/formatstring/_patterns.d.ts +3 -3
  824. package/widgets/formatstring/_patterns.js +3 -3
  825. package/widgets/formatstring/binding.d.ts +3 -3
  826. package/widgets/formatstring/binding.js +6 -6
  827. package/widgets/formatstring/formatstringeditor.d.ts +3 -3
  828. package/widgets/formatstring/formatstringeditor.js +28 -28
  829. package/widgets/internal/_popupwithautoheight.d.ts +3 -3
  830. package/widgets/internal/_popupwithautoheight.js +6 -6
  831. package/widgets/internal/_valueEditorHelper.d.ts +16 -16
  832. package/widgets/internal/_valueEditorHelper.js +67 -67
  833. package/widgets/treelist/_binding.d.ts +3 -3
  834. package/widgets/treelist/_binding.js +8 -8
  835. package/widgets/treelist/_treeListSearchViewModel.d.ts +3 -3
  836. package/widgets/treelist/_treeListSearchViewModel.js +24 -17
  837. package/widgets/treelist/_treelistController.d.ts +3 -3
  838. package/widgets/treelist/_treelistController.js +4 -4
  839. package/widgets/treelist/_treelistItem.d.ts +4 -5
  840. package/widgets/treelist/_treelistItem.js +35 -38
  841. package/widgets/treelist/options.d.ts +4 -5
  842. package/widgets/treelist/options.js +5 -5
  843. package/widgets/utils.d.ts +3 -3
  844. package/widgets/utils.js +3 -3
  845. package/core/widgets/editorsInfo.d.ts +0 -95
  846. package/core/widgets/editorsInfo.js +0 -40
  847. package/dx-querybuilder-templates.d.ts +0 -8
  848. package/dx-querybuilder-templates.js +0 -101
  849. package/utils/analytics-namespaces.js +0 -1
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * DevExpress Analytics (dist\js\dx-querybuilder.min.js)
3
- * Version: 20.2.2-build-20232-1905
4
- * Build date: Aug 19, 2020
5
- * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
3
+ * Version: 20.2.5
4
+ * Build date: Jan 18, 2021
5
+ * Copyright (c) 2012 - 2021 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 a(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,a),t.l=!0,t.exports}a.m=r,a.c=o,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)a.d(r,o,function(e){return t[e]}.bind(null,o));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=170)}([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.DataSourceWizardPageId={ChooseDataSourceTypePage:"chooseDataSourceTypePage",ConfigureMasterDetailRelationshipsPage:"configureMasterDetailRelationshipsPage"},t.SqlDataSourceWizardPageId={ChooseConnectionPage:"chooseSqlConnectionPage",ConfigureQueryPage:"configureSqlQueryPage",ConfigureParametersPage:"configureSqlParametersPage",MultiQueryConfigurePage:"multiSqlQueryConfigurePage",MultiQueryConfigureParametersPage:"multiSqlQueryConfigureParametersPage"},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"},t.FullscreenDataSourceWizardSectionId={SpecifyJsonConnectionPage:t.JsonDataSourceWizardPageId.SpecifyJsonConnectionPage,ChooseJsonSchemaPage:t.JsonDataSourceWizardPageId.ChooseJsonSchemaPage,ChooseJsonSourcePage:t.JsonDataSourceWizardPageId.ChooseJsonSourcePage,ChooseSqlConnectionPage:t.SqlDataSourceWizardPageId.ChooseConnectionPage,ConfigureQueryPage:t.SqlDataSourceWizardPageId.MultiQueryConfigurePage,ConfigureQueryParametersPage:t.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage,ConfigureMasterDetailRelationshipsPage:t.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(3),s=r(1),c=(i=s.Disposable,a(d,i),d.prototype.dispose=function(){i.prototype.dispose.call(this),this._onChange=function(){}},d.prototype.commit=function(){return n.Deferred().resolve().promise()},d.prototype.onChange=function(e){this._onChange=e},d.prototype.initialize=function(e){return n.Deferred().resolve().promise()},d.prototype.canNext=function(){return!0},d.prototype.canFinish=function(){return!1},d);function d(){var e=null!==i&&i.apply(this,arguments)||this;return e._onChange=function(){},e}t.WizardPageBase=c;var l,u=(l=s.Disposable,a(p,l),p.prototype.dispose=function(){this.onChange=null,this[f.BaseWizard.__loadingStateFunctionName]=null,this.page.dispose(),this._initDef&&this._initDef.reject(),this._initDef=null},p.prototype.resetCommitedState=function(){this._lastCommitedState=null},p.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})},p.prototype.initialize=function(e,t){var r=this;return void 0===t&&(t=!1),this._initDef&&this._initDef.reject(),this._initDef=n.Deferred(),!this._isInitialized||t?(this._isInitialized=!0,this.page.initialize(e).fail(function(){r._isInitialized=!1,r._initDef&&r._initDef.reject()}).done(function(e){r._initDef&&r._initDef.resolve(e)})):this._initDef.resolve(),this._initDef.promise()},p);function p(e,t,r,o){var a=l.call(this)||this;return a.pageId=e,a.page=t,a.template=r,a.description=o,a._isInitialized=!1,a._initDef=null,a.isChanged=!0,t.onChange&&(a.onChange=function(e){return t.onChange(e)}),a}t._WrappedWizardPage=u;var f=r(15)},function(e,t){e.exports=DevExpress.Analytics.Widgets},function(e,t){e.exports=DevExpress.Analytics.Widgets.Internal},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),a=r(69),i=r(1),n=r(0),s=(c.prototype.sendRequest=function(e,t){return o.ajax(a.HandlerUri,e,t)},c.prototype._sendRequest=function(e){return o.ajax(e)},c.prototype.getDbSchema=function(e,t){var r={connectionJSON:this.getConnectionJSON(e),tables:null,views:null};return t&&0<t.length&&(r.tables=(t||[]).filter(function(e){return!e.isView}).map(function(e){return e.name}),r.views=(t||[]).filter(function(e){return e.isView}).map(function(e){return e.name})),this.sendRequest("getDBSchema",encodeURIComponent(JSON.stringify(r)))},c.prototype.getDbStoredProcedures=function(e){var t=JSON.stringify({connectionJSON:this.getConnectionJSON(e)});return this.sendRequest("getDBStoredProcedures",encodeURIComponent(t))},c.prototype.getSelectStatement=function(e,t){var r=JSON.stringify({connectionJSON:this.getConnectionJSON(e),sqlQueryJSON:t});return this.sendRequest("getSelectStatement",encodeURIComponent(r))},c.prototype.getDataPreview=function(e,t){var r=JSON.stringify({connectionJSON:this.getConnectionJSON(e),sqlQueryJSON:t});return this.sendRequest("getDataPreview",encodeURIComponent(r))},c.prototype.getConnectionJSON=function(e){var t=new i.ModelSerializer,r={DataConnection:t.serialize(e)};return e.options&&n.extend(r,{ConnectionOptions:t.serialize(e.options)}),JSON.stringify(r)},c.prototype.rebuildResultSchema=function(e,t,r){void 0===r&&(r=!1);var o=JSON.stringify({sqlDataSourceJSON:JSON.stringify({SqlDataSource:(new i.ModelSerializer).serialize(e)}),queryName:t,relationsEditing:r});return this.sendRequest("rebuildResultSchema",encodeURIComponent(o))},c.prototype.validateJsonUri=function(e){var t=JSON.stringify(e.source.serialize(!0)),r=JSON.stringify({uriJsonSourceJSON:t}),o={uri:a.HandlerUri,action:"validateJsonEndPoint",arg:encodeURIComponent(r),ignoreError:function(){return!0}};return this._sendRequest(o)},c.prototype.saveJsonSource=function(e,t){var r=t.source,o=JSON.stringify(r.serialize(!0)),a=JSON.stringify({connectionName:e,customJson:r.json(),uriJsonSourceJSON:o});return this.sendRequest("saveJsonSource",encodeURIComponent(a))},c.prototype.getJsonSchema=function(e,t){var r=e.source,o=JSON.stringify(r.serialize(!0)),a=JSON.stringify({connectionName:e.connectionName(),customJson:r.json(),uriJsonSourceJSON:o,parameters:t});return this.sendRequest("getJsonSchema",encodeURIComponent(a))},c.prototype.getObjectTypeDescriptions=function(e){return this.sendRequest("getObjectSchema",e)},c);function c(){}t.RequestWrapper=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SqlQueryType={customSqlQuery:"CustomSqlQuery",tableQuery:"SelectQuery",storedProcQuery:"StoredProcQuery"},t.JsonSourceType={fileJsonSource:"FileJsonSource",customJsonSource:"CustomJsonSource",uriJsonSource:"UriJsonSource"}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),n=r(0),s=r(0),c=r(17),d=r(0),l=r(1),u=r(0),p=r(31),f=r(110),m=r(1),h=r(0);function y(e,t,r){return n.integerValueConverter(e,t,r)}function g(e,t,r){return n.floatValueConverter(e,t,r)}function _(e){if(e instanceof Date){var t=function(e){return(e<10?"0":"")+e};return s.formatUnicorn("#{0}/{1}/{2} {3}:{4}#",t(e.getMonth()+1),t(e.getDate()),e.getFullYear(),t(e.getHours()),t(e.getMinutes()))}return(e||"").toString()}var v=(Object.defineProperty(b.prototype,"specifics",{get:function(){return c.DBColumn.GetSpecific(this.realTypeName||this.name)},enumerable:!0,configurable:!0}),b);function b(e,t,r,o){var a=this;this.name=e,this.defaultValue=t,this.realTypeName=o,r&&(this.valueConverter=function(e){return r(e,t,a.name)})}function S(e){var t;try{t=d.parseDate(e)}catch(e){t=P()}return t}var x,P=function(){var e=new Date;return e.setHours(0,0,0,0),e},C=(x=l.Disposable,a(T,x),T._getTypeValue=function(t,e){void 0===e&&(e=null);var r=T._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}},T.prototype._getTypeValue=function(e){return T._getTypeValue(e,this.resultType())},T.prototype._tryConvertValue=function(e,t){if(!T._isValueValid(e))return t.defaultValue;var r=(t.valueConverter||function(e){return e})(e);return T._isValueValid(r)?r:t.defaultValue},T._isValueValid=function(e){return null!=e&&!isNaN("string"==typeof e?"":e)},T.prototype.getEditorType=function(e){return u.getEditorType(e)},T.prototype._updateValueInfo=function(e){var t=this,r=this._getTypeValue(e),o=this._tryConvertValue(this._value(),r),a=this._expressionValue.peek();this._expressionValue(null),this._value(null),this._valueInfo(h.extend({},p.parameterValueSerializationsInfo,{editor:this.getEditorType(r.name),disabled:!0===r.disableEditor,editorOptions:{onFocusOut:function(e){t.isValid(e.component.option("isValid"))}}})),this._expressionValue(a),this._value(o)},Object.defineProperty(T.prototype,"specifics",{get:function(){var t=this,e=T._typeValues.filter(function(e){return e.name===t.type()});return 0<e.length?e[0].specifics:"string"},enumerable:!0,configurable:!0}),T.validateName=function(e){return e&&!e.match(/[~`!"№;%\^:\?*\(\)&\-\+={}\[\]\|\\\/,\.<>'\s]/)},T.prototype.getInfo=function(){if(this.type){var e=h.extend(!0,[],this._serializationsInfo);return e.splice(e.indexOf(e.filter(function(e){return"value"===e.propertyName})[0]),1,this._valueInfo()),e}return this._serializationsInfo},T.prototype.isPropertyVisible=function(e){return"resultType"!==e||u.IsDataAccessExpression(this.type())},T._typeValues=[new v("System.DateTime",P(),S),new v("System.String",""),new v("System.SByte","0",y),new v("System.Int16","0",y),new v("System.Int32","0",y),new v("System.Int64","0",y),new v("System.Byte","0",y),new v("System.UInt16","0",y),new v("System.UInt32","0",y),new v("System.UInt64","0",y),new v("System.Decimal","0",g),new v("System.Double","0",g),new v("System.Single","0",g),new v("System.Boolean",!1,function(e){return void 0!==e?"true"===String(e).toLowerCase():e}),new v("System.Guid","00000000-0000-0000-0000-000000000000"),new v(u.ExpressionType,"",_),new v("System.Char","")],T);function T(e,t,r){void 0===r&&(r=p.dsParameterSerializationInfo);var o=x.call(this)||this;return o._serializationsInfo=r,o._valueInfo=i.observable(p.parameterValueSerializationsInfo),o._parametersFunctions=f.expressionFunctions,o.isValid=i.observable(!0),(t=t||new m.ModelSerializer).deserialize(o,h.extend(e,{"@ItemType":"Parameter"})),o.name=i.pureComputed({read:function(){return o._name()},write:function(e){T.validateName(e)&&o._name(e)}}),o._expressionValue=i.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=i.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=C},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r){var o,a,i=new s._SqlDataSourceWrapper(e.sqlDataSourceJSON,e.queryName,t);e.name&&i.sqlDataSource.connection.name(e.name);var n=new c.ModelSerializer;return e.customQueries&&0<e.customQueries.length&&(i.customQueries=e.customQueries.map(function(e){return i.sqlDataSource.createQuery(JSON.parse(e),n)}),(o=i.sqlDataSource.queries).push.apply(o,i.customQueries)),e.relations&&0<e.relations.length&&(a=i.sqlDataSource.relations).push.apply(a,e.relations.map(function(e){return new d.MasterDetailRelation(JSON.parse(e),n)})),i.sqlDataSource.id=r||l.guid().replace(/-/g,""),i}var a=r(34),s=r(23),c=r(1),d=r(51),l=r(0),i=r(50),n=r(22);t._restoreSqlDataSourceFromState=o,t._setRestoreSqlDataSourceFromState=function(e){return t._restoreSqlDataSourceFromState=e},t._resetRestoreSqlDataSourceFromState=function(){return t._restoreSqlDataSourceFromState=o};function u(e,t,r){var o=new i.JsonDataSource({"@Name":e.dataSourceName||"JsonDataSource",Source:e.jsonSource&&JSON.parse(e.jsonSource)||{},Schema:e.jsonScheme&&JSON.parse(e.jsonScheme)||{},"@RootElement":e.rootElement||""},void 0,t);return e.connectionName&&o.connectionName(e.connectionName),o.id=r||l.guid().replace(/-/g,""),o}t._restoreJsonDataSourceFromState=u,t._setRestoreJsonDataSourceFromState=function(e){t._restoreJsonDataSourceFromState=e},t._resetRestoreJsonDataSourceFromState=function(){t._restoreJsonDataSourceFromState=u},t._restoreObjectDataSourceFromState=function(e,t,r){var o=new n.ObjectDataSource;return o.setState(e),r&&(o.id=r),o},t._createDefaultDataSourceWizardState=function(e,t,r){return void 0===e&&(e={}),void 0===t&&(t={jsonSource:""}),void 0===r&&(r={dataSourceName:"ObjectDataSource"}),{dataSourceType:a.DataSourceType.Sql,jsonDataSourceWizard:t,sqlDataSourceWizard:e,objectDataSourceWizard:r,dataSourceId:l.guid().replace(/-/g,"")}}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(8),c=r(36),d=(i=s.TreeListItemViewModel,a(l,i),l.prototype.dispose=function(){i.prototype.dispose.call(this),this.queryName.dispose()},l.prototype._getTemplateName=function(){return this._getCustomizedTemplateName(!0)},l.prototype._getCustomizedTemplateName=function(e){return e?"dxd-custom-query-treelisitem":i.prototype._getTemplateName.call(this)},l);function l(){var t=null!==i&&i.apply(this,arguments)||this;return t.queryName=n.computed({read:function(){return t.data&&t.data.name},write:function(e){t.data&&t.data.name!==e&&(t.data.name=e,t.data._afterCheckToggled&&t.data._afterCheckToggled(t.data))}}),t.editingMode=n.observable(!1),t}t.CustomQueryTreeListItem=d;var u,p=(u=s.DefaultTreeListItemFactory,a(f,u),f.prototype.createItem=function(e,t,r,o,a){return"queries"===t[0]?new d(e,t,r,o,a):u.prototype.createItem.call(this,e,t,r,o,a)},f);function f(){return null!==u&&u.apply(this,arguments)||this}t.MultiQueryTreeListItemFactory=p,t.getSectionStyle=function(e,t,r){void 0===t&&(t=30),void 0===r&&(r=!0);var o="inherit",a="-"+t/2+"px";return e?{top:e===c.WizardSectionPosition.Left||e===c.WizardSectionPosition.Right||e===c.WizardSectionPosition.Top||e===c.WizardSectionPosition.TopLeft||e===c.WizardSectionPosition.TopRight?a:o,bottom:e===c.WizardSectionPosition.Left||e===c.WizardSectionPosition.Right||e===c.WizardSectionPosition.Bottom||e===c.WizardSectionPosition.BottomLeft||e===c.WizardSectionPosition.BottomRight?a:o,left:e===c.WizardSectionPosition.Top||e===c.WizardSectionPosition.Bottom||e===c.WizardSectionPosition.Left||e===c.WizardSectionPosition.TopLeft||e===c.WizardSectionPosition.BottomLeft?a:o,right:e===c.WizardSectionPosition.Top||e===c.WizardSectionPosition.Bottom||e===c.WizardSectionPosition.Right||e===c.WizardSectionPosition.TopRight||e===c.WizardSectionPosition.BottomRight?a:o,width:e===c.WizardSectionPosition.Top||e===c.WizardSectionPosition.Bottom?o:"50%",height:e===c.WizardSectionPosition.Left||e===c.WizardSectionPosition.Right?o:"50%",display:r?"block":"none"}:{top:a,bottom:a,left:a,right:a,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(){return t()}))}),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";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(4),s=r(1),c=r(19),d=r(0),l=(i=n.ElementViewModel,a(u,i),u.prototype.getControlFactory=function(){return y.diagramControlsFactory},u);function u(e,t,r){return i.call(this,e,t,r)||this}t.DiagramElementBaseViewModel=l;var p,f=(a(m,p=l),m);function m(e,t,r){var o=p.call(this,d.extend({"@ControlType":"DiagramElement"},e),t,r)||this;return o.connectingPoints=s.deserializeArray(e&&e.ConnectingPoints||[],function(e){return new h.ConnectingPointViewModel(e,o,r)}),void 0===o.text()&&o.text(o.name()),o}t.DiagramElementViewModel=f,t.diagramElementSerializationInfo=[c.size,c.location,c.name,c.text,{propertyName:"type",modelName:"@Type"}];var h=r(28),y=r(47)},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(1),c=r(74),d=r(35),l=r(1),u=r(13),p=(i=s.Disposable,a(f,i),f.prototype._createLoadingState=function(e){var t=this;e[f.__loadingStateFunctionName]||(e[f.__loadingStateFunctionName]=function(e){return t._loadingState(e)})},f.prototype._createNextAction=function(e){var t=this;e[f.__nextActionFunctionName]||(e[f.__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===e&&(e={}),void 0===t&&(t=function(e,t){return new d.PageIterator(e,t)}),this.events.call("beforeInitialize",{wizard:this,state:e}),this.stateManager=new c.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;this.events.call("beforeStart",{wizard:this}),this._loadingState(!0);var t=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.__loadingStateFunctionName="__loadingState",f.__nextActionFunctionName="__nextAction",f);function f(e,t){var r=i.call(this)||this;return r.pageFactory=e,r.events=new l.EventManager,r._loadingTimeout=null,r.isLoading=n.observable(!1),r._currentPage=n.observable(),r.isVisible=n.observable(!1),r._finishCallback=t,r._disposables.push(r.events),r}t.BaseWizard=p},function(e,t){e.exports={default:""}},function(e,t,r){"use strict";var o,a;Object.defineProperty(t,"__esModule",{value:!0}),(a=o=t.DBColumnType||(t.DBColumnType={}))[a.Unknown=0]="Unknown",a[a.Boolean=1]="Boolean",a[a.Byte=2]="Byte",a[a.SByte=3]="SByte",a[a.Char=4]="Char",a[a.Decimal=5]="Decimal",a[a.Double=6]="Double",a[a.Single=7]="Single",a[a.Int32=8]="Int32",a[a.UInt32=9]="UInt32",a[a.Int16=10]="Int16",a[a.UInt16=11]="UInt16",a[a.Int64=12]="Int64",a[a.UInt64=13]="UInt64",a[a.String=14]="String",a[a.DateTime=15]="DateTime",a[a.Guid=16]="Guid",a[a.TimeSpan=17]="TimeSpan",a[a.ByteArray=18]="ByteArray";var i=(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"}},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=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});var o=r(7),a=r(0),i=r(4),n=r(4);t.name={propertyName:"name",modelName:"@Name",displayName:"Name",editor:o.editorTemplates.text,validationRules:a.nameValidationRules},t.text={propertyName:"text",modelName:"@Text",displayName:"Text",editor:o.editorTemplates.text},t.size={propertyName:"size",modelName:"@Size",defaultVal:"100,50",from:i.Size.fromString,displayName:"Size",editor:o.editorTemplates.objecteditor},t.location={propertyName:"location",modelName:"@Location",from:n.Point.fromString,displayName:"Location",editor:o.editorTemplates.objecteditor},t.sizeLocation=[t.size,t.location],t.unknownSerializationsInfo=[t.name].concat(t.sizeLocation)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,a=r(29);(o=t.PointSide||(t.PointSide={}))[o.East=0]="East",o[o.South=1]="South",o[o.North=2]="North",o[o.West=3]="West",t.determineConnectingPoints=function(e,t){var r,o={start:null,end:null};return t.leftConnectionPoint.location.x()>e.rightConnectionPoint.location.x()+2*a.RoutedConnectorViewModel.GRID_SIZE?(o.start=e.rightConnectionPoint,o.end=t.leftConnectionPoint):e.leftConnectionPoint.location.x()>t.rightConnectionPoint.location.x()+2*a.RoutedConnectorViewModel.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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=(i=s.SurfaceElementBase,a(d,i),d.prototype.container=function(){return this.getRoot()},d._unitProperties={_x:function(e){return e.location.x},_y:function(e){return e.location.y}},d);function d(e,t){var r=i.call(this,e,t,d._unitProperties)||this;return r.template="dx-diagram-connection-point",r.selectiontemplate="dx-diagram-connection-point",r.relativeX=n.pureComputed(function(){return r.rect().left-r.parent.rect().left}),r.relativeY=n.pureComputed(function(){return r.rect().top-r.parent.rect().top}),r}t.ConnectionPointSurface=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(1),c=r(0),d=(i=s.Disposable,a(l,i),l.prototype.setState=function(e){this.ctor=e.ctor,this.dataMember=e.dataMember,this.selectedType=e.selectedType,this.id=c.guid().replace(/-/g,""),this.name(e.dataSourceName)},l);function l(){var e=null!==i&&i.apply(this,arguments)||this;return e.name=n.observable(),e}t.ObjectDataSource=d},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),n=r(3),s=r(114),c=r(10),d=r(1),l=r(6),u=r(12),p=r(75),f=r(121),m=r(0),h=r(1),y=r(76),g=r(38),_=r(15),v=r(77),b=r(32),S=r(33),x=r(30),P=r(73),C=r(5),T=r(0),O=r(0),I=(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:!0,configurable:!0}),N.prototype.saveCustomQueries=function(){var t=new d.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 d.ModelSerializer).serialize(this.sqlDataSource))},N);function N(e,r,t){var o=this;this.sqlDataSourceJSON=e,this.customQueries=[],this.sqlDataSource=new s.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}t._SqlDataSourceWrapper=I;var D,E=(D=l.WizardPageBase,a(w,D),w.prototype.canNext=function(){return!this.queryControl().isNextDisabled()},w.prototype.canFinish=function(){return!this.queryControl().isFinishDisabled()||!this.queryControl().isNextDisabled()},w.prototype.runQueryBuilder=function(){var e=this.queryControl().getQuery();e&&e.type()===c.SqlQueryType.tableQuery?(e.name(this.queryName()),this.popupQueryBuilder.show(e,this._dataSource())):this.popupQueryBuilder.show(new b.TableQuery({"@Name":this.queryName()},this._dataSource()),this._dataSource())},w.prototype.localizeQueryType=function(e){return w.QUERY_TEXT===e?h.getLocalization(w.QUERY_TEXT,"DataAccessUIStringId.WizardPageConfigureQuery_Query"):h.getLocalization(w.SP_TEXT,"DataAccessUIStringId.WizardPageConfigureQuery_StoredProcedure")},w.prototype.initialize=function(e){return this._dataSourceWrapper=u._restoreSqlDataSourceFromState(e,this._options.requestWrapper),this._proceduresList.setQuery(new S.StoredProcQuery({},this._dataSource())),this._selectStatementControl.setQuery(new x.CustomSqlQuery({},this._dataSource())),this._dataSourceWrapper.sqlQuery?(this.initialName=this._dataSourceWrapper.sqlQuery.name(),this.queryName(this.initialName),this.selectedQueryType(this._dataSourceWrapper.sqlQuery.type()===c.SqlQueryType.storedProcQuery?w.SP_TEXT:w.QUERY_TEXT),this.queryControl().setQuery(this._dataSourceWrapper.sqlQuery)):this.selectedQueryType(w.QUERY_TEXT),this.popupQueryBuilder.isVisible(!1),n.Deferred().resolve().promise()},w.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(P.generateQueryUniqueName(this._dataSource().queries(),t)),this._dataSourceWrapper.sqlQuery=t),n.Deferred().resolve({queryName:this._dataSourceWrapper.sqlQuery.name(),sqlDataSourceJSON:this._dataSourceWrapper.save()}).promise()},w.QUERY_TEXT="Query",w.SP_TEXT="Stored Procedure",w);function w(e){var o=D.call(this)||this;return o._options=e,o._connection=function(){return o._dataSource().connection},o._dataSource=function(){return o._dataSourceWrapper&&o._dataSourceWrapper.sqlDataSource},o.queryNameCaption=function(){return h.getLocalization("Query Name","AnalyticsCoreStringId.SqlDSWizard_QueryName")+":"},o.queryControl=i.observable(),o.runQueryBuilderBtnText=i.pureComputed(function(){return o._selectStatementControl.sqlString()&&o._selectStatementControl.getQuery().type()!==c.SqlQueryType.tableQuery?h.getLocalization("Create New Query...","AnalyticsCoreStringId.SqlDSWizard_CreateNewQuery"):h.getLocalization("Run Query Builder...","DataAccessUIStringId.Button_QueryBuilder")}).extend({deferred:!0}),o.placeholder=function(){var e=o.queryControl(),t=e&&e.getQuery(),r=o.initialName||t&&t.generateName();return r?m.formatUnicorn(h.getLocalization("Type custom query name (current name: {0})","AnalyticsCoreStringId.SqlDSWizard_QueryNamePlaceholder"),r):r},o.queryName=i.observable(""),o.queryTypeItems=[w.QUERY_TEXT,w.SP_TEXT],o.selectedQueryType=i.observable(),o.initialName="",o._proceduresList=new p.StoredProceduresQueryControl,o._disposables.push(o._selectStatementControl=new f.SelectStatementQueryControl(new y.SelectQuerySqlTextProvider(g.wrapGetSelectStatement(o._options.callbacks.selectStatement),o._connection),o._options.disableCustomSql)),o._disposables.push(o.selectedQueryType.subscribe(function(e){e===w.SP_TEXT?(o[_.BaseWizard.__loadingStateFunctionName]&&o[_.BaseWizard.__loadingStateFunctionName](!0),o._dataSource().dbSchemaProvider.getDbStoredProcedures().done(function(e){o._proceduresList.storedProcedures([]),o._proceduresList.storedProcedures(e)}).always(function(e){return o[_.BaseWizard.__loadingStateFunctionName]&&o[_.BaseWizard.__loadingStateFunctionName](!1)}),o.queryControl(o._proceduresList)):o.queryControl(o._selectStatementControl)})),o.selectedQueryType(w.QUERY_TEXT),o.popupQueryBuilder=new v.QueryBuilderPopup(function(e,t){return o.queryName(e.name()||e.generateName()),o._selectStatementControl.setQuery(e,t)},o._options.rtl,o._options.callbacks.customizeQBInitData),o}t.ConfigureQueryPage=E,t._registerConfigureQueryPage=function(e,t){e.registerMetadata(C.SqlDataSourceWizardPageId.ConfigureQueryPage,{create:function(){return new E(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:T.isCustomizedWithUpdateLocalizationMethod("Create a query or select a stored procedure")||h.getLocalization("Create a query or select a stored procedure.",O.StringId.WizardPageConfigureQuery)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(44),a=r(42);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:a.editorTemplates.text},{propertyName:"alias",displayName:"Alias",localizationId:"DataAccessUIStringId.QueryBuilderColumns_Alias",editor:a.editorTemplates.text},o.selected,{propertyName:"sortingType",displayName:"Sort Type",editor:a.editorTemplates.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:a.editorTemplates.numeric,localizationId:"DataAccessUIStringId.QueryBuilderColumns_SortOrder"},{propertyName:"groupBy",displayName:"Group By",editor:a.editorTemplates.bool,defaultVal:!1,localizationId:"DataAccessUIStringId.QueryBuilderColumns_GroupBy"},{propertyName:"aggregate",displayName:"Aggregate",editor:a.editorTemplates.comboboxUndo,values:t.AggregationType,defaultVal:t.AggregationType.None,localizationId:"DataAccessUIStringId.QueryBuilderColumns_Aggregate"}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1);t.controlsFactory=new o.ControlsFactory},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(4),s=r(25),c=(i=n.ElementViewModel,a(d,i),d.prototype.getControlFactory=function(){return s.controlsFactory},d);function d(e,t,r){return i.call(this,e,t,r)||this}t.QueryElementBaseViewModel=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=r(0),d=(i=s.SurfaceElementBase,a(l,i),l._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}},l);function l(e,t,r){var o=i.call(this,e,t,c.extend({},l._unitProperties,r))||this;return o.template="dx-diagram-element",o.selectiontemplate="dx-diagram-element-selection",o.contenttemplate="dx-diagram-element-content",o.margin=n.observable(0),o._disposables.push(o.positionWidthWithoutMargins=n.pureComputed(function(){return o.position.width()-2*o.margin()})),o._disposables.push(o.positionLineHeightWithoutMargins=n.pureComputed(function(){return o.position.lineHeight()-2*o.margin()})),o}t.DiagramElementBaseSurface=d;var u,p=(a(f,u=d),f.prototype._getChildrenHolderName=function(){return"connectingPoints"},f);function f(e,t){var r=u.call(this,e,t,null)||this;return r.contenttemplate="dxdd-element-content-with-connecting-points",r}t.DiagramElementSurface=p},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=r(20),d=r(14),l=r(4),u=r(1),p=r(0),f=(i=d.DiagramElementBaseViewModel,a(m,i),m);function m(e,t,r){var o=i.call(this,p.extend({"@ControlType":"ConnectingPoint"},e),t,r)||this;return o.side=n.pureComputed(function(){return o.percentOffsetY()>=o.percentOffsetX()?o.percentOffsetY()>1-o.percentOffsetX()?c.PointSide.South:c.PointSide.West:o.percentOffsetY()>1-o.percentOffsetX()?c.PointSide.East:c.PointSide.North}),o.size=new l.Size(7,7),o.location=new s.Point(0,0),o.location.x=n.pureComputed(function(){var e=o.parentModel();return e.location.x()+e.size.width()*o.percentOffsetX()}),o.location.y=n.pureComputed(function(){var e=o.parentModel();return e.location.y()+e.size.height()*o.percentOffsetY()}),o}t.ConnectingPointViewModel=f,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";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(64),f=r(4),m=r(20),c=r(0),d=(i=s.ConnectorViewModel,a(h,i),h.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},h.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},h.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},h.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)},h.prototype._fixPoint=function(e,t){switch(t){case m.PointSide.North:e.y(e.y()-h.GRID_SIZE);break;case m.PointSide.East:e.x(e.x()+h.GRID_SIZE);break;case m.PointSide.West:e.x(e.x()-h.GRID_SIZE);break;case m.PointSide.South:e.y(e.y()+h.GRID_SIZE)}},h.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},h.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},h.prototype._getRatio=function(e){for(var t=this._getPower(e),r=Math.pow(2,t),o=Math.pow(2,t-1),a=[],i=1;i<o;i++)i%2!=0&&(a.push(r-i),a.push(i));return a.reverse(),(a[e-o]||1)/r},h.prototype.beginUpdate=function(){this._isUpdating=!0},h.prototype.endUpdate=function(){this._isUpdating=!1},h.GRID_SIZE=10,h);function h(e,t,r){var p=i.call(this,c.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=n.observable(1),p.routePoints=n.observable([]),p.freezeRoute=n.observable(!1),p._disposables.push(n.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(n.computed(function(){var e,t,r,o,a,i,n,s,c,d,l,u;p.freezeRoute()||(e=[],t=p._getStartPointSide(),r=p._getEndPointSide(),o=new f.Point(p.startPoint().location.x(),p.startPoint().location.y()),a=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(a,p.endPoint().connectingPoint().side()),i=Math.min(o.x(),a.x()),n=Math.min(o.y(),a.y()),s=Math.abs(o.x()-a.x()),c=Math.abs(o.y()-a.y()),d=p.seriesNumber(),l=p._getRatio(d),u=(d-1)*h.GRID_SIZE,0<o.y()-a.y()?0<o.x()-a.x()?t===m.PointSide.North||t===m.PointSide.East?r===m.PointSide.North||r===m.PointSide.East?(1!==d&&(s+=u,e.push(new f.Point(i+s,n+c))),e.push(new f.Point(i+s,n))):(e.push(new f.Point(i+s,n+c*l)),e.push(new f.Point(i,n+c*l))):r===m.PointSide.South||r===m.PointSide.West?e.push(new f.Point(i,n+c)):(e.push(new f.Point(i+s*l,n+c)),e.push(new f.Point(i+s*l,n))):t===m.PointSide.North||t===m.PointSide.West?r===m.PointSide.North||r===m.PointSide.West?(1!==d&&(i-=u,e.push(new f.Point(i,n+c))),e.push(new f.Point(i,n))):(e.push(new f.Point(i,n+c*l)),e.push(new f.Point(i+s,n+c*l))):r===m.PointSide.South||r===m.PointSide.East?e.push(new f.Point(i+s,n+c)):(e.push(new f.Point(i+s*l,n+c)),e.push(new f.Point(i+s*l,n))):0<o.x()-a.x()?t===m.PointSide.South||t===m.PointSide.East?r===m.PointSide.South||r===m.PointSide.East?(1!==d&&(s+=u,e.push(new f.Point(i+s,n))),e.push(new f.Point(i+s,n+c))):(e.push(new f.Point(i+s,n+c*l)),e.push(new f.Point(i,n+c*l))):r===m.PointSide.North||r===m.PointSide.West?e.push(new f.Point(i,n)):(e.push(new f.Point(i+s*l,n)),e.push(new f.Point(i+s*l,n+c))):t===m.PointSide.South||t===m.PointSide.West?r===m.PointSide.South||r===m.PointSide.West?(1!==d&&(i-=u,e.push(new f.Point(i,n))),e.push(new f.Point(i,n+c))):(e.push(new f.Point(i,n+c*l)),e.push(new f.Point(i+s,n+c*l))):r===m.PointSide.North||r===m.PointSide.East?e.push(new f.Point(i+s,n)):(e.push(new f.Point(i+s*l,n)),e.push(new f.Point(i+s*l,n+c))),p.endPoint().connectingPoint()&&e.push(a),p.routePoints(e))})),p}t.RoutedConnectorViewModel=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),a=r(10),i=r(1),n=r(1),s=r(11),c=r(111),d=r(0),l=(u.prototype.getInfo=function(){return c.customQuerySerializationsInfo},u.prototype.generateName=function(){return"CustomSqlQuery"},u);function u(e,t,r){this.parent=t,(r||new i.ModelSerializer).deserialize(this,d.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return a.SqlQueryType.customSqlQuery}),this.parameters=n.deserializeArray(e.Parameters,function(e){return new s.DataSourceParameter(e,r)})}t.CustomSqlQuery=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(11),a=r(1),i=r(7),n=r(0),s=r(0);t.dsParameterNameValidationRules=[{type:"custom",validationCallback:function(e){return o.DataSourceParameter.validateName(e.value)},get message(){return a.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.text};var c={propertyName:"name",displayName:"Name",localizationId:"DevExpress.DataAccess.Parameter.Name",validationRules:t.dsParameterNameValidationRules,editor:i.editorTemplates.text},d={propertyName:"type",displayName:"Type",localizationId:"DevExpress.DataAccess.Parameter.Type",modelName:"@Type",editor:i.editorTemplates.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"}]},l={propertyName:"resultType",displayName:"Result Type",localizationId:"DataAccessWebStringId.QueryBuilder_ResultType",modelName:"@ResultType",editor:i.editorTemplates.combobox,valuesArray:d.valuesArray.filter(function(e){return!n.IsDataAccessExpression(e.value)})},u=[{propertyName:"_name",modelName:"@Name"},{propertyName:"_value",modelName:"#text"},t.parameterValueSerializationsInfo,{propertyName:"itemType",modelName:"@ItemType"}];t.dsParameterSerializationInfo=[c,d,l].concat(u);var p=[{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=s.extend(!0,{},d),r=[];r.push(d.valuesArray.filter(function(e){return e.value===t})[0]||p.filter(function(e){return e.value===t})[0]),r.push(d.valuesArray.filter(function(e){return n.IsDataAccessExpression(e.value)})[0]),e.valuesArray=r;var o=s.extend(!0,{},l);return o.valuesArray=r.slice(0,0),o.disabled=!0,[s.extend({disabled:!0},c),e,o].concat(u)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),a=r(10),i=r(1),n=r(1),s=r(11),c=r(115),d=r(0),l=(u.prototype.tables=function(){return this._tablesObject.tables()},u.prototype.getInfo=function(){return c.tableQuerySerializationsInfo},u.prototype.generateName=function(){return 0<this.tables().length?this.tables()[0].alias()||this.tables()[0].name():"SelectQuery"},u);function u(e,t,r){this.parent=t,(r||new i.ModelSerializer).deserialize(this,d.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return a.SqlQueryType.tableQuery}),this.parameters=n.deserializeArray(e.Parameters,function(e){return new s.DataSourceParameter(e,r)})}t.TableQuery=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),a=r(10),i=r(1),n=r(1),s=r(11),c=r(0),d=r(31),l=r(116),u=r(0),p=(f.prototype.getInfo=function(){return l.storedProcQuerySerializationsInfo},f.prototype.generateName=function(){return this.procName()||"Query"},f);function f(e,t,r){this.parent=t,(r||new i.ModelSerializer).deserialize(this,u.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return a.SqlQueryType.storedProcQuery}),this.parameters=n.deserializeArray(e.Parameters,function(e){var t=e["@Type"];return c.IsDataAccessExpression(t)&&(t=e["@ResultType"]||t),new s.DataSourceParameter(e,r,d.storedProcParameterSerializationsInfo(t))})}t.StoredProcQuery=p},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n,s=r(2),c=r(3),d=r(1),l=r(6),u=r(15),p=r(0),f=r(5);(n=i=t.DataSourceType||(t.DataSourceType={}))[n.NoData=0]="NoData",n[n.Sql=1]="Sql",n[n.Json=2]="Json",n[n.Object=3]="Object";var m=function(e,t,r,o,a){this.text=d.getLocalization(e,t),this.imageClassName=r,this.imageTemplateName=o,this.type=a};t.TypeItem=m;var h,y=(h=l.WizardPageBase,a(g,h),g.prototype.canNext=function(){return null!=this.selectedItem()},g.prototype.canFinish=function(){return!1},g.prototype._goToNextPage=function(){this[u.BaseWizard.__nextActionFunctionName]&&this[u.BaseWizard.__nextActionFunctionName]()},g.prototype.commit=function(){return c.Deferred().resolve({dataSourceType:this.selectedItem().type}).promise()},g.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)),e},g.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(p.findFirstItemMatchesCondition(this.typeItems,function(e){return e.type===t}))):this.selectedItem(null),c.Deferred().resolve().promise()},g);function g(e){var t=h.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=c.noop,t}t.ChooseDataSourceTypePage=y,t._registerChooseDataSourceTypePage=function(e,t){e.registerMetadata(f.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:d.getLocalization("Select the data source type.","DataAccessUIStringId.WizardPageChooseDSType"),template:"dxrd-page-choose-datasource-type"})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(3),s=r(1),c=r(6),d=(i=s.Disposable,a(l,i),l.prototype.dispose=function(){this._pages.forEach(function(e){return e.dispose()}),this._pages=[]},l.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)},l.prototype._nextPage=function(){return this._pages[this._currentIndex+1]},l.prototype._getNextExistingPage=function(){this._currentIndex+=1;var e=n.Deferred();return e.resolve(this._pages[this._currentIndex]),e.promise()},l.prototype._resetPages=function(){this.__resetPages(this._currentIndex+1)},l.prototype._getNextNewPage=function(e){this._currentIndex+=1;var t=n.Deferred();this.__resetPages(this._currentIndex);var r=this.pageFactory.getMetadata(e),o=new c._WrappedWizardPage(e,r.create(),r.template,r.description);return this._pages.push(o),t.resolve(o),t.promise()},l.prototype._getStartPage=function(e){e=e||this.getNextPageId();var t=this.pageFactory.getMetadata(e),r=new c._WrappedWizardPage(e,t.create(),t.template,t.description);return this._pages.push(r),r},l.prototype._getNextPage=function(){var e=this._getCurrentPage();if(!e.isChanged&&this._nextPage())return this._getNextExistingPage();var t=this.getNextPageId(this._getCurrentPage().pageId);return t?(e.isChanged=!1,this._getNextNewPage(t)):n.Deferred().reject().promise()},l.prototype._getPreviousPage=function(){var e=n.Deferred();return this._currentIndex-1<0?e.reject(null):(--this._currentIndex,e.resolve(this._pages[this._currentIndex])),e.promise()},l.prototype._goToPage=function(t){var e=n.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()},l.prototype._getCurrentPage=function(){return this._pages[this._currentIndex]},l.prototype._getCurrentState=function(){return this.stateManager.getCurrentState()},l.prototype.getNextPageId=function(e){return""},l);function l(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=d},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(13),l=r(117),u=r(118),p=r(15),f=r(1),m=r(0);(i=t.WizardSectionPosition||(t.WizardSectionPosition={}))[i.Left=1]="Left",i[i.TopLeft=2]="TopLeft",i[i.BottomLeft=3]="BottomLeft",i[i.Right=4]="Right",i[i.TopRight=5]="TopRight",i[i.BottomRight=6]="BottomRight",i[i.Top=7]="Top",i[i.Bottom=8]="Bottom";var h,y=(h=c.WizardPageBase,a(g,h),g.prototype.dispose=function(){this._sectionsProcessor.dispose(),this._factory.reset(),this._sections=[]},g.prototype._patchOnChange=function(){var t=this;Object.keys(this._factory.metadata).forEach(function(e){t._factory.metadata[e].onChange=function(){return t._onChange()}})},g.prototype._getPageStyle=function(e,t){return void 0===t&&(t=!0),d.getSectionStyle(e,this._defaultMargin,t)},g.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=[]},g.prototype._setSectionPosition=function(e,t){this._pageCss[e]=n.observable(this._getPageStyle(t))},g.prototype.registerSections=function(){},g.prototype.canNext=function(){return this._sectionsProcessor.sections.every(this._sectionCondition)},g.prototype._sectionCondition=function(e){return e.metadata.required?e.page()&&e.metadata.canNext(e.page().page):!e.page()||e.metadata.canNext(e.page().page)},g.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},g.prototype.setSectionPosition=function(e,t){var r=this;this._sectionPositions.push(function(){r._setSectionPosition(e,t)})},g.prototype.registerSection=function(e,t){var r=this;this._sectionsToRegister.push(function(){r._factory.registerMetadata(e,t)})},g.prototype.unregisterSection=function(e){var t=this;this._sectionsToUnregister.push(function(){return t._factory.unregisterMetadata(e)})},g.prototype._loadPanelViewModel=function(e){return!1},g.prototype.getNextSectionId=function(e){},g.prototype.initialize=function(e){var t=this;return this.registerSections(),this._applyCustomizations(),this._sectionsProcessor.initialize(m.extend(!0,{},e)),this._stateManager=this._sectionsProcessor.stateManager,this._sectionsProcessor.iterator.getNextPageId=function(e){return t.getNextSectionId(e)},this._sectionsProcessor.start(),s.Deferred().resolve().promise()},g.prototype._beforeStart=function(){},g.prototype.commit=function(){var e=this,t=s.Deferred();return this._sectionsProcessor.finishAction().done(function(){t.resolve(m.extend(!0,{},e._stateManager.getCurrentState()))}),t.promise()},g.prototype._getPageDescription=function(e,t){return e+1+". "+t.metadata.description},g.prototype._showPageDescription=function(){return 1<this._sections.length},g);function g(){var t=h.call(this)||this;return t._sectionsToUnregister=[],t._sectionsToRegister=[],t._sectionPositions=[],t._initInProgress=n.observable(!1),t._defaultMargin=30,t._parentMarginOffset=t._defaultMargin+t._defaultMargin/2,t._pageCss={},t.events=new f.EventManager,t._factory=new l.WizardPageSectionFactory,t._sectionsProcessor=new u.WizardPageProcessor(t._factory,function(e){t[p.BaseWizard.__loadingStateFunctionName]&&t[p.BaseWizard.__loadingStateFunctionName](e)},function(){return t[p.BaseWizard.__nextActionFunctionName]&&t[p.BaseWizard.__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=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=(a.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},a.prototype.getMetadata=function(e){return this.metadata[e]},a.prototype.unregisterMetadata=function(e){delete this.metadata[e]},a.prototype.reset=function(){this.metadata={}},a);function a(){this.metadata={}}t.PageFactory=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(9);t.wrapGetSelectStatement=function(r){return function(e,t){return r?r(e,t):(new a.RequestWrapper).getSelectStatement(e,t)}},t.wrapRebuildResultSchema=function(o){return function(e,t,r){return o?o(e,t,r):(new a.RequestWrapper).rebuildResultSchema(e,t,r)}}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(12),l=r(83),u=r(9),p=r(50),f=r(1),m=r(1),h=r(5),y=(i=c.WizardPageBase,a(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 p.JsonDataSource({});this._selectedSource().applySettings(e);var t=(new f.ModelSerializer).serialize(e);return s.Deferred().resolve({jsonSource:JSON.stringify(t.Source),newConnectionName:this._connectionName()}).promise()},g.prototype.initialize=function(e){this.__validationGroup=null,this.__validationSummary=null;var t=d._restoreJsonDataSourceFromState(e);return t.source.uri()?this._selectedSource(this._jsonUriSetting):t.source.json()&&this._selectedSource(this._jsonStringSettings),this._selectedSource().setValue(t),s.Deferred().resolve().promise()},g);function g(e,t){void 0===e&&(e=new u.RequestWrapper);var r=i.call(this)||this;r._requestWrapper=e,r.__validationGroup=null,r.__validationSummary=null,r._jsonSourceTitle=m.getLocalization("JSON Source:","DataAccessUIStringId.WizardPageChooseJsonSource_SourceType"),r._jsonConnectionTitle=m.getLocalization("Connection Name:","AnalyticsCoreStringId.ReportDesigner_Wizard_Json_ConnectionName"),r._connectionNameValidationRules=[{type:"required",get message(){return l.getLocalizedValidationErrorMessage(null,this._jsonConnectionTitle)}}],r._connectionName=n.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 l.JsonDataSourceJsonSourcePageStringSettings),r._jsonStringSettings.onChange(function(){return r._onChange()}),r._disposables.push(r._jsonUriSetting=new l.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"}];var o=n.observable();return r._selectedSource=n.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=y,t._registerChooseJsonSourcePage=function(e,t,r){e.registerMetadata(h.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 y(t,r&&r())},description:m.getLocalization("Create a data connection.","AnalyticsCoreStringId.JsonDSWizard_CreateNewConnectionPage_Description"),template:"dxrd-page-jsonsource"})}},function(e,s,t){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(s,"__esModule",{value:!0});var c=t(2),n=t(3),d=t(1);s.defaultObjectDataSourceItemSpecifics="Default";var 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,a){void 0===o&&(o=!1);var i=this;this.name=e,this.displayName=t,this.specifics=r,this.checked=c.pureComputed(function(){return i._checked()}),this.isList=!1,this._checked=c.observable(o),this._afterCheckToggled=a||n.noop}s.TreeNodeBase=a;var l,u=(r(p,l=a),p);function p(e,t,r,o,a,i){void 0===o&&(o=!1),void 0===a&&(a=null);var n=l.call(this,e,t,r,o,i)||this;return n.name=e,n.displayName=t,n.specifics=r,n.hasQuery=!1,n.arguments=a,n}s.TreeLeafNode=u;var f,m=(r(h,f=a),h.prototype.initialized=function(){return 0<this.children().length},h.prototype.setChecked=function(t){this._checked(t),this.children.peek().forEach(function(e){e.setChecked(t)})},h.prototype.initializeChildren=function(e){this.children(e||[])},h);function h(e,t,r,o,a){var i=f.call(this,e,t,r,o,a)||this;return i.countChecked=c.pureComputed(function(){for(var e=0,t=0;t<i.children().length;t++)if(!i.children()[t].unChecked()){if(1<e)break;e++}return e}),i.isList=!0,i.children=c.observableArray([]),i.checked=c.pureComputed({read:function(){if(i.initialized()){var t=0,r=0;return i.children().forEach(function(e){!0===e.checked()?t++:!1!==e.checked()&&r++}),(0!==t||0!==r)&&(t===i.children.peek().length||void 0)}return i._checked()}}),i}s.TreeNode=m;var y,g=(r(_,y=m),_);function _(e,t,r,o,a){var i=y.call(this,e,t,r,o,a)||this;return i.countChecked=c.pureComputed(function(){var e=0;i.hasParamsToEdit(!1);for(var t=0;t<i.children().length;t++){var r=i.children()[t];if(!r.unChecked()){if(1<e)break;e++,r.arguments&&0<r.arguments.length&&i.hasParamsToEdit(!0),"query"===r.specifics&&i.hasParamsToEdit(!0)}}return e}),i.hasParamsToEdit=c.observable(!1),i}s.ParameterTreeNode=g;var v,b=(r(S,v=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)},S);function S(e,t,r,o,a,i){var n=v.call(this,e,t,r,o,i)||this;return n.addAction={clickAction:function(e){return n.disableCustomSql()?n.addQuery():n.showPopover()},imageClassName:"dxrd-image-add",imageTemplateName:"dxrd-svg-operations-add",templateName:"dx-treelist-action-with-popover",text:d.getLocalization("Add query","AnalyticsCoreStringId.SqlDSWizard_AddQuery")},n.itemClickAction=function(e){n.popoverVisible(!1),e.itemData.addAction()},n.popoverVisible=c.observable(!1),n.addQuery=function(){a().showQbCallBack()},n.addCustomQuery=function(){a().showQbCallBack(null,!0)},n.disableCustomSql=function(){return a&&a().disableCustomSql},n}s.QueriesTreeNode=b;var x,P=(r(C,x=u),C.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})})},C.prototype.getActions=function(e){var t=[];return t.push(this.removeAction),t.push(this.editAction),t},C);function C(e,t,r,o,a,i,n,s){var c=x.call(this,e,t,r,o,null,n)||this;return c.query=s,c.editAction={clickAction:function(e){return c.editQuery()},imageClassName:"dx-image-edit",imageTemplateName:"dxrd-svg-operations-edit",text:d.getLocalization("Edit query","AnalyticsCoreStringId.SqlDSWizard_EditQuery")},c.removeAction={clickAction:function(e){c.removeQuery({model:e.data})},imageClassName:"dxrd-image-recycle-bin",imageTemplateName:"dxrd-svg-operations-recycle_bin",text:d.getLocalization("Remove query","AnalyticsCoreStringId.SqlDSWizard_RemoveQuery")},c.parameters=a,c.removeQuery=function(e){e.model.unChecked()||e.model.toggleChecked(),i().deleteAction(e.model.name)},c.editQuery=function(e){i().showQbCallBack(c.name)},c.hasQuery=!0,c}s.TreeQueryNode=P;var T,O=(r(I,T=a),I);function I(e,t,r,o,a,i){var n=T.call(this,e,t,r,o,i)||this;return n.visible=c.observable(!0),n.path=a,n.isComplex=r===s.defaultObjectDataSourceItemSpecifics,n}s.FieldTreeNode=O;var N,D=(r(E,N=m),E.prototype.setChecked=function(e){N.prototype.setChecked.call(this,!!this.visible()&&e)},E);function E(e,t,r,o,a,i){var n=N.call(this,e,t,r,o,i)||this;return n.visible=c.observable(!0),n.path=a,n.isComplex=n.isList&&r===s.defaultObjectDataSourceItemSpecifics,n.checked=c.pureComputed({read:function(){if(n.initialized()){var t=0,r=0,e=n.children().filter(function(e){return e.visible()});return e.forEach(function(e){!0===e.checked()?t++:!1!==e.checked()&&r++}),(0!==t||0!==r)&&(t===e.length||void 0)}return n._checked()}}),n}s.DataMemberTreeNode=D},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(15),d=r(1),l=r(0),u=r(8),p=(i=c.BaseWizard,a(f,i),f._getLoadPanelViewModel=function(e,t){var r=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:d.getLocalization("Loading...","AnalyticsCoreStringId.Loading"),visible:t,shading:!0,shadingColor:"transparent",position:{of:r},container:r}},f.prototype.start=function(){i.prototype.start.call(this),this.isVisible(!0)},f.prototype._wizardPopupPosition=function(e){return{of:l.getParentContainer(e)}},f.prototype._loadPanelViewModel=function(e){return this._getLoadPanelViewModel(e,this.isLoading)},f.prototype._getLoadPanelViewModel=function(e,t){return f._getLoadPanelViewModel(e,t)},f);function f(e,t){var r=i.call(this,e,t)||this;return r.height=n.observable(505),r.width=n.observable(690),r._extendCssClass="",r._container=l.getParentContainer,r.itemsProvider=n.observable(),r.nextButton={text:d.getLocalization("Next","AnalyticsCoreStringId.Wizard_Next"),disabled:n.computed(function(){return!r.canNext()}),onClick:function(){return r.nextAction()}},r.cancelButton={text:d.getLocalization("Cancel","AnalyticsCoreStringId.SearchDialog_Cancel"),onClick:function(){return r.isVisible(!1)}},r.previousButton={text:d.getLocalization("Previous","AnalyticsCoreStringId.Wizard_Previous"),disabled:n.computed(function(){return r.isFirstPage()}),onClick:function(){return r.previousAction()}},r.finishButton={text:d.getLocalization("Finish","AnalyticsCoreStringId.Wizard_Finish"),disabled:n.computed(function(){return!r.canFinish()}),onClick:function(){return r.finishAction()}},r._titleTemplate=u.getTemplate("dx-wizard-headerNew"),r.title="Popup Wizard",r}t.PopupWizard=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(187);t.editorTemplates={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";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),n=r(3),a=r(24),s=r(0);function i(e){return e.aggregate()!==a.AggregationType.None}t.isAggregatedExpression=i;var c=(d._createTableInfo=function(e){return{displayName:e.actualName(),name:e.actualName(),isList:!0,specifics:"Default",collapsed:o.observable(!0)}},d._createColumnInfo=function(e,t){return{displayName:t.getColumnName(e),isList:!1,specifics:t.getSpecifics(e),dataType:t.getDataType(e),name:t.getColumnName(e)}},d.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()}},d.groupByObjectsFilter={filterColumns:function(e){return e.filter(i)},filterTables:function(e){return e.filter(function(e){return e.columns().some(i)})},getColumnName:function(e){return e.actualName.peek()},getSpecifics:function(e){switch(e.aggregate()){case a.AggregationType.Avg:case a.AggregationType.AvgDistinct:return"Float";case a.AggregationType.Count:case a.AggregationType.CountDistinct:return"Integer";default:return e.specifics}},getDataType:function(e){return null}},d);function d(a,i){this.getItems=function(t){var e,r=n.Deferred(),o=[];return o=""===t.fullPath?i.filterTables(a().tables()).map(d._createTableInfo):(e=s.findFirstItemMatchesCondition(a().tables(),function(e){return e.actualName()===t.fullPath}),i.filterColumns(e&&e.columns()||[]).map(function(e){return d._createColumnInfo(e,i)})),r.resolve(o),r.promise()},this.hasParameter=function(t){return 0<a().parameters().filter(function(e){return e.name()===t}).length},this.getColumnInfo=function(t){if(t){var r=s.find(a().tables(),function(e){return 0===t.indexOf(e.actualName()+".")});if(r){var e=s.find(i.filterColumns(r.columns()||[]),function(e){return t===r.actualName()+"."+i.getColumnName(e)});return e?d._createColumnInfo(e,i):null}}return null}}t.QueryBuilderObjectsProvider=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(42),a=r(4),i=r(4);t.name={propertyName:"name",modelName:"@Name",displayName:"Name",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Name",disabled:!0,editor:o.editorTemplates.text},t.alias={propertyName:"alias",modelName:"@Alias",displayName:"Alias",localizationId:"DataAccessUIStringId.QueryBuilderColumns_Alias",defaultVal:"",editor:o.editorTemplates.text},t.text={propertyName:"text",modelName:"@Text",displayName:"Text",editor:o.editorTemplates.text},t.selected={propertyName:"selected",displayName:"Output",editor:o.editorTemplates.bool,localizationId:"DataAccessUIStringId.QueryBuilderColumns_Output"},t.size={propertyName:"size",modelName:"@Size",defaultVal:"100,125",from:a.Size.fromString},t.location={propertyName:"location",modelName:"@Location",from:i.Point.fromString},t.sizeLocation=[t.size,t.location],t.unknownSerializationsInfo=[t.name].concat(t.sizeLocation)},function(e,t){e.exports=DevExpress.Analytics.Criteria},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParametersMode={ReadWrite:"ReadWrite",Read:"Read",Disabled:"Disabled"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),a=r(19),i=r(4),n=r(4),s=r(7),c=r(98),d=r(14),l=r(27),u=r(64),p=r(48),f=r(29),m=r(65),h=r(21),y=r(66),g=r(67),_=r(28),v=r(63);t.diagramControlsFactory=new o.ControlsFactory,t.registerControls=function(){t.diagramControlsFactory.registerControl("Unknown",{info:a.unknownSerializationsInfo,type:i.ElementViewModel,nonToolboxItem:!0,surfaceType:n.SurfaceElementBase}),t.diagramControlsFactory.registerControl("Connector",{info:[a.name,{propertyName:"location",displayName:"Location",editor:s.editorTemplates.objecteditor},{propertyName:"startPoint",modelName:"@StartPoint",link:!0},{propertyName:"endPoint",modelName:"@EndPoint",link:!0}],surfaceType:c.ConnectorSurface,type:u.ConnectorViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("RoutedConnector",{info:[a.name,{propertyName:"location",displayName:"Location",editor:s.editorTemplates.objecteditor},{propertyName:"startPoint",modelName:"@StartPoint",link:!0},{propertyName:"endPoint",modelName:"@EndPoint",link:!0}],surfaceType:p.RoutedConnectorSurface,type:f.RoutedConnectorViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("ConnectionPoint",{info:m.connectionPointSerializationInfo,surfaceType:h.ConnectionPointSurface,type:m.ConnectionPointViewModel,elementActionsTypes:[],nonToolboxItem:!0}),t.diagramControlsFactory.registerControl("Diagram",{info:y.diagramSerializationsInfo,surfaceType:g.DiagramSurface,popularProperties:["name"],type:y.DiagramViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0}),t.diagramControlsFactory.registerControl("DiagramElement",{info:d.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:l.DiagramElementSurface,popularProperties:["text"],type:d.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("Ellipse",{info:d.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:l.DiagramElementSurface,popularProperties:["text"],type:d.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("Condition",{info:d.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:l.DiagramElementSurface,popularProperties:["text"],type:d.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("ConnectingPoint",{info:_.connectingPointSerializationInfo,surfaceType:v.ConnectingPointSurface,type:_.ConnectingPointViewModel,elementActionsTypes:[],nonToolboxItem:!0})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,l=r(2),n=r(27),s=r(21),c=(i=n.DiagramElementBaseSurface,a(d,i),d.prototype._createRoutePoint=function(e,t){var r=this;return{x:l.pureComputed(function(){return r._context.rtl()?Math.round(r.getControlModel().size.width()-(e.x()-t.x())):Math.round(e.x()-t.x())}),y:l.pureComputed(function(){return Math.round(e.y()-t.y())}),modelPoint:e}},d.prototype._createRouteLineWrapper=function(o,a,e){var i=this;void 0===e&&(e=!1);var n=this,s=Math.abs(o.x.peek()-a.x.peek())<1,c=o.modelPoint.y.peek(),d=o.modelPoint.x.peek();return{position:{top:Math.min(o.y.peek(),a.y.peek())-2,left:Math.min(o.x.peek(),a.x.peek())-2,width:Math.abs(o.x.peek()-a.x.peek())+6,height:Math.abs(o.y.peek()-a.y.peek())+6},isVerticalLine:s,resizeHandler:function(e){n._control.freezeRoute(!0);try{var t,r;n._control.beginUpdate(),s?(t=i._context.rtl()?d-e.delta.dx:d+e.delta.dx,o.modelPoint.x(t),a.modelPoint.x(t)):(r=c+e.delta.dy,o.modelPoint.y(r),a.modelPoint.y(r))}finally{n._control.endUpdate()}},resizeStopped:function(){n._control.routePoints.notifySubscribers(n._control.routePoints())},isLocked:l.observable(e)}},d.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)},d._connectorsCount=0,d);function d(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=l.observable(!1),r.isVisible=l.observable(!0),r.routePoints=l.observableArray(),r.routePointsSet=l.pureComputed(function(){var t=[];return r.routePoints().forEach(function(e){t.push(e.x()+" "+e.y())}),t.join(", ")}),r.routeLineWrappers=l.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._connectorID=d._connectorsCount++,r.startPoint=l.pureComputed(function(){return new s.ConnectionPointSurface(e.startPoint(),t)}),r.endPoint=l.pureComputed(function(){return new s.ConnectionPointSurface(e.endPoint(),t)}),r._disposables.push(e.routePoints.subscribe(function(e){r._updateRoutePoints()})),r._updateRoutePoints(),r}t.RoutedConnectorSurface=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n,s=r(2),c=r(1),d=r(18),l=r(1),u=r(1);(n=i=t.JsonNodeType||(t.JsonNodeType={}))[n.Object=0]="Object",n[n.Array=1]="Array",n[n.Property=2]="Property";var p=(f.from=function(e,t){return new f(e,t)},f.toJsonNodes=function(e,t,r){return(e||[]).map(function(e){return f.toJsonNode(e,t,r)})},f.toJsonNode=function(e,t,r,o){void 0===o&&(o=!0);var a=t.serialize(e,b,r),i=o?f.toJsonNodes(e.nodes,t,r):[];return 0<i.length&&(a.Node=i),a},f.prototype.getInfo=function(){return b},f);function f(e,t){var r,o;this.nodes=[],e&&((t=t||new c.ModelSerializer).deserialize(this,e),o=(r=e.Node)instanceof Array?d.deserializeToCollection(r,function(e){return new f(e)}).sort(function(e,t){return e.name().localeCompare(t.name())}):r?[new f(r)]:[],this.nodes=o)}t.JsonNode=p;var m,h=(a(y,m=p),y.from=function(e,t){return new y(e||{},t)},y.toJson=function(e,t,r){if(!e)return{};var o={Node:p.toJsonNode(e,t,r,!1)};return o.Node.Node=p.toJsonNodes(e.nodes,t,r),o},y.prototype.getInfo=function(){return b},y);function y(e,t){var r=m.call(this,e.Node,t)||this;return r.nodeType=i[i.Object],r.valueType="Unknown",r.displayName=l.getLocalization("root"),r.selected=s.observable(!1),r}t.JsonSchemaNode=h;var g,_=(a(v,g=p),v.from=function(e,t){return new v(e)},v.toJson=function(e,t,r){return h.toJson(e.nodes[0],t,r)},v.prototype.getInfo=function(){return S},v.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:s.unwrap(t.name),path:"",pathParts:[s.unwrap(t.name)]};return this._fillRootElementList(t,r,e),this._rootElementList.sort(function(e,t){return e.fullPath.localeCompare(t.fullPath)}),this._rootElementList},v.prototype._fillRootElementList=function(e,r,o){var a=this;if(void 0===e&&(e=this.nodes[0]),void 0===r&&(r={fullPath:"root",path:"",pathParts:["root"]}),!e)return this._rootElementList;var t=s.unwrap(e.nodeType);if(t!=i[i.Property]){if(t!==i[i.Array])return o&&t===i[i.Object]&&this._rootElementList.push(r),(e.nodes||[]).forEach(function(e){var t=a._getNextPath(r,e.name());a._fillRootElementList(e,t,o)}),this._rootElementList;this._rootElementList.push(r)}},v.prototype._getNextPath=function(e,t){var r=e.fullPath?[e.fullPath,t].join("."):t;return{pathParts:e.pathParts.concat(t),fullPath:r,path:t}},v);function v(e,t){var r=g.call(this,e)||this;return r._rootElementList=null,r}t.JsonSchemaRootNode=_;var b=[{propertyName:"nodes",modelName:"Node",from:p.from,toJsonObject:p.toJsonNodes},{propertyName:"name",modelName:"@Name"},{propertyName:"selected",modelName:"@Selected",from:u.parseBool},{propertyName:"nodeType",modelName:"@NodeType"},{propertyName:"type",modelName:"@Type"}],S=[{propertyName:"nodes",modelName:"Node",from:_.from,toJsonObject:_.toJsonNodes}]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(3),s=r(1),c=r(1),d=r(9),l=r(107),u=r(49),p=r(106),f=(i=s.Disposable,a(m,i),m.prototype.getInfo=function(){return h},m.prototype.clone=function(e){return new m((e=e||new c.ModelSerializer).serialize(this))},m.from=function(e,t){return new m(e,t)},m.toJson=function(e,t,r){return t.serialize(e,h,r)},m.prototype.getSchema=function(e){var t=this;void 0===e&&(e=[]);var r=n.Deferred();return this.jsonSchemaProvider.getJsonSchema(e).done(function(e){t.schema=e,r.resolve(e)}).fail(function(){t.schema=null,r.reject()}),r.promise()},m);function m(e,t,r){void 0===r&&(r=new d.RequestWrapper);var o=i.call(this)||this;return(t=t||new c.ModelSerializer).deserialize(o,e),o.jsonSchemaProvider=new l.JsonSchemaProvider(o,r),o.source&&o._disposables.push(o.source),o._disposables.push(o.connectionName.subscribe(function(){o.source.resetSource()})),o}t.JsonDataSource=f;var h=[{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:p.JsonSource.from,toJsonObject:p.JsonSource.toJson}]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(1),c=r(1),d=r(112),l=r(0),u=(i=s.Disposable,a(p,i),p.prototype.dispose=function(){i.prototype.dispose.call(this),this.disposeObservableArray(this.keyColumns)},p.prototype.createKeyColumn=function(){var e={masterColumn:n.observable(),detailColumn:n.observable(),itemType:"KeyColumn"};this.keyColumns.push(e)},p.prototype.getInfo=function(){return d.masterDetailRelationSerializationsInfo},p);function p(e,t){var r=i.call(this)||this;return r.name=n.pureComputed({read:function(){return r._customName()||r.masterQuery()+r.detailQuery()},write:function(e){r._customName(e)},deferEvaluation:!0}),(t||new c.ModelSerializer).deserialize(r,l.extend(e,{"@ItemType":"Relation"})),r._disposables.push(r.name),r}t.MasterDetailRelation=u},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});function i(e){var t=this;e&&(t.name=e.name,t.displayName=e.displayName,t.dataMember=e.dataMember)}var n=r(2),s=r(18),c=r(1);t.ObjectDataMemberBase=i;var d,l=(a(u,d=i),u);function u(e){var t=d.call(this,e)||this;return e&&(t.value=e.value,t.type=e.type,t.resultType=e.resultType),t}t.ObjectParameter=l;var p,f=(a(m,p=i),m);function m(e){var t=p.call(this,e)||this;return t.parameters=s.deserializeToCollection(e.parameters,function(e){return new l(e)}),t}t.ObjectDataSourceMethodBase=f;var h,y=(a(g,h=f),g.empty=function(){return new g({displayName:g.entireObject(),name:g.entireObject(),parameters:[]})},g.prototype.isEntireObject=function(){return this.name==g.entireObject()&&this.displayName==g.entireObject()},g.prototype.isAvailable=function(){return!this.disabled()},g.entireObject=function(){return c.getLocalization("Entire Object","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_EntireObject")},g);function g(e){var t=h.call(this,e)||this;return t.disabled=n.observable(!1),t.memberType=e&&e.memberType,t.isStatic=e.isStatic,t}t.ObjectDataMember=y;var _,v=(a(b,_=f),b);function b(){return null!==_&&_.apply(this,arguments)||this}t.ObjectCtor=v;var S,x=(a(P,S=i),P.prototype.updateMembers=function(t){this.members.forEach(function(e){t?e.disabled(!1):e.disabled(!!e.isEntireObject()||!e.isStatic)})},P);function P(e){var t=S.call(this,e)||this;return t.ctors=s.deserializeToCollection(e.ctors,function(e){return new v(e)}),t.members=s.deserializeToCollection(e.members,function(e){return new y(e)}),t}t.ObjectType=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(165),t.createDefaultSQLAceOptions=function(e){return void 0===e&&(e=!1),{showLineNumbers:!1,showPrintMargin:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,readOnly: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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(0),l=r(5),u=r(0),p=r(1),f=(i=c.WizardPageBase,a(m,i),m.prototype.initialize=function(e){var t,r=this._connectionStrings();return 1===r.length?this._selectedConnectionString([r[0]]):(t=d.getFirstItemByPropertyValue(r,"name",e.name)||r[0],this._selectedConnectionString(t?[t]:[])),s.Deferred().resolve().promise()},m.prototype.canNext=function(){return 0!==this._selectedConnectionString().length},m.prototype.commit=function(){var e=s.Deferred();return this._selectedConnectionString()[0]?e.resolve({name:this._selectedConnectionString()[0].name}):e.resolve(),e.promise()},m);function m(e){var t=i.call(this)||this;return t._connectionStrings=n.observableArray([]),t._selectedConnectionString=n.observableArray([]),t._connectionStrings=e,t._disposables.push(t._selectedConnectionString.subscribe(function(){return t._onChange()})),t}t.ChooseSqlConnectionPage=f,t._registerChooseSqlConnectionPage=function(e,t){e.registerMetadata(l.SqlDataSourceWizardPageId.ChooseConnectionPage,{create:function(){return new f(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:u.isCustomizedWithUpdateLocalizationMethod("Choose a data connection")||p.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection")})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(3),s=r(124),c=r(0),d=r(1),l=r(5),u=(i=s.ChooseAvailableItemPage,a(p,i),p.prototype.commit=function(){return n.Deferred().resolve({connectionName:this.selectedOperation().createNew?null:this.selectedItems()[0].name}).promise()},p.prototype._getSelectedItem=function(e){return c.getFirstItemByPropertyValue(this.items(),"name",e.connectionName)||i.prototype._getSelectedItem.call(this)},Object.defineProperty(p.prototype,"createNewOperationText",{get:function(){return d.getLocalization("No, I'd like to create a new data connection","AnalyticsCoreStringId.JsonDSWizard_CreateNewConnection")},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"existingOperationText",{get:function(){return d.getLocalization("Yes, let me choose an existing data connection from the list","AnalyticsCoreStringId.JsonDSWizard_UseExistingConnection")},enumerable:!0,configurable:!0}),p);function p(){return null!==i&&i.apply(this,arguments)||this}t.ChooseJsonConnectionPage=u,t._registerChooseJsonConnectionPage=function(e,t){e.registerMetadata(l.JsonDataSourceWizardPageId.ChooseConnectionPage,{create:function(){return new u(t.connectionStrings&&t.connectionStrings.json,t.allowCreateNewJsonConnection)},description:d.getLocalization("Do you want to use an existing data connection?","AnalyticsCoreStringId.JsonDSWizard_ChooseConnection_Description"),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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),i=r(3),c=r(6),d=r(12),l=r(128),u=r(49),p=r(40),f=r(9),m=r(0),h=r(1),y=r(1),g=r(5),_=(n=c.WizardPageBase,a(v,n),v.prototype._clear=function(){this._rootItems([]),this._fieldSelectedPath(""),this._rootElementList([]),this._selectedRootElement(null),this._dataSource&&this._dataSource.jsonSchemaProvider.reset(),this._cachedState={connectionName:null,jsonSource:null}},v.prototype._createFieldListCallback=function(){var o=this;return function(e){var t=new u.JsonNode({});t.nodes=[o._rootItems()[0].data];var r=o._getInnerItemsByPath(e,t);return i.Deferred().resolve(r).promise()}},v.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},v.prototype._mapJsonNodesToTreelistItems=function(e){return i.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"}})},v.prototype._getNodesByPath=function(t,e){if(t.fullPath){for(var r=e.nodes,o=0;o<t.pathParts.length;o++){var a=(r||[]).filter(function(e){return e.name()==t.pathParts[o]})[0];if(!a)return[];r=a.nodes}return r}return e.nodes},v.prototype._getInnerItemsByPath=function(e,t){var r=this._getNodesByPath(e,t);return this._mapJsonNodesToTreelistItems(r)},v.prototype._beginInternal=function(e){var t=this;if(e.connectionName&&this._cachedState.connectionName===e.connectionName||e.jsonSource&&this._cachedState.jsonSource===e.jsonSource)return i.Deferred().resolve().promise();this._clear(),this._cachedState={connectionName:e.connectionName,jsonSource:e.jsonSource};var r=this._dataSource&&this._dataSource.id;return this._dataSource=d._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)}):i.Deferred().done(function(e){return t._updatePage(e)}).resolve(this._dataSource.schema).promise()},v.prototype._updatePage=function(e){var t,r,o=e.getRootElementPartList(this._allowObjectRootElements);this._rootElementList()!==o&&this._rootElementList(this._filterRootElementList(o,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()},v.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)}))},v.prototype._mapJsonSchema=function(e,a){var i=this,t=this._fieldListItemsProvider().getNodeByPath(a);if(t)return e.selected(!1!==t.checked()),(e.nodes||[]).forEach(function(e){var t=a.pathParts.concat(e.name()),r=t.join("."),o={fullPath:r,path:e.name(),id:r,pathParts:t};i._mapJsonSchema(e,o)}),e},v.prototype._filterRootElementList=function(e,t){return e},v.prototype.canNext=function(){return!1},v.prototype.canFinish=function(){return this._fieldListItemsProvider().hasCheckedItems()},v.prototype.commit=function(){if(this._rootItems()[0]){var e=this._rootItems()[0].data;this._resetSelectionRecursive(this._dataSource.schema,e);var t=e.name(),r={fullPath:t,path:"",id:t,pathParts:[t]};this._mapJsonSchema(this._rootItems()[0].data,r);var o=this._selectedRootElement().pathParts.slice(1).join(".");this._dataSource.rootElement(o);var a=(new h.ModelSerializer).serialize(this._dataSource);return i.Deferred().resolve({connectionName:this._dataSource.connectionName(),dataSourceName:a["@Name"],jsonScheme:JSON.stringify(a.Schema),rootElement:a["@RootElement"]}).promise()}},v.prototype.initialize=function(e){return this._beginInternal(e)},v.prototype.reset=function(){this._clear()},v);function v(e,t,r){void 0===e&&(e=new f.RequestWrapper),void 0===t&&(t=!0);var a=n.call(this)||this;a._requestWrapper=e,a._allowObjectRootElements=t,a._callbacks=r,a._rootItems=s.observableArray([]),a._fieldListItemsProvider=s.observable(null),a._fieldSelectedPath=s.observable(null),a._cachedState={connectionName:null,jsonSource:null},a._createTreeNode=function(e,t,r){var o=new p.DataMemberTreeNode(e.name,e.displayName,e.specifics,t,r);return a._disposables.push(o.checked.subscribe(function(){return a._onChange()})),o},a._createLeafTreeNode=function(e,t,r){var o=new p.FieldTreeNode(e.name,e.displayName,e.specifics,t,r);return a._disposables.push(o.checked.subscribe(function(){return a._onChange()})),o},a._rootElementTitle=y.getLocalization("Root element:","DataAccessUIStringId.WizardPageChooseJsonSchema_RootElement"),a._rootElementList=s.observable([]),a._selectedRootElement=s.observable(null);var o=null;a._disposables.push(a._rootElementList.subscribe(function(e){o&&o.dispose(),o=a._selectedRootElement.subscribe(function(e){if(!e)return a._rootItems([]);var t=a._getSchemaToDataMemberInfo(e);t&&a._rootItems([{name:s.unwrap(t.name),isSelected:s.unwrap(t.selected),displayName:s.unwrap(t.displayName)||s.unwrap(t.name),data:t,specifics:0<t.nodes.length?"List":"Default"}])}),a._selectedRootElement(e[0])}));var i=new m.FieldListProvider(a._createFieldListCallback(),a._rootItems);return a._fieldListItemsProvider(new l.JsonTreeNodeItemsProvider(i,a._rootItems,a._createTreeNode,a._createLeafTreeNode)),a._disposables.push(a._fieldListItemsProvider()),a._fieldListModel={expandRootItems:!0,itemsProvider:a._fieldListItemsProvider(),selectedPath:a._fieldSelectedPath,treeListController:null,templateName:"dxrd-treelist-with-checkbox"},a}t.ChooseJsonSchemaPage=_,t._registerChooseJsonSchemaPage=function(e,t,r){e.registerMetadata(g.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 _(t,void 0,r)},description:y.getLocalization("Select data fields.","DataAccessUIStringId.WizardPageChooseJsonSchema"),template:"dxrd-jsondatasource-fields-page"})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(11),s=r(0),c=(i=n.DataSourceParameter,a(d,i),d.prototype.getEditorType=function(e){return s.IsDataAccessExpression(e)?{header:"dxqb-expressionstring"}:s.getEditorType(e)},d);function d(){return null!==i&&i.apply(this,arguments)||this}t.ParameterViewModel=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var d,l=r(2),i=r(26),u=r(59),p=r(60),n=r(17),f=r(46),s=r(1),m=r(1),h=r(61),y=r(91),g=r(57),_=r(0),v=r(150),b=r(24),S=r(43),x=r(145),P=r(4),c=r(0),C=r(1),T=r(0),O=r(94),I=r(88),N=r(0),D=r(0),E=(d=i.QueryElementBaseViewModel,a(w,d),w.prototype._initializeTable=function(t){this.dbSchemaProvider.getDbTable(t.name()).done(function(e){t.createColumns(e)})},w.prototype._addColumnsToTable=function(e,t){e._initColumns(t.map(function(e){return new n.DBColumn({Name:e.column()})}))},w.prototype.isPropertyDisabled=function(e){return"skip"===e&&(0===this.skip()&&!this.sorting().length)},w.prototype.canSave=function(e){void 0===e&&(e=!0);var r=[];return this.tables().forEach(function(t){t.getInvalidColumns().forEach(function(e){r.push(c.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)},w.prototype.getInfo=function(){return O.querySerializationsInfo},w.prototype.createChild=function(e){if("Table"!==e["@ControlType"])return d.prototype.createChild.call(this,e);var t=new u.TableViewModel(e,this);return this._initializeTable(t),this.addChild(t),t},w.prototype.getAllColumns=function(){return[].concat.apply([],this.tables().map(function(e){return e.columns()}))},w.prototype.tryToCreateRelationsByFK=function(i){var n=this;I.isJoinsResolvingDisabled||this.dbSchemaProvider.getDbSchema().done(function(t){var e=t.tables.filter(function(e){return e.name===i.name()})[0];e&&e.foreignKeys.forEach(function(e){var t=N.getFirstItemByPropertyValue(n.tables.peek(),"name",e.primaryKeyTable);if(t)for(var r=0;r<e.primaryKeyColumns.length;r++){var o=N.getFirstItemByPropertyValue(i.columns(),"name",e.columns[r]),a=N.getFirstItemByPropertyValue(t.columns(),"name",e.primaryKeyColumns[r]);o&&a&&n.cerateJoinCondition(o,a)}}),n.tables.peek().forEach(function(a){var e=t.tables.filter(function(e){return e.name===a.name()})[0];e&&e.foreignKeys.forEach(function(e){if(e.primaryKeyTable===i.name())for(var t=0;t<e.primaryKeyColumns.length;t++){var r=N.getFirstItemByPropertyValue(i.columns(),"name",e.primaryKeyColumns[t]),o=N.getFirstItemByPropertyValue(a.columns(),"name",e.columns[t]);r&&o&&n.cerateJoinCondition(o,r)}})})})},w.prototype.addChild=function(e){if(e instanceof y.RelationViewModel){if(-1<this.relations.indexOf(e))return;e.parentModel(this),this.relations.push(e)}else if(e instanceof u.TableViewModel){if(-1<this.tables.indexOf(e))return;e.parentModel(this),null!==N.getFirstItemByPropertyValue(this.tables(),"actualName",e.name())&&e.alias(_.getUniqueName(this.tables().map(function(e){return e.actualName()}),e.name()+"_")),this.tables.push(e)}else T.NotifyAboutWarning("Attempt to add wrong child control.")},w.prototype.removeChild=function(t){if(t instanceof y.RelationViewModel){if(this.relations().length<1)return;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 u.TableViewModel){if(this.tables().length<1)return;this.tables.splice(this.tables().indexOf(t),1);for(var o=this.relations(),a=o.length-1;-1<a;a--)o[a].parentTable()!==t&&o[a].nestedTable()!==t||this.removeChild(o[a]);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.")},w.prototype.getTable=function(t){return N.findFirstItemMatchesCondition(this.tables(),function(e){return e.actualName()===t})},w.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))})},w.prototype._findHead=function(t){var r=null;return this.relations().some(function(e){return e.nestedTable()===t&&(r=e),!!r}),r?this._findHead(r.parentTable()):t},w.prototype._isHead=function(t){return!this.relations().some(function(e){return e.nestedTable()===t})},w.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)})})},w.prototype.cerateJoinCondition=function(t,r){var o=t.parentModel(),a=r.parentModel();if(o===a)return null;var e,i,n,s,c=!1,d=N.findFirstItemMatchesCondition(this.relations(),function(e){return c=e.parentTable()===a&&e.nestedTable()===o,e.parentTable()===o&&e.nestedTable()===a||c});return d||(this._findTableInAncestors(o,a)?c=!0:this._findHead(o)===this._findHead(a)||this._isHead(a)||(e=this._findAncestorsRelations(o),i=this._findAncestorsRelations(a),e.outer>i.outer?this._reverseRelations(a,i.relations):e.outer<i.outer?(this._reverseRelations(o,e.relations),c=!0):e.inner>=i.inner?this._reverseRelations(a,i.relations):e.inner<i.inner&&(this._reverseRelations(o,e.relations),c=!0))),c&&(n=o,o=a,a=n,s=t,t=r,r=s),d=d||this.createChild({"@ControlType":"Relation","@Parent":o.actualName(),"@Nested":a.actualName(),"@Type":"Inner"}),N.findFirstItemMatchesCondition(d.conditions(),function(e){return e.parentColumn()===t&&e.nestedColumn()===r})||d.createChild({"@ControlType":"JoinCondition","@Parent":t.name(),"@Nested":r.name()})},w.prototype._validate=function(){if(0===this.tables().length)return!1;if(!this.allColumnsInTablesSelected()&&!this.tables().some(function(e){return e.asterisk.selected()||e.columns().some(function(e){return e.selected()})}))return!1;var e=this.tables().map(function(e){return e.actualName()});return this._validateTable(e,e[0]),e.length<1},w.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)}))},w.prototype.serialize=function(e){return void 0===e&&(e=!1),e?{Query:this.serialize()}:(new s.ModelSerializer).serialize(this)},w.prototype.save=function(){if(this.canSave()){var e=this.serialize(!0);return this.onSave&&this.onSave(e),e}},w.pageMargin=20,w.emptyModel={"@ItemType":"Query",Tables:{SelectedTables:{},Relations:{}},Columns:{},Sorting:{},Grouping:{}},w);function w(e,t,r,o){void 0===r&&(r=f.ParametersMode.ReadWrite);var a=d.call(this,D.extend(!0,e,w.emptyModel,e),null,o)||this;a.aggregatedColumnsCount=l.observable(0),a._findAncestorsRelations=function(r){var o={inner:0,outer:0,relations:[]};return a.relations().forEach(function(e){var t;e.nestedTable()===r&&(o.relations.push(e),"LeftOuter"===e.joinType()?o.outer++:o.inner++,t=a._findAncestorsRelations(e.parentTable()),o.inner+=t.inner,o.outer+=t.outer,o.relations.push.apply(o.relations,t.relations))}),o},a.type("SelectQuery"),a.controlType="Query",a.dbSchemaProvider=t,a.tables=m.deserializeArray(e.Tables.SelectedTables,function(e){return new u.TableViewModel(e,a,o)}),a.columns=m.deserializeArray(e.Columns,function(e){return new p.ColumnExpression(e,a,o)}),a.sorting=m.deserializeArray(e.Sorting,function(e){return new p.ColumnExpression(e,a,o)}),a.grouping=m.deserializeArray(e.Grouping,function(e){return new p.ColumnExpression(e,a,o)}),a.tables().forEach(function(r){var o=[];[a.columns(),a.sorting(),a.grouping()].forEach(function(e){e.forEach(function(t){r.name()===t.table()&&t.itemType()===h.ColumnType.Column&&o.every(function(e){return e.column()!==t.column()})&&o.push(t)})}),a._addColumnsToTable(r,o),a._initializeTable(r)}),a.relations=m.deserializeArray(e.Tables.Relations,function(e){return new y.RelationViewModel(e,a,o)}),a._tablesObject.tables=a.tables,a._tablesObject.relations=a.relations,a.tables().reduce(function(e,t){return t.location.x(e),t.location.y(65),e+t.size.width()+t.size.width()/2},30);var i=m.deserializeArray(e.Parameters,function(e){return new g.ParameterViewModel(e,o)});r===f.ParametersMode.ReadWrite?(a.parameters=i,a._disposables.push(a.parameters.subscribe(function(e){e.forEach(function(t){"added"!==t.status||t.value.name()||t.value.name(_.getUniqueName(a.parameters().filter(function(e){return e!==t.value}).map(function(e){return e.name()}),"parameter"))})},null,"arrayChange"))):a.parameters=l.computed(function(){return i()}),a.editableName=l.observable(a.name()),a.name=l.pureComputed({read:a.editableName,write:function(e){}}),a.filterString=new v.QBFilterStringOptions(a._filterString,null,l.pureComputed(function(){return 0===a.tables().length&&a.filterString&&0===a.filterString.value().length})),a.filterString.initializeFilterStringHelper(a.parameters,r);var n=!1;a._disposables.push(l.computed(function(){var e,t;n||(n=!0,t=(e=a.getAllColumns()).filter(function(e){return e.aggregate()===b.AggregationType.None}),a.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)}),n=!1)})),a.groupFilterString=new v.QBFilterStringOptions(a._groupFilterString,null,l.pureComputed(function(){return!a.columns().some(S.isAggregatedExpression)&&a.groupFilterString&&0===(a.groupFilterString.value()||"").length})),a.groupFilterString.initializeFilterStringHelper(a.parameters,r,new x.GroupFilterEditorSerializer(a.columns));var s=l.observable(0);a.pageWidth=l.pureComputed({read:function(){var r=500;return a.tables().forEach(function(e){var t=e.location.x()+e.size.width();r<t&&(r=t)}),Math.max(s(),r)},write:function(e){s(e)}}),a.pageHeight=l.pureComputed(function(){var r=500;return a.tables().forEach(function(e){var t=e.location.y()+e.size.height();r<t&&(r=t+w.pageMargin)}),r}),a.margins=P.Margins.fromString(),a.isValid=l.pureComputed(function(){return a._validate()});function c(e){return!e.table()&&e.itemType()===h.ColumnType.AllColumns}return a.allColumnsInTablesSelected=l.computed({read:function(){return a.columns().some(c)},write:function(e){e?a.columns.push(new p.ColumnExpression({"@ItemType":"AllColumns"},a,o)):a.columns.remove(c)}}),a}t.QueryViewModel=E},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(26),c=r(89),d=r(152),l=r(4),u=r(4),p=r(90),f=r(0),m=r(0),h=(i=s.QueryElementBaseViewModel,a(y,i),y.prototype.columns=function(){return this._columns()},y.prototype.toggleSelectedColumns=function(){var t=!this.allColumnsSelected.peek();this._columns.peek().forEach(function(e){e.selected(t)})},y.prototype.getColumnConnectionPoints=function(t){var r=this,e=n.pureComputed({read:function(){var e=r._columns.indexOf(t)+1;return r.location.y()+y.COLUMNS_OFFSET+y.COLUMN_MARGIN*e+y.COLUMN_HEIGHT*(e+.5)},deferEvaluation:!0});return{left:{x:this._columnsConnectionPointLeftX,y:e},right:{x:this._columnsConnectionPointRightX,y:e}}},y.prototype.getInfo=function(){return p.tableSerializationInfo},y.prototype.getInvalidColumns=function(){return this.columns().filter(function(e){return e.isNotAvailable()&&e.selected()})},y.prototype.getColumn=function(e){return f.getFirstItemByPropertyValue(this._columns(),"name",e)},y.prototype._initColumns=function(e,t){var r=this;void 0===t&&(t=!1);var o=[];e.forEach(function(e){o.push(new c.ColumnViewModel({"@Name":e.name},e,r,r.serializer))}),this._columns(t?[].concat([],this.columns(),o):o)},y.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)},y.COLUMNS_OFFSET=37,y.COLUMN_HEIGHT=32,y.COLUMN_MARGIN=1,y.TABLE_MIN_WIDTH=80,y.TABLE_DEFAULT_HEIGHT=136,y);function y(e,t,r){var o=i.call(this,m.extend(e,{"@ControlType":"Table","@ItemType":"Table"}),t,r)||this;return o.serializer=r,o._columnsConnectionPointLeftX=n.pureComputed(function(){return o.location.x()}),o._columnsConnectionPointRightX=n.pureComputed(function(){return o.location.x()+o.size.width()}),o._columns=n.observableArray(),o._initialized=n.observable(!1),o.size=new l.Size(199,123),o.location=new u.Point(0,0),o.actualName=n.pureComputed(function(){return o.alias()||o.name()}),o.isReady=n.observable(!1),o.allColumnsSelected=n.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=n.pureComputed(function(){return o._initialized()}),o.size.height=n.pureComputed({read:function(){return 0===o._columns().length?y.TABLE_DEFAULT_HEIGHT:y.COLUMNS_OFFSET+(y.COLUMN_HEIGHT+y.COLUMN_MARGIN)*(o._columns().length+1)},write:function(){}}),o.asterisk=new d.AllColumnsViewModel(o,o.serializer),o}t.TableViewModel=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),n=r(45),s=r(1),c=r(146),d=r(45),l=r(0),o=r(61),a=(u.prototype.actualName=function(){return this.alias()||this.column()},u.prototype.getInfo=function(){return o.columnExpressionSerializationsInfo},u.prototype.isDepended=function(t){return!!l.findFirstItemMatchesCondition(this._dependedTables,function(e){return e.actualName()===t})},u);function u(e,r,t){var o=this;if((t=t||new s.ModelSerializer).deserialize(this,e),this._dependedTables=[],this.table()){var a=r.getTable(this.table());this.table=i.pureComputed(function(){return a.actualName()}),this._dependedTables.push(a)}else if(this.expression())try{this._criteria=n.CriteriaOperator.parse(this.expression()),c.criteriaForEach(this._criteria,function(t){var e;t instanceof d.OperandProperty&&((e=l.findFirstItemMatchesCondition(r.tables(),function(e){return 0===t.propertyName.indexOf(e.actualName()+".")}))&&o._dependedTables.push(e))})}catch(e){}}t.ColumnExpression=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(24);t.ColumnType={RecordsCount:"RecordsCount",Column:"Column",Expression:"Expression",AllColumns:"AllColumns"},t.columnExpressionSerializationsInfo=[{propertyName:"expression",modelName:"#text"},{propertyName:"table",modelName:"@Table"},{propertyName:"column",modelName:"@Name"},{propertyName:"aggregate",modelName:"@Aggregate",defaultVal:o.AggregationType.None},{propertyName:"alias",modelName:"@Alias"},{propertyName:"descending",modelName:"@Descending",defaultVal:!1},{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=r(43),d=r(0),l=(i=s.SurfaceElementBase,a(u,i),u);function u(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=n.pureComputed(function(){return o.getControlModel().selected()}),o.isNotAvailable=n.pureComputed(function(){return o._control.isNotAvailable()}),o.isAggregate=n.pureComputed(function(){return c.isAggregatedExpression(o.getControlModel())}),o.isAscending=n.pureComputed(function(){return"Ascending"===o.getControlModel().sortingType()}),o.isDescending=n.pureComputed(function(){return"Descending"===o.getControlModel().sortingType()}),o.cssClasses=function(e,t,r){return o._isJoined||(o._isJoined=n.pureComputed(function(){return e.isJoined(o)||o.getControlModel()===t.getDragColumn()})),o._isHovered||(o._isHovered=n.pureComputed(function(){var e=!!t.getDragColumn()&&o.getControlModel().parentModel()!==t.getDragColumn().parentModel();return o.underCursor().isOver&&(!d.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=l},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(27),c=(i=s.DiagramElementBaseSurface,a(d,i),d._unitProperties={_x:function(e){return n.pureComputed(function(){return e.location.x()-e.parentModel().location.x()})},_y:function(e){return n.pureComputed(function(){return e.location.y()-e.parentModel().location.y()})}},d);function d(e,t){var r=i.call(this,e,t,d._unitProperties)||this;return r.template="dxdd-connecting-point",r.selectiontemplate="dxdd-connection-point-selection",r.contenttemplate="",r}t.ConnectingPointSurface=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(14),c=r(65),d=r(4),l=r(4),u=r(0),p=(i=s.DiagramElementBaseViewModel,a(f,i),f.prototype.getX=function(){return this.startPoint().location.x()<this.endPoint().location.x()?this.startPoint().location.x():this.endPoint().location.x()},f.prototype.getY=function(){return this.startPoint().location.y()<this.endPoint().location.y()?this.startPoint().location.y():this.endPoint().location.y()},f.prototype.getWidth=function(){return Math.abs(this.startPoint().location.x()-this.endPoint().location.x())||f.MIN_LINE_THICKNESS},f.prototype.getHeight=function(){return Math.abs(this.startPoint().location.y()-this.endPoint().location.y())||f.MIN_LINE_THICKNESS},f.MIN_LINE_THICKNESS=3,f);function f(e,t,r){var o=i.call(this,u.extend({"@ControlType":"Connector"},e),t,r)||this;return o.startPoint(o.startPoint()||new c.ConnectionPointViewModel({"@Location":"0, 0"},o,r)),o.endPoint(o.endPoint()||new c.ConnectionPointViewModel({"@Location":"150, 75"},o,r)),o.location=new d.Point(0,0),o.location.x=n.pureComputed({read:function(){return o.getX()},write:function(e){var t=e-(o.startPoint().location.x()<o.endPoint().location.x()?o.startPoint().location.x():o.endPoint().location.x());o.startPoint().location.x(o.startPoint().location.x()+t),o.endPoint().location.x(o.endPoint().location.x()+t)}}),o.location.y=n.pureComputed({read:function(){return o.getY()},write:function(e){var t=e-(o.startPoint().location.y()<o.endPoint().location.y()?o.startPoint().location.y():o.endPoint().location.y());o.startPoint().location.y(o.startPoint().location.y()+t),o.endPoint().location.y(o.endPoint().location.y()+t)}}),o.size=new l.Size(0,0),o.size.width=n.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.size.height=n.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=p},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),i=r(14),c=r(19),d=r(0),l=(n=i.DiagramElementBaseViewModel,a(u,n),u);function u(e,t,r){var o=n.call(this,d.extend(e,{"@ControlType":"ConnectionPoint"}),t,r)||this,a=o.location.x,i=o.location.y;return o.location.x=s.pureComputed({read:function(){return o.connectingPoint()&&o.connectingPoint().location.x()||a()},write:function(e){o.connectingPoint(null),a(e)}}),o.location.y=s.pureComputed({read:function(){return o.connectingPoint()&&o.connectingPoint().location.y()||i()},write:function(e){o.connectingPoint(null),i(e)}}),o}t.ConnectionPointViewModel=l,t.connectionPointSerializationInfo=[c.location,{propertyName:"connectingPoint",modelName:"@ConnectingPoint",link:!0}]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(14),c=r(1),d=r(4),l=r(1),u=r(7),p=r(19),f=(i=s.DiagramElementBaseViewModel,a(m,i),m.prototype.getInfo=function(){return t.diagramSerializationsInfo},m);function m(e){var t=this,r=new c.ModelSerializer;return(t=i.call(this,e,null,r)||this).controlType="Diagram",t.controls=n.observableArray(),t.name("Diagram"),t}t.DiagramViewModel=f,t.margins={propertyName:"margins",modelName:"@Margins",from:d.Margins.fromString,displayName:"Margins"},t.pageWidth={propertyName:"pageWidth",modelName:"@PageWidth",defaultVal:850,from:l.floatFromModel,displayName:"Page Width",editor:u.editorTemplates.numeric},t.pageHeight={propertyName:"pageHeight",modelName:"@PageHeight",defaultVal:1250,from:l.floatFromModel,displayName:"Page Height",editor:u.editorTemplates.numeric},t.diagramSerializationsInfo=[p.name,t.pageWidth,t.pageHeight,t.margins]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=r(0),d=r(0),l=(i=s.SurfaceElementBase,a(u,i),u.prototype.checkParent=function(e){return!1},u.prototype.getChildrenCollection=function(){return n.observableArray([])},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=n.observable(1));var r=i.call(this,e,{measureUnit:n.observable("Pixels"),zoom:t,dpi:n.observable(100)},u._unitProperties)||this;return r.measureUnit=n.observable("Pixels"),r.dpi=n.observable(100),r.controls=n.observableArray(),r.allowMultiselect=!1,r.focused=n.observable(!1),r.selected=n.observable(!1),r.underCursor=n.observable(new d.HoverInfo),r.parent=null,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,c.createObservableArrayMapCollection(e.controls,r.controls,r._createSurface),r}t.DiagramSurface=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){this.name=e.Name,this.arguments=i.deserializeToCollection(e.arguments,function(e){return new n(e)})}var a,i=r(18);t.DBStoredProcedure=o,(a=t.DBStoredProcedureArgumentDirection||(t.DBStoredProcedureArgumentDirection={}))[a.In=0]="In",a[a.Out=1]="Out",a[a.InOut=2]="InOut";var n=function(e){this.name=e.Name,this.type=e.Type,this.direction=e.Direction};t.DBStoredProcedureArgument=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActionId={Save:"dxqb-save",DataPreview:"dxqb-data-preview",SelectStatementPreview:"dxqb-select-statement-preview"},t.HandlerUri="DXQB.axd",t.SetHandlerUri=function(e){return t.HandlerUri=e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),a=r(1),i=r(105),n=[{propertyName:"name",modelName:"@Name"},{propertyName:"tables",modelName:"Views",array:!0}],s=(c.prototype.getInfo=function(){return n},c.from=function(e,t){return e&&new c(e.DataSet,t)||null},c.toJson=function(e,t,r){return{DataSet:t.serialize(e,n,r)}},c);function c(e,t){(t=t||new o.ModelSerializer).deserialize(this,e),this.tables=a.deserializeArray(e&&e.Views||[],function(e){return new i.ResultTable(e,t)})}t.ResultSet=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),a=(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:""}]},i);function i(e,t){(t=t||new o.ModelSerializer).deserialize(this,e||{})}t.JsonAuthenticationInfo=a},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n,s=r(2),c=r(1),d=r(1),l=r(7),u=r(1);(n=i=t.JsonParameterType||(t.JsonParameterType={}))[n.PathParameter=0]="PathParameter",n[n.QueryParameter=1]="QueryParameter",n[n.Header=2]="Header";var p,f=(p=c.Disposable,a(m,p),m.from=function(e,t){return new m(e||{},t)},m.toJson=function(e,t,r){return t.serialize(e,e.getInfo(),r)},m.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)},m.prototype.switchEditors=function(){var e=!this.isExpression();this.isExpression(e),e?this._expression.value(this._editingValue()?"'"+this._editingValue()+"'":""):this._editingValue("")},m.prototype.getInfo=function(){return[{propertyName:"name",modelName:"@Name",displayName:"Name",editor:l.editorTemplates.text},{propertyName:"value",modelName:"@Value",displayName:"Value",editor:l.editorTemplates.text},{propertyName:"itemType",modelName:"@ItemType",defaultVal:i[i.PathParameter],alwaysSerialize:!0}]},m);function m(e,t){var r=p.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=h,(t=t||new d.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=f;var h=[{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";Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),a=r(0);t.generateQueryUniqueName=function(e,t){var r=(t.name()||t.generateName()).replace(".","_");return o.findFirstItemMatchesCondition(e,function(e){return e.name()===r})?a.getUniqueNameForNamedObjectsArray(e,r+"_"):r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),a=(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()},i);function i(e,t){this.globalState=e,this.pageFactory=t,this.defaultState=o.extend(!0,{},e)}t.StateManager=a},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(1),c=r(33),d=r(68),l=r(0),u=r(1),p=r(11),f=r(17),m=r(31),h=(i=s.Disposable,a(y,i),y.prototype._needToProcessParameters=function(e){return e.arguments.some(y._availableConvertToParameter)},y._availableConvertToParameter=function(e){return e.direction!==d.DBStoredProcedureArgumentDirection.Out},Object.defineProperty(y.prototype,"_selectedProcedure",{get:function(){return this.selectedProcedure()[0]},set:function(e){this.selectedProcedure(e?[e]:[])},enumerable:!0,configurable:!0}),y.prototype.scrollActiveItem=function(e){var t=e.model.selectedProcedure.peek();e.component.scrollToItem(t[0])},y.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+"(")},y.prototype.setQuery=function(e){this._query=e,this._selectedProcedure=l.getFirstItemByPropertyValue(this.storedProcedures(),"name",e.procName())},y.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){y._availableConvertToParameter(e)&&r.parameters.push(l.getFirstItemByPropertyValue(t._query.parameters(),"name",e.name)||new p.DataSourceParameter({"@Name":e.name,"@Type":f.DBColumn.GetType(e.type)},null,m.storedProcParameterSerializationsInfo(f.DBColumn.GetType(e.type))))}),r},Object.defineProperty(y.prototype,"runQueryBuilderDisabled",{get:function(){return!0},enumerable:!0,configurable:!0}),y);function y(){var t=i.call(this)||this;return t.template="dxrd-procedures-control",t.storedProcedures=n.observableArray([]),t.selectedProcedure=n.observableArray([]),t.caption=function(){return u.getLocalization("Select a stored procedure:","DataAccessUIStringId.StoredProcControl_Caption")},t.generateStoredProcedureDisplayName=function(e){return y.generateStoredProcedureDisplayName(e)},t.isNextDisabled=n.pureComputed(function(){return!t._selectedProcedure||!t._needToProcessParameters(t._selectedProcedure)}),t.isFinishDisabled=n.pureComputed(function(){return!t._selectedProcedure||t._needToProcessParameters(t._selectedProcedure)}),t.storedProcedures.subscribe(function(e){e?t._selectedProcedure?t._selectedProcedure=l.getFirstItemByPropertyValue(t.storedProcedures(),"name",t._selectedProcedure.name):t._query&&t._query.procName()?t._selectedProcedure=l.getFirstItemByPropertyValue(t.storedProcedures(),"name",t._query.procName()):t._selectedProcedure=e[0]:t._selectedProcedure=null}),t}t.StoredProceduresQueryControl=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),a=r(0),i=(n.prototype.getQuerySqlText=function(e){var t=JSON.stringify({Query:(new o.ModelSerializer).serialize(e)});return this._selectStatementCallback(this._connection(),t).fail(function(e){var t=a.getErrorMessage(e);a.ShowMessage("Unable to build a SQL string"+(t?": "+t:"."))})},n);function n(e,t){this._selectStatementCallback=e,this._connection=t}t.SelectQuerySqlTextProvider=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),i=r(0),o=r(32),n=r(1),s=r(0),c=r(1),d=(l.prototype.show=function(e,t){this._dataSource=t,this._dbSchemaProvider(t.dbSchemaProvider),this._query((new n.ModelSerializer).serialize(e)),this.qbOptions(this.qbOptions()||this.customizeQBInitializationData({data:{querySource:this._query,dbSchemaProvider:this._dbSchemaProvider},callbacks:{customizeActions:l.customizeQueryBuilderActions},rtl:this._rtl})),this.isVisible(!0),this.designer().updateSurface()},l.prototype.cancelHandler=function(){this.isVisible(!1)},l.prototype.previewHandler=function(){this.designer().showPreview()},l.prototype.okHandler=function(){var e=this;this.designer().model().canSave()&&this._applyQuery(new o.TableQuery(this.designer().model().serialize(),this._dataSource),this.showLoadIndicator).done(function(){e.isVisible(!1)})},l.prototype.onHiddenHandler=function(){this.designer().dataPreview.isVisible(!1)},l.prototype.popupViewModel=function(e){var t=s.getParentContainer(e);return{visible:this.isVisible,title:this.getDisplayText("title"),showTitle:!0,shading:!0,fullScreen:!1,width:"95%",height:"95%",container:t,position:{of:t},onHidden:this.onHiddenHandler}},l.prototype.getDisplayText=function(e){return c.getLocalization(this.localizationIdMap[e].text,this.localizationIdMap[e].localizationId)},l.customizeQueryBuilderActions=function(e){var t=i.findFirstItemMatchesCondition(e,function(e){return"Delete"===e.text}),r=i.findFirstItemMatchesCondition(e,function(e){return"Undo"===e.text}),o=i.findFirstItemMatchesCondition(e,function(e){return"Redo"===e.text});e.splice(0,e.length,t,r,o)},l);function l(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=function(e){return e});var o=this;this.customizeQBInitializationData=r,this._query=a.observable(null),this._dbSchemaProvider=a.observable(null),this.designer=a.observable(),this.qbOptions=a.observable(null),this.okButtonDisabled=a.pureComputed(function(){return o.designer()&&!o.designer().model().isValid()}),this.isVisible=a.observable(!1),this.showLoadIndicator=a.observable(!1),this.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"}},this._applyQuery=e,this._rtl=t}t.QueryBuilderPopup=d},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(3),s=r(6),c=r(22),d=r(79),l=r(5),u=r(1),p=(i=s.WizardPageBase,a(f,i),f.prototype.canNext=function(){return!1},f.prototype.canFinish=function(){return!0},f.prototype.commit=function(){return n.Deferred().resolve({selectedType:this._objectDataSource.selectedType,ctor:this._objectDataSource.ctor,dataMember:this._objectDataSource.dataMember,dataSourceName:this._objectDataSource.name()}).promise()},f.prototype.initialize=function(e){return this._objectDataSource.setState(e),this._chooseObjectParameters.updateCtorParameters(this._objectDataSource.ctor),this._chooseObjectParameters.updateMethodParameters(this._objectDataSource.dataMember),n.Deferred().resolve().promise()},f);function f(e){var t=i.call(this)||this;return t._objectDataSource=new c.ObjectDataSource,t._disposables.push(t._chooseObjectParameters=new d.ChooseObjectMemberParameters(e)),t}t.ConfigureObjectDataSourceParametersPage=p,t._registerConfigureObjectDataSourceParametersPage=function(e,t){e.registerMetadata(l.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 p(t&&t())},description:u.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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(1),c=r(0),d=r(0),l=r(11),u=r(1),p=r(7),f=(i=s.Disposable,a(m,i),m.prototype.switchPropertyType=function(){this.isExpression()?(this.type(this._parameter.resultType),this._parameter.value=this.value()):(this.type(c.ExpressionType),this._parameter.value=this.expression.value())},m.prototype.isExpression=function(){return c.IsDataAccessExpression(this.type())},m.prototype._generateInfo=function(e,t){return void 0===t&&(t="value"),d.extend({},{displayName:this._parameter.displayName,propertyName:t,modelName:t,editorOptions:{}},e)},m.prototype._initGetInfo=function(t){var r=this,e=[this._generateInfo({editor:c.getEditorType(this._parameter.resultType),from:function(e){return n.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:n.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}},m.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)}))},m.prototype.isPropertyVisible=function(e){return this.isExpression()?"expression"===e:"value"===e},m);function m(e,t){var r=i.call(this)||this;r._parameter=e,r._itemsProvider=t,r.type=n.observable(""),r.type(r._parameter.type);var o=l.DataSourceParameter._getTypeValue(r._parameter.resultType);return r._initGetInfo(o),(new u.ModelSerializer).deserialize(r,{}),r._subscribeProperties(),r}t.ObjectDataSourceParameterProperty=f;var h=(y.prototype._doWithModel=function(e){var t=this._editor._model();if(t instanceof f)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()})},y);function y(e){this._editor=e,this.imageTemplateName="dx-objectdatasource-expression"}var g,_=(g=p.ObjectProperties,a(v,g),v);function v(e){var t=g.call(this,n.observable(e))||this;return t.createEditorAddOn=function(e){return{data:new h(e),templateName:"dx-wizard-menu-box-editorswitch"}},t}var b,S=(b=s.Disposable,a(x,b),x);function x(e,o){var a=b.call(this)||this;return a.displayName=e.displayName,a._grids=e.parameters.map(function(e){var t=new f(e,o),r=new _(t);return a._disposables.push(t),a._disposables.push(r),r}),a}t.ObjectDataSourceParametersModel=S;var P,C=(P=s.Disposable,a(T,P),T.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)},T.prototype.updateCtorParameters=function(e){this._updateParameters("_ctorParametersObject",e)},T.prototype.updateMethodParameters=function(e){this._updateParameters("_dataMemberParametersObject",e)},T);function T(e){var t=P.call(this)||this;return t._itemsProvider=e,t._ctorParametersObject=n.observable(),t._dataMemberParametersObject=n.observable(),t.hasParameters=function(){return t._dataMemberParametersObject()||t._ctorParametersObject()},t}t.ChooseObjectMemberParameters=C;var O,I=(a(N,O=C),N);function N(e,t,r){var o=O.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=I},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),n=r(52),s=r(18),c=r(9),d=r(0),l=r(0),u=r(1),p=r(1),f=r(0),m=function(e){var t=s.deserializeToCollection(e,function(e){return new n.ObjectType(e)});this.types=t.sort(function(e,t){return e.displayName.localeCompare(t.displayName)})};function h(e,t){var r=i.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){d.ShowMessage(l.formatUnicorn(u.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),d.getErrorMessage(e))),r.reject()}),r.promise()}t.ObjectTypeDescriptions=m,t.getObjectTypeDescriptionsCallback=h;var y,g=(y=p.Disposable,a(_,y),_.prototype.dispose=function(){this._objectTypeDescriptionsPromise=null},_.prototype.getSchemaByPath=function(t,e){if(t.fullPath){for(var r=[],o=0;o<t.pathParts.length;o++){var a=(e.types||[]).filter(function(e){return e.name==t.pathParts[o]})[0];if(!a)return[];r=a.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"})})},_.prototype.getObjectTypeDescriptions=function(e){return void 0===e&&(e=""),this._objectTypeDescriptionsPromise&&"rejected"!==this._objectTypeDescriptionsPromise.state()||(this._objectTypeDescriptionsPromise=h(this._requestWrapper,e)),this._objectTypeDescriptionsPromise},_);function _(e){void 0===e&&(e=new c.RequestWrapper);var o=y.call(this)||this;return o._requestWrapper=e,o.getItems=function(t){var r=i.Deferred();return o.getObjectTypeDescriptions().done(function(e){r.resolve(o.getSchemaByPath(t,e))}).fail(r.reject),r.promise()},o}t.ObjectSchemaProvider=g},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(8),c=r(1),d=(i=s.TreeListController,a(l,i),l.prototype.canSelect=function(e){return!0},l);function l(){return null!==i&&i.apply(this,arguments)||this}t.ChooseObjectTypesTreelistController=d;var u,p=(u=c.Disposable,a(f,u),f);function f(e,t){var o=u.call(this)||this;return o.types=e,o.selectedType=n.observable(),o.selectedCtor=n.observable(),o.selectedPath=n.observable(""),o._scrollViewHeight="calc(100% - 36px)",o.availableTypesTreelistModel={expandRootItems:!0,itemsProvider:t,selectedPath:o.selectedPath,treeListController:new d},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=p},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(1),c=(i=s.Disposable,a(d,i),d.prototype.coerceSelection=function(){var e=this.selectedDataMembers()[0],t=e&&e.isAvailable()?e:this.dataMembers().filter(function(e){return e.isAvailable()})[0];this.selectedDataMembers([t])},d);function d(t,e){var r=i.call(this)||this;r.dataMembers=n.observableArray([]),r.selectedDataMembers=n.observableArray([]);var o=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=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),s=r(3),c=r(1),d=r(0),l=r(1),u=r(126),p=r(7),f=r(50),m=r(127),h=r(71),y=r(7),g=r(0),_=r(72),v=r(13);function b(e,t,r){var o=e||c.getLocalization("The value cannot be empty","AnalyticsCoreStringId.ParametersPanel_DateTimeValueValidationError");if(!t)return o;var a=r?d.formatUnicorn("{0}. {1}",t,r):t;return c._stringEndsWith(a,":")||(a+=":"),d.formatUnicorn("{0} {1}",a,o)}t.getLocalizedValidationErrorMessage=b;var S,x=(S=l.Disposable,a(P,S),P.prototype.dispose=function(){this._validationSummary&&this._validationSummary.dispose(),this._validationGroup&&this._validationGroup.dispose(),this._validationSummary=null,this._validationGroup=null,S.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=S.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 p.ObjectProperties(n.observable(t))),t}t.JsonDataSourceJsonSourcePageSettingsBase=x;var C,T=(a(O,C=x),O.prototype.onChange=function(t){var r=this,o=null;this._disposables.push(this.stringSource.subscribe(function(e){return t(),clearTimeout(o),void(o=setTimeout(function(){return r._validate()},1))}))},O.prototype._isJsonSourceValid=function(e){if(!e)return!1;var t=!0;try{JSON.parse(e)}catch(e){t=!1}return t},O.prototype.isEmpty=function(){return!this.stringSource()},O.prototype.reset=function(){this.stringSource("")},O.prototype.setValue=function(e){this.stringSource(e.source.json())},O.prototype.getInfo=function(){return[{propertyName:"stringSource",defaultVal:"",displayName:"JSON String",editor:{header:"dx-jsonwizard-jsonstring-editor",editorType:m.JsonStringEditor,custom:"dx-property-json-string-editor"}}]},O.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([])},O);function O(){var r=C.call(this)||this;return r._validatorsReady=n.observable(!1),r.isValid=n.pureComputed(function(){var e=r._isJsonSourceValid(r.stringSource()),t=r.aceEditorHasErrors();return e&&!t}),r.validationGroup=null,r.validationSummary=null,r.stringSource=n.observable(""),r.aceEditorHasErrors=n.observable(!1),r.cssClass={"dxrd-wizard-json-string-source-grid":!0},r._disposables.push(r.grid=new p.ObjectProperties(n.observable(r))),r}t.JsonDataSourceJsonSourcePageStringSettings=T;var I,N=(a(D,I=x),D.prototype._validateUriSource=function(){var r=this,o=c.getLocalization("Invalid URI.","AnalyticsCoreStringId.ReportDesigner_Wizard_JsonSource_UriValidationError"),a=c.getLocalization("Web Service Endpoint (URI):","DataAccessUIStringId.WizardPageChooseJsonSource_URI");this._isUriValid(!1),this._lastValidateDeferred&&this._lastValidateDeferred.reject();var i=s.Deferred();this._lastValidateDeferred=i;try{var e=new f.JsonDataSource({}),t=this._getSerializedUriSource(e);this._lastValidatedJsonSourceJSON=t;var n=function(e){var t;i.state&&"rejected"===i.state()||(r._isUriValid(e.isUriValid),t=b((e.isUriValid?"":e&&e.faultMessage)||o,a),i.resolve({isUriValid:e.isUriValid,faultMessage:t}))};this._requestWrapper.validateJsonUri(e).done(n).fail(function(e){void 0===e&&(e={}),e.isValid=!1,n(e)})}catch(e){this._isUriValid(!1)}return i.promise()},D.prototype._isCollectionValid=function(e){return!this[e]().length||this[e]().every(function(e){return e.name()})},D.prototype._isParametersValid=function(){return this._isCollectionValid("parameters")},D.prototype._isBasicHttpAuthValid=function(){return!this.basicHttpAuth.password()||!!this.basicHttpAuth.userName()},D.prototype._getSourceUriInfo=function(){var t=this,e={propertyName:"sourceUri",displayName:"Web Service Endpoint (URI):",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_URI",defaultVal:"",editor:y.editorTemplates.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:n.pureComputed(function(){return t._noEmptyProperties()}),get message(){return r._lastValidationMessage()},validationCallback:this._sourceUriValidationCallback}]},e},D.prototype._getBasicHttpAuthInfo=function(){var r=this,e={propertyName:"userName",displayName:"Username:",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_UsernameText",editor:y.editorTemplates.text,validatorOptions:void 0},t={propertyName:"basicHttpAuth",displayName:"Basic HTTP Authentication",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_BasicHttpAuthText",info:[e,{propertyName:"password",displayName:"Password:",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_PasswordText",editor:y.editorTemplates.text,editorOptions:{mode:"password"}}],editor:y.editorTemplates.objecteditor};return e.validatorOptions={onInitialized:function(e){var t=e&&e.component;r._authNameValidatorInstance&&r._authNameValidatorInstance!=t&&r._authNameValidatorInstance.dispose(),r._authNameValidatorInstance=t,r._basicAuthValidatorsReady(!0)},onDisposed:function(){r._authNameValidatorInstance=null},validationRules:[{type:"custom",reevaluate:!0,assignValueFirst:!0,get message(){return b(null,c.getLocalization(t.displayName,t.localizationId),c.getLocalization(e.displayName,e.localizationId))},validationCallback:function(e){return r._isBasicHttpAuthValid()}}]},t},D.prototype._getParametersInfo=function(){var t=this,e={propertyName:"parameters",displayName:"Parameters",localizationId:"AnalyticsCoreStringId.QueryBuilder_Parameters",array:!0,addHandler:function(){var e=g.getUniqueNameForNamedObjectsArray(t.parameters(),"parameter");return _.JsonParameter.from({"@Name":e})},editor:y.editorTemplates.commonCollection,editorOptions:null,template:"#dx-jsonwizard-parametercollection"};return e.editorOptions={itemsProvider:this._itemsProvider,nameValidationRules:[{type:"required",get message(){return b(null,c.getLocalization(e.displayName,e.localizationId),this._collectionItemNamePlaceholder)}}]},e},D.prototype._getResultUriInfo=function(){return{propertyName:"resultUri",displayName:"Resulting URI:",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_ResultingUri",defaultVal:"",editor:y.editorTemplates.text,editorOptions:{readOnly:!0,elementAttr:{title:this.resultUri}}}},D.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],r=e[1],t=this._appendPathSegmentsToUri(e[0]);return this._appendQuerySegmentsToUri(t,r)},D.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},D.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},D.prototype._onValidationSummaryInitialized=function(e){var t=this;I.prototype._onValidationSummaryInitialized.call(this,e),this._isInitUri=!0,setTimeout(function(){t._validate()},1)},D.prototype._applyParametersToSource=function(t){var r=this.parameters().reduce(function(e,t){var r;return i({},e,((r={})[t.itemType()]=(e[t.itemType()]||[]).concat([t]),r))},{});["PathParameter","QueryParameter","Header"].forEach(function(e){r[e]&&t.source[u.parameterTypeToPropertyMap[e]](r[e])})},D.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)},D.prototype.getInfo=function(){return[this._getSourceUriInfo(),this._getBasicHttpAuthInfo(),this._getParametersInfo(),this._getResultUriInfo()]},D.prototype.reset=function(){this.sourceUri(""),this.basicHttpAuth.password(""),this.basicHttpAuth.userName(""),this.parameters([])},D.prototype.setValue=function(e){this.sourceUri(e.source.uri()),this.basicHttpAuth.userName(e.source.authenticationInfo.userName()),this.basicHttpAuth.password(e.source.authenticationInfo.password());var t=[].concat.apply([],[e.source.pathParameters(),e.source.queryParameters(),e.source.headers()]);this.parameters(t)},D.prototype.dispose=function(){this._authNameValidatorInstance&&this._authNameValidatorInstance.dispose(),this._lastValidateDeferred&&(this._lastValidateDeferred.reject(),this._lastValidateDeferred=null),I.prototype.dispose.call(this),this.disposeObservableArray(this.parameters)},D.prototype.onChange=function(e){function r(){e(),clearTimeout(a),a=setTimeout(function(){return o._validate()},1)}var t,o=this,a=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))},D.prototype.isEmpty=function(){return!this.sourceUri()},D.prototype._validate=function(){this._validationSummary&&this._validationGroup&&(this._validatorsReady()?(this._validationGroup.validate(),this._validationRequested(!1)):this._validationRequested(!0))},D);function D(e,t){var o=I.call(this)||this;return o._requestWrapper=e,o._itemsProvider=t,o._isUriValid=n.observable(!1),o._lastValidatedJsonSourceJSON="",o._authNameValidatorInstance=null,o._isInitUri=!0,o._collectionItemNamePlaceholder=c.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder"),o._lastValidateDeferred=null,o._sourceUriValidatorsReady=n.observable(!0),o._basicAuthValidatorsReady=n.observable(!1),o._validationRequested=n.observable(!1).extend({deferred:!0}),o._noEmptyProperties=n.pureComputed(function(){var e=o._isBasicHttpAuthValid(),t=o._isParametersValid(),r=!!o.sourceUri();return e&&t&&r}),o._lastValidationMessage=n.observable(),o._getSerializedUriSource=function(e){return void 0===e&&(e=new f.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=b(null,c.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(c.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=n.pureComputed(function(){var e=o._noEmptyProperties(),t=o._isUriValid();return e&&t}),o._validatorsReady=n.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=n.observable(""),o.basicHttpAuth={password:n.observable(""),userName:n.observable("")},o.parameters=n.observableArray([]),o._disposables.push(o.resultUri=n.pureComputed(function(){return o._getResultUri()})),o._disposables.push(o.grid=new p.ObjectProperties(n.observable(o))),o._disposables.push(n.computed(function(){var e=o._validatorsReady(),t=o._validationRequested();e&&t&&o._validate()})),o._disposables.push(o._validatorsReady),o}t.JsonDataSourceJsonSourcePageUriSettings=N},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(12),l=r(13),u=r(131),p=r(32),f=r(10),m=r(76),h=r(23),y=r(1),g=r(33),_=r(11),v=r(17),b=r(31),S=r(0),x=r(73),P=r(38),C=r(77),T=r(15),O=r(41),I=r(30),N=r(1),D=r(132),E=r(1),w=r(53),A=r(8),z=r(5),M=(i=c.WizardPageBase,a(k,i),k.prototype._addQueryAlgorithm=function(e,t,r,o){e.unChecked()&&"queries"!==t?e.children().forEach(function(e){k._removeQuery(r.queries,e)}):(0===e.children().length&&this._itemsProvider().getItems(new y.PathRequest(t)),"tables"===t||"views"===t?this._addQueryFromTables(e,r):"procedures"===t?this._addQueryFromStoredProcedures(e,r):this._addQueryFromCustomQueries(e,o,r.queries))},k.prototype._addQueryFromTables=function(e,t){for(var r=0;r<e.children().length;r++){var o=e.children()[r];if(o.unChecked())k._removeQuery(t.queries,o);else{var a={},i={Columns:a,Tables:{SelectedTables:{Item1:{"@Name":o.name,"@ControlType":"Table","@ItemType":"Table"}}}};0===o.children().length&&this._itemsProvider().getItems(new y.PathRequest("tables."+o.name)).done(function(){o.initializeChildren(o.children())});for(var n=0;n<o.children().length;n++){var s=o.children()[n];s.checked()&&(a["Item"+(n+1)]={"@Table":o.name,"@Name":s.name,"@ItemType":"Column"})}k._pushQuery(new p.TableQuery(i,t),o,t.queries)}}},k.prototype._addQueryFromStoredProcedures=function(e,t){for(var r=0;r<e.children().length;r++){var o,a=e.children()[r];a.checked()?(o=new g.StoredProcQuery({"@Name":a.name,ProcName:a.name},t),a.arguments.forEach(function(e){o.parameters.push(new _.DataSourceParameter({"@Name":e.name,"@Type":v.DBColumn.GetType(e.type)},null,b.storedProcParameterSerializationsInfo(v.DBColumn.GetType(e.type))))}),k._pushQuery(o,a,t.queries)):k._removeQuery(t.queries,a)}},k.prototype._addQueryFromCustomQueries=function(e,t,r){for(var o=0;o<e.children().length;o++){var a=e.children()[o],i=S.findFirstItemMatchesCondition(t.peek(),function(e){return a.name===(e.name()||e.generateName())});a.checked()&&(i.name(x.generateQueryUniqueName(r.peek(),i)),this._checkedQueries.push(i))}},k.prototype._getItemsPromise=function(e){return this._itemsProvider().getItems(e)},k.prototype._resetDataSourceResult=function(){this._customResetOptions(),this._dataSource().relations([]),this._dataSource().resultSet=null,this._onChange()},k.prototype._setQueryCore=function(e){var t,r,o=this._fieldListModel().itemsProvider,a=this._queryEditIndex();0<=a?(this._itemsProvider().queries().children()[a].name=e.name(),o.customQueries().splice(a,1,e)):(e.name(x.generateQueryUniqueName(o.customQueries().peek(),e)),o.customQueries().push(e),this._selectedPath("queries."+e.name()),(r=(t=this._itemsProvider().queries().children())[t.length-1]).setChecked(!0),r._afterCheckToggled&&r._afterCheckToggled(r)),this._resetDataSourceResult()},k._pushQuery=function(t,e,r){S.findFirstItemMatchesCondition(r.peek(),function(e){return e.name()===(t.name()||t.generateName())})||(t.name(x.generateQueryUniqueName(r.peek(),t)),r.push(t)),e.hasQuery=!0},k._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)},k.prototype.canNext=function(){return!this._itemsProvider().nextButtonDisabled()&&this.canFinish()},k.prototype.canFinish=function(){return this._itemsProvider()&&this._itemsProvider().hasCheckedItems()&&!this._isDataLoadingInProcess()},k.prototype._AddQueryWithBuilder=function(){},k.prototype._runQueryBuilder=function(){},k.prototype._loadPanelViewModel=function(e){return O.PopupWizard._getLoadPanelViewModel(e,this._isDataLoadingInProcess)},k.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)})},k.prototype._setCustomSqlQuery=function(e){this._setQueryCore(e)},k.prototype._createTreeListFactory=function(){return new l.MultiQueryTreeListItemFactory},k.prototype.commit=function(){var t=this;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();var e=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 g.StoredProcQuery});r.forEach(function(e){return t._sqlDataSourceWrapper.sqlDataSource.queries.remove(e)});var o=new N.ModelSerializer;return s.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.save(),customQueries:r.map(function(e){return JSON.stringify(o.serialize(e))})}).promise()},k.prototype.initialize=function(e){var t=this;this._sqlDataSourceWrapper=d._restoreSqlDataSourceFromState(e,this._options.requestWrapper);var r=this._callbacks.customQueriesPreset?this._callbacks.customQueriesPreset(this._dataSource()):s.Deferred().resolve([]).promise(),o=s.Deferred();return r.done(function(e){t._customQueries(e),t._selectedPath(""),t._itemsProvider(new u.DBSchemaItemsProvider(t._dataSource().dbSchemaProvider,t._customQueries,t._showQbCallBack,t.disableCustomSql,t._getItemsAfterCheck)),t._getItemsPromise(new y.PathRequest("queries")),t._fieldListModel({factory:t._createTreeListFactory(),itemsProvider:t._itemsProvider(),selectedPath:t._selectedPath,treeListController:new D.DBSchemaTreeListController(t._customizeDBSchemaTreeListActions),templateName:"dxrd-treelist-with-checkbox"}),t._popupQueryBuilder.isVisible(!1),t._dataSource().dbSchemaProvider.getDbSchema().done(function(){o.resolve()}).fail(o.reject)}).fail(o.reject),o.promise()},k);function k(e){var a=i.call(this)||this;return a._options=e,a._selectedPath=n.observable(null),a._connection="",a._itemsProvider=n.observable(),a._customQueries=n.observableArray([]),a._checkedQueries=n.observableArray([]),a._sqlDataSourceWrapper=new h._SqlDataSourceWrapper(void 0,void 0,void 0),a._dataSource=function(){return a._sqlDataSourceWrapper&&a._sqlDataSourceWrapper.sqlDataSource},a._dataConnection=function(){return a._dataSource()&&a._dataSource().connection},a._showStatementPopup=function(e){a._popupSelectStatement.isVisible(!0),a._popupSelectStatement.query=e,a._popupSelectStatement.data(e.sqlString())},a._showQbCallBack=function(t,e){var r,o;void 0===t&&(t=null),void 0===e&&(e=!1),null!==t?(r=S.findFirstItemMatchesCondition(a._customQueries(),function(e){return t===(e.name()||e.generateName())})).type()===f.SqlQueryType.customSqlQuery?(a._queryEditIndex(a._customQueries().indexOf(r)),a._showStatementPopup(r)):(a._queryEditIndex(a._customQueries().indexOf(r)),a._popupQueryBuilder.show(r,a._dataSource())):(a._queryEditIndex(-1),e?a._showStatementPopup(new I.CustomSqlQuery({"@Name":null},a._dataSource())):(o=new p.TableQuery({"@Name":null},a._dataSource()),a._popupQueryBuilder.show(o,a._dataSource())))},a._popupSelectStatement={isVisible:n.observable(!1),title:function(){return E.getLocalization("Custom SQL Editor","AnalyticsCoreStringId.SqlDSWizard_CustomSqlEditor")},query:null,data:n.observable(),okButtonText:function(){return E.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){a._popupSelectStatement.query.sqlString(e.model.data()),a._setCustomSqlQuery(a._popupSelectStatement.query),e.model.isVisible(!1)},aceOptions:w.createDefaultSQLAceOptions(),aceAvailable:A.aceAvailable,additionalOptions:w.createDefaultSQLAdditionalOptions(function(e){a._popupSelectStatement.data(e)}),languageHelper:w.createDefaultSQLLanguageHelper(),closest:function(e,t){return s(e).closest(t)}},a._customResetOptions=s.noop,a._queryEditIndex=n.observable(-1),a.disableCustomSql=!0,a._scrollViewHeight="calc(100% - 36px)",a._customizeDBSchemaTreeListActions=null,a._isDataLoadingInProcess=n.observable(!1),a._callbacks=a._options.callbacks,a._sqlTextProvider=new m.SelectQuerySqlTextProvider(P.wrapGetSelectStatement(a._callbacks.selectStatement),a._dataConnection),a._popupQueryBuilder=new C.QueryBuilderPopup(function(e,t){return a._setTableQuery(e,t)},a._options.rtl,a._options.callbacks.customizeQBInitData),a._fieldListModel=n.observable(null),a._disposables.push(a._hasParametersToEdit=n.pureComputed(function(){return a._itemsProvider().hasParametersToEdit()})),a._disposables.push(a._isDataLoadingInProcess.subscribe(function(e){e||a._onChange(),a[T.BaseWizard.__loadingStateFunctionName]&&a[T.BaseWizard.__loadingStateFunctionName](e)})),a.disableCustomSql=a._options.disableCustomSql,a._getItemsAfterCheck=function(t){a._resetDataSourceResult(),a._isDataLoadingInProcess(!0),t.checked.peek()&&t.isList?"tables"===t.name||"views"===t.name?a._itemsProvider().getItems(new y.PathRequest(t.name)).done(function(){t.isList&&0<t.children.peek().length?s.when.apply(s,t.children.peek().map(function(e){return a._getItemsPromise(new y.PathRequest(t.name+"."+e.name))})).always(function(){return a._isDataLoadingInProcess(!1)}):a._isDataLoadingInProcess(!1)}):"table"===t.specifics||"view"===t.specifics?a._itemsProvider().getItems(new y.PathRequest(t.specifics+"."+t.name)).always(function(){return a._isDataLoadingInProcess(!1)}):"procedures"===t.name?a._itemsProvider().getItems(new y.PathRequest(t.name)).always(function(){return a._isDataLoadingInProcess(!1)}):a._isDataLoadingInProcess(!1):a._isDataLoadingInProcess(!1)},a}t.MultiQueryConfigurePage=M,t._registerMultiQueryConfigurePage=function(e,t){e.registerMetadata(z.SqlDataSourceWizardPageId.MultiQueryConfigurePage,{create:function(){return new M(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:E.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";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),n=r(2),s=r(10),c=r(6),d=r(12),l=r(23),u=r(133),p=r(11),f=r(0),m=r(13),h=r(7),y=r(0),g=r(1),_=r(5);function v(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=v;var b,S=(b=c.WizardPageBase,a(x,b),x.prototype._isParametersValid=function(){return this._getParameters().every(function(e){return e.isValid()})},x.prototype.canNext=function(){return this._isParametersValid()&&1<this._sqlDataSourceWrapper.sqlDataSource.queries().length},x.prototype.canFinish=function(){return this._isParametersValid()&&1<=this._sqlDataSourceWrapper.sqlDataSource.queries().length},x.prototype._getParameters=function(){return[].concat.apply([],(this._rootItems()||[]).map(function(e){return e.parameters().map(function(e){return e.dataSourceParameter()})}))},x.prototype.initialize=function(e){var o=this,r=[],a=this._rootItems();return this._sqlDataSourceWrapper=d._restoreSqlDataSourceFromState(e,this._requestWrapper),this._sqlDataSourceWrapper.sqlDataSource.queries().forEach(function(e){var t;v(e,o._sqlDataSourceWrapper.customQueries)&&((t=new u.ParametersTreeListRootItem(e)).parameters(e.parameters().map(function(e){return new u.ParametersTreeListItem(o.parametersConverter.createParameterViewModel(e),t)})),r.push(t))}),a.filter(function(t){return r.every(function(e){return e.name!==t.name})}).forEach(function(e){a.splice(o._rootItems().indexOf(e),1)}),r.forEach(function(t){var r=a.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)}):a.push(t)}),this._rootItems.valueHasMutated(),this._fieldListModel({itemsProvider:{getItems:function(t){var e,r=i.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 u.ParametersTreeListController(this._rootItems(),this._createNewParameter)}),i.Deferred().resolve().promise()},x.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())}))}),i.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.sqlDataSourceJSON,customQueries:this._sqlDataSourceWrapper.saveCustomQueries()}).promise()},x);function x(e,t){void 0===e&&(e={createParameterViewModel:function(e){return e},getParameterFromViewModel:function(e){return e}});var o=b.call(this)||this;o.parametersConverter=e,o._requestWrapper=t,o._sqlDataSourceWrapper=new l._SqlDataSourceWrapper(void 0,void 0,o._requestWrapper),o._selectedPath=n.observable(null),o._rootItems=n.observableArray(),o._createNewParameter=function(e,t){var r=new p.DataSourceParameter({"@Name":f.getUniqueNameForNamedObjectsArray(t,"parameter"),"@Type":"System.Int32"});return o._selectedPath(e+"."+r.name()),o.parametersConverter.createParameterViewModel(r)},o._scrollViewHeight="100%",o._fieldListModel=n.observable(null),o._removeButtonTitle=g.getLocalization("Remove","DataAccessUIStringId.Button_Remove");function r(){return o._onChange()}return o._disposables.push(m.subscribeArray(o._rootItems,function(e){o._disposables.push(m.subscribeArray(e.parameters,function(e){o._disposables.push(m.subscribeObject(e.dataSourceParameter,function(e){var t;(t=o._disposables).push.apply(t,m.subscribeProperties([e.name,e.value,e.type],r))},r))},r))},r)),o._parametersEditorOptions={addHandler:function(){return o.parametersConverter.createParameterViewModel(new p.DataSourceParameter({"@Name":f.getUniqueNameForNamedObjectsArray(o._parametersEditorOptions.values.peek().peek(),"param"),"@Type":"System.Int32"}))},values:n.observable(n.observableArray([])),displayName:"Parameters",level:0,info:n.observable({displayName:"Parameters",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Parameters",propertyName:"parameters",modelName:"Parameter",array:!0,editor:h.editorTemplates.commonCollection,template:"#dxrd-parameter-collection-item"}),editorTemplate:"#dxrd-wizard-datasource-parameters",hideButtons:n.observable(!1),collapsed:!1},o}t.MultiQueryConfigureParametersPage=S,t._registerMultiQueryConfigureParametersPage=function(e,t,r){e.registerMetadata(_.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:g.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters"),template:"dxrd-configure-query-parameters-page"})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(12),l=r(70),u=r(13),p=r(134),f=r(0),m=r(1),h=r(5),y=r(1),g=(i=c.WizardPageBase,a(_,i),_.prototype.dispose=function(){i.prototype.dispose.call(this),this.disposeObservableArray(this._relations)},_.prototype._updateRelations=function(){var i=this,n=this._relations();n.forEach(function(t,e){var r,o=i._resultSet.tables().filter(function(e){return e.tableName()===t.detailQuery()})[0],a=i._resultSet.tables().filter(function(e){return e.tableName()===t.masterQuery()})[0];o&&a?((r=t.keyColumns()).forEach(function(t,e){(o.columns().every(function(e){return e.name()!==t.detailColumn()})||a.columns().every(function(e){return e.name()!==t.masterColumn()}))&&r.splice(e,1)}),0===r.length&&n.splice(e,1)):n.splice(e,1)}),this._relations.valueHasMutated()},_.prototype.canNext=function(){return!1},_.prototype.canFinish=function(){return this._relations().every(function(e){return e.keyColumns().every(function(e){return!!e.detailColumn()&&!!e.masterColumn()})})},_.prototype._getResultSet=function(e){var t=s.Deferred();return e.resultSet?t.resolve(e.resultSet):this._sqlDataSourceResultSchema(e).done(function(e){t.resolve(new l.ResultSet(JSON.parse(e.resultSchemaJSON)))}).fail(function(e){t.reject(e)}),t.promise()},_.prototype.initialize=function(e){var t=this;return this.relationsSubscription&&this.relationsSubscription.dispose(),this._sqlDataSourceWrapper=d._restoreSqlDataSourceFromState(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._sqlDataSourceWrapper.sqlDataSource).done(function(e){t._resultSet=e,t._updateRelations(),t._relationsEditor(new p.MasterDetailEditor(t._relations,t._resultSet,s.noop))}).fail(function(e){f.getErrorMessage(e)&&f.ShowMessage(f.getErrorMessage(e))})},_.prototype.commit=function(){this.relationsSubscription.dispose(),this._sqlDataSourceWrapper.sqlDataSource.relations(this._relations()),this._sqlDataSourceWrapper.sqlDataSource.resultSet=this._resultSet;var t=new m.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()},_);function _(e){var t=i.call(this)||this;t._sqlDataSourceResultSchema=e,t._relations=n.observableArray([]),t._customResetOptions=s.noop,t._relationsEditor=n.observable(null);function o(){return t._onChange()}return t._disposables.push(u.subscribeArray(t._relations,function(r){var e;(e=r._disposables).push.apply(e,u.subscribeProperties([r.detailQuery,r.name,r.masterQuery],o)),r._disposables.push(u.subscribeArray(r.keyColumns,function(e){var t;(t=r._disposables).push.apply(t,u.subscribeProperties([e.detailColumn,e.masterColumn],o))},o))},o)),t}t.ConfigureMasterDetailRelationshipsPage=g,t._registerConfigureMasterDetailRelationshipsPage=function(e,t){e.registerMetadata(h.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage,{create:function(){return new g(t)},setState:function(e,t){t.relations=e.relations},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.relations=t.relations},description:y.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),template:"dxrd-wizard-configure-relations-page"})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(13),d=r(6),l=r(52),u=r(22),p=r(80),f=r(81),m=r(82),h=r(79),y=r(1),g=r(36),_=r(5),v=(i=d.WizardPageBase,a(b,i),b.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:c.getSectionStyle(this._dataSourceWizardOptions.rtl?g.WizardSectionPosition.Right:g.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:c.getSectionStyle(this._dataSourceWizardOptions.rtl?g.WizardSectionPosition.TopLeft:g.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:c.getSectionStyle(this._dataSourceWizardOptions.rtl?g.WizardSectionPosition.BottomLeft:g.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"}]},b.prototype.showDescription=function(e,t){return[e+1,t].join(". ")},b.prototype.canNext=function(){return!1},b.prototype.canFinish=function(){return!!this._chooseObjectDataMember.selectedDataMembers().length},b.prototype.commit=function(){var e=this._chooseObjectDataMember.selectedDataMembers()[0];return s.Deferred().resolve({selectedType:this._chooseObjectType.selectedType().name,ctor:this._chooseObjectType.selectedCtor(),context:this._context,dataMember:!e||e.isEntireObject()?void 0:e}).promise()},b.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,l.ObjectDataMember.empty())}),t._types(e.types||[]),0<e.types.length&&t._chooseObjectType.selectedPath(e.types[0].name)}),s.Deferred().resolve().promise()},b);function b(e){var t=i.call(this)||this;t._dataSourceWizardOptions=e,t._types=n.observableArray([]),t._objectDataSource=new u.ObjectDataSource;var r=t._dataSourceWizardOptions.callbacks.getItemsProviderCallback;return t._disposables.push(t._provider=new p.ObjectSchemaProvider(t._dataSourceWizardOptions.requestWrapper),t._chooseObjectType=new f.ChooseObjectTypes(t._types,t._provider),t._chooseObjectDataMember=new m.ChooseObjectDataMembers(t._chooseObjectType.selectedType,t._chooseObjectType.selectedCtor),t._chooseObjectParameters=new h.ChooseObjectParameters(t._chooseObjectType.selectedCtor,t._chooseObjectDataMember.selectedDataMembers,r&&r())),t._initSections(),t}t.SpecifyObjectDataSourceSettingsPage=v,t._registerSpecifyObjectDataSourceSettingsPage=function(e,t){e.registerMetadata(_.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 v(t)},template:"dxrd-page-objectsource",navigationPanelText:y.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage")})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var C=r(2),T=r(3),O=r(58),I=r(0),N=r(69),D=r(1),E=r(95),w=r(9),A=r(0),z=r(0),M=r(46),k=r(0),R=r(25),j=r(0),q=r(53),L=r(8),W=r(154),B=r(155),V=r(7),Q=r(0),F=r(156),U=r(96),J=r(43),H=r(0),$=r(0),n=r(157),s=r(191),G={Surface:"dxrd-surface-template-base",Toolbar:"dxqb-toolbar",RightPanel:"dx-right-panel-lightweight",DataPreview:"dxqb-popup#data",SqlPreview:"dxqb-popup#sql"};function X(r,o,a,e){return function(){var e=r.find(".dxrd-right-panel:visible").outerWidth()||0,t=r.width()-(e+5);r.find(".dxrd-surface-wrapper").css(a().rtl()?{left:e,right:0,width:t}:{left:0,right:e,width:t}),o(t),a().pageWidth(t)}}function Y(e,t){var r=C.observable(!1);return t.subscribe(function(){r(!1)}),C.pureComputed(function(){return t.peek().getDbSchema().done(function(){r(!0)}),!r()||e().tables.peek().some(function(e){return!e.isInitialized()})})}function c(e,t,r,o,a){void 0===a&&(a=!1);var i=r&&r.onServerError&&z.processErrorEvent(r.onServerError),n=t.requestWrapper||new w.RequestWrapper,s=t.parametersMode||M.ParametersMode.ReadWrite,c=C.observable(),d=C.observable(),l=C.observable();c.subscribe(function(e){d(new E.QuerySurface(e)),d().rtl(a)});function u(e){c(new O.QueryViewModel(e,t.dbSchemaProvider(),s))}u(t.querySource());var p=new k.SurfaceSelection(["alias","name","sortOrder"]),f=A.createDesigner(c,d,R.controlsFactory,void 0,void 0,void 0,a,p);i&&(f.dispose=function(){i.dispose()}),f.rootStyle="dxqb-designer dxd-back-primary2";var m=j.getParentContainer;f.dataPreview={isLoading:C.observable(!1),isVisible:C.observable(!1),title:function(){return D.getLocalization("Data Preview (First 100 Rows Displayed)","AnalyticsCoreStringId.DataPreview_Title")},template:"dxqb-data-preview",data:{value:C.observable()},okButtonText:function(){return D.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){e.model.isVisible(!1)},container:m},f.selectStatmentPreview={isLoading:C.observable(!1),isVisible:C.observable(!1),template:"dxqb-selectstatment-preview",title:function(){return D.getLocalization("Select Statement Preview","AnalyticsCoreStringId.QueryBuilder_SelectStatementPreview_Title")},data:{value:C.observable(),aceOptions:q.createDefaultSQLAceOptions(!0),aceAvailable:L.aceAvailable,additionalOptions:q.createDefaultSQLAdditionalOptions(function(e){f.selectStatmentPreview.data.value(e)}),languageHelper:q.createDefaultSQLLanguageHelper()},okButtonText:function(){return D.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){e.model.isVisible(!1)},container:m},f.parts=[{id:G.Surface,templateName:G.Surface,model:f},{id:G.Toolbar,templateName:G.Toolbar,model:f},{id:G.RightPanel,templateName:G.RightPanel,model:f},{id:G.DataPreview,templateName:G.DataPreview.split("#")[0],model:f.dataPreview},{id:G.SqlPreview,templateName:G.SqlPreview.split("#")[0],model:f.selectStatmentPreview}],f.columnDragHandler=new W.ColumnDragHandler(d,f.selection,f.undoEngine,f.snapHelper,f.dragHelperContent),f.connectionPointDragHandler=f.columnDragHandler,f.resizeHandler.handles="e, w",f.columnsLoadingMsg=function(){return D.getLocalization("Loading...","DataAccessWebStringId.QueryBuilder_ColumnsLoading")};function h(e){u(e),l({itemsProvider:t.dbSchemaProvider(),treeListController:new B.QueryBuilderTreeListController(f.undoEngine,c),selectedPath:C.observable(),pageSize:100,templateName:"dxqb-treelist-item-with-search"})}t.querySource.subscribe(function(e){h(e)}),h(t.querySource());var y,g,_,v=C.observable(355),b={editableObject:f.editableObject,properties:new V.ObjectProperties(f.editableObject,null,1),fieldListModel:{treeListOptions:l},tablesTop:v,searchPlaceholder:function(){return Q.searchPlaceholder()}},S=new F.AccordionTabInfo(c,b,f.undoEngine,p.focused,s===M.ParametersMode.ReadWrite),x=f.tabPanel;x.tabs.length=0,x.tabs.push(S),x.width(375),f.fieldDragHandler=new U.DbObjectDragDropHandler(d,f.selection,f.undoEngine,f.snapHelper,f.dragHelperContent),f.fieldListProvider=new J.QueryBuilderObjectsProvider(c,J.QueryBuilderObjectsProvider.whereClauseObjectsFilter),f.dataBindingsProvider=f.fieldListProvider,f.parametersBindingsProvider=t.parametersItemsProvider||f.dataBindingsProvider,f.dataBindingsGroupProvider=new J.QueryBuilderObjectsProvider(c,J.QueryBuilderObjectsProvider.groupByObjectsFilter),f.isLoading=Y(f.model,t.dbSchemaProvider),f.actionLists=new H.ActionLists(d,f.selection,f.undoEngine,(y=f,g=r&&r.customizeActions,_=y.model,function(e){var t=I.findFirstItemMatchesCondition(e,function(e){return"Delete"===e.text});t.imageClassName="dx-icon-dxrd-image-recycle-bin",t.imageTemplateName="dxrd-svg-operations-recycle_bin";var r=I.findFirstItemMatchesCondition(e,function(e){return"Undo"===e.text});r.disabled=C.pureComputed(function(){return y.isLoading()||!y.undoEngine().undoEnabled()});var o=I.findFirstItemMatchesCondition(e,function(e){return"Redo"===e.text});e.splice(0,e.length,t,r,o),e.push({id:N.ActionId.Save,text:"Save",displayText:function(){return D.getLocalization("Save","AnalyticsCoreStringId.MenuButtons_Save")},imageClassName:"dxqb-image-save",imageTemplateName:"dxrd-svg-menu-save",disabled:y.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"S".charCodeAt(0)},clickAction:function(){_().save()},hasSeparator:!0}),e.push({id:N.ActionId.DataPreview,text:"Preview Results",displayText:function(){return D.getLocalization("Preview Results","DataAccessUIStringId.QueryBuilderButtons_PreviewResults")},imageClassName:"dxrd-image-data-preview",imageTemplateName:"dxrd-svg-queryBuilder-data_preview",disabled:y.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"P".charCodeAt(0)},clickAction:function(){_().canSave()&&y.showPreview()},hasSeparator:!0}),e.push({id:N.ActionId.SelectStatementPreview,text:"Preview Select Statement",displayText:function(){return D.getLocalization("Preview Select Statement","AnalyticsCoreStringId.QueryBuilder_PreviewSelectStatement_Tooltip")},imageClassName:"dxrd-image-selectstatement-preview",imageTemplateName:"dxrd-svg-queryBuilder-select_statment",disabled:y.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"E".charCodeAt(0)},clickAction:function(){_().canSave()&&y.showStatement()},hasSeparator:!0}),g&&g(e)})),f.selection.focused(d()),d.subscribe(function(e){f.selection.focused(e)}),f.isLoading()||f.undoEngine&&f.undoEngine().clearHistory(),f.isLoading.subscribe(function(e){f.undoEngine&&f.undoEngine().clearHistory()}),f.editableObject.subscribe(function(e){v.notifySubscribers(null)}),A.appendStaticContextToRootViewModel(f),r&&r.beforeRender&&r.beforeRender(f),T(e).empty(),C.cleanNode(e),C.applyBindings(f,e);var P=X(T(e).find(".dxqb-designer"),f.surfaceSize,d);return d.subscribe(function(){P()}),T(window).bind("resize",function(){setTimeout(function(){return P()})}),f.tabPanel.width.subscribe(function(){P()}),f.updateSurfaceSize=function(){P()},f.updateSurface=function(){P(),v(355)},f.findControl=function(e,o){T(".dxqb-main").children(".dxrd-control").each(function(e,t){var r=T(t);r.offset().top<=o.clientY&&r.offset().left<=o.clientX&&f.selection.focused(C.dataFor(r[0]))})},f.updateSurface(),f.showPreview=function(){f.dataPreview.isLoading(!0),f.dataPreview.isVisible(!0),n.getDataPreview(t.dbSchemaProvider().connection,JSON.stringify(c().serialize(!0))).done(function(e){f.dataPreview.data.value(JSON.parse(e.dataPreviewJSON)),f.dataPreview.isLoading(!1)}).fail(function(e){f.dataPreview.isVisible(!1),$.ShowMessage($.getErrorMessage(e))})},f.showStatement=function(){f.selectStatmentPreview.isLoading(!0),f.selectStatmentPreview.isVisible(!0),n.getSelectStatement(t.dbSchemaProvider().connection,JSON.stringify(c().serialize(!0))).done(function(e){e.errorMessage&&$.ShowMessage(e.errorMessage),f.selectStatmentPreview.data.value(e.sqlSelectStatement),f.selectStatmentPreview.isLoading(!1)}).fail(function(e){f.selectStatmentPreview.isVisible(!1),$.ShowMessage($.getErrorMessage(e))})},f}t.updateQueryBuilderSurfaceContentSize=X,t.createIsLoadingFlag=Y,t.isJoinsResolvingDisabled=!1,t.createQueryBuilder=function(e,t,r,o,a){void 0===a&&(a=!1),o&&D.addCultureInfo({messages:o}),s.default({rtlEnabled:!!a}),n.registerControls();var i=[];return r&&r.customizeLocalization&&r.customizeLocalization(i),Q.resolveFromPromises(i,function(){return c(e,t,r,0,a)})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var l,u=r(2),i=r(26),p=r(24),f=r(17),m=r(20),h=r(151),y=r(0),n=(l=i.QueryElementBaseViewModel,a(s,l),s.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;var t=this.alias().substring(this.name().length+1);return t.match(new RegExp("_[0-9]+$"))&&(t=t.substring(0,t.indexOf("_"))),0<Object.keys(p.AggregationType).indexOf(t)},s.prototype.getInfo=function(){return p.columnSerializationInfo},s.prototype.isPropertyDisabled=function(e){if(this.isNotAvailable())return!0;if("sortOrder"===e)return"Unsorted"===this.sortingType();if("aggregate"===e||"alias"===e)return!this.selected();if("groupBy"!==e)return!1;var t=this.root;return this.aggregate()&&1===t.aggregatedColumnsCount()},Object.defineProperty(s.prototype,"specifics",{get:function(){return f.DBColumn.GetSpecific(this.dataType())},enumerable:!0,configurable:!0}),s);function s(e,t,r,o){var a=l.call(this,y.extend({"@ControlType":"Column"},e),r,o)||this;a.isNotAvailable=u.observable(!1),a._type=u.observable(f.DBColumnType.Unknown),a._size=u.observable(""),t.size&&a._size(t.size),t.type&&a._type(t.type),a.displayType=u.pureComputed(function(){return f.DBColumnType[a._type()]+(a._size()?"("+a._size()+")":"")}),a.dataType=u.pureComputed(function(){return f.DBColumn.GetType(a._type())}),a.actualName=u.pureComputed(function(){return a.alias()||a.name()});var i=r.getColumnConnectionPoints(a);a.rightConnectionPoint={side:u.observable(m.PointSide.East),location:i.right},a.leftConnectionPoint={side:u.observable(m.PointSide.West),location:i.left};var n=r.parentModel(),s=u.pureComputed(function(){return h.ColumnExpressionCollectionHelper.find(n.columns,r.actualName(),a.name())});a.aggregate=u.pureComputed({read:function(){return s()?s().aggregate():p.AggregationType.None},write:function(e){s()&&s().aggregate(e)}}),a.alias=u.pureComputed({read:function(){return s()?s().alias():""},write:function(e){s()&&s().alias(e||null)}});var c=u.pureComputed(function(){return h.ColumnExpressionCollectionHelper.find(n.sorting,r.actualName(),a.name())});a.sortingType=u.computed({read:function(){return c()?c().descending()?"Descending":"Ascending":"Unsorted"},write:function(e){"Unsorted"!==e?c()?c().descending("Descending"===e):h.ColumnExpressionCollectionHelper.addNew(n,n.sorting,r.actualName(),a.name()).descending("Descending"===e):c()&&h.ColumnExpressionCollectionHelper.remove(n.sorting,r.actualName(),a.name())}}),a.sortOrder=u.computed({read:function(){var e=n.sorting().indexOf(c());return e<0?void 0:e+1},write:function(e){var t,r;c()&&(e=Math.min(e,n.sorting().length),e=Math.max(e,1),t=n.sorting().indexOf(c()),r=n.sorting.splice(t,1),n.sorting.splice(e-1,0,r[0]))}});var d=u.computed(function(){return h.ColumnExpressionCollectionHelper.find(n.grouping,r.actualName(),a.name())});return a.aggregate.subscribe(function(e){var t,r=a.parentModel();e!==p.AggregationType.None?(a.groupBy(!1),a.alias()&&!a._isAliasAutoGenerated(r.actualName())||(t=a.name()+"_"+e,a.alias(h.ColumnExpressionCollectionHelper.setUniqueAlias(n.columns,t)))):a._isAliasAutoGenerated(r.actualName())&&a.alias(null)}),a.groupBy=u.computed({read:function(){return!!d()},write:function(e){e?(h.ColumnExpressionCollectionHelper.addNew(n,n.grouping,r.actualName(),a.name()),a.aggregate(p.AggregationType.None)):h.ColumnExpressionCollectionHelper.remove(n.grouping,r.actualName(),a.name())}}),a.selected=u.pureComputed({read:function(){return!!s()},write:function(e){!!s()!==e&&(e?h.ColumnExpressionCollectionHelper.addNew(n,n.columns,r.actualName(),a.name()):(h.ColumnExpressionCollectionHelper.remove(n.columns,r.actualName(),a.name()),a.groupBy(!1)))}}),a}t.ColumnViewModel=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(44);t.tableSerializationInfo=[o.name,o.alias,{propertyName:"itemType",modelName:"@ItemType"}]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(26),c=r(1),d=r(92),l=r(93),u=r(0),p=(i=s.QueryElementBaseViewModel,a(f,i),f.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},f.prototype.getInfo=function(){return l.relationSerializationInfo},f.prototype.addChild=function(e){var t=e;this.conditions&&-1===this.conditions.indexOf(t)&&(t.seriesNumber(this._getConditionNumber()),t.parentModel(this),this.conditions.push(t))},f.prototype.removeChild=function(e){var t=this.conditions().indexOf(e);-1<t&&this.conditions.splice(t,1),0===this.conditions().length&&this.parentModel().removeChild(this)},f);function f(e,t,r){var o=i.call(this,u.extend(e,{"@ControlType":"Relation","@ItemType":"Relation"}),t,r)||this;return o.parentTable=n.observable(t.getTable(o.parentTableName.peek())),o.nestedTable=n.observable(t.getTable(o.nestedTableName.peek())),o.parentTableName=n.pureComputed(function(){return o.parentTable().actualName()}),o.nestedTableName=n.pureComputed(function(){return o.nestedTable().actualName()}),o.conditions=c.deserializeArray(e.KeyColumns,function(e){return new d.JoinConditionViewModel(e,o,r)}),o}t.RelationViewModel=p},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(29),c=r(25),d=r(20),l=r(0),u=(i=s.RoutedConnectorViewModel,a(p,i),p.prototype.getControlFactory=function(){return c.controlsFactory},p.prototype.preInitProperties=function(){this.startPoint=n.observable(),this.endPoint=n.observable()},p);function p(e,t,r){var o=i.call(this,l.extend(e,{"@ControlType":"JoinCondition","@ItemType":"KeyColumn"}),t,r)||this;return o.parentColumn=n.pureComputed(function(){return t.parentTable().getColumn(o.parentColumnName())}),o.nestedColumn=n.pureComputed(function(){return t.nestedTable().getColumn(o.nestedColumnName())}),o.joinType=t.joinType,o.left=n.pureComputed(function(){return t.parentTableName()+"."+o.parentColumnName()}),o.right=n.pureComputed(function(){return t.nestedTableName()+"."+o.nestedColumnName()}),o._disposables.push(n.computed(function(){var e;o.parentColumn()&&o.nestedColumn()&&(e=d.determineConnectingPoints(o.parentColumn(),o.nestedColumn()),o.startPoint().connectingPoint(e.start),o.endPoint().connectingPoint(e.end))})),o}t.JoinConditionViewModel=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!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});var o=r(42),a=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.text},{propertyName:"_filterString",modelName:"Filter",defaultVal:""},{propertyName:"filterString",defaultVal:"",displayName:"Filter",localizationId:"DataAccessUIStringId.FiltersView_Filter",editor:o.editorTemplates.filterEditor},{propertyName:"_groupFilterString",modelName:"GroupFilter",defaultVal:""},{propertyName:"groupFilterString",defaultVal:"",displayName:"Group Filter",localizationId:"DataAccessUIStringId.FiltersView_GroupFilter",editor:o.editorTemplates.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.bool},{propertyName:"top",modelName:"@Top",displayName:"Select Top",defaultVal:0,from:a.floatFromModel,localizationId:"AnalyticsCoreStringId.QueryBuilder_SelectTop",editor:o.editorTemplates.numeric,editorOptions:{format:"#0",min:0}},{propertyName:"skip",modelName:"@Skip",displayName:"Offset",defaultVal:0,from:a.floatFromModel,localizationId:"AnalyticsCoreStringId.QueryBuilder_Offset",editor:o.editorTemplates.numeric,editorOptions:{format:"#0",min:0}},{propertyName:"distinct",modelName:"@Distinct",defaultVal:!1,from:a.parseBool,displayName:"Select distinct",localizationId:"AnalyticsCoreStringId.QueryBuilder_SelectDistinct",editor:o.editorTemplates.bool}]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=r(0),d=r(1),l=r(0),u=(i=s.SurfaceElementBase,a(p,i),p.prototype.checkParent=function(e){return!1},p.prototype.getChildrenCollection=function(){return this.tables},p.prototype.isJoined=function(e){return-1<this._joinedColumns().indexOf(e.getControlModel())},p._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}},p);function p(e,t){void 0===t&&(t=n.observable(1));var o=i.call(this,e,{measureUnit:n.observable("Pixels"),zoom:t,dpi:n.observable(100)},p._unitProperties)||this;return o.placeholder=function(){return d.getLocalization("Drop a table or view here to create a query.","AnalyticsCoreStringId.QueryBuilder_SurfacePlaceholder")},o.tables=n.observableArray(),o.relations=n.observableArray(),o.allowMultiselect=!1,o.focused=n.observable(!1),o.selected=n.observable(!1),o.underCursor=n.observable(new l.HoverInfo),o.templateName="dx-query-surface",o.rtl=n.observable(!1),o.measureUnit=o._context.measureUnit,o.dpi=o._context.dpi,(o._context=o).margins={bottom:o._bottom,left:o._left,right:o._right,top:o._top},o.zoom=t,c.createObservableArrayMapCollection(e.tables,o.tables,o._createSurface),c.createObservableArrayMapCollection(e.relations,o.relations,o._createSurface),o._joinedColumns=n.computed(function(){var r=[];return o.relations().forEach(function(e){e.conditions().forEach(function(e){var t=e.getControlModel();t.parentColumn()&&r.push(t.parentColumn()),t.nestedColumn()&&r.push(t.nestedColumn())})}),r}),o}t.QuerySurface=u},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,i=r(0),s=r(25),c=r(4),d=r(4),l=r(0),u=r(0),p=(n=i.DragDropHandler,a(f,n),f.prototype.startDrag=function(e){e&&e.name&&this._query().dbSchemaProvider.getDbTable(e.name)},f.prototype.doStopDrag=function(e,t){var r,o;this.dragHelperContent.reset(),this.selection.dropTarget&&(r=this._getAbsoluteSurfacePosition(e),this._querySurface().underCursor().x=r.left-this._querySurface().absolutePosition.x(),this._querySurface().underCursor().y=r.top-this._querySurface().absolutePosition.y(),o=this._drop(t.data,this._query()),this.addControl(o,this._querySurface(),this._size))},f.prototype.addControl=function(e,t,r){t.getControlModel().addChild(e);var o=l.findSurface(e);o&&(o.rect({left:t.underCursor().x,top:t.underCursor().y,width:r.width()}),this.selection.initialize(o))},f.getDropCallback=function(a,i){return function(e,t){var r,o=t.createChild(u.extend({"@ControlType":"Table","@Name":e.name},s.controlsFactory.controlsMap.Table.defaultVal));return o.isInitialized()?t.tryToCreateRelationsByFK(o):o.isInitialized.subscribe(function(){a().start(),t.tryToCreateRelationsByFK(o),a().end()}),i&&(r=Math.max.apply(null,t.tables.peek().filter(function(e){return e!==o}).map(function(e){return e.location.x.peek()+3*e.size.width.peek()/2}).concat([30])),o.location.x(r),o.location.y(65)),o}},f);function f(e,t,r,o,a){var i=n.call(this,e,t,r,o,a)||this;return i._undoEngine=r,i._query=function(){return i._querySurface().getControlModel()},i._querySurface=e,i.cursor="arrow",i.containment=".dxqb-designer",i.cursorAt={top:0,left:0},i.helper=function(e){n.prototype.helper.call(i,e),i.recalculateSize(c.Size.fromString("199, 123")),a.setContent(new d.Rectangle(0,0,i._size.width(),i._size.height()))},i._drop=f.getDropCallback(i._undoEngine,!1),i}t.DbObjectDragDropHandler=p},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,i=r(0),s=r(63),c=r(14),d=r(28),l=r(0),u=(n=i.DragDropHandler,a(p,n),p.prototype.startDrag=function(e){if(!(e instanceof s.ConnectingPointSurface))throw new Error("ConnectingPointDragHandler can be applied to the ConnectingPoint only.");this.startConnectingPoint=e;var t=this.startConnectingPoint.parent.getControlModel();this.newConnector=t.parentModel().createChild({"@ControlType":"RoutedConnector"}),this.newConnector.startPoint().connectingPoint(this.startConnectingPoint.getControlModel())},p.prototype.drag=function(e,t){t.position.left+=t.scroll.left,t.position.top+=t.scroll.top;var r=this._getAbsoluteSurfacePosition(t);this.newConnectorSurface.endPoint().rect({top:r.top,left:r.left})},p.prototype.doStopDrag=function(){var e,t;this.dragHelperContent.reset(),this.selection.dropTarget&&((e=this.selection.dropTarget.getControlModel())instanceof d.ConnectingPointViewModel?this.newConnector.endPoint().connectingPoint(e):e instanceof c.DiagramElementViewModel&&(t=e.connectingPoints(),this.newConnector.endPoint().connectingPoint(t[0])),this.selection.initialize(this.newConnectorSurface))},Object.defineProperty(p.prototype,"newConnectorSurface",{get:function(){return this.newConnector&&l.findSurface(this.newConnector)},enumerable:!0,configurable:!0}),p);function p(e,t,r,o,a){var i=n.call(this,e,t,r,o,a)||this;return i.startConnectingPoint=null,i.newConnector=null,i.cursor="arrow",i.containment=".dxrd-ghost-container",i.helper=function(e){a.update(e)},i}t.ConnectingPointDragHandler=u},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(27),c=r(21),d=(i=s.DiagramElementBaseSurface,a(l,i),l);function l(e,t){var r=i.call(this,e,t,null)||this;return r.template="dxdd-connector",r.selectiontemplate="dxdd-connector-selection",r.startPoint=n.pureComputed(function(){return new c.ConnectionPointSurface(e.startPoint(),t)}),r.endPoint=n.pureComputed(function(){return new c.ConnectionPointSurface(e.endPoint(),t)}),r}t.ConnectorSurface=d},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,i=r(0),s=r(21),c=r(28),d=r(14),l=(n=i.DragDropHandler,a(u,n),u.prototype.startDrag=function(e){if(!(e instanceof s.ConnectionPointSurface))throw new Error("ConnectionPointDragHandler can be applied to the ConnectionPoint only.");this.currentConnectionPoint=e},u.prototype.drag=function(e,t){t.position.left+=t.scroll.left,t.position.top+=t.scroll.top;var r=this._getAbsoluteSurfacePosition(t);this.currentConnectionPoint.rect({top:r.top,left:r.left})},u.prototype.doStopDrag=function(){var e,t,r;this.dragHelperContent.reset(),this.selection.dropTarget&&((e=this.selection.dropTarget.getControlModel())instanceof c.ConnectingPointViewModel?(t=this.currentConnectionPoint.parent.getControlModel(),this.currentConnectionPoint.getControlModel()===t.startPoint()?t.startPoint().connectingPoint(e):t.endPoint().connectingPoint(e)):e instanceof d.DiagramElementViewModel&&(t=this.currentConnectionPoint.parent.getControlModel(),r=e.connectingPoints(),this.currentConnectionPoint.getControlModel()===t.startPoint()?t.startPoint().connectingPoint(r[0]):t.endPoint().connectingPoint(r[0])))},u);function u(e,t,r,o,a){var i=n.call(this,e,t,r,o,a)||this;return i.currentConnectionPoint=null,i.cursor="arrow",i.containment=".dxrd-ghost-container",i.helper=function(e){a.update(e)},i}t.ConnectionPointDragHandler=l},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(1),d=r(101),l=r(9),u=r(0),p=r(0),f=r(1),m=r(0),h=(i=c.Disposable,a(y,i),y.prototype._getDBSchema=function(e){return this._getDBSchemaCallback(this.connection,e)},y.prototype._getDBSchemaCallback=function(e,t){return d.getDBSchemaCallback(this._requestWrapper,e,t)},y.prototype._getDBStoredProcedures=function(e){return d.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(r){var o,a=this;return this._tables[r]||(o=s.Deferred(),this._tables[r]=o.promise(),this.getDbSchema().done(function(e){var t=u.findFirstItemMatchesCondition(e.tables,function(e){return e.name===r});t?0<t.columns.length?o.resolve(t):a._tableRequests.push({table:t,deferred:o}):(o.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"),r))}).fail(function(){return o.reject()})),this._tables[r]},y);function y(e,t){void 0===t&&(t=new l.RequestWrapper);var r=i.call(this)||this;return r._requestWrapper=t,r._tables={},r._tableRequests=n.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(n.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=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(3),i=r(102),n=r(0),s=r(0),c=r(1);t.getDBSchemaCallback=function(e,t,r){var o=a.Deferred();return e.getDbSchema(t,r).done(function(e){o.resolve(new i.DBSchema(JSON.parse(e.dbSchemaJSON)))}).fail(function(e){n.ShowMessage(s.formatUnicorn(c.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),n.getErrorMessage(e))),o.reject()}),o.promise()},t.getDBStoredProceduresCallback=function(e,t){var r=a.Deferred();return e.getDbStoredProcedures(t).done(function(e){r.resolve(new i.DBSchema(JSON.parse(e.dbSchemaJSON)).procedures)}).fail(function(e){n.ShowMessage(s.formatUnicorn(c.getLocalization("Stored procedures loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),n.getErrorMessage(e))),r.reject()}),r.promise()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){var t=n.deserializeToCollection(e.Tables,function(e){return new a.DBTable(e)});t.sort(function(e,t){return e.name.localeCompare(t.name)});var r=n.deserializeToCollection(e.Views,function(e){return new a.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)})}var a=r(103),i=r(68),n=r(18);t.DBSchema=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){this.name=e.Name,this.isView="true"===e.IsView||!0===e.IsView,this.columns=n.deserializeToCollection(e.columns,function(e){return new a.DBColumn(e)}),this.foreignKeys=n.deserializeToCollection(e.foreignKeys,function(e){return new i.DBForeignKey(e)})}var a=r(17),i=r(104),n=r(18);t.DBTable=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){this.name=e.Name,this.primaryKeyTable=e.PrimaryKeyTable,this.columns=e.Columns,this.primaryKeyColumns=e.PrimaryKeyTableKeyColumns}t.DBForeignKey=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),a=[{propertyName:"tableName",modelName:"@Name"},{propertyName:"columns",modelName:"Fields",array:!0,info:[{propertyName:"name",modelName:"@Name"},{propertyName:"propertyType",modelName:"@Type"}]}],i=(n.prototype.getInfo=function(){return a},n);function n(e,t){(t=t||new o.ModelSerializer).deserialize(this,e)}t.ResultTable=i},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(1),c=r(1),d=r(72),l=r(71),u=(i=s.Disposable,a(p,i),p.from=function(e,t){return new p(e||{},t)},p.toJson=function(e,t,r){return t.serialize(e,f,r)},p.prototype.getInfo=function(){return f},p.prototype.serialize=function(e){return void 0===e&&(e=!1),e?{Source:this.serialize()}:(new c.ModelSerializer).serialize(this)},p.prototype.resetSource=function(){this.sourceType(""),this.json(""),this.uri("")},p._URIJSONSOURCE_TYPE="DevExpress.DataAccess.Json.UriJsonSource",p._CUSTOMJSONSOURCE_TYPE="DevExpress.DataAccess.Json.CustomJsonSource",p);function p(e,r){void 0===e&&(e={});var t=i.call(this)||this;function o(e,t){return e&&Array.isArray(e[d.JsonParameterType[t]])&&e[d.JsonParameterType[t]]&&(e=e[d.JsonParameterType[t]]),s.deserializeArray(e,function(e){return e["@ItemType"]||(e["@ItemType"]=d.JsonParameterType[t]),new d.JsonParameter(e,r)})}return t.sourceType=n.observable(),t.uri=n.observable(),t.json=n.observable(),(r=r||new c.ModelSerializer).deserialize(t,e),t._disposables.push(t.uri.subscribe(function(e){e&&t.sourceType(p._URIJSONSOURCE_TYPE)})),t._disposables.push(t.json.subscribe(function(e){e&&t.sourceType(p._CUSTOMJSONSOURCE_TYPE)})),t.queryParameters=o(e.QueryParameters,d.JsonParameterType.QueryParameter),t.headers=o(e.Headers,d.JsonParameterType.Header),t.pathParameters=o(e.PathParameters,d.JsonParameterType.PathParameter),t}t.JsonSource=u;var f=[{propertyName:"sourceType",modelName:"@SourceType",defaultVal:""},{propertyName:"json",modelName:"@Json",defaultVal:""},{propertyName:"uri",modelName:"@Uri",defaultVal:""},{propertyName:"authenticationInfo",modelName:"AuthenticationInfo",from:l.JsonAuthenticationInfo.from,toJsonObject:l.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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(3),s=r(1),c=r(9),d=r(108),l=(i=s.Disposable,a(u,i),u.prototype.reset=function(){this._jsonSchemaPromise=null},u.prototype.mapToDataMemberContract=function(e){return n.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}}})},u.prototype.getSchemaByPath=function(t,e){if(t.fullPath){for(var r=e.nodes,o=0;o<t.pathParts.length;o++){var a=(r||[]).filter(function(e){return e.name()==t.pathParts[o]})[0];if(!a)return[];r=a.nodes}return this.mapToDataMemberContract(r)}return this.mapToDataMemberContract(e.nodes)},u.prototype.getJsonSchema=function(e){return void 0===e&&(e=[]),this._jsonSchemaPromise&&"rejected"!==this._jsonSchemaPromise.state()||(this._jsonSchemaPromise=d.getJsonSchemaCallback(this._requestWrapper,this._jsonDataSource,e)),this._jsonSchemaPromise},u);function u(e,t){void 0===t&&(t=new c.RequestWrapper);var a=i.call(this)||this;return a._requestWrapper=t,a._jsonDataSource=e,a._disposables.push(a._jsonDataSource.source.sourceType.subscribe(function(){a._jsonSchemaPromise=null})),a.getItems=function(r){var o=n.Deferred();return(a._jsonSchema?n.Deferred().resolve(a._jsonSchema).promise():a.getJsonSchema()).done(function(e){a._jsonSchema=e;var t=a.getSchemaByPath(r,e);o.resolve(t)}).fail(o.reject),o.promise()},a}t.JsonSchemaProvider=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r){void 0===r&&(r=[]);var o=a.Deferred();return e.getJsonSchema(t,r).done(function(e){try{var t=JSON.parse(e.jsonSchemaJSON),r=new i.JsonSchemaRootNode(t);o.resolve(r)}finally{"pending"===o.state()&&o.reject()}}).fail(function(e){n.ShowMessage(s.formatUnicorn(c.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),n.getErrorMessage(e))),o.reject()}),o.promise()}var a=r(3),i=r(49),n=r(0),s=r(0),c=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});var o=r(2),a=r(1),i=r(1),n=[{propertyName:"closeConnection",modelName:"@CloseConnection",from:a.parseBool},{propertyName:"commandTimeout",modelName:"@DbCommandTimeout",from:function(e){var t=parseInt(e);return isNaN(t)&&(t=null),o.observable(t)},defaultVal:null}],s=(c.prototype.getInfo=function(){return n},c);function c(e,t){this.closeConnection=o.observable(!0),this.commandTimeout=o.observable(null),(t=t||new i.ModelSerializer).deserialize(this,e)}t.ConnectionOptions=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(8);t.expressionFunctions=o.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=[{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=[{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});var o=r(2),a=r(1),i=r(1),n=(s.from=function(e,t){return new s(e,t)},s.toJson=function(e,t,r){return t.serialize(e,c,r)},s.prototype.getInfo=function(){return c},s);function s(e,t){this.name=o.observable(),this.parameteres=o.observable(),this.fromAppConfig=o.observable(!0),(t=t||new a.ModelSerializer).deserialize(this,e)}t.SqlDataConnection=n;var c=[{propertyName:"name",modelName:"@Name"},{propertyName:"parameteres",modelName:"Parameters"},{propertyName:"fromAppConfig",modelName:"@FromAppConfig",defaultVal:!1,from:i.parseBool}]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(113),s=r(70),c=r(1),d=r(10),l=r(30),u=r(32),p=r(33),f=r(1),m=r(9),h=r(51),y=r(109),g=r(100),_=r(0),v=[{propertyName:"name",modelName:"@Name"},{propertyName:"connection",modelName:"Connection",from:n.SqlDataConnection.from,toJsonObject:n.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"}],b=(i=c.Disposable,a(S,i),S.prototype.getInfo=function(){return v},S.prototype.createQuery=function(e,t){if(e["@Type"]===d.SqlQueryType.customSqlQuery)return new l.CustomSqlQuery(e,this,t);if(e["@Type"]===d.SqlQueryType.tableQuery)return new u.TableQuery(e,this,t);if(e["@Type"]===d.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=i.call(this)||this;(t=t||new f.ModelSerializer).deserialize(o,_.extend(e,{"@ItemType":"SqlDataSource"}));var a=o._model.Name;return a&&(o.name()||o.name(a),delete o._model.Name),o.queries=c.deserializeArray(e.Queries,function(e){return o.createQuery(e,t)}),o.relations=c.deserializeArray(e.Relations,function(e){return new h.MasterDetailRelation(e,t)}),o.connection&&e.ConnectionOptions&&(o.connection.options=new y.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=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!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=[{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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(37),s=(i=n.PageFactory,a(c,i),c.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="")},c);function c(){return null!==i&&i.apply(this,arguments)||this}t.WizardPageSectionFactory=s},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(1),d=r(74),l=r(119),u=r(1),p=r(15),f=r(13),m=(i=c.Disposable,a(h,i),h.prototype.dispose=function(){i.prototype.dispose.call(this),this.sections.forEach(function(e){return e.resetPage()}),this.sections=[]},h.prototype._createLoadingState=function(e){var t=this;e[h.__loadingStateFunctionName]||(e[h.__loadingStateFunctionName]=function(e){return t._loadingState(e)})},h.prototype._createNextAction=function(e){var t=this;e[p.BaseWizard.__nextActionFunctionName]||(e[p.BaseWizard.__nextActionFunctionName]=function(){return t._extendedNextAction()})},h.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))},h.prototype._extendedNextAction=function(){},h.prototype._resetPageById=function(e){this.getPageById(e).resetPage()},h.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new l.WizardPageSectionIterator(e,t,function(e){return r._resetPageById(e)})}),this.events.call("beforeInitialize",{wizard:this,state:e}),this.stateManager=new d.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 l.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})},h.prototype._canNext=function(e){var t=!this.isLoading()&&e&&e.page&&this.pageFactory.getMetadata(e.pageId);return t&&t.canNext(e.page)},h.prototype._canFinish=function(e){return!this.isLoading()&&e&&this.pageFactory.getMetadata(e.pageId).canFinish(e.page)},h.prototype._initPage=function(e,t){var r=this;if(void 0===t&&(t=!1),this._createNextAction(e.page),!e.onChange)throw Error("Page with id "+e.pageId+" cannot be used in AutoNavigation, because it does not have method OnChange");return e.onChange(function(){r._changeTimeout&&clearTimeout(r._changeTimeout),r._changeTimeout=setTimeout(function(){r._nextAction(e)},100)}),e.initialize(this.stateManager.getPageState(e.pageId),t).always(function(){return r._loadingState(!1)})},h.prototype.getPageById=function(t){return this.sections.filter(function(e){return e.pageId===t})[0]},h.prototype.start=function(){var t=this;this.events.call("beforeStart",{wizard:this}),this._loadingState(!0);var r=this.iterator.getStartPage();this.events.call("beforePageInitialize",f._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",f._createPageEventArgs(r,t)),t._nextAction(r)})},h.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()},h.prototype._nextAction=function(r,t){var o=this;if(void 0===t&&(t=!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||t?(o.stateManager.setPageState(r.pageId,e),o.iterator.getNextPage(r.pageId).done(function(e){e&&0<e.length?e.forEach(function(e){var t=o.getPageById(e.pageId),e=t&&t.page()||e;o.events.call("beforePageInitialize",f._createBeforeInitializePageEventArgs(e,o)),o._initPage(e,!!t.page()).done(function(){o.getPageById(e.pageId).setPage(e),o.events.call("afterPageInitialize",f._createPageEventArgs(e,o)),o._nextAction(e,r.isChanged)})}):o._loadingState(!1),r.isChanged=!1}).fail(function(){return o._loadingState(!1)})):o._loadingState(!1)}).fail(function(){return o._loadingState(!1)})},h.__loadingStateFunctionName="__loadingState",h);function h(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=n.observable(!1),t&&(o._loadingState=t),r&&(o._extendedNextAction=r),o._disposables.push(o.events),o}t.WizardPageProcessor=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),a=r(3),i=r(120),n=(s.prototype.resetPage=function(){this.page()&&this.page().dispose(),this.page(null)},s.prototype.setPage=function(e){this.page()!==e&&this.page(e)},s);function s(e,t){this.pageId=e,this.metadata=t,this.page=o.observable(null)}t.WizardPageSection=n;var c=(d.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)},d.prototype._tryResetPageByMetadata=function(e){return!!this.pageFactory.getMetadata(e).recreate&&(this._resetPage(e),!0)},d.prototype._resetPage=function(e){this.stateManager.resetPageState(e),this._resetPageCallback(e);var t=this._getPage(e);t&&(t.dispose(),this._pages.splice(this._pages.indexOf(t),1))},d.prototype._createNewPage=function(e){var t=this.pageFactory.getMetadata(e);return new i.WrappedWizardPageSection(e,t.create(),t)},d.prototype._getPage=function(t){return this._pages.filter(function(e){return e.pageId===t})[0]},d.prototype._getNextPage=function(e){var r=this;return a.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()},d.prototype._getPageIndex=function(t){return this._pagesIds.indexOf(this._pagesIds.filter(function(e){return e.some(function(e){return e===t})})[0])},d.prototype.resetNextPages=function(e){this._resetPages(this._getPageIndex(e)+1)},d.prototype.getStartPage=function(){var e=this.getNextPageId(),t=this.pageFactory.getMetadata(e),r=new i.WrappedWizardPageSection(e,t.create(),t);return this._pagesIds.push([e]),r},d.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),a.Deferred().reject().promise())},d.prototype.getCurrentState=function(){return this.stateManager.getCurrentState()},d.prototype.getNextPageId=function(e){return""},d);function d(e,t,r){this.pageFactory=e,this.stateManager=t,this._resetPageCallback=r,this._pagesIds=[],this._pages=[]}t.WizardPageSectionIterator=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(6),s=(i=n._WrappedWizardPage,a(c,i),c);function c(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=s},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(10),d=r(1),l=r(53),u=r(8),p=r(1),f=r(30),m=r(0),h=(i=d.Disposable,a(y,i),y.prototype.setQuery=function(t,e){var r=this;return this._query()!==t&&t.type()===c.SqlQueryType.tableQuery?(e&&e(!0),this._sqlTextProvider.getQuerySqlText(t).done(function(e){e.errorMessage&&m.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:!0,configurable:!0}),y);function y(e,t){var r=i.call(this)||this;return r._tableQueryString=n.observable(""),r._query=n.observable(),r._needToCustomizeParameters=n.pureComputed(function(){return r._query()&&(r._query().type()===c.SqlQueryType.customSqlQuery||0<r._query().parameters().length)}),r.template="dxrd-select-control",r.aceOptions=l.createDefaultSQLAceOptions(),r.additionalOptions=l.createDefaultSQLAdditionalOptions(function(e){r.sqlString(e)}),r.aceAvailable=u.aceAvailable,r.languageHelper=l.createDefaultSQLLanguageHelper(),r.caption=function(){return p.getLocalization("SQL string:","DataAccessUIStringId.QueryControl_SqlString")},r.sqlString=n.pureComputed({read:function(){return r._query()&&r._query().type()===c.SqlQueryType.customSqlQuery?r._query().sqlString():r._tableQueryString()},write:function(e){var t;r._query().type()!==c.SqlQueryType.customSqlQuery?((t=new f.CustomSqlQuery({"@Name":r._query().name()},r._query().parent)).parameters(r._query().parameters()),t.sqlString(e),r._query(t)):r._query().sqlString(e)}}),r.isNextDisabled=n.pureComputed(function(){return!r.sqlString()||!r._needToCustomizeParameters()}),r.isFinishDisabled=n.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=h},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(9),l=r(80),u=r(81),p=r(22),f=r(52),m=r(5),h=r(1),y=(i=c.WizardPageBase,a(g,i),g.prototype.canNext=function(){return!!this._selectedTypeName},g.prototype.canFinish=function(){return!1},g.prototype.commit=function(){return s.Deferred().resolve({selectedType:this._selectedTypeName,selectedObjectType:this._chooseObjectType.selectedType(),ctor:this._chooseObjectType.selectedCtor()}).promise()},g.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,f.ObjectDataMember.empty())}),t._types(e.types||[]),0<e.types.length&&t._chooseObjectType.selectedPath(e.types[0].name)}),s.Deferred().resolve().promise()},Object.defineProperty(g.prototype,"_selectedTypeName",{get:function(){return this._chooseObjectType.selectedType()?this._chooseObjectType.selectedType().name:null},enumerable:!0,configurable:!0}),g);function g(e){void 0===e&&(e=new d.RequestWrapper);var t=i.call(this)||this;return t._requestWrapper=e,t._objectDataSource=new p.ObjectDataSource,t._types=n.observableArray([]),t._disposables.push(t._provider=new l.ObjectSchemaProvider(t._requestWrapper),t._chooseObjectType=new u.ChooseObjectTypes(t._types,t._provider)),t}t.ChooseObjectDataSourceTypesPage=y,t._registerChooseObjectDataSourceTypesPage=function(e,t){e.registerMetadata(m.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:h.getLocalization("Choose the type and its constructor.","AnalyticsCoreStringId.ObjectDSWizard_ChooseType_Description"),template:"dxrd-page-objectdatasource-types"})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(9),l=r(82),u=r(22),p=r(5),f=r(1),m=(i=c.WizardPageBase,a(h,i),h.prototype.initialize=function(e){return this._objectDataSource.setState(e),this._type(e.selectedObjectType),this._ctor(e.ctor),s.Deferred().resolve().promise()},h.prototype.canNext=function(){return!!this._needParametersPage},h.prototype.canFinish=function(){return!this._needParametersPage},h.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(h.prototype,"_selectedDataMember",{get:function(){var e=this._chooseObjectDataMember.selectedDataMembers();return e?e[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"_needParametersPage",{get:function(){return!!this._selectedDataMember&&0<this._selectedDataMember.parameters.length||!!this._ctor()&&0<this._ctor().parameters.length},enumerable:!0,configurable:!0}),h);function h(e){void 0===e&&(e=new d.RequestWrapper);var t=i.call(this)||this;return t._requestWrapper=e,t._objectDataSource=new u.ObjectDataSource,t._type=n.observable(),t._ctor=n.observable(),t._disposables.push(t._chooseObjectDataMember=new l.ChooseObjectDataMembers(t._type,t._ctor)),t}t.ChooseObjectDataSourceDataMembersPage=m,t._registerChooseObjectDataSourceDataMembersPage=function(e,t){e.registerMetadata(p.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 m(t.requestWrapper)},description:f.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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(13),l=r(1),u=(i=c.WizardPageBase,a(p,i),p.prototype.canNext=function(){return 0!==this.selectedItems().length||this.selectedOperation().createNew},p.prototype.initialize=function(e){var t=this._getSelectedItem(e);return this.selectedItems(t?[t]:[]),s.Deferred().resolve(this).promise()},p.prototype._displayExpr=function(e){return e.description||e.name},p.prototype._getSelectedItem=function(e){return this.items()[0]},Object.defineProperty(p.prototype,"createNewOperationText",{get:function(){return l.getLocalization("No, I'd like to create a new data source","AnalyticsCoreStringId.Wizard_CreateNewDataSource")},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"existingOperationText",{get:function(){return l.getLocalization("Yes, let me choose an existing data source from the list","AnalyticsCoreStringId.Wizard_ChooseDataSourceFromList")},enumerable:!0,configurable:!0}),p);function p(e,t){var r;void 0===t&&(t=!0);var o=i.call(this)||this;return o.items=e,o.selectedItems=n.observableArray([]),o.operations=[{text:o.existingOperationText,createNew:!1},{text:o.createNewOperationText,createNew:!0}],o.selectedOperation=n.observable(o.operations[0]),o._createNew=n.pureComputed(function(){return o.selectedOperation().createNew}),o.canCreateNew=n.observable(t),(r=o._disposables).push.apply(r,d.subscribeProperties([o.selectedOperation,o.selectedItems],function(){return o._onChange()})),o}t.ChooseAvailableItemPage=u},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(3),s=r(55),c=r(9),d=r(39),l=r(5),u=r(1),p=(i=s.ChooseJsonConnectionPage,a(f,i),f.prototype.commit=function(){var t=n.Deferred(),e=this._createNew()?this._specifySourceData.commit():i.prototype.commit.call(this);return e.done(function(e){t.resolve(e)}),t.promise()},f.prototype.canNext=function(){return this._createNew()?this._specifySourceData.canNext():i.prototype.canNext.call(this)},f.prototype.initialize=function(e){var t=this,r=n.Deferred();return i.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 c.RequestWrapper);var a=i.call(this,e,t)||this;return a._requestWrapper=o,a._disposables.push(a._specifySourceData=new d.ChooseJsonSourcePage(o,r)),a._specifySourceData.onChange(function(){return a._onChange()}),a}t.SpecifyJsonConnectionPage=p,t._registerSpecifyJsonConnectionPage=function(e,t,r,o){e.registerMetadata(l.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";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterTypeToPropertyMap={PathParameter:"pathParameters",QueryParameter:"queryParameters",Header:"headers"}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(7),c=r(0),d=r(1),l=r(8),u=r(83),p=(i=s.Editor,a(f,i),f.prototype.uploadFile=function(e){var r=this;e&&e.event&&(e.event.stopPropagation(),e.event.preventDefault()),c.uploadFile({accept:".json,.txt"}).done(function(e){var t=atob(e.content);0===t.indexOf("")&&(t=t.substr("".length)),r.value(t)})},f.prototype.getUploadTitle=function(){return d.getLocalization("Upload JSON File","AnalyticsCoreStringId.UploadJsonFile_Title")},f);function f(e,t,r,o){var a=i.call(this,e,t,r,o)||this;return a.aceEditorHasErrors=n.observable(!1),a.aceAvailable=l.aceAvailable,a.editorContainer=n.observable(),a.languageHelper={getLanguageMode:function(){return"ace/mode/json"},createCompleters:function(){return[]}},a.aceOptions={showLineNumbers:!1,highlightActiveLine:!1,showPrintMargin:!1,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0},a.isValid=n.computed(function(){return a._model()&&a._model().isValid()}),a.additionalOptions={onChangeAnnotation:function(e){var t=e&&e.getAnnotations()||[];a._model()&&a._model().aceEditorHasErrors&&a._model().aceEditorHasErrors(0<t.filter(function(e){return"error"===e.type||"warning"===e.type}).length)},onBlur:function(){var e=a.editorContainer();e&&a.value(e.getValue())}},a.jsonStringValidationRules=[{type:"custom",reevaluate:!0,validationCallback:function(e){return a.isValid()},get message(){return u.getLocalizedValidationErrorMessage(d.getLocalization("The value cannot be empty and should have a valid format.","AnalyticsCoreStringId.ValueIsRequiredOrInvalidFormat_Error"),d.getLocalization("JSON String:","DataAccessUIStringId.WizardPageChooseJsonSource_Custom"))}}],a}t.JsonStringEditor=p},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(129),s=(i=n.TreeNodeItemsProvider,a(c,i),c.prototype._getDefaultTreeNodeCheckState=function(e){return e.isSelected},c.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}},c);function c(e,t,r,o){return i.call(this,e,t,r,o)||this}t.JsonTreeNodeItemsProvider=s},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),l=r(3),s=r(1),c=r(40),u=r(1),p=r(0),d=(i=s.Disposable,a(f,i),f.prototype._createTree=function(){var t=this;return this._fullTreeLoaded?l.Deferred().resolve().promise():l.when.apply(l,this._rootItems().map(function(e){return t.getItems(new u.PathRequest(e.path),!0)})).always(function(){return t._fullTreeLoaded=!0})},f.prototype._createTreePart=function(t,r,e){var o=this;if(void 0===r&&(r=l.Deferred()),this._fullTreeLoaded)return r.resolve().promise();if(0===t.length)return r.resolve();if(!e){r=l.Deferred();return 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}var a=[].concat([],e,t[0]),i=new u.PathRequest(a.join("."),a);this._getParentNode(i)?this._createTreePart(t.slice(1),r,a):this.getItems(new u.PathRequest(e.join("."),e)).done(function(e){o._createTreePart(t.slice(1),r,a)}).fail(function(){return r.reject()})},f.prototype._setChecked=function(e){var t=this;e.setChecked(!0),e instanceof c.DataMemberTreeNode&&e.children().forEach(function(e){return t._setChecked(e)})},f.prototype.selectAllItems=function(e){var t=this;void 0===e&&(e=!0);var r=l.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()},f.prototype.selectItemsByPath=function(e){var t=this,r=l.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 c.TreeNodeBase&&e.setChecked(!0)})}).always(function(){return r.resolve()})}),r.promise()},f.prototype.selectItemByPath=function(e){var t=this,o=l.Deferred(),a=e.split(".");return this._createTreePart(a).done(function(){var r=a.pop();t.getItems(new u.PathRequest(a.join("."),a)).done(function(e){var t=e.filter(function(e){return e.name===r})[0];t instanceof c.TreeNodeBase&&t.setChecked(!0)}).always(function(){return o.resolve()})}),o.promise()},f.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 p.isList(e)&&e.path==r})[0]}return e}},f.prototype._getDefaultTreeNodeCheckState=function(e){return!1},f);function f(e,t,s,c){var d=i.call(this)||this;return d._fullTreeLoaded=!1,d._rootItems=n.observableArray([]),d._checkedRootNodesCount=n.computed(function(){if(!d._rootItems||0===d._rootItems().length)return 0;for(var e=0,t=0;t<d._rootItems().length&&e<1;t++)e+=d._rootItems()[t].unChecked()?0:1;return e}),d.hasCheckedItems=n.computed(function(){return!(0===d._checkedRootNodesCount())}),d.getRootItems=function(){return d._rootItems()},d.getItems=function(a,i){void 0===i&&(i=!1);var n=l.Deferred();return a.fullPath||0!==a.pathParts.length?e.getItems(a).done(function(e){var r,o,t=d._getParentNode(a);if(!t)return n.reject();0===t.children().length?(r=[],o=[],e.forEach(function(e){var t=d._getDefaultTreeNodeCheckState(e);p.isList(e)?a.pathParts.length<=5&&(o.push([].concat(a.fullPath.split("."),[e.name])),r.push(s(e,t,[a.fullPath,e.name].join(".")))):r.push(c(e,t,[a.fullPath,e.name].join(".")))}),t.initializeChildren(r),i?l.when.apply(l,o.map(function(e){return d.getItems(new u.PathRequest(e.join("."),e),i)})).always(function(){return n.resolve(r)}):n.resolve(r)):n.resolve(t.children())}):n.resolve(d._rootItems()),n.promise()},d._disposables.push(t.subscribe(function(e){d._fullTreeLoaded=!1,d._rootItems(e.map(function(e){var t=d._getDefaultTreeNodeCheckState(e);return s(e,t,e.name)}))})),d._disposables.push(d.hasCheckedItems),d}t.TreeNodeItemsProvider=d},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(3),c=r(6),d=r(12),l=r(23),u=r(11),p=r(0),f=r(7),m=r(10),h=r(1),y=r(5),g=(i=c.WizardPageBase,a(_,i),_.prototype._isParametersValid=function(){return this.getParameters().every(function(e){return e.isValid()})},_.prototype.canNext=function(){return!1},_.prototype.canFinish=function(){return this._isParametersValid()},_.prototype.getParameters=function(){return this.parametersEditorOptions.values()()},_.prototype.initialize=function(e){var t=this;return this._sqlDataSourceWrapper=d._restoreSqlDataSourceFromState(e,this._requestWrapper),this.parametersEditorOptions.hideButtons(this._sqlDataSourceWrapper.sqlQuery.type()===m.SqlQueryType.storedProcQuery),setTimeout(function(){t.parametersEditorOptions.values(n.observableArray(t._sqlDataSourceWrapper.sqlQuery.parameters().map(function(e){return t.parametersConverter.createParameterViewModel(e)})))},100),s.Deferred().resolve().promise()},_.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()},_);function _(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 l._SqlDataSourceWrapper(void 0,void 0,r._requestWrapper),r.removeButtonTitle=h.getLocalization("Remove","DataAccessUIStringId.Button_Remove"),r.parametersEditorOptions={addHandler:function(){return r.parametersConverter.createParameterViewModel(new u.DataSourceParameter({"@Name":p.getUniqueNameForNamedObjectsArray(r.parametersEditorOptions.values.peek().peek(),"param"),"@Type":"System.Int32"}))},values:n.observable(n.observableArray([])),displayName:"Parameters",level:0,info:n.observable({displayName:"Parameters",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Parameters",propertyName:"parameters",modelName:"Parameter",array:!0,editor:f.editorTemplates.commonCollection,template:"#dxrd-parameter-collection-item"}),editorTemplate:"#dxrd-wizard-datasource-parameters",hideButtons:n.observable(!1),collapsed:!1},r}t.ConfigureQueryParametersPage=g,t._registerConfigureParametersPage=function(e,t,r){e.registerMetadata(y.SqlDataSourceWizardPageId.ConfigureParametersPage,{create:function(){return new g(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:h.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters")})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(r,a,e,t,i){var n=this;this._callBack=s.observable({deleteAction:function(t){n._customQueries.remove(d.findFirstItemMatchesCondition(n._customQueries(),function(e){return(e.name()||e.generateName())===t}))},showQbCallBack:null,disableCustomSql:!1}),this._checkedRootNodesCount=s.pureComputed(function(){for(var e=0,t=0;t<n._rootItems.length&&e<2;t++)e+=n._rootItems[t].countChecked();return e}),this.hasCheckedItems=s.pureComputed(function(){return!(0===n._checkedRootNodesCount())}),this.nextButtonDisabled=s.pureComputed(function(){return!(1<n._checkedRootNodesCount())&&!n.hasParametersToEdit()}),this.hasParametersToEdit=s.pureComputed(function(){for(var e=0;e<n._rootItems.length;e++)if(n._rootItems[e].hasParamsToEdit&&n._rootItems[e].hasParamsToEdit())return!0;return!1}),this.tables=function(){return n._tables},this.views=function(){return n._views},this.procedures=function(){return n._procedures},this.queries=function(){return n._queries},this.customQueries=function(){return n._customQueries},this._callBack().showQbCallBack=e,this._callBack().disableCustomSql=t,this._tables=new l.TreeNode("tables",u.getLocalization("Tables","DataAccessStringId.ConfigureMultiQueryPage_TableCategory"),"list",!1,i),this._views=new l.TreeNode("views",u.getLocalization("Views","DataAccessStringId.ConfigureMultiQueryPage_ViewCategory"),"list",!1,i),this._procedures=new l.ParameterTreeNode("procedures",u.getLocalization("Stored Procedures","DataAccessStringId.ConfigureMultiQueryPage_SpCategory"),"list",!1,i),this._queries=new l.QueriesTreeNode("queries",u.getLocalization("Queries","DataAccessStringId.ConfigureMultiQueryPage_QueryCategory"),"list",!1,this._callBack,i),this._rootItems=[this._tables,this._views,this._procedures,this._queries],this.getItems=function(e){var t,o=c.Deferred();return e.fullPath?"tables"===e.fullPath?r.getDbSchema().done(function(e){var t;0===n._tables.children().length?(t=[],e.tables.forEach(function(e){e.isView||t.push(new l.TreeNode(e.name,e.name,"table",n._tables.checked.peek(),i))}),n._tables.initializeChildren(t),o.resolve(t)):o.resolve(n._tables.children())}).fail(o.reject):"views"===e.fullPath?r.getDbSchema().done(function(e){var t;0===n._views.children().length?(t=[],e.tables.forEach(function(e){e.isView&&t.push(new l.TreeNode(e.name,e.name,"view",n._views.checked.peek(),i))}),n._views.initializeChildren(t),o.resolve(t)):o.resolve(n._views.children())}).fail(o.reject):"procedures"===e.fullPath?r.getDbStoredProcedures().done(function(e){var t;0===n._procedures.children().length?(t=e.map(function(e){return new l.TreeLeafNode(e.name,p.StoredProceduresQueryControl.generateStoredProcedureDisplayName(e),"procedure",n._procedures.checked.peek(),e.arguments,i)}),n._procedures.initializeChildren(t),o.resolve(t)):o.resolve(n._procedures.children())}).fail(o.reject):"queries"===e.fullPath?(t=a().map(function(t){var e=t.name()||t.generateName(),r=n._queries.children().filter(function(e){return e.query===t})[0];if(r)return r;var o=new l.TreeQueryNode(e,e,"query",!!r&&r.checked(),t.parameters,n._callBack,i,t);return o.setObservableName(s.computed({read:function(){return t.name()||t.generateName()},write:function(e){return t.name(e)}})),o}),n._queries.initializeChildren(t),o.resolve(t)):r.getDbTable(e.path).done(function(t){var e,r=t.isView?d.findFirstItemMatchesCondition(n._views.children(),function(e){return e.name===t.name}):d.findFirstItemMatchesCondition(n._tables.children(),function(e){return e.name===t.name});0===r.children().length?(e=t.columns.map(function(e){return new l.TreeLeafNode(e.name,e.name,"column",r.checked.peek(),null,i)}),r.initializeChildren(e),o.resolve(e)):o.resolve(r.children())}).fail(o.reject):o.resolve(n._rootItems),o.promise()},this._customQueries=a}var s=r(2),c=r(3),d=r(0),l=r(40),u=r(1),p=r(75);t.DBSchemaItemsProvider=o},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(8),s=r(40),c=(i=n.TreeListController,a(d,i),d.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},d.prototype.canSelect=function(e){return!0},d);function d(e){var t=i.call(this)||this;return t._customizeDBSchemaTreeListActions=e,t}t.DBSchemaTreeListController=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(1),c=r(7),d=r(10),l=r(8),u=r(8),p=r(1),f=(i=s.Disposable,a(m,i),Object.defineProperty(m.prototype,"name",{get:function(){return this._name()},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"displayName",{get:function(){return this._displayName||this.name},enumerable:!0,configurable:!0}),m);function m(e){var t=i.call(this)||this;return t.editor=c.editorTemplates.commonCollection,t.isList=!1,t.contenttemplate="dx-treelist-accordion-contenttemplate-custom-with-actions",t.actionsTemplate="dx-treelist-item-actions",t.dataSourceParameter=n.observable(e),t._name=e.name,t._displayName=e.displayName,t}t.ParametersTreeListItemBase=f;var h,y=(a(g,h=f),g.prototype.query=function(){return this.parent.query()},g);function g(e,t){var r=h.call(this,e)||this;return r.parent=t,r}t.ParametersTreeListItem=y;var _=(v.prototype.removeChild=function(e){this.parameters.remove(e)},v);function v(e){this.isList=!0,this.specifics="List",this.visible=n.observable(!0),this.name=this.displayName=e,this.parameters=n.observableArray([])}t.ParametersTreeListRootItemBase=_;var b,S=(a(x,b=_),x.prototype.query=function(){return this._query},x);function x(e){var t=b.call(this,e.name())||this;return t._query=e,t}t.ParametersTreeListRootItem=S;var P,C=(P=l.TreeListController,a(T,P),T.prototype.hasItems=function(e){return e.isList},T.prototype.getActions=function(e){var t,r,o=this,a=[];return e.data?e.data.query().type()===d.SqlQueryType.storedProcQuery?e.data.isList?[]:[u.treeListEditAction]:(e.data.isList?(t=e.data,a.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,a.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")}),a.push(u.treeListEditAction)),a):a},T.prototype.canSelect=function(e){return!0},T);function T(e,t){var r=P.call(this)||this;return r._createNewParameter=t,r._rootItems=e,r}t.ParametersTreeListController=C},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),n=r(3),s=r(1),o=r(0),c=r(0),d=r(0),l=r(135),u=r(0),p=r(136),a=(f.prototype._createMainPopupButtons=function(){var e=this;this.buttonItems=[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.getLocalization("Save",o.StringId.DataAccessBtnOK),onClick:function(){e.save()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.getLocalization("Cancel",o.StringId.DataAccessBtnCancel),onClick:function(){e.popupVisible(!1)}}}]},f.prototype.title=function(){return s.getLocalization("Master-Detail Relation Editor",o.StringId.MasterDetailRelationsEditor)},f);function f(t,r,e){var o=this;this.isValid=i.observable(!0),this.popupVisible=i.observable(!1),this.loadPanelVisible=i.observable(!1),this.buttonItems=[],this.masterQueries=i.observableArray(),this.popupService=new c.PopupService,this.save=function(){t().some(function(e){return!e.detailQuery()||!e.masterQuery()||e.keyColumns().some(function(e){return!e.detailColumn()||!e.masterColumn()})})?d.ShowMessage(s.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)})},this.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 l.MasterDetailEditorPopupManager(t,o.popupService,"create",e),templateName:"dx-filtereditor-create"}},this.setColumn=function(e){var t=u.getFirstItemByPropertyValue(r.tables(),"tableName",e.queryName);return{data:new l.MasterDetailEditorPopupManager(e,o.popupService,"setColumn",t?t.columns():[]),templateName:"dx-masterdetail-editor-setColumn"}},this._createMainPopupButtons();var a={};r.tables().forEach(function(e){a[e.tableName()]=new p.MasterQuerySurface(e.tableName(),t)}),t().forEach(function(e){a[e.masterQuery()]=a[e.masterQuery()]||new p.MasterQuerySurface(e.masterQuery(),t),a[e.masterQuery()].add(e)}),this.masterQueries(n.map(a,function(e){return e}))}t.MasterDetailEditor=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=(a.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)}})},a);function a(e,t,r,o){var a=this;this.showPopup=function(e,t){a._popupService.subscription&&a._popupService.subscription.dispose(),a._popupService.title(""),a._updateActions(a.target),a._popupService.target(t),a._popupService.visible(!0)},this.target=e,this._action=r,this._popupService=t,this._popupItems=o}t.MasterDetailEditorPopupManager=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,r){var o=this;this.relations=a.observableArray(),this.queryName=e,this.add=function(e){o.relations.push(new n.MasterDetailRelationSurface(e,o))},this.create=function(e){var t=new i.MasterDetailRelation({"@Master":o.queryName,"@Detail":e.name});s.getFirstItemByPropertyValue(o.relations(),"relationName",t.name())&&t.name(c.getUniqueName(o.relations().map(function(e){return e.relationName()}),t.name()+"_")),t.createKeyColumn(),o.add(t),r.push(t)},this.remove=function(t){o.relations.remove(t),r.remove(function(e){return e.name===t.relationName})}}var a=r(2),i=r(51),n=r(137),s=r(0),c=r(0);t.MasterQuerySurface=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(r,e){var o=this;this.isEditable=a.observable(!1),this.relationName=r.name,this.keyColumns=a.pureComputed(function(){return r.keyColumns().map(function(e){return{master:new i.KeyColumnSurface(e.masterColumn,r.masterQuery(),!0),detail:new i.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)}}var a=r(2),i=r(138);t.MasterDetailRelationSurface=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r){void 0===r&&(r=!1);var o=this;this._isMaster=r,this.getTitle=function(){return o._isMaster?i.getLocalization("Master Query","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_MasterQuery"):i.getLocalization("Detail Query","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_DetailQuery")},this.isSelected=a.observable(!1),this.selectColumnText=function(){return i.getLocalization("<Select a Column>","DataAccessUIStringId.JoinEditorEmptyColumnText")},this.column=e,this.queryName=t,this.setColumn=function(e){o.column(e.name())}}var a=r(2),i=r(1);t.KeyColumnSurface=o},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),n=r(35),s=r(37),c=r(5),d=r(34),l=r(41),u=r(0),p=r(1),f=r(39),m=r(55),h=r(56),y=r(78),g=r(23),_=r(54),v=r(130),b=(Object.defineProperty(S.prototype,"jsonDataSourceAvailable",{get:function(){return this.wizardSettings.enableJsonDataSource&&(this.allowCreateNewJsonConnection||0<(i.unwrap(this.connectionStrings.json)||[]).length)},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"sqlDataSourceAvailable",{get:function(){return this.wizardSettings.enableSqlDataSource&&0<(i.unwrap(this.connectionStrings.sql)||[]).length},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"objectDataSourceAvailable",{get:function(){return this.wizardSettings.enableObjectDataSource},enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"canCreateDataSource",{get:function(){return this.jsonDataSourceAvailable||this.sqlDataSourceAvailable||this.objectDataSourceAvailable},enumerable:!0,configurable:!0}),S);function S(){this.connectionStrings={json:i.observableArray([]),sql:i.observableArray([])},this.callbacks={},this.rtl=!1,this.disableCustomSql=!1,this.wizardSettings=(new T).createDefault(),this.allowCreateNewJsonConnection=!1}t._DataSourceWizardOptionsBase=b;var x,P=(a(C,x=b),C);function C(){return null!==x&&x.apply(this,arguments)||this}t._DataSourceWizardOptions=P;var T=(O.prototype.createDefault=function(e){var t={enableJsonDataSource:!0,enableSqlDataSource:!0,enableObjectDataSource:!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)),t},O);function O(){}t.DataSourceWizardSettings=T;var I,N=(I=n.PageIterator,a(D,I),D.prototype.getNextPageId=function(e){return!e&&this._dataSourceWizardOptions.jsonDataSourceAvailable&&this._dataSourceWizardOptions.sqlDataSourceAvailable?c.DataSourceWizardPageId.ChooseDataSourceTypePage:e?e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Sql?c.SqlDataSourceWizardPageId.ChooseConnectionPage:e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Json&&0<this._dataSourceWizardOptions.connectionStrings.json().length?c.JsonDataSourceWizardPageId.ChooseConnectionPage:this._dataSourceWizardOptions.allowCreateNewJsonConnection&&e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.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)},D);function D(e,t,r){var o=I.call(this,e,t)||this;return o._dataSourceWizardOptions=r,o}t.DataSourceWizardPageIterator=N;var E,w=(E=l.PopupWizard,a(A,E),A.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new N(e,t,r._wizardOptions)}),this._wizardOptions.sqlDataSourceAvailable||!u.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=d.DataSourceType.Sql:(this._wizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource)&&(e.dataSourceType=d.DataSourceType.Json),E.prototype.initialize.call(this,e,t)},A.prototype.canRunWizard=function(){return this._wizardOptions.jsonDataSourceAvailable||this._wizardOptions.sqlDataSourceAvailable},A);function A(e,t){var r=E.call(this,e,t.callbacks.finishCallback)||this;return r._wizardOptions=t,r._extendCssClass="dxrd-sqldatasource-wizard",r.title=p.getLocalization("Data Source Wizard","AnalyticsCoreStringId.DSWizard_Title"),r}function z(e,t){return void 0===e&&(e=new s.PageFactory),d._registerChooseDataSourceTypePage(e,t),f._registerChooseJsonSourcePage(e,t.requestWrapper,t.callbacks.getItemsProviderCallback),m._registerChooseJsonConnectionPage(e,t),h._registerChooseJsonSchemaPage(e,t.requestWrapper,t.callbacks),y._registerConfigureObjectDataSourceParametersPage(e,t.callbacks.getItemsProviderCallback),g._registerConfigureQueryPage(e,t),_._registerChooseSqlConnectionPage(e,t.connectionStrings.sql),v._registerConfigureParametersPage(e,t.requestWrapper),e}t.DataSourceWizard=w,t._registerDataSourceWizardPages=z,t._createDataSourceWizard=function(e,t){return void 0===e&&(e=new s.PageFactory),e=z(e,t),new w(e,t)}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(37),s=(i=n.PageFactory,a(c,i),c.prototype.registerMetadata=function(e,t){i.prototype.registerMetadata.call(this,e,t)},c.prototype.getMetadata=function(e){return i.prototype.getMetadata.call(this,e)},c);function c(){var e=null!==i&&i.apply(this,arguments)||this;return e.metadata={},e}t.FullscreenWizardPageFactory=s},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(36),s=r(125),c=r(5),d=r(39),l=r(1),u=r(56),p=(i=n.FullscreenWizardPage,a(f,i),f.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(c.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.Right:n.WizardSectionPosition.Left)),this._dataSourceWizardOptions.allowCreateNewJsonConnection&&0===this._dataSourceWizardOptions.connectionStrings.json().length&&(d._registerChooseJsonSourcePage(this._factory,this._dataSourceWizardOptions.requestWrapper,this._dataSourceWizardOptions.callbacks.getItemsProviderCallback),this._setSectionPosition(c.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.Right:n.WizardSectionPosition.Left),this._factory.getMetadata(c.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage).disabledText=l.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(c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.Left:n.WizardSectionPosition.Right),this._factory.getMetadata(c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage).disabledText=l.getLocalization("To select data fields, choose or create a data connection.","AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSchemaPage_Placeholder")},f.prototype.getNextSectionId=function(e){if(!e&&0<this._dataSourceWizardOptions.connectionStrings.json().length)return c.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage;if(!e)return c.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage;if(this._dataSourceWizardOptions.allowCreateNewJsonConnection){if(e===c.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage)return c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage;if(e===c.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage)return c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage}else if(e===c.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage)return c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage},f.prototype.canNext=function(){var e=this._sectionsProcessor.getPageById(c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage);return e&&e.page()&&e.metadata.canNext(e.page().page)},f);function f(e){var t=i.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifyJsonDataSourceSettingsPage=p,t._registerSpecifyJsonDataSourceSettingsPage=function(e,t){e.registerMetadata(c.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 p(t)},navigationPanelText:l.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(36),s=r(5),c=r(12),d=r(54),l=r(84),u=r(86),p=r(38),f=r(85),m=r(1),h=r(0),y=(i=n.FullscreenWizardPage,a(g,i),g.prototype.getNextSectionId=function(e){if(!e)return s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage;if(e===s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage&&this._stateManager.getCurrentState().sqlDataSourceWizard.name)return s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage;if(e===s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage){var t=[],r=this._stateManager.getCurrentState().sqlDataSourceWizard;return 0<(r.customQueries||[]).length&&t.push(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage),1<c._restoreSqlDataSourceFromState(r).sqlDataSource.queries().length&&t.push(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage),t}},g.prototype.registerSections=function(){d._registerChooseSqlConnectionPage(this._factory,this._dataSourceWizardOptions.connectionStrings.sql),l._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?n.WizardSectionPosition.TopRight:n.WizardSectionPosition.TopLeft),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.TopLeft:n.WizardSectionPosition.TopRight),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.BottomLeft:n.WizardSectionPosition.BottomRight),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.BottomRight:n.WizardSectionPosition.BottomLeft)},g);function g(e){var t=i.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifySqlDataSourceSettingsPage=y,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=h.extend(!0,{},t)},create:function(){return new y(t)},navigationPanelText:m.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(41),c=r(144),d=(i=s.PopupWizard,a(l,i),l.prototype._onClose=function(e){this._onCloseCallback=e},l.prototype.onFinish=function(){i.prototype.onFinish.call(this),this.navigationPanel().dispose()},l.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)},l.prototype._onResetPage=function(e){this.navigationPanel()._reset(e.pageId)},l.prototype.start=function(e){e&&(this._finishCallback=e),this.navigationPanel()&&this.navigationPanel().resetAll(),this.navigationPanel()&&this.navigationPanel().dispose(),this.navigationPanel(new c.WizardNavigationPanel(this)),i.prototype.start.call(this)},l.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},l.prototype._description=function(){return""},l);function l(e,t){var r=i.call(this,e,t)||this;return r._extendCssClass="dx-wizard-fullscreen",r.navigationPanel=n.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=d},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),i=r(1),c=(n=i.Disposable,a(d,n),d.prototype.resetAll=function(){this._steps.forEach(function(e){e.disabled(!0)})},d.prototype._currentStep=function(t){return this._steps.filter(function(e){return e.currentPageId===t})[0]},d.prototype._reset=function(e){var t=this._currentStep(e);t&&t.disabled(!0)},d.prototype._resetNextPages=function(e){var t=this._currentStep(e);if(t)for(var r=t.stepIndex+1;r<this._steps.length;r++)this._steps[r].disabled(!0)},d.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)})},d);function d(a){var i=n.call(this)||this;return i._steps=[],i._disposables.push(a._currentPage.subscribe(function(t){var e=i._steps.filter(function(e){return e.pageIds.some(function(e){return e===t.pageId})})[0];e&&(e.currentPageId=t.pageId,e.disabled(!1),i._setStepVisible(e.stepIndex))})),Object.keys(a.pageFactory.metadata).forEach(function(e){var t,r=a.pageFactory.metadata[e],o=i._steps.filter(function(e){return e.text===r.navigationPanelText})[0];o?o.pageIds.push(e):(t={text:r.navigationPanelText,pageIds:[e],currentPageId:null,stepIndex:i._steps.length,disabled:s.observable(!0),visible:s.observable(!0)},i._disposables.push(t.isActive=s.computed(function(){return a._currentPage()&&t.currentPageId===a._currentPage().pageId})),t.clickAction=function(){t.isActive()||a.goToPage(t.currentPageId)},i._steps.push(t))}),i._disposables.push(i.isVisible=s.computed(function(){return 1<i._steps.filter(function(e){return e.visible()}).length})),i}t.WizardNavigationPanel=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(8),s=r(0),c=r(43),d=r(45),l=r(45),u=r(146),p=(i=n.FilterEditorSerializer,a(f,i),f.prototype._columnDisplayName=function(e){return e.table()+"."+e.actualName()},f.prototype._findAggregatedColumn=function(t){return s.find(this._columns(),function(e){return c.isAggregatedExpression(e)&&t(e)})},f.prototype.serializeOperandProperty=function(t){var r=this,e=this._findAggregatedColumn(function(e){return t.propertyName===r._columnDisplayName(e)});return"["+(e?e.actualName():t.propertyName)+"]"},f.prototype.deserialize=function(e){var t=this,r=l.CriteriaOperator.parse(e);return r&&u.criteriaForEach(r,function(e){e instanceof d.OperandProperty&&(e.propertyName=t._aggregatePropertyName(e))}),i.prototype.deserializeOperand.call(this,r)},f);function f(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=p},function(e,t){e.exports=DevExpress.Analytics.Criteria.Utils},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(169),c=r(1),d=r(57),l=(i=s.OperandParameterSurface,a(u,i),Object.defineProperty(u.prototype,"_parameterType",{get:function(){return this.fieldsOptions()&&this.fieldsOptions().selected()&&this.fieldsOptions().selected().dataType||"System.String"},enumerable:!0,configurable:!0}),u.prototype._createParameter=function(t,e){var r;""!==t&&t!==u.defaultDisplay()&&0===this.helper.parameters().filter(function(e){return e.name()===t}).length&&(r=new d.ParameterViewModel({"@Name":t,"@Type":e}),this.helper.newParameters.push(r))},u.prototype.isDefaultTextDisplayed=function(){return this.parameterName()===u.defaultDisplay()},u.defaultDisplay=function(){return c.getLocalization("Create new parameter","AnalyticsCoreStringId.FilterEditor_Operand_CreateNewParameter")},u);function u(e,t,r,o){var a=i.call(this,e,t,r,o)||this;return a.createParameter=function(){a.canCreateParameters&&(a.model.parameterName=a.parameterName(),a._createParameter(a.parameterName(),a._parameterType),a.helper.onChange())},a._parameterName=n.observable(""),a.isEditable=n.observable(!1),a.defaultDisplay=u.defaultDisplay,a._parameterName(e.parameterName),a.canCreateParameters=a.helper.canCreateParameters,a.fieldsOptions=t.leftPart.fieldsOptions,a.parameterName=n.pureComputed({read:function(){return a._parameterName()||a.canCreateParameters&&u.defaultDisplay()||""},write:function(e){e!==u.defaultDisplay()&&e&&(a.model.parameterName=n.unwrap(e),a._parameterName(a.model.parameterName))}}),!a.canCreateParameters||a.isDefaultTextDisplayed()||n.unwrap(a.fieldListProvider).hasParameter(e.parameterName)||a.createParameter(),a}t.OperandParameterQBSurface=l},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(169),c=(i=s.OperandPropertySurface,a(d,i),d.prototype._updateSpecifics=function(){d.updateSpecifics(this)},d.updateSpecifics=function(e){var t,r,o=n.unwrap(e.fieldListProvider);o&&o.getColumnInfo&&((t=o.getColumnInfo(e.propertyName()))&&(e.specifics(t.specifics.toLowerCase()),e.dataType(t.dataType),(r=n.unwrap(e.fieldsOptions))&&r.selected(t)))},d);function d(e,t,r,o){return i.call(this,e,t,r,o)||this}t.OperandPropertyQBSurface=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(2),c=r(3),n=r(7),d=r(8),l=r(147),u=r(148),p=r(46),f=r(146),m=r(45),h=(i=n.FilterEditorHelper,a(y,i),y);function y(e){var n=i.call(this)||this;return n.handlers.changeParameter=function(e,t){return{data:new d.FilterEditorAddOn(e,t,"changeParameter","items","dxqb-filtereditor-parameterspopup"),templateName:"dxqb-filtereditor-changeparameter"}},n.mapper.Parameter=l.OperandParameterQBSurface,n.mapper.Property=u.OperandPropertyQBSurface,e===p.ParametersMode.ReadWrite&&(n.canCreateParameters=!0,n.newParameters=s.observableArray([]),n.onEditorFocusOut=function(e){if(e){var r=n.newParameters(),o=[];if(f.criteriaForEach(e,function(t){var e;t instanceof m.OperandParameter&&((e=r.filter(function(e){return e.name()===t.parameterName})[0])&&o.push(e))}),0!==o.length){for(var t=r.filter(function(e){return-1===o.indexOf(e)}),a=0;a<t.length;a++){var i=r.indexOf(t[a]);-1!==i&&r.splice(i,1)}n.newParameters.valueHasMutated()}else n.newParameters.splice(0)}},n.onClosing=function(){n.newParameters([])}),n.canSelectLists=!1,n.getDisplayPropertyName=function(){return c.Deferred().resolve("").promise()},n}t.QBFilterEditorHelper=h,t.QBFilterEditorHelperDefault=h,t._setQBFilterEditorHelperDefault=function(e){t.QBFilterEditorHelperDefault=e}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=r(2),n=r(7),c=r(149),d=r(46),l=r(45),u=(i=n.FilterStringOptions,a(p,i),p.prototype.initializeFilterStringHelper=function(r,o,e){var a,i=this,n=new c.QBFilterEditorHelperDefault(o);n.canChoiceParameters=o!==d.ParametersMode.Disabled,e&&(n.serializer=e),o===d.ParametersMode.ReadWrite?(n.parameters=s.computed(function(){return[].concat(r(),n.newParameters())}),n.onSave=function(e){var t=n.newParameters();r.push.apply(r,t),n.newParameters([])}):(o===d.ParametersMode.Read&&(n.parameters=r),a=n.criteriaTreeValidator._checkRightPart,n.criteriaTreeValidator._checkRightPart=function(e){if(!(e instanceof l.OperandParameter))return a.apply(i,[e]);if(o===d.ParametersMode.Disabled)return!1;if(o===d.ParametersMode.Read){var t=e.parameterName;return 0!==r.peek().filter(function(e){return e.name()===t}).length}}),this.helper=n},p);function p(e,t,r,o){return i.call(this,e,t,r,o)||this}t.QBFilterStringOptions=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(60),o=r(0),a=r(0),n=(s.find=function(e,t,r){return o.findFirstItemMatchesCondition(e(),function(e){return e.column()===r&&e.table()===t})},s.findByName=function(e,t){return o.findFirstItemMatchesCondition(e(),function(e){return e.actualName()===t})},s.removeDependend=function(e,t){e.remove(function(e){return e.isDepended(t)})},s.setUniqueAlias=function(e,t){return s.findByName(e,t)?a.getUniqueName(e().map(function(e){return e.actualName()}),t+"_"):t},s.addNew=function(e,t,r,o){var a=new i.ColumnExpression({"@Table":r,"@Name":o,"@ItemType":"Column"},e);return e.columns===t&&!a.alias()&&s.findByName(t,a.actualName())&&a.alias(this.setUniqueAlias(t,a.table()+"_"+a.column())),t.push(a),a},s.remove=function(e,t,r){e.remove(function(e){return e.column()===r&&e.table()===t})},s);function s(){}t.ColumnExpressionCollectionHelper=n},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),i=r(26),c=r(60),d=r(0),l=r(61),u=r(1),p=r(153),f=(n=i.QueryElementBaseViewModel,a(m,n),m.prototype.getInfo=function(){return p.allColumnsSerializationInfo},m);function m(t,r){var e=n.call(this,{"@ControlType":"Column"},t,r)||this,o=t.parentModel(),a=s.pureComputed(function(){return d.findFirstItemMatchesCondition(o.columns(),function(e){return t.actualName()===e.table()&&l.ColumnType.AllColumns===e.itemType()})});e.selected=s.pureComputed({read:function(){return!!a()},write:function(e){!!a()!==e&&(e?o.columns.push(new c.ColumnExpression({"@ItemType":l.ColumnType.AllColumns,"@Table":t.actualName()},o,r)):o.columns.remove(function(e){return t.actualName()===e.table()&&l.ColumnType.AllColumns===e.itemType()}))}});var i=u.getLocalization("(All Columns)","DataAccessStringId.QueryBuilder_AllColumns");return e.name=s.pureComputed(function(){return"*"===i.charAt(0)?i:"* "+i}),e}t.AllColumnsViewModel=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(44);t.allColumnsSerializationInfo=[o.name,o.selected]},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),i=r(0),c=r(62),d=r(21),l=r(0),u=r(29),p=r(48),f=r(20),m=(n=i.DragDropHandler,a(h,n),h.prototype._needToCreateRelation=function(){return!!(this.selection.dropTarget&&this.selection.dropTarget instanceof c.ColumnSurface)&&this.selection.dropTarget.getControlModel().parentModel()!==this.getDragColumn().parentModel()},h.prototype.startDrag=function(e){if(e instanceof d.ConnectionPointSurface){var t=e.getControlModel().parentModel();if(this._dragConditionSurface=l.findSurface(t),!this._dragConditionSurface)return;this._dragConditionSurface.isVisible(!1),this._dragColumn(t.startPoint()===e.getControlModel()?t.nestedColumn():t.parentColumn())}else{if(!(e instanceof c.ColumnSurface))throw new Error("ColumnDragHandler can be applied to the Column only.");this._dragColumn(e.getControlModel())}var r=new u.RoutedConnectorViewModel({},this.querySurface().getControlModel());this.dragDropConnector(new p.RoutedConnectorSurface(r,this.surface()))},h.prototype.setConnectorPoints=function(e){var t,r,o,a,i=this._dragColumn(),n=this.dragDropConnector().getControlModel();this._needToCreateRelation()?(t=f.determineConnectingPoints(i,this.selection.dropTarget.getControlModel()),n.startPoint().connectingPoint(t.start),n.endPoint().connectingPoint(t.end)):(r=this.querySurface().rtl()?this.querySurface().pageWidth()-i.leftConnectionPoint.location.x():i.leftConnectionPoint.location.x(),o=this.querySurface().rtl()?this.querySurface().pageWidth()-i.rightConnectionPoint.location.x():i.rightConnectionPoint.location.x(),a=Math.abs(r-e.left)>Math.abs(o-e.left)?i.rightConnectionPoint:i.leftConnectionPoint,n.startPoint().connectingPoint(a),this.dragDropConnector().endPoint().rect({top:e.top,left:e.left}))},h.prototype.drag=function(e,t){t.position.left+=t.scroll.left,t.position.top+=t.scroll.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))},h.prototype.doStopDrag=function(){this.dragHelperContent.reset(),this.dragDropConnector(null);try{var e=null;this._dragConditionSurface&&!this._dragConditionSurface.isVisible()&&(e=this._dragConditionSurface.getControlModel(),this._dragConditionSurface.isVisible(!0));var t,r,o=this.querySurface().getControlModel();this._needToCreateRelation()&&(t=this.selection.dropTarget.getControlModel(),this.undoEngine().start(),e&&e.parentModel().removeChild(e),r=o.cerateJoinCondition(this._dragColumn(),t),this.undoEngine().end(),null!==r&&this.selection.initialize(l.findSurface(r)))}finally{this._dragColumn(null)}},h.prototype.getDragColumn=function(){return this._dragColumn()},h);function h(e,t,r,o,a){var i=n.call(this,e,t,r,o,a)||this;return i.querySurface=e,i.undoEngine=r,i._dragColumn=s.observable(null),i._dragConditionSurface=null,i.dragDropConnector=s.observable(null),i.cursor="arrow",i.containment=".dxrd-ghost-container",i.helper=void 0,i}t.ColumnDragHandler=m},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(8),s=r(96),c=(i=n.TreeListController,a(d,i),d);function d(t,r){var e=i.call(this)||this,o=s.DbObjectDragDropHandler.getDropCallback(t,!0);return e.dblClickHandler=function(e){t().start(),o(e.data,r()),t().end()},e}t.QueryBuilderTreeListController=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,c=r(2),d=r(7),i=r(1),s=r(1),l=r(57),u=r(58),p=r(0),f={propertyName:"parameters",displayName:"parameters",editor:{custom:"dxqb-parameterspanel"}},m={propertyName:"selectedItem",displayName:"selectedItem",editor:{custom:"dxqb-propertygrid"}},h={propertyName:"fields",displayName:"fields",editor:{custom:"dxqb-fieldspanel"}},y={propertyName:"query",displayName:"query",editor:{custom:"dxqb-propertygrid"}},g=(n=i.TabInfo,a(_,n),_._getSelectedItemPropertyName=function(e){var t="Selection Properties",r="AnalyticsCoreStringId.QueryBuilder_SelectionProperties";switch(e&&e.controlType){case"Query":t="Query Properties",r="AnalyticsCoreStringId.QueryBuilder_QueryProperties";break;case"Table":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 s.getLocalization(t,r)},_._createWrappedObject=function(t,r,e,o){var a=new d.ObjectProperties(t,null,1),i=c.computed(function(){return t()&&t().parameters}),n=[y,m,h],s={selectedItem:r,query:{editableObject:t,properties:a},fields:r,isPropertyVisible:function(e){return"selectedItem"!==e||r.editableObject()!==t()}};return o&&(s.parameters={values:i,addHandler:function(){return new l.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"}},n.push(f)),s.getInfo=function(){return n},s},_._createGroups=function(e,t){var r=this,o={Query:{info:[y],displayName:function(){return s.getLocalization("Query Properties","AnalyticsCoreStringId.QueryBuilder_QueryProperties")}},SelectedItem:{info:[m],displayName:function(){return r._getSelectedItemPropertyName(e())}},Fields:{info:[h],displayName:function(){return s.getLocalization("Available tables and views","AnalyticsCoreStringId.QueryBuilder_AvailableTables")}}};return t&&(o.Parameters={info:[f],displayName:function(){return s.getLocalization("Parameters","AnalyticsCoreStringId.QueryBuilder_Parameters")}}),o},_._createQBPropertyGrid=function(e,t,r,o){var a=this._createWrappedObject(e,t,r,o);return new p.ControlProperties(c.observable(a),{groups:this._createGroups(t.editableObject,o),editors:a.getInfo()},void 0,!1)},_.prototype._getGroupByName=function(t){return this.model.groups.filter(function(e){return e._displayName===t})[0]},_);function _(e,t,r,o,a){var i=n.call(this,{text:"Properties",template:"dxqb-properties-wrapper",model:_._createQBPropertyGrid(e,t,r,a)})||this;return i.active(!0),i._getGroupByName("Fields").collapsed(!1),i._disposables.push(o.subscribe(function(e){e instanceof u.QueryViewModel||i._getGroupByName("SelectedItem").collapsed(!1)})),i}t.AccordionTabInfo=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(47),a=r(25),i=r(44),n=r(4),s=r(4),c=r(93),d=r(158),l=r(91),u=r(159),p=r(160),f=r(92),m=r(90),h=r(161),y=r(59),g=r(24),_=r(62),v=r(89),b=r(94),S=r(95),x=r(58);t.registerControls=function(){o.registerControls(),a.controlsFactory.registerControl("Unknown",{info:i.unknownSerializationsInfo,type:n.ElementViewModel,nonToolboxItem:!0,surfaceType:s.SurfaceElementBase,isDeleteDeny:!0}),a.controlsFactory.registerControl("Relation",{info:c.relationSerializationInfo,defaultVal:{},surfaceType:d.RelationSurface,popularProperties:[],type:l.RelationViewModel,elementActionsTypes:[],nonToolboxItem:!0}),a.controlsFactory.registerControl("JoinCondition",{info:u.joinConditionSerializationInfo,defaultVal:{},surfaceType:p.JoinConditionSurface,popularProperties:["_parentColumnName","_nestedColumnName","joinType"],type:f.JoinConditionViewModel,elementActionsTypes:[],nonToolboxItem:!0}),a.controlsFactory.registerControl("Table",{info:m.tableSerializationInfo,defaultVal:{},surfaceType:h.TableSurface,popularProperties:["name","alias","columns"],type:y.TableViewModel,elementActionsTypes:[],nonToolboxItem:!0}),a.controlsFactory.registerControl("Column",{info:g.columnSerializationInfo,defaultVal:{},surfaceType:_.ColumnSurface,popularProperties:["name","alias","selected"],type:v.ColumnViewModel,elementActionsTypes:[],nonToolboxItem:!0,isDeleteDeny:!0}),a.controlsFactory.registerControl("Query",{info:b.querySerializationsInfo,surfaceType:S.QuerySurface,popularProperties:["name","filterString","groupFilterString"],type:x.QueryViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0,isDeleteDeny:!0})}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=r(0),d=(i=s.SurfaceElementBase,a(l,i),l.prototype._getChildrenHolderName=function(){return"conditions"},l);function l(e,t){var r=i.call(this,e,t,null)||this;return r.conditions=n.observableArray(),r.template="dxqb-relation",c.createObservableArrayMapCollection(e.conditions,r.conditions,r._createSurface),r}t.RelationSurface=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(42);t.ConditionType={Equal:"Equal",NotEqual:"NotEqual",Greater:"Greater",GreaterOrEqual:"GreaterOrEqual",Less:"Less",LessOrEqual:"LessOrEqual"},t.joinConditionSerializationInfo=[{propertyName:"left",displayName:"Left",editor:o.editorTemplates.text,disabled:!0,localizationId:"AnalyticsCoreStringId.QueryBuilder_LeftOperand"},{propertyName:"right",displayName:"Right",editor:o.editorTemplates.text,disabled:!0,localizationId:"AnalyticsCoreStringId.QueryBuilder_RightOperand"},{propertyName:"parentColumnName",modelName:"@Parent"},{propertyName:"nestedColumnName",modelName:"@Nested"},{propertyName:"joinType",displayName:"Join Type",editor:o.editorTemplates.combobox,defaultVal:"Inner",valuesArray:[{value:"Inner",displayValue:"Inner join",localizationId:"DataAccessStringId.RelationEditorRelationTypeInnerJoin"},{value:"LeftOuter",displayValue:"Left outer join",localizationId:"DataAccessStringId.RelationEditorRelationTypeLeftOuterJoin"}],localizationId:"AnalyticsCoreStringId.QueryBuilder_JoinType"},{propertyName:"operator",modelName:"@Operator",displayName:"Operator",editor:o.editorTemplates.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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(48),c=(i=s.RoutedConnectorSurface,a(d,i),d.prototype.container=function(){return this.getRoot()},d);function d(e,t){var r=i.call(this,e,t)||this;return r.showArrow=n.pureComputed(function(){return"LeftOuter"===e.joinType()}),r}t.JoinConditionSurface=c},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(3),s=r(2),c=r(162),d=r(59),l=r(62),u=r(163),p=r(0),f=(i=c.QueryElementBaseSurface,a(m,i),m.prototype.resizable=function(e,t){return p.extend({},e,{handles:"e, w",$selectedNodes:n(t),minWidth:d.TableViewModel.TABLE_MIN_WIDTH})},m);function m(e,t){var r=i.call(this,e,t,null)||this;return r.contenttemplate="dxqb-table",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 l.ColumnSurface(e,t)})}),r.asterisk=new u.AllColumnsSurface(e.asterisk,t),r}t.TableSurface=f},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=r(0),d=(i=s.SurfaceElementBase,a(l,i),l._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}},l);function l(e,t,r){var o=i.call(this,e,t,c.extend({},l._unitProperties,r))||this;return o.template="dx-diagram-element",o.selectiontemplate="dx-diagram-element-selection",o.contenttemplate="dx-diagram-element-content",o.margin=n.observable(0),o}t.QueryElementBaseSurface=d},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(4),c=r(0),d=(i=s.SurfaceElementBase,a(l,i),l);function l(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=n.pureComputed(function(){return r.getControlModel().selected()}),r.isOverAsterisk=n.pureComputed(function(){return r.underCursor().isOver&&!c.DragDropHandler.started()}),r.cssClasses=function(){return{"dxd-state-active":r.selected,"dxd-state-hovered":r.isOverAsterisk()}},r}t.AllColumnsSurface=d},function(e,c,t){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d=t(2),l=t(3),r=t(19),u=t(66),p=t(1),f=t(47),m=t(67),h=t(0),y=t(99),g=t(97),_=t(0);c.groups={Appearance:{info:[]},Behavior:{info:[]},Design:{info:[r.name]},Layout:{info:[r.location,r.size,u.pageWidth,u.pageHeight]}},c.createDiagramDesigner=function(e,t,r,o){r&&p.addCultureInfo({messages:r}),f.registerControls();var a=d.pureComputed(function(){return new u.DiagramViewModel(t())}),i=d.pureComputed(function(){return new m.DiagramSurface(a())}),n=h.createDesigner(a,i,f.diagramControlsFactory,c.groups,void 0,void 0,o);n.connectionPointDragHandler=new y.ConnectionPointDragHandler(i,n.selection,n.undoEngine,n.snapHelper,n.dragHelperContent),n.connectingPointDragHandler=new g.ConnectingPointDragHandler(i,n.selection,n.undoEngine,n.snapHelper,n.dragHelperContent),n.isLoading(!1),n.selection.focused(i()),l(e).children().remove(),d.applyBindings(n,e);var s=_.updateSurfaceContentSize(n.surfaceSize,e);return l(window).bind("resize",function(){s()}),n.tabPanel.width.subscribe(function(){s()}),s(),n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(179);o.default&&(o.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(){var o="ALL|AND|ANY|BETWEEN|EXISTS|IN|LIKE|NOT|OR|SOME";o+="|NULL|IS|APPLY|INNER|OUTER|LEFT|RIGHT|JOIN|CROSS";var a="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",i="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";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",t+="|LOOP|HASH|MERGE|REMOTE",t+="|TRY|CATCH|THROW",t=(t=(t=(t+="|TYPE").split("|")).filter(function(e,t,r){return-1===o.split("|").indexOf(e)&&-1===a.split("|").indexOf(e)&&-1===i.split("|").indexOf(e)})).sort().join("|");for(var r=this.createKeywordMapper({"constant.language":o,"storage.type":i,"support.function":a,"support.storedprocedure":e,keyword:t},"identifier",!0),n="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("|"),c=0;c<s.length;c++)n.push("SET TRANSACTION ISOLATION LEVEL "+s[c]);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}]},c=0;c<n.length;c++)this.$rules.start.unshift({token:"set.statement",regex:n[c]});function d(e,t){e.forEach(function(e){l.push({name:e,value:e,score:0,meta:t})})}this.embedRules(u,"doc-",[u.getEndRule("start")]),this.normalizeRules();var l=[];d(e.split("|"),"procedure"),d(o.split("|"),"operator"),d(a.split("|"),"function"),d(i.split("|"),"type"),d(n,"statement"),d(t.split("|"),"keyword"),this.completions=l}var a=e("../lib/oop"),u=e("./doc_comment_highlight_rules").DocCommentHighlightRules,i=e("./text_highlight_rules").TextHighlightRules;a.inherits(o,i),t.SqlHighlightRules=o}),o.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=n}var a=e("../lib/oop"),i=e("./text").Mode,n=e("./sql_highlight_rules").SqlHighlightRules;e("../range").Range;a.inherits(o,i),function(){this.lineCommentStart="--",this.$id="ace/mode/sql"}.call(o.prototype),t.Mode=o}))},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(139),s=r(41),c=r(12),d=r(37),l=r(35),u=r(0),p=r(34),f=r(1),m=r(5),h=r(55),y=r(39),g=r(56),_=r(54),v=r(87),b=r(84),S=r(85),x=r(86),P=r(38),C=r(122),T=r(123),O=r(78),I=(i=n._DataSourceWizardOptionsBase,a(N,i),N);function N(){return null!==i&&i.apply(this,arguments)||this}t._MultiQueryDataSourceWizardOptions=I;var D,E=(D=s.PopupWizard,a(w,D),w.prototype.canRunWizard=function(){return this._wizardOptions.jsonDataSourceAvailable||this._wizardOptions.sqlDataSourceAvailable||this._wizardOptions.objectDataSourceAvailable},w.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||!u.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=p.DataSourceType.Sql:this._wizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource?e.dataSourceType=p.DataSourceType.Json:this._wizardOptions.objectDataSourceAvailable&&(e.dataSourceType=p.DataSourceType.Object),D.prototype.initialize.call(this,e,t)},w);function w(e,t){var r=D.call(this,e,t.callbacks.finishCallback)||this;return r._wizardOptions=t,r.title=f.getLocalization("Data Source Wizard","AnalyticsCoreStringId.SqlDSWizard_Title"),r._extendCssClass="dxrd-multiqueries-sqldatasource-wizard",r.height(443),r}t.MultiQueryDataSourceWizard=E;var A,z=(A=l.PageIterator,a(M,A),M.prototype.getNextPageId=function(e){return!e&&this._wizardOptions.jsonDataSourceAvailable&&this._wizardOptions.sqlDataSourceAvailable?m.DataSourceWizardPageId.ChooseDataSourceTypePage:e?e===m.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===p.DataSourceType.Sql?m.SqlDataSourceWizardPageId.ChooseConnectionPage:e===m.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===p.DataSourceType.Object?m.ObjectDataSourceWizardPageId.ChooseTypesPage:e===m.ObjectDataSourceWizardPageId.ChooseTypesPage&&this._getCurrentState().objectDataSourceWizard.selectedType?m.ObjectDataSourceWizardPageId.ChooseDataMembersPage:e===m.ObjectDataSourceWizardPageId.ChooseDataMembersPage?m.ObjectDataSourceWizardPageId.ConfigureParametersPage:e===m.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===p.DataSourceType.Json&&0<this._wizardOptions.connectionStrings.json().length?m.JsonDataSourceWizardPageId.ChooseConnectionPage:this._wizardOptions.allowCreateNewJsonConnection&&e===m.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===p.DataSourceType.Json?m.JsonDataSourceWizardPageId.ChooseJsonSourcePage:e===m.JsonDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().jsonDataSourceWizard.connectionName?m.JsonDataSourceWizardPageId.ChooseJsonSchemaPage:this._wizardOptions.allowCreateNewJsonConnection&&e===m.JsonDataSourceWizardPageId.ChooseConnectionPage&&!this._getCurrentState().jsonDataSourceWizard.connectionName?m.JsonDataSourceWizardPageId.ChooseJsonSourcePage:e===m.JsonDataSourceWizardPageId.ChooseJsonSourcePage?m.JsonDataSourceWizardPageId.ChooseJsonSchemaPage:e===m.SqlDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().sqlDataSourceWizard.name?m.SqlDataSourceWizardPageId.MultiQueryConfigurePage:this._getCurrentState().sqlDataSourceWizard.sqlDataSourceJSON&&e===m.SqlDataSourceWizardPageId.MultiQueryConfigurePage&&0<this._getCurrentState().sqlDataSourceWizard.customQueries.length?m.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage:(e===m.SqlDataSourceWizardPageId.MultiQueryConfigurePage||e===m.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage)&&1<c._restoreSqlDataSourceFromState(this._getCurrentState().sqlDataSourceWizard).sqlDataSource.queries().length?m.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage:void 0:this.getNextPageId(m.DataSourceWizardPageId.ChooseDataSourceTypePage)},M);function M(e,t,r){var o=A.call(this,e,t)||this;return o._wizardOptions=r,o}function k(e,t){return void 0===e&&(e=new d.PageFactory),p._registerChooseDataSourceTypePage(e,t),h._registerChooseJsonConnectionPage(e,t),y._registerChooseJsonSourcePage(e,t.requestWrapper,t.callbacks.getItemsProviderCallback),g._registerChooseJsonSchemaPage(e,t.requestWrapper,t.callbacks),_._registerChooseSqlConnectionPage(e,t.connectionStrings.sql),v._registerSpecifyObjectDataSourceSettingsPage(e,t),b._registerMultiQueryConfigurePage(e,t),S._registerMultiQueryConfigureParametersPage(e,t.requestWrapper),x._registerConfigureMasterDetailRelationshipsPage(e,P.wrapRebuildResultSchema(t.callbacks.sqlDataSourceResultSchema)),C._registerChooseObjectDataSourceTypesPage(e,t),T._registerChooseObjectDataSourceDataMembersPage(e,t),O._registerConfigureObjectDataSourceParametersPage(e,t.callbacks.getItemsProviderCallback),e}t.MultiQueryDataSourceWizardPageIterator=z,t._registerMultiQueryDataSourcePages=k,t._createMultiQueryDataSourceWizard=function(e,t){return void 0===e&&(e=new d.PageFactory),k(e,t),new E(e,t)}},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(143),s=r(35),c=r(0),d=r(34),l=r(1),u=r(5),p=r(140),f=r(142),m=r(141),h=r(87),y=(i=n.FullscreenWizard,a(g,i),g.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||!c.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=d.DataSourceType.Sql:this._dataSourceWizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource?e.dataSourceType=d.DataSourceType.Json:!this._dataSourceWizardOptions.objectDataSourceAvailable&&c.isEmptyObject(e.objectDataSourceWizard)||(e.dataSourceType=d.DataSourceType.Object),i.prototype.initialize.call(this,e,t)},g.prototype.canRunWizard=function(){return this._dataSourceWizardOptions.canCreateDataSource},g.prototype._description=function(){return l.getLocalization("Data Source Wizard","AnalyticsCoreStringId.DSWizard_Title")},g);function g(e,t){var r=i.call(this,e,t.callbacks.finishCallback)||this;return r._dataSourceWizardOptions=t,r}t.FullscreenDataSourceWizard=y;var _,v=(_=s.PageIterator,a(b,_),b.prototype._isMoreThanOneDataSourceTypeAvailable=function(){return this._dataSourceOptions.sqlDataSourceAvailable?this._dataSourceOptions.jsonDataSourceAvailable||this._dataSourceOptions.objectDataSourceAvailable:this._dataSourceOptions.jsonDataSourceAvailable&&this._dataSourceOptions.objectDataSourceAvailable},b.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===d.DataSourceType.Json?u.FullscreenDataSourceWizardPageId.SpecifyJsonDataSourceSettingsPage:e===u.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Sql?u.FullscreenDataSourceWizardPageId.SpecifySqlDataSourceSettingsPage:e===u.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Object?u.FullscreenDataSourceWizardPageId.SpecifyObjectDataSourceSettingsPage:void 0},b);function b(e,t,r,o){var a=_.call(this,e,t,o)||this;return a._dataSourceOptions=r,a}t.FullscreenDataSourceWizardPageIterator=v,t._createDataSourceFullscreenWizard=function(e){var t=new p.FullscreenWizardPageFactory;return d._registerChooseDataSourceTypePage(t,e),t.getMetadata(u.DataSourceWizardPageId.ChooseDataSourceTypePage).navigationPanelText=l.getLocalization("Select Data Source Type","AnalyticsCoreStringId.Wizard_SelectDataSourceType"),f._registerSpecifySqlDataSourceSettingsPage(t,e),m._registerSpecifyJsonDataSourceSettingsPage(t,e),h._registerSpecifyObjectDataSourceSettingsPage(t,e),new y(t,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t){this.handler=e,this.isVisible=a.observable(!0),this.isDisabled=a.observable(!1),this.text=t}var a=r(2);t.WizardAction=o},function(e,t){e.exports=DevExpress.Analytics.Widgets.Filtering},function(e,t,r){"use strict";var o=r(171),a=r(174),i=r(175),n=r(176),s=r(177),c=r(178),d=r(184),l=r(185),u=r(186),p=r(188),f=r(189),m=r(190),h=r(195),y=r(196),g=window.DevExpress||{};g.Analytics=g.Analytics||{},g.QueryBuilder=g.QueryBuilder||{},g.Analytics.Diagram=o,g.Analytics.Data=a,g.Analytics.Data.Internal=i,g.Analytics.Data.Utils=n,g.Analytics.Data.Metadata=s,g.Analytics.Wizard=c,g.Analytics.Wizard.Internal=d,g.QueryBuilder.Widgets=l,g.QueryBuilder.Widgets.Internal=u,g.QueryBuilder.Metadata=p,g.QueryBuilder.Utils=f,g.QueryBuilder.Internal=m,g.QueryBuilder.Elements=h,g.QueryBuilder.Elements.Metadata=y,e.exports={Analytics:g.Analytics,QueryBuilder:g.QueryBuilder}},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(19),t(97),t(99),t(14),t(27),t(66),t(67),t(65),t(21),t(64),t(98),t(29),t(48),t(28),t(63),t(47),t(164),t(20),t(172),t(173),o(t(19)),o(t(97)),o(t(99)),o(t(14)),o(t(27)),o(t(66)),o(t(67)),o(t(65)),o(t(21)),o(t(64)),o(t(98)),o(t(29)),o(t(48)),o(t(28)),o(t(63)),o(t(47)),o(t(164)),o(t(20))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=r(3);r(16),r(16),r(16),r(16);var n=r(0),c=r(0),s=r(0);o.bindingHandlers.routeLineDraggable={init:function(e,t){var a=t(),r=s.extend({snap:".dxrd-drag-snap-line",snapTolerance:n.SnapLinesHelper.snapTolerance},o.unwrap(a),{start:function(e,t){a.starting()},stop:function(e,t){a.stopped()},drag:function(e,t){var r=t.position.left-t.originalPosition.left,o=t.position.top-t.originalPosition.top;a.forceResize({delta:{dx:r,dy:o}})}});i(e).draggable(r)}},o.bindingHandlers.updateConnectorArrow={init:function(e,t,r,o,a){var i,n,s=(i=-1,"Microsoft Internet Explorer"==navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&(i=parseFloat(RegExp.$1)):"Netscape"==navigator.appName&&null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&(i=parseFloat(RegExp.$1)),i);-1<s&&s<=11&&(n=a.$data.routePointsSet.subscribe(function(){a.$data.showArrow()&&e.parentNode.insertBefore(e,e)}),c.addDisposeCallback(e.parentNode,function(){return n.dispose()}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(100),t(68),t(103),t(70),t(105),t(49),t(71),t(72),t(106),t(50),t(107),t(109),t(30),t(51),t(113),t(114),t(33),t(32),t(11),t(17),t(104),t(102),t(22),t(52),o(t(100)),o(t(68)),o(t(103)),o(t(70)),o(t(105)),o(t(49)),o(t(71)),o(t(72)),o(t(106)),o(t(50)),o(t(107)),o(t(109)),o(t(30)),o(t(51)),o(t(113)),o(t(114)),o(t(33)),o(t(32)),o(t(11)),o(t(17)),o(t(104)),o(t(102)),o(t(22)),o(t(52))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(101),t(73),t(108),t(18),o(t(101)),o(t(73)),o(t(108)),o(t(18))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t(10),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(10))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(111),t(112),t(116),t(115),t(31),o(t(111)),o(t(112)),o(t(116)),o(t(115)),o(t(31))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(5),t(12),t(180),t(6),t(34),t(54),t(78),t(122),t(123),t(124),t(55),t(125),t(39),t(56),t(23),t(130),t(84),t(85),t(86),t(37),t(74),t(35),t(181),t(15),t(182),t(41),t(139),t(166),t(140),t(36),t(141),t(142),t(143),t(144),t(167),t(183),t(126),t(87),o(t(5)),o(t(12)),o(t(6)),o(t(34)),o(t(54)),o(t(78)),o(t(122)),o(t(123)),o(t(124)),o(t(55)),o(t(125)),o(t(39)),o(t(56)),o(t(23)),o(t(130)),o(t(84)),o(t(85)),o(t(86)),o(t(37)),o(t(74)),o(t(35)),o(t(15)),o(t(41)),o(t(139)),o(t(166)),o(t(140)),o(t(36)),o(t(141)),o(t(142)),o(t(143)),o(t(144)),o(t(167)),o(t(126)),o(t(87))},function(e,t){e.exports={default:window.ace}},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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(120),t(119),t(117),t(118),t(127),t(83),t(13),t(133),t(131),t(132),t(77),t(76),t(121),t(75),t(40),t(129),t(128),t(168),t(80),t(81),t(79),t(82),o(t(120)),o(t(119)),o(t(117)),o(t(118)),o(t(127)),o(t(83)),o(t(13)),o(t(133)),o(t(131)),o(t(132)),o(t(77)),o(t(76)),o(t(121)),o(t(75)),o(t(40)),o(t(129)),o(t(128)),o(t(168)),o(t(80)),o(t(81)),o(t(79)),o(t(82))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t(110),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(110))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(42),t(165),t(53),t(145),t(147),t(148),t(43),t(149),t(150),t(138),t(134),t(135),t(137),t(136),o(t(42)),o(t(53)),o(t(145)),o(t(147)),o(t(148)),o(t(43)),o(t(149)),o(t(150)),o(t(138)),o(t(134)),o(t(135)),o(t(137)),o(t(136))},function(e,t,r){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i,n=r(2),s=r(7),c=(i=s.Editor,a(d,i),d.prototype.generateValue=function(t){var r=this;return this.undoValue||this._disposables.push(this.undoValue=n.computed({read:function(){return r.value()},write:function(e){t().start(),r.value(e),t().end()}})),this.undoValue},d);function d(e,t,r,o){return i.call(this,e,t,r,o)||this}t.UndoEditor=c},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t(44),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(44))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(69),t(25),t(9),o(t(69)),o(t(25)),o(t(9))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(88),t(192),t(156),t(151),t(157),t(155),t(38),t(154),t(96),t(193),t(194),o(t(88)),o(t(156)),o(t(151)),o(t(157)),o(t(155)),o(t(38)),o(t(154)),o(t(96))},function(e,t){e.exports={default:DevExpress.config}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(2),p=r(3);r(16),r(16),r(16),r(16);var f=r(8),n=r(88),m=r(0),h=r(0);u.bindingHandlers.dxQueryBuilder={init:function(e,t){var r=f.getTemplate("dxrd-querybuilder"),o=p(e).append(r),a=u.unwrap(t()),i=u.unwrap(a.options);return n.createQueryBuilder(o.children()[0],i.data,i.callbacks,i.localization,i.rtl).done(function(e){a.designerModel(e)}),{controlsDescendantBindings:!0}}},u.bindingHandlers.dxdTableView={init:function(e,t,r,o,a){var i,n,s=f.getTemplate("dxd-tableview"),c=p(e).append(s),d=!!a.$root.rtl,l=u.unwrap(t());return u.applyBindings({onDataScroll:function(e){0<=e.scrollOffset.left&&(i=i||c.find(".dxd-tableview-titles"),n=n||c.find(".dxd-tableview-data table"),i.offset({left:n.offset().left,top:i.offset().top}))},onDataScrollInitialized:function(e){var t;n=null,d&&(t=e.component,setTimeout(function(){return t.scrollTo({left:t.scrollWidth(),top:0})},1))},data:l,rtl:d,noDataText:m.noDataText,isImage:function(e){return"System.Byte[]"===l.schema[e].type},isImageTooLarge:function(e){return"!"===e[0]},getImageTooLargeText:function(e){return"Image too large ("+e.substring(1)+" bytes)"}},c.children()[0]),c.find(".dxd-tableview-titles .dxd-tableview-resizable").each(function(e,t){var r=p(t).find(".dxd-tableview-cell-text"),o=c.find(".dxd-tableview-data .dxd-tableview-resizable"+e);e<l.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)}});var a=Math.max(r.width(),o.width());r.width(a),o.width(a)}),h.addDisposeCallback(c.children()[0],function(){c.find(".dxd-tableview-titles .dxd-tableview-resizable").each(function(e,t){p(t).data("ui-resizable")&&p(t).resizable("destroy")}),c=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}),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">\x3c!-- ko if: showArrow --\x3e<defs><marker data-bind="attr: { id: \'dxqb-arrow_\' + 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></defs>\x3c!-- /ko --\x3e<polyline class="dxd-qb-relationship-line-color" fill="none" data-bind="attr: { points: routePointsSet, \'marker-end\': showArrow() ? \'url(#dxqb-arrow_\' + 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 class="dxrd-drag-helper-source" data-bind="styleunit: { top: $root.dragHelperContent.top, left: $root.dragHelperContent.left, width: $root.dragHelperContent.width, height: $root.dragHelperContent.height }" style="display:none">\x3c!-- ko foreach: $root.dragHelperContent.controls --\x3e<div class="dxrd-drag-helper-item" data-bind="styleunit: $data"></div>\x3c!-- /ko --\x3e</div></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 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: underCursor"><div class="dxqb-main" data-bind="trackCursor: 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 class="dxrd-drag-helper-source" data-bind="styleunit: { top: $root.dragHelperContent.top, left: $root.dragHelperContent.left, width: $root.dragHelperContent.width, height: $root.dragHelperContent.height }" style="display:none">\x3c!-- ko if: !$root.dragHelperContent._isEmpty --\x3e\x3c!-- ko foreach: $root.dragHelperContent.controls --\x3e<div class="dxrd-drag-helper-item" data-bind="styleunit: { left: $data.left, top: $data.top, width: $data.width, height: $data.height}"></div>\x3c!-- /ko --\x3e\x3c!-- /ko --\x3e</div></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: 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><div class="dxqb-table-title dxd-text-primary" data-bind="text: getControlModel().actualName, style: { cursor: selected() ? \'move\' : \'default\' }"></div></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>',"dxrd-masterDetail-editor":'\x3c!-- ko if: $data --\x3e<div><div class="dx-filtereditor" data-bind="dxPopup: { showTitle: true, width: \'95%\', height: \'95%\', title: title(), visible: popupVisible,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,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: {},closeOnOutsideClick: 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 class="dxqb-preview" data-bind="dxPopup: {animation: {show: { type: \'fade\', from: 0, to: 1, duration: 700 },hide: { type: \'fade\', from: 1, to: 0, duration: 700 }},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 data-bind="dxdAccordion: { collapsed: collapsed }"><div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': 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">\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-toolbar":'<div class="dxrd-toolbar-wrapper dxd-toolbar-back-color" data-bind="click: $root.findControl"><div class="dxqb-toolbar-background dxd-back-primary2"></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-button-back-color dxd-state-normal dxd-back-highlighted \' + (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>","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, 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, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div></div><div class="dxrd-wizard-add-queries-page 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" style="margin-bottom: 15px" 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" style="margin-bottom: 15px" 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\' }"><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 style=\"position:relative; top: 65px; height: calc(100% - 65px)\">\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"><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"><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 } : { my: \'left top\', at: \'left bottom\', of: popupService.target },container: $root.getPopupContainer($element),target: popupService.target,showTitle: false,showCloseButton: false,animation: {},closeOnOutsideClick: 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 class="dxqb-preview" data-bind="dxPopup: {animation: {show: { type: \'fade\', from: 0, to: 1, duration: 700 },hide: { type: \'fade\', from: 1, to: 0, duration: 700 }},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 class="dx-treelist-item dx-fontsize-reestablished dxd-list-item-back-color" data-bind="event: {dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() },mouseenter: mouseenter,mouseleave: mouseleave},styleunit: padding,css: { \'dx-treelist-item-selected dxd-state-selected dxd-back-secondary\': isSelected }">\x3c!-- ko ifnot: $data.hasItems--\x3e<div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass"></div>\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"><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><div data-bind="dxPopover:{ width: 200, position: !$root.rtl ? \'left\' : \'right\', visible: $parent.data.popoverVisible, target: \'.dx-treelist-action-with-popover\', container: $root.getPopupContainer($element)}"><div data-bind="dxList: { dataSource: $parent.data.popoverListItems(), onItemClick: $parent.data.itemClickAction }"><div data-options="dxTemplate : { name: \'item\' }"><div class="dx-text-content" data-bind="text: name, attr: { title: name }"></div></div></div></div></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 data-bind="dxdAccordion: { collapsed: collapsed }"><div class="dxrd-group-header dx-accordion-header dxd-text-primary" style="border-bottom: 0" data-bind="styleunit: { \'marginLeft\' : editor.padding }, css: { \'dxrd-group-header-collapsed dxd-border-primary\': 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"><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 class="dxrd-querybuilder-popup" 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: { options: qbOptions, designerModel: designer }"></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\'), 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-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,title: isVisible() ? title : \'\',showTitle: true,fullScreen: false,width: width,height: height,container: _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,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(26),t(152),t(163),t(89),t(60),t(62),t(92),t(160),t(57),t(162),t(58),t(95),t(91),t(158),t(59),t(161),o(t(26)),o(t(152)),o(t(163)),o(t(89)),o(t(60)),o(t(62)),o(t(92)),o(t(160)),o(t(57)),o(t(162)),o(t(58)),o(t(95)),o(t(91)),o(t(158)),o(t(59)),o(t(161))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(153),t(24),t(61),t(159),t(46),t(94),t(93),t(90),o(t(153)),o(t(24)),o(t(61)),o(t(159)),o(t(46)),o(t(94)),o(t(93)),o(t(90))}]);
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=174)}([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.DataSourceWizardPageId={ChooseDataSourceTypePage:"chooseDataSourceTypePage",ConfigureMasterDetailRelationshipsPage:"configureMasterDetailRelationshipsPage"},t.SqlDataSourceWizardPageId={ChooseConnectionPage:"chooseSqlConnectionPage",ConfigureQueryPage:"configureSqlQueryPage",ConfigureParametersPage:"configureSqlParametersPage",MultiQueryConfigurePage:"multiSqlQueryConfigurePage",MultiQueryConfigureParametersPage:"multiSqlQueryConfigureParametersPage"},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"},t.FullscreenDataSourceWizardSectionId={SpecifyJsonConnectionPage:t.JsonDataSourceWizardPageId.SpecifyJsonConnectionPage,ChooseJsonSchemaPage:t.JsonDataSourceWizardPageId.ChooseJsonSchemaPage,ChooseJsonSourcePage:t.JsonDataSourceWizardPageId.ChooseJsonSourcePage,ChooseSqlConnectionPage:t.SqlDataSourceWizardPageId.ChooseConnectionPage,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";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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(3),s=r(1),c=(a=s.Disposable,i(d,a),d.prototype.dispose=function(){a.prototype.dispose.call(this),this._onChange=function(){}},d.prototype.commit=function(){return n.Deferred().resolve().promise()},d.prototype.onChange=function(e){this._onChange=e},d.prototype.initialize=function(e){return n.Deferred().resolve().promise()},d.prototype.canNext=function(){return!0},d.prototype.canFinish=function(){return!1},d);function d(){var e=null!==a&&a.apply(this,arguments)||this;return e._onChange=function(){},e}t.WizardPageBase=c;var l,i=(l=s.Disposable,i(u,l),u.prototype.dispose=function(){this.onChange=null,this[p.BaseWizard.__loadingStateFunctionName]=null,this.page.dispose(),this._initDef&&this._initDef.reject(),this._initDef=null},u.prototype.resetCommitedState=function(){this._lastCommitedState=null},u.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})},u.prototype.initialize=function(e,t){var r=this;return void 0===t&&(t=!1),this._initDef&&this._initDef.reject(),this._initDef=n.Deferred(),!this._isInitialized||t?(this._isInitialized=!0,this.page.initialize(e).fail(function(){r._isInitialized=!1,r._initDef&&r._initDef.reject()}).done(function(e){r._initDef&&r._initDef.resolve(e)})):this._initDef.resolve(),this._initDef.promise()},u);function u(e,t,r,o){var i=l.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=i;var p=r(16)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),i=r(70),a=r(1),n=r(15),r=(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:n.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:n.serializeDataConnection(e)});return this.sendRequest("getDBStoredProcedures",encodeURIComponent(e))},s.prototype.getSelectStatement=function(e,t){t=JSON.stringify({connectionJSON:n.serializeDataConnection(e),sqlQueryJSON:t});return this.sendRequest("getSelectStatement",encodeURIComponent(t))},s.prototype.getDataPreview=function(e,t){t=JSON.stringify({connectionJSON:n.serializeDataConnection(e),sqlQueryJSON:t});return this.sendRequest("getDataPreview",encodeURIComponent(t))},s.prototype.rebuildResultSchema=function(e,t,r){void 0===r&&(r=!1);r=JSON.stringify({sqlDataSourceJSON:JSON.stringify({SqlDataSource:(new a.ModelSerializer).serialize(e)}),queryName:t,relationsEditing:r});return this.sendRequest("rebuildResultSchema",encodeURIComponent(r))},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 r=t.source,t=JSON.stringify(r.serialize(!0)),t=JSON.stringify({connectionName:e,customJson:r.json(),uriJsonSourceJSON:t});return this.sendRequest("saveJsonSource",encodeURIComponent(t))},s.prototype.getJsonSchema=function(e,t){var r=e.source,o=JSON.stringify(r.serialize(!0)),t=JSON.stringify({connectionName:e.connectionName(),customJson:r.json(),uriJsonSourceJSON:o,parameters:t});return this.sendRequest("getJsonSchema",encodeURIComponent(t))},s.prototype.getObjectTypeDescriptions=function(e){return this.sendRequest("getObjectSchema",e)},s);function s(){}t.RequestWrapper=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SqlQueryType={customSqlQuery:"CustomSqlQuery",tableQuery:"SelectQuery",storedProcQuery:"StoredProcQuery"},t.JsonSourceType={fileJsonSource:"FileJsonSource",customJsonSource:"CustomJsonSource",uriJsonSource:"UriJsonSource"}},function(e,t){e.exports=DevExpress.Analytics.Widgets.Internal},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),n=r(0),s=r(0),c=r(18),d=r(0),l=r(1),u=r(0),p=r(33),f=r(111),m=r(1),h=r(0);function y(e,t,r){return n.integerValueConverter(e,t,r)}function g(e,t,r){return n.floatValueConverter(e,t,r)}function _(e){if(e instanceof Date){var t=function(e){return(e<10?"0":"")+e};return s.formatUnicorn("#{0}/{1}/{2} {3}:{4}#",t(e.getMonth()+1),t(e.getDate()),e.getFullYear(),t(e.getHours()),t(e.getMinutes()))}return(e||"").toString()}var v=(Object.defineProperty(b.prototype,"specifics",{get:function(){return c.DBColumn.GetSpecific(this.realTypeName||this.name)},enumerable:!0,configurable:!0}),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)})}var S,r=function(e){var t;try{t=d.parseDate(e)}catch(e){t=x()}return t},x=function(){var e=new Date;return e.setHours(0,0,0,0),e},v=(S=l.Disposable,i(P,S),P._getTypeValue=function(t,e){void 0===e&&(e=null);var r=P._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}},P.prototype._getTypeValue=function(e){return P._getTypeValue(e,this.resultType())},P.prototype._tryConvertValue=function(e,t){if(!P._isValueValid(e))return t.defaultValue;e=(t.valueConverter||function(e){return e})(e);return P._isValueValid(e)?e:t.defaultValue},P._isValueValid=function(e){return null!=e&&!isNaN("string"==typeof e?"":e)},P.prototype.getEditorType=function(e){return u.getEditorType(e)},P.prototype._updateValueInfo=function(e){var t=this,r=this._getTypeValue(e),o=this._tryConvertValue(this._value(),r),e=this._expressionValue.peek();this._expressionValue(null),this._value(null),this._valueInfo(h.extend({},p.parameterValueSerializationsInfo,{editor:this.getEditorType(r.name),disabled:!0===r.disableEditor,editorOptions:{onFocusOut:function(e){t.isValid(e.component.option("isValid"))}}})),this._expressionValue(e),this._value(o)},Object.defineProperty(P.prototype,"specifics",{get:function(){var t=this,e=P._typeValues.filter(function(e){return e.name===t.type()});return 0<e.length?e[0].specifics:"string"},enumerable:!0,configurable:!0}),P.validateName=function(e){return e&&!e.match(/[~`!"№;%\^:\?*\(\)&\-\+={}\[\]\|\\\/,\.<>'\s]/)},P.prototype.getInfo=function(){if(this.type){var e=h.extend(!0,[],this._serializationsInfo);return e.splice(e.indexOf(e.filter(function(e){return"value"===e.propertyName})[0]),1,this._valueInfo()),e}return this._serializationsInfo},P.prototype.isPropertyVisible=function(e){return"resultType"!==e||u.IsDataAccessExpression(this.type())},P._typeValues=[new v("System.DateTime",x(),r),new v("System.String",""),new v("System.SByte","0",y),new v("System.Int16","0",y),new v("System.Int32","0",y),new v("System.Int64","0",y),new v("System.Byte","0",y),new v("System.UInt16","0",y),new v("System.UInt32","0",y),new v("System.UInt64","0",y),new v("System.Decimal","0",g),new v("System.Double","0",g),new v("System.Single","0",g),new v("System.Boolean",!1,function(e){return void 0!==e?"true"===String(e).toLowerCase():e}),new v("System.Guid","00000000-0000-0000-0000-000000000000"),new v(u.ExpressionType,"",_),new v("System.Char","")],P);function P(e,t,r){void 0===r&&(r=p.dsParameterSerializationInfo);var o=S.call(this)||this;return o._serializationsInfo=r,o._valueInfo=a.observable(p.parameterValueSerializationsInfo),o._parametersFunctions=f.expressionFunctions,o.isValid=a.observable(!0),(t=t||new m.ModelSerializer).deserialize(o,h.extend(e,{"@ItemType":"Parameter"})),o.name=a.pureComputed({read:function(){return o._name()},write:function(e){P.validateName(e)&&o._name(e)}}),o._expressionValue=a.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=a.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=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r){var o,i=new n._SqlDataSourceWrapper(e.sqlDataSourceJSON,e.queryName,t);e.name&&i.sqlDataSource.connection.name(e.name);var a=new s.ModelSerializer;return e.customQueries&&0<e.customQueries.length&&(i.customQueries=e.customQueries.map(function(e){return i.sqlDataSource.createQuery(JSON.parse(e),a)}),(o=i.sqlDataSource.queries).push.apply(o,i.customQueries)),e.relations&&0<e.relations.length&&(o=i.sqlDataSource.relations).push.apply(o,e.relations.map(function(e){return new c.MasterDetailRelation(JSON.parse(e),a)})),i.sqlDataSource.id=r||d.guid().replace(/-/g,""),i}var i=r(36),n=r(24),s=r(1),c=r(51),d=r(0),a=r(50),l=r(23);t._restoreSqlDataSourceFromState=o,t._setRestoreSqlDataSourceFromState=function(e){return t._restoreSqlDataSourceFromState=e},t._resetRestoreSqlDataSourceFromState=function(){return t._restoreSqlDataSourceFromState=o};function u(e,t,r){return t=new a.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||d.guid().replace(/-/g,""),t}t._restoreJsonDataSourceFromState=u,t._setRestoreJsonDataSourceFromState=function(e){t._restoreJsonDataSourceFromState=e},t._resetRestoreJsonDataSourceFromState=function(){t._restoreJsonDataSourceFromState=u},t._restoreObjectDataSourceFromState=function(e,t,r){var o=new l.ObjectDataSource;return o.setState(e),r&&(o.id=r),o},t._createDefaultDataSourceWizardState=function(e,t,r){return void 0===e&&(e={}),void 0===t&&(t={jsonSource:""}),void 0===r&&(r={}),{dataSourceType:i.DataSourceType.Sql,jsonDataSourceWizard:t,sqlDataSourceWizard:e,objectDataSourceWizard:r,dataSourceId:d.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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(10),c=r(38),d=(a=s.TreeListItemViewModel,i(l,a),l.prototype.dispose=function(){a.prototype.dispose.call(this),this.queryName.dispose()},l.prototype._getTemplateName=function(){return this._getCustomizedTemplateName(!0)},l.prototype._getCustomizedTemplateName=function(e){return e?"dxd-custom-query-treelisitem":a.prototype._getTemplateName.call(this)},l);function l(){var t=null!==a&&a.apply(this,arguments)||this;return t.queryName=n.computed({read:function(){return t.data&&t.data.name},write:function(e){t.data&&t.data.name!==e&&(t.data.name=e,t.data._afterCheckToggled&&t.data._afterCheckToggled(t.data))}}),t.editingMode=n.observable(!1),t}t.CustomQueryTreeListItem=d;var u,i=(u=s.DefaultTreeListItemFactory,i(p,u),p.prototype.createItem=function(e,t,r,o,i){return"queries"===t[0]?new d(e,t,r,o,i):u.prototype.createItem.call(this,e,t,r,o,i)},p);function p(){return null!==u&&u.apply(this,arguments)||this}t.MultiQueryTreeListItemFactory=i,t.getSectionStyle=function(e,t,r){void 0===t&&(t=30),void 0===r&&(r=!0);var o="inherit",t="-"+t/2+"px";return e?{top:e===c.WizardSectionPosition.Left||e===c.WizardSectionPosition.Right||e===c.WizardSectionPosition.Top||e===c.WizardSectionPosition.TopLeft||e===c.WizardSectionPosition.TopRight?t:o,bottom:e===c.WizardSectionPosition.Left||e===c.WizardSectionPosition.Right||e===c.WizardSectionPosition.Bottom||e===c.WizardSectionPosition.BottomLeft||e===c.WizardSectionPosition.BottomRight?t:o,left:e===c.WizardSectionPosition.Top||e===c.WizardSectionPosition.Bottom||e===c.WizardSectionPosition.Left||e===c.WizardSectionPosition.TopLeft||e===c.WizardSectionPosition.BottomLeft?t:o,right:e===c.WizardSectionPosition.Top||e===c.WizardSectionPosition.Bottom||e===c.WizardSectionPosition.Right||e===c.WizardSectionPosition.TopRight||e===c.WizardSectionPosition.BottomRight?t:o,width:e===c.WizardSectionPosition.Top||e===c.WizardSectionPosition.Bottom?o:"50%",height:e===c.WizardSectionPosition.Left||e===c.WizardSectionPosition.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(){return t()}))}),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";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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(4),s=r(1),c=r(20),d=r(0),n=(a=n.ElementViewModel,i(l,a),l.prototype.getControlFactory=function(){return m.diagramControlsFactory},l);function l(e,t,r){return a.call(this,e,t,r)||this}t.DiagramElementBaseViewModel=n;var u,n=(i(p,u=n),p);function p(e,t,r){var o=u.call(this,d.extend({"@ControlType":"DiagramElement"},e),t,r)||this;return o.connectingPoints=s.deserializeArray(e&&e.ConnectingPoints||[],function(e){return new f.ConnectingPointViewModel(e,o,r)}),void 0===o.text()&&o.text(o.name()),o}t.DiagramElementViewModel=n,t.diagramElementSerializationInfo=[c.size,c.location,c.name,c.text,{propertyName:"type",modelName:"@Type"}];var f=r(30),m=r(47)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(8),o=r(1),a=r(0);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.serializeDataConnection=function(e){var t=new o.ModelSerializer,r={DataConnection:t.serialize(e)};return e.options&&a.extend(r,{ConnectionOptions:t.serialize(e.options)}),JSON.stringify(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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(1),c=r(76),d=r(37),l=r(1),u=r(13),i=(a=s.Disposable,i(p,a),p.prototype._createLoadingState=function(e){var t=this;e[p.__loadingStateFunctionName]||(e[p.__loadingStateFunctionName]=function(e){return t._loadingState(e)})},p.prototype._createNextAction=function(e){var t=this;e[p.__nextActionFunctionName]||(e[p.__nextActionFunctionName]=function(){return t.nextAction()})},p.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))},p.prototype._callBeforeFinishHandler=function(e,t){this.events.call("beforeFinish",{state:e})},p.prototype._callAfterFinishHandler=function(e,t){this.events.call("afterFinish",{state:e})},p.prototype.onFinish=function(){this.iterator.dispose()},p.prototype.initialize=function(e,t){void 0===e&&(e={}),void 0===t&&(t=function(e,t){return new d.PageIterator(e,t)}),this.events.call("beforeInitialize",{wizard:this,state:e}),this.stateManager=new c.StateManager(e,this.pageFactory),this.iterator=t(this.pageFactory,this.stateManager),this.events.call("afterInitialize",{wizard:this})},p.prototype.isFirstPage=function(){return this._currentPage()&&this._currentPage().pageId==this.iterator.getNextPageId()},p.prototype.canNext=function(){return!this.isLoading()&&this._currentPage()&&this.pageFactory.getMetadata(this._currentPage().pageId).canNext(this._currentPage().page)},p.prototype.canFinish=function(){return!this.isLoading()&&this._currentPage()&&this.pageFactory.getMetadata(this._currentPage().pageId).canFinish(this._currentPage().page)},p.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))},p.prototype.start=function(){var e=this;this.events.call("beforeStart",{wizard:this}),this._loadingState(!0);var t=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)})},p.prototype.canRunWizard=function(){return!0},p.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)}))},p.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)}))},p.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)})},p.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))}))},p.__loadingStateFunctionName="__loadingState",p.__nextActionFunctionName="__nextAction",p);function p(e,t){var r=a.call(this)||this;return r.pageFactory=e,r.events=new l.EventManager,r._loadingTimeout=null,r.isLoading=n.observable(!1),r._currentPage=n.observable(),r.isVisible=n.observable(!1),r._finishCallback=t,r._disposables.push(r.events),r}t.BaseWizard=i},function(e,t){e.exports={default:""}},function(e,t,r){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!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";var i=(a.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"}},a.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"}},a);function a(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=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});var o=r(6),i=r(0),a=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:a.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,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(31);(r=t.PointSide||(t.PointSide={}))[r.East=0]="East",r[r.South=1]="South",r[r.North=2]="North",r[r.West=3]="West",t.determineConnectingPoints=function(e,t){var r,o={start:null,end:null};return t.leftConnectionPoint.location.x()>e.rightConnectionPoint.location.x()+2*i.RoutedConnectorViewModel.GRID_SIZE?(o.start=e.rightConnectionPoint,o.end=t.leftConnectionPoint):e.leftConnectionPoint.location.x()>t.rightConnectionPoint.location.x()+2*i.RoutedConnectorViewModel.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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),r=r(4),i=(a=r.SurfaceElementBase,i(s,a),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=a.call(this,e,t,s._unitProperties)||this;return r.template="dx-diagram-connection-point",r.selectiontemplate="dx-diagram-connection-point",r.relativeX=n.pureComputed(function(){return r.rect().left-r.parent.rect().left}),r.relativeY=n.pureComputed(function(){return r.rect().top-r.parent.rect().top}),r}t.ConnectionPointSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(1),c=r(0),i=(a=s.Disposable,i(d,a),d.prototype.setState=function(e){this.ctor=e.ctor,this.dataMember=e.dataMember,this.selectedType=e.selectedType,this.id=c.guid().replace(/-/g,""),this.name(e.dataSourceName)},d);function d(){var e=null!==a&&a.apply(this,arguments)||this;return e.name=n.observable(),e}t.ObjectDataSource=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),n=r(3),s=r(74),c=r(9),d=r(1),l=r(7),u=r(12),p=r(77),f=r(121),m=r(0),h=r(1),y=r(78),g=r(15),_=r(16),v=r(79),b=r(34),S=r(35),x=r(32),P=r(75),C=r(5),T=r(0),O=r(0),r=(Object.defineProperty(I.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:!0,configurable:!0}),I.prototype.saveCustomQueries=function(){var t=new d.ModelSerializer;return 0<this.customQueries.length&&this.customQueries.map(function(e){return JSON.stringify(t.serialize(e))})},I.prototype.save=function(){return JSON.stringify((new d.ModelSerializer).serialize(this.sqlDataSource))},I);function I(e,r,t){var o=this;this.sqlDataSourceJSON=e,this.customQueries=[],this.sqlDataSource=new s.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}t._SqlDataSourceWrapper=r;var N,D=(N=l.WizardPageBase,i(E,N),E.prototype.canNext=function(){return!this.queryControl().isNextDisabled()},E.prototype.canFinish=function(){return!this.queryControl().isFinishDisabled()||!this.queryControl().isNextDisabled()},E.prototype.runQueryBuilder=function(){var e=this.queryControl().getQuery();e&&e.type()===c.SqlQueryType.tableQuery?(e.name(this.queryName()),this.popupQueryBuilder.show(e,this._dataSource())):this.popupQueryBuilder.show(new b.TableQuery({"@Name":this.queryName()},this._dataSource()),this._dataSource())},E.prototype.localizeQueryType=function(e){return E.QUERY_TEXT===e?h.getLocalization(E.QUERY_TEXT,"DataAccessUIStringId.WizardPageConfigureQuery_Query"):h.getLocalization(E.SP_TEXT,"DataAccessUIStringId.WizardPageConfigureQuery_StoredProcedure")},E.prototype.initialize=function(e){return this._dataSourceWrapper=u._restoreSqlDataSourceFromState(e,this._options.requestWrapper),this._proceduresList.setQuery(new S.StoredProcQuery({},this._dataSource())),this._selectStatementControl.setQuery(new x.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()===c.SqlQueryType.storedProcQuery?E.SP_TEXT:E.QUERY_TEXT),this.queryControl().setQuery(this._dataSourceWrapper.sqlQuery)):(this.selectedQueryType(E.QUERY_TEXT),n.Deferred().resolve().promise())},E.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(P.generateQueryUniqueName(this._dataSource().queries(),t)),this._dataSourceWrapper.sqlQuery=t),n.Deferred().resolve({queryName:this._dataSourceWrapper.sqlQuery.name(),sqlDataSourceJSON:this._dataSourceWrapper.save()}).promise()},E.QUERY_TEXT="Query",E.SP_TEXT="Stored Procedure",E);function E(e){var r=N.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 h.getLocalization("Query Name","AnalyticsCoreStringId.SqlDSWizard_QueryName")+":"},r.queryControl=a.observable(),r.runQueryBuilderBtnText=a.pureComputed(function(){return r._selectStatementControl.sqlString()&&r._selectStatementControl.getQuery().type()!==c.SqlQueryType.tableQuery?h.getLocalization("Create New Query...","AnalyticsCoreStringId.SqlDSWizard_CreateNewQuery"):h.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&&m.formatUnicorn(h.getLocalization("Type custom query name (current name: {0})","AnalyticsCoreStringId.SqlDSWizard_QueryNamePlaceholder"),e)},r.queryName=a.observable(""),r.queryTypeItems=[E.QUERY_TEXT,E.SP_TEXT],r.selectedQueryType=a.observable(),r.initialName="",r._proceduresList=new p.StoredProceduresQueryControl,r._disposables.push(r._selectStatementControl=new f.SelectStatementQueryControl(new y.SelectQuerySqlTextProvider(g.wrapGetSelectStatement(r._options.callbacks.selectStatement),r._connection),r._options.disableCustomSql)),r._disposables.push(r.selectedQueryType.subscribe(function(e){e===E.SP_TEXT?(r[_.BaseWizard.__loadingStateFunctionName]&&r[_.BaseWizard.__loadingStateFunctionName](!0),r._dataSource().dbSchemaProvider.getDbStoredProcedures().done(function(e){r._proceduresList.storedProcedures([]),r._proceduresList.storedProcedures(e)}).always(function(e){return r[_.BaseWizard.__loadingStateFunctionName]&&r[_.BaseWizard.__loadingStateFunctionName](!1)}),r.queryControl(r._proceduresList)):r.queryControl(r._selectStatementControl)})),r.selectedQueryType(E.QUERY_TEXT),r.popupQueryBuilder=new v.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=D,t._registerConfigureQueryPage=function(e,t){e.registerMetadata(C.SqlDataSourceWizardPageId.ConfigureQueryPage,{create:function(){return new D(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:T.isCustomizedWithUpdateLocalizationMethod("Create a query or select a stored procedure")||h.getLocalization("Create a query or select a stored procedure.",O.StringId.WizardPageConfigureQuery)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r=r(6);t.editorTemplates=new r.EditorTemplates},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(44),r=r(25);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});r=r(1);t.controlsFactory=new r.ControlsFactory},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(4),s=r(27),i=(a=n.ElementViewModel,i(c,a),c.prototype.getControlFactory=function(){return s.controlsFactory},c);function c(e,t,r){return a.call(this,e,t,r)||this}t.QueryElementBaseViewModel=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(4),c=r(0),s=(a=s.SurfaceElementBase,i(d,a),d._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}},d);function d(e,t,r){var o=a.call(this,e,t,c.extend({},d._unitProperties,r))||this;return o.template="dx-diagram-element",o.selectiontemplate="dx-diagram-element-selection",o.contenttemplate="dx-diagram-element-content",o.margin=n.observable(0),o._disposables.push(o.positionWidthWithoutMargins=n.pureComputed(function(){return o.position.width()-2*o.margin()})),o._disposables.push(o.positionLineHeightWithoutMargins=n.pureComputed(function(){return o.position.lineHeight()-2*o.margin()})),o}t.DiagramElementBaseSurface=s;var l,s=(i(u,l=s),u.prototype._getChildrenHolderName=function(){return"connectingPoints"},u);function u(e,t){t=l.call(this,e,t,null)||this;return t.contenttemplate="dxdd-element-content-with-connecting-points",t}t.DiagramElementSurface=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(4),c=r(21),d=r(14),l=r(4),u=r(1),p=r(0),i=(a=d.DiagramElementBaseViewModel,i(f,a),f);function f(e,t,r){var o=a.call(this,p.extend({"@ControlType":"ConnectingPoint"},e),t,r)||this;return o.side=n.pureComputed(function(){return o.percentOffsetY()>=o.percentOffsetX()?o.percentOffsetY()>1-o.percentOffsetX()?c.PointSide.South:c.PointSide.West:o.percentOffsetY()>1-o.percentOffsetX()?c.PointSide.East:c.PointSide.North}),o.size=new l.Size(7,7),o.location=new s.Point(0,0),o.location.x=n.pureComputed(function(){var e=o.parentModel();return e.location.x()+e.size.width()*o.percentOffsetX()}),o.location.y=n.pureComputed(function(){var e=o.parentModel();return e.location.y()+e.size.height()*o.percentOffsetY()}),o}t.ConnectingPointViewModel=i,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";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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(64),f=r(4),m=r(21),c=r(0),i=(a=s.ConnectorViewModel,i(h,a),h.prototype.getX=function(){var t=a.prototype.getX.call(this);return this.routePoints&&this.routePoints().forEach(function(e){e.x()<t&&(t=e.x())}),t},h.prototype.getY=function(){var t=a.prototype.getY.call(this);return this.routePoints&&this.routePoints().forEach(function(e){e.y()<t&&(t=e.y())}),t},h.prototype.getWidth=function(){var t=a.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},h.prototype.getHeight=function(){var t=a.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)},h.prototype._fixPoint=function(e,t){switch(t){case m.PointSide.North:e.y(e.y()-h.GRID_SIZE);break;case m.PointSide.East:e.x(e.x()+h.GRID_SIZE);break;case m.PointSide.West:e.x(e.x()-h.GRID_SIZE);break;case m.PointSide.South:e.y(e.y()+h.GRID_SIZE)}},h.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},h.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},h.prototype._getRatio=function(e){for(var t=this._getPower(e),r=Math.pow(2,t),o=Math.pow(2,t-1),i=[],a=1;a<o;a++)a%2!=0&&(i.push(r-a),i.push(a));return i.reverse(),(i[e-o]||1)/r},h.prototype.beginUpdate=function(){this._isUpdating=!0},h.prototype.endUpdate=function(){this._isUpdating=!1},h.GRID_SIZE=10,h);function h(e,t,r){var p=a.call(this,c.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=n.observable(1),p.routePoints=n.observable([]),p.freezeRoute=n.observable(!1),p._disposables.push(n.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(n.computed(function(){var e,t,r,o,i,a,n,s,c,d,l,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()),a=Math.min(o.x(),i.x()),n=Math.min(o.y(),i.y()),s=Math.abs(o.x()-i.x()),c=Math.abs(o.y()-i.y()),d=p.seriesNumber(),l=p._getRatio(d),u=(d-1)*h.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!==d&&(s+=u,e.push(new f.Point(a+s,n+c))),e.push(new f.Point(a+s,n))):(e.push(new f.Point(a+s,n+c*l)),e.push(new f.Point(a,n+c*l))):r===m.PointSide.South||r===m.PointSide.West?e.push(new f.Point(a,n+c)):(e.push(new f.Point(a+s*l,n+c)),e.push(new f.Point(a+s*l,n))):t===m.PointSide.North||t===m.PointSide.West?r===m.PointSide.North||r===m.PointSide.West?(1!==d&&(a-=u,e.push(new f.Point(a,n+c))),e.push(new f.Point(a,n))):(e.push(new f.Point(a,n+c*l)),e.push(new f.Point(a+s,n+c*l))):r===m.PointSide.South||r===m.PointSide.East?e.push(new f.Point(a+s,n+c)):(e.push(new f.Point(a+s*l,n+c)),e.push(new f.Point(a+s*l,n))):0<o.x()-i.x()?t===m.PointSide.South||t===m.PointSide.East?r===m.PointSide.South||r===m.PointSide.East?(1!==d&&(s+=u,e.push(new f.Point(a+s,n))),e.push(new f.Point(a+s,n+c))):(e.push(new f.Point(a+s,n+c*l)),e.push(new f.Point(a,n+c*l))):r===m.PointSide.North||r===m.PointSide.West?e.push(new f.Point(a,n)):(e.push(new f.Point(a+s*l,n)),e.push(new f.Point(a+s*l,n+c))):t===m.PointSide.South||t===m.PointSide.West?r===m.PointSide.South||r===m.PointSide.West?(1!==d&&(a-=u,e.push(new f.Point(a,n))),e.push(new f.Point(a,n+c))):(e.push(new f.Point(a,n+c*l)),e.push(new f.Point(a+s,n+c*l))):r===m.PointSide.North||r===m.PointSide.East?e.push(new f.Point(a+s,n)):(e.push(new f.Point(a+s*l,n)),e.push(new f.Point(a+s*l,n+c))),p.endPoint().connectingPoint()&&e.push(i),p.routePoints(e))})),p}t.RoutedConnectorViewModel=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=r(9),a=r(1),n=r(1),s=r(11),c=r(112),d=r(0),r=(l.prototype.getInfo=function(){return c.customQuerySerializationsInfo},l.prototype.generateName=function(){return"CustomSqlQuery"},l);function l(e,t,r){this.parent=t,(r||new a.ModelSerializer).deserialize(this,d.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.customSqlQuery}),this.parameters=n.deserializeArray(e.Parameters,function(e){return new s.DataSourceParameter(e,r)})}t.CustomSqlQuery=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(11),i=r(1),a=r(6),n=r(0),s=r(0);t.dsParameterNameValidationRules=[{type:"custom",validationCallback:function(e){return o.DataSourceParameter.validateName(e.value)},get message(){return i.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:a.editorTemplates.getEditor("text")};var c={propertyName:"name",displayName:"Name",localizationId:"DevExpress.DataAccess.Parameter.Name",validationRules:t.dsParameterNameValidationRules,editor:a.editorTemplates.getEditor("text")},d={propertyName:"type",displayName:"Type",localizationId:"DevExpress.DataAccess.Parameter.Type",modelName:"@Type",editor:a.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"}]},l={propertyName:"resultType",displayName:"Result Type",localizationId:"DataAccessWebStringId.QueryBuilder_ResultType",modelName:"@ResultType",editor:a.editorTemplates.getEditor("combobox"),valuesArray:d.valuesArray.filter(function(e){return!n.IsDataAccessExpression(e.value)})},u=[{propertyName:"_name",modelName:"@Name"},{propertyName:"_value",modelName:"#text"},t.parameterValueSerializationsInfo,{propertyName:"itemType",modelName:"@ItemType"}];t.dsParameterSerializationInfo=[c,d,l].concat(u);var p=[{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=s.extend(!0,{},d),r=[];r.push(d.valuesArray.filter(function(e){return e.value===t})[0]||p.filter(function(e){return e.value===t})[0]),r.push(d.valuesArray.filter(function(e){return n.IsDataAccessExpression(e.value)})[0]),e.valuesArray=r;var o=s.extend(!0,{},l);return o.valuesArray=r.slice(0,0),o.disabled=!0,[s.extend({disabled:!0},c),e,o].concat(u)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=r(9),a=r(1),n=r(1),s=r(11),c=r(115),d=r(0),r=(l.prototype.tables=function(){return this._tablesObject.tables()},l.prototype.getInfo=function(){return c.tableQuerySerializationsInfo},l.prototype.generateName=function(){return 0<this.tables().length?this.tables()[0].alias()||this.tables()[0].name():"SelectQuery"},l);function l(e,t,r){this.parent=t,(r||new a.ModelSerializer).deserialize(this,d.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.tableQuery}),this.parameters=n.deserializeArray(e.Parameters,function(e){return new s.DataSourceParameter(e,r)})}t.TableQuery=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=r(9),a=r(1),n=r(1),s=r(11),c=r(0),d=r(33),l=r(116),u=r(0),r=(p.prototype.getInfo=function(){return l.storedProcQuerySerializationsInfo},p.prototype.generateName=function(){return this.procName()||"Query"},p);function p(e,t,r){this.parent=t,(r||new a.ModelSerializer).deserialize(this,u.extend(e,{"@ItemType":"Query"})),this.type=o.pureComputed(function(){return i.SqlQueryType.storedProcQuery}),this.parameters=n.deserializeArray(e.Parameters,function(e){var t=e["@Type"];return c.IsDataAccessExpression(t)&&(t=e["@ResultType"]||t),new s.DataSourceParameter(e,r,d.storedProcParameterSerializationsInfo(t))})}t.StoredProcQuery=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(1),d=r(7),l=r(16),u=r(0),p=r(5);(r=a=t.DataSourceType||(t.DataSourceType={}))[r.NoData=0]="NoData",r[r.Sql=1]="Sql",r[r.Json=2]="Json",r[r.Object=3]="Object";var f=function(e,t,r,o,i){this.text=c.getLocalization(e,t),this.imageClassName=r,this.imageTemplateName=o,this.type=i};t.TypeItem=f;var m,h=(m=d.WizardPageBase,i(y,m),y.prototype.canNext=function(){return null!=this.selectedItem()},y.prototype.canFinish=function(){return!1},y.prototype._goToNextPage=function(){this[l.BaseWizard.__nextActionFunctionName]&&this[l.BaseWizard.__nextActionFunctionName]()},y.prototype.commit=function(){return s.Deferred().resolve({dataSourceType:this.selectedItem().type}).promise()},y.prototype._createTypeItems=function(){var e=[];return this._dataSourceTypeOptions.sqlDataSourceAvailable&&e.push(new f("Database","DataAccessUIStringId.DSTypeSql","sqldatasource","dxrd-svg-wizard-SqlDataSource",a.Sql)),this._dataSourceTypeOptions.jsonDataSourceAvailable&&e.push(new f("JSON","DataAccessUIStringId.DSTypeJson","jsondatasource","dxrd-svg-wizard-JsonDataSource",a.Json)),this._dataSourceTypeOptions.objectDataSourceAvailable&&e.push(new f("Object","DataAccessUIStringId.DSTypeObject","objectdatasource","dxrd-svg-wizard-ObjectDataSource",a.Object)),e},y.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(u.findFirstItemMatchesCondition(this.typeItems,function(e){return e.type===t}))):this.selectedItem(null),s.Deferred().resolve().promise()},y);function y(e){var t=m.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=n.observable(),t.typeItems=t._createTypeItems(),t._disposables.push(t.selectedItem.subscribe(function(){return t._onChange()})),t._extendCssClass=s.noop,t}t.ChooseDataSourceTypePage=h,t._registerChooseDataSourceTypePage=function(e,t){e.registerMetadata(p.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 h(t)},description:c.getLocalization("Select the data source type.","DataAccessUIStringId.WizardPageChooseDSType"),template:"dxrd-page-choose-datasource-type"})}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(3),s=r(1),c=r(7),i=(a=s.Disposable,i(d,a),d.prototype.dispose=function(){this._pages.forEach(function(e){return e.dispose()}),this._pages=[]},d.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)},d.prototype._nextPage=function(){return this._pages[this._currentIndex+1]},d.prototype._getNextExistingPage=function(){this._currentIndex+=1;var e=n.Deferred();return e.resolve(this._pages[this._currentIndex]),e.promise()},d.prototype._resetPages=function(){this.__resetPages(this._currentIndex+1)},d.prototype._getNextNewPage=function(e){this._currentIndex+=1;var t=n.Deferred();this.__resetPages(this._currentIndex);var r=this.pageFactory.getMetadata(e),r=new c._WrappedWizardPage(e,r.create(),r.template,r.description);return this._pages.push(r),t.resolve(r),t.promise()},d.prototype._getStartPage=function(e){e=e||this.getNextPageId();var t=this.pageFactory.getMetadata(e),t=new c._WrappedWizardPage(e,t.create(),t.template,t.description);return this._pages.push(t),t},d.prototype._getNextPage=function(){var e=this._getCurrentPage();if(!e.isChanged&&this._nextPage())return this._getNextExistingPage();var t=this.getNextPageId(this._getCurrentPage().pageId);return t?(e.isChanged=!1,this._getNextNewPage(t)):n.Deferred().reject().promise()},d.prototype._getPreviousPage=function(){var e=n.Deferred();return this._currentIndex-1<0?e.reject(null):(--this._currentIndex,e.resolve(this._pages[this._currentIndex])),e.promise()},d.prototype._goToPage=function(t){var e=n.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()},d.prototype._getCurrentPage=function(){return this._pages[this._currentIndex]},d.prototype._getCurrentState=function(){return this.stateManager.getCurrentState()},d.prototype.getNextPageId=function(e){return""},d);function d(e,t,r){void 0===r&&(r=function(){});var o=a.call(this)||this;return o.pageFactory=e,o.stateManager=t,o._onResetPage=r,o._pages=[],o._currentIndex=0,o}t.PageIterator=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),n=r(3),s=r(7),c=r(13),d=r(117),l=r(118),u=r(16),p=r(1),f=r(0);(r=t.WizardSectionPosition||(t.WizardSectionPosition={}))[r.Left=1]="Left",r[r.TopLeft=2]="TopLeft",r[r.BottomLeft=3]="BottomLeft",r[r.Right=4]="Right",r[r.TopRight=5]="TopRight",r[r.BottomRight=6]="BottomRight",r[r.Top=7]="Top",r[r.Bottom=8]="Bottom";var m,i=(m=s.WizardPageBase,i(h,m),h.prototype.dispose=function(){this._sectionsProcessor.dispose(),this._factory.reset(),this._sections=[]},h.prototype._patchOnChange=function(){var t=this;Object.keys(this._factory.metadata).forEach(function(e){t._factory.metadata[e].onChange=function(){return t._onChange()}})},h.prototype._getPageStyle=function(e,t){return void 0===t&&(t=!0),c.getSectionStyle(e,this._defaultMargin,t)},h.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=[]},h.prototype._setSectionPosition=function(e,t){this._pageCss[e]=a.observable(this._getPageStyle(t))},h.prototype.registerSections=function(){},h.prototype.canNext=function(){return this._sectionsProcessor.sections.every(this._sectionCondition)},h.prototype._sectionCondition=function(e){return e.metadata.required?e.page()&&e.metadata.canNext(e.page().page):!e.page()||e.metadata.canNext(e.page().page)},h.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},h.prototype.setSectionPosition=function(e,t){var r=this;this._sectionPositions.push(function(){r._setSectionPosition(e,t)})},h.prototype.registerSection=function(e,t){var r=this;this._sectionsToRegister.push(function(){r._factory.registerMetadata(e,t)})},h.prototype.unregisterSection=function(e){var t=this;this._sectionsToUnregister.push(function(){return t._factory.unregisterMetadata(e)})},h.prototype._loadPanelViewModel=function(e){return!1},h.prototype.getNextSectionId=function(e){},h.prototype.initialize=function(e){var t=this;return this.registerSections(),this._applyCustomizations(),this._sectionsProcessor.initialize(f.extend(!0,{},e)),this._stateManager=this._sectionsProcessor.stateManager,this._sectionsProcessor.iterator.getNextPageId=function(e){return t.getNextSectionId(e)},this._sectionsProcessor.start(),n.Deferred().resolve().promise()},h.prototype._beforeStart=function(){},h.prototype.commit=function(){var e=this,t=n.Deferred();return this._sectionsProcessor.finishAction().done(function(){t.resolve(f.extend(!0,{},e._stateManager.getCurrentState()))}),t.promise()},h.prototype._getPageDescription=function(e,t){return e+1+". "+t.metadata.description},h.prototype._showPageDescription=function(){return 1<this._sections.length},h);function h(){var t=m.call(this)||this;return t._sectionsToUnregister=[],t._sectionsToRegister=[],t._sectionPositions=[],t._initInProgress=a.observable(!1),t._defaultMargin=30,t._parentMarginOffset=t._defaultMargin+t._defaultMargin/2,t._pageCss={},t.events=new p.EventManager,t._factory=new d.WizardPageSectionFactory,t._sectionsProcessor=new l.WizardPageProcessor(t._factory,function(e){t[u.BaseWizard.__loadingStateFunctionName]&&t[u.BaseWizard.__loadingStateFunctionName](e)},function(){return t[u.BaseWizard.__nextActionFunctionName]&&t[u.BaseWizard.__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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=(i.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},i.prototype.getMetadata=function(e){return this.metadata[e]},i.prototype.unregisterMetadata=function(e){delete this.metadata[e]},i.prototype.reset=function(){this.metadata={}},i);function i(){this.metadata={}}t.PageFactory=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(12),l=r(85),u=r(8),p=r(50),f=r(1),m=r(1),h=r(5),y=(a=c.WizardPageBase,i(g,a),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 p.JsonDataSource({});this._selectedSource().applySettings(e);e=(new f.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=d._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 u.RequestWrapper);var r=a.call(this)||this;r._requestWrapper=e,r.__validationGroup=null,r.__validationSummary=null,r._jsonSourceTitle=m.getLocalization("JSON Source:","DataAccessUIStringId.WizardPageChooseJsonSource_SourceType"),r._jsonConnectionTitle=m.getLocalization("Connection Name:","AnalyticsCoreStringId.ReportDesigner_Wizard_Json_ConnectionName"),r._connectionNameValidationRules=[{type:"required",get message(){return l.getLocalizedValidationErrorMessage(null,this._jsonConnectionTitle)}}],r._connectionName=n.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 l.JsonDataSourceJsonSourcePageStringSettings),r._jsonStringSettings.onChange(function(){return r._onChange()}),r._disposables.push(r._jsonUriSetting=new l.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"}];var o=n.observable();return r._selectedSource=n.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=y,t._registerChooseJsonSourcePage=function(e,t,r){e.registerMetadata(h.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 y(t,r&&r())},description:m.getLocalization("Create a data connection.","AnalyticsCoreStringId.JsonDSWizard_CreateNewConnectionPage_Description"),template:"dxrd-page-jsonsource"})}},function(e,s,t){"use strict";var o,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(s,"__esModule",{value:!0});var c=t(2),n=t(3),d=t(1);s.defaultObjectDataSourceItemSpecifics="Default";var i=(a.prototype.unChecked=function(){return!1===this.checked()},a.prototype.toggleChecked=function(){this.setChecked(!this.checked.peek()),this._afterCheckToggled(this)},a.prototype.setChecked=function(e){this._checked(e)},a);function a(e,t,r,o,i){void 0===o&&(o=!1);var a=this;this.name=e,this.displayName=t,this.specifics=r,this.checked=c.pureComputed(function(){return a._checked()}),this.isList=!1,this._checked=c.observable(o),this._afterCheckToggled=i||n.noop}s.TreeNodeBase=i;var l,u=(r(p,l=i),p);function p(e,t,r,o,i,a){void 0===o&&(o=!1),void 0===i&&(i=null);a=l.call(this,e,t,r,o,a)||this;return a.name=e,a.displayName=t,a.specifics=r,a.hasQuery=!1,a.arguments=i,a}s.TreeLeafNode=u;var f,m=(r(h,f=i),h.prototype.initialized=function(){return 0<this.children().length},h.prototype.setChecked=function(t){this._checked(t),this.children.peek().forEach(function(e){e.setChecked(t)})},h.prototype.initializeChildren=function(e){this.children(e||[])},h);function h(e,t,r,o,i){var a=f.call(this,e,t,r,o,i)||this;return a.countChecked=c.pureComputed(function(){for(var e=0,t=0;t<a.children().length;t++)if(!a.children()[t].unChecked()){if(1<e)break;e++}return e}),a.isList=!0,a.children=c.observableArray([]),a.checked=c.pureComputed({read:function(){if(a.initialized()){var t=0,r=0;return a.children().forEach(function(e){!0===e.checked()?t++:!1!==e.checked()&&r++}),(0!==t||0!==r)&&(t===a.children.peek().length||void 0)}return a._checked()}}),a}s.TreeNode=m;var y,t=(r(g,y=m),g);function g(e,t,r,o,i){var a=y.call(this,e,t,r,o,i)||this;return a.countChecked=c.pureComputed(function(){var e=0;a.hasParamsToEdit(!1);for(var t=0;t<a.children().length;t++){var r=a.children()[t];if(!r.unChecked()){if(1<e)break;e++,r.arguments&&0<r.arguments.length&&a.hasParamsToEdit(!0),"query"===r.specifics&&a.hasParamsToEdit(!0)}}return e}),a.hasParamsToEdit=c.observable(!1),a}s.ParameterTreeNode=t;var _,t=(r(v,_=t),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)},v);function v(e,t,r,o,i,a){var n=_.call(this,e,t,r,o,a)||this;return n.addAction={clickAction:function(e){return n.disableCustomSql()?n.addQuery():n.showPopover()},imageClassName:"dxrd-image-add",imageTemplateName:"dxrd-svg-operations-add",templateName:"dx-treelist-action-with-popover",text:d.getLocalization("Add query","AnalyticsCoreStringId.SqlDSWizard_AddQuery")},n.itemClickAction=function(e){n.popoverVisible(!1),e.itemData.addAction()},n.popoverVisible=c.observable(!1),n.addQuery=function(){i().showQbCallBack()},n.addCustomQuery=function(){i().showQbCallBack(null,!0)},n.disableCustomSql=function(){return i&&i().disableCustomSql},n}s.QueriesTreeNode=t;var b,u=(r(S,b=u),S.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})})},S.prototype.getActions=function(e){var t=[];return t.push(this.removeAction),t.push(this.editAction),t},S);function S(e,t,r,o,i,a,n,s){var c=b.call(this,e,t,r,o,null,n)||this;return c.query=s,c.editAction={clickAction:function(e){return c.editQuery()},imageClassName:"dx-image-edit",imageTemplateName:"dxrd-svg-operations-edit",text:d.getLocalization("Edit query","AnalyticsCoreStringId.SqlDSWizard_EditQuery")},c.removeAction={clickAction:function(e){c.removeQuery({model:e.data})},imageClassName:"dxrd-image-recycle-bin",imageTemplateName:"dxrd-svg-operations-recycle_bin",text:d.getLocalization("Remove query","AnalyticsCoreStringId.SqlDSWizard_RemoveQuery")},c.parameters=i,c.removeQuery=function(e){e.model.unChecked()||e.model.toggleChecked(),a().deleteAction(e.model.name)},c.editQuery=function(e){a().showQbCallBack(c.name)},c.hasQuery=!0,c}s.TreeQueryNode=u;var x,i=(r(P,x=i),P);function P(e,t,r,o,i,a){a=x.call(this,e,t,r,o,a)||this;return a.visible=c.observable(!0),a.path=i,a.isComplex=r===s.defaultObjectDataSourceItemSpecifics,a}s.FieldTreeNode=i;var C,m=(r(T,C=m),T.prototype.setChecked=function(e){C.prototype.setChecked.call(this,!!this.visible()&&e)},T);function T(e,t,r,o,i,a){var n=C.call(this,e,t,r,o,a)||this;return n.visible=c.observable(!0),n.path=i,n.isComplex=n.isList&&r===s.defaultObjectDataSourceItemSpecifics,n.checked=c.pureComputed({read:function(){if(n.initialized()){var t=0,r=0,e=n.children().filter(function(e){return e.visible()});return e.forEach(function(e){!0===e.checked()?t++:!1!==e.checked()&&r++}),(0!==t||0!==r)&&(t===e.length||void 0)}return n._checked()}}),n}s.DataMemberTreeNode=m},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(16),d=r(1),l=r(0),u=r(6),i=(a=c.BaseWizard,i(p,a),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:d.getLocalization("Loading...","AnalyticsCoreStringId.Loading"),visible:t,shading:!0,shadingColor:"transparent",position:{of:e},container:e}},p.prototype.start=function(){a.prototype.start.call(this),this.isVisible(!0)},p.prototype._wizardPopupPosition=function(e){return{of:l.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=a.call(this,e,t)||this;return r.height=n.observable(505),r.width=n.observable(690),r._extendCssClass="",r._container=l.getParentContainer,r.itemsProvider=n.observable(),r.nextButton={text:d.getLocalization("Next","AnalyticsCoreStringId.Wizard_Next"),disabled:n.computed(function(){return!r.canNext()}),onClick:function(){return r.nextAction()}},r.cancelButton={text:d.getLocalization("Cancel","AnalyticsCoreStringId.SearchDialog_Cancel"),onClick:function(){return r.isVisible(!1)}},r.previousButton={text:d.getLocalization("Previous","AnalyticsCoreStringId.Wizard_Previous"),disabled:n.computed(function(){return r.isFirstPage()}),onClick:function(){return r.previousAction()}},r.finishButton={text:d.getLocalization("Finish","AnalyticsCoreStringId.Wizard_Finish"),disabled:n.computed(function(){return!r.canFinish()}),onClick:function(){return r.finishAction()}},r._titleTemplate=u.getTemplate("dx-wizard-headerNew"),r.title="Popup Wizard",r}t.PopupWizard=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),n=r(3),i=r(26),s=r(0);function a(e){return e.aggregate()!==i.AggregationType.None}t.isAggregatedExpression=a;c._createTableInfo=function(e){return{displayName:e.actualName(),name:e.actualName(),isList:!0,specifics:"Default",collapsed:o.observable(!0)}},c._createColumnInfo=function(e,t){return{displayName:t.getColumnName(e),isList:!1,specifics:t.getSpecifics(e),dataType:t.getDataType(e),name:t.getColumnName(e)}},c.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()}},c.groupByObjectsFilter={filterColumns:function(e){return e.filter(a)},filterTables:function(e){return e.filter(function(e){return e.columns().some(a)})},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=c;function c(i,a){this.getItems=function(t){var e,r=n.Deferred(),o=[];return o=""===t.fullPath?a.filterTables(i().tables()).map(c._createTableInfo):(e=s.findFirstItemMatchesCondition(i().tables(),function(e){return e.actualName()===t.fullPath}),a.filterColumns(e&&e.columns()||[]).map(function(e){return c._createColumnInfo(e,a)})),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 r=s.find(i().tables(),function(e){return 0===t.indexOf(e.actualName()+".")});if(r){var e=s.find(a.filterColumns(r.columns()||[]),function(e){return t===r.actualName()+"."+a.getColumnName(e)});return e?c._createColumnInfo(e,a):null}}return null}}t.QueryBuilderObjectsProvider=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(25),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){e.exports=DevExpress.Analytics.Criteria},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParametersMode={ReadWrite:"ReadWrite",Read:"Read",Disabled:"Disabled"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(20),a=r(4),n=r(4),s=r(100),c=r(14),d=r(29),l=r(64),u=r(48),p=r(31),f=r(65),m=r(22),h=r(66),y=r(67),g=r(30),_=r(63),v=r(6);t.diagramControlsFactory=new o.ControlsFactory,t.registerControls=function(){t.diagramControlsFactory.registerControl("Unknown",{info:i.unknownSerializationsInfo,type:a.ElementViewModel,nonToolboxItem:!0,surfaceType:n.SurfaceElementBase}),t.diagramControlsFactory.registerControl("Connector",{info:[i.name,{propertyName:"location",displayName:"Location",editor:v.editorTemplates.getEditor("objecteditor")},{propertyName:"startPoint",modelName:"@StartPoint",link:!0},{propertyName:"endPoint",modelName:"@EndPoint",link:!0}],surfaceType:s.ConnectorSurface,type:l.ConnectorViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("RoutedConnector",{info:[i.name,{propertyName:"location",displayName:"Location",editor:v.editorTemplates.getEditor("objecteditor")},{propertyName:"startPoint",modelName:"@StartPoint",link:!0},{propertyName:"endPoint",modelName:"@EndPoint",link:!0}],surfaceType:u.RoutedConnectorSurface,type:p.RoutedConnectorViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("ConnectionPoint",{info:f.connectionPointSerializationInfo,surfaceType:m.ConnectionPointSurface,type:f.ConnectionPointViewModel,elementActionsTypes:[],nonToolboxItem:!0}),t.diagramControlsFactory.registerControl("Diagram",{info:h.diagramSerializationsInfo,surfaceType:y.DiagramSurface,popularProperties:["name"],type:h.DiagramViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0}),t.diagramControlsFactory.registerControl("DiagramElement",{info:c.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:d.DiagramElementSurface,popularProperties:["text"],type:c.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("Ellipse",{info:c.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:d.DiagramElementSurface,popularProperties:["text"],type:c.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("Condition",{info:c.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:d.DiagramElementSurface,popularProperties:["text"],type:c.DiagramElementViewModel,elementActionsTypes:[],nonToolboxItem:!1}),t.diagramControlsFactory.registerControl("ConnectingPoint",{info:g.connectingPointSerializationInfo,surfaceType:_.ConnectingPointSurface,type:g.ConnectingPointViewModel,elementActionsTypes:[],nonToolboxItem:!0})}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,d=r(2),n=r(29),s=r(22),i=(a=n.DiagramElementBaseSurface,i(c,a),c.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}},c.prototype._createRouteLineWrapper=function(r,o,e){var i=this;void 0===e&&(e=!1);var a=this,n=Math.abs(r.x.peek()-o.x.peek())<1,s=r.modelPoint.y.peek(),c=r.modelPoint.x.peek();return{position:{top:Math.min(r.y.peek(),o.y.peek())-2,left:Math.min(r.x.peek(),o.x.peek())-2,width:Math.abs(r.x.peek()-o.x.peek())+6,height:Math.abs(r.y.peek()-o.y.peek())+6},isVerticalLine:n,resizeHandler:function(e){a._control.freezeRoute(!0);try{var t;a._control.beginUpdate(),n?(t=i._context.rtl()?c-e.delta.dx:c+e.delta.dx,r.modelPoint.x(t),o.modelPoint.x(t)):(t=s+e.delta.dy,r.modelPoint.y(t),o.modelPoint.y(t))}finally{a._control.endUpdate()}},resizeStopped:function(){a._control.routePoints.notifySubscribers(a._control.routePoints())},isLocked:d.observable(e)}},c.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)},c._connectorsCount=0,c);function c(e,t){var r=a.call(this,e,t,null)||this;return r.template="dxdd-routed-connector",r.selectiontemplate="dxdd-routed-connector-selection",r.showArrow=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._connectorID=c._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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(1),c=r(19),d=r(1),l=r(1);(r=a=t.JsonNodeType||(t.JsonNodeType={}))[r.Object=0]="Object",r[r.Array=1]="Array",r[r.Property=2]="Property";var u=(p.from=function(e,t){return new p(e,t)},p.toJsonNodes=function(e,t,r){return(e||[]).map(function(e){return p.toJsonNode(e,t,r)})},p.toJsonNode=function(e,t,r,o){void 0===o&&(o=!0);var i=t.serialize(e,_,r),r=o?p.toJsonNodes(e.nodes,t,r):[];return 0<r.length&&(i.Node=r),i},p.prototype.getInfo=function(){return _},p);function p(e,t){this.nodes=[],e&&((t=t||new s.ModelSerializer).deserialize(this,e),e=(e=e.Node)instanceof Array?c.deserializeToCollection(e,function(e){return new p(e)}).sort(function(e,t){return e.name().localeCompare(t.name())}):e?[new p(e)]:[],this.nodes=e)}t.JsonNode=u;var f,m=(i(h,f=u),h.from=function(e,t){return new h(e||{},t)},h.toJson=function(e,t,r){if(!e)return{};var o={Node:u.toJsonNode(e,t,r,!1)};return o.Node.Node=u.toJsonNodes(e.nodes,t,r),o},h.prototype.getInfo=function(){return _},h);function h(e,t){t=f.call(this,e.Node,t)||this;return t.nodeType=a[a.Object],t.valueType="Unknown",t.displayName=d.getLocalization("root"),t.selected=n.observable(!1),t}t.JsonSchemaNode=m;var y,i=(i(g,y=u),g.from=function(e,t){return new g(e)},g.toJson=function(e,t,r){return m.toJson(e.nodes[0],t,r)},g.prototype.getInfo=function(){return v},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:n.unwrap(t.name),path:"",pathParts:[n.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=n.unwrap(e.nodeType);if(t!=a[a.Property]){if(t!==a[a.Array])return o&&t===a[a.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}},g);function g(e,t){e=y.call(this,e)||this;return e._rootElementList=null,e}t.JsonSchemaRootNode=i;var _=[{propertyName:"nodes",modelName:"Node",from:u.from,toJsonObject:u.toJsonNodes},{propertyName:"name",modelName:"@Name"},{propertyName:"selected",modelName:"@Selected",from:l.parseBool},{propertyName:"nodeType",modelName:"@NodeType"},{propertyName:"type",modelName:"@Type"}],v=[{propertyName:"nodes",modelName:"Node",from:i.from,toJsonObject:i.toJsonNodes}]},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(3),s=r(1),c=r(1),d=r(8),l=r(108),u=r(49),r=r(107),i=(a=s.Disposable,i(p,a),p.prototype.getInfo=function(){return f},p.prototype.clone=function(e){return new p((e=e||new c.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;void 0===e&&(e=[]);var r=n.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 d.RequestWrapper);var o=a.call(this)||this;return(t=t||new c.ModelSerializer).deserialize(o,e),o.jsonSchemaProvider=new l.JsonSchemaProvider(o,r),o.source&&o._disposables.push(o.source),o._disposables.push(o.connectionName.subscribe(function(){o.source.resetSource()})),o}t.JsonDataSource=i;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";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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(1),c=r(1),d=r(113),l=r(0),i=(a=s.Disposable,i(u,a),u.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposeObservableArray(this.keyColumns)},u.prototype.createKeyColumn=function(){var e={masterColumn:n.observable(),detailColumn:n.observable(),itemType:"KeyColumn"};this.keyColumns.push(e)},u.prototype.getInfo=function(){return d.masterDetailRelationSerializationsInfo},u);function u(e,t){var r=a.call(this)||this;return r.name=n.pureComputed({read:function(){return r._customName()||r.masterQuery()+r.detailQuery()},write:function(e){r._customName(e)},deferEvaluation:!0}),(t||new c.ModelSerializer).deserialize(r,l.extend(e,{"@ItemType":"Relation"})),r._disposables.push(r.name),r}t.MasterDetailRelation=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),n=r(19),s=r(1),c=function(e){var t=this;e&&(t.name=e.name,t.displayName=e.displayName,t.dataMember=e.dataMember)};t.ObjectDataMemberBase=c;var d,l=(i(u,d=c),u);function u(e){var t=d.call(this,e)||this;return e&&(t.value=e.value,t.type=e.type,t.resultType=e.resultType),t}t.ObjectParameter=l;var p,r=(i(f,p=c),f);function f(e){var t=p.call(this,e)||this;return t.parameters=n.deserializeToCollection(e.parameters,function(e){return new l(e)}),t}t.ObjectDataSourceMethodBase=r;var m,h=(i(y,m=r),y.empty=function(){return new y({displayName:y.entireObject(),name:y.entireObject(),parameters:[]})},y.prototype.isEntireObject=function(){return this.name==y.entireObject()&&this.displayName==y.entireObject()},y.prototype.isAvailable=function(){return!this.disabled()},y.entireObject=function(){return s.getLocalization("Entire Object","AnalyticsCoreStringId.ObjectDSWizard_ConfigureParameters_EntireObject")},y);function y(e){var t=m.call(this,e)||this;return t.disabled=a.observable(!1),t.memberType=e&&e.memberType,t.isStatic=e.isStatic,t}t.ObjectDataMember=h;var g,_=(i(v,g=r),v);function v(){return null!==g&&g.apply(this,arguments)||this}t.ObjectCtor=_;var b,c=(i(S,b=c),S.prototype.updateMembers=function(t){this.members.forEach(function(e){t?e.disabled(!1):e.disabled(!!e.isEntireObject()||!e.isStatic)})},S);function S(e){var t=b.call(this,e)||this;return t.ctors=n.deserializeToCollection(e.ctors,function(e){return new _(e)}),t.members=n.deserializeToCollection(e.members,function(e){return new h(e)}),t}t.ObjectType=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(168),t.createDefaultSQLAceOptions=function(e){return void 0===e&&(e=!1),{showLineNumbers:!1,showPrintMargin:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,readOnly: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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(0),l=r(5),u=r(0),p=r(1),f=(a=c.WizardPageBase,i(m,a),m.prototype.initialize=function(e){var t=this._connectionStrings();return 1===t.length?this._selectedConnectionString([t[0]]):(t=d.getFirstItemByPropertyValue(t,"name",e.name)||t[0],this._selectedConnectionString(t?[t]:[])),s.Deferred().resolve().promise()},m.prototype.canNext=function(){return 0!==this._selectedConnectionString().length},m.prototype.commit=function(){var e=s.Deferred();return this._selectedConnectionString()[0]?e.resolve({name:this._selectedConnectionString()[0].name}):e.resolve(),e.promise()},m);function m(e){var t=a.call(this)||this;return t._connectionStrings=n.observableArray([]),t._selectedConnectionString=n.observableArray([]),t._connectionStrings=e,t._disposables.push(t._selectedConnectionString.subscribe(function(){return t._onChange()})),t}t.ChooseSqlConnectionPage=f,t._registerChooseSqlConnectionPage=function(e,t){e.registerMetadata(l.SqlDataSourceWizardPageId.ChooseConnectionPage,{create:function(){return new f(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:u.isCustomizedWithUpdateLocalizationMethod("Choose a data connection")||p.getLocalization("Choose a data connection.","AnalyticsCoreStringId.SqlDSWizard_PageChooseConnection")})}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(3),s=r(124),c=r(0),d=r(1),l=r(5),u=(a=s.ChooseAvailableItemPage,i(p,a),p.prototype.commit=function(){return n.Deferred().resolve({connectionName:this.selectedOperation().createNew?null:this.selectedItems()[0].name}).promise()},p.prototype._getSelectedItem=function(e){return c.getFirstItemByPropertyValue(this.items(),"name",e.connectionName)||a.prototype._getSelectedItem.call(this)},Object.defineProperty(p.prototype,"createNewOperationText",{get:function(){return d.getLocalization("No, I'd like to create a new data connection","AnalyticsCoreStringId.JsonDSWizard_CreateNewConnection")},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"existingOperationText",{get:function(){return d.getLocalization("Yes, let me choose an existing data connection from the list","AnalyticsCoreStringId.JsonDSWizard_UseExistingConnection")},enumerable:!0,configurable:!0}),p);function p(){return null!==a&&a.apply(this,arguments)||this}t.ChooseJsonConnectionPage=u,t._registerChooseJsonConnectionPage=function(e,t){e.registerMetadata(l.JsonDataSourceWizardPageId.ChooseConnectionPage,{create:function(){return new u(t.connectionStrings&&t.connectionStrings.json,t.allowCreateNewJsonConnection)},description:t.allowCreateNewJsonConnection?d.getLocalization("Do you want to use an existing data connection?","AnalyticsCoreStringId.JsonDSWizard_ChooseConnection_Description"):d.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,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(12),l=r(128),u=r(49),p=r(41),f=r(8),m=r(0),h=r(1),y=r(1),g=r(5),_=(a=c.WizardPageBase,i(v,a),v.prototype._clear=function(){this._rootItems([]),this._fieldSelectedPath(""),this._rootElementList([]),this._selectedRootElement(null),this._dataSource&&this._dataSource.jsonSchemaProvider.reset(),this._cachedState={connectionName:null,jsonSource:null}},v.prototype._createFieldListCallback=function(){var r=this;return function(e){var t=new u.JsonNode({});t.nodes=[r._rootItems()[0].data];t=r._getInnerItemsByPath(e,t);return s.Deferred().resolve(t).promise()}},v.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},v.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"}})},v.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},v.prototype._getInnerItemsByPath=function(e,t){t=this._getNodesByPath(e,t);return this._mapJsonNodesToTreelistItems(t)},v.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=d._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()},v.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("."),e=this._rootElementList().filter(function(e){return e.fullPath===t})[0]||this._rootElementList()[0],this._selectedRootElement(e)),this._onChange()},v.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)}))},v.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("."),t={fullPath:r,path:e.name(),id:r,pathParts:t};i._mapJsonSchema(e,t)}),e},v.prototype._filterRootElementList=function(e,t){return e},v.prototype.canNext=function(){return!1},v.prototype.canFinish=function(){return this._fieldListItemsProvider().hasCheckedItems()},v.prototype.commit=function(){if(this._rootItems()[0]){var 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 h.ModelSerializer).serialize(this._dataSource);return s.Deferred().resolve({connectionName:this._dataSource.connectionName(),dataSourceName:e["@Name"],jsonScheme:JSON.stringify(e.Schema),rootElement:e["@RootElement"]}).promise()}},v.prototype.initialize=function(e){return this._beginInternal(e)},v.prototype.reset=function(){this._clear()},v);function v(e,t,r){void 0===e&&(e=new f.RequestWrapper),void 0===t&&(t=!0);var o=a.call(this)||this;o._requestWrapper=e,o._allowObjectRootElements=t,o._callbacks=r,o._rootItems=n.observableArray([]),o._fieldListItemsProvider=n.observable(null),o._fieldSelectedPath=n.observable(null),o._cachedState={connectionName:null,jsonSource:null},o._createTreeNode=function(e,t,r){r=new p.DataMemberTreeNode(e.name,e.displayName,e.specifics,t,r);return o._disposables.push(r.checked.subscribe(function(){return o._onChange()})),r},o._createLeafTreeNode=function(e,t,r){r=new p.FieldTreeNode(e.name,e.displayName,e.specifics,t,r);return o._disposables.push(r.checked.subscribe(function(){return o._onChange()})),r},o._rootElementTitle=y.getLocalization("Root element:","DataAccessUIStringId.WizardPageChooseJsonSchema_RootElement"),o._rootElementList=n.observable([]),o._selectedRootElement=n.observable(null);var i=null;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:n.unwrap(e.name),isSelected:n.unwrap(e.selected),displayName:n.unwrap(e.displayName)||n.unwrap(e.name),data:e,specifics:0<e.nodes.length?"List":"Default"}])}),o._selectedRootElement(e[0])}));r=new m.FieldListProvider(o._createFieldListCallback(),o._rootItems);return o._fieldListItemsProvider(new l.JsonTreeNodeItemsProvider(r,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=_,t._registerChooseJsonSchemaPage=function(e,t,r){e.registerMetadata(g.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 _(t,void 0,r)},description:y.getLocalization("Select data fields.","DataAccessUIStringId.WizardPageChooseJsonSchema"),template:"dxrd-jsondatasource-fields-page"})}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(11),s=r(0),i=(a=n.DataSourceParameter,i(c,a),c.prototype.getEditorType=function(e){return s.IsDataAccessExpression(e)?{header:"dxqb-expressionstring"}:s.getEditorType(e)},c);function c(){return null!==a&&a.apply(this,arguments)||this}t.ParameterViewModel=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var l,u=r(2),a=r(28),p=r(59),f=r(60),n=r(18),m=r(46),s=r(1),h=r(1),y=r(61),g=r(93),_=r(57),v=r(0),b=r(151),S=r(26),x=r(43),P=r(146),C=r(4),c=r(0),d=r(1),T=r(0),O=r(96),I=r(90),N=r(0),D=r(0),i=(l=a.QueryElementBaseViewModel,i(E,l),E.prototype._initializeTable=function(t){this.dbSchemaProvider.getDbTable(t.name()).done(function(e){t.createColumns(e)})},E.prototype._addColumnsToTable=function(e,t){e._initColumns(t.map(function(e){return new n.DBColumn({Name:e.column()})}))},E.prototype.isPropertyDisabled=function(e){return"skip"===e&&(0===this.skip()&&!this.sorting().length)},E.prototype.canSave=function(e){void 0===e&&(e=!0);var r=[];return this.tables().forEach(function(t){t.getInvalidColumns().forEach(function(e){r.push(c.formatUnicorn(d.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)},E.prototype.getInfo=function(){return O.querySerializationsInfo},E.prototype.createChild=function(e){if("Table"!==e["@ControlType"])return l.prototype.createChild.call(this,e);e=new p.TableViewModel(e,this);return this._initializeTable(e),this.addChild(e),e},E.prototype.getAllColumns=function(){return[].concat.apply([],this.tables().map(function(e){return e.columns()}))},E.prototype.tryToCreateRelationsByFK=function(a){var n=this;I.isJoinsResolvingDisabled||this.dbSchemaProvider.getDbSchema().done(function(t){var e=t.tables.filter(function(e){return e.name===a.name()})[0];e&&e.foreignKeys.forEach(function(e){var t=N.getFirstItemByPropertyValue(n.tables.peek(),"name",e.primaryKeyTable);if(t)for(var r=0;r<e.primaryKeyColumns.length;r++){var o=N.getFirstItemByPropertyValue(a.columns(),"name",e.columns[r]),i=N.getFirstItemByPropertyValue(t.columns(),"name",e.primaryKeyColumns[r]);o&&i&&n.cerateJoinCondition(o,i)}}),n.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===a.name())for(var t=0;t<e.primaryKeyColumns.length;t++){var r=N.getFirstItemByPropertyValue(a.columns(),"name",e.primaryKeyColumns[t]),o=N.getFirstItemByPropertyValue(i.columns(),"name",e.columns[t]);r&&o&&n.cerateJoinCondition(o,r)}})})})},E.prototype.addChild=function(e){e instanceof g.RelationViewModel?-1<this.relations.indexOf(e)||(e.parentModel(this),this.relations.push(e)):e instanceof p.TableViewModel?-1<this.tables.indexOf(e)||(e.parentModel(this),null!==N.getFirstItemByPropertyValue(this.tables(),"actualName",e.name())&&e.alias(v.getUniqueName(this.tables().map(function(e){return e.actualName()}),e.name()+"_")),this.tables.push(e)):T.NotifyAboutWarning("Attempt to add wrong child control.")},E.prototype.removeChild=function(t){if(t instanceof g.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 p.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.")},E.prototype.getTable=function(t){return N.findFirstItemMatchesCondition(this.tables(),function(e){return e.actualName()===t})},E.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))})},E.prototype._findHead=function(t){var r=null;return this.relations().some(function(e){return e.nestedTable()===t&&(r=e),!!r}),r?this._findHead(r.parentTable()):t},E.prototype._isHead=function(t){return!this.relations().some(function(e){return e.nestedTable()===t})},E.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)})})},E.prototype.cerateJoinCondition=function(t,r){var o=t.parentModel(),i=r.parentModel();if(o===i)return null;var e,a,n=!1,s=N.findFirstItemMatchesCondition(this.relations(),function(e){return n=e.parentTable()===i&&e.nestedTable()===o,e.parentTable()===o&&e.nestedTable()===i||n});return s||(this._findTableInAncestors(o,i)?n=!0:this._findHead(o)===this._findHead(i)||this._isHead(i)||(a=this._findAncestorsRelations(o),e=this._findAncestorsRelations(i),a.outer>e.outer?this._reverseRelations(i,e.relations):a.outer<e.outer?(this._reverseRelations(o,a.relations),n=!0):a.inner>=e.inner?this._reverseRelations(i,e.relations):a.inner<e.inner&&(this._reverseRelations(o,a.relations),n=!0))),n&&(a=o,o=i,i=a,a=t,t=r,r=a),s=s||this.createChild({"@ControlType":"Relation","@Parent":o.actualName(),"@Nested":i.actualName(),"@Type":"Inner"}),N.findFirstItemMatchesCondition(s.conditions(),function(e){return e.parentColumn()===t&&e.nestedColumn()===r})||s.createChild({"@ControlType":"JoinCondition","@Parent":t.name(),"@Nested":r.name()})},E.prototype._validate=function(){if(0===this.tables().length)return!1;if(!this.allColumnsInTablesSelected()&&!this.tables().some(function(e){return e.asterisk.selected()||e.columns().some(function(e){return e.selected()})}))return!1;var e=this.tables().map(function(e){return e.actualName()});return this._validateTable(e,e[0]),e.length<1},E.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)}))},E.prototype.serialize=function(e){return void 0===e&&(e=!1),e?{Query:this.serialize()}:(new s.ModelSerializer).serialize(this)},E.prototype.save=function(){if(this.canSave()){var e=this.serialize(!0);return this.onSave&&this.onSave(e),e}},E.pageMargin=20,E.emptyModel={"@ItemType":"Query",Tables:{SelectedTables:{},Relations:{}},Columns:{},Sorting:{},Grouping:{}},E);function E(e,t,r,o,i){void 0===r&&(r=m.ParametersMode.ReadWrite);var a=l.call(this,D.extend(!0,e,E.emptyModel,e),null,i)||this;a.aggregatedColumnsCount=u.observable(0),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.type("SelectQuery"),a.controlType="Query",a.dbSchemaProvider=t,a.onSave=o,a.tables=h.deserializeArray(e.Tables.SelectedTables,function(e){return new p.TableViewModel(e,a,i)}),a.columns=h.deserializeArray(e.Columns,function(e){return new f.ColumnExpression(e,a,i)}),a.sorting=h.deserializeArray(e.Sorting,function(e){return new f.ColumnExpression(e,a,i)}),a.grouping=h.deserializeArray(e.Grouping,function(e){return new f.ColumnExpression(e,a,i)}),a.tables().forEach(function(r){var o=[];[a.columns(),a.sorting(),a.grouping()].forEach(function(e){e.forEach(function(t){r.name()===t.table()&&t.itemType()===y.ColumnType.Column&&o.every(function(e){return e.column()!==t.column()})&&o.push(t)})}),a._addColumnsToTable(r,o),a._initializeTable(r)}),a.relations=h.deserializeArray(e.Tables.Relations,function(e){return new g.RelationViewModel(e,a,i)}),a._tablesObject.tables=a.tables,a._tablesObject.relations=a.relations,a.tables().reduce(function(e,t){return t.location.x(e),t.location.y(65),e+t.size.width()+t.size.width()/2},30);var n=h.deserializeArray(e.Parameters,function(e){return new _.ParameterViewModel(e,i)});r===m.ParametersMode.ReadWrite?(a.parameters=n,a._disposables.push(a.parameters.subscribe(function(e){e.forEach(function(t){"added"!==t.status||t.value.name()||t.value.name(v.getUniqueName(a.parameters().filter(function(e){return e!==t.value}).map(function(e){return e.name()}),"parameter"))})},null,"arrayChange"))):a.parameters=u.computed(function(){return n()}),a.editableName=u.observable(a.name()),a.name=u.pureComputed({read:a.editableName,write:function(e){}}),a.filterString=new b.QBFilterStringOptions(a._filterString,null,u.pureComputed(function(){return 0===a.tables().length&&a.filterString&&0===a.filterString.value().length})),a.filterString.initializeFilterStringHelper(a.parameters,r);var s=!1;a._disposables.push(u.computed(function(){var e,t;s||(s=!0,t=(e=a.getAllColumns()).filter(function(e){return e.aggregate()===S.AggregationType.None}),a.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)}),s=!1)})),a.groupFilterString=new b.QBFilterStringOptions(a._groupFilterString,null,u.pureComputed(function(){return!a.columns().some(x.isAggregatedExpression)&&a.groupFilterString&&0===(a.groupFilterString.value()||"").length})),a.groupFilterString.initializeFilterStringHelper(a.parameters,r,new P.GroupFilterEditorSerializer(a.columns));var c=u.observable(0);a.pageWidth=u.pureComputed({read:function(){var t=500;return a.tables().forEach(function(e){e=e.location.x()+e.size.width();t<e&&(t=e)}),Math.max(c(),t)},write:function(e){c(e)}}),a.pageHeight=u.pureComputed(function(){var t=500;return a.tables().forEach(function(e){e=e.location.y()+e.size.height();t<e&&(t=e+E.pageMargin)}),t}),a.margins=C.Margins.fromString(),a.isValid=u.pureComputed(function(){return a._validate()});function d(e){return!e.table()&&e.itemType()===y.ColumnType.AllColumns}return a.allColumnsInTablesSelected=u.computed({read:function(){return a.columns().some(d)},write:function(e){e?a.columns.push(new f.ColumnExpression({"@ItemType":"AllColumns"},a,i)):a.columns.remove(d)}}),a}t.QueryViewModel=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(28),c=r(91),d=r(153),l=r(4),u=r(4),p=r(92),f=r(0),m=r(0),i=(a=s.QueryElementBaseViewModel,i(h,a),h.prototype.columns=function(){return this._columns()},h.prototype.toggleSelectedColumns=function(){var t=!this.allColumnsSelected.peek();this._columns.peek().forEach(function(e){e.selected(t)})},h.prototype.getColumnConnectionPoints=function(t){var r=this,e=n.pureComputed({read:function(){var e=r._columns.indexOf(t)+1;return r.location.y()+h.COLUMNS_OFFSET+h.COLUMN_MARGIN*e+h.COLUMN_HEIGHT*(e+.5)},deferEvaluation:!0});return{left:{x:this._columnsConnectionPointLeftX,y:e},right:{x:this._columnsConnectionPointRightX,y:e}}},h.prototype.getInfo=function(){return p.tableSerializationInfo},h.prototype.getInvalidColumns=function(){return this.columns().filter(function(e){return e.isNotAvailable()&&e.selected()})},h.prototype.getColumn=function(e){return f.getFirstItemByPropertyValue(this._columns(),"name",e)},h.prototype._initColumns=function(e,t){var r=this;void 0===t&&(t=!1);var o=[];e.forEach(function(e){o.push(new c.ColumnViewModel({"@Name":e.name},e,r,r.serializer))}),this._columns(t?[].concat([],this.columns(),o):o)},h.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)},h.COLUMNS_OFFSET=37,h.COLUMN_HEIGHT=32,h.COLUMN_MARGIN=1,h.TABLE_MIN_WIDTH=80,h.TABLE_DEFAULT_HEIGHT=136,h);function h(e,t,r){var o=a.call(this,m.extend(e,{"@ControlType":"Table","@ItemType":"Table"}),t,r)||this;return o.serializer=r,o._columnsConnectionPointLeftX=n.pureComputed(function(){return o.location.x()}),o._columnsConnectionPointRightX=n.pureComputed(function(){return o.location.x()+o.size.width()}),o._columns=n.observableArray(),o._initialized=n.observable(!1),o.size=new l.Size(199,123),o.location=new u.Point(0,0),o.actualName=n.pureComputed(function(){return o.alias()||o.name()}),o.isReady=n.observable(!1),o.allColumnsSelected=n.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=n.pureComputed(function(){return o._initialized()}),o.size.height=n.pureComputed({read:function(){return 0===o._columns().length?h.TABLE_DEFAULT_HEIGHT:h.COLUMNS_OFFSET+(h.COLUMN_HEIGHT+h.COLUMN_MARGIN)*(o._columns().length+1)},write:function(){}}),o.asterisk=new d.AllColumnsViewModel(o,o.serializer),o}t.TableViewModel=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),n=r(45),s=r(1),c=r(147),d=r(45),l=r(0),o=r(61),r=(i.prototype.actualName=function(){return this.alias()||this.column()},i.prototype.getInfo=function(){return o.columnExpressionSerializationsInfo},i.prototype.isDepended=function(t){return!!l.findFirstItemMatchesCondition(this._dependedTables,function(e){return e.actualName()===t})},i);function i(e,r,t){var o=this;if((t=t||new s.ModelSerializer).deserialize(this,e),this._dependedTables=[],this.table()){var i=r.getTable(this.table());this.table=a.pureComputed(function(){return i.actualName()}),this._dependedTables.push(i)}else if(this.expression())try{this._criteria=n.CriteriaOperator.parse(this.expression()),c.criteriaForEach(this._criteria,function(t){var e;t instanceof d.OperandProperty&&((e=l.findFirstItemMatchesCondition(r.tables(),function(e){return 0===t.propertyName.indexOf(e.actualName()+".")}))&&o._dependedTables.push(e))})}catch(e){}}t.ColumnExpression=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r=r(26);t.ColumnType={RecordsCount:"RecordsCount",Column:"Column",Expression:"Expression",AllColumns:"AllColumns"},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";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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(4),c=r(43),d=r(0),i=(a=s.SurfaceElementBase,i(l,a),l);function l(e,t){var o=a.call(this,e,t,null)||this;return o.template="dxqb-table-field",o.toggleSelected=function(){o.getControlModel().selected(!o.getControlModel().selected())},o.selectedWrapper=n.pureComputed(function(){return o.getControlModel().selected()}),o.isNotAvailable=n.pureComputed(function(){return o._control.isNotAvailable()}),o.isAggregate=n.pureComputed(function(){return c.isAggregatedExpression(o.getControlModel())}),o.isAscending=n.pureComputed(function(){return"Ascending"===o.getControlModel().sortingType()}),o.isDescending=n.pureComputed(function(){return"Descending"===o.getControlModel().sortingType()}),o.cssClasses=function(e,t,r){return o._isJoined||(o._isJoined=n.pureComputed(function(){return e.isJoined(o)||o.getControlModel()===t.getDragColumn()})),o._isHovered||(o._isHovered=n.pureComputed(function(){var e=!!t.getDragColumn()&&o.getControlModel().parentModel()!==t.getDragColumn().parentModel();return o.underCursor().isOver&&(!d.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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),r=r(29),i=(a=r.DiagramElementBaseSurface,i(s,a),s._unitProperties={_x:function(e){return n.pureComputed(function(){return e.location.x()-e.parentModel().location.x()})},_y:function(e){return n.pureComputed(function(){return e.location.y()-e.parentModel().location.y()})}},s);function s(e,t){t=a.call(this,e,t,s._unitProperties)||this;return t.template="dxdd-connecting-point",t.selectiontemplate="dxdd-connection-point-selection",t.contenttemplate="",t}t.ConnectingPointSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(14),c=r(65),d=r(4),l=r(4),u=r(0),i=(a=s.DiagramElementBaseViewModel,i(p,a),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=a.call(this,u.extend({"@ControlType":"Connector"},e),t,r)||this;return o.startPoint(o.startPoint()||new c.ConnectionPointViewModel({"@Location":"0, 0"},o,r)),o.endPoint(o.endPoint()||new c.ConnectionPointViewModel({"@Location":"150, 75"},o,r)),o.location=new d.Point(0,0),o.location.x=n.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.location.y=n.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 l.Size(0,0),o.size.width=n.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.size.height=n.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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),a=r(14),c=r(20),d=r(0),i=(n=a.DiagramElementBaseViewModel,i(l,n),l);function l(e,t,r){var o=n.call(this,d.extend(e,{"@ControlType":"ConnectionPoint"}),t,r)||this,i=o.location.x,a=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()||a()},write:function(e){o.connectingPoint(null),a(e)}}),o}t.ConnectionPointViewModel=i,t.connectionPointSerializationInfo=[c.location,{propertyName:"connectingPoint",modelName:"@ConnectingPoint",link:!0}]},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(14),c=r(1),d=r(4),l=r(1),u=r(20),r=r(6),i=(a=s.DiagramElementBaseViewModel,i(p,a),p.prototype.getInfo=function(){return t.diagramSerializationsInfo},p);function p(e){var t=this,r=new c.ModelSerializer;return(t=a.call(this,e,null,r)||this).controlType="Diagram",t.controls=n.observableArray(),t.name("Diagram"),t}t.DiagramViewModel=i,t.margins={propertyName:"margins",modelName:"@Margins",from:d.Margins.fromString,displayName:"Margins"},t.pageWidth={propertyName:"pageWidth",modelName:"@PageWidth",defaultVal:850,from:l.floatFromModel,displayName:"Page Width",editor:r.editorTemplates.getEditor("numeric")},t.pageHeight={propertyName:"pageHeight",modelName:"@PageHeight",defaultVal:1250,from:l.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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(4),c=r(0),d=r(0),i=(a=s.SurfaceElementBase,i(l,a),l.prototype.checkParent=function(e){return!1},l.prototype.getChildrenCollection=function(){return n.observableArray([])},l._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}},l);function l(e,t){void 0===t&&(t=n.observable(1));var r=a.call(this,e,{measureUnit:n.observable("Pixels"),zoom:t,dpi:n.observable(100)},l._unitProperties)||this;return r.measureUnit=n.observable("Pixels"),r.dpi=n.observable(100),r.controls=n.observableArray(),r.allowMultiselect=!1,r.focused=n.observable(!1),r.selected=n.observable(!1),r.underCursor=n.observable(new d.HoverInfo),r.parent=null,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,c.createObservableArrayMapCollection(e.controls,r.controls,r._createSurface),r}t.DiagramSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(1),d=r(102),l=r(8),u=r(0),p=r(0),f=r(1),m=r(0),i=(a=c.Disposable,i(h,a),h.prototype._getDBSchema=function(e){return this._getDBSchemaCallback(this.connection,e)},h.prototype._getDBSchemaCallback=function(e,t){return d.getDBSchemaCallback(this._requestWrapper,e,t)},h.prototype._getDBStoredProcedures=function(e){return d.getDBStoredProceduresCallback(this._requestWrapper,e)},h.prototype.getDbSchema=function(){return this._dbSchema&&"rejected"!==this._dbSchema.state()||(this._dbSchema=this._getDBSchema()),this._dbSchema},h.prototype.getDbStoredProcedures=function(){return this._dbStoredProceduresSchema&&"rejected"!==this._dbStoredProceduresSchema.state()||(this._dbStoredProceduresSchema=this._getDBStoredProcedures(this.connection)),this._dbStoredProceduresSchema},h.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]},h);function h(e,t){void 0===t&&(t=new l.RequestWrapper);var r=a.call(this)||this;return r._requestWrapper=t,r._tables={},r._tableRequests=n.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(n.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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(19),r=function(e){this.name=e.Name,this.arguments=o.deserializeToCollection(e.arguments,function(e){return new i(e)})};t.DBStoredProcedure=r,(r=t.DBStoredProcedureArgumentDirection||(t.DBStoredProcedureArgumentDirection={}))[r.In=0]="In",r[r.Out=1]="Out",r[r.InOut=2]="InOut";var i=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});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});var o=r(1),i=r(1),a=r(106),n=[{propertyName:"name",modelName:"@Name"},{propertyName:"tables",modelName:"Views",array:!0}],r=(s.prototype.getInfo=function(){return n},s.from=function(e,t){return e&&new s(e.DataSet,t)||null},s.toJson=function(e,t,r){return{DataSet:t.serialize(e,n,r)}},s);function s(e,t){(t=t||new o.ModelSerializer).deserialize(this,e),this.tables=i.deserializeArray(e&&e.Views||[],function(e){return new a.ResultTable(e,t)})}t.ResultSet=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),r=(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:""}]},i);function i(e,t){(t=t||new o.ModelSerializer).deserialize(this,e||{})}t.JsonAuthenticationInfo=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(1),c=r(1),d=r(6),l=r(1);(r=a=t.JsonParameterType||(t.JsonParameterType={}))[r.PathParameter=0]="PathParameter",r[r.QueryParameter=1]="QueryParameter",r[r.Header=2]="Header";var u,i=(u=s.Disposable,i(p,u),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:a[a.PathParameter],alwaysSerialize:!0}]},p);function p(e,t){var r=u.call(this)||this;return r.expression_Prefix="expression:",r.namePlaceholder=function(){return l.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder")},r.valuePlaceholder=function(){return l.getLocalization("Value","AnalyticsCoreStringId.CollectionEditor_Value_Placeholder")},r._editingValue=n.observable(""),r._expression={value:n.observable("")},r.isExpression=n.observable(!1),r.itemsProvider=null,r._parameterTypes=f,(t=t||new c.ModelSerializer).deserialize(r,e),r._initEditingProperties(),r._disposables.push(r.value=n.computed(function(){var e=r.expression_Prefix+r._expression.value(),t=r._editingValue();return r.isExpression.peek()?e:t})),r}t.JsonParameter=i;var f=[{value:a[a.PathParameter],displayValue:"Path Parameter",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_PathParameter"},{value:a[a.QueryParameter],displayValue:"Query Parameter",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_QueryParameter"},{value:a[a.Header],displayValue:"Header",localizationId:"AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSourcePage_Header"}]},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(114),s=r(71),c=r(1),d=r(9),l=r(32),u=r(34),p=r(35),f=r(1),m=r(8),h=r(51),y=r(110),g=r(68),_=r(0),v=[{propertyName:"name",modelName:"@Name"},{propertyName:"connection",modelName:"Connection",from:n.SqlDataConnection.from,toJsonObject:n.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"}],i=(a=c.Disposable,i(b,a),b.prototype.getInfo=function(){return v},b.prototype.createQuery=function(e,t){if(e["@Type"]===d.SqlQueryType.customSqlQuery)return new l.CustomSqlQuery(e,this,t);if(e["@Type"]===d.SqlQueryType.tableQuery)return new u.TableQuery(e,this,t);if(e["@Type"]===d.SqlQueryType.storedProcQuery)return new p.StoredProcQuery(e,this,t);throw new Error("Unknown sql query type.")},b);function b(e,t,r){void 0===r&&(r=new m.RequestWrapper);var o=a.call(this)||this;(t=t||new f.ModelSerializer).deserialize(o,_.extend(e,{"@ItemType":"SqlDataSource"}));var i=o._model.Name;return i&&(o.name()||o.name(i),delete o._model.Name),o.queries=c.deserializeArray(e.Queries,function(e){return o.createQuery(e,t)}),o.relations=c.deserializeArray(e.Relations,function(e){return new h.MasterDetailRelation(e,t)}),o.connection&&e.ConnectionOptions&&(o.connection.options=new y.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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),i=r(0);t.generateQueryUniqueName=function(e,t){var r=(t.name()||t.generateName()).replace(".","_");return o.findFirstItemMatchesCondition(e,function(e){return e.name()===r})?i.getUniqueNameForNamedObjectsArray(e,r+"_"):r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),r=(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()},i);function i(e,t){this.globalState=e,this.pageFactory=t,this.defaultState=o.extend(!0,{},e)}t.StateManager=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(1),d=r(35),l=r(69),u=r(0),p=r(1),f=r(11),m=r(18),h=r(33),i=(a=c.Disposable,i(y,a),y.prototype._needToProcessParameters=function(e){return e.arguments.some(y._availableConvertToParameter)},y._availableConvertToParameter=function(e){return e.direction!==l.DBStoredProcedureArgumentDirection.Out},Object.defineProperty(y.prototype,"_selectedProcedure",{get:function(){return this.selectedProcedure()[0]},set:function(e){this.selectedProcedure(e?[e]:[])},enumerable:!0,configurable:!0}),y.prototype.scrollActiveItem=function(e){var t=e.model.selectedProcedure.peek();e.component.scrollToItem(t[0])},y.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+"(")},y.prototype.setQuery=function(e){return this._query=e,this._selectedProcedure=u.getFirstItemByPropertyValue(this.storedProcedures(),"name",e.procName()),s.Deferred().resolve().promise()},y.prototype.getQuery=function(){var t=this;if(!this._selectedProcedure)return null;var r=new d.StoredProcQuery({"@Name":this._query.name()||this._selectedProcedure.name,ProcName:this._selectedProcedure.name},this._query.parent);return this._selectedProcedure.arguments.forEach(function(e){y._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,h.storedProcParameterSerializationsInfo(m.DBColumn.GetType(e.type))))}),r},Object.defineProperty(y.prototype,"runQueryBuilderDisabled",{get:function(){return!0},enumerable:!0,configurable:!0}),y);function y(){var t=a.call(this)||this;return t.template="dxrd-procedures-control",t.storedProcedures=n.observableArray([]),t.selectedProcedure=n.observableArray([]),t.caption=function(){return p.getLocalization("Select a stored procedure:","DataAccessUIStringId.StoredProcControl_Caption")},t.generateStoredProcedureDisplayName=function(e){return y.generateStoredProcedureDisplayName(e)},t.isNextDisabled=n.pureComputed(function(){return!t._selectedProcedure||!t._needToProcessParameters(t._selectedProcedure)}),t.isFinishDisabled=n.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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),r=(a.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:"."))})},a);function a(e,t){this._selectStatementCallback=e,this._connection=t}t.SelectQuerySqlTextProvider=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=r(0),o=r(34),n=r(1),s=r(0),c=r(1),r=(d.prototype.show=function(e,t){this._dataSource=t,this._dbSchemaProvider(t.dbSchemaProvider),this._query((new n.ModelSerializer).serialize(e)),this.qbOptions(this.qbOptions()||this.customizeQBInitializationData({queryBuilderModel:this.designer,querySource:this._query,dbSchemaProvider:this._dbSchemaProvider,callbacks:{customizeActions:d.customizeQueryBuilderActions},rtl:this._rtl})),this.isVisible(!0),this.designer().updateSurface()},d.prototype.cancelHandler=function(){this.isVisible(!1)},d.prototype.previewHandler=function(){this.designer().showPreview()},d.prototype.okHandler=function(){var e=this;this.designer().model().canSave()&&this._applyQuery(new o.TableQuery(this.designer().model().serialize(),this._dataSource),this.showLoadIndicator).done(function(){e.isVisible(!1)})},d.prototype.onHiddenHandler=function(){this.designer().dataPreview.isVisible(!1)},d.prototype.popupViewModel=function(e){e=s.getParentContainer(e);return{visible:this.isVisible,title:this.getDisplayText("title"),showTitle:!0,shading:!0,fullScreen:!1,width:"95%",height:"95%",container:e,position:{of:e},onHidden:this.onHiddenHandler}},d.prototype.getDisplayText=function(e){return c.getLocalization(this.localizationIdMap[e].text,this.localizationIdMap[e].localizationId)},d.customizeQueryBuilderActions=function(e){var t=a.findFirstItemMatchesCondition(e,function(e){return"Delete"===e.text}),r=a.findFirstItemMatchesCondition(e,function(e){return"Undo"===e.text}),o=a.findFirstItemMatchesCondition(e,function(e){return"Redo"===e.text});e.splice(0,e.length,t,r,o)},d);function d(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=function(e){return e});var o=this;this.customizeQBInitializationData=r,this._query=i.observable(null),this._dbSchemaProvider=i.observable(null),this.designer=i.observable(),this.qbOptions=i.observable(null),this.okButtonDisabled=i.pureComputed(function(){return o.designer()&&!o.designer().model().isValid()}),this.isVisible=i.observable(!1),this.showLoadIndicator=i.observable(!1),this.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"}},this._applyQuery=e,this._rtl=t}t.QueryBuilderPopup=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(3),s=r(7),c=r(23),d=r(81),l=r(5),u=r(1),p=(a=s.WizardPageBase,i(f,a),f.prototype.canNext=function(){return!1},f.prototype.canFinish=function(){return!0},f.prototype.commit=function(){return n.Deferred().resolve({selectedType:this._objectDataSource.selectedType,ctor:this._objectDataSource.ctor,dataMember:this._objectDataSource.dataMember,dataSourceName:this._objectDataSource.name()}).promise()},f.prototype.initialize=function(e){return this._objectDataSource.setState(e),this._chooseObjectParameters.updateCtorParameters(this._objectDataSource.ctor),this._chooseObjectParameters.updateMethodParameters(this._objectDataSource.dataMember),n.Deferred().resolve().promise()},f);function f(e){var t=a.call(this)||this;return t._objectDataSource=new c.ObjectDataSource,t._disposables.push(t._chooseObjectParameters=new d.ChooseObjectMemberParameters(e)),t}t.ConfigureObjectDataSourceParametersPage=p,t._registerConfigureObjectDataSourceParametersPage=function(e,t){e.registerMetadata(l.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 p(t&&t())},description:u.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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(1),c=r(0),d=r(0),l=r(11),u=r(1),r=r(6),p=(a=s.Disposable,i(f,a),f.prototype.switchPropertyType=function(){this.isExpression()?(this.type(this._parameter.resultType),this._parameter.value=this.value()):(this.type(c.ExpressionType),this._parameter.value=this.expression.value())},f.prototype.isExpression=function(){return c.IsDataAccessExpression(this.type())},f.prototype._generateInfo=function(e,t){return void 0===t&&(t="value"),d.extend({},{displayName:this._parameter.displayName,propertyName:t,modelName:t,editorOptions:{}},e)},f.prototype._initGetInfo=function(t){var r=this,e=[this._generateInfo({editor:c.getEditorType(this._parameter.resultType),from:function(e){return n.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:n.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=a.call(this)||this;r._parameter=e,r._itemsProvider=t,r.type=n.observable(""),r.type(r._parameter.type);t=l.DataSourceParameter._getTypeValue(r._parameter.resultType);return r._initGetInfo(t),(new u.ModelSerializer).deserialize(r,{}),r._subscribeProperties(),r}t.ObjectDataSourceParameterProperty=p;var m=(h.prototype._doWithModel=function(e){var t=this._editor._model();if(t instanceof p)return e(t)},h.prototype.switchEditors=function(){this._doWithModel(function(e){return e.switchPropertyType()})},h.prototype.isExpression=function(){return this._doWithModel(function(e){return e.isExpression()})},h);function h(e){this._editor=e,this.imageTemplateName="dx-objectdatasource-expression"}var y,g=(y=r.ObjectProperties,i(_,y),_);function _(e){e=y.call(this,n.observable(e))||this;return e.createEditorAddOn=function(e){return{data:new m(e),templateName:"dx-wizard-menu-box-editorswitch"}},e}var v,b=(v=s.Disposable,i(S,v),S);function S(e,r){var o=v.call(this)||this;return o.displayName=e.displayName,o._grids=e.parameters.map(function(e){var t=new p(e,r),e=new g(t);return o._disposables.push(t),o._disposables.push(e),e}),o}t.ObjectDataSourceParametersModel=b;var x,s=(x=s.Disposable,i(P,x),P.prototype._updateParameters=function(e,t){this[e]()&&this[e]().dispose(),t&&0<t.parameters.length?this[e](new b(t,this._itemsProvider)):this[e](null)},P.prototype.updateCtorParameters=function(e){this._updateParameters("_ctorParametersObject",e)},P.prototype.updateMethodParameters=function(e){this._updateParameters("_dataMemberParametersObject",e)},P);function P(e){var t=x.call(this)||this;return t._itemsProvider=e,t._ctorParametersObject=n.observable(),t._dataMemberParametersObject=n.observable(),t.hasParameters=function(){return t._dataMemberParametersObject()||t._ctorParametersObject()},t}t.ChooseObjectMemberParameters=s;var C,s=(i(T,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=r(3),n=r(52),s=r(19),c=r(8),d=r(0),l=r(0),u=r(1),p=r(1),f=r(0),m=function(e){e=s.deserializeToCollection(e,function(e){return new n.ObjectType(e)}),this.types=e.sort(function(e,t){return e.displayName.localeCompare(t.displayName)})};function h(e,t){var r=a.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){d.ShowMessage(l.formatUnicorn(u.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),d.getErrorMessage(e))),r.reject()}),r.promise()}t.ObjectTypeDescriptions=m,t.getObjectTypeDescriptionsCallback=h;var y,i=(y=p.Disposable,i(g,y),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=h(this._requestWrapper,e)),this._objectTypeDescriptionsPromise},g);function g(e){void 0===e&&(e=new c.RequestWrapper);var o=y.call(this)||this;return o._requestWrapper=e,o.getItems=function(t){var r=a.Deferred();return o.getObjectTypeDescriptions().done(function(e){r.resolve(o.getSchemaByPath(t,e))}).fail(r.reject),r.promise()},o}t.ObjectSchemaProvider=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(10),r=r(1),c=(a=s.TreeListController,i(d,a),d.prototype.canSelect=function(e){return!0},d);function d(){return null!==a&&a.apply(this,arguments)||this}t.ChooseObjectTypesTreelistController=c;var l,i=(l=r.Disposable,i(u,l),u);function u(e,t){var o=l.call(this)||this;return o.types=e,o.selectedType=n.observable(),o.selectedCtor=n.observable(),o.selectedPath=n.observable(""),o._scrollViewHeight="calc(100% - 36px)",o.availableTypesTreelistModel={expandRootItems:!0,itemsProvider:t,selectedPath:o.selectedPath,treeListController:new c},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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),r=r(1),i=(a=r.Disposable,i(s,a),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=a.call(this)||this;r.dataMembers=n.observableArray([]),r.selectedDataMembers=n.observableArray([]);var o=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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){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)};Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),s=r(3),c=r(1),d=r(0),l=r(1),u=r(126),p=r(6),f=r(50),m=r(127),h=r(72),y=r(6),g=r(0),_=r(73),v=r(13);function b(e,t,r){e=e||c.getLocalization("The value cannot be empty","AnalyticsCoreStringId.ParametersPanel_DateTimeValueValidationError");if(!t)return e;t=r?d.formatUnicorn("{0}. {1}",t,r):t;return c._stringEndsWith(t,":")||(t+=":"),d.formatUnicorn("{0} {1}",t,e)}t.getLocalizedValidationErrorMessage=b;var S,r=(S=l.Disposable,i(x,S),x.prototype.dispose=function(){this._validationSummary&&this._validationSummary.dispose(),this._validationGroup&&this._validationGroup.dispose(),this._validationSummary=null,this._validationGroup=null,S.prototype.dispose.call(this)},x.prototype._onValidationGroupInitialized=function(e){this._validationGroup=e.component},x.prototype._onValidationGroupDisposing=function(e){this._validationGroup=null},x.prototype._onValidationSummaryInitialized=function(e){this._validationSummary=e.component},x.prototype._onValidationSummaryDisposing=function(e){this._validationSummary=null},x.prototype._repaintSummary=function(){this._validationSummary&&this._validationSummary.repaint()},x.prototype._validate=function(){this._validationSummary&&this._validationGroup&&this._validationGroup.validate()},x);function x(){var t=S.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 p.ObjectProperties(n.observable(t))),t}t.JsonDataSourceJsonSourcePageSettingsBase=r;var P,l=(i(C,P=r),C.prototype.onChange=function(t){var r=this,o=null;this._disposables.push(this.stringSource.subscribe(function(e){return t(),clearTimeout(o),void(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:m.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([])},C);function C(){var r=P.call(this)||this;return r._validatorsReady=n.observable(!1),r.isValid=n.pureComputed(function(){var e=r._isJsonSourceValid(r.stringSource()),t=r.aceEditorHasErrors();return e&&!t}),r.validationGroup=null,r.validationSummary=null,r.stringSource=n.observable(""),r.aceEditorHasErrors=n.observable(!1),r.cssClass={"dxrd-wizard-json-string-source-grid":!0},r._disposables.push(r.grid=new p.ObjectProperties(n.observable(r))),r}t.JsonDataSourceJsonSourcePageStringSettings=l;var T,r=(i(O,T=r),O.prototype._validateUriSource=function(){var r=this,o=c.getLocalization("Invalid URI.","AnalyticsCoreStringId.ReportDesigner_Wizard_JsonSource_UriValidationError"),i=c.getLocalization("Web Service Endpoint (URI):","DataAccessUIStringId.WizardPageChooseJsonSource_URI");this._isUriValid(!1),this._lastValidateDeferred&&this._lastValidateDeferred.reject();var a=s.Deferred();this._lastValidateDeferred=a;try{var e=new f.JsonDataSource({}),t=this._getSerializedUriSource(e);this._lastValidatedJsonSourceJSON=t;var n=function(e){var t;a.state&&"rejected"===a.state()||(r._isUriValid(e.isUriValid),t=b((e.isUriValid?"":e&&e.faultMessage)||o,i),a.resolve({isUriValid:e.isUriValid,faultMessage:t}))};this._requestWrapper.validateJsonUri(e).done(n).fail(function(e){void 0===e&&(e={}),e.isValid=!1,n(e)})}catch(e){this._isUriValid(!1)}return a.promise()},O.prototype._isCollectionValid=function(e){return!this[e]().length||this[e]().every(function(e){return e.name()})},O.prototype._isParametersValid=function(){return this._isCollectionValid("parameters")},O.prototype._isBasicHttpAuthValid=function(){return!this.basicHttpAuth.password()||!!this.basicHttpAuth.userName()},O.prototype._getSourceUriInfo=function(){var t=this,e={propertyName:"sourceUri",displayName:"Web Service Endpoint (URI):",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_URI",defaultVal:"",editor:y.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:n.pureComputed(function(){return t._noEmptyProperties()}),get message(){return r._lastValidationMessage()},validationCallback:this._sourceUriValidationCallback}]},e},O.prototype._getBasicHttpAuthInfo=function(){var t=this,e={propertyName:"userName",displayName:"Username:",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_UsernameText",editor:y.editorTemplates.getEditor("text"),validatorOptions:void 0},r={propertyName:"basicHttpAuth",displayName:"Basic HTTP Authentication",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_BasicHttpAuthText",info:[e,{propertyName:"password",displayName:"Password:",localizationId:"DataAccessUIStringId.WizardPageConfigureJsonConnection_PasswordText",editor:y.editorTemplates.getEditor("text"),editorOptions:{mode:"password"}}],editor:y.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 b(null,c.getLocalization(r.displayName,r.localizationId),c.getLocalization(e.displayName,e.localizationId))},validationCallback:function(e){return t._isBasicHttpAuthValid()}}]},r},O.prototype._getParametersInfo=function(){var t=this,e={propertyName:"parameters",displayName:"Parameters",localizationId:"AnalyticsCoreStringId.QueryBuilder_Parameters",array:!0,addHandler:function(){var e=g.getUniqueNameForNamedObjectsArray(t.parameters(),"parameter");return _.JsonParameter.from({"@Name":e})},editor:y.editorTemplates.getEditor("commonCollection"),editorOptions:null,template:"#dx-jsonwizard-parametercollection"};return e.editorOptions={itemsProvider:this._itemsProvider,nameValidationRules:[{type:"required",get message(){return b(null,c.getLocalization(e.displayName,e.localizationId),this._collectionItemNamePlaceholder)}}]},e},O.prototype._getResultUriInfo=function(){return{propertyName:"resultUri",displayName:"Resulting URI:",localizationId:"DataAccessUIStringId.WizardPageChooseJsonSource_ResultingUri",defaultVal:"",editor:y.editorTemplates.getEditor("text"),editorOptions:{readOnly:!0,elementAttr:{title:this.resultUri}}}},O.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],r=e[1],t=this._appendPathSegmentsToUri(e[0]);return this._appendQuerySegmentsToUri(t,r)},O.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},O.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},O.prototype._onValidationSummaryInitialized=function(e){var t=this;T.prototype._onValidationSummaryInitialized.call(this,e),this._isInitUri=!0,setTimeout(function(){t._validate()},1)},O.prototype._applyParametersToSource=function(t){var r=this.parameters().reduce(function(e,t){var r;return a({},e,((r={})[t.itemType()]=(e[t.itemType()]||[]).concat([t]),r))},{});["PathParameter","QueryParameter","Header"].forEach(function(e){r[e]&&t.source[u.parameterTypeToPropertyMap[e]](r[e])})},O.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)},O.prototype.getInfo=function(){return[this._getSourceUriInfo(),this._getBasicHttpAuthInfo(),this._getParametersInfo(),this._getResultUriInfo()]},O.prototype.reset=function(){this.sourceUri(""),this.basicHttpAuth.password(""),this.basicHttpAuth.userName(""),this.parameters([])},O.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)},O.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)},O.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))},O.prototype.isEmpty=function(){return!this.sourceUri()},O.prototype._validate=function(){this._validationSummary&&this._validationGroup&&(this._validatorsReady()?(this._validationGroup.validate(),this._validationRequested(!1)):this._validationRequested(!0))},O);function O(e,t){var o=T.call(this)||this;return o._requestWrapper=e,o._itemsProvider=t,o._isUriValid=n.observable(!1),o._lastValidatedJsonSourceJSON="",o._authNameValidatorInstance=null,o._isInitUri=!0,o._collectionItemNamePlaceholder=c.getLocalization("Name","AnalyticsCoreStringId.CollectionEditor_Name_Placeholder"),o._lastValidateDeferred=null,o._sourceUriValidatorsReady=n.observable(!0),o._basicAuthValidatorsReady=n.observable(!1),o._validationRequested=n.observable(!1).extend({deferred:!0}),o._noEmptyProperties=n.pureComputed(function(){var e=o._isBasicHttpAuthValid(),t=o._isParametersValid(),r=!!o.sourceUri();return e&&t&&r}),o._lastValidationMessage=n.observable(),o._getSerializedUriSource=function(e){return void 0===e&&(e=new f.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=b(null,c.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(c.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=n.pureComputed(function(){var e=o._noEmptyProperties(),t=o._isUriValid();return e&&t}),o._validatorsReady=n.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=n.observable(""),o.basicHttpAuth={password:n.observable(""),userName:n.observable("")},o.parameters=n.observableArray([]),o._disposables.push(o.resultUri=n.pureComputed(function(){return o._getResultUri()})),o._disposables.push(o.grid=new p.ObjectProperties(n.observable(o))),o._disposables.push(n.computed(function(){var e=o._validatorsReady(),t=o._validationRequested();e&&t&&o._validate()})),o._disposables.push(o._validatorsReady),o}t.JsonDataSourceJsonSourcePageUriSettings=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(12),l=r(13),u=r(131),p=r(34),f=r(9),m=r(78),h=r(24),y=r(1),g=r(35),_=r(11),v=r(18),b=r(33),S=r(0),x=r(75),P=r(15),C=r(79),T=r(16),O=r(42),I=r(32),N=r(1),D=r(132),E=r(1),w=r(53),A=r(5),z=r(10),M=(a=c.WizardPageBase,i(k,a),k.prototype._addQueryAlgorithm=function(e,t,r,o){e.unChecked()&&"queries"!==t?e.children().forEach(function(e){k._removeQuery(r.queries,e)}):(0===e.children().length&&this._itemsProvider().getItems(new y.PathRequest(t)),"tables"===t||"views"===t?this._addQueryFromTables(e,r):"procedures"===t?this._addQueryFromStoredProcedures(e,r):this._addQueryFromCustomQueries(e,o,r.queries))},k.prototype._addQueryFromTables=function(e,t){for(var r=0;r<e.children().length;r++){var o=e.children()[r];if(o.unChecked())k._removeQuery(t.queries,o);else{var i={},a={Columns:i,Tables:{SelectedTables:{Item1:{"@Name":o.name,"@ControlType":"Table","@ItemType":"Table"}}}};0===o.children().length&&this._itemsProvider().getItems(new y.PathRequest("tables."+o.name)).done(function(){o.initializeChildren(o.children())});for(var n=0;n<o.children().length;n++){var s=o.children()[n];s.checked()&&(i["Item"+(n+1)]={"@Table":o.name,"@Name":s.name,"@ItemType":"Column"})}k._pushQuery(new p.TableQuery(a,t),o,t.queries)}}},k.prototype._addQueryFromStoredProcedures=function(e,t){for(var r=0;r<e.children().length;r++){var o,i=e.children()[r];i.checked()?(o=new g.StoredProcQuery({"@Name":i.name,ProcName:i.name},t),i.arguments.forEach(function(e){o.parameters.push(new _.DataSourceParameter({"@Name":e.name,"@Type":v.DBColumn.GetType(e.type)},null,b.storedProcParameterSerializationsInfo(v.DBColumn.GetType(e.type))))}),k._pushQuery(o,i,t.queries)):k._removeQuery(t.queries,i)}},k.prototype._addQueryFromCustomQueries=function(e,t,r){for(var o=0;o<e.children().length;o++){var i=e.children()[o],a=S.findFirstItemMatchesCondition(t.peek(),function(e){return i.name===(e.name()||e.generateName())});i.checked()&&(a.name(x.generateQueryUniqueName(r.peek(),a)),this._checkedQueries.push(a))}},k.prototype._getItemsPromise=function(e){return this._itemsProvider().getItems(e)},k.prototype._resetDataSourceResult=function(){this._customResetOptions(),this._dataSource().relations([]),this._dataSource().resultSet=null,this._onChange()},k.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(x.generateQueryUniqueName(t.customQueries().peek(),e)),t.customQueries().push(e),this._selectedPath("queries."+e.name()),(e=(e=this._itemsProvider().queries().children())[e.length-1]).setChecked(!0),e._afterCheckToggled&&e._afterCheckToggled(e)),this._resetDataSourceResult()},k._pushQuery=function(t,e,r){S.findFirstItemMatchesCondition(r.peek(),function(e){return e.name()===(t.name()||t.generateName())})||(t.name(x.generateQueryUniqueName(r.peek(),t)),r.push(t)),e.hasQuery=!0},k._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)},k.prototype.canNext=function(){return!this._itemsProvider().nextButtonDisabled()&&this.canFinish()},k.prototype.canFinish=function(){return this._itemsProvider()&&this._itemsProvider().hasCheckedItems()&&!this._isDataLoadingInProcess()},k.prototype._AddQueryWithBuilder=function(){},k.prototype._runQueryBuilder=function(){},k.prototype._loadPanelViewModel=function(e){return O.PopupWizard._getLoadPanelViewModel(e,this._isDataLoadingInProcess)},k.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)})},k.prototype._setCustomSqlQuery=function(e){this._setQueryCore(e)},k.prototype._createTreeListFactory=function(){return new l.MultiQueryTreeListItemFactory},k.prototype.commit=function(){var t=this;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();var e=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 g.StoredProcQuery});r.forEach(function(e){return t._sqlDataSourceWrapper.sqlDataSource.queries.remove(e)});var o=new N.ModelSerializer;return s.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.save(),customQueries:r.map(function(e){return JSON.stringify(o.serialize(e))})}).promise()},k.prototype.initialize=function(e){var t=this;this._sqlDataSourceWrapper=d._restoreSqlDataSourceFromState(e,this._options.requestWrapper);var e=this._callbacks.customQueriesPreset?this._callbacks.customQueriesPreset(this._dataSource()):s.Deferred().resolve([]).promise(),r=s.Deferred();return e.done(function(e){t._customQueries(e),t._selectedPath(""),t._itemsProvider(new u.DBSchemaItemsProvider(t._dataSource().dbSchemaProvider,t._customQueries,t._showQbCallBack,t.disableCustomSql,t._getItemsAfterCheck)),t._getItemsPromise(new y.PathRequest("queries")),t._fieldListModel({factory:t._createTreeListFactory(),itemsProvider:t._itemsProvider(),selectedPath:t._selectedPath,treeListController:new D.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()},k);function k(e){var o=a.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 h._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===t&&(t=null),void 0===e&&(e=!1),null!==t?(r=S.findFirstItemMatchesCondition(o._customQueries(),function(e){return t===(e.name()||e.generateName())})).type()===f.SqlQueryType.customSqlQuery?(o._queryEditIndex(o._customQueries().indexOf(r)),o._showStatementPopup(r)):(o._queryEditIndex(o._customQueries().indexOf(r)),o._popupQueryBuilder.show(r,o._dataSource())):(o._queryEditIndex(-1),e?o._showStatementPopup(new I.CustomSqlQuery({"@Name":null},o._dataSource())):(e=new p.TableQuery({"@Name":null},o._dataSource()),o._popupQueryBuilder.show(e,o._dataSource())))},o._popupSelectStatement={isVisible:n.observable(!1),title:function(){return E.getLocalization("Custom SQL Editor","AnalyticsCoreStringId.SqlDSWizard_CustomSqlEditor")},query:null,data:n.observable(),okButtonText:function(){return E.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:w.createDefaultSQLAceOptions(),aceAvailable:z.aceAvailable(),additionalOptions:w.createDefaultSQLAdditionalOptions(function(e){o._popupSelectStatement.data(e)}),languageHelper:w.createDefaultSQLLanguageHelper(),closest:function(e,t){return s(e).closest(t)}},o._customResetOptions=s.noop,o._queryEditIndex=n.observable(-1),o.disableCustomSql=!0,o._scrollViewHeight="calc(100% - 36px)",o._customizeDBSchemaTreeListActions=null,o._isDataLoadingInProcess=n.observable(!1),o._callbacks=o._options.callbacks,o._sqlTextProvider=new m.SelectQuerySqlTextProvider(P.wrapGetSelectStatement(o._callbacks.selectStatement),o._dataConnection),o._popupQueryBuilder=new C.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[T.BaseWizard.__loadingStateFunctionName]&&o[T.BaseWizard.__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 y.PathRequest(t.name)).done(function(){t.isList&&0<t.children.peek().length?s.when.apply(s,t.children.peek().map(function(e){return o._getItemsPromise(new y.PathRequest(t.name+"."+e.name))})).always(function(){return o._isDataLoadingInProcess(!1)}):o._isDataLoadingInProcess(!1)}):"table"===t.specifics||"view"===t.specifics?o._itemsProvider().getItems(new y.PathRequest(t.specifics+"."+t.name)).always(function(){return o._isDataLoadingInProcess(!1)}):"procedures"===t.name?o._itemsProvider().getItems(new y.PathRequest(t.name)).always(function(){return o._isDataLoadingInProcess(!1)}):o._isDataLoadingInProcess(!1):o._isDataLoadingInProcess(!1)},o}t.MultiQueryConfigurePage=M,t._registerMultiQueryConfigurePage=function(e,t){e.registerMetadata(A.SqlDataSourceWizardPageId.MultiQueryConfigurePage,{create:function(){return new M(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:E.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";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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=r(3),n=r(2),s=r(9),c=r(7),d=r(12),l=r(24),u=r(133),p=r(11),f=r(0),m=r(13),h=r(6),y=r(0),g=r(1),_=r(5);function v(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=v;var b,S=(b=c.WizardPageBase,i(x,b),x.prototype._isParametersValid=function(){return this._getParameters().every(function(e){return e.isValid()})},x.prototype.canNext=function(){return this._isParametersValid()&&1<this._sqlDataSourceWrapper.sqlDataSource.queries().length},x.prototype.canFinish=function(){return this._isParametersValid()&&1<=this._sqlDataSourceWrapper.sqlDataSource.queries().length},x.prototype._getParameters=function(){return[].concat.apply([],(this._rootItems()||[]).map(function(e){return e.parameters().map(function(e){return e.dataSourceParameter()})}))},x.prototype.initialize=function(e){var o=this,r=[],i=this._rootItems();return this._sqlDataSourceWrapper=d._restoreSqlDataSourceFromState(e,this._requestWrapper),this._sqlDataSourceWrapper.sqlDataSource.queries().forEach(function(e){var t;v(e,o._sqlDataSourceWrapper.customQueries)&&((t=new u.ParametersTreeListRootItem(e)).parameters(e.parameters().map(function(e){return new u.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=a.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 u.ParametersTreeListController(this._rootItems(),this._createNewParameter)}),a.Deferred().resolve().promise()},x.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())}))}),a.Deferred().resolve({sqlDataSourceJSON:this._sqlDataSourceWrapper.sqlDataSourceJSON,customQueries:this._sqlDataSourceWrapper.saveCustomQueries()}).promise()},x);function x(e,t){void 0===e&&(e={createParameterViewModel:function(e){return e},getParameterFromViewModel:function(e){return e}});var r=b.call(this)||this;r.parametersConverter=e,r._requestWrapper=t,r._sqlDataSourceWrapper=new l._SqlDataSourceWrapper(void 0,void 0,r._requestWrapper),r._selectedPath=n.observable(null),r._rootItems=n.observableArray(),r._createNewParameter=function(e,t){t=new p.DataSourceParameter({"@Name":f.getUniqueNameForNamedObjectsArray(t,"parameter"),"@Type":"System.Int32"});return r._selectedPath(e+"."+t.name()),r.parametersConverter.createParameterViewModel(t)},r._scrollViewHeight="100%",r._fieldListModel=n.observable(null),r._removeButtonTitle=g.getLocalization("Remove","DataAccessUIStringId.Button_Remove");function o(){return r._onChange()}return r._disposables.push(m.subscribeArray(r._rootItems,function(e){r._disposables.push(m.subscribeArray(e.parameters,function(e){r._disposables.push(m.subscribeObject(e.dataSourceParameter,function(e){var t;(t=r._disposables).push.apply(t,m.subscribeProperties([e.name,e.value,e.type],o))},o))},o))},o)),r._parametersEditorOptions={addHandler:function(){return r.parametersConverter.createParameterViewModel(new p.DataSourceParameter({"@Name":f.getUniqueNameForNamedObjectsArray(r._parametersEditorOptions.values.peek().peek(),"param"),"@Type":"System.Int32"}))},values:n.observable(n.observableArray([])),displayName:"Parameters",level:0,info:n.observable({displayName:"Parameters",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Parameters",propertyName:"parameters",modelName:"Parameter",array:!0,editor:h.editorTemplates.getEditor("commonCollection"),template:"#dxrd-parameter-collection-item"}),editorTemplate:"#dxrd-wizard-datasource-parameters",hideButtons:n.observable(!1),collapsed:!1},r}t.MultiQueryConfigureParametersPage=S,t._registerMultiQueryConfigureParametersPage=function(e,t,r){e.registerMetadata(_.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:g.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters"),template:"dxrd-configure-query-parameters-page"})}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(12),l=r(71),u=r(13),p=r(134),f=r(0),m=r(1),h=r(5),y=r(1),g=(a=c.WizardPageBase,i(_,a),_.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposeObservableArray(this._relations)},_.prototype._updateRelations=function(){var a=this,n=this._relations();n.forEach(function(t,e){var r,o=a._resultSet.tables().filter(function(e){return e.tableName()===t.detailQuery()})[0],i=a._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&&n.splice(e,1)):n.splice(e,1)}),this._relations.valueHasMutated()},_.prototype.canNext=function(){return!1},_.prototype.canFinish=function(){return this._relations().every(function(e){return e.keyColumns().every(function(e){return!!e.detailColumn()&&!!e.masterColumn()})})},_.prototype._getResultSet=function(e){var t=s.Deferred();return e.resultSet?t.resolve(e.resultSet):this._sqlDataSourceResultSchema(e).done(function(e){t.resolve(new l.ResultSet(JSON.parse(e.resultSchemaJSON)))}).fail(function(e){t.reject(e)}),t.promise()},_.prototype.initialize=function(e){var t=this;return this.relationsSubscription&&this.relationsSubscription.dispose(),this._sqlDataSourceWrapper=d._restoreSqlDataSourceFromState(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._sqlDataSourceWrapper.sqlDataSource).done(function(e){t._resultSet=e,t._updateRelations(),t._relationsEditor(new p.MasterDetailEditor(t._relations,t._resultSet,s.noop))}).fail(function(e){f.getErrorMessage(e)&&f.ShowMessage(f.getErrorMessage(e))})},_.prototype.commit=function(){this.relationsSubscription.dispose(),this._sqlDataSourceWrapper.sqlDataSource.relations(this._relations()),this._sqlDataSourceWrapper.sqlDataSource.resultSet=this._resultSet;var t=new m.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()},_);function _(e){var t=a.call(this)||this;t._sqlDataSourceResultSchema=e,t._relations=n.observableArray([]),t._customResetOptions=s.noop,t._relationsEditor=n.observable(null);function o(){return t._onChange()}return t._disposables.push(u.subscribeArray(t._relations,function(r){var e;(e=r._disposables).push.apply(e,u.subscribeProperties([r.detailQuery,r.name,r.masterQuery],o)),r._disposables.push(u.subscribeArray(r.keyColumns,function(e){var t;(t=r._disposables).push.apply(t,u.subscribeProperties([e.detailColumn,e.masterColumn],o))},o))},o)),t}t.ConfigureMasterDetailRelationshipsPage=g,t._registerConfigureMasterDetailRelationshipsPage=function(e,t){e.registerMetadata(h.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage,{create:function(){return new g(t)},setState:function(e,t){t.relations=e.relations},getState:function(e){return e.sqlDataSourceWizard},resetState:function(e,t){e.relations=t.relations},description:y.getLocalization("Configure master-detail relationships.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureMasterDetailRelations"),template:"dxrd-wizard-configure-relations-page"})}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(13),d=r(7),l=r(52),u=r(23),p=r(82),f=r(83),m=r(84),h=r(81),y=r(1),g=r(38),_=r(5),v=(a=d.WizardPageBase,i(b,a),b.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:c.getSectionStyle(this._dataSourceWizardOptions.rtl?g.WizardSectionPosition.Right:g.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:c.getSectionStyle(this._dataSourceWizardOptions.rtl?g.WizardSectionPosition.TopLeft:g.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:c.getSectionStyle(this._dataSourceWizardOptions.rtl?g.WizardSectionPosition.BottomLeft:g.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"}]},b.prototype.showDescription=function(e,t){return[e+1,t].join(". ")},b.prototype.canNext=function(){return!1},b.prototype.canFinish=function(){return!!this._chooseObjectDataMember.selectedDataMembers().length},b.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()},b.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,l.ObjectDataMember.empty())}),t._types(e.types||[]),0<e.types.length&&t._chooseObjectType.selectedPath(e.types[0].name)}),s.Deferred().resolve().promise()},b);function b(e){var t=a.call(this)||this;t._dataSourceWizardOptions=e,t._types=n.observableArray([]),t._objectDataSource=new u.ObjectDataSource;e=t._dataSourceWizardOptions.callbacks.getItemsProviderCallback;return t._disposables.push(t._provider=new p.ObjectSchemaProvider(t._dataSourceWizardOptions.requestWrapper),t._chooseObjectType=new f.ChooseObjectTypes(t._types,t._provider),t._chooseObjectDataMember=new m.ChooseObjectDataMembers(t._chooseObjectType.selectedType,t._chooseObjectType.selectedCtor),t._chooseObjectParameters=new h.ChooseObjectParameters(t._chooseObjectType.selectedCtor,t._chooseObjectDataMember.selectedDataMembers,e&&e())),t._initSections(),t}t.SpecifyObjectDataSourceSettingsPage=v,t._registerSpecifyObjectDataSourceSettingsPage=function(e,t){e.registerMetadata(_.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 v(t)},template:"dxrd-page-objectsource",navigationPanelText:y.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage")})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var S=r(2),x=r(3),P=r(58),C=r(0),T=r(70),O=r(1),I=r(97),N=r(68),D=r(8),E=r(0),w=r(0),A=r(0),z=r(46),M=r(0),k=r(27),R=r(0),j=r(53),q=r(155),L=r(156),W=r(6),B=r(0),V=r(157),Q=r(98),F=r(43),U=r(0),J=r(0),a=r(158),n=r(196),H=r(74),$=r(15),G=r(10),X={Surface:"dxrd-surface-template-base",Toolbar:"dxqb-toolbar",RightPanel:"dx-right-panel-lightweight",DataPreview:"dxqb-popup#data",SqlPreview:"dxqb-popup#sql"};function Y(o,i,a,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(a().rtl()?{left:t,right:0,width:r}:{left:0,right:t,width:r}),i(r),a().pageWidth(r)}}function K(e,t){var r=S.observable(!1);return 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 s(e,t,r,o){void 0===o&&(o=!0);var i=r&&r.onServerError&&A.processErrorEvent(r.onServerError),a=t.requestWrapper||new D.RequestWrapper,n=t.parametersMode||z.ParametersMode.ReadWrite;T.HandlerUri(t.handlerUri),t.queryModelJson&&(m=new H.SqlDataSource(JSON.parse(t.dataSourceJson)),t.dbSchemaProvider=E._wrapModelInObservable(t.dbSchemaProvider),t.dbSchemaProvider(new N.DBSchemaProvider(m.connection)),t.querySource=E._wrapModelInObservable(t.querySource),t.querySource(JSON.parse(t.queryModelJson)));var s=t.dbSchemaProvider().connection,c=S.observable(),d=S.observable(),l=S.observable();c.subscribe(function(e){d(new I.QuerySurface(e)),d().rtl(!!t.rtl)});function u(e){c(new P.QueryViewModel(e,t.dbSchemaProvider(),n,function(e){return e=e,void r.saveQueryRequested({queryLayout:encodeURIComponent(JSON.stringify(e)),connection:encodeURIComponent($.serializeDataConnection(s))})}))}u(t.querySource());var p=new M.SurfaceSelection(["alias","name","sortOrder"]),f=w.createDesigner(c,d,k.controlsFactory,void 0,void 0,void 0,!!t.rtl,p);i&&(f.dispose=function(){i.dispose()}),f.rootStyle="dxqb-designer dxd-back-primary2";var m=R.getParentContainer;f.dataPreview={isLoading:S.observable(!1),isVisible:S.observable(!1),title:function(){return O.getLocalization("Data Preview (First 100 Rows Displayed)","AnalyticsCoreStringId.DataPreview_Title")},template:"dxqb-data-preview",data:{value:S.observable()},okButtonText:function(){return O.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){e.model.isVisible(!1)},container:m},f.selectStatmentPreview={isLoading:S.observable(!1),isVisible:S.observable(!1),template:"dxqb-selectstatment-preview",title:function(){return O.getLocalization("Select Statement Preview","AnalyticsCoreStringId.QueryBuilder_SelectStatementPreview_Title")},data:{value:S.observable(),aceOptions:j.createDefaultSQLAceOptions(!0),aceAvailable:G.aceAvailable(),additionalOptions:j.createDefaultSQLAdditionalOptions(function(e){f.selectStatmentPreview.data.value(e)}),languageHelper:j.createDefaultSQLLanguageHelper()},okButtonText:function(){return O.getLocalization("OK","DataAccessUIStringId.Button_OK")},okButtonHandler:function(e){e.model.isVisible(!1)},container:m},f.parts=[{id:X.Surface,templateName:X.Surface,model:f},{id:X.Toolbar,templateName:X.Toolbar,model:f},{id:X.RightPanel,templateName:X.RightPanel,model:f},{id:X.DataPreview,templateName:X.DataPreview.split("#")[0],model:f.dataPreview},{id:X.SqlPreview,templateName:X.SqlPreview.split("#")[0],model:f.selectStatmentPreview}],f.columnDragHandler=new q.ColumnDragHandler(d,f.selection,f.undoEngine,f.snapHelper,f.dragHelperContent),f.connectionPointDragHandler=f.columnDragHandler,f.resizeHandler.handles="e, w",f.columnsLoadingMsg=function(){return O.getLocalization("Loading...","DataAccessWebStringId.QueryBuilder_ColumnsLoading")};function h(e){u(e),l({itemsProvider:t.dbSchemaProvider(),treeListController:new L.QueryBuilderTreeListController(f.undoEngine,c),selectedPath:S.observable(),pageSize:100,templateName:"dxqb-treelist-item-with-search"})}t.querySource.subscribe(function(e){h(e)}),h(t.querySource());var y,g,_,v=S.observable(355),m={editableObject:f.editableObject,properties:new W.ObjectProperties(f.editableObject,null,1),fieldListModel:{treeListOptions:l},tablesTop:v,searchPlaceholder:function(){return B.searchPlaceholder()}},m=new V.AccordionTabInfo(c,m,f.undoEngine,p.focused,n===z.ParametersMode.ReadWrite),p=f.tabPanel;p.tabs.length=0,p.tabs.push(m),p.width(375),f.fieldDragHandler=new Q.DbObjectDragDropHandler(d,f.selection,f.undoEngine,f.snapHelper,f.dragHelperContent),f.fieldListProvider=new F.QueryBuilderObjectsProvider(c,F.QueryBuilderObjectsProvider.whereClauseObjectsFilter),f.dataBindingsProvider=f.fieldListProvider,f.parametersBindingsProvider=t.parametersItemsProvider||f.dataBindingsProvider,f.dataBindingsGroupProvider=new F.QueryBuilderObjectsProvider(c,F.QueryBuilderObjectsProvider.groupByObjectsFilter),f.isLoading=K(f.model,t.dbSchemaProvider),f.actionLists=new U.ActionLists(d,f.selection,f.undoEngine,(y=f,g=r&&r.customizeActions,_=y.model,function(e){var t=C.findFirstItemMatchesCondition(e,function(e){return"Delete"===e.text});t.imageClassName="dx-icon-dxrd-image-recycle-bin",t.imageTemplateName="dxrd-svg-operations-recycle_bin";var r=C.findFirstItemMatchesCondition(e,function(e){return"Undo"===e.text});r.disabled=S.pureComputed(function(){return y.isLoading()||!y.undoEngine().undoEnabled()});var o=C.findFirstItemMatchesCondition(e,function(e){return"Redo"===e.text});e.splice(0,e.length,t,r,o),e.push({id:T.ActionId.Save,text:"Save",displayText:function(){return O.getLocalization("Save","AnalyticsCoreStringId.MenuButtons_Save")},imageClassName:"dxqb-image-save",imageTemplateName:"dxrd-svg-menu-save",disabled:y.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"S".charCodeAt(0)},clickAction:function(){_().save()},hasSeparator:!0}),e.push({id:T.ActionId.DataPreview,text:"Preview Results",displayText:function(){return O.getLocalization("Preview Results","DataAccessUIStringId.QueryBuilderButtons_PreviewResults")},imageClassName:"dxrd-image-data-preview",imageTemplateName:"dxrd-svg-queryBuilder-data_preview",disabled:y.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"P".charCodeAt(0)},clickAction:function(){_().canSave()&&y.showPreview()},hasSeparator:!0}),e.push({id:T.ActionId.SelectStatementPreview,text:"Preview Select Statement",displayText:function(){return O.getLocalization("Preview Select Statement","AnalyticsCoreStringId.QueryBuilder_PreviewSelectStatement_Tooltip")},imageClassName:"dxrd-image-selectstatement-preview",imageTemplateName:"dxrd-svg-queryBuilder-select_statment",disabled:y.isLoading,visible:!0,hotKey:{ctrlKey:!0,keyCode:"E".charCodeAt(0)},clickAction:function(){_().canSave()&&y.showStatement()},hasSeparator:!0}),g&&g(e)})),f.selection.focused(d()),d.subscribe(function(e){f.selection.focused(e)}),f.isLoading()||f.undoEngine&&f.undoEngine().clearHistory(),f.isLoading.subscribe(function(e){f.undoEngine&&f.undoEngine().clearHistory()}),f.editableObject.subscribe(function(e){v.notifySubscribers(null)}),E.appendStaticContextToRootViewModel(f),o&&(r&&r.beforeRender&&r.beforeRender(f),x(e).empty(),S.cleanNode(e),S.applyBindings(f,e));var b=Y(function(){return x(e).find(".dxqb-designer")},f.surfaceSize,d);return d.subscribe(function(){b()}),x(window).bind("resize",function(){setTimeout(function(){return b()})}),f.tabPanel.width.subscribe(function(){b()}),f.updateSurfaceSize=function(){b()},f.updateSurface=function(){b(),v(355)},f.findControl=function(e,r){x(".dxqb-main").children(".dxrd-control").each(function(e,t){t=x(t);t.offset().top<=r.clientY&&t.offset().left<=r.clientX&&f.selection.focused(S.dataFor(t[0]))})},o&&f.updateSurface(),f.showPreview=function(){f.dataPreview.isLoading(!0),f.dataPreview.isVisible(!0),a.getDataPreview(s,JSON.stringify(c().serialize(!0))).done(function(e){f.dataPreview.data.value(JSON.parse(e.dataPreviewJSON)),f.dataPreview.isLoading(!1)}).fail(function(e){f.dataPreview.isVisible(!1),J.ShowMessage(J.getErrorMessage(e))})},f.showStatement=function(){f.selectStatmentPreview.isLoading(!0),f.selectStatmentPreview.isVisible(!0),a.getSelectStatement(s,JSON.stringify(c().serialize(!0))).done(function(e){e.errorMessage&&J.ShowMessage(e.errorMessage),f.selectStatmentPreview.data.value(e.sqlSelectStatement),f.selectStatmentPreview.isLoading(!1)}).fail(function(e){f.selectStatmentPreview.isVisible(!1),J.ShowMessage(J.getErrorMessage(e))})},f}t.updateQueryBuilderSurfaceContentSize=Y,t.createIsLoadingFlag=K,t.isJoinsResolvingDisabled=!1,t.createQueryBuilder=function(e,t,r,o){void 0===o&&(o=!0),t.localization&&O.addCultureInfo({messages:t.localization}),n.default({rtlEnabled:!!t.rtl}),a.registerControls();var i=[];return r&&r.customizeLocalization&&r.customizeLocalization(i),B.resolveFromPromises(i,function(){return s(e,t,r,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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var d,l=r(2),a=r(28),u=r(26),p=r(18),f=r(21),m=r(152),h=r(0),i=(d=a.QueryElementBaseViewModel,i(n,d),n.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)},n.prototype.getInfo=function(){return u.columnSerializationInfo},n.prototype.isPropertyDisabled=function(e){if(this.isNotAvailable())return!0;if("sortOrder"===e)return"Unsorted"===this.sortingType();if("aggregate"===e||"alias"===e)return!this.selected();if("groupBy"!==e)return!1;e=this.root;return this.aggregate()&&1===e.aggregatedColumnsCount()},Object.defineProperty(n.prototype,"specifics",{get:function(){return p.DBColumn.GetSpecific(this.dataType())},enumerable:!0,configurable:!0}),n);function n(e,t,r,o){var i=d.call(this,h.extend({"@ControlType":"Column"},e),r,o)||this;i.isNotAvailable=l.observable(!1),i._type=l.observable(p.DBColumnType.Unknown),i._size=l.observable(""),t.size&&i._size(t.size),t.type&&i._type(t.type),i.displayType=l.pureComputed(function(){return p.DBColumnType[i._type()]+(i._size()?"("+i._size()+")":"")}),i.dataType=l.pureComputed(function(){return p.DBColumn.GetType(i._type())}),i.actualName=l.pureComputed(function(){return i.alias()||i.name()});t=r.getColumnConnectionPoints(i);i.rightConnectionPoint={side:l.observable(f.PointSide.East),location:t.right},i.leftConnectionPoint={side:l.observable(f.PointSide.West),location:t.left};var a=r.parentModel(),n=l.pureComputed(function(){return m.ColumnExpressionCollectionHelper.find(a.columns,r.actualName(),i.name())});i.aggregate=l.pureComputed({read:function(){return n()?n().aggregate():u.AggregationType.None},write:function(e){n()&&n().aggregate(e)}}),i.alias=l.pureComputed({read:function(){return n()?n().alias():""},write:function(e){n()&&n().alias(e||null)}});var s=l.pureComputed(function(){return m.ColumnExpressionCollectionHelper.find(a.sorting,r.actualName(),i.name())});i.sortingType=l.computed({read:function(){return s()?s().descending()?"Descending":"Ascending":"Unsorted"},write:function(e){"Unsorted"!==e?(s()?s():m.ColumnExpressionCollectionHelper.addNew(a,a.sorting,r.actualName(),i.name())).descending("Descending"===e):s()&&m.ColumnExpressionCollectionHelper.remove(a.sorting,r.actualName(),i.name())}}),i.sortOrder=l.computed({read:function(){var e=a.sorting().indexOf(s());return e<0?void 0:e+1},write:function(e){var t;s()&&(e=Math.min(e,a.sorting().length),e=Math.max(e,1),t=a.sorting().indexOf(s()),t=a.sorting.splice(t,1),a.sorting.splice(e-1,0,t[0]))}});var c=l.computed(function(){return m.ColumnExpressionCollectionHelper.find(a.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(a.columns,e)))):i._isAliasAutoGenerated(t.actualName())&&i.alias(null)}),i.groupBy=l.computed({read:function(){return!!c()},write:function(e){e?(m.ColumnExpressionCollectionHelper.addNew(a,a.grouping,r.actualName(),i.name()),i.aggregate(u.AggregationType.None)):m.ColumnExpressionCollectionHelper.remove(a.grouping,r.actualName(),i.name())}}),i.selected=l.pureComputed({read:function(){return!!n()},write:function(e){!!n()!==e&&(e?m.ColumnExpressionCollectionHelper.addNew(a,a.columns,r.actualName(),i.name()):(m.ColumnExpressionCollectionHelper.remove(a.columns,r.actualName(),i.name()),i.groupBy(!1)))}}),i}t.ColumnViewModel=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r=r(44);t.tableSerializationInfo=[r.name,r.alias,{propertyName:"itemType",modelName:"@ItemType"}]},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(28),c=r(1),d=r(94),l=r(95),u=r(0),i=(a=s.QueryElementBaseViewModel,i(p,a),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 l.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=a.call(this,u.extend(e,{"@ControlType":"Relation","@ItemType":"Relation"}),t,r)||this;return o.parentTable=n.observable(t.getTable(o.parentTableName.peek())),o.nestedTable=n.observable(t.getTable(o.nestedTableName.peek())),o.parentTableName=n.pureComputed(function(){return o.parentTable().actualName()}),o.nestedTableName=n.pureComputed(function(){return o.nestedTable().actualName()}),o.conditions=c.deserializeArray(e.KeyColumns,function(e){return new d.JoinConditionViewModel(e,o,r)}),o}t.RelationViewModel=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(31),c=r(27),d=r(21),l=r(0),i=(a=s.RoutedConnectorViewModel,i(u,a),u.prototype.getControlFactory=function(){return c.controlsFactory},u.prototype.preInitProperties=function(){this.startPoint=n.observable(),this.endPoint=n.observable()},u);function u(e,t,r){var o=a.call(this,l.extend(e,{"@ControlType":"JoinCondition","@ItemType":"KeyColumn"}),t,r)||this;return o.parentColumn=n.pureComputed(function(){return t.parentTable().getColumn(o.parentColumnName())}),o.nestedColumn=n.pureComputed(function(){return t.nestedTable().getColumn(o.nestedColumnName())}),o.joinType=t.joinType,o.left=n.pureComputed(function(){return t.parentTableName()+"."+o.parentColumnName()}),o.right=n.pureComputed(function(){return t.nestedTableName()+"."+o.nestedColumnName()}),o._disposables.push(n.computed(function(){var e;o.parentColumn()&&o.nestedColumn()&&(e=d.determineConnectingPoints(o.parentColumn(),o.nestedColumn()),o.startPoint().connectingPoint(e.start),o.endPoint().connectingPoint(e.end))})),o}t.JoinConditionViewModel=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!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});var o=r(25),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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(4),c=r(0),d=r(1),l=r(0),i=(a=s.SurfaceElementBase,i(u,a),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=n.observable(1));var r=a.call(this,e,{measureUnit:n.observable("Pixels"),zoom:t,dpi:n.observable(100)},u._unitProperties)||this;return r.placeholder=function(){return d.getLocalization("Drop a table or view here to create a query.","AnalyticsCoreStringId.QueryBuilder_SurfacePlaceholder")},r.tables=n.observableArray(),r.relations=n.observableArray(),r.allowMultiselect=!1,r.focused=n.observable(!1),r.selected=n.observable(!1),r.underCursor=n.observable(new l.HoverInfo),r.templateName="dx-query-surface",r.rtl=n.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,c.createObservableArrayMapCollection(e.tables,r.tables,r._createSurface),c.createObservableArrayMapCollection(e.relations,r.relations,r._createSurface),r._joinedColumns=n.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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,a=r(0),s=r(27),c=r(4),d=r(4),l=r(0),u=r(0),i=(n=a.DragDropHandler,i(p,n),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(),t=this._drop(t.data,this._query()),this.addControl(t,this._querySurface(),this._size))},p.prototype.addControl=function(e,t,r){t.getControlModel().addChild(e);e=l.findSurface(e);e&&(e.rect({left:t.underCursor().x,top:t.underCursor().y,width:r.width()}),this.selection.initialize(e))},p.getDropCallback=function(o,i){return function(e,t){var r=t.createChild(u.extend({"@ControlType":"Table","@Name":e.name},s.controlsFactory.controlsMap.Table.defaultVal));return r.isInitialized()?t.tryToCreateRelationsByFK(r):r.isInitialized.subscribe(function(){o().start(),t.tryToCreateRelationsByFK(r),o().end()}),i&&(e=Math.max.apply(null,t.tables.peek().filter(function(e){return e!==r}).map(function(e){return e.location.x.peek()+3*e.size.width.peek()/2}).concat([30])),r.location.x(e),r.location.y(65)),r}},p);function p(e,t,r,o,i){var a=n.call(this,e,t,r,o,i)||this;return a._undoEngine=r,a._query=function(){return a._querySurface().getControlModel()},a._querySurface=e,a.cursor="arrow",a.containment=".dxqb-designer",a.cursorAt={top:0,left:0},a.helper=function(e){n.prototype.helper.call(a,e),a.recalculateSize(c.Size.fromString("199, 123")),i.setContent(new d.Rectangle(0,0,a._size.width(),a._size.height()))},a._drop=p.getDropCallback(a._undoEngine,!1),a}t.DbObjectDragDropHandler=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(0),s=r(63),c=r(14),d=r(30),l=r(0),i=(a=n.DragDropHandler,i(u,a),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 d.ConnectingPointViewModel?this.newConnector.endPoint().connectingPoint(e):e instanceof c.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&&l.findSurface(this.newConnector)},enumerable:!0,configurable:!0}),u);function u(e,t,r,o,i){o=a.call(this,e,t,r,o,i)||this;return o.startConnectingPoint=null,o.newConnector=null,o.cursor="arrow",o.containment=".dxrd-ghost-container",o.helper=function(e){i.update(e)},o}t.ConnectingPointDragHandler=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(29),c=r(22),i=(a=s.DiagramElementBaseSurface,i(d,a),d);function d(e,t){var r=a.call(this,e,t,null)||this;return r.template="dxdd-connector",r.selectiontemplate="dxdd-connector-selection",r.startPoint=n.pureComputed(function(){return new c.ConnectionPointSurface(e.startPoint(),t)}),r.endPoint=n.pureComputed(function(){return new c.ConnectionPointSurface(e.endPoint(),t)}),r}t.ConnectorSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(0),s=r(22),c=r(30),d=r(14),i=(a=n.DragDropHandler,i(l,a),l.prototype.startDrag=function(e){if(!(e instanceof s.ConnectionPointSurface))throw new Error("ConnectionPointDragHandler can be applied to the ConnectionPoint only.");this.currentConnectionPoint=e},l.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})},l.prototype.doStopDrag=function(){var e,t;this.dragHelperContent.reset(),this.selection.dropTarget&&((t=this.selection.dropTarget.getControlModel())instanceof c.ConnectingPointViewModel?(e=this.currentConnectionPoint.parent.getControlModel(),(this.currentConnectionPoint.getControlModel()===e.startPoint()?e.startPoint():e.endPoint()).connectingPoint(t)):t instanceof d.DiagramElementViewModel&&(e=this.currentConnectionPoint.parent.getControlModel(),t=t.connectingPoints(),(this.currentConnectionPoint.getControlModel()===e.startPoint()?e.startPoint():e.endPoint()).connectingPoint(t[0])))},l);function l(e,t,r,o,i){o=a.call(this,e,t,r,o,i)||this;return o.currentConnectionPoint=null,o.cursor="arrow",o.containment=".dxrd-ghost-container",o.helper=function(e){i.update(e)},o}t.ConnectionPointDragHandler=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(3),a=r(103),n=r(0),s=r(0),c=r(1);t.getDBSchemaCallback=function(e,t,r){var o=i.Deferred();return e.getDbSchema(t,r).done(function(e){o.resolve(new a.DBSchema(JSON.parse(e.dbSchemaJSON)))}).fail(function(e){n.ShowMessage(s.formatUnicorn(c.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),n.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 a.DBSchema(JSON.parse(e.dbSchemaJSON)).procedures)}).fail(function(e){n.ShowMessage(s.formatUnicorn(c.getLocalization("Stored procedures loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),n.getErrorMessage(e))),r.reject()}),r.promise()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(104),i=r(69),a=r(19),r=function(e){var t=a.deserializeToCollection(e.Tables,function(e){return new o.DBTable(e)});t.sort(function(e,t){return e.name.localeCompare(t.name)});var r=a.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=a.deserializeToCollection(e.StoredProcedures,function(e){return new i.DBStoredProcedure(e)})};t.DBSchema=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(18),i=r(105),a=r(19),r=function(e){this.name=e.Name,this.isView="true"===e.IsView||!0===e.IsView,this.columns=a.deserializeToCollection(e.columns,function(e){return new o.DBColumn(e)}),this.foreignKeys=a.deserializeToCollection(e.foreignKeys,function(e){return new i.DBForeignKey(e)})};t.DBTable=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){this.name=e.Name,this.primaryKeyTable=e.PrimaryKeyTable,this.columns=e.Columns,this.primaryKeyColumns=e.PrimaryKeyTableKeyColumns}t.DBForeignKey=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!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"}]}],r=(a.prototype.getInfo=function(){return i},a);function a(e,t){(t=t||new o.ModelSerializer).deserialize(this,e)}t.ResultTable=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(1),c=r(1),d=r(73),r=r(72),i=(a=s.Disposable,i(l,a),l.from=function(e,t){return new l(e||{},t)},l.toJson=function(e,t,r){return t.serialize(e,u,r)},l.prototype.getInfo=function(){return u},l.prototype.serialize=function(e){return void 0===e&&(e=!1),e?{Source:this.serialize()}:(new c.ModelSerializer).serialize(this)},l.prototype.resetSource=function(){this.sourceType(""),this.json(""),this.uri("")},l._URIJSONSOURCE_TYPE="DevExpress.DataAccess.Json.UriJsonSource",l._CUSTOMJSONSOURCE_TYPE="DevExpress.DataAccess.Json.CustomJsonSource",l);function l(e,r){void 0===e&&(e={});var t=a.call(this)||this;function o(e,t){return e&&Array.isArray(e[d.JsonParameterType[t]])&&e[d.JsonParameterType[t]]&&(e=e[d.JsonParameterType[t]]),s.deserializeArray(e,function(e){return e["@ItemType"]||(e["@ItemType"]=d.JsonParameterType[t]),new d.JsonParameter(e,r)})}return t.sourceType=n.observable(),t.uri=n.observable(),t.json=n.observable(),(r=r||new c.ModelSerializer).deserialize(t,e),t._disposables.push(t.uri.subscribe(function(e){e&&t.sourceType(l._URIJSONSOURCE_TYPE)})),t._disposables.push(t.json.subscribe(function(e){e&&t.sourceType(l._CUSTOMJSONSOURCE_TYPE)})),t.queryParameters=o(e.QueryParameters,d.JsonParameterType.QueryParameter),t.headers=o(e.Headers,d.JsonParameterType.Header),t.pathParameters=o(e.PathParameters,d.JsonParameterType.PathParameter),t}t.JsonSource=i;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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(3),s=r(1),c=r(8),d=r(109),i=(a=s.Disposable,i(l,a),l.prototype.reset=function(){this._jsonSchemaPromise=null},l.prototype.mapToDataMemberContract=function(e){return n.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}}})},l.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)},l.prototype.getJsonSchema=function(e){return void 0===e&&(e=[]),this._jsonSchemaPromise&&"rejected"!==this._jsonSchemaPromise.state()||(this._jsonSchemaPromise=d.getJsonSchemaCallback(this._requestWrapper,this._jsonDataSource,e)),this._jsonSchemaPromise},l);function l(e,t){void 0===t&&(t=new c.RequestWrapper);var o=a.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=n.Deferred();return(o._jsonSchema?n.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=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!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),t=new a.JsonSchemaRootNode(t);o.resolve(t)}finally{"pending"===o.state()&&o.reject()}}).fail(function(e){n.ShowMessage(s.formatUnicorn(c.getLocalization("Schema loading failed. {0}","DxDesignerStringId.Error_SchemaLoadingFailed"),n.getErrorMessage(e))),o.reject()}),o.promise()}var i=r(3),a=r(49),n=r(0),s=r(0),c=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});var o=r(2),i=r(1),a=r(1),n=[{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}],i=(s.prototype.getInfo=function(){return n},s);function s(e,t){this.closeConnection=o.observable(!0),this.commandTimeout=o.observable(null),(t=t||new a.ModelSerializer).deserialize(this,e)}t.ConnectionOptions=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r=r(10);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=[{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=[{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});var o=r(2),i=r(1),a=r(1),r=(n.from=function(e,t){return new n(e,t)},n.toJson=function(e,t,r){return t.serialize(e,s,r)},n.prototype.getInfo=function(){return s},n);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)}t.SqlDataConnection=r;var s=[{propertyName:"name",modelName:"@Name"},{propertyName:"parameteres",modelName:"Parameters"},{propertyName:"fromAppConfig",modelName:"@FromAppConfig",defaultVal:!1,from:a.parseBool}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!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=[{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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,r=r(39),i=(a=r.PageFactory,i(n,a),n.prototype.registerMetadata=function(e,t){a.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="")},n);function n(){return null!==a&&a.apply(this,arguments)||this}t.WizardPageSectionFactory=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(1),d=r(76),l=r(119),u=r(1),p=r(16),f=r(13),i=(a=c.Disposable,i(m,a),m.prototype.dispose=function(){a.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[p.BaseWizard.__nextActionFunctionName]||(e[p.BaseWizard.__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 l.WizardPageSectionIterator(e,t,function(e){return r._resetPageById(e)})}),this.events.call("beforeInitialize",{wizard:this,state:e}),this.stateManager=new d.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 l.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){var r=this;if(void 0===t&&(t=!1),this._createNextAction(e.page),!e.onChange)throw Error("Page with id "+e.pageId+" cannot be used in AutoNavigation, because it does not have method OnChange");return e.onChange(function(){r._changeTimeout&&clearTimeout(r._changeTimeout),r._changeTimeout=setTimeout(function(){r._nextAction(e)},100)}),e.initialize(this.stateManager.getPageState(e.pageId),t).always(function(){return r._loadingState(!1)})},m.prototype.getPageById=function(t){return this.sections.filter(function(e){return e.pageId===t})[0]},m.prototype.start=function(){var t=this;this.events.call("beforeStart",{wizard:this}),this._loadingState(!0);var r=this.iterator.getStartPage();this.events.call("beforePageInitialize",f._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",f._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,t){var o=this;if(void 0===t&&(t=!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||t?(o.stateManager.setPageState(r.pageId,e),o.iterator.getNextPage(r.pageId).done(function(e){e&&0<e.length?e.forEach(function(e){var t=o.getPageById(e.pageId),e=t&&t.page()||e;o.events.call("beforePageInitialize",f._createBeforeInitializePageEventArgs(e,o)),o._initPage(e,!!t.page()).done(function(){o.getPageById(e.pageId).setPage(e),o.events.call("afterPageInitialize",f._createPageEventArgs(e,o)),o._nextAction(e,r.isChanged)})}):o._loadingState(!1),r.isChanged=!1}).fail(function(){return o._loadingState(!1)})):o._loadingState(!1)}).fail(function(){return o._loadingState(!1)})},m.__loadingStateFunctionName="__loadingState",m);function m(e,t,r){var o=a.call(this)||this;return o.pageFactory=e,o.events=new u.EventManager,o._loadingTimeout=null,o._changeTimeout=null,o.sections=[],o.isLoading=n.observable(!1),t&&(o._loadingState=t),r&&(o._extendedNextAction=r),o._disposables.push(o.events),o}t.WizardPageProcessor=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=r(3),a=r(120),r=(n.prototype.resetPage=function(){this.page()&&this.page().dispose(),this.page(null)},n.prototype.setPage=function(e){this.page()!==e&&this.page(e)},n);function n(e,t){this.pageId=e,this.metadata=t,this.page=o.observable(null)}t.WizardPageSection=r;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 a.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 a.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""},r=s;function s(e,t,r){this.pageFactory=e,this.stateManager=t,this._resetPageCallback=r,this._pagesIds=[],this._pages=[]}t.WizardPageSectionIterator=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,r=r(7),i=(a=r._WrappedWizardPage,i(n,a),n);function n(e,t,r){var o=a.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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(9),d=r(1),l=r(53),u=r(1),p=r(32),f=r(0),m=r(10),i=(a=d.Disposable,i(h,a),h.prototype.setQuery=function(t,e){var r=this;return this._query()!==t&&t.type()===c.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())},h.prototype.getQuery=function(){return this._query()},Object.defineProperty(h.prototype,"runQueryBuilderDisabled",{get:function(){return!1},enumerable:!0,configurable:!0}),h);function h(e,t){var r=a.call(this)||this;return r._tableQueryString=n.observable(""),r._query=n.observable(),r._needToCustomizeParameters=n.pureComputed(function(){return r._query()&&(r._query().type()===c.SqlQueryType.customSqlQuery||0<r._query().parameters().length)}),r.template="dxrd-select-control",r.aceOptions=l.createDefaultSQLAceOptions(),r.additionalOptions=l.createDefaultSQLAdditionalOptions(function(e){r.sqlString(e)}),r.aceAvailable=m.aceAvailable(),r.languageHelper=l.createDefaultSQLLanguageHelper(),r.caption=function(){return u.getLocalization("SQL string:","DataAccessUIStringId.QueryControl_SqlString")},r.sqlString=n.pureComputed({read:function(){return r._query()&&r._query().type()===c.SqlQueryType.customSqlQuery?r._query().sqlString():r._tableQueryString()},write:function(e){var t;r._query().type()!==c.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=n.pureComputed(function(){return!r.sqlString()||!r._needToCustomizeParameters()}),r.isFinishDisabled=n.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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(8),l=r(82),u=r(83),p=r(23),f=r(52),m=r(5),h=r(1),y=(a=c.WizardPageBase,i(g,a),g.prototype.canNext=function(){return!!this._selectedTypeName},g.prototype.canFinish=function(){return!1},g.prototype.commit=function(){return s.Deferred().resolve({selectedType:this._selectedTypeName,selectedObjectType:this._chooseObjectType.selectedType(),ctor:this._chooseObjectType.selectedCtor()}).promise()},g.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,f.ObjectDataMember.empty())}),t._types(e.types||[]),0<e.types.length&&t._chooseObjectType.selectedPath(e.types[0].name)}),s.Deferred().resolve().promise()},Object.defineProperty(g.prototype,"_selectedTypeName",{get:function(){return this._chooseObjectType.selectedType()?this._chooseObjectType.selectedType().name:null},enumerable:!0,configurable:!0}),g);function g(e){void 0===e&&(e=new d.RequestWrapper);var t=a.call(this)||this;return t._requestWrapper=e,t._objectDataSource=new p.ObjectDataSource,t._types=n.observableArray([]),t._disposables.push(t._provider=new l.ObjectSchemaProvider(t._requestWrapper),t._chooseObjectType=new u.ChooseObjectTypes(t._types,t._provider)),t}t.ChooseObjectDataSourceTypesPage=y,t._registerChooseObjectDataSourceTypesPage=function(e,t){e.registerMetadata(m.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:h.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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(8),l=r(84),u=r(23),p=r(5),f=r(1),m=(a=c.WizardPageBase,i(h,a),h.prototype.initialize=function(e){return this._objectDataSource.setState(e),this._type(e.selectedObjectType),this._ctor(e.ctor),s.Deferred().resolve().promise()},h.prototype.canNext=function(){return!!this._needParametersPage},h.prototype.canFinish=function(){return!this._needParametersPage},h.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(h.prototype,"_selectedDataMember",{get:function(){var e=this._chooseObjectDataMember.selectedDataMembers();return e?e[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"_needParametersPage",{get:function(){return!!this._selectedDataMember&&0<this._selectedDataMember.parameters.length||!!this._ctor()&&0<this._ctor().parameters.length},enumerable:!0,configurable:!0}),h);function h(e){void 0===e&&(e=new d.RequestWrapper);var t=a.call(this)||this;return t._requestWrapper=e,t._objectDataSource=new u.ObjectDataSource,t._type=n.observable(),t._ctor=n.observable(),t._disposables.push(t._chooseObjectDataMember=new l.ChooseObjectDataMembers(t._type,t._ctor)),t}t.ChooseObjectDataSourceDataMembersPage=m,t._registerChooseObjectDataSourceDataMembersPage=function(e,t){e.registerMetadata(p.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 m(t.requestWrapper)},description:f.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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(13),l=r(1),i=(a=c.WizardPageBase,i(u,a),u.prototype.canNext=function(){return 0!==this.selectedItems().length||this.selectedOperation().createNew},u.prototype.initialize=function(e){e=this._getSelectedItem(e);return this.selectedItems(e?[e]:[]),s.Deferred().resolve(this).promise()},u.prototype._displayExpr=function(e){return e.description||e.name},u.prototype._getSelectedItem=function(e){return this.items()[0]},Object.defineProperty(u.prototype,"createNewOperationText",{get:function(){return l.getLocalization("No, I'd like to create a new data source","AnalyticsCoreStringId.Wizard_CreateNewDataSource")},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"existingOperationText",{get:function(){return l.getLocalization("Yes, let me choose an existing data source from the list","AnalyticsCoreStringId.Wizard_ChooseDataSourceFromList")},enumerable:!0,configurable:!0}),u);function u(e,t){void 0===t&&(t=!0);var r=a.call(this)||this;return r.items=e,r.selectedItems=n.observableArray([]),r.operations=[{text:r.existingOperationText,createNew:!1},{text:r.createNewOperationText,createNew:!0}],r.selectedOperation=n.observable(r.operations[0]),r._createNew=n.pureComputed(function(){return r.selectedOperation().createNew}),r.canCreateNew=n.observable(t),(t=r._disposables).push.apply(t,d.subscribeProperties([r.selectedOperation,r.selectedItems],function(){return r._onChange()})),r}t.ChooseAvailableItemPage=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(3),s=r(55),c=r(8),d=r(40),l=r(5),u=r(1),p=(a=s.ChooseJsonConnectionPage,i(f,a),f.prototype.commit=function(){var t=n.Deferred(),e=this._createNew()?this._specifySourceData.commit():a.prototype.commit.call(this);return e.done(function(e){t.resolve(e)}),t.promise()},f.prototype.canNext=function(){return this._createNew()?this._specifySourceData.canNext():a.prototype.canNext.call(this)},f.prototype.initialize=function(e){var t=this,r=n.Deferred();return a.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 c.RequestWrapper);var i=a.call(this,e,t)||this;return i._requestWrapper=o,i._disposables.push(i._specifySourceData=new d.ChooseJsonSourcePage(o,r)),i._specifySourceData.onChange(function(){return i._onChange()}),i}t.SpecifyJsonConnectionPage=p,t._registerSpecifyJsonConnectionPage=function(e,t,r,o){e.registerMetadata(l.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";Object.defineProperty(t,"__esModule",{value:!0}),t.parameterTypeToPropertyMap={PathParameter:"pathParameters",QueryParameter:"queryParameters",Header:"headers"}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(6),c=r(0),d=r(1),l=r(85),u=r(10),i=(a=s.Editor,i(p,a),p.prototype.uploadFile=function(e){var t=this;e&&e.event&&(e.event.stopPropagation(),e.event.preventDefault()),c.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 d.getLocalization("Upload JSON File","AnalyticsCoreStringId.UploadJsonFile_Title")},p);function p(e,t,r,o){var i=a.call(this,e,t,r,o)||this;return i.aceEditorHasErrors=n.observable(!1),i.aceAvailable=u.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 l.getLocalizedValidationErrorMessage(d.getLocalization("The value cannot be empty and should have a valid format.","AnalyticsCoreStringId.ValueIsRequiredOrInvalidFormat_Error"),d.getLocalization("JSON String:","DataAccessUIStringId.WizardPageChooseJsonSource_Custom"))}}],i}t.JsonStringEditor=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,r=r(129),i=(a=r.TreeNodeItemsProvider,i(n,a),n.prototype._getDefaultTreeNodeCheckState=function(e){return e.isSelected},n.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}},n);function n(e,t,r,o){return a.call(this,e,t,r,o)||this}t.JsonTreeNodeItemsProvider=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),l=r(3),s=r(1),c=r(41),u=r(1),p=r(0),i=(a=s.Disposable,i(d,a),d.prototype._createTree=function(){var t=this;return this._fullTreeLoaded?l.Deferred().resolve().promise():l.when.apply(l,this._rootItems().map(function(e){return t.getItems(new u.PathRequest(e.path),!0)})).always(function(){return t._fullTreeLoaded=!0})},d.prototype._createTreePart=function(t,r,e){var o=this;if(void 0===r&&(r=l.Deferred()),this._fullTreeLoaded)return r.resolve().promise();if(0===t.length)return r.resolve();if(!e){r=l.Deferred();return 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}var i=[].concat([],e,t[0]),a=new u.PathRequest(i.join("."),i);this._getParentNode(a)?this._createTreePart(t.slice(1),r,i):this.getItems(new u.PathRequest(e.join("."),e)).done(function(e){o._createTreePart(t.slice(1),r,i)}).fail(function(){return r.reject()})},d.prototype._setChecked=function(e){var t=this;e.setChecked(!0),e instanceof c.DataMemberTreeNode&&e.children().forEach(function(e){return t._setChecked(e)})},d.prototype.selectAllItems=function(e){var t=this;void 0===e&&(e=!0);var r=l.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()},d.prototype.selectItemsByPath=function(e){var t=this,r=l.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 c.TreeNodeBase&&e.setChecked(!0)})}).always(function(){return r.resolve()})}),r.promise()},d.prototype.selectItemByPath=function(e){var r=this,o=l.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 c.TreeNodeBase&&e.setChecked(!0)}).always(function(){return o.resolve()})}),o.promise()},d.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 p.isList(e)&&e.path==r})[0]}return e}},d.prototype._getDefaultTreeNodeCheckState=function(e){return!1},d);function d(e,t,s,c){var d=a.call(this)||this;return d._fullTreeLoaded=!1,d._rootItems=n.observableArray([]),d._checkedRootNodesCount=n.computed(function(){if(!d._rootItems||0===d._rootItems().length)return 0;for(var e=0,t=0;t<d._rootItems().length&&e<1;t++)e+=d._rootItems()[t].unChecked()?0:1;return e}),d.hasCheckedItems=n.computed(function(){return!(0===d._checkedRootNodesCount())}),d.getRootItems=function(){return d._rootItems()},d.getItems=function(i,a){void 0===a&&(a=!1);var n=l.Deferred();return i.fullPath||0!==i.pathParts.length?e.getItems(i).done(function(e){var r,o,t=d._getParentNode(i);if(!t)return n.reject();0===t.children().length?(r=[],o=[],e.forEach(function(e){var t=d._getDefaultTreeNodeCheckState(e);p.isList(e)?i.pathParts.length<=5&&(o.push([].concat(i.fullPath.split("."),[e.name])),r.push(s(e,t,[i.fullPath,e.name].join(".")))):r.push(c(e,t,[i.fullPath,e.name].join(".")))}),t.initializeChildren(r),a?l.when.apply(l,o.map(function(e){return d.getItems(new u.PathRequest(e.join("."),e),a)})).always(function(){return n.resolve(r)}):n.resolve(r)):n.resolve(t.children())}):n.resolve(d._rootItems()),n.promise()},d._disposables.push(t.subscribe(function(e){d._fullTreeLoaded=!1,d._rootItems(e.map(function(e){var t=d._getDefaultTreeNodeCheckState(e);return s(e,t,e.name)}))})),d._disposables.push(d.hasCheckedItems),d}t.TreeNodeItemsProvider=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(7),d=r(12),l=r(24),u=r(11),p=r(0),f=r(6),m=r(9),h=r(1),y=r(5),g=(a=c.WizardPageBase,i(_,a),_.prototype._isParametersValid=function(){return this.getParameters().every(function(e){return e.isValid()})},_.prototype.canNext=function(){return!1},_.prototype.canFinish=function(){return this._isParametersValid()},_.prototype.getParameters=function(){return this.parametersEditorOptions.values()()},_.prototype.initialize=function(e){var t=this;return this._sqlDataSourceWrapper=d._restoreSqlDataSourceFromState(e,this._requestWrapper),this.parametersEditorOptions.hideButtons(this._sqlDataSourceWrapper.sqlQuery.type()===m.SqlQueryType.storedProcQuery),setTimeout(function(){t.parametersEditorOptions.values(n.observableArray(t._sqlDataSourceWrapper.sqlQuery.parameters().map(function(e){return t.parametersConverter.createParameterViewModel(e)})))},100),s.Deferred().resolve().promise()},_.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()},_);function _(e,t){void 0===e&&(e={createParameterViewModel:function(e){return e},getParameterFromViewModel:function(e){return e}});var r=a.call(this)||this;return r.parametersConverter=e,r._requestWrapper=t,r._sqlDataSourceWrapper=new l._SqlDataSourceWrapper(void 0,void 0,r._requestWrapper),r.removeButtonTitle=h.getLocalization("Remove","DataAccessUIStringId.Button_Remove"),r.parametersEditorOptions={addHandler:function(){return r.parametersConverter.createParameterViewModel(new u.DataSourceParameter({"@Name":p.getUniqueNameForNamedObjectsArray(r.parametersEditorOptions.values.peek().peek(),"param"),"@Type":"System.Int32"}))},values:n.observable(n.observableArray([])),displayName:"Parameters",level:0,info:n.observable({displayName:"Parameters",localizationId:"DevExpress.DataAccess.Sql.SqlQuery.Parameters",propertyName:"parameters",modelName:"Parameter",array:!0,editor:f.editorTemplates.getEditor("commonCollection"),template:"#dxrd-parameter-collection-item"}),editorTemplate:"#dxrd-wizard-datasource-parameters",hideButtons:n.observable(!1),collapsed:!1},r}t.ConfigureQueryParametersPage=g,t._registerConfigureParametersPage=function(e,t,r){e.registerMetadata(y.SqlDataSourceWizardPageId.ConfigureParametersPage,{create:function(){return new g(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:h.getLocalization("Configure query parameters.","AnalyticsCoreStringId.SqlDSWizard_PageConfigureParameters")})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),c=r(3),d=r(0),l=r(41),o=r(1),u=r(77),r=function(r,i,e,t,a){var n=this;this._callBack=s.observable({deleteAction:function(t){n._customQueries.remove(d.findFirstItemMatchesCondition(n._customQueries(),function(e){return(e.name()||e.generateName())===t}))},showQbCallBack:null,disableCustomSql:!1}),this._checkedRootNodesCount=s.pureComputed(function(){for(var e=0,t=0;t<n._rootItems.length&&e<2;t++)e+=n._rootItems[t].countChecked();return e}),this.hasCheckedItems=s.pureComputed(function(){return!(0===n._checkedRootNodesCount())}),this.nextButtonDisabled=s.pureComputed(function(){return!(1<n._checkedRootNodesCount())&&!n.hasParametersToEdit()}),this.hasParametersToEdit=s.pureComputed(function(){for(var e=0;e<n._rootItems.length;e++)if(n._rootItems[e].hasParamsToEdit&&n._rootItems[e].hasParamsToEdit())return!0;return!1}),this.tables=function(){return n._tables},this.views=function(){return n._views},this.procedures=function(){return n._procedures},this.queries=function(){return n._queries},this.customQueries=function(){return n._customQueries},this._callBack().showQbCallBack=e,this._callBack().disableCustomSql=t,this._tables=new l.TreeNode("tables",o.getLocalization("Tables","DataAccessStringId.ConfigureMultiQueryPage_TableCategory"),"list",!1,a),this._views=new l.TreeNode("views",o.getLocalization("Views","DataAccessStringId.ConfigureMultiQueryPage_ViewCategory"),"list",!1,a),this._procedures=new l.ParameterTreeNode("procedures",o.getLocalization("Stored Procedures","DataAccessStringId.ConfigureMultiQueryPage_SpCategory"),"list",!1,a),this._queries=new l.QueriesTreeNode("queries",o.getLocalization("Queries","DataAccessStringId.ConfigureMultiQueryPage_QueryCategory"),"list",!1,this._callBack,a),this._rootItems=[this._tables,this._views,this._procedures,this._queries],this.getItems=function(e){var t,o=c.Deferred();return e.fullPath?"tables"===e.fullPath?r.getDbSchema().done(function(e){var t;0===n._tables.children().length?(t=[],e.tables.forEach(function(e){e.isView||t.push(new l.TreeNode(e.name,e.name,"table",n._tables.checked.peek(),a))}),n._tables.initializeChildren(t),o.resolve(t)):o.resolve(n._tables.children())}).fail(o.reject):"views"===e.fullPath?r.getDbSchema().done(function(e){var t;0===n._views.children().length?(t=[],e.tables.forEach(function(e){e.isView&&t.push(new l.TreeNode(e.name,e.name,"view",n._views.checked.peek(),a))}),n._views.initializeChildren(t),o.resolve(t)):o.resolve(n._views.children())}).fail(o.reject):"procedures"===e.fullPath?r.getDbStoredProcedures().done(function(e){0===n._procedures.children().length?(e=e.map(function(e){return new l.TreeLeafNode(e.name,u.StoredProceduresQueryControl.generateStoredProcedureDisplayName(e),"procedure",n._procedures.checked.peek(),e.arguments,a)}),n._procedures.initializeChildren(e),o.resolve(e)):o.resolve(n._procedures.children())}).fail(o.reject):"queries"===e.fullPath?(t=i().map(function(t){var e=t.name()||t.generateName(),r=n._queries.children().filter(function(e){return e.query===t})[0];if(r)return r;r=new l.TreeQueryNode(e,e,"query",!!r&&r.checked(),t.parameters,n._callBack,a,t);return r.setObservableName(s.computed({read:function(){return t.name()||t.generateName()},write:function(e){return t.name(e)}})),r}),n._queries.initializeChildren(t),o.resolve(t)):r.getDbTable(e.path).done(function(t){var e,r=t.isView?d.findFirstItemMatchesCondition(n._views.children(),function(e){return e.name===t.name}):d.findFirstItemMatchesCondition(n._tables.children(),function(e){return e.name===t.name});0===r.children().length?(e=t.columns.map(function(e){return new l.TreeLeafNode(e.name,e.name,"column",r.checked.peek(),null,a)}),r.initializeChildren(e),o.resolve(e)):o.resolve(r.children())}).fail(o.reject):o.resolve(n._rootItems),o.promise()},this._customQueries=i};t.DBSchemaItemsProvider=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(10),s=r(41),i=(a=n.TreeListController,i(c,a),c.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},c.prototype.canSelect=function(e){return!0},c);function c(e){var t=a.call(this)||this;return t._customizeDBSchemaTreeListActions=e,t}t.DBSchemaTreeListController=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(1),c=r(6),d=r(9),l=r(10),u=r(10),p=r(1),s=(a=s.Disposable,i(f,a),Object.defineProperty(f.prototype,"name",{get:function(){return this._name()},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"displayName",{get:function(){return this._displayName||this.name},enumerable:!0,configurable:!0}),f);function f(e){var t=a.call(this)||this;return t.editor=c.editorTemplates.getEditor("commonCollection"),t.isList=!1,t.contenttemplate="dx-treelist-accordion-contenttemplate-custom-with-actions",t.actionsTemplate="dx-treelist-item-actions",t.dataSourceParameter=n.observable(e),t._name=e.name,t._displayName=e.displayName,t}t.ParametersTreeListItemBase=s;var m,h=(i(y,m=s),y.prototype.query=function(){return this.parent.query()},y);function y(e,t){e=m.call(this,e)||this;return e.parent=t,e}t.ParametersTreeListItem=h;g.prototype.removeChild=function(e){this.parameters.remove(e)},s=g;function g(e){this.isList=!0,this.specifics="List",this.visible=n.observable(!0),this.name=this.displayName=e,this.parameters=n.observableArray([])}t.ParametersTreeListRootItemBase=s;var _,s=(i(v,_=s),v.prototype.query=function(){return this._query},v);function v(e){var t=_.call(this,e.name())||this;return t._query=e,t}t.ParametersTreeListRootItem=s;var b,i=(b=l.TreeListController,i(S,b),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()===d.SqlQueryType.storedProcQuery?e.data.isList?[]:[u.treeListEditAction]:(e.data.isList?(t=e.data,i.push({clickAction:function(){return t.parameters.push(new h(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},S);function S(e,t){var r=b.call(this)||this;return r._createNewParameter=t,r._rootItems=e,r}t.ParametersTreeListController=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),n=r(3),s=r(1),o=r(0),c=r(0),d=r(0),l=r(135),u=r(0),p=r(136),r=(i.prototype._createMainPopupButtons=function(){var e=this;this.buttonItems=[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.getLocalization("Save",o.StringId.DataAccessBtnOK),onClick:function(){e.save()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.getLocalization("Cancel",o.StringId.DataAccessBtnCancel),onClick:function(){e.popupVisible(!1)}}}]},i.prototype.title=function(){return s.getLocalization("Master-Detail Relation Editor",o.StringId.MasterDetailRelationsEditor)},i);function i(t,r,e){var o=this;this.isValid=a.observable(!0),this.popupVisible=a.observable(!1),this.loadPanelVisible=a.observable(!1),this.buttonItems=[],this.masterQueries=a.observableArray(),this.popupService=new c.PopupService,this.save=function(){t().some(function(e){return!e.detailQuery()||!e.masterQuery()||e.keyColumns().some(function(e){return!e.detailColumn()||!e.masterColumn()})})?d.ShowMessage(s.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)})},this.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 l.MasterDetailEditorPopupManager(t,o.popupService,"create",e),templateName:"dx-filtereditor-create"}},this.setColumn=function(e){var t=u.getFirstItemByPropertyValue(r.tables(),"tableName",e.queryName);return{data:new l.MasterDetailEditorPopupManager(e,o.popupService,"setColumn",t?t.columns():[]),templateName:"dx-masterdetail-editor-setColumn"}},this._createMainPopupButtons();var i={};r.tables().forEach(function(e){i[e.tableName()]=new p.MasterQuerySurface(e.tableName(),t)}),t().forEach(function(e){i[e.masterQuery()]=i[e.masterQuery()]||new p.MasterQuerySurface(e.masterQuery(),t),i[e.masterQuery()].add(e)}),this.masterQueries(n.map(i,function(e){return e}))}t.MasterDetailEditor=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=(i.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)}})},i);function i(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}t.MasterDetailEditorPopupManager=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=r(51),n=r(137),s=r(0),c=r(0),r=function(e,r){var o=this;this.relations=i.observableArray(),this.queryName=e,this.add=function(e){o.relations.push(new n.MasterDetailRelationSurface(e,o))},this.create=function(e){e=new a.MasterDetailRelation({"@Master":o.queryName,"@Detail":e.name});s.getFirstItemByPropertyValue(o.relations(),"relationName",e.name())&&e.name(c.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})}};t.MasterQuerySurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=r(138),r=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 a.KeyColumnSurface(e.masterColumn,r.masterQuery(),!0),detail:new a.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)}};t.MasterDetailRelationSurface=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=r(1),r=function(e,t,r){void 0===r&&(r=!1);var o=this;this._isMaster=r,this.getTitle=function(){return o._isMaster?a.getLocalization("Master Query","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_MasterQuery"):a.getLocalization("Detail Query","AnalyticsCoreStringId.Wizard_MasterDetailRelationship_DetailQuery")},this.isSelected=i.observable(!1),this.selectColumnText=function(){return a.getLocalization("<Select a Column>","DataAccessUIStringId.JoinEditorEmptyColumnText")},this.column=e,this.queryName=t,this.setColumn=function(e){o.column(e.name())}};t.KeyColumnSurface=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a=r(2),n=r(37),s=r(39),c=r(5),d=r(36),l=r(42),u=r(0),p=r(1),f=r(40),m=r(55),h=r(56),y=r(80),g=r(24),_=r(54),v=r(130),r=(Object.defineProperty(b.prototype,"jsonDataSourceAvailable",{get:function(){return this.wizardSettings.enableJsonDataSource&&(this.allowCreateNewJsonConnection||0<(a.unwrap(this.connectionStrings.json)||[]).length)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"sqlDataSourceAvailable",{get:function(){return this.wizardSettings.enableSqlDataSource&&0<(a.unwrap(this.connectionStrings.sql)||[]).length},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"objectDataSourceAvailable",{get:function(){return this.wizardSettings.enableObjectDataSource},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"canCreateDataSource",{get:function(){return this.jsonDataSourceAvailable||this.sqlDataSourceAvailable||this.objectDataSourceAvailable},enumerable:!0,configurable:!0}),b);function b(){this.connectionStrings={json:a.observableArray([]),sql:a.observableArray([])},this.callbacks={},this.rtl=!1,this.disableCustomSql=!1,this.wizardSettings=(new P).createDefault(),this.allowCreateNewJsonConnection=!1}t._DataSourceWizardOptionsBase=r;var S,r=(i(x,S=r),x);function x(){return null!==S&&S.apply(this,arguments)||this}t._DataSourceWizardOptions=r;var P=(C.prototype.createDefault=function(e){var t={enableJsonDataSource:!0,enableSqlDataSource:!0,enableObjectDataSource:!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)),t},C);function C(){}t.DataSourceWizardSettings=P;var T,O=(T=n.PageIterator,i(I,T),I.prototype.getNextPageId=function(e){return!e&&this._dataSourceWizardOptions.jsonDataSourceAvailable&&this._dataSourceWizardOptions.sqlDataSourceAvailable?c.DataSourceWizardPageId.ChooseDataSourceTypePage:e?e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Sql?c.SqlDataSourceWizardPageId.ChooseConnectionPage:e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Json&&0<this._dataSourceWizardOptions.connectionStrings.json().length?c.JsonDataSourceWizardPageId.ChooseConnectionPage:this._dataSourceWizardOptions.allowCreateNewJsonConnection&&e===c.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.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)},I);function I(e,t,r){t=T.call(this,e,t)||this;return t._dataSourceWizardOptions=r,t}t.DataSourceWizardPageIterator=O;var N,D=(N=l.PopupWizard,i(E,N),E.prototype.initialize=function(e,t){var r=this;void 0===t&&(t=function(e,t){return new O(e,t,r._wizardOptions)}),this._wizardOptions.sqlDataSourceAvailable||!u.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=d.DataSourceType.Sql:(this._wizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource)&&(e.dataSourceType=d.DataSourceType.Json),N.prototype.initialize.call(this,e,t)},E.prototype.canRunWizard=function(){return this._wizardOptions.jsonDataSourceAvailable||this._wizardOptions.sqlDataSourceAvailable},E);function E(e,t){e=N.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 w(e,t){return void 0===e&&(e=new s.PageFactory),d._registerChooseDataSourceTypePage(e,t),f._registerChooseJsonSourcePage(e,t.requestWrapper,t.callbacks.getItemsProviderCallback),m._registerChooseJsonConnectionPage(e,t),h._registerChooseJsonSchemaPage(e,t.requestWrapper,t.callbacks),y._registerConfigureObjectDataSourceParametersPage(e,t.callbacks.getItemsProviderCallback),g._registerConfigureQueryPage(e,t),_._registerChooseSqlConnectionPage(e,t.connectionStrings.sql),v._registerConfigureParametersPage(e,t.requestWrapper),e}t.DataSourceWizard=D,t._registerDataSourceWizardPages=w,t._createDataSourceWizard=function(e,t){return void 0===e&&(e=new s.PageFactory),e=w(e,t),new D(e,t)}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,r=r(39),i=(a=r.PageFactory,i(n,a),n.prototype.registerMetadata=function(e,t){a.prototype.registerMetadata.call(this,e,t)},n.prototype.getMetadata=function(e){return a.prototype.getMetadata.call(this,e)},n);function n(){var e=null!==a&&a.apply(this,arguments)||this;return e.metadata={},e}t.FullscreenWizardPageFactory=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(38),s=r(125),c=r(5),d=r(40),l=r(1),u=r(56),p=(a=n.FullscreenWizardPage,i(f,a),f.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(c.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.Right:n.WizardSectionPosition.Left)),this._dataSourceWizardOptions.allowCreateNewJsonConnection&&0===this._dataSourceWizardOptions.connectionStrings.json().length&&(d._registerChooseJsonSourcePage(this._factory,this._dataSourceWizardOptions.requestWrapper,this._dataSourceWizardOptions.callbacks.getItemsProviderCallback),this._setSectionPosition(c.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.Right:n.WizardSectionPosition.Left),this._factory.getMetadata(c.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage).disabledText=l.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(c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.Left:n.WizardSectionPosition.Right),this._factory.getMetadata(c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage).disabledText=l.getLocalization("To select data fields, choose or create a data connection.","AnalyticsCoreStringId.JsonDSWizard_ChooseJsonSchemaPage_Placeholder")},f.prototype.getNextSectionId=function(e){return!e&&0<this._dataSourceWizardOptions.connectionStrings.json().length?c.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage:e?this._dataSourceWizardOptions.allowCreateNewJsonConnection?e===c.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage||e===c.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage?c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage:void 0:e===c.FullscreenDataSourceWizardSectionId.SpecifyJsonConnectionPage?c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage:void 0:c.FullscreenDataSourceWizardSectionId.ChooseJsonSourcePage},f.prototype.canNext=function(){var e=this._sectionsProcessor.getPageById(c.FullscreenDataSourceWizardSectionId.ChooseJsonSchemaPage);return e&&e.page()&&e.metadata.canNext(e.page().page)},f);function f(e){var t=a.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifyJsonDataSourceSettingsPage=p,t._registerSpecifyJsonDataSourceSettingsPage=function(e,t){e.registerMetadata(c.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 p(t)},navigationPanelText:l.getLocalization("Specify Data Source Settings","AnalyticsCoreStringId.Wizard_SpecifyDataSourceSettingsPage"),template:"dx-wizard-fullscreen-page"})}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(38),s=r(5),c=r(12),d=r(54),l=r(86),u=r(88),p=r(15),f=r(87),m=r(1),h=r(0),y=(a=n.FullscreenWizardPage,i(g,a),g.prototype.getNextSectionId=function(e){if(!e)return s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage;if(e===s.FullscreenDataSourceWizardSectionId.ChooseSqlConnectionPage&&this._stateManager.getCurrentState().sqlDataSourceWizard.name)return s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage;if(e===s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage){var t=[],e=this._stateManager.getCurrentState().sqlDataSourceWizard;return 0<(e.customQueries||[]).length&&t.push(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage),1<c._restoreSqlDataSourceFromState(e).sqlDataSource.queries().length&&t.push(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage),t}},g.prototype.registerSections=function(){d._registerChooseSqlConnectionPage(this._factory,this._dataSourceWizardOptions.connectionStrings.sql),l._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?n.WizardSectionPosition.TopRight:n.WizardSectionPosition.TopLeft),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureQueryPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.TopLeft:n.WizardSectionPosition.TopRight),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureQueryParametersPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.BottomLeft:n.WizardSectionPosition.BottomRight),this._setSectionPosition(s.FullscreenDataSourceWizardSectionId.ConfigureMasterDetailRelationshipsPage,this._dataSourceWizardOptions.rtl?n.WizardSectionPosition.BottomRight:n.WizardSectionPosition.BottomLeft)},g);function g(e){var t=a.call(this)||this;return t._dataSourceWizardOptions=e,t}t.SpecifySqlDataSourceSettingsPage=y,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=h.extend(!0,{},t)},create:function(){return new y(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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(42),c=r(144),i=(a=s.PopupWizard,i(d,a),d.prototype._onClose=function(e){this._onCloseCallback=e},d.prototype.onFinish=function(){a.prototype.onFinish.call(this),this.navigationPanel().dispose()},d.prototype._initPage=function(e){var t=this;return e.onChange&&e.onChange(function(){return t.navigationPanel()._resetNextPages(e.pageId)}),a.prototype._initPage.call(this,e)},d.prototype._onResetPage=function(e){this.navigationPanel()._reset(e.pageId)},d.prototype.start=function(e){e&&(this._finishCallback=e),this.navigationPanel()&&this.navigationPanel().resetAll(),this.navigationPanel()&&this.navigationPanel().dispose(),this.navigationPanel(new c.WizardNavigationPanel(this)),a.prototype.start.call(this)},d.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},d.prototype._description=function(){return""},d);function d(e,t){var r=a.call(this,e,t)||this;return r._extendCssClass="dx-wizard-fullscreen",r.navigationPanel=n.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=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),r=r(1),i=(n=r.Disposable,i(a,n),a.prototype.resetAll=function(){this._steps.forEach(function(e){e.disabled(!0)})},a.prototype._currentStep=function(t){return this._steps.filter(function(e){return e.currentPageId===t})[0]},a.prototype._reset=function(e){e=this._currentStep(e);e&&e.disabled(!0)},a.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)},a.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)})},a);function a(i){var a=n.call(this)||this;return a._steps=[],a._disposables.push(i._currentPage.subscribe(function(t){var e=a._steps.filter(function(e){return e.pageIds.some(function(e){return e===t.pageId})})[0];e&&(e.currentPageId=t.pageId,e.disabled(!1),a._setStepVisible(e.stepIndex))})),Object.keys(i.pageFactory.metadata).forEach(function(e){var t,r=i.pageFactory.metadata[e],o=a._steps.filter(function(e){return e.text===r.navigationPanelText})[0];o?o.pageIds.push(e):(t={text:r.navigationPanelText,pageIds:[e],currentPageId:null,stepIndex:a._steps.length,disabled:s.observable(!0),visible:s.observable(!0)},a._disposables.push(t.isActive=s.computed(function(){return i._currentPage()&&t.currentPageId===i._currentPage().pageId})),t.clickAction=function(){t.isActive()||i.goToPage(t.currentPageId)},a._steps.push(t))}),a._disposables.push(a.isVisible=s.computed(function(){return 1<a._steps.filter(function(e){return e.visible()}).length})),a}t.WizardNavigationPanel=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),r=r(6),i=(a=r.Editor,i(s,a),s.prototype.generateValue=function(t){var r=this;return this.undoValue||this._disposables.push(this.undoValue=n.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 a.call(this,e,t,r,o)||this}t.UndoEditor=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(10),s=r(0),c=r(43),d=r(45),l=r(45),u=r(147),i=(a=n.FilterEditorSerializer,i(p,a),p.prototype._columnDisplayName=function(e){return e.table()+"."+e.actualName()},p.prototype._findAggregatedColumn=function(t){return s.find(this._columns(),function(e){return c.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=l.CriteriaOperator.parse(e);return e&&u.criteriaForEach(e,function(e){e instanceof d.OperandProperty&&(e.propertyName=t._aggregatePropertyName(e))}),a.prototype.deserializeOperand.call(this,e)},p);function p(e){var r=a.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=i},function(e,t){e.exports=DevExpress.Analytics.Criteria.Utils},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(172),c=r(1),d=r(57),i=(a=s.OperandParameterSurface,i(l,a),Object.defineProperty(l.prototype,"_parameterType",{get:function(){return this.fieldsOptions()&&this.fieldsOptions().selected()&&this.fieldsOptions().selected().dataType||"System.String"},enumerable:!0,configurable:!0}),l.prototype._createParameter=function(t,e){""!==t&&t!==l.defaultDisplay()&&0===this.helper.parameters().filter(function(e){return e.name()===t}).length&&(e=new d.ParameterViewModel({"@Name":t,"@Type":e}),this.helper.newParameters.push(e))},l.prototype.isDefaultTextDisplayed=function(){return this.parameterName()===l.defaultDisplay()},l.defaultDisplay=function(){return c.getLocalization("Create new parameter","AnalyticsCoreStringId.FilterEditor_Operand_CreateNewParameter")},l);function l(e,t,r,o){var i=a.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=n.observable(""),i.isEditable=n.observable(!1),i.defaultDisplay=l.defaultDisplay,i._parameterName(e.parameterName),i.canCreateParameters=i.helper.canCreateParameters,i.fieldsOptions=t.leftPart.fieldsOptions,i.parameterName=n.pureComputed({read:function(){return i._parameterName()||i.canCreateParameters&&l.defaultDisplay()||""},write:function(e){e!==l.defaultDisplay()&&e&&(i.model.parameterName=n.unwrap(e),i._parameterName(i.model.parameterName))}}),!i.canCreateParameters||i.isDefaultTextDisplayed()||n.unwrap(i.fieldListProvider).hasParameter(e.parameterName)||i.createParameter(),i}t.OperandParameterQBSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),r=r(172),i=(a=r.OperandPropertySurface,i(s,a),s.prototype._updateSpecifics=function(){s.updateSpecifics(this)},s.updateSpecifics=function(e){var t=n.unwrap(e.fieldListProvider);t&&t.getColumnInfo&&((t=t.getColumnInfo(e.propertyName()))&&(e.specifics(t.specifics.toLowerCase()),e.dataType(t.dataType),(e=n.unwrap(e.fieldsOptions))&&e.selected(t)))},s);function s(e,t,r,o){return a.call(this,e,t,r,o)||this}t.OperandPropertyQBSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,s=r(2),c=r(3),n=r(6),d=r(10),l=r(148),u=r(149),p=r(46),f=r(147),m=r(45),i=(a=n.FilterEditorHelper,i(h,a),h);function h(e){var n=a.call(this)||this;return n.handlers.changeParameter=function(e,t){return{data:new d.FilterEditorAddOn(e,t,"changeParameter","items","dxqb-filtereditor-parameterspopup"),templateName:"dxqb-filtereditor-changeparameter"}},n.mapper.Parameter=l.OperandParameterQBSurface,n.mapper.Property=u.OperandPropertyQBSurface,e===p.ParametersMode.ReadWrite&&(n.canCreateParameters=!0,n.newParameters=s.observableArray([]),n.onEditorFocusOut=function(e){if(e){var r=n.newParameters(),o=[];if(f.criteriaForEach(e,function(t){var e;t instanceof m.OperandParameter&&((e=r.filter(function(e){return e.name()===t.parameterName})[0])&&o.push(e))}),0!==o.length){for(var t=r.filter(function(e){return-1===o.indexOf(e)}),i=0;i<t.length;i++){var a=r.indexOf(t[i]);-1!==a&&r.splice(a,1)}n.newParameters.valueHasMutated()}else n.newParameters.splice(0)}},n.onClosing=function(){n.newParameters([])}),n.canSelectLists=!1,n.getDisplayPropertyName=function(){return c.Deferred().resolve("").promise()},n}t.QBFilterEditorHelper=i,t.QBFilterEditorHelperDefault=i,t._setQBFilterEditorHelperDefault=function(e){t.QBFilterEditorHelperDefault=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,s=r(2),n=r(6),c=r(150),d=r(46),l=r(45),i=(a=n.FilterStringOptions,i(u,a),u.prototype.initializeFilterStringHelper=function(r,o,e){var i,a=this,n=new c.QBFilterEditorHelperDefault(o);n.canChoiceParameters=o!==d.ParametersMode.Disabled,e&&(n.serializer=e),o===d.ParametersMode.ReadWrite?(n.parameters=s.computed(function(){return[].concat(r(),n.newParameters())}),n.onSave=function(e){var t=n.newParameters();r.push.apply(r,t),n.newParameters([])}):(o===d.ParametersMode.Read&&(n.parameters=r),i=n.criteriaTreeValidator._checkRightPart,n.criteriaTreeValidator._checkRightPart=function(e){if(!(e instanceof l.OperandParameter))return i.apply(a,[e]);if(o===d.ParametersMode.Disabled)return!1;if(o===d.ParametersMode.Read){var t=e.parameterName;return 0!==r.peek().filter(function(e){return e.name()===t}).length}}),this.helper=n},u);function u(e,t,r,o){return a.call(this,e,t,r,o)||this}t.QBFilterStringOptions=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(60),o=r(0),a=r(0),r=(n.find=function(e,t,r){return o.findFirstItemMatchesCondition(e(),function(e){return e.column()===r&&e.table()===t})},n.findByName=function(e,t){return o.findFirstItemMatchesCondition(e(),function(e){return e.actualName()===t})},n.removeDependend=function(e,t){e.remove(function(e){return e.isDepended(t)})},n.setUniqueAlias=function(e,t){return n.findByName(e,t)?a.getUniqueName(e().map(function(e){return e.actualName()}),t+"_"):t},n.addNew=function(e,t,r,o){o=new i.ColumnExpression({"@Table":r,"@Name":o,"@ItemType":"Column"},e);return e.columns===t&&!o.alias()&&n.findByName(t,o.actualName())&&o.alias(this.setUniqueAlias(t,o.table()+"_"+o.column())),t.push(o),o},n.remove=function(e,t,r){e.remove(function(e){return e.column()===r&&e.table()===t})},n);function n(){}t.ColumnExpressionCollectionHelper=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),a=r(28),c=r(60),d=r(0),l=r(61),u=r(1),p=r(154),i=(n=a.QueryElementBaseViewModel,i(f,n),f.prototype.getInfo=function(){return p.allColumnsSerializationInfo},f);function f(t,r){var e=n.call(this,{"@ControlType":"Column"},t,r)||this,o=t.parentModel(),i=s.pureComputed(function(){return d.findFirstItemMatchesCondition(o.columns(),function(e){return t.actualName()===e.table()&&l.ColumnType.AllColumns===e.itemType()})});e.selected=s.pureComputed({read:function(){return!!i()},write:function(e){!!i()!==e&&(e?o.columns.push(new c.ColumnExpression({"@ItemType":l.ColumnType.AllColumns,"@Table":t.actualName()},o,r)):o.columns.remove(function(e){return t.actualName()===e.table()&&l.ColumnType.AllColumns===e.itemType()}))}});var a=u.getLocalization("(All Columns)","DataAccessStringId.QueryBuilder_AllColumns");return e.name=s.pureComputed(function(){return"*"===a.charAt(0)?a:"* "+a}),e}t.AllColumnsViewModel=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r=r(44);t.allColumnsSerializationInfo=[r.name,r.selected]},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(0),c=r(62),d=r(22),l=r(0),u=r(31),p=r(48),f=r(21),i=(a=s.DragDropHandler,i(m,a),m.prototype._needToCreateRelation=function(){return!!(this.selection.dropTarget&&this.selection.dropTarget instanceof c.ColumnSurface)&&this.selection.dropTarget.getControlModel().parentModel()!==this.getDragColumn().parentModel()},m.prototype.startDrag=function(e){if(e instanceof d.ConnectionPointSurface){var t=e.getControlModel().parentModel();if(this._dragConditionSurface=l.findSurface(t),!this._dragConditionSurface)return;this._dragConditionSurface.isVisible(!1),this._dragColumn(t.startPoint()===e.getControlModel()?t.nestedColumn():t.parentColumn())}else{if(!(e instanceof c.ColumnSurface))throw new Error("ColumnDragHandler can be applied to the Column only.");this._dragColumn(e.getControlModel())}e=new u.RoutedConnectorViewModel({},this.querySurface().getControlModel());this.dragDropConnector(new p.RoutedConnectorSurface(e,this.surface()))},m.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)):(t=this.querySurface().rtl()?this.querySurface().pageWidth()-o.leftConnectionPoint.location.x():o.leftConnectionPoint.location.x(),r=this.querySurface().rtl()?this.querySurface().pageWidth()-o.rightConnectionPoint.location.x():o.rightConnectionPoint.location.x(),o=Math.abs(t-e.left)>Math.abs(r-e.left)?o.rightConnectionPoint:o.leftConnectionPoint,i.startPoint().connectingPoint(o),this.dragDropConnector().endPoint().rect({top:e.top,left:e.left}))},m.prototype.drag=function(e,t){t.position.left+=t.scroll.left,t.position.top+=t.scroll.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))},m.prototype.doStopDrag=function(){this.dragHelperContent.reset(),this.dragDropConnector(null);try{var e=null;this._dragConditionSurface&&!this._dragConditionSurface.isVisible()&&(e=this._dragConditionSurface.getControlModel(),this._dragConditionSurface.isVisible(!0));var t,r=this.querySurface().getControlModel();this._needToCreateRelation()&&(t=this.selection.dropTarget.getControlModel(),this.undoEngine().start(),e&&e.parentModel().removeChild(e),t=r.cerateJoinCondition(this._dragColumn(),t),this.undoEngine().end(),null!==t&&this.selection.initialize(l.findSurface(t)))}finally{this._dragColumn(null)}},m.prototype.getDragColumn=function(){return this._dragColumn()},m);function m(e,t,r,o,i){i=a.call(this,e,t,r,o,i)||this;return i.querySurface=e,i.undoEngine=r,i._dragColumn=n.observable(null),i._dragConditionSurface=null,i.dragDropConnector=n.observable(null),i.cursor="arrow",i.containment=".dxrd-ghost-container",i.helper=void 0,i}t.ColumnDragHandler=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(10),s=r(98),i=(a=n.TreeListController,i(c,a),c);function c(t,r){var e=a.call(this)||this,o=s.DbObjectDragDropHandler.getDropCallback(t,!0);return e.dblClickHandler=function(e){t().start(),o(e.data,r()),t().end()},e}t.QueryBuilderTreeListController=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var n,s=r(2),c=r(6),a=r(1),d=r(1),l=r(57),u=r(58),p=r(0),f={propertyName:"parameters",displayName:"parameters",editor:{custom:"dxqb-parameterspanel"}},m={propertyName:"selectedItem",displayName:"selectedItem",editor:{custom:"dxqb-propertygrid"}},h={propertyName:"fields",displayName:"fields",editor:{custom:"dxqb-fieldspanel"}},y={propertyName:"query",displayName:"query",editor:{custom:"dxqb-propertygrid"}},i=(n=a.TabInfo,i(g,n),g._getSelectedItemPropertyName=function(e){var t="Selection Properties",r="AnalyticsCoreStringId.QueryBuilder_SelectionProperties";switch(e&&e.controlType){case"Query":t="Query Properties",r="AnalyticsCoreStringId.QueryBuilder_QueryProperties";break;case"Table":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 d.getLocalization(t,r)},g._createWrappedObject=function(t,r,e,o){var i=new c.ObjectProperties(t,null,1),a=s.computed(function(){return t()&&t().parameters}),n=[y,m,h],i={selectedItem:r,query:{editableObject:t,properties:i},fields:r,isPropertyVisible:function(e){return"selectedItem"!==e||r.editableObject()!==t()}};return o&&(i.parameters={values:a,addHandler:function(){return new l.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"}},n.push(f)),i.getInfo=function(){return n},i},g._createGroups=function(e,t){var r=this,o={Query:{info:[y],displayName:function(){return d.getLocalization("Query Properties","AnalyticsCoreStringId.QueryBuilder_QueryProperties")}},SelectedItem:{info:[m],displayName:function(){return r._getSelectedItemPropertyName(e())}},Fields:{info:[h],displayName:function(){return d.getLocalization("Available tables and views","AnalyticsCoreStringId.QueryBuilder_AvailableTables")}}};return t&&(o.Parameters={info:[f],displayName:function(){return d.getLocalization("Parameters","AnalyticsCoreStringId.QueryBuilder_Parameters")}}),o},g._createQBPropertyGrid=function(e,t,r,o){r=this._createWrappedObject(e,t,r,o);return new p.ControlProperties(s.observable(r),{groups:this._createGroups(t.editableObject,o),editors:r.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 a=n.call(this,{text:"Properties",template:"dxqb-properties-wrapper",model:g._createQBPropertyGrid(e,t,r,i)})||this;return a.active(!0),a._getGroupByName("Fields").collapsed(!1),a._disposables.push(o.subscribe(function(e){e instanceof u.QueryViewModel||a._getGroupByName("SelectedItem").collapsed(!1)})),a}t.AccordionTabInfo=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(47),i=r(27),a=r(44),n=r(4),s=r(4),c=r(95),d=r(159),l=r(93),u=r(160),p=r(161),f=r(94),m=r(92),h=r(162),y=r(59),g=r(26),_=r(62),v=r(91),b=r(96),S=r(97),x=r(58);t.registerControls=function(){o.registerControls(),i.controlsFactory.registerControl("Unknown",{info:a.unknownSerializationsInfo,type:n.ElementViewModel,nonToolboxItem:!0,surfaceType:s.SurfaceElementBase,isDeleteDeny:!0}),i.controlsFactory.registerControl("Relation",{info:c.relationSerializationInfo,defaultVal:{},surfaceType:d.RelationSurface,popularProperties:[],type:l.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:h.TableSurface,popularProperties:["name","alias","columns"],type:y.TableViewModel,elementActionsTypes:[],nonToolboxItem:!0}),i.controlsFactory.registerControl("Column",{info:g.columnSerializationInfo,defaultVal:{},surfaceType:_.ColumnSurface,popularProperties:["name","alias","selected"],type:v.ColumnViewModel,elementActionsTypes:[],nonToolboxItem:!0,isDeleteDeny:!0}),i.controlsFactory.registerControl("Query",{info:b.querySerializationsInfo,surfaceType:S.QuerySurface,popularProperties:["name","filterString","groupFilterString"],type:x.QueryViewModel,elementActionsTypes:[],isContainer:!0,nonToolboxItem:!0,isDeleteDeny:!0})}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(4),c=r(0),i=(a=s.SurfaceElementBase,i(d,a),d.prototype._getChildrenHolderName=function(){return"conditions"},d);function d(e,t){t=a.call(this,e,t,null)||this;return t.conditions=n.observableArray(),t.template="dxqb-relation",c.createObservableArrayMapCollection(e.conditions,t.conditions,t._createSurface),t}t.RelationSurface=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r=r(25);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"}],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=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),r=r(48),i=(a=r.RoutedConnectorSurface,i(s,a),s.prototype.container=function(){return this.getRoot()},s);function s(e,t){t=a.call(this,e,t)||this;return t.showArrow=n.pureComputed(function(){return"LeftOuter"===e.joinType()}),t}t.JoinConditionSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(3),s=r(2),c=r(163),d=r(59),l=r(62),u=r(164),p=r(0),i=(a=c.QueryElementBaseSurface,i(f,a),f.prototype.resizable=function(e,t){return p.extend({},e,{handles:"e, w",$selectedNodes:n(t),minWidth:d.TableViewModel.TABLE_MIN_WIDTH})},f);function f(e,t){var r=a.call(this,e,t,null)||this;return r.contenttemplate="dxqb-table",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 l.ColumnSurface(e,t)})}),r.asterisk=new u.AllColumnsSurface(e.asterisk,t),r}t.TableSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(4),c=r(0),i=(a=s.SurfaceElementBase,i(d,a),d._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}},d);function d(e,t,r){r=a.call(this,e,t,c.extend({},d._unitProperties,r))||this;return r.template="dx-diagram-element",r.selectiontemplate="dx-diagram-element-selection",r.contenttemplate="dx-diagram-element-content",r.margin=n.observable(0),r}t.QueryElementBaseSurface=i},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(4),c=r(0),i=(a=s.SurfaceElementBase,i(d,a),d);function d(e,t){var r=a.call(this,e,t,null)||this;return r.template="dxqb-table-asterisk-field",r.toggleSelected=function(){r.getControlModel().selected(!r.getControlModel().selected())},r.selectedWrapper=n.pureComputed(function(){return r.getControlModel().selected()}),r.isOverAsterisk=n.pureComputed(function(){return r.underCursor().isOver&&!c.DragDropHandler.started()}),r.cssClasses=function(){return{"dxd-state-active":r.selected,"dxd-state-hovered":r.isOverAsterisk()}},r}t.AllColumnsSurface=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),a=r(15),r=(Object.defineProperty(n.prototype,"queryBuilderModel",{get:function(){return this._queryBuilderModel()},set:function(e){this._queryBuilderModel(e)},enumerable:!0,configurable:!0}),n.prototype.UpdateLocalization=function(e){o.updateLocalization(e)},n.prototype.GetQueryBuilderModel=function(){return this.queryBuilderModel},n.prototype.GetJsonQueryModel=function(){return{Query:this.queryBuilderModel.model().serialize()}},n.prototype.GetSaveQueryModel=function(){return{queryLayout:JSON.stringify(this.GetJsonQueryModel()),connection:this.SerializeDataConnection()}},n.prototype.SerializeDataConnection=function(){var e=this.queryBuilderModel.model().dbSchemaProvider.connection;return a.serializeDataConnection(e)},n.prototype.AdjustControlCore=function(){this.queryBuilderModel&&this.queryBuilderModel.updateSurfaceSize()},n.prototype.Save=function(){this.queryBuilderModel&&this.queryBuilderModel.model().onSave()},n.prototype.ShowPreview=function(){this.queryBuilderModel&&this.queryBuilderModel.showPreview()},n.prototype.IsQueryValid=function(){return this.queryBuilderModel&&this.queryBuilderModel.model().isValid()},n.prototype.OnCallback=function(e){e.queryValidationError&&i.NotifyAboutWarning(e.queryValidationError,!0)},n);function n(e){this._queryBuilderModel=e}t.JSQueryBuilder=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(205),i=r(206),r=(a.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})}}},a);function a(){}t.EventGenerator=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s=t(2),c=t(3),r=t(20),d=t(66),l=t(1),u=t(47),p=t(67),f=t(0),m=t(101),h=t(99),y=t(0);n.groups={Appearance:{info:[]},Behavior:{info:[]},Design:{info:[r.name]},Layout:{info:[r.location,r.size,d.pageWidth,d.pageHeight]}},n.createDiagramDesigner=function(e,t,r,o){r&&l.addCultureInfo({messages:r}),u.registerControls();var i=s.pureComputed(function(){return new d.DiagramViewModel(t())}),r=s.pureComputed(function(){return new p.DiagramSurface(i())});(o=f.createDesigner(i,r,u.diagramControlsFactory,n.groups,void 0,void 0,o)).connectionPointDragHandler=new m.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(),s.applyBindings(o,e);var a=y.updateSurfaceContentSize(o.surfaceSize,e);return c(window).bind("resize",function(){a()}),o.tabPanel.width.subscribe(function(){a()}),a(),o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r=r(184);r.default&&(r.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){var o=e("../lib/oop"),l=e("./doc_comment_highlight_rules").DocCommentHighlightRules,i=e("./text_highlight_rules").TextHighlightRules,e=function(){var o="ALL|AND|ANY|BETWEEN|EXISTS|IN|LIKE|NOT|OR|SOME";o+="|NULL|IS|APPLY|INNER|OUTER|LEFT|RIGHT|JOIN|CROSS";var i="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",a="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";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",t+="|LOOP|HASH|MERGE|REMOTE",t+="|TRY|CATCH|THROW",t=(t=(t=(t+="|TYPE").split("|")).filter(function(e,t,r){return-1===o.split("|").indexOf(e)&&-1===i.split("|").indexOf(e)&&-1===a.split("|").indexOf(e)})).sort().join("|");for(var r=this.createKeywordMapper({"constant.language":o,"storage.type":a,"support.function":i,"support.storedprocedure":e,keyword:t},"identifier",!0),n="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("|"),c=0;c<s.length;c++)n.push("SET TRANSACTION ISOLATION LEVEL "+s[c]);this.$rules={start:[{token:"string.start",regex:"'",next:[{token:"constant.language.escape",regex:/''/},{token:"string.end",next:"start",regex:"'"},{defaultToken:"string"}]},l.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:[l.getTagRule(),{token:"comment",regex:"\\*\\/",next:"no_regex"},{defaultToken:"comment",caseInsensitive:!0}]};for(c=0;c<n.length;c++)this.$rules.start.unshift({token:"set.statement",regex:n[c]});this.embedRules(l,"doc-",[l.getEndRule("start")]),this.normalizeRules();var d=[],r=function(e,t){e.forEach(function(e){d.push({name:e,value:e,score:0,meta:t})})};r(e.split("|"),"procedure"),r(o.split("|"),"operator"),r(i.split("|"),"function"),r(a.split("|"),"type"),r(n,"statement"),r(t.split("|"),"keyword"),this.completions=d};o.inherits(e,i),t.SqlHighlightRules=e}),r.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){var o=e("../lib/oop"),i=e("./text").Mode,a=e("./sql_highlight_rules").SqlHighlightRules,e=(e("../range").Range,function(){this.HighlightRules=a});o.inherits(e,i),function(){this.lineCommentStart="--",this.$id="ace/mode/sql"}.call(e.prototype),t.Mode=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(139),s=r(42),c=r(12),d=r(39),l=r(37),u=r(0),p=r(36),f=r(1),m=r(5),h=r(55),y=r(40),g=r(56),_=r(54),v=r(89),b=r(86),S=r(87),x=r(88),P=r(15),C=r(122),T=r(123),O=r(80),n=(a=n._DataSourceWizardOptionsBase,i(I,a),I);function I(){return null!==a&&a.apply(this,arguments)||this}t._MultiQueryDataSourceWizardOptions=n;var N,D=(N=s.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||!u.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=p.DataSourceType.Sql:this._wizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource?e.dataSourceType=p.DataSourceType.Json:this._wizardOptions.objectDataSourceAvailable&&(e.dataSourceType=p.DataSourceType.Object),N.prototype.initialize.call(this,e,t)},E);function E(e,t){e=N.call(this,e,t.callbacks.finishCallback)||this;return e._wizardOptions=t,e.title=f.getLocalization("Data Source Wizard","AnalyticsCoreStringId.SqlDSWizard_Title"),e._extendCssClass="dxrd-multiqueries-sqldatasource-wizard",e.height(443),e}t.MultiQueryDataSourceWizard=D;var w,A=(w=l.PageIterator,i(z,w),z.prototype.getNextPageId=function(e){return!e&&this._wizardOptions.jsonDataSourceAvailable&&this._wizardOptions.sqlDataSourceAvailable?m.DataSourceWizardPageId.ChooseDataSourceTypePage:e?e===m.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===p.DataSourceType.Sql?m.SqlDataSourceWizardPageId.ChooseConnectionPage:e===m.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===p.DataSourceType.Object?m.ObjectDataSourceWizardPageId.ChooseTypesPage:e===m.ObjectDataSourceWizardPageId.ChooseTypesPage&&this._getCurrentState().objectDataSourceWizard.selectedType?m.ObjectDataSourceWizardPageId.ChooseDataMembersPage:e===m.ObjectDataSourceWizardPageId.ChooseDataMembersPage?m.ObjectDataSourceWizardPageId.ConfigureParametersPage:e===m.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===p.DataSourceType.Json&&0<this._wizardOptions.connectionStrings.json().length?m.JsonDataSourceWizardPageId.ChooseConnectionPage:this._wizardOptions.allowCreateNewJsonConnection&&e===m.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===p.DataSourceType.Json?m.JsonDataSourceWizardPageId.ChooseJsonSourcePage:e===m.JsonDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().jsonDataSourceWizard.connectionName?m.JsonDataSourceWizardPageId.ChooseJsonSchemaPage:this._wizardOptions.allowCreateNewJsonConnection&&e===m.JsonDataSourceWizardPageId.ChooseConnectionPage&&!this._getCurrentState().jsonDataSourceWizard.connectionName?m.JsonDataSourceWizardPageId.ChooseJsonSourcePage:e===m.JsonDataSourceWizardPageId.ChooseJsonSourcePage?m.JsonDataSourceWizardPageId.ChooseJsonSchemaPage:e===m.SqlDataSourceWizardPageId.ChooseConnectionPage&&this._getCurrentState().sqlDataSourceWizard.name?m.SqlDataSourceWizardPageId.MultiQueryConfigurePage:this._getCurrentState().sqlDataSourceWizard.sqlDataSourceJSON&&e===m.SqlDataSourceWizardPageId.MultiQueryConfigurePage&&0<this._getCurrentState().sqlDataSourceWizard.customQueries.length?m.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage:(e===m.SqlDataSourceWizardPageId.MultiQueryConfigurePage||e===m.SqlDataSourceWizardPageId.MultiQueryConfigureParametersPage)&&1<c._restoreSqlDataSourceFromState(this._getCurrentState().sqlDataSourceWizard).sqlDataSource.queries().length?m.DataSourceWizardPageId.ConfigureMasterDetailRelationshipsPage:void 0:this.getNextPageId(m.DataSourceWizardPageId.ChooseDataSourceTypePage)},z);function z(e,t,r){t=w.call(this,e,t)||this;return t._wizardOptions=r,t}function M(e,t){return void 0===e&&(e=new d.PageFactory),p._registerChooseDataSourceTypePage(e,t),h._registerChooseJsonConnectionPage(e,t),y._registerChooseJsonSourcePage(e,t.requestWrapper,t.callbacks.getItemsProviderCallback),g._registerChooseJsonSchemaPage(e,t.requestWrapper,t.callbacks),_._registerChooseSqlConnectionPage(e,t.connectionStrings.sql),v._registerSpecifyObjectDataSourceSettingsPage(e,t),b._registerMultiQueryConfigurePage(e,t),S._registerMultiQueryConfigureParametersPage(e,t.requestWrapper),x._registerConfigureMasterDetailRelationshipsPage(e,P.wrapRebuildResultSchema(t.callbacks.sqlDataSourceResultSchema)),C._registerChooseObjectDataSourceTypesPage(e,t),T._registerChooseObjectDataSourceDataMembersPage(e,t),O._registerConfigureObjectDataSourceParametersPage(e,t.callbacks.getItemsProviderCallback),e}t.MultiQueryDataSourceWizardPageIterator=A,t._registerMultiQueryDataSourcePages=M,t._createMultiQueryDataSourceWizard=function(e,t){return void 0===e&&(e=new d.PageFactory),M(e,t),new D(e,t)}},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(143),s=r(37),c=r(0),d=r(36),l=r(1),u=r(5),p=r(140),f=r(142),m=r(141),h=r(89),y=(a=n.FullscreenWizard,i(g,a),g.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||!c.isEmptyObject(e.sqlDataSourceWizard)?e.dataSourceType=d.DataSourceType.Sql:this._dataSourceWizardOptions.jsonDataSourceAvailable||e.jsonDataSourceWizard.jsonSource?e.dataSourceType=d.DataSourceType.Json:!this._dataSourceWizardOptions.objectDataSourceAvailable&&c.isEmptyObject(e.objectDataSourceWizard)||(e.dataSourceType=d.DataSourceType.Object),a.prototype.initialize.call(this,e,t)},g.prototype.canRunWizard=function(){return this._dataSourceWizardOptions.canCreateDataSource},g.prototype._description=function(){return l.getLocalization("Data Source Wizard","AnalyticsCoreStringId.DSWizard_Title")},g);function g(e,t){e=a.call(this,e,t.callbacks.finishCallback)||this;return e._dataSourceWizardOptions=t,e}t.FullscreenDataSourceWizard=y;var _,v=(_=s.PageIterator,i(b,_),b.prototype._isMoreThanOneDataSourceTypeAvailable=function(){return this._dataSourceOptions.sqlDataSourceAvailable?this._dataSourceOptions.jsonDataSourceAvailable||this._dataSourceOptions.objectDataSourceAvailable:this._dataSourceOptions.jsonDataSourceAvailable&&this._dataSourceOptions.objectDataSourceAvailable},b.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===d.DataSourceType.Json?u.FullscreenDataSourceWizardPageId.SpecifyJsonDataSourceSettingsPage:e===u.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Sql?u.FullscreenDataSourceWizardPageId.SpecifySqlDataSourceSettingsPage:e===u.DataSourceWizardPageId.ChooseDataSourceTypePage&&this._getCurrentState().dataSourceType===d.DataSourceType.Object?u.FullscreenDataSourceWizardPageId.SpecifyObjectDataSourceSettingsPage:void 0},b);function b(e,t,r,o){o=_.call(this,e,t,o)||this;return o._dataSourceOptions=r,o}t.FullscreenDataSourceWizardPageIterator=v,t._createDataSourceFullscreenWizard=function(e){var t=new p.FullscreenWizardPageFactory;return d._registerChooseDataSourceTypePage(t,e),t.getMetadata(u.DataSourceWizardPageId.ChooseDataSourceTypePage).navigationPanelText=l.getLocalization("Select Data Source Type","AnalyticsCoreStringId.Wizard_SelectDataSourceType"),f._registerSpecifySqlDataSourceSettingsPage(t,e),m._registerSpecifyJsonDataSourceSettingsPage(t,e),h._registerSpecifyObjectDataSourceSettingsPage(t,e),new y(t,e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),r=function(e,t){this.handler=e,this.isVisible=o.observable(!0),this.isDisabled=o.observable(!1),this.text=t};t.WizardAction=r},function(e,t){e.exports=DevExpress.Analytics.Widgets.Filtering},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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var a,n=r(2),s=r(3),c=r(165),d=r(0),l=r(90),u=r(1),p=r(166),f=r(0),m=r(6),h=(a=d.JSDesignerBindingCommon,i(y,a),y.prototype._applyBindings=function(e,t){this._disposables.push(e),t.children().remove();var r,t=t.append(this._templateHtml).children()[0];t&&(n.cleanNode(t),this._callbacks&&this._callbacks.beforeRender&&this._callbacks.beforeRender(e),n.applyBindings(e,t),r=setTimeout(function(){e&&e.updateSurfaceSize()},1),this._disposables.push({dispose:function(){return clearTimeout(r)}}))},y.prototype._initializeEvents=function(){var r=this;return this._getAvailableEvents(p.EventGenerator.generateQueryBuilderEvents(function(e,t){r._fireEvent(e,t)}))},y.prototype._initializeCallbacks=function(){if(this._options.callbacks)return this._initializeEvents()},y.prototype._createModel=function(e){return this._callbacks=this._initializeCallbacks(),l.createQueryBuilder(e,this._options,this._callbacks,!1)},y.prototype.dispose=function(){(this._deferreds||[]).forEach(function(e){e.reject()})},y.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()},y);function y(e,t){t=a.call(this,n.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 c.JSQueryBuilder(e.queryBuilderModel),e.callbacks&&e.callbacks._eventSenderCreated&&e.callbacks._eventSenderCreated(t.sender),t}t.JSQueryBuilderBinding=h,n.bindingHandlers.dxQueryBuilder={init:function(e,t){t=n.unwrap(t());return new h(t||{}).applyBindings(e),{controlsDescendantBindings:!0}}}},function(e,t,r){"use strict";var o=r(175),r=window.DevExpress||{};o._addQueryBuilderToBundle(r),e.exports={Analytics:r.Analytics,QueryBuilder:r.QueryBuilder}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(176),i=r(179),a=r(180),n=r(181),s=r(182),c=r(183),d=r(189),l=r(190),u=r(191),p=r(193),f=r(194),m=r(195),h=r(202),y=r(203),g=r(204);t._addQueryBuilderToBundle=function(e){return e.Analytics=e.Analytics||{},e.QueryBuilder=g,e.Analytics.Diagram=o,e.Analytics.Data=i,e.Analytics.Data.Internal=a,e.Analytics.Data.Utils=n,e.Analytics.Data.Metadata=s,e.Analytics.Wizard=c,e.Analytics.Wizard.Internal=d,e.QueryBuilder.Widgets=l,e.QueryBuilder.Widgets.Internal=u,e.QueryBuilder.Metadata=p,e.QueryBuilder.Utils=f,e.QueryBuilder.Internal=m,e.QueryBuilder.Elements=h,e.QueryBuilder.Elements.Metadata=y,e}},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(20),t(99),t(101),t(14),t(29),t(66),t(67),t(65),t(22),t(64),t(100),t(31),t(48),t(30),t(63),t(47),t(167),t(21),t(177),t(178),o(t(20)),o(t(99)),o(t(101)),o(t(14)),o(t(29)),o(t(66)),o(t(67)),o(t(65)),o(t(22)),o(t(64)),o(t(100)),o(t(31)),o(t(48)),o(t(30)),o(t(63)),o(t(47)),o(t(167)),o(t(21))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(2),a=r(3);r(17),r(17),r(17),r(17);var n=r(0),s=r(0),c=r(0);i.bindingHandlers.routeLineDraggable={init:function(e,t){var o=t(),t=c.extend({snap:".dxrd-drag-snap-line",snapTolerance:n.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}})}});a(e).draggable(t)}},i.bindingHandlers.updateConnectorArrow={init:function(e,t,r,o,i){var a,n,a=(a=-1,"Microsoft Internet Explorer"==navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&(a=parseFloat(RegExp.$1)):"Netscape"==navigator.appName&&null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)&&(a=parseFloat(RegExp.$1)),a);-1<a&&a<=11&&(n=i.$data.routePointsSet.subscribe(function(){i.$data.showArrow()&&e.parentNode.insertBefore(e,e)}),s.addDisposeCallback(e.parentNode,function(){return n.dispose()}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(68),t(69),t(104),t(71),t(106),t(49),t(72),t(73),t(107),t(50),t(108),t(110),t(32),t(51),t(114),t(74),t(35),t(34),t(11),t(18),t(105),t(103),t(23),t(52),o(t(68)),o(t(69)),o(t(104)),o(t(71)),o(t(106)),o(t(49)),o(t(72)),o(t(73)),o(t(107)),o(t(50)),o(t(108)),o(t(110)),o(t(32)),o(t(51)),o(t(114)),o(t(74)),o(t(35)),o(t(34)),o(t(11)),o(t(18)),o(t(105)),o(t(103)),o(t(23)),o(t(52))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(102),t(75),t(109),t(19),o(t(102)),o(t(75)),o(t(109)),o(t(19))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t(9),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(9))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(112),t(113),t(116),t(115),t(33),o(t(112)),o(t(113)),o(t(116)),o(t(115)),o(t(33))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(5),t(12),t(185),t(7),t(36),t(54),t(80),t(122),t(123),t(124),t(55),t(125),t(40),t(56),t(24),t(130),t(86),t(87),t(88),t(39),t(76),t(37),t(186),t(16),t(187),t(42),t(139),t(169),t(140),t(38),t(141),t(142),t(143),t(144),t(170),t(188),t(126),t(89),o(t(5)),o(t(12)),o(t(7)),o(t(36)),o(t(54)),o(t(80)),o(t(122)),o(t(123)),o(t(124)),o(t(55)),o(t(125)),o(t(40)),o(t(56)),o(t(24)),o(t(130)),o(t(86)),o(t(87)),o(t(88)),o(t(39)),o(t(76)),o(t(37)),o(t(16)),o(t(42)),o(t(139)),o(t(169)),o(t(140)),o(t(38)),o(t(141)),o(t(142)),o(t(143)),o(t(144)),o(t(170)),o(t(126)),o(t(89))},function(e,t){e.exports={default:window.ace}},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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(120),t(119),t(117),t(118),t(127),t(85),t(13),t(133),t(131),t(132),t(79),t(78),t(121),t(77),t(41),t(129),t(128),t(171),t(82),t(83),t(81),t(84),o(t(120)),o(t(119)),o(t(117)),o(t(118)),o(t(127)),o(t(85)),o(t(13)),o(t(133)),o(t(131)),o(t(132)),o(t(79)),o(t(78)),o(t(121)),o(t(77)),o(t(41)),o(t(129)),o(t(128)),o(t(171)),o(t(82)),o(t(83)),o(t(81)),o(t(84))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t(111),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(111))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(25),t(168),t(53),t(145),t(146),t(148),t(149),t(43),t(150),t(151),t(138),t(134),t(135),t(137),t(136),t(192).registerEditorTemplates(),o(t(25)),o(t(53)),o(t(145)),o(t(146)),o(t(148)),o(t(149)),o(t(43)),o(t(150)),o(t(151)),o(t(138)),o(t(134)),o(t(135)),o(t(137)),o(t(136))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(145),i=r(25);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,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),t(44),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(44))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(70),t(27),t(8),t(9),o(t(70)),o(t(27)),o(t(8)),o(t(9))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(90),t(197),t(157),t(198),t(152),t(158),t(156),t(15),t(155),t(98),t(199),t(200),t(201),o(t(90)),o(t(157)),o(t(152)),o(t(158)),o(t(156)),o(t(15)),o(t(155)),o(t(98))},function(e,t){e.exports={default:DevExpress.config}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=r(2),p=r(3);r(17),r(17),r(17),r(17);var f=r(0),m=r(0),h=r(6);u.bindingHandlers.dxdTableView={init:function(e,t,r,o,i){var a,n,s=h.getTemplate("dxd-tableview"),c=p(e).append(s),d=!!i.$root.rtl,l=u.unwrap(t());return u.applyBindings({onDataScroll:function(e){0<=e.scrollOffset.left&&(a=a||c.find(".dxd-tableview-titles"),n=n||c.find(".dxd-tableview-data table"),a.offset({left:n.offset().left,top:a.offset().top}))},onDataScrollInitialized:function(e){var t;n=null,d&&(t=e.component,setTimeout(function(){return t.scrollTo({left:t.scrollWidth(),top:0})},1))},data:l,rtl:d,noDataText:f.noDataText,isImage:function(e){return"System.Byte[]"===l.schema[e].type},isImageTooLarge:function(e){return"!"===e[0]},getImageTooLargeText:function(e){return"Image too large ("+e.substring(1)+" bytes)"}},c.children()[0]),c.find(".dxd-tableview-titles .dxd-tableview-resizable").each(function(e,t){var r=p(t).find(".dxd-tableview-cell-text"),o=c.find(".dxd-tableview-data .dxd-tableview-resizable"+e);e<l.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)}});t=Math.max(r.width(),o.width());r.width(t),o.width(t)}),m.addDisposeCallback(c.children()[0],function(){c.find(".dxd-tableview-titles .dxd-tableview-resizable").each(function(e,t){p(t).data("ui-resizable")&&p(t).resizable("destroy")}),c=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";Object.defineProperty(t,"__esModule",{value:!0}),r(10).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"> \x3c!-- ko if: showArrow --\x3e <defs> <marker data-bind="attr: { id: \'dxqb-arrow_\' + 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> </defs> \x3c!-- /ko --\x3e <polyline class="dxd-qb-relationship-line-color" fill="none" data-bind="attr: { points: routePointsSet, \'marker-end\': showArrow() ? \'url(#dxqb-arrow_\' + 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 class="dxrd-drag-helper-source" data-bind="styleunit: { top: $root.dragHelperContent.top, left: $root.dragHelperContent.left, width: $root.dragHelperContent.width, height: $root.dragHelperContent.height }" style="display:none"> \x3c!-- ko foreach: $root.dragHelperContent.controls --\x3e <div class="dxrd-drag-helper-item" data-bind="styleunit: $data"></div> \x3c!-- /ko --\x3e </div> </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 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: underCursor"> <div class="dxqb-main" data-bind="trackCursor: 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 class="dxrd-drag-helper-source" data-bind="styleunit: { top: $root.dragHelperContent.top, left: $root.dragHelperContent.left, width: $root.dragHelperContent.width, height: $root.dragHelperContent.height }" style="display:none"> \x3c!-- ko if: !$root.dragHelperContent._isEmpty --\x3e \x3c!-- ko foreach: $root.dragHelperContent.controls --\x3e <div class="dxrd-drag-helper-item" data-bind="styleunit: { left: $data.left, top: $data.top, width: $data.width, height: $data.height }"></div> \x3c!-- /ko --\x3e \x3c!-- /ko --\x3e </div> </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: 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> <div class="dxqb-table-title dxd-text-primary" data-bind="text: getControlModel().actualName, style: { cursor: selected() ? \'move\' : \'default\' }"></div> </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>',"dxrd-masterDetail-editor":'\x3c!-- ko if: $data --\x3e <div> <div class="dx-filtereditor" data-bind="dxPopup: { showTitle: true, width: \'95%\', height: \'95%\', title: title(), visible: popupVisible, 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, 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: {}, closeOnOutsideClick: 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 class="dxqb-preview" data-bind="dxPopup: { animation: { show: { type: \'fade\', from: 0, to: 1, duration: 700 }, hide: { type: \'fade\', from: 1, to: 0, duration: 700 } }, 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 data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header" data-bind="css: { \'dxrd-group-header-collapsed dxd-border-primary\': 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"> \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-toolbar":'<div class="dxrd-toolbar-wrapper dxd-toolbar-back-color" data-bind="click: $root.findControl"> <div class="dxqb-toolbar-background dxd-back-primary2"></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-button-back-color dxd-state-normal dxd-back-highlighted \' + (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>","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, 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, dropDownOptions: { container: $root.getPopupContainer($element) } }"></div> </div> <div class="dxrd-wizard-add-queries-page 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" style="margin-bottom: 15px" 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" style="margin-bottom: 15px" 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\' }"> <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 style=\"position:relative; top: 65px; height: calc(100% - 65px)\"> \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"> <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"> <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 } : { my: \'left top\', at: \'left bottom\', of: popupService.target }, container: $root.getPopupContainer($element), target: popupService.target, showTitle: false, showCloseButton: false, animation: {}, closeOnOutsideClick: 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 class="dxqb-preview" data-bind="dxPopup: { animation: { show: { type: \'fade\', from: 0, to: 1, duration: 700 }, hide: { type: \'fade\', from: 1, to: 0, duration: 700 } }, 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 class="dx-treelist-item dx-fontsize-reestablished dxd-list-item-back-color" data-bind="event: { dblclick: function() { $data.dblClickHandler ? $data.dblClickHandler($data) : $data.toggleCollapsed() }, mouseenter: mouseenter, mouseleave: mouseleave }, styleunit: padding, css: { \'dx-treelist-item-selected dxd-state-selected dxd-back-secondary\': isSelected }"> \x3c!-- ko ifnot: $data.hasItems--\x3e <div class="dx-treelist-collapsedbutton" data-bind="css: nodeImageClass"></div> \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"> <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> <div data-bind="dxPopover:{ width: 200, position: !$root.rtl ? \'left\' : \'right\', visible: $parent.data.popoverVisible, target: \'.dx-treelist-action-with-popover\', container: $root.getPopupContainer($element)}"> <div data-bind="dxList: { dataSource: $parent.data.popoverListItems(), onItemClick: $parent.data.itemClickAction }"> <div data-options="dxTemplate : { name: \'item\' }"> <div class="dx-text-content" data-bind="text: name, attr: { title: name }"></div> </div> </div> </div> </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 data-bind="dxdAccordion: { collapsed: collapsed }"> <div class="dxrd-group-header dx-accordion-header dxd-text-primary" style="border-bottom: 0" data-bind="styleunit: { \'marginLeft\' : editor.padding }, css: { \'dxrd-group-header-collapsed dxd-border-primary\': 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"> <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 class="dxrd-querybuilder-popup" 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\'), 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-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, title: isVisible() ? title : \'\', showTitle: true, fullScreen: false, width: width, height: height, container: _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";Object.defineProperty(t,"__esModule",{value:!0})},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(28),t(153),t(164),t(91),t(60),t(62),t(94),t(161),t(57),t(163),t(58),t(97),t(93),t(159),t(59),t(162),o(t(28)),o(t(153)),o(t(164)),o(t(91)),o(t(60)),o(t(62)),o(t(94)),o(t(161)),o(t(57)),o(t(163)),o(t(58)),o(t(97)),o(t(93)),o(t(159)),o(t(59)),o(t(162))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(154),t(26),t(61),t(160),t(46),t(96),t(95),t(92),o(t(154)),o(t(26)),o(t(61)),o(t(160)),o(t(46)),o(t(96)),o(t(95)),o(t(92))},function(e,r,t){"use strict";function o(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),t(165),t(173),t(207),t(166),o(t(165)),o(t(173)),o(t(166))},function(e,t){e.exports=DevExpress.localization},function(e,t){e.exports=DevExpress.Analytics.Localization},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}]);