@e-llm-studio/citation 0.0.210 → 0.0.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -270
- package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js +1 -1
- package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +1 -6
- package/dist/assests/svg/NeuralNetworkIcon.js +0 -2
- package/dist/assests/svg/NeuralNetworkIcon.js.map +0 -1
- package/dist/cjs/assests/svg/NeuralNetworkIcon.js +0 -2
- package/dist/cjs/assests/svg/NeuralNetworkIcon.js.map +0 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js.map +0 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js.map +0 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js.map +0 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +0 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js.map +0 -1
- package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +0 -2
- package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitation.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitation.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitation.module.css.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitation.module.css.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitationSkeleton.js.map +0 -1
- package/dist/features/GptWebCitation/utils/citationData.utils.js +0 -2
- package/dist/features/GptWebCitation/utils/citationData.utils.js.map +0 -1
- package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts +0 -9
- package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +0 -5
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +0 -8
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +0 -8
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts +0 -9
- package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +0 -3
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +0 -4
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts +0 -4
- package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/types.d.ts +0 -112
- package/dist/types/src/features/GptWebCitation/types.d.ts.map +0 -1
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +0 -8
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +0 -1
|
@@ -33,7 +33,4 @@ export { default as TextualGuideLinesComponent } from "./features/TextualGuideli
|
|
|
33
33
|
export { IngestionStatusComponent } from "./features/IngestionStatus/IngestionStatusComponent";
|
|
34
34
|
export { IngestionStatusChip } from "./features/IngestionStatus/IngestionStatusComponent";
|
|
35
35
|
export { ManageReminders } from "./features/ManageRemainders/ManageReminders";
|
|
36
|
-
export { default as GptWebCitation } from "./features/GptWebCitation/GptWebCitation";
|
|
37
|
-
export { mapCitationDataToDisplay, getWebCitationImageUrl, extractTopicFromContent, extractRelevanceScoreFromContent, extractLearnedFromUrl, sanitizeExternalUrl, } from "./features/GptWebCitation/utils/citationData.utils";
|
|
38
|
-
export type { IGptWebCitationProps, IGptCitationConfig, IGptWebCitationStyleOverrides, IGptWebCitationGptStyles, IGptWebCitationWebStyles, GptWebCitationView, IWebCitationApiResponse, IGptWebCitationDbMetadata, IGptWebCitationImageMetadata, IGptWebCitationMappedData, } from "./features/GptWebCitation/types";
|
|
39
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oEAAoE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACnH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACpI,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAA;AAC9G,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAC,OAAO,IAAI,iCAAiC,EAAC,MAAM,4EAA4E,CAAC;AACxI,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,iFAAiF,CAAC;AACzI,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,qDAAqD,CAAA;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AAClH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAEjG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oEAAoE,CAAC;AACpH,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,2EAA2E,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AACnH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACpI,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAA;AAC9G,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAC,OAAO,IAAI,iCAAiC,EAAC,MAAM,4EAA4E,CAAC;AACxI,OAAO,EAAC,OAAO,IAAI,6BAA6B,EAAC,MAAM,iFAAiF,CAAC;AACzI,OAAO,EAAC,OAAO,IAAI,0BAA0B,EAAC,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAC,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAC,mBAAmB,EAAC,MAAM,qDAAqD,CAAA;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-llm-studio/citation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.211",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -151,11 +151,6 @@
|
|
|
151
151
|
"import": "./dist/features/ManageRemainders/ManageReminders.js",
|
|
152
152
|
"require": "./dist/cjs/features/ManageRemainders/ManageReminders.js",
|
|
153
153
|
"types": "./dist/types/src/features/ManageRemainders/ManageReminders.d.ts"
|
|
154
|
-
},
|
|
155
|
-
"./GptWebCitation": {
|
|
156
|
-
"import": "./dist/features/GptWebCitation/GptWebCitation.js",
|
|
157
|
-
"require": "./dist/cjs/features/GptWebCitation/GptWebCitation.js",
|
|
158
|
-
"types": "./dist/types/src/features/GptWebCitation/GptWebCitation.d.ts"
|
|
159
154
|
}
|
|
160
155
|
},
|
|
161
156
|
"repository": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as C}from"tslib";import{jsxs as r,jsx as o}from"react/jsx-runtime";var e=function(e){var i=e.className,t=e.size,a=void 0===t?24:t,n=e.color,s=void 0===n?"currentColor":n,d=e["aria-hidden"];return r("svg",C({xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 16 16",fill:"none","aria-hidden":void 0===d||d,className:i},{children:[o("path",{d:"M14.3327 7.9974C14.3327 8.21627 14.2896 8.43299 14.2058 8.6352C14.1221 8.83741 13.9993 9.02114 13.8445 9.17591C13.6898 9.33067 13.506 9.45344 13.3038 9.5372C13.1016 9.62095 12.8849 9.66406 12.666 9.66406C12.4471 9.66406 12.2304 9.62095 12.0282 9.5372C11.826 9.45344 11.6423 9.33067 11.4875 9.17591C11.3327 9.02114 11.21 8.83741 11.1262 8.6352C11.0425 8.43299 10.9993 8.21627 10.9993 7.9974C10.9993 7.55537 11.1749 7.13145 11.4875 6.81888C11.8001 6.50632 12.224 6.33073 12.666 6.33073C13.108 6.33073 13.532 6.50632 13.8445 6.81888C14.1571 7.13145 14.3327 7.55537 14.3327 7.9974ZM8.99935 2.66406C8.99935 2.92928 8.89399 3.18363 8.70646 3.37117C8.51892 3.55871 8.26457 3.66406 7.99935 3.66406C7.73413 3.66406 7.47978 3.55871 7.29224 3.37117C7.10471 3.18363 6.99935 2.92928 6.99935 2.66406C6.99935 2.39885 7.10471 2.14449 7.29224 1.95696C7.47978 1.76942 7.73413 1.66406 7.99935 1.66406C8.26457 1.66406 8.51892 1.76942 8.70646 1.95696C8.89399 2.14449 8.99935 2.39885 8.99935 2.66406ZM8.33268 7.66406C8.33268 7.79538 8.30682 7.92542 8.25656 8.04675C8.20631 8.16807 8.13265 8.27831 8.03979 8.37117C7.94693 8.46403 7.83669 8.53769 7.71537 8.58794C7.59404 8.6382 7.464 8.66406 7.33268 8.66406C7.20136 8.66406 7.07132 8.6382 6.95 8.58794C6.82867 8.53769 6.71843 8.46403 6.62558 8.37117C6.53272 8.27831 6.45906 8.16807 6.4088 8.04675C6.35855 7.92542 6.33268 7.79538 6.33268 7.66406C6.33268 7.39885 6.43804 7.14449 6.62558 6.95696C6.81311 6.76942 7.06747 6.66406 7.33268 6.66406C7.5979 6.66406 7.85225 6.76942 8.03979 6.95696C8.22733 7.144449 8.33268 7.39885 8.33268 7.66406ZM4.33268 4.9974C4.33268 5.35102 4.19221 5.69016 3.94216 5.9402C3.69211 6.19025 3.35297 6.33073 2.99935 6.33073C2.64573 6.33073 2.30659 6.19025 2.05654 5.9402C1.80649 5.69016 1.66602 5.35102 1.66602 4.9974C1.66602 4.64377 1.80649 4.30464 2.05654 4.05459C2.30659 3.80454 2.64573 3.66406 2.99935 3.66406C3.35297 3.66406 3.69211 3.80454 3.94216 4.05459C4.19221 4.30464 4.33268 4.64377 4.33268 4.9974ZM6.99935 12.9974C6.99935 13.351 6.85887 13.6902 6.60882 13.9402C6.35878 14.1903 6.01964 14.3307 5.66602 14.3307C5.31239 14.3307 4.97326 14.1903 4.72321 13.9402C4.47316 13.6902 4.33268 13.351 4.33268 12.9974C4.33268 12.6438 4.47316 12.3046 4.72321 12.0546C4.97326 11.8045 5.31239 11.6641 5.66602 11.6641C6.01964 11.6641 6.35878 11.8045 6.60882 12.0546C6.85887 12.3046 6.99935 12.6438 6.99935 12.9974Z",stroke:s}),o("path",{d:"M9.00065 3.33333L11.6673 6.66667M9.66732 10.3333L7.00065 12.3333M5.33398 11.6667L3.33398 6.33333M4.20932 4.436L7.00065 3M8.33398 7.66667L11.004 7.896M8.00065 3.66667L7.33398 6.66667",stroke:s,strokeWidth:"0.666667",strokeLinecap:"round",strokeLinejoin:"round"})]}))};export{e as default};
|
|
2
|
-
//# sourceMappingURL=NeuralNetworkIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeuralNetworkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("tslib"),e=require("react/jsx-runtime");exports.default=function(r){var s=r.className,i=r.size,t=void 0===i?24:i,o=r.color,n=void 0===o?"currentColor":o,a=r["aria-hidden"],d=void 0===a||a;return e.jsxs("svg",C.__assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 16 16",fill:"none","aria-hidden":d,className:s},{children:[e.jsx("path",{d:"M14.3327 7.9974C14.3327 8.21627 14.2896 8.43299 14.2058 8.6352C14.1221 8.83741 13.9993 9.02114 13.8445 9.17591C13.6898 9.33067 13.506 9.45344 13.3038 9.5372C13.1016 9.62095 12.8849 9.66406 12.666 9.66406C12.4471 9.66406 12.2304 9.62095 12.0282 9.5372C11.826 9.45344 11.6423 9.33067 11.4875 9.17591C11.3327 9.02114 11.21 8.83741 11.1262 8.6352C11.0425 8.43299 10.9993 8.21627 10.9993 7.9974C10.9993 7.55537 11.1749 7.13145 11.4875 6.81888C11.8001 6.50632 12.224 6.33073 12.666 6.33073C13.108 6.33073 13.532 6.50632 13.8445 6.81888C14.1571 7.13145 14.3327 7.55537 14.3327 7.9974ZM8.99935 2.66406C8.99935 2.92928 8.89399 3.18363 8.70646 3.37117C8.51892 3.55871 8.26457 3.66406 7.99935 3.66406C7.73413 3.66406 7.47978 3.55871 7.29224 3.37117C7.10471 3.18363 6.99935 2.92928 6.99935 2.66406C6.99935 2.39885 7.10471 2.14449 7.29224 1.95696C7.47978 1.76942 7.73413 1.66406 7.99935 1.66406C8.26457 1.66406 8.51892 1.76942 8.70646 1.95696C8.89399 2.14449 8.99935 2.39885 8.99935 2.66406ZM8.33268 7.66406C8.33268 7.79538 8.30682 7.92542 8.25656 8.04675C8.20631 8.16807 8.13265 8.27831 8.03979 8.37117C7.94693 8.46403 7.83669 8.53769 7.71537 8.58794C7.59404 8.6382 7.464 8.66406 7.33268 8.66406C7.20136 8.66406 7.07132 8.6382 6.95 8.58794C6.82867 8.53769 6.71843 8.46403 6.62558 8.37117C6.53272 8.27831 6.45906 8.16807 6.4088 8.04675C6.35855 7.92542 6.33268 7.79538 6.33268 7.66406C6.33268 7.39885 6.43804 7.14449 6.62558 6.95696C6.81311 6.76942 7.06747 6.66406 7.33268 6.66406C7.5979 6.66406 7.85225 6.76942 8.03979 6.95696C8.22733 7.144449 8.33268 7.39885 8.33268 7.66406ZM4.33268 4.9974C4.33268 5.35102 4.19221 5.69016 3.94216 5.9402C3.69211 6.19025 3.35297 6.33073 2.99935 6.33073C2.64573 6.33073 2.30659 6.19025 2.05654 5.9402C1.80649 5.69016 1.66602 5.35102 1.66602 4.9974C1.66602 4.64377 1.80649 4.30464 2.05654 4.05459C2.30659 3.80454 2.64573 3.66406 2.99935 3.66406C3.35297 3.66406 3.69211 3.80454 3.94216 4.05459C4.19221 4.30464 4.33268 4.64377 4.33268 4.9974ZM6.99935 12.9974C6.99935 13.351 6.85887 13.6902 6.60882 13.9402C6.35878 14.1903 6.01964 14.3307 5.66602 14.3307C5.31239 14.3307 4.97326 14.1903 4.72321 13.9402C4.47316 13.6902 4.33268 13.351 4.33268 12.9974C4.33268 12.6438 4.47316 12.3046 4.72321 12.0546C4.97326 11.8045 5.31239 11.6641 5.66602 11.6641C6.01964 11.6641 6.35878 11.8045 6.60882 12.0546C6.85887 12.3046 6.99935 12.6438 6.99935 12.9974Z",stroke:n}),e.jsx("path",{d:"M9.00065 3.33333L11.6673 6.66667M9.66732 10.3333L7.00065 12.3333M5.33398 11.6667L3.33398 6.33333M4.20932 4.436L7.00065 3M8.33398 7.66667L11.004 7.896M8.00065 3.66667L7.33398 6.66667",stroke:n,strokeWidth:"0.666667",strokeLinecap:"round",strokeLinejoin:"round"})]}))};
|
|
2
|
-
//# sourceMappingURL=NeuralNetworkIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeuralNetworkIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),a=require("../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),o=require("./GptWebCitationImageCitation.js"),l=require("./GptWebCitationMarkdown.js"),s=require("./GptWebCitationSkeleton.js"),r=require("./utils/citationData.utils.js"),u=require("./GptWebCitation.module.css.js"),d=require("../../assests/svg/NeuralNetworkIcon.js"),c=function(i){var a=i.variant,o=i.disabled,l=i.onClick,s=i.title,r=i.style;return t.jsx("button",e.__assign({type:"button",className:u.default.webCitationButton,onClick:l,disabled:o,title:s,style:r},{children:"gpt"===a?t.jsxs(t.Fragment,{children:[t.jsx(d.default,{className:u.default.webCitationButtonIcon}),"View GPT Citation"]}):t.jsxs(t.Fragment,{children:[t.jsx(n.Globe,{size:24,className:u.default.webCitationButtonIcon}),"View Web Citation"]})}))},g=function(){return t.jsx(s.default,{})};exports.default=function(s){var d,v,p,_=s.gptCitation,b=s.isWebCitation,C=void 0!==b&&b,f=s.webCitationData,m=s.topic,x=s.sourceLabel,h=s.relevanceScore,j=s.learnedFrom,w=s.onGenerateWebCitation,y=s.isWebCitationLoading,N=void 0!==y&&y,W=s.showWebCitation,B=s.onToggleCitationView,F=s.showExpandImageButton,k=void 0===F||F,I=s.showGptMaximizeButton,q=s.styles,M=i.useMemo(function(){return function(t){var i,n,a,o,l,s,r,u,d;return{container:null==t?void 0:t.container,gptWrapper:e.__assign(e.__assign({},null===(i=null==t?void 0:t.gptCitation)||void 0===i?void 0:i.wrapper),null==t?void 0:t.gptCitationWrapper),gptFooterAction:e.__assign(e.__assign({},null===(n=null==t?void 0:t.gptCitation)||void 0===n?void 0:n.footerAction),null==t?void 0:t.footerAction),gptToggleButton:e.__assign(e.__assign({},null===(a=null==t?void 0:t.gptCitation)||void 0===a?void 0:a.toggleButton),null==t?void 0:t.webCitationButton),webPanel:e.__assign(e.__assign({},null==t?void 0:t.container),null===(o=null==t?void 0:t.webCitation)||void 0===o?void 0:o.panel),webHeader:null===(l=null==t?void 0:t.webCitation)||void 0===l?void 0:l.header,webContent:null===(s=null==t?void 0:t.webCitation)||void 0===s?void 0:s.content,webFooter:null===(r=null==t?void 0:t.webCitation)||void 0===r?void 0:r.footer,webToggleButton:e.__assign(e.__assign({},null===(u=null==t?void 0:t.webCitation)||void 0===u?void 0:u.toggleButton),null==t?void 0:t.webCitationButton),webLearnedFrom:null===(d=null==t?void 0:t.webCitation)||void 0===d?void 0:d.learnedFrom}}(q)},[q]),S=i.useMemo(function(){return e.__assign(e.__assign(e.__assign({},_),{disableMaximize:void 0!==I?!I:_.disableMaximize}),C?{DocumentTitle:void 0,previewCallback:void 0}:{})},[_,I,C]),T=i.useState(!1),D=T[0],G=T[1],z=i.useState(0),A=z[0],H=z[1],L=i.useState(0),P=L[0],E=L[1],U=null!=W?W:D,V=void 0!==W,O=i.useMemo(function(){return f?r.mapCitationDataToDisplay(f):null},[f]),R=null!==(d=null!=m?m:null==O?void 0:O.topic)&&void 0!==d?d:"Web Citation",J=null!==(v=null!=h?h:null==O?void 0:O.relevanceScore)&&void 0!==v?v:0,K=null!=j?j:null==O?void 0:O.learnedFrom,Q=null!==(p=null==O?void 0:O.content)&&void 0!==p?p:"",X=null==O?void 0:O.citationUrl,Y=r.getWebCitationImageUrl(f),Z=!!Y,$=!!Q,ee=Z||$,te=N&&!Z;i.useEffect(function(){H(0)},[Q,R,null==f?void 0:f.citationId]);var ie=i.useCallback(function(){B?B():V||G(!1)},[B,V]),ne=i.useCallback(function(){B?B():V||G(!0),ee||N||null==w||w()},[B,V,ee,N,w]),ae=i.useCallback(function(){H(function(e){return Math.min(e+1,Math.max(P-1,0))})},[P]),oe=i.useCallback(function(){H(function(e){return Math.max(e-1,0)})},[]),le=null!=x?x:"Source: Web Citation > ".concat(R),se=function(i){var n=!!S.DocumentTitle,o=n?"".concat(u.default.gptCitationWrapper," ").concat(u.default.gptCitationWrapperWithSource):u.default.gptCitationWrapper;return t.jsxs("div",e.__assign({className:o,style:M.gptWrapper},{children:[t.jsx(a.default,e.__assign({},S,{splitterCustomStyle:!0})),i&&(n?t.jsx("div",e.__assign({className:u.default.gptCitationFooterAction,style:M.gptFooterAction},{children:i})):t.jsx("div",e.__assign({className:u.default.gptCitationToggleFooter,style:M.gptFooterAction},{children:i})))]}))};return C?U?t.jsxs("div",e.__assign({className:u.default.panel,style:M.webPanel},{children:[t.jsxs("div",e.__assign({className:u.default.panelHeader,style:M.webHeader},{children:[t.jsx("span",e.__assign({className:u.default.panelSource},{children:le})),t.jsxs("div",e.__assign({className:u.default.panelHeaderActions},{children:[$&&!te&&P>0&&t.jsxs("div",e.__assign({className:u.default.pagination},{children:[t.jsx("button",e.__assign({type:"button",onClick:oe,disabled:0===A,className:u.default.paginationButton,"aria-label":"Previous highlight"},{children:t.jsx(n.ChevronUp,{size:14})})),t.jsxs("span",e.__assign({className:u.default.paginationLabel},{children:[A+1," / ",P]})),t.jsx("button",e.__assign({type:"button",onClick:ae,disabled:A>=P-1,className:u.default.paginationButton,"aria-label":"Next highlight"},{children:t.jsx(n.ChevronDown,{size:14})}))]})),J>0&&t.jsxs("div",e.__assign({className:u.default.confidenceBadge,title:"Decision strength"},{children:[t.jsx(n.Sparkles,{size:14}),J,"%"]}))]}))]})),t.jsx("div",e.__assign({className:"".concat(u.default.panelContent).concat(te||Z?" ".concat(u.default.panelContentExpanded):""),style:M.webContent},{children:te?t.jsx(g,{}):Z&&Y?t.jsx(o.default,{citationImage:Y,citationUrl:X,showExpandImageButton:k}):$?t.jsx(l.default,{content:Q,activeHighlightIndex:A,onHighlightCountChange:E}):t.jsx(g,{})})),t.jsxs("div",e.__assign({className:u.default.panelFooter,style:M.webFooter},{children:[t.jsx(c,{variant:"gpt",disabled:te,onClick:ie,style:M.webToggleButton}),K&&t.jsxs("span",e.__assign({className:u.default.learnedFrom,style:M.webLearnedFrom},{children:["Learned From ",K]}))]}))]})):t.jsx("div",e.__assign({className:u.default.overlay,style:M.container},{children:se(t.jsx(c,{variant:"web",disabled:N,onClick:ne,title:"View web-based citation for this source.",style:M.gptToggleButton}))})):t.jsx("div",e.__assign({className:u.default.overlay,style:M.container},{children:se()}))};
|
|
2
|
-
//# sourceMappingURL=GptWebCitation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
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_markdownBody__5kdwH{color:#374151;font-size:14px;line-height:1.6}.GptWebCitation-module_markdownBody__5kdwH ol{list-style-type:lower-alpha;margin:0;padding-left:1.25rem}.GptWebCitation-module_markdownBody__5kdwH li{margin-bottom:8px}.GptWebCitation-module_markdownBody__5kdwH code{background-color:#f3f4f6;border-radius:4px;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;padding:1px 6px}.GptWebCitation-module_highlight__Xr1wl{background-color:#fef08a;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_highlightActive__iFuz5{background-color:#fde047;border:1px solid #eab308;box-shadow:0 1px 2px #0000001a}.GptWebCitation-module_citationLink__kH9JC{color:#2563eb;font-weight:500;text-decoration:none}.GptWebCitation-module_citationLink__kH9JC:hover{text-decoration:underline}.GptWebCitation-module_citationLinkActive__SShYx{background-color:#fef08a;border:1px solid #eab308;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_panelFooter__wm98C{align-items:center;background-color:#f9fafb;border-top:1px solid #e5e7eb;display:flex;font-size:13px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_webCitationButton__blI--{align-items:center;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;color:#2563eb;cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;gap:8px;justify-content:center;line-height:1.25;min-width:180px;padding:6px 16px;transition:background-color .15s ease;white-space:nowrap}.GptWebCitation-module_webCitationButton__blI--:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_webCitationButton__blI--:disabled{cursor:not-allowed;opacity:.75}.GptWebCitation-module_webCitationButtonIcon__r9lPc{color:#2563eb;flex-shrink:0}.GptWebCitation-module_learnedFrom__DMyLS{color:#6b7280;font-size:13px}.GptWebCitation-module_imageCitationWrapper__iQUSw{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:12px;min-height:0;padding:8px 4px;width:100%}.GptWebCitation-module_imageCitationCenter__DMlqn{display:flex;flex:1;justify-content:center;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationViewport__xcotr{height:100%;max-width:100%;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar{width:8px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:9999px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-track{background-color:initial}.GptWebCitation-module_citationImage__7rWdT{background-color:#f9fafb;border:none;border-radius:0;display:block;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_citationImagePreload__L7ibJ{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0}.GptWebCitation-module_expandImageButton__598k6{align-items:center;background-color:#374151eb;border:none;border-radius:6px;bottom:12px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:12px;transition:background-color .15s ease;width:32px;z-index:2}.GptWebCitation-module_expandImageButton__598k6:hover{background-color:#1f2937}.GptWebCitation-module_expandImageButton__598k6 svg{flex-shrink:0}.GptWebCitation-module_fullScreenOverlay__Z5U8h{align-items:center;backdrop-filter:blur(4px);background-color:#0009;display:flex;inset:0;justify-content:center;overflow:hidden;overscroll-behavior:contain;padding:16px;position:fixed;z-index:1100}.GptWebCitation-module_fullScreenContent__xIXZR{background-color:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-height:90vh;max-width:95vw;overflow:hidden;position:relative}.GptWebCitation-module_fullScreenCloseButton__lnaT1{align-items:center;background-color:#374151eb;border:none;border-radius:6px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:16px;top:16px;transition:background-color .15s ease;width:32px;z-index:1}.GptWebCitation-module_fullScreenCloseButton__lnaT1:hover{background-color:#1f2937}.GptWebCitation-module_fullScreenImageWrapper__ADPGU{align-items:flex-start;display:flex;justify-content:center;max-height:80vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_fullScreenImage__jLVAQ{border-radius:12px;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_visitLinkRow__H8ai5{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-start;padding:4px 8px 0;width:100%}.GptWebCitation-module_visitLinkHint__FAwob{color:#6b7280;font-size:13px;line-height:1.4}.GptWebCitation-module_visitLink__1BDo8{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;white-space:nowrap}.GptWebCitation-module_visitLink__1BDo8:hover{background-color:#2563eb2e;text-decoration:none}.GptWebCitation-module_skeleton__1q51h{align-items:center;background-color:#f3f4f6;border-radius:12px;display:flex;justify-content:center;min-height:384px;overflow:hidden;padding:24px;position:relative;width:100%}.GptWebCitation-module_skeletonText__E6XgN{color:#6b7280;font-size:14px;line-height:1.5;max-width:320px;position:relative;text-align:center;z-index:1}.GptWebCitation-module_skeletonShimmer__yqWJh{animation:GptWebCitation-module_shimmer__-ZbQA 1.5s linear infinite;background:linear-gradient(90deg,#0000,#fff9,#0000);inset:0;position:absolute}@keyframes GptWebCitation-module_shimmer__-ZbQA{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),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",markdownBody:"GptWebCitation-module_markdownBody__5kdwH",highlight:"GptWebCitation-module_highlight__Xr1wl",highlightActive:"GptWebCitation-module_highlightActive__iFuz5",citationLink:"GptWebCitation-module_citationLink__kH9JC",citationLinkActive:"GptWebCitation-module_citationLinkActive__SShYx",panelFooter:"GptWebCitation-module_panelFooter__wm98C",webCitationButton:"GptWebCitation-module_webCitationButton__blI--",webCitationButtonIcon:"GptWebCitation-module_webCitationButtonIcon__r9lPc",learnedFrom:"GptWebCitation-module_learnedFrom__DMyLS",imageCitationWrapper:"GptWebCitation-module_imageCitationWrapper__iQUSw",imageCitationCenter:"GptWebCitation-module_imageCitationCenter__DMlqn",imageCitationViewport:"GptWebCitation-module_imageCitationViewport__xcotr",imageCitationScrollContainer:"GptWebCitation-module_imageCitationScrollContainer__bAQNk",citationImage:"GptWebCitation-module_citationImage__7rWdT",citationImagePreload:"GptWebCitation-module_citationImagePreload__L7ibJ",expandImageButton:"GptWebCitation-module_expandImageButton__598k6",fullScreenOverlay:"GptWebCitation-module_fullScreenOverlay__Z5U8h",fullScreenContent:"GptWebCitation-module_fullScreenContent__xIXZR",fullScreenCloseButton:"GptWebCitation-module_fullScreenCloseButton__lnaT1",fullScreenImageWrapper:"GptWebCitation-module_fullScreenImageWrapper__ADPGU",fullScreenImage:"GptWebCitation-module_fullScreenImage__jLVAQ",visitLinkRow:"GptWebCitation-module_visitLinkRow__H8ai5",visitLinkHint:"GptWebCitation-module_visitLinkHint__FAwob",visitLink:"GptWebCitation-module_visitLink__1BDo8",skeleton:"GptWebCitation-module_skeleton__1q51h",skeletonText:"GptWebCitation-module_skeletonText__E6XgN",skeletonShimmer:"GptWebCitation-module_skeletonShimmer__yqWJh",shimmer:"GptWebCitation-module_shimmer__-ZbQA"};
|
|
2
|
-
//# sourceMappingURL=GptWebCitation.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),a=require("react"),t=require("lucide-react"),n=require("./GptWebCitationImageFullScreenView.js"),s=require("./GptWebCitationSkeleton.js"),r=require("./utils/citationData.utils.js"),l=require("./GptWebCitation.module.css.js");exports.default=function(o){var u=o.citationImage,c=o.citationUrl,d=o.showExpandImageButton,g=void 0===d||d,f=a.useState(!1),m=f[0],x=f[1],j=a.useState("loading"),p=j[0],_=j[1];a.useEffect(function(){var e=!0;_("loading"),x(!1);var i=new Image;return i.onload=function(){e&&_("loaded")},i.onerror=function(){e&&_("error")},i.src=u,function(){e=!1,i.onload=null,i.onerror=null}},[u]);var v="loaded"===p,h=r.sanitizeExternalUrl(c);return i.jsxs("div",e.__assign({className:l.default.imageCitationWrapper},{children:[i.jsx("div",e.__assign({className:l.default.imageCitationCenter},{children:v?i.jsxs("div",e.__assign({className:l.default.imageCitationViewport},{children:[i.jsx("div",e.__assign({className:l.default.imageCitationScrollContainer},{children:i.jsx("img",{src:u,alt:"Web citation snapshot",className:l.default.citationImage})})),g&&i.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),x(!0)},className:l.default.expandImageButton,"aria-label":"View citation image in full screen",title:"Expand image"},{children:i.jsx(t.Maximize2,{size:16,strokeWidth:2})}))]})):i.jsx(s.default,{})})),h&&i.jsxs("div",e.__assign({className:l.default.visitLinkRow},{children:[i.jsx("span",e.__assign({className:l.default.visitLinkHint},{children:"Open link in new tab to read in detail"})),i.jsxs("a",e.__assign({href:h,target:"_blank",rel:"noreferrer",className:l.default.visitLink},{children:["Visit Link",i.jsx(t.SquareArrowOutUpRight,{size:16})]}))]})),m&&v&&i.jsx(n.default,{src:u,onClose:function(){return x(!1)}})]}))};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationImageCitation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationImageCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),l=require("react-dom"),o=require("lucide-react"),s=require("./GptWebCitation.module.css.js"),a=function(e){return e.stopPropagation()},n=function(e){e.stopPropagation()};exports.default=function(i){var u=i.src,c=i.onClose;return t.useEffect(function(){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}},[]),l.createPortal(r.jsx("div",e.__assign({role:"dialog","aria-modal":"true",className:s.default.fullScreenOverlay,onClick:c,onWheel:n},{children:r.jsxs("div",e.__assign({className:s.default.fullScreenContent,onClick:a},{children:[r.jsx("button",e.__assign({type:"button",onClick:c,className:s.default.fullScreenCloseButton,"aria-label":"Close full screen view"},{children:r.jsx(o.X,{size:18,strokeWidth:2})})),r.jsx("div",e.__assign({className:s.default.fullScreenImageWrapper},{children:r.jsx("img",{src:u,alt:"Citation full view",className:s.default.fullScreenImage})}))]}))})),document.body)};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationImageFullScreenView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationImageFullScreenView.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),n=require("react"),t=require("react-markdown"),i=require("rehype-raw"),l=require("./utils/citationData.utils.js"),c=require("./GptWebCitation.module.css.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(t),u=a(i);exports.default=function(t){var i=t.content,a=t.activeHighlightIndex,o=t.onHighlightCountChange,h=n.useRef(null),d=n.useMemo(function(){var e,r=i.match(/id=["']highlighted-\d+["']/g);if(null==r?void 0:r.length)return r.length;var n=i.match(/<a\b[^>]*>/gi);return null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0},[i]),f=n.useMemo(function(){return/id=["']highlighted-\d+["']/.test(i)},[i]);n.useEffect(function(){null==o||o(d)},[d,o]),n.useEffect(function(){var e;if(h.current){var r=h.current.querySelector("#highlighted-".concat(a));if(r)r.scrollIntoView({behavior:"smooth",block:"center"});else null===(e=h.current.querySelectorAll("a[href]")[a])||void 0===e||e.scrollIntoView({behavior:"smooth",block:"center"})}},[a,i]);var g=n.useMemo(function(){var n=-1;return{span:function(n){n.node;var t=e.__rest(n,["node"]),i=t.id;if(null==i?void 0:i.startsWith("highlighted-")){var l=Number(i.replace("highlighted-",""))===a;return r.jsx("span",e.__assign({},t,{id:i,className:"".concat(c.default.highlight).concat(l?" ".concat(c.default.highlightActive):"")}))}return r.jsx("span",e.__assign({},t))},a:function(t){var i,s=t.children,u=t.href,o=t.title,h=t.className;if(!u)return r.jsx(r.Fragment,{children:s});n+=1;var d=!f&&n===a,g=null!==(i=l.sanitizeExternalUrl(u))&&void 0!==i?i:"#";return r.jsx("a",e.__assign({href:g,title:o,target:"_blank",rel:"noreferrer",className:"".concat(c.default.citationLink).concat(d?" ".concat(c.default.citationLinkActive):"").concat(h?" ".concat(h):"")},{children:s}))},code:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("code",e.__assign({},i,{children:t}))},ol:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("ol",e.__assign({},i,{children:t}))},ul:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("ul",e.__assign({},i,{children:t}))},li:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("li",e.__assign({},i,{children:t}))},p:function(n){var t=n.children,i=e.__rest(n,["children"]);return r.jsx("p",e.__assign({},i,{children:t}))}}},[a,f,i]);return r.jsx("div",e.__assign({ref:h,className:c.default.markdownBody},{children:r.jsx(s.default,e.__assign({rehypePlugins:[u.default],components:g},{children:i}))}))};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationMarkdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),t=require("./GptWebCitation.module.css.js");exports.default=function(){return s.jsxs("div",e.__assign({className:t.default.skeleton},{children:[s.jsx("span",e.__assign({className:t.default.skeletonText},{children:"Loading a snapshot of citation from source website..."})),s.jsx("div",{className:t.default.skeletonShimmer})]}))};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationSkeleton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationSkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(t){return t?t.replace(/\\"/g,'"').replace(/\\'/g,"'").trim():""},e=function(t){if(null==t?void 0:t.trim()){var e=t.trim();if(!/^(javascript|data|vbscript):/i.test(e))try{var r=new URL(e);if("http:"===r.protocol||"https:"===r.protocol)return e}catch(t){if(e.startsWith("gs://"))return e}}},r=function(e){if(e)for(var r=t(e),i=0,a=[/decision strength is\s+([\d.]+)\s*%/i,/relevance score is\s+([\d.]+)\s*%/i,/confidence(?:\s+score)?(?:\s+is)?\s+([\d.]+)\s*%/i];i<a.length;i++){var n=a[i],o=r.match(n);if(null==o?void 0:o[1]){var c=Number(o[1]);if(!Number.isNaN(c))return c}}},i=function(e){if(e){var r=t(e).match(/<a\b[^>]*>(.*?)<\/a>/i);if(null==r?void 0:r[1]){var i=r[1].replace(/<[^>]*>?/gm,"").trim();if(i)return i}}},a=function(t){if(t)try{var e=new URL(t).hostname.replace(/^www\./i,""),r=e.split(".");if(r.length<2)return e;var i=r[r.length-2];return i.charAt(0).toUpperCase()+i.slice(1)}catch(t){return}},n=function(t){var r,i,a,n=e(null===(r=null==t?void 0:t.imageMetadata)||void 0===r?void 0:r.signed_url);if(n)return n;var o=null===(a=null===(i=null==t?void 0:t.imageMetadata)||void 0===i?void 0:i.gs_uri)||void 0===a?void 0:a.trim();return(null==o?void 0:o.startsWith("gs://"))?o:void 0};exports.extractLearnedFromUrl=a,exports.extractRelevanceScoreFromContent=r,exports.extractTopicFromContent=i,exports.getWebCitationImageUrl=n,exports.mapCitationDataToDisplay=function(o){var c,l,s=t(o.content);return{citationId:o.citationId,content:s,citationType:o.citationType,citationUrl:e(o.citationUrl),topic:null!==(c=i(s))&&void 0!==c?c:"Web Citation",relevanceScore:null!==(l=r(s))&&void 0!==l?l:0,learnedFrom:a(o.citationUrl),web_citation_gcs_url:n(o),userId:o.userId,userName:o.userName,userEmail:o.userEmail,db:o.db,imageMetadata:o.imageMetadata}},exports.sanitizeExternalUrl=e;
|
|
2
|
-
//# sourceMappingURL=citationData.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"citationData.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as t}from"tslib";import{jsx as i,jsxs as n,Fragment as e}from"react/jsx-runtime";import{useMemo as o,useState as l,useEffect as a,useCallback as r}from"react";import{ChevronUp as c,ChevronDown as d,Sparkles as s,Globe as u}from"lucide-react";import v from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";import p from"./GptWebCitationImageCitation.js";import m from"./GptWebCitationMarkdown.js";import g from"./GptWebCitationSkeleton.js";import{mapCitationDataToDisplay as b,getWebCitationImageUrl as C}from"./utils/citationData.utils.js";import h from"./GptWebCitation.module.css.js";import w from"../../assests/svg/NeuralNetworkIcon.js";var f=function(o){var l=o.variant,a=o.disabled,r=o.onClick,c=o.title,d=o.style;return i("button",t({type:"button",className:h.webCitationButton,onClick:r,disabled:a,title:c,style:d},{children:n(e,"gpt"===l?{children:[i(w,{className:h.webCitationButtonIcon}),"View GPT Citation"]}:{children:[i(u,{size:24,className:h.webCitationButtonIcon}),"View Web Citation"]})}))},N=function(){return i(g,{})},y=function(e){var u,g,w,y=e.gptCitation,W=e.isWebCitation,B=void 0!==W&&W,F=e.webCitationData,x=e.topic,I=e.sourceLabel,k=e.relevanceScore,T=e.learnedFrom,j=e.onGenerateWebCitation,z=e.isWebCitationLoading,A=void 0!==z&&z,G=e.showWebCitation,M=e.onToggleCitationView,S=e.showExpandImageButton,H=void 0===S||S,L=e.showGptMaximizeButton,D=e.styles,P=o(function(){return function(i){var n,e,o,l,a,r,c,d,s;return{container:null==i?void 0:i.container,gptWrapper:t(t({},null===(n=null==i?void 0:i.gptCitation)||void 0===n?void 0:n.wrapper),null==i?void 0:i.gptCitationWrapper),gptFooterAction:t(t({},null===(e=null==i?void 0:i.gptCitation)||void 0===e?void 0:e.footerAction),null==i?void 0:i.footerAction),gptToggleButton:t(t({},null===(o=null==i?void 0:i.gptCitation)||void 0===o?void 0:o.toggleButton),null==i?void 0:i.webCitationButton),webPanel:t(t({},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===(r=null==i?void 0:i.webCitation)||void 0===r?void 0:r.content,webFooter:null===(c=null==i?void 0:i.webCitation)||void 0===c?void 0:c.footer,webToggleButton:t(t({},null===(d=null==i?void 0:i.webCitation)||void 0===d?void 0:d.toggleButton),null==i?void 0:i.webCitationButton),webLearnedFrom:null===(s=null==i?void 0:i.webCitation)||void 0===s?void 0:s.learnedFrom}}(D)},[D]),V=o(function(){return t(t(t({},y),{disableMaximize:void 0!==L?!L:y.disableMaximize}),B?{DocumentTitle:void 0,previewCallback:void 0}:{})},[y,L,B]),E=l(!1),U=E[0],R=E[1],q=l(0),J=q[0],K=q[1],O=l(0),Q=O[0],X=O[1],Y=null!=G?G:U,Z=void 0!==G,$=o(function(){return F?b(F):null},[F]),_=null!==(u=null!=x?x:null==$?void 0:$.topic)&&void 0!==u?u:"Web Citation",tt=null!==(g=null!=k?k:null==$?void 0:$.relevanceScore)&&void 0!==g?g:0,it=null!=T?T:null==$?void 0:$.learnedFrom,nt=null!==(w=null==$?void 0:$.content)&&void 0!==w?w:"",et=null==$?void 0:$.citationUrl,ot=C(F),lt=!!ot,at=!!nt,rt=lt||at,ct=A&&!lt;a(function(){K(0)},[nt,_,null==F?void 0:F.citationId]);var dt=r(function(){M?M():Z||R(!1)},[M,Z]),st=r(function(){M?M():Z||R(!0),rt||A||null==j||j()},[M,Z,rt,A,j]),ut=r(function(){K(function(t){return Math.min(t+1,Math.max(Q-1,0))})},[Q]),vt=r(function(){K(function(t){return Math.max(t-1,0)})},[]),pt=null!=I?I:"Source: Web Citation > ".concat(_),mt=function(e){var o=!!V.DocumentTitle,l=o?"".concat(h.gptCitationWrapper," ").concat(h.gptCitationWrapperWithSource):h.gptCitationWrapper;return n("div",t({className:l,style:P.gptWrapper},{children:[i(v,t({},V,{splitterCustomStyle:!0})),e&&i("div",t(o?{className:h.gptCitationFooterAction,style:P.gptFooterAction}:{className:h.gptCitationToggleFooter,style:P.gptFooterAction},{children:e}))]}))};return B?Y?n("div",t({className:h.panel,style:P.webPanel},{children:[n("div",t({className:h.panelHeader,style:P.webHeader},{children:[i("span",t({className:h.panelSource},{children:pt})),n("div",t({className:h.panelHeaderActions},{children:[at&&!ct&&Q>0&&n("div",t({className:h.pagination},{children:[i("button",t({type:"button",onClick:vt,disabled:0===J,className:h.paginationButton,"aria-label":"Previous highlight"},{children:i(c,{size:14})})),n("span",t({className:h.paginationLabel},{children:[J+1," / ",Q]})),i("button",t({type:"button",onClick:ut,disabled:J>=Q-1,className:h.paginationButton,"aria-label":"Next highlight"},{children:i(d,{size:14})}))]})),tt>0&&n("div",t({className:h.confidenceBadge,title:"Decision strength"},{children:[i(s,{size:14}),tt,"%"]}))]}))]})),i("div",t({className:"".concat(h.panelContent).concat(ct||lt?" ".concat(h.panelContentExpanded):""),style:P.webContent},{children:ct?i(N,{}):lt&&ot?i(p,{citationImage:ot,citationUrl:et,showExpandImageButton:H}):at?i(m,{content:nt,activeHighlightIndex:J,onHighlightCountChange:X}):i(N,{})})),n("div",t({className:h.panelFooter,style:P.webFooter},{children:[i(f,{variant:"gpt",disabled:ct,onClick:dt,style:P.webToggleButton}),it&&n("span",t({className:h.learnedFrom,style:P.webLearnedFrom},{children:["Learned From ",it]}))]}))]})):i("div",t({className:h.overlay,style:P.container},{children:mt(i(f,{variant:"web",disabled:A,onClick:st,title:"View web-based citation for this source.",style:P.gptToggleButton}))})):i("div",t({className:h.overlay,style:P.container},{children:mt()}))};export{y as default};
|
|
2
|
-
//# sourceMappingURL=GptWebCitation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e={overlay:"GptWebCitation-module_overlay__OY5pa",gptCitationWrapper:"GptWebCitation-module_gptCitationWrapper__EN7nk",gptCitationToggleFooter:"GptWebCitation-module_gptCitationToggleFooter__ncfLT",gptCitationFooterAction:"GptWebCitation-module_gptCitationFooterAction__WWpAY",gptCitationWrapperWithSource:"GptWebCitation-module_gptCitationWrapperWithSource__1-ynq",panel:"GptWebCitation-module_panel__ek9Lq",panelHeader:"GptWebCitation-module_panelHeader__afwge",panelSource:"GptWebCitation-module_panelSource__oFl-c",panelHeaderActions:"GptWebCitation-module_panelHeaderActions__sGrhi",pagination:"GptWebCitation-module_pagination__VQvbY",paginationButton:"GptWebCitation-module_paginationButton__fzJyQ",paginationLabel:"GptWebCitation-module_paginationLabel__S7t1W",confidenceBadge:"GptWebCitation-module_confidenceBadge__4BBTf",panelContent:"GptWebCitation-module_panelContent__vg-mG",panelContentExpanded:"GptWebCitation-module_panelContentExpanded__3aGjq",markdownBody:"GptWebCitation-module_markdownBody__5kdwH",highlight:"GptWebCitation-module_highlight__Xr1wl",highlightActive:"GptWebCitation-module_highlightActive__iFuz5",citationLink:"GptWebCitation-module_citationLink__kH9JC",citationLinkActive:"GptWebCitation-module_citationLinkActive__SShYx",panelFooter:"GptWebCitation-module_panelFooter__wm98C",webCitationButton:"GptWebCitation-module_webCitationButton__blI--",webCitationButtonIcon:"GptWebCitation-module_webCitationButtonIcon__r9lPc",learnedFrom:"GptWebCitation-module_learnedFrom__DMyLS",imageCitationWrapper:"GptWebCitation-module_imageCitationWrapper__iQUSw",imageCitationCenter:"GptWebCitation-module_imageCitationCenter__DMlqn",imageCitationViewport:"GptWebCitation-module_imageCitationViewport__xcotr",imageCitationScrollContainer:"GptWebCitation-module_imageCitationScrollContainer__bAQNk",citationImage:"GptWebCitation-module_citationImage__7rWdT",citationImagePreload:"GptWebCitation-module_citationImagePreload__L7ibJ",expandImageButton:"GptWebCitation-module_expandImageButton__598k6",fullScreenOverlay:"GptWebCitation-module_fullScreenOverlay__Z5U8h",fullScreenContent:"GptWebCitation-module_fullScreenContent__xIXZR",fullScreenCloseButton:"GptWebCitation-module_fullScreenCloseButton__lnaT1",fullScreenImageWrapper:"GptWebCitation-module_fullScreenImageWrapper__ADPGU",fullScreenImage:"GptWebCitation-module_fullScreenImage__jLVAQ",visitLinkRow:"GptWebCitation-module_visitLinkRow__H8ai5",visitLinkHint:"GptWebCitation-module_visitLinkHint__FAwob",visitLink:"GptWebCitation-module_visitLink__1BDo8",skeleton:"GptWebCitation-module_skeleton__1q51h",skeletonText:"GptWebCitation-module_skeletonText__E6XgN",skeletonShimmer:"GptWebCitation-module_skeletonShimmer__yqWJh",shimmer:"GptWebCitation-module_shimmer__-ZbQA"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".GptWebCitation-module_overlay__OY5pa{display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_gptCitationWrapper__EN7nk{background-color:#fff;border:solid #e5e7eb;border-radius:8px;border-width:1px 1px 2px;box-shadow:0 1px 2px #0000000d;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:relative;width:100%}.GptWebCitation-module_gptCitationToggleFooter__ncfLT{align-items:center;background-color:#f2f4f7;border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;padding:1rem 1.5rem}.GptWebCitation-module_gptCitationFooterAction__WWpAY{align-items:center;bottom:0;box-sizing:border-box;display:flex;height:3rem;left:1.5rem;padding:0;pointer-events:none;position:absolute;z-index:2}.GptWebCitation-module_gptCitationFooterAction__WWpAY>*{pointer-events:auto}.GptWebCitation-module_gptCitationWrapperWithSource__1-ynq [class*=modalFooterSource]{justify-content:flex-end!important;padding-left:13rem}.GptWebCitation-module_panel__ek9Lq{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#1f2937;display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_panelHeader__afwge{align-items:center;background-color:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex;font-size:13px;gap:8px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_panelSource__oFl-c{color:#374151;flex:1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GptWebCitation-module_panelHeaderActions__sGrhi{align-items:center;display:flex;flex-shrink:0;gap:8px}.GptWebCitation-module_pagination__VQvbY{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:6px;display:flex;gap:2px;padding:2px 4px}.GptWebCitation-module_paginationButton__fzJyQ{align-items:center;background:#0000;border:none;border-radius:4px;color:#6b7280;cursor:pointer;display:flex;justify-content:center;padding:2px}.GptWebCitation-module_paginationButton__fzJyQ:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_paginationButton__fzJyQ:disabled{cursor:not-allowed;opacity:.4}.GptWebCitation-module_paginationLabel__S7t1W{color:#6b7280;font-size:12px;min-width:36px;padding:0 4px;text-align:center}.GptWebCitation-module_confidenceBadge__4BBTf{align-items:center;background-color:#ecfdf5;border:1px solid #10b981;border-radius:9999px;color:#059669;display:inline-flex;font-size:13px;font-weight:500;gap:4px;padding:4px 10px}.GptWebCitation-module_panelContent__vg-mG{max-height:192px;overflow-y:auto;padding:8px 12px 12px}.GptWebCitation-module_panelContentExpanded__3aGjq{display:flex;flex-direction:column;max-height:none;min-height:384px;overflow:hidden}.GptWebCitation-module_markdownBody__5kdwH{color:#374151;font-size:14px;line-height:1.6}.GptWebCitation-module_markdownBody__5kdwH ol{list-style-type:lower-alpha;margin:0;padding-left:1.25rem}.GptWebCitation-module_markdownBody__5kdwH li{margin-bottom:8px}.GptWebCitation-module_markdownBody__5kdwH code{background-color:#f3f4f6;border-radius:4px;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;padding:1px 6px}.GptWebCitation-module_highlight__Xr1wl{background-color:#fef08a;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_highlightActive__iFuz5{background-color:#fde047;border:1px solid #eab308;box-shadow:0 1px 2px #0000001a}.GptWebCitation-module_citationLink__kH9JC{color:#2563eb;font-weight:500;text-decoration:none}.GptWebCitation-module_citationLink__kH9JC:hover{text-decoration:underline}.GptWebCitation-module_citationLinkActive__SShYx{background-color:#fef08a;border:1px solid #eab308;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_panelFooter__wm98C{align-items:center;background-color:#f9fafb;border-top:1px solid #e5e7eb;display:flex;font-size:13px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_webCitationButton__blI--{align-items:center;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;color:#2563eb;cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;gap:8px;justify-content:center;line-height:1.25;min-width:180px;padding:6px 16px;transition:background-color .15s ease;white-space:nowrap}.GptWebCitation-module_webCitationButton__blI--:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_webCitationButton__blI--:disabled{cursor:not-allowed;opacity:.75}.GptWebCitation-module_webCitationButtonIcon__r9lPc{color:#2563eb;flex-shrink:0}.GptWebCitation-module_learnedFrom__DMyLS{color:#6b7280;font-size:13px}.GptWebCitation-module_imageCitationWrapper__iQUSw{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:12px;min-height:0;padding:8px 4px;width:100%}.GptWebCitation-module_imageCitationCenter__DMlqn{display:flex;flex:1;justify-content:center;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationViewport__xcotr{height:100%;max-width:100%;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar{width:8px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:9999px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-track{background-color:initial}.GptWebCitation-module_citationImage__7rWdT{background-color:#f9fafb;border:none;border-radius:0;display:block;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_citationImagePreload__L7ibJ{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0}.GptWebCitation-module_expandImageButton__598k6{align-items:center;background-color:#374151eb;border:none;border-radius:6px;bottom:12px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:12px;transition:background-color .15s ease;width:32px;z-index:2}.GptWebCitation-module_expandImageButton__598k6:hover{background-color:#1f2937}.GptWebCitation-module_expandImageButton__598k6 svg{flex-shrink:0}.GptWebCitation-module_fullScreenOverlay__Z5U8h{align-items:center;backdrop-filter:blur(4px);background-color:#0009;display:flex;inset:0;justify-content:center;overflow:hidden;overscroll-behavior:contain;padding:16px;position:fixed;z-index:1100}.GptWebCitation-module_fullScreenContent__xIXZR{background-color:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-height:90vh;max-width:95vw;overflow:hidden;position:relative}.GptWebCitation-module_fullScreenCloseButton__lnaT1{align-items:center;background-color:#374151eb;border:none;border-radius:6px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:16px;top:16px;transition:background-color .15s ease;width:32px;z-index:1}.GptWebCitation-module_fullScreenCloseButton__lnaT1:hover{background-color:#1f2937}.GptWebCitation-module_fullScreenImageWrapper__ADPGU{align-items:flex-start;display:flex;justify-content:center;max-height:80vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_fullScreenImage__jLVAQ{border-radius:12px;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_visitLinkRow__H8ai5{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-start;padding:4px 8px 0;width:100%}.GptWebCitation-module_visitLinkHint__FAwob{color:#6b7280;font-size:13px;line-height:1.4}.GptWebCitation-module_visitLink__1BDo8{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;white-space:nowrap}.GptWebCitation-module_visitLink__1BDo8:hover{background-color:#2563eb2e;text-decoration:none}.GptWebCitation-module_skeleton__1q51h{align-items:center;background-color:#f3f4f6;border-radius:12px;display:flex;justify-content:center;min-height:384px;overflow:hidden;padding:24px;position:relative;width:100%}.GptWebCitation-module_skeletonText__E6XgN{color:#6b7280;font-size:14px;line-height:1.5;max-width:320px;position:relative;text-align:center;z-index:1}.GptWebCitation-module_skeletonShimmer__yqWJh{animation:GptWebCitation-module_shimmer__-ZbQA 1.5s linear infinite;background:linear-gradient(90deg,#0000,#fff9,#0000);inset:0;position:absolute}@keyframes GptWebCitation-module_shimmer__-ZbQA{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
|
-
//# sourceMappingURL=GptWebCitation.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{useState as a,useEffect as n}from"react";import{Maximize2 as o,SquareArrowOutUpRight as r}from"lucide-react";import l from"./GptWebCitationImageFullScreenView.js";import s from"./GptWebCitationSkeleton.js";import{sanitizeExternalUrl as c}from"./utils/citationData.utils.js";import m from"./GptWebCitation.module.css.js";var d=function(d){var p=d.citationImage,u=d.citationUrl,f=d.showExpandImageButton,g=void 0===f||f,v=a(!1),h=v[0],C=v[1],b=a("loading"),k=b[0],N=b[1];n(function(){var i=!0;N("loading"),C(!1);var t=new Image;return t.onload=function(){i&&N("loaded")},t.onerror=function(){i&&N("error")},t.src=p,function(){i=!1,t.onload=null,t.onerror=null}},[p]);var w="loaded"===k,I=c(u);return t("div",i({className:m.imageCitationWrapper},{children:[e("div",i({className:m.imageCitationCenter},{children:w?t("div",i({className:m.imageCitationViewport},{children:[e("div",i({className:m.imageCitationScrollContainer},{children:e("img",{src:p,alt:"Web citation snapshot",className:m.citationImage})})),g&&e("button",i({type:"button",onClick:function(i){i.stopPropagation(),C(!0)},className:m.expandImageButton,"aria-label":"View citation image in full screen",title:"Expand image"},{children:e(o,{size:16,strokeWidth:2})}))]})):e(s,{})})),I&&t("div",i({className:m.visitLinkRow},{children:[e("span",i({className:m.visitLinkHint},{children:"Open link in new tab to read in detail"})),t("a",i({href:I,target:"_blank",rel:"noreferrer",className:m.visitLink},{children:["Visit Link",e(r,{size:16})]}))]})),h&&w&&e(l,{src:p,onClose:function(){return C(!1)}})]}))};export{d as default};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationImageCitation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationImageCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsx as o,jsxs as r}from"react/jsx-runtime";import{useEffect as t}from"react";import{createPortal as l}from"react-dom";import{X as n}from"lucide-react";import i from"./GptWebCitation.module.css.js";var a=function(e){return e.stopPropagation()},c=function(e){e.stopPropagation()},s=function(s){var m=s.src,u=s.onClose;return t(function(){var e=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}},[]),l(o("div",e({role:"dialog","aria-modal":"true",className:i.fullScreenOverlay,onClick:u,onWheel:c},{children:r("div",e({className:i.fullScreenContent,onClick:a},{children:[o("button",e({type:"button",onClick:u,className:i.fullScreenCloseButton,"aria-label":"Close full screen view"},{children:o(n,{size:18,strokeWidth:2})})),o("div",e({className:i.fullScreenImageWrapper},{children:o("img",{src:m,alt:"Citation full view",className:i.fullScreenImage})}))]}))})),document.body)};export{s as default};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationImageFullScreenView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationImageFullScreenView.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__rest as r,__assign as n}from"tslib";import{jsx as t,Fragment as e}from"react/jsx-runtime";import{useRef as i,useMemo as c,useEffect as l}from"react";import o from"react-markdown";import a from"rehype-raw";import{sanitizeExternalUrl as h}from"./utils/citationData.utils.js";import u from"./GptWebCitation.module.css.js";var d=function(d){var f=d.content,s=d.activeHighlightIndex,v=d.onHighlightCountChange,m=i(null),g=c(function(){var r,n=f.match(/id=["']highlighted-\d+["']/g);if(null==n?void 0:n.length)return n.length;var t=f.match(/<a\b[^>]*>/gi);return null!==(r=null==t?void 0:t.length)&&void 0!==r?r:0},[f]),p=c(function(){return/id=["']highlighted-\d+["']/.test(f)},[f]);l(function(){null==v||v(g)},[g,v]),l(function(){var r;if(m.current){var n=m.current.querySelector("#highlighted-".concat(s));if(n)n.scrollIntoView({behavior:"smooth",block:"center"});else null===(r=m.current.querySelectorAll("a[href]")[s])||void 0===r||r.scrollIntoView({behavior:"smooth",block:"center"})}},[s,f]);var b=c(function(){var i=-1;return{span:function(e){e.node;var i=r(e,["node"]),c=i.id;if(null==c?void 0:c.startsWith("highlighted-")){var l=Number(c.replace("highlighted-",""))===s;return t("span",n({},i,{id:c,className:"".concat(u.highlight).concat(l?" ".concat(u.highlightActive):"")}))}return t("span",n({},i))},a:function(r){var c,l=r.children,o=r.href,a=r.title,d=r.className;if(!o)return t(e,{children:l});i+=1;var f=!p&&i===s,v=null!==(c=h(o))&&void 0!==c?c:"#";return t("a",n({href:v,title:a,target:"_blank",rel:"noreferrer",className:"".concat(u.citationLink).concat(f?" ".concat(u.citationLinkActive):"").concat(d?" ".concat(d):"")},{children:l}))},code:function(e){var i=e.children,c=r(e,["children"]);return t("code",n({},c,{children:i}))},ol:function(e){var i=e.children,c=r(e,["children"]);return t("ol",n({},c,{children:i}))},ul:function(e){var i=e.children,c=r(e,["children"]);return t("ul",n({},c,{children:i}))},li:function(e){var i=e.children,c=r(e,["children"]);return t("li",n({},c,{children:i}))},p:function(e){var i=e.children,c=r(e,["children"]);return t("p",n({},c,{children:i}))}}},[s,p,f]);return t("div",n({ref:m,className:u.markdownBody},{children:t(o,n({rehypePlugins:[a],components:b},{children:f}))}))};export{d as default};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationMarkdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as s}from"react/jsx-runtime";import o from"./GptWebCitation.module.css.js";var i=function(){return t("div",e({className:o.skeleton},{children:[s("span",e({className:o.skeletonText},{children:"Loading a snapshot of citation from source website..."})),s("div",{className:o.skeletonShimmer})]}))};export{i as default};
|
|
2
|
-
//# sourceMappingURL=GptWebCitationSkeleton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationSkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=function(t){return t?t.replace(/\\"/g,'"').replace(/\\'/g,"'").trim():""},i=function(t){if(null==t?void 0:t.trim()){var i=t.trim();if(!/^(javascript|data|vbscript):/i.test(i))try{var r=new URL(i);if("http:"===r.protocol||"https:"===r.protocol)return i}catch(t){if(i.startsWith("gs://"))return i}}},r=function(i){if(i)for(var r=t(i),e=0,a=[/decision strength is\s+([\d.]+)\s*%/i,/relevance score is\s+([\d.]+)\s*%/i,/confidence(?:\s+score)?(?:\s+is)?\s+([\d.]+)\s*%/i];e<a.length;e++){var n=a[e],o=r.match(n);if(null==o?void 0:o[1]){var c=Number(o[1]);if(!Number.isNaN(c))return c}}},e=function(i){if(i){var r=t(i).match(/<a\b[^>]*>(.*?)<\/a>/i);if(null==r?void 0:r[1]){var e=r[1].replace(/<[^>]*>?/gm,"").trim();if(e)return e}}},a=function(t){if(t)try{var i=new URL(t).hostname.replace(/^www\./i,""),r=i.split(".");if(r.length<2)return i;var e=r[r.length-2];return e.charAt(0).toUpperCase()+e.slice(1)}catch(t){return}},n=function(t){var r,e,a,n=i(null===(r=null==t?void 0:t.imageMetadata)||void 0===r?void 0:r.signed_url);if(n)return n;var o=null===(a=null===(e=null==t?void 0:t.imageMetadata)||void 0===e?void 0:e.gs_uri)||void 0===a?void 0:a.trim();return(null==o?void 0:o.startsWith("gs://"))?o:void 0},o=function(o){var c,l,u=t(o.content);return{citationId:o.citationId,content:u,citationType:o.citationType,citationUrl:i(o.citationUrl),topic:null!==(c=e(u))&&void 0!==c?c:"Web Citation",relevanceScore:null!==(l=r(u))&&void 0!==l?l:0,learnedFrom:a(o.citationUrl),web_citation_gcs_url:n(o),userId:o.userId,userName:o.userName,userEmail:o.userEmail,db:o.db,imageMetadata:o.imageMetadata}};export{a as extractLearnedFromUrl,r as extractRelevanceScoreFromContent,e as extractTopicFromContent,n as getWebCitationImageUrl,o as mapCitationDataToDisplay,i as sanitizeExternalUrl};
|
|
2
|
-
//# sourceMappingURL=citationData.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"citationData.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type NeuralNetworkIconProps = {
|
|
2
|
-
className?: string;
|
|
3
|
-
size?: number;
|
|
4
|
-
color?: string;
|
|
5
|
-
"aria-hidden"?: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare const NeuralNetworkIcon: ({ className, size, color, "aria-hidden": ariaHidden, }: NeuralNetworkIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default NeuralNetworkIcon;
|
|
9
|
-
//# sourceMappingURL=NeuralNetworkIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NeuralNetworkIcon.d.ts","sourceRoot":"","sources":["../../../../../src/assests/svg/NeuralNetworkIcon.tsx"],"names":[],"mappings":"AAEA,KAAK,sBAAsB,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,iBAAiB,2DAKpB,sBAAsB,4CAsBxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAMzE,OAAO,EAAE,oBAAoB,EAAiC,MAAM,SAAS,CAAC;AAwE9E,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwOlD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type GptWebCitationImageCitationProps = {
|
|
2
|
-
citationImage: string;
|
|
3
|
-
citationUrl?: string;
|
|
4
|
-
showExpandImageButton?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const GptWebCitationImageCitation: ({ citationImage, citationUrl, showExpandImageButton, }: GptWebCitationImageCitationProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default GptWebCitationImageCitation;
|
|
8
|
-
//# sourceMappingURL=GptWebCitationImageCitation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationImageCitation.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageCitation.tsx"],"names":[],"mappings":"AAOA,KAAK,gCAAgC,GAAG;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAIF,QAAA,MAAM,2BAA2B,2DAI9B,gCAAgC,4CA0ElC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type GptWebCitationImageFullScreenViewProps = {
|
|
3
|
-
src: string;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
};
|
|
6
|
-
declare const GptWebCitationImageFullScreenView: ({ src, onClose, }: GptWebCitationImageFullScreenViewProps) => React.ReactPortal;
|
|
7
|
-
export default GptWebCitationImageFullScreenView;
|
|
8
|
-
//# sourceMappingURL=GptWebCitationImageFullScreenView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationImageFullScreenView.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationImageFullScreenView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,KAAK,sCAAsC,GAAG;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAQF,QAAA,MAAM,iCAAiC,sBAGpC,sCAAsC,sBAkCxC,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type GptWebCitationMarkdownProps = {
|
|
3
|
-
content: string;
|
|
4
|
-
activeHighlightIndex: number;
|
|
5
|
-
onHighlightCountChange?: (count: number) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const GptWebCitationMarkdown: React.FC<GptWebCitationMarkdownProps>;
|
|
8
|
-
export default GptWebCitationMarkdown;
|
|
9
|
-
//# sourceMappingURL=GptWebCitationMarkdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationMarkdown.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationMarkdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAM1D,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA8FjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationSkeleton.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationSkeleton.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,sBAAsB,+CAO3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IGptWebCitationTestProps } from "./types";
|
|
2
|
-
declare const GptWebCitationTest: ({ gptCitation, isWebCitation, webCitationData: webCitationDataProp, sourceModel, learnedFrom, showWebCitation: showWebCitationProp, onGenerateWebCitation, isWebCitationLoading: isWebCitationLoadingProp, showExpandImageButton, styles, }: IGptWebCitationTestProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default GptWebCitationTest;
|
|
4
|
-
//# sourceMappingURL=GptWebCitationTest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GptWebCitationTest.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/GptWebCitationTest.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAiBnD,QAAA,MAAM,kBAAkB,gPAWrB,wBAAwB,4CA2D1B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebCitationSampleResponse.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/WebCitationSampleResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,4BAA4B,EAAE,uBAkB1C,CAAA;AAGD,eAAO,MAAM,mCAAmC,EAAE,uBAGjD,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
2
|
-
import type { CognitiveInternalgptCoreProps } from "../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent";
|
|
3
|
-
export interface IGptWebCitationDbMetadata {
|
|
4
|
-
citation_id?: string;
|
|
5
|
-
blob_path?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IGptWebCitationImageMetadata {
|
|
8
|
-
signed_url?: string;
|
|
9
|
-
blob_path?: string;
|
|
10
|
-
gs_uri?: string;
|
|
11
|
-
}
|
|
12
|
-
type GptWebCitationType = "web" | (string & {});
|
|
13
|
-
export interface IWebCitationApiResponse {
|
|
14
|
-
citationId?: string;
|
|
15
|
-
content?: string;
|
|
16
|
-
citationType?: GptWebCitationType;
|
|
17
|
-
message?: string;
|
|
18
|
-
userId?: string;
|
|
19
|
-
userName?: string;
|
|
20
|
-
userEmail?: string;
|
|
21
|
-
citationUrl?: string;
|
|
22
|
-
db?: IGptWebCitationDbMetadata;
|
|
23
|
-
imageMetadata?: IGptWebCitationImageMetadata;
|
|
24
|
-
}
|
|
25
|
-
export interface IGptWebCitationMappedData {
|
|
26
|
-
citationId?: string;
|
|
27
|
-
content: string;
|
|
28
|
-
citationType?: GptWebCitationType;
|
|
29
|
-
citationUrl?: string;
|
|
30
|
-
topic: string;
|
|
31
|
-
relevanceScore: number;
|
|
32
|
-
learnedFrom?: string;
|
|
33
|
-
web_citation_gcs_url?: string;
|
|
34
|
-
userId?: string;
|
|
35
|
-
userName?: string;
|
|
36
|
-
userEmail?: string;
|
|
37
|
-
db?: IGptWebCitationDbMetadata;
|
|
38
|
-
imageMetadata?: IGptWebCitationImageMetadata;
|
|
39
|
-
}
|
|
40
|
-
export type GptWebCitationView = "gpt" | "web";
|
|
41
|
-
export type IGptCitationConfig = Pick<CognitiveInternalgptCoreProps, "item" | "headerTitle" | "index" | "iconsConfig" | "DocumentTitle" | "previewCallback" | "bodyHeight" | "disableMaximize">;
|
|
42
|
-
export interface IGptWebCitationGptStyles {
|
|
43
|
-
/** Border wrapper around the GPT citation panel */
|
|
44
|
-
wrapper?: CSSProperties;
|
|
45
|
-
/** View Web Citation button row overlay in the GPT footer */
|
|
46
|
-
footerAction?: CSSProperties;
|
|
47
|
-
/** View Web Citation toggle button */
|
|
48
|
-
toggleButton?: CSSProperties;
|
|
49
|
-
}
|
|
50
|
-
export interface IGptWebCitationWebStyles {
|
|
51
|
-
/** Outer web citation card (header + content + footer) */
|
|
52
|
-
panel?: CSSProperties;
|
|
53
|
-
header?: CSSProperties;
|
|
54
|
-
content?: CSSProperties;
|
|
55
|
-
footer?: CSSProperties;
|
|
56
|
-
/** View GPT Citation toggle button */
|
|
57
|
-
toggleButton?: CSSProperties;
|
|
58
|
-
learnedFrom?: CSSProperties;
|
|
59
|
-
}
|
|
60
|
-
export interface IGptWebCitationStyleOverrides {
|
|
61
|
-
/** Shared outer wrapper applied in both GPT and web views */
|
|
62
|
-
container?: CSSProperties;
|
|
63
|
-
gptCitation?: IGptWebCitationGptStyles;
|
|
64
|
-
webCitation?: IGptWebCitationWebStyles;
|
|
65
|
-
/** @deprecated Use `gptCitation.wrapper` */
|
|
66
|
-
gptCitationWrapper?: CSSProperties;
|
|
67
|
-
/** @deprecated Use `gptCitation.footerAction` */
|
|
68
|
-
footerAction?: CSSProperties;
|
|
69
|
-
/** @deprecated Use `gptCitation.toggleButton` or `webCitation.toggleButton` */
|
|
70
|
-
webCitationButton?: CSSProperties;
|
|
71
|
-
}
|
|
72
|
-
export interface IGptWebCitationProps {
|
|
73
|
-
gptCitation: IGptCitationConfig;
|
|
74
|
-
/** When true, enables the web citation overlay and toggle button. When false, only GPT citation is shown. */
|
|
75
|
-
isWebCitation?: boolean;
|
|
76
|
-
webCitationData?: IWebCitationApiResponse;
|
|
77
|
-
topic?: string;
|
|
78
|
-
sourceModel?: string;
|
|
79
|
-
sourceLabel?: string;
|
|
80
|
-
relevanceScore?: number;
|
|
81
|
-
learnedFrom?: string;
|
|
82
|
-
/** When true, renders the Web Citation view instead of GPT Citation. */
|
|
83
|
-
showWebCitation?: boolean;
|
|
84
|
-
/** Called when the user requests web citation generation (no cached data yet). */
|
|
85
|
-
onGenerateWebCitation?: () => void;
|
|
86
|
-
/** Parent-controlled loading state while web citation is being generated. */
|
|
87
|
-
isWebCitationLoading?: boolean;
|
|
88
|
-
onToggleCitationView?: () => void;
|
|
89
|
-
/** When true, shows the expand button on image citation snapshots. Defaults to true. */
|
|
90
|
-
showExpandImageButton?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* When false, hides the GPT citation header maximize/expand icon.
|
|
93
|
-
* Equivalent to `gptCitation.disableMaximize: true`.
|
|
94
|
-
*/
|
|
95
|
-
showGptMaximizeButton?: boolean;
|
|
96
|
-
styles?: IGptWebCitationStyleOverrides;
|
|
97
|
-
}
|
|
98
|
-
export interface IGptWebCitationTestProps {
|
|
99
|
-
gptCitation?: IGptCitationConfig;
|
|
100
|
-
isWebCitation?: boolean;
|
|
101
|
-
webCitationData?: IWebCitationApiResponse;
|
|
102
|
-
sourceModel?: string;
|
|
103
|
-
learnedFrom?: string;
|
|
104
|
-
showWebCitation?: boolean;
|
|
105
|
-
onGenerateWebCitation?: () => void;
|
|
106
|
-
isWebCitationLoading?: boolean;
|
|
107
|
-
showExpandImageButton?: boolean;
|
|
108
|
-
showGptMaximizeButton?: boolean;
|
|
109
|
-
styles?: IGptWebCitationStyleOverrides;
|
|
110
|
-
}
|
|
111
|
-
export {};
|
|
112
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/GptWebCitation/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oEAAoE,CAAC;AAExH,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,kBAAkB,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEhD,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,CAAC,EAAE,yBAAyB,CAAC;IAC/B,aAAa,CAAC,EAAE,4BAA4B,CAAC;CAC9C;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,yBAAyB,CAAC;IAC/B,aAAa,CAAC,EAAE,4BAA4B,CAAC;CAC9C;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,KAAK,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,6BAA6B,EAC3B,MAAM,GACN,aAAa,GACb,OAAO,GACP,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,YAAY,GACZ,iBAAiB,CACpB,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,sCAAsC;IACtC,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,sCAAsC;IACtC,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA6B;IAC5C,6DAA6D;IAC7D,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,4CAA4C;IAC5C,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,iDAAiD;IACjD,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,aAAa,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,kBAAkB,CAAC;IAChC,6GAA6G;IAC7G,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kFAAkF;IAClF,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,6EAA6E;IAC7E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,wFAAwF;IACxF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC;AAED,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,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IGptWebCitationMappedData, IWebCitationApiResponse } from "../types";
|
|
2
|
-
export declare const sanitizeExternalUrl: (url?: string) => string | undefined;
|
|
3
|
-
export declare const extractRelevanceScoreFromContent: (content?: string) => number | undefined;
|
|
4
|
-
export declare const extractTopicFromContent: (content?: string) => string | undefined;
|
|
5
|
-
export declare const extractLearnedFromUrl: (citationUrl?: string) => string | undefined;
|
|
6
|
-
export declare const getWebCitationImageUrl: (citationData?: IWebCitationApiResponse) => string | undefined;
|
|
7
|
-
export declare const mapCitationDataToDisplay: (citationData: IWebCitationApiResponse) => IGptWebCitationMappedData;
|
|
8
|
-
//# sourceMappingURL=citationData.utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"citationData.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/GptWebCitation/utils/citationData.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AASlB,eAAO,MAAM,mBAAmB,SAAU,MAAM,KAAG,MAAM,GAAG,SAgB3D,CAAC;AAEF,eAAO,MAAM,gCAAgC,aAAc,MAAM,KAAG,MAAM,GAAG,SAmB5E,CAAC;AAEF,eAAO,MAAM,uBAAuB,aAAc,MAAM,KAAG,MAAM,GAAG,SAWnE,CAAC;AAEF,eAAO,MAAM,qBAAqB,iBAClB,MAAM,KACnB,MAAM,GAAG,SAkBX,CAAC;AAEF,eAAO,MAAM,sBAAsB,kBAClB,uBAAuB,KACrC,MAAM,GAAG,SAQX,CAAC;AAEF,eAAO,MAAM,wBAAwB,iBACrB,uBAAuB,KACpC,yBAkBF,CAAC"}
|