@e-llm-studio/citation 0.0.217 → 0.0.219
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 +54 -31
- 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/types.js +2 -0
- package/dist/cjs/features/GptWebCitation/types.js.map +1 -0
- package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js +1 -1
- 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/types.js +2 -0
- package/dist/features/GptWebCitation/types.js.map +1 -0
- package/dist/features/IngestionStatus/IngestionStatusComponent.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitation.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/types.d.ts +34 -12
- package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +2 -0
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -1
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -683,7 +683,23 @@ const reasoningData = {
|
|
|
683
683
|
|
|
684
684
|
In **GPT view**, the component renders the standard GPT citation panel with a **View Web Citation** button on the left and the document source link on the right (inside the GPT citation footer). In **Web Citation view**, it shows a screenshot snapshot of the source page (when available), a relevance score badge, visit links, and a **View GPT Citation** toggle to switch back.
|
|
685
685
|
|
|
686
|
-
The component is **presentational** — it does not fetch web citations. The parent owns `webCitationData`, `webCitationStatus`, and view toggling.
|
|
686
|
+
The component is **presentational** — it does not fetch web citations. The parent owns `webCitationData`, `webCitationStatus`, and view toggling via the required `citationType` prop.
|
|
687
|
+
|
|
688
|
+
### `CitationType`
|
|
689
|
+
|
|
690
|
+
Import from `@e-llm-studio/citation`:
|
|
691
|
+
|
|
692
|
+
```tsx
|
|
693
|
+
import { CitationType } from '@e-llm-studio/citation';
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
| Value | GPT view | Web view | Toggle | Default view |
|
|
697
|
+
| --- | --- | --- | --- | --- |
|
|
698
|
+
| `CitationType.GPT` | yes | no | no | GPT only |
|
|
699
|
+
| `CitationType.WEB` | no | yes | no | Web only |
|
|
700
|
+
| `CitationType.GPT_WEB` | yes | yes | yes | Web (uncontrolled) |
|
|
701
|
+
|
|
702
|
+
`citationType` is **required**. Use `CitationType.GPT_WEB` when users should switch between GPT reasoning and web screenshot citations.
|
|
687
703
|
|
|
688
704
|
### Features
|
|
689
705
|
|
|
@@ -716,6 +732,7 @@ import {
|
|
|
716
732
|
type IGptWebCitationSkeletonStyles,
|
|
717
733
|
type IGptWebCitationVisitLinkStyles,
|
|
718
734
|
type IGptWebCitationFullScreenStyles,
|
|
735
|
+
CitationType,
|
|
719
736
|
} from '@e-llm-studio/citation';
|
|
720
737
|
```
|
|
721
738
|
|
|
@@ -725,7 +742,7 @@ import {
|
|
|
725
742
|
import { useState } from 'react';
|
|
726
743
|
import { ChevronDown, ChevronUp, ExternalLink, Maximize2, X } from 'lucide-react';
|
|
727
744
|
import GptWebCitation from '@e-llm-studio/citation/GptWebCitation';
|
|
728
|
-
import type
|
|
745
|
+
import { CitationType, type GptWebCitationStatus } from '@e-llm-studio/citation';
|
|
729
746
|
|
|
730
747
|
const gptCitation = {
|
|
731
748
|
item: {
|
|
@@ -776,7 +793,7 @@ function CitationPanel() {
|
|
|
776
793
|
<GptWebCitation
|
|
777
794
|
gptCitation={gptCitation}
|
|
778
795
|
defaultCitationUrl="https://example.com/article"
|
|
779
|
-
|
|
796
|
+
citationType={CitationType.GPT_WEB}
|
|
780
797
|
webCitationData={webCitationData}
|
|
781
798
|
webCitationStatus={webCitationStatus}
|
|
782
799
|
showWebCitation={showWebCitation}
|
|
@@ -811,7 +828,7 @@ const webCitationData = {
|
|
|
811
828
|
<GptWebCitation
|
|
812
829
|
gptCitation={gptCitation}
|
|
813
830
|
defaultCitationUrl="https://example.com/article"
|
|
814
|
-
|
|
831
|
+
citationType={CitationType.GPT_WEB}
|
|
815
832
|
webCitationData={webCitationData}
|
|
816
833
|
webCitationStatus="success"
|
|
817
834
|
showWebCitation={true}
|
|
@@ -831,13 +848,27 @@ Use `resolveSkeletonVisitUrl(highlightedUrl, defaultCitationUrl)` from `@e-llm-s
|
|
|
831
848
|
|
|
832
849
|
### Usage 3: GPT-Only Mode (No Web Citation)
|
|
833
850
|
|
|
834
|
-
Set `
|
|
851
|
+
Set `citationType={CitationType.GPT}` to render only the GPT citation with no toggle button. `defaultCitationUrl` is still required by the prop contract but is unused in GPT-only mode:
|
|
852
|
+
|
|
853
|
+
```tsx
|
|
854
|
+
<GptWebCitation
|
|
855
|
+
gptCitation={gptCitation}
|
|
856
|
+
defaultCitationUrl="https://example.com/article"
|
|
857
|
+
citationType={CitationType.GPT}
|
|
858
|
+
/>
|
|
859
|
+
```
|
|
860
|
+
|
|
861
|
+
### Usage 3b: Web-Only Mode (No GPT Citation)
|
|
862
|
+
|
|
863
|
+
Set `citationType={CitationType.WEB}` to render only the web citation panel with no toggle:
|
|
835
864
|
|
|
836
865
|
```tsx
|
|
837
866
|
<GptWebCitation
|
|
838
867
|
gptCitation={gptCitation}
|
|
839
868
|
defaultCitationUrl="https://example.com/article"
|
|
840
|
-
|
|
869
|
+
citationType={CitationType.WEB}
|
|
870
|
+
webCitationData={webCitationData}
|
|
871
|
+
webCitationStatus="success"
|
|
841
872
|
/>
|
|
842
873
|
```
|
|
843
874
|
|
|
@@ -849,7 +880,7 @@ Hide the web citation screenshot expand button:
|
|
|
849
880
|
<GptWebCitation
|
|
850
881
|
gptCitation={gptCitation}
|
|
851
882
|
defaultCitationUrl="https://example.com/article"
|
|
852
|
-
|
|
883
|
+
citationType={CitationType.GPT_WEB}
|
|
853
884
|
webCitationData={webCitationData}
|
|
854
885
|
webCitationStatus="success"
|
|
855
886
|
showWebCitation={true}
|
|
@@ -863,7 +894,7 @@ Hide the GPT citation header maximize/expand icon:
|
|
|
863
894
|
<GptWebCitation
|
|
864
895
|
gptCitation={gptCitation}
|
|
865
896
|
defaultCitationUrl="https://example.com/article"
|
|
866
|
-
|
|
897
|
+
citationType={CitationType.GPT_WEB}
|
|
867
898
|
showGptMaximizeButton={false}
|
|
868
899
|
/>
|
|
869
900
|
```
|
|
@@ -884,7 +915,7 @@ const sharedContentHeight = '384px';
|
|
|
884
915
|
bodyHeight: sharedContentHeight,
|
|
885
916
|
}}
|
|
886
917
|
defaultCitationUrl="https://example.com/article"
|
|
887
|
-
|
|
918
|
+
citationType={CitationType.GPT_WEB}
|
|
888
919
|
webCitationData={webCitationData}
|
|
889
920
|
webCitationStatus="success"
|
|
890
921
|
showGptMaximizeButton={true}
|
|
@@ -976,7 +1007,7 @@ Legacy flat keys (`gptCitationWrapper`, `footerAction`, `webCitationButton`) sti
|
|
|
976
1007
|
<GptWebCitation
|
|
977
1008
|
gptCitation={gptCitation}
|
|
978
1009
|
defaultCitationUrl="https://example.com/article"
|
|
979
|
-
|
|
1010
|
+
citationType={CitationType.GPT_WEB}
|
|
980
1011
|
webCitationData={data}
|
|
981
1012
|
webCitationStatus={status}
|
|
982
1013
|
styles={{
|
|
@@ -1015,7 +1046,7 @@ Set `isFixedHeight={true}` when you want GPT and web citation views to share the
|
|
|
1015
1046
|
bodyHeight: '384px', // optional — customizes inner content height
|
|
1016
1047
|
}}
|
|
1017
1048
|
defaultCitationUrl="https://example.com/article"
|
|
1018
|
-
|
|
1049
|
+
citationType={CitationType.GPT_WEB}
|
|
1019
1050
|
isFixedHeight
|
|
1020
1051
|
webCitationData={webCitationData}
|
|
1021
1052
|
webCitationStatus="success"
|
|
@@ -1026,8 +1057,8 @@ Set `isFixedHeight={true}` when you want GPT and web citation views to share the
|
|
|
1026
1057
|
|
|
1027
1058
|
| Scenario | Panel height |
|
|
1028
1059
|
| --- | --- |
|
|
1029
|
-
| `isFixedHeight` + `
|
|
1030
|
-
| `isFixedHeight` + `
|
|
1060
|
+
| `isFixedHeight` + `CitationType.GPT_WEB` (toggle footer present) | `520px` default, or `calc(bodyHeight + 3.25rem)` when `gptCitation.bodyHeight` is set |
|
|
1061
|
+
| `isFixedHeight` + `CitationType.GPT` or `CitationType.WEB` | `520px` default, or `gptCitation.bodyHeight` when set |
|
|
1031
1062
|
|
|
1032
1063
|
`isFixedHeight` applies flex layout and contained images automatically. For manual per-element styling without fixed dimensions, use `styles` (Usage 5) instead.
|
|
1033
1064
|
|
|
@@ -1037,11 +1068,11 @@ Set `isFixedHeight={true}` when you want GPT and web citation views to share the
|
|
|
1037
1068
|
|------|------|---------|-------------|
|
|
1038
1069
|
| `gptCitation` | `IGptCitationConfig` | **required** | GPT citation config passed to `CognitiveInternalgptCoreComponent` |
|
|
1039
1070
|
| `defaultCitationUrl` | `string` | **required** | Fallback source URL for **Visit Link** in pending/error skeletons. Used when `webCitationData.highlightedUrl` is not yet available |
|
|
1040
|
-
| `
|
|
1071
|
+
| `citationType` | `CitationType` | **required** | `GPT` = GPT only, `WEB` = web only, `GPT_WEB` = both views with toggle (default web view when uncontrolled) |
|
|
1041
1072
|
| `webCitationData` | `IWebCitationApiResponse` | — | Web citation API response (screenshot metadata, URLs, optional message) |
|
|
1042
1073
|
| `webCitationStatus` | `"pending"` \| `"success"` \| `"error"` | inferred | Lifecycle status from parent API call. Inferred from `webCitationData` when omitted |
|
|
1043
|
-
| `showWebCitation` | `boolean` | `
|
|
1044
|
-
| `onGenerateWebCitation` | `() => void` | — | Called when
|
|
1074
|
+
| `showWebCitation` | `boolean` | web for `GPT_WEB` (uncontrolled) | Active view when `citationType` is `GPT_WEB`. Ignored for `GPT` / `WEB` |
|
|
1075
|
+
| `onGenerateWebCitation` | `() => void` | — | Called when the user clicks **View Web Citation** and no cached screenshot exists. Parent owns fetch lifecycle (when to call, deduplication, reset) |
|
|
1045
1076
|
| `onToggleCitationView` | `() => void` | — | Called when user toggles between GPT and web views |
|
|
1046
1077
|
| `showExpandImageButton` | `boolean` | `true` | Show/hide full-screen expand on screenshot |
|
|
1047
1078
|
| `showGptMaximizeButton` | `boolean` | `true` | Show/hide GPT header maximize icon (`gptCitation.disableMaximize: true` when `false`) |
|
|
@@ -1077,7 +1108,7 @@ Pass `webCitationStatus="pending"` explicitly while your fetch is in flight (bef
|
|
|
1077
1108
|
| `headerTitle` | `string` | Panel header title |
|
|
1078
1109
|
| `index` | `number` | Citation index |
|
|
1079
1110
|
| `iconsConfig` | `object` | Icon components (`ChevronDownIcon`, `ChevronUpIcon`, `MaximizeIcon`, `CloseIcon`) |
|
|
1080
|
-
| `DocumentTitle` | `string` | Source document label shown in the GPT footer (right side). Hidden when `
|
|
1111
|
+
| `DocumentTitle` | `string` | Source document label shown in the GPT footer (right side). Hidden when `citationType` is `GPT_WEB` or `WEB` |
|
|
1081
1112
|
| `previewCallback` | `() => void` | Called when the source link is clicked |
|
|
1082
1113
|
| `bodyHeight` | `string` | Optional fixed GPT content body height (pair with `styles.webCitation.content`) |
|
|
1083
1114
|
| `disableMaximize` | `boolean` | Disable GPT header fullscreen maximize button (or use `showGptMaximizeButton={false}`) |
|
|
@@ -1135,22 +1166,14 @@ Exported from `@e-llm-studio/citation`:
|
|
|
1135
1166
|
|
|
1136
1167
|
| State | What renders |
|
|
1137
1168
|
|-------|--------------|
|
|
1138
|
-
| `
|
|
1139
|
-
| `
|
|
1140
|
-
| `
|
|
1141
|
-
| `
|
|
1142
|
-
| `
|
|
1169
|
+
| `CitationType.GPT` | GPT citation only (no toggle) |
|
|
1170
|
+
| `CitationType.WEB` | Web citation only (no toggle) |
|
|
1171
|
+
| `CitationType.GPT_WEB`, `showWebCitation={false}` | GPT citation + **View Web Citation** button |
|
|
1172
|
+
| `CitationType.GPT_WEB`, `showWebCitation={true}`, `webCitationStatus="pending"` | Shimmer skeleton + optional **Visit Link** (`highlightedUrl` → `defaultCitationUrl`) |
|
|
1173
|
+
| `CitationType.GPT_WEB`, `showWebCitation={true}`, `webCitationStatus="success"` | Screenshot (pending skeleton while image loads) + footer **Visit Link** |
|
|
1174
|
+
| `CitationType.GPT_WEB`, `showWebCitation={true}`, `webCitationStatus="error"` | Error skeleton ("No preview available") + inline **Visit Link** |
|
|
1143
1175
|
| `isFixedHeight={true}` | GPT and web outer panels share height; screenshot `object-fit: contain`; skeleton fills content area |
|
|
1144
1176
|
|
|
1145
|
-
#### Auto-fetch
|
|
1146
|
-
|
|
1147
|
-
When `isWebCitation` is true and the web view is open with no cached screenshot, `onGenerateWebCitation` is called:
|
|
1148
|
-
|
|
1149
|
-
1. Once on mount (per `webCitationData.citationId`)
|
|
1150
|
-
2. Again when the user clicks **View Web Citation** and no image is cached
|
|
1151
|
-
|
|
1152
|
-
The parent should set `webCitationStatus="pending"`, fetch, then update `webCitationData` and status.
|
|
1153
|
-
|
|
1154
1177
|
#### Error skeleton
|
|
1155
1178
|
|
|
1156
1179
|
The error state shows a fixed title ("No preview available"), a restriction message ("This website restricts external previews"), and an inline **Visit Link** when a source URL is available.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),o=require("../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),l=require("./GptWebCitationImageCitation.js"),a=require("./GptWebCitationSkeleton.js"),s=require("./utils/citationData.utils.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),o=require("../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),l=require("./GptWebCitationImageCitation.js"),a=require("./GptWebCitationSkeleton.js"),s=require("./types.js"),r=require("./utils/citationData.utils.js"),u=require("./utils/styleOverrides.utils.js"),d=require("./utils/fixedHeight.utils.js"),g=require("./GptWebCitation.module.css.js"),c=require("../../assests/svg/NeuralNetworkIcon.js"),v=function(t){var o=t.variant,l=t.disabled,a=t.onClick,s=t.title,r=t.style;return i.jsx("button",e.__assign({type:"button",className:g.default.webCitationButton,onClick:a,disabled:l,title:s,style:r},{children:"gpt"===o?i.jsxs(i.Fragment,{children:[i.jsx(c.default,{className:g.default.webCitationButtonIcon}),"View GPT Citation"]}):i.jsxs(i.Fragment,{children:[i.jsx(n.Globe,{size:24,className:g.default.webCitationButtonIcon}),"View Web Citation"]})}))};exports.default=function(c){var p,C,b,_=c.gptCitation,w=c.defaultCitationUrl,f=c.citationType,m=c.webCitationData,x=c.topic,y=c.sourceLabel,h=c.relevanceScore,k=c.learnedFrom,j=c.webCitationStatus,F=c.onGenerateWebCitation,S=c.showWebCitation,I=c.onToggleCitationView,L=c.showExpandImageButton,W=void 0===L||L,B=c.showGptMaximizeButton,H=c.iconsConfig,T=c.isFixedHeight,N=void 0!==T&&T,V=c.styles,M=t.useMemo(function(){return function(i){var t,n,o,l,a,s,r,d,g,c,v;return{container:null==i?void 0:i.container,gptWrapper:e.__assign(e.__assign({},null===(t=null==i?void 0:i.gptCitation)||void 0===t?void 0:t.wrapper),null==i?void 0:i.gptCitationWrapper),gptFooterAction:e.__assign(e.__assign({},null===(n=null==i?void 0:i.gptCitation)||void 0===n?void 0:n.footerAction),null==i?void 0:i.footerAction),gptToggleButton:e.__assign(e.__assign({},null===(o=null==i?void 0:i.gptCitation)||void 0===o?void 0:o.toggleButton),null==i?void 0:i.webCitationButton),webPanel:e.__assign(e.__assign({},null==i?void 0:i.container),null===(l=null==i?void 0:i.webCitation)||void 0===l?void 0:l.panel),webHeader:null===(a=null==i?void 0:i.webCitation)||void 0===a?void 0:a.header,webContent:null===(s=null==i?void 0:i.webCitation)||void 0===s?void 0:s.content,webFooter:null===(r=null==i?void 0:i.webCitation)||void 0===r?void 0:r.footer,webToggleButton:e.__assign(e.__assign({},null===(d=null==i?void 0:i.webCitation)||void 0===d?void 0:d.toggleButton),null==i?void 0:i.webCitationButton),webLearnedFrom:null===(g=null==i?void 0:i.webCitation)||void 0===g?void 0:g.learnedFrom,webImage:null===(c=null==i?void 0:i.webCitation)||void 0===c?void 0:c.image,webSkeleton:null===(v=null==i?void 0:i.webCitation)||void 0===v?void 0:v.skeleton,webImageVisitLink:u.resolveWebCitationVisitLinkStyles(null==i?void 0:i.webCitation,"image"),webSkeletonVisitLink:u.resolveWebCitationVisitLinkStyles(null==i?void 0:i.webCitation,"skeleton")}}(V)},[V]),q=s.allowsGptCitationView(f),E=s.allowsWebCitationView(f),G=s.showsCitationViewToggle(f),z=t.useMemo(function(){return N?d.resolveFixedHeightLayout(_.bodyHeight,G):null},[N,_.bodyHeight,G]),U=t.useMemo(function(){return z?d.getFixedPanelStyle(z.panelHeight):void 0},[z]),A=t.useMemo(function(){var e,i;return{MaximizeIcon:null!==(e=null==H?void 0:H.MaximizeIcon)&&void 0!==e?e:null===(i=_.iconsConfig)||void 0===i?void 0:i.MaximizeIcon,ExternalLinkIcon:null==H?void 0:H.ExternalLinkIcon}},[H,null===(p=_.iconsConfig)||void 0===p?void 0:p.MaximizeIcon]),D=t.useMemo(function(){return e.__assign(e.__assign(e.__assign(e.__assign({},_),N&&z?{bodyHeight:z.gptBodyHeight}:{}),{disableMaximize:void 0!==B?!B:_.disableMaximize}),G||f===s.CitationType.WEB?{DocumentTitle:void 0,previewCallback:void 0}:{})},[_,B,G,f,N,z]),P=t.useState(f!==s.CitationType.GPT),O=P[0],R=P[1],J=f!==s.CitationType.GPT&&(f===s.CitationType.WEB||(null!=S?S:O)),K=void 0!==S,Q=t.useMemo(function(){return m?r.mapCitationDataToDisplay(m):null},[m]),X=null!==(C=null!=x?x:null==Q?void 0:Q.topic)&&void 0!==C?C:"Web Citation",Y=null!==(b=null!=h?h:null==Q?void 0:Q.relevanceScore)&&void 0!==b?b:0,Z=null!=k?k:null==Q?void 0:Q.learnedFrom,$=null==Q?void 0:Q.citationUrl,ee=r.resolveSkeletonVisitUrl(null==Q?void 0:Q.highlightedUrl,w),ie=r.getWebCitationImageUrl(m),te=t.useMemo(function(){return function(e,i,t){return t?"success":e||(i?"error":"pending")}(j,m,ie)},[j,m,ie]),ne=t.useCallback(function(){I?I():K||R(!1)},[I,K]),oe=t.useCallback(function(){I?I():K||R(!0),ie||"success"===te||null==F||F()},[I,K,ie,te,F]),le=null!=y?y:"Source: Web Citation > ".concat(X),ae=function(t){var n=!!D.DocumentTitle,l=[g.default.gptCitationWrapper,n?g.default.gptCitationWrapperWithSource:"",N?g.default.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" ");return i.jsxs("div",e.__assign({className:l,style:e.__assign(e.__assign({},M.gptWrapper),U)},{children:[i.jsx(o.default,e.__assign({},D,{splitterCustomStyle:!0})),t&&(n?i.jsx("div",e.__assign({className:g.default.gptCitationFooterAction,style:M.gptFooterAction},{children:t})):i.jsx("div",e.__assign({className:[g.default.gptCitationToggleFooter,N?g.default.gptCitationToggleFooterFixedHeight:""].filter(Boolean).join(" "),style:M.gptFooterAction},{children:t})))]}))};return q&&!J?i.jsx("div",e.__assign({className:g.default.overlay,style:M.container},{children:ae(G?i.jsx(v,{variant:"web",onClick:oe,title:"View web-based citation for this source.",style:M.gptToggleButton}):void 0)})):E?i.jsxs("div",e.__assign({className:[g.default.panel,N?g.default.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:e.__assign(e.__assign({},M.webPanel),U)},{children:[i.jsxs("div",e.__assign({className:g.default.panelHeader,style:M.webHeader},{children:[i.jsx("span",e.__assign({className:g.default.panelSource},{children:le})),i.jsx("div",e.__assign({className:g.default.panelHeaderActions},{children:Y>0&&i.jsxs("div",e.__assign({className:g.default.confidenceBadge,title:"Decision strength"},{children:[i.jsx(n.Sparkles,{size:14}),Y,"%"]}))}))]})),i.jsx("div",e.__assign({className:[g.default.panelContent,g.default.panelContentExpanded,N?g.default.panelContentFixedHeight:""].filter(Boolean).join(" "),style:e.__assign(e.__assign({},M.webContent),N?d.getFixedWebContentStyle():void 0)},{children:"pending"===te?i.jsx(a.default,{status:"pending",citationUrl:ee,ExternalLinkIcon:A.ExternalLinkIcon,styles:M.webSkeleton,visitLinkStyles:M.webSkeletonVisitLink,isFixedHeight:N}):"success"===te&&ie?i.jsx(l.default,{citationImage:ie,citationUrl:$,skeletonVisitUrl:ee,showExpandImageButton:W,iconsConfig:A,styles:M.webImage,visitLinkStyles:M.webImageVisitLink,skeletonStyles:M.webSkeleton,skeletonVisitLinkStyles:M.webSkeletonVisitLink,isFixedHeight:N}):i.jsx(a.default,{status:"error",citationUrl:ee,ExternalLinkIcon:A.ExternalLinkIcon,styles:M.webSkeleton,visitLinkStyles:M.webSkeletonVisitLink,isFixedHeight:N})})),i.jsxs("div",e.__assign({className:g.default.panelFooter,style:M.webFooter},{children:[G?i.jsx(v,{variant:"gpt",onClick:ne,style:M.webToggleButton}):null,Z&&i.jsxs("span",e.__assign({className:g.default.learnedFrom,style:M.webLearnedFrom},{children:["Learned From ",Z]}))]}))]})):i.jsx("div",e.__assign({className:g.default.overlay,style:M.container},{children:ae()}))};
|
|
2
2
|
//# sourceMappingURL=GptWebCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".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)}(),exports.default={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"};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".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;margin-left:auto}.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)}(),exports.default={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"};
|
|
2
2
|
//# sourceMappingURL=GptWebCitation.module.css.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CitationType=void 0,(t=exports.CitationType||(exports.CitationType={})).GPT="gpt",t.WEB="web",t.GPT_WEB="gptWeb";exports.allowsGptCitationView=function(t){return t===exports.CitationType.GPT||t===exports.CitationType.GPT_WEB},exports.allowsWebCitationView=function(t){return t===exports.CitationType.WEB||t===exports.CitationType.GPT_WEB},exports.showsCitationViewToggle=function(t){return t===exports.CitationType.GPT_WEB};
|
|
2
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),s=require("./ingestion.module.css.js"),t=require("./useIngestionStatus.js"),r=require("lucide-react"),i={ingested:{label:"Ingested",className:s.default.ingested},failed:{label:"Ingestion Failed",className:s.default.failed},in_progress:{label:"Ingesting...",className:s.default.inProgress},pending:{label:"Pending",className:s.default.pending}};var o=function(t){var o=t.status,a=t.label,l=t.percentage,u=t.customConfig,c=t.redirectionLink;if(u)return n.jsx("span",e.__assign({className:s.default.chip,style:{border:"1px solid ".concat(u.borderColor),background:u.background,color:u.color}},{children:null!=a?a:u.label}));if("custom"===o)return null;var d=i[o];if(!d)return null;var g="in_progress"===o&&void 0!==l;return n.jsxs("span",e.__assign({className:"".concat(s.default.chip," ").concat(d.className),style:{display:"inline-flex",alignItems:"center",gap:6}},{children:[g?n.jsxs(n.Fragment,{children:[null!=a?a:"Ingesting",n.jsx("span",{className:s.default.dot}),"".concat(l,"%")]}):null!=a?a:d.label,c&&n.jsx(r.ExternalLink,{size:14,style:{cursor:"pointer",flexShrink:0},onClick:function(e){e.stopPropagation(),window.open(c,"_blank","noopener,noreferrer")}})]}))},a=new Set(["DONE","COMPLETED","FAILED"]);exports.IngestionStatusChip=o,exports.IngestionStatusComponent=function(e){var s,r,i,l,u=e.ingestionId,c=e.status,d=e.wsBaseUrl,g=e.showPercentage,p=void 0===g||g,f=e.statusMap,v=e.customStatusConfigs,m=e.redirectionLink;console.log("Component:",m);var b=!!c&&a.has(c.toUpperCase()),x=t.useIngestionWebSocket(!b&&u?u:null,d).data,C=b?c:null!==(r=null!==(s=null==x?void 0:x.ingestionStatus)&&void 0!==s?s:c)&&void 0!==r?r:"",I=C?function(e,n){if(!e)return"custom";if(n){if(void 0!==n[e])return n[e];var s=e.toUpperCase();if(void 0!==n[s])return n[s]}return"custom"}(C,f):"pending",h=v?null!==(l=null!==(i=v[I])&&void 0!==i?i:v[C])&&void 0!==l?l:v[C.toUpperCase()]:void 0,j=function(){if(!b&&p)return void 0!==(null==x?void 0:x.currentProgress)?Math.max(5,x.currentProgress):"in_progress"===I?5:void 0}();return n.jsx(o,{status:I,percentage:j,customConfig:h,redirectionLink:m})};
|
|
2
2
|
//# sourceMappingURL=IngestionStatusComponent.js.map
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./features/CodeCitation/CodeCitation.js"),t=require("./features/ProjectAccordion/ProjectAccordion.js"),i=require("./features/BookCitation/BookCitation.js"),o=require("./features/Bookemon/Bookemon.js"),r=require("./features/PdfEditorCitation/PdfEditorCitation.js"),n=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),p=require("./features/ChatCitation/ChatCitationRenderer.js"),l=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),d=require("./features/PdfViewer/PdfViewer.js"),f=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),g=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),x=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),m=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),c=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),q=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),j=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),R=require("./features/TableCitation/TableCitationContent.js"),I=require("./features/CitationViewer/CitationsViewer.js"),T=require("./features/ExcelCitation/ExcelCitations.js"),w=require("./features/ScannedDocCitation/ScannedDocCitation.js"),S=require("./features/ChatDrawer/ChatDrawer.js"),b=require("./features/ChatDrawer/constants/ChatDrawer.js"),D=require("./features/SplitterCitations/SplitterCitationsComponent.js"),E=require("./features/CognitiveCompare/CognitiveCompare.js"),W=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),v=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),A=require("./features/RulebookCitations/RuleBookCitationWrapper.js"),P=require("./features/IngestionStatus/IngestionStatusComponent.js"),h=require("./features/ManageRemainders/ManageReminders.js"),V=require("./features/GptWebCitation/GptWebCitation.js"),k=require("./features/InstantLearningCitation/InstantLearningCitationComponent.js"),G=require("./features/GptWebCitation/utils/citationData.utils.js"),U=require("./features/GptWebCitation/types.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=o.default,exports.PdfCitation=r.PdfEditorCitation,exports.CitationRenderer=n.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=p.default,exports.CognitiveDecisioningCard=l.default,exports.PdfViewer=d.default,exports.FaqCitation=f.default,exports.ImageCitationContent=g.default,exports.VideoCitationContent=x.default,exports.FileCitationContent=m.default,exports.WebCitationWithImageContent=c.default,exports.MarkdownWithImageCitation=q.default,exports.AiReasoningCitation=j.default,exports.TableCitationContent=R.default,exports.CitationsViewer=I.default,exports.ExcelCitation=T.default,exports.ScannedDocCitation=w.default,exports.ChatDrawer=S.default,exports.FILE_INGESTION_STATUS=b.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=b.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=b.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=D.default,exports.CognitiveCompare=E.default,exports.CognitiveInternalgptCoreComponent=W.default,exports.TextualGuideLinesComponent=v.default,exports.RuleBookCitationWrapper=A.default,exports.IngestionStatusChip=P.IngestionStatusChip,exports.IngestionStatusComponent=P.IngestionStatusComponent,exports.ManageReminders=h.ManageReminders,exports.GptWebCitation=V.default,exports.InstantLearningCitationWrapper=k.default,exports.extractLearnedFromUrl=G.extractLearnedFromUrl,exports.extractRelevanceScoreFromContent=G.extractRelevanceScoreFromContent,exports.extractTopicFromContent=G.extractTopicFromContent,exports.getWebCitationImageUrl=G.getWebCitationImageUrl,exports.mapCitationDataToDisplay=G.mapCitationDataToDisplay,exports.resolveSkeletonVisitUrl=G.resolveSkeletonVisitUrl,exports.sanitizeExternalUrl=G.sanitizeExternalUrl,Object.defineProperty(exports,"CitationType",{enumerable:!0,get:function(){return U.CitationType}}),exports.allowsGptCitationView=U.allowsGptCitationView,exports.allowsWebCitationView=U.allowsWebCitationView,exports.showsCitationViewToggle=U.showsCitationViewToggle;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
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,
|
|
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,useCallback as a}from"react";import{Sparkles as r,Globe as s}from"lucide-react";import d from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";import u from"./GptWebCitationImageCitation.js";import c from"./GptWebCitationSkeleton.js";import{allowsGptCitationView as v,allowsWebCitationView as p,showsCitationViewToggle as g,CitationType as m}from"./types.js";import{mapCitationDataToDisplay as b,resolveSkeletonVisitUrl as C,getWebCitationImageUrl as w}from"./utils/citationData.utils.js";import{resolveWebCitationVisitLinkStyles as f}from"./utils/styleOverrides.utils.js";import{resolveFixedHeightLayout as h,getFixedPanelStyle as k,getFixedWebContentStyle as y}from"./utils/fixedHeight.utils.js";import x from"./GptWebCitation.module.css.js";import F from"../../assests/svg/NeuralNetworkIcon.js";var I=function(o){var l=o.variant,a=o.disabled,r=o.onClick,d=o.title,u=o.style;return t("button",i({type:"button",className:x.webCitationButton,onClick:r,disabled:a,title:d,style:u},{children:e(n,"gpt"===l?{children:[t(F,{className:x.webCitationButtonIcon}),"View GPT Citation"]}:{children:[t(s,{size:24,className:x.webCitationButtonIcon}),"View Web Citation"]})}))},B=function(n){var s,F,B,S=n.gptCitation,L=n.defaultCitationUrl,H=n.citationType,N=n.webCitationData,W=n.topic,j=n.sourceLabel,T=n.relevanceScore,V=n.learnedFrom,E=n.webCitationStatus,z=n.onGenerateWebCitation,G=n.showWebCitation,A=n.onToggleCitationView,M=n.showExpandImageButton,U=void 0===M||M,D=n.showGptMaximizeButton,P=n.iconsConfig,O=n.isFixedHeight,R=void 0!==O&&O,q=n.styles,J=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:f(null==t?void 0:t.webCitation,"image"),webSkeletonVisitLink:f(null==t?void 0:t.webCitation,"skeleton")}}(q)},[q]),K=v(H),Q=p(H),X=g(H),Y=o(function(){return R?h(S.bodyHeight,X):null},[R,S.bodyHeight,X]),Z=o(function(){return Y?k(Y.panelHeight):void 0},[Y]),$=o(function(){var i,t;return{MaximizeIcon:null!==(i=null==P?void 0:P.MaximizeIcon)&&void 0!==i?i:null===(t=S.iconsConfig)||void 0===t?void 0:t.MaximizeIcon,ExternalLinkIcon:null==P?void 0:P.ExternalLinkIcon}},[P,null===(s=S.iconsConfig)||void 0===s?void 0:s.MaximizeIcon]),_=o(function(){return i(i(i(i({},S),R&&Y?{bodyHeight:Y.gptBodyHeight}:{}),{disableMaximize:void 0!==D?!D:S.disableMaximize}),X||H===m.WEB?{DocumentTitle:void 0,previewCallback:void 0}:{})},[S,D,X,H,R,Y]),ii=l(H!==m.GPT),ti=ii[0],ei=ii[1],ni=H!==m.GPT&&(H===m.WEB||(null!=G?G:ti)),oi=void 0!==G,li=o(function(){return N?b(N):null},[N]),ai=null!==(F=null!=W?W:null==li?void 0:li.topic)&&void 0!==F?F:"Web Citation",ri=null!==(B=null!=T?T:null==li?void 0:li.relevanceScore)&&void 0!==B?B:0,si=null!=V?V:null==li?void 0:li.learnedFrom,di=null==li?void 0:li.citationUrl,ui=C(null==li?void 0:li.highlightedUrl,L),ci=w(N),vi=o(function(){return function(i,t,e){return e?"success":i||(t?"error":"pending")}(E,N,ci)},[E,N,ci]),pi=a(function(){A?A():oi||ei(!1)},[A,oi]),gi=a(function(){A?A():oi||ei(!0),ci||"success"===vi||null==z||z()},[A,oi,ci,vi,z]),mi=null!=j?j:"Source: Web Citation > ".concat(ai),bi=function(n){var o=!!_.DocumentTitle,l=[x.gptCitationWrapper,o?x.gptCitationWrapperWithSource:"",R?x.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" ");return e("div",i({className:l,style:i(i({},J.gptWrapper),Z)},{children:[t(d,i({},_,{splitterCustomStyle:!0})),n&&t("div",i(o?{className:x.gptCitationFooterAction,style:J.gptFooterAction}:{className:[x.gptCitationToggleFooter,R?x.gptCitationToggleFooterFixedHeight:""].filter(Boolean).join(" "),style:J.gptFooterAction},{children:n}))]}))};return K&&!ni?t("div",i({className:x.overlay,style:J.container},{children:bi(X?t(I,{variant:"web",onClick:gi,title:"View web-based citation for this source.",style:J.gptToggleButton}):void 0)})):Q?e("div",i({className:[x.panel,R?x.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:i(i({},J.webPanel),Z)},{children:[e("div",i({className:x.panelHeader,style:J.webHeader},{children:[t("span",i({className:x.panelSource},{children:mi})),t("div",i({className:x.panelHeaderActions},{children:ri>0&&e("div",i({className:x.confidenceBadge,title:"Decision strength"},{children:[t(r,{size:14}),ri,"%"]}))}))]})),t("div",i({className:[x.panelContent,x.panelContentExpanded,R?x.panelContentFixedHeight:""].filter(Boolean).join(" "),style:i(i({},J.webContent),R?y():void 0)},{children:"pending"===vi?t(c,{status:"pending",citationUrl:ui,ExternalLinkIcon:$.ExternalLinkIcon,styles:J.webSkeleton,visitLinkStyles:J.webSkeletonVisitLink,isFixedHeight:R}):"success"===vi&&ci?t(u,{citationImage:ci,citationUrl:di,skeletonVisitUrl:ui,showExpandImageButton:U,iconsConfig:$,styles:J.webImage,visitLinkStyles:J.webImageVisitLink,skeletonStyles:J.webSkeleton,skeletonVisitLinkStyles:J.webSkeletonVisitLink,isFixedHeight:R}):t(c,{status:"error",citationUrl:ui,ExternalLinkIcon:$.ExternalLinkIcon,styles:J.webSkeleton,visitLinkStyles:J.webSkeletonVisitLink,isFixedHeight:R})})),e("div",i({className:x.panelFooter,style:J.webFooter},{children:[X?t(I,{variant:"gpt",onClick:pi,style:J.webToggleButton}):null,si&&e("span",i({className:x.learnedFrom,style:J.webLearnedFrom},{children:["Learned From ",si]}))]}))]})):t("div",i({className:x.overlay,style:J.container},{children:bi()}))};export{B 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",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};
|
|
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;margin-left:auto}.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
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var n;!function(n){n.GPT="gpt",n.WEB="web",n.GPT_WEB="gptWeb"}(n||(n={}));var t=function(t){return t===n.GPT||t===n.GPT_WEB},r=function(t){return t===n.WEB||t===n.GPT_WEB},u=function(t){return t===n.GPT_WEB};export{n as CitationType,t as allowsGptCitationView,r as allowsWebCitationView,u as showsCitationViewToggle};
|
|
2
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as n,jsxs as
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as r,Fragment as o}from"react/jsx-runtime";import i from"./ingestion.module.css.js";import{useIngestionWebSocket as s}from"./useIngestionStatus.js";import{ExternalLink as t}from"lucide-react";var l={ingested:{label:"Ingested",className:i.ingested},failed:{label:"Ingestion Failed",className:i.failed},in_progress:{label:"Ingesting...",className:i.inProgress},pending:{label:"Pending",className:i.pending}};var a=function(s){var a=s.status,c=s.label,u=s.percentage,d=s.customConfig,p=s.redirectionLink;if(d)return n("span",e({className:i.chip,style:{border:"1px solid ".concat(d.borderColor),background:d.background,color:d.color}},{children:null!=c?c:d.label}));if("custom"===a)return null;var g=l[a];if(!g)return null;var m="in_progress"===a&&void 0!==u;return r("span",e({className:"".concat(i.chip," ").concat(g.className),style:{display:"inline-flex",alignItems:"center",gap:6}},{children:[m?r(o,{children:[null!=c?c:"Ingesting",n("span",{className:i.dot}),"".concat(u,"%")]}):null!=c?c:g.label,p&&n(t,{size:14,style:{cursor:"pointer",flexShrink:0},onClick:function(e){e.stopPropagation(),window.open(p,"_blank","noopener,noreferrer")}})]}))},c=new Set(["DONE","COMPLETED","FAILED"]),u=function(e){var r,o,i,t,l=e.ingestionId,u=e.status,d=e.wsBaseUrl,p=e.showPercentage,g=void 0===p||p,m=e.statusMap,f=e.customStatusConfigs,v=e.redirectionLink;console.log("Component:",v);var b=!!u&&c.has(u.toUpperCase()),C=s(!b&&l?l:null,d).data,h=b?u:null!==(o=null!==(r=null==C?void 0:C.ingestionStatus)&&void 0!==r?r:u)&&void 0!==o?o:"",N=h?function(e,n){if(!e)return"custom";if(n){if(void 0!==n[e])return n[e];var r=e.toUpperCase();if(void 0!==n[r])return n[r]}return"custom"}(h,m):"pending",k=f?null!==(t=null!==(i=f[N])&&void 0!==i?i:f[h])&&void 0!==t?t:f[h.toUpperCase()]:void 0,I=function(){if(!b&&g)return void 0!==(null==C?void 0:C.currentProgress)?Math.max(5,C.currentProgress):"in_progress"===N?5:void 0}();return n(a,{status:N,percentage:I,customConfig:k,redirectionLink:v})};export{a as IngestionStatusChip,u as IngestionStatusComponent};
|
|
2
2
|
//# sourceMappingURL=IngestionStatusComponent.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{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";
|
|
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";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
|
|
2
2
|
//# sourceMappingURL=index.js.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,KAAyC,MAAM,OAAO,CAAC;AAK9D,OAAO,EAAE,oBAAoB,EAA4I,MAAM,SAAS,CAAC;AAmGzL;;;;;;;;;GASG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuQlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IGptWebCitationTestProps } from "./types";
|
|
2
|
-
declare const GptWebCitationTest: ({ gptCitation,
|
|
2
|
+
declare const GptWebCitationTest: ({ gptCitation, citationType, 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,EAAwB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"GptWebCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationTest.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAwB,wBAAwB,EAAgB,MAAM,SAAS,CAAC;AA2BvF,QAAA,MAAM,kBAAkB,4RAcrB,wBAAwB,4CAoE1B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -65,6 +65,23 @@ export interface IGptWebCitationMappedData {
|
|
|
65
65
|
}
|
|
66
66
|
/** Active citation panel: GPT reasoning or web snapshot/markdown. */
|
|
67
67
|
export type GptWebCitationView = "gpt" | "web";
|
|
68
|
+
/**
|
|
69
|
+
* Controls which citation views are available and whether the GPT/Web toggle is shown.
|
|
70
|
+
*
|
|
71
|
+
* | Value | GPT view | Web view | Toggle |
|
|
72
|
+
* | --------- | -------- | -------- | ------ |
|
|
73
|
+
* | `GPT` | yes | no | no |
|
|
74
|
+
* | `WEB` | no | yes | no |
|
|
75
|
+
* | `GPT_WEB` | yes | yes | yes |
|
|
76
|
+
*/
|
|
77
|
+
export declare enum CitationType {
|
|
78
|
+
GPT = "gpt",
|
|
79
|
+
WEB = "web",
|
|
80
|
+
GPT_WEB = "gptWeb"
|
|
81
|
+
}
|
|
82
|
+
export declare const allowsGptCitationView: (citationType: CitationType) => boolean;
|
|
83
|
+
export declare const allowsWebCitationView: (citationType: CitationType) => boolean;
|
|
84
|
+
export declare const showsCitationViewToggle: (citationType: CitationType) => boolean;
|
|
68
85
|
/**
|
|
69
86
|
* Web citation lifecycle status — set by the parent from their API call state.
|
|
70
87
|
*
|
|
@@ -94,12 +111,12 @@ export interface IGptCitationConfig {
|
|
|
94
111
|
iconsConfig?: NonWebReasoningIconsConfig;
|
|
95
112
|
/**
|
|
96
113
|
* Source document label in the GPT footer (right side).
|
|
97
|
-
* Hidden
|
|
114
|
+
* Hidden when `citationType` is `CitationType.GPT_WEB` or `CitationType.WEB`.
|
|
98
115
|
*/
|
|
99
116
|
DocumentTitle?: string;
|
|
100
117
|
/**
|
|
101
118
|
* Called when the user clicks the GPT footer source link.
|
|
102
|
-
* Hidden
|
|
119
|
+
* Hidden when `citationType` is `CitationType.GPT_WEB` or `CitationType.WEB`.
|
|
103
120
|
*/
|
|
104
121
|
previewCallback?: () => void;
|
|
105
122
|
/**
|
|
@@ -253,7 +270,7 @@ export interface IGptWebCitationStyleOverrides {
|
|
|
253
270
|
* <GptWebCitation
|
|
254
271
|
* gptCitation={gptCitationConfig}
|
|
255
272
|
* defaultCitationUrl="https://example.com/article"
|
|
256
|
-
*
|
|
273
|
+
* citationType={CitationType.GPT_WEB}
|
|
257
274
|
* webCitationData={data}
|
|
258
275
|
* webCitationStatus={status}
|
|
259
276
|
* showWebCitation={showWeb}
|
|
@@ -264,7 +281,11 @@ export interface IGptWebCitationStyleOverrides {
|
|
|
264
281
|
*
|
|
265
282
|
* @example GPT-only (no web toggle)
|
|
266
283
|
* ```tsx
|
|
267
|
-
* <GptWebCitation
|
|
284
|
+
* <GptWebCitation
|
|
285
|
+
* gptCitation={gptCitationConfig}
|
|
286
|
+
* defaultCitationUrl="https://example.com/article"
|
|
287
|
+
* citationType={CitationType.GPT}
|
|
288
|
+
* />
|
|
268
289
|
* ```
|
|
269
290
|
*/
|
|
270
291
|
export interface IGptWebCitationProps {
|
|
@@ -279,10 +300,10 @@ export interface IGptWebCitationProps {
|
|
|
279
300
|
*/
|
|
280
301
|
defaultCitationUrl: string;
|
|
281
302
|
/**
|
|
282
|
-
*
|
|
283
|
-
*
|
|
303
|
+
* **Required.** Controls available views and toggle visibility.
|
|
304
|
+
* Use `CitationType.GPT_WEB` for dual GPT + web with toggle (default web view).
|
|
284
305
|
*/
|
|
285
|
-
|
|
306
|
+
citationType: CitationType;
|
|
286
307
|
/**
|
|
287
308
|
* Web citation API response (screenshot and/or markdown content).
|
|
288
309
|
* Omit until the parent has fetched or prefetched data.
|
|
@@ -311,11 +332,12 @@ export interface IGptWebCitationProps {
|
|
|
311
332
|
*/
|
|
312
333
|
learnedFrom?: string;
|
|
313
334
|
/**
|
|
314
|
-
* Controls which view is active.
|
|
315
|
-
* - `false` → GPT view (+ **View Web Citation**
|
|
316
|
-
* - `true` → Web citation panel
|
|
335
|
+
* Controls which view is active when `citationType` is `CitationType.GPT_WEB`.
|
|
336
|
+
* - `false` → GPT view (+ **View Web Citation** toggle)
|
|
337
|
+
* - `true` → Web citation panel (+ **View GPT Citation** toggle)
|
|
317
338
|
*
|
|
318
|
-
*
|
|
339
|
+
* Ignored for `CitationType.GPT` (always GPT) and `CitationType.WEB` (always web).
|
|
340
|
+
* Omit for uncontrolled internal state (defaults to web for `GPT_WEB`).
|
|
319
341
|
*/
|
|
320
342
|
showWebCitation?: boolean;
|
|
321
343
|
/**
|
|
@@ -366,7 +388,7 @@ export interface IGptWebCitationProps {
|
|
|
366
388
|
/** Props for the local `GptWebCitationTest` dev harness. */
|
|
367
389
|
export interface IGptWebCitationTestProps {
|
|
368
390
|
gptCitation?: IGptCitationConfig;
|
|
369
|
-
|
|
391
|
+
citationType?: CitationType;
|
|
370
392
|
webCitationData?: IWebCitationApiResponse;
|
|
371
393
|
sourceModel?: string;
|
|
372
394
|
learnedFrom?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EACV,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,yEAAyE,CAAC;AAEjF,mEAAmE;AACnE,MAAM,WAAW,yBAAyB;IACxC,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,kF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,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC;AAED,4DAA4D;AAC5D,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;IACzC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,+BAA+B,CAAC;IAC9C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
|
|
@@ -11,6 +11,7 @@ interface IngestionStatusChipProps {
|
|
|
11
11
|
label?: string;
|
|
12
12
|
percentage?: number;
|
|
13
13
|
customConfig?: CustomChipConfig;
|
|
14
|
+
redirectionLink?: string;
|
|
14
15
|
}
|
|
15
16
|
export declare const IngestionStatusChip: React.FC<IngestionStatusChipProps>;
|
|
16
17
|
interface IngestionStatusComponentProps {
|
|
@@ -20,6 +21,7 @@ interface IngestionStatusComponentProps {
|
|
|
20
21
|
showPercentage?: boolean;
|
|
21
22
|
statusMap?: Record<string, string>;
|
|
22
23
|
customStatusConfigs?: Record<string, CustomChipConfig>;
|
|
24
|
+
redirectionLink?: string;
|
|
23
25
|
}
|
|
24
26
|
export declare const IngestionStatusComponent: React.FC<IngestionStatusComponentProps>;
|
|
25
27
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IngestionStatusComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/IngestionStatusComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IngestionStatusComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/IngestionStatusComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAYD,UAAU,wBAAwB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CAE1B;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAyDlE,CAAC;AAKF,UAAU,6BAA6B;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACvD,eAAe,CAAC,EAAE,MAAM,CAAC;CAE1B;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAyC5E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IngestionStatusComponentTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/IngestionStatusComponentTest.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQrD,CAAC;AAqBF,UAAU,iCAAiC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,4BAA4B,kBAAmB,iCAAiC,
|
|
1
|
+
{"version":3,"file":"IngestionStatusComponentTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/IngestionStatus/IngestionStatusComponentTest.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQrD,CAAC;AAqBF,UAAU,iCAAiC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,4BAA4B,kBAAmB,iCAAiC,4CAyHjF,CAAC;AAEN,eAAe,4BAA4B,CAAC"}
|
|
@@ -38,4 +38,5 @@ export { default as GptWebCitation } from "./features/GptWebCitation/GptWebCitat
|
|
|
38
38
|
export { default as InstantLearningCitationWrapper } from "./features/InstantLearningCitation/InstantLearningCitationComponent";
|
|
39
39
|
export { mapCitationDataToDisplay, getWebCitationImageUrl, resolveSkeletonVisitUrl, extractTopicFromContent, extractRelevanceScoreFromContent, extractLearnedFromUrl, sanitizeExternalUrl, } from "./features/GptWebCitation/utils/citationData.utils";
|
|
40
40
|
export type { IGptWebCitationProps, IGptCitationConfig, IGptWebCitationStyleOverrides, IGptWebCitationGptStyles, IGptWebCitationWebStyles, IGptWebCitationImageStyles, IGptWebCitationSkeletonStyles, IGptWebCitationVisitLinkStyles, IGptWebCitationFullScreenStyles, GptWebCitationView, GptWebCitationStatus, IWebCitationApiResponse, IGptWebCitationDbMetadata, IGptWebCitationImageMetadata, IGptWebCitationMappedData, IGptWebCitationImageIconsConfig, } from "./features/GptWebCitation/types";
|
|
41
|
+
export { CitationType, allowsGptCitationView, allowsWebCitationView, showsCitationViewToggle, } from "./features/GptWebCitation/types";
|
|
41
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,C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