@e-llm-studio/instant-learning 0.0.107 → 0.0.109
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/ILOTJ.js +1 -1
- 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.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/MinimizedThinkingSteps.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/TooltipComponent.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/TooltipComponent.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/@e-llm-studio/citation/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/citation/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
- 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-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/ILOTJ.js +1 -1
- 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.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/MinimizedThinkingSteps.js +1 -1
- package/dist/features/IL-OTJ/_components/TooltipComponent.js +2 -0
- package/dist/features/IL-OTJ/_components/TooltipComponent.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/@e-llm-studio/citation/dist/features/CitationRenderer/MarkdownRenderer.js +1 -1
- package/dist/node_modules/@e-llm-studio/citation/dist/features/CitationRenderer/MarkdownRenderer.js.map +1 -1
- 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-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/ILOTJ.d.ts +1 -0
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
- 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 -11
- 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.d.ts +3 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.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/MinimizedThinkingSteps.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/TooltipComponent.d.ts +8 -0
- package/dist/types/src/features/IL-OTJ/_components/TooltipComponent.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 +4 -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 +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.componentStyles="\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: 'Plus Jakarta Sans', sans-serif !important;\n }\n\n .form-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.78rem;\n border-bottom: 1px solid #e5e7eb;\n color: #0F172A;\n font-style: normal;\n font-weight: 500;\n line-height: 12px;\n position: sticky;\n top: 0;\n z-index: 10;\n }\n\n .form-header svg {\n cursor: pointer;\n transition: opacity 0.2s ease;\n }\n\n .form-header svg:hover {\n opacity: 0.7;\n }\n\n .il-popup-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n \n .sections-space {\n display: grid;\n gap: 1rem;\n margin-bottom: 2rem;\n }\n\n .section-wrapper {\n background-color: white;\n overflow: hidden;\n font-family: 'Plus Jakarta Sans', sans-serif;\n }\n\n .section-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n transition: all 150ms ease-in-out;\n background-color: white;\n }\n\n .section-header-title {\n display: flex;\n align-items: center;\n font-weight: 500;\n color: #19213D;\n transition: color 150ms ease-in-out;\n }\n\n .section-chevron {\n width: 24px;\n height: 24px;\n color: #19213D;\n transition: transform 300ms ease-in-out, color 300ms ease-in-out;\n }\n\n .section-chevron.open {\n transform: rotate(180deg);\n }\n\n .section-divider {\n border: none;\n border-top: 2px solid #e5e7eb;\n margin-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .section-content {\n animation: slideInFromTop 200ms ease-in-out;\n }\n\n .textarea-wrapper {\n padding: 1rem 0;\n }\n\n .textarea {\n width: 100%;\n padding: 12px;\n border: 1px solid #d1d5db;\n border-radius: 0.675rem;\n resize: none;\n font-size: 0.875rem;\n font-family: inherit;\n transition: border-color 150ms ease-in-out;\n }\n\n .textarea {\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* IE/Edge */\n }\n\n .textarea::-webkit-scrollbar {\n display: none; /* Chrome/Safari */\n }\n\n .condition-wrapper {\n display: flex;\n flex-direction: column;\n
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.componentStyles="\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: 'Plus Jakarta Sans', sans-serif !important;\n }\n\n .form-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.78rem;\n border-bottom: 1px solid #e5e7eb;\n color: #0F172A;\n font-style: normal;\n font-weight: 500;\n line-height: 12px;\n position: sticky;\n top: 0;\n z-index: 10;\n }\n\n .form-header svg {\n cursor: pointer;\n transition: opacity 0.2s ease;\n }\n\n .form-header svg:hover {\n opacity: 0.7;\n }\n\n .il-popup-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n \n .sections-space {\n display: grid;\n gap: 1rem;\n margin-bottom: 2rem;\n }\n\n .section-wrapper {\n background-color: white;\n overflow: hidden;\n font-family: 'Plus Jakarta Sans', sans-serif;\n }\n\n .section-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n transition: all 150ms ease-in-out;\n background-color: white;\n }\n\n .section-header-title {\n display: flex;\n align-items: center;\n font-weight: 500;\n color: #19213D;\n transition: color 150ms ease-in-out;\n }\n\n .section-chevron {\n width: 24px;\n height: 24px;\n color: #19213D;\n transition: transform 300ms ease-in-out, color 300ms ease-in-out;\n }\n\n .section-chevron.open {\n transform: rotate(180deg);\n }\n\n .section-divider {\n border: none;\n border-top: 2px solid #e5e7eb;\n margin-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n\n .section-content {\n animation: slideInFromTop 200ms ease-in-out;\n }\n\n .textarea-wrapper {\n padding: 1rem 0;\n }\n\n .textarea {\n width: 100%;\n padding: 12px;\n border: 1px solid #d1d5db;\n border-radius: 0.675rem;\n resize: none;\n font-size: 0.875rem;\n font-family: inherit;\n transition: border-color 150ms ease-in-out;\n }\n\n .textarea {\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* IE/Edge */\n }\n\n .textarea::-webkit-scrollbar {\n display: none; /* Chrome/Safari */\n }\n\n .condition-wrapper {\n display: flex;\n flex-direction: column;\n padding-top: 8px;\n padding-bottom: 16px;\n }\n\n .condition-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 8px 0px;\n background-color: white;\n border-radius: 0.675rem;\n transition: border-color 0.2s ease;\n margin: 0 0.5rem;\n }\n\n .condition-left {\n display: flex;\n align-items: flex-start;\n flex: 1;\n }\n\n .condition-index {\n font-size: 14px;\n color: #64748B;\n margin-right: 8px;\n min-width: 20px;\n padding-top: 2px;\n }\n\n .condition-text {\n flex: 1;\n border: none;\n font-size: 0.875rem;\n color: #1e293b;\n background: transparent;\n resize: none; \n overflow: hidden;\n line-height: 1.5;\n padding: 0;\n display: block;\n width: 100%;\n white-space: pre-wrap; \n word-wrap: break-word; \n overflow-wrap: break-word;\n }\n\n .condition-text:focus {\n outline: none;\n }\n\n .action-buttons {\n display: flex;\n gap: 4px;\n }\n\n .btn-icon {\n background: transparent !important;\n border: none;\n cursor: pointer;\n padding: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n transition: background-color 0.2s;\n }\n\n .btn-icon:hover {\n background-color: #f9fafb !important;\n }\n\n .btn-save { color: #22c55e; } /* Green Check */\n .btn-cancel { color: #ef4444; } /* Red Cross */\n .btn-edit { color: #64748B; } /* Grey Pencil */\n .btn-delete { color: #64748B; } /* Grey Trash */\n\n .btn-delete:hover { color: #ef4444; }\n\n .condition-add {\n display: flex;\n align-items: center;\n padding: 8px 0;\n cursor: pointer;\n color: #2563EB;\n width: fit-content;\n }\n\n .condition-remove-btn {\n background: none;\n border: none;\n cursor: pointer;\n color: #9ca3af;\n transition: color 200ms ease-in-out;\n padding: 0;\n display: flex;\n align-items: center;\n }\n\n .condition-remove-btn:hover {\n color: #ef4444;\n }\n\n .condition-add-icon {\n width: 20px;\n height: 20px;\n margin-right: 8px;\n }\n\n .condition-add-text {\n font-weight: 500;\n font-size: 0.875rem;\n }\n\n .scope-content {\n padding: 8px;\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n\n @media (min-width: 640px) {\n .scope-content {\n grid-template-columns: 1fr 1fr;\n }\n }\n\n .form-group {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .form-label {\n display: block;\n font-size: 16px;\n font-weight: 400;\n color: #64748B;\n margin-bottom: 4px;\n }\n\n .dropdown {\n width: 100%;\n max-width: fit-content;\n padding: 8px;\n border: 1px solid #64748B;\n color: #64748B;\n border-radius: 8px;\n background-color: white;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n transition: all 150ms ease-in-out;\n font-size: 0.875rem;\n }\n .checkbox-group {\n display: flex;\n margin-top: 8px;\n gap: 24px;\n align-items: center;\n }\n\n .checkbox-item {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n }\n\n .checkbox-input {\n width: 15px;\n height: 15px;\n cursor: pointer;\n accent-color: #2563eb;\n }\n\n .checkbox-label {\n font-size: 0.875rem;\n color: #374151;\n cursor: pointer;\n user-select: none;\n }\n\n .config-content {\n padding: 8px;\n }\n\n .config-content-grid {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px 0;\n }\n\n .separation-row-container {\n background: #F7F8FA99;\n border: 1px solid #F5F6F7;\n border-radius: 8px;\n padding: 10px 16px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .separation-header-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n }\n\n .separation-label {\n font-size: 16px;\n font-weight: 500;\n color: #19213D;\n }\n\n .separation-controls-row {\n display: flex;\n align-items: center;\n }\n\n .duration-input-wrapper {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .separation-input:disabled {\n background: transparent;\n border-color: transparent;\n color: #64748B;\n }\n\n .separation-unit {\n font-size: 16px;\n color: #64748B;\n }\n\n .toggle-switch {\n position: relative;\n display: inline-flex;\n height: 24px;\n width: 44px;\n flex-shrink: 0;\n cursor: pointer;\n border-radius: 9999px;\n border: 2px solid transparent;\n transition: background-color 200ms ease-in-out;\n background-color: #e5e7eb;\n appearance: none;\n padding: 0;\n }\n\n .toggle-switch.enabled {\n background-color: #2563eb;\n }\n\n .toggle-switch::after {\n content: '';\n position: absolute;\n pointer-events: none;\n display: inline-block;\n height: 20px;\n width: 20px;\n transform: translateX(2px);\n border-radius: 9999px;\n background-color: white;\n box-shadow: 0 0 0 0;\n transition: transform 200ms ease-in-out;\n }\n\n .toggle-switch.enabled::after {\n transform: translateX(22px);\n }\n\n .separation-input {\n width: 48px;\n text-align: center;\n padding: 4px;\n border: 1px solid #d1d5db;\n border-radius: 6px;\n font-size: 0.875rem;\n }\n\n .separation-unit {\n font-size: 0.875rem;\n color: #6b7280;\n }\n\n .code-toggle-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding-top: 12px;\n padding-bottom: 12px;\n }\n\n .config-section-divider {\n padding-top: 12px;\n }\n\n .save-button-container {\n background-color: white;\n max-width: fit-content;\n margin-left: auto;\n padding: 16px;\n }\n\n .save-button {\n width: 100%;\n background-color: #2563eb;\n color: white;\n padding: 8px;\n border-radius: 8px;\n border: none;\n cursor: pointer;\n transition: background-color 150ms ease-in-out;\n font-size: 0.875rem;\n }\n\n .save-button:hover {\n background-color: #1055e8;\n }\n\n .save-button:active {\n background-color: #2563eb;\n }\n\n .save-button:disabled {\n background-color: #93c5fd; \n cursor: not-allowed;\n }\n \n .traffic-manager-template {\n display: flex;\n flex-direction: column;\n gap: 16px;\n width: 100%;\n min-width: 0;\n }\n";
|
|
2
2
|
//# sourceMappingURL=ILPopup.styles.js.map
|
|
@@ -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"),s=require("../../../node_modules/rehype-raw/lib/index.js"),r=require("../../../node_modules/remark-gfm/index.js"),o=require("./CitationLink.js"),a=require("./CognitiveDecisioningCard.js"),l=function(i){var t=i.isOpen,s=i.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: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 s=new RegExp("<".concat(e,"[^>]*>([\\s\\S]*?)<\\/").concat(e,">"),"i"),r=t.match(s);return r?r[1].replace(/\\n/g,"\n"):null},m=i.useMemo(function(){return _("reason",f)},[f]),j=i.useMemo(function(){return _("gap",f)},[f]),y=i.useMemo(function(){return _("relevance_score",f)},[f]),v=i.useState(!0),b=v[0],k=v[1],C=i.useState(!0),w=C[0],M=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]),B=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,s=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:s.children}))]}))},a:function(i){i.node;var t=i.href,s=i.children,r=e.__rest(i,["node","href","children"]);if(!t)return n.jsx("a",e.__assign({},r,{children:s}));var a=t.match(/citationNumber=([^&]+)/),l=a?a[1]:null;if(l){var d=S(l);if(d)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:d,linkTitle:s,fontSize:12})}))}return n.jsx("a",e.__assign({href:t,target:"_blank",rel:"noopener noreferrer",style:{color:"#2563EB",textDecoration:"none"}},r,{children:s}))}}},[S]),F=i.useMemo(function(){return[s.default]},[]),I=i.useMemo(function(){return[r.default]},[]),z=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"}))]})),y&&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: ",y,"%"]}))]})),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:B,rehypePlugins:F,remarkPlugins:I},{children:z(m||"No reasoning provided.")}))}))]})),n.jsxs("div",{children:[n.jsxs("button",e.__assign({onClick:function(){return M(!w)},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:w})]})),w&&n.jsx("div",e.__assign({style:R},{children:n.jsx(t.ReactMarkdown,e.__assign({components:B,rehypePlugins:F,remarkPlugins:I},{children:z(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"),i=require("react/jsx-runtime"),n=require("../CognitiveDecisioningCard.js"),t=require("../CitationLink.js"),r=require("../../helpers/utils.js");exports.MarkdownDivRenderer=function(t){var a=t.className,s=t.children,o=t.openCardIds,c=t.citations,l=t.handleToggleState,d=e.__rest(t,["className","children","openCardIds","citations","handleToggleState"]);if("cognitive-card-trigger"===a){var u=r.extractTextFromChildren(s),g=d["data-card-id"],h=o.has(g);return i.jsx("span",e.__assign({style:{display:"inline"}},{children:i.jsx(n.CognitiveDecisioningCard,{citation:"<ai_reasoning>".concat(u,"</ai_reasoning>"),citations:c,isOpen:h,onToggle:function(){return l(g,!h,"card")}})}))}return i.jsx("div",e.__assign({className:a},d,{children:s}))},exports.MarkdownLinkRenderer=function(n){var r=n.href,a=n.children,s=n.chatSize,o=n.openCitationIds,c=n.getCitationByNumber,l=n.handleToggleState,d=e.__rest(n,["href","children","chatSize","openCitationIds","getCitationByNumber","handleToggleState"]);if(!r)return i.jsx("a",e.__assign({},d,{children:a}));var u=r.match(/citationNumber=([^&]+)/),g=u?u[1]:null,h=r.match(/uiUniqueId=([^&]+)/),_=h?h[1]:null;if(g){var p=c(g);if(p){var f=_?"citation-ui-".concat(_):"citation-".concat(p.id||g),m=o.has(f);return i.jsx(t.default,{citation:p,linkTitle:a,chatSize:s,isOpen:m,onToggle:function(){return l(f,!m,"citation")}},f)}}return i.jsx("a",e.__assign({href:r,target:"_blank",rel:"noopener noreferrer",className:"md-link inline-flex items-center gap-1 text-purple-700 hover:underline"},d,{children:a}))};
|
|
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"),s=require("./CustomComponents.js"),o=require("../../helpers/utils.js"),c=require("./MarkdownElements.js");exports.default=function(l){var u=l.index,d=l.content;l.messages;var m=l.handleStream,f=l.scrollToBottom,g=l.isLastMessage,h=l.onSave,p=l.citations,v=l.setChatSize,_=l.chatSize,b=r.useState(d),x=b[0],S=b[1],k=r.useState([]),w=k[0],y=k[1],j=r.useState(!1),C=j[0],T=j[1],M=r.useState(!1),B=M[0],L=M[1],z=r.useState(new Set),I=z[0],q=z[1],W=r.useState(new Set),D=W[0],N=W[1],A=r.useRef({handleStream:m,onSave:h,selectedTiers:w,tiersSubmitted:B,citations:p,openCardIds:I,openCitationIds:D,chatSize:_,isLastMessage:g,scrollToBottom:f});A.current={handleStream:m,onSave:h,selectedTiers:w,tiersSubmitted:B,citations:p,openCardIds:I,openCitationIds:D,chatSize:_,isLastMessage:g,scrollToBottom:f};var E=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?q(function(e){return t(e)}):N(function(e){return t(e)})},[]),R=r.useCallback(function(e){var n=A.current.citations;return n&&n.find(function(n){return n.customMetaData.citation_number&&"Cognitive Decisioning"!==n.customMetaData.citation_title&&String(n.customMetaData.citation_number)===String(e)})||null},[]),P=r.useCallback(function(e){var n=A.current,r=n.handleStream,t=n.onSave,i=e.trim();"save this learning"===i.toLowerCase()&&t?t():r&&r(new KeyboardEvent("keydown",{key:"Enter"}),!1,i),S(function(e){return e.replace(/<button[^>]*class=["']clickable-button["'][^>]*>(.*?)<\/button>/gi,function(e,n){var r=n.trim();return r===i?'<span style="background-color: #2661eb; color: #ffffff; padding: 4px 8px; border-radius: 4px; font-weight: 400; display: inline-block; margin: 2px;">✓ '.concat(r,"</span>"):""})})},[]),F=r.useCallback(function(n,r){var t=A.current.scrollToBottom,i=Array.isArray(n)?n[0].trim():n.trim();T(!0),y(function(n){var t=e.__spreadArray([],n,!0);if(["both tiers","all tiers"].includes(i.toLowerCase()))t=r?["Both Tiers","Tier 1","Tier 2"]:[];else{r?t.includes(i)||t.push(i):t=t.filter(function(e){return e!==i});var a=t.includes("Tier 1"),s=t.includes("Tier 2");a&&s?t.includes("Both Tiers")||t.push("Both Tiers"):t=t.filter(function(e){return!["Both Tiers","All tiers"].includes(e)})}return t.filter(function(e,n){return t.indexOf(e)===n})}),null==t||t()},[]),H=r.useCallback(function(){var e=A.current.handleStream,n=w,r=n.join(" and ");n.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})&&(r="Both Tiers"),e(new KeyboardEvent("keydown",{key:"Enter"}),!1,"".concat(r)),L(!0),T(!1),S(function(e){return e.replace(/<checkbox\s+class=["']clickable-box["'][^>]*>([\s\S]*?)<\/checkbox>/gi,function(e,r){var t=r.trim();return n.includes(t)?e:""})})},[w]),J=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(s.RuleDisplay,{content:o.extractTextFromChildren(t.children)})},button:function(r){var t=r.node,i=r.className,a=e.__rest(r,["node","className"]),o=A.current.isLastMessage;return n.jsx(s.ActionableButton,e.__assign({node:t,className:i||a.class,handleStream:A.current.handleStream,onAction:P,disabled:!o},a))},checkbox:function(r){var t=r.node,i=r.className,a=e.__rest(r,["node","className"]),o=A.current,c=o.selectedTiers,l=o.tiersSubmitted,u=o.isLastMessage;return n.jsx(s.ActionableCheckbox,e.__assign({node:t,className:i||a.class,selectedItems:c,onToggle:F,isSubmitted:l,disabled:!u},a))},a:function(r){var t=A.current,i=t.chatSize,a=t.openCitationIds;return n.jsx(c.MarkdownLinkRenderer,e.__assign({},r,{chatSize:i,openCitationIds:a,getCitationByNumber:R,handleToggleState:E}))},div:function(r){var t=A.current,i=t.openCardIds,a=t.citations;return n.jsx(c.MarkdownDivRenderer,e.__assign({},r,{openCardIds:i,citations:a,handleToggleState:E}))}}},[P,F,R,E]);r.useEffect(function(){B||S(d)},[d,B]);var K=r.useRef(0);r.useEffect(function(){var e=I.size+D.size;e>0&&0===K.current?null==v||v(50):0===e&&K.current>0&&(null==v||v(40)),K.current=e},[I,D,v]);var O=r.useMemo(function(){return[i.default]},[]),U=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:J,rehypePlugins:O,remarkPlugins:U},{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,"\\)")});return t=t.replace(/</g,"<").replace(/>/g,">"),n++,'<div class="cognitive-card-trigger" data-card-id="card-'.concat(n,'">').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 s=a.includes("?")?"&":"?";return"".concat(n).concat(a).concat(s,"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==w?void 0:w.length)>0&&C&&!B?n.jsxs("div",e.__assign({style:{marginTop:"10px"}},{children:[n.jsxs("span",{children:["It looks like you've chosen ",w&&0!==w.length?w.some(function(e){return"both tiers"===e.toLowerCase()||"all tiers"===e.toLowerCase()})?"Both Tiers":w.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:H},{children:"Yes"}))})]})):null}))}))]})};
|
|
2
|
+
//# sourceMappingURL=MessageRendering.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageRendering.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +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"),r=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/tslib/tslib.es6.mjs.js"),s=require("react/jsx-runtime"),r=require("react"),i=require("../../../node_modules/react-markdown/lib/react-markdown.js"),n=require("./_svg/ArrowDown.js"),t=require("./_svg/CompleteIconGreen.js"),a=require("./_svg/ArrowIconBlue.js"),o=function(){return s.jsxs("svg",e.__assign({version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 16 16",width:"20",height:"20"},{children:[s.jsxs("g",{children:[s.jsx("path",{fill:"#CEE8FA",points:"220.201,259.605 220.201,294.802 235.573,294.802 235.573,323.208 276.428,323.208\n\t\t276.428,294.802 291.8,294.802 291.8,259.605 \t",d:"M6.451 7.606v1.031h0.45v0.832h1.197v-0.832h0.45v-1.031Z"}),s.jsx("path",{fill:"#CEE8FA",cx:"256.006",cy:"457.747",r:"40.059",d:"M8.674 13.411a1.174 1.174 0 0 1 -1.174 1.174 1.174 1.174 0 0 1 -1.174 -1.174 1.174 1.174 0 0 1 2.347 0"}),s.jsx("path",{x:"389.578",y:"420.98",fill:"#CEE8FA",width:"87.028",height:"73.549",d:"M11.413 12.333h2.55v2.155H11.413z"}),s.jsx("path",{x:"35.397",y:"420.98",fill:"#CEE8FA",width:"87.028",height:"73.549",d:"M1.037 12.333h2.55v2.155H1.037z"})]}),s.jsxs("g",{children:[s.jsx("path",{fill:"#2D527C",d:"M7.916 11.877v-0.759h4.772a0.416 0.416 0 0 0 0 -0.831H7.916v-0.402h0.183a0.415 0.415 0 0 0 0.416 -0.416v-0.417h0.035a0.415 0.415 0 0 0 0.416 -0.416V6.926a0.415 0.415 0 1 0 -0.831 0v0.264h-1.266v-0.264a0.415 0.415 0 0 0 -0.285 -0.395 2.918 2.918 0 0 1 -2.005 -2.776C4.577 2.143 5.888 0.831 7.5 0.831s2.923 1.311 2.923 2.923c0 0.698 -0.25 1.374 -0.704 1.902a0.416 0.416 0 0 0 0.631 0.541 3.755 3.755 0 0 0 0.904 -2.444C11.255 1.684 9.57 0 7.5 0S3.745 1.684 3.745 3.755a3.748 3.748 0 0 0 2.29 3.458v1.424a0.415 0.415 0 0 0 0.416 0.416h0.035v0.417a0.415 0.415 0 0 0 0.416 0.416h0.183v0.402H2.312a0.415 0.415 0 0 0 -0.416 0.416v1.215H1.037a0.415 0.415 0 0 0 -0.416 0.416v2.155a0.415 0.415 0 0 0 0.416 0.416h2.55a0.415 0.415 0 0 0 0.416 -0.416V12.333a0.415 0.415 0 0 0 -0.416 -0.416h-0.859v-0.799h4.357v0.759c-0.675 0.183 -1.174 0.801 -1.174 1.534C5.911 14.287 6.624 15 7.5 15s1.589 -0.713 1.589 -1.589c0 -0.732 -0.498 -1.35 -1.174 -1.534m-1.049 -3.656v-0.2h1.266v0.2h-0.035a0.415 0.415 0 0 0 -0.416 0.416v0.417h-0.366v-0.417a0.415 0.415 0 0 0 -0.416 -0.416zM3.171 14.072H1.453v-1.323H3.171zM7.5 14.169c-0.418 0 -0.758 -0.34 -0.758 -0.758s0.34 -0.758 0.758 -0.758 0.758 0.34 0.758 0.758 -0.34 0.758 -0.758 0.758"}),s.jsx("path",{fill:"#2D527C",d:"M13.963 11.918H11.413a0.415 0.415 0 0 0 -0.416 0.416v2.155a0.415 0.415 0 0 0 0.416 0.416h2.55a0.415 0.415 0 0 0 0.416 -0.416V12.333a0.415 0.415 0 0 0 -0.416 -0.416m-0.416 2.155H11.829v-1.323h1.718z"})]})]}))};exports.default=function(d){var l=d.orchestratorAndAgentsMessages,c=d.isStreamEnd,h=d.isCurrentMessage,f=d.name,m=d.ThinkingBulbIconComponent,u=r.useState(!0),g=u[0],x=u[1],p=r.useState(!1),_=p[0],v=p[1],y=r.useState([]),j=y[0],w=y[1],b=r.useState([]),C=b[0],S=b[1],k=r.useRef([]);r.useEffect(function(){h&&(c&&!_?x(!1):c||x(!0))},[c,_,h]);return s.jsxs("div",e.__assign({style:{border:"1px solid #d1d5db",borderRadius:"0.5rem",fontFamily:"Plus Jakarta Sans, sans-serif",maxWidth:"100%",boxSizing:"border-box",overflow:"hidden"}},{children:[s.jsxs("div",e.__assign({onClick:function(){x(!g),v(!0)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.75rem 1rem",backgroundColor:"#f3f4f6",borderRadius:"0.5rem",cursor:"pointer"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"0.5rem",minWidth:0}},{children:[s.jsx(o,{}),s.jsx("div",e.__assign({style:{fontSize:"0.9rem",fontWeight:600,color:"hcdemo"===f?"#2c83bd":"#385390"}},{children:"Watch Me Learn"}))]})),s.jsx("div",e.__assign({style:{width:"0.75rem",height:"0.75rem",transform:g?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center",flexShrink:0}},{children:s.jsx(n.default,{})}))]})),s.jsx("div",e.__assign({style:{overflow:"hidden",transition:"all 0.5s ease-in-out",borderRadius:"0.5rem",maxHeight:g?"500px":"0",opacity:g?1:0}},{children:s.jsx("div",e.__assign({style:{backgroundColor:"#fff",padding:"0.5rem 0",maxHeight:"400px",overflowY:"auto",overflowX:"hidden"}},{children:l.map(function(r,o){return r.responsedata?s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"1rem",fontSize:"0.875rem",color:"#374151",padding:"0 1.5rem",width:"100%",boxSizing:"border-box"}},{children:s.jsxs("div",e.__assign({style:{display:"flex",gap:"0.5rem",cursor:"pointer",width:"100%"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.5rem",flexShrink:0}},{children:[r.finalResponseStatus?m:s.jsx("div",e.__assign({style:{width:"1.25rem",height:"1.25rem"}},{children:s.jsx(t.default,{})})),o!==l.length-1&&s.jsx("div",{style:{border:"1px solid #e5e7eb",height:"100%",width:"1px"}})]})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",flex:1,minWidth:0,justifyContent:"space-between",marginBottom:"0.5rem",borderBottom:j.includes(o)||o===l.length-1?"none":"1.5px solid #e5e7eb"}},{children:[s.jsxs("div",e.__assign({onClick:function(s){s.preventDefault(),function(s){w(function(r){return r.includes(s)?r.filter(function(e){return e!==s}):e.__spreadArray(e.__spreadArray([],r,!0),[s],!1)})}(o)},style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,gap:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.5rem"}},{children:[s.jsx("div",e.__assign({style:{color:"hcdemo"===f?"#2c83bd":"#385390",fontWeight:600}},{children:r.header_message})),s.jsx("div",e.__assign({style:{width:"0.75rem",height:"0.75rem",transform:j.includes(o)?"rotate(180deg)":"rotate(0)",transition:"transform 300ms",display:"flex",alignItems:"center"}},{children:s.jsx(n.default,{})}))]})),(j.includes(o)||r.finalResponseStatus)&&s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"0.25rem"}},{children:[s.jsx("div",e.__assign({ref:function(e){return k.current[o]=e},style:{borderRadius:"0.375rem",maxHeight:!r.finalResponseStatus||C.includes(o)?"none":"7rem",overflowY:!r.finalResponseStatus||C.includes(o)?"visible":"scroll",backgroundColor:"#f1f5f9",padding:"0.5rem",boxSizing:"border-box",overflowX:"hidden",overflowWrap:"anywhere"}},{children:s.jsx(i.ReactMarkdown,e.__assign({components:{p:function(r){r.node;var i=e.__rest(r,["node"]);return s.jsx("p",e.__assign({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",marginBottom:"1rem"}},{children:i.children}))},code:function(r){r.node;var i=e.__rest(r,["node"]);return s.jsx("code",e.__assign({style:{wordBreak:"break-word",fontSize:"0.9rem",lineHeight:"1.5",fontFamily:"monospace"}},{children:i.children}))}}},{children:r.responsedata}))})),r.finalResponseStatus&&!C.includes(o)&&s.jsx("div",e.__assign({style:{width:"100%",display:"flex",justifyContent:"center"}},{children:s.jsxs("div",e.__assign({onClick:function(){return function(s){S(function(r){return r.includes(s)?r.filter(function(e){return e!==s}):e.__spreadArray(e.__spreadArray([],r,!0),[s],!1)})}(o)},style:{fontWeight:500,fontSize:"0.75rem",padding:"0.25rem 0.75rem",color:"#385390",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.25rem",borderRadius:"0.375rem",marginBottom:"0.25rem"}},{children:["View more",s.jsx("div",e.__assign({style:{width:"0.75rem",height:"0.75rem",transform:"rotate(90deg)"}},{children:s.jsx(a.default,{})}))]}))}))]}))]}))]}))}),o):null})}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=MinimizedThinkingSteps.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"),s=require("react/jsx-runtime"),r=require("../../../node_modules/@material-ui/core/esm/Tooltip/Tooltip.js");require("../../../node_modules/@material-ui/utils/esm/elementAcceptingRef.js"),require("../../../node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js"),require("../../../_virtual/index28.js"),require("../../../node_modules/@material-ui/utils/esm/ponyfillGlobal.js"),require("../../../node_modules/@material-ui/utils/esm/refType.js"),require("../../../node_modules/@material-ui/core/esm/styles/createPalette.js"),require("../../../node_modules/@material-ui/system/esm/borders.js"),require("../../../_virtual/index3.js"),require("../../../node_modules/@material-ui/system/esm/display.js"),require("../../../node_modules/@material-ui/system/esm/flexbox.js"),require("../../../node_modules/@material-ui/system/esm/grid.js"),require("../../../node_modules/@material-ui/system/esm/palette.js"),require("../../../node_modules/@material-ui/system/esm/positions.js"),require("../../../node_modules/@material-ui/system/esm/shadows.js"),require("../../../node_modules/@material-ui/system/esm/sizing.js"),require("../../../node_modules/@material-ui/system/esm/spacing.js"),require("../../../node_modules/@material-ui/system/esm/responsivePropType.js"),require("../../../node_modules/@material-ui/system/esm/typography.js"),require("../../../node_modules/@material-ui/styles/esm/index.js");var i=require("../../../node_modules/@material-ui/core/esm/styles/makeStyles.js");require("../../../node_modules/@material-ui/core/esm/styles/defaultTheme.js"),require("react"),require("../../../node_modules/@material-ui/core/esm/styles/withTheme.js");var t=i.default(function(){return{tooltip:{fontFamily:"Plus Jakarta Sans, sans-serif",backgroundColor:"#555",color:"#fff",fontSize:12,padding:"5px 8px",borderRadius:6,maxWidth:250,textAlign:"center",whiteSpace:"normal",wordWrap:"break-word",lineHeight:1.4},arrow:{color:"#555"}}});exports.default=function(i){var l=i.description,o=i.children,u=t();return s.jsx(r.default,e.__assign({title:s.jsx("span",{children:l}),classes:{tooltip:u.tooltip,arrow:u.arrow},arrow:!0,placement:"top"},{children:s.jsx("span",e.__assign({style:{display:"inline-block"}},{children:o}))}))};
|
|
2
|
+
//# sourceMappingURL=TooltipComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooltipComponent.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":""}
|