@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.
Files changed (169) hide show
  1. package/dist/cjs/features/IL-OTJ/_components/ChatComponent.js +1 -1
  2. package/dist/cjs/features/IL-OTJ/_components/CitationLink.js +1 -1
  3. package/dist/cjs/features/IL-OTJ/_components/CognitiveDecisioningCard.js +1 -1
  4. package/dist/cjs/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
  5. package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
  6. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/CustomComponents.js +2 -0
  7. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/CustomComponents.js.map +1 -0
  8. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MarkdownElements.js +2 -0
  9. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MarkdownElements.js.map +1 -0
  10. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +2 -0
  11. package/dist/cjs/features/IL-OTJ/_components/MessageRendering/MessageRendering.js.map +1 -0
  12. package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronDown.js +2 -0
  13. package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronDown.js.map +1 -0
  14. package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronUp.js +2 -0
  15. package/dist/cjs/features/IL-OTJ/_components/_svg/ChevronUp.js.map +1 -0
  16. package/dist/cjs/features/IL-OTJ/_components/_svg/CognitiveDecisioning.js +2 -0
  17. package/dist/cjs/features/IL-OTJ/_components/_svg/CognitiveDecisioning.js.map +1 -0
  18. package/dist/cjs/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
  19. package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
  20. package/dist/cjs/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
  21. package/dist/cjs/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
  22. package/dist/cjs/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
  23. package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
  24. package/dist/cjs/features/IL-OTJ/helpers/utils.js +1 -1
  25. package/dist/cjs/features/InstantLearning/_components/TooltipComponent.js +2 -0
  26. package/dist/cjs/features/InstantLearning/_components/TooltipComponent.js.map +1 -0
  27. package/dist/cjs/index.js +1 -1
  28. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +2 -0
  29. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -0
  30. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -0
  31. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -0
  32. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +2 -0
  33. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -0
  34. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +2 -0
  35. package/dist/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -0
  36. package/dist/cjs/node_modules/@material-ui/core/esm/Grow/Grow.js +2 -0
  37. package/dist/cjs/node_modules/@material-ui/core/esm/Grow/Grow.js.map +1 -0
  38. package/dist/cjs/node_modules/@material-ui/core/esm/Popper/Popper.js +2 -0
  39. package/dist/cjs/node_modules/@material-ui/core/esm/Popper/Popper.js.map +1 -0
  40. package/dist/cjs/node_modules/@material-ui/core/esm/Portal/Portal.js +2 -0
  41. package/dist/cjs/node_modules/@material-ui/core/esm/Portal/Portal.js.map +1 -0
  42. package/dist/cjs/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js +2 -0
  43. package/dist/cjs/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js.map +1 -0
  44. package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
  45. package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js.map +1 -1
  46. package/dist/cjs/node_modules/@material-ui/core/esm/styles/makeStyles.js +2 -0
  47. package/dist/cjs/node_modules/@material-ui/core/esm/styles/makeStyles.js.map +1 -0
  48. package/dist/cjs/node_modules/@material-ui/core/esm/styles/useTheme.js +2 -0
  49. package/dist/cjs/node_modules/@material-ui/core/esm/styles/useTheme.js.map +1 -0
  50. package/dist/cjs/node_modules/@material-ui/core/esm/styles/withTheme.js +2 -0
  51. package/dist/cjs/node_modules/@material-ui/core/esm/styles/withTheme.js.map +1 -0
  52. package/dist/cjs/node_modules/@material-ui/core/esm/transitions/utils.js +2 -0
  53. package/dist/cjs/node_modules/@material-ui/core/esm/transitions/utils.js.map +1 -0
  54. package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js +1 -1
  55. package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js.map +1 -1
  56. package/dist/cjs/node_modules/@material-ui/utils/esm/HTMLElementType.js +2 -0
  57. package/dist/cjs/node_modules/@material-ui/utils/esm/HTMLElementType.js.map +1 -0
  58. package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js +1 -1
  59. package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js.map +1 -1
  60. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/brain.js +1 -1
  61. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/brain.js.map +1 -1
  62. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-right.js +1 -1
  63. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
  64. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-up.js +1 -1
  65. package/dist/cjs/node_modules/lucide-react/dist/esm/icons/chevron-up.js.map +1 -1
  66. package/dist/cjs/node_modules/popper.js/dist/esm/popper.js +27 -0
  67. package/dist/cjs/node_modules/popper.js/dist/esm/popper.js.map +1 -0
  68. package/dist/features/IL-OTJ/_components/ChatComponent.js +1 -1
  69. package/dist/features/IL-OTJ/_components/CitationLink.js +1 -1
  70. package/dist/features/IL-OTJ/_components/CognitiveDecisioningCard.js +1 -1
  71. package/dist/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
  72. package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
  73. package/dist/features/IL-OTJ/_components/MessageRendering/CustomComponents.js +2 -0
  74. package/dist/features/IL-OTJ/_components/MessageRendering/CustomComponents.js.map +1 -0
  75. package/dist/features/IL-OTJ/_components/MessageRendering/MarkdownElements.js +2 -0
  76. package/dist/features/IL-OTJ/_components/MessageRendering/MarkdownElements.js.map +1 -0
  77. package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js +2 -0
  78. package/dist/features/IL-OTJ/_components/MessageRendering/MessageRendering.js.map +1 -0
  79. package/dist/features/IL-OTJ/_components/_svg/ChevronDown.js +2 -0
  80. package/dist/features/IL-OTJ/_components/_svg/ChevronDown.js.map +1 -0
  81. package/dist/features/IL-OTJ/_components/_svg/ChevronUp.js +2 -0
  82. package/dist/features/IL-OTJ/_components/_svg/ChevronUp.js.map +1 -0
  83. package/dist/features/IL-OTJ/_components/_svg/CognitiveDecisioning.js +2 -0
  84. package/dist/features/IL-OTJ/_components/_svg/CognitiveDecisioning.js.map +1 -0
  85. package/dist/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
  86. package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
  87. package/dist/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.js +1 -1
  88. package/dist/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
  89. package/dist/features/IL-OTJ/_components/organisms/TextSection/TextSection.js +1 -1
  90. package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.js +1 -1
  91. package/dist/features/IL-OTJ/helpers/utils.js +1 -1
  92. package/dist/features/InstantLearning/_components/TooltipComponent.js +2 -0
  93. package/dist/features/InstantLearning/_components/TooltipComponent.js.map +1 -0
  94. package/dist/index.js +1 -1
  95. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +2 -0
  96. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -0
  97. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +2 -0
  98. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -0
  99. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +2 -0
  100. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -0
  101. package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +2 -0
  102. package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -0
  103. package/dist/node_modules/@material-ui/core/esm/Grow/Grow.js +2 -0
  104. package/dist/node_modules/@material-ui/core/esm/Grow/Grow.js.map +1 -0
  105. package/dist/node_modules/@material-ui/core/esm/Popper/Popper.js +2 -0
  106. package/dist/node_modules/@material-ui/core/esm/Popper/Popper.js.map +1 -0
  107. package/dist/node_modules/@material-ui/core/esm/Portal/Portal.js +2 -0
  108. package/dist/node_modules/@material-ui/core/esm/Portal/Portal.js.map +1 -0
  109. package/dist/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js +2 -0
  110. package/dist/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js.map +1 -0
  111. package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
  112. package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js.map +1 -1
  113. package/dist/node_modules/@material-ui/core/esm/styles/makeStyles.js +2 -0
  114. package/dist/node_modules/@material-ui/core/esm/styles/makeStyles.js.map +1 -0
  115. package/dist/node_modules/@material-ui/core/esm/styles/useTheme.js +2 -0
  116. package/dist/node_modules/@material-ui/core/esm/styles/useTheme.js.map +1 -0
  117. package/dist/node_modules/@material-ui/core/esm/styles/withTheme.js +2 -0
  118. package/dist/node_modules/@material-ui/core/esm/styles/withTheme.js.map +1 -0
  119. package/dist/node_modules/@material-ui/core/esm/transitions/utils.js +2 -0
  120. package/dist/node_modules/@material-ui/core/esm/transitions/utils.js.map +1 -0
  121. package/dist/node_modules/@material-ui/styles/esm/withStyles/withStyles.js.map +1 -1
  122. package/dist/node_modules/@material-ui/utils/esm/HTMLElementType.js +2 -0
  123. package/dist/node_modules/@material-ui/utils/esm/HTMLElementType.js.map +1 -0
  124. package/dist/node_modules/@material-ui/utils/esm/refType.js +1 -1
  125. package/dist/node_modules/@material-ui/utils/esm/refType.js.map +1 -1
  126. package/dist/node_modules/lucide-react/dist/esm/icons/brain.js +1 -1
  127. package/dist/node_modules/lucide-react/dist/esm/icons/brain.js.map +1 -1
  128. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +1 -1
  129. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
  130. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +1 -1
  131. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js.map +1 -1
  132. package/dist/node_modules/popper.js/dist/esm/popper.js +26 -0
  133. package/dist/node_modules/popper.js/dist/esm/popper.js.map +1 -0
  134. package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
  135. package/dist/types/src/features/IL-OTJ/_components/ChatComponent.d.ts.map +1 -1
  136. package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts +6 -0
  137. package/dist/types/src/features/IL-OTJ/_components/CitationLink.d.ts.map +1 -1
  138. package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts +1 -0
  139. package/dist/types/src/features/IL-OTJ/_components/CognitiveDecisioningCard.d.ts.map +1 -1
  140. package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts +1 -1
  141. package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts.map +1 -1
  142. package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts +2 -1
  143. package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts.map +1 -1
  144. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/CustomComponents.d.ts +10 -0
  145. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/CustomComponents.d.ts.map +1 -0
  146. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MarkdownElements.d.ts +22 -0
  147. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MarkdownElements.d.ts.map +1 -0
  148. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts +14 -0
  149. package/dist/types/src/features/IL-OTJ/_components/MessageRendering/MessageRendering.d.ts.map +1 -0
  150. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronDown.d.ts +3 -0
  151. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronDown.d.ts.map +1 -0
  152. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronUp.d.ts +3 -0
  153. package/dist/types/src/features/IL-OTJ/_components/_svg/ChevronUp.d.ts.map +1 -0
  154. package/dist/types/src/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts +3 -0
  155. package/dist/types/src/features/IL-OTJ/_components/_svg/CognitiveDecisioning.d.ts.map +1 -0
  156. package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts +8 -2
  157. package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts.map +1 -1
  158. package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts +5 -1
  159. package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.d.ts.map +1 -1
  160. package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts +1 -1
  161. package/dist/types/src/features/IL-OTJ/_components/organisms/ConditionSection/ConditionSection.d.ts.map +1 -1
  162. package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts +5 -1
  163. package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts.map +1 -1
  164. package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts +1 -1
  165. package/dist/types/src/features/IL-OTJ/_components/organisms/TextSection/TextSection.d.ts.map +1 -1
  166. package/dist/types/src/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.d.ts.map +1 -1
  167. package/dist/types/src/features/IL-OTJ/helpers/utils.d.ts +1 -0
  168. package/dist/types/src/features/IL-OTJ/helpers/utils.d.ts.map +1 -1
  169. 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"),t=require("react/jsx-runtime"),r=require("../../molecules/Sections/SectionWrapper.js"),s=require("../../atoms/Textarea/Textarea.js");exports.TextSection=function(i){var a=i.rows,l=i.value,n=i.onChange,o=i.placeholder,c=i.title,u=i.isHighlighted,d=e.__rest(i,["rows","value","onChange","placeholder","title","isHighlighted"]),h=t.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"}},{children:t.jsx("span",{children:c})}));return t.jsx(r.SectionWrapper,e.__assign({},d,{title:h},{children:t.jsx("div",e.__assign({className:"textarea-wrapper"},{children:t.jsx(s.Textarea,{rows:a,placeholder:o,value:l,onChange:function(e){return n(e.target.value)},isHighlighted:u})}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),i=require("react/jsx-runtime"),t=require("../../molecules/Sections/SectionWrapper.js"),s=require("../../atoms/Textarea/Textarea.js");exports.TextSection=function(o){var n=o.rows,r=o.value,l=o.onChange,a=o.placeholder,c=o.title,p=o.isHighlighted,g=o.isOpen,h=o.showCognitiveIcon,u=o.onToggle,d=o.tooltipDescription,x=e.__rest(o,["rows","value","onChange","placeholder","title","isHighlighted","isOpen","showCognitiveIcon","onToggle","tooltipDescription"]),j=i.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"}},{children:i.jsx("span",{children:c})}));return i.jsx(t.SectionWrapper,e.__assign({},x,{title:j},{children:i.jsx("div",e.__assign({className:"textarea-wrapper"},{children:i.jsx(s.Textarea,{rows:n,placeholder:a,value:r,onChange:function(e){return l(e.target.value)},isHighlighted:p,isOpen:g,onToggle:u,showCognitiveIcon:h,tooltipDescription:d})}))}))};
2
2
  //# sourceMappingURL=TextSection.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),e=require("react/jsx-runtime"),t=require("../../InputDataReasoningCard.js"),n=require("../../organisms/ConditionSection/ConditionSection.js"),o=require("../../organisms/ConfigSection/ConfigSection.js"),s=require("../../organisms/ScopeSection/ScopeSection.js"),a=require("../../organisms/TextSection/TextSection.js");exports.CreateRule=function(l){var r,d,c=l.state,p=l.handlers,h=l.uiState,u=(null==h?void 0:h.highlights)||{},g=function(i){return i&&0!==i.length?"".concat(i.length," condition").concat(i.length>1?"s":""):"Empty"},C={marginTop:"-20px",marginBottom:"24px",position:"relative",zIndex:1},f={marginTop:"-8px"};return e.jsxs("div",i.__assign({className:"traffic-manager-template"},{children:[e.jsx(a.TextSection,i.__assign({id:"rule-title",title:"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:c.ruleTitle,onChange:p.setRuleTitle,isHighlighted:u.ruleTitle},h)),c.citation.ruleTitle&&e.jsx("div",i.__assign({style:C},{children:e.jsx(t.InputDataReasoningCard,{citation:c.citation.ruleTitle,citations:c.citations,fieldName:"Rule Title",fieldValue:c.ruleTitle||"Current Title"})})),e.jsx(a.TextSection,i.__assign({id:"rule-description",title:"Rule Description",rows:4,placeholder:"Explain the rule behaviour",required:!0,value:c.ruleDescription,onChange:p.setRuleDescription,isHighlighted:u.ruleDescription},h)),c.citation.ruleDescription&&e.jsx("div",i.__assign({style:C},{children:e.jsx(t.InputDataReasoningCard,{citation:c.citation.ruleDescription,citations:c.citations,fieldName:"Rule Description",fieldValue:c.ruleDescription||"Current Description"})})),e.jsx(s.ScopeSection,i.__assign({id:"scope",required:!0,scopeData:c.scopeData,onScopeChange:p.onScopeChange,tierLabel:"Where should this rule apply?",stationLabel:"Which rule set should this rule belong to?",highlights:null==h?void 0:h.highlights},h)),c.citation.scopeData&&e.jsx("div",i.__assign({style:C},{children:e.jsx(t.InputDataReasoningCard,{citation:c.citation.scopeData,citations:c.citations,fieldName:"Scope",fieldValue:(null===(d=null===(r=c.scopeData)||void 0===r?void 0:r.tiers)||void 0===d?void 0:d.join(", "))||"Selected Tiers"})})),e.jsx(n.ConditionSection,i.__assign({id:"when-to-apply",title:"When to apply",required:!0,dividerRequired:!0,conditions:c.whenToApplyConditions,onAdd:p.addWhenToApply,onRemove:p.removeWhenToApply,onEdit:p.editWhenToApply,isHighlighted:u.wta,highlightedIds:null==h?void 0:h.highlightedIds,footer:c.citation.whenToApply&&e.jsx("div",i.__assign({style:f},{children:e.jsx(t.InputDataReasoningCard,{citation:c.citation.whenToApply,citations:c.citations,fieldName:"When to apply",fieldValue:g(c.whenToApplyConditions)})}))},h)),e.jsx(n.ConditionSection,i.__assign({id:"when-not-to-apply",title:"When NOT to apply",required:!1,dividerRequired:!0,conditions:c.whenNotToApplyConditions,onAdd:p.addWhenNotToApply,onRemove:p.removeWhenNotToApply,onEdit:p.editWhenNotToApply,isHighlighted:u.wnta,highlightedIds:null==h?void 0:h.highlightedIds,footer:c.citation.whenNotToApply&&e.jsx("div",i.__assign({style:f},{children:e.jsx(t.InputDataReasoningCard,{citation:c.citation.whenNotToApply,citations:c.citations,fieldName:"When Not to apply",fieldValue:g(c.whenNotToApplyConditions)})}))},h)),e.jsx(o.ConfigSection,i.__assign({id:"config",title:"Configuration",required:!0,onConfigChange:p.onConfigChange,highlights:null==h?void 0:h.highlights},h)),c.citation.configData&&e.jsx("div",i.__assign({style:C},{children:e.jsx(t.InputDataReasoningCard,{citation:c.citation.configData,citations:c.citations,fieldName:"Configuration",fieldValue:"Proposed Configuration"})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),e=require("react/jsx-runtime"),t=require("react"),n=require("../../InputDataReasoningCard.js"),o=require("../../organisms/ConditionSection/ConditionSection.js"),s=require("../../organisms/ConfigSection/ConfigSection.js"),l=require("../../organisms/ScopeSection/ScopeSection.js"),a=require("../../organisms/TextSection/TextSection.js");exports.CreateRule=function(r){var p,c,d=r.state,h=r.handlers,u=r.uiState,g=(null==u?void 0:u.highlights)||{},T=t.useState({}),y=T[0],f=T[1],C=function(e){f(function(t){var n;return i.__assign(i.__assign({},t),((n={})[e]=!t[e],n))})},D=function(i){return i&&0!==i.length?"what is mentioned":"Empty"},v={marginTop:"-20px",marginBottom:"24px",marginRight:"6px",marginLeft:"6px",position:"relative",zIndex:1},x={marginTop:"-8px"};return e.jsxs("div",i.__assign({className:"traffic-manager-template"},{children:[e.jsx(a.TextSection,i.__assign({id:"rule-title",title:"Rule Title",rows:1,placeholder:"Enter a short, descriptive title for the rule",required:!0,value:d.ruleTitle,onChange:h.setRuleTitle,isOpen:y.ruleTitle,onToggle:function(){return C("ruleTitle")},isHighlighted:g.ruleTitle,showCognitiveIcon:d.citation.ruleTitle,tooltipDescription:"Why this Title?"},u)),d.citation.ruleTitle&&e.jsx("div",i.__assign({style:v},{children:e.jsx(n.InputDataReasoningCard,{isVisible:y.ruleTitle,citation:d.citation.ruleTitle,citations:d.citations,fieldName:"Rule Title",fieldValue:d.ruleTitle||"Current Title"})})),e.jsx(a.TextSection,i.__assign({id:"rule-description",title:"Rule Description",rows:3,placeholder:"Explain the rule behaviour",required:!0,value:d.ruleDescription,onChange:h.setRuleDescription,isOpen:y.ruleDescription,onToggle:function(){return C("ruleDescription")},isHighlighted:g.ruleDescription,showCognitiveIcon:d.citation.ruleDescription,tooltipDescription:"Why this Description?"},u)),d.citation.ruleDescription&&e.jsx("div",i.__assign({style:v},{children:e.jsx(n.InputDataReasoningCard,{isVisible:y.ruleDescription,citation:d.citation.ruleDescription,citations:d.citations,fieldName:"Rule Description",fieldValue:d.ruleDescription||"Current Description"})})),e.jsx(l.ScopeSection,i.__assign({id:"scope",required:!0,scopeData:d.scopeData,onScopeChange:h.onScopeChange,tierLabel:"Where should this rule apply?",stationLabel:"Which rule set should this rule belong to?",highlights:null==u?void 0:u.highlights,isOpen:y.scopeData,onToggle:function(){return C("scopeData")},tooltipDescription:"Why this Scope?",showCognitiveIcon:d.citation.scopeData},u)),d.citation.scopeData&&e.jsx("div",i.__assign({style:v},{children:e.jsx(n.InputDataReasoningCard,{isVisible:y.scopeData,citation:d.citation.scopeData,citations:d.citations,fieldName:"Scope",fieldValue:(null===(c=null===(p=d.scopeData)||void 0===p?void 0:p.tiers)||void 0===c?void 0:c.join(", "))||"Selected Tiers"})})),e.jsx(o.ConditionSection,i.__assign({id:"when-to-apply",title:"When to apply",required:!0,dividerRequired:!0,conditions:d.whenToApplyConditions,isOpen:y.whenToApply,onToggle:function(){return C("whenToApply")},onAdd:h.addWhenToApply,onRemove:h.removeWhenToApply,onEdit:h.editWhenToApply,isHighlighted:g.wta,highlightedIds:null==u?void 0:u.highlightedIds,showCognitiveIcon:d.citation.whenToApply,tooltipDescription:"Why this Condition?",footer:d.citation.whenToApply&&e.jsx("div",i.__assign({style:x},{children:e.jsx(n.InputDataReasoningCard,{isVisible:y.whenToApply,citation:d.citation.whenToApply,citations:d.citations,fieldName:"When to apply",fieldValue:D(d.whenToApplyConditions)})}))},u)),e.jsx(o.ConditionSection,i.__assign({id:"when-not-to-apply",title:"When NOT to apply",required:!1,dividerRequired:!0,conditions:d.whenNotToApplyConditions,isOpen:y.whenNotToApply,onToggle:function(){return C("whenNotToApply")},onAdd:h.addWhenNotToApply,onRemove:h.removeWhenNotToApply,onEdit:h.editWhenNotToApply,isHighlighted:g.wnta,highlightedIds:null==u?void 0:u.highlightedIds,showCognitiveIcon:d.citation.whenNotToApply,tooltipDescription:"Why this Condition?",footer:d.citation.whenNotToApply&&e.jsx("div",i.__assign({style:x},{children:e.jsx(n.InputDataReasoningCard,{isVisible:y.whenNotToApply,citation:d.citation.whenNotToApply,citations:d.citations,fieldName:"When Not to apply",fieldValue:D(d.whenNotToApplyConditions)})}))},u)),e.jsx(s.ConfigSection,i.__assign({id:"config",title:"Configuration",required:!0,onConfigChange:h.onConfigChange,highlights:null==u?void 0:u.highlights},u)),d.citation.configData&&e.jsx("div",i.__assign({style:v},{children:e.jsx(n.InputDataReasoningCard,{citation:d.citation.configData,citations:d.citations,fieldName:"Configuration",fieldValue:"Proposed Configuration"})}))]}))};
2
2
  //# sourceMappingURL=CreateRule.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.extractAndParseResponse=function(e){var r=e.match(/```json\s*(\{[\s\S]*?\})\s*```/);if(!r||!r[1])return console.error("Could not find JSON block in the response."),null;var s=r[1];try{return JSON.parse(s)}catch(e){return console.error("Error parsing JSON:",e),null}},exports.useHeaderObserver=function(e){var r=e.handlers,s=e.setResult;return{processHeaderMessage:function(e){var n,o=null===(n=null==e?void 0:e.header_message)||void 0===n?void 0:n.trim(),t=null==e?void 0:e.responsedata;o&&r&&s&&r[o]&&r[o](t,s)}}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.extractAndParseResponse=function(r){var e=r.match(/```json\s*(\{[\s\S]*?\})\s*```/);if(!e||!e[1])return console.error("Could not find JSON block in the response."),null;var n=e[1];try{return JSON.parse(n)}catch(r){return console.error("Error parsing JSON:",r),null}},exports.extractTextFromChildren=function r(e){return"string"==typeof e?e:Array.isArray(e)?e.map(r).join(""):"object"==typeof e&&null!==e&&"props"in e?r(e.props.children):""},exports.useHeaderObserver=function(r){var e=r.handlers,n=r.setResult;return{processHeaderMessage:function(r){var s,o=null===(s=null==r?void 0:r.header_message)||void 0===s?void 0:s.trim(),t=null==r?void 0:r.responsedata;o&&e&&n&&e[o]&&e[o](t,n)}}};
2
2
  //# sourceMappingURL=utils.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":""}