ddy-process-h5 1.0.1-rc.3.113 → 1.0.1-rc.3.115

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.
@@ -10,4 +10,4 @@ Component that was made reactive: `,e)),Ac(e,t,i,n,r,a,o,!0)}function kc(e){retu
10
10
  `),this},this.appendIndent=function(){return t&&e.write(i.join(" ")),this},this.indent=function(){return i.push(""),this},this.unindent=function(){return i.pop(),this}}function Y1(e){e=q({format:!1,preamble:!0},e||{});function t(i,n){var r=n||new K1,o=new W1(r,e.format);if(e.preamble&&o.append(V1),new le().build(i).serializeTo(o),!n)return r.value}return{toXML:t}}function Ts(e,t){He.call(this,e,t)}Ts.prototype=Object.create(He.prototype),Ts.prototype.fromXML=function(e,t,i){Xe(t)||(i=t,t="bpmn:Definitions");var n=new Vn(q({model:this,lax:!0},i)),r=n.handler(t);return n.fromXML(e,r)},Ts.prototype.toXML=function(e,t){var i=new Y1(t);return new Promise(function(n,r){try{var o=i.toXML(e);return n({xml:o})}catch(a){return r(a)}})};var Z1="BPMN20",X1="http://www.omg.org/spec/BPMN/20100524/MODEL",$1="bpmn",eu=[],tu=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],iu=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],su={tagAlias:"lowerCase",typePrefix:"t"},nu={name:Z1,uri:X1,prefix:$1,associations:eu,types:tu,enumerations:iu,xml:su},ru="BPMNDI",ou="http://www.omg.org/spec/BPMN/20100524/DI",au="bpmndi",lu=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],cu=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],du=[],pu={name:ru,uri:ou,prefix:au,types:lu,enumerations:cu,associations:du},hu="DC",uu="http://www.omg.org/spec/DD/20100524/DC",mu="dc",fu=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],gu=[],yu={name:hu,uri:uu,prefix:mu,types:fu,associations:gu},Au="DI",Cu="http://www.omg.org/spec/DD/20100524/DI",ku="di",bu=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],Eu=[],wu={tagAlias:"lowerCase"},Nu={name:Au,uri:Cu,prefix:ku,types:bu,associations:Eu,xml:wu},Tu="bpmn.io colors for BPMN",Iu="http://bpmn.io/schema/bpmn/biocolor/1.0",Bu="bioc",xu=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],Su=[],Du=[],Pu={name:Tu,uri:Iu,prefix:Bu,types:xu,enumerations:Su,associations:Du},Mu="BPMN in Color",Vu="http://www.omg.org/spec/BPMN/non-normative/color/1.0",Ou="color",Lu=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],Ru=[],vu=[],Fu={name:Mu,uri:Vu,prefix:Ou,types:Lu,enumerations:Ru,associations:vu},ju={bpmn:nu,bpmndi:pu,dc:yu,di:Nu,bioc:Pu,color:Fu};function Qu(e,t){var i=q({},ju,e);return new Ts(i,t)}var Uu="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function _u(e){ai(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(Uu)}})}function xe(e,t){return e.$instanceOf(t)}function Gu(e){return $e(e.rootElements,function(t){return xe(t,"bpmn:Process")||xe(t,"bpmn:Collaboration")})}function qu(e,t){var i={},n=[],r={};function o(N,T){return function(R){N(R,T)}}function a(N){i[N.id]=N}function l(N){return i[N.id]}function c(N,T){var R=N.gfx;if(R)throw new Error(t("already rendered {element}",{element:be(N)}));return e.element(N,r[N.id],T)}function m(N,T){return e.root(N,r[N.id],T)}function u(N,T){try{var R=r[N.id]&&c(N,T);return a(N),R}catch(ce){p(ce.message,{element:N,error:ce}),console.error(t("failed to import {element}",{element:be(N)})),console.error(ce)}}function p(N,T){e.error(N,T)}var y=this.registerDi=function(T){var R=T.bpmnElement;R?r[R.id]?p(t("multiple DI elements defined for {element}",{element:be(R)}),{element:R}):(r[R.id]=T,_u(R)):p(t("no bpmnElement referenced in {element}",{element:be(T)}),{element:T})};function C(N){E(N.plane)}function E(N){y(N),L(N.planeElement,v)}function v(N){y(N)}this.handleDefinitions=function(T,R){var ce=T.diagrams;if(R&&ce.indexOf(R)===-1)throw new Error(t("diagram not part of bpmn:Definitions"));if(!R&&ce&&ce.length&&(R=ce[0]),!R)throw new Error(t("no diagram to display"));r={},C(R);var Ce=R.plane;if(!Ce)throw new Error(t("no plane for {element}",{element:be(R)}));var de=Ce.bpmnElement;if(!de)if(de=Gu(T),de)p(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:be(Ce),rootElement:be(de)})),Ce.bpmnElement=de,y(Ce);else throw new Error(t("no process or collaboration to display"));var f=m(de,Ce);if(xe(de,"bpmn:Process")||xe(de,"bpmn:SubProcess"))J(de,f);else if(xe(de,"bpmn:Collaboration"))gt(de,f),j(T.rootElements,f);else throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:be(Ce),rootElement:be(de)}));F(n)};var F=this.handleDeferred=function(){for(var T;n.length;)T=n.shift(),T()};function J(N,T){ct(N,T),B(N.ioSpecification,T),V(N.artifacts,T),a(N)}function j(N,T){var R=li(N,function(ce){return!l(ce)&&xe(ce,"bpmn:Process")&&ce.laneSets});R.forEach(o(J,T))}function I(N,T){u(N,T)}function k(N,T){L(N,o(I,T))}function x(N,T){u(N,T)}function S(N,T){u(N,T)}function D(N,T){u(N,T)}function w(N,T){u(N,T)}function V(N,T){L(N,function(R){xe(R,"bpmn:Association")?n.push(function(){w(R,T)}):w(R,T)})}function B(N,T){!N||(L(N.dataInputs,o(S,T)),L(N.dataOutputs,o(D,T)))}var O=this.handleSubProcess=function(T,R){ct(T,R),V(T.artifacts,R)};function M(N,T){var R=u(N,T);xe(N,"bpmn:SubProcess")&&O(N,R||T),xe(N,"bpmn:Activity")&&B(N.ioSpecification,T),n.push(function(){L(N.dataInputAssociations,o(x,T)),L(N.dataOutputAssociations,o(x,T))})}function _(N,T){u(N,T)}function H(N,T){u(N,T)}function st(N,T){n.push(function(){var R=u(N,T);N.childLaneSet&&ie(N.childLaneSet,R||T),yt(N)})}function ie(N,T){L(N.lanes,o(st,T))}function Z(N,T){L(N,o(ie,T))}function ct(N,T){dt(N.flowElements,T),N.laneSets&&Z(N.laneSets,T)}function dt(N,T){L(N,function(R){xe(R,"bpmn:SequenceFlow")?n.push(function(){_(R,T)}):xe(R,"bpmn:BoundaryEvent")?n.unshift(function(){M(R,T)}):xe(R,"bpmn:FlowNode")?M(R,T):xe(R,"bpmn:DataObject")||(xe(R,"bpmn:DataStoreReference")||xe(R,"bpmn:DataObjectReference")?H(R,T):p(t("unrecognized flowElement {element} in context {context}",{element:be(R),context:T?be(T.businessObject):"null"}),{element:R,context:T}))})}function ge(N,T){var R=u(N,T),ce=N.processRef;ce&&J(ce,R||T)}function gt(N,T){L(N.participants,o(ge,T)),V(N.artifacts,T),n.push(function(){k(N.messageFlows,T)})}function yt(N){L(N.flowNodeRef,function(T){var R=T.get("lanes");R&&R.push(N)})}}function zu(e,t,i){var n,r,o,a,l,c=[];function m(u,p){var y={root:function(F,J){return n.add(F,J)},element:function(F,J,j){return n.add(F,J,j)},error:function(F,J){c.push({message:F,context:J})}},C=new qu(y,o);p=p||u.diagrams&&u.diagrams[0];var E=Ju(u,p);if(!E)throw new Error(o("no diagram to display"));L(E,function(F){C.handleDefinitions(u,F)});var v=p.plane.bpmnElement.id;a.setRootElement(a.findRoot(v+"_plane")||a.findRoot(v))}return new Promise(function(u,p){try{return n=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("translate"),a=e.get("canvas"),r.fire("import.render.start",{definitions:t}),m(t,i),r.fire("import.render.complete",{error:l,warnings:c}),u({warnings:c})}catch(y){return y.warnings=c,p(y)}})}function Ju(e,t){if(!!t){var i=t.plane.bpmnElement,n=i;!U(i,"bpmn:Process")&&!U(i,"bpmn:Collaboration")&&(n=Hu(i));var r;U(n,"bpmn:Collaboration")?r=n:r=$e(e.rootElements,function(m){if(!!U(m,"bpmn:Collaboration"))return $e(m.participants,function(u){return u.processRef===n})});var o=[n];r&&(o=bd(r.participants,function(m){return m.processRef}),o.push(r));var a=ka(o),l=[t],c=[i];return L(e.diagrams,function(m){var u=m.plane.bpmnElement;a.indexOf(u)!==-1&&c.indexOf(u)===-1&&(l.push(m),c.push(u))}),l}}function ka(e){var t=[];return L(e,function(i){!i||(t.push(i),t=t.concat(ka(i.flowElements)))}),t}function Hu(e){for(var t=e;t;){if(U(t,"bpmn:Process"))return t;t=t.$parent}}var Ku='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',ba=Ku,Ea={verticalAlign:"middle"},wa={color:"#404040"},Wu={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},Yu={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Zu={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},Xu='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+ba+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',lt;function $u(){lt=Qe(Xu),ke(lt,Wu),ke(tt("svg",lt),Ea),ke(tt(".backdrop",lt),Yu),ke(tt(".notice",lt),Zu),ke(tt(".link",lt),wa,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function em(){lt||($u(),di.bind(lt,".backdrop","click",function(e){document.body.removeChild(lt)})),document.body.appendChild(lt)}function ue(e){e=q({},im,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),nm(this._container),this._init(this._container,this._moddle,e)}ot(ue,gi),ue.prototype.importXML=async function(t,i){const n=this;function r(a){return n.get("eventBus").createEvent(a)}let o=[];try{t=this._emit("import.parse.start",{xml:t})||t;let a;try{a=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(y){throw this._emit("import.parse.complete",{error:y}),y}let l=a.rootElement;const c=a.references,m=a.warnings,u=a.elementsById;o=o.concat(m),l=this._emit("import.parse.complete",r({error:null,definitions:l,elementsById:u,references:c,warnings:o}))||l;const p=await this.importDefinitions(l,i);return o=o.concat(p.warnings),this._emit("import.done",{error:null,warnings:o}),{warnings:o}}catch(a){let l=a;throw o=o.concat(l.warnings||[]),Is(l,o),l=tm(l),this._emit("import.done",{error:l,warnings:l.warnings}),l}},ue.prototype.importDefinitions=async function(t,i){return this._setDefinitions(t),{warnings:(await this.open(i)).warnings}},ue.prototype.open=async function(t){const i=this._definitions;let n=t;if(!i){const o=new Error("no XML imported");throw Is(o,[]),o}if(typeof t=="string"&&(n=sm(i,t),!n)){const o=new Error("BPMNDiagram <"+t+"> not found");throw Is(o,[]),o}try{this.clear()}catch(o){throw Is(o,[]),o}const{warnings:r}=await zu(this,i,n);return{warnings:r}},ue.prototype.saveXML=async function(t){t=t||{};let i=this._definitions,n,r;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i,r=(await this._moddle.toXML(i,t)).xml,r=this._emit("saveXML.serialized",{xml:r})||r}catch(a){n=a}const o=n?{error:n}:{xml:r};if(this._emit("saveXML.done",o),n)throw n;return o},ue.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,i;try{const n=this.get("canvas"),r=n.getActiveLayer(),o=tt("defs",n._svg),a=lo(r),l=o?"<defs>"+lo(o)+"</defs>":"",c=r.getBBox();t=`<?xml version="1.0" encoding="utf-8"?>
11
11
  <!-- created with bpmn-js / http://bpmn.io -->
12
12
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
13
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+a+"</svg>"}catch(n){i=n}if(this._emit("saveSVG.done",{error:i,svg:t}),i)throw i;return{svg:t}},ue.prototype._setDefinitions=function(e){this._definitions=e},ue.prototype.getModules=function(){return this._modules},ue.prototype.clear=function(){!this.getDefinitions()||gi.prototype.clear.call(this)},ue.prototype.destroy=function(){gi.prototype.destroy.call(this),pi(this._container)},ue.prototype.on=function(e,t,i,n){return this.get("eventBus").on(e,t,i,n)},ue.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ue.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=tt(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ue.prototype.getDefinitions=function(){return this._definitions},ue.prototype.detach=function(){const e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))},ue.prototype._init=function(e,t,i){const n=i.modules||this.getModules(i),r=i.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,n,r),l=q(Bd(i,["additionalModules"]),{canvas:q({},i.canvas,{container:e}),modules:a});gi.call(this,l),i&&i.container&&this.attachTo(i.container)},ue.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ue.prototype._createContainer=function(e){const t=Qe('<div class="bjs-container"></div>');return ke(t,{width:Na(e.width),height:Na(e.height),position:e.position}),t},ue.prototype._createModdle=function(e){const t=q({},this._moddleExtensions,e.moddleExtensions);return new Qu(t)},ue.prototype._modules=[];function Is(e,t){return e.warnings=t,e}function tm(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const im={width:"100%",height:"100%",position:"relative"};function Na(e){return e+(Tt(e)?"px":"")}function sm(e,t){return t&&$e(e.diagrams,function(i){return i.id===t})||null}function nm(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+ba+"</a>",n=Qe(i);ke(tt("svg",n),Ea),ke(n,wa,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(n),et.bind(n,"click",function(r){em(),r.preventDefault()})}function ki(e){ue.call(this,e)}ot(ki,ue),ki.prototype._modules=[lh,bo,kh,Oo,jh],ki.prototype._moddleExtensions={};var rm=/^djs-cursor-.*$/;function Ta(e){var t=zt(document.body);t.removeMatching(rm),e&&t.add("djs-cursor-"+e)}function om(){Ta(null)}var am=5e3;function lm(e,t){t=t||"element.click";function i(){return!1}return e.once(t,am,i),function(){e.off(t,i)}}function Ia(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ba(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}var cm=15;function xa(e,t){var i;function n(l){return a(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?(e.on("element.mousedown",500,n),e.on("element.touchstart",500,n)):(e.off("element.mousedown",n),e.off("element.touchstart",n))});function r(l){var c=i.start,m=i.button,u=Ba(l),p=Ia(u,c);if(!i.dragging&&dm(p)>cm&&(i.dragging=!0,m===0&&lm(e),Ta("grab")),i.dragging){var y=i.last||i.start;p=Ia(u,y),t.scroll({dx:p.x,dy:p.y}),i.last=u}l.preventDefault()}function o(l){et.unbind(document,"mousemove",r),et.unbind(document,"touchmove",r),et.unbind(document,"mouseup",o),et.unbind(document,"touchend",o),i=null,om()}function a(l){if(!mo(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return i={button:c,start:Ba(l)},et.bind(document,"mousemove",r),et.bind(document,"touchmove",r),et.bind(document,"mouseup",o),et.bind(document,"touchend",o),!0}}this.isActive=function(){return!!i}}xa.$inject=["eventBus","canvas"];function dm(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Rn={__init__:["moveCanvas"],moveCanvas:["type",xa]};function Sa(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Sa.prototype.next=function(){return this._prefix+ ++this._counter};var pm=new Sa("tt");function hm(e){var t=Qe('<div class="djs-tooltip-container" />');return ke(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function um(e,t,i){ke(e,{left:t+"px",top:i+"px"})}function vn(e,t){e.style.display=t===!1?"none":""}var Da="djs-tooltip",Fn="."+Da;function Se(e,t){this._eventBus=e,this._canvas=t,this._ids=pm,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=hm(t.getContainer());var i=this;di.bind(this._tooltipRoot,Fn,"mousedown",function(n){n.stopPropagation()}),di.bind(this._tooltipRoot,Fn,"mouseover",function(n){i.trigger("mouseover",n)}),di.bind(this._tooltipRoot,Fn,"mouseout",function(n){i.trigger("mouseout",n)}),this._init()}Se.$inject=["eventBus","canvas"],Se.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=q({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},Se.prototype.trigger=function(e,t){var i=t.delegateTarget||t.target,n=this.get(ho(i,"data-tooltip-id"));!n||(e==="mouseover"&&n.timeout&&this.clearTimeout(n),e==="mouseout"&&n.timeout&&(n.timeout=1e3,this.setTimeout(n)))},Se.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},Se.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},Se.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}},Se.prototype.remove=function(e){var t=this.get(e);t&&(pi(t.html),pi(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},Se.prototype.show=function(){vn(this._tooltipRoot)},Se.prototype.hide=function(){vn(this._tooltipRoot,!1)},Se.prototype._updateRoot=function(e){var t=e.scale||1,i=e.scale||1,n="matrix("+t+",0,0,"+i+","+-1*e.x*t+","+-1*e.y*i+")";this._tooltipRoot.style.transform=n,this._tooltipRoot.style["-ms-transform"]=n},Se.prototype._addTooltip=function(e){var t=e.id,i=e.html,n,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Xe(i)&&(i=Qe(i)),n=Qe('<div data-tooltip-id="'+t+'" class="'+Da+'">'),ke(n,{position:"absolute"}),n.appendChild(i),e.type&&zt(n).add("djs-tooltip-"+e.type),e.className&&zt(n).add(e.className),e.htmlContainer=n,r.appendChild(n),this._tooltips[t]=e,this._updateTooltip(e)},Se.prototype._updateTooltip=function(e){var t=e.position,i=e.htmlContainer;um(i,t.x,t.y)},Se.prototype._updateTooltipVisibilty=function(e){L(this._tooltips,function(t){var i=t.show,n=t.htmlContainer,r=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(r=!1),vn(n,r))})},Se.prototype._init=function(){var e=this;function t(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){t(i.viewbox)})};const jn={__init__:["tooltips"],tooltips:["type",Se]},mm=e=>{var t=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[t.call(e)]},Qn=e=>{var t=mm(e),i;if(t==="array")i=[];else if(t==="object")i={};else return e;if(t==="array")for(var n=0,r=e.length;n<r;n++)i.push(Qn(e[n]));else if(t==="object")for(var o in e)i[o]=Qn(e[o]);return i};function fm(e,t="YYYY-MM-DD HH:mm:ss"){const i=new Date(e),n=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),l=i.getMinutes(),c=i.getSeconds(),m=i.getDay(),p={YYYY:n,MM:r,DD:o,HH:a,mm:l,ss:c,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][m]};for(let y in p)t=t.replace(y,p[y]);return t}function gm(e){e=Qn(e);const t={};e.forEach(n=>{t[n.historyActivityId]?t[n.historyActivityId].push(n):t[n.historyActivityId]=[n]});for(let n in t){const r=t[n];if(r.length>1){const o=e.findLast(a=>a.historyActivityId==n);o.assigneeName=Array.from(new Set(r.map(a=>a.assigneeName))).join("/")}}const i=[];return e.forEach(n=>{let{assigneeName:r,createTime:o,endTime:a,comments:l}=n;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(o=o.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const c={id:n.historyActivityId,class:!a&&n.historyActivityType!="candidate"?"nodePrimary":""};let m="";if(r||l&&l.length>0){if(m=`<span title='${r}'>${r}</span><br>`,o){let p=(o||"").replaceAll("/","-");m+=`<span title='${o}'>${p}</span><br>`}if(l&&l.length>0){let p,{type:y,fullMessage:C}=l.find(E=>E.action=="AddComment")||{};y=="assigneeComment"&&(p="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+C,c.class="nodeWarn"),y=="dispatchComment"&&(p="\u8C03\u5EA6\uFF1A"+C,c.class="nodeWarn"),y=="transferComment"&&(p="\u8F6C\u529E\uFF1A"+C,c.class="nodeWarn"),y=="delegateComment"&&(p="\u59D4\u6258\uFF1A"+C,c.class="nodeWarn"),y=="rollbackComment"&&(p="\u6307\u5B9A\u56DE\u9000\uFF1A"+C,c.class="nodeError"),y=="terminateComment"&&(p="\u7EC8\u6B62\uFF1A"+C,c.class="nodeError"),(y=="addMultiInstanceComment"||(y||"").includes("\u52A0\u7B7E"))&&(p="\u52A0\u7B7E\uFF1A"+C,c.class="nodeWarn"),y=="deleteMultiInstanceComment"&&(p="\u51CF\u7B7E\uFF1A"+C,c.class="nodeError"),y=="withdrawComment"&&(p="\u64A4\u9500\uFF1A"+C,c.class="nodeWarn"),y=="deleteProcessComment"&&(p="\u5220\u9664\u6D41\u7A0B\uFF1A"+C,c.class="nodeError"),y=="cancelProcessComment"&&(p="\u62D2\u7EDD\uFF1A"+C,c.class="nodeError"),y=="comment"&&(p="\u5BA1\u6279\uFF1A"+C,c.class="nodeSuccess"),p&&(m+=`<span title='${p}'>${p}</span>`)}c.tooltip=m}n.historyActivityType=="sequenceFlow"?c.class="lineWarn":!c.class&&n.historyActivityType!="candidate"&&(c.class="nodeSuccess");const u=i.findIndex(p=>p.id==n.historyActivityId);u!=-1?i.splice(u,1,c):i.push(c)}),i}function Pa(e){const t=[],i=[],n=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(r=>{r.type==="user"?t.push(...r.ids.filter(o=>o&&o.trim()!=="")):r.type==="post"?i.push(...r.ids):r.type==="dept"&&n.push(...r.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(t)],postIds:[...new Set(i)],deptIds:[...new Set(n)]}}function Ma(e){const t=[];return e.forEach(i=>{let{assigneeName:n,createTime:r,endTime:o,comments:a}=i;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(r=r.replace(/-/g,"/"),o=o.replace(/-/g,"/"));const l={id:i.historyActivityId,class:!o&&i.historyActivityType!="candidate"?"nodePrimary":""};let c="";if(n||a&&a.length>0){if(c=`<span title='${n}'>${n}</span><br>`,r&&(c+=`<span title='${r}'>${fm(r,"YYYY-MM-DD HH:mm")}</span><br>`),a&&a.length>0){let m,{type:u,fullMessage:p}=a.find(y=>y.action=="AddComment")||{};u=="assigneeComment"&&(m="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+p,l.class="nodeWarn"),u=="dispatchComment"&&(m="\u8C03\u5EA6\uFF1A"+p,l.class="nodeWarn"),u=="transferComment"&&(m="\u8F6C\u529E\uFF1A"+p,l.class="nodeWarn"),u=="delegateComment"&&(m="\u59D4\u6258\uFF1A"+p,l.class="nodeWarn"),u=="rollbackComment"&&(m="\u6307\u5B9A\u56DE\u9000\uFF1A"+p,l.class="nodeError"),u=="terminateComment"&&(m="\u7EC8\u6B62\uFF1A"+p,l.class="nodeError"),(u=="addMultiInstanceComment"||(u||"").includes("\u52A0\u7B7E"))&&(m="\u52A0\u7B7E\uFF1A"+p,l.class="nodeWarn"),u=="deleteMultiInstanceComment"&&(m="\u51CF\u7B7E\uFF1A"+p,l.class="nodeError"),u=="withdrawComment"&&(m="\u64A4\u9500\uFF1A"+p,l.class="nodeWarn"),u=="deleteProcessComment"&&(m="\u5220\u9664\u6D41\u7A0B\uFF1A"+p,l.class="nodeError"),u=="cancelProcessComment"&&(m="\u62D2\u7EDD\uFF1A"+p,l.class="nodeError"),u=="comment"&&(m="\u5BA1\u6279\uFF1A"+p,l.class="nodeSuccess"),m&&(c+=`<span title='${m}'>${m}</span>`)}l.tooltip=c}i.historyActivityType=="sequenceFlow"?l.class="lineWarn":!l.class&&i.historyActivityType!="candidate"&&(l.class="nodeSuccess"),t.push({...i,...l})}),t}const ym="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIgYyou8KvTecA1Xrgm+zLXrV/9H08/GPAIH/FHjYECDw3wIC8ddB4H8EBOLPg4BA/A0QyAS8QTI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMzeoSAYFcctEeMxMQSOZmdYmAQC65aI+ZCQgkc7O6REAgl1y0x8wEBJK5WV0iIJBLLtpjZgICydysLhEQyCUX7TEzAYFkblaXCAjkkov2mJmAQDI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMrVp9v9+fP5/PHy//J788z/Pny42flwICKQGTuUAStZ2NQBbcBbKAHh4pkBCumQmk0ZvdCmTW+9/TBLKAHh4pkBCumQmk0ZvdCmTW2xtkwbs5UiCNXrj1BgnhFmYCWUAXyAJ6eKRAQrhmJpBGb3YrkFlv3yAL3s2RAmn0wq03SAi3MBPIArpAFtDDIwUSwjUzgTR6s1uBzHr7Blnwbo4USKMXbr1BQriFmUAW0AWygB4eKZAQrpkJpNGb3Qpk1ts3yIJ3c6RAGr1w6w0Swi3MBLKALpAF9PBIgYRwzUwgjd7sViCz3r5BFrybIwXS6IVbb5AQ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DNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",Cm=Ye({name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return ym},loading(){return Am},success(){return Un}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}}),cA="",km={key:0},bm={key:0,class:"top-tipss-text"},Em={class:"top-tipss-status"},wm={key:0,class:"top-tipss-loadinig"},Nm=["src"],Tm={key:0,class:"top-tipss-status-text"},Im={key:1,class:"top-tipss-success"},Bm=["src"],xm={key:0,class:"top-tipss-status-text"},Sm={key:2,class:"top-tipss-error"},Dm=["src"],Pm={key:0,class:"top-tipss-status-text"};function Mm(e,t,i,n,r,o){return e.show?(s.openBlock(),s.createElementBlock("div",km,[e.statusTips?(s.openBlock(),s.createElementBlock("div",{key:1,class:"top-tipss",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[s.createElementVNode("div",Em,[e.type=="loading"?(s.openBlock(),s.createElementBlock("div",wm,[s.createElementVNode("img",{src:e.loading},null,8,Nm),e.text?(s.openBlock(),s.createElementBlock("div",Tm,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.type=="success"?(s.openBlock(),s.createElementBlock("div",Im,[s.createElementVNode("img",{src:e.success},null,8,Bm),e.text?(s.openBlock(),s.createElementBlock("div",xm,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.type=="error"?(s.openBlock(),s.createElementBlock("div",Sm,[s.createElementVNode("img",{src:e.error},null,8,Dm),e.text?(s.openBlock(),s.createElementBlock("div",Pm,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])],4)):(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-tipss",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[e.text?(s.openBlock(),s.createElementBlock("div",bm,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)],4)),s.createElementVNode("div",{class:"top-tipss-mask",style:s.normalizeStyle(e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])):s.createCommentVNode("",!0)}const it=oe(Cm,[["render",Mm],["__scopeId","data-v-239e459d"]]),Vm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy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fba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Om=Ye({name:"attchViews",components:{TopTips:it,PreviewImage:ss,PreView:Fr,TopPopup:Fe},props:{request:{type:Function,defalut:()=>{}},limit:{type:[Number,String],default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return Vm},del(){return jr},doc(){return Qr},file(){return Ur},image(){return _r},pdf(){return Gr},xls(){return qr},zip(){return zr}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let n=0,r=this.haveCount>i.length?i.length:this.haveCount;try{for(let o=0;o<r;o++)if(this.extension.includes(i[o].name.substring(i[o].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[o]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.name==this.filesArr[c].name&&n++,this.filesArr[c].name.includes(`(${n})`)&&n++,n>0){let m=l.name.lastIndexOf(".");l.name=`${l.name.substring(0,m)} (${n}) .${l.name.substring(l.name.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[o].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),dA="",Lm={class:"attch-upload"},Rm={key:0,class:"attch-upload-mask"},vm={class:"attch-upload-body"},Fm={class:"upload-header"},jm={class:"upload-header-title"},Qm={key:0,class:"upload-header-title--re"},Um={class:"upload-header-upload"},_m=["src"],Gm={class:"upload-body"},qm={key:0,class:"upload-list"},zm={class:"list-items-icon"},Jm=["src"],Hm=["src"],Km=["src"],Wm=["src"],Ym=["src"],Zm=["src"],Xm={class:"list-items-info"},$m={class:"info-name"},ef={class:"info-attribute"},tf={class:"info-attribute-size"},sf=["onClick"],nf={key:0,class:"list-items-operation"},rf=["onClick"],of=["src"];function af(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("PreviewImage"),c=s.resolveComponent("PreView"),m=s.resolveComponent("TopPopup");return s.openBlock(),s.createElementBlock("div",Lm,[e.buttonLoading?(s.openBlock(),s.createElementBlock("div",Rm)):s.createCommentVNode("",!0),s.createElementVNode("div",vm,[s.createElementVNode("div",Fm,[s.createElementVNode("div",jm,[t[3]||(t[3]=s.createTextVNode(" \u9644\u4EF6 ",-1)),e.requires?(s.openBlock(),s.createElementBlock("span",Qm,"*")):s.createCommentVNode("",!0)]),s.createElementVNode("div",Um,[e.onlyShow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[s.createElementVNode("img",{src:e.addFile},null,8,_m),t[4]||(t[4]=s.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ",-1))]))])]),s.createElementVNode("div",Gm,[e.filesArr.length>0?(s.openBlock(),s.createElementBlock("div",qm,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.filesArr,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:"list-items",key:u.uuid},[s.createElementVNode("div",zm,[e.xlsIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Jm)):e.imgIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Hm)):u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Km)):e.docIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Wm)):e.zipIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Ym)):(s.openBlock(),s.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Zm))]),s.createElementVNode("div",Xm,[s.createElementVNode("div",$m,s.toDisplayString(u.name),1),s.createElementVNode("div",ef,[s.createElementVNode("span",tf,s.toDisplayString(u.fileSize<1024?u.fileSize:u.fileSize/1024>1024?parseFloat((u.fileSize/1024/1024).toFixed(2)):parseFloat((u.fileSize/1024).toFixed(2)))+s.toDisplayString(u.fileSize<1024?"b":parseFloat((u.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),s.createElementVNode("span",{class:"info-attribute-views",onClick:y=>e.viewFile(u,p)}," \u9884\u89C8 ",8,sf)])]),e.onlyShow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",nf,[s.createElementVNode("div",{onClick:y=>e.handleDel(p,u),class:"list-items-operation-img"},[s.createElementVNode("img",{src:e.del},null,8,of)],8,rf)]))]))),128))])):s.createCommentVNode("",!0)])]),s.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),s.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=u=>e.visible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),s.createVNode(m,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=u=>e.visibleS=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:s.withCtx(()=>[e.visibleS?(s.openBlock(),s.createBlock(c,{key:0,file:e.fileUrl},null,8,["file"])):s.createCommentVNode("",!0)]),_:1},8,["visible"])])}const $t=oe(Om,[["render",af],["__scopeId","data-v-69217b12"]]),pA="",lf={name:"nf-flow",components:{attchViews:$t},props:{isHistory:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ma,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{my(e){return e.comments[e.comments.length-1].userId||""},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},cf={type:"flex",class:"process-flow"},df=["timestamp"],pf={key:0,class:"flow-item-history-icon"},hf={key:1,class:"flow-item-isActive-icon"},uf={key:2},mf={key:3},ff={class:"flow-name"},gf={class:"flow-time"},yf={key:4},Af={class:"flow-name"},Cf={class:"flow-time"},kf={class:"flow-node"},bf={key:5,class:"flow-time"},Ef={class:"comment-user"},wf={key:1,style:{color:"gray","font-size":"12px"}},Nf={class:"comment-type"},Tf={class:"comment-user"},If={key:0,style:{color:"gray","font-size":"12px"}},Bf={key:7,class:"flow-time"},xf={class:"p-file"},Sf=["onClick"],Df=["onClick"];function Pf(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",cf,[s.createElementVNode("div",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.getColors(i.flowList),(a,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[["candidate","sequenceFlow"].includes(a.historyActivityType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:a.id,timestamp:a.endTime||a.createTime,placement:"top",class:s.normalizeClass(["flow-item",i.isHistory?"flow-item-history":"",i.isActive?"flow-item-isActive":""])},[i.isHistory?(s.openBlock(),s.createElementBlock("div",pf,[...t[1]||(t[1]=[s.createElementVNode("svg",{t:"1766388445844",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23729"},[s.createElementVNode("path",{d:"M664.064 162.304c-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.68-4.608-14.336-6.144-21.504-9.728z m223.744 386.56c7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-2.56 16.384-4.096 24.576-6.144 6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.656 1.024-15.872 4.096-23.04z m-302.592-462.848c37.376 7.168 74.752 18.432 111.616 36.352 1.024-1.024 3.072 0 4.096-1.536-2.048-1.024-4.096 0.512-6.144-1.024 2.56-4.096 5.632-3.584 8.704-4.608-1.536-5.632-7.168-0.512-9.728 0-0.512 1.536-0.512 2.56-1.024 3.584-1.536-1.024-3.072 0-4.608-2.048 1.024-3.584 5.12-2.56 7.168-4.608-1.024-0.512 0.512-1.536 0-2.048-35.84-15.872-72.192-28.16-108.032-34.304-1.024 2.048 0.512 4.608 2.048 6.656 1.024 0.512 3.072-1.024 2.56 0-1.024 0.512 1.024 1.536 0 2.048-2.56-0.512-4.608 1.024-6.656 1.536zM329.728 835.584c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m174.08 48.128c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.704-3.072 16.384-4.096 24.576-6.656zM82.432 485.888c-3.072-0.512-6.144-3.072-10.24-2.048-3.072 38.912 0 81.92 10.24 123.392 2.048-2.56 3.584-6.144 7.168-6.144 0-1.536 0.512-2.56 1.536-4.096-7.68-37.376-9.728-74.24-8.704-111.104zM695.808 829.44c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.144 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m-256-749.056c1.536 1.024 4.096-1.536 3.584 0.512 1.024 1.536-1.536 2.56-0.512 4.096 39.424-4.096 79.36-5.632 118.272-1.024 3.584-3.072 7.68-6.144 10.752-9.216-9.216-2.56-21.504-3.072-32.256-4.608-10.752-1.024-22.016-1.024-32.768-1.024-22.016 0.512-44.544 1.536-67.072 5.632 0 0-0.512-0.512-0.512 0 1.536 1.536-1.024 3.584 0.512 5.632zM112.64 351.232c14.848-38.4 35.328-75.776 64.512-111.616 28.672-35.84 68.608-71.68 109.568-96.256 41.472-25.088 81.92-40.96 122.368-50.688 2.56-4.096 6.144-8.704 7.68-13.312-6.656 2.048-14.336 2.048-19.968 6.144-7.168-1.024-14.848 3.584-22.016 5.12-7.68 2.048-14.848 4.608-22.528 7.68-14.848 5.632-30.208 12.288-45.056 20.48-30.72 16.384-60.928 35.84-90.624 62.976-89.6 81.408-126.464 172.544-141.312 263.168-0.512 1.536 1.024 2.048 1.024 2.56-2.048 2.048-1.536 4.608-2.048 6.656 1.536 1.536 4.608 3.072 5.12 4.608-1.024 1.536-3.072 3.584-4.096 4.096-2.048-1.024 1.024-2.56-0.512-3.584-1.536 2.56-1.536 7.168-1.536 10.752 0 3.072-2.048 8.192 0.512 9.728 4.608-1.024 0-5.12 0-7.68 4.096-1.536 6.144-4.096 9.728-5.632 3.584-9.728 2.56-19.456 5.12-29.184 1.024-9.728 3.584-18.944 5.632-29.184 5.12-18.432 10.24-37.888 18.432-56.832z m-31.744 108.544c1.024 0 2.56 1.024 2.56 2.048-1.536 1.536-2.048 0-2.56-2.048z m715.776-268.288c29.184 25.088 59.904 62.976 80.384 96.256 41.984 68.096 58.368 134.144 63.488 199.168 3.072 0 6.656 2.56 10.752 5.12 2.048-2.56 0-8.704 0.512-12.288-0.512-4.096-0.512-8.704-1.536-12.8-0.512-8.704-1.536-17.408-3.072-25.6-2.56-17.408-6.656-34.816-11.776-52.224-10.752-34.304-24.576-70.144-47.104-105.472-20.48-34.304-53.76-74.752-84.48-101.376-31.232-28.16-62.976-48.64-95.232-65.024 0 0-0.512-0.512-0.512 0 1.024 4.096-1.024 8.192-1.024 12.288 30.208 14.848 60.416 34.816 89.6 61.952z m24.576 513.024c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656zM701.952 126.464c0-0.512-1.024-3.072-2.048-2.56 0.512 0 0 0.512-0.512 1.536 0.512 0 1.536 0.512 2.56 1.024zM417.792 68.608c-0.512 0-1.536-2.048-2.56-2.56-1.024-4.096 4.096-7.68 1.024-12.288-1.024-0.512-2.048 0-3.072 0 0.512 5.632-2.56 11.776-3.072 17.408 2.56-1.024 6.144-0.512 7.68-2.56z m12.8 19.456c-1.536-4.096 2.56-7.68 1.536-11.776-3.584 0.512-7.168 0.512-10.24 3.072 0 2.56-0.512 5.12-1.536 7.68-2.048 1.024-2.56 2.56-2.048 4.096 4.608-1.536 8.192-2.048 12.288-3.072z m-30.72-29.184c2.56-0.512 3.584 0.512 5.12 2.048 3.584-2.048 2.56-6.656 3.584-9.216-6.144 1.536-12.288 2.56-19.456 5.12-2.048 7.168-6.144 13.824-5.632 21.504 4.096-1.536 8.192-2.048 12.288-4.096 1.536-4.608 2.048-10.24 4.096-15.36z m28.672 8.192c-0.512-1.024-1.536-3.584-3.072-3.072 0 1.536-1.536 2.56-1.024 4.608 1.536-1.024 2.56 0 4.096-1.536z m110.592 56.832c-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.024-7.68 4.096-15.36 4.096-22.528z m44.032-58.368c6.144-4.608 12.288-10.24 16.384-15.36-16.896-4.608-34.304-5.632-51.2-7.168-1.536 0.512-3.072 1.536-4.608 2.048-1.536-1.024 0-1.536-1.024-2.56-30.72-2.56-62.464-2.048-93.696 2.56-0.512 2.56-4.608 5.12-5.632 8.192 0 1.536 3.072 3.072 2.048 4.608-2.56 3.072-4.608 0-7.168 2.56-1.536 2.048-1.024 4.096-2.56 6.144 49.664-7.68 98.816-7.68 147.456-1.024z m358.4 432.128c2.56 0.512 5.632 4.096 8.192 3.584 0.512-2.048 2.048-2.56 2.048-4.096-3.584-1.024-7.168-4.608-10.752-6.656 0.512 2.56-0.512 5.12 0.512 7.168z m-468.992 286.208c0.512-1.536 2.56-3.072 4.096-3.072 0-3.072-0.512-4.608-2.048-6.656-32.768-5.632-65.024-16.896-96.768-34.816-1.536 3.072-3.584 6.144-3.072 9.728 31.744 18.944 64.512 29.696 97.792 34.816z m-311.808-252.928c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 11.776 10.24 17.92z m505.344 210.944c-3.072 0-6.656-3.584-8.192-6.656-14.848 9.728-28.672 15.872-43.52 23.04 0.512 0.512 0 0.512 0.512 1.024 0 3.584-3.072 6.656-3.584 10.752 17.92-7.168 37.376-15.36 54.784-28.16zM243.712 347.136c-5.632-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.56 16.896-3.072 25.6-5.632z m351.744 417.28c-36.864 12.288-73.728 14.336-109.568 11.264 0.512 3.072 1.024 6.144 3.072 9.728 34.816 4.608 70.144 1.024 106.496-10.24 1.024-3.584 1.536-7.168 0-10.752z m-229.376-20.48c1.536-3.072 2.56-7.168 3.072-10.24-6.144-4.096-12.8-8.704-18.944-13.824-3.584-1.024-8.192 3.072-6.656 7.168 7.168 7.68 14.848 11.776 22.528 16.896z m612.864-176.64c1.024-14.848 2.56-29.696 2.56-45.056-1.536-2.56-1.536-4.608-2.048-6.656-5.632-6.144-11.776-7.68-17.92-9.216 1.536 55.808-8.704 110.08-26.112 164.864 5.632 2.048 10.752 5.12 16.896 7.68 12.8-34.816 21.504-69.12 25.088-104.448 1.536-1.536-1.536-1.536-0.512-3.072 0-2.048 1.536-2.048 2.048-4.096z m-368.64 386.048c-136.192 26.112-267.776 1.536-392.192-100.864 1.024 8.192-1.536 16.384 0 25.6 21.504 17.408 43.008 31.744 65.536 44.544 22.528 11.776 44.544 23.552 67.584 30.208 3.072 0 4.608-5.12 7.168-5.12 3.072 3.072 7.168 6.656 6.144 10.752 10.752 3.584 20.992 6.144 31.232 9.216 5.12 1.024 10.24 2.56 15.36 3.584 5.632 1.024 10.752 3.584 15.872 2.048 1.024-2.048-1.536-3.072-1.536-5.12 3.072-3.584 6.656-7.68 10.24-6.656 0.512 2.048 1.536 4.608 1.024 6.144-4.096 1.536-5.632 5.12-8.192 7.168 16.896 3.072 34.304 5.632 51.2 6.656-0.512-3.072 4.096-5.12 5.632-7.68 6.656 2.048 13.312 1.536 19.456 4.096-0.512 1.536-0.512 3.072-1.024 4.608 13.824 1.536 27.136 0 40.96-0.512 1.024-2.048 1.536-1.536 3.072-1.536 0.512-2.56-1.536-6.144 0-9.216 3.584-0.512 7.68 0 9.728 3.072-2.048 2.56 0 4.096 0 7.168 15.872-1.024 31.744-3.584 47.616-7.168-1.536-4.096 1.024-8.192 0-11.776 1.536-0.512 2.56 0 4.096-1.536 2.56-2.56 0-5.12 1.024-7.68z m145.408-327.68s0-0.512 0 0l-1.024 1.024c-5.12 12.288-14.848 25.088-19.968 36.352-0.512 2.048-2.56 1.024-3.072 2.56-14.336 19.968-32.768 39.424-55.808 57.344 1.536 1.536 2.56 2.56 3.072 4.096 1.024 1.536 0 5.12 1.024 5.12 38.912-29.184 65.536-65.024 81.92-98.304-1.024-2.56-3.584-7.168-6.144-8.192zM264.704 409.088c7.68-20.992 19.456-40.96 34.816-61.44-1.024-4.096 0.512-7.68-0.512-11.264-1.536 0.512-2.56 0-4.096 0.512-18.432 23.552-31.744 47.616-41.472 71.68 1.536 1.024 1.536 2.56 2.048 3.584-1.536 11.264-5.632 23.04-9.728 34.304-1.024 1.024-3.584 2.048-3.072 4.608-0.512 1.024-1.024-1.536-1.536 0-4.096 14.848-5.632 29.696-6.656 45.056v22.528c1.024 8.192-0.512 15.36 2.56 23.552 2.56 2.048 5.632 2.048 8.704-1.024 1.024-7.68-1.024-15.872-1.024-23.04-11.264-3.584-11.264-20.48 0.512-22.528 0-4.608 2.048-9.728 0.512-13.824 2.048-3.584 1.536-10.752 3.584-15.872 1.024-5.632 1.536-11.776 3.584-17.408 2.048-11.264 5.632-23.04 10.24-33.792 0.512-1.024 0-2.56 0-3.072 0.512-1.024 1.024-1.536 1.536-2.56z m61.44-169.984c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 12.288 10.24 17.92z m201.728 4.096c28.16 1.536 55.808 8.704 82.944 18.432 2.56-1.024 5.632-4.096 8.192-6.656-29.696-12.288-59.392-19.968-90.112-21.504-1.536 2.048-1.024 6.144-1.024 9.728z m-172.032 39.936c-3.584 1.024-7.68 1.536-9.216 5.632 2.56 0.512-1.536 7.168-4.096 4.608 1.024-1.536 3.584-2.56 4.096-4.096-4.096-1.024-9.728 6.144-12.288 9.216-1.024-1.536-2.56 0-3.584 0.512-9.728 8.704-17.92 16.896-25.6 25.088 2.048 2.56 3.584 6.656 5.12 9.728 9.728-10.752 20.992-20.992 32.256-31.232 0.512-1.024-2.56 0-2.048-1.024 1.024-1.536 3.072-2.048 3.584-3.584 0.512-0.512-3.072 0.512-2.56-0.512 2.048-1.024 3.584-4.096 5.12-3.584-2.56 3.072-1.024 3.584-1.536 7.168 52.736-40.448 102.4-54.272 152.064-57.344 4.096-3.072 5.12-6.656 4.608-10.752-47.104 2.56-94.208 13.824-143.36 46.08-1.024 1.024-0.512 2.56-2.56 4.096z m433.664 268.288c1.536-12.288 3.072-24.576 3.072-36.864 0.512-6.144 0.512-12.288 0-18.432-1.024-6.656 1.536-12.8-3.584-18.944-2.56-0.512-4.096-1.024-6.656 1.024-0.512 0.512-0.512 1.024-1.024 1.536-0.512 11.776 1.536 23.552 1.024 35.328s-1.536 23.552-3.072 35.328c-3.584 23.552-10.752 46.08-19.968 69.12 3.072 0 6.144 2.048 8.704 4.096 10.24-23.552 16.896-47.616 21.504-72.192zM367.104 202.24c0.512-1.024-1.024-2.56-1.024-2.56 0 0.512 0 0.512-0.512 1.024 0.512 0.512 1.024 2.048 1.536 1.536z m299.52 91.136c2.048-0.512 3.072 0 4.608-1.536 1.024-2.048 1.536-4.096 1.024-6.144-10.24-8.704-20.48-15.36-31.744-19.968 0.512 3.584-0.512 7.168-0.512 10.752 9.216 5.12 17.92 11.264 26.624 16.896z m-38.4 642.048c1.024 1.536-1.536 5.12-0.512 4.096 40.448-9.728 80.896-27.136 121.856-53.248-1.024-1.536-3.072-3.072-2.048-4.096 1.024-0.512 2.048 0.512 3.072 0-1.024-1.536-3.072-3.584-3.584-5.12 1.024-1.024 3.584 1.024 3.072-0.512-1.024-0.512-1.536-1.536-2.048-2.56-44.032 27.648-87.552 45.056-130.048 56.32-2.048 2.56-3.584 5.12-6.144 7.68-1.536-1.536-0.512-3.584-2.56-4.608-8.704-1.024-18.432 3.072-27.648 3.584-9.728 1.024-18.944 2.56-28.16 3.072-18.432 1.536-36.352 2.56-54.784 1.536-36.352-1.024-72.192-7.68-108.032-17.92-71.168-22.528-140.8-60.416-207.36-137.728-1.536-1.536-4.096-5.632-6.144-7.168-3.584-0.512-6.144 3.584-9.216 3.072-0.512-5.12 0-10.24-0.512-15.872-38.4-52.736-59.392-103.936-72.704-154.624-2.56-1.024-5.12-5.12-9.216-5.632-1.536 1.536-2.56 2.048-3.072 3.072 1.024 1.536 2.048-1.024 2.56 0-1.536 1.536-1.024 2.048-1.024 3.584 14.336 58.368 40.96 119.808 90.624 180.224 67.072 79.36 141.824 120.32 216.064 142.848 74.752 21.504 151.552 24.064 229.376 5.632 0.512-2.048 4.608-7.68 8.192-5.632z m298.496-269.312c18.432-52.736 27.648-105.984 25.6-160.768-1.536 0.512-4.608 1.024-2.56-1.024-3.072 1.536-5.12-0.512-8.192-1.024 0.512 118.272-34.816 237.568-155.136 341.504-0.512 2.56 0.512 5.632-1.024 8.704-1.024 0-2.56 1.024-3.584 1.024-2.048-0.512-2.048-1.536-3.072-3.584-5.12 4.096-10.24 7.68-15.872 11.776-1.024 2.56-2.56 7.168-5.12 4.608 0.512-0.512 2.048-1.024 1.536-1.536-3.584 3.072-7.168 5.12-10.752 7.68 1.024 2.048 0.512 3.584 2.048 5.12-2.048 1.024 0.512 3.072 0.512 4.608 0 1.024-2.56 0-0.512 1.536 18.944-10.752 40.96-28.672 59.392-45.056 57.856-53.248 92.672-111.104 114.688-169.472 0-1.024-2.048-1.024-1.024-2.56 1.536-1.536 2.048 0 3.072-1.536z m-167.936 210.944c-0.512-1.024 1.024-1.536 2.048-2.56 0 1.024-1.024 1.536-2.048 2.56z m0-5.12c0-1.536 3.072-2.56 4.096-4.096-0.512 2.048-2.048 5.12-4.096 4.096z m125.952-122.88c-1.024 0.512-1.024 0-1.536-1.536 1.024-1.024 1.536-0.512 2.56-1.024 0.512 1.024-1.536 1.536-1.024 2.56z m0-14.336c-0.512 0.512-1.024-1.024-1.536-0.512-1.024-1.024 1.536-1.536 2.048-3.072 1.024 1.536 0 2.56-0.512 3.584zM128 745.984c-22.016-37.376-38.4-74.24-48.128-110.592-20.992-72.704-23.04-143.36-9.728-212.48s41.984-136.704 95.744-202.24c26.624-32.256 61.952-64 99.328-88.576s73.728-40.448 110.08-52.224c4.096-6.656 4.096-13.824 3.072-20.992-55.808 16.384-113.664 44.032-170.496 92.16-72.704 61.44-114.176 132.096-139.264 201.728 4.608 8.704 3.072 18.432-8.192 25.6-3.072 12.288-7.168 24.064-8.704 36.352 1.024 1.536 3.072 0.512 2.048 2.56-1.024 0-1.536-1.536-2.048-1.536C46.08 442.368 43.52 469.504 43.008 496.64c-0.512 13.312-0.512 27.136 0.512 40.96 0.512 13.312 1.024 28.16 4.608 40.448 2.048-3.072 2.048-6.656 5.12-9.728 3.072 3.584 0.512 7.168-0.512 10.752l-0.512 8.704c0 2.048-3.072 1.024-3.072 2.56 1.536 9.728 3.584 19.456 6.144 29.184 5.632-1.536 11.264-2.56 16.896-8.192 0.512 3.584-3.072 4.608-3.584 7.168 1.024-1.024 2.56-3.584 4.096-2.56-0.512 3.584-1.024 7.68 1.536 10.752-1.024 3.072-5.12 3.584-7.168 6.656 0 3.072-1.536 5.632-5.12 8.192 15.872 57.856 46.592 119.296 96.768 178.176 7.68 8.192 17.408 18.432 25.6 27.136 4.608 3.584 8.192 8.192 12.8 11.776 2.048 2.56 4.608 4.096 6.656 6.144 1.024 1.024 2.048 2.048 3.072 2.56 0.512 0 1.024 1.536 1.536 1.024 0.512 1.024 1.536 2.048 1.024 0.512-1.024-0.512 2.048-1.536 2.56-2.048 1.536-5.632 1.024-12.288 4.608-16.896-32.256-27.136-65.024-66.56-88.576-103.936zM363.008 66.56c1.024 1.024-0.512 1.536 0 2.56-0.512 1.024-1.024-0.512-1.536-1.024l1.536-1.536z m-3.584 2.56c1.024 1.024 0 2.56 0.512 3.584-0.512 0.512-1.536-1.024-2.048-2.048l1.536-1.536zM65.024 610.816c-0.512-0.512-1.024-0.512-1.536-1.024 1.024-1.024 2.56-2.048 4.096-2.56 1.024 1.536-2.048 2.048-2.56 3.584z m135.68 243.2c-1.024 1.024-2.048 1.024-1.536 2.048-5.12-4.608-10.24-12.288-15.36-17.92 1.024-2.048 2.048 0 3.072-0.512 1.024 6.656 10.24 13.312 13.824 16.384z m404.992-781.824c1.536-0.512 3.072 0 4.096 1.024 3.072-0.512 5.632 1.536 8.192 1.536 6.144 1.536 11.776 3.072 17.408 4.608 11.264 3.584 22.528 6.656 33.792 11.264 22.528 8.192 44.544 18.944 66.56 31.232 43.008 25.088 88.576 61.44 126.976 110.08C931.84 319.488 955.392 408.064 961.024 491.52c6.656 1.536 12.288 6.656 18.944 8.704 1.536-12.8-1.024-26.624-2.048-38.912 0 2.56-1.536 4.608-4.608 3.072l4.608-3.584c-1.024-4.608 0.512-13.312-3.584-14.336 1.536-1.024 2.048-1.536 2.048-2.56-8.704-54.784-26.624-112.64-60.928-170.496-34.304-58.368-89.6-116.224-139.776-148.992-17.408-12.288-34.304-22.016-51.712-31.232-8.704-4.608-17.408-8.704-26.112-12.288-4.608-2.048-8.704-4.096-13.312-5.632-4.096-1.024-9.728-4.608-12.8-3.584-1.536-2.048-3.072-2.048-4.608-2.56-1.536-1.024-2.56 1.024-4.096 1.024-0.512-1.536 1.024-2.048-0.512-3.072-12.8-4.096-26.112-9.216-39.936-11.264 2.048 0.512-0.512 1.536-2.048 2.56-1.536 1.536-2.56-0.512-4.096 1.024-2.048 4.096-9.216 5.632-11.776 10.24-0.512 0.512 0 2.048-1.024 1.536-2.56 0.512 1.024 0 2.048 1.024z m367.616 386.56c1.024 1.536 1.024 2.56 0 3.584-1.536 0.512-2.56 0-3.584 0 0-1.024 2.56-2.56 3.584-3.584z m-4.096-2.048c0 1.024 0.512 2.048 0 3.072-1.536 1.024-2.56 1.024-3.584 0.512 0-1.536 2.56-2.048 3.584-3.584z m-4.096-3.072c0.512 1.024 0.512 2.56 0 3.072-1.536 1.024-2.56 0-3.072 0-0.512-1.024 2.048-1.536 3.072-3.072z m-303.616-383.488l1.024 1.024c-0.512 1.024-1.024 0-2.048 0.512 0-1.024 0.512-1.536 1.024-1.536z m270.848 611.328c2.048-1.536 3.072 1.536 6.144 1.024-1.536-2.56-4.096-4.096-5.12-7.168l-0.512 0.512c-10.752 30.72-28.672 61.44-46.592 92.672-27.136 37.376-59.392 74.24-102.4 107.008-10.752 7.168-20.992 14.848-30.72 20.992-1.536 1.024 0.512 2.048-0.512 2.56-0.512-0.512-1.024-1.536-1.536-0.512 1.536 0.512 1.536 3.584 2.048 5.12-1.024-0.512-2.56-3.072-4.096-4.608-40.96 25.6-80.896 40.448-120.32 51.712-0.512 2.56-4.096 5.632-1.536 8.704 2.56-2.048 7.168-12.8 12.288-10.24-1.024 7.68-11.264 12.8-11.776 20.48 5.12-1.024 10.752-2.048 16.384-4.608 1.536-2.048 4.096-6.656 7.68-6.144 2.048 0.512 0.512 3.072 2.048 4.096 46.592-14.336 95.232-37.376 142.848-73.216 36.864-28.16 68.608-60.928 91.648-92.16-1.536-1.536-4.096-1.024-6.144-3.584-0.512-3.584 2.048-7.68 1.024-11.264l3.072-2.56c1.024 2.56 4.608 5.12 6.144 3.072 1.024-3.584-0.512-7.68 1.024-10.752 4.096 0.512 8.192-2.56 12.288-3.584 1.024-5.12 0-9.728 1.536-14.848-0.512-3.584-1.536-6.656 0-9.728 5.632 1.024 3.072 9.216 5.632 13.824 12.8-20.48 22.528-40.96 31.232-61.44-3.584-3.584-12.8-8.192-11.776-15.36z m-183.296 231.936c-1.024-1.024-0.512-1.536-1.024-2.56 1.024 0 2.048 0.512 3.072 0 0.512 1.536-1.536 2.048-2.048 2.56z m-0.512-6.656c1.024-0.512 2.048 0 3.072 0 0.512 1.536 0.512 3.584 1.024 4.096-2.048 1.024-3.072-3.072-4.096-4.096z m-1.024-5.12c1.024-0.512 2.56 0 3.072 0 1.024 1.536 0.512 3.584 1.536 4.608-1.536 0-3.072-3.072-4.608-4.608z m137.216-123.904c-1.024 0.512-1.536 0-2.048-1.024 1.536-1.024 2.56-1.536 3.584-2.56-0.512 1.536-1.536 2.56-1.536 3.584z m-407.552-142.336l18.432 4.096","p-id":"23730",fill:"#cdcdcd"}),s.createElementVNode("path",{d:"M393.216 575.488l-108.032 61.44 27.648 48.128c3.584 6.656 8.704 8.192 15.36 4.096l88.064-49.664c3.072-1.536 5.12-4.096 6.656-7.68 1.024-4.096-3.072-15.872-12.288-34.816l19.456-4.096c10.24 23.04 14.848 37.888 13.824 44.032-2.048 6.144-6.656 11.776-13.312 15.872l-97.28 55.296c-14.336 8.192-26.112 4.608-34.816-10.24L245.76 606.72l16.896-9.728 13.312 24.064 91.136-51.712-23.552-41.472L227.328 593.92l-9.216-15.872 133.12-75.264 41.984 72.704zM439.808 531.456c-1.536 8.192-3.584 16.896-6.144 26.624l-15.872-14.848c6.656-29.696 7.168-60.416 0.512-91.648l19.968-1.536c3.072 15.872 4.608 31.744 4.096 47.616l66.56 117.76-16.896 9.728-52.224-93.696z m43.52-62.976c1.536 20.992 0.512 40.96-2.56 58.88l-19.968-7.68c5.12-25.088 4.096-55.808-2.56-91.136l18.944-5.632c1.536 7.68 3.072 15.872 4.096 25.6l72.192-40.96 9.216 16.384-56.32 31.744 14.336 25.088 49.152-28.16 9.216 15.872-49.152 28.16 14.848 25.6 49.664-28.16 9.216 15.872-49.664 28.16 22.528 39.424-16.896 9.728-70.144-122.368-6.144 3.584zM646.144 322.56c4.608 3.072 9.728 7.168 14.848 11.264l61.44-34.816 9.216 15.872-128 72.704 21.504 38.4c21.504 39.424 32.768 73.728 34.304 102.912l-19.456-4.096c-1.536-25.088-11.776-54.784-31.232-89.6l-30.72-54.272 65.024-36.864c-5.12-3.584-9.728-6.656-13.824-8.704l16.896-12.8zM640 433.152l-10.752-47.104 16.896-6.656 5.632 27.648 18.432-10.752c-3.072-10.752-6.144-22.016-10.752-33.28l16.896-7.168c4.096 10.24 7.168 20.48 9.728 30.72l63.488-35.84 8.192 14.848-67.584 38.912c0.512 2.56 1.536 7.68 2.56 14.848l58.88-33.28 7.68 13.312c2.048 12.8 0 26.624-6.144 41.984 12.8-0.512 28.16-3.072 45.056-6.656v17.408c-20.992 3.584-38.4 5.632-53.248 5.12-7.68 13.312-18.432 27.136-31.744 42.496l-14.848-9.216c11.264-12.8 20.48-24.064 27.648-34.816-12.288-2.048-23.04-5.12-31.232-9.728 0.512 25.6-3.584 48.64-12.8 69.632l-15.872-9.728c10.752-27.648 13.312-58.368 7.68-91.648l-33.792 18.944z m57.856-93.184c11.264 1.024 21.504 2.56 30.72 5.12l-5.12 16.896c-8.192-2.56-18.432-4.608-30.72-6.144l5.12-15.872z m3.584 92.672c9.216 4.608 19.968 7.168 32.768 8.192 5.632-11.264 8.704-22.016 8.704-31.744l-41.472 23.552z","p-id":"23731",fill:"#cdcdcd"})],-1)])])):s.createCommentVNode("",!0),i.isActive?(s.openBlock(),s.createElementBlock("div",hf,[...t[2]||(t[2]=[s.createStaticVNode('<svg viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-v-adf305b3><title data-v-adf305b3>\u91CD\u65B0\u6FC0\u6D3B</title><g id="\u91CD\u65B0\u6FC0\u6D3B" stroke="none" fill="none" fill-rule="evenodd" stroke-width="1" data-v-adf305b3><g id="\u7F16\u7EC4" fill="#0088FF" data-v-adf305b3><path d="M129.7,31.7 C129.2,32.9 129.6,34.7 129.1,36.1 C127.8,37.1 126.6,38.2 125.6,39.3 C127.1,39.6 128.7,39.9 130.2,40.6 C131,41.8 131.5,43 132.2,44.2 C133.4,43.1 134.4,41.9 135.4,40.7 C137.1,40.3 138.7,40.2 140.4,39.7 C139.2,38.5 138.8,37.7 137.8,36.4 C138.1,34.9 138.7,33.5 138.6,32.1 C137,32.7 135.5,33.1 133.9,33.6 C132.4,32.7 131.1,32.4 129.7,31.7 L129.7,31.7 Z M173.4,107.2 C174.8,106.2 176,105.3 177.1,104.2 C175.6,103.8 174.1,103.4 172.6,102.7 C171.9,101.5 171.5,100.3 170.8,99.1 C169.6,100.1 168.5,101.3 167.5,102.4 C165.8,102.7 164.2,102.6 162.4,103.1 C163.5,104.4 163.9,105.2 164.8,106.6 C164.4,108.1 163.7,109.5 163.7,110.9 C165.3,110.4 166.9,110.1 168.5,109.7 C169.8,110.5 171.3,111 172.6,111.7 C173.2,110.4 172.8,108.6 173.4,107.2 L173.4,107.2 Z M114.3,16.8 C121.6,18.2 128.9,20.4 136.1,23.9 C136.3,23.7 136.7,23.9 136.9,23.6 C136.5,23.4 136.1,23.7 135.7,23.4 C136.2,22.6 136.8,22.7 137.4,22.5 C137.1,21.4 136,22.4 135.5,22.5 C135.4,22.8 135.4,23 135.3,23.2 C135,23 134.7,23.2 134.4,22.8 C134.6,22.1 135.4,22.3 135.8,21.9 C135.6,21.8 135.9,21.6 135.8,21.5 C128.8,18.4 121.7,16 114.7,14.8 C114.5,15.2 114.8,15.7 115.1,16.1 C115.3,16.2 115.7,15.9 115.6,16.1 C115.4,16.2 115.8,16.4 115.6,16.5 C115.1,16.4 114.7,16.7 114.3,16.8 Z M64.4,163.2 C65.7,164 67.2,164.5 68.5,165.2 C69.1,164 68.8,162.2 69.3,160.8 C70.7,159.8 71.9,158.9 73,157.8 C71.5,157.4 70,157 68.5,156.3 C67.8,155.1 67.4,153.9 66.7,152.7 C65.5,153.7 64.4,154.9 63.4,156 C61.7,156.3 60.1,156.2 58.3,156.7 C59.4,158 59.8,158.8 60.7,160.2 C60.3,161.7 59.6,163.1 59.6,164.5 C61.2,163.9 62.8,163.6 64.4,163.2 L64.4,163.2 Z M98.4,172.6 C99.7,173.4 101.2,173.9 102.5,174.6 C103.1,173.4 102.8,171.6 103.3,170.2 C104.7,169.2 105.9,168.3 107,167.2 C105.5,166.8 104,166.4 102.5,165.7 C101.8,164.5 101.4,163.3 100.7,162.1 C99.5,163.1 98.4,164.3 97.4,165.4 C95.7,165.7 94.1,165.6 92.3,166.1 C93.3,167.4 93.7,168.1 94.7,169.6 C94.3,171.1 93.6,172.5 93.6,173.9 C95.3,173.3 96.8,173.1 98.4,172.6 L98.4,172.6 Z M16.1,94.9 C15.5,94.8 14.9,94.3 14.1,94.5 C13.5,102.1 14.1,110.5 16.1,118.6 C16.5,118.1 16.8,117.4 17.5,117.4 C17.5,117.1 17.6,116.9 17.8,116.6 C16.3,109.3 15.9,102.1 16.1,94.9 L16.1,94.9 Z M135.9,162 C137.2,162.8 138.7,163.3 140,164 C140.6,162.8 140.3,161 140.8,159.6 C142.2,158.6 143.4,157.7 144.5,156.6 C143,156.2 141.5,155.8 140,155.1 C139.3,153.9 138.9,152.7 138.2,151.5 C137,152.5 135.9,153.7 134.9,154.8 C133.2,155.1 131.6,155 129.8,155.5 C130.8,156.7 131.2,157.5 132.2,159 C131.8,160.5 131.1,161.9 131.1,163.3 C132.7,162.7 134.3,162.4 135.9,162 L135.9,162 Z M85.9,15.7 C86.2,15.9 86.7,15.4 86.6,15.8 C86.8,16.1 86.3,16.3 86.5,16.6 C94.2,15.8 102,15.5 109.6,16.4 C110.3,15.8 111.1,15.2 111.7,14.6 C109.9,14.1 107.5,14 105.4,13.7 C103.3,13.5 101.1,13.5 99,13.5 C94.7,13.6 90.3,13.8 85.9,14.6 C85.9,14.6 85.8,14.5 85.8,14.6 C86.1,14.9 85.6,15.3 85.9,15.7 L85.9,15.7 Z M22,68.6 C24.9,61.1 28.9,53.8 34.6,46.8 C40.2,39.8 48,32.8 56,28 C64.1,23.1 72,20 79.9,18.1 C80.4,17.3 81.1,16.4 81.4,15.5 C80.1,15.9 78.6,15.9 77.5,16.7 C76.1,16.5 74.6,17.4 73.2,17.7 C71.7,18.1 70.3,18.6 68.8,19.2 C65.9,20.3 62.9,21.6 60,23.2 C54,26.4 48.1,30.2 42.3,35.5 C24.8,51.4 17.6,69.2 14.7,86.9 C14.6,87.2 14.9,87.3 14.9,87.4 C14.5,87.8 14.6,88.3 14.5,88.7 C14.8,89 15.4,89.3 15.5,89.6 C15.3,89.9 14.9,90.3 14.7,90.4 C14.3,90.2 14.9,89.9 14.6,89.7 C14.3,90.2 14.3,91.1 14.3,91.8 C14.3,92.4 13.9,93.4 14.4,93.7 C15.3,93.5 14.4,92.7 14.4,92.2 C15.2,91.9 15.6,91.4 16.3,91.1 C17,89.2 16.8,87.3 17.3,85.4 C17.5,83.5 18,81.7 18.4,79.7 C19.4,76.1 20.4,72.3 22,68.6 Z M15.8,89.8 C16,89.8 16.3,90 16.3,90.2 C16,90.5 15.9,90.2 15.8,89.8 Z M155.6,37.4 C161.3,42.3 167.3,49.7 171.3,56.2 C179.5,69.5 182.7,82.4 183.7,95.1 C184.3,95.1 185,95.6 185.8,96.1 C186.2,95.6 185.8,94.4 185.9,93.7 C185.8,92.9 185.8,92 185.6,91.2 C185.5,89.5 185.3,87.8 185,86.2 C184.5,82.8 183.7,79.4 182.7,76 C180.6,69.3 177.9,62.3 173.5,55.4 C169.5,48.7 163,40.8 157,35.6 C150.9,30.1 144.7,26.1 138.4,22.9 C138.4,22.9 138.3,22.8 138.3,22.9 C138.5,23.7 138.1,24.5 138.1,25.3 C144,28.2 149.9,32.1 155.6,37.4 Z M160.4,137.6 C161.7,138.4 163.2,138.9 164.5,139.6 C165.1,138.4 164.8,136.6 165.3,135.2 C166.7,134.2 167.9,133.3 169,132.2 C167.5,131.8 166,131.4 164.5,130.7 C163.8,129.5 163.4,128.3 162.7,127.1 C161.5,128.1 160.4,129.3 159.4,130.4 C157.7,130.7 156.1,130.6 154.3,131.1 C155.3,132.4 155.7,133.2 156.7,134.6 C156.3,136.1 155.6,137.5 155.6,138.9 C157.2,138.3 158.8,138 160.4,137.6 L160.4,137.6 Z M137.1,24.7 C137.1,24.6 136.9,24.1 136.7,24.2 C136.8,24.2 136.7,24.3 136.6,24.5 C136.7,24.5 136.9,24.6 137.1,24.7 Z M81.6,13.4 C81.5,13.4 81.3,13 81.1,12.9 C80.9,12.1 81.9,11.4 81.3,10.5 C81.1,10.4 80.9,10.5 80.7,10.5 C80.8,11.6 80.2,12.8 80.1,13.9 C80.6,13.7 81.3,13.8 81.6,13.4 Z M84.1,17.2 C83.8,16.4 84.6,15.7 84.4,14.9 C83.7,15 83,15 82.4,15.5 C82.4,16 82.3,16.5 82.1,17 C81.7,17.2 81.6,17.5 81.7,17.8 C82.6,17.5 83.3,17.4 84.1,17.2 L84.1,17.2 Z M78.1,11.5 C78.6,11.4 78.8,11.6 79.1,11.9 C79.8,11.5 79.6,10.6 79.8,10.1 C78.6,10.4 77.4,10.6 76,11.1 C75.6,12.5 74.8,13.8 74.9,15.3 C75.7,15 76.5,14.9 77.3,14.5 C77.6,13.6 77.7,12.5 78.1,11.5 Z M83.7,13.1 C83.6,12.9 83.4,12.4 83.1,12.5 C83.1,12.8 82.8,13 82.9,13.4 C83.2,13.2 83.4,13.4 83.7,13.1 Z M105.3,24.2 C103.7,24.8 102.2,25.2 100.6,25.7 C99.2,25 97.8,24.6 96.4,23.9 C95.9,25.1 96.3,26.9 95.8,28.3 C94.5,29.3 93.3,30.4 92.3,31.5 C93.8,31.8 95.4,32.1 96.9,32.8 C97.7,34 98.2,35.2 98.9,36.4 C100.1,35.3 101.1,34.1 102.1,32.9 C103.8,32.5 105.4,32.4 107.1,31.9 C105.9,30.7 105.5,29.8 104.5,28.6 C104.7,27.1 105.3,25.6 105.3,24.2 L105.3,24.2 Z M113.9,12.8 C115.1,11.9 116.3,10.8 117.1,9.8 C113.8,8.9 110.4,8.7 107.1,8.4 C106.8,8.5 106.5,8.7 106.2,8.8 C105.9,8.6 106.2,8.5 106,8.3 C100,7.8 93.8,7.9 87.7,8.8 C87.6,9.3 86.8,9.8 86.6,10.4 C86.6,10.7 87.2,11 87,11.3 C86.5,11.9 86.1,11.3 85.6,11.8 C85.3,12.2 85.4,12.6 85.1,13 C94.8,11.5 104.4,11.5 113.9,12.8 Z M183.9,97.2 C184.4,97.3 185,98 185.5,97.9 C185.6,97.5 185.9,97.4 185.9,97.1 C185.2,96.9 184.5,96.2 183.8,95.8 C183.9,96.3 183.7,96.8 183.9,97.2 Z M92.3,153.1 C92.4,152.8 92.8,152.5 93.1,152.5 C93.1,151.9 93,151.6 92.7,151.2 C86.3,150.1 80,147.9 73.8,144.4 C73.5,145 73.1,145.6 73.2,146.3 C79.4,150 85.8,152.1 92.3,153.1 L92.3,153.1 Z M31.4,103.7 C32.6,102.6 33.6,101.4 34.6,100.2 C36.3,99.8 37.9,99.7 39.6,99.2 C38.4,98 38,97.2 37,95.9 C37.3,94.4 37.9,93 37.8,91.6 C36.2,92.2 34.7,92.6 33.1,93.1 C31.7,92.4 30.3,92 28.9,91.3 C28.4,92.5 28.8,94.3 28.3,95.7 C27,96.7 25.8,97.8 24.8,98.9 C26.3,99.2 27.9,99.5 29.4,100.2 C30.2,101.3 30.8,102.5 31.4,103.7 L31.4,103.7 Z M130.1,144.9 C129.5,144.9 128.8,144.2 128.5,143.6 C125.6,145.5 122.9,146.7 120,148.1 C120.1,148.2 120,148.2 120.1,148.3 C120.1,149 119.5,149.6 119.4,150.4 C122.9,149 126.7,147.4 130.1,144.9 Z M47.6,67.8 C46.5,66.6 46,65.7 45,64.5 C45.3,63 45.9,61.6 45.8,60.2 C44.2,60.8 42.7,61.2 41.1,61.7 C39.7,61 38.3,60.6 36.9,59.9 C36.4,61.1 36.8,62.9 36.3,64.3 C35,65.3 33.8,66.4 32.8,67.5 C34.3,67.8 35.9,68.1 37.4,68.8 C38.2,70 38.7,71.2 39.4,72.4 C40.6,71.3 41.6,70.1 42.6,68.9 C44.3,68.4 45.9,68.3 47.6,67.8 L47.6,67.8 Z M116.3,149.3 C109.1,151.7 101.9,152.1 94.9,151.5 C95,152.1 95.1,152.7 95.5,153.4 C102.3,154.3 109.2,153.6 116.3,151.4 C116.5,150.7 116.6,150 116.3,149.3 Z M71.5,145.3 C71.8,144.7 72,143.9 72.1,143.3 C70.9,142.5 69.6,141.6 68.4,140.6 C67.7,140.4 66.8,141.2 67.1,142 C68.5,143.5 70,144.3 71.5,145.3 Z M191.2,110.8 C191.4,107.9 191.7,105 191.7,102 C191.4,101.5 191.4,101.1 191.3,100.7 C190.2,99.5 189,99.2 187.8,98.9 C188.1,109.8 186.1,120.4 182.7,131.1 C183.8,131.5 184.8,132.1 186,132.6 C188.5,125.8 190.2,119.1 190.9,112.2 C191.2,111.9 190.6,111.9 190.8,111.6 C190.8,111.2 191.1,111.2 191.2,110.8 Z M119.2,186.2 C92.6,191.3 66.9,186.5 42.6,166.5 C42.8,168.1 42.3,169.7 42.6,171.5 C46.8,174.9 51,177.7 55.4,180.2 C59.8,182.5 64.1,184.8 68.6,186.1 C69.2,186.1 69.5,185.1 70,185.1 C70.6,185.7 71.4,186.4 71.2,187.2 C73.3,187.9 75.3,188.4 77.3,189 C78.3,189.2 79.3,189.5 80.3,189.7 C81.4,189.9 82.4,190.4 83.4,190.1 C83.6,189.7 83.1,189.5 83.1,189.1 C83.7,188.4 84.4,187.6 85.1,187.8 C85.2,188.2 85.4,188.7 85.3,189 C84.5,189.3 84.2,190 83.7,190.4 C87,191 90.4,191.5 93.7,191.7 C93.6,191.1 94.5,190.7 94.8,190.2 C96.1,190.6 97.4,190.5 98.6,191 C98.5,191.3 98.5,191.6 98.4,191.9 C101.1,192.2 103.7,191.9 106.4,191.8 C106.6,191.4 106.7,191.5 107,191.5 C107.1,191 106.7,190.3 107,189.7 C107.7,189.6 108.5,189.7 108.9,190.3 C108.5,190.8 108.9,191.1 108.9,191.7 C112,191.5 115.1,191 118.2,190.3 C117.9,189.5 118.4,188.7 118.2,188 C118.5,187.9 118.7,188 119,187.7 C119.5,187.2 119,186.7 119.2,186.2 L119.2,186.2 Z M147.6,122.2 C147.6,122.2 147.6,122.1 147.6,122.2 L147.4,122.4 C146.4,124.8 144.5,127.3 143.5,129.5 C143.4,129.9 143,129.7 142.9,130 C140.1,133.9 136.5,137.7 132,141.2 C132.3,141.5 132.5,141.7 132.6,142 C132.8,142.3 132.6,143 132.8,143 C140.4,137.3 145.6,130.3 148.8,123.8 C148.6,123.3 148.1,122.4 147.6,122.2 Z M51.7,79.9 C53.2,75.8 55.5,71.9 58.5,67.9 C58.3,67.1 58.6,66.4 58.4,65.7 C58.1,65.8 57.9,65.7 57.6,65.8 C54,70.4 51.4,75.1 49.5,79.8 C49.8,80 49.8,80.3 49.9,80.5 C49.6,82.7 48.8,85 48,87.2 C47.8,87.4 47.3,87.6 47.4,88.1 C47.3,88.3 47.2,87.8 47.1,88.1 C46.3,91 46,93.9 45.8,96.9 L45.8,101.3 C46,102.9 45.7,104.3 46.3,105.9 C46.8,106.3 47.4,106.3 48,105.7 C48.2,104.2 47.8,102.6 47.8,101.2 C45.6,100.5 45.6,97.2 47.9,96.8 C47.9,95.9 48.3,94.9 48,94.1 C48.4,93.4 48.3,92 48.7,91 C48.9,89.9 49,88.7 49.4,87.6 C49.8,85.4 50.5,83.1 51.4,81 C51.5,80.8 51.4,80.5 51.4,80.4 C51.5,80.2 51.6,80.1 51.7,79.9 L51.7,79.9 Z M63.7,46.7 C64.9,45.6 65.9,44.4 66.9,43.2 C68.6,42.8 70.2,42.7 71.9,42.2 C70.7,41 70.3,40.1 69.3,38.9 C69.6,37.4 70.2,36 70.1,34.6 C68.5,35.2 67,35.6 65.4,36.1 C64,35.4 62.6,35 61.2,34.3 C60.7,35.5 61.1,37.3 60.6,38.7 C59.3,39.7 58.1,40.8 57.1,41.9 C58.6,42.2 60.2,42.5 61.7,43.2 C62.5,44.3 63.1,45.6 63.7,46.7 L63.7,46.7 Z M103.1,47.5 C108.6,47.8 114,49.2 119.3,51.1 C119.8,50.9 120.4,50.3 120.9,49.8 C115.1,47.4 109.3,45.9 103.3,45.6 C103,46 103.1,46.8 103.1,47.5 Z M69.5,55.3 C68.8,55.5 68,55.6 67.7,56.4 C68.2,56.5 67.4,57.8 66.9,57.3 C67.1,57 67.6,56.8 67.7,56.5 C66.9,56.3 65.8,57.7 65.3,58.3 C65.1,58 64.8,58.3 64.6,58.4 C62.7,60.1 61.1,61.7 59.6,63.3 C60,63.8 60.3,64.6 60.6,65.2 C62.5,63.1 64.7,61.1 66.9,59.1 C67,58.9 66.4,59.1 66.5,58.9 C66.7,58.6 67.1,58.5 67.2,58.2 C67.3,58.1 66.6,58.3 66.7,58.1 C67.1,57.9 67.4,57.3 67.7,57.4 C67.2,58 67.5,58.1 67.4,58.8 C77.7,50.9 87.4,48.2 97.1,47.6 C97.9,47 98.1,46.3 98,45.5 C88.8,46 79.6,48.2 70,54.5 C69.8,54.7 69.9,55 69.5,55.3 L69.5,55.3 Z M154.2,107.7 C154.5,105.3 154.8,102.9 154.8,100.5 C154.9,99.3 154.9,98.1 154.8,96.9 C154.6,95.6 155.1,94.4 154.1,93.2 C153.6,93.1 153.3,93 152.8,93.4 C152.7,93.5 152.7,93.6 152.6,93.7 C152.5,96 152.9,98.3 152.8,100.6 C152.7,102.9 152.5,105.2 152.2,107.5 C151.5,112.1 150.1,116.5 148.3,121 C148.9,121 149.5,121.4 150,121.8 C152,117.2 153.3,112.5 154.2,107.7 L154.2,107.7 Z M71.7,39.5 C71.8,39.3 71.5,39 71.5,39 C71.5,39.1 71.5,39.1 71.4,39.2 C71.5,39.3 71.6,39.6 71.7,39.5 Z M130.2,57.3 C130.6,57.2 130.8,57.3 131.1,57 C131.3,56.6 131.4,56.2 131.3,55.8 C129.3,54.1 127.3,52.8 125.1,51.9 C125.2,52.6 125,53.3 125,54 C126.8,55 128.5,56.2 130.2,57.3 Z M122.7,182.7 C122.9,183 122.4,183.7 122.6,183.5 C130.5,181.6 138.4,178.2 146.4,173.1 C146.2,172.8 145.8,172.5 146,172.3 C146.2,172.2 146.4,172.4 146.6,172.3 C146.4,172 146,171.6 145.9,171.3 C146.1,171.1 146.6,171.5 146.5,171.2 C146.3,171.1 146.2,170.9 146.1,170.7 C137.5,176.1 129,179.5 120.7,181.7 C120.3,182.2 120,182.7 119.5,183.2 C119.2,182.9 119.4,182.5 119,182.3 C117.3,182.1 115.4,182.9 113.6,183 C111.7,183.2 109.9,183.5 108.1,183.6 C104.5,183.9 101,184.1 97.4,183.9 C90.3,183.7 83.3,182.4 76.3,180.4 C62.4,176 48.8,168.6 35.8,153.5 C35.5,153.2 35,152.4 34.6,152.1 C33.9,152 33.4,152.8 32.8,152.7 C32.7,151.7 32.8,150.7 32.7,149.6 C25.2,139.3 21.1,129.3 18.5,119.4 C18,119.2 17.5,118.4 16.7,118.3 C16.4,118.6 16.2,118.7 16.1,118.9 C16.3,119.2 16.5,118.7 16.6,118.9 C16.3,119.2 16.4,119.3 16.4,119.6 C19.2,131 24.4,143 34.1,154.8 C47.2,170.3 61.8,178.3 76.3,182.7 C90.9,186.9 105.9,187.4 121.1,183.8 C121.2,183.4 122,182.3 122.7,182.7 L122.7,182.7 Z M181,130.1 C184.6,119.8 186.4,109.4 186,98.7 C185.7,98.8 185.1,98.9 185.5,98.5 C184.9,98.8 184.5,98.4 183.9,98.3 C184,121.4 177.1,144.7 153.6,165 C153.5,165.5 153.7,166.1 153.4,166.7 C153.2,166.7 152.9,166.9 152.7,166.9 C152.3,166.8 152.3,166.6 152.1,166.2 C151.1,167 150.1,167.7 149,168.5 C148.8,169 148.5,169.9 148,169.4 C148.1,169.3 148.4,169.2 148.3,169.1 C147.6,169.7 146.9,170.1 146.2,170.6 C146.4,171 146.3,171.3 146.6,171.6 C146.2,171.8 146.7,172.2 146.7,172.5 C146.7,172.7 146.2,172.5 146.6,172.8 C150.3,170.7 154.6,167.2 158.2,164 C169.5,153.6 176.3,142.3 180.6,130.9 C180.6,130.7 180.2,130.7 180.4,130.4 C180.7,130.1 180.8,130.4 181,130.1 L181,130.1 Z M148.2,171.3 C148.1,171.1 148.4,171 148.6,170.8 C148.6,171 148.4,171.1 148.2,171.3 Z M148.2,170.3 C148.2,170 148.8,169.8 149,169.5 C148.9,169.9 148.6,170.5 148.2,170.3 Z M172.8,146.3 C172.6,146.4 172.6,146.3 172.5,146 C172.7,145.8 172.8,145.9 173,145.8 C173.1,146 172.7,146.1 172.8,146.3 Z M172.8,143.5 C172.7,143.6 172.6,143.3 172.5,143.4 C172.3,143.2 172.8,143.1 172.9,142.8 C173.1,143.1 172.9,143.3 172.8,143.5 L172.8,143.5 Z M25,145.7 C20.7,138.4 17.5,131.2 15.6,124.1 C11.5,109.9 11.1,96.1 13.7,82.6 C16.3,69.1 21.9,55.9 32.4,43.1 C37.6,36.8 44.5,30.6 51.8,25.8 C59.1,21 66.2,17.9 73.3,15.6 C74.1,14.3 74.1,12.9 73.9,11.5 C63,14.7 51.7,20.1 40.6,29.5 C26.4,41.5 18.3,55.3 13.4,68.9 C14.3,70.6 14,72.5 11.8,73.9 C11.2,76.3 10.4,78.6 10.1,81 C10.3,81.3 10.7,81.1 10.5,81.5 C10.3,81.5 10.2,81.2 10.1,81.2 C9,86.4 8.5,91.7 8.4,97 C8.3,99.6 8.3,102.3 8.5,105 C8.6,107.6 8.7,110.5 9.4,112.9 C9.8,112.3 9.8,111.6 10.4,111 C11,111.7 10.5,112.4 10.3,113.1 L10.2,114.8 C10.2,115.2 9.6,115 9.6,115.3 C9.9,117.2 10.3,119.1 10.8,121 C11.9,120.7 13,120.5 14.1,119.4 C14.2,120.1 13.5,120.3 13.4,120.8 C13.6,120.6 13.9,120.1 14.2,120.3 C14.1,121 14,121.8 14.5,122.4 C14.3,123 13.5,123.1 13.1,123.7 C13.1,124.3 12.8,124.8 12.1,125.3 C15.2,136.6 21.2,148.6 31,160.1 C32.5,161.7 34.4,163.7 36,165.4 C36.9,166.1 37.6,167 38.5,167.7 C38.9,168.2 39.4,168.5 39.8,168.9 C40,169.1 40.2,169.3 40.4,169.4 C40.5,169.4 40.6,169.7 40.7,169.6 C40.8,169.8 41,170 40.9,169.7 C40.7,169.6 41.3,169.4 41.4,169.3 C41.7,168.2 41.6,166.9 42.3,166 C36,160.7 29.6,153 25,145.7 L25,145.7 Z M70.9,13 C71.1,13.2 70.8,13.3 70.9,13.5 C70.8,13.7 70.7,13.4 70.6,13.3 L70.9,13 Z M70.2,13.5 C70.4,13.7 70.2,14 70.3,14.2 C70.2,14.3 70,14 69.9,13.8 L70.2,13.5 Z M12.7,119.3 C12.6,119.2 12.5,119.2 12.4,119.1 C12.6,118.9 12.9,118.7 13.2,118.6 C13.4,118.9 12.8,119 12.7,119.3 Z M39.2,166.8 C39,167 38.8,167 38.9,167.2 C37.9,166.3 36.9,164.8 35.9,163.7 C36.1,163.3 36.3,163.7 36.5,163.6 C36.7,164.9 38.5,166.2 39.2,166.8 L39.2,166.8 Z M118.3,14.1 C118.6,14 118.9,14.1 119.1,14.3 C119.7,14.2 120.2,14.6 120.7,14.6 C121.9,14.9 123,15.2 124.1,15.5 C126.3,16.2 128.5,16.8 130.7,17.7 C135.1,19.3 139.4,21.4 143.7,23.8 C152.1,28.7 161,35.8 168.5,45.3 C182,62.4 186.6,79.7 187.7,96 C189,96.3 190.1,97.3 191.4,97.7 C191.7,95.2 191.2,92.5 191,90.1 C191,90.6 190.7,91 190.1,90.7 L191,90 C190.8,89.1 191.1,87.4 190.3,87.2 C190.6,87 190.7,86.9 190.7,86.7 C189,76 185.5,64.7 178.8,53.4 C172.1,42 161.3,30.7 151.5,24.3 C148.1,21.9 144.8,20 141.4,18.2 C139.7,17.3 138,16.5 136.3,15.8 C135.4,15.4 134.6,15 133.7,14.7 C132.9,14.5 131.8,13.8 131.2,14 C130.9,13.6 130.6,13.6 130.3,13.5 C130,13.3 129.8,13.7 129.5,13.7 C129.4,13.4 129.7,13.3 129.4,13.1 C126.9,12.3 124.3,11.3 121.6,10.9 C122,11 121.5,11.2 121.2,11.4 C120.9,11.7 120.7,11.3 120.4,11.6 C120,12.4 118.6,12.7 118.1,13.6 C118,13.7 118.1,14 117.9,13.9 C117.4,14 118.1,13.9 118.3,14.1 L118.3,14.1 Z M190.1,89.6 C190.3,89.9 190.3,90.1 190.1,90.3 C189.8,90.4 189.6,90.3 189.4,90.3 C189.4,90.1 189.9,89.8 190.1,89.6 Z M189.3,89.2 C189.3,89.4 189.4,89.6 189.3,89.8 C189,90 188.8,90 188.6,89.9 C188.6,89.6 189.1,89.5 189.3,89.2 Z M188.5,88.6 C188.6,88.8 188.6,89.1 188.5,89.2 C188.2,89.4 188,89.2 187.9,89.2 C187.8,89 188.3,88.9 188.5,88.6 Z M129.2,13.7 L129.4,13.9 C129.3,14.1 129.2,13.9 129,14 C129,13.8 129.1,13.7 129.2,13.7 Z M182.1,133.1 C182.5,132.8 182.7,133.4 183.3,133.3 C183,132.8 182.5,132.5 182.3,131.9 L182.2,132 C180.1,138 176.6,144 173.1,150.1 C167.8,157.4 161.5,164.6 153.1,171 C151,172.4 149,173.9 147.1,175.1 C146.8,175.3 147.2,175.5 147,175.6 C146.9,175.5 146.8,175.3 146.7,175.5 C147,175.6 147,176.2 147.1,176.5 C146.9,176.4 146.6,175.9 146.3,175.6 C138.3,180.6 130.5,183.5 122.8,185.7 C122.7,186.2 122,186.8 122.5,187.4 C123,187 123.9,184.9 124.9,185.4 C124.7,186.9 122.7,187.9 122.6,189.4 C123.6,189.2 124.7,189 125.8,188.5 C126.1,188.1 126.6,187.2 127.3,187.3 C127.7,187.4 127.4,187.9 127.7,188.1 C136.8,185.3 146.3,180.8 155.6,173.8 C162.8,168.3 169,161.9 173.5,155.8 C173.2,155.5 172.7,155.6 172.3,155.1 C172.2,154.4 172.7,153.6 172.5,152.9 L173.1,152.4 C173.3,152.9 174,153.4 174.3,153 C174.5,152.3 174.2,151.5 174.5,150.9 C175.3,151 176.1,150.4 176.9,150.2 C177.1,149.2 176.9,148.3 177.2,147.3 C177.1,146.6 176.9,146 177.2,145.4 C178.3,145.6 177.8,147.2 178.3,148.1 C180.8,144.1 182.7,140.1 184.4,136.1 C183.7,135.4 181.9,134.5 182.1,133.1 L182.1,133.1 Z M146.3,178.4 C146.1,178.2 146.2,178.1 146.1,177.9 C146.3,177.9 146.5,178 146.7,177.9 C146.8,178.2 146.4,178.3 146.3,178.4 Z M146.2,177.1 C146.4,177 146.6,177.1 146.8,177.1 C146.9,177.4 146.9,177.8 147,177.9 C146.6,178.1 146.4,177.3 146.2,177.1 Z M146,176.1 C146.2,176 146.5,176.1 146.6,176.1 C146.8,176.4 146.7,176.8 146.9,177 C146.6,177 146.3,176.4 146,176.1 Z M172.8,151.9 C172.6,152 172.5,151.9 172.4,151.7 C172.7,151.5 172.9,151.4 173.1,151.2 C173,151.5 172.8,151.7 172.8,151.9 Z M93.2,124.1 L96.8,124.9" id="\u5F62\u72B6" fill-rule="nonzero" data-v-adf305b3></path><text id="\u91CD\u65B0\u6FC0\u6D3B" transform="translate(99.1901, 99.5228) rotate(-30) translate(-99.1901, -99.5228)" font-family="PingFangSC-Medium, PingFang SC" font-size="39" font-weight="400" letter-spacing="0.4" data-v-adf305b3><tspan x="20.3900543" y="113.522759" data-v-adf305b3>\u91CD\u65B0\u6FC0\u6D3B</tspan></text></g></g></svg>',1)])])):s.createCommentVNode("",!0),a.historyActivityType=="endEvent"?(s.openBlock(),s.createElementBlock("p",uf,[...t[3]||(t[3]=[s.createElementVNode("b",null,"\u6D41\u7A0B\u5DF2\u7ED3\u675F",-1)])])):a.historyActivityType=="startEvent"?(s.openBlock(),s.createElementBlock("p",mf,[s.createElementVNode("span",ff,s.toDisplayString(a.assigneeName||(a.comments&&a.comments.length>0?o.my(a):"")),1),t[4]||(t[4]=s.createTextVNode(" \u5728 ",-1)),s.createElementVNode("span",gf,s.toDisplayString(a.createTime),1),t[5]||(t[5]=s.createTextVNode(" \u53D1\u8D77\u4E86\u6D41\u7A0B ",-1))])):(s.openBlock(),s.createElementBlock("p",yf,[s.createElementVNode("span",Af,s.toDisplayString(a.assigneeName||(a.comments&&a.comments.length>0?o.my(a):"")),1),t[6]||(t[6]=s.createTextVNode(" \u5728 ",-1)),s.createElementVNode("span",Cf,s.toDisplayString(a.createTime),1),t[7]||(t[7]=s.createTextVNode(" \u5F00\u59CB\u5904\u7406 ",-1)),s.createElementVNode("span",kf,s.toDisplayString(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"),1),t[8]||(t[8]=s.createTextVNode(" \u73AF\u8282 ",-1))])),a.historyActivityDurationTime?(s.openBlock(),s.createElementBlock("p",bf," \u4EFB\u52A1\u5386\u65F6 "+s.toDisplayString(a.historyActivityDurationTime),1)):s.createCommentVNode("",!0),a.comments&&a.comments.length>0?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:6},s.renderList(a.comments.filter(c=>c.action==="AddComment"),(c,m)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:m},[m<1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("span",{class:s.normalizeClass(["comment-type",a.class])},s.toDisplayString(r.commentMap[c.type]||c.type),3),s.createElementVNode("span",Ef,s.toDisplayString(c.userId),1),t[9]||(t[9]=s.createTextVNode(": ",-1)),s.createElementVNode("span",null,s.toDisplayString(c.fullMessage),1),a.comments.filter(u=>u.action==="AddComment").length>1?(s.openBlock(),s.createElementBlock("span",{key:0,style:{color:"#1989fa",float:"right"},onClick:t[0]||(t[0]=(...u)=>o.handleClick&&o.handleClick(...u))},[s.createTextVNode(s.toDisplayString(r.toggleText)+" ",1),s.createElementVNode("i",{class:s.normalizeClass([r.isFlag?"arrow-up":"arrow-down"])},null,2)])):s.createCommentVNode("",!0),c.time&&r.isFlag?(s.openBlock(),s.createElementBlock("p",wf,s.toDisplayString(c.time),1)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),m>0&&r.isFlag?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("span",Nf,s.toDisplayString(r.commentMap[c.type]||c.type),1),s.createElementVNode("span",Tf,s.toDisplayString(c.userId),1),t[10]||(t[10]=s.createTextVNode(": ",-1)),s.createElementVNode("span",null,s.toDisplayString(c.fullMessage),1),c.time?(s.openBlock(),s.createElementBlock("p",If,s.toDisplayString(c.time),1)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0)],64))),128)):s.createCommentVNode("",!0),a.endTime&&a.historyActivityType!="startEvent"?(s.openBlock(),s.createElementBlock("p",Bf,"\u7ED3\u675F\u65F6\u95F4: "+s.toDisplayString(a.endTime),1)):s.createCommentVNode("",!0),s.createElementVNode("div",xf,[a.attachmentsFujian&&a.attachmentsFujian.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,onClick:c=>e.$emit("view",a.attachmentsFujian)}," \u67E5\u770B\u9644\u4EF6",8,Sf)):s.createCommentVNode("",!0),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?(s.openBlock(),s.createElementBlock("div",{key:1,onClick:c=>e.$emit("view",a.attachmentsQianzi)}," \u67E5\u770B\u7B7E\u5B57",8,Df)):s.createCommentVNode("",!0)])],10,df))],64))),256))])])}const Va=oe(lf,[["render",Pf],["__scopeId","data-v-adf305b3"]]),hA="",Mf={components:{processFlow:Va},inject:["request"],data(){return{visible:!1,curData:[],curName:"",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u6307\u5B9A\u56DE\u9000\u6D41\u7A0B",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},watch:{visible(e){e||this.$emit("close")}},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),Ma(t)},openDrawer(e,t){let i=t.filter(n=>n.historyActivityType=="userTask");this.curData=i.filter(n=>n.historyActivityId==e.id),this.curData,this.curName=this.curData.length?this.curData[0].historyActivityName:"",this.visible=!!(this.curData&&this.curData.length>0)},closeDrawer(){this.visible=!1}}};function Vf(e,t,i,n,r,o){const a=s.resolveComponent("processFlow");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["bpmnnd-box",r.visible?"bpmnnd-box-active":""])},[s.createVNode(a,{style:{width:"70vw"},request:o.request,"flow-list":o.formatFlow(r.curData)},null,8,["request","flow-list"])],2)}const Of=oe(Mf,[["render",Vf],["__scopeId","data-v-122d7775"]]),uA="",Lf={name:"bpmn-look",components:{bpmnNodeDetail:Of},props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{floatAdd:!1,drawer:!1,isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),this.$refs.container&&this.$refs.container.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(n){console.error(n)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(ki)=="[object Function]"?ki:ki.default,t=Object.prototype.toString.call(jn)=="[object Object]"?jn:jn.default,i=Object.prototype.toString.call(Rn)=="[object Object]"?Rn:Rn.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:n})=>{n||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())}),this.viewer.on("element.click",n=>{n.type,n.element,n&&n.element&&(n.element.type||"").includes("UserTask")?(this.drawer=!0,this.$refs.bpmnNodeDetailRef.openDrawer(n.element,this.approvalData)):(this.drawer=!1,this.$refs.bpmnNodeDetailRef.closeDrawer(n.element,this.approvalData))})},closeDetail(){this.drawer,this.drawer=!1},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom("fit-viewport","auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),n=document.querySelector(".djs-tooltip-container");let r=!1,o,a,l=0,c=0,m=0,u=0;t.addEventListener("touchstart",p=>{r=!0;const y=p.touches[0];o=y.clientX,a=y.clientY;const C=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);l=parseFloat(C[4]),c=parseFloat(C[5]);const E=this.getTransformMatrix(n.style.transform);this.isAdd?(this.floatAdd=!1,m=parseFloat(E[4]),u=parseFloat(E[5])):(m=parseFloat(E[4])+30,u=parseFloat(E[5])+16,this.isAdd=!0,this.floatAdd=!0)}),t.addEventListener("touchmove",p=>{if(!r)return;const y=p.touches[0];let C=y.clientX-o,E=y.clientY-a;c!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${l+C} ${c+E})`),this.floatAdd,n.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${m+C}, ${u+E});`)),e._cachedViewbox&&(e._cachedViewbox.x=C,e._cachedViewbox.y=E),p.preventDefault()}),t.addEventListener("touchend",()=>{r=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),n=this.viewer.get("tooltips");e.forEach(r=>{if(r.id&&r.class&&t.addMarker(r.id,r.class),r.id&&r.tooltip){const o=i.get(r.id);if(o){let{x:a,y:l,type:c}=o;["bpmn:StartEvent","bpmn:EndEvent"].includes(c)?(a=a-45,l=l+65):["bpmn:UserTask"].includes(c)&&(a=a-10,l=l+100),n.add({position:{x:a,y:l},html:r.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=gm(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){this.$refs.container&&this.$refs.container.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}};function Rf(e,t,i,n,r,o){const a=s.resolveComponent("bpmnNodeDetail");return s.openBlock(),s.createElementBlock("div",{ref:"container",class:"bpmn-look",onWheel:t[0]||(t[0]=(...l)=>e.handleWheel&&e.handleWheel(...l))},[s.createVNode(a,{ref:"bpmnNodeDetailRef",onClose:o.closeDetail},null,8,["onClose"])],544)}const Oa=oe(Lf,[["render",Rf],["__scopeId","data-v-0442d8f0"]]),vf=Ye({name:"TopTab",components:{processFlow:Va,BpmnLook:Oa,TopPopup:Fe,ViewAttchList:Jr,PreviewImage:ss},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,n)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let t=[];if(Object.prototype.toString.call(e)==="[object Object]")for(let n in e)t.push(...e[n]);else t=e;let i=(t||[]).map(n=>({...n,attachmentsFujian:(n.attachments||[]).filter(r=>r.type!="signature"),attachmentsQianzi:(n.attachments||[]).filter(r=>r.type=="signature")}));return i=i.reverse(),i},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let n=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+n}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let n=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-n}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}}),mA="",Ff={class:"tops-tab"},jf={class:"tops-tab-header"},Qf=["onClick"],Uf={key:0,class:"bottom-line"},_f={class:"tops-tab-body"},Gf=["name"],qf={key:2,class:"textnone"},zf={key:2,style:{height:"100%"}},Jf={key:1,class:"textnone"},Hf={class:"seal-list__item--option"},Kf={style:{"max-width":"100px"}},Wf={class:"seal-list__item--option"},Yf={style:{"max-width":"100px"}},Zf={class:"seal-list__item--option"},Xf={style:{"max-width":"100px"}};function $f(e,t,i,n,r,o){const a=s.resolveComponent("BpmnLook"),l=s.resolveComponent("processFlow"),c=s.resolveComponent("ViewAttchList"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("PreviewImage");return s.openBlock(),s.createElementBlock("div",Ff,[s.createElementVNode("div",jf,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.isTapList,(p,y)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["tops-tab-header-items",[p.key===e.active?"active":""]]),onClick:C=>e.handleActive(p.key,y)},s.toDisplayString(p.label),11,Qf))),256)),e.isTapList.length?(s.openBlock(),s.createElementBlock("div",Uf)):s.createCommentVNode("",!0)]),s.createElementVNode("div",_f,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.isTapList,p=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:p.key,style:{height:"100%"},class:s.normalizeClass([p.key==="c"&&"tops-tab-body-taskcommentlist"])},[p.key==="a"&&p.type==="default"?s.renderSlot(e.$slots,"default",{key:0},void 0,!0):s.createCommentVNode("",!0),e.active===p.key&&p.key==="b"&&p.type==="default"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"uph-tab-b",style:{height:"100%"},name:p.slot},[e.processXml?(s.openBlock(),s.createElementBlock("div",{key:0,style:{padding:"10px 20px",color:"#1389ff"},onClick:t[0]||(t[0]=()=>e.visibleTack=!0)}," \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")):s.createCommentVNode("",!0),p.key==="b"&&e.processXml?(s.openBlock(),s.createBlock(a,{key:1,ref_for:!0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):(s.openBlock(),s.createElementBlock("div",qf," \u6682\u65E0\u6D41\u7A0B\u56FE "))],8,Gf)):s.createCommentVNode("",!0),p.key==="c"&&p.type==="default"?(s.openBlock(),s.createElementBlock("div",zf,[p.key==="c"&&e.ProcessInsObj.flow?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{isActive:!!(e.ProcessInsObj.historyFlow&&e.ProcessInsObj.historyFlow.length>0),request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow),onView:e.viewList},null,8,["isActive","request","flow-list","onView"]),e.ProcessInsObj.historyFlow&&e.ProcessInsObj.historyFlow.length>0?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.ProcessInsObj.historyFlow,y=>(s.openBlock(),s.createBlock(l,{isHistory:!0,request:e.ProcessInsObj.request,"flow-list":e.formatFlow(y),onView:e.viewList},null,8,["request","flow-list","onView"]))),256)):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock("div",Jf,"\u6682\u65E0\u6570\u636E"))])):s.createCommentVNode("",!0),p.type=="slot"?s.renderSlot(e.$slots,p.slot,{key:3},void 0,!0):s.createCommentVNode("",!0)],2)),[[s.vShow,e.active===p.key]])),128))]),s.createVNode(m,{visible:e.visible,"onUpdate:visible":t[1]||(t[1]=p=>e.visible=p),ref:"TopPopup",titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},{default:s.withCtx(()=>[s.createVNode(c,{inList:e.inList},null,8,["inList"])]),_:1},8,["visible"]),s.createVNode(u,{images:e.signLists,visible:e.signPreViewVisible,"onUpdate:visible":t[2]||(t[2]=p=>e.signPreViewVisible=p),indexd:e.indexd},null,8,["images","visible","indexd"]),s.createVNode(m,{visible:e.visibleTack,"onUpdate:visible":t[3]||(t[3]=p=>e.visibleTack=p),ref:"TopPopups",titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},{default:s.withCtx(()=>[e.trackListss&&e.trackListss.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.trackListss,(p,y)=>(s.openBlock(),s.createElementBlock("div",{key:p.id,class:"seal-list__item"},[s.createElementVNode("div",null,[s.createElementVNode("div",Hf,[t[4]||(t[4]=s.createElementVNode("span",null,"\u5E8F\u53F7",-1)),s.createElementVNode("span",Kf,s.toDisplayString(y+1),1)]),s.createElementVNode("div",Wf,[t[5]||(t[5]=s.createElementVNode("span",null,"\u8282\u70B9\u540D\u79F0",-1)),s.createElementVNode("span",Yf,s.toDisplayString(p.historyActivityName),1)]),s.createElementVNode("div",Zf,[t[6]||(t[6]=s.createElementVNode("span",null,"\u5BA1\u6279\u4EBA",-1)),s.createElementVNode("span",Xf,s.toDisplayString(p.assigneeName),1)])])]))),128)):s.createCommentVNode("",!0)]),_:1},8,["visible"])])}const eg=oe(vf,[["render",$f],["__scopeId","data-v-e5ee42eb"]]),tg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8r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I2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",sg=Ye({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let n=JSON.parse(JSON.stringify(this.option)).filter((r,o)=>r.id==e);this.activeItem=n[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return tg},check(){return ig}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}}),fA="",ng={class:"top-select"},rg={key:0,style:{position:"relative","z-index":"80"}},og=["src"],ag=["onClick"],lg=["src"];function cg(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",ng,[e.isSlots?(s.openBlock(),s.createElementBlock("div",rg,[s.renderSlot(e.$slots,"header",{data:{...e.activeItem,placeholder:e.placeholder}},void 0,!0)])):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[s.createTextVNode(s.toDisplayString(e.activeItem?e.activeItem.name:e.placeholder)+" ",1),e.disibled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,og))],2)),e.maskShow?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-select-option-mask",style:s.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):s.createCommentVNode("",!0),e.lists&&e.lists.length?(s.openBlock(),s.createElementBlock("div",{key:3,class:s.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:s.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.lists,(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:c=>e.handleClick(a,l)},[s.createTextVNode(s.toDisplayString(a.name)+" ",1),e.active==a.id?(s.openBlock(),s.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,lg)):s.createCommentVNode("",!0)],10,ag))),128))],6)):s.createCommentVNode("",!0)])}const La=oe(sg,[["render",cg],["__scopeId","data-v-15c177a8"]]),dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUe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/clV83DCW03EP8qdK37/17NPKkMF6SD4+MK7QJCYe/IAiID2mibYlVNzUJ3a5rw4B0CMB5u9zd+4X02Gx/iaDQBpEqn9O8URbPtrtetKzoIdgOxStfG/AxDBADC+8g5ABPXXMAVABFUFIBvEZN69EAxLkSkAUiTfr40BCAARTCd/pgAIAPGX1YIeAZANYgZKe3G+CMpc11SkayLsuRIRHYCIyOjFyODFkS1+HGX7B0CyJXPbYH4ZurlDmRsE9tHYACRXar/Xcx6K9aIGANkQKexJyk7fISzovPR9iOxeKzQAIABEJM28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",gA="",pg=Ye({name:"selectFixedPerson",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],originFixedPersonList:[],mySelect:[],mySelectIds:[],searchText:"",showSelectPerson:!1}},watch:{searchText(){this.handleSearchPerson()},visible:{handler(e,t){this.showFixedPerson=e,e?(this.originFixedPersonList=this.list||[],this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.originFixedPersonList=[],this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},originFixedPersonList:{handler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{handleClearSearch(){this.searchText="",this.handleSearchPerson()},handleSearchPerson(){this.fixedPersonList=this.originFixedPersonList.filter(e=>e.realName.includes(this.searchText))},expandSelect(){this.showSelectPerson=!0},updateSelectVisible(e){this.showSelectPerson=e},updateVisible(e){this.$emit("updateVisible",e)},handleRemoveSelect(e){this.mySelect=this.mySelect.filter(t=>t.userId!==e.userId),this.mySelectIds=this.mySelect.map(t=>t.userId),this.$emit("updateSelect",this.mySelect)},handleClearSelect(){this.mySelect=[],this.mySelectIds=[],this.$emit("updateSelect",this.mySelect)},handleClickFixedPerson(e){this.multiple||(this.mySelect=[],this.mySelectIds=[]),this.multiple?this.mySelectIds.includes(e.userId)?(this.mySelect=this.mySelect.filter(i=>i.userId!==e.userId),this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}}),hg={class:"st-head"},ug={class:"s-tree"},mg=["onClick"],fg={key:0,class:"radio-select"},gg={key:1,class:"radio-select-not"},yg=["src"],Ag={key:3,class:"node-avatar-text"},Cg={class:"node-name"},kg={class:"node-name-text"},bg={class:"node-name-phone"},Eg={class:"st-footer-box"},wg={class:"st-footer"},Ng={class:"st-footer-text"},Tg={class:"st-footer-right"},Ig={class:"s-thead"},Bg={class:"s-thead-left"},xg={class:"s-thead-right"},Sg={class:"s-tree"},Dg=["onClick"],Pg={class:"stt-node-left"},Mg=["src"],Vg={key:1,class:"node-avatar-text stt-node-avatar-text"},Og={class:"node-name"},Lg={class:"node-name-text"},Rg={class:"node-name-phone"},vg={class:"stt-node-right"};function Fg(e,t,i,n,r,o){const a=s.resolveComponent("TopPopup");return s.openBlock(),s.createBlock(a,{visible:e.showFixedPerson,"onUpdate:visible":e.updateVisible,ref:"TopPopupFixedPerson",titleText:"\u9009\u62E9\u4EBA\u5458("+e.originFixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},{default:s.withCtx(()=>[s.createElementVNode("div",hg,[s.withDirectives(s.createElementVNode("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=l=>e.searchText=l),placeholder:"\u8F93\u5165\u67E5\u8BE2",class:"st-head-input",onKeyup:t[1]||(t[1]=s.withKeys((...l)=>e.handleSearchPerson&&e.handleSearchPerson(...l),["enter"]))},null,544),[[s.vModelText,e.searchText]]),s.withDirectives(s.createElementVNode("div",{class:"st-head-clear",onClick:t[2]||(t[2]=(...l)=>e.handleClearSearch&&e.handleClearSearch(...l))},[...t[8]||(t[8]=[s.createElementVNode("svg",{t:"1766114768811",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7665"},[s.createElementVNode("path",{d:"M507.168 473.232L716.48 263.936a16 16 0 0 1 22.624 0l11.312 11.312a16 16 0 0 1 0 22.624L541.12 507.168 750.4 716.48a16 16 0 0 1 0 22.624l-11.312 11.312a16 16 0 0 1-22.624 0L507.168 541.12 297.872 750.4a16 16 0 0 1-22.624 0l-11.312-11.312a16 16 0 0 1 0-22.624l209.296-209.312-209.296-209.296a16 16 0 0 1 0-22.624l11.312-11.312a16 16 0 0 1 22.624 0l209.296 209.296z","p-id":"7666",fill:"#cdcdcd"})],-1)])],512),[[s.vShow,e.searchText]])]),s.createElementVNode("div",ug,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.fixedPersonList],l=>(s.openBlock(),s.createElementBlock("div",{class:"s-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[e.mySelectIds.includes(l.userId)?(s.openBlock(),s.createElementBlock("div",fg,[...t[9]||(t[9]=[s.createElementVNode("svg",{t:"1758260488735",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"},[s.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"})],-1)])])):(s.openBlock(),s.createElementBlock("div",gg,[...t[10]||(t[10]=[s.createElementVNode("svg",{t:"1758260589679",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"},[s.createElementVNode("path",{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"})],-1)])])),l.avatar?(s.openBlock(),s.createElementBlock("img",{key:2,class:"node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,yg)):(s.openBlock(),s.createElementBlock("div",Ag,s.toDisplayString((l.realName||"").slice(-2)),1)),s.createElementVNode("div",Cg,[s.createElementVNode("div",kg,s.toDisplayString(l.realName),1),s.createElementVNode("div",bg,s.toDisplayString(l.phonenumber),1)])],8,mg))),128))]),s.createElementVNode("div",Eg,[s.createElementVNode("div",wg,[s.createElementVNode("div",{class:"st-footer-left",onClick:t[3]||(t[3]=(...l)=>e.expandSelect&&e.expandSelect(...l))},[s.createElementVNode("div",Ng,"\u5DF2\u9009\u62E9"+s.toDisplayString(e.mySelectIds.length)+"\u4E2A\u6210\u5458",1),t[11]||(t[11]=s.createElementVNode("div",{class:"st-footer-svg"},[s.createElementVNode("svg",{t:"1766111528552",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4604",id:"mx_n_1766111528554"},[s.createElementVNode("path",{d:"M166.997333 751.850667L106.666667 691.498667 520.832 277.333333l414.165333 414.165334L874.666667 751.850667 520.832 398.016z",fill:"#1389ff","p-id":"4605"})])],-1))]),s.createElementVNode("div",Tg,[s.createElementVNode("div",{class:"st-footer-btn",onClick:t[4]||(t[4]=(...l)=>e.handleSumbitFixedPerson&&e.handleSumbitFixedPerson(...l))},"\u786E\u5B9A")])])]),s.createVNode(a,{visible:e.showSelectPerson,"onUpdate:visible":e.updateSelectVisible,showHeader:!1,ref:"TopPopupSelectPerson",isIndex:120,className:"sumbmitPopup-index"},{default:s.withCtx(()=>[s.createElementVNode("div",Ig,[s.createElementVNode("div",Bg," \u5DF2\u9009\u62E9\u4EBA\u5458("+s.toDisplayString(e.mySelect.length)+") ",1),s.createElementVNode("div",xg,[s.createElementVNode("div",{class:"s-thead-btn",onClick:t[5]||(t[5]=(...l)=>e.handleClearSelect&&e.handleClearSelect(...l))},"\u6E05\u7A7A"),s.createElementVNode("div",{class:"s-thead-btn s-thead-btn-close",onClick:t[6]||(t[6]=l=>e.updateSelectVisible(!1))},"\u5173\u95ED")])]),s.createElementVNode("div",Sg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.mySelect],l=>(s.openBlock(),s.createElementBlock("div",{class:"s-node stt-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[s.createElementVNode("div",Pg,[l.avatar?(s.openBlock(),s.createElementBlock("img",{key:0,class:"node-avatar stt-node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,Mg)):(s.openBlock(),s.createElementBlock("div",Vg,s.toDisplayString((l.realName||"").slice(-2)),1)),s.createElementVNode("div",Og,[s.createElementVNode("div",Lg,s.toDisplayString(l.realName),1),s.createElementVNode("div",Rg,s.toDisplayString(l.phonenumber),1)])]),s.createElementVNode("div",vg,[s.createElementVNode("div",{class:"s-thead-btn s-thead-btn-close",onClick:t[7]||(t[7]=(...c)=>e.handleRemoveSelect&&e.handleRemoveSelect(...c))},"\u79FB\u9664")])],8,Dg))),128))])]),_:1},8,["visible","onUpdate:visible"])]),_:1},8,["visible","onUpdate:visible","titleText","comfig"])}const Ra=oe(pg,[["render",Fg],["__scopeId","data-v-f68e835c"]]),jg=Ye({name:"TopSubmitPopup",components:{SelectFixedPerson:Ra,BpmnLook:Oa,TopPopup:Fe,TopDownSelect:La,PreviewImage:ss,departPerson:At.departPerson,TopTips:it},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},businessDeptId:{type:[String,Number]},businessSubjectId:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,t){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return dg}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async getTaskModelDetail(){this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.extraParams.processId||this.extraParams.processInstId,taskId:this.taskId}:{processInstId:this.extraParams.processId||this.extraParams.processInstId}}).then(e=>{if(e.code==200){this.handleTips("",!1,"success");let t=(e.data||{}).process||{};this.checkedItem={id:t.processDefinitionId,key:t.processDefinitionKey,name:t.processDefinitionName,version:t.processDefinitionVersion},this.option=[this.checkedItem],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.businessDeptIdData||this.getNodeUserDept()}})},async handleOption(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,subjectId:this.businessSubjectId,processGroupName:this.processNameData,...this.extraParams};if(this.processNameData&&delete e.processGroupName,this.extraParams.processId||this.extraParams.processInstId){this.getTaskModelDetail();return}await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(t=>{t.code==200&&(this.option=t.data,t.data&&t.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||t.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())})},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=Pa(e);let n;try{n=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(r){}if(n.code==200){const r=this.firstPerson[t];r.userList=n.data,this.firstPerson[t]=r}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let n={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(r=>{n.postIds.push(r.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[n]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!this.businessDeptIdData,id:m.users.map(u=>u.id),subjectId:m.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),o.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(o)),i.positionArray=c})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.selectDefaultValue!=e.id&&(this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t))},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(n=>{i.postIds.push(n.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(n=>{let r=[],o=[],a=!1;n.data.map(c=>{c.posts.map(m=>{o.push(...m.users),m.users.length==1?r.push(...m.users):a=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(r=[]);let l=[];n.data[0].posts.map(c=>{l.push({...c,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:c.users.map(m=>m.id),subjectId:c.subjectId})}),o.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(r)),t.positionArray=l})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.personObjId]=e,this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((n,r)=>{i.push(n.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((n,r)=>{t=n.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({id:n.id,subjectId:n.subjectId,type:n.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,n)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]):(this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{businessType:this.businessType,deptId:this.businessDeptIdData,reactivate:!0,showType:"all",subjectId:this.businessSubjectId,...this.extraParams,_businessDeptId:this.businessDeptIdData}}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}}),yA="",Qg={class:"sumbmitPopup-index-sumbit"},Ug={class:"sumbmitPopup-select"},_g={class:"sumbmitPopup-select-viewTrack",style:{display:"flex"}},Gg=["src"],qg={key:0,class:"person-views"},zg={class:"views-items-label"},Jg={class:"views-items-name"},Hg={class:"views-items-name-left"},Kg={key:0,class:"views-items-name--re"},Wg={class:"views-items-set"},Yg={key:0},Zg={key:0},Xg={key:1},$g={key:2},e0={key:3},t0=["onClick"],i0=["onClick"],s0={key:0,class:"views-items-includes"},n0={class:"views-items-and2"},r0={key:0},o0={class:"include"},a0={class:"include include-name"},l0={key:1},c0={key:1,class:"person-views"},d0={class:"views-items"},p0={class:"views-items-name"},h0={class:"views-items-set"},u0=["onClick"],m0={key:1},f0={key:0},g0={key:2},y0={key:3},A0={key:2,class:"person-views-white"},C0={style:{height:"100%"}},k0={class:"tree"},b0=["onClick"],E0={key:0,class:"children"},w0=["onClick"],N0={style:{margin:"20px"}},T0=["innerHTML"],I0={class:"timeline"},B0={class:"item-top"},x0={class:"top-spot"},S0={class:"top-title"},D0={style:{color:"#009800"}};function P0(e,t,i,n,r,o){const a=s.resolveComponent("TopDownSelect"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("departPerson"),m=s.resolveComponent("SelectFixedPerson"),u=s.resolveComponent("BpmnLook"),p=s.resolveComponent("PreviewImage"),y=s.resolveComponent("TopTips");return s.openBlock(),s.createElementBlock("div",Qg,[t[16]||(t[16]=s.createElementVNode("div",{class:"top-popup"},null,-1)),s.createVNode(l,{visible:e.show,"onUpdate:visible":t[4]||(t[4]=C=>(e.show=C,e.$emit("update:visible",C))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:s.withCtx(()=>[s.createVNode(a,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:!1},{header:s.withCtx(C=>[s.createElementVNode("div",Ug,[s.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[0]||(t[0]=(...E)=>e.handleSelect&&e.handleSelect(...E))},[t[10]||(t[10]=s.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u5F53\u524D\u6D41\u7A0B",-1)),s.createElementVNode("div",{class:s.normalizeClass(["sumbmitPopup-select-checked-node",""])},s.toDisplayString(C.data.name?C.data.name:C.data.placeholder),3)]),e.businessDeptIdData?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"sumbmitPopup-select-checked",onClick:t[1]||(t[1]=(...E)=>e.handleDeptSelect&&e.handleDeptSelect(...E))},[t[11]||(t[11]=s.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u9009\u62E9\u90E8\u95E8",-1)),s.createElementVNode("div",{class:s.normalizeClass(["sumbmitPopup-select-checked-node",""])},s.toDisplayString(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9"),3)])),s.createElementVNode("div",_g,[e.checkedItem.id?(s.openBlock(),s.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[2]||(t[2]=(...E)=>e.handleFlowSelect&&e.handleFlowSelect(...E))},[s.createElementVNode("img",{src:e.ProcessImg},null,8,Gg),t[12]||(t[12]=s.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ",-1))])):s.createCommentVNode("",!0),e.checkedItem.id&&e.showFlowForecast?(s.openBlock(),s.createElementBlock("div",{key:1,class:"viewTrack",onClick:t[3]||(t[3]=(...E)=>e.viewFlowForecast&&e.viewFlowForecast(...E))}," \u6D41\u7A0B\u9884\u6D4B ")):s.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?(s.openBlock(),s.createElementBlock("div",qg,[t[14]||(t[14]=s.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.firstPerson,(C,E)=>{var v;return s.openBlock(),s.createElementBlock("div",{class:"views-items",key:E},[s.createElementVNode("div",zg,[s.createElementVNode("div",Jg,[s.createElementVNode("div",Hg,[s.createTextVNode(s.toDisplayString(C.name)+" ",1),E==0?(s.openBlock(),s.createElementBlock("span",Kg,"*")):s.createCommentVNode("",!0)])]),s.createElementVNode("div",Wg,[e.partNode[C.id]&&e.partNode[C.id].length?(s.openBlock(),s.createElementBlock("div",Yg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.partNode[C.id],(F,J)=>(s.openBlock(),s.createElementBlock("span",{key:J},s.toDisplayString(J>=3?"":J==0?F:`,${F}`),1))),128)),e.partNode[C.id].length>3?(s.openBlock(),s.createElementBlock("span",Zg,"...\u7B49"+s.toDisplayString(e.partNode[C.id].length)+"\u4EBA",1)):s.createCommentVNode("",!0)])):C.routeTxt&&C.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Xg,s.toDisplayString(C.routeTxt.userNames),1)):s.createCommentVNode("",!0),C.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||C.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((v=e.partNode[C.id])==null?void 0:v.length)>0&&C.noPersonnel?(s.openBlock(),s.createElementBlock("div",$g)):C.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||C.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||C.noPersonnel?(s.openBlock(),s.createElementBlock("div",e0," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):C.userList&&C.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:4,class:"views-items-set-btn",onClick:F=>e.handleOpenFixedPerson(C)}," \u9009\u62E9 ",8,t0)):(s.openBlock(),s.createElementBlock("div",{key:5,class:"views-items-set-btn",onClick:F=>e.handleOpenPerson(C)}," \u8BBE\u7F6E ",8,i0))])]),C.routeTxt&&C.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",s0,[t[13]||(t[13]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",n0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.routeTxt,(F,J)=>(s.openBlock(),s.createElementBlock("div",{key:F.type},[F.ids&&F.ids.length>0?(s.openBlock(),s.createElementBlock("div",r0,[s.createElementVNode("div",o0,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+F.type]])},s.toDisplayString(F.type=="user"?"\u7528\u6237":F.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",a0,s.toDisplayString(F.name),1)]),J!==C.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(F.assigneeRetain?"true":"false")]])},s.toDisplayString(C.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",l0," \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 "))]))),128))])])):s.createCommentVNode("",!0)])}),128))])):s.createCommentVNode("",!0),e.personList&&e.personList.length?(s.openBlock(),s.createElementBlock("div",c0,[t[15]||(t[15]=s.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.personList,(C,E)=>(s.openBlock(),s.createElementBlock("div",d0,[s.createElementVNode("div",p0,s.toDisplayString(C.name),1),s.createElementVNode("div",h0,[C.noPersonnel?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(C)}," \u8BBE\u7F6E ",8,u0)),e.partNode[C.id]&&e.partNode[C.id].length?(s.openBlock(),s.createElementBlock("div",m0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.partNode[C.id],(v,F)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(F>=3?"":F==0?v:`,${v}`),1))),256)),e.partNode[C.id].length>3?(s.openBlock(),s.createElementBlock("span",f0,"...\u7B49"+s.toDisplayString(e.partNode[C.id].length)+"\u4EBA",1)):s.createCommentVNode("",!0)])):C.noPersonnel?(s.openBlock(),s.createElementBlock("div",g0,"\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")):(s.openBlock(),s.createElementBlock("div",y0))])]))),256))])):s.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(s.openBlock(),s.createElementBlock("div",A0," \u65E0\u9700\u8BBE\u7F6E ")):s.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),s.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[5]||(t[5]=C=>e.visiblePerson=C),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:s.withCtx(()=>[s.createElementVNode("div",C0,[e.visiblePerson?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel,checkedArray:e.checkedArray}),null,16,["visible","onCallback","onCancel","checkedArray"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),s.createVNode(l,{visible:e.showDept,"onUpdate:visible":t[6]||(t[6]=C=>e.showDept=C),ref:"TopPopupDept",titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},{default:s.withCtx(()=>[s.createElementVNode("div",k0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.deptList],C=>(s.openBlock(),s.createElementBlock("div",{class:"node",key:C.id},[s.createElementVNode("div",{class:"node-p",onClick:E=>e.handleClickDept(C)},s.toDisplayString(C.label),9,b0),C.children?(s.openBlock(),s.createElementBlock("div",E0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.children,E=>(s.openBlock(),s.createElementBlock("div",{class:"node-s",onClick:v=>e.handleClickDept(E),key:E.id},s.toDisplayString(E.label),9,w0))),128))])):s.createCommentVNode("",!0)]))),128))])]),_:1},8,["visible","comfig"]),s.createVNode(m,{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:!0,select:e.fixedSelect[e.personObjId]||[],onUpdateList:e.handleClickFixedPerson,onUpdateVisible:e.updateFixedPersonVisible,onUpdateSelect:e.updateFixedSelect,onConfirm:e.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),s.createVNode(l,{class:"top-pop-flow",visible:e.showFlow,"onUpdate:visible":t[7]||(t[7]=C=>e.showFlow=C),ref:"TopPopupFlow",titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},{default:s.withCtx(()=>[e.showFlow&&e.processXml?(s.openBlock(),s.createBlock(u,{key:0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):s.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),s.createVNode(p,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[8]||(t[8]=C=>e.taskurlshow=C),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),s.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),s.createVNode(l,{visible:e.flowForecastVisible,"onUpdate:visible":t[9]||(t[9]=C=>e.flowForecastVisible=C),ref:"TopPopupFF",titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},{default:s.withCtx(()=>[s.createElementVNode("div",N0,[s.createElementVNode("div",{innerHTML:e.flowForecastData.completeTime,style:{"margin-left":"10px","margin-bottom":"10px"}},null,8,T0),s.createElementVNode("div",I0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.flowForecastData.processBudgetModelList,(C,E)=>(s.openBlock(),s.createElementBlock("div",{class:"timeline-item",key:E},[s.createElementVNode("div",B0,[s.createElementVNode("div",x0,[s.createElementVNode("div",{class:s.normalizeClass(["spot",{active:E==0}])},null,2)]),s.createElementVNode("div",S0,s.toDisplayString(C.title),1)]),s.createElementVNode("div",{class:s.normalizeClass(["item-bottom",{last:E==e.flowForecastData.processBudgetModelList.length-1}])},[s.createElementVNode("span",D0," \u6267\u884C\u4EBA\uFF1A"+s.toDisplayString(C.excutor),1)],2)]))),128))])])]),_:1},8,["visible","cancel","comfig"])])}const va=oe(jg,[["render",P0],["__scopeId","data-v-521283d4"]]),M0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB2kuxfCQduexRB+ibE5a5rQi+G7OF5u01IkDyHEWde2/zu+vX3YQfNH9ZEI5I3S3YuibdsPITRXwo+cxRhmbRP/+Gk6vRHGJdSCAAKpOBQqiWJji2MMD/GguWZl0SUVgehYfov01sJ4oQuzEOLN0XR6XaF7owqJQITpdiCM9d7MmhCvsV/5SUYg+eye1fzy/v1Z28XPonDSMHPrFZ8uOQ2zY0UgdmbPhfHu3UnTHHxqmnBWGKp2dWxXBmEEkgFtWcXzqrG5W/GKvUl60hFIOqvBWKqELs267ukcy/U6KQTyOqMfSvwzmXyMofmUUdVTFUSSkA0EkgBptcieiGPZJUTySv4RiEEgeyYORJKQewSSAKkvMswNeWLnQpgdTe9Ok0uPqCACSUj21y8AD/5KKFpSZP5cVdOE/jh28WBiM3+AMcavDzJWPkq+OZreXZZ0YB/rIpCErP7928XnCoNz/r2E5anc708BN7+GED4mNN1YhCPgdWAI5JUhVEEcksc/Kj3WMuva5pKH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oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",AA="",V0={name:"msgList",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return M0}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},O0={key:0,class:"top-msg"},L0=["onClick"],R0={class:"top-msg-items-text"},v0=["onClick"],F0=["src"];function j0(e,t,i,n,r,o){const a=s.resolveComponent("TopPopup");return s.openBlock(),s.createElementBlock("div",null,[i.visible?(s.openBlock(),s.createElementBlock("div",O0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.listData,l=>(s.openBlock(),s.createElementBlock("div",{class:"top-msg-items",onClick:c=>o.handleMsg(l)},[s.createElementVNode("div",R0,s.toDisplayString(l.opinionName),1),s.createElementVNode("div",{class:"top-msg-items-del",onClick:s.withModifiers(c=>o.handleOpenMsg(l),["stop"])},[s.createElementVNode("img",{src:o.Del},null,8,F0)],8,v0)],8,L0))),256))])):s.createCommentVNode("",!0),s.createVNode(a,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${r.opinion.opinionName}'\u5220\u9664`,cancel:o.handleTipsCancel,comfig:o.handleDel,visible:r.visibleListMsg,"onUpdate:visible":t[0]||(t[0]=l=>r.visibleListMsg=l)},null,8,["context","cancel","comfig","visible"])])}const Qi=oe(V0,[["render",j0],["__scopeId","data-v-87fc3e49"]]),CA="",Q0={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e=[];this.multiNodeParticipant[this.partObjId].map((t,i)=>{e.push(t)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=e[1]?JSON.parse(e[1]):!1,this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},U0={class:"process-popup-content"},_0={class:"process-popup-content-msg"},G0={key:0},q0={class:"process-pc-value"},z0={class:"process-popup-textarea"},J0={class:"process-popup-textarea-num"},H0={key:0,class:"msg-btn"},K0={key:0,class:"process-popup-content-person"},W0=["onClick"],Y0={class:"process-pc-value--people"},Z0={key:0,class:"process-pc-value--data"},X0={key:1,class:"process-pc-value--data",style:{color:"#888"}},$0=["onClick"],ey={class:"process-pc-value--people"},ty={key:0,class:"process-pc-value--data"},iy={key:1,class:"process-pc-value--data",style:{color:"#888"}},sy={style:{height:"100%"}};function ny(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",U0,[s.createElementVNode("div",_0,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",G0,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[6]||(t[6]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",q0,[s.createElementVNode("div",z0,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",J0,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",H0,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),(s.openBlock(),s.createElementBlock("div",K0,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[8]||(t[8]=s.createElementVNode("div",null,[s.createElementVNode("br"),s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",Y0,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",Z0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,C)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(C==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",X0,[...t[7]||(t[7]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,W0)],64))),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[10]||(t[10]=s.createElementVNode("div",{class:"process-pc-label"},[s.createElementVNode("br"),s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",ey,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",ty,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,C)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(C==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",iy,[...t[9]||(t[9]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,$0)],64))),256)):s.createCommentVNode("",!0)])),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",sy,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="5"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const ry=oe(Q0,[["render",ny],["__scopeId","data-v-86bb40b8"]]),kA="",oy={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e=this.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,r="";n=t.find(a=>a.name=="delegateTaskButtonAnnex"),r=n?n.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},ay={class:"process-popup-content"},ly={class:"process-popup-content-msg"},cy={key:0},dy={class:"process-pc-value"},py={class:"process-popup-textarea"},hy={class:"process-popup-textarea-num"},uy={key:0,class:"msg-btn"},my={key:0,class:"process-popup-content-person"},fy=["onClick"],gy={class:"process-pc-value--people"},yy={key:0,class:"process-pc-value--data"},Ay={key:1,class:"process-pc-value--data",style:{color:"#888"}},Cy=["onClick"],ky={class:"process-pc-value--people"},by={key:0,class:"process-pc-value--data"},Ey={key:1,class:"process-pc-value--data",style:{color:"#888"}},wy={style:{height:"100%"}};function Ny(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",ay,[s.createElementVNode("div",ly,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",cy,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[6]||(t[6]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",dy,[s.createElementVNode("div",py,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",hy,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",uy,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),(s.openBlock(),s.createElementBlock("div",my,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[8]||(t[8]=s.createElementVNode("div",null,[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",gy,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",yy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,C)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(C==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",Ay,[...t[7]||(t[7]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,fy)],64))),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[10]||(t[10]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",ky,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",by,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,C)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(C==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",Ey,[...t[9]||(t[9]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,Cy)],64))),256)):s.createCommentVNode("",!0)])),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",wy,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="1"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const Ty=oe(oy,[["render",Ny],["__scopeId","data-v-73a21e66"]]),Iy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7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nFsAAAAAElFTkSuQmCC",bA="",EA="",By={name:"TreeNode",components:{SelectFixedPerson:Ra,TopPopup:Fe,TopTips:it,departPerson:At.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(i=>{if(Array.isArray(i.assignees),i.assignees,i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(n=>{this.partNodeArr,this.multiNodeParticipant;const r=this.partNodeArr[i.id].find(a=>a.name==n.name),o=this.multiNodeParticipant[i.id].find(a=>a==n.id);r||this.partNodeArr[i.id].push(n),o||this.multiNodeParticipant[i.id].push(n.id)})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(n.id)||this.multiNodeParticipant[i.id].push(n.id),this.partNode[i.id].includes(n.name)||this.partNode[i.id].push(n.name),this.partNodeArr[i.id].find(r=>r.name==n.name)||this.partNodeArr[i.id].push(n)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let n={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(r=>{n.postIds.push(r.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[n]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:m.users.map(u=>u.id)})}),a.length==0&&(i.noPersonnel=!0),o.length>0&&(i.noPersonnel=!0,this.partObjId=i.id,this.handleCallback(o)),i.positionArray=c})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(n=>{n.code==200&&(this.personMakeList=n.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return Un}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,n)=>{i.participantList&&i.participantList.length?i.participantList.forEach((r,o)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name),this.partNodeArr[i.id].find(a=>a.name==r.name)||this.partNodeArr[i.id].push(r)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(r=>{r.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=r.data[i.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.partObjId]=e,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((n,r)=>{i.push({type:3,id:n.id,subjectId:n.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((r,o)=>{n.push({type:3,id:r.id,deptId:t,subjectId:r.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},xy={key:0,class:"treenode"},Sy={key:0,class:"treenode-multi"},Dy={class:"treenode-node",style:{"margin-top":"0"}},Py=["onClick"],My=["src"],Vy=["onClick"],Oy={class:"treenode-node"},Ly={key:0},Ry={key:1,class:"personselect"},vy={class:"personselect-name"},Fy={class:"items-person"},jy=["onClick"],Qy=["onClick"],Uy={key:2,class:"items-person-name"},_y={key:3,class:"items-person-name"},Gy={key:4,class:"items-person-name"},qy={key:0,class:"views-items-includes"},zy={class:"views-items-and2"},Jy={key:0},Hy={class:"include"},Ky={class:"include include-name"},Wy={key:1},Yy={class:"treenode-node"},Zy={key:0},Xy={key:1,class:"personselect"},$y={class:"personselect-name"},e2={class:"items-person"},t2=["onClick"],i2=["onClick"],s2={key:2,class:"items-person-name"},n2={key:3,class:"items-person-name"},r2={key:4,class:"items-person-name"},o2={key:0,class:"views-items-includes"},a2={class:"views-items-and2"},l2={key:0},c2={class:"include"},d2={class:"include include-name"},p2={key:1},h2={key:1,class:"treenode-single"},u2={class:"treenode-single-items"},m2={class:"personselect"},f2={class:"personselect-name"},g2={key:0,class:"items-person"},y2=["onClick"],A2=["onClick"],C2={key:2,class:"items-person-name"},k2={class:"items-person-name"},b2={key:0},E2={key:1,class:"views-items-includes"},w2={class:"views-items-and2"},N2={key:0},T2={class:"include"},I2={class:"include include-name"},B2={key:1};function x2(e,t,i,n,r,o){const a=s.resolveComponent("TreeNode",!0),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("SelectFixedPerson"),u=s.resolveComponent("TopTips");return r.nodeItems&&r.nodeItems.length?(s.openBlock(),s.createElementBlock("div",xy,[i.endNode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Sy,[s.createElementVNode("div",Dy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[i.checkType=="InclusiveGatewayModel"&&r.nodeItems.length>1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["treenode-checkbox",r.checkBoxArr.includes(p.id)?"treenode-checkbox-active":""]),onClick:y=>o.handleCheckBoxClick(p)},[s.createElementVNode("span",null,[r.checkBoxArr.includes(p.id)?(s.openBlock(),s.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:o.check},null,8,My)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(p.nodeName||p.name),1)],10,Py)):i.checkType=="ExclusiveGatewayModel"&&r.nodeItems.length>1?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["treenode-radio",r.radioArr==p.id?"treenode-radio-active":""]),onClick:y=>o.handleRadioClick(p)},[t[1]||(t[1]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(p.nodeName||p.name),1)],10,Vy)):s.createCommentVNode("",!0)],64))),256))]),i.checkType=="InclusiveGatewayModel"&&r.checkBoxItem&&r.checkBoxItem.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.checkBoxItem,p=>(s.openBlock(),s.createElementBlock("div",Oy,[p.childNode&&p.childNode.length?(s.openBlock(),s.createElementBlock("div",Ly,[s.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(s.openBlock(),s.createElementBlock("div",Ry,[s.createElementVNode("div",vy,s.toDisplayString(p.name||p.nodeName),1),s.createElementVNode("div",Fy,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,jy)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,Qy)):s.createCommentVNode("",!0),p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",Uy,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",_y,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Gy,s.toDisplayString(p.routeTxt.userNames),1)):s.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",qy,[t[2]||(t[2]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",zy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,C)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",Jy,[s.createElementVNode("div",Hy,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",Ky,s.toDisplayString(y.name),1)]),C!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",Wy," \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 "))]))),128))])])):s.createCommentVNode("",!0)]))]))),256)):s.createCommentVNode("",!0),i.checkType=="ExclusiveGatewayModel"&&r.radioItem&&r.radioItem.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.radioItem,p=>(s.openBlock(),s.createElementBlock("div",Yy,[p.childNode&&p.childNode.length?(s.openBlock(),s.createElementBlock("div",Zy,[s.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(s.openBlock(),s.createElementBlock("div",Xy,[s.createElementVNode("div",$y,s.toDisplayString(p.name||p.nodeName),1),s.createElementVNode("div",e2,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,t2)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,i2)):s.createCommentVNode("",!0),p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",s2,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",n2,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",r2,s.toDisplayString(p.routeTxt.userNames),1)):s.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",o2,[t[3]||(t[3]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",a2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,C)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",l2,[s.createElementVNode("div",c2,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",d2,s.toDisplayString(y.name),1)]),C!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",p2," \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 "))]))),128))])])):s.createCommentVNode("",!0)]))]))),256)):s.createCommentVNode("",!0)])),i.endNode?(s.openBlock(),s.createElementBlock("div",h2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,p=>(s.openBlock(),s.createElementBlock("div",u2,[s.createElementVNode("div",m2,[s.createElementVNode("div",f2,s.toDisplayString(p.name||p.nodeName),1),p.nodeType!=="endEvent"?(s.openBlock(),s.createElementBlock("div",g2,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,y2)):p.setPersonnel?(s.openBlock(),s.createElementBlock("div",C2,s.toDisplayString((p.assignees||[]).map(y=>y.name).join(",")),1)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,A2)),s.createElementVNode("div",k2,[!r.partNode[p.id]&&p.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&p.noPersonnel?(s.openBlock(),s.createElementBlock("div",b2," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)])])):s.createCommentVNode("",!0),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",E2,[t[4]||(t[4]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",w2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,C)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",N2,[s.createElementVNode("div",T2,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",I2,s.toDisplayString(y.name),1)]),C!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",B2," \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 "))]))),128))])])):s.createCommentVNode("",!0)])]))),256))])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[0]||(t[0]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1},r.entity,{onCallback:o.handleCallback}),null,16,["onCallback"])):s.createCommentVNode("",!0)]),_:1},8,["visible"]),s.createVNode(m,{visible:r.showFixedPerson,list:r.fixedPersonList,multiple:r.currentClickItem.loopCardinality==-1,select:r.fixedSelect[r.partObjId]||[],onUpdateList:o.handleClickFixedPerson,onUpdateVisible:o.updateFixedPersonVisible,onUpdateSelect:o.updateFixedSelect,onConfirm:o.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),s.createVNode(u,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])):s.createCommentVNode("",!0)}const S2=oe(By,[["render",x2],["__scopeId","data-v-91626814"]]),wA="",D2={name:"tree-person",components:{TreeNode:S2},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(t=>this.firstMultiCheckSub.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e,t=""){t&&Object.prototype.toString.call(e)=="[object Object]"?Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(i=>{e[i]||(e[i]=[""]),e[i]&&e[i].length>=1?this.multiNode[i]=e[i].filter(n=>n):this.multiNode[i]=e[i]}):this.multiNode=e:this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(n=>n!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(n=>n.id!=i.id),this.firstMultiType=this.firstMultiType.filter(n=>n!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheckSub.includes(i.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(n=>n!=i.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(n=>n.id!=i.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(n=>n!=i.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(n=>n.id!=i.id),t.forEach(n=>{delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id]}),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheckSub.push(i.id),this.firstMultiCheckItemSub.push(i),this.firstMultiTypeSub.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItemsSub.push(i.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(i),this.childrenEndItemsSub=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItemsSub||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{const o=this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id];Array.isArray(o)&&o.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}}}},P2={class:"test"},M2={key:0},V2={key:0},O2={key:0},L2={key:0,class:"treeperson-firstnode"},R2=["onClick"],v2={key:1,class:"treeperson-firstnode"},F2={key:2,class:"treeperson-firstnode"},j2=["onClick"],Q2={key:3,class:"treeperson-firstnode"},U2=["onClick"],_2={class:"treeperson-checkbox-box"},G2=["onClick"],q2={key:0,class:"treeperson-firstnode"},z2={class:"treeperson-checkbox-box"},J2=["onClick"],H2={key:0,class:"treeperson-firstnode"},K2=["onClick"],W2=["onClick"],Y2={class:"treeperson-title"};function Z2(e,t,i,n,r,o){const a=s.resolveComponent("tree-person",!0),l=s.resolveComponent("TreeNode");return s.openBlock(),s.createElementBlock("div",P2,[i.param.nodeLoading?(s.openBlock(),s.createElementBlock("div",M2,[...t[3]||(t[3]=[s.createElementVNode("span",null,"\u4E0B\u4E00\u8282\u70B9: ",-1),s.createElementVNode("b",{style:{"font-size":"16px"}},"\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......",-1)])])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.nodeItems&&r.nodeItems.length?(s.openBlock(),s.createElementBlock("div",V2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,(c,m)=>(s.openBlock(),s.createElementBlock("div",{class:"treeperson",key:m},[c.nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",O2," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):c.branches&&c.branches.length?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.nodeType=="nexting"&&c.nodeType!="inclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[c.nodeType=="exclusiveGateway"&&c.branches.length>1?(s.openBlock(),s.createElementBlock("div",L2,[t[5]||(t[5]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[4]||(t[4]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.id.includes("Flow")?u.nodeName||u.name?u.nodeName||u.name:u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:"":u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name||u.nodeName||u.name:u.nodeName||u.name),1)],10,R2))),128))])):c.nodeType=="exclusiveGateway"&&c.branches.length==1?(s.openBlock(),s.createElementBlock("div",v2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",null,[t[6]||(t[6]=s.createElementVNode("span",null,null,-1)),s.createVNode(a,{ref_for:!0,ref:"TreePersonRef",items:u.branches&&u.branches.length>0?u.branches:[u],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])]))),256))])):c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(s.openBlock(),s.createElementBlock("div",F2,[t[8]||(t[8]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u),key:p},[t[7]||(t[7]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,j2))),128))])):(s.openBlock(),s.createElementBlock("div",Q2,[t[10]||(t[10]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[9]||(t[9]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,U2))),128))])),r.childrenItems&&r.childrenItems.length>0&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?(s.openBlock(),s.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])):r.childrenItems&&r.childrenItems.length>1&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:5},[t[12]||(t[12]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createElementVNode("div",_2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.childrenItems,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstMultiCheckSub.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClickSub(u,r.childrenItems),key:p},[t[11]||(t[11]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,G2))),128))]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.filterMultiItemsSub(r.childrenItems),u=>(s.openBlock(),s.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[0]||(t[0]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):(s.openBlock(),s.createBlock(l,{key:6,items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):i.nodeType=="nexting"&&c.nodeType=="inclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(s.openBlock(),s.createElementBlock("div",q2,[t[14]||(t[14]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createElementVNode("div",z2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstMultiCheck.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u,c.branches),key:p},[t[13]||(t[13]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,J2))),128))])])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.filterMultiItems(c.branches),u=>(s.openBlock(),s.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[1]||(t[1]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):s.createCommentVNode("",!0)],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length>1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[t[16]||(t[16]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),c.type=="ExclusiveGatewayModel"&&c.branches.length==1?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",H2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstCheck==u.id?"treeperson-checkbox-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[15]||(t[15]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeName||u.name),1)],10,K2))),128))])),s.createVNode(l,{items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[2]||(t[2]=u=>o.onMultiNode(u,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"])],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:3},[t[17]||(t[17]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),i.nodeType=="nexting"?(s.openBlock(),s.createBlock(l,{key:0,items:[c.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])):(s.openBlock(),s.createBlock(l,{key:1,items:[c.branches[0]],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):c.id||c.nodeInfoDTO&&c.nodeInfoDTO.id?(s.openBlock(),s.createElementBlock(s.Fragment,{key:4},[i.nodeType=="nexting"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"&&c.nodeInfoDTO.branches&&c.nodeInfoDTO.branches.length>1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[t[19]||(t[19]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.nodeInfoDTO.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.nodeInfoDTO.branches),key:p},[t[18]||(t[18]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeName||u.name),1)],10,W2))),128)),(s.openBlock(),s.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],64)):c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"&&c.nodeInfoDTO.branches&&c.nodeInfoDTO.branches.length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[t[20]||(t[20]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createVNode(l,{items:[c.nodeInfoDTO.branches[0].nodeInfoDTO?c.nodeInfoDTO.branches[0].nodeInfoDTO:c.nodeInfoDTO.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[s.createElementVNode("div",Y2,[t[21]||(t[21]=s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 ",-1)),s.createElementVNode("pre",null,"\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B94\uFF1A"+s.toDisplayString(i.nodeType),1),t[22]||(t[22]=s.createElementVNode("span",{class:"treeperson-title--re"},"*",-1))]),s.createVNode(l,{items:[c.nodeInfoDTO?c.nodeInfoDTO:c],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64))],64)):(s.openBlock(),s.createBlock(l,{key:1,items:[c],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:5},[],64))]))),128))])):s.createCommentVNode("",!0)],64))])}const X2=oe(D2,[["render",Z2],["__scopeId","data-v-45849350"]]),NA="",$2={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},e6={class:"top-popup-header"},t6={class:"header-title"},i6={class:"top-popup-body"},s6={class:"top-popup-drawer--body"},n6={class:"top-tips-header"},r6={class:"top-tips-body"},o6={class:"top-tips-footer"};function a6(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["top-popup-zindex",i.className]),style:s.normalizeStyle(`${i.isIndex?`z-index:${i.isIndex}`:""}`)},[s.createElementVNode("div",{class:"top-popup-mask",style:s.normalizeStyle(r.show&&i.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>i.isMaskClose&&o.handleClose())},null,4),!i.isTips&&!i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-popup",style:s.normalizeStyle(r.show?"transform: translateY(0)":"transform: translateY(150%)")},[s.createElementVNode("div",e6,[s.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>o.handleCancel&&o.handleCancel(...a))},s.toDisplayString(i.cancelText),1),s.createElementVNode("div",t6,s.toDisplayString(i.titleText),1),s.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>o.handleComfig&&o.handleComfig(...a))},s.toDisplayString(i.comfigText),1)]),s.createElementVNode("div",i6,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!i.isTips&&i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-popup-drawer",r.show?"top-popup-drawer--active":""]),style:s.normalizeStyle(i.width?`width:${i.width};`:"")},[s.createElementVNode("div",s6,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):i.isTips&&!i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-tips",style:s.normalizeStyle(r.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[s.createElementVNode("div",n6,s.toDisplayString(i.titleText),1),s.createElementVNode("div",r6,s.toDisplayString(i.context),1),s.createElementVNode("div",o6,[s.createElementVNode("div",{class:"top-tips-btn",onClick:t[3]||(t[3]=(...a)=>o.handleCancel&&o.handleCancel(...a))},s.toDisplayString(i.cancelText),1),s.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>o.handleComfig&&o.handleComfig(...a))},s.toDisplayString(i.comfigText),1)])],4)):s.createCommentVNode("",!0)],6)}const Fa=oe($2,[["render",a6],["__scopeId","data-v-06a80662"]]),TA="",l6={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Fa},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,n),this.currentPath.push({x:i,y:n})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,n),this.ctx.stroke(),this.currentPath.push({x:i,y:n})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:n}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,n)):(this.ctx.lineTo(i,n),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),o=new File([i],"text.txt").size/1024;if(o<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(o>300)return null;{let a,l;if(t<.005)return null;if(t-.05>0){a=t-.05;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}else{a=t/2;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let n=e.width/window.devicePixelRatio,r=e.height/window.devicePixelRatio,o=t*Math.PI/180,a=Math.max(n*Math.abs(Math.cos(o)),r*Math.abs(Math.sin(o))),l=Math.max(n*Math.abs(Math.sin(o)),r*Math.abs(Math.cos(o)));const c=document.createElement("canvas"),m=c.getContext("2d");c.width=a,c.height=l,m.translate(a/2,l/2),m.rotate(o),m.drawImage(e,-n/2,-r/2,n,r),c.toBlob(u=>{this.uploadImage(u)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const n=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!n.success)return;let r=JSON.parse(localStorage.getItem("signaturesArr"))||[];r.unshift(n.data),this.historyPics=r.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",n.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const n=t.offsetWidth,r=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${n}px`,i.style.height=`${r}px`,i.width=n*window.devicePixelRatio,i.height=r*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},c6={class:"canvas-container"},d6={key:0,class:"tips"},p6={class:"history"},h6=["src"],u6=["src"],m6=["src"],f6={class:"actions-area"};function g6(e,t,i,n,r,o){const a=s.resolveComponent("signDrawer");return s.openBlock(),s.createElementBlock("div",{class:"sign-container",style:s.normalizeStyle(o.setDynamicVars)},[s.createElementVNode("div",c6,[r.paths.length==0&&r.currentPath.length==0?(s.openBlock(),s.createElementBlock("div",d6,"\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")):s.createCommentVNode("",!0),s.createElementVNode("canvas",{ref:"canvasRef",onTouchmove:t[0]||(t[0]=(...l)=>o.draw&&o.draw(...l)),onTouchstart:t[1]||(t[1]=(...l)=>o.startDrawing&&o.startDrawing(...l)),onTouchend:t[2]||(t[2]=(...l)=>o.finishDrawing&&o.finishDrawing(...l)),id:"canvas-id","canvas-id":"canvas-id",class:s.normalizeClass({"uni-canvas-style":o.isUniCanvas()})},null,34)]),s.createElementVNode("div",p6,[s.createElementVNode("div",{class:"img-grid",onClick:t[3]||(t[3]=l=>o.useHistory(0))},[r.historyPics[0]?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[0]?r.historyPics[0].url:"",fit:"scale-down"},null,8,h6)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:"img-grid",onClick:t[4]||(t[4]=l=>o.useHistory(1))},[r.historyPics[1]&&r.historyPics[1].url?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[1].url,fit:"scale-down"},null,8,u6)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:"img-grid",onClick:t[5]||(t[5]=l=>o.useHistory(2)),style:{"margin-right":"10rpx"}},[r.historyPics[2]&&r.historyPics[2].url?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[2].url,fit:"scale-down"},null,8,m6)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",f6,[s.createElementVNode("button",{onClick:t[6]||(t[6]=(...l)=>o.confirmSave&&o.confirmSave(...l)),class:"btns-common cmf-btn"},"\u786E\u8BA4"),s.createElementVNode("button",{onClick:t[7]||(t[7]=(...l)=>o.cancelSign&&o.cancelSign(...l)),class:"btns-common"},"\u8FD4\u56DE"),s.createElementVNode("button",{onClick:t[8]||(t[8]=(...l)=>o.undo&&o.undo(...l)),class:"btns-common"},"\u64A4\u9500"),s.createElementVNode("button",{onClick:t[9]||(t[9]=(...l)=>o.clearCanvas&&o.clearCanvas(...l)),class:"btns-common"},"\u6E05\u7A7A")]),s.createVNode(a,{visible:r.confirmVisible,"onUpdate:visible":t[10]||(t[10]=l=>r.confirmVisible=l),ref:"TopPopupSign",titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:o.saveSignature},null,8,["visible","comfig"])],4)}const y6=oe(l6,[["render",g6],["__scopeId","data-v-d91bfd13"]]),IA="",A6={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,MsgList:Qi,TreePerson:X2,TopSign:y6,signDrawer:Fa},computed:{check(){return Un},checkS(){return Iy},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let n="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(n=o),l});return r?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const n=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let r=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData[0].branches[0],o?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let r="";return n.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(r=>r);return n&&n.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let n="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(n=o),l});return r?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const n=this.findUserTaskNode(this.nextNodeData.branches[0]);let r=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData.branches[0],o?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let r="";return n.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(r=>r);return n&&n.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.nodeLoading":{handler(e,t){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})}))}},"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth/user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,n)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((n,r)=>{t=n.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,r)=>{i.push({type:3,id:n})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((r,o)=>{n.push({type:3,id:r,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,n)=>{t.push({type:3,id:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let i=0;if(this.radioCheckNameList.map((n,r)=>{(!this.multiNodeParticipant[n]||!this.multiNodeParticipant[n].length)&&this.radioCheckChild.map((o,a)=>{o.id==n&&(o.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||o.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!o.childNode||!o.childNode.length?i+=1:this.radioCheckNode.map((l,c)=>{(!this.multiNodeParticipant[l]||!this.multiNodeParticipant[l].length)&&(i+=1),e[l]=this.multiNodeParticipant[l]}))}),e[n]=this.multiNodeParticipant[n]}),i>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(i=>{let n=this.param.vars||this.gateVars||{};n[i.itemName]||(n[i.itemName]="")}),this.handleTips("",!0,"loading");let t=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(e).forEach(l=>{Array.isArray(e[l])&&(e[l]=e[l].filter(c=>c)),(!e[l]||Array.isArray(e[l])&&e[l].length<=0)&&delete e[l]});let n=i&&i.nodeType!="endEvent"&&(!i.branches||i.branches.length<=0),r=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&i.branches[0].nodeInfoDTO&&i.branches[0].nodeInfoDTO.nodeType!="endEvent",o=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&!i.branches[0].nodeInfoDTO&&i.branches[0].nodeType!="endEvent";if((n||r||o)&&!Object.keys(e).length){let c={};return n?c=i:r?c=i.branches[0].nodeInfoDTO:o&&(c=i.branches[0]),this.handleTips(c.nodeType?"\u8BF7\u9009\u62E9["+c.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists)}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,comment:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let n=0;if(this.radioCheckNameList.map((r,o)=>{(!this.multiNodeParticipant[r]||!this.multiNodeParticipant[r].length)&&this.radioCheckChild.map((a,l)=>{a.id==r&&(a.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||a.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!a.childNode||!a.childNode.length?n+=1:this.radioCheckNode.map((c,m)=>{(!this.multiNodeParticipant[c]||!this.multiNodeParticipant[c].length)&&(n+=1),t[c]=this.multiNodeParticipant[c]}))}),t[r]=this.multiNodeParticipant[r]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=(!1)(this.param.incomingConditionItemList||[]).forEach(n=>{let r=this.param.vars||this.gateVars||{};r[n.itemName]||(r[n.itemName]="")});let i=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const n=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;n.setPersonnel?i=n.assignees:i=(this.partNodeArr[n.id]||[]).map(c=>({id:c.id,name:c.name})),Object.keys(t).forEach(c=>{Array.isArray(t[c])&&(t[c]=t[c].filter(m=>m)),(!t[c]||Array.isArray(t[c])&&t[c].length<=0)&&delete t[c]});let r=n&&n.nodeType!="endEvent"&&(!n.branches||n.branches.length<=0),o=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&n.branches[0].nodeInfoDTO&&n.branches[0].nodeInfoDTO.nodeType!="endEvent",a=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&!n.branches[0].nodeInfoDTO&&n.branches[0].nodeType!="endEvent";if((r||o||a)&&!Object.keys(t).length){let m={};return r?m=n:o?m=n.branches[0].nodeInfoDTO:a&&(m=n.branches[0]),this.handleTips(m.nodeType?"\u8BF7\u9009\u62E9["+m.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,comment:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,r="";n=t.find(a=>a.name=="completeButtonAnnex"),r=n?n.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},C6={class:"process-popup-content"},k6={key:0,class:"process-popup-content-msg"},b6={key:0,class:"process-pc-label"},E6={key:1,class:"process-pc-value",style:{display:"flex"}},w6={class:"process-radio",style:{width:"100%"}},N6=["onClick"],T6=["onClick"],I6={key:2},B6={class:"process-pc-label"},x6={key:0,class:"process-pc-label--re"},S6={class:"process-pc-value"},D6={class:"process-popup-textarea"},P6={class:"process-popup-textarea-num"},M6={key:0,class:"msg-btn"},V6={class:"process-popup-content-person"},O6={key:0},L6={key:1},R6={style:{height:"100%"}},v6={style:{height:"100%"}};function F6(e,t,i,n,r,o){const a=s.resolveComponent("TreePerson"),l=s.resolveComponent("TopTips"),c=s.resolveComponent("departPerson"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("MsgList"),p=s.resolveComponent("attchViews"),y=s.resolveComponent("TopSign"),C=s.resolveComponent("signDrawer");return s.openBlock(),s.createElementBlock("div",C6,[i.param.ProcessInsObj&&i.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(s.openBlock(),s.createElementBlock("div",k6,[i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",b6,"\u5FEB\u6377\u56DE\u590D")):s.createCommentVNode("",!0),i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",E6,[s.createElementVNode("div",w6,[i.param.isDocument?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.msgCheckList,E=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["process-radio-item",E==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=E},[t[8]||(t[8]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(E),1)],10,N6))),256)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.msgCheckListS,E=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["process-radio-item",E==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=E},[t[9]||(t[9]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(E),1)],10,T6))),256)),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",{key:2,class:"process-radio-item",onClick:t[0]||(t[0]=E=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),i.param.isMsg&&!i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",I6,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[1]||(t[1]=E=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),s.createElementVNode("div",B6,[t[10]||(t[10]=s.createTextVNode(" \u5BA1\u6279\u610F\u89C1 ",-1)),i.param.isRequire?(s.openBlock(),s.createElementBlock("span",x6,"*")):s.createCommentVNode("",!0)]),s.createElementVNode("div",S6,[s.createElementVNode("div",D6,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[2]||(t[2]=E=>r.commentMsg=E),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",P6,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",M6,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[3]||(t[3]=E=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),s.createElementVNode("div",V6,[r.nextNodeData.length==1&&r.nextNodeData[0].nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",O6," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):r.nextNodeData&&r.nextNodeData.nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",L6," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):i.param.ProcessInsObj.taskParentId?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(a,{key:2,ref:"TreePersonRef",items:r.nextNodeData,nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))]),s.renderSlot(e.$slots,"completeSlot",{},void 0,!0),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(m,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=E=>r.visible=E),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",R6,[r.visible?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,isTitle:!1,visible:r.visible},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),s.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=E=>r.visibleListMsg=E),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=E=>r.visibleMsgComfig=E)},null,8,["context","cancel","comfig","visible"]),r.labels=="1"?(s.openBlock(),s.createBlock(p,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(C,{visible:r.signVisible,"onUpdate:visible":t[7]||(t[7]=E=>r.signVisible=E),ref:"TopPopupSign",titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},{default:s.withCtx(()=>[s.createElementVNode("div",v6,[r.signVisible?(s.openBlock(),s.createBlock(y,{key:0,request:i.param.request,onSaveSignature:o.handleSignature,onValidateFail:o.noticeFail,onClose:o.handleClose},null,8,["request","onSaveSignature","onValidateFail","onClose"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"])])}const ja=oe(A6,[["render",F6],["__scopeId","data-v-b5e59dc8"]]),BA="",j6={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,MsgList:Qi},watch:{param:{async handler(e,t){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},Q6={class:"process-popup-content"},U6={class:"process-popup-content-msg"},_6={key:0},G6={class:"process-pc-value"},q6={class:"process-popup-textarea"},z6={class:"process-popup-textarea-num"},J6={key:0,class:"msg-btn"},H6={key:0,class:"process-popup-content-person"},K6=["onClick"],W6={class:"process-pc-value--people"},Y6={key:0,class:"process-pc-value--data"},Z6={key:1,class:"process-pc-value--data",style:{color:"#888"}},X6={style:{"font-size":"15px"}},$6={style:{height:"100%"}};function e4(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",Q6,[s.createElementVNode("div",U6,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",_6,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[7]||(t[7]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",G6,[s.createElementVNode("div",q6,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",z6,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",J6,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),r.taskNode&&r.taskNode.length>0&&r.taskNode[0].taskState!=4?(s.openBlock(),s.createElementBlock("div",H6,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>{var y,C;return s.openBlock(),s.createElementBlock(s.Fragment,null,[o.isOption((C=(y=p==null?void 0:p.userTaskModelDTO)==null?void 0:y.humanPerformer)==null?void 0:C.name)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",null,[s.createTextVNode(s.toDisplayString(p.userTaskModelDTO.name)+" ",1),t[8]||(t[8]=s.createElementVNode("br",null,null,-1)),t[9]||(t[9]=s.createTextVNode(" \u5BA1\u6279\u4EBA ",-1)),t[10]||(t[10]=s.createElementVNode("span",{class:"process-pc-label--re"},"*",-1))]),s.createElementVNode("div",{class:"process-pc-value",onClick:E=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",W6,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",Y6,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(E,v)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(v==0?E:`,${E}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",Z6,[...t[11]||(t[11]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,K6)],64)):s.createCommentVNode("",!0)],64)}),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[o.isOption(p.humanPerformerName)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",X6,s.toDisplayString(p.name),1),t[13]||(t[13]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:t[3]||(t[3]=(...y)=>o.handleOpenPopup&&o.handleOpenPopup(...y))},[...t[12]||(t[12]=[s.createElementVNode("div",{class:"process-pc-value--people"},s.toDisplayString(234),-1)])])],64)):s.createCommentVNode("",!0)],64))),256)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",$6,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="\u62D2\u7EDD"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const t4=oe(j6,[["render",e4],["__scopeId","data-v-59b811ec"]]),xA="",i4={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,TopDownSelect:La,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},s4={class:"process-popup-content"},n4={class:"process-popup-content-msg"},r4={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},o4={class:"process-pc-value"},a4={class:"process-popup-textarea"},l4={class:"process-popup-textarea-num"};function c4(e,t,i,n,r,o){const a=s.resolveComponent("TopDownSelect"),l=s.resolveComponent("TopTips"),c=s.resolveComponent("MsgList"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("attchViews");return s.openBlock(),s.createElementBlock("div",s4,[s.createElementVNode("div",n4,[t[3]||(t[3]=s.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[s.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",r4,[s.createVNode(a,{option:r.option,onChange:o.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),t[4]||(t[4]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",o4,[s.createElementVNode("div",a4,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",l4,s.toDisplayString(r.commentMsg.length)+"/200 ",1)])])]),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[1]||(t[1]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(c,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[2]||(t[2]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),r.labels=="\u9000\u56DE"?(s.openBlock(),s.createBlock(u,{key:0,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0)])}const d4=oe(i4,[["render",c4],["__scopeId","data-v-fcd1a869"]]),SA="",p4={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,departPerson:At.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},h4={style:{height:"100%"}};function u4(e,t,i,n,r,o){const a=s.resolveComponent("departPerson"),l=s.resolveComponent("TopTips");return s.openBlock(),s.createElementBlock("div",h4,[i.param.visible?(s.openBlock(),s.createBlock(a,s.mergeProps({key:0,isTitle:!1,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["request","onCallback","onCancel"])):s.createCommentVNode("",!0),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])}const m4=oe(p4,[["render",u4]]),DA="",f4={name:"nf-button",components:{TopTips:it},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{process:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const n=i.data;this.backNodes=n})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},g4={class:"process-btns"},y4=["disabled"],A4={key:0},C4={key:1},k4=["disabled"],b4={key:0},E4={key:1},w4=["disabled"],N4=["disabled"],T4=["disabled"],I4=["disabled"],B4=["disabled"],x4=["disabled"],S4=["disabled"],D4=["disabled"],P4=["disabled"];function M4(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",g4,[i.process.status=="todo"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[o.getButton("wf_pass")?(s.openBlock(),s.createElementBlock("button",{key:0,class:"process-button success",size:"default",disabled:i.loading,onClick:t[0]||(t[0]=a=>e.$emit("examine",!0,["deleted"].includes(i.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":o.getButton("wf_pass").name))},[["deleted"].includes(i.process.processIsFinished)?(s.openBlock(),s.createElementBlock("span",A4,"\u91CD\u65B0\u63D0\u4EA4")):(s.openBlock(),s.createElementBlock("span",C4,s.toDisplayString(o.getButton("wf_pass").name),1))],8,y4)):s.createCommentVNode("",!0),o.getButton("wf_reject")?(s.openBlock(),s.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[1]||(t[1]=a=>e.$emit("examine",!1,(r.backNodes.length>1,o.getButton("wf_reject").name)))},[r.backNodes.length>1?(s.openBlock(),s.createElementBlock("span",b4,s.toDisplayString(o.getButton("wf_reject").name),1)):(s.openBlock(),s.createElementBlock("span",E4,s.toDisplayString(o.getButton("wf_reject").name),1))],8,k4)):s.createCommentVNode("",!0),i.uid==(i.process.variables||{}).applyUserId?(s.openBlock(),s.createElementBlock("button",{key:2,size:"default",class:"process-button info",disabled:i.loading,onClick:t[2]||(t[2]=a=>e.$emit("reminders"))},[...t[11]||(t[11]=[s.createElementVNode("span",null,"\u50AC\u529E",-1)])],8,w4)):s.createCommentVNode("",!0),o.getButton("wf_transfer")?(s.openBlock(),s.createElementBlock("button",{key:3,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[3]||(t[3]=a=>e.$emit("user-select",{type:"transfer",checkType:"radio",name:o.getButton("wf_transfer").name}))},s.toDisplayString(o.getButton("wf_transfer").name),9,N4)):s.createCommentVNode("",!0),o.getButton("wf_delegate")?(s.openBlock(),s.createElementBlock("button",{key:4,class:"process-button warning",size:"default",disabled:i.loading,onClick:t[4]||(t[4]=a=>e.$emit("user-select",{type:"delegate",checkType:"radio",name:o.getButton("wf_delegate").name}))},s.toDisplayString(o.getButton("wf_delegate").name),9,T4)):s.createCommentVNode("",!0),o.getButton("wf_rollback")?(s.openBlock(),s.createElementBlock("button",{key:5,class:"process-button success",size:"default",disabled:i.loading,onClick:t[5]||(t[5]=a=>e.$emit("rollback",o.getButton("wf_rollback").name))},s.toDisplayString(o.getButton("wf_rollback").name),9,I4)):s.createCommentVNode("",!0),o.getButton("wf_terminate")?(s.openBlock(),s.createElementBlock("button",{key:6,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[6]||(t[6]=a=>e.$emit("terminate"))},s.toDisplayString(o.getButton("wf_terminate").name),9,B4)):s.createCommentVNode("",!0),i.process.isMultiInstance&&o.getButton("wf_add_instance")?(s.openBlock(),s.createElementBlock("button",{key:7,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[7]||(t[7]=a=>e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:o.getButton("wf_add_instance").name}))},s.toDisplayString(o.getButton("wf_add_instance").name),9,x4)):s.createCommentVNode("",!0),o.getButton("wf_cctask")?(s.openBlock(),s.createElementBlock("button",{key:8,class:"process-button info",size:"default",disabled:i.loading,onClick:t[8]||(t[8]=a=>e.$emit("circulate",o.getButton("wf_cctask").name))},[s.createElementVNode("span",null,s.toDisplayString(o.getButton("wf_cctask").name),1)],8,S4)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),i.process.isOwner&&i.process.isReturnable&&!["deleted"].includes(i.process.processIsFinished)?(s.openBlock(),s.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[9]||(t[9]=a=>e.$emit("withdraw","\u64A4\u9500"))}," \u64A4\u9500 ",8,D4)):s.createCommentVNode("",!0),o.getButton("wf_print")?(s.openBlock(),s.createElementBlock("button",{key:2,class:"process-button info",size:"default",disabled:i.loading,onClick:t[10]||(t[10]=a=>e.$emit("print"))},s.toDisplayString(o.getButton("wf_print").name),9,P4)):s.createCommentVNode("",!0)])}const V4=Ye({name:"TopProcess",provide(){return{request:this.request}},components:{processBtns:oe(f4,[["render",M4],["__scopeId","data-v-5024d104"]]),TopTab:eg,TopPopup:Fe,TopTips:it,TopSumbitPopup:va},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},taskId:{require:!1,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},businessSubjectId:{default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{},historyFlow:[]},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001",userAudit:""}},watch:{processInstId:{async handler(e,t){this.$nextTick(()=>{this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.processInstId,taskId:this.taskId}:{processInstId:this.processInstId}}).then(i=>{var n;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data};let r=(this.ProcessInsObj.flow||[]).filter(c=>["userTask"].includes(c.historyActivityType)&&c.createTime),o=r[r.length-1].assigneeName;if(console.error(o,"user1"),!o){let c=r[r.length-1];o=c.comments[c.comments.length-1].userId||""}console.error(o,"user2"),this.userAudit=o,this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((n=i.data)==null?void 0:n.flow)||[]).filter(c=>["userTask","candidate"].includes(c.historyActivityType));const a=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=a;const l=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=l,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())})},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(this.getButton("wf_pass"),this.needResubmit&&t.status=="todo"&&this.userIdData&&t.isOwner&&["deleted"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let r={};r.name="\u91CD\u65B0\u63D0\u4EA4",r.btnProps={type:"default"},e.push(r),r.click=o=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let r={};r.name=this.getButton("wf_pass").name,r.btnProps={type:"primary"},e.push(r),r.click=o=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let r={};r.name=this.getButton("wf_reject").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(r=>{let o={};o.name=r.name,o.btnProps={type:r.type},e.push(o),o.click=r.click}),["wf_edit"].map(r=>{if(!this.isView&&t.status=="todo"&&this.getButton(r)){let o={};o.name=this.getButton(r).name,o.btnProps={},o.key=o.name,o.click=()=>{this.$emit("clickCustomButton",o.name)},e.push(o)}}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let r={};r.name=this.getButton("wf_rollback").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let r={};r.name=this.getButton("wf_cctask").name,r.btnProps={type:"default"},r.click=async o=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let r={};r.name=this.getButton("wf_delegate").name,r.btnProps={type:"warning"},r.key="cc2",r.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let r={};r.name=this.getButton("wf_terminate").name,r.btnProps={type:"danger"},r.key="cc3",r.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let r={};r.name=this.getButton("wf_transfer").name,r.btnProps={type:"default"},r.click=o=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(r)}if(t.status=="todo"&&this.getButton("wf_add_instance")){let r={};r.name=this.getButton("wf_add_instance").name,r.btnProps={type:"primary"},r.click=o=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(r)}if(t.isReturnable&&t.isOwner){let r={};r.name="\u50AC\u529E",r.btnProps={type:"default"},r.click=o=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(r)}if(t.isOwner&&t.isReturnable&&!["deleted"].includes(t.processIsFinished)){let r={};r.name="\u64A4\u9500",r.btnProps={type:"default"},r.click=o=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(r)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:this.taskId?{processInstId:this.processIntId,taskId:this.taskId}:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const t={};if(t.currentProcessOriginData=e.data||[],t.currentProcessOriginData.length>0){let i=t.currentProcessOriginData[0],n=(i.currentName||"").split(","),r=(i.avatar||"").split(",");n=n.map((o,a)=>({realName:o,avatar:r[a]||"",phone:"",ancestorNames:[]})),t.currentMan=n,t.currentFirstNode=i,this.currentProcess=t}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(ja,e)}):this.showOperation(ja,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(t4,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(Ty,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(ry,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(d4,e)},handleTerminateProcess(){},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){this.showOperation(m4,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(n){console.error(n),t={}}let i=t.data||{};t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),t.code==200&&t.data.evaluation&&t.data.branches&&t.data.branches.length>0&&t.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let n=0;n<this.nextNodeData.length;n++)this.approveNode=this.nextNodeData[n]}else{let n=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(n,"")}},async getSelectFixData(e,t){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let n=0;n<i.branches.length;n++){let r=i.branches[n],o=r.nodeInfoDTO?r.nodeInfoDTO:r;try{o=await this.getSelectFixData(o,t)}catch(a){}r.nodeInfoDTO?r.nodeInfoDTO=o:r=o,i.branches[n]=r}else if(i.nodeType=="userTask"&&!i.setPersonnel){let n=Pa(i),r;try{r=await this.getNodeUser({deptId:t,intersection:n.intersection?1:0,userIds:n.userIds,postIds:n.postIds,deptIds:n.deptIds}),r.code==$enum.apiCode.success}catch(o){}r.code==200&&(i.userList=r.data)}return i},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let n=0;n<i.data.length;n++){let r=i.data[n];r.incomingConditionItemList&&r.incomingConditionItemList.length!==0&&(r.nodeInfoDTO.incomingConditionItemList=r.incomingConditionItemList,this.incomingConditionItemList.push(...r.incomingConditionItemList)),r.nodeInfoDTO.nodeType!="userTask"&&(r.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,r.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,n,r){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=n||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=n||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,r){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId,subjectId:this.formData.subjectId||this.businessSubjectId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),MA="",O4={class:"process-warp"},L4={key:0,class:"process-main",id:"process-header",ref:"processheader"},R4={class:"process-ml-item border"},v4={class:"process-mli-value"},F4={class:"process-ml-item border"},j4={class:"process-mli-value"},Q4={key:0,class:"process-ml-item"},U4={class:"process-mli-value",style:{width:"50%","text-align":"right"}},_4={class:"process-mliv-jd"},G4=["slot"],q4={slot:"default",style:{height:"100%"}},z4=["slot"],J4={key:0,class:"footBtnRow"},H4=["onClick"],K4={slot:"completeSlot"},W4=["onClick"],Y4=["onClick"],Z4={slot:"completeSlot"};function X4(e,t,i,n,r,o){const a=s.resolveComponent("TopTab"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("TopTips"),m=s.resolveComponent("TopSumbitPopup");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",O4,[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?(s.openBlock(),s.createElementBlock("div",L4,[s.createElementVNode("div",R4,[t[5]||(t[5]=s.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),s.createElementVNode("div",v4,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(s.openBlock(),s.createElementBlock("div",{key:0,class:"process-mliv-dd",style:s.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},s.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",F4,[t[6]||(t[6]=s.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),s.createElementVNode("div",j4,[s.createElementVNode("span",null,s.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(s.openBlock(),s.createElementBlock("div",Q4,[t[7]||(t[7]=s.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),s.createElementVNode("div",U4,[s.createElementVNode("span",_4,s.toDisplayString(`${e.userAudit}\u5BA1\u6279\u4E2D`),1)])])):s.createCommentVNode("",!0)],512)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"process-card",style:s.normalizeStyle({height:e.processCardHeight})},[s.createVNode(a,{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:s.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.selfTapList,(u,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,slot:u.slot,style:{height:"100%"}},[s.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,G4))),128)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",q4,[s.renderSlot(e.$slots,"default",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tapList,(u,p)=>(s.openBlock(),s.createElementBlock("div",{style:{height:"100%"},key:p,slot:u.slot},[s.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,z4))),128))],64))]),_:3},8,["ProcessInsObj","processXml","approvalData","tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:s.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(s.openBlock(),s.createElementBlock("div",J4,[s.renderSlot(e.$slots,"btn",{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-button",style:s.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.operBtn,(u,p)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[p<3?(s.openBlock(),s.createElementBlock("div",{class:"top-button",style:s.normalizeStyle(e.getBtnStyle((u.btnProps.type||"default").toString())),key:u.name,onClick:y=>u.click(u.name)},s.toDisplayString(u.name),13,H4)):s.createCommentVNode("",!0)],64))),256)):s.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:"elips",onClick:t[0]||(t[0]=(...u)=>e.handleActionOpen&&e.handleActionOpen(...u))},[...t[8]||(t[8]=[s.createElementVNode("div",{class:"circle"},null,-1),s.createElementVNode("div",{class:"circle"},null,-1),s.createElementVNode("div",{class:"circle"},null,-1)])])):s.createCommentVNode("",!0)],64))],64))],4))]),s.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":t[1]||(t[1]=u=>e.TopPopup1=u),className:"toppopup-component"},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.operationCom),{key:e.operationComKey,ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:s.withCtx(()=>[s.createElementVNode("div",K4,[s.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),s.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),s.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-elips",style:s.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.taskNodeList,u=>(s.openBlock(),s.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(u),key:u.taskId},s.toDisplayString(u.name),9,W4))),128)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.actionBtn,u=>(s.openBlock(),s.createElementBlock("div",{class:"top-elips-items",onClick:p=>u.click(u.name),key:u.name},s.toDisplayString(u.name),9,Y4))),128)),s.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...u)=>e.handleActionClose&&e.handleActionClose(...u))}," \u53D6\u6D88 ")],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...u)=>e.handleActionClose&&e.handleActionClose(...u)),style:s.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),s.createVNode(m,s.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"]),s.createVNode(l,{ref:"cctaskTopPopup",titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,"onUpdate:visible":t[4]||(t[4]=u=>e.cctaskTopPopup=u),isDrawer:!0},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.operationCom),{ref:"cctaskOperationRef",param:e.operationParam,onHandleClosecctaskTopPopup:e.handleClosecctaskTopPopup},{default:s.withCtx(()=>[s.createElementVNode("div",Z4,[s.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosecctaskTopPopup"]))]),_:3},8,["titleText","visible"])])}const $4=oe(V4,[["render",X4],["__scopeId","data-v-a4d60af3"]]),Qa={name:"ddy-process-h5",version:"1.0.1-rc.3.113",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Qa.name+"%c v"+Qa.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),qe.TopProcess=$4,qe.TopSumbitPopup=va,qe.ViewAttchList=Jr,qe.attchViews=$t,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
13
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+a+"</svg>"}catch(n){i=n}if(this._emit("saveSVG.done",{error:i,svg:t}),i)throw i;return{svg:t}},ue.prototype._setDefinitions=function(e){this._definitions=e},ue.prototype.getModules=function(){return this._modules},ue.prototype.clear=function(){!this.getDefinitions()||gi.prototype.clear.call(this)},ue.prototype.destroy=function(){gi.prototype.destroy.call(this),pi(this._container)},ue.prototype.on=function(e,t,i,n){return this.get("eventBus").on(e,t,i,n)},ue.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ue.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=tt(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ue.prototype.getDefinitions=function(){return this._definitions},ue.prototype.detach=function(){const e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))},ue.prototype._init=function(e,t,i){const n=i.modules||this.getModules(i),r=i.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,n,r),l=q(Bd(i,["additionalModules"]),{canvas:q({},i.canvas,{container:e}),modules:a});gi.call(this,l),i&&i.container&&this.attachTo(i.container)},ue.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ue.prototype._createContainer=function(e){const t=Qe('<div class="bjs-container"></div>');return ke(t,{width:Na(e.width),height:Na(e.height),position:e.position}),t},ue.prototype._createModdle=function(e){const t=q({},this._moddleExtensions,e.moddleExtensions);return new Qu(t)},ue.prototype._modules=[];function Is(e,t){return e.warnings=t,e}function tm(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const im={width:"100%",height:"100%",position:"relative"};function Na(e){return e+(Tt(e)?"px":"")}function sm(e,t){return t&&$e(e.diagrams,function(i){return i.id===t})||null}function nm(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+ba+"</a>",n=Qe(i);ke(tt("svg",n),Ea),ke(n,wa,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(n),et.bind(n,"click",function(r){em(),r.preventDefault()})}function ki(e){ue.call(this,e)}ot(ki,ue),ki.prototype._modules=[lh,bo,kh,Oo,jh],ki.prototype._moddleExtensions={};var rm=/^djs-cursor-.*$/;function Ta(e){var t=zt(document.body);t.removeMatching(rm),e&&t.add("djs-cursor-"+e)}function om(){Ta(null)}var am=5e3;function lm(e,t){t=t||"element.click";function i(){return!1}return e.once(t,am,i),function(){e.off(t,i)}}function Ia(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ba(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}var cm=15;function xa(e,t){var i;function n(l){return a(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?(e.on("element.mousedown",500,n),e.on("element.touchstart",500,n)):(e.off("element.mousedown",n),e.off("element.touchstart",n))});function r(l){var c=i.start,m=i.button,u=Ba(l),p=Ia(u,c);if(!i.dragging&&dm(p)>cm&&(i.dragging=!0,m===0&&lm(e),Ta("grab")),i.dragging){var y=i.last||i.start;p=Ia(u,y),t.scroll({dx:p.x,dy:p.y}),i.last=u}l.preventDefault()}function o(l){et.unbind(document,"mousemove",r),et.unbind(document,"touchmove",r),et.unbind(document,"mouseup",o),et.unbind(document,"touchend",o),i=null,om()}function a(l){if(!mo(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return i={button:c,start:Ba(l)},et.bind(document,"mousemove",r),et.bind(document,"touchmove",r),et.bind(document,"mouseup",o),et.bind(document,"touchend",o),!0}}this.isActive=function(){return!!i}}xa.$inject=["eventBus","canvas"];function dm(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Rn={__init__:["moveCanvas"],moveCanvas:["type",xa]};function Sa(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Sa.prototype.next=function(){return this._prefix+ ++this._counter};var pm=new Sa("tt");function hm(e){var t=Qe('<div class="djs-tooltip-container" />');return ke(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function um(e,t,i){ke(e,{left:t+"px",top:i+"px"})}function vn(e,t){e.style.display=t===!1?"none":""}var Da="djs-tooltip",Fn="."+Da;function Se(e,t){this._eventBus=e,this._canvas=t,this._ids=pm,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=hm(t.getContainer());var i=this;di.bind(this._tooltipRoot,Fn,"mousedown",function(n){n.stopPropagation()}),di.bind(this._tooltipRoot,Fn,"mouseover",function(n){i.trigger("mouseover",n)}),di.bind(this._tooltipRoot,Fn,"mouseout",function(n){i.trigger("mouseout",n)}),this._init()}Se.$inject=["eventBus","canvas"],Se.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=q({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},Se.prototype.trigger=function(e,t){var i=t.delegateTarget||t.target,n=this.get(ho(i,"data-tooltip-id"));!n||(e==="mouseover"&&n.timeout&&this.clearTimeout(n),e==="mouseout"&&n.timeout&&(n.timeout=1e3,this.setTimeout(n)))},Se.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},Se.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},Se.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}},Se.prototype.remove=function(e){var t=this.get(e);t&&(pi(t.html),pi(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},Se.prototype.show=function(){vn(this._tooltipRoot)},Se.prototype.hide=function(){vn(this._tooltipRoot,!1)},Se.prototype._updateRoot=function(e){var t=e.scale||1,i=e.scale||1,n="matrix("+t+",0,0,"+i+","+-1*e.x*t+","+-1*e.y*i+")";this._tooltipRoot.style.transform=n,this._tooltipRoot.style["-ms-transform"]=n},Se.prototype._addTooltip=function(e){var t=e.id,i=e.html,n,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),Xe(i)&&(i=Qe(i)),n=Qe('<div data-tooltip-id="'+t+'" class="'+Da+'">'),ke(n,{position:"absolute"}),n.appendChild(i),e.type&&zt(n).add("djs-tooltip-"+e.type),e.className&&zt(n).add(e.className),e.htmlContainer=n,r.appendChild(n),this._tooltips[t]=e,this._updateTooltip(e)},Se.prototype._updateTooltip=function(e){var t=e.position,i=e.htmlContainer;um(i,t.x,t.y)},Se.prototype._updateTooltipVisibilty=function(e){L(this._tooltips,function(t){var i=t.show,n=t.htmlContainer,r=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(r=!1),vn(n,r))})},Se.prototype._init=function(){var e=this;function t(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){t(i.viewbox)})};const jn={__init__:["tooltips"],tooltips:["type",Se]},mm=e=>{var t=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[t.call(e)]},Qn=e=>{var t=mm(e),i;if(t==="array")i=[];else if(t==="object")i={};else return e;if(t==="array")for(var n=0,r=e.length;n<r;n++)i.push(Qn(e[n]));else if(t==="object")for(var o in e)i[o]=Qn(e[o]);return i};function fm(e,t="YYYY-MM-DD HH:mm:ss"){const i=new Date(e),n=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),l=i.getMinutes(),c=i.getSeconds(),m=i.getDay(),p={YYYY:n,MM:r,DD:o,HH:a,mm:l,ss:c,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][m]};for(let y in p)t=t.replace(y,p[y]);return t}function gm(e){e=Qn(e);const t={};e.forEach(n=>{t[n.historyActivityId]?t[n.historyActivityId].push(n):t[n.historyActivityId]=[n]});for(let n in t){const r=t[n];if(r.length>1){const o=e.findLast(a=>a.historyActivityId==n);o.assigneeName=Array.from(new Set(r.map(a=>a.assigneeName))).join("/")}}const i=[];return e.forEach(n=>{let{assigneeName:r,createTime:o,endTime:a,comments:l}=n;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(o=o.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const c={id:n.historyActivityId,class:!a&&n.historyActivityType!="candidate"?"nodePrimary":""};let m="";if(r||l&&l.length>0){if(m=`<span title='${r}'>${r}</span><br>`,o){let p=(o||"").replaceAll("/","-");m+=`<span title='${o}'>${p}</span><br>`}if(l&&l.length>0){let p,{type:y,fullMessage:C}=l.find(E=>E.action=="AddComment")||{};y=="assigneeComment"&&(p="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+C,c.class="nodeWarn"),y=="dispatchComment"&&(p="\u8C03\u5EA6\uFF1A"+C,c.class="nodeWarn"),y=="transferComment"&&(p="\u8F6C\u529E\uFF1A"+C,c.class="nodeWarn"),y=="delegateComment"&&(p="\u59D4\u6258\uFF1A"+C,c.class="nodeWarn"),y=="rollbackComment"&&(p="\u6307\u5B9A\u56DE\u9000\uFF1A"+C,c.class="nodeError"),y=="terminateComment"&&(p="\u7EC8\u6B62\uFF1A"+C,c.class="nodeError"),(y=="addMultiInstanceComment"||(y||"").includes("\u52A0\u7B7E"))&&(p="\u52A0\u7B7E\uFF1A"+C,c.class="nodeWarn"),y=="deleteMultiInstanceComment"&&(p="\u51CF\u7B7E\uFF1A"+C,c.class="nodeError"),y=="withdrawComment"&&(p="\u64A4\u9500\uFF1A"+C,c.class="nodeWarn"),y=="deleteProcessComment"&&(p="\u5220\u9664\u6D41\u7A0B\uFF1A"+C,c.class="nodeError"),y=="cancelProcessComment"&&(p="\u62D2\u7EDD\uFF1A"+C,c.class="nodeError"),y=="comment"&&(p="\u5BA1\u6279\uFF1A"+C,c.class="nodeSuccess"),p&&(m+=`<span title='${p}'>${p}</span>`)}c.tooltip=m}n.historyActivityType=="sequenceFlow"?c.class="lineWarn":!c.class&&n.historyActivityType!="candidate"&&(c.class="nodeSuccess");const u=i.findIndex(p=>p.id==n.historyActivityId);u!=-1?i.splice(u,1,c):i.push(c)}),i}function Pa(e){const t=[],i=[],n=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(r=>{r.type==="user"?t.push(...r.ids.filter(o=>o&&o.trim()!=="")):r.type==="post"?i.push(...r.ids):r.type==="dept"&&n.push(...r.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(t)],postIds:[...new Set(i)],deptIds:[...new Set(n)]}}function Ma(e){const t=[];return e.forEach(i=>{let{assigneeName:n,createTime:r,endTime:o,comments:a}=i;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(r=r.replace(/-/g,"/"),o=o.replace(/-/g,"/"));const l={id:i.historyActivityId,class:!o&&i.historyActivityType!="candidate"?"nodePrimary":""};let c="";if(n||a&&a.length>0){if(c=`<span title='${n}'>${n}</span><br>`,r&&(c+=`<span title='${r}'>${fm(r,"YYYY-MM-DD HH:mm")}</span><br>`),a&&a.length>0){let m,{type:u,fullMessage:p}=a.find(y=>y.action=="AddComment")||{};u=="assigneeComment"&&(m="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+p,l.class="nodeWarn"),u=="dispatchComment"&&(m="\u8C03\u5EA6\uFF1A"+p,l.class="nodeWarn"),u=="transferComment"&&(m="\u8F6C\u529E\uFF1A"+p,l.class="nodeWarn"),u=="delegateComment"&&(m="\u59D4\u6258\uFF1A"+p,l.class="nodeWarn"),u=="rollbackComment"&&(m="\u6307\u5B9A\u56DE\u9000\uFF1A"+p,l.class="nodeError"),u=="terminateComment"&&(m="\u7EC8\u6B62\uFF1A"+p,l.class="nodeError"),(u=="addMultiInstanceComment"||(u||"").includes("\u52A0\u7B7E"))&&(m="\u52A0\u7B7E\uFF1A"+p,l.class="nodeWarn"),u=="deleteMultiInstanceComment"&&(m="\u51CF\u7B7E\uFF1A"+p,l.class="nodeError"),u=="withdrawComment"&&(m="\u64A4\u9500\uFF1A"+p,l.class="nodeWarn"),u=="deleteProcessComment"&&(m="\u5220\u9664\u6D41\u7A0B\uFF1A"+p,l.class="nodeError"),u=="cancelProcessComment"&&(m="\u62D2\u7EDD\uFF1A"+p,l.class="nodeError"),u=="comment"&&(m="\u5BA1\u6279\uFF1A"+p,l.class="nodeSuccess"),m&&(c+=`<span title='${m}'>${m}</span>`)}l.tooltip=c}i.historyActivityType=="sequenceFlow"?l.class="lineWarn":!l.class&&i.historyActivityType!="candidate"&&(l.class="nodeSuccess"),t.push({...i,...l})}),t}const ym="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIgYyou8KvTecA1Xrgm+zLXrV/9H08/GPAIH/FHjYECDw3wIC8ddB4H8EBOLPg4BA/A0QyAS8QTI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMzeoSAYFcctEeMxMQ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+lKAYGUgOZnCwjk7Pv1dKWAQEpA87MFBHL2/Xq6UkAgJaD52QICOft+PV0pIJAS0PxsAYGcfb+erhQQSAlofraAQM6+X09XCgikBDQ/W+Bvvl+A5yG20gIAAAAASUVORK5CYII=",Am="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADYNJREFUeF7tnQnwrvUUx79fopI1TaPNFpMhGmuGSppmUCrSSJYUhSxTLm4yMWMa0qbk1hhLZG1xUWqQsWREtKAoomgjYrJWhnzNaZ7u3G733nnPs7zv877n+5t5pzvNOef3O5/zfv/P8z7PbyHcTMAE1kiAZmMCJrBmAhaIvx0msBYCFoi/HiZggfg7YALtCPgK0o6bvYoQsECKFNpptiNggbTjZq8iBCyQIoV2mu0IWCDtuNmrCAELpEihnWY7AhZIO272KkLAAplioSU9DsCmANYHsF7zWfnf8f/WWWVIdwD4A4DfAfg9gN+SvG2Kwy7dlQXSc/klbQtgKwCPAvDolT4hjL7a3wBc33yuC9EAuAzAFSSv7asTxwEskA7fAknx1387AM8GsAOA53YI15frPwH8DMAFzed8kiEotxYELJAkNEkhgl0APAfA05PuszK/HMDXAZxL8vxZDWIe+7VAJqiapN0BvKj5PGQClzGb/BXAVxrBnEPyX2Me7KzHZoGspgLNrVMIYs/manG/WRdqwP6/AeBsAGeQ/POA/cxlaAtkpbJJejyANwJ4JYAHzWVF2w86nox9BsAHSf6qfZjF8rRAAEh6DYADATxzscrbOptzAZxI8rzWERbEsaxAJG0CYCmAEMcDF6SefadxJYCjSJ7ad+B5iVdOII0w3gPgDfNSpBGMM15UnghgGcl4jFymlRGIpM0BHA5gfwD3LVPhfhON9yknAzie5M39hh5ntIUXiKTNABzRCGOcVZjPUR1G8gPzOfTJR72wApEUucVt1FEAHjA5ElsmCMTTrv1J/jDhM1emCykQSTEH6lMAth9JNX4JIL5MVwD4NYBrANwKIB6txn/v/HdMCZEUExY3BPBgAPFSMj4r//uRK83v2mIk+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lVtYe+WwfGCuX3ffWgOem83a0AaWEkIR+eEzB6QCSEhHJ3DMetrkPW5qXy6RThmAEcoQCquJIRjJnCEA6QCJIRjRnCEBKQgJIRjZnCEBaQAJIRjhnCEBmQBkt0AnrJCfgnHCuK1bhriNu+yJKSvRVm1FA8khKP1Gb7i+MIDklaS/QGMhYRwrDj5ejAnIAtZUtUr7FNsAxJ3mYi8YkA7NulcAQKyLoHps85v3+SU63cAzl/ly7idz5dwwycgm6RcVY8A8FQARwK4DcAvROTWcDMkeMAEJPgEYPjLFSAgnCFUYIkCBITTgwoQEM4BKuBTgCuITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",Cm=Ye({name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return ym},loading(){return Am},success(){return Un}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}}),cA="",km={key:0},bm={key:0,class:"top-tipss-text"},Em={class:"top-tipss-status"},wm={key:0,class:"top-tipss-loadinig"},Nm=["src"],Tm={key:0,class:"top-tipss-status-text"},Im={key:1,class:"top-tipss-success"},Bm=["src"],xm={key:0,class:"top-tipss-status-text"},Sm={key:2,class:"top-tipss-error"},Dm=["src"],Pm={key:0,class:"top-tipss-status-text"};function Mm(e,t,i,n,r,o){return e.show?(s.openBlock(),s.createElementBlock("div",km,[e.statusTips?(s.openBlock(),s.createElementBlock("div",{key:1,class:"top-tipss",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[s.createElementVNode("div",Em,[e.type=="loading"?(s.openBlock(),s.createElementBlock("div",wm,[s.createElementVNode("img",{src:e.loading},null,8,Nm),e.text?(s.openBlock(),s.createElementBlock("div",Tm,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.type=="success"?(s.openBlock(),s.createElementBlock("div",Im,[s.createElementVNode("img",{src:e.success},null,8,Bm),e.text?(s.openBlock(),s.createElementBlock("div",xm,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.type=="error"?(s.openBlock(),s.createElementBlock("div",Sm,[s.createElementVNode("img",{src:e.error},null,8,Dm),e.text?(s.openBlock(),s.createElementBlock("div",Pm,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])],4)):(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-tipss",style:s.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[e.text?(s.openBlock(),s.createElementBlock("div",bm,s.toDisplayString(e.text),1)):s.createCommentVNode("",!0)],4)),s.createElementVNode("div",{class:"top-tipss-mask",style:s.normalizeStyle(e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])):s.createCommentVNode("",!0)}const it=oe(Cm,[["render",Mm],["__scopeId","data-v-239e459d"]]),Vm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFMKUoExIIvwvGM6U1gqoSOHwIDKyAYb1gdDXIBYQZ+1TA0EqP+PuN8NFG3MqFSEvqYfkGWLkRXvgAGlogFzqQBVSHshDQWjZbeB/DPF3CL+uuUKu2smk6dleYtPMAPWQDFjlwosqbbVUGJhvNJA1fDRQ18libI0xTAdszCwf0Qx1QgxrTB0ZUoQSc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A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Om=Ye({name:"attchViews",components:{TopTips:it,PreviewImage:ss,PreView:Fr,TopPopup:Fe},props:{request:{type:Function,defalut:()=>{}},limit:{type:[Number,String],default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return Vm},del(){return jr},doc(){return Qr},file(){return Ur},image(){return _r},pdf(){return Gr},xls(){return qr},zip(){return zr}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let n=0,r=this.haveCount>i.length?i.length:this.haveCount;try{for(let o=0;o<r;o++)if(this.extension.includes(i[o].name.substring(i[o].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[o]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.name==this.filesArr[c].name&&n++,this.filesArr[c].name.includes(`(${n})`)&&n++,n>0){let m=l.name.lastIndexOf(".");l.name=`${l.name.substring(0,m)} (${n}) .${l.name.substring(l.name.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[o].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),dA="",Lm={class:"attch-upload"},Rm={key:0,class:"attch-upload-mask"},vm={class:"attch-upload-body"},Fm={class:"upload-header"},jm={class:"upload-header-title"},Qm={key:0,class:"upload-header-title--re"},Um={class:"upload-header-upload"},_m=["src"],Gm={class:"upload-body"},qm={key:0,class:"upload-list"},zm={class:"list-items-icon"},Jm=["src"],Hm=["src"],Km=["src"],Wm=["src"],Ym=["src"],Zm=["src"],Xm={class:"list-items-info"},$m={class:"info-name"},ef={class:"info-attribute"},tf={class:"info-attribute-size"},sf=["onClick"],nf={key:0,class:"list-items-operation"},rf=["onClick"],of=["src"];function af(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("PreviewImage"),c=s.resolveComponent("PreView"),m=s.resolveComponent("TopPopup");return s.openBlock(),s.createElementBlock("div",Lm,[e.buttonLoading?(s.openBlock(),s.createElementBlock("div",Rm)):s.createCommentVNode("",!0),s.createElementVNode("div",vm,[s.createElementVNode("div",Fm,[s.createElementVNode("div",jm,[t[3]||(t[3]=s.createTextVNode(" \u9644\u4EF6 ",-1)),e.requires?(s.openBlock(),s.createElementBlock("span",Qm,"*")):s.createCommentVNode("",!0)]),s.createElementVNode("div",Um,[e.onlyShow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[s.createElementVNode("img",{src:e.addFile},null,8,_m),t[4]||(t[4]=s.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ",-1))]))])]),s.createElementVNode("div",Gm,[e.filesArr.length>0?(s.openBlock(),s.createElementBlock("div",qm,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.filesArr,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:"list-items",key:u.uuid},[s.createElementVNode("div",zm,[e.xlsIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Jm)):e.imgIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Hm)):u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Km)):e.docIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Wm)):e.zipIcon.includes(u.name.substring(u.name.lastIndexOf(".")+1).toLowerCase())?(s.openBlock(),s.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Ym)):(s.openBlock(),s.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Zm))]),s.createElementVNode("div",Xm,[s.createElementVNode("div",$m,s.toDisplayString(u.name),1),s.createElementVNode("div",ef,[s.createElementVNode("span",tf,s.toDisplayString(u.fileSize<1024?u.fileSize:u.fileSize/1024>1024?parseFloat((u.fileSize/1024/1024).toFixed(2)):parseFloat((u.fileSize/1024).toFixed(2)))+s.toDisplayString(u.fileSize<1024?"b":parseFloat((u.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),s.createElementVNode("span",{class:"info-attribute-views",onClick:y=>e.viewFile(u,p)}," \u9884\u89C8 ",8,sf)])]),e.onlyShow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",nf,[s.createElementVNode("div",{onClick:y=>e.handleDel(p,u),class:"list-items-operation-img"},[s.createElementVNode("img",{src:e.del},null,8,of)],8,rf)]))]))),128))])):s.createCommentVNode("",!0)])]),s.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),s.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=u=>e.visible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),s.createVNode(m,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=u=>e.visibleS=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:s.withCtx(()=>[e.visibleS?(s.openBlock(),s.createBlock(c,{key:0,file:e.fileUrl},null,8,["file"])):s.createCommentVNode("",!0)]),_:1},8,["visible"])])}const $t=oe(Om,[["render",af],["__scopeId","data-v-69217b12"]]),pA="",lf={name:"nf-flow",components:{attchViews:$t},props:{isHistory:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Ma,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{my(e){return e.comments[e.comments.length-1].userId||""},handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},cf={type:"flex",class:"process-flow"},df=["timestamp"],pf={key:0,class:"flow-item-history-icon"},hf={key:1,class:"flow-item-isActive-icon"},uf={key:2},mf={key:3},ff={class:"flow-name"},gf={class:"flow-time"},yf={key:4},Af={class:"flow-name"},Cf={class:"flow-time"},kf={class:"flow-node"},bf={key:5,class:"flow-time"},Ef={class:"comment-user"},wf={key:1,style:{color:"gray","font-size":"12px"}},Nf={class:"comment-type"},Tf={class:"comment-user"},If={key:0,style:{color:"gray","font-size":"12px"}},Bf={key:7,class:"flow-time"},xf={class:"p-file"},Sf=["onClick"],Df=["onClick"];function Pf(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",cf,[s.createElementVNode("div",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.getColors(i.flowList),(a,l)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[["candidate","sequenceFlow"].includes(a.historyActivityType)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:a.id,timestamp:a.endTime||a.createTime,placement:"top",class:s.normalizeClass(["flow-item",i.isHistory?"flow-item-history":"",i.isActive?"flow-item-isActive":""])},[i.isHistory?(s.openBlock(),s.createElementBlock("div",pf,[...t[1]||(t[1]=[s.createElementVNode("svg",{t:"1766388445844",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23729"},[s.createElementVNode("path",{d:"M664.064 162.304c-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.68-4.608-14.336-6.144-21.504-9.728z m223.744 386.56c7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-2.56 16.384-4.096 24.576-6.144 6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.656 1.024-15.872 4.096-23.04z m-302.592-462.848c37.376 7.168 74.752 18.432 111.616 36.352 1.024-1.024 3.072 0 4.096-1.536-2.048-1.024-4.096 0.512-6.144-1.024 2.56-4.096 5.632-3.584 8.704-4.608-1.536-5.632-7.168-0.512-9.728 0-0.512 1.536-0.512 2.56-1.024 3.584-1.536-1.024-3.072 0-4.608-2.048 1.024-3.584 5.12-2.56 7.168-4.608-1.024-0.512 0.512-1.536 0-2.048-35.84-15.872-72.192-28.16-108.032-34.304-1.024 2.048 0.512 4.608 2.048 6.656 1.024 0.512 3.072-1.024 2.56 0-1.024 0.512 1.024 1.536 0 2.048-2.56-0.512-4.608 1.024-6.656 1.536zM329.728 835.584c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.632 6.656 7.68 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m174.08 48.128c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.704-3.072 16.384-4.096 24.576-6.656zM82.432 485.888c-3.072-0.512-6.144-3.072-10.24-2.048-3.072 38.912 0 81.92 10.24 123.392 2.048-2.56 3.584-6.144 7.168-6.144 0-1.536 0.512-2.56 1.536-4.096-7.68-37.376-9.728-74.24-8.704-111.104zM695.808 829.44c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.144 7.168 10.24 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656z m-256-749.056c1.536 1.024 4.096-1.536 3.584 0.512 1.024 1.536-1.536 2.56-0.512 4.096 39.424-4.096 79.36-5.632 118.272-1.024 3.584-3.072 7.68-6.144 10.752-9.216-9.216-2.56-21.504-3.072-32.256-4.608-10.752-1.024-22.016-1.024-32.768-1.024-22.016 0.512-44.544 1.536-67.072 5.632 0 0-0.512-0.512-0.512 0 1.536 1.536-1.024 3.584 0.512 5.632zM112.64 351.232c14.848-38.4 35.328-75.776 64.512-111.616 28.672-35.84 68.608-71.68 109.568-96.256 41.472-25.088 81.92-40.96 122.368-50.688 2.56-4.096 6.144-8.704 7.68-13.312-6.656 2.048-14.336 2.048-19.968 6.144-7.168-1.024-14.848 3.584-22.016 5.12-7.68 2.048-14.848 4.608-22.528 7.68-14.848 5.632-30.208 12.288-45.056 20.48-30.72 16.384-60.928 35.84-90.624 62.976-89.6 81.408-126.464 172.544-141.312 263.168-0.512 1.536 1.024 2.048 1.024 2.56-2.048 2.048-1.536 4.608-2.048 6.656 1.536 1.536 4.608 3.072 5.12 4.608-1.024 1.536-3.072 3.584-4.096 4.096-2.048-1.024 1.024-2.56-0.512-3.584-1.536 2.56-1.536 7.168-1.536 10.752 0 3.072-2.048 8.192 0.512 9.728 4.608-1.024 0-5.12 0-7.68 4.096-1.536 6.144-4.096 9.728-5.632 3.584-9.728 2.56-19.456 5.12-29.184 1.024-9.728 3.584-18.944 5.632-29.184 5.12-18.432 10.24-37.888 18.432-56.832z m-31.744 108.544c1.024 0 2.56 1.024 2.56 2.048-1.536 1.536-2.048 0-2.56-2.048z m715.776-268.288c29.184 25.088 59.904 62.976 80.384 96.256 41.984 68.096 58.368 134.144 63.488 199.168 3.072 0 6.656 2.56 10.752 5.12 2.048-2.56 0-8.704 0.512-12.288-0.512-4.096-0.512-8.704-1.536-12.8-0.512-8.704-1.536-17.408-3.072-25.6-2.56-17.408-6.656-34.816-11.776-52.224-10.752-34.304-24.576-70.144-47.104-105.472-20.48-34.304-53.76-74.752-84.48-101.376-31.232-28.16-62.976-48.64-95.232-65.024 0 0-0.512-0.512-0.512 0 1.024 4.096-1.024 8.192-1.024 12.288 30.208 14.848 60.416 34.816 89.6 61.952z m24.576 513.024c6.656 4.096 14.336 6.656 20.992 10.24 3.072-6.144 1.536-15.36 4.096-22.528 7.168-5.12 13.312-9.728 18.944-15.36-7.68-2.048-15.36-4.096-23.04-7.68-3.584-6.144-5.632-12.288-9.216-18.432-6.144 5.12-11.776 11.264-16.896 16.896-8.704 1.536-16.896 1.024-26.112 3.584 5.12 6.656 7.168 10.752 12.288 17.92-2.048 7.68-5.632 14.848-5.632 22.016 8.192-3.072 16.384-4.608 24.576-6.656zM701.952 126.464c0-0.512-1.024-3.072-2.048-2.56 0.512 0 0 0.512-0.512 1.536 0.512 0 1.536 0.512 2.56 1.024zM417.792 68.608c-0.512 0-1.536-2.048-2.56-2.56-1.024-4.096 4.096-7.68 1.024-12.288-1.024-0.512-2.048 0-3.072 0 0.512 5.632-2.56 11.776-3.072 17.408 2.56-1.024 6.144-0.512 7.68-2.56z m12.8 19.456c-1.536-4.096 2.56-7.68 1.536-11.776-3.584 0.512-7.168 0.512-10.24 3.072 0 2.56-0.512 5.12-1.536 7.68-2.048 1.024-2.56 2.56-2.048 4.096 4.608-1.536 8.192-2.048 12.288-3.072z m-30.72-29.184c2.56-0.512 3.584 0.512 5.12 2.048 3.584-2.048 2.56-6.656 3.584-9.216-6.144 1.536-12.288 2.56-19.456 5.12-2.048 7.168-6.144 13.824-5.632 21.504 4.096-1.536 8.192-2.048 12.288-4.096 1.536-4.608 2.048-10.24 4.096-15.36z m28.672 8.192c-0.512-1.024-1.536-3.584-3.072-3.072 0 1.536-1.536 2.56-1.024 4.608 1.536-1.024 2.56 0 4.096-1.536z m110.592 56.832c-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.024-7.68 4.096-15.36 4.096-22.528z m44.032-58.368c6.144-4.608 12.288-10.24 16.384-15.36-16.896-4.608-34.304-5.632-51.2-7.168-1.536 0.512-3.072 1.536-4.608 2.048-1.536-1.024 0-1.536-1.024-2.56-30.72-2.56-62.464-2.048-93.696 2.56-0.512 2.56-4.608 5.12-5.632 8.192 0 1.536 3.072 3.072 2.048 4.608-2.56 3.072-4.608 0-7.168 2.56-1.536 2.048-1.024 4.096-2.56 6.144 49.664-7.68 98.816-7.68 147.456-1.024z m358.4 432.128c2.56 0.512 5.632 4.096 8.192 3.584 0.512-2.048 2.048-2.56 2.048-4.096-3.584-1.024-7.168-4.608-10.752-6.656 0.512 2.56-0.512 5.12 0.512 7.168z m-468.992 286.208c0.512-1.536 2.56-3.072 4.096-3.072 0-3.072-0.512-4.608-2.048-6.656-32.768-5.632-65.024-16.896-96.768-34.816-1.536 3.072-3.584 6.144-3.072 9.728 31.744 18.944 64.512 29.696 97.792 34.816z m-311.808-252.928c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.24-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 11.776 10.24 17.92z m505.344 210.944c-3.072 0-6.656-3.584-8.192-6.656-14.848 9.728-28.672 15.872-43.52 23.04 0.512 0.512 0 0.512 0.512 1.024 0 3.584-3.072 6.656-3.584 10.752 17.92-7.168 37.376-15.36 54.784-28.16zM243.712 347.136c-5.632-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 6.144 6.656 12.288 10.24 18.432 6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.56 16.896-3.072 25.6-5.632z m351.744 417.28c-36.864 12.288-73.728 14.336-109.568 11.264 0.512 3.072 1.024 6.144 3.072 9.728 34.816 4.608 70.144 1.024 106.496-10.24 1.024-3.584 1.536-7.168 0-10.752z m-229.376-20.48c1.536-3.072 2.56-7.168 3.072-10.24-6.144-4.096-12.8-8.704-18.944-13.824-3.584-1.024-8.192 3.072-6.656 7.168 7.168 7.68 14.848 11.776 22.528 16.896z m612.864-176.64c1.024-14.848 2.56-29.696 2.56-45.056-1.536-2.56-1.536-4.608-2.048-6.656-5.632-6.144-11.776-7.68-17.92-9.216 1.536 55.808-8.704 110.08-26.112 164.864 5.632 2.048 10.752 5.12 16.896 7.68 12.8-34.816 21.504-69.12 25.088-104.448 1.536-1.536-1.536-1.536-0.512-3.072 0-2.048 1.536-2.048 2.048-4.096z m-368.64 386.048c-136.192 26.112-267.776 1.536-392.192-100.864 1.024 8.192-1.536 16.384 0 25.6 21.504 17.408 43.008 31.744 65.536 44.544 22.528 11.776 44.544 23.552 67.584 30.208 3.072 0 4.608-5.12 7.168-5.12 3.072 3.072 7.168 6.656 6.144 10.752 10.752 3.584 20.992 6.144 31.232 9.216 5.12 1.024 10.24 2.56 15.36 3.584 5.632 1.024 10.752 3.584 15.872 2.048 1.024-2.048-1.536-3.072-1.536-5.12 3.072-3.584 6.656-7.68 10.24-6.656 0.512 2.048 1.536 4.608 1.024 6.144-4.096 1.536-5.632 5.12-8.192 7.168 16.896 3.072 34.304 5.632 51.2 6.656-0.512-3.072 4.096-5.12 5.632-7.68 6.656 2.048 13.312 1.536 19.456 4.096-0.512 1.536-0.512 3.072-1.024 4.608 13.824 1.536 27.136 0 40.96-0.512 1.024-2.048 1.536-1.536 3.072-1.536 0.512-2.56-1.536-6.144 0-9.216 3.584-0.512 7.68 0 9.728 3.072-2.048 2.56 0 4.096 0 7.168 15.872-1.024 31.744-3.584 47.616-7.168-1.536-4.096 1.024-8.192 0-11.776 1.536-0.512 2.56 0 4.096-1.536 2.56-2.56 0-5.12 1.024-7.68z m145.408-327.68s0-0.512 0 0l-1.024 1.024c-5.12 12.288-14.848 25.088-19.968 36.352-0.512 2.048-2.56 1.024-3.072 2.56-14.336 19.968-32.768 39.424-55.808 57.344 1.536 1.536 2.56 2.56 3.072 4.096 1.024 1.536 0 5.12 1.024 5.12 38.912-29.184 65.536-65.024 81.92-98.304-1.024-2.56-3.584-7.168-6.144-8.192zM264.704 409.088c7.68-20.992 19.456-40.96 34.816-61.44-1.024-4.096 0.512-7.68-0.512-11.264-1.536 0.512-2.56 0-4.096 0.512-18.432 23.552-31.744 47.616-41.472 71.68 1.536 1.024 1.536 2.56 2.048 3.584-1.536 11.264-5.632 23.04-9.728 34.304-1.024 1.024-3.584 2.048-3.072 4.608-0.512 1.024-1.024-1.536-1.536 0-4.096 14.848-5.632 29.696-6.656 45.056v22.528c1.024 8.192-0.512 15.36 2.56 23.552 2.56 2.048 5.632 2.048 8.704-1.024 1.024-7.68-1.024-15.872-1.024-23.04-11.264-3.584-11.264-20.48 0.512-22.528 0-4.608 2.048-9.728 0.512-13.824 2.048-3.584 1.536-10.752 3.584-15.872 1.024-5.632 1.536-11.776 3.584-17.408 2.048-11.264 5.632-23.04 10.24-33.792 0.512-1.024 0-2.56 0-3.072 0.512-1.024 1.024-1.536 1.536-2.56z m61.44-169.984c6.144-5.632 11.264-11.776 16.384-17.92 8.704-2.048 16.896-2.56 25.6-5.12-6.144-6.144-8.192-10.752-13.312-16.896 1.536-7.68 4.608-14.848 4.096-22.016-8.192 3.072-15.872 5.12-24.064 7.68-7.168-3.584-14.336-5.632-21.504-9.216-2.56 6.144-0.512 15.36-3.072 22.528-6.656 5.12-12.8 10.752-17.92 16.384 7.68 1.536 15.872 3.072 23.552 6.656 4.096 5.632 7.168 12.288 10.24 17.92z m201.728 4.096c28.16 1.536 55.808 8.704 82.944 18.432 2.56-1.024 5.632-4.096 8.192-6.656-29.696-12.288-59.392-19.968-90.112-21.504-1.536 2.048-1.024 6.144-1.024 9.728z m-172.032 39.936c-3.584 1.024-7.68 1.536-9.216 5.632 2.56 0.512-1.536 7.168-4.096 4.608 1.024-1.536 3.584-2.56 4.096-4.096-4.096-1.024-9.728 6.144-12.288 9.216-1.024-1.536-2.56 0-3.584 0.512-9.728 8.704-17.92 16.896-25.6 25.088 2.048 2.56 3.584 6.656 5.12 9.728 9.728-10.752 20.992-20.992 32.256-31.232 0.512-1.024-2.56 0-2.048-1.024 1.024-1.536 3.072-2.048 3.584-3.584 0.512-0.512-3.072 0.512-2.56-0.512 2.048-1.024 3.584-4.096 5.12-3.584-2.56 3.072-1.024 3.584-1.536 7.168 52.736-40.448 102.4-54.272 152.064-57.344 4.096-3.072 5.12-6.656 4.608-10.752-47.104 2.56-94.208 13.824-143.36 46.08-1.024 1.024-0.512 2.56-2.56 4.096z m433.664 268.288c1.536-12.288 3.072-24.576 3.072-36.864 0.512-6.144 0.512-12.288 0-18.432-1.024-6.656 1.536-12.8-3.584-18.944-2.56-0.512-4.096-1.024-6.656 1.024-0.512 0.512-0.512 1.024-1.024 1.536-0.512 11.776 1.536 23.552 1.024 35.328s-1.536 23.552-3.072 35.328c-3.584 23.552-10.752 46.08-19.968 69.12 3.072 0 6.144 2.048 8.704 4.096 10.24-23.552 16.896-47.616 21.504-72.192zM367.104 202.24c0.512-1.024-1.024-2.56-1.024-2.56 0 0.512 0 0.512-0.512 1.024 0.512 0.512 1.024 2.048 1.536 1.536z m299.52 91.136c2.048-0.512 3.072 0 4.608-1.536 1.024-2.048 1.536-4.096 1.024-6.144-10.24-8.704-20.48-15.36-31.744-19.968 0.512 3.584-0.512 7.168-0.512 10.752 9.216 5.12 17.92 11.264 26.624 16.896z m-38.4 642.048c1.024 1.536-1.536 5.12-0.512 4.096 40.448-9.728 80.896-27.136 121.856-53.248-1.024-1.536-3.072-3.072-2.048-4.096 1.024-0.512 2.048 0.512 3.072 0-1.024-1.536-3.072-3.584-3.584-5.12 1.024-1.024 3.584 1.024 3.072-0.512-1.024-0.512-1.536-1.536-2.048-2.56-44.032 27.648-87.552 45.056-130.048 56.32-2.048 2.56-3.584 5.12-6.144 7.68-1.536-1.536-0.512-3.584-2.56-4.608-8.704-1.024-18.432 3.072-27.648 3.584-9.728 1.024-18.944 2.56-28.16 3.072-18.432 1.536-36.352 2.56-54.784 1.536-36.352-1.024-72.192-7.68-108.032-17.92-71.168-22.528-140.8-60.416-207.36-137.728-1.536-1.536-4.096-5.632-6.144-7.168-3.584-0.512-6.144 3.584-9.216 3.072-0.512-5.12 0-10.24-0.512-15.872-38.4-52.736-59.392-103.936-72.704-154.624-2.56-1.024-5.12-5.12-9.216-5.632-1.536 1.536-2.56 2.048-3.072 3.072 1.024 1.536 2.048-1.024 2.56 0-1.536 1.536-1.024 2.048-1.024 3.584 14.336 58.368 40.96 119.808 90.624 180.224 67.072 79.36 141.824 120.32 216.064 142.848 74.752 21.504 151.552 24.064 229.376 5.632 0.512-2.048 4.608-7.68 8.192-5.632z m298.496-269.312c18.432-52.736 27.648-105.984 25.6-160.768-1.536 0.512-4.608 1.024-2.56-1.024-3.072 1.536-5.12-0.512-8.192-1.024 0.512 118.272-34.816 237.568-155.136 341.504-0.512 2.56 0.512 5.632-1.024 8.704-1.024 0-2.56 1.024-3.584 1.024-2.048-0.512-2.048-1.536-3.072-3.584-5.12 4.096-10.24 7.68-15.872 11.776-1.024 2.56-2.56 7.168-5.12 4.608 0.512-0.512 2.048-1.024 1.536-1.536-3.584 3.072-7.168 5.12-10.752 7.68 1.024 2.048 0.512 3.584 2.048 5.12-2.048 1.024 0.512 3.072 0.512 4.608 0 1.024-2.56 0-0.512 1.536 18.944-10.752 40.96-28.672 59.392-45.056 57.856-53.248 92.672-111.104 114.688-169.472 0-1.024-2.048-1.024-1.024-2.56 1.536-1.536 2.048 0 3.072-1.536z m-167.936 210.944c-0.512-1.024 1.024-1.536 2.048-2.56 0 1.024-1.024 1.536-2.048 2.56z m0-5.12c0-1.536 3.072-2.56 4.096-4.096-0.512 2.048-2.048 5.12-4.096 4.096z m125.952-122.88c-1.024 0.512-1.024 0-1.536-1.536 1.024-1.024 1.536-0.512 2.56-1.024 0.512 1.024-1.536 1.536-1.024 2.56z m0-14.336c-0.512 0.512-1.024-1.024-1.536-0.512-1.024-1.024 1.536-1.536 2.048-3.072 1.024 1.536 0 2.56-0.512 3.584zM128 745.984c-22.016-37.376-38.4-74.24-48.128-110.592-20.992-72.704-23.04-143.36-9.728-212.48s41.984-136.704 95.744-202.24c26.624-32.256 61.952-64 99.328-88.576s73.728-40.448 110.08-52.224c4.096-6.656 4.096-13.824 3.072-20.992-55.808 16.384-113.664 44.032-170.496 92.16-72.704 61.44-114.176 132.096-139.264 201.728 4.608 8.704 3.072 18.432-8.192 25.6-3.072 12.288-7.168 24.064-8.704 36.352 1.024 1.536 3.072 0.512 2.048 2.56-1.024 0-1.536-1.536-2.048-1.536C46.08 442.368 43.52 469.504 43.008 496.64c-0.512 13.312-0.512 27.136 0.512 40.96 0.512 13.312 1.024 28.16 4.608 40.448 2.048-3.072 2.048-6.656 5.12-9.728 3.072 3.584 0.512 7.168-0.512 10.752l-0.512 8.704c0 2.048-3.072 1.024-3.072 2.56 1.536 9.728 3.584 19.456 6.144 29.184 5.632-1.536 11.264-2.56 16.896-8.192 0.512 3.584-3.072 4.608-3.584 7.168 1.024-1.024 2.56-3.584 4.096-2.56-0.512 3.584-1.024 7.68 1.536 10.752-1.024 3.072-5.12 3.584-7.168 6.656 0 3.072-1.536 5.632-5.12 8.192 15.872 57.856 46.592 119.296 96.768 178.176 7.68 8.192 17.408 18.432 25.6 27.136 4.608 3.584 8.192 8.192 12.8 11.776 2.048 2.56 4.608 4.096 6.656 6.144 1.024 1.024 2.048 2.048 3.072 2.56 0.512 0 1.024 1.536 1.536 1.024 0.512 1.024 1.536 2.048 1.024 0.512-1.024-0.512 2.048-1.536 2.56-2.048 1.536-5.632 1.024-12.288 4.608-16.896-32.256-27.136-65.024-66.56-88.576-103.936zM363.008 66.56c1.024 1.024-0.512 1.536 0 2.56-0.512 1.024-1.024-0.512-1.536-1.024l1.536-1.536z m-3.584 2.56c1.024 1.024 0 2.56 0.512 3.584-0.512 0.512-1.536-1.024-2.048-2.048l1.536-1.536zM65.024 610.816c-0.512-0.512-1.024-0.512-1.536-1.024 1.024-1.024 2.56-2.048 4.096-2.56 1.024 1.536-2.048 2.048-2.56 3.584z m135.68 243.2c-1.024 1.024-2.048 1.024-1.536 2.048-5.12-4.608-10.24-12.288-15.36-17.92 1.024-2.048 2.048 0 3.072-0.512 1.024 6.656 10.24 13.312 13.824 16.384z m404.992-781.824c1.536-0.512 3.072 0 4.096 1.024 3.072-0.512 5.632 1.536 8.192 1.536 6.144 1.536 11.776 3.072 17.408 4.608 11.264 3.584 22.528 6.656 33.792 11.264 22.528 8.192 44.544 18.944 66.56 31.232 43.008 25.088 88.576 61.44 126.976 110.08C931.84 319.488 955.392 408.064 961.024 491.52c6.656 1.536 12.288 6.656 18.944 8.704 1.536-12.8-1.024-26.624-2.048-38.912 0 2.56-1.536 4.608-4.608 3.072l4.608-3.584c-1.024-4.608 0.512-13.312-3.584-14.336 1.536-1.024 2.048-1.536 2.048-2.56-8.704-54.784-26.624-112.64-60.928-170.496-34.304-58.368-89.6-116.224-139.776-148.992-17.408-12.288-34.304-22.016-51.712-31.232-8.704-4.608-17.408-8.704-26.112-12.288-4.608-2.048-8.704-4.096-13.312-5.632-4.096-1.024-9.728-4.608-12.8-3.584-1.536-2.048-3.072-2.048-4.608-2.56-1.536-1.024-2.56 1.024-4.096 1.024-0.512-1.536 1.024-2.048-0.512-3.072-12.8-4.096-26.112-9.216-39.936-11.264 2.048 0.512-0.512 1.536-2.048 2.56-1.536 1.536-2.56-0.512-4.096 1.024-2.048 4.096-9.216 5.632-11.776 10.24-0.512 0.512 0 2.048-1.024 1.536-2.56 0.512 1.024 0 2.048 1.024z m367.616 386.56c1.024 1.536 1.024 2.56 0 3.584-1.536 0.512-2.56 0-3.584 0 0-1.024 2.56-2.56 3.584-3.584z m-4.096-2.048c0 1.024 0.512 2.048 0 3.072-1.536 1.024-2.56 1.024-3.584 0.512 0-1.536 2.56-2.048 3.584-3.584z m-4.096-3.072c0.512 1.024 0.512 2.56 0 3.072-1.536 1.024-2.56 0-3.072 0-0.512-1.024 2.048-1.536 3.072-3.072z m-303.616-383.488l1.024 1.024c-0.512 1.024-1.024 0-2.048 0.512 0-1.024 0.512-1.536 1.024-1.536z m270.848 611.328c2.048-1.536 3.072 1.536 6.144 1.024-1.536-2.56-4.096-4.096-5.12-7.168l-0.512 0.512c-10.752 30.72-28.672 61.44-46.592 92.672-27.136 37.376-59.392 74.24-102.4 107.008-10.752 7.168-20.992 14.848-30.72 20.992-1.536 1.024 0.512 2.048-0.512 2.56-0.512-0.512-1.024-1.536-1.536-0.512 1.536 0.512 1.536 3.584 2.048 5.12-1.024-0.512-2.56-3.072-4.096-4.608-40.96 25.6-80.896 40.448-120.32 51.712-0.512 2.56-4.096 5.632-1.536 8.704 2.56-2.048 7.168-12.8 12.288-10.24-1.024 7.68-11.264 12.8-11.776 20.48 5.12-1.024 10.752-2.048 16.384-4.608 1.536-2.048 4.096-6.656 7.68-6.144 2.048 0.512 0.512 3.072 2.048 4.096 46.592-14.336 95.232-37.376 142.848-73.216 36.864-28.16 68.608-60.928 91.648-92.16-1.536-1.536-4.096-1.024-6.144-3.584-0.512-3.584 2.048-7.68 1.024-11.264l3.072-2.56c1.024 2.56 4.608 5.12 6.144 3.072 1.024-3.584-0.512-7.68 1.024-10.752 4.096 0.512 8.192-2.56 12.288-3.584 1.024-5.12 0-9.728 1.536-14.848-0.512-3.584-1.536-6.656 0-9.728 5.632 1.024 3.072 9.216 5.632 13.824 12.8-20.48 22.528-40.96 31.232-61.44-3.584-3.584-12.8-8.192-11.776-15.36z m-183.296 231.936c-1.024-1.024-0.512-1.536-1.024-2.56 1.024 0 2.048 0.512 3.072 0 0.512 1.536-1.536 2.048-2.048 2.56z m-0.512-6.656c1.024-0.512 2.048 0 3.072 0 0.512 1.536 0.512 3.584 1.024 4.096-2.048 1.024-3.072-3.072-4.096-4.096z m-1.024-5.12c1.024-0.512 2.56 0 3.072 0 1.024 1.536 0.512 3.584 1.536 4.608-1.536 0-3.072-3.072-4.608-4.608z m137.216-123.904c-1.024 0.512-1.536 0-2.048-1.024 1.536-1.024 2.56-1.536 3.584-2.56-0.512 1.536-1.536 2.56-1.536 3.584z m-407.552-142.336l18.432 4.096","p-id":"23730",fill:"#cdcdcd"}),s.createElementVNode("path",{d:"M393.216 575.488l-108.032 61.44 27.648 48.128c3.584 6.656 8.704 8.192 15.36 4.096l88.064-49.664c3.072-1.536 5.12-4.096 6.656-7.68 1.024-4.096-3.072-15.872-12.288-34.816l19.456-4.096c10.24 23.04 14.848 37.888 13.824 44.032-2.048 6.144-6.656 11.776-13.312 15.872l-97.28 55.296c-14.336 8.192-26.112 4.608-34.816-10.24L245.76 606.72l16.896-9.728 13.312 24.064 91.136-51.712-23.552-41.472L227.328 593.92l-9.216-15.872 133.12-75.264 41.984 72.704zM439.808 531.456c-1.536 8.192-3.584 16.896-6.144 26.624l-15.872-14.848c6.656-29.696 7.168-60.416 0.512-91.648l19.968-1.536c3.072 15.872 4.608 31.744 4.096 47.616l66.56 117.76-16.896 9.728-52.224-93.696z m43.52-62.976c1.536 20.992 0.512 40.96-2.56 58.88l-19.968-7.68c5.12-25.088 4.096-55.808-2.56-91.136l18.944-5.632c1.536 7.68 3.072 15.872 4.096 25.6l72.192-40.96 9.216 16.384-56.32 31.744 14.336 25.088 49.152-28.16 9.216 15.872-49.152 28.16 14.848 25.6 49.664-28.16 9.216 15.872-49.664 28.16 22.528 39.424-16.896 9.728-70.144-122.368-6.144 3.584zM646.144 322.56c4.608 3.072 9.728 7.168 14.848 11.264l61.44-34.816 9.216 15.872-128 72.704 21.504 38.4c21.504 39.424 32.768 73.728 34.304 102.912l-19.456-4.096c-1.536-25.088-11.776-54.784-31.232-89.6l-30.72-54.272 65.024-36.864c-5.12-3.584-9.728-6.656-13.824-8.704l16.896-12.8zM640 433.152l-10.752-47.104 16.896-6.656 5.632 27.648 18.432-10.752c-3.072-10.752-6.144-22.016-10.752-33.28l16.896-7.168c4.096 10.24 7.168 20.48 9.728 30.72l63.488-35.84 8.192 14.848-67.584 38.912c0.512 2.56 1.536 7.68 2.56 14.848l58.88-33.28 7.68 13.312c2.048 12.8 0 26.624-6.144 41.984 12.8-0.512 28.16-3.072 45.056-6.656v17.408c-20.992 3.584-38.4 5.632-53.248 5.12-7.68 13.312-18.432 27.136-31.744 42.496l-14.848-9.216c11.264-12.8 20.48-24.064 27.648-34.816-12.288-2.048-23.04-5.12-31.232-9.728 0.512 25.6-3.584 48.64-12.8 69.632l-15.872-9.728c10.752-27.648 13.312-58.368 7.68-91.648l-33.792 18.944z m57.856-93.184c11.264 1.024 21.504 2.56 30.72 5.12l-5.12 16.896c-8.192-2.56-18.432-4.608-30.72-6.144l5.12-15.872z m3.584 92.672c9.216 4.608 19.968 7.168 32.768 8.192 5.632-11.264 8.704-22.016 8.704-31.744l-41.472 23.552z","p-id":"23731",fill:"#cdcdcd"})],-1)])])):s.createCommentVNode("",!0),i.isActive?(s.openBlock(),s.createElementBlock("div",hf,[...t[2]||(t[2]=[s.createStaticVNode('<svg viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-v-adf305b3><title data-v-adf305b3>\u91CD\u65B0\u6FC0\u6D3B</title><g id="\u91CD\u65B0\u6FC0\u6D3B" stroke="none" fill="none" fill-rule="evenodd" stroke-width="1" data-v-adf305b3><g id="\u7F16\u7EC4" fill="#0088FF" data-v-adf305b3><path d="M129.7,31.7 C129.2,32.9 129.6,34.7 129.1,36.1 C127.8,37.1 126.6,38.2 125.6,39.3 C127.1,39.6 128.7,39.9 130.2,40.6 C131,41.8 131.5,43 132.2,44.2 C133.4,43.1 134.4,41.9 135.4,40.7 C137.1,40.3 138.7,40.2 140.4,39.7 C139.2,38.5 138.8,37.7 137.8,36.4 C138.1,34.9 138.7,33.5 138.6,32.1 C137,32.7 135.5,33.1 133.9,33.6 C132.4,32.7 131.1,32.4 129.7,31.7 L129.7,31.7 Z M173.4,107.2 C174.8,106.2 176,105.3 177.1,104.2 C175.6,103.8 174.1,103.4 172.6,102.7 C171.9,101.5 171.5,100.3 170.8,99.1 C169.6,100.1 168.5,101.3 167.5,102.4 C165.8,102.7 164.2,102.6 162.4,103.1 C163.5,104.4 163.9,105.2 164.8,106.6 C164.4,108.1 163.7,109.5 163.7,110.9 C165.3,110.4 166.9,110.1 168.5,109.7 C169.8,110.5 171.3,111 172.6,111.7 C173.2,110.4 172.8,108.6 173.4,107.2 L173.4,107.2 Z M114.3,16.8 C121.6,18.2 128.9,20.4 136.1,23.9 C136.3,23.7 136.7,23.9 136.9,23.6 C136.5,23.4 136.1,23.7 135.7,23.4 C136.2,22.6 136.8,22.7 137.4,22.5 C137.1,21.4 136,22.4 135.5,22.5 C135.4,22.8 135.4,23 135.3,23.2 C135,23 134.7,23.2 134.4,22.8 C134.6,22.1 135.4,22.3 135.8,21.9 C135.6,21.8 135.9,21.6 135.8,21.5 C128.8,18.4 121.7,16 114.7,14.8 C114.5,15.2 114.8,15.7 115.1,16.1 C115.3,16.2 115.7,15.9 115.6,16.1 C115.4,16.2 115.8,16.4 115.6,16.5 C115.1,16.4 114.7,16.7 114.3,16.8 Z M64.4,163.2 C65.7,164 67.2,164.5 68.5,165.2 C69.1,164 68.8,162.2 69.3,160.8 C70.7,159.8 71.9,158.9 73,157.8 C71.5,157.4 70,157 68.5,156.3 C67.8,155.1 67.4,153.9 66.7,152.7 C65.5,153.7 64.4,154.9 63.4,156 C61.7,156.3 60.1,156.2 58.3,156.7 C59.4,158 59.8,158.8 60.7,160.2 C60.3,161.7 59.6,163.1 59.6,164.5 C61.2,163.9 62.8,163.6 64.4,163.2 L64.4,163.2 Z M98.4,172.6 C99.7,173.4 101.2,173.9 102.5,174.6 C103.1,173.4 102.8,171.6 103.3,170.2 C104.7,169.2 105.9,168.3 107,167.2 C105.5,166.8 104,166.4 102.5,165.7 C101.8,164.5 101.4,163.3 100.7,162.1 C99.5,163.1 98.4,164.3 97.4,165.4 C95.7,165.7 94.1,165.6 92.3,166.1 C93.3,167.4 93.7,168.1 94.7,169.6 C94.3,171.1 93.6,172.5 93.6,173.9 C95.3,173.3 96.8,173.1 98.4,172.6 L98.4,172.6 Z M16.1,94.9 C15.5,94.8 14.9,94.3 14.1,94.5 C13.5,102.1 14.1,110.5 16.1,118.6 C16.5,118.1 16.8,117.4 17.5,117.4 C17.5,117.1 17.6,116.9 17.8,116.6 C16.3,109.3 15.9,102.1 16.1,94.9 L16.1,94.9 Z M135.9,162 C137.2,162.8 138.7,163.3 140,164 C140.6,162.8 140.3,161 140.8,159.6 C142.2,158.6 143.4,157.7 144.5,156.6 C143,156.2 141.5,155.8 140,155.1 C139.3,153.9 138.9,152.7 138.2,151.5 C137,152.5 135.9,153.7 134.9,154.8 C133.2,155.1 131.6,155 129.8,155.5 C130.8,156.7 131.2,157.5 132.2,159 C131.8,160.5 131.1,161.9 131.1,163.3 C132.7,162.7 134.3,162.4 135.9,162 L135.9,162 Z M85.9,15.7 C86.2,15.9 86.7,15.4 86.6,15.8 C86.8,16.1 86.3,16.3 86.5,16.6 C94.2,15.8 102,15.5 109.6,16.4 C110.3,15.8 111.1,15.2 111.7,14.6 C109.9,14.1 107.5,14 105.4,13.7 C103.3,13.5 101.1,13.5 99,13.5 C94.7,13.6 90.3,13.8 85.9,14.6 C85.9,14.6 85.8,14.5 85.8,14.6 C86.1,14.9 85.6,15.3 85.9,15.7 L85.9,15.7 Z M22,68.6 C24.9,61.1 28.9,53.8 34.6,46.8 C40.2,39.8 48,32.8 56,28 C64.1,23.1 72,20 79.9,18.1 C80.4,17.3 81.1,16.4 81.4,15.5 C80.1,15.9 78.6,15.9 77.5,16.7 C76.1,16.5 74.6,17.4 73.2,17.7 C71.7,18.1 70.3,18.6 68.8,19.2 C65.9,20.3 62.9,21.6 60,23.2 C54,26.4 48.1,30.2 42.3,35.5 C24.8,51.4 17.6,69.2 14.7,86.9 C14.6,87.2 14.9,87.3 14.9,87.4 C14.5,87.8 14.6,88.3 14.5,88.7 C14.8,89 15.4,89.3 15.5,89.6 C15.3,89.9 14.9,90.3 14.7,90.4 C14.3,90.2 14.9,89.9 14.6,89.7 C14.3,90.2 14.3,91.1 14.3,91.8 C14.3,92.4 13.9,93.4 14.4,93.7 C15.3,93.5 14.4,92.7 14.4,92.2 C15.2,91.9 15.6,91.4 16.3,91.1 C17,89.2 16.8,87.3 17.3,85.4 C17.5,83.5 18,81.7 18.4,79.7 C19.4,76.1 20.4,72.3 22,68.6 Z M15.8,89.8 C16,89.8 16.3,90 16.3,90.2 C16,90.5 15.9,90.2 15.8,89.8 Z M155.6,37.4 C161.3,42.3 167.3,49.7 171.3,56.2 C179.5,69.5 182.7,82.4 183.7,95.1 C184.3,95.1 185,95.6 185.8,96.1 C186.2,95.6 185.8,94.4 185.9,93.7 C185.8,92.9 185.8,92 185.6,91.2 C185.5,89.5 185.3,87.8 185,86.2 C184.5,82.8 183.7,79.4 182.7,76 C180.6,69.3 177.9,62.3 173.5,55.4 C169.5,48.7 163,40.8 157,35.6 C150.9,30.1 144.7,26.1 138.4,22.9 C138.4,22.9 138.3,22.8 138.3,22.9 C138.5,23.7 138.1,24.5 138.1,25.3 C144,28.2 149.9,32.1 155.6,37.4 Z M160.4,137.6 C161.7,138.4 163.2,138.9 164.5,139.6 C165.1,138.4 164.8,136.6 165.3,135.2 C166.7,134.2 167.9,133.3 169,132.2 C167.5,131.8 166,131.4 164.5,130.7 C163.8,129.5 163.4,128.3 162.7,127.1 C161.5,128.1 160.4,129.3 159.4,130.4 C157.7,130.7 156.1,130.6 154.3,131.1 C155.3,132.4 155.7,133.2 156.7,134.6 C156.3,136.1 155.6,137.5 155.6,138.9 C157.2,138.3 158.8,138 160.4,137.6 L160.4,137.6 Z M137.1,24.7 C137.1,24.6 136.9,24.1 136.7,24.2 C136.8,24.2 136.7,24.3 136.6,24.5 C136.7,24.5 136.9,24.6 137.1,24.7 Z M81.6,13.4 C81.5,13.4 81.3,13 81.1,12.9 C80.9,12.1 81.9,11.4 81.3,10.5 C81.1,10.4 80.9,10.5 80.7,10.5 C80.8,11.6 80.2,12.8 80.1,13.9 C80.6,13.7 81.3,13.8 81.6,13.4 Z M84.1,17.2 C83.8,16.4 84.6,15.7 84.4,14.9 C83.7,15 83,15 82.4,15.5 C82.4,16 82.3,16.5 82.1,17 C81.7,17.2 81.6,17.5 81.7,17.8 C82.6,17.5 83.3,17.4 84.1,17.2 L84.1,17.2 Z M78.1,11.5 C78.6,11.4 78.8,11.6 79.1,11.9 C79.8,11.5 79.6,10.6 79.8,10.1 C78.6,10.4 77.4,10.6 76,11.1 C75.6,12.5 74.8,13.8 74.9,15.3 C75.7,15 76.5,14.9 77.3,14.5 C77.6,13.6 77.7,12.5 78.1,11.5 Z M83.7,13.1 C83.6,12.9 83.4,12.4 83.1,12.5 C83.1,12.8 82.8,13 82.9,13.4 C83.2,13.2 83.4,13.4 83.7,13.1 Z M105.3,24.2 C103.7,24.8 102.2,25.2 100.6,25.7 C99.2,25 97.8,24.6 96.4,23.9 C95.9,25.1 96.3,26.9 95.8,28.3 C94.5,29.3 93.3,30.4 92.3,31.5 C93.8,31.8 95.4,32.1 96.9,32.8 C97.7,34 98.2,35.2 98.9,36.4 C100.1,35.3 101.1,34.1 102.1,32.9 C103.8,32.5 105.4,32.4 107.1,31.9 C105.9,30.7 105.5,29.8 104.5,28.6 C104.7,27.1 105.3,25.6 105.3,24.2 L105.3,24.2 Z M113.9,12.8 C115.1,11.9 116.3,10.8 117.1,9.8 C113.8,8.9 110.4,8.7 107.1,8.4 C106.8,8.5 106.5,8.7 106.2,8.8 C105.9,8.6 106.2,8.5 106,8.3 C100,7.8 93.8,7.9 87.7,8.8 C87.6,9.3 86.8,9.8 86.6,10.4 C86.6,10.7 87.2,11 87,11.3 C86.5,11.9 86.1,11.3 85.6,11.8 C85.3,12.2 85.4,12.6 85.1,13 C94.8,11.5 104.4,11.5 113.9,12.8 Z M183.9,97.2 C184.4,97.3 185,98 185.5,97.9 C185.6,97.5 185.9,97.4 185.9,97.1 C185.2,96.9 184.5,96.2 183.8,95.8 C183.9,96.3 183.7,96.8 183.9,97.2 Z M92.3,153.1 C92.4,152.8 92.8,152.5 93.1,152.5 C93.1,151.9 93,151.6 92.7,151.2 C86.3,150.1 80,147.9 73.8,144.4 C73.5,145 73.1,145.6 73.2,146.3 C79.4,150 85.8,152.1 92.3,153.1 L92.3,153.1 Z M31.4,103.7 C32.6,102.6 33.6,101.4 34.6,100.2 C36.3,99.8 37.9,99.7 39.6,99.2 C38.4,98 38,97.2 37,95.9 C37.3,94.4 37.9,93 37.8,91.6 C36.2,92.2 34.7,92.6 33.1,93.1 C31.7,92.4 30.3,92 28.9,91.3 C28.4,92.5 28.8,94.3 28.3,95.7 C27,96.7 25.8,97.8 24.8,98.9 C26.3,99.2 27.9,99.5 29.4,100.2 C30.2,101.3 30.8,102.5 31.4,103.7 L31.4,103.7 Z M130.1,144.9 C129.5,144.9 128.8,144.2 128.5,143.6 C125.6,145.5 122.9,146.7 120,148.1 C120.1,148.2 120,148.2 120.1,148.3 C120.1,149 119.5,149.6 119.4,150.4 C122.9,149 126.7,147.4 130.1,144.9 Z M47.6,67.8 C46.5,66.6 46,65.7 45,64.5 C45.3,63 45.9,61.6 45.8,60.2 C44.2,60.8 42.7,61.2 41.1,61.7 C39.7,61 38.3,60.6 36.9,59.9 C36.4,61.1 36.8,62.9 36.3,64.3 C35,65.3 33.8,66.4 32.8,67.5 C34.3,67.8 35.9,68.1 37.4,68.8 C38.2,70 38.7,71.2 39.4,72.4 C40.6,71.3 41.6,70.1 42.6,68.9 C44.3,68.4 45.9,68.3 47.6,67.8 L47.6,67.8 Z M116.3,149.3 C109.1,151.7 101.9,152.1 94.9,151.5 C95,152.1 95.1,152.7 95.5,153.4 C102.3,154.3 109.2,153.6 116.3,151.4 C116.5,150.7 116.6,150 116.3,149.3 Z M71.5,145.3 C71.8,144.7 72,143.9 72.1,143.3 C70.9,142.5 69.6,141.6 68.4,140.6 C67.7,140.4 66.8,141.2 67.1,142 C68.5,143.5 70,144.3 71.5,145.3 Z M191.2,110.8 C191.4,107.9 191.7,105 191.7,102 C191.4,101.5 191.4,101.1 191.3,100.7 C190.2,99.5 189,99.2 187.8,98.9 C188.1,109.8 186.1,120.4 182.7,131.1 C183.8,131.5 184.8,132.1 186,132.6 C188.5,125.8 190.2,119.1 190.9,112.2 C191.2,111.9 190.6,111.9 190.8,111.6 C190.8,111.2 191.1,111.2 191.2,110.8 Z M119.2,186.2 C92.6,191.3 66.9,186.5 42.6,166.5 C42.8,168.1 42.3,169.7 42.6,171.5 C46.8,174.9 51,177.7 55.4,180.2 C59.8,182.5 64.1,184.8 68.6,186.1 C69.2,186.1 69.5,185.1 70,185.1 C70.6,185.7 71.4,186.4 71.2,187.2 C73.3,187.9 75.3,188.4 77.3,189 C78.3,189.2 79.3,189.5 80.3,189.7 C81.4,189.9 82.4,190.4 83.4,190.1 C83.6,189.7 83.1,189.5 83.1,189.1 C83.7,188.4 84.4,187.6 85.1,187.8 C85.2,188.2 85.4,188.7 85.3,189 C84.5,189.3 84.2,190 83.7,190.4 C87,191 90.4,191.5 93.7,191.7 C93.6,191.1 94.5,190.7 94.8,190.2 C96.1,190.6 97.4,190.5 98.6,191 C98.5,191.3 98.5,191.6 98.4,191.9 C101.1,192.2 103.7,191.9 106.4,191.8 C106.6,191.4 106.7,191.5 107,191.5 C107.1,191 106.7,190.3 107,189.7 C107.7,189.6 108.5,189.7 108.9,190.3 C108.5,190.8 108.9,191.1 108.9,191.7 C112,191.5 115.1,191 118.2,190.3 C117.9,189.5 118.4,188.7 118.2,188 C118.5,187.9 118.7,188 119,187.7 C119.5,187.2 119,186.7 119.2,186.2 L119.2,186.2 Z M147.6,122.2 C147.6,122.2 147.6,122.1 147.6,122.2 L147.4,122.4 C146.4,124.8 144.5,127.3 143.5,129.5 C143.4,129.9 143,129.7 142.9,130 C140.1,133.9 136.5,137.7 132,141.2 C132.3,141.5 132.5,141.7 132.6,142 C132.8,142.3 132.6,143 132.8,143 C140.4,137.3 145.6,130.3 148.8,123.8 C148.6,123.3 148.1,122.4 147.6,122.2 Z M51.7,79.9 C53.2,75.8 55.5,71.9 58.5,67.9 C58.3,67.1 58.6,66.4 58.4,65.7 C58.1,65.8 57.9,65.7 57.6,65.8 C54,70.4 51.4,75.1 49.5,79.8 C49.8,80 49.8,80.3 49.9,80.5 C49.6,82.7 48.8,85 48,87.2 C47.8,87.4 47.3,87.6 47.4,88.1 C47.3,88.3 47.2,87.8 47.1,88.1 C46.3,91 46,93.9 45.8,96.9 L45.8,101.3 C46,102.9 45.7,104.3 46.3,105.9 C46.8,106.3 47.4,106.3 48,105.7 C48.2,104.2 47.8,102.6 47.8,101.2 C45.6,100.5 45.6,97.2 47.9,96.8 C47.9,95.9 48.3,94.9 48,94.1 C48.4,93.4 48.3,92 48.7,91 C48.9,89.9 49,88.7 49.4,87.6 C49.8,85.4 50.5,83.1 51.4,81 C51.5,80.8 51.4,80.5 51.4,80.4 C51.5,80.2 51.6,80.1 51.7,79.9 L51.7,79.9 Z M63.7,46.7 C64.9,45.6 65.9,44.4 66.9,43.2 C68.6,42.8 70.2,42.7 71.9,42.2 C70.7,41 70.3,40.1 69.3,38.9 C69.6,37.4 70.2,36 70.1,34.6 C68.5,35.2 67,35.6 65.4,36.1 C64,35.4 62.6,35 61.2,34.3 C60.7,35.5 61.1,37.3 60.6,38.7 C59.3,39.7 58.1,40.8 57.1,41.9 C58.6,42.2 60.2,42.5 61.7,43.2 C62.5,44.3 63.1,45.6 63.7,46.7 L63.7,46.7 Z M103.1,47.5 C108.6,47.8 114,49.2 119.3,51.1 C119.8,50.9 120.4,50.3 120.9,49.8 C115.1,47.4 109.3,45.9 103.3,45.6 C103,46 103.1,46.8 103.1,47.5 Z M69.5,55.3 C68.8,55.5 68,55.6 67.7,56.4 C68.2,56.5 67.4,57.8 66.9,57.3 C67.1,57 67.6,56.8 67.7,56.5 C66.9,56.3 65.8,57.7 65.3,58.3 C65.1,58 64.8,58.3 64.6,58.4 C62.7,60.1 61.1,61.7 59.6,63.3 C60,63.8 60.3,64.6 60.6,65.2 C62.5,63.1 64.7,61.1 66.9,59.1 C67,58.9 66.4,59.1 66.5,58.9 C66.7,58.6 67.1,58.5 67.2,58.2 C67.3,58.1 66.6,58.3 66.7,58.1 C67.1,57.9 67.4,57.3 67.7,57.4 C67.2,58 67.5,58.1 67.4,58.8 C77.7,50.9 87.4,48.2 97.1,47.6 C97.9,47 98.1,46.3 98,45.5 C88.8,46 79.6,48.2 70,54.5 C69.8,54.7 69.9,55 69.5,55.3 L69.5,55.3 Z M154.2,107.7 C154.5,105.3 154.8,102.9 154.8,100.5 C154.9,99.3 154.9,98.1 154.8,96.9 C154.6,95.6 155.1,94.4 154.1,93.2 C153.6,93.1 153.3,93 152.8,93.4 C152.7,93.5 152.7,93.6 152.6,93.7 C152.5,96 152.9,98.3 152.8,100.6 C152.7,102.9 152.5,105.2 152.2,107.5 C151.5,112.1 150.1,116.5 148.3,121 C148.9,121 149.5,121.4 150,121.8 C152,117.2 153.3,112.5 154.2,107.7 L154.2,107.7 Z M71.7,39.5 C71.8,39.3 71.5,39 71.5,39 C71.5,39.1 71.5,39.1 71.4,39.2 C71.5,39.3 71.6,39.6 71.7,39.5 Z M130.2,57.3 C130.6,57.2 130.8,57.3 131.1,57 C131.3,56.6 131.4,56.2 131.3,55.8 C129.3,54.1 127.3,52.8 125.1,51.9 C125.2,52.6 125,53.3 125,54 C126.8,55 128.5,56.2 130.2,57.3 Z M122.7,182.7 C122.9,183 122.4,183.7 122.6,183.5 C130.5,181.6 138.4,178.2 146.4,173.1 C146.2,172.8 145.8,172.5 146,172.3 C146.2,172.2 146.4,172.4 146.6,172.3 C146.4,172 146,171.6 145.9,171.3 C146.1,171.1 146.6,171.5 146.5,171.2 C146.3,171.1 146.2,170.9 146.1,170.7 C137.5,176.1 129,179.5 120.7,181.7 C120.3,182.2 120,182.7 119.5,183.2 C119.2,182.9 119.4,182.5 119,182.3 C117.3,182.1 115.4,182.9 113.6,183 C111.7,183.2 109.9,183.5 108.1,183.6 C104.5,183.9 101,184.1 97.4,183.9 C90.3,183.7 83.3,182.4 76.3,180.4 C62.4,176 48.8,168.6 35.8,153.5 C35.5,153.2 35,152.4 34.6,152.1 C33.9,152 33.4,152.8 32.8,152.7 C32.7,151.7 32.8,150.7 32.7,149.6 C25.2,139.3 21.1,129.3 18.5,119.4 C18,119.2 17.5,118.4 16.7,118.3 C16.4,118.6 16.2,118.7 16.1,118.9 C16.3,119.2 16.5,118.7 16.6,118.9 C16.3,119.2 16.4,119.3 16.4,119.6 C19.2,131 24.4,143 34.1,154.8 C47.2,170.3 61.8,178.3 76.3,182.7 C90.9,186.9 105.9,187.4 121.1,183.8 C121.2,183.4 122,182.3 122.7,182.7 L122.7,182.7 Z M181,130.1 C184.6,119.8 186.4,109.4 186,98.7 C185.7,98.8 185.1,98.9 185.5,98.5 C184.9,98.8 184.5,98.4 183.9,98.3 C184,121.4 177.1,144.7 153.6,165 C153.5,165.5 153.7,166.1 153.4,166.7 C153.2,166.7 152.9,166.9 152.7,166.9 C152.3,166.8 152.3,166.6 152.1,166.2 C151.1,167 150.1,167.7 149,168.5 C148.8,169 148.5,169.9 148,169.4 C148.1,169.3 148.4,169.2 148.3,169.1 C147.6,169.7 146.9,170.1 146.2,170.6 C146.4,171 146.3,171.3 146.6,171.6 C146.2,171.8 146.7,172.2 146.7,172.5 C146.7,172.7 146.2,172.5 146.6,172.8 C150.3,170.7 154.6,167.2 158.2,164 C169.5,153.6 176.3,142.3 180.6,130.9 C180.6,130.7 180.2,130.7 180.4,130.4 C180.7,130.1 180.8,130.4 181,130.1 L181,130.1 Z M148.2,171.3 C148.1,171.1 148.4,171 148.6,170.8 C148.6,171 148.4,171.1 148.2,171.3 Z M148.2,170.3 C148.2,170 148.8,169.8 149,169.5 C148.9,169.9 148.6,170.5 148.2,170.3 Z M172.8,146.3 C172.6,146.4 172.6,146.3 172.5,146 C172.7,145.8 172.8,145.9 173,145.8 C173.1,146 172.7,146.1 172.8,146.3 Z M172.8,143.5 C172.7,143.6 172.6,143.3 172.5,143.4 C172.3,143.2 172.8,143.1 172.9,142.8 C173.1,143.1 172.9,143.3 172.8,143.5 L172.8,143.5 Z M25,145.7 C20.7,138.4 17.5,131.2 15.6,124.1 C11.5,109.9 11.1,96.1 13.7,82.6 C16.3,69.1 21.9,55.9 32.4,43.1 C37.6,36.8 44.5,30.6 51.8,25.8 C59.1,21 66.2,17.9 73.3,15.6 C74.1,14.3 74.1,12.9 73.9,11.5 C63,14.7 51.7,20.1 40.6,29.5 C26.4,41.5 18.3,55.3 13.4,68.9 C14.3,70.6 14,72.5 11.8,73.9 C11.2,76.3 10.4,78.6 10.1,81 C10.3,81.3 10.7,81.1 10.5,81.5 C10.3,81.5 10.2,81.2 10.1,81.2 C9,86.4 8.5,91.7 8.4,97 C8.3,99.6 8.3,102.3 8.5,105 C8.6,107.6 8.7,110.5 9.4,112.9 C9.8,112.3 9.8,111.6 10.4,111 C11,111.7 10.5,112.4 10.3,113.1 L10.2,114.8 C10.2,115.2 9.6,115 9.6,115.3 C9.9,117.2 10.3,119.1 10.8,121 C11.9,120.7 13,120.5 14.1,119.4 C14.2,120.1 13.5,120.3 13.4,120.8 C13.6,120.6 13.9,120.1 14.2,120.3 C14.1,121 14,121.8 14.5,122.4 C14.3,123 13.5,123.1 13.1,123.7 C13.1,124.3 12.8,124.8 12.1,125.3 C15.2,136.6 21.2,148.6 31,160.1 C32.5,161.7 34.4,163.7 36,165.4 C36.9,166.1 37.6,167 38.5,167.7 C38.9,168.2 39.4,168.5 39.8,168.9 C40,169.1 40.2,169.3 40.4,169.4 C40.5,169.4 40.6,169.7 40.7,169.6 C40.8,169.8 41,170 40.9,169.7 C40.7,169.6 41.3,169.4 41.4,169.3 C41.7,168.2 41.6,166.9 42.3,166 C36,160.7 29.6,153 25,145.7 L25,145.7 Z M70.9,13 C71.1,13.2 70.8,13.3 70.9,13.5 C70.8,13.7 70.7,13.4 70.6,13.3 L70.9,13 Z M70.2,13.5 C70.4,13.7 70.2,14 70.3,14.2 C70.2,14.3 70,14 69.9,13.8 L70.2,13.5 Z M12.7,119.3 C12.6,119.2 12.5,119.2 12.4,119.1 C12.6,118.9 12.9,118.7 13.2,118.6 C13.4,118.9 12.8,119 12.7,119.3 Z M39.2,166.8 C39,167 38.8,167 38.9,167.2 C37.9,166.3 36.9,164.8 35.9,163.7 C36.1,163.3 36.3,163.7 36.5,163.6 C36.7,164.9 38.5,166.2 39.2,166.8 L39.2,166.8 Z M118.3,14.1 C118.6,14 118.9,14.1 119.1,14.3 C119.7,14.2 120.2,14.6 120.7,14.6 C121.9,14.9 123,15.2 124.1,15.5 C126.3,16.2 128.5,16.8 130.7,17.7 C135.1,19.3 139.4,21.4 143.7,23.8 C152.1,28.7 161,35.8 168.5,45.3 C182,62.4 186.6,79.7 187.7,96 C189,96.3 190.1,97.3 191.4,97.7 C191.7,95.2 191.2,92.5 191,90.1 C191,90.6 190.7,91 190.1,90.7 L191,90 C190.8,89.1 191.1,87.4 190.3,87.2 C190.6,87 190.7,86.9 190.7,86.7 C189,76 185.5,64.7 178.8,53.4 C172.1,42 161.3,30.7 151.5,24.3 C148.1,21.9 144.8,20 141.4,18.2 C139.7,17.3 138,16.5 136.3,15.8 C135.4,15.4 134.6,15 133.7,14.7 C132.9,14.5 131.8,13.8 131.2,14 C130.9,13.6 130.6,13.6 130.3,13.5 C130,13.3 129.8,13.7 129.5,13.7 C129.4,13.4 129.7,13.3 129.4,13.1 C126.9,12.3 124.3,11.3 121.6,10.9 C122,11 121.5,11.2 121.2,11.4 C120.9,11.7 120.7,11.3 120.4,11.6 C120,12.4 118.6,12.7 118.1,13.6 C118,13.7 118.1,14 117.9,13.9 C117.4,14 118.1,13.9 118.3,14.1 L118.3,14.1 Z M190.1,89.6 C190.3,89.9 190.3,90.1 190.1,90.3 C189.8,90.4 189.6,90.3 189.4,90.3 C189.4,90.1 189.9,89.8 190.1,89.6 Z M189.3,89.2 C189.3,89.4 189.4,89.6 189.3,89.8 C189,90 188.8,90 188.6,89.9 C188.6,89.6 189.1,89.5 189.3,89.2 Z M188.5,88.6 C188.6,88.8 188.6,89.1 188.5,89.2 C188.2,89.4 188,89.2 187.9,89.2 C187.8,89 188.3,88.9 188.5,88.6 Z M129.2,13.7 L129.4,13.9 C129.3,14.1 129.2,13.9 129,14 C129,13.8 129.1,13.7 129.2,13.7 Z M182.1,133.1 C182.5,132.8 182.7,133.4 183.3,133.3 C183,132.8 182.5,132.5 182.3,131.9 L182.2,132 C180.1,138 176.6,144 173.1,150.1 C167.8,157.4 161.5,164.6 153.1,171 C151,172.4 149,173.9 147.1,175.1 C146.8,175.3 147.2,175.5 147,175.6 C146.9,175.5 146.8,175.3 146.7,175.5 C147,175.6 147,176.2 147.1,176.5 C146.9,176.4 146.6,175.9 146.3,175.6 C138.3,180.6 130.5,183.5 122.8,185.7 C122.7,186.2 122,186.8 122.5,187.4 C123,187 123.9,184.9 124.9,185.4 C124.7,186.9 122.7,187.9 122.6,189.4 C123.6,189.2 124.7,189 125.8,188.5 C126.1,188.1 126.6,187.2 127.3,187.3 C127.7,187.4 127.4,187.9 127.7,188.1 C136.8,185.3 146.3,180.8 155.6,173.8 C162.8,168.3 169,161.9 173.5,155.8 C173.2,155.5 172.7,155.6 172.3,155.1 C172.2,154.4 172.7,153.6 172.5,152.9 L173.1,152.4 C173.3,152.9 174,153.4 174.3,153 C174.5,152.3 174.2,151.5 174.5,150.9 C175.3,151 176.1,150.4 176.9,150.2 C177.1,149.2 176.9,148.3 177.2,147.3 C177.1,146.6 176.9,146 177.2,145.4 C178.3,145.6 177.8,147.2 178.3,148.1 C180.8,144.1 182.7,140.1 184.4,136.1 C183.7,135.4 181.9,134.5 182.1,133.1 L182.1,133.1 Z M146.3,178.4 C146.1,178.2 146.2,178.1 146.1,177.9 C146.3,177.9 146.5,178 146.7,177.9 C146.8,178.2 146.4,178.3 146.3,178.4 Z M146.2,177.1 C146.4,177 146.6,177.1 146.8,177.1 C146.9,177.4 146.9,177.8 147,177.9 C146.6,178.1 146.4,177.3 146.2,177.1 Z M146,176.1 C146.2,176 146.5,176.1 146.6,176.1 C146.8,176.4 146.7,176.8 146.9,177 C146.6,177 146.3,176.4 146,176.1 Z M172.8,151.9 C172.6,152 172.5,151.9 172.4,151.7 C172.7,151.5 172.9,151.4 173.1,151.2 C173,151.5 172.8,151.7 172.8,151.9 Z M93.2,124.1 L96.8,124.9" id="\u5F62\u72B6" fill-rule="nonzero" data-v-adf305b3></path><text id="\u91CD\u65B0\u6FC0\u6D3B" transform="translate(99.1901, 99.5228) rotate(-30) translate(-99.1901, -99.5228)" font-family="PingFangSC-Medium, PingFang SC" font-size="39" font-weight="400" letter-spacing="0.4" data-v-adf305b3><tspan x="20.3900543" y="113.522759" data-v-adf305b3>\u91CD\u65B0\u6FC0\u6D3B</tspan></text></g></g></svg>',1)])])):s.createCommentVNode("",!0),a.historyActivityType=="endEvent"?(s.openBlock(),s.createElementBlock("p",uf,[...t[3]||(t[3]=[s.createElementVNode("b",null,"\u6D41\u7A0B\u5DF2\u7ED3\u675F",-1)])])):a.historyActivityType=="startEvent"?(s.openBlock(),s.createElementBlock("p",mf,[s.createElementVNode("span",ff,s.toDisplayString(a.assigneeName||(a.comments&&a.comments.length>0?o.my(a):"")),1),t[4]||(t[4]=s.createTextVNode(" \u5728 ",-1)),s.createElementVNode("span",gf,s.toDisplayString(a.createTime),1),t[5]||(t[5]=s.createTextVNode(" \u53D1\u8D77\u4E86\u6D41\u7A0B ",-1))])):(s.openBlock(),s.createElementBlock("p",yf,[s.createElementVNode("span",Af,s.toDisplayString(a.assigneeName||(a.comments&&a.comments.length>0?o.my(a):"")),1),t[6]||(t[6]=s.createTextVNode(" \u5728 ",-1)),s.createElementVNode("span",Cf,s.toDisplayString(a.createTime),1),t[7]||(t[7]=s.createTextVNode(" \u5F00\u59CB\u5904\u7406 ",-1)),s.createElementVNode("span",kf,s.toDisplayString(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D"),1),t[8]||(t[8]=s.createTextVNode(" \u73AF\u8282 ",-1))])),a.historyActivityDurationTime?(s.openBlock(),s.createElementBlock("p",bf," \u4EFB\u52A1\u5386\u65F6 "+s.toDisplayString(a.historyActivityDurationTime),1)):s.createCommentVNode("",!0),a.comments&&a.comments.length>0?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:6},s.renderList(a.comments.filter(c=>c.action==="AddComment"),(c,m)=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:m},[m<1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("span",{class:s.normalizeClass(["comment-type",a.class])},s.toDisplayString(r.commentMap[c.type]||c.type),3),s.createElementVNode("span",Ef,s.toDisplayString(c.userId),1),t[9]||(t[9]=s.createTextVNode(": ",-1)),s.createElementVNode("span",null,s.toDisplayString(c.fullMessage),1),a.comments.filter(u=>u.action==="AddComment").length>1?(s.openBlock(),s.createElementBlock("span",{key:0,style:{color:"#1989fa",float:"right"},onClick:t[0]||(t[0]=(...u)=>o.handleClick&&o.handleClick(...u))},[s.createTextVNode(s.toDisplayString(r.toggleText)+" ",1),s.createElementVNode("i",{class:s.normalizeClass([r.isFlag?"arrow-up":"arrow-down"])},null,2)])):s.createCommentVNode("",!0),c.time&&r.isFlag?(s.openBlock(),s.createElementBlock("p",wf,s.toDisplayString(c.time),1)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),m>0&&r.isFlag?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("span",Nf,s.toDisplayString(r.commentMap[c.type]||c.type),1),s.createElementVNode("span",Tf,s.toDisplayString(c.userId),1),t[10]||(t[10]=s.createTextVNode(": ",-1)),s.createElementVNode("span",null,s.toDisplayString(c.fullMessage),1),c.time?(s.openBlock(),s.createElementBlock("p",If,s.toDisplayString(c.time),1)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0)],64))),128)):s.createCommentVNode("",!0),a.endTime&&a.historyActivityType!="startEvent"?(s.openBlock(),s.createElementBlock("p",Bf,"\u7ED3\u675F\u65F6\u95F4: "+s.toDisplayString(a.endTime),1)):s.createCommentVNode("",!0),s.createElementVNode("div",xf,[a.attachmentsFujian&&a.attachmentsFujian.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,onClick:c=>e.$emit("view",a.attachmentsFujian)}," \u67E5\u770B\u9644\u4EF6",8,Sf)):s.createCommentVNode("",!0),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?(s.openBlock(),s.createElementBlock("div",{key:1,onClick:c=>e.$emit("view",a.attachmentsQianzi)}," \u67E5\u770B\u7B7E\u5B57",8,Df)):s.createCommentVNode("",!0)])],10,df))],64))),256))])])}const Va=oe(lf,[["render",Pf],["__scopeId","data-v-adf305b3"]]),hA="",Mf={components:{processFlow:Va},inject:["request"],data(){return{visible:!1,curData:[],curName:"",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u6307\u5B9A\u56DE\u9000\u6D41\u7A0B",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},watch:{visible(e){e||this.$emit("close")}},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),Ma(t)},openDrawer(e,t){let i=t.filter(n=>n.historyActivityType=="userTask");this.curData=i.filter(n=>n.historyActivityId==e.id),this.curData,this.curName=this.curData.length?this.curData[0].historyActivityName:"",this.visible=!!(this.curData&&this.curData.length>0)},closeDrawer(){this.visible=!1}}};function Vf(e,t,i,n,r,o){const a=s.resolveComponent("processFlow");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["bpmnnd-box",r.visible?"bpmnnd-box-active":""])},[s.createVNode(a,{style:{width:"70vw"},request:o.request,"flow-list":o.formatFlow(r.curData)},null,8,["request","flow-list"])],2)}const Of=oe(Mf,[["render",Vf],["__scopeId","data-v-122d7775"]]),uA="",Lf={name:"bpmn-look",components:{bpmnNodeDetail:Of},props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{floatAdd:!1,drawer:!1,isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),this.$refs.container&&this.$refs.container.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(n){console.error(n)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(ki)=="[object Function]"?ki:ki.default,t=Object.prototype.toString.call(jn)=="[object Object]"?jn:jn.default,i=Object.prototype.toString.call(Rn)=="[object Object]"?Rn:Rn.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:n})=>{n||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())}),this.viewer.on("element.click",n=>{n.type,n.element,n&&n.element&&(n.element.type||"").includes("UserTask")?(this.drawer=!0,this.$refs.bpmnNodeDetailRef.openDrawer(n.element,this.approvalData)):(this.drawer=!1,this.$refs.bpmnNodeDetailRef.closeDrawer(n.element,this.approvalData))})},closeDetail(){this.drawer,this.drawer=!1},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom("fit-viewport","auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),n=document.querySelector(".djs-tooltip-container");let r=!1,o,a,l=0,c=0,m=0,u=0;t.addEventListener("touchstart",p=>{r=!0;const y=p.touches[0];o=y.clientX,a=y.clientY;const C=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);l=parseFloat(C[4]),c=parseFloat(C[5]);const E=this.getTransformMatrix(n.style.transform);this.isAdd?(this.floatAdd=!1,m=parseFloat(E[4]),u=parseFloat(E[5])):(m=parseFloat(E[4])+30,u=parseFloat(E[5])+16,this.isAdd=!0,this.floatAdd=!0)}),t.addEventListener("touchmove",p=>{if(!r)return;const y=p.touches[0];let C=y.clientX-o,E=y.clientY-a;c!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${l+C} ${c+E})`),this.floatAdd,n.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${m+C}, ${u+E});`)),e._cachedViewbox&&(e._cachedViewbox.x=C,e._cachedViewbox.y=E),p.preventDefault()}),t.addEventListener("touchend",()=>{r=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),n=this.viewer.get("tooltips");e.forEach(r=>{if(r.id&&r.class&&t.addMarker(r.id,r.class),r.id&&r.tooltip){const o=i.get(r.id);if(o){let{x:a,y:l,type:c}=o;["bpmn:StartEvent","bpmn:EndEvent"].includes(c)?(a=a-45,l=l+65):["bpmn:UserTask"].includes(c)&&(a=a-10,l=l+100),n.add({position:{x:a,y:l},html:r.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=gm(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){this.$refs.container&&this.$refs.container.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}};function Rf(e,t,i,n,r,o){const a=s.resolveComponent("bpmnNodeDetail");return s.openBlock(),s.createElementBlock("div",{ref:"container",class:"bpmn-look",onWheel:t[0]||(t[0]=(...l)=>e.handleWheel&&e.handleWheel(...l))},[s.createVNode(a,{ref:"bpmnNodeDetailRef",onClose:o.closeDetail},null,8,["onClose"])],544)}const Oa=oe(Lf,[["render",Rf],["__scopeId","data-v-0442d8f0"]]),vf=Ye({name:"TopTab",components:{processFlow:Va,BpmnLook:Oa,TopPopup:Fe,ViewAttchList:Jr,PreviewImage:ss},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,n)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let t=[];if(Object.prototype.toString.call(e)==="[object Object]")for(let n in e)t.push(...e[n]);else t=e;let i=(t||[]).map(n=>({...n,attachmentsFujian:(n.attachments||[]).filter(r=>r.type!="signature"),attachmentsQianzi:(n.attachments||[]).filter(r=>r.type=="signature")}));return i=i.reverse(),i},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let n=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+n}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let n=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-n}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}}),mA="",Ff={class:"tops-tab"},jf={class:"tops-tab-header"},Qf=["onClick"],Uf={key:0,class:"bottom-line"},_f={class:"tops-tab-body"},Gf=["name"],qf={key:2,class:"textnone"},zf={key:2,style:{height:"100%"}},Jf={key:1,class:"textnone"},Hf={class:"seal-list__item--option"},Kf={style:{"max-width":"100px"}},Wf={class:"seal-list__item--option"},Yf={style:{"max-width":"100px"}},Zf={class:"seal-list__item--option"},Xf={style:{"max-width":"100px"}};function $f(e,t,i,n,r,o){const a=s.resolveComponent("BpmnLook"),l=s.resolveComponent("processFlow"),c=s.resolveComponent("ViewAttchList"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("PreviewImage");return s.openBlock(),s.createElementBlock("div",Ff,[s.createElementVNode("div",jf,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.isTapList,(p,y)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["tops-tab-header-items",[p.key===e.active?"active":""]]),onClick:C=>e.handleActive(p.key,y)},s.toDisplayString(p.label),11,Qf))),256)),e.isTapList.length?(s.openBlock(),s.createElementBlock("div",Uf)):s.createCommentVNode("",!0)]),s.createElementVNode("div",_f,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.isTapList,p=>s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:p.key,style:{height:"100%"},class:s.normalizeClass([p.key==="c"&&"tops-tab-body-taskcommentlist"])},[p.key==="a"&&p.type==="default"?s.renderSlot(e.$slots,"default",{key:0},void 0,!0):s.createCommentVNode("",!0),e.active===p.key&&p.key==="b"&&p.type==="default"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"uph-tab-b",style:{height:"100%"},name:p.slot},[e.processXml?(s.openBlock(),s.createElementBlock("div",{key:0,style:{padding:"10px 20px",color:"#1389ff"},onClick:t[0]||(t[0]=()=>e.visibleTack=!0)}," \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")):s.createCommentVNode("",!0),p.key==="b"&&e.processXml?(s.openBlock(),s.createBlock(a,{key:1,ref_for:!0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):(s.openBlock(),s.createElementBlock("div",qf," \u6682\u65E0\u6D41\u7A0B\u56FE "))],8,Gf)):s.createCommentVNode("",!0),p.key==="c"&&p.type==="default"?(s.openBlock(),s.createElementBlock("div",zf,[p.key==="c"&&e.ProcessInsObj.flow?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{isActive:!!(e.ProcessInsObj.historyFlow&&e.ProcessInsObj.historyFlow.length>0),request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow),onView:e.viewList},null,8,["isActive","request","flow-list","onView"]),e.ProcessInsObj.historyFlow&&e.ProcessInsObj.historyFlow.length>0?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.ProcessInsObj.historyFlow,y=>(s.openBlock(),s.createBlock(l,{isHistory:!0,request:e.ProcessInsObj.request,"flow-list":e.formatFlow(y),onView:e.viewList},null,8,["request","flow-list","onView"]))),256)):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock("div",Jf,"\u6682\u65E0\u6570\u636E"))])):s.createCommentVNode("",!0),p.type=="slot"?s.renderSlot(e.$slots,p.slot,{key:3},void 0,!0):s.createCommentVNode("",!0)],2)),[[s.vShow,e.active===p.key]])),128))]),s.createVNode(m,{visible:e.visible,"onUpdate:visible":t[1]||(t[1]=p=>e.visible=p),ref:"TopPopup",titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},{default:s.withCtx(()=>[s.createVNode(c,{inList:e.inList},null,8,["inList"])]),_:1},8,["visible"]),s.createVNode(u,{images:e.signLists,visible:e.signPreViewVisible,"onUpdate:visible":t[2]||(t[2]=p=>e.signPreViewVisible=p),indexd:e.indexd},null,8,["images","visible","indexd"]),s.createVNode(m,{visible:e.visibleTack,"onUpdate:visible":t[3]||(t[3]=p=>e.visibleTack=p),ref:"TopPopups",titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},{default:s.withCtx(()=>[e.trackListss&&e.trackListss.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.trackListss,(p,y)=>(s.openBlock(),s.createElementBlock("div",{key:p.id,class:"seal-list__item"},[s.createElementVNode("div",null,[s.createElementVNode("div",Hf,[t[4]||(t[4]=s.createElementVNode("span",null,"\u5E8F\u53F7",-1)),s.createElementVNode("span",Kf,s.toDisplayString(y+1),1)]),s.createElementVNode("div",Wf,[t[5]||(t[5]=s.createElementVNode("span",null,"\u8282\u70B9\u540D\u79F0",-1)),s.createElementVNode("span",Yf,s.toDisplayString(p.historyActivityName),1)]),s.createElementVNode("div",Zf,[t[6]||(t[6]=s.createElementVNode("span",null,"\u5BA1\u6279\u4EBA",-1)),s.createElementVNode("span",Xf,s.toDisplayString(p.assigneeName),1)])])]))),128)):s.createCommentVNode("",!0)]),_:1},8,["visible"])])}const eg=oe(vf,[["render",$f],["__scopeId","data-v-e5ee42eb"]]),tg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEPhFkL7vnzZN86fJ/qwJgbMEnnVdd3z2P1x4Bzk9PX0+DMND2EHAhUDbti92u92j8/vu/V+svu//aprmvgsg9rQm8Krruj8uInDpM0jf9/80TXPXGh3L107gddd19/YteakgL1++vPbx48d/m6b5rXZK7GdJ4O3169fvPHjw4L8sQcJBT548uXH16tU3TdPcskTI0rUSePfp06fbjx8//nDZgqM+5n369OnNK1euhDvJzVppsZcVgfefP3++c3x8/D619ShBwov0fX9rGIY3bdveSL0ofw+BUgkMw/ChbdvbXde9G/MeRwsSJQnPIuFOcm3MizMDgcIIhGeNO13XvR37viRBwouenp7eHYYhfLrFHwhsikDbtvd2u91r5U3LgoQXPzk5+b1t21fKiZiFwJo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ESt7bh7pwUSjQQc45Y08qapgUQhAUfkyo69e3ogo5GAY+yCRt9WAsgoJEtrV621a6ehfbi/XV451aasMYEyQEYgMWa85hg41qQU8E0pIJMiAUfA4q+9shyQyZCAY+2mBn1XEsgkSMARtPRbri0LJDkScGzZ0sBvSwNJigQcgQu/9eryQJIhAcfWDQ3+XgJIEiTgCF52y/UyQIKRgMOynQnOSAEJQgKOBItufYIckMFIwGHdzCTnJIEMQgKOJEu+5xmyQJyRgGPPViY6Kw3ECQk4Ei343qfIA+mMBBx7NzLZeYD8N5AO/7EoOJItd4/nAOQkxR1IwNFjGxPWAMj/hmJAAo6Ei93rSQA5k+QGJODotYlJ6wDkicGsQAKOpEvd81kAuZDmBSTg6LmFiWsB5JnhnEECjsQL3ftpAFmR6AmSa/5pnhWBFfoEICuHeUTy+Wb5svJzPiuSAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",sg=Ye({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let n=JSON.parse(JSON.stringify(this.option)).filter((r,o)=>r.id==e);this.activeItem=n[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return tg},check(){return ig}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}}),fA="",ng={class:"top-select"},rg={key:0,style:{position:"relative","z-index":"80"}},og=["src"],ag=["onClick"],lg=["src"];function cg(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",ng,[e.isSlots?(s.openBlock(),s.createElementBlock("div",rg,[s.renderSlot(e.$slots,"header",{data:{...e.activeItem,placeholder:e.placeholder}},void 0,!0)])):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[s.createTextVNode(s.toDisplayString(e.activeItem?e.activeItem.name:e.placeholder)+" ",1),e.disibled?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,og))],2)),e.maskShow?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-select-option-mask",style:s.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):s.createCommentVNode("",!0),e.lists&&e.lists.length?(s.openBlock(),s.createElementBlock("div",{key:3,class:s.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:s.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.lists,(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:c=>e.handleClick(a,l)},[s.createTextVNode(s.toDisplayString(a.name)+" ",1),e.active==a.id?(s.openBlock(),s.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,lg)):s.createCommentVNode("",!0)],10,ag))),128))],6)):s.createCommentVNode("",!0)])}const La=oe(sg,[["render",cg],["__scopeId","data-v-15c177a8"]]),dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5oRkeU/k/L/4ZlzAINtKAhBhpmC/r6/So8TiSWcFNBgS4AOfwcz2Kkt4HoA0ODgSI9hkhfAAtDvYk3MQ3IXx/jSZzR3apClIcq0v1TpJufV+H/aoM/KLBDAZOApGnUwQHdUaQThQgOkej+x2W4UbANk84UMAfIqmo8VNB5eFrQKapJBaU77sIUIG9u4zVzncENwUCBbuYX4Z5rAO18K2AGkMPP8UFpSrUrgphy7VJowv9uApAGleNlyIewoHPc5ZowCVtcbw5IxTXHruhjTbJLoQn+e1NADMExhn6YX4bjCeYBXLZYQRquO7YnRKBzLNrBy6hAswpisHqgioCL3xRoBojJ6rGSJxJ9wINE0JIUaAJI2ltFcbmFxOof1iJWI1N5XG0A+R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6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",gA="",pg=Ye({name:"selectFixedPerson",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],originFixedPersonList:[],mySelect:[],mySelectIds:[],searchText:"",showSelectPerson:!1}},watch:{searchText(){this.handleSearchPerson()},visible:{handler(e,t){this.showFixedPerson=e,e?(this.originFixedPersonList=this.list||[],this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.originFixedPersonList=[],this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},originFixedPersonList:{handler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{handleClearSearch(){this.searchText="",this.handleSearchPerson()},handleSearchPerson(){this.fixedPersonList=this.originFixedPersonList.filter(e=>e.realName.includes(this.searchText))},expandSelect(){this.showSelectPerson=!0},updateSelectVisible(e){this.showSelectPerson=e},updateVisible(e){this.$emit("updateVisible",e)},handleRemoveSelect(e){this.mySelect=this.mySelect.filter(t=>t.userId!==e.userId),this.mySelectIds=this.mySelect.map(t=>t.userId),this.$emit("updateSelect",this.mySelect)},handleClearSelect(){this.mySelect=[],this.mySelectIds=[],this.$emit("updateSelect",this.mySelect)},handleClickFixedPerson(e){this.multiple||(this.mySelect=[],this.mySelectIds=[]),this.multiple?this.mySelectIds.includes(e.userId)?(this.mySelect=this.mySelect.filter(i=>i.userId!==e.userId),this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}}),hg={class:"st-head"},ug={class:"s-tree"},mg=["onClick"],fg={key:0,class:"radio-select"},gg={key:1,class:"radio-select-not"},yg=["src"],Ag={key:3,class:"node-avatar-text"},Cg={class:"node-name"},kg={class:"node-name-text"},bg={class:"node-name-phone"},Eg={class:"st-footer-box"},wg={class:"st-footer"},Ng={class:"st-footer-text"},Tg={class:"st-footer-right"},Ig={class:"s-thead"},Bg={class:"s-thead-left"},xg={class:"s-thead-right"},Sg={class:"s-tree"},Dg=["onClick"],Pg={class:"stt-node-left"},Mg=["src"],Vg={key:1,class:"node-avatar-text stt-node-avatar-text"},Og={class:"node-name"},Lg={class:"node-name-text"},Rg={class:"node-name-phone"},vg={class:"stt-node-right"};function Fg(e,t,i,n,r,o){const a=s.resolveComponent("TopPopup");return s.openBlock(),s.createBlock(a,{visible:e.showFixedPerson,"onUpdate:visible":e.updateVisible,ref:"TopPopupFixedPerson",titleText:"\u9009\u62E9\u4EBA\u5458("+e.originFixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},{default:s.withCtx(()=>[s.createElementVNode("div",hg,[s.withDirectives(s.createElementVNode("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=l=>e.searchText=l),placeholder:"\u8F93\u5165\u67E5\u8BE2",class:"st-head-input",onKeyup:t[1]||(t[1]=s.withKeys((...l)=>e.handleSearchPerson&&e.handleSearchPerson(...l),["enter"]))},null,544),[[s.vModelText,e.searchText]]),s.withDirectives(s.createElementVNode("div",{class:"st-head-clear",onClick:t[2]||(t[2]=(...l)=>e.handleClearSearch&&e.handleClearSearch(...l))},[...t[8]||(t[8]=[s.createElementVNode("svg",{t:"1766114768811",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7665"},[s.createElementVNode("path",{d:"M507.168 473.232L716.48 263.936a16 16 0 0 1 22.624 0l11.312 11.312a16 16 0 0 1 0 22.624L541.12 507.168 750.4 716.48a16 16 0 0 1 0 22.624l-11.312 11.312a16 16 0 0 1-22.624 0L507.168 541.12 297.872 750.4a16 16 0 0 1-22.624 0l-11.312-11.312a16 16 0 0 1 0-22.624l209.296-209.312-209.296-209.296a16 16 0 0 1 0-22.624l11.312-11.312a16 16 0 0 1 22.624 0l209.296 209.296z","p-id":"7666",fill:"#cdcdcd"})],-1)])],512),[[s.vShow,e.searchText]])]),s.createElementVNode("div",ug,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.fixedPersonList],l=>(s.openBlock(),s.createElementBlock("div",{class:"s-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[e.mySelectIds.includes(l.userId)?(s.openBlock(),s.createElementBlock("div",fg,[...t[9]||(t[9]=[s.createElementVNode("svg",{t:"1758260488735",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"},[s.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"})],-1)])])):(s.openBlock(),s.createElementBlock("div",gg,[...t[10]||(t[10]=[s.createElementVNode("svg",{t:"1758260589679",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"},[s.createElementVNode("path",{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"})],-1)])])),l.avatar?(s.openBlock(),s.createElementBlock("img",{key:2,class:"node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,yg)):(s.openBlock(),s.createElementBlock("div",Ag,s.toDisplayString((l.realName||"").slice(-2)),1)),s.createElementVNode("div",Cg,[s.createElementVNode("div",kg,s.toDisplayString(l.realName),1),s.createElementVNode("div",bg,s.toDisplayString(l.phonenumber),1)])],8,mg))),128))]),s.createElementVNode("div",Eg,[s.createElementVNode("div",wg,[s.createElementVNode("div",{class:"st-footer-left",onClick:t[3]||(t[3]=(...l)=>e.expandSelect&&e.expandSelect(...l))},[s.createElementVNode("div",Ng,"\u5DF2\u9009\u62E9"+s.toDisplayString(e.mySelectIds.length)+"\u4E2A\u6210\u5458",1),t[11]||(t[11]=s.createElementVNode("div",{class:"st-footer-svg"},[s.createElementVNode("svg",{t:"1766111528552",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4604",id:"mx_n_1766111528554"},[s.createElementVNode("path",{d:"M166.997333 751.850667L106.666667 691.498667 520.832 277.333333l414.165333 414.165334L874.666667 751.850667 520.832 398.016z",fill:"#1389ff","p-id":"4605"})])],-1))]),s.createElementVNode("div",Tg,[s.createElementVNode("div",{class:"st-footer-btn",onClick:t[4]||(t[4]=(...l)=>e.handleSumbitFixedPerson&&e.handleSumbitFixedPerson(...l))},"\u786E\u5B9A")])])]),s.createVNode(a,{visible:e.showSelectPerson,"onUpdate:visible":e.updateSelectVisible,showHeader:!1,ref:"TopPopupSelectPerson",isIndex:120,className:"sumbmitPopup-index"},{default:s.withCtx(()=>[s.createElementVNode("div",Ig,[s.createElementVNode("div",Bg," \u5DF2\u9009\u62E9\u4EBA\u5458("+s.toDisplayString(e.mySelect.length)+") ",1),s.createElementVNode("div",xg,[s.createElementVNode("div",{class:"s-thead-btn",onClick:t[5]||(t[5]=(...l)=>e.handleClearSelect&&e.handleClearSelect(...l))},"\u6E05\u7A7A"),s.createElementVNode("div",{class:"s-thead-btn s-thead-btn-close",onClick:t[6]||(t[6]=l=>e.updateSelectVisible(!1))},"\u5173\u95ED")])]),s.createElementVNode("div",Sg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.mySelect],l=>(s.openBlock(),s.createElementBlock("div",{class:"s-node stt-node",key:l.userId,onClick:c=>e.handleClickFixedPerson(l)},[s.createElementVNode("div",Pg,[l.avatar?(s.openBlock(),s.createElementBlock("img",{key:0,class:"node-avatar stt-node-avatar",src:l.avatar,alt:"\u5934\u50CF"},null,8,Mg)):(s.openBlock(),s.createElementBlock("div",Vg,s.toDisplayString((l.realName||"").slice(-2)),1)),s.createElementVNode("div",Og,[s.createElementVNode("div",Lg,s.toDisplayString(l.realName),1),s.createElementVNode("div",Rg,s.toDisplayString(l.phonenumber),1)])]),s.createElementVNode("div",vg,[s.createElementVNode("div",{class:"s-thead-btn s-thead-btn-close",onClick:t[7]||(t[7]=(...c)=>e.handleRemoveSelect&&e.handleRemoveSelect(...c))},"\u79FB\u9664")])],8,Dg))),128))])]),_:1},8,["visible","onUpdate:visible"])]),_:1},8,["visible","onUpdate:visible","titleText","comfig"])}const Ra=oe(pg,[["render",Fg],["__scopeId","data-v-f68e835c"]]),jg=Ye({name:"TopSubmitPopup",components:{SelectFixedPerson:Ra,BpmnLook:Oa,TopPopup:Fe,TopDownSelect:La,PreviewImage:ss,departPerson:At.departPerson,TopTips:it},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},businessDeptId:{type:[String,Number]},businessSubjectId:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,t){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return dg}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async getTaskModelDetail(){this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.extraParams.processId||this.extraParams.processInstId,taskId:this.taskId}:{processInstId:this.extraParams.processId||this.extraParams.processInstId}}).then(e=>{if(e.code==200){this.handleTips("",!1,"success");let t=(e.data||{}).process||{};this.checkedItem={id:t.processDefinitionId,key:t.processDefinitionKey,name:t.processDefinitionName,version:t.processDefinitionVersion},this.option=[this.checkedItem],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.businessDeptIdData||this.getNodeUserDept()}})},async handleOption(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,subjectId:this.businessSubjectId,processGroupName:this.processNameData,...this.extraParams};if(this.processNameData&&delete e.processGroupName,this.extraParams.processId||this.extraParams.processInstId){this.getTaskModelDetail();return}await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(t=>{t.code==200&&(this.option=t.data,t.data&&t.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||t.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())})},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=Pa(e);let n;try{n=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(r){}if(n.code==200){const r=this.firstPerson[t];r.userList=n.data,this.firstPerson[t]=r}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let n={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(r=>{n.postIds.push(r.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[n]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!this.businessDeptIdData,id:m.users.map(u=>u.id),subjectId:m.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),o.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(o)),i.positionArray=c})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.selectDefaultValue!=e.id&&(this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t))},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(n=>{i.postIds.push(n.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(n=>{let r=[],o=[],a=!1;n.data.map(c=>{c.posts.map(m=>{o.push(...m.users),m.users.length==1?r.push(...m.users):a=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(r=[]);let l=[];n.data[0].posts.map(c=>{l.push({...c,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:c.users.map(m=>m.id),subjectId:c.subjectId})}),o.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(r)),t.positionArray=l})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.personObjId]=e,this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((n,r)=>{i.push(n.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((n,r)=>{t=n.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({id:n.id,subjectId:n.subjectId,type:n.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,n)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]):(this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{businessType:this.businessType,deptId:this.businessDeptIdData,reactivate:!0,showType:"all",subjectId:this.businessSubjectId,...this.extraParams,_businessDeptId:this.businessDeptIdData}}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}}),yA="",Qg={class:"sumbmitPopup-index-sumbit"},Ug={class:"sumbmitPopup-select"},_g={class:"sumbmitPopup-select-viewTrack",style:{display:"flex"}},Gg=["src"],qg={key:0,class:"person-views"},zg={class:"views-items-label"},Jg={class:"views-items-name"},Hg={class:"views-items-name-left"},Kg={key:0,class:"views-items-name--re"},Wg={class:"views-items-set"},Yg={key:0},Zg={key:0},Xg={key:1},$g={key:2},e0={key:3},t0=["onClick"],i0=["onClick"],s0={key:0,class:"views-items-includes"},n0={class:"views-items-and2"},r0={key:0},o0={class:"include"},a0={class:"include include-name"},l0={key:1},c0={key:1,class:"person-views"},d0={class:"views-items"},p0={class:"views-items-name"},h0={class:"views-items-set"},u0=["onClick"],m0={key:1},f0={key:0},g0={key:2},y0={key:3},A0={key:2,class:"person-views-white"},C0={style:{height:"100%"}},k0={class:"tree"},b0=["onClick"],E0={key:0,class:"children"},w0=["onClick"],N0={style:{margin:"20px"}},T0=["innerHTML"],I0={class:"timeline"},B0={class:"item-top"},x0={class:"top-spot"},S0={class:"top-title"},D0={style:{color:"#009800"}};function P0(e,t,i,n,r,o){const a=s.resolveComponent("TopDownSelect"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("departPerson"),m=s.resolveComponent("SelectFixedPerson"),u=s.resolveComponent("BpmnLook"),p=s.resolveComponent("PreviewImage"),y=s.resolveComponent("TopTips");return s.openBlock(),s.createElementBlock("div",Qg,[t[16]||(t[16]=s.createElementVNode("div",{class:"top-popup"},null,-1)),s.createVNode(l,{visible:e.show,"onUpdate:visible":t[4]||(t[4]=C=>(e.show=C,e.$emit("update:visible",C))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:s.withCtx(()=>[s.createVNode(a,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:!1},{header:s.withCtx(C=>[s.createElementVNode("div",Ug,[s.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[0]||(t[0]=(...E)=>e.handleSelect&&e.handleSelect(...E))},[t[10]||(t[10]=s.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u5F53\u524D\u6D41\u7A0B",-1)),s.createElementVNode("div",{class:s.normalizeClass(["sumbmitPopup-select-checked-node",""])},s.toDisplayString(C.data.name?C.data.name:C.data.placeholder),3)]),e.businessDeptIdData?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"sumbmitPopup-select-checked",onClick:t[1]||(t[1]=(...E)=>e.handleDeptSelect&&e.handleDeptSelect(...E))},[t[11]||(t[11]=s.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u9009\u62E9\u90E8\u95E8",-1)),s.createElementVNode("div",{class:s.normalizeClass(["sumbmitPopup-select-checked-node",""])},s.toDisplayString(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9"),3)])),s.createElementVNode("div",_g,[e.checkedItem.id?(s.openBlock(),s.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[2]||(t[2]=(...E)=>e.handleFlowSelect&&e.handleFlowSelect(...E))},[s.createElementVNode("img",{src:e.ProcessImg},null,8,Gg),t[12]||(t[12]=s.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ",-1))])):s.createCommentVNode("",!0),e.checkedItem.id&&e.showFlowForecast?(s.openBlock(),s.createElementBlock("div",{key:1,class:"viewTrack",onClick:t[3]||(t[3]=(...E)=>e.viewFlowForecast&&e.viewFlowForecast(...E))}," \u6D41\u7A0B\u9884\u6D4B ")):s.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?(s.openBlock(),s.createElementBlock("div",qg,[t[14]||(t[14]=s.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.firstPerson,(C,E)=>{var v;return s.openBlock(),s.createElementBlock("div",{class:"views-items",key:E},[s.createElementVNode("div",zg,[s.createElementVNode("div",Jg,[s.createElementVNode("div",Hg,[s.createTextVNode(s.toDisplayString(C.name)+" ",1),E==0?(s.openBlock(),s.createElementBlock("span",Kg,"*")):s.createCommentVNode("",!0)])]),s.createElementVNode("div",Wg,[e.partNode[C.id]&&e.partNode[C.id].length?(s.openBlock(),s.createElementBlock("div",Yg,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.partNode[C.id],(F,J)=>(s.openBlock(),s.createElementBlock("span",{key:J},s.toDisplayString(J>=3?"":J==0?F:`,${F}`),1))),128)),e.partNode[C.id].length>3?(s.openBlock(),s.createElementBlock("span",Zg,"...\u7B49"+s.toDisplayString(e.partNode[C.id].length)+"\u4EBA",1)):s.createCommentVNode("",!0)])):C.routeTxt&&C.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Xg,s.toDisplayString(C.routeTxt.userNames),1)):s.createCommentVNode("",!0),C.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||C.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((v=e.partNode[C.id])==null?void 0:v.length)>0&&C.noPersonnel?(s.openBlock(),s.createElementBlock("div",$g)):C.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||C.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||C.noPersonnel?(s.openBlock(),s.createElementBlock("div",e0," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):C.userList&&C.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:4,class:"views-items-set-btn",onClick:F=>e.handleOpenFixedPerson(C)}," \u9009\u62E9 ",8,t0)):(s.openBlock(),s.createElementBlock("div",{key:5,class:"views-items-set-btn",onClick:F=>e.handleOpenPerson(C)}," \u8BBE\u7F6E ",8,i0))])]),C.routeTxt&&C.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",s0,[t[13]||(t[13]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",n0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.routeTxt,(F,J)=>(s.openBlock(),s.createElementBlock("div",{key:F.type},[F.ids&&F.ids.length>0?(s.openBlock(),s.createElementBlock("div",r0,[s.createElementVNode("div",o0,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+F.type]])},s.toDisplayString(F.type=="user"?"\u7528\u6237":F.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",a0,s.toDisplayString(F.name),1)]),J!==C.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(F.assigneeRetain?"true":"false")]])},s.toDisplayString(C.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",l0," \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 "))]))),128))])])):s.createCommentVNode("",!0)])}),128))])):s.createCommentVNode("",!0),e.personList&&e.personList.length?(s.openBlock(),s.createElementBlock("div",c0,[t[15]||(t[15]=s.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.personList,(C,E)=>(s.openBlock(),s.createElementBlock("div",d0,[s.createElementVNode("div",p0,s.toDisplayString(C.name),1),s.createElementVNode("div",h0,[C.noPersonnel?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(C)}," \u8BBE\u7F6E ",8,u0)),e.partNode[C.id]&&e.partNode[C.id].length?(s.openBlock(),s.createElementBlock("div",m0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.partNode[C.id],(v,F)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(F>=3?"":F==0?v:`,${v}`),1))),256)),e.partNode[C.id].length>3?(s.openBlock(),s.createElementBlock("span",f0,"...\u7B49"+s.toDisplayString(e.partNode[C.id].length)+"\u4EBA",1)):s.createCommentVNode("",!0)])):C.noPersonnel?(s.openBlock(),s.createElementBlock("div",g0,"\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")):(s.openBlock(),s.createElementBlock("div",y0))])]))),256))])):s.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(s.openBlock(),s.createElementBlock("div",A0," \u65E0\u9700\u8BBE\u7F6E ")):s.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),s.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[5]||(t[5]=C=>e.visiblePerson=C),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:s.withCtx(()=>[s.createElementVNode("div",C0,[e.visiblePerson?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel,checkedArray:e.checkedArray}),null,16,["visible","onCallback","onCancel","checkedArray"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),s.createVNode(l,{visible:e.showDept,"onUpdate:visible":t[6]||(t[6]=C=>e.showDept=C),ref:"TopPopupDept",titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},{default:s.withCtx(()=>[s.createElementVNode("div",k0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList([...e.deptList],C=>(s.openBlock(),s.createElementBlock("div",{class:"node",key:C.id},[s.createElementVNode("div",{class:"node-p",onClick:E=>e.handleClickDept(C)},s.toDisplayString(C.label),9,b0),C.children?(s.openBlock(),s.createElementBlock("div",E0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(C.children,E=>(s.openBlock(),s.createElementBlock("div",{class:"node-s",onClick:v=>e.handleClickDept(E),key:E.id},s.toDisplayString(E.label),9,w0))),128))])):s.createCommentVNode("",!0)]))),128))])]),_:1},8,["visible","comfig"]),s.createVNode(m,{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:!0,select:e.fixedSelect[e.personObjId]||[],onUpdateList:e.handleClickFixedPerson,onUpdateVisible:e.updateFixedPersonVisible,onUpdateSelect:e.updateFixedSelect,onConfirm:e.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),s.createVNode(l,{class:"top-pop-flow",visible:e.showFlow,"onUpdate:visible":t[7]||(t[7]=C=>e.showFlow=C),ref:"TopPopupFlow",titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},{default:s.withCtx(()=>[e.showFlow&&e.processXml?(s.openBlock(),s.createBlock(u,{key:0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):s.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),s.createVNode(p,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[8]||(t[8]=C=>e.taskurlshow=C),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),s.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),s.createVNode(l,{visible:e.flowForecastVisible,"onUpdate:visible":t[9]||(t[9]=C=>e.flowForecastVisible=C),ref:"TopPopupFF",titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},{default:s.withCtx(()=>[s.createElementVNode("div",N0,[s.createElementVNode("div",{innerHTML:e.flowForecastData.completeTime,style:{"margin-left":"10px","margin-bottom":"10px"}},null,8,T0),s.createElementVNode("div",I0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.flowForecastData.processBudgetModelList,(C,E)=>(s.openBlock(),s.createElementBlock("div",{class:"timeline-item",key:E},[s.createElementVNode("div",B0,[s.createElementVNode("div",x0,[s.createElementVNode("div",{class:s.normalizeClass(["spot",{active:E==0}])},null,2)]),s.createElementVNode("div",S0,s.toDisplayString(C.title),1)]),s.createElementVNode("div",{class:s.normalizeClass(["item-bottom",{last:E==e.flowForecastData.processBudgetModelList.length-1}])},[s.createElementVNode("span",D0," \u6267\u884C\u4EBA\uFF1A"+s.toDisplayString(C.excutor),1)],2)]))),128))])])]),_:1},8,["visible","cancel","comfig"])])}const va=oe(jg,[["render",P0],["__scopeId","data-v-521283d4"]]),M0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB2kuxfCQduexRB+ibE5a5rQi+G7OF5u01IkDyHEWde2/zu+vX3YQfNH9Z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AIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsLk5JVbTV5I4tBnGmfj0k1zHicX0doYT7/xd3MvVqZAgoerdqwDYCzlrVcQrXBxc0OMG4Hk3oXrabYZy8BP7WfupBdCQCDrkPsbOGJo+ut1Mv7i1dF0ep1RkSqVCJTks+ZVqNbuullBjJe0vdBPRGJNfq3yuW5g2Z7al9lZ+u1GIH2jC5bkZZ/7+2UXV3/GKnfNWuCOrWyMzVnGRdXPMHmzzK4EUjrzjG1A7ml/3ew/er6uBFJus/Z0yIyoW57slTuB9A2yXLw8onEzlq66Wj1cCoRVZCxa+LGf3lYPlwLpG1VyRDje4TX0nvs8hXS1B1lNMRv2oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",AA="",V0={name:"msgList",components:{TopPopup:Fe},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return M0}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},O0={key:0,class:"top-msg"},L0=["onClick"],R0={class:"top-msg-items-text"},v0=["onClick"],F0=["src"];function j0(e,t,i,n,r,o){const a=s.resolveComponent("TopPopup");return s.openBlock(),s.createElementBlock("div",null,[i.visible?(s.openBlock(),s.createElementBlock("div",O0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.listData,l=>(s.openBlock(),s.createElementBlock("div",{class:"top-msg-items",onClick:c=>o.handleMsg(l)},[s.createElementVNode("div",R0,s.toDisplayString(l.opinionName),1),s.createElementVNode("div",{class:"top-msg-items-del",onClick:s.withModifiers(c=>o.handleOpenMsg(l),["stop"])},[s.createElementVNode("img",{src:o.Del},null,8,F0)],8,v0)],8,L0))),256))])):s.createCommentVNode("",!0),s.createVNode(a,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${r.opinion.opinionName}'\u5220\u9664`,cancel:o.handleTipsCancel,comfig:o.handleDel,visible:r.visibleListMsg,"onUpdate:visible":t[0]||(t[0]=l=>r.visibleListMsg=l)},null,8,["context","cancel","comfig","visible"])])}const Qi=oe(V0,[["render",j0],["__scopeId","data-v-87fc3e49"]]),CA="",Q0={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e=[];this.multiNodeParticipant[this.partObjId].map((t,i)=>{e.push(t)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=e[1]?JSON.parse(e[1]):!1,this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},U0={class:"process-popup-content"},_0={class:"process-popup-content-msg"},G0={key:0},q0={class:"process-pc-value"},z0={class:"process-popup-textarea"},J0={class:"process-popup-textarea-num"},H0={key:0,class:"msg-btn"},K0={key:0,class:"process-popup-content-person"},W0=["onClick"],Y0={class:"process-pc-value--people"},Z0={key:0,class:"process-pc-value--data"},X0={key:1,class:"process-pc-value--data",style:{color:"#888"}},$0=["onClick"],ey={class:"process-pc-value--people"},ty={key:0,class:"process-pc-value--data"},iy={key:1,class:"process-pc-value--data",style:{color:"#888"}},sy={style:{height:"100%"}};function ny(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",U0,[s.createElementVNode("div",_0,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",G0,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[6]||(t[6]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",q0,[s.createElementVNode("div",z0,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",J0,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",H0,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),(s.openBlock(),s.createElementBlock("div",K0,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[8]||(t[8]=s.createElementVNode("div",null,[s.createElementVNode("br"),s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",Y0,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",Z0,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,C)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(C==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",X0,[...t[7]||(t[7]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,W0)],64))),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[10]||(t[10]=s.createElementVNode("div",{class:"process-pc-label"},[s.createElementVNode("br"),s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",ey,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",ty,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,C)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(C==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",iy,[...t[9]||(t[9]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,$0)],64))),256)):s.createCommentVNode("",!0)])),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",sy,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="5"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const ry=oe(Q0,[["render",ny],["__scopeId","data-v-86bb40b8"]]),kA="",oy={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e=this.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,r="";n=t.find(a=>a.name=="delegateTaskButtonAnnex"),r=n?n.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},ay={class:"process-popup-content"},ly={class:"process-popup-content-msg"},cy={key:0},dy={class:"process-pc-value"},py={class:"process-popup-textarea"},hy={class:"process-popup-textarea-num"},uy={key:0,class:"msg-btn"},my={key:0,class:"process-popup-content-person"},fy=["onClick"],gy={class:"process-pc-value--people"},yy={key:0,class:"process-pc-value--data"},Ay={key:1,class:"process-pc-value--data",style:{color:"#888"}},Cy=["onClick"],ky={class:"process-pc-value--people"},by={key:0,class:"process-pc-value--data"},Ey={key:1,class:"process-pc-value--data",style:{color:"#888"}},wy={style:{height:"100%"}};function Ny(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",ay,[s.createElementVNode("div",ly,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",cy,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[6]||(t[6]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",dy,[s.createElementVNode("div",py,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",hy,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",uy,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),(s.openBlock(),s.createElementBlock("div",my,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[8]||(t[8]=s.createElementVNode("div",null,[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",gy,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",yy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,C)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(C==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",Ay,[...t[7]||(t[7]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,fy)],64))),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[t[10]||(t[10]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:y=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",ky,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",by,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(y,C)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(C==0?y:`,${y}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",Ey,[...t[9]||(t[9]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,Cy)],64))),256)):s.createCommentVNode("",!0)])),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",wy,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="1"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const Ty=oe(oy,[["render",Ny],["__scopeId","data-v-73a21e66"]]),Iy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz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8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",bA="",EA="",By={name:"TreeNode",components:{SelectFixedPerson:Ra,TopPopup:Fe,TopTips:it,departPerson:At.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(i=>{if(Array.isArray(i.assignees),i.assignees,i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(n=>{this.partNodeArr,this.multiNodeParticipant;const r=this.partNodeArr[i.id].find(a=>a.name==n.name),o=this.multiNodeParticipant[i.id].find(a=>a==n.id);r||this.partNodeArr[i.id].push(n),o||this.multiNodeParticipant[i.id].push(n.id)})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(n.id)||this.multiNodeParticipant[i.id].push(n.id),this.partNode[i.id].includes(n.name)||this.partNode[i.id].push(n.name),this.partNodeArr[i.id].find(r=>r.name==n.name)||this.partNodeArr[i.id].push(n)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let n={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(r=>{n.postIds.push(r.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[n]}).then(r=>{let o=[],a=[],l=!1;r.data.map(m=>{m.posts.map(u=>{a.push(...u.users),u.users.length==1?o.push(...u.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(m=>{c.push({...m,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:m.users.map(u=>u.id)})}),a.length==0&&(i.noPersonnel=!0),o.length>0&&(i.noPersonnel=!0,this.partObjId=i.id,this.handleCallback(o)),i.positionArray=c})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(n=>{n.code==200&&(this.personMakeList=n.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return Un}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,n)=>{i.participantList&&i.participantList.length?i.participantList.forEach((r,o)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name),this.partNodeArr[i.id].find(a=>a.name==r.name)||this.partNodeArr[i.id].push(r)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(r=>{r.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=r.data[i.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.fixedSelect[this.partObjId]=e,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((n,r)=>{i.push({type:3,id:n.id,subjectId:n.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((r,o)=>{n.push({type:3,id:r.id,deptId:t,subjectId:r.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},xy={key:0,class:"treenode"},Sy={key:0,class:"treenode-multi"},Dy={class:"treenode-node",style:{"margin-top":"0"}},Py=["onClick"],My=["src"],Vy=["onClick"],Oy={class:"treenode-node"},Ly={key:0},Ry={key:1,class:"personselect"},vy={class:"personselect-name"},Fy={class:"items-person"},jy=["onClick"],Qy=["onClick"],Uy={key:2,class:"items-person-name"},_y={key:3,class:"items-person-name"},Gy={key:4,class:"items-person-name"},qy={key:0,class:"views-items-includes"},zy={class:"views-items-and2"},Jy={key:0},Hy={class:"include"},Ky={class:"include include-name"},Wy={key:1},Yy={class:"treenode-node"},Zy={key:0},Xy={key:1,class:"personselect"},$y={class:"personselect-name"},e2={class:"items-person"},t2=["onClick"],i2=["onClick"],s2={key:2,class:"items-person-name"},n2={key:3,class:"items-person-name"},r2={key:4,class:"items-person-name"},o2={key:0,class:"views-items-includes"},a2={class:"views-items-and2"},l2={key:0},c2={class:"include"},d2={class:"include include-name"},p2={key:1},h2={key:1,class:"treenode-single"},u2={class:"treenode-single-items"},m2={class:"personselect"},f2={class:"personselect-name"},g2={key:0,class:"items-person"},y2=["onClick"],A2=["onClick"],C2={key:2,class:"items-person-name"},k2={class:"items-person-name"},b2={key:0},E2={key:1,class:"views-items-includes"},w2={class:"views-items-and2"},N2={key:0},T2={class:"include"},I2={class:"include include-name"},B2={key:1};function x2(e,t,i,n,r,o){const a=s.resolveComponent("TreeNode",!0),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("SelectFixedPerson"),u=s.resolveComponent("TopTips");return r.nodeItems&&r.nodeItems.length?(s.openBlock(),s.createElementBlock("div",xy,[i.endNode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Sy,[s.createElementVNode("div",Dy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[i.checkType=="InclusiveGatewayModel"&&r.nodeItems.length>1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["treenode-checkbox",r.checkBoxArr.includes(p.id)?"treenode-checkbox-active":""]),onClick:y=>o.handleCheckBoxClick(p)},[s.createElementVNode("span",null,[r.checkBoxArr.includes(p.id)?(s.openBlock(),s.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:o.check},null,8,My)):s.createCommentVNode("",!0)]),s.createTextVNode(" "+s.toDisplayString(p.nodeName||p.name),1)],10,Py)):i.checkType=="ExclusiveGatewayModel"&&r.nodeItems.length>1?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["treenode-radio",r.radioArr==p.id?"treenode-radio-active":""]),onClick:y=>o.handleRadioClick(p)},[t[1]||(t[1]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(p.nodeName||p.name),1)],10,Vy)):s.createCommentVNode("",!0)],64))),256))]),i.checkType=="InclusiveGatewayModel"&&r.checkBoxItem&&r.checkBoxItem.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.checkBoxItem,p=>(s.openBlock(),s.createElementBlock("div",Oy,[p.childNode&&p.childNode.length?(s.openBlock(),s.createElementBlock("div",Ly,[s.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(s.openBlock(),s.createElementBlock("div",Ry,[s.createElementVNode("div",vy,s.toDisplayString(p.name||p.nodeName),1),s.createElementVNode("div",Fy,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,jy)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,Qy)):s.createCommentVNode("",!0),p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",Uy,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",_y,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",Gy,s.toDisplayString(p.routeTxt.userNames),1)):s.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",qy,[t[2]||(t[2]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",zy,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,C)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",Jy,[s.createElementVNode("div",Hy,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",Ky,s.toDisplayString(y.name),1)]),C!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",Wy," \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 "))]))),128))])])):s.createCommentVNode("",!0)]))]))),256)):s.createCommentVNode("",!0),i.checkType=="ExclusiveGatewayModel"&&r.radioItem&&r.radioItem.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.radioItem,p=>(s.openBlock(),s.createElementBlock("div",Yy,[p.childNode&&p.childNode.length?(s.openBlock(),s.createElementBlock("div",Zy,[s.createVNode(a,{items:p.childNode,endNode:p.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:p.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(s.openBlock(),s.createElementBlock("div",Xy,[s.createElementVNode("div",$y,s.toDisplayString(p.name||p.nodeName),1),s.createElementVNode("div",e2,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,t2)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,i2)):s.createCommentVNode("",!0),p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",s2,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(s.openBlock(),s.createElementBlock("div",n2,s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)):p.routeTxt&&p.routeTxt.userNames?(s.openBlock(),s.createElementBlock("div",r2,s.toDisplayString(p.routeTxt.userNames),1)):s.createCommentVNode("",!0)]),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",o2,[t[3]||(t[3]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",a2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,C)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",l2,[s.createElementVNode("div",c2,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",d2,s.toDisplayString(y.name),1)]),C!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",p2," \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 "))]))),128))])])):s.createCommentVNode("",!0)]))]))),256)):s.createCommentVNode("",!0)])),i.endNode?(s.openBlock(),s.createElementBlock("div",h2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,p=>(s.openBlock(),s.createElementBlock("div",u2,[s.createElementVNode("div",m2,[s.createElementVNode("div",f2,s.toDisplayString(p.name||p.nodeName),1),p.nodeType!=="endEvent"?(s.openBlock(),s.createElementBlock("div",g2,[p.userList&&p.userList.length>0?(s.openBlock(),s.createElementBlock("div",{key:0,class:"items-person-set",onClick:y=>o.handleOpenFixedPerson(p)}," \u9009\u62E9 ",8,y2)):p.setPersonnel?(s.openBlock(),s.createElementBlock("div",C2,s.toDisplayString((p.assignees||[]).map(y=>y.name).join(",")),1)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"items-person-set",onClick:s.withModifiers(y=>o.handleOpenPopup(p),["stop"])}," \u8BBE\u7F6E ",8,A2)),s.createElementVNode("div",k2,[!r.partNode[p.id]&&p.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&p.noPersonnel?(s.openBlock(),s.createElementBlock("div",b2," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(r.partNode[p.id]?r.partNode[p.id].join(","):""),1)])])):s.createCommentVNode("",!0),p.routeTxt&&p.routeTxt.length>0?(s.openBlock(),s.createElementBlock("div",E2,[t[4]||(t[4]=s.createElementVNode("div",{class:"views-items-name2"},s.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),s.createElementVNode("div",w2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(p.routeTxt,(y,C)=>(s.openBlock(),s.createElementBlock("div",{key:y.type},[y.ids&&y.ids.length>0?(s.openBlock(),s.createElementBlock("div",N2,[s.createElementVNode("div",T2,[s.createElementVNode("b",{class:s.normalizeClass(["include include-type",["include-"+y.type]])},s.toDisplayString(y.type=="user"?"\u7528\u6237":y.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),s.createElementVNode("span",I2,s.toDisplayString(y.name),1)]),C!==p.routeTxt.length-1?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["include include-assign",["include-assign-"+(y.assigneeRetain?"true":"false")]])},s.toDisplayString(p.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("div",B2," \u6570\u636E\u5F02\u5E38\uFF1A\u7F3A\u4E4F\u7528\u6237id\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u4EBA\u5458 "))]))),128))])])):s.createCommentVNode("",!0)])]))),256))])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[0]||(t[0]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1},r.entity,{onCallback:o.handleCallback}),null,16,["onCallback"])):s.createCommentVNode("",!0)]),_:1},8,["visible"]),s.createVNode(m,{visible:r.showFixedPerson,list:r.fixedPersonList,multiple:r.currentClickItem.loopCardinality==-1,select:r.fixedSelect[r.partObjId]||[],onUpdateList:o.handleClickFixedPerson,onUpdateVisible:o.updateFixedPersonVisible,onUpdateSelect:o.updateFixedSelect,onConfirm:o.handleSumbitFixedPerson},null,8,["visible","list","multiple","select","onUpdateList","onUpdateVisible","onUpdateSelect","onConfirm"]),s.createVNode(u,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])):s.createCommentVNode("",!0)}const S2=oe(By,[["render",x2],["__scopeId","data-v-91626814"]]),wA="",D2={name:"tree-person",components:{TreeNode:S2},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(t=>this.firstMultiCheckSub.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e,t=""){t&&Object.prototype.toString.call(e)=="[object Object]"?Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(i=>{e[i]||(e[i]=[""]),e[i]&&e[i].length>=1?this.multiNode[i]=e[i].filter(n=>n):this.multiNode[i]=e[i]}):this.multiNode=e:this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(n=>n!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(n=>n.id!=i.id),this.firstMultiType=this.firstMultiType.filter(n=>n!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheckSub.includes(i.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(n=>n!=i.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(n=>n.id!=i.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(n=>n!=i.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(n=>n.id!=i.id),t.forEach(n=>{delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id]}),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheckSub.push(i.id),this.firstMultiCheckItemSub.push(i),this.firstMultiTypeSub.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItemsSub.push(i.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(i),this.childrenEndItemsSub=!0),t.forEach(r=>{delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItemsSub||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(r=>{const o=this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id];Array.isArray(o)&&o.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},n.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(r.incomingConditionItemList)&&r.incomingConditionItemList.length>0&&(this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue)})}}}},P2={class:"test"},M2={key:0},V2={key:0},O2={key:0},L2={key:0,class:"treeperson-firstnode"},R2=["onClick"],v2={key:1,class:"treeperson-firstnode"},F2={key:2,class:"treeperson-firstnode"},j2=["onClick"],Q2={key:3,class:"treeperson-firstnode"},U2=["onClick"],_2={class:"treeperson-checkbox-box"},G2=["onClick"],q2={key:0,class:"treeperson-firstnode"},z2={class:"treeperson-checkbox-box"},J2=["onClick"],H2={key:0,class:"treeperson-firstnode"},K2=["onClick"],W2=["onClick"],Y2={class:"treeperson-title"};function Z2(e,t,i,n,r,o){const a=s.resolveComponent("tree-person",!0),l=s.resolveComponent("TreeNode");return s.openBlock(),s.createElementBlock("div",P2,[i.param.nodeLoading?(s.openBlock(),s.createElementBlock("div",M2,[...t[3]||(t[3]=[s.createElementVNode("span",null,"\u4E0B\u4E00\u8282\u70B9: ",-1),s.createElementVNode("b",{style:{"font-size":"16px"}},"\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......",-1)])])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.nodeItems&&r.nodeItems.length?(s.openBlock(),s.createElementBlock("div",V2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.nodeItems,(c,m)=>(s.openBlock(),s.createElementBlock("div",{class:"treeperson",key:m},[c.nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",O2," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):c.branches&&c.branches.length?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.nodeType=="nexting"&&c.nodeType!="inclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[c.nodeType=="exclusiveGateway"&&c.branches.length>1?(s.openBlock(),s.createElementBlock("div",L2,[t[5]||(t[5]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[4]||(t[4]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.id.includes("Flow")?u.nodeName||u.name?u.nodeName||u.name:u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:"":u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name||u.nodeName||u.name:u.nodeName||u.name),1)],10,R2))),128))])):c.nodeType=="exclusiveGateway"&&c.branches.length==1?(s.openBlock(),s.createElementBlock("div",v2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",null,[t[6]||(t[6]=s.createElementVNode("span",null,null,-1)),s.createVNode(a,{ref_for:!0,ref:"TreePersonRef",items:u.branches&&u.branches.length>0?u.branches:[u],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])]))),256))])):c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(s.openBlock(),s.createElementBlock("div",F2,[t[8]||(t[8]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u),key:p},[t[7]||(t[7]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,j2))),128))])):(s.openBlock(),s.createElementBlock("div",Q2,[t[10]||(t[10]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[9]||(t[9]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,U2))),128))])),r.childrenItems&&r.childrenItems.length>0&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?(s.openBlock(),s.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])):r.childrenItems&&r.childrenItems.length>1&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:5},[t[12]||(t[12]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createElementVNode("div",_2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.childrenItems,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstMultiCheckSub.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClickSub(u,r.childrenItems),key:p},[t[11]||(t[11]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,G2))),128))]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.filterMultiItemsSub(r.childrenItems),u=>(s.openBlock(),s.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[0]||(t[0]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):(s.openBlock(),s.createBlock(l,{key:6,items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):i.nodeType=="nexting"&&c.nodeType=="inclusiveGateway"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(s.openBlock(),s.createElementBlock("div",q2,[t[14]||(t[14]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createElementVNode("div",z2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstMultiCheck.includes(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-checkbox-active":""]),onClick:y=>o.handleMultiFirstNodeClick(u,c.branches),key:p},[t[13]||(t[13]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeInfoDTO?u.nodeInfoDTO.nodeName||u.nodeInfoDTO.name:u.nodeName||u.name),1)],10,J2))),128))])])):s.createCommentVNode("",!0),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.filterMultiItems(c.branches),u=>(s.openBlock(),s.createBlock(l,{items:u.branches&&u.branches.length>0?u.branches:[u.nodeInfoDTO?u.nodeInfoDTO:u],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[1]||(t[1]=p=>o.onMultiNode(p,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"]))),256))],64)):s.createCommentVNode("",!0)],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length>1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[t[16]||(t[16]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),c.type=="ExclusiveGatewayModel"&&c.branches.length==1?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",H2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-checkbox",r.firstCheck==u.id?"treeperson-checkbox-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.branches),key:p},[t[15]||(t[15]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeName||u.name),1)],10,K2))),128))])),s.createVNode(l,{items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:t[2]||(t[2]=u=>o.onMultiNode(u,"multi")),onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNodeObj","onOnVars"])],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:3},[t[17]||(t[17]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),i.nodeType=="nexting"?(s.openBlock(),s.createBlock(l,{key:0,items:[c.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])):(s.openBlock(),s.createBlock(l,{key:1,items:[c.branches[0]],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):c.id||c.nodeInfoDTO&&c.nodeInfoDTO.id?(s.openBlock(),s.createElementBlock(s.Fragment,{key:4},[i.nodeType=="nexting"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"&&c.nodeInfoDTO.branches&&c.nodeInfoDTO.branches.length>1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[t[19]||(t[19]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(c.nodeInfoDTO.branches,(u,p)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["treeperson-radio",r.firstCheck==(u.nodeInfoDTO?u.nodeInfoDTO.id:u.id)?"treeperson-radio-active":""]),onClick:y=>o.handleFirstNodeClick(u,c.nodeInfoDTO.branches),key:p},[t[18]||(t[18]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(u.nodeName||u.name),1)],10,W2))),128)),(s.openBlock(),s.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],64)):c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"&&c.nodeInfoDTO.branches&&c.nodeInfoDTO.branches.length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[t[20]||(t[20]=s.createElementVNode("div",{class:"treeperson-title"},[s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),s.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),s.createVNode(l,{items:[c.nodeInfoDTO.branches[0].nodeInfoDTO?c.nodeInfoDTO.branches[0].nodeInfoDTO:c.nodeInfoDTO.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[s.createElementVNode("div",Y2,[t[21]||(t[21]=s.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 ",-1)),s.createElementVNode("pre",null,"\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B94\uFF1A"+s.toDisplayString(i.nodeType),1),t[22]||(t[22]=s.createElementVNode("span",{class:"treeperson-title--re"},"*",-1))]),s.createVNode(l,{items:[c.nodeInfoDTO?c.nodeInfoDTO:c],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64))],64)):(s.openBlock(),s.createBlock(l,{key:1,items:[c],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:5},[],64))]))),128))])):s.createCommentVNode("",!0)],64))])}const X2=oe(D2,[["render",Z2],["__scopeId","data-v-45849350"]]),NA="",$2={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},e6={class:"top-popup-header"},t6={class:"header-title"},i6={class:"top-popup-body"},s6={class:"top-popup-drawer--body"},n6={class:"top-tips-header"},r6={class:"top-tips-body"},o6={class:"top-tips-footer"};function a6(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["top-popup-zindex",i.className]),style:s.normalizeStyle(`${i.isIndex?`z-index:${i.isIndex}`:""}`)},[s.createElementVNode("div",{class:"top-popup-mask",style:s.normalizeStyle(r.show&&i.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>i.isMaskClose&&o.handleClose())},null,4),!i.isTips&&!i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-popup",style:s.normalizeStyle(r.show?"transform: translateY(0)":"transform: translateY(150%)")},[s.createElementVNode("div",e6,[s.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>o.handleCancel&&o.handleCancel(...a))},s.toDisplayString(i.cancelText),1),s.createElementVNode("div",t6,s.toDisplayString(i.titleText),1),s.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>o.handleComfig&&o.handleComfig(...a))},s.toDisplayString(i.comfigText),1)]),s.createElementVNode("div",i6,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!i.isTips&&i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["top-popup-drawer",r.show?"top-popup-drawer--active":""]),style:s.normalizeStyle(i.width?`width:${i.width};`:"")},[s.createElementVNode("div",s6,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):i.isTips&&!i.isDrawer?(s.openBlock(),s.createElementBlock("div",{key:2,class:"top-tips",style:s.normalizeStyle(r.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[s.createElementVNode("div",n6,s.toDisplayString(i.titleText),1),s.createElementVNode("div",r6,s.toDisplayString(i.context),1),s.createElementVNode("div",o6,[s.createElementVNode("div",{class:"top-tips-btn",onClick:t[3]||(t[3]=(...a)=>o.handleCancel&&o.handleCancel(...a))},s.toDisplayString(i.cancelText),1),s.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>o.handleComfig&&o.handleComfig(...a))},s.toDisplayString(i.comfigText),1)])],4)):s.createCommentVNode("",!0)],6)}const Fa=oe($2,[["render",a6],["__scopeId","data-v-06a80662"]]),TA="",l6={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Fa},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,n),this.currentPath.push({x:i,y:n})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,n),this.ctx.stroke(),this.currentPath.push({x:i,y:n})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:n}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,n)):(this.ctx.lineTo(i,n),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),o=new File([i],"text.txt").size/1024;if(o<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(o>300)return null;{let a,l;if(t<.005)return null;if(t-.05>0){a=t-.05;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}else{a=t/2;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let n=e.width/window.devicePixelRatio,r=e.height/window.devicePixelRatio,o=t*Math.PI/180,a=Math.max(n*Math.abs(Math.cos(o)),r*Math.abs(Math.sin(o))),l=Math.max(n*Math.abs(Math.sin(o)),r*Math.abs(Math.cos(o)));const c=document.createElement("canvas"),m=c.getContext("2d");c.width=a,c.height=l,m.translate(a/2,l/2),m.rotate(o),m.drawImage(e,-n/2,-r/2,n,r),c.toBlob(u=>{this.uploadImage(u)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const n=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!n.success)return;let r=JSON.parse(localStorage.getItem("signaturesArr"))||[];r.unshift(n.data),this.historyPics=r.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",n.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const n=t.offsetWidth,r=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${n}px`,i.style.height=`${r}px`,i.width=n*window.devicePixelRatio,i.height=r*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},c6={class:"canvas-container"},d6={key:0,class:"tips"},p6={class:"history"},h6=["src"],u6=["src"],m6=["src"],f6={class:"actions-area"};function g6(e,t,i,n,r,o){const a=s.resolveComponent("signDrawer");return s.openBlock(),s.createElementBlock("div",{class:"sign-container",style:s.normalizeStyle(o.setDynamicVars)},[s.createElementVNode("div",c6,[r.paths.length==0&&r.currentPath.length==0?(s.openBlock(),s.createElementBlock("div",d6,"\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")):s.createCommentVNode("",!0),s.createElementVNode("canvas",{ref:"canvasRef",onTouchmove:t[0]||(t[0]=(...l)=>o.draw&&o.draw(...l)),onTouchstart:t[1]||(t[1]=(...l)=>o.startDrawing&&o.startDrawing(...l)),onTouchend:t[2]||(t[2]=(...l)=>o.finishDrawing&&o.finishDrawing(...l)),id:"canvas-id","canvas-id":"canvas-id",class:s.normalizeClass({"uni-canvas-style":o.isUniCanvas()})},null,34)]),s.createElementVNode("div",p6,[s.createElementVNode("div",{class:"img-grid",onClick:t[3]||(t[3]=l=>o.useHistory(0))},[r.historyPics[0]?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[0]?r.historyPics[0].url:"",fit:"scale-down"},null,8,h6)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:"img-grid",onClick:t[4]||(t[4]=l=>o.useHistory(1))},[r.historyPics[1]&&r.historyPics[1].url?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[1].url,fit:"scale-down"},null,8,u6)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:"img-grid",onClick:t[5]||(t[5]=l=>o.useHistory(2)),style:{"margin-right":"10rpx"}},[r.historyPics[2]&&r.historyPics[2].url?(s.openBlock(),s.createElementBlock("img",{key:0,src:r.historyPics[2].url,fit:"scale-down"},null,8,m6)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",f6,[s.createElementVNode("button",{onClick:t[6]||(t[6]=(...l)=>o.confirmSave&&o.confirmSave(...l)),class:"btns-common cmf-btn"},"\u786E\u8BA4"),s.createElementVNode("button",{onClick:t[7]||(t[7]=(...l)=>o.cancelSign&&o.cancelSign(...l)),class:"btns-common"},"\u8FD4\u56DE"),s.createElementVNode("button",{onClick:t[8]||(t[8]=(...l)=>o.undo&&o.undo(...l)),class:"btns-common"},"\u64A4\u9500"),s.createElementVNode("button",{onClick:t[9]||(t[9]=(...l)=>o.clearCanvas&&o.clearCanvas(...l)),class:"btns-common"},"\u6E05\u7A7A")]),s.createVNode(a,{visible:r.confirmVisible,"onUpdate:visible":t[10]||(t[10]=l=>r.confirmVisible=l),ref:"TopPopupSign",titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:o.saveSignature},null,8,["visible","comfig"])],4)}const y6=oe(l6,[["render",g6],["__scopeId","data-v-d91bfd13"]]),IA="",A6={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,MsgList:Qi,TreePerson:X2,TopSign:y6,signDrawer:Fa},computed:{check(){return Un},checkS(){return Iy},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let n="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(n=o),l});return r?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const n=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let r=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData[0].branches[0],o?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let r="";return n.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(r=>r);return n&&n.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),t.length>0){let n="";const r=t.every(o=>{let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(n=o),l});return r?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const n=this.findUserTaskNode(this.nextNodeData.branches[0]);let r=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const o=r&&r.length>0;return this.nextNodeData.branches[0],o?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let r="";return n.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(r=>r);return n&&n.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.nodeLoading":{handler(e,t){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})}))}},"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth/user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,n)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((n,r)=>{t=n.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,r)=>{i.push({type:3,id:n})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((r,o)=>{n.push({type:3,id:r,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,n)=>{t.push({type:3,id:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let i=0;if(this.radioCheckNameList.map((n,r)=>{(!this.multiNodeParticipant[n]||!this.multiNodeParticipant[n].length)&&this.radioCheckChild.map((o,a)=>{o.id==n&&(o.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||o.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!o.childNode||!o.childNode.length?i+=1:this.radioCheckNode.map((l,c)=>{(!this.multiNodeParticipant[l]||!this.multiNodeParticipant[l].length)&&(i+=1),e[l]=this.multiNodeParticipant[l]}))}),e[n]=this.multiNodeParticipant[n]}),i>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(i=>{let n=this.param.vars||this.gateVars||{};n[i.itemName]||(n[i.itemName]="")}),this.handleTips("",!0,"loading");let t=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(e).forEach(l=>{Array.isArray(e[l])&&(e[l]=e[l].filter(c=>c)),(!e[l]||Array.isArray(e[l])&&e[l].length<=0)&&delete e[l]});let n=i&&i.nodeType!="endEvent"&&(!i.branches||i.branches.length<=0),r=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&i.branches[0].nodeInfoDTO&&i.branches[0].nodeInfoDTO.nodeType!="endEvent",o=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&!i.branches[0].nodeInfoDTO&&i.branches[0].nodeType!="endEvent";if((n||r||o)&&!Object.keys(e).length){let c={};return n?c=i:r?c=i.branches[0].nodeInfoDTO:o&&(c=i.branches[0]),this.handleTips(c.nodeType?"\u8BF7\u9009\u62E9["+c.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists)}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,comment:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let n=0;if(this.radioCheckNameList.map((r,o)=>{(!this.multiNodeParticipant[r]||!this.multiNodeParticipant[r].length)&&this.radioCheckChild.map((a,l)=>{a.id==r&&(a.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||a.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!a.childNode||!a.childNode.length?n+=1:this.radioCheckNode.map((c,m)=>{(!this.multiNodeParticipant[c]||!this.multiNodeParticipant[c].length)&&(n+=1),t[c]=this.multiNodeParticipant[c]}))}),t[r]=this.multiNodeParticipant[r]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=(!1)(this.param.incomingConditionItemList||[]).forEach(n=>{let r=this.param.vars||this.gateVars||{};r[n.itemName]||(r[n.itemName]="")});let i=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const n=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;n.setPersonnel?i=n.assignees:i=(this.partNodeArr[n.id]||[]).map(c=>({id:c.id,name:c.name})),Object.keys(t).forEach(c=>{Array.isArray(t[c])&&(t[c]=t[c].filter(m=>m)),(!t[c]||Array.isArray(t[c])&&t[c].length<=0)&&delete t[c]});let r=n&&n.nodeType!="endEvent"&&(!n.branches||n.branches.length<=0),o=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&n.branches[0].nodeInfoDTO&&n.branches[0].nodeInfoDTO.nodeType!="endEvent",a=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&!n.branches[0].nodeInfoDTO&&n.branches[0].nodeType!="endEvent";if((r||o||a)&&!Object.keys(t).length){let m={};return r?m=n:o?m=n.branches[0].nodeInfoDTO:a&&(m=n.branches[0]),this.handleTips(m.nodeType?"\u8BF7\u9009\u62E9["+m.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,comment:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,r="";n=t.find(a=>a.name=="completeButtonAnnex"),r=n?n.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},C6={class:"process-popup-content"},k6={key:0,class:"process-popup-content-msg"},b6={key:0,class:"process-pc-label"},E6={key:1,class:"process-pc-value",style:{display:"flex"}},w6={class:"process-radio",style:{width:"100%"}},N6=["onClick"],T6=["onClick"],I6={key:2},B6={class:"process-pc-label"},x6={key:0,class:"process-pc-label--re"},S6={class:"process-pc-value"},D6={class:"process-popup-textarea"},P6={class:"process-popup-textarea-num"},M6={key:0,class:"msg-btn"},V6={key:0},O6={key:1},L6={key:2},R6={style:{height:"100%"}},v6={style:{height:"100%"}};function F6(e,t,i,n,r,o){const a=s.resolveComponent("TreePerson"),l=s.resolveComponent("TopTips"),c=s.resolveComponent("departPerson"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("MsgList"),p=s.resolveComponent("attchViews"),y=s.resolveComponent("TopSign"),C=s.resolveComponent("signDrawer");return s.openBlock(),s.createElementBlock("div",C6,[i.param.ProcessInsObj&&i.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(s.openBlock(),s.createElementBlock("div",k6,[i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",b6,"\u5FEB\u6377\u56DE\u590D")):s.createCommentVNode("",!0),i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",E6,[s.createElementVNode("div",w6,[i.param.isDocument?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.msgCheckList,E=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["process-radio-item",E==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=E},[t[8]||(t[8]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(E),1)],10,N6))),256)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.msgCheckListS,E=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["process-radio-item",E==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=E},[t[9]||(t[9]=s.createElementVNode("span",null,null,-1)),s.createTextVNode(" "+s.toDisplayString(E),1)],10,T6))),256)),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",{key:2,class:"process-radio-item",onClick:t[0]||(t[0]=E=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),i.param.isMsg&&!i.param.isQuickReply?(s.openBlock(),s.createElementBlock("div",I6,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[1]||(t[1]=E=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),s.createElementVNode("div",B6,[t[10]||(t[10]=s.createTextVNode(" \u5BA1\u6279\u610F\u89C1 ",-1)),i.param.isRequire?(s.openBlock(),s.createElementBlock("span",x6,"*")):s.createCommentVNode("",!0)]),s.createElementVNode("div",S6,[s.createElementVNode("div",D6,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[2]||(t[2]=E=>r.commentMsg=E),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",P6,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",M6,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[3]||(t[3]=E=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"process-popup-content-person",style:s.normalizeStyle({display:i.param.ProcessInsObj.taskParentId?"none":"block"})},[i.param.ProcessInsObj.taskParentId?(s.openBlock(),s.createElementBlock("div",V6)):r.nextNodeData.length==1&&r.nextNodeData[0].nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",O6," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):r.nextNodeData&&r.nextNodeData.nodeType=="endEvent"?(s.openBlock(),s.createElementBlock("div",L6," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):i.param.ProcessInsObj.taskParentId?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(a,{key:3,ref:"TreePersonRef",items:r.nextNodeData,nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],4),s.renderSlot(e.$slots,"completeSlot",{},void 0,!0),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(m,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=E=>r.visible=E),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",R6,[r.visible?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,isTitle:!1,visible:r.visible},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),s.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=E=>r.visibleListMsg=E),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=E=>r.visibleMsgComfig=E)},null,8,["context","cancel","comfig","visible"]),r.labels=="1"?(s.openBlock(),s.createBlock(p,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(C,{visible:r.signVisible,"onUpdate:visible":t[7]||(t[7]=E=>r.signVisible=E),ref:"TopPopupSign",titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},{default:s.withCtx(()=>[s.createElementVNode("div",v6,[r.signVisible?(s.openBlock(),s.createBlock(y,{key:0,request:i.param.request,onSaveSignature:o.handleSignature,onValidateFail:o.noticeFail,onClose:o.handleClose},null,8,["request","onSaveSignature","onValidateFail","onClose"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"])])}const ja=oe(A6,[["render",F6],["__scopeId","data-v-f7279685"]]),BA="",j6={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,MsgList:Qi},watch:{param:{async handler(e,t){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},Q6={class:"process-popup-content"},U6={class:"process-popup-content-msg"},_6={key:0},G6={class:"process-pc-value"},q6={class:"process-popup-textarea"},z6={class:"process-popup-textarea-num"},J6={key:0,class:"msg-btn"},H6={key:0,class:"process-popup-content-person"},K6=["onClick"],W6={class:"process-pc-value--people"},Y6={key:0,class:"process-pc-value--data"},Z6={key:1,class:"process-pc-value--data",style:{color:"#888"}},X6={style:{"font-size":"15px"}},$6={style:{height:"100%"}};function e4(e,t,i,n,r,o){const a=s.resolveComponent("TopTips"),l=s.resolveComponent("departPerson"),c=s.resolveComponent("TopPopup"),m=s.resolveComponent("attchViews"),u=s.resolveComponent("MsgList");return s.openBlock(),s.createElementBlock("div",Q6,[s.createElementVNode("div",U6,[i.param.isMsg?(s.openBlock(),s.createElementBlock("div",_6,[s.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=p=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):s.createCommentVNode("",!0),t[7]||(t[7]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",G6,[s.createElementVNode("div",q6,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",z6,s.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(s.openBlock(),s.createElementBlock("div",J6,[s.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=p=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):s.createCommentVNode("",!0)])]),r.taskNode&&r.taskNode.length>0&&r.taskNode[0].taskState!=4?(s.openBlock(),s.createElementBlock("div",H6,[r.nextNodeData.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(r.nextNodeData,p=>{var y,C;return s.openBlock(),s.createElementBlock(s.Fragment,null,[o.isOption((C=(y=p==null?void 0:p.userTaskModelDTO)==null?void 0:y.humanPerformer)==null?void 0:C.name)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",null,[s.createTextVNode(s.toDisplayString(p.userTaskModelDTO.name)+" ",1),t[8]||(t[8]=s.createElementVNode("br",null,null,-1)),t[9]||(t[9]=s.createTextVNode(" \u5BA1\u6279\u4EBA ",-1)),t[10]||(t[10]=s.createElementVNode("span",{class:"process-pc-label--re"},"*",-1))]),s.createElementVNode("div",{class:"process-pc-value",onClick:E=>o.handleOpenPopup(p.id)},[s.createElementVNode("div",W6,[r.partNode[p.id]&&r.partNode[p.id].length?(s.openBlock(),s.createElementBlock("div",Y6,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.partNode[p.id],(E,v)=>(s.openBlock(),s.createElementBlock("span",null,s.toDisplayString(v==0?E:`,${E}`),1))),256))])):(s.openBlock(),s.createElementBlock("div",Z6,[...t[11]||(t[11]=[s.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])]))])],8,K6)],64)):s.createCommentVNode("",!0)],64)}),256)):r.outGatewayUserTaskModel.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(r.outGatewayUserTaskModel,p=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[o.isOption(p.humanPerformerName)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",X6,s.toDisplayString(p.name),1),t[13]||(t[13]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u5BA1\u6279\u4EBA "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",{class:"process-pc-value",onClick:t[3]||(t[3]=(...y)=>o.handleOpenPopup&&o.handleOpenPopup(...y))},[...t[12]||(t[12]=[s.createElementVNode("div",{class:"process-pc-value--people"},s.toDisplayString(234),-1)])])],64)):s.createCommentVNode("",!0)],64))),256)):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(c,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=p=>r.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:s.withCtx(()=>[s.createElementVNode("div",$6,[r.visible?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):s.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="\u62D2\u7EDD"?(s.openBlock(),s.createBlock(m,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0),s.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(u,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const t4=oe(j6,[["render",e4],["__scopeId","data-v-59b811ec"]]),xA="",i4={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,attchViews:$t,TopPopup:Fe,departPerson:At.departPerson,TopDownSelect:La,MsgList:Qi},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},s4={class:"process-popup-content"},n4={class:"process-popup-content-msg"},r4={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},o4={class:"process-pc-value"},a4={class:"process-popup-textarea"},l4={class:"process-popup-textarea-num"};function c4(e,t,i,n,r,o){const a=s.resolveComponent("TopDownSelect"),l=s.resolveComponent("TopTips"),c=s.resolveComponent("MsgList"),m=s.resolveComponent("TopPopup"),u=s.resolveComponent("attchViews");return s.openBlock(),s.createElementBlock("div",s4,[s.createElementVNode("div",n4,[t[3]||(t[3]=s.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[s.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",r4,[s.createVNode(a,{option:r.option,onChange:o.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),t[4]||(t[4]=s.createElementVNode("div",{class:"process-pc-label"},[s.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),s.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),s.createElementVNode("div",o4,[s.createElementVNode("div",a4,[s.withDirectives(s.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>r.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[s.vModelText,r.commentMsg]]),s.createElementVNode("div",l4,s.toDisplayString(r.commentMsg.length)+"/200 ",1)])])]),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),s.createVNode(m,{visible:r.visibleListMsg,"onUpdate:visible":t[1]||(t[1]=p=>r.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:s.withCtx(()=>[s.createVNode(c,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),s.createVNode(m,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[2]||(t[2]=p=>r.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),r.labels=="\u9000\u56DE"?(s.openBlock(),s.createBlock(u,{key:0,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):s.createCommentVNode("",!0)])}const d4=oe(i4,[["render",c4],["__scopeId","data-v-fcd1a869"]]),SA="",p4={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:it,departPerson:At.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},h4={style:{height:"100%"}};function u4(e,t,i,n,r,o){const a=s.resolveComponent("departPerson"),l=s.resolveComponent("TopTips");return s.openBlock(),s.createElementBlock("div",h4,[i.param.visible?(s.openBlock(),s.createBlock(a,s.mergeProps({key:0,isTitle:!1,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["request","onCallback","onCancel"])):s.createCommentVNode("",!0),s.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])}const m4=oe(p4,[["render",u4]]),DA="",f4={name:"nf-button",components:{TopTips:it},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{process:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const n=i.data;this.backNodes=n})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},g4={class:"process-btns"},y4=["disabled"],A4={key:0},C4={key:1},k4=["disabled"],b4={key:0},E4={key:1},w4=["disabled"],N4=["disabled"],T4=["disabled"],I4=["disabled"],B4=["disabled"],x4=["disabled"],S4=["disabled"],D4=["disabled"],P4=["disabled"];function M4(e,t,i,n,r,o){return s.openBlock(),s.createElementBlock("div",g4,[i.process.status=="todo"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[o.getButton("wf_pass")?(s.openBlock(),s.createElementBlock("button",{key:0,class:"process-button success",size:"default",disabled:i.loading,onClick:t[0]||(t[0]=a=>e.$emit("examine",!0,["deleted"].includes(i.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":o.getButton("wf_pass").name))},[["deleted"].includes(i.process.processIsFinished)?(s.openBlock(),s.createElementBlock("span",A4,"\u91CD\u65B0\u63D0\u4EA4")):(s.openBlock(),s.createElementBlock("span",C4,s.toDisplayString(o.getButton("wf_pass").name),1))],8,y4)):s.createCommentVNode("",!0),o.getButton("wf_reject")?(s.openBlock(),s.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[1]||(t[1]=a=>e.$emit("examine",!1,(r.backNodes.length>1,o.getButton("wf_reject").name)))},[r.backNodes.length>1?(s.openBlock(),s.createElementBlock("span",b4,s.toDisplayString(o.getButton("wf_reject").name),1)):(s.openBlock(),s.createElementBlock("span",E4,s.toDisplayString(o.getButton("wf_reject").name),1))],8,k4)):s.createCommentVNode("",!0),i.uid==(i.process.variables||{}).applyUserId?(s.openBlock(),s.createElementBlock("button",{key:2,size:"default",class:"process-button info",disabled:i.loading,onClick:t[2]||(t[2]=a=>e.$emit("reminders"))},[...t[11]||(t[11]=[s.createElementVNode("span",null,"\u50AC\u529E",-1)])],8,w4)):s.createCommentVNode("",!0),o.getButton("wf_transfer")?(s.openBlock(),s.createElementBlock("button",{key:3,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[3]||(t[3]=a=>e.$emit("user-select",{type:"transfer",checkType:"radio",name:o.getButton("wf_transfer").name}))},s.toDisplayString(o.getButton("wf_transfer").name),9,N4)):s.createCommentVNode("",!0),o.getButton("wf_delegate")?(s.openBlock(),s.createElementBlock("button",{key:4,class:"process-button warning",size:"default",disabled:i.loading,onClick:t[4]||(t[4]=a=>e.$emit("user-select",{type:"delegate",checkType:"radio",name:o.getButton("wf_delegate").name}))},s.toDisplayString(o.getButton("wf_delegate").name),9,T4)):s.createCommentVNode("",!0),o.getButton("wf_rollback")?(s.openBlock(),s.createElementBlock("button",{key:5,class:"process-button success",size:"default",disabled:i.loading,onClick:t[5]||(t[5]=a=>e.$emit("rollback",o.getButton("wf_rollback").name))},s.toDisplayString(o.getButton("wf_rollback").name),9,I4)):s.createCommentVNode("",!0),o.getButton("wf_terminate")?(s.openBlock(),s.createElementBlock("button",{key:6,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[6]||(t[6]=a=>e.$emit("terminate"))},s.toDisplayString(o.getButton("wf_terminate").name),9,B4)):s.createCommentVNode("",!0),i.process.isMultiInstance&&o.getButton("wf_add_instance")?(s.openBlock(),s.createElementBlock("button",{key:7,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[7]||(t[7]=a=>e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:o.getButton("wf_add_instance").name}))},s.toDisplayString(o.getButton("wf_add_instance").name),9,x4)):s.createCommentVNode("",!0),o.getButton("wf_cctask")?(s.openBlock(),s.createElementBlock("button",{key:8,class:"process-button info",size:"default",disabled:i.loading,onClick:t[8]||(t[8]=a=>e.$emit("circulate",o.getButton("wf_cctask").name))},[s.createElementVNode("span",null,s.toDisplayString(o.getButton("wf_cctask").name),1)],8,S4)):s.createCommentVNode("",!0)],64)):s.createCommentVNode("",!0),i.process.isOwner&&i.process.isReturnable&&!["deleted"].includes(i.process.processIsFinished)?(s.openBlock(),s.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[9]||(t[9]=a=>e.$emit("withdraw","\u64A4\u9500"))}," \u64A4\u9500 ",8,D4)):s.createCommentVNode("",!0),o.getButton("wf_print")?(s.openBlock(),s.createElementBlock("button",{key:2,class:"process-button info",size:"default",disabled:i.loading,onClick:t[10]||(t[10]=a=>e.$emit("print"))},s.toDisplayString(o.getButton("wf_print").name),9,P4)):s.createCommentVNode("",!0)])}const V4=Ye({name:"TopProcess",provide(){return{request:this.request}},components:{processBtns:oe(f4,[["render",M4],["__scopeId","data-v-5024d104"]]),TopTab:eg,TopPopup:Fe,TopTips:it,TopSumbitPopup:va},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},taskId:{require:!1,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},businessSubjectId:{default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{},historyFlow:[]},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001",userAudit:""}},watch:{processInstId:{async handler(e,t){this.$nextTick(()=>{this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.processInstId,taskId:this.taskId}:{processInstId:this.processInstId}}).then(i=>{var n;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data};let r=(this.ProcessInsObj.flow||[]).filter(c=>["userTask"].includes(c.historyActivityType)&&c.createTime),o=r[r.length-1].assigneeName;if(console.error(o,"user1"),!o){let c=r[r.length-1];o=c.comments[c.comments.length-1].userId||""}console.error(o,"user2"),this.userAudit=o,this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((n=i.data)==null?void 0:n.flow)||[]).filter(c=>["userTask","candidate"].includes(c.historyActivityType));const a=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=a;const l=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=l,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())})},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(this.getButton("wf_pass"),this.needResubmit&&t.status=="todo"&&this.userIdData&&t.isOwner&&["deleted"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let r={};r.name="\u91CD\u65B0\u63D0\u4EA4",r.btnProps={type:"default"},e.push(r),r.click=o=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let r={};r.name=this.getButton("wf_pass").name,r.btnProps={type:"primary"},e.push(r),r.click=o=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let r={};r.name=this.getButton("wf_reject").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(r=>{let o={};o.name=r.name,o.btnProps={type:r.type},e.push(o),o.click=r.click}),["wf_edit"].map(r=>{if(!this.isView&&t.status=="todo"&&this.getButton(r)){let o={};o.name=this.getButton(r).name,o.btnProps={},o.key=o.name,o.click=()=>{this.$emit("clickCustomButton",o.name)},e.push(o)}}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let r={};r.name=this.getButton("wf_rollback").name,r.btnProps={type:"danger"},e.push(r),r.click=o=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let r={};r.name=this.getButton("wf_cctask").name,r.btnProps={type:"default"},r.click=async o=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let r={};r.name=this.getButton("wf_delegate").name,r.btnProps={type:"warning"},r.key="cc2",r.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let r={};r.name=this.getButton("wf_terminate").name,r.btnProps={type:"danger"},r.key="cc3",r.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(r)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let r={};r.name=this.getButton("wf_transfer").name,r.btnProps={type:"default"},r.click=o=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(r)}if(t.status=="todo"&&this.getButton("wf_add_instance")){let r={};r.name=this.getButton("wf_add_instance").name,r.btnProps={type:"primary"},r.click=o=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(r)}if(t.isReturnable&&t.isOwner){let r={};r.name="\u50AC\u529E",r.btnProps={type:"default"},r.click=o=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(r)}if(t.isOwner&&t.isReturnable&&!["deleted"].includes(t.processIsFinished)){let r={};r.name="\u64A4\u9500",r.btnProps={type:"default"},r.click=o=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(r)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:this.taskId?{processInstId:this.processIntId,taskId:this.taskId}:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const t={};if(t.currentProcessOriginData=e.data||[],t.currentProcessOriginData.length>0){let i=t.currentProcessOriginData[0],n=(i.currentName||"").split(","),r=(i.avatar||"").split(",");n=n.map((o,a)=>({realName:o,avatar:r[a]||"",phone:"",ancestorNames:[]})),t.currentMan=n,t.currentFirstNode=i,this.currentProcess=t}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(ja,e)}):this.showOperation(ja,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(t4,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(Ty,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(ry,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(d4,e)},handleTerminateProcess(){},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){this.showOperation(m4,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(n){console.error(n),t={}}let i=t.data||{};t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),t.code==200&&t.data.evaluation&&t.data.branches&&t.data.branches.length>0&&t.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:r})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let n=0;n<this.nextNodeData.length;n++)this.approveNode=this.nextNodeData[n]}else{let n=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(n,"")}},async getSelectFixData(e,t){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let n=0;n<i.branches.length;n++){let r=i.branches[n],o=r.nodeInfoDTO?r.nodeInfoDTO:r;try{o=await this.getSelectFixData(o,t)}catch(a){}r.nodeInfoDTO?r.nodeInfoDTO=o:r=o,i.branches[n]=r}else if(i.nodeType=="userTask"&&!i.setPersonnel){let n=Pa(i),r;try{r=await this.getNodeUser({deptId:t,intersection:n.intersection?1:0,userIds:n.userIds,postIds:n.postIds,deptIds:n.deptIds}),r.code==$enum.apiCode.success}catch(o){}r.code==200&&(i.userList=r.data)}return i},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let n=0;n<i.data.length;n++){let r=i.data[n];r.incomingConditionItemList&&r.incomingConditionItemList.length!==0&&(r.nodeInfoDTO.incomingConditionItemList=r.incomingConditionItemList,this.incomingConditionItemList.push(...r.incomingConditionItemList)),r.nodeInfoDTO.nodeType!="userTask"&&(r.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,r.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,n,r){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=n||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=n||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,r){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId,subjectId:this.formData.subjectId||this.businessSubjectId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),MA="",O4={class:"process-warp"},L4={key:0,class:"process-main",id:"process-header",ref:"processheader"},R4={class:"process-ml-item border"},v4={class:"process-mli-value"},F4={class:"process-ml-item border"},j4={class:"process-mli-value"},Q4={key:0,class:"process-ml-item"},U4={class:"process-mli-value",style:{width:"50%","text-align":"right"}},_4={class:"process-mliv-jd"},G4=["slot"],q4={slot:"default",style:{height:"100%"}},z4=["slot"],J4={key:0,class:"footBtnRow"},H4=["onClick"],K4={slot:"completeSlot"},W4=["onClick"],Y4=["onClick"],Z4={slot:"completeSlot"};function X4(e,t,i,n,r,o){const a=s.resolveComponent("TopTab"),l=s.resolveComponent("TopPopup"),c=s.resolveComponent("TopTips"),m=s.resolveComponent("TopSumbitPopup");return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",O4,[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?(s.openBlock(),s.createElementBlock("div",L4,[s.createElementVNode("div",R4,[t[5]||(t[5]=s.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),s.createElementVNode("div",v4,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(s.openBlock(),s.createElementBlock("div",{key:0,class:"process-mliv-dd",style:s.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},s.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",F4,[t[6]||(t[6]=s.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),s.createElementVNode("div",j4,[s.createElementVNode("span",null,s.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(s.openBlock(),s.createElementBlock("div",Q4,[t[7]||(t[7]=s.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),s.createElementVNode("div",U4,[s.createElementVNode("span",_4,s.toDisplayString(`${e.userAudit}\u5BA1\u6279\u4E2D`),1)])])):s.createCommentVNode("",!0)],512)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"process-card",style:s.normalizeStyle({height:e.processCardHeight})},[s.createVNode(a,{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:s.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.selfTapList,(u,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,slot:u.slot,style:{height:"100%"}},[s.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,G4))),128)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",q4,[s.renderSlot(e.$slots,"default",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tapList,(u,p)=>(s.openBlock(),s.createElementBlock("div",{style:{height:"100%"},key:p,slot:u.slot},[s.renderSlot(e.$slots,u.slot,{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)],8,z4))),128))],64))]),_:3},8,["ProcessInsObj","processXml","approvalData","tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:s.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(s.openBlock(),s.createElementBlock("div",J4,[s.renderSlot(e.$slots,"btn",{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-button",style:s.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.operBtn,(u,p)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[p<3?(s.openBlock(),s.createElementBlock("div",{class:"top-button",style:s.normalizeStyle(e.getBtnStyle((u.btnProps.type||"default").toString())),key:u.name,onClick:y=>u.click(u.name)},s.toDisplayString(u.name),13,H4)):s.createCommentVNode("",!0)],64))),256)):s.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:"elips",onClick:t[0]||(t[0]=(...u)=>e.handleActionOpen&&e.handleActionOpen(...u))},[...t[8]||(t[8]=[s.createElementVNode("div",{class:"circle"},null,-1),s.createElementVNode("div",{class:"circle"},null,-1),s.createElementVNode("div",{class:"circle"},null,-1)])])):s.createCommentVNode("",!0)],64))],64))],4))]),s.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":t[1]||(t[1]=u=>e.TopPopup1=u),className:"toppopup-component"},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.operationCom),{key:e.operationComKey,ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:s.withCtx(()=>[s.createElementVNode("div",K4,[s.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),s.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),s.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(s.openBlock(),s.createElementBlock("div",{key:0,class:"top-elips",style:s.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(e.taskNodeList,u=>(s.openBlock(),s.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(u),key:u.taskId},s.toDisplayString(u.name),9,W4))),128)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(e.actionBtn,u=>(s.openBlock(),s.createElementBlock("div",{class:"top-elips-items",onClick:p=>u.click(u.name),key:u.name},s.toDisplayString(u.name),9,Y4))),128)),s.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...u)=>e.handleActionClose&&e.handleActionClose(...u))}," \u53D6\u6D88 ")],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...u)=>e.handleActionClose&&e.handleActionClose(...u)),style:s.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),s.createVNode(m,s.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"]),s.createVNode(l,{ref:"cctaskTopPopup",titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,"onUpdate:visible":t[4]||(t[4]=u=>e.cctaskTopPopup=u),isDrawer:!0},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(e.operationCom),{ref:"cctaskOperationRef",param:e.operationParam,onHandleClosecctaskTopPopup:e.handleClosecctaskTopPopup},{default:s.withCtx(()=>[s.createElementVNode("div",Z4,[s.renderSlot(e.$slots,"completeSlot",{processData:e.ProcessInsObj,currentProcess:e.currentProcess},void 0,!0)])]),_:3},40,["param","onHandleClosecctaskTopPopup"]))]),_:3},8,["titleText","visible"])])}const $4=oe(V4,[["render",X4],["__scopeId","data-v-a4d60af3"]]),Qa={name:"ddy-process-h5",version:"1.0.1-rc.3.115",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Qa.name+"%c v"+Qa.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),qe.TopProcess=$4,qe.TopSumbitPopup=va,qe.ViewAttchList=Jr,qe.attchViews=$t,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});