@rh-support/troubleshoot 2.6.13 → 2.6.15

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 (197) 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 +21 -18
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +45 -34
  7. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  8. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +13 -19
  9. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
  10. package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
  11. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +8 -8
  12. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
  13. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +1 -1
  14. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
  15. package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
  16. package/lib/esm/components/CaseEditView/CaseOverview/index.js +10 -9
  17. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
  18. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +20 -19
  19. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
  20. package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
  21. package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +3 -3
  22. package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
  23. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
  24. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +33 -23
  25. package/lib/esm/components/CaseEditView/PDFContainer.js +19 -15
  26. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +1 -1
  27. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +9 -8
  28. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
  29. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +13 -16
  30. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
  31. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +51 -94
  32. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
  33. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +9 -8
  34. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
  35. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +36 -31
  36. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
  37. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -3
  38. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +2 -2
  39. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
  40. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +9 -7
  41. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
  42. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
  43. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +1 -1
  44. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +2 -2
  45. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
  46. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +3 -3
  47. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
  48. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +2 -2
  49. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -1
  50. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +3 -4
  51. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +2 -2
  52. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +2 -2
  53. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
  54. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +1 -1
  55. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +2 -2
  56. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +1 -1
  57. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
  58. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +2 -3
  59. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +5 -5
  60. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
  61. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +23 -17
  62. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +19 -4
  63. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
  64. package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +5 -8
  65. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
  66. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -4
  67. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
  68. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +4 -6
  69. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.d.ts.map +1 -1
  70. package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.js +4 -6
  71. package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
  72. package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts.map +1 -1
  73. package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +2 -3
  74. package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
  75. package/lib/esm/components/CaseInformation/CaseGroup.js +1 -2
  76. package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
  77. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
  78. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
  79. package/lib/esm/components/CaseInformation/Description.js +4 -4
  80. package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
  81. package/lib/esm/components/CaseInformation/Fts.js +13 -9
  82. package/lib/esm/components/CaseInformation/OpenCaseIssue.js +2 -2
  83. package/lib/esm/components/CaseInformation/Severity.js +1 -1
  84. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  85. package/lib/esm/components/CaseInformation/SupportLevel.js +16 -10
  86. package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
  87. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +14 -11
  88. package/lib/esm/components/CaseManagement/CaseManagement.js +4 -4
  89. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  90. package/lib/esm/components/CaseManagement/Cep.js +44 -41
  91. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
  92. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +50 -42
  93. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
  94. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +39 -63
  95. package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
  96. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  97. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +62 -36
  98. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +1 -1
  99. package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts.map +1 -1
  100. package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.js +8 -8
  101. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
  102. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +10 -10
  103. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +2 -2
  104. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
  105. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +57 -16
  106. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
  107. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +12 -27
  108. package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts.map +1 -1
  109. package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.js +1 -1
  110. package/lib/esm/components/Cve/CveItem.d.ts.map +1 -1
  111. package/lib/esm/components/Cve/CveItem.js +10 -11
  112. package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
  113. package/lib/esm/components/Cve/CveModal.js +10 -11
  114. package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -1
  115. package/lib/esm/components/Cve/CvePanel.js +3 -3
  116. package/lib/esm/components/Cve/CveSidebar.js +2 -2
  117. package/lib/esm/components/IdeaInformation/IdeaInformation.js +7 -7
  118. package/lib/esm/components/ImproveCase/KtQuestions.js +6 -6
  119. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
  120. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +6 -13
  121. package/lib/esm/components/ProductSelector/AllProductsSelector.js +8 -7
  122. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -1
  123. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  124. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +80 -53
  125. package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
  126. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +14 -10
  127. package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
  128. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +4 -4
  129. package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
  130. package/lib/esm/components/Recommendations/AsideResults.js +5 -3
  131. package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
  132. package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
  133. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
  134. package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +7 -11
  135. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
  136. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +4 -4
  137. package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
  138. package/lib/esm/components/Recommendations/InsightsResults.js +1 -1
  139. package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
  140. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +16 -16
  141. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +6 -6
  142. package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -1
  143. package/lib/esm/components/Recommendations/RecommendationInfoBox.js +7 -7
  144. package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
  145. package/lib/esm/components/Recommendations/Recommendations.js +23 -20
  146. package/lib/esm/components/Recommendations/RecommendationsLoader.js +1 -1
  147. package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
  148. package/lib/esm/components/Recommendations/RulesModal.js +7 -9
  149. package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts.map +1 -1
  150. package/lib/esm/components/Recommendations/WatsonxAiIcon.js +9 -10
  151. package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
  152. package/lib/esm/components/Review/Review.js +4 -4
  153. package/lib/esm/components/SessionRestore/RestoreLastSessionModal.js +5 -5
  154. package/lib/esm/components/SessionRestore/SessionRestore.js +1 -1
  155. package/lib/esm/components/SessionRestore/SessionRestoreCard.js +1 -1
  156. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  157. package/lib/esm/components/SubmitCase/SubmitCase.js +21 -21
  158. package/lib/esm/components/Suggestions/Suggestions.js +2 -2
  159. package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
  160. package/lib/esm/components/Suggestions/TopContent.js +8 -8
  161. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
  162. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +13 -14
  163. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
  164. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +20 -16
  165. package/lib/esm/components/shared/Rule.js +6 -6
  166. package/lib/esm/components/shared/fileUpload/FileLister.js +6 -6
  167. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
  168. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +7 -6
  169. package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
  170. package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -0
  171. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
  172. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
  173. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +4 -4
  174. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
  175. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +15 -6
  176. package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
  177. package/lib/esm/components/shared/input/ContactSelectorInternal.js +128 -23
  178. package/lib/esm/components/wizardLayout/MainSection.js +2 -2
  179. package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -1
  180. package/lib/esm/components/wizardLayout/NewFeatureModal.js +6 -6
  181. package/lib/esm/components/wizardLayout/WizardAside.js +3 -3
  182. package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
  183. package/lib/esm/components/wizardLayout/WizardMain.js +61 -19
  184. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  185. package/lib/esm/components/wizardLayout/WizardNavigation.js +11 -16
  186. package/lib/esm/css/app.css +13 -13
  187. package/lib/esm/css/case.css +23 -16
  188. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  189. package/lib/esm/hooks/useWizard.js +1 -3
  190. package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
  191. package/lib/esm/reducers/CaseReducer.js +2 -2
  192. package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -2
  193. package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
  194. package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
  195. package/lib/esm/scss/_main.scss +183 -88
  196. package/lib/esm/scss/_pf-overrides.scss +150 -140
  197. package/package.json +11 -11
@@ -8,15 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Alert, Button, ButtonVariant, Checkbox, Modal, TextArea, TextInput } from '@patternfly/react-core';
12
- import { Select, SelectOption } from '@patternfly/react-core/deprecated';
11
+ import { Button, ButtonVariant, Checkbox, Modal, ModalBody, ModalFooter, ModalHeader } from '@patternfly/react-core';
13
12
  import DownloadIcon from '@patternfly/react-icons/dist/js/icons/download-icon';
14
13
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
15
- import { ToastNotification, useFetch } from '@rh-support/components';
16
- import isEqual from 'lodash/isEqual';
14
+ import { SingleSelectDropdown, ToastNotification, useFetch } from '@rh-support/components';
17
15
  import React, { useEffect, useState } from 'react';
18
16
  import { Trans, useTranslation } from 'react-i18next';
19
- import { useCaseDispatch, useCaseSelector } from '../../../context/CaseContext';
17
+ import { useCaseDispatch } from '../../../context/CaseContext';
20
18
  import { useCaseDetailsPageStateContext } from '../../../context/CaseDetailsPageContext';
21
19
  import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext, } from '../../../context/CaseDiscussionTabContext';
22
20
  import { updateDiscussionStateComments } from '../../../reducers/CaseDiscussionTabReducer';
@@ -38,12 +36,8 @@ const getLocaleNameFromLocalCode = (localeCode) => {
38
36
  };
39
37
  export function NewEssTermsModal(props) {
40
38
  const { t } = useTranslation();
41
- const { remoteSessionTermsAcked } = useCaseSelector((state) => ({
42
- remoteSessionTermsAcked: state.caseDetails.remoteSessionTermsAcked,
43
- }), isEqual);
44
39
  const [isTermsChecked, setIsTermsChecked] = useState(false);
45
40
  const { request } = useFetch(publicApi.terms.getRequiredTerms);
46
- const [isLangSelectorDropdownOpen, setisLangSelectorDropdownOpen] = useState(false);
47
41
  const caseDispatch = useCaseDispatch();
48
42
  const [selectedTranslation, setSelectedTranslation] = useState({
49
43
  id: '5001',
@@ -55,27 +49,28 @@ export function NewEssTermsModal(props) {
55
49
  translatedInstructions: 'Please read and accept the remote session terms below to allow Red Hat to access your network or systems.',
56
50
  translatedTermsName: 'Remote Access Agreement',
57
51
  });
58
- const [allTranslations, setAllTranslations] = useState({});
52
+ const [languageOptions, setLanguageOptions] = useState([]);
59
53
  const [agreeLoading, setAgreeLoading] = useState(false);
60
- const [isRemoteSessionForm, setIsRemoteSessionForm] = useState(remoteSessionTermsAcked);
61
- const [sessionExpectations, setSessionExpectations] = useState('');
62
- const [impact, setImpact] = useState('');
63
- const [sessionLink, setSessionLink] = useState('');
64
54
  useEffect(() => {
65
55
  const fetchTerms = () => __awaiter(this, void 0, void 0, function* () {
66
56
  try {
67
57
  const { siteCode, eventCode, loggedInUser } = props;
68
58
  const response = yield request(siteCode, eventCode, loggedInUser);
69
59
  let defaultTranslation = response[0].translations[0];
70
- const translationLangInfoMap = response[0].translations.reduce((allTranslationsmap, translation) => {
60
+ // Transform translations into dropdown options
61
+ const options = response[0].translations.map((translation) => ({
62
+ value: translation,
63
+ label: getLocaleNameFromLocalCode(translation.localeCode),
64
+ disabled: false,
65
+ }));
66
+ // Find default translation
67
+ response[0].translations.forEach((translation) => {
71
68
  if (translation.isDefault) {
72
69
  defaultTranslation = translation;
73
70
  }
74
- allTranslationsmap[translation['localeCode']] = translation;
75
- return allTranslationsmap;
76
- }, {});
71
+ });
77
72
  setSelectedTranslation(defaultTranslation);
78
- setAllTranslations(translationLangInfoMap);
73
+ setLanguageOptions(options);
79
74
  }
80
75
  catch (e) {
81
76
  console.log(e);
@@ -90,28 +85,17 @@ export function NewEssTermsModal(props) {
90
85
  const dispatchDiscussion = useCaseDiscussionTabDispatchContext();
91
86
  const { sort, allDiscussions, discussionFiltersListState } = useCaseDiscussionTabStateContext();
92
87
  const { caseDetailsPageState: { caseFeedbacksHydra }, } = useCaseDetailsPageStateContext();
93
- const updateSessionExpectation = (event, value) => setSessionExpectations(value);
94
- const updateImpact = (event, value) => setImpact(value);
95
- const updateSessionLink = (event, value) => setSessionLink(value);
96
88
  // To handle modal cancel and close
97
89
  const onCancel = () => {
98
- if (agreeLoading || isPostingComment)
99
- return;
100
- setIsTermsChecked(false);
101
- setSessionExpectations('');
102
- setImpact('');
103
- setSessionLink('');
104
- setIsRemoteSessionForm(false);
105
90
  props.onClose && props.onClose();
106
91
  };
107
92
  // Function to ack remote session terms and post comment
108
93
  const submitRemoteSessionAgreement = (pdfId) => __awaiter(this, void 0, void 0, function* () {
109
- const requestComment = t(`**[What is a Remote Support Session and how to acknowledge the Remote Access Rider? Read more.](https://access.redhat.com/articles/3566571)**\n\nSubmitted a remote session request with following details:\n\n**Preferred Time and Expectations for Remote Session**\n${sessionExpectations}\n\n**Describe the impact to you or the business**\n${impact}\n\n${sessionLink ? `**Remote session link**\n[${sessionLink}](${sessionLink})\n\n` : ''}This action does not initiate a remote session. A Red Hat Associate will get back to you soon.`);
94
+ const requestComment = t('Submitted a remote session request.');
110
95
  try {
111
96
  yield updateCaseDetails(caseDispatch, props.caseNumber, {
112
97
  remoteSessionTermsAcked: true,
113
98
  screenSessionRequested: true,
114
- waitingOnCallback: true,
115
99
  });
116
100
  try {
117
101
  yield postCommentRequest({
@@ -150,7 +134,6 @@ export function NewEssTermsModal(props) {
150
134
  }
151
135
  }
152
136
  });
153
- const toggleRemoteSessionForm = () => setIsRemoteSessionForm(true);
154
137
  // To handle submit
155
138
  const onSubmit = () => {
156
139
  setAgreeLoading(true);
@@ -161,72 +144,46 @@ export function NewEssTermsModal(props) {
161
144
  setIsTermsChecked(value);
162
145
  };
163
146
  // Handle language change
164
- const onLangChange = (event, lang) => {
165
- setSelectedTranslation(allTranslations[lang]);
166
- setisLangSelectorDropdownOpen(false);
147
+ const onLanguageSelect = (option) => {
148
+ setSelectedTranslation(option.value);
167
149
  };
168
- // To handle dropdown toggle
169
- const onDropdownToggle = (toggle) => setisLangSelectorDropdownOpen(toggle);
170
150
  // To check and if I agree button is loading
171
151
  const isAgreeLoading = agreeLoading || isPostingComment;
172
- const modalActions = [
173
- React.createElement(Button, { "aria-label": t('I agree'), variant: ButtonVariant.primary, onClick: isRemoteSessionForm || remoteSessionTermsAcked ? onSubmit : toggleRemoteSessionForm, "data-tracking-id": isRemoteSessionForm || remoteSessionTermsAcked
174
- ? 'remote-session-details-submission'
175
- : 'remote-session-agreement-check', isLoading: isAgreeLoading, isDisabled: (isRemoteSessionForm || remoteSessionTermsAcked
176
- ? !sessionExpectations.trim() || !impact.trim()
177
- : !isTermsChecked) || isAgreeLoading }, t(isRemoteSessionForm || remoteSessionTermsAcked ? 'Submit' : 'I agree')),
178
- React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, isDisabled: isAgreeLoading }, "Cancel"),
179
- ];
180
- const renderRemoteSessionForm = (React.createElement("div", { id: "remoteSessionForm", className: "form-group" },
181
- React.createElement(Alert, { variant: "info", isInline: true, title: React.createElement(React.Fragment, null,
182
- "What is a Remote Support Session and how to acknowledge the Remote Access Rider?",
183
- ' ',
184
- React.createElement("a", { href: "https://access.redhat.com/articles/3566571", target: "_blank", rel: "noopener noreferrer" }, "Read more.")) }),
185
- React.createElement("div", null,
186
- React.createElement("label", { className: "pf-v5-u-mt-md" },
187
- React.createElement(Trans, null, "Preferred Time and Expectations for Remote Session"),
188
- React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
189
- React.createElement(TextArea, { value: sessionExpectations, onChange: updateSessionExpectation, rows: 3, placeholder: "Please share anything that will help prepare for our meeting?", isRequired: true, "aria-label": "Preferred Time and Expectations for Remote Session" })),
190
- React.createElement("div", null,
191
- React.createElement("label", { className: "pf-v5-u-mt-md" },
192
- React.createElement(Trans, null, "Describe the impact to you or the business"),
193
- React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
194
- React.createElement(TextArea, { value: impact, onChange: updateImpact, rows: 3, placeholder: "Describe the user or financial impact.", isRequired: true, "aria-label": "Describe the impact to you or the business" })),
195
- React.createElement("div", null,
196
- React.createElement("label", { className: "pf-v5-u-mt-md" },
197
- React.createElement(Trans, null, "Remote session link (optional)")),
198
- React.createElement(TextInput, { value: sessionLink, onChange: updateSessionLink, type: "text", "aria-label": "Remote session link" }),
199
- React.createElement("p", { className: "form-instructions" }, "If not provided, the Red Hat Support Associate will share a link with you."))));
200
- const renderRemoteSessionAgreement = (React.createElement("div", { id: "remoteSessionAgreement" },
201
- React.createElement("p", { className: "pf-v5-u-mt-xs" },
202
- React.createElement(Trans, null,
203
- "Your acceptance of this remote session agreement is required ",
204
- React.createElement("strong", null, "for each case"),
205
- " when you request Red Hat\u2019s support team to directly access your network or systems.")),
206
- React.createElement("p", { className: "pf-v5-u-mt-md" },
207
- React.createElement(Trans, null, "Remote access to your network or systems is not a standard Red Hat problem resolution process. Before Red Hat logs into your systems to analyze your support issue during a remote session, Red Hat needs your approval and authorization for such remote access.")),
208
- React.createElement("p", { className: "pf-v5-u-mt-md" },
209
- React.createElement(Trans, null, "Please read and accept the remote session terms below to allow Red Hat to access your network or systems.")),
210
- React.createElement("div", null,
211
- React.createElement(Select, { className: "pf-v5-u-mt-md", "aria-label": t('Select language'), id: "terms-language-selector", selections: selectedTranslation.localeCode, onSelect: onLangChange, isOpen: isLangSelectorDropdownOpen, menuAppendTo: document.body, placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onDropdownToggle(toggle), width: 350 }, Object.keys(allTranslations).map((option, index) => (React.createElement(SelectOption, { key: index, value: option }, getLocaleNameFromLocalCode(option))))),
212
- React.createElement("a", { "aria-label": t('Download'), "data-tracking-id": "rsa-modal-terms-download", className: "pf-v5-u-ml-md", href: selectedTranslation.pdfDownloadUrl, rel: "noopener noreferrer", target: "_blank" },
213
- t('Download'),
214
- " ",
215
- React.createElement(DownloadIcon, { className: "pf-v5-u-ml-xs" }))),
216
- React.createElement("div", null,
217
- React.createElement(Checkbox, { className: "pf-v5-u-mt-md rsa-checkbox", id: "terms-accept-checkbox", label: React.createElement(React.Fragment, null,
218
- React.createElement(Trans, null, "I have read and agree to the"),
219
- ' ',
220
- React.createElement("a", { className: "pf-v5-c-button pf-m-link pf-m-inline align-link-items", rel: "noopener noreferrer", target: "_blank", href: selectedTranslation.pdfDownloadUrl, "data-tracking-id": "case-details-request-remote-session-terms" },
221
- React.createElement(Trans, null, "terms "),
222
- React.createElement(ExternalLinkAltIcon, null))), isChecked: isTermsChecked, "aria-label": t('I have read and agree to the terms'), onChange: onCheckBoxChange }))));
223
152
  // Body of ESS RSA Modal
224
153
  const EssRSAModalBody = () => {
225
- return isRemoteSessionForm || remoteSessionTermsAcked ? renderRemoteSessionForm : renderRemoteSessionAgreement;
154
+ const currentSelection = {
155
+ value: selectedTranslation,
156
+ label: getLocaleNameFromLocalCode(selectedTranslation.localeCode),
157
+ disabled: false,
158
+ };
159
+ return (React.createElement(React.Fragment, null,
160
+ React.createElement("p", { className: "pf-v6-u-mt-xs" },
161
+ React.createElement(Trans, null,
162
+ "Your acceptance of this remote session agreement is required ",
163
+ React.createElement("strong", null, "for each case"),
164
+ " when you request Red Hat\u2019s support team to directly access your network or systems.")),
165
+ React.createElement("p", { className: "pf-v6-u-mt-md" },
166
+ React.createElement(Trans, null, "Remote access to your network or systems is not a standard Red Hat problem resolution process. Before Red Hat logs into your systems to analyze your support issue during a remote session, Red Hat needs your approval and authorization for such remote access.")),
167
+ React.createElement("p", { className: "pf-v6-u-mt-md" },
168
+ React.createElement(Trans, null, "Please read and accept the remote session terms below to allow Red Hat to access your network or systems.")),
169
+ React.createElement("div", null,
170
+ React.createElement(SingleSelectDropdown, { className: "terms-language-selector pf-v6-u-mt-md", id: "terms-language-selector", selected: currentSelection, options: languageOptions, placeholder: t('Select an option that best fits'), onSelect: onLanguageSelect, ariaLabel: t('Select language') }),
171
+ React.createElement("a", { "aria-label": t('Download'), "data-tracking-id": "rsa-modal-terms-download", className: "pf-v6-u-ml-md", href: selectedTranslation.pdfDownloadUrl, rel: "noopener noreferrer", target: "_blank" },
172
+ t('Download'),
173
+ " ",
174
+ React.createElement(DownloadIcon, { className: "pf-v6-u-ml-xs" }))),
175
+ React.createElement("div", null,
176
+ React.createElement(Checkbox, { className: "pf-v6-u-mt-md rsa-checkbox", id: "terms-accept-checkbox", label: React.createElement(React.Fragment, null,
177
+ React.createElement(Trans, null, "I have read and agree to the"),
178
+ ' ',
179
+ React.createElement("a", { className: "pf-v6-c-button pf-m-link pf-m-inline align-link-items", rel: "noopener noreferrer", target: "_blank", href: selectedTranslation.pdfDownloadUrl, "data-tracking-id": "case-details-request-remote-session-terms" },
180
+ React.createElement(Trans, null, "terms "),
181
+ React.createElement(ExternalLinkAltIcon, null))), isChecked: isTermsChecked, "aria-label": t('I have read and agree to the terms'), onChange: onCheckBoxChange }))));
226
182
  };
227
- return (React.createElement(Modal, { id: "remote-session-agreement-modal", "aria-label": isRemoteSessionForm || remoteSessionTermsAcked
228
- ? t('Request remote session')
229
- : t('Remote session agreement'), title: isRemoteSessionForm || remoteSessionTermsAcked
230
- ? t('Request remote session')
231
- : t('Remote session agreement'), isOpen: props.show, onClose: onCancel, actions: modalActions }, EssRSAModalBody()));
183
+ return (React.createElement(Modal, { id: "remote-session-agreement-modal", "aria-label": t('Remote Session Agreement'), isOpen: props.show, onClose: onCancel },
184
+ React.createElement(ModalHeader, null,
185
+ React.createElement("h2", null, t('Remote Session Agreement'))),
186
+ React.createElement(ModalBody, null, EssRSAModalBody()),
187
+ React.createElement(ModalFooter, null,
188
+ React.createElement(Button, { key: "submit", "aria-label": t('I agree'), variant: ButtonVariant.primary, onClick: onSubmit, "data-tracking-id": "remote-session-agreement-check", isLoading: isAgreeLoading, isDisabled: !isTermsChecked || isAgreeLoading }, t('I agree')))));
232
189
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteSessionAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,+EAqHjC,CAAC"}
1
+ {"version":3,"file":"RemoteSessionAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,+EAuHjC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Button, List, ListItem, Popover, Tooltip } from '@patternfly/react-core';
1
+ import { Button, Card, CardBody, CardHeader, List, ListItem, Popover, Tooltip } from '@patternfly/react-core';
2
2
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
3
3
  import LockIcon from '@patternfly/react-icons/dist/js/icons/lock-icon';
4
4
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
@@ -22,12 +22,13 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
22
22
  setOpenRequestRemoteSessionModal((openRequestRemoteSessionModal) => !openRequestRemoteSessionModal);
23
23
  };
24
24
  // RSA Aside Section Body
25
- const RemoteSessionAgreementSectionBody = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
26
- React.createElement("h3", { className: "card-heading pf-v5-u-display-flex pf-v5-u-justify-content-space-between case-detail-panel-card-heading card-header-bg" },
27
- t('Remote session request'),
28
- React.createElement(Popover, { "aria-label": t('Remote Session Helper Info'), bodyContent: t('Before Red Hat logs into your systems to analyze your support issue during a remote session, Red Hat needs your approval and authorization for such remote access'), footerContent: React.createElement("a", { href: "/articles/3566571", target: "_blank", rel: "noopener noreferrer", "aria-label": t('Read more about remote sessions') }, t('Read more about remote sessions')) },
29
- React.createElement(InfoCircleIcon, null))),
30
- React.createElement("div", { className: "card-body" },
25
+ const RemoteSessionAgreementSectionBody = (React.createElement(Card, { className: "card-support escalations", ref: ref },
26
+ React.createElement(CardHeader, null,
27
+ React.createElement("h3", { className: "card-heading pf-v6-u-display-flex pf-v6-u-justify-content-space-between case-detail-panel-card-heading" },
28
+ t('Remote session request'),
29
+ React.createElement(Popover, { "aria-label": t('Remote Session Helper Info'), bodyContent: t('Before Red Hat logs into your systems to analyze your support issue during a remote session, Red Hat needs your approval and authorization for such remote access'), footerContent: React.createElement("a", { href: "/articles/3566571", target: "_blank", rel: "noopener noreferrer", "aria-label": t('Read more about remote sessions') }, t('Read more about remote sessions')) },
30
+ React.createElement(InfoCircleIcon, null)))),
31
+ React.createElement(CardBody, null,
31
32
  isInternal && (React.createElement(React.Fragment, null,
32
33
  React.createElement("p", null,
33
34
  React.createElement(LockIcon, null),
@@ -43,7 +44,7 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
43
44
  isExternal && (React.createElement(React.Fragment, null,
44
45
  React.createElement("p", null,
45
46
  React.createElement("strong", null, `${t('Red Hat may agree to remotely access your systems if:')}`)),
46
- React.createElement(List, { className: "pf-v5-u-pl-lg" },
47
+ React.createElement(List, { className: "pf-v6-u-pl-lg" },
47
48
  React.createElement(ListItem, null, t('Such access will help diagnose and have greater understanding into the issue')),
48
49
  React.createElement(ListItem, null, t('Agreed upon by both Red Hat and you, the end user'))),
49
50
  React.createElement("p", { className: "rrs-light-grey-text" }, t('Red Hat will add a comment to your case to schedule your remote session.')),
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteSessionAgreementModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAClD,QAAQ,EAAE,OAAO,CAAC;CACrB;AAiBD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAuWxD"}
1
+ {"version":3,"file":"RemoteSessionAgreementModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,kBAAkB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAClD,QAAQ,EAAE,OAAO,CAAC;CACrB;AAiBD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBAqWxD"}
@@ -8,11 +8,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Alert, Button, ButtonVariant, Checkbox, Modal, TextArea, TextInput } from '@patternfly/react-core';
12
- import { Select, SelectOption } from '@patternfly/react-core/deprecated';
11
+ import { Alert, Button, ButtonVariant, Checkbox, Modal, ModalFooter, TextArea, TextInput, } from '@patternfly/react-core';
13
12
  import DownloadIcon from '@patternfly/react-icons/dist/js/icons/download-icon';
14
13
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
15
- import { ToastNotification, useFetch } from '@rh-support/components';
14
+ import { SingleSelectDropdown, ToastNotification, useFetch } from '@rh-support/components';
16
15
  import isEqual from 'lodash/isEqual';
17
16
  import React, { useEffect, useState } from 'react';
18
17
  import { Trans, useTranslation } from 'react-i18next';
@@ -43,7 +42,6 @@ export function RemoteSessionAgreementModal(props) {
43
42
  }), isEqual);
44
43
  const [isTermsChecked, setIsTermsChecked] = useState(false);
45
44
  const { request } = useFetch(publicApi.terms.getRequiredTerms);
46
- const [isLangSelectorDropdownOpen, setisLangSelectorDropdownOpen] = useState(false);
47
45
  const caseDispatch = useCaseDispatch();
48
46
  const [selectedTranslation, setSelectedTranslation] = useState({
49
47
  id: '5001',
@@ -154,64 +152,63 @@ export function RemoteSessionAgreementModal(props) {
154
152
  setIsTermsChecked(value);
155
153
  };
156
154
  // Handle language change
157
- const onLangChange = (event, lang) => {
158
- setSelectedTranslation(allTranslations[lang]);
159
- setisLangSelectorDropdownOpen(false);
155
+ const onLangChange = (lang) => {
156
+ setSelectedTranslation(allTranslations[lang.value]);
160
157
  };
161
- // To handle dropdown toggle
162
- const onDropdownToggle = (toggle) => setisLangSelectorDropdownOpen(toggle);
163
158
  // To check and if I agree button is loading
164
159
  const isAgreeLoading = agreeLoading || isPostingComment;
165
- // RSA Modal Actions
166
- const modalActions = [
167
- React.createElement(Button, { "aria-label": t('I agree'), variant: ButtonVariant.primary, onClick: isRemoteSessionForm || remoteSessionTermsAcked ? onSubmit : toggleRemoteSessionForm, "data-tracking-id": isRemoteSessionForm || remoteSessionTermsAcked
168
- ? 'remote-session-details-submission'
169
- : 'remote-session-agreement-check', isLoading: isAgreeLoading, isDisabled: (isRemoteSessionForm || remoteSessionTermsAcked
170
- ? !sessionExpectations.trim() || !impact.trim()
171
- : !isTermsChecked) || isAgreeLoading }, t(isRemoteSessionForm || remoteSessionTermsAcked ? 'Submit' : 'I agree')),
172
- React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, isDisabled: isAgreeLoading }, "Cancel"),
173
- ];
160
+ const languageOptions = Object.keys(allTranslations).map((option) => ({
161
+ value: option,
162
+ label: getLocaleNameFromLocalCode(option),
163
+ }));
164
+ // Create selected option object based on current selection
165
+ const selectedLanguage = {
166
+ value: selectedTranslation.localeCode,
167
+ label: selectedTranslation.localeCode
168
+ ? getLocaleNameFromLocalCode(selectedTranslation.localeCode)
169
+ : t('Select an option that best fits'),
170
+ };
174
171
  const renderRemoteSessionForm = (React.createElement("div", { id: "remoteSessionForm", className: "form-group" },
175
172
  React.createElement(Alert, { variant: "info", isInline: true, title: React.createElement(React.Fragment, null,
176
173
  "What is a Remote Support Session and how to acknowledge the Remote Access Rider?",
177
174
  ' ',
178
175
  React.createElement("a", { href: "https://access.redhat.com/articles/3566571", target: "_blank", rel: "noopener noreferrer" }, "Read more.")) }),
179
176
  React.createElement("div", null,
180
- React.createElement("label", { className: "pf-v5-u-mt-md" },
177
+ React.createElement("label", { className: "pf-v6-u-mt-md" },
181
178
  React.createElement(Trans, null, "Preferred Time and Expectations for Remote Session"),
182
179
  React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
183
180
  React.createElement(TextArea, { value: sessionExpectations, onChange: updateSessionExpectation, rows: 3, placeholder: "Please share anything that will help prepare for our meeting?", isRequired: true, "aria-label": "Preferred Time and Expectations for Remote Session" })),
184
181
  React.createElement("div", null,
185
- React.createElement("label", { className: "pf-v5-u-mt-md" },
182
+ React.createElement("label", { className: "pf-v6-u-mt-md" },
186
183
  React.createElement(Trans, null, "Describe the impact to you or the business"),
187
184
  React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
188
185
  React.createElement(TextArea, { value: impact, onChange: updateImpact, rows: 3, placeholder: "Describe the user or financial impact.", isRequired: true, "aria-label": "Describe the impact to you or the business" })),
189
186
  React.createElement("div", null,
190
- React.createElement("label", { className: "pf-v5-u-mt-md" },
187
+ React.createElement("label", { className: "pf-v6-u-mt-md" },
191
188
  React.createElement(Trans, null, "Remote session link (optional)")),
192
189
  React.createElement(TextInput, { value: sessionLink, onChange: updateSessionLink, type: "text", "aria-label": "Remote session link" }),
193
190
  React.createElement("p", { className: "form-instructions" }, "If not provided, the Red Hat Support Associate will share a link with you."))));
194
191
  const renderRemoteSessionAgreement = (React.createElement("div", { id: "remoteSessionAgreement" },
195
- React.createElement("p", { className: "pf-v5-u-mt-xs" },
192
+ React.createElement("p", { className: "pf-v6-u-mt-xs" },
196
193
  React.createElement(Trans, null,
197
194
  "Your acceptance of this remote session agreement is required ",
198
195
  React.createElement("strong", null, "for each case"),
199
196
  " when you request Red Hat\u2019s support team to directly access your network or systems.")),
200
- React.createElement("p", { className: "pf-v5-u-mt-md" },
197
+ React.createElement("p", { className: "pf-v6-u-mt-md" },
201
198
  React.createElement(Trans, null, "Remote access to your network or systems is not a standard Red Hat problem resolution process. Before Red Hat logs into your systems to analyze your support issue during a remote session, Red Hat needs your approval and authorization for such remote access.")),
202
- React.createElement("p", { className: "pf-v5-u-mt-md" },
199
+ React.createElement("p", { className: "pf-v6-u-mt-md" },
203
200
  React.createElement(Trans, null, "Please read and accept the remote session terms below to allow Red Hat to access your network or systems.")),
204
- React.createElement("div", null,
205
- React.createElement(Select, { className: "pf-v5-u-mt-md", "aria-label": t('Select language'), id: "terms-language-selector", selections: selectedTranslation.localeCode, onSelect: onLangChange, isOpen: isLangSelectorDropdownOpen, menuAppendTo: document.body, placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onDropdownToggle(toggle), width: 350 }, Object.keys(allTranslations).map((option, index) => (React.createElement(SelectOption, { key: index, value: option }, getLocaleNameFromLocalCode(option))))),
206
- React.createElement("a", { "aria-label": t('Download'), "data-tracking-id": "rsa-modal-terms-download", className: "pf-v5-u-ml-md", href: selectedTranslation.pdfDownloadUrl, rel: "noopener noreferrer", target: "_blank" },
201
+ React.createElement("div", { className: "pf-v6-u-display-flex pf-v6-u-align-items-center pf-v6-u-flex-wrap" },
202
+ React.createElement(SingleSelectDropdown, { id: "terms-language-selector", ariaLabel: t('Select language'), selected: selectedLanguage, options: languageOptions, isDisabled: false, placeholder: t('Select an option that best fits'), onSelect: (option) => onLangChange(option), className: "pf-v6-u-mt-md", toggleClassName: "pf-v6-u-w-50" }),
203
+ React.createElement("a", { "aria-label": t('Download'), "data-tracking-id": "rsa-modal-terms-download", className: "pf-v6-u-ml-md pf-v6-u-display-inline-flex pf-v6-u-align-items-center", href: selectedTranslation.pdfDownloadUrl, rel: "noopener noreferrer", target: "_blank" },
207
204
  t('Download'),
208
205
  " ",
209
- React.createElement(DownloadIcon, { className: "pf-v5-u-ml-xs" }))),
206
+ React.createElement(DownloadIcon, { className: "pf-v6-u-ml-xs" }))),
210
207
  React.createElement("div", null,
211
- React.createElement(Checkbox, { className: "pf-v5-u-mt-md rsa-checkbox", id: "terms-accept-checkbox", label: React.createElement(React.Fragment, null,
208
+ React.createElement(Checkbox, { className: "pf-v6-u-mt-md rsa-checkbox", id: "terms-accept-checkbox", label: React.createElement(React.Fragment, null,
212
209
  React.createElement(Trans, null, "I have read and agree to the"),
213
210
  ' ',
214
- React.createElement("a", { className: "pf-v5-c-button pf-m-link pf-m-inline align-link-items", rel: "noopener noreferrer", target: "_blank", href: selectedTranslation.pdfDownloadUrl, "data-tracking-id": "case-details-request-remote-session-terms" },
211
+ React.createElement("a", { className: "pf-v6-c-button pf-m-link pf-m-inline align-link-items", rel: "noopener noreferrer", target: "_blank", href: selectedTranslation.pdfDownloadUrl, "data-tracking-id": "case-details-request-remote-session-terms" },
215
212
  React.createElement(Trans, null, "terms "),
216
213
  React.createElement(ExternalLinkAltIcon, null))), isChecked: isTermsChecked, "aria-label": t('I have read and agree to the terms'), onChange: onCheckBoxChange }))));
217
214
  // Body of RSA Modal
@@ -222,5 +219,13 @@ export function RemoteSessionAgreementModal(props) {
222
219
  ? t('Request remote session')
223
220
  : t('Remote session agreement'), title: isRemoteSessionForm || remoteSessionTermsAcked
224
221
  ? t('Request remote session')
225
- : t('Remote session agreement'), isOpen: props.show, onClose: onCancel, actions: modalActions }, RemoteSessionAgreementModalBody()));
222
+ : t('Remote session agreement'), isOpen: props.show, onClose: onCancel },
223
+ RemoteSessionAgreementModalBody(),
224
+ React.createElement(ModalFooter, null,
225
+ React.createElement(Button, { "aria-label": t('I agree'), variant: ButtonVariant.primary, onClick: isRemoteSessionForm || remoteSessionTermsAcked ? onSubmit : toggleRemoteSessionForm, "data-tracking-id": isRemoteSessionForm || remoteSessionTermsAcked
226
+ ? 'remote-session-details-submission'
227
+ : 'remote-session-agreement-check', isLoading: isAgreeLoading, isDisabled: (isRemoteSessionForm || remoteSessionTermsAcked
228
+ ? !sessionExpectations.trim() || !impact.trim()
229
+ : !isTermsChecked) || isAgreeLoading }, t(isRemoteSessionForm || remoteSessionTermsAcked ? 'Submit' : 'I agree')),
230
+ React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, isDisabled: isAgreeLoading }, "Cancel"))));
226
231
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseActionPlan.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,iBAAS,cAAc,CAAC,KAAK,EAAE,MAAM,qBA2HpC;kBA3HQ,cAAc;;;AA8HvB,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"CaseActionPlan.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,iBAAS,cAAc,CAAC,KAAK,EAAE,MAAM,qBA4HpC;kBA5HQ,cAAc;;;AA+HvB,eAAe,cAAc,CAAC"}
@@ -71,11 +71,11 @@ function CaseActionPlan(props) {
71
71
  const isInternalWithoutSFDCUser = loggedInUserRights.data.isInternalWithoutSFDCUser();
72
72
  const isActionPlanEmpty = isEmpty(actionPlanState === null || actionPlanState === void 0 ? void 0 : actionPlanState.trim());
73
73
  return (React.createElement(React.Fragment, null,
74
- React.createElement(AlertMessage, { show: isInternalWithoutSFDCUser, variant: AlertType.WARNING, isInline: true, className: "pf-v5-u-mb-lg", title: t('You need a Salesforce (SFDC) user to edit the action plan.') }),
74
+ React.createElement(AlertMessage, { show: isInternalWithoutSFDCUser, variant: AlertType.WARNING, isInline: true, className: "pf-v6-u-mb-lg", title: t('You need a Salesforce (SFDC) user to edit the action plan.') }),
75
75
  React.createElement("label", { htmlFor: "rha-action-plan", className: "sr-only" },
76
76
  React.createElement(Trans, null, "Action plan")),
77
77
  !canUpdateActionPlan ? (React.createElement(CodeBlock, null,
78
- React.createElement(CodeBlockCode, { style: {
78
+ React.createElement(CodeBlockCode, { className: "pf-v6-u-text-color-regular", style: {
79
79
  fontFamily: isExportingPDF ? 'DejaVu Sans' : undefined,
80
80
  } }, isEmpty(actionPlan) ? t('No action plan to display.') : actionPlan))) : (React.createElement("form", null,
81
81
  React.createElement(TextAreaResizable, { id: "rha-action-plan", disabled: isUpdating || isInternalWithoutSFDCUser, maxLength: 32768, name: "actionPlan", value: actionPlanState, onChange: onChange, rowsMin: 3 }),
@@ -86,7 +86,7 @@ function CaseActionPlan(props) {
86
86
  React.createElement(LoadingIndicator, { show: isUpdating, isInline: true })),
87
87
  React.createElement("button", { className: "btn btn-app btn-link", onClick: discardActionPlan, disabled: isUpdating || !formIsDirty, type: "button" },
88
88
  React.createElement(Trans, null, "Cancel")))),
89
- React.createElement("p", { className: "pf-v5-u-mt-xl" },
89
+ React.createElement("p", { className: "pf-v6-u-mt-xl" },
90
90
  React.createElement(Trans, null,
91
91
  "Updates to the action plan are ",
92
92
  React.createElement("strong", null, "customer-facing"),
@@ -260,7 +260,7 @@ export function CaseContactPhoneNumber() {
260
260
  }
261
261
  // eslint-disable-next-line react-hooks/exhaustive-deps
262
262
  }, [contactSSOName]);
263
- return (React.createElement("div", { className: "form-group pf-v5-u-pb-md", style: { minWidth: '200px' } },
263
+ return (React.createElement("div", { className: "form-group", style: { minWidth: '200px' } },
264
264
  React.createElement("h3", { className: `subheading subheading-sm ${isExportingPDF ? 'expand-input' : ''}` },
265
265
  React.createElement(Trans, null, "Case owner's phone number"),
266
266
  React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*"),
@@ -268,7 +268,7 @@ export function CaseContactPhoneNumber() {
268
268
  React.createElement(InputGroupText, null,
269
269
  React.createElement(PhoneInput, { phoneValue: localFullPhoneState, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, isDisabled: isCasePhoneUpdating || isCaseOwnerUpdating || !isEditting, isLoading: isCasePhoneUpdating || isCaseOwnerUpdating || isFetchingSSO, "data-tracking-id": "case-details-page-supplied-phone", invalid: invalid, setInvalid: setInvalid }),
270
270
  isEditting ? (React.createElement(React.Fragment, null,
271
- React.createElement("button", { className: "btn btn-app btn-link pf-v5-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), "aria-label": "Save", disabled: (isSaveClicked && isPhoneValueCannotBeSaved) ||
271
+ React.createElement("button", { className: "btn btn-app btn-link pf-v6-u-ml-sm", type: "button", "data-tracking-id": "case-details-page-supplied-phone-save", onClick: () => onSave(), "aria-label": "Save", disabled: (isSaveClicked && isPhoneValueCannotBeSaved) ||
272
272
  (localFullPhone === null || localFullPhone === void 0 ? void 0 : localFullPhone.length) > PHONE_LIMIT ||
273
273
  localFullPhoneState === phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber ||
274
274
  isCaseOwnerUpdating ||
@@ -1 +1 @@
1
- {"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,qBA0KlC;kBA1KQ,YAAY;;;AA6KrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"CaseHostname.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseHostname.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,OAAO,CAAC;CAC3B;AAMD,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,qBA6KlC;kBA7KQ,YAAY;;;AAgLrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { accounts } from '@cee-eng/hydrajs';
11
- import { Popover, PopoverPosition, Spinner, Switch } from '@patternfly/react-core';
11
+ import { Popover, PopoverPosition, Spinner, Switch, TextInput } from '@patternfly/react-core';
12
12
  import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
13
13
  import { InlineEdit, LoadingIndicator, ToastNotification, useFetch, ValueChangedIcon } from '@rh-support/components';
14
14
  import { fetchLoggedInUsersAccount, GlobalMetadataDispatchContext, GlobalMetadataStateContext, useCanEditCase, } from '@rh-support/react-context';
@@ -50,10 +50,10 @@ function CaseHostname(props) {
50
50
  const [localHostnameChange, setLocalHostnameChange] = useState(false);
51
51
  const afterLocalChange = () => setLocalHostnameChange(false);
52
52
  const canEditCase = useCanEditCase();
53
- const onHostnameChange = (e) => {
53
+ const onHostnameChange = (hostname) => {
54
54
  if (canEditCase.alert())
55
55
  return;
56
- setHostnameState(e.target.value);
56
+ setHostnameState(hostname);
57
57
  };
58
58
  const onHostnameUpdate = (caseDetails) => __awaiter(this, void 0, void 0, function* () {
59
59
  setIsHostnameUpdating(true);
@@ -102,17 +102,19 @@ function CaseHostname(props) {
102
102
  const hostNameVisibilityContent = (React.createElement("div", null,
103
103
  React.createElement("p", null, "You can share this information at any time to improve your support experience."),
104
104
  React.createElement(Switch, { label: shareHostnameLabel, isChecked: isShareHostNamesChecked, onChange: onShareHostnameCheck }),
105
- isHostnamesLoading && (React.createElement(Spinner, { size: "lg", className: "pf-v5-u-ml-sm hostnameSpinner", "aria-label": "Hostname loading" }))));
106
- if (!canUseHostName) {
105
+ isHostnamesLoading && (React.createElement(Spinner, { size: "lg", className: "pf-v6-u-ml-sm hostnameSpinner", "aria-label": "Hostname loading" }))));
106
+ if (!canUseHostName && canUseHostName) {
107
107
  return React.createElement(React.Fragment, null);
108
108
  }
109
109
  const lengthError = (hostnameState === null || hostnameState === void 0 ? void 0 : hostnameState.length) > HOSTNAME_LENGTH_LIMIT;
110
110
  return (React.createElement(React.Fragment, null,
111
111
  React.createElement(InlineEdit, { labelProps: { htmlFor: 'case-details-hostname' }, formClassName: props.className || '', labelContent: React.createElement(React.Fragment, null,
112
112
  React.createElement(Trans, null, "Hostname"),
113
+ "*",
114
+ ' ',
113
115
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localHostnameChange, value: hostname, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.hostname) })), helperContent: !isExportingPDF ? (React.createElement(Popover, { "aria-label": "Hostname Info", position: PopoverPosition.auto, bodyContent: hostNameVisibilityContent, closeBtnAriaLabel: "Close", headerContent: 'Share hostname?', onShow: () => userOriginalHostnameValue() },
114
- React.createElement(QuestionCircleIcon, { className: "pf-v5-u-ml-xs icon-size", "aria-label": "Hostname Info" }))) : undefined, allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined, isExportingPDF: isExportingPDF },
115
- React.createElement("input", { type: "text", id: "case-details-hostname", className: `form-control${lengthError ? ' form-invalid' : ''}`, name: "case-details-hostname", value: hostnameState, onChange: onHostnameChange, disabled: isHostnameUpdating, "data-tracking-id": "case-details-hostname", "aria-invalid": lengthError })),
116
+ React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-sm F icon-size pf-v6-u-text-color-status-custom cursor-pointer", "aria-label": "Hostname Info" }))) : undefined, allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : undefined, isExportingPDF: isExportingPDF },
117
+ React.createElement(TextInput, { type: "text", id: "case-details-hostname", className: `${lengthError ? ' form-invalid' : ''}`, name: "case-details-hostname", value: hostnameState, onChange: (e, phone) => onHostnameChange(phone), isDisabled: isHostnameUpdating, "data-tracking-id": "case-details-hostname", "aria-invalid": lengthError })),
116
118
  lengthError && (React.createElement("div", { className: "pull-top" },
117
119
  React.createElement("p", { className: "form-instructions form-invalid" },
118
120
  React.createElement(Trans, null,
@@ -4,5 +4,5 @@ import React from 'react';
4
4
  import { Trans } from 'react-i18next';
5
5
  export default function CaseOpenShiftPopover() {
6
6
  return (React.createElement(Popover, { "aria-label": "Cluster Id Info", position: PopoverPosition.auto, bodyContent: React.createElement(Trans, null, "Cluster IDs give us the ability to use connected customer tools and services to debug your cluster in conjunction with this support case."), closeBtnAriaLabel: "Close" },
7
- React.createElement(QuestionCircleIcon, { className: "pf-v5-u-ml-xs" })));
7
+ React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-xs" })));
8
8
  }
@@ -4,5 +4,5 @@ import React from 'react';
4
4
  import { Trans } from 'react-i18next';
5
5
  export default function CaseOpenShiftV3Popover() {
6
6
  return (React.createElement(Popover, { "aria-label": "Cluster Id Info", position: PopoverPosition.auto, bodyContent: React.createElement(Trans, null, "Providing a cluster name allows us to link issues more effectively within managed settings through connected customer tools"), closeBtnAriaLabel: "Close" },
7
- React.createElement(QuestionCircleIcon, { className: "pf-v5-u-ml-xs" })));
7
+ React.createElement(QuestionCircleIcon, { className: "pf-v6-u-ml-xs" })));
8
8
  }
@@ -238,7 +238,7 @@ export function CaseOpenshiftClusterId() {
238
238
  return null;
239
239
  }
240
240
  else if (isOpenShiftV3) {
241
- return React.createElement("div", { className: "pull-top pf-v5-u-pb-xl" }, v3Message());
241
+ return React.createElement("div", { className: "pull-top pf-v6-u-pb-xl" }, v3Message());
242
242
  }
243
243
  else {
244
244
  return (React.createElement(React.Fragment, null,
@@ -59,7 +59,7 @@ export function CaseContactPhoneNumberAlert(props) {
59
59
  const confirmationMessage = `${t('Is this phone number correct,')} ${phone} ?`;
60
60
  if (!isPhoneNeedsReview)
61
61
  return React.createElement(React.Fragment, null);
62
- return (React.createElement(React.Fragment, null, props.isReview && !closeConfirmAlert && !isExportingPDF ? (React.createElement(Alert, { className: "pf-v5-u-mb-md phone-review-banner", isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
62
+ return (React.createElement(React.Fragment, null, props.isReview && !closeConfirmAlert && !isExportingPDF ? (React.createElement(Alert, { className: "pf-v6-u-p-sm pf-v6-u-mb-md phone-review-banner", isInline: true, variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
63
63
  React.createElement(Button, { key: "case-contact-phone-number-review-confirm", variant: ButtonVariant.link, isInline: true, onClick: () => onCaseDetailsChange({ suppliedPhoneNumberVerified: 'True' }), "data-tracking-id": "case-contact-phone-number-review-confirm", isLoading: isCaseUpdating, isDisabled: isCaseUpdating },
64
64
  React.createElement(Trans, null, "Yes, confirm phone number")),
65
65
  React.createElement(Link, { key: "case-contact-phone-number-review", replace: true, to: {
@@ -69,7 +69,7 @@ export function CaseContactPhoneNumberAlert(props) {
69
69
  React.createElement(Button, { key: "case-contact-phone-number-alert-close", variant: ButtonVariant.link, onClick: () => setCloseConfirmAlert(!closeConfirmAlert), "data-tracking-id": "case-contact-phone-number-alert-close", isDisabled: isCaseUpdating },
70
70
  React.createElement(Trans, null, "Close")),
71
71
  ] },
72
- React.createElement(Trans, null, confirmationMessage))) : props.isConfirm && !isExportingPDF ? (React.createElement(Alert, { isInline: true, className: "pf-v5-u-mb-md phone-review-banner", variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
72
+ React.createElement(Trans, null, confirmationMessage))) : props.isConfirm && !isExportingPDF ? (React.createElement(Alert, { isInline: true, className: "pf-v6-u-p-sm pf-v6-u-mb-md phone-review-banner", variant: AlertVariant.warning, title: t('Review phone number'), component: "p", actionLinks: [
73
73
  React.createElement(Button, { variant: ButtonVariant.link, isInline: true, onClick: () => onCaseDetailsChange({ suppliedPhoneNumberVerified: 'True' }), "data-tracking-id": "case-contact-phone-number-confirm", isLoading: isCaseUpdating, isDisabled: isCaseUpdating },
74
74
  React.createElement(Trans, null, "Confirm phone number")),
75
75
  ] },
@@ -1 +1 @@
1
- {"version":3,"file":"CaseReferenceNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBA4LxD"}
1
+ {"version":3,"file":"CaseReferenceNumber.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,UAAU,MAAM;IACZ,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBA+LxD"}
@@ -106,17 +106,17 @@ export default function CaseReferenceNumber(props) {
106
106
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localRefNumberChange, value: referenceNumber, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.altID) }),
107
107
  ' ',
108
108
  !isExportingPDF ? (React.createElement(Tooltip, { trigger: 'mouseenter focus', position: TooltipPosition.top, content: React.createElement(Trans, null, "Add your internal tracking ID to better identify and organize support issues.") },
109
- React.createElement(InfoIcon, { className: "pf-v5-u-ml-sm", "aria-label": "Case Alternate ID" }))) : ('')), allowInlineEdit: inlineEditable, content: referenceNumber || t('No personal reference number to display.'), hideSaveCancel: hideSaveCancel, saveDisabled: saveDisabled, charCount: (referenceNumberState === null || referenceNumberState === void 0 ? void 0 : referenceNumberState.length) || 0, charTotal: CASE_REFERENCE_NUMBER_LIMIT, cancelToggleState: isCancelClicked, saveToggleState: isSaveClicked, isExportingPDF: isExportingPDF },
109
+ React.createElement(InfoIcon, { className: "pf-v6-u-ml-sm cursor-pointer pf-v6-u-text-color-status-custom", "aria-label": "Case Alternate ID" }))) : ('')), allowInlineEdit: inlineEditable, content: referenceNumber || t('No personal reference number to display.'), hideSaveCancel: hideSaveCancel, saveDisabled: saveDisabled, charCount: (referenceNumberState === null || referenceNumberState === void 0 ? void 0 : referenceNumberState.length) || 0, charTotal: CASE_REFERENCE_NUMBER_LIMIT, cancelToggleState: isCancelClicked, saveToggleState: isSaveClicked, isExportingPDF: isExportingPDF },
110
110
  React.createElement(TextInputGroup, null,
111
111
  React.createElement(TextInput, { value: referenceNumberState, type: "text", id: "case-details-reference-number", placeholder: t(`Enter the reference number used personally or within your company`), onChange: (_event, value) => onReferenceNumberChange(value), "data-tracking-id": "case-details-reference-number", isDisabled: isUpdating, onKeyDown: handleKeyDown, validated: (referenceNumberState === null || referenceNumberState === void 0 ? void 0 : referenceNumberState.length) > CASE_REFERENCE_NUMBER_LIMIT
112
112
  ? ValidatedOptions.error
113
113
  : ValidatedOptions.default }),
114
114
  !isUpdating ? (React.createElement(InputGroupText, null,
115
- React.createElement("button", { className: "btn btn-app btn-link pf-v5-u-ml-sm", type: "button", disabled: saveDisabled, onClick: onSave },
115
+ React.createElement("button", { className: "btn btn-app btn-link pf-v6-u-ml-sm", type: "button", disabled: saveDisabled, onClick: onSave },
116
116
  React.createElement(CheckIcon, null)),
117
117
  React.createElement("button", { className: "btn btn-app btn-link", type: "button", onClick: onCancel },
118
118
  React.createElement(TimesIcon, { color: "#6A6E73" })))) : (React.createElement(InputGroupText, null,
119
- React.createElement(Spinner, { size: "lg", className: "pf-v5-u-ml-2xl pf-v5-u-mr-xl" }))))),
119
+ React.createElement(Spinner, { size: "lg", className: "pf-v6-u-ml-2xl pf-v6-u-mr-xl" }))))),
120
120
  isReferenceNumberValid ? (React.createElement("div", { className: "pull-top" },
121
121
  React.createElement("p", { className: "form-instructions form-invalid" },
122
122
  React.createElement(Trans, null, maxLengthErrorMessage)))) : (React.createElement("p", { className: "form-instructions" },