@e-llm-studio/citation 0.0.225 → 0.0.227

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 (98) hide show
  1. package/README.md +90 -26
  2. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  3. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
  4. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
  5. package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js +2 -0
  6. package/dist/cjs/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -0
  7. package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js +2 -0
  8. package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js.map +1 -0
  9. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js +2 -0
  10. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.js.map +1 -0
  11. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.module.css.js +2 -0
  12. package/dist/cjs/features/DualCitation/SourceBQDataCompnent.module.css.js.map +1 -0
  13. package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
  14. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +1 -1
  15. package/dist/cjs/features/ParentCitationComponent/citationTypes.js +2 -0
  16. package/dist/cjs/features/ParentCitationComponent/citationTypes.js.map +1 -0
  17. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  18. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  19. package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
  20. package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
  21. package/dist/cjs/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
  22. package/dist/cjs/hooks/useOnDemandCitationFetch.js +1 -1
  23. package/dist/cjs/index.js +1 -1
  24. package/dist/cjs/service/onDemandApi.js +1 -1
  25. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  26. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
  27. package/dist/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.module.css.js +1 -1
  28. package/dist/features/DualCitation/RuleBookCitationApiComponent.js +2 -0
  29. package/dist/features/DualCitation/RuleBookCitationApiComponent.js.map +1 -0
  30. package/dist/features/DualCitation/RuleBookCitationComponent.js +2 -0
  31. package/dist/features/DualCitation/RuleBookCitationComponent.js.map +1 -0
  32. package/dist/features/DualCitation/SourceBQDataCompnent.js +2 -0
  33. package/dist/features/DualCitation/SourceBQDataCompnent.js.map +1 -0
  34. package/dist/features/DualCitation/SourceBQDataCompnent.module.css.js +2 -0
  35. package/dist/features/DualCitation/SourceBQDataCompnent.module.css.js.map +1 -0
  36. package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js +1 -1
  37. package/dist/features/ParentCitationComponent/ParentCitationComponent.js +1 -1
  38. package/dist/features/ParentCitationComponent/citationTypes.js +2 -0
  39. package/dist/features/ParentCitationComponent/citationTypes.js.map +1 -0
  40. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  41. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  42. package/dist/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
  43. package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
  44. package/dist/features/TextualGuidelines/TextualGuidelines.module.css.js +1 -1
  45. package/dist/hooks/useOnDemandCitationFetch.js +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/service/onDemandApi.js +1 -1
  48. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
  49. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  50. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +4 -0
  51. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -1
  52. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts +2 -0
  53. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +1 -1
  54. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts +162 -0
  55. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.d.ts.map +1 -0
  56. package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts +20 -0
  57. package/dist/types/src/features/DualCitation/RuleBookCitationApiComponent.d.ts.map +1 -0
  58. package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts +31 -0
  59. package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts.map +1 -0
  60. package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts +36 -0
  61. package/dist/types/src/features/DualCitation/SourceBQDataCompnent.d.ts.map +1 -0
  62. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +15 -2
  63. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +1 -1
  64. package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +1 -1
  65. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +5 -1
  66. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -1
  67. package/dist/types/src/features/ParentCitationComponent/DualRuleBookBqCitationTest.d.ts +4 -0
  68. package/dist/types/src/features/ParentCitationComponent/DualRuleBookBqCitationTest.d.ts.map +1 -0
  69. package/dist/types/src/features/ParentCitationComponent/DualRuleBookGptCitationTest.d.ts +4 -0
  70. package/dist/types/src/features/ParentCitationComponent/DualRuleBookGptCitationTest.d.ts.map +1 -0
  71. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +3 -126
  72. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +1 -1
  73. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.types.d.ts +229 -0
  74. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.types.d.ts.map +1 -0
  75. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -7
  76. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +1 -1
  77. package/dist/types/src/features/ParentCitationComponent/citationTypes.d.ts +14 -0
  78. package/dist/types/src/features/ParentCitationComponent/citationTypes.d.ts.map +1 -0
  79. package/dist/types/src/features/RulebookCitations/RuleBookCitation.types.d.ts +40 -0
  80. package/dist/types/src/features/RulebookCitations/RuleBookCitation.types.d.ts.map +1 -0
  81. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -15
  82. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
  83. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +19 -5
  84. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
  85. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts +0 -2
  86. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
  87. package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts +1 -0
  88. package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +1 -1
  89. package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts +13 -1
  90. package/dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts.map +1 -1
  91. package/dist/types/src/features/TextualGuidelines/TextualGuidelines.types.d.ts +81 -0
  92. package/dist/types/src/features/TextualGuidelines/TextualGuidelines.types.d.ts.map +1 -0
  93. package/dist/types/src/hooks/useOnDemandCitationFetch.d.ts.map +1 -1
  94. package/dist/types/src/index.d.ts +4 -0
  95. package/dist/types/src/index.d.ts.map +1 -1
  96. package/dist/types/src/service/onDemandApi.d.ts +1 -1
  97. package/dist/types/src/service/onDemandApi.d.ts.map +1 -1
  98. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,Fragment as t,jsx as o}from"react/jsx-runtime";import{useState as i,useRef as c,useEffect as a}from"react";import{FileText as r,X as l}from"lucide-react";import d from"./Splitter.module.css.js";var s=function(){return n("svg",e({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[o("path",{d:"M0.260742 1.57324L15.4268 10.8262C17.9563 12.3695 19.4999 15.1188 19.5 18.082V37.0273C19.4999 40.16 17.7767 43.0386 15.0156 44.5186L0.236328 52.4404L-0.5 52.835V1.10938L0.260742 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),o("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},u=function(){return n("svg",e({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[o("path",{d:"M1.26074 1.57324L16.4268 10.8262C18.9563 12.3695 20.4999 15.1188 20.5 18.082V37.0273C20.4999 40.16 18.7767 43.0386 16.0156 44.5186L1.23633 52.4404L0.5 52.835V1.10938L1.26074 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),o("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[o("path",{d:"M7.58186 3.15354C7.51731 2.83771 7.06604 2.83771 7.00148 3.15354C6.60544 5.09119 5.09119 6.60544 3.15355 7.00148C2.83771 7.06603 2.83771 7.5173 3.15355 7.58185C5.09119 7.97789 6.60544 9.49215 7.00148 11.4298C7.06604 11.7456 7.51731 11.7456 7.58186 11.4298C7.9779 9.49215 9.49215 7.97789 11.4298 7.58185C11.7456 7.5173 11.7456 7.06603 11.4298 7.00148C9.49215 6.60544 7.9779 5.09119 7.58186 3.15354Z",fill:"#087443"}),o("path",{d:"M2.20669 0.0156637C2.20243 -0.00522128 2.17258 -0.0052212 2.16832 0.0156638C1.94676 1.09964 1.09964 1.94676 0.0156679 2.16831C-0.0052166 2.17258 -0.0052166 2.20242 0.0156679 2.20669C1.09964 2.42825 1.94676 3.27536 2.16832 4.35934C2.17258 4.38022 2.20243 4.38022 2.20669 4.35934C2.42825 3.27536 3.27537 2.42824 4.35934 2.20669C4.38023 2.20242 4.38023 2.17258 4.35934 2.16831C3.27537 1.94676 2.42825 1.09964 2.20669 0.0156637Z",fill:"#087443"})]}))},v=function(){return o("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:o("path",{d:"M3.125 2.75C3.02554 2.75 2.93016 2.78951 2.85983 2.85983C2.78951 2.93016 2.75 3.02554 2.75 3.125V6.125C2.75 6.22446 2.71049 6.31984 2.64017 6.39016C2.56984 6.46049 2.47446 6.5 2.375 6.5C2.27554 6.5 2.18016 6.46049 2.10983 6.39016C2.03951 6.31984 2 6.22446 2 6.125V3.125C2 2.82663 2.11853 2.54048 2.3295 2.3295C2.54048 2.11853 2.82663 2 3.125 2H6.125C6.22446 2 6.31984 2.03951 6.39016 2.10983C6.46049 2.18016 6.5 2.27554 6.5 2.375C6.5 2.47446 6.46049 2.56984 6.39016 2.64017C6.31984 2.71049 6.22446 2.75 6.125 2.75H3.125ZM9.5 2.375C9.5 2.27554 9.53951 2.18016 9.60983 2.10983C9.68016 2.03951 9.77554 2 9.875 2H12.875C13.1734 2 13.4595 2.11853 13.6705 2.3295C13.8815 2.54048 14 2.82663 14 3.125V6.125C14 6.22446 13.9605 6.31984 13.8902 6.39016C13.8198 6.46049 13.7245 6.5 13.625 6.5C13.5255 6.5 13.4302 6.46049 13.3598 6.39016C13.2895 6.31984 13.25 6.22446 13.25 6.125V3.125C13.25 3.02554 13.2105 2.93016 13.1402 2.85983C13.0698 2.78951 12.9745 2.75 12.875 2.75H9.875C9.77554 2.75 9.68016 2.71049 9.60983 2.64017C9.53951 2.56984 9.5 2.47446 9.5 2.375ZM2.375 9.5C2.47446 9.5 2.56984 9.53951 2.64017 9.60983C2.71049 9.68016 2.75 9.77554 2.75 9.875V12.875C2.75 12.9745 2.78951 13.0698 2.85983 13.1402C2.93016 13.2105 3.02554 13.25 3.125 13.25H6.125C6.22446 13.25 6.31984 13.2895 6.39016 13.3598C6.46049 13.4302 6.5 13.5255 6.5 13.625C6.5 13.7245 6.46049 13.8198 6.39016 13.8902C6.31984 13.9605 6.22446 14 6.125 14H3.125C2.82663 14 2.54048 13.8815 2.3295 13.6705C2.11853 13.4595 2 13.1734 2 12.875V9.875C2 9.77554 2.03951 9.68016 2.10983 9.60983C2.18016 9.53951 2.27554 9.5 2.375 9.5ZM13.625 9.5C13.7245 9.5 13.8198 9.53951 13.8902 9.60983C13.9605 9.68016 14 9.77554 14 9.875V12.875C14 13.1734 13.8815 13.4595 13.6705 13.6705C13.4595 13.8815 13.1734 14 12.875 14H9.875C9.77554 14 9.68016 13.9605 9.60983 13.8902C9.53951 13.8198 9.5 13.7245 9.5 13.625C9.5 13.5255 9.53951 13.4302 9.60983 13.3598C9.68016 13.2895 9.77554 13.25 9.875 13.25H12.875C12.9745 13.25 13.0698 13.2105 13.1402 13.1402C13.2105 13.0698 13.25 12.9745 13.25 12.875V9.875C13.25 9.77554 13.2895 9.68016 13.3598 9.60983C13.4302 9.53951 13.5255 9.5 13.625 9.5Z",fill:"#7A5AF8",stroke:"#7A5AF8","stroke-width":"0.5"})}))},C=function(C){var f=C.left,m=C.right,p=C.defaultLeftWidth,g=void 0===p?50:p,w=C.minLeftWidth,N=void 0===w?250:w,x=C.minRightWidth,H=void 0===x?250:x,L=C.className,k=void 0===L?"":L,A=C.height,M=void 0===A?"400px":A,B=C.width,b=void 0===B?"100%":B,z=C.header,F=C.onLeftWidthChange,y=C.openInFullscreen,E=void 0!==y&&y,S=C.onFullscreenClose,V=i(g),D=V[0],R=V[1],O=i(!1),P=O[0],Z=O[1],I=i(!1),T=I[0],W=I[1],j=i(!1),q=j[0],X=j[1],G=i(0),J=G[0],K=G[1],Q=i(0),U=Q[0],Y=Q[1],$=i(E),_=$[0],ee=$[1],ne=c(null),te=c(null),oe=c(null);a(function(){var e=ne.current;e&&(_?(e.showModal(),requestAnimationFrame(function(){if(oe.current){var e=oe.current.getBoundingClientRect().width;Y(e),R(g),W(!1),X(!1)}})):(e.close(),R(g),W(!1),X(!1),null==S||S()))},[_]),a(function(){var e=oe.current;if(e&&_){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){Y(t.contentRect.width)})});return t.observe(e),function(){cancelAnimationFrame(n),t.disconnect()}}},[_]),a(function(){var e=te.current;if(e){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){K(t.contentRect.width)})});return t.observe(e),K(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),t.disconnect()}}},[]);var ie=function(e){e.preventDefault(),Z(!0)};a(function(){var e=function(e){if(P){var n=_?oe.current:te.current;if(n){var t=n.getBoundingClientRect(),o=t.width,i=e.clientX-t.left;if(i>=N&&o-i-4>=H)R(i/o*100),null==F||F(i)}}},n=function(){Z(!1)};return P&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[P,_,N,H,F]);var ce=function(){T?(R(50),W(!1)):W(!0)},ae=function(){q?(R(50),X(!1)):X(!0)},re=_?U:J,le=D/100*re,de=re-le-4,se=_?500:250,ue=q?{flex:1}:{width:"".concat(D,"%")},he=!T&&le<=Math.max(N+10,se),ve=!q&&de<=Math.max(H+10,se),Ce=function(e){return e>=80?d.confidenceScoreHigh:e>=60?d.confidenceScoreMedium:d.confidenceScoreLow},fe="number"==typeof M?"".concat(M,"px"):M,me="number"==typeof b?"".concat(b,"px"):b;return n(t,{children:[n("div",e({ref:te,className:"".concat(d.container," ").concat(d.containerHorizontal," ").concat(k),style:{height:fe,width:me}},{children:[z&&n("div",e({className:d.header},{children:[n("div",e({className:d.headerLeft},{children:[z.showDocIcon&&o(r,{className:d.headerIcon}),o("div",e({className:d.headerTitle},{children:z.title&&o("span",e({className:d.headerTitleText},{children:z.title}))}))]})),n("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&n("div",e({className:"".concat(d.confidenceScore," ").concat(Ce(z.confidenceScore))},{children:[o("div",e({style:{width:"16px",height:"16px"}},{children:o(h,{})})),n("div",{children:[Math.round(z.confidenceScore),"%"]})]})),o("button",e({className:d.fullscreenButton,onClick:function(){return ee(!0)},title:"Open fullscreen"},{children:o(v,{})}))]}))]})),n("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal)},{children:[!T&&o("div",e({className:d.panel,style:ue},{children:f})),T&&o("button",e({onClick:ce,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:o(s,{})})),!T&&!q&&n("div",e({onMouseDown:ie,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(P?d.dividerDragging:d.dividerIdle)},{children:[o("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),he&&o("button",e({onClick:function(e){e.stopPropagation(),ce()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:o(u,{})})),ve&&o("button",e({onClick:function(e){e.stopPropagation(),ae()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:o(s,{})}))]})),!q&&o("div",e({className:d.panel,style:{flex:1}},{children:m})),q&&o("button",e({onClick:ae,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:o(u,{})})),P&&o("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]})),o("dialog",e({ref:ne,className:d.dialogOverlay,onClose:function(){return ee(!1)}},{children:n("div",e({ref:oe,className:d.dialogContent},{children:[z&&n("div",e({className:d.header},{children:[n("div",e({className:d.headerLeft},{children:[z.showDocIcon&&o(r,{className:d.headerIcon}),o("div",e({className:d.headerTitle},{children:z.title&&o(t,{children:o("span",e({className:d.headerTitleText},{children:z.title}))})}))]})),n("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&n("div",e({className:"".concat(d.confidenceScore," ").concat(Ce(z.confidenceScore))},{children:[o("div",e({style:{width:"16px",height:"16px"}},{children:o(h,{})})),n("div",{children:[Math.round(z.confidenceScore),"%"]})]})),o("button",e({className:d.fullscreenButton,onClick:function(){return ee(!1)},title:"Close fullscreen"},{children:o(l,{size:20,color:"#5928ed"})}))]}))]})),n("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal," ").concat(d.dialogContentArea)},{children:[!T&&o("div",e({className:d.panel,style:ue},{children:f})),T&&o("button",e({onClick:ce,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:o(s,{})})),!T&&!q&&n("div",e({onMouseDown:ie,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(P?d.dividerDragging:d.dividerIdle)},{children:[o("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),he&&o("button",e({onClick:function(e){e.stopPropagation(),ce()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:o(u,{})})),ve&&o("button",e({onClick:function(e){e.stopPropagation(),ae()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:o(s,{})}))]})),!q&&o("div",e({className:d.panel,style:{flex:1}},{children:m})),q&&o("button",e({onClick:ae,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:o(u,{})})),P&&o("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]}))}))]})};export{C as default};
1
+ import{__assign as e}from"tslib";import{jsx as n,jsxs as t,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as c,useEffect as a}from"react";import{FileText as r,X as l}from"lucide-react";import d from"./Splitter.module.css.js";var s=function(){return t("svg",e({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[n("path",{d:"M0.260742 1.57324L15.4268 10.8262C17.9563 12.3695 19.4999 15.1188 19.5 18.082V37.0273C19.4999 40.16 17.7767 43.0386 15.0156 44.5186L0.236328 52.4404L-0.5 52.835V1.10938L0.260742 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),n("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},u=function(){return t("svg",e({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[n("path",{d:"M1.26074 1.57324L16.4268 10.8262C18.9563 12.3695 20.4999 15.1188 20.5 18.082V37.0273C20.4999 40.16 18.7767 43.0386 16.0156 44.5186L1.23633 52.4404L0.5 52.835V1.10938L1.26074 1.57324Z",fill:"#F8FAFC",stroke:"#E0E0E0"}),n("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},h=function(){return t("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[n("path",{d:"M7.58186 3.15354C7.51731 2.83771 7.06604 2.83771 7.00148 3.15354C6.60544 5.09119 5.09119 6.60544 3.15355 7.00148C2.83771 7.06603 2.83771 7.5173 3.15355 7.58185C5.09119 7.97789 6.60544 9.49215 7.00148 11.4298C7.06604 11.7456 7.51731 11.7456 7.58186 11.4298C7.9779 9.49215 9.49215 7.97789 11.4298 7.58185C11.7456 7.5173 11.7456 7.06603 11.4298 7.00148C9.49215 6.60544 7.9779 5.09119 7.58186 3.15354Z",fill:"#087443"}),n("path",{d:"M2.20669 0.0156637C2.20243 -0.00522128 2.17258 -0.0052212 2.16832 0.0156638C1.94676 1.09964 1.09964 1.94676 0.0156679 2.16831C-0.0052166 2.17258 -0.0052166 2.20242 0.0156679 2.20669C1.09964 2.42825 1.94676 3.27536 2.16832 4.35934C2.17258 4.38022 2.20243 4.38022 2.20669 4.35934C2.42825 3.27536 3.27537 2.42824 4.35934 2.20669C4.38023 2.20242 4.38023 2.17258 4.35934 2.16831C3.27537 1.94676 2.42825 1.09964 2.20669 0.0156637Z",fill:"#087443"})]}))},v=function(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:n("path",{d:"M3.125 2.75C3.02554 2.75 2.93016 2.78951 2.85983 2.85983C2.78951 2.93016 2.75 3.02554 2.75 3.125V6.125C2.75 6.22446 2.71049 6.31984 2.64017 6.39016C2.56984 6.46049 2.47446 6.5 2.375 6.5C2.27554 6.5 2.18016 6.46049 2.10983 6.39016C2.03951 6.31984 2 6.22446 2 6.125V3.125C2 2.82663 2.11853 2.54048 2.3295 2.3295C2.54048 2.11853 2.82663 2 3.125 2H6.125C6.22446 2 6.31984 2.03951 6.39016 2.10983C6.46049 2.18016 6.5 2.27554 6.5 2.375C6.5 2.47446 6.46049 2.56984 6.39016 2.64017C6.31984 2.71049 6.22446 2.75 6.125 2.75H3.125ZM9.5 2.375C9.5 2.27554 9.53951 2.18016 9.60983 2.10983C9.68016 2.03951 9.77554 2 9.875 2H12.875C13.1734 2 13.4595 2.11853 13.6705 2.3295C13.8815 2.54048 14 2.82663 14 3.125V6.125C14 6.22446 13.9605 6.31984 13.8902 6.39016C13.8198 6.46049 13.7245 6.5 13.625 6.5C13.5255 6.5 13.4302 6.46049 13.3598 6.39016C13.2895 6.31984 13.25 6.22446 13.25 6.125V3.125C13.25 3.02554 13.2105 2.93016 13.1402 2.85983C13.0698 2.78951 12.9745 2.75 12.875 2.75H9.875C9.77554 2.75 9.68016 2.71049 9.60983 2.64017C9.53951 2.56984 9.5 2.47446 9.5 2.375ZM2.375 9.5C2.47446 9.5 2.56984 9.53951 2.64017 9.60983C2.71049 9.68016 2.75 9.77554 2.75 9.875V12.875C2.75 12.9745 2.78951 13.0698 2.85983 13.1402C2.93016 13.2105 3.02554 13.25 3.125 13.25H6.125C6.22446 13.25 6.31984 13.2895 6.39016 13.3598C6.46049 13.4302 6.5 13.5255 6.5 13.625C6.5 13.7245 6.46049 13.8198 6.39016 13.8902C6.31984 13.9605 6.22446 14 6.125 14H3.125C2.82663 14 2.54048 13.8815 2.3295 13.6705C2.11853 13.4595 2 13.1734 2 12.875V9.875C2 9.77554 2.03951 9.68016 2.10983 9.60983C2.18016 9.53951 2.27554 9.5 2.375 9.5ZM13.625 9.5C13.7245 9.5 13.8198 9.53951 13.8902 9.60983C13.9605 9.68016 14 9.77554 14 9.875V12.875C14 13.1734 13.8815 13.4595 13.6705 13.6705C13.4595 13.8815 13.1734 14 12.875 14H9.875C9.77554 14 9.68016 13.9605 9.60983 13.8902C9.53951 13.8198 9.5 13.7245 9.5 13.625C9.5 13.5255 9.53951 13.4302 9.60983 13.3598C9.68016 13.2895 9.77554 13.25 9.875 13.25H12.875C12.9745 13.25 13.0698 13.2105 13.1402 13.1402C13.2105 13.0698 13.25 12.9745 13.25 12.875V9.875C13.25 9.77554 13.2895 9.68016 13.3598 9.60983C13.4302 9.53951 13.5255 9.5 13.625 9.5Z",fill:"#7A5AF8",stroke:"#7A5AF8","stroke-width":"0.5"})}))},C=function(C){var f=C.left,m=C.right,p=C.defaultLeftWidth,g=void 0===p?50:p,w=C.minLeftWidth,N=void 0===w?250:w,x=C.minRightWidth,H=void 0===x?250:x,L=C.className,k=void 0===L?"":L,A=C.height,M=void 0===A?"400px":A,B=C.width,b=void 0===B?"100%":B,z=C.header,y=C.onLeftWidthChange,F=C.openInFullscreen,E=void 0!==F&&F,S=C.onFullscreenClose,V=C.fullscreenOnly,D=void 0!==V&&V,R=i(g),O=R[0],P=R[1],Z=i(!1),I=Z[0],T=Z[1],W=i(!1),j=W[0],q=W[1],X=i(!1),G=X[0],J=X[1],K=i(0),Q=K[0],U=K[1],Y=i(0),$=Y[0],_=Y[1],ee=i(D||E),ne=ee[0],te=ee[1],oe=c(null),ie=c(null),ce=c(null);a(function(){var e=oe.current;e&&(ne?(e.showModal(),requestAnimationFrame(function(){if(ce.current){var e=ce.current.getBoundingClientRect().width;_(e),P(g),q(!1),J(!1)}})):(e.close(),P(g),q(!1),J(!1),null==S||S()))},[ne]),a(function(){var e=ce.current;if(e&&ne){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){_(t.contentRect.width)})});return t.observe(e),function(){cancelAnimationFrame(n),t.disconnect()}}},[ne]),a(function(){var e=ie.current;if(e){var n,t=new ResizeObserver(function(e){var t=e[0];n=requestAnimationFrame(function(){U(t.contentRect.width)})});return t.observe(e),U(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),t.disconnect()}}},[]);var ae=function(e){e.preventDefault(),T(!0)};a(function(){var e=function(e){if(I){var n=ne?ce.current:ie.current;if(n){var t=n.getBoundingClientRect(),o=t.width,i=e.clientX-t.left;if(i>=N&&o-i-4>=H)P(i/o*100),null==y||y(i)}}},n=function(){T(!1)};return I&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[I,ne,N,H,y]);var re=function(){j?(P(50),q(!1)):q(!0)},le=function(){G?(P(50),J(!1)):J(!0)},de=ne?$:Q,se=O/100*de,ue=de-se-4,he=ne?500:250,ve=G?{flex:1}:{width:"".concat(O,"%")},Ce=!j&&se<=Math.max(N+10,he),fe=!G&&ue<=Math.max(H+10,he),me=function(e){return e>=80?d.confidenceScoreHigh:e>=60?d.confidenceScoreMedium:d.confidenceScoreLow},pe="number"==typeof M?"".concat(M,"px"):M,ge="number"==typeof b?"".concat(b,"px"):b,we=n("dialog",e({ref:oe,className:d.dialogOverlay,onClose:function(){return te(!1)}},{children:t("div",e({ref:ce,className:d.dialogContent},{children:[z&&t("div",e({className:d.header},{children:[t("div",e({className:d.headerLeft},{children:[z.showDocIcon&&n(r,{className:d.headerIcon}),n("div",e({className:d.headerTitle},{children:z.title&&n(o,{children:n("span",e({className:d.headerTitleText},{children:z.title}))})}))]})),t("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&t("div",e({className:"".concat(d.confidenceScore," ").concat(me(z.confidenceScore))},{children:[n("div",e({style:{width:"16px",height:"16px"}},{children:n(h,{})})),t("div",{children:[Math.round(z.confidenceScore),"%"]})]})),n("button",e({className:d.fullscreenButton,onClick:function(){return te(!1)},title:"Close fullscreen"},{children:n(l,{size:20,color:"#5928ed"})}))]}))]})),t("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal," ").concat(d.dialogContentArea)},{children:[!j&&n("div",e({className:d.panel,style:ve},{children:f})),j&&n("button",e({onClick:re,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:n(s,{})})),!j&&!G&&t("div",e({onMouseDown:ae,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(I?d.dividerDragging:d.dividerIdle)},{children:[n("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),Ce&&n("button",e({onClick:function(e){e.stopPropagation(),re()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:n(u,{})})),fe&&n("button",e({onClick:function(e){e.stopPropagation(),le()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:n(s,{})}))]})),!G&&n("div",e({className:d.panel,style:{flex:1}},{children:m})),G&&n("button",e({onClick:le,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:n(u,{})})),I&&n("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]}))}));return D?we:t(o,{children:[t("div",e({ref:ie,className:"".concat(d.container," ").concat(d.containerHorizontal," ").concat(k),style:{height:pe,width:ge}},{children:[z&&t("div",e({className:d.header},{children:[t("div",e({className:d.headerLeft},{children:[z.showDocIcon&&n(r,{className:d.headerIcon}),n("div",e({className:d.headerTitle},{children:z.title&&n("span",e({className:d.headerTitleText},{children:z.title}))}))]})),t("div",e({className:d.headerActions},{children:[void 0!==z.confidenceScore&&t("div",e({className:"".concat(d.confidenceScore," ").concat(me(z.confidenceScore))},{children:[n("div",e({style:{width:"16px",height:"16px"}},{children:n(h,{})})),t("div",{children:[Math.round(z.confidenceScore),"%"]})]})),n("button",e({className:d.fullscreenButton,onClick:function(){return te(!0)},title:"Open fullscreen"},{children:n(v,{})}))]}))]})),t("div",e({className:"".concat(d.contentArea," ").concat(d.contentAreaHorizontal)},{children:[!j&&n("div",e({className:d.panel,style:ve},{children:f})),j&&n("button",e({onClick:re,className:"".concat(d.expandButton," ").concat(d.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:n(s,{})})),!j&&!G&&t("div",e({onMouseDown:ae,className:"".concat(d.divider," ").concat(d.dividerHorizontal," ").concat(I?d.dividerDragging:d.dividerIdle)},{children:[n("div",{className:"".concat(d.dividerHitArea," ").concat(d.dividerHitAreaHorizontal)}),Ce&&n("button",e({onClick:function(e){e.stopPropagation(),re()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse left panel"},{children:n(u,{})})),fe&&n("button",e({onClick:function(e){e.stopPropagation(),le()},onMouseDown:function(e){return e.stopPropagation()},className:d.collapseButton,title:"Collapse right panel"},{children:n(s,{})}))]})),!G&&n("div",e({className:d.panel,style:{flex:1}},{children:m})),G&&n("button",e({onClick:le,className:"".concat(d.expandButton," ").concat(d.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:n(u,{})})),I&&n("div",{className:"".concat(d.dragOverlay," ").concat(d.dragOverlayHorizontal)})]}))]})),we]})};export{C as default};
2
2
  //# sourceMappingURL=SplitterCitationsComponent.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as t,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as o,useEffect as a}from"react";import{ChevronUp as l,ChevronDown as s,Maximize2 as d,X as c}from"lucide-react";import h from"./TextualGuidelines.module.css.js";import u from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";var g=function(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"")},f=function(e,n){var t=e.map(g).filter(Boolean),i=n.map(g).filter(Boolean);if(0===t.length||0===i.length)return 0;var r=new Set(t),o=new Set(i),a=0;return r.forEach(function(e){o.has(e)&&a++}),2*a/(r.size+o.size)},p=function(n){var i=0;return n.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(n){var r="bold-".concat(i);return i+=n.length,n.startsWith("**")&&n.endsWith("**")||n.startsWith("__")&&n.endsWith("__")?t("strong",e({className:h.boldText},{children:n.slice(2,-2)}),r):n})},x=function(g){g.index;var x=g.TextualGuideLines,m=g.HighlightedWords,v=g.InternalGptReasoningData,I=g.headerTitle,b=void 0===I?"Textual Guidelines":I,y=g.useVariantHighlight,w=void 0!==y&&y,C=g.fuzzyThreshold,k=void 0===C?.8:C,T=r(0),N=T[0],z=T[1],_=r(new Set),L=_[0],S=_[1],G=o([]),V=[];m.forEach(function(e){(function(e,n,t){void 0===t&&(t=.8);var i=n.trim().split(/\s+/).filter(Boolean);if(0===i.length)return[];for(var r,o=[],a=/\S+/g;null!==(r=a.exec(e));)o.push({word:r[0],start:r.index,end:r.index+r[0].length});for(var l=i.length,s=[],d=Math.max(1,l-1);d<=l+2;d++)for(var c=0;c<=o.length-d;c++){var h=o.slice(c,c+d),u=f(i,h.map(function(e){return e.word}));u>=t&&s.push({startIndex:h[0].start,endIndex:h[h.length-1].end,score:u})}if(0===s.length)return[];s.sort(function(e,n){return n.score-e.score});for(var g=[],p=function(e){g.some(function(n){return e.startIndex<n.endIndex&&e.endIndex>n.startIndex})||g.push(e)},x=0,m=s;x<m.length;x++)p(m[x]);return g})(x,e,k).forEach(function(e){return V.push(e)})}),V.sort(function(e,n){return e.startIndex-n.startIndex});for(var D=[],E=0,H=V;E<H.length;E++){var M=H[E],R=D.at(-1);(!R||M.startIndex>=R.endIndex)&&D.push(M)}var W=D.map(function(e,n){return{text:x.substring(e.startIndex,e.endIndex),startIndex:e.startIndex,endIndex:e.endIndex,highlightIndex:n}}),A=W.length;a(function(){A>0&&(z(0),setTimeout(function(){var e;null===(e=G.current[0])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50))},[A]);var B,j,F,K,P=function(e){S(function(n){var t=new Set(n);return t.has(e)?t.delete(e):t.add(e),t})};return n("div",e({className:h.expandedContainer,style:{marginLeft:"1rem",display:"flex",flexDirection:"column",height:"100%",border:"none"}},{children:[n("div",e({className:h.expandedHeader,style:{backgroundColor:"white",border:"none"}},{children:[t("span",e({className:h.headerTitle,style:{backgroundColor:"white"}},{children:b})),t("div",e({className:h.headerActions},{children:A>=1&&n(i,{children:[n("span",e({style:{fontSize:"12px",color:"#888"}},{children:[N+1," / ",A]})),t("button",e({onClick:function(){if(0!==A){var e=N>0?N-1:A-1;z(e),setTimeout(function(){var n;null===(n=G.current[e])||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:N<=0,style:{padding:"2px 4px",cursor:N<=0?"not-allowed":"pointer",opacity:N<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:t(l,{size:14,color:"#64748b"})})),t("button",e({onClick:function(){if(0!==A){var e=N<A-1?N+1:0;z(e),setTimeout(function(){var n;null===(n=G.current[e])||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:N>=A-1,style:{padding:"2px 4px",cursor:N>=A-1?"not-allowed":"pointer",opacity:N>=A-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white",display:"flex",alignItems:"center"}},{children:t(s,{size:14,color:"#64748b"})}))]})}))]})),t("div",e({className:h.contentArea,style:{flex:1,maxHeight:"none",height:"auto",overflowY:"auto",border:"1px solid #eee",borderRadius:"4px",padding:"1rem"}},{children:t("div",e({className:h.contentInner},{children:(B=x.split("\n"),j=0,F=0,K=[],B.forEach(function(i){var r=j,o=j+i.length;j+=i.length+1;var a=/^(\s*)(-|\*|\d+\.)\s+/.exec(i),g=/^(Title|Description|Training-basis):\s*/i.exec(i);g&&(F=0),a&&(F+=1);var f=!!a,m=!!g,I=a?a[0].length:0,b=r+I,y=W.filter(function(e){return e.startIndex<o&&e.endIndex>b}),C="line-".concat(r),k=function(i,r,o){m?K.push(t("span",e({className:h.headerLine},{children:i}),r)):f?K.push(n("span",e({className:h.listItemLine,style:{paddingLeft:a[1]?"1rem":"0"}},{children:[o&&n("span",e({className:h.listCounter},{children:[F,"."]})),t("span",{children:i})]}),r)):K.push(t("span",e({className:h.blockLine},{children:i}),r))};if(0===y.length)k(p(i.substring(I)),C,!0);else{for(var T=b,z=[],_=!0,S=function(i){var r=Math.max(i.startIndex,b),a=Math.min(i.endIndex,o);if(r>=a)return"continue";if(r>T){var g=x.substring(T,r);z.push(t("span",{children:p(g)},"t-".concat(T)))}var f=i.highlightIndex===N,m=w?f?"".concat(h.highlight," ").concat(h.highlightActiveVariant):h.highlightVariant:f?"".concat(h.highlight," ").concat(h.highlightActive):h.highlight,I=L.has(i.highlightIndex);if(z.push(n("span",e({ref:function(e){G.current[i.highlightIndex]=e},className:m,role:"button",tabIndex:0,onClick:function(){return P(i.highlightIndex)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||P(i.highlightIndex)},style:{display:"inline-flex",alignItems:"center",gap:"2px",cursor:"pointer"}},{children:[x.substring(r,a),t(I?l:s,{size:12,style:{flexShrink:0}})]}),"h-".concat(i.highlightIndex))),T=a,I&&v[i.highlightIndex]){var y=_?C:"".concat(C,"-chunk-").concat(r);k(z,y,_),_=!1,z=[],K.push(t("div",e({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:t(u,{item:e(e({},v[i.highlightIndex]),{confidence_score:void 0}),headerTitle:"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:s,ChevronUpIcon:l,MaximizeIcon:d,CloseIcon:c},bodyHeight:"100%",disableMaximize:!0,index:i.highlightIndex})}),"expanded-".concat(i.highlightIndex)))}},V=0,D=y;V<D.length;V++)S(D[V]);if(T<o&&z.push(t("span",{children:p(x.substring(T,o))},"t-end-".concat(o))),z.length>0||_){var E=_?C:"".concat(C,"-tail");k(z,E,_)}}}),K)}))}))]}))};export{x as default};
1
+ import{__assign as n}from"tslib";import{jsxs as e,jsx as i,Fragment as t}from"react/jsx-runtime";import{useState as l,useRef as o,useEffect as a}from"react";import{ChevronUp as h,ChevronDown as r,Maximize2 as c,X as s,Loader2 as d}from"lucide-react";import g from"./TextualGuidelines.module.css.js";import u from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";var v=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(Boolean).join(" ")},m=function(n){return n.toLowerCase().replace(/[^a-z0-9]/g,"")},x=function(n,e){var i=n.map(m).filter(Boolean),t=e.map(m).filter(Boolean);if(0===i.length||0===t.length)return 0;var l=new Set(i),o=new Set(t),a=0;return l.forEach(function(n){o.has(n)&&a++}),2*a/(l.size+o.size)},f=function(e){var t=0;return e.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(e){var l="bold-".concat(t);return t+=e.length,e.startsWith("**")&&e.endsWith("**")||e.startsWith("__")&&e.endsWith("__")?i("strong",n({className:g.boldText},{children:e.slice(2,-2)}),l):e})},I=function(m){m.index;var I=m.TextualGuideLines,p=m.HighlightedWords,b=m.InternalGptReasoningData,y=m.headerTitle,C=void 0===y?"Textual Guidelines":y,N=m.IgptHeaderTitle,T=void 0===N?"GPT - Gemini 3.1 Flash Lite":N,L=m.useVariantHighlight,k=void 0!==L&&L,w=m.fuzzyThreshold,A=void 0===w?.8:w,B=m.onAccordionToggle,z=m.isInternalGptReasoningLoading,V=void 0!==z&&z,G=m.themeTokens,_=m.classNames,R=m.styles,E=l(0),M=E[0],D=E[1],H=l(new Set),P=H[0],S=H[1],W=o([]),j=[];p.forEach(function(n){(function(n,e,i){void 0===i&&(i=.8);var t=e.trim().split(/\s+/).filter(Boolean);if(0===t.length)return[];for(var l,o=[],a=/\S+/g;null!==(l=a.exec(n));)o.push({word:l[0],start:l.index,end:l.index+l[0].length});for(var h=t.length,r=[],c=Math.max(1,h-1);c<=h+2;c++)for(var s=0;s<=o.length-c;s++){var d=o.slice(s,s+c),g=x(t,d.map(function(n){return n.word}));g>=i&&r.push({startIndex:d[0].start,endIndex:d[d.length-1].end,score:g})}if(0===r.length)return[];r.sort(function(n,e){return e.score-n.score});for(var u=[],v=function(n){u.some(function(e){return n.startIndex<e.endIndex&&n.endIndex>e.startIndex})||u.push(n)},m=0,f=r;m<f.length;m++)v(f[m]);return u})(I,n,A).forEach(function(n){return j.push(n)})}),j.sort(function(n,e){return n.startIndex-e.startIndex});for(var F=[],K=0,U=j;K<U.length;K++){var q=U[K],J=F.at(-1);(!J||q.startIndex>=J.endIndex)&&F.push(q)}var O=F.map(function(n,e){return{text:I.substring(n.startIndex,n.endIndex),startIndex:n.startIndex,endIndex:n.endIndex,highlightIndex:e}}),Q=O.length;a(function(){Q>0&&(D(0),setTimeout(function(){var n;null===(n=W.current[0])||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},50))},[Q]);var X,Y,Z,$,nn=function(n,e){S(function(i){var t=new Set(i),l=!t.has(n);return t.has(n)?t.delete(n):t.add(n),null==B||B({highlightIndex:n,phrase:e,isExpanded:l}),t})};return e("div",n({className:v(g.expandedContainer,null==_?void 0:_.container),style:n(n({},G),null==R?void 0:R.container)},{children:[e("div",n({className:v(g.expandedHeader,null==_?void 0:_.header),style:null==R?void 0:R.header},{children:[i("span",n({className:v(g.headerTitle,null==_?void 0:_.headerTitle),style:null==R?void 0:R.headerTitle},{children:C})),i("div",n({className:v(g.headerActions,null==_?void 0:_.headerActions),style:null==R?void 0:R.headerActions},{children:Q>=1&&e(t,{children:[e("span",n({className:v(g.navCounter,null==_?void 0:_.navCounter),style:null==R?void 0:R.navCounter},{children:[M+1," / ",Q]})),i("button",n({onClick:function(){if(0!==Q){var n=M>0?M-1:Q-1;D(n),setTimeout(function(){var e;null===(e=W.current[n])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:M<=0,className:v(g.navButton,null==_?void 0:_.navButtonPrev),style:null==R?void 0:R.navButtonPrev},{children:i(h,{size:14,className:g.navButtonIcon})})),i("button",n({onClick:function(){if(0!==Q){var n=M<Q-1?M+1:0;D(n),setTimeout(function(){var e;null===(e=W.current[n])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:M>=Q-1,className:v(g.navButton,null==_?void 0:_.navButtonNext),style:null==R?void 0:R.navButtonNext},{children:i(r,{size:14,className:g.navButtonIcon})}))]})}))]})),i("div",n({className:v(g.contentArea,null==_?void 0:_.contentArea),style:null==R?void 0:R.contentArea},{children:i("div",n({className:v(g.contentInner,null==_?void 0:_.contentInner),style:null==R?void 0:R.contentInner},{children:(X=I.split("\n"),Y=0,Z=0,$=[],X.forEach(function(t){var l=Y,o=Y+t.length;Y+=t.length+1;var a=/^(\s*)(-|\*|\d+\.)\s+/.exec(t),m=/^(Title|Description|Training-basis):\s*/i.exec(t);m&&(Z=0),a&&(Z+=1);var x=!!a,p=!!m,y=a?a[0].length:0,C=l+y,N=O.filter(function(n){return n.startIndex<o&&n.endIndex>C}),L="line-".concat(l),w=function(t,l,o,h){p?$.push(i("span",n({className:v(g.headerLine,null==_?void 0:_.headerLine),style:null==R?void 0:R.headerLine},{children:t}),l)):x?$.push(e("span",n({className:v(g.listItemLine,null==_?void 0:_.listItemLine),style:n({paddingLeft:a[1]?"1rem":"0"},null==R?void 0:R.listItemLine)},{children:[o&&e("span",n({className:v(g.listCounter,null==_?void 0:_.listCounter),style:null==R?void 0:R.listCounter},{children:[Z,"."]})),i("span",{children:t})]}),l)):$.push(i("span",n({className:v(g.blockLine,null==_?void 0:_.blockLine),style:null==R?void 0:R.blockLine},{children:t}),l))},A=x&&1===N.length&&N[0].startIndex<=C&&N[0].endIndex>=o;if(0===N.length)w(f(t.substring(y)),L,!0);else if(A){var B=N[0],z=B.highlightIndex===M,G=P.has(B.highlightIndex),E=k?z?"".concat(g.highlightBlockRow," ").concat(g.highlightActiveVariant):"".concat(g.highlightBlockRow," ").concat(g.highlightVariantRow):z?"".concat(g.highlightBlockRow," ").concat(g.highlightActive):g.highlightBlockRow;$.push(e("span",n({ref:function(n){W.current[B.highlightIndex]=n},className:"".concat(g.listItemLine," ").concat(E),role:"button",tabIndex:0,onClick:function(){return nn(B.highlightIndex,B.text)},onKeyDown:function(n){"Enter"!==n.key&&" "!==n.key||nn(B.highlightIndex,B.text)},style:{paddingLeft:a[1]?"1rem":"0"}},{children:[e("span",n({className:g.listCounter},{children:[Z,"."]})),i("span",{children:f(I.substring(C,o))}),i(G?h:r,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}})]}),L)),G&&b[B.highlightIndex]?$.push(i("div",n({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:i(u,{item:n(n({},b[B.highlightIndex]),{confidence_score:void 0}),headerTitle:T||"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:r,ChevronUpIcon:h,MaximizeIcon:c,CloseIcon:s},bodyHeight:"100%",disableMaximize:!0,index:B.highlightIndex})}),"expanded-".concat(B.highlightIndex))):G&&V&&$.push(e("div",n({className:g.loadingContainer},{children:[i(d,{size:16,className:g.spinnerIcon}),i("span",{children:"Loading..."})]}),"loading-".concat(B.highlightIndex)))}else{var D=C,H=[],S=!0,j=N[0],F=j.highlightIndex===M;k?F?"".concat(g.highlight," ").concat(g.highlightActiveVariant):g.highlightVariant:F?"".concat(g.highlight," ").concat(g.highlightActive):g.highlight,x&&j.startIndex;for(var K=function(t){var l=Math.max(t.startIndex,C),a=Math.min(t.endIndex,o);if(l>=a)return"continue";if(l>D){var m=I.substring(D,l);H.push(i("span",{children:f(m)},"t-".concat(D)))}var x=t.highlightIndex===M,p=k?x?v(g.highlight,g.highlightActiveVariant,null==_?void 0:_.highlight,null==_?void 0:_.highlightActiveVariant):v(g.highlightVariant,null==_?void 0:_.highlightVariant):x?v(g.highlight,g.highlightActive,null==_?void 0:_.highlight,null==_?void 0:_.highlightActive):v(g.highlight,null==_?void 0:_.highlight),y=k?x?n(n({},null==R?void 0:R.highlight),null==R?void 0:R.highlightActiveVariant):n({},null==R?void 0:R.highlightVariant):x?n(n({},null==R?void 0:R.highlight),null==R?void 0:R.highlightActive):n({},null==R?void 0:R.highlight),N=P.has(t.highlightIndex);if(H.push(e("span",n({ref:function(n){W.current[t.highlightIndex]=n},className:p,role:"button",tabIndex:0,onClick:function(){return nn(t.highlightIndex,t.text)},onKeyDown:function(n){"Enter"!==n.key&&" "!==n.key||nn(t.highlightIndex,t.text)},style:n({display:"inline-flex",alignItems:"center",gap:"2px",cursor:"pointer"},y)},{children:[I.substring(l,a),i(N?h:r,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}})]}),"h-".concat(t.highlightIndex))),D=a,N&&b[t.highlightIndex]){var A=S?L:"".concat(L,"-chunk-").concat(l);w(H,A,S),S=!1,H=[],$.push(i("div",n({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:i(u,{item:n(n({},b[t.highlightIndex]),{confidence_score:void 0}),headerTitle:T||"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:r,ChevronUpIcon:h,MaximizeIcon:c,CloseIcon:s},bodyHeight:"100%",disableMaximize:!0,index:t.highlightIndex})}),"expanded-".concat(t.highlightIndex)))}else N&&V&&(A=S?L:"".concat(L,"-chunk-").concat(l),w(H,A,S),S=!1,H=[],$.push(e("div",n({className:g.loadingContainer},{children:[i(d,{size:16,className:g.spinnerIcon}),i("span",{children:"Loading..."})]}),"loading-".concat(t.highlightIndex))))},U=0,q=N;U<q.length;U++)K(q[U]);if(D<o&&H.push(i("span",{children:f(I.substring(D,o))},"t-end-".concat(o))),H.length>0||S){var J=S?L:"".concat(L,"-tail");w(H,J,S)}}}),$)}))}))]}))};export{I as default};
2
2
  //# sourceMappingURL=TextualGuideLinesComponent.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"TextualGuidelines-module_container__RJDOE",itemRow:"TextualGuidelines-module_itemRow__kQWzv",indexNumber:"TextualGuidelines-module_indexNumber__tprYt",textContent:"TextualGuidelines-module_textContent__3JD9T",paraphraseButton:"TextualGuidelines-module_paraphraseButton__FuN0v",paraphraseText:"TextualGuidelines-module_paraphraseText__o5VEv",paraphraseStar:"TextualGuidelines-module_paraphraseStar__omUYz",chevronIcon:"TextualGuidelines-module_chevronIcon__jxUNm",chevronIconRotated:"TextualGuidelines-module_chevronIconRotated__oyLRq",expandedContainer:"TextualGuidelines-module_expandedContainer__ku2Qy",expandedHeader:"TextualGuidelines-module_expandedHeader__5OOd1",headerTitle:"TextualGuidelines-module_headerTitle__6vpFm",headerActions:"TextualGuidelines-module_headerActions__tAYsZ",navigationContainer:"TextualGuidelines-module_navigationContainer__DAz7T",navButton:"TextualGuidelines-module_navButton__wpCGR",navIcon:"TextualGuidelines-module_navIcon__Aa93S",navCounter:"TextualGuidelines-module_navCounter__MbQnG",confidenceBadge:"TextualGuidelines-module_confidenceBadge__ue2t4",confidenceStar:"TextualGuidelines-module_confidenceStar__vucHk",confidenceScore:"TextualGuidelines-module_confidenceScore__rK7mq",maximizeButton:"TextualGuidelines-module_maximizeButton__Lg43k",maximizeIcon:"TextualGuidelines-module_maximizeIcon__RETCs",contentArea:"TextualGuidelines-module_contentArea__2k4vh",contentInner:"TextualGuidelines-module_contentInner__2uMSz",footer:"TextualGuidelines-module_footer__AQG-E",trainingTitle:"TextualGuidelines-module_trainingTitle__HH--J",trainingTitleLink:"TextualGuidelines-module_trainingTitleLink__s7Oqw",modalDialog:"TextualGuidelines-module_modalDialog__OtQxY",modalContainer:"TextualGuidelines-module_modalContainer__sEVUZ",modalHeader:"TextualGuidelines-module_modalHeader__BN8z5",modalHeaderTitle:"TextualGuidelines-module_modalHeaderTitle__gJp9R",modalHeaderActions:"TextualGuidelines-module_modalHeaderActions__oupri",modalNavContainer:"TextualGuidelines-module_modalNavContainer__UTxad",modalNavButton:"TextualGuidelines-module_modalNavButton__DLNmC",closeButton:"TextualGuidelines-module_closeButton__hkkeO",closeIcon:"TextualGuidelines-module_closeIcon__qhupP",modalContent:"TextualGuidelines-module_modalContent__wzOBu",modalContentInner:"TextualGuidelines-module_modalContentInner__Txziz",modalFooter:"TextualGuidelines-module_modalFooter__jkbjh",modalFooterSource:"TextualGuidelines-module_modalFooterSource__9PLRg",blockLine:"TextualGuidelines-module_blockLine__f-gTN",headerLine:"TextualGuidelines-module_headerLine__Ic1ja",listItemLine:"TextualGuidelines-module_listItemLine__2E-57",listCounter:"TextualGuidelines-module_listCounter__Ws3UU",boldText:"TextualGuidelines-module_boldText__vZBdP",highlight:"TextualGuidelines-module_highlight__CGXvE",highlightActive:"TextualGuidelines-module_highlightActive__--Ns5",highlightActiveVariant:"TextualGuidelines-module_highlightActiveVariant__6gPK9",highlightVariant:"TextualGuidelines-module_highlightVariant__7YZ7W",highlightButton:"TextualGuidelines-module_highlightButton__zjZxQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".TextualGuidelines-module_container__RJDOE{display:flex;flex-direction:column;gap:.5rem}.TextualGuidelines-module_itemRow__kQWzv{align-items:flex-start;display:flex;font-size:.875rem;gap:.5rem}.TextualGuidelines-module_indexNumber__tprYt{color:#475467;font-weight:500}.TextualGuidelines-module_textContent__3JD9T{color:#475467;flex:1;max-width:none}.TextualGuidelines-module_paraphraseButton__FuN0v{align-items:center;background:#0000;border:none;border-radius:.375rem;cursor:pointer;display:inline-flex;gap:.25rem;justify-content:flex-start;padding:.125rem .375rem}.TextualGuidelines-module_paraphraseText__o5VEv{color:#2563eb;font-weight:500;text-align:start}.TextualGuidelines-module_paraphraseStar__omUYz{color:#2563eb;padding-right:.25rem}.TextualGuidelines-module_chevronIcon__jxUNm{color:#2563eb;height:1rem;transition:transform .2s;width:1rem}.TextualGuidelines-module_chevronIconRotated__oyLRq{transform:rotate(180deg)}.TextualGuidelines-module_expandedContainer__ku2Qy{border:solid #e5e7eb;border-radius:.5rem;border-width:1px 1px 2px;margin-left:1.5rem;margin-top:.5rem;overflow:hidden}.TextualGuidelines-module_expandedHeader__5OOd1{align-items:center;background-color:#f2f4f7;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;padding:.25rem .75rem}.TextualGuidelines-module_headerTitle__6vpFm{font-size:.875rem;font-weight:400}.TextualGuidelines-module_headerActions__tAYsZ{align-items:center;display:flex;gap:.5rem}.TextualGuidelines-module_navigationContainer__DAz7T{align-items:center;background-color:#fff;border:1px solid #e5e7eb;border-radius:.5rem;display:flex;padding:.25rem}.TextualGuidelines-module_navButton__wpCGR{align-items:center;background:#0000;border:none;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;padding:0;transition:background-color .2s}.TextualGuidelines-module_navButton__wpCGR:hover{background-color:#f3f4f6}.TextualGuidelines-module_navIcon__Aa93S{color:#6b7280;height:1.25rem;width:1.25rem}.TextualGuidelines-module_navCounter__MbQnG{color:#4b5563;font-size:.875rem;min-width:2.25rem;text-align:center}.TextualGuidelines-module_confidenceBadge__ue2t4{align-items:center;background-color:#f0fdf4;border:2px solid #3ac894;border-radius:9999px;display:inline-flex;gap:.25rem;padding:.25rem .5rem}.TextualGuidelines-module_confidenceStar__vucHk{color:#059669;font-size:.75rem}.TextualGuidelines-module_confidenceScore__rK7mq{color:#059669;font-size:.875rem;font-weight:600}.TextualGuidelines-module_maximizeButton__Lg43k{align-items:center;background:#0000;border:none;border-radius:.25rem;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:background-color .2s}.TextualGuidelines-module_maximizeButton__Lg43k:hover{background-color:#e5e7eb}.TextualGuidelines-module_maximizeIcon__RETCs{color:#6b7280;height:1.25rem;width:1.25rem}.TextualGuidelines-module_contentArea__2k4vh{font-size:.875rem;max-height:11rem;overflow-y:auto;padding:.5rem .75rem;scroll-behavior:smooth}.TextualGuidelines-module_contentInner__2uMSz{line-height:1.5rem}.TextualGuidelines-module_footer__AQG-E{align-items:center;background-color:#f2f4f7;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end}.TextualGuidelines-module_trainingTitle__HH--J{font-size:.875rem;font-style:italic;font-weight:300}.TextualGuidelines-module_trainingTitleLink__s7Oqw{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-size:.8rem;font-weight:600;gap:.25rem}.TextualGuidelines-module_modalDialog__OtQxY{background:#0000;border:none;left:50%;margin:0;max-height:none;max-width:none;overflow:visible;padding:0;position:fixed;top:50%;transform:translate(-50%,-50%)}.TextualGuidelines-module_modalDialog__OtQxY::backdrop{background-color:#0006}.TextualGuidelines-module_modalContainer__sEVUZ{background-color:#fff;border-radius:.75rem;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-height:80vh;max-width:900px;overflow:hidden;width:80vw}.TextualGuidelines-module_modalHeader__BN8z5{align-items:center;background-color:#f2f4f7;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;padding:.75rem .5rem .75rem 1rem;width:100%}.TextualGuidelines-module_modalHeaderTitle__gJp9R{font-size:1rem;font-weight:500}.TextualGuidelines-module_modalHeaderActions__oupri{align-items:center;display:flex;gap:.5rem}.TextualGuidelines-module_modalNavContainer__UTxad{align-items:center;background-color:#f3f4f6;border:1px solid #e5e7eb;border-radius:.5rem;display:flex;padding:.25rem}.TextualGuidelines-module_modalNavButton__DLNmC{align-items:center;background:#0000;border:none;border-radius:9999px;cursor:pointer;display:flex;justify-content:center;padding:0;transition:background-color .2s}.TextualGuidelines-module_modalNavButton__DLNmC:hover{background-color:#e5e7eb}.TextualGuidelines-module_closeButton__hkkeO{align-items:center;background:#0000;border:none;border-radius:.25rem;cursor:pointer;display:flex;justify-content:center;padding:.25rem;transition:background-color .2s}.TextualGuidelines-module_closeButton__hkkeO:hover{background-color:#e5e7eb}.TextualGuidelines-module_closeIcon__qhupP{color:#4b5563;height:1.25rem;width:1.25rem}.TextualGuidelines-module_modalContent__wzOBu{flex:1;font-size:.875rem;overflow-y:auto;padding:.75rem 1rem;scroll-behavior:smooth}.TextualGuidelines-module_modalContentInner__Txziz{line-height:1.75rem}.TextualGuidelines-module_modalFooter__jkbjh{justify-content:flex-end;padding:.5rem 1rem}.TextualGuidelines-module_modalFooterSource__9PLRg,.TextualGuidelines-module_modalFooter__jkbjh{align-items:center;background-color:#f2f4f7;border-top:1px solid #e5e7eb;display:flex;flex-shrink:0}.TextualGuidelines-module_modalFooterSource__9PLRg{justify-content:flex-start;padding:1rem}.TextualGuidelines-module_blockLine__f-gTN{display:block}.TextualGuidelines-module_headerLine__Ic1ja{display:block;font-weight:400}.TextualGuidelines-module_listItemLine__2E-57{display:block}.TextualGuidelines-module_listCounter__Ws3UU{display:inline-block;font-weight:500;text-align:left;width:1.5rem}.TextualGuidelines-module_boldText__vZBdP{font-weight:600}.TextualGuidelines-module_highlight__CGXvE{background-color:#fef08a;border-radius:.25rem;padding:0 .125rem;transition:all .2s}.TextualGuidelines-module_highlightActive__--Ns5{background-color:#fde047;border:1px solid #eab308;box-shadow:0 1px 2px 0 #0000000d}.TextualGuidelines-module_highlightActiveVariant__6gPK9{background-color:#e0e7ff;border:1px solid #5c75f4;box-shadow:0 1px 2px 0 #0000000d;color:#6366f1;font-weight:500}.TextualGuidelines-module_highlightVariant__7YZ7W{background-color:#eef2ff;border-radius:.25rem;color:#6366f1;font-weight:500;padding:0 .125rem;transition:all .2s}.TextualGuidelines-module_highlightButton__zjZxQ{border:none;cursor:pointer;display:inline;font:inherit}"));const i=document.head||document.getElementsByTagName("head")[0]||document.documentElement;i&&i.appendChild(e)}();export{e as default};
1
+ var e={expandedContainer:"TextualGuidelines-module_expandedContainer__ku2Qy",expandedHeader:"TextualGuidelines-module_expandedHeader__5OOd1",headerTitle:"TextualGuidelines-module_headerTitle__6vpFm",headerActions:"TextualGuidelines-module_headerActions__tAYsZ",navCounter:"TextualGuidelines-module_navCounter__MbQnG",navButton:"TextualGuidelines-module_navButton__wpCGR",navButtonIcon:"TextualGuidelines-module_navButtonIcon__urm3b",contentArea:"TextualGuidelines-module_contentArea__2k4vh",contentInner:"TextualGuidelines-module_contentInner__2uMSz",blockLine:"TextualGuidelines-module_blockLine__f-gTN",headerLine:"TextualGuidelines-module_headerLine__Ic1ja",listItemLine:"TextualGuidelines-module_listItemLine__2E-57",listCounter:"TextualGuidelines-module_listCounter__Ws3UU",highlightBlockRow:"TextualGuidelines-module_highlightBlockRow__SH9zT",highlightVariantRow:"TextualGuidelines-module_highlightVariantRow__rh6pM",boldText:"TextualGuidelines-module_boldText__vZBdP",loadingContainer:"TextualGuidelines-module_loadingContainer__QbqYw",spinnerIcon:"TextualGuidelines-module_spinnerIcon__a8skc",spin:"TextualGuidelines-module_spin__ZXbNj",highlight:"TextualGuidelines-module_highlight__CGXvE",highlightActive:"TextualGuidelines-module_highlightActive__--Ns5",highlightVariant:"TextualGuidelines-module_highlightVariant__7YZ7W",highlightActiveVariant:"TextualGuidelines-module_highlightActiveVariant__6gPK9",highlightButton:"TextualGuidelines-module_highlightButton__zjZxQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".TextualGuidelines-module_expandedContainer__ku2Qy{background-color:var(--tg-container-bg,#0000);border:none;display:flex;flex-direction:column;height:100%;margin-left:var(--tg-container-margin-left,1rem)}.TextualGuidelines-module_expandedHeader__5OOd1{align-items:center;background-color:var(--tg-header-bg,#fff);border:var(--tg-header-border,none);display:flex;justify-content:space-between;padding:var(--tg-header-padding,.25rem .75rem)}.TextualGuidelines-module_headerTitle__6vpFm{background-color:var(--tg-header-title-bg,#fff);color:var(--tg-header-title-color,inherit);font-size:var(--tg-header-title-font-size,.875rem);font-weight:var(--tg-header-title-font-weight,400)}.TextualGuidelines-module_headerActions__tAYsZ{align-items:center;display:flex;gap:.5rem}.TextualGuidelines-module_navCounter__MbQnG{color:var(--tg-nav-counter-color,#888);font-size:var(--tg-nav-counter-font-size,12px)}.TextualGuidelines-module_navButton__wpCGR{align-items:center;background:var(--tg-nav-button-bg,#fff);border:1px solid var(--tg-nav-button-border,#ddd);border-radius:var(--tg-nav-button-border-radius,3px);cursor:pointer;display:flex;padding:2px 4px}.TextualGuidelines-module_navButton__wpCGR:disabled{cursor:not-allowed;opacity:.4}.TextualGuidelines-module_navButtonIcon__urm3b{color:var(--tg-nav-button-icon-color,#64748b)}.TextualGuidelines-module_contentArea__2k4vh{background-color:var(--tg-content-bg,#0000);border:1px solid var(--tg-content-border,#eee);border-radius:var(--tg-content-border-radius,4px);color:var(--tg-content-text-color,inherit);flex:1;height:auto;max-height:none;overflow-y:auto;padding:var(--tg-content-padding,1rem)}.TextualGuidelines-module_contentInner__2uMSz{line-height:var(--tg-content-line-height,1.5rem)}.TextualGuidelines-module_blockLine__f-gTN{display:block}.TextualGuidelines-module_headerLine__Ic1ja{display:block;font-weight:var(--tg-header-line-font-weight,400)}.TextualGuidelines-module_listItemLine__2E-57{display:block}.TextualGuidelines-module_listCounter__Ws3UU{display:inline-block;font-weight:var(--tg-list-counter-font-weight,500);text-align:left;width:var(--tg-list-counter-width,1.5rem)}.TextualGuidelines-module_highlightBlockRow__SH9zT{background-color:#fef08a;border-radius:.375rem;cursor:pointer;margin:.125rem 0;padding:.375rem .5rem;transition:all .2s}.TextualGuidelines-module_highlightVariantRow__rh6pM{background-color:#eef2ff;border-radius:.375rem;color:#6366f1;cursor:pointer;font-weight:500;margin:.125rem 0;padding:.375rem .5rem;transition:all .2s}.TextualGuidelines-module_boldText__vZBdP{font-weight:var(--tg-bold-text-font-weight,600)}.TextualGuidelines-module_loadingContainer__QbqYw{align-items:center;color:#6b7280;display:flex;font-size:.875rem;gap:.5rem;margin-bottom:.5rem;margin-top:.5rem;padding:.75rem 1rem}.TextualGuidelines-module_spinnerIcon__a8skc{animation:TextualGuidelines-module_spin__ZXbNj 1s linear infinite}@keyframes TextualGuidelines-module_spin__ZXbNj{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.TextualGuidelines-module_highlight__CGXvE{background-color:var(--tg-highlight-bg,#fef08a);border-radius:var(--tg-highlight-border-radius,.25rem);color:var(--tg-highlight-color,inherit);padding:0 .125rem;transition:all .2s}.TextualGuidelines-module_highlightActive__--Ns5{background-color:var(--tg-highlight-active-bg,#fde047);border:1px solid var(--tg-highlight-active-border,#eab308);box-shadow:var(--tg-highlight-active-shadow,0 1px 2px 0 #0000000d);color:var(--tg-highlight-active-color,inherit)}.TextualGuidelines-module_highlightVariant__7YZ7W{background-color:var(--tg-highlight-variant-bg,#eef2ff);border-radius:var(--tg-highlight-border-radius,.25rem);box-decoration-break:clone;-webkit-box-decoration-break:clone;color:var(--tg-highlight-variant-color,#6366f1);font-weight:500;padding:0 .125rem;transition:all .2s}.TextualGuidelines-module_highlightActiveVariant__6gPK9{background-color:var(--tg-highlight-variant-active-bg,#e0e7ff);border:1px solid var(--tg-highlight-variant-active-border,#5c75f4);box-shadow:0 1px 2px 0 #0000000d;color:var(--tg-highlight-variant-active-color,#6366f1);font-weight:500}.TextualGuidelines-module_highlightButton__zjZxQ{border:none;cursor:pointer;display:inline;font:inherit}"));const i=document.head||document.getElementsByTagName("head")[0]||document.documentElement;i&&i.appendChild(e)}();export{e as default};
2
2
  //# sourceMappingURL=TextualGuidelines.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as n,__generator as i}from"tslib";import{useMemo as t}from"react";import{useQuery as o}from"@tanstack/react-query";import{fetchOnDemandCitation as a}from"../service/onDemandApi.js";var e=function(n,i,t){var o;return Array.isArray(n)?Array.isArray(i)&&0!==i.length?Number.isNaN(t)?(console.warn("[findCitation] citationNumber is NaN"),null):null!==(o=n.find(function(n){var o,a=function(n){var i,t,o,a,e;if(null==n)return console.warn("[getCitationType] received null or undefined citation"),"";var r=null!==(e=null!==(a=null!==(t=null===(i=null==n?void 0:n.customMetaData)||void 0===i?void 0:i.type)&&void 0!==t?t:null===(o=null==n?void 0:n.customMetadata)||void 0===o?void 0:o.type)&&void 0!==a?a:null==n?void 0:n.type)&&void 0!==e?e:"";return r||console.warn("[getCitationType] citation has no resolvable type field",n),r}(n);return(null===(o=function(n){var i;return null==n?(console.warn("[getCitationNumber] received null or undefined citation"),""):(null==n.citation_number&&console.warn("[getCitationNumber] citation is missing citation_number field",n),null!==(i=null==n?void 0:n.citation_number)&&void 0!==i?i:"")}(n))||void 0===o?void 0:o.toString())===t.toString()&&i.some(function(n){return null==a?void 0:a.includes(n)})}))&&void 0!==o?o:null:(console.warn("[findCitation] citationTypes is empty or falsy",i),null):(console.warn("[findCitation] citations is not an array",n),null)},r=function(r){var l=r.msg,c=r.citationType,u=r.citationNumber,d=r.enabled,s=void 0!==d&&d,v=r.accessToken,f=r.baseUrl,_=r.orgName,m=r.citationAssistantProcessingName,y=r.citationAgentName,h=(null==l?void 0:l.requestId)||(null==l?void 0:l.id)||"",g=t(function(){return function(n){switch(n){case"artifact_chunks":return["artifact_chunks","scanned_doc_citation","scanned_doc_citations"];case"rai_artifact_citation":return["rai_artifact_citation","rai_artifact_citations"];case"json_chunks":return["json_chunks"];case"scanned_doc_citation":return["scanned_doc_citation","scanned_doc_citations","artifact_chunks"];case"scanned_doc_citations":return["scanned_doc_citations","scanned_doc_citation","artifact_chunks"];default:return[n]}}(c)},[c]),p=function(){switch(c){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";default:return c}}(),C=(null==l?void 0:l.isEcgPayloadActive)?t(function(){return["onDemandCitationFetch",h,p,null==l?void 0:l.customCitationId]},[h,p,null==l?void 0:l.customCitationId]):t(function(){return["onDemandCitationFetch",h,p,u]},[h,p,u]),b=t(function(){return e(null==l?void 0:l.citations,g,u)},[null==l?void 0:l.citations,g,u]),N=Boolean(s&&h&&p&&f&&_&&!Number.isNaN(u)&&!b),w=v,A=!0===(null==l?void 0:l.isStreamEnd),k=o({queryKey:C,queryFn:function(){return n(void 0,void 0,void 0,function(){var n,t,o,e,r,c,d;return i(this,function(i){switch(i.label){case 0:return[4,a(h,p,u,null!==(t=null==l?void 0:l.content)&&void 0!==t?t:"",w,f,null!=m?m:"",_,null!=y?y:"",null!==(o=null==l?void 0:l.isEcgPayloadActive)&&void 0!==o&&o,null!==(e=null==l?void 0:l.ecg_agent_name)&&void 0!==e?e:"",null!==(r=null==l?void 0:l.customCitationId)&&void 0!==r?r:"",null!==(c=null==l?void 0:l.plan_id)&&void 0!==c?c:"")];case 1:if((n=i.sent()).error||!n.responseData)throw new Error((null===(d=n.error)||void 0===d?void 0:d.errorMessage)||"Failed to fetch on-demand citation");return[2,n.responseData]}})})},enabled:N&&A&&Boolean(null==l?void 0:l.content),staleTime:1/0,cacheTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,retry:!1}),F=t(function(){var n,i,t,o,a,r,c,d=null!==(t=null===(i=null===(n=k.data)||void 0===n?void 0:n.result)||void 0===i?void 0:i.citations)&&void 0!==t?t:[];return Array.isArray(d)&&0!==d.length?(null==l?void 0:l.customCitationId)?null!==(a=null!==(o=d.find(function(n){var i,t,o=null!==(t=null!==(i=null==n?void 0:n.title)&&void 0!==i?i:null==n?void 0:n.display_name)&&void 0!==t?t:"";return"string"==typeof o&&o.includes(l.customCitationId)}))&&void 0!==o?o:d[0])&&void 0!==a?a:null:null!==(c=null!==(r=e(d,g,u))&&void 0!==r?r:d[0])&&void 0!==c?c:null:null},[null==l?void 0:l.customCitationId,u,g,k.data]);return{citation:null!=b?b:F,isFetching:k.isFetching,isLoading:k.isLoading,isComplete:k.isSuccess,status:k.status,refetch:k.refetch}};export{r as useOnDemandCitationFetch};
1
+ import{__awaiter as n,__generator as i}from"tslib";import{useMemo as t}from"react";import{useQuery as o}from"@tanstack/react-query";import{fetchOnDemandCitation as a}from"../service/onDemandApi.js";var e=function(n,i,t){var o;return Array.isArray(n)?Array.isArray(i)&&0!==i.length?Number.isNaN(t)?(console.warn("[findCitation] citationNumber is NaN"),null):null!==(o=n.find(function(n){var o,a=function(n){var i,t,o,a,e;if(null==n)return console.warn("[getCitationType] received null or undefined citation"),"";var l=null!==(e=null!==(a=null!==(t=null===(i=null==n?void 0:n.customMetaData)||void 0===i?void 0:i.type)&&void 0!==t?t:null===(o=null==n?void 0:n.customMetadata)||void 0===o?void 0:o.type)&&void 0!==a?a:null==n?void 0:n.type)&&void 0!==e?e:"";return l||console.warn("[getCitationType] citation has no resolvable type field",n),l}(n);return(null===(o=function(n){var i;return null==n?(console.warn("[getCitationNumber] received null or undefined citation"),""):(null==n.citation_number&&console.warn("[getCitationNumber] citation is missing citation_number field",n),null!==(i=null==n?void 0:n.citation_number)&&void 0!==i?i:"")}(n))||void 0===o?void 0:o.toString())===t.toString()&&i.some(function(n){return null==a?void 0:a.includes(n)})}))&&void 0!==o?o:null:(console.warn("[findCitation] citationTypes is empty or falsy",i),null):(console.warn("[findCitation] citations is not an array",n),null)},l=function(l){var r=l.msg,c=l.citationType,u=l.citationNumber,d=l.enabled,s=void 0!==d&&d,v=l.accessToken,f=l.baseUrl,_=l.orgName,m=l.citationAssistantProcessingName,h=l.citationAgentName,y=(null==r?void 0:r.requestId)||(null==r?void 0:r.id)||"",g=t(function(){return function(n){switch(n){case"artifact_chunks":return["artifact_chunks","scanned_doc_citation","scanned_doc_citations"];case"rai_artifact_citation":return["rai_artifact_citation","rai_artifact_citations"];case"json_chunks":return["json_chunks"];case"scanned_doc_citation":return["scanned_doc_citation","scanned_doc_citations","artifact_chunks"];case"scanned_doc_citations":return["scanned_doc_citations","scanned_doc_citation","artifact_chunks"];default:return[n]}}(c)},[c]),p=function(){switch(c){case"artifact_chunks":case"scanned_doc_citations":return"scanned_doc_citation";case"rai_artifact_citation":return"rai_artifact_citation";default:return c}}(),C=(null==r?void 0:r.isEcgPayloadActive)?t(function(){return["onDemandCitationFetch",y,p,null==r?void 0:r.customCitationId]},[y,p,null==r?void 0:r.customCitationId]):t(function(){return["onDemandCitationFetch",y,p,u]},[y,p,u]),b=t(function(){return e(null==r?void 0:r.citations,g,u)},[null==r?void 0:r.citations,g,u]),N=Boolean(s&&y&&p&&f&&_&&!Number.isNaN(u)&&!b),w=v,A=!0===(null==r?void 0:r.isStreamEnd),k=o({queryKey:C,queryFn:function(){return n(void 0,void 0,void 0,function(){var n,t,o,e,l,c,d,s;return i(this,function(i){switch(i.label){case 0:return[4,a(y,p,u,null!==(t=null==r?void 0:r.content)&&void 0!==t?t:"",w,f,null!=m?m:"",_,null!=h?h:"",null!==(o=null==r?void 0:r.isEcgPayloadActive)&&void 0!==o&&o,null!==(e=null==r?void 0:r.ecg_agent_name)&&void 0!==e?e:"",null!==(l=null==r?void 0:r.customCitationId)&&void 0!==l?l:"",null!==(c=null==r?void 0:r.plan_id)&&void 0!==c?c:"",null!==(d=null==r?void 0:r.ui_chat_history)&&void 0!==d?d:void 0)];case 1:if((n=i.sent()).error||!n.responseData)throw new Error((null===(s=n.error)||void 0===s?void 0:s.errorMessage)||"Failed to fetch on-demand citation");return[2,n.responseData]}})})},enabled:N&&A&&Boolean(null==r?void 0:r.content),staleTime:1/0,cacheTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,retry:!1}),F=t(function(){var n,i,t,o,a,l,c,d=null!==(t=null===(i=null===(n=k.data)||void 0===n?void 0:n.result)||void 0===i?void 0:i.citations)&&void 0!==t?t:[];return Array.isArray(d)&&0!==d.length?(null==r?void 0:r.customCitationId)?null!==(a=null!==(o=d.find(function(n){var i,t,o=null!==(t=null!==(i=null==n?void 0:n.title)&&void 0!==i?i:null==n?void 0:n.display_name)&&void 0!==t?t:"";return"string"==typeof o&&o.includes(r.customCitationId)}))&&void 0!==o?o:d[0])&&void 0!==a?a:null:null!==(c=null!==(l=e(d,g,u))&&void 0!==l?l:d[0])&&void 0!==c?c:null:null},[null==r?void 0:r.customCitationId,u,g,k.data]);return{citation:null!=b?b:F,isFetching:k.isFetching,isLoading:k.isLoading,isComplete:k.isSuccess,status:k.status,refetch:k.refetch}};export{l as useOnDemandCitationFetch};
2
2
  //# sourceMappingURL=useOnDemandCitationFetch.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{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 GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as ParentCitationComponent}from"./features/ParentCitationComponent/ParentCitationComponent.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{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 GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as ParentCitationComponent}from"./features/ParentCitationComponent/ParentCitationComponent.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,2 +1,2 @@
1
- import{__awaiter as e,__generator as r,__assign as t}from"tslib";import n from"axios";import{apiCache as s}from"./apicache.service.js";import{NetworkErrorType as o}from"../types/onDemandApi.types.js";export{NetworkErrorType}from"../types/onDemandApi.types.js";var a=72e5,i=function(n,s,o,a,i,c,u,l,p,d,E,m,g){return e(void 0,void 0,void 0,function(){var e,i,v,R;return r(this,function(r){return e="artifact_chunks"===s||"scanned_doc_citation"===s?"artifact_chunks":s,i=d?m:"".concat(e,"_").concat(o),[2,f(v="post",R="/api/chat/chatResponse",{baseURL:c,data:{name:u||"citationsprocessing",organizationName:l,prompt:"",useAgent:{agent_name:p||"ProcessCitationsAgent",arguments:t(t({citation_type:s,is_primary_agent_request:!1},d&&{check_possible_citation_payload:!1}),{ui_request_body:t(t({llm_formatted_response:a,request_id:n,max_concurrent_citations:10,citation_id:i},d&&E&&{ecg_agent_name:E}),d&&g&&{plan_id:g})})}},config:{headers:{"Content-Type":"application/json"},withCredentials:!0},errorMessage:"Failed to fetch on-demand citation",cacheOption:{key:"".concat(v,":").concat(R,":onDemandCitation:").concat(n,":").concat(s,":").concat(d?m:o)},shouldCache:function(e){var r;return Array.isArray(null===(r=null==e?void 0:e.result)||void 0===r?void 0:r.citations)&&Boolean(e.result.citations[0])}})]})})},c=function(e){if(e&&"object"==typeof e){var r=e;return"string"==typeof r.message?r.message:"string"==typeof r.errorMessage?r.errorMessage:"string"==typeof r.error?r.error:r.error&&"object"==typeof r.error&&"string"==typeof r.error.message?r.error.message:"string"==typeof r.details?r.details:r}},u=function(t){return e(void 0,void 0,void 0,function(){var e;return r(this,function(r){if(n.isAxiosError(t)){if("ECONNABORTED"===(e=t).code)return[2,{type:o.TIMEOUT,message:"The request took too long to complete. Please try again.",originalError:t}];if(e.message.includes("net::ERR_NETWORK_CHANGED")||e.message.includes("net::ERR_INTERNET_DISCONNECTED")||e.message.includes("net::ERR_NAME_NOT_RESOLVED"))return[2,{type:o.INTERNET_DISCONNECTED,message:"Internet connection issue detected. Please check your network.",originalError:t}];if(e.message.includes("Network Error")||"ERR_NETWORK"===e.code||e.message.includes("net::ERR_CONNECTION_REFUSED")||e.message.includes("net::ERR_EMPTY_RESPONSE"))return[2,{type:o.SERVER_UNREACHABLE,message:"Unable to connect to server. The service may be down or unreachable.",originalError:t}];if(e.response&&e.response.status>=500)return[2,{type:o.SERVER_ERROR,message:"Service Unavailable. Server error (".concat(e.response.status,")."),status:e.response.status,originalError:t}];if(e.response&&e.response.status>=400&&e.response.status<500)return[2,{type:o.SERVER_ERROR,message:c(e.response.data)||"Request failed with status code ".concat(e.response.status),status:e.response.status,originalError:t}]}return[2,{type:o.UNKNOWN_ERROR,message:"An unexpected error occurred. Please try again later.",originalError:t}]})})},l=function(t,s){void 0===s&&(s=18e4);var o=n.create({baseURL:t,timeout:s});return o.interceptors.request.use(function(t){return e(void 0,void 0,void 0,function(){return r(this,function(e){return[2,t]})})},function(t){return e(void 0,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return[4,u(t)];case 1:return e=r.sent(),[2,Promise.reject(e)]}})})}),o.interceptors.response.use(function(e){return e},function(t){return e(void 0,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return[4,u(t)];case 1:return e=r.sent(),console.error("API Request Failed:",e),[2,Promise.reject(e)]}})})}),o},p=function(e,r,t){return"".concat(e,":").concat(r,":").concat(JSON.stringify(t||{}))},d=l(),E=function(n,s,a){return e(void 0,void 0,void 0,function(){var e,i,c,p,E,f,m;return r(this,function(r){switch(r.label){case 0:switch(r.trys.push([0,13,,15]),e=(null==a?void 0:a.baseURL)?l(a.baseURL):d,c=(i=a||{}).data,p=i.config,E=void 0,n.toLowerCase()){case"get":return[3,1];case"post":return[3,3];case"put":return[3,5];case"patch":return[3,7];case"delete":return[3,9]}return[3,11];case 1:return[4,e.get(s,p)];case 2:case 4:case 6:case 8:case 10:return E=r.sent(),[3,12];case 3:return[4,e.post(s,c,p)];case 5:return[4,e.put(s,c,p)];case 7:return[4,e.patch(s,c,p)];case 9:return f=t(t({},p),{data:c}),[4,e.delete(s,f)];case 11:throw new Error("Unsupported method: ".concat(n));case 12:return[2,{responseData:E.data,error:null}];case 13:return(m=r.sent()).type&&Object.values(o).includes(m.type)?[2,{responseData:null,error:m}]:[4,u(m)];case 14:return[2,{responseData:null,error:r.sent()}];case 15:return[2]}})})},f=function(n,i,c){return e(void 0,void 0,void 0,function(){var e,u,l,d,f,m,g,v,R,h,_,y,N,O;return r(this,function(r){switch(r.label){case 0:return u=(e=c||{}).data,l=e.params,d=e.config,f=e.errorMessage,m=e.baseURL,g=e.cacheOption,v=e.shouldCache,R=null!==(O=null==g?void 0:g.ttl)&&void 0!==O?O:a,h=(null==g?void 0:g.key)||p(n,i,l),(null==g?void 0:g.forceRefresh)||(null==g?void 0:g.skipCache)?[3,2]:[4,s.get(h)];case 1:if(_=r.sent())return[2,{responseData:_.data,error:null,cacheMeta:{isFromCache:!0,timestamp:_.timestamp,ttl:_.ttl,cacheKey:h}}];r.label=2;case 2:return y=t(t({},d),l&&{params:l}),[4,E(n,i,{data:u,config:y,baseURL:m})];case 3:return N=r.sent(),!(null==g?void 0:g.skipCache)&&null!=N.responseData&&(!v||v(N.responseData))?[4,s.set(h,N.responseData,R)]:[3,5];case 4:r.sent(),r.label=5;case 5:return[2,{responseData:N.responseData,error:N.error?{errorMessage:N.error.type===o.INTERNET_DISCONNECTED||N.error.type===o.SLOW_CONNECTION||N.error.type===o.TIMEOUT?N.error.message:N.error.type===o.SERVER_UNREACHABLE?"Unable to connect to server. Please try again later.":f||N.error.message,errorObjData:N.error}:null,cacheMeta:{isFromCache:!1,timestamp:Date.now(),ttl:R,cacheKey:h}}]}})})};export{a as DEFAULT_CACHE_TTL,l as createApiInstance,i as fetchOnDemandCitation,p as generateCacheKey,E as makeApiRequest,f as makeApiRequestWithTTLCache};
1
+ import{__awaiter as e,__generator as r,__assign as t}from"tslib";import n from"axios";import{apiCache as s}from"./apicache.service.js";import{NetworkErrorType as o}from"../types/onDemandApi.types.js";export{NetworkErrorType}from"../types/onDemandApi.types.js";var a=72e5,i=function(n,s,o,a,i,c,u,l,p,d,E,m,g,v){return e(void 0,void 0,void 0,function(){var e,i,R,h;return r(this,function(r){return e="artifact_chunks"===s||"scanned_doc_citation"===s?"artifact_chunks":s,i=d?m:"".concat(e,"_").concat(o),[2,f(R="post",h="/api/chat/chatResponse",{baseURL:c,data:{name:u||"citationsprocessing",organizationName:l,prompt:"",useAgent:{agent_name:p||"ProcessCitationsAgent",arguments:t(t({citation_type:s,is_primary_agent_request:!1},d&&{check_possible_citation_payload:!1}),{ui_request_body:t(t(t({llm_formatted_response:a,request_id:n,max_concurrent_citations:10,citation_id:i},d&&E&&{ecg_agent_name:E}),d&&g&&{plan_id:g}),d&&v&&{ui_chat_history:v})})}},config:{headers:{"Content-Type":"application/json"},withCredentials:!0},errorMessage:"Failed to fetch on-demand citation",cacheOption:{key:"".concat(R,":").concat(h,":onDemandCitation:").concat(n,":").concat(s,":").concat(d?m:o)},shouldCache:function(e){var r;return Array.isArray(null===(r=null==e?void 0:e.result)||void 0===r?void 0:r.citations)&&Boolean(e.result.citations[0])}})]})})},c=function(e){if(e&&"object"==typeof e){var r=e;return"string"==typeof r.message?r.message:"string"==typeof r.errorMessage?r.errorMessage:"string"==typeof r.error?r.error:r.error&&"object"==typeof r.error&&"string"==typeof r.error.message?r.error.message:"string"==typeof r.details?r.details:r}},u=function(t){return e(void 0,void 0,void 0,function(){var e;return r(this,function(r){if(n.isAxiosError(t)){if("ECONNABORTED"===(e=t).code)return[2,{type:o.TIMEOUT,message:"The request took too long to complete. Please try again.",originalError:t}];if(e.message.includes("net::ERR_NETWORK_CHANGED")||e.message.includes("net::ERR_INTERNET_DISCONNECTED")||e.message.includes("net::ERR_NAME_NOT_RESOLVED"))return[2,{type:o.INTERNET_DISCONNECTED,message:"Internet connection issue detected. Please check your network.",originalError:t}];if(e.message.includes("Network Error")||"ERR_NETWORK"===e.code||e.message.includes("net::ERR_CONNECTION_REFUSED")||e.message.includes("net::ERR_EMPTY_RESPONSE"))return[2,{type:o.SERVER_UNREACHABLE,message:"Unable to connect to server. The service may be down or unreachable.",originalError:t}];if(e.response&&e.response.status>=500)return[2,{type:o.SERVER_ERROR,message:"Service Unavailable. Server error (".concat(e.response.status,")."),status:e.response.status,originalError:t}];if(e.response&&e.response.status>=400&&e.response.status<500)return[2,{type:o.SERVER_ERROR,message:c(e.response.data)||"Request failed with status code ".concat(e.response.status),status:e.response.status,originalError:t}]}return[2,{type:o.UNKNOWN_ERROR,message:"An unexpected error occurred. Please try again later.",originalError:t}]})})},l=function(t,s){void 0===s&&(s=18e4);var o=n.create({baseURL:t,timeout:s});return o.interceptors.request.use(function(t){return e(void 0,void 0,void 0,function(){return r(this,function(e){return[2,t]})})},function(t){return e(void 0,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return[4,u(t)];case 1:return e=r.sent(),[2,Promise.reject(e)]}})})}),o.interceptors.response.use(function(e){return e},function(t){return e(void 0,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return[4,u(t)];case 1:return e=r.sent(),console.error("API Request Failed:",e),[2,Promise.reject(e)]}})})}),o},p=function(e,r,t){return"".concat(e,":").concat(r,":").concat(JSON.stringify(t||{}))},d=l(),E=function(n,s,a){return e(void 0,void 0,void 0,function(){var e,i,c,p,E,f,m;return r(this,function(r){switch(r.label){case 0:switch(r.trys.push([0,13,,15]),e=(null==a?void 0:a.baseURL)?l(a.baseURL):d,c=(i=a||{}).data,p=i.config,E=void 0,n.toLowerCase()){case"get":return[3,1];case"post":return[3,3];case"put":return[3,5];case"patch":return[3,7];case"delete":return[3,9]}return[3,11];case 1:return[4,e.get(s,p)];case 2:case 4:case 6:case 8:case 10:return E=r.sent(),[3,12];case 3:return[4,e.post(s,c,p)];case 5:return[4,e.put(s,c,p)];case 7:return[4,e.patch(s,c,p)];case 9:return f=t(t({},p),{data:c}),[4,e.delete(s,f)];case 11:throw new Error("Unsupported method: ".concat(n));case 12:return[2,{responseData:E.data,error:null}];case 13:return(m=r.sent()).type&&Object.values(o).includes(m.type)?[2,{responseData:null,error:m}]:[4,u(m)];case 14:return[2,{responseData:null,error:r.sent()}];case 15:return[2]}})})},f=function(n,i,c){return e(void 0,void 0,void 0,function(){var e,u,l,d,f,m,g,v,R,h,_,y,N,O;return r(this,function(r){switch(r.label){case 0:return u=(e=c||{}).data,l=e.params,d=e.config,f=e.errorMessage,m=e.baseURL,g=e.cacheOption,v=e.shouldCache,R=null!==(O=null==g?void 0:g.ttl)&&void 0!==O?O:a,h=(null==g?void 0:g.key)||p(n,i,l),(null==g?void 0:g.forceRefresh)||(null==g?void 0:g.skipCache)?[3,2]:[4,s.get(h)];case 1:if(_=r.sent())return[2,{responseData:_.data,error:null,cacheMeta:{isFromCache:!0,timestamp:_.timestamp,ttl:_.ttl,cacheKey:h}}];r.label=2;case 2:return y=t(t({},d),l&&{params:l}),[4,E(n,i,{data:u,config:y,baseURL:m})];case 3:return N=r.sent(),!(null==g?void 0:g.skipCache)&&null!=N.responseData&&(!v||v(N.responseData))?[4,s.set(h,N.responseData,R)]:[3,5];case 4:r.sent(),r.label=5;case 5:return[2,{responseData:N.responseData,error:N.error?{errorMessage:N.error.type===o.INTERNET_DISCONNECTED||N.error.type===o.SLOW_CONNECTION||N.error.type===o.TIMEOUT?N.error.message:N.error.type===o.SERVER_UNREACHABLE?"Unable to connect to server. Please try again later.":f||N.error.message,errorObjData:N.error}:null,cacheMeta:{isFromCache:!1,timestamp:Date.now(),ttl:R,cacheKey:h}}]}})})};export{a as DEFAULT_CACHE_TTL,l as createApiInstance,i as fetchOnDemandCitation,p as generateCacheKey,E as makeApiRequest,f as makeApiRequestWithTTLCache};
2
2
  //# sourceMappingURL=onDemandApi.js.map
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const useCompareLayout: (initialMaintainOrder: boolean, scrollContainerRef: React.RefObject<HTMLDivElement>, lhsBadgeRefs: any, rhsBadgeRefs: any, proposedSections: any[], existingSections: any[]) => {
3
2
  maintainRelativeOrder: boolean;
4
3
  setMaintainRelativeOrder: import("react").Dispatch<import("react").SetStateAction<boolean>>;
@@ -1 +1 @@
1
- {"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,gBAAgB,yBACL,OAAO,sBACT,MAAM,SAAS,CAAC,cAAc,CAAC,gBACrC,GAAG,gBACH,GAAG,oBACC,GAAG,EAAE,oBACL,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;CAkFxB,CAAC"}
1
+ {"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBACL,OAAO,sBACT,MAAM,SAAS,CAAC,cAAc,CAAC,gBACrC,GAAG,gBACH,GAAG,oBACC,GAAG,EAAE,oBACL,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;CAkFxB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { INonReasoningSource, NonWebReasoningIconsConfig } from "./CognitiveInternalgptReasoningComponent";
3
+ import type { CognitiveReasoningThemeTokens, CognitiveReasoningClassNames, CognitiveReasoningStyles } from "./CognitiveNonWebSearchReasoning.types";
3
4
  export type CognitiveInternalgptCoreProps = {
4
5
  item: INonReasoningSource;
5
6
  headerTitle: string;
@@ -10,6 +11,9 @@ export type CognitiveInternalgptCoreProps = {
10
11
  bodyHeight?: string;
11
12
  disableMaximize?: boolean;
12
13
  splitterCustomStyle?: boolean;
14
+ themeTokens?: CognitiveReasoningThemeTokens;
15
+ classNames?: CognitiveReasoningClassNames;
16
+ styles?: CognitiveReasoningStyles;
13
17
  };
14
18
  declare const CognitiveInternalgptCoreComponent: React.FC<CognitiveInternalgptCoreProps>;
15
19
  export default CognitiveInternalgptCoreComponent;
@@ -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;AAgBhH,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;CAC/B,CAAC;AAiBF,QAAA,MAAM,iCAAiC,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA4V9E,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"}
@@ -19,6 +19,8 @@ export type NonWebReasoningProps = {
19
19
  headerTitle?: string;
20
20
  previewCallback?: () => void;
21
21
  DocumentTitle?: string;
22
+ disableMaximize?: boolean;
23
+ splitterCustomStyle?: boolean;
22
24
  };
23
25
  declare const InternalgptReasoningComponent: React.FC<NonWebReasoningProps>;
24
26
  export default InternalgptReasoningComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveInternalgptReasoningComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkDjE,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"CognitiveInternalgptReasoningComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAC,OAAO,CAAA;IACxB,mBAAmB,CAAC,EAAC,OAAO,CAAA;CAC7B,CAAC;AAEF,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsDjE,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
@@ -0,0 +1,162 @@
1
+ import React from "react";
2
+ export interface CognitiveReasoningThemeTokens {
3
+ "--cr-container-gap"?: string;
4
+ "--cr-item-row-font-size"?: string;
5
+ "--cr-index-color"?: string;
6
+ "--cr-index-font-weight"?: string;
7
+ "--cr-text-content-color"?: string;
8
+ "--cr-paraphrase-button-bg"?: string;
9
+ "--cr-paraphrase-button-border-radius"?: string;
10
+ "--cr-paraphrase-color"?: string;
11
+ "--cr-paraphrase-font-weight"?: string;
12
+ "--cr-chevron-color"?: string;
13
+ "--cr-expanded-container-bg"?: string;
14
+ "--cr-expanded-container-border"?: string;
15
+ "--cr-expanded-container-border-radius"?: string;
16
+ "--cr-expanded-container-margin-left"?: string;
17
+ "--cr-expanded-container-margin-top"?: string;
18
+ "--cr-header-bg"?: string;
19
+ "--cr-header-border"?: string;
20
+ "--cr-header-padding"?: string;
21
+ "--cr-header-title-color"?: string;
22
+ "--cr-header-title-font-size"?: string;
23
+ "--cr-header-title-font-weight"?: string;
24
+ "--cr-nav-container-bg"?: string;
25
+ "--cr-nav-container-border"?: string;
26
+ "--cr-nav-button-hover-bg"?: string;
27
+ "--cr-nav-icon-color"?: string;
28
+ "--cr-nav-icon-size"?: string;
29
+ "--cr-nav-counter-color"?: string;
30
+ "--cr-nav-counter-font-size"?: string;
31
+ "--cr-confidence-badge-bg"?: string;
32
+ "--cr-confidence-badge-border"?: string;
33
+ "--cr-confidence-star-color"?: string;
34
+ "--cr-confidence-score-color"?: string;
35
+ "--cr-maximize-icon-color"?: string;
36
+ "--cr-maximize-button-hover-bg"?: string;
37
+ "--cr-content-area-bg"?: string;
38
+ "--cr-content-area-color"?: string;
39
+ "--cr-content-area-font-size"?: string;
40
+ "--cr-content-area-max-height"?: string;
41
+ "--cr-content-area-padding"?: string;
42
+ "--cr-content-line-height"?: string;
43
+ "--cr-footer-bg"?: string;
44
+ "--cr-footer-border"?: string;
45
+ "--cr-footer-padding"?: string;
46
+ "--cr-training-title-color"?: string;
47
+ "--cr-training-title-font-size"?: string;
48
+ "--cr-training-link-color"?: string;
49
+ "--cr-training-link-font-size"?: string;
50
+ "--cr-modal-container-bg"?: string;
51
+ "--cr-modal-container-border-radius"?: string;
52
+ "--cr-modal-header-bg"?: string;
53
+ "--cr-modal-header-border"?: string;
54
+ "--cr-modal-header-title-color"?: string;
55
+ "--cr-modal-header-title-font-size"?: string;
56
+ "--cr-modal-nav-container-bg"?: string;
57
+ "--cr-modal-nav-button-hover-bg"?: string;
58
+ "--cr-close-icon-color"?: string;
59
+ "--cr-close-button-hover-bg"?: string;
60
+ "--cr-modal-content-bg"?: string;
61
+ "--cr-modal-content-color"?: string;
62
+ "--cr-modal-content-font-size"?: string;
63
+ "--cr-modal-content-line-height"?: string;
64
+ "--cr-modal-footer-bg"?: string;
65
+ "--cr-modal-footer-border"?: string;
66
+ "--cr-highlight-bg"?: string;
67
+ "--cr-highlight-active-bg"?: string;
68
+ "--cr-highlight-active-border"?: string;
69
+ "--cr-bold-font-weight"?: string;
70
+ "--cr-list-counter-width"?: string;
71
+ "--cr-list-counter-font-weight"?: string;
72
+ "--cr-header-line-font-weight"?: string;
73
+ }
74
+ export interface CognitiveReasoningClassNames {
75
+ container?: string;
76
+ itemRow?: string;
77
+ indexNumber?: string;
78
+ textContent?: string;
79
+ paraphraseButton?: string;
80
+ paraphraseText?: string;
81
+ paraphraseStar?: string;
82
+ chevronIcon?: string;
83
+ expandedContainer?: string;
84
+ expandedHeader?: string;
85
+ headerTitle?: string;
86
+ headerActions?: string;
87
+ navigationContainer?: string;
88
+ navButton?: string;
89
+ navIcon?: string;
90
+ navCounter?: string;
91
+ confidenceBadge?: string;
92
+ maximizeButton?: string;
93
+ contentArea?: string;
94
+ contentInner?: string;
95
+ footer?: string;
96
+ trainingTitle?: string;
97
+ trainingTitleLink?: string;
98
+ modalContainer?: string;
99
+ modalHeader?: string;
100
+ modalHeaderTitle?: string;
101
+ modalHeaderActions?: string;
102
+ modalNavContainer?: string;
103
+ modalNavButton?: string;
104
+ closeButton?: string;
105
+ closeIcon?: string;
106
+ modalContent?: string;
107
+ modalContentInner?: string;
108
+ modalFooter?: string;
109
+ modalFooterSource?: string;
110
+ blockLine?: string;
111
+ headerLine?: string;
112
+ listItemLine?: string;
113
+ listCounter?: string;
114
+ boldText?: string;
115
+ highlight?: string;
116
+ highlightActive?: string;
117
+ }
118
+ export interface CognitiveReasoningStyles {
119
+ container?: React.CSSProperties;
120
+ itemRow?: React.CSSProperties;
121
+ indexNumber?: React.CSSProperties;
122
+ textContent?: React.CSSProperties;
123
+ paraphraseButton?: React.CSSProperties;
124
+ paraphraseText?: React.CSSProperties;
125
+ paraphraseStar?: React.CSSProperties;
126
+ chevronIcon?: React.CSSProperties;
127
+ expandedContainer?: React.CSSProperties;
128
+ expandedHeader?: React.CSSProperties;
129
+ headerTitle?: React.CSSProperties;
130
+ headerActions?: React.CSSProperties;
131
+ navigationContainer?: React.CSSProperties;
132
+ navButton?: React.CSSProperties;
133
+ navIcon?: React.CSSProperties;
134
+ navCounter?: React.CSSProperties;
135
+ confidenceBadge?: React.CSSProperties;
136
+ maximizeButton?: React.CSSProperties;
137
+ contentArea?: React.CSSProperties;
138
+ contentInner?: React.CSSProperties;
139
+ footer?: React.CSSProperties;
140
+ trainingTitle?: React.CSSProperties;
141
+ trainingTitleLink?: React.CSSProperties;
142
+ modalContainer?: React.CSSProperties;
143
+ modalHeader?: React.CSSProperties;
144
+ modalHeaderTitle?: React.CSSProperties;
145
+ modalHeaderActions?: React.CSSProperties;
146
+ modalNavContainer?: React.CSSProperties;
147
+ modalNavButton?: React.CSSProperties;
148
+ closeButton?: React.CSSProperties;
149
+ closeIcon?: React.CSSProperties;
150
+ modalContent?: React.CSSProperties;
151
+ modalContentInner?: React.CSSProperties;
152
+ modalFooter?: React.CSSProperties;
153
+ modalFooterSource?: React.CSSProperties;
154
+ blockLine?: React.CSSProperties;
155
+ headerLine?: React.CSSProperties;
156
+ listItemLine?: React.CSSProperties;
157
+ listCounter?: React.CSSProperties;
158
+ boldText?: React.CSSProperties;
159
+ highlight?: React.CSSProperties;
160
+ highlightActive?: React.CSSProperties;
161
+ }
162
+ //# sourceMappingURL=CognitiveNonWebSearchReasoning.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CognitiveNonWebSearchReasoning.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,20 @@
1
+ export interface SourceAttachment {
2
+ id: string;
3
+ gcsUrl?: string;
4
+ name?: string;
5
+ is_guideline_file?: boolean;
6
+ [key: string]: any;
7
+ }
8
+ export type Guidelines = SourceAttachment[] | Record<string, SourceAttachment[]>;
9
+ export interface SignedUrlResponse {
10
+ responseData?: {
11
+ signed_url?: string;
12
+ };
13
+ signed_url?: string;
14
+ error?: string;
15
+ }
16
+ export declare function isJSONFile(extension?: string): boolean;
17
+ export declare function getSignedUrl(gcsUrl: string, url: string): Promise<SignedUrlResponse>;
18
+ export declare function getFileContent(filePath: string, url: string): Promise<string>;
19
+ export declare function getNestedValue(obj: any, path: string): any;
20
+ //# sourceMappingURL=RuleBookCitationApiComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleBookCitationApiComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/DualCitation/RuleBookCitationApiComponent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,UAAU,GAClB,gBAAgB,EAAE,GAClB,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,wBAAgB,UAAU,CAAC,SAAS,CAAC,EAAE,MAAM,WAE5C;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAqB1F;AAED,wBAAsB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAwBnF;AAID,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAuB1D"}
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import { AccordionToggleParams } from "../TextualGuidelines/TextualGuideLinesComponent";
3
+ import { Guidelines } from "./RuleBookCitationApiComponent";
4
+ import { INonReasoningSource } from "../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent";
5
+ interface RuleBookCitationComponentProps {
6
+ data?: {
7
+ citationNumber: number;
8
+ fileDetails?: {
9
+ file_id: string;
10
+ phrase_to_highlight: string;
11
+ };
12
+ };
13
+ msg?: any;
14
+ citationIndex?: number;
15
+ guidelines?: Guidelines;
16
+ url?: string;
17
+ additionalClassNames?: {
18
+ container?: string;
19
+ };
20
+ headerTitle?: string;
21
+ InternalGptReasoningData?: INonReasoningSource[];
22
+ isDataProvided?: boolean;
23
+ textualContent?: string;
24
+ phraseToHighlight?: string;
25
+ IgptHeaderTitle?: string;
26
+ onAccordionToggle?: (params: AccordionToggleParams) => void;
27
+ isInternalGptReasoningLoading?: boolean;
28
+ }
29
+ declare const RuleBookCitationComponent: React.FC<RuleBookCitationComponentProps>;
30
+ export default RuleBookCitationComponent;
31
+ //# sourceMappingURL=RuleBookCitationComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RuleBookCitationComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/DualCitation/RuleBookCitationComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAmC,EACjC,qBAAqB,EACtB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EAKL,UAAU,EAEX,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yEAAyE,CAAC;AAE9G,UAAU,8BAA8B;IACtC,IAAI,CAAC,EAAE;QACL,cAAc,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE;YACZ,OAAO,EAAE,MAAM,CAAC;YAChB,mBAAmB,EAAE,MAAM,CAAC;SAC7B,CAAC;KACH,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB,CAAC,EAAE;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAC,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5D,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA+NvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * SourcesBQCitation.tsx
3
+ *
4
+ * Simplified citation renderer: finds the right source by SKU ID,
5
+ * picks the citation entry by citationNumber, and renders ONLY the
6
+ * data table with column highlighting — no reasoning/gap/footer panels.
7
+ *
8
+ * URL shape:
9
+ * ./columnName=sku?citationNumber=1&citation_type=bq_data&sku_id=20QH20N5
10
+ */
11
+ import React from 'react';
12
+ export interface SourcesBQHrefParams {
13
+ columnName: string;
14
+ citationNumber: string;
15
+ citationType: string;
16
+ skuId: string;
17
+ }
18
+ export type SourceCitationEntry = Record<string, any[]>;
19
+ export interface SourceObject {
20
+ citations: Record<string, SourceCitationEntry>;
21
+ gap: string;
22
+ score: number;
23
+ reasoning: string;
24
+ }
25
+ export declare function parseSourcesBQHref(href: string): SourcesBQHrefParams | null;
26
+ export declare function findSourceCitation(sources: Record<string, SourceObject> | undefined | null, skuId: string): [string, SourceObject] | null;
27
+ interface SourcesBQCitationProps {
28
+ hrefParams: SourcesBQHrefParams;
29
+ sourceObj: SourceObject;
30
+ children: React.ReactNode;
31
+ defaultOpen?: boolean;
32
+ showChevron?: boolean;
33
+ }
34
+ export declare const SourcesBQCitation: React.FC<SourcesBQCitationProps>;
35
+ export {};
36
+ //# sourceMappingURL=SourceBQDataCompnent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SourceBQDataCompnent.d.ts","sourceRoot":"","sources":["../../../../../src/features/DualCitation/SourceBQDataCompnent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI,CA2B3E;AAID,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,SAAS,GAAG,IAAI,EACxD,KAAK,EAAE,MAAM,GACZ,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,IAAI,CA+B/B;AAmKD,UAAU,sBAAsB;IAC9B,UAAU,EAAE,mBAAmB,CAAC;IAChC,SAAS,EAAE,YAAY,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAmD9D,CAAC"}