@e-llm-studio/citation 0.0.211 → 0.0.212
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 +340 -0
- package/dist/assests/icons/CitationsIcon.js +2 -0
- package/dist/assests/icons/CitationsIcon.js.map +1 -0
- package/dist/assests/icons/CitationsSparkleIcon.js +2 -0
- package/dist/assests/icons/CitationsSparkleIcon.js.map +1 -0
- package/dist/assests/svg/NeuralNetworkIcon.js +2 -0
- package/dist/assests/svg/NeuralNetworkIcon.js.map +1 -0
- package/dist/cjs/assests/icons/CitationsIcon.js +2 -0
- package/dist/cjs/assests/icons/CitationsIcon.js.map +1 -0
- package/dist/cjs/assests/icons/CitationsSparkleIcon.js +2 -0
- package/dist/cjs/assests/icons/CitationsSparkleIcon.js.map +1 -0
- package/dist/cjs/assests/svg/NeuralNetworkIcon.js +2 -0
- package/dist/cjs/assests/svg/NeuralNetworkIcon.js.map +1 -0
- package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/cjs/features/CitationRenderer/MarkdownRenderer.js +1 -1
- package/dist/cjs/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +2 -0
- package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +2 -0
- package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/HistorySkeleton.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/OverrideTimeline.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/RuleContentComponent.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/css/Override.module.css.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/css/Override.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/css/RuleAccordian.module.css.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/css/RuleAccordian.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/css/common.module.css.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/css/common.module.css.js.map +1 -0
- package/dist/cjs/features/InstantLearningCitation/types/Types.js +2 -0
- package/dist/cjs/features/InstantLearningCitation/types/Types.js.map +1 -0
- 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/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
- package/dist/features/CitationRenderer/MarkdownRenderer.module.css.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useStyles.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitation.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitation.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitation.module.css.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitation.module.css.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +1 -0
- package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +2 -0
- package/dist/features/GptWebCitation/GptWebCitationSkeleton.js.map +1 -0
- package/dist/features/GptWebCitation/utils/citationData.utils.js +2 -0
- package/dist/features/GptWebCitation/utils/citationData.utils.js.map +1 -0
- package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js +2 -0
- package/dist/features/InstantLearningCitation/CongnitiveDecisioningComponent.js.map +1 -0
- package/dist/features/InstantLearningCitation/HistorySkeleton.js +2 -0
- package/dist/features/InstantLearningCitation/HistorySkeleton.js.map +1 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitation.js +2 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitation.js.map +1 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js +2 -0
- package/dist/features/InstantLearningCitation/InstantLearningCitationComponent.js.map +1 -0
- package/dist/features/InstantLearningCitation/OverrideTimeline.js +2 -0
- package/dist/features/InstantLearningCitation/OverrideTimeline.js.map +1 -0
- package/dist/features/InstantLearningCitation/RuleConditionBlock.js +2 -0
- package/dist/features/InstantLearningCitation/RuleConditionBlock.js.map +1 -0
- package/dist/features/InstantLearningCitation/RuleContentComponent.js +2 -0
- package/dist/features/InstantLearningCitation/RuleContentComponent.js.map +1 -0
- package/dist/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js +2 -0
- package/dist/features/InstantLearningCitation/css/CongnitiveDecisioning.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/css/Override.module.css.js +2 -0
- package/dist/features/InstantLearningCitation/css/Override.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/css/RuleAccordian.module.css.js +2 -0
- package/dist/features/InstantLearningCitation/css/RuleAccordian.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/css/common.module.css.js +2 -0
- package/dist/features/InstantLearningCitation/css/common.module.css.js.map +1 -0
- package/dist/features/InstantLearningCitation/types/Types.js +2 -0
- package/dist/features/InstantLearningCitation/types/Types.js.map +1 -0
- 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/assests/icons/CitationsIcon.d.ts +2 -0
- package/dist/types/src/assests/icons/CitationsIcon.d.ts.map +1 -0
- package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts +10 -0
- package/dist/types/src/assests/icons/CitationsSparkleIcon.d.ts.map +1 -0
- package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts +9 -0
- package/dist/types/src/assests/svg/NeuralNetworkIcon.d.ts.map +1 -0
- package/dist/types/src/features/CitationRenderer/CitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CitationRenderer/MarkdownRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +6 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts +3 -2
- package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +5 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +8 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +8 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts +9 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationMarkdown.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +3 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +4 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts +4 -0
- package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/types.d.ts +112 -0
- package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +8 -0
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts +5 -0
- package/dist/types/src/features/InstantLearningCitation/CongnitiveDecisioningComponent.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts +10 -0
- package/dist/types/src/features/InstantLearningCitation/HistorySkeleton.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts +2 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitation.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts +10 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationComponent.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts +4 -0
- package/dist/types/src/features/InstantLearningCitation/InstantLearningCitationTest.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts +13 -0
- package/dist/types/src/features/InstantLearningCitation/OverrideTimeline.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts +13 -0
- package/dist/types/src/features/InstantLearningCitation/RuleConditionBlock.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts +5 -0
- package/dist/types/src/features/InstantLearningCitation/RuleContentComponent.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts +12 -0
- package/dist/types/src/features/InstantLearningCitation/SlashLoader.d.ts.map +1 -0
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts +350 -0
- package/dist/types/src/features/InstantLearningCitation/types/Types.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +12 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as l}from"tslib";import{useCallback as
|
|
1
|
+
import{__assign as l}from"tslib";import{useCallback as e}from"react";import{generateColorPalette as n,getFirstDeviationOutputValue as i,getFirstDeviationColor as o,safeStringify as t}from"../CognitiveComparehelpers.js";import{DEFAULT_DEVIAION_COLOR as u}from"../CognitiveCompareConstants.js";var d=function(d){var v=d.proposedSections,a=d.existingSections,r=d.maintainRelativeOrder,s=d.cognitiveMap,f=d.deviationData,b=d.treeData,g=d.resolvedComparisonConfig,c=d.badgeStyleOverride,p=e(function(e,t){var d,s,f;void 0===t&&(t="left");var b=null,g=null;if("left"===t)if(b=v[e],r&&b){var p=a.filter(function(l){var e;return null===(e=b.refIndexes)||void 0===e?void 0:e.includes(l.selfIndex)});g=p.find(function(l){return l.evaluationResult})||p[0]}else g=a[e];else if(g=a[e],r&&g){var m=v.filter(function(l){var e;return null===(e=l.refIndexes)||void 0===e?void 0:e.includes(g.selfIndex)});b=m.find(function(l){return l.evaluationResult})||m[0]}else b=v[e];var x=(null==b?void 0:b.relation)&&"not_defined"!==b.relation,_=(null==g?void 0:g.relation)&&"not_defined"!==g.relation,B=!(!(null==b?void 0:b.cognitiveData)&&!(null==g?void 0:g.cognitiveData)),C="left"===t?!(null==b?void 0:b.title)&&!(null==b?void 0:b.content):!(null==g?void 0:g.title)&&!(null==g?void 0:g.content);if(!x&&!_&&!B){var S=C?null:"Not Defined",D=n(u);if(c)(y=c(S))&&(D=l(l({},D),{badgeBg:y.bg,badgeText:y.text,badgeBorder:y.border}));return l(l({},D),{label:S})}var y,R=null!==(s=null!==(d=null==b?void 0:b.evaluationResult)&&void 0!==d?d:null==g?void 0:g.evaluationResult)&&void 0!==s?s:null,I=i(R),T=o(R),j=n(T);c&&((y=c(I))&&(j=l(l({},j),{badgeBg:y.bg,badgeText:y.text,badgeBorder:y.border})));return l(l({},j),null!=R?{label:null!==(f=I)&&void 0!==f?f:""}:{label:null})},[v,a,s,g,r,c]),m=e(function(e){for(var d,r,s=e.split("-").map(Number),f=v[s[0]],b=a[s[0]],g=1;g<s.length;g++)(null==f?void 0:f.subsections)&&(f=f.subsections[s[g]]),(null==b?void 0:b.subsections)&&(b=b.subsections[s[g]]);if(!f&&!b)return null;var p=(null==f?void 0:f.relation)&&"not_defined"!==f.relation,m=(null==b?void 0:b.relation)&&"not_defined"!==b.relation;t(null==f?void 0:f.id)||t(null==b?void 0:b.id);var x=!(!(null==f?void 0:f.cognitiveData)&&!(null==b?void 0:b.cognitiveData));if(!p&&!m&&!x){var _=n(u);if(c)(B=c(null))&&(_=l(l({},_),{badgeBg:B.bg,badgeText:B.text,badgeBorder:B.border}));return l(l({},_),{label:null})}var B,C=null!==(r=null!==(d=null==f?void 0:f.evaluationResult)&&void 0!==d?d:null==b?void 0:b.evaluationResult)&&void 0!==r?r:null,S=i(C),D=o(C),y=n(D);c&&((B=c(S))&&(y=l(l({},y),{badgeBg:B.bg,badgeText:B.text,badgeBorder:B.border})));return l(l({},y),null!=C?{label:null!=S?S:""}:{label:null})},[v,a,s,g,c]),x=e(function(e,o){var t,d,v,a,r,s,g,c,p,m,x,_,B,C,S,D,y,R,I,T,j;if(!e||null==o)return null;var h=null!==(r=null!==(d=null===(t=null==f?void 0:f[e])||void 0===t?void 0:t.evaluation_result)&&void 0!==d?d:null===(a=null===(v=null==b?void 0:b.nodes)||void 0===v?void 0:v[e])||void 0===a?void 0:a.evaluation_result)&&void 0!==r?r:null;if(!h||"object"!=typeof h)return null;var N=null!==(m=null!==(p=null!==(g=null===(s=null==h?void 0:h.deviations)||void 0===s?void 0:s[o])&&void 0!==g?g:null===(c=null==h?void 0:h.deviation_entries)||void 0===c?void 0:c[o])&&void 0!==p?p:null==h?void 0:h[o])&&void 0!==m?m:null,O=null!==(T=null!==(y=null!==(S=null!==(B=null===(_=null===(x=null==N?void 0:N.evaluation_outputs)||void 0===x?void 0:x.metadata)||void 0===_?void 0:_.label_color)&&void 0!==B?B:null===(C=null==N?void 0:N.evaluation_outputs)||void 0===C?void 0:C.label_color)&&void 0!==S?S:null===(D=null==N?void 0:N.metadata)||void 0===D?void 0:D.label_color)&&void 0!==y?y:null===(I=null===(R=null==h?void 0:h.evaluation_outputs)||void 0===R?void 0:R.metadata)||void 0===I?void 0:I.label_color)&&void 0!==T?T:u,K=null!==(j=i(N))&&void 0!==j?j:i(h);return l(l({},n(O)),{label:K})},[f,b]);return{getSectionCompareStyle:p,getSubSectionCompareStyle:m,getDeviationStyleByKey:x}};export{d as useStyleHelpers};
|
|
2
2
|
//# sourceMappingURL=useStyles.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={overlay:"GptWebCitation-module_overlay__OY5pa",gptCitationWrapper:"GptWebCitation-module_gptCitationWrapper__EN7nk",gptCitationToggleFooter:"GptWebCitation-module_gptCitationToggleFooter__ncfLT",gptCitationFooterAction:"GptWebCitation-module_gptCitationFooterAction__WWpAY",gptCitationWrapperWithSource:"GptWebCitation-module_gptCitationWrapperWithSource__1-ynq",panel:"GptWebCitation-module_panel__ek9Lq",panelHeader:"GptWebCitation-module_panelHeader__afwge",panelSource:"GptWebCitation-module_panelSource__oFl-c",panelHeaderActions:"GptWebCitation-module_panelHeaderActions__sGrhi",pagination:"GptWebCitation-module_pagination__VQvbY",paginationButton:"GptWebCitation-module_paginationButton__fzJyQ",paginationLabel:"GptWebCitation-module_paginationLabel__S7t1W",confidenceBadge:"GptWebCitation-module_confidenceBadge__4BBTf",panelContent:"GptWebCitation-module_panelContent__vg-mG",panelContentExpanded:"GptWebCitation-module_panelContentExpanded__3aGjq",markdownBody:"GptWebCitation-module_markdownBody__5kdwH",highlight:"GptWebCitation-module_highlight__Xr1wl",highlightActive:"GptWebCitation-module_highlightActive__iFuz5",citationLink:"GptWebCitation-module_citationLink__kH9JC",citationLinkActive:"GptWebCitation-module_citationLinkActive__SShYx",panelFooter:"GptWebCitation-module_panelFooter__wm98C",webCitationButton:"GptWebCitation-module_webCitationButton__blI--",webCitationButtonIcon:"GptWebCitation-module_webCitationButtonIcon__r9lPc",learnedFrom:"GptWebCitation-module_learnedFrom__DMyLS",imageCitationWrapper:"GptWebCitation-module_imageCitationWrapper__iQUSw",imageCitationCenter:"GptWebCitation-module_imageCitationCenter__DMlqn",imageCitationViewport:"GptWebCitation-module_imageCitationViewport__xcotr",imageCitationScrollContainer:"GptWebCitation-module_imageCitationScrollContainer__bAQNk",citationImage:"GptWebCitation-module_citationImage__7rWdT",citationImagePreload:"GptWebCitation-module_citationImagePreload__L7ibJ",expandImageButton:"GptWebCitation-module_expandImageButton__598k6",fullScreenOverlay:"GptWebCitation-module_fullScreenOverlay__Z5U8h",fullScreenContent:"GptWebCitation-module_fullScreenContent__xIXZR",fullScreenCloseButton:"GptWebCitation-module_fullScreenCloseButton__lnaT1",fullScreenImageWrapper:"GptWebCitation-module_fullScreenImageWrapper__ADPGU",fullScreenImage:"GptWebCitation-module_fullScreenImage__jLVAQ",visitLinkRow:"GptWebCitation-module_visitLinkRow__H8ai5",visitLinkHint:"GptWebCitation-module_visitLinkHint__FAwob",visitLink:"GptWebCitation-module_visitLink__1BDo8",skeleton:"GptWebCitation-module_skeleton__1q51h",skeletonText:"GptWebCitation-module_skeletonText__E6XgN",skeletonShimmer:"GptWebCitation-module_skeletonShimmer__yqWJh",shimmer:"GptWebCitation-module_shimmer__-ZbQA"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".GptWebCitation-module_overlay__OY5pa{display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_gptCitationWrapper__EN7nk{background-color:#fff;border:solid #e5e7eb;border-radius:8px;border-width:1px 1px 2px;box-shadow:0 1px 2px #0000000d;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;position:relative;width:100%}.GptWebCitation-module_gptCitationToggleFooter__ncfLT{align-items:center;background-color:#f2f4f7;border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;padding:1rem 1.5rem}.GptWebCitation-module_gptCitationFooterAction__WWpAY{align-items:center;bottom:0;box-sizing:border-box;display:flex;height:3rem;left:1.5rem;padding:0;pointer-events:none;position:absolute;z-index:2}.GptWebCitation-module_gptCitationFooterAction__WWpAY>*{pointer-events:auto}.GptWebCitation-module_gptCitationWrapperWithSource__1-ynq [class*=modalFooterSource]{justify-content:flex-end!important;padding-left:13rem}.GptWebCitation-module_panel__ek9Lq{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#1f2937;display:flex;flex-direction:column;font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;width:100%}.GptWebCitation-module_panelHeader__afwge{align-items:center;background-color:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex;font-size:13px;gap:8px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_panelSource__oFl-c{color:#374151;flex:1;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.GptWebCitation-module_panelHeaderActions__sGrhi{align-items:center;display:flex;flex-shrink:0;gap:8px}.GptWebCitation-module_pagination__VQvbY{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:6px;display:flex;gap:2px;padding:2px 4px}.GptWebCitation-module_paginationButton__fzJyQ{align-items:center;background:#0000;border:none;border-radius:4px;color:#6b7280;cursor:pointer;display:flex;justify-content:center;padding:2px}.GptWebCitation-module_paginationButton__fzJyQ:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_paginationButton__fzJyQ:disabled{cursor:not-allowed;opacity:.4}.GptWebCitation-module_paginationLabel__S7t1W{color:#6b7280;font-size:12px;min-width:36px;padding:0 4px;text-align:center}.GptWebCitation-module_confidenceBadge__4BBTf{align-items:center;background-color:#ecfdf5;border:1px solid #10b981;border-radius:9999px;color:#059669;display:inline-flex;font-size:13px;font-weight:500;gap:4px;padding:4px 10px}.GptWebCitation-module_panelContent__vg-mG{max-height:192px;overflow-y:auto;padding:8px 12px 12px}.GptWebCitation-module_panelContentExpanded__3aGjq{display:flex;flex-direction:column;max-height:none;min-height:384px;overflow:hidden}.GptWebCitation-module_markdownBody__5kdwH{color:#374151;font-size:14px;line-height:1.6}.GptWebCitation-module_markdownBody__5kdwH ol{list-style-type:lower-alpha;margin:0;padding-left:1.25rem}.GptWebCitation-module_markdownBody__5kdwH li{margin-bottom:8px}.GptWebCitation-module_markdownBody__5kdwH code{background-color:#f3f4f6;border-radius:4px;color:#1f2937;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;padding:1px 6px}.GptWebCitation-module_highlight__Xr1wl{background-color:#fef08a;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_highlightActive__iFuz5{background-color:#fde047;border:1px solid #eab308;box-shadow:0 1px 2px #0000001a}.GptWebCitation-module_citationLink__kH9JC{color:#2563eb;font-weight:500;text-decoration:none}.GptWebCitation-module_citationLink__kH9JC:hover{text-decoration:underline}.GptWebCitation-module_citationLinkActive__SShYx{background-color:#fef08a;border:1px solid #eab308;border-radius:2px;color:#1f2937;padding:0 2px}.GptWebCitation-module_panelFooter__wm98C{align-items:center;background-color:#f9fafb;border-top:1px solid #e5e7eb;display:flex;font-size:13px;justify-content:space-between;padding:8px 16px}.GptWebCitation-module_webCitationButton__blI--{align-items:center;background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;color:#2563eb;cursor:pointer;display:inline-flex;font-size:14px;font-weight:700;gap:8px;justify-content:center;line-height:1.25;min-width:180px;padding:6px 16px;transition:background-color .15s ease;white-space:nowrap}.GptWebCitation-module_webCitationButton__blI--:hover:not(:disabled){background-color:#f3f4f6}.GptWebCitation-module_webCitationButton__blI--:disabled{cursor:not-allowed;opacity:.75}.GptWebCitation-module_webCitationButtonIcon__r9lPc{color:#2563eb;flex-shrink:0}.GptWebCitation-module_learnedFrom__DMyLS{color:#6b7280;font-size:13px}.GptWebCitation-module_imageCitationWrapper__iQUSw{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:12px;min-height:0;padding:8px 4px;width:100%}.GptWebCitation-module_imageCitationCenter__DMlqn{display:flex;flex:1;justify-content:center;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationViewport__xcotr{height:100%;max-width:100%;min-height:0;position:relative;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk{background-color:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar{width:8px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:9999px}.GptWebCitation-module_imageCitationScrollContainer__bAQNk::-webkit-scrollbar-track{background-color:initial}.GptWebCitation-module_citationImage__7rWdT{background-color:#f9fafb;border:none;border-radius:0;display:block;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_citationImagePreload__L7ibJ{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0}.GptWebCitation-module_expandImageButton__598k6{align-items:center;background-color:#374151eb;border:none;border-radius:6px;bottom:12px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:12px;transition:background-color .15s ease;width:32px;z-index:2}.GptWebCitation-module_expandImageButton__598k6:hover{background-color:#1f2937}.GptWebCitation-module_expandImageButton__598k6 svg{flex-shrink:0}.GptWebCitation-module_fullScreenOverlay__Z5U8h{align-items:center;backdrop-filter:blur(4px);background-color:#0009;display:flex;inset:0;justify-content:center;overflow:hidden;overscroll-behavior:contain;padding:16px;position:fixed;z-index:1100}.GptWebCitation-module_fullScreenContent__xIXZR{background-color:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 25px 50px -12px #00000040;max-height:90vh;max-width:95vw;overflow:hidden;position:relative}.GptWebCitation-module_fullScreenCloseButton__lnaT1{align-items:center;background-color:#374151eb;border:none;border-radius:6px;box-shadow:0 2px 6px #0003;color:#fff;cursor:pointer;display:inline-flex;height:32px;justify-content:center;padding:0;position:absolute;right:16px;top:16px;transition:background-color .15s ease;width:32px;z-index:1}.GptWebCitation-module_fullScreenCloseButton__lnaT1:hover{background-color:#1f2937}.GptWebCitation-module_fullScreenImageWrapper__ADPGU{align-items:flex-start;display:flex;justify-content:center;max-height:80vh;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px;scrollbar-color:#cbd5e1 #0000;scrollbar-width:thin;width:100%}.GptWebCitation-module_fullScreenImage__jLVAQ{border-radius:12px;height:auto;max-width:100%;object-fit:unset;width:100%}.GptWebCitation-module_visitLinkRow__H8ai5{align-items:center;display:flex;flex-shrink:0;gap:12px;justify-content:flex-start;padding:4px 8px 0;width:100%}.GptWebCitation-module_visitLinkHint__FAwob{color:#6b7280;font-size:13px;line-height:1.4}.GptWebCitation-module_visitLink__1BDo8{align-items:center;background-color:#2563eb1f;border-radius:6px;color:#2563eb;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;gap:6px;padding:6px 12px;text-decoration:none;white-space:nowrap}.GptWebCitation-module_visitLink__1BDo8:hover{background-color:#2563eb2e;text-decoration:none}.GptWebCitation-module_skeleton__1q51h{align-items:center;background-color:#f3f4f6;border-radius:12px;display:flex;justify-content:center;min-height:384px;overflow:hidden;padding:24px;position:relative;width:100%}.GptWebCitation-module_skeletonText__E6XgN{color:#6b7280;font-size:14px;line-height:1.5;max-width:320px;position:relative;text-align:center;z-index:1}.GptWebCitation-module_skeletonShimmer__yqWJh{animation:GptWebCitation-module_shimmer__-ZbQA 1.5s linear infinite;background:linear-gradient(90deg,#0000,#fff9,#0000);inset:0;position:absolute}@keyframes GptWebCitation-module_shimmer__-ZbQA{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=GptWebCitation.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationImageFullScreenView.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GptWebCitationSkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citationData.utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as n,jsxs as i}from"react/jsx-runtime";import{useState as o,useMemo as r}from"react";import l from"./css/CongnitiveDecisioning.module.css.js";import t from"./RuleContentComponent.js";var a=function(o){var r=o.ruleDetails,t=Boolean(r.variant_type),a=Boolean(r.tier);return t||a?n("div",e({className:l.ruleHeaderWrapper},{children:i("div",e({className:l.ruleHeader},{children:[t&&n("span",e({className:l.variantBadge},{children:r.variant_type})),a&&n("span",e({className:l.variantBadge},{children:r.tier}))]}))})):null},u=function(i){var u,d,p,s,c,v,h,f,g,m,y,w,A,T,C=i.data,D=i.labels,N=void 0===D?{}:D,R={adSummaryTitle:null!==(u=N.adSummaryTitle)&&void 0!==u?u:"Ad Summary",orderDate:null!==(d=N.orderDate)&&void 0!==d?d:"ORDER DATE",priorityCode:null!==(p=N.priorityCode)&&void 0!==p?p:"PRIORITY CODE",invCode:null!==(s=N.invCode)&&void 0!==s?s:"INV. CODE",breakCode:null!==(c=N.breakCode)&&void 0!==c?c:"BREAK CODE",duration:null!==(v=N.duration)&&void 0!==v?v:"DURATION",revenue:null!==(h=N.revenue)&&void 0!==h?h:"REVENUE",whenToApply:null!==(f=N.whenToApply)&&void 0!==f?f:"When to Apply",whenNotToApply:null!==(g=N.whenNotToApply)&&void 0!==g?g:"When Not to Apply",noConditions:null!==(m=N.noConditions)&&void 0!==m?m:"No conditions applied",whyRuleApplied:null!==(y=N.whyRuleApplied)&&void 0!==y?y:"Why this rule was applied?",decisionStrength:null!==(w=N.decisionStrength)&&void 0!==w?w:"Decision Strength",reasoning:null!==(A=N.reasoning)&&void 0!==A?A:"Reasoning",theGap:null!==(T=N.theGap)&&void 0!==T?T:"The Gap"},E=o(!0);E[0],E[1];var _=C.ruleDetails;C.whyRuleApplied;var x=r(function(){return C.il_learning_highlights||[]},[C.il_learning_highlights]);r(function(){var e=new Set;return x.forEach(function(n){var i;null===(i=n.highlighted_text)||void 0===i||i.forEach(function(n){n.learning_attribute&&e.add(n.learning_attribute.toLowerCase())})}),e},[x]);var b=r(function(){var i=function(e){var n,i,o,r,l;return{ruleId:"cd-rule",ruleTitle:"",ruleDesc:null===(n=null==e?void 0:e.ruleDetails)||void 0===n?void 0:n.description,whenToApply:null===(o=null===(i=null==e?void 0:e.ruleDetails)||void 0===i?void 0:i.whenToApply)||void 0===o?void 0:o.map(function(e){return e.text}).join(" OR "),whenNotToApply:null===(l=null===(r=null==e?void 0:e.ruleDetails)||void 0===r?void 0:r.whenNotToApply)||void 0===l?void 0:l.map(function(e){return e.text}).join(" OR "),configuration:{},inheritance:[]}}(C),o={rule_description:"ruleDesc",variant_text:"ruleDesc",wta:"whenToApply",wnta:"whenNotToApply"};return x.forEach(function(r){var l=o[r.il_learning_field];if(l&&i[l]){var t=r.highlighted_text.flatMap(function(e){return e.text}),a=i[l];"string"==typeof a&&(i[l]=function(i,o){if(void 0===o&&(o=[]),!o.length||!i)return i;var r=o.filter(function(e){return e&&e.trim()}).map(function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|");if(!r)return i;var l=new RegExp("(".concat(r,")"),"gi");return i.split(l).map(function(i,o){return new RegExp("(".concat(r,")"),"i").test(i)?n("span",e({style:{backgroundColor:"#fef08a",borderRadius:"2px",padding:"0.125rem 0.25rem",fontWeight:500}},{children:i}),o):i})}(a,t))}}),i},[C,x]);return n("div",{children:n("div",e({className:l.container},{children:n("div",e({className:l.ruleCard},{children:n(t,{rule:b,showActionsBar:!1,showDescriptionBox:!0,tierChip:n(a,{ruleDetails:_}),whenToApplyLabel:R.whenToApply,whenNotToApplyLabel:R.whenNotToApply,noConditionsText:R.noConditions,className:l.ruleAccordionWrapper})}))}))})};export{u as default};
|
|
2
|
+
//# sourceMappingURL=CongnitiveDecisioningComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CongnitiveDecisioningComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as s}from"tslib";import{jsxs as e,jsx as i}from"react/jsx-runtime";import a from"./css/common.module.css.js";var r=function(){return e("div",s({className:"".concat(a.historyContainer," ").concat(a.pulse)},{children:[e("div",s({className:a.historyHeader},{children:[i("div",{className:a.historyHeaderIcon}),i("div",{className:a.historyHeaderText})]})),e("div",s({className:a.historyTimeline},{children:[[1,2].map(function(r,l){return e("div",s({className:a.historyRow},{children:[i("div",s({className:a.historyLeftColumn},{children:i("div",{className:a.historyLabelPlaceholder})})),e("div",s({className:a.historyMiddleColumn},{children:[i("div",{className:a.historyVerticalLine}),i("div",{className:a.historyDot})]})),i("div",s({className:a.historyRightColumn},{children:i("div",{className:a.historyContentPlaceholder})}))]}),l)}),e("div",s({className:a.historyRow},{children:[i("div",s({className:a.historyLeafLeftColumn},{children:i("div",{className:a.historyLeafLabel})})),i("div",s({className:a.historyMiddleColumn},{children:i("div",{className:a.historyLeafConnector})})),e("div",s({className:a.historyLeafRightColumn},{children:[i("div",{className:a.historyLeafDot}),i("div",s({className:a.historyLeafCard},{children:i("div",{className:a.historyLeafCardContent})}))]}))]}))]}))]}))};export{r as HistorySkeleton,r as default};
|
|
2
|
+
//# sourceMappingURL=HistorySkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HistorySkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as e,jsx as n}from"react/jsx-runtime";import{CitationLinkSparkleIcon as t}from"../../assests/icons/CitationsSparkleIcon.js";import o from"./CongnitiveDecisioningComponent.js";var l=function(l){var r,s;return l?e("div",i({style:{display:"flex",flexDirection:"column"}},{children:[e("div",i({style:{marginBottom:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"}},{children:[n("span",i({style:{fontSize:"14px",fontWeight:500,color:"#1E293B"}},{children:"Instant Learning OTJ"})),(null===(r=null==l?void 0:l.ruleDetails)||void 0===r?void 0:r.decision_strength)&&e("div",i({style:{display:"flex",alignItems:"center",gap:"6px",borderRadius:"9999px",border:"1.3px solid #C4B5FD",backgroundColor:"white",paddingLeft:"6px",paddingRight:"6px",paddingTop:"4px",paddingBottom:"4px",fontSize:"12px",fontWeight:400,color:"#1E293B"}},{children:[n(t,{}),e("span",i({style:{display:"flex",gap:"4px"}},{children:["Decision Strength: ",n("span",i({style:{fontWeight:700}},{children:null===(s=null==l?void 0:l.ruleDetails)||void 0===s?void 0:s.decision_strength}))]}))]}))]})),n(o,{data:l})]})):null};export{l as InstantLearningCitation};
|
|
2
|
+
//# sourceMappingURL=InstantLearningCitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstantLearningCitation.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as n}from"tslib";import{jsx as i}from"react/jsx-runtime";import{useRef as t,useState as o,useMemo as e,useEffect as r}from"react";import{convertILRuleToCognitiveDecisioningData as a}from"./types/Types.js";import{InstantLearningCitation as l}from"./InstantLearningCitation.js";import c from"../CitationRenderer/CitationRenderer.js";import{CitationIcon as s}from"../../assests/icons/CitationsIcon.js";var d=function(d){var u=d.citation,m=d.linkTitle,h=d.onCitationToggle,p=d.decisionStrengthFromUrl,v=t(null),f=o(!1),g=f[0],C=f[1],b=e(function(){var n,i;return(null===(i=null===(n=u.customMetaData)||void 0===n?void 0:n.comparison_highlights)||void 0===i?void 0:i.flatMap(function(n){return n.attributesToBehighlighted||[]}))||[]},[u]),x=e(function(){var i,t,o,e,r=null===(i=u.customMetaData)||void 0===i?void 0:i.citation_type,l=null===(t=u.customMetaData)||void 0===t?void 0:t.il_learning,c=(null===(o=u.customMetaData)||void 0===o?void 0:o.il_learning_highlights)||[];if("IL"===r&&l){var s=p||(null===(e=u.customMetaData)||void 0===e?void 0:e.decision_strength)||"";return n(n({},a(n(n({},l),{decision_strength:s}))),{il_learning_highlights:c})}return null},[u,p]);r(function(){if(g){var n=setTimeout(function(){var n;null===(n=v.current)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"center"})},100);return function(){return clearTimeout(n)}}},[g]);return i("span",n({className:"citation-span",ref:v},{children:i(c,{inLineCitation:!0,citationTitle:m,citationIcon:x?i(s,{}):null,citationComponent:x?i(l,n({},x)):void 0,chevronDownComponent:i(function(){return i("span",n({"aria-hidden":!0,className:"md-chevron",style:{color:x?"#1A847C":"#6D28D9"}},{children:i("svg",n({viewBox:"0 0 20 20",fill:"currentColor"},{children:i("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 0 1 1.06.02L10 10.128l3.71-2.9a.75.75 0 1 1 .92 1.18l-4.2 3.28a.75.75 0 0 1-.92 0l-4.2-3.28a.75.75 0 0 1-.02-1.12z",clipRule:"evenodd"})}))}))},{}),chevronUpComponent:i(function(){return i("span",n({"aria-hidden":!0,className:"md-chevron",style:{color:x?"#1A847C":"#6D28D9"}},{children:i("svg",n({viewBox:"0 0 20 20",fill:"currentColor"},{children:i("path",{fillRule:"evenodd",d:"M14.77 12.79a.75.75 0 0 1-1.06-.02L10 9.872l-3.71 2.9a.75.75 0 1 1-.92-1.18l4.2-3.28a.75.75 0 0 1 .92 0l4.2 3.28a.75.75 0 0 1 .02 1.12z",clipRule:"evenodd"})}))}))},{}),styles:{pillButton:{fontFamily:'"Inter", sans-serif',background:"transparent",padding:0,margin:0,marginBottom:"2px",fontSize:"12px",lineHeight:"140%",fontWeight:500,color:x?"#1A847C":"rgb(109, 40, 217)",cursor:"pointer",whiteSpace:"nowrap",border:"none",display:"inline-flex",alignItems:"center",gap:"4px",verticalAlign:"middle"},citationContent:{backgroundColor:"#F5F3FF66",border:"1px solid #A78BFA",borderRadius:"6px",padding:"0.75rem",fontFamily:'"Inter", sans-serif',fontSize:"12px",fontWeight:400,lineHeight:"140%",color:"#1e293b",boxShadow:"none",width:"100%",height:"fit-content",minHeight:"38vh",margin:"0 auto",overflowWrap:"break-word"}},additionalCallbackForPillButton:function(){var n=!g;C(n),h&&h(b,"",n)}})}))};export{d as default};
|
|
2
|
+
//# sourceMappingURL=InstantLearningCitationComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstantLearningCitationComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as a,jsx as l}from"react/jsx-runtime";import{History as i}from"lucide-react";import{Tooltip as r}from"@mui/material";import t from"./css/Override.module.css.js";var s=function(s){var d=s.changeLog,c=s.headerText,n=void 0===c?"Override History":c;return d&&0!==d.length?a("div",e({className:t.container},{children:[a("div",e({className:t.header},{children:[l(i,{color:"#475569",size:15,className:t.headerIcon}),l("span",e({className:t.headerText},{children:n}))]})),l("div",e({className:t.timeline},{children:d.map(function(i,s){var c,n,o=s===d.length-1,m="global"===i.scope.toLowerCase(),h=o&&["edited","add","remove","edit"].includes(i.type);return a("div",e({className:t.timelineItem},{children:[l(r,e({title:i.scope,placement:"top",arrow:!0},{children:l("div",e({className:t.leftColumn},{children:l("span",h?e({className:t.leafLabel},{children:"add"===i.type?"Added":"remove"===i.type?"Removed":"Edited"}):e({className:t.scopeLabel},{children:i.scope}))}))})),a("div",e({className:t.middleColumn},{children:[!o&&l("div",{className:t.verticalLine}),h&&l("div",{className:t.leafConnector}),!h&&l("div",{className:"".concat(t.dot," ").concat(m?t.dotGlobal:t.dotOther)})]})),l("div",e({className:t.rightColumn},{children:h?a("div",e({className:t.leafCard},{children:[l("div",{className:t.leafDot}),l("div",e({className:t.leafContent},{children:(c=i.text,n=c.split(/(<s>.*?<\/s>)/g),l("span",{children:n.map(function(a,i){if(a.startsWith("<s>")&&a.endsWith("</s>")){var r=a.slice(3,-4);return l("span",e({className:t.strikethrough},{children:r}),i)}return l("span",{children:a},i)})}))}))]})):l("div",e({className:t.normalContent},{children:"Default Variant"===i.text?"Default":i.text}))}))]}),s)})}))]})):null};export{s as default};
|
|
2
|
+
//# sourceMappingURL=OverrideTimeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverrideTimeline.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as o,Fragment as n,jsx as e}from"react/jsx-runtime";import c from"react";import{Check as t,X as l,ChevronUp as r,AlertTriangle as a}from"lucide-react";import s from"./css/RuleAccordian.module.css.js";import{HistorySkeleton as d}from"./HistorySkeleton.js";import m from"./OverrideTimeline.js";var p=function(p){var h=p.type,v=p.conditions,N=p.isOpen,y=p.onToggle,u=p.showOverrideHistory,f=void 0!==u&&u,g=p.isLoadingHistory,A=void 0!==g&&g,I=p.historyError,L=p.overrideHistoryData,k=p.labelText,C=p.noConditionsText,B=void 0===C?"No conditions":C,H=null!=k?k:"apply"===h?"When to Apply":"When Not to Apply",O="apply"===h?"".concat(s.conditionBlock," ").concat(s.conditionBlockApply):"".concat(s.conditionBlock," ").concat(s.conditionBlockNotApply),T="apply"===h?s.conditionIconApply:s.conditionIconNotApply,b=c.useMemo(function(){return v?Array.isArray(v)||"string"!=typeof v?[v]:v.split(" OR ").map(function(i){return i.trim()}).filter(Boolean):[]},[v]);return o("div",i({className:O},{children:["apply"===h&&o(n,{children:[e("div",{className:s.verticalLine}),e("div",{className:s.horizontalLine})]}),"notApply"===h&&e("div",{className:s.curvedLine}),o("div",i({className:s.conditionContent},{children:[e("div",i({className:s.conditionHeader,onClick:y},{children:o("div",i({className:s.conditionIconWrapper},{children:[e("div",i({className:T},{children:e("apply"===h?t:l,{size:10,strokeWidth:3})})),e("span",i({className:s.conditionLabel},{children:H})),e("button",i({className:s.conditionToggleButton},{children:e(r,{size:16,className:N?s.chevronOpen:s.chevronClosed})}))]}))})),N&&e("div",i({className:s.conditionItems},{children:b.length>0?o("div",i({className:s.conditionItemContainer},{children:[e("div",i({className:s.conditionItemHeader},{children:e("div",i({className:s.conditionItemContent},{children:e("ol",i({className:s.conditionList},{children:b.map(function(o,n){return e("li",i({className:s.conditionListItem},{children:o}),n)})}))}))})),f?A?e(d,{}):I?o("div",i({className:s.errorMessage},{children:[e(a,{size:14}),e("span",{children:I})]})):L?e(m,{changeLog:L}):null:null]})):e("div",i({className:s.noConditions},{children:B}))})),!N&&e("div",{className:s.collapsedPadding})]}))]}))};export{p as default};
|
|
2
|
+
//# sourceMappingURL=RuleConditionBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleConditionBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__awaiter as i,__generator as r}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useState as o}from"react";import{Loader2 as s,AlertTriangle as a,TriangleAlert as l}from"lucide-react";import d from"./css/RuleAccordian.module.css.js";import{format as c}from"date-fns/format";import{isValid as p}from"date-fns/isValid";import{parseISO as u}from"date-fns/parseISO";import h from"./RuleConditionBlock.js";import{HistorySkeleton as m}from"./HistorySkeleton.js";import v from"./OverrideTimeline.js";var f=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.filter(Boolean).join(" ")},y=function(y){var g,N,x,_,C=y.rule,b=y.onFetchOverrideHistory,w=y.inheritedOverrideLabel,A=void 0===w?"Inherited override":w,O=y.defaultVariantLabel,T=void 0===O?"Default variant":O,L=y.viewOverrideLabel,H=void 0===L?"View Override":L,k=y.hideOverrideLabel,D=void 0===k?"Hide Override":k;y.editButtonLabel;var j=y.whenToApplyLabel,B=void 0===j?"When to Apply":j,E=y.whenNotToApplyLabel,I=void 0===E?"When Not to Apply":E,M=y.noConditionsText,F=void 0===M?"No conditions":M,W=y.historyErrorMessage,R=void 0===W?"Failed to load override history.":W,V=y.missingRuleIdMessage,z=void 0===V?"Rule ID is missing.":V;y.onEdit;var S=y.showActionsBar,Z=void 0===S||S,P=y.tierChip,U=y.customVariantChip,$=y.showDescriptionBox,q=void 0===$||$,G=y.customDescription,J=y.showConditions,K=void 0===J||J,Q=y.defaultApplyOpen,X=void 0===Q||Q,Y=y.defaultNotApplyOpen,ee=void 0===Y||Y,ie=y.className,re=y.headerContent,te=y.footerContent;y.tierName;var ne,oe=o(X),se=oe[0],ae=oe[1],le=o(ee),de=le[0],ce=le[1],pe=o(!1),ue=pe[0],he=pe[1],me=o(null),ve=me[0],fe=me[1],ye=o(!1),ge=ye[0],Ne=ye[1],xe=o(null),_e=xe[0],Ce=xe[1],be=C.inheritance&&C.inheritance.length>0&&(null!==(N=null===(g=C.inheritance)||void 0===g?void 0:g.length)&&void 0!==N?N:0)>1;return t("div",e({className:ie},{children:[re,t("div",e({className:d.contentHeader},{children:[n("div",e({className:d.variantChipWrapper},{children:P||(U||n("span",e({className:d.variantChip},{children:be?A:T})))})),Z&&t("div",e({className:d.contentActions},{children:[t("button",e({className:d.overrideButton,onClick:function(e){return i(void 0,void 0,void 0,function(){var i,t;return r(this,function(r){switch(r.label){case 0:if(e.stopPropagation(),ue)return he(!1),[2];if(!b)return he(!0),[2];he(!0),Ne(!0),Ce(null),fe(null),r.label=1;case 1:return r.trys.push([1,5,6,7]),C.ruleId?[4,b(C.ruleId)]:[3,3];case 2:return(i=r.sent())&&fe(i),[3,4];case 3:console.error("Cannot fetch override history: rule.id is missing."),Ce(z),r.label=4;case 4:return[3,7];case 5:return t=r.sent(),console.error("Failed to fetch override history",t),Ce(R),[3,7];case 6:return Ne(!1),[7];case 7:return[2]}})})}},{children:[ge&&n(s,{size:12,className:d.spinner}),ue?D:H]})),n("span",e({className:d.actionDivider},{children:"|"}))]}))]})),q&&n("div",e({className:d.descriptionBox},{children:t("div",e({className:f(d.descriptionContainer,ue&&d.descriptionContainerWithHistory)},{children:[n("div",e({className:d.descriptionHeader},{children:n("p",e({className:d.descriptionText},{children:G||C.ruleDesc}))})),ue&&(ge?n(m,{}):_e?t("div",e({className:d.errorMessage},{children:[n(a,{size:14}),n("span",{children:_e})]})):(null==ve?void 0:ve.ruleDescription)&&n(v,{changeLog:ve.ruleDescription.changeLog}))]}))})),K&&t("div",e({className:d.treeContainer},{children:[n(h,{type:"apply",conditions:C.whenToApply||"",isOpen:se,onToggle:function(){return ae(!se)},showOverrideHistory:ue,isLoadingHistory:ge,historyError:_e,overrideHistoryData:null===(x=null==ve?void 0:ve.wta)||void 0===x?void 0:x.changeLog,labelText:B,noConditionsText:F}),n(h,{type:"notApply",conditions:C.whenNotToApply||"",isOpen:de,onToggle:function(){return ce(!de)},showOverrideHistory:ue,isLoadingHistory:ge,historyError:_e,overrideHistoryData:null===(_=null==ve?void 0:ve.wnta)||void 0===_?void 0:_.changeLog,labelText:I,noConditionsText:F})]})),t("div",e({className:"flex items-center justify-between flex-wrap gap-1.5"},{children:[!0===C.is_user_accepted_risk&&t("div",e({className:"flex items-center mt-2 ml-2"},{children:[n(l,{size:14,color:"#EF4444"}),n("span",e({className:"text-[#EF4444] text-xs font-medium leading-[120%] ml-1"},{children:"This learning has some gaps"}))]})),t("div",e({className:"flex items-center gap-1"},{children:[C.has_accepted_risk&&t("span",e({className:"text-xs font-medium leading-[120%]"},{children:["Accepted by ",(ne=C.has_accepted_risk,ne?ne.includes("@")?ne.split("@")[0].split(".").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" "):ne:"")]})),C.has_accepted_risk&&C.user_accepted_risk_at&&n("span",e({className:"text-xs font-medium leading-[120%]"},{children:"•"})),C.user_accepted_risk_at&&n("span",e({className:"text-xs font-medium leading-[120%]"},{children:function(e){if(!e)return"";try{var i=e.endsWith("Z")||/[+-]\d{2}:\d{2}$/.test(e)?e:"".concat(e,"Z"),r=u(i);return p(r)?c(r,"MMM d, yyyy 'at' h:mm a"):e}catch(i){return e}}(C.user_accepted_risk_at)}))]}))]})),te]}))};export{y as default};
|
|
2
|
+
//# sourceMappingURL=RuleContentComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleContentComponent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var i={container:"CongnitiveDecisioning-module_container__7s7lH",ruleCard:"CongnitiveDecisioning-module_ruleCard__Gdyzr",ruleAccordionWrapper:"CongnitiveDecisioning-module_ruleAccordionWrapper__Juchc",ruleHeaderWrapper:"CongnitiveDecisioning-module_ruleHeaderWrapper__eRqch",ruleHeader:"CongnitiveDecisioning-module_ruleHeader__5YyHs",variantBadge:"CongnitiveDecisioning-module_variantBadge__GJ0dv",ruleDescription:"CongnitiveDecisioning-module_ruleDescription__doaEl",highlightedText:"CongnitiveDecisioning-module_highlightedText__ADF0u",conditionBlock:"CongnitiveDecisioning-module_conditionBlock__XyB-A",conditionHeader:"CongnitiveDecisioning-module_conditionHeader__RwURa",conditionIcon:"CongnitiveDecisioning-module_conditionIcon__WcUqu",conditionIconApply:"CongnitiveDecisioning-module_conditionIconApply__fiQLw",conditionIconNotApply:"CongnitiveDecisioning-module_conditionIconNotApply__vivUo",conditionTitle:"CongnitiveDecisioning-module_conditionTitle__Nd3pS",conditionTitleApply:"CongnitiveDecisioning-module_conditionTitleApply__Jmr5m",conditionTitleNotApply:"CongnitiveDecisioning-module_conditionTitleNotApply__KWvRi",chevronIcon:"CongnitiveDecisioning-module_chevronIcon__EKFF2",chevronOpen:"CongnitiveDecisioning-module_chevronOpen__V-ZhQ",conditionList:"CongnitiveDecisioning-module_conditionList__vY3-n",conditionItem:"CongnitiveDecisioning-module_conditionItem__K8Q6U",noConditions:"CongnitiveDecisioning-module_noConditions__2eI6M",adSummaryCard:"CongnitiveDecisioning-module_adSummaryCard__7LmzQ",adSummaryHeader:"CongnitiveDecisioning-module_adSummaryHeader__a8t2A",adSummaryTitle:"CongnitiveDecisioning-module_adSummaryTitle__bC7Pp",adSummaryName:"CongnitiveDecisioning-module_adSummaryName__5apGN",adSummaryGrid:"CongnitiveDecisioning-module_adSummaryGrid__zuBlW",adSummaryItem:"CongnitiveDecisioning-module_adSummaryItem__f5VwZ",adSummaryItemBorder:"CongnitiveDecisioning-module_adSummaryItemBorder__BdLKy",adSummaryLabel:"CongnitiveDecisioning-module_adSummaryLabel__LyuR8",adSummaryValue:"CongnitiveDecisioning-module_adSummaryValue__UszlA",whyRuleContainer:"CongnitiveDecisioning-module_whyRuleContainer__yNwu-",whyRuleAccordion:"CongnitiveDecisioning-module_whyRuleAccordion__L2qwf",whyRuleHeader:"CongnitiveDecisioning-module_whyRuleHeader__aTL--",whyRuleHeaderLeft:"CongnitiveDecisioning-module_whyRuleHeaderLeft__vm4oe",whyRuleIcon:"CongnitiveDecisioning-module_whyRuleIcon__sx-LJ",whyRuleTitle:"CongnitiveDecisioning-module_whyRuleTitle__1RoX6",whyRuleHeaderRight:"CongnitiveDecisioning-module_whyRuleHeaderRight__RX9iV",strengthBadge:"CongnitiveDecisioning-module_strengthBadge__CEKiS",strengthIcon:"CongnitiveDecisioning-module_strengthIcon__x-Ujb",whyRuleContent:"CongnitiveDecisioning-module_whyRuleContent__X3w5a",whyRuleSection:"CongnitiveDecisioning-module_whyRuleSection__Io-ru",sectionTitle:"CongnitiveDecisioning-module_sectionTitle__D1S-B",sectionSubtitle:"CongnitiveDecisioning-module_sectionSubtitle__izbgZ",reasoningList:"CongnitiveDecisioning-module_reasoningList__Y1Srh",reasoningItem:"CongnitiveDecisioning-module_reasoningItem__QDrj3"};!function(){if("undefined"==typeof document)return;const i=document.createElement("style");i.type="text/css";const e=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;e&&i.setAttribute("nonce",e),i.appendChild(document.createTextNode(".CongnitiveDecisioning-module_container__7s7lH{display:flex;gap:1rem}.CongnitiveDecisioning-module_ruleCard__Gdyzr{background-color:#fff;border:1px solid #e5e7eb;border-radius:.75rem;box-shadow:0 1px 2px 0 #0000000d;flex:1;overflow-y:auto;padding:1.25rem}.CongnitiveDecisioning-module_ruleAccordionWrapper__Juchc{background:#0000!important;border:none!important;box-shadow:none!important;padding:0!important}.CongnitiveDecisioning-module_ruleHeaderWrapper__eRqch{align-items:start;display:flex;gap:.5rem;width:100%}.CongnitiveDecisioning-module_ruleHeader__5YyHs{display:flex;gap:.5rem}.CongnitiveDecisioning-module_variantBadge__GJ0dv{background-color:#fff;border:1px solid #f0f2f5;border-radius:.25rem;color:#19213d;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.CongnitiveDecisioning-module_ruleDescription__doaEl{background-color:#fefce8;border-left:3px solid #eab308;border-radius:0 .25rem .25rem 0;color:#1f2937;font-size:.875rem;line-height:1.5;margin-bottom:1rem;padding:.75rem}.CongnitiveDecisioning-module_highlightedText__ADF0u{background-color:#fef08a;border-radius:.125rem;padding:.125rem .25rem}.CongnitiveDecisioning-module_conditionBlock__XyB-A{margin-bottom:.75rem}.CongnitiveDecisioning-module_conditionHeader__RwURa{align-items:center;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 0}.CongnitiveDecisioning-module_conditionIcon__WcUqu{align-items:center;display:flex;height:1rem;justify-content:center;width:1rem}.CongnitiveDecisioning-module_conditionIconApply__fiQLw{color:#22c55e}.CongnitiveDecisioning-module_conditionIconNotApply__vivUo{color:#ef4444}.CongnitiveDecisioning-module_conditionTitle__Nd3pS{font-size:.75rem;font-weight:500}.CongnitiveDecisioning-module_conditionTitleApply__Jmr5m{color:#22c55e}.CongnitiveDecisioning-module_conditionTitleNotApply__KWvRi{color:#ef4444}.CongnitiveDecisioning-module_chevronIcon__EKFF2{color:#000;height:1rem;transition:transform .2s;width:1rem}.CongnitiveDecisioning-module_chevronOpen__V-ZhQ{transform:rotate(180deg)}.CongnitiveDecisioning-module_conditionList__vY3-n{margin-top:.25rem;padding-left:1.5rem}.CongnitiveDecisioning-module_conditionItem__K8Q6U{color:#4b5563;font-size:.75rem;list-style:decimal;margin-bottom:.25rem}.CongnitiveDecisioning-module_noConditions__2eI6M{color:#9ca3af;font-size:.75rem;font-style:italic;padding-left:1.5rem}.CongnitiveDecisioning-module_adSummaryCard__7LmzQ{background-color:#fff;border:1px solid #e5e7eb;border-radius:.75rem;box-shadow:0 1px 2px 0 #0000000d;display:flex;flex-direction:column;width:18rem}.CongnitiveDecisioning-module_adSummaryHeader__a8t2A{background-color:#f3f4f6;border:2px solid #fef08a;border-top-left-radius:.75rem;border-top-right-radius:.75rem;padding:1rem}.CongnitiveDecisioning-module_adSummaryTitle__bC7Pp{color:#6b7280;font-size:.75rem;font-weight:500;margin-bottom:.5rem}.CongnitiveDecisioning-module_adSummaryName__5apGN{color:#4b5563;font-size:.875rem;font-weight:600}.CongnitiveDecisioning-module_adSummaryGrid__zuBlW{display:grid;flex:1;gap:.75rem;grid-template-columns:1fr 1fr;overflow-y:auto;padding:1rem}.CongnitiveDecisioning-module_adSummaryItem__f5VwZ{padding:.25rem 0}.CongnitiveDecisioning-module_adSummaryItemBorder__BdLKy{border-right:1px solid #e5e7eb;padding-right:1rem}.CongnitiveDecisioning-module_adSummaryLabel__LyuR8{color:#6b7280;font-size:.625rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase}.CongnitiveDecisioning-module_adSummaryValue__UszlA{color:#4b5563;font-size:.75rem;font-weight:600;margin-top:.25rem}.CongnitiveDecisioning-module_whyRuleContainer__yNwu-{margin-top:1rem}.CongnitiveDecisioning-module_whyRuleAccordion__L2qwf{background-color:#fff;border:1px solid #e3e6ea;border-radius:8px;overflow:hidden}.CongnitiveDecisioning-module_whyRuleHeader__aTL--{align-items:center;background-color:#faf5ff;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem}.CongnitiveDecisioning-module_whyRuleHeaderLeft__vm4oe{align-items:center;display:flex;gap:.5rem}.CongnitiveDecisioning-module_whyRuleIcon__sx-LJ{color:#8b5cf6;height:1rem;width:1rem}.CongnitiveDecisioning-module_whyRuleTitle__1RoX6{color:#1e293b;font-size:12px;font-style:normal;font-weight:500;line-height:20px}.CongnitiveDecisioning-module_whyRuleHeaderRight__RX9iV{align-items:center;display:flex;gap:.5rem}.CongnitiveDecisioning-module_strengthBadge__CEKiS{align-items:center;background-color:#fff;border:1px solid #c4b5fd;border-radius:16px;color:#1e293b;display:flex;font-size:10px;font-weight:600;gap:.25rem;padding:.25rem .5rem}.CongnitiveDecisioning-module_strengthIcon__x-Ujb{color:#eab308}.CongnitiveDecisioning-module_whyRuleContent__X3w5a{background-color:#fff;border-top:1px solid #e5e7eb;padding:1rem}.CongnitiveDecisioning-module_whyRuleSection__Io-ru{margin-bottom:1rem}.CongnitiveDecisioning-module_whyRuleSection__Io-ru:last-child{margin-bottom:0}.CongnitiveDecisioning-module_sectionTitle__D1S-B{color:#19213d;font-size:12px;font-weight:500;line-height:130%;margin-bottom:.5rem}.CongnitiveDecisioning-module_sectionSubtitle__izbgZ{color:#1e293b;font-size:12px;font-weight:400;line-height:150%;margin-bottom:.5rem}.CongnitiveDecisioning-module_reasoningList__Y1Srh{margin:0;padding-left:1.25rem}.CongnitiveDecisioning-module_reasoningItem__QDrj3{color:#666f8d;font-size:12px;font-weight:400;line-height:150%;list-style:decimal;margin-bottom:.25rem}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(i)}();export{i as default};
|
|
2
|
+
//# sourceMappingURL=CongnitiveDecisioning.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CongnitiveDecisioning.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={container:"Override-module_container__ivqpY",header:"Override-module_header__0kFsl",headerIcon:"Override-module_headerIcon__gdP8V",headerText:"Override-module_headerText__22o0q",timeline:"Override-module_timeline__KDiz7",timelineItem:"Override-module_timelineItem__wr5i8",leftColumn:"Override-module_leftColumn__MYLIs",scopeLabel:"Override-module_scopeLabel__gBX5s",leafLabel:"Override-module_leafLabel__Bo76W",middleColumn:"Override-module_middleColumn__h3nS4",verticalLine:"Override-module_verticalLine__pMfNg",leafConnector:"Override-module_leafConnector__Sf6xD",dot:"Override-module_dot__-Hd8v",dotGlobal:"Override-module_dotGlobal__-bs2k",dotOther:"Override-module_dotOther__PeUEG",rightColumn:"Override-module_rightColumn__xb-dw",leafCard:"Override-module_leafCard__lKUH0",leafDot:"Override-module_leafDot__IeYii",leafContent:"Override-module_leafContent__OcFQ8",normalContent:"Override-module_normalContent__EIrai",strikethrough:"Override-module_strikethrough__fqXil"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".Override-module_container__ivqpY{background-color:#fff7ed4d;border:1px solid #f3eee7;border-radius:.375rem;margin-top:.5rem;padding:.75rem 1rem;width:100%}.Override-module_header__0kFsl{align-items:center;color:#666f8d;display:flex;gap:.5rem;margin-bottom:.5rem;user-select:none}.Override-module_headerIcon__gdP8V{color:#475569}.Override-module_headerText__22o0q{color:#475569;font-size:13px;font-weight:500}.Override-module_timeline__KDiz7{position:relative}.Override-module_timelineItem__wr5i8{display:flex;min-height:32px}.Override-module_leftColumn__MYLIs{flex-shrink:0;overflow:hidden;padding-right:1rem;padding-top:2px;position:relative;text-align:right;text-overflow:ellipsis;width:100px}.Override-module_scopeLabel__gBX5s{color:#19213d;font-size:.875rem;font-weight:500;white-space:nowrap}.Override-module_leafLabel__Bo76W{color:#4f5e73;display:block;font-size:10px;font-style:italic;padding-right:0;padding-top:1rem}.Override-module_middleColumn__h3nS4{align-items:center;display:flex;flex-direction:column;flex-shrink:0;position:relative;width:1rem}.Override-module_verticalLine__pMfNg{background-color:#cbd5e1;bottom:-8px;left:50%;margin-left:-.5px;position:absolute;top:8px;width:1px}.Override-module_leafConnector__Sf6xD{border-bottom:1.5px solid #cbd5e1;border-left:1.5px solid #cbd5e1;height:33px;left:50%;margin-left:-.5px;position:absolute;top:-8px;width:24px}.Override-module_dot__-Hd8v{border-radius:9999px;border-style:solid;border-width:2px;box-shadow:0 0 0 4px #fff;height:.875rem;position:relative;top:6px;width:.875rem;z-index:10}.Override-module_dotGlobal__-bs2k{background-color:#2563eb;border-color:#e3eafb}.Override-module_dotOther__PeUEG{background-color:#fd8e1e;border-color:#ffedd6}.Override-module_rightColumn__xb-dw{flex:1}.Override-module_leafCard__lKUH0{position:relative}.Override-module_leafDot__IeYii{background-color:#fd8e1e;border:1px solid #ffedd6;border-radius:9999px;height:.625rem;left:11.5px;position:absolute;top:17px;width:.625rem}.Override-module_leafContent__OcFQ8{background-color:#fff;border:1px solid #e2e8f0;border-radius:.375rem;box-shadow:0 1px 2px 0 #0000000d;color:#1e293b;font-size:.875rem;font-weight:500;margin-left:28px;margin-top:3px;padding:.5rem .75rem}.Override-module_normalContent__EIrai{color:#515667;font-size:.75rem;padding-left:.875rem;padding-top:5px}.Override-module_strikethrough__fqXil{color:#ef4444;margin-right:.25rem;opacity:.6;text-decoration:line-through;text-decoration-color:#ef4444}"));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=Override.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Override.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={accordion:"RuleAccordian-module_accordion__m2k-o",accordionOpen:"RuleAccordian-module_accordionOpen__UZWWg",accordionHeader:"RuleAccordian-module_accordionHeader__1SeeJ",headerContent:"RuleAccordian-module_headerContent__fMnGE",headerTopRow:"RuleAccordian-module_headerTopRow__-rqB0",titleSection:"RuleAccordian-module_titleSection__S-1-K",titleRow:"RuleAccordian-module_titleRow__6pc0z",overriddenTag:"RuleAccordian-module_overriddenTag__0dfC3",ruleTitle:"RuleAccordian-module_ruleTitle__UeUN3",dataSourceTag:"RuleAccordian-module_dataSourceTag__AdvQb",learningDisabledPill:"RuleAccordian-module_learningDisabledPill__cKBoX",headerActions:"RuleAccordian-module_headerActions__qjHv6",chevronIcon:"RuleAccordian-module_chevronIcon__SQ1cY",divider:"RuleAccordian-module_divider__wBsLP",footerRow:"RuleAccordian-module_footerRow__lRULB",headerButtonGroup:"RuleAccordian-module_headerButtonGroup__VUpCo",toggleLearningButton:"RuleAccordian-module_toggleLearningButton__pcszc",deleteButton:"RuleAccordian-module_deleteButton__coRWG",inheritanceBreadcrumb:"RuleAccordian-module_inheritanceBreadcrumb__JOTKv",inheritanceIcon:"RuleAccordian-module_inheritanceIcon__Sy375",inheritanceLabel:"RuleAccordian-module_inheritanceLabel__c5MMi",inheritanceItems:"RuleAccordian-module_inheritanceItems__tbJtP",inheritanceItem:"RuleAccordian-module_inheritanceItem__SeyGi",inheritanceItemDefault:"RuleAccordian-module_inheritanceItemDefault__ci-Kz",inheritanceItemCurrent:"RuleAccordian-module_inheritanceItemCurrent__Ac-q-",inheritanceArrow:"RuleAccordian-module_inheritanceArrow__Rd469",accordionContent:"RuleAccordian-module_accordionContent__ixxS1",contentInner:"RuleAccordian-module_contentInner__4-q-g",contentHeader:"RuleAccordian-module_contentHeader__O-Mjz",variantChipWrapper:"RuleAccordian-module_variantChipWrapper__1wQTl",variantChip:"RuleAccordian-module_variantChip__NCuZR",contentActions:"RuleAccordian-module_contentActions__2nqQe",overrideButton:"RuleAccordian-module_overrideButton__gX47T",actionDivider:"RuleAccordian-module_actionDivider__t3RKT",editButton:"RuleAccordian-module_editButton__tScsQ",descriptionBox:"RuleAccordian-module_descriptionBox__QGwqd",descriptionContainer:"RuleAccordian-module_descriptionContainer__6pDiU",descriptionContainerWithHistory:"RuleAccordian-module_descriptionContainerWithHistory__QE-gF",descriptionHeader:"RuleAccordian-module_descriptionHeader__5-drd",descriptionText:"RuleAccordian-module_descriptionText__Ln0yl",treeContainer:"RuleAccordian-module_treeContainer__sCaIX",conditionBlock:"RuleAccordian-module_conditionBlock__733OM",conditionBlockApply:"RuleAccordian-module_conditionBlockApply__XDiA1",verticalLine:"RuleAccordian-module_verticalLine__SjlUw",horizontalLine:"RuleAccordian-module_horizontalLine__OAEqN",conditionBlockNotApply:"RuleAccordian-module_conditionBlockNotApply__AwELf",curvedLine:"RuleAccordian-module_curvedLine__WuRIr",conditionContent:"RuleAccordian-module_conditionContent__vs-bT",conditionHeader:"RuleAccordian-module_conditionHeader__g8Llh",conditionLabel:"RuleAccordian-module_conditionLabel__m4RVA",conditionIconWrapper:"RuleAccordian-module_conditionIconWrapper__L12tK",conditionIconApply:"RuleAccordian-module_conditionIconApply__DE6T1",conditionIconNotApply:"RuleAccordian-module_conditionIconNotApply__J6jQe",conditionToggleButton:"RuleAccordian-module_conditionToggleButton__NHuRw",chevronOpen:"RuleAccordian-module_chevronOpen__OEoTU",chevronClosed:"RuleAccordian-module_chevronClosed__5LP7F",conditionItems:"RuleAccordian-module_conditionItems__y-7Qh",conditionItemContainer:"RuleAccordian-module_conditionItemContainer__LX3O8",conditionItemHeader:"RuleAccordian-module_conditionItemHeader__uNgtV",conditionItemContent:"RuleAccordian-module_conditionItemContent__kW5xW",conditionList:"RuleAccordian-module_conditionList__vNpY6",conditionListItem:"RuleAccordian-module_conditionListItem__OsgGp",conditionItemText:"RuleAccordian-module_conditionItemText__SRcCS",noConditions:"RuleAccordian-module_noConditions__vS-Df",collapsedPadding:"RuleAccordian-module_collapsedPadding__P5hen",errorMessage:"RuleAccordian-module_errorMessage__LYqhC",spinner:"RuleAccordian-module_spinner__r1Z7c",spin:"RuleAccordian-module_spin__FxFNj"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".RuleAccordian-module_accordion__m2k-o{background-color:#fff;border:1px solid #e3e6ea;border-radius:.5rem;box-shadow:0 1px 2px 0 #0000000d;margin-bottom:1rem;overflow:hidden;transition:all .2s ease}.RuleAccordian-module_accordionOpen__UZWWg{border-color:#2563eb;border-width:1.5px}.RuleAccordian-module_accordionHeader__1SeeJ{align-items:flex-start;background-color:#fff;cursor:pointer;display:flex;justify-content:space-between;padding:1rem;transition:background-color .2s ease;user-select:none}.RuleAccordian-module_accordionHeader__1SeeJ:hover{background-color:#fafcff}.RuleAccordian-module_headerContent__fMnGE{display:flex;flex-direction:column;gap:.5rem;width:100%}.RuleAccordian-module_headerTopRow__-rqB0{align-items:flex-start;display:flex;gap:.75rem;justify-content:space-between}.RuleAccordian-module_titleSection__S-1-K{display:flex;flex-direction:column;gap:.375rem;width:100%}.RuleAccordian-module_titleRow__6pc0z{align-items:center;display:flex;gap:.5rem}.RuleAccordian-module_overriddenTag__0dfC3{background:#f8fafc;border:1px solid #f1f5f9;border-radius:200px;color:#19213d;font-family:Inter;font-size:11px;font-weight:500;line-height:16px;padding:2px 8px}.RuleAccordian-module_ruleTitle__UeUN3{color:#19213d;font-size:.875rem;font-weight:500}.RuleAccordian-module_dataSourceTag__AdvQb{background-color:#f7f8fa;border:1px solid #f3f2f2;border-radius:1.5rem;color:#666f8d;font-size:.75rem;font-weight:500;padding:.125rem .5rem}.RuleAccordian-module_learningDisabledPill__cKBoX{background-color:#fff7ed;border:1px solid #ffedd5;border-radius:12px;color:#c2410c;font-size:12px;font-weight:500;padding:2px 8px}.RuleAccordian-module_headerActions__qjHv6{align-items:center;display:flex;gap:1rem;min-width:fit-content}.RuleAccordian-module_chevronIcon__SQ1cY{color:#000}.RuleAccordian-module_divider__wBsLP{background-color:#f0f2f5;height:1px;width:100%}.RuleAccordian-module_footerRow__lRULB{display:flex;justify-content:space-between;margin-top:.25rem;width:100%}.RuleAccordian-module_headerButtonGroup__VUpCo{align-items:center;display:flex;gap:1rem;margin-left:auto}.RuleAccordian-module_toggleLearningButton__pcszc{background:none;border:none;color:#64748b;cursor:pointer;font-size:12px;font-weight:500;padding:0;transition:opacity .2s ease}.RuleAccordian-module_toggleLearningButton__pcszc:disabled{cursor:wait;opacity:.6}.RuleAccordian-module_deleteButton__coRWG{background:none;border:none;color:#ef4444;cursor:pointer;font-size:.75rem;font-weight:500;transition:color .2s ease}.RuleAccordian-module_deleteButton__coRWG:hover{color:#dc2626}.RuleAccordian-module_inheritanceBreadcrumb__JOTKv{align-items:center;color:#666f8d;display:flex;font-size:.75rem;gap:.5rem}.RuleAccordian-module_inheritanceIcon__Sy375{color:#0f172a}.RuleAccordian-module_inheritanceLabel__c5MMi{color:#0f172a;font-size:12px;font-weight:400;line-height:150%}.RuleAccordian-module_inheritanceItems__tbJtP{align-items:center;display:flex;gap:.25rem}.RuleAccordian-module_inheritanceItem__SeyGi{border:1px solid;border-radius:9999px;font-size:11px;font-weight:500;margin-top:2px;padding:4px 6px}.RuleAccordian-module_inheritanceItemDefault__ci-Kz{background-color:#fff;border-color:#f1f5f9;color:#19213d}.RuleAccordian-module_inheritanceItemCurrent__Ac-q-{background-color:#eff6ff;border-color:#dbeafe;color:#2563eb}.RuleAccordian-module_inheritanceArrow__Rd469{color:#b1b4c0}.RuleAccordian-module_accordionContent__ixxS1{background-color:#fff;display:flex;flex-direction:column;gap:1rem;padding:1rem}.RuleAccordian-module_contentInner__4-q-g{background-color:#fafcff;border:1px solid #e3e6ea;border-radius:.5rem;display:flex;flex-direction:column;gap:1rem;padding:1rem}.RuleAccordian-module_contentHeader__O-Mjz{align-items:center;display:flex;justify-content:space-between;margin-bottom:1rem}.RuleAccordian-module_variantChipWrapper__1wQTl{width:100%}.RuleAccordian-module_variantChip__NCuZR{background-color:#fff;border:1px solid #f0f2f5;border-radius:.25rem;color:#19213d;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.RuleAccordian-module_contentActions__2nqQe{align-items:center;display:flex;gap:.75rem}.RuleAccordian-module_overrideButton__gX47T{text-wrap:nowrap;align-items:center;background:none;border:none;color:#64748b;cursor:pointer;display:flex;font-size:.75rem;font-weight:500;gap:.25rem;transition:color .2s ease}.RuleAccordian-module_overrideButton__gX47T:hover{color:#19213d}.RuleAccordian-module_actionDivider__t3RKT{color:#d1d5db}.RuleAccordian-module_editButton__tScsQ{background:none;border:none;color:#2563eb;cursor:pointer;font-size:.75rem;font-weight:500;transition:color .2s ease}.RuleAccordian-module_editButton__tScsQ:hover{color:#1d4ed8}.RuleAccordian-module_descriptionBox__QGwqd{position:relative;z-index:10}.RuleAccordian-module_descriptionContainer__6pDiU{align-items:flex-start;background-color:#fff;border:1px solid #e3e6ea;border-radius:.5rem;box-shadow:0 1px 2px 0 #0000000d;color:#0f172a;display:flex;flex-direction:column;font-size:.9375rem;gap:.5rem;padding:.75rem}.RuleAccordian-module_descriptionContainerWithHistory__QE-gF{border-color:#e3e6ea;box-shadow:0 0 0 1px #3b82f61a}.RuleAccordian-module_descriptionHeader__5-drd{display:flex;justify-content:space-between;width:100%}.RuleAccordian-module_descriptionText__Ln0yl{font-weight:500;line-height:1.4}.RuleAccordian-module_treeContainer__sCaIX{padding-left:1.5rem;padding-top:.5rem;position:relative}.RuleAccordian-module_conditionBlock__733OM{position:relative}.RuleAccordian-module_conditionBlockApply__XDiA1 .RuleAccordian-module_verticalLine__SjlUw{background-color:#cfd4dc;bottom:0;left:8px;position:absolute;top:-12px;width:1px}.RuleAccordian-module_conditionBlockApply__XDiA1 .RuleAccordian-module_horizontalLine__OAEqN{background-color:#cfd4dc;border-radius:2px;height:1.5px;left:8px;position:absolute;top:11px;width:1.25rem}.RuleAccordian-module_conditionBlockNotApply__AwELf .RuleAccordian-module_curvedLine__WuRIr{border-bottom:1.5px solid #cfd4dc;border-bottom-left-radius:.75rem;border-left:1.5px solid #cfd4dc;height:36px;left:8px;position:absolute;top:-23px;width:1.25rem}.RuleAccordian-module_conditionContent__vs-bT{border-radius:.5rem;margin-left:1.75rem;padding-left:0}.RuleAccordian-module_conditionHeader__g8Llh{align-items:center;color:#6b7280;cursor:pointer;display:flex;font-size:.875rem;font-weight:500;gap:.5rem;user-select:none}.RuleAccordian-module_conditionHeader__g8Llh:hover .RuleAccordian-module_conditionLabel__m4RVA{color:#000}.RuleAccordian-module_conditionIconWrapper__L12tK{align-items:center;display:flex;gap:.5rem}.RuleAccordian-module_conditionIconApply__DE6T1{background-color:#4ad562}.RuleAccordian-module_conditionIconApply__DE6T1,.RuleAccordian-module_conditionIconNotApply__J6jQe{border-radius:9999px;box-shadow:0 0 0 4px #fff;color:#fff;padding:.125rem;position:relative;z-index:10}.RuleAccordian-module_conditionIconNotApply__J6jQe{background-color:#ff6058}.RuleAccordian-module_conditionLabel__m4RVA{color:#19213d;font-size:.875rem;font-weight:400;transition:color .2s ease}.RuleAccordian-module_conditionToggleButton__NHuRw{background:none;border:none;color:#666f8d;cursor:pointer;margin-left:.25rem;transition:color .2s ease}.RuleAccordian-module_conditionToggleButton__NHuRw:hover{color:#666f8d}.RuleAccordian-module_chevronClosed__5LP7F{transform:rotate(180deg)}.RuleAccordian-module_conditionItems__y-7Qh{display:flex;flex-direction:column;gap:.5rem;padding-left:1.25rem}.RuleAccordian-module_conditionItemContainer__LX3O8{border-radius:.375rem;color:#19213d;display:flex;flex-direction:column;font-size:.875rem;padding:.75rem .75rem 0 0;transition:background-color .2s ease}.RuleAccordian-module_conditionItemHeader__uNgtV{align-items:flex-start;display:flex;justify-content:space-between}.RuleAccordian-module_conditionItemContent__kW5xW{align-items:flex-start;display:flex;gap:.5rem}.RuleAccordian-module_conditionList__vNpY6{list-style-position:outside;list-style-type:decimal;margin:0;padding-left:1.25rem}.RuleAccordian-module_conditionListItem__OsgGp{color:#000;font-size:.875rem;font-weight:500;margin-bottom:.35rem}.RuleAccordian-module_conditionItemText__SRcCS{color:#000;font-size:.875rem;font-weight:500}.RuleAccordian-module_conditionItemText__SRcCS>div{margin-bottom:.35rem}.RuleAccordian-module_noConditions__vS-Df{color:#98a2b3;font-size:.75rem;margin-top:.375rem}.RuleAccordian-module_collapsedPadding__P5hen{padding-bottom:0}.RuleAccordian-module_errorMessage__LYqhC{align-items:center;color:#ef4444;display:flex;font-size:.75rem;gap:.5rem;margin-top:.5rem}.RuleAccordian-module_spinner__r1Z7c{animation:RuleAccordian-module_spin__FxFNj 1s linear infinite}@keyframes RuleAccordian-module_spin__FxFNj{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=RuleAccordian.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleAccordian.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var o={pulse:"common-module_pulse__vQwFH",historyContainer:"common-module_historyContainer__kQlq6",historyHeader:"common-module_historyHeader__peN3a",historyHeaderIcon:"common-module_historyHeaderIcon__FfZqf",historyHeaderText:"common-module_historyHeaderText__1j0Q6",historyTimeline:"common-module_historyTimeline__FJkgE",historyRow:"common-module_historyRow__ii9qJ",historyLeftColumn:"common-module_historyLeftColumn__vd6ho",historyMiddleColumn:"common-module_historyMiddleColumn__HcByV",historyVerticalLine:"common-module_historyVerticalLine__9yFIB",historyDot:"common-module_historyDot__QbjM7",historyRightColumn:"common-module_historyRightColumn__1ejXx",historyContentPlaceholder:"common-module_historyContentPlaceholder__2NH3G",historyLabelPlaceholder:"common-module_historyLabelPlaceholder__PsMDC",historyLeafLeftColumn:"common-module_historyLeafLeftColumn__4De2X",historyLeafLabel:"common-module_historyLeafLabel__2Rwyn",historyLeafConnector:"common-module_historyLeafConnector__zNO-V",historyLeafRightColumn:"common-module_historyLeafRightColumn__LurSI",historyLeafDot:"common-module_historyLeafDot__CfDHv",historyLeafCard:"common-module_historyLeafCard__xIc5E",historyLeafCardContent:"common-module_historyLeafCardContent__70E8-",ruleContentContainer:"common-module_ruleContentContainer__-FFPi",ruleContentHeader:"common-module_ruleContentHeader__901fy",ruleContentHeaderInner:"common-module_ruleContentHeaderInner__J8P43",ruleContentTitleGroup:"common-module_ruleContentTitleGroup__qMgOD",ruleContentTitle:"common-module_ruleContentTitle__oXfsV",ruleContentSubtitle:"common-module_ruleContentSubtitle__s2v68",ruleContentButtons:"common-module_ruleContentButtons__04hvo",ruleContentButton:"common-module_ruleContentButton__-PotB",ruleContentCards:"common-module_ruleContentCards__1uuNv",ruleContentCard:"common-module_ruleContentCard__GlAyX",ruleContentCardHeader:"common-module_ruleContentCardHeader__2frir",ruleContentCardTitle:"common-module_ruleContentCardTitle__CSTyd",ruleContentCardChevron:"common-module_ruleContentCardChevron__Wsfz6",ruleContentCardAccordion:"common-module_ruleContentCardAccordion__ziE9K",ruleContentCardAccordionLine:"common-module_ruleContentCardAccordionLine__WuUVO",ruleContentCardAccordionLineWide:"common-module_ruleContentCardAccordionLineWide__b-IUg",ruleContentCardAccordionLineMedium:"common-module_ruleContentCardAccordionLineMedium__pt1T3"};!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const e=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;e&&o.setAttribute("nonce",e),o.appendChild(document.createTextNode("@keyframes common-module_pulse__vQwFH{0%,to{opacity:1}50%{opacity:.5}}.common-module_pulse__vQwFH{animation:common-module_pulse__vQwFH 2s cubic-bezier(.4,0,.6,1) infinite}.common-module_historyContainer__kQlq6{margin-bottom:.5rem;margin-top:1.25rem;padding-left:.5rem}.common-module_historyHeader__peN3a{align-items:center;display:flex;gap:.5rem;margin-bottom:1rem}.common-module_historyHeaderIcon__FfZqf{background-color:#e5e7eb;border-radius:9999px;height:1rem;width:1rem}.common-module_historyHeaderText__1j0Q6{background-color:#e5e7eb;border-radius:.25rem;height:.75rem;width:7rem}.common-module_historyTimeline__FJkgE{position:relative}.common-module_historyRow__ii9qJ{display:flex;min-height:32px}.common-module_historyLeftColumn__vd6ho{display:flex;flex-shrink:0;justify-content:flex-end;padding-right:1rem;padding-top:3px;text-align:right;width:60px}.common-module_historyMiddleColumn__HcByV{align-items:center;display:flex;flex-direction:column;flex-shrink:0;position:relative;width:1rem}.common-module_historyVerticalLine__9yFIB{background-color:#e5e7eb;bottom:-8px;left:50%;margin-left:-.5px;position:absolute;top:8px;width:1px}.common-module_historyDot__QbjM7{background-color:#e5e7eb;border-radius:9999px;box-shadow:0 0 0 4px #fff;height:.625rem;position:relative;top:6px;width:.625rem;z-index:10}.common-module_historyRightColumn__1ejXx{flex:1;padding-bottom:1.5rem;padding-left:.25rem}.common-module_historyContentPlaceholder__2NH3G{background-color:#f3f4f6;border-radius:.25rem;height:.75rem;margin-top:3px;width:6rem}.common-module_historyLabelPlaceholder__PsMDC{background-color:#e5e7eb;border-radius:.25rem;height:.75rem;width:2.5rem}.common-module_historyLeafLeftColumn__4De2X{display:flex;flex-shrink:0;justify-content:flex-end;padding-right:1rem;padding-top:.25rem;text-align:right;width:60px}.common-module_historyLeafLabel__2Rwyn{background-color:#e5e7eb;border-radius:.25rem;height:.5rem;margin-top:1rem;width:2rem}.common-module_historyLeafConnector__zNO-V{border-bottom:1px solid #e5e7eb;border-bottom-left-radius:.75rem;border-left:1px solid #e5e7eb;height:33px;left:50%;margin-left:-.5px;position:absolute;top:-8px;width:24px}.common-module_historyLeafRightColumn__LurSI{flex:1;padding-bottom:1.5rem;padding-left:0;position:relative}.common-module_historyLeafDot__CfDHv{background-color:#e5e7eb;border-radius:9999px;height:.5rem;left:11.5px;position:absolute;top:21px;width:.5rem}.common-module_historyLeafCard__xIc5E{background-color:#fff;border:1px solid #f3f4f6;border-radius:.375rem;margin-left:28px;margin-top:3px;padding:.75rem 1rem}.common-module_historyLeafCardContent__70E8-{background-color:#f3f4f6;border-radius:.25rem;height:1rem;max-width:200px;width:100%}.common-module_ruleContentContainer__-FFPi{background-color:#fff;display:flex;flex:1;flex-direction:column;padding:0 2rem 2rem}.common-module_ruleContentHeader__901fy{border-bottom:1px solid #f3f4f6;margin-bottom:1.5rem;padding:1.5rem 0}.common-module_ruleContentHeaderInner__J8P43{align-items:center;display:flex;justify-content:space-between}.common-module_ruleContentTitleGroup__qMgOD{display:flex;flex-direction:column;gap:.5rem}.common-module_ruleContentTitle__oXfsV{background-color:#f3f4f6;border-radius:.375rem;height:1.5rem;width:10rem}.common-module_ruleContentSubtitle__s2v68{background-color:#f3f4f6;border-radius:.25rem;height:1rem;width:16rem}.common-module_ruleContentButtons__04hvo{display:flex;gap:.75rem}.common-module_ruleContentButton__-PotB{background-color:#f3f4f6;border-radius:.375rem;height:2.5rem;width:8rem}.common-module_ruleContentCards__1uuNv{display:flex;flex-direction:column;gap:1rem}.common-module_ruleContentCard__GlAyX{border:1px solid #f3f4f6;border-radius:.5rem;padding:1rem}.common-module_ruleContentCardHeader__2frir{align-items:center;display:flex;justify-content:space-between;margin-bottom:.75rem}.common-module_ruleContentCardTitle__CSTyd{background-color:#f3f4f6;border-radius:.25rem;height:1.25rem;width:8rem}.common-module_ruleContentCardChevron__Wsfz6{background-color:#f3f4f6;border-radius:.25rem;height:1.25rem;width:1.25rem}.common-module_ruleContentCardAccordion__ziE9K{border:1px solid #f3f4f6;border-radius:.375rem;display:flex;flex-direction:column;gap:.5rem;padding:1rem}.common-module_ruleContentCardAccordionLine__WuUVO{background-color:#f3f4f6;border-radius:.25rem;height:1rem}.common-module_ruleContentCardAccordionLineWide__b-IUg{width:75%}.common-module_ruleContentCardAccordionLineMedium__pt1T3{width:50%}"));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}();export{o as default};
|
|
2
|
+
//# sourceMappingURL=common.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function t(t){return t.trim().replace(/_/g," ").replace(/([a-zA-Z])(\d)/g,"$1 $2").replace(/\b\w/g,function(t){return t.toUpperCase()})}var e=function(t){var e=0,a=[],n=[];try{var r=t.match(/Decision Strength:\s*(\d+)%/i);r&&(e=parseInt(r[1],10));var i=function(t){for(var e,a=[],n=/\d+\.\s*([^\n]+(?:\n(?!\d+\.)[^\n]+)*)/g;null!==(e=n.exec(t));){var r=e[1].trim().replace(/\\n/g," ");r&&a.push({text:r})}return a},p=t.match(/<summary>Reasoning<\/summary>([\s\S]*?)(?=<summary>The Gap<\/summary>|$)/i);if(p){var s=i(p[1]);a.push.apply(a,s)}var c=t.match(/<summary>The Gap<\/summary>([\s\S]*?)$/i);if(c){s=i(c[1]);n.push.apply(n,s)}if(0===a.length&&0===n.length){s=i(t);a.push.apply(a,s)}}catch(t){console.warn("Failed to parse cognitive decisioning string:",t)}return{decisionStrength:e,reasoning:a,theGap:n}},a=function(a){var n=a.wta?[{text:a.wta}]:[],r=a.wnta?[{text:a.wnta}]:[],i=e(a.cognitive_decisioning||"");return{ruleDetails:{variant_type:t(a.variant_type||""),variant:a.variant_id||"",variantText:a.variant_text||"",tier:t(a.tier||""),description:a.variant_text||"",decision_strength:a.decision_strength,whenToApply:n,whenNotToApply:r},whyRuleApplied:i}};export{a as convertILRuleToCognitiveDecisioningData,e as parseCognitiveDecisioningString};
|
|
2
|
+
//# sourceMappingURL=Types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as l,jsx as i,Fragment as n}from"react/jsx-runtime";import{useState as o,useEffect as r}from"react";import{renderCitationAIConfidenceDisplay as t}from"../components/CitationAIConfidenceDisplay.js";import s from"../AiReasoning/components/icons/FullScreenIcon.js";import a from"./components/ImagePreviewDialog.js";import{CircularProgress as c}from"@mui/material";import d from"./WebCitationWithImageContent.module.css.js";var u=function(u){var v,m,g,h,
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as l,jsx as i,Fragment as n}from"react/jsx-runtime";import{useState as o,useEffect as r}from"react";import{renderCitationAIConfidenceDisplay as t}from"../components/CitationAIConfidenceDisplay.js";import s from"../AiReasoning/components/icons/FullScreenIcon.js";import a from"./components/ImagePreviewDialog.js";import{CircularProgress as c}from"@mui/material";import d from"./WebCitationWithImageContent.module.css.js";var u=function(u){var v,m,g,f,h,p,C,y=null===(v=null==u?void 0:u.closeCitationConfig)||void 0===v?void 0:v.CloseIcon,N=u.visitIcon,I=o(!1),P=I[0],U=I[1],k=null===(m=null==u?void 0:u.cachingConfig)||void 0===m?void 0:m.queryClient,S=u.styles,D=["getSignedUrl",u.gsUtilPath||""],w=null!==(f=null===(g=u.cachingConfig)||void 0===g?void 0:g.useGetSignedUrlQuery)&&void 0!==f?f:function(){return{data:void 0}},W=null!==(p=null===(h=u.cachingConfig)||void 0===h?void 0:h.useGetSignedUrlMutation)&&void 0!==p?p:function(){return{mutate:function(e){},isPending:!1}},b=w((null==u?void 0:u.gsUtilPath)||"",D).data,L=W((null==u?void 0:u.gsUtilPath)||""),j=L.mutate,x=L.isPending;return r(function(){u.signedUrl||u.gsUtilPath&&(((null==k?void 0:k.getQueryData)?k.getQueryData(D):void 0)||j({gsUtilPath:u.gsUtilPath}))},[u.gsUtilPath,u.signedUrl,k,j]),l("div",e({className:d.container,style:null==S?void 0:S.container},{children:[l("div",e({className:d.header,style:null==S?void 0:S.header},{children:[i("div",e({className:d.headerLeft,style:null==S?void 0:S.headerLeft},{children:i("a",e({className:d.link,target:"_blank",rel:"noopener noreferrer",href:u.url},{children:u.label}))})),(null==u?void 0:u.closeCitationConfig)?l("div",e({className:d.headerActions,style:null==S?void 0:S.headerActions},{children:[t(u.relevanceScore,!1,null==S?void 0:S.aiConfidenceDisplayPill),i("div",{className:d.divider,style:null==S?void 0:S.divider}),y&&i("div",e({className:d.closeIconWrapper,style:null==S?void 0:S.closeIconWrapper,onClick:u.closeCitationConfig.handleCloseCitationPreview},{children:i(y,{className:d.closeIcon})}))]})):i(n,{children:t(u.relevanceScore,!0,null==S?void 0:S.aiConfidenceDisplayPill)})]})),u.signedUrl?l("div",e({className:d.imageWrapper,style:null==S?void 0:S.imageWrapper},{children:[i("img",{src:u.signedUrl,alt:"images",className:d.image,style:null==S?void 0:S.image}),i("div",e({className:d.fullScreenButton,style:null==S?void 0:S.fullScreenButton,onClick:function(){return U(!0)}},{children:i(s,{})})),i(a,{open:P,handleClose:function(){return U(!1)},src:u.signedUrl,CloseIcon:u.PreviewDialogCloseIcon,styles:null===(C=u.styles)||void 0===C?void 0:C.previewDialogStyles})]})):x?l("div",e({className:d.loaderContainer},{children:[i("style",{children:".mui-circular-progress-circle { stroke-linecap: round; }"}),i(c,{size:48,thickness:4,style:{color:"#4F85FF"},classes:{circle:"mui-circular-progress-circle"}}),i("span",e({className:d.loaderText,style:null==S?void 0:S.loaderText},{children:"Loading Image..."}))]})):b&&l("div",e({className:d.imageWrapper},{children:[i("img",{src:b,alt:"images",className:d.image,style:null==S?void 0:S.image}),i("div",e({className:d.fullScreenButton,style:null==S?void 0:S.fullScreenButton,onClick:function(){return U(!0)}},{children:i(s,{})})),i(a,{open:P,handleClose:function(){return U(!1)},src:b,CloseIcon:u.PreviewDialogCloseIcon,styles:null==S?void 0:S.previewDialogStyles})]})),i("div",e({className:d.footer,style:null==S?void 0:S.footer},{children:l("div",e({className:d.footerContent,style:null==S?void 0:S.footerContent},{children:[i("span",{children:"Open link in new tab to read in detail"}),l("a",e({className:d.visitLink,style:null==S?void 0:S.visitLink,href:u.url,target:"_blank",rel:"noopener noreferrer"},{children:["Visit Link",i(N,{className:d.visitIcon})]}))]}))}))]}))};export{u as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.js.map
|
package/dist/features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={container:"WebCitationWithImageContent-module_container__0caP3",header:"WebCitationWithImageContent-module_header__yd-ED",headerLeft:"WebCitationWithImageContent-module_headerLeft__vemHH",link:"WebCitationWithImageContent-module_link__9am5l",headerActions:"WebCitationWithImageContent-module_headerActions__pinS2",divider:"WebCitationWithImageContent-module_divider__OR-bP",closeIconWrapper:"WebCitationWithImageContent-module_closeIconWrapper__D6HHj",closeIcon:"WebCitationWithImageContent-module_closeIcon__CDrjR",imageWrapper:"WebCitationWithImageContent-module_imageWrapper__Zk2jF",image:"WebCitationWithImageContent-module_image__KJMJS",fullScreenButton:"WebCitationWithImageContent-module_fullScreenButton__JH8MC",loaderContainer:"WebCitationWithImageContent-module_loaderContainer__9UQBM",loaderText:"WebCitationWithImageContent-module_loaderText__fqlg2",footer:"WebCitationWithImageContent-module_footer__7-3Et",footerContent:"WebCitationWithImageContent-module_footerContent__U60cY",visitLink:"WebCitationWithImageContent-module_visitLink__YiGQo",visitIcon:"WebCitationWithImageContent-module_visitIcon__FjN9-"};!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(".WebCitationWithImageContent-module_container__0caP3{border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:1rem;height:100%;min-height:200px;position:relative}.WebCitationWithImageContent-module_header__yd-ED{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.WebCitationWithImageContent-module_headerLeft__vemHH{align-items:center;display:flex;flex-direction:row;gap:.5rem}.WebCitationWithImageContent-module_link__9am5l{color:#1f2937;font-weight:600;text-decoration-color:#1f2937;text-decoration:none}.WebCitationWithImageContent-module_headerActions__pinS2{align-items:center;display:flex;flex-direction:row;gap:1rem;justify-content:space-between}.WebCitationWithImageContent-module_divider__OR-bP{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.WebCitationWithImageContent-module_closeIconWrapper__D6HHj{cursor:pointer}.WebCitationWithImageContent-module_closeIcon__CDrjR{color:#6b7280;height:1.5rem;width:1.5rem}.WebCitationWithImageContent-module_imageWrapper__Zk2jF{padding-left:.75rem;padding-right:.75rem;position:relative}.WebCitationWithImageContent-module_image__KJMJS{border:1px solid #e5e7eb;border-radius:8px;width:100%}.WebCitationWithImageContent-module_fullScreenButton__JH8MC{background-color:#f9fafb;border:1px solid #d0d5dd;border-radius:8px;bottom:.5rem;cursor:pointer;padding:.5rem;position:absolute;right:1.25rem}.WebCitationWithImageContent-module_loaderContainer__9UQBM{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:400px}.WebCitationWithImageContent-module_loaderText__fqlg2{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}.WebCitationWithImageContent-module_footer__7-3Et{align-items:center;display:flex;flex-direction:row;
|
|
1
|
+
var e={container:"WebCitationWithImageContent-module_container__0caP3",header:"WebCitationWithImageContent-module_header__yd-ED",headerLeft:"WebCitationWithImageContent-module_headerLeft__vemHH",link:"WebCitationWithImageContent-module_link__9am5l",headerActions:"WebCitationWithImageContent-module_headerActions__pinS2",divider:"WebCitationWithImageContent-module_divider__OR-bP",closeIconWrapper:"WebCitationWithImageContent-module_closeIconWrapper__D6HHj",closeIcon:"WebCitationWithImageContent-module_closeIcon__CDrjR",imageWrapper:"WebCitationWithImageContent-module_imageWrapper__Zk2jF",image:"WebCitationWithImageContent-module_image__KJMJS",fullScreenButton:"WebCitationWithImageContent-module_fullScreenButton__JH8MC",loaderContainer:"WebCitationWithImageContent-module_loaderContainer__9UQBM",loaderText:"WebCitationWithImageContent-module_loaderText__fqlg2",footer:"WebCitationWithImageContent-module_footer__7-3Et",footerContent:"WebCitationWithImageContent-module_footerContent__U60cY",visitLink:"WebCitationWithImageContent-module_visitLink__YiGQo",visitIcon:"WebCitationWithImageContent-module_visitIcon__FjN9-"};!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(".WebCitationWithImageContent-module_container__0caP3{border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:1rem;height:100%;min-height:200px;position:relative}.WebCitationWithImageContent-module_header__yd-ED{align-items:center;border-bottom:1px solid #e5e7eb;display:flex;flex-direction:row;justify-content:space-between;padding:.5rem 1rem;width:100%}.WebCitationWithImageContent-module_headerLeft__vemHH{align-items:center;display:flex;flex-direction:row;gap:.5rem}.WebCitationWithImageContent-module_link__9am5l{color:#1f2937;font-weight:600;text-decoration-color:#1f2937;text-decoration:none}.WebCitationWithImageContent-module_headerActions__pinS2{align-items:center;display:flex;flex-direction:row;gap:1rem;justify-content:space-between}.WebCitationWithImageContent-module_divider__OR-bP{align-self:stretch;background-color:#e5e7eb;margin-bottom:-.5rem;margin-top:-.5rem;width:1px}.WebCitationWithImageContent-module_closeIconWrapper__D6HHj{cursor:pointer}.WebCitationWithImageContent-module_closeIcon__CDrjR{color:#6b7280;height:1.5rem;width:1.5rem}.WebCitationWithImageContent-module_imageWrapper__Zk2jF{padding-left:.75rem;padding-right:.75rem;position:relative}.WebCitationWithImageContent-module_image__KJMJS{border:1px solid #e5e7eb;border-radius:8px;width:100%}.WebCitationWithImageContent-module_fullScreenButton__JH8MC{background-color:#f9fafb;border:1px solid #d0d5dd;border-radius:8px;bottom:.5rem;cursor:pointer;padding:.5rem;position:absolute;right:1.25rem}.WebCitationWithImageContent-module_loaderContainer__9UQBM{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:400px}.WebCitationWithImageContent-module_loaderText__fqlg2{color:#4b5563;font-size:.875rem;font-weight:500;margin-top:.5rem}.WebCitationWithImageContent-module_footer__7-3Et{box-sizing:border-box;flex-shrink:0;padding:4px 12px 12px;width:100%}.WebCitationWithImageContent-module_footerContent__U60cY{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;width:100%}.WebCitationWithImageContent-module_footerContent__U60cY>span{color:#6b7280;font-size:13px;line-height:1.4}.WebCitationWithImageContent-module_visitLink__YiGQo{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}.WebCitationWithImageContent-module_visitLink__YiGQo:hover{background-color:#2563eb2e;text-decoration:none}.WebCitationWithImageContent-module_visitIcon__FjN9-{color:#2563eb;flex-shrink:0;height:1rem;width:1rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.module.css.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{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.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{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CitationsIcon.d.ts","sourceRoot":"","sources":["../../../../../src/assests/icons/CitationsIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+CAkCtB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type CitationLinkSparkleIconProps = {
|
|
3
|
+
color?: string;
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
};
|
|
8
|
+
export declare const CitationLinkSparkleIcon: React.FC<CitationLinkSparkleIconProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=CitationsSparkleIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CitationsSparkleIcon.d.ts","sourceRoot":"","sources":["../../../../../src/assests/icons/CitationsSparkleIcon.tsx"],"names":[],"mappings":";AAAA,KAAK,4BAA4B,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CA+B1E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/CitationRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,qBAAqB;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,+BAA+B,CAAC,EAAE,GAAG,CAAC;IACtC,iBAAiB,CAAC,EAAE,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE;QACL,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"CitationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/CitationRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,qBAAqB;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,+BAA+B,CAAC,EAAE,GAAG,CAAC;IACtC,iBAAiB,CAAC,EAAE,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE;QACL,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA0DrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAOtC,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;IACtC,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAkLF,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/CitationRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAOtC,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;IACtC,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAkLF,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuLrC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CognitiveCompareProps } from "./CognitiveCompareTypes";
|
|
2
2
|
import { SHARED_MARKDOWN_STYLES } from "./CognitiveCompareConfig";
|
|
3
|
-
declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { SHARED_MARKDOWN_STYLES };
|
|
5
5
|
export default CognitiveCompare;
|
|
6
6
|
//# sourceMappingURL=CognitiveCompare.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AA0BlC,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AA0BlC,QAAA,MAAM,gBAAgB,gUA0BnB,qBAAqB,4CA4iFvB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAe,gBAAgB,CAAC"}
|
|
@@ -88,6 +88,11 @@ export type IDisplayConfig = {
|
|
|
88
88
|
expandAllSections?: boolean;
|
|
89
89
|
expandLevels?: number;
|
|
90
90
|
};
|
|
91
|
+
export type ConflictBadgeStyleFn = (scoreText: string | null | undefined) => {
|
|
92
|
+
bg: string;
|
|
93
|
+
text: string;
|
|
94
|
+
border: string;
|
|
95
|
+
} | null;
|
|
91
96
|
export interface CognitiveCompareProps {
|
|
92
97
|
componentHeaderText?: string;
|
|
93
98
|
treeData?: Record<string, any> | null;
|
|
@@ -117,6 +122,7 @@ export interface CognitiveCompareProps {
|
|
|
117
122
|
isProposingFix?: boolean;
|
|
118
123
|
proposingFixNodeId?: string;
|
|
119
124
|
isRedlineFlow?: boolean;
|
|
125
|
+
badgeStyleOverride?: ConflictBadgeStyleFn;
|
|
120
126
|
}
|
|
121
127
|
export type StyleVariant = {
|
|
122
128
|
bg: string;
|