@e-llm-studio/citation 0.0.216 → 0.0.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +54 -31
  2. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  3. package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  4. package/dist/cjs/features/GptWebCitation/types.js +2 -0
  5. package/dist/cjs/features/GptWebCitation/types.js.map +1 -0
  6. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  7. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  8. package/dist/cjs/index.js +1 -1
  9. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  10. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  11. package/dist/features/GptWebCitation/types.js +2 -0
  12. package/dist/features/GptWebCitation/types.js.map +1 -0
  13. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  14. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +1 -0
  17. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  18. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  19. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +1 -1
  20. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -1
  21. package/dist/types/src/features/GptWebCitation/types.d.ts +34 -12
  22. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  23. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -2
  24. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
  25. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +1 -0
  26. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
  27. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
  28. package/dist/types/src/index.d.ts +1 -0
  29. package/dist/types/src/index.d.ts.map +1 -1
  30. package/package.json +4 -4
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 { GptWebCitationStatus } from '@e-llm-studio/citation';
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
- isWebCitation={true}
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
- isWebCitation={true}
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 `isWebCitation={false}` 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:
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
- isWebCitation={false}
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
- isWebCitation={true}
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
- isWebCitation={true}
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
- isWebCitation={true}
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
- isWebCitation
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
- isWebCitation
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` + `isWebCitation` (toggle footer present) | `520px` default, or `calc(bodyHeight + 3.25rem)` when `gptCitation.bodyHeight` is set |
1030
- | `isFixedHeight` + `isWebCitation={false}` (GPT only) | `520px` default, or `gptCitation.bodyHeight` when set |
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
- | `isWebCitation` | `boolean` | `false` | When `true`, enables web citation toggle and web view |
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` | `true` (uncontrolled) | `false` = GPT view, `true` = web view. Omit for uncontrolled internal state |
1044
- | `onGenerateWebCitation` | `() => void` | — | Called when web view opens and no cached screenshot exists. Parent should fetch and update status/data. Also invoked once on mount when `isWebCitation` + `showWebCitation` are true and no image is cached |
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 `isWebCitation` is true |
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
- | `isWebCitation={false}` | GPT citation only |
1139
- | `isWebCitation={true}`, `showWebCitation={false}` | GPT citation + **View Web Citation** button |
1140
- | `isWebCitation={true}`, `showWebCitation={true}`, `webCitationStatus="pending"` | Shimmer skeleton + optional **Visit Link** (`highlightedUrl` → `defaultCitationUrl`) |
1141
- | `isWebCitation={true}`, `showWebCitation={true}`, `webCitationStatus="success"` | Screenshot (pending skeleton while image loads) + footer **Visit Link** |
1142
- | `isWebCitation={true}`, `showWebCitation={true}`, `webCitationStatus="error"` | Error skeleton ("No preview available") + inline **Visit Link** |
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"),r=require("./utils/styleOverrides.utils.js"),u=require("./utils/fixedHeight.utils.js"),d=require("./GptWebCitation.module.css.js"),c=require("../../assests/svg/NeuralNetworkIcon.js"),g=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:d.default.webCitationButton,onClick:a,disabled:l,title:s,style:r},{children:"gpt"===o?i.jsxs(i.Fragment,{children:[i.jsx(c.default,{className:d.default.webCitationButtonIcon}),"View GPT Citation"]}):i.jsxs(i.Fragment,{children:[i.jsx(n.Globe,{size:24,className:d.default.webCitationButtonIcon}),"View Web Citation"]})}))};exports.default=function(c){var v,p,b,_=c.gptCitation,C=c.defaultCitationUrl,f=c.isWebCitation,m=void 0!==f&&f,x=c.webCitationData,w=c.topic,h=c.sourceLabel,k=c.relevanceScore,j=c.learnedFrom,y=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,N=c.isFixedHeight,M=void 0!==N&&N,V=c.styles,q=t.useMemo(function(){return function(i){var t,n,o,l,a,s,u,d,c,g,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===(u=null==i?void 0:i.webCitation)||void 0===u?void 0:u.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===(c=null==i?void 0:i.webCitation)||void 0===c?void 0:c.learnedFrom,webImage:null===(g=null==i?void 0:i.webCitation)||void 0===g?void 0:g.image,webSkeleton:null===(v=null==i?void 0:i.webCitation)||void 0===v?void 0:v.skeleton,webImageVisitLink:r.resolveWebCitationVisitLinkStyles(null==i?void 0:i.webCitation,"image"),webSkeletonVisitLink:r.resolveWebCitationVisitLinkStyles(null==i?void 0:i.webCitation,"skeleton")}}(V)},[V]),E=t.useMemo(function(){return M?u.resolveFixedHeightLayout(_.bodyHeight,m):null},[M,_.bodyHeight,m]),T=t.useMemo(function(){return E?u.getFixedPanelStyle(E.panelHeight):void 0},[E]),z=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===(v=_.iconsConfig)||void 0===v?void 0:v.MaximizeIcon]),U=t.useMemo(function(){return e.__assign(e.__assign(e.__assign(e.__assign({},_),M&&E?{bodyHeight:E.gptBodyHeight}:{}),{disableMaximize:void 0!==B?!B:_.disableMaximize}),m?{DocumentTitle:void 0,previewCallback:void 0}:{})},[_,B,m,M,E]),A=t.useState(!0),D=A[0],G=A[1],P=t.useRef(!1),O=null!=S?S:D,R=void 0!==S,J=t.useMemo(function(){return x?s.mapCitationDataToDisplay(x):null},[x]),K=null!==(p=null!=w?w:null==J?void 0:J.topic)&&void 0!==p?p:"Web Citation",Q=null!==(b=null!=k?k:null==J?void 0:J.relevanceScore)&&void 0!==b?b:0,X=null!=j?j:null==J?void 0:J.learnedFrom,Y=null==J?void 0:J.citationUrl,Z=s.resolveSkeletonVisitUrl(null==J?void 0:J.highlightedUrl,C),$=s.getWebCitationImageUrl(x),ee=t.useMemo(function(){return function(e,i,t){return t?"success":e||(i?"error":"pending")}(y,x,$)},[y,x,$]);t.useEffect(function(){P.current=!1},[null==x?void 0:x.citationId]),t.useEffect(function(){m&&O&&($||P.current||(P.current=!0,null==F||F()))},[m,O,$,F,null==x?void 0:x.citationId]);var ie=t.useCallback(function(){I?I():R||G(!1)},[I,R]),te=t.useCallback(function(){I?I():R||G(!0),$||"success"===ee||null==F||F()},[I,R,$,ee,F]),ne=null!=h?h:"Source: Web Citation > ".concat(K),oe=function(t){var n=!!U.DocumentTitle,l=[d.default.gptCitationWrapper,n?d.default.gptCitationWrapperWithSource:"",M?d.default.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" ");return i.jsxs("div",e.__assign({className:l,style:e.__assign(e.__assign({},q.gptWrapper),T)},{children:[i.jsx(o.default,e.__assign({},U,{splitterCustomStyle:!0})),t&&(n?i.jsx("div",e.__assign({className:d.default.gptCitationFooterAction,style:q.gptFooterAction},{children:t})):i.jsx("div",e.__assign({className:[d.default.gptCitationToggleFooter,M?d.default.gptCitationToggleFooterFixedHeight:""].filter(Boolean).join(" "),style:q.gptFooterAction},{children:t})))]}))};return m?O?i.jsxs("div",e.__assign({className:[d.default.panel,M?d.default.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:e.__assign(e.__assign({},q.webPanel),T)},{children:[i.jsxs("div",e.__assign({className:d.default.panelHeader,style:q.webHeader},{children:[i.jsx("span",e.__assign({className:d.default.panelSource},{children:ne})),i.jsx("div",e.__assign({className:d.default.panelHeaderActions},{children:Q>0&&i.jsxs("div",e.__assign({className:d.default.confidenceBadge,title:"Decision strength"},{children:[i.jsx(n.Sparkles,{size:14}),Q,"%"]}))}))]})),i.jsx("div",e.__assign({className:[d.default.panelContent,d.default.panelContentExpanded,M?d.default.panelContentFixedHeight:""].filter(Boolean).join(" "),style:e.__assign(e.__assign({},q.webContent),M?u.getFixedWebContentStyle():void 0)},{children:"pending"===ee?i.jsx(a.default,{status:"pending",citationUrl:Z,ExternalLinkIcon:z.ExternalLinkIcon,styles:q.webSkeleton,visitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:M}):"success"===ee&&$?i.jsx(l.default,{citationImage:$,citationUrl:Y,skeletonVisitUrl:Z,showExpandImageButton:W,iconsConfig:z,styles:q.webImage,visitLinkStyles:q.webImageVisitLink,skeletonStyles:q.webSkeleton,skeletonVisitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:M}):i.jsx(a.default,{status:"error",citationUrl:Z,ExternalLinkIcon:z.ExternalLinkIcon,styles:q.webSkeleton,visitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:M})})),i.jsxs("div",e.__assign({className:d.default.panelFooter,style:q.webFooter},{children:[i.jsx(g,{variant:"gpt",onClick:ie,style:q.webToggleButton}),X&&i.jsxs("span",e.__assign({className:d.default.learnedFrom,style:q.webLearnedFrom},{children:["Learned From ",X]}))]}))]})):i.jsx("div",e.__assign({className:d.default.overlay,style:q.container},{children:oe(i.jsx(g,{variant:"web",onClick:te,title:"View web-based citation for this source.",style:q.gptToggleButton}))})):i.jsx("div",e.__assign({className:d.default.overlay,style:q.container},{children:oe()}))};
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 t=require("tslib");exports.getCitationsData=function(e,r){return t.__awaiter(this,void 0,void 0,function(){var n;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch("/api/citations/".concat(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)}})];case 1:if(!(n=t.sent()).ok)throw new Error("Failed to fetch citations: ".concat(n.statusText));return[4,n.json()];case 2:return[2,t.sent()]}})})},exports.getFileContent=function(e){return t.__awaiter(this,void 0,void 0,function(){var r;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch(e,{method:"GET",headers:{Accept:"application/json"}})];case 1:if(!(r=t.sent()).ok)throw new Error("Failed to fetch file content: ".concat(r.statusText));return[4,r.text()];case 2:return[2,t.sent()]}})})},exports.getNestedValue=function(t,e){var r;try{for(var n=e.split("."),o=t,i=0,a=n;i<a.length;i++){var s=a[i],c=s.match(/^(\w+)\[(\d+)\]$/);if(c){var u=c[1],l=c[2];o=null===(r=null==o?void 0:o[u])||void 0===r?void 0:r[Number(l)]}else o=null==o?void 0:o[s];if(null==o)return null}return o}catch(t){return console.error("Nested extraction error",t),null}},exports.getSignedUrl=function(e){return t.__awaiter(this,void 0,void 0,function(){var r;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch("/backend/gcs/get-signed-url/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({gsutil_url:e,expiration_hours:3})})];case 1:if(!(r=t.sent()).ok)throw new Error("Failed to get signed URL: ".concat(r.statusText));return[4,r.json()];case 2:return[2,t.sent()]}})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib");exports.getCitationsData=function(e,r,n){return t.__awaiter(this,void 0,void 0,function(){var o;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch("".concat(n,"/api/citations/").concat(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)}})];case 1:if(!(o=t.sent()).ok)throw new Error("Failed to fetch citations: ".concat(o.statusText));return[4,o.json()];case 2:return[2,t.sent()]}})})},exports.getFileContent=function(e){return t.__awaiter(this,void 0,void 0,function(){var r;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch(e,{method:"GET",headers:{Accept:"application/json"}})];case 1:if(!(r=t.sent()).ok)throw new Error("Failed to fetch file content: ".concat(r.statusText));return[4,r.text()];case 2:return[2,t.sent()]}})})},exports.getNestedValue=function(t,e){var r;try{for(var n=e.split("."),o=t,i=0,a=n;i<a.length;i++){var s=a[i],c=s.match(/^(\w+)\[(\d+)\]$/);if(c){var u=c[1],l=c[2];o=null===(r=null==o?void 0:o[u])||void 0===r?void 0:r[Number(l)]}else o=null==o?void 0:o[s];if(null==o)return null}return o}catch(t){return console.error("Nested extraction error",t),null}},exports.getSignedUrl=function(e,r){return t.__awaiter(this,void 0,void 0,function(){var n;return t.__generator(this,function(t){switch(t.label){case 0:return[4,fetch("".concat(r,"/backend/gcs/get-signed-url/"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({gsutil_url:e,expiration_hours:3})})];case 1:if(!(n=t.sent()).ok)throw new Error("Failed to get signed URL: ".concat(n.statusText));return[4,n.json()];case 2:return[2,t.sent()]}})})};
2
2
  //# sourceMappingURL=RuleBookCitationApi.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("lucide-react"),i=require("../TextualGuidelines/TextualGuideLinesComponent.js"),s=require("./RuleBookCitationApi.js");exports.default=function(a){var o=a.requestId,l=a.citationIndex,d=void 0===l?0:l,u=a.accessToken,c=a.sourceAttachments,f=void 0===c?[]:c,g=r.useState(null),v=g[0],h=g[1],p=r.useState(null),x=p[0],_=p[1],m=r.useState(null),w=m[0],b=m[1],j=r.useState(!1),y=j[0],S=j[1],C=r.useState(!1),q=C[0],E=C[1],A=r.useState(null),R=A[0],k=A[1];r.useEffect(function(){if(!o)return h(null),_(null),b(null),void k(null);e.__awaiter(void 0,void 0,void 0,function(){var t,r,n,i,a,l,c;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),S(!0),k(null),[4,s.getCitationsData(o,u)];case 1:if(t=e.sent(),r=null!==(c=null!==(a=null==t?void 0:t.citations)&&void 0!==a?a:null===(l=null==t?void 0:t.responseData)||void 0===l?void 0:l.citations)&&void 0!==c?c:[],!(n=null==r?void 0:r[d]))throw new Error("Citation not found at the specified index.");if(!n.file_id)throw new Error("Citation data is missing a valid file_id.");return h(n.file_id),_(n.phrase_to_highlight||null),[3,4];case 2:return i=e.sent(),console.error(i),k(i.message||"An error occurred while fetching citations."),h(null),_(null),[3,4];case 3:return S(!1),[7];case 4:return[2]}})})},[o,d,u]),r.useEffect(function(){if(v){var t=Array.isArray(f)?f:Object.values(f||{}).flat();e.__awaiter(void 0,void 0,void 0,function(){var r,n,i,a,o,l,d,u,c;return e.__generator(this,function(e){switch(e.label){case 0:if(e.trys.push([0,3,4,5]),E(!0),k(null),!(null==(r=t.find(function(e){return e.id===v}))?void 0:r.gcsUrl))throw new Error("File URL missing for ID: ".concat(v));return[4,s.getSignedUrl(r.gcsUrl)];case 1:if(n=e.sent(),!(i=null!==(c=null===(u=null==n?void 0:n.responseData)||void 0===u?void 0:u.signed_url)&&void 0!==c?c:null==n?void 0:n.signed_url))throw new Error("Signed URL not received");return[4,s.getFileContent(i)];case 2:if(a=e.sent(),o=JSON.parse(a),!(l=s.getNestedValue(o,"data.artifactData.userStorySnapshot[0].value")))throw new Error("Failed to extract content from standard JSON path.");return b(l),[3,5];case 3:return d=e.sent(),console.error(d),k(d.message||"An error occurred while loading file contents."),b(null),[3,5];case 4:return E(!1),[7];case 5:return[2]}})})}else b(null)},[v,f]);var D=y||q;return t.jsxs("div",e.__assign({style:{width:"100%",minHeight:"100px"}},{children:[D&&t.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[t.jsx(n.Loader2,{style:{animation:"spin 1s linear infinite"},size:24}),t.jsx("span",{children:"Loading content..."})]})),R&&!D&&t.jsxs("div",e.__assign({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[t.jsx("strong",{children:"Error:"})," ",R]})),!D&&!R&&w&&t.jsx("div",e.__assign({style:{marginTop:"12px"}},{children:t.jsx(i.default,{TextualGuideLines:w,HighlightedWords:x?[x]:[],InternalGptReasoningData:[],index:0,headerTitle:"Rule Book Citation",useVariantHighlight:!1})})),!D&&!R&&!w&&t.jsx("div",e.__assign({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available. Please provide a valid requestId and ensure source attachments are loaded."})),t.jsx("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),i=require("../TextualGuidelines/TextualGuideLinesComponent.js"),s=require("./RuleBookCitationApi.js");exports.default=function(a){var o=a.requestId,l=a.citationIndex,u=void 0===l?0:l,d=a.accessToken,c=a.sourceAttachments,f=void 0===c?[]:c,g=a.url,v=t.useState(null),h=v[0],p=v[1],x=t.useState(null),_=x[0],m=x[1],w=t.useState(null),b=w[0],j=w[1],y=t.useState(!1),S=y[0],C=y[1],q=t.useState(!1),E=q[0],R=q[1],A=t.useState(null),L=A[0],k=A[1];t.useEffect(function(){if(!o)return p(null),m(null),j(null),void k(null);if(!g)throw new Error("Base URL is required");e.__awaiter(void 0,void 0,void 0,function(){var r,t,n,i,a,l,c;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),C(!0),k(null),[4,s.getCitationsData(o,d,g)];case 1:if(r=e.sent(),t=null!==(c=null!==(a=null==r?void 0:r.citations)&&void 0!==a?a:null===(l=null==r?void 0:r.responseData)||void 0===l?void 0:l.citations)&&void 0!==c?c:[],!(n=null==t?void 0:t[u]))throw new Error("Citation not found at the specified index.");if(!n.file_id)throw new Error("Citation data is missing a valid file_id.");return p(n.file_id),m(n.phrase_to_highlight||null),[3,4];case 2:return i=e.sent(),console.error(i),k(i.message||"An error occurred while fetching citations."),p(null),m(null),[3,4];case 3:return C(!1),[7];case 4:return[2]}})})},[o,u,d]),t.useEffect(function(){if(h){var r=Array.isArray(f)?f:Object.values(f||{}).flat();e.__awaiter(void 0,void 0,void 0,function(){var t,n,i,a,o,l,u,d,c;return e.__generator(this,function(e){switch(e.label){case 0:if(e.trys.push([0,3,4,5]),R(!0),k(null),!(null==(t=r.find(function(e){return e.id===h}))?void 0:t.gcsUrl))throw new Error("File URL missing for ID: ".concat(h));return[4,s.getSignedUrl(t.gcsUrl,g)];case 1:if(n=e.sent(),!(i=null!==(c=null===(d=null==n?void 0:n.responseData)||void 0===d?void 0:d.signed_url)&&void 0!==c?c:null==n?void 0:n.signed_url))throw new Error("Signed URL not received");return[4,s.getFileContent(i)];case 2:if(a=e.sent(),o=JSON.parse(a),!(l=s.getNestedValue(o,"data.artifactData.userStorySnapshot[0].value")))throw new Error("Failed to extract content from standard JSON path.");return j(l),[3,5];case 3:return u=e.sent(),console.error(u),k(u.message||"An error occurred while loading file contents."),j(null),[3,5];case 4:return R(!1),[7];case 5:return[2]}})})}else j(null)},[h,f]);var D=S||E;return r.jsxs("div",e.__assign({style:{width:"100%",minHeight:"100px"}},{children:[D&&r.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[r.jsx(n.Loader2,{style:{animation:"spin 1s linear infinite"},size:24}),r.jsx("span",{children:"Loading content..."})]})),L&&!D&&r.jsxs("div",e.__assign({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[r.jsx("strong",{children:"Error:"})," ",L]})),!D&&!L&&b&&r.jsx("div",e.__assign({style:{marginTop:"12px"}},{children:r.jsx(i.default,{TextualGuideLines:b,HighlightedWords:_?[_]:[],InternalGptReasoningData:[],index:0,headerTitle:"Rule Book Citation",useVariantHighlight:!1})})),!D&&!L&&!b&&r.jsx("div",e.__assign({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available. Please provide a valid requestId and ensure source attachments are loaded."})),r.jsx("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};
2
2
  //# sourceMappingURL=RuleBookCitationWrapper.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"),r=require("./features/Bookemon/Bookemon.js"),o=require("./features/PdfEditorCitation/PdfEditorCitation.js"),n=require("./features/CitationRenderer/CitationRenderer.js"),a=require("./features/CitationRenderer/MarkdownRenderer.js"),s=require("./features/CodeCitation/_components/CodeEditor.js"),C=require("./features/PaginatedTable/PaginatedTable.js"),u=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js"),p=require("./features/ChatCitation/ChatCitationRenderer.js"),d=require("./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js"),l=require("./features/PdfViewer/PdfViewer.js"),f=require("./features/CognitiveDecisioning/FaqCitation/FaqCitation.js"),g=require("./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js"),x=require("./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js"),m=require("./features/RequirementAiCitations/FileCitation/FileCitationContent.js"),q=require("./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js"),c=require("./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js"),j=require("./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js"),R=require("./features/TableCitation/TableCitationContent.js"),I=require("./features/CitationViewer/CitationsViewer.js"),S=require("./features/ExcelCitation/ExcelCitations.js"),T=require("./features/ScannedDocCitation/ScannedDocCitation.js"),D=require("./features/ChatDrawer/ChatDrawer.js"),E=require("./features/ChatDrawer/constants/ChatDrawer.js"),b=require("./features/SplitterCitations/SplitterCitationsComponent.js"),v=require("./features/CognitiveCompare/CognitiveCompare.js"),A=require("./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),W=require("./features/TextualGuidelines/TextualGuideLinesComponent.js"),P=require("./features/RulebookCitations/RuleBookCitationWrapper.js"),k=require("./features/IngestionStatus/IngestionStatusComponent.js"),w=require("./features/ManageRemainders/ManageReminders.js"),U=require("./features/GptWebCitation/GptWebCitation.js"),h=require("./features/InstantLearningCitation/InstantLearningCitationComponent.js"),_=require("./features/GptWebCitation/utils/citationData.utils.js");exports.CodeCitation=e.default,exports.ProjectAccordian=t.default,exports.BookCitation=i.default,exports.Bookemon=r.default,exports.PdfCitation=o.PdfEditorCitation,exports.CitationRenderer=n.default,exports.MarkdownRenderer=a.default,Object.defineProperty(exports,"DiagnosticSeverity",{enumerable:!0,get:function(){return s.DiagnosticSeverity}}),exports.PaginatedTable=C.default,exports.InternalgptReasoningComponent=u.default,exports.NonWebReasoningComponent=u.default,exports.ChatCitation=p.default,exports.CognitiveDecisioningCard=d.default,exports.PdfViewer=l.default,exports.FaqCitation=f.default,exports.ImageCitationContent=g.default,exports.VideoCitationContent=x.default,exports.FileCitationContent=m.default,exports.WebCitationWithImageContent=q.default,exports.MarkdownWithImageCitation=c.default,exports.AiReasoningCitation=j.default,exports.TableCitationContent=R.default,exports.CitationsViewer=I.default,exports.ExcelCitation=S.default,exports.ScannedDocCitation=T.default,exports.ChatDrawer=D.default,exports.FILE_INGESTION_STATUS=E.FILE_INGESTION_STATUS,exports.SUMMARY_EXPAND_HEIGHT_NUDGE=E.SUMMARY_EXPAND_HEIGHT_NUDGE,exports.TRUNCATE_THRESHOLD=E.TRUNCATE_THRESHOLD,exports.SplitterCitationsComponent=b.default,exports.CognitiveCompare=v.default,exports.CognitiveInternalgptCoreComponent=A.default,exports.TextualGuideLinesComponent=W.default,exports.RuleBookCitationWrapper=P.default,exports.IngestionStatusChip=k.IngestionStatusChip,exports.IngestionStatusComponent=k.IngestionStatusComponent,exports.ManageReminders=w.ManageReminders,exports.GptWebCitation=U.default,exports.InstantLearningCitationWrapper=h.default,exports.extractLearnedFromUrl=_.extractLearnedFromUrl,exports.extractRelevanceScoreFromContent=_.extractRelevanceScoreFromContent,exports.extractTopicFromContent=_.extractTopicFromContent,exports.getWebCitationImageUrl=_.getWebCitationImageUrl,exports.mapCitationDataToDisplay=_.mapCitationDataToDisplay,exports.resolveSkeletonVisitUrl=_.resolveSkeletonVisitUrl,exports.sanitizeExternalUrl=_.sanitizeExternalUrl;
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,useRef as a,useEffect as r,useCallback as s}from"react";import{Sparkles as d,Globe as u}from"lucide-react";import c from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";import v from"./GptWebCitationImageCitation.js";import g from"./GptWebCitationSkeleton.js";import{mapCitationDataToDisplay as p,resolveSkeletonVisitUrl as m,getWebCitationImageUrl as b}from"./utils/citationData.utils.js";import{resolveWebCitationVisitLinkStyles as C}from"./utils/styleOverrides.utils.js";import{resolveFixedHeightLayout as w,getFixedPanelStyle as f,getFixedWebContentStyle as h}from"./utils/fixedHeight.utils.js";import k from"./GptWebCitation.module.css.js";import y from"../../assests/svg/NeuralNetworkIcon.js";var x=function(o){var l=o.variant,a=o.disabled,r=o.onClick,s=o.title,d=o.style;return t("button",i({type:"button",className:k.webCitationButton,onClick:r,disabled:a,title:s,style:d},{children:e(n,"gpt"===l?{children:[t(y,{className:k.webCitationButtonIcon}),"View GPT Citation"]}:{children:[t(u,{size:24,className:k.webCitationButtonIcon}),"View Web Citation"]})}))},I=function(n){var u,y,I,F=n.gptCitation,S=n.defaultCitationUrl,B=n.isWebCitation,L=void 0!==B&&B,H=n.webCitationData,N=n.topic,W=n.sourceLabel,j=n.relevanceScore,V=n.learnedFrom,T=n.webCitationStatus,z=n.onGenerateWebCitation,E=n.showWebCitation,A=n.onToggleCitationView,M=n.showExpandImageButton,U=void 0===M||M,G=n.showGptMaximizeButton,D=n.iconsConfig,P=n.isFixedHeight,O=void 0!==P&&P,R=n.styles,q=o(function(){return function(t){var e,n,o,l,a,r,s,d,u,c,v;return{container:null==t?void 0:t.container,gptWrapper:i(i({},null===(e=null==t?void 0:t.gptCitation)||void 0===e?void 0:e.wrapper),null==t?void 0:t.gptCitationWrapper),gptFooterAction:i(i({},null===(n=null==t?void 0:t.gptCitation)||void 0===n?void 0:n.footerAction),null==t?void 0:t.footerAction),gptToggleButton:i(i({},null===(o=null==t?void 0:t.gptCitation)||void 0===o?void 0:o.toggleButton),null==t?void 0:t.webCitationButton),webPanel:i(i({},null==t?void 0:t.container),null===(l=null==t?void 0:t.webCitation)||void 0===l?void 0:l.panel),webHeader:null===(a=null==t?void 0:t.webCitation)||void 0===a?void 0:a.header,webContent:null===(r=null==t?void 0:t.webCitation)||void 0===r?void 0:r.content,webFooter:null===(s=null==t?void 0:t.webCitation)||void 0===s?void 0:s.footer,webToggleButton:i(i({},null===(d=null==t?void 0:t.webCitation)||void 0===d?void 0:d.toggleButton),null==t?void 0:t.webCitationButton),webLearnedFrom:null===(u=null==t?void 0:t.webCitation)||void 0===u?void 0:u.learnedFrom,webImage:null===(c=null==t?void 0:t.webCitation)||void 0===c?void 0:c.image,webSkeleton:null===(v=null==t?void 0:t.webCitation)||void 0===v?void 0:v.skeleton,webImageVisitLink:C(null==t?void 0:t.webCitation,"image"),webSkeletonVisitLink:C(null==t?void 0:t.webCitation,"skeleton")}}(R)},[R]),J=o(function(){return O?w(F.bodyHeight,L):null},[O,F.bodyHeight,L]),K=o(function(){return J?f(J.panelHeight):void 0},[J]),Q=o(function(){var i,t;return{MaximizeIcon:null!==(i=null==D?void 0:D.MaximizeIcon)&&void 0!==i?i:null===(t=F.iconsConfig)||void 0===t?void 0:t.MaximizeIcon,ExternalLinkIcon:null==D?void 0:D.ExternalLinkIcon}},[D,null===(u=F.iconsConfig)||void 0===u?void 0:u.MaximizeIcon]),X=o(function(){return i(i(i(i({},F),O&&J?{bodyHeight:J.gptBodyHeight}:{}),{disableMaximize:void 0!==G?!G:F.disableMaximize}),L?{DocumentTitle:void 0,previewCallback:void 0}:{})},[F,G,L,O,J]),Y=l(!0),Z=Y[0],$=Y[1],_=a(!1),ii=null!=E?E:Z,ti=void 0!==E,ei=o(function(){return H?p(H):null},[H]),ni=null!==(y=null!=N?N:null==ei?void 0:ei.topic)&&void 0!==y?y:"Web Citation",oi=null!==(I=null!=j?j:null==ei?void 0:ei.relevanceScore)&&void 0!==I?I:0,li=null!=V?V:null==ei?void 0:ei.learnedFrom,ai=null==ei?void 0:ei.citationUrl,ri=m(null==ei?void 0:ei.highlightedUrl,S),si=b(H),di=o(function(){return function(i,t,e){return e?"success":i||(t?"error":"pending")}(T,H,si)},[T,H,si]);r(function(){_.current=!1},[null==H?void 0:H.citationId]),r(function(){L&&ii&&(si||_.current||(_.current=!0,null==z||z()))},[L,ii,si,z,null==H?void 0:H.citationId]);var ui=s(function(){A?A():ti||$(!1)},[A,ti]),ci=s(function(){A?A():ti||$(!0),si||"success"===di||null==z||z()},[A,ti,si,di,z]),vi=null!=W?W:"Source: Web Citation > ".concat(ni),gi=function(n){var o=!!X.DocumentTitle,l=[k.gptCitationWrapper,o?k.gptCitationWrapperWithSource:"",O?k.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" ");return e("div",i({className:l,style:i(i({},q.gptWrapper),K)},{children:[t(c,i({},X,{splitterCustomStyle:!0})),n&&t("div",i(o?{className:k.gptCitationFooterAction,style:q.gptFooterAction}:{className:[k.gptCitationToggleFooter,O?k.gptCitationToggleFooterFixedHeight:""].filter(Boolean).join(" "),style:q.gptFooterAction},{children:n}))]}))};return L?ii?e("div",i({className:[k.panel,O?k.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:i(i({},q.webPanel),K)},{children:[e("div",i({className:k.panelHeader,style:q.webHeader},{children:[t("span",i({className:k.panelSource},{children:vi})),t("div",i({className:k.panelHeaderActions},{children:oi>0&&e("div",i({className:k.confidenceBadge,title:"Decision strength"},{children:[t(d,{size:14}),oi,"%"]}))}))]})),t("div",i({className:[k.panelContent,k.panelContentExpanded,O?k.panelContentFixedHeight:""].filter(Boolean).join(" "),style:i(i({},q.webContent),O?h():void 0)},{children:"pending"===di?t(g,{status:"pending",citationUrl:ri,ExternalLinkIcon:Q.ExternalLinkIcon,styles:q.webSkeleton,visitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:O}):"success"===di&&si?t(v,{citationImage:si,citationUrl:ai,skeletonVisitUrl:ri,showExpandImageButton:U,iconsConfig:Q,styles:q.webImage,visitLinkStyles:q.webImageVisitLink,skeletonStyles:q.webSkeleton,skeletonVisitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:O}):t(g,{status:"error",citationUrl:ri,ExternalLinkIcon:Q.ExternalLinkIcon,styles:q.webSkeleton,visitLinkStyles:q.webSkeletonVisitLink,isFixedHeight:O})})),e("div",i({className:k.panelFooter,style:q.webFooter},{children:[t(x,{variant:"gpt",onClick:ui,style:q.webToggleButton}),li&&e("span",i({className:k.learnedFrom,style:q.webLearnedFrom},{children:["Learned From ",li]}))]}))]})):t("div",i({className:k.overlay,style:q.container},{children:gi(t(x,{variant:"web",onClick:ci,title:"View web-based citation for this source.",style:q.gptToggleButton}))})):t("div",i({className:k.overlay,style:q.container},{children:gi()}))};export{I as default};
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{__awaiter as t,__generator as e}from"tslib";function n(n,r){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch("/api/citations/".concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)}})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to fetch citations: ".concat(t.statusText));return[4,t.json()];case 2:return[2,e.sent()]}})})}function r(n){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch("/backend/gcs/get-signed-url/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({gsutil_url:n,expiration_hours:3})})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to get signed URL: ".concat(t.statusText));return[4,t.json()];case 2:return[2,e.sent()]}})})}function o(n){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch(n,{method:"GET",headers:{Accept:"application/json"}})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to fetch file content: ".concat(t.statusText));return[4,t.text()];case 2:return[2,e.sent()]}})})}function i(t,e){var n;try{for(var r=e.split("."),o=t,i=0,c=r;i<c.length;i++){var s=c[i],a=s.match(/^(\w+)\[(\d+)\]$/);if(a){var u=a[1],l=a[2];o=null===(n=null==o?void 0:o[u])||void 0===n?void 0:n[Number(l)]}else o=null==o?void 0:o[s];if(null==o)return null}return o}catch(t){return console.error("Nested extraction error",t),null}}export{n as getCitationsData,o as getFileContent,i as getNestedValue,r as getSignedUrl};
1
+ import{__awaiter as t,__generator as e}from"tslib";function n(n,r,o){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch("".concat(o,"/api/citations/").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)}})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to fetch citations: ".concat(t.statusText));return[4,t.json()];case 2:return[2,e.sent()]}})})}function r(n,r){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch("".concat(r,"/backend/gcs/get-signed-url/"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({gsutil_url:n,expiration_hours:3})})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to get signed URL: ".concat(t.statusText));return[4,t.json()];case 2:return[2,e.sent()]}})})}function o(n){return t(this,void 0,void 0,function(){var t;return e(this,function(e){switch(e.label){case 0:return[4,fetch(n,{method:"GET",headers:{Accept:"application/json"}})];case 1:if(!(t=e.sent()).ok)throw new Error("Failed to fetch file content: ".concat(t.statusText));return[4,t.text()];case 2:return[2,e.sent()]}})})}function i(t,e){var n;try{for(var r=e.split("."),o=t,i=0,c=r;i<c.length;i++){var a=c[i],s=a.match(/^(\w+)\[(\d+)\]$/);if(s){var u=s[1],l=s[2];o=null===(n=null==o?void 0:o[u])||void 0===n?void 0:n[Number(l)]}else o=null==o?void 0:o[a];if(null==o)return null}return o}catch(t){return console.error("Nested extraction error",t),null}}export{n as getCitationsData,o as getFileContent,i as getNestedValue,r as getSignedUrl};
2
2
  //# sourceMappingURL=RuleBookCitationApi.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e,__awaiter as r,__generator as n}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as l}from"react";import{Loader2 as a}from"lucide-react";import s from"../TextualGuidelines/TextualGuideLinesComponent.js";import{getCitationsData as d,getNestedValue as u,getFileContent as c,getSignedUrl as f}from"./RuleBookCitationApi.js";var v=function(v){var h=v.requestId,p=v.citationIndex,g=void 0===p?0:p,m=v.accessToken,x=v.sourceAttachments,b=void 0===x?[]:x,w=o(null),y=w[0],C=w[1],A=o(null),R=A[0],_=A[1],k=o(null),E=k[0],I=k[1],T=o(!1),j=T[0],D=T[1],L=o(!1),S=L[0],G=L[1],H=o(null),U=H[0],B=H[1];l(function(){if(!h)return C(null),_(null),I(null),void B(null);r(void 0,void 0,void 0,function(){var e,r,i,t,o,l,a;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),D(!0),B(null),[4,d(h,m)];case 1:if(e=n.sent(),r=null!==(a=null!==(o=null==e?void 0:e.citations)&&void 0!==o?o:null===(l=null==e?void 0:e.responseData)||void 0===l?void 0:l.citations)&&void 0!==a?a:[],!(i=null==r?void 0:r[g]))throw new Error("Citation not found at the specified index.");if(!i.file_id)throw new Error("Citation data is missing a valid file_id.");return C(i.file_id),_(i.phrase_to_highlight||null),[3,4];case 2:return t=n.sent(),console.error(t),B(t.message||"An error occurred while fetching citations."),C(null),_(null),[3,4];case 3:return D(!1),[7];case 4:return[2]}})})},[h,g,m]),l(function(){if(y){var e=Array.isArray(b)?b:Object.values(b||{}).flat();r(void 0,void 0,void 0,function(){var r,i,t,o,l,a,s,d,v;return n(this,function(n){switch(n.label){case 0:if(n.trys.push([0,3,4,5]),G(!0),B(null),!(null==(r=e.find(function(e){return e.id===y}))?void 0:r.gcsUrl))throw new Error("File URL missing for ID: ".concat(y));return[4,f(r.gcsUrl)];case 1:if(i=n.sent(),!(t=null!==(v=null===(d=null==i?void 0:i.responseData)||void 0===d?void 0:d.signed_url)&&void 0!==v?v:null==i?void 0:i.signed_url))throw new Error("Signed URL not received");return[4,c(t)];case 2:if(o=n.sent(),l=JSON.parse(o),!(a=u(l,"data.artifactData.userStorySnapshot[0].value")))throw new Error("Failed to extract content from standard JSON path.");return I(a),[3,5];case 3:return s=n.sent(),console.error(s),B(s.message||"An error occurred while loading file contents."),I(null),[3,5];case 4:return G(!1),[7];case 5:return[2]}})})}else I(null)},[y,b]);var N=j||S;return i("div",e({style:{width:"100%",minHeight:"100px"}},{children:[N&&i("div",e({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[t(a,{style:{animation:"spin 1s linear infinite"},size:24}),t("span",{children:"Loading content..."})]})),U&&!N&&i("div",e({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[t("strong",{children:"Error:"})," ",U]})),!N&&!U&&E&&t("div",e({style:{marginTop:"12px"}},{children:t(s,{TextualGuideLines:E,HighlightedWords:R?[R]:[],InternalGptReasoningData:[],index:0,headerTitle:"Rule Book Citation",useVariantHighlight:!1})})),!N&&!U&&!E&&t("div",e({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available. Please provide a valid requestId and ensure source attachments are loaded."})),t("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};export{v as default};
1
+ import{__assign as e,__awaiter as r,__generator as n}from"tslib";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as l}from"react";import{Loader2 as a}from"lucide-react";import s from"../TextualGuidelines/TextualGuideLinesComponent.js";import{getCitationsData as d,getNestedValue as u,getFileContent as c,getSignedUrl as f}from"./RuleBookCitationApi.js";var h=function(h){var v=h.requestId,p=h.citationIndex,g=void 0===p?0:p,m=h.accessToken,x=h.sourceAttachments,w=void 0===x?[]:x,b=h.url,y=o(null),C=y[0],R=y[1],A=o(null),E=A[0],_=A[1],k=o(null),I=k[0],L=k[1],T=o(!1),j=T[0],D=T[1],S=o(!1),U=S[0],B=S[1],G=o(null),H=G[0],q=G[1];l(function(){if(!v)return R(null),_(null),L(null),void q(null);if(!b)throw new Error("Base URL is required");r(void 0,void 0,void 0,function(){var e,r,i,t,o,l,a;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),D(!0),q(null),[4,d(v,m,b)];case 1:if(e=n.sent(),r=null!==(a=null!==(o=null==e?void 0:e.citations)&&void 0!==o?o:null===(l=null==e?void 0:e.responseData)||void 0===l?void 0:l.citations)&&void 0!==a?a:[],!(i=null==r?void 0:r[g]))throw new Error("Citation not found at the specified index.");if(!i.file_id)throw new Error("Citation data is missing a valid file_id.");return R(i.file_id),_(i.phrase_to_highlight||null),[3,4];case 2:return t=n.sent(),console.error(t),q(t.message||"An error occurred while fetching citations."),R(null),_(null),[3,4];case 3:return D(!1),[7];case 4:return[2]}})})},[v,g,m]),l(function(){if(C){var e=Array.isArray(w)?w:Object.values(w||{}).flat();r(void 0,void 0,void 0,function(){var r,i,t,o,l,a,s,d,h;return n(this,function(n){switch(n.label){case 0:if(n.trys.push([0,3,4,5]),B(!0),q(null),!(null==(r=e.find(function(e){return e.id===C}))?void 0:r.gcsUrl))throw new Error("File URL missing for ID: ".concat(C));return[4,f(r.gcsUrl,b)];case 1:if(i=n.sent(),!(t=null!==(h=null===(d=null==i?void 0:i.responseData)||void 0===d?void 0:d.signed_url)&&void 0!==h?h:null==i?void 0:i.signed_url))throw new Error("Signed URL not received");return[4,c(t)];case 2:if(o=n.sent(),l=JSON.parse(o),!(a=u(l,"data.artifactData.userStorySnapshot[0].value")))throw new Error("Failed to extract content from standard JSON path.");return L(a),[3,5];case 3:return s=n.sent(),console.error(s),q(s.message||"An error occurred while loading file contents."),L(null),[3,5];case 4:return B(!1),[7];case 5:return[2]}})})}else L(null)},[C,w]);var N=j||U;return i("div",e({style:{width:"100%",minHeight:"100px"}},{children:[N&&i("div",e({style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100px",gap:"8px"}},{children:[t(a,{style:{animation:"spin 1s linear infinite"},size:24}),t("span",{children:"Loading content..."})]})),H&&!N&&i("div",e({style:{padding:"12px",backgroundColor:"#fee2e2",border:"1px solid #fca5a5",borderRadius:"4px",color:"#991b1b",marginBottom:"12px"}},{children:[t("strong",{children:"Error:"})," ",H]})),!N&&!H&&I&&t("div",e({style:{marginTop:"12px"}},{children:t(s,{TextualGuideLines:I,HighlightedWords:E?[E]:[],InternalGptReasoningData:[],index:0,headerTitle:"Rule Book Citation",useVariantHighlight:!1})})),!N&&!H&&!I&&t("div",e({style:{padding:"12px",backgroundColor:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"4px",color:"#6b7280",textAlign:"center"}},{children:"No content available. Please provide a valid requestId and ensure source attachments are loaded."})),t("style",{children:"\n @keyframes spin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n "})]}))};export{h as default};
2
2
  //# sourceMappingURL=RuleBookCitationWrapper.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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const useCompareLayout: (initialMaintainOrder: boolean, scrollContainerRef: React.RefObject<HTMLDivElement>, lhsBadgeRefs: any, rhsBadgeRefs: any, proposedSections: any[], existingSections: any[]) => {
2
3
  maintainRelativeOrder: boolean;
3
4
  setMaintainRelativeOrder: import("react").Dispatch<import("react").SetStateAction<boolean>>;
@@ -1 +1 @@
1
- {"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBACL,OAAO,sBACT,MAAM,SAAS,CAAC,cAAc,CAAC,gBACrC,GAAG,gBACH,GAAG,oBACC,GAAG,EAAE,oBACL,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;CAkFxB,CAAC"}
1
+ {"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,gBAAgB,yBACL,OAAO,sBACT,MAAM,SAAS,CAAC,cAAc,CAAC,gBACrC,GAAG,gBACH,GAAG,oBACC,GAAG,EAAE,oBACL,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;CAkFxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GptWebCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAAE,oBAAoB,EAAuD,MAAM,SAAS,CAAC;AAmGpG;;;;;;;;;GASG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8QlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"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, isWebCitation, webCitationData: webCitationDataProp, sourceModel, learnedFrom, showWebCitation: showWebCitationProp, onGenerateWebCitation, webCitationStatus: webCitationStatusProp, showExpandImageButton, showGptMaximizeButton, iconsConfig, isFixedHeight, styles, }: IGptWebCitationTestProps) => import("react/jsx-runtime").JSX.Element;
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,EAAE,MAAM,SAAS,CAAC;AA2BzE,QAAA,MAAM,kBAAkB,6RAcrB,wBAAwB,4CAoE1B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
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 automatically when `isWebCitation` is true.
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 automatically when `isWebCitation` is true.
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
- * isWebCitation
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 gptCitation={gptCitationConfig} isWebCitation={false} />
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
- * Enables the web citation toggle and web view.
283
- * @default false GPT citation only, no **View Web Citation** button.
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
- isWebCitation?: boolean;
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** when `isWebCitation` is true)
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
- * Omit for uncontrolled internal state.
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
- isWebCitation?: boolean;
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,kFAAkF;AAClF,MAAM,WAAW,4BAA4B;IAC3C,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,kBAAkB,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uFAAuF;IACvF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,EAAE,CAAC,EAAE,yBAAyB,CA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;;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,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,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"}
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,kFAAkF;AAClF,MAAM,WAAW,4BAA4B;IAC3C,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACp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,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"}
@@ -24,8 +24,8 @@ export interface SignedUrlResponse {
24
24
  signed_url?: string;
25
25
  error?: string;
26
26
  }
27
- export declare function getCitationsData(requestId: string, accessToken: string): Promise<CitationResponse>;
28
- export declare function getSignedUrl(gcsUrl: string): Promise<SignedUrlResponse>;
27
+ export declare function getCitationsData(requestId: string, accessToken: string, url: string): Promise<CitationResponse>;
28
+ export declare function getSignedUrl(gcsUrl: string, url: string): Promise<SignedUrlResponse>;
29
29
  export declare function getFileContent(signedUrl: string): Promise<string>;
30
30
  export declare function getNestedValue(obj: any, path: string): any;
31
31
  //# sourceMappingURL=RuleBookCitationApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RuleBookCitationApi.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationApi.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,iBAAiB,GACzB,gBAAgB,EAAE,GAClB,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAGvC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;KAC5B,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IAEF,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,gBAAgB,CAAC,CA6B3B;AAGD,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAyB7E;AAGD,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCvE;AAGD,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAuB1D"}
1
+ {"version":3,"file":"RuleBookCitationApi.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationApi.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,MAAM,iBAAiB,GACzB,gBAAgB,EAAE,GAClB,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAGvC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;KAC5B,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IAEF,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,gBAAgB,CAAC,CA6B3B;AAGD,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAyB1F;AAGD,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCvE;AAGD,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAuB1D"}
@@ -5,6 +5,7 @@ interface RuleBookCitationWrapperProps {
5
5
  citationIndex?: number;
6
6
  accessToken: string;
7
7
  sourceAttachments?: SourceAttachments;
8
+ url: string;
8
9
  }
9
10
  declare const RuleBookCitationWrapper: React.FC<RuleBookCitationWrapperProps>;
10
11
  export default RuleBookCitationWrapper;
@@ -1 +1 @@
1
- {"version":3,"file":"RuleBookCitationWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAML,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,UAAU,4BAA4B;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC;AAED,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAuMnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"RuleBookCitationWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAML,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,UAAU,4BAA4B;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA4MnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RuleBookCitationWrapperTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapperTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,2BAA2B,+CAyBhC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"RuleBookCitationWrapperTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/RulebookCitations/RuleBookCitationWrapperTest.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,2BAA2B,+CA0BhC,CAAC;AAEF,eAAe,2BAA2B,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,g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O,EAAC,OAAO,IAAI,8BAA8B,EAAC,MAAM,qEAAqE,CAAA;AAC7H,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,oDAAoD,CAAC;AAC5D,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iCAAiC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.216",
3
+ "version": "0.0.218",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -143,9 +143,9 @@
143
143
  "types": "./dist/types/src/features/TextualGuidelines/TextualGuideLinesComponent.d.ts"
144
144
  },
145
145
  "./RuleBookCitationWrapper": {
146
- "import": "./dist/features/RulebookCitationsComponent/RuleBookCitationWrapper.js",
147
- "require": "./dist/cjs/features/RulebookCitationsComponent/RuleBookCitationWrapper.js",
148
- "types": "./dist/types/src/features/RulebookCitationsComponent/RuleBookCitationWrapper.d.ts"
146
+ "import": "./dist/features/RulebookCitations/RuleBookCitationWrapper.js",
147
+ "require": "./dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js",
148
+ "types": "./dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts"
149
149
  },
150
150
  "./IngestionStatusComponent": {
151
151
  "import": "./dist/features/IngestionStatus/IngestionStatusComponent.js",