@itwin/presentation-hierarchies-react 2.0.0-alpha.54 → 2.0.0-alpha.56

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 (128) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +23 -61
  3. package/lib/presentation-hierarchies-react/Renderers.d.ts.map +1 -0
  4. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/TreeNode.d.ts +2 -0
  5. package/lib/presentation-hierarchies-react/TreeNode.d.ts.map +1 -0
  6. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/UseIModelTree.d.ts +1 -1
  7. package/lib/presentation-hierarchies-react/UseIModelTree.d.ts.map +1 -0
  8. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/UseIModelTree.js +43 -48
  9. package/lib/presentation-hierarchies-react/UseIModelTree.js.map +1 -0
  10. package/lib/presentation-hierarchies-react/UseNodeHighlighting.d.ts.map +1 -0
  11. package/lib/presentation-hierarchies-react/UseNodeHighlighting.js.map +1 -0
  12. package/lib/presentation-hierarchies-react/UseSelectionHandler.d.ts.map +1 -0
  13. package/lib/presentation-hierarchies-react/UseSelectionHandler.js.map +1 -0
  14. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/UseTree.d.ts +8 -3
  15. package/lib/presentation-hierarchies-react/UseTree.d.ts.map +1 -0
  16. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/UseTree.js +21 -21
  17. package/lib/presentation-hierarchies-react/UseTree.js.map +1 -0
  18. package/lib/presentation-hierarchies-react/Utils.js.map +1 -0
  19. package/lib/presentation-hierarchies-react/internal/DisposePolyfill.js.map +1 -0
  20. package/lib/presentation-hierarchies-react/internal/LocalizedStrings.d.ts +9 -0
  21. package/lib/presentation-hierarchies-react/internal/LocalizedStrings.d.ts.map +1 -0
  22. package/lib/presentation-hierarchies-react/internal/LocalizedStrings.js +12 -0
  23. package/lib/presentation-hierarchies-react/internal/LocalizedStrings.js.map +1 -0
  24. package/lib/presentation-hierarchies-react/internal/TreeActions.js.map +1 -0
  25. package/lib/presentation-hierarchies-react/internal/TreeLoader.js.map +1 -0
  26. package/lib/presentation-hierarchies-react/internal/TreeModel.js.map +1 -0
  27. package/lib/presentation-hierarchies-react/internal/UseUnifiedSelection.d.ts.map +1 -0
  28. package/lib/presentation-hierarchies-react/internal/UseUnifiedSelection.js.map +1 -0
  29. package/lib/presentation-hierarchies-react/internal/Utils.js.map +1 -0
  30. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/ErrorItemRenderer.d.ts +3 -3
  31. package/lib/presentation-hierarchies-react/stratakit/ErrorItemRenderer.d.ts.map +1 -0
  32. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/ErrorItemRenderer.js +158 -128
  33. package/lib/presentation-hierarchies-react/stratakit/ErrorItemRenderer.js.map +1 -0
  34. package/lib/presentation-hierarchies-react/stratakit/FlatTreeNode.d.ts.map +1 -0
  35. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/FlatTreeNode.js +7 -4
  36. package/lib/presentation-hierarchies-react/stratakit/FlatTreeNode.js.map +1 -0
  37. package/lib/presentation-hierarchies-react/stratakit/LocalizationContext.d.ts +24 -0
  38. package/lib/presentation-hierarchies-react/stratakit/LocalizationContext.d.ts.map +1 -0
  39. package/lib/presentation-hierarchies-react/stratakit/LocalizationContext.js +41 -0
  40. package/lib/presentation-hierarchies-react/stratakit/LocalizationContext.js.map +1 -0
  41. package/lib/presentation-hierarchies-react/stratakit/RootErrorRenderer.d.ts.map +1 -0
  42. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/RootErrorRenderer.js +64 -46
  43. package/lib/presentation-hierarchies-react/stratakit/RootErrorRenderer.js.map +1 -0
  44. package/lib/presentation-hierarchies-react/stratakit/TreeAction.d.ts.map +1 -0
  45. package/lib/presentation-hierarchies-react/stratakit/TreeAction.js.map +1 -0
  46. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeErrorRenderer.d.ts +3 -3
  47. package/lib/presentation-hierarchies-react/stratakit/TreeErrorRenderer.d.ts.map +1 -0
  48. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeErrorRenderer.js +19 -20
  49. package/lib/presentation-hierarchies-react/stratakit/TreeErrorRenderer.js.map +1 -0
  50. package/lib/presentation-hierarchies-react/stratakit/TreeNodeFilterAction.d.ts.map +1 -0
  51. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeNodeFilterAction.js +43 -30
  52. package/lib/presentation-hierarchies-react/stratakit/TreeNodeFilterAction.js.map +1 -0
  53. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenameAction.d.ts.map +1 -0
  54. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeNodeRenameAction.js +37 -31
  55. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenameAction.js.map +1 -0
  56. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenderer.d.ts.map +1 -0
  57. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeNodeRenderer.js +227 -192
  58. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenderer.js.map +1 -0
  59. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeRenderer.d.ts +3 -6
  60. package/lib/presentation-hierarchies-react/stratakit/TreeRenderer.d.ts.map +1 -0
  61. package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeRenderer.js +39 -45
  62. package/lib/presentation-hierarchies-react/stratakit/TreeRenderer.js.map +1 -0
  63. package/lib/{esm/presentation-hierarchies-react.d.ts → presentation-hierarchies-react.d.ts} +3 -2
  64. package/lib/{esm/presentation-hierarchies-react.js → presentation-hierarchies-react.js} +3 -2
  65. package/lib/public/locales/en/PresentationHierarchies_1.0.json +26 -0
  66. package/package.json +19 -15
  67. package/lib/esm/presentation-hierarchies-react/Renderers.d.ts.map +0 -1
  68. package/lib/esm/presentation-hierarchies-react/TreeNode.d.ts.map +0 -1
  69. package/lib/esm/presentation-hierarchies-react/UseIModelTree.d.ts.map +0 -1
  70. package/lib/esm/presentation-hierarchies-react/UseIModelTree.js.map +0 -1
  71. package/lib/esm/presentation-hierarchies-react/UseNodeHighlighting.d.ts.map +0 -1
  72. package/lib/esm/presentation-hierarchies-react/UseNodeHighlighting.js.map +0 -1
  73. package/lib/esm/presentation-hierarchies-react/UseSelectionHandler.d.ts.map +0 -1
  74. package/lib/esm/presentation-hierarchies-react/UseSelectionHandler.js.map +0 -1
  75. package/lib/esm/presentation-hierarchies-react/UseTree.d.ts.map +0 -1
  76. package/lib/esm/presentation-hierarchies-react/UseTree.js.map +0 -1
  77. package/lib/esm/presentation-hierarchies-react/Utils.js.map +0 -1
  78. package/lib/esm/presentation-hierarchies-react/internal/DisposePolyfill.js.map +0 -1
  79. package/lib/esm/presentation-hierarchies-react/internal/TreeActions.js.map +0 -1
  80. package/lib/esm/presentation-hierarchies-react/internal/TreeLoader.js.map +0 -1
  81. package/lib/esm/presentation-hierarchies-react/internal/TreeModel.js.map +0 -1
  82. package/lib/esm/presentation-hierarchies-react/internal/UseUnifiedSelection.d.ts.map +0 -1
  83. package/lib/esm/presentation-hierarchies-react/internal/UseUnifiedSelection.js.map +0 -1
  84. package/lib/esm/presentation-hierarchies-react/internal/Utils.js.map +0 -1
  85. package/lib/esm/presentation-hierarchies-react/stratakit/ErrorItemRenderer.d.ts.map +0 -1
  86. package/lib/esm/presentation-hierarchies-react/stratakit/ErrorItemRenderer.js.map +0 -1
  87. package/lib/esm/presentation-hierarchies-react/stratakit/FlatTreeNode.d.ts.map +0 -1
  88. package/lib/esm/presentation-hierarchies-react/stratakit/FlatTreeNode.js.map +0 -1
  89. package/lib/esm/presentation-hierarchies-react/stratakit/LocalizationContext.d.ts +0 -138
  90. package/lib/esm/presentation-hierarchies-react/stratakit/LocalizationContext.d.ts.map +0 -1
  91. package/lib/esm/presentation-hierarchies-react/stratakit/LocalizationContext.js +0 -67
  92. package/lib/esm/presentation-hierarchies-react/stratakit/LocalizationContext.js.map +0 -1
  93. package/lib/esm/presentation-hierarchies-react/stratakit/RootErrorRenderer.d.ts.map +0 -1
  94. package/lib/esm/presentation-hierarchies-react/stratakit/RootErrorRenderer.js.map +0 -1
  95. package/lib/esm/presentation-hierarchies-react/stratakit/TreeAction.d.ts.map +0 -1
  96. package/lib/esm/presentation-hierarchies-react/stratakit/TreeAction.js.map +0 -1
  97. package/lib/esm/presentation-hierarchies-react/stratakit/TreeErrorRenderer.d.ts.map +0 -1
  98. package/lib/esm/presentation-hierarchies-react/stratakit/TreeErrorRenderer.js.map +0 -1
  99. package/lib/esm/presentation-hierarchies-react/stratakit/TreeNodeFilterAction.d.ts.map +0 -1
  100. package/lib/esm/presentation-hierarchies-react/stratakit/TreeNodeFilterAction.js.map +0 -1
  101. package/lib/esm/presentation-hierarchies-react/stratakit/TreeNodeRenameAction.d.ts.map +0 -1
  102. package/lib/esm/presentation-hierarchies-react/stratakit/TreeNodeRenameAction.js.map +0 -1
  103. package/lib/esm/presentation-hierarchies-react/stratakit/TreeNodeRenderer.d.ts.map +0 -1
  104. package/lib/esm/presentation-hierarchies-react/stratakit/TreeNodeRenderer.js.map +0 -1
  105. package/lib/esm/presentation-hierarchies-react/stratakit/TreeRenderer.d.ts.map +0 -1
  106. package/lib/esm/presentation-hierarchies-react/stratakit/TreeRenderer.js.map +0 -1
  107. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/Renderers.d.ts +0 -0
  108. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/UseNodeHighlighting.d.ts +0 -0
  109. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/UseNodeHighlighting.js +0 -0
  110. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/UseSelectionHandler.d.ts +0 -0
  111. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/UseSelectionHandler.js +0 -0
  112. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/Utils.js +0 -0
  113. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/internal/DisposePolyfill.js +0 -0
  114. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/internal/TreeActions.js +0 -0
  115. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/internal/TreeLoader.js +0 -0
  116. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/internal/TreeModel.d.ts +0 -0
  117. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/internal/TreeModel.js +0 -0
  118. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/internal/UseUnifiedSelection.d.ts +0 -0
  119. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/internal/UseUnifiedSelection.js +0 -0
  120. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/internal/Utils.js +0 -0
  121. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/FlatTreeNode.d.ts +0 -0
  122. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/RootErrorRenderer.d.ts +0 -0
  123. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeAction.d.ts +0 -0
  124. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeAction.js +0 -0
  125. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeNodeFilterAction.d.ts +0 -0
  126. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeNodeRenameAction.d.ts +0 -0
  127. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeNodeRenderer.css +0 -0
  128. /package/lib/{esm/presentation-hierarchies-react → presentation-hierarchies-react}/stratakit/TreeNodeRenderer.d.ts +0 -0
@@ -1,5 +1,5 @@
1
+ import { useTranslation } from "./LocalizationContext.js";
1
2
  import { TreeActionBase } from "./TreeAction.js";
2
- import { useLocalizationContext } from "./LocalizationContext.js";
3
3
  import { c } from "react-compiler-runtime";
4
4
  import { createContext, memo, useContext, useState } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -18,7 +18,7 @@ import renameSvg from "@stratakit/icons/rename.svg";
18
18
  * @alpha
19
19
  */
20
20
  const TreeNodeRenameAction = memo(function TreeNodeRenameAction(t0) {
21
- const $ = c(14);
21
+ const $ = c(16);
22
22
  let actionAttributes;
23
23
  let node;
24
24
  if ($[0] !== t0) {
@@ -30,45 +30,51 @@ const TreeNodeRenameAction = memo(function TreeNodeRenameAction(t0) {
30
30
  actionAttributes = $[1];
31
31
  node = $[2];
32
32
  }
33
- const { localizedStrings } = useLocalizationContext();
33
+ const translate = useTranslation();
34
34
  const context = useTreeNodeRenameContext();
35
- const { rename } = localizedStrings;
36
35
  let t1;
37
- if ($[3] !== context || $[4] !== node) {
38
- t1 = context?.canRename(node) ?? false;
39
- $[3] = context;
40
- $[4] = node;
41
- $[5] = t1;
42
- } else t1 = $[5];
43
- const canRename = t1;
44
- const startRename = context?.startRename;
36
+ if ($[3] !== translate) {
37
+ t1 = translate("rename");
38
+ $[3] = translate;
39
+ $[4] = t1;
40
+ } else t1 = $[4];
41
+ const rename = t1;
45
42
  let t2;
46
- if ($[6] !== node || $[7] !== startRename) {
47
- t2 = () => {
43
+ if ($[5] !== context || $[6] !== node) {
44
+ t2 = context?.canRename(node) ?? false;
45
+ $[5] = context;
46
+ $[6] = node;
47
+ $[7] = t2;
48
+ } else t2 = $[7];
49
+ const canRename = t2;
50
+ const startRename = context?.startRename;
51
+ let t3;
52
+ if ($[8] !== node || $[9] !== startRename) {
53
+ t3 = () => {
48
54
  startRename?.(node);
49
55
  };
50
- $[6] = node;
51
- $[7] = startRename;
52
- $[8] = t2;
53
- } else t2 = $[8];
54
- const handleClick = t2;
55
- const t3 = !canRename;
56
- let t4;
57
- if ($[9] !== actionAttributes || $[10] !== handleClick || $[11] !== rename || $[12] !== t3) {
58
- t4 = /* @__PURE__ */ jsx(TreeActionBase, {
56
+ $[8] = node;
57
+ $[9] = startRename;
58
+ $[10] = t3;
59
+ } else t3 = $[10];
60
+ const handleClick = t3;
61
+ const t4 = !canRename;
62
+ let t5;
63
+ if ($[11] !== actionAttributes || $[12] !== handleClick || $[13] !== rename || $[14] !== t4) {
64
+ t5 = /* @__PURE__ */ jsx(TreeActionBase, {
59
65
  ...actionAttributes,
60
66
  label: rename,
61
67
  onClick: handleClick,
62
68
  icon: renameSvg,
63
- hide: t3
69
+ hide: t4
64
70
  });
65
- $[9] = actionAttributes;
66
- $[10] = handleClick;
67
- $[11] = rename;
68
- $[12] = t3;
69
- $[13] = t4;
70
- } else t4 = $[13];
71
- return t4;
71
+ $[11] = actionAttributes;
72
+ $[12] = handleClick;
73
+ $[13] = rename;
74
+ $[14] = t4;
75
+ $[15] = t5;
76
+ } else t5 = $[15];
77
+ return t5;
72
78
  });
73
79
  const treeNodeRenameContext = createContext(void 0);
74
80
  /** @internal */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeNodeRenameAction.js","names":["createContext","memo","useCallback","useContext","useMemo","useState","renameSvg","useTranslation","TreeActionBase","NamedExoticComponent","PropsWithChildren","TreeNode","TreeActionBaseAttributes","TreeNodeRenameAction","node","t0","$","_c","actionAttributes","translate","context","useTreeNodeRenameContext","t1","rename","t2","canRename","startRename","t3","handleClick","t4","t5","TreeNodeEditingProps","onLabelChanged","newLabel","labelValidationHint","validate","RenameParameters","nodeId","commit","TreeNodeRenameContext","renameParameters","cancelRename","treeNodeRenameContext","undefined","TreeNodeRenameContextProvider","value","children","useTreeNodeRenameContextValue","getEditingProps","setRenameParameters","id","Symbol","for","node_0"],"sources":["../../../src/presentation-hierarchies-react/stratakit/TreeNodeRenameAction.tsx"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n\nimport { createContext, memo, useCallback, useContext, useMemo, useState } from \"react\";\nimport renameSvg from \"@stratakit/icons/rename.svg\";\nimport { useTranslation } from \"./LocalizationContext.js\";\nimport { TreeActionBase } from \"./TreeAction.js\";\n\nimport type { NamedExoticComponent, PropsWithChildren } from \"react\";\nimport type { TreeNode } from \"../TreeNode.js\";\nimport type { TreeActionBaseAttributes } from \"./TreeAction.js\";\n\n/**\n * React component that renders a rename action for a tree item.\n *\n * The tree component must have `getEditingProps.onLabelChanged` prop set to enable renaming functionality. When\n * rename is completed, the `onLabelChanged` function is called to make the actual data update.\n *\n * @see `getMenuActions`, `getInlineActions`, `getContextMenuActions` props of `TreeRenderer` to add this action\n * to tree items.\n *\n * @alpha\n */\nexport const TreeNodeRenameAction: NamedExoticComponent<TreeActionBaseAttributes & { node: TreeNode }> = memo(function TreeNodeRenameAction({\n node,\n ...actionAttributes\n}: TreeActionBaseAttributes & { node: TreeNode }) {\n const translate = useTranslation();\n const context = useTreeNodeRenameContext();\n const rename = translate(\"rename\");\n\n const canRename = context?.canRename(node) ?? false;\n const startRename = context?.startRename;\n const handleClick = useCallback(() => {\n startRename?.(node);\n }, [startRename, node]);\n\n return <TreeActionBase {...actionAttributes} label={rename} onClick={handleClick} icon={renameSvg} hide={!canRename} />;\n});\n\n/** @alpha */\nexport interface TreeNodeEditingProps {\n /**\n * A callback that is invoked when node label is changed. Should be used together\n * with `<TreeNodeRenameAction />` to enter label editing mode.\n */\n onLabelChanged: (newLabel: string) => void;\n labelValidationHint?: string;\n validate?: (newLabel: string) => boolean;\n}\n\n/** @internal */\nexport interface RenameParameters {\n nodeId: string;\n commit: (newLabel: string) => void;\n labelValidationHint?: string;\n validate?: (newLabel: string) => boolean;\n}\n\ninterface TreeNodeRenameContext {\n renameParameters?: RenameParameters;\n startRename: (node: TreeNode) => void;\n canRename: (node: TreeNode) => boolean;\n cancelRename: () => void;\n}\n\nconst treeNodeRenameContext = createContext<TreeNodeRenameContext | undefined>(undefined);\n\n/** @internal */\nexport const useTreeNodeRenameContext = () => {\n return useContext(treeNodeRenameContext);\n};\n\n/** @internal */\nexport function TreeNodeRenameContextProvider({ value, children }: PropsWithChildren<{ value: TreeNodeRenameContext }>) {\n return <treeNodeRenameContext.Provider value={value}>{children}</treeNodeRenameContext.Provider>;\n}\n\n/** @internal */\nexport function useTreeNodeRenameContextValue({ getEditingProps }: { getEditingProps?: (node: TreeNode) => TreeNodeEditingProps | undefined }) {\n const [renameParameters, setRenameParameters] = useState<RenameParameters | undefined>(undefined);\n\n const startRename = useCallback(\n (node: TreeNode) => {\n const { onLabelChanged, labelValidationHint, validate } = getEditingProps?.(node) ?? {};\n if (onLabelChanged) {\n setRenameParameters({\n nodeId: node.id,\n commit: (newLabel) => {\n onLabelChanged(newLabel);\n setRenameParameters(undefined);\n },\n labelValidationHint,\n validate,\n });\n }\n },\n [getEditingProps],\n );\n\n const cancelRename = useCallback(() => {\n setRenameParameters(undefined);\n }, []);\n\n const canRename = useCallback(\n (node: TreeNode) => {\n return getEditingProps?.(node)?.onLabelChanged !== undefined;\n },\n [getEditingProps],\n );\n\n return useMemo(\n () => ({\n renameParameters,\n cancelRename,\n startRename,\n canRename,\n }),\n [renameParameters, canRename, startRename, cancelRename],\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,MAAaa,uBAA4FZ,KAAK,SAAAY,qBAAAE,IAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAJ;AAAA,KAAAE,EAAA,OAAAD,IAAA;AAA8B,GAAA,CAAAD,SAAAI,oBAAAH;AAG5FC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAF;QAAA;AAAAI,qBAAAF,EAAA;AAAAF,SAAAE,EAAA;;CAC9C,MAAAG,YAAkBZ,g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