| 
									
										
										
										
											2025-04-01 16:52:07 +08:00
										 |  |  | import type { NodeDefault } from '../../types' | 
					
						
							|  |  |  | import type { | 
					
						
							|  |  |  |   SimpleNodeType, | 
					
						
							|  |  |  | } from '@/app/components/workflow/simple-node/types' | 
					
						
							| 
									
										
										
										
											2025-04-24 16:29:58 +08:00
										 |  |  | import { genNodeMetaData } from '@/app/components/workflow/utils' | 
					
						
							|  |  |  | import { BlockEnum } from '@/app/components/workflow/types' | 
					
						
							|  |  |  | import { BlockClassificationEnum } from '@/app/components/workflow/block-selector/types' | 
					
						
							| 
									
										
										
										
											2025-04-01 16:52:07 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-29 16:11:54 +08:00
										 |  |  | const metaData = genNodeMetaData({ | 
					
						
							|  |  |  |   classification: BlockClassificationEnum.Logic, | 
					
						
							|  |  |  |   sort: 2, | 
					
						
							|  |  |  |   type: BlockEnum.LoopEnd, | 
					
						
							|  |  |  | }) | 
					
						
							| 
									
										
										
										
											2025-04-01 16:52:07 +08:00
										 |  |  | const nodeDefault: NodeDefault<SimpleNodeType> = { | 
					
						
							| 
									
										
										
										
											2025-04-29 16:11:54 +08:00
										 |  |  |   metaData, | 
					
						
							| 
									
										
										
										
											2025-04-01 16:52:07 +08:00
										 |  |  |   defaultValue: {}, | 
					
						
							|  |  |  |   checkValid() { | 
					
						
							|  |  |  |     return { | 
					
						
							|  |  |  |       isValid: true, | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default nodeDefault |