@viswa-test/test-citation 0.0.75 → 0.0.76

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("lucide-react"),l=require("react"),t=require("./ResizableSplitPane.js"),o=require("../PdfViewer/PdfViewer.js"),r=require("../../assests/svg/PdfViewerIcons.js");exports.default=function(a){var s,u,d,c=a.href,g=a.children,v=a.metaData,h=a.chevronUpComponent,f=void 0===h?null:h,p=a.chevronDownComponent,m=void 0===p?null:p,_=a.customStyle,x=void 0===_?{}:_,b=a.defaultState,j=void 0!==b&&b,y=l.useState(j),C=y[0],F=y[1],w=l.useState(!1),P=w[0],S=w[1],D=l.useRef(null),E="string"==typeof g&&(null===(s=null==g?void 0:g.split("\n"))||void 0===s?void 0:s.length)>1?g.split("\n").join(" "):g,k="string"==typeof g?g:g[0],I=null!=f?f:function(e){var l,t;return n.jsx(i.ChevronUp,{size:null!==(l=null==e?void 0:e.fontSize)&&void 0!==l?l:16,color:null!==(t=null==e?void 0:e.color)&&void 0!==t?t:"rgb(214, 51, 132)"})}(null!==(u=null==x?void 0:x.arrow)&&void 0!==u?u:{}),R=null!=m?m:function(e){var l,t;return n.jsx(i.ChevronDown,{size:null!==(l=null==e?void 0:e.fontSize)&&void 0!==l?l:16,color:null!==(t=null==e?void 0:e.color)&&void 0!==t?t:"rgb(214, 51, 132)"})}(null!==(d=null==x?void 0:x.arrow)&&void 0!==d?d:{}),q=["contract","clause"];l.useEffect(function(){var e=function(){S(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),function(){return document.removeEventListener("fullscreenchange",e)}},[]);return n.jsxs("span",e.__assign({style:e.__assign({display:"inline"},x.relativeWrapper||{})},{children:[n.jsx("div",e.__assign({style:e.__assign({display:"inline",marginTop:0},x.citationButtonWrapper||{})},{children:n.jsxs("button",e.__assign({type:"button",onClick:function(){return F(function(e){return!e})},style:e.__assign({display:"inline-flex",alignItems:"center",gap:"3px",fontFamily:'"Inter", sans-serif',backgroundColor:"transparent",padding:0,margin:0,fontSize:"13px",borderRadius:9999,cursor:"pointer",fontWeight:700,color:"rgb(214, 51, 132)",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},x.citationButton||{})},{children:[n.jsx("span",{children:E}),n.jsx("span",e.__assign({style:{display:"flex",alignItems:"center"}},{children:C?I:R}))]}))})),C&&n.jsxs("div",e.__assign({ref:D,style:e.__assign({boxSizing:"border-box",border:P?"none":"1px solid #E4E7EC",borderRadius:P?"0":"8px",overflow:"hidden",marginTop:"8px",display:"flex",flexDirection:"column",width:"100%",height:P?"100vh":"auto"},P?{position:"fixed",inset:0,zIndex:99999,backgroundColor:"#FAFAFA"}:{})},{children:[n.jsx("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"6px 10px",borderBottom:"1px solid #E4E7EC",backgroundColor:"#FFFFFF",flexShrink:0}},{children:n.jsx("button",e.__assign({onClick:function(){var e=D.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(function(e){console.error("Fullscreen error: ".concat(e.message))}))},title:P?"Exit fullscreen":"Fullscreen",style:{background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:"4px",borderRadius:"6px",color:"#475467",marginRight:"9px"}},{children:P?n.jsx(r.DefaultFullScreenCloseIcon,{}):n.jsx(r.DefaultFullScreenIcon,{})}))})),n.jsx("div",e.__assign({style:{flex:1,minHeight:0,height:"100%",overflow:"hidden"}},{children:n.jsx(function(){var i,l,r,a,s,u,d,h,f,p,m;console.log("citation details ->","href ->",c,"children ->",g,"metaData ->",v,"citationDisplayTitle ->",E);var _=function(e){try{return new URL(e,window.location.origin).searchParams.get("citationNumber")}catch(e){return null}}(c);if(!_)return null;var x=(null===(i=null==v?void 0:v.citations)||void 0===i?void 0:i[_])||{},b=(null===(l=null==v?void 0:v.docData)||void 0===l?void 0:l.documents)||{},j=(null===(r=null==v?void 0:v.docData)||void 0===r?void 0:r.input_index_map)||{},y=null==j?void 0:j[0],C=null==j?void 0:j[1],F=y?b[y]:null,w=C?b[C]:null,S=y?x[y]:null,D=C?x[C]:null;if(q.includes(k)){console.log("leftDocument",F,"rightDocument",w),console.log("leftCitation",S,"rightCitation",D);var I=S?n.jsx(o.default,{defaultScale:"PageWidth",showFullScreenAction:!1,showHighlightsAction:!1,pdfName:F.title,pdfUrl:F.signed_url,highlightText:[null!==(a=null==S?void 0:S.highlighted_text)&&void 0!==a?a:""],highlightPages:{1:null===(s=null==S?void 0:S.custom_metadata)||void 0===s?void 0:s.pdf_start_page_number},jumpToPageValue:1,highlightCordinatePages:[],useCoordinates:!1,useRange:!0,rangeOfPages:[null===(u=null==S?void 0:S.custom_metadata)||void 0===u?void 0:u.pdf_start_page_number,null===(d=null==S?void 0:S.custom_metadata)||void 0===d?void 0:d.pdf_end_page_number]}):null,R=D?n.jsx(o.default,{defaultScale:"PageWidth",showFullScreenAction:!1,showHighlightsAction:!1,pdfName:w.title,pdfUrl:w.signed_url,jumpToPageValue:1,highlightText:[null!==(h=null==D?void 0:D.highlighted_text)&&void 0!==h?h:""],highlightPages:{1:null===(f=null==D?void 0:D.custom_metadata)||void 0===f?void 0:f.pdf_start_page_number},highlightCordinatePages:[],useCoordinates:!1,useRange:!0,rangeOfPages:[null===(p=null==D?void 0:D.custom_metadata)||void 0===p?void 0:p.pdf_start_page_number,null===(m=null==D?void 0:D.custom_metadata)||void 0===m?void 0:m.pdf_end_page_number]}):null;return S||D?n.jsx("div",e.__assign({style:{height:"100%",display:"flex",flexDirection:"column"}},{children:n.jsx(t.default,{leftComponent:I,rightComponent:R,isFullscreen:P})})):n.jsx("div",{children:"Missing PDF Citation. Please try again later"})}return n.jsx("div",{children:"No Citation Found. Please try again later"})},{})}))]}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("lucide-react"),l=require("react"),t=require("./ResizableSplitPane.js"),o=require("../PdfViewer/PdfViewer.js"),r=require("../../assests/svg/PdfViewerIcons.js"),a=function(n){var l,r,a,d,s,u,c,g,v,p,h,f=n.href,x=n.metaData,_=n.citationTitle,m=n.isFullscreen,b=function(e){try{return new URL(e,window.location.origin).searchParams.get("citationNumber")}catch(e){return null}}(f);if(!b)return null;var j=(null===(l=null==x?void 0:x.citations)||void 0===l?void 0:l[b])||{},y=(null===(r=null==x?void 0:x.docData)||void 0===r?void 0:r.documents)||{},C=(null===(a=null==x?void 0:x.docData)||void 0===a?void 0:a.input_index_map)||{},w=null==C?void 0:C[0],F=null==C?void 0:C[1],P=w?y[w]:null,S=F?y[F]:null,D=w?j[w]:null,k=F?j[F]:null;if(["contract","clause"].includes(_)){var z=D?i.jsx(o.default,{defaultScale:"PageWidth",showFullScreenAction:!1,showHighlightsAction:!1,pdfName:P.title,pdfUrl:P.signed_url,highlightText:[null!==(d=null==D?void 0:D.highlighted_text)&&void 0!==d?d:""],highlightPages:{1:null===(s=null==D?void 0:D.custom_metadata)||void 0===s?void 0:s.pdf_start_page_number},jumpToPageValue:1,highlightCordinatePages:[],useCoordinates:!1,useRange:!0,rangeOfPages:[null===(u=null==D?void 0:D.custom_metadata)||void 0===u?void 0:u.pdf_start_page_number,null===(c=null==D?void 0:D.custom_metadata)||void 0===c?void 0:c.pdf_end_page_number]}):null,R=k?i.jsx(o.default,{defaultScale:"PageWidth",showFullScreenAction:!1,showHighlightsAction:!1,pdfName:S.title,pdfUrl:S.signed_url,jumpToPageValue:1,highlightText:[null!==(g=null==k?void 0:k.highlighted_text)&&void 0!==g?g:""],highlightPages:{1:null===(v=null==k?void 0:k.custom_metadata)||void 0===v?void 0:v.pdf_start_page_number},highlightCordinatePages:[],useCoordinates:!1,useRange:!0,rangeOfPages:[null===(p=null==k?void 0:k.custom_metadata)||void 0===p?void 0:p.pdf_start_page_number,null===(h=null==k?void 0:k.custom_metadata)||void 0===h?void 0:h.pdf_end_page_number]}):null;return D||k?i.jsx("div",e.__assign({style:{height:"100%",display:"flex",flexDirection:"column"}},{children:i.jsx(t.default,{leftComponent:z,rightComponent:R,isFullscreen:m})})):i.jsx("div",{children:"Missing PDF Citation. Please try again later"})}return i.jsx("div",{children:"No Citation Found. Please try again later"})};exports.default=function(t){var o,d,s,u=t.href,c=t.children,g=t.metaData,v=t.chevronUpComponent,p=void 0===v?null:v,h=t.chevronDownComponent,f=void 0===h?null:h,x=t.customStyle,_=void 0===x?{}:x,m=t.defaultState,b=void 0!==m&&m,j=l.useState(b),y=j[0],C=j[1],w=l.useState(!1),F=w[0],P=w[1],S="string"==typeof c&&(null===(o=null==c?void 0:c.split("\n"))||void 0===o?void 0:o.length)>1?c.split("\n").join(" "):c,D="string"==typeof c?c:c[0],k=null!=p?p:function(e){var l,t;return i.jsx(n.ChevronUp,{size:null!==(l=null==e?void 0:e.fontSize)&&void 0!==l?l:16,color:null!==(t=null==e?void 0:e.color)&&void 0!==t?t:"rgb(214, 51, 132)"})}(null!==(d=null==_?void 0:_.arrow)&&void 0!==d?d:{}),z=null!=f?f:function(e){var l,t;return i.jsx(n.ChevronDown,{size:null!==(l=null==e?void 0:e.fontSize)&&void 0!==l?l:16,color:null!==(t=null==e?void 0:e.color)&&void 0!==t?t:"rgb(214, 51, 132)"})}(null!==(s=null==_?void 0:_.arrow)&&void 0!==s?s:{});return i.jsxs("span",e.__assign({style:e.__assign({display:"inline"},_.relativeWrapper||{})},{children:[i.jsx("div",e.__assign({style:e.__assign({display:"inline",marginTop:0},_.citationButtonWrapper||{})},{children:i.jsxs("button",e.__assign({type:"button",onClick:function(){return C(function(e){return!e})},style:e.__assign({display:"inline-flex",alignItems:"center",gap:"3px",fontFamily:'"Inter", sans-serif',backgroundColor:"transparent",padding:0,margin:0,fontSize:"13px",borderRadius:9999,cursor:"pointer",fontWeight:700,color:"rgb(214, 51, 132)",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},_.citationButton||{})},{children:[i.jsx("span",{children:S}),i.jsx("span",e.__assign({style:{display:"flex",alignItems:"center"}},{children:y?k:z}))]}))})),y&&i.jsxs("div",e.__assign({style:F?{position:"fixed",inset:0,zIndex:999999,backgroundColor:"#FAFAFA",display:"flex",flexDirection:"column"}:{boxSizing:"border-box",border:"1px solid #E4E7EC",borderRadius:"8px",overflow:"hidden",marginTop:"8px",display:"flex",flexDirection:"column",width:"100%"}},{children:[i.jsx("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",padding:"6px 10px",borderBottom:"1px solid #E4E7EC",backgroundColor:"#FFFFFF",flexShrink:0}},{children:i.jsx("button",e.__assign({onClick:function(){P(function(e){return!e})},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"6px",color:"#475467",marginRight:"9px"}},{children:F?i.jsx(r.DefaultFullScreenCloseIcon,{}):i.jsx(r.DefaultFullScreenIcon,{})}))})),i.jsx("div",e.__assign({style:{flex:1,minHeight:0,height:"100%",overflow:"hidden"}},{children:i.jsx(a,{href:u,children:c,metaData:g,citationTitle:D,isFullscreen:F})}))]}))]}))};
2
2
  //# sourceMappingURL=CitationAnchor.js.map
@@ -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"),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,g,h,x,m,_,y,b,I,w,S,A,R=a.section,E=a.idx,j=a.columnKey,C=a.colRef,F=a.mb,k=void 0===F?1:F,D=a.parentNodeId,O=void 0===D?"":D,T=a.isExpanded,B=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,Z=a.deviationNodeIdToView,ee=a.deviationTargetParentId,ne=(null===(u=R.displayTitle)||void 0===u||u)&&r.hasValue(R.title),ie=(null===(c=R.displayContent)||void 0===c||c)&&r.hasValue(R.content),oe=!ne&&!ie,te={current:1},le=R.title;ne||(le=ie?"No Title Found":"No Matching Section Found");var re=R.evaluationResult;if(!re&&"right"===j)if(V){var de=null===(v=R.refIndexes)||void 0===v?void 0:v[0],ae=z.find(function(e){return e.selfIndex===de});re=null==ae?void 0:ae.evaluationResult}else re=null===(f=z[E])||void 0===f?void 0:f.evaluationResult;var se=null===(p=null==q?void 0:q.input_index_map)||void 0===p?void 0:p[0],ue=null===(g=null==q?void 0:q.input_index_map)||void 0===g?void 0:g[1],ce="left"===j?ue:se,ve="left"===j?R:z[E],fe="right"===j?R:L[E];if(V)if("left"===j){var pe=null===(h=R.refIndexes)||void 0===h?void 0:h[0],ge=L.findIndex(function(e){return e.selfIndex===pe});fe=-1!==ge?L[ge]:void 0}else{var he=null===(x=R.refIndexes)||void 0===x?void 0:x[0],xe=z.findIndex(function(e){return e.selfIndex===he});ve=-1!==xe?z[xe]:void 0}var me="left"===j?!fe:!ve,_e=re||(null==ve?void 0:ve.evaluationResult)||(null==fe?void 0:fe.evaluationResult),ye=null!==(y=null===(_=null===(m=null==_e?void 0:_e.evaluation_outputs)||void 0===m?void 0:m.metadata)||void 0===_?void 0:_.label_color)&&void 0!==y?y:d.DEFAULT_DEVIAION_COLOR,be=r.generateColorPalette(ye),Ie=be.highlightBg,we=null!==(I=null===(b=null==_e?void 0:_e.evaluation_outputs)||void 0===b?void 0:b.output_value)&&void 0!==I?I:null,Se=(null==_e?void 0:_e.deviations)||{},Ae=E+1,Re=R.id;if("right"===j&&V){var Ee=null===(w=R.refIndexes)||void 0===w?void 0:w[0];-1!==(xe=z.findIndex(function(e){return e.selfIndex===Ee}))&&(Ae=xe+1,Re=z[xe].id)}var je,Ce=[],Fe=Object.entries(Se).map(function(n){var i,o,t,l=n[0],d=n[1],a="".concat(Re).concat(r.DEVIATION_BADGE_SEPARATOR).concat(l),s=X[a];if(!s)return null;var u=d[O],c=r.isMissingStr(u);if(c)u="";else if(!u)return null;Ce.push(u);var v=d[ce],f="left"===j?null===(i=z[E])||void 0===i?void 0:i.content:null===(o=L[E])||void 0===o?void 0:o.content,p=r.safeStringify(f),g=Object.keys(Se).map(function(e){return{key:e,text:Se[e][ce]}}).filter(function(e){return!r.isMissingStr(e.text)}).sort(function(e,n){return n.text.length-e.text.length}),h=new Set;g.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(p)&&(h.add(e.key),p=p.replace(i,"__TOKEN_".concat(e.key,"__")))}});var x=!r.isMissingStr(v)&&!h.has(l),m=me||r.isMissingStr(v)||x,_="".concat(Ae,".").concat(s),y="".concat(Re).concat(r.DEVIATION_BADGE_SEPARATOR).concat(l).concat(r.DEVIATION_BADGE_SEPARATOR).concat(E).concat(r.DEVIATION_BADGE_SEPARATOR).concat(E),b=E;if("right"===j&&V){var I=null===(t=R.refIndexes)||void 0===t?void 0:t[0],w=z.findIndex(function(e){return e.selfIndex===I});-1!==w&&(b=w)}var S=$?$(b):null,A=S?e.__assign(e.__assign({},S),{badgeBg:be.badgeBg,badgeBorder:be.badgeBorder,badgeText:be.badgeText}):e.__assign({},be),C=(null==d?void 0:d.deviation_summary)?{deviation_summary:d.deviation_summary,deviation_title:null==_e?void 0:_e.deviation_title,evaluation_outputs:null==_e?void 0:_e.evaluation_outputs}:null;return{id:a,actionId:y,label:_,highlight:u,side:j,style:A,score:we,isConnected:null==J?void 0:J.has(y),isOrphan:m,isMissingClause:c,badgeRef:Y(j,a),onClick:function(e){e.stopPropagation(),Q&&Q(e,ve||{id:"orphan-left",title:"",content:""},m,fe||{id:"orphan-right",title:"",content:""},y,A)},onSummaryClick:function(e){e.stopPropagation(),H(e,y,m,C)}}}).filter(Boolean),ke=R.id&&j===(null==M?void 0:M.columnKey)?M:null,De=s.default.useRef(!1);return i.useEffect(function(){T||(De.current=!1)},[T]),i.useEffect(function(){!!Z&&(R.subsections||[]).some(function(e){return e.id===Z});T&&De.current},[T,Z,ee,Re,null==ke?void 0:ke.firstDeviationPosition,null==ke?void 0:ke.firstDeviationRef]),n.jsxs(o.Box,e.__assign({ref:C,sx:{mb:k,width:"100%",display:"flex",flexDirection:"column",position:"relative",minWidth:0}},{children:[T&&(null==ke?void 0:ke.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==ke?void 0:ke.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(t.ChevronUp,{color:window.getComputedStyle(null===(S=null==ke?void 0:ke.showAboveRef)||void 0===S?void 0:S.current).color})}))})),n.jsxs(o.Accordion,e.__assign({disableGutters:!0,expanded:!oe&&T,onChange:function(){oe||(B(),N.current=R.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(o.AccordionSummary,e.__assign({expandIcon:oe?null:n.jsx(t.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:ne&&n.jsx(o.Tooltip,e.__assign({title:le,placement:"top"},{children:n.jsx(o.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?r.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(o.AccordionDetails,e.__assign({sx:{pt:0,pb:1.25,bgcolor:"#FFFFFF",flex:1,display:"flex",flexDirection:"column",minWidth:0}},{children:[ie&&n.jsx(l.MemoizedMarkdown,{content:R.content,sxStyles:P,highlights:Ce,maintainRelativeOrder:V,highlightBg:Ie,deviationBadges:Fe}),(R.subsections||[]).map(function(e,n){return W({section:e,keyPath:"".concat(E,"-").concat(n),depth:0,columnKey:j,parentNodeId:O,devCounter:te})})]}))]})),T&&(null==ke?void 0:ke.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==ke?void 0:ke.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(t.ChevronDown,{color:window.getComputedStyle(null===(A=null==ke?void 0:ke.showBelowRef)||void 0===A?void 0:A.current).color})}))}))]}),"".concat(j,"-sec-").concat(E))};
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"),l=require("../hooks/memoizedMarkdown.js"),r=require("../CognitiveComparehelpers.js"),a=require("../CognitiveCompareConstants.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=d(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(d){var c,v,f,p,g,h,x,m,_,y,b,w,I,S,R,A,E=d.section,C=d.idx,j=d.columnKey,D=d.colRef,F=d.mb,T=void 0===F?1:F,k=d.parentNodeId,B=void 0===k?"":k,O=d.isExpanded,M=d.onToggle,P=d.navigation,N=d.showOpenNodeRef,V=d.resolvedMarkdownStyles,W=d.maintainRelativeOrder,q=d.renderSubSections,G=d.treeData,z=d.proposedSections,H=void 0===z?[]:z,K=d.existingSections,Y=void 0===K?[]:K,L=d.deviationNumberRegistry,U=void 0===L?{}:L,X=d.getBadgeRef,$=d.openSummaryPopup,J=d.getSectionCompareStyle,Q=d.connectedSections,Z=d.openMoreFunctionsPopup,ee=d.deviationNodeIdToView,ne=d.deviationTargetParentId,ie=(null===(c=E.displayTitle)||void 0===c||c)&&r.hasValue(E.title),te=(null===(v=E.displayContent)||void 0===v||v)&&r.hasValue(E.content),oe=!ie&&!te,le={current:1},re=E.title;ie||(re=te?"No Title Found":"No Matching Section Found");var ae=E.evaluationResult;if(!ae&&"right"===j)if(W){var de=null===(f=E.refIndexes)||void 0===f?void 0:f[0],se=H.find(function(e){return e.selfIndex===de});ae=null==se?void 0:se.evaluationResult}else ae=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===(h=null==G?void 0:G.input_index_map)||void 0===h?void 0:h[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===(x=E.refIndexes)||void 0===x?void 0:x[0],he=Y.findIndex(function(e){return e.selfIndex===ge});pe=-1!==he?Y[he]:void 0}else{var xe=null===(m=E.refIndexes)||void 0===m?void 0:m[0],me=H.findIndex(function(e){return e.selfIndex===xe});fe=-1!==me?H[me]:void 0}var _e="left"===j?!pe:!fe,ye=ae||(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:a.DEFAULT_DEVIAION_COLOR,we=r.generateColorPalette(be),Ie=we.highlightBg,Se=null!==(I=null===(w=null==ye?void 0:ye.evaluation_outputs)||void 0===w?void 0:w.output_value)&&void 0!==I?I:null,Re=(null==ye?void 0:ye.deviations)||{},Ae=C+1,Ee=E.id;if("right"===j&&W){var Ce=null===(S=E.refIndexes)||void 0===S?void 0:S[0];-1!==(me=H.findIndex(function(e){return e.selfIndex===Ce}))&&(Ae=me+1,Ee=H[me].id)}var je,De=[],Fe=Object.entries(Re).map(function(n){var i,t,o,l=n[0],a=n[1],d="".concat(Ee).concat(r.DEVIATION_BADGE_SEPARATOR).concat(l),s=U[d];if(!s)return null;var u=a[B],c=r.isMissingStr(u);if(c)u="";else if(!u)return null;De.push(u);var v=a[ve],f="left"===j?null===(i=H[C])||void 0===i?void 0:i.content:null===(t=Y[C])||void 0===t?void 0:t.content,p=r.safeStringify(f),g=Object.keys(Re).map(function(e){return{key:e,text:Re[e][ve]}}).filter(function(e){return!r.isMissingStr(e.text)}).sort(function(e,n){return n.text.length-e.text.length}),h=new Set;g.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(p)&&(h.add(e.key),p=p.replace(i,"__TOKEN_".concat(e.key,"__")))}});var x=!r.isMissingStr(v)&&!h.has(l),m=_e||r.isMissingStr(v)||x,_="".concat(Ae,".").concat(s),y="".concat(Ee).concat(r.DEVIATION_BADGE_SEPARATOR).concat(l).concat(r.DEVIATION_BADGE_SEPARATOR).concat(C).concat(r.DEVIATION_BADGE_SEPARATOR).concat(C),b=C;if("right"===j&&W){var w=null===(o=E.refIndexes)||void 0===o?void 0:o[0],I=H.findIndex(function(e){return e.selfIndex===w});-1!==I&&(b=I)}var S=J?J(b):null,R=S?e.__assign(e.__assign({},S),{badgeBg:we.badgeBg,badgeBorder:we.badgeBorder,badgeText:we.badgeText}):e.__assign({},we),A=(null==a?void 0:a.deviation_summary)?{deviation_summary:a.deviation_summary,deviation_title:null==ye?void 0:ye.deviation_title,evaluation_outputs:null==ye?void 0:ye.evaluation_outputs}:null;return{id:d,actionId:y,label:_,highlight:u,side:j,style:R,score:Se,isConnected:null==Q?void 0:Q.has(y),isOrphan:m,isMissingClause:c,badgeRef:X(j,d),onClick:function(e){e.stopPropagation(),Z&&Z(e,fe||{id:"orphan-left",title:"",content:""},m,pe||{id:"orphan-right",title:"",content:""},y,R)},onSummaryClick:function(e){e.stopPropagation(),$(e,y,m,A)}}}).filter(Boolean),Te=E.id&&j===(null==P?void 0:P.columnKey)?P:null,ke=s.default.useRef(!1);return i.useEffect(function(){O||(ke.current=!1)},[O]),i.useEffect(function(){var e=!!ee&&!!ne&&Ee===ne,n=!!ee&&(E.subsections||[]).some(function(e){return e.id===ee});if(O&&!ke.current&&!e&&!n){var i=setTimeout(function(){var e,n=null===(e=null==Te?void 0:Te.firstDeviationRef)||void 0===e?void 0:e.current,i=null==Te?void 0:Te.firstDeviationPosition;n?"inside"===i||u(n)?ke.current=!0:(ke.current=!0,n.scrollIntoView({behavior:"smooth",block:"center"})):ke.current=!0},600);return function(){return clearTimeout(i)}}},[O,ee,ne,Ee,null==Te?void 0:Te.firstDeviationPosition,null==Te?void 0:Te.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==Te?void 0:Te.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==Te?void 0:Te.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===(R=null==Te?void 0:Te.showAboveRef)||void 0===R?void 0:R.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:re,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=re,je?r.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(l.MemoizedMarkdown,{content:E.content,sxStyles:V,highlights:De,maintainRelativeOrder:W,highlightBg:Ie,deviationBadges:Fe}),(E.subsections||[]).map(function(e,n){return q({section:e,keyPath:"".concat(C,"-").concat(n),depth:0,columnKey:j,parentNodeId:B,devCounter:le})})]}))]})),O&&(null==Te?void 0:Te.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==Te?void 0:Te.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==Te?void 0:Te.showBelowRef)||void 0===A?void 0:A.current).color})}))}))]}),"".concat(j,"-sec-").concat(C))};
2
2
  //# sourceMappingURL=SectionAccordion.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as i}from"react/jsx-runtime";import{ChevronUp as l,ChevronDown as t}from"lucide-react";import{useState as o,useRef as r,useEffect as d}from"react";import a from"./ResizableSplitPane.js";import u from"../PdfViewer/PdfViewer.js";import{DefaultFullScreenCloseIcon as s,DefaultFullScreenIcon as c}from"../../assests/svg/PdfViewerIcons.js";var g=function(g){var v,p,h,f=g.href,m=g.children,x=g.metaData,b=g.chevronUpComponent,_=void 0===b?null:b,y=g.chevronDownComponent,C=void 0===y?null:y,w=g.customStyle,F=void 0===w?{}:w,P=g.defaultState,S=o(void 0!==P&&P),D=S[0],E=S[1],j=o(!1),k=j[0],z=j[1],R=r(null),A="string"==typeof m&&(null===(v=null==m?void 0:m.split("\n"))||void 0===v?void 0:v.length)>1?m.split("\n").join(" "):m,I="string"==typeof m?m:m[0],T=null!=_?_:function(e){var n,t;return i(l,{size:null!==(n=null==e?void 0:e.fontSize)&&void 0!==n?n:16,color:null!==(t=null==e?void 0:e.color)&&void 0!==t?t:"rgb(214, 51, 132)"})}(null!==(p=null==F?void 0:F.arrow)&&void 0!==p?p:{}),V=null!=C?C:function(e){var n,l;return i(t,{size:null!==(n=null==e?void 0:e.fontSize)&&void 0!==n?n:16,color:null!==(l=null==e?void 0:e.color)&&void 0!==l?l:"rgb(214, 51, 132)"})}(null!==(h=null==F?void 0:F.arrow)&&void 0!==h?h:{}),W=["contract","clause"];d(function(){var e=function(){z(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",e),function(){return document.removeEventListener("fullscreenchange",e)}},[]);return n("span",e({style:e({display:"inline"},F.relativeWrapper||{})},{children:[i("div",e({style:e({display:"inline",marginTop:0},F.citationButtonWrapper||{})},{children:n("button",e({type:"button",onClick:function(){return E(function(e){return!e})},style:e({display:"inline-flex",alignItems:"center",gap:"3px",fontFamily:'"Inter", sans-serif',backgroundColor:"transparent",padding:0,margin:0,fontSize:"13px",borderRadius:9999,cursor:"pointer",fontWeight:700,color:"rgb(214, 51, 132)",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},F.citationButton||{})},{children:[i("span",{children:A}),i("span",e({style:{display:"flex",alignItems:"center"}},{children:D?T:V}))]}))})),D&&n("div",e({ref:R,style:e({boxSizing:"border-box",border:k?"none":"1px solid #E4E7EC",borderRadius:k?"0":"8px",overflow:"hidden",marginTop:"8px",display:"flex",flexDirection:"column",width:"100%",height:k?"100vh":"auto"},k?{position:"fixed",inset:0,zIndex:99999,backgroundColor:"#FAFAFA"}:{})},{children:[i("div",e({style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"6px 10px",borderBottom:"1px solid #E4E7EC",backgroundColor:"#FFFFFF",flexShrink:0}},{children:i("button",e({onClick:function(){var e=R.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(function(e){console.error("Fullscreen error: ".concat(e.message))}))},title:k?"Exit fullscreen":"Fullscreen",style:{background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:"4px",borderRadius:"6px",color:"#475467",marginRight:"9px"}},{children:i(k?s:c,{})}))})),i("div",e({style:{flex:1,minHeight:0,height:"100%",overflow:"hidden"}},{children:i(function(){var n,l,t,o,r,d,s,c,g,v,p;console.log("citation details ->","href ->",f,"children ->",m,"metaData ->",x,"citationDisplayTitle ->",A);var h=function(e){try{return new URL(e,window.location.origin).searchParams.get("citationNumber")}catch(e){return null}}(f);if(!h)return null;var b=(null===(n=null==x?void 0:x.citations)||void 0===n?void 0:n[h])||{},_=(null===(l=null==x?void 0:x.docData)||void 0===l?void 0:l.documents)||{},y=(null===(t=null==x?void 0:x.docData)||void 0===t?void 0:t.input_index_map)||{},C=null==y?void 0:y[0],w=null==y?void 0:y[1],F=C?_[C]:null,P=w?_[w]:null,S=C?b[C]:null,D=w?b[w]:null;if(W.includes(I)){console.log("leftDocument",F,"rightDocument",P),console.log("leftCitation",S,"rightCitation",D);var E=S?i(u,{defaultScale:"PageWidth",showFullScreenAction:!1,showHighlightsAction:!1,pdfName:F.title,pdfUrl:F.signed_url,highlightText:[null!==(o=null==S?void 0:S.highlighted_text)&&void 0!==o?o:""],highlightPages:{1:null===(r=null==S?void 0:S.custom_metadata)||void 0===r?void 0:r.pdf_start_page_number},jumpToPageValue:1,highlightCordinatePages:[],useCoordinates:!1,useRange:!0,rangeOfPages:[null===(d=null==S?void 0:S.custom_metadata)||void 0===d?void 0:d.pdf_start_page_number,null===(s=null==S?void 0:S.custom_metadata)||void 0===s?void 0:s.pdf_end_page_number]}):null,j=D?i(u,{defaultScale:"PageWidth",showFullScreenAction:!1,showHighlightsAction:!1,pdfName:P.title,pdfUrl:P.signed_url,jumpToPageValue:1,highlightText:[null!==(c=null==D?void 0:D.highlighted_text)&&void 0!==c?c:""],highlightPages:{1:null===(g=null==D?void 0:D.custom_metadata)||void 0===g?void 0:g.pdf_start_page_number},highlightCordinatePages:[],useCoordinates:!1,useRange:!0,rangeOfPages:[null===(v=null==D?void 0:D.custom_metadata)||void 0===v?void 0:v.pdf_start_page_number,null===(p=null==D?void 0:D.custom_metadata)||void 0===p?void 0:p.pdf_end_page_number]}):null;return i("div",S||D?e({style:{height:"100%",display:"flex",flexDirection:"column"}},{children:i(a,{leftComponent:E,rightComponent:j,isFullscreen:k})}):{children:"Missing PDF Citation. Please try again later"})}return i("div",{children:"No Citation Found. Please try again later"})},{})}))]}))]}))};export{g as default};
1
+ import{__assign as i}from"tslib";import{jsxs as n,jsx as e}from"react/jsx-runtime";import{ChevronUp as l,ChevronDown as o}from"lucide-react";import{useState as t}from"react";import r from"./ResizableSplitPane.js";import d from"../PdfViewer/PdfViewer.js";import{DefaultFullScreenCloseIcon as a,DefaultFullScreenIcon as u}from"../../assests/svg/PdfViewerIcons.js";var s=function(n){var l,o,t,a,u,s,c,p,g,v,h,f=n.href,m=n.metaData,x=n.citationTitle,b=n.isFullscreen,_=function(i){try{return new URL(i,window.location.origin).searchParams.get("citationNumber")}catch(i){return null}}(f);if(!_)return null;var y=(null===(l=null==m?void 0:m.citations)||void 0===l?void 0:l[_])||{},w=(null===(o=null==m?void 0:m.docData)||void 0===o?void 0:o.documents)||{},C=(null===(t=null==m?void 0:m.docData)||void 0===t?void 0:t.input_index_map)||{},P=null==C?void 0:C[0],F=null==C?void 0:C[1],S=P?w[P]:null,D=F?w[F]:null,k=P?y[P]:null,j=F?y[F]:null;if(["contract","clause"].includes(x)){var z=k?e(d,{defaultScale:"PageWidth",showFullScreenAction:!1,showHighlightsAction:!1,pdfName:S.title,pdfUrl:S.signed_url,highlightText:[null!==(a=null==k?void 0:k.highlighted_text)&&void 0!==a?a:""],highlightPages:{1:null===(u=null==k?void 0:k.custom_metadata)||void 0===u?void 0:u.pdf_start_page_number},jumpToPageValue:1,highlightCordinatePages:[],useCoordinates:!1,useRange:!0,rangeOfPages:[null===(s=null==k?void 0:k.custom_metadata)||void 0===s?void 0:s.pdf_start_page_number,null===(c=null==k?void 0:k.custom_metadata)||void 0===c?void 0:c.pdf_end_page_number]}):null,R=j?e(d,{defaultScale:"PageWidth",showFullScreenAction:!1,showHighlightsAction:!1,pdfName:D.title,pdfUrl:D.signed_url,jumpToPageValue:1,highlightText:[null!==(p=null==j?void 0:j.highlighted_text)&&void 0!==p?p:""],highlightPages:{1:null===(g=null==j?void 0:j.custom_metadata)||void 0===g?void 0:g.pdf_start_page_number},highlightCordinatePages:[],useCoordinates:!1,useRange:!0,rangeOfPages:[null===(v=null==j?void 0:j.custom_metadata)||void 0===v?void 0:v.pdf_start_page_number,null===(h=null==j?void 0:j.custom_metadata)||void 0===h?void 0:h.pdf_end_page_number]}):null;return e("div",k||j?i({style:{height:"100%",display:"flex",flexDirection:"column"}},{children:e(r,{leftComponent:z,rightComponent:R,isFullscreen:b})}):{children:"Missing PDF Citation. Please try again later"})}return e("div",{children:"No Citation Found. Please try again later"})},c=function(r){var d,c,p,g=r.href,v=r.children,h=r.metaData,f=r.chevronUpComponent,m=void 0===f?null:f,x=r.chevronDownComponent,b=void 0===x?null:x,_=r.customStyle,y=void 0===_?{}:_,w=r.defaultState,C=t(void 0!==w&&w),P=C[0],F=C[1],S=t(!1),D=S[0],k=S[1],j="string"==typeof v&&(null===(d=null==v?void 0:v.split("\n"))||void 0===d?void 0:d.length)>1?v.split("\n").join(" "):v,z="string"==typeof v?v:v[0],R=null!=m?m:function(i){var n,o;return e(l,{size:null!==(n=null==i?void 0:i.fontSize)&&void 0!==n?n:16,color:null!==(o=null==i?void 0:i.color)&&void 0!==o?o:"rgb(214, 51, 132)"})}(null!==(c=null==y?void 0:y.arrow)&&void 0!==c?c:{}),T=null!=b?b:function(i){var n,l;return e(o,{size:null!==(n=null==i?void 0:i.fontSize)&&void 0!==n?n:16,color:null!==(l=null==i?void 0:i.color)&&void 0!==l?l:"rgb(214, 51, 132)"})}(null!==(p=null==y?void 0:y.arrow)&&void 0!==p?p:{});return n("span",i({style:i({display:"inline"},y.relativeWrapper||{})},{children:[e("div",i({style:i({display:"inline",marginTop:0},y.citationButtonWrapper||{})},{children:n("button",i({type:"button",onClick:function(){return F(function(i){return!i})},style:i({display:"inline-flex",alignItems:"center",gap:"3px",fontFamily:'"Inter", sans-serif',backgroundColor:"transparent",padding:0,margin:0,fontSize:"13px",borderRadius:9999,cursor:"pointer",fontWeight:700,color:"rgb(214, 51, 132)",border:"none",textDecoration:"none",wordBreak:"break-word",whiteSpace:"normal"},y.citationButton||{})},{children:[e("span",{children:j}),e("span",i({style:{display:"flex",alignItems:"center"}},{children:P?R:T}))]}))})),P&&n("div",i({style:D?{position:"fixed",inset:0,zIndex:999999,backgroundColor:"#FAFAFA",display:"flex",flexDirection:"column"}:{boxSizing:"border-box",border:"1px solid #E4E7EC",borderRadius:"8px",overflow:"hidden",marginTop:"8px",display:"flex",flexDirection:"column",width:"100%"}},{children:[e("div",i({style:{display:"flex",justifyContent:"flex-end",padding:"6px 10px",borderBottom:"1px solid #E4E7EC",backgroundColor:"#FFFFFF",flexShrink:0}},{children:e("button",i({onClick:function(){k(function(i){return!i})},style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"6px",color:"#475467",marginRight:"9px"}},{children:e(D?a:u,{})}))})),e("div",i({style:{flex:1,minHeight:0,height:"100%",overflow:"hidden"}},{children:e(s,{href:g,children:v,metaData:h,citationTitle:z,isFullscreen:D})}))]}))]}))};export{c as default};
2
2
  //# sourceMappingURL=CitationAnchor.js.map
@@ -1,2 +1,2 @@
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 p}from"../hooks/memoizedMarkdown.js";import{hasValue as f,generateColorPalette as h,isMissingStr as m,safeStringify as g,escapeRegExp as x,DEVIATION_BADGE_SEPARATOR as y}from"../CognitiveComparehelpers.js";import{DEFAULT_DEVIAION_COLOR as b}from"../CognitiveCompareConstants.js";var w=function(w){var I,S,F,R,_,k,C,B,A,M,W,T,E,N,O,D,P=w.section,j=w.idx,z=w.columnKey,K=w.colRef,V=w.mb,G=void 0===V?1:V,X=w.parentNodeId,Y=void 0===X?"":X,H=w.isExpanded,$=w.onToggle,q=w.navigation,J=w.showOpenNodeRef,L=w.resolvedMarkdownStyles,Q=w.maintainRelativeOrder,U=w.renderSubSections,Z=w.treeData,ee=w.proposedSections,ne=void 0===ee?[]:ee,oe=w.existingSections,ie=void 0===oe?[]:oe,te=w.deviationNumberRegistry,le=void 0===te?{}:te,re=w.getBadgeRef,de=w.openSummaryPopup,ae=w.getSectionCompareStyle,ue=w.connectedSections,ce=w.openMoreFunctionsPopup,se=w.deviationNodeIdToView,ve=w.deviationTargetParentId,pe=(null===(I=P.displayTitle)||void 0===I||I)&&f(P.title),fe=(null===(S=P.displayContent)||void 0===S||S)&&f(P.content),he=!pe&&!fe,me={current:1},ge=P.title;pe||(ge=fe?"No Title Found":"No Matching Section Found");var xe=P.evaluationResult;if(!xe&&"right"===z)if(Q){var ye=null===(F=P.refIndexes)||void 0===F?void 0:F[0],be=ne.find(function(e){return e.selfIndex===ye});xe=null==be?void 0:be.evaluationResult}else xe=null===(R=ne[j])||void 0===R?void 0:R.evaluationResult;var we=null===(_=null==Z?void 0:Z.input_index_map)||void 0===_?void 0:_[0],Ie=null===(k=null==Z?void 0:Z.input_index_map)||void 0===k?void 0:k[1],Se="left"===z?Ie:we,Fe="left"===z?P:ne[j],Re="right"===z?P:ie[j];if(Q)if("left"===z){var _e=null===(C=P.refIndexes)||void 0===C?void 0:C[0],ke=ie.findIndex(function(e){return e.selfIndex===_e});Re=-1!==ke?ie[ke]:void 0}else{var Ce=null===(B=P.refIndexes)||void 0===B?void 0:B[0],Be=ne.findIndex(function(e){return e.selfIndex===Ce});Fe=-1!==Be?ne[Be]:void 0}var Ae="left"===z?!Re:!Fe,Me=xe||(null==Fe?void 0:Fe.evaluationResult)||(null==Re?void 0:Re.evaluationResult),We=null!==(W=null===(M=null===(A=null==Me?void 0:Me.evaluation_outputs)||void 0===A?void 0:A.metadata)||void 0===M?void 0:M.label_color)&&void 0!==W?W:b,Te=h(We),Ee=Te.highlightBg,Ne=null!==(E=null===(T=null==Me?void 0:Me.evaluation_outputs)||void 0===T?void 0:T.output_value)&&void 0!==E?E:null,Oe=(null==Me?void 0:Me.deviations)||{},De=j+1,Pe=P.id;if("right"===z&&Q){var je=null===(N=P.refIndexes)||void 0===N?void 0:N[0];-1!==(Be=ne.findIndex(function(e){return e.selfIndex===je}))&&(De=Be+1,Pe=ne[Be].id)}var ze,Ke=[],Ve=Object.entries(Oe).map(function(n){var o,i,t,l=n[0],r=n[1],d="".concat(Pe).concat(y).concat(l),a=le[d];if(!a)return null;var u=r[Y],c=m(u);if(c)u="";else if(!u)return null;Ke.push(u);var s=r[Se],v="left"===z?null===(o=ne[j])||void 0===o?void 0:o.content:null===(i=ie[j])||void 0===i?void 0:i.content,p=g(v),f=Object.keys(Oe).map(function(e){return{key:e,text:Oe[e][Se]}}).filter(function(e){return!m(e.text)}).sort(function(e,n){return n.text.length-e.text.length}),h=new Set;f.forEach(function(e){var n=e.text.replace(/\\(['’])/g,"$1").replace(/\\n/g,"\n");if(n){var o=new RegExp(x(n));o.test(p)&&(h.add(e.key),p=p.replace(o,"__TOKEN_".concat(e.key,"__")))}});var b=!m(s)&&!h.has(l),w=Ae||m(s)||b,I="".concat(De,".").concat(a),S="".concat(Pe).concat(y).concat(l).concat(y).concat(j).concat(y).concat(j),F=j;if("right"===z&&Q){var R=null===(t=P.refIndexes)||void 0===t?void 0:t[0],_=ne.findIndex(function(e){return e.selfIndex===R});-1!==_&&(F=_)}var k=ae?ae(F):null,C=k?e(e({},k),{badgeBg:Te.badgeBg,badgeBorder:Te.badgeBorder,badgeText:Te.badgeText}):e({},Te),B=(null==r?void 0:r.deviation_summary)?{deviation_summary:r.deviation_summary,deviation_title:null==Me?void 0:Me.deviation_title,evaluation_outputs:null==Me?void 0:Me.evaluation_outputs}:null;return{id:d,actionId:S,label:I,highlight:u,side:z,style:C,score:Ne,isConnected:null==ue?void 0:ue.has(S),isOrphan:w,isMissingClause:c,badgeRef:re(z,d),onClick:function(e){e.stopPropagation(),ce&&ce(e,Fe||{id:"orphan-left",title:"",content:""},w,Re||{id:"orphan-right",title:"",content:""},S,C)},onSummaryClick:function(e){e.stopPropagation(),de(e,S,w,B)}}}).filter(Boolean),Ge=P.id&&z===(null==q?void 0:q.columnKey)?q:null,Xe=i.useRef(!1);return t(function(){H||(Xe.current=!1)},[H]),t(function(){!!se&&(P.subsections||[]).some(function(e){return e.id===se});H&&Xe.current},[H,se,ve,Pe,null==Ge?void 0:Ge.firstDeviationPosition,null==Ge?void 0:Ge.firstDeviationRef]),n(l,e({ref:K,sx:{mb:G,width:"100%",display:"flex",flexDirection:"column",position:"relative",minWidth:0}},{children:[H&&(null==Ge?void 0:Ge.showAbove)&&o("div",e({style:{position:"sticky",top:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Ge?void 0:Ge.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==Ge?void 0:Ge.showAboveRef)||void 0===O?void 0:O.current).color})}))})),n(r,e({disableGutters:!0,expanded:!he&&H,onChange:function(){he||($(),J.current=P.id)},sx:{boxShadow:"none",border:he?"1px dashed #E2E8F0":"1px solid #E2E8F0",bgcolor:he?"#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:he?null:o(v,{size:16}),sx:{minHeight:"36px",flexShrink:0,cursor:he?"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:pe&&o(a,e({title:ge,placement:"top"},{children:o(u,e({component:"div",sx:{fontSize:"12px",color:he?"#94A3B8":"#19213D",fontWeight:he?400:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0}},{children:(ze=ge,ze?g(ze).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)}))}))})),!he&&n(c,e({sx:{pt:0,pb:1.25,bgcolor:"#FFFFFF",flex:1,display:"flex",flexDirection:"column",minWidth:0}},{children:[fe&&o(p,{content:P.content,sxStyles:L,highlights:Ke,maintainRelativeOrder:Q,highlightBg:Ee,deviationBadges:Ve}),(P.subsections||[]).map(function(e,n){return U({section:e,keyPath:"".concat(j,"-").concat(n),depth:0,columnKey:z,parentNodeId:Y,devCounter:me})})]}))]})),H&&(null==Ge?void 0:Ge.showBelow)&&o("div",e({style:{position:"sticky",bottom:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Ge?void 0:Ge.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===(D=null==Ge?void 0:Ge.showBelowRef)||void 0===D?void 0:D.current).color})}))}))]}),"".concat(z,"-sec-").concat(j))};export{w as default};
1
+ import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import t,{useEffect as i}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 m,isMissingStr as h,safeStringify as g,escapeRegExp as x,DEVIATION_BADGE_SEPARATOR as b}from"../CognitiveComparehelpers.js";import{DEFAULT_DEVIAION_COLOR as y}from"../CognitiveCompareConstants.js";var w=function(e){var n=function(e){for(var n=(null==e?void 0:e.parentElement)||null;n;){var o=window.getComputedStyle(n).overflowY;if(("auto"===o||"scroll"===o)&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return null}(e),o=e.getBoundingClientRect(),t=(null==n?void 0:n.getBoundingClientRect())||{top:0,bottom:window.innerHeight};return o.top>=t.top&&o.bottom<=t.bottom},I=function(I){var R,S,F,k,C,_,B,A,T,E,M,W,D,N,O,P,j=I.section,z=I.idx,H=I.columnKey,K=I.colRef,V=I.mb,Y=void 0===V?1:V,G=I.parentNodeId,X=void 0===G?"":G,$=I.isExpanded,q=I.onToggle,J=I.navigation,L=I.showOpenNodeRef,Q=I.resolvedMarkdownStyles,U=I.maintainRelativeOrder,Z=I.renderSubSections,ee=I.treeData,ne=I.proposedSections,oe=void 0===ne?[]:ne,te=I.existingSections,ie=void 0===te?[]:te,le=I.deviationNumberRegistry,re=void 0===le?{}:le,de=I.getBadgeRef,ae=I.openSummaryPopup,ue=I.getSectionCompareStyle,ce=I.connectedSections,se=I.openMoreFunctionsPopup,ve=I.deviationNodeIdToView,fe=I.deviationTargetParentId,pe=(null===(R=j.displayTitle)||void 0===R||R)&&p(j.title),me=(null===(S=j.displayContent)||void 0===S||S)&&p(j.content),he=!pe&&!me,ge={current:1},xe=j.title;pe||(xe=me?"No Title Found":"No Matching Section Found");var be=j.evaluationResult;if(!be&&"right"===H)if(U){var ye=null===(F=j.refIndexes)||void 0===F?void 0:F[0],we=oe.find(function(e){return e.selfIndex===ye});be=null==we?void 0:we.evaluationResult}else be=null===(k=oe[z])||void 0===k?void 0:k.evaluationResult;var Ie=null===(C=null==ee?void 0:ee.input_index_map)||void 0===C?void 0:C[0],Re=null===(_=null==ee?void 0:ee.input_index_map)||void 0===_?void 0:_[1],Se="left"===H?Re:Ie,Fe="left"===H?j:oe[z],ke="right"===H?j:ie[z];if(U)if("left"===H){var Ce=null===(B=j.refIndexes)||void 0===B?void 0:B[0],_e=ie.findIndex(function(e){return e.selfIndex===Ce});ke=-1!==_e?ie[_e]:void 0}else{var Be=null===(A=j.refIndexes)||void 0===A?void 0:A[0],Ae=oe.findIndex(function(e){return e.selfIndex===Be});Fe=-1!==Ae?oe[Ae]:void 0}var Te="left"===H?!ke:!Fe,Ee=be||(null==Fe?void 0:Fe.evaluationResult)||(null==ke?void 0:ke.evaluationResult),Me=null!==(M=null===(E=null===(T=null==Ee?void 0:Ee.evaluation_outputs)||void 0===T?void 0:T.metadata)||void 0===E?void 0:E.label_color)&&void 0!==M?M:y,We=m(Me),De=We.highlightBg,Ne=null!==(D=null===(W=null==Ee?void 0:Ee.evaluation_outputs)||void 0===W?void 0:W.output_value)&&void 0!==D?D:null,Oe=(null==Ee?void 0:Ee.deviations)||{},Pe=z+1,je=j.id;if("right"===H&&U){var ze=null===(N=j.refIndexes)||void 0===N?void 0:N[0];-1!==(Ae=oe.findIndex(function(e){return e.selfIndex===ze}))&&(Pe=Ae+1,je=oe[Ae].id)}var He,Ke=[],Ve=Object.entries(Oe).map(function(n){var o,t,i,l=n[0],r=n[1],d="".concat(je).concat(b).concat(l),a=re[d];if(!a)return null;var u=r[X],c=h(u);if(c)u="";else if(!u)return null;Ke.push(u);var s=r[Se],v="left"===H?null===(o=oe[z])||void 0===o?void 0:o.content:null===(t=ie[z])||void 0===t?void 0:t.content,f=g(v),p=Object.keys(Oe).map(function(e){return{key:e,text:Oe[e][Se]}}).filter(function(e){return!h(e.text)}).sort(function(e,n){return n.text.length-e.text.length}),m=new Set;p.forEach(function(e){var n=e.text.replace(/\\(['’])/g,"$1").replace(/\\n/g,"\n");if(n){var o=new RegExp(x(n));o.test(f)&&(m.add(e.key),f=f.replace(o,"__TOKEN_".concat(e.key,"__")))}});var y=!h(s)&&!m.has(l),w=Te||h(s)||y,I="".concat(Pe,".").concat(a),R="".concat(je).concat(b).concat(l).concat(b).concat(z).concat(b).concat(z),S=z;if("right"===H&&U){var F=null===(i=j.refIndexes)||void 0===i?void 0:i[0],k=oe.findIndex(function(e){return e.selfIndex===F});-1!==k&&(S=k)}var C=ue?ue(S):null,_=C?e(e({},C),{badgeBg:We.badgeBg,badgeBorder:We.badgeBorder,badgeText:We.badgeText}):e({},We),B=(null==r?void 0:r.deviation_summary)?{deviation_summary:r.deviation_summary,deviation_title:null==Ee?void 0:Ee.deviation_title,evaluation_outputs:null==Ee?void 0:Ee.evaluation_outputs}:null;return{id:d,actionId:R,label:I,highlight:u,side:H,style:_,score:Ne,isConnected:null==ce?void 0:ce.has(R),isOrphan:w,isMissingClause:c,badgeRef:de(H,d),onClick:function(e){e.stopPropagation(),se&&se(e,Fe||{id:"orphan-left",title:"",content:""},w,ke||{id:"orphan-right",title:"",content:""},R,_)},onSummaryClick:function(e){e.stopPropagation(),ae(e,R,w,B)}}}).filter(Boolean),Ye=j.id&&H===(null==J?void 0:J.columnKey)?J:null,Ge=t.useRef(!1);return i(function(){$||(Ge.current=!1)},[$]),i(function(){var e=!!ve&&!!fe&&je===fe,n=!!ve&&(j.subsections||[]).some(function(e){return e.id===ve});if($&&!Ge.current&&!e&&!n){var o=setTimeout(function(){var e,n=null===(e=null==Ye?void 0:Ye.firstDeviationRef)||void 0===e?void 0:e.current,o=null==Ye?void 0:Ye.firstDeviationPosition;n?"inside"===o||w(n)?Ge.current=!0:(Ge.current=!0,n.scrollIntoView({behavior:"smooth",block:"center"})):Ge.current=!0},600);return function(){return clearTimeout(o)}}},[$,ve,fe,je,null==Ye?void 0:Ye.firstDeviationPosition,null==Ye?void 0:Ye.firstDeviationRef]),n(l,e({ref:K,sx:{mb:Y,width:"100%",display:"flex",flexDirection:"column",position:"relative",minWidth:0}},{children:[$&&(null==Ye?void 0:Ye.showAbove)&&o("div",e({style:{position:"sticky",top:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Ye?void 0:Ye.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"===H?"+":"-"," 130px))"),position:"absolute",paddingTop:"20px"},"left"===H?{right:"0px"}:{left:"0px"})},{children:o(s,{color:window.getComputedStyle(null===(O=null==Ye?void 0:Ye.showAboveRef)||void 0===O?void 0:O.current).color})}))})),n(r,e({disableGutters:!0,expanded:!he&&$,onChange:function(){he||(q(),L.current=j.id)},sx:{boxShadow:"none",border:he?"1px dashed #E2E8F0":"1px solid #E2E8F0",bgcolor:he?"#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:he?null:o(v,{size:16}),sx:{minHeight:"36px",flexShrink:0,cursor:he?"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:pe&&o(a,e({title:xe,placement:"top"},{children:o(u,e({component:"div",sx:{fontSize:"12px",color:he?"#94A3B8":"#19213D",fontWeight:he?400:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",minWidth:0}},{children:(He=xe,He?g(He).replace(/\\n/g,"\n").split(/(\*\*.*?\*\*)/g).map(function(e,n){return e.startsWith("**")&&e.endsWith("**")?o("strong",{children:e.slice(2,-2)},n):o(t.Fragment,{children:e},n)}):null)}))}))})),!he&&n(c,e({sx:{pt:0,pb:1.25,bgcolor:"#FFFFFF",flex:1,display:"flex",flexDirection:"column",minWidth:0}},{children:[me&&o(f,{content:j.content,sxStyles:Q,highlights:Ke,maintainRelativeOrder:U,highlightBg:De,deviationBadges:Ve}),(j.subsections||[]).map(function(e,n){return Z({section:e,keyPath:"".concat(z,"-").concat(n),depth:0,columnKey:H,parentNodeId:X,devCounter:ge})})]}))]})),$&&(null==Ye?void 0:Ye.showBelow)&&o("div",e({style:{position:"sticky",bottom:0,height:"0px",cursor:"pointer"},onClick:function(){var e,n;return null===(n=null===(e=null==Ye?void 0:Ye.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"===H?"+":"-"," 130px))"),position:"absolute",paddingBottom:"20px"},"left"===H?{right:"0px"}:{left:"0px"})},{children:o(v,{color:window.getComputedStyle(null===(P=null==Ye?void 0:Ye.showBelowRef)||void 0===P?void 0:P.current).color})}))}))]}),"".concat(H,"-sec-").concat(z))};export{I as default};
2
2
  //# sourceMappingURL=SectionAccordion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveCompareTest.d.ts","sourceRoot":"","sources":["../../../src/CognitiveCompareTest.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,oBAAoB,+CA6BzB,CAAA;AAED,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"CognitiveCompareTest.d.ts","sourceRoot":"","sources":["../../../src/CognitiveCompareTest.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,oBAAoB,+CA+FzB,CAAA;AAED,eAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CommonConstants.d.ts","sourceRoot":"","sources":["../../../../src/CommonConstants/CommonConstants.tsx"],"names":[],"mappings":"AACA,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,OAAO,CAAC;AAC5C,eAAO,MAAM,OAAO,EAAE,aAAqB,CAAC;AAC5C,eAAO,MAAM,SAAS,EAAE,aAAuB,CAAC;AAChD,eAAO,MAAM,6BAA6B,yCAAyC,CAAA;AAEnF,eAAO,MAAM,iBAAiB,EAAE,GA4hW/B,CAAA"}
1
+ {"version":3,"file":"CommonConstants.d.ts","sourceRoot":"","sources":["../../../../src/CommonConstants/CommonConstants.tsx"],"names":[],"mappings":"AACA,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,OAAO,CAAC;AAC5C,eAAO,MAAM,OAAO,EAAE,aAAqB,CAAC;AAC5C,eAAO,MAAM,SAAS,EAAE,aAAuB,CAAC;AAChD,eAAO,MAAM,6BAA6B,yCAAyC,CAAA;AAEnF,eAAO,MAAM,iBAAiB,EAAE,GAuwZ/B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CitationAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationAnchor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EACV,aAAa,EAKhB,MAAM,OAAO,CAAC;AAKf,UAAU,mBAAmB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE;QACV,qBAAqB,CAAC,EAAE,aAAa,CAAC;QACtC,KAAK,CAAC,EAAE,aAAa,CAAC;QACtB,cAAc,CAAC,EAAE,aAAa,CAAC;QAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;QAClC,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,mBAAmB,CAAC,EAAE,aAAa,CAAC;QACpC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,oBAAoB,CAAC,EAAE,aAAa,CAAC;QACrC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsSjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"CitationAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationAnchor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EACV,aAAa,EAKhB,MAAM,OAAO,CAAC;AAKf,UAAU,mBAAmB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE;QACV,qBAAqB,CAAC,EAAE,aAAa,CAAC;QACtC,KAAK,CAAC,EAAE,aAAa,CAAC;QACtB,cAAc,CAAC,EAAE,aAAa,CAAC;QAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;QAClC,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,mBAAmB,CAAC,EAAE,aAAa,CAAC;QACpC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,oBAAoB,CAAC,EAAE,aAAa,CAAC;QACrC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB;AA6FD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiKjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/test-citation",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",