@elliemae/ds-query-builder 2.2.0-next.6 → 2.3.0-alpha.1

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 (142) hide show
  1. package/cjs/DSQueryBuilder.js +117 -97
  2. package/cjs/DSQueryBuilder.js.map +7 -0
  3. package/cjs/components/AndOrController/AndOrController.js +148 -162
  4. package/cjs/components/AndOrController/AndOrController.js.map +7 -0
  5. package/cjs/components/ConditionController/ConditionController.js +88 -72
  6. package/cjs/components/ConditionController/ConditionController.js.map +7 -0
  7. package/cjs/components/DisplayOutput/DisplayOutput.js +63 -68
  8. package/cjs/components/DisplayOutput/DisplayOutput.js.map +7 -0
  9. package/cjs/components/DragContainerController/DragContainerController.js +61 -41
  10. package/cjs/components/DragContainerController/DragContainerController.js.map +7 -0
  11. package/cjs/components/DragControllerRow/DragControllerRow.js +50 -46
  12. package/cjs/components/DragControllerRow/DragControllerRow.js.map +7 -0
  13. package/cjs/components/FieldControllerRow/FieldControllerRow.js +54 -32
  14. package/cjs/components/FieldControllerRow/FieldControllerRow.js.map +7 -0
  15. package/cjs/components/Nestable/Nestable.js +143 -209
  16. package/cjs/components/Nestable/Nestable.js.map +7 -0
  17. package/cjs/components/Nestable/NestableItem.js +98 -90
  18. package/cjs/components/Nestable/NestableItem.js.map +7 -0
  19. package/cjs/components/Nestable/actions/events.js +72 -95
  20. package/cjs/components/Nestable/actions/events.js.map +7 -0
  21. package/cjs/components/Nestable/actions/getItemOptions.js +36 -15
  22. package/cjs/components/Nestable/actions/getItemOptions.js.map +7 -0
  23. package/cjs/components/Nestable/actions/getPaths.js +46 -51
  24. package/cjs/components/Nestable/actions/getPaths.js.map +7 -0
  25. package/cjs/components/Nestable/actions/index.js +42 -28
  26. package/cjs/components/Nestable/actions/index.js.map +7 -0
  27. package/cjs/components/Nestable/actions/moveItem.js +44 -42
  28. package/cjs/components/Nestable/actions/moveItem.js.map +7 -0
  29. package/cjs/components/Nestable/actions/paths.js +48 -55
  30. package/cjs/components/Nestable/actions/paths.js.map +7 -0
  31. package/cjs/components/Nestable/actions/tryDecreaseDepth.js +39 -23
  32. package/cjs/components/Nestable/actions/tryDecreaseDepth.js.map +7 -0
  33. package/cjs/components/Nestable/actions/tryIncreaseDepth.js +39 -26
  34. package/cjs/components/Nestable/actions/tryIncreaseDepth.js.map +7 -0
  35. package/cjs/components/Nestable/index.js +36 -7
  36. package/cjs/components/Nestable/index.js.map +7 -0
  37. package/cjs/components/QueryBuilderContext/QueryBuilderContext.js +36 -13
  38. package/cjs/components/QueryBuilderContext/QueryBuilderContext.js.map +7 -0
  39. package/cjs/components/QueryBuilderImpl.js +118 -202
  40. package/cjs/components/QueryBuilderImpl.js.map +7 -0
  41. package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +80 -78
  42. package/cjs/components/QueryBuilderItem/QueryBuilderItem.js.map +7 -0
  43. package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +154 -211
  44. package/cjs/components/QueryBuilderRow/QueryBuilderRow.js.map +7 -0
  45. package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +39 -26
  46. package/cjs/components/ToolBarAnimation/ToolBarAnimation.js.map +7 -0
  47. package/cjs/components/format/format.js +48 -22
  48. package/cjs/components/format/format.js.map +7 -0
  49. package/cjs/components/format/sqlFormat.js +69 -48
  50. package/cjs/components/format/sqlFormat.js.map +7 -0
  51. package/cjs/components/format/sqlSafeFormat.js +72 -55
  52. package/cjs/components/format/sqlSafeFormat.js.map +7 -0
  53. package/cjs/components/format/xmlFormat.js +71 -50
  54. package/cjs/components/format/xmlFormat.js.map +7 -0
  55. package/cjs/components/helpers/actions.js +151 -186
  56. package/cjs/components/helpers/actions.js.map +7 -0
  57. package/cjs/components/helpers/constants.js +36 -8
  58. package/cjs/components/helpers/constants.js.map +7 -0
  59. package/cjs/components/helpers/dependencies.js +49 -64
  60. package/cjs/components/helpers/dependencies.js.map +7 -0
  61. package/cjs/components/helpers/selectors.js +161 -101
  62. package/cjs/components/helpers/selectors.js.map +7 -0
  63. package/cjs/components/helpers/store.js +86 -104
  64. package/cjs/components/helpers/store.js.map +7 -0
  65. package/cjs/components/helpers/types.js +72 -44
  66. package/cjs/components/helpers/types.js.map +7 -0
  67. package/cjs/index.js +36 -29
  68. package/cjs/index.js.map +7 -0
  69. package/cjs/propTypes.js +102 -94
  70. package/cjs/propTypes.js.map +7 -0
  71. package/esm/DSQueryBuilder.js +103 -72
  72. package/esm/DSQueryBuilder.js.map +7 -0
  73. package/esm/components/AndOrController/AndOrController.js +113 -147
  74. package/esm/components/AndOrController/AndOrController.js.map +7 -0
  75. package/esm/components/ConditionController/ConditionController.js +57 -62
  76. package/esm/components/ConditionController/ConditionController.js.map +7 -0
  77. package/esm/components/DisplayOutput/DisplayOutput.js +31 -59
  78. package/esm/components/DisplayOutput/DisplayOutput.js.map +7 -0
  79. package/esm/components/DragContainerController/DragContainerController.js +32 -35
  80. package/esm/components/DragContainerController/DragContainerController.js.map +7 -0
  81. package/esm/components/DragControllerRow/DragControllerRow.js +21 -38
  82. package/esm/components/DragControllerRow/DragControllerRow.js.map +7 -0
  83. package/esm/components/FieldControllerRow/FieldControllerRow.js +25 -26
  84. package/esm/components/FieldControllerRow/FieldControllerRow.js.map +7 -0
  85. package/esm/components/Nestable/Nestable.js +115 -186
  86. package/esm/components/Nestable/Nestable.js.map +7 -0
  87. package/esm/components/Nestable/NestableItem.js +69 -82
  88. package/esm/components/Nestable/NestableItem.js.map +7 -0
  89. package/esm/components/Nestable/actions/events.js +45 -79
  90. package/esm/components/Nestable/actions/events.js.map +7 -0
  91. package/esm/components/Nestable/actions/getItemOptions.js +7 -11
  92. package/esm/components/Nestable/actions/getItemOptions.js.map +7 -0
  93. package/esm/components/Nestable/actions/getPaths.js +17 -43
  94. package/esm/components/Nestable/actions/getPaths.js.map +7 -0
  95. package/esm/components/Nestable/actions/index.js +13 -6
  96. package/esm/components/Nestable/actions/index.js.map +7 -0
  97. package/esm/components/Nestable/actions/moveItem.js +13 -31
  98. package/esm/components/Nestable/actions/moveItem.js.map +7 -0
  99. package/esm/components/Nestable/actions/paths.js +19 -47
  100. package/esm/components/Nestable/actions/paths.js.map +7 -0
  101. package/esm/components/Nestable/actions/tryDecreaseDepth.js +10 -19
  102. package/esm/components/Nestable/actions/tryDecreaseDepth.js.map +7 -0
  103. package/esm/components/Nestable/actions/tryIncreaseDepth.js +10 -22
  104. package/esm/components/Nestable/actions/tryIncreaseDepth.js.map +7 -0
  105. package/esm/components/Nestable/index.js +7 -2
  106. package/esm/components/Nestable/index.js.map +7 -0
  107. package/esm/components/QueryBuilderContext/QueryBuilderContext.js +7 -5
  108. package/esm/components/QueryBuilderContext/QueryBuilderContext.js.map +7 -0
  109. package/esm/components/QueryBuilderImpl.js +82 -187
  110. package/esm/components/QueryBuilderImpl.js.map +7 -0
  111. package/esm/components/QueryBuilderItem/QueryBuilderItem.js +50 -70
  112. package/esm/components/QueryBuilderItem/QueryBuilderItem.js.map +7 -0
  113. package/esm/components/QueryBuilderRow/QueryBuilderRow.js +123 -201
  114. package/esm/components/QueryBuilderRow/QueryBuilderRow.js.map +7 -0
  115. package/esm/components/ToolBarAnimation/ToolBarAnimation.js +10 -17
  116. package/esm/components/ToolBarAnimation/ToolBarAnimation.js.map +7 -0
  117. package/esm/components/format/format.js +16 -17
  118. package/esm/components/format/format.js.map +7 -0
  119. package/esm/components/format/sqlFormat.js +39 -43
  120. package/esm/components/format/sqlFormat.js.map +7 -0
  121. package/esm/components/format/sqlSafeFormat.js +43 -50
  122. package/esm/components/format/sqlSafeFormat.js.map +7 -0
  123. package/esm/components/format/xmlFormat.js +41 -45
  124. package/esm/components/format/xmlFormat.js.map +7 -0
  125. package/esm/components/helpers/actions.js +123 -160
  126. package/esm/components/helpers/actions.js.map +7 -0
  127. package/esm/components/helpers/constants.js +7 -2
  128. package/esm/components/helpers/constants.js.map +7 -0
  129. package/esm/components/helpers/dependencies.js +19 -39
  130. package/esm/components/helpers/dependencies.js.map +7 -0
  131. package/esm/components/helpers/selectors.js +132 -93
  132. package/esm/components/helpers/selectors.js.map +7 -0
  133. package/esm/components/helpers/store.js +54 -82
  134. package/esm/components/helpers/store.js.map +7 -0
  135. package/esm/components/helpers/types.js +44 -33
  136. package/esm/components/helpers/types.js.map +7 -0
  137. package/esm/index.js +7 -4
  138. package/esm/index.js.map +7 -0
  139. package/esm/propTypes.js +55 -72
  140. package/esm/propTypes.js.map +7 -0
  141. package/package.json +12 -12
  142. package/types/DSQueryBuilder.d.ts +1 -32
@@ -1,11 +1,36 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('core-js/modules/esnext.async-iterator.map.js');
6
- require('core-js/modules/esnext.iterator.map.js');
7
- var types = require('../helpers/types.js');
8
-
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var sqlFormat_exports = {};
29
+ __export(sqlFormat_exports, {
30
+ sqlFormat: () => sqlFormat
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_types = require("../helpers/types");
9
34
  const conditionSql = (condition, value) => {
10
35
  const {
11
36
  EQUAL,
@@ -18,56 +43,52 @@ const conditionSql = (condition, value) => {
18
43
  GREATER_THAN_OR_EQUAL,
19
44
  LESS_THAN_OR_EQUAL,
20
45
  START_WITH
21
- } = types.QB_OPERATOR_TYPES;
22
- if (condition === EQUAL) return " = '".concat(value, "'");
23
- if (condition === NOT_EQUAL) return " <> '".concat(value, "'");
24
- if (condition === GREATER_THAN) return " > ".concat(value);
25
- if (condition === LESS_THAN) return " < ".concat(value);
26
- if (condition === CONTAINS) return " LIKE '%".concat(value, "%'");
27
- if (condition === NOT_CONTAINS) return " NOT LIKE '%".concat(value, "%'");
28
- if (condition === BETWEEN) return " BETWEEN ".concat(value[0], " AND ").concat(value[1], " ");
29
- if (condition === GREATER_THAN_OR_EQUAL) return " >= ".concat(value);
30
- if (condition === LESS_THAN_OR_EQUAL) return " <= ".concat(value);
31
- if (condition === START_WITH) return " LIKE '".concat(value, "%'");
46
+ } = import_types.QB_OPERATOR_TYPES;
47
+ if (condition === EQUAL)
48
+ return ` = '${value}'`;
49
+ if (condition === NOT_EQUAL)
50
+ return ` <> '${value}'`;
51
+ if (condition === GREATER_THAN)
52
+ return ` > ${value}`;
53
+ if (condition === LESS_THAN)
54
+ return ` < ${value}`;
55
+ if (condition === CONTAINS)
56
+ return ` LIKE '%${value}%'`;
57
+ if (condition === NOT_CONTAINS)
58
+ return ` NOT LIKE '%${value}%'`;
59
+ if (condition === BETWEEN)
60
+ return ` BETWEEN ${value[0]} AND ${value[1]} `;
61
+ if (condition === GREATER_THAN_OR_EQUAL)
62
+ return ` >= ${value}`;
63
+ if (condition === LESS_THAN_OR_EQUAL)
64
+ return ` <= ${value}`;
65
+ if (condition === START_WITH)
66
+ return ` LIKE '${value}%'`;
32
67
  return condition;
33
68
  };
34
-
35
- const renderFilterSQl = filter => {
36
- const {
37
- field,
38
- operator,
39
- value
40
- } = filter.element;
41
- return "".concat(field, " ").concat(conditionSql(operator, value) || '');
69
+ const renderFilterSQl = (filter) => {
70
+ const { field, operator, value } = filter.element;
71
+ return `${field} ${conditionSql(operator, value) || ""}`;
42
72
  };
43
-
44
- const sqlFormat = _ref => {
45
- let {
46
- main,
47
- mapGroups,
48
- items
49
- } = _ref;
50
-
73
+ const sqlFormat = ({ main, mapGroups, items }) => {
51
74
  const groupSql = (item, idGroup) => {
52
75
  if (idGroup === main) {
53
- const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
54
- return " ( ".concat(filterSql(item, groupCondition), " ) "); // eslint-disable-line
76
+ const groupCondition2 = mapGroups[idGroup].condition === true ? "AND" : "OR";
77
+ return ` ( ${filterSql(item, groupCondition2)} ) `;
55
78
  }
56
-
57
- const groupCondition = item.element.condition === true ? 'AND' : 'OR';
58
- return " ( ".concat(filterSql(item.children, groupCondition), " ) "); // eslint-disable-line
79
+ const groupCondition = item.element.condition === true ? "AND" : "OR";
80
+ return ` ( ${filterSql(item.children, groupCondition)} ) `;
59
81
  };
60
-
61
82
  const filterSql = (filters, groupCondition) => {
62
- const filterGroup = filters.map(filter => {
63
- if (filter.element.type === 'filter') return " ".concat(renderFilterSQl(filter), " ");
64
- return " ".concat(groupSql(filter) || '', " ");
83
+ const filterGroup = filters.map((filter) => {
84
+ if (filter.element.type === "filter")
85
+ return ` ${renderFilterSQl(filter)} `;
86
+ return ` ${groupSql(filter) || ""} `;
65
87
  });
66
88
  return filterGroup.join(groupCondition);
67
89
  };
68
-
69
- const sql = " FROM [TABLE_NAME] WHERE ".concat(groupSql(items, main) || '', " ");
90
+ const sql = ` FROM [TABLE_NAME] WHERE ${groupSql(items, main) || ""} `;
70
91
  return sql;
71
92
  };
72
-
73
- exports.sqlFormat = sqlFormat;
93
+ module.exports = __toCommonJS(sqlFormat_exports);
94
+ //# sourceMappingURL=sqlFormat.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/components/format/sqlFormat.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable complexity */\nimport { QB_OPERATOR_TYPES } from '../helpers/types';\n\nconst conditionSql = (condition, value) => {\n const {\n EQUAL,\n NOT_EQUAL,\n GREATER_THAN,\n LESS_THAN,\n CONTAINS,\n NOT_CONTAINS,\n BETWEEN,\n GREATER_THAN_OR_EQUAL,\n LESS_THAN_OR_EQUAL,\n START_WITH,\n } = QB_OPERATOR_TYPES;\n\n if (condition === EQUAL) return ` = '${value}'`;\n if (condition === NOT_EQUAL) return ` <> '${value}'`;\n if (condition === GREATER_THAN) return ` > ${value}`;\n if (condition === LESS_THAN) return ` < ${value}`;\n if (condition === CONTAINS) return ` LIKE '%${value}%'`;\n if (condition === NOT_CONTAINS) return ` NOT LIKE '%${value}%'`;\n if (condition === BETWEEN) return ` BETWEEN ${value[0]} AND ${value[1]} `;\n if (condition === GREATER_THAN_OR_EQUAL) return ` >= ${value}`;\n if (condition === LESS_THAN_OR_EQUAL) return ` <= ${value}`;\n if (condition === START_WITH) return ` LIKE '${value}%'`;\n return condition;\n};\n\nconst renderFilterSQl = (filter) => {\n const { field, operator, value } = filter.element;\n\n return `${field} ${conditionSql(operator, value) || ''}`;\n};\nexport const sqlFormat = ({ main, mapGroups, items }) => {\n const groupSql = (item, idGroup) => {\n if (idGroup === main) {\n const groupCondition =\n mapGroups[idGroup].condition === true ? 'AND' : 'OR';\n return ` ( ${filterSql(item, groupCondition)} ) `; // eslint-disable-line\n }\n const groupCondition = item.element.condition === true ? 'AND' : 'OR';\n return ` ( ${filterSql(item.children, groupCondition)} ) `; // eslint-disable-line\n };\n\n const filterSql = (filters, groupCondition) => {\n const filterGroup = filters.map((filter) => {\n if (filter.element.type === 'filter')\n return ` ${renderFilterSQl(filter)} `;\n return ` ${groupSql(filter) || ''} `;\n });\n return filterGroup.join(groupCondition);\n };\n\n const sql = ` FROM [TABLE_NAME] WHERE ${groupSql(items, main) || ''} `;\n\n return sql;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkC;AAElC,MAAM,eAAe,CAAC,WAAW,UAAU;AACzC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE;AAEJ,MAAI,cAAc;AAAO,WAAO,OAAO;AACvC,MAAI,cAAc;AAAW,WAAO,QAAQ;AAC5C,MAAI,cAAc;AAAc,WAAO,MAAM;AAC7C,MAAI,cAAc;AAAW,WAAO,MAAM;AAC1C,MAAI,cAAc;AAAU,WAAO,WAAW;AAC9C,MAAI,cAAc;AAAc,WAAO,eAAe;AACtD,MAAI,cAAc;AAAS,WAAO,YAAY,MAAM,UAAU,MAAM;AACpE,MAAI,cAAc;AAAuB,WAAO,OAAO;AACvD,MAAI,cAAc;AAAoB,WAAO,OAAO;AACpD,MAAI,cAAc;AAAY,WAAO,UAAU;AAC/C,SAAO;AAAA;AAGT,MAAM,kBAAkB,CAAC,WAAW;AAClC,QAAM,EAAE,OAAO,UAAU,UAAU,OAAO;AAE1C,SAAO,GAAG,SAAS,aAAa,UAAU,UAAU;AAAA;AAE/C,MAAM,YAAY,CAAC,EAAE,MAAM,WAAW,YAAY;AACvD,QAAM,WAAW,CAAC,MAAM,YAAY;AAClC,QAAI,YAAY,MAAM;AACpB,YAAM,kBACJ,UAAU,SAAS,cAAc,OAAO,QAAQ;AAClD,aAAO,MAAM,UAAU,MAAM;AAAA;AAE/B,UAAM,iBAAiB,KAAK,QAAQ,cAAc,OAAO,QAAQ;AACjE,WAAO,MAAM,UAAU,KAAK,UAAU;AAAA;AAGxC,QAAM,YAAY,CAAC,SAAS,mBAAmB;AAC7C,UAAM,cAAc,QAAQ,IAAI,CAAC,WAAW;AAC1C,UAAI,OAAO,QAAQ,SAAS;AAC1B,eAAO,IAAI,gBAAgB;AAC7B,aAAO,IAAI,SAAS,WAAW;AAAA;AAEjC,WAAO,YAAY,KAAK;AAAA;AAG1B,QAAM,MAAM,4BAA4B,SAAS,OAAO,SAAS;AAEjE,SAAO;AAAA;",
6
+ "names": []
7
+ }
@@ -1,13 +1,38 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('core-js/modules/esnext.async-iterator.map.js');
6
- require('core-js/modules/esnext.iterator.map.js');
7
- var types = require('../helpers/types.js');
8
-
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var sqlSafeFormat_exports = {};
29
+ __export(sqlSafeFormat_exports, {
30
+ specialChar: () => specialChar,
31
+ sqlSafeFormat: () => sqlSafeFormat
32
+ });
33
+ var React = __toESM(require("react"));
34
+ var import_types = require("../helpers/types");
9
35
  const specialChar = /[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;
10
-
11
36
  const conditionSql = (condition, value) => {
12
37
  const {
13
38
  EQUAL,
@@ -20,62 +45,54 @@ const conditionSql = (condition, value) => {
20
45
  GREATER_THAN_OR_EQUAL,
21
46
  LESS_THAN_OR_EQUAL,
22
47
  START_WITH
23
- } = types.QB_OPERATOR_TYPES; // eslint-disable-next-line no-restricted-globals
24
-
25
- const valueDisplay = isNaN(value) ? "'".concat(value, "'") : value;
26
- if (condition === EQUAL) return " = ".concat(valueDisplay);
27
- if (condition === NOT_EQUAL) return " <> ".concat(valueDisplay);
28
- if (condition === GREATER_THAN) return " > ".concat(valueDisplay);
29
- if (condition === LESS_THAN) return " < ".concat(valueDisplay);
30
- if (condition === CONTAINS) return " LIKE '%".concat(value, "%'");
31
- if (condition === NOT_CONTAINS) return " NOT LIKE '%".concat(value, "%'");
32
- if (condition === BETWEEN) return " BETWEEN ".concat(value[0], " AND ").concat(value[1], " ");
33
- if (condition === GREATER_THAN_OR_EQUAL) return " >= ".concat(value);
34
- if (condition === LESS_THAN_OR_EQUAL) return " <= ".concat(value);
35
- if (condition === START_WITH) return " LIKE '".concat(value, "%'");
48
+ } = import_types.QB_OPERATOR_TYPES;
49
+ const valueDisplay = isNaN(value) ? `'${value}'` : value;
50
+ if (condition === EQUAL)
51
+ return ` = ${valueDisplay}`;
52
+ if (condition === NOT_EQUAL)
53
+ return ` <> ${valueDisplay}`;
54
+ if (condition === GREATER_THAN)
55
+ return ` > ${valueDisplay}`;
56
+ if (condition === LESS_THAN)
57
+ return ` < ${valueDisplay}`;
58
+ if (condition === CONTAINS)
59
+ return ` LIKE '%${value}%'`;
60
+ if (condition === NOT_CONTAINS)
61
+ return ` NOT LIKE '%${value}%'`;
62
+ if (condition === BETWEEN)
63
+ return ` BETWEEN ${value[0]} AND ${value[1]} `;
64
+ if (condition === GREATER_THAN_OR_EQUAL)
65
+ return ` >= ${value}`;
66
+ if (condition === LESS_THAN_OR_EQUAL)
67
+ return ` <= ${value}`;
68
+ if (condition === START_WITH)
69
+ return ` LIKE '${value}%'`;
36
70
  return condition;
37
71
  };
38
-
39
- const renderFilterSQl = filter => {
40
- const {
41
- field,
42
- operator,
43
- value
44
- } = filter.element; // eslint-disable-next-line no-restricted-globals
45
-
46
- const fieldDisplay = // eslint-disable-next-line no-restricted-globals
47
- /[.]/.test(field) || !isNaN(field) ? "\\\"".concat(field, "\\\"") : field;
48
- return "".concat(fieldDisplay, " ").concat(conditionSql(operator, value) || '');
72
+ const renderFilterSQl = (filter) => {
73
+ const { field, operator, value } = filter.element;
74
+ const fieldDisplay = /[.]/.test(field) || !isNaN(field) ? `\\"${field}\\"` : field;
75
+ return `${fieldDisplay} ${conditionSql(operator, value) || ""}`;
49
76
  };
50
-
51
- const sqlSafeFormat = _ref => {
52
- let {
53
- main,
54
- mapGroups,
55
- items
56
- } = _ref;
57
-
77
+ const sqlSafeFormat = ({ main, mapGroups, items }) => {
58
78
  const groupSql = (item, idGroup) => {
59
79
  if (idGroup === main) {
60
- const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
61
- return " ( ".concat(filterSql(item, groupCondition), " ) "); // eslint-disable-line
80
+ const groupCondition2 = mapGroups[idGroup].condition === true ? "AND" : "OR";
81
+ return ` ( ${filterSql(item, groupCondition2)} ) `;
62
82
  }
63
-
64
- const groupCondition = item.element.condition === true ? 'AND' : 'OR';
65
- return " ( ".concat(filterSql(item.children, groupCondition), " ) "); // eslint-disable-line
83
+ const groupCondition = item.element.condition === true ? "AND" : "OR";
84
+ return ` ( ${filterSql(item.children, groupCondition)} ) `;
66
85
  };
67
-
68
86
  const filterSql = (filters, groupCondition) => {
69
- const filterGroup = filters.map(filter => {
70
- if (filter.element.type === 'filter') return " ".concat(renderFilterSQl(filter), " ");
71
- return " ".concat(groupSql(filter) || '', " ");
87
+ const filterGroup = filters.map((filter) => {
88
+ if (filter.element.type === "filter")
89
+ return ` ${renderFilterSQl(filter)} `;
90
+ return ` ${groupSql(filter) || ""} `;
72
91
  });
73
92
  return filterGroup.join(groupCondition);
74
93
  };
75
-
76
- const sql = " FROM [TABLE_NAME] WHERE ".concat(groupSql(items, main) || '', " ");
94
+ const sql = ` FROM [TABLE_NAME] WHERE ${groupSql(items, main) || ""} `;
77
95
  return sql;
78
96
  };
79
-
80
- exports.specialChar = specialChar;
81
- exports.sqlSafeFormat = sqlSafeFormat;
97
+ module.exports = __toCommonJS(sqlSafeFormat_exports);
98
+ //# sourceMappingURL=sqlSafeFormat.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/components/format/sqlSafeFormat.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable complexity */\nimport { QB_OPERATOR_TYPES } from '../helpers/types';\n\n// eslint-disable-next-line no-useless-escape\nexport const specialChar = /[ !@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]/;\n\nconst conditionSql = (condition, value) => {\n const {\n EQUAL,\n NOT_EQUAL,\n GREATER_THAN,\n LESS_THAN,\n CONTAINS,\n NOT_CONTAINS,\n BETWEEN,\n GREATER_THAN_OR_EQUAL,\n LESS_THAN_OR_EQUAL,\n START_WITH,\n } = QB_OPERATOR_TYPES;\n // eslint-disable-next-line no-restricted-globals\n const valueDisplay = isNaN(value) ? `'${value}'` : value;\n\n if (condition === EQUAL) return ` = ${valueDisplay}`;\n if (condition === NOT_EQUAL) return ` <> ${valueDisplay}`;\n if (condition === GREATER_THAN) return ` > ${valueDisplay}`;\n if (condition === LESS_THAN) return ` < ${valueDisplay}`;\n if (condition === CONTAINS) return ` LIKE '%${value}%'`;\n if (condition === NOT_CONTAINS) return ` NOT LIKE '%${value}%'`;\n if (condition === BETWEEN) return ` BETWEEN ${value[0]} AND ${value[1]} `;\n if (condition === GREATER_THAN_OR_EQUAL) return ` >= ${value}`;\n if (condition === LESS_THAN_OR_EQUAL) return ` <= ${value}`;\n if (condition === START_WITH) return ` LIKE '${value}%'`;\n return condition;\n};\n\nconst renderFilterSQl = (filter) => {\n const { field, operator, value } = filter.element;\n // eslint-disable-next-line no-restricted-globals\n const fieldDisplay =\n // eslint-disable-next-line no-restricted-globals\n /[.]/.test(field) || !isNaN(field) ? `\\\\\"${field}\\\\\"` : field;\n return `${fieldDisplay} ${conditionSql(operator, value) || ''}`;\n};\nexport const sqlSafeFormat = ({ main, mapGroups, items }) => {\n const groupSql = (item, idGroup) => {\n if (idGroup === main) {\n const groupCondition =\n mapGroups[idGroup].condition === true ? 'AND' : 'OR';\n return ` ( ${filterSql(item, groupCondition)} ) `; // eslint-disable-line\n }\n const groupCondition = item.element.condition === true ? 'AND' : 'OR';\n return ` ( ${filterSql(item.children, groupCondition)} ) `; // eslint-disable-line\n };\n\n const filterSql = (filters, groupCondition) => {\n const filterGroup = filters.map((filter) => {\n if (filter.element.type === 'filter')\n return ` ${renderFilterSQl(filter)} `;\n return ` ${groupSql(filter) || ''} `;\n });\n return filterGroup.join(groupCondition);\n };\n\n const sql = ` FROM [TABLE_NAME] WHERE ${groupSql(items, main) || ''} `;\n\n return sql;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkC;AAG3B,MAAM,cAAc;AAE3B,MAAM,eAAe,CAAC,WAAW,UAAU;AACzC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE;AAEJ,QAAM,eAAe,MAAM,SAAS,IAAI,WAAW;AAEnD,MAAI,cAAc;AAAO,WAAO,MAAM;AACtC,MAAI,cAAc;AAAW,WAAO,OAAO;AAC3C,MAAI,cAAc;AAAc,WAAO,MAAM;AAC7C,MAAI,cAAc;AAAW,WAAO,MAAM;AAC1C,MAAI,cAAc;AAAU,WAAO,WAAW;AAC9C,MAAI,cAAc;AAAc,WAAO,eAAe;AACtD,MAAI,cAAc;AAAS,WAAO,YAAY,MAAM,UAAU,MAAM;AACpE,MAAI,cAAc;AAAuB,WAAO,OAAO;AACvD,MAAI,cAAc;AAAoB,WAAO,OAAO;AACpD,MAAI,cAAc;AAAY,WAAO,UAAU;AAC/C,SAAO;AAAA;AAGT,MAAM,kBAAkB,CAAC,WAAW;AAClC,QAAM,EAAE,OAAO,UAAU,UAAU,OAAO;AAE1C,QAAM,eAEJ,MAAM,KAAK,UAAU,CAAC,MAAM,SAAS,MAAM,aAAa;AAC1D,SAAO,GAAG,gBAAgB,aAAa,UAAU,UAAU;AAAA;AAEtD,MAAM,gBAAgB,CAAC,EAAE,MAAM,WAAW,YAAY;AAC3D,QAAM,WAAW,CAAC,MAAM,YAAY;AAClC,QAAI,YAAY,MAAM;AACpB,YAAM,kBACJ,UAAU,SAAS,cAAc,OAAO,QAAQ;AAClD,aAAO,MAAM,UAAU,MAAM;AAAA;AAE/B,UAAM,iBAAiB,KAAK,QAAQ,cAAc,OAAO,QAAQ;AACjE,WAAO,MAAM,UAAU,KAAK,UAAU;AAAA;AAGxC,QAAM,YAAY,CAAC,SAAS,mBAAmB;AAC7C,UAAM,cAAc,QAAQ,IAAI,CAAC,WAAW;AAC1C,UAAI,OAAO,QAAQ,SAAS;AAC1B,eAAO,IAAI,gBAAgB;AAC7B,aAAO,IAAI,SAAS,WAAW;AAAA;AAEjC,WAAO,YAAY,KAAK;AAAA;AAG1B,QAAM,MAAM,4BAA4B,SAAS,OAAO,SAAS;AAEjE,SAAO;AAAA;",
6
+ "names": []
7
+ }
@@ -1,11 +1,36 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('core-js/modules/esnext.async-iterator.map.js');
6
- require('core-js/modules/esnext.iterator.map.js');
7
- var types = require('../helpers/types.js');
8
-
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __reExport = (target, module2, copyDefault, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
16
+ __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
17
+ }
18
+ return target;
19
+ };
20
+ var __toESM = (module2, isNodeMode) => {
21
+ return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
22
+ };
23
+ var __toCommonJS = /* @__PURE__ */ ((cache) => {
24
+ return (module2, temp) => {
25
+ return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
26
+ };
27
+ })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
28
+ var xmlFormat_exports = {};
29
+ __export(xmlFormat_exports, {
30
+ xmlFormat: () => xmlFormat
31
+ });
32
+ var React = __toESM(require("react"));
33
+ var import_types = require("../helpers/types");
9
34
  const conditionSql = (condition, value) => {
10
35
  const {
11
36
  EQUAL,
@@ -18,56 +43,52 @@ const conditionSql = (condition, value) => {
18
43
  GREATER_THAN_OR_EQUAL,
19
44
  LESS_THAN_OR_EQUAL,
20
45
  START_WITH
21
- } = types.QB_OPERATOR_TYPES;
22
- if (condition === EQUAL) return "<condition>EQUAL</condition><value>".concat(value, "</value>");
23
- if (condition === NOT_EQUAL) return "<condition>NOT_EQUAL</condition><value>".concat(value, "</value>");
24
- if (condition === GREATER_THAN) return "<condition>GREATER_THAN</condition><value>".concat(value, "</value>");
25
- if (condition === LESS_THAN) return "<condition>LESS_THAN</condition><value>".concat(value, "</value>");
26
- if (condition === CONTAINS) return "<condition>LIKE</condition><value>".concat(value, "</value>");
27
- if (condition === NOT_CONTAINS) return "<condition>NOT_LIKE</condition><value>".concat(value, "</value>");
28
- if (condition === BETWEEN) return "<condition>NOT_LIKE</condition><value><from>".concat(value[0], "</from><to>").concat(value[1], "</to></value>");
29
- if (condition === GREATER_THAN_OR_EQUAL) return "<condition>GREATER_THAN_OR_EQUAL</condition><value>".concat(value, "</value>");
30
- if (condition === LESS_THAN_OR_EQUAL) return "<condition>LESS_THAN_OR_EQUAL</condition><value>".concat(value, "</value>");
31
- if (condition === START_WITH) return "<condition>GREATER_THAN</condition><value>".concat(value, "</value>");
46
+ } = import_types.QB_OPERATOR_TYPES;
47
+ if (condition === EQUAL)
48
+ return `<condition>EQUAL</condition><value>${value}</value>`;
49
+ if (condition === NOT_EQUAL)
50
+ return `<condition>NOT_EQUAL</condition><value>${value}</value>`;
51
+ if (condition === GREATER_THAN)
52
+ return `<condition>GREATER_THAN</condition><value>${value}</value>`;
53
+ if (condition === LESS_THAN)
54
+ return `<condition>LESS_THAN</condition><value>${value}</value>`;
55
+ if (condition === CONTAINS)
56
+ return `<condition>LIKE</condition><value>${value}</value>`;
57
+ if (condition === NOT_CONTAINS)
58
+ return `<condition>NOT_LIKE</condition><value>${value}</value>`;
59
+ if (condition === BETWEEN)
60
+ return `<condition>NOT_LIKE</condition><value><from>${value[0]}</from><to>${value[1]}</to></value>`;
61
+ if (condition === GREATER_THAN_OR_EQUAL)
62
+ return `<condition>GREATER_THAN_OR_EQUAL</condition><value>${value}</value>`;
63
+ if (condition === LESS_THAN_OR_EQUAL)
64
+ return `<condition>LESS_THAN_OR_EQUAL</condition><value>${value}</value>`;
65
+ if (condition === START_WITH)
66
+ return `<condition>GREATER_THAN</condition><value>${value}</value>`;
32
67
  return condition;
33
68
  };
34
-
35
- const renderFilterSQl = filter => {
36
- const {
37
- field,
38
- operator,
39
- value
40
- } = filter.element;
41
- return "<filter><field>".concat(field, "</field>").concat(conditionSql(operator, value) || '', "</filter>");
69
+ const renderFilterSQl = (filter) => {
70
+ const { field, operator, value } = filter.element;
71
+ return `<filter><field>${field}</field>${conditionSql(operator, value) || ""}</filter>`;
42
72
  };
43
-
44
- const xmlFormat = _ref => {
45
- let {
46
- main,
47
- mapGroups,
48
- items
49
- } = _ref;
50
-
73
+ const xmlFormat = ({ main, mapGroups, items }) => {
51
74
  const groupXML = (item, idGroup) => {
52
75
  if (idGroup === main) {
53
- const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
54
- return "<group value=\"".concat(groupCondition, "\">").concat(filterXML(item), "</group>"); // eslint-disable-line
76
+ const groupCondition2 = mapGroups[idGroup].condition === true ? "AND" : "OR";
77
+ return `<group value="${groupCondition2}">${filterXML(item, groupCondition2)}</group>`;
55
78
  }
56
-
57
- const groupCondition = item.element.condition === true ? 'AND' : 'OR';
58
- return "<group value=\"".concat(groupCondition, "\">").concat(filterXML(item.children), "</group>"); // eslint-disable-line
79
+ const groupCondition = item.element.condition === true ? "AND" : "OR";
80
+ return `<group value="${groupCondition}">${filterXML(item.children, groupCondition)}</group>`;
59
81
  };
60
-
61
- const filterXML = filters => {
62
- const filterGroup = filters.map(filter => {
63
- if (filter.element.type === 'filter') return "".concat(renderFilterSQl(filter) || '', " ");
64
- return " ".concat(groupXML(filter), " ");
82
+ const filterXML = (filters) => {
83
+ const filterGroup = filters.map((filter) => {
84
+ if (filter.element.type === "filter")
85
+ return `${renderFilterSQl(filter) || ""} `;
86
+ return ` ${groupXML(filter)} `;
65
87
  });
66
- return filterGroup.join('');
88
+ return filterGroup.join("");
67
89
  };
68
-
69
- const xml = "<xml><query>".concat(groupXML(items, main) || '', "</query></xml>");
90
+ const xml = `<xml><query>${groupXML(items, main) || ""}</query></xml>`;
70
91
  return xml;
71
92
  };
72
-
73
- exports.xmlFormat = xmlFormat;
93
+ module.exports = __toCommonJS(xmlFormat_exports);
94
+ //# sourceMappingURL=xmlFormat.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/components/format/xmlFormat.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["/* eslint-disable complexity */\nimport { QB_OPERATOR_TYPES } from '../helpers/types';\n\nconst conditionSql = (condition, value) => {\n const {\n EQUAL,\n NOT_EQUAL,\n GREATER_THAN,\n LESS_THAN,\n CONTAINS,\n NOT_CONTAINS,\n BETWEEN,\n GREATER_THAN_OR_EQUAL,\n LESS_THAN_OR_EQUAL,\n START_WITH,\n } = QB_OPERATOR_TYPES;\n\n if (condition === EQUAL)\n return `<condition>EQUAL</condition><value>${value}</value>`;\n if (condition === NOT_EQUAL)\n return `<condition>NOT_EQUAL</condition><value>${value}</value>`;\n if (condition === GREATER_THAN)\n return `<condition>GREATER_THAN</condition><value>${value}</value>`;\n if (condition === LESS_THAN)\n return `<condition>LESS_THAN</condition><value>${value}</value>`;\n if (condition === CONTAINS)\n return `<condition>LIKE</condition><value>${value}</value>`;\n if (condition === NOT_CONTAINS)\n return `<condition>NOT_LIKE</condition><value>${value}</value>`;\n if (condition === BETWEEN)\n return `<condition>NOT_LIKE</condition><value><from>${value[0]}</from><to>${value[1]}</to></value>`;\n if (condition === GREATER_THAN_OR_EQUAL)\n return `<condition>GREATER_THAN_OR_EQUAL</condition><value>${value}</value>`;\n if (condition === LESS_THAN_OR_EQUAL)\n return `<condition>LESS_THAN_OR_EQUAL</condition><value>${value}</value>`;\n if (condition === START_WITH)\n return `<condition>GREATER_THAN</condition><value>${value}</value>`;\n\n return condition;\n};\n\nconst renderFilterSQl = (filter) => {\n const { field, operator, value } = filter.element;\n\n return `<filter><field>${field}</field>${\n conditionSql(operator, value) || ''\n }</filter>`;\n};\nexport const xmlFormat = ({ main, mapGroups, items }) => {\n const groupXML = (item, idGroup) => {\n if (idGroup === main) {\n const groupCondition =\n mapGroups[idGroup].condition === true ? 'AND' : 'OR';\n return `<group value=\"${groupCondition}\">${filterXML(\n item,\n groupCondition,\n )}</group>`; // eslint-disable-line\n }\n const groupCondition = item.element.condition === true ? 'AND' : 'OR';\n return `<group value=\"${groupCondition}\">${filterXML(\n item.children,\n groupCondition,\n )}</group>`; // eslint-disable-line\n };\n const filterXML = (filters) => {\n const filterGroup = filters.map((filter) => {\n if (filter.element.type === 'filter')\n return `${renderFilterSQl(filter) || ''} `;\n return ` ${groupXML(filter)} `;\n });\n return filterGroup.join('');\n };\n\n const xml = `<xml><query>${groupXML(items, main) || ''}</query></xml>`;\n\n return xml;\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkC;AAElC,MAAM,eAAe,CAAC,WAAW,UAAU;AACzC,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACE;AAEJ,MAAI,cAAc;AAChB,WAAO,sCAAsC;AAC/C,MAAI,cAAc;AAChB,WAAO,0CAA0C;AACnD,MAAI,cAAc;AAChB,WAAO,6CAA6C;AACtD,MAAI,cAAc;AAChB,WAAO,0CAA0C;AACnD,MAAI,cAAc;AAChB,WAAO,qCAAqC;AAC9C,MAAI,cAAc;AAChB,WAAO,yCAAyC;AAClD,MAAI,cAAc;AAChB,WAAO,+CAA+C,MAAM,gBAAgB,MAAM;AACpF,MAAI,cAAc;AAChB,WAAO,sDAAsD;AAC/D,MAAI,cAAc;AAChB,WAAO,mDAAmD;AAC5D,MAAI,cAAc;AAChB,WAAO,6CAA6C;AAEtD,SAAO;AAAA;AAGT,MAAM,kBAAkB,CAAC,WAAW;AAClC,QAAM,EAAE,OAAO,UAAU,UAAU,OAAO;AAE1C,SAAO,kBAAkB,gBACvB,aAAa,UAAU,UAAU;AAAA;AAG9B,MAAM,YAAY,CAAC,EAAE,MAAM,WAAW,YAAY;AACvD,QAAM,WAAW,CAAC,MAAM,YAAY;AAClC,QAAI,YAAY,MAAM;AACpB,YAAM,kBACJ,UAAU,SAAS,cAAc,OAAO,QAAQ;AAClD,aAAO,iBAAiB,oBAAmB,UACzC,MACA;AAAA;AAGJ,UAAM,iBAAiB,KAAK,QAAQ,cAAc,OAAO,QAAQ;AACjE,WAAO,iBAAiB,mBAAmB,UACzC,KAAK,UACL;AAAA;AAGJ,QAAM,YAAY,CAAC,YAAY;AAC7B,UAAM,cAAc,QAAQ,IAAI,CAAC,WAAW;AAC1C,UAAI,OAAO,QAAQ,SAAS;AAC1B,eAAO,GAAG,gBAAgB,WAAW;AACvC,aAAO,IAAI,SAAS;AAAA;AAEtB,WAAO,YAAY,KAAK;AAAA;AAG1B,QAAM,MAAM,eAAe,SAAS,OAAO,SAAS;AAEpD,SAAO;AAAA;",
6
+ "names": []
7
+ }