@e-llm-studio/citation 0.0.227 → 0.0.228

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 (58) hide show
  1. package/dist/cjs/features/BPACitationRenderer/BPACitationRenderer.js +2 -0
  2. package/dist/cjs/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -0
  3. package/dist/cjs/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.js +1 -1
  4. package/dist/cjs/features/DualCitation/RuleBookCitationComponent.js +1 -1
  5. package/dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
  6. package/dist/cjs/features/SplitterCitations/icons/icons.js +2 -0
  7. package/dist/cjs/features/SplitterCitations/icons/icons.js.map +1 -0
  8. package/dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
  9. package/dist/cjs/index.js +1 -1
  10. package/dist/features/BPACitationRenderer/BPACitationRenderer.js +2 -0
  11. package/dist/features/BPACitationRenderer/BPACitationRenderer.js.map +1 -0
  12. package/dist/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.js +1 -1
  13. package/dist/features/DualCitation/RuleBookCitationComponent.js +1 -1
  14. package/dist/features/SplitterCitations/SplitterCitationsComponent.js +1 -1
  15. package/dist/features/SplitterCitations/icons/icons.js +2 -0
  16. package/dist/features/SplitterCitations/icons/icons.js.map +1 -0
  17. package/dist/features/TextualGuidelines/TextualGuideLinesComponent.js +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts +5 -0
  20. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts.map +1 -0
  21. package/dist/types/src/features/{ParentCitationComponent/ParentCitationComponent.types.d.ts → BPACitationRenderer/BPACitationRenderer.types.d.ts} +1 -1
  22. package/dist/types/src/features/BPACitationRenderer/BPACitationRenderer.types.d.ts.map +1 -0
  23. package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts +6 -0
  24. package/dist/types/src/features/BPACitationRenderer/BPACitationRendererTest.d.ts.map +1 -0
  25. package/dist/types/src/features/BPACitationRenderer/DualRuleBookBqCitationTest.d.ts.map +1 -0
  26. package/dist/types/src/features/BPACitationRenderer/DualRuleBookGptCitationTest.d.ts.map +1 -0
  27. package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts +4 -0
  28. package/dist/types/src/features/BPACitationRenderer/ILRuleBookCitationTest.d.ts.map +1 -0
  29. package/dist/types/src/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.d.ts +1 -0
  30. package/dist/types/src/features/BPACitationRenderer/citationTypes.d.ts.map +1 -0
  31. package/dist/types/src/features/DualCitation/RuleBookCitationComponent.d.ts.map +1 -1
  32. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +1 -1
  33. package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -1
  34. package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts +1 -21
  35. package/dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts.map +1 -1
  36. package/dist/types/src/features/SplitterCitations/icons/icons.d.ts +17 -0
  37. package/dist/types/src/features/SplitterCitations/icons/icons.d.ts.map +1 -0
  38. package/dist/types/src/features/SplitterCitations/types.d.ts +78 -0
  39. package/dist/types/src/features/SplitterCitations/types.d.ts.map +1 -0
  40. package/dist/types/src/index.d.ts +2 -1
  41. package/dist/types/src/index.d.ts.map +1 -1
  42. package/package.json +5 -5
  43. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
  44. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
  45. package/dist/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
  46. package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
  47. package/dist/types/src/features/ParentCitationComponent/DualRuleBookBqCitationTest.d.ts.map +0 -1
  48. package/dist/types/src/features/ParentCitationComponent/DualRuleBookGptCitationTest.d.ts.map +0 -1
  49. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +0 -5
  50. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +0 -1
  51. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.types.d.ts.map +0 -1
  52. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -6
  53. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +0 -1
  54. package/dist/types/src/features/ParentCitationComponent/citationTypes.d.ts.map +0 -1
  55. /package/dist/cjs/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.js.map +0 -0
  56. /package/dist/features/{ParentCitationComponent → BPACitationRenderer}/citationTypes.js.map +0 -0
  57. /package/dist/types/src/features/{ParentCitationComponent → BPACitationRenderer}/DualRuleBookBqCitationTest.d.ts +0 -0
  58. /package/dist/types/src/features/{ParentCitationComponent → BPACitationRenderer}/DualRuleBookGptCitationTest.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),e=require("lucide-react"),a=require("@mui/material/Dialog"),o=require("@mui/material/DialogTitle"),l=require("@mui/material/DialogContent"),r=require("@mui/material/IconButton"),s=require("dayjs"),u=require("../ScannedDocCitation/ScannedDocCitation.js"),d=require("../InstantLearningCitation/InstantLearningCitationComponent.js"),c=require("../InstantLearningCitation/SlashLoader.js"),g=require("../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),v=require("../RequirementAiCitations/ImageCitation/ImageCitationContent.js"),C=require("../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),h=require("../ChatCitation/ChatCitationRenderer.js"),T=require("../DualCitation/RuleBookCitationComponent.js"),_=require("../CitationRenderer/CitationRenderer.js"),f=require("../SplitterCitations/SplitterCitationsComponent.js"),p=require("../DualCitation/SourceBQDataCompnent.js"),I=require("./citationTypes.js");function m(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var D=m(a),S=m(o),P=m(l),x=m(r),A=m(s),j=function(i,n,t){if(!i)throw new Error("[BPACitationRenderer] ".concat(n,': missing required field "').concat(t,'" in customMetaData'))},O=function(i,n){if(!Object.values(i).some(Boolean))throw new Error("[BPACitationRenderer] ".concat(n,': missing one of "').concat(Object.keys(i).join('", "'),'" in customMetaData'))},E=function(a){var o=a.children,l=a.content,r=t.useState(!1),s=r[0],u=r[1];return n.jsxs(n.Fragment,{children:[n.jsx("span",i.__assign({style:{display:"inline-flex",alignItems:"center",cursor:"pointer",fontSize:"14px",fontWeight:400,color:"#526eff"},onClick:function(){return u(!0)}},{children:o})),n.jsxs(D.default,i.__assign({open:s,onClose:function(){return u(!1)},maxWidth:"md",fullWidth:!0},{children:[n.jsxs(S.default,i.__assign({style:{fontWeight:"bold"}},{children:["Guidelines",n.jsx(x.default,i.__assign({edge:"end",onClick:function(){return u(!1)},"aria-label":"close",style:{position:"absolute",top:5,right:16},size:"large"},{children:n.jsx(e.X,{})}))]})),n.jsx(P.default,i.__assign({style:{maxHeight:"70vh",overflow:"auto"}},{children:l}))]}))]})},b=function(a){var o,l,r,s,m,D,S,P,x,N,R,L,w,y,U,B,q,Y,k,H,G,W,z,F,M,K,Q,X=a.href,J=a.children,V=a.isStreaming,Z=a.onCitationToggle,$=a.chatCitationConfig,ii=a.scannedDocCitationConfig,ni=a.ruleBookCitationConfig,ti=a.ilCitationConfig,ei=a.gptCitationConfig,ai=a.scannedDocCitationData,oi=a.ilCitationData,li=a.chatCitationData,ri=a.gptCitationData,si=a.webCitationData,ui=a.imageCitationData,di=a.bqCitationData,ci=a.title,gi=a.citationIcon,vi=a.isDualCitationFlag,Ci=void 0!==vi&&vi,hi=t.useState(!1),Ti=hi[0],_i=hi[1];if(V)return n.jsxs("span",i.__assign({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[n.jsx("span",{children:J}),n.jsx(c.default,{})]}));try{var fi=new URL(X,"http://example.com"),pi=null!==(o=fi.searchParams.get("citationNumber"))&&void 0!==o?o:fi.searchParams.get("citation_number"),Ii=null!==(l=fi.searchParams.get("decisionStrength"))&&void 0!==l?l:fi.searchParams.get("decision_strength"),mi=fi.searchParams.get("citation_type"),Di=Ci||mi===I.CITATION_TYPES.DUAL;if(!pi)return null;if(mi===I.CITATION_TYPES.SCANNED_DOC){var Si=null==ai?void 0:ai.pages;if(null==Si?void 0:Si.length)return n.jsx(u.default,i.__assign({pages:Si,subHeadingText:null==ai?void 0:ai.artifactTitle},ii));j(null==ai?void 0:ai.gsUrl,"scanned_doc_citation","gs_url");var Pi=[ai.gsUrl],xi=(null!==(r=null==ai?void 0:ai.highlightedCoordinates)&&void 0!==r?r:[]).map(function(i,n){return{pageIndex:n,bboxes:[i]}});return n.jsx(u.default,i.__assign({images:Pi,highlights:xi},ii))}if(mi===I.CITATION_TYPES.IL){j(null==oi?void 0:oi.ilLearning,"IL","il_learning");var Ai=J||(null==oi?void 0:oi.linkText)||(null==oi?void 0:oi.citationSource)||String(null!==(s=null==oi?void 0:oi.citationNumber)&&void 0!==s?s:1);return n.jsx(d.default,{ilLearning:oi.ilLearning,ilLearningHighlights:null==oi?void 0:oi.ilLearningHighlights,comparisonHighlights:null==oi?void 0:oi.comparisonHighlights,decisionStrength:Ii||(null==oi?void 0:oi.decisionStrength)||"",linkTitle:Ai,onCitationToggle:null!=Z?Z:function(){},config:ti})}if(mi===I.CITATION_TYPES.CHAT){var ji=null!=$?$:{},Oi=null===(D=null!==(m=null==li?void 0:li.chatData)&&void 0!==m?m:[])||void 0===D?void 0:D.map(function(n){return i.__assign(i.__assign({},n),{timeStamp:A.default(n.timeStamp)})}),Ei=!!(null==li?void 0:li.ruleBookContent);return n.jsx(h.default,{showRootContainer:null===(S=ji.showRootContainer)||void 0===S||S,reversePanels:ji.reversePanels,isRenderedCustomComponent:ji.isRenderedCustomComponent,modalContainerStyle:ji.modalContainerStyle,additionalData:ji.additionalData,closePreview:ji.closePreview,selectedIdFromReason:null!==(P=ji.selectedIdFromReason)&&void 0!==P?P:void 0,rootContainer:i.__assign(i.__assign({},ji.rootContainer),{relevanceScore:null==li?void 0:li.relevanceScore}),chatContainer:i.__assign(i.__assign({},ji.chatContainer),{chatData:Oi,summarizedTab:i.__assign(i.__assign({},null===(x=ji.chatContainer)||void 0===x?void 0:x.summarizedTab),{chip:i.__assign({isActive:!0,show:!0},null===(R=null===(N=ji.chatContainer)||void 0===N?void 0:N.summarizedTab)||void 0===R?void 0:R.chip)}),detailedTab:i.__assign(i.__assign({},null===(L=ji.chatContainer)||void 0===L?void 0:L.detailedTab),{chip:i.__assign({isActive:!1},null===(y=null===(w=ji.chatContainer)||void 0===w?void 0:w.detailedTab)||void 0===y?void 0:y.chip)})}),ruleBookContainer:Ei?i.__assign(i.__assign({},ji.ruleBookContainer),{data:{content:li.ruleBookContent,highlighted_texts:null!==(U=null==li?void 0:li.ruleBookHighlights)&&void 0!==U?U:[]}}):void 0})}if(mi===I.CITATION_TYPES.GPT){var bi=null==ri?void 0:ri.value,Ni=null!==(B=null==bi?void 0:bi.text)&&void 0!==B?B:null===(q=null==ri?void 0:ri.dataSources)||void 0===q?void 0:q[0],Ri=null!==(Y=null==bi?void 0:bi.label)&&void 0!==Y?Y:null===(k=null==ri?void 0:ri.trainingDataTitle)||void 0===k?void 0:k[0],Li=null!==(H=null==bi?void 0:bi.paraphrase)&&void 0!==H?H:null===(G=null==ri?void 0:ri.paraphrase)||void 0===G?void 0:G[0];O({data_sources:Ni,training_data_title:Ri},I.CITATION_TYPES.GPT);var wi={text:"",dataSource:Ni,trainingDataTitle:Ri,paraphrase:Li},yi=null!==(W=null==ei?void 0:ei.iconsConfig)&&void 0!==W?W:{ChevronDownIcon:e.ChevronDown,ChevronUpIcon:e.ChevronUp,MaximizeIcon:e.Maximize2,CloseIcon:e.X};return n.jsx(g.default,{item:wi,headerTitle:null!==(z=null==ei?void 0:ei.headerTitle)&&void 0!==z?z:"GPT - Gemini 3.5 Flash",iconsConfig:yi,previewCallback:null==ei?void 0:ei.previewCallback,DocumentTitle:null==ei?void 0:ei.DocumentTitle,disableMaximize:Di})}if(mi===I.CITATION_TYPES.WEB){!function(i,n,t){j(i,n,t);try{new URL(i)}catch(e){throw new Error("[BPACitationRenderer] ".concat(n,': "').concat(t,'" is not a valid URL: "').concat(i,'"'))}}(null==si?void 0:si.link,I.CITATION_TYPES.WEB,"link");var Ui=si.link,Bi=J||(null==si?void 0:si.citationSource)||Ui;return(null==si?void 0:si.screenshotUrl)?n.jsx(C.default,{url:Ui,label:Bi,gsUtilPath:null==si?void 0:si.gsUtilPath,signedUrl:si.screenshotUrl,relevanceScore:null==si?void 0:si.relevanceScore,visitIcon:e.ExternalLink,PreviewDialogCloseIcon:e.X}):n.jsx("a",i.__assign({href:Ui,target:"_blank",rel:"noreferrer"},{children:Bi}))}if(mi===I.CITATION_TYPES.IMAGE)return O({gs_util_path:null==ui?void 0:ui.gsUtilPath,signed_url:null==ui?void 0:ui.signedUrl},I.CITATION_TYPES.IMAGE),n.jsx(v.default,{citationTitle:J||(null==ui?void 0:ui.citationSource),gsUtilPath:null==ui?void 0:ui.gsUtilPath,signedUrl:null==ui?void 0:ui.signedUrl,relevanceScore:null==ui?void 0:ui.relevanceScore});if(mi===I.CITATION_TYPES.BQ_DATA)return O({href_params:null==di?void 0:di.hrefParams,source_obj:null==di?void 0:di.sourceObj},I.CITATION_TYPES.BQ_DATA),n.jsx(p.SourcesBQCitation,i.__assign({hrefParams:di.hrefParams,sourceObj:di.sourceObj,showChevron:!1,defaultOpen:!0},{children:J||""}));if(mi===I.CITATION_TYPES.RULEBOOK||mi===I.CITATION_TYPES.RULEBOOK_CHUNK){var qi=pi?parseInt(pi,10):0,Yi=n.jsx(T.default,{url:null!==(F=null==ni?void 0:ni.url)&&void 0!==F?F:"",data:{citationNumber:null!==(K=null===(M=null==ni?void 0:ni.data)||void 0===M?void 0:M.citationNumber)&&void 0!==K?K:qi,fileDetails:null===(Q=null==ni?void 0:ni.data)||void 0===Q?void 0:Q.fileDetails},msg:null==ni?void 0:ni.msg,citationIndex:null==ni?void 0:ni.citationIndex,guidelines:null==ni?void 0:ni.guidelines,additionalClassNames:null==ni?void 0:ni.additionalClassNames,headerTitle:null==ni?void 0:ni.headerTitle,InternalGptReasoningData:null==ni?void 0:ni.InternalGptReasoningData,isDataProvided:null==ni?void 0:ni.isDataProvided,textualContent:null==ni?void 0:ni.textualContent,phraseToHighlight:null==ni?void 0:ni.phraseToHighlight,IgptHeaderTitle:null==ni?void 0:ni.IgptHeaderTitle,isInternalGptReasoningLoading:null==ni?void 0:ni.isInternalGptReasoningLoading,onAccordionToggle:null==ni?void 0:ni.onAccordionToggle});return Ci?Yi:n.jsx(E,i.__assign({content:Yi},{children:J}))}if(mi===I.CITATION_TYPES.IL_RULEBOOK){var ki=n.jsx(T.default,{headerTitle:null==ni?void 0:ni.headerTitle,InternalGptReasoningData:null==ni?void 0:ni.InternalGptReasoningData,isDataProvided:null==ni?void 0:ni.isDataProvided,textualContent:null==ni?void 0:ni.textualContent,phraseToHighlight:null==ni?void 0:ni.phraseToHighlight,IgptHeaderTitle:null==ni?void 0:ni.IgptHeaderTitle,onAccordionToggle:null==ni?void 0:ni.onAccordionToggle,isInternalGptReasoningLoading:null==ni?void 0:ni.isInternalGptReasoningLoading});return Ci?ki:n.jsx(E,i.__assign({content:ki},{children:J}))}if(mi===I.CITATION_TYPES.DUAL){var Hi=fi.searchParams.get("left_citation_type"),Gi=fi.searchParams.get("right_citation_type");if(Hi===I.CITATION_TYPES.DUAL||Gi===I.CITATION_TYPES.DUAL)return console.error("left or right citation type cant be dual_citation"),null;var Wi=function(i,n){var t="".concat(i,"."),e="left"===i?"right.":"left.",a=new URLSearchParams;return fi.searchParams.forEach(function(i,n){"citation_type"!==n&&"left_citation_type"!==n&&"right_citation_type"!==n&&(n.startsWith(t)||n.startsWith(e)||a.set(n,i))}),fi.searchParams.forEach(function(i,n){n.startsWith(t)&&a.set(n.slice(t.length),i)}),n&&a.set("citation_type",n),"?".concat(a.toString())},zi=Wi("left",Hi),Fi=Wi("right",Gi),Mi=J||ci||"Source and Guidelines",Ki=function(i){switch(i){case I.CITATION_TYPES.SCANNED_DOC:return{scannedDocCitationData:ai,scannedDocCitationConfig:ii};case I.CITATION_TYPES.IL:return{ilCitationData:oi,ilCitationConfig:ti};case I.CITATION_TYPES.CHAT:return{chatCitationData:li,chatCitationConfig:$};case I.CITATION_TYPES.GPT:return{gptCitationData:ri,gptCitationConfig:ei};case I.CITATION_TYPES.WEB:return{webCitationData:si};case I.CITATION_TYPES.IMAGE:return{imageCitationData:ui};case I.CITATION_TYPES.BQ_DATA:return{bqCitationData:di};case I.CITATION_TYPES.RULEBOOK:return{ruleBookCitationConfig:ni};default:return{}}};return n.jsx(_.default,{inLineCitation:!0,citationTitle:Mi,citationIcon:gi,isOpen:Ti,onToggle:function(){return _i(function(i){return!i})},styles:{pillButton:{fontSize:"14px",margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}},citationComponent:n.jsx(f.default,{left:n.jsx(b,i.__assign({href:zi,onCitationToggle:Z},Ki(Hi),{isDualCitationFlag:!0})),right:n.jsx(b,i.__assign({href:Fi,onCitationToggle:Z,isDualCitationFlag:!0},Ki(Gi))),header:{title:Mi,showDocIcon:!1},openInFullscreen:!0,fullscreenOnly:!0,onFullscreenClose:function(){return _i(!1)}})})}console.warn('[BPACitationRenderer] unhandled citation_type: "'.concat(mi,'"'))}catch(i){return console.error(i),null}return null};exports.default=b;
2
+ //# sourceMappingURL=BPACitationRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BPACitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.CITATION_TYPES={SCANNED_DOC:"scanned_doc_citation",IL:"IL",CHAT:"chat_citation",GPT:"gpt_citation",WEB:"web_citation",IMAGE:"image_citation",BQ_DATA:"bq_data",RULEBOOK:"rulebook_citation",IL_RULEBOOK:"il_rulebook_citation",DUAL:"dual_citation"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.CITATION_TYPES={SCANNED_DOC:"scanned_doc_citation",IL:"IL",CHAT:"chat_citation",GPT:"gpt_citation",WEB:"web_citation",IMAGE:"image_citation",BQ_DATA:"bq_data",RULEBOOK:"rulebook_citation",RULEBOOK_CHUNK:"rulebook_chunk",IL_RULEBOOK:"il_rulebook_citation",DUAL:"dual_citation"};
2
2
  //# sourceMappingURL=citationTypes.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),l=require("lucide-react"),t=require("../TextualGuidelines/TextualGuideLinesComponent.js"),r=require("./RuleBookCitationApiComponent.js");exports.default=function(o){var a,s,d,u,c,v,g=o.data,f=o.msg,p=o.citationIndex,h=o.guidelines,x=void 0===h?[]:h,_=o.url,m=o.additionalClassNames,b=o.headerTitle,j=void 0===b?"Rule Book Citation":b,y=o.InternalGptReasoningData,C=void 0===y?[]:y,D=o.IgptHeaderTitle,S=o.isDataProvided,k=void 0!==S&&S,T=o.textualContent,w=o.phraseToHighlight,I=o.onAccordionToggle,L=o.isInternalGptReasoningLoading,R=void 0!==L&&L;console.log("Max Latest code 6.0");var q=Math.max((null!==(s=null!==(a=null==g?void 0:g.citationNumber)&&void 0!==a?a:p)&&void 0!==s?s:1)-1,0),A=(null==f?void 0:f.requestId)||(null==f?void 0:f.id)||"",G=n.useState(null),H=G[0],N=G[1],E=n.useState(null),B=E[0],U=E[1],O=n.useState(null),F=O[0],M=O[1],J=n.useState(!1),P=J[0],V=J[1],z=n.useState(null),W=z[0],K=z[1];n.useEffect(function(){var e,i,n,l;if(!k&&!H){if(null===(e=null==g?void 0:g.fileDetails)||void 0===e?void 0:e.file_id)return K(null),N(g.fileDetails.file_id),void U(g.fileDetails.phrase_to_highlight||null);var t=(null!==(l=null===(n=null===(i=null==f?void 0:f.artifactSearchData)||void 0===i?void 0:i.ruleBookData)||void 0===n?void 0:n.rulebook_citations)&&void 0!==l?l:[])[q];if(!t)return K("Citation not found at the specified index."),N(null),void U(null);if(!t.file_id)return K("Citation data is missing file_id."),N(null),void U(null);M(null),K(null),N(t.file_id),U(t.phrase_to_highlight||null)}},[k,A,q,H,null===(d=null==g?void 0:g.fileDetails)||void 0===d?void 0:d.file_id,null===(u=null==g?void 0:g.fileDetails)||void 0===u?void 0:u.phrase_to_highlight,null===(v=null===(c=null==f?void 0:f.artifactSearchData)||void 0===c?void 0:c.ruleBookData)||void 0===v?void 0:v.rulebook_citations]),n.useEffect(function(){if(!k)if(H){var i=Array.isArray(x)?x:Object.values(x||{}).flat();e.__awaiter(void 0,void 0,void 0,function(){var n,l,t,o,a,s,d,u;return e.__generator(this,function(e){switch(e.label){case 0:if(!(null==(n=i.find(function(e){return e.id===H}))?void 0:n.gcsUrl))return K("File URL not found."),[2];e.label=1;case 1:return e.trys.push([1,4,5,6]),V(!0),K(null),[4,r.getSignedUrl(n.gcsUrl,null!=_?_:"")];case 2:if(null==(l=e.sent())?void 0:l.error)throw new Error(l.error);return t=(null===(u=n.name)||void 0===u?void 0:u.toLowerCase().split(".").pop())||"",r.isJSONFile(t)?[4,r.getFileContent(n.gcsUrl,null!=_?_:"")]:[2];case 3:if(!(null==(o=e.sent())?void 0:o.trim()))throw new Error("Empty file content returned from the backend.");return a=JSON.parse(o),s=r.getNestedValue(a,"data.artifactData.userStorySnapshot[0].value"),M(s||""),[3,6];case 4:return d=e.sent(),console.error(d),K(d.message||"An error occurred while loading file contents."),M(null),[3,6];case 5:return V(!1),[7];case 6:return[2]}})})}else M(null)},[k,H,x,_]);var Q=!k&&P,X=k?w||null:B,Y=k?T||"":(null==F?void 0:F.replace(/\\\./g,"."))||"",Z=k?!!T:!!F;return i.jsxs("div",e.__assign({className:null==m?void 0:m.container,style:{width:"100%",minHeight:"100px",backgroundColor:"transparent"}},{children:[Q&&i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[i.jsx(l.Loader2,{style:{animation:"spin 1s linear infinite"},size:24}),i.jsx("span",{children:"Loading content..."})]})),W&&!Q&&i.jsxs("div",e.__assign({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[i.jsx("strong",{children:"Error:"})," ",W]})),!Q&&!W&&Z&&i.jsx("div",e.__assign({style:{marginTop:"12px"}},{children:i.jsx(t.default,{TextualGuideLines:Y,HighlightedWords:X?[X]:[],InternalGptReasoningData:C,index:0,headerTitle:j,useVariantHighlight:!1,IgptHeaderTitle:D,onAccordionToggle:I,isInternalGptReasoningLoading:R})})),!Q&&!W&&!Z&&i.jsx("div",e.__assign({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available."})),i.jsx("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),l=require("lucide-react"),t=require("../TextualGuidelines/TextualGuideLinesComponent.js"),r=require("./RuleBookCitationApiComponent.js");exports.default=function(o){var a,s,d,u,c,v,g=o.data,f=o.msg,p=o.citationIndex,h=o.guidelines,x=void 0===h?[]:h,_=o.url,m=o.additionalClassNames,b=o.headerTitle,j=void 0===b?"Rule Book Citation":b,y=o.InternalGptReasoningData,C=void 0===y?[]:y,D=o.IgptHeaderTitle,S=o.isDataProvided,k=void 0!==S&&S,T=o.textualContent,w=o.phraseToHighlight,I=o.onAccordionToggle,R=o.isInternalGptReasoningLoading,L=void 0!==R&&R,q=Math.max((null!==(s=null!==(a=null==g?void 0:g.citationNumber)&&void 0!==a?a:p)&&void 0!==s?s:1)-1,0),A=(null==f?void 0:f.requestId)||(null==f?void 0:f.id)||"",G=n.useState(null),H=G[0],N=G[1],E=n.useState(null),B=E[0],U=E[1],O=n.useState(null),F=O[0],J=O[1],M=n.useState(!1),P=M[0],V=M[1],z=n.useState(null),W=z[0],K=z[1];n.useEffect(function(){var e,i,n,l;if(!k&&!H){if(null===(e=null==g?void 0:g.fileDetails)||void 0===e?void 0:e.file_id)return K(null),N(g.fileDetails.file_id),void U(g.fileDetails.phrase_to_highlight||null);var t=(null!==(l=null===(n=null===(i=null==f?void 0:f.artifactSearchData)||void 0===i?void 0:i.ruleBookData)||void 0===n?void 0:n.rulebook_citations)&&void 0!==l?l:[])[q];if(!t)return K("Citation not found at the specified index."),N(null),void U(null);if(!t.file_id)return K("Citation data is missing file_id."),N(null),void U(null);J(null),K(null),N(t.file_id),U(t.phrase_to_highlight||null)}},[k,A,q,H,null===(d=null==g?void 0:g.fileDetails)||void 0===d?void 0:d.file_id,null===(u=null==g?void 0:g.fileDetails)||void 0===u?void 0:u.phrase_to_highlight,null===(v=null===(c=null==f?void 0:f.artifactSearchData)||void 0===c?void 0:c.ruleBookData)||void 0===v?void 0:v.rulebook_citations]),n.useEffect(function(){if(!k)if(H){var i=Array.isArray(x)?x:Object.values(x||{}).flat();e.__awaiter(void 0,void 0,void 0,function(){var n,l,t,o,a,s,d,u;return e.__generator(this,function(e){switch(e.label){case 0:if(!(null==(n=i.find(function(e){return e.id===H}))?void 0:n.gcsUrl))return K("File URL not found."),[2];e.label=1;case 1:return e.trys.push([1,4,5,6]),V(!0),K(null),[4,r.getSignedUrl(n.gcsUrl,null!=_?_:"")];case 2:if(null==(l=e.sent())?void 0:l.error)throw new Error(l.error);return t=(null===(u=n.name)||void 0===u?void 0:u.toLowerCase().split(".").pop())||"",r.isJSONFile(t)?[4,r.getFileContent(n.gcsUrl,null!=_?_:"")]:[2];case 3:if(!(null==(o=e.sent())?void 0:o.trim()))throw new Error("Empty file content returned from the backend.");return a=JSON.parse(o),s=r.getNestedValue(a,"data.artifactData.userStorySnapshot[0].value"),J(s||""),[3,6];case 4:return d=e.sent(),console.error(d),K(d.message||"An error occurred while loading file contents."),J(null),[3,6];case 5:return V(!1),[7];case 6:return[2]}})})}else J(null)},[k,H,x,_]);var Q=!k&&P,X=k?w||null:B,Y=k?T||"":(null==F?void 0:F.replace(/\\\./g,"."))||"",Z=k?!!T:!!F;return i.jsxs("div",e.__assign({className:null==m?void 0:m.container,style:{width:"100%",minHeight:"100px",backgroundColor:"transparent"}},{children:[Q&&i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[i.jsx(l.Loader2,{style:{animation:"spin 1s linear infinite"},size:24}),i.jsx("span",{children:"Loading content..."})]})),W&&!Q&&i.jsxs("div",e.__assign({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[i.jsx("strong",{children:"Error:"})," ",W]})),!Q&&!W&&Z&&i.jsx("div",e.__assign({style:{marginTop:"12px"}},{children:i.jsx(t.default,{TextualGuideLines:Y,HighlightedWords:X?[X]:[],InternalGptReasoningData:C,index:0,headerTitle:j,useVariantHighlight:!1,IgptHeaderTitle:D,onAccordionToggle:I,isInternalGptReasoningLoading:L})})),!Q&&!W&&!Z&&i.jsx("div",e.__assign({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available."})),i.jsx("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};
2
2
  //# sourceMappingURL=RuleBookCitationComponent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),a=require("lucide-react"),s=require("./Splitter.module.css.js"),i=function(){return t.jsxs("svg",e.__assign({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("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"}),t.jsx("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:"#111827",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},o=function(){return t.jsxs("svg",e.__assign({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t.jsx("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"}),t.jsx("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:"black",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},l=function(){return t.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 12 12",fill:"none"},{children:[t.jsx("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"}),t.jsx("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"})]}))},c=function(){return t.jsx("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:t.jsx("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"})}))};exports.default=function(d){var r=d.left,u=d.right,f=d.defaultLeftWidth,h=void 0===f?50:f,x=d.minLeftWidth,g=void 0===x?250:x,v=d.minRightWidth,C=void 0===v?250:v,p=d.className,_=void 0===p?"":p,m=d.height,j=void 0===m?"400px":m,w=d.width,N=void 0===w?"100%":w,H=d.header,L=d.onLeftWidthChange,k=d.openInFullscreen,M=void 0!==k&&k,A=d.onFullscreenClose,B=d.fullscreenOnly,b=void 0!==B&&B,F=n.useState(h),S=F[0],E=F[1],y=n.useState(!1),z=y[0],R=y[1],V=n.useState(!1),D=V[0],O=V[1],P=n.useState(!1),q=P[0],T=P[1],Z=n.useState(0),I=Z[0],W=Z[1],X=n.useState(0),G=X[0],J=X[1],K=n.useState(b||M),Q=K[0],U=K[1],Y=n.useRef(null),$=n.useRef(null),ee=n.useRef(null);n.useEffect(function(){var e=Y.current;e&&(Q?(e.showModal(),requestAnimationFrame(function(){if(ee.current){var e=ee.current.getBoundingClientRect().width;J(e),E(h),O(!1),T(!1)}})):(e.close(),E(h),O(!1),T(!1),null==A||A()))},[Q]),n.useEffect(function(){var e=ee.current;if(e&&Q){var t,n=new ResizeObserver(function(e){var n=e[0];t=requestAnimationFrame(function(){J(n.contentRect.width)})});return n.observe(e),function(){cancelAnimationFrame(t),n.disconnect()}}},[Q]),n.useEffect(function(){var e=$.current;if(e){var t,n=new ResizeObserver(function(e){var n=e[0];t=requestAnimationFrame(function(){W(n.contentRect.width)})});return n.observe(e),W(e.getBoundingClientRect().width),function(){cancelAnimationFrame(t),n.disconnect()}}},[]);var te=function(e){e.preventDefault(),R(!0)};n.useEffect(function(){var e=function(e){if(z){var t=Q?ee.current:$.current;if(t){var n=t.getBoundingClientRect(),a=n.width,s=e.clientX-n.left;if(s>=g&&a-s-4>=C)E(s/a*100),null==L||L(s)}}},t=function(){R(!1)};return z&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[z,Q,g,C,L]);var ne=function(){D?(E(50),O(!1)):O(!0)},ae=function(){q?(E(50),T(!1)):T(!0)},se=Q?G:I,ie=S/100*se,oe=se-ie-4,le=Q?500:250,ce=q?{flex:1}:{width:"".concat(S,"%")},de=!D&&ie<=Math.max(g+10,le),re=!q&&oe<=Math.max(C+10,le),ue=function(e){return e>=80?s.default.confidenceScoreHigh:e>=60?s.default.confidenceScoreMedium:s.default.confidenceScoreLow},fe="number"==typeof j?"".concat(j,"px"):j,he="number"==typeof N?"".concat(N,"px"):N,xe=t.jsx("dialog",e.__assign({ref:Y,className:s.default.dialogOverlay,onClose:function(){return U(!1)}},{children:t.jsxs("div",e.__assign({ref:ee,className:s.default.dialogContent},{children:[H&&t.jsxs("div",e.__assign({className:s.default.header},{children:[t.jsxs("div",e.__assign({className:s.default.headerLeft},{children:[H.showDocIcon&&t.jsx(a.FileText,{className:s.default.headerIcon}),t.jsx("div",e.__assign({className:s.default.headerTitle},{children:H.title&&t.jsx(t.Fragment,{children:t.jsx("span",e.__assign({className:s.default.headerTitleText},{children:H.title}))})}))]})),t.jsxs("div",e.__assign({className:s.default.headerActions},{children:[void 0!==H.confidenceScore&&t.jsxs("div",e.__assign({className:"".concat(s.default.confidenceScore," ").concat(ue(H.confidenceScore))},{children:[t.jsx("div",e.__assign({style:{width:"16px",height:"16px"}},{children:t.jsx(l,{})})),t.jsxs("div",{children:[Math.round(H.confidenceScore),"%"]})]})),t.jsx("button",e.__assign({className:s.default.fullscreenButton,onClick:function(){return U(!1)},title:"Close fullscreen"},{children:t.jsx(a.X,{size:20,color:"#5928ed"})}))]}))]})),t.jsxs("div",e.__assign({className:"".concat(s.default.contentArea," ").concat(s.default.contentAreaHorizontal," ").concat(s.default.dialogContentArea)},{children:[!D&&t.jsx("div",e.__assign({className:s.default.panel,style:ce},{children:r})),D&&t.jsx("button",e.__assign({onClick:ne,className:"".concat(s.default.expandButton," ").concat(s.default.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:t.jsx(i,{})})),!D&&!q&&t.jsxs("div",e.__assign({onMouseDown:te,className:"".concat(s.default.divider," ").concat(s.default.dividerHorizontal," ").concat(z?s.default.dividerDragging:s.default.dividerIdle)},{children:[t.jsx("div",{className:"".concat(s.default.dividerHitArea," ").concat(s.default.dividerHitAreaHorizontal)}),de&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),ne()},onMouseDown:function(e){return e.stopPropagation()},className:s.default.collapseButton,title:"Collapse left panel"},{children:t.jsx(o,{})})),re&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),ae()},onMouseDown:function(e){return e.stopPropagation()},className:s.default.collapseButton,title:"Collapse right panel"},{children:t.jsx(i,{})}))]})),!q&&t.jsx("div",e.__assign({className:s.default.panel,style:{flex:1}},{children:u})),q&&t.jsx("button",e.__assign({onClick:ae,className:"".concat(s.default.expandButton," ").concat(s.default.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:t.jsx(o,{})})),z&&t.jsx("div",{className:"".concat(s.default.dragOverlay," ").concat(s.default.dragOverlayHorizontal)})]}))]}))}));return b?xe:t.jsxs(t.Fragment,{children:[t.jsxs("div",e.__assign({ref:$,className:"".concat(s.default.container," ").concat(s.default.containerHorizontal," ").concat(_),style:{height:fe,width:he}},{children:[H&&t.jsxs("div",e.__assign({className:s.default.header},{children:[t.jsxs("div",e.__assign({className:s.default.headerLeft},{children:[H.showDocIcon&&t.jsx(a.FileText,{className:s.default.headerIcon}),t.jsx("div",e.__assign({className:s.default.headerTitle},{children:H.title&&t.jsx("span",e.__assign({className:s.default.headerTitleText},{children:H.title}))}))]})),t.jsxs("div",e.__assign({className:s.default.headerActions},{children:[void 0!==H.confidenceScore&&t.jsxs("div",e.__assign({className:"".concat(s.default.confidenceScore," ").concat(ue(H.confidenceScore))},{children:[t.jsx("div",e.__assign({style:{width:"16px",height:"16px"}},{children:t.jsx(l,{})})),t.jsxs("div",{children:[Math.round(H.confidenceScore),"%"]})]})),t.jsx("button",e.__assign({className:s.default.fullscreenButton,onClick:function(){return U(!0)},title:"Open fullscreen"},{children:t.jsx(c,{})}))]}))]})),t.jsxs("div",e.__assign({className:"".concat(s.default.contentArea," ").concat(s.default.contentAreaHorizontal)},{children:[!D&&t.jsx("div",e.__assign({className:s.default.panel,style:ce},{children:r})),D&&t.jsx("button",e.__assign({onClick:ne,className:"".concat(s.default.expandButton," ").concat(s.default.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:t.jsx(i,{})})),!D&&!q&&t.jsxs("div",e.__assign({onMouseDown:te,className:"".concat(s.default.divider," ").concat(s.default.dividerHorizontal," ").concat(z?s.default.dividerDragging:s.default.dividerIdle)},{children:[t.jsx("div",{className:"".concat(s.default.dividerHitArea," ").concat(s.default.dividerHitAreaHorizontal)}),de&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),ne()},onMouseDown:function(e){return e.stopPropagation()},className:s.default.collapseButton,title:"Collapse left panel"},{children:t.jsx(o,{})})),re&&t.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),ae()},onMouseDown:function(e){return e.stopPropagation()},className:s.default.collapseButton,title:"Collapse right panel"},{children:t.jsx(i,{})}))]})),!q&&t.jsx("div",e.__assign({className:s.default.panel,style:{flex:1}},{children:u})),q&&t.jsx("button",e.__assign({onClick:ae,className:"".concat(s.default.expandButton," ").concat(s.default.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:t.jsx(o,{})})),z&&t.jsx("div",{className:"".concat(s.default.dragOverlay," ").concat(s.default.dragOverlayHorizontal)})]}))]})),xe]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),l=require("react"),i=require("lucide-react"),t=require("./Splitter.module.css.js"),o=require("./icons/icons.js");exports.default=function(a){var s,d,c,u,r,v,f,g,h,_,p,x,m,j,y=a.left,B=a.right,N=a.defaultLeftWidth,C=void 0===N?50:N,I=a.minLeftWidth,S=void 0===I?250:I,b=a.minRightWidth,w=void 0===b?250:b,z=a.className,A=void 0===z?"":z,H=a.height,P=void 0===H?"400px":H,M=a.width,O=void 0===M?"100%":M,R=a.header,E=a.onLeftWidthChange,T=a.openInFullscreen,D=void 0!==T&&T,k=a.onFullscreenClose,F=a.fullscreenOnly,L=void 0!==F&&F,q=a.classNames,W=a.customStyles,X=a.iconProps,G=l.useState(C),J=G[0],K=G[1],Q=l.useState(!1),U=Q[0],V=Q[1],Y=l.useState(!1),Z=Y[0],$=Y[1],ee=l.useState(!1),ne=ee[0],le=ee[1],ie=l.useState(0),te=ie[0],oe=ie[1],ae=l.useState(0),se=ae[0],de=ae[1],ce=l.useState(L||D),ue=ce[0],re=ce[1],ve=l.useRef(null),fe=l.useRef(null),ge=l.useRef(null),he=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")},_e=null!==(s=null==X?void 0:X.collapse)&&void 0!==s?s:{};l.useEffect(function(){var e=ve.current;e&&(ue?(e.showModal(),requestAnimationFrame(function(){if(ge.current){var e=ge.current.getBoundingClientRect().width;de(e),K(C),$(!1),le(!1)}})):(e.close(),K(C),$(!1),le(!1),null==k||k()))},[ue]),l.useEffect(function(){var e=ge.current;if(e&&ue){var n,l=new ResizeObserver(function(e){var l=e[0];n=requestAnimationFrame(function(){de(l.contentRect.width)})});return l.observe(e),function(){cancelAnimationFrame(n),l.disconnect()}}},[ue]),l.useEffect(function(){var e=fe.current;if(e){var n,l=new ResizeObserver(function(e){var l=e[0];n=requestAnimationFrame(function(){oe(l.contentRect.width)})});return l.observe(e),oe(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),l.disconnect()}}},[]);var pe=function(e){e.preventDefault(),V(!0)};l.useEffect(function(){var e=function(e){if(U){var n=ue?ge.current:fe.current;if(n){var l=n.getBoundingClientRect(),i=l.width,t=e.clientX-l.left;if(t>=S&&i-t-4>=w)K(t/i*100),null==E||E(t)}}},n=function(){V(!1)};return U&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[U,ue,S,w,E]);var xe=function(){Z?(K(50),$(!1)):$(!0)},me=function(){ne?(K(50),le(!1)):le(!0)},je=ue?se:te,ye=J/100*je,Be=je-ye-4,Ne=ue?500:250,Ce=ne?{flex:1}:{width:"".concat(J,"%")},Ie=!Z&&ye<=Math.max(S+10,Ne),Se=!ne&&Be<=Math.max(w+10,Ne),be=function(e){return(null==W?void 0:W.confidenceBadge)?"":e>=80?t.default.confidenceScoreHigh:e>=60?t.default.confidenceScoreMedium:t.default.confidenceScoreLow},we="number"==typeof P?"".concat(P,"px"):P,ze="number"==typeof O?"".concat(O,"px"):O,Ae=n.jsx("dialog",e.__assign({ref:ve,className:he(t.default.dialogOverlay,null==q?void 0:q.dialogOverlay),style:null==W?void 0:W.dialogOverlay,onClose:function(){return re(!1)}},{children:n.jsxs("div",e.__assign({ref:ge,className:he(t.default.dialogContent,null==q?void 0:q.dialogContent),style:null==W?void 0:W.dialogContent},{children:[R&&n.jsxs("div",e.__assign({className:he(t.default.header,null==q?void 0:q.header),style:null==W?void 0:W.header},{children:[n.jsxs("div",e.__assign({className:t.default.headerLeft},{children:[R.showDocIcon&&n.jsx(i.FileText,{className:he(t.default.headerIcon,null==q?void 0:q.headerIcon),style:e.__assign(e.__assign({},null==W?void 0:W.headerIcon),(null===(d=null==X?void 0:X.headerIcon)||void 0===d?void 0:d.color)?{color:X.headerIcon.color}:{})}),n.jsx("div",e.__assign({className:t.default.headerTitle},{children:R.title&&n.jsx("span",e.__assign({className:he(t.default.headerTitleText,null==q?void 0:q.headerTitle),style:null==W?void 0:W.headerTitle},{children:R.title}))}))]})),n.jsxs("div",e.__assign({className:he(t.default.headerActions,null==q?void 0:q.headerActions),style:null==W?void 0:W.headerActions},{children:[void 0!==R.confidenceScore&&n.jsxs("div",e.__assign({className:he(t.default.confidenceScore,be(R.confidenceScore),null==q?void 0:q.confidenceBadge),style:null==W?void 0:W.confidenceBadge},{children:[n.jsx("div",e.__assign({style:{width:"16px",height:"16px"}},{children:n.jsx(o.AIMagicIcon,{color:null===(c=null==X?void 0:X.magic)||void 0===c?void 0:c.color,size:null===(u=null==X?void 0:X.magic)||void 0===u?void 0:u.size})})),n.jsxs("div",{children:[Math.round(R.confidenceScore),"%"]})]})),n.jsx("button",e.__assign({className:he(t.default.fullscreenButton,null==q?void 0:q.fullscreenButton),style:null==W?void 0:W.fullscreenButton,onClick:function(){return re(!1)},title:"Close fullscreen"},{children:n.jsx(i.X,{size:20,color:null!==(v=null===(r=null==X?void 0:X.close)||void 0===r?void 0:r.color)&&void 0!==v?v:"#5928ed"})}))]}))]})),n.jsxs("div",e.__assign({className:"".concat(t.default.contentArea," ").concat(t.default.contentAreaHorizontal," ").concat(t.default.dialogContentArea)},{children:[!Z&&n.jsx("div",e.__assign({className:he(t.default.panel,null!==(f=null==q?void 0:q.leftPanel)&&void 0!==f?f:null==q?void 0:q.panel),style:e.__assign(e.__assign({},Ce),null!==(g=null==W?void 0:W.leftPanel)&&void 0!==g?g:null==W?void 0:W.panel)},{children:y})),Z&&n.jsx("button",e.__assign({onClick:xe,className:"".concat(t.default.expandButton," ").concat(t.default.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:n.jsx(o.SidebarOpenIcon,e.__assign({},_e))})),!Z&&!ne&&n.jsxs("div",e.__assign({onMouseDown:pe,className:he(t.default.divider,t.default.dividerHorizontal,U?t.default.dividerDragging:t.default.dividerIdle,null==q?void 0:q.divider),style:null==W?void 0:W.divider},{children:[n.jsx("div",{className:"".concat(t.default.dividerHitArea," ").concat(t.default.dividerHitAreaHorizontal)}),Ie&&n.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),xe()},onMouseDown:function(e){return e.stopPropagation()},className:he(t.default.collapseButton,null==q?void 0:q.collapseButton),style:null==W?void 0:W.collapseButton,title:"Collapse left panel"},{children:n.jsx(o.SidebarCloseIcon,e.__assign({},_e))})),Se&&n.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),me()},onMouseDown:function(e){return e.stopPropagation()},className:he(t.default.collapseButton,null==q?void 0:q.collapseButton),style:null==W?void 0:W.collapseButton,title:"Collapse right panel"},{children:n.jsx(o.SidebarOpenIcon,e.__assign({},_e))}))]})),!ne&&n.jsx("div",e.__assign({className:he(t.default.panel,null!==(h=null==q?void 0:q.rightPanel)&&void 0!==h?h:null==q?void 0:q.panel),style:e.__assign({flex:1},null!==(_=null==W?void 0:W.rightPanel)&&void 0!==_?_:null==W?void 0:W.panel)},{children:B})),ne&&n.jsx("button",e.__assign({onClick:me,className:"".concat(t.default.expandButton," ").concat(t.default.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:n.jsx(o.SidebarCloseIcon,e.__assign({},_e))})),U&&n.jsx("div",{className:"".concat(t.default.dragOverlay," ").concat(t.default.dragOverlayHorizontal)})]}))]}))}));return L?Ae:n.jsxs(n.Fragment,{children:[n.jsxs("div",e.__assign({ref:fe,className:he(t.default.container,t.default.containerHorizontal,A,null==q?void 0:q.container),style:e.__assign({height:we,width:ze},null==W?void 0:W.container)},{children:[R&&n.jsxs("div",e.__assign({className:he(t.default.header,null==q?void 0:q.header),style:null==W?void 0:W.header},{children:[n.jsxs("div",e.__assign({className:t.default.headerLeft},{children:[R.showDocIcon&&n.jsx(i.FileText,{className:he(t.default.headerIcon,null==q?void 0:q.headerIcon),style:e.__assign(e.__assign({},null==W?void 0:W.headerIcon),(null===(p=null==X?void 0:X.headerIcon)||void 0===p?void 0:p.color)?{color:X.headerIcon.color}:{})}),n.jsx("div",e.__assign({className:t.default.headerTitle},{children:R.title&&n.jsx("span",e.__assign({className:he(t.default.headerTitleText,null==q?void 0:q.headerTitle),style:null==W?void 0:W.headerTitle},{children:R.title}))}))]})),n.jsxs("div",e.__assign({className:he(t.default.headerActions,null==q?void 0:q.headerActions),style:null==W?void 0:W.headerActions},{children:[void 0!==R.confidenceScore&&n.jsxs("div",e.__assign({className:he(t.default.confidenceScore,be(R.confidenceScore),null==q?void 0:q.confidenceBadge),style:null==W?void 0:W.confidenceBadge},{children:[n.jsx("div",e.__assign({style:{width:"16px",height:"16px"}},{children:n.jsx(o.AIMagicIcon,{color:null===(x=null==X?void 0:X.magic)||void 0===x?void 0:x.color,size:null===(m=null==X?void 0:X.magic)||void 0===m?void 0:m.size})})),n.jsxs("div",{children:[Math.round(R.confidenceScore),"%"]})]})),n.jsx("button",e.__assign({className:he(t.default.fullscreenButton,null==q?void 0:q.fullscreenButton),style:null==W?void 0:W.fullscreenButton,onClick:function(){return re(!0)},title:"Open fullscreen"},{children:n.jsx(o.MaximizeIcon,{color:null===(j=null==X?void 0:X.maximize)||void 0===j?void 0:j.color})}))]}))]})),function(){var l,i,a,s;return n.jsxs("div",e.__assign({className:"".concat(t.default.contentArea," ").concat(t.default.contentAreaHorizontal)},{children:[!Z&&n.jsx("div",e.__assign({className:he(t.default.panel,null!==(l=null==q?void 0:q.leftPanel)&&void 0!==l?l:null==q?void 0:q.panel),style:e.__assign(e.__assign({},Ce),null!==(i=null==W?void 0:W.leftPanel)&&void 0!==i?i:null==W?void 0:W.panel)},{children:y})),Z&&n.jsx("button",e.__assign({onClick:xe,className:he((null==W?void 0:W.collapseButton)?"":t.default.expandButton,t.default.expandButtonHorizontal,null==q?void 0:q.collapseButton),style:null==W?void 0:W.collapseButton,title:"Expand left panel (50/50)"},{children:n.jsx(o.SidebarOpenIcon,e.__assign({},_e))})),!Z&&!ne&&n.jsxs("div",e.__assign({onMouseDown:pe,className:he(t.default.divider,t.default.dividerHorizontal,U?t.default.dividerDragging:t.default.dividerIdle,null==q?void 0:q.divider),style:null==W?void 0:W.divider},{children:[n.jsx("div",{className:"".concat(t.default.dividerHitArea," ").concat(t.default.dividerHitAreaHorizontal)}),Ie&&n.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),xe()},onMouseDown:function(e){return e.stopPropagation()},className:he(t.default.collapseButton,null==q?void 0:q.collapseButton),style:null==W?void 0:W.collapseButton,title:"Collapse left panel"},{children:n.jsx(o.SidebarCloseIcon,e.__assign({},_e))})),Se&&n.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),me()},onMouseDown:function(e){return e.stopPropagation()},className:he(t.default.collapseButton,null==q?void 0:q.collapseButton),style:null==W?void 0:W.collapseButton,title:"Collapse right panel"},{children:n.jsx(o.SidebarOpenIcon,e.__assign({},_e))}))]})),!ne&&n.jsx("div",e.__assign({className:he(t.default.panel,null!==(a=null==q?void 0:q.rightPanel)&&void 0!==a?a:null==q?void 0:q.panel),style:e.__assign({flex:1},null!==(s=null==W?void 0:W.rightPanel)&&void 0!==s?s:null==W?void 0:W.panel)},{children:B})),ne&&n.jsx("button",e.__assign({onClick:me,className:he((null==W?void 0:W.collapseButton)?"":t.default.expandButton,t.default.expandButtonRightHorizontal,null==q?void 0:q.collapseButton),style:null==W?void 0:W.collapseButton,title:"Expand right panel (50/50)"},{children:n.jsx(o.SidebarCloseIcon,e.__assign({},_e))})),U&&n.jsx("div",{className:"".concat(t.default.dragOverlay," ").concat(t.default.dragOverlayHorizontal)})]}))}()]})),Ae]})};
2
2
  //# sourceMappingURL=SplitterCitationsComponent.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");exports.AIMagicIcon=function(i){var o=i.color,r=void 0===o?"#087443":o,t=i.size,s=void 0===t?14:t;return e.jsxs("svg",C.__assign({xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 12 12",fill:"none"},{children:[e.jsx("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:r}),e.jsx("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:r})]}))},exports.MaximizeIcon=function(i){var o=i.color,r=void 0===o?"#7A5AF8":o;return e.jsx("svg",C.__assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:e.jsx("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:r,stroke:r,strokeWidth:"0.5"})}))},exports.SidebarCloseIcon=function(i){var o=i.fill,r=void 0===o?"#F8FAFC":o,t=i.stroke,s=void 0===t?"#E0E0E0":t,n=i.arrowStroke,l=void 0===n?"black":n;return e.jsxs("svg",C.__assign({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("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:r,stroke:s}),e.jsx("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:l,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},exports.SidebarOpenIcon=function(i){var o=i.fill,r=void 0===o?"#F8FAFC":o,t=i.stroke,s=void 0===t?"#E0E0E0":t,n=i.arrowStroke,l=void 0===n?"#111827":n;return e.jsxs("svg",C.__assign({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("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:r,stroke:s}),e.jsx("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:l,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))};
2
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("lucide-react"),l=require("./TextualGuidelines.module.css.js"),a=require("../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),s=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")},o=function(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"")},r=function(e,n){var i=e.map(o).filter(Boolean),t=n.map(o).filter(Boolean);if(0===i.length||0===t.length)return 0;var l=new Set(i),a=new Set(t),s=0;return l.forEach(function(e){a.has(e)&&s++}),2*s/(l.size+a.size)},h=function(i){var t=0;return i.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(i){var a="bold-".concat(t);return t+=i.length,i.startsWith("**")&&i.endsWith("**")||i.startsWith("__")&&i.endsWith("__")?n.jsx("strong",e.__assign({className:l.default.boldText},{children:i.slice(2,-2)}),a):i})};exports.default=function(o){o.index;var d=o.TextualGuideLines,c=o.HighlightedWords,u=o.InternalGptReasoningData,g=o.headerTitle,v=void 0===g?"Textual Guidelines":g,x=o.IgptHeaderTitle,f=void 0===x?"GPT - Gemini 3.1 Flash Lite":x,_=o.useVariantHighlight,m=void 0!==_&&_,p=o.fuzzyThreshold,I=void 0===p?.8:p,j=o.onAccordionToggle,C=o.isInternalGptReasoningLoading,y=void 0!==C&&C,b=o.themeTokens,L=o.classNames,N=o.styles,w=i.useState(0),T=w[0],k=w[1],A=i.useState(new Set),z=A[0],B=A[1],V=i.useRef([]),D=[];c.forEach(function(e){(function(e,n,i){void 0===i&&(i=.8);var t=n.trim().split(/\s+/).filter(Boolean);if(0===t.length)return[];for(var l,a=[],s=/\S+/g;null!==(l=s.exec(e));)a.push({word:l[0],start:l.index,end:l.index+l[0].length});for(var o=t.length,h=[],d=Math.max(1,o-1);d<=o+2;d++)for(var c=0;c<=a.length-d;c++){var u=a.slice(c,c+d),g=r(t,u.map(function(e){return e.word}));g>=i&&h.push({startIndex:u[0].start,endIndex:u[u.length-1].end,score:g})}if(0===h.length)return[];h.sort(function(e,n){return n.score-e.score});for(var v=[],x=function(e){v.some(function(n){return e.startIndex<n.endIndex&&e.endIndex>n.startIndex})||v.push(e)},f=0,_=h;f<_.length;f++)x(_[f]);return v})(d,e,I).forEach(function(e){return D.push(e)})}),D.sort(function(e,n){return e.startIndex-n.startIndex});for(var G=[],M=0,R=D;M<R.length;M++){var E=R[M],S=G.at(-1);(!S||E.startIndex>=S.endIndex)&&G.push(E)}var U=G.map(function(e,n){return{text:d.substring(e.startIndex,e.endIndex),startIndex:e.startIndex,endIndex:e.endIndex,highlightIndex:n}}),q=U.length;i.useEffect(function(){q>0&&(k(0),setTimeout(function(){var e;null===(e=V.current[0])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50))},[q]);var H,P,W,F,K=function(e,n){B(function(i){var t=new Set(i),l=!t.has(e);return t.has(e)?t.delete(e):t.add(e),null==j||j({highlightIndex:e,phrase:n,isExpanded:l}),t})};return n.jsxs("div",e.__assign({className:s(l.default.expandedContainer,null==L?void 0:L.container),style:e.__assign(e.__assign({},b),null==N?void 0:N.container)},{children:[n.jsxs("div",e.__assign({className:s(l.default.expandedHeader,null==L?void 0:L.header),style:null==N?void 0:N.header},{children:[n.jsx("span",e.__assign({className:s(l.default.headerTitle,null==L?void 0:L.headerTitle),style:null==N?void 0:N.headerTitle},{children:v})),n.jsx("div",e.__assign({className:s(l.default.headerActions,null==L?void 0:L.headerActions),style:null==N?void 0:N.headerActions},{children:q>=1&&n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({className:s(l.default.navCounter,null==L?void 0:L.navCounter),style:null==N?void 0:N.navCounter},{children:[T+1," / ",q]})),n.jsx("button",e.__assign({onClick:function(){if(0!==q){var e=T>0?T-1:q-1;k(e),setTimeout(function(){var n;null===(n=V.current[e])||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:T<=0,className:s(l.default.navButton,null==L?void 0:L.navButtonPrev),style:null==N?void 0:N.navButtonPrev},{children:n.jsx(t.ChevronUp,{size:14,className:l.default.navButtonIcon})})),n.jsx("button",e.__assign({onClick:function(){if(0!==q){var e=T<q-1?T+1:0;k(e),setTimeout(function(){var n;null===(n=V.current[e])||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:T>=q-1,className:s(l.default.navButton,null==L?void 0:L.navButtonNext),style:null==N?void 0:N.navButtonNext},{children:n.jsx(t.ChevronDown,{size:14,className:l.default.navButtonIcon})}))]})}))]})),n.jsx("div",e.__assign({className:s(l.default.contentArea,null==L?void 0:L.contentArea),style:null==N?void 0:N.contentArea},{children:n.jsx("div",e.__assign({className:s(l.default.contentInner,null==L?void 0:L.contentInner),style:null==N?void 0:N.contentInner},{children:(H=d.split("\n"),P=0,W=0,F=[],H.forEach(function(i){var o=P,r=P+i.length;P+=i.length+1;var c=/^(\s*)(-|\*|\d+\.)\s+/.exec(i),g=/^(Title|Description|Training-basis):\s*/i.exec(i);g&&(W=0),c&&(W+=1);var v=!!c,x=!!g,_=c?c[0].length:0,p=o+_,I=U.filter(function(e){return e.startIndex<r&&e.endIndex>p}),j="line-".concat(o),C=function(i,t,a,o){x?F.push(n.jsx("span",e.__assign({className:s(l.default.headerLine,null==L?void 0:L.headerLine),style:null==N?void 0:N.headerLine},{children:i}),t)):v?F.push(n.jsxs("span",e.__assign({className:s(l.default.listItemLine,null==L?void 0:L.listItemLine),style:e.__assign({paddingLeft:c[1]?"1rem":"0"},null==N?void 0:N.listItemLine)},{children:[a&&n.jsxs("span",e.__assign({className:s(l.default.listCounter,null==L?void 0:L.listCounter),style:null==N?void 0:N.listCounter},{children:[W,"."]})),n.jsx("span",{children:i})]}),t)):F.push(n.jsx("span",e.__assign({className:s(l.default.blockLine,null==L?void 0:L.blockLine),style:null==N?void 0:N.blockLine},{children:i}),t))},b=v&&1===I.length&&I[0].startIndex<=p&&I[0].endIndex>=r;if(0===I.length)C(h(i.substring(_)),j,!0);else if(b){var w=I[0],k=w.highlightIndex===T,A=z.has(w.highlightIndex),B=m?k?"".concat(l.default.highlightBlockRow," ").concat(l.default.highlightActiveVariant):"".concat(l.default.highlightBlockRow," ").concat(l.default.highlightVariantRow):k?"".concat(l.default.highlightBlockRow," ").concat(l.default.highlightActive):l.default.highlightBlockRow;F.push(n.jsxs("span",e.__assign({ref:function(e){V.current[w.highlightIndex]=e},className:"".concat(l.default.listItemLine," ").concat(B),role:"button",tabIndex:0,onClick:function(){return K(w.highlightIndex,w.text)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||K(w.highlightIndex,w.text)},style:{paddingLeft:c[1]?"1rem":"0"}},{children:[n.jsxs("span",e.__assign({className:l.default.listCounter},{children:[W,"."]})),n.jsx("span",{children:h(d.substring(p,r))}),A?n.jsx(t.ChevronUp,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}}):n.jsx(t.ChevronDown,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}})]}),j)),A&&u[w.highlightIndex]?F.push(n.jsx("div",e.__assign({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:n.jsx(a.default,{item:e.__assign(e.__assign({},u[w.highlightIndex]),{confidence_score:void 0}),headerTitle:f||"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:t.ChevronDown,ChevronUpIcon:t.ChevronUp,MaximizeIcon:t.Maximize2,CloseIcon:t.X},bodyHeight:"100%",disableMaximize:!0,index:w.highlightIndex})}),"expanded-".concat(w.highlightIndex))):A&&y&&F.push(n.jsxs("div",e.__assign({className:l.default.loadingContainer},{children:[n.jsx(t.Loader2,{size:16,className:l.default.spinnerIcon}),n.jsx("span",{children:"Loading..."})]}),"loading-".concat(w.highlightIndex)))}else{var D=p,G=[],M=!0,R=I[0],E=R.highlightIndex===T;m?E?"".concat(l.default.highlight," ").concat(l.default.highlightActiveVariant):l.default.highlightVariant:E?"".concat(l.default.highlight," ").concat(l.default.highlightActive):l.default.highlight,v&&R.startIndex;for(var S=function(i){var o=Math.max(i.startIndex,p),c=Math.min(i.endIndex,r);if(o>=c)return"continue";if(o>D){var g=d.substring(D,o);G.push(n.jsx("span",{children:h(g)},"t-".concat(D)))}var v=i.highlightIndex===T,x=m?v?s(l.default.highlight,l.default.highlightActiveVariant,null==L?void 0:L.highlight,null==L?void 0:L.highlightActiveVariant):s(l.default.highlightVariant,null==L?void 0:L.highlightVariant):v?s(l.default.highlight,l.default.highlightActive,null==L?void 0:L.highlight,null==L?void 0:L.highlightActive):s(l.default.highlight,null==L?void 0:L.highlight),_=m?v?e.__assign(e.__assign({},null==N?void 0:N.highlight),null==N?void 0:N.highlightActiveVariant):e.__assign({},null==N?void 0:N.highlightVariant):v?e.__assign(e.__assign({},null==N?void 0:N.highlight),null==N?void 0:N.highlightActive):e.__assign({},null==N?void 0:N.highlight),I=z.has(i.highlightIndex);if(G.push(n.jsxs("span",e.__assign({ref:function(e){V.current[i.highlightIndex]=e},className:x,role:"button",tabIndex:0,onClick:function(){return K(i.highlightIndex,i.text)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||K(i.highlightIndex,i.text)},style:e.__assign({display:"inline-flex",alignItems:"center",gap:"2px",cursor:"pointer"},_)},{children:[d.substring(o,c),I?n.jsx(t.ChevronUp,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}}):n.jsx(t.ChevronDown,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}})]}),"h-".concat(i.highlightIndex))),D=c,I&&u[i.highlightIndex]){var b=M?j:"".concat(j,"-chunk-").concat(o);C(G,b,M),M=!1,G=[],F.push(n.jsx("div",e.__assign({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:n.jsx(a.default,{item:e.__assign(e.__assign({},u[i.highlightIndex]),{confidence_score:void 0}),headerTitle:f||"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:t.ChevronDown,ChevronUpIcon:t.ChevronUp,MaximizeIcon:t.Maximize2,CloseIcon:t.X},bodyHeight:"100%",disableMaximize:!0,index:i.highlightIndex})}),"expanded-".concat(i.highlightIndex)))}else I&&y&&(b=M?j:"".concat(j,"-chunk-").concat(o),C(G,b,M),M=!1,G=[],F.push(n.jsxs("div",e.__assign({className:l.default.loadingContainer},{children:[n.jsx(t.Loader2,{size:16,className:l.default.spinnerIcon}),n.jsx("span",{children:"Loading..."})]}),"loading-".concat(i.highlightIndex))))},q=0,H=I;q<H.length;q++)S(H[q]);if(D<r&&G.push(n.jsx("span",{children:h(d.substring(D,r))},"t-end-".concat(r))),G.length>0||M){var X=M?j:"".concat(j,"-tail");C(G,X,M)}}}),F)}))}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("lucide-react"),l=require("./TextualGuidelines.module.css.js"),a=require("../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),s=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")},o=function(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"")},r=function(e,n){var i=e.map(o).filter(Boolean),t=n.map(o).filter(Boolean);if(0===i.length||0===t.length)return 0;var l=new Set(i),a=new Set(t),s=0;return l.forEach(function(e){a.has(e)&&s++}),2*s/(l.size+a.size)},h=function(i){var t=0;return i.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(i){var a="bold-".concat(t);return t+=i.length,i.startsWith("**")&&i.endsWith("**")||i.startsWith("__")&&i.endsWith("__")?n.jsx("strong",e.__assign({className:l.default.boldText},{children:i.slice(2,-2)}),a):i})};exports.default=function(o){o.index;var d=o.TextualGuideLines,c=o.HighlightedWords,u=o.InternalGptReasoningData,g=o.headerTitle,v=void 0===g?"Textual Guidelines":g,x=o.IgptHeaderTitle,f=void 0===x?"GPT - Gemini 3.1 Flash Lite":x,_=o.useVariantHighlight,m=void 0!==_&&_,I=o.fuzzyThreshold,p=void 0===I?.8:I,j=o.onAccordionToggle,C=o.isInternalGptReasoningLoading,b=void 0!==C&&C,y=o.themeTokens,L=o.classNames,N=o.styles,w=i.useState(0),T=w[0],k=w[1],A=i.useState(new Set),z=A[0],B=A[1],V=i.useRef([]),D=[];c.forEach(function(e){(function(e,n,i){void 0===i&&(i=.8);var t=n.trim().split(/\s+/).filter(Boolean);if(0===t.length)return[];for(var l,a=[],s=/\S+/g;null!==(l=s.exec(e));)a.push({word:l[0],start:l.index,end:l.index+l[0].length});for(var o=t.length,h=[],d=Math.max(1,o-1);d<=o+2;d++)for(var c=0;c<=a.length-d;c++){var u=a.slice(c,c+d),g=r(t,u.map(function(e){return e.word}));g>=i&&h.push({startIndex:u[0].start,endIndex:u[u.length-1].end,score:g})}if(0===h.length)return[];h.sort(function(e,n){return n.score-e.score||n.endIndex-n.startIndex-(e.endIndex-e.startIndex)});for(var v=[],x=function(e){v.some(function(n){return e.startIndex<n.endIndex&&e.endIndex>n.startIndex})||v.push(e)},f=0,_=h;f<_.length;f++)x(_[f]);return v})(d,e,p).forEach(function(e){return D.push(e)})}),D.sort(function(e,n){return e.startIndex-n.startIndex});for(var G=[],M=0,R=D;M<R.length;M++){var E=R[M],S=G.at(-1);(!S||E.startIndex>=S.endIndex)&&G.push(E)}var U=G.map(function(e,n){return{text:d.substring(e.startIndex,e.endIndex),startIndex:e.startIndex,endIndex:e.endIndex,highlightIndex:n}}),q=U.length;i.useEffect(function(){q>0&&(k(0),setTimeout(function(){var e;null===(e=V.current[0])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})},50))},[q]);var H,P,W,F,K=function(e,n){B(function(i){var t=new Set(i),l=!t.has(e);return t.has(e)?t.delete(e):t.add(e),null==j||j({highlightIndex:e,phrase:n,isExpanded:l}),t})};return n.jsxs("div",e.__assign({className:s(l.default.expandedContainer,null==L?void 0:L.container),style:e.__assign(e.__assign({},y),null==N?void 0:N.container)},{children:[n.jsxs("div",e.__assign({className:s(l.default.expandedHeader,null==L?void 0:L.header),style:null==N?void 0:N.header},{children:[n.jsx("span",e.__assign({className:s(l.default.headerTitle,null==L?void 0:L.headerTitle),style:null==N?void 0:N.headerTitle},{children:v})),n.jsx("div",e.__assign({className:s(l.default.headerActions,null==L?void 0:L.headerActions),style:null==N?void 0:N.headerActions},{children:q>=1&&n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({className:s(l.default.navCounter,null==L?void 0:L.navCounter),style:null==N?void 0:N.navCounter},{children:[T+1," / ",q]})),n.jsx("button",e.__assign({onClick:function(){if(0!==q){var e=T>0?T-1:q-1;k(e),setTimeout(function(){var n;null===(n=V.current[e])||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:T<=0,className:s(l.default.navButton,null==L?void 0:L.navButtonPrev),style:null==N?void 0:N.navButtonPrev},{children:n.jsx(t.ChevronUp,{size:14,className:l.default.navButtonIcon})})),n.jsx("button",e.__assign({onClick:function(){if(0!==q){var e=T<q-1?T+1:0;k(e),setTimeout(function(){var n;null===(n=V.current[e])||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},50)}},disabled:T>=q-1,className:s(l.default.navButton,null==L?void 0:L.navButtonNext),style:null==N?void 0:N.navButtonNext},{children:n.jsx(t.ChevronDown,{size:14,className:l.default.navButtonIcon})}))]})}))]})),n.jsx("div",e.__assign({className:s(l.default.contentArea,null==L?void 0:L.contentArea),style:null==N?void 0:N.contentArea},{children:n.jsx("div",e.__assign({className:s(l.default.contentInner,null==L?void 0:L.contentInner),style:null==N?void 0:N.contentInner},{children:(H=d.split("\n"),P=0,W=0,F=[],H.forEach(function(i){var o=P,r=P+i.length;P+=i.length+1;var c=/^(\s*)(-|\*|\d+\.)\s+/.exec(i),g=/^(Title|Description|Training-basis):\s*/i.exec(i);g&&(W=0),c&&(W+=1);var v=!!c,x=!!g,_=c?c[0].length:0,I=o+_,p=U.filter(function(e){return e.startIndex<r&&e.endIndex>I}),j="line-".concat(o),C=function(i,t,a,o){x?F.push(n.jsx("span",e.__assign({className:s(l.default.headerLine,null==L?void 0:L.headerLine),style:null==N?void 0:N.headerLine},{children:i}),t)):v?F.push(n.jsxs("span",e.__assign({className:s(l.default.listItemLine,null==L?void 0:L.listItemLine),style:e.__assign({paddingLeft:c[1]?"1rem":"0"},null==N?void 0:N.listItemLine)},{children:[a&&n.jsxs("span",e.__assign({className:s(l.default.listCounter,null==L?void 0:L.listCounter),style:null==N?void 0:N.listCounter},{children:[W,"."]})),n.jsx("span",{children:i})]}),t)):F.push(n.jsx("span",e.__assign({className:s(l.default.blockLine,null==L?void 0:L.blockLine),style:null==N?void 0:N.blockLine},{children:i}),t))},y=v&&1===p.length&&p[0].startIndex<=I&&p[0].endIndex>=r;if(0===p.length)C(h(i.substring(_)),j,!0);else if(y){var w=p[0],k=w.highlightIndex===T,A=z.has(w.highlightIndex),B=m?k?"".concat(l.default.highlightBlockRow," ").concat(l.default.highlightActiveVariant):"".concat(l.default.highlightBlockRow," ").concat(l.default.highlightVariantRow):k?"".concat(l.default.highlightBlockRow," ").concat(l.default.highlightActive):l.default.highlightBlockRow;F.push(n.jsxs("span",e.__assign({ref:function(e){V.current[w.highlightIndex]=e},className:"".concat(l.default.listItemLine," ").concat(B),role:"button",tabIndex:0,onClick:function(){return K(w.highlightIndex,w.text)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||K(w.highlightIndex,w.text)},style:{paddingLeft:c[1]?"1rem":"0"}},{children:[n.jsxs("span",e.__assign({className:l.default.listCounter},{children:[W,"."]})),n.jsx("span",{children:h(d.substring(I,r))}),A?n.jsx(t.ChevronUp,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}}):n.jsx(t.ChevronDown,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}})]}),j)),A&&u[w.highlightIndex]?F.push(n.jsx("div",e.__assign({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:n.jsx(a.default,{item:e.__assign(e.__assign({},u[w.highlightIndex]),{confidence_score:void 0}),headerTitle:f||"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:t.ChevronDown,ChevronUpIcon:t.ChevronUp,MaximizeIcon:t.Maximize2,CloseIcon:t.X},bodyHeight:"100%",disableMaximize:!0,index:w.highlightIndex})}),"expanded-".concat(w.highlightIndex))):A&&b&&F.push(n.jsxs("div",e.__assign({className:l.default.loadingContainer},{children:[n.jsx(t.Loader2,{size:16,className:l.default.spinnerIcon}),n.jsx("span",{children:"Loading..."})]}),"loading-".concat(w.highlightIndex)))}else{var D=I,G=[],M=!0,R=p[0],E=R.highlightIndex===T;m?E?"".concat(l.default.highlight," ").concat(l.default.highlightActiveVariant):l.default.highlightVariant:E?"".concat(l.default.highlight," ").concat(l.default.highlightActive):l.default.highlight,v&&R.startIndex;for(var S=function(i){var o=Math.max(i.startIndex,I),c=Math.min(i.endIndex,r);if(o>=c)return"continue";if(o>D){var g=d.substring(D,o);G.push(n.jsx("span",{children:h(g)},"t-".concat(D)))}var v=i.highlightIndex===T,x=m?v?s(l.default.highlight,l.default.highlightActiveVariant,null==L?void 0:L.highlight,null==L?void 0:L.highlightActiveVariant):s(l.default.highlightVariant,null==L?void 0:L.highlightVariant):v?s(l.default.highlight,l.default.highlightActive,null==L?void 0:L.highlight,null==L?void 0:L.highlightActive):s(l.default.highlight,null==L?void 0:L.highlight),_=m?v?e.__assign(e.__assign({},null==N?void 0:N.highlight),null==N?void 0:N.highlightActiveVariant):e.__assign({},null==N?void 0:N.highlightVariant):v?e.__assign(e.__assign({},null==N?void 0:N.highlight),null==N?void 0:N.highlightActive):e.__assign({},null==N?void 0:N.highlight),p=z.has(i.highlightIndex);if(G.push(n.jsxs("span",e.__assign({ref:function(e){V.current[i.highlightIndex]=e},className:x,role:"button",tabIndex:0,onClick:function(){return K(i.highlightIndex,i.text)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||K(i.highlightIndex,i.text)},style:e.__assign({cursor:"pointer"},_)},{children:[d.substring(o,c),p?n.jsx(t.ChevronUp,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}}):n.jsx(t.ChevronDown,{size:12,style:{verticalAlign:"middle",marginLeft:"2px"}})]}),"h-".concat(i.highlightIndex))),D=c,p&&u[i.highlightIndex]){var y=M?j:"".concat(j,"-chunk-").concat(o);C(G,y,M),M=!1,G=[],F.push(n.jsx("div",e.__assign({style:{marginTop:"0.5rem",marginBottom:"0.5rem"}},{children:n.jsx(a.default,{item:e.__assign(e.__assign({},u[i.highlightIndex]),{confidence_score:void 0}),headerTitle:f||"GPT - Gemini 3.1 Flash Lite",iconsConfig:{ChevronDownIcon:t.ChevronDown,ChevronUpIcon:t.ChevronUp,MaximizeIcon:t.Maximize2,CloseIcon:t.X},bodyHeight:"100%",disableMaximize:!0,index:i.highlightIndex})}),"expanded-".concat(i.highlightIndex)))}else p&&b&&(y=M?j:"".concat(j,"-chunk-").concat(o),C(G,y,M),M=!1,G=[],F.push(n.jsxs("div",e.__assign({className:l.default.loadingContainer},{children:[n.jsx(t.Loader2,{size:16,className:l.default.spinnerIcon}),n.jsx("span",{children:"Loading..."})]}),"loading-".concat(i.highlightIndex))))},q=0,H=p;q<H.length;q++)S(H[q]);if(D<r&&G.push(n.jsx("span",{children:h(d.substring(D,r))},"t-end-".concat(r))),G.length>0||M){var X=M?j:"".concat(j,"-tail");C(G,X,M)}}}),F)}))}))]}))};
2
2
  //# sourceMappingURL=TextualGuideLinesComponent.js.map
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),o=require("./features/Bookemon/Bookemon.js"),r=require("./features/PdfEditorCitation/PdfEditorCitation.js"),n=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),p=require("./features/ChatCitation/ChatCitationRenderer.js"),l=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),d=require("./features/PdfViewer/PdfViewer.js"),f=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),x=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),g=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),m=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),c=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),q=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),j=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),R=require("./features/TableCitation/TableCitationContent.js"),S=require("./features/CitationViewer/CitationsViewer.js"),I=require("./features/ExcelCitation/ExcelCitations.js"),T=require("./features/ScannedDocCitation/ScannedDocCitation.js"),D=require("./features/ChatDrawer/ChatDrawer.js"),w=require("./features/ChatDrawer/constants/ChatDrawer.js"),b=require("./features/SplitterCitations/SplitterCitationsComponent.js"),E=require("./features/DualCitation/SourceBQDataCompnent.js"),W=require("./features/CognitiveCompare/CognitiveCompare.js"),h=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),P=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),v=require("./features/RulebookCitations/RuleBookCitationWrapper.js"),A=require("./features/IngestionStatus/IngestionStatusComponent.js"),k=require("./features/ManageRemainders/ManageReminders.js"),F=require("./features/GptWebCitation/GptWebCitation.js"),V=require("./hooks/useOnDemandCitationFetch.js"),G=require("./features/InstantLearningCitation/InstantLearningCitationComponent.js"),U=require("./features/ParentCitationComponent/ParentCitationComponent.js"),_=require("./features/GptWebCitation/utils/citationData.utils.js"),M=require("./features/GptWebCitation/types.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=o.default,exports.PdfCitation=r.PdfEditorCitation,exports.CitationRenderer=n.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=p.default,exports.CognitiveDecisioningCard=l.default,exports.PdfViewer=d.default,exports.FaqCitation=f.default,exports.ImageCitationContent=x.default,exports.VideoCitationContent=g.default,exports.FileCitationContent=m.default,exports.WebCitationWithImageContent=c.default,exports.MarkdownWithImageCitation=q.default,exports.AiReasoningCitation=j.default,exports.TableCitationContent=R.default,exports.CitationsViewer=S.default,exports.ExcelCitation=I.default,exports.ScannedDocCitation=T.default,exports.ChatDrawer=D.default,exports.FILE_INGESTION_STATUS=w.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=w.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=w.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=b.default,exports.SourcesBQCitation=E.SourcesBQCitation,exports.findSourceCitation=E.findSourceCitation,exports.parseSourcesBQHref=E.parseSourcesBQHref,exports.CognitiveCompare=W.default,exports.CognitiveInternalgptCoreComponent=h.default,exports.TextualGuideLinesComponent=P.default,exports.RuleBookCitationWrapper=v.default,exports.IngestionStatusChip=A.IngestionStatusChip,exports.IngestionStatusComponent=A.IngestionStatusComponent,exports.ManageReminders=k.ManageReminders,exports.GptWebCitation=F.default,exports.useOnDemandCitationFetch=V.useOnDemandCitationFetch,exports.InstantLearningCitationWrapper=G.default,exports.ParentCitationComponent=U.default,exports.extractLearnedFromUrl=_.extractLearnedFromUrl,exports.extractRelevanceScoreFromContent=_.extractRelevanceScoreFromContent,exports.extractTopicFromContent=_.extractTopicFromContent,exports.getWebCitationImageUrl=_.getWebCitationImageUrl,exports.mapCitationDataToDisplay=_.mapCitationDataToDisplay,exports.resolveSkeletonVisitUrl=_.resolveSkeletonVisitUrl,exports.sanitizeExternalUrl=_.sanitizeExternalUrl,Object.defineProperty(exports,"CitationType",{enumerable:!0,get:function(){return M.CitationType}}),exports.allowsGptCitationView=M.allowsGptCitationView,exports.allowsWebCitationView=M.allowsWebCitationView,exports.showsCitationViewToggle=M.showsCitationViewToggle;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),o=require("./features/Bookemon/Bookemon.js"),r=require("./features/PdfEditorCitation/PdfEditorCitation.js"),n=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),p=require("./features/ChatCitation/ChatCitationRenderer.js"),l=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),d=require("./features/PdfViewer/PdfViewer.js"),f=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),x=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),g=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),c=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),m=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),q=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),j=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),R=require("./features/TableCitation/TableCitationContent.js"),S=require("./features/CitationViewer/CitationsViewer.js"),I=require("./features/ExcelCitation/ExcelCitations.js"),T=require("./features/ScannedDocCitation/ScannedDocCitation.js"),D=require("./features/ChatDrawer/ChatDrawer.js"),w=require("./features/ChatDrawer/constants/ChatDrawer.js"),b=require("./features/SplitterCitations/SplitterCitationsComponent.js"),E=require("./features/DualCitation/SourceBQDataCompnent.js"),A=require("./features/CognitiveCompare/CognitiveCompare.js"),W=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),h=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),P=require("./features/RulebookCitations/RuleBookCitationWrapper.js"),v=require("./features/IngestionStatus/IngestionStatusComponent.js"),k=require("./features/ManageRemainders/ManageReminders.js"),F=require("./features/GptWebCitation/GptWebCitation.js"),V=require("./hooks/useOnDemandCitationFetch.js"),B=require("./features/InstantLearningCitation/InstantLearningCitationComponent.js"),G=require("./features/BPACitationRenderer/BPACitationRenderer.js"),U=require("./features/GptWebCitation/utils/citationData.utils.js"),_=require("./features/GptWebCitation/types.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=o.default,exports.PdfCitation=r.PdfEditorCitation,exports.CitationRenderer=n.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=p.default,exports.CognitiveDecisioningCard=l.default,exports.PdfViewer=d.default,exports.FaqCitation=f.default,exports.ImageCitationContent=x.default,exports.VideoCitationContent=g.default,exports.FileCitationContent=c.default,exports.WebCitationWithImageContent=m.default,exports.MarkdownWithImageCitation=q.default,exports.AiReasoningCitation=j.default,exports.TableCitationContent=R.default,exports.CitationsViewer=S.default,exports.ExcelCitation=I.default,exports.ScannedDocCitation=T.default,exports.ChatDrawer=D.default,exports.FILE_INGESTION_STATUS=w.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=w.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=w.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=b.default,exports.SourcesBQCitation=E.SourcesBQCitation,exports.findSourceCitation=E.findSourceCitation,exports.parseSourcesBQHref=E.parseSourcesBQHref,exports.CognitiveCompare=A.default,exports.CognitiveInternalgptCoreComponent=W.default,exports.TextualGuideLinesComponent=h.default,exports.RuleBookCitationWrapper=P.default,exports.IngestionStatusChip=v.IngestionStatusChip,exports.IngestionStatusComponent=v.IngestionStatusComponent,exports.ManageReminders=k.ManageReminders,exports.GptWebCitation=F.default,exports.useOnDemandCitationFetch=V.useOnDemandCitationFetch,exports.InstantLearningCitationWrapper=B.default,exports.BPACitationRenderer=G.default,exports.extractLearnedFromUrl=U.extractLearnedFromUrl,exports.extractRelevanceScoreFromContent=U.extractRelevanceScoreFromContent,exports.extractTopicFromContent=U.extractTopicFromContent,exports.getWebCitationImageUrl=U.getWebCitationImageUrl,exports.mapCitationDataToDisplay=U.mapCitationDataToDisplay,exports.resolveSkeletonVisitUrl=U.resolveSkeletonVisitUrl,exports.sanitizeExternalUrl=U.sanitizeExternalUrl,Object.defineProperty(exports,"CitationType",{enumerable:!0,get:function(){return _.CitationType}}),exports.allowsGptCitationView=_.allowsGptCitationView,exports.allowsWebCitationView=_.allowsWebCitationView,exports.showsCitationViewToggle=_.showsCitationViewToggle;
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as i}from"tslib";import{jsxs as t,jsx as n,Fragment as e}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronDown as a,ChevronUp as l,Maximize2 as r,X as d,ExternalLink as c}from"lucide-react";import s from"@mui/material/Dialog";import u from"@mui/material/DialogTitle";import g from"@mui/material/DialogContent";import v from"@mui/material/IconButton";import h from"dayjs";import m from"../ScannedDocCitation/ScannedDocCitation.js";import C from"../InstantLearningCitation/InstantLearningCitationComponent.js";import p from"../InstantLearningCitation/SlashLoader.js";import f from"../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";import D from"../RequirementAiCitations/ImageCitation/ImageCitationContent.js";import T from"../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";import I from"../ChatCitation/ChatCitationRenderer.js";import b from"../DualCitation/RuleBookCitationComponent.js";import _ from"../CitationRenderer/CitationRenderer.js";import P from"../SplitterCitations/SplitterCitationsComponent.js";import{SourcesBQCitation as R}from"../DualCitation/SourceBQDataCompnent.js";import{CITATION_TYPES as S}from"./citationTypes.js";var A=function(i,t,n){if(!i)throw new Error("[BPACitationRenderer] ".concat(t,': missing required field "').concat(n,'" in customMetaData'))},L=function(i,t){if(!Object.values(i).some(Boolean))throw new Error("[BPACitationRenderer] ".concat(t,': missing one of "').concat(Object.keys(i).join('", "'),'" in customMetaData'))},w=function(a){var l=a.children,r=a.content,c=o(!1),h=c[0],m=c[1];return t(e,{children:[n("span",i({style:{display:"inline-flex",alignItems:"center",cursor:"pointer",fontSize:"14px",fontWeight:400,color:"#526eff"},onClick:function(){return m(!0)}},{children:l})),t(s,i({open:h,onClose:function(){return m(!1)},maxWidth:"md",fullWidth:!0},{children:[t(u,i({style:{fontWeight:"bold"}},{children:["Guidelines",n(v,i({edge:"end",onClick:function(){return m(!1)},"aria-label":"close",style:{position:"absolute",top:5,right:16},size:"large"},{children:n(d,{})}))]})),n(g,i({style:{maxHeight:"70vh",overflow:"auto"}},{children:r}))]}))]})},x=function(e){var s,u,g,v,U,y,B,j,k,H,G,O,E,W,N,z,F,M,q,K,Q,J,V,X,Y,Z,$,ii=e.href,ti=e.children,ni=e.isStreaming,ei=e.onCitationToggle,oi=e.chatCitationConfig,ai=e.scannedDocCitationConfig,li=e.ruleBookCitationConfig,ri=e.ilCitationConfig,di=e.gptCitationConfig,ci=e.scannedDocCitationData,si=e.ilCitationData,ui=e.chatCitationData,gi=e.gptCitationData,vi=e.webCitationData,hi=e.imageCitationData,mi=e.bqCitationData,Ci=e.title,pi=e.citationIcon,fi=e.isDualCitationFlag,Di=void 0!==fi&&fi,Ti=o(!1),Ii=Ti[0],bi=Ti[1];if(ni)return t("span",i({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[n("span",{children:ti}),n(p,{})]}));try{var _i=new URL(ii,"http://example.com"),Pi=null!==(s=_i.searchParams.get("citationNumber"))&&void 0!==s?s:_i.searchParams.get("citation_number"),Ri=null!==(u=_i.searchParams.get("decisionStrength"))&&void 0!==u?u:_i.searchParams.get("decision_strength"),Si=_i.searchParams.get("citation_type"),Ai=Di||Si===S.DUAL;if(!Pi)return null;if(Si===S.SCANNED_DOC){var Li=null==ci?void 0:ci.pages;if(null==Li?void 0:Li.length)return n(m,i({pages:Li,subHeadingText:null==ci?void 0:ci.artifactTitle},ai));A(null==ci?void 0:ci.gsUrl,"scanned_doc_citation","gs_url");var wi=[ci.gsUrl],xi=(null!==(g=null==ci?void 0:ci.highlightedCoordinates)&&void 0!==g?g:[]).map(function(i,t){return{pageIndex:t,bboxes:[i]}});return n(m,i({images:wi,highlights:xi},ai))}if(Si===S.IL){A(null==si?void 0:si.ilLearning,"IL","il_learning");var Ui=ti||(null==si?void 0:si.linkText)||(null==si?void 0:si.citationSource)||String(null!==(v=null==si?void 0:si.citationNumber)&&void 0!==v?v:1);return n(C,{ilLearning:si.ilLearning,ilLearningHighlights:null==si?void 0:si.ilLearningHighlights,comparisonHighlights:null==si?void 0:si.comparisonHighlights,decisionStrength:Ri||(null==si?void 0:si.decisionStrength)||"",linkTitle:Ui,onCitationToggle:null!=ei?ei:function(){},config:ri})}if(Si===S.CHAT){var yi=null!=oi?oi:{},Bi=null===(y=null!==(U=null==ui?void 0:ui.chatData)&&void 0!==U?U:[])||void 0===y?void 0:y.map(function(t){return i(i({},t),{timeStamp:h(t.timeStamp)})}),ji=!!(null==ui?void 0:ui.ruleBookContent);return n(I,{showRootContainer:null===(B=yi.showRootContainer)||void 0===B||B,reversePanels:yi.reversePanels,isRenderedCustomComponent:yi.isRenderedCustomComponent,modalContainerStyle:yi.modalContainerStyle,additionalData:yi.additionalData,closePreview:yi.closePreview,selectedIdFromReason:null!==(j=yi.selectedIdFromReason)&&void 0!==j?j:void 0,rootContainer:i(i({},yi.rootContainer),{relevanceScore:null==ui?void 0:ui.relevanceScore}),chatContainer:i(i({},yi.chatContainer),{chatData:Bi,summarizedTab:i(i({},null===(k=yi.chatContainer)||void 0===k?void 0:k.summarizedTab),{chip:i({isActive:!0,show:!0},null===(G=null===(H=yi.chatContainer)||void 0===H?void 0:H.summarizedTab)||void 0===G?void 0:G.chip)}),detailedTab:i(i({},null===(O=yi.chatContainer)||void 0===O?void 0:O.detailedTab),{chip:i({isActive:!1},null===(W=null===(E=yi.chatContainer)||void 0===E?void 0:E.detailedTab)||void 0===W?void 0:W.chip)})}),ruleBookContainer:ji?i(i({},yi.ruleBookContainer),{data:{content:ui.ruleBookContent,highlighted_texts:null!==(N=null==ui?void 0:ui.ruleBookHighlights)&&void 0!==N?N:[]}}):void 0})}if(Si===S.GPT){var ki=null==gi?void 0:gi.value,Hi=null!==(z=null==ki?void 0:ki.text)&&void 0!==z?z:null===(F=null==gi?void 0:gi.dataSources)||void 0===F?void 0:F[0],Gi=null!==(M=null==ki?void 0:ki.label)&&void 0!==M?M:null===(q=null==gi?void 0:gi.trainingDataTitle)||void 0===q?void 0:q[0],Oi=null!==(K=null==ki?void 0:ki.paraphrase)&&void 0!==K?K:null===(Q=null==gi?void 0:gi.paraphrase)||void 0===Q?void 0:Q[0];L({data_sources:Hi,training_data_title:Gi},S.GPT);var Ei={text:"",dataSource:Hi,trainingDataTitle:Gi,paraphrase:Oi},Wi=null!==(J=null==di?void 0:di.iconsConfig)&&void 0!==J?J:{ChevronDownIcon:a,ChevronUpIcon:l,MaximizeIcon:r,CloseIcon:d};return n(f,{item:Ei,headerTitle:null!==(V=null==di?void 0:di.headerTitle)&&void 0!==V?V:"GPT - Gemini 3.5 Flash",iconsConfig:Wi,previewCallback:null==di?void 0:di.previewCallback,DocumentTitle:null==di?void 0:di.DocumentTitle,disableMaximize:Ai})}if(Si===S.WEB){!function(i,t,n){A(i,t,n);try{new URL(i)}catch(e){throw new Error("[BPACitationRenderer] ".concat(t,': "').concat(n,'" is not a valid URL: "').concat(i,'"'))}}(null==vi?void 0:vi.link,S.WEB,"link");var Ni=vi.link,zi=ti||(null==vi?void 0:vi.citationSource)||Ni;return(null==vi?void 0:vi.screenshotUrl)?n(T,{url:Ni,label:zi,gsUtilPath:null==vi?void 0:vi.gsUtilPath,signedUrl:vi.screenshotUrl,relevanceScore:null==vi?void 0:vi.relevanceScore,visitIcon:c,PreviewDialogCloseIcon:d}):n("a",i({href:Ni,target:"_blank",rel:"noreferrer"},{children:zi}))}if(Si===S.IMAGE)return L({gs_util_path:null==hi?void 0:hi.gsUtilPath,signed_url:null==hi?void 0:hi.signedUrl},S.IMAGE),n(D,{citationTitle:ti||(null==hi?void 0:hi.citationSource),gsUtilPath:null==hi?void 0:hi.gsUtilPath,signedUrl:null==hi?void 0:hi.signedUrl,relevanceScore:null==hi?void 0:hi.relevanceScore});if(Si===S.BQ_DATA)return L({href_params:null==mi?void 0:mi.hrefParams,source_obj:null==mi?void 0:mi.sourceObj},S.BQ_DATA),n(R,i({hrefParams:mi.hrefParams,sourceObj:mi.sourceObj,showChevron:!1,defaultOpen:!0},{children:ti||""}));if(Si===S.RULEBOOK||Si===S.RULEBOOK_CHUNK){var Fi=Pi?parseInt(Pi,10):0,Mi=n(b,{url:null!==(X=null==li?void 0:li.url)&&void 0!==X?X:"",data:{citationNumber:null!==(Z=null===(Y=null==li?void 0:li.data)||void 0===Y?void 0:Y.citationNumber)&&void 0!==Z?Z:Fi,fileDetails:null===($=null==li?void 0:li.data)||void 0===$?void 0:$.fileDetails},msg:null==li?void 0:li.msg,citationIndex:null==li?void 0:li.citationIndex,guidelines:null==li?void 0:li.guidelines,additionalClassNames:null==li?void 0:li.additionalClassNames,headerTitle:null==li?void 0:li.headerTitle,InternalGptReasoningData:null==li?void 0:li.InternalGptReasoningData,isDataProvided:null==li?void 0:li.isDataProvided,textualContent:null==li?void 0:li.textualContent,phraseToHighlight:null==li?void 0:li.phraseToHighlight,IgptHeaderTitle:null==li?void 0:li.IgptHeaderTitle,isInternalGptReasoningLoading:null==li?void 0:li.isInternalGptReasoningLoading,onAccordionToggle:null==li?void 0:li.onAccordionToggle});return Di?Mi:n(w,i({content:Mi},{children:ti}))}if(Si===S.IL_RULEBOOK){var qi=n(b,{headerTitle:null==li?void 0:li.headerTitle,InternalGptReasoningData:null==li?void 0:li.InternalGptReasoningData,isDataProvided:null==li?void 0:li.isDataProvided,textualContent:null==li?void 0:li.textualContent,phraseToHighlight:null==li?void 0:li.phraseToHighlight,IgptHeaderTitle:null==li?void 0:li.IgptHeaderTitle,onAccordionToggle:null==li?void 0:li.onAccordionToggle,isInternalGptReasoningLoading:null==li?void 0:li.isInternalGptReasoningLoading});return Di?qi:n(w,i({content:qi},{children:ti}))}if(Si===S.DUAL){var Ki=_i.searchParams.get("left_citation_type"),Qi=_i.searchParams.get("right_citation_type");if(Ki===S.DUAL||Qi===S.DUAL)return console.error("left or right citation type cant be dual_citation"),null;var Ji=function(i,t){var n="".concat(i,"."),e="left"===i?"right.":"left.",o=new URLSearchParams;return _i.searchParams.forEach(function(i,t){"citation_type"!==t&&"left_citation_type"!==t&&"right_citation_type"!==t&&(t.startsWith(n)||t.startsWith(e)||o.set(t,i))}),_i.searchParams.forEach(function(i,t){t.startsWith(n)&&o.set(t.slice(n.length),i)}),t&&o.set("citation_type",t),"?".concat(o.toString())},Vi=Ji("left",Ki),Xi=Ji("right",Qi),Yi=ti||Ci||"Source and Guidelines",Zi=function(i){switch(i){case S.SCANNED_DOC:return{scannedDocCitationData:ci,scannedDocCitationConfig:ai};case S.IL:return{ilCitationData:si,ilCitationConfig:ri};case S.CHAT:return{chatCitationData:ui,chatCitationConfig:oi};case S.GPT:return{gptCitationData:gi,gptCitationConfig:di};case S.WEB:return{webCitationData:vi};case S.IMAGE:return{imageCitationData:hi};case S.BQ_DATA:return{bqCitationData:mi};case S.RULEBOOK:return{ruleBookCitationConfig:li};default:return{}}};return n(_,{inLineCitation:!0,citationTitle:Yi,citationIcon:pi,isOpen:Ii,onToggle:function(){return bi(function(i){return!i})},styles:{pillButton:{fontSize:"14px",margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}},citationComponent:n(P,{left:n(x,i({href:Vi,onCitationToggle:ei},Zi(Ki),{isDualCitationFlag:!0})),right:n(x,i({href:Xi,onCitationToggle:ei,isDualCitationFlag:!0},Zi(Qi))),header:{title:Yi,showDocIcon:!1},openInFullscreen:!0,fullscreenOnly:!0,onFullscreenClose:function(){return bi(!1)}})})}console.warn('[BPACitationRenderer] unhandled citation_type: "'.concat(Si,'"'))}catch(i){return console.error(i),null}return null};export{x as default};
2
+ //# sourceMappingURL=BPACitationRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BPACitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- var t={SCANNED_DOC:"scanned_doc_citation",IL:"IL",CHAT:"chat_citation",GPT:"gpt_citation",WEB:"web_citation",IMAGE:"image_citation",BQ_DATA:"bq_data",RULEBOOK:"rulebook_citation",IL_RULEBOOK:"il_rulebook_citation",DUAL:"dual_citation"};export{t as CITATION_TYPES};
1
+ var t={SCANNED_DOC:"scanned_doc_citation",IL:"IL",CHAT:"chat_citation",GPT:"gpt_citation",WEB:"web_citation",IMAGE:"image_citation",BQ_DATA:"bq_data",RULEBOOK:"rulebook_citation",RULEBOOK_CHUNK:"rulebook_chunk",IL_RULEBOOK:"il_rulebook_citation",DUAL:"dual_citation"};export{t as CITATION_TYPES};
2
2
  //# sourceMappingURL=citationTypes.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as i,__awaiter as e,__generator as l}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import{useState as t,useEffect as r}from"react";import{Loader2 as a}from"lucide-react";import d from"../TextualGuidelines/TextualGuideLinesComponent.js";import{getNestedValue as u,isJSONFile as s,getFileContent as c,getSignedUrl as v}from"./RuleBookCitationApiComponent.js";var f=function(f){var g,p,h,m,x,b,y=f.data,_=f.msg,C=f.citationIndex,D=f.guidelines,k=void 0===D?[]:D,T=f.url,I=f.additionalClassNames,R=f.headerTitle,w=void 0===R?"Rule Book Citation":R,L=f.InternalGptReasoningData,A=void 0===L?[]:L,G=f.IgptHeaderTitle,H=f.isDataProvided,j=void 0!==H&&H,B=f.textualContent,N=f.phraseToHighlight,S=f.onAccordionToggle,E=f.isInternalGptReasoningLoading,U=void 0!==E&&E;console.log("Max Latest code 6.0");var M=Math.max((null!==(p=null!==(g=null==y?void 0:y.citationNumber)&&void 0!==g?g:C)&&void 0!==p?p:1)-1,0),O=(null==_?void 0:_.requestId)||(null==_?void 0:_.id)||"",q=t(null),z=q[0],F=q[1],J=t(null),P=J[0],V=J[1],W=t(null),K=W[0],Q=W[1],X=t(!1),Y=X[0],Z=X[1],$=t(null),ii=$[0],ei=$[1];r(function(){var i,e,l,n;if(!j&&!z){if(null===(i=null==y?void 0:y.fileDetails)||void 0===i?void 0:i.file_id)return ei(null),F(y.fileDetails.file_id),void V(y.fileDetails.phrase_to_highlight||null);var o=(null!==(n=null===(l=null===(e=null==_?void 0:_.artifactSearchData)||void 0===e?void 0:e.ruleBookData)||void 0===l?void 0:l.rulebook_citations)&&void 0!==n?n:[])[M];if(!o)return ei("Citation not found at the specified index."),F(null),void V(null);if(!o.file_id)return ei("Citation data is missing file_id."),F(null),void V(null);Q(null),ei(null),F(o.file_id),V(o.phrase_to_highlight||null)}},[j,O,M,z,null===(h=null==y?void 0:y.fileDetails)||void 0===h?void 0:h.file_id,null===(m=null==y?void 0:y.fileDetails)||void 0===m?void 0:m.phrase_to_highlight,null===(b=null===(x=null==_?void 0:_.artifactSearchData)||void 0===x?void 0:x.ruleBookData)||void 0===b?void 0:b.rulebook_citations]),r(function(){if(!j)if(z){var i=Array.isArray(k)?k:Object.values(k||{}).flat();e(void 0,void 0,void 0,function(){var e,n,o,t,r,a,d,f;return l(this,function(l){switch(l.label){case 0:if(!(null==(e=i.find(function(i){return i.id===z}))?void 0:e.gcsUrl))return ei("File URL not found."),[2];l.label=1;case 1:return l.trys.push([1,4,5,6]),Z(!0),ei(null),[4,v(e.gcsUrl,null!=T?T:"")];case 2:if(null==(n=l.sent())?void 0:n.error)throw new Error(n.error);return o=(null===(f=e.name)||void 0===f?void 0:f.toLowerCase().split(".").pop())||"",s(o)?[4,c(e.gcsUrl,null!=T?T:"")]:[2];case 3:if(!(null==(t=l.sent())?void 0:t.trim()))throw new Error("Empty file content returned from the backend.");return r=JSON.parse(t),a=u(r,"data.artifactData.userStorySnapshot[0].value"),Q(a||""),[3,6];case 4:return d=l.sent(),console.error(d),ei(d.message||"An error occurred while loading file contents."),Q(null),[3,6];case 5:return Z(!1),[7];case 6:return[2]}})})}else Q(null)},[j,z,k,T]);var li=!j&&Y,ni=j?N||null:P,oi=j?B||"":(null==K?void 0:K.replace(/\\\./g,"."))||"",ti=j?!!B:!!K;return n("div",i({className:null==I?void 0:I.container,style:{width:"100%",minHeight:"100px",backgroundColor:"transparent"}},{children:[li&&n("div",i({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[o(a,{style:{animation:"spin 1s linear infinite"},size:24}),o("span",{children:"Loading content..."})]})),ii&&!li&&n("div",i({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[o("strong",{children:"Error:"})," ",ii]})),!li&&!ii&&ti&&o("div",i({style:{marginTop:"12px"}},{children:o(d,{TextualGuideLines:oi,HighlightedWords:ni?[ni]:[],InternalGptReasoningData:A,index:0,headerTitle:w,useVariantHighlight:!1,IgptHeaderTitle:G,onAccordionToggle:S,isInternalGptReasoningLoading:U})})),!li&&!ii&&!ti&&o("div",i({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available."})),o("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};export{f as default};
1
+ import{__assign as i,__awaiter as e,__generator as l}from"tslib";import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as r}from"react";import{Loader2 as a}from"lucide-react";import d from"../TextualGuidelines/TextualGuideLinesComponent.js";import{getNestedValue as u,isJSONFile as s,getFileContent as c,getSignedUrl as v}from"./RuleBookCitationApiComponent.js";var f=function(f){var g,p,h,m,x,b,y=f.data,_=f.msg,C=f.citationIndex,D=f.guidelines,k=void 0===D?[]:D,T=f.url,I=f.additionalClassNames,R=f.headerTitle,w=void 0===R?"Rule Book Citation":R,A=f.InternalGptReasoningData,G=void 0===A?[]:A,H=f.IgptHeaderTitle,L=f.isDataProvided,j=void 0!==L&&L,B=f.textualContent,N=f.phraseToHighlight,S=f.onAccordionToggle,E=f.isInternalGptReasoningLoading,U=void 0!==E&&E,O=Math.max((null!==(p=null!==(g=null==y?void 0:y.citationNumber)&&void 0!==g?g:C)&&void 0!==p?p:1)-1,0),q=(null==_?void 0:_.requestId)||(null==_?void 0:_.id)||"",z=o(null),F=z[0],J=z[1],M=o(null),P=M[0],V=M[1],W=o(null),K=W[0],Q=W[1],X=o(!1),Y=X[0],Z=X[1],$=o(null),ii=$[0],ei=$[1];r(function(){var i,e,l,n;if(!j&&!F){if(null===(i=null==y?void 0:y.fileDetails)||void 0===i?void 0:i.file_id)return ei(null),J(y.fileDetails.file_id),void V(y.fileDetails.phrase_to_highlight||null);var t=(null!==(n=null===(l=null===(e=null==_?void 0:_.artifactSearchData)||void 0===e?void 0:e.ruleBookData)||void 0===l?void 0:l.rulebook_citations)&&void 0!==n?n:[])[O];if(!t)return ei("Citation not found at the specified index."),J(null),void V(null);if(!t.file_id)return ei("Citation data is missing file_id."),J(null),void V(null);Q(null),ei(null),J(t.file_id),V(t.phrase_to_highlight||null)}},[j,q,O,F,null===(h=null==y?void 0:y.fileDetails)||void 0===h?void 0:h.file_id,null===(m=null==y?void 0:y.fileDetails)||void 0===m?void 0:m.phrase_to_highlight,null===(b=null===(x=null==_?void 0:_.artifactSearchData)||void 0===x?void 0:x.ruleBookData)||void 0===b?void 0:b.rulebook_citations]),r(function(){if(!j)if(F){var i=Array.isArray(k)?k:Object.values(k||{}).flat();e(void 0,void 0,void 0,function(){var e,n,t,o,r,a,d,f;return l(this,function(l){switch(l.label){case 0:if(!(null==(e=i.find(function(i){return i.id===F}))?void 0:e.gcsUrl))return ei("File URL not found."),[2];l.label=1;case 1:return l.trys.push([1,4,5,6]),Z(!0),ei(null),[4,v(e.gcsUrl,null!=T?T:"")];case 2:if(null==(n=l.sent())?void 0:n.error)throw new Error(n.error);return t=(null===(f=e.name)||void 0===f?void 0:f.toLowerCase().split(".").pop())||"",s(t)?[4,c(e.gcsUrl,null!=T?T:"")]:[2];case 3:if(!(null==(o=l.sent())?void 0:o.trim()))throw new Error("Empty file content returned from the backend.");return r=JSON.parse(o),a=u(r,"data.artifactData.userStorySnapshot[0].value"),Q(a||""),[3,6];case 4:return d=l.sent(),console.error(d),ei(d.message||"An error occurred while loading file contents."),Q(null),[3,6];case 5:return Z(!1),[7];case 6:return[2]}})})}else Q(null)},[j,F,k,T]);var li=!j&&Y,ni=j?N||null:P,ti=j?B||"":(null==K?void 0:K.replace(/\\\./g,"."))||"",oi=j?!!B:!!K;return n("div",i({className:null==I?void 0:I.container,style:{width:"100%",minHeight:"100px",backgroundColor:"transparent"}},{children:[li&&n("div",i({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[t(a,{style:{animation:"spin 1s linear infinite"},size:24}),t("span",{children:"Loading content..."})]})),ii&&!li&&n("div",i({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[t("strong",{children:"Error:"})," ",ii]})),!li&&!ii&&oi&&t("div",i({style:{marginTop:"12px"}},{children:t(d,{TextualGuideLines:ti,HighlightedWords:ni?[ni]:[],InternalGptReasoningData:G,index:0,headerTitle:w,useVariantHighlight:!1,IgptHeaderTitle:H,onAccordionToggle:S,isInternalGptReasoningLoading:U})})),!li&&!ii&&!oi&&t("div",i({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available."})),t("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};export{f as default};
2
2
  //# sourceMappingURL=RuleBookCitationComponent.js.map
@@ -1,2 +1,2 @@
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};
1
+ import{__assign as e}from"tslib";import{jsx as n,jsxs as l,Fragment as o}from"react/jsx-runtime";import{useState as i,useRef as t,useEffect as d}from"react";import{FileText as a,X as c}from"lucide-react";import r from"./Splitter.module.css.js";import{AIMagicIcon as u,SidebarOpenIcon as s,SidebarCloseIcon as v,MaximizeIcon as h}from"./icons/icons.js";var f=function(f){var p,m,g,B,N,y,x,C,w,z,A,H,b,P,I=f.left,S=f.right,M=f.defaultLeftWidth,D=void 0===M?50:M,O=f.minLeftWidth,k=void 0===O?250:O,L=f.minRightWidth,R=void 0===L?250:L,T=f.className,E=void 0===T?"":T,F=f.height,j=void 0===F?"400px":F,W=f.width,q=void 0===W?"100%":W,X=f.header,G=f.onLeftWidthChange,J=f.openInFullscreen,K=void 0!==J&&J,Q=f.onFullscreenClose,U=f.fullscreenOnly,V=void 0!==U&&U,Y=f.classNames,Z=f.customStyles,$=f.iconProps,_=i(D),ee=_[0],ne=_[1],le=i(!1),oe=le[0],ie=le[1],te=i(!1),de=te[0],ae=te[1],ce=i(!1),re=ce[0],ue=ce[1],se=i(0),ve=se[0],he=se[1],fe=i(0),pe=fe[0],me=fe[1],ge=i(V||K),Be=ge[0],Ne=ge[1],ye=t(null),xe=t(null),Ce=t(null),we=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")},ze=null!==(p=null==$?void 0:$.collapse)&&void 0!==p?p:{};d(function(){var e=ye.current;e&&(Be?(e.showModal(),requestAnimationFrame(function(){if(Ce.current){var e=Ce.current.getBoundingClientRect().width;me(e),ne(D),ae(!1),ue(!1)}})):(e.close(),ne(D),ae(!1),ue(!1),null==Q||Q()))},[Be]),d(function(){var e=Ce.current;if(e&&Be){var n,l=new ResizeObserver(function(e){var l=e[0];n=requestAnimationFrame(function(){me(l.contentRect.width)})});return l.observe(e),function(){cancelAnimationFrame(n),l.disconnect()}}},[Be]),d(function(){var e=xe.current;if(e){var n,l=new ResizeObserver(function(e){var l=e[0];n=requestAnimationFrame(function(){he(l.contentRect.width)})});return l.observe(e),he(e.getBoundingClientRect().width),function(){cancelAnimationFrame(n),l.disconnect()}}},[]);var Ae=function(e){e.preventDefault(),ie(!0)};d(function(){var e=function(e){if(oe){var n=Be?Ce.current:xe.current;if(n){var l=n.getBoundingClientRect(),o=l.width,i=e.clientX-l.left;if(i>=k&&o-i-4>=R)ne(i/o*100),null==G||G(i)}}},n=function(){ie(!1)};return oe&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}},[oe,Be,k,R,G]);var He=function(){de?(ne(50),ae(!1)):ae(!0)},be=function(){re?(ne(50),ue(!1)):ue(!0)},Pe=Be?pe:ve,Ie=ee/100*Pe,Se=Pe-Ie-4,Me=Be?500:250,De=re?{flex:1}:{width:"".concat(ee,"%")},Oe=!de&&Ie<=Math.max(k+10,Me),ke=!re&&Se<=Math.max(R+10,Me),Le=function(e){return(null==Z?void 0:Z.confidenceBadge)?"":e>=80?r.confidenceScoreHigh:e>=60?r.confidenceScoreMedium:r.confidenceScoreLow},Re="number"==typeof j?"".concat(j,"px"):j,Te="number"==typeof q?"".concat(q,"px"):q,Ee=n("dialog",e({ref:ye,className:we(r.dialogOverlay,null==Y?void 0:Y.dialogOverlay),style:null==Z?void 0:Z.dialogOverlay,onClose:function(){return Ne(!1)}},{children:l("div",e({ref:Ce,className:we(r.dialogContent,null==Y?void 0:Y.dialogContent),style:null==Z?void 0:Z.dialogContent},{children:[X&&l("div",e({className:we(r.header,null==Y?void 0:Y.header),style:null==Z?void 0:Z.header},{children:[l("div",e({className:r.headerLeft},{children:[X.showDocIcon&&n(a,{className:we(r.headerIcon,null==Y?void 0:Y.headerIcon),style:e(e({},null==Z?void 0:Z.headerIcon),(null===(m=null==$?void 0:$.headerIcon)||void 0===m?void 0:m.color)?{color:$.headerIcon.color}:{})}),n("div",e({className:r.headerTitle},{children:X.title&&n("span",e({className:we(r.headerTitleText,null==Y?void 0:Y.headerTitle),style:null==Z?void 0:Z.headerTitle},{children:X.title}))}))]})),l("div",e({className:we(r.headerActions,null==Y?void 0:Y.headerActions),style:null==Z?void 0:Z.headerActions},{children:[void 0!==X.confidenceScore&&l("div",e({className:we(r.confidenceScore,Le(X.confidenceScore),null==Y?void 0:Y.confidenceBadge),style:null==Z?void 0:Z.confidenceBadge},{children:[n("div",e({style:{width:"16px",height:"16px"}},{children:n(u,{color:null===(g=null==$?void 0:$.magic)||void 0===g?void 0:g.color,size:null===(B=null==$?void 0:$.magic)||void 0===B?void 0:B.size})})),l("div",{children:[Math.round(X.confidenceScore),"%"]})]})),n("button",e({className:we(r.fullscreenButton,null==Y?void 0:Y.fullscreenButton),style:null==Z?void 0:Z.fullscreenButton,onClick:function(){return Ne(!1)},title:"Close fullscreen"},{children:n(c,{size:20,color:null!==(y=null===(N=null==$?void 0:$.close)||void 0===N?void 0:N.color)&&void 0!==y?y:"#5928ed"})}))]}))]})),l("div",e({className:"".concat(r.contentArea," ").concat(r.contentAreaHorizontal," ").concat(r.dialogContentArea)},{children:[!de&&n("div",e({className:we(r.panel,null!==(x=null==Y?void 0:Y.leftPanel)&&void 0!==x?x:null==Y?void 0:Y.panel),style:e(e({},De),null!==(C=null==Z?void 0:Z.leftPanel)&&void 0!==C?C:null==Z?void 0:Z.panel)},{children:I})),de&&n("button",e({onClick:He,className:"".concat(r.expandButton," ").concat(r.expandButtonHorizontal),title:"Expand left panel (50/50)"},{children:n(s,e({},ze))})),!de&&!re&&l("div",e({onMouseDown:Ae,className:we(r.divider,r.dividerHorizontal,oe?r.dividerDragging:r.dividerIdle,null==Y?void 0:Y.divider),style:null==Z?void 0:Z.divider},{children:[n("div",{className:"".concat(r.dividerHitArea," ").concat(r.dividerHitAreaHorizontal)}),Oe&&n("button",e({onClick:function(e){e.stopPropagation(),He()},onMouseDown:function(e){return e.stopPropagation()},className:we(r.collapseButton,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Collapse left panel"},{children:n(v,e({},ze))})),ke&&n("button",e({onClick:function(e){e.stopPropagation(),be()},onMouseDown:function(e){return e.stopPropagation()},className:we(r.collapseButton,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Collapse right panel"},{children:n(s,e({},ze))}))]})),!re&&n("div",e({className:we(r.panel,null!==(w=null==Y?void 0:Y.rightPanel)&&void 0!==w?w:null==Y?void 0:Y.panel),style:e({flex:1},null!==(z=null==Z?void 0:Z.rightPanel)&&void 0!==z?z:null==Z?void 0:Z.panel)},{children:S})),re&&n("button",e({onClick:be,className:"".concat(r.expandButton," ").concat(r.expandButtonRightHorizontal),title:"Expand right panel (50/50)"},{children:n(v,e({},ze))})),oe&&n("div",{className:"".concat(r.dragOverlay," ").concat(r.dragOverlayHorizontal)})]}))]}))}));return V?Ee:l(o,{children:[l("div",e({ref:xe,className:we(r.container,r.containerHorizontal,E,null==Y?void 0:Y.container),style:e({height:Re,width:Te},null==Z?void 0:Z.container)},{children:[X&&l("div",e({className:we(r.header,null==Y?void 0:Y.header),style:null==Z?void 0:Z.header},{children:[l("div",e({className:r.headerLeft},{children:[X.showDocIcon&&n(a,{className:we(r.headerIcon,null==Y?void 0:Y.headerIcon),style:e(e({},null==Z?void 0:Z.headerIcon),(null===(A=null==$?void 0:$.headerIcon)||void 0===A?void 0:A.color)?{color:$.headerIcon.color}:{})}),n("div",e({className:r.headerTitle},{children:X.title&&n("span",e({className:we(r.headerTitleText,null==Y?void 0:Y.headerTitle),style:null==Z?void 0:Z.headerTitle},{children:X.title}))}))]})),l("div",e({className:we(r.headerActions,null==Y?void 0:Y.headerActions),style:null==Z?void 0:Z.headerActions},{children:[void 0!==X.confidenceScore&&l("div",e({className:we(r.confidenceScore,Le(X.confidenceScore),null==Y?void 0:Y.confidenceBadge),style:null==Z?void 0:Z.confidenceBadge},{children:[n("div",e({style:{width:"16px",height:"16px"}},{children:n(u,{color:null===(H=null==$?void 0:$.magic)||void 0===H?void 0:H.color,size:null===(b=null==$?void 0:$.magic)||void 0===b?void 0:b.size})})),l("div",{children:[Math.round(X.confidenceScore),"%"]})]})),n("button",e({className:we(r.fullscreenButton,null==Y?void 0:Y.fullscreenButton),style:null==Z?void 0:Z.fullscreenButton,onClick:function(){return Ne(!0)},title:"Open fullscreen"},{children:n(h,{color:null===(P=null==$?void 0:$.maximize)||void 0===P?void 0:P.color})}))]}))]})),function(){var o,i,t,d;return l("div",e({className:"".concat(r.contentArea," ").concat(r.contentAreaHorizontal)},{children:[!de&&n("div",e({className:we(r.panel,null!==(o=null==Y?void 0:Y.leftPanel)&&void 0!==o?o:null==Y?void 0:Y.panel),style:e(e({},De),null!==(i=null==Z?void 0:Z.leftPanel)&&void 0!==i?i:null==Z?void 0:Z.panel)},{children:I})),de&&n("button",e({onClick:He,className:we((null==Z?void 0:Z.collapseButton)?"":r.expandButton,r.expandButtonHorizontal,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Expand left panel (50/50)"},{children:n(s,e({},ze))})),!de&&!re&&l("div",e({onMouseDown:Ae,className:we(r.divider,r.dividerHorizontal,oe?r.dividerDragging:r.dividerIdle,null==Y?void 0:Y.divider),style:null==Z?void 0:Z.divider},{children:[n("div",{className:"".concat(r.dividerHitArea," ").concat(r.dividerHitAreaHorizontal)}),Oe&&n("button",e({onClick:function(e){e.stopPropagation(),He()},onMouseDown:function(e){return e.stopPropagation()},className:we(r.collapseButton,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Collapse left panel"},{children:n(v,e({},ze))})),ke&&n("button",e({onClick:function(e){e.stopPropagation(),be()},onMouseDown:function(e){return e.stopPropagation()},className:we(r.collapseButton,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Collapse right panel"},{children:n(s,e({},ze))}))]})),!re&&n("div",e({className:we(r.panel,null!==(t=null==Y?void 0:Y.rightPanel)&&void 0!==t?t:null==Y?void 0:Y.panel),style:e({flex:1},null!==(d=null==Z?void 0:Z.rightPanel)&&void 0!==d?d:null==Z?void 0:Z.panel)},{children:S})),re&&n("button",e({onClick:be,className:we((null==Z?void 0:Z.collapseButton)?"":r.expandButton,r.expandButtonRightHorizontal,null==Y?void 0:Y.collapseButton),style:null==Z?void 0:Z.collapseButton,title:"Expand right panel (50/50)"},{children:n(v,e({},ze))})),oe&&n("div",{className:"".concat(r.dragOverlay," ").concat(r.dragOverlayHorizontal)})]}))}()]})),Ee]})};export{f as default};
2
2
  //# sourceMappingURL=SplitterCitationsComponent.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as C}from"tslib";import{jsxs as o,jsx as t}from"react/jsx-runtime";var i=function(i){var r=i.fill,e=void 0===r?"#F8FAFC":r,n=i.stroke,l=void 0===n?"#E0E0E0":n,d=i.arrowStroke,h=void 0===d?"#111827":d;return o("svg",C({width:"21",height:"54",viewBox:"0 0 20 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("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:e,stroke:l}),t("path",{d:"M7.5 32L12.5 27L7.5 22",stroke:h,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},r=function(i){var r=i.fill,e=void 0===r?"#F8FAFC":r,n=i.stroke,l=void 0===n?"#E0E0E0":n,d=i.arrowStroke,h=void 0===d?"black":d;return o("svg",C({width:"21",height:"54",viewBox:"0 0 21 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("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:e,stroke:l}),t("path",{d:"M13.5 32L8.5 27L13.5 22",stroke:h,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}))},e=function(i){var r=i.color,e=void 0===r?"#087443":r,n=i.size,l=void 0===n?14:n;return o("svg",C({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 12 12",fill:"none"},{children:[t("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:e}),t("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:e})]}))},n=function(o){var i=o.color,r=void 0===i?"#7A5AF8":i;return t("svg",C({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none"},{children:t("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:r,stroke:r,strokeWidth:"0.5"})}))};export{e as AIMagicIcon,n as MaximizeIcon,r as SidebarCloseIcon,i as SidebarOpenIcon};
2
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
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};
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 d,Loader2 as s}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(" ")},x=function(n){return n.toLowerCase().replace(/[^a-z0-9]/g,"")},m=function(n,e){var i=n.map(x).filter(Boolean),t=e.map(x).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)},I=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})},f=function(x){x.index;var f=x.TextualGuideLines,p=x.HighlightedWords,b=x.InternalGptReasoningData,y=x.headerTitle,C=void 0===y?"Textual Guidelines":y,N=x.IgptHeaderTitle,T=void 0===N?"GPT - Gemini 3.1 Flash Lite":N,L=x.useVariantHighlight,k=void 0!==L&&L,w=x.fuzzyThreshold,A=void 0===w?.8:w,B=x.onAccordionToggle,z=x.isInternalGptReasoningLoading,V=void 0!==z&&z,G=x.themeTokens,_=x.classNames,R=x.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 d=0;d<=o.length-c;d++){var s=o.slice(d,d+c),g=m(t,s.map(function(n){return n.word}));g>=i&&r.push({startIndex:s[0].start,endIndex:s[s.length-1].end,score:g})}if(0===r.length)return[];r.sort(function(n,e){return e.score-n.score||e.endIndex-e.startIndex-(n.endIndex-n.startIndex)});for(var u=[],v=function(n){u.some(function(e){return n.startIndex<e.endIndex&&n.endIndex>e.startIndex})||u.push(n)},x=0,I=r;x<I.length;x++)v(I[x]);return u})(f,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:f.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=f.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),x=/^(Title|Description|Training-basis):\s*/i.exec(t);x&&(Z=0),a&&(Z+=1);var m=!!a,p=!!x,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)):m?$.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=m&&1===N.length&&N[0].startIndex<=C&&N[0].endIndex>=o;if(0===N.length)w(I(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:I(f.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:d},bodyHeight:"100%",disableMaximize:!0,index:B.highlightIndex})}),"expanded-".concat(B.highlightIndex))):G&&V&&$.push(e("div",n({className:g.loadingContainer},{children:[i(s,{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,m&&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 x=f.substring(D,l);H.push(i("span",{children:I(x)},"t-".concat(D)))}var m=t.highlightIndex===M,p=k?m?v(g.highlight,g.highlightActiveVariant,null==_?void 0:_.highlight,null==_?void 0:_.highlightActiveVariant):v(g.highlightVariant,null==_?void 0:_.highlightVariant):m?v(g.highlight,g.highlightActive,null==_?void 0:_.highlight,null==_?void 0:_.highlightActive):v(g.highlight,null==_?void 0:_.highlight),y=k?m?n(n({},null==R?void 0:R.highlight),null==R?void 0:R.highlightActiveVariant):n({},null==R?void 0:R.highlightVariant):m?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({cursor:"pointer"},y)},{children:[f.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:d},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(s,{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:I(f.substring(D,o))},"t-end-".concat(o))),H.length>0||S){var J=S?L:"".concat(L,"-tail");w(H,J,S)}}}),$)}))}))]}))};export{f as default};
2
2
  //# sourceMappingURL=TextualGuideLinesComponent.js.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{SourcesBQCitation,findSourceCitation,parseSourcesBQHref}from"./features/DualCitation/SourceBQDataCompnent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as 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 BPACitationRenderer}from"./features/BPACitationRenderer/BPACitationRenderer.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,5 @@
1
+ import { CitationOrchestratorProps } from './BPACitationRenderer.types';
2
+ export * from './BPACitationRenderer.types';
3
+ declare const BPACitationRenderer: ({ href, children, isStreaming, onCitationToggle, chatCitationConfig, scannedDocCitationConfig, ruleBookCitationConfig, ilCitationConfig, gptCitationConfig, scannedDocCitationData, ilCitationData, chatCitationData, gptCitationData, webCitationData, imageCitationData, bqCitationData, title, citationIcon, isDualCitationFlag }: CitationOrchestratorProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default BPACitationRenderer;
5
+ //# sourceMappingURL=BPACitationRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BPACitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/BPACitationRenderer.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,cAAc,6BAA6B,CAAC;AA2D5C,QAAA,MAAM,mBAAmB,yUAoBtB,yBAAyB,mDAuX3B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -226,4 +226,4 @@ export interface CitationOrchestratorProps {
226
226
  citationIcon?: React.ReactNode;
227
227
  isDualCitationFlag?: boolean;
228
228
  }
229
- //# sourceMappingURL=ParentCitationComponent.types.d.ts.map
229
+ //# sourceMappingURL=BPACitationRenderer.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BPACitationRenderer.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/BPACitationRenderer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,yEAAyE,CAAC;AAC1I,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEzF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAOD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAiC;IAChD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,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;IAChD,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,kBAAkB,CAAC,EAAC,OAAO,CAAA;CAC5B"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { AiReasoningCitationItem, CitationItem } from './BPACitationRenderer';
3
+ export declare const transformAiReasoningCitations: (aiReasoningCitation: AiReasoningCitationItem[], decisionStrength?: string | number) => CitationItem[];
4
+ declare const BPACitationRendererTest: React.FC;
5
+ export default BPACitationRendererTest;
6
+ //# sourceMappingURL=BPACitationRendererTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BPACitationRendererTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/BPACitationRendererTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAa9E,eAAO,MAAM,6BAA6B,wBACnB,uBAAuB,EAAE,qBAC3B,MAAM,GAAG,MAAM,KACjC,YAAY,EAGV,CAAC;AAgQN,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAoDpC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DualRuleBookBqCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/DualRuleBookBqCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAsFxC,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAmCvC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DualRuleBookGptCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/DualRuleBookGptCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AA8DxC,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAsDxC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const ILRuleBookCitationTest: React.FC;
3
+ export default ILRuleBookCitationTest;
4
+ //# sourceMappingURL=ILRuleBookCitationTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILRuleBookCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/ILRuleBookCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0ExC,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAmCnC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -7,6 +7,7 @@ export declare const CITATION_TYPES: {
7
7
  readonly IMAGE: "image_citation";
8
8
  readonly BQ_DATA: "bq_data";
9
9
  readonly RULEBOOK: "rulebook_citation";
10
+ readonly RULEBOOK_CHUNK: "rulebook_chunk";
10
11
  readonly IL_RULEBOOK: "il_rulebook_citation";
11
12
  readonly DUAL: "dual_citation";
12
13
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"citationTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/BPACitationRenderer/citationTypes.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}
@@ -1 +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"}
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,CA8NvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import { ChatCitationConfig, ScannedDocCitationConfig, GptCitationConfig } from '../../ParentCitationComponent/ParentCitationComponent';
2
+ import { ChatCitationConfig, ScannedDocCitationConfig, GptCitationConfig } from '../../BPACitationRenderer/BPACitationRenderer';
3
3
  import { ILCitationConfig } from '../InstantLearningCitationComponent';
4
4
  export type RuleSetCategory = 'Global' | 'Genre' | 'Custom';
5
5
  export type RuleSetItem = {
@@ -1 +1 @@
1
- {"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/InstantLearningCitation/types/Types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AACxI,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAI5D,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,iBAA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3C,SAAS,EAAE,aAAa,EAAE,CAAC;IAC3B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1,25 +1,5 @@
1
1
  import React from "react";
2
- interface SplitterHeader {
3
- title?: string;
4
- confidenceScore?: number;
5
- confidenceScoreTitle?: string;
6
- showDocIcon?: boolean;
7
- }
8
- interface SplitterProps {
9
- left: React.ReactNode;
10
- right: React.ReactNode;
11
- defaultLeftWidth?: number;
12
- minLeftWidth?: number;
13
- minRightWidth?: number;
14
- className?: string;
15
- height?: string | number;
16
- width?: string | number;
17
- header?: SplitterHeader;
18
- onLeftWidthChange?: (width: number) => void;
19
- openInFullscreen?: boolean;
20
- onFullscreenClose?: () => void;
21
- fullscreenOnly?: boolean;
22
- }
2
+ import type { SplitterProps } from "./types";
23
3
  declare const SplitterCitationsComponent: React.FC<SplitterProps>;
24
4
  export default SplitterCitationsComponent;
25
5
  //# sourceMappingURL=SplitterCitationsComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SplitterCitationsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AA8B3D,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAEA,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmZxD,CAAC;AACF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"SplitterCitationsComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/SplitterCitationsComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgevD,CAAC;AACF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ interface IconColorProps {
3
+ fill?: string;
4
+ stroke?: string;
5
+ arrowStroke?: string;
6
+ }
7
+ export declare const SidebarOpenIcon: React.FC<IconColorProps>;
8
+ export declare const SidebarCloseIcon: React.FC<IconColorProps>;
9
+ export declare const AIMagicIcon: React.FC<{
10
+ color?: string;
11
+ size?: number;
12
+ }>;
13
+ export declare const MaximizeIcon: React.FC<{
14
+ color?: string;
15
+ }>;
16
+ export {};
17
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../src/features/SplitterCitations/icons/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyBpD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAyBrD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAoBnE,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAiBrD,CAAC"}
@@ -0,0 +1,78 @@
1
+ /// <reference types="react" />
2
+ export interface SplitterHeader {
3
+ title?: string;
4
+ confidenceScore?: number;
5
+ confidenceScoreTitle?: string;
6
+ showDocIcon?: boolean;
7
+ }
8
+ export interface SplitterClassNames {
9
+ container?: string;
10
+ header?: string;
11
+ headerTitle?: string;
12
+ headerIcon?: string;
13
+ headerActions?: string;
14
+ confidenceBadge?: string;
15
+ fullscreenButton?: string;
16
+ panel?: string;
17
+ leftPanel?: string;
18
+ rightPanel?: string;
19
+ divider?: string;
20
+ collapseButton?: string;
21
+ dialogOverlay?: string;
22
+ dialogContent?: string;
23
+ }
24
+ export interface SplitterStyles {
25
+ container?: React.CSSProperties;
26
+ header?: React.CSSProperties;
27
+ headerTitle?: React.CSSProperties;
28
+ headerIcon?: React.CSSProperties;
29
+ headerActions?: React.CSSProperties;
30
+ confidenceBadge?: React.CSSProperties;
31
+ fullscreenButton?: React.CSSProperties;
32
+ panel?: React.CSSProperties;
33
+ leftPanel?: React.CSSProperties;
34
+ rightPanel?: React.CSSProperties;
35
+ divider?: React.CSSProperties;
36
+ collapseButton?: React.CSSProperties;
37
+ dialogOverlay?: React.CSSProperties;
38
+ dialogContent?: React.CSSProperties;
39
+ }
40
+ export interface SplitterIconProps {
41
+ fill?: string;
42
+ stroke?: string;
43
+ arrowStroke?: string;
44
+ }
45
+ export interface SplitterProps {
46
+ left: React.ReactNode;
47
+ right: React.ReactNode;
48
+ defaultLeftWidth?: number;
49
+ minLeftWidth?: number;
50
+ minRightWidth?: number;
51
+ className?: string;
52
+ height?: string | number;
53
+ width?: string | number;
54
+ header?: SplitterHeader;
55
+ onLeftWidthChange?: (width: number) => void;
56
+ openInFullscreen?: boolean;
57
+ onFullscreenClose?: () => void;
58
+ fullscreenOnly?: boolean;
59
+ classNames?: SplitterClassNames;
60
+ customStyles?: SplitterStyles;
61
+ iconProps?: {
62
+ collapse?: SplitterIconProps;
63
+ maximize?: {
64
+ color?: string;
65
+ };
66
+ close?: {
67
+ color?: string;
68
+ };
69
+ magic?: {
70
+ color?: string;
71
+ size?: number;
72
+ };
73
+ headerIcon?: {
74
+ color?: string;
75
+ };
76
+ };
77
+ }
78
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/SplitterCitations/types.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,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AAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,iBAAiB,CAAC;QAC7B,QAAQ,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9B,KAAK,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3B,KAAK,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC1C,UAAU,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACjC,CAAC;CACH"}
@@ -38,11 +38,12 @@ export { ManageReminders } from "./features/ManageRemainders/ManageReminders";
38
38
  export { default as GptWebCitation } from "./features/GptWebCitation/GptWebCitation";
39
39
  export { useOnDemandCitationFetch } from "./hooks/useOnDemandCitationFetch";
40
40
  export { default as InstantLearningCitationWrapper } from "./features/InstantLearningCitation/InstantLearningCitationComponent";
41
- export { default as ParentCitationComponent } from "./features/ParentCitationComponent/ParentCitationComponent";
41
+ export { default as BPACitationRenderer } from "./features/BPACitationRenderer/BPACitationRenderer";
42
42
  export { mapCitationDataToDisplay, getWebCitationImageUrl, resolveSkeletonVisitUrl, extractTopicFromContent, extractRelevanceScoreFromContent, extractLearnedFromUrl, sanitizeExternalUrl, } from "./features/GptWebCitation/utils/citationData.utils";
43
43
  export type { IGptWebCitationProps, IGptCitationConfig, IGptWebCitationStyleOverrides, IGptWebCitationGptStyles, IGptWebCitationWebStyles, IGptWebCitationImageStyles, IGptWebCitationSkeletonStyles, IGptWebCitationVisitLinkStyles, IGptWebCitationFullScreenStyles, GptWebCitationView, GptWebCitationStatus, IWebCitationApiResponse, IGptWebCitationDbMetadata, IGptWebCitationImageMetadata, IGptWebCitationMappedData, IGptWebCitationImageIconsConfig, } from "./features/GptWebCitation/types";
44
44
  export { CitationType, allowsGptCitationView, allowsWebCitationView, showsCitationViewToggle, } from "./features/GptWebCitation/types";
45
45
  export type { TextualGuidelinesThemeTokens, TextualGuidelinesClassNames, TextualGuidelinesStyles, } from "./features/TextualGuidelines/TextualGuidelines.types";
46
46
  export type { CognitiveReasoningThemeTokens, CognitiveReasoningClassNames, CognitiveReasoningStyles, } from "./features/CognitiveInternalgptReasoning/CognitiveNonWebSearchReasoning.types";
47
47
  export type { RuleBookCitationThemeTokens, RuleBookCitationClassNames, RuleBookCitationStyles, } from "./features/RulebookCitations/RuleBookCitation.types";
48
+ export type { SplitterProps as SplitterCitationsProps, SplitterClassNames as SplitterCitationsClassNames, SplitterStyles as SplitterCitationsStyles, SplitterIconProps as SplitterCitationsIconProps, SplitterHeader as SplitterCitationsHeader, } from './features/SplitterCitations/types';
48
49
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC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8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,sDAAsD,CAAC;AAC9D,YAAY,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,+EAA+E,CAAC;AACvF,YAAY,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,qDAAqD,CAAC;AAC7D,YAAY,EACV,aAAa,IAAI,sBAAsB,EACvC,kBAAkB,IAAI,2BAA2B,EACjD,cAAc,IAAI,uBAAuB,EACzC,iBAAiB,IAAI,0BAA0B,EAC/C,cAAc,IAAI,uBAAuB,GAC1C,MAAM,oCAAoC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.227",
3
+ "version": "0.0.228",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -172,10 +172,10 @@
172
172
  "require": "./dist/features/InstantLearningCitation/InstantLearningCitationComponent.js",
173
173
  "types": "./dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts"
174
174
  },
175
- "./ParentCitationComponent": {
176
- "import": "./dist/features/ParentCitationComponent/ParentCitationComponent.js",
177
- "require": "./dist/features/ParentCitationComponent/ParentCitationComponent.js",
178
- "types": "./dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts"
175
+ "./BPACitationRenderer": {
176
+ "import": "./dist/features/BPACitationRenderer/BPACitationRenderer.js",
177
+ "require": "./dist/features/BPACitationRenderer/BPACitationRenderer.js",
178
+ "types": "./dist/types/src/features/BPACitationRenderer/BPACitationRenderer.d.ts"
179
179
  }
180
180
  },
181
181
  "repository": {
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=require("react/jsx-runtime"),t=require("react"),e=require("lucide-react"),a=require("dayjs"),o=require("../ScannedDocCitation/ScannedDocCitation.js"),l=require("../InstantLearningCitation/InstantLearningCitationComponent.js"),r=require("../InstantLearningCitation/SlashLoader.js"),s=require("../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),u=require("../RequirementAiCitations/ImageCitation/ImageCitationContent.js"),d=require("../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),c=require("../ChatCitation/ChatCitationRenderer.js"),g=require("../DualCitation/RuleBookCitationComponent.js"),C=require("../CitationRenderer/CitationRenderer.js"),v=require("../SplitterCitations/SplitterCitationsComponent.js"),h=require("../DualCitation/SourceBQDataCompnent.js"),T=require("./citationTypes.js");function _(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var p=_(a),f=function(i,n,t){if(!i)throw new Error("[ParentCitationComponent] ".concat(n,': missing required field "').concat(t,'" in customMetaData'))},I=function(i,n){if(!Object.values(i).some(Boolean))throw new Error("[ParentCitationComponent] ".concat(n,': missing one of "').concat(Object.keys(i).join('", "'),'" in customMetaData'))},m=function(a){var _,D,S,P,A,x,E,O,j,b,N,L,w,R,U,Y,y,q,B,k,G,H,W,M,F,z=a.href,Q=a.children,K=a.isStreaming,X=a.onCitationToggle,J=a.chatCitationConfig,V=a.scannedDocCitationConfig,Z=a.ruleBookCitationConfig,$=a.ilCitationConfig,ii=a.gptCitationConfig,ni=a.scannedDocCitationData,ti=a.ilCitationData,ei=a.chatCitationData,ai=a.gptCitationData,oi=a.webCitationData,li=a.imageCitationData,ri=a.bqCitationData,si=a.title,ui=a.citationIcon,di=a.isDualCitationFlag,ci=void 0!==di&&di,gi=t.useState(!1),Ci=gi[0],vi=gi[1];if(K)return n.jsxs("span",i.__assign({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[n.jsx("span",{children:Q}),n.jsx(r.default,{})]}));try{var hi=new URL(z,"http://example.com"),Ti=hi.searchParams.get("citationNumber"),_i=hi.searchParams.get("decisionStrength"),pi=hi.searchParams.get("citation_type"),fi=ci||pi===T.CITATION_TYPES.DUAL;if(!Ti)return null;if(pi===T.CITATION_TYPES.SCANNED_DOC){var Ii=null==ni?void 0:ni.pages;if(null==Ii?void 0:Ii.length)return n.jsx(o.default,i.__assign({pages:Ii,subHeadingText:null==ni?void 0:ni.artifactTitle},V));f(null==ni?void 0:ni.gsUrl,"scanned_doc_citation","gs_url");var mi=[ni.gsUrl],Di=(null!==(_=null==ni?void 0:ni.highlightedCoordinates)&&void 0!==_?_:[]).map(function(i,n){return{pageIndex:n,bboxes:[i]}});return n.jsx(o.default,i.__assign({images:mi,highlights:Di},V))}if(pi===T.CITATION_TYPES.IL){f(null==ti?void 0:ti.ilLearning,"IL","il_learning");var Si=Q||(null==ti?void 0:ti.linkText)||(null==ti?void 0:ti.citationSource)||String(null!==(D=null==ti?void 0:ti.citationNumber)&&void 0!==D?D:1);return n.jsx(l.default,{ilLearning:ti.ilLearning,ilLearningHighlights:null==ti?void 0:ti.ilLearningHighlights,comparisonHighlights:null==ti?void 0:ti.comparisonHighlights,decisionStrength:_i||(null==ti?void 0:ti.decisionStrength)||"",linkTitle:Si,onCitationToggle:null!=X?X:function(){},config:$})}if(pi===T.CITATION_TYPES.CHAT){var Pi=null!=J?J:{},Ai=null===(P=null!==(S=null==ei?void 0:ei.chatData)&&void 0!==S?S:[])||void 0===P?void 0:P.map(function(n){return i.__assign(i.__assign({},n),{timeStamp:p.default(n.timeStamp)})}),xi=!!(null==ei?void 0:ei.ruleBookContent);return n.jsx(c.default,{showRootContainer:null===(A=Pi.showRootContainer)||void 0===A||A,reversePanels:Pi.reversePanels,isRenderedCustomComponent:Pi.isRenderedCustomComponent,modalContainerStyle:Pi.modalContainerStyle,additionalData:Pi.additionalData,closePreview:Pi.closePreview,selectedIdFromReason:null!==(x=Pi.selectedIdFromReason)&&void 0!==x?x:void 0,rootContainer:i.__assign(i.__assign({},Pi.rootContainer),{relevanceScore:null==ei?void 0:ei.relevanceScore}),chatContainer:i.__assign(i.__assign({},Pi.chatContainer),{chatData:Ai,summarizedTab:i.__assign(i.__assign({},null===(E=Pi.chatContainer)||void 0===E?void 0:E.summarizedTab),{chip:i.__assign({isActive:!0,show:!0},null===(j=null===(O=Pi.chatContainer)||void 0===O?void 0:O.summarizedTab)||void 0===j?void 0:j.chip)}),detailedTab:i.__assign(i.__assign({},null===(b=Pi.chatContainer)||void 0===b?void 0:b.detailedTab),{chip:i.__assign({isActive:!1},null===(L=null===(N=Pi.chatContainer)||void 0===N?void 0:N.detailedTab)||void 0===L?void 0:L.chip)})}),ruleBookContainer:xi?i.__assign(i.__assign({},Pi.ruleBookContainer),{data:{content:ei.ruleBookContent,highlighted_texts:null!==(w=null==ei?void 0:ei.ruleBookHighlights)&&void 0!==w?w:[]}}):void 0})}if(pi===T.CITATION_TYPES.GPT){var Ei=null==ai?void 0:ai.value,Oi=null!==(R=null==Ei?void 0:Ei.text)&&void 0!==R?R:null===(U=null==ai?void 0:ai.dataSources)||void 0===U?void 0:U[0],ji=null!==(Y=null==Ei?void 0:Ei.label)&&void 0!==Y?Y:null===(y=null==ai?void 0:ai.trainingDataTitle)||void 0===y?void 0:y[0],bi=null!==(q=null==Ei?void 0:Ei.paraphrase)&&void 0!==q?q:null===(B=null==ai?void 0:ai.paraphrase)||void 0===B?void 0:B[0];I({data_sources:Oi,training_data_title:ji},T.CITATION_TYPES.GPT);var Ni={text:"",dataSource:Oi,trainingDataTitle:ji,paraphrase:bi},Li=null!==(k=null==ii?void 0:ii.iconsConfig)&&void 0!==k?k:{ChevronDownIcon:e.ChevronDown,ChevronUpIcon:e.ChevronUp,MaximizeIcon:e.Maximize2,CloseIcon:e.X};return n.jsx(s.default,{item:Ni,headerTitle:null!==(G=null==ii?void 0:ii.headerTitle)&&void 0!==G?G:"GPT - Gemini 3.5 Flash",iconsConfig:Li,previewCallback:null==ii?void 0:ii.previewCallback,DocumentTitle:null==ii?void 0:ii.DocumentTitle,disableMaximize:fi})}if(pi===T.CITATION_TYPES.WEB){!function(i,n,t){f(i,n,t);try{new URL(i)}catch(e){throw new Error("[ParentCitationComponent] ".concat(n,': "').concat(t,'" is not a valid URL: "').concat(i,'"'))}}(null==oi?void 0:oi.link,T.CITATION_TYPES.WEB,"link");var wi=oi.link,Ri=Q||(null==oi?void 0:oi.citationSource)||wi;return(null==oi?void 0:oi.screenshotUrl)?n.jsx(d.default,{url:wi,label:Ri,gsUtilPath:null==oi?void 0:oi.gsUtilPath,signedUrl:oi.screenshotUrl,relevanceScore:null==oi?void 0:oi.relevanceScore,visitIcon:e.ExternalLink,PreviewDialogCloseIcon:e.X}):n.jsx("a",i.__assign({href:wi,target:"_blank",rel:"noreferrer"},{children:Ri}))}if(pi===T.CITATION_TYPES.IMAGE)return I({gs_util_path:null==li?void 0:li.gsUtilPath,signed_url:null==li?void 0:li.signedUrl},T.CITATION_TYPES.IMAGE),n.jsx(u.default,{citationTitle:Q||(null==li?void 0:li.citationSource),gsUtilPath:null==li?void 0:li.gsUtilPath,signedUrl:null==li?void 0:li.signedUrl,relevanceScore:null==li?void 0:li.relevanceScore});if(pi===T.CITATION_TYPES.BQ_DATA)return I({href_params:null==ri?void 0:ri.hrefParams,source_obj:null==ri?void 0:ri.sourceObj},T.CITATION_TYPES.BQ_DATA),n.jsx(h.SourcesBQCitation,i.__assign({hrefParams:ri.hrefParams,sourceObj:ri.sourceObj,showChevron:!1,defaultOpen:!0},{children:Q||""}));if(pi===T.CITATION_TYPES.RULEBOOK){var Ui=Ti?parseInt(Ti,10):0;return n.jsx(g.default,{url:null!==(H=null==Z?void 0:Z.url)&&void 0!==H?H:"",data:{citationNumber:null!==(M=null===(W=null==Z?void 0:Z.data)||void 0===W?void 0:W.citationNumber)&&void 0!==M?M:Ui,fileDetails:null===(F=null==Z?void 0:Z.data)||void 0===F?void 0:F.fileDetails},msg:null==Z?void 0:Z.msg,citationIndex:null==Z?void 0:Z.citationIndex,guidelines:null==Z?void 0:Z.guidelines,additionalClassNames:null==Z?void 0:Z.additionalClassNames,headerTitle:null==Z?void 0:Z.headerTitle,InternalGptReasoningData:null==Z?void 0:Z.InternalGptReasoningData,isDataProvided:null==Z?void 0:Z.isDataProvided,textualContent:null==Z?void 0:Z.textualContent,phraseToHighlight:null==Z?void 0:Z.phraseToHighlight,IgptHeaderTitle:null==Z?void 0:Z.IgptHeaderTitle,isInternalGptReasoningLoading:null==Z?void 0:Z.isInternalGptReasoningLoading,onAccordionToggle:null==Z?void 0:Z.onAccordionToggle})}if(pi===T.CITATION_TYPES.IL_RULEBOOK)return n.jsx(g.default,{headerTitle:null==Z?void 0:Z.headerTitle,InternalGptReasoningData:null==Z?void 0:Z.InternalGptReasoningData,isDataProvided:null==Z?void 0:Z.isDataProvided,textualContent:null==Z?void 0:Z.textualContent,phraseToHighlight:null==Z?void 0:Z.phraseToHighlight,IgptHeaderTitle:null==Z?void 0:Z.IgptHeaderTitle,onAccordionToggle:null==Z?void 0:Z.onAccordionToggle,isInternalGptReasoningLoading:null==Z?void 0:Z.isInternalGptReasoningLoading});if(pi===T.CITATION_TYPES.DUAL){var Yi=hi.searchParams.get("left_citation_type"),yi=hi.searchParams.get("right_citation_type");if(Yi===T.CITATION_TYPES.DUAL||yi===T.CITATION_TYPES.DUAL)return console.error("left or right citation type cant be dual_citation"),null;var qi=function(i,n){var t="".concat(i,"."),e="left"===i?"right.":"left.",a=new URLSearchParams;return hi.searchParams.forEach(function(i,n){"citation_type"!==n&&"left_citation_type"!==n&&"right_citation_type"!==n&&(n.startsWith(t)||n.startsWith(e)||a.set(n,i))}),hi.searchParams.forEach(function(i,n){n.startsWith(t)&&a.set(n.slice(t.length),i)}),n&&a.set("citation_type",n),"?".concat(a.toString())},Bi=qi("left",Yi),ki=qi("right",yi),Gi=Q||si||"Source and Guidelines",Hi=function(i){switch(i){case T.CITATION_TYPES.SCANNED_DOC:return{scannedDocCitationData:ni,scannedDocCitationConfig:V};case T.CITATION_TYPES.IL:return{ilCitationData:ti,ilCitationConfig:$};case T.CITATION_TYPES.CHAT:return{chatCitationData:ei,chatCitationConfig:J};case T.CITATION_TYPES.GPT:return{gptCitationData:ai,gptCitationConfig:ii};case T.CITATION_TYPES.WEB:return{webCitationData:oi};case T.CITATION_TYPES.IMAGE:return{imageCitationData:li};case T.CITATION_TYPES.BQ_DATA:return{bqCitationData:ri};case T.CITATION_TYPES.RULEBOOK:return{ruleBookCitationConfig:Z};default:return{}}};return n.jsx(C.default,{inLineCitation:!0,citationTitle:Gi,citationIcon:ui,isOpen:Ci,onToggle:function(){return vi(function(i){return!i})},styles:{pillButton:{fontSize:"14px",margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}},citationComponent:n.jsx(v.default,{left:n.jsx(m,i.__assign({href:Bi,onCitationToggle:X},Hi(Yi),{isDualCitationFlag:!0})),right:n.jsx(m,i.__assign({href:ki,onCitationToggle:X,isDualCitationFlag:!0},Hi(yi))),header:{title:Gi,showDocIcon:!1},openInFullscreen:!0,fullscreenOnly:!0,onFullscreenClose:function(){return vi(!1)}})})}console.warn('[ParentCitationComponent] unhandled citation_type: "'.concat(pi,'"'))}catch(i){return console.error(i),null}return null};exports.default=m;
2
- //# sourceMappingURL=ParentCitationComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParentCitationComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{__assign as i}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronDown as e,ChevronUp as a,Maximize2 as l,X as r,ExternalLink as d}from"lucide-react";import s from"dayjs";import c from"../ScannedDocCitation/ScannedDocCitation.js";import u from"../InstantLearningCitation/InstantLearningCitationComponent.js";import g from"../InstantLearningCitation/SlashLoader.js";import v from"../CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";import h from"../RequirementAiCitations/ImageCitation/ImageCitationContent.js";import C from"../RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";import m from"../ChatCitation/ChatCitationRenderer.js";import p from"../DualCitation/RuleBookCitationComponent.js";import f from"../CitationRenderer/CitationRenderer.js";import D from"../SplitterCitations/SplitterCitationsComponent.js";import{SourcesBQCitation as T}from"../DualCitation/SourceBQDataCompnent.js";import{CITATION_TYPES as I}from"./citationTypes.js";var b=function(i,t,n){if(!i)throw new Error("[ParentCitationComponent] ".concat(t,': missing required field "').concat(n,'" in customMetaData'))},P=function(i,t){if(!Object.values(i).some(Boolean))throw new Error("[ParentCitationComponent] ".concat(t,': missing one of "').concat(Object.keys(i).join('", "'),'" in customMetaData'))},S=function(_){var L,R,w,A,U,x,j,y,B,k,G,H,E,O,N,W,F,M,z,q,Q,K,J,V,X,Y=_.href,Z=_.children,$=_.isStreaming,ii=_.onCitationToggle,ti=_.chatCitationConfig,ni=_.scannedDocCitationConfig,oi=_.ruleBookCitationConfig,ei=_.ilCitationConfig,ai=_.gptCitationConfig,li=_.scannedDocCitationData,ri=_.ilCitationData,di=_.chatCitationData,si=_.gptCitationData,ci=_.webCitationData,ui=_.imageCitationData,gi=_.bqCitationData,vi=_.title,hi=_.citationIcon,Ci=_.isDualCitationFlag,mi=void 0!==Ci&&Ci,pi=o(!1),fi=pi[0],Di=pi[1];if($)return t("span",i({style:{display:"inline-flex",alignItems:"center",gap:"0.25rem",fontWeight:500,color:"#6D28D9"}},{children:[n("span",{children:Z}),n(g,{})]}));try{var Ti=new URL(Y,"http://example.com"),Ii=Ti.searchParams.get("citationNumber"),bi=Ti.searchParams.get("decisionStrength"),Pi=Ti.searchParams.get("citation_type"),Si=mi||Pi===I.DUAL;if(!Ii)return null;if(Pi===I.SCANNED_DOC){var _i=null==li?void 0:li.pages;if(null==_i?void 0:_i.length)return n(c,i({pages:_i,subHeadingText:null==li?void 0:li.artifactTitle},ni));b(null==li?void 0:li.gsUrl,"scanned_doc_citation","gs_url");var Li=[li.gsUrl],Ri=(null!==(L=null==li?void 0:li.highlightedCoordinates)&&void 0!==L?L:[]).map(function(i,t){return{pageIndex:t,bboxes:[i]}});return n(c,i({images:Li,highlights:Ri},ni))}if(Pi===I.IL){b(null==ri?void 0:ri.ilLearning,"IL","il_learning");var wi=Z||(null==ri?void 0:ri.linkText)||(null==ri?void 0:ri.citationSource)||String(null!==(R=null==ri?void 0:ri.citationNumber)&&void 0!==R?R:1);return n(u,{ilLearning:ri.ilLearning,ilLearningHighlights:null==ri?void 0:ri.ilLearningHighlights,comparisonHighlights:null==ri?void 0:ri.comparisonHighlights,decisionStrength:bi||(null==ri?void 0:ri.decisionStrength)||"",linkTitle:wi,onCitationToggle:null!=ii?ii:function(){},config:ei})}if(Pi===I.CHAT){var Ai=null!=ti?ti:{},Ui=null===(A=null!==(w=null==di?void 0:di.chatData)&&void 0!==w?w:[])||void 0===A?void 0:A.map(function(t){return i(i({},t),{timeStamp:s(t.timeStamp)})}),xi=!!(null==di?void 0:di.ruleBookContent);return n(m,{showRootContainer:null===(U=Ai.showRootContainer)||void 0===U||U,reversePanels:Ai.reversePanels,isRenderedCustomComponent:Ai.isRenderedCustomComponent,modalContainerStyle:Ai.modalContainerStyle,additionalData:Ai.additionalData,closePreview:Ai.closePreview,selectedIdFromReason:null!==(x=Ai.selectedIdFromReason)&&void 0!==x?x:void 0,rootContainer:i(i({},Ai.rootContainer),{relevanceScore:null==di?void 0:di.relevanceScore}),chatContainer:i(i({},Ai.chatContainer),{chatData:Ui,summarizedTab:i(i({},null===(j=Ai.chatContainer)||void 0===j?void 0:j.summarizedTab),{chip:i({isActive:!0,show:!0},null===(B=null===(y=Ai.chatContainer)||void 0===y?void 0:y.summarizedTab)||void 0===B?void 0:B.chip)}),detailedTab:i(i({},null===(k=Ai.chatContainer)||void 0===k?void 0:k.detailedTab),{chip:i({isActive:!1},null===(H=null===(G=Ai.chatContainer)||void 0===G?void 0:G.detailedTab)||void 0===H?void 0:H.chip)})}),ruleBookContainer:xi?i(i({},Ai.ruleBookContainer),{data:{content:di.ruleBookContent,highlighted_texts:null!==(E=null==di?void 0:di.ruleBookHighlights)&&void 0!==E?E:[]}}):void 0})}if(Pi===I.GPT){var ji=null==si?void 0:si.value,yi=null!==(O=null==ji?void 0:ji.text)&&void 0!==O?O:null===(N=null==si?void 0:si.dataSources)||void 0===N?void 0:N[0],Bi=null!==(W=null==ji?void 0:ji.label)&&void 0!==W?W:null===(F=null==si?void 0:si.trainingDataTitle)||void 0===F?void 0:F[0],ki=null!==(M=null==ji?void 0:ji.paraphrase)&&void 0!==M?M:null===(z=null==si?void 0:si.paraphrase)||void 0===z?void 0:z[0];P({data_sources:yi,training_data_title:Bi},I.GPT);var Gi={text:"",dataSource:yi,trainingDataTitle:Bi,paraphrase:ki},Hi=null!==(q=null==ai?void 0:ai.iconsConfig)&&void 0!==q?q:{ChevronDownIcon:e,ChevronUpIcon:a,MaximizeIcon:l,CloseIcon:r};return n(v,{item:Gi,headerTitle:null!==(Q=null==ai?void 0:ai.headerTitle)&&void 0!==Q?Q:"GPT - Gemini 3.5 Flash",iconsConfig:Hi,previewCallback:null==ai?void 0:ai.previewCallback,DocumentTitle:null==ai?void 0:ai.DocumentTitle,disableMaximize:Si})}if(Pi===I.WEB){!function(i,t,n){b(i,t,n);try{new URL(i)}catch(o){throw new Error("[ParentCitationComponent] ".concat(t,': "').concat(n,'" is not a valid URL: "').concat(i,'"'))}}(null==ci?void 0:ci.link,I.WEB,"link");var Ei=ci.link,Oi=Z||(null==ci?void 0:ci.citationSource)||Ei;return(null==ci?void 0:ci.screenshotUrl)?n(C,{url:Ei,label:Oi,gsUtilPath:null==ci?void 0:ci.gsUtilPath,signedUrl:ci.screenshotUrl,relevanceScore:null==ci?void 0:ci.relevanceScore,visitIcon:d,PreviewDialogCloseIcon:r}):n("a",i({href:Ei,target:"_blank",rel:"noreferrer"},{children:Oi}))}if(Pi===I.IMAGE)return P({gs_util_path:null==ui?void 0:ui.gsUtilPath,signed_url:null==ui?void 0:ui.signedUrl},I.IMAGE),n(h,{citationTitle:Z||(null==ui?void 0:ui.citationSource),gsUtilPath:null==ui?void 0:ui.gsUtilPath,signedUrl:null==ui?void 0:ui.signedUrl,relevanceScore:null==ui?void 0:ui.relevanceScore});if(Pi===I.BQ_DATA)return P({href_params:null==gi?void 0:gi.hrefParams,source_obj:null==gi?void 0:gi.sourceObj},I.BQ_DATA),n(T,i({hrefParams:gi.hrefParams,sourceObj:gi.sourceObj,showChevron:!1,defaultOpen:!0},{children:Z||""}));if(Pi===I.RULEBOOK){var Ni=Ii?parseInt(Ii,10):0;return n(p,{url:null!==(K=null==oi?void 0:oi.url)&&void 0!==K?K:"",data:{citationNumber:null!==(V=null===(J=null==oi?void 0:oi.data)||void 0===J?void 0:J.citationNumber)&&void 0!==V?V:Ni,fileDetails:null===(X=null==oi?void 0:oi.data)||void 0===X?void 0:X.fileDetails},msg:null==oi?void 0:oi.msg,citationIndex:null==oi?void 0:oi.citationIndex,guidelines:null==oi?void 0:oi.guidelines,additionalClassNames:null==oi?void 0:oi.additionalClassNames,headerTitle:null==oi?void 0:oi.headerTitle,InternalGptReasoningData:null==oi?void 0:oi.InternalGptReasoningData,isDataProvided:null==oi?void 0:oi.isDataProvided,textualContent:null==oi?void 0:oi.textualContent,phraseToHighlight:null==oi?void 0:oi.phraseToHighlight,IgptHeaderTitle:null==oi?void 0:oi.IgptHeaderTitle,isInternalGptReasoningLoading:null==oi?void 0:oi.isInternalGptReasoningLoading,onAccordionToggle:null==oi?void 0:oi.onAccordionToggle})}if(Pi===I.IL_RULEBOOK)return n(p,{headerTitle:null==oi?void 0:oi.headerTitle,InternalGptReasoningData:null==oi?void 0:oi.InternalGptReasoningData,isDataProvided:null==oi?void 0:oi.isDataProvided,textualContent:null==oi?void 0:oi.textualContent,phraseToHighlight:null==oi?void 0:oi.phraseToHighlight,IgptHeaderTitle:null==oi?void 0:oi.IgptHeaderTitle,onAccordionToggle:null==oi?void 0:oi.onAccordionToggle,isInternalGptReasoningLoading:null==oi?void 0:oi.isInternalGptReasoningLoading});if(Pi===I.DUAL){var Wi=Ti.searchParams.get("left_citation_type"),Fi=Ti.searchParams.get("right_citation_type");if(Wi===I.DUAL||Fi===I.DUAL)return console.error("left or right citation type cant be dual_citation"),null;var Mi=function(i,t){var n="".concat(i,"."),o="left"===i?"right.":"left.",e=new URLSearchParams;return Ti.searchParams.forEach(function(i,t){"citation_type"!==t&&"left_citation_type"!==t&&"right_citation_type"!==t&&(t.startsWith(n)||t.startsWith(o)||e.set(t,i))}),Ti.searchParams.forEach(function(i,t){t.startsWith(n)&&e.set(t.slice(n.length),i)}),t&&e.set("citation_type",t),"?".concat(e.toString())},zi=Mi("left",Wi),qi=Mi("right",Fi),Qi=Z||vi||"Source and Guidelines",Ki=function(i){switch(i){case I.SCANNED_DOC:return{scannedDocCitationData:li,scannedDocCitationConfig:ni};case I.IL:return{ilCitationData:ri,ilCitationConfig:ei};case I.CHAT:return{chatCitationData:di,chatCitationConfig:ti};case I.GPT:return{gptCitationData:si,gptCitationConfig:ai};case I.WEB:return{webCitationData:ci};case I.IMAGE:return{imageCitationData:ui};case I.BQ_DATA:return{bqCitationData:gi};case I.RULEBOOK:return{ruleBookCitationConfig:oi};default:return{}}};return n(f,{inLineCitation:!0,citationTitle:Qi,citationIcon:hi,isOpen:fi,onToggle:function(){return Di(function(i){return!i})},styles:{pillButton:{fontSize:"14px",margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}},citationComponent:n(D,{left:n(S,i({href:zi,onCitationToggle:ii},Ki(Wi),{isDualCitationFlag:!0})),right:n(S,i({href:qi,onCitationToggle:ii,isDualCitationFlag:!0},Ki(Fi))),header:{title:Qi,showDocIcon:!1},openInFullscreen:!0,fullscreenOnly:!0,onFullscreenClose:function(){return Di(!1)}})})}console.warn('[ParentCitationComponent] unhandled citation_type: "'.concat(Pi,'"'))}catch(i){return console.error(i),null}return null};export{S as default};
2
- //# sourceMappingURL=ParentCitationComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParentCitationComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DualRuleBookBqCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/ParentCitationComponent/DualRuleBookBqCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAsFxC,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAmCvC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DualRuleBookGptCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/ParentCitationComponent/DualRuleBookGptCitationTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AA8DxC,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAsDxC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1,5 +0,0 @@
1
- import { CitationOrchestratorProps } from './ParentCitationComponent.types';
2
- export * from './ParentCitationComponent.types';
3
- declare const ParentCitationComponent: ({ href, children, isStreaming, onCitationToggle, chatCitationConfig, scannedDocCitationConfig, ruleBookCitationConfig, ilCitationConfig, gptCitationConfig, scannedDocCitationData, ilCitationData, chatCitationData, gptCitationData, webCitationData, imageCitationData, bqCitationData, title, citationIcon, isDualCitationFlag }: CitationOrchestratorProps) => import("react/jsx-runtime").JSX.Element | null;
4
- export default ParentCitationComponent;
5
- //# sourceMappingURL=ParentCitationComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParentCitationComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/ParentCitationComponent/ParentCitationComponent.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,cAAc,iCAAiC,CAAC;AAiBhD,QAAA,MAAM,uBAAuB,yUAoB1B,yBAAyB,mDAoW3B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParentCitationComponent.types.d.ts","sourceRoot":"","sources":["../../../../../src/features/ParentCitationComponent/ParentCitationComponent.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,yEAAyE,CAAC;AAC1I,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEzF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAOD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,iCA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SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3E,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,kBAAkB,CAAC,EAAC,OAAO,CAAA;CAC5B"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { AiReasoningCitationItem, CitationItem } from './ParentCitationComponent';
3
- export declare const transformAiReasoningCitations: (aiReasoningCitation: AiReasoningCitationItem[], decisionStrength?: string | number) => CitationItem[];
4
- declare const ParentCitationComponentTest: React.FC;
5
- export default ParentCitationComponentTest;
6
- //# sourceMappingURL=ParentCitationComponentTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParentCitationComponentTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/ParentCitationComponent/ParentCitationComponentTest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAalF,eAAO,MAAM,6BAA6B,wBACnB,uBAAuB,EAAE,qBAC3B,MAAM,GAAG,MAAM,KACjC,YAAY,EAGV,CAAC;AAgQN,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAoDxC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"citationTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/ParentCitationComponent/citationTypes.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;;;CAWjB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}