@rh-support/troubleshoot 2.2.39 → 2.2.42

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 (130) hide show
  1. package/README.md +1 -1
  2. package/lib/esm/components/AccountInfo/AccountSelector.js +4 -4
  3. package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
  4. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +2 -2
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +22 -19
  7. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  8. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +14 -9
  9. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
  10. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +3 -3
  11. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
  12. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
  13. package/lib/esm/components/CaseEditView/CaseOverview/index.js +8 -8
  14. package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.js +1 -1
  15. package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
  16. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
  17. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +17 -11
  18. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +2 -2
  19. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
  20. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +7 -6
  21. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
  22. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +11 -10
  23. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +2 -2
  24. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
  25. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +11 -10
  26. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
  27. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -3
  28. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +4 -4
  29. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -2
  30. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
  31. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
  32. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +1 -1
  33. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +2 -2
  34. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.js +2 -2
  35. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
  36. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +7 -7
  37. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +1 -1
  38. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
  39. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +6 -6
  40. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +1 -1
  41. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
  42. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
  43. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +6 -4
  44. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.d.ts.map +1 -1
  45. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +5 -3
  46. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +1 -1
  47. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +4 -4
  48. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
  49. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +3 -2
  50. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
  51. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +3 -3
  52. package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
  53. package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
  54. package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
  55. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
  56. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +2 -2
  57. package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
  58. package/lib/esm/components/CaseInformation/Description.js +3 -3
  59. package/lib/esm/components/CaseInformation/Fts.js +3 -3
  60. package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
  61. package/lib/esm/components/CaseInformation/Severity.js +3 -2
  62. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  63. package/lib/esm/components/CaseInformation/SupportLevel.js +4 -3
  64. package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
  65. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +3 -2
  66. package/lib/esm/components/CaseManagement/CaseManagement.js +2 -2
  67. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  68. package/lib/esm/components/CaseManagement/Cep.js +28 -12
  69. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
  70. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +13 -12
  71. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +3 -3
  72. package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
  73. package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.js +1 -1
  74. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  75. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +4 -3
  76. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +2 -2
  77. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
  78. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +15 -14
  79. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +3 -3
  80. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +1 -1
  81. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +3 -3
  82. package/lib/esm/components/IdeaInformation/IdeaInformation.js +5 -5
  83. package/lib/esm/components/ImproveCase/KtQuestions.d.ts.map +1 -1
  84. package/lib/esm/components/ImproveCase/KtQuestions.js +7 -7
  85. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +12 -15
  86. package/lib/esm/components/ProductSelector/AllProductsSelector.js +1 -1
  87. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  88. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +4 -3
  89. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +2 -2
  90. package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
  91. package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
  92. package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
  93. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +1 -1
  94. package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
  95. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +7 -7
  96. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +1 -1
  97. package/lib/esm/components/Recommendations/Recommendations.js +1 -1
  98. package/lib/esm/components/Recommendations/RulesModal.js +1 -1
  99. package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
  100. package/lib/esm/components/Review/Review.js +2 -2
  101. package/lib/esm/components/SessionRestore/SessionRestoreCard.js +6 -6
  102. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  103. package/lib/esm/components/SubmitCase/SubmitCase.js +18 -16
  104. package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
  105. package/lib/esm/components/Suggestions/TopContent.js +31 -4
  106. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +6 -6
  107. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +4 -4
  108. package/lib/esm/components/shared/Rule.js +6 -6
  109. package/lib/esm/components/shared/fileUpload/FileLister.js +6 -6
  110. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +2 -2
  111. package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
  112. package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -1
  113. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
  114. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
  115. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +2 -2
  116. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
  117. package/lib/esm/components/wizardLayout/MainSection.js +1 -1
  118. package/lib/esm/components/wizardLayout/WizardAside.js +1 -1
  119. package/lib/esm/components/wizardLayout/WizardMain.js +1 -1
  120. package/lib/esm/components/wizardLayout/WizardNavigation.js +1 -1
  121. package/lib/esm/css/app.css +7 -7
  122. package/lib/esm/css/case.css +3 -3
  123. package/lib/esm/hooks/useWizard.js +1 -1
  124. package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -1
  125. package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
  126. package/lib/esm/scss/_main.scss +35 -35
  127. package/lib/esm/scss/_pf4-overrides.scss +132 -84
  128. package/lib/esm/scss/index.scss +0 -1
  129. package/package.json +9 -11
  130. package/lib/esm/scss/_pf4-imports.scss +0 -30
@@ -84,13 +84,13 @@ function KtQuestions(props) {
84
84
  t(KtQuestionConstant.timeFramesAndUrgency),
85
85
  ' ',
86
86
  isKT4Required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))), allowInlineEdit: props.inlineEditable, hideSaveCancel: props.hideSaveCancel, initialIsEditing: isEmpty(timeFramesAndUrgency), usePreformattedTag: true, saveOnBlur: true, content: timeFramesAndUrgency },
87
- React.createElement(TextArea, { className: `form-control${invalidateQT4(timeFramesAndUrgency) ||
87
+ React.createElement(TextArea, { validated: invalidateQT4(timeFramesAndUrgency) ||
88
88
  (isNextBtnClickedToShowValidationError && isEmpty(timeFramesAndUrgency)) ||
89
89
  isKTQ4InValid
90
- ? ' form-invalid'
91
- : ''}`, "aria-invalid": timeFramesAndUrgency && (timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT
90
+ ? 'error'
91
+ : 'default', "aria-invalid": timeFramesAndUrgency && (timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT
92
92
  ? 'true'
93
- : 'false', id: "ktQ4-timeFramesAndUrgency", value: timeFramesAndUrgency, isDisabled: isEmpty(timeFramesAndUrgency) && hasLargeCaseDescription && !isKTQ4TextAreaActive, onChange: onKtQ4Change, onFocus: onKTQ4FocusChange, onBlur: onKTQ4FocusChange, "aria-required": isKT4Required, "data-tracking-id": "get-support-ktQ4-timeFramesAndUrgency", placeholder: t("User or financial impact, and whether there's a legal, national, or medical urgency"), isRequired: isKT4Required }),
93
+ : 'false', id: "ktQ4-timeFramesAndUrgency", value: timeFramesAndUrgency, isDisabled: isEmpty(timeFramesAndUrgency) && hasLargeCaseDescription && !isKTQ4TextAreaActive, onChange: (e, value) => onKtQ4Change(value, e), onFocus: onKTQ4FocusChange, onBlur: onKTQ4FocusChange, "aria-required": isKT4Required, "data-tracking-id": "get-support-ktQ4-timeFramesAndUrgency", placeholder: t("User or financial impact, and whether there's a legal, national, or medical urgency"), isRequired: isKT4Required, resizeOrientation: "vertical" }),
94
94
  React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-4k-warning-ktQ4-environment" }, `${isKTQ4TextAreaActive && ((_a = timeFramesAndUrgency) === null || _a === void 0 ? void 0 : _a.length) > CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT
95
95
  ? `Description cannot be more than ${CASE_DETAILS_TIMEFRAMESANDURGENCY_LIMIT} characters`
96
96
  : ''}`),
@@ -100,7 +100,7 @@ function KtQuestions(props) {
100
100
  t(KtQuestionConstant.environment),
101
101
  ' ',
102
102
  isKT2Required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))), allowInlineEdit: props.inlineEditable, hideSaveCancel: props.hideSaveCancel, initialIsEditing: isEmpty(environment), usePreformattedTag: true, saveOnBlur: true, content: environment },
103
- React.createElement(TextArea, { className: `form-control`, id: "ktQ2-environment", value: environment, isDisabled: isEmpty(environment) && hasLargeCaseDescription && !isKTQ2TextAreaActive, onChange: onKtQ2Change, onFocus: onKTQ2FocusChange, onBlur: onKTQ2FocusChange, "aria-required": isKT2Required, isRequired: isKT2Required, "data-tracking-id": "get-support-ktQ2-environment", "aria-invalid": environment && (environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT ? 'true' : 'false' }),
103
+ React.createElement(TextArea, { id: "ktQ2-environment", value: environment, isDisabled: isEmpty(environment) && hasLargeCaseDescription && !isKTQ2TextAreaActive, onChange: (e, value) => onKtQ2Change(value, e), onFocus: onKTQ2FocusChange, onBlur: onKTQ2FocusChange, "aria-required": isKT2Required, isRequired: isKT2Required, "data-tracking-id": "get-support-ktQ2-environment", "aria-invalid": environment && (environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT ? 'true' : 'false', resizeOrientation: "vertical" }),
104
104
  React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-4k-warning-ktQ2-environment" }, `${isKTQ2TextAreaActive && ((_b = environment) === null || _b === void 0 ? void 0 : _b.length) > CASE_DEATILS_ENVIRONMENT_LIMIT
105
105
  ? `Description cannot be more than ${CASE_DEATILS_ENVIRONMENT_LIMIT} characters`
106
106
  : ''}`),
@@ -109,9 +109,9 @@ function KtQuestions(props) {
109
109
  t(KtQuestionConstant.periodicityOfIssue),
110
110
  ' ',
111
111
  isKT3Required && (React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))), allowInlineEdit: props.inlineEditable, hideSaveCancel: props.hideSaveCancel, initialIsEditing: isEmpty(periodicityOfIssue), usePreformattedTag: true, saveOnBlur: true, content: periodicityOfIssue },
112
- React.createElement(TextArea, { className: `form-control`, id: "ktQ3-periodicityOfIssue", value: periodicityOfIssue, isDisabled: isEmpty(periodicityOfIssue) && hasLargeCaseDescription && !isKTQ3TextAreaActive, onChange: onKtQ3Change, onFocus: onKTQ3FocusChange, onBlur: onKTQ3FocusChange, "aria-required": isKT3Required, isRequired: isKT3Required, "data-tracking-id": "get-support-ktQ3-periodicityOfIssue", "aria-invalid": periodicityOfIssue && (periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT
112
+ React.createElement(TextArea, { id: "ktQ3-periodicityOfIssue", value: periodicityOfIssue, isDisabled: isEmpty(periodicityOfIssue) && hasLargeCaseDescription && !isKTQ3TextAreaActive, onChange: (e, value) => onKtQ3Change(value, e), onFocus: onKTQ3FocusChange, onBlur: onKTQ3FocusChange, "aria-required": isKT3Required, isRequired: isKT3Required, "data-tracking-id": "get-support-ktQ3-periodicityOfIssue", "aria-invalid": periodicityOfIssue && (periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT
113
113
  ? 'true'
114
- : 'false' }),
114
+ : 'false', resizeOrientation: "vertical" }),
115
115
  React.createElement("p", { className: "form-instructions", "data-tracking-id": "large-4k-warning-ktQ3-environment" }, `${isKTQ3TextAreaActive && ((_c = periodicityOfIssue) === null || _c === void 0 ? void 0 : _c.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT
116
116
  ? `Description cannot be more than ${CASE_DEATILS_PERIODICITYOFISSUE_LIMIT} characters`
117
117
  : ''}`),
@@ -15,7 +15,7 @@ export default function SupportTypeSelectorPage() {
15
15
  const globalDispatch = useGlobalDispatchContext();
16
16
  const [selectedSupportType, setSelectedSupportType] = useState('');
17
17
  const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
18
- const { caseType, isFetchingSelectedAccountDetails, selectedAccountDetails } = useCaseSelector((state) => ({
18
+ const { caseType, isFetchingSelectedAccountDetails } = useCaseSelector((state) => ({
19
19
  caseType: state.caseDetails.caseType,
20
20
  isFetchingSelectedAccountDetails: state.selectedAccountDetails.isFetching,
21
21
  selectedAccountDetails: state.selectedAccountDetails,
@@ -122,18 +122,15 @@ export default function SupportTypeSelectorPage() {
122
122
  React.createElement(Trans, null, "What can we help you with?"),
123
123
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
124
124
  (allCaseTypes.isFetching || (isFetchingSelectedAccountDetails && haventLoadedMetadata(allCaseTypes))) && (React.createElement(LoadingIndicator, { size: "lg", show: true })),
125
- React.createElement(Gallery, { hasGutter: true, className: "pf-u-mt-sm" }, SupportTypesArray.map((supportTypesArrayValues) => {
126
- var _a;
127
- return (React.createElement(GalleryItem, { key: supportTypesArrayValues.id },
128
- React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className: `support-types-card${isNextBtnClickedToShowValidationError && !caseType ? ' support-types-invalid' : ''}`, onKeyDown: onKeyDown, onClick: onSupportTypeClick, onSelectableInputChange: onChange, isSelected: !!caseType && supportTypesArrayValues.oldSupportType === caseType, hasSelectableInput: true, isSelectable: true, isSelectableRaised: true, isFullHeight: true, isDisabledRaised: ((_a = selectedAccountDetails === null || selectedAccountDetails === void 0 ? void 0 : selectedAccountDetails.data) === null || _a === void 0 ? void 0 : _a.subscriptionAbuse) || false, selectableInputAriaLabel: t(supportTypesArrayValues.supportTypeHeading), "data-tracking-id": supportTypesArrayValues.dataTrackingID },
129
- React.createElement(CardBody, null, supportTypesArrayValues.icon ? (React.createElement(Split, null,
130
- React.createElement(SplitItem, { className: "pf-u-pr-lg" },
131
- React.createElement(Bullseye, null, supportTypesArrayValues.icon && supportTypesArrayValues.icon)),
132
- React.createElement(SplitItem, { isFilled: true },
133
- React.createElement("header", { className: "pf-u-font-family-redhatVF-heading-sans-serif" },
134
- React.createElement(Trans, null, supportTypesArrayValues.supportTypeHeading)),
135
- React.createElement(Trans, null, supportTypesArrayValues.supportTypeDescription)))) : (React.createElement(Bullseye, null,
136
- React.createElement("header", { className: "pf-u-font-family-redhatVF-heading-sans-serif" },
137
- React.createElement(Trans, null, supportTypesArrayValues.supportTypeHeading))))))));
138
- }))));
125
+ React.createElement(Gallery, { hasGutter: true, className: "pf-v5-u-mt-sm" }, SupportTypesArray.map((supportTypesArrayValues) => (React.createElement(GalleryItem, { key: supportTypesArrayValues.id },
126
+ React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className: `support-types-card${isNextBtnClickedToShowValidationError && !caseType ? ' support-types-invalid' : ''}`, isSelectable: true, isSelectableRaised: true, onKeyDown: onKeyDown, onClick: onSupportTypeClick, onSelectableInputChange: (_event, labelledById) => onChange(labelledById, _event), isSelected: !!caseType && supportTypesArrayValues.oldSupportType === caseType, hasSelectableInput: true, isFullHeight: true, selectableInputAriaLabel: t(supportTypesArrayValues.supportTypeHeading), "data-tracking-id": supportTypesArrayValues.dataTrackingID, tabIndex: 0 },
127
+ React.createElement(CardBody, null, supportTypesArrayValues.icon ? (React.createElement(Split, null,
128
+ React.createElement(SplitItem, { className: "pf-v5-u-pr-lg" },
129
+ React.createElement(Bullseye, null, supportTypesArrayValues.icon && supportTypesArrayValues.icon)),
130
+ React.createElement(SplitItem, { isFilled: true },
131
+ React.createElement("header", { className: "pf-v5-u-font-family-redhatVF-heading-sans-serif" },
132
+ React.createElement(Trans, null, supportTypesArrayValues.supportTypeHeading)),
133
+ React.createElement(Trans, null, supportTypesArrayValues.supportTypeDescription)))) : (React.createElement(Bullseye, null,
134
+ React.createElement("header", { className: "pf-v5-u-font-family-redhatVF-heading-sans-serif" },
135
+ React.createElement(Trans, null, supportTypesArrayValues.supportTypeHeading))))))))))));
139
136
  }
@@ -82,7 +82,7 @@ const AllProductsSelector = forwardRef((props, ref) => {
82
82
  React.createElement(OpenCaseIssue, { inlineEditable: false, required: true })),
83
83
  React.createElement("div", { className: "all-product-selector-dropdown" },
84
84
  React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: props.checkEntitledProduct ? entitledProducts : allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref }))),
85
- React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
85
+ React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
86
86
  ? 'You are'
87
87
  : 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
88
88
  React.createElement(LoadingIndicator, { show: topContent.isFetching && props.loadTCOnChange }),
@@ -1 +1 @@
1
- {"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAUpE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,gBAuGvD,CAAC"}
1
+ {"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAWpE,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,UAAW,MAAM,gBAuGvD,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Divider, Select, SelectGroup, SelectOption, SelectVariant } from '@patternfly/react-core';
1
+ import { Divider } from '@patternfly/react-core';
2
+ import { Select, SelectGroup, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
2
3
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
3
4
  import isEmpty from 'lodash/isEmpty';
4
5
  import isEqual from 'lodash/isEqual';
@@ -18,7 +19,7 @@ export const NewProductDropdownSelector = (props) => {
18
19
  // eslint-disable-next-line react-hooks/exhaustive-deps
19
20
  }, [props.isNextBtnClickedToShowValidationError]);
20
21
  const createOption = (product, id, type) => {
21
- return (React.createElement(SelectOption, { key: `${type}-${id}`, value: product.name, className: "pf-c-select__menu-wrapper", "data-tracking-id": `${product.name ? product.name.replace(/\s+/g, '') : ''}-${type}-dropdown` }));
22
+ return (React.createElement(SelectOption, { key: `${type}-${id}`, value: product.name, className: "pf-v5-c-select__menu-wrapper", "data-tracking-id": `${product.name ? product.name.replace(/\s+/g, '') : ''}-${type}-dropdown` }));
22
23
  };
23
24
  const onToggle = (isOpen) => {
24
25
  setIsOpen(isOpen);
@@ -62,5 +63,5 @@ export const NewProductDropdownSelector = (props) => {
62
63
  setIsOpen(false);
63
64
  };
64
65
  return (React.createElement("div", null,
65
- React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: onToggle, onSelect: onSelect, isOpen: isOpen, placeholderText: t('Search for or select a product'), "aria-labelledby": t('Product-selector'), onFilter: onFilter, selections: product, validated: isEmpty(product) && showValidationLocal ? 'error' : 'default', "data-tracking-id": "get-support-product-dropdown-selector" }, getOptions())));
66
+ React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Search for or select a product'), "aria-labelledby": t('Product-selector'), onFilter: onFilter, selections: product, validated: isEmpty(product) && showValidationLocal ? 'error' : 'default', "data-tracking-id": "get-support-product-dropdown-selector" }, getOptions())));
66
67
  };
@@ -1,4 +1,4 @@
1
- import { Select, SelectOption, SelectVariant } from '@patternfly/react-core';
1
+ import { Select, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
2
2
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
3
3
  import { getUniqueSortedVersions } from '@rh-support/utils';
4
4
  import isEmpty from 'lodash/isEmpty';
@@ -91,5 +91,5 @@ export const NewProductVersionSelector = (props) => {
91
91
  setIsOpen(false);
92
92
  };
93
93
  const titleId = 'version-selector';
94
- return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: onToggle, onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), "aria-labelledby": titleId, selections: version, validated: isEmpty(version) && showValidationLocal ? 'error' : 'default', isDisabled: isEmpty(product), "data-tracking-id": "get-support-version-dropdown-selector" }, (isSEProductApiIsDown && versionsDetails.isFetching && { loadingVariant: 'spinner' })), selectVersionOptions.map((version, index) => (React.createElement(SelectOption, { key: index, value: version })))));
94
+ return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), "aria-labelledby": titleId, selections: version, validated: isEmpty(version) && showValidationLocal ? 'error' : 'default', isDisabled: isEmpty(product), "data-tracking-id": "get-support-version-dropdown-selector" }, (isSEProductApiIsDown && versionsDetails.isFetching && { loadingVariant: 'spinner' })), selectVersionOptions.map((version, index) => (React.createElement(SelectOption, { key: index, value: version })))));
95
95
  };
@@ -35,7 +35,7 @@ export default function ProductSelector(props) {
35
35
  const productSelectorRef = useRef(null);
36
36
  return (React.createElement(React.Fragment, null,
37
37
  allProducts.isFetching && React.createElement(ProductSelectorLoader, null),
38
- React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-u-mt-lg", title: t('There was an error loading products.'), show: allProducts.isError }),
38
+ React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t('There was an error loading products.'), show: allProducts.isError }),
39
39
  !allProducts.isFetching && !allProducts.isError && (React.createElement(React.Fragment, null,
40
40
  React.createElement("form", null,
41
41
  React.createElement(AllProductsSelector, { routeProps: props.routeProps, checkEntitledProduct: isCaseCreate ? true : false, ref: productSelectorRef }),
@@ -32,7 +32,7 @@ export function ClusterRecommendationItems(props) {
32
32
  React.createElement(Label, { icon: riskLabels[rule.total_risk].icon, className: riskLabels[rule.total_risk].className },
33
33
  React.createElement(Trans, null, riskLabels[rule.total_risk].label))),
34
34
  React.createElement("p", null, rule.details || ''),
35
- React.createElement("a", { onClick: (e) => onResourceClick(e, rule), className: "pf-u-font-weight-bold", "data-tracking-id": "cluster-recommendations", href: `https://console.redhat.com/openshift/insights/advisor/clusters/${openshiftClusterID}`, target: "_blank", rel: "noopener noreferrer" },
35
+ React.createElement("a", { onClick: (e) => onResourceClick(e, rule), className: "pf-v5-u-font-weight-bold", "data-tracking-id": "cluster-recommendations", href: `https://console.redhat.com/openshift/insights/advisor/clusters/${openshiftClusterID}`, target: "_blank", rel: "noopener noreferrer" },
36
36
  React.createElement(Trans, null,
37
37
  "View details and remediation steps ",
38
38
  React.createElement(ArrowRightIcon, { "aria-hidden": "true" })))))))));
@@ -36,7 +36,7 @@ export default function ClusterRecommendations(props) {
36
36
  React.createElement(Trans, null, "Cluster recommendations")),
37
37
  React.createElement("div", null,
38
38
  React.createElement(ClusterRecommendationItems, { clusterRecommendations: clusterRecommendations.data.slice(0, NUMBER_OF_RULES_TO_DISPLAY) }),
39
- clusterRecommendations.data.length > NUMBER_OF_RULES_TO_DISPLAY && (React.createElement(Button, { className: "pf-u-p-md", variant: "link", isBlock: true, onClick: onViewMoreRecommendation, "data-tracking-id": "cluster-recs-view-more" },
39
+ clusterRecommendations.data.length > NUMBER_OF_RULES_TO_DISPLAY && (React.createElement(Button, { className: "pf-v5-u-p-md", variant: "link", isBlock: true, onClick: onViewMoreRecommendation, "data-tracking-id": "cluster-recs-view-more" },
40
40
  React.createElement(Trans, null, "View more recommendations")))))),
41
41
  showClusterRecommendationsModal && React.createElement(ClusterRecommendationsModal, null)));
42
42
  }
@@ -10,7 +10,7 @@ export function EARuleInfoAccordion({ rule, showNewTag }) {
10
10
  React.createElement(AccordionToggle, { isExpanded: isExpanded, id: "ea-rule-accordion-toggle", onClick: () => {
11
11
  setIsExpanded(!isExpanded);
12
12
  } },
13
- showNewTag && ((_a = rule === null || rule === void 0 ? void 0 : rule.isNew) !== null && _a !== void 0 ? _a : false) && (React.createElement(Label, { color: "green", className: "pf-u-mr-md" },
13
+ showNewTag && ((_a = rule === null || rule === void 0 ? void 0 : rule.isNew) !== null && _a !== void 0 ? _a : false) && (React.createElement(Label, { color: "green", className: "pf-v5-u-mr-md" },
14
14
  React.createElement(Trans, null, "NEW"))),
15
15
  React.createElement("span", null,
16
16
  React.createElement(EARuleTitle, null))),
@@ -93,18 +93,18 @@ export function EARuleInfoInline({ eaRules = [] }) {
93
93
  return (React.createElement(React.Fragment, null,
94
94
  React.createElement(RecommendationFeedbackModal, { isModalOpen: isModalVisible, handleModalToggle: onModalToggle, modalContent: t(`Great, we're glad that resolved your issue`) }),
95
95
  React.createElement(EARule, { rule: visibleRule },
96
- React.createElement("div", { className: "pf-c-alert pf-m-info pf-m-inline pf-u-mb-md", "aria-label": "Success alert" },
97
- React.createElement("div", { className: "pf-c-alert__icon" },
96
+ React.createElement("div", { className: "pf-v5-c-alert pf-m-info pf-m-inline pf-v5-u-mb-md", "aria-label": "Success alert" },
97
+ React.createElement("div", { className: "pf-v5-c-alert__icon" },
98
98
  React.createElement(InfoCircleIcon, null)),
99
- React.createElement("p", { className: "pf-c-alert__title" },
99
+ React.createElement("p", { className: "pf-v5-c-alert__title" },
100
100
  React.createElement("strong", null,
101
101
  React.createElement(EARuleTitle, null))),
102
- React.createElement("div", { className: "pf-c-alert__action" },
102
+ React.createElement("div", { className: "pf-v5-c-alert__action" },
103
103
  React.createElement(Button, { style: { fontSize: 15 }, variant: ButtonVariant.link, "data-tracking-id": "se-recommended-asa-ignore", type: "button", onClick: onIgnoreBtnClick }, validEARulesLength > 1 ? React.createElement(Trans, null, "Skip") : React.createElement(CloseIcon, null))),
104
- React.createElement("div", { className: "pf-c-alert__description" },
104
+ React.createElement("div", { className: "pf-v5-c-alert__description" },
105
105
  React.createElement(EARuleDescription, null)),
106
- React.createElement("div", { className: "pf-c-alert__action-group pf-u-display-flex" },
107
- React.createElement(EARuleArticle, { className: "pf-u-align-self-center pf-u-mr-sm", linkTitle: "View details" }),
106
+ React.createElement("div", { className: "pf-v5-c-alert__action-group pf-v5-u-display-flex" },
107
+ React.createElement(EARuleArticle, { className: "pf-v5-u-align-self-center pf-v5-u-mr-sm", linkTitle: "View details" }),
108
108
  !isSecureSupportAccount && resolvedMyIssue(),
109
109
  validEARulesLength > 1 && (React.createElement(PaginationCompact, { maxPage: validEARulesLength, onPageChange: onPaginationChange, dataTrackingId: 'se-recommended-asa-widget' })))))));
110
110
  }
@@ -55,19 +55,19 @@ export function InsightsRuleInfo({ doc, showNewTag, duplicateKeys }) {
55
55
  React.createElement(AccordionToggle, { isExpanded: isParentExpanded, id: doc.id + doc.attachmentId, onClick: () => {
56
56
  setIsParentExpanded(!isParentExpanded);
57
57
  } },
58
- showNewTag && ((_b = (_a = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _a === void 0 ? void 0 : _a.isNew) !== null && _b !== void 0 ? _b : false) && (React.createElement(Label, { color: "green", className: "pf-u-mr-md" },
58
+ showNewTag && ((_b = (_a = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _a === void 0 ? void 0 : _a.isNew) !== null && _b !== void 0 ? _b : false) && (React.createElement(Label, { color: "green", className: "pf-v5-u-mr-md" },
59
59
  React.createElement(Trans, null, "NEW"))),
60
60
  React.createElement("div", null,
61
61
  React.createElement("div", null, ruleData === null || ruleData === void 0 ? void 0 : ruleData.summary),
62
- React.createElement("div", { className: "pf-u-mb-sm pf-u-text-align-left" }, ((_d = (_c = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : false) && (React.createElement(Label, null,
62
+ React.createElement("div", { className: "pf-v5-u-mb-sm pf-v5-u-text-align-left" }, ((_d = (_c = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : false) && (React.createElement(Label, null,
63
63
  React.createElement(Trans, null, insightsReport.current.name)))),
64
- React.createElement("div", { className: "pf-u-text-align-left" },
65
- React.createElement(LabelGroup, { numLabels: 5 }, ((doc === null || doc === void 0 ? void 0 : doc.tag) || []).map((tag) => (React.createElement(Label, { color: "gold", className: "pf-u-mr-sm" }, tag))))))),
64
+ React.createElement("div", { className: "pf-v5-u-text-align-left" },
65
+ React.createElement(LabelGroup, { numLabels: 5 }, ((doc === null || doc === void 0 ? void 0 : doc.tag) || []).map((tag) => (React.createElement(Label, { color: "gold", className: "pf-v5-u-mr-sm" }, tag))))))),
66
66
  React.createElement(AccordionContent, { isHidden: !isParentExpanded },
67
67
  React.createElement(Accordion, { asDefinitionList: false, className: "push-bottom-narrow" },
68
68
  React.createElement(AccordionItem, null,
69
69
  React.createElement(AccordionToggle, { isExpanded: isIssueExpanded, onClick: () => setIsIssueExpanded(!isIssueExpanded), id: `${doc.id}-detected-issue` },
70
- React.createElement(BullseyeIcon, { className: "pf-u-mr-sm" }),
70
+ React.createElement(BullseyeIcon, { className: "pf-v5-u-mr-sm" }),
71
71
  React.createElement(Trans, null, "Detected issues")),
72
72
  React.createElement(AccordionContent, { isHidden: !isIssueExpanded },
73
73
  React.createElement("p", { dangerouslySetInnerHTML: {
@@ -76,11 +76,11 @@ export function InsightsRuleInfo({ doc, showNewTag, duplicateKeys }) {
76
76
  } }))),
77
77
  ((_f = ruleData === null || ruleData === void 0 ? void 0 : ruleData.more_info) !== null && _f !== void 0 ? _f : false) && (React.createElement(AccordionItem, null,
78
78
  React.createElement(AccordionToggle, { isExpanded: isAdditionalExpanded, onClick: () => setIsAdditionalExpanded(!isAdditionalExpanded), id: `${doc.id}-additional-info` },
79
- React.createElement(InfoCircleIcon, { className: "pf-u-mr-sm" }),
79
+ React.createElement(InfoCircleIcon, { className: "pf-v5-u-mr-sm" }),
80
80
  React.createElement(Trans, null, "Additional info")),
81
81
  React.createElement(AccordionContent, { isHidden: !isAdditionalExpanded },
82
82
  React.createElement("p", { onClick: onAdditionalInfoElemClick, dangerouslySetInnerHTML: parseMoreInfo(ruleData === null || ruleData === void 0 ? void 0 : ruleData.more_info, (_g = insightsReport === null || insightsReport === void 0 ? void 0 : insightsReport.current) === null || _g === void 0 ? void 0 : _g.details) }))))),
83
83
  React.createElement("pfe-cta", null,
84
- React.createElement("a", { className: "se-recommended ts-result-insights pf-u-font-size-sm", rel: "noopener noreferrer", target: "_blank", onClick: onCtaClick(doc.view_uri), "data-tracking-id": "get-support-recommended-insights-rule", "aria-label": "Related article", role: "button", href: getTrackingULRWithQueryParams(doc.view_uri, SessionResourceSource.INSIGHTS) },
84
+ React.createElement("a", { className: "se-recommended ts-result-insights pf-v5-u-font-size-sm", rel: "noopener noreferrer", target: "_blank", onClick: onCtaClick(doc.view_uri), "data-tracking-id": "get-support-recommended-insights-rule", "aria-label": "Related article", role: "button", href: getTrackingULRWithQueryParams(doc.view_uri, SessionResourceSource.INSIGHTS) },
85
85
  React.createElement(Trans, null, "Related article"))))))));
86
86
  }
@@ -4,7 +4,7 @@ import { Trans } from 'react-i18next';
4
4
  import { Link } from 'react-router-dom';
5
5
  export function RecommendationFeedbackModal({ isModalOpen, handleModalToggle, modalContent }) {
6
6
  return (React.createElement(Modal, { variant: ModalVariant.small, id: "resolved-feedback-modal", "aria-describedby": "rec-feedback-modal", "aria-label": "Feedback modal", isOpen: isModalOpen, onClose: handleModalToggle, actions: [
7
- React.createElement(Link, { "data-tracking-id": "resolved-feedback-cases", key: "view", className: "pf-c-button pf-m-primary", to: "/case/list" },
7
+ React.createElement(Link, { "data-tracking-id": "resolved-feedback-cases", key: "view", className: "pf-v5-c-button pf-m-primary", to: "/case/list" },
8
8
  React.createElement(Trans, null, "View your cases")),
9
9
  React.createElement(Button, { "data-tracking-id": "resolved-feedback-continue", key: "continue", variant: "link", onClick: handleModalToggle },
10
10
  React.createElement(Trans, null, "Continue troubleshooting")),
@@ -129,7 +129,7 @@ export default function Recommendations(props) {
129
129
  };
130
130
  return (React.createElement(React.Fragment, null,
131
131
  React.createElement(LoadingDots, { show: recommendationState.isLoadingRecommendations && !isEmpty(summary) }),
132
- React.createElement("div", { className: "recommendation-list pf-u-mt-lg", ref: resultRowRef },
132
+ React.createElement("div", { className: "recommendation-list pf-v5-u-mt-lg", ref: resultRowRef },
133
133
  React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
134
134
  var _a, _b;
135
135
  return (React.createElement("li", { className: "result", key: doc.id },
@@ -95,7 +95,7 @@ export function InsightResultModal(props) {
95
95
  }, [selectedLocalFiles, props.EARule]);
96
96
  if (props.isRenderedMain) {
97
97
  setCaseState(caseDispatch, { isFileRecommendationsTriggered: true });
98
- return (React.createElement(Card, { id: "expandable-card", className: "card-support top-recommendations pf-u-mt-md", isExpanded: isExpanded, isCompact: true },
98
+ return (React.createElement(Card, { id: "expandable-card", className: "card-support top-recommendations pf-v5-u-mt-md", isExpanded: isExpanded, isCompact: true },
99
99
  React.createElement(CardHeader, { onExpand: onExpand, toggleButtonProps: {
100
100
  id: 'toggle-button1',
101
101
  'aria-label': t('File recommendations'),
@@ -33,7 +33,7 @@ export function RemoteRiderBanner(props) {
33
33
  setIsRemoteRiderModalVisible(false);
34
34
  };
35
35
  return (React.createElement(React.Fragment, null,
36
- React.createElement(Alert, { isInline: true, className: "pf-u-mb-md", variant: areTermsAccepted ? AlertVariant.success : AlertVariant.info, title: "Remote support", actionLinks: areTermsAccepted ? (React.createElement("a", { href: "/articles/3566571", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "remote-rider-kbase" },
36
+ React.createElement(Alert, { isInline: true, className: "pf-v5-u-mb-md", variant: areTermsAccepted ? AlertVariant.success : AlertVariant.info, title: "Remote support", actionLinks: areTermsAccepted ? (React.createElement("a", { href: "/articles/3566571", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "remote-rider-kbase" },
37
37
  t('Learn how to join a remote session'),
38
38
  " ",
39
39
  React.createElement(ExternalLinkAltIcon, null))) : (React.createElement(React.Fragment, null,
@@ -57,9 +57,9 @@ export default function Review(props) {
57
57
  React.createElement(CaseType, { hideIdea: true }),
58
58
  React.createElement(SupportLevel, null),
59
59
  React.createElement(Flex, { direction: { default: 'column', '2xl': 'row' } },
60
- React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-u-mb-xl" },
60
+ React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-v5-u-mb-xl" },
61
61
  React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
62
- React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-u-mb-xl" },
62
+ React.createElement(FlexItem, { flex: { default: 'flex_1' }, className: "pf-v5-u-mb-xl" },
63
63
  React.createElement(ContactPhoneNumber, null))),
64
64
  React.createElement(ContactPhoneNumberAlert, null),
65
65
  React.createElement(Fts, { inlineEditable: true, initialIsEditing: isEmpty(contactInfo24x7), hideSaveCancel: true }),
@@ -13,15 +13,15 @@ export function SessionRestoreCard(props) {
13
13
  };
14
14
  if (hidden || isEmpty(props.previousSessions))
15
15
  return React.createElement(React.Fragment, null);
16
- return (React.createElement("div", { className: "pf-c-alert pf-m-inline", role: "alert" },
17
- React.createElement("div", { className: "pf-c-alert__icon" },
16
+ return (React.createElement("div", { className: "pf-v5-c-alert pf-m-inline", role: "alert" },
17
+ React.createElement("div", { className: "pf-v5-c-alert__icon" },
18
18
  React.createElement(BellIcon, { "aria-hidden": "true" })),
19
- React.createElement("h3", { className: "pf-c-alert__title" },
19
+ React.createElement("h3", { className: "pf-v5-c-alert__title" },
20
20
  React.createElement(Trans, null, "Restore a previous session")),
21
- React.createElement("div", { className: "pf-c-alert__description" },
21
+ React.createElement("div", { className: "pf-v5-c-alert__description" },
22
22
  React.createElement("ul", { className: "restore-session-list" }, map(props.previousSessions, (sessionItem) => (React.createElement("li", { key: sessionItem.session.id },
23
23
  React.createElement(SessionItem, { onRestore: props.onRestore, sessionItem: sessionItem })))))),
24
- React.createElement("div", { className: "pf-c-alert__action" },
25
- React.createElement("button", { className: "pf-c-button pf-m-plain", type: "button", "aria-label": "Close", onClick: onCardDismiss, "data-tracking-id": "session-restore-card-dismiss" },
24
+ React.createElement("div", { className: "pf-v5-c-alert__action" },
25
+ React.createElement("button", { className: "pf-v5-c-button pf-m-plain", type: "button", "aria-label": "Close", onClick: onCardDismiss, "data-tracking-id": "session-restore-card-dismiss" },
26
26
  React.createElement(TimesIcon, { "aria-hidden": "true" })))));
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,gBAsTjC"}
1
+ {"version":3,"file":"SubmitCase.d.ts","sourceRoot":"","sources":["../../../../src/components/SubmitCase/SubmitCase.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,UAAU,gBA0TjC"}
@@ -1,5 +1,5 @@
1
1
  import { Env, publicApi } from '@cee-eng/hydrajs';
2
- import { ActionList, ActionListItem, Button, Text, TextVariants, Tooltip } from '@patternfly/react-core';
2
+ import { ActionList, ActionListItem, Button, Icon, Text, TextVariants, Tooltip } from '@patternfly/react-core';
3
3
  import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
4
4
  import { AlertMessage, AlertType, useFetch } from '@rh-support/components';
5
5
  import { GlobalMetadataStateContext, useGlobalStateContext } from '@rh-support/react-context';
@@ -84,27 +84,29 @@ export default function SubmitCase() {
84
84
  // To check if the user is ESS Customer and Product has ESS Support
85
85
  const isESSCustomer = isSpecialSupportOfferingEnabled((_a = allProducts.data) === null || _a === void 0 ? void 0 : _a.productsResult, product);
86
86
  return (React.createElement("article", { className: "gird-main" },
87
- React.createElement(AlertMessage, { className: "pf-u-mt-lg", title: t('Failed to add user.'), variant: AlertType.DANGER, show: addNotifiedUserError }),
88
- React.createElement(AlertMessage, { className: "pf-u-mt-lg", variant: AlertType.DANGER, show: caseCreationError, title: t("Sorry, we're experiencing an error"), isInline: true },
87
+ React.createElement(AlertMessage, { className: "pf-v5-u-mt-lg", title: t('Failed to add user.'), variant: AlertType.DANGER, show: addNotifiedUserError }),
88
+ React.createElement(AlertMessage, { className: "pf-v5-u-mt-lg", variant: AlertType.DANGER, show: caseCreationError, title: t("Sorry, we're experiencing an error"), isInline: true },
89
89
  React.createElement(React.Fragment, null, caseCreationErrorMessage)),
90
90
  !isCreatingCase && !caseCreationError && (React.createElement(React.Fragment, null,
91
91
  !isESSCustomer && !screenSessionRequested && showRemoteRiderBanner && (React.createElement(RemoteRiderBanner, { onConfirm: onRemoteRiderConfirm, onClose: onRemoteRiderClose, caseNumber: caseNoOfCreatedCase, isSecureSupport: loggedInUsersAccount.data.secureSupport, loggedInUserRights: loggedInUserRights })),
92
92
  React.createElement("div", { className: "submit-case-header-container" },
93
- React.createElement("p", { className: "kicker kicker-sm pf-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
93
+ React.createElement("p", { className: "kicker kicker-sm pf-v5-u-mb-sm" }, !isEmpty(RouteUtils.seBasePath) &&
94
94
  !isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
95
- React.createElement("div", { className: "submit-page-title pf-u-mb-lg" },
96
- React.createElement(CheckCircleIcon, { className: "submit-case-check-icon", size: "lg" }),
95
+ React.createElement("div", { className: "submit-page-title pf-v5-u-mb-lg" },
96
+ React.createElement(Icon, { className: "submit-case-check-icon", size: "lg" },
97
+ React.createElement(CheckCircleIcon, null)),
97
98
  ' ',
98
- React.createElement(Text, { className: "pf-u-ml-md pf-u-mb-0", component: TextVariants.h1 },
99
+ React.createElement(Text, { className: "pf-v5-u-ml-md pf-v5-u-mb-0", component: TextVariants.h1 },
99
100
  React.createElement(Trans, null, "We've added your case to our queue"))),
100
- React.createElement("div", { className: "pf-u-mt-sm" },
101
+ React.createElement("div", { className: "pf-v5-u-mt-sm" },
101
102
  React.createElement(Trans, null, "Case number:"),
102
103
  "\u00A0",
103
104
  React.createElement(Link, { to: `/case/${caseNoOfCreatedCase}`, "data-tracking-id": "get-support-queued-case-number", className: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles)
104
105
  ? 'case-link-disabled'
105
106
  : '' }, caseNoOfCreatedCase)))) : (React.createElement(React.Fragment, null,
106
107
  React.createElement("div", { className: "submit-page-title" },
107
- React.createElement(CheckCircleIcon, { className: "submit-case-check-icon", size: "lg" }),
108
+ React.createElement(Icon, { size: "lg", className: "submit-case-check-icon" },
109
+ React.createElement(CheckCircleIcon, null)),
108
110
  ' ',
109
111
  React.createElement(Text, { component: TextVariants.h1 },
110
112
  React.createElement(Trans, null, "We\u2019ve added your case to our queue"))),
@@ -119,10 +121,10 @@ export default function SubmitCase() {
119
121
  getResponseTimeMessage(entitlementSla, severity),
120
122
  React.createElement("a", { className: "inline-link", rel: "noopener noreferrer", href: "/support/offerings/production/sla", target: "_blank", "data-tracking-id": "get-support-sla" },
121
123
  React.createElement(Trans, null, "Service Level Agreement (SLA)."))),
122
- React.createElement("div", { className: "submit-page-contact-info pf-u-mt-lg pf-u-mb-sm" },
123
- React.createElement("p", { className: "contact-info-title pf-u-mb-sm" },
124
+ React.createElement("div", { className: "submit-page-contact-info pf-v5-u-mt-lg pf-v5-u-mb-sm" },
125
+ React.createElement("p", { className: "contact-info-title pf-v5-u-mb-sm" },
124
126
  React.createElement(Trans, null, "Is this contact information correct?")),
125
- React.createElement("p", { className: "pf-u-font-size-sm" },
127
+ React.createElement("p", { className: "pf-v5-u-font-size-sm" },
126
128
  React.createElement("strong", null,
127
129
  React.createElement(Trans, null, "Email:")),
128
130
  ' ',
@@ -133,16 +135,16 @@ export default function SubmitCase() {
133
135
  React.createElement(Button, { component: "a", href: `${getRedhatDotComHost(Env.getEnvName())}/wapps/ugc/protected/${'personalInfo.html'}`, target: "_blank", variant: "secondary", "data-tracking-id": "get-support-update-info", className: "update-info-button" }, "Update info")),
134
136
  React.createElement(ActionListItem, null, isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) ? (React.createElement(React.Fragment, null,
135
137
  React.createElement(Tooltip, { content: t('File upload in progress.'), position: "bottom" },
136
- React.createElement(Button, { className: "pf-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) }, "View case")))) : (React.createElement(Button, { className: "pf-u-ml-md", component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNoOfCreatedCase}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
138
+ React.createElement(Button, { className: "pf-v5-u-ml-md", component: "a", href: getCaseURL(), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case'), isAriaDisabled: isUploadingAttachment(attachmentState.caseFiles.selectedLocalFiles) }, "View case")))) : (React.createElement(Button, { className: "pf-v5-u-ml-md", component: (props) => (React.createElement(Link, Object.assign({}, props, { to: `/case/${caseNoOfCreatedCase}` }))), variant: "primary", "data-tracking-id": "get-support-view-case", "aria-label": t('View case') }, "View case")))))),
137
139
  !isEmpty(attachmentState.caseFiles.selectedLocalFiles) && (React.createElement(FileUploader, { idToUploadTo: caseNoOfCreatedCase, isSessionId: false, isSecureSupport: loggedInUsersAccount.data.secureSupport })),
138
140
  React.createElement("div", null,
139
141
  (!isEmpty(topContent.data) || !rulesState.EARules.rules || !clusterRecommendations) &&
140
- !isIdea && (React.createElement(Text, { className: "pf-u-mt-2xl pf-u-font-weight-light", component: TextVariants.h2 },
142
+ !isIdea && (React.createElement(Text, { className: "pf-v5-u-mt-2xl pf-v5-u-font-weight-light", component: TextVariants.h2 },
141
143
  React.createElement(Trans, null, "Troubleshoot this case"))),
142
144
  isNotAnIdea && (React.createElement(React.Fragment, null,
143
- React.createElement("div", { className: isIdea ? 'pf-u-mt-lg' : '' },
145
+ React.createElement("div", { className: isIdea ? 'pf-v5-u-mt-lg' : '' },
144
146
  React.createElement(InsightsResults, { isDisplayOnMain: true })),
145
147
  React.createElement(ClusterRecommendations, { showClusterRecommendationsModal: false }))),
146
- React.createElement("div", { className: "pf-u-mt-lg" }, isIdea ? (React.createElement(AsideResults, null)) : (!isEmpty(topContent.data) &&
148
+ React.createElement("div", { className: "pf-v5-u-mt-lg" }, isIdea ? (React.createElement(AsideResults, null)) : (!isEmpty(topContent.data) &&
147
149
  isNotAnIdea && (React.createElement(Suggestions, { title: isIdea ? t('Search recommendations') : t('Product recommendations'), showTitleDescription: true, showMax: 6 })))))))));
148
150
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAQxF,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,eA6C/C"}
1
+ {"version":3,"file":"TopContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Suggestions/TopContent.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AAaxF,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,eAwF/C"}
@@ -1,21 +1,48 @@
1
1
  import '@patternfly/pfe-accordion';
2
2
  import { pcm } from '@cee-eng/hydrajs';
3
3
  import { Tooltip } from '@patternfly/react-core';
4
+ import isEqual from 'lodash/isEqual';
4
5
  import map from 'lodash/map';
5
6
  import React from 'react';
7
+ import { useCaseSelector } from '../../context/CaseContext';
8
+ import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
9
+ import { getDescriptionWOQues } from '../../reducers/CaseHelpers';
10
+ import { createOrUpdateSessionResources, getSessResTC } from '../../reducers/SessionRestoreReducer';
6
11
  import RouteUtils from '../../utils/routeUtils';
7
- const { SessionResourceSource } = pcm.preCase.session;
12
+ const { SessionResourceVisibility, SessionResourceSource } = pcm.preCase.session;
8
13
  export default function TopContent(props) {
14
+ const sessionRestoreDispatch = React.useContext(SessionRestoreDispatchContext);
15
+ const { sessionRestore: { activeSessionId, sessionResourceTracking }, } = React.useContext(SessionRestoreStateContext);
16
+ const { product, version, summary, issue, environment, periodicityOfIssue, timeFramesAndUrgency } = useCaseSelector((state) => ({
17
+ product: state.caseDetails.product,
18
+ version: state.caseDetails.version,
19
+ summary: state.caseDetails.summary,
20
+ issue: state.caseDetails.issue,
21
+ environment: state.caseDetails.environment,
22
+ periodicityOfIssue: state.caseDetails.periodicityOfIssue,
23
+ timeFramesAndUrgency: state.caseDetails.timeFramesAndUrgency,
24
+ }), isEqual);
9
25
  const onLinkClick = (item) => (event) => {
10
26
  props.onResourceClick && props.onResourceClick(item);
11
27
  };
28
+ // when user opens a top content tab, presented resouces are sent to session api
29
+ const onTopContentTabClicked = (e, docs) => {
30
+ if (e.target.hasAttribute('expanded')) {
31
+ createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.TOP_CONTENT, docs.map((doc, index) => getSessResTC(doc, SessionResourceVisibility.PRESENTED, doc.id, index)), JSON.stringify({
32
+ product,
33
+ version,
34
+ summary,
35
+ description: getDescriptionWOQues(issue, environment, periodicityOfIssue, timeFramesAndUrgency),
36
+ }));
37
+ }
38
+ };
12
39
  return (React.createElement(React.Fragment, null,
13
40
  props.helperText ? (React.createElement(Tooltip, { content: React.createElement("div", null, props.helperText) },
14
- React.createElement("pfe-accordion-header", { "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}` },
15
- React.createElement("h3", null, props.name)))) : (React.createElement("pfe-accordion-header", { "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}` },
41
+ React.createElement("pfe-accordion-header", { "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, onClick: (e) => onTopContentTabClicked(e, props.items) },
42
+ React.createElement("h3", null, props.name)))) : (React.createElement("pfe-accordion-header", { "data-tracking-id": `top-content-accordion-header-${props.topContentIndex}`, onClick: (e) => onTopContentTabClicked(e, props.items) },
16
43
  React.createElement("h3", null, props.name))),
17
44
  React.createElement("pfe-accordion-panel", null,
18
- React.createElement("ul", { className: "list-flushleft" }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
45
+ React.createElement("ul", { className: "list-flushleft", style: { listStyleType: 'disc' } }, map(props.items, (item, i) => (React.createElement("li", { key: i + item.contentTitle },
19
46
  React.createElement("p", null,
20
47
  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)))))))));
21
48
  }
@@ -47,24 +47,24 @@ function TroubleshootSection(props) {
47
47
  " ",
48
48
  React.createElement("b", null, product))),
49
49
  React.createElement(LoadingDots, { show: topContent.isFetching }),
50
- topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "card-support top-recommendations pf-u-mb-md", isCompact: true },
50
+ topContent.data.length === 0 && (React.createElement(Card, { id: "card", className: "card-support top-recommendations pf-v5-u-mb-md", isCompact: true },
51
51
  React.createElement(CardHeader, { "aria-label": t('Popular solutions and docs'), className: "popular-solutions" },
52
52
  React.createElement(CardTitle, { id: "card-title", className: "card-title" },
53
53
  React.createElement(Trans, { i18nKey: 'i18nKeyPopularSolutions' }, "Popular solutions and docs"))),
54
- React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "file-recs-no-recommendation pf-u-mt-md" },
54
+ React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "file-recs-no-recommendation pf-v5-u-mt-md" },
55
55
  React.createElement(Trans, null, "No recommendations for this product")))),
56
56
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading suggestions') } }, canShowTopContent && !isEmpty(version) && React.createElement(Suggestions, null)),
57
- !isCreatingCase && React.createElement(ClusterRecommendations, { className: "pf-u-mt-lg" }))),
58
- React.createElement("section", { className: "pf-u-mt-lg" },
57
+ !isCreatingCase && React.createElement(ClusterRecommendations, { className: "pf-v5-u-mt-lg" }))),
58
+ React.createElement("section", { className: "pf-v5-u-mt-lg" },
59
59
  isNotAnIdea && (React.createElement(InsightsResults, { isDisplayOnMain: true, "data-tracking-id": "troubleshoot-section-file-recs" })),
60
- React.createElement("div", { className: "pf-u-mt-lg" }, canAddAttachments ? (React.createElement(FileDiag, null)) : (React.createElement(React.Fragment, null,
60
+ React.createElement("div", { className: "pf-v5-u-mt-lg" }, canAddAttachments ? (React.createElement(FileDiag, null)) : (React.createElement(React.Fragment, null,
61
61
  React.createElement(Card, { id: "card", className: "card-support card-white file-diag", isCompact: true },
62
62
  React.createElement(CardHeader, { "aria-label": !isNotAnIdea || loggedInUsersAccount.data.secureSupport
63
63
  ? t('File uploader')
64
64
  : t('Upload file to analyze'), className: "card-heading" },
65
65
  React.createElement(CardTitle, { id: "card-title", className: "card-title" }, !isNotAnIdea || loggedInUsersAccount.data.secureSupport ? (React.createElement(Trans, null, "File uploader")) : (React.createElement(Trans, null, "Upload file to analyze")))),
66
66
  React.createElement(CardBody, { "aria-label": t('No recommendations for this product'), className: "no-access-file-diag" },
67
- React.createElement("div", { className: "display-dashed pf-u-font-weight-bold pf-u-text-align-center pf-u-mt-md" },
67
+ React.createElement("div", { className: "display-dashed pf-v5-u-font-weight-bold pf-v5-u-text-align-center pf-v5-u-mt-md" },
68
68
  React.createElement(Trans, null, "You do not have access to upload files"),
69
69
  ".")))))))));
70
70
  }
@@ -286,7 +286,7 @@ export default function UpdateSeverityModal(props) {
286
286
  const modalBody = () => {
287
287
  return (React.createElement(React.Fragment, null,
288
288
  React.createElement("form", { "aria-label": t('form') },
289
- React.createElement("div", { className: "form-group pf-u-mt-xs" },
289
+ React.createElement("div", { className: "form-group pf-v5-u-mt-xs" },
290
290
  React.createElement("div", null,
291
291
  React.createElement(Dropdown, { name: "get-support-severity-modal", placeholder: t(`Select a severity`), title: t(`Select a severity`), list: allCaseSeverities.data
292
292
  ? toOptions(filteredSeverities, {
@@ -304,11 +304,11 @@ export default function UpdateSeverityModal(props) {
304
304
  ownersEntitlements.isFetching ||
305
305
  versionsDetails.isFetching, isLoadingList: isFetching || versionsDetails.isFetching, isInValid: allCaseSeverities.isError || isSeverityInValid, required: true, onChange: onSeverityChange, onOuterClick: setIsSeverityInValidLocal, "data-tracking-id": "get-support-severity-modal" })),
306
306
  React.createElement("div", null,
307
- React.createElement("label", { htmlFor: "date-input", className: "pf-u-mt-md" },
307
+ React.createElement("label", { htmlFor: "date-input", className: "pf-v5-u-mt-md" },
308
308
  React.createElement(Trans, null, "Describe update"),
309
309
  React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
310
- React.createElement(TextArea, { placeholder: "Please identify any changes in the case's business impact", isDisabled: (caseOverviewState.caseSeverityUpdating && isCaseUpdating) || isPostingComment, value: descriptionValue, onChange: handleTextAreaChange, resizeOrientation: "vertical", "aria-label": "summary", isRequired: true }),
311
- React.createElement("div", { className: "pf-u-mt-xs" },
310
+ React.createElement(TextArea, { placeholder: "Please identify any changes in the case's business impact", isDisabled: (caseOverviewState.caseSeverityUpdating && isCaseUpdating) || isPostingComment, value: descriptionValue, onChange: (_event, value) => handleTextAreaChange(value), resizeOrientation: "vertical", "aria-label": "summary", isRequired: true }),
311
+ React.createElement("div", { className: "pf-v5-u-mt-xs" },
312
312
  React.createElement(Trans, null, "Your comment will be visible under discussions")))))));
313
313
  };
314
314
  // Main modal and its headings