@e-llm-studio/instant-learning 0.0.107 → 0.0.108
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/dist/cjs/features/IL-OTJ/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CitationLink.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/CustomComponents.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/CustomComponents.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MarkdownElements.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MarkdownElements.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronDown.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronDown.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronUp.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronUp.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/CognitiveDecisioning.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/_svg/CognitiveDecisioning.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/cjs/features/IL-OTJ/helpers/utils.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/TooltipComponent.js +2 -0
- package/dist/cjs/features/InstantLearning/_components/TooltipComponent.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +2 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +2 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +2 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Grow/Grow.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Grow/Grow.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Popper/Popper.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Popper/Popper.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Portal/Portal.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Portal/Portal.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/makeStyles.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/makeStyles.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/useTheme.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/useTheme.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/withTheme.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/withTheme.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/transitions/utils.js +2 -0
- package/dist/cjs/node_modules/@material-ui/core/esm/transitions/utils.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/HTMLElementType.js +2 -0
- package/dist/cjs/node_modules/@material-ui/utils/esm/HTMLElementType.js.map +1 -0
- package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js.map +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/brain.js +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/brain.js.map +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-right.js +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-up.js +1 -1
- package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-up.js.map +1 -1
- package/dist/cjs/node_modules/popper.js/dist/esm/popper.js +27 -0
- package/dist/cjs/node_modules/popper.js/dist/esm/popper.js.map +1 -0
- package/dist/features/IL-OTJ/_components/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/CitationLink.js +1 -1
- package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
- package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/CustomComponents.js +2 -0
- package/dist/features/IL-OTJ/_components/MessageRendering/CustomComponents.js.map +1 -0
- package/dist/features/IL-OTJ/_components/MessageRendering/MarkdownElements.js +2 -0
- package/dist/features/IL-OTJ/_components/MessageRendering/MarkdownElements.js.map +1 -0
- package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +2 -0
- package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/ChevronDown.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ChevronDown.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/ChevronUp.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/ChevronUp.js.map +1 -0
- package/dist/features/IL-OTJ/_components/_svg/CognitiveDecisioning.js +2 -0
- package/dist/features/IL-OTJ/_components/_svg/CognitiveDecisioning.js.map +1 -0
- package/dist/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
- package/dist/features/IL-OTJ/helpers/utils.js +1 -1
- package/dist/features/InstantLearning/_components/TooltipComponent.js +2 -0
- package/dist/features/InstantLearning/_components/TooltipComponent.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Grow/Grow.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Grow/Grow.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Popper/Popper.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Popper/Popper.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Portal/Portal.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Portal/Portal.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/makeStyles.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/styles/makeStyles.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/styles/useTheme.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/styles/useTheme.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/styles/withTheme.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/styles/withTheme.js.map +1 -0
- package/dist/node_modules/@material-ui/core/esm/transitions/utils.js +2 -0
- package/dist/node_modules/@material-ui/core/esm/transitions/utils.js.map +1 -0
- package/dist/node_modules/@material-ui/styles/esm/withStyles/withStyles.js.map +1 -1
- package/dist/node_modules/@material-ui/utils/esm/HTMLElementType.js +2 -0
- package/dist/node_modules/@material-ui/utils/esm/HTMLElementType.js.map +1 -0
- package/dist/node_modules/@material-ui/utils/esm/refType.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/refType.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/brain.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/brain.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js.map +1 -1
- package/dist/node_modules/popper.js/dist/esm/popper.js +26 -0
- package/dist/node_modules/popper.js/dist/esm/popper.js.map +1 -0
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponent.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts +6 -0
- package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts +1 -0
- package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/CustomComponents.d.ts +10 -0
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/CustomComponents.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MarkdownElements.d.ts +22 -0
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MarkdownElements.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts +14 -0
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronDown.d.ts +3 -0
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronDown.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronUp.d.ts +3 -0
- package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronUp.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts +3 -0
- package/dist/types/src/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts.map +1 -0
- package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts +8 -2
- package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +5 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts +5 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/helpers/utils.d.ts +1 -0
- package/dist/types/src/features/IL-OTJ/helpers/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.mjs.js"),n=require("react/jsx-runtime"),t=require("react"),i=require("../../../node_modules/react-markdown/lib/react-markdown.js"),s=require("../../../node_modules/rehype-raw/lib/index.js"),r=require("../../../node_modules/remark-gfm/index.js"),o=require("./CitationLink.js"),a=function(t){var i=t.isOpen,s=t.color,r=void 0===s?"#9CA3AF":s;return n.jsx("svg",e.__assign({width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:r,transform:i?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease",marginLeft:"4px"}},{children:n.jsx("path",{d:"M6 9l6 6 6-6"})}))},l=function(){return n.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none"},{children:[n.jsx("mask",e.__assign({id:"cognition_svg__a",width:"21",height:"20",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},{children:n.jsx("path",{fill:"#D9D9D9",d:"M.976 0h20v20h-20z"})})),n.jsx("g",e.__assign({mask:"url(#cognition_svg__a)"},{children:n.jsx("path",{fill:"#667085",d:"M11.187 12.579q1.306 0 2.235-.842.929-.84.929-2.046 0-1.051-.669-1.786-.668-.735-1.64-.735-.85 0-1.451.545-.6.544-.601 1.344 0 .345.123.686.124.342.417.601.254.228.507.192a.68.68 0 0 0 .413-.21.7.7 0 0 0 .188-.411q.026-.24-.193-.446a1 1 0 0 1-.135-.176.4.4 0 0 1-.07-.226q0-.254.215-.44.216-.188.588-.188.449 0 .76.36.31.36.31.91 0 .67-.543 1.15t-1.362.48q-.988 0-1.684-.791-.698-.792-.698-1.962 0-.445.126-.868a2.8 2.8 0 0 1 .378-.787 1.03 1.03 0 0 0 .142-.492.6.6 0 0 0-.186-.454.6.6 0 0 0-.46-.183.5.5 0 0 0-.413.23q-.417.543-.637 1.186-.22.644-.22 1.347 0 1.665 1.054 2.838t2.577 1.174m-4.796 1.98a7.9 7.9 0 0 1-1.844-2.483 6.8 6.8 0 0 1-.656-2.914q0-2.949 2.066-5.013t5.017-2.064q2.428 0 4.342 1.451t2.486 3.765l.974 3.846a.71.71 0 0 1-.132.647.72.72 0 0 1-.603.291h-1.65v2.66q0 .623-.443 1.064a1.45 1.45 0 0 1-1.064.443h-1.827v1.041q0 .266-.18.445a.6.6 0 0 1-.445.18.6.6 0 0 1-.445-.18.6.6 0 0 1-.18-.445V15.76q0-.327.217-.542a.73.73 0 0 1 .536-.215h2.324a.25.25 0 0 0 .184-.072.25.25 0 0 0 .073-.185v-3.157a.73.73 0 0 1 .216-.537.73.73 0 0 1 .537-.216h1.497l-.792-3.23a5.4 5.4 0 0 0-2.05-3.086q-1.57-1.184-3.575-1.184-2.417 0-4.125 1.69t-1.708 4.11q0 1.248.51 2.37a6.2 6.2 0 0 0 1.448 1.997l.542.5v3.291q0 .266-.18.445a.6.6 0 0 1-.446.18.6.6 0 0 1-.445-.18.6.6 0 0 1-.18-.445z"})}))]}))},d=function(t){var i=t.style,s=e.__rest(t,["style"]);return n.jsx("div",e.__assign({style:e.__assign({display:"flex",height:"20px",width:"20px",alignItems:"center",justifyContent:"center",color:"#667085",flexShrink:0},i)},s,{children:n.jsxs("svg",e.__assign({width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[n.jsx("path",{d:"M9 18h6"}),n.jsx("path",{d:"M10 22h4"}),n.jsx("path",{d:"M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.55-3 6H8a7 7 0 0 1-3-6 7 7 0 0 1 7-7z"})]}))}))},c=function(t){var i=t.width,s=void 0===i?16:i,r=t.height,o=void 0===r?16:r;return n.jsxs("svg",e.__assign({width:s,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[n.jsx("path",{d:"M4.92363 2.64844H1.93457V5.34844M1.93457 10.7484V12.5484M8.90904 2.64844H12.9601M16.9455 2.64844H19.9346V5.34844M4.92363 20.6484H1.93457V17.9484",stroke:"url(#paint0_linear_gap)",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M18.2707 19.1183C18.7024 18.6924 19.0455 18.1852 19.2802 17.6261C19.5149 17.0669 19.6366 16.4669 19.6383 15.8605C19.6399 15.2541 19.5215 14.6533 19.2898 14.0929C19.0582 13.5325 18.7179 13.0235 18.2885 12.5953C17.8592 12.167 17.3493 11.828 16.7883 11.5978C16.2273 11.3676 15.6262 11.2507 15.0198 11.254C14.4134 11.2572 13.8137 11.3804 13.2551 11.6166C12.6966 11.8528 12.1903 12.1972 11.7656 12.6299C10.9166 13.4949 10.4438 14.6604 10.4503 15.8724C10.4567 17.0844 10.9418 18.2447 11.8 19.1006C12.6581 19.9566 13.8197 20.4387 15.0317 20.442C16.2437 20.4453 17.408 19.9695 18.2707 19.1183ZM18.2707 19.1183L21.1436 21.9987",stroke:"url(#paint1_linear_gap)",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsxs("defs",{children:[n.jsxs("linearGradient",e.__assign({id:"paint0_linear_gap",x1:"-2.35114",y1:"-1.51018",x2:"19.0006",y2:"8.49096",gradientUnits:"userSpaceOnUse"},{children:[n.jsx("stop",{stopColor:"#2546F0"}),n.jsx("stop",{offset:"1",stopColor:"#5928ED"})]})),n.jsxs("linearGradient",e.__assign({id:"paint1_linear_gap",x1:"7.90416",y1:"8.77148",x2:"20.6106",y2:"14.6946",gradientUnits:"userSpaceOnUse"},{children:[n.jsx("stop",{stopColor:"#2546F0"}),n.jsx("stop",{offset:"1",stopColor:"#5928ED"})]}))]})]}))},u=function(){return n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",style:{marginRight:"4px"}},{children:n.jsx("path",{d:"M12 2L9 9l-7 3 7 3 3 7 3-7 7-3-7-3z"})}))};exports.InputDataReasoningCard=function(g){var x=g.citation,p=g.citations,h=g.fieldName,_=g.fieldValue,f=function(e,n){var t,i="";if(!(i="string"==typeof n?n:(null===(t=null==n?void 0:n.customMetaData)||void 0===t?void 0:t.content)?n.customMetaData.content:String(n)))return null;var s=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),r=i.match(s);return r?r[1].replace(/\\n/g,"\n"):null},m=t.useMemo(function(){return f("reason",x)},[x]),j=t.useMemo(function(){return f("gap",x)},[x]),v=t.useMemo(function(){return f("relevance_score",x)},[x]),y=t.useState(!1),k=y[0],b=y[1],w=t.useState(!0),C=w[0],F=w[1],M=t.useState(!0),S=M[0],D=M[1],q=t.useCallback(function(e){return p&&p.find(function(n){return n.customMetaData.citation_number&&"Cognitive Decisioning"!==n.customMetaData.citation_title&&String(n.customMetaData.citation_number)===String(e)})||null},[p]),L=t.useMemo(function(){return{p:function(t){t.node;var i=e.__rest(t,["node"]);return n.jsx("p",e.__assign({},i,{style:{margin:0}},{children:null==i?void 0:i.children}))},li:function(t){t.node;var i=t.index,s=e.__rest(t,["node","index"]);return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",marginBottom:"6px"}},{children:[n.jsx("span",e.__assign({style:{fontSize:"12px",fontWeight:400,color:"#55585fff",flexShrink:0,minWidth:"18px"}},{children:"number"==typeof i?"".concat(i+1,"."):"•"})),n.jsx("span",e.__assign({style:{fontSize:"12px",color:"#4B5563",lineHeight:"1.5",flex:1}},{children:s.children}))]}))},a:function(t){var i;t.node;var s=t.href,r=t.children,a=e.__rest(t,["node","href","children"]);if(!s)return n.jsx("a",e.__assign({},a,{children:r}));var l=s.match(/citationNumber=([^&]+)/),d=l?l[1]:null;if(d){var c=q(d);if(c){var u=(null===(i=c.customMetaData)||void 0===i?void 0:i.citation_type)||"",g=String(u).trim().toLowerCase(),x="rule_book"===g||"advertiser_names"===g,p={headerTitle:c.customMetaData.citation_title,headerBadge:c.customMetaData.citation_relevance_score,footerText:"Referenced from ".concat(c.customMetaData.citation_reference),rightSidebarItems:x?[]:[{label:"Category",value:c.customMetaData.citation_category||""},{label:"Code Name",value:c.customMetaData.citation_source||""}]};return n.jsx("span",e.__assign({style:{display:"inline",alignItems:"center",gap:"3px",color:"#2563EB",verticalAlign:"middle"}},{children:n.jsx(o.default,{citation:c,linkTitle:r,cardData:p})}))}}return n.jsx("a",e.__assign({href:s,target:"_blank",rel:"noopener noreferrer",style:{color:"#2563EB",textDecoration:"none"}},a,{children:r}))}}},[q]),B=t.useMemo(function(){return[s.default]},[]),I=t.useMemo(function(){return[r.default]},[]),W=function(e){return e?e.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(e,n,t,i){return"".concat(n).concat(t.replace(/\s/g,"%20")).concat(i)}):""},z={display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",background:"none",border:"none",cursor:"pointer",padding:"10px 12px",textAlign:"left"},R={paddingLeft:"40px",paddingRight:"12px",paddingBottom:"12px",fontSize:"12px",lineHeight:"1.5",color:"#4B5563"};return n.jsxs("div",e.__assign({style:{margin:"8px 5px 0 5px",border:"1px solid #E5E7EB",borderRadius:"8px",overflow:"hidden",backgroundColor:"#FFFFFF",boxShadow:"0px 1px 2px rgba(16, 24, 40, 0.05)",boxSizing:"border-box"}},{children:[n.jsxs("button",e.__assign({onClick:function(){return b(!k)},style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",border:"none",background:"transparent",cursor:"pointer",transition:"background-color 0.2s",textAlign:"left"},onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#F9FAFB"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="transparent"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:0}},{children:[n.jsx("div",e.__assign({style:{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"#F3F4F6",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}},{children:n.jsx(l,{})})),n.jsx("span",e.__assign({style:{fontSize:"13px",fontWeight:500,color:k?"#111827":"#343434ff",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},{children:"rule description"===h.toLowerCase()?"Why rule description is what is mentioned?":"Why ".concat(h," is ").concat(_,"?")}))]})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[v&&n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",borderRadius:"9999px",border:"1px solid #E9D5FF",backgroundColor:"#FFFFFF",padding:"2px 8px",fontSize:"11px",fontWeight:600,color:"#2546F0"}},{children:[n.jsx(u,{}),"AI Relevance: ",v,"%"]})),n.jsx(a,{isOpen:k})]}))]})),k&&n.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",borderTop:"1px solid #F3F4F6"}},{children:[n.jsxs("div",e.__assign({style:{borderBottom:"1px solid #F3F4F6"}},{children:[n.jsxs("button",e.__assign({onClick:function(){return F(!C)},style:z},{children:[n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"center"}},{children:[n.jsx(d,{style:{color:"#2546F0"}}),n.jsx("h4",e.__assign({style:{fontSize:"12px",fontWeight:600,color:"#111827",margin:0}},{children:"Reasoning"}))]})),n.jsx(a,{isOpen:C})]})),C&&n.jsx("div",e.__assign({style:R},{children:n.jsx(i.ReactMarkdown,e.__assign({components:L,rehypePlugins:B,remarkPlugins:I},{children:W(m||"No reasoning provided.")}))}))]})),n.jsxs("div",{children:[n.jsxs("button",e.__assign({onClick:function(){return D(!S)},style:z},{children:[n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"center"}},{children:[n.jsx(c,{width:14,height:14}),n.jsx("h4",e.__assign({style:{fontSize:"12px",fontWeight:600,color:"#111827",margin:0}},{children:"Gaps"}))]})),n.jsx(a,{isOpen:S})]})),S&&n.jsx("div",e.__assign({style:R},{children:n.jsx(i.ReactMarkdown,e.__assign({components:L,rehypePlugins:B,remarkPlugins:I},{children:W(j||"No gaps found.")}))}))]})]}))]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.mjs.js"),n=require("react/jsx-runtime"),i=require("react"),t=require("../../../node_modules/react-markdown/lib/react-markdown.js"),r=require("../../../node_modules/rehype-raw/lib/index.js"),s=require("../../../node_modules/remark-gfm/index.js"),o=require("./CitationLink.js"),a=require("./CognitiveDecisioningCard.js"),l=function(i){var t=i.isOpen,r=i.color,s=void 0===r?"#9CA3AF":r;return n.jsx("svg",e.__assign({width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{color:s,transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease",marginLeft:"4px"}},{children:n.jsx("path",{d:"M6 9l6 6 6-6"})}))},d=function(){return n.jsx("div",e.__assign({style:{display:"flex",height:"32px",width:"32px",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5ff",color:"#6b27d9",flexShrink:0,border:"1.5px solid #f5f5ff"}},{children:n.jsxs("svg",e.__assign({width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[n.jsx("path",{d:"M9 18h6"}),n.jsx("path",{d:"M10 22h4"}),n.jsx("path",{d:"M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.55-3 6H8a7 7 0 0 1-3-6 7 7 0 0 1 7-7z"})]}))}))},c=function(){return n.jsx("div",e.__assign({style:{display:"flex",height:"32px",width:"32px",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"#f5f5ff",flexShrink:0,border:"1.5px solid #f5f5ff"}},{children:n.jsxs("svg",e.__assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[n.jsx("path",{d:"M4.92363 2.64844H1.93457V5.34844M1.93457 10.7484V12.5484M8.90904 2.64844H12.9601M16.9455 2.64844H19.9346V5.34844M4.92363 20.6484H1.93457V17.9484",stroke:"#6b27d9",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:"M18.2707 19.1183C18.7024 18.6924 19.0455 18.1852 19.2802 17.6261C19.5149 17.0669 19.6366 16.4669 19.6383 15.8605C19.6399 15.2541 19.5215 14.6533 19.2898 14.0929C19.0582 13.5325 18.7179 13.0235 18.2885 12.5953C17.8592 12.167 17.3493 11.828 16.7883 11.5978C16.2273 11.3676 15.6262 11.2507 15.0198 11.254C14.4134 11.2572 13.8137 11.3804 13.2551 11.6166C12.6966 11.8528 12.1903 12.1972 11.7656 12.6299C10.9166 13.4949 10.4438 14.6604 10.4503 15.8724C10.4567 17.0844 10.9418 18.2447 11.8 19.1006C12.6581 19.9566 13.8197 20.4387 15.0317 20.442C16.2437 20.4453 17.408 19.9695 18.2707 19.1183ZM18.2707 19.1183L21.1436 21.9987",stroke:"#6b27d9",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})]}))}))},u=function(){return n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",style:{marginRight:"4px"}},{children:n.jsx("path",{d:"M12 2L9 9l-7 3 7 3 3 7 3-7 7-3-7-3z"})}))},g=i.memo(function(g){var f=g.citation,x=g.citations;g.fieldName,g.fieldValue;var p=g.isVisible,h=void 0!==p&&p,_=function(e,n){var i,t="";if(!(t="string"==typeof n?n:(null===(i=null==n?void 0:n.customMetaData)||void 0===i?void 0:i.content)?n.customMetaData.content:String(n)))return null;var r=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),s=t.match(r);return s?s[1].replace(/\\n/g,"\n"):null},m=i.useMemo(function(){return _("reason",f)},[f]),j=i.useMemo(function(){return _("gap",f)},[f]),v=i.useMemo(function(){return _("relevance_score",f)},[f]),y=i.useState(!0),b=y[0],k=y[1],C=i.useState(!0),M=C[0],w=C[1],S=i.useCallback(function(e){return x&&x.find(function(n){return n.customMetaData.citation_number&&"Cognitive Decisioning"!==n.customMetaData.citation_title&&String(n.customMetaData.citation_number)===String(e)})||null},[x]),D=i.useMemo(function(){return{p:function(i){i.node;var t=e.__rest(i,["node"]);return n.jsx("p",e.__assign({},t,{style:{margin:0}},{children:null==t?void 0:t.children}))},li:function(i){i.node;var t=i.index,r=e.__rest(i,["node","index"]);return n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"flex-start",marginBottom:"6px"}},{children:[n.jsx("span",e.__assign({style:{fontSize:"12px",fontWeight:400,color:"#55585fff",flexShrink:0,minWidth:"18px"}},{children:"number"==typeof t?"".concat(t+1,"."):"•"})),n.jsx("span",e.__assign({style:{fontSize:"12px",color:"#4B5563",lineHeight:"1.5",flex:1}},{children:r.children}))]}))},a:function(i){var t;i.node;var r=i.href,s=i.children,a=e.__rest(i,["node","href","children"]);if(!r)return n.jsx("a",e.__assign({},a,{children:s}));var l=r.match(/citationNumber=([^&]+)/),d=l?l[1]:null;if(d){var c=S(d);if(c){var u=(null===(t=c.customMetaData)||void 0===t?void 0:t.citation_type)||"",g=String(u).trim().toLowerCase(),f="rule_book"===g||"advertiser_names"===g,x={headerTitle:c.customMetaData.citation_title,headerBadge:c.customMetaData.citation_relevance_score,footerText:"Referenced from ".concat(c.customMetaData.citation_reference),rightSidebarItems:f?[]:[{label:"Category",value:c.customMetaData.citation_category||""},{label:"Code Name",value:c.customMetaData.citation_source||""}]};return n.jsx("span",e.__assign({style:{display:"inline",alignItems:"center",fontSize:"14px !important",gap:"3px",color:"#2563EB",verticalAlign:"middle"}},{children:n.jsx(o.default,{citation:c,linkTitle:s,cardData:x,fontSize:12})}))}}return n.jsx("a",e.__assign({href:r,target:"_blank",rel:"noopener noreferrer",style:{color:"#2563EB",textDecoration:"none"}},a,{children:s}))}}},[S]),B=i.useMemo(function(){return[r.default]},[]),I=i.useMemo(function(){return[s.default]},[]),F=function(e){return e?e.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(e,n,i,t){return"".concat(n).concat(i.replace(/\s/g,"%20")).concat(t)}):""},L={display:"flex",width:"100%",alignItems:"flex-start",justifyContent:"space-between",background:"none",border:"none",cursor:"pointer",padding:"10px 12px",textAlign:"left"},R={marginTop:"2px",paddingLeft:"40px",paddingRight:"12px",paddingBottom:"12px",fontSize:"12px",lineHeight:"1.5",color:"#4B5563"};return h?n.jsxs("div",e.__assign({style:{width:"100%",marginTop:"4px",marginBottom:"12px",overflow:"hidden",borderRadius:"8px",border:"1.5px solid #cacdfa",backgroundColor:"#FFFFFF",boxShadow:"0 2px 4px -1px rgba(0, 0, 0, 0.05)",fontFamily:'"Plus Jakarta Sans", sans-serif'}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1.5px solid #d4dbff",backgroundColor:"#f4f2ff",padding:"8px 12px",gap:"8px"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[n.jsx(a.HumanWithBrainIcon,{}),n.jsx("span",e.__assign({style:{fontSize:"13px",fontWeight:500,color:"#1F2937"}},{children:"Cognitive Decisioning AI"}))]})),v&&n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",borderRadius:"16px",border:"1px solid #d4dbff",backgroundColor:"#FFFFFF",padding:"8px 8px",fontSize:"11px",fontWeight:600,color:"#7C3AED"}},{children:[n.jsx(u,{}),"AI Relevance: ",v,"%"]}))]})),n.jsxs("div",e.__assign({style:{borderBottom:"1.5px solid #e9ebf0"}},{children:[n.jsxs("button",e.__assign({onClick:function(){return k(!b)},style:L},{children:[n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"center"}},{children:[n.jsx(d,{}),n.jsxs("div",{children:[n.jsx("h4",e.__assign({style:{fontSize:"12px",fontWeight:500,color:"#111827",margin:0}},{children:"Reasoning"})),n.jsx("p",e.__assign({style:{fontSize:"10px",color:"#6B7280",margin:"0"}},{children:" Why this was picked"}))]})]})),n.jsx(l,{isOpen:b})]})),b&&n.jsx("div",e.__assign({style:R},{children:n.jsx(t.ReactMarkdown,e.__assign({components:D,rehypePlugins:B,remarkPlugins:I},{children:F(m||"No reasoning provided.")}))}))]})),n.jsxs("div",{children:[n.jsxs("button",e.__assign({onClick:function(){return w(!M)},style:L},{children:[n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"center"}},{children:[n.jsx(c,{}),n.jsxs("div",{children:[n.jsx("h4",e.__assign({style:{fontSize:"12px",fontWeight:500,color:"#111827",margin:0}},{children:"Gap"})),n.jsx("p",e.__assign({style:{fontSize:"10px",color:"#6B7280",margin:"0"}},{children:"What's missing or unclear"}))]})]})),n.jsx(l,{isOpen:M})]})),M&&n.jsx("div",e.__assign({style:R},{children:n.jsx(t.ReactMarkdown,e.__assign({components:D,rehypePlugins:B,remarkPlugins:I},{children:F(j||"No gaps identified")}))}))]})]})):null},function(e,n){return e.isVisible===n.isVisible&&e.fieldValue===n.fieldValue&&e.fieldName===n.fieldName&&JSON.stringify(e.citation)===JSON.stringify(n.citation)&&JSON.stringify(e.citations)===JSON.stringify(n.citations)});g.displayName="InputDataReasoningCard",exports.InputDataReasoningCard=g;
|
|
2
2
|
//# sourceMappingURL=InputDataReasoningCard.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../node_modules/tslib/tslib.es6.mjs.js"),n=require("react/jsx-runtime");require("react");var i=require("../../helpers/utils.js"),t=function(i){var t=i.label,r=i.onToggle,s=i.isSelected,o=i.disabled;return n.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",cursor:o?"not-allowed":"pointer",margin:"8px 24px 8px 0",userSelect:"none",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"14px",color:o?"#9ca3af":"#000000de",verticalAlign:"middle",opacity:o&&!s?.6:1},onClick:function(){return!o&&r(t,!s)}},{children:[n.jsx("div",e.__assign({style:{width:"18px",height:"18px",borderRadius:"4px",border:s?"none":"2px solid ".concat(o?"#e5e7eb":"#cfd8dc"),backgroundColor:s?o?"#90caf9":"#2661eb":"transparent",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",transition:"all 0.2s ease",color:"white",flexShrink:0}},{children:s&&n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:n.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))})),n.jsx("span",{children:t})]}))};exports.ActionableButton=function(t){t.node;var r=t.className,s=t.children,o=t.handleStream,l=t.onAction,a=t.disabled,d=e.__rest(t,["node","className","children","handleStream","onAction","disabled"]),c=i.extractTextFromChildren(s);return"clickable-button"===r?n.jsx("button",e.__assign({className:r,onClick:function(e){e.preventDefault(),a||(l?l(c):o(new KeyboardEvent("keydown",{key:"Enter"}),!1,c))},disabled:a,style:{padding:"0.5rem 1rem",margin:"0.5rem 0.5rem 0.5rem 0",backgroundColor:a?"#f3f4f6":"#fbfaff",color:a?"#9ca3af":"#65758c",border:"1px solid ".concat(a?"#e5e7eb":"#bfc6ceff"),borderRadius:"8px",cursor:a?"not-allowed":"pointer",fontSize:"0.85rem",fontWeight:"500",transition:"all 0.2s ease",fontFamily:"Plus Jakarta Sans, sans-serif",display:"inline-block",pointerEvents:a?"none":"auto"},onMouseEnter:function(e){e.currentTarget.style.backgroundColor="#2563EB",e.currentTarget.style.borderColor="#3b82f5",e.currentTarget.style.color="#fff"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="#fbfaff",e.currentTarget.style.borderColor="#bfc6ceff",e.currentTarget.style.color="#65758c"}},d,{children:s})):n.jsx("button",e.__assign({className:r},d,{children:s}))},exports.ActionableCheckbox=function(r){r.node;var s=r.className,o=r.children,l=r.selectedItems,a=r.onToggle,d=r.isSubmitted,c=r.disabled;e.__rest(r,["node","className","children","selectedItems","onToggle","isSubmitted","disabled"]);var x=i.extractTextFromChildren(o),f=x.trim();return"clickable-box"===s?d?l.includes(f)?n.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",margin:"4px 24px 4px 0",color:"#2661eb",fontWeight:600,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[n.jsx("span",e.__assign({style:{marginRight:"6px",fontSize:"16px"}},{children:"✓"}))," ",x]})):null:n.jsx(t,{label:x,isSelected:l.includes(f),onToggle:a,disabled:c}):n.jsx("span",e.__assign({className:s},{children:o}))},exports.CheckboxSelector=t,exports.RuleDisplay=function(i){var t=i.content,r=function(e){var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=new RegExp("<".concat(n,">([\\s\\S]*?)<\\/").concat(n,">"),"i"),r=t.match(i);return r?r[1].trim():"*No ".concat(e," tag found.*")},s=r("reasoning_new"),o=r("proposed_rule"),l=r("wta_new"),a=r("wnta_new");return n.jsxs("div",e.__assign({style:{padding:"16px 16px",maxWidth:"100%",border:"1px solid #A78BFA",borderRadius:"8px",backgroundColor:"#F6F4FF"}},{children:[n.jsx("div",e.__assign({style:{color:"#4B5563",fontSize:"1rem",lineHeight:"1.5rem",marginBottom:"1rem",fontFamily:"inherit",maxWidth:"90%"}},{children:s})),n.jsxs("div",e.__assign({style:{border:"1px solid #ddd",borderRadius:"8px",padding:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.05)"}},{children:[n.jsxs("div",e.__assign({style:{paddingLeft:"12px",marginBottom:"12px",fontFamily:"inherit"}},{children:[n.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"Proposed Rule"})),n.jsx("div",e.__assign({style:{fontSize:"0.95rem",color:"#374151",fontFamily:"inherit"}},{children:o}))]})),n.jsxs("div",e.__assign({style:{marginBottom:"12px",paddingLeft:"12px",fontFamily:"inherit"}},{children:[n.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"When to apply"})),n.jsx("div",e.__assign({style:{fontSize:"0.9rem",color:"#374151",fontFamily:"inherit"}},{children:l}))]})),n.jsxs("div",e.__assign({style:{paddingLeft:"12px",fontFamily:"inherit"}},{children:[n.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"When NOT to apply"})),n.jsx("div",e.__assign({style:{fontSize:"0.9rem",color:"#374151",fontFamily:"inherit"}},{children:a}))]}))]}))]}))};
|
|
2
|
+
//# sourceMappingURL=CustomComponents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomComponents.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../node_modules/tslib/tslib.es6.mjs.js"),t=require("react/jsx-runtime"),i=require("../CognitiveDecisioningCard.js"),a=require("../CitationLink.js"),r=require("../../helpers/utils.js");exports.MarkdownDivRenderer=function(a){var n=a.className,o=a.children,s=a.openCardIds,c=a.citations,l=a.handleToggleState,d=e.__rest(a,["className","children","openCardIds","citations","handleToggleState"]);if("cognitive-card-trigger"===n){var u=r.extractTextFromChildren(o),g=d["data-card-id"],h=s.has(g);return t.jsx("span",e.__assign({style:{display:"inline"}},{children:t.jsx(i.CognitiveDecisioningCard,{citation:"<ai_reasoning>".concat(u,"</ai_reasoning>"),citations:c,isOpen:h,onToggle:function(){return l(g,!h,"card")}})}))}return t.jsx("div",e.__assign({className:n},d,{children:o}))},exports.MarkdownLinkRenderer=function(i){var r,n=i.href,o=i.children,s=i.chatSize,c=i.openCitationIds,l=i.getCitationByNumber,d=i.handleToggleState,u=e.__rest(i,["href","children","chatSize","openCitationIds","getCitationByNumber","handleToggleState"]);if(!n)return t.jsx("a",e.__assign({},u,{children:o}));var g=n.match(/citationNumber=([^&]+)/),h=g?g[1]:null,_=n.match(/uiUniqueId=([^&]+)/),m=_?_[1]:null;if(h){var v=l(h);if(v){var f=(null===(r=v.customMetaData)||void 0===r?void 0:r.citation_type)||"",p=String(f).trim().toLowerCase(),x="rule_book"===p||"advertiser_names"===p,C={headerTitle:v.customMetaData.citation_title,headerBadge:v.customMetaData.citation_relevance_score,footerText:"Referenced from ".concat(v.customMetaData.citation_reference),rightSidebarItems:x?[]:[{label:"Category",value:v.customMetaData.citation_category||""},{label:"Code Name",value:v.customMetaData.citation_source||""}]},j=m?"citation-ui-".concat(m):"citation-".concat(v.id||h),b=c.has(j);return t.jsx(a.default,{citation:v,linkTitle:o,chatSize:s,cardData:C,isOpen:b,onToggle:function(){return d(j,!b,"citation")}},j)}}return t.jsx("a",e.__assign({href:n,target:"_blank",rel:"noopener noreferrer",className:"md-link inline-flex items-center gap-1 text-purple-700 hover:underline"},u,{children:o}))};
|
|
2
|
+
//# sourceMappingURL=MarkdownElements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownElements.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../node_modules/tslib/tslib.es6.mjs.js"),n=require("react/jsx-runtime"),r=require("react"),t=require("../../../../node_modules/react-markdown/lib/react-markdown.js"),i=require("../../../../node_modules/rehype-raw/lib/index.js"),a=require("../../../../node_modules/remark-gfm/index.js"),o=require("./CustomComponents.js"),s=require("../../helpers/utils.js"),l=require("./MarkdownElements.js");exports.default=function(c){var u=c.index,d=c.content;c.messages;var f=c.handleStream,m=c.scrollToBottom,g=c.isLastMessage,h=c.onSave,p=c.citations,_=c.setChatSize,v=c.chatSize,b=r.useState(d),x=b[0],k=b[1],w=r.useState([]),y=w[0],S=w[1],j=r.useState(!1),C=j[0],T=j[1],B=r.useState(!1),M=B[0],q=B[1],L=r.useState(new Set),z=L[0],W=L[1],D=r.useState(new Set),N=D[0],A=D[1];r.useEffect(function(){M||k(d)},[d,M]);var E=r.useCallback(function(e){var n=e.trim();"save this learning"===n.toLowerCase()&&h?h():f(new KeyboardEvent("keydown",{key:"Enter"}),!1,e),k(function(e){return e.replace(/<button[^>]*class=["']clickable-button["'][^>]*>(.*?)<\/button>/gi,function(e,r){var t=r.trim();return t===n?'<span style="background-color: #2661eb; color: #ffffff; padding: 4px 8px; border-radius: 4px; font-weight: 400; display: inline-block; margin: 2px;">✓ '.concat(t,"</span>"):""})})},[f,h]),I=r.useCallback(function(e){return p&&p.find(function(n){return n.customMetaData.citation_number&&"Cognitive Decisioning"!==n.customMetaData.citation_title&&String(n.customMetaData.citation_number)===String(e)})||null},[p]),P=r.useCallback(function(n,r){var t=Array.isArray(n)?n[0].trim():n.trim();T(!0);var i=["both tiers","all tiers"].includes(t.toLowerCase());S(function(n){var a=e.__spreadArray([],n,!0);if(i)a=r?["Both Tiers","Tier 1","Tier 2"]:[];else{r?a.includes(t)||a.push(t):a=a.filter(function(e){return e!==t});var o=a.includes("Tier 1"),s=a.includes("Tier 2");o&&s?a.includes("Both Tiers")||a.push("Both Tiers"):a=a.filter(function(e){return!["Both Tiers","All tiers"].includes(e)})}return a.filter(function(e,n){return a.indexOf(e)===n})}),null==m||m()},[m]),R=r.useCallback(function(){var e=y.join(" and ");y.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})&&(e="Both Tiers"),f(new KeyboardEvent("keydown",{key:"Enter"}),!1,"".concat(e)),q(!0),T(!1),k(function(e){return e.replace(/<checkbox\s+class=["']clickable-box["'][^>]*>([\s\S]*?)<\/checkbox>/gi,function(e,n){var r=n.trim();return y.includes(r)?e:""})})},[y,f]),F=r.useCallback(function(e,n,r){var t=function(r){var t=new Set(r);return n?t.add(e):t.delete(e),t};"card"===r?W(function(e){return t(e)}):A(function(e){return t(e)})},[]);r.useEffect(function(){z.size>0||N.size>0?null==_||_(50):null==_||_(40)},[z,N,_]);var H=r.useMemo(function(){return{p:function(r){r.node;var t=e.__rest(r,["node"]);return n.jsx("span",e.__assign({},t,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline",fontSize:"1rem",lineHeight:"1.625rem",marginBottom:"1rem",marginTop:"10px"}},{children:null==t?void 0:t.children}))},code:function(r){r.node;var t=e.__rest(r,["node"]);return n.jsx("span",e.__assign({},t,{style:{maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"normal",overflow:"hidden",display:"inline-flex",fontSize:"1rem",lineHeight:"1.625rem"}},{children:null==t?void 0:t.children}))},ol:function(r){r.node;var t=e.__rest(r,["node"]);return n.jsx("ol",e.__assign({},t,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==t?void 0:t.children}))},ul:function(r){r.node;var t=e.__rest(r,["node"]);return n.jsx("ul",e.__assign({},t,{style:{display:"flex",flexDirection:"column",gap:"1rem",listStyle:"decimal",paddingLeft:"2.5rem"}},{children:null==t?void 0:t.children}))},rule:function(r){r.node;var t=e.__rest(r,["node"]);return n.jsx(o.RuleDisplay,{content:s.extractTextFromChildren(t.children)})},button:function(r){var t=r.node,i=r.className,a=e.__rest(r,["node","className"]);return n.jsx(o.ActionableButton,e.__assign({node:t,className:i||a.class,handleStream:f,onAction:E,disabled:!g},a))},checkbox:function(r){var t=r.node,i=r.className,a=e.__rest(r,["node","className"]);return n.jsx(o.ActionableCheckbox,e.__assign({node:t,className:i||a.class,selectedItems:y,onToggle:P,isSubmitted:M,disabled:!g},a))},a:function(r){return n.jsx(l.MarkdownLinkRenderer,e.__assign({},r,{chatSize:v,openCitationIds:N,getCitationByNumber:I,handleToggleState:F}))},div:function(r){return n.jsx(l.MarkdownDivRenderer,e.__assign({},r,{openCardIds:z,citations:p,handleToggleState:F}))}}},[y,M,f,E,P,g,v,p,z,N,I,F]),J=r.useMemo(function(){return[i.default]},[]),K=r.useMemo(function(){return[a.default]},[]);return n.jsxs(n.Fragment,{children:[n.jsx("div",e.__assign({style:{lineHeight:"1.625rem",fontSize:"1rem",marginTop:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:n.jsx(t.ReactMarkdown,e.__assign({components:H,rehypePlugins:J,remarkPlugins:K},{children:function(e){if(!e)return"";var n=0,r=e.replace(/<ai_reasoning>([\s\S]*?)<\/ai_reasoning>/gi,function(e,r){var t=r.replace(/\[([^\]]+)\]\(([^)]+)\)/g,function(e,n,r){return"\\[".concat(n,"\\]\\(").concat(r,"\\)")});t=t.replace(/</g,"<").replace(/>/g,">"),n++;var i="card-".concat(n);return'<div class="cognitive-card-trigger" data-card-id="'.concat(i,'">').concat(t,"</div>")}),t=0;return r.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(e,n,r,i){var a=r.replace(/\s/g,"%20");if(a.includes("citationNumber=")){t++;var o=a.includes("?")?"&":"?";return"".concat(n).concat(a).concat(o,"uiUniqueId=").concat(t).concat(i)}return"".concat(n).concat(a).concat(i)})}(x)}),u)})),n.jsx("div",e.__assign({style:{display:"flex",maxWidth:"100%"}},{children:n.jsx("div",e.__assign({style:{width:"100%"}},{children:(null==y?void 0:y.length)>0&&C&&!M?n.jsxs("div",e.__assign({style:{marginTop:"10px"}},{children:[n.jsxs("span",{children:["It looks like you've chosen ",y&&0!==y.length?y.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})?"Both Tiers":y.join(", "):"",". Would you like me to proceed?"]}),n.jsx("p",{children:n.jsx("button",e.__assign({style:{padding:"0.5rem 1rem",margin:"0.5rem 0",backgroundColor:"#2661eb",color:"white",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"0.75rem",fontWeight:"500",fontFamily:"Plus Jakarta Sans, sans-serif"},onClick:R},{children:"Yes"}))})]})):null}))}))]})};
|
|
2
|
+
//# sourceMappingURL=MessageRendering.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageRendering.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../node_modules/tslib/tslib.es6.mjs.js"),s=require("react/jsx-runtime");exports.default=function(){return s.jsx("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:s.jsx("path",{d:"M12 6L8 10L4 6",stroke:"#4B5563","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})}))};
|
|
2
|
+
//# sourceMappingURL=ChevronDown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChevronDown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../node_modules/tslib/tslib.es6.mjs.js"),s=require("react/jsx-runtime");exports.default=function(){return s.jsx("svg",e.__assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:s.jsx("path",{d:"M12 10L8 6L4 10",stroke:"#4B5563","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})}))};
|
|
2
|
+
//# sourceMappingURL=ChevronUp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChevronUp.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var C=require("../../../../node_modules/tslib/tslib.es6.mjs.js"),e=require("react/jsx-runtime");exports.default=function(){return e.jsxs("svg",C.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("g",C.__assign({"clip-path":"url(#clip0_2637_70886)"},{children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.3622 0.880771C9.78474 0.00965691 7.9285 -0.207804 6.19243 0.27513C4.45636 0.758063 2.97905 1.90284 2.07804 3.4634C1.17703 5.02396 0.92425 6.87573 1.37402 8.62068C1.82379 10.3656 2.94022 11.8645 4.48333 12.7951V15.2888C4.48333 15.3826 4.5018 15.4755 4.5377 15.5621C4.5736 15.6488 4.62621 15.7275 4.69254 15.7938C4.75886 15.8602 4.83761 15.9128 4.92427 15.9487C5.01093 15.9846 5.10381 16.0031 5.19761 16.0031C5.29141 16.0031 5.3843 15.9846 5.47096 15.9487C5.55762 15.9128 5.63636 15.8602 5.70269 15.7938C5.76902 15.7275 5.82163 15.6488 5.85753 15.5621C5.89342 15.4755 5.9119 15.3826 5.9119 15.2888V12.3745C5.91142 12.243 5.87496 12.1142 5.80646 12.002C5.73796 11.8898 5.64004 11.7984 5.52333 11.7379C4.66017 11.2977 3.92992 10.6355 3.40777 9.81928C2.88563 9.00309 2.59045 8.06249 2.55262 7.09431C2.5148 6.12613 2.73571 5.16536 3.19259 4.31093C3.64948 3.4565 4.32583 2.73928 5.15202 2.2331C5.97821 1.72693 6.92438 1.45011 7.89311 1.43113C8.86184 1.41215 9.81813 1.6517 10.6635 2.12512C11.5089 2.59854 12.2128 3.28872 12.7028 4.1246C13.1928 4.96048 13.4512 5.91186 13.4513 6.88077V11.3653C13.4513 11.4732 13.4085 11.5767 13.3322 11.653C13.2559 11.7293 13.1524 11.7722 13.0445 11.7722H10.8022C10.6127 11.7722 10.4311 11.8475 10.2971 11.9814C10.1632 12.1154 10.0879 12.297 10.0879 12.4865V15.2888C10.0879 15.4782 10.1632 15.6599 10.2971 15.7938C10.4311 15.9278 10.6127 16.0031 10.8022 16.0031C10.9916 16.0031 11.1733 15.9278 11.3073 15.7938C11.4412 15.6599 11.5165 15.4782 11.5165 15.2888V13.2008H13.0445C13.2855 13.2008 13.5242 13.1533 13.7469 13.0611C13.9695 12.9688 14.1719 12.8336 14.3423 12.6632C14.5128 12.4928 14.6479 12.2904 14.7402 12.0677C14.8324 11.845 14.8799 11.6064 14.8799 11.3653V6.88191C14.8797 5.65928 14.5536 4.4588 13.9353 3.40402C13.3171 2.34924 12.4289 1.47828 11.3622 0.880771ZM6.14276 3.5402C6.9417 3.07967 7.87523 2.90934 8.78534 3.05804C9.69545 3.20674 10.5262 3.66533 11.137 4.3562C11.5485 4.82134 11.4342 5.48991 11.0113 5.87049C9.7679 6.99391 7.70733 8.44991 5.65933 8.99277C5.13818 9.12991 4.56676 8.87849 4.3759 8.34134C4.06349 7.46086 4.06914 6.49879 4.39187 5.62204C4.7146 4.74528 5.33405 4.00801 6.14276 3.5402Z",fill:"#6D28D9"})})),e.jsx("defs",{children:e.jsx("clipPath",C.__assign({id:"clip0_2637_70886"},{children:e.jsx("rect",{width:"16",height:"16",fill:"white"})}))})]}))};
|
|
2
|
+
//# sourceMappingURL=CognitiveDecisioning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CognitiveDecisioning.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|