@rh-support/troubleshoot 2.7.0 → 2.32.2-prodBackup

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 (219) hide show
  1. package/lib/esm/components/AccountInfo/AccountSelector.js +4 -4
  2. package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
  3. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
  4. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +38 -33
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +70 -58
  7. package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
  8. package/lib/esm/components/CaseEditView/Case.js +50 -14
  9. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  10. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +45 -30
  11. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
  12. package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
  13. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +7 -16
  14. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
  15. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +1 -1
  16. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
  17. package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
  18. package/lib/esm/components/CaseEditView/CaseOverview/index.js +10 -9
  19. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
  20. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +28 -23
  21. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
  22. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
  23. package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +3 -3
  24. package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
  25. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
  26. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +51 -35
  27. package/lib/esm/components/CaseEditView/PDFContainer.js +19 -15
  28. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +1 -1
  29. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +33 -16
  30. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
  31. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +13 -16
  32. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
  33. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +50 -42
  34. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
  35. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +33 -16
  36. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
  37. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +53 -48
  38. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
  39. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -3
  40. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +2 -2
  41. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
  42. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +7 -7
  43. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
  44. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
  45. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +1 -1
  46. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts.map +1 -1
  47. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +5 -8
  48. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
  49. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +3 -3
  50. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
  51. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +2 -2
  52. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -1
  53. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +3 -4
  54. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +2 -2
  55. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.d.ts +1 -2
  56. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.d.ts.map +1 -1
  57. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.js +2 -3
  58. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +2 -2
  59. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
  60. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
  61. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +19 -2
  62. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +2 -2
  63. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +1 -1
  64. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
  65. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +2 -3
  66. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
  67. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +6 -6
  68. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
  69. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +26 -18
  70. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +27 -4
  71. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
  72. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +5 -8
  73. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
  74. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -4
  75. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
  76. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +4 -6
  77. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.d.ts.map +1 -1
  78. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.js +4 -6
  79. package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
  80. package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts.map +1 -1
  81. package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +2 -3
  82. package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
  83. package/lib/esm/components/CaseInformation/CaseGroup.js +1 -2
  84. package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
  85. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
  86. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
  87. package/lib/esm/components/CaseInformation/Description.js +4 -4
  88. package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
  89. package/lib/esm/components/CaseInformation/Fts.js +8 -8
  90. package/lib/esm/components/CaseInformation/OpenCaseIssue.js +2 -2
  91. package/lib/esm/components/CaseInformation/Severity.js +1 -1
  92. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  93. package/lib/esm/components/CaseInformation/SupportLevel.js +16 -10
  94. package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
  95. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +14 -11
  96. package/lib/esm/components/CaseManagement/CaseManagement.js +4 -4
  97. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  98. package/lib/esm/components/CaseManagement/Cep.js +44 -41
  99. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
  100. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +50 -42
  101. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
  102. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +39 -63
  103. package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
  104. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts +0 -3
  105. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  106. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +80 -46
  107. package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
  108. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +8 -6
  109. package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts.map +1 -1
  110. package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.js +8 -8
  111. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
  112. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +19 -21
  113. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
  114. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +11 -8
  115. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
  116. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +55 -21
  117. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
  118. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +12 -27
  119. package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts.map +1 -1
  120. package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.js +1 -1
  121. package/lib/esm/components/Cve/CveItem.d.ts.map +1 -1
  122. package/lib/esm/components/Cve/CveItem.js +10 -11
  123. package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
  124. package/lib/esm/components/Cve/CveModal.js +11 -11
  125. package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -1
  126. package/lib/esm/components/Cve/CvePanel.js +3 -3
  127. package/lib/esm/components/Cve/CveSidebar.js +2 -2
  128. package/lib/esm/components/IdeaInformation/IdeaInformation.js +7 -7
  129. package/lib/esm/components/ImproveCase/KtQuestions.js +6 -6
  130. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
  131. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +6 -13
  132. package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
  133. package/lib/esm/components/ProductSelector/AllProductsSelector.js +12 -8
  134. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -1
  135. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  136. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +83 -47
  137. package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
  138. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +14 -10
  139. package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
  140. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +4 -4
  141. package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
  142. package/lib/esm/components/Recommendations/AsideResults.js +6 -4
  143. package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
  144. package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
  145. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
  146. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +10 -11
  147. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
  148. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +6 -4
  149. package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
  150. package/lib/esm/components/Recommendations/InsightsResults.js +2 -2
  151. package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
  152. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +23 -16
  153. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts.map +1 -1
  154. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +7 -7
  155. package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -1
  156. package/lib/esm/components/Recommendations/RecommendationInfoBox.js +7 -7
  157. package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
  158. package/lib/esm/components/Recommendations/Recommendations.js +23 -20
  159. package/lib/esm/components/Recommendations/RecommendationsLoader.js +1 -1
  160. package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
  161. package/lib/esm/components/Recommendations/RulesModal.js +10 -12
  162. package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts.map +1 -1
  163. package/lib/esm/components/Recommendations/WatsonxAiIcon.js +9 -10
  164. package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
  165. package/lib/esm/components/Review/Review.js +4 -4
  166. package/lib/esm/components/SessionRestore/RestoreLastSessionModal.d.ts.map +1 -1
  167. package/lib/esm/components/SessionRestore/RestoreLastSessionModal.js +7 -5
  168. package/lib/esm/components/SessionRestore/SessionRestore.js +1 -1
  169. package/lib/esm/components/SessionRestore/SessionRestoreCard.js +1 -1
  170. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  171. package/lib/esm/components/SubmitCase/SubmitCase.js +21 -21
  172. package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
  173. package/lib/esm/components/Suggestions/Suggestions.js +19 -14
  174. package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
  175. package/lib/esm/components/Suggestions/TopContent.js +16 -16
  176. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
  177. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +13 -14
  178. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
  179. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +20 -16
  180. package/lib/esm/components/shared/Rule.js +6 -6
  181. package/lib/esm/components/shared/fileUpload/FileLister.js +6 -6
  182. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
  183. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +7 -6
  184. package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
  185. package/lib/esm/components/shared/fileUpload/css/fileSelector.css +2 -0
  186. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
  187. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
  188. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +4 -4
  189. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
  190. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +16 -6
  191. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
  192. package/lib/esm/components/shared/input/ContactSelectorInternal.js +133 -23
  193. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  194. package/lib/esm/components/shared/useIsSectionValid.js +60 -4
  195. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
  196. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +8 -2
  197. package/lib/esm/components/wizardLayout/MainSection.js +2 -2
  198. package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -1
  199. package/lib/esm/components/wizardLayout/NewFeatureModal.js +6 -6
  200. package/lib/esm/components/wizardLayout/WizardAside.js +3 -3
  201. package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
  202. package/lib/esm/components/wizardLayout/WizardMain.js +62 -19
  203. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +2 -2
  204. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  205. package/lib/esm/components/wizardLayout/WizardNavigation.js +21 -22
  206. package/lib/esm/css/app.css +18 -17
  207. package/lib/esm/css/case.css +62 -22
  208. package/lib/esm/css/results.css +2 -2
  209. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  210. package/lib/esm/hooks/useWizard.js +1 -3
  211. package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
  212. package/lib/esm/reducers/CaseReducer.js +2 -2
  213. package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -2
  214. package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
  215. package/lib/esm/reducers/RouteConstNTypes.js +2 -0
  216. package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
  217. package/lib/esm/scss/_main.scss +251 -94
  218. package/lib/esm/scss/_pf-overrides.scss +186 -149
  219. package/package.json +11 -11
@@ -198,7 +198,7 @@ function CaseContactSelector(props) {
198
198
  ...customEmailsList.data,
199
199
  ...filter(selectedNotificationContacts, (c) => !c.isInternal),
200
200
  ];
201
- if (xor(alreadySelected, selectedContacts).length === 0)
201
+ if (alreadySelected.length !== 1 && xor(alreadySelected, selectedContacts).length === 0)
202
202
  return;
203
203
  if (canEditCase.alert())
204
204
  return;
@@ -248,7 +248,9 @@ function CaseContactSelector(props) {
248
248
  return false;
249
249
  };
250
250
  const clearNonOrgTypeahead = () => {
251
- nonOrgTypeaheadRef.current && nonOrgTypeaheadRef.current.clear();
251
+ if (nonOrgTypeaheadRef.current) {
252
+ nonOrgTypeaheadRef.current.value = '';
253
+ }
252
254
  };
253
255
  const clearErrorState = () => {
254
256
  showGroupPermissionError && setShowGroupPermissionError(false);
@@ -259,7 +261,7 @@ function CaseContactSelector(props) {
259
261
  const getCreateNewText = (query) => `Add to your account: ${query}`;
260
262
  if (!canSeeEmailNotifications)
261
263
  return React.createElement(React.Fragment, null);
262
- return (React.createElement("div", { className: "form-group pf-v5-u-mb-md" },
264
+ return (React.createElement("div", { className: "form-group pf-v6-u-mb-md" },
263
265
  React.createElement("label", { className: "react-typeahead-label-wrapper", htmlFor: "get-support-notifications" },
264
266
  React.createElement(Trans, null, "Send notifications"),
265
267
  loggedInUserRights.data.isOrgAdmin() ? (React.createElement(React.Fragment, null,
@@ -267,7 +269,7 @@ function CaseContactSelector(props) {
267
269
  React.createElement(CaseContactsSelectorExternal, { isDisabled: isUpdatingCustomEmails || isAssociatesUpdating, groupContactsAndEmails: true, allowCustomEmailAdd: true, contactSsoUsername: contactSsoUsername !== null && contactSsoUsername !== void 0 ? contactSsoUsername : '', loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: [
268
270
  ...customEmailsList.data,
269
271
  ...filter(selectedNotificationContacts, (c) => !c.isInternal),
270
- ], contactsToExclude: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onNotifiedUserChange, clearButton: true, multiple: true, placeholder: t(`Search for an email address or username of the person you want to notify`), id: "open-case-notifications", name: "open-case-notifications", className: "react-select-custom", renderToken: renderToken, isUpdating: isAssociatesUpdating ||
272
+ ], contactsToExclude: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onNotifiedUserChange, clearButton: true, multiple: true, placeholder: t('Search for an email address or username of the person you want to notify'), id: "open-case-notifications", name: "open-case-notifications", className: "react-select-custom", renderToken: renderToken, isUpdating: isAssociatesUpdating ||
271
273
  customEmailsList.isFetching ||
272
274
  isUpdatingCustomEmails ||
273
275
  isCaseOwnerUpdating, isExportingPDF: isExportingPDF, customEmails: accountCustomEmails.data || [], canAddNew: onAddNew, getCreateNewText: getCreateNewText })),
@@ -284,12 +286,13 @@ function CaseContactSelector(props) {
284
286
  " is not listed under your account. You can always",
285
287
  ' ',
286
288
  React.createElement(Button, { variant: "link", isInline: true, component: "span", onClick: onAddEmailToAccountBtnClick }, "add them at the account level"))))),
287
- caseNumber && showAddWatchButton() && !isExportingPDF && (React.createElement(Button, { variant: "secondary", onClick: addCurrentUser, type: "button", "data-tracking-id": "case-add-me-watcher" },
289
+ caseNumber && showAddWatchButton() && !isExportingPDF && (React.createElement(Button, { className: "add-watcher-button", variant: "secondary", onClick: addCurrentUser, type: "button", "data-tracking-id": "case-add-me-watcher", isDisabled: isUpdatingCustomEmails || isAssociatesUpdating },
288
290
  React.createElement(Trans, null, "Add me as a watcher"))),
289
- caseNumber && showRemoveWatchButton() && !isExportingPDF && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-v5-u-display-inline-block" }, isCurrentUserCaseContact ? (React.createElement(React.Fragment, null,
291
+ caseNumber && showRemoveWatchButton() && !isExportingPDF && (React.createElement("div", { className: "remove-me-as-watcher pf-v6-u-display-inline-block" }, isCurrentUserCaseContact ? (React.createElement(React.Fragment, null,
290
292
  React.createElement(Tooltip, { trigger: 'mouseenter focus', triggerRef: toolTipRef, position: TooltipPosition.top, content: React.createElement(Trans, null, "You are case contact and therefore you cannot be removed as watcher") }),
291
- React.createElement(Button, { variant: "tertiary", onClick: removeCurrentUser, type: "button", isDisabled: true, "data-tracking-id": "case-remove-me-watcher" },
292
- React.createElement(Trans, null, "Remove me as a watcher")))) : (React.createElement(Button, { variant: "secondary", onClick: removeCurrentUser, type: "button", "data-tracking-id": "case-remove-me-watcher" },
293
+ React.createElement("div", { className: "pf-v6-u-display-inline-block", ref: toolTipRef },
294
+ React.createElement(Button, { className: "remove-watcher-button", variant: "tertiary", onClick: removeCurrentUser, type: "button", isDisabled: true, "data-tracking-id": "case-remove-me-watcher" },
295
+ React.createElement(Trans, null, "Remove me as a watcher"))))) : (React.createElement(Button, { className: "remove-watcher-button", variant: "secondary", onClick: removeCurrentUser, isDisabled: isUpdatingCustomEmails || isAssociatesUpdating, type: "button", "data-tracking-id": "case-remove-me-watcher" },
293
296
  React.createElement(Trans, null, "Remove me as a watcher"))))))) : (React.createElement(NonOrgCaseNotifyeesSelector, { id: "open-case-notifications", placeholder: t('Enter an email address or username for the person you want to notify'), isDisabled: isAssociatesUpdating || customEmailsList.isFetching || isUpdatingCustomEmails, selectedItems: [
294
297
  ...customEmailsList.data,
295
298
  ...filter(selectedNotificationContacts, (c) => !c.isInternal),
@@ -1 +1 @@
1
- {"version":3,"file":"NonOrgCaseNotifyeesSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAwB,oBAAoB,EAAY,MAAM,wBAAwB,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,aAAa,EAAE,oBAAoB,EAAE,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAeD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBA4JxD"}
1
+ {"version":3,"file":"NonOrgCaseNotifyeesSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAwB,oBAAoB,EAAY,MAAM,wBAAwB,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,aAAa,EAAE,oBAAoB,EAAE,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AA+BD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAuMxD"}
@@ -19,11 +19,10 @@ var __rest = (this && this.__rest) || function (s, e) {
19
19
  return t;
20
20
  };
21
21
  import { accounts } from '@cee-eng/hydrajs';
22
- import { Button, Flex, FlexItem } from '@patternfly/react-core';
22
+ import { Button, Flex, FlexItem, Label, LabelGroup, Menu, MenuContent, MenuItem, MenuList, Popper, TextInputGroup, TextInputGroupMain, } from '@patternfly/react-core';
23
23
  import { getHydraContactLabel, useFetch } from '@rh-support/components';
24
24
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
25
- import React, { useContext, useState } from 'react';
26
- import { Highlighter, Token, Typeahead } from 'react-bootstrap-typeahead';
25
+ import React, { useContext, useEffect, useRef, useState } from 'react';
27
26
  import { Trans } from 'react-i18next';
28
27
  const isCustomEmailAddress = (user) => {
29
28
  return !!(user === null || user === void 0 ? void 0 : user.emailAddress);
@@ -35,18 +34,39 @@ const getKey = (option) => {
35
34
  if (isCustomEmailAddress(option))
36
35
  return option.emailAddress;
37
36
  if (isContact(option))
38
- return option.ssoUsername;
37
+ return option.ssoUsername || '';
38
+ return '';
39
+ };
40
+ const CustomHighlighter = ({ search, children }) => {
41
+ if (!search)
42
+ return React.createElement(React.Fragment, null, children);
43
+ const regex = new RegExp(`(${search})`, 'gi');
44
+ const parts = children.split(regex);
45
+ return (React.createElement(React.Fragment, null, parts.map((part, index) => regex.test(part) ? (React.createElement("mark", { key: index, style: { backgroundColor: '#FFF3CD' } }, part)) : (part))));
39
46
  };
40
47
  export function NonOrgCaseNotifyeesSelector(props) {
41
48
  const [inputVal, setInputVal] = useState('');
49
+ const [isDropdownOpen, setIsDropdownOpen] = useState(false);
50
+ const inputRef = useRef(null);
51
+ const menuRef = useRef(null);
42
52
  const { request, isFetching } = useFetch(accounts.searchAccountForContactAndNotificationAddress);
43
53
  const [notifyeesList, setNotifyeesList] = useState([]);
44
54
  const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
45
55
  const [showGroupPermissionError, setShowGroupPermissionError] = useState(false);
46
56
  const [showAccountPermissionError, setShowAccountPermissionError] = useState(false);
47
- const onItemSelect = (selected) => {
48
- props.onChange && props.onChange(selected);
57
+ useEffect(() => {
58
+ if (props.typeaheadRef) {
59
+ props.typeaheadRef.current = inputRef.current;
60
+ }
61
+ }, [props.typeaheadRef]);
62
+ const onItemSelect = (option) => {
63
+ props.onChange && props.onChange([option]);
64
+ setInputVal('');
49
65
  clearList();
66
+ setIsDropdownOpen(false);
67
+ };
68
+ const onRemoveItem = (optionToRemove) => {
69
+ props.onChange && props.onChange([optionToRemove]);
50
70
  };
51
71
  const onAddClick = () => __awaiter(this, void 0, void 0, function* () {
52
72
  var _a, _b, _c;
@@ -102,22 +122,39 @@ export function NonOrgCaseNotifyeesSelector(props) {
102
122
  setInputVal(val);
103
123
  }
104
124
  clearList();
125
+ setIsDropdownOpen(false);
105
126
  };
106
- const renderToken = (option, thProps, idx) => {
107
- const isContactOption = isContact(option);
108
- const isCurrentUserCaseContact = option.ssoUsername === props.contactSsoUsername;
109
- return (React.createElement(Token, { option: option, key: idx, onRemove: thProps.onRemove, disabled: (props.isChipDisabled && isContactOption) || isCurrentUserCaseContact }, getHydraContactLabel(option)));
110
- };
111
- const renderMenuItemChildren = (option, p) => (React.createElement(Highlighter, { key: getKey(option), search: p.text }, getHydraContactLabel(option)));
112
- const onBlur = () => {
127
+ const onBlur = (event) => {
128
+ if (menuRef.current && menuRef.current.contains(event.relatedTarget)) {
129
+ return;
130
+ }
113
131
  clearList();
132
+ setIsDropdownOpen(false);
133
+ };
134
+ const renderSelectedItems = () => {
135
+ if (props.selectedItems.length === 0)
136
+ return null;
137
+ return (React.createElement(LabelGroup, { "aria-label": "Selected contacts" }, props.selectedItems.map((option, index) => {
138
+ const isContactOption = isContact(option);
139
+ const isCurrentUserCaseContact = isContactOption && option.ssoUsername === props.contactSsoUsername;
140
+ const isDisabled = (props.isChipDisabled && isContactOption) || isCurrentUserCaseContact;
141
+ return (React.createElement(Label, { key: getKey(option) || index, onClose: () => onRemoveItem(option), isDisabled: isDisabled, closeBtnAriaLabel: `Remove ${getHydraContactLabel(option)}`, variant: "outline", color: "blue" }, getHydraContactLabel(option)));
142
+ })));
114
143
  };
144
+ const menu = (React.createElement(Menu, { ref: menuRef },
145
+ React.createElement(MenuContent, null,
146
+ React.createElement(MenuList, null, notifyeesList.map((option, index) => (React.createElement(MenuItem, { key: getKey(option) || index, onClick: () => onItemSelect(option) },
147
+ React.createElement(CustomHighlighter, { search: inputVal }, getHydraContactLabel(option)))))))));
115
148
  return (React.createElement(Flex, null,
116
149
  React.createElement(FlexItem, { grow: { sm: 'grow' } },
117
- React.createElement(Typeahead, { id: props.id, "data-tracking-id": props.dataTrackingId, onChange: onItemSelect, onInputChange: onInputChange, open: notifyeesList.length > 0, ref: props.typeaheadRef, selected: props.selectedItems, placeholder: props.placeholder, disabled: props.isDisabled || isFetching, options: notifyeesList, renderToken: renderToken, multiple: true, filterBy: () => true, labelKey: getHydraContactLabel, renderMenuItemChildren: renderMenuItemChildren, onBlur: onBlur, isInvalid: showGroupPermissionError || showAccountPermissionError }),
118
- props.selectedItems.length > 0 && !showAccountPermissionError && !showAccountPermissionError && (React.createElement("p", { className: "form-instructions" },
119
- React.createElement(Trans, null, "Enter an email address or username for the person you want to notify"))),
120
- React.createElement("p", { className: "pf-v5-c-form__helper-text pf-m-error", style: { color: '#c9190b' } },
150
+ React.createElement("div", null,
151
+ React.createElement(Flex, null,
152
+ React.createElement(FlexItem, { grow: { sm: 'grow' } },
153
+ React.createElement(Popper, { trigger: React.createElement(TextInputGroup, null,
154
+ React.createElement(TextInputGroupMain, { ref: inputRef, id: props.id, "data-tracking-id": props.dataTrackingId, value: inputVal, onChange: (_, value) => onInputChange(value), placeholder: props.placeholder, disabled: props.isDisabled || isFetching, onBlur: onBlur }, renderSelectedItems())), popper: menu, isVisible: isDropdownOpen && notifyeesList.length > 0, position: "start" })),
155
+ React.createElement(Button, { variant: "primary", onClick: onAddClick, isLoading: props.isDisabled || isFetching, spinnerAriaValueText: props.isDisabled ? 'Loading' : undefined, isDisabled: !(inputVal || '').trim() || props.isDisabled || isFetching, "data-tracking-id": `${props.dataTrackingId}-add-btn`, className: "send-notifications-add" },
156
+ React.createElement(Trans, null, "Add")))),
157
+ React.createElement("p", { className: "pf-v6-c-form__helper-text pf-m-error", style: { color: '#C9190B' } },
121
158
  showGroupPermissionError && (React.createElement(Trans, null,
122
159
  inputVal,
123
160
  " was not found under the selected group. Please contact your Org Admin to add them to this group.")),
@@ -125,8 +162,5 @@ export function NonOrgCaseNotifyeesSelector(props) {
125
162
  inputVal,
126
163
  " isn't associated with your account. Please contact Org Admin to add them to your account.")),
127
164
  !showGroupPermissionError && !showAccountPermissionError && (React.createElement("p", { className: "form-instructions" },
128
- React.createElement(Trans, null, "Include someone from your account to inform about the status of this case."))))),
129
- React.createElement(FlexItem, { style: { alignSelf: 'flex-start' } },
130
- React.createElement(Button, { variant: "primary", onClick: onAddClick, isLoading: props.isDisabled || isFetching, spinnerAriaValueText: props.isDisabled ? 'Loading' : undefined, isDisabled: !(inputVal || '').trim() || props.isDisabled || isFetching, "data-tracking-id": `${props.dataTrackingId}-add-btn` },
131
- React.createElement(Trans, null, "Add")))));
165
+ React.createElement(Trans, null, "Include someone from your account to inform about the status of this case.")))))));
132
166
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NoAttachmentSelectedModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/NoAttachmentSelectedModal.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAiBvE,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAID,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAuJtD"}
1
+ {"version":3,"file":"NoAttachmentSelectedModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/NoAttachmentSelectedModal.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAiBvE,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAID,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAiJtD"}
@@ -1,4 +1,4 @@
1
- import { Button, ButtonVariant, Modal, ModalVariant } from '@patternfly/react-core';
1
+ import { Button, ButtonVariant, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, } from '@patternfly/react-core';
2
2
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
3
3
  import { ability, resourceActions, resources } from '@rh-support/user-permissions';
4
4
  import { pendoTrackEvent } from '@rh-support/utils';
@@ -56,26 +56,6 @@ export function NoAttachmentSelectedModal(props) {
56
56
  }
57
57
  return title;
58
58
  };
59
- const getModalActionButtons = () => {
60
- let actionButtons = [];
61
- if (isUploading) {
62
- actionButtons = [
63
- React.createElement(Button, { key: "create-case", variant: ButtonVariant.primary, onClick: props.onConfirm, "data-tracking-id": "skip-upload-or-analysis-and-submit" },
64
- React.createElement(Trans, null, "Skip analyze and create my case")),
65
- ];
66
- }
67
- else if (isAnyFileAttachedLocal) {
68
- actionButtons = [];
69
- }
70
- else {
71
- actionButtons = [
72
- React.createElement(FileSelectorButton, { key: "file-selector-btn", buttonLabel: t('Upload a file'), className: "pf-m-primary", "data-tracking-id": "no-attachment-file-selector-button", isSessionId: true }),
73
- React.createElement(Button, { key: "skip-file", onClick: props.onConfirm, className: "pf-v5-u-ml-sm", "data-tracking-id": "submit-without-attachment", variant: ButtonVariant.secondary },
74
- React.createElement(Trans, null, "Yes, I'm sure")),
75
- ];
76
- }
77
- return actionButtons;
78
- };
79
59
  const onFileUploadClick = () => {
80
60
  if (skipAndCreateCaseBtntimeoutRef.current) {
81
61
  clearTimeout(skipAndCreateCaseBtntimeoutRef.current);
@@ -92,12 +72,17 @@ export function NoAttachmentSelectedModal(props) {
92
72
  !isUploading && setIsUploading(true);
93
73
  }
94
74
  };
95
- return (React.createElement(Modal, { id: "no-attachment-selected", title: t(getModalTitle()), "aria-describedby": "no-attachment-selected-modal", isOpen: props.isOpen, onClose: props.onClose, showClose: true, actions: getModalActionButtons(), variant: ModalVariant.large, "data-tracking-id": "no-attachment-selected-modal-body" },
96
- !isAnyFileAttachedLocal && (React.createElement(React.Fragment, null,
97
- React.createElement("p", { className: "pf-v5-u-mb-md" },
75
+ return (React.createElement(Modal, { id: "no-attachment-selected", title: t(getModalTitle()), "aria-describedby": "no-attachment-selected-modal", isOpen: props.isOpen, onClose: props.onClose, variant: ModalVariant.large, "data-tracking-id": "no-attachment-selected-modal-body" },
76
+ React.createElement(ModalHeader, { title: t(getModalTitle()) }),
77
+ React.createElement(ModalBody, null, !isAnyFileAttachedLocal && (React.createElement(React.Fragment, null,
78
+ React.createElement("p", { className: "pf-v6-u-mb-md" },
98
79
  React.createElement(Trans, null, "Uploading an attachment will speed up your case's resolution time")),
99
- React.createElement(FileEARule, { isInline: true }))),
80
+ React.createElement(FileEARule, { isInline: true })))),
100
81
  React.createElement(FileUpload, { idToUploadTo: activeSessionId, onUploadClick: onFileUploadClick, isSessionId: true, needsAnalyzing: true, autoUploadOnSelect: loggedInUsersAccount.data.secureSupport ? false : true, isSecureSupport: loggedInUsersAccount.data.secureSupport, isPrivate: false }),
101
- !canUseSessionManagement && isAnyFileAttachedLocal && (React.createElement(Button, { className: "pf-v5-u-mt-sm", variant: ButtonVariant.primary, onClick: props.onConfirm, "data-tracking-id": "no-attachment-modal-create-case" },
102
- React.createElement(Trans, null, "Create Case")))));
82
+ React.createElement(ModalFooter, null, isUploading ? (React.createElement(Button, { key: "create-case", variant: ButtonVariant.primary, onClick: props.onConfirm, "data-tracking-id": "skip-upload-or-analysis-and-submit" },
83
+ React.createElement(Trans, null, "Skip analyze and create my case"))) : isAnyFileAttachedLocal ? (!canUseSessionManagement && (React.createElement(Button, { className: "pf-v6-u-mt-sm", variant: ButtonVariant.primary, onClick: props.onConfirm, "data-tracking-id": "no-attachment-modal-create-case" },
84
+ React.createElement(Trans, null, "Create Case")))) : (React.createElement(React.Fragment, null,
85
+ React.createElement(FileSelectorButton, { key: "file-selector-btn", buttonLabel: t('Upload a file'), className: "pf-m-primary", "data-tracking-id": "no-attachment-file-selector-button", isSessionId: true }),
86
+ React.createElement(Button, { key: "skip-file", onClick: props.onConfirm, className: "pf-v6-u-ml-sm", "data-tracking-id": "submit-without-attachment", variant: ButtonVariant.secondary },
87
+ React.createElement(Trans, null, "Yes, I'm sure")))))));
103
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PreferredSecureSupportModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/PreferredSecureSupportModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,2BAA2B,UAAW,MAAM,sBAiCxD,CAAC"}
1
+ {"version":3,"file":"PreferredSecureSupportModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/PreferredSecureSupportModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,2BAA2B,UAAW,MAAM,sBAgCxD,CAAC"}
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { Trans, useTranslation } from 'react-i18next';
4
4
  export const PreferredSecureSupportModal = (props) => {
5
5
  const { t } = useTranslation();
6
- return (React.createElement(Modal, { id: "preferred-secured-support-modal", title: t('Preferred secure support account'), "aria-describedby": "preferred-secured-support-modal", isOpen: props.isOpen, onClose: props.onClose, showClose: true, variant: ModalVariant.small },
6
+ return (React.createElement(Modal, { id: "preferred-secured-support-modal", title: t('Preferred secure support account'), "aria-describedby": "preferred-secured-support-modal", isOpen: props.isOpen, onClose: props.onClose, variant: ModalVariant.small },
7
7
  React.createElement("p", null,
8
8
  React.createElement(Trans, null, "To comply with AT&T's SISR agreement, all Red Hat support cases must be opened under a different, designated secure support account."),
9
9
  "\u00A0",
@@ -1 +1 @@
1
- {"version":3,"file":"CveItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CveItem.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAKrD,OAAO,EAAE,0BAA0B,EAAkB,MAAM,oCAAoC,CAAC;AAShG,UAAU,KAAK;IACX,GAAG,EAAE,0BAA0B,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB;AAaD,eAAO,MAAM,OAAO,UAAW,KAAK,sBA2NnC,CAAC"}
1
+ {"version":3,"file":"CveItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CveItem.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAKrD,OAAO,EAAE,0BAA0B,EAAkB,MAAM,oCAAoC,CAAC;AAShG,UAAU,KAAK;IACX,GAAG,EAAE,0BAA0B,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB;AAaD,eAAO,MAAM,OAAO,UAAW,KAAK,sBAsNnC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { pcm } from '@cee-eng/hydrajs';
2
- import { Button, Flex, FlexItem, Label, LabelGroup, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Button, Content, ContentVariants, Flex, FlexItem, Label, LabelGroup } from '@patternfly/react-core';
3
3
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon';
4
4
  import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon';
5
5
  import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
@@ -66,7 +66,7 @@ export const CveItem = (props) => {
66
66
  ? SessionResourceWorkflowComponent.CVE_MODEl
67
67
  : SessionResourceWorkflowComponent.CVE_ASIDE, isVisited ? true : false, isCveModalOpened ? 3 : 2));
68
68
  };
69
- const renderDate = () => (cve === null || cve === void 0 ? void 0 : cve.publicDate) && (React.createElement("div", { className: "pf-v5-u-disabled-color-100" },
69
+ const renderDate = () => (cve === null || cve === void 0 ? void 0 : cve.publicDate) && (React.createElement("div", { className: "pf-v6-u-disabled-color-100" },
70
70
  React.createElement(Trans, null, "Public on"),
71
71
  " - ",
72
72
  formatDate(cve.publicDate)));
@@ -78,7 +78,7 @@ export const CveItem = (props) => {
78
78
  : cve.severity === 'Important'
79
79
  ? 'orange'
80
80
  : cve.severity === 'Moderate'
81
- ? 'gold'
81
+ ? 'yellow'
82
82
  : undefined, isCompact: true }, cve.severity)),
83
83
  !isEmpty(cve.errataData) && (React.createElement(Label, { color: "blue", isCompact: true },
84
84
  React.createElement(Trans, null, "Fixed"))),
@@ -88,7 +88,7 @@ export const CveItem = (props) => {
88
88
  if (isEmpty(cve === null || cve === void 0 ? void 0 : cve.errataData)) {
89
89
  return null;
90
90
  }
91
- return (React.createElement(Table, { "aria-label": "Errata table", variant: 'compact', className: "pf-v5-u-mt-md", style: { borderTop: 'var(--pf-v5-global--BorderColor--light-100) solid 1px' } },
91
+ return (React.createElement(Table, { "aria-label": "Errata table", variant: 'compact', className: "pf-v6-u-mt-md" },
92
92
  React.createElement(Thead, null,
93
93
  React.createElement(Tr, null,
94
94
  React.createElement(Th, null,
@@ -101,9 +101,9 @@ export const CveItem = (props) => {
101
101
  var _a, _b, _c;
102
102
  return (React.createElement(Tr, Object.assign({ key: (_a = errata === null || errata === void 0 ? void 0 : errata.advisory) === null || _a === void 0 ? void 0 : _a.name }, (index % 2 === 0 && { isStriped: true })),
103
103
  React.createElement(Td, null,
104
- React.createElement(Text, { component: TextVariants.a, href: (_b = errata === null || errata === void 0 ? void 0 : errata.advisory) === null || _b === void 0 ? void 0 : _b.url, target: "_blank", ouiaSafe: true, "data-tracking-id": "errata-link", onClick: () => onClickErrataLink(errata, index) }, (_c = errata === null || errata === void 0 ? void 0 : errata.advisory) === null || _c === void 0 ? void 0 :
104
+ React.createElement(Content, { component: ContentVariants.a, href: (_b = errata === null || errata === void 0 ? void 0 : errata.advisory) === null || _b === void 0 ? void 0 : _b.url, target: "_blank", ouiaSafe: true, "data-tracking-id": "errata-link", onClick: () => onClickErrataLink(errata, index) }, (_c = errata === null || errata === void 0 ? void 0 : errata.advisory) === null || _c === void 0 ? void 0 :
105
105
  _c.name,
106
- React.createElement(ExternalLinkAltIcon, { className: "pf-v5-u-ml-sm" }))),
106
+ React.createElement(ExternalLinkAltIcon, { className: "pf-v6-u-ml-sm" }))),
107
107
  React.createElement(Td, { modifier: "truncate" }, errata === null || errata === void 0 ? void 0 : errata.package),
108
108
  React.createElement(Td, null,
109
109
  React.createElement(Trans, null, errata === null || errata === void 0 ? void 0 : errata.state))));
@@ -112,7 +112,7 @@ export const CveItem = (props) => {
112
112
  const displayDescription = () => {
113
113
  var _a;
114
114
  if (isEmpty(cve === null || cve === void 0 ? void 0 : cve.mitigation) && ((_a = cve === null || cve === void 0 ? void 0 : cve.errataData) === null || _a === void 0 ? void 0 : _a.length) === 0) {
115
- return (React.createElement("p", { className: "pf-v5-u-mt-md" },
115
+ return (React.createElement("p", { className: "pf-v6-u-mt-md" },
116
116
  React.createElement(Trans, null, "for this CVE, mitigation and fix is not available, for more details, go to the CVE page.")));
117
117
  }
118
118
  const MAX_DESCRIPTION_LENGTH = isCveModalOpened ? 300 : 120;
@@ -122,7 +122,7 @@ export const CveItem = (props) => {
122
122
  const trimmedDescription = description.length <= MAX_DESCRIPTION_LENGTH
123
123
  ? description
124
124
  : description.slice(0, MAX_DESCRIPTION_LENGTH).trim() + '...';
125
- return React.createElement("p", { className: "pf-v5-u-mt-md pf-v5-u-color-300", dangerouslySetInnerHTML: sanitize(trimmedDescription) });
125
+ return React.createElement("p", { className: "pf-v6-u-mt-md pf-v6-u-color-300", dangerouslySetInnerHTML: sanitize(trimmedDescription) });
126
126
  };
127
127
  const onClickGoToCveButtonPage = () => {
128
128
  onPresentOrVisitedCveErrataData(true);
@@ -133,7 +133,6 @@ export const CveItem = (props) => {
133
133
  React.createElement(FlexItem, null, renderDate())),
134
134
  displayErrataTable(),
135
135
  displayDescription(),
136
- (cve === null || cve === void 0 ? void 0 : cve.cveLink) && (React.createElement(Button, { variant: "primary", className: isCveModalOpened ? 'pf-v5-u-my-md' : '', "data-tracking-id": "go-to-CVE-button", component: "a", href: `${cve.cveLink}?${RouteUtils.getSEResourceQueryParams(activeSessionId, (_b = (_a = sessionResourceTracking[workflowSource]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', SessionResourceSource.DRUPAL)}`, target: "_blank", rel: "noopener noreferrer", onClick: onClickGoToCveButtonPage },
137
- React.createElement(Trans, null, "Go to CVE"),
138
- React.createElement(ExternalLinkAltIcon, { className: "pf-v5-u-ml-sm" })))));
136
+ (cve === null || cve === void 0 ? void 0 : cve.cveLink) && (React.createElement(Button, { icon: React.createElement(ExternalLinkAltIcon, { className: "pf-v6-u-ml-sm" }), variant: "primary", className: isCveModalOpened ? 'pf-v6-u-my-md' : '', "data-tracking-id": "go-to-CVE-button", component: "a", href: `${cve.cveLink}?${RouteUtils.getSEResourceQueryParams(activeSessionId, (_b = (_a = sessionResourceTracking[workflowSource]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', SessionResourceSource.DRUPAL)}`, target: "_blank", rel: "noopener noreferrer", onClick: onClickGoToCveButtonPage },
137
+ React.createElement(Trans, null, "Go to CVE")))));
139
138
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CveModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CveModal.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,eAAO,MAAM,QAAQ,yBAuEpB,CAAC"}
1
+ {"version":3,"file":"CveModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CveModal.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,eAAO,MAAM,QAAQ,yBA2EpB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Badge, Button, Flex, FlexItem, Modal, ModalVariant } from '@patternfly/react-core';
1
+ import { Badge, Button, Flex, FlexItem, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, } from '@patternfly/react-core';
2
2
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon';
3
3
  import { getAccessHostname } from '@rh-support/utils';
4
4
  import isEqual from 'lodash/isEqual';
@@ -32,14 +32,14 @@ export const CveModal = () => {
32
32
  const cveTitles = join(map(cveWorkflowRecommendation, 'title'), ',');
33
33
  return `https://${getAccessHostname()}/labs/cvechecker/?source=pcm&session=${activeSessionId}&id=${cveTitles}`;
34
34
  };
35
- return (React.createElement(Modal, { variant: ModalVariant.medium, title: React.createElement(Flex, { alignItems: { default: 'alignItemsCenter' } },
36
- React.createElement(FlexItem, { spacer: { default: 'spacerSm' } }, cveWorkflowRecommendation.length > 1 ? (React.createElement(Trans, null, "Handpicked for these CVEs")) : (React.createElement(Trans, null, "Handpicked for this CVE"))),
37
- React.createElement(Badge, { isRead: true }, size(cveWorkflowRecommendation))), isOpen: isCveModalOpened &&
38
- activeSection === (isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT), onClose: handleModalToggle, titleIconVariant: "info", disableFocusTrap: true, className: "cve-modal-fade-in-effect", onEscapePress: handleEscapePress, actions: [
39
- React.createElement(Button, { key: "cve-checker-link", "data-tracking-id": "cve-checker-link", target: "_blank", variant: "secondary", isInline: true, component: "a", href: generateCveCheckerUrl() },
40
- React.createElement(Trans, null, "Red Hat CVE Checker"),
41
- " ",
42
- React.createElement(ExternalLinkAltIcon, { className: "pf-v5-u-ml-sm" })),
43
- ] },
44
- React.createElement(CvePanel, null)));
35
+ return (React.createElement(Modal, { variant: ModalVariant.medium, isOpen: isCveModalOpened &&
36
+ activeSection === (isCaseCreate ? AppRouteSections.SUMMARIZE : AppRouteSections.TROUBLESHOOT), onClose: handleModalToggle, disableFocusTrap: true, className: "cve-modal-fade-in-effect", onEscapePress: handleEscapePress },
37
+ React.createElement(ModalHeader, { title: React.createElement(Flex, { alignItems: { default: 'alignItemsCenter' } },
38
+ React.createElement(FlexItem, { spacer: { default: 'spacerSm' } }, cveWorkflowRecommendation.length > 1 ? (React.createElement(Trans, null, "Handpicked for these CVEs")) : (React.createElement(Trans, null, "Handpicked for this CVE"))),
39
+ React.createElement(Badge, { isRead: true }, size(cveWorkflowRecommendation))) }),
40
+ React.createElement(ModalBody, null,
41
+ React.createElement(CvePanel, null)),
42
+ React.createElement(ModalFooter, null,
43
+ React.createElement(Button, { icon: React.createElement(ExternalLinkAltIcon, { className: "pf-v6-u-ml-sm" }), key: "cve-checker-link", "data-tracking-id": "cve-checker-link", target: "_blank", variant: "secondary", isInline: true, component: "a", href: generateCveCheckerUrl() },
44
+ React.createElement(Trans, null, "Red Hat CVE Checker")))));
45
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CvePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CvePanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ,UAAW,MAAM,sBAyCrC,CAAC"}
1
+ {"version":3,"file":"CvePanel.d.ts","sourceRoot":"","sources":["../../../../src/components/Cve/CvePanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,QAAQ,UAAW,MAAM,sBAwCrC,CAAC"}
@@ -14,9 +14,9 @@ export const CvePanel = (props) => {
14
14
  const handleToggle = (id) => setExpanded(id === expanded ? '' : id);
15
15
  const renderAccordionItem = (cve, index) => {
16
16
  const isExpanded = expanded === (cve === null || cve === void 0 ? void 0 : cve.title);
17
- return (React.createElement(AccordionItem, { key: `cve-item-${index}` },
18
- React.createElement(AccordionToggle, { onClick: () => handleToggle(cve.title), isExpanded: isExpanded, id: `cve-toggle-${index}`, "data-tracking-id": "cve-accordion-toggle" }, cve.title),
19
- React.createElement(AccordionContent, { id: `cve-content-${index}`, isHidden: !isExpanded },
17
+ return (React.createElement(AccordionItem, { isExpanded: isExpanded, key: `cve-item-${index}` },
18
+ React.createElement(AccordionToggle, { onClick: () => handleToggle(cve.title), id: `cve-toggle-${index}`, "data-tracking-id": "cve-accordion-toggle" }, cve.title),
19
+ React.createElement(AccordionContent, { id: `cve-content-${index}` },
20
20
  React.createElement(CveItem, { cve: cve, isExpanded: isExpanded, index: index }))));
21
21
  };
22
22
  return (React.createElement(Accordion, { isBordered: true, displaySize: 'default', asDefinitionList: false, className: `${props.className ? props.className : ''}` }, map(slice(cveWorkflowRecommendation, 0, 4), renderAccordionItem)));
@@ -14,9 +14,9 @@ export const CveSidebar = () => {
14
14
  return null;
15
15
  }
16
16
  return (React.createElement(React.Fragment, null,
17
- React.createElement("div", { className: "card card-white card-support file-diag pf-v5-u-mb-md" },
17
+ React.createElement("div", { className: "card card-white card-support file-diag pf-v6-u-mb-lg" },
18
18
  React.createElement("h3", { className: "card-heading popular-solutions green-card-heading card-header-bg" },
19
- React.createElement("span", { className: "pf-v5-u-mr-sm" }, cveWorkflowRecommendation.length > 1 ? (React.createElement(Trans, null, "Handpicked for these CVEs")) : (React.createElement(Trans, null, "Handpicked for this CVE"))),
19
+ React.createElement("span", { className: "pf-v6-u-mr-sm" }, cveWorkflowRecommendation.length > 1 ? (React.createElement(Trans, null, "Handpicked for these CVEs")) : (React.createElement(Trans, null, "Handpicked for this CVE"))),
20
20
  React.createElement(Badge, { isRead: true }, size(cveWorkflowRecommendation))),
21
21
  React.createElement("div", { className: "card-body" },
22
22
  React.createElement(CvePanel, null)))));
@@ -72,14 +72,14 @@ export default function IdeaInformation() {
72
72
  };
73
73
  return (React.createElement(React.Fragment, null,
74
74
  React.createElement(LoadingIndicator, { show: isMetadataLoading(), size: "lg" }),
75
- React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v5-u-mb-md", title: t("Sorry, we're having a problem gathering your information."), show: isMetadataLoadingError(), isInline: true }),
76
- React.createElement(AlertMessage, { show: !canManageCase(loggedInUserJwtToken), variant: AlertType.DANGER, className: "pf-v5-u-mb-md", isInline: true },
75
+ React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v6-u-mb-md", title: t("Sorry, we're having a problem gathering your information."), show: isMetadataLoadingError(), isInline: true }),
76
+ React.createElement(AlertMessage, { show: !canManageCase(loggedInUserJwtToken), variant: AlertType.DANGER, className: "pf-v6-u-mb-md", isInline: true },
77
77
  React.createElement(Trans, { i18nKey: "i18ManageCaseContactCustomerService" },
78
78
  "You need additional access to manage cases.\u00A0 Please contact",
79
79
  ' ',
80
80
  React.createElement("a", { href: "/support/contact/customerService" }, "Customer Service"),
81
81
  " for assistance.")),
82
- React.createElement(AlertMessage, { show: hasInvalidEntitlements, variant: AlertType.DANGER, className: "pf-v5-u-mb-md", isInline: true },
82
+ React.createElement(AlertMessage, { show: hasInvalidEntitlements, variant: AlertType.DANGER, className: "pf-v6-u-mb-md", isInline: true },
83
83
  React.createElement(Trans, { i18nKey: "i18ValidEntitlementContactCustomerService" },
84
84
  "You need a valid entitlement to create a case.\u00A0 Please contact",
85
85
  ' ',
@@ -93,15 +93,15 @@ export default function IdeaInformation() {
93
93
  React.createElement(KtQuestions, { onlyShowKT4: true }),
94
94
  React.createElement(SupportLevel, null),
95
95
  React.createElement(Grid, { hasGutter: true },
96
- React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xl" },
96
+ React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xl" },
97
97
  React.createElement(Severity, { showSeverityInfoIcon: true, onSeverityChange: onSeverityChange })),
98
- React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xl" },
98
+ React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xl" },
99
99
  React.createElement(ContactPhoneNumber, null))),
100
100
  React.createElement(ContactPhoneNumberAlert, null),
101
101
  React.createElement(Grid, { hasGutter: true },
102
- React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
102
+ React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
103
103
  React.createElement(CaseLanguageSelector, { isManageStep: true })),
104
- React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v5-u-mb-xs" },
104
+ React.createElement(GridItem, { span: 12, xl2: 6, className: "pf-v6-u-mb-xs" },
105
105
  React.createElement(CaseGroup, { init: true }))),
106
106
  React.createElement(CaseContactSelector, null),
107
107
  React.createElement(RHAssociatesSelector, null),
@@ -97,8 +97,8 @@ function KtQuestions(props) {
97
97
  (timeFramesAndUrgency && (timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > KT4_QUESTION_MAX_LIMIT)
98
98
  ? 'error'
99
99
  : 'default', "aria-invalid": timeFramesAndUrgency && (timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > KT4_QUESTION_MAX_LIMIT ? 'true' : 'false', id: "ktQ4-timeFramesAndUrgency", value: timeFramesAndUrgency, onChange: (e, value) => onKtQ4Change(value, e), "aria-required": isKT4Required, "data-tracking-id": "get-support-ktQ4-timeFramesAndUrgency", placeholder: t('Describe the user or financial impact. Tell us about any legal, national, or medical urgency.'), isRequired: isKT4Required, resizeOrientation: "vertical", rows: 5 }),
100
- React.createElement("p", { className: "form-instructions pf-v5-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ4-environment" }, `${(timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > KT4_QUESTION_MAX_LIMIT ? KT4_QUESTION_ERROR_MESSAGE : ''}`),
101
- React.createElement(Progress, { value: timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length, min: 0, max: KT4_QUESTION_MAX_LIMIT, size: ProgressSize.sm, label: `${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, valueText: `${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, variant: getVariantQ4(), title: ' ', className: `pf-v5-u-mt-md kt-progress-bar`, id: "summary-progress-bar" })),
100
+ React.createElement("p", { className: "form-instructions pf-v6-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ4-environment" }, `${(timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length) > KT4_QUESTION_MAX_LIMIT ? KT4_QUESTION_ERROR_MESSAGE : ''}`),
101
+ React.createElement(Progress, { value: timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length, min: 0, max: KT4_QUESTION_MAX_LIMIT, size: ProgressSize.sm, label: `${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, valueText: `${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${timeFramesAndUrgency === null || timeFramesAndUrgency === void 0 ? void 0 : timeFramesAndUrgency.length} / ${KT4_QUESTION_MAX_LIMIT}`, variant: getVariantQ4(), title: ' ', className: `pf-v6-u-mt-md kt-progress-bar`, id: "summary-progress-bar" })),
102
102
  !props.onlyShowKT4 && (React.createElement(React.Fragment, null,
103
103
  React.createElement(InlineEdit, { labelProps: { htmlFor: 'ktQ2-environment' }, labelContent: React.createElement(React.Fragment, null,
104
104
  t(KtQuestionConstant.environment),
@@ -107,8 +107,8 @@ function KtQuestions(props) {
107
107
  React.createElement(TextArea, { id: "ktQ2-environment", validated: environment && (environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT
108
108
  ? 'error'
109
109
  : 'default', value: environment, onChange: (e, value) => onKtQ2Change(value, e), "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", placeholder: t('Please provide details about the location, device, software version, etc. where you encounter this issue'), rows: 5 }),
110
- React.createElement("p", { className: "form-instructions pf-v5-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ2-environment" }, `${(environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT ? KTQ2LengthError : ''}`),
111
- React.createElement(Progress, { value: environment === null || environment === void 0 ? void 0 : environment.length, min: 0, max: CASE_DEATILS_ENVIRONMENT_LIMIT, size: ProgressSize.sm, label: `${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, valueText: `${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, variant: getVariantQ2(), title: ' ', className: `pf-v5-u-mt-md kt-progress-bar`, id: "summary-progress-bar" })),
110
+ React.createElement("p", { className: "form-instructions pf-v6-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ2-environment" }, `${(environment === null || environment === void 0 ? void 0 : environment.length) > CASE_DEATILS_ENVIRONMENT_LIMIT ? KTQ2LengthError : ''}`),
111
+ React.createElement(Progress, { value: environment === null || environment === void 0 ? void 0 : environment.length, min: 0, max: CASE_DEATILS_ENVIRONMENT_LIMIT, size: ProgressSize.sm, label: `${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, valueText: `${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${environment === null || environment === void 0 ? void 0 : environment.length} / ${CASE_DEATILS_ENVIRONMENT_LIMIT}`, variant: getVariantQ2(), title: ' ', className: `pf-v6-u-mt-md kt-progress-bar`, id: "summary-progress-bar" })),
112
112
  React.createElement(InlineEdit, { labelProps: { htmlFor: 'ktQ3-periodicityOfIssue' }, labelContent: React.createElement(React.Fragment, null,
113
113
  t(KtQuestionConstant.periodicityOfIssue),
114
114
  ' ',
@@ -118,8 +118,8 @@ function KtQuestions(props) {
118
118
  : 'default', value: periodicityOfIssue, onChange: (e, value) => onKtQ3Change(value, e), "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
119
119
  ? 'true'
120
120
  : 'false', resizeOrientation: "vertical", placeholder: t('Describe when and how often the problem occurs, e.g., daily, after specific actions, at particular times of day, etc.'), rows: 5 }),
121
- React.createElement("p", { className: "form-instructions pf-v5-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ3-environment" }, `${(periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT ? KTQ3LengthError : ''}`),
122
- React.createElement(Progress, { value: periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length, min: 0, max: KTQUESTION_MAX_LIMIT, size: ProgressSize.sm, label: `${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, valueText: `${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, variant: getVariantQ3(), title: ' ', className: `pf-v5-u-mt-md kt-progress-bar`, id: "summary-progress-bar" }))))));
121
+ React.createElement("p", { className: "form-instructions pf-v6-u-danger-color-100", "data-tracking-id": "large-4k-warning-ktQ3-environment" }, `${(periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length) > CASE_DEATILS_PERIODICITYOFISSUE_LIMIT ? KTQ3LengthError : ''}`),
122
+ React.createElement(Progress, { value: periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length, min: 0, max: KTQUESTION_MAX_LIMIT, size: ProgressSize.sm, label: `${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, valueText: `${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, measureLocation: ProgressMeasureLocation.top, "aria-label": `Progress - ${periodicityOfIssue === null || periodicityOfIssue === void 0 ? void 0 : periodicityOfIssue.length} / ${KTQUESTION_MAX_LIMIT}`, variant: getVariantQ3(), title: ' ', className: `pf-v6-u-mt-md kt-progress-bar`, id: "summary-progress-bar" }))))));
123
123
  }
124
124
  KtQuestions.defaultProps = defaultProps;
125
125
  export default KtQuestions;
@@ -1 +1 @@
1
- {"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,MAAM,CAAC,OAAO,UAAU,uBAAuB,sBA6M9C"}
1
+ {"version":3,"file":"SupportTypeSelectorPage.d.ts","sourceRoot":"","sources":["../../../../src/components/OpenCase/SupportTypeSelectorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAiB/D,MAAM,CAAC,OAAO,UAAU,uBAAuB,sBAiM9C"}
@@ -4,14 +4,13 @@ import { fetchCaseTypes, useGlobalDispatchContext, useGlobalStateContext } from
4
4
  import { haventLoadedMetadata, NewCaseTypes, PreviousCaseTypes } from '@rh-support/utils';
5
5
  import isEqual from 'lodash/isEqual';
6
6
  import React, { useContext, useEffect, useState } from 'react';
7
- import { Trans, useTranslation } from 'react-i18next';
7
+ import { Trans } from 'react-i18next';
8
8
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
9
9
  import { RouteContext } from '../../context/RouteContext';
10
10
  import { getUpdatedDescription } from '../../reducers/CaseHelpers';
11
11
  import { setCaseDetails } from '../../reducers/CaseReducer';
12
12
  import { BugIcon, CertificationIcon, CustomerServiceIcon, DocumentationIcon, GearIcon, IdeaIcon, RcaIcon, } from './SupportTypeIcons';
13
13
  export default function SupportTypeSelectorPage() {
14
- const { t } = useTranslation();
15
14
  const { globalMetadataState: { allCaseTypes, loggedInUsersAccount }, } = useGlobalStateContext();
16
15
  const globalDispatch = useGlobalDispatchContext();
17
16
  const [selectedSupportType, setSelectedSupportType] = useState('');
@@ -32,12 +31,6 @@ export default function SupportTypeSelectorPage() {
32
31
  }
33
32
  // eslint-disable-next-line react-hooks/exhaustive-deps
34
33
  }, []);
35
- // To handle support type selection change
36
- const onChange = (labelledById, _event) => {
37
- const newSelected = labelledById === selectedSupportType ? null : labelledById;
38
- setSelectedSupportType(newSelected);
39
- setCaseDetails(caseDispatch, { caseType: newSelected });
40
- };
41
34
  // To handle enter and key down events for the support type card
42
35
  const onKeyDown = (event) => {
43
36
  if (event.target !== event.currentTarget) {
@@ -138,15 +131,15 @@ export default function SupportTypeSelectorPage() {
138
131
  React.createElement(Trans, null, "What can we help you with?"),
139
132
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
140
133
  (allCaseTypes.isFetching || (isFetchingSelectedAccountDetails && haventLoadedMetadata(allCaseTypes))) && (React.createElement(LoadingIndicator, { size: "lg", show: true })),
141
- React.createElement(Gallery, { hasGutter: true, className: "pf-v5-u-mt-sm" }, SupportTypesArray.map((supportTypesArrayValues) => (React.createElement(GalleryItem, { key: supportTypesArrayValues.id },
142
- 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 },
134
+ React.createElement(Gallery, { hasGutter: true, className: "pf-v6-u-mt-sm" }, SupportTypesArray.map((supportTypesArrayValues) => (React.createElement(GalleryItem, { key: supportTypesArrayValues.id },
135
+ React.createElement(Card, { id: supportTypesArrayValues.oldSupportType, key: supportTypesArrayValues.oldSupportType, className: `support-types-card cursor-pointer${isNextBtnClickedToShowValidationError && !caseType ? ' support-types-invalid' : ''}`, isSelectable: true, onKeyDown: onKeyDown, onClick: onSupportTypeClick, isSelected: !!caseType && supportTypesArrayValues.oldSupportType === caseType, isFullHeight: true, "data-tracking-id": supportTypesArrayValues.dataTrackingID, tabIndex: 0 },
143
136
  React.createElement(CardBody, null, supportTypesArrayValues.icon ? (React.createElement(Split, null,
144
- React.createElement(SplitItem, { className: "pf-v5-u-pr-lg" },
137
+ React.createElement(SplitItem, { className: "pf-v6-u-pr-lg" },
145
138
  React.createElement(Bullseye, null, supportTypesArrayValues.icon && supportTypesArrayValues.icon)),
146
139
  React.createElement(SplitItem, { isFilled: true },
147
- React.createElement("header", { className: "pf-v5-u-font-family-redhatVF-heading-sans-serif" },
140
+ React.createElement("header", { className: "pf-v6-u-font-family-redhatVF-heading-sans-serif" },
148
141
  React.createElement(Trans, null, supportTypesArrayValues.supportTypeHeading)),
149
142
  React.createElement(Trans, null, supportTypesArrayValues.supportTypeDescription)))) : (React.createElement(Bullseye, null,
150
- React.createElement("header", { className: "pf-v5-u-font-family-redhatVF-heading-sans-serif" },
143
+ React.createElement("header", { className: "pf-v6-u-font-family-redhatVF-heading-sans-serif" },
151
144
  React.createElement(Trans, null, supportTypesArrayValues.supportTypeHeading))))))))))));
152
145
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AllProductsSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/AllProductsSelector.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMvG,UAAU,MAAM;IACZ,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAQD;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,4EA4KvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"AllProductsSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/AllProductsSelector.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAsD,MAAM,OAAO,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMvG,UAAU,MAAM;IACZ,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAQD;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,4EA+KvB,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}