@planningcenter/chat-react-native 4.4.1-qa-staging.31 → 4.4.1-qa-staging.32
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/build/components/page/page_error_boundary.d.ts +9 -1
- package/build/components/page/page_error_boundary.d.ts.map +1 -1
- package/build/components/page/page_error_boundary.js +56 -31
- package/build/components/page/page_error_boundary.js.map +1 -1
- package/build/hooks/direct_messages/use_direct_message_candidates.d.ts +1 -3
- package/build/hooks/direct_messages/use_direct_message_candidates.d.ts.map +1 -1
- package/build/hooks/direct_messages/use_direct_message_candidates.js +29 -42
- package/build/hooks/direct_messages/use_direct_message_candidates.js.map +1 -1
- package/build/navigation/page_error_fallbacks.d.ts +7 -0
- package/build/navigation/page_error_fallbacks.d.ts.map +1 -0
- package/build/navigation/page_error_fallbacks.js +7 -0
- package/build/navigation/page_error_fallbacks.js.map +1 -0
- package/build/navigation/screenLayout.d.ts.map +1 -1
- package/build/navigation/screenLayout.js +10 -6
- package/build/navigation/screenLayout.js.map +1 -1
- package/build/screens/age_check/age_check_required_screen.d.ts.map +1 -1
- package/build/screens/age_check/age_check_required_screen.js +1 -0
- package/build/screens/age_check/age_check_required_screen.js.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.d.ts.map +1 -1
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js +168 -228
- package/build/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.js.map +1 -1
- package/build/screens/search/components/search_results_list.d.ts.map +1 -1
- package/build/screens/search/components/search_results_list.js +82 -94
- package/build/screens/search/components/search_results_list.js.map +1 -1
- package/package.json +3 -3
- package/src/components/page/__tests__/page_error_boundary.test.tsx +33 -0
- package/src/components/page/page_error_boundary.tsx +43 -12
- package/src/hooks/direct_messages/use_direct_message_candidates.ts +2 -2
- package/src/navigation/page_error_fallbacks.ts +14 -0
- package/src/navigation/screenLayout.tsx +3 -1
- package/src/screens/age_check/age_check_required_screen.tsx +5 -1
- package/src/screens/conversation_select_recipients/__tests__/conversation_select_direct_message_recipients_screen.test.tsx +25 -8
- package/src/screens/conversation_select_recipients/conversation_select_direct_message_recipients_screen.tsx +7 -32
- package/src/screens/search/components/search_results_list.tsx +11 -11
|
@@ -6,7 +6,6 @@ import { FlatList, Pressable, StyleSheet, View } from 'react-native';
|
|
|
6
6
|
import { Avatar, Badge, Banner, Icon, KeyboardView, Spinner, Text } from '../../components';
|
|
7
7
|
import { ActionButton } from '../../components/display/action_button';
|
|
8
8
|
import { AutoFocusAwareTextInput } from '../../components/display/text_input';
|
|
9
|
-
import { ComponentErrorBoundary } from '../../components/page/component_error_boundary';
|
|
10
9
|
import { useTheme } from '../../hooks';
|
|
11
10
|
import { useDirectMessageAffiliations } from '../../hooks/direct_messages/use_direct_message_affiliations';
|
|
12
11
|
import { useDirectMessageCandidates } from '../../hooks/direct_messages/use_direct_message_candidates';
|
|
@@ -509,7 +508,7 @@ function PersonChip(t0) {
|
|
|
509
508
|
return t8;
|
|
510
509
|
}
|
|
511
510
|
function CandidateResults(t0) {
|
|
512
|
-
const $ = _c(
|
|
511
|
+
const $ = _c(50);
|
|
513
512
|
const {
|
|
514
513
|
term,
|
|
515
514
|
selectedPeople,
|
|
@@ -517,304 +516,244 @@ function CandidateResults(t0) {
|
|
|
517
516
|
header
|
|
518
517
|
} = t0;
|
|
519
518
|
const styles = useStyles();
|
|
520
|
-
let t1;
|
|
521
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
522
|
-
t1 = {
|
|
523
|
-
throwOnError: false
|
|
524
|
-
};
|
|
525
|
-
$[0] = t1;
|
|
526
|
-
} else {
|
|
527
|
-
t1 = $[0];
|
|
528
|
-
}
|
|
529
519
|
const {
|
|
530
520
|
data,
|
|
531
|
-
isFetching
|
|
532
|
-
|
|
533
|
-
} = useDirectMessageCandidates(term, t1);
|
|
521
|
+
isFetching
|
|
522
|
+
} = useDirectMessageCandidates(term);
|
|
534
523
|
const {
|
|
535
524
|
groups,
|
|
536
525
|
teams,
|
|
537
526
|
resultsDescription
|
|
538
527
|
} = useDirectMessageAffiliations();
|
|
539
|
-
let
|
|
540
|
-
if ($[
|
|
541
|
-
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
528
|
+
let t1;
|
|
529
|
+
if ($[0] !== data?.data) {
|
|
530
|
+
t1 = data?.data ?? [];
|
|
531
|
+
$[0] = data?.data;
|
|
532
|
+
$[1] = t1;
|
|
544
533
|
} else {
|
|
545
|
-
|
|
534
|
+
t1 = $[1];
|
|
546
535
|
}
|
|
547
|
-
let
|
|
548
|
-
if ($[
|
|
549
|
-
let
|
|
550
|
-
if ($[
|
|
551
|
-
|
|
552
|
-
$[
|
|
553
|
-
$[
|
|
536
|
+
let t2;
|
|
537
|
+
if ($[2] !== selectedPeople || $[3] !== t1) {
|
|
538
|
+
let t3;
|
|
539
|
+
if ($[5] !== selectedPeople) {
|
|
540
|
+
t3 = c => !selectedPeople.has(c.id);
|
|
541
|
+
$[5] = selectedPeople;
|
|
542
|
+
$[6] = t3;
|
|
554
543
|
} else {
|
|
555
|
-
|
|
544
|
+
t3 = $[6];
|
|
556
545
|
}
|
|
557
|
-
|
|
558
|
-
$[
|
|
546
|
+
t2 = t1.filter(t3);
|
|
547
|
+
$[2] = selectedPeople;
|
|
548
|
+
$[3] = t1;
|
|
559
549
|
$[4] = t2;
|
|
560
|
-
$[5] = t3;
|
|
561
550
|
} else {
|
|
562
|
-
|
|
551
|
+
t2 = $[4];
|
|
563
552
|
}
|
|
564
|
-
const unselectedCandidates =
|
|
553
|
+
const unselectedCandidates = t2;
|
|
565
554
|
const hasTruncated = (data?.meta.totalCount ?? 0) > (data?.data.length ?? 0);
|
|
566
555
|
const isAtLimit = selectedPeople.size >= MAX_RECIPIENTS;
|
|
567
|
-
const showsResults = term.length >= 1 && !isAtLimit &&
|
|
568
|
-
let
|
|
556
|
+
const showsResults = term.length >= 1 && !isAtLimit && unselectedCandidates.length > 0;
|
|
557
|
+
let t3;
|
|
569
558
|
bb0: {
|
|
570
559
|
if (showsResults) {
|
|
571
|
-
|
|
560
|
+
t3 = null;
|
|
572
561
|
break bb0;
|
|
573
562
|
}
|
|
574
563
|
if (term.length < 1) {
|
|
575
564
|
if (selectedPeople.size > 0) {
|
|
576
|
-
|
|
565
|
+
t3 = null;
|
|
577
566
|
break bb0;
|
|
578
567
|
}
|
|
579
|
-
let
|
|
580
|
-
if ($[
|
|
581
|
-
|
|
568
|
+
let t4;
|
|
569
|
+
if ($[7] !== styles.emptyStateIcon) {
|
|
570
|
+
t4 = /*#__PURE__*/_jsx(Icon, {
|
|
582
571
|
name: "churchCenter.people",
|
|
583
572
|
size: 40,
|
|
584
573
|
style: styles.emptyStateIcon
|
|
585
574
|
});
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
575
|
+
$[7] = styles.emptyStateIcon;
|
|
576
|
+
$[8] = t4;
|
|
588
577
|
} else {
|
|
589
|
-
|
|
578
|
+
t4 = $[8];
|
|
590
579
|
}
|
|
591
|
-
let
|
|
592
|
-
if ($[
|
|
593
|
-
|
|
580
|
+
let t5;
|
|
581
|
+
if ($[9] !== styles.emptyStateTitle) {
|
|
582
|
+
t5 = /*#__PURE__*/_jsx(Text, {
|
|
594
583
|
style: styles.emptyStateTitle,
|
|
595
584
|
children: "Search for people to direct message"
|
|
596
585
|
});
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
586
|
+
$[9] = styles.emptyStateTitle;
|
|
587
|
+
$[10] = t5;
|
|
599
588
|
} else {
|
|
600
|
-
|
|
589
|
+
t5 = $[10];
|
|
601
590
|
}
|
|
602
|
-
let
|
|
603
|
-
if ($[
|
|
604
|
-
|
|
591
|
+
let t6;
|
|
592
|
+
if ($[11] !== styles.emptyStateSubtitle) {
|
|
593
|
+
t6 = /*#__PURE__*/_jsx(Text, {
|
|
605
594
|
variant: "secondary",
|
|
606
595
|
style: styles.emptyStateSubtitle,
|
|
607
596
|
children: "Start a conversation with people in your groups and teams."
|
|
608
597
|
});
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
598
|
+
$[11] = styles.emptyStateSubtitle;
|
|
599
|
+
$[12] = t6;
|
|
611
600
|
} else {
|
|
612
|
-
|
|
601
|
+
t6 = $[12];
|
|
613
602
|
}
|
|
614
|
-
let
|
|
615
|
-
if ($[
|
|
616
|
-
|
|
603
|
+
let t7;
|
|
604
|
+
if ($[13] !== styles.emptyState || $[14] !== t4 || $[15] !== t5 || $[16] !== t6) {
|
|
605
|
+
t7 = /*#__PURE__*/_jsxs(View, {
|
|
617
606
|
style: styles.emptyState,
|
|
618
|
-
children: [t5, t6
|
|
607
|
+
children: [t4, t5, t6]
|
|
619
608
|
});
|
|
620
|
-
$[
|
|
609
|
+
$[13] = styles.emptyState;
|
|
610
|
+
$[14] = t4;
|
|
621
611
|
$[15] = t5;
|
|
622
612
|
$[16] = t6;
|
|
623
613
|
$[17] = t7;
|
|
624
|
-
$[18] = t8;
|
|
625
|
-
} else {
|
|
626
|
-
t8 = $[18];
|
|
627
|
-
}
|
|
628
|
-
t4 = t8;
|
|
629
|
-
break bb0;
|
|
630
|
-
}
|
|
631
|
-
if (isError) {
|
|
632
|
-
let t5;
|
|
633
|
-
if ($[19] !== styles.errorBanner) {
|
|
634
|
-
t5 = /*#__PURE__*/_jsx(Banner, {
|
|
635
|
-
appearance: "error",
|
|
636
|
-
description: "Couldn't load people right now. Try again.",
|
|
637
|
-
style: styles.errorBanner
|
|
638
|
-
});
|
|
639
|
-
$[19] = styles.errorBanner;
|
|
640
|
-
$[20] = t5;
|
|
641
|
-
} else {
|
|
642
|
-
t5 = $[20];
|
|
643
|
-
}
|
|
644
|
-
let t6;
|
|
645
|
-
if ($[21] !== term) {
|
|
646
|
-
t6 = /*#__PURE__*/_jsx(CandidateSearchError, {
|
|
647
|
-
term: term
|
|
648
|
-
});
|
|
649
|
-
$[21] = term;
|
|
650
|
-
$[22] = t6;
|
|
651
|
-
} else {
|
|
652
|
-
t6 = $[22];
|
|
653
|
-
}
|
|
654
|
-
let t7;
|
|
655
|
-
if ($[23] !== t5 || $[24] !== t6 || $[25] !== term) {
|
|
656
|
-
t7 = /*#__PURE__*/_jsx(ComponentErrorBoundary, {
|
|
657
|
-
fallback: t5,
|
|
658
|
-
children: t6
|
|
659
|
-
}, term);
|
|
660
|
-
$[23] = t5;
|
|
661
|
-
$[24] = t6;
|
|
662
|
-
$[25] = term;
|
|
663
|
-
$[26] = t7;
|
|
664
614
|
} else {
|
|
665
|
-
t7 = $[
|
|
615
|
+
t7 = $[17];
|
|
666
616
|
}
|
|
667
|
-
|
|
617
|
+
t3 = t7;
|
|
668
618
|
break bb0;
|
|
669
619
|
}
|
|
670
620
|
if (isAtLimit) {
|
|
671
|
-
let
|
|
672
|
-
if ($[
|
|
673
|
-
|
|
621
|
+
let t4;
|
|
622
|
+
if ($[18] !== styles.emptyStateSubtitle) {
|
|
623
|
+
t4 = /*#__PURE__*/_jsxs(Text, {
|
|
674
624
|
variant: "secondary",
|
|
675
625
|
style: styles.emptyStateSubtitle,
|
|
676
626
|
children: ["You can add up to ", MAX_RECIPIENTS, " people to a direct message."]
|
|
677
627
|
});
|
|
678
|
-
$[
|
|
679
|
-
$[
|
|
628
|
+
$[18] = styles.emptyStateSubtitle;
|
|
629
|
+
$[19] = t4;
|
|
680
630
|
} else {
|
|
681
|
-
|
|
631
|
+
t4 = $[19];
|
|
682
632
|
}
|
|
683
|
-
let
|
|
684
|
-
if ($[
|
|
685
|
-
|
|
633
|
+
let t5;
|
|
634
|
+
if ($[20] !== styles.emptyState || $[21] !== t4) {
|
|
635
|
+
t5 = /*#__PURE__*/_jsx(View, {
|
|
686
636
|
style: styles.emptyState,
|
|
687
|
-
children:
|
|
637
|
+
children: t4
|
|
688
638
|
});
|
|
689
|
-
$[
|
|
690
|
-
$[
|
|
691
|
-
$[
|
|
639
|
+
$[20] = styles.emptyState;
|
|
640
|
+
$[21] = t4;
|
|
641
|
+
$[22] = t5;
|
|
692
642
|
} else {
|
|
693
|
-
|
|
643
|
+
t5 = $[22];
|
|
694
644
|
}
|
|
695
|
-
|
|
645
|
+
t3 = t5;
|
|
696
646
|
break bb0;
|
|
697
647
|
}
|
|
698
648
|
if (isFetching) {
|
|
699
|
-
let
|
|
700
|
-
if ($[
|
|
701
|
-
|
|
702
|
-
$[
|
|
649
|
+
let t4;
|
|
650
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
651
|
+
t4 = /*#__PURE__*/_jsx(Spinner, {});
|
|
652
|
+
$[23] = t4;
|
|
703
653
|
} else {
|
|
704
|
-
|
|
654
|
+
t4 = $[23];
|
|
705
655
|
}
|
|
706
|
-
let
|
|
707
|
-
if ($[
|
|
708
|
-
|
|
656
|
+
let t5;
|
|
657
|
+
if ($[24] !== styles.emptyState) {
|
|
658
|
+
t5 = /*#__PURE__*/_jsx(View, {
|
|
709
659
|
style: styles.emptyState,
|
|
710
|
-
children:
|
|
660
|
+
children: t4
|
|
711
661
|
});
|
|
712
|
-
$[
|
|
713
|
-
$[
|
|
662
|
+
$[24] = styles.emptyState;
|
|
663
|
+
$[25] = t5;
|
|
714
664
|
} else {
|
|
715
|
-
|
|
665
|
+
t5 = $[25];
|
|
716
666
|
}
|
|
717
|
-
|
|
667
|
+
t3 = t5;
|
|
718
668
|
break bb0;
|
|
719
669
|
}
|
|
720
|
-
let
|
|
721
|
-
if ($[
|
|
722
|
-
|
|
670
|
+
let t4;
|
|
671
|
+
if ($[26] !== styles.emptyStateIcon) {
|
|
672
|
+
t4 = /*#__PURE__*/_jsx(Icon, {
|
|
723
673
|
name: "general.search",
|
|
724
674
|
size: 32,
|
|
725
675
|
style: styles.emptyStateIcon
|
|
726
676
|
});
|
|
727
|
-
$[
|
|
728
|
-
$[
|
|
677
|
+
$[26] = styles.emptyStateIcon;
|
|
678
|
+
$[27] = t4;
|
|
729
679
|
} else {
|
|
730
|
-
|
|
680
|
+
t4 = $[27];
|
|
731
681
|
}
|
|
732
|
-
let
|
|
733
|
-
if ($[
|
|
734
|
-
|
|
682
|
+
let t5;
|
|
683
|
+
if ($[28] !== styles.emptyStateTitle || $[29] !== term) {
|
|
684
|
+
t5 = /*#__PURE__*/_jsxs(Text, {
|
|
735
685
|
style: styles.emptyStateTitle,
|
|
736
686
|
children: ["No matches for \"", term, "\""]
|
|
737
687
|
});
|
|
738
|
-
$[
|
|
739
|
-
$[
|
|
740
|
-
$[
|
|
688
|
+
$[28] = styles.emptyStateTitle;
|
|
689
|
+
$[29] = term;
|
|
690
|
+
$[30] = t5;
|
|
741
691
|
} else {
|
|
742
|
-
|
|
692
|
+
t5 = $[30];
|
|
743
693
|
}
|
|
744
|
-
let
|
|
745
|
-
if ($[
|
|
746
|
-
|
|
694
|
+
let t6;
|
|
695
|
+
if ($[31] !== styles.emptyStateSubtitle) {
|
|
696
|
+
t6 = /*#__PURE__*/_jsx(Text, {
|
|
747
697
|
variant: "secondary",
|
|
748
698
|
style: styles.emptyStateSubtitle,
|
|
749
699
|
children: "Try a different name, or check that you share a group or team with them."
|
|
750
700
|
});
|
|
751
|
-
$[
|
|
752
|
-
$[
|
|
701
|
+
$[31] = styles.emptyStateSubtitle;
|
|
702
|
+
$[32] = t6;
|
|
753
703
|
} else {
|
|
754
|
-
|
|
704
|
+
t6 = $[32];
|
|
755
705
|
}
|
|
756
|
-
let
|
|
757
|
-
if ($[
|
|
758
|
-
|
|
706
|
+
let t7;
|
|
707
|
+
if ($[33] !== styles.emptyState || $[34] !== t4 || $[35] !== t5 || $[36] !== t6) {
|
|
708
|
+
t7 = /*#__PURE__*/_jsxs(View, {
|
|
759
709
|
style: styles.emptyState,
|
|
760
|
-
children: [t5, t6
|
|
710
|
+
children: [t4, t5, t6]
|
|
761
711
|
});
|
|
762
|
-
$[
|
|
763
|
-
$[
|
|
764
|
-
$[
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
712
|
+
$[33] = styles.emptyState;
|
|
713
|
+
$[34] = t4;
|
|
714
|
+
$[35] = t5;
|
|
715
|
+
$[36] = t6;
|
|
716
|
+
$[37] = t7;
|
|
767
717
|
} else {
|
|
768
|
-
|
|
718
|
+
t7 = $[37];
|
|
769
719
|
}
|
|
770
|
-
|
|
720
|
+
t3 = t7;
|
|
771
721
|
}
|
|
772
|
-
const emptyState =
|
|
773
|
-
let
|
|
774
|
-
if ($[
|
|
775
|
-
|
|
776
|
-
$[
|
|
777
|
-
$[
|
|
778
|
-
$[
|
|
722
|
+
const emptyState = t3;
|
|
723
|
+
let t4;
|
|
724
|
+
if ($[38] !== showsResults || $[39] !== unselectedCandidates) {
|
|
725
|
+
t4 = showsResults ? unselectedCandidates : [];
|
|
726
|
+
$[38] = showsResults;
|
|
727
|
+
$[39] = unselectedCandidates;
|
|
728
|
+
$[40] = t4;
|
|
779
729
|
} else {
|
|
780
|
-
|
|
730
|
+
t4 = $[40];
|
|
781
731
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
if ($[50] !== emptyState || $[51] !== groups || $[52] !== header || $[53] !== onSelect || $[54] !== showsResults || $[55] !== t5 || $[56] !== t6 || $[57] !== t7 || $[58] !== teams) {
|
|
786
|
-
t8 = /*#__PURE__*/_jsx(CandidateList, {
|
|
732
|
+
let t5;
|
|
733
|
+
if ($[41] !== emptyState || $[42] !== groups || $[43] !== hasTruncated || $[44] !== header || $[45] !== onSelect || $[46] !== resultsDescription || $[47] !== t4 || $[48] !== teams) {
|
|
734
|
+
t5 = /*#__PURE__*/_jsx(CandidateList, {
|
|
787
735
|
header: header,
|
|
788
|
-
candidates:
|
|
789
|
-
hasTruncated:
|
|
790
|
-
description:
|
|
791
|
-
showsHeading: showsResults,
|
|
736
|
+
candidates: t4,
|
|
737
|
+
hasTruncated: hasTruncated,
|
|
738
|
+
description: resultsDescription,
|
|
792
739
|
emptyState: emptyState,
|
|
793
740
|
groups: groups,
|
|
794
741
|
teams: teams,
|
|
795
742
|
onSelect: onSelect
|
|
796
743
|
});
|
|
797
|
-
$[
|
|
798
|
-
$[
|
|
799
|
-
$[
|
|
800
|
-
$[
|
|
801
|
-
$[
|
|
802
|
-
$[
|
|
803
|
-
$[
|
|
804
|
-
$[
|
|
805
|
-
$[
|
|
806
|
-
$[59] = t8;
|
|
744
|
+
$[41] = emptyState;
|
|
745
|
+
$[42] = groups;
|
|
746
|
+
$[43] = hasTruncated;
|
|
747
|
+
$[44] = header;
|
|
748
|
+
$[45] = onSelect;
|
|
749
|
+
$[46] = resultsDescription;
|
|
750
|
+
$[47] = t4;
|
|
751
|
+
$[48] = teams;
|
|
752
|
+
$[49] = t5;
|
|
807
753
|
} else {
|
|
808
|
-
|
|
754
|
+
t5 = $[49];
|
|
809
755
|
}
|
|
810
|
-
return
|
|
811
|
-
}
|
|
812
|
-
function CandidateSearchError(t0) {
|
|
813
|
-
const {
|
|
814
|
-
term
|
|
815
|
-
} = t0;
|
|
816
|
-
useDirectMessageCandidates(term);
|
|
817
|
-
return null;
|
|
756
|
+
return t5;
|
|
818
757
|
}
|
|
819
758
|
function candidateBadges(candidate) {
|
|
820
759
|
const badges = [];
|
|
@@ -836,19 +775,19 @@ function candidateAffiliationNames(candidate, groups, teams) {
|
|
|
836
775
|
})];
|
|
837
776
|
}
|
|
838
777
|
function CandidateList(t0) {
|
|
839
|
-
const $ = _c(
|
|
778
|
+
const $ = _c(48);
|
|
840
779
|
const {
|
|
841
780
|
header,
|
|
842
781
|
candidates,
|
|
843
782
|
hasTruncated,
|
|
844
783
|
description,
|
|
845
|
-
showsHeading,
|
|
846
784
|
emptyState,
|
|
847
785
|
groups,
|
|
848
786
|
teams,
|
|
849
787
|
onSelect
|
|
850
788
|
} = t0;
|
|
851
789
|
const styles = useStyles();
|
|
790
|
+
const hasCandidates = candidates.length > 0;
|
|
852
791
|
let t1;
|
|
853
792
|
if ($[0] !== candidates) {
|
|
854
793
|
t1 = candidates.filter(_temp2);
|
|
@@ -867,7 +806,7 @@ function CandidateList(t0) {
|
|
|
867
806
|
let t7;
|
|
868
807
|
let t8;
|
|
869
808
|
let t9;
|
|
870
|
-
if ($[2] !== available || $[3] !== candidates || $[4] !== description || $[5] !== emptyState || $[6] !== groups || $[7] !==
|
|
809
|
+
if ($[2] !== available || $[3] !== candidates || $[4] !== description || $[5] !== emptyState || $[6] !== groups || $[7] !== hasCandidates || $[8] !== header || $[9] !== onSelect || $[10] !== styles || $[11] !== teams) {
|
|
871
810
|
const dmDisabled = candidates.filter(_temp3);
|
|
872
811
|
T0 = FlatList;
|
|
873
812
|
t3 = available;
|
|
@@ -894,12 +833,12 @@ function CandidateList(t0) {
|
|
|
894
833
|
t7 = $[24];
|
|
895
834
|
}
|
|
896
835
|
let t10;
|
|
897
|
-
if ($[25] !== description || $[26] !==
|
|
898
|
-
t10 =
|
|
836
|
+
if ($[25] !== description || $[26] !== hasCandidates) {
|
|
837
|
+
t10 = hasCandidates && /*#__PURE__*/_jsx(ResultsHeading, {
|
|
899
838
|
description: description
|
|
900
839
|
});
|
|
901
840
|
$[25] = description;
|
|
902
|
-
$[26] =
|
|
841
|
+
$[26] = hasCandidates;
|
|
903
842
|
$[27] = t10;
|
|
904
843
|
} else {
|
|
905
844
|
t10 = $[27];
|
|
@@ -935,9 +874,9 @@ function CandidateList(t0) {
|
|
|
935
874
|
$[4] = description;
|
|
936
875
|
$[5] = emptyState;
|
|
937
876
|
$[6] = groups;
|
|
938
|
-
$[7] =
|
|
939
|
-
$[8] =
|
|
940
|
-
$[9] =
|
|
877
|
+
$[7] = hasCandidates;
|
|
878
|
+
$[8] = header;
|
|
879
|
+
$[9] = onSelect;
|
|
941
880
|
$[10] = styles;
|
|
942
881
|
$[11] = teams;
|
|
943
882
|
$[12] = T0;
|
|
@@ -961,8 +900,8 @@ function CandidateList(t0) {
|
|
|
961
900
|
t9 = $[20];
|
|
962
901
|
}
|
|
963
902
|
let t10;
|
|
964
|
-
if ($[31] !==
|
|
965
|
-
t10 = hasTruncated && /*#__PURE__*/_jsx(View, {
|
|
903
|
+
if ($[31] !== hasCandidates || $[32] !== hasTruncated || $[33] !== styles) {
|
|
904
|
+
t10 = hasCandidates && hasTruncated && /*#__PURE__*/_jsx(View, {
|
|
966
905
|
style: styles.truncatedFooter,
|
|
967
906
|
children: /*#__PURE__*/_jsx(Text, {
|
|
968
907
|
variant: "secondary",
|
|
@@ -970,25 +909,26 @@ function CandidateList(t0) {
|
|
|
970
909
|
children: "Keep typing to narrow your results."
|
|
971
910
|
})
|
|
972
911
|
});
|
|
973
|
-
$[31] =
|
|
974
|
-
$[32] =
|
|
975
|
-
$[33] =
|
|
912
|
+
$[31] = hasCandidates;
|
|
913
|
+
$[32] = hasTruncated;
|
|
914
|
+
$[33] = styles;
|
|
915
|
+
$[34] = t10;
|
|
976
916
|
} else {
|
|
977
|
-
t10 = $[
|
|
917
|
+
t10 = $[34];
|
|
978
918
|
}
|
|
979
919
|
let t11;
|
|
980
|
-
if ($[
|
|
920
|
+
if ($[35] !== t10 || $[36] !== t2) {
|
|
981
921
|
t11 = /*#__PURE__*/_jsxs(_Fragment, {
|
|
982
922
|
children: [t2, t10]
|
|
983
923
|
});
|
|
984
|
-
$[
|
|
985
|
-
$[
|
|
986
|
-
$[
|
|
924
|
+
$[35] = t10;
|
|
925
|
+
$[36] = t2;
|
|
926
|
+
$[37] = t11;
|
|
987
927
|
} else {
|
|
988
|
-
t11 = $[
|
|
928
|
+
t11 = $[37];
|
|
989
929
|
}
|
|
990
930
|
let t12;
|
|
991
|
-
if ($[
|
|
931
|
+
if ($[38] !== T0 || $[39] !== t11 || $[40] !== t3 || $[41] !== t4 || $[42] !== t5 || $[43] !== t6 || $[44] !== t7 || $[45] !== t8 || $[46] !== t9) {
|
|
992
932
|
t12 = /*#__PURE__*/_jsx(T0, {
|
|
993
933
|
data: t3,
|
|
994
934
|
contentInsetAdjustmentBehavior: t4,
|
|
@@ -999,18 +939,18 @@ function CandidateList(t0) {
|
|
|
999
939
|
ListEmptyComponent: t9,
|
|
1000
940
|
ListFooterComponent: t11
|
|
1001
941
|
});
|
|
1002
|
-
$[
|
|
1003
|
-
$[
|
|
1004
|
-
$[
|
|
1005
|
-
$[
|
|
1006
|
-
$[
|
|
1007
|
-
$[
|
|
1008
|
-
$[
|
|
1009
|
-
$[
|
|
1010
|
-
$[
|
|
1011
|
-
$[
|
|
942
|
+
$[38] = T0;
|
|
943
|
+
$[39] = t11;
|
|
944
|
+
$[40] = t3;
|
|
945
|
+
$[41] = t4;
|
|
946
|
+
$[42] = t5;
|
|
947
|
+
$[43] = t6;
|
|
948
|
+
$[44] = t7;
|
|
949
|
+
$[45] = t8;
|
|
950
|
+
$[46] = t9;
|
|
951
|
+
$[47] = t12;
|
|
1012
952
|
} else {
|
|
1013
|
-
t12 = $[
|
|
953
|
+
t12 = $[47];
|
|
1014
954
|
}
|
|
1015
955
|
return t12;
|
|
1016
956
|
}
|