@elyra/canvas 13.43.2 → 13.45.0

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 (207) hide show
  1. package/.nvmrc +1 -0
  2. package/dist/ChevronRight-3d8ca494.js +2 -0
  3. package/dist/ChevronRight-3d8ca494.js.map +1 -0
  4. package/dist/ChevronRight-42b5629a.js +2 -0
  5. package/dist/ChevronRight-42b5629a.js.map +1 -0
  6. package/dist/Close-1b1822b0.js +2 -0
  7. package/dist/Close-1b1822b0.js.map +1 -0
  8. package/dist/Close-c707c8f7.js +2 -0
  9. package/dist/Close-c707c8f7.js.map +1 -0
  10. package/dist/Time-3da3c23b.js +2 -0
  11. package/dist/Time-3da3c23b.js.map +1 -0
  12. package/dist/Time-4b4e32e7.js +2 -0
  13. package/dist/Time-4b4e32e7.js.map +1 -0
  14. package/dist/canvas-controller-0c473fba.js +2 -0
  15. package/dist/canvas-controller-0c473fba.js.map +1 -0
  16. package/dist/canvas-controller-bbf16890.js +2 -0
  17. package/dist/canvas-controller-bbf16890.js.map +1 -0
  18. package/dist/common-canvas-048c583e.js +2 -0
  19. package/dist/common-canvas-048c583e.js.map +1 -0
  20. package/dist/common-canvas-4b305040.js +2 -0
  21. package/dist/common-canvas-4b305040.js.map +1 -0
  22. package/dist/common-canvas.cjs +2 -0
  23. package/dist/common-canvas.cjs.map +1 -0
  24. package/dist/common-canvas.js +1 -1
  25. package/dist/common-canvas.js.map +1 -1
  26. package/dist/common-properties-3860224b.js +2 -0
  27. package/dist/common-properties-3860224b.js.map +1 -0
  28. package/dist/common-properties-bb42fec5.js +2 -0
  29. package/dist/common-properties-bb42fec5.js.map +1 -0
  30. package/dist/{context-menu-wrapper-39831e91.js → context-menu-wrapper-0fdb9b4c.js} +2 -2
  31. package/dist/{context-menu-wrapper-39831e91.js.map → context-menu-wrapper-0fdb9b4c.js.map} +1 -1
  32. package/dist/{context-menu-wrapper-9f1b71a8.js → context-menu-wrapper-8933071e.js} +2 -2
  33. package/dist/{context-menu-wrapper-9f1b71a8.js.map → context-menu-wrapper-8933071e.js.map} +1 -1
  34. package/dist/flexible-table-8ce77a9c.js +2 -0
  35. package/dist/flexible-table-8ce77a9c.js.map +1 -0
  36. package/dist/flexible-table-e16bd245.js +2 -0
  37. package/dist/flexible-table-e16bd245.js.map +1 -0
  38. package/dist/index-0ad294bf.js +2 -0
  39. package/dist/index-0ad294bf.js.map +1 -0
  40. package/dist/index-37817c66.js +2 -0
  41. package/dist/index-37817c66.js.map +1 -0
  42. package/dist/keyboard-utils-81dcfd3f.js +2 -0
  43. package/dist/keyboard-utils-81dcfd3f.js.map +1 -0
  44. package/dist/keyboard-utils-d9b6ba48.js +2 -0
  45. package/dist/keyboard-utils-d9b6ba48.js.map +1 -0
  46. package/dist/lib/canvas-controller.cjs +2 -0
  47. package/dist/lib/canvas-controller.cjs.map +1 -0
  48. package/dist/lib/canvas-controller.js +1 -1
  49. package/dist/lib/canvas.cjs +2 -0
  50. package/dist/lib/canvas.cjs.map +1 -0
  51. package/dist/lib/canvas.js +1 -1
  52. package/dist/lib/command-stack.cjs +2 -0
  53. package/dist/lib/command-stack.cjs.map +1 -0
  54. package/dist/lib/command-stack.js +1 -1
  55. package/dist/lib/command-stack.js.map +1 -1
  56. package/dist/lib/context-menu.cjs +2 -0
  57. package/dist/lib/context-menu.cjs.map +1 -0
  58. package/dist/lib/context-menu.js +1 -1
  59. package/dist/lib/properties/clem.cjs +2 -0
  60. package/dist/lib/properties/clem.cjs.map +1 -0
  61. package/dist/lib/properties/clem.js +1 -1
  62. package/dist/lib/properties/clem.js.map +1 -1
  63. package/dist/lib/properties/field-picker.cjs +2 -0
  64. package/dist/lib/properties/field-picker.cjs.map +1 -0
  65. package/dist/lib/properties/field-picker.js +1 -1
  66. package/dist/lib/properties/flexible-table.cjs +2 -0
  67. package/dist/lib/properties/flexible-table.cjs.map +1 -0
  68. package/dist/lib/properties/flexible-table.js +1 -1
  69. package/dist/lib/properties/getPythonHints.cjs +2 -0
  70. package/dist/lib/properties/getPythonHints.cjs.map +1 -0
  71. package/dist/lib/properties/getPythonHints.js +1 -1
  72. package/dist/lib/properties/getPythonHints.js.map +1 -1
  73. package/dist/lib/properties.cjs +2 -0
  74. package/dist/lib/properties.cjs.map +1 -0
  75. package/dist/lib/properties.js +1 -1
  76. package/dist/lib/tooltip.cjs +2 -0
  77. package/dist/lib/tooltip.cjs.map +1 -0
  78. package/dist/lib/tooltip.js +1 -1
  79. package/dist/lib/tooltip.js.map +1 -1
  80. package/dist/styles/common-canvas.min.css +1 -1
  81. package/dist/styles/common-canvas.min.css.map +1 -1
  82. package/eslint.config.mjs +4 -2
  83. package/locales/common-canvas/locales/de.json +0 -1
  84. package/locales/common-canvas/locales/en.json +2 -0
  85. package/locales/common-canvas/locales/eo.json +2 -0
  86. package/locales/common-canvas/locales/es.json +0 -1
  87. package/locales/common-canvas/locales/fr.json +0 -1
  88. package/locales/common-canvas/locales/it.json +0 -1
  89. package/locales/common-canvas/locales/ja.json +0 -1
  90. package/locales/common-canvas/locales/ko.json +0 -1
  91. package/locales/common-canvas/locales/pt-BR.json +0 -1
  92. package/locales/common-canvas/locales/sv.json +0 -1
  93. package/locales/common-canvas/locales/zh-CN.json +0 -1
  94. package/locales/common-canvas/locales/zh-TW.json +0 -1
  95. package/locales/common-properties/locales/de.json +1 -0
  96. package/locales/common-properties/locales/es.json +1 -0
  97. package/locales/common-properties/locales/fr.json +1 -0
  98. package/locales/common-properties/locales/it.json +1 -0
  99. package/locales/common-properties/locales/ja.json +1 -0
  100. package/locales/common-properties/locales/ko.json +1 -0
  101. package/locales/common-properties/locales/pt-BR.json +1 -0
  102. package/locales/common-properties/locales/sv.json +1 -0
  103. package/locales/common-properties/locales/zh-CN.json +1 -0
  104. package/locales/common-properties/locales/zh-TW.json +1 -0
  105. package/locales/palette/locales/de.json +4 -1
  106. package/locales/palette/locales/es.json +4 -1
  107. package/locales/palette/locales/fr.json +4 -1
  108. package/locales/palette/locales/it.json +4 -1
  109. package/locales/palette/locales/ja.json +4 -1
  110. package/locales/palette/locales/ko.json +4 -1
  111. package/locales/palette/locales/pt-BR.json +4 -1
  112. package/locales/palette/locales/sv.json +4 -1
  113. package/locales/palette/locales/zh-CN.json +4 -1
  114. package/locales/palette/locales/zh-TW.json +4 -1
  115. package/locales/toolbar/locales/de.json +1 -5
  116. package/locales/toolbar/locales/es.json +1 -5
  117. package/locales/toolbar/locales/fr.json +1 -5
  118. package/locales/toolbar/locales/it.json +1 -5
  119. package/locales/toolbar/locales/ja.json +1 -5
  120. package/locales/toolbar/locales/ko.json +1 -5
  121. package/locales/toolbar/locales/pt-BR.json +1 -5
  122. package/locales/toolbar/locales/sv.json +1 -5
  123. package/locales/toolbar/locales/zh-CN.json +1 -5
  124. package/locales/toolbar/locales/zh-TW.json +1 -5
  125. package/package.json +14 -7
  126. package/rollup.config.js +17 -10
  127. package/src/common-canvas/canvas-controller.js +8 -0
  128. package/src/common-canvas/cc-toolbar.jsx +46 -1
  129. package/src/common-canvas/svg-canvas-renderer.js +41 -20
  130. package/src/common-canvas/svg-canvas-utils-drag-objects.js +0 -6
  131. package/src/common-canvas/svg-canvas-utils-textarea.js +4 -2
  132. package/src/common-properties/components/table-toolbar/table-toolbar.jsx +12 -7
  133. package/src/common-properties/controls/abstract-table.jsx +5 -3
  134. package/src/common-properties/controls/expression/expression.scss +38 -10
  135. package/src/common-properties/controls/textarea/textarea.jsx +8 -2
  136. package/src/common-properties/controls/textfield/textfield.jsx +7 -1
  137. package/src/common-properties/properties-controller.js +12 -0
  138. package/src/common-properties/properties-main/properties-main.jsx +1 -0
  139. package/src/object-model/api-pipeline.js +4 -0
  140. package/src/object-model/pipeline-in-handler.js +3 -0
  141. package/src/object-model/pipeline-out-handler.js +5 -0
  142. package/src/object-model/redux/reducers/canvasinfo.js +1 -0
  143. package/src/object-model/redux/reducers/links.js +10 -0
  144. package/src/toolbar/toolbar-sub-menu.jsx +1 -1
  145. package/src/toolbar/toolbar.jsx +4 -1
  146. package/stats.html +1 -1
  147. package/types/canvas-controller.d.ts +27 -0
  148. package/types/common-properties.d.ts +7 -0
  149. package/types/index.d.cts +21 -0
  150. package/dist/ChevronRight-362f2dfd.js +0 -2
  151. package/dist/ChevronRight-362f2dfd.js.map +0 -1
  152. package/dist/ChevronRight-f4724ce3.js +0 -2
  153. package/dist/ChevronRight-f4724ce3.js.map +0 -1
  154. package/dist/Close-46e688b8.js +0 -2
  155. package/dist/Close-46e688b8.js.map +0 -1
  156. package/dist/Close-ced84b07.js +0 -2
  157. package/dist/Close-ced84b07.js.map +0 -1
  158. package/dist/Time-b0f9a9cb.js +0 -2
  159. package/dist/Time-b0f9a9cb.js.map +0 -1
  160. package/dist/Time-e622883c.js +0 -2
  161. package/dist/Time-e622883c.js.map +0 -1
  162. package/dist/canvas-controller-129092b6.js +0 -2
  163. package/dist/canvas-controller-129092b6.js.map +0 -1
  164. package/dist/canvas-controller-a0473a44.js +0 -2
  165. package/dist/canvas-controller-a0473a44.js.map +0 -1
  166. package/dist/common-canvas-08eacbb2.js +0 -2
  167. package/dist/common-canvas-08eacbb2.js.map +0 -1
  168. package/dist/common-canvas-dcc39cb1.js +0 -2
  169. package/dist/common-canvas-dcc39cb1.js.map +0 -1
  170. package/dist/common-canvas.es.js +0 -2
  171. package/dist/common-canvas.es.js.map +0 -1
  172. package/dist/common-properties-36906b79.js +0 -2
  173. package/dist/common-properties-36906b79.js.map +0 -1
  174. package/dist/common-properties-5695fc39.js +0 -2
  175. package/dist/common-properties-5695fc39.js.map +0 -1
  176. package/dist/flexible-table-d1d15df2.js +0 -2
  177. package/dist/flexible-table-d1d15df2.js.map +0 -1
  178. package/dist/flexible-table-d624ee4e.js +0 -2
  179. package/dist/flexible-table-d624ee4e.js.map +0 -1
  180. package/dist/index-50b29b6d.js +0 -2
  181. package/dist/index-50b29b6d.js.map +0 -1
  182. package/dist/index-5383b802.js +0 -2
  183. package/dist/index-5383b802.js.map +0 -1
  184. package/dist/keyboard-utils-a23c5d52.js +0 -11
  185. package/dist/keyboard-utils-a23c5d52.js.map +0 -1
  186. package/dist/keyboard-utils-b5a20c84.js +0 -11
  187. package/dist/keyboard-utils-b5a20c84.js.map +0 -1
  188. package/dist/lib/canvas-controller.es.js +0 -2
  189. package/dist/lib/canvas-controller.es.js.map +0 -1
  190. package/dist/lib/canvas.es.js +0 -2
  191. package/dist/lib/canvas.es.js.map +0 -1
  192. package/dist/lib/command-stack.es.js +0 -2
  193. package/dist/lib/command-stack.es.js.map +0 -1
  194. package/dist/lib/context-menu.es.js +0 -2
  195. package/dist/lib/context-menu.es.js.map +0 -1
  196. package/dist/lib/properties/clem.es.js +0 -2
  197. package/dist/lib/properties/clem.es.js.map +0 -1
  198. package/dist/lib/properties/field-picker.es.js +0 -2
  199. package/dist/lib/properties/field-picker.es.js.map +0 -1
  200. package/dist/lib/properties/flexible-table.es.js +0 -2
  201. package/dist/lib/properties/flexible-table.es.js.map +0 -1
  202. package/dist/lib/properties/getPythonHints.es.js +0 -2
  203. package/dist/lib/properties/getPythonHints.es.js.map +0 -1
  204. package/dist/lib/properties.es.js +0 -2
  205. package/dist/lib/properties.es.js.map +0 -1
  206. package/dist/lib/tooltip.es.js +0 -2
  207. package/dist/lib/tooltip.es.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyboard-utils-b5a20c84.js","sources":["../node_modules/@carbon/icons-react/lib/chunk-CsKB0u1v.js","../node_modules/@carbon/icon-helpers/es/index.js","../node_modules/@carbon/icons-react/lib/Icon.js","../node_modules/@carbon/icons-react/lib/iconPropTypes-U9gLABJo.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/common-canvas/keyboard-utils.js"],"sourcesContent":["/**\n * Copyright IBM Corp. 2016, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\n//#region \\0rolldown/runtime.js\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\t\tkey = keys[i];\n\t\t\tif (!__hasOwnProp.call(to, key) && key !== except) {\n\t\t\t\t__defProp(to, key, {\n\t\t\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\tvalue: mod,\n\tenumerable: true\n}) : target, mod));\n\n//#endregion\n\nObject.defineProperty(exports, '__toESM', {\n enumerable: true,\n get: function () {\n return __toESM;\n }\n});","//#region src/getAttributes.ts\n/**\n* Copyright IBM Corp. 2018, 2026\n*\n* This source code is licensed under the Apache-2.0 license found in the\n* LICENSE file in the root directory of this source tree.\n*/\nconst defaultAttributes = {\n\tfocusable: \"false\",\n\tpreserveAspectRatio: \"xMidYMid meet\"\n};\n/**\n* Get supplementary HTML attributes for a given <svg> element based on existing\n* attributes.\n*/\nfunction getAttributes({ width, height, viewBox = `0 0 ${width} ${height}`, ...attributes } = {}) {\n\tconst { tabindex, ...rest } = attributes;\n\tconst iconAttributes = {\n\t\t...defaultAttributes,\n\t\t...rest,\n\t\twidth,\n\t\theight,\n\t\tviewBox\n\t};\n\tif (iconAttributes[\"aria-label\"] || iconAttributes[\"aria-labelledby\"]) {\n\t\ticonAttributes.role = \"img\";\n\t\tif (tabindex !== void 0 && tabindex !== null) {\n\t\t\ticonAttributes.focusable = \"true\";\n\t\t\ticonAttributes.tabindex = tabindex;\n\t\t}\n\t} else iconAttributes[\"aria-hidden\"] = true;\n\treturn iconAttributes;\n}\n\n//#endregion\n//#region src/toString.ts\n/**\n* Copyright IBM Corp. 2018, 2024\n*\n* This source code is licensed under the Apache-2.0 license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n/**\n* Convert an icon descriptor to a String\n*/\nfunction toString(descriptor) {\n\tconst { elem = \"svg\", attrs = {}, content = [] } = descriptor;\n\tconst children = content.map(toString).join(\"\");\n\tif (elem !== \"svg\") return `<${elem} ${formatAttributes(attrs)}>${children}</${elem}>`;\n\treturn `<${elem} ${formatAttributes(getAttributes(attrs))}>${children}</${elem}>`;\n}\nfunction formatAttributes(attrs) {\n\treturn Object.keys(attrs).reduce((acc, key, index) => {\n\t\tconst attribute = `${key}=\"${attrs[key]}\"`;\n\t\tif (index === 0) return attribute;\n\t\treturn acc + \" \" + attribute;\n\t}, \"\");\n}\n\n//#endregion\n//#region src/toSVG.ts\n/**\n* Copyright IBM Corp. 2018, 2024\n*\n* This source code is licensed under the Apache-2.0 license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n/**\n* Convert an icon descriptor to a DOM node.\n*/\nfunction toSVG(descriptor) {\n\tconst { elem = \"svg\", attrs = {}, content = [] } = descriptor;\n\tconst node = document.createElementNS(\"http://www.w3.org/2000/svg\", elem);\n\tconst attributes = elem !== \"svg\" ? attrs : getAttributes(attrs);\n\tObject.keys(attributes).forEach((key) => {\n\t\tnode.setAttribute(key, attrs[key]);\n\t});\n\tfor (let i = 0; i < content.length; i++) node.appendChild(toSVG(content[i]));\n\treturn node;\n}\n\n//#endregion\n//#region src/index.ts\n/**\n* Copyright IBM Corp. 2018, 2023\n*\n* This source code is licensed under the Apache-2.0 license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\n//#endregion\nexport { defaultAttributes, formatAttributes, getAttributes, toSVG, toString };","/**\n * Copyright IBM Corp. 2016, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nconst require_chunk = require('./chunk-CsKB0u1v.js');\nlet _carbon_icon_helpers = require(\"@carbon/icon-helpers\");\nlet prop_types = require(\"prop-types\");\nprop_types = require_chunk.__toESM(prop_types);\nlet react = require(\"react\");\nreact = require_chunk.__toESM(react);\n\n//#region virtual:./Icon.tsx\n/**\n* Copyright IBM Corp. 2019, 2026\n*\n* This source code is licensed under the Apache-2.0 license found in the\n* LICENSE file in the root directory of this source tree.\n*/\nconst Icon = (0, react.forwardRef)(function Icon({ className, children, tabIndex, xmlns = \"http://www.w3.org/2000/svg\", preserveAspectRatio = \"xMidYMid meet\", ...rest }, ref) {\n\tconst { tabindex, ...attrs } = (0, _carbon_icon_helpers.getAttributes)({\n\t\t...rest,\n\t\ttabindex: tabIndex\n\t});\n\tconst props = attrs;\n\tif (className) props.className = className;\n\tif (tabindex !== void 0 && tabindex !== null) if (typeof tabindex === \"number\") props.tabIndex = tabindex;\n\telse props.tabIndex = Number(tabIndex);\n\tif (ref) props.ref = ref;\n\tif (xmlns) props.xmlns = xmlns;\n\tif (preserveAspectRatio) props.preserveAspectRatio = preserveAspectRatio;\n\treturn react.default.createElement(\"svg\", props, children);\n});\nIcon.displayName = \"Icon\";\nIcon.propTypes = {\n\t\"aria-hidden\": prop_types.default.oneOfType([prop_types.default.bool, prop_types.default.oneOf([\"true\", \"false\"])]),\n\t\"aria-label\": prop_types.default.string,\n\t\"aria-labelledby\": prop_types.default.string,\n\tchildren: prop_types.default.node,\n\tclassName: prop_types.default.string,\n\theight: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),\n\tpreserveAspectRatio: prop_types.default.string,\n\ttabIndex: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),\n\tviewBox: prop_types.default.string,\n\twidth: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),\n\txmlns: prop_types.default.string\n};\n\n//#endregion\nmodule.exports = Icon;","/**\n * Copyright IBM Corp. 2016, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Code generated by @carbon/icon-build-helpers. DO NOT EDIT.\n */\nconst require_chunk = require('./chunk-CsKB0u1v.js');\nlet prop_types = require(\"prop-types\");\nprop_types = require_chunk.__toESM(prop_types);\n\n//#region virtual:./iconPropTypes.js\nconst iconPropTypes = { size: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]) };\n\n//#endregion\nObject.defineProperty(exports, 'iconPropTypes', {\n enumerable: true,\n get: function () {\n return iconPropTypes;\n }\n});","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n {\n if (hasOwnProperty.call(props, 'key')) {\n var componentName = getComponentNameFromType(type);\n var keys = Object.keys(props).filter(function (k) {\n return k !== 'key';\n });\n var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n error('A props object containing a \"key\" prop is being spread into JSX:\\n' + ' let props = %s;\\n' + ' <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + ' let props = %s;\\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n didWarnAboutKeySpread[componentName + beforeExample] = true;\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/*\n * Copyright 2024-2026 Elyra Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport CanvasUtils from \"./common-canvas-utils.js\";\n\nconst RETURN_KEY = \"Enter\"; // Return key on the Mac\nconst LEFT_ARROW_KEY = \"ArrowLeft\";\nconst RIGHT_ARROW_KEY = \"ArrowRight\";\nconst UP_ARROW_KEY = \"ArrowUp\";\nconst DOWN_ARROW_KEY = \"ArrowDown\";\nconst ESC_KEY = \"Escape\";\nconst TAB_KEY = \"Tab\";\nconst BACKSPACE_KEY = \"Backspace\";\nconst DELETE_KEY = \"Delete\";\nconst SPACE_KEY = \"Space\";\n\nconst NO_BREAK_SPACE_CHAR_KEY = \"\\u00A0\"; // Can be returned in short cuts for screen readers\nconst SPACE_CHAR_KEY = \" \";\nconst COMMA_CHAR_KEY = \",\";\n\n// WARNING when adding a new letter constant below: If the shortcut requires the Meta\n// key AND Shift key to be pressed, on Windows, if the user presses 'Ctrl' as the Meta\n// key, the Shift will cause an upper case letter to be returned. See code below where\n// toLowerCase() is called before comparison.\nconst A_KEY = \"a\";\nconst B_KEY = \"b\";\nconst C_KEY = \"c\";\nconst E_KEY = \"e\";\nconst I_KEY = \"i\";\nconst K_KEY = \"k\";\nconst L_KEY = \"l\";\nconst V_KEY = \"v\";\nconst X_KEY = \"x\";\nconst Y_KEY = \"y\";\nconst Z_KEY = \"z\";\n\nconst F10_KEY = \"F10\";\n\nconst ONE_KEY = \"1\";\nconst TWO_KEY = \"2\";\nconst SEVEN_KEY = \"7\";\nconst EIGHT_KEY = \"8\";\nconst NINE_KEY = \"9\";\nconst ZERO_KEY = \"0\";\n\n\nexport default class KeyboardUtils {\n\n\t/* ----------------------------------------- */\n\t/* Canvas navigation */\n\t/* ----------------------------------------- */\n\n\tstatic spaceKey(evt) {\n\t\treturn this.isSpaceKey(evt);\n\t}\n\n\tstatic toggleLogging(evt) {\n\t\t// Use code here instead of key because, using the alt key changes the\n\t\t// character returned in code property from p to π.\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.altKey && evt.code === \"KeyP\";\n\t}\n\n\tstatic selectAll(evt) {\n\t\treturn this.isMetaKey(evt) && !evt.shiftKey && evt.key === A_KEY;\n\t}\n\n\tstatic deselectAll(evt) {\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.key === A_KEY;\n\t}\n\n\tstatic delete(evt) {\n\t\treturn (evt.key === BACKSPACE_KEY || evt.key === DELETE_KEY);\n\t}\n\n\tstatic undo(evt) {\n\t\treturn this.isMetaKey(evt) && !evt.shiftKey && evt.key === Z_KEY;\n\t}\n\n\tstatic redo(evt) {\n\t\treturn this.isMetaKey(evt) && ((evt.shiftKey && evt.key === Z_KEY) || evt.key === Y_KEY);\n\t}\n\n\tstatic copyToClipboard(evt) {\n\t\treturn this.isMetaKey(evt) && evt.key === C_KEY;\n\t}\n\n\tstatic cutToClipboard(evt) {\n\t\treturn this.isMetaKey(evt) && evt.key === X_KEY;\n\t}\n\n\tstatic pasteFromClipboard(evt) {\n\t\treturn this.isMetaKey(evt) && evt.key === V_KEY;\n\t}\n\n\tstatic zoomIn(evt) {\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.key === EIGHT_KEY;\n\t}\n\n\tstatic zoomOut(evt) {\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.key === NINE_KEY;\n\t}\n\n\tstatic zoomToFit(evt) {\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.key === ZERO_KEY;\n\t}\n\n\tstatic panLeft(evt) {\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.key === LEFT_ARROW_KEY;\n\t}\n\n\tstatic panRight(evt) {\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic panUp(evt) {\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.key === UP_ARROW_KEY;\n\t}\n\n\tstatic panDown(evt) {\n\t\treturn this.isMetaKey(evt) && evt.shiftKey && evt.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic nextGroup(evt) {\n\t\treturn !evt.shiftKey && evt.key === TAB_KEY;\n\t}\n\n\tstatic previousGroup(evt) {\n\t\treturn evt.shiftKey && evt.key === TAB_KEY;\n\t}\n\n\t/* ----------------------------------------- */\n\t/* Canvas objects navigation */\n\t/* ----------------------------------------- */\n\n\tstatic nextObjectInGroup(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic previousObjectInGroup(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === LEFT_ARROW_KEY;\n\t}\n\n\tstatic selectObject(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === RETURN_KEY;\n\t}\n\n\tstatic selectObjectAugment(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === RETURN_KEY;\n\t}\n\n\tstatic selectObjectRange(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key === RETURN_KEY;\n\t}\n\n\tstatic nextSiblingLink(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic previousSiblingLink(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === UP_ARROW_KEY;\n\t}\n\n\tstatic focusSubObject(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.altKey && d3Event.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic nextSubObject(d3Event) {\n\t\treturn (!d3Event.shiftKey && d3Event.key === TAB_KEY) ||\n\t\t\t(!this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.altKey && d3Event.key === DOWN_ARROW_KEY);\n\t}\n\n\tstatic previousSubObject(d3Event) {\n\t\treturn (d3Event.shiftKey && d3Event.key === TAB_KEY) ||\n\t\t(!this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.altKey && d3Event.key === UP_ARROW_KEY);\n\t}\n\n\tstatic cancelFocusOnSubObject(d3Event) {\n\t\treturn d3Event.key === ESC_KEY;\n\t}\n\n\tstatic clickSubObject(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && !d3Event.shiftKey && (d3Event.key === RETURN_KEY || this.isSpaceKey(d3Event));\n\t}\n\n\t// Shortcut to display either a context menu or context\n\t// toolbar, depending on which is enabled, for the\n\t// canvas or objects on the canvas.\n\tstatic displayContextOptions(evt) {\n\t\treturn (this.isMetaKey(evt) && evt.key === COMMA_CHAR_KEY) ||\n\t\t\t(evt.shiftKey && evt.key === F10_KEY);\n\t}\n\n\tstatic moveObjectLeft(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && !d3Event.altKey && d3Event.key === LEFT_ARROW_KEY;\n\t}\n\n\tstatic moveObjectRight(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && !d3Event.altKey && d3Event.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic moveObjectUp(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && !d3Event.altKey && d3Event.key === UP_ARROW_KEY;\n\t}\n\n\tstatic moveObjectDown(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && !d3Event.altKey && d3Event.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic sizeObjectLeft(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key === LEFT_ARROW_KEY;\n\t}\n\n\tstatic sizeObjectRight(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic sizeObjectUp(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key === UP_ARROW_KEY;\n\t}\n\n\tstatic sizeObjectDown(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic moveLinkHandleLeft(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === LEFT_ARROW_KEY;\n\t}\n\n\tstatic moveLinkHandleRight(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic moveLinkHandleUp(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === UP_ARROW_KEY;\n\t}\n\n\tstatic moveLinkHandleDown(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === DOWN_ARROW_KEY;\n\t}\n\n\t/* Link creation */\n\n\tstatic createLink(d3Event) {\n\t\t// When meta key is 'Ctrl' on Windows, shift key will cause 'key' property to contain uppercase 'L' - so lowercase it!\n\t\treturn this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key?.toLowerCase() === L_KEY;\n\t}\n\n\tstatic addConnectFromStatus(d3Event) {\n\t\t// When meta key is 'Ctrl' on Windows, shift key will cause 'key' property to contain uppercase 'L' - so lowercase it!\n\t\treturn this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key?.toLowerCase() === L_KEY;\n\t}\n\n\tstatic createLinkFromConnectFrom(d3Event) {\n\t\t// When meta key is 'Ctrl' on Windows, shift key will cause 'key' property to contain uppercase 'L' - so lowercase it!\n\t\treturn this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key?.toLowerCase() === L_KEY;\n\t}\n\n\t/* Comment display */\n\n\tstatic scrollTextUp(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.altKey && d3Event.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic scrollTextDown(d3Event) {\n\t\treturn !this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.altKey && d3Event.key === UP_ARROW_KEY;\n\t}\n\n\t/* ----------------------------------------- */\n\t/* Comment Text Entry */\n\t/* ----------------------------------------- */\n\n\tstatic cancelTextEntry(d3Event) {\n\t\treturn d3Event.key === ESC_KEY;\n\t}\n\n\tstatic completeTextEntry(d3Event) {\n\t\treturn d3Event.shiftKey && d3Event.key === RETURN_KEY;\n\t}\n\n\tstatic returnToTextEditing(evt) {\n\t\treturn !evt.shiftKey && (evt.key === TAB_KEY || evt.key === ESC_KEY);\n\t}\n\n\t// During text entry this might either complete the text entry OR\n\t// add a new line.\n\tstatic returnCommand(d3Event) {\n\t\treturn d3Event.key === RETURN_KEY;\n\t}\n\n\t/* Markdown text entry shortcuts */\n\n\tstatic boldCommand(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && d3Event.key === B_KEY;\n\t}\n\n\tstatic italicsCommand(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === I_KEY;\n\t}\n\n\tstatic strikethroughCommand(d3Event) {\n\t\t// When meta key is 'Ctrl' on Windows, shift key will cause 'key' property to contain uppercase 'X' - so lowercase it!\n\t\treturn this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key?.toLowerCase() === X_KEY;\n\t}\n\n\tstatic numberedListCommand(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key === SEVEN_KEY;\n\t}\n\n\tstatic bulletedListCommand(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key === EIGHT_KEY;\n\t}\n\n\tstatic codeCommand(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && d3Event.key === E_KEY;\n\t}\n\n\tstatic linkCommand(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && d3Event.key === K_KEY;\n\t}\n\n\tstatic quoteCommand(d3Event) {\n\t\t// When meta key is 'Ctrl' on Windows, shift key will cause 'key' property to contain uppercase 'I' - so lowercase it!\n\t\treturn this.isMetaKey(d3Event) && d3Event.shiftKey && d3Event.key?.toLowerCase() === I_KEY;\n\t}\n\n\tstatic incHashesCommand(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === ONE_KEY;\n\t}\n\n\tstatic decHashesCommand(d3Event) {\n\t\treturn this.isMetaKey(d3Event) && !d3Event.shiftKey && d3Event.key === TWO_KEY;\n\t}\n\n\t/* ----------------------------------------- */\n\t/* Toolbar */\n\t/* ----------------------------------------- */\n\n\tstatic openSubArea(evt) {\n\t\treturn evt.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic closeSubArea(evt) {\n\t\treturn evt.key === ESC_KEY;\n\t}\n\n\tstatic openSubAreaFromMenu(evt) {\n\t\treturn evt.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic closeSubAreaToMenu(evt) {\n\t\treturn evt.key === LEFT_ARROW_KEY;\n\t}\n\n\tstatic setFocusOnNextToolbarBtn(evt) {\n\t\treturn evt.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic setFocusOnPreviousToolbarBtn(evt) {\n\t\treturn evt.key === LEFT_ARROW_KEY;\n\t}\n\n\tstatic setFocusOnNextMenuItem(evt) {\n\t\treturn evt.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic setFocusOnPreviousMenuItem(evt) {\n\t\treturn evt.key === UP_ARROW_KEY;\n\t}\n\n\t/* ----------------------------------------- */\n\t/* Color Picker */\n\t/* ----------------------------------------- */\n\n\tstatic nextColor(evt) {\n\t\treturn evt.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic previousColor(evt) {\n\t\treturn evt.key === LEFT_ARROW_KEY;\n\t}\n\n\tstatic aboveColor(evt) {\n\t\treturn evt.key === UP_ARROW_KEY;\n\t}\n\n\tstatic belowColor(evt) {\n\t\treturn evt.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic selectColor(evt) {\n\t\treturn evt.key === RETURN_KEY || this.isSpaceKey(evt);\n\t}\n\n\tstatic tabKey(evt) {\n\t\treturn evt.key === TAB_KEY;\n\t}\n\n\t/* ----------------------------------------- */\n\t/* Notification panel key functions */\n\t/* ----------------------------------------- */\n\n\tstatic activateButton(evt) {\n\t\treturn evt.key === RETURN_KEY || this.isSpaceKey(evt);\n\t}\n\n\tstatic nextSection(evt) {\n\t\treturn !evt.shiftKey && evt.key === TAB_KEY;\n\t}\n\n\tstatic previousSection(evt) {\n\t\treturn evt.shiftKey && evt.key === TAB_KEY;\n\t}\n\n\t/* ----------------------------------------- */\n\t/* Context Menu key functions */\n\t/* ----------------------------------------- */\n\n\tstatic nextContextMenuOption(evt) {\n\t\treturn evt.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic previousContextMenuOption(evt) {\n\t\treturn evt.key === UP_ARROW_KEY;\n\t}\n\n\tstatic openContextMenuSubMenu(evt) {\n\t\treturn evt.key === RIGHT_ARROW_KEY;\n\t}\n\n\tstatic closeContextMenuSubMenu(evt) {\n\t\treturn evt.key === LEFT_ARROW_KEY || evt.key === ESC_KEY;\n\t}\n\n\tstatic activateContextMenuOption(evt) {\n\t\treturn evt.key === RETURN_KEY || this.isSpaceKey(evt);\n\t}\n\n\tstatic closeContextMenu(evt) {\n\t\treturn evt.key === ESC_KEY;\n\t}\n\n\t/* ----------------------------------------- */\n\t/* Palette key functions */\n\t/* ----------------------------------------- */\n\n\tstatic openCategory(evt) {\n\t\treturn evt.key === RETURN_KEY || this.isSpaceKey(evt);\n\t}\n\n\tstatic fromCategoryToFirstNode(evt) {\n\t\treturn !this.isMetaKey(evt) && !evt.shiftKey && evt.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic nextNodeInCategory(evt) {\n\t\treturn !this.isMetaKey(evt) && !evt.shiftKey && evt.key === DOWN_ARROW_KEY;\n\t}\n\n\tstatic previousNodeInCategory(evt) {\n\t\treturn !this.isMetaKey(evt) && !evt.shiftKey && evt.key === UP_ARROW_KEY;\n\t}\n\n\tstatic createAutoNode(evt) {\n\t\treturn !evt.shiftKey && (this.isSpaceKey(evt) || evt.key === RETURN_KEY);\n\t}\n\n\tstatic createAutoNodeNoLink(evt) {\n\t\treturn evt.shiftKey && (this.isSpaceKey(evt) || evt.key === RETURN_KEY);\n\t}\n\n\tstatic tabFocusOutOfPalette(evt) {\n\t\treturn !evt.shiftKey && evt.key === TAB_KEY;\n\t}\n\n\tstatic shiftTabFocusOutOfPalette(evt) {\n\t\treturn evt.shiftKey && evt.key === TAB_KEY;\n\t}\n\n\t/* ----------------------------------------- */\n\t/* Utility functions */\n\t/* ----------------------------------------- */\n\n\t// key property can sometimes be set to \"Space\" (SPACE_KEY) in tests.\n\tstatic isSpaceKey(evt) {\n\t\treturn evt.key === SPACE_CHAR_KEY || evt.key === NO_BREAK_SPACE_CHAR_KEY || evt.key === SPACE_KEY;\n\t}\n\n\t// Returns true if either the 'Command Key' on Mac or\n\t// 'Control Key' or 'Windows key' on Windows is pressed.\n\t// evt can be either a regular event object OR the\n\t// d3event object provided by d3.\n\tstatic isMetaKey(evt) {\n\t\tif (CanvasUtils.isMacintosh()) {\n\t\t\treturn evt.metaKey;\n\t\t}\n\t\treturn evt.ctrlKey || evt.metaKey;\n\t}\n}\n"],"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__toESM","mod","isNodeMode","target","to","from","except","desc","key","keys","i","n","length","call","get","k","bind","enumerable","__copyProps","__esModule","value","exports","defaultAttributes","focusable","preserveAspectRatio","getAttributes","width","height","viewBox","attributes","tabindex","rest","iconAttributes","role","formatAttributes","attrs","reduce","acc","index","attribute","toSVG","descriptor","elem","content","node","document","createElementNS","forEach","setAttribute","appendChild","toString","children","map","join","require_chunk","require$$0","_carbon_icon_helpers","prop_types","require$$2","react","require$$3","Icon","forwardRef","className","tabIndex","xmlns","ref","props","Number","default","createElement","displayName","propTypes","oneOfType","bool","oneOf","string","number","Icon_1","require$$1","iconPropTypes","size","f","Symbol","for","l","m","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","__self","__source","q","c","a","g","b","d","e","h","defaultProps","$$typeof","type","_owner","current","reactJsxRuntime_production_min","jsx","jsxs","process","env","NODE_ENV","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","iterator","ReactSharedInternals","error","format","_len2","arguments","args","Array","_key2","level","ReactDebugCurrentFrame","stack","getStackAddendum","concat","argsWithFormat","item","String","unshift","Function","apply","console","printWarning","REACT_MODULE_REFERENCE","getContextName","getComponentNameFromType","tag","name","_context","outerType","innerType","wrapperName","functionName","getWrappedName","render","outerName","lazyComponent","payload","_payload","init","_init","x","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","assign","disabledDepth","disabledLog","__reactDisabledLog","prefix","ReactCurrentDispatcher","describeBuiltInComponentFrame","source","ownerFn","undefined","Error","match","trim","componentFrameCache","reentry","PossiblyWeakMap","WeakMap","Map","describeNativeComponentFrame","fn","construct","control","frame","previousDispatcher","previousPrepareStackTrace","prepareStackTrace","log","info","warn","group","groupCollapsed","groupEnd","configurable","writable","defineProperties","disableLogs","Fake","set","Reflect","sample","sampleLines","split","controlLines","s","_frame","replace","includes","reenableLogs","syntheticFrame","describeUnknownElementTypeFrameInDEV","isReactComponent","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","_source","setExtraStackFrame","isArrayImpl","isArray","testStringCoercion","checkKeyStringCoercion","willCoercionThrow","toStringTag","constructor","typeName","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","RESERVED_PROPS","jsxDEV","config","maybeKey","self","propName","getter","isReactWarning","hasValidKey","hasValidRef","stateNode","componentName","warnIfStringRefCannotBeAutoConverted","warnAboutAccessingKey","defineKeyPropWarningGetter","warnAboutAccessingRef","defineRefPropWarningGetter","_store","freeze","ReactElement","propTypesMisspellWarningShown","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","isValidElement","object","getDeclarationErrorAddendum","ownerHasKeyUseWarning","validateExplicitKey","parentType","validated","currentComponentErrorInfo","parentName","getCurrentComponentErrorInfo","childOwner","validateChildKeys","child","iteratorFn","maybeIterable","maybeIterator","getIteratorFn","entries","step","next","done","validatePropTypes","typeSpecs","values","location","has","typeSpecName","error$1","err","ex","message","checkPropTypes","PropTypes","getDefaultProps","isReactClassApproved","didWarnAboutKeySpread","jsxWithValidation","isStaticChildren","validType","getModuleId","isValidElementType","typeString","sourceInfo","fileName","lineNumber","getSourceInfoErrorAddendum","filter","beforeExample","fragment","validateFragmentProps","reactJsxRuntime_development","Fragment","jsxRuntimeModule","RETURN_KEY","LEFT_ARROW_KEY","RIGHT_ARROW_KEY","UP_ARROW_KEY","DOWN_ARROW_KEY","ESC_KEY","TAB_KEY","KeyboardUtils","_createClass","_classCallCheck","evt","this","isSpaceKey","isMetaKey","shiftKey","altKey","code","d3Event","_d3Event$key","toLowerCase","_d3Event$key2","_d3Event$key3","_d3Event$key4","_d3Event$key5","CanvasUtils","isMacintosh","metaKey","ctrlKey"],"mappings":"8PASA,IAAIA,EAAWC,OAAOC,OAClBC,EAAYF,OAAOG,eACnBC,EAAmBJ,OAAOK,yBAC1BC,EAAoBN,OAAOO,oBAC3BC,EAAeR,OAAOS,eACtBC,EAAeV,OAAOW,UAAUC,eAehCC,EAAU,CAACC,EAAKC,EAAYC,KAAYA,EAAgB,MAAPF,EAAcf,EAASS,EAAaM,IAAQ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,EAAIjU,MAAQuT,GAAcW,KAAKC,WAAWF,EAClD,GAAC,CAAAjU,IAAA,0BAAAY,MAED,SAA+BqT,GAC9B,OAAQC,KAAKE,UAAUH,KAASA,EAAII,UAAYJ,EAAIjU,MAAQ2T,CAC7D,GAAC,CAAA3T,IAAA,qBAAAY,MAED,SAA0BqT,GACzB,OAAQC,KAAKE,UAAUH,KAASA,EAAII,UAAYJ,EAAIjU,MAAQ2T,CAC7D,GAAC,CAAA3T,IAAA,yBAAAY,MAED,SAA8BqT,GAC7B,OAAQC,KAAKE,UAAUH,KAASA,EAAII,UAAYJ,EAAIjU,MAAQ0T,CAC7D,GAAC,CAAA1T,IAAA,iBAAAY,MAED,SAAsBqT,GACrB,OAAQA,EAAII,WAAaH,KAAKC,WAAWF,IAAQA,EAAIjU,MAAQuT,EAC9D,GAAC,CAAAvT,IAAA,uBAAAY,MAED,SAA4BqT,GAC3B,OAAOA,EAAII,WAAaH,KAAKC,WAAWF,IAAQA,EAAIjU,MAAQuT,EAC7D,GAAC,CAAAvT,IAAA,uBAAAY,MAED,SAA4BqT,GAC3B,OAAQA,EAAII,UAAYJ,EAAIjU,MAAQ6T,CACrC,GAAC,CAAA7T,IAAA,4BAAAY,MAED,SAAiCqT,GAChC,OAAOA,EAAII,UAAYJ,EAAIjU,MAAQ6T,CACpC,GAMA,CAAA7T,IAAA,aAAAY,MACA,SAAkBqT,GACjB,MAldqB,MAkddA,EAAIjU,KAndmB,MAmdOiU,EAAIjU,KArdzB,UAqd4DiU,EAAIjU,GACjF,GAKA,CAAAA,IAAA,YAAAY,MACA,SAAiBqT,GAChB,OAAIc,EAAAA,YAAYC,cACRf,EAAIgB,QAELhB,EAAIiB,SAAWjB,EAAIgB,OAC3B,IAAC,CAjcgC"}
@@ -1,2 +0,0 @@
1
- import"../createClass-a140e270.js";import"../en-dceabf36.js";import"../isArrayLikeObject-8496ff7c.js";import"../common-canvas-utils-7ef1d091.js";export{C as default}from"../canvas-controller-a0473a44.js";import"./command-stack.es.js";import"../canvas-logger-3584cb6d.js";import"../defineProperty-f3298a15.js";import"../inherits-860188e5.js";import"../datarecord-metadata-v3-schema-73031f6a.js";import"uuid";import"redux";import"jsonschema";import"@elyra/pipeline-schemas";import"immutable";
2
- //# sourceMappingURL=canvas-controller.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canvas-controller.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export{c as CommonCanvas}from"../common-canvas-08eacbb2.js";export{C as CanvasController}from"../canvas-controller-a0473a44.js";import"../createClass-a140e270.js";import"../inherits-860188e5.js";import"react";import"react-redux";import"react-intl";import"../Close-ced84b07.js";import"../common-canvas-utils-7ef1d091.js";import"../toInteger-ea444724.js";import"../isArrayLikeObject-8496ff7c.js";import"../datarecord-metadata-v3-schema-73031f6a.js";import"../en-dceabf36.js";import"../keyboard-utils-a23c5d52.js";import"prop-types";import"./tooltip.es.js";import"react-portal";import"@carbon/react";import"uuid";import"react-inlinesvg";import"../Time-e622883c.js";import"../ChevronRight-f4724ce3.js";import"../canvas-logger-3584cb6d.js";import"../context-menu-wrapper-9f1b71a8.js";import"../defineProperty-f3298a15.js";import"markdown-it";import"react-dom";import"./command-stack.es.js";import"immutable";import"redux";import"jsonschema";import"@elyra/pipeline-schemas";
2
- //# sourceMappingURL=canvas.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"canvas.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as n,a as e}from"../createClass-a140e270.js";import{Stack as o,Record as t,List as s}from"immutable";var d=function(){return n(function n(){e(this,n);var d=new t({undoCmnds:new s,redoCmnds:new o});this.rec=d()},[{key:"do",value:function(n){this.rec=this.rec.merge({undoCmnds:this.rec.undoCmnds.push(n),redoCmnds:new o}),this.rec.undoCmnds.size>100&&(this.rec=this.rec.set("undoCmnds",this.rec.undoCmnds.shift())),n.do()}},{key:"undo",value:function(){if(this.canUndo()){var n=this.getPrevious();this.rec=this.rec.merge({undoCmnds:this.rec.undoCmnds.pop(),redoCmnds:this.rec.redoCmnds.push(n)}),n.undo()}}},{key:"redo",value:function(){if(this.canRedo()){var n=this.getNext();this.rec=this.rec.merge({undoCmnds:this.rec.undoCmnds.push(n),redoCmnds:this.rec.redoCmnds.pop()}),n.redo()}}},{key:"canUndo",value:function(){return!this.rec.undoCmnds.isEmpty()}},{key:"canRedo",value:function(){return!this.rec.redoCmnds.isEmpty()}},{key:"getPrevious",value:function(){return this.rec.undoCmnds.last()}},{key:"getNext",value:function(){return this.rec.redoCmnds.first()}},{key:"getUndoCommands",value:function(){return this.rec.undoCmnds}},{key:"getRedoCommands",value:function(){return this.rec.redoCmnds}}])}(),r=function(){return n(function n(){e(this,n),this.commands=new d},[{key:"do",value:function(n){this.commands.do(n)}},{key:"undo",value:function(){this.commands.undo()}},{key:"redo",value:function(){this.commands.redo()}},{key:"getUndoCommand",value:function(){return this.commands.canUndo()?this.commands.getPrevious():null}},{key:"getRedoCommand",value:function(){return this.commands.canRedo()?this.commands.getNext():null}},{key:"getAllUndoCommands",value:function(){return this.commands.getUndoCommands().toArray()}},{key:"getAllRedoCommands",value:function(){return this.commands.getRedoCommands().toArray()}},{key:"getStack",value:function(){return{undos:this.commands.getUndoCommands(),redos:this.commands.getRedoCommands()}}},{key:"canUndo",value:function(){return this.commands.canUndo()}},{key:"canRedo",value:function(){return this.commands.canRedo()}},{key:"clearCommandStack",value:function(){this.commands=new d}}])}();export{r as default};
2
- //# sourceMappingURL=command-stack.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-stack.es.js","sources":["../../src/command-stack/internal-stack.js","../../src/command-stack/command-stack.js"],"sourcesContent":["/*\n * Copyright 2017-2023 Elyra Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { List, Record, Stack } from \"immutable\";\n\nconst MAX_UNDO_COMMANDS = 100;\n\nexport default class InternalStack {\n\n\tconstructor() {\n\t\tconst recFac = new Record({\n\t\t\tundoCmnds: new List(),\n\t\t\tredoCmnds: new Stack()\n\t\t});\n\n\t\tthis.rec = recFac();\n\t}\n\n\tdo(command) {\n\t\tthis.rec = this.rec.merge({\n\t\t\tundoCmnds: this.rec.undoCmnds.push(command),\n\t\t\tredoCmnds: new Stack()\n\t\t});\n\n\t\tif (this.rec.undoCmnds.size > MAX_UNDO_COMMANDS) {\n\t\t\tthis.rec = this.rec.set(\"undoCmnds\", this.rec.undoCmnds.shift());\n\t\t}\n\t\tcommand.do();\n\t}\n\n\tundo() {\n\t\tif (this.canUndo()) {\n\t\t\tconst prev = this.getPrevious();\n\t\t\tthis.rec = this.rec.merge({\n\t\t\t\tundoCmnds: this.rec.undoCmnds.pop(),\n\t\t\t\tredoCmnds: this.rec.redoCmnds.push(prev)\n\t\t\t});\n\t\t\tprev.undo();\n\t\t}\n\t}\n\n\tredo() {\n\t\tif (this.canRedo()) {\n\t\t\tconst next = this.getNext();\n\t\t\tthis.rec = this.rec.merge({\n\t\t\t\tundoCmnds: this.rec.undoCmnds.push(next),\n\t\t\t\tredoCmnds: this.rec.redoCmnds.pop()\n\t\t\t});\n\t\t\tnext.redo();\n\t\t}\n\t}\n\n\tcanUndo() {\n\t\treturn !this.rec.undoCmnds.isEmpty();\n\t}\n\n\tcanRedo() {\n\t\treturn !this.rec.redoCmnds.isEmpty();\n\t}\n\n\tgetPrevious() {\n\t\treturn this.rec.undoCmnds.last();\n\t}\n\n\tgetNext() {\n\t\treturn this.rec.redoCmnds.first();\n\t}\n\n\tgetUndoCommands() {\n\t\treturn this.rec.undoCmnds;\n\t}\n\n\tgetRedoCommands() {\n\t\treturn this.rec.redoCmnds;\n\t}\n}\n","/*\n * Copyright 2017-2023 Elyra Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport InternalStack from \"./internal-stack.js\";\n\nexport default class CommandStack {\n\n\tconstructor() {\n\t\tthis.commands = new InternalStack();\n\t}\n\n\tdo(action) {\n\t\tthis.commands.do(action);\n\t}\n\n\tundo() {\n\t\tthis.commands.undo();\n\t}\n\n\tredo() {\n\t\tthis.commands.redo();\n\t}\n\n\tgetUndoCommand() {\n\t\tif (this.commands.canUndo()) {\n\t\t\treturn this.commands.getPrevious();\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetRedoCommand() {\n\t\tif (this.commands.canRedo()) {\n\t\t\treturn this.commands.getNext();\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetAllUndoCommands() {\n\t\treturn this.commands.getUndoCommands().toArray();\n\t}\n\n\tgetAllRedoCommands() {\n\t\treturn this.commands.getRedoCommands().toArray();\n\t}\n\n\t// need this for validation on unit tests\n\tgetStack() {\n\t\treturn {\n\t\t\t\"undos\": this.commands.getUndoCommands(),\n\t\t\t\"redos\": this.commands.getRedoCommands()\n\t\t};\n\t}\n\n\tcanUndo() {\n\t\treturn this.commands.canUndo();\n\t}\n\n\tcanRedo() {\n\t\treturn this.commands.canRedo();\n\t}\n\n\tclearCommandStack() {\n\t\tthis.commands = new InternalStack();\n\t}\n}\n"],"names":["InternalStack","_createClass","_classCallCheck","recFac","Record","undoCmnds","List","redoCmnds","Stack","this","rec","key","value","command","merge","push","size","set","shift","canUndo","prev","getPrevious","pop","undo","canRedo","next","getNext","redo","isEmpty","last","first","CommandStack","commands","action","getUndoCommands","toArray","getRedoCommands","undos","redos"],"mappings":"8GAkBA,IAEqBA,EAAa,WAShC,OAAAC,EAPD,SAAAD,IAAcE,OAAAF,GACb,IAAMG,EAAS,IAAIC,EAAO,CACzBC,UAAW,IAAIC,EACfC,UAAW,IAAIC,IAGhBC,KAAKC,IAAMP,GACZ,EAAC,CAAA,CAAAQ,IAAA,KAAAC,MAED,SAAGC,GACFJ,KAAKC,IAAMD,KAAKC,IAAII,MAAM,CACzBT,UAAWI,KAAKC,IAAIL,UAAUU,KAAKF,GACnCN,UAAW,IAAIC,IAGZC,KAAKC,IAAIL,UAAUW,KAnBC,MAoBvBP,KAAKC,IAAMD,KAAKC,IAAIO,IAAI,YAAaR,KAAKC,IAAIL,UAAUa,UAEzDL,EAAO,IACR,GAAC,CAAAF,IAAA,OAAAC,MAED,WACC,GAAIH,KAAKU,UAAW,CACnB,IAAMC,EAAOX,KAAKY,cAClBZ,KAAKC,IAAMD,KAAKC,IAAII,MAAM,CACzBT,UAAWI,KAAKC,IAAIL,UAAUiB,MAC9Bf,UAAWE,KAAKC,IAAIH,UAAUQ,KAAKK,KAEpCA,EAAKG,MACN,CACD,GAAC,CAAAZ,IAAA,OAAAC,MAED,WACC,GAAIH,KAAKe,UAAW,CACnB,IAAMC,EAAOhB,KAAKiB,UAClBjB,KAAKC,IAAMD,KAAKC,IAAII,MAAM,CACzBT,UAAWI,KAAKC,IAAIL,UAAUU,KAAKU,GACnClB,UAAWE,KAAKC,IAAIH,UAAUe,QAE/BG,EAAKE,MACN,CACD,GAAC,CAAAhB,IAAA,UAAAC,MAED,WACC,OAAQH,KAAKC,IAAIL,UAAUuB,SAC5B,GAAC,CAAAjB,IAAA,UAAAC,MAED,WACC,OAAQH,KAAKC,IAAIH,UAAUqB,SAC5B,GAAC,CAAAjB,IAAA,cAAAC,MAED,WACC,OAAOH,KAAKC,IAAIL,UAAUwB,MAC3B,GAAC,CAAAlB,IAAA,UAAAC,MAED,WACC,OAAOH,KAAKC,IAAIH,UAAUuB,OAC3B,GAAC,CAAAnB,IAAA,kBAAAC,MAED,WACC,OAAOH,KAAKC,IAAIL,SACjB,GAAC,CAAAM,IAAA,kBAAAC,MAED,WACC,OAAOH,KAAKC,IAAIH,SACjB,IAAC,CAnEgC,GCHbwB,EAAY,WAI/B,OAAA9B,EAFD,SAAA8B,IAAc7B,OAAA6B,GACbtB,KAAKuB,SAAW,IAAIhC,CACrB,EAAC,CAAA,CAAAW,IAAA,KAAAC,MAED,SAAGqB,GACFxB,KAAKuB,SAAW,GAACC,EAClB,GAAC,CAAAtB,IAAA,OAAAC,MAED,WACCH,KAAKuB,SAAST,MACf,GAAC,CAAAZ,IAAA,OAAAC,MAED,WACCH,KAAKuB,SAASL,MACf,GAAC,CAAAhB,IAAA,iBAAAC,MAED,WACC,OAAIH,KAAKuB,SAASb,UACVV,KAAKuB,SAASX,cAEf,IACR,GAAC,CAAAV,IAAA,iBAAAC,MAED,WACC,OAAIH,KAAKuB,SAASR,UACVf,KAAKuB,SAASN,UAEf,IACR,GAAC,CAAAf,IAAA,qBAAAC,MAED,WACC,OAAOH,KAAKuB,SAASE,kBAAkBC,SACxC,GAAC,CAAAxB,IAAA,qBAAAC,MAED,WACC,OAAOH,KAAKuB,SAASI,kBAAkBD,SACxC,GAEA,CAAAxB,IAAA,WAAAC,MACA,WACC,MAAO,CACNyB,MAAS5B,KAAKuB,SAASE,kBACvBI,MAAS7B,KAAKuB,SAASI,kBAEzB,GAAC,CAAAzB,IAAA,UAAAC,MAED,WACC,OAAOH,KAAKuB,SAASb,SACtB,GAAC,CAAAR,IAAA,UAAAC,MAED,WACC,OAAOH,KAAKuB,SAASR,SACtB,GAAC,CAAAb,IAAA,oBAAAC,MAED,WACCH,KAAKuB,SAAW,IAAIhC,CACrB,IAAC,CA1D+B"}
@@ -1,2 +0,0 @@
1
- import"../createClass-a140e270.js";import"../inherits-860188e5.js";import"react";export{C as default}from"../context-menu-wrapper-9f1b71a8.js";import"../defineProperty-f3298a15.js";import"../ChevronRight-f4724ce3.js";import"../keyboard-utils-a23c5d52.js";import"../common-canvas-utils-7ef1d091.js";import"prop-types";import"../canvas-logger-3584cb6d.js";
2
- //# sourceMappingURL=context-menu.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-menu.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{StreamLanguage as e,LanguageSupport as t}from"@codemirror/language";import{completeFromList as n}from"@codemirror/autocomplete";var i="@BLANK @DIFF1 @DIFF2 @FIELD @FIELDS_BETWEEN @FIELDS_MATCHING @GLOBAL_MAX @GLOBAL_MEAN @GLOBAL_MIN @GLOBAL_SDEV @GLOBAL_SUM @INDEX @LAST_NON_BLANK @MAX @MEAN @MIN @MULTI_RESPONSE_SET @NULL @OFFSET @PARTITION_FIELD @PREDICTED @SDEV @SINCE @SINCE0 @SUM @TARGET @TESTING_PARTITION @THIS @TODAY @TRAINING_PARTITION @VALIDATION_PARTITION abs allbutfirst allbutlast alphabefore and arccos arccosh arcsin arcsinh arctan arctan2 arctanh area cdf_chisq cdf_f cdf_normal cdf_t close_to COND1 and COND2 COND1 or COND2 cos cosh count_equal count_greater_than count_less_than count_non_nulls count_not_equal count_nulls count_substring crosses date_before date_days_difference date_from_ywd date_in_days date_in_months date_in_weeks date_in_years date_iso_day date_iso_week date_iso_year date_months_difference date_weeks_difference date_years_difference datetime_date datetime_day datetime_day_name datetime_day_short_name datetime_hour datetime_in_seconds datetime_minute datetime_month datetime_month_name datetime_month_short_name datetime_now datetime_second datetime_time datetime_timestamp datetime_weekday datetime_year distance div endstring exp first_index first_non_null first_non_null_index fracof hasendstring hasmidstring hasstartstring hassubstring hassubstring if then else elseif endif integer_bitcount integer_leastbit integer_length intof is_date is_datetime is_integer is_number is_real is_string is_time is_timestamp isalphacode isendstring islowercode ismidstring isnumbercode isstartstring issubstring issubstring issubstring_count issubstring_lim isuppercode last last_index last_non_null last_non_null_index length locchar locchar_back log log10 lowertoupper max max_index max_n MEAN mean_n member min min_index min_n negate not num_points oneof or overlap pi random random0 rem replace replicate round sdev_n sign sin sinh skipchar skipchar_back soundex soundex_difference sqrt startstring stb_centroid_latitude stb_centroid_longitude stripchar strmember subscrs substring substring_between sum_n tan tanh testbit time_before time_hours_difference time_in_hours time_in_mins time_in_secs time_mins_difference".split(" "),r=i.map(function(e){return{label:e,type:"keyword"}}),a=/[\[\]{}\(\),;\:\.]/,s=/\d/,_=/[\w\.]/,o=/[\w\$_]/,d=/[+\-*&%=<>!?|\/]/;function m(e,t){var n=e.next();if("#"===n&&t.startOfLine)return e.skipToEnd(),"meta";if('"'===n)return function(e,t,n){var i,r=!1;for(;void 0!==(i=t.next());)if(i===e){r=!0;break}r&&(n.tokenize=null)}(n,e,t),"string";if("'"===n)return function(e,t,n){var i,r=!1;for(;void 0!==(i=t.next());)if(i===e){r=!0;break}r&&(n.tokenize=null)}(n,e,t),"variable";if(a.test(n))return null;if(s.test(n))return e.eatWhile(_),"number";if(d.test(n))return e.eatWhile(d),"operator";e.eatWhile(o);var r=e.current();return-1!==i.indexOf(r)?"keyword":"variable"}var u=e.define({name:"CLEM",startState:function(){return{tokenize:null}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||m)(e,t)}}),c=u.data.of({autocomplete:n(r)});function l(){return new t(u,[c])}export{l as clem};
2
- //# sourceMappingURL=clem.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clem.es.js","sources":["../../../src/common-properties/controls/expression/languages/CLEM-hint.js"],"sourcesContent":["/*\n * Copyright 2017-2024 Elyra Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint no-useless-escape: \"off\" */\nimport { LanguageSupport, StreamLanguage } from \"@codemirror/language\";\nimport { completeFromList } from \"@codemirror/autocomplete\";\n\nconst keywords = (\"@BLANK @DIFF1 @DIFF2 @FIELD @FIELDS_BETWEEN @FIELDS_MATCHING \" +\n\"@GLOBAL_MAX @GLOBAL_MEAN @GLOBAL_MIN @GLOBAL_SDEV @GLOBAL_SUM @INDEX @LAST_NON_BLANK \" +\n\"@MAX @MEAN @MIN @MULTI_RESPONSE_SET @NULL @OFFSET @PARTITION_FIELD @PREDICTED \" +\n\"@SDEV @SINCE @SINCE0 @SUM @TARGET @TESTING_PARTITION @THIS @TODAY @TRAINING_PARTITION \" +\n\"@VALIDATION_PARTITION abs allbutfirst allbutlast alphabefore and arccos arccosh arcsin \" +\n\"arcsinh arctan arctan2 arctanh area cdf_chisq cdf_f cdf_normal cdf_t close_to COND1 \" +\n\"and COND2 COND1 or COND2 cos cosh count_equal count_greater_than count_less_than \" +\n\"count_non_nulls count_not_equal count_nulls count_substring crosses date_before \" +\n\"date_days_difference date_from_ywd date_in_days date_in_months date_in_weeks date_in_years \" +\n\"date_iso_day date_iso_week date_iso_year date_months_difference date_weeks_difference \" +\n\"date_years_difference datetime_date datetime_day datetime_day_name datetime_day_short_name \" +\n\"datetime_hour datetime_in_seconds datetime_minute datetime_month datetime_month_name \" +\n\"datetime_month_short_name datetime_now datetime_second datetime_time datetime_timestamp \" +\n\"datetime_weekday datetime_year distance div endstring exp first_index first_non_null \" +\n\"first_non_null_index fracof hasendstring hasmidstring hasstartstring hassubstring hassubstring \" +\n\"if then else elseif endif integer_bitcount integer_leastbit integer_length intof is_date \" +\n\"is_datetime is_integer is_number is_real is_string is_time is_timestamp isalphacode \" +\n\"isendstring islowercode ismidstring isnumbercode isstartstring issubstring issubstring \" +\n\"issubstring_count issubstring_lim isuppercode last last_index last_non_null last_non_null_index \" +\n\"length locchar locchar_back log log10 lowertoupper max max_index max_n MEAN mean_n member \" +\n\"min min_index min_n negate not num_points oneof or overlap pi random random0 rem replace \" +\n\"replicate round sdev_n sign sin sinh skipchar skipchar_back soundex soundex_difference sqrt \" +\n\"startstring stb_centroid_latitude stb_centroid_longitude stripchar strmember subscrs substring \" +\n\"substring_between sum_n tan tanh testbit time_before time_hours_difference time_in_hours \" +\n\"time_in_mins time_in_secs time_mins_difference\").split(\" \");\n\nconst clemKeywords = keywords.map((keyword) => ({ label: keyword, type: \"keyword\" }));\n\nconst isSpecialChar = /[\\[\\]{}\\(\\),;\\:\\.]/;\nconst isDigit = /\\d/;\nconst isNumberChar = /[\\w\\.]/;\nconst isWordChar = /[\\w\\$_]/;\nconst isOperatorChar = /[+\\-*&%=<>!?|\\/]/;\n\nfunction tokenResolve(stream, state) {\n\tconst ch = stream.next();\n\tif (ch === \"#\" && state.startOfLine) {\n\t\tstream.skipToEnd();\n\t\treturn \"meta\";\n\t}\n\n\tif (ch === \"\\\"\") {\n\t\ttokenString(ch, stream, state);\n\t\treturn \"string\";\n\t}\n\n\tif (ch === \"'\") {\n\t\ttokenVariable(ch, stream, state);\n\t\treturn \"variable\";\n\t}\n\n\tif (isSpecialChar.test(ch)) {\n\t\treturn null;\n\t}\n\n\tif (isDigit.test(ch)) {\n\t\tstream.eatWhile(isNumberChar);\n\t\treturn \"number\";\n\t}\n\tif (isOperatorChar.test(ch)) {\n\t\tstream.eatWhile(isOperatorChar);\n\t\treturn \"operator\";\n\t}\n\n\tstream.eatWhile(isWordChar);\n\tconst cur = stream.current();\n\tif (keywords.indexOf(cur) !== -1) {\n\t\treturn \"keyword\";\n\t}\n\treturn \"variable\";\n}\n\nfunction tokenString(quote, stream, state) {\n\tlet next;\n\tlet end = false;\n\twhile (typeof (next = stream.next()) !== \"undefined\") {\n\t\tif (next === quote) {\n\t\t\tend = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (end) {\n\t\tstate.tokenize = null;\n\t}\n\treturn \"string\";\n}\n\nfunction tokenVariable(quote, stream, state) {\n\tlet next;\n\tlet end = false;\n\twhile (typeof (next = stream.next()) !== \"undefined\") {\n\t\tif (next === quote) {\n\t\t\tend = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\tif (end) {\n\t\tstate.tokenize = null;\n\t}\n\treturn \"variable\";\n}\n\n// Define CLEM language\nconst clemLanguage = StreamLanguage.define({\n\tname: \"CLEM\",\n\tstartState: function() {\n\t\treturn { tokenize: null };\n\t},\n\ttoken: function(stream, state) {\n\t\tif (stream.eatSpace()) {\n\t\t\treturn null;\n\t\t}\n\t\tconst style = (state.tokenize || tokenResolve)(stream, state);\n\t\treturn style;\n\t},\n});\n\n// Autocompletions\nconst clemCompletion = clemLanguage.data.of({\n\tautocomplete: completeFromList(clemKeywords)\n});\n\nfunction clem() {\n\treturn new LanguageSupport(clemLanguage, [clemCompletion]);\n}\n\nexport {\n\tclem\n};\n"],"names":["keywords","split","clemKeywords","map","keyword","label","type","isSpecialChar","isDigit","isNumberChar","isWordChar","isOperatorChar","tokenResolve","stream","state","ch","next","startOfLine","skipToEnd","quote","end","tokenize","tokenString","tokenVariable","test","eatWhile","cur","current","indexOf","clemLanguage","StreamLanguage","define","name","startState","token","eatSpace","clemCompletion","data","of","autocomplete","completeFromList","clem","LanguageSupport"],"mappings":"uIAoBA,IAAMA,EAAW,2kEAwBiCC,MAAM,KAElDC,EAAeF,EAASG,IAAI,SAACC,GAAO,MAAM,CAAEC,MAAOD,EAASE,KAAM,UAAW,GAE7EC,EAAgB,qBAChBC,EAAU,KACVC,EAAe,SACfC,EAAa,UACbC,EAAiB,mBAEvB,SAASC,EAAaC,EAAQC,GAC7B,IAAMC,EAAKF,EAAOG,OAClB,GAAW,MAAPD,GAAcD,EAAMG,YAEvB,OADAJ,EAAOK,YACA,OAGR,GAAW,MAAPH,EAEH,OA6BF,SAAqBI,EAAON,EAAQC,GACnC,IAAIE,EACAI,GAAM,EACV,UAAyC,KAA1BJ,EAAOH,EAAOG,SAC5B,GAAIA,IAASG,EAAO,CACnBC,GAAM,EACN,KACD,CAEGA,IACHN,EAAMO,SAAW,KAGnB,CA3CEC,CAAYP,EAAIF,EAAQC,GACjB,SAGR,GAAW,MAAPC,EAEH,OAuCF,SAAuBI,EAAON,EAAQC,GACrC,IAAIE,EACAI,GAAM,EACV,UAAyC,KAA1BJ,EAAOH,EAAOG,SAC5B,GAAIA,IAASG,EAAO,CACnBC,GAAM,EACN,KACD,CAEGA,IACHN,EAAMO,SAAW,KAGnB,CArDEE,CAAcR,EAAIF,EAAQC,GACnB,WAGR,GAAIP,EAAciB,KAAKT,GACtB,OAAO,KAGR,GAAIP,EAAQgB,KAAKT,GAEhB,OADAF,EAAOY,SAAShB,GACT,SAER,GAAIE,EAAea,KAAKT,GAEvB,OADAF,EAAOY,SAASd,GACT,WAGRE,EAAOY,SAASf,GAChB,IAAMgB,EAAMb,EAAOc,UACnB,OAA+B,IAA3B3B,EAAS4B,QAAQF,GACb,UAED,UACR,CAiCA,IAAMG,EAAeC,EAAeC,OAAO,CAC1CC,KAAM,OACNC,WAAY,WACX,MAAO,CAAEZ,SAAU,KACnB,EACDa,MAAO,SAASrB,EAAQC,GACvB,OAAID,EAAOsB,WACH,MAEOrB,EAAMO,UAAYT,GAAcC,EAAQC,EAExD,IAIKsB,EAAiBP,EAAaQ,KAAKC,GAAG,CAC3CC,aAAcC,EAAiBtC,KAGhC,SAASuC,IACR,OAAO,IAAIC,EAAgBb,EAAc,CAACO,GAC3C"}
@@ -1,2 +0,0 @@
1
- export{F as default}from"../../index-50b29b6d.js";import"../../flexible-table-d1d15df2.js";import"../../createClass-a140e270.js";import"../../inherits-860188e5.js";import"../../isArrayLikeObject-8496ff7c.js";import"../../common-canvas-utils-7ef1d091.js";import"react";import"react-intl";import"@carbon/react";import"../../toInteger-ea444724.js";import"@tanstack/react-table";import"@tanstack/react-virtual";import"../../keyboard-utils-a23c5d52.js";import"prop-types";import"../tooltip.es.js";import"react-portal";import"uuid";import"react-virtualized";import"react-draggable";import"../../defineProperty-f3298a15.js";import"../../en-dceabf36.js";import"react-inlinesvg";import"../../Time-e622883c.js";import"../../ChevronRight-f4724ce3.js";
2
- //# sourceMappingURL=field-picker.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-picker.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{F as t}from"../../flexible-table-d1d15df2.js";export{F as default}from"../../flexible-table-d1d15df2.js";import"../../createClass-a140e270.js";import"../../inherits-860188e5.js";import"../../isArrayLikeObject-8496ff7c.js";import"../../common-canvas-utils-7ef1d091.js";import"react";import"react-intl";import"@carbon/react";import"../../toInteger-ea444724.js";import"@tanstack/react-table";import"@tanstack/react-virtual";import"../../keyboard-utils-a23c5d52.js";import"prop-types";import"../tooltip.es.js";import"react-portal";import"uuid";import"react-virtualized";import"react-draggable";
2
- //# sourceMappingURL=flexible-table.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flexible-table.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var e=["await","else","pass","break","except","in","raise","finally","is","return","and","continue","lambda","as","nonlocal","assert","del","global","not","with","async","elif","or","yield"],n=[];function a(){var a=[];return e.forEach(function(e){return a.push({label:e,type:"keyword"})}),n.forEach(function(e){return a.push({label:e,type:"function"})}),a}export{a as getPythonHints};
2
- //# sourceMappingURL=getPythonHints.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getPythonHints.es.js","sources":["../../../src/common-properties/controls/expression/languages/python-hint.js"],"sourcesContent":["/*\n * Copyright 2017-2024 Elyra Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// Ref: https://docs.python.org/3.12/reference/lexical_analysis.html#keywords\nconst pythonKeywords = [\n\t\"await\",\n\t\"else\",\n\t\"pass\",\n\t\"break\",\n\t\"except\",\n\t\"in\",\n\t\"raise\",\n\t\"finally\",\n\t\"is\",\n\t\"return\",\n\t\"and\",\n\t\"continue\",\n\t\"lambda\",\n\t\"as\",\n\t\"nonlocal\",\n\t\"assert\",\n\t\"del\",\n\t\"global\",\n\t\"not\",\n\t\"with\",\n\t\"async\",\n\t\"elif\",\n\t\"or\",\n\t\"yield\"\n];\n\n// Ref: https://docs.python.org/3/library/functions.html\nconst pythonFunctions = [];\n\nfunction getPythonHints() {\n\tconst pythonHints = [];\n\n\tpythonKeywords.forEach((keyword) => pythonHints.push({ label: keyword, type: \"keyword\" }));\n\n\tpythonFunctions.forEach((func) => pythonHints.push({ label: func, type: \"function\" }));\n\n\treturn pythonHints;\n}\n\nexport {\n\tgetPythonHints\n};\n"],"names":["pythonKeywords","pythonFunctions","getPythonHints","pythonHints","forEach","keyword","push","label","type","func"],"mappings":"AAiBA,IAAMA,EAAiB,CACtB,QACA,OACA,OACA,QACA,SACA,KACA,QACA,UACA,KACA,SACA,MACA,WACA,SACA,KACA,WACA,SACA,MACA,SACA,MACA,OACA,QACA,OACA,KACA,SAIKC,EAAkB,GAExB,SAASC,IACR,IAAMC,EAAc,GAMpB,OAJAH,EAAeI,QAAQ,SAACC,GAAO,OAAKF,EAAYG,KAAK,CAAEC,MAAOF,EAASG,KAAM,cAE7EP,EAAgBG,QAAQ,SAACK,GAAI,OAAKN,EAAYG,KAAK,CAAEC,MAAOE,EAAMD,KAAM,eAEjEL,CACR"}
@@ -1,2 +0,0 @@
1
- export{c as CommonProperties,P as PropertiesController}from"../common-properties-36906b79.js";export{F as FlexibleTable}from"../flexible-table-d1d15df2.js";export{F as FieldPicker}from"../index-50b29b6d.js";export{clem}from"./properties/clem.es.js";export{getPythonHints}from"./properties/getPythonHints.es.js";import"../createClass-a140e270.js";import"../inherits-860188e5.js";import"react";import"../Close-ced84b07.js";import"../common-canvas-utils-7ef1d091.js";import"../toInteger-ea444724.js";import"../isArrayLikeObject-8496ff7c.js";import"../datarecord-metadata-v3-schema-73031f6a.js";import"../en-dceabf36.js";import"../keyboard-utils-a23c5d52.js";import"prop-types";import"./tooltip.es.js";import"react-portal";import"@carbon/react";import"uuid";import"react-inlinesvg";import"../Time-e622883c.js";import"../ChevronRight-f4724ce3.js";import"react-intl";import"react-redux";import"../defineProperty-f3298a15.js";import"redux";import"seedrandom";import"./command-stack.es.js";import"immutable";import"date-fns";import"@codemirror/view";import"@codemirror/commands";import"@codemirror/search";import"@codemirror/autocomplete";import"@codemirror/state";import"@codemirror/language";import"@codemirror/lang-python";import"@codemirror/lang-sql";import"@codemirror/lang-javascript";import"@codemirror/lang-json";import"jsonschema";import"@tanstack/react-table";import"@tanstack/react-virtual";import"react-virtualized";import"react-draggable";
2
- //# sourceMappingURL=properties.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as t,b as e,a as i}from"../createClass-a140e270.js";import{_ as o,a as s,b as l}from"../inherits-860188e5.js";import n from"react";import{Portal as r}from"react-portal";import{Link as p}from"@carbon/react";import{v4 as h}from"uuid";function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}var u=function(u){function c(t){var e,o,n,r;return i(this,c),o=this,r=[t],n=s(n=c),(e=l(o,a()?Reflect.construct(n,r||[],s(o).constructor):n.apply(o,r))).state={isTooltipVisible:!1},e.uuid=h(),e.pendingTooltip=null,e.hideTooltipOnScrollAndResize=e.hideTooltipOnScrollAndResize.bind(e),e.handleMouseOverOtherTrigger=e.handleMouseOverOtherTrigger.bind(e),e.stopEventPropagation=e.stopEventPropagation.bind(e),e.tabKeyPressed=!1,e.linkClicked=!1,e.inTooltip=!1,e}return o(c,u),t(c,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.hideTooltipOnScrollAndResize,!0),window.addEventListener("resize",this.hideTooltipOnScrollAndResize,!0),document.addEventListener("mouseover",this.handleMouseOverOtherTrigger,!0),this.props.targetObj&&this.setTooltipVisible(!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.hideTooltipOnScrollAndResize,!0),window.removeEventListener("resize",this.hideTooltipOnScrollAndResize,!0),document.removeEventListener("mouseover",this.handleMouseOverOtherTrigger,!0),this.pendingTooltip&&clearTimeout(this.pendingTooltip)}},{key:"setTooltipVisible",value:function(t){if((!this.showTooltip()||!t&&this.pendingTooltip)&&(clearTimeout(this.pendingTooltip),this.pendingTooltip=null,this.setState({isTooltipVisible:!1})),this.showTooltip()){var e=document.querySelector("[data-id='".concat(this.uuid,"-").concat(this.props.id,"']"));if(this.pendingTooltip=null,this.setState({isTooltipVisible:t}),t){var i,o=null;(o=this.props.targetObj?this.props.targetObj:document.querySelector("[data-id='".concat(this.uuid,"-").concat(this.props.id,"-trigger']")))&&e&&this.updateTooltipLayout(e,o,e.getAttribute("direction"));var s=null===(i=this.targetRef)||void 0===i?void 0:i.querySelector("a");s&&s.focus()}}}},{key:"setKeyPressed",value:function(t){"Tab"===t.key&&(this.tabKeyPressed=!0),"Escape"===t.key&&(this.triggerRef.focus(),this.setTooltipVisible(!1))}},{key:"getStyleValue",value:function(t){return t+"px"}},{key:"getNewDirection",value:function(t){var e;switch(t){case"top":e="bottom";break;case"bottom":e="top";break;case"left":e="right";break;default:e="left"}return e}},{key:"showTooltip",value:function(){var t=this.canDisplayFullText(this.triggerRef);return!this.props.disable&&!this.props.showToolTipIfTruncated||!this.props.disable&&this.props.showToolTipIfTruncated&&!t}},{key:"stopEventPropagation",value:function(t){t.stopPropagation()}},{key:"canDisplayFullText",value:function(t){var e=t;if(this.props.truncatedRef&&(e=this.props.truncatedRef.current?this.props.truncatedRef.current:this.props.truncatedRef),e){var i=e.firstChild&&e.firstChild.scrollWidth&&0!==e.firstChild.scrollWidth?e.firstChild.scrollWidth:e.scrollWidth,o=e.firstChild&&e.firstChild.offsetWidth&&e.firstChild.offsetWidth||0;return i<=(0!==o&&o<e.offsetWidth?o:e.offsetWidth)}return!1}},{key:"showTooltipWithDelay",value:function(){if(!this.pendingTooltip&&this.showTooltip()){var t=this;this.pendingTooltip=setTimeout(function(){t.setTooltipVisible(!0)},this.props.delay)}}},{key:"updateTooltipLayout",value:function(t,e,i){var o=i,s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,n=e.getBoundingClientRect(),r=t.querySelector("svg"),p=r.getBoundingClientRect();if(t.style.left=this.getStyleValue(n.left),t.style.top=this.getStyleValue(n.top),this.props.mousePos)this.updateLocationBasedOnMousePos(t,this.props.mousePos,i);else{if("top"===o||"bottom"===o){var h=n.left;t.offsetWidth>n.width?(h-=(t.offsetWidth-n.width)/2)<0&&(h=2):t.offsetWidth<n.width&&(h+=(n.width-t.offsetWidth)/2),t.style.left=this.getStyleValue(h),h+t.offsetWidth>s&&(t.style.left=this.getStyleValue(s-t.offsetWidth))}else if("left"===o)for(;t.offsetLeft+t.offsetWidth+p.width>Math.round(n.left);)t.style.left=this.getStyleValue(n.left-t.offsetWidth-p.width);else"right"===o&&(t.style.left=this.getStyleValue(n.right+p.width));if("top"===o)t.style.top=this.getStyleValue(n.top-p.height-t.offsetHeight);else if("bottom"===o)t.style.top=this.getStyleValue(n.bottom+p.height);else if("left"===o||"right"===o){var a=n.top;t.offsetHeight>n.height?(a-=(t.offsetHeight-n.height)/2)<0&&(a=n.top):t.offsetHeight<n.height&&(a+=(n.height-t.offsetHeight)/2),t.style.top=this.getStyleValue(a+1),l-t.offsetHeight<n.top&&(t.style.top=this.getStyleValue(l-t.offsetHeight))}"top"===o||"bottom"===o?r.style.left=this.getStyleValue(n.left-t.getBoundingClientRect().left+e.getBoundingClientRect().width/2-p.width/2+1):"left"===o?r.style.left=this.getStyleValue(t.offsetWidth-3):"right"===o&&(r.style.left=this.getStyleValue(2-p.width)),"top"===o?r.style.top=this.getStyleValue(t.offsetHeight-5):"bottom"===o?r.style.top="-11px":"left"!==o&&"right"!==o||(r.style.top=this.getStyleValue(n.top-t.getBoundingClientRect().top+e.offsetHeight/2-p.height/2))}if(this.isOutOfBounds(t)&&t.getAttribute("direction")===o){var u=this.getNewDirection(o);return this.updateTooltipLayout(t,e,u),void t.setAttribute("direction",u)}}},{key:"updateLocationBasedOnMousePos",value:function(t,e,i){var o=i,s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,n=t.querySelector("svg"),r=n.getBoundingClientRect(),p=this.props.mousePos.x,h=this.props.mousePos.y;if("top"===o||"bottom"===o){var a=p-t.offsetWidth/2;s-t.offsetWidth<a?a=s-t.offsetWidth:a<0&&(a=2),t.style.left=this.getStyleValue(a)}else"left"===o?t.style.left=this.getStyleValue(p-t.offsetWidth-r.width-5):"right"===o&&(t.style.left=this.getStyleValue(p+r.width+5));if("top"===o)t.style.top=this.getStyleValue(h-r.height-t.offsetHeight);else if("bottom"===o)t.style.top=this.getStyleValue(h+2*r.height);else if("left"===o||"right"===o){var u=h-t.offsetHeight/2;l-t.offsetHeight<u?u=l-t.offsetHeight:u<0&&(u=2),t.style.top=this.getStyleValue(u+1)}"top"===o||"bottom"===o?n.style.left=this.getStyleValue(p-t.getBoundingClientRect().left-r.width/2):"left"===o?n.style.left=this.getStyleValue(t.offsetWidth-3):"right"===o&&(n.style.left=this.getStyleValue(2-r.width)),"top"===o?n.style.top=this.getStyleValue(t.offsetHeight-5):"bottom"===o?n.style.top="-11px":"left"!==o&&"right"!==o||(n.style.top=this.getStyleValue(h-t.getBoundingClientRect().top-r.height/2))}},{key:"isOutOfBounds",value:function(t){var e=parseFloat(t.style.left),i=parseFloat(t.style.top);return e+t.offsetWidth>document.documentElement.clientWidth||e<0||i<0||i+t.offsetHeight>document.documentElement.clientHeight}},{key:"toggleTooltipOnClick",value:function(t){t.stopPropagation(),t.preventDefault(),this.triggerRef.focus(),this.state.isTooltipVisible?this.setTooltipVisible(!1):this.setTooltipVisible(!0)}},{key:"hideTooltipOnScrollAndResize",value:function(t){this.state.isTooltipVisible&&!this.linkClicked&&this.setTooltipVisible(!1)}},{key:"handleMouseOverOtherTrigger",value:function(t){var e=t.target.closest(".tooltip-trigger");e&&e!==this.triggerRef&&this.state.isTooltipVisible&&this.setTooltipVisible(!1)}},{key:"render",value:function(){var t=this,i=null,o=null;if(this.props.children){var s;s=this.props.hoverable?function(){setTimeout(function(){t.inTooltip||t.setTooltipVisible(!1)},100)}:function(){return t.setTooltipVisible(!1)};var l=this.canDisplayFullText(this.triggerRef),h=this.props.showToolTipIfTruncated&&!l,a=this.props.showToolTipOnClick||h||!this.props.disable;o=n.createElement("div",{"data-id":"".concat(this.uuid,"-").concat(this.props.id,"-trigger"),className:"tooltip-trigger",onMouseOver:this.props.showToolTipOnClick?null:function(){return t.setTooltipVisible(!0)},onMouseLeave:this.props.showToolTipOnClick?null:s,onMouseDown:this.props.showToolTipOnClick?null:function(){return t.setTooltipVisible(!1)},onClick:this.props.showToolTipOnClick?function(e){return t.toggleTooltipOnClick(e)}:null,onFocus:a?function(){t.props.showToolTipOnClick?t.showTooltipWithDelay():t.setTooltipVisible(!0)}:null,onBlur:a?function(e){if(t.tabKeyPressed)t.setTooltipVisible(!1),t.tabKeyPressed=!1;else{var i,o,s=null==e||null===(i=e.relatedTarget)||void 0===i?void 0:i.closest(".common-canvas-tooltip");"div"===(null==s||null===(o=s.tagName)||void 0===o?void 0:o.toLowerCase())?t.setTooltipVisible(!0):t.setTooltipVisible(!1)}}:null,onKeyDown:this.props.showToolTipOnClick?function(e){return t.setKeyPressed(e)}:null,tabIndex:this.props.showToolTipOnClick||h?0:null,role:this.props.showToolTipOnClick||h?"button":null,"aria-labelledby":this.props.showToolTipOnClick||h?"".concat(this.uuid,"-").concat(this.props.id):null,"aria-expanded":this.props.showToolTipOnClick||h?this.state.isTooltipVisible:null,"aria-controls":this.props.showToolTipOnClick||h?"".concat(this.uuid,"-").concat(this.props.id):null,ref:function(e){return t.triggerRef=e}},this.props.children)}"string"==typeof this.props.tip?i=n.createElement("span",{className:"tooltipContainer"},this.props.tip):"object"===e(this.props.tip)?i=n.createElement("div",{className:"tooltipContainer"},this.props.tip):"function"==typeof this.props.tip&&(i=this.props.tip());var u="common-canvas-tooltip";this.props.className&&(u+=" "+this.props.className),this.linkClicked=!1;var c=null;if(this.state.isTooltipVisible&&this.props.tooltipLinkHandler&&this.props.link){var f=this.props.tooltipLinkHandler(this.props.link);"object"===e(f)&&f.label&&f.url&&(c=n.createElement("div",{ref:function(e){return t.linkRef=e},onKeyDown:function(e){if(e.stopPropagation(),e.preventDefault(),"Escape"===e.key)t.triggerRef.focus(),t.setTooltipVisible(!1);else if("Enter"===e.key){var i=t.linkRef.children[0];i&&window.open(i,"_blank")}},onBlur:function(){t.linkClicked?t.setTooltipVisible(!0):(t.triggerRef.focus(),t.linkClicked=!1,t.setTooltipVisible(!1))},onClick:function(){t.linkClicked=!0}},n.createElement(p,{className:"tooltip-link",id:this.props.link.id,href:f.url,target:"_blank",rel:"noopener",visited:!1,onMouseDown:function(t){t.preventDefault()}},f.label)))}var d=null;return(i||c)&&(d=n.createElement(r,null,n.createElement("div",{role:"tooltip",id:"".concat(this.uuid,"-").concat(this.props.id),"data-id":"".concat(this.uuid,"-").concat(this.props.id),className:u,"aria-hidden":!this.state.isTooltipVisible,direction:this.props.direction,ref:function(e){return t.targetRef=e},onMouseEnter:function(){t.inTooltip=!0},onMouseLeave:function(){t.inTooltip=!1,t.setTooltipVisible(!1)},onClick:this.stopEventPropagation,onMouseDown:this.stopEventPropagation},n.createElement("svg",{className:"tipArrow",x:"0px",y:"0px",viewBox:"0 0 9.1 16.1","aria-hidden":!0},n.createElement("polyline",{points:"9.1,15.7 1.4,8.1 9.1,0.5"}),n.createElement("polygon",{points:"8.1,16.1 0,8.1 8.1,0 8.1,1.4 1.4,8.1 8.1,14.7"})),i,c))),n.createElement("div",{className:"tooltip-container"},o,d)}}])}(n.Component);u.defaultProps={delay:200,direction:"bottom",showToolTipIfTruncated:!1,showToolTipOnClick:!1,hoverable:!1};export{u as default};
2
- //# sourceMappingURL=tooltip.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.es.js","sources":["../../src/tooltip/tooltip.jsx"],"sourcesContent":["/*\n * Copyright 2017-2026 Elyra Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/*\n\tThis code is a modified version from portal-common-api for the Elyra canvas tooltips\n*/\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Portal } from \"react-portal\";\nimport { Link } from \"@carbon/react\";\nimport { v4 as uuid4 } from \"uuid\";\n\nclass ToolTip extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tisTooltipVisible: false\n\t\t};\n\t\tthis.uuid = uuid4();\n\t\tthis.pendingTooltip = null;\n\t\tthis.hideTooltipOnScrollAndResize = this.hideTooltipOnScrollAndResize.bind(this);\n\t\tthis.handleMouseOverOtherTrigger = this.handleMouseOverOtherTrigger.bind(this);\n\t\tthis.stopEventPropagation = this.stopEventPropagation.bind(this);\n\t\tthis.tabKeyPressed = false;\n\t\t// Tooltip should not close if link inside tooltip is clicked.\n\t\tthis.linkClicked = false;\n\t\tthis.inTooltip = false; // A boolean variable that determines if the cursor is over the tooltip\n\t}\n\n\tcomponentDidMount() {\n\t\twindow.addEventListener(\"scroll\", this.hideTooltipOnScrollAndResize, true);\n\t\twindow.addEventListener(\"resize\", this.hideTooltipOnScrollAndResize, true);\n\t\tdocument.addEventListener(\"mouseover\", this.handleMouseOverOtherTrigger, true);\n\t\tif (this.props.targetObj) {\n\t\t\tthis.setTooltipVisible(true);\n\t\t}\n\t}\n\n\tcomponentWillUnmount() {\n\t\twindow.removeEventListener(\"scroll\", this.hideTooltipOnScrollAndResize, true);\n\t\twindow.removeEventListener(\"resize\", this.hideTooltipOnScrollAndResize, true);\n\t\tdocument.removeEventListener(\"mouseover\", this.handleMouseOverOtherTrigger, true);\n\t\tif (this.pendingTooltip) {\n\t\t\tclearTimeout(this.pendingTooltip);\n\t\t}\n\t}\n\n\tsetTooltipVisible(visible) {\n\t\t// clear the display timer if set\n\t\tif (!this.showTooltip() || (!visible && this.pendingTooltip)) {\n\t\t\tclearTimeout(this.pendingTooltip);\n\t\t\tthis.pendingTooltip = null;\n\t\t\tthis.setState({\n\t\t\t\tisTooltipVisible: false\n\t\t\t});\n\t\t}\n\n\n\t\tif (this.showTooltip()) {\n\t\t\tconst tooltip = document.querySelector(`[data-id='${this.uuid}-${this.props.id}']`);\n\t\t\tthis.pendingTooltip = null;\n\t\t\tthis.setState({\n\t\t\t\tisTooltipVisible: visible\n\t\t\t});\n\t\t\t// updates the tooltip display\n\t\t\tif (visible) {\n\t\t\t\tlet tooltipTrigger = null;\n\t\t\t\tif (this.props.targetObj) {\n\t\t\t\t\ttooltipTrigger = this.props.targetObj;\n\t\t\t\t} else {\n\t\t\t\t\ttooltipTrigger = document.querySelector(`[data-id='${this.uuid}-${this.props.id}-trigger']`);\n\t\t\t\t}\n\t\t\t\tif (tooltipTrigger && tooltip) {\n\t\t\t\t\tthis.updateTooltipLayout(tooltip, tooltipTrigger, tooltip.getAttribute(\"direction\"));\n\t\t\t\t}\n\n\t\t\t\tconst linkElement = this.targetRef?.querySelector(\"a\");\n\n\t\t\t\t// Focus on link when tooltip with link is opened\n\t\t\t\tif (linkElement) {\n\t\t\t\t\tlinkElement.focus();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tsetKeyPressed(evt) {\n\t\tif (evt.key === \"Tab\") {\n\t\t\tthis.tabKeyPressed = true;\n\t\t}\n\t\tif (evt.key === \"Escape\") {\n\t\t\tthis.triggerRef.focus();\n\t\t\tthis.setTooltipVisible(false);\n\t\t}\n\t}\n\n\tgetStyleValue(value) {\n\t\treturn value + \"px\";\n\t}\n\n\tgetNewDirection(currentDirection) {\n\t\tlet newDirection;\n\t\tswitch (currentDirection) {\n\t\tcase \"top\":\n\t\t\tnewDirection = \"bottom\";\n\t\t\tbreak;\n\t\tcase \"bottom\":\n\t\t\tnewDirection = \"top\";\n\t\t\tbreak;\n\t\tcase \"left\":\n\t\t\tnewDirection = \"right\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tnewDirection = \"left\";\n\t\t}\n\t\treturn newDirection;\n\t}\n\n\tshowTooltip() {\n\t\tconst canDisplayFullText = this.canDisplayFullText(this.triggerRef);\n\t\tconst showToolTip = (\n\t\t\t// show tooltip if not disabled and showToolTipIfTruncated is false\n\t\t\t(!this.props.disable && !this.props.showToolTipIfTruncated) ||\n\t\t\t// show tooltip if not disabled and showToolTipIfTruncated is true and string is truncated\n\t\t\t(!this.props.disable && this.props.showToolTipIfTruncated && !canDisplayFullText));\n\t\treturn showToolTip;\n\t}\n\n\tstopEventPropagation(evt) {\n\t\tevt.stopPropagation();\n\t}\n\n\t// Return true if the string can be displayed in the available space\n\t// Return false if the string is truncated and ellipsis is shown on the UI\n\t// (offsetWidth) is a measurement in pixels of the element's CSS width, including any borders, padding, and vertical scrollbars\n\t// (scrollWidth) value is equal to the minimum width the element would require\n\t// in order to fit all the content in the viewport without using a horizontal scrollbar\n\tcanDisplayFullText(elem) {\n\t\tlet triggerElem = elem;\n\t\tif (this.props.truncatedRef) {\n\t\t\tif (this.props.truncatedRef.current) {\n\t\t\t\t// Textfield controls within a table will not get rendered until after the table is rendered.\n\t\t\t\t// The ref passed in initially will be undefined so do not access current until it is available.\n\t\t\t\ttriggerElem = this.props.truncatedRef.current;\n\t\t\t} else {\n\t\t\t\ttriggerElem = this.props.truncatedRef;\n\t\t\t}\n\t\t}\n\t\tif (triggerElem) {\n\t\t\tconst fullWidth = triggerElem.firstChild && triggerElem.firstChild.scrollWidth && triggerElem.firstChild.scrollWidth !== 0 ? triggerElem.firstChild.scrollWidth\n\t\t\t\t: triggerElem.scrollWidth;\n\t\t\tconst childWidth = triggerElem.firstChild && triggerElem.firstChild.offsetWidth && triggerElem.firstChild.offsetWidth || 0;\n\t\t\t// need different handling when content is within a span vs div\n\t\t\tconst displayWidth = childWidth !== 0 && childWidth < triggerElem.offsetWidth ? childWidth : triggerElem.offsetWidth;\n\t\t\tconst canDisplayFullText = fullWidth <= displayWidth;\n\t\t\treturn canDisplayFullText;\n\t\t}\n\t\treturn false; // Show tooltip if we cannot read the width (Canvas objects)\n\t}\n\n\tshowTooltipWithDelay() {\n\n\t\t// set a delay on displaying the tooltip\n\t\tif (!this.pendingTooltip && this.showTooltip()) {\n\t\t\tconst that = this;\n\t\t\tthis.pendingTooltip = setTimeout(function() {\n\t\t\t\tthat.setTooltipVisible(true);\n\t\t\t}, this.props.delay);\n\t\t}\n\n\t}\n\n\tupdateTooltipLayout(tooltip, tooltipTrigger, direction) {\n\t\tconst tooltipDirection = direction;\n\t\tconst viewPortWidth = document.documentElement.clientWidth;\n\t\tconst viewPortHeight = document.documentElement.clientHeight;\n\t\tconst triggerLayout = tooltipTrigger.getBoundingClientRect();\n\t\tconst pointer = tooltip.querySelector(\"svg\");\n\t\tconst pointerLayout = pointer.getBoundingClientRect();\n\t\tconst pointerCorrection = 1;\n\n\t\t// always initialize tooltip location so it's all visible to ensure adjustments are done on the right size\n\t\ttooltip.style.left = this.getStyleValue(triggerLayout.left);\n\t\ttooltip.style.top = this.getStyleValue(triggerLayout.top);\n\n\t\tif (this.props.mousePos) {\n\t\t\tthis.updateLocationBasedOnMousePos(tooltip, this.props.mousePos, direction);\n\t\t} else { // tooltip relative to element\n\t\t\t// tooltip - left correction\n\t\t\tif (tooltipDirection === \"top\" || tooltipDirection === \"bottom\") {\n\t\t\t\tlet tooltipLeft = triggerLayout.left;\n\t\t\t\tif (tooltip.offsetWidth > triggerLayout.width) {\n\t\t\t\t\ttooltipLeft -= (tooltip.offsetWidth - triggerLayout.width) / 2; // distribute overlap evenly left and right\n\t\t\t\t\tif (tooltipLeft < 0) {\n\t\t\t\t\t\ttooltipLeft = 2; // hitting left border\n\t\t\t\t\t}\n\t\t\t\t} else if (tooltip.offsetWidth < triggerLayout.width) {\n\t\t\t\t\ttooltipLeft += (triggerLayout.width - tooltip.offsetWidth) / 2; // center tip within triggerLayout\n\t\t\t\t}\n\t\t\t\ttooltip.style.left = this.getStyleValue(tooltipLeft);\n\t\t\t\tif ((tooltipLeft + tooltip.offsetWidth) > viewPortWidth) {\n\t\t\t\t\ttooltip.style.left = this.getStyleValue(viewPortWidth - tooltip.offsetWidth); // hitting right border\n\t\t\t\t}\n\t\t\t} else if (tooltipDirection === \"left\") {\n\t\t\t\t// For long tooltips, tooltip.offsetWidth is updated after setting tooltip.style.left. Ensure tooltip doesn't overlap tooltipTrigger element.\n\t\t\t\twhile ((tooltip.offsetLeft + tooltip.offsetWidth + pointerLayout.width) > Math.round(triggerLayout.left)) {\n\t\t\t\t\ttooltip.style.left = this.getStyleValue(triggerLayout.left - tooltip.offsetWidth - pointerLayout.width);\n\t\t\t\t}\n\t\t\t} else if (tooltipDirection === \"right\") {\n\t\t\t\ttooltip.style.left = this.getStyleValue(triggerLayout.right + pointerLayout.width);\n\t\t\t}\n\n\t\t\t// tooltip - top correction\n\t\t\tif (tooltipDirection === \"top\") {\n\t\t\t\ttooltip.style.top = this.getStyleValue(triggerLayout.top - pointerLayout.height - tooltip.offsetHeight);\n\t\t\t} else if (tooltipDirection === \"bottom\") {\n\t\t\t\ttooltip.style.top = this.getStyleValue(triggerLayout.bottom + pointerLayout.height);\n\t\t\t} else if (tooltipDirection === \"left\" || tooltipDirection === \"right\") {\n\t\t\t\tlet tooltipTop = triggerLayout.top;\n\t\t\t\tif (tooltip.offsetHeight > triggerLayout.height) {\n\t\t\t\t\ttooltipTop -= (tooltip.offsetHeight - triggerLayout.height) / 2; // distribute overlap evenly top and bottom\n\t\t\t\t\tif (tooltipTop < 0) {\n\t\t\t\t\t\ttooltipTop = triggerLayout.top; // hitting top border\n\t\t\t\t\t}\n\t\t\t\t} else if (tooltip.offsetHeight < triggerLayout.height) {\n\t\t\t\t\ttooltipTop += (triggerLayout.height - tooltip.offsetHeight) / 2; // center tip within triggerLayout\n\t\t\t\t}\n\t\t\t\ttooltip.style.top = this.getStyleValue(tooltipTop + pointerCorrection);\n\t\t\t\tif ((viewPortHeight - tooltip.offsetHeight) < triggerLayout.top) {\n\t\t\t\t\ttooltip.style.top = this.getStyleValue(viewPortHeight - tooltip.offsetHeight); // hitting bottom border\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// pointer - left correction\n\t\t\tif (tooltipDirection === \"top\" || tooltipDirection === \"bottom\") {\n\t\t\t\tpointer.style.left = this.getStyleValue(triggerLayout.left - tooltip.getBoundingClientRect().left +\n\t\t\t\t\ttooltipTrigger.getBoundingClientRect().width / 2 - pointerLayout.width / 2\t + pointerCorrection);\n\t\t\t} else if (tooltipDirection === \"left\") {\n\t\t\t\tpointer.style.left = this.getStyleValue(tooltip.offsetWidth - 3);\n\t\t\t} else if (tooltipDirection === \"right\") {\n\t\t\t\tpointer.style.left = this.getStyleValue(-pointerLayout.width + 2);\n\t\t\t}\n\n\t\t\t// pointer - top correction\n\t\t\tif (tooltipDirection === \"top\") {\n\t\t\t\tpointer.style.top = this.getStyleValue(tooltip.offsetHeight - 5);\n\t\t\t} else if (tooltipDirection === \"bottom\") {\n\t\t\t\tpointer.style.top = \"-11px\";\n\t\t\t} else if (tooltipDirection === \"left\" || tooltipDirection === \"right\") {\n\t\t\t\tpointer.style.top = this.getStyleValue(triggerLayout.top - tooltip.getBoundingClientRect().top +\n\t\t\t\t\ttooltipTrigger.offsetHeight / 2 - pointerLayout.height / 2);\n\t\t\t}\n\t\t}\n\n\t\t// check if out-of-bounds at the end and if so, trigger new layout on opposite site if not already re-rendered already\n\t\tif (this.isOutOfBounds(tooltip) && tooltip.getAttribute(\"direction\") === tooltipDirection) {\n\t\t\tconst newDirection = this.getNewDirection(tooltipDirection);\n\t\t\tthis.updateTooltipLayout(tooltip, tooltipTrigger, newDirection);\n\t\t\t// update class name directly, otherwise setState triggers re-render loop in canvas\n\t\t\t// also call after updateTooltipLayout, otherwise the newDirection and class of trigger are the same\n\t\t\ttooltip.setAttribute(\"direction\", newDirection);\n\t\t\treturn;\n\t\t}\n\t}\n\n\tupdateLocationBasedOnMousePos(tooltip, mousePos, direction) {\n\t\tconst tooltipDirection = direction;\n\t\tconst viewPortWidth = document.documentElement.clientWidth;\n\t\tconst viewPortHeight = document.documentElement.clientHeight;\n\t\tconst pointer = tooltip.querySelector(\"svg\");\n\t\tconst pointerLayout = pointer.getBoundingClientRect();\n\t\tconst pointerCorrection = 1;\n\n\t\tconst mouseX = this.props.mousePos.x;\n\t\tconst mouseY = this.props.mousePos.y;\n\t\t// if mouse position is passed in, use the cursor as reference point\n\n\t\t// tooltip - left correction\n\t\tif (tooltipDirection === \"top\" || tooltipDirection === \"bottom\") {\n\t\t\tlet tooltipLeft = mouseX - tooltip.offsetWidth / 2;\n\t\t\tif ((viewPortWidth - tooltip.offsetWidth) < tooltipLeft) {\n\t\t\t\ttooltipLeft = viewPortWidth - tooltip.offsetWidth; // hitting right border\n\t\t\t} else if (tooltipLeft < 0) {\n\t\t\t\ttooltipLeft = 2; // hitting left border\n\t\t\t}\n\t\t\ttooltip.style.left = this.getStyleValue(tooltipLeft);\n\t\t} else if (tooltipDirection === \"left\") {\n\t\t\ttooltip.style.left = this.getStyleValue(mouseX - tooltip.offsetWidth - pointerLayout.width - 5);\n\t\t} else if (tooltipDirection === \"right\") {\n\t\t\ttooltip.style.left = this.getStyleValue(mouseX + pointerLayout.width + 5);\n\t\t}\n\n\t\t// tooltip - top correction\n\t\tif (tooltipDirection === \"top\") {\n\t\t\ttooltip.style.top = this.getStyleValue(mouseY - pointerLayout.height - tooltip.offsetHeight);\n\t\t} else if (tooltipDirection === \"bottom\") {\n\t\t\ttooltip.style.top = this.getStyleValue(mouseY + 2 * pointerLayout.height);\n\t\t} else if (tooltipDirection === \"left\" || tooltipDirection === \"right\") {\n\t\t\tlet tooltipTop = mouseY - tooltip.offsetHeight / 2;\n\t\t\tif ((viewPortHeight - tooltip.offsetHeight) < tooltipTop) {\n\t\t\t\ttooltipTop = viewPortHeight - tooltip.offsetHeight; // hitting bottom border\n\t\t\t} else if (tooltipTop < 0) {\n\t\t\t\ttooltipTop = 2; // hitting top border\n\t\t\t}\n\t\t\ttooltip.style.top = this.getStyleValue(tooltipTop + pointerCorrection);\n\t\t}\n\n\t\t// pointer - left correction\n\t\tif (tooltipDirection === \"top\" || tooltipDirection === \"bottom\") {\n\t\t\tpointer.style.left = this.getStyleValue(mouseX - tooltip.getBoundingClientRect().left - pointerLayout.width / 2);\n\t\t} else if (tooltipDirection === \"left\") {\n\t\t\tpointer.style.left = this.getStyleValue(tooltip.offsetWidth - 3);\n\t\t} else if (tooltipDirection === \"right\") {\n\t\t\tpointer.style.left = this.getStyleValue(-pointerLayout.width + 2);\n\t\t}\n\n\t\t// pointer - top correction\n\t\tif (tooltipDirection === \"top\") {\n\t\t\tpointer.style.top = this.getStyleValue(tooltip.offsetHeight - 5);\n\t\t} else if (tooltipDirection === \"bottom\") {\n\t\t\tpointer.style.top = \"-11px\";\n\t\t} else if (tooltipDirection === \"left\" || tooltipDirection === \"right\") {\n\t\t\tpointer.style.top = this.getStyleValue(mouseY - tooltip.getBoundingClientRect().top - pointerLayout.height / 2);\n\t\t}\n\t}\n\n\tisOutOfBounds(tooltip) {\n\t\tconst tooltipLeft = parseFloat(tooltip.style.left);\n\t\tconst tooltipTop = parseFloat(tooltip.style.top);\n\t\treturn (((tooltipLeft + tooltip.offsetWidth) > document.documentElement.clientWidth) || // to the right\n\t\t\t\t(tooltipLeft < 0) || // to the left\n\t\t\t\t(tooltipTop < 0) || // to the top\n\t\t\t\t((tooltipTop + tooltip.offsetHeight) > document.documentElement.clientHeight)); // to the bottom\n\t}\n\n\ttoggleTooltipOnClick(evt) {\n\t\t// 'blur' event occurs before 'click' event. Because of this, onBlur function is called which hides the tooltip.\n\t\t// To prevent this default behavior, stopPropagation and preventDefault is used.\n\t\tevt.stopPropagation();\n\t\tevt.preventDefault();\n\n\t\t// When tooltip with link is closed and another tooltip is opened newly opened tooltip should have focus.\n\t\tthis.triggerRef.focus();\n\t\tif (this.state.isTooltipVisible) {\n\t\t\t// Tooltip is visible and user clicks on trigger element again, hide tooltip\n\t\t\tthis.setTooltipVisible(false);\n\t\t} else {\n\t\t\tthis.setTooltipVisible(true);\n\t\t}\n\t}\n\n\thideTooltipOnScrollAndResize(evt) {\n\t\tif (this.state.isTooltipVisible && !this.linkClicked) {\n\t\t\tthis.setTooltipVisible(false);\n\t\t}\n\t}\n\n\t// Handles mouseover events on the document to detect when the user hovers\n\t// over a different tooltip trigger element. If detected, closes the current\n\t// tooltip to prevent multiple tooltips from being displayed simultaneously.\n\thandleMouseOverOtherTrigger(evt) {\n\t\tconst target = evt.target.closest(\".tooltip-trigger\");\n\t\tif (target && target !== this.triggerRef && this.state.isTooltipVisible) {\n\t\t\tthis.setTooltipVisible(false);\n\t\t}\n\t}\n\n\trender() {\n\t\tlet tooltipContent = null;\n\t\tlet triggerContent = null;\n\t\tif (this.props.children) {\n\t\t\t// when children are passed in, tooltip will handle show/hide, otherwise consumer has to hide show/hide tooltip\n\t\t\tconst mouseover = () => this.setTooltipVisible(true);\n\t\t\tlet mouseleave;\n\t\t\tif (this.props.hoverable) {\n\t\t\t\tmouseleave = () => {\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tif (!this.inTooltip) {\n\t\t\t\t\t\t\tthis.setTooltipVisible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}, 100);\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tmouseleave = () => this.setTooltipVisible(false);\n\t\t\t}\n\t\t\tconst mousedown = () => this.setTooltipVisible(false);\n\t\t\t// `focus` event occurs before `click`. Adding timeout in onFocus function to ensure click is executed first.\n\t\t\t// Ref - https://stackoverflow.com/a/49512400\n\t\t\tconst onKeyDown = (evt) => this.setKeyPressed(evt);\n\t\t\tconst onFocus = () => {\n\t\t\t\tif (this.props.showToolTipOnClick) {\n\t\t\t\t\tthis.showTooltipWithDelay();\n\t\t\t\t} else {\n\t\t\t\t\t// For regular hover tooltips, show immediately on focus for better keyboard accessibility\n\t\t\t\t\tthis.setTooltipVisible(true);\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst onBlur = (evt) => {\n\t\t\t\t// Close the tooltip if tab is clicked\n\t\t\t\tif (this.tabKeyPressed) {\n\t\t\t\t\tthis.setTooltipVisible(false);\n\t\t\t\t\tthis.tabKeyPressed = false;\n\t\t\t\t} else {\n\t\t\t\t\t// Check if evt.relatedTarget is a child of .common-canvas-tooltip to set tooltip visible when clicked on link\n\t\t\t\t\tconst el = evt?.relatedTarget?.closest(\".common-canvas-tooltip\");\n\t\t\t\t\tif (el?.tagName?.toLowerCase() === \"div\") {\n\t\t\t\t\t\tthis.setTooltipVisible(true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Close the tooltip if evt.relatedTarget is not a child of .common-canvas-tooltip\n\t\t\t\t\t\tthis.setTooltipVisible(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst click = (evt) => this.toggleTooltipOnClick(evt);\n\n\t\t\t// If the content has a tooltip that can be shown via hover, then it must also be doable via keyboard\n\t\t\tconst canDisplayFullText = this.canDisplayFullText(this.triggerRef);\n\t\t\tconst textOverflowing = this.props.showToolTipIfTruncated && !canDisplayFullText;\n\n\t\t\t// If the children wrapped by the tooltip can be focused, then the tooltip should be shown on focus\n\t\t\tconst enableKeyboardAccess = this.props.showToolTipOnClick || textOverflowing || !this.props.disable;\n\n\t\t\ttriggerContent = (<div\n\t\t\t\tdata-id={`${this.uuid}-${this.props.id}-trigger`}\n\t\t\t\tclassName=\"tooltip-trigger\"\n\t\t\t\tonMouseOver={!this.props.showToolTipOnClick ? mouseover : null}\n\t\t\t\tonMouseLeave={!this.props.showToolTipOnClick ? mouseleave : null}\n\t\t\t\tonMouseDown={!this.props.showToolTipOnClick ? mousedown : null}\n\t\t\t\tonClick={this.props.showToolTipOnClick ? click : null}\n\t\t\t\tonFocus={enableKeyboardAccess ? onFocus : null} // When focused using keyboard\n\t\t\t\tonBlur={enableKeyboardAccess ? onBlur : null}\n\t\t\t\tonKeyDown={this.props.showToolTipOnClick ? onKeyDown : null}\n\t\t\t\ttabIndex={this.props.showToolTipOnClick || textOverflowing ? 0 : null}\n\t\t\t\trole={this.props.showToolTipOnClick || textOverflowing ? \"button\" : null}\n\t\t\t\taria-labelledby={this.props.showToolTipOnClick || textOverflowing ? `${this.uuid}-${this.props.id}` : null}\n\t\t\t\taria-expanded={this.props.showToolTipOnClick || textOverflowing ? this.state.isTooltipVisible : null}\n\t\t\t\taria-controls={this.props.showToolTipOnClick || textOverflowing ? `${this.uuid}-${this.props.id}` : null}\n\t\t\t\tref={(ref) => (this.triggerRef = ref)}\n\t\t\t>\n\t\t\t\t{this.props.children}\n\t\t\t</div>);\n\t\t}\n\n\t\tif ((typeof this.props.tip) === \"string\") {\n\t\t\ttooltipContent = (\n\t\t\t\t<span className=\"tooltipContainer\">\n\t\t\t\t\t{this.props.tip}\n\t\t\t\t</span>\n\t\t\t);\n\t\t} else if ((typeof this.props.tip) === \"object\") {\n\t\t\ttooltipContent = (\n\t\t\t\t<div className=\"tooltipContainer\">\n\t\t\t\t\t{this.props.tip}\n\t\t\t\t</div>\n\t\t\t);\n\t\t} else if ((typeof this.props.tip) === \"function\") {\n\t\t\ttooltipContent = this.props.tip();\n\t\t}\n\n\t\tlet tipClass = \"common-canvas-tooltip\";\n\t\tif (this.props.className) {\n\t\t\ttipClass += \" \" + this.props.className;\n\t\t}\n\t\tthis.linkClicked = false;\n\t\tlet link = null;\n\t\tif (this.state.isTooltipVisible && this.props.tooltipLinkHandler && this.props.link) {\n\t\t\tconst linkInformation = this.props.tooltipLinkHandler(this.props.link);\n\t\t\t// Verify tooltipLinkHandler returns object in correct format\n\t\t\tif (typeof linkInformation === \"object\" && linkInformation.label && linkInformation.url) {\n\t\t\t\tlink = (<div\n\t\t\t\t\tref={(ref) => (this.linkRef = ref)}\n\t\t\t\t\tonKeyDown={(evt) => {\n\t\t\t\t\t\tevt.stopPropagation();\n\t\t\t\t\t\tevt.preventDefault();\n\n\t\t\t\t\t\t// When 'Esc' is pressed shift the focus to tooltip icon so that user can navigate following elements.\n\t\t\t\t\t\tif (evt.key === \"Escape\") {\n\t\t\t\t\t\t\tthis.triggerRef.focus();\n\t\t\t\t\t\t\tthis.setTooltipVisible(false);\n\t\t\t\t\t\t} else if (evt.key === \"Enter\") { // Open active/highlighted link when Enter or Return is clicked.\n\t\t\t\t\t\t\tconst focusedElement = this.linkRef.children[0];\n\t\t\t\t\t\t\tif (focusedElement) {\n\t\t\t\t\t\t\t\twindow.open(focusedElement, \"_blank\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tonBlur={() => {\n\t\t\t\t\t\tif (this.linkClicked) { // Keep tooltip open when link is clicked\n\t\t\t\t\t\t\tthis.setTooltipVisible(true);\n\t\t\t\t\t\t} else { // Close the tooltip and shift focus to tooltip icon\n\t\t\t\t\t\t\tthis.triggerRef.focus();\n\t\t\t\t\t\t\tthis.linkClicked = false;\n\t\t\t\t\t\t\tthis.setTooltipVisible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tthis.linkClicked = true;\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Link\n\t\t\t\t\t\tclassName=\"tooltip-link\"\n\t\t\t\t\t\tid={this.props.link.id}\n\t\t\t\t\t\thref={linkInformation.url}\n\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\trel=\"noopener\"\n\t\t\t\t\t\tvisited={false}\n\t\t\t\t\t\tonMouseDown={(evt) => {\n\t\t\t\t\t\t\tevt.preventDefault();\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{linkInformation.label}\n\t\t\t\t\t</Link>\n\t\t\t\t</div>);\n\t\t\t}\n\t\t}\n\n\t\tlet tooltip = null;\n\t\tif (tooltipContent || link) {\n\t\t\ttooltip = (\n\t\t\t\t<Portal>\n\t\t\t\t\t<div\n\t\t\t\t\t\trole=\"tooltip\"\n\t\t\t\t\t\tid={`${this.uuid}-${this.props.id}`}\n\t\t\t\t\t\tdata-id={`${this.uuid}-${this.props.id}`}\n\t\t\t\t\t\tclassName={tipClass}\n\t\t\t\t\t\taria-hidden={!this.state.isTooltipVisible}\n\t\t\t\t\t\tdirection={this.props.direction}\n\t\t\t\t\t\tref={(ref) => (this.targetRef = ref)}\n\t\t\t\t\t\tonMouseEnter={() => {\n\t\t\t\t\t\t\tthis.inTooltip = true;\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonMouseLeave={() => {\n\t\t\t\t\t\t\tthis.inTooltip = false;\n\t\t\t\t\t\t\tthis.setTooltipVisible(false);\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t// Stop event propagation to prevent tooltip from performing toolbar button click\n\t\t\t\t\t\tonClick={this.stopEventPropagation}\n\t\t\t\t\t\tonMouseDown={this.stopEventPropagation}\n\t\t\t\t\t>\n\t\t\t\t\t\t<svg className=\"tipArrow\" x=\"0px\" y=\"0px\" viewBox=\"0 0 9.1 16.1\" aria-hidden>\n\t\t\t\t\t\t\t<polyline points=\"9.1,15.7 1.4,8.1 9.1,0.5\" />\n\t\t\t\t\t\t\t<polygon points=\"8.1,16.1 0,8.1 8.1,0 8.1,1.4 1.4,8.1 8.1,14.7\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t{tooltipContent}\n\t\t\t\t\t\t{link}\n\t\t\t\t\t</div>\n\t\t\t\t</Portal>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<div className=\"tooltip-container\">\n\t\t\t\t{triggerContent}\n\t\t\t\t{tooltip}\n\t\t\t</div>\n\t\t);\n\t}\n}\n\nToolTip.propTypes = {\n\ttip: PropTypes.oneOfType([PropTypes.string, PropTypes.element, PropTypes.func]).isRequired,\n\tlink: PropTypes.object,\n\ttooltipLinkHandler: PropTypes.func,\n\tdirection: PropTypes.oneOf([\"left\", \"right\", \"top\", \"bottom\"]),\n\tchildren: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n\ttargetObj: PropTypes.object,\n\tid: PropTypes.string.isRequired,\n\tclassName: PropTypes.string,\n\tmousePos: PropTypes.object,\n\tdisable: PropTypes.bool, // Tooltip will not show if disabled\n\tshowToolTipIfTruncated: PropTypes.bool, // Set to true to only display tooltip if full text does not fit in displayable width\n\ttruncatedRef: PropTypes.object,\n\tdelay: PropTypes.number,\n\tshowToolTipOnClick: PropTypes.bool,\n\thoverable: PropTypes.bool, // If true, mouse cursor can be hovered over to the tooltip, instead of immediately disappearing.\n};\n\nToolTip.defaultProps = {\n\tdelay: 200,\n\tdirection: \"bottom\",\n\tshowToolTipIfTruncated: false, // False will always show Tooltip even when whole word can be displayed\n\tshowToolTipOnClick: false,\n\thoverable: false\n};\n\nexport default ToolTip;\n"],"names":["ToolTip","_React$Component","props","_this","_classCallCheck","state","isTooltipVisible","uuid","uuid4","pendingTooltip","hideTooltipOnScrollAndResize","bind","handleMouseOverOtherTrigger","stopEventPropagation","tabKeyPressed","linkClicked","inTooltip","_inherits","_createClass","key","value","window","addEventListener","this","document","targetObj","setTooltipVisible","removeEventListener","clearTimeout","visible","showTooltip","setState","tooltip","querySelector","concat","id","_this$targetRef","tooltipTrigger","updateTooltipLayout","getAttribute","linkElement","targetRef","focus","evt","triggerRef","currentDirection","newDirection","canDisplayFullText","disable","showToolTipIfTruncated","stopPropagation","elem","triggerElem","truncatedRef","current","fullWidth","firstChild","scrollWidth","childWidth","offsetWidth","that","setTimeout","delay","direction","tooltipDirection","viewPortWidth","documentElement","clientWidth","viewPortHeight","clientHeight","triggerLayout","getBoundingClientRect","pointer","pointerLayout","style","left","getStyleValue","top","mousePos","updateLocationBasedOnMousePos","tooltipLeft","width","offsetLeft","Math","round","right","height","offsetHeight","bottom","tooltipTop","isOutOfBounds","getNewDirection","setAttribute","mouseX","x","mouseY","y","parseFloat","preventDefault","target","closest","_this2","tooltipContent","triggerContent","children","mouseleave","hoverable","textOverflowing","enableKeyboardAccess","showToolTipOnClick","React","createElement","className","onMouseOver","onMouseLeave","onMouseDown","onClick","toggleTooltipOnClick","onFocus","showTooltipWithDelay","onBlur","_evt$relatedTarget","_el$tagName","el","relatedTarget","tagName","toLowerCase","onKeyDown","setKeyPressed","tabIndex","role","ref","tip","_typeof","tipClass","link","tooltipLinkHandler","linkInformation","label","url","linkRef","focusedElement","open","Link","href","rel","visited","Portal","onMouseEnter","viewBox","points","Component","defaultProps"],"mappings":"gYAyBMA,IAAAA,WAAOC,GACZ,SAAAD,EAAYE,GAAO,IAAAC,QAaM,OAbNC,OAAAJ,KAClBA,QAAME,SAANF,IAAAG,qEACKE,MAAQ,CACZC,kBAAkB,GAEnBH,EAAKI,KAAOC,IACZL,EAAKM,eAAiB,KACtBN,EAAKO,6BAA+BP,EAAKO,6BAA6BC,KAAIR,GAC1EA,EAAKS,4BAA8BT,EAAKS,4BAA4BD,KAAIR,GACxEA,EAAKU,qBAAuBV,EAAKU,qBAAqBF,KAAIR,GAC1DA,EAAKW,eAAgB,EAErBX,EAAKY,aAAc,EACnBZ,EAAKa,WAAY,EAAOb,CACzB,CAAC,OAAAc,EAAAjB,EAAAC,GAAAiB,EAAAlB,EAAA,CAAA,CAAAmB,IAAA,oBAAAC,MAED,WACCC,OAAOC,iBAAiB,SAAUC,KAAKb,8BAA8B,GACrEW,OAAOC,iBAAiB,SAAUC,KAAKb,8B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