@rh-support/troubleshoot 2.6.24 → 2.6.27

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 (104) hide show
  1. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts +1 -0
  2. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
  3. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +31 -5
  4. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +33 -34
  6. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  7. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +2 -1
  8. package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
  9. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +1 -0
  10. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
  11. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +16 -22
  12. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +1 -1
  13. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
  14. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +52 -96
  15. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
  16. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +24 -21
  17. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +4 -2
  18. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +0 -8
  19. package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
  20. package/lib/esm/components/CaseInformation/Fts.js +6 -2
  21. package/lib/esm/components/CaseInformation/Severity.js +1 -1
  22. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  23. package/lib/esm/components/CaseInformation/SupportLevel.js +1 -1
  24. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  25. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +1 -13
  26. package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
  27. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +5 -8
  28. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
  29. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +7 -7
  30. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
  31. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +1 -1
  32. package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
  33. package/lib/esm/components/Cve/CveModal.js +2 -3
  34. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  35. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +1 -10
  36. package/lib/esm/components/Recommendations/AsideResults.js +1 -1
  37. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
  38. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +4 -7
  39. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
  40. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +1 -3
  41. package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
  42. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +2 -9
  43. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts.map +1 -1
  44. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +4 -4
  45. package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
  46. package/lib/esm/components/Recommendations/RulesModal.js +4 -7
  47. package/lib/esm/components/Recommendations/WatsonxAiIcon.js +1 -1
  48. package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
  49. package/lib/esm/components/Suggestions/Suggestions.js +12 -17
  50. package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
  51. package/lib/esm/components/Suggestions/TopContent.js +13 -13
  52. package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts +7 -0
  53. package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts.map +1 -0
  54. package/lib/esm/components/TroubleshootSection/AskRedHat.js +73 -0
  55. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts +7 -0
  56. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
  57. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +96 -13
  58. package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.d.ts +9 -0
  59. package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.d.ts.map +1 -0
  60. package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.js +9 -0
  61. package/lib/esm/components/TroubleshootSection/icons/StarIcon.d.ts +9 -0
  62. package/lib/esm/components/TroubleshootSection/icons/StarIcon.d.ts.map +1 -0
  63. package/lib/esm/components/TroubleshootSection/icons/StarIcon.js +17 -0
  64. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +0 -1
  65. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
  66. package/lib/esm/components/shared/input/ContactSelectorInternal.js +1 -6
  67. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  68. package/lib/esm/components/shared/useIsSectionValid.js +1 -7
  69. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
  70. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +1 -3
  71. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  72. package/lib/esm/components/wizardLayout/WizardLayout.js +6 -4
  73. package/lib/esm/components/wizardLayout/WizardMain.d.ts +5 -1
  74. package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
  75. package/lib/esm/components/wizardLayout/WizardMain.js +147 -18
  76. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +4 -2
  77. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  78. package/lib/esm/components/wizardLayout/WizardNavigation.js +13 -16
  79. package/lib/esm/components/wizardLayout/index.d.ts +1 -0
  80. package/lib/esm/components/wizardLayout/index.d.ts.map +1 -1
  81. package/lib/esm/components/wizardLayout/index.js +1 -0
  82. package/lib/esm/context/AIResponseContext.d.ts +10 -0
  83. package/lib/esm/context/AIResponseContext.d.ts.map +1 -0
  84. package/lib/esm/context/AIResponseContext.js +26 -0
  85. package/lib/esm/context/RootTroubleshootProvider.d.ts.map +1 -1
  86. package/lib/esm/context/RootTroubleshootProvider.js +8 -6
  87. package/lib/esm/css/AskRedHat.css +338 -0
  88. package/lib/esm/css/app.css +4 -5
  89. package/lib/esm/css/case.css +0 -12
  90. package/lib/esm/hooks/useWizard.d.ts +6 -0
  91. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  92. package/lib/esm/hooks/useWizard.js +1 -1
  93. package/lib/esm/reducers/AIResponseConstNTypes.d.ts +48 -0
  94. package/lib/esm/reducers/AIResponseConstNTypes.d.ts.map +1 -0
  95. package/lib/esm/reducers/AIResponseConstNTypes.js +16 -0
  96. package/lib/esm/reducers/AIResponseReducer.d.ts +9 -0
  97. package/lib/esm/reducers/AIResponseReducer.d.ts.map +1 -0
  98. package/lib/esm/reducers/AIResponseReducer.js +43 -0
  99. package/lib/esm/reducers/CaseConstNTypes.d.ts +2 -0
  100. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  101. package/lib/esm/reducers/CaseConstNTypes.js +2 -0
  102. package/lib/esm/scss/_main.scss +0 -13
  103. package/lib/esm/scss/_pf-overrides.scss +0 -10
  104. package/package.json +7 -6
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export const WatsonxAiIcon = (props) => {
3
3
  return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "17", viewBox: "0 0 16 17", fill: "none" },
4
- React.createElement("g", { clipPath: "url(#clip0_2742_18241)" },
4
+ React.createElement("g", { "clip-path": "url(#clip0_2742_18241)" },
5
5
  React.createElement("path", { d: "M13 12.5007C12.4477 12.5007 12 12.9484 12 13.5007C12 13.5389 12.0071 13.5751 12.0112 13.6122C10.8708 14.5103 9.47165 15.0007 8 15.0007C5.86915 15.0007 4 13.0146 4 10.7507C4 8.40722 5.9065 6.50072 8.25 6.50072H8.5V5.50072H8.25C5.3552 5.50072 3 7.85592 3 10.7507C3 11.6927 3.2652 12.5955 3.71855 13.379C2.3619 12.1868 1.5 10.4445 1.5 8.50072C1.5 7.44312 1.74585 6.43432 2.23095 5.50292L1.34375 5.04102C0.79175 6.10157 0.5 7.29787 0.5 8.50072C0.5 12.6362 3.8645 16.0007 8 16.0007C9.6872 16.0007 11.2909 15.4411 12.6024 14.4176C12.7244 14.4706 12.8586 14.5007 13 14.5007C13.5523 14.5007 14 14.053 14 13.5007C14 12.9484 13.5523 12.5007 13 12.5007Z", fill: "#1F0066" }),
6
6
  React.createElement("path", { d: "M6.5 11.5V10.5H5.5V11.5H6.5Z", fill: "#1F0066" }),
7
7
  React.createElement("path", { d: "M10.5 6.5V5.5H9.5V6.5H10.5Z", fill: "#1F0066" }),
@@ -1 +1 @@
1
- {"version":3,"file":"Suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/Suggestions.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,UAAU,MAAM;IACZ,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,qBAgIhD"}
1
+ {"version":3,"file":"Suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/Suggestions.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,UAAU,MAAM;IACZ,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,MAAM,qBAqHhD"}
@@ -1,5 +1,5 @@
1
1
  import { pcm } from '@cee-eng/hydrajs';
2
- import { Accordion, Tooltip } from '@patternfly/react-core';
2
+ import { Tooltip } from '@patternfly/react-core';
3
3
  import InfoCircleIcon from '@patternfly/react-icons/dist/esm/icons/info-circle-icon';
4
4
  import { TopContentSearch } from '@rh-support/components';
5
5
  import { FeatureFlagKey, useIsFeatureAvailable } from '@rh-support/react-context';
@@ -17,7 +17,6 @@ export default function Suggestions(props) {
17
17
  const { topContentState: { topContent }, } = useContext(TCStateContext);
18
18
  const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = useContext(SessionRestoreStateContext);
19
19
  const accordionRef = useRef(null);
20
- const toggleButtonRefs = useRef([]);
21
20
  const { version, product } = useCaseSelector((state) => ({
22
21
  version: state.caseDetails.version,
23
22
  product: state.caseDetails.product,
@@ -36,32 +35,28 @@ export default function Suggestions(props) {
36
35
  setMaxTC(topContent.data.length);
37
36
  };
38
37
  const onSearchChange = (searchTerm, filteredData) => {
38
+ var _a, _b;
39
39
  setFilteredTC(filteredData);
40
- setTimeout(() => {
41
- const shouldBeExpanded = Boolean(searchTerm);
42
- for (const id of toggleButtonRefs.current) {
43
- const button = document.getElementById(`${id}`);
44
- const isExpanded = (button === null || button === void 0 ? void 0 : button.getAttribute('aria-expanded')) === 'true';
45
- if (button && isExpanded !== shouldBeExpanded) {
46
- button.click();
47
- }
48
- }
49
- });
40
+ if (searchTerm) {
41
+ (_a = accordionRef.current) === null || _a === void 0 ? void 0 : _a.expandAll();
42
+ }
43
+ else {
44
+ (_b = accordionRef.current) === null || _b === void 0 ? void 0 : _b.collapseAll();
45
+ }
50
46
  };
51
47
  return (React.createElement("div", { className: "top-content-suggestion-accordion" },
52
48
  showTitleDescription && (React.createElement("div", { className: "card card-support top-content-card-wrapper" },
53
- isTCSearchEnabled && (React.createElement("h3", { className: "card-heading popular-solutions green-card-heading" },
49
+ !isTCSearchEnabled && (React.createElement("h3", { className: "card-heading popular-solutions green-card-heading" },
54
50
  props.title
55
51
  ? props.title
56
52
  : t('i18nKeyPopularSolutions', 'Red Hat hand picked support articles'),
57
53
  React.createElement(Tooltip, { content: React.createElement("div", null,
58
54
  React.createElement(Trans, null, "Support articles are matched to the product and version details you selected, not the problem details you entered.")) },
59
55
  React.createElement(InfoCircleIcon, { className: "pf-v6-u-ml-sm", "aria-label": t('More info about how support articles are matched') })))),
60
- !isTCSearchEnabled && (React.createElement("div", { className: "card-body" },
61
- React.createElement(TopContentSearch, { className: "pf-v6-u-text-color-regular", topContentData: topContent.data, topContentResultsWrapperRef: accordionRef, onSearch: onSearchChange, dataTrackingId: "top-content-filter-troubleshoot", enableEventTracking: true }))))),
62
- React.createElement(Accordion, { className: "pf-v6-u-ml-sm pf-v6-u-mr-sm" }, map(filteredTC.slice(0, maxTC), (sug, index) => {
56
+ isTCSearchEnabled && (React.createElement("div", { className: "card-body" },
57
+ React.createElement(TopContentSearch, { topContentData: topContent.data, topContentResultsWrapperRef: accordionRef, onSearch: onSearchChange, dataTrackingId: "top-content-filter-troubleshoot", enableEventTracking: true }))))),
58
+ React.createElement("pfe-accordion", { ref: accordionRef }, map(filteredTC.slice(0, maxTC), (sug, index) => {
63
59
  var _a, _b;
64
- toggleButtonRefs.current.push(index);
65
60
  return (React.createElement(TopContent, { seSessionId: activeSessionId, seResourceOriginID: (_b = (_a = sessionResourceTracking[SessionResourceSource.TOP_CONTENT]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', topContentIndex: index, onResourceClick: onResourceClick, name: sug.categoryName, key: sug.categoryName, items: sug.content, helperText: (sug === null || sug === void 0 ? void 0 : sug.helperText) || '' }));
66
61
  })),
67
62
  showMax && filteredTC.length > maxTC && (React.createElement("div", { className: "text-right" },
@@ -1 +1 @@
1
- {"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAKxF,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,qBAmI/C"}
1
+ {"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAIxF,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,UAAU,MAAM;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,qBAsI/C"}
@@ -1,6 +1,5 @@
1
1
  import { pcm } from '@cee-eng/hydrajs';
2
- import { AccordionContent, AccordionItem, AccordionToggle, Tooltip } from '@patternfly/react-core';
3
- import { haltEvent } from '@rh-support/utils';
2
+ import { Accordion, AccordionContent, AccordionItem, AccordionToggle, Tooltip } from '@patternfly/react-core';
4
3
  import isEqual from 'lodash/isEqual';
5
4
  import map from 'lodash/map';
6
5
  import React, { useState } from 'react';
@@ -45,22 +44,23 @@ export default function TopContent(props) {
45
44
  }));
46
45
  };
47
46
  return (React.createElement(React.Fragment, null, props.helperText ? (React.createElement(Tooltip, { content: React.createElement("div", null, props.helperText) },
47
+ React.createElement(Accordion, { className: "top-content-accordion" },
48
+ React.createElement(AccordionItem, { isExpanded: expanded === `${props.topContentIndex}` },
49
+ React.createElement(AccordionToggle, { onClick: () => {
50
+ onToggle(`${props.topContentIndex}`);
51
+ }, "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, id: `${props.topContentIndex}` },
52
+ React.createElement("h3", null, props.name)),
53
+ React.createElement(AccordionContent, { id: `${props.topContentIndex}` },
54
+ React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
55
+ React.createElement("p", null,
56
+ React.createElement("a", { className: "se-recommended ts-top-problems", "data-tracking-id": "se-recommended-top-content", onClick: onLinkClick(item), href: `${item.contentUrl}?${RouteUtils.getSEResourceQueryParams(props.seSessionId, props.seResourceOriginID, SessionResourceSource.TOP_CONTENT)}`, target: "_blank", rel: "noopener noreferrer" }, item.contentTitle))))))))))) : (React.createElement(Accordion, null,
48
57
  React.createElement(AccordionItem, { isExpanded: expanded === `${props.topContentIndex}` },
49
- React.createElement(AccordionToggle, { onClick: (e) => {
50
- haltEvent(e);
58
+ React.createElement(AccordionToggle, { onClick: () => {
51
59
  onToggle(`${props.topContentIndex}`);
52
60
  }, "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, id: `${props.topContentIndex}` },
53
61
  React.createElement("h3", null, props.name)),
54
62
  React.createElement(AccordionContent, { id: `${props.topContentIndex}` },
55
63
  React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
56
64
  React.createElement("p", null,
57
- React.createElement("a", { className: "se-recommended ts-top-problems", "data-tracking-id": "se-recommended-top-content", onClick: onLinkClick(item), href: `${item.contentUrl}?${RouteUtils.getSEResourceQueryParams(props.seSessionId, props.seResourceOriginID, SessionResourceSource.TOP_CONTENT)}`, target: "_blank", rel: "noopener noreferrer" }, item.contentTitle)))))))))) : (React.createElement(AccordionItem, { isExpanded: expanded === `${props.topContentIndex}` },
58
- React.createElement(AccordionToggle, { onClick: () => {
59
- onToggle(`${props.topContentIndex}`);
60
- }, "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, id: `${props.topContentIndex}` },
61
- React.createElement("h3", null, props.name)),
62
- React.createElement(AccordionContent, { id: `${props.topContentIndex}` },
63
- React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
64
- React.createElement("p", null,
65
- React.createElement("a", { className: "se-recommended ts-top-problems", "data-tracking-id": "se-recommended-top-content", onClick: onLinkClick(item), href: `${item.contentUrl}?${RouteUtils.getSEResourceQueryParams(props.seSessionId, props.seResourceOriginID, SessionResourceSource.TOP_CONTENT)}`, target: "_blank", rel: "noopener noreferrer" }, item.contentTitle)))))))))));
65
+ React.createElement("a", { className: "se-recommended ts-top-problems", "data-tracking-id": "se-recommended-top-content", onClick: onLinkClick(item), href: `${item.contentUrl}?${RouteUtils.getSEResourceQueryParams(props.seSessionId, props.seResourceOriginID, SessionResourceSource.TOP_CONTENT)}`, target: "_blank", rel: "noopener noreferrer" }, item.contentTitle))))))))))));
66
66
  }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ onChatWithAIClick?: () => void;
4
+ }
5
+ export declare const AskRedHat: React.FC<IProps>;
6
+ export {};
7
+ //# sourceMappingURL=AskRedHat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AskRedHat.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/AskRedHat.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,UAAU,MAAM;IACZ,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAqJtC,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { Button, Card, CardBody, CardHeader, Spinner } from '@patternfly/react-core';
2
+ import React, { useRef, useState } from 'react';
3
+ import { useAIResponseState } from '../../context/AIResponseContext';
4
+ import { useParseRuleMarkdown } from '../../hooks/useParseRuleMarkdown';
5
+ import { CollapseIcon } from './icons/CollapseIcon';
6
+ import { StarIcon } from './icons/StarIcon';
7
+ export const AskRedHat = ({ onChatWithAIClick }) => {
8
+ const [isExpanded, setIsExpanded] = useState(false);
9
+ const aiResponseState = useAIResponseState();
10
+ const contentRef = useRef(null);
11
+ const onToggle = () => {
12
+ if (isExpanded && contentRef.current) {
13
+ contentRef.current.scrollTop = 0;
14
+ }
15
+ setIsExpanded((prev) => !prev);
16
+ };
17
+ const handleChatWithAIClick = () => onChatWithAIClick === null || onChatWithAIClick === void 0 ? void 0 : onChatWithAIClick();
18
+ const aiResponse = aiResponseState.aiResponse;
19
+ const answer = (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.answer) || (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.content) || 'No AI response available yet.';
20
+ const sources = (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.sources) || (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.references) || [];
21
+ const sourcesCount = sources.length || 0;
22
+ const isLoading = aiResponseState.isLoading || !aiResponse;
23
+ const { parseMarkdown } = useParseRuleMarkdown();
24
+ if (isLoading) {
25
+ return (React.createElement("div", { className: "ask-redhat" },
26
+ React.createElement("p", { className: "ask-redhat-title" },
27
+ React.createElement(StarIcon, { width: 20, height: 20 }),
28
+ "Resolve your issue now with AI insights"),
29
+ React.createElement("div", { className: "ask-redhat-content-wrapper" },
30
+ React.createElement("div", { className: "ask-redhat-content", style: { textAlign: 'center', padding: '2rem' } },
31
+ React.createElement(Spinner, { size: "lg" }),
32
+ React.createElement("p", { style: { marginTop: '1rem' } }, "Getting AI insights..."))),
33
+ !aiResponseState.isLoading && (React.createElement("div", { className: "ask-redhat-toggle-button" },
34
+ React.createElement(Button, { variant: "link", onClick: handleChatWithAIClick, className: "ask-redhat-chat-button" }, "Chat with AI to get started")))));
35
+ }
36
+ if (aiResponseState.error) {
37
+ return (React.createElement("div", { className: "ask-redhat" },
38
+ React.createElement("p", { className: "ask-redhat-title" },
39
+ React.createElement(StarIcon, { width: 20, height: 20 }),
40
+ "Resolve your issue now with AI insights"),
41
+ React.createElement("div", { className: "ask-redhat-content-wrapper" },
42
+ React.createElement("div", { className: "ask-redhat-content", style: { textAlign: 'center', padding: '2rem' } },
43
+ React.createElement("p", { style: { color: '#d73502', marginBottom: '1rem' } }, "Unable to get AI insights. Please try again later."),
44
+ React.createElement(Button, { variant: "link", onClick: handleChatWithAIClick, className: "ask-redhat-chat-button", icon: React.createElement(StarIcon, null) }, "Try again with AI Chat")))));
45
+ }
46
+ return (React.createElement("div", { className: "ask-redhat" },
47
+ React.createElement("p", { className: "ask-redhat-title" },
48
+ React.createElement(StarIcon, { width: 20, height: 20 }),
49
+ "Resolve your issue now with AI insights"),
50
+ React.createElement("div", { className: "ask-redhat-content-wrapper" },
51
+ React.createElement("div", { ref: contentRef, className: `ask-redhat-content ${isExpanded ? 'ask-redhat-content--expanded' : ''}` },
52
+ React.createElement("div", { className: `ask-redhat-content-scrollable ${isExpanded ? 'ask-redhat-content--expanded-scrollable' : ''}` },
53
+ React.createElement("div", null,
54
+ React.createElement("div", { dangerouslySetInnerHTML: { __html: parseMarkdown(answer) } }),
55
+ sourcesCount > 0 && (React.createElement(React.Fragment, null,
56
+ React.createElement("p", null, "2 sources"),
57
+ React.createElement("div", { className: "ask-redhat-cards" }, sources.map((source, index) => (React.createElement(Card, { className: "ask-redhat-card", key: index },
58
+ React.createElement(CardHeader, null,
59
+ React.createElement("h3", { className: "ask-redhat-card-title" },
60
+ React.createElement("a", { href: source.link, target: "_blank", rel: "noopener noreferrer" }, source.title))),
61
+ React.createElement(CardBody, null,
62
+ React.createElement("p", null, source.snippet)))))))))),
63
+ React.createElement("div", { className: "ask-redhat-footer-wrapper" },
64
+ React.createElement("div", { className: "ask-redhat-footer" },
65
+ React.createElement("p", { className: "ask-redhat-footer-text" }, "Want to continue the conversation? Dive deeper with our AI assistant"),
66
+ React.createElement(Button, { onClick: handleChatWithAIClick, className: 'ask-redhat-chat-button', icon: React.createElement(StarIcon, null) }, "Chat with AI"))),
67
+ !isExpanded && React.createElement("div", { className: "ask-redhat-fade-overlay" }))),
68
+ React.createElement("div", { className: "ask-redhat-toggle-button-wrapper" },
69
+ React.createElement("div", { className: "ask-redhat-border-line" }),
70
+ React.createElement(Button, { onClick: onToggle, className: isExpanded ? 'ask-redhat-toggle-button-collapsed' : 'ask-redhat-toggle-button' },
71
+ isExpanded ? React.createElement(CollapseIcon, null) : React.createElement(StarIcon, { width: 20, height: 20 }),
72
+ isExpanded ? '' : 'Read more'))));
73
+ };
@@ -1,3 +1,4 @@
1
+ import '@ifd-ui/ask-redhat-core/ask-redhat-core.css';
1
2
  import React from 'react';
2
3
  interface IProps {
3
4
  inlineEditable: boolean;
@@ -6,6 +7,12 @@ interface IProps {
6
7
  collapseOnBlur?: boolean;
7
8
  autoFocus?: boolean;
8
9
  hideSaveCancel?: boolean;
10
+ isAIChatMode: boolean;
11
+ setIsAIChatMode: (value: boolean) => void;
12
+ onChatWithAIClick?: () => void;
13
+ aiServicesAvailable: boolean;
14
+ isSecureSupport?: boolean;
15
+ hasConfirmedStatesideSupport?: boolean;
9
16
  }
10
17
  declare function TroubleshootSection(props: IProps): React.JSX.Element;
11
18
  declare namespace TroubleshootSection {
@@ -1 +1 @@
1
- {"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAoFzC;kBApFQ,mBAAmB;;;AAuF5B,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"TroubleshootSection.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/TroubleshootSection.tsx"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAC;AAUrD,OAAO,KAAqB,MAAM,OAAO,CAAC;AAY1C,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,4BAA4B,CAAC,EAAE,OAAO,CAAC;CAC1C;AAUD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBA2KzC;kBA3KQ,mBAAmB;;;AA8K5B,eAAe,mBAAmB,CAAC"}
@@ -1,4 +1,16 @@
1
- import { Card, CardBody, CardHeader, Tooltip } from '@patternfly/react-core';
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import '@ifd-ui/ask-redhat-core/ask-redhat-core.css';
11
+ import { Env } from '@cee-eng/hydrajs';
12
+ import { AskRedHatChat, setAuthToken } from '@ifd-ui/ask-redhat-core';
13
+ import { Button, Card, CardBody, CardHeader, Tooltip } from '@patternfly/react-core';
2
14
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
3
15
  import { ErrorBoundary, LoadingDots } from '@rh-support/components';
4
16
  import { PreviousCaseTypes } from '@rh-support/utils';
@@ -6,23 +18,31 @@ import isEmpty from 'lodash/isEmpty';
6
18
  import isEqual from 'lodash/isEqual';
7
19
  import React, { useContext } from 'react';
8
20
  import { Trans, useTranslation } from 'react-i18next';
21
+ import { useAIResponseState } from '../../context/AIResponseContext';
9
22
  import { useCaseSelector } from '../../context/CaseContext';
10
23
  import { TCStateContext } from '../../context/TopContentContext';
24
+ import { appSourceId_ARH, excludedCaseTypesforARH } from '../../reducers/CaseConstNTypes';
11
25
  import { OpenShiftClusterId } from '../CaseManagement/OpenShiftClusterId';
12
26
  import ClusterRecommendations from '../Recommendations/ClusterRecommendations';
13
27
  import InsightsResults from '../Recommendations/InsightsResults';
14
28
  import Suggestions from '../Suggestions/Suggestions';
29
+ import { AskRedHat } from './AskRedHat';
15
30
  const defaultProps = {
16
31
  initialIsEditing: false,
17
32
  required: false,
18
33
  collapseOnBlur: false,
19
34
  autoFocus: false,
20
35
  hideSaveCancel: false,
36
+ aiServicesAvailable: false,
21
37
  };
22
38
  function TroubleshootSection(props) {
23
- var _a;
39
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
24
40
  const { t } = useTranslation();
41
+ const { aiServicesAvailable, isAIChatMode, setIsAIChatMode, onChatWithAIClick } = props;
25
42
  const { topContentState: { topContent }, } = useContext(TCStateContext);
43
+ const aiResponseState = useAIResponseState();
44
+ const session = window === null || window === void 0 ? void 0 : window.sessionjs;
45
+ const keycloakSession = (_b = (_a = session === null || session === void 0 ? void 0 : session._state) === null || _a === void 0 ? void 0 : _a.keycloak) !== null && _b !== void 0 ? _b : null;
26
46
  const { product, version, isCreatingCase, caseType } = useCaseSelector((state) => ({
27
47
  product: state.caseDetails.product,
28
48
  version: state.caseDetails.version,
@@ -32,18 +52,81 @@ function TroubleshootSection(props) {
32
52
  issue: state.caseDetails.issue,
33
53
  }), isEqual);
34
54
  const canShowTopProducts = isEmpty(product);
35
- const canShowTopContent = !canShowTopProducts && ((_a = topContent === null || topContent === void 0 ? void 0 : topContent.data) === null || _a === void 0 ? void 0 : _a.length) > 0;
55
+ const canShowTopContent = !canShowTopProducts && ((_c = topContent === null || topContent === void 0 ? void 0 : topContent.data) === null || _c === void 0 ? void 0 : _c.length) > 0;
36
56
  const isNotAnIdea = caseType !== PreviousCaseTypes.FEATURE_ENHANCEMENT;
37
- return (React.createElement(React.Fragment, null,
57
+ const shouldShowARHUI = () => {
58
+ // Check if the case type is allowed (not in the excluded list)
59
+ const isCaseTypeAllowed = !excludedCaseTypesforARH.includes(caseType !== null && caseType !== void 0 ? caseType : '');
60
+ // Check if user is not a secure support or confirmed stateside support user
61
+ const isNotSecureOrStatesideUser = !props.isSecureSupport && !props.hasConfirmedStatesideSupport;
62
+ // Check if AI services are available
63
+ const isAIServicesAvailable = aiServicesAvailable;
64
+ return isCaseTypeAllowed && isNotSecureOrStatesideUser && isAIServicesAvailable;
65
+ };
66
+ const handleInitialized = (success, error) => {
67
+ if (success) {
68
+ console.log('Chat initialized successfully');
69
+ }
70
+ else {
71
+ console.error('Chat initialization failed:', error);
72
+ }
73
+ };
74
+ const preprocessRequest = () => __awaiter(this, void 0, void 0, function* () {
75
+ var _a;
76
+ if (!keycloakSession) {
77
+ throw new Error('No Keycloak session available');
78
+ }
79
+ try {
80
+ yield ((_a = session === null || session === void 0 ? void 0 : session.updateToken) === null || _a === void 0 ? void 0 : _a.call(session, 500));
81
+ const token = session === null || session === void 0 ? void 0 : session.getEncodedToken();
82
+ if (token) {
83
+ setAuthToken(token);
84
+ }
85
+ else {
86
+ throw new Error('No token available');
87
+ }
88
+ return Promise.resolve();
89
+ }
90
+ catch (error) {
91
+ console.error('Failed to refresh token:', error);
92
+ throw error;
93
+ }
94
+ });
95
+ const initConfig = {
96
+ packageVersion: (_d = window === null || window === void 0 ? void 0 : window.supportVersionInfo) === null || _d === void 0 ? void 0 : _d.packageVersion,
97
+ appSourceId: appSourceId_ARH,
98
+ enableDebugLogging: false,
99
+ headerTitle: 'AI insights',
100
+ appEnv: Env.getEnvName(),
101
+ showWelcomeMessage: false,
102
+ conversationId: ((_e = aiResponseState.aiResponse) === null || _e === void 0 ? void 0 : _e.conversationId) || undefined,
103
+ enableHeaderMenu: false,
104
+ enableTheme: false,
105
+ tokenAuth: {
106
+ auth: {
107
+ userInfo: (_h = (_g = (_f = window === null || window === void 0 ? void 0 : window.sessionjs) === null || _f === void 0 ? void 0 : _f.getToken) === null || _g === void 0 ? void 0 : _g.call(_f)) !== null && _h !== void 0 ? _h : {},
108
+ authToken: (_k = (_j = window === null || window === void 0 ? void 0 : window.sessionjs) === null || _j === void 0 ? void 0 : _j.getEncodedToken()) !== null && _k !== void 0 ? _k : '',
109
+ },
110
+ events: {
111
+ preprocessRequest,
112
+ isAuthenticated: () => {
113
+ var _a, _b, _c;
114
+ return (_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.sessionjs) === null || _a === void 0 ? void 0 : _a.isAuthenticated) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : false;
115
+ },
116
+ },
117
+ },
118
+ onInitialized: handleInitialized,
119
+ };
120
+ const handleChatWithAIClick = () => {
121
+ setIsAIChatMode(true);
122
+ onChatWithAIClick === null || onChatWithAIClick === void 0 ? void 0 : onChatWithAIClick();
123
+ };
124
+ return (React.createElement(React.Fragment, null, isAIChatMode ? (React.createElement(React.Fragment, null,
125
+ React.createElement(AskRedHatChat, { initConfig: initConfig }),
126
+ React.createElement("div", { className: "fullscreen-chat-footer" },
127
+ React.createElement(Button, { onClick: () => props.setIsAIChatMode(false), variant: "link", className: "return-to-case-btn" }, t('Return to case creation'))))) : (React.createElement(React.Fragment, null,
38
128
  React.createElement("section", null,
39
- React.createElement("header", null,
40
- React.createElement("p", { className: "pf-v6-u-pt-md" },
41
- React.createElement("span", { className: "pf-v6-u-font-family-heading pf-v6-u-pr-xs" }, t('Product')),
42
- " ",
43
- product),
44
- React.createElement("p", null,
45
- React.createElement("span", { className: "pf-v6-u-font-family-heading pf-v6-u-pr-xs" }, t('Version')),
46
- version)),
129
+ shouldShowARHUI() && React.createElement(AskRedHat, { onChatWithAIClick: handleChatWithAIClick }),
47
130
  !isCreatingCase && (React.createElement(OpenShiftClusterId, { className: "push-bottom", "data-tracking-id": "troubleshoot-section-openshift-cluster-id" })),
48
131
  React.createElement(LoadingDots, { show: topContent.isFetching }),
49
132
  topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "pf-v6-u-mb-md" },
@@ -56,7 +139,7 @@ function TroubleshootSection(props) {
56
139
  React.createElement(Trans, null, "No recommendations for this product")))),
57
140
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
58
141
  !isCreatingCase && React.createElement(ClusterRecommendations, { className: "pf-v6-u-mt-lg" })),
59
- React.createElement("section", { className: "pf-v6-u-mt-lg" }, isNotAnIdea && (React.createElement(InsightsResults, { isDisplayOnMain: true, "data-tracking-id": "troubleshoot-section-file-recs" })))));
142
+ React.createElement("section", { className: "pf-v6-u-mt-lg" }, isNotAnIdea && (React.createElement(InsightsResults, { isDisplayOnMain: true, "data-tracking-id": "troubleshoot-section-file-recs" })))))));
60
143
  }
61
144
  TroubleshootSection.defaultProps = defaultProps;
62
145
  export default TroubleshootSection;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IconProps {
3
+ width?: number;
4
+ height?: number;
5
+ fillColor?: string;
6
+ }
7
+ export declare const CollapseIcon: (props: IconProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=CollapseIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapseIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/TroubleshootSection/icons/CollapseIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,YAAY,UAAW,SAAS,sBAiB5C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export const CollapseIcon = (props) => {
3
+ const { width = 18.118, height = 12 } = props;
4
+ return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, viewBox: "0 0 19 11", fill: "none", style: {
5
+ flexShrink: 0,
6
+ } },
7
+ React.createElement("path", { d: "M9.05895 0L16.9042 7.07143H1.21367L9.05895 0Z", fill: "#9F549C" }),
8
+ React.createElement("path", { d: "M9.05895 1.57129L16.9042 8.64272H1.21367L9.05895 1.57129Z", fill: "white" })));
9
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IconProps {
3
+ width?: number;
4
+ height?: number;
5
+ fillColor?: string;
6
+ }
7
+ export declare const StarIcon: (props: IconProps) => React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=StarIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StarIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/TroubleshootSection/icons/StarIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ,UAAW,SAAS,sBAgDxC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export const StarIcon = (props) => {
3
+ const { width = 16, height = 15.273 } = props;
4
+ return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, viewBox: "0 0 16 15.273", fill: "none", style: {
5
+ flexShrink: 0,
6
+ aspectRatio: '16.00/15.27',
7
+ } },
8
+ React.createElement("path", { d: "M16.197 9.21581L11.3573 8.18825L10.3297 3.34854C10.2937 3.16868 10.1345 3.04541 9.95463 3.04541C9.77478 3.04541 9.61558 3.17385 9.57958 3.34854L8.55202 8.18825L3.71231 9.21581C3.53245 9.25181 3.40918 9.41101 3.40918 9.59087C3.40918 9.77072 3.53762 9.92992 3.71231 9.96592L8.55202 10.9935L9.57958 15.8332C9.61558 16.013 9.77478 16.1363 9.95463 16.1363C10.1345 16.1363 10.2937 16.0079 10.3297 15.8332L11.3573 10.9935L16.197 9.96592C16.3768 9.92992 16.5001 9.77072 16.5001 9.59087C16.5001 9.41101 16.3717 9.25181 16.197 9.21581Z", fill: "url(#paint0_linear_5146_16767)" }),
9
+ React.createElement("path", { d: "M3.40909 6.68195C3.58647 6.68195 3.74356 6.55526 3.77905 6.38297L4.16931 4.53308L6.0192 4.14282C6.19658 4.10733 6.31818 3.95024 6.31818 3.77286C6.31818 3.59548 6.19149 3.43839 6.0192 3.4029L4.16931 3.01264L3.77905 1.16275C3.74356 0.98537 3.58647 0.86377 3.40909 0.86377C3.23171 0.86377 3.07462 0.990461 3.03913 1.16275L2.64887 3.01264L0.798982 3.4029C0.6216 3.43839 0.5 3.59548 0.5 3.77286C0.5 3.95024 0.626691 4.10733 0.798982 4.14282L2.64887 4.53308L3.03913 6.38297C3.07462 6.56035 3.23171 6.68195 3.40909 6.68195Z", fill: "url(#paint1_linear_5146_16767)" }),
10
+ React.createElement("defs", null,
11
+ React.createElement("linearGradient", { id: "paint0_linear_5146_16767", x1: "9.95463", y1: "3.04541", x2: "9.95463", y2: "16.1363", gradientUnits: "userSpaceOnUse" },
12
+ React.createElement("stop", { stopColor: "#F56E6E" }),
13
+ React.createElement("stop", { offset: "1", stopColor: "#5E40BE" })),
14
+ React.createElement("linearGradient", { id: "paint1_linear_5146_16767", x1: "3.40909", y1: "0.86377", x2: "3.40909", y2: "6.68195", gradientUnits: "userSpaceOnUse" },
15
+ React.createElement("stop", { stopColor: "#F56E6E" }),
16
+ React.createElement("stop", { offset: "1", stopColor: "#5E40BE" })))));
17
+ };
@@ -8,7 +8,6 @@ export interface IProps {
8
8
  disabled?: boolean;
9
9
  selectedContacts?: IContact[];
10
10
  contactsToExclude?: IContact[];
11
- disableContactRemoval?: IContact[];
12
11
  className?: string;
13
12
  id: string;
14
13
  typeAheadSize?: 'sm' | 'md' | 'lg';
@@ -1 +1 @@
1
- {"version":3,"file":"ContactSelectorInternal.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/input/ContactSelectorInternal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAsBrF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,MAAM;IACnB,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC/B,qBAAqB,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,KAAA,EAAE,KAAK,KAAA,EAAE,GAAG,KAAA,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CAClE;AAED,MAAM,WAAW,MAAM;IACnB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,qBAAa,uBAAwB,SAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACxE,UAAU,EAAE,eAAe,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAQ;IAC5C,QAAQ,oCAAuC;IAE/C,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,CAalC;gBAEU,KAAK,EAAE,MAAM;IAYzB,gBAAgB,YAAa,QAAQ,KAAG,MAAM,CAS5C;IAEF,mBAAmB,aAAc,QAAQ,EAAE,KAAG,QAAQ,EAAE,CAGtD;IAEF,sBAAsB,MAAO,QAAQ,KAAG,OAAO,CAE7C;IAEF,kBAAkB,CAAC,SAAS,EAAE,MAAM;IAmBpC,QAAQ,aAAoB,QAAQ,EAAE,mBAKpC;IAEF,YAAY,UAAiB,MAAM,mBA0CjC;IAEF,iBAAiB,UAAW,MAAM,UAiBhC;IAEF,YAAY,UAAW,GAAG,aAAa,GAAG,UAkBxC;IAEF,mBAAmB,oBAAqB,QAAQ,UAI9C;IAEF,aAAa,UAAW,KAAK,CAAC,aAAa,UAkCzC;IAEF,WAAW,aAIT;IAEF,UAAU,aAKR;IAEF,WAAW,aAGT;IAEF,QAAQ,aAEN;IAEF,MAAM;CA6GT"}
1
+ {"version":3,"file":"ContactSelectorInternal.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/input/ContactSelectorInternal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAqBrF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,MAAM;IACnB,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,KAAA,EAAE,KAAK,KAAA,EAAE,GAAG,KAAA,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CAClE;AAED,MAAM,WAAW,MAAM;IACnB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,qBAAa,uBAAwB,SAAQ,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACxE,UAAU,EAAE,eAAe,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAQ;IAC5C,QAAQ,oCAAuC;IAE/C,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,CAalC;gBAEU,KAAK,EAAE,MAAM;IAYzB,gBAAgB,YAAa,QAAQ,KAAG,MAAM,CAS5C;IAEF,mBAAmB,aAAc,QAAQ,EAAE,KAAG,QAAQ,EAAE,CAGtD;IAEF,sBAAsB,MAAO,QAAQ,KAAG,OAAO,CAE7C;IAEF,kBAAkB,CAAC,SAAS,EAAE,MAAM;IAmBpC,QAAQ,aAAoB,QAAQ,EAAE,mBAKpC;IAEF,YAAY,UAAiB,MAAM,mBA0CjC;IAEF,iBAAiB,UAAW,MAAM,UAiBhC;IAEF,YAAY,UAAW,GAAG,aAAa,GAAG,UAkBxC;IAEF,mBAAmB,oBAAqB,QAAQ,UAI9C;IAEF,aAAa,UAAW,KAAK,CAAC,aAAa,UAkCzC;IAEF,WAAW,aAIT;IAEF,UAAU,aAKR;IAEF,WAAW,aAGT;IAEF,QAAQ,aAEN;IAEF,MAAM;CAqGT"}
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { contacts } from '@cee-eng/hydrajs';
11
11
  import { Button, Label, LabelGroup, MenuToggle, Select, SelectList, SelectOption, Spinner, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
12
12
  import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
13
- import { haltEvent } from '@rh-support/utils';
14
13
  import assign from 'lodash/assign';
15
14
  import differenceBy from 'lodash/differenceBy';
16
15
  import filter from 'lodash/filter';
@@ -213,11 +212,7 @@ export class ContactSelectorInternal extends React.Component {
213
212
  : searchValue;
214
213
  const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, variant: "typeahead", onClick: this.onToggle, isExpanded: isOpen, isDisabled: this.props.disabled || this.props.isUpdating, isFullWidth: true },
215
214
  React.createElement(TextInputGroup, { isPlain: true },
216
- React.createElement(TextInputGroupMain, { value: displayValue, onChange: (_, value) => this.handleInputChange(value), onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, placeholder: this.props.placeholder || 'Search contact by name or username', ref: this.inputRef, autoComplete: "off", isExpanded: isOpen, role: "combobox" }, this.props.multiple && selectedContacts.length > 0 && (React.createElement(LabelGroup, { "aria-label": "Selected contacts" }, selectedContacts.map((contact, index) => {
217
- var _a, _b;
218
- const isDisabled = !!((_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.disableContactRemoval) === null || _b === void 0 ? void 0 : _b.find((v) => v.ssoUsername === contact.ssoUsername));
219
- return (React.createElement(Label, { key: contact.ssoUsername, variant: "outline", color: "blue", onClick: haltEvent, onClose: () => this.handleRemoveContact(contact), isDisabled: isDisabled }, this.getSelectedLabel(contact)));
220
- })))),
215
+ React.createElement(TextInputGroupMain, { value: displayValue, onChange: (_, value) => this.handleInputChange(value), onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, placeholder: this.props.placeholder || 'Search contact by name or username', ref: this.inputRef, autoComplete: "off", isExpanded: isOpen, role: "combobox" }, this.props.multiple && selectedContacts.length > 0 && (React.createElement(LabelGroup, { "aria-label": "Selected contacts" }, selectedContacts.map((contact, index) => (React.createElement(Label, { key: contact.ssoUsername, variant: "outline", color: "blue", onClose: () => this.handleRemoveContact(contact) }, this.getSelectedLabel(contact))))))),
221
216
  React.createElement(TextInputGroupUtilities, null,
222
217
  isLoading && React.createElement(Spinner, { size: "sm" }),
223
218
  this.props.clearButton && (searchValue || selectedContacts.length > 0) && (React.createElement(Button, { variant: "plain", icon: React.createElement(TimesCircleIcon, null), onClick: this.handleClear, "aria-label": "Clear input" }))))));
@@ -1 +1 @@
1
- {"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAuB/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EAmU9D"}
1
+ {"version":3,"file":"useIsSectionValid.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/useIsSectionValid.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAuB/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAKnE,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,gBAAgB;;;;;EA8T9D"}
@@ -161,7 +161,6 @@ export function useIsSectionValid(sectionName) {
161
161
  !isEmpty(version) &&
162
162
  !isEmpty(summary) &&
163
163
  !isEmpty(issue) &&
164
- isEntitlement === true &&
165
164
  isClusterIDValid(caseState, (_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult);
166
165
  return isValid;
167
166
  }
@@ -253,12 +252,7 @@ export function useIsSectionValid(sectionName) {
253
252
  return '';
254
253
  switch (sectionNameLocal) {
255
254
  case AppRouteSections.RESOURCES:
256
- if (isCaseCreate === false) {
257
- return getSupportSectionError();
258
- }
259
- else {
260
- return recommendationSectionError();
261
- }
255
+ return recommendationSectionError();
262
256
  case AppRouteSections.GET_SUPPORT:
263
257
  return getSupportSectionError();
264
258
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalTroubleshootEffects.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/GlobalTroubleshootEffects.tsx"],"names":[],"mappings":"AASA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAWvD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAQrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAmTtD"}
1
+ {"version":3,"file":"GlobalTroubleshootEffects.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/GlobalTroubleshootEffects.tsx"],"names":[],"mappings":"AASA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAWvD,OAAO,EAAqB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAQrF,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAgTtD"}
@@ -24,7 +24,7 @@ import { useResetCaseCreate } from '../../hooks/useResetCaseCreate';
24
24
  import { CASE_DEATILS_SOURCE_REFERRER_LIMIT } from '../../reducers/CaseConstNTypes';
25
25
  import { getDescriptionWOQues } from '../../reducers/CaseHelpers';
26
26
  import { setCaseAccountNumber, setCaseDetails, setCaseOwner } from '../../reducers/CaseReducer';
27
- import { setRouteFlags, updateisNextBtnClickedToShowValidationError } from '../../reducers/RouteReducer';
27
+ import { setRouteFlags } from '../../reducers/RouteReducer';
28
28
  import { fetchEdmundAbbottRules } from '../../reducers/RulesReducer';
29
29
  import { fetchTopContent } from '../../reducers/TopContentReducer';
30
30
  import RouteUtils from '../../utils/routeUtils';
@@ -120,8 +120,6 @@ export function GlobalTroubleshootEffects(props) {
120
120
  if (!isFirstMount.current && loggedInUser.data && managedAccounts.data)
121
121
  return;
122
122
  if (isFirstMount.current) {
123
- // Reset validation error state when the troubleshoot app first loads
124
- updateisNextBtnClickedToShowValidationError(dispatchToRouteReducer, false);
125
123
  // set the summary if redirected from portal with url query param "summary"
126
124
  if (!isEmpty(urlQueryParams.summary)) {
127
125
  setCaseDetails(caseDispatch, { summary: urlQueryParams.summary });
@@ -1 +1 @@
1
- {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAcvG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBAoNzC"}
1
+ {"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAcvG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBA2NzC"}
@@ -33,8 +33,10 @@ import { GlobalTroubleshootEffects } from './GlobalTroubleshootEffects';
33
33
  import WizardAside from './WizardAside';
34
34
  import WizardMain from './WizardMain';
35
35
  export function WizardLayout(props) {
36
+ var _a, _b;
36
37
  const { routeState: { activeSection, isCaseCreate }, } = useContext(RouteContext);
37
38
  const { getMetadata } = useMetadata();
39
+ const [isAIChatMode, setIsAIChatMode] = useState(false);
38
40
  const { caseCreationError, contactSSOName, caseType, product, caseState, ABTestVariation } = useCaseSelector((state) => ({
39
41
  caseState: state,
40
42
  caseCreationError: state.caseCreationError,
@@ -152,9 +154,9 @@ export function WizardLayout(props) {
152
154
  React.createElement(GlobalTroubleshootEffects, { routeProps: props.routeProps }),
153
155
  activeSection !== AppRouteSections.DESCRIBE_IDEA && (React.createElement(PreCaseConfirmationModals, { onModalClose: onModalClose, confirmationModalType: confirmationModalType, onConfirm: () => submitCaseAndNavigate(caseCreationError) })),
154
156
  React.createElement(Grid, { style: { height: '100%' } },
155
- React.createElement(GridItem, { sm: 12, md: 12, lg: 8, xl2: 8 },
156
- React.createElement(WizardMain, { routeProps: props.routeProps, submitCaseAndNavigate: submitCaseAndNavigate, confirmSupportModal: confirmSupportModal })),
157
- React.createElement(GridItem, { span: 4, className: "grid-wizard-aside-content" },
158
- React.createElement(WizardAside, { isAttachmentUploadModalOpen: confirmationModalType === PreCaseConfirmationModalsEnum.NO_ATTACHMENT_MODAL, routeProps: props.routeProps }))),
157
+ React.createElement(GridItem, { sm: 12, md: 12, lg: isAIChatMode ? 12 : 8, xl2: isAIChatMode ? 12 : 8 },
158
+ React.createElement(WizardMain, { routeProps: props.routeProps, submitCaseAndNavigate: submitCaseAndNavigate, confirmSupportModal: confirmSupportModal, isAIChatMode: isAIChatMode, setIsAIChatMode: setIsAIChatMode, isSecureSupport: (_a = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.secureSupport, hasConfirmedStatesideSupport: (_b = loggedInUsersAccount === null || loggedInUsersAccount === void 0 ? void 0 : loggedInUsersAccount.data) === null || _b === void 0 ? void 0 : _b.hasConfirmedStatesideSupport })),
159
+ !isAIChatMode && (React.createElement(GridItem, { span: 4, className: "grid-wizard-aside-content" },
160
+ React.createElement(WizardAside, { isAttachmentUploadModalOpen: confirmationModalType === PreCaseConfirmationModalsEnum.NO_ATTACHMENT_MODAL, routeProps: props.routeProps })))),
159
161
  React.createElement(AlertToastWrapper, { submitCaseAndNavigate: submitCaseAndNavigate, routeProps: props.routeProps })));
160
162
  }
@@ -1,10 +1,14 @@
1
- import React from 'react';
1
+ import React, { Dispatch, SetStateAction } from 'react';
2
2
  import { RouteComponentProps } from 'react-router-dom';
3
3
  import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
4
4
  interface IProps {
5
5
  routeProps: RouteComponentProps<IRouteUrlParams>;
6
6
  submitCaseAndNavigate: (isReSubmitting: boolean) => void;
7
7
  confirmSupportModal: (hasPreferredSecureSupportAccount: boolean) => void;
8
+ isAIChatMode: boolean;
9
+ setIsAIChatMode: Dispatch<SetStateAction<boolean>>;
10
+ isSecureSupport?: boolean;
11
+ hasConfirmedStatesideSupport?: boolean;
8
12
  }
9
13
  declare function WizardMain(props: IProps): React.JSX.Element;
10
14
  export default WizardMain;