1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[957],{17483:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>w});var a=i(37876),n=i(14232),r=i(36544),l=i(13157),s=i(72620),o=i(39683),c=i(6233),d=i(93709),h=i(25918),u=i(48216),x=i(1289),p=i(15039),v=i.n(p),m=i(15669),y=i(94359),b=i(16634),g=i(68995),_=i(51211),f=i(39797),C=i(34573),j=i(54335),N=i.n(j),S=i(22640);let A=e=>{var t;let i=null!=(t=null==e?void 0:e.MATERIALNAME)?t:(null==e?void 0:e.LEGEND)?(0,f.G9)(e.LEGEND):"Material";return(null==e?void 0:e.PHASE)?"".concat(i," \xb7 ").concat(e.PHASE):i},w=e=>{let{deleteNode:t,curveData:i,unitConverters:p,onCopyPlottedTableContent:j,setItemSaved:w,useIndividualNodeStore:E,useIndividualConfigStore:P,sentenceCase:T=!1,compact:D=!1,getCurveColor:I}=e,[O,L]=(0,n.useState)("none"),[G,k]=(0,n.useState)("none"),[M,V]=(0,n.useState)("none"),{nodes:z,nodesClear:X,highlightedNodeIndex:U}=E?E():(0,_.A)(),[Y,F]=(0,n.useState)([...z]),R=(0,n.useRef)(null),{significantDigits:K}=P?P():(0,g.A)(),B=(0,n.useCallback)(e=>{e&&R.current&&(R.current.scrollTop=Math.max(0,e.offsetTop-100))},[]);(0,n.useEffect)(()=>{F([...z]),H()},[z]);let H=()=>{"none"!==O&&F(q(O,z,"x")),"none"!==G&&F(q(G,z,"y")),"none"!==M&&F(q(M,z,"curveKey"))},q=(e,t,i)=>{let a=[...t];return a.sort((t,a)=>e===m.ks.ASCENDING?Number(t[i])-Number(a[i]):Number(a[i])-Number(t[i])),a};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:v()(N()["xy-table"],D?N()["xy-table--compact"]:"mb-6 mt-0"),children:(0,a.jsx)("div",{ref:R,className:N()["xy-table__table-wrapper"],onCopy:j,children:(0,a.jsxs)(r.X,{layout:D?"compact":"spacious",headerFontSize:"small",bodyFontSize:"small",dividers:"all",hideRowHover:!0,children:[D&&(0,a.jsxs)("colgroup",{children:[(0,a.jsx)("col",{}),(0,a.jsx)("col",{}),(0,a.jsx)("col",{}),(0,a.jsx)("col",{})]}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsxs)(l.E,{sortable:{onSort:e=>{L(e),k("none"),V("none"),F(q(e,z,"x")),(0,C.V)(b.i1.X_DATAPOINT_SORT)},sortDirection:O},children:["X\xa0",T?"axis":"Axis"]}),(0,a.jsxs)(l.E,{sortable:{onSort:e=>{k(e),L("none"),V("none"),F(q(e,z,"y")),(0,C.V)(b.i1.Y_DATAPOINT_SORT)},sortDirection:G},children:["Y\xa0",T?"axis":"Axis"]}),D?(0,a.jsx)(l.E,{children:"Material"}):(0,a.jsxs)(l.E,{sortable:{onSort:e=>{L("none"),k("none"),V(e),F(q(e,z,"curveKey"))},sortDirection:M},children:["Z\xa0",T?"axis":"Axis"]}),(0,a.jsx)(l.E,{children:"\xa0"})]})}),(0,a.jsxs)("tbody",{children:[0===Y.length&&(0,a.jsxs)("tr",{children:[(0,a.jsx)(s.N,{children:"\xa0"}),(0,a.jsx)(s.N,{children:"\xa0"}),(0,a.jsx)(s.N,{children:"\xa0"}),(0,a.jsx)(s.N,{children:(0,a.jsx)("div",{className:"cursor-pointer",children:"\xa0"})})]}),Y.length>0&&Y.map((e,n)=>{var r,l,u;let v=z.indexOf(Y[n]),m="".concat(e.curveKey,"-").concat(v),y=v===U;return(0,a.jsxs)("tr",{"aria-current":y?"true":void 0,className:y?N()["xy-table__highlighted-row"]:void 0,ref:y?B:null,children:[(0,a.jsx)(s.N,{children:(0,x.ZV)(p.x.ConvertToSelectedUnit(e.x),K.x)}),(0,a.jsx)(s.N,{children:(0,x.ZV)(p.y.ConvertToSelectedUnit(e.y),K.y)}),(0,a.jsx)(s.N,{className:D?N()["xy-table__material-cell"]:void 0,children:D?(0,a.jsx)(o.t,{id:"material-".concat(e.curveKey,"-").concat(n),label:A(i[e.curveKey]),size:"small",variant:"high-contrast",children:(0,a.jsxs)(c.t,{spacing:"4dp",wrap:!1,verticalAlignment:"center",width:"100%",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:N()["bullet-dot"],id:"material-color-dot-".concat(n),style:{backgroundColor:null!=(r=null==I?void 0:I(e.curveKey))?r:S.A.getColor(e.curveKey,i),marginRight:0}}),(0,a.jsx)(d.t,{as:"span",className:N()["xy-table__material-label"],fontSize:14,children:A(i[e.curveKey])})]})}):(0,a.jsx)("div",{className:"block",children:(0,a.jsx)(o.t,{id:"curve-key-".concat(m),label:(0,f.G9)(null==(l=i[e.curveKey])?void 0:l.LEGEND),size:"small",variant:"high-contrast",children:(0,a.jsxs)("div",{className:"inline-block align-top truncate w-[30vw] g-lg:w-[5vw]",children:[(0,a.jsx)("div",{className:N()["bullet-dot"],style:{backgroundColor:S.A.getColor(e.curveKey,i)}}),(0,f.G9)(null==(u=i[e.curveKey])?void 0:u.LEGEND)]})})})}),(0,a.jsx)(s.N,{className:"flex justify-center",children:(0,a.jsx)("div",{className:"cursor-pointer",children:(0,a.jsx)(o.t,{id:"delete-data-point-".concat(m),label:"Delete data point",size:"small",variant:"high-contrast",children:(0,a.jsx)(d.t,{"aria-label":"Delete data point",id:"delete-data-point-action-".concat(m),onClick:()=>t(v),children:(0,a.jsx)(h.t,{size:16,name:"delete",fill:"interaction"})})})})})]},m)})]})]})})}),(0,a.jsx)(c.t,{horizontalAlignment:"right",width:"100%",children:Y.length>0&&(0,a.jsx)(u.t,{id:"clear-all-data-points",variant:"tertiary",iconLeft:"delete",size:D?"small":"large",label:D?"Clear all":"Clear All",onClick:()=>void(y.l.useLogger().logClearAllDataPoints(null==z?void 0:z.length),(0,C.V)(b.i1.CLEAR_ALL),X(),w(!1)),className:D?void 0:N().clearAllPointsLabel})})]})}},22640:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(67259);class n{setNodes(e){this.nodes=e}getColor(e){return n.getColor(e,this.curveData)}static getColor(e,t){let i=0;return Object.keys(t).forEach((t,a)=>{t===e&&(i=a)}),n.colors[i]}IsCurveVisible(e){return!!this.curveData[e]&&(!("isVisible"in this.curveData[e])||!!this.curveData[e].isVisible)}generateInterpolatorsAndPoints(){this.interpolatedPoints={}
1,Object.keys(this.curvePoints).forEach(e=>{if(this.IsCurveVisible(e)){let t=this.curvePoints[e].map(e=>[e.X,e.Y]);this.interpolatedPoints[e]=this.buildInterpolatedCurvePoints(t)}})}buildInterpolatedCurvePoints(e){if(e.length<2)return e;let t=e.map(e=>this.toInterpolationSpace(e));if(!t.every(e=>Number.isFinite(e[0])&&Number.isFinite(e[1])))return e;try{let i=new a.CurveInterpolator(t,{tension:.9,alpha:.2}).getPoints(n.INTERPOLATION_POINT_COUNT);if(!i||0===i.length)return e;let r=i.map(e=>this.fromInterpolationSpace(e)).filter(e=>Number.isFinite(e[0])&&Number.isFinite(e[1]));return this.mergeSampledAndSourcePoints(r,e)}catch(t){return e}}toInterpolationSpace(e){return[this.interpolationScaleLogarithmic.x?Math.log10(e[0]):e[0],this.interpolationScaleLogarithmic.y?Math.log10(e[1]):e[1]]}fromInterpolationSpace(e){return[this.interpolationScaleLogarithmic.x?10**e[0]:e[0],this.interpolationScaleLogarithmic.y?10**e[1]:e[1]]}mergeSampledAndSourcePoints(e,t){let i=t[t.length-1][0]>=t[0][0]?1:-1,a=[...e,...t].sort((e,t)=>i*(e[0]-t[0])),n=[];return a.forEach(e=>{let t=n[n.length-1];t&&1e-12>Math.abs(t[0]-e[0])&&1e-12>Math.abs(t[1]-e[1])||n.push(e)}),n}getCanvasDistanceToPoint(e,t,i){let a=this.coordinateTranslator.translateChartCoordsToCanvas({x:e[0],y:e[1]});return Math.sqrt((a.x-t)**2+(a.y-i)**2)}findClosestPoint(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6,a="",n=1/0,r=1/0,l=1/0;if(Object.keys(this.curvePoints).forEach(i=>{if(this.IsCurveVisible(i)){let s=this.findClosestPointOnGivenCurve(e,t,i);s.closestDistance<n&&(n=s.closestDistance,a=i,r=s.closestX,l=s.closestY)}}),n>i)throw Error("Too far from chart");return{closestX:r,closestY:l,closestCurveKey:a}}findClosestPointOnGivenCurve(e,t,i){if(!this.IsCurveVisible(i))throw Error("Curve is hidden");let a=1/0,n=1/0,r=1/0;return this.interpolatedPoints[i].forEach(i=>{let l=this.getCanvasDistanceToPoint(i,e,t);l<a&&(a=l,[n,r]=i)}),{closestX:n,closestY:r,closestDistance:a}}findDataPointByXorY(e,t,i){if(!this.IsCurveVisible(i))throw Error("Selected curve is hidden");let a=1/0,n=1/0,r=1/0,l=!1,s=!1,o=!Number.isNaN(t);if(Object.keys(this.curvePoints).forEach(c=>{i===c&&this.interpolatedPoints[c].forEach(i=>{let c=Math.abs(o?i[1]-t:i[0]-e);c<a&&(a=c,[n,r]=i),o?(i[1]<=t&&(s=!0),i[1]>=t&&(l=!0)):(i[0]<=e&&(s=!0),i[0]>=e&&(l=!0))})}),!(s&&l))throw Error("Out of bounds for selected curve.");return{x:n,y:r,curveKey:i}}drawCurves(e){if(!this.xUnitConverter||!this.yUnitConverter)return;let{context:t}=this;t&&(this.context.clearRect(0,0,this.canvas.width,this.canvas.height),t.strokeStyle="#00f",Object.keys(this.curvePoints).forEach(i=>{if(this.IsCurveVisible(i)){t.strokeStyle=this.getColor(i),t.lineWidth=i===e?2:1,t.beginPath();let a=!1;this.interpolatedPoints[i].forEach(e=>{let i=this.coordinateTranslator.translateChartCoordsToCanvas({x:e[0],y:e[1]});if(!(i.x<this.graph.axisPadding)&&!(i.y>this.graph.canvasHeight-this.graph.axisPadding)){if(!a){t.moveTo(i.x,i.y),a=!0;return}t.lineTo(i.x,i.y)}}),t.stroke()}}),this.showDataPointsOnCurves&&Object.keys(this.curvePoints).forEach(i=>{this.IsCurveVisible(i)&&(t.strokeStyle="#".concat(Math.floor(0xffffff*Math.random()).toString(16)),this.curvePoints[i].forEach(a=>{let n=this.coordinateTranslator.translateChartCoordsToCanvas({x:a.X,y:a.Y});t.beginPath(),t.arc(n.x,n.y,i===e?3:2,0,2*Math.PI,!1),t.fillStyle=this.getColor(i),t.fill()}))}))}drawDynamicItems(e,t){this.context&&(this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.drawCurves(t.curveKey),this.drawNodes(),this.drawDotUnderMouse(e,t))}drawZoomSquare(e){if(!this.context||!e||e.length<4)return;let t=e[0],i=e[2],a=e[1]-t,n=e[3]-i;this.context.beginPath(),this.context.strokeStyle="rgba(0, 0, 0, 0.8)",this.context.setLineDash([5,5]),this.context.fillStyle="rgba(255, 255, 0, 0.1)",this.context.lineWidth=1,this.context.strokeRect(t,i,a,n),this.context.fillRect(t,i,a,n),this.context.setLineDash([])}drawDotUnderMouse(e,t){if(!e||"grab"===this.canvas.style.cursor||"move"===this.canvas.style.cursor)return;this.context.beginPath(),this.context.fillStyle="#C00",this.context.lineWidth=1,this.context.strokeStyle="#555";let i=this.coordinateTranslator.translateChartCoordsToCanvas({x:t.x,y:t.y});this.context.arc(i.x,i.y,3,0,2*Math.PI,!0),this.context.strokeStyle="#C00",this.context.fill(),this.context.stroke()}
1drawNodes(){this.nodes.forEach(e=>{if(this.IsCurveVisible(e.curveKey)){let t=this.coordinateTranslator.translateChartCoordsToCanvas({x:e.x,y:e.y});this.context.beginPath(),this.context.fillStyle=e.selected?"#88aaaa":"#2453ff",this.context.arc(t.x,t.y,4,0,2*Math.PI,!0),this.context.strokeStyle="#009999",this.context.fill(),this.context.stroke()}})}constructor(e,t,i,a,n,r,l,s,o,c=!0){this.canvas=e,this.context=null==e?void 0:e.getContext("2d"),this.graph=t,this.nodes=i,this.curveData=a,this.curvePoints=n,this.coordinateTranslator=r,this.xUnitConverter=l,this.yUnitConverter=s,this.interpolationScaleLogarithmic=o,this.showDataPointsOnCurves=c,this.generateInterpolatorsAndPoints()}}n.INTERPOLATION_POINT_COUNT=4e3,n.colors=["#E17919","#548FE8","#9F61ED","#EE6194","#179297","#BF2776","#5B8901","#2A69C5","#974D09","#2B14C3","#32eaac","#bb4dd1","#3c6113","#df4a2f","#d40931","#40b1a9","#818e1c","#3d6dfc","#7c5626","#2f4224","#b8a543","#800c98","#db579f","#2ecb4d","#c9f769","#4b6cd5","#c06f09","#d32507","#d42322","#6c3648"];let r=n},35128:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var a=i(37876),n=i(14232),r=i(15039),l=i.n(r),s=i(30225),o=i(15669),c=i(94359),d=i(62572),h=i(6233),u=i(93709),x=i(32672),p=i(16634),v=i(37769),m=i(34573),y=i(54335),b=i.n(y);let g=e=>{let{equationData:t,unitConverters:i,setUnitUpdatedTrigger:r,useIndividualConfigStore:y,curvePoints:g,compact:_=!1}=e,[f,C]=(0,n.useState)(null),[j,N]=(0,n.useState)(null),[S,A]=(0,n.use
1State)(!1),[w,E]=(0,n.useState)(!1),[P,T]=(0,n.useState)(null),[D,I]=(0,n.useState)(null),O=c.l.useLogger(),L=e=>{let t=Object.values(g||{}).flatMap(t=>t.map(t=>"x"===e?t.X:t.Y));if(0===t.length)return!0;let a="x"===e?null==i?void 0:i.x:null==i?void 0:i.y;return t.every(e=>{let t=a?a.ConvertToSelectedUnit(e):e;return Number.isFinite(t)&&t>0})},G=L("x"),k=L("y");(0,n.useEffect)(()=>{(null==i?void 0:i.x)&&(null==i?void 0:i.y)&&(T(i.x.getDropDownUnitList()),C(i.x.getUnitFrom()),I(i.y.getDropDownUnitList()),N(i.y.getUnitFrom()))},[i.x,i.y]);let M=e=>{let t=null==e?void 0:e.indexNumber,[a]=[P].map(e=>{var i,a,n;return null==e||null==(n=e[0])||null==(a=n.options)||null==(i=a[t])?void 0:i.id});i.x.setUnitTo(a),C(a),r(1e6*Math.random()),(0,m.V)(p.i1.VARIABLE_X),O.logChangeUnit("x",null==e?void 0:e.label)},V=e=>{let t=null==e?void 0:e.indexNumber,[a]=[D].map(e=>{var i,a,n;return null==e||null==(n=e[0])||null==(a=n.options)||null==(i=a[t])?void 0:i.id});i.y.setUnitTo(a),N(a),r(1e6*Math.random()),(0,m.V)(p.i1.FUNCTION_Y),O.logChangeUnit("y",null==e?void 0:e.label)};return _?(0,a.jsxs)(d.B,{spacing:"16dp",width:"100%",children:[(0,a.jsxs)(d.B,{spacing:"8dp",width:"100%",children:[(0,a.jsxs)(h.t,{spacing:"4dp",wrap:!0,children:[(0,a.jsx)(u.t,{as:"span",fontSize:14,children:"Variable property (X):"}),(0,a.jsx)(u.t,{as:"span",fontSize:14,color:"color-text-secondary",children:(0,a.jsx)(s.A,{value:t.axisXTitle,sanitizeHTMLOption:o.rj})})]}),P&&(0,a.jsx)(x.m,{id:"x-unit-dropdown",label:"X unit",size:"small",value:f,options:P,onChange:e=>M(e),isOpen:S,onDropdownToggle:()=>A(!S),width:"100%"}),(0,a.jsx)(v.A,{inGraphPlotter:!0,axis:"x",useIndividualConfigStore:y,allowLogScale:G,sentenceCase:!0})]}),(0,a.jsxs)(d.B,{spacing:"8dp",width:"100%",children:[(0,a.jsxs)(h.t,{spacing:"4dp",wrap:!0,children:[(0,a.jsx)(u.t,{as:"span",fontSize:14,children:"Function property (Y):"}),(0,a.jsx)(u.t,{as:"span",fontSize:14,color:"color-text-secondary",children:(0,a.jsx)(s.A,{value:t.axisYTitle,sanitizeHTMLOption:o.rj})})]}),D&&(0,a.jsx)(x.m,{label:"Y unit",size:"small",value:j,options:D,onChange:e=>V(e),isOpen:w,onDropdownToggle:()=>E(!w),width:"100%"}),(0,a.jsx)(v.A,{inGraphPlotter:!0,axis:"y",useIndividualConfigStore:y,allowLogScale:k,sentenceCase:!0})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:l()(b()["equation-container"],"my-6"),children:[(0,a.jsx)(u.t,{as:"span",fontSize:16,fontWeight:700,children:"X Axis"},"variable_x"),(0,a.jsxs)("div",{className:"my-4",children:[(0,a.jsx)(u.t,{children:"Variable Property(X): "},"property-y-text-label"),(0,a.jsx)(u.t,{as:"span",color:"color-text-secondary",className:"ml-2",children:(0,a.jsx)(s.A,{value:t.axisXTitle,sanitizeHTMLOption:o.rj})},"property-x-text")]}),(0,a.jsx)("div",{className:l()(b().dropdown,"py-6"),children:P&&(0,a.jsx)(x.m,{id:"x-unit-dropdown",label:"X Unit",size:"medium",value:f,options:P,placeholder:"xxxx.xx",onChange:e=>M(e),isOpen:S,onDropdownToggle:()=>A(!S),width:"100%"})}),(0,a.jsx)(v.A,{inGraphPlotter:!0,axis:"x",useIndividualConfigStore:y,allowLogScale:G})]}),(0,a.jsxs)("div",{className:l()(b()["equation-container"],"my-6"),children:[(0,a.jsx)(u.t,{as:"span",fontSize:16,fontWeight:700,children:"Y Axis"},"function_y"),(0,a.jsxs)("div",{className:"my-4",children:[(0,a.jsx)(u.t,{children:"Function Property(Y): "},"property-y-text-label"),(0,a.jsx)(u.t,{as:"span",color:"color-text-secondary",className:"ml-2",children:(0,a.jsx)(s.A,{value:t.axisYTitle,sanitizeHTMLOption:o.rj})},"property-y-text")]}),(0,a.jsx)("div",{className:l()(b().dropdown,"py-6"),children:D&&(0,a.jsx)(x.m,{label:"Y Unit",size:"medium",value:j,options:D,placeholder:"yyyy.yy",onChange:e=>V(e),isOpen:w,onDropdownToggle:()=>E(!w),width:"100%"})}),(0,a.jsx)(v.A,{inGraphPlotter:!0,axis:"y",useIndividualConfigStore:y,allowLogScale:k})]})]})}},44700:(e,t,i)=>{"use strict";i.d(t,{e:()=>a});let a=(0,i(14232).createContext)({setCurveDrawer:()=>{}})},54335:e=>{e.exports={"graph-leftPanel":"GraphContainer_graph-leftPanel__aK_S5","equation-container":"GraphContainer_equation-container__JEFVb","axis-container":"GraphContainer_axis-container__twioV","dataset-container":"GraphContainer_dataset-container__XChiR","axis-precision":"GraphContainer_axis-precision__wPaew","xy-table__table-wrapper":"GraphContainer_xy-table__table-wrapper__dApKz","xy-table__highlighted-row":"GraphContainer_xy-table__highlighted-row___C3En","xy-table":"GraphContainer_xy-table__CXxOW","xy-table__originalTable":"GraphContainer_xy-table__originalTable__9dMTq","xy-table--compact":"GraphContainer_xy-table--compact__4y2jk","xy-table__material-cell":"GraphContainer_xy-table__material-cell__1_MlR","xy-table__material-label":"GraphContainer_xy-table__material-label__nyHzJ",dropdown:"GraphContainer_dropdown__Yl42M","data-sets":"GraphContainer_data-sets__Bn2MP","data-sets__buttons":"GraphContainer_data-sets__buttons__2OeZu","data-set-label":"GraphContainer_data-set-label__S5uub","add-data-points":"GraphContainer_add-data-points__oi__N",clearAllPointsLabel:"GraphContainer_
1clearAllPointsLabel__6se6l","bullet-dot":"GraphContainer_bullet-dot__B_QEn"}},81722:(e,t,i)=>{"use strict";i.d(t,{A:()=>_});var a=i(37876),n=i(70763),r=i(39683),l=i(2694),s=i(62572),o=i(32672),c=i(94233),d=i(92486),h=i(6233),u=i(14232),x=i(16634),p=i(1289),v=i(39797),m=i(94359),y=i(51211),b=i(34573),g=i(44700);let _=e=>{let{curveData:t,unitConverters:i,setItemSaved:_,setIsBookmarkChecked:f,useIndividualNodeStore:C,sentenceCase:j=!1,compact:N=!1,selectionMode:S="curve"}=e,[A,w]=(0,u.useState)(!1),[E,P]=(0,u.useState)(!1),[T,D]=(0,u.useState)(""),[I,O]=(0,u.useState)(""),[L,G]=(0,u.useState)(""),[k,M]=(0,u.useState)(""),V=(0,u.useContext)(g.e),[z,X]=(0,u.useState)(""),[U,Y]=(0,u.useState)(null),[F,R]=(0,u.useState)(!1),{nodes:K,nodeAdd:B}=C?C():(0,y.A)(),H=m.l.useLogger(),q="material"===S?"Select a material":"Select a curve";function W(e,t){"x"===e?(D(t),""===t.trim()?P(!1):P(!0),(0,b.V)(x.i1.DATA_POINTS_X_AXIS)):(O(t),""===t.trim()?w(!1):w(!0),(0,b.V)(x.i1.DATA_POINTS_Y_AXIS))}function Z(){if(J(),!(0,p.kf)(T)&&!(0,p.kf)(I))return void G("A numeric value for X or Y is required");let e=parseFloat(T),t=parseFloat(I),a=i.x.ConvertFromSelectedUnitToOriginal(e),n=i.y.ConvertFromSelectedUnitToOriginal(t);if(K.some(t=>t.x===e))return void G("Already contains this X");if(K.some(e=>e.y===t))return void M("Already contains this Y");if(!V.curveDrawer)return;Number.isNaN(e)?(0,b.V)(x.i1.DATA_POINTS_Y_AXIS):(0,b.V)(x.i1.DATA_POINTS_X_AXIS);let r=null;try{r=V.curveDrawer.findDataPointByXorY(a,n,z)}catch(i){Number.isNaN(e)||G(i.message),Number.isNaN(t)||M(i.message);return}B(r),_(!1),J(),f(!0),H&&H.logDatapointAddEvent(null==r?void 0:r.x,null==r?void 0:r.y)}function J(){D(""),O(""),G(""),M(""),w(!1),P(!1)}(0,u.useEffect)(()=>{let e,i,a;t&&(Y(((e=[]).push({id:q,label:q,indexNumber:0}),i=Object.entries(t).filter(e=>{var t;let[,i]=e;return null==(t=i.isVisible)||t}),a={},i.forEach(e=>{var t,i;let[,n]=e,r=null!=(t=n.MATERIALNAME)?t:(0,v.G9)(n.LEGEND);a[r]=(null!=(i=a[r])?i:0)+1}),i.forEach(t=>{let[i,n]=t,r=n.MATERIALNAME||(0,v.G9)(n.LEGEND),l="material"===S?a[r]>1&&n.PHASE?"".concat(r," \xb7 ").concat(n.PHASE):r:(0,v.G9)(n.LEGEND);e.push({id:i,label:l,indexNumber:e.length})}),[{options:e}])),X(q))},[t,q]);let Q=(0,a.jsx)(n.t,{variant:"number",id:"xcoord",className:N?void 0:"dataset-label-input w-full g-sm:w-50",value:T,label:j?"X axis":"X Axis",disabled:z===q||A,size:"small",width:"100%",placeholder:"xxxx.xx",errorLabel:L,hasError:""!==L,onChange:e=>W("x",e.target.value),onKeyDown:e=>"Enter"===e.key?Z():""}),$=(0,a.jsx)(n.t,{variant:"number",id:"ycoord",className:N?void 0:"dataset-label-input w-full g-sm:w-50",value:I,label:j?"Y axis":"Y Axis",disabled:z===q||E,size:"small",width:"100%",placeholder:"yyyy.yy",errorLabel:k,hasError:""!==k,onChange:e=>W("y",e.target.value),onKeyDown:e=>"Enter"===e.key?Z():""}),ee=(0,a.jsx)(r.t,{id:"Add point",label:"Add point",size:"small",side:"top",variant:"high-contrast",children:(0,a.jsx)(l.t,{"data-testid":"add-button",variant:"secondary",size:N?"small":"large",iconName:"plus",disabled:z===q,onClick:()=>Z(),"aria-label":"Add point"})});return(0,a.jsx)("div",{className:N?void 0:"my-6",children:(0,a.jsx)("div",{className:N?void 0:"mt-6",children:(0,a.jsxs)(s.B,{spacing:"16dp",children:[(0,a.jsx)("div",{children:U&&U.length>0&&(0,a.jsx)(o.m,{label:"material"===S?"Material":"Curve",size:N?"small":"medium",className:N?void 0:"dataset-label-input w-full g-sm:w-50",value:z,options:U,onChange:e=>{let t=null==e?void 0:e.indexNumber,[i]=[U].map(e=>{var i,a,n;return null==e||null==(n=e[0])||null==(a=n.options)||null==(i=a[t])?void 0:i.id});X(i),(0,b.V)(x.i1.CURVE_NAVIGATION),H&&H.logPlotterSelectCurveEvent(t)},isOpen:F,width:"100%",onDropdownToggle:()=>R(!F)})}),N?(0,a.jsxs)(c.t,{collapseBelow:"tablet",space:"8dp",alignY:"bottom",children:[(0,a.jsx)(d.V,{width:"5/12",children:Q}),(0,a.jsx)(d.V,{width:"5/12",children:$}),(0,a.jsx)(d.V,{width:"2/12",children:(0,a.jsx)(h.t,{horizontalAlignment:"right",verticalAlignment:"bottom",width:"100%",children:ee})})]}):(0,a.jsxs)("div",{className:"block g-sm:inline-flex justify-between gap-2",children:[Q,$,(0,a.jsx)("div",{className:"mt-7",children:ee})]})]})})})}}}]); 2 3/* BUILD_VERSION: Release_2026_09_11.20260909.78.11031.d26b5eeee Time: Wed Sep 9 06:53:22 UTC 2026 */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.