@e-llm-studio/requirement-ai 0.0.45 → 0.0.47
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.
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +2 -0
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +2 -0
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js.map +1 -0
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.module.css.js +2 -0
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.module.css.js.map +1 -0
- package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts +0 -1
- package/dist/types/src/features/PdfViewer/usePdfHighlight.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts +6 -2
- package/dist/types/src/features/RequirementAI/shared/ExpandableOl.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/ReqAiCitationRenderer.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/shared/ReqAiCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=require("react/jsx-runtime"),e=require("react"),n=require("react-markdown"),o=require("rehype-raw"),a=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),c=require("../citations/web-citation/WebCitationWithImageRenderer.js"),r=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),_=require("../citations/file-citation/FileCitationRender.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),f=require("../citations/appmod-citation/AppmodCitationRenderer.js"),h=require("../citations/rca-citation/RCACitationRenderer.js"),g=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),j=require("../citations/chat-citation/ChatCitationRenderer.js");function x(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var C=x(n),b=x(o),y=["appmode_citation","image_citation","audio_citation","document_citation","rca_citation","web_citation","code_generated","chat_citation","readfile_citation"],S=function(t,e,n){return i.__spreadArray([],t.map(function(t,o){var a=o>=e&&o<=n;return i.__assign(i.__assign({},t),{highlighted_text:a?t.message:""})}),!0)};exports.AiReasonMarkdownWrapper=function(n){var o=n.message,x=n.isExpandableOrderedListEnabled,q=n.customStyles,I=n.citationStyles,k=n.customIcons,R=n.onSelectProceed,M=n.isDisableProceedButton,w=e.useRef(null),N=v.useRequirementAI(),F=N.citations,W=N.citationConfig,A=N.chatHistory,L=N.chatCitationConfigs,P=e.useMemo(function(){return{h1:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h1",i.__assign({className:s.default.h1,style:null==q?void 0:q.h1},{children:null==n?void 0:n.children}))},h2:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h2,style:null==q?void 0:q.h2},{children:null==n?void 0:n.children}))},h3:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h3,style:null==q?void 0:q.h3},{children:null==n?void 0:n.children}))},b:function(e){return e.node,i.__rest(e,["node"]),t.jsx("b",{className:s.default.bold,style:null==q?void 0:q.b})},p:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("p",i.__assign({},n,{className:s.default.paragraph,style:null==q?void 0:q.p},{children:null==n?void 0:n.children}))},ol:function(e){e.node;var n=i.__rest(e,["node"]);return x?t.jsx(d.default,i.__assign({customStyles:null==q?void 0:q.expandOlStyle,onProceed:R,isProceedDisabled:M},{children:null==n?void 0:n.children})):t.jsx("ol",i.__assign({className:s.default.orderedList,style:null==q?void 0:q.ol},{children:null==n?void 0:n.children}))},ul:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("ul",i.__assign({className:s.default.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var o,a,d,v,x,C,b,R,M,w,N,P,O,T,D,E,H,$,z,B;n.inline;var U=n.children;n.node;var G=i.__rest(n,["inline","children","node"]),J="true"===(null==G?void 0:G.table),K="".concat(null==G?void 0:G.href),Q=null===(o=K.split("$"))||void 0===o?void 0:o[0],V=null===(a=K.split("$"))||void 0===a?void 0:a[1],X=("appmode_citation"===Q||"appmode_citations"===Q?(null==F?void 0:F.appmod_citations)||[]:"image_citation"===Q||"image_citations"===Q?(null==F?void 0:F.image_citations)||[]:"audio_citation"===Q||"audio_citations"===Q?(null==F?void 0:F.audio_citations)||[]:"document_citation"===Q||"document_citations"===Q?(null==F?void 0:F.file_citations)||[]:"rca_citation"===Q||"rca_citations"===Q?(null==F?void 0:F.rca_citations)||[]:"web_citation"===Q||"web_citations"===Q?(null==F?void 0:F.web_citations)||[]:"code_generated"===Q?(null==F?void 0:F.code_generated)||[]:("readfile_citation"===Q||"readfile_citations"===Q)&&(null==F?void 0:F.readfile_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(V)});if(y.includes(Q)&&!X){var Y=null!==(d=null==k?void 0:k.citationLoadingIcon)&&void 0!==d?d:t.jsx("span",{className:s.default.citationSpinner,style:null===(v=null==I?void 0:I.loadingCitations)||void 0===v?void 0:v.citationSpinner});return t.jsx(l.Tooltip,i.__assign({title:null!==(C=null===(x=null==I?void 0:I.loadingCitations)||void 0===x?void 0:x.tooltipTitle)&&void 0!==C?C:"".concat(Q," loading..."),arrow:!0},{children:t.jsxs("span",i.__assign({className:s.default.citationSpinnerWrapper,style:null===(b=null==I?void 0:I.loadingCitations)||void 0===b?void 0:b.citationSpinnerWrapper},{children:[U,Y]}))}))}if("chat_citation"===Q){if(!A||0===A.length)return null;var Z=V.split("-").map(Number),ii=Z[0],ti=Z[1];return ii=ii>0?ii-1:ii,ti=ti<A.length-1?ti+1:ti,t.jsx(j.default,{customIcon:null==k?void 0:k.chatCitationIcon,title:U,chatHistory:S(A,ii,ti),isTable:J,chatCitationProps:null==L?void 0:L.chatCitationProps,onCitationClick:null==L?void 0:L.handleCitationClicked,customStyles:null==I?void 0:I.chatCitation})}return"image_citation"!==Q||X?"web_citation"===(null===(R=null==X?void 0:X.customMetadata)||void 0===R?void 0:R.type)?(null===(M=X.customMetadata)||void 0===M?void 0:M.screenshot_url)?t.jsx(c.default,{title:U,citation:X,customStyles:null==I?void 0:I.webCitation,customIcons:k}):t.jsx(r.default,{label:U,url:null===(w=X.customMetadata)||void 0===w?void 0:w.link,customStyles:null==I?void 0:I.webCitation,customIcons:k}):"audio_transcript"===(null===(N=null==X?void 0:X.customMetadata)||void 0===N?void 0:N.type)?"stormee"===(null==X?void 0:X.customMetadata.audio_citation_mode)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(m.default,{title:"".concat(U),citation:X,customStyles:null==I?void 0:I.stormeeCitation,customIcons:k})})):t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(p.default,{title:"".concat(U),citation:X,customStyles:null==I?void 0:I.waveformCitation,customIcons:k})})):"image_citation"===(null==X?void 0:X.customMetadata.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(u.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.imageCitation})})):"book_citation_doc"===(null===(P=null==X?void 0:X.customMetadata)||void 0===P?void 0:P.type)||"book_citation_pdf"===(null==X?void 0:X.customMetadata.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(_.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.fileCitation})})):"app_mod_rag_question"===(null===(O=null==X?void 0:X.customMetadata)||void 0===O?void 0:O.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(f.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.appModCitation,codeLinkConfig:null===(T=null==W?void 0:W.appMod)||void 0===T?void 0:T.codeLinkConfig,isLoading:null===(D=null==W?void 0:W.appMod)||void 0===D?void 0:D.isLoading})})):"rca_citation"===(null===(E=null==X?void 0:X.customMetadata)||void 0===E?void 0:E.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(h.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.rcaCitation})})):"readfile_citation"===(null===(H=null==X?void 0:X.customMetadata)||void 0===H?void 0:H.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(g.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.readFileCitation,fileCallback:null===($=null==W?void 0:W.readFile)||void 0===$?void 0:$.fileCallback,editorConfig:null===(z=null==W?void 0:W.readFile)||void 0===z?void 0:z.editorConfig,customColors:null===(B=null==W?void 0:W.readFile)||void 0===B?void 0:B.customColors})})):t.jsx("span",i.__assign({},G,{className:s.default.paragraph,style:null==q?void 0:q.p},{children:null==G?void 0:G.children})):null},code:function(e){e.inline;var n=e.children,o=e.className;return e.node,i.__rest(e,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t.jsx("div",{children:t.jsx("code",i.__assign({className:s.default.blockCode},{children:n}))}):t.jsx("code",i.__assign({className:s.default.inlineCode,style:null==q?void 0:q.code},{children:n}))},learned:function(e){var n=e.children;return t.jsx(t.Fragment,{children:t.jsx(l.Tooltip,i.__assign({title:n,placement:"top"},{children:t.jsx(a.Info,{size:16,className:s.default.learnedIcon})}))})}}},[F,x,W,A]);return t.jsx("div",i.__assign({ref:w,className:"w-full"},{children:t.jsx(C.default,i.__assign({components:P,rehypePlugins:[b.default]},{children:o}))}))},exports.formatChatData=S;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),t=require("react/jsx-runtime"),e=require("react"),n=require("react-markdown"),o=require("rehype-raw"),a=require("lucide-react"),l=require("@mui/material"),s=require("./AiReasonMarkdownWrapper.module.css.js"),d=require("../../shared/ExpandableOl.js"),c=require("../citations/web-citation/WebCitationWithImageRenderer.js"),r=require("../citations/web-citation/WebCitationRenderer.js"),u=require("../citations/image-citation/ImageCitationRenderer.js"),_=require("../citations/file-citation/FileCitationRender.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("../citations/stormee-citation/StormeeCitationRenderer.js"),p=require("../citations/audio-citation/WaveformCitationRenderer.js"),f=require("../citations/appmod-citation/AppmodCitationRenderer.js"),h=require("../citations/rca-citation/RCACitationRenderer.js"),g=require("../citations/readfile-citation/ReadFileCitationRenderer.js"),j=require("../citations/chat-citation/ChatCitationRenderer.js");function x(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var C=x(n),b=x(o),y=["appmode_citation","image_citation","audio_citation","document_citation","rca_citation","web_citation","code_generated","chat_citation","readfile_citation"],S=function(t,e,n){return i.__spreadArray([],t.map(function(t,o){var a=o>=e&&o<=n;return i.__assign(i.__assign({},t),{highlighted_text:a?t.message:""})}),!0)};exports.AiReasonMarkdownWrapper=function(n){var o=n.message,x=n.isExpandableOrderedListEnabled,q=n.customStyles,I=n.citationStyles,k=n.customIcons,R=n.onSelectProceed,M=n.isDisableProceedButton,w=e.useRef(null),N=v.useRequirementAI(),F=N.citations,W=N.citationConfig,A=N.chatHistory,L=N.chatCitationConfigs,P=e.useMemo(function(){return{h1:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h1",i.__assign({className:s.default.h1,style:null==q?void 0:q.h1},{children:null==n?void 0:n.children}))},h2:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h2,style:null==q?void 0:q.h2},{children:null==n?void 0:n.children}))},h3:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("h2",i.__assign({className:s.default.h3,style:null==q?void 0:q.h3},{children:null==n?void 0:n.children}))},b:function(e){return e.node,i.__rest(e,["node"]),t.jsx("b",{className:s.default.bold,style:null==q?void 0:q.b})},p:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("p",i.__assign({},n,{className:s.default.paragraph,style:null==q?void 0:q.p},{children:null==n?void 0:n.children}))},ol:function(e){e.node;var n=i.__rest(e,["node"]);return x?t.jsx(d.default,i.__assign({customStyles:null==q?void 0:q.expandOlStyle,onProceed:R,isProceedDisabled:M,aiReasoningCitation:F},{children:null==n?void 0:n.children})):t.jsx("ol",i.__assign({className:s.default.orderedList,style:null==q?void 0:q.ol},{children:null==n?void 0:n.children}))},ul:function(e){e.node;var n=i.__rest(e,["node"]);return t.jsx("ul",i.__assign({className:s.default.unorderedList},{children:null==n?void 0:n.children}))},a:function(n){var o,a,d,v,x,C,b,R,M,w,N,P,O,T,D,E,H,$,z,B;n.inline;var U=n.children;n.node;var G=i.__rest(n,["inline","children","node"]),J="true"===(null==G?void 0:G.table),K="".concat(null==G?void 0:G.href),Q=null===(o=K.split("$"))||void 0===o?void 0:o[0],V=null===(a=K.split("$"))||void 0===a?void 0:a[1],X=("appmode_citation"===Q||"appmode_citations"===Q?(null==F?void 0:F.appmod_citations)||[]:"image_citation"===Q||"image_citations"===Q?(null==F?void 0:F.image_citations)||[]:"audio_citation"===Q||"audio_citations"===Q?(null==F?void 0:F.audio_citations)||[]:"document_citation"===Q||"document_citations"===Q?(null==F?void 0:F.file_citations)||[]:"rca_citation"===Q||"rca_citations"===Q?(null==F?void 0:F.rca_citations)||[]:"web_citation"===Q||"web_citations"===Q?(null==F?void 0:F.web_citations)||[]:"code_generated"===Q?(null==F?void 0:F.code_generated)||[]:("readfile_citation"===Q||"readfile_citations"===Q)&&(null==F?void 0:F.readfile_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(V)});if(y.includes(Q)&&!X){var Y=null!==(d=null==k?void 0:k.citationLoadingIcon)&&void 0!==d?d:t.jsx("span",{className:s.default.citationSpinner,style:null===(v=null==I?void 0:I.loadingCitations)||void 0===v?void 0:v.citationSpinner});return t.jsx(l.Tooltip,i.__assign({title:null!==(C=null===(x=null==I?void 0:I.loadingCitations)||void 0===x?void 0:x.tooltipTitle)&&void 0!==C?C:"".concat(Q," loading..."),arrow:!0},{children:t.jsxs("span",i.__assign({className:s.default.citationSpinnerWrapper,style:null===(b=null==I?void 0:I.loadingCitations)||void 0===b?void 0:b.citationSpinnerWrapper},{children:[U,Y]}))}))}if("chat_citation"===Q){if(!A||0===A.length)return null;var Z=V.split("-").map(Number),ii=Z[0],ti=Z[1];return ii=ii>0?ii-1:ii,ti=ti<A.length-1?ti+1:ti,t.jsx(j.default,{customIcon:null==k?void 0:k.chatCitationIcon,title:U,chatHistory:S(A,ii,ti),isTable:J,chatCitationProps:null==L?void 0:L.chatCitationProps,onCitationClick:null==L?void 0:L.handleCitationClicked,customStyles:null==I?void 0:I.chatCitation})}return"image_citation"!==Q||X?"web_citation"===(null===(R=null==X?void 0:X.customMetadata)||void 0===R?void 0:R.type)?(null===(M=X.customMetadata)||void 0===M?void 0:M.screenshot_url)?t.jsx(c.default,{title:U,citation:X,customStyles:null==I?void 0:I.webCitation,customIcons:k}):t.jsx(r.default,{label:U,url:null===(w=X.customMetadata)||void 0===w?void 0:w.link,customStyles:null==I?void 0:I.webCitation,customIcons:k}):"audio_transcript"===(null===(N=null==X?void 0:X.customMetadata)||void 0===N?void 0:N.type)?"stormee"===(null==X?void 0:X.customMetadata.audio_citation_mode)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(m.default,{title:"".concat(U),citation:X,customStyles:null==I?void 0:I.stormeeCitation,customIcons:k})})):t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(p.default,{title:"".concat(U),citation:X,customStyles:null==I?void 0:I.waveformCitation,customIcons:k})})):"image_citation"===(null==X?void 0:X.customMetadata.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(u.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.imageCitation})})):"book_citation_doc"===(null===(P=null==X?void 0:X.customMetadata)||void 0===P?void 0:P.type)||"book_citation_pdf"===(null==X?void 0:X.customMetadata.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(_.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.fileCitation})})):"app_mod_rag_question"===(null===(O=null==X?void 0:X.customMetadata)||void 0===O?void 0:O.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(f.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.appModCitation,codeLinkConfig:null===(T=null==W?void 0:W.appMod)||void 0===T?void 0:T.codeLinkConfig,isLoading:null===(D=null==W?void 0:W.appMod)||void 0===D?void 0:D.isLoading})})):"rca_citation"===(null===(E=null==X?void 0:X.customMetadata)||void 0===E?void 0:E.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(h.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.rcaCitation})})):"readfile_citation"===(null===(H=null==X?void 0:X.customMetadata)||void 0===H?void 0:H.type)?t.jsx(e.Suspense,i.__assign({fallback:t.jsx(t.Fragment,{})},{children:t.jsx(g.default,{title:"".concat(U),citation:X,customIcons:k,customStyles:null==I?void 0:I.readFileCitation,fileCallback:null===($=null==W?void 0:W.readFile)||void 0===$?void 0:$.fileCallback,editorConfig:null===(z=null==W?void 0:W.readFile)||void 0===z?void 0:z.editorConfig,customColors:null===(B=null==W?void 0:W.readFile)||void 0===B?void 0:B.customColors})})):t.jsx("span",i.__assign({},G,{className:s.default.paragraph,style:null==q?void 0:q.p},{children:null==G?void 0:G.children})):null},code:function(e){e.inline;var n=e.children,o=e.className;return e.node,i.__rest(e,["inline","children","className","node"]),/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t.jsx("div",{children:t.jsx("code",i.__assign({className:s.default.blockCode},{children:n}))}):t.jsx("code",i.__assign({className:s.default.inlineCode,style:null==q?void 0:q.code},{children:n}))},learned:function(e){var n=e.children;return t.jsx(t.Fragment,{children:t.jsx(l.Tooltip,i.__assign({title:n,placement:"top"},{children:t.jsx(a.Info,{size:16,className:s.default.learnedIcon})}))})}}},[F,x,W,A]);return t.jsx("div",i.__assign({ref:w,className:"w-full"},{children:t.jsx(C.default,i.__assign({components:P,rehypePlugins:[b.default]},{children:o}))}))},exports.formatChatData=S;
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),l=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),l=require("react"),n=require("lucide-react"),s=require("./ExpandableOl.module.css.js"),i=require("./ReqAiCitationRenderer.js");exports.default=function(r){var o=r.children,a=r.onProceed,d=r.isProceedDisabled,u=r.defaultVisibleItems,c=void 0===u?2:u,p=r.customStyles,h=r.citationStyles,m=r.customIcons,y=l.useState(!1),_=y[0],g=y[1],f=l.useCallback(function(n){var s,r;if(!l.isValidElement(n))return n;var o=n;return"a"===(null===(s=null==o?void 0:o.type)||void 0===s?void 0:s.name)?t.jsx(i.default,e.__assign({href:o.props.href,citationStyles:h,customIcons:m},{children:o.props.children})):(null===(r=o.props)||void 0===r?void 0:r.children)?l.cloneElement(o,{children:l.Children.map(o.props.children,f)}):o},[h,m]),v=l.useMemo(function(){return l.Children.toArray(o).map(function(e){return f(e)})},[o,f]),x=l.Children.toArray(o).length>c,j=l.useMemo(function(){return _?v:v.slice(0,2)},[_,v]);return t.jsxs(t.Fragment,{children:[t.jsx("ol",e.__assign({className:s.default.list,style:null==p?void 0:p.listStyle},{children:j.map(function(n,i){var r=i===j.length-1;return l.isValidElement(n)?r&&x?l.cloneElement(n,{style:e.__assign(e.__assign({},n.props.style),null==p?void 0:p.itemStyle),children:t.jsxs(t.Fragment,{children:[t.jsx("span",e.__assign({style:null==p?void 0:p.itemTextStyle},{children:n.props.children})),!_&&t.jsx("button",e.__assign({type:"button",onClick:function(){return g(!0)},className:s.default.toggleButton,style:null==p?void 0:p.moreButton},{children:"show more"})),_&&t.jsx("button",e.__assign({type:"button",onClick:function(){return g(!1)},className:s.default.toggleButton,style:null==p?void 0:p.toggleButton},{children:"see less"}))]})}):l.cloneElement(n,{style:e.__assign(e.__assign({},n.props.style),null==p?void 0:p.itemStyle),children:t.jsx("span",e.__assign({style:null==p?void 0:p.itemTextStyle},{children:n.props.children}))}):t.jsx("li",e.__assign({style:null==p?void 0:p.itemStyle},{children:t.jsx("span",e.__assign({style:null==p?void 0:p.itemTextStyle},{children:n}))}),i)})})),a&&t.jsx("div",e.__assign({className:s.default.proceedContainer},{children:t.jsxs("button",e.__assign({type:"button",disabled:d,onClick:function(e){e.stopPropagation(),d||a()},className:"".concat(s.default.proceedButton," ").concat(d?s.default.proceedDisabled:s.default.proceedEnabled),style:d?null==p?void 0:p.disableProceedStyle:null==p?void 0:p.enableProceedStyle},{children:[t.jsx("span",{children:"Clarify"}),t.jsx(n.ArrowRight,{size:15,strokeWidth:1.5})]}))}))]})};
|
|
2
2
|
//# sourceMappingURL=ExpandableOl.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),o=require("react"),e=require("../components/citations/web-citation/WebCitationWithImageRenderer.js"),n=require("../components/citations/web-citation/WebCitationRenderer.js"),a=require("../components/citations/stormee-citation/StormeeCitationRenderer.js"),s=require("../components/citations/audio-citation/WaveformCitationRenderer.js"),l=require("../components/citations/image-citation/ImageCitationRenderer.js"),c=require("../components/citations/file-citation/FileCitationRender.js"),d=require("../components/citations/appmod-citation/AppmodCitationRenderer.js"),u=require("../components/citations/rca-citation/RCACitationRenderer.js"),r=require("../components/citations/readfile-citation/ReadFileCitationRenderer.js"),m=require("../components/citations/audio-citation/components/AudioCitationIcon.js"),v=require("../components/RequirementAIWrapper/RequirementAIWrapper.js"),p=require("./ReqAiCitationRenderer.module.css.js");exports.default=function(_){var g,f,j,x,C,b,y,q,S,R,I,h,F,M,k,w,A,W=_.href;_.panelRef;var L=_.children;_.customStyles;var $=_.citationStyles,N=_.customIcons,O=v.useRequirementAI(),J=O.citationConfig,P=O.citations,U="";try{U=JSON.parse('"'.concat(W,'"'))}catch(t){console.warn("error in parsing reasoning a tag",t),U=W}var z=null===(f=null===(g=U.split("$"))||void 0===g?void 0:g[0])||void 0===f?void 0:f.replace(/^[\\"\s]+|[\\"\s]+$/g,""),B=null===(x=null===(j=U.split("$"))||void 0===j?void 0:j[1])||void 0===x?void 0:x.replace(/^[\\"\s]+|[\\"\s]+$/g,""),D=("appmode_citations"===z?(null==P?void 0:P.appmod_citations)||[]:"image_citations"===z?(null==P?void 0:P.image_citations)||[]:"audio_citations"===z?(null==P?void 0:P.audio_citations)||[]:"document_citations"===z?(null==P?void 0:P.file_citations)||[]:"rca_citations"===z?(null==P?void 0:P.rca_citations)||[]:"web_citations"===z?(null==P?void 0:P.web_citations)||[]:"code_generated"===z?(null==P?void 0:P.code_generated)||[]:"gpt_citation"===z?(null==P?void 0:P.gpt_citations)||[]:"readfile_citation"===z&&(null==P?void 0:P.readfile_citations)||[]).find(function(t){return t.citation_number===decodeURIComponent(B)});return console.log("testing::citation::list",D),"image_citation"!==z||D?"web_citation"===(null===(C=null==D?void 0:D.customMetadata)||void 0===C?void 0:C.type)?(null===(b=D.customMetadata)||void 0===b?void 0:b.screenshot_url)?i.jsx(e.default,{title:L,citation:D,customStyles:null==$?void 0:$.webCitation,customIcons:N}):i.jsx(n.default,{label:L,url:null===(y=D.customMetadata)||void 0===y?void 0:y.link,customStyles:null==$?void 0:$.webCitation,customIcons:N}):"audio_transcript"===(null===(q=null==D?void 0:D.customMetadata)||void 0===q?void 0:q.type)?"stormee"===(null==D?void 0:D.customMetadata.audio_citation_mode)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(a.default,{title:"".concat(L),citation:D,customStyles:null==$?void 0:$.stormeeCitation,customIcons:N})})):i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(s.default,{title:"".concat(L),citation:D,customStyles:null==$?void 0:$.waveformCitation,customIcons:N})})):"image_citation"===(null==D?void 0:D.customMetadata.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(l.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.imageCitation})})):"book_citation_doc"===(null===(S=null==D?void 0:D.customMetadata)||void 0===S?void 0:S.type)||"book_citation_pdf"===(null==D?void 0:D.customMetadata.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(c.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.fileCitation})})):"app_mod_rag_question"===(null===(R=null==D?void 0:D.customMetadata)||void 0===R?void 0:R.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(d.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.appModCitation,codeLinkConfig:null===(I=null==J?void 0:J.appMod)||void 0===I?void 0:I.codeLinkConfig,isLoading:null===(h=null==J?void 0:J.appMod)||void 0===h?void 0:h.isLoading})})):"rca_citation"===(null===(F=null==D?void 0:D.customMetadata)||void 0===F?void 0:F.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(u.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.rcaCitation})})):"readfile_citation"===(null===(M=null==D?void 0:D.customMetadata)||void 0===M?void 0:M.type)?i.jsx(o.Suspense,t.__assign({fallback:i.jsx(i.Fragment,{})},{children:i.jsx(r.default,{title:"".concat(L),citation:D,customIcons:N,customStyles:null==$?void 0:$.readFileCitation,fileCallback:null===(k=null==J?void 0:J.readFile)||void 0===k?void 0:k.fileCallback,editorConfig:null===(w=null==J?void 0:J.readFile)||void 0===w?void 0:w.editorConfig,customColors:null===(A=null==J?void 0:J.readFile)||void 0===A?void 0:A.customColors})})):i.jsxs("span",t.__assign({className:p.default.container},{children:[i.jsx("span",t.__assign({className:p.default.text},{children:L})),i.jsxs("span",{children:[" ","audio_citations"===z?i.jsx(m.default,{}):i.jsx(i.Fragment,{})]})]})):i.jsx(i.Fragment,{})};
|
|
2
|
+
//# sourceMappingURL=ReqAiCitationRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReqAiCitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReqAiCitationRenderer-module_container__PpQmz{display:inline-flex;flex-direction:row;gap:4px}.ReqAiCitationRenderer-module_text__8K61w{animation:ReqAiCitationRenderer-module_pulse__NemYY 2s infinite;color:#60a5fa}@keyframes ReqAiCitationRenderer-module_pulse__NemYY{0%,to{opacity:1}50%{opacity:.5}}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={container:"ReqAiCitationRenderer-module_container__PpQmz",text:"ReqAiCitationRenderer-module_text__8K61w",pulse:"ReqAiCitationRenderer-module_pulse__NemYY"};
|
|
2
|
+
//# sourceMappingURL=ReqAiCitationRenderer.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReqAiCitationRenderer.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as i,__assign as t,__spreadArray as o}from"tslib";import{jsx as n,jsxs as e,Fragment as l}from"react/jsx-runtime";import{useRef as a,useMemo as c,Suspense as d}from"react";import r from"react-markdown";import s from"rehype-raw";import{Info as u}from"lucide-react";import{Tooltip as m}from"@mui/material";import v from"./AiReasonMarkdownWrapper.module.css.js";import p from"../../shared/ExpandableOl.js";import h from"../citations/web-citation/WebCitationWithImageRenderer.js";import f from"../citations/web-citation/WebCitationRenderer.js";import _ from"../citations/image-citation/ImageCitationRenderer.js";import C from"../citations/file-citation/FileCitationRender.js";import{useRequirementAI as g}from"../RequirementAIWrapper/RequirementAIWrapper.js";import b from"../citations/stormee-citation/StormeeCitationRenderer.js";import y from"../citations/audio-citation/WaveformCitationRenderer.js";import S from"../citations/appmod-citation/AppmodCitationRenderer.js";import k from"../citations/rca-citation/RCACitationRenderer.js";import I from"../citations/readfile-citation/ReadFileCitationRenderer.js";import N from"../citations/chat-citation/ChatCitationRenderer.js";var
|
|
1
|
+
import{__rest as i,__assign as t,__spreadArray as o}from"tslib";import{jsx as n,jsxs as e,Fragment as l}from"react/jsx-runtime";import{useRef as a,useMemo as c,Suspense as d}from"react";import r from"react-markdown";import s from"rehype-raw";import{Info as u}from"lucide-react";import{Tooltip as m}from"@mui/material";import v from"./AiReasonMarkdownWrapper.module.css.js";import p from"../../shared/ExpandableOl.js";import h from"../citations/web-citation/WebCitationWithImageRenderer.js";import f from"../citations/web-citation/WebCitationRenderer.js";import _ from"../citations/image-citation/ImageCitationRenderer.js";import C from"../citations/file-citation/FileCitationRender.js";import{useRequirementAI as g}from"../RequirementAIWrapper/RequirementAIWrapper.js";import b from"../citations/stormee-citation/StormeeCitationRenderer.js";import y from"../citations/audio-citation/WaveformCitationRenderer.js";import S from"../citations/appmod-citation/AppmodCitationRenderer.js";import k from"../citations/rca-citation/RCACitationRenderer.js";import I from"../citations/readfile-citation/ReadFileCitationRenderer.js";import N from"../citations/chat-citation/ChatCitationRenderer.js";var R=["appmode_citation","image_citation","audio_citation","document_citation","rca_citation","web_citation","code_generated","chat_citation","readfile_citation"],w=function(i,n,e){return o([],i.map(function(i,o){var l=o>=n&&o<=e;return t(t({},i),{highlighted_text:l?i.message:""})}),!0)},M=function(o){var M=o.message,j=o.isExpandableOrderedListEnabled,W=o.customStyles,L=o.citationStyles,x=o.customIcons,P=o.onSelectProceed,F=o.isDisableProceedButton,A=a(null),q=g(),E=q.citations,O=q.citationConfig,D=q.chatHistory,H=q.chatCitationConfigs,T=c(function(){return{h1:function(o){o.node;var e=i(o,["node"]);return n("h1",t({className:v.h1,style:null==W?void 0:W.h1},{children:null==e?void 0:e.children}))},h2:function(o){o.node;var e=i(o,["node"]);return n("h2",t({className:v.h2,style:null==W?void 0:W.h2},{children:null==e?void 0:e.children}))},h3:function(o){o.node;var e=i(o,["node"]);return n("h2",t({className:v.h3,style:null==W?void 0:W.h3},{children:null==e?void 0:e.children}))},b:function(t){return t.node,i(t,["node"]),n("b",{className:v.bold,style:null==W?void 0:W.b})},p:function(o){o.node;var e=i(o,["node"]);return n("p",t({},e,{className:v.paragraph,style:null==W?void 0:W.p},{children:null==e?void 0:e.children}))},ol:function(o){o.node;var e=i(o,["node"]);return j?n(p,t({customStyles:null==W?void 0:W.expandOlStyle,onProceed:P,isProceedDisabled:F,aiReasoningCitation:E},{children:null==e?void 0:e.children})):n("ol",t({className:v.orderedList,style:null==W?void 0:W.ol},{children:null==e?void 0:e.children}))},ul:function(o){o.node;var e=i(o,["node"]);return n("ul",t({className:v.unorderedList},{children:null==e?void 0:e.children}))},a:function(o){var a,c,r,s,u,p,g,M,j,P,F,A,q,T,$,z,B,U,G,J;o.inline;var K=o.children;o.node;var Q=i(o,["inline","children","node"]),V="true"===(null==Q?void 0:Q.table),X="".concat(null==Q?void 0:Q.href),Y=null===(a=X.split("$"))||void 0===a?void 0:a[0],Z=null===(c=X.split("$"))||void 0===c?void 0:c[1],ii=("appmode_citation"===Y||"appmode_citations"===Y?(null==E?void 0:E.appmod_citations)||[]:"image_citation"===Y||"image_citations"===Y?(null==E?void 0:E.image_citations)||[]:"audio_citation"===Y||"audio_citations"===Y?(null==E?void 0:E.audio_citations)||[]:"document_citation"===Y||"document_citations"===Y?(null==E?void 0:E.file_citations)||[]:"rca_citation"===Y||"rca_citations"===Y?(null==E?void 0:E.rca_citations)||[]:"web_citation"===Y||"web_citations"===Y?(null==E?void 0:E.web_citations)||[]:"code_generated"===Y?(null==E?void 0:E.code_generated)||[]:("readfile_citation"===Y||"readfile_citations"===Y)&&(null==E?void 0:E.readfile_citations)||[]).find(function(i){return i.citation_number===decodeURIComponent(Z)});if(R.includes(Y)&&!ii){var ti=null!==(r=null==x?void 0:x.citationLoadingIcon)&&void 0!==r?r:n("span",{className:v.citationSpinner,style:null===(s=null==L?void 0:L.loadingCitations)||void 0===s?void 0:s.citationSpinner});return n(m,t({title:null!==(p=null===(u=null==L?void 0:L.loadingCitations)||void 0===u?void 0:u.tooltipTitle)&&void 0!==p?p:"".concat(Y," loading..."),arrow:!0},{children:e("span",t({className:v.citationSpinnerWrapper,style:null===(g=null==L?void 0:L.loadingCitations)||void 0===g?void 0:g.citationSpinnerWrapper},{children:[K,ti]}))}))}if("chat_citation"===Y){if(!D||0===D.length)return null;var oi=Z.split("-").map(Number),ni=oi[0],ei=oi[1];return ni=ni>0?ni-1:ni,ei=ei<D.length-1?ei+1:ei,n(N,{customIcon:null==x?void 0:x.chatCitationIcon,title:K,chatHistory:w(D,ni,ei),isTable:V,chatCitationProps:null==H?void 0:H.chatCitationProps,onCitationClick:null==H?void 0:H.handleCitationClicked,customStyles:null==L?void 0:L.chatCitation})}return"image_citation"!==Y||ii?"web_citation"===(null===(M=null==ii?void 0:ii.customMetadata)||void 0===M?void 0:M.type)?(null===(j=ii.customMetadata)||void 0===j?void 0:j.screenshot_url)?n(h,{title:K,citation:ii,customStyles:null==L?void 0:L.webCitation,customIcons:x}):n(f,{label:K,url:null===(P=ii.customMetadata)||void 0===P?void 0:P.link,customStyles:null==L?void 0:L.webCitation,customIcons:x}):"audio_transcript"===(null===(F=null==ii?void 0:ii.customMetadata)||void 0===F?void 0:F.type)?"stormee"===(null==ii?void 0:ii.customMetadata.audio_citation_mode)?n(d,t({fallback:n(l,{})},{children:n(b,{title:"".concat(K),citation:ii,customStyles:null==L?void 0:L.stormeeCitation,customIcons:x})})):n(d,t({fallback:n(l,{})},{children:n(y,{title:"".concat(K),citation:ii,customStyles:null==L?void 0:L.waveformCitation,customIcons:x})})):"image_citation"===(null==ii?void 0:ii.customMetadata.type)?n(d,t({fallback:n(l,{})},{children:n(_,{title:"".concat(K),citation:ii,customIcons:x,customStyles:null==L?void 0:L.imageCitation})})):"book_citation_doc"===(null===(A=null==ii?void 0:ii.customMetadata)||void 0===A?void 0:A.type)||"book_citation_pdf"===(null==ii?void 0:ii.customMetadata.type)?n(d,t({fallback:n(l,{})},{children:n(C,{title:"".concat(K),citation:ii,customIcons:x,customStyles:null==L?void 0:L.fileCitation})})):"app_mod_rag_question"===(null===(q=null==ii?void 0:ii.customMetadata)||void 0===q?void 0:q.type)?n(d,t({fallback:n(l,{})},{children:n(S,{title:"".concat(K),citation:ii,customIcons:x,customStyles:null==L?void 0:L.appModCitation,codeLinkConfig:null===(T=null==O?void 0:O.appMod)||void 0===T?void 0:T.codeLinkConfig,isLoading:null===($=null==O?void 0:O.appMod)||void 0===$?void 0:$.isLoading})})):"rca_citation"===(null===(z=null==ii?void 0:ii.customMetadata)||void 0===z?void 0:z.type)?n(d,t({fallback:n(l,{})},{children:n(k,{title:"".concat(K),citation:ii,customIcons:x,customStyles:null==L?void 0:L.rcaCitation})})):"readfile_citation"===(null===(B=null==ii?void 0:ii.customMetadata)||void 0===B?void 0:B.type)?n(d,t({fallback:n(l,{})},{children:n(I,{title:"".concat(K),citation:ii,customIcons:x,customStyles:null==L?void 0:L.readFileCitation,fileCallback:null===(U=null==O?void 0:O.readFile)||void 0===U?void 0:U.fileCallback,editorConfig:null===(G=null==O?void 0:O.readFile)||void 0===G?void 0:G.editorConfig,customColors:null===(J=null==O?void 0:O.readFile)||void 0===J?void 0:J.customColors})})):n("span",t({},Q,{className:v.paragraph,style:null==W?void 0:W.p},{children:null==Q?void 0:Q.children})):null},code:function(o){o.inline;var e=o.children,l=o.className;return o.node,i(o,["inline","children","className","node"]),/language-(\w+)/.exec(l||"")||(null==l?void 0:l.includes("language-"))?n("div",{children:n("code",t({className:v.blockCode},{children:e}))}):n("code",t({className:v.inlineCode,style:null==W?void 0:W.code},{children:e}))},learned:function(i){var o=i.children;return n(l,{children:n(m,t({title:o,placement:"top"},{children:n(u,{size:16,className:v.learnedIcon})}))})}}},[E,j,O,D]);return n("div",t({ref:A,className:"w-full"},{children:n(r,t({components:T,rehypePlugins:[s]},{children:M}))}))};export{M as AiReasonMarkdownWrapper,w as formatChatData};
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t,jsxs as l,Fragment as n}from"react/jsx-runtime";import{useState as o,useCallback as r,isValidElement as i,cloneElement as s,Children as c,useMemo as d}from"react";import{ArrowRight as u}from"lucide-react";import a from"./ExpandableOl.module.css.js";import p from"./ReqAiCitationRenderer.js";var m=function(m){var y=m.children,h=m.onProceed,v=m.isProceedDisabled,f=m.defaultVisibleItems,b=void 0===f?2:f,S=m.customStyles,g=m.citationStyles,x=m.customIcons,C=o(!1),B=C[0],N=C[1],P=r(function(l){var n,o;if(!i(l))return l;var r=l;return"a"===(null===(n=null==r?void 0:r.type)||void 0===n?void 0:n.name)?t(p,e({href:r.props.href,citationStyles:g,customIcons:x},{children:r.props.children})):(null===(o=r.props)||void 0===o?void 0:o.children)?s(r,{children:c.map(r.props.children,P)}):r},[g,x]),k=d(function(){return c.toArray(y).map(function(e){return P(e)})},[y,P]),j=c.toArray(y).length>b,A=d(function(){return B?k:k.slice(0,2)},[B,k]);return l(n,{children:[t("ol",e({className:a.list,style:null==S?void 0:S.listStyle},{children:A.map(function(o,r){var c=r===A.length-1;return i(o)?s(o,c&&j?{style:e(e({},o.props.style),null==S?void 0:S.itemStyle),children:l(n,{children:[t("span",e({style:null==S?void 0:S.itemTextStyle},{children:o.props.children})),!B&&t("button",e({type:"button",onClick:function(){return N(!0)},className:a.toggleButton,style:null==S?void 0:S.moreButton},{children:"show more"})),B&&t("button",e({type:"button",onClick:function(){return N(!1)},className:a.toggleButton,style:null==S?void 0:S.toggleButton},{children:"see less"}))]})}:{style:e(e({},o.props.style),null==S?void 0:S.itemStyle),children:t("span",e({style:null==S?void 0:S.itemTextStyle},{children:o.props.children}))}):t("li",e({style:null==S?void 0:S.itemStyle},{children:t("span",e({style:null==S?void 0:S.itemTextStyle},{children:o}))}),r)})})),h&&t("div",e({className:a.proceedContainer},{children:l("button",e({type:"button",disabled:v,onClick:function(e){e.stopPropagation(),v||h()},className:"".concat(a.proceedButton," ").concat(v?a.proceedDisabled:a.proceedEnabled),style:v?null==S?void 0:S.disableProceedStyle:null==S?void 0:S.enableProceedStyle},{children:[t("span",{children:"Clarify"}),t(u,{size:15,strokeWidth:1.5})]}))}))]})};export{m as default};
|
|
2
2
|
//# sourceMappingURL=ExpandableOl.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as i,Fragment as o,jsxs as n}from"react/jsx-runtime";import{Suspense as a}from"react";import e from"../components/citations/web-citation/WebCitationWithImageRenderer.js";import l from"../components/citations/web-citation/WebCitationRenderer.js";import c from"../components/citations/stormee-citation/StormeeCitationRenderer.js";import d from"../components/citations/audio-citation/WaveformCitationRenderer.js";import s from"../components/citations/image-citation/ImageCitationRenderer.js";import r from"../components/citations/file-citation/FileCitationRender.js";import m from"../components/citations/appmod-citation/AppmodCitationRenderer.js";import u from"../components/citations/rca-citation/RCACitationRenderer.js";import v from"../components/citations/readfile-citation/ReadFileCitationRenderer.js";import p from"../components/citations/audio-citation/components/AudioCitationIcon.js";import{useRequirementAI as f}from"../components/RequirementAIWrapper/RequirementAIWrapper.js";import _ from"./ReqAiCitationRenderer.module.css.js";var C=function(C){var g,b,y,R,I,h,k,M,j,S,w,A,F,W,q,L,$,x=C.href;C.panelRef;var N=C.children;C.customStyles;var J=C.citationStyles,O=C.customIcons,U=f(),z=U.citationConfig,B=U.citations,D="";try{D=JSON.parse('"'.concat(x,'"'))}catch(t){console.warn("error in parsing reasoning a tag",t),D=x}var E=null===(b=null===(g=D.split("$"))||void 0===g?void 0:g[0])||void 0===b?void 0:b.replace(/^[\\"\s]+|[\\"\s]+$/g,""),G=null===(R=null===(y=D.split("$"))||void 0===y?void 0:y[1])||void 0===R?void 0:R.replace(/^[\\"\s]+|[\\"\s]+$/g,""),H=("appmode_citations"===E?(null==B?void 0:B.appmod_citations)||[]:"image_citations"===E?(null==B?void 0:B.image_citations)||[]:"audio_citations"===E?(null==B?void 0:B.audio_citations)||[]:"document_citations"===E?(null==B?void 0:B.file_citations)||[]:"rca_citations"===E?(null==B?void 0:B.rca_citations)||[]:"web_citations"===E?(null==B?void 0:B.web_citations)||[]:"code_generated"===E?(null==B?void 0:B.code_generated)||[]:"gpt_citation"===E?(null==B?void 0:B.gpt_citations)||[]:"readfile_citation"===E&&(null==B?void 0:B.readfile_citations)||[]).find(function(t){return t.citation_number===decodeURIComponent(G)});return console.log("testing::citation::list",H),"image_citation"!==E||H?"web_citation"===(null===(I=null==H?void 0:H.customMetadata)||void 0===I?void 0:I.type)?(null===(h=H.customMetadata)||void 0===h?void 0:h.screenshot_url)?i(e,{title:N,citation:H,customStyles:null==J?void 0:J.webCitation,customIcons:O}):i(l,{label:N,url:null===(k=H.customMetadata)||void 0===k?void 0:k.link,customStyles:null==J?void 0:J.webCitation,customIcons:O}):"audio_transcript"===(null===(M=null==H?void 0:H.customMetadata)||void 0===M?void 0:M.type)?"stormee"===(null==H?void 0:H.customMetadata.audio_citation_mode)?i(a,t({fallback:i(o,{})},{children:i(c,{title:"".concat(N),citation:H,customStyles:null==J?void 0:J.stormeeCitation,customIcons:O})})):i(a,t({fallback:i(o,{})},{children:i(d,{title:"".concat(N),citation:H,customStyles:null==J?void 0:J.waveformCitation,customIcons:O})})):"image_citation"===(null==H?void 0:H.customMetadata.type)?i(a,t({fallback:i(o,{})},{children:i(s,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.imageCitation})})):"book_citation_doc"===(null===(j=null==H?void 0:H.customMetadata)||void 0===j?void 0:j.type)||"book_citation_pdf"===(null==H?void 0:H.customMetadata.type)?i(a,t({fallback:i(o,{})},{children:i(r,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.fileCitation})})):"app_mod_rag_question"===(null===(S=null==H?void 0:H.customMetadata)||void 0===S?void 0:S.type)?i(a,t({fallback:i(o,{})},{children:i(m,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.appModCitation,codeLinkConfig:null===(w=null==z?void 0:z.appMod)||void 0===w?void 0:w.codeLinkConfig,isLoading:null===(A=null==z?void 0:z.appMod)||void 0===A?void 0:A.isLoading})})):"rca_citation"===(null===(F=null==H?void 0:H.customMetadata)||void 0===F?void 0:F.type)?i(a,t({fallback:i(o,{})},{children:i(u,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.rcaCitation})})):"readfile_citation"===(null===(W=null==H?void 0:H.customMetadata)||void 0===W?void 0:W.type)?i(a,t({fallback:i(o,{})},{children:i(v,{title:"".concat(N),citation:H,customIcons:O,customStyles:null==J?void 0:J.readFileCitation,fileCallback:null===(q=null==z?void 0:z.readFile)||void 0===q?void 0:q.fileCallback,editorConfig:null===(L=null==z?void 0:z.readFile)||void 0===L?void 0:L.editorConfig,customColors:null===($=null==z?void 0:z.readFile)||void 0===$?void 0:$.customColors})})):n("span",t({className:_.container},{children:[i("span",t({className:_.text},{children:N})),n("span",{children:[" ",i("audio_citations"===E?p:o,{})]})]})):i(o,{})};export{C as default};
|
|
2
|
+
//# sourceMappingURL=ReqAiCitationRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReqAiCitationRenderer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={container:"ReqAiCitationRenderer-module_container__PpQmz",text:"ReqAiCitationRenderer-module_text__8K61w",pulse:"ReqAiCitationRenderer-module_pulse__NemYY"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ReqAiCitationRenderer-module_container__PpQmz{display:inline-flex;flex-direction:row;gap:4px}.ReqAiCitationRenderer-module_text__8K61w{animation:ReqAiCitationRenderer-module_pulse__NemYY 2s infinite;color:#60a5fa}@keyframes ReqAiCitationRenderer-module_pulse__NemYY{0%,to{opacity:1}50%{opacity:.5}}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=ReqAiCitationRenderer.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReqAiCitationRenderer.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePdfHighlight.d.ts","sourceRoot":"","sources":["../../../../../src/features/PdfViewer/usePdfHighlight.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePdfHighlight.d.ts","sourceRoot":"","sources":["../../../../../src/features/PdfViewer/usePdfHighlight.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,kBAChB,MAAM,EAAE,kBACP,OAAO,MAAM,EAAE,MAAM,CAAC;;;;;;;+BAgBJ,MAAM;;;;;;;;;;;;CAmFzC,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,EACrB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAsCvE,eAAO,MAAM,cAAc,gBACZ,gBAAgB,EAAE,cACnB,MAAM,YACR,MAAM,KACf,gBAAgB,EAUlB,CAAC;AAEF,eAAO,MAAM,uBAAuB;aASzB,MAAM;;;;;6BAKS,IAAI;;
|
|
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,EACrB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAsCvE,eAAO,MAAM,cAAc,gBACZ,gBAAgB,EAAE,cACnB,MAAM,YACR,MAAM,KACf,gBAAgB,EAUlB,CAAC;AAEF,eAAO,MAAM,uBAAuB;aASzB,MAAM;;;;;6BAKS,IAAI;;6CAqT7B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import dayjs from "dayjs";
|
|
2
|
-
import { AudioCitation, FileCitation, GeneratedCodeCitation, ImageCitation, RcaCitation, ReadFileCitation, TextCitation, WebCitation } from "../types/citation.type";
|
|
2
|
+
import { AudioCitation, FileCitation, GeneratedCodeCitation, GptCitation, ImageCitation, RcaCitation, ReadFileCitation, TextCitation, WebCitation } from "../types/citation.type";
|
|
3
3
|
import { ReadFileCitationColors, ReadFileCitationEditorConfig, ReadFileCitationFileCallback } from "../components/citations/readfile-citation/types";
|
|
4
4
|
import { CodeLinkConfig } from "../components/citations/appmod-citation/types";
|
|
5
5
|
export type UserStoryCitations = {
|
|
@@ -12,6 +12,7 @@ export type UserStoryCitations = {
|
|
|
12
12
|
web_citations?: WebCitation[];
|
|
13
13
|
code_generated?: GeneratedCodeCitation[];
|
|
14
14
|
readfile_citations?: ReadFileCitation[];
|
|
15
|
+
gpt_citations?: GptCitation[];
|
|
15
16
|
};
|
|
16
17
|
export interface ImageCitationsForFile {
|
|
17
18
|
[key: string]: FileImageData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/citation.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAE/E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC,gBAAgB,CAAC,EAAE,YAAY,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACzC,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"citation.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/interfaces/citation.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAE/E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC,gBAAgB,CAAC,EAAE,YAAY,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACzC,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACxC,aAAa,CAAC,EAAE,WAAW,EAAG,CAAC;CAChC,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE;QACP,cAAc,CAAC,EAAE,cAAc,CAAC;QAChC,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,YAAY,CAAC,EAAE,4BAA4B,CAAC;QAC5C,YAAY,CAAC,EAAE,4BAA4B,CAAC;QAC5C,YAAY,CAAC,EAAE,sBAAsB,CAAC;KACvC,CAAC;CACH"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import { ExpandedOLCustomStyles } from "../types/aiReasoning.type";
|
|
2
|
+
import { AiReasoningCitationStyles, ExpandedOLCustomStyles, UserStoryIcons } from "../types/aiReasoning.type";
|
|
3
|
+
import { UserStoryCitations } from "../../..";
|
|
3
4
|
interface ExpandableOlProps {
|
|
4
5
|
children: ReactNode;
|
|
5
6
|
onProceed?: () => void;
|
|
6
7
|
isProceedDisabled?: boolean;
|
|
7
8
|
defaultVisibleItems?: number;
|
|
8
9
|
customStyles?: ExpandedOLCustomStyles;
|
|
10
|
+
citationStyles?: AiReasoningCitationStyles;
|
|
11
|
+
customIcons?: UserStoryIcons;
|
|
12
|
+
aiReasoningCitation?: UserStoryCitations;
|
|
9
13
|
}
|
|
10
|
-
declare const ExpandableOl: ({ children, onProceed, isProceedDisabled, defaultVisibleItems, customStyles }: ExpandableOlProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const ExpandableOl: ({ children, onProceed, isProceedDisabled, defaultVisibleItems, customStyles, citationStyles, customIcons }: ExpandableOlProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
15
|
export default ExpandableOl;
|
|
12
16
|
//# sourceMappingURL=ExpandableOl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandableOl.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/ExpandableOl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoD,SAAS,
|
|
1
|
+
{"version":3,"file":"ExpandableOl.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/ExpandableOl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoD,SAAS,EAAwB,MAAM,OAAO,CAAC;AAG1G,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,UAAU,iBAAiB;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,cAAc,CAAC,EAAE,yBAAyB,CAAC;IAC3C,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,mBAAmB,CAAC,EAAE,kBAAkB,CAAC;CAC1C;AAED,QAAA,MAAM,YAAY,+GASf,iBAAiB,4CA2InB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AiReasoningCitationStyles, MarkdownCustomStyles, UserStoryIcons } from "../types/aiReasoning.type";
|
|
3
|
+
declare const ReqAiCitationRenderer: ({ href, panelRef, children, customStyles, citationStyles, customIcons, }: {
|
|
4
|
+
href: string;
|
|
5
|
+
panelRef?: React.RefObject<any> | undefined;
|
|
6
|
+
children: any;
|
|
7
|
+
customStyles?: MarkdownCustomStyles | undefined;
|
|
8
|
+
citationStyles?: AiReasoningCitationStyles | undefined;
|
|
9
|
+
customIcons?: UserStoryIcons | undefined;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
export default ReqAiCitationRenderer;
|
|
12
|
+
//# sourceMappingURL=ReqAiCitationRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReqAiCitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/shared/ReqAiCitationRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAkB5G,QAAA,MAAM,qBAAqB;UASnB,MAAM;;cAGF,GAAG;;;;MAIX,WAoNH,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -23,6 +23,14 @@ export type GeneratedCodeCitation = CommonCitation & {
|
|
|
23
23
|
relevance_score?: number;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
export type GptCitation = CommonCitation & {
|
|
27
|
+
customMetadata: {
|
|
28
|
+
type: "gpt_citation";
|
|
29
|
+
data_sources: string[];
|
|
30
|
+
training_data_title: string[];
|
|
31
|
+
paraphrase: string[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
26
34
|
export type TextCitation = CommonCitation & {
|
|
27
35
|
customMetadata: {
|
|
28
36
|
file_name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/citation.type.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,cAAc,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG;IACnD,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,gBAAgB,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG;IAC1C,cAAc,EAAE;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,sBAAsB,CAAC;QAC7B,QAAQ,EAAE,MAAM,CAAC;QACjB,gBAAgB,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,OAAO,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M,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,QAAQ,GAChB,YAAY,GACZ,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,GACX,WAAW,GACX,qBAAqB,GACrB,gBAAgB,CAAC;AAErB,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
1
|
+
{"version":3,"file":"citation.type.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/types/citation.type.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,cAAc,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG;IACnD,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,gBAAgB,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG;IACzC,cAAc,EAAE;QACd,IAAI,EAAE,cAAc,CAAA;QACpB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,mBAAmB,EAAE,MAAM,EAAE,CAAC;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