@e-llm-studio/citation 0.0.214 → 0.0.215
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/README.md +254 -38
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
- package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +1 -1
- package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
- package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
- package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
- package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
- package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
- package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
- package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
- package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +10 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +9 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +3 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +12 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/types.d.ts +289 -18
- package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +2 -0
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
- package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
- package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(t){return t?t.replace(/\\"/g,'"').replace(/\\'/g,"'").trim():""},e=function(t){if(null==t?void 0:t.trim()){var e=t.trim();if(!/^(javascript|data|vbscript):/i.test(e))try{var r=new URL(e);if("http:"===r.protocol||"https:"===r.protocol)return e}catch(t){if(e.startsWith("gs://"))return e}}},r=function(e){if(e)for(var r=t(e),i=0,a=[/decision strength is\s+([\d.]+)\s*%/i,/relevance score is\s+([\d.]+)\s*%/i,/confidence(?:\s+score)?(?:\s+is)?\s+([\d.]+)\s*%/i];i<a.length;i++){var n=a[i],o=r.match(n);if(null==o?void 0:o[1]){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(t){return t?t.replace(/\\"/g,'"').replace(/\\'/g,"'").trim():""},e=function(t){if(null==t?void 0:t.trim()){var e=t.trim();if(!/^(javascript|data|vbscript):/i.test(e))try{var r=new URL(e);if("http:"===r.protocol||"https:"===r.protocol)return e}catch(t){if(e.startsWith("gs://"))return e}}},r=function(e){if(e)for(var r=t(e),i=0,a=[/decision strength is\s+([\d.]+)\s*%/i,/relevance score is\s+([\d.]+)\s*%/i,/confidence(?:\s+score)?(?:\s+is)?\s+([\d.]+)\s*%/i];i<a.length;i++){var n=a[i],o=r.match(n);if(null==o?void 0:o[1]){var l=Number(o[1]);if(!Number.isNaN(l))return l}}},i=function(e){if(e){var r=t(e).match(/<a\b[^>]*>(.*?)<\/a>/i);if(null==r?void 0:r[1]){var i=r[1].replace(/<[^>]*>?/gm,"").trim();if(i)return i}}},a=function(t){if(t)try{var e=new URL(t).hostname.replace(/^www\./i,""),r=e.split(".");if(r.length<2)return e;var i=r[r.length-2];return i.charAt(0).toUpperCase()+i.slice(1)}catch(t){return}},n=function(t){var r,i,a,n=e(null===(r=null==t?void 0:t.imageMetadata)||void 0===r?void 0:r.signed_url);if(n)return n;var o=null===(a=null===(i=null==t?void 0:t.imageMetadata)||void 0===i?void 0:i.gs_uri)||void 0===a?void 0:a.trim();return(null==o?void 0:o.startsWith("gs://"))?o:void 0};exports.extractLearnedFromUrl=a,exports.extractRelevanceScoreFromContent=r,exports.extractTopicFromContent=i,exports.getWebCitationImageUrl=n,exports.mapCitationDataToDisplay=function(o){var l,s,c=t(o.content);return{citationId:o.citationId,content:c,citationType:o.citationType,citationUrl:e(o.citationUrl),highlightedUrl:o.highlightedUrl?e(o.highlightedUrl):void 0,topic:null!==(l=i(c))&&void 0!==l?l:"Web Citation",relevanceScore:null!==(s=r(c))&&void 0!==s?s:0,learnedFrom:a(o.citationUrl),web_citation_gcs_url:n(o),userId:o.userId,userName:o.userName,userEmail:o.userEmail,db:o.db,imageMetadata:o.imageMetadata}},exports.resolveSkeletonVisitUrl=function(t,r){var i;return null!==(i=e(t))&&void 0!==i?i:e(r)},exports.sanitizeExternalUrl=e;
|
|
2
2
|
//# sourceMappingURL=citationData.utils.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="520px",t="3.25rem";exports.getFixedPanelStyle=function(e){return{height:e,minHeight:e,maxHeight:e,width:"100%",display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}},exports.getFixedWebContentStyle=function(){return{flex:1,minHeight:0,maxHeight:"none",overflow:"hidden",display:"flex",flexDirection:"column"}},exports.resolveFixedHeightLayout=function(n,i){if(void 0===i&&(i=!0),!i){var o=null!=n?n:e;return{contentHeight:o,gptBodyHeight:o,panelHeight:o}}if(n)return{contentHeight:n,gptBodyHeight:n,panelHeight:"calc(".concat(n," + ").concat(t,")")};var r="calc(".concat(e," - ").concat(t,")");return{contentHeight:r,gptBodyHeight:r,panelHeight:e}};
|
|
2
|
+
//# sourceMappingURL=fixedHeight.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixedHeight.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),n=function(n,l){return{row:i.__assign(i.__assign({},null==n?void 0:n.row),null==l?void 0:l.row),hint:i.__assign(i.__assign({},null==n?void 0:n.hint),null==l?void 0:l.hint),link:i.__assign(i.__assign({},null==n?void 0:n.link),null==l?void 0:l.link)}};exports.mergeVisitLinkStyles=n,exports.resolveInlineStyle=function(n){if(n)return i.__assign({},n)},exports.resolveWebCitationVisitLinkStyles=function(i,l){var e,s,o=null==i?void 0:i.visitLink,t="image"===l?null===(e=null==i?void 0:i.image)||void 0===e?void 0:e.visitLink:null===(s=null==i?void 0:i.skeleton)||void 0===s?void 0:s.visitLink;return n(o,t)};
|
|
2
|
+
//# sourceMappingURL=styleOverrides.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleOverrides.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),r=require("./features/Bookemon/Bookemon.js"),o=require("./features/PdfEditorCitation/PdfEditorCitation.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),r=require("./features/Bookemon/Bookemon.js"),o=require("./features/PdfEditorCitation/PdfEditorCitation.js"),n=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),p=require("./features/ChatCitation/ChatCitationRenderer.js"),d=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),l=require("./features/PdfViewer/PdfViewer.js"),f=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),g=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),x=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),m=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),q=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),c=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),j=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),R=require("./features/TableCitation/TableCitationContent.js"),I=require("./features/CitationViewer/CitationsViewer.js"),S=require("./features/ExcelCitation/ExcelCitations.js"),T=require("./features/ScannedDocCitation/ScannedDocCitation.js"),D=require("./features/ChatDrawer/ChatDrawer.js"),E=require("./features/ChatDrawer/constants/ChatDrawer.js"),b=require("./features/SplitterCitations/SplitterCitationsComponent.js"),v=require("./features/CognitiveCompare/CognitiveCompare.js"),A=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),W=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),P=require("./features/RulebookCitations/RuleBookCitationWrapper.js"),k=require("./features/IngestionStatus/IngestionStatusComponent.js"),w=require("./features/ManageRemainders/ManageReminders.js"),U=require("./features/GptWebCitation/GptWebCitation.js"),h=require("./features/InstantLearningCitation/InstantLearningCitationComponent.js"),_=require("./features/GptWebCitation/utils/citationData.utils.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=r.default,exports.PdfCitation=o.PdfEditorCitation,exports.CitationRenderer=n.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=p.default,exports.CognitiveDecisioningCard=d.default,exports.PdfViewer=l.default,exports.FaqCitation=f.default,exports.ImageCitationContent=g.default,exports.VideoCitationContent=x.default,exports.FileCitationContent=m.default,exports.WebCitationWithImageContent=q.default,exports.MarkdownWithImageCitation=c.default,exports.AiReasoningCitation=j.default,exports.TableCitationContent=R.default,exports.CitationsViewer=I.default,exports.ExcelCitation=S.default,exports.ScannedDocCitation=T.default,exports.ChatDrawer=D.default,exports.FILE_INGESTION_STATUS=E.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=E.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=E.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=b.default,exports.CognitiveCompare=v.default,exports.CognitiveInternalgptCoreComponent=A.default,exports.TextualGuideLinesComponent=W.default,exports.RuleBookCitationWrapper=P.default,exports.IngestionStatusChip=k.IngestionStatusChip,exports.IngestionStatusComponent=k.IngestionStatusComponent,exports.ManageReminders=w.ManageReminders,exports.GptWebCitation=U.default,exports.InstantLearningCitationWrapper=h.default,exports.extractLearnedFromUrl=_.extractLearnedFromUrl,exports.extractRelevanceScoreFromContent=_.extractRelevanceScoreFromContent,exports.extractTopicFromContent=_.extractTopicFromContent,exports.getWebCitationImageUrl=_.getWebCitationImageUrl,exports.mapCitationDataToDisplay=_.mapCitationDataToDisplay,exports.resolveSkeletonVisitUrl=_.resolveSkeletonVisitUrl,exports.sanitizeExternalUrl=_.sanitizeExternalUrl;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as i}from"tslib";import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import{useMemo as o,useState as l,useRef as a,useEffect as r,useCallback as s}from"react";import{Sparkles as d,Globe as u}from"lucide-react";import c from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";import v from"./GptWebCitationImageCitation.js";import g from"./GptWebCitationSkeleton.js";import{mapCitationDataToDisplay as p,resolveSkeletonVisitUrl as m,getWebCitationImageUrl as b}from"./utils/citationData.utils.js";import{resolveWebCitationVisitLinkStyles as C}from"./utils/styleOverrides.utils.js";import{resolveFixedHeightLayout as w,getFixedPanelStyle as f,getFixedWebContentStyle as h}from"./utils/fixedHeight.utils.js";import k from"./GptWebCitation.module.css.js";import y from"../../assests/svg/NeuralNetworkIcon.js";var x=function(o){var l=o.variant,a=o.disabled,r=o.onClick,s=o.title,d=o.style;return t("button",i({type:"button",className:k.webCitationButton,onClick:r,disabled:a,title:s,style:d},{children:e(n,"gpt"===l?{children:[t(y,{className:k.webCitationButtonIcon}),"View GPT Citation"]}:{children:[t(u,{size:24,className:k.webCitationButtonIcon}),"View Web Citation"]})}))},I=function(n){var u,y,I,F=n.gptCitation,S=n.defaultCitationUrl,B=n.isWebCitation,L=void 0!==B&&B,H=n.webCitationData,N=n.topic,W=n.sourceLabel,j=n.relevanceScore,V=n.learnedFrom,T=n.webCitationStatus,z=n.onGenerateWebCitation,E=n.showWebCitation,A=n.onToggleCitationView,M=n.showExpandImageButton,U=void 0===M||M,G=n.showGptMaximizeButton,D=n.iconsConfig,P=n.isFixedHeight,O=void 0!==P&&P,R=n.styles,q=o(function(){return function(t){var e,n,o,l,a,r,s,d,u,c,v;return{container:null==t?void 0:t.container,gptWrapper:i(i({},null===(e=null==t?void 0:t.gptCitation)||void 0===e?void 0:e.wrapper),null==t?void 0:t.gptCitationWrapper),gptFooterAction:i(i({},null===(n=null==t?void 0:t.gptCitation)||void 0===n?void 0:n.footerAction),null==t?void 0:t.footerAction),gptToggleButton:i(i({},null===(o=null==t?void 0:t.gptCitation)||void 0===o?void 0:o.toggleButton),null==t?void 0:t.webCitationButton),webPanel:i(i({},null==t?void 0:t.container),null===(l=null==t?void 0:t.webCitation)||void 0===l?void 0:l.panel),webHeader:null===(a=null==t?void 0:t.webCitation)||void 0===a?void 0:a.header,webContent:null===(r=null==t?void 0:t.webCitation)||void 0===r?void 0:r.content,webFooter:null===(s=null==t?void 0:t.webCitation)||void 0===s?void 0:s.footer,webToggleButton:i(i({},null===(d=null==t?void 0:t.webCitation)||void 0===d?void 0:d.toggleButton),null==t?void 0:t.webCitationButton),webLearnedFrom:null===(u=null==t?void 0:t.webCitation)||void 0===u?void 0:u.learnedFrom,webImage:null===(c=null==t?void 0:t.webCitation)||void 0===c?void 0:c.image,webSkeleton:null===(v=null==t?void 0:t.webCitation)||void 0===v?void 0:v.skeleton,webImageVisitLink:C(null==t?void 0:t.webCitation,"image"),webSkeletonVisitLink:C(null==t?void 0:t.webCitation,"skeleton")}}(R)},[R]),J=o(function(){return O?w(F.bodyHeight,L):null},[O,F.bodyHeight,L]),K=o(function(){return J?f(J.panelHeight):void 0},[J]),Q=o(function(){var i,t;return{MaximizeIcon:null!==(i=null==D?void 0:D.MaximizeIcon)&&void 0!==i?i:null===(t=F.iconsConfig)||void 0===t?void 0:t.MaximizeIcon,ExternalLinkIcon:null==D?void 0:D.ExternalLinkIcon}},[D,null===(u=F.iconsConfig)||void 0===u?void 0:u.MaximizeIcon]),X=o(function(){return i(i(i(i({},F),O&&J?{bodyHeight:J.gptBodyHeight}:{}),{disableMaximize:void 0!==G?!G:F.disableMaximize}),L?{DocumentTitle:void 0,previewCallback:void 0}:{})},[F,G,L,O,J]),Y=l(!0),Z=Y[0],$=Y[1],_=a(!1),ii=null!=E?E:Z,ti=void 0!==E,ei=o(function(){return H?p(H):null},[H]),ni=null!==(y=null!=N?N:null==ei?void 0:ei.topic)&&void 0!==y?y:"Web Citation",oi=null!==(I=null!=j?j:null==ei?void 0:ei.relevanceScore)&&void 0!==I?I:0,li=null!=V?V:null==ei?void 0:ei.learnedFrom,ai=null==ei?void 0:ei.citationUrl,ri=m(null==ei?void 0:ei.highlightedUrl,S),si=b(H),di=o(function(){return function(i,t,e){return e?"success":i||(t?"error":"pending")}(T,H,si)},[T,H,si]);r(function(){_.current=!1},[null==H?void 0:H.citationId]),r(function(){L&&ii&&(si||_.current||(_.current=!0,null==z||z()))},[L,ii,si,z,null==H?void 0:H.citationId]);var ui=s(function(){A?A():ti||$(!1)},[A,ti]),ci=s(function(){A?A():ti||$(!0),si||"success"===di||null==z||z()},[A,ti,si,di,z]),vi=null!=W?W:"Source: Web Citation > ".concat(ni),gi=function(n){var o=!!X.DocumentTitle,l=[k.gptCitationWrapper,o?k.gptCitationWrapperWithSource:"",O?k.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" ");return e("div",i({className:l,style:i(i({},q.gptWrapper),K)},{children:[t(c,i({},X,{splitterCustomStyle:!0})),n&&t("div",i(o?{className:k.gptCitationFooterAction,style:q.gptFooterAction}:{className:[k.gptCitationToggleFooter,O?k.gptCitationToggleFooterFixedHeight:""].filter(Boolean).join(" "),style:q.gptFooterAction},{children:n}))]}))};return L?ii?e("div",i({className:[k.panel,O?k.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:i(i({},q.webPanel),K)},{children:[e("div",i({className:k.panelHeader,style:q.webHeader},{children:[t("span",i({className:k.panelSource},{children:vi})),t("div",i({className:k.panelHeaderActions},{children:oi>0&&e("div",i({className:k.confidenceBadge,title:"Decision strength"},{children:[t(d,{size:14}),oi,"%"]}))}))]})),t("div",i({className:[k.panelContent,k.panelContentExpanded,O?k.panelContentFixedHeight:""].filter(Boolean).join(" "),style:i(i({},q.webContent),O?h():void 0)},{children:"pending"===di?t(g,{status:"pending",citationUrl:ri,ExternalLinkIcon:Q.ExternalLinkIcon,styles:q.webSkeleton,visitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:O}):"success"===di&&si?t(v,{citationImage:si,citationUrl:ai,skeletonVisitUrl:ri,showExpandImageButton:U,iconsConfig:Q,styles:q.webImage,visitLinkStyles:q.webImageVisitLink,skeletonStyles:q.webSkeleton,skeletonVisitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:O}):t(g,{status:"error",citationUrl:ri,ExternalLinkIcon:Q.ExternalLinkIcon,styles:q.webSkeleton,visitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:O})})),e("div",i({className:k.panelFooter,style:q.webFooter},{children:[t(x,{variant:"gpt",onClick:ui,style:q.webToggleButton}),li&&e("span",i({className:k.learnedFrom,style:q.webLearnedFrom},{children:["Learned From ",li]}))]}))]})):t("div",i({className:k.overlay,style:q.container},{children:gi(t(x,{variant:"web",onClick:ci,title:"View web-based citation for this source.",style:q.gptToggleButton}))})):t("div",i({className:k.overlay,style:q.container},{children:gi()}))};export{I as default};
|
|
2
2
|
//# sourceMappingURL=GptWebCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={overlay:"GptWebCitation-module_overlay__OY5pa",gptCitationWrapper:"GptWebCitation-module_gptCitationWrapper__EN7nk",gptCitationToggleFooter:"GptWebCitation-module_gptCitationToggleFooter__ncfLT",gptCitationFooterAction:"GptWebCitation-module_gptCitationFooterAction__WWpAY",gptCitationWrapperWithSource:"GptWebCitation-module_gptCitationWrapperWithSource__1-ynq",panel:"GptWebCitation-module_panel__ek9Lq",panelHeader:"GptWebCitation-module_panelHeader__afwge",panelSource:"GptWebCitation-module_panelSource__oFl-c",panelHeaderActions:"GptWebCitation-module_panelHeaderActions__sGrhi",pagination:"GptWebCitation-module_pagination__VQvbY",paginationButton:"GptWebCitation-module_paginationButton__fzJyQ",paginationLabel:"GptWebCitation-module_paginationLabel__S7t1W",confidenceBadge:"GptWebCitation-module_confidenceBadge__4BBTf",panelContent:"GptWebCitation-module_panelContent__vg-mG",panelContentExpanded:"GptWebCitation-module_panelContentExpanded__3aGjq",markdownBody:"GptWebCitation-module_markdownBody__5kdwH",highlight:"GptWebCitation-module_highlight__Xr1wl",highlightActive:"GptWebCitation-module_highlightActive__iFuz5",citationLink:"GptWebCitation-module_citationLink__kH9JC",citationLinkActive:"GptWebCitation-module_citationLinkActive__SShYx",panelFooter:"GptWebCitation-module_panelFooter__wm98C",webCitationButton:"GptWebCitation-module_webCitationButton__blI--",webCitationButtonIcon:"GptWebCitation-module_webCitationButtonIcon__r9lPc",learnedFrom:"GptWebCitation-module_learnedFrom__DMyLS",imageCitationWrapper:"GptWebCitation-module_imageCitationWrapper__iQUSw",imageCitationCenter:"GptWebCitation-module_imageCitationCenter__DMlqn",imageCitationViewport:"GptWebCitation-module_imageCitationViewport__xcotr",imageCitationScrollContainer:"GptWebCitation-module_imageCitationScrollContainer__bAQNk",citationImage:"GptWebCitation-module_citationImage__7rWdT",citationImagePreload:"GptWebCitation-module_citationImagePreload__L7ibJ",expandImageButton:"GptWebCitation-module_expandImageButton__598k6",fullScreenOverlay:"GptWebCitation-module_fullScreenOverlay__Z5U8h",fullScreenContent:"GptWebCitation-module_fullScreenContent__xIXZR",fullScreenCloseButton:"GptWebCitation-module_fullScreenCloseButton__lnaT1",fullScreenImageWrapper:"GptWebCitation-module_fullScreenImageWrapper__ADPGU",fullScreenImage:"GptWebCitation-module_fullScreenImage__jLVAQ",visitLinkRow:"GptWebCitation-module_visitLinkRow__H8ai5",visitLinkHint:"GptWebCitation-module_visitLinkHint__FAwob",visitLink:"GptWebCitation-module_visitLink__1BDo8",skeleton:"GptWebCitation-module_skeleton__1q51h",skeletonText:"GptWebCitation-module_skeletonText__E6XgN",skeletonShimmer:"GptWebCitation-module_skeletonShimmer__yqWJh",shimmer:"GptWebCitation-module_shimmer__-ZbQA"};!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(".GptWebCitation-module_overlay__OY5pa{display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_gptCitationWrapper__EN7nk{background-color:#fff;border:solid #e5e7eb;border-radius:8px;border-width:1px 1px 2px;box-shadow:0 1px 2px #0000000d;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:relative;width:100%}.GptWebCitation-module_gptCitationToggleFooter__ncfLT{align-items:center;background-color:#f2f4f7;border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;padding:1rem 1.5rem}.GptWebCitation-module_gptCitationFooterAction__WWpAY{align-items:center;bottom:0;box-sizing:border-box;display:flex;height:3rem;left:1.5rem;padding:0;pointer-events:none;position:absolute;z-index:2}.GptWebCitation-module_gptCitationFooterAction__WWpAY>*{pointer-events:auto}.GptWebCitation-module_gptCitationWrapperWithSource__1-ynq [class*=modalFooterSource]{justify-content:flex-end!important;padding-left:13rem}.GptWebCitation-module_panel__ek9Lq{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#1f2937;display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_panelHeader__afwge{align-items:center;background-color:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex;font-size:13px;gap:8px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_panelSource__oFl-c{color:#374151;flex:1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GptWebCitation-module_panelHeaderActions__sGrhi{align-items:center;display:flex;flex-shrink:0;gap:8px}.GptWebCitation-module_pagination__VQvbY{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:6px;display:flex;gap:2px;padding:2px 4px}.GptWebCitation-module_paginationButton__fzJyQ{align-items:center;background:#0000;border:none;border-radius:4px;color:#6b7280;cursor:pointer;display:flex;justify-content:center;padding:2px}.GptWebCitation-module_paginationButton__fzJyQ:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_paginationButton__fzJyQ:disabled{cursor:not-allowed;opacity:.4}.GptWebCitation-module_paginationLabel__S7t1W{color:#6b7280;font-size:12px;min-width:36px;padding:0 4px;text-align:center}.GptWebCitation-module_confidenceBadge__4BBTf{align-items:center;background-color:#ecfdf5;border:1px solid #10b981;border-radius:9999px;color:#059669;display:inline-flex;font-size:13px;font-weight:500;gap:4px;padding:4px 10px}.GptWebCitation-module_panelContent__vg-mG{max-height:192px;overflow-y:auto;padding:8px 12px 12px}.GptWebCitation-module_panelContentExpanded__3aGjq{display:flex;flex-direction:column;max-height:none;min-height:384px;overflow:hidden}.GptWebCitation-module_markdownBody__5kdwH{color:#374151;font-size:14px;line-height:1.6}.GptWebCitation-module_markdownBody__5kdwH ol{list-style-type:lower-alpha;margin:0;padding-left:1.25rem}.GptWebCitation-module_markdownBody__5kdwH li{margin-bottom:8px}.GptWebCitation-module_markdownBody__5kdwH code{background-color:#f3f4f6;border-radius:4px;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;padding:1px 6px}.GptWebCitation-module_highlight__Xr1wl{background-color:#fef08a;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_highlightActive__iFuz5{background-color:#fde047;border:1px solid #eab308;box-shadow:0 1px 2px #0000001a}.GptWebCitation-module_citationLink__kH9JC{color:#2563eb;font-weight:500;text-decoration:none}.GptWebCitation-module_citationLink__kH9JC:hover{text-decoration:underline}.GptWebCitation-module_citationLinkActive__SShYx{background-color:#fef08a;border:1px solid #eab308;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_panelFooter__wm98C{align-items:center;background-color:#f9fafb;border-top:1px solid #e5e7eb;display:flex;font-size:13px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_webCitationButton__blI--{align-items:center;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;color:#2563eb;cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;gap:8px;justify-content:center;line-height:1.25;min-width:180px;padding:6px 16px;transition:background-color .15s ease;white-space:nowrap}.GptWebCitation-module_webCitationButton__blI--:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_webCitationButton__blI--:disabled{cursor:not-allowed;opacity:.75}.GptWebCitation-module_webCitationButtonIcon__r9lPc{color:#2563eb;flex-shrink:0}.GptWebCitation-module_learnedFrom__DMyLS{color:#6b7280;font-size:13px}.GptWebCitation-module_imageCitationWrapper__iQUSw{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:12px;min-height:0;padding:8px 4px;width:100%}.GptWebCitation-module_imageCitationCenter__DMlqn{display:flex;flex:1;justify-content:center;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationViewport__xcotr{height:100%;max-width:100%;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar{width:8px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:9999px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-track{background-color:initial}.GptWebCitation-module_citationImage__7rWdT{background-color:#f9fafb;border:none;border-radius:0;display:block;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_citationImagePreload__L7ibJ{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0}.GptWebCitation-module_expandImageButton__598k6{align-items:center;background-color:#374151eb;border:none;border-radius:6px;bottom:12px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:12px;transition:background-color .15s ease;width:32px;z-index:2}.GptWebCitation-module_expandImageButton__598k6:hover{background-color:#1f2937}.GptWebCitation-module_expandImageButton__598k6 svg{flex-shrink:0}.GptWebCitation-module_fullScreenOverlay__Z5U8h{align-items:center;backdrop-filter:blur(4px);background-color:#0009;display:flex;inset:0;justify-content:center;overflow:hidden;overscroll-behavior:contain;padding:16px;position:fixed;z-index:1100}.GptWebCitation-module_fullScreenContent__xIXZR{background-color:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-height:90vh;max-width:95vw;overflow:hidden;position:relative}.GptWebCitation-module_fullScreenCloseButton__lnaT1{align-items:center;background-color:#374151eb;border:none;border-radius:6px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:16px;top:16px;transition:background-color .15s ease;width:32px;z-index:1}.GptWebCitation-module_fullScreenCloseButton__lnaT1:hover{background-color:#1f2937}.GptWebCitation-module_fullScreenImageWrapper__ADPGU{align-items:flex-start;display:flex;justify-content:center;max-height:80vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_fullScreenImage__jLVAQ{border-radius:12px;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_visitLinkRow__H8ai5{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-start;padding:4px 8px 0;width:100%}.GptWebCitation-module_visitLinkHint__FAwob{color:#6b7280;font-size:13px;line-height:1.4}.GptWebCitation-module_visitLink__1BDo8{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;white-space:nowrap}.GptWebCitation-module_visitLink__1BDo8:hover{background-color:#2563eb2e;text-decoration:none}.GptWebCitation-module_skeleton__1q51h{align-items:center;background-color:#f3f4f6;border-radius:12px;display:flex;justify-content:center;min-height:384px;overflow:hidden;padding:24px;position:relative;width:100%}.GptWebCitation-module_skeletonText__E6XgN{color:#6b7280;font-size:14px;line-height:1.5;max-width:320px;position:relative;text-align:center;z-index:1}.GptWebCitation-module_skeletonShimmer__yqWJh{animation:GptWebCitation-module_shimmer__-ZbQA 1.5s linear infinite;background:linear-gradient(90deg,#0000,#fff9,#0000);inset:0;position:absolute}@keyframes GptWebCitation-module_shimmer__-ZbQA{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
1
|
+
var e={overlay:"GptWebCitation-module_overlay__OY5pa",gptCitationWrapper:"GptWebCitation-module_gptCitationWrapper__EN7nk",gptCitationToggleFooter:"GptWebCitation-module_gptCitationToggleFooter__ncfLT",gptCitationFooterAction:"GptWebCitation-module_gptCitationFooterAction__WWpAY",gptCitationWrapperWithSource:"GptWebCitation-module_gptCitationWrapperWithSource__1-ynq",panel:"GptWebCitation-module_panel__ek9Lq",panelHeader:"GptWebCitation-module_panelHeader__afwge",panelSource:"GptWebCitation-module_panelSource__oFl-c",panelHeaderActions:"GptWebCitation-module_panelHeaderActions__sGrhi",pagination:"GptWebCitation-module_pagination__VQvbY",paginationButton:"GptWebCitation-module_paginationButton__fzJyQ",paginationLabel:"GptWebCitation-module_paginationLabel__S7t1W",confidenceBadge:"GptWebCitation-module_confidenceBadge__4BBTf",panelContent:"GptWebCitation-module_panelContent__vg-mG",panelContentExpanded:"GptWebCitation-module_panelContentExpanded__3aGjq",panelContentFixedHeight:"GptWebCitation-module_panelContentFixedHeight__1RNIv",gptCitationWrapperFixedHeight:"GptWebCitation-module_gptCitationWrapperFixedHeight__Mr7EX",gptCitationToggleFooterFixedHeight:"GptWebCitation-module_gptCitationToggleFooterFixedHeight__I-RHz",imageCitationWrapperFixedHeight:"GptWebCitation-module_imageCitationWrapperFixedHeight__h8i31",imageCitationCenterFixedHeight:"GptWebCitation-module_imageCitationCenterFixedHeight__lX3cM",imageCitationViewportFixedHeight:"GptWebCitation-module_imageCitationViewportFixedHeight__tgJ6n",imageCitationScrollContainerFixedHeight:"GptWebCitation-module_imageCitationScrollContainerFixedHeight__VMwOt",citationImageContained:"GptWebCitation-module_citationImageContained__Bx-j5",skeletonFrameFixedHeight:"GptWebCitation-module_skeletonFrameFixedHeight__lPjN7",skeletonContainerFixedHeight:"GptWebCitation-module_skeletonContainerFixedHeight__XgOLH",markdownBody:"GptWebCitation-module_markdownBody__5kdwH",highlight:"GptWebCitation-module_highlight__Xr1wl",highlightActive:"GptWebCitation-module_highlightActive__iFuz5",citationLink:"GptWebCitation-module_citationLink__kH9JC",citationLinkActive:"GptWebCitation-module_citationLinkActive__SShYx",panelFooter:"GptWebCitation-module_panelFooter__wm98C",webCitationButton:"GptWebCitation-module_webCitationButton__blI--",webCitationButtonIcon:"GptWebCitation-module_webCitationButtonIcon__r9lPc",learnedFrom:"GptWebCitation-module_learnedFrom__DMyLS",imageCitationWrapper:"GptWebCitation-module_imageCitationWrapper__iQUSw",imageCitationCenter:"GptWebCitation-module_imageCitationCenter__DMlqn",imageCitationViewport:"GptWebCitation-module_imageCitationViewport__xcotr",imageCitationScrollContainer:"GptWebCitation-module_imageCitationScrollContainer__bAQNk",citationImage:"GptWebCitation-module_citationImage__7rWdT",citationImagePreload:"GptWebCitation-module_citationImagePreload__L7ibJ",expandImageButton:"GptWebCitation-module_expandImageButton__598k6",fullScreenOverlay:"GptWebCitation-module_fullScreenOverlay__Z5U8h",fullScreenContent:"GptWebCitation-module_fullScreenContent__xIXZR",fullScreenCloseButton:"GptWebCitation-module_fullScreenCloseButton__lnaT1",fullScreenImageWrapper:"GptWebCitation-module_fullScreenImageWrapper__ADPGU",fullScreenImage:"GptWebCitation-module_fullScreenImage__jLVAQ",visitLinkRow:"GptWebCitation-module_visitLinkRow__H8ai5",visitLinkHint:"GptWebCitation-module_visitLinkHint__FAwob",visitLink:"GptWebCitation-module_visitLink__1BDo8",skeleton:"GptWebCitation-module_skeleton__1q51h",skeletonShimmer:"GptWebCitation-module_skeletonShimmer__yqWJh",shimmer:"GptWebCitation-module_shimmer__-ZbQA",skeletonPendingContainer:"GptWebCitation-module_skeletonPendingContainer__-ZSgz",skeletonPendingContent:"GptWebCitation-module_skeletonPendingContent__ttLpr",skeletonPendingText:"GptWebCitation-module_skeletonPendingText__AnHRb",skeletonPendingActionRow:"GptWebCitation-module_skeletonPendingActionRow__C-rPf",skeletonPendingActionHint:"GptWebCitation-module_skeletonPendingActionHint__PB8CQ",skeletonErrorContent:"GptWebCitation-module_skeletonErrorContent__Y4PXh",skeletonErrorTitle:"GptWebCitation-module_skeletonErrorTitle__PeL4e",skeletonErrorMessageLine:"GptWebCitation-module_skeletonErrorMessageLine__a5B0M",skeletonErrorInlineVisitLink:"GptWebCitation-module_skeletonErrorInlineVisitLink__HgWl4",skeletonErrorMessageSuffix:"GptWebCitation-module_skeletonErrorMessageSuffix__in2K-",skeletonErrorDetails:"GptWebCitation-module_skeletonErrorDetails__6e2LW",skeletonErrorActionGroup:"GptWebCitation-module_skeletonErrorActionGroup__w5g4K",skeletonErrorDetailsToggle:"GptWebCitation-module_skeletonErrorDetailsToggle__osJ2y",skeletonErrorChevron:"GptWebCitation-module_skeletonErrorChevron__WprUR",skeletonErrorDetailsLabel:"GptWebCitation-module_skeletonErrorDetailsLabel__fXQ2H",skeletonErrorDetailsMessage:"GptWebCitation-module_skeletonErrorDetailsMessage__GrE-j",skeletonVisitLinkGlow:"GptWebCitation-module_skeletonVisitLinkGlow__ABLi8",glowPulse:"GptWebCitation-module_glowPulse__6-t4P"};!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(".GptWebCitation-module_overlay__OY5pa{display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_gptCitationWrapper__EN7nk{background-color:#fff;border:solid #e5e7eb;border-radius:8px;border-width:1px 1px 2px;box-shadow:0 1px 2px #0000000d;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:relative;width:100%}.GptWebCitation-module_gptCitationToggleFooter__ncfLT{align-items:center;background-color:#f2f4f7;border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;padding:1rem 1.5rem}.GptWebCitation-module_gptCitationFooterAction__WWpAY{align-items:center;bottom:0;box-sizing:border-box;display:flex;height:3rem;left:1.5rem;padding:0;pointer-events:none;position:absolute;z-index:2}.GptWebCitation-module_gptCitationFooterAction__WWpAY>*{pointer-events:auto}.GptWebCitation-module_gptCitationWrapperWithSource__1-ynq [class*=modalFooterSource]{justify-content:flex-end!important;padding-left:13rem}.GptWebCitation-module_panel__ek9Lq{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#1f2937;display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_panelHeader__afwge{align-items:center;background-color:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex;font-size:13px;gap:8px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_panelSource__oFl-c{color:#374151;flex:1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GptWebCitation-module_panelHeaderActions__sGrhi{align-items:center;display:flex;flex-shrink:0;gap:8px}.GptWebCitation-module_pagination__VQvbY{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:6px;display:flex;gap:2px;padding:2px 4px}.GptWebCitation-module_paginationButton__fzJyQ{align-items:center;background:#0000;border:none;border-radius:4px;color:#6b7280;cursor:pointer;display:flex;justify-content:center;padding:2px}.GptWebCitation-module_paginationButton__fzJyQ:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_paginationButton__fzJyQ:disabled{cursor:not-allowed;opacity:.4}.GptWebCitation-module_paginationLabel__S7t1W{color:#6b7280;font-size:12px;min-width:36px;padding:0 4px;text-align:center}.GptWebCitation-module_confidenceBadge__4BBTf{align-items:center;background-color:#ecfdf5;border:1px solid #10b981;border-radius:9999px;color:#059669;display:inline-flex;font-size:13px;font-weight:500;gap:4px;padding:4px 10px}.GptWebCitation-module_panelContent__vg-mG{max-height:192px;overflow-y:auto;padding:8px 12px 12px}.GptWebCitation-module_panelContentExpanded__3aGjq{display:flex;flex-direction:column;max-height:none;min-height:384px;overflow:hidden}.GptWebCitation-module_panelContentFixedHeight__1RNIv{flex:1;max-height:none;min-height:0!important;overflow:hidden}.GptWebCitation-module_gptCitationWrapperFixedHeight__Mr7EX{overflow:hidden}.GptWebCitation-module_gptCitationToggleFooterFixedHeight__I-RHz{flex-shrink:0}.GptWebCitation-module_imageCitationCenterFixedHeight__lX3cM,.GptWebCitation-module_imageCitationWrapperFixedHeight__h8i31{flex:1;min-height:0;overflow:hidden}.GptWebCitation-module_imageCitationViewportFixedHeight__tgJ6n{height:100%;min-height:0}.GptWebCitation-module_imageCitationScrollContainerFixedHeight__VMwOt{align-items:center;display:flex;height:100%;justify-content:center;min-height:0}.GptWebCitation-module_citationImageContained__Bx-j5{height:100%;max-height:100%;max-width:100%;object-fit:contain;width:100%}.GptWebCitation-module_skeletonFrameFixedHeight__lPjN7{flex:1;height:100%;min-height:0!important}.GptWebCitation-module_skeletonContainerFixedHeight__XgOLH{flex:1;height:100%;min-height:0}.GptWebCitation-module_markdownBody__5kdwH{color:#374151;font-size:14px;line-height:1.6}.GptWebCitation-module_markdownBody__5kdwH ol{list-style-type:lower-alpha;margin:0;padding-left:1.25rem}.GptWebCitation-module_markdownBody__5kdwH li{margin-bottom:8px}.GptWebCitation-module_markdownBody__5kdwH code{background-color:#f3f4f6;border-radius:4px;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;padding:1px 6px}.GptWebCitation-module_highlight__Xr1wl{background-color:#fef08a;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_highlightActive__iFuz5{background-color:#fde047;border:1px solid #eab308;box-shadow:0 1px 2px #0000001a}.GptWebCitation-module_citationLink__kH9JC{color:#2563eb;font-weight:500;text-decoration:none}.GptWebCitation-module_citationLink__kH9JC:hover{text-decoration:underline}.GptWebCitation-module_citationLinkActive__SShYx{background-color:#fef08a;border:1px solid #eab308;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_panelFooter__wm98C{align-items:center;background-color:#f9fafb;border-top:1px solid #e5e7eb;display:flex;font-size:13px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_webCitationButton__blI--{align-items:center;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;color:#2563eb;cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;gap:8px;justify-content:center;line-height:1.25;min-width:180px;padding:6px 16px;transition:background-color .15s ease;white-space:nowrap}.GptWebCitation-module_webCitationButton__blI--:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_webCitationButton__blI--:disabled{cursor:not-allowed;opacity:.75}.GptWebCitation-module_webCitationButtonIcon__r9lPc{color:#2563eb;flex-shrink:0}.GptWebCitation-module_learnedFrom__DMyLS{color:#6b7280;font-size:13px}.GptWebCitation-module_imageCitationWrapper__iQUSw{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:12px;min-height:0;padding:8px 4px;width:100%}.GptWebCitation-module_imageCitationCenter__DMlqn{align-items:stretch;display:flex;flex:1;justify-content:center;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationViewport__xcotr{height:100%;max-width:100%;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar{width:8px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:9999px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-track{background-color:initial}.GptWebCitation-module_citationImage__7rWdT{background-color:#f9fafb;border:none;border-radius:0;display:block;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_citationImagePreload__L7ibJ{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0}.GptWebCitation-module_expandImageButton__598k6{align-items:center;background-color:#374151eb;border:none;border-radius:6px;bottom:12px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:12px;transition:background-color .15s ease;width:32px;z-index:2}.GptWebCitation-module_expandImageButton__598k6:hover{background-color:#1f2937}.GptWebCitation-module_expandImageButton__598k6 svg{flex-shrink:0}.GptWebCitation-module_fullScreenOverlay__Z5U8h{align-items:center;backdrop-filter:blur(4px);background-color:#0009;display:flex;inset:0;justify-content:center;overflow:hidden;overscroll-behavior:contain;padding:16px;position:fixed;z-index:1100}.GptWebCitation-module_fullScreenContent__xIXZR{background-color:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-height:90vh;max-width:95vw;overflow:hidden;position:relative}.GptWebCitation-module_fullScreenCloseButton__lnaT1{align-items:center;background-color:#374151eb;border:none;border-radius:6px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:16px;top:16px;transition:background-color .15s ease;width:32px;z-index:1}.GptWebCitation-module_fullScreenCloseButton__lnaT1:hover{background-color:#1f2937}.GptWebCitation-module_fullScreenImageWrapper__ADPGU{align-items:flex-start;display:flex;justify-content:center;max-height:80vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_fullScreenImage__jLVAQ{border-radius:12px;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_visitLinkRow__H8ai5{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-start;padding:4px 8px 0;width:100%}.GptWebCitation-module_visitLinkHint__FAwob{color:#6b7280;font-size:10px;line-height:1.4}.GptWebCitation-module_visitLink__1BDo8{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;transition:all .15s ease;white-space:nowrap}.GptWebCitation-module_visitLink__1BDo8:hover{background-color:#2563eb2e;text-decoration:none}.GptWebCitation-module_skeleton__1q51h{align-items:center;background-color:#f3f4f6;border-radius:12px;display:flex;justify-content:center;min-height:384px;overflow:hidden;position:relative;width:100%}.GptWebCitation-module_skeletonShimmer__yqWJh{animation:GptWebCitation-module_shimmer__-ZbQA 1.5s linear infinite;background:linear-gradient(90deg,#0000,#fff9,#0000);inset:0;position:absolute}.GptWebCitation-module_skeletonPendingContainer__-ZSgz{display:flex;flex:1;flex-direction:column;width:100%}.GptWebCitation-module_skeletonPendingContent__ttLpr{align-items:center;display:flex;flex-direction:column;gap:12px;justify-content:center;max-width:420px;padding:24px;position:relative;text-align:center;z-index:1}.GptWebCitation-module_skeletonPendingText__AnHRb{color:#6b7280;font-size:13px;line-height:1.5}.GptWebCitation-module_skeletonPendingActionRow__C-rPf{align-items:center;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.GptWebCitation-module_skeletonPendingActionHint__PB8CQ{color:#6b7280;font-size:13px;line-height:1.4}.GptWebCitation-module_skeletonErrorContent__Y4PXh{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;justify-content:center;max-width:100%;padding:24px;position:relative;text-align:center;width:100%;z-index:1}.GptWebCitation-module_skeletonErrorTitle__PeL4e{color:#6b7280;font-size:14px;font-weight:600;margin:0}.GptWebCitation-module_skeletonErrorMessageLine__a5B0M{align-items:center;color:#6b7280;display:inline-flex;flex-wrap:nowrap;font-size:13px;gap:6px;justify-content:center;line-height:1.5;margin:0;max-width:100%;white-space:nowrap}.GptWebCitation-module_skeletonErrorInlineVisitLink__HgWl4{align-items:center;color:#2563eb;display:inline-flex;flex-shrink:0;font-weight:500;gap:6px;text-decoration:underline;white-space:nowrap}.GptWebCitation-module_skeletonErrorInlineVisitLink__HgWl4:hover{color:#1d4ed8}.GptWebCitation-module_skeletonErrorMessageSuffix__in2K-{flex-shrink:0;white-space:nowrap}.GptWebCitation-module_skeletonErrorDetails__6e2LW{align-items:center;display:flex;flex-direction:column;gap:6px;width:100%}.GptWebCitation-module_skeletonErrorActionGroup__w5g4K{align-items:center;display:flex;flex-direction:column;gap:8px;width:100%}.GptWebCitation-module_skeletonErrorDetailsToggle__osJ2y{align-items:center;background:#0000;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;display:inline-flex;font-size:11px;gap:4px;line-height:1.4;padding:2px 6px;transition:color .15s ease,background-color .15s ease}.GptWebCitation-module_skeletonErrorDetailsToggle__osJ2y:hover{background-color:#6b728014;color:#6b7280}.GptWebCitation-module_skeletonErrorChevron__WprUR{flex-shrink:0}.GptWebCitation-module_skeletonErrorDetailsLabel__fXQ2H{font-weight:500}.GptWebCitation-module_skeletonErrorDetailsMessage__GrE-j{background-color:#6b72801a;border-radius:6px;color:#6b7280;font-size:11px;line-height:1.45;margin:0;max-width:100%;padding:8px 10px;text-align:left;word-break:break-word}.GptWebCitation-module_skeletonVisitLinkGlow__ABLi8{animation:GptWebCitation-module_glowPulse__6-t4P 1.8s ease-in-out infinite;background-color:#2563eb14;border:1.5px solid #2563eb8c}@keyframes GptWebCitation-module_shimmer__-ZbQA{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes GptWebCitation-module_glowPulse__6-t4P{0%,to{border-color:#2563eb66;box-shadow:0 0 0 0 #2563eb4d}50%{border-color:#2563ebcc;box-shadow:0 0 12px 3px #2563eb66}}"));const i=document.head||document.getElementsByTagName("head")[0]||document.documentElement;i&&i.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=GptWebCitation.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as n,useEffect as o}from"react";import{Maximize2 as l,ExternalLink as a}from"lucide-react";import r from"./GptWebCitationImageFullScreenView.js";import s from"./GptWebCitationSkeleton.js";import{sanitizeExternalUrl as d}from"./utils/citationData.utils.js";import c from"./GptWebCitation.module.css.js";var m=function(m){var u,v,p=m.citationImage,g=m.citationUrl,f=m.skeletonVisitUrl,C=m.showExpandImageButton,h=void 0===C||C,k=m.iconsConfig,y=m.styles,x=m.visitLinkStyles,w=m.skeletonStyles,I=m.skeletonVisitLinkStyles,b=m.isFixedHeight,j=void 0!==b&&b,L=null!==(u=null==k?void 0:k.MaximizeIcon)&&void 0!==u?u:l,N=null!==(v=null==k?void 0:k.ExternalLinkIcon)&&void 0!==v?v:a,S=n(!1),B=S[0],F=S[1],H=n("loading"),V=H[0],W=H[1];o(function(){var i=!0;W("loading"),F(!1);var e=new Image;return e.onload=function(){i&&W("loaded")},e.onerror=function(){i&&W("error")},e.src=p,function(){i=!1,e.onload=null,e.onerror=null}},[p]);var E="loaded"===V,z=d(g);return e("div",i({className:[c.imageCitationWrapper,j?c.imageCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:null==y?void 0:y.wrapper},{children:[t("div",i({className:[c.imageCitationCenter,j?c.imageCitationCenterFixedHeight:""].filter(Boolean).join(" "),style:null==y?void 0:y.center},{children:E?e("div",i({className:[c.imageCitationViewport,j?c.imageCitationViewportFixedHeight:""].filter(Boolean).join(" "),style:null==y?void 0:y.viewport},{children:[t("div",i({className:[c.imageCitationScrollContainer,j?c.imageCitationScrollContainerFixedHeight:""].filter(Boolean).join(" "),style:null==y?void 0:y.scrollContainer},{children:t("img",{src:p,alt:"Web citation snapshot",className:[c.citationImage,j?c.citationImageContained:""].filter(Boolean).join(" "),style:null==y?void 0:y.image})})),h&&t("button",i({type:"button",onClick:function(i){i.stopPropagation(),F(!0)},className:c.expandImageButton,style:null==y?void 0:y.expandButton,"aria-label":"View citation image in full screen",title:"Expand image"},{children:t(L,{size:16,strokeWidth:2})}))]})):t(s,{status:"error"===V?"error":"pending",citationUrl:null!=f?f:g,ExternalLinkIcon:null==k?void 0:k.ExternalLinkIcon,styles:w,visitLinkStyles:I,isFixedHeight:j})})),z&&E&&e("div",i({className:c.visitLinkRow,style:null==x?void 0:x.row},{children:[t("span",i({className:c.visitLinkHint,style:null==x?void 0:x.hint},{children:"Open link in new tab to read in detail"})),e("a",i({href:z,target:"_blank",rel:"noreferrer",className:c.visitLink,style:null==x?void 0:x.link},{children:["Visit Link",t(N,{size:16})]}))]})),B&&E&&t(r,{src:p,onClose:function(){return F(!1)},styles:null==y?void 0:y.fullScreen})]}))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=GptWebCitationImageCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as o,jsxs as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as o,jsxs as l}from"react/jsx-runtime";import{useEffect as t}from"react";import{createPortal as r}from"react-dom";import{X as n}from"lucide-react";import{resolveInlineStyle as i}from"./utils/styleOverrides.utils.js";import s from"./GptWebCitation.module.css.js";var a=function(e){return e.stopPropagation()},c=function(e){e.stopPropagation()},u=function(u){var m=u.src,d=u.onClose,f=u.styles;return t(function(){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}},[]),r(o("div",e({role:"dialog","aria-modal":"true",className:s.fullScreenOverlay,style:i(null==f?void 0:f.overlay),onClick:d,onWheel:c},{children:l("div",e({className:s.fullScreenContent,style:i(null==f?void 0:f.content),onClick:a},{children:[o("button",e({type:"button",onClick:d,className:s.fullScreenCloseButton,style:i(null==f?void 0:f.closeButton),"aria-label":"Close full screen view"},{children:o(n,{size:18,strokeWidth:2})})),o("div",e({className:s.fullScreenImageWrapper,style:i(null==f?void 0:f.imageWrapper)},{children:o("img",{src:m,alt:"Citation full view",className:s.fullScreenImage,style:i(null==f?void 0:f.image)})}))]}))})),document.body)};export{u as default};
|
|
2
2
|
//# sourceMappingURL=GptWebCitationImageFullScreenView.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as i,jsxs as l,Fragment as n}from"react/jsx-runtime";import{ExternalLink as o}from"lucide-react";import{sanitizeExternalUrl as t}from"./utils/citationData.utils.js";import s from"./GptWebCitation.module.css.js";var r=function(r){var a,d,c,v,u,m,h,k,p,f=r.status,g=r.ExternalLinkIcon,y=r.citationUrl,N=r.styles,x=r.visitLinkStyles,w=r.isFixedHeight,L=void 0!==w&&w,b=null!=g?g:o,E=t(y),j=[s.skeletonPendingContainer,L?s.skeletonContainerFixedHeight:""].filter(Boolean).join(" "),C=[s.skeleton,L?s.skeletonFrameFixedHeight:""].filter(Boolean).join(" ");return i("div",e({className:j,style:null==N?void 0:N.container},"error"===f?{children:i("div",e({className:C,style:null==N?void 0:N.frame},{children:l("div",e({className:s.skeletonErrorContent,style:null===(a=null==N?void 0:N.error)||void 0===a?void 0:a.content},{children:[i("span",e({className:s.skeletonErrorTitle,style:null===(d=null==N?void 0:N.error)||void 0===d?void 0:d.title},{children:"No preview available"})),l("p",e({className:s.skeletonErrorMessageLine,style:null===(c=null==N?void 0:N.error)||void 0===c?void 0:c.message},{children:[i("span",{children:"This website restricts external previews"}),E&&l(n,{children:[l("a",e({href:E,target:"_blank",rel:"noopener noreferrer",className:s.skeletonErrorInlineVisitLink,style:null==x?void 0:x.link},{children:["Visit Link",i(b,{size:12})]})),i("span",e({className:s.skeletonErrorMessageSuffix},{children:"to view details"}))]})]}))]}))}))}:{children:l("div",e({className:C,style:null==N?void 0:N.frame},{children:[i("div",{className:s.skeletonShimmer,style:null==N?void 0:N.shimmer}),l("div",e({className:s.skeletonPendingContent,style:null===(v=null==N?void 0:N.pending)||void 0===v?void 0:v.content},{children:[i("span",e({className:s.skeletonPendingText,style:null===(u=null==N?void 0:N.pending)||void 0===u?void 0:u.text},{children:"Loading a snapshot of citation from source website...."})),E&&l("div",e({className:s.skeletonPendingActionRow,style:null!==(m=null==x?void 0:x.row)&&void 0!==m?m:null===(h=null==N?void 0:N.pending)||void 0===h?void 0:h.actionRow},{children:[l("a",e({href:E,target:"_blank",rel:"noopener noreferrer",className:s.visitLink,style:null==x?void 0:x.link},{children:[i(b,{size:14}),"Visit Link"]})),i("span",e({className:s.skeletonPendingActionHint,style:null!==(k=null==x?void 0:x.hint)&&void 0!==k?k:null===(p=null==N?void 0:N.pending)||void 0===p?void 0:p.actionHint},{children:"to view details"}))]}))]}))]}))}))};export{r as default};
|
|
2
2
|
//# sourceMappingURL=GptWebCitationSkeleton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var i=function(i){return i?i.replace(/\\"/g,'"').replace(/\\'/g,"'").trim():""},t=function(i){if(null==i?void 0:i.trim()){var t=i.trim();if(!/^(javascript|data|vbscript):/i.test(t))try{var r=new URL(t);if("http:"===r.protocol||"https:"===r.protocol)return t}catch(i){if(t.startsWith("gs://"))return t}}},r=function(t){if(t)for(var r=i(t),e=0,n=[/decision strength is\s+([\d.]+)\s*%/i,/relevance score is\s+([\d.]+)\s*%/i,/confidence(?:\s+score)?(?:\s+is)?\s+([\d.]+)\s*%/i];e<n.length;e++){var a=n[e],o=r.match(a);if(null==o?void 0:o[1]){var l=Number(o[1]);if(!Number.isNaN(l))return l}}},e=function(t){if(t){var r=i(t).match(/<a\b[^>]*>(.*?)<\/a>/i);if(null==r?void 0:r[1]){var e=r[1].replace(/<[^>]*>?/gm,"").trim();if(e)return e}}},n=function(i){if(i)try{var t=new URL(i).hostname.replace(/^www\./i,""),r=t.split(".");if(r.length<2)return t;var e=r[r.length-2];return e.charAt(0).toUpperCase()+e.slice(1)}catch(i){return}},a=function(i,r){var e;return null!==(e=t(i))&&void 0!==e?e:t(r)},o=function(i){var r,e,n,a=t(null===(r=null==i?void 0:i.imageMetadata)||void 0===r?void 0:r.signed_url);if(a)return a;var o=null===(n=null===(e=null==i?void 0:i.imageMetadata)||void 0===e?void 0:e.gs_uri)||void 0===n?void 0:n.trim();return(null==o?void 0:o.startsWith("gs://"))?o:void 0},l=function(a){var l,c,u=i(a.content);return{citationId:a.citationId,content:u,citationType:a.citationType,citationUrl:t(a.citationUrl),highlightedUrl:a.highlightedUrl?t(a.highlightedUrl):void 0,topic:null!==(l=e(u))&&void 0!==l?l:"Web Citation",relevanceScore:null!==(c=r(u))&&void 0!==c?c:0,learnedFrom:n(a.citationUrl),web_citation_gcs_url:o(a),userId:a.userId,userName:a.userName,userEmail:a.userEmail,db:a.db,imageMetadata:a.imageMetadata}};export{n as extractLearnedFromUrl,r as extractRelevanceScoreFromContent,e as extractTopicFromContent,o as getWebCitationImageUrl,l as mapCitationDataToDisplay,a as resolveSkeletonVisitUrl,t as sanitizeExternalUrl};
|
|
2
2
|
//# sourceMappingURL=citationData.utils.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e="520px",t="3.25rem",n=function(n,i){if(void 0===i&&(i=!0),!i){var o=null!=n?n:e;return{contentHeight:o,gptBodyHeight:o,panelHeight:o}}if(n)return{contentHeight:n,gptBodyHeight:n,panelHeight:"calc(".concat(n," + ").concat(t,")")};var c="calc(".concat(e," - ").concat(t,")");return{contentHeight:c,gptBodyHeight:c,panelHeight:e}},i=function(e){return{height:e,minHeight:e,maxHeight:e,width:"100%",display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}},o=function(){return{flex:1,minHeight:0,maxHeight:"none",overflow:"hidden",display:"flex",flexDirection:"column"}};export{i as getFixedPanelStyle,o as getFixedWebContentStyle,n as resolveFixedHeightLayout};
|
|
2
|
+
//# sourceMappingURL=fixedHeight.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixedHeight.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";var n=function(n){if(n)return i({},n)},l=function(n,l){return{row:i(i({},null==n?void 0:n.row),null==l?void 0:l.row),hint:i(i({},null==n?void 0:n.hint),null==l?void 0:l.hint),link:i(i({},null==n?void 0:n.link),null==l?void 0:l.link)}},o=function(i,n){var o,v,u=null==i?void 0:i.visitLink,t="image"===n?null===(o=null==i?void 0:i.image)||void 0===o?void 0:o.visitLink:null===(v=null==i?void 0:i.skeleton)||void 0===v?void 0:v.visitLink;return l(u,t)};export{l as mergeVisitLinkStyles,n as resolveInlineStyle,o as resolveWebCitationVisitLinkStyles};
|
|
2
|
+
//# sourceMappingURL=styleOverrides.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleOverrides.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";
|
|
1
|
+
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IGptWebCitationProps } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Composite citation component: GPT reasoning panel with an optional web citation view.
|
|
5
|
+
*
|
|
6
|
+
* Import:
|
|
7
|
+
* ```tsx
|
|
8
|
+
* import GptWebCitation from "@e-llm-studio/citation/GptWebCitation";
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @see {@link IGptWebCitationProps} for full prop documentation (IDE hover hints).
|
|
12
|
+
*/
|
|
3
13
|
declare const GptWebCitation: React.FC<IGptWebCitationProps>;
|
|
4
14
|
export default GptWebCitation;
|
|
5
15
|
//# sourceMappingURL=GptWebCitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GptWebCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAAE,oBAAoB,EAAuD,MAAM,SAAS,CAAC;AAmGpG;;;;;;;;;GASG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8QlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { IGptWebCitationImageIconsConfig, IGptWebCitationImageStyles, IGptWebCitationSkeletonStyles, IGptWebCitationVisitLinkStyles } from "./types";
|
|
1
2
|
type GptWebCitationImageCitationProps = {
|
|
2
3
|
citationImage: string;
|
|
3
4
|
citationUrl?: string;
|
|
5
|
+
skeletonVisitUrl?: string;
|
|
4
6
|
showExpandImageButton?: boolean;
|
|
7
|
+
iconsConfig?: IGptWebCitationImageIconsConfig;
|
|
8
|
+
styles?: IGptWebCitationImageStyles;
|
|
9
|
+
visitLinkStyles?: IGptWebCitationVisitLinkStyles;
|
|
10
|
+
skeletonStyles?: IGptWebCitationSkeletonStyles;
|
|
11
|
+
skeletonVisitLinkStyles?: IGptWebCitationVisitLinkStyles;
|
|
12
|
+
isFixedHeight?: boolean;
|
|
5
13
|
};
|
|
6
|
-
declare const GptWebCitationImageCitation: ({ citationImage, citationUrl, showExpandImageButton, }: GptWebCitationImageCitationProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const GptWebCitationImageCitation: ({ citationImage, citationUrl, skeletonVisitUrl, showExpandImageButton, iconsConfig, styles: styleOverrides, visitLinkStyles, skeletonStyles, skeletonVisitLinkStyles, isFixedHeight, }: GptWebCitationImageCitationProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
15
|
export default GptWebCitationImageCitation;
|
|
8
16
|
//# sourceMappingURL=GptWebCitationImageCitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationImageCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageCitation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageCitation.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAIjB,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,uBAAuB,CAAC,EAAE,8BAA8B,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAIF,QAAA,MAAM,2BAA2B,2LAW9B,gCAAgC,4CAwIlC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { IGptWebCitationFullScreenStyles } from "./types";
|
|
2
3
|
type GptWebCitationImageFullScreenViewProps = {
|
|
3
4
|
src: string;
|
|
4
5
|
onClose: () => void;
|
|
6
|
+
styles?: IGptWebCitationFullScreenStyles;
|
|
5
7
|
};
|
|
6
|
-
declare const GptWebCitationImageFullScreenView: ({ src, onClose, }: GptWebCitationImageFullScreenViewProps) => React.ReactPortal;
|
|
8
|
+
declare const GptWebCitationImageFullScreenView: ({ src, onClose, styles: styleOverrides, }: GptWebCitationImageFullScreenViewProps) => React.ReactPortal;
|
|
7
9
|
export default GptWebCitationImageFullScreenView;
|
|
8
10
|
//# sourceMappingURL=GptWebCitationImageFullScreenView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationImageFullScreenView.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageFullScreenView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageFullScreenView.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageFullScreenView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAI1D,KAAK,sCAAsC,GAAG;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,+BAA+B,CAAC;CAC1C,CAAC;AAQF,QAAA,MAAM,iCAAiC,8CAIpC,sCAAsC,sBAgDxC,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ElementType } from "react";
|
|
2
|
+
import { IGptWebCitationSkeletonStyles, IGptWebCitationVisitLinkStyles } from "./types";
|
|
3
|
+
export type GptWebCitationSkeletonStatus = "pending" | "error";
|
|
4
|
+
export interface GptWebCitationSkeletonProps {
|
|
5
|
+
status: GptWebCitationSkeletonStatus;
|
|
6
|
+
ExternalLinkIcon?: ElementType;
|
|
7
|
+
citationUrl?: string;
|
|
8
|
+
styles?: IGptWebCitationSkeletonStyles;
|
|
9
|
+
visitLinkStyles?: IGptWebCitationVisitLinkStyles;
|
|
10
|
+
isFixedHeight?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const GptWebCitationSkeleton: ({ status, ExternalLinkIcon, citationUrl, styles: styleOverrides, visitLinkStyles, isFixedHeight, }: GptWebCitationSkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
13
|
export default GptWebCitationSkeleton;
|
|
3
14
|
//# sourceMappingURL=GptWebCitationSkeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationSkeleton.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationSkeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GptWebCitationSkeleton.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAIxF,MAAM,MAAM,4BAA4B,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/D,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,4BAA4B,CAAC;IACrC,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,QAAA,MAAM,sBAAsB,uGAOzB,2BAA2B,4CAqF7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IGptWebCitationTestProps } from "./types";
|
|
2
|
-
declare const GptWebCitationTest: ({ gptCitation, isWebCitation, webCitationData: webCitationDataProp, sourceModel, learnedFrom, showWebCitation: showWebCitationProp, onGenerateWebCitation,
|
|
2
|
+
declare const GptWebCitationTest: ({ gptCitation, isWebCitation, webCitationData: webCitationDataProp, sourceModel, learnedFrom, showWebCitation: showWebCitationProp, onGenerateWebCitation, webCitationStatus: webCitationStatusProp, showExpandImageButton, showGptMaximizeButton, iconsConfig, isFixedHeight, styles, }: IGptWebCitationTestProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default GptWebCitationTest;
|
|
4
4
|
//# sourceMappingURL=GptWebCitationTest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationTest.tsx"],"names":[],"mappings":"AAQA,OAAO,
|
|
1
|
+
{"version":3,"file":"GptWebCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationTest.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAwB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AA2BzE,QAAA,MAAM,kBAAkB,6RAcrB,wBAAwB,4CAoE1B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebCitationSampleResponse.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/WebCitationSampleResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,4BAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"WebCitationSampleResponse.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/WebCitationSampleResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,4BAA4B,EAAE,uBAmB1C,CAAA;AAGD,eAAO,MAAM,mCAAmC,EAAE,uBAGjD,CAAC"}
|