@viswa-test/test-citation 0.0.371 → 0.0.373

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.
Files changed (86) hide show
  1. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
  2. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  3. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  4. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +1 -1
  5. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  6. package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  7. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  8. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  9. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  10. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  11. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  12. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  13. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  14. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  15. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  16. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  17. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  18. package/dist/cjs/features/PdfViewer/PdfContainer.js +1 -1
  19. package/dist/cjs/features/PdfViewer/PdfStyle.js +1 -1
  20. package/dist/cjs/features/PdfViewer/PdfToolbar.js +1 -1
  21. package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
  22. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  23. package/dist/cjs/index.js +1 -1
  24. package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
  25. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  26. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  27. package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
  28. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  29. package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  30. package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  31. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  32. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  33. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  34. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  35. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  36. package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  37. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  38. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  39. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  40. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  41. package/dist/features/PdfViewer/PdfContainer.js +1 -1
  42. package/dist/features/PdfViewer/PdfStyle.js +1 -1
  43. package/dist/features/PdfViewer/PdfToolbar.js +1 -1
  44. package/dist/features/PdfViewer/PdfViewer.js +1 -1
  45. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -1
  48. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
  49. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  50. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +1 -1
  51. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  52. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +0 -12
  53. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
  54. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +1 -1
  55. package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +1 -1
  56. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +1 -14
  57. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +1 -1
  58. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  59. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
  60. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -1
  61. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +1 -1
  62. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  63. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  64. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -1
  65. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +0 -1
  66. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -1
  67. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  68. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +1 -2
  69. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
  70. package/dist/types/src/features/GptWebCitation/types.d.ts +0 -11
  71. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  72. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +0 -2
  73. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -1
  74. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +4 -2
  75. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +1 -1
  76. package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +1 -1
  77. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +1 -1
  78. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +18 -2
  79. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
  80. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +3 -11
  81. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +1 -1
  82. package/dist/types/src/features/SegmentReviewComponents/index.d.ts +0 -2
  83. package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +1 -1
  84. package/dist/types/src/index.d.ts +4 -0
  85. package/dist/types/src/index.d.ts.map +1 -1
  86. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as t,__generator as i}from"tslib";import{jsx as o,jsxs as n}from"react/jsx-runtime";import{SpecialZoomLevel as r}from"@react-pdf-viewer/core";import a from"./PdfContainer.js";import l from"./PdfToolbar.js";import{pdfStyles as s}from"./PdfStyle.js";import{PdfHighlightControls as c}from"./usePdfHighlight.js";import"@react-pdf-viewer/zoom/lib/styles/index.css";import"@react-pdf-viewer/page-navigation/lib/styles/index.css";import"@react-pdf-viewer/core/lib/styles/index.css";import"@react-pdf-viewer/search/lib/styles/index.css";import{useRef as u,useState as d,useMemo as g,useEffect as f}from"react";import h from"../ScannedDocCitation/ScannedDocCitation.js";var m=function(e){switch(e){case"ActualSize":return r.ActualSize;case"PageFit":return r.PageFit;case"PageWidth":return r.PageWidth;default:return null!=e?e:r.PageWidth}},v=function(v){var p,x=v.pdfUrl,P=v.highlightText,T=v.highlightPages,C=v.highlightCordinatePages,w=v.highlightColor,S=void 0===w?"yellow":w,y=v.activeHighlightColor,A=void 0===y?"#f7dc51":y,b=v.jumpToPageValue,H=void 0===b?0:b,I=v.pdfName,_=v.onClose,j=v.customStyles,F=v.customClasses,N=v.customIcons,z=v.useCoordinates,D=v.fallbackPages,R=v.activeCitationIndex,V=v.onActiveCitationChange,W=v.headerAction,q=v.isZoomEnabled,E=void 0===q||q,B=v.showHighlightsAction,O=void 0===B||B,U=v.defaultScale,k=void 0===U?r.ActualSize:U,M=v.useRange,Z=void 0!==M&&M,J=v.rangeOfPages,K=void 0===J?null:J,L=v.showFullScreenAction,G=void 0===L||L,Q=v.segments,X=void 0===Q?[{title:"Document 2",start_page:52,end_page:52,page_count:1}]:Q,Y=v.segmentTooltipText,$=u(null),ee=d(0),te=ee[0],ie=ee[1],oe=d(0),ne=oe[0],re=oe[1],ae=g(function(){if(z)return new Set(C.map(function(e){return e.pageIndex}));var e=new Set;return Object.values(T).forEach(function(t){t>0&&e.add(t-1)}),e},[C,T,z]),le=(p=P)&&0!==p.length?p.filter(function(e){return!p.some(function(t){return t!==e&&t.includes(e)})}):p,se=c(le,z?{}:T,$,ae,z,z?C:[],S,A),ce=se.highlightIndex,ue=se.cursorIndex,de=se.setCursorIndex,ge=se.orderedKeys,fe=se.totalHighlights,he=se.getValidPosition,me=se.tryJump,ve=se.jumpToPage,pe=se.zoomTo,xe=se.plugins,Pe=se.controls,Te=se.hideNonTargetHighlights,Ce=se.deduplicateHighlights,we=he(ue),Se=g(function(){var e=te+1;return X.find(function(t){return e>=t.start_page&&e<=t.end_page})},[te,X]);f(function(){void 0!==R&&R!==ue&&de(R)},[R]);var ye=e(e({},Pe),{goToNext:function(){ue>=fe-1||(Pe.goToNext(),V&&V(ue+1))},goToPrevious:function(){ue<=0||(Pe.goToPrevious(),V&&V(ue-1))}});if(!x)return o(h,{pages:D,activeCitationIndex:R,onActiveCitationChange:V,headerAction:W});return n("div",e({ref:$,className:(null==F?void 0:F.pdfViewerWrapper)||"",style:e(e(e({height:"100%",minHeight:0,minWidth:0,overflow:"hidden",display:"flex",flexDirection:"column"},s.pdfViewer),{display:"flex",flexDirection:"column",height:"100%",width:"100%",backgroundColor:"#FAFAFA"}),null==j?void 0:j.pdfViewer)},{children:[o(l,{highlightIndex:ce,totalHighlights:fe,controls:ye,currentPosition:we,pdfName:I,onClose:_,pdfUrl:x,viewerRef:$,customStyles:j,customClasses:F,customIcons:N,headerAction:W,isZoomEnabled:E,showHighlightsAction:O,showFullScreenAction:G,currentSegment:Se,segmentTooltipText:Y,currentPage:te+1,totalPages:ne,onPageNavigate:function(e){var t=Math.min(Math.max(e,1),ne||e);ie(t-1),ve(t-1)}}),o(a,{defaultScale:m(k),pdfUrl:x,plugins:xe,customStyles:j,onLoad:function(e){re(e.doc.numPages);var o=!z&&!Z&&H<=0;if(pe(r.ActualSize),H>0&&!Z){var n=H-1,a=ge[n],l=T[a],s=C[n];de(n),console.log(s,"cordinateTargetHighlight"),z&&s.pageIndex>0&&ve(s.pageIndex),l>0&&(setTimeout(function(){Te(ae),Ce(l-1)},1e3),z||ve(l-1))}else if(Z&&K&&2===K.length){t(void 0,void 0,void 0,function(){var e,t,o,n,r;return i(this,function(i){switch(i.label){case 0:e=K[0],t=K[1],o=e,i.label=1;case 1:return o<=t?(ve(n=o-1),[4,new Promise(function(e){return setTimeout(e,1e3)})]):[3,4];case 2:if(i.sent(),Te(ae),(r=Ce(n))&&r>0)return[3,4];i.label=3;case 3:return o++,[3,1];case 4:return[2]}})})}else if(!z&&T){var c=ge.find(function(e){return T[e]>0});if(void 0!==c){var u=T[c]-1;ve(u),setTimeout(function(){Te(ae),Ce(u)},1e3)}}requestAnimationFrame(function(){o&&me(),!z&&H>0&&!Z&&function(){if($.current){var e=H-1,t=ge[e],i=T[t],o=i>0?i-1:0,n={};ge.forEach(function(e,t){var i=T[e];i>0&&(n[i]||(n[i]=[]),n[i].push(t))});var r=(n[i]||[]).indexOf(e),a=0,l=function(){var e,t;if(!(++a>40)){var i=null===(e=$.current)||void 0===e?void 0:e.querySelector(".rpv-core__inner-pages");if(i){var n=null===(t=$.current)||void 0===t?void 0:t.querySelector('[data-testid="core__page-layer-'.concat(o,'"]'));if(n){var s=i.getBoundingClientRect(),c=n.getBoundingClientRect();if(c.top<s.bottom&&c.bottom>s.top){var u=n.querySelectorAll(".rpv-search__highlight")[r];if(u){var d=u.getBoundingClientRect(),g=i.scrollTop+(d.top-s.top)-i.clientHeight/2+d.height/2;i.scrollTo({top:g,behavior:"smooth"})}else setTimeout(l,100)}else setTimeout(l,100)}else setTimeout(l,100)}else setTimeout(l,100)}};setTimeout(l,500)}}()})},onPageChange:function(e){var t=e.currentPage;ie(t),ae.has(t)?(Ce(t),Te(ae)):Te(ae)}})]}))};export{v as default};
1
+ import{__assign as e,__awaiter as t,__generator as n}from"tslib";import{jsx as i,jsxs as r,Fragment as o}from"react/jsx-runtime";import{SpecialZoomLevel as a}from"@react-pdf-viewer/core";import l from"./PdfContainer.js";import u from"./PdfToolbar.js";import{pdfStyles as c}from"./PdfStyle.js";import{PdfHighlightControls as s}from"./usePdfHighlight.js";import"@react-pdf-viewer/zoom/lib/styles/index.css";import"@react-pdf-viewer/page-navigation/lib/styles/index.css";import"@react-pdf-viewer/core/lib/styles/index.css";import"@react-pdf-viewer/search/lib/styles/index.css";import d,{useRef as g,useState as f,useMemo as h,useEffect as v}from"react";import m from"../ScannedDocCitation/ScannedDocCitation.js";var p=function(p){var y,x=p.pdfUrl,P=p.highlightText,T=p.highlightPages,w=p.highlightCordinatePages,C=p.highlightColor,b=void 0===C?"yellow":C,S=p.activeHighlightColor,A=void 0===S?"#f7dc51":S,I=p.jumpToPageValue,_=void 0===I?0:I,q=p.pdfName,R=p.onClose,H=p.customStyles,L=p.customClasses,N=p.customIcons,j=p.useCoordinates,F=p.fallbackPages,B=p.activeCitationIndex,D=p.onActiveCitationChange,M=p.headerAction,V=p.isZoomEnabled,W=void 0===V||V,z=p.showHighlightsAction,E=void 0===z||z,k=p.defaultScale,O=void 0===k?a.ActualSize:k,U=p.useRange,Z=void 0!==U&&U,J=p.rangeOfPages,K=void 0===J?null:J,G=p.showFullScreenAction,Q=void 0===G||G,X=p.segments,Y=void 0===X?[{title:"Document 2",start_page:52,end_page:52,page_count:1}]:X,$=p.segmentTooltipText,ee=p.onCurrentPageChange,te=p.navigationRequest,ne=p.onNavigationSettled,ie=p.disablePdfAnnotations,re=void 0!==ie&&ie,oe=p.disablePdfTextLayer,ae=void 0!==oe&&oe,le=p.renderPage,ue=p.setRenderRange,ce=g(null),se=function(e){switch(e){case"ActualSize":return a.ActualSize;case"PageFit":return a.PageFit;case"PageWidth":return a.PageWidth;default:return null!=e?e:a.PageWidth}}(O),de=f(0),ge=de[0],fe=de[1],he=f(0),ve=he[0],me=he[1],pe=g(null),ye=g(null),xe=g(0),Pe=h(function(){return re||ae?function(t){var n=ae?i("div",e({"aria-hidden":"true",style:{display:"none"}},{children:t.textLayer.children})):t.textLayer.children,a=e(e({},t),{annotationLayer:e(e({},t.annotationLayer),{children:re?null:t.annotationLayer.children}),textLayer:e(e({},t.textLayer),{children:n})});return le?le(a):r(o,{children:[t.canvasLayer.children,n,!re&&t.annotationLayer.children]})}:le},[re,ae,le]),Te=h(function(){if(j)return new Set(w.map(function(e){return e.pageIndex}));var e=new Set;return Object.values(T).forEach(function(t){t>0&&e.add(t-1)}),e},[w,T,j]),we=(y=P)&&0!==y.length?y.filter(function(e){return!y.some(function(t){return t!==e&&t.includes(e)})}):y,Ce=s(we,j?{}:T,ce,Te,j,j?w:[],b,A),be=Ce.highlightIndex,Se=Ce.cursorIndex,Ae=Ce.setCursorIndex,Ie=Ce.orderedKeys,_e=Ce.totalHighlights,qe=Ce.getValidPosition,Re=Ce.tryJump,He=Ce.jumpToPage,Le=Ce.plugins,Ne=Ce.controls,je=Ce.hideNonTargetHighlights,Fe=Ce.deduplicateHighlights,Be=qe(Se),De=h(function(){var e=ge+1;return Y.find(function(t){return e>=t.start_page&&e<=t.end_page})},[ge,Y]);v(function(){void 0!==B&&B!==Se&&Ae(B)},[B]);var Me=e(e({},Ne),{goToNext:function(){Se>=_e-1||(Ne.goToNext(),D&&D(Se+1))},goToPrevious:function(){Se<=0||(Ne.goToPrevious(),D&&D(Se-1))}}),Ve=d.useCallback(function(e,t){xe.current+=1;var n=xe.current;null!=ye.current&&window.clearTimeout(ye.current);var i=null,r=0,o=0,a=function(){var l,u;if(xe.current===n){o+=1;var c=null===(l=ce.current)||void 0===l?void 0:l.querySelector(".rpv-core__inner-pages"),s=null===(u=ce.current)||void 0===u?void 0:u.querySelector('[data-testid="core__page-layer-'.concat(t-1,'"]'));if(!c||!s)return o>=40?(ye.current=null,void(null==ne||ne({pageNumber:t,requestId:e.requestId}))):void(ye.current=window.setTimeout(a,50));i===c.scrollTop?r+=1:(i=c.scrollTop,r=0);var d=c.getBoundingClientRect(),g=s.getBoundingClientRect(),f=Boolean(d&&g&&g.bottom>d.top&&g.top<d.bottom);if(r>=2&&f||o>=40)return ye.current=null,void(null==ne||ne({pageNumber:t,requestId:e.requestId}));ye.current=window.setTimeout(a,50)}};ye.current=window.setTimeout(a,50)},[ne]);if(v(function(){return function(){xe.current+=1,null!=ye.current&&window.clearTimeout(ye.current)}},[]),v(function(){var e;if(te&&!(ve<=0)){var t=Math.min(Math.max(Math.trunc(te.pageNumber),1),ve),n="".concat(null!==(e=te.requestId)&&void 0!==e?e:t,":").concat(t);pe.current!==n&&(pe.current=n,fe(t-1),He(t-1),Ve(te,t))}},[He,te,ve,Ve]),!x)return i(m,{pages:F,activeCitationIndex:B,onActiveCitationChange:D,headerAction:M});return r("div",e({ref:ce,className:(null==L?void 0:L.pdfViewerWrapper)||"","data-disable-pdf-annotations":re?"true":void 0,"data-pdf-page-fit":se===a.PageFit?"true":void 0,style:e(e(e({height:"100%",minHeight:0,minWidth:0,overflow:"hidden",display:"flex",flexDirection:"column"},c.pdfViewer),{display:"flex",flexDirection:"column",height:"100%",width:"100%",backgroundColor:"#FAFAFA"}),null==H?void 0:H.pdfViewer)},{children:[i(u,{highlightIndex:be,totalHighlights:_e,controls:Me,currentPosition:Be,pdfName:q,onClose:R,pdfUrl:x,viewerRef:ce,customStyles:H,customClasses:L,customIcons:N,headerAction:M,isZoomEnabled:W,showHighlightsAction:E,showFullScreenAction:Q,currentSegment:De,segmentTooltipText:$,currentPage:ge+1,totalPages:ve,onPageNavigate:function(e){var t=Math.min(Math.max(e,1),ve||e);fe(t-1),He(t-1)}}),i(l,{defaultScale:se,pdfUrl:x,plugins:Le,customStyles:H,onLoad:function(e){me(e.doc.numPages);var i=!j&&!Z&&_<=0;if(_>0&&!Z){var r=_-1,o=Ie[r],a=T[o],l=w[r];Ae(r),console.log(l,"cordinateTargetHighlight"),j&&l.pageIndex>0&&He(l.pageIndex),a>0&&(setTimeout(function(){je(Te),Fe(a-1)},1e3),j||He(a-1))}else if(Z&&K&&2===K.length){t(void 0,void 0,void 0,function(){var e,t,i,r,o;return n(this,function(n){switch(n.label){case 0:e=K[0],t=K[1],i=e,n.label=1;case 1:return i<=t?(He(r=i-1),[4,new Promise(function(e){return setTimeout(e,1e3)})]):[3,4];case 2:if(n.sent(),je(Te),(o=Fe(r))&&o>0)return[3,4];n.label=3;case 3:return i++,[3,1];case 4:return[2]}})})}else if(!j&&T){var u=Ie.find(function(e){return T[e]>0});if(void 0!==u){var c=T[u]-1;He(c),setTimeout(function(){je(Te),Fe(c)},1e3)}}requestAnimationFrame(function(){i&&Re(),!j&&_>0&&!Z&&function(){if(ce.current){var e=_-1,t=Ie[e],n=T[t],i=n>0?n-1:0,r={};Ie.forEach(function(e,t){var n=T[e];n>0&&(r[n]||(r[n]=[]),r[n].push(t))});var o=(r[n]||[]).indexOf(e),a=0,l=function(){var e,t;if(!(++a>40)){var n=null===(e=ce.current)||void 0===e?void 0:e.querySelector(".rpv-core__inner-pages");if(n){var r=null===(t=ce.current)||void 0===t?void 0:t.querySelector('[data-testid="core__page-layer-'.concat(i,'"]'));if(r){var u=n.getBoundingClientRect(),c=r.getBoundingClientRect();if(c.top<u.bottom&&c.bottom>u.top){var s=r.querySelectorAll(".rpv-search__highlight")[o];if(s){var d=s.getBoundingClientRect(),g=n.scrollTop+(d.top-u.top)-n.clientHeight/2+d.height/2;n.scrollTo({top:g,behavior:"smooth"})}else setTimeout(l,100)}else setTimeout(l,100)}else setTimeout(l,100)}else setTimeout(l,100)}};setTimeout(l,500)}}()})},onPageChange:function(e){var t=e.currentPage;fe(t),null==ee||ee(t+1),Te.has(t)?(Fe(t),je(Te)):je(Te)},renderPage:Pe,setRenderRange:ue})]}))};export{p as default};
2
2
  //# sourceMappingURL=PdfViewer.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as n,__awaiter as t,__generator as i}from"tslib";import{jsxs as r,jsx as o}from"react/jsx-runtime";import{useMemo as a,useState as l,useEffect as d,useRef as u,useCallback as s}from"react";import{SpecialZoomLevel as c}from"@react-pdf-viewer/core";import g from"../PdfViewer/PdfViewer.js";import v,{BoundaryReviewActionEnum as p,isBoundaryReviewAction as m}from"./BoundaryCard.js";import f from"./CardWrapper.js";import h from"./CognitiveIntegrity.js";import w from"./LabelCheck.js";import b from"./PageCheck.js";import{extractSegmentReviewData as y,getSegmentReviewKey as _}from"./reviewStepAdapters.js";import{CircleCheck as x,Check as S,GitMerge as P}from"lucide-react";import{Typography as k,Tooltip as C,Portal as E,Box as R}from"@mui/material";import I from"./ReviewedCard.js";import M from"./ReviewedBoundaryActions.js";import N from"./RevertCard.js";import A from"./RevertSuccessCard.js";import{getPendingMergeImpactedSegmentKeys as F,hasPolledStructuralAction as B,getOptimisticMergeImpactedSegmentKeys as T,shouldHideStructuralBoundaryReview as W,getResolvedScore as L,getConfidenceColors as z,getBoundaryReviewActionBadgeLabel as q,getTitleReviewActionBadgeLabel as j,isReviewStepResolved as G,isReviewStepResolutionCurrent as O,formatScore as D}from"./helper.js";import V from"./ChartBreakoutCircle.js";var H,U,X=260;!function(e){e.ActualSize="ActualSize",e.PageFit="PageFit",e.PageWidth="PageWidth"}(U||(U={}));var Y=((H={})[U.ActualSize]=c.ActualSize,H[U.PageFit]=c.PageFit,H[U.PageWidth]=c.PageWidth,H),J=function(e){return{reviewId:e.id,segment:e.segment,pageNumber:e.pageNumber}};function Z(H){var U,Z,K,Q,$,ee,ne,te,ie,re,oe,ae,le,de,ue,se,ce,ge,ve,pe,me,fe,he,we,be,ye,_e,xe,Se,Pe,ke,Ce,Ee,Re,Ie=this,Me=H.pdfUrl,Ne=H.pdfName,Ae=H.segments,Fe=H.styles,Be=H.pdfViewerProps,Te=H.specialZoomLevel,We=H.showBadges,Le=void 0===We||We,ze=H.sortByConfidence,qe=void 0===ze?"low":ze,je=H.filterByConfidence,Ge=void 0===je?"all":je,Oe=H.showBadgeNavigation,De=void 0===Oe||Oe,Ve=H.autoSelectReviewOnPageChange,He=void 0!==Ve&&Ve,Ue=H.autoAdvanceAfterConfirm,Xe=void 0===Ue||Ue,Ye=H.badgePreloadPages,Je=void 0===Ye?8:Ye,Ze=H.badgeOffsetTop,Ke=void 0===Ze?20:Ze,Qe=H.badgeOffsetRight,$e=void 0===Qe?68:Qe,en=H.badgeOffsetLeft,nn=void 0===en?0:en,tn=H.initialReviewId,rn=H.manualPrompt,on=H.heightBuffer,an=H.onBoundaryAction,ln=H.onLabelAction,dn=H.onPageAction,un=H.onPageTypeRevert,sn=H.onRevert,cn=H.onActiveReviewChange,gn=H.onCurrentPageChange,vn=H.onActionError,pn=H.disableAllActions,mn=void 0!==pn&&pn,fn=H.disablePdfAnnotations,hn=void 0!==fn&&fn,wn=H.disablePdfTextLayer,bn=void 0===wn||wn,yn=H.disableTitleCheckUntilBoundaryCheckCompleted,_n=void 0!==yn&&yn,xn=H.onAdjustManually,Sn=H.onCognitiveClick,Pn=H.className,kn=H.style,Cn=H.viewerStyle,En=H.railStyle,Rn=H.redirectionData,In=H.onBadgeSelected,Mn=a(function(){return y(Ae)},[Ae]),Nn=Mn.boundaryReviews,An=Mn.labelReviews,Fn=Mn.pageReviews,Bn=l(function(){return new Map}),Tn=Bn[0],Wn=Bn[1],Ln=a(function(){var e=new Map,n=1;return Ae.forEach(function(t,i){var r=_(t,i);e.has(r)||(e.set(r,n),n+=1)}),e},[Ae]),zn=a(function(){return new Set(An.map(function(e){return _(e.segment)}))},[An]),qn=a(function(){return F(Ae)},[Ae]);d(function(){Wn(function(e){var n=!1,t=new Map(e);return e.forEach(function(e,i){var r=Ae.find(function(e){return _(e)===i});r&&!B(r,e)||(t.delete(i),n=!0)}),n?t:e})},[Ae]);var jn=a(function(){return T(Ae,Tn)},[Tn,Ae]),Gn=u(null),On=a(function(){return e(e(e([],Nn.filter(function(e){return!qn.has(_(e.segment))&&!jn.has(_(e.segment))&&!W(e.review_step,e.segment,zn.has(_(e.segment)),Tn.get(_(e.segment)))}).map(function(e){var t;return n(n({},e),{kind:"boundary",pageNumber:null!==(t=e.metadata.focus_page)&&void 0!==t?t:e.segment.start_page})}),!0),An.filter(function(e){return!qn.has(_(e.segment))&&!jn.has(_(e.segment))}).map(function(e){return n(n({},e),{kind:"label",pageNumber:e.segment.start_page})}),!0),Fn.filter(function(e){return!qn.has(_(e.segment))&&!jn.has(_(e.segment))}).map(function(e){var t;return n(n({},e),{kind:"page",pageNumber:null!==(t=e.metadata.page_num)&&void 0!==t?t:e.segment.start_page})}),!0).sort(function(e,n){var t,i,r=null!==(t=Ln.get(_(e.segment)))&&void 0!==t?t:Number.MAX_SAFE_INTEGER,o=null!==(i=Ln.get(_(n.segment)))&&void 0!==i?i:Number.MAX_SAFE_INTEGER;return e.pageNumber-n.pageNumber||r-o||e.reviewStepIndex-n.reviewStepIndex||e.id.localeCompare(n.id)})},[Nn,An,Fn,jn,Tn,qn,Ln,zn]),Dn=a(function(){return Ae.map(function(e){var t,i;return n(n({},e),{title:(null===(t=e.label)||void 0===t?void 0:t.trim())||e.title,page_count:null!==(i=e.page_count)&&void 0!==i?i:e.end_page-e.start_page+1})})},[Ae]),Vn=l(1),Hn=Vn[0],Un=Vn[1],Xn=l(null!=tn?tn:null),Yn=Xn[0],Jn=Xn[1],Zn=l(null!=tn?tn:null),Kn=Zn[0],Qn=Zn[1],$n=l(!1),et=$n[0],nt=$n[1],tt=l(null),it=tt[0],rt=tt[1],ot=l(null),at=ot[0],lt=ot[1],dt=l(function(){return new Set}),ut=dt[0],st=dt[1],ct=l(null),gt=ct[0],vt=ct[1],pt=l(null),mt=pt[0],ft=pt[1],ht=l(null),wt=ht[0],bt=ht[1],yt=l(!1),_t=yt[0],xt=yt[1],St=u(0),Pt=u(null),kt=u(null),Ct=u(new Map),Et=u(null),Rt=u(null),It=u(null),Mt=l(X),Nt=Mt[0],At=Mt[1],Ft=null!==(Z=null===(U=null==Fe?void 0:Fe.aside)||void 0===U?void 0:U.width)&&void 0!==Z?Z:"40%",Bt="min(".concat("number"==typeof Ft?"".concat(Ft,"px"):Ft,", ").concat(X,"px, 100%)");d(function(){st(function(e){if(0===e.size)return e;var n=new Set(e),t=!1;return On.forEach(function(e){var i;null!=(null===(i=e.review_step.review)||void 0===i?void 0:i.action)&&n.has(e.id)&&(n.delete(e.id),t=!0)}),t?n:e})},[On]),d(function(){var e=Gn.current;if(e&&Le){var n=function(){var n=e.getBoundingClientRect().width;n>0&&At(n)};n();var t="undefined"==typeof ResizeObserver?null:new ResizeObserver(n);return null==t||t.observe(e),function(){return null==t?void 0:t.disconnect()}}},[Le]);var Tt=a(function(){var e=new Set;return On.forEach(function(n){var t;null!=(null===(t=n.review_step.review)||void 0===t?void 0:t.action)&&e.add(n.id)}),e},[On]),Wt=a(function(){var e;return null!==(e=On.find(function(e){return e.id===Yn}))&&void 0!==e?e:null},[Yn,On]),Lt=a(function(){return!(!_n||"label"!==(null==Wt?void 0:Wt.kind))&&Nn.some(function(e){if(_(e.segment)!==_(Wt.segment)||Tt.has(e.id))return!1;var n=L(e.review_step.score,e.review_step.confidence);return null==n||n<85})},[Wt,Nn,_n,Tt]),zt=null==Wt?-1:Ae.findIndex(function(e){return _(e)===_(Wt.segment)}),qt=zt>0?Ae[zt-1]:void 0,jt=zt>=0?Ae[zt+1]:void 0,Gt=(null===(K=null==qt?void 0:qt.label)||void 0===K?void 0:K.trim())||(null==qt?void 0:qt.title),Ot=(null===(Q=null==jt?void 0:jt.label)||void 0===Q?void 0:Q.trim())||(null==jt?void 0:jt.title),Dt=z(null==Wt?void 0:Wt.review_step.score,null==Wt?void 0:Wt.review_step.confidence,null===($=null==Wt?void 0:Wt.segment.confidence)||void 0===$?void 0:$.awaiting_llm),Vt=(null===(ee=null==Wt?void 0:Wt.review_step.reasons)||void 0===ee?void 0:ee.length)?Wt.review_step.reasons:null!==(te=null===(ne=null==Wt?void 0:Wt.segment.confidence)||void 0===ne?void 0:ne.reasons)&&void 0!==te?te:[],Ht=Boolean(Vt.some(function(e){return e.text.trim()&&["evidence","gap"].includes(e.type.trim().toLowerCase())})||(null===(ie=null==Wt?void 0:Wt.review_step.reason)||void 0===ie?void 0:ie.trim())||(null===(re=null==Wt?void 0:Wt.review_step.gap)||void 0===re?void 0:re.trim())),Ut=null==Wt?null:"boundary"===Wt.kind?q(Wt.review_step,Wt.segment,Tn.get(null!==(oe=Wt.segment.stable_key)&&void 0!==oe?oe:"")):j(Wt.review_step,Wt.segment,Tn.get(null!==(ae=Wt.segment.stable_key)&&void 0!==ae?ae:"")),Xt="label"===(null==Wt?void 0:Wt.kind)?[Ut,Wt.review_step.human_action_enum,null===(le=Wt.review_step.review)||void 0===le?void 0:le.action,null===(de=Wt.review_step.human_resolution)||void 0===de?void 0:de.action]:[],Yt="label"===(null==Wt?void 0:Wt.kind)&&Xt.some(function(e){var n,t=null!==(n=null==e?void 0:e.trim().toUpperCase())&&void 0!==n?n:"";return t.includes("MERGE")||t.includes("SPLIT")}),Jt=null!=Wt&&On.some(function(e){return"boundary"===e.kind&&_(e.segment)===_(Wt.segment)}),Zt=Yt&&!Jt,Kt=("boundary"===(null==Wt?void 0:Wt.kind)||Zt)&&null!=Wt?function(){var e,t,i,r,o,a;if("boundary"===Wt.kind)return Wt;var l=Nn.find(function(e){return _(e.segment)===_(Wt.segment)});return l?n(n({},l),{kind:"boundary",pageNumber:null!==(e=l.metadata.focus_page)&&void 0!==e?e:l.segment.start_page}):n(n({},Wt),{kind:"boundary",pageNumber:null!==(i=null===(t=Wt.segment.review_action)||void 0===t?void 0:t.focus_page)&&void 0!==i?i:Wt.segment.start_page,metadata:{focus_page:null!==(o=null===(r=Wt.segment.review_action)||void 0===r?void 0:r.focus_page)&&void 0!==o?o:null,boundary_margin:null!==(a=Wt.segment.boundary_margin)&&void 0!==a?a:null,user_actions:[]}})}():void 0,Qt=null==Wt?"":(null===(ue=Wt.segment.label)||void 0===ue?void 0:ue.trim())||Wt.segment.title,$t=null==Wt?void 0:Wt.review_step.revert,ei=null==Wt?void 0:Wt.segment.revert,ni=function(e){return null==e?void 0:e.trim().toLowerCase()},ti=null==Wt||null===(ce=e([],null!==(se=Wt.segment.review_steps)&&void 0!==se?se:[],!0).reverse().find(function(e){var n,t,i=null===(n=e.type)||void 0===n?void 0:n.trim().toLowerCase();return("page_boundary"===i||"page boundary review"===i)&&"boundary"===ni(null===(t=e.revert)||void 0===t?void 0:t.type)}))||void 0===ce?void 0:ce.revert,ii=null!==(ge=null!=$t?$t:null==Wt?void 0:Wt.segment.revert)&&void 0!==ge?ge:ti,ri=null==ii?void 0:ii.decision.trim().toUpperCase(),oi=null!=Ut?Ut:(null==ri?void 0:ri.includes("SPLIT"))?"Split":(null==ri?void 0:ri.includes("MERGE"))?"Merged":null,ai="label"===(null==Wt?void 0:Wt.kind)&&"SET_RANGE"===(null===(ve=null==ti?void 0:ti.decision)||void 0===ve?void 0:ve.trim().toUpperCase())&&ti.current_segment_ids.length!==ti.previous_state.length,li="Merged"===Ut||"Split"===Ut||ai,di=null==Wt?void 0:li?"boundary"===ni(null==ti?void 0:ti.type)?ti:"boundary"===ni(null==ei?void 0:ei.type)?ei:"boundary"===ni(null==$t?void 0:$t.type)?$t:void 0:"label"===Wt.kind?"label"===ni(null==$t?void 0:$t.type)?$t:void 0:"boundary"===Wt.kind?"boundary"===ni(null==$t?void 0:$t.type)?$t:"boundary"===ni(null==ti?void 0:ti.type)?ti:"boundary"===ni(null==ei?void 0:ei.type)?ei:void 0:void 0,ui=li&&(null==di?void 0:di.operation_id)?Ae.flatMap(function(e){var n;return null!==(n=e.review_steps)&&void 0!==n?n:[]}).find(function(e){var n,t,i,r,o,a,l,d=null===(n=e.type)||void 0===n?void 0:n.trim().toLowerCase();return("page_boundary"===d||"page boundary review"===d)&&((null!==(o=null!==(i=null===(t=e.human_resolution)||void 0===t?void 0:t.operation_id)&&void 0!==i?i:null===(r=e.revert)||void 0===r?void 0:r.operation_id)&&void 0!==o?o:e.operation_id)===di.operation_id&&Boolean(null===(l=null===(a=e.human_resolution)||void 0===a?void 0:a.change_summary)||void 0===l?void 0:l.trim()))}):void 0,si=(null===(pe=null==di?void 0:di.summary)||void 0===pe?void 0:pe.trim())||null,ci=li?(null===(fe=null===(me=null==ui?void 0:ui.human_resolution)||void 0===me?void 0:me.change_summary)||void 0===fe?void 0:fe.trim())||(null===(he=null==di?void 0:di.summary)||void 0===he?void 0:he.trim())||"":(null===(ye=null===(be=null===(we=null==Wt?void 0:Wt.review_step)||void 0===we?void 0:we.human_resolution)||void 0===be?void 0:be.change_summary)||void 0===ye?void 0:ye.trim())||(null===(xe=null===(_e=null==Wt?void 0:Wt.review_step)||void 0===_e?void 0:_e.summary)||void 0===xe?void 0:xe.trim())||"",gi=null==Wt?null:di?{currentSegment:{title:Qt,startPage:Wt.segment.start_page,endPage:Wt.segment.end_page},previousSegments:di.previous_state.map(function(e){var n,t;return{title:(null===(n=e.label)||void 0===n?void 0:n.trim())||(null===(t=e.title)||void 0===t?void 0:t.trim())||"Untitled document",startPage:e.start_page,endPage:e.end_page}})}:"Split"===oi?{currentSegment:{title:Qt,startPage:Wt.segment.start_page,endPage:Wt.segment.end_page},previousSegments:[{title:"Advice of Award",startPage:1,endPage:25},{title:Qt,startPage:Wt.segment.start_page,endPage:Wt.segment.end_page}]}:"Merged"===oi?{currentSegment:{title:Qt,startPage:Wt.segment.start_page,endPage:Wt.segment.end_page},previousSegments:[{title:"Advice of Award",startPage:1,endPage:25},{title:"Request for proposal (RFP)",startPage:26,endPage:76}]}:{currentSegment:{title:Qt,startPage:Wt.segment.start_page,endPage:Wt.segment.end_page},previousSegments:[]},vi="page"===(null==Wt?void 0:Wt.kind)&&null!==(Se=Wt.metadata.classification_id)&&void 0!==Se?Se:null,pi="page"===(null==Wt?void 0:Wt.kind)?Boolean(un&&vi):Boolean((null==di?void 0:di.operation_id)&&(null==di?void 0:di.type)&&!1!==(null==di?void 0:di.revertable));Boolean(gi&&pi&&("page"!==(null==Wt?void 0:Wt.kind)||vi));var mi=s(function(e,n){St.current+=1,Pt.current={requestId:St.current,pageNumber:e,reviewId:n},lt({pageNumber:e,requestId:St.current})},[]),fi=s(function(e){var n,t;!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)&&(null==In||In({reviewId:e.id,segment_id:null!==(t=e.segment.segment_id)&&void 0!==t?t:null,reviewStepIndex:e.reviewStepIndex,kind:e.kind,pageNumber:e.pageNumber,metadata:e.metadata}),ft(null),bt(null),Jn(e.id),Qn(e.id),nt(!1),rt(null),mi(e.pageNumber,e.id),null==cn||cn(e.id,e.segment))},[cn,In,mi]);d(function(){if(wt){var e=requestAnimationFrame(function(){return xt(!0)}),n=window.setTimeout(function(){xt(!1)},3500),t=window.setTimeout(function(){bt(null)},4e3);return function(){cancelAnimationFrame(e),window.clearTimeout(n),window.clearTimeout(t)}}},[wt]),d(function(){var e,n,t,i;if(Rn){if("pageGroup"===Rn.type){var r=null!==(e=Rn.pages)&&void 0!==e?e:[],o=null!==(n=Rn.pageIndex)&&void 0!==n?n:0,a=r[o];if(null==a)return;return hi(),ft({pages:r,index:o,label:null!==(t=Rn.groupLabel)&&void 0!==t?t:""}),St.current+=1,void lt({pageNumber:a,requestId:St.current})}if(ft(null),Rn.reviewId){var l=On.find(function(e){return e.id===Rn.reviewId&&(!Rn.type||e.kind===Rn.type)});if(l)return void fi(l)}if(Rn.classificationId){var d=On.find(function(e){return!("page"!==e.kind||e.metadata.classification_id!==Rn.classificationId||Rn.segmentId&&e.segment.segment_id!==Rn.segmentId||Rn.type&&e.kind!==Rn.type)});if(d)return void fi(d)}if(Rn.pageNumber&&Rn.type){var u=Number(Rn.pageNumber);if(Number.isInteger(u)&&!(u<1)){var s=null===(i=Rn.pageType)||void 0===i?void 0:i.trim().toLowerCase(),c=On.find(function(e){var n="page"===e.kind?e.pageNumber:e.segment.start_page,t="page"!==e.kind||!s||e.metadata.page_type===s;return(!Rn.segmentId||e.segment.segment_id===Rn.segmentId)&&n===u&&e.kind===Rn.type&&t});c?fi(c):"page"===Rn.type&&(hi(),St.current+=1,lt({pageNumber:u,requestId:St.current}))}}}},[Rn,fi,On]);var hi=s(function(){Pt.current=null,nt(!1),Jn(null),rt(null),null==cn||cn(null,null)},[cn]),wi=s(function(e){var n;xt(!1),bt(null);var t=null!==(n=On.find(function(n){return!Tt.has(n.id)&&"boundary"===n.kind&&n.segment.start_page===e.startPage&&n.segment.end_page===e.endPage}))&&void 0!==n?n:On.find(function(n){return!Tt.has(n.id)&&n.segment.start_page<=e.startPage&&n.segment.end_page>=e.startPage});t?fi(t):(hi(),St.current+=1,lt({pageNumber:e.startPage,requestId:St.current}))},[hi,Tt,On,fi]),bi=s(function(e){var n;if(Xe){var t=On.findIndex(function(n){return n.id===e}),i=new Set(On.map(function(e){return e.id})),r=null!==(n=On.find(function(n,r){return r>t&&n.id!==e&&i.has(n.id)}))&&void 0!==n?n:On.find(function(n){return n.id!==e});r?requestAnimationFrame(function(){return fi(r)}):hi()}else hi()},[Xe,hi,On,fi,On]),yi=s(function(e,n,r){return t(Ie,void 0,void 0,function(){var t,o,a,l,d,u,s,c,g;return i(this,function(i){switch(i.label){case 0:if(mn)return[2];if("boundary"===e.kind&&!an)return[2];if("label"===e.kind&&!ln)return[2];if("page"===e.kind&&!dn)return[2];t=J(e),a=r,l=(o=n)===p.SET_RANGE?function(){var n=a.startPage,t=a.endPage;if(null==n||null==t)return null;var i=n<e.segment.start_page||t>e.segment.end_page,r=n>e.segment.start_page||t<e.segment.end_page;return i&&!r?n<e.segment.start_page?p.MERGE_PREV:p.MERGE_NEXT:r?p.SPLIT_HERE:null}():o,d="boundary"===e.kind&&null!=an&&Xe&&(l===p.SPLIT_HERE||l===p.MERGE_NEXT||l===p.MERGE_PREV||l===p.MERGE_PREVIOUS),u=d?Ae.findIndex(function(n){return _(n)===_(e.segment)}):-1,d&&u>=0&&l&&(kt.current={action:l,originalSegmentIndex:u,segmentSignature:JSON.stringify(Ae.map(function(e,n){var t;return{key:_(e,n),startPage:e.start_page,endPage:e.end_page,version:null!==(t=e.version)&&void 0!==t?t:null}})),ready:!1}),vt(e.id),i.label=1;case 1:return i.trys.push([1,8,9,10]),"boundary"!==e.kind?[3,3]:[4,null==an?void 0:an(n,r,t)];case 2:return i.sent(),[3,7];case 3:return"label"!==e.kind?[3,5]:[4,null==ln?void 0:ln(n,r,t)];case 4:return i.sent(),[3,7];case 5:return"page"!==e.kind?[3,7]:[4,null==dn?void 0:dn(n,r,t)];case 6:i.sent(),i.label=7;case 7:return st(function(n){var t=new Set(n);return t.add(e.id),t}),s="boundary"===e.kind&&(l===p.MERGE_NEXT||l===p.MERGE_PREV||l===p.MERGE_PREVIOUS),("boundary"===e.kind&&l===p.SPLIT_HERE||s)&&l&&Wn(function(n){var t=new Map(n);return t.set(_(e.segment),l),t}),kt.current?(kt.current.ready=!0,s&&(c=On.find(function(n){return"label"===n.kind&&_(n.segment)===_(e.segment)}))&&requestAnimationFrame(function(){return fi(c)})):bi(e.id),[3,10];case 8:return g=i.sent(),d&&(kt.current=null),null==vn||vn(g,t),[3,10];case 9:return vt(null),[7];case 10:return[2]}})})},[Xe,mn,vn,an,ln,dn,un,On,Ae,fi,bi]);d(function(){var e=kt.current;if(null==e?void 0:e.ready){var n=JSON.stringify(Ae.map(function(e,n){var t;return{key:_(e,n),startPage:e.start_page,endPage:e.end_page,version:null!==(t=e.version)&&void 0!==t?t:null}}));if(n!==e.segmentSignature){var t=e.action===p.SPLIT_HERE?e.originalSegmentIndex+1:e.action===p.MERGE_PREV||e.action===p.MERGE_PREVIOUS?Math.max(0,e.originalSegmentIndex-1):e.originalSegmentIndex,i=new Map(Ae.map(function(e,n){return[_(e,n),n]})),r=On.find(function(e){var n,r=i.get(_(e.segment));return null!=r&&r>=t&&!G(e.review_step,e.segment)&&(!ut.has(e.id)||!O(e.review_step,e.segment))&&!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)});if(!r)return kt.current=null,void hi();requestAnimationFrame(function(){kt.current=null,fi(r)})}}},[hi,ut,On,Ae,fi]),d(function(){kt.current||Yn&&!On.some(function(e){return e.id===Yn})&&hi()},[Yn,hi,On]),d(function(){if(He&&!kt.current){var e=On.find(function(e){return e.pageNumber===Hn});e&&e.id!==Yn&&fi(e)}},[Yn,He,Hn,fi,On]),d(function(){kt.current||Yn&&!On.some(function(e){var n;return e.id===Yn&&!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)})&&hi()},[Yn,hi,On]);var _i=a(function(){var n=On.filter(function(e){var n;return!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)});if("all"===Ge)return n;var t=["low","medium","high"].filter(function(e){return e!==qe}),i=e([qe],t,!0),r=new Map(i.map(function(e,n){return[e,n]}));return n.map(function(e,n){return{item:e,index:n}}).sort(function(e,n){var t,o,a,l,d=null===(t=e.item.review_step.confidence)||void 0===t?void 0:t.trim().toLowerCase(),u=null===(o=n.item.review_step.confidence)||void 0===o?void 0:o.trim().toLowerCase();return(null==d?i.length:null!==(a=r.get(d))&&void 0!==a?a:i.length)-(null==u?i.length:null!==(l=r.get(u))&&void 0!==l?l:i.length)||e.index-n.index}).map(function(e){return e.item})},[Ge,qe,On]),xi=_i.findIndex(function(e){return e.id===Kn}),Si=l(null),Pi=Si[0],ki=Si[1],Ci=u(!1),Ei=s(function(e){var n=_i[e];n&&fi(n)},[_i,fi]);s(function(e){if(!(!mt||e<0||e>=mt.pages.length)){var t=mt.pages[e];null!=t&&(hi(),ft(function(t){return null==t?t:n(n({},t),{index:e})}),St.current+=1,lt({pageNumber:t,requestId:St.current}))}},[mt,hi]),d(function(){Kn&&!_i.some(function(e){return e.id===Kn})&&Qn(null)},[_i,Kn]),d(function(){Ci.current=!1,ki(xi>=0?String(xi+1):null)},[xi,_i.length]),d(function(){if(Ci.current&&null!=Pi){var e=window.setTimeout(function(){var e=Number(Pi.trim()),n=e-1;Number.isInteger(e)&&n>=0&&n<_i.length&&(Ci.current=!1,Ei(n))},300);return function(){return window.clearTimeout(e)}}},[Ei,Pi,_i.length]);var Ri=a(function(){var e=new Map;On.forEach(function(n){var t,i=null!==(t=e.get(_(n.segment)))&&void 0!==t?t:[];i.push(n),e.set(_(n.segment),i)});var n=new Map;return e.forEach(function(e,t){var i,r=null!==(i=Ln.get(t))&&void 0!==i?i:1;e.sort(function(e,n){return e.reviewStepIndex-n.reviewStepIndex}).forEach(function(e,t){n.set(e.id,"".concat(r).concat(function(e){for(var n=e+1,t="";n>0;)n-=1,t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26);return t}(t)))})}),n},[On,Ln]),Ii=a(function(){var e=new Map;On.forEach(function(n){var t,i=null!==(t=e.get(n.pageNumber))&&void 0!==t?t:[];i.push(n),e.set(n.pageNumber,i)});var n=new Map;return e.forEach(function(e){e.forEach(function(e,t){return n.set(e.id,t)})}),n},[On]),Mi=s(function(e){return{startPage:Math.max(0,e.startPage-Je),endPage:Math.min(e.numPages-1,e.endPage+Je)}},[Je]),Ni=s(function(){var e,n=Rt.current,t=It.current;if(n&&t){var i=n.getBoundingClientRect(),r=t.querySelector(".rpv-core__inner-pages"),o=null!==(e=null==r?void 0:r.getBoundingClientRect())&&void 0!==e?e:t.getBoundingClientRect();On.forEach(function(e){var n,r=Ct.current.get(e.id);if(r){var a=t.querySelector('[data-testid="core__page-layer-'.concat(e.pageNumber-1,'"]'));if(a){var l=a.getBoundingClientRect(),d=null!==(n=Ii.get(e.id))&&void 0!==n?n:0,u=l.top+Ke+40*d,s=u+(r.offsetHeight||32),c=u>=o.top&&s<=o.bottom;r.style.top="".concat(u-i.top,"px"),r.style.visibility=c?"visible":"hidden"}else r.style.visibility="hidden"}});var a=Et.current;if(a){var l=null==mt?void 0:mt.pages[mt.index],d=null==l?null:t.querySelector('[data-testid="core__page-layer-'.concat(l-1,'"]'));if(mt&&d){var u=d.getBoundingClientRect().top+Ke,s=u+(a.offsetHeight||25),c=u>=o.top&&s<=o.bottom;a.style.top="".concat(u-i.top,"px"),a.style.visibility=c?"visible":"hidden"}else a.style.visibility="hidden"}if(Yn&&null==Pt.current){var g=Ct.current.get(Yn);g&&"hidden"!==g.style.visibility&&rt(function(e){return e===g?e:g})}}},[mt,Yn,Ke,Ii,On]),Ai=s(function(e){var n=Pt.current;n&&n.requestId===e.requestId&&n.pageNumber===e.pageNumber&&(Pt.current=null,Ni(),requestAnimationFrame(function(){if(null==Pt.current){var e=Ct.current.get(n.reviewId);e&&"hidden"!==e.style.visibility&&rt(e)}}))},[Ni]);return d(function(){var e=It.current;if(e&&Le){var n=null,t=function(){null==n&&(n=requestAnimationFrame(function(){n=null,Ni()}))};e.addEventListener("scroll",t,!0),window.addEventListener("resize",t);var i=new MutationObserver(t);i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]});var r="undefined"==typeof ResizeObserver?null:new ResizeObserver(t);return null==r||r.observe(e),t(),function(){null!=n&&cancelAnimationFrame(n),e.removeEventListener("scroll",t,!0),window.removeEventListener("resize",t),i.disconnect(),null==r||r.disconnect()}}},[Le,Ni]),r("div",n({ref:Rt,className:Pn,style:n(n({},kn),{display:"block",position:"relative",width:"100%",height:"100%",minWidth:0,overflowX:"auto",overflowY:"hidden"})},{children:[r("div",n({className:"segment-review-wrapper__container",style:{display:"flex",alignItems:"stretch",gap:0,width:"100%",minWidth:700,height:"100%"}},{children:[o("div",n({ref:It,style:n(n({},Cn),{flex:"1 1 auto",width:Le?"auto":"100%",minWidth:0,height:"100%",boxSizing:"border-box"})},{children:o(g,n({highlightText:[],highlightPages:{},highlightCordinatePages:[],useCoordinates:!1},Be,{defaultScale:void 0===Te?null!==(Pe=null==Be?void 0:Be.defaultScale)&&void 0!==Pe?Pe:c.PageFit:Y[Te],disablePdfAnnotations:hn,disablePdfTextLayer:bn,pdfUrl:Me,pdfName:Ne,segments:Dn,navigationRequest:at,onNavigationSettled:Ai,setRenderRange:Mi,onCurrentPageChange:function(e){Un(e),null==Pt.current&&Wt&&Wt.pageNumber!==e&&hi(),null==gn||gn(e)}}))})),Le&&r("aside",n({"aria-label":"Page review badges",ref:Gn,style:n(n({},En),{position:"relative",width:Bt,maxWidth:X,flex:"0 1 ".concat(Bt),minHeight:0,overflow:"hidden",boxSizing:"border-box"})},{children:[mt&&o("span",n({ref:Et,style:{position:"absolute",top:0,left:10,visibility:"hidden",zIndex:2,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:4,minHeight:25,padding:"2px 8px",border:"1px solid #E2E8F0",borderRadius:16,backgroundColor:"#F8FAFC",boxSizing:"border-box",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)",font:"inherit"}},{children:r(k,n({fontFamily:"Inter",sx:{fontSize:11,fontWeight:500,color:"#475569",whiteSpace:"nowrap"}},{children:[mt.label||"Pages"," Pg: ",mt.index+1]}))})),De&&_i.length>0&&!mt&&r("nav",n({"aria-label":"Review badge navigation",style:{position:"absolute",top:8,right:$e||"auto",left:nn||"auto",zIndex:2,display:"flex",alignItems:"center",gap:7,width:128,minHeight:40,padding:"4px 6px",border:"1px solid #CBD5E1",borderRadius:6,backgroundColor:"#FFFFFF",boxSizing:"border-box",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.06)",font:"inherit"}},{children:[o("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",value:null!=Pi?Pi:"-","aria-label":"Review badge number",onChange:function(e){Ci.current=!0,ki(e.target.value)},style:{width:30,height:28,padding:0,border:"1px solid #A5B4FC",borderRadius:3,color:"#4F46E5",backgroundColor:"#FFFFFF",textAlign:"center",font:"inherit",fontSize:15,outline:"none"}}),r("span",n({"aria-label":"".concat(_i.length," reviews"),style:{flex:1,color:"#4F46E5",fontSize:14,whiteSpace:"nowrap",textAlign:"center"}},{children:["of ",_i.length]})),["previous","next"].map(function(e){var t="previous"===e,i=xi+(t?-1:1),r=i<0||i>=_i.length;return o("button",n({type:"button","aria-label":"".concat(t?"Previous":"Next"," review badge"),disabled:r,onClick:function(){return Ei(i)},style:{display:"grid",placeItems:"center",width:17,height:28,padding:0,border:0,background:"transparent",color:r?"#C7D2FE":"#4F46E5",cursor:r?"default":"pointer"}},{children:o("svg",n({width:"12",height:"8",viewBox:"0 0 12 8",fill:"none"},{children:o("path",{d:t?"M1 7L6 2L11 7":"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))}),e)})]})),!mt&&On.map(function(e){var t,i,a=Yn===e.id,l=null!==(t=Ri.get(e.id))&&void 0!==t?t:"1A",d=e.review_step.score,u=e.review_step.confidence,s=D(d,u),c="boundary"===e.kind?q(e.review_step,e.segment,Tn.get(_(e.segment))):"label"===e.kind?j(e.review_step,e.segment,Tn.get(_(e.segment))):null,g=null!=c?c:"N/A"===s?s:"".concat(s,"%"),v=!0===(null===(i=e.segment.confidence)||void 0===i?void 0:i.awaiting_llm),p=z(d,u,v),m=Tt.has(e.id);return o(C,n({title:v?"data is being processed":"",arrow:!0},{children:o("span",n({ref:function(n){n?Ct.current.set(e.id,n):Ct.current.delete(e.id)},style:{position:"absolute",top:0,left:10,visibility:"hidden",display:"inline-flex",cursor:v?"not-allowed":"pointer"}},{children:o("button",n({disabled:v,type:"button","aria-pressed":a,"aria-label":v?"".concat(e.review_step.type," · Page ").concat(e.pageNumber," · Data is being processed"):"".concat(e.review_step.type," · Page ").concat(e.pageNumber),onClick:function(){return fi(e)},style:{cursor:"inherit",display:"flex",alignItems:"center",justifyContent:"space-around",gap:4,width:c?m&&!v?115:90:m&&!v?105:80,minHeight:25,padding:"2px 5px",border:"1px solid ".concat(m&&!v?"#E2E8F0":p.border),borderRadius:16,backgroundColor:m&&!v?"#F8FAFC":p.background,color:m&&!v?"#475569":p.text,font:"inherit",alignContent:"center",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)"}},{children:r(k,n({fontFamily:"Inter",sx:{display:"flex",gap:1,alignItems:"center",flexDirection:"row"}},m&&!v?{children:[o("span",n({style:{fontSize:11,fontWeight:500}},{children:l})),r("span",n({style:{display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:"#CBD5E1",strokeWidth:"0.8"})})),o("span",n({style:{fontSize:11,fontWeight:500,marginLeft:"7px",display:"flex",alignItems:"center"}},{children:g}))]})),r("span",n({style:{fontSize:11,fontWeight:500,display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:"#CBD5E1",strokeWidth:"0.8"})})),o("span",n({style:{display:"flex",marginLeft:"7px",alignItems:"center"}},{children:o(x,{height:14,width:14,strokeWidth:2,color:"#16A34A"})}))]}))]}:{children:[o("span",n({style:{fontSize:11,fontWeight:500}},{children:l})),r("span",n({style:{display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:p.divider,strokeWidth:"0.8"})})),o("span",n({style:{fontSize:11,fontWeight:500,marginLeft:"7px",display:"flex",alignItems:"center"}},{children:g}))]}))]}))}))}))}),e.id)})]}))]})),Wt&&it&&r(f,n({anchorElement:it,placement:"bottom-start",offset:{top:8},width:Math.min(Nt,X),maxWidth:X,heightBuffer:null!=on?on:25},{children:[et&&o(h,{width:"100%",maxWidth:"100%",score:Wt.review_step.score,reasons:Vt,reason:Wt.review_step.reason,gap:Wt.review_step.gap,onBack:function(){return nt(!1)},onClose:hi}),o("div",n({style:{display:et?"none":"block"}},{children:Tt.has(Wt.id)?o(I,{width:"100%",maxWidth:"100%",headerName:"page"===Wt.kind?"Page format approved":"Split"===Ut?"Split approved":"Merged"===Ut?"Merge approved":"User approved",headerIcon:"page"===Wt.kind?o(S,{size:18,strokeWidth:2}):"Merged"===Ut?o(P,{size:18,strokeWidth:2}):"Split"===Ut?o(V,{width:18,height:18}):o(x,{size:18,strokeWidth:2}),title:Qt,pageNo:"Page ".concat(Wt.segment.start_page,"-").concat(Wt.segment.end_page),summary:gi?o(N,{icon:o(x,{size:14,strokeWidth:2}),title:Qt,pageRange:"Page ".concat(Wt.segment.start_page,"-").concat(Wt.segment.end_page),description:null!=ci?ci:null,revertData:gi,confirmDisabled:"page"===Wt.kind?!pi:null==sn||!pi,showDocumentHeader:!1,onRevert:function(){if("page"===Wt.kind){if(!un||!vi){var e=new Error("SegmentReviewPdfWrapper requires onPageTypeRevert and a classification id to revert a page-type decision.");return null==vn||vn(e,J(Wt)),Promise.reject(e)}return un({classification_id:vi,human_verdict:"No"},J(Wt))}if(!sn)throw new Error("SegmentReviewPdfWrapper requires onRevert to handle a revert confirmation.");if(!di)throw new Error("There is no valid revert operation for this review.");var n=li?"boundary":"label"===Wt.kind?"label":"boundary"===Wt.kind?"boundary":null,t=ni(di.type);if(n&&t!==n)throw new Error("Cannot use ".concat(null!=t?t:"unknown"," revert metadata for this review. Expected ").concat(n,"."));return sn(di,J(Wt))},onRevertError:function(e){null==vn||vn(e,J(Wt))},onRevertComplete:function(e){var n,t,i,r,o,a;st(function(){return new Set}),"page"!==Wt.kind&&Wn(function(){return new Map}),Wt.id;var l=null!==(n=gi.previousSegments[0])&&void 0!==n?n:gi.currentSegment,d=null==it?void 0:it.getBoundingClientRect(),u=null===(t=It.current)||void 0===t?void 0:t.getBoundingClientRect(),s=Math.min(X,Math.max(220,Nt)),c=null!==(i=null==d?void 0:d.left)&&void 0!==i?i:(null!==(r=null==u?void 0:u.right)&&void 0!==r?r:window.innerWidth-s-8)+8,g=Math.max(8,Math.min(c,window.innerWidth-s-8)),v=null==(null==d?void 0:d.bottom)?Math.max(8,null!==(o=null==u?void 0:u.top)&&void 0!==o?o:8):d.bottom+8;st(function(){return new Set}),"page"!==Wt.kind&&(kt.current=null),xt(!1),bt({title:"Split"===Ut?"Split reverted":"Merged"===Ut?"Merge reverted":"Approval reverted",description:(null===(a=null==e?void 0:e.message)||void 0===a?void 0:a.trim())||("Split"===Ut?"Pages ".concat(Wt.segment.start_page,"-").concat(Wt.segment.end_page," are now part of “Advice of Award” again. Review the boundary and title to confirm the document."):"Merged"===Ut?"The documents have been separated again. Review their boundaries and titles to confirm them.":"“".concat(Qt,"” is pending review again. Review the boundary and title to confirm the document.")),segment:l,position:{top:v,left:g,width:s}}),hi()}},Wt.id):void 0,additionalActions:Kt?o(M,{metadata:Kt.metadata,reviewAction:null!==(ke=Wt.segment.review_action)&&void 0!==ke?ke:void 0,startPage:Wt.segment.start_page,endPage:Wt.segment.end_page,title:Qt,previousSegmentTitle:Gt,nextSegmentTitle:Ot,disabled:mn||!an||gt===Wt.id,onConfirm:function(e,n){yi(Kt,e,n)}}):void 0,cognitiveScore:Wt.review_step.score,styles:{root:{borderColor:"#16A34A"},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:"#16A34A"}}},onCognitiveClick:Ht?function(){nt(!0),null==Sn||Sn(J(Wt))}:void 0,onClose:hi}):"boundary"===Wt.kind?o(v,{width:"100%",maxWidth:"100%",title:Wt.segment.label||Wt.segment.title,pageNo:"Page ".concat(Wt.pageNumber),content:null!==(Ce=Wt.review_step.question)&&void 0!==Ce?Ce:null,revertSummary:si,cognitiveScore:Wt.review_step.score,metadata:Wt.metadata,reviewAction:null!==(Ee=Wt.segment.review_action)&&void 0!==Ee?Ee:void 0,previousSegmentTitle:Gt,nextSegmentTitle:Ot,manualPrompt:null!=rn?rn:"Set a custom boundary",defaultStartPage:Wt.segment.start_page,defaultEndPage:Wt.segment.end_page,styles:{root:{borderColor:Dt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Dt.text}}},confirmDisabled:mn||!an||gt===Wt.id,onConfirm:function(e,n,t){t&&m(n.id)&&yi(Wt,n.id,t)},onAdjustManually:function(){return null==xn?void 0:xn(J(Wt))},onCognitiveClick:Ht?function(){nt(!0),null==Sn||Sn(J(Wt))}:void 0,onClose:hi},Wt.id):"label"===Wt.kind?o(w,{width:"100%",maxWidth:"100%",title:Wt.metadata.current_label||Wt.segment.label||Wt.segment.title,pageNo:"Pages ".concat(Wt.segment.start_page,"-").concat(Wt.segment.end_page),content:null!==(Re=Wt.review_step.question)&&void 0!==Re?Re:null,revertSummary:si,cognitiveScore:Wt.review_step.score,metadata:Wt.metadata,styles:{root:{borderColor:Dt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Dt.text}}},confirmDisabled:mn||!ln||gt===Wt.id,confirmationBlocked:Lt,confirmationWarning:Lt?"Please confirm the boundary before confirming the title.":void 0,onActionConfirm:function(e,n){yi(Wt,e,n)},onAdjustManually:function(){return null==xn?void 0:xn(J(Wt))},onCognitiveClick:Ht?function(){nt(!0),null==Sn||Sn(J(Wt))}:void 0,onClose:hi},Wt.id):o(b,{width:"100%",maxWidth:"100%",title:Wt.segment.label||Wt.segment.title,pageNo:"Page ".concat(Wt.pageNumber),content:Wt.review_step.reason,cognitiveScore:Wt.review_step.score,pageType:Wt.metadata.page_type,metadata:Wt.metadata,styles:{root:{borderColor:Dt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Dt.text}}},confirmDisabled:mn||!dn||gt===Wt.id,onActionConfirm:function(e,n){yi(Wt,e,n)},onCognitiveClick:Ht?function(){nt(!0),null==Sn||Sn(J(Wt))}:void 0,onClose:hi},Wt.id)}))]})),wt&&o(E,{children:o(R,n({"aria-live":"polite",sx:{position:"fixed",top:wt.position.top,left:wt.position.left,zIndex:1600,width:wt.position.width,maxWidth:"calc(100vw - 16px)",opacity:_t?1:0,transform:_t?"translateY(0)":"translateY(-6px)",transition:"opacity 500ms ease, transform 500ms ease",filter:"drop-shadow(0 12px 24px rgba(15, 23, 42, 0.18))",pointerEvents:_t?"auto":"none"}},{children:o(A,{title:wt.title,description:wt.description,onReview:function(){return wi(wt.segment)}})}))})]}))}export{U as SegmentPdfSpecialZoomLevel,Z as default};
1
+ import{__spreadArray as e,__assign as n,__awaiter as t,__generator as i}from"tslib";import{jsxs as r,jsx as o}from"react/jsx-runtime";import{useMemo as a,useState as l,useEffect as d,useRef as u,useCallback as s}from"react";import{SpecialZoomLevel as c}from"@react-pdf-viewer/core";import v from"../PdfViewer/PdfViewer.js";import g,{BoundaryReviewActionEnum as p,isBoundaryReviewAction as m}from"./BoundaryCard.js";import f from"./CardWrapper.js";import h from"./CognitiveIntegrity.js";import w from"./LabelCheck.js";import b from"./PageCheck.js";import{extractSegmentReviewData as y,getSegmentReviewKey as _}from"./reviewStepAdapters.js";import{CircleCheck as x,Check as S,GitMerge as P}from"lucide-react";import{Typography as k,Tooltip as C,Portal as E,Box as R}from"@mui/material";import I from"./ReviewedCard.js";import M from"./ReviewedBoundaryActions.js";import N from"./RevertCard.js";import A from"./RevertSuccessCard.js";import{getPendingMergeImpactedSegmentKeys as F,hasPolledStructuralAction as B,getOptimisticMergeImpactedSegmentKeys as T,shouldHideStructuralBoundaryReview as W,getResolvedScore as L,getConfidenceColors as z,getBoundaryReviewActionBadgeLabel as q,getTitleReviewActionBadgeLabel as j,isReviewStepResolutionCurrent as G,isReviewStepResolved as O,formatScore as D}from"./helper.js";import V from"./ChartBreakoutCircle.js";var H,U,X=260;!function(e){e.ActualSize="ActualSize",e.PageFit="PageFit",e.PageWidth="PageWidth"}(U||(U={}));var Y=((H={})[U.ActualSize]=c.ActualSize,H[U.PageFit]=c.PageFit,H[U.PageWidth]=c.PageWidth,H),J=function(e){return{reviewId:e.id,segment:e.segment,pageNumber:e.pageNumber}};function Z(H){var U,Z,K,Q,$,ee,ne,te,ie,re,oe,ae,le,de,ue,se,ce,ve,ge,pe,me,fe,he,we,be,ye,_e,xe,Se,Pe,ke,Ce,Ee,Re,Ie=this,Me=H.pdfUrl,Ne=H.pdfName,Ae=H.segments,Fe=H.styles,Be=H.pdfViewerProps,Te=H.specialZoomLevel,We=H.showBadges,Le=void 0===We||We,ze=H.sortByConfidence,qe=void 0===ze?"low":ze,je=H.filterByConfidence,Ge=void 0===je?"all":je,Oe=H.showBadgeNavigation,De=void 0===Oe||Oe,Ve=H.autoSelectReviewOnPageChange,He=void 0!==Ve&&Ve,Ue=H.autoAdvanceAfterConfirm,Xe=void 0===Ue||Ue,Ye=H.autoAdvanceConfidence,Je=H.badgePreloadPages,Ze=void 0===Je?8:Je,Ke=H.badgeOffsetTop,Qe=void 0===Ke?20:Ke,$e=H.badgeOffsetRight,en=void 0===$e?68:$e,nn=H.badgeOffsetLeft,tn=void 0===nn?0:nn,rn=H.initialReviewId,on=H.manualPrompt,an=H.heightBuffer,ln=H.onBoundaryAction,dn=H.onLabelAction,un=H.onPageAction,sn=H.onPageTypeRevert,cn=H.onRevert,vn=H.onActiveReviewChange,gn=H.onCurrentPageChange,pn=H.onActionError,mn=H.disableAllActions,fn=void 0!==mn&&mn,hn=H.disablePdfAnnotations,wn=void 0!==hn&&hn,bn=H.disablePdfTextLayer,yn=void 0===bn||bn,_n=H.disableTitleCheckUntilBoundaryCheckCompleted,xn=void 0!==_n&&_n,Sn=H.onAdjustManually,Pn=H.onCognitiveClick,kn=H.className,Cn=H.style,En=H.viewerStyle,Rn=H.railStyle,In=H.redirectionData,Mn=H.onBadgeSelected,Nn=a(function(){return y(Ae)},[Ae]),An=Nn.boundaryReviews,Fn=Nn.labelReviews,Bn=Nn.pageReviews,Tn=l(function(){return new Map}),Wn=Tn[0],Ln=Tn[1],zn=a(function(){var e=new Map,n=1;return Ae.forEach(function(t,i){var r=_(t,i);e.has(r)||(e.set(r,n),n+=1)}),e},[Ae]),qn=a(function(){return new Set(Fn.map(function(e){return _(e.segment)}))},[Fn]),jn=a(function(){return F(Ae)},[Ae]);d(function(){Ln(function(e){var n=!1,t=new Map(e);return e.forEach(function(e,i){var r=Ae.find(function(e){return _(e)===i});r&&!B(r,e)||(t.delete(i),n=!0)}),n?t:e})},[Ae]);var Gn=a(function(){return T(Ae,Wn)},[Wn,Ae]),On=u(null),Dn=a(function(){return e(e(e([],An.filter(function(e){return!jn.has(_(e.segment))&&!Gn.has(_(e.segment))&&!W(e.review_step,e.segment,qn.has(_(e.segment)),Wn.get(_(e.segment)))}).map(function(e){var t;return n(n({},e),{kind:"boundary",pageNumber:null!==(t=e.metadata.focus_page)&&void 0!==t?t:e.segment.start_page})}),!0),Fn.filter(function(e){return!jn.has(_(e.segment))&&!Gn.has(_(e.segment))}).map(function(e){return n(n({},e),{kind:"label",pageNumber:e.segment.start_page})}),!0),Bn.filter(function(e){return!jn.has(_(e.segment))&&!Gn.has(_(e.segment))}).map(function(e){var t;return n(n({},e),{kind:"page",pageNumber:null!==(t=e.metadata.page_num)&&void 0!==t?t:e.segment.start_page})}),!0).sort(function(e,n){var t,i,r=null!==(t=zn.get(_(e.segment)))&&void 0!==t?t:Number.MAX_SAFE_INTEGER,o=null!==(i=zn.get(_(n.segment)))&&void 0!==i?i:Number.MAX_SAFE_INTEGER;return e.pageNumber-n.pageNumber||r-o||e.reviewStepIndex-n.reviewStepIndex||e.id.localeCompare(n.id)})},[An,Fn,Bn,Gn,Wn,jn,zn,qn]),Vn=a(function(){return Ae.map(function(e){var t,i;return n(n({},e),{title:(null===(t=e.label)||void 0===t?void 0:t.trim())||e.title,page_count:null!==(i=e.page_count)&&void 0!==i?i:e.end_page-e.start_page+1})})},[Ae]),Hn=l(1),Un=Hn[0],Xn=Hn[1],Yn=l(null!=rn?rn:null),Jn=Yn[0],Zn=Yn[1],Kn=l(null!=rn?rn:null),Qn=Kn[0],$n=Kn[1],et=l(!1),nt=et[0],tt=et[1],it=l(null),rt=it[0],ot=it[1],at=l(null),lt=at[0],dt=at[1],ut=l(function(){return new Set}),st=ut[0],ct=ut[1],vt=l(null),gt=vt[0],pt=vt[1],mt=l(null),ft=mt[0],ht=mt[1],wt=l(null),bt=wt[0],yt=wt[1],_t=l(!1),xt=_t[0],St=_t[1],Pt=u(0),kt=u(null),Ct=u(null),Et=u(new Map),Rt=u(null),It=u(null),Mt=u(null),Nt=l(X),At=Nt[0],Ft=Nt[1],Bt=null!==(Z=null===(U=null==Fe?void 0:Fe.aside)||void 0===U?void 0:U.width)&&void 0!==Z?Z:"40%",Tt="min(".concat("number"==typeof Bt?"".concat(Bt,"px"):Bt,", ").concat(X,"px, 100%)");d(function(){ct(function(e){if(0===e.size)return e;var n=new Set(e),t=!1;return Dn.forEach(function(e){var i;null!=(null===(i=e.review_step.review)||void 0===i?void 0:i.action)&&n.has(e.id)&&(n.delete(e.id),t=!0)}),t?n:e})},[Dn]),d(function(){var e=On.current;if(e&&Le){var n=function(){var n=e.getBoundingClientRect().width;n>0&&Ft(n)};n();var t="undefined"==typeof ResizeObserver?null:new ResizeObserver(n);return null==t||t.observe(e),function(){return null==t?void 0:t.disconnect()}}},[Le]);var Wt=a(function(){var e=new Set;return Dn.forEach(function(n){var t;null!=(null===(t=n.review_step.review)||void 0===t?void 0:t.action)&&e.add(n.id)}),e},[Dn]),Lt=a(function(){var e;return null!==(e=Dn.find(function(e){return e.id===Jn}))&&void 0!==e?e:null},[Jn,Dn]),zt=a(function(){return!(!xn||"label"!==(null==Lt?void 0:Lt.kind))&&An.some(function(e){if(_(e.segment)!==_(Lt.segment)||Wt.has(e.id))return!1;var n=L(e.review_step.score,e.review_step.confidence);return null==n||n<85})},[Lt,An,xn,Wt]),qt=null==Lt?-1:Ae.findIndex(function(e){return _(e)===_(Lt.segment)}),jt=qt>0?Ae[qt-1]:void 0,Gt=qt>=0?Ae[qt+1]:void 0,Ot=(null===(K=null==jt?void 0:jt.label)||void 0===K?void 0:K.trim())||(null==jt?void 0:jt.title),Dt=(null===(Q=null==Gt?void 0:Gt.label)||void 0===Q?void 0:Q.trim())||(null==Gt?void 0:Gt.title),Vt=z(null==Lt?void 0:Lt.review_step.score,null==Lt?void 0:Lt.review_step.confidence,null===($=null==Lt?void 0:Lt.segment.confidence)||void 0===$?void 0:$.awaiting_llm),Ht=(null===(ee=null==Lt?void 0:Lt.review_step.reasons)||void 0===ee?void 0:ee.length)?Lt.review_step.reasons:null!==(te=null===(ne=null==Lt?void 0:Lt.segment.confidence)||void 0===ne?void 0:ne.reasons)&&void 0!==te?te:[],Ut=Boolean(Ht.some(function(e){return e.text.trim()&&["evidence","gap"].includes(e.type.trim().toLowerCase())})||(null===(ie=null==Lt?void 0:Lt.review_step.reason)||void 0===ie?void 0:ie.trim())||(null===(re=null==Lt?void 0:Lt.review_step.gap)||void 0===re?void 0:re.trim())),Xt=null==Lt?null:"boundary"===Lt.kind?q(Lt.review_step,Lt.segment,Wn.get(null!==(oe=Lt.segment.stable_key)&&void 0!==oe?oe:"")):j(Lt.review_step,Lt.segment,Wn.get(null!==(ae=Lt.segment.stable_key)&&void 0!==ae?ae:"")),Yt="label"===(null==Lt?void 0:Lt.kind)?[Xt,Lt.review_step.human_action_enum,null===(le=Lt.review_step.review)||void 0===le?void 0:le.action,null===(de=Lt.review_step.human_resolution)||void 0===de?void 0:de.action]:[],Jt="label"===(null==Lt?void 0:Lt.kind)&&Yt.some(function(e){var n,t=null!==(n=null==e?void 0:e.trim().toUpperCase())&&void 0!==n?n:"";return t.includes("MERGE")||t.includes("SPLIT")}),Zt=null!=Lt&&Dn.some(function(e){return"boundary"===e.kind&&_(e.segment)===_(Lt.segment)}),Kt=Jt&&!Zt,Qt=("boundary"===(null==Lt?void 0:Lt.kind)||Kt)&&null!=Lt?function(){var e,t,i,r,o,a;if("boundary"===Lt.kind)return Lt;var l=An.find(function(e){return _(e.segment)===_(Lt.segment)});return l?n(n({},l),{kind:"boundary",pageNumber:null!==(e=l.metadata.focus_page)&&void 0!==e?e:l.segment.start_page}):n(n({},Lt),{kind:"boundary",pageNumber:null!==(i=null===(t=Lt.segment.review_action)||void 0===t?void 0:t.focus_page)&&void 0!==i?i:Lt.segment.start_page,metadata:{focus_page:null!==(o=null===(r=Lt.segment.review_action)||void 0===r?void 0:r.focus_page)&&void 0!==o?o:null,boundary_margin:null!==(a=Lt.segment.boundary_margin)&&void 0!==a?a:null,user_actions:[]}})}():void 0,$t=null==Lt?"":(null===(ue=Lt.segment.label)||void 0===ue?void 0:ue.trim())||Lt.segment.title,ei=null==Lt?void 0:Lt.review_step.revert,ni=null==Lt?void 0:Lt.segment.revert,ti=function(e){return null==e?void 0:e.trim().toLowerCase()},ii=null==Lt||null===(ce=e([],null!==(se=Lt.segment.review_steps)&&void 0!==se?se:[],!0).reverse().find(function(e){var n,t,i=null===(n=e.type)||void 0===n?void 0:n.trim().toLowerCase();return("page_boundary"===i||"page boundary review"===i)&&"boundary"===ti(null===(t=e.revert)||void 0===t?void 0:t.type)}))||void 0===ce?void 0:ce.revert,ri=null!==(ve=null!=ei?ei:null==Lt?void 0:Lt.segment.revert)&&void 0!==ve?ve:ii,oi=null==ri?void 0:ri.decision.trim().toUpperCase(),ai=null!=Xt?Xt:(null==oi?void 0:oi.includes("SPLIT"))?"Split":(null==oi?void 0:oi.includes("MERGE"))?"Merged":null,li="label"===(null==Lt?void 0:Lt.kind)&&"SET_RANGE"===(null===(ge=null==ii?void 0:ii.decision)||void 0===ge?void 0:ge.trim().toUpperCase())&&ii.current_segment_ids.length!==ii.previous_state.length,di="Merged"===Xt||"Split"===Xt||li,ui=null==Lt?void 0:di?"boundary"===ti(null==ii?void 0:ii.type)?ii:"boundary"===ti(null==ni?void 0:ni.type)?ni:"boundary"===ti(null==ei?void 0:ei.type)?ei:void 0:"label"===Lt.kind?"label"===ti(null==ei?void 0:ei.type)?ei:void 0:"boundary"===Lt.kind?"boundary"===ti(null==ei?void 0:ei.type)?ei:"boundary"===ti(null==ii?void 0:ii.type)?ii:"boundary"===ti(null==ni?void 0:ni.type)?ni:void 0:void 0,si=di&&(null==ui?void 0:ui.operation_id)?Ae.flatMap(function(e){var n;return null!==(n=e.review_steps)&&void 0!==n?n:[]}).find(function(e){var n,t,i,r,o,a,l,d=null===(n=e.type)||void 0===n?void 0:n.trim().toLowerCase();return("page_boundary"===d||"page boundary review"===d)&&((null!==(o=null!==(i=null===(t=e.human_resolution)||void 0===t?void 0:t.operation_id)&&void 0!==i?i:null===(r=e.revert)||void 0===r?void 0:r.operation_id)&&void 0!==o?o:e.operation_id)===ui.operation_id&&Boolean(null===(l=null===(a=e.human_resolution)||void 0===a?void 0:a.change_summary)||void 0===l?void 0:l.trim()))}):void 0,ci=(null===(pe=null==ui?void 0:ui.summary)||void 0===pe?void 0:pe.trim())||null,vi=di?(null===(fe=null===(me=null==si?void 0:si.human_resolution)||void 0===me?void 0:me.change_summary)||void 0===fe?void 0:fe.trim())||(null===(he=null==ui?void 0:ui.summary)||void 0===he?void 0:he.trim())||"":(null===(ye=null===(be=null===(we=null==Lt?void 0:Lt.review_step)||void 0===we?void 0:we.human_resolution)||void 0===be?void 0:be.change_summary)||void 0===ye?void 0:ye.trim())||(null===(xe=null===(_e=null==Lt?void 0:Lt.review_step)||void 0===_e?void 0:_e.summary)||void 0===xe?void 0:xe.trim())||"",gi=null==Lt?null:ui?{currentSegment:{title:$t,startPage:Lt.segment.start_page,endPage:Lt.segment.end_page},previousSegments:ui.previous_state.map(function(e){var n,t;return{title:(null===(n=e.label)||void 0===n?void 0:n.trim())||(null===(t=e.title)||void 0===t?void 0:t.trim())||"Untitled document",startPage:e.start_page,endPage:e.end_page}})}:"Split"===ai?{currentSegment:{title:$t,startPage:Lt.segment.start_page,endPage:Lt.segment.end_page},previousSegments:[{title:"Advice of Award",startPage:1,endPage:25},{title:$t,startPage:Lt.segment.start_page,endPage:Lt.segment.end_page}]}:"Merged"===ai?{currentSegment:{title:$t,startPage:Lt.segment.start_page,endPage:Lt.segment.end_page},previousSegments:[{title:"Advice of Award",startPage:1,endPage:25},{title:"Request for proposal (RFP)",startPage:26,endPage:76}]}:{currentSegment:{title:$t,startPage:Lt.segment.start_page,endPage:Lt.segment.end_page},previousSegments:[]},pi="page"===(null==Lt?void 0:Lt.kind)&&null!==(Se=Lt.metadata.classification_id)&&void 0!==Se?Se:null,mi="page"===(null==Lt?void 0:Lt.kind)?Boolean(sn&&pi):Boolean((null==ui?void 0:ui.operation_id)&&(null==ui?void 0:ui.type)&&!1!==(null==ui?void 0:ui.revertable));Boolean(gi&&mi&&("page"!==(null==Lt?void 0:Lt.kind)||pi));var fi=s(function(e,n){Pt.current+=1,kt.current={requestId:Pt.current,pageNumber:e,reviewId:n},dt({pageNumber:e,requestId:Pt.current})},[]),hi=s(function(e){var n,t;!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)&&(null==Mn||Mn({reviewId:e.id,segment_id:null!==(t=e.segment.segment_id)&&void 0!==t?t:null,reviewStepIndex:e.reviewStepIndex,kind:e.kind,pageNumber:e.pageNumber,metadata:e.metadata}),ht(null),yt(null),Zn(e.id),$n(e.id),tt(!1),ot(null),fi(e.pageNumber,e.id),null==vn||vn(e.id,e.segment))},[vn,Mn,fi]);d(function(){if(bt){var e=requestAnimationFrame(function(){return St(!0)}),n=window.setTimeout(function(){St(!1)},3500),t=window.setTimeout(function(){yt(null)},4e3);return function(){cancelAnimationFrame(e),window.clearTimeout(n),window.clearTimeout(t)}}},[bt]),d(function(){var e,n,t,i;if(In){if("pageGroup"===In.type){var r=null!==(e=In.pages)&&void 0!==e?e:[],o=null!==(n=In.pageIndex)&&void 0!==n?n:0,a=r[o];if(null==a)return;return wi(),ht({pages:r,index:o,label:null!==(t=In.groupLabel)&&void 0!==t?t:""}),Pt.current+=1,void dt({pageNumber:a,requestId:Pt.current})}if(ht(null),In.reviewId){var l=Dn.find(function(e){return e.id===In.reviewId&&(!In.type||e.kind===In.type)});if(l)return void hi(l)}if(In.classificationId){var d=Dn.find(function(e){return!("page"!==e.kind||e.metadata.classification_id!==In.classificationId||In.segmentId&&e.segment.segment_id!==In.segmentId||In.type&&e.kind!==In.type)});if(d)return void hi(d)}if(In.pageNumber&&In.type){var u=Number(In.pageNumber);if(Number.isInteger(u)&&!(u<1)){var s=null===(i=In.pageType)||void 0===i?void 0:i.trim().toLowerCase(),c=Dn.find(function(e){var n="page"===e.kind?e.pageNumber:e.segment.start_page,t="page"!==e.kind||!s||e.metadata.page_type===s;return(!In.segmentId||e.segment.segment_id===In.segmentId)&&n===u&&e.kind===In.type&&t});c?hi(c):"page"===In.type&&(wi(),Pt.current+=1,dt({pageNumber:u,requestId:Pt.current}))}}}},[In,hi,Dn]);var wi=s(function(){kt.current=null,tt(!1),Zn(null),ot(null),null==vn||vn(null,null)},[vn]),bi=s(function(e){var n;St(!1),yt(null);var t=null!==(n=Dn.find(function(n){return!Wt.has(n.id)&&"boundary"===n.kind&&n.segment.start_page===e.startPage&&n.segment.end_page===e.endPage}))&&void 0!==n?n:Dn.find(function(n){return!Wt.has(n.id)&&n.segment.start_page<=e.startPage&&n.segment.end_page>=e.startPage});t?hi(t):(wi(),Pt.current+=1,dt({pageNumber:e.startPage,requestId:Pt.current}))},[wi,Wt,Dn,hi]),yi=s(function(e,n){var t,i,r=null===(t=e.review_step.confidence)||void 0===t?void 0:t.trim().toLowerCase(),o=null==Ye||r===Ye,a=st.has(e.id)&&G(e.review_step,e.segment);return e.id!==n&&o&&!0!==(null===(i=e.segment.confidence)||void 0===i?void 0:i.awaiting_llm)&&!O(e.review_step,e.segment)&&!a},[Ye,st]),_i=s(function(e){var n;if(Xe){var t=Dn.findIndex(function(n){return n.id===e}),i=null!==(n=Dn.find(function(n,i){return i>t&&yi(n,e)}))&&void 0!==n?n:Dn.find(function(n){return yi(n,e)});i?requestAnimationFrame(function(){return hi(i)}):wi()}else wi()},[Xe,wi,yi,Dn,hi]),xi=s(function(e,n,r){return t(Ie,void 0,void 0,function(){var t,o,a,l,d,u,s,c,v;return i(this,function(i){switch(i.label){case 0:if(fn)return[2];if("boundary"===e.kind&&!ln)return[2];if("label"===e.kind&&!dn)return[2];if("page"===e.kind&&!un)return[2];t=J(e),a=r,l=(o=n)===p.SET_RANGE?function(){var n=a.startPage,t=a.endPage;if(null==n||null==t)return null;var i=n<e.segment.start_page||t>e.segment.end_page,r=n>e.segment.start_page||t<e.segment.end_page;return i&&!r?n<e.segment.start_page?p.MERGE_PREV:p.MERGE_NEXT:r?p.SPLIT_HERE:null}():o,d="boundary"===e.kind&&null!=ln&&Xe&&(l===p.SPLIT_HERE||l===p.MERGE_NEXT||l===p.MERGE_PREV||l===p.MERGE_PREVIOUS),u=d?Ae.findIndex(function(n){return _(n)===_(e.segment)}):-1,d&&u>=0&&l&&(Ct.current={action:l,originalSegmentIndex:u,segmentSignature:JSON.stringify(Ae.map(function(e,n){var t;return{key:_(e,n),startPage:e.start_page,endPage:e.end_page,version:null!==(t=e.version)&&void 0!==t?t:null}})),ready:!1}),pt(e.id),i.label=1;case 1:return i.trys.push([1,8,9,10]),"boundary"!==e.kind?[3,3]:[4,null==ln?void 0:ln(n,r,t)];case 2:return i.sent(),[3,7];case 3:return"label"!==e.kind?[3,5]:[4,null==dn?void 0:dn(n,r,t)];case 4:return i.sent(),[3,7];case 5:return"page"!==e.kind?[3,7]:[4,null==un?void 0:un(n,r,t)];case 6:i.sent(),i.label=7;case 7:return ct(function(n){var t=new Set(n);return t.add(e.id),t}),s="boundary"===e.kind&&(l===p.MERGE_NEXT||l===p.MERGE_PREV||l===p.MERGE_PREVIOUS),("boundary"===e.kind&&l===p.SPLIT_HERE||s)&&l&&Ln(function(n){var t=new Map(n);return t.set(_(e.segment),l),t}),Ct.current?(Ct.current.ready=!0,s&&(c=Dn.find(function(n){return"label"===n.kind&&_(n.segment)===_(e.segment)}))&&requestAnimationFrame(function(){return hi(c)})):_i(e.id),[3,10];case 8:return v=i.sent(),d&&(Ct.current=null),null==pn||pn(v,t),[3,10];case 9:return pt(null),[7];case 10:return[2]}})})},[Xe,fn,pn,ln,dn,un,sn,Dn,Ae,hi,_i]);d(function(){var e=Ct.current;if(null==e?void 0:e.ready){var n=JSON.stringify(Ae.map(function(e,n){var t;return{key:_(e,n),startPage:e.start_page,endPage:e.end_page,version:null!==(t=e.version)&&void 0!==t?t:null}}));if(n!==e.segmentSignature){var t=e.action===p.SPLIT_HERE?e.originalSegmentIndex+1:e.action===p.MERGE_PREV||e.action===p.MERGE_PREVIOUS?Math.max(0,e.originalSegmentIndex-1):e.originalSegmentIndex,i=new Map(Ae.map(function(e,n){return[_(e,n),n]})),r=Dn.find(function(e){var n=i.get(_(e.segment));return null!=n&&n>=t&&yi(e)});if(!r)return Ct.current=null,void wi();requestAnimationFrame(function(){Ct.current=null,hi(r)})}}},[wi,yi,Dn,Ae,hi]),d(function(){Ct.current||Jn&&!Dn.some(function(e){return e.id===Jn})&&wi()},[Jn,wi,Dn]),d(function(){if(He&&!Ct.current){var e=Dn.find(function(e){return e.pageNumber===Un});e&&e.id!==Jn&&hi(e)}},[Jn,He,Un,hi,Dn]),d(function(){Ct.current||Jn&&!Dn.some(function(e){var n;return e.id===Jn&&!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)})&&wi()},[Jn,wi,Dn]);var Si=a(function(){var n=Dn.filter(function(e){var n;return!0!==(null===(n=e.segment.confidence)||void 0===n?void 0:n.awaiting_llm)});if("all"===Ge)return n;var t=["low","medium","high"].filter(function(e){return e!==qe}),i=e([qe],t,!0),r=new Map(i.map(function(e,n){return[e,n]}));return n.map(function(e,n){return{item:e,index:n}}).sort(function(e,n){var t,o,a,l,d=null===(t=e.item.review_step.confidence)||void 0===t?void 0:t.trim().toLowerCase(),u=null===(o=n.item.review_step.confidence)||void 0===o?void 0:o.trim().toLowerCase();return(null==d?i.length:null!==(a=r.get(d))&&void 0!==a?a:i.length)-(null==u?i.length:null!==(l=r.get(u))&&void 0!==l?l:i.length)||e.index-n.index}).map(function(e){return e.item})},[Ge,qe,Dn]),Pi=Si.findIndex(function(e){return e.id===Qn}),ki=l(null),Ci=ki[0],Ei=ki[1],Ri=u(!1),Ii=s(function(e){var n=Si[e];n&&hi(n)},[Si,hi]);s(function(e){if(!(!ft||e<0||e>=ft.pages.length)){var t=ft.pages[e];null!=t&&(wi(),ht(function(t){return null==t?t:n(n({},t),{index:e})}),Pt.current+=1,dt({pageNumber:t,requestId:Pt.current}))}},[ft,wi]),d(function(){Qn&&!Si.some(function(e){return e.id===Qn})&&$n(null)},[Si,Qn]),d(function(){Ri.current=!1,Ei(Pi>=0?String(Pi+1):null)},[Pi,Si.length]),d(function(){if(Ri.current&&null!=Ci){var e=window.setTimeout(function(){var e=Number(Ci.trim()),n=e-1;Number.isInteger(e)&&n>=0&&n<Si.length&&(Ri.current=!1,Ii(n))},300);return function(){return window.clearTimeout(e)}}},[Ii,Ci,Si.length]);var Mi=a(function(){var e=new Map;Dn.forEach(function(n){var t,i=null!==(t=e.get(_(n.segment)))&&void 0!==t?t:[];i.push(n),e.set(_(n.segment),i)});var n=new Map;return e.forEach(function(e,t){var i,r=null!==(i=zn.get(t))&&void 0!==i?i:1;e.sort(function(e,n){return e.reviewStepIndex-n.reviewStepIndex}).forEach(function(e,t){n.set(e.id,"".concat(r).concat(function(e){for(var n=e+1,t="";n>0;)n-=1,t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26);return t}(t)))})}),n},[Dn,zn]),Ni=a(function(){var e=new Map;Dn.forEach(function(n){var t,i=null!==(t=e.get(n.pageNumber))&&void 0!==t?t:[];i.push(n),e.set(n.pageNumber,i)});var n=new Map;return e.forEach(function(e){e.forEach(function(e,t){return n.set(e.id,t)})}),n},[Dn]),Ai=s(function(e){return{startPage:Math.max(0,e.startPage-Ze),endPage:Math.min(e.numPages-1,e.endPage+Ze)}},[Ze]),Fi=s(function(){var e,n=It.current,t=Mt.current;if(n&&t){var i=n.getBoundingClientRect(),r=t.querySelector(".rpv-core__inner-pages"),o=null!==(e=null==r?void 0:r.getBoundingClientRect())&&void 0!==e?e:t.getBoundingClientRect();Dn.forEach(function(e){var n,r=Et.current.get(e.id);if(r){var a=t.querySelector('[data-testid="core__page-layer-'.concat(e.pageNumber-1,'"]'));if(a){var l=a.getBoundingClientRect(),d=null!==(n=Ni.get(e.id))&&void 0!==n?n:0,u=l.top+Qe+40*d,s=u+(r.offsetHeight||32),c=u>=o.top&&s<=o.bottom;r.style.top="".concat(u-i.top,"px"),r.style.visibility=c?"visible":"hidden"}else r.style.visibility="hidden"}});var a=Rt.current;if(a){var l=null==ft?void 0:ft.pages[ft.index],d=null==l?null:t.querySelector('[data-testid="core__page-layer-'.concat(l-1,'"]'));if(ft&&d){var u=d.getBoundingClientRect().top+Qe,s=u+(a.offsetHeight||25),c=u>=o.top&&s<=o.bottom;a.style.top="".concat(u-i.top,"px"),a.style.visibility=c?"visible":"hidden"}else a.style.visibility="hidden"}if(Jn&&null==kt.current){var v=Et.current.get(Jn);v&&"hidden"!==v.style.visibility&&ot(function(e){return e===v?e:v})}}},[ft,Jn,Qe,Ni,Dn]),Bi=s(function(e){var n=kt.current;n&&n.requestId===e.requestId&&n.pageNumber===e.pageNumber&&(kt.current=null,Fi(),requestAnimationFrame(function(){if(null==kt.current){var e=Et.current.get(n.reviewId);e&&"hidden"!==e.style.visibility&&ot(e)}}))},[Fi]);return d(function(){var e=Mt.current;if(e&&Le){var n=null,t=function(){null==n&&(n=requestAnimationFrame(function(){n=null,Fi()}))};e.addEventListener("scroll",t,!0),window.addEventListener("resize",t);var i=new MutationObserver(t);i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]});var r="undefined"==typeof ResizeObserver?null:new ResizeObserver(t);return null==r||r.observe(e),t(),function(){null!=n&&cancelAnimationFrame(n),e.removeEventListener("scroll",t,!0),window.removeEventListener("resize",t),i.disconnect(),null==r||r.disconnect()}}},[Le,Fi]),r("div",n({ref:It,className:kn,style:n(n({},Cn),{display:"block",position:"relative",width:"100%",height:"100%",minWidth:0,overflowX:"auto",overflowY:"hidden"})},{children:[r("div",n({className:"segment-review-wrapper__container",style:{display:"flex",alignItems:"stretch",gap:0,width:"100%",minWidth:700,height:"100%"}},{children:[o("div",n({ref:Mt,style:n(n({},En),{flex:"1 1 auto",width:Le?"auto":"100%",minWidth:0,height:"100%",boxSizing:"border-box"})},{children:o(v,n({highlightText:[],highlightPages:{},highlightCordinatePages:[],useCoordinates:!1},Be,{defaultScale:void 0===Te?null!==(Pe=null==Be?void 0:Be.defaultScale)&&void 0!==Pe?Pe:c.PageFit:Y[Te],disablePdfAnnotations:wn,disablePdfTextLayer:yn,pdfUrl:Me,pdfName:Ne,segments:Vn,navigationRequest:lt,onNavigationSettled:Bi,setRenderRange:Ai,onCurrentPageChange:function(e){Xn(e),null==kt.current&&Lt&&Lt.pageNumber!==e&&wi(),null==gn||gn(e)}}))})),Le&&r("aside",n({"aria-label":"Page review badges",ref:On,style:n(n({},Rn),{position:"relative",width:Tt,maxWidth:X,flex:"0 1 ".concat(Tt),minHeight:0,overflow:"hidden",boxSizing:"border-box"})},{children:[ft&&o("span",n({ref:Rt,style:{position:"absolute",top:0,left:10,visibility:"hidden",zIndex:2,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:4,minHeight:25,padding:"2px 8px",border:"1px solid #E2E8F0",borderRadius:16,backgroundColor:"#F8FAFC",boxSizing:"border-box",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)",font:"inherit"}},{children:r(k,n({fontFamily:"Inter",sx:{fontSize:11,fontWeight:500,color:"#475569",whiteSpace:"nowrap"}},{children:[ft.label||"Pages"," Pg: ",ft.index+1]}))})),De&&Si.length>0&&!ft&&r("nav",n({"aria-label":"Review badge navigation",style:{position:"absolute",top:8,right:en||"auto",left:tn||"auto",zIndex:2,display:"flex",alignItems:"center",gap:7,width:128,minHeight:40,padding:"4px 6px",border:"1px solid #CBD5E1",borderRadius:6,backgroundColor:"#FFFFFF",boxSizing:"border-box",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.06)",font:"inherit"}},{children:[o("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",value:null!=Ci?Ci:"-","aria-label":"Review badge number",onChange:function(e){Ri.current=!0,Ei(e.target.value)},style:{width:30,height:28,padding:0,border:"1px solid #A5B4FC",borderRadius:3,color:"#4F46E5",backgroundColor:"#FFFFFF",textAlign:"center",font:"inherit",fontSize:15,outline:"none"}}),r("span",n({"aria-label":"".concat(Si.length," reviews"),style:{flex:1,color:"#4F46E5",fontSize:14,whiteSpace:"nowrap",textAlign:"center"}},{children:["of ",Si.length]})),["previous","next"].map(function(e){var t="previous"===e,i=Pi+(t?-1:1),r=i<0||i>=Si.length;return o("button",n({type:"button","aria-label":"".concat(t?"Previous":"Next"," review badge"),disabled:r,onClick:function(){return Ii(i)},style:{display:"grid",placeItems:"center",width:17,height:28,padding:0,border:0,background:"transparent",color:r?"#C7D2FE":"#4F46E5",cursor:r?"default":"pointer"}},{children:o("svg",n({width:"12",height:"8",viewBox:"0 0 12 8",fill:"none"},{children:o("path",{d:t?"M1 7L6 2L11 7":"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}))}),e)})]})),!ft&&Dn.map(function(e){var t,i,a=Jn===e.id,l=null!==(t=Mi.get(e.id))&&void 0!==t?t:"1A",d=e.review_step.score,u=e.review_step.confidence,s=D(d,u),c="boundary"===e.kind?q(e.review_step,e.segment,Wn.get(_(e.segment))):"label"===e.kind?j(e.review_step,e.segment,Wn.get(_(e.segment))):null,v=null!=c?c:"N/A"===s?s:"".concat(s,"%"),g=!0===(null===(i=e.segment.confidence)||void 0===i?void 0:i.awaiting_llm),p=z(d,u,g),m=Wt.has(e.id);return o(C,n({title:g?"data is being processed":"",arrow:!0},{children:o("span",n({ref:function(n){n?Et.current.set(e.id,n):Et.current.delete(e.id)},style:{position:"absolute",top:0,left:10,visibility:"hidden",display:"inline-flex",cursor:g?"not-allowed":"pointer"}},{children:o("button",n({disabled:g,type:"button","aria-pressed":a,"aria-label":g?"".concat(e.review_step.type," · Page ").concat(e.pageNumber," · Data is being processed"):"".concat(e.review_step.type," · Page ").concat(e.pageNumber),onClick:function(){return hi(e)},style:{cursor:"inherit",display:"flex",alignItems:"center",justifyContent:"space-around",gap:4,width:c?m&&!g?115:90:m&&!g?105:80,minHeight:25,padding:"2px 5px",border:"1px solid ".concat(m&&!g?"#E2E8F0":p.border),borderRadius:16,backgroundColor:m&&!g?"#F8FAFC":p.background,color:m&&!g?"#475569":p.text,font:"inherit",alignContent:"center",boxShadow:"0 1px 2px rgba(16, 24, 40, 0.08)"}},{children:r(k,n({fontFamily:"Inter",sx:{display:"flex",gap:1,alignItems:"center",flexDirection:"row"}},m&&!g?{children:[o("span",n({style:{fontSize:11,fontWeight:500}},{children:l})),r("span",n({style:{display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:"#CBD5E1",strokeWidth:"0.8"})})),o("span",n({style:{fontSize:11,fontWeight:500,marginLeft:"7px",display:"flex",alignItems:"center"}},{children:v}))]})),r("span",n({style:{fontSize:11,fontWeight:500,display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:"#CBD5E1",strokeWidth:"0.8"})})),o("span",n({style:{display:"flex",marginLeft:"7px",alignItems:"center"}},{children:o(x,{height:14,width:14,strokeWidth:2,color:"#16A34A"})}))]}))]}:{children:[o("span",n({style:{fontSize:11,fontWeight:500}},{children:l})),r("span",n({style:{display:"flex",alignItems:"center"}},{children:[o("svg",n({width:"2",height:"14",viewBox:"0 0 1 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:o("path",{d:"M0.399902 0V14",stroke:p.divider,strokeWidth:"0.8"})})),o("span",n({style:{fontSize:11,fontWeight:500,marginLeft:"7px",display:"flex",alignItems:"center"}},{children:v}))]}))]}))}))}))}),e.id)})]}))]})),Lt&&rt&&r(f,n({anchorElement:rt,placement:"bottom-start",offset:{top:8},width:Math.min(At,X),maxWidth:X,heightBuffer:null!=an?an:25},{children:[nt&&o(h,{width:"100%",maxWidth:"100%",score:Lt.review_step.score,reasons:Ht,reason:Lt.review_step.reason,gap:Lt.review_step.gap,onBack:function(){return tt(!1)},onClose:wi}),o("div",n({style:{display:nt?"none":"block"}},{children:Wt.has(Lt.id)?o(I,{width:"100%",maxWidth:"100%",headerName:"page"===Lt.kind?"Page format approved":"Split"===Xt?"Split approved":"Merged"===Xt?"Merge approved":"User approved",headerIcon:"page"===Lt.kind?o(S,{size:18,strokeWidth:2}):"Merged"===Xt?o(P,{size:18,strokeWidth:2}):"Split"===Xt?o(V,{width:18,height:18}):o(x,{size:18,strokeWidth:2}),title:$t,pageNo:"Page ".concat(Lt.segment.start_page,"-").concat(Lt.segment.end_page),summary:gi?o(N,{icon:o(x,{size:14,strokeWidth:2}),title:$t,pageRange:"Page ".concat(Lt.segment.start_page,"-").concat(Lt.segment.end_page),description:null!=vi?vi:null,revertData:gi,confirmDisabled:"page"===Lt.kind?!mi:null==cn||!mi,showDocumentHeader:!1,onRevert:function(){if("page"===Lt.kind){if(!sn||!pi){var e=new Error("SegmentReviewPdfWrapper requires onPageTypeRevert and a classification id to revert a page-type decision.");return null==pn||pn(e,J(Lt)),Promise.reject(e)}return sn({classification_id:pi,human_verdict:"No"},J(Lt))}if(!cn)throw new Error("SegmentReviewPdfWrapper requires onRevert to handle a revert confirmation.");if(!ui)throw new Error("There is no valid revert operation for this review.");var n=di?"boundary":"label"===Lt.kind?"label":"boundary"===Lt.kind?"boundary":null,t=ti(ui.type);if(n&&t!==n)throw new Error("Cannot use ".concat(null!=t?t:"unknown"," revert metadata for this review. Expected ").concat(n,"."));return cn(ui,J(Lt))},onRevertError:function(e){null==pn||pn(e,J(Lt))},onRevertComplete:function(e){var n,t,i,r,o,a;ct(function(){return new Set}),"page"!==Lt.kind&&Ln(function(){return new Map}),Lt.id;var l=null!==(n=gi.previousSegments[0])&&void 0!==n?n:gi.currentSegment,d=null==rt?void 0:rt.getBoundingClientRect(),u=null===(t=Mt.current)||void 0===t?void 0:t.getBoundingClientRect(),s=Math.min(X,Math.max(220,At)),c=null!==(i=null==d?void 0:d.left)&&void 0!==i?i:(null!==(r=null==u?void 0:u.right)&&void 0!==r?r:window.innerWidth-s-8)+8,v=Math.max(8,Math.min(c,window.innerWidth-s-8)),g=null==(null==d?void 0:d.bottom)?Math.max(8,null!==(o=null==u?void 0:u.top)&&void 0!==o?o:8):d.bottom+8;ct(function(){return new Set}),"page"!==Lt.kind&&(Ct.current=null),St(!1),yt({title:"Split"===Xt?"Split reverted":"Merged"===Xt?"Merge reverted":"Approval reverted",description:(null===(a=null==e?void 0:e.message)||void 0===a?void 0:a.trim())||("Split"===Xt?"Pages ".concat(Lt.segment.start_page,"-").concat(Lt.segment.end_page," are now part of “Advice of Award” again. Review the boundary and title to confirm the document."):"Merged"===Xt?"The documents have been separated again. Review their boundaries and titles to confirm them.":"“".concat($t,"” is pending review again. Review the boundary and title to confirm the document.")),segment:l,position:{top:g,left:v,width:s}}),wi()}},Lt.id):void 0,additionalActions:Qt?o(M,{metadata:Qt.metadata,reviewAction:null!==(ke=Lt.segment.review_action)&&void 0!==ke?ke:void 0,startPage:Lt.segment.start_page,endPage:Lt.segment.end_page,title:$t,previousSegmentTitle:Ot,nextSegmentTitle:Dt,disabled:fn||!ln||gt===Lt.id,onConfirm:function(e,n){xi(Qt,e,n)}}):void 0,cognitiveScore:Lt.review_step.score,styles:{root:{borderColor:"#16A34A"},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:"#16A34A"}}},onCognitiveClick:Ut?function(){tt(!0),null==Pn||Pn(J(Lt))}:void 0,onClose:wi}):"boundary"===Lt.kind?o(g,{width:"100%",maxWidth:"100%",title:Lt.segment.label||Lt.segment.title,pageNo:"Page ".concat(Lt.pageNumber),content:null!==(Ce=Lt.review_step.question)&&void 0!==Ce?Ce:null,revertSummary:ci,cognitiveScore:Lt.review_step.score,metadata:Lt.metadata,reviewAction:null!==(Ee=Lt.segment.review_action)&&void 0!==Ee?Ee:void 0,previousSegmentTitle:Ot,nextSegmentTitle:Dt,manualPrompt:null!=on?on:"Set a custom boundary",defaultStartPage:Lt.segment.start_page,defaultEndPage:Lt.segment.end_page,styles:{root:{borderColor:Vt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Vt.text}}},confirmDisabled:fn||!ln||gt===Lt.id,onConfirm:function(e,n,t){t&&m(n.id)&&xi(Lt,n.id,t)},onAdjustManually:function(){return null==Sn?void 0:Sn(J(Lt))},onCognitiveClick:Ut?function(){tt(!0),null==Pn||Pn(J(Lt))}:void 0,onClose:wi},Lt.id):"label"===Lt.kind?o(w,{width:"100%",maxWidth:"100%",title:Lt.metadata.current_label||Lt.segment.label||Lt.segment.title,pageNo:"Pages ".concat(Lt.segment.start_page,"-").concat(Lt.segment.end_page),content:null!==(Re=Lt.review_step.question)&&void 0!==Re?Re:null,revertSummary:ci,cognitiveScore:Lt.review_step.score,metadata:Lt.metadata,styles:{root:{borderColor:Vt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Vt.text}}},confirmDisabled:fn||!dn||gt===Lt.id,confirmationBlocked:zt,confirmationWarning:zt?"Please confirm the boundary before confirming the title.":void 0,onActionConfirm:function(e,n){xi(Lt,e,n)},onAdjustManually:function(){return null==Sn?void 0:Sn(J(Lt))},onCognitiveClick:Ut?function(){tt(!0),null==Pn||Pn(J(Lt))}:void 0,onClose:wi},Lt.id):o(b,{width:"100%",maxWidth:"100%",title:Lt.segment.label||Lt.segment.title,pageNo:"Page ".concat(Lt.pageNumber),content:Lt.review_step.reason,cognitiveScore:Lt.review_step.score,pageType:Lt.metadata.page_type,metadata:Lt.metadata,styles:{root:{borderColor:Vt.cardBorder},header:{"& > .MuiSvgIcon-root, & .MuiTypography-root":{color:Vt.text}}},confirmDisabled:fn||!un||gt===Lt.id,onActionConfirm:function(e,n){xi(Lt,e,n)},onCognitiveClick:Ut?function(){tt(!0),null==Pn||Pn(J(Lt))}:void 0,onClose:wi},Lt.id)}))]})),bt&&o(E,{children:o(R,n({"aria-live":"polite",sx:{position:"fixed",top:bt.position.top,left:bt.position.left,zIndex:1600,width:bt.position.width,maxWidth:"calc(100vw - 16px)",opacity:xt?1:0,transform:xt?"translateY(0)":"translateY(-6px)",transition:"opacity 500ms ease, transform 500ms ease",filter:"drop-shadow(0 12px 24px rgba(15, 23, 42, 0.18))",pointerEvents:xt?"auto":"none"}},{children:o(A,{title:bt.title,description:bt.description,onReview:function(){return bi(bt.segment)}})}))})]}))}export{U as SegmentPdfSpecialZoomLevel,Z as default};
2
2
  //# sourceMappingURL=SegmentReviewPdfWrapper.js.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{SourcesBQCitation,findSourceCitation,parseSourcesBQHref}from"./features/DualCitation/SourceBQDataCompnent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as PromptemonBlockViewer}from"./features/PromptemonBlockViewer/PromptemonBlockViewer.js";export{default as PromptemonViewer}from"./features/PromptemonViewer/PromptemonViewer.js";export{default as SPBAnalysisPanel}from"./features/SPBAnalysisPanel/Spbanalysispanel.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as BPACitationRenderer}from"./features/BPACitationRenderer/BPACitationRenderer.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
1
+ export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{createBoundaryCardOptions,isBoundaryReviewAction}from"./features/SegmentReviewComponents/BoundaryCard.js";import"tslib";import"react/jsx-runtime";import"react";import"@mui/material/Box";import"@mui/material/Popper";import"@mui/material/SvgIcon";export{default as CognitiveIntegrity}from"./features/SegmentReviewComponents/CognitiveIntegrity.js";export{createLabelCheckOptions,isLabelReviewAction}from"./features/SegmentReviewComponents/LabelCheck.js";export{default as PageCheck,isPageCheckAction}from"./features/SegmentReviewComponents/PageCheck.js";export{extractSegmentReviewData}from"./features/SegmentReviewComponents/reviewStepAdapters.js";export{default as RevertCard}from"./features/SegmentReviewComponents/RevertCard.js";export{default as RevertSuccessCard}from"./features/SegmentReviewComponents/RevertSuccessCard.js";export{SegmentPdfSpecialZoomLevel,default as SegmentReviewPdfWrapper}from"./features/SegmentReviewComponents/SegmentReviewPdfWrapper.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{ReviewPanel}from"./features/ReviewPanel/ReviewPanel.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{SourcesBQCitation,findSourceCitation,parseSourcesBQHref}from"./features/DualCitation/SourceBQDataCompnent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as PromptemonBlockViewer}from"./features/PromptemonBlockViewer/PromptemonBlockViewer.js";export{default as PromptemonViewer}from"./features/PromptemonViewer/PromptemonViewer.js";export{default as SPBAnalysisPanel}from"./features/SPBAnalysisPanel/Spbanalysispanel.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as BPACitationRenderer}from"./features/BPACitationRenderer/BPACitationRenderer.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CitationAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationAnchor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EACV,aAA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B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,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;IACf,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;CACxD;AAucD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwNjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CognitiveCompareProps } from "./CognitiveCompareTypes";
2
2
  import { SHARED_MARKDOWN_STYLES } from "./CognitiveCompareConfig";
3
- declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, guidelinesData, isGuidelineMode: isGuidelineModeFromParent, gptWebCitationConfig }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, guidelinesData, gptWebCitationConfig }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export { SHARED_MARKDOWN_STYLES };
5
5
  export default CognitiveCompare;
6
6
  //# sourceMappingURL=CognitiveCompare.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAgClC,QAAA,MAAM,gBAAgB,iZA8BnB,qBAAqB,4CAg/FvB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AA6BlC,QAAA,MAAM,gBAAgB,qWA6BnB,qBAAqB,4CAy7FvB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAe,gBAAgB,CAAC"}
@@ -102,7 +102,7 @@ export interface GptWebCitationConfig {
102
102
  headers?: Record<string, string>;
103
103
  }
104
104
  export interface CognitiveCompareProps {
105
- guidelinesData?: string | Record<string, any> | null;
105
+ guidelinesData?: Record<string, any> | null;
106
106
  gptWebCitationConfig?: GptWebCitationConfig;
107
107
  isGuidelineMode?: boolean;
108
108
  componentHeaderText?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveCompareTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareTypes.ts"],"names":[],"mappings":";AAEA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B,EAAE;QAC1B,OAAO,EAAE;YACP,aAAa,EAAE,MAAM,CAAC;YACtB,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,MAAM,EAAE;YACN,CAAC,GAAG,EAAE,MAAM,GACV,uBAAuB,GACvB;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;aAAE,CAAC;SAC1D,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,qBAAqB,CAAC,EAAE;QACtB,mBAAmB,CAA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AAC,EAAE,KAAK,CAAC,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAA;AAGD,MAAM,MAAM,cAAc,GAAG;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEJ,MAAM,MAAM,SAAS,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,CAC3E,GAAG,EACH,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAChC,CAAC"}
1
+ {"version":3,"file":"CognitiveCompareTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareTypes.ts"],"names":[],"mappings":";AAEA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B,EAAE;QAC1B,OAAO,EAAE;YACP,aAAa,EAAE,MAAM,CAAC;YACtB,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,MAAM,EAAE;YACN,CAAC,GAAG,EAAE,MAAM,GACV,uBAAuB,GACvB;gBAAE,K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SEPARATOR = "::";
63
63
  export declare const isMissingStr: (str: string | undefined | null) => boolean;
64
64
  export declare const hasMeaningfulRedlineTags: (content: unknown) => boolean;
65
65
  export declare const stripRedlineTags: (content: unknown) => string;
66
- export type TextMatchRange = {
67
- start: number;
68
- end: number;
69
- };
70
- export declare const findTextMatchRange: (content: string, highlight: string, ignorePunctuation?: boolean) => TextMatchRange | null;
71
- /**
72
- * Redline highlights can span prose plus one or more Markdown tables. A small
73
- * structural difference in any later row should not prevent the deviation
74
- * badge from receiving an inline anchor. Prefer the complete range, then fall
75
- * back to the first meaningful line that is actually present in the content.
76
- */
77
- export declare const findRedlineTextAnchorRange: (content: string, highlight: string) => TextMatchRange | null;
78
66
  export declare const getLhsDeviationDisplayIndexes: (sections: SectionBlock[], leftDocId: string | undefined, deviationNumberRegistry: Record<string, number>) => Map<string, number>;
79
67
  export declare const extractDeviationScore: (evaluationResult: any, fallbackLabel?: any) => any;
80
68
  export declare const getBentArrowPath: (x1: number, y1: number, x2: number, y2: number, radius?: number) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveComparehelpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveComparehelpers.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEb,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,MAM5C,CAAC;AAGF,eAAO,MAAM,QAAQ,QAAS,OAAO,KAAG,OAKvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,MAAM,WAYhD,CAAC;AAEF,eAAO,MAAM,yBAAyB;aAO3B,YAAY;sBACH,YAAY,EAAE;cACtB,IAAI,MAAM,EAAE,MAAM,CAAC;;;+BA0B9B,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAC3B,YAAY,oBACH,YAAY,EAAE,YASjC,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAA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mB,aACpB,YAAY,EAAE,UAChB,MAAM,KACb,MAAM,GAAG,IAUX,CAAC;AAIF,eAAO,MAAM,oBAAoB,YAAa,WAAW,SAkBxD,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,WAAW,SAiBnD,CAAC;AAEF,eAAO,MAAM,wBAAwB,YAC1B,WAAW,mBACH,WAAW,SAiC7B,CAAC;AAGF,eAAO,MAAM,qBAAqB,YACvB,WAAW,aACT,MAAM,IAAI,SAkBtB,CAAC;AAGF,eAAO,MAAM,aAAa,cACb,WAAW,OACjB,MAAM,YACD,MAAM,IAAI,SAuBrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,WAAW,sBAErB,QAAQ,IAAI,CAmBb,CAAC"}
1
+ {"version":3,"file":"CognitiveComparehelpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveComparehelpers.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEb,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,MAM5C,CAAC;AAGF,eAAO,MAAM,QAAQ,QAAS,OAAO,KAAG,OAKvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,MAAM,WAYhD,CAAC;AAEF,eAAO,MAAM,yBAAyB;aAO3B,YAAY;sBACH,YAAY,EAAE;cACtB,IAAI,MAAM,EAAE,MAAM,CAAC;;;+BA0B9B,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAC3B,YAAY,oBACH,YAAY,EAAE,YASjC,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,SAChC,GAAG,aACE,GAAG,GAAG,GAAG,YACV,OAAO,MAAM,E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uidelinePanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,cAAc,2EAA4E,GAAG,4CA+ClG,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"GuidelinePanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.tsx"],"names":[],"mappings":"AAUA,QAAA,MAAM,cAAc,2EAA4E,GAAG,4CA4DlG,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WebGptPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/WebGptPanel.tsx"],"names":[],"mappings":"AAuCA,UAAU,gBAAgB;IACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,iBAAiB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACrC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CAC7C;AAED,QAAA,MAAM,WAAW,2DAA4D,gBAAgB,4CAmJ5F,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"WebGptPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/WebGptPanel.tsx"],"names":[],"mappings":"AAsDA,UAAU,gBAAgB;IACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,iBAAiB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACrC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CAC7C;AAED,QAAA,MAAM,WAAW,2DAA4D,gBAAgB,4CA2H5F,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,19 +1,6 @@
1
- type LearningGuideline = {
2
- title?: unknown;
3
- instruction_prompt?: unknown;
4
- };
5
- export type GuidelinesData = string | {
6
- learnings_data?: Record<string, LearningGuideline>;
7
- data?: {
8
- artifactData?: {
9
- userStorySnapshot?: unknown[];
10
- };
11
- };
12
- } | null | undefined;
13
1
  export declare const processGuidelinesMarkdown: ({ guidelinesData, targetHighlights, labelColor, }: {
14
- guidelinesData: GuidelinesData;
2
+ guidelinesData: any;
15
3
  targetHighlights?: string[] | undefined;
16
4
  labelColor?: string | undefined;
17
5
  }) => string;
18
- export {};
19
6
  //# sourceMappingURL=processGuidelinesMarkdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"processGuidelinesMarkdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB,MAAM,GACN;IACE,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACnD,IAAI,CAAC,EAAE;QACL,YAAY,CAAC,EAAE;YACb,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC;SAC/B,CAAC;KACH,CAAC;CACH,GACD,IAAI,GACJ,SAAS,CAAC;AA6Fd,eAAO,MAAM,yBAAyB;oBAKpB,cAAc;;;YAwB/B,CAAC"}
1
+ {"version":3,"file":"processGuidelinesMarkdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;oBAKpB,GAAG;;;YA4CpB,CAAC"}
@@ -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;AA2BjD,OAAO,EAAsB,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AA0F3E,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;CAC7C,CAAC;AAEF,QAAA,MAAM,gBAAgB,6FAUnB,qBAAqB,4CA25BvB,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;AA0BjD,OAAO,EAAsB,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAyF3E,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;CAC7C,CAAC;AAEF,QAAA,MAAM,gBAAgB,6FAUnB,qBAAqB,4CAs4BvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SubSectionAccordion.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SubSectionAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AA4B1D,OAAO,EAAsB,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAG1F,UAAU,wBAAwB;IAChC,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtD;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAsoB1D,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"SubSectionAccordion.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SubSectionAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AA2B1D,OAAO,EAAsB,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAE1F,UAAU,wBAAwB;IAChC,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtD;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6mB1D,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"memoizedMarkdown.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/memoizedMarkdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAqBzF,eAAO,MAAM,gBAAgB;aAWlB,MAAM;;cAEL,GAAG;;;;iBAIA,MAAM;;;8CA4rBpB,CAAC"}
1
+ {"version":3,"file":"memoizedMarkdown.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/memoizedMarkdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAezF,eAAO,MAAM,gBAAgB;aAWlB,MAAM;;cAEL,GAAG;;;;iBAIA,MAAM;;;8CA+pBpB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ComparisonRow, SectionBlock, ProposedRuleData, RuleData, ComparisonConfig } from "../CognitiveCompareTypes";
2
- export declare const useCognitiveTreeData: (treeData: Record<string, any> | undefined, maintainRelativeOrder: boolean, deviationData: Record<string, any> | null, resolvedComparisonConfig: ComparisonConfig, enableDeviationSchemaBackwardCompatibility?: boolean, guidelinesData?: string | Record<string, any> | null, isGuidelineModeFromParent?: boolean) => {
2
+ export declare const useCognitiveTreeData: (treeData: Record<string, any> | undefined, maintainRelativeOrder: boolean, deviationData: Record<string, any> | null, resolvedComparisonConfig: ComparisonConfig, enableDeviationSchemaBackwardCompatibility?: boolean, guidelinesData?: Record<string, any> | null) => {
3
3
  isGuidelineMode: boolean;
4
4
  activeProposed: ProposedRuleData;
5
5
  activeVariants: never[] | RuleData[];
@@ -1 +1 @@
1
- {"version":3,"file":"useCompareData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAKrH,eAAO,MAAM,oBAAoB,aACrB,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,yBAClB,OAAO,iBACf,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,4BACf,gBAAgB,+CACE,OAAO,mBAClC,MAAM,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,8BACxB,OAAO;;;;;;;;;;;;;;;;;CA0uBpC,CAAC"}
1
+ {"version":3,"file":"useCompareData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAKrH,eAAO,MAAM,oBAAoB,aACrB,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,yBAClB,OAAO,iBACf,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,4BACf,gBAAgB,+CACE,OAAO,mBAClC,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;;;;;;;;;;;;;;;;;CAotB5C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLinesCalculator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useLinesCalculator.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,kBAAkB,qhCA2C5B,GAAG;;;;YAG6D,MAAM;YAAM,MAAM;WAAK,MAAM;;;YAA7B,MAAM;YAAM,MAAM;WAAK,MAAM;;;;;eAIhC,MAAM;gBAAU,MAAM;;;;;;4BA+2BrC,GAAG;CAiOnD,CAAA"}
1
+ {"version":3,"file":"useLinesCalculator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useLinesCalculator.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,kBAAkB,qhCA2C5B,GAAG;;;;YAG6D,MAAM;YAAM,MAAM;WAAK,MAAM;;;YAA7B,MAAM;YAAM,MAAM;WAAK,MAAM;;;;;eAIhC,MAAM;gBAAU,MAAM;;;;;;4BA+2BrC,GAAG;CAiOnD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSideBySide.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useSideBySide.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,aAAa,ogBAevB,GAAG;;;;;;;;;;;;;sBASgD,MAAM;0BAAoB,MAAM;iBAAW,MAAM;oBAAc,MAAM;cAAQ,MAAM;;;;;;;;mCAe/F,OAAO,OAAO,GAAG,kBAAkB,GAAG;;8BA2I/D,MAAM,GAAG,MAAM,YACV,OAAO;;yBACmC,IAAI;;;CAyPnE,CAAA"}
1
+ {"version":3,"file":"useSideBySide.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useSideBySide.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,aAAa,ogBAevB,GAAG;;;;;;;;;;;;;sBASgD,MAAM;0BAAoB,MAAM;iBAAW,MAAM;oBAAc,MAAM;cAAQ,MAAM;;;;;;;;mCAe/F,OAAO,OAAO,GAAG,kBAAkB,GAAG;;8BA2I/D,MAAM,GAAG,MAAM,YACV,OAAO;;yBACmC,IAAI;;;CAyPnE,CAAA"}
@@ -10,7 +10,6 @@ export type CognitiveInternalgptCoreProps = {
10
10
  previewCallback?: () => void;
11
11
  bodyHeight?: string;
12
12
  disableMaximize?: boolean;
13
- onFullscreenChange?: (isFullscreen: boolean) => void;
14
13
  splitterCustomStyle?: boolean;
15
14
  themeTokens?: CognitiveReasoningThemeTokens;
16
15
  classNames?: CognitiveReasoningClassNames;
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveInternalgptCoreComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAChH,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,wCAAwC,CAAC;AAmBhD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,WAAW,CAAC,EAAE,6BAA6B,CAAC;IAC5C,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC,CAAC;AAiBF,QAAA,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAge9E,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
1
+ {"version":3,"file":"CognitiveInternalgptCoreComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAChH,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,wCAAwC,CAAC;AAmBhD,MAAM,MAAM,6BAA6B,GAAG;IAC1C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,WAAW,CAAC,EAAE,6BAA6B,CAAC;IAC5C,UAAU,CAAC,EAAE,4BAA4B,CAAC;IAC1C,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC,CAAC;AAiBF,QAAA,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAmd9E,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GptWebCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAK9D,OAAO,EAAE,oBAAoB,EAA4I,MAAM,SAAS,CAAC;AAqGzL;;;;;;;;;GASG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwRlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"GptWebCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAK9D,OAAO,EAAE,oBAAoB,EAA4I,MAAM,SAAS,CAAC;AAmGzL;;;;;;;;;GASG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAqQlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -10,8 +10,7 @@ type GptWebCitationImageCitationProps = {
10
10
  skeletonStyles?: IGptWebCitationSkeletonStyles;
11
11
  skeletonVisitLinkStyles?: IGptWebCitationVisitLinkStyles;
12
12
  isFixedHeight?: boolean;
13
- onFullscreenChange?: (isFullscreen: boolean) => void;
14
13
  };
15
- declare const GptWebCitationImageCitation: ({ citationImage, citationUrl, skeletonVisitUrl, showExpandImageButton, iconsConfig, styles: styleOverrides, visitLinkStyles, skeletonStyles, skeletonVisitLinkStyles, isFixedHeight, onFullscreenChange, }: GptWebCitationImageCitationProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const GptWebCitationImageCitation: ({ citationImage, citationUrl, skeletonVisitUrl, showExpandImageButton, iconsConfig, styles: styleOverrides, visitLinkStyles, skeletonStyles, skeletonVisitLinkStyles, isFixedHeight, }: GptWebCitationImageCitationProps) => import("react/jsx-runtime").JSX.Element;
16
15
  export default GptWebCitationImageCitation;
17
16
  //# sourceMappingURL=GptWebCitationImageCitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GptWebCitationImageCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageCitation.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAIjB,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,uBAAuB,CAAC,EAAE,8BAA8B,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;CACtD,CAAC;AAIF,QAAA,MAAM,2BAA2B,+MAY9B,gCAAgC,4CA4JlC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"GptWebCitationImageCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageCitation.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAIjB,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,uBAAuB,CAAC,EAAE,8BAA8B,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAIF,QAAA,MAAM,2BAA2B,2LAW9B,gCAAgC,4CAwIlC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -362,10 +362,6 @@ export interface IGptWebCitationProps {
362
362
  * @default true
363
363
  */
364
364
  showExpandImageButton?: boolean;
365
- /**
366
- * Called when a nested fullscreen viewer opens or closes.
367
- */
368
- onFullscreenChange?: (isFullscreen: boolean) => void;
369
365
  /**
370
366
  * Shows the GPT citation header maximize/expand icon.
371
367
  * When `false`, equivalent to `gptCitation.disableMaximize: true`.
@@ -383,13 +379,6 @@ export interface IGptWebCitationProps {
383
379
  * @default false
384
380
  */
385
381
  isFixedHeight?: boolean;
386
- /**
387
- * When `true`, the component fills the total height available from its parent.
388
- * The parent must provide a resolved height (for example `height: 400px`) and
389
- * should allow flex children to shrink with `min-height: 0`.
390
- * @default false
391
- */
392
- useParentHeight?: boolean;
393
382
  /**
394
383
  * Inline style overrides for GPT and web citation layouts.
395
384
  * See {@link IGptWebCitationStyleOverrides}.