@rh-support/troubleshoot 2.2.40 → 2.2.43

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 (151) hide show
  1. package/README.md +1 -1
  2. package/lib/esm/components/AccountInfo/AccountSelector.js +4 -4
  3. package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
  4. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +2 -2
  5. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
  6. package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +22 -19
  7. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  8. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +14 -9
  9. package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
  10. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +3 -3
  11. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
  12. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
  13. package/lib/esm/components/CaseEditView/CaseOverview/index.js +8 -8
  14. package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.js +1 -1
  15. package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
  16. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
  17. package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +17 -11
  18. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +2 -2
  19. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
  20. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +7 -6
  21. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
  22. package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +11 -10
  23. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +2 -2
  24. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
  25. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +11 -10
  26. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
  27. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -3
  28. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +4 -4
  29. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -2
  30. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
  31. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
  32. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +1 -1
  33. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +2 -2
  34. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.js +2 -2
  35. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
  36. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +7 -7
  37. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +1 -1
  38. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
  39. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +6 -6
  40. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +1 -1
  41. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
  42. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
  43. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +6 -4
  44. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
  45. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +18 -1
  46. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.d.ts.map +1 -1
  47. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +5 -3
  48. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +1 -1
  49. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +4 -4
  50. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
  51. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +3 -2
  52. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
  53. package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +3 -3
  54. package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
  55. package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
  56. package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
  57. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
  58. package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
  59. package/lib/esm/components/CaseInformation/Description.js +3 -3
  60. package/lib/esm/components/CaseInformation/Fts.js +3 -3
  61. package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
  62. package/lib/esm/components/CaseInformation/Severity.js +3 -2
  63. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  64. package/lib/esm/components/CaseInformation/SupportLevel.js +4 -3
  65. package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
  66. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +3 -2
  67. package/lib/esm/components/CaseManagement/CaseManagement.js +2 -2
  68. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  69. package/lib/esm/components/CaseManagement/Cep.js +28 -12
  70. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
  71. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +13 -12
  72. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +3 -3
  73. package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
  74. package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.js +1 -1
  75. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  76. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +4 -3
  77. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +2 -2
  78. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
  79. package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +15 -14
  80. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +3 -3
  81. package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +1 -1
  82. package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +3 -3
  83. package/lib/esm/components/IdeaInformation/IdeaInformation.js +5 -5
  84. package/lib/esm/components/ImproveCase/KtQuestions.d.ts.map +1 -1
  85. package/lib/esm/components/ImproveCase/KtQuestions.js +7 -7
  86. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +12 -15
  87. package/lib/esm/components/ProductSelector/AllProductsSelector.js +1 -1
  88. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  89. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +4 -3
  90. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +2 -2
  91. package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
  92. package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts +3 -0
  93. package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts.map +1 -1
  94. package/lib/esm/components/Recommendations/AlertToastWrapper.js +2 -2
  95. package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
  96. package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
  97. package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +1 -1
  98. package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
  99. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +7 -7
  100. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +1 -1
  101. package/lib/esm/components/Recommendations/Recommendations.js +1 -1
  102. package/lib/esm/components/Recommendations/RulesModal.js +1 -1
  103. package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
  104. package/lib/esm/components/Review/Review.js +2 -2
  105. package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
  106. package/lib/esm/components/SessionRestore/SessionRestore.js +5 -3
  107. package/lib/esm/components/SessionRestore/SessionRestoreCard.js +9 -9
  108. package/lib/esm/components/SubmitCase/ResubmitToast.d.ts +3 -0
  109. package/lib/esm/components/SubmitCase/ResubmitToast.d.ts.map +1 -1
  110. package/lib/esm/components/SubmitCase/ResubmitToast.js +3 -1
  111. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  112. package/lib/esm/components/SubmitCase/SubmitCase.js +18 -16
  113. package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
  114. package/lib/esm/components/Suggestions/TopContent.js +31 -4
  115. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +6 -6
  116. package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +4 -4
  117. package/lib/esm/components/shared/Rule.js +6 -6
  118. package/lib/esm/components/shared/fileUpload/FileLister.js +6 -6
  119. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +2 -2
  120. package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
  121. package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -1
  122. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
  123. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
  124. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +2 -2
  125. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
  126. package/lib/esm/components/wizardLayout/MainSection.js +1 -1
  127. package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
  128. package/lib/esm/components/wizardLayout/WizardAside.js +2 -2
  129. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  130. package/lib/esm/components/wizardLayout/WizardLayout.js +2 -2
  131. package/lib/esm/components/wizardLayout/WizardMain.js +1 -1
  132. package/lib/esm/components/wizardLayout/WizardNavigation.js +1 -1
  133. package/lib/esm/css/app.css +7 -7
  134. package/lib/esm/css/case.css +3 -3
  135. package/lib/esm/hooks/useWizard.js +1 -1
  136. package/lib/esm/reducers/CaseConstNTypes.d.ts +5 -1
  137. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  138. package/lib/esm/reducers/CaseConstNTypes.js +4 -0
  139. package/lib/esm/reducers/CaseReducer.d.ts +1 -1
  140. package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
  141. package/lib/esm/reducers/CaseReducer.js +19 -5
  142. package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -1
  143. package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
  144. package/lib/esm/reducers/SessionRestoreReducer.d.ts +1 -1
  145. package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
  146. package/lib/esm/reducers/SessionRestoreReducer.js +7 -1
  147. package/lib/esm/scss/_main.scss +35 -35
  148. package/lib/esm/scss/_pf4-overrides.scss +132 -84
  149. package/lib/esm/scss/index.scss +0 -1
  150. package/package.json +10 -12
  151. package/lib/esm/scss/_pf4-imports.scss +0 -30
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # `troubleshoot`
2
2
 
3
- Pluggable troubleshoot module
3
+ Pluggable troubleshoot module.
4
4
 
5
5
  ## Usage
6
6
 
@@ -109,17 +109,17 @@ function AccountSelector(props) {
109
109
  if (isEmpty(loggedInUserRights.data))
110
110
  return React.createElement(React.Fragment, null);
111
111
  return (React.createElement("div", { id: props.id, className: `form-group ${props.className}` },
112
- React.createElement(AlertMessage, { show: showNotEntitledMessage, variant: AlertType.DANGER, isInline: true, title: t("The selected account doesn't have entitlement"), className: "pf-u-mb-lg" }),
113
- React.createElement("div", { className: "account-selector-label-wrapper pf-u-display-flex" },
112
+ React.createElement(AlertMessage, { show: showNotEntitledMessage, variant: AlertType.DANGER, isInline: true, title: t("The selected account doesn't have entitlement"), className: "pf-v5-u-mb-lg" }),
113
+ React.createElement("div", { className: "account-selector-label-wrapper pf-v5-u-display-flex" },
114
114
  React.createElement("label", { htmlFor: "account-selector" },
115
115
  React.createElement(Trans, null, "Account"),
116
116
  ' ',
117
117
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
118
- canUseFindMyAccount && (React.createElement("button", { role: "link", className: "btn btn-link btn-app find-my-account pf-u-ml-auto", onClick: onFindMyAccountClick, disabled: selectedAccountDetails.isFetching, "data-tracking-id": "get-support-find-my-account" },
118
+ canUseFindMyAccount && (React.createElement("button", { role: "link", className: "btn btn-link btn-app find-my-account pf-v5-u-ml-auto", onClick: onFindMyAccountClick, disabled: selectedAccountDetails.isFetching, "data-tracking-id": "get-support-find-my-account" },
119
119
  React.createElement(Trans, null, "Find my account")))),
120
120
  React.createElement("div", { className: "account-selector-wrapper" },
121
121
  React.createElement(AccountSelectorInternal, { selectedAccounts: [selectedAccount], canBookmarkAccount: canBookmarkAccounts, bookmarkedAccounts: bookmarkedGroupAccounts.data, id: "account-or-bookmark-selector", className: "account-selector", name: "account-or-bookmark-selector", placeholder: t(`Search for an account ${loggedInUserRights.data.isExternal() ? 'or select a bookmark' : ''} `), onSelect: onInternalAccountSelect, disabled: loggedInUserRights.data.isExternal() || selectedAccountDetails.isFetching, isInValid: isSelectedAccountSubscriptionAbused, restrictedOnSubscriptionAbuse: true })),
122
- canAccessManagedAccounts && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-u-mt-xl", onManagedAccountChange: onManagedAccountChange, managedAccounts: managedAccounts, selectedAccountNumber: accountNumber, disabled: selectedAccountDetails.isFetching })),
122
+ canAccessManagedAccounts && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-v5-u-mt-xl", onManagedAccountChange: onManagedAccountChange, managedAccounts: managedAccounts, selectedAccountNumber: accountNumber, disabled: selectedAccountDetails.isFetching })),
123
123
  isSelectedAccountSubscriptionAbused && (React.createElement("p", { className: "form-instructions form-invalid" },
124
124
  React.createElement(InfoCircleIcon, null),
125
125
  ' ',
@@ -26,7 +26,7 @@ function ManagedAccountsDropdown(props) {
26
26
  }, [props.managedAccounts.data, props.selectedAccountNumber]);
27
27
  // Only accounts that have granted access permission to partner should be listed
28
28
  const managedAccountsWithPermission = () => props.managedAccounts.data.filter((account) => account.partnerCaseAccess === 'All') || [];
29
- const managedAccountsOptions = managedAccountsWithPermission().map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-u-text-nowrap pf-u-pr-sm" },
29
+ const managedAccountsOptions = managedAccountsWithPermission().map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-v5-u-text-nowrap pf-v5-u-pr-sm" },
30
30
  ' ',
31
31
  React.createElement(InfoCircleIcon, null),
32
32
  " ",
@@ -28,7 +28,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
28
28
  React.createElement("li", null, t('The customer thinks the case is not moving appropriately')),
29
29
  React.createElement("li", null, t('The customer wants a new resource')),
30
30
  React.createElement("li", null, t('The issue is more severe than originally thought'))),
31
- React.createElement("a", { href: `/watchlist/internal/aces/new?caseNumber=${props.caseNumber}`, className: "pf-c-button pf-m-tertiary", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "request-ace-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
31
+ React.createElement("a", { href: `/watchlist/internal/aces/new?caseNumber=${props.caseNumber}`, className: "pf-v5-c-button pf-m-tertiary", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "request-ace-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
32
32
  const [openRequestEscalationModal, setOpenRequestEscalationModal] = useState(false);
33
33
  const toggleModal = () => {
34
34
  if (canEditCase.alert())
@@ -51,7 +51,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
51
51
  React.createElement("li", null, t('Needs a senior resource.')),
52
52
  React.createElement("li", null, t('Is more severe or should be a higher priority.'))),
53
53
  commonElements,
54
- React.createElement(Button, { className: "pf-c-button pf-m-tertiary", onClick: toggleModal, "data-tracking-id": "request-rme-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
54
+ React.createElement(Button, { className: "pf-v5-c-button pf-m-tertiary", onClick: toggleModal, "data-tracking-id": "request-rme-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
55
55
  return (React.createElement(React.Fragment, null,
56
56
  React.createElement(RequestEscalationModal, { caseNumber: props.caseNumber, severity: props.caseSeverity, caseStatus: props.caseStatus, show: openRequestEscalationModal, onClose: toggleModal }),
57
57
  React.createElement(Can, { do: resourceActions.CREATE, on: resources.ICE_ESCALATION, passThrough: true }, (canCreateICE) => canCreateICE ? isInternalElements : isCreateRMEVisible ? isNotInternalElements : React.createElement(React.Fragment, null))));
@@ -1 +1 @@
1
- {"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"AAwCA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,eA0WnD"}
1
+ {"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"AAyCA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,eA6WnD"}
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { escalations, publicApi } from '@cee-eng/hydrajs';
11
- import { Button, Form, FormGroup, Grid, GridItem, Modal, Popover, Select, SelectOption, TextArea, TextInput, Title, ValidatedOptions, } from '@patternfly/react-core';
12
- import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
11
+ import { Button, Form, FormGroup, FormHelperText, Grid, GridItem, HelperText, HelperTextItem, Modal, Popover, TextArea, TextInput, Title, ValidatedOptions, } from '@patternfly/react-core';
12
+ import { Select, SelectOption } from '@patternfly/react-core/deprecated';
13
13
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
14
14
  import { AlertMessage, AlertType, LoadingIndicator, ToastNotification, useFetch } from '@rh-support/components';
15
15
  import { useGlobalStateContext } from '@rh-support/react-context';
@@ -46,7 +46,7 @@ export function RequestEscalationModal(props) {
46
46
  const [submitButtonIsClicked, setSubmitSaveButtonIsClicked] = useState(false);
47
47
  // checks if all the fields have values.
48
48
  const hasRequiredInfo = () => Object.keys(formState).reduce((accumulator, currentValue) => { var _a; return !accumulator ? accumulator : formState[currentValue].length > 0 && ((_a = formState[currentValue]) === null || _a === void 0 ? void 0 : _a.trim()); }, true);
49
- const setFormStateValue = (key) => (value) => setFormState(Object.assign(Object.assign({}, formState), { [key]: value }));
49
+ const setFormStateValue = (key, value) => setFormState((pre) => (Object.assign(Object.assign({}, pre), { [key]: value })));
50
50
  const createEscalationFetch = useFetch(escalations.createIceEscalation, { propgateErrors: true });
51
51
  const { request: postCommentRequest, isFetching: isPostingComment } = useFetch(publicApi.kase.postComment, {
52
52
  propgateErrors: true,
@@ -126,11 +126,11 @@ export function RequestEscalationModal(props) {
126
126
  t('Submit')),
127
127
  React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: createEscalationFetch.isFetching || isPostingComment || isUpdatingCase, "aria-label": t('Cancel') }, t('Cancel')),
128
128
  ];
129
- const header = (React.createElement(Title, { className: "pf-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
129
+ const header = (React.createElement(Title, { className: "pf-v5-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
130
130
  React.createElement(Trans, null, "Request an escalation"),
131
131
  React.createElement(Popover, { showClose: false, position: 'top', hasAutoWidth: true, bodyContent: () => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
132
132
  React.createElement(Trans, null, "Learn more about escalation cases."))) },
133
- React.createElement(InfoCircleIcon, { className: "pf-u-ml-sm" }))));
133
+ React.createElement(InfoCircleIcon, { className: "pf-v5-u-ml-sm" }))));
134
134
  // load rme categories as soon as user opens the modal
135
135
  useEffect(() => {
136
136
  if (!props.show || categories.length !== 0)
@@ -148,37 +148,40 @@ export function RequestEscalationModal(props) {
148
148
  // eslint-disable-next-line react-hooks/exhaustive-deps
149
149
  }, [props.show]);
150
150
  return (React.createElement(Modal, { id: "request-mgmt-escalation-modal", className: "request-escalation-modal", isOpen: props.show, onClose: onCancel, actions: modalActions, header: header, "aria-label": t('Request an escalation') },
151
- React.createElement("p", { className: "pf-u-mb-md" },
151
+ React.createElement("p", { className: "pf-v5-u-mb-md" },
152
152
  React.createElement(Trans, { i18nKey: "i18RequestEscalationDescription" }, "Submit an escalation if an issue has become more severe or you feel the case needs a higher priority. A support manager will review your escalation request.")),
153
- React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-u-mb-md", "aria-label": t('Could not create case escalation') }),
153
+ React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-v5-u-mb-md", "aria-label": t('Could not create case escalation') }),
154
154
  React.createElement(Form, { "aria-label": t('form'), className: "request-escalation-form" },
155
155
  React.createElement(Grid, { hasGutter: true, md: 12 },
156
156
  React.createElement(GridItem, { span: 6 },
157
157
  React.createElement(FormGroup, { isRequired: true, label: t('Category'), fieldId: "escalation-category" },
158
158
  React.createElement(Select, Object.assign({ "aria-label": t('Category'), id: "customer-category-select", selections: formState.rmeCategory, validated: submitButtonIsClicked && isEmpty(formState.rmeCategory)
159
159
  ? ValidatedOptions.error
160
- : ValidatedOptions.default, "aria-invalid": submitButtonIsClicked && isEmpty(formState.rmeCategory), onSelect: setCategoryState, isOpen: showCategoryDropdown, placeholderText: t('Select an option that best fits'), onToggle: onCategoryDropdownToggle }, (isCategoriesFetching && { loadingVariant: 'spinner' })), categories.map((value, index) => (React.createElement(SelectOption, { key: index, value: value }, value)))))),
160
+ : ValidatedOptions.default, "aria-invalid": submitButtonIsClicked && isEmpty(formState.rmeCategory), onSelect: setCategoryState, isOpen: showCategoryDropdown, placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onCategoryDropdownToggle(toggle) }, (isCategoriesFetching && { loadingVariant: 'spinner' })), categories.map((value, index) => (React.createElement(SelectOption, { key: index, value: value }, value)))))),
161
161
  React.createElement(GridItem, { span: 6 },
162
162
  React.createElement(FormGroup, { isRequired: true, label: t('My region'), fieldId: "escalation-region" },
163
163
  React.createElement(Select, { "aria-label": t('My region'), id: "customer-geo-select", selections: formState.geo, onSelect: setGeoState, isOpen: showGeoDropdown, validated: submitButtonIsClicked && isEmpty(formState.geo)
164
164
  ? ValidatedOptions.error
165
- : ValidatedOptions.default, placeholderText: t('Select a location'), onToggle: onGeoDropdownToggle, "aria-invalid": submitButtonIsClicked && isEmpty(formState.geo) }, customerGEOKeys.map((key, index) => (React.createElement(SelectOption, { key: index, value: CustomerGEOs[key].value }, t(CustomerGEOs[key].label))))))),
166
- React.createElement(FormGroup, { isRequired: true, validated: submitButtonIsClicked && hasLargeSubject ? ValidatedOptions.error : ValidatedOptions.default, helperTextInvalid: t('Subject cannot be more than {{limit}} characters', {
167
- limit: ESCALATION_SUBJECT_LENGTH_LIMIT,
168
- }), helperTextInvalidIcon: React.createElement(ExclamationCircleIcon, null), label: t('Subject'), fieldId: "escalation-subject" },
165
+ : ValidatedOptions.default, placeholderText: t('Select a location'), onToggle: (_event, toggle) => onGeoDropdownToggle(toggle), "aria-invalid": submitButtonIsClicked && isEmpty(formState.geo) }, customerGEOKeys.map((key, index) => (React.createElement(SelectOption, { key: index, value: CustomerGEOs[key].value }, t(CustomerGEOs[key].label))))))),
166
+ React.createElement(FormGroup, { isRequired: true, label: t('Subject'), fieldId: "escalation-subject" },
167
+ submitButtonIsClicked && hasLargeSubject && (React.createElement(FormHelperText, null,
168
+ React.createElement(HelperText, null,
169
+ React.createElement(HelperTextItem, { variant: ValidatedOptions.error, hasIcon: true }, t('Subject cannot be more than {{limit}} characters', {
170
+ limit: ESCALATION_SUBJECT_LENGTH_LIMIT,
171
+ }))))),
169
172
  React.createElement(TextInput, { isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.subject)) || hasLargeSubject
170
173
  ? ValidatedOptions.error
171
- : ValidatedOptions.default, type: "text", placeholder: t('Enter a subject for your request'), id: "subject-input", name: "subject-input", value: formState.subject, onChange: onSubjectChange, "aria-label": t('Subject') })),
174
+ : ValidatedOptions.default, type: "text", placeholder: t('Enter a subject for your request'), id: "subject-input", name: "subject-input", value: formState.subject, onChange: (_event, subject) => onSubjectChange(subject), "aria-label": t('Subject') })),
172
175
  React.createElement(FormGroup, { isRequired: true, label: t('Description'), fieldId: "escalation-description" },
173
- React.createElement(TextArea, { value: formState.description, onChange: setFormStateValue('description'), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.description)
176
+ React.createElement(TextArea, { value: formState.description, onChange: (e, value) => setFormStateValue('description', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.description)
174
177
  ? ValidatedOptions.error
175
- : ValidatedOptions.default, "aria-label": t('Description'), id: "description-textarea", placeholder: t('Provide a detailed comment for us to best assist you') })),
178
+ : ValidatedOptions.default, "aria-label": t('Description'), id: "description-textarea", placeholder: t('Provide a detailed comment for us to best assist you'), resizeOrientation: "vertical" })),
176
179
  React.createElement(FormGroup, { isRequired: true, label: t('Expectations'), fieldId: "escalation-expectations" },
177
- React.createElement(TextArea, { onChange: setFormStateValue('expectations'), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.expectations)
180
+ React.createElement(TextArea, { onChange: (e, value) => setFormStateValue('expectations', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.expectations)
178
181
  ? ValidatedOptions.error
179
- : ValidatedOptions.default, placeholder: t('What do you expect to happen with this escalation?'), id: "expectations-input", value: formState.expectations, "aria-label": t('Expectations') })),
182
+ : ValidatedOptions.default, placeholder: t('What do you expect to happen with this escalation?'), id: "expectations-input", value: formState.expectations, "aria-label": t('Expectations'), resizeOrientation: "vertical" })),
180
183
  React.createElement(FormGroup, { isRequired: true, label: t('Business impact'), fieldId: "escalation-business-impact" },
181
- React.createElement(TextArea, { onChange: setFormStateValue('businessImpactDescription'), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.businessImpactDescription)
184
+ React.createElement(TextArea, { onChange: (e, value) => setFormStateValue('businessImpactDescription', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.businessImpactDescription)
182
185
  ? ValidatedOptions.error
183
- : ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact') }))))));
186
+ : ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact'), resizeOrientation: "vertical" }))))));
184
187
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AA8BA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAiW7C"}
1
+ {"version":3,"file":"CaseDetailsAside.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/CaseDetailsAside.tsx"],"names":[],"mappings":"AA8BA,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,eA2W7C"}
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { Button, Checkbox, Popover, PopoverPosition, Switch, Tooltip } from '@patternfly/react-core';
10
+ import { Button, Checkbox, Icon, Popover, PopoverPosition, Switch, Tooltip } from '@patternfly/react-core';
11
11
  import AngleDoubleLeftIcon from '@patternfly/react-icons/dist/js/icons/angle-double-left-icon';
12
12
  import AngleDoubleRightIcon from '@patternfly/react-icons/dist/js/icons/angle-double-right-icon';
13
13
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
@@ -173,33 +173,38 @@ export function CaseDetailsAside(props) {
173
173
  React.createElement(Button, { variant: "link", isInline: true, title: t('Collapse sidebar') },
174
174
  React.createElement("span", null,
175
175
  React.createElement(Trans, null, "Collapse")),
176
- React.createElement(AngleDoubleRightIcon, { className: "pf-u-ml-auto", size: "md" })))) : (React.createElement("div", { className: "pf-u-display-flex pf-u-flex-direction-column sidebar-section-collapsed" },
176
+ React.createElement(Icon, { className: "pf-v5-u-ml-auto", size: "md" },
177
+ React.createElement(AngleDoubleRightIcon, null))))) : (React.createElement("div", { className: "pf-v5-u-display-flex pf-v5-u-flex-direction-column sidebar-section-collapsed" },
177
178
  React.createElement(Tooltip, { content: t('Expand sidebar'), position: "left" },
178
179
  React.createElement(Button, { variant: "link" },
179
- React.createElement(AngleDoubleLeftIcon, { size: "md" }))),
180
+ React.createElement(Icon, { size: "md" },
181
+ React.createElement(AngleDoubleLeftIcon, null)))),
180
182
  canSeeToggleCustomerView && (React.createElement(Tooltip, { content: viewAsCustomer ? t('External view') : t('Internal view'), position: "left" },
181
183
  React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(toggleCustomerViewRef), className: "sidebar-section-toggle-btn" },
182
- React.createElement(LockIcon, { size: "md", className: viewAsCustomer ? 'blueLock' : 'greyLock' })))),
184
+ React.createElement(Icon, { size: "md", className: viewAsCustomer ? 'blueLock' : 'greyLock' },
185
+ React.createElement(LockIcon, null))))),
183
186
  !isLoadingRecommendations && allDocs.length > 0 && (React.createElement(Tooltip, { content: t('Top recommendations'), position: "left" },
184
187
  React.createElement(Button, { variant: "link", onClick: () => setSectionToScollRef(topSolutionsRef), className: "sidebar-section-toggle-btn" },
185
- React.createElement(ListIcon, { size: "md" })))),
188
+ React.createElement(Icon, { size: "md" },
189
+ React.createElement(ListIcon, null))))),
186
190
  !caseEscalations.isFetching && (canCreateICE || (canCreateRME && isCreateRMEVisible)) && (React.createElement(Tooltip, { content: t('Request an escalation'), position: "left" },
187
191
  React.createElement(Button, { variant: "link", className: "sidebar-section-toggle-btn", onClick: () => setSectionToScollRef(createEscalationRef) },
188
- React.createElement(TrendUpIcon, { size: "md" }))))))),
192
+ React.createElement(Icon, { size: "md" },
193
+ React.createElement(TrendUpIcon, null)))))))),
189
194
  React.createElement("pfe-collapse-panel", { className: "sidebar-content", "pfe-animation": "false", id: "case-details-aside-content", ref: caseDetailsAsidePanelRef },
190
195
  React.createElement("div", { className: "grid-aside-content" },
191
196
  React.createElement("div", null,
192
- canSeeToggleCustomerView && (React.createElement("div", { className: "pf-u-display-flex customer-view-toggle", ref: toggleCustomerViewRef },
197
+ canSeeToggleCustomerView && (React.createElement("div", { className: "pf-v5-u-display-flex customer-view-toggle", ref: toggleCustomerViewRef },
193
198
  React.createElement("span", { className: "customer-view-switch-label" },
194
199
  preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'),
195
200
  React.createElement(Popover, { "aria-label": "Preferred-default-case-view-popover", position: PopoverPosition.top, bodyContent: React.createElement("p", { className: 'pref-case-popover-text' },
196
201
  React.createElement(Trans, null, renderCasePrefPopoverText())), showClose: false },
197
- React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-u-ml-sm" }))),
202
+ React.createElement(InfoCircleIcon, { "aria-label": "Preferred-case-view-info-icon", className: "pf-v5-u-ml-sm" }))),
198
203
  React.createElement(Switch, { title: preferredOrDefaultCaseView() ? t('Customer view') : t('Internal view'), "data-tracking-id": preferredOrDefaultCaseView()
199
204
  ? 'disable-view-as-customer'
200
205
  : 'enable-view-as-customer', "aria-label": preferredOrDefaultCaseView()
201
206
  ? 'disable view as customer'
202
- : 'enable view as customer', id: "customer-view-switch", className: "pf-u-ml-auto", isChecked: preferredOrDefaultCaseView(), onChange: onCaseSwitchChange }))),
207
+ : 'enable view as customer', id: "customer-view-switch", className: "pf-v5-u-ml-auto", isChecked: preferredOrDefaultCaseView(), onChange: onCaseSwitchChange }))),
203
208
  canSeeToggleCustomerView && (React.createElement("div", null,
204
209
  React.createElement(Checkbox, { label: t('Set to default'), isChecked: isDefaultBoxChecked, onChange: onDefaultCheckboxChange, id: "set-default-view-checkbox", name: "default-view-checkbox", isDisabled: isDefaultBoxChecked, className: 'defaultViewCheckbox' })))),
205
210
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading top solutions') } },
@@ -46,7 +46,7 @@ export function CaseDetailsErrorMessage(props) {
46
46
  '404': { message: errorMessage404 },
47
47
  });
48
48
  };
49
- return (React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-u-mb-lg", show: true,
49
+ return (React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v5-u-mb-lg", show: true,
50
50
  // Here customizing title of alert based on case group error.
51
51
  title: errorMessageTitle(errorDetails, Object.assign({}, (isCaseGroupError && {
52
52
  '403': { title: invalidCaseGroupErrorTitle },
@@ -107,20 +107,20 @@ export function CaseDetailsTabs(props) {
107
107
  return (React.createElement("div", { className: "case-details-tabs", ref: props.tabdRef },
108
108
  React.createElement(Tabs, { className: isExportingPDF ? 'hide-in-pdf' : '', activeKey: getActiveTabKey(), component: TabsComponent.nav, onSelect: handleTabClick, role: "region", "aria-label": t('Case details tabs') }, tabsToRender.map((tab, index) => (React.createElement(Tab, { eventKey: index, tabContentRef: tab.ref, tabContentId: tab.key, key: tab.title, href: `#${props.basePath}/${tab.routePath}`, "data-tracking-id": tab['data-tracking-id'], title: React.createElement(TabTitleText, null,
109
109
  React.createElement(Trans, null, tab.title)) })))),
110
- React.createElement("div", { className: "case-details-tabs-content pf-u-pt-xl" }, tabsToRender.map((tab, index) => {
110
+ React.createElement("div", { className: "case-details-tabs-content pf-v5-u-pt-xl" }, tabsToRender.map((tab, index) => {
111
111
  return index === getActiveTabKey() && !isExportingPDF ? (React.createElement(TabContent, { eventKey: index, key: tab.key, id: tab.key, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
112
112
  React.createElement(ErrorBoundary, { errorMsgInfo: {
113
113
  message: t(`There was an error loading case ${tab.key}`),
114
114
  } },
115
115
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
116
- React.createElement(TextContent, { className: "show-in-pdf pf-u-mt-md" },
116
+ React.createElement(TextContent, { className: "show-in-pdf pf-v5-u-mt-md" },
117
117
  React.createElement(Text, { component: TextVariants.h2 }, tab.title)),
118
118
  tab.component)))) : isExportingPDF ? (React.createElement(TabContent, { eventKey: index, key: tab.key, id: tab.key, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
119
119
  React.createElement(ErrorBoundary, { errorMsgInfo: {
120
120
  message: t(`There was an error loading case ${tab.key}`),
121
121
  } },
122
122
  React.createElement(Suspense, { fallback: React.createElement(LoadingIndicator, { size: "sm" }) },
123
- React.createElement(TextContent, { className: "show-in-pdf pf-u-mt-md" },
123
+ React.createElement(TextContent, { className: "show-in-pdf pf-v5-u-mt-md" },
124
124
  React.createElement(Text, { component: TextVariants.h2 }, tab.title)),
125
125
  tab.component)))) : (React.createElement(React.Fragment, null));
126
126
  }))));
@@ -46,5 +46,5 @@ export default function CaseOwnerInfo(props) {
46
46
  React.createElement(Trans, null, "Office location")),
47
47
  ": ",
48
48
  props.caseDetailsHydra.data.caseOwner.officeLocation)) },
49
- React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Support Level Info" })))))));
49
+ React.createElement(QuestionCircleIcon, { className: "pf-v5-u-ml-xs icon-size", "aria-label": "Support Level Info" })))))));
50
50
  }
@@ -19,5 +19,5 @@ export default function DateTime({ showToolTip = true, toolTipTimeFormat = defau
19
19
  return (React.createElement(React.Fragment, null,
20
20
  React.createElement("time", { dateTime: dateTimeString }, formatDateTime(dateTimeString, locale, dateTimeFormat)),
21
21
  showToolTip && (React.createElement(Tooltip, { content: React.createElement("time", { dateTime: dateTimeString }, formatDateTime(dateTimeString, locale, toolTipTimeFormat)) },
22
- React.createElement(InfoIcon, { className: `pf-u-ml-sm ${isExportingPDF ? 'hide-in-pdf' : ''}` })))));
22
+ React.createElement(InfoIcon, { className: `pf-v5-u-ml-sm ${isExportingPDF ? 'hide-in-pdf' : ''}` })))));
23
23
  }
@@ -221,15 +221,15 @@ export default function CaseOverview(props) {
221
221
  React.createElement("div", { className: "case-overview-header" },
222
222
  canSeeInactivityWarning && isCaseInOpenState && (React.createElement(React.Fragment, null,
223
223
  ' ',
224
- firstCaseInactivityWarningSentAt && !secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-u-mb-md", isInline: true, title: React.createElement(React.Fragment, null,
225
- React.createElement("h3", { className: "pf-u-mb-sm pf-c-alert__title" },
224
+ firstCaseInactivityWarningSentAt && !secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-v5-u-mb-md", isInline: true, title: React.createElement(React.Fragment, null,
225
+ React.createElement("h3", { className: "pf-v5-u-mb-sm pf-v5-c-alert__title" },
226
226
  React.createElement(Trans, null, "Case inactivity notification")),
227
- React.createElement("p", { className: "pf-u-mb-sm" },
227
+ React.createElement("p", { className: "pf-v5-u-mb-sm" },
228
228
  React.createElement(Trans, null, "The customer has received one warning regarding inactivity."))) })),
229
- firstCaseInactivityWarningSentAt && secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(React.Fragment, null,
230
- React.createElement("h3", { className: "pf-u-mb-sm pf-c-alert__title" },
229
+ firstCaseInactivityWarningSentAt && secondCaseInactivityWarningSentAt && (React.createElement(Alert, { className: "pf-v5-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(React.Fragment, null,
230
+ React.createElement("h3", { className: "pf-v5-u-mb-sm pf-v5-c-alert__title" },
231
231
  React.createElement(Trans, null, "Case inactivity warning")),
232
- React.createElement("p", { className: "pf-u-mb-sm" },
232
+ React.createElement("p", { className: "pf-v5-u-mb-sm" },
233
233
  React.createElement(Trans, null, "The customer has received two warnings regarding inactivity. This case will be closed soon if we don't receive any input."))) })))),
234
234
  React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
235
235
  React.createElement(CasePhoneNumberSev1ConfirmAlert, { isReview: true, tabRef: props.tabsRef }),
@@ -240,7 +240,7 @@ export default function CaseOverview(props) {
240
240
  props.caseNumber),
241
241
  React.createElement("div", null,
242
242
  exportPDFButton(props.caseNumber),
243
- React.createElement(Button, Object.assign({ className: `pf-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase || (caseOverviewState.caseStatusUpdating && isCaseUpdating) }, (caseOverviewState.caseStatusUpdating &&
243
+ React.createElement(Button, Object.assign({ className: `pf-v5-u-ml-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, isDisabled: !canManageCase || (caseOverviewState.caseStatusUpdating && isCaseUpdating) }, (caseOverviewState.caseStatusUpdating &&
244
244
  isCaseUpdating && {
245
245
  isLoading: true,
246
246
  }), { onClick: () => (isCaseInOpenState ? onCaseClose() : onCaseReopen()), variant: isCaseInOpenState ? ButtonVariant.secondary : ButtonVariant.tertiary, "data-tracking-id": isCaseInOpenState
@@ -280,7 +280,7 @@ export default function CaseOverview(props) {
280
280
  React.createElement("div", null, createdDate ? React.createElement(DateTime, { dateTimeString: createdDate }) : null)),
281
281
  canSeeCaseOwnerInfo && (React.createElement(CaseOwnerInfo, { owner: ownerId, caseDetailsHydra: caseOverviewState.caseDetailsHydra }))),
282
282
  React.createElement("div", { className: "case-overview-secondary card card-md card-light push-bottom" },
283
- React.createElement("div", { className: "pf-l-grid pf-m-gutter pf-m-all-4-col-on-lg" },
283
+ React.createElement("div", { className: "pf-v5-l-grid pf-m-gutter pf-m-all-4-col-on-lg" },
284
284
  React.createElement("div", { className: "form-wrapper" },
285
285
  React.createElement(CaseStatus, { selectedStatus: status, onStatusChange: onStatusChange, isDisabled: !canManageCase || caseOverviewState.allCaseStatuses.isFetching, allStatuses: caseOverviewState.allCaseStatuses.data, isFetching: caseOverviewState.caseStatusUpdating && isCaseUpdating, hasError: caseOverviewState.allCaseStatuses.isError })),
286
286
  React.createElement("div", { className: "form-wrapper" },
@@ -17,6 +17,6 @@ export function CaseSecureSupportAlert(props) {
17
17
  "to access secure support cases."));
18
18
  }
19
19
  };
20
- return (React.createElement(AlertMessage, { className: "pf-u-mb-md", variant: AlertType.WARNING, show: isSecureSupportTechViewingSecureCase, isInline: true },
20
+ return (React.createElement(AlertMessage, { className: "pf-v5-u-mb-md", variant: AlertType.WARNING, show: isSecureSupportTechViewingSecureCase, isInline: true },
21
21
  React.createElement(Trans, null, getWarningMsg())));
22
22
  }
@@ -3,6 +3,6 @@ import { SubscriptionAbuseModalText, SubscriptionAbuseModalTitle } from '@rh-sup
3
3
  import React from 'react';
4
4
  import { Trans } from 'react-i18next';
5
5
  export function CaseSubscriptionAbuseAlert() {
6
- return (React.createElement(Alert, { className: "pf-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(Trans, null, SubscriptionAbuseModalTitle), children: React.createElement("p", { className: "pf-u-mb-sm" },
6
+ return (React.createElement(Alert, { className: "pf-v5-u-mb-md", isInline: true, variant: AlertVariant.warning, title: React.createElement(Trans, null, SubscriptionAbuseModalTitle), children: React.createElement("p", { className: "pf-v5-u-mb-sm" },
7
7
  React.createElement(Trans, null, SubscriptionAbuseModalText)) }));
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ReopenCaseModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ConfirmationModals/ReopenCaseModal.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,KAAA,EAAE,SAAS,KAAA,EAAE,UAAU,CAAC,KAAA,EAAE,iBAAiB,CAAC,KAAA,EAAE,cAAc,CAAC,KAAA,EAAE,mBAAmB,CAAC,KAAA,KAAK,IAAI,CAAC;IACpH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,cAAc,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACzB;AAMD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eA8L5C"}
1
+ {"version":3,"file":"ReopenCaseModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ConfirmationModals/ReopenCaseModal.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,KAAA,EAAE,SAAS,KAAA,EAAE,UAAU,CAAC,KAAA,EAAE,iBAAiB,CAAC,KAAA,EAAE,cAAc,CAAC,KAAA,EAAE,mBAAmB,CAAC,KAAA,KAAK,IAAI,CAAC;IACpH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,cAAc,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACzB;AAMD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eAuM5C"}
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { Button, ButtonVariant, Form, FormGroup, Modal, ModalVariant, Select, SelectOption, TextArea, } from '@patternfly/react-core';
11
- import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
10
+ import { Button, ButtonVariant, Form, FormGroup, FormHelperText, HelperText, HelperTextItem, Modal, ModalVariant, TextArea, } from '@patternfly/react-core';
11
+ import { Select, SelectOption } from '@patternfly/react-core/deprecated';
12
12
  import { formatDateTime } from '@rh-support/utils';
13
13
  import isEmpty from 'lodash/isEmpty';
14
14
  import React, { useState } from 'react';
@@ -76,15 +76,21 @@ export function ReopenCaseModal(props) {
76
76
  React.createElement(Trans, null, "Cancel")),
77
77
  ], variant: ModalVariant.medium },
78
78
  React.createElement(Form, { className: "case-reopen-modal-form" },
79
- (!props.isInternal || !props.reopenStatus) && (React.createElement(FormGroup, { label: t(props.isInternal ? 'Status' : 'Reason'), isRequired: true, fieldId: "case-resolution", helperTextInvalid: "Required field", validated: showValidationError && (props.isInternal ? !selectedStatus : !selectedReason)
80
- ? 'error'
81
- : 'default', helperTextInvalidIcon: React.createElement(ExclamationCircleIcon, null) }, props.isInternal ? (React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "reopen-case-status", selections: selectedStatus, onSelect: onStatusChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedStatus ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: onDropdownToggle }, props.allStatuses
82
- .filter((status) => status !== CaseStatusEnum.CLOSED)
83
- .map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
84
- React.createElement(Trans, null, option)))))) : (React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "case-resolution", selections: selectedReason, onSelect: onReasonChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedReason ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: onDropdownToggle }, reasonsList.map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
85
- React.createElement(Trans, null, option)))))))),
86
- showTextArea && (React.createElement(FormGroup, { label: t('Please describe your reason'), type: "text", helperText: t(`Your comment will be visible${props.isInternal ? ' to the customers' : ''} under discussions after reopening.`), isRequired: true, fieldId: "reopen-case-description" },
79
+ (!props.isInternal || !props.reopenStatus) && (React.createElement(FormGroup, { label: t(props.isInternal ? 'Status' : 'Reason'), isRequired: true, fieldId: "case-resolution" },
80
+ showValidationError && (props.isInternal ? !selectedStatus : !selectedReason) && (React.createElement(FormHelperText, null,
81
+ React.createElement(HelperText, null,
82
+ React.createElement(HelperTextItem, { variant: "error", hasIcon: true },
83
+ React.createElement(Trans, null, "Required field"))))),
84
+ props.isInternal ? (React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "reopen-case-status", selections: selectedStatus, onSelect: onStatusChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedStatus ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onDropdownToggle(toggle) }, props.allStatuses
85
+ .filter((status) => status !== CaseStatusEnum.CLOSED)
86
+ .map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
87
+ React.createElement(Trans, null, option)))))) : (React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "case-resolution", selections: selectedReason, onSelect: onReasonChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedReason ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onDropdownToggle(toggle) }, reasonsList.map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
88
+ React.createElement(Trans, null, option)))))))),
89
+ showTextArea && (React.createElement(FormGroup, { label: t('Please describe your reason'), type: "text", isRequired: true, fieldId: "reopen-case-description" },
90
+ React.createElement(FormHelperText, null,
91
+ React.createElement(HelperText, null,
92
+ React.createElement(HelperTextItem, { hasIcon: true }, t(`Your comment will be visible${props.isInternal ? ' to the customers' : ''} under discussions after reopening.`)))),
87
93
  React.createElement(TextArea, { placeholder: t(props.isInternal
88
94
  ? 'Describe the reason for reopening with the selected status'
89
- : 'The better the description, the easier it will be for our support team to address your case.'), validated: showValidationError && isDescriptionEmpty && !reopenDescription ? 'error' : 'default', isRequired: true, id: "reopen-case-description", name: "reopen-case-description", "aria-describedby": "reopen-case-description", value: reopenDescription, onChange: onDescriptionChange, isDisabled: props.isUpdating }))))));
95
+ : 'The better the description, the easier it will be for our support team to address your case.'), validated: showValidationError && isDescriptionEmpty && !reopenDescription ? 'error' : 'default', isRequired: true, id: "reopen-case-description", name: "reopen-case-description", "aria-describedby": "reopen-case-description", value: reopenDescription, onChange: (_event, text) => onDescriptionChange(text), isDisabled: props.isUpdating, resizeOrientation: "vertical" }))))));
90
96
  }
@@ -29,7 +29,7 @@ export const ESSRemoteSession = forwardRef((props, ref) => {
29
29
  const termsAcked = remoteSessionTermsAcked && !screenSessionRequested;
30
30
  // ESS RS Aside Section Body
31
31
  const ESSRemoteSessionSectionBody = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
32
- React.createElement("h3", { className: "card-heading pf-u-display-flex pf-u-justify-content-space-between" },
32
+ React.createElement("h3", { className: "card-heading pf-v5-u-display-flex pf-v5-u-justify-content-space-between" },
33
33
  t('Remote session'),
34
34
  React.createElement(Popover, { "aria-label": t('Remote Session Helper Info'), bodyContent: t('A remote session allows support engineers to view or access your computer to simplify collaboration and troubleshooting.'), 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')) },
35
35
  React.createElement(InfoCircleIcon, null))),
@@ -40,7 +40,7 @@ export const ESSRemoteSession = forwardRef((props, ref) => {
40
40
  React.createElement("li", null, t(`Such access will help diagnose, debug or lead to the resolution of a software defect`)),
41
41
  React.createElement("li", null, t('Agreed upon by both Red Hat and you, the end user'))),
42
42
  React.createElement("p", { className: "rrs-light-grey-text" }, t('Red Hat will add a comment to your case to schedule your remote session.')),
43
- screenSessionRequested && (React.createElement(Tooltip, { content: t('Remote session request has already been submitted.'), reference: tooltipRef, "aria-live": 'polite' })),
43
+ screenSessionRequested && (React.createElement(Tooltip, { content: t('Remote session request has already been submitted.'), triggerRef: tooltipRef, "aria-live": 'polite' })),
44
44
  React.createElement(Button, { "aria-label": screenSessionRequested ? t('Remote session requested') : t('Request remote session'), variant: screenSessionRequested ? 'primary' : 'secondary', onClick: termsAcked ? toggleESSRemoteSessionModal : toggleNewESSRemoteSessionModal, "data-tracking-id": "accept-remote-session-agreement-trigger", isAriaDisabled: screenSessionRequested, ref: tooltipRef }, screenSessionRequested ? t('Remote session requested') : t('Request remote session')))));
45
45
  return (React.createElement(React.Fragment, null,
46
46
  ESSRemoteSessionSectionBody,
@@ -1 +1 @@
1
- {"version":3,"file":"ESSRemoteSessionModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAiBxD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,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;IAClB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,eAoKlD"}
1
+ {"version":3,"file":"ESSRemoteSessionModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAiBxD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,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;IAClB,sBAAsB,EAAE,OAAO,CAAC;CACnC;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,eAsKlD"}
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Button, ButtonVariant, Modal, ModalVariant, Title, TitleSizes } from '@patternfly/react-core';
11
+ import { Button, ButtonVariant, Icon, Modal, ModalVariant, Title, TitleSizes } from '@patternfly/react-core';
12
12
  import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
13
13
  import { ToastNotification, useFetch } from '@rh-support/components';
14
14
  import React, { useState } from 'react';
@@ -91,18 +91,19 @@ export function ESSRemoteSessionModal(props) {
91
91
  // Body of ESS Modal
92
92
  const ESSRemoteSessionModalBody = () => {
93
93
  return (React.createElement(React.Fragment, null,
94
- React.createElement("p", { className: "pf-u-mt-xs" },
94
+ React.createElement("p", { className: "pf-v5-u-mt-xs" },
95
95
  React.createElement(Trans, null, "To troubleshoot your problem, Red Hat support accesses your network or systems remotely."))));
96
96
  };
97
97
  const RequestedESSRemoteSessionModalBody = () => {
98
98
  return (React.createElement(React.Fragment, null,
99
- React.createElement("p", { className: "pf-u-mt-xs" },
99
+ React.createElement("p", { className: "pf-v5-u-mt-xs" },
100
100
  React.createElement(Trans, null, "Red Hat will add a comment to your case to schedule your remote session."))));
101
101
  };
102
102
  const essModalHeader = props.screenSessionRequested ? (React.createElement(React.Fragment, null,
103
- React.createElement(Title, { className: "pf-u-mb-xs", id: "modal-custom-header-label", headingLevel: "h1", size: TitleSizes['2xl'] },
104
- React.createElement(CheckCircleIcon, { color: "#3E8635", size: "lg", className: "pf-u-mr-md" }),
103
+ React.createElement(Title, { className: "pf-v5-u-mb-xs", id: "modal-custom-header-label", headingLevel: "h1", size: TitleSizes['2xl'] },
104
+ React.createElement(Icon, { size: "lg" },
105
+ React.createElement(CheckCircleIcon, { color: "#3E8635", className: "pf-v5-u-mr-md" })),
105
106
  t('Remote session has been requested')))) : (React.createElement(React.Fragment, null,
106
- React.createElement(Title, { className: "pf-u-mb-xs", id: "modal-custom-header-label", headingLevel: "h1", size: TitleSizes['2xl'] }, t('Request a remote session?'))));
107
+ React.createElement(Title, { className: "pf-v5-u-mb-xs", id: "modal-custom-header-label", headingLevel: "h1", size: TitleSizes['2xl'] }, t('Request a remote session?'))));
107
108
  return (React.createElement(Modal, { variant: ModalVariant.small, id: "remote-session-agreement-modal", "aria-label": props.screenSessionRequested ? t('Remote session has been requested') : t('Request a remote session?'), header: essModalHeader, isOpen: props.show, onClose: onCancel, actions: props.screenSessionRequested ? acceptedModalActions : modalActions }, props.screenSessionRequested ? RequestedESSRemoteSessionModalBody() : ESSRemoteSessionModalBody()));
108
109
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NewEssTermsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAaxD,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,gBAAgB,CAAC,KAAK,EAAE,MAAM,eA6P7C"}
1
+ {"version":3,"file":"NewEssTermsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAaxD,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,gBAAgB,CAAC,KAAK,EAAE,MAAM,eA6P7C"}
@@ -8,7 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Button, ButtonVariant, Checkbox, Modal, Select, SelectOption } from '@patternfly/react-core';
11
+ import { Button, ButtonVariant, Checkbox, Modal } from '@patternfly/react-core';
12
+ import { Select, SelectOption } from '@patternfly/react-core/deprecated';
12
13
  import DownloadIcon from '@patternfly/react-icons/dist/esm/icons/download-icon';
13
14
  import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
14
15
  import { ToastNotification, useFetch } from '@rh-support/components';
@@ -136,7 +137,7 @@ export function NewEssTermsModal(props) {
136
137
  submitRemoteSessionAgreement(selectedTranslation.termsPdfId);
137
138
  };
138
139
  // Handle terms checkbox
139
- const onCheckBoxChange = (value) => {
140
+ const onCheckBoxChange = (_event, value) => {
140
141
  setIsTermsChecked(value);
141
142
  };
142
143
  // Handle language change
@@ -155,26 +156,26 @@ export function NewEssTermsModal(props) {
155
156
  // Body of ESS RSA Modal
156
157
  const EssRSAModalBody = () => {
157
158
  return (React.createElement(React.Fragment, null,
158
- React.createElement("p", { className: "pf-u-mt-xs" },
159
+ React.createElement("p", { className: "pf-v5-u-mt-xs" },
159
160
  React.createElement(Trans, null,
160
161
  "Your acceptance of this remote session agreement is required ",
161
162
  React.createElement("strong", null, "for each case"),
162
163
  " when you request Red Hat\u2019s support team to directly access your network or systems.")),
163
- React.createElement("p", { className: "pf-u-mt-md" },
164
+ React.createElement("p", { className: "pf-v5-u-mt-md" },
164
165
  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.")),
165
- React.createElement("p", { className: "pf-u-mt-md" },
166
+ React.createElement("p", { className: "pf-v5-u-mt-md" },
166
167
  React.createElement(Trans, null, "Please read and accept the remote session terms below to allow Red Hat to access your network or systems.")),
167
168
  React.createElement("div", null,
168
- React.createElement(Select, { className: "pf-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: onDropdownToggle, width: 350 }, Object.keys(allTranslations).map((option, index) => (React.createElement(SelectOption, { key: index, value: option }, getLocaleNameFromLocalCode(option))))),
169
- React.createElement("a", { "aria-label": t('Download'), "data-tracking-id": "rsa-modal-terms-download", className: "pf-u-ml-md", href: selectedTranslation.pdfDownloadUrl, rel: "noopener noreferrer", target: "_blank" },
169
+ 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))))),
170
+ 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" },
170
171
  t('Download'),
171
172
  " ",
172
- React.createElement(DownloadIcon, { className: "pf-u-ml-xs" }))),
173
+ React.createElement(DownloadIcon, { className: "pf-v5-u-ml-xs" }))),
173
174
  React.createElement("div", null,
174
- React.createElement(Checkbox, { className: "pf-u-mt-md rsa-checkbox", id: "terms-accept-checkbox", label: React.createElement(React.Fragment, null,
175
+ React.createElement(Checkbox, { className: "pf-v5-u-mt-md rsa-checkbox", id: "terms-accept-checkbox", label: React.createElement(React.Fragment, null,
175
176
  React.createElement(Trans, null, "I have read and agree to the"),
176
177
  ' ',
177
- React.createElement("a", { className: "pf-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" },
178
+ 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" },
178
179
  React.createElement(Trans, null, "terms "),
179
180
  React.createElement(ExternalLinkAltIcon, null))), isChecked: isTermsChecked, "aria-label": t('I have read and agree to the terms'), onChange: onCheckBoxChange }))));
180
181
  };
@@ -20,7 +20,7 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
20
20
  };
21
21
  // RSA Aside Section Body
22
22
  const RemoteSessionAgreementSectionBody = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
23
- React.createElement("h3", { className: "card-heading pf-u-display-flex pf-u-justify-content-space-between" },
23
+ React.createElement("h3", { className: "card-heading pf-v5-u-display-flex pf-v5-u-justify-content-space-between" },
24
24
  t('Remote session agreement'),
25
25
  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')) },
26
26
  React.createElement(InfoCircleIcon, null))),
@@ -31,7 +31,7 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
31
31
  React.createElement("li", null, t(`Such access helps diagnose, debug or lead to the resolution of a software defect.`)),
32
32
  React.createElement("li", null, t('Both you and Red Hat agree to remote access.'))),
33
33
  React.createElement("p", { className: "rrs-light-grey-text" }, t('This action does not initiate a remote session. Please make a case comment if you would like to submit a request.')),
34
- acceptedRemoteSessionTerms && (React.createElement(Tooltip, { content: t('Remote session agreement has already been accepted.'), reference: tooltipRef, "aria-live": 'polite' })),
34
+ acceptedRemoteSessionTerms && (React.createElement(Tooltip, { content: t('Remote session agreement has already been accepted.'), triggerRef: tooltipRef, "aria-live": 'polite' })),
35
35
  React.createElement(Button, { "aria-label": acceptedRemoteSessionTerms ? t('Agreement accepted') : t('Accept agreement'), variant: acceptedRemoteSessionTerms ? 'primary' : 'secondary', onClick: toggleRemoteSessionAgreementModal, "data-tracking-id": "accept-remote-session-agreement-trigger", isAriaDisabled: acceptedRemoteSessionTerms, ref: tooltipRef }, acceptedRemoteSessionTerms ? t('Agreement accepted') : t('Accept agreement')))));
36
36
  return (React.createElement(React.Fragment, null,
37
37
  RemoteSessionAgreementSectionBody,
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteSessionAgreementModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAiBxD,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,eAuPxD"}
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;AAiBxD,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,eAuPxD"}