@e-llm-studio/requirement-ai 0.0.262 → 0.0.263

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 (17) hide show
  1. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  5. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  6. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  7. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  8. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  9. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  10. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  11. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.d.ts.map +1 -1
  12. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts +1 -0
  13. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/types.d.ts.map +1 -1
  14. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
  15. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +1 -0
  16. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  17. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react/jsx-runtime"),t=require("react"),e=require("react-markdown"),o=require("rehype-raw"),n=require("lucide-react"),a=require("@mui/material"),l=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),c=require("../citations/web-citation/WebCitationWithImageRenderer.js"),s=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),r=require("../citations/file-citation/FileCitationRender.js"),m=require("../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),h=require("../citations/appmod-citation/AppmodCitationRenderer.js"),_=require("../citations/rca-citation/RCACitationRenderer.js"),f=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),g=require("../citations/chat-citation/ChatCitationRenderer.js"),j=require("@e-llm-studio/citation"),C=require("../citations/big-enough/BigEnoughCitationRenderer.js"),b=require("./ScannedCitationRenderer.js"),x=require("../citations/gpt-web-citation/GptWebCitationRenderer.js");function y(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var S=y(e),I=y(o);const k=["appmode_citation","appmode_citations","appmod_citation","appmod_citations","image_citation","image_citations","audio_citation","audio_citations","document_citation","document_citations","rca_citation","rca_citations","web_citation","web_citations","code_generated","chat_citation","readfile_citation","readfile_citations","gpt_citation","gpt_citations","big_enough_block","scanned_doc_citation","scanned_doc_citations"],q=(i,t,e)=>{const o=Number.isFinite(t)&&Number.isFinite(e);return[...i.map((i,n)=>{const a=n>=t&&n<=e;return{...i,highlighted_text:o?a?i.message:"":i.highlighted_text}})]};exports.AiReasonMarkdownWrapper=({label:e,message:o,isExpandableOrderedListEnabled:y,customStyles:w,citationStyles:M,customIcons:R,onSelectProceed:F,isDisableProceedButton:N,big_enough_block:W,aiReason:$})=>{const D=t.useRef(null),{citations:P,citationConfig:T,chatHistory:A,onFetchOnDemandCitation:L,chatCitationConfigs:O,gptCitationConfigs:E}=m.useRequirementAI();console.log("Testing::Citations in Lib",P);const G=t.useMemo(()=>({h1:({node:t,...e})=>i.jsx("h1",{className:l.default.h1,style:null==w?void 0:w.h1,children:null==e?void 0:e.children}),h2:({node:t,...e})=>i.jsx("h2",{className:l.default.h2,style:null==w?void 0:w.h2,children:null==e?void 0:e.children}),h3:({node:t,...e})=>i.jsx("h2",{className:l.default.h3,style:null==w?void 0:w.h3,children:null==e?void 0:e.children}),b:({node:t,...e})=>i.jsx("b",{className:l.default.bold,style:null==w?void 0:w.b}),p:({node:t,...e})=>i.jsx("p",{...e,className:l.default.paragraph,style:null==w?void 0:w.p,children:null==e?void 0:e.children}),ol:({node:t,...o})=>y?i.jsx(d.default,{label:e,customStyles:null==w?void 0:w.expandOlStyle,onProceed:F,isProceedDisabled:N,aiReasoningCitation:P,citationStyles:M,customIcons:R,children:null==o?void 0:o.children}):i.jsx("ol",{className:l.default.orderedList,style:null==w?void 0:w.ol,children:null==o?void 0:o.children}),ul:({node:t,...e})=>i.jsx("ul",{className:l.default.unorderedList,children:null==e?void 0:e.children}),a:({inline:e,children:d,node:m,...y})=>{var S,I,F,N,D,G,H,z,U,B,V,X,J,K,Q,Y,Z,ii,ti,ei,oi,ni,ai,li,di,ci,si;const ui="true"===(null==y?void 0:y.table),ri=`${null==y?void 0:y.href}`,[mi,vi=""]=ri.split("$"),[pi,hi=""]=vi.split("?"),_i="appmode_citation"===mi||"appmode_citations"===mi?(null==P?void 0:P.appmod_citations)||[]:"image_citation"===mi||"image_citations"===mi?(null==P?void 0:P.image_citations)||[]:"audio_citation"===mi||"audio_citations"===mi?(null==P?void 0:P.audio_citations)||[]:"document_citation"===mi||"document_citations"===mi?(null==P?void 0:P.file_citations)||[]:"rca_citation"===mi||"rca_citations"===mi?(null==P?void 0:P.rca_citations)||[]:"web_citation"===mi||"web_citations"===mi?(null==P?void 0:P.web_citations)||[]:"code_generated"===mi?(null==P?void 0:P.code_generated)||[]:"readfile_citation"===mi||"readfile_citations"===mi?(null==P?void 0:P.readfile_citations)||[]:"gpt_citation"===mi||"gpt_citations"===mi?(null==P?void 0:P.gpt_citations)||[]:"scanned_doc_citation"===mi||"scanned_doc_citations"===mi?(null==P?void 0:P.scanned_doc_citations)||[]:"big_enough_block"===mi&&W||[],fi=_i.find(i=>i.citation_number===decodeURIComponent(pi));console.log("TESTING::citation",fi,_i);const gi=k.includes(mi);if("big_enough_block"===mi&&fi)return console.log("Rendering big enough block with citation:",M),i.jsx(C.default,{title:d,citation:fi,customStyles:null==M?void 0:M.bigEnoughCitation,customIcons:R});if("chat_citation"===mi){if(!A||0===A.length)return null;let t=0,e=A.length-1;if("all"!==pi){const[i,o]=pi.split("-").map(Number);t=Number.isFinite(i)?i:0,e=Number.isFinite(o)?o:t,t=t>0?t-1:t,e=e<A.length-1?e+1:e}return i.jsx(g.default,{customIcon:null==R?void 0:R.chatCitationIcon,title:d,chatHistory:q(A,t,e),isTable:ui,chatCitationProps:null==O?void 0:O.chatCitationProps,onCitationClick:null==O?void 0:O.handleCitationClicked,customStyles:null==M?void 0:M.chatCitation,openInFullscreenOnClick:null==O?void 0:O.openInFullscreenOnClick})}if(("gpt_citation"===mi||"gpt_citations"===mi)&&fi)return(null===(S=null==fi?void 0:fi.customMetadata)||void 0===S?void 0:S.value)?i.jsx(x.default,{title:d,citation:fi,customStyles:null==M?void 0:M.webCitation,customIcons:R,content:o}):i.jsx(j.NonWebReasoningComponent,{item:{text:"",dataSource:null===(F=null===(I=fi.customMetadata)||void 0===I?void 0:I.data_sources)||void 0===F?void 0:F[0],trainingDataTitle:null===(D=null===(N=fi.customMetadata)||void 0===N?void 0:N.training_data_title)||void 0===D?void 0:D[0],paraphrase:null===(H=null===(G=fi.customMetadata)||void 0===G?void 0:G.paraphrase)||void 0===H?void 0:H[0]},headerTitle:(null==E?void 0:E.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:n.ChevronDown,ChevronUpIcon:n.ChevronUp,MaximizeIcon:n.Maximize2,CloseIcon:n.X},...null==E?void 0:E.gptCitationProps});if("image_citation"===mi&&!fi)return null;if("web_citation"===(null===(z=null==fi?void 0:fi.customMetadata)||void 0===z?void 0:z.type))return(null===(U=fi.customMetadata)||void 0===U?void 0:U.screenshot_url)?i.jsx(c.default,{title:d,citation:fi,customStyles:null==M?void 0:M.webCitation,customIcons:R}):i.jsx(s.default,{label:d,url:null===(B=fi.customMetadata)||void 0===B?void 0:B.link,customStyles:null==M?void 0:M.webCitation,customIcons:R});if("audio_transcript"===(null===(V=null==fi?void 0:fi.customMetadata)||void 0===V?void 0:V.type))return"stormee"===(null==fi?void 0:fi.customMetadata.audio_citation_mode)?i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(v.default,{title:`${d}`,citation:fi,customStyles:null==M?void 0:M.stormeeCitation,customIcons:R})}):i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(p.default,{title:`${d}`,citation:fi,customStyles:null==M?void 0:M.waveformCitation,customIcons:R})});if("scanned_doc_citations"===(null===(X=null==fi?void 0:fi.customMetadata)||void 0===X?void 0:X.type)||"scanned_doc_citation"===(null===(J=null==fi?void 0:fi.customMetadata)||void 0===J?void 0:J.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(b.default,{title:d,citation:fi,customIcons:R,customStyles:null==M?void 0:M.scannedDocumentCitation,pdfViewHeaderAction:null==T?void 0:T.pdfViewHeaderAction})});if("image_citation"===(null==fi?void 0:fi.customMetadata.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(u.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==M?void 0:M.imageCitation})});if("book_citation_doc"===(null===(K=null==fi?void 0:fi.customMetadata)||void 0===K?void 0:K.type)||"book_citation_pdf"===(null==fi?void 0:fi.customMetadata.type)||"document_citations"===mi||"document_citation"===mi)return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(r.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==M?void 0:M.fileCitation,fetchOnDemandCitation:()=>{(async(i,t,e)=>{if(L)try{await L(i,t,e)}catch(t){console.error(`[On-Demand Fetch Error] Failed to load citation ${i}:`,t)}})(pi,$,mi)}})});if("app_mod_rag_question"===(null===(Q=null==fi?void 0:fi.customMetadata)||void 0===Q?void 0:Q.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(h.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==M?void 0:M.appModCitation,codeLinkConfig:null===(Y=null==T?void 0:T.appMod)||void 0===Y?void 0:Y.codeLinkConfig,isLoading:null===(Z=null==T?void 0:T.appMod)||void 0===Z?void 0:Z.isLoading})});if("rca_citation"===(null===(ii=null==fi?void 0:fi.customMetadata)||void 0===ii?void 0:ii.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(_.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==M?void 0:M.rcaCitation})});if("readfile_citation"===(null===(ti=null==fi?void 0:fi.customMetadata)||void 0===ti?void 0:ti.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(f.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==M?void 0:M.readFileCitation,fileCallback:null===(ei=null==T?void 0:T.readFile)||void 0===ei?void 0:ei.fileCallback,editorConfig:null===(oi=null==T?void 0:T.readFile)||void 0===oi?void 0:oi.editorConfig,customColors:null===(ni=null==T?void 0:T.readFile)||void 0===ni?void 0:ni.customColors})});if(gi&&!fi){const t=null!==(ai=null==R?void 0:R.citationLoadingIcon)&&void 0!==ai?ai:i.jsx("span",{className:l.default.citationSpinner,style:null===(li=null==M?void 0:M.loadingCitations)||void 0===li?void 0:li.citationSpinner});return i.jsx(a.Tooltip,{title:null!==(ci=null===(di=null==M?void 0:M.loadingCitations)||void 0===di?void 0:di.tooltipTitle)&&void 0!==ci?ci:`source ${mi.split("_")[0]} citations`,arrow:!0,children:i.jsxs("span",{className:l.default.citationSpinnerWrapper,style:null===(si=null==M?void 0:M.loadingCitations)||void 0===si?void 0:si.citationSpinnerWrapper,children:[d,t]})})}return i.jsx("span",{...y,className:l.default.paragraph,style:null==w?void 0:w.p,children:null==y?void 0:y.children})},code:({inline:t,children:e,className:o,node:n,...a})=>/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?i.jsx("div",{children:i.jsx("code",{className:l.default.blockCode,children:e})}):i.jsx("code",{className:l.default.inlineCode,style:null==w?void 0:w.code,children:e}),learned:({children:t})=>i.jsx(i.Fragment,{children:i.jsx(a.Tooltip,{title:t,placement:"top",children:i.jsx(n.Info,{size:16,className:l.default.learnedIcon})})})}),[P,y,T,A,W]);return i.jsx("div",{ref:D,className:"w-full",children:i.jsx(S.default,{components:G,rehypePlugins:[I.default],children:o})})},exports.formatChatData=q;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("react/jsx-runtime"),t=require("react"),e=require("react-markdown"),o=require("rehype-raw"),n=require("lucide-react"),a=require("@mui/material"),l=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),c=require("../citations/web-citation/WebCitationWithImageRenderer.js"),s=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),r=require("../citations/file-citation/FileCitationRender.js"),m=require("../RequirementAIWrapper/RequirementAIWrapper.js"),v=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),_=require("../citations/appmod-citation/AppmodCitationRenderer.js"),h=require("../citations/rca-citation/RCACitationRenderer.js"),f=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),g=require("../citations/chat-citation/ChatCitationRenderer.js"),C=require("@e-llm-studio/citation"),j=require("../citations/big-enough/BigEnoughCitationRenderer.js"),b=require("./ScannedCitationRenderer.js"),x=require("../citations/gpt-web-citation/GptWebCitationRenderer.js");function y(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var S=y(e),I=y(o);const k=["appmode_citation","appmode_citations","appmod_citation","appmod_citations","image_citation","image_citations","audio_citation","audio_citations","document_citation","document_citations","rca_citation","rca_citations","web_citation","web_citations","code_generated","chat_citation","readfile_citation","readfile_citations","gpt_citation","gpt_citations","big_enough_block","scanned_doc_citation","scanned_doc_citations"],q=(i,t,e)=>{const o=Number.isFinite(t)&&Number.isFinite(e);return[...i.map((i,n)=>{const a=n>=t&&n<=e;return{...i,highlighted_text:o?a?i.message:"":i.highlighted_text}})]};exports.AiReasonMarkdownWrapper=({label:e,message:o,isExpandableOrderedListEnabled:y,customStyles:M,citationStyles:w,customIcons:R,onSelectProceed:F,isDisableProceedButton:N,big_enough_block:W,aiReason:D})=>{const $=t.useRef(null),{citations:O,citationConfig:P,chatHistory:T,onFetchOnDemandCitation:A,chatCitationConfigs:L,gptCitationConfigs:E}=m.useRequirementAI();console.log("Testing::Citations in Lib",O);const G=async(i,t,e)=>{if(A)try{await A(i,t,e)}catch(t){console.error(`[On-Demand Fetch Error] Failed to load citation ${i}:`,t)}},H=t.useMemo(()=>({h1:({node:t,...e})=>i.jsx("h1",{className:l.default.h1,style:null==M?void 0:M.h1,children:null==e?void 0:e.children}),h2:({node:t,...e})=>i.jsx("h2",{className:l.default.h2,style:null==M?void 0:M.h2,children:null==e?void 0:e.children}),h3:({node:t,...e})=>i.jsx("h2",{className:l.default.h3,style:null==M?void 0:M.h3,children:null==e?void 0:e.children}),b:({node:t,...e})=>i.jsx("b",{className:l.default.bold,style:null==M?void 0:M.b}),p:({node:t,...e})=>i.jsx("p",{...e,className:l.default.paragraph,style:null==M?void 0:M.p,children:null==e?void 0:e.children}),ol:({node:t,...o})=>y?i.jsx(d.default,{label:e,customStyles:null==M?void 0:M.expandOlStyle,onProceed:F,isProceedDisabled:N,aiReasoningCitation:O,citationStyles:w,customIcons:R,children:null==o?void 0:o.children}):i.jsx("ol",{className:l.default.orderedList,style:null==M?void 0:M.ol,children:null==o?void 0:o.children}),ul:({node:t,...e})=>i.jsx("ul",{className:l.default.unorderedList,children:null==e?void 0:e.children}),a:({inline:e,children:d,node:m,...y})=>{var S,I,F,N,$,A,H,z,U,B,V,X,J,K,Q,Y,Z,ii,ti,ei,oi,ni,ai,li,di,ci,si;const ui="true"===(null==y?void 0:y.table),ri=`${null==y?void 0:y.href}`,[mi,vi=""]=ri.split("$"),[pi,_i=""]=vi.split("?"),hi="appmode_citation"===mi||"appmode_citations"===mi?(null==O?void 0:O.appmod_citations)||[]:"image_citation"===mi||"image_citations"===mi?(null==O?void 0:O.image_citations)||[]:"audio_citation"===mi||"audio_citations"===mi?(null==O?void 0:O.audio_citations)||[]:"document_citation"===mi||"document_citations"===mi?(null==O?void 0:O.file_citations)||[]:"rca_citation"===mi||"rca_citations"===mi?(null==O?void 0:O.rca_citations)||[]:"web_citation"===mi||"web_citations"===mi?(null==O?void 0:O.web_citations)||[]:"code_generated"===mi?(null==O?void 0:O.code_generated)||[]:"readfile_citation"===mi||"readfile_citations"===mi?(null==O?void 0:O.readfile_citations)||[]:"gpt_citation"===mi||"gpt_citations"===mi?(null==O?void 0:O.gpt_citations)||[]:"scanned_doc_citation"===mi||"scanned_doc_citations"===mi?(null==O?void 0:O.scanned_doc_citations)||[]:"big_enough_block"===mi&&W||[],fi=hi.find(i=>i.citation_number===decodeURIComponent(pi));console.log("TESTING::citation",fi,hi,mi,pi,_i,null==y?void 0:y.href);const gi=k.includes(mi);if("big_enough_block"===mi&&fi)return console.log("Rendering big enough block with citation:",w),i.jsx(j.default,{title:d,citation:fi,customStyles:null==w?void 0:w.bigEnoughCitation,customIcons:R});if("chat_citation"===mi){if(!T||0===T.length)return null;let t=0,e=T.length-1;if("all"!==pi){const[i,o]=pi.split("-").map(Number);t=Number.isFinite(i)?i:0,e=Number.isFinite(o)?o:t,t=t>0?t-1:t,e=e<T.length-1?e+1:e}return i.jsx(g.default,{customIcon:null==R?void 0:R.chatCitationIcon,title:d,chatHistory:q(T,t,e),isTable:ui,chatCitationProps:null==L?void 0:L.chatCitationProps,onCitationClick:null==L?void 0:L.handleCitationClicked,customStyles:null==w?void 0:w.chatCitation,openInFullscreenOnClick:null==L?void 0:L.openInFullscreenOnClick})}if(("gpt_citation"===mi||"gpt_citations"===mi)&&fi)return(null===(S=null==fi?void 0:fi.customMetadata)||void 0===S?void 0:S.value)?i.jsx(x.default,{title:d,citation:fi,customStyles:null==w?void 0:w.webCitation,customIcons:R,content:o}):i.jsx(C.NonWebReasoningComponent,{item:{text:"",dataSource:null===(F=null===(I=fi.customMetadata)||void 0===I?void 0:I.data_sources)||void 0===F?void 0:F[0],trainingDataTitle:null===($=null===(N=fi.customMetadata)||void 0===N?void 0:N.training_data_title)||void 0===$?void 0:$[0],paraphrase:null===(H=null===(A=fi.customMetadata)||void 0===A?void 0:A.paraphrase)||void 0===H?void 0:H[0]},headerTitle:(null==E?void 0:E.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:n.ChevronDown,ChevronUpIcon:n.ChevronUp,MaximizeIcon:n.Maximize2,CloseIcon:n.X},...null==E?void 0:E.gptCitationProps});if("image_citation"===mi&&!fi)return null;if("web_citation"===(null===(z=null==fi?void 0:fi.customMetadata)||void 0===z?void 0:z.type))return(null===(U=fi.customMetadata)||void 0===U?void 0:U.screenshot_url)?i.jsx(c.default,{title:d,citation:fi,customStyles:null==w?void 0:w.webCitation,customIcons:R}):i.jsx(s.default,{label:d,url:null===(B=fi.customMetadata)||void 0===B?void 0:B.link,customStyles:null==w?void 0:w.webCitation,customIcons:R});if("audio_transcript"===(null===(V=null==fi?void 0:fi.customMetadata)||void 0===V?void 0:V.type))return"stormee"===(null==fi?void 0:fi.customMetadata.audio_citation_mode)?i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(v.default,{title:`${d}`,citation:fi,customStyles:null==w?void 0:w.stormeeCitation,customIcons:R})}):i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(p.default,{title:`${d}`,citation:fi,customStyles:null==w?void 0:w.waveformCitation,customIcons:R})});if("scanned_doc_citations"===(null===(X=null==fi?void 0:fi.customMetadata)||void 0===X?void 0:X.type)||"scanned_doc_citation"===(null===(J=null==fi?void 0:fi.customMetadata)||void 0===J?void 0:J.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(b.default,{title:d,citation:fi,customIcons:R,customStyles:null==w?void 0:w.scannedDocumentCitation,pdfViewHeaderAction:null==P?void 0:P.pdfViewHeaderAction})});if("image_citation"===(null==fi?void 0:fi.customMetadata.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(u.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==w?void 0:w.imageCitation})});if("book_citation_doc"===(null===(K=null==fi?void 0:fi.customMetadata)||void 0===K?void 0:K.type)||"book_citation_pdf"===(null==fi?void 0:fi.customMetadata.type)||"document_citations"===mi||"document_citation"===mi)return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(r.default,{title:`${d}`,citation:fi||{citation_number:pi,customMetadata:{type:"book_citation_pdf"}},customIcons:R,customStyles:null==w?void 0:w.fileCitation,fetchOnDemandCitation:()=>{G(pi,D,mi)}})});if("app_mod_rag_question"===(null===(Q=null==fi?void 0:fi.customMetadata)||void 0===Q?void 0:Q.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(_.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==w?void 0:w.appModCitation,codeLinkConfig:null===(Y=null==P?void 0:P.appMod)||void 0===Y?void 0:Y.codeLinkConfig,isLoading:null===(Z=null==P?void 0:P.appMod)||void 0===Z?void 0:Z.isLoading})});if("rca_citation"===(null===(ii=null==fi?void 0:fi.customMetadata)||void 0===ii?void 0:ii.type))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(h.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==w?void 0:w.rcaCitation})});if("readfile_citation"===(null===(ti=null==fi?void 0:fi.customMetadata)||void 0===ti?void 0:ti.type)||mi.includes("readfile_citation"))return i.jsx(t.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx(f.default,{title:`${d}`,citation:fi,customIcons:R,customStyles:null==w?void 0:w.readFileCitation,fileCallback:null===(ei=null==P?void 0:P.readFile)||void 0===ei?void 0:ei.fileCallback,editorConfig:null===(oi=null==P?void 0:P.readFile)||void 0===oi?void 0:oi.editorConfig,customColors:null===(ni=null==P?void 0:P.readFile)||void 0===ni?void 0:ni.customColors,fetchOnDemandCitation:()=>{G(pi,D,mi)}})});if(gi&&!fi){const t=null!==(ai=null==R?void 0:R.citationLoadingIcon)&&void 0!==ai?ai:i.jsx("span",{className:l.default.citationSpinner,style:null===(li=null==w?void 0:w.loadingCitations)||void 0===li?void 0:li.citationSpinner});return i.jsx(a.Tooltip,{title:null!==(ci=null===(di=null==w?void 0:w.loadingCitations)||void 0===di?void 0:di.tooltipTitle)&&void 0!==ci?ci:`source ${mi.split("_")[0]} citations`,arrow:!0,children:i.jsxs("span",{className:l.default.citationSpinnerWrapper,style:null===(si=null==w?void 0:w.loadingCitations)||void 0===si?void 0:si.citationSpinnerWrapper,children:[d,t]})})}return i.jsx("span",{...y,className:l.default.paragraph,style:null==M?void 0:M.p,children:null==y?void 0:y.children})},code:({inline:t,children:e,className:o,node:n,...a})=>/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?i.jsx("div",{children:i.jsx("code",{className:l.default.blockCode,children:e})}):i.jsx("code",{className:l.default.inlineCode,style:null==M?void 0:M.code,children:e}),learned:({children:t})=>i.jsx(i.Fragment,{children:i.jsx(a.Tooltip,{title:t,placement:"top",children:i.jsx(n.Info,{size:16,className:l.default.learnedIcon})})})}),[O,y,P,T,W]);return i.jsx("div",{ref:$,className:"w-full",children:i.jsx(S.default,{components:H,rehypePlugins:[I.default],children:o})})},exports.formatChatData=q;
2
2
  //# sourceMappingURL=AiReasonMarkdownWrapper.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),o=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("./FileCitationContent.js"),n=require("./DocumentCitationIcon.js");exports.default=a=>{var e,l,d,c,u,v,r,s,p,m,_,f,y,M,b,C,g,k,x,h,j,S,I,q,w,D;const P=(null===(e=a.customIcons)||void 0===e?void 0:e.fileCitationIcon)||t.jsx(n.default,{});return t.jsx(o.default,{inLineCitation:!0,citationTitle:a.title,citationId:`file-citation-${a.citation.citation_number}`,citationComponent:t.jsx(i.default,{title:"book_citation_doc"===(null===(d=null===(l=a.citation)||void 0===l?void 0:l.customMetadata)||void 0===d?void 0:d.type)||"book_citation_pdf"===(null===(u=null===(c=a.citation)||void 0===c?void 0:c.customMetadata)||void 0===u?void 0:u.type)?`${null!==(s=null===(r=null===(v=a.citation)||void 0===v?void 0:v.customMetadata)||void 0===r?void 0:r.file_name)&&void 0!==s?s:""}`:"",gsUtilPath:"book_citation_doc"===(null===(m=null===(p=a.citation)||void 0===p?void 0:p.customMetadata)||void 0===m?void 0:m.type)||"book_citation_pdf"===(null===(f=null===(_=a.citation)||void 0===_?void 0:_.customMetadata)||void 0===f?void 0:f.type)?null===(M=null===(y=a.citation)||void 0===y?void 0:y.customMetadata)||void 0===M?void 0:M.gcs_upload_url:"",fileType:null===(C=null===(b=a.citation)||void 0===b?void 0:b.customMetadata)||void 0===C?void 0:C.type,relevanceScore:null===(k=null===(g=a.citation)||void 0===g?void 0:g.customMetadata)||void 0===k?void 0:k.relevance_score,customStyles:a.customStyles,isLoading:("book_citation_doc"===(null===(h=null===(x=a.citation)||void 0===x?void 0:x.customMetadata)||void 0===h?void 0:h.type)||"book_citation_pdf"===(null===(S=null===(j=a.citation)||void 0===j?void 0:j.customMetadata)||void 0===S?void 0:S.type))&&!(null===(q=null===(I=a.citation)||void 0===I?void 0:I.customMetadata)||void 0===q?void 0:q.gcs_upload_url)}),chevronDownComponent:P,chevronUpComponent:P,additionalCallbackForPillButton:()=>{var t;"book_citation_doc"!==a.citation.customMetadata.type&&"book_citation_pdf"!==a.citation.customMetadata.type||a.citation.customMetadata.gcs_upload_url||null===(t=a.fetchOnDemandCitation)||void 0===t||t.call(a)},styles:{pillButton:{fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none",...null===(w=a.customStyles)||void 0===w?void 0:w.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(D=a.customStyles)||void 0===D?void 0:D.content}}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),o=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("./FileCitationContent.js"),n=require("./DocumentCitationIcon.js");exports.default=l=>{var a,d,e,c,u,v,r,s,p,m,_,f,y,M,b,C,g,k,x,h,j,S,I,q,w,D,P;const B=(null===(a=l.customIcons)||void 0===a?void 0:a.fileCitationIcon)||t.jsx(n.default,{});return t.jsx(o.default,{inLineCitation:!0,citationTitle:l.title,citationId:`file-citation-${null===(d=l.citation)||void 0===d?void 0:d.citation_number}`,citationComponent:t.jsx(i.default,{title:"book_citation_doc"===(null===(c=null===(e=l.citation)||void 0===e?void 0:e.customMetadata)||void 0===c?void 0:c.type)||"book_citation_pdf"===(null===(v=null===(u=l.citation)||void 0===u?void 0:u.customMetadata)||void 0===v?void 0:v.type)?`${null!==(p=null===(s=null===(r=l.citation)||void 0===r?void 0:r.customMetadata)||void 0===s?void 0:s.file_name)&&void 0!==p?p:""}`:"",gsUtilPath:"book_citation_doc"===(null===(_=null===(m=l.citation)||void 0===m?void 0:m.customMetadata)||void 0===_?void 0:_.type)||"book_citation_pdf"===(null===(y=null===(f=l.citation)||void 0===f?void 0:f.customMetadata)||void 0===y?void 0:y.type)?null===(b=null===(M=l.citation)||void 0===M?void 0:M.customMetadata)||void 0===b?void 0:b.gcs_upload_url:"",fileType:null===(g=null===(C=l.citation)||void 0===C?void 0:C.customMetadata)||void 0===g?void 0:g.type,relevanceScore:null===(x=null===(k=l.citation)||void 0===k?void 0:k.customMetadata)||void 0===x?void 0:x.relevance_score,customStyles:l.customStyles,isLoading:("book_citation_doc"===(null===(j=null===(h=l.citation)||void 0===h?void 0:h.customMetadata)||void 0===j?void 0:j.type)||"book_citation_pdf"===(null===(I=null===(S=l.citation)||void 0===S?void 0:S.customMetadata)||void 0===I?void 0:I.type))&&!(null===(w=null===(q=l.citation)||void 0===q?void 0:q.customMetadata)||void 0===w?void 0:w.gcs_upload_url)}),chevronDownComponent:B,chevronUpComponent:B,additionalCallbackForPillButton:()=>{var t,o,i,n,a,d,e;"book_citation_doc"!==(null===(o=null===(t=l.citation)||void 0===t?void 0:t.customMetadata)||void 0===o?void 0:o.type)&&"book_citation_pdf"!==(null===(n=null===(i=l.citation)||void 0===i?void 0:i.customMetadata)||void 0===n?void 0:n.type)||(null===(d=null===(a=l.citation)||void 0===a?void 0:a.customMetadata)||void 0===d?void 0:d.gcs_upload_url)||null===(e=l.fetchOnDemandCitation)||void 0===e||e.call(l)},styles:{pillButton:{fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none",...null===(D=l.customStyles)||void 0===D?void 0:D.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(P=l.customStyles)||void 0===P?void 0:P.content}}})};
2
2
  //# sourceMappingURL=FileCitationRender.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("react-dom"),n=require("@monaco-editor/react"),i=require("./ReadFileCitationContent.module.css.js"),a=require("./icons/ExternalLinkIcon.js"),o=require("lucide-react"),r=require("./CustomFileIcon.js"),s=require("@mui/material");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(l),u=d(n);const h=e=>"number"==typeof e&&Number.isFinite(e),m=(e,t)=>h(e)&&h(t)?e<=0||t<e?null:{start:e,end:t,length:t-e+1}:null,p=(e,t,l,n)=>{let[i,a]=e;if(!Number.isFinite(i)||!Number.isFinite(a))return null;if(a<i&&([i,a]=[a,i]),h(l)&&h(n)){const e=Math.max(i,l),o=Math.min(a,n);if(e>o)return null;const r=e-l+1,s=o-l+1,d=Math.max(1,r),c=Math.min(t,s);return d>c?null:[d,c]}const o=Math.max(1,i),r=Math.min(t,a);return o>r?null:[o,r]},f=(e,t,l,n)=>{if(0===e.length)return!1;const i=m(l,n);if(!i)return!1;if(e.some(([e,l])=>e>t||l>t))return!0;if(i.start>t||i.end>t)return!0;if(Math.abs(i.length-t)<=1){return!e.every(([e,t])=>t<i.start||e>i.end)}return!1},g={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},v={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},x={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},b=e=>e.map(([e,t])=>e===t?`L${e}`:`L${e}-${t}`).join(", ");exports.default=({citation:l,customStyles:n,customColors:d,customIcons:y,editorConfig:j,fileCallback:C})=>{const N=t.useMemo(()=>({...g,...d}),[d]),M=t.useMemo(()=>({...v,...j}),[j]),[k,w]=t.useState(!1),F=t.useRef(null),P=t.useRef(!1),S=t.useRef(null);t.useEffect(()=>{const e=()=>{const e=document.querySelectorAll("dialog[open]");S.current=e.length>0?e[e.length-1]:document.body};e();const t=new MutationObserver(e);return t.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>t.disconnect()},[]);const O=t.useMemo(()=>({popper:{container:()=>{var e;return null!==(e=S.current)&&void 0!==e?e:document.body},sx:{zIndex:15e5}}}),[]),T=l.customMetadata.content||"",L=l.customMetadata.highlighted_text,B=l.customMetadata.start_line,q=l.customMetadata.end_line,E=h(B)?B+1:B,H=t.useMemo(()=>{if(!L)return{};try{let e=L.trim();return e.startsWith("```")&&(e=e.replace(/^```\w*\n?/,""),e=e.replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[L]),z=t.useMemo(()=>{const e=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;let l;for(;null!==(l=t.exec(T));){const t=l[1]||"javascript",n=l[2].trim(),i=l[3].trim();n&&i&&e.push({filePath:n,code:i,language:t})}return e},[T]),R=t.useCallback(e=>(H[e]||[]).map(e=>{const t=e.split("-").map(e=>Number(e.trim())),l=t[0],n=t.length>1?t[1]:l;return Number.isFinite(l)&&Number.isFinite(n)?[l,n]:null}).filter(e=>null!==e),[H]),$=t.useMemo(()=>{for(let e=0;e<z.length;e++){const t=z[e],l=t.code.split("\n").length,n=R(t.filePath),i=f(n,l,E,q);if(n.map(e=>p(e,l,i?E:void 0,i?q:void 0)).filter(e=>null!==e).length>0)return e}return-1},[z,R,E,q]),W=$>=0,I=t.useCallback((e,t)=>{const l=R(e),n=f(l,t,E,q);return l.map(e=>p(e,t,n?E:void 0,n?q:void 0)).filter(e=>null!==e)},[R,E,q]),_=t.useCallback((e,t)=>{const l=R(e);if(f(l,t,E,q)){const e=m(E,q);return e?l.map(([t,l])=>{const n=t<=l?[t,l]:[l,t],i=Math.max(n[0],e.start),a=Math.min(n[1],e.end);return i>a?null:[i,a]}).filter(e=>null!==e):[]}return I(e,t)},[R,I,E,q]);t.useEffect(()=>{if(W&&!P.current&&z.length>0&&(null==C?void 0:C.autoOpenFirstHighlighted)&&(null==C?void 0:C.onOpenFile)){const e=z[$],t=_(e.filePath,e.code.split("\n").length);P.current=!0;const l=setTimeout(()=>{C.onOpenFile({filePath:e.filePath,ranges:t.length>0?t:null})},300);return()=>clearTimeout(l)}},[W,$,z,I,C]),t.useEffect(()=>{P.current=!1},[T]),t.useEffect(()=>{if($<0)return;const e=setTimeout(()=>{var e;null===(e=F.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return()=>clearTimeout(e)},[$,L]);const D=t.useCallback((e,t)=>{if(null==C?void 0:C.onOpenFile){const l=_(e,t);C.onOpenFile({filePath:e,ranges:l.length>0?l:null})}},[_,C]),A=t.useMemo(()=>!C||(!!C.onExpandClick||!("onExpandClick"in C&&!C.onExpandClick)),[C]),G=t.useCallback(()=>{(null==C?void 0:C.onExpandClick)?C.onExpandClick({blocks:z,highlightMap:H}):w(!0)},[C,z,H]),J=!!(null==C?void 0:C.onOpenFile),V=(null==y?void 0:y.readFileCitationIcon)||e.jsx(a.default,{style:{width:"14px",height:"14px"}}),X=t.useCallback((e,t,l,n)=>{const a=[];if(l.forEach(([e,l])=>{a.push({range:new t.Range(e,1,l,1),options:{isWholeLine:!0,className:i.default.yellowHighlightedLine,linesDecorationsClassName:i.default.yellowHighlightedLineDecoration}})}),a.length>0)try{e.createDecorationsCollection(a)}catch(e){console.warn("Failed to create decorations:",e)}const o=l[0];o&&requestAnimationFrame(()=>{e.revealLineInCenter(o[0])}),n>0&&e.updateOptions({lineNumbers:e=>String(e+n)})},[]),K=t=>z.map((l,a)=>{const r=l.code.split("\n").length,d=R(l.filePath),c=f(d,r,E,q),m=d.map(e=>p(e,r,c?E:void 0,c?q:void 0)).filter(e=>null!==e),g=c&&h(E)?m.map(([e,t])=>[e+E-1,t+E-1]):m,v=m.length>0,y=a===$,j=t?600:M.maxHeight,C=(()=>{const e=20*l.code.split("\n").length+16+4;return Math.min(Math.max(e,M.minHeight),j)})(),k=l.filePath.split("/").pop()||l.filePath,w=c&&h(E)?E-1:0,P=w+r,S=String(Math.max(1,P)).length;return e.jsxs("div",{ref:!t&&y?F:void 0,"data-highlighted":v?"true":void 0,"data-first-highlighted":y?"true":void 0,className:i.default.blockContainer,style:{border:`1px solid ${N.border}`,...null==n?void 0:n.blockContainer},children:[e.jsxs("div",{className:i.default.header,style:{backgroundColor:v?N.highlightBg:N.headerBg,borderBottom:`1px solid ${N.border}`,color:v?N.highlightGutter:N.foreground,...v?null==n?void 0:n.headerHighlighted:null==n?void 0:n.header},children:[e.jsxs("div",{className:i.default.headerLeft,children:[e.jsx(s.Tooltip,{title:l.filePath,arrow:!0,placement:"top",slotProps:O,children:e.jsx("span",{className:i.default.fileName,style:null==n?void 0:n.fileName,onClick:()=>D(l.filePath,r),children:k})}),J&&e.jsx(s.Tooltip,{title:`Open ${k} in editor`,arrow:!0,placement:"top",slotProps:O,children:e.jsx("button",{className:i.default.openFileButton,onClick:()=>D(l.filePath,r),"aria-label":`Open ${k} in editor`,style:null==n?void 0:n.openFileButton,children:V})})]}),e.jsxs("div",{className:i.default.headerRight,children:[v&&e.jsx(s.Tooltip,{title:`Highlighted lines: ${b(g)}`,arrow:!0,placement:"top",slotProps:O,children:e.jsx("span",{className:i.default.lineRanges,style:null==n?void 0:n.lineRanges,children:b(g)})}),!t&&A&&0===a&&e.jsx(s.Tooltip,{title:"Expand code view",arrow:!0,placement:"top",slotProps:O,children:e.jsx("button",{className:i.default.expandButton,style:null==n?void 0:n.expandButton,onClick:G,"aria-label":`Expand ${k} code view`,children:e.jsx(o.Maximize2,{size:13})})})]})]}),e.jsx("div",{className:i.default.editorWrapper,style:{height:`${C}px`,backgroundColor:N.background,...null==n?void 0:n.editorWrapper},children:e.jsx(u.default,{height:"100%",language:(T=l.language,x[T.toLowerCase()]||T),value:l.code,theme:M.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:M.fontSize,lineHeight:20,fontFamily:M.fontFamily,lineNumbers:w>0?e=>String(e+w):"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,S),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:(e,t)=>X(e,t,m,w),loading:e.jsx("div",{className:i.default.editorLoading,style:{color:N.inactiveText},children:"Loading editor..."})})})]},a);var T});if(0===z.length)return e.jsx("div",{className:i.default.emptyState,style:{color:N.inactiveText,...null==n?void 0:n.emptyState},children:"No code content available"});const Q=k?c.default.createPortal(e.jsx("div",{className:i.default.modalOverlay,style:null==n?void 0:n.modalOverlay,onClick:e=>{e.target===e.currentTarget&&w(!1)},children:e.jsxs("div",{className:i.default.modalContent,style:null==n?void 0:n.modalContent,children:[e.jsxs("div",{className:i.default.modalHeader,style:null==n?void 0:n.modalHeader,children:[e.jsx("span",{className:i.default.modalTitle,style:null==n?void 0:n.modalTitle,children:1===z.length?e.jsx(s.Tooltip,{title:z[0].filePath,arrow:!0,placement:"top",slotProps:O,children:e.jsxs("span",{className:i.default.modalTitleContent,children:[e.jsx(r.default,{name:z[0].filePath,size:"15px"}),e.jsx("span",{className:i.default.modalTitleText,children:z[0].filePath})]})}):`${z.length} files`}),e.jsx(s.Tooltip,{title:"Close expanded view",arrow:!0,placement:"bottom",slotProps:O,children:e.jsx("button",{className:i.default.modalCloseButton,style:null==n?void 0:n.modalCloseButton,onClick:()=>w(!1),"aria-label":"Close expanded view",children:e.jsx(o.X,{size:16})})})]}),e.jsx("div",{className:i.default.modalBody,children:e.jsx("div",{className:i.default.container,style:null==n?void 0:n.container,children:K(!0)})})]})}),document.body):null;return e.jsxs(e.Fragment,{children:[Q,e.jsx("div",{className:i.default.container,style:null==n?void 0:n.container,children:K(!1)})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("react-dom"),n=require("@monaco-editor/react"),i=require("./ReadFileCitationContent.module.css.js"),o=require("./icons/ExternalLinkIcon.js"),a=require("lucide-react"),r=require("./CustomFileIcon.js"),s=require("@mui/material");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(l),c=d(n);const h=e=>"number"==typeof e&&Number.isFinite(e),m=(e,t)=>h(e)&&h(t)?e<=0||t<e?null:{start:e,end:t,length:t-e+1}:null,p=(e,t,l,n)=>{let[i,o]=e;if(!Number.isFinite(i)||!Number.isFinite(o))return null;if(o<i&&([i,o]=[o,i]),h(l)&&h(n)){const e=Math.max(i,l),a=Math.min(o,n);if(e>a)return null;const r=e-l+1,s=a-l+1,d=Math.max(1,r),u=Math.min(t,s);return d>u?null:[d,u]}const a=Math.max(1,i),r=Math.min(t,o);return a>r?null:[a,r]},f=(e,t,l,n)=>{if(0===e.length)return!1;const i=m(l,n);if(!i)return!1;if(e.some(([e,l])=>e>t||l>t))return!0;if(i.start>t||i.end>t)return!0;if(Math.abs(i.length-t)<=1){return!e.every(([e,t])=>t<i.start||e>i.end)}return!1},g={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},v={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},x={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},b=e=>e.map(([e,t])=>e===t?`L${e}`:`L${e}-${t}`).join(", ");exports.default=({citation:l,customStyles:n,customColors:d,customIcons:y,editorConfig:j,fileCallback:C})=>{var N,M,k,w;const F=t.useMemo(()=>({...g,...d}),[d]),P=t.useMemo(()=>({...v,...j}),[j]),[S,O]=t.useState(!1),T=t.useRef(null),L=t.useRef(!1),B=t.useRef(null);t.useEffect(()=>{const e=()=>{const e=document.querySelectorAll("dialog[open]");B.current=e.length>0?e[e.length-1]:document.body};e();const t=new MutationObserver(e);return t.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>t.disconnect()},[]);const q=t.useMemo(()=>({popper:{container:()=>{var e;return null!==(e=B.current)&&void 0!==e?e:document.body},sx:{zIndex:15e5}}}),[]),E=(null===(N=null==l?void 0:l.customMetadata)||void 0===N?void 0:N.content)||"",H=null===(M=null==l?void 0:l.customMetadata)||void 0===M?void 0:M.highlighted_text,z=null===(k=null==l?void 0:l.customMetadata)||void 0===k?void 0:k.start_line,R=null===(w=null==l?void 0:l.customMetadata)||void 0===w?void 0:w.end_line,$=h(z)?z+1:z,W=t.useMemo(()=>{if(!H)return{};try{let e=H.trim();return e.startsWith("```")&&(e=e.replace(/^```\w*\n?/,""),e=e.replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[H]),I=t.useMemo(()=>{const e=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;let l;for(;null!==(l=t.exec(E));){const t=l[1]||"javascript",n=l[2].trim(),i=l[3].trim();n&&i&&e.push({filePath:n,code:i,language:t})}return e},[E]),_=t.useCallback(e=>(W[e]||[]).map(e=>{const t=e.split("-").map(e=>Number(e.trim())),l=t[0],n=t.length>1?t[1]:l;return Number.isFinite(l)&&Number.isFinite(n)?[l,n]:null}).filter(e=>null!==e),[W]),D=t.useMemo(()=>{for(let e=0;e<I.length;e++){const t=I[e],l=t.code.split("\n").length,n=_(t.filePath),i=f(n,l,$,R);if(n.map(e=>p(e,l,i?$:void 0,i?R:void 0)).filter(e=>null!==e).length>0)return e}return-1},[I,_,$,R]),A=D>=0,G=t.useCallback((e,t)=>{const l=_(e),n=f(l,t,$,R);return l.map(e=>p(e,t,n?$:void 0,n?R:void 0)).filter(e=>null!==e)},[_,$,R]),J=t.useCallback((e,t)=>{const l=_(e);if(f(l,t,$,R)){const e=m($,R);return e?l.map(([t,l])=>{const n=t<=l?[t,l]:[l,t],i=Math.max(n[0],e.start),o=Math.min(n[1],e.end);return i>o?null:[i,o]}).filter(e=>null!==e):[]}return G(e,t)},[_,G,$,R]);t.useEffect(()=>{if(A&&!L.current&&I.length>0&&(null==C?void 0:C.autoOpenFirstHighlighted)&&(null==C?void 0:C.onOpenFile)){const e=I[D],t=J(e.filePath,e.code.split("\n").length);L.current=!0;const l=setTimeout(()=>{C.onOpenFile({filePath:e.filePath,ranges:t.length>0?t:null})},300);return()=>clearTimeout(l)}},[A,D,I,G,C]),t.useEffect(()=>{L.current=!1},[E]),t.useEffect(()=>{if(D<0)return;const e=setTimeout(()=>{var e;null===(e=T.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return()=>clearTimeout(e)},[D,H]);const V=t.useCallback((e,t)=>{if(null==C?void 0:C.onOpenFile){const l=J(e,t);C.onOpenFile({filePath:e,ranges:l.length>0?l:null})}},[J,C]),X=t.useMemo(()=>!C||(!!C.onExpandClick||!("onExpandClick"in C&&!C.onExpandClick)),[C]),K=t.useCallback(()=>{(null==C?void 0:C.onExpandClick)?C.onExpandClick({blocks:I,highlightMap:W}):O(!0)},[C,I,W]),Q=!!(null==C?void 0:C.onOpenFile),U=(null==y?void 0:y.readFileCitationIcon)||e.jsx(o.default,{style:{width:"14px",height:"14px"}}),Y=t.useCallback((e,t,l,n)=>{const o=[];if(l.forEach(([e,l])=>{o.push({range:new t.Range(e,1,l,1),options:{isWholeLine:!0,className:i.default.yellowHighlightedLine,linesDecorationsClassName:i.default.yellowHighlightedLineDecoration}})}),o.length>0)try{e.createDecorationsCollection(o)}catch(e){console.warn("Failed to create decorations:",e)}const a=l[0];a&&requestAnimationFrame(()=>{e.revealLineInCenter(a[0])}),n>0&&e.updateOptions({lineNumbers:e=>String(e+n)})},[]),Z=t=>I.map((l,o)=>{const r=l.code.split("\n").length,d=_(l.filePath),u=f(d,r,$,R),m=d.map(e=>p(e,r,u?$:void 0,u?R:void 0)).filter(e=>null!==e),g=u&&h($)?m.map(([e,t])=>[e+$-1,t+$-1]):m,v=m.length>0,y=o===D,j=t?600:P.maxHeight,C=(()=>{const e=20*l.code.split("\n").length+16+4;return Math.min(Math.max(e,P.minHeight),j)})(),N=l.filePath.split("/").pop()||l.filePath,M=u&&h($)?$-1:0,k=M+r,w=String(Math.max(1,k)).length;return e.jsxs("div",{ref:!t&&y?T:void 0,"data-highlighted":v?"true":void 0,"data-first-highlighted":y?"true":void 0,className:i.default.blockContainer,style:{border:`1px solid ${F.border}`,...null==n?void 0:n.blockContainer},children:[e.jsxs("div",{className:i.default.header,style:{backgroundColor:v?F.highlightBg:F.headerBg,borderBottom:`1px solid ${F.border}`,color:v?F.highlightGutter:F.foreground,...v?null==n?void 0:n.headerHighlighted:null==n?void 0:n.header},children:[e.jsxs("div",{className:i.default.headerLeft,children:[e.jsx(s.Tooltip,{title:l.filePath,arrow:!0,placement:"top",slotProps:q,children:e.jsx("span",{className:i.default.fileName,style:null==n?void 0:n.fileName,onClick:()=>V(l.filePath,r),children:N})}),Q&&e.jsx(s.Tooltip,{title:`Open ${N} in editor`,arrow:!0,placement:"top",slotProps:q,children:e.jsx("button",{className:i.default.openFileButton,onClick:()=>V(l.filePath,r),"aria-label":`Open ${N} in editor`,style:null==n?void 0:n.openFileButton,children:U})})]}),e.jsxs("div",{className:i.default.headerRight,children:[v&&e.jsx(s.Tooltip,{title:`Highlighted lines: ${b(g)}`,arrow:!0,placement:"top",slotProps:q,children:e.jsx("span",{className:i.default.lineRanges,style:null==n?void 0:n.lineRanges,children:b(g)})}),!t&&X&&0===o&&e.jsx(s.Tooltip,{title:"Expand code view",arrow:!0,placement:"top",slotProps:q,children:e.jsx("button",{className:i.default.expandButton,style:null==n?void 0:n.expandButton,onClick:K,"aria-label":`Expand ${N} code view`,children:e.jsx(a.Maximize2,{size:13})})})]})]}),e.jsx("div",{className:i.default.editorWrapper,style:{height:`${C}px`,backgroundColor:F.background,...null==n?void 0:n.editorWrapper},children:e.jsx(c.default,{height:"100%",language:(S=l.language,x[S.toLowerCase()]||S),value:l.code,theme:P.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:P.fontSize,lineHeight:20,fontFamily:P.fontFamily,lineNumbers:M>0?e=>String(e+M):"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,w),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:(e,t)=>Y(e,t,m,M),loading:e.jsx("div",{className:i.default.editorLoading,style:{color:F.inactiveText},children:"Loading editor..."})})})]},o);var S});if(0===I.length)return e.jsx("div",{className:i.default.emptyState,style:{color:F.inactiveText,...null==n?void 0:n.emptyState},children:"No code content available"});const ee=S?u.default.createPortal(e.jsx("div",{className:i.default.modalOverlay,style:null==n?void 0:n.modalOverlay,onClick:e=>{e.target===e.currentTarget&&O(!1)},children:e.jsxs("div",{className:i.default.modalContent,style:null==n?void 0:n.modalContent,children:[e.jsxs("div",{className:i.default.modalHeader,style:null==n?void 0:n.modalHeader,children:[e.jsx("span",{className:i.default.modalTitle,style:null==n?void 0:n.modalTitle,children:1===I.length?e.jsx(s.Tooltip,{title:I[0].filePath,arrow:!0,placement:"top",slotProps:q,children:e.jsxs("span",{className:i.default.modalTitleContent,children:[e.jsx(r.default,{name:I[0].filePath,size:"15px"}),e.jsx("span",{className:i.default.modalTitleText,children:I[0].filePath})]})}):`${I.length} files`}),e.jsx(s.Tooltip,{title:"Close expanded view",arrow:!0,placement:"bottom",slotProps:q,children:e.jsx("button",{className:i.default.modalCloseButton,style:null==n?void 0:n.modalCloseButton,onClick:()=>O(!1),"aria-label":"Close expanded view",children:e.jsx(a.X,{size:16})})})]}),e.jsx("div",{className:i.default.modalBody,children:e.jsx("div",{className:i.default.container,style:null==n?void 0:n.container,children:Z(!0)})})]})}),document.body):null;return e.jsxs(e.Fragment,{children:[ee,e.jsx("div",{className:i.default.container,style:null==n?void 0:n.container,children:Z(!1)})]})};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("./icons/FileCodeIcon.js"),n=require("./ReadFileCitationContent.js");exports.default=({title:o,citation:r,customStyles:a,customColors:l,customIcons:s,editorConfig:c,fileCallback:u})=>{const d=(null==s?void 0:s.readFileCitationIcon)||e.jsx(i.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),p=o+"⁠";return e.jsx(t.default,{inLineCitation:!0,citationTitle:p,citationId:`readfile-${r.citation_number}`,citationIcon:e.jsx(e.Fragment,{}),citationComponent:e.jsx(n.default,{citation:r,customStyles:a,customColors:l,customIcons:s,editorConfig:c,fileCallback:u}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none",...null==a?void 0:a.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../../../CitationRenderer/CitationRenderer.js"),i=require("./icons/FileCodeIcon.js"),n=require("./ReadFileCitationContent.js");exports.default=({title:o,citation:l,customStyles:a,customColors:r,customIcons:s,editorConfig:c,fileCallback:d,fetchOnDemandCitation:u})=>{const p=(null==s?void 0:s.readFileCitationIcon)||t.jsx(i.default,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}}),C=o+"⁠";return t.jsx(e.default,{inLineCitation:!0,citationTitle:C,citationId:`readfile-${null==l?void 0:l.citation_number}`,citationIcon:t.jsx(t.Fragment,{}),citationComponent:!l&&u?t.jsx("div",{style:{textAlign:"center",color:"grey",...null==a?void 0:a.loadingCitation},children:"Loading Citation..."}):t.jsx(n.default,{citation:l,customStyles:a,customColors:r,customIcons:s,editorConfig:c,fileCallback:d}),chevronDownComponent:p,additionalCallbackForPillButton:()=>{l||null==u||u()},chevronUpComponent:p,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none",...null==a?void 0:a.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};
2
2
  //# sourceMappingURL=ReadFileCitationRenderer.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as i,Fragment as t,jsxs as o}from"react/jsx-runtime";import{useRef as n,useMemo as e,Suspense as a}from"react";import l from"react-markdown";import c from"rehype-raw";import{ChevronDown as d,ChevronUp as s,Maximize2 as r,X as u,Info as m}from"lucide-react";import{Tooltip as v}from"@mui/material";import p from"./AiReasonMarkdownWrapper.module.css.js";import h from"../../shared/ExpandableOl.js";import _ from"../citations/web-citation/WebCitationWithImageRenderer.js";import g from"../citations/web-citation/WebCitationRenderer.js";import f from"../citations/image-citation/ImageCitationRenderer.js";import C from"../citations/file-citation/FileCitationRender.js";import{useRequirementAI as b}from"../RequirementAIWrapper/RequirementAIWrapper.js";import y from"../citations/stormee-citation/StormeeCitationRenderer.js";import I from"../citations/audio-citation/WaveformCitationRenderer.js";import k from"../citations/appmod-citation/AppmodCitationRenderer.js";import S from"../citations/rca-citation/RCACitationRenderer.js";import w from"../citations/readfile-citation/ReadFileCitationRenderer.js";import M from"../citations/chat-citation/ChatCitationRenderer.js";import{NonWebReasoningComponent as R}from"@e-llm-studio/citation";import N from"../citations/big-enough/BigEnoughCitationRenderer.js";import j from"./ScannedCitationRenderer.js";import F from"../citations/gpt-web-citation/GptWebCitationRenderer.js";const $=["appmode_citation","appmode_citations","appmod_citation","appmod_citations","image_citation","image_citations","audio_citation","audio_citations","document_citation","document_citations","rca_citation","rca_citations","web_citation","web_citations","code_generated","chat_citation","readfile_citation","readfile_citations","gpt_citation","gpt_citations","big_enough_block","scanned_doc_citation","scanned_doc_citations"],x=(i,t,o)=>{const n=Number.isFinite(t)&&Number.isFinite(o);return[...i.map((i,e)=>{const a=e>=t&&e<=o;return{...i,highlighted_text:n?a?i.message:"":i.highlighted_text}})]},W=({label:W,message:L,isExpandableOrderedListEnabled:P,customStyles:D,citationStyles:O,customIcons:T,onSelectProceed:A,isDisableProceedButton:E,big_enough_block:G,aiReason:H})=>{const q=n(null),{citations:z,citationConfig:B,chatHistory:U,onFetchOnDemandCitation:V,chatCitationConfigs:J,gptCitationConfigs:K}=b();console.log("Testing::Citations in Lib",z);const Q=e(()=>({h1:({node:t,...o})=>i("h1",{className:p.h1,style:null==D?void 0:D.h1,children:null==o?void 0:o.children}),h2:({node:t,...o})=>i("h2",{className:p.h2,style:null==D?void 0:D.h2,children:null==o?void 0:o.children}),h3:({node:t,...o})=>i("h2",{className:p.h3,style:null==D?void 0:D.h3,children:null==o?void 0:o.children}),b:({node:t,...o})=>i("b",{className:p.bold,style:null==D?void 0:D.b}),p:({node:t,...o})=>i("p",{...o,className:p.paragraph,style:null==D?void 0:D.p,children:null==o?void 0:o.children}),ol:({node:t,...o})=>P?i(h,{label:W,customStyles:null==D?void 0:D.expandOlStyle,onProceed:A,isProceedDisabled:E,aiReasoningCitation:z,citationStyles:O,customIcons:T,children:null==o?void 0:o.children}):i("ol",{className:p.orderedList,style:null==D?void 0:D.ol,children:null==o?void 0:o.children}),ul:({node:t,...o})=>i("ul",{className:p.unorderedList,children:null==o?void 0:o.children}),a:({inline:n,children:e,node:l,...c})=>{var m,h,b,W,P,A,E,q,Q,X,Y,Z,ii,ti,oi,ni,ei,ai,li,ci,di,si,ri,ui,mi,vi,pi;const hi="true"===(null==c?void 0:c.table),_i=`${null==c?void 0:c.href}`,[gi,fi=""]=_i.split("$"),[Ci,bi=""]=fi.split("?"),yi="appmode_citation"===gi||"appmode_citations"===gi?(null==z?void 0:z.appmod_citations)||[]:"image_citation"===gi||"image_citations"===gi?(null==z?void 0:z.image_citations)||[]:"audio_citation"===gi||"audio_citations"===gi?(null==z?void 0:z.audio_citations)||[]:"document_citation"===gi||"document_citations"===gi?(null==z?void 0:z.file_citations)||[]:"rca_citation"===gi||"rca_citations"===gi?(null==z?void 0:z.rca_citations)||[]:"web_citation"===gi||"web_citations"===gi?(null==z?void 0:z.web_citations)||[]:"code_generated"===gi?(null==z?void 0:z.code_generated)||[]:"readfile_citation"===gi||"readfile_citations"===gi?(null==z?void 0:z.readfile_citations)||[]:"gpt_citation"===gi||"gpt_citations"===gi?(null==z?void 0:z.gpt_citations)||[]:"scanned_doc_citation"===gi||"scanned_doc_citations"===gi?(null==z?void 0:z.scanned_doc_citations)||[]:"big_enough_block"===gi&&G||[],Ii=yi.find(i=>i.citation_number===decodeURIComponent(Ci));console.log("TESTING::citation",Ii,yi);const ki=$.includes(gi);if("big_enough_block"===gi&&Ii)return console.log("Rendering big enough block with citation:",O),i(N,{title:e,citation:Ii,customStyles:null==O?void 0:O.bigEnoughCitation,customIcons:T});if("chat_citation"===gi){if(!U||0===U.length)return null;let t=0,o=U.length-1;if("all"!==Ci){const[i,n]=Ci.split("-").map(Number);t=Number.isFinite(i)?i:0,o=Number.isFinite(n)?n:t,t=t>0?t-1:t,o=o<U.length-1?o+1:o}return i(M,{customIcon:null==T?void 0:T.chatCitationIcon,title:e,chatHistory:x(U,t,o),isTable:hi,chatCitationProps:null==J?void 0:J.chatCitationProps,onCitationClick:null==J?void 0:J.handleCitationClicked,customStyles:null==O?void 0:O.chatCitation,openInFullscreenOnClick:null==J?void 0:J.openInFullscreenOnClick})}if(("gpt_citation"===gi||"gpt_citations"===gi)&&Ii)return(null===(m=null==Ii?void 0:Ii.customMetadata)||void 0===m?void 0:m.value)?i(F,{title:e,citation:Ii,customStyles:null==O?void 0:O.webCitation,customIcons:T,content:L}):i(R,{item:{text:"",dataSource:null===(b=null===(h=Ii.customMetadata)||void 0===h?void 0:h.data_sources)||void 0===b?void 0:b[0],trainingDataTitle:null===(P=null===(W=Ii.customMetadata)||void 0===W?void 0:W.training_data_title)||void 0===P?void 0:P[0],paraphrase:null===(E=null===(A=Ii.customMetadata)||void 0===A?void 0:A.paraphrase)||void 0===E?void 0:E[0]},headerTitle:(null==K?void 0:K.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:d,ChevronUpIcon:s,MaximizeIcon:r,CloseIcon:u},...null==K?void 0:K.gptCitationProps});if("image_citation"===gi&&!Ii)return null;if("web_citation"===(null===(q=null==Ii?void 0:Ii.customMetadata)||void 0===q?void 0:q.type))return(null===(Q=Ii.customMetadata)||void 0===Q?void 0:Q.screenshot_url)?i(_,{title:e,citation:Ii,customStyles:null==O?void 0:O.webCitation,customIcons:T}):i(g,{label:e,url:null===(X=Ii.customMetadata)||void 0===X?void 0:X.link,customStyles:null==O?void 0:O.webCitation,customIcons:T});if("audio_transcript"===(null===(Y=null==Ii?void 0:Ii.customMetadata)||void 0===Y?void 0:Y.type))return"stormee"===(null==Ii?void 0:Ii.customMetadata.audio_citation_mode)?i(a,{fallback:i(t,{}),children:i(y,{title:`${e}`,citation:Ii,customStyles:null==O?void 0:O.stormeeCitation,customIcons:T})}):i(a,{fallback:i(t,{}),children:i(I,{title:`${e}`,citation:Ii,customStyles:null==O?void 0:O.waveformCitation,customIcons:T})});if("scanned_doc_citations"===(null===(Z=null==Ii?void 0:Ii.customMetadata)||void 0===Z?void 0:Z.type)||"scanned_doc_citation"===(null===(ii=null==Ii?void 0:Ii.customMetadata)||void 0===ii?void 0:ii.type))return i(a,{fallback:i(t,{}),children:i(j,{title:e,citation:Ii,customIcons:T,customStyles:null==O?void 0:O.scannedDocumentCitation,pdfViewHeaderAction:null==B?void 0:B.pdfViewHeaderAction})});if("image_citation"===(null==Ii?void 0:Ii.customMetadata.type))return i(a,{fallback:i(t,{}),children:i(f,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==O?void 0:O.imageCitation})});if("book_citation_doc"===(null===(ti=null==Ii?void 0:Ii.customMetadata)||void 0===ti?void 0:ti.type)||"book_citation_pdf"===(null==Ii?void 0:Ii.customMetadata.type)||"document_citations"===gi||"document_citation"===gi)return i(a,{fallback:i(t,{}),children:i(C,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==O?void 0:O.fileCitation,fetchOnDemandCitation:()=>{(async(i,t,o)=>{if(V)try{await V(i,t,o)}catch(t){console.error(`[On-Demand Fetch Error] Failed to load citation ${i}:`,t)}})(Ci,H,gi)}})});if("app_mod_rag_question"===(null===(oi=null==Ii?void 0:Ii.customMetadata)||void 0===oi?void 0:oi.type))return i(a,{fallback:i(t,{}),children:i(k,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==O?void 0:O.appModCitation,codeLinkConfig:null===(ni=null==B?void 0:B.appMod)||void 0===ni?void 0:ni.codeLinkConfig,isLoading:null===(ei=null==B?void 0:B.appMod)||void 0===ei?void 0:ei.isLoading})});if("rca_citation"===(null===(ai=null==Ii?void 0:Ii.customMetadata)||void 0===ai?void 0:ai.type))return i(a,{fallback:i(t,{}),children:i(S,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==O?void 0:O.rcaCitation})});if("readfile_citation"===(null===(li=null==Ii?void 0:Ii.customMetadata)||void 0===li?void 0:li.type))return i(a,{fallback:i(t,{}),children:i(w,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==O?void 0:O.readFileCitation,fileCallback:null===(ci=null==B?void 0:B.readFile)||void 0===ci?void 0:ci.fileCallback,editorConfig:null===(di=null==B?void 0:B.readFile)||void 0===di?void 0:di.editorConfig,customColors:null===(si=null==B?void 0:B.readFile)||void 0===si?void 0:si.customColors})});if(ki&&!Ii){const t=null!==(ri=null==T?void 0:T.citationLoadingIcon)&&void 0!==ri?ri:i("span",{className:p.citationSpinner,style:null===(ui=null==O?void 0:O.loadingCitations)||void 0===ui?void 0:ui.citationSpinner});return i(v,{title:null!==(vi=null===(mi=null==O?void 0:O.loadingCitations)||void 0===mi?void 0:mi.tooltipTitle)&&void 0!==vi?vi:`source ${gi.split("_")[0]} citations`,arrow:!0,children:o("span",{className:p.citationSpinnerWrapper,style:null===(pi=null==O?void 0:O.loadingCitations)||void 0===pi?void 0:pi.citationSpinnerWrapper,children:[e,t]})})}return i("span",{...c,className:p.paragraph,style:null==D?void 0:D.p,children:null==c?void 0:c.children})},code:({inline:t,children:o,className:n,node:e,...a})=>/language-(\w+)/.exec(n||"")||(null==n?void 0:n.includes("language-"))?i("div",{children:i("code",{className:p.blockCode,children:o})}):i("code",{className:p.inlineCode,style:null==D?void 0:D.code,children:o}),learned:({children:o})=>i(t,{children:i(v,{title:o,placement:"top",children:i(m,{size:16,className:p.learnedIcon})})})}),[z,P,B,U,G]);return i("div",{ref:q,className:"w-full",children:i(l,{components:Q,rehypePlugins:[c],children:L})})};export{W as AiReasonMarkdownWrapper,x as formatChatData};
1
+ import{jsx as i,Fragment as t,jsxs as o}from"react/jsx-runtime";import{useRef as n,useMemo as e,Suspense as a}from"react";import l from"react-markdown";import c from"rehype-raw";import{ChevronDown as d,ChevronUp as s,Maximize2 as r,X as u,Info as m}from"lucide-react";import{Tooltip as v}from"@mui/material";import p from"./AiReasonMarkdownWrapper.module.css.js";import _ from"../../shared/ExpandableOl.js";import h from"../citations/web-citation/WebCitationWithImageRenderer.js";import f from"../citations/web-citation/WebCitationRenderer.js";import g from"../citations/image-citation/ImageCitationRenderer.js";import C from"../citations/file-citation/FileCitationRender.js";import{useRequirementAI as b}from"../RequirementAIWrapper/RequirementAIWrapper.js";import y from"../citations/stormee-citation/StormeeCitationRenderer.js";import I from"../citations/audio-citation/WaveformCitationRenderer.js";import k from"../citations/appmod-citation/AppmodCitationRenderer.js";import S from"../citations/rca-citation/RCACitationRenderer.js";import w from"../citations/readfile-citation/ReadFileCitationRenderer.js";import M from"../citations/chat-citation/ChatCitationRenderer.js";import{NonWebReasoningComponent as R}from"@e-llm-studio/citation";import N from"../citations/big-enough/BigEnoughCitationRenderer.js";import j from"./ScannedCitationRenderer.js";import F from"../citations/gpt-web-citation/GptWebCitationRenderer.js";const $=["appmode_citation","appmode_citations","appmod_citation","appmod_citations","image_citation","image_citations","audio_citation","audio_citations","document_citation","document_citations","rca_citation","rca_citations","web_citation","web_citations","code_generated","chat_citation","readfile_citation","readfile_citations","gpt_citation","gpt_citations","big_enough_block","scanned_doc_citation","scanned_doc_citations"],x=(i,t,o)=>{const n=Number.isFinite(t)&&Number.isFinite(o);return[...i.map((i,e)=>{const a=e>=t&&e<=o;return{...i,highlighted_text:n?a?i.message:"":i.highlighted_text}})]},W=({label:W,message:D,isExpandableOrderedListEnabled:L,customStyles:O,citationStyles:P,customIcons:T,onSelectProceed:A,isDisableProceedButton:E,big_enough_block:G,aiReason:H})=>{const q=n(null),{citations:z,citationConfig:B,chatHistory:U,onFetchOnDemandCitation:V,chatCitationConfigs:J,gptCitationConfigs:K}=b();console.log("Testing::Citations in Lib",z);const Q=async(i,t,o)=>{if(V)try{await V(i,t,o)}catch(t){console.error(`[On-Demand Fetch Error] Failed to load citation ${i}:`,t)}},X=e(()=>({h1:({node:t,...o})=>i("h1",{className:p.h1,style:null==O?void 0:O.h1,children:null==o?void 0:o.children}),h2:({node:t,...o})=>i("h2",{className:p.h2,style:null==O?void 0:O.h2,children:null==o?void 0:o.children}),h3:({node:t,...o})=>i("h2",{className:p.h3,style:null==O?void 0:O.h3,children:null==o?void 0:o.children}),b:({node:t,...o})=>i("b",{className:p.bold,style:null==O?void 0:O.b}),p:({node:t,...o})=>i("p",{...o,className:p.paragraph,style:null==O?void 0:O.p,children:null==o?void 0:o.children}),ol:({node:t,...o})=>L?i(_,{label:W,customStyles:null==O?void 0:O.expandOlStyle,onProceed:A,isProceedDisabled:E,aiReasoningCitation:z,citationStyles:P,customIcons:T,children:null==o?void 0:o.children}):i("ol",{className:p.orderedList,style:null==O?void 0:O.ol,children:null==o?void 0:o.children}),ul:({node:t,...o})=>i("ul",{className:p.unorderedList,children:null==o?void 0:o.children}),a:({inline:n,children:e,node:l,...c})=>{var m,_,b,W,L,A,E,q,V,X,Y,Z,ii,ti,oi,ni,ei,ai,li,ci,di,si,ri,ui,mi,vi,pi;const _i="true"===(null==c?void 0:c.table),hi=`${null==c?void 0:c.href}`,[fi,gi=""]=hi.split("$"),[Ci,bi=""]=gi.split("?"),yi="appmode_citation"===fi||"appmode_citations"===fi?(null==z?void 0:z.appmod_citations)||[]:"image_citation"===fi||"image_citations"===fi?(null==z?void 0:z.image_citations)||[]:"audio_citation"===fi||"audio_citations"===fi?(null==z?void 0:z.audio_citations)||[]:"document_citation"===fi||"document_citations"===fi?(null==z?void 0:z.file_citations)||[]:"rca_citation"===fi||"rca_citations"===fi?(null==z?void 0:z.rca_citations)||[]:"web_citation"===fi||"web_citations"===fi?(null==z?void 0:z.web_citations)||[]:"code_generated"===fi?(null==z?void 0:z.code_generated)||[]:"readfile_citation"===fi||"readfile_citations"===fi?(null==z?void 0:z.readfile_citations)||[]:"gpt_citation"===fi||"gpt_citations"===fi?(null==z?void 0:z.gpt_citations)||[]:"scanned_doc_citation"===fi||"scanned_doc_citations"===fi?(null==z?void 0:z.scanned_doc_citations)||[]:"big_enough_block"===fi&&G||[],Ii=yi.find(i=>i.citation_number===decodeURIComponent(Ci));console.log("TESTING::citation",Ii,yi,fi,Ci,bi,null==c?void 0:c.href);const ki=$.includes(fi);if("big_enough_block"===fi&&Ii)return console.log("Rendering big enough block with citation:",P),i(N,{title:e,citation:Ii,customStyles:null==P?void 0:P.bigEnoughCitation,customIcons:T});if("chat_citation"===fi){if(!U||0===U.length)return null;let t=0,o=U.length-1;if("all"!==Ci){const[i,n]=Ci.split("-").map(Number);t=Number.isFinite(i)?i:0,o=Number.isFinite(n)?n:t,t=t>0?t-1:t,o=o<U.length-1?o+1:o}return i(M,{customIcon:null==T?void 0:T.chatCitationIcon,title:e,chatHistory:x(U,t,o),isTable:_i,chatCitationProps:null==J?void 0:J.chatCitationProps,onCitationClick:null==J?void 0:J.handleCitationClicked,customStyles:null==P?void 0:P.chatCitation,openInFullscreenOnClick:null==J?void 0:J.openInFullscreenOnClick})}if(("gpt_citation"===fi||"gpt_citations"===fi)&&Ii)return(null===(m=null==Ii?void 0:Ii.customMetadata)||void 0===m?void 0:m.value)?i(F,{title:e,citation:Ii,customStyles:null==P?void 0:P.webCitation,customIcons:T,content:D}):i(R,{item:{text:"",dataSource:null===(b=null===(_=Ii.customMetadata)||void 0===_?void 0:_.data_sources)||void 0===b?void 0:b[0],trainingDataTitle:null===(L=null===(W=Ii.customMetadata)||void 0===W?void 0:W.training_data_title)||void 0===L?void 0:L[0],paraphrase:null===(E=null===(A=Ii.customMetadata)||void 0===A?void 0:A.paraphrase)||void 0===E?void 0:E[0]},headerTitle:(null==K?void 0:K.title)||"GPT - Gemini 2.5 Flash",iconsConfig:{ChevronDownIcon:d,ChevronUpIcon:s,MaximizeIcon:r,CloseIcon:u},...null==K?void 0:K.gptCitationProps});if("image_citation"===fi&&!Ii)return null;if("web_citation"===(null===(q=null==Ii?void 0:Ii.customMetadata)||void 0===q?void 0:q.type))return(null===(V=Ii.customMetadata)||void 0===V?void 0:V.screenshot_url)?i(h,{title:e,citation:Ii,customStyles:null==P?void 0:P.webCitation,customIcons:T}):i(f,{label:e,url:null===(X=Ii.customMetadata)||void 0===X?void 0:X.link,customStyles:null==P?void 0:P.webCitation,customIcons:T});if("audio_transcript"===(null===(Y=null==Ii?void 0:Ii.customMetadata)||void 0===Y?void 0:Y.type))return"stormee"===(null==Ii?void 0:Ii.customMetadata.audio_citation_mode)?i(a,{fallback:i(t,{}),children:i(y,{title:`${e}`,citation:Ii,customStyles:null==P?void 0:P.stormeeCitation,customIcons:T})}):i(a,{fallback:i(t,{}),children:i(I,{title:`${e}`,citation:Ii,customStyles:null==P?void 0:P.waveformCitation,customIcons:T})});if("scanned_doc_citations"===(null===(Z=null==Ii?void 0:Ii.customMetadata)||void 0===Z?void 0:Z.type)||"scanned_doc_citation"===(null===(ii=null==Ii?void 0:Ii.customMetadata)||void 0===ii?void 0:ii.type))return i(a,{fallback:i(t,{}),children:i(j,{title:e,citation:Ii,customIcons:T,customStyles:null==P?void 0:P.scannedDocumentCitation,pdfViewHeaderAction:null==B?void 0:B.pdfViewHeaderAction})});if("image_citation"===(null==Ii?void 0:Ii.customMetadata.type))return i(a,{fallback:i(t,{}),children:i(g,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==P?void 0:P.imageCitation})});if("book_citation_doc"===(null===(ti=null==Ii?void 0:Ii.customMetadata)||void 0===ti?void 0:ti.type)||"book_citation_pdf"===(null==Ii?void 0:Ii.customMetadata.type)||"document_citations"===fi||"document_citation"===fi)return i(a,{fallback:i(t,{}),children:i(C,{title:`${e}`,citation:Ii||{citation_number:Ci,customMetadata:{type:"book_citation_pdf"}},customIcons:T,customStyles:null==P?void 0:P.fileCitation,fetchOnDemandCitation:()=>{Q(Ci,H,fi)}})});if("app_mod_rag_question"===(null===(oi=null==Ii?void 0:Ii.customMetadata)||void 0===oi?void 0:oi.type))return i(a,{fallback:i(t,{}),children:i(k,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==P?void 0:P.appModCitation,codeLinkConfig:null===(ni=null==B?void 0:B.appMod)||void 0===ni?void 0:ni.codeLinkConfig,isLoading:null===(ei=null==B?void 0:B.appMod)||void 0===ei?void 0:ei.isLoading})});if("rca_citation"===(null===(ai=null==Ii?void 0:Ii.customMetadata)||void 0===ai?void 0:ai.type))return i(a,{fallback:i(t,{}),children:i(S,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==P?void 0:P.rcaCitation})});if("readfile_citation"===(null===(li=null==Ii?void 0:Ii.customMetadata)||void 0===li?void 0:li.type)||fi.includes("readfile_citation"))return i(a,{fallback:i(t,{}),children:i(w,{title:`${e}`,citation:Ii,customIcons:T,customStyles:null==P?void 0:P.readFileCitation,fileCallback:null===(ci=null==B?void 0:B.readFile)||void 0===ci?void 0:ci.fileCallback,editorConfig:null===(di=null==B?void 0:B.readFile)||void 0===di?void 0:di.editorConfig,customColors:null===(si=null==B?void 0:B.readFile)||void 0===si?void 0:si.customColors,fetchOnDemandCitation:()=>{Q(Ci,H,fi)}})});if(ki&&!Ii){const t=null!==(ri=null==T?void 0:T.citationLoadingIcon)&&void 0!==ri?ri:i("span",{className:p.citationSpinner,style:null===(ui=null==P?void 0:P.loadingCitations)||void 0===ui?void 0:ui.citationSpinner});return i(v,{title:null!==(vi=null===(mi=null==P?void 0:P.loadingCitations)||void 0===mi?void 0:mi.tooltipTitle)&&void 0!==vi?vi:`source ${fi.split("_")[0]} citations`,arrow:!0,children:o("span",{className:p.citationSpinnerWrapper,style:null===(pi=null==P?void 0:P.loadingCitations)||void 0===pi?void 0:pi.citationSpinnerWrapper,children:[e,t]})})}return i("span",{...c,className:p.paragraph,style:null==O?void 0:O.p,children:null==c?void 0:c.children})},code:({inline:t,children:o,className:n,node:e,...a})=>/language-(\w+)/.exec(n||"")||(null==n?void 0:n.includes("language-"))?i("div",{children:i("code",{className:p.blockCode,children:o})}):i("code",{className:p.inlineCode,style:null==O?void 0:O.code,children:o}),learned:({children:o})=>i(t,{children:i(v,{title:o,placement:"top",children:i(m,{size:16,className:p.learnedIcon})})})}),[z,L,B,U,G]);return i("div",{ref:q,className:"w-full",children:i(l,{components:X,rehypePlugins:[c],children:D})})};export{W as AiReasonMarkdownWrapper,x as formatChatData};
2
2
  //# sourceMappingURL=AiReasonMarkdownWrapper.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import i from"./FileCitationContent.js";import n from"./DocumentCitationIcon.js";const a=a=>{var l,d,e,c,u,v,r,s,m,p,f,_,y,M,b,C,g,k,h,S,x,I,j,w,D,B;const F=(null===(l=a.customIcons)||void 0===l?void 0:l.fileCitationIcon)||t(n,{});return t(o,{inLineCitation:!0,citationTitle:a.title,citationId:`file-citation-${a.citation.citation_number}`,citationComponent:t(i,{title:"book_citation_doc"===(null===(e=null===(d=a.citation)||void 0===d?void 0:d.customMetadata)||void 0===e?void 0:e.type)||"book_citation_pdf"===(null===(u=null===(c=a.citation)||void 0===c?void 0:c.customMetadata)||void 0===u?void 0:u.type)?`${null!==(s=null===(r=null===(v=a.citation)||void 0===v?void 0:v.customMetadata)||void 0===r?void 0:r.file_name)&&void 0!==s?s:""}`:"",gsUtilPath:"book_citation_doc"===(null===(p=null===(m=a.citation)||void 0===m?void 0:m.customMetadata)||void 0===p?void 0:p.type)||"book_citation_pdf"===(null===(_=null===(f=a.citation)||void 0===f?void 0:f.customMetadata)||void 0===_?void 0:_.type)?null===(M=null===(y=a.citation)||void 0===y?void 0:y.customMetadata)||void 0===M?void 0:M.gcs_upload_url:"",fileType:null===(C=null===(b=a.citation)||void 0===b?void 0:b.customMetadata)||void 0===C?void 0:C.type,relevanceScore:null===(k=null===(g=a.citation)||void 0===g?void 0:g.customMetadata)||void 0===k?void 0:k.relevance_score,customStyles:a.customStyles,isLoading:("book_citation_doc"===(null===(S=null===(h=a.citation)||void 0===h?void 0:h.customMetadata)||void 0===S?void 0:S.type)||"book_citation_pdf"===(null===(I=null===(x=a.citation)||void 0===x?void 0:x.customMetadata)||void 0===I?void 0:I.type))&&!(null===(w=null===(j=a.citation)||void 0===j?void 0:j.customMetadata)||void 0===w?void 0:w.gcs_upload_url)}),chevronDownComponent:F,chevronUpComponent:F,additionalCallbackForPillButton:()=>{var t;"book_citation_doc"!==a.citation.customMetadata.type&&"book_citation_pdf"!==a.citation.customMetadata.type||a.citation.customMetadata.gcs_upload_url||null===(t=a.fetchOnDemandCitation)||void 0===t||t.call(a)},styles:{pillButton:{fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none",...null===(D=a.customStyles)||void 0===D?void 0:D.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(B=a.customStyles)||void 0===B?void 0:B.content}}})};export{a as default};
1
+ import{jsx as o}from"react/jsx-runtime";import t from"../../../../CitationRenderer/CitationRenderer.js";import i from"./FileCitationContent.js";import n from"./DocumentCitationIcon.js";const l=l=>{var a,d,e,c,v,u,r,s,m,p,f,_,y,M,b,C,g,k,h,S,x,I,j,w,D,B,F;const L=(null===(a=l.customIcons)||void 0===a?void 0:a.fileCitationIcon)||o(n,{});return o(t,{inLineCitation:!0,citationTitle:l.title,citationId:`file-citation-${null===(d=l.citation)||void 0===d?void 0:d.citation_number}`,citationComponent:o(i,{title:"book_citation_doc"===(null===(c=null===(e=l.citation)||void 0===e?void 0:e.customMetadata)||void 0===c?void 0:c.type)||"book_citation_pdf"===(null===(u=null===(v=l.citation)||void 0===v?void 0:v.customMetadata)||void 0===u?void 0:u.type)?`${null!==(m=null===(s=null===(r=l.citation)||void 0===r?void 0:r.customMetadata)||void 0===s?void 0:s.file_name)&&void 0!==m?m:""}`:"",gsUtilPath:"book_citation_doc"===(null===(f=null===(p=l.citation)||void 0===p?void 0:p.customMetadata)||void 0===f?void 0:f.type)||"book_citation_pdf"===(null===(y=null===(_=l.citation)||void 0===_?void 0:_.customMetadata)||void 0===y?void 0:y.type)?null===(b=null===(M=l.citation)||void 0===M?void 0:M.customMetadata)||void 0===b?void 0:b.gcs_upload_url:"",fileType:null===(g=null===(C=l.citation)||void 0===C?void 0:C.customMetadata)||void 0===g?void 0:g.type,relevanceScore:null===(h=null===(k=l.citation)||void 0===k?void 0:k.customMetadata)||void 0===h?void 0:h.relevance_score,customStyles:l.customStyles,isLoading:("book_citation_doc"===(null===(x=null===(S=l.citation)||void 0===S?void 0:S.customMetadata)||void 0===x?void 0:x.type)||"book_citation_pdf"===(null===(j=null===(I=l.citation)||void 0===I?void 0:I.customMetadata)||void 0===j?void 0:j.type))&&!(null===(D=null===(w=l.citation)||void 0===w?void 0:w.customMetadata)||void 0===D?void 0:D.gcs_upload_url)}),chevronDownComponent:L,chevronUpComponent:L,additionalCallbackForPillButton:()=>{var o,t,i,n,a,d,e;"book_citation_doc"!==(null===(t=null===(o=l.citation)||void 0===o?void 0:o.customMetadata)||void 0===t?void 0:t.type)&&"book_citation_pdf"!==(null===(n=null===(i=l.citation)||void 0===i?void 0:i.customMetadata)||void 0===n?void 0:n.type)||(null===(d=null===(a=l.citation)||void 0===a?void 0:a.customMetadata)||void 0===d?void 0:d.gcs_upload_url)||null===(e=l.fetchOnDemandCitation)||void 0===e||e.call(l)},styles:{pillButton:{fontSize:"14px",margin:"0px",background:"#ffffff",color:"#526eff",cursor:"pointer",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",border:"none",...null===(B=l.customStyles)||void 0===B?void 0:B.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(F=l.customStyles)||void 0===F?void 0:F.content}}})};export{l as default};
2
2
  //# sourceMappingURL=FileCitationRender.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{useMemo as l,useState as i,useRef as o,useEffect as r,useCallback as a}from"react";import s from"react-dom";import c from"@monaco-editor/react";import d from"./ReadFileCitationContent.module.css.js";import h from"./icons/ExternalLinkIcon.js";import{X as u,Maximize2 as m}from"lucide-react";import p from"./CustomFileIcon.js";import{Tooltip as g}from"@mui/material";const v=e=>"number"==typeof e&&Number.isFinite(e),f=(e,t)=>v(e)&&v(t)?e<=0||t<e?null:{start:e,end:t,length:t-e+1}:null,b=(e,t,n,l)=>{let[i,o]=e;if(!Number.isFinite(i)||!Number.isFinite(o))return null;if(o<i&&([i,o]=[o,i]),v(n)&&v(l)){const e=Math.max(i,n),r=Math.min(o,l);if(e>r)return null;const a=e-n+1,s=r-n+1,c=Math.max(1,a),d=Math.min(t,s);return c>d?null:[c,d]}const r=Math.max(1,i),a=Math.min(t,o);return r>a?null:[r,a]},y=(e,t,n,l)=>{if(0===e.length)return!1;const i=f(n,l);if(!i)return!1;if(e.some(([e,n])=>e>t||n>t))return!0;if(i.start>t||i.end>t)return!0;if(Math.abs(i.length-t)<=1){return!e.every(([e,t])=>t<i.start||e>i.end)}return!1},x={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},N={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},C={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},w=e=>e.map(([e,t])=>e===t?`L${e}`:`L${e}-${t}`).join(", "),k=({citation:k,customStyles:F,customColors:M,customIcons:P,editorConfig:S,fileCallback:O})=>{const L=l(()=>({...x,...M}),[M]),B=l(()=>({...N,...S}),[S]),[j,H]=i(!1),T=o(null),$=o(!1),z=o(null);r(()=>{const e=()=>{const e=document.querySelectorAll("dialog[open]");z.current=e.length>0?e[e.length-1]:document.body};e();const t=new MutationObserver(e);return t.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>t.disconnect()},[]);const E=l(()=>({popper:{container:()=>{var e;return null!==(e=z.current)&&void 0!==e?e:document.body},sx:{zIndex:15e5}}}),[]),R=k.customMetadata.content||"",W=k.customMetadata.highlighted_text,I=k.customMetadata.start_line,_=k.customMetadata.end_line,q=v(I)?I+1:I,D=l(()=>{if(!W)return{};try{let e=W.trim();return e.startsWith("```")&&(e=e.replace(/^```\w*\n?/,""),e=e.replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[W]),A=l(()=>{const e=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;let n;for(;null!==(n=t.exec(R));){const t=n[1]||"javascript",l=n[2].trim(),i=n[3].trim();l&&i&&e.push({filePath:l,code:i,language:t})}return e},[R]),G=a(e=>(D[e]||[]).map(e=>{const t=e.split("-").map(e=>Number(e.trim())),n=t[0],l=t.length>1?t[1]:n;return Number.isFinite(n)&&Number.isFinite(l)?[n,l]:null}).filter(e=>null!==e),[D]),J=l(()=>{for(let e=0;e<A.length;e++){const t=A[e],n=t.code.split("\n").length,l=G(t.filePath),i=y(l,n,q,_);if(l.map(e=>b(e,n,i?q:void 0,i?_:void 0)).filter(e=>null!==e).length>0)return e}return-1},[A,G,q,_]),V=J>=0,K=a((e,t)=>{const n=G(e),l=y(n,t,q,_);return n.map(e=>b(e,t,l?q:void 0,l?_:void 0)).filter(e=>null!==e)},[G,q,_]),Q=a((e,t)=>{const n=G(e);if(y(n,t,q,_)){const e=f(q,_);return e?n.map(([t,n])=>{const l=t<=n?[t,n]:[n,t],i=Math.max(l[0],e.start),o=Math.min(l[1],e.end);return i>o?null:[i,o]}).filter(e=>null!==e):[]}return K(e,t)},[G,K,q,_]);r(()=>{if(V&&!$.current&&A.length>0&&(null==O?void 0:O.autoOpenFirstHighlighted)&&(null==O?void 0:O.onOpenFile)){const e=A[J],t=Q(e.filePath,e.code.split("\n").length);$.current=!0;const n=setTimeout(()=>{O.onOpenFile({filePath:e.filePath,ranges:t.length>0?t:null})},300);return()=>clearTimeout(n)}},[V,J,A,K,O]),r(()=>{$.current=!1},[R]),r(()=>{if(J<0)return;const e=setTimeout(()=>{var e;null===(e=T.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return()=>clearTimeout(e)},[J,W]);const U=a((e,t)=>{if(null==O?void 0:O.onOpenFile){const n=Q(e,t);O.onOpenFile({filePath:e,ranges:n.length>0?n:null})}},[Q,O]),X=l(()=>!O||(!!O.onExpandClick||!("onExpandClick"in O&&!O.onExpandClick)),[O]),Y=a(()=>{(null==O?void 0:O.onExpandClick)?O.onExpandClick({blocks:A,highlightMap:D}):H(!0)},[O,A,D]),Z=!!(null==O?void 0:O.onOpenFile),ee=(null==P?void 0:P.readFileCitationIcon)||e(h,{style:{width:"14px",height:"14px"}}),te=a((e,t,n,l)=>{const i=[];if(n.forEach(([e,n])=>{i.push({range:new t.Range(e,1,n,1),options:{isWholeLine:!0,className:d.yellowHighlightedLine,linesDecorationsClassName:d.yellowHighlightedLineDecoration}})}),i.length>0)try{e.createDecorationsCollection(i)}catch(e){console.warn("Failed to create decorations:",e)}const o=n[0];o&&requestAnimationFrame(()=>{e.revealLineInCenter(o[0])}),l>0&&e.updateOptions({lineNumbers:e=>String(e+l)})},[]),ne=n=>A.map((l,i)=>{const o=l.code.split("\n").length,r=G(l.filePath),a=y(r,o,q,_),s=r.map(e=>b(e,o,a?q:void 0,a?_:void 0)).filter(e=>null!==e),h=a&&v(q)?s.map(([e,t])=>[e+q-1,t+q-1]):s,u=s.length>0,p=i===J,f=n?600:B.maxHeight,x=(()=>{const e=20*l.code.split("\n").length+16+4;return Math.min(Math.max(e,B.minHeight),f)})(),N=l.filePath.split("/").pop()||l.filePath,k=a&&v(q)?q-1:0,M=k+o,P=String(Math.max(1,M)).length;return t("div",{ref:!n&&p?T:void 0,"data-highlighted":u?"true":void 0,"data-first-highlighted":p?"true":void 0,className:d.blockContainer,style:{border:`1px solid ${L.border}`,...null==F?void 0:F.blockContainer},children:[t("div",{className:d.header,style:{backgroundColor:u?L.highlightBg:L.headerBg,borderBottom:`1px solid ${L.border}`,color:u?L.highlightGutter:L.foreground,...u?null==F?void 0:F.headerHighlighted:null==F?void 0:F.header},children:[t("div",{className:d.headerLeft,children:[e(g,{title:l.filePath,arrow:!0,placement:"top",slotProps:E,children:e("span",{className:d.fileName,style:null==F?void 0:F.fileName,onClick:()=>U(l.filePath,o),children:N})}),Z&&e(g,{title:`Open ${N} in editor`,arrow:!0,placement:"top",slotProps:E,children:e("button",{className:d.openFileButton,onClick:()=>U(l.filePath,o),"aria-label":`Open ${N} in editor`,style:null==F?void 0:F.openFileButton,children:ee})})]}),t("div",{className:d.headerRight,children:[u&&e(g,{title:`Highlighted lines: ${w(h)}`,arrow:!0,placement:"top",slotProps:E,children:e("span",{className:d.lineRanges,style:null==F?void 0:F.lineRanges,children:w(h)})}),!n&&X&&0===i&&e(g,{title:"Expand code view",arrow:!0,placement:"top",slotProps:E,children:e("button",{className:d.expandButton,style:null==F?void 0:F.expandButton,onClick:Y,"aria-label":`Expand ${N} code view`,children:e(m,{size:13})})})]})]}),e("div",{className:d.editorWrapper,style:{height:`${x}px`,backgroundColor:L.background,...null==F?void 0:F.editorWrapper},children:e(c,{height:"100%",language:(S=l.language,C[S.toLowerCase()]||S),value:l.code,theme:B.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:B.fontSize,lineHeight:20,fontFamily:B.fontFamily,lineNumbers:k>0?e=>String(e+k):"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,P),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:(e,t)=>te(e,t,s,k),loading:e("div",{className:d.editorLoading,style:{color:L.inactiveText},children:"Loading editor..."})})})]},i);var S});if(0===A.length)return e("div",{className:d.emptyState,style:{color:L.inactiveText,...null==F?void 0:F.emptyState},children:"No code content available"});const le=j?s.createPortal(e("div",{className:d.modalOverlay,style:null==F?void 0:F.modalOverlay,onClick:e=>{e.target===e.currentTarget&&H(!1)},children:t("div",{className:d.modalContent,style:null==F?void 0:F.modalContent,children:[t("div",{className:d.modalHeader,style:null==F?void 0:F.modalHeader,children:[e("span",{className:d.modalTitle,style:null==F?void 0:F.modalTitle,children:1===A.length?e(g,{title:A[0].filePath,arrow:!0,placement:"top",slotProps:E,children:t("span",{className:d.modalTitleContent,children:[e(p,{name:A[0].filePath,size:"15px"}),e("span",{className:d.modalTitleText,children:A[0].filePath})]})}):`${A.length} files`}),e(g,{title:"Close expanded view",arrow:!0,placement:"bottom",slotProps:E,children:e("button",{className:d.modalCloseButton,style:null==F?void 0:F.modalCloseButton,onClick:()=>H(!1),"aria-label":"Close expanded view",children:e(u,{size:16})})})]}),e("div",{className:d.modalBody,children:e("div",{className:d.container,style:null==F?void 0:F.container,children:ne(!0)})})]})}),document.body):null;return t(n,{children:[le,e("div",{className:d.container,style:null==F?void 0:F.container,children:ne(!1)})]})};export{k as default};
1
+ import{jsx as e,jsxs as t,Fragment as l}from"react/jsx-runtime";import{useMemo as n,useState as i,useRef as o,useEffect as r,useCallback as a}from"react";import s from"react-dom";import d from"@monaco-editor/react";import c from"./ReadFileCitationContent.module.css.js";import u from"./icons/ExternalLinkIcon.js";import{X as h,Maximize2 as m}from"lucide-react";import p from"./CustomFileIcon.js";import{Tooltip as g}from"@mui/material";const v=e=>"number"==typeof e&&Number.isFinite(e),f=(e,t)=>v(e)&&v(t)?e<=0||t<e?null:{start:e,end:t,length:t-e+1}:null,b=(e,t,l,n)=>{let[i,o]=e;if(!Number.isFinite(i)||!Number.isFinite(o))return null;if(o<i&&([i,o]=[o,i]),v(l)&&v(n)){const e=Math.max(i,l),r=Math.min(o,n);if(e>r)return null;const a=e-l+1,s=r-l+1,d=Math.max(1,a),c=Math.min(t,s);return d>c?null:[d,c]}const r=Math.max(1,i),a=Math.min(t,o);return r>a?null:[r,a]},y=(e,t,l,n)=>{if(0===e.length)return!1;const i=f(l,n);if(!i)return!1;if(e.some(([e,l])=>e>t||l>t))return!0;if(i.start>t||i.end>t)return!0;if(Math.abs(i.length-t)<=1){return!e.every(([e,t])=>t<i.start||e>i.end)}return!1},x={border:"#3c3c3c",headerBg:"#252526",inactiveText:"#858585",background:"#1e1e1e",foreground:"#cccccc",highlightBg:"rgba(59, 130, 246, 0.15)",highlightGutter:"#3b82f6",hoverBg:"rgba(255, 255, 255, 0.1)"},N={theme:"vs-dark",fontSize:13,fontFamily:"Consolas, 'Courier New', monospace",maxHeight:300,minHeight:80},C={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",java:"java",cpp:"cpp",c:"c",go:"go",rust:"rust",json:"json",html:"html",css:"css",scss:"scss",md:"markdown",sql:"sql",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml"},w=e=>e.map(([e,t])=>e===t?`L${e}`:`L${e}-${t}`).join(", "),k=({citation:k,customStyles:F,customColors:M,customIcons:P,editorConfig:S,fileCallback:O})=>{var L,B,j,H;const T=n(()=>({...x,...M}),[M]),$=n(()=>({...N,...S}),[S]),[z,E]=i(!1),R=o(null),W=o(!1),I=o(null);r(()=>{const e=()=>{const e=document.querySelectorAll("dialog[open]");I.current=e.length>0?e[e.length-1]:document.body};e();const t=new MutationObserver(e);return t.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>t.disconnect()},[]);const _=n(()=>({popper:{container:()=>{var e;return null!==(e=I.current)&&void 0!==e?e:document.body},sx:{zIndex:15e5}}}),[]),q=(null===(L=null==k?void 0:k.customMetadata)||void 0===L?void 0:L.content)||"",D=null===(B=null==k?void 0:k.customMetadata)||void 0===B?void 0:B.highlighted_text,A=null===(j=null==k?void 0:k.customMetadata)||void 0===j?void 0:j.start_line,G=null===(H=null==k?void 0:k.customMetadata)||void 0===H?void 0:H.end_line,J=v(A)?A+1:A,V=n(()=>{if(!D)return{};try{let e=D.trim();return e.startsWith("```")&&(e=e.replace(/^```\w*\n?/,""),e=e.replace(/\n?```\s*$/,"")),JSON.parse(e.trim())}catch(e){return console.error("Failed to parse highlight string:",e),{}}},[D]),K=n(()=>{const e=[],t=/```(\w+)?\s*<file_path>([\s\S]*?)<\/file_path>\s*<code>([\s\S]*?)<\/code>\s*```/g;let l;for(;null!==(l=t.exec(q));){const t=l[1]||"javascript",n=l[2].trim(),i=l[3].trim();n&&i&&e.push({filePath:n,code:i,language:t})}return e},[q]),Q=a(e=>(V[e]||[]).map(e=>{const t=e.split("-").map(e=>Number(e.trim())),l=t[0],n=t.length>1?t[1]:l;return Number.isFinite(l)&&Number.isFinite(n)?[l,n]:null}).filter(e=>null!==e),[V]),U=n(()=>{for(let e=0;e<K.length;e++){const t=K[e],l=t.code.split("\n").length,n=Q(t.filePath),i=y(n,l,J,G);if(n.map(e=>b(e,l,i?J:void 0,i?G:void 0)).filter(e=>null!==e).length>0)return e}return-1},[K,Q,J,G]),X=U>=0,Y=a((e,t)=>{const l=Q(e),n=y(l,t,J,G);return l.map(e=>b(e,t,n?J:void 0,n?G:void 0)).filter(e=>null!==e)},[Q,J,G]),Z=a((e,t)=>{const l=Q(e);if(y(l,t,J,G)){const e=f(J,G);return e?l.map(([t,l])=>{const n=t<=l?[t,l]:[l,t],i=Math.max(n[0],e.start),o=Math.min(n[1],e.end);return i>o?null:[i,o]}).filter(e=>null!==e):[]}return Y(e,t)},[Q,Y,J,G]);r(()=>{if(X&&!W.current&&K.length>0&&(null==O?void 0:O.autoOpenFirstHighlighted)&&(null==O?void 0:O.onOpenFile)){const e=K[U],t=Z(e.filePath,e.code.split("\n").length);W.current=!0;const l=setTimeout(()=>{O.onOpenFile({filePath:e.filePath,ranges:t.length>0?t:null})},300);return()=>clearTimeout(l)}},[X,U,K,Y,O]),r(()=>{W.current=!1},[q]),r(()=>{if(U<0)return;const e=setTimeout(()=>{var e;null===(e=R.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},350);return()=>clearTimeout(e)},[U,D]);const ee=a((e,t)=>{if(null==O?void 0:O.onOpenFile){const l=Z(e,t);O.onOpenFile({filePath:e,ranges:l.length>0?l:null})}},[Z,O]),te=n(()=>!O||(!!O.onExpandClick||!("onExpandClick"in O&&!O.onExpandClick)),[O]),le=a(()=>{(null==O?void 0:O.onExpandClick)?O.onExpandClick({blocks:K,highlightMap:V}):E(!0)},[O,K,V]),ne=!!(null==O?void 0:O.onOpenFile),ie=(null==P?void 0:P.readFileCitationIcon)||e(u,{style:{width:"14px",height:"14px"}}),oe=a((e,t,l,n)=>{const i=[];if(l.forEach(([e,l])=>{i.push({range:new t.Range(e,1,l,1),options:{isWholeLine:!0,className:c.yellowHighlightedLine,linesDecorationsClassName:c.yellowHighlightedLineDecoration}})}),i.length>0)try{e.createDecorationsCollection(i)}catch(e){console.warn("Failed to create decorations:",e)}const o=l[0];o&&requestAnimationFrame(()=>{e.revealLineInCenter(o[0])}),n>0&&e.updateOptions({lineNumbers:e=>String(e+n)})},[]),re=l=>K.map((n,i)=>{const o=n.code.split("\n").length,r=Q(n.filePath),a=y(r,o,J,G),s=r.map(e=>b(e,o,a?J:void 0,a?G:void 0)).filter(e=>null!==e),u=a&&v(J)?s.map(([e,t])=>[e+J-1,t+J-1]):s,h=s.length>0,p=i===U,f=l?600:$.maxHeight,x=(()=>{const e=20*n.code.split("\n").length+16+4;return Math.min(Math.max(e,$.minHeight),f)})(),N=n.filePath.split("/").pop()||n.filePath,k=a&&v(J)?J-1:0,M=k+o,P=String(Math.max(1,M)).length;return t("div",{ref:!l&&p?R:void 0,"data-highlighted":h?"true":void 0,"data-first-highlighted":p?"true":void 0,className:c.blockContainer,style:{border:`1px solid ${T.border}`,...null==F?void 0:F.blockContainer},children:[t("div",{className:c.header,style:{backgroundColor:h?T.highlightBg:T.headerBg,borderBottom:`1px solid ${T.border}`,color:h?T.highlightGutter:T.foreground,...h?null==F?void 0:F.headerHighlighted:null==F?void 0:F.header},children:[t("div",{className:c.headerLeft,children:[e(g,{title:n.filePath,arrow:!0,placement:"top",slotProps:_,children:e("span",{className:c.fileName,style:null==F?void 0:F.fileName,onClick:()=>ee(n.filePath,o),children:N})}),ne&&e(g,{title:`Open ${N} in editor`,arrow:!0,placement:"top",slotProps:_,children:e("button",{className:c.openFileButton,onClick:()=>ee(n.filePath,o),"aria-label":`Open ${N} in editor`,style:null==F?void 0:F.openFileButton,children:ie})})]}),t("div",{className:c.headerRight,children:[h&&e(g,{title:`Highlighted lines: ${w(u)}`,arrow:!0,placement:"top",slotProps:_,children:e("span",{className:c.lineRanges,style:null==F?void 0:F.lineRanges,children:w(u)})}),!l&&te&&0===i&&e(g,{title:"Expand code view",arrow:!0,placement:"top",slotProps:_,children:e("button",{className:c.expandButton,style:null==F?void 0:F.expandButton,onClick:le,"aria-label":`Expand ${N} code view`,children:e(m,{size:13})})})]})]}),e("div",{className:c.editorWrapper,style:{height:`${x}px`,backgroundColor:T.background,...null==F?void 0:F.editorWrapper},children:e(d,{height:"100%",language:(S=n.language,C[S.toLowerCase()]||S),value:n.code,theme:$.theme,options:{readOnly:!0,domReadOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:$.fontSize,lineHeight:20,fontFamily:$.fontFamily,lineNumbers:k>0?e=>String(e+k):"on",folding:!1,lineDecorationsWidth:10,lineNumbersMinChars:Math.max(4,P),renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8,useShadows:!1,alwaysConsumeMouseWheel:!1},automaticLayout:!0,wordWrap:"off",contextmenu:!1,selectOnLineNumbers:!0,glyphMargin:!1,padding:{top:8,bottom:8},overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,overviewRulerLanes:0,renderWhitespace:"none",guides:{indentation:!1},cursorStyle:"line",cursorBlinking:"solid",fixedOverflowWidgets:!0},onMount:(e,t)=>oe(e,t,s,k),loading:e("div",{className:c.editorLoading,style:{color:T.inactiveText},children:"Loading editor..."})})})]},i);var S});if(0===K.length)return e("div",{className:c.emptyState,style:{color:T.inactiveText,...null==F?void 0:F.emptyState},children:"No code content available"});const ae=z?s.createPortal(e("div",{className:c.modalOverlay,style:null==F?void 0:F.modalOverlay,onClick:e=>{e.target===e.currentTarget&&E(!1)},children:t("div",{className:c.modalContent,style:null==F?void 0:F.modalContent,children:[t("div",{className:c.modalHeader,style:null==F?void 0:F.modalHeader,children:[e("span",{className:c.modalTitle,style:null==F?void 0:F.modalTitle,children:1===K.length?e(g,{title:K[0].filePath,arrow:!0,placement:"top",slotProps:_,children:t("span",{className:c.modalTitleContent,children:[e(p,{name:K[0].filePath,size:"15px"}),e("span",{className:c.modalTitleText,children:K[0].filePath})]})}):`${K.length} files`}),e(g,{title:"Close expanded view",arrow:!0,placement:"bottom",slotProps:_,children:e("button",{className:c.modalCloseButton,style:null==F?void 0:F.modalCloseButton,onClick:()=>E(!1),"aria-label":"Close expanded view",children:e(h,{size:16})})})]}),e("div",{className:c.modalBody,children:e("div",{className:c.container,style:null==F?void 0:F.container,children:re(!0)})})]})}),document.body):null;return t(l,{children:[ae,e("div",{className:c.container,style:null==F?void 0:F.container,children:re(!1)})]})};export{k as default};
2
2
  //# sourceMappingURL=ReadFileCitationContent.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"⁠",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none",...null==l?void 0:l.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
1
+ import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const l=({title:l,citation:a,customStyles:r,customColors:c,customIcons:s,editorConfig:d,fileCallback:m,fetchOnDemandCitation:p})=>{const u=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:l+"⁠",citationId:`readfile-${null==a?void 0:a.citation_number}`,citationIcon:t(i,{}),citationComponent:!a&&p?t("div",{style:{textAlign:"center",color:"grey",...null==r?void 0:r.loadingCitation},children:"Loading Citation..."}):t(e,{citation:a,customStyles:r,customColors:c,customIcons:s,editorConfig:d,fileCallback:m}),chevronDownComponent:u,additionalCallbackForPillButton:()=>{a||null==p||p()},chevronUpComponent:u,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none",...null==r?void 0:r.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{l as default};
2
2
  //# sourceMappingURL=ReadFileCitationRenderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAUvJ,QAAA,MAAM,iBAAiB,+CAwtFtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAUvJ,QAAA,MAAM,iBAAiB,+CA0+EtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AiReasonMarkdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.tsx"],"names":[],"mappings":"AAqCA,OAAO,EACL,yBAAyB,EAEzB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AA0DxF,eAAO,MAAM,cAAc,gBACZ,gBAAgB,EAAE,cACnB,MAAM,YACR,MAAM,KACf,gBAAgB,EAWlB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;aAazB,MAAM;;;;;6BAKS,IAAI;;;;6CA8X7B,CAAC"}
1
+ {"version":3,"file":"AiReasonMarkdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.tsx"],"names":[],"mappings":"AAqCA,OAAO,EACL,yBAAyB,EAEzB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AA0DxF,eAAO,MAAM,cAAc,gBACZ,gBAAgB,EAAE,cACnB,MAAM,YACR,MAAM,KACf,gBAAgB,EAWlB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;aAazB,MAAM;;;;;6BAKS,IAAI;;;;6CAiY7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReadFileCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA6DrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"ReadFileCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAExD,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA8ErE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -68,5 +68,6 @@ export interface ReadFileCitationRendererProps {
68
68
  * When NOT provided (web mode), only inline Monaco highlighting is shown.
69
69
  */
70
70
  fileCallback?: ReadFileCitationFileCallback;
71
+ fetchOnDemandCitation?: () => void;
71
72
  }
72
73
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;KACxC,KAAK,IAAI,CAAC;IAEX;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE;QACvB,MAAM,EAAE,KAAK,CAAC;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACpE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;KACxC,KAAK,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC7C"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/RequirementAI/components/citations/readfile-citation/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;KACxC,KAAK,IAAI,CAAC;IAEX;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE;QACvB,MAAM,EAAE,KAAK,CAAC;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACpE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;KACxC,KAAK,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,0BAA0B,CAAC;IAC1C,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAA;CACnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF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zB,QAAQ,EAAE,MAAM,CAAC;IAGjB,GAAG,EAAE,GAAG,CAAC;IACT,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,SAAS,CAAA;CACrC;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA6H9E,CAAC"}
1
+ {"version":3,"file":"GapFilterBlock.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAgB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOvF,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAAC;AACtE,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAQ5C,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAwBD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI7D;AAiGD,MA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AC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,wBAAwB,CAAC,EAAE,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE;QAC5B,IAAI,EAAE,OAAO,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,eAAe,CAAC;QAC1B,GAAG,EAAE,GAAG,CAAC;QACT,IAAI,EAAE;YAAE,UAAU,CAAC,EAAE,MAAM,CAAC;YAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KACxE,KAAK,IAAI,CAAC;CACZ;AAID,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuQxD,CAAC;AAIF,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,KAAK,GAAG,UAAU,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IAGjB,GAAG,EAAE,GAAG,CAAC;IACT,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,SAAS,CAAA;CACrC;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA8I9E,CAAC"}
@@ -252,6 +252,7 @@ export interface ReadFileCitationStyleGroup extends CitationStyleGroup {
252
252
  modalHeader?: CSSProperties;
253
253
  modalTitle?: CSSProperties;
254
254
  modalCloseButton?: CSSProperties;
255
+ loadingCitation?: CSSProperties;
255
256
  }
256
257
  export interface CitationLoadingStyles {
257
258
  citationSpinnerWrapper?: React.CSSProperties;
@@ -1 +1 @@
1
- {"version":3,"file":"aiReasoning.type.d.ts","sourceRoot":"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IACF,qBAAqB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvC;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC,CAAC"}
1
+ {"version":3,"file":"aiReasoning.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/aiReasoning.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EACL,uBAAuB,EACvB,cAAc,EACf,MAAM,+CAA+C,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,CAAC,E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Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",