@rh-support/troubleshoot 2.6.13 → 2.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/AccountInfo/AccountSelector.js +4 -4
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +21 -18
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +45 -34
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +13 -19
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +8 -8
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +10 -9
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +20 -19
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +5 -5
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +3 -3
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +33 -23
- package/lib/esm/components/CaseEditView/PDFContainer.js +19 -15
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +9 -8
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +13 -16
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +51 -94
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +9 -8
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +36 -31
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +3 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +9 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +3 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +3 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +2 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +5 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +23 -17
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +19 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +5 -8
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummary.js +4 -6
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseSummary/CaseSummaryErrorMessage.js +4 -6
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +2 -3
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +1 -2
- package/lib/esm/components/CaseInformation/CaseInformation.js +3 -3
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
- package/lib/esm/components/CaseInformation/Description.js +4 -4
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +13 -9
- package/lib/esm/components/CaseInformation/OpenCaseIssue.js +2 -2
- package/lib/esm/components/CaseInformation/Severity.js +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +16 -10
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +14 -11
- package/lib/esm/components/CaseManagement/CaseManagement.js +4 -4
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +44 -41
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +50 -42
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +39 -63
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +62 -36
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.js +8 -8
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +10 -10
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +2 -2
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +57 -16
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +12 -27
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.js +1 -1
- package/lib/esm/components/Cve/CveItem.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveItem.js +10 -11
- package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveModal.js +10 -11
- package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -1
- package/lib/esm/components/Cve/CvePanel.js +3 -3
- package/lib/esm/components/Cve/CveSidebar.js +2 -2
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +7 -7
- package/lib/esm/components/ImproveCase/KtQuestions.js +6 -6
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +6 -13
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +8 -7
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +80 -53
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +14 -10
- package/lib/esm/components/ProductSelector/ProductSelector.js +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +4 -4
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +5 -3
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +7 -11
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +4 -4
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +7 -7
- package/lib/esm/components/Recommendations/InsightsResults.js +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +16 -16
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +6 -6
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationInfoBox.js +7 -7
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +23 -20
- package/lib/esm/components/Recommendations/RecommendationsLoader.js +1 -1
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +7 -9
- package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/WatsonxAiIcon.js +9 -10
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
- package/lib/esm/components/Review/Review.js +4 -4
- package/lib/esm/components/SessionRestore/RestoreLastSessionModal.js +5 -5
- package/lib/esm/components/SessionRestore/SessionRestore.js +1 -1
- package/lib/esm/components/SessionRestore/SessionRestoreCard.js +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +21 -21
- package/lib/esm/components/Suggestions/Suggestions.js +2 -2
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +8 -8
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +13 -14
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +20 -16
- package/lib/esm/components/shared/Rule.js +6 -6
- package/lib/esm/components/shared/fileUpload/FileLister.js +6 -6
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +7 -6
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
- package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -0
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +4 -4
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +2 -2
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +15 -6
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
- package/lib/esm/components/shared/input/ContactSelectorInternal.js +128 -23
- package/lib/esm/components/wizardLayout/MainSection.js +2 -2
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/NewFeatureModal.js +6 -6
- package/lib/esm/components/wizardLayout/WizardAside.js +3 -3
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +61 -19
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +11 -16
- package/lib/esm/css/app.css +13 -13
- package/lib/esm/css/case.css +23 -16
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +1 -3
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +2 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts +1 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
- package/lib/esm/scss/_main.scss +183 -88
- package/lib/esm/scss/_pf-overrides.scss +150 -140
- package/package.json +11 -11
|
@@ -1,94 +1,65 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextInputGroup, TextInputGroupMain } from '@patternfly/react-core';
|
|
2
2
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
3
|
-
import { LoadingIndicator } from '@rh-support/components';
|
|
3
|
+
import { LoadingIndicator, SingleSelectDropdown } from '@rh-support/components';
|
|
4
4
|
import { fetchNoClusterIdReasonsMetadata, GlobalMetadataStateContext, useGlobalDispatchContext, } from '@rh-support/react-context';
|
|
5
5
|
import { haventLoadedMetadata } from '@rh-support/utils';
|
|
6
6
|
import filter from 'lodash/filter';
|
|
7
|
-
import
|
|
7
|
+
import map from 'lodash/map';
|
|
8
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
8
9
|
import { Trans, useTranslation } from 'react-i18next';
|
|
9
10
|
import { PDFContext } from '../CaseEditView/PDFContainer';
|
|
10
|
-
const createState = (display_value, display_name) => {
|
|
11
|
-
return {
|
|
12
|
-
display_name,
|
|
13
|
-
display_value,
|
|
14
|
-
toString: () => display_name || '',
|
|
15
|
-
compareTo: function (value) {
|
|
16
|
-
const displayName = this.toString().toLowerCase();
|
|
17
|
-
const val = (value || '').toString().toLowerCase();
|
|
18
|
-
return displayName.includes(val);
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
11
|
const NoClusterIDReasonSelector = (props) => {
|
|
23
12
|
const { t } = useTranslation();
|
|
24
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
25
|
-
const [validated, setValidated] = useState('default');
|
|
26
|
-
const [inputVal, setInputVal] = useState('');
|
|
27
13
|
const [notRegistered, setNotRegistered] = useState(false);
|
|
14
|
+
const [inputValue, setInputValue] = useState(props.noClusterIdReasonExplanation || '');
|
|
28
15
|
const globalDispatch = useGlobalDispatchContext();
|
|
29
16
|
const { globalMetadataState: { caseNoClusterIdReasons }, } = useContext(GlobalMetadataStateContext);
|
|
30
17
|
const { isExportingPDF } = useContext(PDFContext);
|
|
31
|
-
const onToggle = (isOpen) => {
|
|
32
|
-
setIsOpen(isOpen);
|
|
33
|
-
};
|
|
34
18
|
const caseNoClusterIdReasonsList = props.isCustomer
|
|
35
19
|
? filter(caseNoClusterIdReasons.data, (item) => item !==
|
|
36
20
|
'I am opening a case on behalf of the customer and cannot provide their Cluster ID at this time')
|
|
37
21
|
: caseNoClusterIdReasons.data;
|
|
38
|
-
const
|
|
39
|
-
|
|
22
|
+
const clearSelection = () => {
|
|
23
|
+
setNotRegistered(false);
|
|
24
|
+
setInputValue('');
|
|
25
|
+
props.onReasonInputBoxChanged('');
|
|
26
|
+
props.onReasonChange('');
|
|
27
|
+
};
|
|
28
|
+
const handleReasonChange = (option) => {
|
|
40
29
|
clearSelection();
|
|
41
|
-
const selected =
|
|
30
|
+
const selected = option.value;
|
|
42
31
|
props.onReasonChange(selected);
|
|
43
|
-
if (selected === 'Other') {
|
|
44
|
-
window.setTimeout(() => {
|
|
45
|
-
var _a;
|
|
46
|
-
(_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.inputRef.current.focus();
|
|
47
|
-
}, 100);
|
|
48
|
-
}
|
|
49
32
|
if (selected === 'My cluster is disconnected and / or has not been registered') {
|
|
50
33
|
setNotRegistered(true);
|
|
51
34
|
}
|
|
52
35
|
};
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
setInputVal('');
|
|
57
|
-
props.onReasonInputBoxChanged('');
|
|
58
|
-
props.onReasonChange('');
|
|
36
|
+
const handleInputChange = (_event, value) => {
|
|
37
|
+
setInputValue(value);
|
|
38
|
+
props.onReasonInputBoxChanged(value);
|
|
59
39
|
};
|
|
60
|
-
const
|
|
40
|
+
const getDropdownOptions = () => {
|
|
41
|
+
return map(caseNoClusterIdReasonsList || [], (option) => ({
|
|
42
|
+
label: t(option),
|
|
43
|
+
value: option,
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
const getSelectedOption = () => {
|
|
61
47
|
if (props.noClusterIdReason) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return createState(props.noClusterIdReason, t(props.noClusterIdReason));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
else if (props.noClusterIdReasonExplanation) {
|
|
70
|
-
return createState(props.noClusterIdReasonExplanation, props.noClusterIdReasonExplanation);
|
|
48
|
+
return {
|
|
49
|
+
label: t(props.noClusterIdReason),
|
|
50
|
+
value: props.noClusterIdReason,
|
|
51
|
+
};
|
|
71
52
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
props.onReasonInputBoxChanged(input);
|
|
53
|
+
return {
|
|
54
|
+
label: '',
|
|
55
|
+
value: '',
|
|
56
|
+
};
|
|
77
57
|
};
|
|
78
58
|
useEffect(() => {
|
|
79
59
|
if (haventLoadedMetadata(caseNoClusterIdReasons)) {
|
|
80
60
|
fetchNoClusterIdReasonsMetadata(globalDispatch);
|
|
81
61
|
}
|
|
82
|
-
|
|
83
|
-
}, [caseNoClusterIdReasons]);
|
|
84
|
-
useEffect(() => {
|
|
85
|
-
if (props.isInValid) {
|
|
86
|
-
setValidated('error');
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
setValidated('default');
|
|
90
|
-
}
|
|
91
|
-
}, [props.isInValid]);
|
|
62
|
+
}, [caseNoClusterIdReasons, globalDispatch]);
|
|
92
63
|
const titleId = 'Reason-name-select';
|
|
93
64
|
const registerMyClusterID = () => (React.createElement("a", { className: `show-target ${isExportingPDF ? 'hide-in-pdf' : ''}`, href: "https://console.redhat.com/openshift/register ", target: "_blank", rel: "noopener noreferrer" },
|
|
94
65
|
React.createElement(Trans, null, "Register my Cluster ID")));
|
|
@@ -98,11 +69,16 @@ const NoClusterIDReasonSelector = (props) => {
|
|
|
98
69
|
React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true },
|
|
99
70
|
' ',
|
|
100
71
|
"*")),
|
|
101
|
-
React.createElement(
|
|
72
|
+
React.createElement("div", { className: "no-cluster-id-reason-container" },
|
|
73
|
+
React.createElement("div", { className: props.noClusterIdReason === 'Other' ? 'd-none' : '' },
|
|
74
|
+
React.createElement(SingleSelectDropdown, { placeholder: t('Select an option or briefly describe your reason'), dataTrackingId: "no-openshift-cluster-id-reason", options: getDropdownOptions(), selected: getSelectedOption(), isDisabled: caseNoClusterIdReasons.isFetching || props.isDisabled, isLoading: caseNoClusterIdReasons.isFetching, isInvalid: props.isInValid, onSelect: handleReasonChange, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper" })),
|
|
75
|
+
props.noClusterIdReason === 'Other' && (React.createElement("div", { className: "text-input-wrapper" },
|
|
76
|
+
React.createElement(TextInputGroup, null,
|
|
77
|
+
React.createElement(TextInputGroupMain, { value: inputValue, onChange: handleInputChange, placeholder: t('Briefly describe your reason'), "aria-label": t('Other reason description') }))))),
|
|
102
78
|
React.createElement(LoadingIndicator, { show: caseNoClusterIdReasons.isFetching, size: "xs" }),
|
|
103
79
|
React.createElement("p", { id: "validate-reason-helper", className: `form-instructions ${props.isInValid ? 'form-invalid' : ''}` },
|
|
104
80
|
React.createElement(React.Fragment, null,
|
|
105
|
-
props.isInValid && React.createElement(ExclamationCircleIcon, { color: "#c9190b", className: "pf-
|
|
81
|
+
props.isInValid && React.createElement(ExclamationCircleIcon, { color: "#c9190b", className: "pf-v6-u-mr-sm" }),
|
|
106
82
|
' ',
|
|
107
83
|
notRegistered ? (registerMyClusterID()) : (React.createElement(Trans, null, "Describing your reason can help us better understand and support your issue."))))));
|
|
108
84
|
};
|
|
@@ -29,7 +29,7 @@ export const v3Tov4TransitionLink = () => (React.createElement("a", { className:
|
|
|
29
29
|
React.createElement(Trans, null, "How to transition from v3 to v4?")));
|
|
30
30
|
export const discoverV4ClusterIdLink = () => (React.createElement("a", { className: "show-target", href: "/solutions/4505861", target: "_blank", rel: "noopener noreferrer" }, "How do I determine my OpenShift 4.x Cluster ID?"));
|
|
31
31
|
export const discoverV4ClusterIdLinkError = () => (React.createElement(React.Fragment, null,
|
|
32
|
-
React.createElement(ExclamationCircleIcon, { color: "#c9190b", className: "pf-
|
|
32
|
+
React.createElement(ExclamationCircleIcon, { color: "#c9190b", className: "pf-v6-u-mr-sm" }),
|
|
33
33
|
React.createElement(Trans, { i18nKey: 'v4ClusterRequiredField' },
|
|
34
34
|
"Cluster ID is required.",
|
|
35
35
|
React.createElement("div", null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAiB5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,KAA2D,MAAM,OAAO,CAAC;AAOhF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAuBD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBA6bzC;kBA7bQ,mBAAmB;;;AAgc5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -8,9 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { cloud } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Checkbox, Divider } from '@patternfly/react-core';
|
|
12
|
-
import
|
|
13
|
-
import { useLRUCache } from '@rh-support/components';
|
|
11
|
+
import { Button, Checkbox, Divider, MenuToggle, Select, SelectList, SelectOption, Spinner, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
|
|
12
|
+
import TimesIcon from '@patternfly/react-icons/dist/js/icons/times-icon';
|
|
13
|
+
import { useLRUCache, useSelectKeyboardNavigator } from '@rh-support/components';
|
|
14
14
|
import debounce from 'lodash/debounce';
|
|
15
15
|
import groupBy from 'lodash/groupBy';
|
|
16
16
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -45,12 +45,12 @@ function OpenshiftDropdownV4(props) {
|
|
|
45
45
|
const abortControllerRef = useRef();
|
|
46
46
|
const [clustersSelectOptions, setClustersSelectOptions] = useState([]);
|
|
47
47
|
const [isOpen, setIsOpen] = useState(false);
|
|
48
|
-
const [validated, setValidated] = useState('default');
|
|
49
48
|
const [inputVal, setInputVal] = useState('');
|
|
50
49
|
const [showArchivedClusters, setShowArchivedClusters] = useState(false);
|
|
51
50
|
const [isFetchingClusters, setIsFetchingClusters] = useState(false);
|
|
52
51
|
const [totalResultsNo, setTotalResultsNo] = useState(0);
|
|
53
52
|
const { getFromCache, setInCache } = useLRUCache(50);
|
|
53
|
+
const textInputRef = useRef();
|
|
54
54
|
const { isExportingPDF } = useContext(PDFContext);
|
|
55
55
|
// gets a cluster id and returns display name
|
|
56
56
|
const getDisplayName = (id, noClusterIdReasonExplanation, display_name) => {
|
|
@@ -74,7 +74,7 @@ function OpenshiftDropdownV4(props) {
|
|
|
74
74
|
setTotalResultsNo(fetchedClusters.total);
|
|
75
75
|
setClustersSelectOptions(getClusterOptions(fetchedClusters.items));
|
|
76
76
|
});
|
|
77
|
-
const onToggle = (
|
|
77
|
+
const onToggle = () => setIsOpen(!isOpen);
|
|
78
78
|
const onViewMoreClick = () => __awaiter(this, void 0, void 0, function* () {
|
|
79
79
|
const page = Math.floor(clustersRawResponse.length / PER_PAGE) + 1;
|
|
80
80
|
const fetchedClusters = yield fetchAccountClusters(inputVal, page);
|
|
@@ -85,31 +85,60 @@ function OpenshiftDropdownV4(props) {
|
|
|
85
85
|
});
|
|
86
86
|
const onSelect = (event, selectedCluster) => __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
setInputVal('');
|
|
88
|
-
if (
|
|
89
|
-
// checkbox is clicked
|
|
88
|
+
if (selectedCluster.type === 'checkbox') {
|
|
90
89
|
setShowArchivedClusters(!showArchivedClusters);
|
|
91
|
-
// reset
|
|
92
90
|
props.onClusterClear();
|
|
93
91
|
setClustersRawResponse([]);
|
|
94
92
|
}
|
|
95
93
|
else {
|
|
96
94
|
props.onClusterIdStateUpdate(selectedCluster);
|
|
95
|
+
const displayName = selectedCluster.display_name || selectedCluster.toString();
|
|
96
|
+
setInputVal(displayName);
|
|
97
97
|
setIsOpen(false);
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
+
// Define dropdown options for keyboard navigation
|
|
101
|
+
const dropdownOptions = useMemo(() => [
|
|
102
|
+
{ type: 'checkbox', key: 'show-hide-archived-clusters', label: t('Show archived clusters') },
|
|
103
|
+
{ type: 'option', key: 'dont-have-id', label: t("I don't have my Cluster ID") },
|
|
104
|
+
...(props.isV3 ? [{ type: 'option', key: 'v3-cluster', label: t('The case is for a v3 cluster') }] : []),
|
|
105
|
+
], [props.isV3, t]);
|
|
106
|
+
// Use the keyboard navigation hook
|
|
107
|
+
const { focusedItemIndex, onInputKeyDown } = useSelectKeyboardNavigator({
|
|
108
|
+
list: dropdownOptions,
|
|
109
|
+
isOpen,
|
|
110
|
+
resetIndexOnClose: true,
|
|
111
|
+
isDisabled: props.isDisabled,
|
|
112
|
+
setIsOpen,
|
|
113
|
+
onSelect: (item) => {
|
|
114
|
+
if (item.type === 'checkbox') {
|
|
115
|
+
setShowArchivedClusters(!showArchivedClusters);
|
|
116
|
+
props.onClusterClear();
|
|
117
|
+
setClustersRawResponse([]);
|
|
118
|
+
}
|
|
119
|
+
else if (item.key === 'dont-have-id') {
|
|
120
|
+
props.onClusterIdStateUpdate(createState('dont-have-id', t("I don't have my Cluster ID")));
|
|
121
|
+
setIsOpen(false);
|
|
122
|
+
}
|
|
123
|
+
else if (item.key === 'v3-cluster') {
|
|
124
|
+
props.onClusterIdStateUpdate(createState('v3-cluster', t('The case is for a v3 cluster')));
|
|
125
|
+
setIsOpen(false);
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
});
|
|
100
129
|
const dropdownHeaderOptions = useMemo(() => [
|
|
101
|
-
React.createElement(SelectOption, { key: 'show-hide-archived-clusters',
|
|
102
|
-
React.createElement(Checkbox, { label: t('Show archived clusters'), key: "show-archived-clusters", "aria-label": t('Show archived clusters'), id: "show-archived-clusters", "data-tracking-id": "show-hide-archived-clusters", isChecked: showArchivedClusters, className: "archived-clusters-checkbox" })),
|
|
130
|
+
React.createElement(SelectOption, { key: 'show-hide-archived-clusters', value: { type: 'checkbox' } },
|
|
131
|
+
React.createElement(Checkbox, { label: t('Show archived clusters'), key: "show-archived-clusters", "aria-label": t('Show archived clusters'), id: "show-archived-clusters", "data-tracking-id": "show-hide-archived-clusters", isChecked: showArchivedClusters || false, className: "archived-clusters-checkbox" })),
|
|
103
132
|
React.createElement(Divider, { component: "div", key: 'cluster-id-options-divider-e' }),
|
|
104
|
-
React.createElement(SelectOption, { key: 'dont-have-id', value: createState('dont-have-id', t("I don't have my Cluster ID")), "data-tracking-id": "dont-have-cluster-id" }),
|
|
133
|
+
React.createElement(SelectOption, { key: 'dont-have-id', value: createState('dont-have-id', t("I don't have my Cluster ID")), "data-tracking-id": "dont-have-cluster-id", isFocused: focusedItemIndex === 1 }, "I don't have my Cluster ID"),
|
|
105
134
|
...(props.isV3
|
|
106
135
|
? [
|
|
107
|
-
React.createElement(SelectOption, { key: 'v3-cluster', value: createState('v3-cluster', t('The case is for a v3 cluster')) }),
|
|
136
|
+
React.createElement(SelectOption, { key: 'v3-cluster', value: createState('v3-cluster', t('The case is for a v3 cluster')), isFocused: focusedItemIndex === 2 }),
|
|
108
137
|
]
|
|
109
138
|
: []),
|
|
110
139
|
],
|
|
111
140
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112
|
-
[showArchivedClusters]);
|
|
141
|
+
[showArchivedClusters, focusedItemIndex]);
|
|
113
142
|
const getClusterOptions = (clusters) => {
|
|
114
143
|
const clustersResponseGrouped = groupBy(clusters, 'console_url') || [];
|
|
115
144
|
const domainNames = Object.keys(clustersResponseGrouped) || [];
|
|
@@ -124,13 +153,16 @@ function OpenshiftDropdownV4(props) {
|
|
|
124
153
|
const clusterOptions = [];
|
|
125
154
|
domainNames.forEach((domain, index) => {
|
|
126
155
|
domain !== '' &&
|
|
127
|
-
clusterOptions.push(React.createElement(SelectOption, { isDisabled: true, className: "pf-
|
|
156
|
+
clusterOptions.push(React.createElement(SelectOption, { isDisabled: true, className: "pf-v6-u-font-weight-bold pf-v6-u-color-400", value: createState(domain, domain), key: domain + index }));
|
|
128
157
|
clustersResponseGrouped[domain] &&
|
|
129
158
|
clustersResponseGrouped[domain].forEach((cluster, i) => {
|
|
130
159
|
clusterOptions.push(React.createElement(SelectOption, { key: cluster.external_cluster_id, value: createState(cluster.external_cluster_id, getDisplayNameForCluster(cluster) || cluster.external_cluster_id, cluster.openshift_version) }));
|
|
131
160
|
});
|
|
132
161
|
clusterOptions.push(React.createElement(Divider, { component: "div", key: index + domain }));
|
|
133
162
|
});
|
|
163
|
+
if (!isFetchingClusters && clustersRawResponse.length < totalResultsNo) {
|
|
164
|
+
clusterOptions.push(React.createElement(SelectOption, { key: "load-more-option", value: {}, onClick: onViewMoreClick, isDisabled: false, className: "pf-v6-u-font-weight-bold" }, "Display additional results"));
|
|
165
|
+
}
|
|
134
166
|
return [
|
|
135
167
|
...dropdownHeaderOptions,
|
|
136
168
|
...(clusterOptions.length !== 0 ? [React.createElement(Divider, { component: "div", key: 'cluster-id-options-divider' })] : []),
|
|
@@ -255,24 +287,17 @@ function OpenshiftDropdownV4(props) {
|
|
|
255
287
|
};
|
|
256
288
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
257
289
|
}, [props.isV3, showArchivedClusters, isOpen, inputVal]);
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}, [props.isClusterIdInvalid]);
|
|
266
|
-
// when user type or paste a clusterId we land here
|
|
267
|
-
const onTypeaheadInputChanged = (input) => __awaiter(this, void 0, void 0, function* () {
|
|
268
|
-
setInputVal(input);
|
|
269
|
-
const fetchedClusters = yield fetchAccountClusters(input);
|
|
290
|
+
const onTextInputChange = (_event, value) => {
|
|
291
|
+
setInputVal(value);
|
|
292
|
+
props.onClusterIdStateUpdate({ external_cluster_id: value });
|
|
293
|
+
debounceFn(value);
|
|
294
|
+
};
|
|
295
|
+
const debounceFn = debounce((value) => __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
const fetchedClusters = yield fetchAccountClusters(value);
|
|
270
297
|
setClustersRawResponse(fetchedClusters.items);
|
|
271
298
|
setTotalResultsNo(fetchedClusters.total);
|
|
272
299
|
setClustersSelectOptions(getClusterOptions(fetchedClusters.items));
|
|
273
|
-
|
|
274
|
-
});
|
|
275
|
-
const debounceFn = debounce(onTypeaheadInputChanged, 500);
|
|
300
|
+
}), 500);
|
|
276
301
|
const getSelectedItem = () => {
|
|
277
302
|
if (!isEmpty(inputVal)) {
|
|
278
303
|
return createState(props.openshiftClusterIDState, inputVal);
|
|
@@ -281,6 +306,12 @@ function OpenshiftDropdownV4(props) {
|
|
|
281
306
|
return createState(props.openshiftClusterIDState, getDisplayName(props.openshiftClusterIDState, props.noClusterIdReasonExplanation || '', props.openshiftDisplayName || props.openshiftClusterIDState));
|
|
282
307
|
}
|
|
283
308
|
};
|
|
309
|
+
const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, variant: "typeahead", onClick: onToggle, onKeyDown: onInputKeyDown, isExpanded: isOpen, isFullWidth: true, isDisabled: props.isDisabled },
|
|
310
|
+
React.createElement(TextInputGroup, { isPlain: true },
|
|
311
|
+
React.createElement(TextInputGroupMain, { value: inputVal, onClick: onToggle, onChange: onTextInputChange, onKeyDown: onInputKeyDown, autoComplete: "off", innerRef: textInputRef, placeholder: t('Search by Cluster ID, alias, and domain or manually enter your Cluster ID'), role: "combobox", isExpanded: isOpen, "aria-controls": "openshift-cluster-selector-listbox" }),
|
|
312
|
+
isFetchingClusters ? (React.createElement(TextInputGroupUtilities, null,
|
|
313
|
+
React.createElement(Spinner, { size: "md" }))) : (inputVal && (React.createElement(TextInputGroupUtilities, null,
|
|
314
|
+
React.createElement(Button, { icon: React.createElement(TimesIcon, { "aria-hidden": true }), variant: "plain", onClick: onDropdownClear, "aria-label": t('Clear input value') })))))));
|
|
284
315
|
const titleId = 'case-details-cluster-nickname-selector';
|
|
285
316
|
return (React.createElement(React.Fragment, null,
|
|
286
317
|
React.createElement("div", { className: `${props.className} form-group` },
|
|
@@ -289,13 +320,8 @@ function OpenshiftDropdownV4(props) {
|
|
|
289
320
|
React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*"),
|
|
290
321
|
!isExportingPDF ? React.createElement(CaseOpenShiftPopover, null) : ''),
|
|
291
322
|
React.createElement("span", { id: titleId, hidden: true }, "Select a state"),
|
|
292
|
-
React.createElement(Select,
|
|
293
|
-
|
|
294
|
-
loadingVariant: {
|
|
295
|
-
text: 'Display additional results',
|
|
296
|
-
onClick: onViewMoreClick,
|
|
297
|
-
},
|
|
298
|
-
}), { "data-tracking-id": "openshift-cluster-id", className: "openshift-cluster-id" }), clustersSelectOptions),
|
|
323
|
+
React.createElement(Select, { id: "openshift-cluster-selector", isOpen: isOpen, selected: getSelectedItem(), onSelect: onSelect, onOpenChange: (isOpen) => setIsOpen(isOpen), toggle: toggle, shouldFocusFirstItemOnOpen: true, isScrollable: true, "aria-invalid": props.isClusterIdInvalid, "aria-describedby": "clusterID-validate-helper", "data-tracking-id": "openshift-cluster-id", className: "openshift-cluster-id" },
|
|
324
|
+
React.createElement(SelectList, { id: "openshift-cluster-selector-listbox" }, clustersSelectOptions)),
|
|
299
325
|
React.createElement("div", { id: "clusterID-validate-helper", className: `form-instructions ${props.isClusterIdInvalid ? 'form-invalid' : ''}` }, props.clusterIdDropdownFormInstructions))));
|
|
300
326
|
}
|
|
301
327
|
OpenshiftDropdownV4.defaultProps = defaultProps;
|
|
@@ -121,7 +121,7 @@ function RHAssociatesSelector(props) {
|
|
|
121
121
|
}, placeholder: t(`Add an internal associate to watch this case`), onSelect: onNotifiedUserChange, renderToken: renderToken, isUpdating: isRHAssociatesUpdating, "data-tracking-id": "case-contact-select-rh-watcher" })),
|
|
122
122
|
caseNumber && showAddWatchButton() && !isExportingPDF && (React.createElement(Button, { variant: "secondary", onClick: addCurrentUser, type: "button", "data-tracking-id": "case-add-me-rh-watcher" },
|
|
123
123
|
React.createElement(Trans, null, "Add me as a watcher"))),
|
|
124
|
-
caseNumber && showRemoveWatchButton() && !isExportingPDF && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-
|
|
124
|
+
caseNumber && showRemoveWatchButton() && !isExportingPDF && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-v6-u-display-inline-block" }, isCurrentUserCaseContact ? (React.createElement(React.Fragment, null,
|
|
125
125
|
React.createElement(Tooltip, { trigger: 'mouseenter focus', triggerRef: toolTipRef, position: TooltipPosition.top, content: React.createElement(Trans, null, "You are case contact and therefore you cannot be removed as watcher") }),
|
|
126
126
|
React.createElement(Button, { variant: "tertiary", onClick: removeCurrentUser, type: "button", isDisabled: true, "data-tracking-id": "case-remove-me-rh-watcher-case-contact" },
|
|
127
127
|
React.createElement(Trans, null, "Remove me as a watcher")))) : (React.createElement(Button, { variant: "secondary", onClick: removeCurrentUser, type: "button", "data-tracking-id": "case-remove-me-rh-watcher" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddContactToGroupModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/AddContactToGroupModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAGvF,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,UAAU,CAAC;IAC9B,eAAe,EAAE,UAAU,CAAC;IAC5B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AddContactToGroupModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/AddContactToGroupModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAGvF,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,UAAU,CAAC;IAC9B,eAAe,EAAE,UAAU,CAAC;IAC5B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBAkDnD"}
|
|
@@ -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, Modal, ModalVariant, TextInput } from '@patternfly/react-core';
|
|
11
|
+
import { Button, Modal, ModalFooter, ModalVariant, TextInput } from '@patternfly/react-core';
|
|
12
12
|
import { ToastNotification, useFetch } from '@rh-support/components';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -30,16 +30,16 @@ export function AddContactToGroupModal(props) {
|
|
|
30
30
|
const handleClose = () => {
|
|
31
31
|
props.onClose && props.onClose();
|
|
32
32
|
};
|
|
33
|
-
return (React.createElement(Modal, { variant: ModalVariant.medium, title: t('Add to a group'), isOpen: true, onClose: handleClose,
|
|
34
|
-
React.createElement(Button, { spinnerAriaValueText: isFetching ? t('Adding') : undefined, isLoading: isFetching, key: "confirm", variant: "primary", onClick: onAdd, isDisabled: isFetching },
|
|
35
|
-
React.createElement(Trans, null, "Add")),
|
|
36
|
-
React.createElement(Button, { key: "cancel", variant: "link", onClick: handleClose },
|
|
37
|
-
React.createElement(Trans, null, " Cancel")),
|
|
38
|
-
] },
|
|
33
|
+
return (React.createElement(Modal, { variant: ModalVariant.medium, title: t('Add to a group'), isOpen: true, onClose: handleClose },
|
|
39
34
|
React.createElement("label", { htmlFor: "group-member" },
|
|
40
35
|
React.createElement(Trans, null, "New group member")),
|
|
41
36
|
React.createElement(TextInput, { id: "group-member", isDisabled: true, value: props.selectedContact.ssoUsername }),
|
|
42
37
|
React.createElement("label", { htmlFor: "group-selector" },
|
|
43
38
|
React.createElement(Trans, null, "Group")),
|
|
44
|
-
React.createElement(TextInput, { id: "group-selector", value: props.selectedCaseGroup.name, isDisabled: true })
|
|
39
|
+
React.createElement(TextInput, { id: "group-selector", value: props.selectedCaseGroup.name, isDisabled: true }),
|
|
40
|
+
React.createElement(ModalFooter, null,
|
|
41
|
+
React.createElement(Button, { spinnerAriaValueText: isFetching ? t('Adding') : undefined, isLoading: isFetching, key: "confirm", variant: "primary", onClick: onAdd, isDisabled: isFetching },
|
|
42
|
+
React.createElement(Trans, null, "Add")),
|
|
43
|
+
React.createElement(Button, { key: "cancel", variant: "link", onClick: handleClose },
|
|
44
|
+
React.createElement(Trans, null, " Cancel")))));
|
|
45
45
|
}
|
package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCustomEmailToAccountModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddCustomEmailToAccountModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,MAAM;IACZ,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,qBAsGpD"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { customEmail } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Button, Form, FormGroup, FormHelperText, HelperText, HelperTextItem, Modal, ModalVariant, TextInput, ValidatedOptions, } from '@patternfly/react-core';
|
|
11
|
+
import { Button, Form, FormGroup, FormHelperText, HelperText, HelperTextItem, Modal, ModalFooter, ModalVariant, TextInput, ValidatedOptions, } from '@patternfly/react-core';
|
|
12
12
|
import { ToastNotification, useFetch } from '@rh-support/components';
|
|
13
13
|
import isEmpty from 'lodash/isEmpty';
|
|
14
14
|
import React, { useState } from 'react';
|
|
@@ -45,13 +45,8 @@ export function AddCustomEmailToAccount(props) {
|
|
|
45
45
|
: isEmpty(firstName.trim())
|
|
46
46
|
? ValidatedOptions.error
|
|
47
47
|
: ValidatedOptions.default;
|
|
48
|
-
return (React.createElement(Modal, { variant: ModalVariant.medium, title: t('Add a notification email to your account'), isOpen: true, onClose: handleClose, onEscapePress: handleClose,
|
|
49
|
-
|
|
50
|
-
React.createElement(Trans, null, "Add to account")),
|
|
51
|
-
React.createElement(Button, { key: "cancel", variant: "link", onClick: handleClose, isDisabled: isFetching },
|
|
52
|
-
React.createElement(Trans, null, "Cancel")),
|
|
53
|
-
] },
|
|
54
|
-
React.createElement("p", { className: "pf-v5-u-mb-lg" },
|
|
48
|
+
return (React.createElement(Modal, { variant: ModalVariant.medium, title: t('Add a notification email to your account'), isOpen: true, onClose: handleClose, onEscapePress: handleClose },
|
|
49
|
+
React.createElement("p", { className: "pf-v6-u-mb-lg" },
|
|
55
50
|
React.createElement(Trans, null, "Note: This email will be added at an account level, not a case level.")),
|
|
56
51
|
React.createElement(Form, null,
|
|
57
52
|
React.createElement(FormGroup, { label: t('New email address'), fieldId: "custom-email-address", isRequired: true },
|
|
@@ -62,6 +57,11 @@ export function AddCustomEmailToAccount(props) {
|
|
|
62
57
|
React.createElement(HelperTextItem, { variant: "error" },
|
|
63
58
|
React.createElement(Trans, null, "First name cannot be empty"))))),
|
|
64
59
|
React.createElement(TextInput, { id: "custom-email-firstName", value: firstName, isRequired: true, type: "text", validated: firstNameValidated, onChange: (_event, firstName) => onFirstNameChange(firstName), "aria-label": t('First name'), placeholder: t('First name'), maxLength: 254 })),
|
|
65
|
-
React.createElement(FormGroup, { label: t('Last name'), fieldId: "custom-email-lastName", className: "pf-
|
|
66
|
-
React.createElement(TextInput, { id: "custom-email-lastName", value: lastName, type: "text", onChange: (_event, lastName) => onLastNameChange(lastName), "aria-label": t('Last name'), placeholder: t('Last name'), maxLength: 254 })))
|
|
60
|
+
React.createElement(FormGroup, { label: t('Last name'), fieldId: "custom-email-lastName", className: "pf-v6-u-mb-md" },
|
|
61
|
+
React.createElement(TextInput, { id: "custom-email-lastName", value: lastName, type: "text", onChange: (_event, lastName) => onLastNameChange(lastName), "aria-label": t('Last name'), placeholder: t('Last name'), maxLength: 254 }))),
|
|
62
|
+
React.createElement(ModalFooter, null,
|
|
63
|
+
React.createElement(Button, { spinnerAriaValueText: isFetching ? t('Adding') : undefined, isLoading: isFetching, key: "confirm", variant: "primary", onClick: onAdd, isDisabled: isFetching || (isSaveButtonClicked && isEmpty(firstName.trim())) },
|
|
64
|
+
React.createElement(Trans, null, "Add to account")),
|
|
65
|
+
React.createElement(Button, { key: "cancel", variant: "link", onClick: handleClose, isDisabled: isFetching },
|
|
66
|
+
React.createElement(Trans, null, "Cancel")))));
|
|
67
67
|
}
|
|
@@ -259,7 +259,7 @@ function CaseContactSelector(props) {
|
|
|
259
259
|
const getCreateNewText = (query) => `Add to your account: ${query}`;
|
|
260
260
|
if (!canSeeEmailNotifications)
|
|
261
261
|
return React.createElement(React.Fragment, null);
|
|
262
|
-
return (React.createElement("div", { className: "form-group pf-
|
|
262
|
+
return (React.createElement("div", { className: "form-group pf-v6-u-mb-md" },
|
|
263
263
|
React.createElement("label", { className: "react-typeahead-label-wrapper", htmlFor: "get-support-notifications" },
|
|
264
264
|
React.createElement(Trans, null, "Send notifications"),
|
|
265
265
|
loggedInUserRights.data.isOrgAdmin() ? (React.createElement(React.Fragment, null,
|
|
@@ -286,7 +286,7 @@ function CaseContactSelector(props) {
|
|
|
286
286
|
React.createElement(Button, { variant: "link", isInline: true, component: "span", onClick: onAddEmailToAccountBtnClick }, "add them at the account level"))))),
|
|
287
287
|
caseNumber && showAddWatchButton() && !isExportingPDF && (React.createElement(Button, { variant: "secondary", onClick: addCurrentUser, type: "button", "data-tracking-id": "case-add-me-watcher" },
|
|
288
288
|
React.createElement(Trans, null, "Add me as a watcher"))),
|
|
289
|
-
caseNumber && showRemoveWatchButton() && !isExportingPDF && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-
|
|
289
|
+
caseNumber && showRemoveWatchButton() && !isExportingPDF && (React.createElement("div", { ref: toolTipRef, className: "remove-me-as-watcher pf-v6-u-display-inline-block" }, isCurrentUserCaseContact ? (React.createElement(React.Fragment, null,
|
|
290
290
|
React.createElement(Tooltip, { trigger: 'mouseenter focus', triggerRef: toolTipRef, position: TooltipPosition.top, content: React.createElement(Trans, null, "You are case contact and therefore you cannot be removed as watcher") }),
|
|
291
291
|
React.createElement(Button, { variant: "tertiary", onClick: removeCurrentUser, type: "button", isDisabled: true, "data-tracking-id": "case-remove-me-watcher" },
|
|
292
292
|
React.createElement(Trans, null, "Remove me as a watcher")))) : (React.createElement(Button, { variant: "secondary", onClick: removeCurrentUser, type: "button", "data-tracking-id": "case-remove-me-watcher" },
|
package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NonOrgCaseNotifyeesSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NonOrgCaseNotifyeesSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAwB,oBAAoB,EAAY,MAAM,wBAAwB,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,aAAa,EAAE,oBAAoB,EAAE,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,aAAa,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAqCD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,qBA0MxD"}
|
|
@@ -19,11 +19,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
19
19
|
return t;
|
|
20
20
|
};
|
|
21
21
|
import { accounts } from '@cee-eng/hydrajs';
|
|
22
|
-
import { Button, Flex, FlexItem } from '@patternfly/react-core';
|
|
22
|
+
import { Button, Flex, FlexItem, Label, LabelGroup, Menu, MenuContent, MenuItem, MenuList, Popper, TextInput, } from '@patternfly/react-core';
|
|
23
23
|
import { getHydraContactLabel, useFetch } from '@rh-support/components';
|
|
24
24
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
25
|
-
import React, { useContext, useState } from 'react';
|
|
26
|
-
import { Highlighter, Token, Typeahead } from 'react-bootstrap-typeahead';
|
|
25
|
+
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
27
26
|
import { Trans } from 'react-i18next';
|
|
28
27
|
const isCustomEmailAddress = (user) => {
|
|
29
28
|
return !!(user === null || user === void 0 ? void 0 : user.emailAddress);
|
|
@@ -35,18 +34,41 @@ const getKey = (option) => {
|
|
|
35
34
|
if (isCustomEmailAddress(option))
|
|
36
35
|
return option.emailAddress;
|
|
37
36
|
if (isContact(option))
|
|
38
|
-
return option.ssoUsername;
|
|
37
|
+
return option.ssoUsername || '';
|
|
38
|
+
return '';
|
|
39
|
+
};
|
|
40
|
+
const CustomHighlighter = ({ search, children }) => {
|
|
41
|
+
if (!search)
|
|
42
|
+
return React.createElement(React.Fragment, null, children);
|
|
43
|
+
const regex = new RegExp(`(${search})`, 'gi');
|
|
44
|
+
const parts = children.split(regex);
|
|
45
|
+
return (React.createElement(React.Fragment, null, parts.map((part, index) => regex.test(part) ? (React.createElement("mark", { key: index, style: { backgroundColor: '#fff3cd' } }, part)) : (part))));
|
|
39
46
|
};
|
|
40
47
|
export function NonOrgCaseNotifyeesSelector(props) {
|
|
41
48
|
const [inputVal, setInputVal] = useState('');
|
|
49
|
+
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
50
|
+
const inputRef = useRef(null);
|
|
51
|
+
const menuRef = useRef(null);
|
|
42
52
|
const { request, isFetching } = useFetch(accounts.searchAccountForContactAndNotificationAddress);
|
|
43
53
|
const [notifyeesList, setNotifyeesList] = useState([]);
|
|
44
54
|
const { globalMetadataState: { loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
45
55
|
const [showGroupPermissionError, setShowGroupPermissionError] = useState(false);
|
|
46
56
|
const [showAccountPermissionError, setShowAccountPermissionError] = useState(false);
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
if (props.typeaheadRef) {
|
|
59
|
+
props.typeaheadRef.current = inputRef.current;
|
|
60
|
+
}
|
|
61
|
+
}, [props.typeaheadRef]);
|
|
62
|
+
const onItemSelect = (option) => {
|
|
63
|
+
const newSelected = [...props.selectedItems, option];
|
|
64
|
+
props.onChange && props.onChange(newSelected);
|
|
65
|
+
setInputVal('');
|
|
49
66
|
clearList();
|
|
67
|
+
setIsDropdownOpen(false);
|
|
68
|
+
};
|
|
69
|
+
const onRemoveItem = (optionToRemove) => {
|
|
70
|
+
const newSelected = props.selectedItems.filter((item) => getKey(item) !== getKey(optionToRemove));
|
|
71
|
+
props.onChange && props.onChange(newSelected);
|
|
50
72
|
};
|
|
51
73
|
const onAddClick = () => __awaiter(this, void 0, void 0, function* () {
|
|
52
74
|
var _a, _b, _c;
|
|
@@ -62,7 +84,11 @@ export function NonOrgCaseNotifyeesSelector(props) {
|
|
|
62
84
|
const { ssoName } = c, rest = __rest(c, ["ssoName"]);
|
|
63
85
|
return Object.assign({ ssoUsername: ssoName }, rest);
|
|
64
86
|
});
|
|
65
|
-
setNotifyeesList([
|
|
87
|
+
setNotifyeesList([
|
|
88
|
+
...mappedContacts,
|
|
89
|
+
{ emailAddress: notificationAddress.email, caseNumber: '' },
|
|
90
|
+
]);
|
|
91
|
+
setIsDropdownOpen(true);
|
|
66
92
|
}
|
|
67
93
|
else {
|
|
68
94
|
if (notificationAddress === null || notificationAddress === void 0 ? void 0 : notificationAddress.email) {
|
|
@@ -102,22 +128,37 @@ export function NonOrgCaseNotifyeesSelector(props) {
|
|
|
102
128
|
setInputVal(val);
|
|
103
129
|
}
|
|
104
130
|
clearList();
|
|
131
|
+
setIsDropdownOpen(false);
|
|
105
132
|
};
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
};
|
|
111
|
-
const renderMenuItemChildren = (option, p) => (React.createElement(Highlighter, { key: getKey(option), search: p.text }, getHydraContactLabel(option)));
|
|
112
|
-
const onBlur = () => {
|
|
133
|
+
const onBlur = (event) => {
|
|
134
|
+
if (menuRef.current && menuRef.current.contains(event.relatedTarget)) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
113
137
|
clearList();
|
|
138
|
+
setIsDropdownOpen(false);
|
|
139
|
+
};
|
|
140
|
+
const renderSelectedItems = () => {
|
|
141
|
+
if (props.selectedItems.length === 0)
|
|
142
|
+
return null;
|
|
143
|
+
return (React.createElement(LabelGroup, { style: { marginBottom: '8px' } }, props.selectedItems.map((option, index) => {
|
|
144
|
+
const isContactOption = isContact(option);
|
|
145
|
+
const isCurrentUserCaseContact = isContactOption && option.ssoUsername === props.contactSsoUsername;
|
|
146
|
+
const isDisabled = (props.isChipDisabled && isContactOption) || isCurrentUserCaseContact;
|
|
147
|
+
return (React.createElement(Label, { key: getKey(option) || index, onClose: !isDisabled ? () => onRemoveItem(option) : undefined, closeBtnAriaLabel: `Remove ${getHydraContactLabel(option)}`, variant: "outline" }, getHydraContactLabel(option)));
|
|
148
|
+
})));
|
|
114
149
|
};
|
|
150
|
+
const menu = (React.createElement(Menu, { ref: menuRef },
|
|
151
|
+
React.createElement(MenuContent, null,
|
|
152
|
+
React.createElement(MenuList, null, notifyeesList.map((option, index) => (React.createElement(MenuItem, { key: getKey(option) || index, onClick: () => onItemSelect(option) },
|
|
153
|
+
React.createElement(CustomHighlighter, { search: inputVal }, getHydraContactLabel(option)))))))));
|
|
115
154
|
return (React.createElement(Flex, null,
|
|
116
155
|
React.createElement(FlexItem, { grow: { sm: 'grow' } },
|
|
117
|
-
React.createElement(
|
|
156
|
+
React.createElement("div", null,
|
|
157
|
+
renderSelectedItems(),
|
|
158
|
+
React.createElement(Popper, { trigger: React.createElement(TextInput, { ref: inputRef, id: props.id, "data-tracking-id": props.dataTrackingId, value: inputVal, onChange: (event, value) => onInputChange(value), placeholder: props.placeholder, isDisabled: props.isDisabled || isFetching, onBlur: onBlur, validated: showGroupPermissionError || showAccountPermissionError ? 'error' : 'default' }), popper: menu, isVisible: isDropdownOpen && notifyeesList.length > 0, position: "start" })),
|
|
118
159
|
props.selectedItems.length > 0 && !showAccountPermissionError && !showAccountPermissionError && (React.createElement("p", { className: "form-instructions" },
|
|
119
160
|
React.createElement(Trans, null, "Enter an email address or username for the person you want to notify"))),
|
|
120
|
-
React.createElement("p", { className: "pf-
|
|
161
|
+
React.createElement("p", { className: "pf-v6-c-form__helper-text pf-m-error", style: { color: '#c9190b' } },
|
|
121
162
|
showGroupPermissionError && (React.createElement(Trans, null,
|
|
122
163
|
inputVal,
|
|
123
164
|
" was not found under the selected group. Please contact your Org Admin to add them to this group.")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoAttachmentSelectedModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/NoAttachmentSelectedModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NoAttachmentSelectedModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/NoAttachmentSelectedModal.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAiBvE,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAID,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAiJtD"}
|