@e-llm-studio/citation 0.0.144 → 0.0.146
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/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js +1 -1
- package/dist/cjs/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js +1 -1
- package/dist/features/ScannedDocCitation/ScannedDocCitation.js +1 -1
- package/dist/types/src/RequirementAICitationTest.d.ts.map +1 -1
- package/dist/types/src/ScannedDocCitationTest.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts +20 -1
- package/dist/types/src/features/RequirementAiCitations/AiReasoning/types/interface.d.ts.map +1 -1
- package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts +0 -4
- package/dist/types/src/features/ScannedDocCitation/ScannedDocCitation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("react"),a=require("./CognitiveNonWebSearchReasoning.module.css.js");exports.default=function(t){var i=t.item,l=t.index,c=t.iconsConfig,r=t.headerTitle,d=void 0===r?"GPT - Gemini 2.5 Flash":r,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("react"),a=require("./CognitiveNonWebSearchReasoning.module.css.js");exports.default=function(t){var i=t.item,l=t.index,c=t.iconsConfig,r=t.headerTitle,d=void 0===r?"GPT - Gemini 2.5 Flash":r,u=null==c?void 0:c.ChevronDownIcon,o=null==c?void 0:c.ChevronUpIcon,h=null==c?void 0:c.MaximizeIcon,f=null==c?void 0:c.CloseIcon,g=s.useState(!1),_=g[0],m=g[1],x=s.useState(0),v=x[0],p=x[1],j=s.useRef(null),N=s.useRef(null),I=s.useRef(null),C=s.useRef([]),b=s.useRef([]),T=s.useMemo(function(){return i.dataSource?i.dataSource.replace(/\\n/g,"\n").replace(/\n+/g,"\n"):""},[i.dataSource]),H=s.useMemo(function(){var e=T.split(/(<highlight>[\s\S]*?<\/highlight>)/g)||[],n=e.filter(function(e){return e.startsWith("<highlight>")}).length,s=0;return{parts:e.map(function(e,n){var a=e.startsWith("<highlight>"),t={text:a?e.replace(/<\/?highlight>/g,""):e,isHighlight:a,highlightIndex:a?s:-1,idx:n};return a&&s++,t}),totalHighlights:n}},[T]),S=H.parts,k=H.totalHighlights,L=function(e,n){void 0===n&&(n=!1);var s=n?b.current[e]:C.current[e],a=n?N.current:j.current;s&&a&&s.scrollIntoView({behavior:"smooth",block:"center"})},B=function(e){if(void 0===e&&(e=!1),k){var n=v>0?v-1:k-1;p(n),setTimeout(function(){return L(n,e)},50)}},R=function(e){if(void 0===e&&(e=!1),k){var n=v<k-1?v+1:0;p(n),setTimeout(function(){return L(n,e)},50)}};s.useEffect(function(){C.current=C.current.slice(0,k),b.current=b.current.slice(0,k)},[k]),s.useEffect(function(){var e;return _&&k>0&&(p(0),e=setTimeout(function(){return L(0)},50)),function(){e&&clearTimeout(e)}},[_,k]);var D=function(s){return s.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(s,t){return s.startsWith("**")&&s.endsWith("**")||s.startsWith("__")&&s.endsWith("__")?n.jsx("strong",e.__assign({className:a.default.boldText},{children:s.slice(2,-2)}),t):s})},W=s.useMemo(function(){var n=[],s=[];return S.forEach(function(a){var t=a.text,i=a.isHighlight,l=a.highlightIndex;t.split("\n").forEach(function(a,t){t>0&&((s.length>0||n.length>0)&&n.push({segments:e.__spreadArray([],s,!0),isListItem:!1,isHeader:!1,indent:"",content:""}),s=[]),a&&s.push({text:a,isHighlight:i,highlightIndex:l})})}),s.length>0&&n.push({segments:e.__spreadArray([],s,!0),isListItem:!1,isHeader:!1,indent:"",content:""}),n.map(function(n){var s=n.segments.map(function(e){return e.text}).join(""),a=s.match(/^(\s*)(-|\*|\d+\.)\s+(.*)$/),t=s.match(/^(Title|Description|Training-basis):\s*(.*)$/i);return e.__assign(e.__assign({},n),{isListItem:!!a,isHeader:!!t,indent:(null==a?void 0:a[1])||"",content:(null==a?void 0:a[3])||s})})},[S]),y=function(s){void 0===s&&(s=!1);var t=0;return W.map(function(i,l){i.isHeader&&(t=0),i.isListItem&&(t+=1);var c=function(){return i.segments.map(function(t,l){var c=t.isHighlight&&t.highlightIndex===v,r=t.text;return i.isListItem&&0===l&&(r=t.text.replace(/^(\s*)(-|\*|\d+\.)\s+/,"")),t.isHighlight?n.jsx("span",e.__assign({ref:function(e){e&&(s?b.current[t.highlightIndex]=e:C.current[t.highlightIndex]=e)},className:"".concat(a.default.highlight).concat(c?" ".concat(a.default.highlightActive):"")},{children:D(r)}),l):n.jsx("span",{children:D(r)},l)})};return i.isHeader?n.jsx("span",e.__assign({className:a.default.headerLine},{children:c()}),l):i.isListItem?n.jsxs("span",e.__assign({className:a.default.listItemLine,style:{paddingLeft:i.indent?"1rem":"0"}},{children:[n.jsxs("span",e.__assign({className:a.default.listCounter},{children:[t,"."]})),n.jsx("span",{children:c()})]}),l):n.jsx("span",e.__assign({className:a.default.blockLine},{children:c()}),l)})};return n.jsxs("div",e.__assign({className:a.default.container},{children:[n.jsxs("div",e.__assign({className:a.default.itemRow},{children:["number"==typeof l&&n.jsxs("span",e.__assign({className:a.default.indexNumber},{children:[l+1,"."]})),n.jsxs("div",e.__assign({className:a.default.textContent},{children:[n.jsx("span",{children:null==i?void 0:i.text}),(null==i?void 0:i.paraphrase)&&n.jsxs("button",e.__assign({type:"button",onClick:function(){return m(!_)},className:a.default.paraphraseButton},{children:[n.jsxs("span",e.__assign({className:a.default.paraphraseText},{children:[n.jsx("span",e.__assign({className:a.default.paraphraseStar},{children:"✦"})),i.paraphrase]})),u&&n.jsx(u,{className:"".concat(a.default.chevronIcon).concat(_?" ".concat(a.default.chevronIconRotated):"")})]}))]}))]})),_&&n.jsxs("div",e.__assign({className:a.default.expandedContainer},{children:[n.jsxs("div",e.__assign({className:a.default.expandedHeader},{children:[n.jsx("span",e.__assign({className:a.default.headerTitle},{children:d})),n.jsxs("div",e.__assign({className:a.default.headerActions},{children:[k>1&&n.jsxs("div",e.__assign({className:a.default.navigationContainer},{children:[o&&n.jsx("button",e.__assign({onClick:function(){return B(!1)},className:a.default.navButton},{children:n.jsx(o,{className:a.default.navIcon})})),n.jsxs("span",e.__assign({className:a.default.navCounter},{children:[v+1,"/",k]})),u&&n.jsx("button",e.__assign({onClick:function(){return R(!1)},className:a.default.navButton},{children:n.jsx(u,{className:a.default.navIcon})}))]})),null!=(null==i?void 0:i.confidence_score)&&n.jsxs("span",e.__assign({className:a.default.confidenceBadge},{children:[n.jsx("span",e.__assign({className:a.default.confidenceStar},{children:"✦"})),n.jsxs("span",e.__assign({className:a.default.confidenceScore},{children:[null==i?void 0:i.confidence_score,"%"]}))]})),h&&n.jsx("button",e.__assign({onClick:function(){var e;null===(e=I.current)||void 0===e||e.showModal()},className:a.default.maximizeButton,title:"View fullscreen"},{children:n.jsx(h,{className:a.default.maximizeIcon})}))]}))]})),n.jsx("div",e.__assign({ref:j,className:a.default.contentArea},{children:n.jsx("div",e.__assign({className:a.default.contentInner},{children:y(!1)}))})),i.trainingDataTitle&&n.jsx("div",e.__assign({className:a.default.footer},{children:n.jsx("span",e.__assign({className:a.default.trainingTitle},{children:i.trainingDataTitle}))}))]})),n.jsx("dialog",e.__assign({ref:I,className:a.default.modalDialog,onClick:function(e){var n;e.target===I.current&&(null===(n=I.current)||void 0===n||n.close())}},{children:n.jsxs("div",e.__assign({className:a.default.modalContainer},{children:[n.jsxs("div",e.__assign({className:a.default.modalHeader},{children:[n.jsx("span",e.__assign({className:a.default.modalHeaderTitle},{children:d})),n.jsxs("div",e.__assign({className:a.default.modalHeaderActions},{children:[k>1&&n.jsxs("div",e.__assign({className:a.default.modalNavContainer},{children:[o&&n.jsx("button",e.__assign({onClick:function(){return B(!0)},className:a.default.modalNavButton},{children:n.jsx(o,{className:a.default.navIcon})})),n.jsxs("span",e.__assign({className:a.default.navCounter},{children:[v+1,"/",k]})),u&&n.jsx("button",e.__assign({onClick:function(){return R(!0)},className:a.default.modalNavButton},{children:n.jsx(u,{className:a.default.navIcon})}))]})),null!=(null==i?void 0:i.confidence_score)&&n.jsxs("span",e.__assign({className:a.default.confidenceBadge},{children:[n.jsx("span",e.__assign({className:a.default.confidenceStar},{children:"✦"})),n.jsxs("span",e.__assign({className:a.default.confidenceScore},{children:[null==i?void 0:i.confidence_score,"%"]}))]})),f&&n.jsx("button",e.__assign({onClick:function(){var e;null===(e=I.current)||void 0===e||e.close()},className:a.default.closeButton,title:"Close"},{children:n.jsx(f,{className:a.default.closeIcon})}))]}))]})),n.jsx("div",e.__assign({ref:N,className:a.default.modalContent},{children:n.jsx("div",e.__assign({className:a.default.modalContentInner},{children:y(!0)}))})),i.trainingDataTitle&&n.jsx("div",e.__assign({className:a.default.modalFooter},{children:n.jsx("span",e.__assign({className:a.default.trainingTitle},{children:i.trainingDataTitle}))}))]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=CognitiveInternalgptReasoningComponent.js.map
|
package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),a=require("rehype-raw"),o=require("./AiReasonMarkdownWrapper.module.css.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("react-markdown"),a=require("rehype-raw"),o=require("./AiReasonMarkdownWrapper.module.css.js"),l=require("./citationRenderers/ImageCitation.js"),s=require("./citationRenderers/FileCitation.js"),r=require("./citationRenderers/WebCitationWithImage.js"),c=require("../../../Bookemon/BookemonCitationLayer.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(t),_=d(a);exports.AiReasonMarkdownWrapper=function(t){var a=t.message,d=t.gap,p=t.setOpenCitationType,f=t.setOpenCitationDetails,v=t.citationsList,m=t.projectDetails,h=t.citationIconConfig,g=t.setSelectedIdFromReason;t.isCustomComponent;var x=t.relevance_score,j=t.CustomComponentIcon,y=i.useRef(null),b=function(e,n){return e<100?"The relevance score is ".concat(e,"% because:\n").concat(n):n},C=i.useMemo(function(){return{h1:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h1",e.__assign({className:o.default.h1},{children:t.children}))},h2:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h2",e.__assign({className:o.default.h2},{children:t.children}))},h3:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("h3",e.__assign({className:o.default.h3},{children:t.children}))},b:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("b",e.__assign({className:o.default.bold},{children:t.children}))},p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{className:o.default.paragraph},{children:t.children}))},ol:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ol",e.__assign({className:o.default.orderedList},{children:t.children}))},ul:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("ul",e.__assign({className:o.default.unorderedList},{children:t.children}))},a:function(t){var a,o,d,u,_,m,x,y,b,C;t.inline;var k=t.children;t.node;var M=e.__rest(t,["inline","children","node"]);if(!M.href)return n.jsx(n.Fragment,{children:k});var I="".concat(null==M?void 0:M.href),N=null===(a=I.split("$"))||void 0===a?void 0:a[0],T=null===(o=I.split("$"))||void 0===o?void 0:o[1],q=("appmode_citation"===N?(null==v?void 0:v.appmod_citations)||[]:"image_citation"===N?(null==v?void 0:v.image_citations)||[]:"audio_citation"===N?(null==v?void 0:v.audio_citations)||[]:"document_citation"===N?(null==v?void 0:v.file_citations)||[]:"rca_citation"===N?(null==v?void 0:v.rca_citations)||[]:"web_citation"===N?(null==v?void 0:v.web_citations)||[]:"bookemon_citation"===N?(null==v?void 0:v.bookemon_citations)||[]:"custom_citations"===N?(null==v?void 0:v.custom_citations)||[]:"scanned_doc_citation"===N&&(null==v?void 0:v.scanned_doc_citations)||[]).find(function(e){return e.citation_number===T});if("image_citation"===(null==q?void 0:q.customMetadata.type))return n.jsx(i.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(l.default,{title:"".concat(k),citation:q,setOpenCitationType:p,setOpenCitationDetails:f,citationIcon:null==h?void 0:h.imageIcon})}));if("book_citation_doc"===(null===(d=null==q?void 0:q.customMetadata)||void 0===d?void 0:d.type)||"book_citation_pdf"===(null==q?void 0:q.customMetadata.type))return n.jsx(i.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(s.default,{title:"".concat(k),citation:q,setOpenCitationType:p,setOpenCitationDetails:f,citationIcon:null==h?void 0:h.fileIcon})}));if("web_citation"===(null===(u=null==q?void 0:q.customMetadata)||void 0===u?void 0:u.type)){if(null===(_=q.customMetadata)||void 0===_?void 0:_.screenshot_url)return n.jsx(r.default,{title:k,citation:q,setOpenCitationDetails:f,setOpenCitationType:p,citationIcon:null==h?void 0:h.webIcon})}else{if("bookemon_citation"===(null===(m=null==q?void 0:q.customMetadata)||void 0===m?void 0:m.type))return n.jsx(i.Suspense,e.__assign({fallback:n.jsx(n.Fragment,{})},{children:n.jsx(c.default,{title:k,bookemonPayload:e.__assign(e.__assign({},q.customMetadata.bookemonPayload),{highlightTerms:(null===(x=q.customMetadata)||void 0===x?void 0:x.highlighted_text)?[null===(y=q.customMetadata)||void 0===y?void 0:y.highlighted_text]:q.customMetadata.bookemonPayload.highlightTerms})})}));if("custom_citations"===(null===(b=null==q?void 0:q.customMetadata)||void 0===b?void 0:b.type))return n.jsxs("a",e.__assign({style:{textDecoration:"none",color:"#526eff",display:"inline-flex",alignItems:"center",gap:"4px"},href:M.href.startsWith("javascript:")?"#":M.href,onClick:function(e){e.preventDefault(),null==g||g(M.href),null==p||p("custom"),null==f||f(q)}},{children:[k,j&&n.jsx(j,{})]}));if("scanned_doc_citation"===(null===(C=null==q?void 0:q.customMetadata)||void 0===C?void 0:C.type))return n.jsx("a",e.__assign({style:{textDecoration:"none",color:"#526eff",display:"inline-flex",alignItems:"center",gap:"4px"},href:"#",onClick:function(e){var n;e.preventDefault(),null==p||p("scanned_doc"),null==f||f({citation:q,allScannedDocCitations:null!==(n=v.scanned_doc_citations)&&void 0!==n?n:[]})}},{children:k}))}return n.jsx(n.Fragment,{})},code:function(i){i.inline;var t=i.children,a=i.className;return/language-(\w+)/.exec(a||"")||(null==a?void 0:a.includes("language-"))?n.jsx("div",{children:n.jsx("code",e.__assign({className:o.default.blockCode},{children:t}))}):n.jsx("code",e.__assign({className:o.default.inlineCode},{children:t}))}}},[m,v]);return n.jsxs("div",e.__assign({ref:y,className:o.default.wrapper},{children:[null==a?void 0:a.map(function(i,t){var a,l;return n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:2}},{children:[n.jsxs("span",e.__assign({style:{fontWeight:400,color:null!==(l=null===(a=o.default.paragraph)||void 0===a?void 0:a.color)&&void 0!==l?l:"black",marginTop:"2px",fontSize:"0.9rem"}},{children:[t+1,"."]})),n.jsx(u.default,e.__assign({components:C,rehypePlugins:[_.default]},{children:i}))]}),t)}),d&&d.map(function(i,t){var a,l;return n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:"16px"}},{children:[n.jsxs("span",e.__assign({style:{fontWeight:400,color:null!==(l=null===(a=o.default.paragraph)||void 0===a?void 0:a.color)&&void 0!==l?l:"black",marginTop:"2px",fontSize:"0.9rem"}},{children:[t+1,"."]})),n.jsx("div",{children:n.jsx("p",e.__assign({className:o.default.paragraph},{children:b(x||0,i)}))})]}),t)})]}))};
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),e=require("../../FileCitation/FileCitationContent.js"),o=require("../../ImageCitation/ImageCitationContent.js"),a=require("../../WebCitation/WebCitationWithImageContent.js"),n=require("./icons/CloseIcon.js"),l=require("./AiReasoningCitationPreview.module.css.js"),c=require("../../VideoCitation/VideoCitationContent.js");exports.default=function(
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),i=require("react/jsx-runtime"),e=require("../../FileCitation/FileCitationContent.js"),o=require("../../ImageCitation/ImageCitationContent.js"),a=require("../../WebCitation/WebCitationWithImageContent.js"),n=require("./icons/CloseIcon.js"),l=require("./AiReasoningCitationPreview.module.css.js"),c=require("../../VideoCitation/VideoCitationContent.js"),s=require("../../../ScannedDocCitation/ScannedDocCitation.js");exports.default=function(d){var u,r,v,C,m,g,f,_,h,p,M,j,y,x=d.openCitationType,b=d.openCitationDetails,I=d.handleCloseCitationPreview,S=d.cachingConfig,P=d.styles,w=d.citationStyles,q=d.renderCustomComponent,D=d.selectedIdFromReason;return d.isCustomComponent,i.jsx("div",t.__assign({className:l.default.container,style:null==P?void 0:P.container},{children:"file"===x?i.jsx(e.default,{title:"book_citation_doc"===b.citation.customMetadata.type||"book_citation_pdf"===b.citation.customMetadata.type?"".concat(null===(u=b.citation.customMetadata)||void 0===u?void 0:u.file_name):"",gsUtilPath:"book_citation_doc"===b.citation.customMetadata.type||"book_citation_pdf"===b.citation.customMetadata.type?(null===(r=b.citation.customMetadata)||void 0===r?void 0:r.gcs_upload_url)||(null===(v=b.citation.customMetadata)||void 0===v?void 0:v.highlighted_pdf_gsutil_url):"",relevanceScore:null===(C=b.citation.customMetadata)||void 0===C?void 0:C.relevance_score,cachingConfig:S,closeCitationConfig:{handleCloseCitationPreview:I,CloseIcon:function(){return i.jsx(n.default,{})}},styles:null==w?void 0:w.fileCitationStyles}):"image"===x?i.jsx(o.default,{gsUtilPath:"image_citation"===b.citation.customMetadata.type?b.citation.customMetadata.gs_util_url||b.citation.customMetadata.highlighted_image_gsutil_url:"",relevanceScore:null===(m=b.citation.customMetadata)||void 0===m?void 0:m.relevance_score,cachingConfig:S,closeCitationConfig:{handleCloseCitationPreview:I,CloseIcon:function(){return i.jsx(n.default,{})}},styles:null==w?void 0:w.imageCitationStyles}):"video"===x?i.jsx(c.default,{videoUrl:"video_citation"===b.citation.customMetadata.type?b.citation.customMetadata.video_url:"",gsUtilPath:"video_citation"===b.citation.customMetadata.type?b.citation.customMetadata.gs_util_url||b.citation.customMetadata.video_gsutil_url:"",citationTitle:(null===(g=b.citation.customMetadata)||void 0===g?void 0:g.file_name)||(null===(f=b.citation.customMetadata)||void 0===f?void 0:f.title)||"Video Reference",relevanceScore:null===(_=b.citation.customMetadata)||void 0===_?void 0:_.relevance_score,cachingConfig:S,closeCitationConfig:{handleCloseCitationPreview:I,CloseIcon:function(){return i.jsx(n.default,{})}},playerConfig:{controls:!0,playing:!1,loop:!1,muted:!1,volume:.8,width:"100%",height:"400px"},styles:null==w?void 0:w.videoCitationStyles}):"web"===x?i.jsx(a.default,{gsUtilPath:(null===(h=b.citation.customMetadata)||void 0===h?void 0:h.screenshot_url)||"",relevanceScore:(null===(p=b.citation.customMetadata)||void 0===p?void 0:p.relevance_score)||0,closeCitationConfig:{handleCloseCitationPreview:I,CloseIcon:function(){return i.jsx(n.default,{})}},url:(null===(M=b.citation.customMetadata)||void 0===M?void 0:M.link)||"",label:null==b?void 0:b.title,cachingConfig:S,visitIcon:function(){return i.jsx(i.Fragment,{})},PreviewDialogCloseIcon:function(){return i.jsx(n.default,{})},styles:null==w?void 0:w.webCitationStyles}):"scanned_doc"===x?i.jsx(s.default,{images:(null!==(j=b.allScannedDocCitations)&&void 0!==j?j:[b.citation]).map(function(t){return t.customMetadata.gs_url}),highlights:(null!==(y=b.allScannedDocCitations)&&void 0!==y?y:[b.citation]).flatMap(function(t,i){return t.customMetadata.highlighted_coordinates.map(function(t){return{pageIndex:i,bboxes:[t]}})})}):"custom"===x?i.jsx("div",t.__assign({className:l.default.container,style:null==P?void 0:P.container},{children:q&&(null==q?void 0:q({close:I,selectedIdFromReason:D}))})):i.jsx(i.Fragment,{})}))};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitationPreview.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),n=require("react"),t=require("lucide-react");exports.default=function(r){var o=r.images,s=r.highlights,a=r.highlightColor,l=void 0===a?"rgba(255, 220, 0, 0.15)":a,d=r.highlightActiveColor,c=void 0===d?"rgba(255, 220, 0, 0.35)":d,x=r.highlightBorderColor,u=void 0===x?"rgba(200, 160, 0, 0.4)":x,g=r.height,p=void 0===g?"700px":g,h=s.flatMap(function(e,i){return e.bboxes.map(function(n,t){return{bbox:n,pageIndex:e.pageIndex,key:"".concat(i,"-").concat(t)}})}).length,b=n.useState(0),f=b[0],_=b[1],y=n.useState(!1),v=y[0],m=y[1],j=n.useRef(null),k=n.useRef(null),w=n.useRef([]),C=n.useCallback(function(e,i){void 0===i&&(i=!1);var n=Math.max(0,Math.min(h-1,e));_(n);var t=i?k.current:j.current,r=w.current[n];if(t&&r){var o=t.getBoundingClientRect().top,s=r.getBoundingClientRect().top-o+t.scrollTop-t.clientHeight/2+r.clientHeight/2;t.scrollTo({top:s,behavior:"smooth"})}},[h]),z=function(n){return void 0===n&&(n=!1),h>0&&i.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:i.jsxs("div",e.__assign({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"4px"}},{children:[i.jsxs("span",e.__assign({style:{fontSize:"12px",color:"#888"}},{children:[f+1," / ",h]})),i.jsx("button",e.__assign({onClick:function(){return C(f-1,n)},disabled:f<=0,style:{padding:"2px 8px",fontSize:"12px",cursor:f<=0?"not-allowed":"pointer",opacity:f<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↑"})),i.jsx("button",e.__assign({onClick:function(){return C(f+1,n)},disabled:f>=h-1,style:{padding:"2px 8px",fontSize:"12px",cursor:f>=h-1?"not-allowed":"pointer",opacity:f>=h-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↓"})),i.jsx("span",{style:{width:"1px",height:"16px",background:"#e2e8f0",margin:"0 2px"}}),n?i.jsx(t.X,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return m(!1)}}):i.jsx(t.Maximize2,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return m(!0)}})]}))}))},I=function(){var n=-1;return o.map(function(t,r){var o=s.filter(function(e){return e.pageIndex===r}).flatMap(function(e,i){return e.bboxes.map(function(e,t){return n++,{bbox:e,key:"".concat(r,"-").concat(i,"-").concat(t),globalIndex:n}})});return i.jsxs("div",{children:[i.jsxs("div",e.__assign({style:{fontSize:"12px",color:"#888",marginBottom:"4px"}},{children:["Page ",r+1]})),i.jsx("div",e.__assign({style:{position:"relative",width:"100%",paddingTop:"129%",flexShrink:0}},{children:i.jsxs("div",e.__assign({style:{position:"absolute",inset:0}},{children:[i.jsx("img",{src:t,alt:"Page ".concat(r+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1}),o.map(function(e){var n=e.bbox,t=e.key,r=e.globalIndex,o=f===r;return i.jsx("div",{ref:function(e){w.current[r]=e},style:{position:"absolute",left:"".concat(100*n.xmin,"%"),top:"".concat(100*n.ymin,"%"),width:"".concat(100*(n.xmax-n.xmin),"%"),height:"".concat(100*(n.ymax-n.ymin),"%"),background:o?c:l,border:o?"1.5px solid ".concat(u):"none",borderRadius:"2px",zIndex:2}},t)})]}))}))]},r)})},R={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",display:"flex",flexDirection:"column",gap:"8px",boxSizing:"border-box"};return i.jsxs(i.Fragment,{children:[i.jsxs("div",e.__assign({style:{width:"100%",maxWidth:"600px",fontFamily:"inherit"}},{children:[z(!1),i.jsx("div",e.__assign({ref:j,style:e.__assign(e.__assign({},R),{height:p})},{children:I()}))]})),v&&i.jsx("div",e.__assign({style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"}},{children:i.jsxs("div",e.__assign({style:{background:"white",borderRadius:"8px",padding:"16px",width:"90vw",maxWidth:"800px",height:"90vh",display:"flex",flexDirection:"column"}},{children:[z(!0),i.jsx("div",e.__assign({ref:k,style:e.__assign(e.__assign({},R),{flex:1})},{children:I()}))]}))}))]})};
|
|
2
2
|
//# sourceMappingURL=ScannedDocCitation.js.map
|
package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__spreadArray as n,__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as a,useRef as c,useMemo as r,useEffect as l}from"react";import s from"./CognitiveNonWebSearchReasoning.module.css.js";var o=function(o){var d=o.item,h=o.index,u=o.iconsConfig,m=o.headerTitle,v=void 0===m?"GPT - Gemini 2.5 Flash":m,g=null==u?void 0:u.ChevronDownIcon,f=null==u?void 0:u.ChevronUpIcon,p=null==u?void 0:u.MaximizeIcon,N=null==u?void 0:u.CloseIcon,I=a(!1),x=I[0],C=I[1],T=a(0),b=T[0],H=T[1],_=c(null),k=c(null),L=c(null),S=c([]),B=r(function(){return d.dataSource?d.dataSource.replace(/\\n/g,"\n").replace(/\n+/g,"\n"):""},[d.dataSource]),
|
|
1
|
+
import{__spreadArray as n,__assign as e}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as a,useRef as c,useMemo as r,useEffect as l}from"react";import s from"./CognitiveNonWebSearchReasoning.module.css.js";var o=function(o){var d=o.item,h=o.index,u=o.iconsConfig,m=o.headerTitle,v=void 0===m?"GPT - Gemini 2.5 Flash":m,g=null==u?void 0:u.ChevronDownIcon,f=null==u?void 0:u.ChevronUpIcon,p=null==u?void 0:u.MaximizeIcon,N=null==u?void 0:u.CloseIcon,I=a(!1),x=I[0],C=I[1],T=a(0),b=T[0],H=T[1],_=c(null),k=c(null),L=c(null),S=c([]),B=c([]),D=r(function(){return d.dataSource?d.dataSource.replace(/\\n/g,"\n").replace(/\n+/g,"\n"):""},[d.dataSource]),W=r(function(){var n=D.split(/(<highlight>[\s\S]*?<\/highlight>)/g)||[],e=n.filter(function(n){return n.startsWith("<highlight>")}).length,i=0;return{parts:n.map(function(n,e){var t=n.startsWith("<highlight>"),a={text:t?n.replace(/<\/?highlight>/g,""):n,isHighlight:t,highlightIndex:t?i:-1,idx:e};return t&&i++,a}),totalHighlights:e}},[D]),w=W.parts,A=W.totalHighlights,j=function(n,e){void 0===e&&(e=!1);var i=e?B.current[n]:S.current[n],t=e?k.current:_.current;i&&t&&i.scrollIntoView({behavior:"smooth",block:"center"})},y=function(n){if(void 0===n&&(n=!1),A){var e=b>0?b-1:A-1;H(e),setTimeout(function(){return j(e,n)},50)}},z=function(n){if(void 0===n&&(n=!1),A){var e=b<A-1?b+1:0;H(e),setTimeout(function(){return j(e,n)},50)}};l(function(){S.current=S.current.slice(0,A),B.current=B.current.slice(0,A)},[A]),l(function(){var n;return x&&A>0&&(H(0),n=setTimeout(function(){return j(0)},50)),function(){n&&clearTimeout(n)}},[x,A]);var R=function(n){return n.split(/(\*\*.*?\*\*|__.*?__)/g).map(function(n,i){return n.startsWith("**")&&n.endsWith("**")||n.startsWith("__")&&n.endsWith("__")?t("strong",e({className:s.boldText},{children:n.slice(2,-2)}),i):n})},E=r(function(){var i=[],t=[];return w.forEach(function(e){var a=e.text,c=e.isHighlight,r=e.highlightIndex;a.split("\n").forEach(function(e,a){a>0&&((t.length>0||i.length>0)&&i.push({segments:n([],t,!0),isListItem:!1,isHeader:!1,indent:"",content:""}),t=[]),e&&t.push({text:e,isHighlight:c,highlightIndex:r})})}),t.length>0&&i.push({segments:n([],t,!0),isListItem:!1,isHeader:!1,indent:"",content:""}),i.map(function(n){var i=n.segments.map(function(n){return n.text}).join(""),t=i.match(/^(\s*)(-|\*|\d+\.)\s+(.*)$/),a=i.match(/^(Title|Description|Training-basis):\s*(.*)$/i);return e(e({},n),{isListItem:!!t,isHeader:!!a,indent:(null==t?void 0:t[1])||"",content:(null==t?void 0:t[3])||i})})},[w]),F=function(n){void 0===n&&(n=!1);var a=0;return E.map(function(c,r){c.isHeader&&(a=0),c.isListItem&&(a+=1);var l=function(){return c.segments.map(function(i,a){var r=i.isHighlight&&i.highlightIndex===b,l=i.text;return c.isListItem&&0===a&&(l=i.text.replace(/^(\s*)(-|\*|\d+\.)\s+/,"")),i.isHighlight?t("span",e({ref:function(e){e&&(n?B.current[i.highlightIndex]=e:S.current[i.highlightIndex]=e)},className:"".concat(s.highlight).concat(r?" ".concat(s.highlightActive):"")},{children:R(l)}),a):t("span",{children:R(l)},a)})};return c.isHeader?t("span",e({className:s.headerLine},{children:l()}),r):c.isListItem?i("span",e({className:s.listItemLine,style:{paddingLeft:c.indent?"1rem":"0"}},{children:[i("span",e({className:s.listCounter},{children:[a,"."]})),t("span",{children:l()})]}),r):t("span",e({className:s.blockLine},{children:l()}),r)})};return i("div",e({className:s.container},{children:[i("div",e({className:s.itemRow},{children:["number"==typeof h&&i("span",e({className:s.indexNumber},{children:[h+1,"."]})),i("div",e({className:s.textContent},{children:[t("span",{children:null==d?void 0:d.text}),(null==d?void 0:d.paraphrase)&&i("button",e({type:"button",onClick:function(){return C(!x)},className:s.paraphraseButton},{children:[i("span",e({className:s.paraphraseText},{children:[t("span",e({className:s.paraphraseStar},{children:"✦"})),d.paraphrase]})),g&&t(g,{className:"".concat(s.chevronIcon).concat(x?" ".concat(s.chevronIconRotated):"")})]}))]}))]})),x&&i("div",e({className:s.expandedContainer},{children:[i("div",e({className:s.expandedHeader},{children:[t("span",e({className:s.headerTitle},{children:v})),i("div",e({className:s.headerActions},{children:[A>1&&i("div",e({className:s.navigationContainer},{children:[f&&t("button",e({onClick:function(){return y(!1)},className:s.navButton},{children:t(f,{className:s.navIcon})})),i("span",e({className:s.navCounter},{children:[b+1,"/",A]})),g&&t("button",e({onClick:function(){return z(!1)},className:s.navButton},{children:t(g,{className:s.navIcon})}))]})),null!=(null==d?void 0:d.confidence_score)&&i("span",e({className:s.confidenceBadge},{children:[t("span",e({className:s.confidenceStar},{children:"✦"})),i("span",e({className:s.confidenceScore},{children:[null==d?void 0:d.confidence_score,"%"]}))]})),p&&t("button",e({onClick:function(){var n;null===(n=L.current)||void 0===n||n.showModal()},className:s.maximizeButton,title:"View fullscreen"},{children:t(p,{className:s.maximizeIcon})}))]}))]})),t("div",e({ref:_,className:s.contentArea},{children:t("div",e({className:s.contentInner},{children:F(!1)}))})),d.trainingDataTitle&&t("div",e({className:s.footer},{children:t("span",e({className:s.trainingTitle},{children:d.trainingDataTitle}))}))]})),t("dialog",e({ref:L,className:s.modalDialog,onClick:function(n){var e;n.target===L.current&&(null===(e=L.current)||void 0===e||e.close())}},{children:i("div",e({className:s.modalContainer},{children:[i("div",e({className:s.modalHeader},{children:[t("span",e({className:s.modalHeaderTitle},{children:v})),i("div",e({className:s.modalHeaderActions},{children:[A>1&&i("div",e({className:s.modalNavContainer},{children:[f&&t("button",e({onClick:function(){return y(!0)},className:s.modalNavButton},{children:t(f,{className:s.navIcon})})),i("span",e({className:s.navCounter},{children:[b+1,"/",A]})),g&&t("button",e({onClick:function(){return z(!0)},className:s.modalNavButton},{children:t(g,{className:s.navIcon})}))]})),null!=(null==d?void 0:d.confidence_score)&&i("span",e({className:s.confidenceBadge},{children:[t("span",e({className:s.confidenceStar},{children:"✦"})),i("span",e({className:s.confidenceScore},{children:[null==d?void 0:d.confidence_score,"%"]}))]})),N&&t("button",e({onClick:function(){var n;null===(n=L.current)||void 0===n||n.close()},className:s.closeButton,title:"Close"},{children:t(N,{className:s.closeIcon})}))]}))]})),t("div",e({ref:k,className:s.modalContent},{children:t("div",e({className:s.modalContentInner},{children:F(!0)}))})),d.trainingDataTitle&&t("div",e({className:s.modalFooter},{children:t("span",e({className:s.trainingTitle},{children:d.trainingDataTitle}))}))]}))}))]}))};export{o as default};
|
|
2
2
|
//# sourceMappingURL=CognitiveInternalgptReasoningComponent.js.map
|
package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as
|
|
1
|
+
import{__rest as n,__assign as i}from"tslib";import{jsx as t,Fragment as e,jsxs as o}from"react/jsx-runtime";import{useRef as a,useMemo as l,Suspense as r}from"react";import c from"react-markdown";import d from"rehype-raw";import s from"./AiReasonMarkdownWrapper.module.css.js";import u from"./citationRenderers/ImageCitation.js";import m from"./citationRenderers/FileCitation.js";import p from"./citationRenderers/WebCitationWithImage.js";import v from"../../../Bookemon/BookemonCitationLayer.js";var h=function(h){var f=h.message,g=h.gap,_=h.setOpenCitationType,y=h.setOpenCitationDetails,b=h.citationsList,C=h.projectDetails,k=h.citationIconConfig,x=h.setSelectedIdFromReason;h.isCustomComponent;var I=h.relevance_score,M=h.CustomComponentIcon,N=a(null),T=function(n,i){return n<100?"The relevance score is ".concat(n,"% because:\n").concat(i):i},D=l(function(){return{h1:function(e){e.node;var o=n(e,["node"]);return t("h1",i({className:s.h1},{children:o.children}))},h2:function(e){e.node;var o=n(e,["node"]);return t("h2",i({className:s.h2},{children:o.children}))},h3:function(e){e.node;var o=n(e,["node"]);return t("h3",i({className:s.h3},{children:o.children}))},b:function(e){e.node;var o=n(e,["node"]);return t("b",i({className:s.bold},{children:o.children}))},p:function(e){e.node;var o=n(e,["node"]);return t("p",i({},o,{className:s.paragraph},{children:o.children}))},ol:function(e){e.node;var o=n(e,["node"]);return t("ol",i({className:s.orderedList},{children:o.children}))},ul:function(e){e.node;var o=n(e,["node"]);return t("ul",i({className:s.unorderedList},{children:o.children}))},a:function(a){var l,c,d,s,h,f,g,C,I,N;a.inline;var T=a.children;a.node;var D=n(a,["inline","children","node"]);if(!D.href)return t(e,{children:T});var w="".concat(null==D?void 0:D.href),j=null===(l=w.split("$"))||void 0===l?void 0:l[0],O=null===(c=w.split("$"))||void 0===c?void 0:c[1],W=("appmode_citation"===j?(null==b?void 0:b.appmod_citations)||[]:"image_citation"===j?(null==b?void 0:b.image_citations)||[]:"audio_citation"===j?(null==b?void 0:b.audio_citations)||[]:"document_citation"===j?(null==b?void 0:b.file_citations)||[]:"rca_citation"===j?(null==b?void 0:b.rca_citations)||[]:"web_citation"===j?(null==b?void 0:b.web_citations)||[]:"bookemon_citation"===j?(null==b?void 0:b.bookemon_citations)||[]:"custom_citations"===j?(null==b?void 0:b.custom_citations)||[]:"scanned_doc_citation"===j&&(null==b?void 0:b.scanned_doc_citations)||[]).find(function(n){return n.citation_number===O});if("image_citation"===(null==W?void 0:W.customMetadata.type))return t(r,i({fallback:t(e,{})},{children:t(u,{title:"".concat(T),citation:W,setOpenCitationType:_,setOpenCitationDetails:y,citationIcon:null==k?void 0:k.imageIcon})}));if("book_citation_doc"===(null===(d=null==W?void 0:W.customMetadata)||void 0===d?void 0:d.type)||"book_citation_pdf"===(null==W?void 0:W.customMetadata.type))return t(r,i({fallback:t(e,{})},{children:t(m,{title:"".concat(T),citation:W,setOpenCitationType:_,setOpenCitationDetails:y,citationIcon:null==k?void 0:k.fileIcon})}));if("web_citation"===(null===(s=null==W?void 0:W.customMetadata)||void 0===s?void 0:s.type)){if(null===(h=W.customMetadata)||void 0===h?void 0:h.screenshot_url)return t(p,{title:T,citation:W,setOpenCitationDetails:y,setOpenCitationType:_,citationIcon:null==k?void 0:k.webIcon})}else{if("bookemon_citation"===(null===(f=null==W?void 0:W.customMetadata)||void 0===f?void 0:f.type))return t(r,i({fallback:t(e,{})},{children:t(v,{title:T,bookemonPayload:i(i({},W.customMetadata.bookemonPayload),{highlightTerms:(null===(g=W.customMetadata)||void 0===g?void 0:g.highlighted_text)?[null===(C=W.customMetadata)||void 0===C?void 0:C.highlighted_text]:W.customMetadata.bookemonPayload.highlightTerms})})}));if("custom_citations"===(null===(I=null==W?void 0:W.customMetadata)||void 0===I?void 0:I.type))return o("a",i({style:{textDecoration:"none",color:"#526eff",display:"inline-flex",alignItems:"center",gap:"4px"},href:D.href.startsWith("javascript:")?"#":D.href,onClick:function(n){n.preventDefault(),null==x||x(D.href),null==_||_("custom"),null==y||y(W)}},{children:[T,M&&t(M,{})]}));if("scanned_doc_citation"===(null===(N=null==W?void 0:W.customMetadata)||void 0===N?void 0:N.type))return t("a",i({style:{textDecoration:"none",color:"#526eff",display:"inline-flex",alignItems:"center",gap:"4px"},href:"#",onClick:function(n){var i;n.preventDefault(),null==_||_("scanned_doc"),null==y||y({citation:W,allScannedDocCitations:null!==(i=b.scanned_doc_citations)&&void 0!==i?i:[]})}},{children:T}))}return t(e,{})},code:function(n){n.inline;var e=n.children,o=n.className;return/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?t("div",{children:t("code",i({className:s.blockCode},{children:e}))}):t("code",i({className:s.inlineCode},{children:e}))}}},[C,b]);return o("div",i({ref:N,className:s.wrapper},{children:[null==f?void 0:f.map(function(n,e){var a,l;return o("div",i({style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:2}},{children:[o("span",i({style:{fontWeight:400,color:null!==(l=null===(a=s.paragraph)||void 0===a?void 0:a.color)&&void 0!==l?l:"black",marginTop:"2px",fontSize:"0.9rem"}},{children:[e+1,"."]})),t(c,i({components:D,rehypePlugins:[d]},{children:n}))]}),e)}),g&&g.map(function(n,e){var a,l;return o("div",i({style:{display:"flex",gap:"8px",alignItems:"flex-start",marginTop:"16px"}},{children:[o("span",i({style:{fontWeight:400,color:null!==(l=null===(a=s.paragraph)||void 0===a?void 0:a.color)&&void 0!==l?l:"black",marginTop:"2px",fontSize:"0.9rem"}},{children:[e+1,"."]})),t("div",{children:t("p",i({className:s.paragraph},{children:T(I||0,n)}))})]}),e)})]}))};export{h as AiReasonMarkdownWrapper};
|
|
2
2
|
//# sourceMappingURL=AiReasonMarkdownWrapper.js.map
|
package/dist/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import e from"../../FileCitation/FileCitationContent.js";import a from"../../ImageCitation/ImageCitationContent.js";import n from"../../WebCitation/WebCitationWithImageContent.js";import l from"./icons/CloseIcon.js";import c from"./AiReasoningCitationPreview.module.css.js";import s from"../../VideoCitation/VideoCitationContent.js";var
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as i,Fragment as o}from"react/jsx-runtime";import e from"../../FileCitation/FileCitationContent.js";import a from"../../ImageCitation/ImageCitationContent.js";import n from"../../WebCitation/WebCitationWithImageContent.js";import l from"./icons/CloseIcon.js";import c from"./AiReasoningCitationPreview.module.css.js";import s from"../../VideoCitation/VideoCitationContent.js";import d from"../../../ScannedDocCitation/ScannedDocCitation.js";var r=function(r){var u,m,v,C,g,f,_,p,h,M,y,I,S,b=r.openCitationType,P=r.openCitationDetails,w=r.handleCloseCitationPreview,j=r.cachingConfig,D=r.styles,k=r.citationStyles,x=r.renderCustomComponent,U=r.selectedIdFromReason;return r.isCustomComponent,i("div",t({className:c.container,style:null==D?void 0:D.container},{children:"file"===b?i(e,{title:"book_citation_doc"===P.citation.customMetadata.type||"book_citation_pdf"===P.citation.customMetadata.type?"".concat(null===(u=P.citation.customMetadata)||void 0===u?void 0:u.file_name):"",gsUtilPath:"book_citation_doc"===P.citation.customMetadata.type||"book_citation_pdf"===P.citation.customMetadata.type?(null===(m=P.citation.customMetadata)||void 0===m?void 0:m.gcs_upload_url)||(null===(v=P.citation.customMetadata)||void 0===v?void 0:v.highlighted_pdf_gsutil_url):"",relevanceScore:null===(C=P.citation.customMetadata)||void 0===C?void 0:C.relevance_score,cachingConfig:j,closeCitationConfig:{handleCloseCitationPreview:w,CloseIcon:function(){return i(l,{})}},styles:null==k?void 0:k.fileCitationStyles}):"image"===b?i(a,{gsUtilPath:"image_citation"===P.citation.customMetadata.type?P.citation.customMetadata.gs_util_url||P.citation.customMetadata.highlighted_image_gsutil_url:"",relevanceScore:null===(g=P.citation.customMetadata)||void 0===g?void 0:g.relevance_score,cachingConfig:j,closeCitationConfig:{handleCloseCitationPreview:w,CloseIcon:function(){return i(l,{})}},styles:null==k?void 0:k.imageCitationStyles}):"video"===b?i(s,{videoUrl:"video_citation"===P.citation.customMetadata.type?P.citation.customMetadata.video_url:"",gsUtilPath:"video_citation"===P.citation.customMetadata.type?P.citation.customMetadata.gs_util_url||P.citation.customMetadata.video_gsutil_url:"",citationTitle:(null===(f=P.citation.customMetadata)||void 0===f?void 0:f.file_name)||(null===(_=P.citation.customMetadata)||void 0===_?void 0:_.title)||"Video Reference",relevanceScore:null===(p=P.citation.customMetadata)||void 0===p?void 0:p.relevance_score,cachingConfig:j,closeCitationConfig:{handleCloseCitationPreview:w,CloseIcon:function(){return i(l,{})}},playerConfig:{controls:!0,playing:!1,loop:!1,muted:!1,volume:.8,width:"100%",height:"400px"},styles:null==k?void 0:k.videoCitationStyles}):"web"===b?i(n,{gsUtilPath:(null===(h=P.citation.customMetadata)||void 0===h?void 0:h.screenshot_url)||"",relevanceScore:(null===(M=P.citation.customMetadata)||void 0===M?void 0:M.relevance_score)||0,closeCitationConfig:{handleCloseCitationPreview:w,CloseIcon:function(){return i(l,{})}},url:(null===(y=P.citation.customMetadata)||void 0===y?void 0:y.link)||"",label:null==P?void 0:P.title,cachingConfig:j,visitIcon:function(){return i(o,{})},PreviewDialogCloseIcon:function(){return i(l,{})},styles:null==k?void 0:k.webCitationStyles}):"scanned_doc"===b?i(d,{images:(null!==(I=P.allScannedDocCitations)&&void 0!==I?I:[P.citation]).map(function(t){return t.customMetadata.gs_url}),highlights:(null!==(S=P.allScannedDocCitations)&&void 0!==S?S:[P.citation]).flatMap(function(t,i){return t.customMetadata.highlighted_coordinates.map(function(t){return{pageIndex:i,bboxes:[t]}})})}):"custom"===b?i("div",t({className:c.container,style:null==D?void 0:D.container},{children:x&&(null==x?void 0:x({close:w,selectedIdFromReason:U}))})):i(o,{})}))};export{r as default};
|
|
2
2
|
//# sourceMappingURL=AiReasoningCitationPreview.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsxs as e,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as o,useRef as r,useCallback as
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as e,Fragment as t,jsx as n}from"react/jsx-runtime";import{useState as o,useRef as r,useCallback as l}from"react";import{X as d,Maximize2 as a}from"lucide-react";function c(c){var p=c.images,s=c.highlights,u=c.highlightColor,x=void 0===u?"rgba(255, 220, 0, 0.15)":u,h=c.highlightActiveColor,g=void 0===h?"rgba(255, 220, 0, 0.35)":h,f=c.highlightBorderColor,b=void 0===f?"rgba(200, 160, 0, 0.4)":f,m=c.height,y=void 0===m?"700px":m,v=s.flatMap(function(i,e){return i.bboxes.map(function(t,n){return{bbox:t,pageIndex:i.pageIndex,key:"".concat(e,"-").concat(n)}})}).length,k=o(0),w=k[0],C=k[1],I=o(!1),z=I[0],R=I[1],S=r(null),B=r(null),M=r([]),j=l(function(i,e){void 0===e&&(e=!1);var t=Math.max(0,Math.min(v-1,i));C(t);var n=e?B.current:S.current,o=M.current[t];if(n&&o){var r=n.getBoundingClientRect().top,l=o.getBoundingClientRect().top-r+n.scrollTop-n.clientHeight/2+o.clientHeight/2;n.scrollTo({top:l,behavior:"smooth"})}},[v]),T=function(t){return void 0===t&&(t=!1),v>0&&n("div",i({style:{display:"flex",alignItems:"center",marginBottom:"6px"}},{children:e("div",i({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"4px"}},{children:[e("span",i({style:{fontSize:"12px",color:"#888"}},{children:[w+1," / ",v]})),n("button",i({onClick:function(){return j(w-1,t)},disabled:w<=0,style:{padding:"2px 8px",fontSize:"12px",cursor:w<=0?"not-allowed":"pointer",opacity:w<=0?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↑"})),n("button",i({onClick:function(){return j(w+1,t)},disabled:w>=v-1,style:{padding:"2px 8px",fontSize:"12px",cursor:w>=v-1?"not-allowed":"pointer",opacity:w>=v-1?.4:1,border:"1px solid #ddd",borderRadius:"3px",background:"white"}},{children:"↓"})),n("span",{style:{width:"1px",height:"16px",background:"#e2e8f0",margin:"0 2px"}}),t?n(d,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return R(!1)}}):n(a,{size:16,color:"#64748b",style:{cursor:"pointer"},onClick:function(){return R(!0)}})]}))}))},D=function(){var t=-1;return p.map(function(o,r){var l=s.filter(function(i){return i.pageIndex===r}).flatMap(function(i,e){return i.bboxes.map(function(i,n){return t++,{bbox:i,key:"".concat(r,"-").concat(e,"-").concat(n),globalIndex:t}})});return e("div",{children:[e("div",i({style:{fontSize:"12px",color:"#888",marginBottom:"4px"}},{children:["Page ",r+1]})),n("div",i({style:{position:"relative",width:"100%",paddingTop:"129%",flexShrink:0}},{children:e("div",i({style:{position:"absolute",inset:0}},{children:[n("img",{src:o,alt:"Page ".concat(r+1),style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},draggable:!1}),l.map(function(i){var e=i.bbox,t=i.key,o=i.globalIndex,r=w===o;return n("div",{ref:function(i){M.current[o]=i},style:{position:"absolute",left:"".concat(100*e.xmin,"%"),top:"".concat(100*e.ymin,"%"),width:"".concat(100*(e.xmax-e.xmin),"%"),height:"".concat(100*(e.ymax-e.ymin),"%"),background:r?g:x,border:r?"1.5px solid ".concat(b):"none",borderRadius:"2px",zIndex:2}},t)})]}))}))]},r)})},F={overflowY:"auto",border:"1px solid #ddd",borderRadius:"4px",padding:"8px",display:"flex",flexDirection:"column",gap:"8px",boxSizing:"border-box"};return e(t,{children:[e("div",i({style:{width:"100%",maxWidth:"600px",fontFamily:"inherit"}},{children:[T(!1),n("div",i({ref:S,style:i(i({},F),{height:y})},{children:D()}))]})),z&&n("div",i({style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center"}},{children:e("div",i({style:{background:"white",borderRadius:"8px",padding:"16px",width:"90vw",maxWidth:"800px",height:"90vh",display:"flex",flexDirection:"column"}},{children:[T(!0),n("div",i({ref:B,style:i(i({},F),{flex:1})},{children:D()}))]}))}))]})}export{c as default};
|
|
2
2
|
//# sourceMappingURL=ScannedDocCitation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementAICitationTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAICitationTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequirementAICitationTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAICitationTest.tsx"],"names":[],"mappings":"AA0BA,QAAA,MAAM,yBAAyB,+CAyc9B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScannedDocCitationTest.d.ts","sourceRoot":"","sources":["../../../src/ScannedDocCitationTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScannedDocCitationTest.d.ts","sourceRoot":"","sources":["../../../src/ScannedDocCitationTest.tsx"],"names":[],"mappings":"AA2CA,MAAM,CAAC,OAAO,UAAU,sBAAsB,4CAS7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveInternalgptReasoningComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CognitiveInternalgptReasoningComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACpC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,0BAA0B,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6bjE,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveInternalgptReasoningTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CognitiveInternalgptReasoningTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningTest.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,wBAAwB,+CAwB7B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiReasonMarkdownWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/components/AiReasonMarkdownWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAA6B,MAAM,OAAO,CAAC;AAI5E,OAAO,EACL,SAAS,EACT,sBAAsB,EAGtB,eAAe,EAIhB,MAAM,oBAAoB,CAAC;AAS5B,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,mBAAmB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC;IACvE,sBAAsB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACvD,aAAa,EAAE,SAAS,CAAC;IACzB,cAAc,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACzC,kBAAkB,CAAC,EAAE;QACnB,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAC7B,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;KAC7B,CAAA;IACD,uBAAuB,CAAC,EAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACjE,iBAAiB,CAAC,EAAC,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAC,KAAK,CAAC,WAAW,CAAC;IACvC,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE;QAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;QACnB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtC,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,eAAe,CAAC,EAAC,MAAM,CAAC;CACzB;AAID,eAAO,MAAM,uBAAuB,uMAYjC,KAAK,
|
|
1
|
+
{"version":3,"file":"AiReasonMarkdownWrapper.d.ts","sourceR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version":3,"file":"AiReasoningCitationPreview.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAG5D,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AiReasoningCitationPreview.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/components/AiReasoningCitationPreview.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAG5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,0BAA0B;;;sBAaZ,sBAAsB;yBACnB,GAAG;gCACI,MAAM,IAAI;;qBAEvB,GAAG;2CACmB,MAAM,YAAY,MAAM,EAAE,KAAK,GAAG;8CAC/B,MAAM,KAAK,GAAG;;;eAG7C,MAAM,IAAI;;UAEb,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CA0RtB,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -7,7 +7,7 @@ export type TAIReasoning = {
|
|
|
7
7
|
reasonSource?: string;
|
|
8
8
|
gapSource?: string;
|
|
9
9
|
};
|
|
10
|
-
export type CitationSelectionState = "document" | "stormee" | "rca" | "video" | "image" | "file" | "searchwave" | "noCitation" | "web" | "custom";
|
|
10
|
+
export type CitationSelectionState = "document" | "stormee" | "rca" | "video" | "image" | "file" | "searchwave" | "noCitation" | "web" | "custom" | "scanned_doc";
|
|
11
11
|
export type Citations = {
|
|
12
12
|
image_citations?: TImageCitation[];
|
|
13
13
|
appmod_citations?: TTextCitation[];
|
|
@@ -19,6 +19,7 @@ export type Citations = {
|
|
|
19
19
|
code_generated?: TGeneratedCodeCitation[];
|
|
20
20
|
bookemon_citations?: BookemonCitation[];
|
|
21
21
|
custom_citations?: TCustomCitation[];
|
|
22
|
+
scanned_doc_citations?: TScannedDocCitation[];
|
|
22
23
|
};
|
|
23
24
|
export type TImageCitation = CommonCitation & {
|
|
24
25
|
customMetadata: {
|
|
@@ -99,6 +100,24 @@ export type TFileCitation = CommonCitation & {
|
|
|
99
100
|
gcs_upload_url: string;
|
|
100
101
|
};
|
|
101
102
|
};
|
|
103
|
+
export type TScannedDocCitation = CommonCitation & {
|
|
104
|
+
customMetadata: {
|
|
105
|
+
type: "scanned_doc_citation";
|
|
106
|
+
gs_url: string;
|
|
107
|
+
highlighted_coordinates: {
|
|
108
|
+
xmin: number;
|
|
109
|
+
ymin: number;
|
|
110
|
+
xmax: number;
|
|
111
|
+
ymax: number;
|
|
112
|
+
}[];
|
|
113
|
+
dimensions: {
|
|
114
|
+
unit: string;
|
|
115
|
+
width: number;
|
|
116
|
+
height: number;
|
|
117
|
+
};
|
|
118
|
+
relevance_score?: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
102
121
|
interface ImageCitationsForFile {
|
|
103
122
|
[key: string]: FileImageData;
|
|
104
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAI,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAiCitations/AiReasoning/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAI,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEnK,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,gBAAgB,CAAC,EAAE,aAAa,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,cAAc,CAAC,EAAE,sBAAsB,EAAE,CAAA;IACzC,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACxC,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAA;IACpC,qBAAqB,CAAC,EAAE,mBAAmB,EAAE,CAAC;CAC/C,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC5C,cAAc,EAAE;QACd,IAAI,EAA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AAC;CACjB;AAED,UAAU,YAAY;IACpB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScannedDocCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/ScannedDocCitation/ScannedDocCitation.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ScannedDocCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/ScannedDocCitation/ScannedDocCitation.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,IAAI,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,MAAM,EACN,UAAU,EACV,cAA0C,EAC1C,oBAAgD,EAChD,oBAA+C,EAC/C,MAAgB,GACjB,EAAE,uBAAuB,2CA2IzB"}
|