@rh-support/troubleshoot 2.1.12 → 2.1.13-beta-0

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 (176) hide show
  1. package/lib/esm/components/AccountInfo/AccountSelector.js +1 -1
  2. package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
  3. package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
  4. package/lib/esm/components/AccountInfo/OwnerSelector.js +91 -26
  5. package/lib/esm/components/AccountInfo/css/accountSelector.css +4 -0
  6. package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
  7. package/lib/esm/components/CaseEditView/CaseDetailsAside.js +8 -15
  8. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +1 -1
  9. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
  10. package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +2 -1
  11. package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
  12. package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.js +4 -2
  13. package/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts.map +1 -1
  14. package/lib/esm/components/CaseEditView/CaseOverview/CaseType.js +4 -2
  15. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +1 -1
  16. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +4 -2
  17. package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
  18. package/lib/esm/components/CaseEditView/CaseOverview/index.js +3 -1
  19. package/lib/esm/components/CaseEditView/PDFContainer.d.ts.map +1 -1
  20. package/lib/esm/components/CaseEditView/PDFContainer.js +3 -10
  21. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
  22. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +3 -3
  23. package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +1 -1
  24. package/lib/esm/components/CaseEditView/RequestRemoteSession/index.d.ts +0 -1
  25. package/lib/esm/components/CaseEditView/RequestRemoteSession/index.d.ts.map +1 -1
  26. package/lib/esm/components/CaseEditView/RequestRemoteSession/index.js +0 -1
  27. package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.js +2 -2
  28. package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts +0 -2
  29. package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts.map +1 -1
  30. package/lib/esm/components/CaseEditView/ShareCase/TnC.js +2 -20
  31. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
  32. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +5 -3
  33. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
  34. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +119 -42
  35. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
  36. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +2 -0
  37. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
  38. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +5 -2
  39. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
  40. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +3 -1
  41. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts.map +1 -1
  42. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +8 -5
  43. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts +9 -0
  44. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts.map +1 -0
  45. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.js +69 -0
  46. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
  47. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +5 -3
  48. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
  49. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +3 -1
  50. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
  51. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +4 -2
  52. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
  53. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +5 -3
  54. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
  55. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +1 -1
  56. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
  57. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +3 -1
  58. package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
  59. package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
  60. package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
  61. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +92 -29
  62. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts +1 -1
  63. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
  64. package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +5 -8
  65. package/lib/esm/components/CaseInformation/FileDiag.d.ts +5 -1
  66. package/lib/esm/components/CaseInformation/FileDiag.d.ts.map +1 -1
  67. package/lib/esm/components/CaseInformation/FileDiag.js +2 -2
  68. package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
  69. package/lib/esm/components/CaseInformation/Fts.js +5 -3
  70. package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
  71. package/lib/esm/components/CaseInformation/Severity.js +3 -1
  72. package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
  73. package/lib/esm/components/CaseInformation/SupportLevel.js +2 -1
  74. package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
  75. package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +2 -2
  76. package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
  77. package/lib/esm/components/CaseManagement/CaseManagement.js +4 -17
  78. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  79. package/lib/esm/components/CaseManagement/Cep.js +7 -5
  80. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
  81. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +8 -4
  82. package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.d.ts.map +1 -1
  83. package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.js +5 -3
  84. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  85. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +7 -5
  86. package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
  87. package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +1 -1
  88. package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +1 -1
  89. package/lib/esm/components/EditDescription/EditDescription.d.ts.map +1 -1
  90. package/lib/esm/components/EditDescription/EditDescription.js +4 -2
  91. package/lib/esm/components/IdeaInformation/IdeaInformtion.js +5 -5
  92. package/lib/esm/components/OpenCase/OpenCase.js +2 -2
  93. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
  94. package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +9 -1
  95. package/lib/esm/components/ProductSelector/AllProductsSelector.js +2 -2
  96. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
  97. package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +1 -1
  98. package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +1 -1
  99. package/lib/esm/components/ProductSelector/ProductSelector.js +2 -2
  100. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
  101. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +6 -8
  102. package/lib/esm/components/Recommendations/AsideResults.js +1 -1
  103. package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
  104. package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
  105. package/lib/esm/components/Recommendations/CriticalSolutionsToast.d.ts.map +1 -1
  106. package/lib/esm/components/Recommendations/CriticalSolutionsToast.js +6 -3
  107. package/lib/esm/components/Recommendations/InsightsResults.js +1 -1
  108. package/lib/esm/components/Recommendations/InsightsRuleInfo.js +1 -1
  109. package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +1 -1
  110. package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
  111. package/lib/esm/components/Recommendations/RulesModal.js +25 -9
  112. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
  113. package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.js +2 -2
  114. package/lib/esm/components/Review/Review.js +3 -3
  115. package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
  116. package/lib/esm/components/SubmitCase/SubmitCase.js +9 -8
  117. package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
  118. package/lib/esm/components/Suggestions/Suggestions.js +2 -2
  119. package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
  120. package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +30 -18
  121. package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
  122. package/lib/esm/components/shared/fileUpload/FileLister.js +17 -7
  123. package/lib/esm/components/shared/fileUpload/UploadButton.d.ts.map +1 -1
  124. package/lib/esm/components/shared/fileUpload/UploadButton.js +2 -1
  125. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
  126. package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +17 -3
  127. package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -1
  128. package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
  129. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts +2 -1
  130. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
  131. package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +28 -10
  132. package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
  133. package/lib/esm/components/shared/useIsSectionValid.js +26 -15
  134. package/lib/esm/components/shared/utils.d.ts +1 -0
  135. package/lib/esm/components/shared/utils.d.ts.map +1 -1
  136. package/lib/esm/components/shared/utils.js +12 -0
  137. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
  138. package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +4 -0
  139. package/lib/esm/components/wizardLayout/WizardAside.js +1 -1
  140. package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
  141. package/lib/esm/components/wizardLayout/WizardLayout.js +2 -2
  142. package/lib/esm/components/wizardLayout/WizardMain.js +1 -1
  143. package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
  144. package/lib/esm/components/wizardLayout/WizardNavigation.js +50 -4
  145. package/lib/esm/constants/caseDetailsConstants.d.ts +3 -0
  146. package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
  147. package/lib/esm/constants/caseDetailsConstants.js +3 -0
  148. package/lib/esm/hooks/useResetCaseCreate.d.ts.map +1 -1
  149. package/lib/esm/hooks/useResetCaseCreate.js +3 -1
  150. package/lib/esm/hooks/useWizard.d.ts.map +1 -1
  151. package/lib/esm/hooks/useWizard.js +3 -2
  152. package/lib/esm/reducers/CaseConstNTypes.d.ts +3 -2
  153. package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
  154. package/lib/esm/reducers/CaseConstNTypes.js +7 -4
  155. package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
  156. package/lib/esm/reducers/CaseHelpers.js +16 -8
  157. package/lib/esm/reducers/CaseReducer.d.ts +1 -1
  158. package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
  159. package/lib/esm/reducers/CaseReducer.js +9 -1
  160. package/lib/esm/scss/_main.scss +27 -221
  161. package/lib/esm/scss/_pf4-overrides.scss +90 -13
  162. package/lib/esm/utils/remoteRiderUtils.d.ts.map +1 -1
  163. package/lib/esm/utils/remoteRiderUtils.js +2 -2
  164. package/package.json +8 -8
  165. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts +0 -11
  166. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +0 -1
  167. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +0 -38
  168. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts +0 -15
  169. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +0 -1
  170. package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +0 -106
  171. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts +0 -3
  172. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +0 -1
  173. package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +0 -41
  174. package/lib/esm/constants/tncConstants.d.ts +0 -13
  175. package/lib/esm/constants/tncConstants.d.ts.map +0 -1
  176. package/lib/esm/constants/tncConstants.js +0 -12
@@ -119,7 +119,7 @@ function AccountSelector(props) {
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", onManagedAccountChange: onManagedAccountChange, managedAccounts: managedAccounts, selectedAccountNumber: accountNumber, disabled: selectedAccountDetails.isFetching })),
122
+ canAccessManagedAccounts && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-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
  ' ',
@@ -31,7 +31,7 @@ function ManagedAccountsDropdown(props) {
31
31
  React.createElement(InfoCircleIcon, null),
32
32
  " ",
33
33
  React.createElement(Trans, null, "Subscription abuse"))))), children: (React.createElement(React.Fragment, null, account.subscriptionAbuse ? (React.createElement("span", { className: "form-instructions form-invalid" }, getLabelForAccountOption(account))) : (getLabelForAccountOption(account)))) }, account))) || [];
34
- return (React.createElement(Dropdown, { className: `push-top ${props.className}`, id: props.id, placeholder: "Select a managed account", list: toOptions(managedAccountsOptions, {
34
+ return (React.createElement(Dropdown, { className: `margin-top ${props.className}`, id: props.id, placeholder: "Select a managed account", list: toOptions(managedAccountsOptions, {
35
35
  childrenKey: 'children',
36
36
  actionItemKey: 'actionItem',
37
37
  }), selectedItem: selectedItem, title: `Select a managed account`, onChange: props.onManagedAccountChange, disabled: props.disabled || managedAccountsOptions.length === 0 }));
@@ -1 +1 @@
1
- {"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAoCA,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,eAuRnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAqCA,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,eA6VnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { contacts } from '@cee-eng/hydrajs';
11
- import { CaseContactsSelectorExternal, getHydraContactLabel, renderMenuItemChildren, ToastNotification, usePrevious, ValueChangedIcon, } from '@rh-support/components';
11
+ import { CaseContactsSelectorExternal, getHydraContactLabel, getPhoneObj, renderMenuItemChildren, ToastNotification, usePrevious, ValueChangedIcon, } from '@rh-support/components';
12
12
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
13
13
  import { sortHydraContacts } from '@rh-support/utils';
14
14
  import filter from 'lodash/filter';
@@ -22,23 +22,26 @@ import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
22
22
  import { RouteContext } from '../../context/RouteContext';
23
23
  import { useCaseUpdateErrorMessage } from '../../hooks/useCaseUpdateErrorMessage';
24
24
  import { setCaseDetails, setCaseOwner, setCaseState, setNotifiedUser, updateCaseDetails, } from '../../reducers/CaseReducer';
25
+ import { PDFContext } from '../CaseEditView/PDFContainer';
25
26
  import { CaseValuesToWatch } from '../shared/Constants';
26
27
  import { getChangedValueTooltip } from '../shared/utils';
27
28
  function OwnerSelector(props) {
28
29
  const { t } = useTranslation();
29
30
  const caseUpdateError = useCaseUpdateErrorMessage();
30
- const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating, } = useCaseSelector((state) => ({
31
+ const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating, caseDetailes, } = useCaseSelector((state) => ({
31
32
  accountNumber: state.caseDetails.accountNumberRef,
32
33
  caseNumber: state.caseDetails.caseNumber,
33
34
  selectedNotificationContacts: state.selectedNotificationContacts,
34
35
  selectedOwner: state.selectedOwner,
35
36
  selectedCaseGroupUsers: state.selectedCaseGroupUsers,
36
37
  isCaseOwnerUpdating: state.isCaseOwnerUpdating,
38
+ caseDetailes: state.caseDetails,
37
39
  }), isEqual);
38
40
  const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
39
41
  const caseDispatch = useCaseDispatch();
40
42
  const { globalMetadataState: { loggedInUserRights, loggedInUser }, } = useContext(GlobalMetadataStateContext);
41
43
  const previousAccountNumber = usePrevious(accountNumber);
44
+ const { isExportingPDF } = useContext(PDFContext);
42
45
  const [usersWithGroupAccess, setUsersWithGroupAccess] = useState([]);
43
46
  const [localOwnerChange, setLocalOwnerChange] = useState(false);
44
47
  const afterLocalChange = () => setLocalOwnerChange(false);
@@ -48,49 +51,111 @@ function OwnerSelector(props) {
48
51
  !isEmpty(pvalue.ssoUsername) &&
49
52
  value.ssoUsername !== pvalue.ssoUsername;
50
53
  const canEditCase = useCanEditCase();
54
+ // set owner on creating a case
51
55
  const setContactPhoneNumber = (sso) => __awaiter(this, void 0, void 0, function* () {
56
+ // logged in user and case owner are the same
52
57
  if (sso === loggedInUser.data.ssoUsername) {
53
- setCaseDetails(caseDispatch, {
54
- phone: loggedInUser.data.phone,
55
- suppliedPhoneNumberVerified: 'True',
56
- });
58
+ if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
59
+ setCaseDetails(caseDispatch, {
60
+ phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
61
+ phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
62
+ suppliedPhoneNumberVerified: 'True',
63
+ });
64
+ }
65
+ else {
66
+ const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
67
+ const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
68
+ setCaseDetails(caseDispatch, {
69
+ phoneAreaCodePrefixLineNumber: phoneLine,
70
+ phoneCountryCode: countryCode,
71
+ suppliedPhoneNumberVerified: phoneLine && countryCode ? 'True' : 'False',
72
+ });
73
+ }
57
74
  }
58
75
  else {
59
76
  try {
60
77
  const selectedContact = yield contacts.getSFDCContactBySso(sso);
61
- setCaseDetails(caseDispatch, {
62
- phone: selectedContact.phone,
63
- suppliedPhoneNumberVerified: 'Deferred',
64
- });
78
+ if (selectedContact.supportPhoneAreaCodePrefixLineNumber) {
79
+ setCaseDetails(caseDispatch, {
80
+ phoneAreaCodePrefixLineNumber: selectedContact.supportPhoneAreaCodePrefixLineNumber,
81
+ phoneCountryCode: selectedContact.supportPhoneCountryCode,
82
+ suppliedPhoneNumberVerified: 'Deferred',
83
+ });
84
+ }
85
+ else {
86
+ setCaseDetails(caseDispatch, {
87
+ phoneAreaCodePrefixLineNumber: getPhoneObj(selectedContact.phone).phoneLine || '',
88
+ phoneCountryCode: getPhoneObj(selectedContact.phone).countryCode || '',
89
+ suppliedPhoneNumberVerified: 'Deferred',
90
+ });
91
+ }
65
92
  }
66
93
  catch (e) {
67
94
  setCaseDetails(caseDispatch, {
68
- phone: '',
69
- suppliedPhoneNumberVerified: 'Deferred',
95
+ phoneAreaCodePrefixLineNumber: '',
96
+ phoneCountryCode: '',
97
+ suppliedPhoneNumberVerified: 'False',
70
98
  });
71
99
  }
72
100
  }
73
101
  });
102
+ const updatePhone = (phoneSetting) => __awaiter(this, void 0, void 0, function* () {
103
+ yield updateCaseDetails(caseDispatch, caseNumber, phoneSetting);
104
+ setCaseDetails(caseDispatch, Object.assign(Object.assign({}, caseDetailes), phoneSetting));
105
+ });
106
+ // set owner on updating a case
74
107
  const updateContactPhoneNumber = (sso) => __awaiter(this, void 0, void 0, function* () {
75
108
  try {
109
+ // logged in user and case owner are the same
76
110
  if (sso === loggedInUser.data.ssoUsername) {
77
- yield updateCaseDetails(caseDispatch, caseNumber, {
78
- phone: loggedInUser.data.phone,
79
- suppliedPhoneNumberVerified: 'Deferred',
80
- });
111
+ try {
112
+ if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
113
+ yield updatePhone({
114
+ phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
115
+ phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
116
+ suppliedPhoneNumberVerified: 'True',
117
+ });
118
+ }
119
+ else {
120
+ yield updatePhone({
121
+ phoneAreaCodePrefixLineNumber: getPhoneObj(loggedInUser.data.phone).phoneLine || '',
122
+ phoneCountryCode: getPhoneObj(loggedInUser.data.phone).countryCode || '',
123
+ suppliedPhoneNumberVerified: 'False',
124
+ });
125
+ }
126
+ }
127
+ catch (e) {
128
+ yield updatePhone({
129
+ phoneAreaCodePrefixLineNumber: '',
130
+ phoneCountryCode: '',
131
+ suppliedPhoneNumberVerified: 'False',
132
+ });
133
+ }
81
134
  }
82
135
  else {
136
+ // logged in user and case owner are different
83
137
  try {
84
138
  const selectedContact = yield contacts.getSFDCContactBySso(sso);
85
- yield updateCaseDetails(caseDispatch, caseNumber, {
86
- phone: selectedContact.phone,
87
- suppliedPhoneNumberVerified: 'Deferred',
88
- });
139
+ if (selectedContact.supportPhoneAreaCodePrefixLineNumber) {
140
+ yield updatePhone({
141
+ phoneAreaCodePrefixLineNumber: selectedContact.supportPhoneAreaCodePrefixLineNumber,
142
+ phoneCountryCode: selectedContact.supportPhoneCountryCode,
143
+ suppliedPhoneNumberVerified: 'Deferred',
144
+ });
145
+ }
146
+ else {
147
+ yield updatePhone({
148
+ phoneAreaCodePrefixLineNumber: getPhoneObj(selectedContact.phone).phoneLine || '',
149
+ phoneCountryCode: getPhoneObj(selectedContact.phone).countryCode || '',
150
+ suppliedPhoneNumberVerified: 'Deferred',
151
+ });
152
+ }
89
153
  }
90
154
  catch (e) {
91
- yield updateCaseDetails(caseDispatch, caseNumber, {
92
- phone: '',
93
- suppliedPhoneNumberVerified: 'Deferred',
155
+ yield updatePhone({
156
+ phoneAreaCodePrefixLineNumber: '',
157
+ phoneCountryCode: '',
158
+ suppliedPhoneNumberVerified: 'False',
94
159
  });
95
160
  }
96
161
  }
@@ -207,11 +272,11 @@ function OwnerSelector(props) {
207
272
  const showUsersWithSelectedGroupAccess = caseNumber &&
208
273
  (selectedCaseGroupUsers.isFetching ||
209
274
  (!selectedCaseGroupUsers.isFetching && (selectedCaseGroupUsers.data || []).length > 0));
210
- return (React.createElement("div", { className: "form-group" },
275
+ return (React.createElement("div", { className: "form-group get-support-owner-wapper" },
211
276
  React.createElement("label", { htmlFor: "get-support-owner" },
212
277
  React.createElement(Trans, null, "Owner"),
213
278
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, comparator: ownerComparator, isLocalChange: localOwnerChange, value: selectedOwner.data, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.owner, (v) => v.fullNameCustom) }),
214
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
215
- showUsersWithSelectedGroupAccess ? (React.createElement(Typeahead, { id: "get-support-owner", className: "react-select-custom", clearButton: true, isLoading: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, options: usersWithGroupAccess, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, labelKey: getHydraContactLabel, placeholder: t(`Search by name or username`), disabled: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, renderMenuItemChildren: renderMenuItemChildren, "data-tracking-id": "get-support-owner" })) : (React.createElement(CaseContactsSelectorExternal, { loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, placeholder: t(`Search by name or username`), clearButton: true, id: "get-support-owner", name: "get-support-owner", className: "react-select-custom", isUpdating: isCaseOwnerUpdating, isInvalid: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data) }))));
279
+ React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*")),
280
+ showUsersWithSelectedGroupAccess ? (React.createElement(Typeahead, { id: "get-support-owner", className: "react-select-custom", clearButton: true, isLoading: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, options: usersWithGroupAccess, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, labelKey: getHydraContactLabel, placeholder: t(`Search by name or username`), disabled: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, renderMenuItemChildren: renderMenuItemChildren, "data-tracking-id": "get-support-selected-group-owner" })) : (React.createElement(CaseContactsSelectorExternal, { loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, placeholder: t(`Search by name or username`), clearButton: true, id: "get-support-owner", name: "get-support-owner", className: "react-select-custom", isUpdating: isCaseOwnerUpdating, isInvalid: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data), "data-tracking-id": "get-support-owner" }))));
216
281
  }
217
282
  export { OwnerSelector };
@@ -1,3 +1,7 @@
1
1
  .preview-case .account-selector-wrapper .account-selector {
2
2
  width: 100%;
3
3
  }
4
+
5
+ .get-support-owner-wapper input {
6
+ min-height: 36px;
7
+ }
@@ -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,eA0V7C"}
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,eAiU7C"}
@@ -17,7 +17,7 @@ import TrendUpIcon from '@patternfly/react-icons/dist/js/icons/trend-up-icon';
17
17
  import { ErrorBoundary, ToastNotification, useBreakpoint, useForceUpdate } from '@rh-support/components';
18
18
  import { GlobalMetadataDispatchContext, toggleViewAsCustomerFlag, useGlobalStateContext, useUserPreferences, } from '@rh-support/react-context';
19
19
  import { ability, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
20
- import { isSpecialSupportOfferingEnabled, scrollIntoView } from '@rh-support/utils';
20
+ import { scrollIntoView } from '@rh-support/utils';
21
21
  import isEmpty from 'lodash/isEmpty';
22
22
  import isEqual from 'lodash/isEqual';
23
23
  import React, { useContext, useEffect, useRef, useState } from 'react';
@@ -29,20 +29,17 @@ import { useRecommendationStateContext } from '../../context/RecommendationConte
29
29
  import { ActiveCustomerEscalation } from './ActiveCustomerEscalation';
30
30
  import { CaseSolutions } from './CaseSolutions';
31
31
  import { PDFContext } from './PDFContainer';
32
- import { ESSRemoteSession, RemoteSessionAgreement } from './RequestRemoteSession';
32
+ import { RemoteSessionAgreement } from './RequestRemoteSession';
33
33
  export function CaseDetailsAside(props) {
34
- var _a, _b;
34
+ var _a;
35
35
  const { t } = useTranslation();
36
- const { severity, status, isFetchingCaseDetails, isFetchingCaseDetailsError, acceptedRemoteSessionTerms, screenSessionRequested, product, } = useCaseSelector((state) => ({
36
+ const { severity, status, isFetchingCaseDetails, isFetchingCaseDetailsError, acceptedRemoteSessionTerms } = useCaseSelector((state) => ({
37
37
  severity: state.caseDetails.severity,
38
38
  status: state.caseDetails.status,
39
39
  isFetchingCaseDetails: state.isFetchingCaseDetails,
40
40
  isFetchingCaseDetailsError: state.isFetchingCaseDetailsError,
41
41
  acceptedRemoteSessionTerms: state.caseDetails.remoteSessionTermsAcked,
42
- screenSessionRequested: state.caseDetails.screenSessionRequested,
43
- product: state.caseDetails.product,
44
42
  }), isEqual);
45
- const selectedProduct = product;
46
43
  const { caseDetailsPageState: { caseEscalations }, } = useCaseDetailsPageStateContext();
47
44
  const isCreateRMEVisible = (caseEscalations.data || []).length === 0 || caseEscalations.data.every((item) => item.status === 'Closed');
48
45
  const { recommendationState: { isLoadingRecommendations, allDocs }, } = useRecommendationStateContext();
@@ -61,7 +58,7 @@ export function CaseDetailsAside(props) {
61
58
  const isXLScreen = breakPoint.xl;
62
59
  const toggleCustomerViewRef = useRef(null);
63
60
  const isFirstMountRef = useRef(true);
64
- const { globalMetadataState: { navBarRef, viewAsCustomer, loggedInUsersAccount, loggedInUserRights, allProducts }, } = useGlobalStateContext();
61
+ const { globalMetadataState: { navBarRef, viewAsCustomer, loggedInUsersAccount, loggedInUserRights }, } = useGlobalStateContext();
65
62
  const isSecureSupportAccount = loggedInUsersAccount.data.secureSupport;
66
63
  // To enable RSA Section for external users
67
64
  const isExternal = loggedInUserRights.data.isExternal();
@@ -166,8 +163,6 @@ export function CaseDetailsAside(props) {
166
163
  return t('View internal information available to Red Hat associates only.');
167
164
  }
168
165
  };
169
- // To check if the user is ESS Customer and Product has ESS Support
170
- const isESSCustomer = isSpecialSupportOfferingEnabled((_b = allProducts.data) === null || _b === void 0 ? void 0 : _b.productsResult, selectedProduct);
171
166
  return (React.createElement("aside", { className: `grid-aside ${isSideBarExpanded ? '' : 'sidebar-collapsed'} ` },
172
167
  React.createElement("pfe-collapse-toggle", { "aria-controls": "case-details-aside-content", onClick: onToggleAside }, isSideBarExpanded ? (React.createElement("div", { className: `sidebar-header ${isExportingPDF ? 'hide-in-pdf' : ''}` },
173
168
  React.createElement(Button, { variant: "link", isInline: true, title: t('Collapse sidebar') },
@@ -204,10 +199,8 @@ export function CaseDetailsAside(props) {
204
199
  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
200
  React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading top solutions') } },
206
201
  React.createElement(CaseSolutions, { caseNumber: caseNumber, ref: topSolutionsRef, isSecureSupportAccount: isSecureSupportAccount })),
207
- !caseEscalations.isFetching && canViewACESection && (React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading customer escalation') } },
202
+ !caseEscalations.isFetching && canViewACESection && (React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading customer escalation section') } },
208
203
  React.createElement(ActiveCustomerEscalation, { caseNumber: caseNumber, caseSeverity: severity, caseStatus: status, ref: createEscalationRef }))),
209
- isExternal &&
210
- (isESSCustomer ? (React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading requesting remote session') } },
211
- React.createElement(ESSRemoteSession, { screenSessionRequested: screenSessionRequested, caseNumber: caseNumber, caseSeverity: severity, caseStatus: status, ref: createEscalationRef, readOnly: canReadCase }))) : (React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading remote session agreement') } },
212
- React.createElement(RemoteSessionAgreement, { caseNumber: caseNumber, caseSeverity: severity, caseStatus: status, ref: createEscalationRef, acceptedRemoteSessionTerms: acceptedRemoteSessionTerms, readOnly: canReadCase }))))))));
204
+ isExternal && (React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading remote session agreement section') } },
205
+ React.createElement(RemoteSessionAgreement, { caseNumber: caseNumber, caseSeverity: severity, caseStatus: status, ref: createEscalationRef, acceptedRemoteSessionTerms: acceptedRemoteSessionTerms, readOnly: canReadCase })))))));
213
206
  }
@@ -105,7 +105,7 @@ export function CaseDetailsTabs(props) {
105
105
  };
106
106
  const isTabVisibleInPdfExport = (tab) => tab.title === CaseDetailsTabsEnum.DISCUSSION && pdfOption === 'Reduced' ? false : true;
107
107
  return (React.createElement("div", { className: "case-details-tabs", ref: props.tabdRef },
108
- React.createElement(Tabs, { className: "hide-in-pdf", activeKey: getActiveTabKey(), component: TabsComponent.nav, onSelect: handleTabClick }, 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,
108
+ React.createElement(Tabs, { className: isExportingPDF ? 'hide-in-pdf' : '', activeKey: getActiveTabKey(), component: TabsComponent.nav, onSelect: handleTabClick }, 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
110
  React.createElement("div", { className: "case-details-tabs-content pf-u-pt-xl" }, tabsToRender.map((tab, index) => (React.createElement(TabContent, { eventKey: index, key: tab.key, id: tab.key, ref: tab.ref, "aria-label": tab.title, hidden: isExportingPDF ? !isTabVisibleInPdfExport(tab) : index !== getActiveTabKey() },
111
111
  React.createElement(ErrorBoundary, { errorMsgInfo: {
@@ -1 +1 @@
1
- {"version":3,"file":"CaseOwnerInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseOwnerInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAI/D,UAAU,MAAM;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,MAAM,eA+DlD"}
1
+ {"version":3,"file":"CaseOwnerInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseOwnerInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAI5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAI/D,UAAU,MAAM;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,MAAM,eA+DlD"}
@@ -1,4 +1,5 @@
1
1
  import { Tooltip, TooltipPosition } from '@patternfly/react-core';
2
+ import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
2
3
  import { LoadingIndicator } from '@rh-support/components';
3
4
  import React from 'react';
4
5
  import { Trans } from 'react-i18next';
@@ -43,5 +44,5 @@ export default function CaseOwnerInfo(props) {
43
44
  React.createElement(Trans, null, "Office location")),
44
45
  ": ",
45
46
  props.caseDetailsHydra.data.caseOwner.officeLocation)) },
46
- React.createElement("i", { "aria-label": "Support Level info", className: "fa fa-question-circle" })))))));
47
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Support Level Info" })))))));
47
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CaseStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseStatus.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AASrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,eAkDhC;kBAlDQ,UAAU;;;AAqDnB,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"CaseStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseStatus.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAUrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,eAoDhC;kBApDQ,UAAU;;;AAuDnB,eAAe,UAAU,CAAC"}
@@ -10,10 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { Dropdown, ValueChangedIcon } from '@rh-support/components';
11
11
  import { toOption, toOptions } from '@rh-support/utils';
12
12
  import isEmpty from 'lodash/isEmpty';
13
- import React, { useState } from 'react';
13
+ import React, { useContext, useState } from 'react';
14
14
  import { Trans, useTranslation } from 'react-i18next';
15
15
  import { CaseValuesToWatch } from '../../shared/Constants';
16
16
  import { getChangedValueTooltip } from '../../shared/utils';
17
+ import { PDFContext } from '../PDFContainer';
17
18
  const defaultProps = {
18
19
  id: '',
19
20
  className: '',
@@ -24,6 +25,7 @@ function CaseStatus(props) {
24
25
  const validateCaseStatus = (selectedItem) => {
25
26
  setIsCaseStatusInValid(isEmpty(selectedItem));
26
27
  };
28
+ const { isExportingPDF } = useContext(PDFContext);
27
29
  // value changed logic to show a non local status change
28
30
  const [localStatusChange, setLocalStatusChange] = useState(false);
29
31
  const afterLocalChange = () => setLocalStatusChange(false);
@@ -39,7 +41,7 @@ function CaseStatus(props) {
39
41
  React.createElement("h3", { className: "subheading subheading-sm" },
40
42
  React.createElement(Trans, null, "Status"),
41
43
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localStatusChange, value: props.selectedStatus, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.status) }),
42
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
44
+ React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*")),
43
45
  React.createElement(Dropdown, { name: "case-details-status-selector", placeholder: t(`Select a status`), title: t(`Select a status`), list: props.allStatuses ? toOptions(props.allStatuses) : [], selectedItem: toOption(props.selectedStatus), disabled: props.hasError || props.isDisabled, isLoadingList: props.isFetching, isInValid: isCaseStatusInValid, required: true, onChange: onCaseStatusChange, onOuterClick: validateCaseStatus, "data-tracking-id": "case-details-status-selector" })));
44
46
  }
45
47
  CaseStatus.defaultProps = defaultProps;
@@ -1 +1 @@
1
- {"version":3,"file":"CaseType.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseType.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AASrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eAoD9B;kBApDQ,QAAQ;;;AAuDjB,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CaseType.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/CaseType.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAUrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAOD,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eAsD9B;kBAtDQ,QAAQ;;;AAyDjB,eAAe,QAAQ,CAAC"}
@@ -10,10 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { Dropdown, ValueChangedIcon } from '@rh-support/components';
11
11
  import { toOldCaseTypeSwitcher, toOption, toOptions } from '@rh-support/utils';
12
12
  import isEmpty from 'lodash/isEmpty';
13
- import React, { useState } from 'react';
13
+ import React, { useContext, useState } from 'react';
14
14
  import { Trans, useTranslation } from 'react-i18next';
15
15
  import { CaseValuesToWatch } from '../../shared/Constants';
16
16
  import { getChangedValueTooltip } from '../../shared/utils';
17
+ import { PDFContext } from '../PDFContainer';
17
18
  const defaultProps = {
18
19
  id: '',
19
20
  className: '',
@@ -21,6 +22,7 @@ const defaultProps = {
21
22
  function CaseType(props) {
22
23
  const { t } = useTranslation();
23
24
  const [isCaseTypeInValid, setIsCaseTypeInValid] = useState(false);
25
+ const { isExportingPDF } = useContext(PDFContext);
24
26
  const validateCaseType = (selectedItem) => {
25
27
  setIsCaseTypeInValid(isEmpty(selectedItem));
26
28
  };
@@ -40,7 +42,7 @@ function CaseType(props) {
40
42
  React.createElement("h3", { className: "subheading subheading-sm" },
41
43
  React.createElement(Trans, null, "Support type"),
42
44
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localTypeChange, value: props.selectedType, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.type) }),
43
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
45
+ React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*")),
44
46
  React.createElement(Dropdown, { name: "get-support-type", placeholder: t(`Select`), title: t(`Select a category`), list: toOptions(props.allTypes || []), selectedItem: toOption(props.selectedType), disabled: props.hasError || props.isDisabled, isLoadingList: props.isFetching, isInValid: isCaseTypeInValid, required: true, onChange: onCaseTypeChange, onOuterClick: validateCaseType, "data-tracking-id": "case-details-type-selector" })));
45
47
  }
46
48
  CaseType.defaultProps = defaultProps;
@@ -1 +1 @@
1
- {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/DateTime.tsx"],"names":[],"mappings":"AAKA,UAAU,MAAM;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC/C,cAAc,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC7B,WAAkB,EAClB,iBAA4C,EAC5C,cAAsC,EACtC,cAAmB,EACnB,MAAgB,GACnB,EAAE,MAAM,eAkBR"}
1
+ {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/DateTime.tsx"],"names":[],"mappings":"AAOA,UAAU,MAAM;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC/C,cAAc,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAiBD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC7B,WAAkB,EAClB,iBAA4C,EAC5C,cAAsC,EACtC,cAAmB,EACnB,MAAgB,GACnB,EAAE,MAAM,eAqBR"}
@@ -1,7 +1,8 @@
1
1
  import { Tooltip } from '@patternfly/react-core';
2
2
  import InfoIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
3
3
  import { formatDateTime } from '@rh-support/utils';
4
- import React from 'react';
4
+ import React, { useContext } from 'react';
5
+ import { PDFContext } from '../PDFContainer';
5
6
  const defaultDateTimeFormat = {
6
7
  month: 'short',
7
8
  day: 'numeric',
@@ -12,10 +13,11 @@ const defaultDateTimeFormat = {
12
13
  };
13
14
  const defaultToolTipTimeFormat = Object.assign(Object.assign({}, defaultDateTimeFormat), { weekday: 'short', timeZoneName: 'short' });
14
15
  export default function DateTime({ showToolTip = true, toolTipTimeFormat = defaultToolTipTimeFormat, dateTimeFormat = defaultDateTimeFormat, dateTimeString = '', locale = 'en-us', }) {
16
+ const { isExportingPDF } = useContext(PDFContext);
15
17
  if (!dateTimeString)
16
18
  return React.createElement(React.Fragment, null);
17
19
  return (React.createElement(React.Fragment, null,
18
20
  React.createElement("time", { dateTime: dateTimeString }, formatDateTime(dateTimeString, locale, dateTimeFormat)),
19
21
  showToolTip && (React.createElement(Tooltip, { content: React.createElement("time", { dateTime: dateTimeString }, formatDateTime(dateTimeString, locale, toolTipTimeFormat)) },
20
- React.createElement(InfoIcon, { className: "pf-u-ml-sm" })))));
22
+ React.createElement(InfoIcon, { className: `pf-u-ml-sm ${isExportingPDF ? 'hide-in-pdf' : ''}` })))));
21
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA8D,MAAM,OAAO,CAAC;AA6BnF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,eA0ejD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/CaseOverview/index.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA8D,MAAM,OAAO,CAAC;AA8BnF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,MAAM,eA6ejD"}
@@ -27,6 +27,7 @@ import { ReopenCaseModal } from '../ConfirmationModals/ReopenCaseModal';
27
27
  import { PDFContext } from '../PDFContainer';
28
28
  import { CaseInformation } from '../Tabs/CaseDetails/CaseInformation';
29
29
  import { CaseContactPhoneNumberAlert } from '../Tabs/CaseDetails/CasePhoneNumberConfirmAlert';
30
+ import { CasePhoneNumberSev1ConfirmAlert } from '../Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert';
30
31
  import Summary from '../Tabs/CaseDetails/Summary';
31
32
  import CaseOwnerInfo from './CaseOwnerInfo';
32
33
  import CaseStatus from './CaseStatus';
@@ -229,6 +230,7 @@ export default function CaseOverview(props) {
229
230
  React.createElement("p", { className: "pf-u-mb-sm" },
230
231
  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."))) })))),
231
232
  React.createElement(CaseContactPhoneNumberAlert, { isReview: true, tabRef: props.tabsRef }),
233
+ React.createElement(CasePhoneNumberSev1ConfirmAlert, { isReview: true, tabRef: props.tabsRef }),
232
234
  React.createElement("header", null,
233
235
  React.createElement("h2", { className: "case-ID" },
234
236
  React.createElement(Trans, null, "Case"),
@@ -244,7 +246,7 @@ export default function CaseOverview(props) {
244
246
  : 'case-reopen-btn-case-details-overview' }),
245
247
  React.createElement(Trans, null, isCaseInOpenState ? 'Close case' : 'Reopen case')))),
246
248
  React.createElement("div", { className: `case-details-header-secondary push-bottom-narrow ${isExportingPDF && !viewAsCustomer ? 'hide-in-pdf' : ''}` },
247
- React.createElement("span", { className: "case-support-level" }, computeSupportLink())),
249
+ React.createElement("span", { className: `case-support-level ${isExportingPDF ? 'hide-in-pdf' : ''}` }, computeSupportLink())),
248
250
  React.createElement("div", { className: "case-details-summary push-bottom-narrow" },
249
251
  React.createElement(Summary, { inlineEditable: true, hideLabel: true })),
250
252
  canSeeManagedByPartnerFlag && (React.createElement(Label, { className: "push-right-narrow", color: "green" },
@@ -1 +1 @@
1
- {"version":3,"file":"PDFContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/PDFContainer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAGhD,UAAU,MAAM;IACZ,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACzC;AAED,UAAU,UAAU;IAChB,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;CACrC;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC3C,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC,OAAO,CAAC;CACpD;AAED,eAAO,MAAM,UAAU,4BAIN,CAAC;AAYlB,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,eA2KzC"}
1
+ {"version":3,"file":"PDFContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/PDFContainer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAGhD,UAAU,MAAM;IACZ,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACzC;AAED,UAAU,UAAU;IAChB,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;CACrC;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC3C,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC,OAAO,CAAC;CACpD;AAED,eAAO,MAAM,UAAU,4BAIN,CAAC;AAYlB,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,eAwJzC"}
@@ -1,8 +1,8 @@
1
- import { Button, Modal, ModalVariant, Tooltip, TooltipPosition } from '@patternfly/react-core';
1
+ import { Button, Modal, ModalVariant } from '@patternfly/react-core';
2
2
  import DownloadIcon from '@patternfly/react-icons/dist/js/icons/download-icon';
3
3
  import { savePDF } from '@progress/kendo-react-pdf';
4
4
  import React, { useRef, useState } from 'react';
5
- import { getI18n, Trans, useTranslation } from 'react-i18next';
5
+ import { Trans, useTranslation } from 'react-i18next';
6
6
  export const PDFContext = React.createContext({
7
7
  isExportingPDF: null,
8
8
  exportPDFButton: null,
@@ -44,14 +44,7 @@ export function PDFContainer(props) {
44
44
  setValues(Object.assign(Object.assign({}, values), { [event.target.name]: event.target.value }));
45
45
  }
46
46
  function exportPDFButton(caseNumber) {
47
- const i18n = getI18n();
48
- if (i18n.language &&
49
- (i18n.language === 'ja' || i18n.language === 'zh' || i18n.language === 'ko' || i18n.language === 'ru')) {
50
- return (React.createElement(Tooltip, { position: TooltipPosition.auto, content: React.createElement("p", null,
51
- React.createElement(Trans, null, "Case export doesn't support selected language.")) },
52
- React.createElement(DownloadIcon, { className: "fake-disable", role: "button", title: "Export as PDF", "aria-disabled": "true" })));
53
- }
54
- return (React.createElement(Button, { title: "Export as PDF", variant: "link", isInline: true, className: "hide-in-pdf", "data-tracking-id": "export-case-as-pdf", onClick: openModal(caseNumber), disabled: isExportingPDF, icon: React.createElement(DownloadIcon, null), iconPosition: "right" },
47
+ return (React.createElement(Button, { title: "Export as PDF", variant: "link", isInline: true, className: isExportingPDF ? 'hide-in-pdf' : '', "data-tracking-id": "export-case-as-pdf", onClick: openModal(caseNumber), disabled: isExportingPDF, icon: React.createElement(DownloadIcon, null), iconPosition: "right" },
55
48
  React.createElement(Trans, null, "Export")));
56
49
  }
57
50
  const exportToPDF = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteSessionAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAMxE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IACpC,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,+EA8FjC,CAAC"}
1
+ {"version":3,"file":"RemoteSessionAgreement.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.tsx"],"names":[],"mappings":"AAIA,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,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,+EA8FjC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { Button, Popover, Tooltip } from '@patternfly/react-core';
2
2
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
3
3
  import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
4
+ import { TncConstants } from '@rh-support/utils';
4
5
  import React, { forwardRef, useContext, useRef, useState } from 'react';
5
6
  import { useTranslation } from 'react-i18next';
6
- import { TnC } from '../../../constants/tncConstants';
7
7
  import { RemoteSessionAgreementModal } from './RemoteSessionAgreementModal';
8
8
  export const RemoteSessionAgreement = forwardRef((props, ref) => {
9
9
  const tooltipRef = useRef();
@@ -22,7 +22,7 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
22
22
  const RemoteSessionAgreementSectionBody = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
23
23
  React.createElement("h3", { className: "card-heading pf-u-display-flex pf-u-justify-content-space-between" },
24
24
  t('Remote session agreement'),
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')) },
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))),
27
27
  React.createElement("div", { className: "card-body" },
28
28
  React.createElement("p", null,
@@ -35,5 +35,5 @@ export const RemoteSessionAgreement = forwardRef((props, ref) => {
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,
38
- React.createElement(RemoteSessionAgreementModal, { caseNumber: caseNumber, caseStatus: caseStatus, show: openRequestRemoteSessionModal, onClose: toggleRemoteSessionAgreementModal, siteCode: TnC.REMOTE_RIDER_SITE_CODE, eventCode: TnC.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername, loggedInUserRights: loggedInUserRights, readOnly: readOnly })));
38
+ React.createElement(RemoteSessionAgreementModal, { caseNumber: caseNumber, caseStatus: caseStatus, show: openRequestRemoteSessionModal, onClose: toggleRemoteSessionAgreementModal, siteCode: TncConstants.REMOTE_RIDER_SITE_CODE, eventCode: TncConstants.REMOTER_RIDER_EVENT_CODE, loggedInUser: loggedInUser.data.ssoUsername === undefined ? '' : loggedInUser.data.ssoUsername, loggedInUserRights: loggedInUserRights, readOnly: readOnly })));
39
39
  });
@@ -121,7 +121,7 @@ export function RemoteSessionAgreementModal(props) {
121
121
  props.onClose();
122
122
  }
123
123
  });
124
- // To check if terms acked and if not disable submit button
124
+ // To handle submit
125
125
  const onSubmit = () => {
126
126
  setAgreeLoading(true);
127
127
  submitRemoteSessionAgreement(selectedTranslation.termsPdfId);
@@ -1,3 +1,2 @@
1
1
  export * from './RemoteSessionAgreement';
2
- export * from './ESSRemoteSession';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/RequestRemoteSession/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -1,2 +1 @@
1
1
  export * from './RemoteSessionAgreement';
2
- export * from './ESSRemoteSession';
@@ -7,10 +7,10 @@ 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 { getUrlParsedParams } from '@rh-support/utils';
10
+ import { getTnCHost, getUrlParsedParams } from '@rh-support/utils';
11
11
  import React, { useEffect, useState } from 'react';
12
12
  import { useLocation } from 'react-router';
13
- import { getTnCHost, handleTnCQueryParams } from './TnC';
13
+ import { handleTnCQueryParams } from './TnC';
14
14
  export function PartnerCaseHelper(props) {
15
15
  var _a, _b;
16
16
  const [isUpdating, setIsUpdating] = useState(false);
@@ -1,6 +1,4 @@
1
1
  import { RouteComponentProps } from 'react-router';
2
- export declare function getTnCHost(): string;
3
- export declare function baseTnCUrl(): string;
4
2
  export declare function getTnCUrl(accountNumber: any): string;
5
3
  export declare const handleTnCQueryParams: (caseNumber: string, routeProps: RouteComponentProps) => Promise<void>;
6
4
  //# sourceMappingURL=TnC.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TnC.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ShareCase/TnC.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,wBAAgB,UAAU,WAYzB;AAED,wBAAgB,UAAU,WAGzB;AAED,wBAAgB,SAAS,CAAC,aAAa,KAAA,UAQtC;AAMD,eAAO,MAAM,oBAAoB,eAAsB,MAAM,cAAc,mBAAmB,kBAc7F,CAAC"}
1
+ {"version":3,"file":"TnC.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ShareCase/TnC.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,wBAAgB,SAAS,CAAC,aAAa,KAAA,UAQtC;AAMD,eAAO,MAAM,oBAAoB,eAAsB,MAAM,cAAc,mBAAmB,kBAc7F,CAAC"}