@viswa-test/test-citation 0.0.89 → 0.0.90

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("@mui/material"),o=require("lucide-react"),r=require("../hooks/memoizedMarkdown.js"),l=require("../CognitiveComparehelpers.js"),d=require("../CognitiveCompareConstants.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(i),u=function(e){var n=function(e){for(var n=(null==e?void 0:e.parentElement)||null;n;){var i=window.getComputedStyle(n).overflowY;if(("auto"===i||"scroll"===i)&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return null}(e),i=e.getBoundingClientRect(),t=(null==n?void 0:n.getBoundingClientRect())||{top:0,bottom:window.innerHeight};return i.top>=t.top&&i.bottom<=t.bottom};exports.default=function(a){var c,v,f,p,g,x,h,m,_,y,b,I,w,R,S,A,E=a.section,C=a.idx,j=a.columnKey,D=a.colRef,F=a.mb,T=void 0===F?1:F,k=a.parentNodeId,B=void 0===k?"":k,O=a.isExpanded,M=a.onToggle,P=a.navigation,N=a.showOpenNodeRef,V=a.resolvedMarkdownStyles,W=a.maintainRelativeOrder,q=a.renderSubSections,G=a.treeData,z=a.proposedSections,H=void 0===z?[]:z,K=a.existingSections,Y=void 0===K?[]:K,L=a.deviationNumberRegistry,U=void 0===L?{}:L,X=a.getBadgeRef,$=a.openSummaryPopup,J=a.getSectionCompareStyle,Q=a.connectedSections,Z=a.openMoreFunctionsPopup,ee=a.deviationNodeIdToView,ne=a.deviationTargetParentId,ie=(null===(c=E.displayTitle)||void 0===c||c)&&l.hasValue(E.title),te=(null===(v=E.displayContent)||void 0===v||v)&&l.hasValue(E.content),oe=!ie&&!te,re={current:1},le=E.title;ie||(le=te?"No Title Found":"No Matching Section Found");var de=E.evaluationResult;if(!de&&"right"===j)if(W){var ae=null===(f=E.refIndexes)||void 0===f?void 0:f[0],se=H.find(function(e){return e.selfIndex===ae});de=null==se?void 0:se.evaluationResult}else de=null===(p=H[C])||void 0===p?void 0:p.evaluationResult;var ue=null===(g=null==G?void 0:G.input_index_map)||void 0===g?void 0:g[0],ce=null===(x=null==G?void 0:G.input_index_map)||void 0===x?void 0:x[1],ve="left"===j?ce:ue,fe="left"===j?E:H[C],pe="right"===j?E:Y[C];if(W)if("left"===j){var ge=null===(h=E.refIndexes)||void 0===h?void 0:h[0],xe=Y.findIndex(function(e){return e.selfIndex===ge});pe=-1!==xe?Y[xe]:void 0}else{var he=null===(m=E.refIndexes)||void 0===m?void 0:m[0],me=H.findIndex(function(e){return e.selfIndex===he});fe=-1!==me?H[me]:void 0}var _e="left"===j?!pe:!fe,ye=de||(null==fe?void 0:fe.evaluationResult)||(null==pe?void 0:pe.evaluationResult),be=null!==(b=null===(y=null===(_=null==ye?void 0:ye.evaluation_outputs)||void 0===_?void 0:_.metadata)||void 0===y?void 0:y.label_color)&&void 0!==b?b:d.DEFAULT_DEVIAION_COLOR,Ie=l.generateColorPalette(be),we=Ie.highlightBg,Re=null!==(w=null===(I=null==ye?void 0:ye.evaluation_outputs)||void 0===I?void 0:I.output_value)&&void 0!==w?w:null,Se=(null==ye?void 0:ye.deviations)||{},Ae=C+1,Ee=E.id;if("right"===j&&W){var Ce=null===(R=E.refIndexes)||void 0===R?void 0:R[0];-1!==(me=H.findIndex(function(e){return e.selfIndex===Ce}))&&(Ae=me+1,Ee=H[me].id)}var je,De=i.useRef(ee),Fe=i.useRef(ne||null),Te=[],ke=Object.entries(Se).map(function(n){var i,t,o,r,d,a=n[0],s=n[1],u="".concat(Ee).concat(l.DEVIATION_BADGE_SEPARATOR).concat(a),c=U[u];if(!c)return null;var v=s[B],f=l.isMissingStr(v);if(f)v="";else if(!v)return null;Te.push(v);var p=C,g=C;if(W)if("left"===j){var x=null===(i=E.refIndexes)||void 0===i?void 0:i[0],h=Y.findIndex(function(e){return e.selfIndex===x});g=-1!==h?h:C}else{var m=null===(t=E.refIndexes)||void 0===t?void 0:t[0],_=H.findIndex(function(e){return e.selfIndex===m});p=-1!==_?_:C}var y="".concat(Ee).concat(l.DEVIATION_BADGE_SEPARATOR).concat(a).concat(l.DEVIATION_BADGE_SEPARATOR).concat(p).concat(l.DEVIATION_BADGE_SEPARATOR).concat(g),b="left"===j?null===(o=Y[g])||void 0===o?void 0:o.content:null===(r=H[p])||void 0===r?void 0:r.content,I=s[ve],w=l.safeStringify(b),R=Object.keys(Se).map(function(e){return{key:e,text:Se[e][ve]}}).filter(function(e){return!l.isMissingStr(e.text)}).sort(function(e,n){return n.text.length-e.text.length}),S=new Set;R.forEach(function(e){var n=e.text.replace(/\\(['’])/g,"$1").replace(/\\n/g,"\n");if(n){var i=new RegExp(l.escapeRegExp(n));i.test(w)&&(S.add(e.key),w=w.replace(i,"__TOKEN_".concat(e.key,"__")))}});var A=!l.isMissingStr(I)&&!S.has(a),D=_e||l.isMissingStr(I)||A,F="".concat(Ae,".").concat(c),T=C;if("right"===j&&W){var k=null===(d=E.refIndexes)||void 0===d?void 0:d[0],O=H.findIndex(function(e){return e.selfIndex===k});-1!==O&&(T=O)}var M=J?J(T):null,P=M?e.__assign(e.__assign({},M),{badgeBg:Ie.badgeBg,badgeBorder:Ie.badgeBorder,badgeText:Ie.badgeText}):e.__assign({},Ie),N=(null==s?void 0:s.deviation_summary)?{deviation_summary:s.deviation_summary,deviation_title:null==ye?void 0:ye.deviation_title,evaluation_outputs:null==ye?void 0:ye.evaluation_outputs}:null;return{id:u,actionId:y,label:F,highlight:v,side:j,style:P,score:Re,isConnected:null==Q?void 0:Q.has(y),isOrphan:D,isMissingClause:f,badgeRef:X(j,u),onClick:function(e){e.stopPropagation(),Z&&Z(e,fe||{id:"orphan-left",title:"",content:""},D,pe||{id:"orphan-right",title:"",content:""},y,P)},onSummaryClick:function(e){e.stopPropagation(),$(e,y,D,N)}}}).filter(Boolean),Be=E.id&&j===(null==P?void 0:P.columnKey)?P:null,Oe=s.default.useRef(!1);return i.useEffect(function(){O||(Oe.current=!1)},[O]),i.useEffect(function(){De.current=ee,Fe.current=ne||null},[ee,ne]),i.useEffect(function(){var e=!!De.current&&!!Fe.current&&Ee===Fe.current,n=!!De.current&&(E.subsections||[]).some(function(e){return e.id===De.current});if(O&&!Oe.current&&!e&&!n){var i=setTimeout(function(){var e,n=null===(e=null==Be?void 0:Be.firstDeviationRef)||void 0===e?void 0:e.current,i=null==Be?void 0:Be.firstDeviationPosition;n?"inside"===i||u(n)?Oe.current=!0:(Oe.current=!0,n.scrollIntoView({behavior:"smooth",block:"center"})):Oe.current=!0},600);return function(){return clearTimeout(i)}}},[O,Ee,null==Be?void 0:Be.firstDeviationPosition,null==Be?void 0:Be.firstDeviationRef]),n.jsxs(t.Box,e.__assign({ref:D,sx:{mb:T,width:"100%",display:"flex",flexDirection:"column",position:"relative",minWidth:0}},{children:[O&&(null==Be?void 0:Be.showAbove)&&n.jsx("div",e.__assign({style:{position:"sticky",top:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Be?void 0:Be.showAboveRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.scrollIntoView({behavior:"smooth",block:"center"})}},{children:n.jsx("div",e.__assign({style:e.__assign({transform:"translateY(-50%) translateX(calc(100% ".concat("left"===j?"+":"-"," 130px))"),position:"absolute",paddingTop:"20px"},"left"===j?{right:"0px"}:{left:"0px"})},{children:n.jsx(o.ChevronUp,{color:window.getComputedStyle(null===(S=null==Be?void 0:Be.showAboveRef)||void 0===S?void 0:S.current).color})}))})),n.jsxs(t.Accordion,e.__assign({disableGutters:!0,expanded:!oe&&O,onChange:function(){oe||(M(),N.current=E.id)},sx:{boxShadow:"none",border:oe?"1px dashed #E2E8F0":"1px solid #E2E8F0",bgcolor:oe?"#FAFAFA":"#FFFFFF",borderRadius:"6px",flexGrow:1,width:"100%",display:"flex",flexDirection:"column",minWidth:0,"&:before":{display:"none"},"& .MuiAccordion-heading":{position:"sticky",top:-12,zIndex:10,background:"#fff"}}},{children:[n.jsx(t.AccordionSummary,e.__assign({expandIcon:oe?null:n.jsx(o.ChevronDown,{size:16}),sx:{minHeight:"36px",flexShrink:0,cursor:oe?"default":"pointer","& .MuiAccordionSummary-content":{my:.5,display:"grid",alignItems:"center",minWidth:0,width:"100%"},"& .MuiAccordionSummary-expandIconWrapper":{transition:"transform 0.2s ease"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"}}},{children:ie&&n.jsx(t.Tooltip,e.__assign({title:le,placement:"top"},{children:n.jsx(t.Typography,e.__assign({component:"div",sx:{fontSize:"12px",color:oe?"#94A3B8":"#19213D",fontWeight:oe?400:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0}},{children:(je=le,je?l.safeStringify(je).replace(/\\n/g,"\n").split(/(\*\*.*?\*\*)/g).map(function(e,i){return e.startsWith("**")&&e.endsWith("**")?n.jsx("strong",{children:e.slice(2,-2)},i):n.jsx(s.default.Fragment,{children:e},i)}):null)}))}))})),!oe&&n.jsxs(t.AccordionDetails,e.__assign({sx:{pt:0,pb:1.25,bgcolor:"#FFFFFF",flex:1,display:"flex",flexDirection:"column",minWidth:0}},{children:[te&&n.jsx(r.MemoizedMarkdown,{content:E.content,sxStyles:V,highlights:Te,maintainRelativeOrder:W,highlightBg:we,deviationBadges:ke}),(E.subsections||[]).map(function(e,n){return q({section:e,keyPath:"".concat(C,"-").concat(n),depth:0,columnKey:j,parentNodeId:B,devCounter:re})})]}))]})),O&&(null==Be?void 0:Be.showBelow)&&n.jsx("div",e.__assign({style:{position:"sticky",bottom:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Be?void 0:Be.showBelowRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.scrollIntoView({behavior:"smooth",block:"center"})}},{children:n.jsx("div",e.__assign({style:e.__assign({transform:"translateY(-50%) translateX(calc(100% ".concat("left"===j?"+":"-"," 130px))"),position:"absolute",paddingBottom:"20px"},"left"===j?{right:"0px"}:{left:"0px"})},{children:n.jsx(o.ChevronDown,{color:window.getComputedStyle(null===(A=null==Be?void 0:Be.showBelowRef)||void 0===A?void 0:A.current).color})}))}))]}),"".concat(j,"-sec-").concat(C))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),o=require("@mui/material"),t=require("lucide-react"),l=require("../hooks/memoizedMarkdown.js"),r=require("../CognitiveComparehelpers.js"),d=require("../CognitiveCompareConstants.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(i);exports.default=function(a){var u,c,v,f,p,x,g,h,m,_,y,I,b,w,S,A,R=a.section,j=a.idx,E=a.columnKey,C=a.colRef,F=a.mb,k=void 0===F?1:F,O=a.parentNodeId,T=void 0===O?"":O,B=a.isExpanded,D=a.onToggle,M=a.navigation,N=a.showOpenNodeRef,P=a.resolvedMarkdownStyles,V=a.maintainRelativeOrder,W=a.renderSubSections,q=a.treeData,G=a.proposedSections,z=void 0===G?[]:G,K=a.existingSections,L=void 0===K?[]:K,U=a.deviationNumberRegistry,X=void 0===U?{}:U,Y=a.getBadgeRef,H=a.openSummaryPopup,$=a.getSectionCompareStyle,J=a.connectedSections,Q=a.openMoreFunctionsPopup;a.deviationNodeIdToView,a.deviationTargetParentId;var Z=(null===(u=R.displayTitle)||void 0===u||u)&&r.hasValue(R.title),ee=(null===(c=R.displayContent)||void 0===c||c)&&r.hasValue(R.content),ne=!Z&&!ee,ie={current:1},oe=R.title;Z||(oe=ee?"No Title Found":"No Matching Section Found");var te=R.evaluationResult;if(!te&&"right"===E)if(V){var le=null===(v=R.refIndexes)||void 0===v?void 0:v[0],re=z.find(function(e){return e.selfIndex===le});te=null==re?void 0:re.evaluationResult}else te=null===(f=z[j])||void 0===f?void 0:f.evaluationResult;var de=null===(p=null==q?void 0:q.input_index_map)||void 0===p?void 0:p[0],ae=null===(x=null==q?void 0:q.input_index_map)||void 0===x?void 0:x[1],se="left"===E?ae:de,ue="left"===E?R:z[j],ce="right"===E?R:L[j];if(V)if("left"===E){var ve=null===(g=R.refIndexes)||void 0===g?void 0:g[0],fe=L.findIndex(function(e){return e.selfIndex===ve});ce=-1!==fe?L[fe]:void 0}else{var pe=null===(h=R.refIndexes)||void 0===h?void 0:h[0],xe=z.findIndex(function(e){return e.selfIndex===pe});ue=-1!==xe?z[xe]:void 0}var ge="left"===E?!ce:!ue,he=te||(null==ue?void 0:ue.evaluationResult)||(null==ce?void 0:ce.evaluationResult),me=null!==(y=null===(_=null===(m=null==he?void 0:he.evaluation_outputs)||void 0===m?void 0:m.metadata)||void 0===_?void 0:_.label_color)&&void 0!==y?y:d.DEFAULT_DEVIAION_COLOR,_e=r.generateColorPalette(me),ye=_e.highlightBg,Ie=null!==(b=null===(I=null==he?void 0:he.evaluation_outputs)||void 0===I?void 0:I.output_value)&&void 0!==b?b:null,be=(null==he?void 0:he.deviations)||{},we=j+1,Se=R.id;if("right"===E&&V){var Ae=null===(w=R.refIndexes)||void 0===w?void 0:w[0];-1!==(xe=z.findIndex(function(e){return e.selfIndex===Ae}))&&(we=xe+1,Se=z[xe].id)}var Re,je=[],Ee=Object.entries(be).map(function(n){var i,o,t,l,d,a=n[0],s=n[1],u="".concat(Se).concat(r.DEVIATION_BADGE_SEPARATOR).concat(a),c=X[u];if(!c)return null;var v=s[T],f=r.isMissingStr(v);if(f)v="";else if(!v)return null;je.push(v);var p=j,x=j;if(V)if("left"===E){var g=null===(i=R.refIndexes)||void 0===i?void 0:i[0],h=L.findIndex(function(e){return e.selfIndex===g});x=-1!==h?h:j}else{var m=null===(o=R.refIndexes)||void 0===o?void 0:o[0],_=z.findIndex(function(e){return e.selfIndex===m});p=-1!==_?_:j}var y="".concat(Se).concat(r.DEVIATION_BADGE_SEPARATOR).concat(a).concat(r.DEVIATION_BADGE_SEPARATOR).concat(p).concat(r.DEVIATION_BADGE_SEPARATOR).concat(x),I="left"===E?null===(t=L[x])||void 0===t?void 0:t.content:null===(l=z[p])||void 0===l?void 0:l.content,b=s[se],w=r.safeStringify(I),S=Object.keys(be).map(function(e){return{key:e,text:be[e][se]}}).filter(function(e){return!r.isMissingStr(e.text)}).sort(function(e,n){return n.text.length-e.text.length}),A=new Set;S.forEach(function(e){var n=e.text.replace(/\\(['’])/g,"$1").replace(/\\n/g,"\n");if(n){var i=new RegExp(r.escapeRegExp(n));i.test(w)&&(A.add(e.key),w=w.replace(i,"__TOKEN_".concat(e.key,"__")))}});var C=!r.isMissingStr(b)&&!A.has(a),F=ge||r.isMissingStr(b)||C,k="".concat(we,".").concat(c),O=j;if("right"===E&&V){var B=null===(d=R.refIndexes)||void 0===d?void 0:d[0],D=z.findIndex(function(e){return e.selfIndex===B});-1!==D&&(O=D)}var M=$?$(O):null,N=M?e.__assign(e.__assign({},M),{badgeBg:_e.badgeBg,badgeBorder:_e.badgeBorder,badgeText:_e.badgeText}):e.__assign({},_e),P=(null==s?void 0:s.deviation_summary)?{deviation_summary:s.deviation_summary,deviation_title:null==he?void 0:he.deviation_title,evaluation_outputs:null==he?void 0:he.evaluation_outputs}:null;return{id:u,actionId:y,label:k,highlight:v,side:E,style:N,score:Ie,isConnected:null==J?void 0:J.has(y),isOrphan:F,isMissingClause:f,badgeRef:Y(E,u),onClick:function(e){e.stopPropagation(),Q&&Q(e,ue||{id:"orphan-left",title:"",content:""},F,ce||{id:"orphan-right",title:"",content:""},y,N)},onSummaryClick:function(e){e.stopPropagation(),H(e,y,F,P)}}}).filter(Boolean),Ce=R.id&&E===(null==M?void 0:M.columnKey)?M:null,Fe=s.default.useRef(!1);return i.useEffect(function(){B||(Fe.current=!1)},[B]),n.jsxs(o.Box,e.__assign({ref:C,sx:{mb:k,width:"100%",display:"flex",flexDirection:"column",position:"relative",minWidth:0}},{children:[B&&(null==Ce?void 0:Ce.showAbove)&&n.jsx("div",e.__assign({style:{position:"sticky",top:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Ce?void 0:Ce.showAboveRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.scrollIntoView({behavior:"smooth",block:"center"})}},{children:n.jsx("div",e.__assign({style:e.__assign({transform:"translateY(-50%) translateX(calc(100% ".concat("left"===E?"+":"-"," 130px))"),position:"absolute",paddingTop:"20px"},"left"===E?{right:"0px"}:{left:"0px"})},{children:n.jsx(t.ChevronUp,{color:window.getComputedStyle(null===(S=null==Ce?void 0:Ce.showAboveRef)||void 0===S?void 0:S.current).color})}))})),n.jsxs(o.Accordion,e.__assign({disableGutters:!0,expanded:!ne&&B,onChange:function(){ne||(D(),N.current=R.id)},sx:{boxShadow:"none",border:ne?"1px dashed #E2E8F0":"1px solid #E2E8F0",bgcolor:ne?"#FAFAFA":"#FFFFFF",borderRadius:"6px",flexGrow:1,width:"100%",display:"flex",flexDirection:"column",minWidth:0,"&:before":{display:"none"},"& .MuiAccordion-heading":{position:"sticky",top:-12,zIndex:10,background:"#fff"}}},{children:[n.jsx(o.AccordionSummary,e.__assign({expandIcon:ne?null:n.jsx(t.ChevronDown,{size:16}),sx:{minHeight:"36px",flexShrink:0,cursor:ne?"default":"pointer","& .MuiAccordionSummary-content":{my:.5,display:"grid",alignItems:"center",minWidth:0,width:"100%"},"& .MuiAccordionSummary-expandIconWrapper":{transition:"transform 0.2s ease"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"}}},{children:Z&&n.jsx(o.Tooltip,e.__assign({title:oe,placement:"top"},{children:n.jsx(o.Typography,e.__assign({component:"div",sx:{fontSize:"12px",color:ne?"#94A3B8":"#19213D",fontWeight:ne?400:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0}},{children:(Re=oe,Re?r.safeStringify(Re).replace(/\\n/g,"\n").split(/(\*\*.*?\*\*)/g).map(function(e,i){return e.startsWith("**")&&e.endsWith("**")?n.jsx("strong",{children:e.slice(2,-2)},i):n.jsx(s.default.Fragment,{children:e},i)}):null)}))}))})),!ne&&n.jsxs(o.AccordionDetails,e.__assign({sx:{pt:0,pb:1.25,bgcolor:"#FFFFFF",flex:1,display:"flex",flexDirection:"column",minWidth:0}},{children:[ee&&n.jsx(l.MemoizedMarkdown,{content:R.content,sxStyles:P,highlights:je,maintainRelativeOrder:V,highlightBg:ye,deviationBadges:Ee}),(R.subsections||[]).map(function(e,n){return W({section:e,keyPath:"".concat(j,"-").concat(n),depth:0,columnKey:E,parentNodeId:T,devCounter:ie})})]}))]})),B&&(null==Ce?void 0:Ce.showBelow)&&n.jsx("div",e.__assign({style:{position:"sticky",bottom:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Ce?void 0:Ce.showBelowRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.scrollIntoView({behavior:"smooth",block:"center"})}},{children:n.jsx("div",e.__assign({style:e.__assign({transform:"translateY(-50%) translateX(calc(100% ".concat("left"===E?"+":"-"," 130px))"),position:"absolute",paddingBottom:"20px"},"left"===E?{right:"0px"}:{left:"0px"})},{children:n.jsx(t.ChevronDown,{color:window.getComputedStyle(null===(A=null==Ce?void 0:Ce.showBelowRef)||void 0===A?void 0:A.current).color})}))}))]}),"".concat(E,"-sec-").concat(j))};
2
2
  //# sourceMappingURL=SectionAccordion.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import o,{useRef as i,useEffect as l}from"react";import{Box as r,Accordion as d,AccordionSummary as a,Tooltip as u,Typography as c,AccordionDetails as s}from"@mui/material";import{ChevronUp as v,ChevronDown as f}from"lucide-react";import{MemoizedMarkdown as p}from"../hooks/memoizedMarkdown.js";import{hasValue as m,generateColorPalette as h,isMissingStr as g,safeStringify as x,escapeRegExp as b,DEVIATION_BADGE_SEPARATOR as y}from"../CognitiveComparehelpers.js";import{DEFAULT_DEVIAION_COLOR as w}from"../CognitiveCompareConstants.js";var I=function(e){var n=function(e){for(var n=(null==e?void 0:e.parentElement)||null;n;){var t=window.getComputedStyle(n).overflowY;if(("auto"===t||"scroll"===t)&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return null}(e),t=e.getBoundingClientRect(),o=(null==n?void 0:n.getBoundingClientRect())||{top:0,bottom:window.innerHeight};return t.top>=o.top&&t.bottom<=o.bottom},R=function(R){var S,F,k,C,_,B,A,T,E,M,W,D,N,O,P,j,z=R.section,H=R.idx,K=R.columnKey,V=R.colRef,Y=R.mb,G=void 0===Y?1:Y,X=R.parentNodeId,$=void 0===X?"":X,q=R.isExpanded,J=R.onToggle,L=R.navigation,Q=R.showOpenNodeRef,U=R.resolvedMarkdownStyles,Z=R.maintainRelativeOrder,ee=R.renderSubSections,ne=R.treeData,te=R.proposedSections,oe=void 0===te?[]:te,ie=R.existingSections,le=void 0===ie?[]:ie,re=R.deviationNumberRegistry,de=void 0===re?{}:re,ae=R.getBadgeRef,ue=R.openSummaryPopup,ce=R.getSectionCompareStyle,se=R.connectedSections,ve=R.openMoreFunctionsPopup,fe=R.deviationNodeIdToView,pe=R.deviationTargetParentId,me=(null===(S=z.displayTitle)||void 0===S||S)&&m(z.title),he=(null===(F=z.displayContent)||void 0===F||F)&&m(z.content),ge=!me&&!he,xe={current:1},be=z.title;me||(be=he?"No Title Found":"No Matching Section Found");var ye=z.evaluationResult;if(!ye&&"right"===K)if(Z){var we=null===(k=z.refIndexes)||void 0===k?void 0:k[0],Ie=oe.find(function(e){return e.selfIndex===we});ye=null==Ie?void 0:Ie.evaluationResult}else ye=null===(C=oe[H])||void 0===C?void 0:C.evaluationResult;var Re=null===(_=null==ne?void 0:ne.input_index_map)||void 0===_?void 0:_[0],Se=null===(B=null==ne?void 0:ne.input_index_map)||void 0===B?void 0:B[1],Fe="left"===K?Se:Re,ke="left"===K?z:oe[H],Ce="right"===K?z:le[H];if(Z)if("left"===K){var _e=null===(A=z.refIndexes)||void 0===A?void 0:A[0],Be=le.findIndex(function(e){return e.selfIndex===_e});Ce=-1!==Be?le[Be]:void 0}else{var Ae=null===(T=z.refIndexes)||void 0===T?void 0:T[0],Te=oe.findIndex(function(e){return e.selfIndex===Ae});ke=-1!==Te?oe[Te]:void 0}var Ee="left"===K?!Ce:!ke,Me=ye||(null==ke?void 0:ke.evaluationResult)||(null==Ce?void 0:Ce.evaluationResult),We=null!==(W=null===(M=null===(E=null==Me?void 0:Me.evaluation_outputs)||void 0===E?void 0:E.metadata)||void 0===M?void 0:M.label_color)&&void 0!==W?W:w,De=h(We),Ne=De.highlightBg,Oe=null!==(N=null===(D=null==Me?void 0:Me.evaluation_outputs)||void 0===D?void 0:D.output_value)&&void 0!==N?N:null,Pe=(null==Me?void 0:Me.deviations)||{},je=H+1,ze=z.id;if("right"===K&&Z){var He=null===(O=z.refIndexes)||void 0===O?void 0:O[0];-1!==(Te=oe.findIndex(function(e){return e.selfIndex===He}))&&(je=Te+1,ze=oe[Te].id)}var Ke,Ve=i(fe),Ye=i(pe||null),Ge=[],Xe=Object.entries(Pe).map(function(n){var t,o,i,l,r,d=n[0],a=n[1],u="".concat(ze).concat(y).concat(d),c=de[u];if(!c)return null;var s=a[$],v=g(s);if(v)s="";else if(!s)return null;Ge.push(s);var f=H,p=H;if(Z)if("left"===K){var m=null===(t=z.refIndexes)||void 0===t?void 0:t[0],h=le.findIndex(function(e){return e.selfIndex===m});p=-1!==h?h:H}else{var w=null===(o=z.refIndexes)||void 0===o?void 0:o[0],I=oe.findIndex(function(e){return e.selfIndex===w});f=-1!==I?I:H}var R="".concat(ze).concat(y).concat(d).concat(y).concat(f).concat(y).concat(p),S="left"===K?null===(i=le[p])||void 0===i?void 0:i.content:null===(l=oe[f])||void 0===l?void 0:l.content,F=a[Fe],k=x(S),C=Object.keys(Pe).map(function(e){return{key:e,text:Pe[e][Fe]}}).filter(function(e){return!g(e.text)}).sort(function(e,n){return n.text.length-e.text.length}),_=new Set;C.forEach(function(e){var n=e.text.replace(/\\(['’])/g,"$1").replace(/\\n/g,"\n");if(n){var t=new RegExp(b(n));t.test(k)&&(_.add(e.key),k=k.replace(t,"__TOKEN_".concat(e.key,"__")))}});var B=!g(F)&&!_.has(d),A=Ee||g(F)||B,T="".concat(je,".").concat(c),E=H;if("right"===K&&Z){var M=null===(r=z.refIndexes)||void 0===r?void 0:r[0],W=oe.findIndex(function(e){return e.selfIndex===M});-1!==W&&(E=W)}var D=ce?ce(E):null,N=D?e(e({},D),{badgeBg:De.badgeBg,badgeBorder:De.badgeBorder,badgeText:De.badgeText}):e({},De),O=(null==a?void 0:a.deviation_summary)?{deviation_summary:a.deviation_summary,deviation_title:null==Me?void 0:Me.deviation_title,evaluation_outputs:null==Me?void 0:Me.evaluation_outputs}:null;return{id:u,actionId:R,label:T,highlight:s,side:K,style:N,score:Oe,isConnected:null==se?void 0:se.has(R),isOrphan:A,isMissingClause:v,badgeRef:ae(K,u),onClick:function(e){e.stopPropagation(),ve&&ve(e,ke||{id:"orphan-left",title:"",content:""},A,Ce||{id:"orphan-right",title:"",content:""},R,N)},onSummaryClick:function(e){e.stopPropagation(),ue(e,R,A,O)}}}).filter(Boolean),$e=z.id&&K===(null==L?void 0:L.columnKey)?L:null,qe=o.useRef(!1);return l(function(){q||(qe.current=!1)},[q]),l(function(){Ve.current=fe,Ye.current=pe||null},[fe,pe]),l(function(){var e=!!Ve.current&&!!Ye.current&&ze===Ye.current,n=!!Ve.current&&(z.subsections||[]).some(function(e){return e.id===Ve.current});if(q&&!qe.current&&!e&&!n){var t=setTimeout(function(){var e,n=null===(e=null==$e?void 0:$e.firstDeviationRef)||void 0===e?void 0:e.current,t=null==$e?void 0:$e.firstDeviationPosition;n?"inside"===t||I(n)?qe.current=!0:(qe.current=!0,n.scrollIntoView({behavior:"smooth",block:"center"})):qe.current=!0},600);return function(){return clearTimeout(t)}}},[q,ze,null==$e?void 0:$e.firstDeviationPosition,null==$e?void 0:$e.firstDeviationRef]),n(r,e({ref:V,sx:{mb:G,width:"100%",display:"flex",flexDirection:"column",position:"relative",minWidth:0}},{children:[q&&(null==$e?void 0:$e.showAbove)&&t("div",e({style:{position:"sticky",top:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==$e?void 0:$e.showAboveRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.scrollIntoView({behavior:"smooth",block:"center"})}},{children:t("div",e({style:e({transform:"translateY(-50%) translateX(calc(100% ".concat("left"===K?"+":"-"," 130px))"),position:"absolute",paddingTop:"20px"},"left"===K?{right:"0px"}:{left:"0px"})},{children:t(v,{color:window.getComputedStyle(null===(P=null==$e?void 0:$e.showAboveRef)||void 0===P?void 0:P.current).color})}))})),n(d,e({disableGutters:!0,expanded:!ge&&q,onChange:function(){ge||(J(),Q.current=z.id)},sx:{boxShadow:"none",border:ge?"1px dashed #E2E8F0":"1px solid #E2E8F0",bgcolor:ge?"#FAFAFA":"#FFFFFF",borderRadius:"6px",flexGrow:1,width:"100%",display:"flex",flexDirection:"column",minWidth:0,"&:before":{display:"none"},"& .MuiAccordion-heading":{position:"sticky",top:-12,zIndex:10,background:"#fff"}}},{children:[t(a,e({expandIcon:ge?null:t(f,{size:16}),sx:{minHeight:"36px",flexShrink:0,cursor:ge?"default":"pointer","& .MuiAccordionSummary-content":{my:.5,display:"grid",alignItems:"center",minWidth:0,width:"100%"},"& .MuiAccordionSummary-expandIconWrapper":{transition:"transform 0.2s ease"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"}}},{children:me&&t(u,e({title:be,placement:"top"},{children:t(c,e({component:"div",sx:{fontSize:"12px",color:ge?"#94A3B8":"#19213D",fontWeight:ge?400:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0}},{children:(Ke=be,Ke?x(Ke).replace(/\\n/g,"\n").split(/(\*\*.*?\*\*)/g).map(function(e,n){return e.startsWith("**")&&e.endsWith("**")?t("strong",{children:e.slice(2,-2)},n):t(o.Fragment,{children:e},n)}):null)}))}))})),!ge&&n(s,e({sx:{pt:0,pb:1.25,bgcolor:"#FFFFFF",flex:1,display:"flex",flexDirection:"column",minWidth:0}},{children:[he&&t(p,{content:z.content,sxStyles:U,highlights:Ge,maintainRelativeOrder:Z,highlightBg:Ne,deviationBadges:Xe}),(z.subsections||[]).map(function(e,n){return ee({section:e,keyPath:"".concat(H,"-").concat(n),depth:0,columnKey:K,parentNodeId:$,devCounter:xe})})]}))]})),q&&(null==$e?void 0:$e.showBelow)&&t("div",e({style:{position:"sticky",bottom:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==$e?void 0:$e.showBelowRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.scrollIntoView({behavior:"smooth",block:"center"})}},{children:t("div",e({style:e({transform:"translateY(-50%) translateX(calc(100% ".concat("left"===K?"+":"-"," 130px))"),position:"absolute",paddingBottom:"20px"},"left"===K?{right:"0px"}:{left:"0px"})},{children:t(f,{color:window.getComputedStyle(null===(j=null==$e?void 0:$e.showBelowRef)||void 0===j?void 0:j.current).color})}))}))]}),"".concat(K,"-sec-").concat(H))};export{R as default};
1
+ import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import i,{useEffect as t}from"react";import{Box as l,Accordion as r,AccordionSummary as d,Tooltip as a,Typography as u,AccordionDetails as c}from"@mui/material";import{ChevronUp as s,ChevronDown as v}from"lucide-react";import{MemoizedMarkdown as f}from"../hooks/memoizedMarkdown.js";import{hasValue as p,generateColorPalette as h,isMissingStr as m,safeStringify as x,escapeRegExp as g,DEVIATION_BADGE_SEPARATOR as y}from"../CognitiveComparehelpers.js";import{DEFAULT_DEVIAION_COLOR as b}from"../CognitiveCompareConstants.js";var I=function(I){var w,S,F,_,k,R,C,B,A,M,W,T,E,N,O,j,P=I.section,D=I.idx,z=I.columnKey,K=I.colRef,V=I.mb,G=void 0===V?1:V,X=I.parentNodeId,Y=void 0===X?"":X,H=I.isExpanded,$=I.onToggle,q=I.navigation,J=I.showOpenNodeRef,L=I.resolvedMarkdownStyles,Q=I.maintainRelativeOrder,U=I.renderSubSections,Z=I.treeData,ee=I.proposedSections,ne=void 0===ee?[]:ee,oe=I.existingSections,ie=void 0===oe?[]:oe,te=I.deviationNumberRegistry,le=void 0===te?{}:te,re=I.getBadgeRef,de=I.openSummaryPopup,ae=I.getSectionCompareStyle,ue=I.connectedSections,ce=I.openMoreFunctionsPopup;I.deviationNodeIdToView,I.deviationTargetParentId;var se=(null===(w=P.displayTitle)||void 0===w||w)&&p(P.title),ve=(null===(S=P.displayContent)||void 0===S||S)&&p(P.content),fe=!se&&!ve,pe={current:1},he=P.title;se||(he=ve?"No Title Found":"No Matching Section Found");var me=P.evaluationResult;if(!me&&"right"===z)if(Q){var xe=null===(F=P.refIndexes)||void 0===F?void 0:F[0],ge=ne.find(function(e){return e.selfIndex===xe});me=null==ge?void 0:ge.evaluationResult}else me=null===(_=ne[D])||void 0===_?void 0:_.evaluationResult;var ye=null===(k=null==Z?void 0:Z.input_index_map)||void 0===k?void 0:k[0],be=null===(R=null==Z?void 0:Z.input_index_map)||void 0===R?void 0:R[1],Ie="left"===z?be:ye,we="left"===z?P:ne[D],Se="right"===z?P:ie[D];if(Q)if("left"===z){var Fe=null===(C=P.refIndexes)||void 0===C?void 0:C[0],_e=ie.findIndex(function(e){return e.selfIndex===Fe});Se=-1!==_e?ie[_e]:void 0}else{var ke=null===(B=P.refIndexes)||void 0===B?void 0:B[0],Re=ne.findIndex(function(e){return e.selfIndex===ke});we=-1!==Re?ne[Re]:void 0}var Ce="left"===z?!Se:!we,Be=me||(null==we?void 0:we.evaluationResult)||(null==Se?void 0:Se.evaluationResult),Ae=null!==(W=null===(M=null===(A=null==Be?void 0:Be.evaluation_outputs)||void 0===A?void 0:A.metadata)||void 0===M?void 0:M.label_color)&&void 0!==W?W:b,Me=h(Ae),We=Me.highlightBg,Te=null!==(E=null===(T=null==Be?void 0:Be.evaluation_outputs)||void 0===T?void 0:T.output_value)&&void 0!==E?E:null,Ee=(null==Be?void 0:Be.deviations)||{},Ne=D+1,Oe=P.id;if("right"===z&&Q){var je=null===(N=P.refIndexes)||void 0===N?void 0:N[0];-1!==(Re=ne.findIndex(function(e){return e.selfIndex===je}))&&(Ne=Re+1,Oe=ne[Re].id)}var Pe,De=[],ze=Object.entries(Ee).map(function(n){var o,i,t,l,r,d=n[0],a=n[1],u="".concat(Oe).concat(y).concat(d),c=le[u];if(!c)return null;var s=a[Y],v=m(s);if(v)s="";else if(!s)return null;De.push(s);var f=D,p=D;if(Q)if("left"===z){var h=null===(o=P.refIndexes)||void 0===o?void 0:o[0],b=ie.findIndex(function(e){return e.selfIndex===h});p=-1!==b?b:D}else{var I=null===(i=P.refIndexes)||void 0===i?void 0:i[0],w=ne.findIndex(function(e){return e.selfIndex===I});f=-1!==w?w:D}var S="".concat(Oe).concat(y).concat(d).concat(y).concat(f).concat(y).concat(p),F="left"===z?null===(t=ie[p])||void 0===t?void 0:t.content:null===(l=ne[f])||void 0===l?void 0:l.content,_=a[Ie],k=x(F),R=Object.keys(Ee).map(function(e){return{key:e,text:Ee[e][Ie]}}).filter(function(e){return!m(e.text)}).sort(function(e,n){return n.text.length-e.text.length}),C=new Set;R.forEach(function(e){var n=e.text.replace(/\\(['’])/g,"$1").replace(/\\n/g,"\n");if(n){var o=new RegExp(g(n));o.test(k)&&(C.add(e.key),k=k.replace(o,"__TOKEN_".concat(e.key,"__")))}});var B=!m(_)&&!C.has(d),A=Ce||m(_)||B,M="".concat(Ne,".").concat(c),W=D;if("right"===z&&Q){var T=null===(r=P.refIndexes)||void 0===r?void 0:r[0],E=ne.findIndex(function(e){return e.selfIndex===T});-1!==E&&(W=E)}var N=ae?ae(W):null,O=N?e(e({},N),{badgeBg:Me.badgeBg,badgeBorder:Me.badgeBorder,badgeText:Me.badgeText}):e({},Me),j=(null==a?void 0:a.deviation_summary)?{deviation_summary:a.deviation_summary,deviation_title:null==Be?void 0:Be.deviation_title,evaluation_outputs:null==Be?void 0:Be.evaluation_outputs}:null;return{id:u,actionId:S,label:M,highlight:s,side:z,style:O,score:Te,isConnected:null==ue?void 0:ue.has(S),isOrphan:A,isMissingClause:v,badgeRef:re(z,u),onClick:function(e){e.stopPropagation(),ce&&ce(e,we||{id:"orphan-left",title:"",content:""},A,Se||{id:"orphan-right",title:"",content:""},S,O)},onSummaryClick:function(e){e.stopPropagation(),de(e,S,A,j)}}}).filter(Boolean),Ke=P.id&&z===(null==q?void 0:q.columnKey)?q:null,Ve=i.useRef(!1);return t(function(){H||(Ve.current=!1)},[H]),n(l,e({ref:K,sx:{mb:G,width:"100%",display:"flex",flexDirection:"column",position:"relative",minWidth:0}},{children:[H&&(null==Ke?void 0:Ke.showAbove)&&o("div",e({style:{position:"sticky",top:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Ke?void 0:Ke.showAboveRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.scrollIntoView({behavior:"smooth",block:"center"})}},{children:o("div",e({style:e({transform:"translateY(-50%) translateX(calc(100% ".concat("left"===z?"+":"-"," 130px))"),position:"absolute",paddingTop:"20px"},"left"===z?{right:"0px"}:{left:"0px"})},{children:o(s,{color:window.getComputedStyle(null===(O=null==Ke?void 0:Ke.showAboveRef)||void 0===O?void 0:O.current).color})}))})),n(r,e({disableGutters:!0,expanded:!fe&&H,onChange:function(){fe||($(),J.current=P.id)},sx:{boxShadow:"none",border:fe?"1px dashed #E2E8F0":"1px solid #E2E8F0",bgcolor:fe?"#FAFAFA":"#FFFFFF",borderRadius:"6px",flexGrow:1,width:"100%",display:"flex",flexDirection:"column",minWidth:0,"&:before":{display:"none"},"& .MuiAccordion-heading":{position:"sticky",top:-12,zIndex:10,background:"#fff"}}},{children:[o(d,e({expandIcon:fe?null:o(v,{size:16}),sx:{minHeight:"36px",flexShrink:0,cursor:fe?"default":"pointer","& .MuiAccordionSummary-content":{my:.5,display:"grid",alignItems:"center",minWidth:0,width:"100%"},"& .MuiAccordionSummary-expandIconWrapper":{transition:"transform 0.2s ease"},"& .MuiAccordionSummary-expandIconWrapper.Mui-expanded":{transform:"rotate(180deg)"}}},{children:se&&o(a,e({title:he,placement:"top"},{children:o(u,e({component:"div",sx:{fontSize:"12px",color:fe?"#94A3B8":"#19213D",fontWeight:fe?400:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0}},{children:(Pe=he,Pe?x(Pe).replace(/\\n/g,"\n").split(/(\*\*.*?\*\*)/g).map(function(e,n){return e.startsWith("**")&&e.endsWith("**")?o("strong",{children:e.slice(2,-2)},n):o(i.Fragment,{children:e},n)}):null)}))}))})),!fe&&n(c,e({sx:{pt:0,pb:1.25,bgcolor:"#FFFFFF",flex:1,display:"flex",flexDirection:"column",minWidth:0}},{children:[ve&&o(f,{content:P.content,sxStyles:L,highlights:De,maintainRelativeOrder:Q,highlightBg:We,deviationBadges:ze}),(P.subsections||[]).map(function(e,n){return U({section:e,keyPath:"".concat(D,"-").concat(n),depth:0,columnKey:z,parentNodeId:Y,devCounter:pe})})]}))]})),H&&(null==Ke?void 0:Ke.showBelow)&&o("div",e({style:{position:"sticky",bottom:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Ke?void 0:Ke.showBelowRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.scrollIntoView({behavior:"smooth",block:"center"})}},{children:o("div",e({style:e({transform:"translateY(-50%) translateX(calc(100% ".concat("left"===z?"+":"-"," 130px))"),position:"absolute",paddingBottom:"20px"},"left"===z?{right:"0px"}:{left:"0px"})},{children:o(v,{color:window.getComputedStyle(null===(j=null==Ke?void 0:Ke.showBelowRef)||void 0===j?void 0:j.current).color})}))}))]}),"".concat(z,"-sec-").concat(D))};export{I as default};
2
2
  //# sourceMappingURL=SectionAccordion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionAccordion.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SectionAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAoBjD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AA0C3E,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAC5C,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5D,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,CAChB,CAAC,EAAE,KAAK,CAAC,UAAU,EACnB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,kBAAkB,GAAG,IAAI,KAC/B,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,IAAI,EAAE;QACxB,OAAO,EAAE,YAAY,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAC5B,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE;YAAE,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC;KACjC,KAAK,KAAK,CAAC,SAAS,CAAC;IAGtB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IACtG,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,GAAG,CAAC;IAC9C,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACzC,sBAAsB,CAAC,EAAE,CACvB,CAAC,EAAE,KAAK,CAAC,UAAU,EACnB,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,GAAG,KACP,IAAI,CAAC;CACX,CAAC;AAEF,QAAA,MAAM,gBAAgB,yYAyBnB,qBAAqB,4CA+bvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"SectionAccordion.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SectionAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAoBjD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AA0C3E,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAC5C,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5D,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,CAChB,CAAC,EAAE,KAAK,CAAC,UAAU,EACnB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,kBAAkB,GAAG,IAAI,KAC/B,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,IAAI,EAAE;QACxB,OAAO,EAAE,YAAY,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAC5B,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE;YAAE,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC;KACjC,KAAK,KAAK,CAAC,SAAS,CAAC;IAGtB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IACtG,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,GAAG,CAAC;IAC9C,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACzC,sBAAsB,CAAC,EAAE,CACvB,CAAC,EAAE,KAAK,CAAC,UAAU,EACnB,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,GAAG,KACP,IAAI,CAAC;CACX,CAAC;AAEF,QAAA,MAAM,gBAAgB,yYAyBnB,qBAAqB,4CAgcvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/test-citation",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",