"use strict";(self.webpackChunkWebComponents=self.webpackChunkWebComponents||[]).push([[824],{8824:(t,e,i)=>{i.r(e),i.d(e,{ShowEval:()=>n});var s=i(78673);class n extends s.A{constructor(t){super(t),this.divid=t.orig.id,this.containerDiv=t.orig,this.containerDiv.classList.add("showEval");let e=[];for(let i of t.raw)e.push(i.replace(/\\/g,""));this.steps=e.slice(),this.currentStep=0,this.createTrace=$(t.orig).data("tracemode"),this.rb=new s.A(t),this.currentStepDiv=$("
").addClass("currentStepDiv"),$(this.containerDiv).append(this.currentStepDiv),this.currentStepDiv.append($("").addClass("pre")),this.currentStepDiv.append($("").addClass("eval")),this.currentStepDiv.append($("").addClass("post")),this.currentStepDiv.append($("
").addClass("anno")),this.setNextButton(`#${this.divid}_nextStep`),this.setResetButton(`#${this.divid}_reset`);for(var i=0;i").addClass("showEval evalCont").hide().html(t);$("body").append(e);var i=e.width()+1;return e.remove(),i}createPreviousStepDiv(t){this.currentStepDiv.before($("
").addClass("previousStep").html(this.steps[t][0]+this.steps[t][1]+this.steps[t][3]))}evaluateStep(t,e){if(this.currentStepDiv.children(".anno").hide(),$(t).attr("disabled",!0),void 0===e&&(e=this.currentStep),this.currentStep>=this.steps.length)return void $(t).attr("disabled",!1);var i=0;this.createTrace&&(this.createPreviousStepDiv(e),this.currentStepDiv.hide(),i=200);let s=this.getWidth(this.steps[e][2]);var n=this.currentStepDiv.children(".eval"),r=this;n.css("color","red"),this.currentStepDiv.fadeTo(i,1,(function(){window.setTimeout((function(){n.fadeTo(400,0,(function(){n.animate({width:s,duration:400},(function(){n.html(r.steps[e][2]),n.fadeTo(400,1,(function(){window.setTimeout((function(){n.css("color","#333"),r.currentStep+=1,r.currentStep