@labelbee/lb-components 1.23.0-alpha.8 → 1.23.0-alpha.80

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 (239) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/_virtual/2DViewWorker.js +1 -0
  3. package/dist/_virtual/highlightSegmentWorker.js +1 -1
  4. package/dist/assets/annotation/icon_link.svg.js +1 -0
  5. package/dist/assets/annotation/icon_unlink.svg.js +1 -0
  6. package/dist/assets/annotation/pointCloudTool/Image2DBoxScale.svg.js +1 -0
  7. package/dist/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -1
  8. package/dist/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -1
  9. package/dist/assets/annotation/pointCloudTool/rotate90_black.svg.js +1 -0
  10. package/dist/assets/icons/ad33251.svg +26 -0
  11. package/dist/components/AnnotationView/index.js +1 -1
  12. package/dist/components/DynamicResizer/DynamicResizer.js +1 -0
  13. package/dist/components/DynamicResizer/assets/bottomToZero.svg.js +1 -0
  14. package/dist/components/DynamicResizer/assets/divider.svg.js +1 -0
  15. package/dist/components/DynamicResizer/assets/topToZero.svg.js +1 -0
  16. package/dist/components/DynamicResizer/hooks/useDrag.js +1 -0
  17. package/dist/components/DynamicResizer/hooks/useUpdateHeight.js +1 -0
  18. package/dist/components/DynamicResizer/index.js +1 -0
  19. package/dist/components/LLMToolView/index.js +1 -1
  20. package/dist/components/LLMToolView/questionView/components/header/index.js +1 -1
  21. package/dist/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  22. package/dist/components/LLMToolView/sidebar/components/textEditor/index.module.scss.js +1 -1
  23. package/dist/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  24. package/dist/components/LLMToolView/sidebar/index.js +1 -1
  25. package/dist/components/LLMToolView/utils/data.js +1 -1
  26. package/dist/components/NLPToolView/index.js +1 -1
  27. package/dist/components/audioAnnotate/audioContext/index.js +1 -1
  28. package/dist/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
  29. package/dist/components/audioAnnotate/index.js +1 -1
  30. package/dist/components/audioAnnotate/textInput/index.js +1 -1
  31. package/dist/components/audioAnnotate/textInput/index.module.scss.js +1 -1
  32. package/dist/components/audioAnnotate/utils/dataTransform.js +1 -0
  33. package/dist/components/audioPlayer/clipRegion/index.js +1 -1
  34. package/dist/components/audioPlayer/index.js +1 -1
  35. package/dist/components/audioPlayer/useAudioCombine/index.js +3 -2
  36. package/dist/components/audioPlayer/useAudioSegment/index.js +1 -1
  37. package/dist/components/longText/index.js +1 -1
  38. package/dist/components/pointCloud2DRectOperationView/index.js +1 -1
  39. package/dist/components/pointCloud2DRectOperationView/useUpdateRectList.js +1 -0
  40. package/dist/components/pointCloud2DRectOperationView/util.js +1 -0
  41. package/dist/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  42. package/dist/components/pointCloudView/PointCloud2DView.js +1 -1
  43. package/dist/components/pointCloudView/PointCloud3DView.js +1 -1
  44. package/dist/components/pointCloudView/PointCloudBackView.js +1 -1
  45. package/dist/components/pointCloudView/PointCloudContext.js +1 -1
  46. package/dist/components/pointCloudView/PointCloudInfos.js +1 -1
  47. package/dist/components/pointCloudView/PointCloudLayout.js +1 -1
  48. package/dist/components/pointCloudView/PointCloudListener.js +1 -1
  49. package/dist/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  50. package/dist/components/pointCloudView/PointCloudSideView.js +1 -1
  51. package/dist/components/pointCloudView/PointCloudTopView.js +1 -1
  52. package/dist/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  53. package/dist/components/pointCloudView/hooks/useBoxes.js +1 -1
  54. package/dist/components/pointCloudView/hooks/useDataLinkSwitch.js +1 -0
  55. package/dist/components/pointCloudView/hooks/useHighlight.js +1 -1
  56. package/dist/components/pointCloudView/hooks/useHistory.js +1 -1
  57. package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
  58. package/dist/components/pointCloudView/hooks/usePolygon.js +1 -1
  59. package/dist/components/pointCloudView/hooks/useRotate.js +1 -1
  60. package/dist/components/pointCloudView/hooks/useRotateEdge.js +1 -0
  61. package/dist/components/pointCloudView/hooks/useSingleBox.js +1 -1
  62. package/dist/components/pointCloudView/hooks/useStatus.js +1 -1
  63. package/dist/components/pointCloudView/hooks/useTimeoutFunc.js +1 -0
  64. package/dist/components/pointCloudView/hooks/useWindowKeydownListener.js +1 -0
  65. package/dist/components/pointCloudView/index.js +1 -1
  66. package/dist/components/pointCloudView/utils/event-polyfill.js +1 -0
  67. package/dist/components/pointCloudView/utils/map.js +1 -0
  68. package/dist/components/subAttributeList/index.js +1 -0
  69. package/dist/components/videoAnnotate/videoClipTool/index.js +1 -1
  70. package/dist/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -1
  71. package/dist/hooks/useToolStyle.js +1 -0
  72. package/dist/index.css +138 -17
  73. package/dist/index.js +1 -1
  74. package/dist/store/Actions.js +1 -1
  75. package/dist/store/annotatedBox/index.js +1 -1
  76. package/dist/store/annotation/actionCreators.js +1 -1
  77. package/dist/store/annotation/reducer.js +1 -1
  78. package/dist/types/App.d.ts +5 -1
  79. package/dist/types/components/AnnotationView/index.d.ts +1 -0
  80. package/dist/types/components/DynamicResizer/DynamicResizer.d.ts +5 -0
  81. package/dist/types/components/DynamicResizer/hooks/useDrag.d.ts +12 -0
  82. package/dist/types/components/DynamicResizer/hooks/useUpdateHeight.d.ts +23 -0
  83. package/dist/types/components/DynamicResizer/index.d.ts +2 -0
  84. package/dist/types/components/DynamicResizer/types/interface.d.ts +17 -0
  85. package/dist/types/components/LLMToolView/utils/data.d.ts +1 -1
  86. package/dist/types/components/audioAnnotate/audioContext/index.d.ts +10 -2
  87. package/dist/types/components/audioAnnotate/textInput/index.d.ts +1 -0
  88. package/dist/types/components/audioAnnotate/utils/dataTransform.d.ts +9 -0
  89. package/dist/types/components/audioPlayer/index.d.ts +28 -21
  90. package/dist/types/components/longText/index.d.ts +1 -0
  91. package/dist/types/components/pointCloud2DRectOperationView/index.d.ts +1 -0
  92. package/dist/types/components/pointCloud2DRectOperationView/useUpdateRectList.d.ts +2 -0
  93. package/dist/types/components/pointCloud2DRectOperationView/util.d.ts +8 -0
  94. package/dist/types/components/pointCloudView/2DViewWorker.d.ts +1 -0
  95. package/dist/types/components/pointCloudView/PointCloud2DView.d.ts +2 -1
  96. package/dist/types/components/pointCloudView/PointCloudContext.d.ts +28 -4
  97. package/dist/types/components/pointCloudView/PointCloudLayout.d.ts +1 -0
  98. package/dist/types/components/pointCloudView/components/HighlightVisible/index.d.ts +2 -1
  99. package/dist/types/components/pointCloudView/hooks/useDataLinkSwitch.d.ts +19 -0
  100. package/dist/types/components/pointCloudView/hooks/useHighlight.d.ts +1 -1
  101. package/dist/types/components/pointCloudView/hooks/usePointCloudViews.d.ts +8 -0
  102. package/dist/types/components/pointCloudView/hooks/useRotateEdge.d.ts +9 -0
  103. package/dist/types/components/pointCloudView/hooks/useSingleBox.d.ts +3 -2
  104. package/dist/types/components/pointCloudView/hooks/useTimeoutFunc.d.ts +6 -0
  105. package/dist/types/components/pointCloudView/hooks/useWindowKeydownListener.d.ts +16 -0
  106. package/dist/types/components/pointCloudView/utils/event-polyfill.d.ts +8 -0
  107. package/dist/types/components/pointCloudView/utils/map.d.ts +11 -0
  108. package/dist/types/components/subAttributeList/index.d.ts +10 -0
  109. package/dist/types/components/videoAnnotate/index.d.ts +2 -1
  110. package/dist/types/components/videoAnnotate/videoClipTool/index.d.ts +2 -1
  111. package/dist/types/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.d.ts +1 -1
  112. package/dist/types/hooks/useToolStyle.d.ts +30 -0
  113. package/dist/types/index.d.ts +7 -2
  114. package/dist/types/store/Actions.d.ts +1 -0
  115. package/dist/types/store/annotatedBox/index.d.ts +2 -0
  116. package/dist/types/store/annotation/actionCreators.d.ts +3 -2
  117. package/dist/types/store/annotation/reducer.d.ts +1 -0
  118. package/dist/types/store/annotation/types.d.ts +9 -2
  119. package/dist/types/utils/AnnotationDataUtils.d.ts +58 -1
  120. package/dist/types/utils/ToolPointCloudBoxRenderHelper.d.ts +23 -0
  121. package/dist/types/utils/index.d.ts +31 -1
  122. package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.d.ts +3 -0
  123. package/dist/types/views/MainView/sidebar/TextToolSidebar/index.d.ts +1 -1
  124. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.d.ts +9 -0
  125. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.d.ts +3 -0
  126. package/dist/types/views/MainView/toolFooter/BatchSwitchConnectIn2DView/index.d.ts +1 -0
  127. package/dist/types/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.d.ts +10 -2
  128. package/dist/types/views/MainView/toolFooter/index.d.ts +1 -1
  129. package/dist/types/views/MainView/toolHeader/StepSwitch/index.d.ts +1 -1
  130. package/dist/types/views/MainView/toolHeader/index.d.ts +1 -1
  131. package/dist/utils/AnnotationDataUtils.js +1 -1
  132. package/dist/utils/ToolPointCloudBoxRenderHelper.js +1 -0
  133. package/dist/utils/index.js +1 -1
  134. package/dist/views/MainView/index.js +1 -1
  135. package/dist/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.js +1 -1
  136. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js +1 -0
  137. package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.module.scss.js +1 -0
  138. package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  139. package/dist/views/MainView/sidebar/TagSidebar/index.js +1 -1
  140. package/dist/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  141. package/dist/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js +1 -0
  142. package/dist/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.js +1 -0
  143. package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  144. package/dist/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  145. package/dist/views/MainView/toolFooter/index.js +1 -1
  146. package/es/App.js +1 -1
  147. package/es/_virtual/2DViewWorker.js +1 -0
  148. package/es/_virtual/highlightSegmentWorker.js +1 -1
  149. package/es/assets/annotation/icon_link.svg.js +1 -0
  150. package/es/assets/annotation/icon_unlink.svg.js +1 -0
  151. package/es/assets/annotation/pointCloudTool/Image2DBoxScale.svg.js +1 -0
  152. package/es/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -1
  153. package/es/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -1
  154. package/es/assets/annotation/pointCloudTool/rotate90_black.svg.js +1 -0
  155. package/es/components/AnnotationView/index.js +1 -1
  156. package/es/components/DynamicResizer/DynamicResizer.js +1 -0
  157. package/es/components/DynamicResizer/assets/bottomToZero.svg.js +1 -0
  158. package/es/components/DynamicResizer/assets/divider.svg.js +1 -0
  159. package/es/components/DynamicResizer/assets/topToZero.svg.js +1 -0
  160. package/es/components/DynamicResizer/hooks/useDrag.js +1 -0
  161. package/es/components/DynamicResizer/hooks/useUpdateHeight.js +1 -0
  162. package/es/components/DynamicResizer/index.js +1 -0
  163. package/es/components/LLMToolView/index.js +1 -1
  164. package/es/components/LLMToolView/questionView/components/header/index.js +1 -1
  165. package/es/components/LLMToolView/sidebar/components/textEditor/index.js +2 -2
  166. package/es/components/LLMToolView/sidebar/components/textEditor/index.module.scss.js +1 -1
  167. package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
  168. package/es/components/LLMToolView/sidebar/index.js +1 -1
  169. package/es/components/LLMToolView/utils/data.js +1 -1
  170. package/es/components/NLPToolView/index.js +1 -1
  171. package/es/components/audioAnnotate/audioContext/index.js +1 -1
  172. package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
  173. package/es/components/audioAnnotate/index.js +1 -1
  174. package/es/components/audioAnnotate/textInput/index.js +1 -1
  175. package/es/components/audioAnnotate/textInput/index.module.scss.js +1 -1
  176. package/es/components/audioAnnotate/utils/dataTransform.js +1 -0
  177. package/es/components/audioPlayer/clipRegion/index.js +1 -1
  178. package/es/components/audioPlayer/index.js +1 -1
  179. package/es/components/audioPlayer/useAudioCombine/index.js +3 -2
  180. package/es/components/audioPlayer/useAudioSegment/index.js +1 -1
  181. package/es/components/longText/index.js +1 -1
  182. package/es/components/pointCloud2DRectOperationView/index.js +1 -1
  183. package/es/components/pointCloud2DRectOperationView/useUpdateRectList.js +1 -0
  184. package/es/components/pointCloud2DRectOperationView/util.js +1 -0
  185. package/es/components/pointCloudView/PointCloud2DSingleView.js +1 -1
  186. package/es/components/pointCloudView/PointCloud2DView.js +1 -1
  187. package/es/components/pointCloudView/PointCloud3DView.js +1 -1
  188. package/es/components/pointCloudView/PointCloudBackView.js +1 -1
  189. package/es/components/pointCloudView/PointCloudContext.js +1 -1
  190. package/es/components/pointCloudView/PointCloudInfos.js +1 -1
  191. package/es/components/pointCloudView/PointCloudLayout.js +1 -1
  192. package/es/components/pointCloudView/PointCloudListener.js +1 -1
  193. package/es/components/pointCloudView/PointCloudSegment2DView.js +1 -1
  194. package/es/components/pointCloudView/PointCloudSideView.js +1 -1
  195. package/es/components/pointCloudView/PointCloudTopView.js +1 -1
  196. package/es/components/pointCloudView/components/HighlightVisible/index.js +1 -1
  197. package/es/components/pointCloudView/hooks/useBoxes.js +1 -1
  198. package/es/components/pointCloudView/hooks/useDataLinkSwitch.js +1 -0
  199. package/es/components/pointCloudView/hooks/useHighlight.js +1 -1
  200. package/es/components/pointCloudView/hooks/useHistory.js +1 -1
  201. package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
  202. package/es/components/pointCloudView/hooks/usePolygon.js +1 -1
  203. package/es/components/pointCloudView/hooks/useRotate.js +1 -1
  204. package/es/components/pointCloudView/hooks/useRotateEdge.js +1 -0
  205. package/es/components/pointCloudView/hooks/useSingleBox.js +1 -1
  206. package/es/components/pointCloudView/hooks/useStatus.js +1 -1
  207. package/es/components/pointCloudView/hooks/useTimeoutFunc.js +1 -0
  208. package/es/components/pointCloudView/hooks/useWindowKeydownListener.js +1 -0
  209. package/es/components/pointCloudView/index.js +1 -1
  210. package/es/components/pointCloudView/utils/event-polyfill.js +1 -0
  211. package/es/components/pointCloudView/utils/map.js +1 -0
  212. package/es/components/subAttributeList/index.js +1 -0
  213. package/es/components/videoAnnotate/videoClipTool/index.js +1 -1
  214. package/es/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.js +1 -1
  215. package/es/hooks/useToolStyle.js +1 -0
  216. package/es/index.css +138 -17
  217. package/es/index.js +1 -1
  218. package/es/store/Actions.js +1 -1
  219. package/es/store/annotatedBox/index.js +1 -1
  220. package/es/store/annotation/actionCreators.js +1 -1
  221. package/es/store/annotation/reducer.js +1 -1
  222. package/es/utils/AnnotationDataUtils.js +1 -1
  223. package/es/utils/ToolPointCloudBoxRenderHelper.js +1 -0
  224. package/es/utils/index.js +1 -1
  225. package/es/views/MainView/index.js +1 -1
  226. package/es/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.js +1 -1
  227. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.js +1 -0
  228. package/es/views/MainView/sidebar/PointCloudToolSidebar/components/rectRotateSensitivitySlider/index.module.scss.js +1 -0
  229. package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
  230. package/es/views/MainView/sidebar/TagSidebar/index.js +1 -1
  231. package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
  232. package/es/views/MainView/toolFooter/BatchSwitchConnectIn2DView/BatchSwitchConnectIn2DView.js +1 -0
  233. package/es/views/MainView/toolFooter/BatchSwitchConnectIn2DView/Icons.js +1 -0
  234. package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
  235. package/es/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
  236. package/package.json +5 -3
  237. package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +0 -1
  238. package/dist/assets/icons/9d70807.svg +0 -5
  239. package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +0 -1
package/es/App.js CHANGED
@@ -1 +1 @@
1
- import E from"./views/MainView/index.js";import{i18n as r}from"@labelbee/lb-utils";import I,{useState as F,useEffect as O}from"react";import{connect as N}from"react-redux";import{store as n}from"./index.js";import{LabelBeeContext as M}from"./store/ctx.js";import{ANNOTATION_ACTIONS as U}from"./store/Actions.js";import{InitTaskData as z,InitAnnotationState as R,UpdateInjectFunc as V,loadImgList as B}from"./store/annotation/actionCreators.js";import{LoadFileAndFileData as j}from"./store/annotation/reducer.js";import{ConfigProvider as k}from"antd/es";import G from"antd/es/locale/zh_CN";import $ from"antd/es/locale/en_US";var q=Object.defineProperty,H=Object.defineProperties,J=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,w=(e,t,a)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,W=(e,t)=>{for(var a in t||(t={}))K.call(t,a)&&w(e,a,t[a]);if(C)for(var a of C(t))Q.call(t,a)&&w(e,a,t[a]);return e},X=(e,t)=>H(e,J(t));const Y=e=>{const[t,a]=F(0),{imgList:s,step:A=1,stepList:l,onSubmit:c,onSave:p,onPageChange:d,onStepChange:f,initialIndex:g=0,toolInstance:S,setToolInstance:L,getFileData:m,pageSize:u=10,loadFileList:o,defaultLang:_="cn",skipBeforePageTurning:y,beforeRotate:h,checkMode:b=!1,intelligentFit:T=!0,highlightAttribute:P="",preDataProcess:v}=e;O(()=>{n.dispatch(z({onSubmit:c,stepList:l,step:A,getFileData:m,pageSize:u,loadFileList:o,onSave:p,onPageChange:d,onStepChange:f,skipBeforePageTurning:y,beforeRotate:h,checkMode:b,highlightAttribute:P,preDataProcess:v})),x(),r.changeLanguage(_);const i=()=>{a(D=>D+1)};return r.on("languageChanged",i),()=>{r.off("languageChanged",i),R(n.dispatch)}},[]),O(()=>{n.dispatch(V({onSubmit:c,stepList:l,getFileData:m,pageSize:u,loadFileList:o,onSave:p,onPageChange:d,onStepChange:f,beforeRotate:h,highlightAttribute:P,preDataProcess:v})),r.changeLanguage(_)},[c,l,m,u,o,p,d,f,_,h,P,v]),O(()=>{L==null||L(S)},[S]);const x=()=>{o?B(n.dispatch,n.getState,g,!0).then(i=>{i&&n.dispatch(j(g))}):s&&s.length>0&&(n.dispatch({type:U.UPDATE_IMG_LIST,payload:{imgList:s}}),n.dispatch(j(g)))};return I.createElement("div",null,I.createElement(k,{locale:r.language==="en"?$:G},I.createElement(E,X(W({},e),{intelligentFit:T,checkMode:b}))))},Z=e=>({toolInstance:e.annotation.toolInstance});var ee=N(Z,null,null,{context:M})(Y);export{ee as default};
1
+ import B from"./views/MainView/index.js";import{i18n as o}from"@labelbee/lb-utils";import O,{useState as M,useEffect as s}from"react";import{connect as U}from"react-redux";import{store as n}from"./index.js";import{LabelBeeContext as z}from"./store/ctx.js";import{ANNOTATION_ACTIONS as j}from"./store/Actions.js";import{InitTaskData as R,InitAnnotationState as V,UpdateInjectFunc as k,loadImgList as G}from"./store/annotation/actionCreators.js";import{LoadFileAndFileData as C}from"./store/annotation/reducer.js";import{ConfigProvider as $}from"antd/es";import q from"antd/es/locale/zh_CN";import H from"antd/es/locale/en_US";var J=Object.defineProperty,K=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,w=(e,t,a)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Y=(e,t)=>{for(var a in t||(t={}))W.call(t,a)&&w(e,a,t[a]);if(T)for(var a of T(t))X.call(t,a)&&w(e,a,t[a]);return e},Z=(e,t)=>K(e,Q(t));const ee=e=>{const[t,a]=M(0),{imgList:l,step:p=1,stepList:c,onSubmit:d,onSave:g,onPageChange:f,onStepChange:m,initialIndex:u=0,toolInstance:y,setToolInstance:L,getFileData:_,pageSize:h=10,loadFileList:r,defaultLang:P="cn",skipBeforePageTurning:x,beforeRotate:I,checkMode:b=!1,intelligentFit:A=!0,highlightAttribute:S="",preDataProcess:v,getImgIndexByExternal:E,annotationBefore:D}=e;s(()=>{n.dispatch(R({onSubmit:d,stepList:c,step:p,getFileData:_,pageSize:h,loadFileList:r,onSave:g,onPageChange:f,onStepChange:m,skipBeforePageTurning:x,beforeRotate:I,checkMode:b,highlightAttribute:S,preDataProcess:v,getImgIndexByExternal:E,annotationBefore:D})),F(),o.changeLanguage(P);const i=()=>{a(N=>N+1)};return o.on("languageChanged",i),()=>{o.off("languageChanged",i),V(n.dispatch)}},[]),s(()=>{n.dispatch(k({onSubmit:d,stepList:c,getFileData:_,pageSize:h,loadFileList:r,onSave:g,onPageChange:f,onStepChange:m,beforeRotate:I,highlightAttribute:S,preDataProcess:v})),o.changeLanguage(P)},[d,c,_,h,r,g,f,m,P,I,S,v]),s(()=>{L==null||L(y)},[y]),s(()=>{n.dispatch({type:j.SET_STEP,payload:{toStep:p}})},[p]);const F=()=>{r?G(n.dispatch,n.getState,u,!0).then(i=>{i&&n.dispatch(C(u))}):l&&l.length>0&&(n.dispatch({type:j.UPDATE_IMG_LIST,payload:{imgList:l}}),n.dispatch(C(u)))};return O.createElement("div",null,O.createElement($,{locale:o.language==="en"?H:q},O.createElement(B,Z(Y({},e),{intelligentFit:A,checkMode:b}))))},te=e=>({toolInstance:e.annotation.toolInstance});var ae=U(te,null,null,{context:z})(ee);export{ae as default};