@bigbinary/neeto-molecules 1.0.28 → 1.0.29

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 (117) hide show
  1. package/dist/BrowserSupport.cjs.js +22 -1221
  2. package/dist/BrowserSupport.cjs.js.map +1 -1
  3. package/dist/BrowserSupport.js +22 -1221
  4. package/dist/BrowserSupport.js.map +1 -1
  5. package/dist/Columns.cjs.js +39 -976
  6. package/dist/Columns.cjs.js.map +1 -1
  7. package/dist/Columns.js +39 -976
  8. package/dist/Columns.js.map +1 -1
  9. package/dist/Container.cjs.js +3 -125
  10. package/dist/Container.cjs.js.map +1 -1
  11. package/dist/Container.js +3 -125
  12. package/dist/Container.js.map +1 -1
  13. package/dist/CustomDomain.cjs.js +156 -6060
  14. package/dist/CustomDomain.cjs.js.map +1 -1
  15. package/dist/CustomDomain.js +156 -6060
  16. package/dist/CustomDomain.js.map +1 -1
  17. package/dist/DateFormat.cjs.js +9 -264
  18. package/dist/DateFormat.cjs.js.map +1 -1
  19. package/dist/DateFormat.js +9 -264
  20. package/dist/DateFormat.js.map +1 -1
  21. package/dist/DateRangeFilter.cjs.js +35 -715
  22. package/dist/DateRangeFilter.cjs.js.map +1 -1
  23. package/dist/DateRangeFilter.js +35 -715
  24. package/dist/DateRangeFilter.js.map +1 -1
  25. package/dist/DynamicVariables.cjs.js +26 -908
  26. package/dist/DynamicVariables.cjs.js.map +1 -1
  27. package/dist/DynamicVariables.js +26 -908
  28. package/dist/DynamicVariables.js.map +1 -1
  29. package/dist/EmailPreview.cjs.js +14 -349
  30. package/dist/EmailPreview.cjs.js.map +1 -1
  31. package/dist/EmailPreview.js +14 -349
  32. package/dist/EmailPreview.js.map +1 -1
  33. package/dist/ErrorPage.cjs.js +13 -541
  34. package/dist/ErrorPage.cjs.js.map +1 -1
  35. package/dist/ErrorPage.js +13 -541
  36. package/dist/ErrorPage.js.map +1 -1
  37. package/dist/Header.cjs.js +13 -513
  38. package/dist/Header.cjs.js.map +1 -1
  39. package/dist/Header.js +13 -513
  40. package/dist/Header.js.map +1 -1
  41. package/dist/IpRestriction.cjs.js +134 -4226
  42. package/dist/IpRestriction.cjs.js.map +1 -1
  43. package/dist/IpRestriction.js +134 -4226
  44. package/dist/IpRestriction.js.map +1 -1
  45. package/dist/KeyboardShortcuts.cjs.js +51 -2129
  46. package/dist/KeyboardShortcuts.cjs.js.map +1 -1
  47. package/dist/KeyboardShortcuts.js +51 -2129
  48. package/dist/KeyboardShortcuts.js.map +1 -1
  49. package/dist/LoginPage.cjs.js +32 -752
  50. package/dist/LoginPage.cjs.js.map +1 -1
  51. package/dist/LoginPage.js +32 -752
  52. package/dist/LoginPage.js.map +1 -1
  53. package/dist/MenuBar.cjs.js +28 -1501
  54. package/dist/MenuBar.cjs.js.map +1 -1
  55. package/dist/MenuBar.js +28 -1501
  56. package/dist/MenuBar.js.map +1 -1
  57. package/dist/NeetoWidget.cjs.js +170 -6756
  58. package/dist/NeetoWidget.cjs.js.map +1 -1
  59. package/dist/NeetoWidget.js +171 -6757
  60. package/dist/NeetoWidget.js.map +1 -1
  61. package/dist/PageLoader.cjs.js +3 -160
  62. package/dist/PageLoader.cjs.js.map +1 -1
  63. package/dist/PageLoader.js +3 -160
  64. package/dist/PageLoader.js.map +1 -1
  65. package/dist/PhoneNumber.cjs.js +64 -2291
  66. package/dist/PhoneNumber.cjs.js.map +1 -1
  67. package/dist/PhoneNumber.js +64 -2291
  68. package/dist/PhoneNumber.js.map +1 -1
  69. package/dist/PublishBlock.cjs.js +19 -512
  70. package/dist/PublishBlock.cjs.js.map +1 -1
  71. package/dist/PublishBlock.js +19 -512
  72. package/dist/PublishBlock.js.map +1 -1
  73. package/dist/Rename.cjs.js +46 -1090
  74. package/dist/Rename.cjs.js.map +1 -1
  75. package/dist/Rename.js +48 -1092
  76. package/dist/Rename.js.map +1 -1
  77. package/dist/ResponsiveDevicePicker.cjs.js +9 -296
  78. package/dist/ResponsiveDevicePicker.cjs.js.map +1 -1
  79. package/dist/ResponsiveDevicePicker.js +9 -296
  80. package/dist/ResponsiveDevicePicker.js.map +1 -1
  81. package/dist/Schedule.cjs.js +356 -7305
  82. package/dist/Schedule.cjs.js.map +1 -1
  83. package/dist/Schedule.js +356 -7305
  84. package/dist/Schedule.js.map +1 -1
  85. package/dist/Scrollable.cjs.js +4 -183
  86. package/dist/Scrollable.cjs.js.map +1 -1
  87. package/dist/Scrollable.js +4 -183
  88. package/dist/Scrollable.js.map +1 -1
  89. package/dist/ShareViaEmail.cjs.js +68 -2481
  90. package/dist/ShareViaEmail.cjs.js.map +1 -1
  91. package/dist/ShareViaEmail.js +68 -2481
  92. package/dist/ShareViaEmail.js.map +1 -1
  93. package/dist/ShareViaLink.cjs.js +57 -1640
  94. package/dist/ShareViaLink.cjs.js.map +1 -1
  95. package/dist/ShareViaLink.js +57 -1640
  96. package/dist/ShareViaLink.js.map +1 -1
  97. package/dist/Sidebar.cjs.js +99 -4367
  98. package/dist/Sidebar.cjs.js.map +1 -1
  99. package/dist/Sidebar.js +99 -4367
  100. package/dist/Sidebar.js.map +1 -1
  101. package/dist/SubHeader.cjs.js +17 -781
  102. package/dist/SubHeader.cjs.js.map +1 -1
  103. package/dist/SubHeader.js +17 -781
  104. package/dist/SubHeader.js.map +1 -1
  105. package/dist/TableWrapper.cjs.js +2 -150
  106. package/dist/TableWrapper.cjs.js.map +1 -1
  107. package/dist/TableWrapper.js +2 -150
  108. package/dist/TableWrapper.js.map +1 -1
  109. package/dist/TimeFormat.cjs.js +1 -44
  110. package/dist/TimeFormat.cjs.js.map +1 -1
  111. package/dist/TimeFormat.js +1 -44
  112. package/dist/TimeFormat.js.map +1 -1
  113. package/dist/TimezoneMismatchModal.cjs.js +18 -905
  114. package/dist/TimezoneMismatchModal.cjs.js.map +1 -1
  115. package/dist/TimezoneMismatchModal.js +18 -905
  116. package/dist/TimezoneMismatchModal.js.map +1 -1
  117. package/package.json +3 -2
@@ -31558,93 +31558,9 @@ function _objectWithoutProperties(source, excluded) {
31558
31558
  }
31559
31559
 
31560
31560
  var _excluded$3 = ["children"];
31561
- function cov_1xx0yifdwy() {
31562
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/Backdrop.jsx";
31563
- var hash = "4e2f0eb6d3c1050b9ed28bf10ddf842b0c36c14c";
31564
- var global = new Function("return this")();
31565
- var gcv = "__coverage__";
31566
- var coverageData = {
31567
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/Backdrop.jsx",
31568
- statementMap: {
31569
- "0": {
31570
- start: {
31571
- line: 3,
31572
- column: 17
31573
- },
31574
- end: {
31575
- line: 7,
31576
- column: 1
31577
- }
31578
- },
31579
- "1": {
31580
- start: {
31581
- line: 4,
31582
- column: 2
31583
- },
31584
- end: {
31585
- line: 6,
31586
- column: 8
31587
- }
31588
- }
31589
- },
31590
- fnMap: {
31591
- "0": {
31592
- name: "(anonymous_0)",
31593
- decl: {
31594
- start: {
31595
- line: 3,
31596
- column: 17
31597
- },
31598
- end: {
31599
- line: 3,
31600
- column: 18
31601
- }
31602
- },
31603
- loc: {
31604
- start: {
31605
- line: 4,
31606
- column: 2
31607
- },
31608
- end: {
31609
- line: 6,
31610
- column: 8
31611
- }
31612
- },
31613
- line: 4
31614
- }
31615
- },
31616
- branchMap: {},
31617
- s: {
31618
- "0": 0,
31619
- "1": 0
31620
- },
31621
- f: {
31622
- "0": 0
31623
- },
31624
- b: {},
31625
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
31626
- hash: "4e2f0eb6d3c1050b9ed28bf10ddf842b0c36c14c"
31627
- };
31628
- var coverage = global[gcv] || (global[gcv] = {});
31629
- if (!coverage[path] || coverage[path].hash !== hash) {
31630
- coverage[path] = coverageData;
31631
- }
31632
- var actualCoverage = coverage[path];
31633
- {
31634
- // @ts-ignore
31635
- cov_1xx0yifdwy = function () {
31636
- return actualCoverage;
31637
- };
31638
- }
31639
- return actualCoverage;
31640
- }
31641
- cov_1xx0yifdwy();
31642
- cov_1xx0yifdwy().s[0]++;
31643
31561
  var Backdrop = function Backdrop(_ref, ref) {
31644
31562
  var children = _ref.children,
31645
31563
  otherProps = _objectWithoutProperties(_ref, _excluded$3);
31646
- cov_1xx0yifdwy().f[0]++;
31647
- cov_1xx0yifdwy().s[1]++;
31648
31564
  return /*#__PURE__*/React__default["default"].createElement("div", _extends({
31649
31565
  "data-testid": "neeto-backdrop",
31650
31566
  ref: ref
@@ -31652,154 +31568,12 @@ var Backdrop = function Backdrop(_ref, ref) {
31652
31568
  };
31653
31569
  var Backdrop$1 = /*#__PURE__*/React.forwardRef(Backdrop);
31654
31570
 
31655
- function cov_1tkreblzme() {
31656
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/AppLink.jsx";
31657
- var hash = "8b56f4f543b936ae419c11d1ca8ef6d6a905b452";
31658
- var global = new Function("return this")();
31659
- var gcv = "__coverage__";
31660
- var coverageData = {
31661
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/AppLink.jsx",
31662
- statementMap: {
31663
- "0": {
31664
- start: {
31665
- line: 11,
31666
- column: 16
31667
- },
31668
- end: {
31669
- line: 54,
31670
- column: 1
31671
- }
31672
- },
31673
- "1": {
31674
- start: {
31675
- line: 12,
31676
- column: 18
31677
- },
31678
- end: {
31679
- line: 12,
31680
- column: 72
31681
- }
31682
- },
31683
- "2": {
31684
- start: {
31685
- line: 13,
31686
- column: 18
31687
- },
31688
- end: {
31689
- line: 13,
31690
- column: 35
31691
- }
31692
- },
31693
- "3": {
31694
- start: {
31695
- line: 15,
31696
- column: 2
31697
- },
31698
- end: {
31699
- line: 53,
31700
- column: 4
31701
- }
31702
- }
31703
- },
31704
- fnMap: {
31705
- "0": {
31706
- name: "(anonymous_0)",
31707
- decl: {
31708
- start: {
31709
- line: 11,
31710
- column: 16
31711
- },
31712
- end: {
31713
- line: 11,
31714
- column: 17
31715
- }
31716
- },
31717
- loc: {
31718
- start: {
31719
- line: 11,
31720
- column: 48
31721
- },
31722
- end: {
31723
- line: 54,
31724
- column: 1
31725
- }
31726
- },
31727
- line: 11
31728
- }
31729
- },
31730
- branchMap: {
31731
- "0": {
31732
- loc: {
31733
- start: {
31734
- line: 33,
31735
- column: 9
31736
- },
31737
- end: {
31738
- line: 37,
31739
- column: 9
31740
- }
31741
- },
31742
- type: "cond-expr",
31743
- locations: [{
31744
- start: {
31745
- line: 34,
31746
- column: 10
31747
- },
31748
- end: {
31749
- line: 34,
31750
- column: 31
31751
- }
31752
- }, {
31753
- start: {
31754
- line: 36,
31755
- column: 10
31756
- },
31757
- end: {
31758
- line: 36,
31759
- column: 47
31760
- }
31761
- }],
31762
- line: 33
31763
- }
31764
- },
31765
- s: {
31766
- "0": 0,
31767
- "1": 0,
31768
- "2": 0,
31769
- "3": 0
31770
- },
31771
- f: {
31772
- "0": 0
31773
- },
31774
- b: {
31775
- "0": [0, 0]
31776
- },
31777
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
31778
- hash: "8b56f4f543b936ae419c11d1ca8ef6d6a905b452"
31779
- };
31780
- var coverage = global[gcv] || (global[gcv] = {});
31781
- if (!coverage[path] || coverage[path].hash !== hash) {
31782
- coverage[path] = coverageData;
31783
- }
31784
- var actualCoverage = coverage[path];
31785
- {
31786
- // @ts-ignore
31787
- cov_1tkreblzme = function () {
31788
- return actualCoverage;
31789
- };
31790
- }
31791
- return actualCoverage;
31792
- }
31793
- cov_1tkreblzme();
31794
- cov_1tkreblzme().s[0]++;
31795
31571
  var AppLink = function AppLink(_ref) {
31796
31572
  var name = _ref.name,
31797
31573
  description = _ref.description,
31798
31574
  url = _ref.url;
31799
- cov_1tkreblzme().f[0]++;
31800
- var appName = (cov_1tkreblzme().s[1]++, "Neeto".concat(name.charAt(0)).concat(name.slice(1).toLowerCase()));
31801
- var AppIcon = (cov_1tkreblzme().s[2]++, AppIcons__namespace[appName]);
31802
- cov_1tkreblzme().s[3]++;
31575
+ var appName = "Neeto".concat(name.charAt(0)).concat(name.slice(1).toLowerCase());
31576
+ var AppIcon = AppIcons__namespace[appName];
31803
31577
  return /*#__PURE__*/React__default["default"].createElement("a", {
31804
31578
  "data-cy": "".concat(name, "-app-link"),
31805
31579
  "data-test-id": "neetoapp-link-".concat(name),
@@ -31813,12 +31587,12 @@ var AppLink = function AppLink(_ref) {
31813
31587
  className: classnames("neeto-molecules-app-switcher-link__icon-holder", {
31814
31588
  "neeto-ui-bg-primary-500": !AppIcon
31815
31589
  })
31816
- }, AppIcon ? (cov_1tkreblzme().b[0][0]++, /*#__PURE__*/React__default["default"].createElement(AppIcon, {
31590
+ }, AppIcon ? /*#__PURE__*/React__default["default"].createElement(AppIcon, {
31817
31591
  size: 42
31818
- })) : (cov_1tkreblzme().b[0][1]++, /*#__PURE__*/React__default["default"].createElement(neetoIcons.NeetoIcon, {
31592
+ }) : /*#__PURE__*/React__default["default"].createElement(neetoIcons.NeetoIcon, {
31819
31593
  color: "white",
31820
31594
  size: 42
31821
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
31595
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
31822
31596
  className: "neeto-molecules-app-switcher-link__content"
31823
31597
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31824
31598
  component: "span",
@@ -31832,299 +31606,22 @@ var AppLink = function AppLink(_ref) {
31832
31606
  }, description)));
31833
31607
  };
31834
31608
 
31835
- function cov_27z8cils1c() {
31836
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/Body.jsx";
31837
- var hash = "fe3ae13ab4ac97133f4164d3b43f927ef80f01b7";
31838
- var global = new Function("return this")();
31839
- var gcv = "__coverage__";
31840
- var coverageData = {
31841
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/Body.jsx",
31842
- statementMap: {
31843
- "0": {
31844
- start: {
31845
- line: 10,
31846
- column: 13
31847
- },
31848
- end: {
31849
- line: 65,
31850
- column: 1
31851
- }
31852
- },
31853
- "1": {
31854
- start: {
31855
- line: 11,
31856
- column: 16
31857
- },
31858
- end: {
31859
- line: 11,
31860
- column: 32
31861
- }
31862
- },
31863
- "2": {
31864
- start: {
31865
- line: 12,
31866
- column: 38
31867
- },
31868
- end: {
31869
- line: 12,
31870
- column: 50
31871
- }
31872
- },
31873
- "3": {
31874
- start: {
31875
- line: 14,
31876
- column: 23
31877
- },
31878
- end: {
31879
- line: 16,
31880
- column: 3
31881
- }
31882
- },
31883
- "4": {
31884
- start: {
31885
- line: 15,
31886
- column: 4
31887
- },
31888
- end: {
31889
- line: 15,
31890
- column: 76
31891
- }
31892
- },
31893
- "5": {
31894
- start: {
31895
- line: 18,
31896
- column: 23
31897
- },
31898
- end: {
31899
- line: 18,
31900
- column: 57
31901
- }
31902
- },
31903
- "6": {
31904
- start: {
31905
- line: 18,
31906
- column: 28
31907
- },
31908
- end: {
31909
- line: 18,
31910
- column: 57
31911
- }
31912
- },
31913
- "7": {
31914
- start: {
31915
- line: 20,
31916
- column: 2
31917
- },
31918
- end: {
31919
- line: 64,
31920
- column: 4
31921
- }
31922
- },
31923
- "8": {
31924
- start: {
31925
- line: 54,
31926
- column: 14
31927
- },
31928
- end: {
31929
- line: 54,
31930
- column: 49
31931
- }
31932
- }
31933
- },
31934
- fnMap: {
31935
- "0": {
31936
- name: "(anonymous_0)",
31937
- decl: {
31938
- start: {
31939
- line: 10,
31940
- column: 13
31941
- },
31942
- end: {
31943
- line: 10,
31944
- column: 14
31945
- }
31946
- },
31947
- loc: {
31948
- start: {
31949
- line: 10,
31950
- column: 30
31951
- },
31952
- end: {
31953
- line: 65,
31954
- column: 1
31955
- }
31956
- },
31957
- line: 10
31958
- },
31959
- "1": {
31960
- name: "(anonymous_1)",
31961
- decl: {
31962
- start: {
31963
- line: 14,
31964
- column: 53
31965
- },
31966
- end: {
31967
- line: 14,
31968
- column: 54
31969
- }
31970
- },
31971
- loc: {
31972
- start: {
31973
- line: 15,
31974
- column: 4
31975
- },
31976
- end: {
31977
- line: 15,
31978
- column: 76
31979
- }
31980
- },
31981
- line: 15
31982
- },
31983
- "2": {
31984
- name: "(anonymous_2)",
31985
- decl: {
31986
- start: {
31987
- line: 18,
31988
- column: 23
31989
- },
31990
- end: {
31991
- line: 18,
31992
- column: 24
31993
- }
31994
- },
31995
- loc: {
31996
- start: {
31997
- line: 18,
31998
- column: 28
31999
- },
32000
- end: {
32001
- line: 18,
32002
- column: 57
32003
- }
32004
- },
32005
- line: 18
32006
- },
32007
- "3": {
32008
- name: "(anonymous_3)",
32009
- decl: {
32010
- start: {
32011
- line: 53,
32012
- column: 30
32013
- },
32014
- end: {
32015
- line: 53,
32016
- column: 31
32017
- }
32018
- },
32019
- loc: {
32020
- start: {
32021
- line: 54,
32022
- column: 14
32023
- },
32024
- end: {
32025
- line: 54,
32026
- column: 49
32027
- }
32028
- },
32029
- line: 54
32030
- }
32031
- },
32032
- branchMap: {
32033
- "0": {
32034
- loc: {
32035
- start: {
32036
- line: 51,
32037
- column: 9
32038
- },
32039
- end: {
32040
- line: 61,
32041
- column: 9
32042
- }
32043
- },
32044
- type: "cond-expr",
32045
- locations: [{
32046
- start: {
32047
- line: 52,
32048
- column: 10
32049
- },
32050
- end: {
32051
- line: 56,
32052
- column: 16
32053
- }
32054
- }, {
32055
- start: {
32056
- line: 58,
32057
- column: 10
32058
- },
32059
- end: {
32060
- line: 60,
32061
- column: 23
32062
- }
32063
- }],
32064
- line: 51
32065
- }
32066
- },
32067
- s: {
32068
- "0": 0,
32069
- "1": 0,
32070
- "2": 0,
32071
- "3": 0,
32072
- "4": 0,
32073
- "5": 0,
32074
- "6": 0,
32075
- "7": 0,
32076
- "8": 0
32077
- },
32078
- f: {
32079
- "0": 0,
32080
- "1": 0,
32081
- "2": 0,
32082
- "3": 0
32083
- },
32084
- b: {
32085
- "0": [0, 0]
32086
- },
32087
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
32088
- hash: "fe3ae13ab4ac97133f4164d3b43f927ef80f01b7"
32089
- };
32090
- var coverage = global[gcv] || (global[gcv] = {});
32091
- if (!coverage[path] || coverage[path].hash !== hash) {
32092
- coverage[path] = coverageData;
32093
- }
32094
- var actualCoverage = coverage[path];
32095
- {
32096
- // @ts-ignore
32097
- cov_27z8cils1c = function () {
32098
- return actualCoverage;
32099
- };
32100
- }
32101
- return actualCoverage;
32102
- }
32103
- cov_27z8cils1c();
32104
- cov_27z8cils1c().s[0]++;
32105
31609
  var Body = function Body(_ref) {
32106
31610
  var _globalProps$neetoApp;
32107
31611
  var onClose = _ref.onClose;
32108
- cov_27z8cils1c().f[0]++;
32109
- var _ref2 = (cov_27z8cils1c().s[1]++, reactI18next.useTranslation()),
32110
- t = _ref2.t;
32111
- var _ref3 = (cov_27z8cils1c().s[2]++, React.useState("")),
32112
- _ref4 = _slicedToArray(_ref3, 2),
32113
- searchTerm = _ref4[0],
32114
- setSearchTerm = _ref4[1];
32115
- var filteredApps = (cov_27z8cils1c().s[3]++, (_globalProps$neetoApp = globalProps.neetoApps) === null || _globalProps$neetoApp === void 0 ? void 0 : _globalProps$neetoApp.filter(function (_ref5) {
32116
- var name = _ref5.name;
32117
- cov_27z8cils1c().f[1]++;
32118
- cov_27z8cils1c().s[4]++;
31612
+ var _useTranslation = reactI18next.useTranslation(),
31613
+ t = _useTranslation.t;
31614
+ var _useState = React.useState(""),
31615
+ _useState2 = _slicedToArray(_useState, 2),
31616
+ searchTerm = _useState2[0],
31617
+ setSearchTerm = _useState2[1];
31618
+ var filteredApps = (_globalProps$neetoApp = globalProps.neetoApps) === null || _globalProps$neetoApp === void 0 ? void 0 : _globalProps$neetoApp.filter(function (_ref2) {
31619
+ var name = _ref2.name;
32119
31620
  return name === null || name === void 0 ? void 0 : name.toLowerCase().includes(searchTerm.replace(/ /g, "").toLowerCase());
32120
- }));
32121
- cov_27z8cils1c().s[5]++;
31621
+ });
32122
31622
  var handleSearch = function handleSearch(e) {
32123
- cov_27z8cils1c().f[2]++;
32124
- cov_27z8cils1c().s[6]++;
32125
31623
  return setSearchTerm(e.target.value);
32126
31624
  };
32127
- cov_27z8cils1c().s[7]++;
32128
31625
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
32129
31626
  className: "neeto-molecules-app-switcher__close-btn",
32130
31627
  "data-cy": "app-switcher-back-button",
@@ -32150,1087 +31647,75 @@ var Body = function Body(_ref) {
32150
31647
  onChange: handleSearch
32151
31648
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
32152
31649
  className: "neeto-molecules-app-switcher__body"
32153
- }, (filteredApps === null || filteredApps === void 0 ? void 0 : filteredApps.length) > 0 ? (cov_27z8cils1c().b[0][0]++, /*#__PURE__*/React__default["default"].createElement("div", {
31650
+ }, (filteredApps === null || filteredApps === void 0 ? void 0 : filteredApps.length) > 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
32154
31651
  className: "neeto-molecules-app-switcher__grid"
32155
31652
  }, filteredApps.map(function (app) {
32156
- cov_27z8cils1c().f[3]++;
32157
- cov_27z8cils1c().s[8]++;
32158
31653
  return /*#__PURE__*/React__default["default"].createElement(AppLink, _extends({
32159
31654
  key: app.name
32160
31655
  }, app));
32161
- }))) : (cov_27z8cils1c().b[0][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31656
+ })) : /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32162
31657
  className: "neeto-ui-text-center",
32163
31658
  style: "body1"
32164
- }, t("neetoMolecules.appSwitcher.noApps")))));
31659
+ }, t("neetoMolecules.appSwitcher.noApps"))));
32165
31660
  };
32166
31661
 
32167
- function cov_35z1n6fmv() {
32168
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/Portal.js";
32169
- var hash = "f10fb766667ac687c3ecb60cc21511a69af63b57";
32170
- var global = new Function("return this")();
32171
- var gcv = "__coverage__";
32172
- var coverageData = {
32173
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/Portal.js",
32174
- statementMap: {
32175
- "0": {
32176
- start: {
32177
- line: 5,
32178
- column: 15
32179
- },
32180
- end: {
32181
- line: 31,
32182
- column: 1
32183
- }
32184
- },
32185
- "1": {
32186
- start: {
32187
- line: 6,
32188
- column: 17
32189
- },
32190
- end: {
32191
- line: 6,
32192
- column: 29
32193
- }
32194
- },
32195
- "2": {
32196
- start: {
32197
- line: 8,
32198
- column: 2
32199
- },
32200
- end: {
32201
- line: 24,
32202
- column: 15
32203
- }
32204
- },
32205
- "3": {
32206
- start: {
32207
- line: 9,
32208
- column: 20
32209
- },
32210
- end: {
32211
- line: 9,
32212
- column: 51
32213
- }
32214
- },
32215
- "4": {
32216
- start: {
32217
- line: 10,
32218
- column: 4
32219
- },
32220
- end: {
32221
- line: 14,
32222
- column: 5
32223
- }
32224
- },
32225
- "5": {
32226
- start: {
32227
- line: 11,
32228
- column: 6
32229
- },
32230
- end: {
32231
- line: 11,
32232
- column: 48
32233
- }
32234
- },
32235
- "6": {
32236
- start: {
32237
- line: 12,
32238
- column: 6
32239
- },
32240
- end: {
32241
- line: 12,
32242
- column: 43
32243
- }
32244
- },
32245
- "7": {
32246
- start: {
32247
- line: 13,
32248
- column: 6
32249
- },
32250
- end: {
32251
- line: 13,
32252
- column: 43
32253
- }
32254
- },
32255
- "8": {
32256
- start: {
32257
- line: 16,
32258
- column: 4
32259
- },
32260
- end: {
32261
- line: 16,
32262
- column: 42
32263
- }
32264
- },
32265
- "9": {
32266
- start: {
32267
- line: 18,
32268
- column: 4
32269
- },
32270
- end: {
32271
- line: 23,
32272
- column: 6
32273
- }
32274
- },
32275
- "10": {
32276
- start: {
32277
- line: 19,
32278
- column: 6
32279
- },
32280
- end: {
32281
- line: 19,
32282
- column: 30
32283
- }
32284
- },
32285
- "11": {
32286
- start: {
32287
- line: 20,
32288
- column: 6
32289
- },
32290
- end: {
32291
- line: 22,
32292
- column: 7
32293
- }
32294
- },
32295
- "12": {
32296
- start: {
32297
- line: 21,
32298
- column: 8
32299
- },
32300
- end: {
32301
- line: 21,
32302
- column: 27
32303
- }
32304
- },
32305
- "13": {
32306
- start: {
32307
- line: 26,
32308
- column: 2
32309
- },
32310
- end: {
32311
- line: 28,
32312
- column: 3
32313
- }
32314
- },
32315
- "14": {
32316
- start: {
32317
- line: 27,
32318
- column: 4
32319
- },
32320
- end: {
32321
- line: 27,
32322
- column: 51
32323
- }
32324
- },
32325
- "15": {
32326
- start: {
32327
- line: 30,
32328
- column: 2
32329
- },
32330
- end: {
32331
- line: 30,
32332
- column: 48
32333
- }
32334
- }
32335
- },
32336
- fnMap: {
32337
- "0": {
32338
- name: "(anonymous_0)",
32339
- decl: {
32340
- start: {
32341
- line: 5,
32342
- column: 15
32343
- },
32344
- end: {
32345
- line: 5,
32346
- column: 16
32347
- }
32348
- },
32349
- loc: {
32350
- start: {
32351
- line: 5,
32352
- column: 41
32353
- },
32354
- end: {
32355
- line: 31,
32356
- column: 1
32357
- }
32358
- },
32359
- line: 5
32360
- },
32361
- "1": {
32362
- name: "(anonymous_1)",
32363
- decl: {
32364
- start: {
32365
- line: 8,
32366
- column: 12
32367
- },
32368
- end: {
32369
- line: 8,
32370
- column: 13
32371
- }
32372
- },
32373
- loc: {
32374
- start: {
32375
- line: 8,
32376
- column: 18
32377
- },
32378
- end: {
32379
- line: 24,
32380
- column: 3
32381
- }
32382
- },
32383
- line: 8
32384
- },
32385
- "2": {
32386
- name: "(anonymous_2)",
32387
- decl: {
32388
- start: {
32389
- line: 18,
32390
- column: 11
32391
- },
32392
- end: {
32393
- line: 18,
32394
- column: 12
32395
- }
32396
- },
32397
- loc: {
32398
- start: {
32399
- line: 18,
32400
- column: 17
32401
- },
32402
- end: {
32403
- line: 23,
32404
- column: 5
32405
- }
32406
- },
32407
- line: 18
32408
- }
32409
- },
32410
- branchMap: {
32411
- "0": {
32412
- loc: {
32413
- start: {
32414
- line: 10,
32415
- column: 4
32416
- },
32417
- end: {
32418
- line: 14,
32419
- column: 5
32420
- }
32421
- },
32422
- type: "if",
32423
- locations: [{
32424
- start: {
32425
- line: 10,
32426
- column: 4
32427
- },
32428
- end: {
32429
- line: 14,
32430
- column: 5
32431
- }
32432
- }, {
32433
- start: {
32434
- line: undefined,
32435
- column: undefined
32436
- },
32437
- end: {
32438
- line: undefined,
32439
- column: undefined
32440
- }
32441
- }],
32442
- line: 10
32443
- },
32444
- "1": {
32445
- loc: {
32446
- start: {
32447
- line: 20,
32448
- column: 6
32449
- },
32450
- end: {
32451
- line: 22,
32452
- column: 7
32453
- }
32454
- },
32455
- type: "if",
32456
- locations: [{
32457
- start: {
32458
- line: 20,
32459
- column: 6
32460
- },
32461
- end: {
32462
- line: 22,
32463
- column: 7
32464
- }
32465
- }, {
32466
- start: {
32467
- line: undefined,
32468
- column: undefined
32469
- },
32470
- end: {
32471
- line: undefined,
32472
- column: undefined
32473
- }
32474
- }],
32475
- line: 20
32476
- },
32477
- "2": {
32478
- loc: {
32479
- start: {
32480
- line: 26,
32481
- column: 2
32482
- },
32483
- end: {
32484
- line: 28,
32485
- column: 3
32486
- }
32487
- },
32488
- type: "if",
32489
- locations: [{
32490
- start: {
32491
- line: 26,
32492
- column: 2
32493
- },
32494
- end: {
32495
- line: 28,
32496
- column: 3
32497
- }
32498
- }, {
32499
- start: {
32500
- line: undefined,
32501
- column: undefined
32502
- },
32503
- end: {
32504
- line: undefined,
32505
- column: undefined
32506
- }
32507
- }],
32508
- line: 26
32509
- }
32510
- },
32511
- s: {
32512
- "0": 0,
32513
- "1": 0,
32514
- "2": 0,
32515
- "3": 0,
32516
- "4": 0,
32517
- "5": 0,
32518
- "6": 0,
32519
- "7": 0,
32520
- "8": 0,
32521
- "9": 0,
32522
- "10": 0,
32523
- "11": 0,
32524
- "12": 0,
32525
- "13": 0,
32526
- "14": 0,
32527
- "15": 0
32528
- },
32529
- f: {
32530
- "0": 0,
32531
- "1": 0,
32532
- "2": 0
32533
- },
32534
- b: {
32535
- "0": [0, 0],
32536
- "1": [0, 0],
32537
- "2": [0, 0]
32538
- },
32539
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
32540
- hash: "f10fb766667ac687c3ecb60cc21511a69af63b57"
32541
- };
32542
- var coverage = global[gcv] || (global[gcv] = {});
32543
- if (!coverage[path] || coverage[path].hash !== hash) {
32544
- coverage[path] = coverageData;
32545
- }
32546
- var actualCoverage = coverage[path];
32547
- {
32548
- // @ts-ignore
32549
- cov_35z1n6fmv = function () {
32550
- return actualCoverage;
32551
- };
32552
- }
32553
- return actualCoverage;
32554
- }
32555
- cov_35z1n6fmv();
32556
- cov_35z1n6fmv().s[0]++;
32557
31662
  var Portal = function Portal(_ref) {
32558
31663
  var rootId = _ref.rootId,
32559
31664
  children = _ref.children;
32560
- cov_35z1n6fmv().f[0]++;
32561
- var target = (cov_35z1n6fmv().s[1]++, React.useRef(null));
32562
- cov_35z1n6fmv().s[2]++;
31665
+ var target = React.useRef(null);
32563
31666
  React.useEffect(function () {
32564
- cov_35z1n6fmv().f[1]++;
32565
- var container = (cov_35z1n6fmv().s[3]++, document.getElementById(rootId));
32566
- cov_35z1n6fmv().s[4]++;
31667
+ var container = document.getElementById(rootId);
32567
31668
  if (!container) {
32568
- cov_35z1n6fmv().b[0][0]++;
32569
- cov_35z1n6fmv().s[5]++;
32570
31669
  container = document.createElement("div");
32571
- cov_35z1n6fmv().s[6]++;
32572
31670
  container.setAttribute("id", rootId);
32573
- cov_35z1n6fmv().s[7]++;
32574
31671
  document.body.appendChild(container);
32575
- } else {
32576
- cov_35z1n6fmv().b[0][1]++;
32577
31672
  }
32578
- cov_35z1n6fmv().s[8]++;
32579
31673
  container.appendChild(target.current);
32580
- cov_35z1n6fmv().s[9]++;
32581
31674
  return function () {
32582
- cov_35z1n6fmv().f[2]++;
32583
- cov_35z1n6fmv().s[10]++;
32584
31675
  target.current.remove();
32585
- cov_35z1n6fmv().s[11]++;
32586
31676
  if (container.childNodes.length === 0) {
32587
- cov_35z1n6fmv().b[1][0]++;
32588
- cov_35z1n6fmv().s[12]++;
32589
31677
  container.remove();
32590
- } else {
32591
- cov_35z1n6fmv().b[1][1]++;
32592
31678
  }
32593
31679
  };
32594
31680
  }, [rootId]);
32595
- cov_35z1n6fmv().s[13]++;
32596
31681
  if (!target.current) {
32597
- cov_35z1n6fmv().b[2][0]++;
32598
- cov_35z1n6fmv().s[14]++;
32599
31682
  target.current = document.createElement("div");
32600
- } else {
32601
- cov_35z1n6fmv().b[2][1]++;
32602
31683
  }
32603
- cov_35z1n6fmv().s[15]++;
32604
31684
  return /*#__PURE__*/reactDom.exports.createPortal(children, target.current);
32605
31685
  };
32606
31686
 
32607
- function cov_1r2ywuxngm() {
32608
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/utils.js";
32609
- var hash = "288fa234e84e26ed8fa5ff782656864c5f046c27";
32610
- var global = new Function("return this")();
32611
- var gcv = "__coverage__";
32612
- var coverageData = {
32613
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/utils.js",
32614
- statementMap: {
32615
- "0": {
32616
- start: {
32617
- line: 3,
32618
- column: 33
32619
- },
32620
- end: {
32621
- line: 29,
32622
- column: 1
32623
- }
32624
- },
32625
- "1": {
32626
- start: {
32627
- line: 4,
32628
- column: 2
32629
- },
32630
- end: {
32631
- line: 28,
32632
- column: 39
32633
- }
32634
- },
32635
- "2": {
32636
- start: {
32637
- line: 5,
32638
- column: 21
32639
- },
32640
- end: {
32641
- line: 20,
32642
- column: 5
32643
- }
32644
- },
32645
- "3": {
32646
- start: {
32647
- line: 7,
32648
- column: 6
32649
- },
32650
- end: {
32651
- line: 9,
32652
- column: 7
32653
- }
32654
- },
32655
- "4": {
32656
- start: {
32657
- line: 8,
32658
- column: 8
32659
- },
32660
- end: {
32661
- line: 8,
32662
- column: 15
32663
- }
32664
- },
32665
- "5": {
32666
- start: {
32667
- line: 11,
32668
- column: 6
32669
- },
32670
- end: {
32671
- line: 18,
32672
- column: 7
32673
- }
32674
- },
32675
- "6": {
32676
- start: {
32677
- line: 13,
32678
- column: 8
32679
- },
32680
- end: {
32681
- line: 15,
32682
- column: 9
32683
- }
32684
- },
32685
- "7": {
32686
- start: {
32687
- line: 14,
32688
- column: 10
32689
- },
32690
- end: {
32691
- line: 14,
32692
- column: 25
32693
- }
32694
- },
32695
- "8": {
32696
- start: {
32697
- line: 17,
32698
- column: 8
32699
- },
32700
- end: {
32701
- line: 17,
32702
- column: 15
32703
- }
32704
- },
32705
- "9": {
32706
- start: {
32707
- line: 19,
32708
- column: 6
32709
- },
32710
- end: {
32711
- line: 19,
32712
- column: 21
32713
- }
32714
- },
32715
- "10": {
32716
- start: {
32717
- line: 21,
32718
- column: 4
32719
- },
32720
- end: {
32721
- line: 21,
32722
- column: 53
32723
- }
32724
- },
32725
- "11": {
32726
- start: {
32727
- line: 22,
32728
- column: 4
32729
- },
32730
- end: {
32731
- line: 22,
32732
- column: 54
32733
- }
32734
- },
32735
- "12": {
32736
- start: {
32737
- line: 24,
32738
- column: 4
32739
- },
32740
- end: {
32741
- line: 27,
32742
- column: 6
32743
- }
32744
- },
32745
- "13": {
32746
- start: {
32747
- line: 25,
32748
- column: 6
32749
- },
32750
- end: {
32751
- line: 25,
32752
- column: 58
32753
- }
32754
- },
32755
- "14": {
32756
- start: {
32757
- line: 26,
32758
- column: 6
32759
- },
32760
- end: {
32761
- line: 26,
32762
- column: 59
32763
- }
32764
- }
32765
- },
32766
- fnMap: {
32767
- "0": {
32768
- name: "(anonymous_0)",
32769
- decl: {
32770
- start: {
32771
- line: 3,
32772
- column: 33
32773
- },
32774
- end: {
32775
- line: 3,
32776
- column: 34
32777
- }
32778
- },
32779
- loc: {
32780
- start: {
32781
- line: 3,
32782
- column: 69
32783
- },
32784
- end: {
32785
- line: 29,
32786
- column: 1
32787
- }
32788
- },
32789
- line: 3
32790
- },
32791
- "1": {
32792
- name: "(anonymous_1)",
32793
- decl: {
32794
- start: {
32795
- line: 4,
32796
- column: 12
32797
- },
32798
- end: {
32799
- line: 4,
32800
- column: 13
32801
- }
32802
- },
32803
- loc: {
32804
- start: {
32805
- line: 4,
32806
- column: 18
32807
- },
32808
- end: {
32809
- line: 28,
32810
- column: 3
32811
- }
32812
- },
32813
- line: 4
32814
- },
32815
- "2": {
32816
- name: "(anonymous_2)",
32817
- decl: {
32818
- start: {
32819
- line: 5,
32820
- column: 21
32821
- },
32822
- end: {
32823
- line: 5,
32824
- column: 22
32825
- }
32826
- },
32827
- loc: {
32828
- start: {
32829
- line: 5,
32830
- column: 30
32831
- },
32832
- end: {
32833
- line: 20,
32834
- column: 5
32835
- }
32836
- },
32837
- line: 5
32838
- },
32839
- "3": {
32840
- name: "(anonymous_3)",
32841
- decl: {
32842
- start: {
32843
- line: 24,
32844
- column: 11
32845
- },
32846
- end: {
32847
- line: 24,
32848
- column: 12
32849
- }
32850
- },
32851
- loc: {
32852
- start: {
32853
- line: 24,
32854
- column: 17
32855
- },
32856
- end: {
32857
- line: 27,
32858
- column: 5
32859
- }
32860
- },
32861
- line: 24
32862
- }
32863
- },
32864
- branchMap: {
32865
- "0": {
32866
- loc: {
32867
- start: {
32868
- line: 7,
32869
- column: 6
32870
- },
32871
- end: {
32872
- line: 9,
32873
- column: 7
32874
- }
32875
- },
32876
- type: "if",
32877
- locations: [{
32878
- start: {
32879
- line: 7,
32880
- column: 6
32881
- },
32882
- end: {
32883
- line: 9,
32884
- column: 7
32885
- }
32886
- }, {
32887
- start: {
32888
- line: undefined,
32889
- column: undefined
32890
- },
32891
- end: {
32892
- line: undefined,
32893
- column: undefined
32894
- }
32895
- }],
32896
- line: 7
32897
- },
32898
- "1": {
32899
- loc: {
32900
- start: {
32901
- line: 7,
32902
- column: 10
32903
- },
32904
- end: {
32905
- line: 7,
32906
- column: 72
32907
- }
32908
- },
32909
- type: "binary-expr",
32910
- locations: [{
32911
- start: {
32912
- line: 7,
32913
- column: 10
32914
- },
32915
- end: {
32916
- line: 7,
32917
- column: 28
32918
- }
32919
- }, {
32920
- start: {
32921
- line: 7,
32922
- column: 32
32923
- },
32924
- end: {
32925
- line: 7,
32926
- column: 72
32927
- }
32928
- }],
32929
- line: 7
32930
- },
32931
- "2": {
32932
- loc: {
32933
- start: {
32934
- line: 11,
32935
- column: 6
32936
- },
32937
- end: {
32938
- line: 18,
32939
- column: 7
32940
- }
32941
- },
32942
- type: "if",
32943
- locations: [{
32944
- start: {
32945
- line: 11,
32946
- column: 6
32947
- },
32948
- end: {
32949
- line: 18,
32950
- column: 7
32951
- }
32952
- }, {
32953
- start: {
32954
- line: undefined,
32955
- column: undefined
32956
- },
32957
- end: {
32958
- line: undefined,
32959
- column: undefined
32960
- }
32961
- }],
32962
- line: 11
32963
- },
32964
- "3": {
32965
- loc: {
32966
- start: {
32967
- line: 13,
32968
- column: 8
32969
- },
32970
- end: {
32971
- line: 15,
32972
- column: 9
32973
- }
32974
- },
32975
- type: "if",
32976
- locations: [{
32977
- start: {
32978
- line: 13,
32979
- column: 8
32980
- },
32981
- end: {
32982
- line: 15,
32983
- column: 9
32984
- }
32985
- }, {
32986
- start: {
32987
- line: undefined,
32988
- column: undefined
32989
- },
32990
- end: {
32991
- line: undefined,
32992
- column: undefined
32993
- }
32994
- }],
32995
- line: 13
32996
- }
32997
- },
32998
- s: {
32999
- "0": 0,
33000
- "1": 0,
33001
- "2": 0,
33002
- "3": 0,
33003
- "4": 0,
33004
- "5": 0,
33005
- "6": 0,
33006
- "7": 0,
33007
- "8": 0,
33008
- "9": 0,
33009
- "10": 0,
33010
- "11": 0,
33011
- "12": 0,
33012
- "13": 0,
33013
- "14": 0
33014
- },
33015
- f: {
33016
- "0": 0,
33017
- "1": 0,
33018
- "2": 0,
33019
- "3": 0
33020
- },
33021
- b: {
33022
- "0": [0, 0],
33023
- "1": [0, 0],
33024
- "2": [0, 0],
33025
- "3": [0, 0]
33026
- },
33027
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
33028
- hash: "288fa234e84e26ed8fa5ff782656864c5f046c27"
33029
- };
33030
- var coverage = global[gcv] || (global[gcv] = {});
33031
- if (!coverage[path] || coverage[path].hash !== hash) {
33032
- coverage[path] = coverageData;
33033
- }
33034
- var actualCoverage = coverage[path];
33035
- {
33036
- // @ts-ignore
33037
- cov_1r2ywuxngm = function () {
33038
- return actualCoverage;
33039
- };
33040
- }
33041
- return actualCoverage;
33042
- }
33043
- cov_1r2ywuxngm();
33044
- cov_1r2ywuxngm().s[0]++;
33045
31687
  var useOnClickOutside = function useOnClickOutside(insideRef, outsideRef, handler) {
33046
- cov_1r2ywuxngm().f[0]++;
33047
- cov_1r2ywuxngm().s[1]++;
33048
31688
  React.useEffect(function () {
33049
- cov_1r2ywuxngm().f[1]++;
33050
- cov_1r2ywuxngm().s[2]++;
33051
31689
  var listener = function listener(event) {
33052
- cov_1r2ywuxngm().f[2]++;
33053
- cov_1r2ywuxngm().s[3]++;
33054
31690
  // Do nothing if clicking ref's element or descendent elements
33055
- if ((cov_1r2ywuxngm().b[1][0]++, !insideRef.current) || (cov_1r2ywuxngm().b[1][1]++, insideRef.current.contains(event.target))) {
33056
- cov_1r2ywuxngm().b[0][0]++;
33057
- cov_1r2ywuxngm().s[4]++;
31691
+ if (!insideRef.current || insideRef.current.contains(event.target)) {
33058
31692
  return;
33059
- } else {
33060
- cov_1r2ywuxngm().b[0][1]++;
33061
31693
  }
33062
- cov_1r2ywuxngm().s[5]++;
33063
31694
  if (outsideRef.current) {
33064
- cov_1r2ywuxngm().b[2][0]++;
33065
- cov_1r2ywuxngm().s[6]++;
33066
31695
  // If Outside ref exists, trigger the handler if it contains the event target.
33067
31696
  if (outsideRef.current.contains(event.target)) {
33068
- cov_1r2ywuxngm().b[3][0]++;
33069
- cov_1r2ywuxngm().s[7]++;
33070
31697
  handler(event);
33071
- } else {
33072
- cov_1r2ywuxngm().b[3][1]++;
33073
31698
  }
33074
- cov_1r2ywuxngm().s[8]++;
33075
31699
  return;
33076
- } else {
33077
- cov_1r2ywuxngm().b[2][1]++;
33078
31700
  }
33079
- cov_1r2ywuxngm().s[9]++;
33080
31701
  handler(event);
33081
31702
  };
33082
- cov_1r2ywuxngm().s[10]++;
33083
31703
  document.addEventListener("mousedown", listener);
33084
- cov_1r2ywuxngm().s[11]++;
33085
31704
  document.addEventListener("touchstart", listener);
33086
- cov_1r2ywuxngm().s[12]++;
33087
31705
  return function () {
33088
- cov_1r2ywuxngm().f[3]++;
33089
- cov_1r2ywuxngm().s[13]++;
33090
31706
  document.removeEventListener("mousedown", listener);
33091
- cov_1r2ywuxngm().s[14]++;
33092
31707
  document.removeEventListener("touchstart", listener);
33093
31708
  };
33094
31709
  }, [insideRef, outsideRef, handler]);
33095
31710
  };
33096
31711
 
33097
- function cov_2lck7amjw7() {
33098
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/index.jsx";
33099
- var hash = "f48177db9e544dcc6e11b963cf49f5c34e8e9e6d";
33100
- var global = new Function("return this")();
33101
- var gcv = "__coverage__";
33102
- var coverageData = {
33103
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/index.jsx",
33104
- statementMap: {
33105
- "0": {
33106
- start: {
33107
- line: 12,
33108
- column: 20
33109
- },
33110
- end: {
33111
- line: 46,
33112
- column: 1
33113
- }
33114
- },
33115
- "1": {
33116
- start: {
33117
- line: 13,
33118
- column: 22
33119
- },
33120
- end: {
33121
- line: 13,
33122
- column: 34
33123
- }
33124
- },
33125
- "2": {
33126
- start: {
33127
- line: 14,
33128
- column: 22
33129
- },
33130
- end: {
33131
- line: 14,
33132
- column: 34
33133
- }
33134
- },
33135
- "3": {
33136
- start: {
33137
- line: 16,
33138
- column: 2
33139
- },
33140
- end: {
33141
- line: 16,
33142
- column: 55
33143
- }
33144
- },
33145
- "4": {
33146
- start: {
33147
- line: 18,
33148
- column: 2
33149
- },
33150
- end: {
33151
- line: 18,
33152
- column: 29
33153
- }
33154
- },
33155
- "5": {
33156
- start: {
33157
- line: 20,
33158
- column: 2
33159
- },
33160
- end: {
33161
- line: 45,
33162
- column: 4
33163
- }
33164
- }
33165
- },
33166
- fnMap: {
33167
- "0": {
33168
- name: "(anonymous_0)",
33169
- decl: {
33170
- start: {
33171
- line: 12,
33172
- column: 20
33173
- },
33174
- end: {
33175
- line: 12,
33176
- column: 21
33177
- }
33178
- },
33179
- loc: {
33180
- start: {
33181
- line: 12,
33182
- column: 45
33183
- },
33184
- end: {
33185
- line: 46,
33186
- column: 1
33187
- }
33188
- },
33189
- line: 12
33190
- }
33191
- },
33192
- branchMap: {},
33193
- s: {
33194
- "0": 0,
33195
- "1": 0,
33196
- "2": 0,
33197
- "3": 0,
33198
- "4": 0,
33199
- "5": 0
33200
- },
33201
- f: {
33202
- "0": 0
33203
- },
33204
- b: {},
33205
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
33206
- hash: "f48177db9e544dcc6e11b963cf49f5c34e8e9e6d"
33207
- };
33208
- var coverage = global[gcv] || (global[gcv] = {});
33209
- if (!coverage[path] || coverage[path].hash !== hash) {
33210
- coverage[path] = coverageData;
33211
- }
33212
- var actualCoverage = coverage[path];
33213
- {
33214
- // @ts-ignore
33215
- cov_2lck7amjw7 = function () {
33216
- return actualCoverage;
33217
- };
33218
- }
33219
- return actualCoverage;
33220
- }
33221
- cov_2lck7amjw7();
33222
- cov_2lck7amjw7().s[0]++;
33223
31712
  var AppSwitcher = function AppSwitcher(_ref) {
33224
31713
  var isOpen = _ref.isOpen,
33225
31714
  onClose = _ref.onClose;
33226
- cov_2lck7amjw7().f[0]++;
33227
- var paneWrapper = (cov_2lck7amjw7().s[1]++, React.useRef(null));
33228
- var backdropRef = (cov_2lck7amjw7().s[2]++, React.useRef(null));
33229
- cov_2lck7amjw7().s[3]++;
31715
+ var paneWrapper = React.useRef(null);
31716
+ var backdropRef = React.useRef(null);
33230
31717
  useOnClickOutside(paneWrapper, backdropRef, onClose);
33231
- cov_2lck7amjw7().s[4]++;
33232
31718
  useHotkeys("esc", onClose);
33233
- cov_2lck7amjw7().s[5]++;
33234
31719
  return /*#__PURE__*/React__default["default"].createElement(Portal, {
33235
31720
  rootId: "neeto-ui-portal"
33236
31721
  }, /*#__PURE__*/React__default["default"].createElement(CSSTransition, {
@@ -33256,129 +31741,9 @@ var AppSwitcher = function AppSwitcher(_ref) {
33256
31741
  var css = ".neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-white));border-right:1px solid rgb(var(--neeto-ui-gray-200));height:100vh;max-width:300px;padding:40px 0;transition:all .3s;width:300px;z-index:99997}.neeto-molecules-sidebar::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:50px}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}@media (min-width:1440px){.neeto-molecules-sidebar{max-width:320px;width:320px}}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed{max-width:var(--neeto-ui-sidebar-width);width:var(--neeto-ui-sidebar-width)}.neeto-molecules-sidebar__header{margin-bottom:40px;padding:0 20px;width:100%}.neeto-molecules-sidebar__logo,.neeto-molecules-sidebar__logo svg{height:40px;width:40px}.neeto-molecules-sidebar__info{padding-left:10px;width:calc(100% - 40px)}.neeto-molecules-sidebar__info .neeto-molecules-typography{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.neeto-molecules-sidebar__links{margin-bottom:20px;padding-left:12px;padding-right:12px;width:100%}.neeto-molecules-sidebar__link{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-gray-600));cursor:pointer;margin:8px 0;padding:8px;position:relative;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__link.mb-0{margin-bottom:0}.neeto-molecules-sidebar__link-icon{flex-shrink:0;width:40px}.neeto-molecules-sidebar__link-label{overflow:hidden;padding-left:10px;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 40px)}.neeto-molecules-sidebar__link-sub-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 56px)}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800));outline:none;text-decoration:none}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-primary-100));color:rgb(var(--neeto-ui-primary-600));text-decoration:none}.neeto-molecules-sidebar__link--button:focus{background-color:transparent}.neeto-molecules-sidebar__link--button:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-gray-600));cursor:pointer;margin:4px 0;padding:8px 8px 8px 58px;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-gray-700));text-decoration:none}.neeto-molecules-sidebar__sublink:focus,.neeto-molecules-sidebar__sublink:focus-visible{background-color:rgb(var(--neeto-ui-gray-300));color:rgb(var(--neeto-ui-gray-700));outline:none;text-decoration:none}.neeto-molecules-sidebar__sublink.active,.neeto-molecules-sidebar__sublink:active{color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__footer{margin-top:auto;padding:0 12px;width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-wrapper{outline:none!important}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile{background-color:rgb(var(--neeto-ui-white));border-radius:var(--neeto-ui-rounded);box-shadow:var(--neeto-ui-shadow-sm);cursor:pointer;padding:8px;transition:var(--neeto-ui-transition);width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-content{padding-left:10px;padding-right:30px;position:relative;width:calc(100% - 40px)}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-content .neeto-molecules-typography{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-drop-icon{color:rgb(var(--neeto-ui-gray-500));position:absolute;right:8px;top:50%;transform:translateY(-50%)}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed{padding:24px 0}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__profile{background-color:transparent;box-shadow:none;padding:0}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__header,.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__links{padding-left:16px;padding-right:16px}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__link-icon{width:24px}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__footer{padding-left:16px;padding-right:16px}.sidebar-featured-tooltip__content{border-radius:8px!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:12px;width:150px}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:8px;height:40px;margin-bottom:8px;margin-left:auto;margin-right:auto;width:40px}.sidebar-featured-tooltip__title{margin-bottom:4px}.neeto-molecules-help-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;box-shadow:var(--neeto-ui-shadow-xs)!important}.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-profile-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-sublist{border-top:1px solid rgb(var(--neeto-ui-gray-400));list-style:none;margin:0;padding:4px 0}.neeto-molecules-help-sublist__item,.neeto-molecules-profile-sublist__item{width:100%}.neeto-molecules-help-sublist__item-btn,.neeto-molecules-profile-sublist__item-btn{align-items:center;border-radius:0;color:rgb(var(--neeto-ui-gray-800));cursor:pointer;display:flex;font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-normal);gap:8px;line-height:1.143;min-height:32px;outline-color:transparent;padding:6px 40px 6px 12px;position:relative;text-decoration:none;transition:var(--neeto-ui-transition);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.neeto-molecules-help-sublist__item-btn.disabled,.neeto-molecules-profile-sublist__item-btn.disabled{color:rgb(var(--neeto-ui-gray-500));cursor:not-allowed}.neeto-molecules-help-sublist__item-btn:focus,.neeto-molecules-help-sublist__item-btn:hover,.neeto-molecules-profile-sublist__item-btn:focus,.neeto-molecules-profile-sublist__item-btn:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-help-sublist__item-btn.active,.neeto-molecules-profile-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-help-sublist__item-btn--style-danger,.neeto-molecules-profile-sublist__item-btn--style-danger{color:rgb(var(--neeto-ui-error-800))}.neeto-molecules-help-sublist__item-btn-icon,.neeto-molecules-profile-sublist__item-btn-icon{color:rgb(var(--neeto-ui-gray-600))}.neeto-molecules-help-sublist__item-btn-icon svg,.neeto-molecules-profile-sublist__item-btn-icon svg{height:20px;width:20px}";
33257
31742
  n(css,{});
33258
31743
 
33259
- function cov_swyqo0lwo() {
33260
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/FeaturedTooltip.jsx";
33261
- var hash = "362c5ce68ed3186f185cb66060e3798975077c39";
33262
- var global = new Function("return this")();
33263
- var gcv = "__coverage__";
33264
- var coverageData = {
33265
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/FeaturedTooltip.jsx",
33266
- statementMap: {
33267
- "0": {
33268
- start: {
33269
- line: 7,
33270
- column: 24
33271
- },
33272
- end: {
33273
- line: 27,
33274
- column: 1
33275
- }
33276
- },
33277
- "1": {
33278
- start: {
33279
- line: 8,
33280
- column: 2
33281
- },
33282
- end: {
33283
- line: 26,
33284
- column: 8
33285
- }
33286
- }
33287
- },
33288
- fnMap: {
33289
- "0": {
33290
- name: "(anonymous_0)",
33291
- decl: {
33292
- start: {
33293
- line: 7,
33294
- column: 24
33295
- },
33296
- end: {
33297
- line: 7,
33298
- column: 25
33299
- }
33300
- },
33301
- loc: {
33302
- start: {
33303
- line: 8,
33304
- column: 2
33305
- },
33306
- end: {
33307
- line: 26,
33308
- column: 8
33309
- }
33310
- },
33311
- line: 8
33312
- }
33313
- },
33314
- branchMap: {
33315
- "0": {
33316
- loc: {
33317
- start: {
33318
- line: 17,
33319
- column: 5
33320
- },
33321
- end: {
33322
- line: 25,
33323
- column: 5
33324
- }
33325
- },
33326
- type: "binary-expr",
33327
- locations: [{
33328
- start: {
33329
- line: 17,
33330
- column: 5
33331
- },
33332
- end: {
33333
- line: 17,
33334
- column: 16
33335
- }
33336
- }, {
33337
- start: {
33338
- line: 18,
33339
- column: 6
33340
- },
33341
- end: {
33342
- line: 24,
33343
- column: 19
33344
- }
33345
- }],
33346
- line: 17
33347
- }
33348
- },
33349
- s: {
33350
- "0": 0,
33351
- "1": 0
33352
- },
33353
- f: {
33354
- "0": 0
33355
- },
33356
- b: {
33357
- "0": [0, 0]
33358
- },
33359
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
33360
- hash: "362c5ce68ed3186f185cb66060e3798975077c39"
33361
- };
33362
- var coverage = global[gcv] || (global[gcv] = {});
33363
- if (!coverage[path] || coverage[path].hash !== hash) {
33364
- coverage[path] = coverageData;
33365
- }
33366
- var actualCoverage = coverage[path];
33367
- {
33368
- // @ts-ignore
33369
- cov_swyqo0lwo = function () {
33370
- return actualCoverage;
33371
- };
33372
- }
33373
- return actualCoverage;
33374
- }
33375
- cov_swyqo0lwo();
33376
- cov_swyqo0lwo().s[0]++;
33377
31744
  var FeaturedTooltip = function FeaturedTooltip(_ref) {
33378
31745
  var label = _ref.label,
33379
31746
  description = _ref.description;
33380
- cov_swyqo0lwo().f[0]++;
33381
- cov_swyqo0lwo().s[1]++;
33382
31747
  return /*#__PURE__*/React__default["default"].createElement("div", {
33383
31748
  className: "neeto-ui-flex neeto-ui-flex-col sidebar-featured-tooltip"
33384
31749
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
@@ -33386,101 +31751,17 @@ var FeaturedTooltip = function FeaturedTooltip(_ref) {
33386
31751
  lineHeight: "tight",
33387
31752
  style: "h5",
33388
31753
  weight: "semibold"
33389
- }, label), (cov_swyqo0lwo().b[0][0]++, description) && (cov_swyqo0lwo().b[0][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31754
+ }, label), description && /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
33390
31755
  className: "neeto-ui-text-center neeto-ui-text-gray-400 sidebar-featured-tooltip__description",
33391
31756
  lineHeight: "normal",
33392
31757
  style: "body3"
33393
- }, description)));
31758
+ }, description));
33394
31759
  };
33395
31760
 
33396
- function cov_1fw6zj7gkk() {
33397
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/NavIconWrapper.jsx";
33398
- var hash = "4256dc2cf3d4982587c3553e284622919128488a";
33399
- var global = new Function("return this")();
33400
- var gcv = "__coverage__";
33401
- var coverageData = {
33402
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/NavIconWrapper.jsx",
33403
- statementMap: {
33404
- "0": {
33405
- start: {
33406
- line: 8,
33407
- column: 23
33408
- },
33409
- end: {
33410
- line: 19,
33411
- column: 1
33412
- }
33413
- },
33414
- "1": {
33415
- start: {
33416
- line: 9,
33417
- column: 2
33418
- },
33419
- end: {
33420
- line: 18,
33421
- column: 12
33422
- }
33423
- }
33424
- },
33425
- fnMap: {
33426
- "0": {
33427
- name: "(anonymous_0)",
33428
- decl: {
33429
- start: {
33430
- line: 8,
33431
- column: 23
33432
- },
33433
- end: {
33434
- line: 8,
33435
- column: 24
33436
- }
33437
- },
33438
- loc: {
33439
- start: {
33440
- line: 9,
33441
- column: 2
33442
- },
33443
- end: {
33444
- line: 18,
33445
- column: 12
33446
- }
33447
- },
33448
- line: 9
33449
- }
33450
- },
33451
- branchMap: {},
33452
- s: {
33453
- "0": 0,
33454
- "1": 0
33455
- },
33456
- f: {
33457
- "0": 0
33458
- },
33459
- b: {},
33460
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
33461
- hash: "4256dc2cf3d4982587c3553e284622919128488a"
33462
- };
33463
- var coverage = global[gcv] || (global[gcv] = {});
33464
- if (!coverage[path] || coverage[path].hash !== hash) {
33465
- coverage[path] = coverageData;
33466
- }
33467
- var actualCoverage = coverage[path];
33468
- {
33469
- // @ts-ignore
33470
- cov_1fw6zj7gkk = function () {
33471
- return actualCoverage;
33472
- };
33473
- }
33474
- return actualCoverage;
33475
- }
33476
- cov_1fw6zj7gkk();
33477
- cov_1fw6zj7gkk().s[0]++;
33478
31761
  var NavIconWrapper = function NavIconWrapper(_ref) {
33479
31762
  var description = _ref.description,
33480
31763
  label = _ref.label,
33481
31764
  children = _ref.children;
33482
- cov_1fw6zj7gkk().f[0]++;
33483
- cov_1fw6zj7gkk().s[1]++;
33484
31765
  return /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
33485
31766
  className: "sidebar-featured-tooltip__content",
33486
31767
  content: /*#__PURE__*/React__default["default"].createElement(FeaturedTooltip, {
@@ -33494,105 +31775,10 @@ var NavIconWrapper = function NavIconWrapper(_ref) {
33494
31775
  }, children);
33495
31776
  };
33496
31777
 
33497
- function cov_knzy2b2r3() {
33498
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Footer/AppSwitcherButton.jsx";
33499
- var hash = "bff3242ad4d93fb8dc91f4ea027c78ff72f9fd60";
33500
- var global = new Function("return this")();
33501
- var gcv = "__coverage__";
33502
- var coverageData = {
33503
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Footer/AppSwitcherButton.jsx",
33504
- statementMap: {
33505
- "0": {
33506
- start: {
33507
- line: 9,
33508
- column: 26
33509
- },
33510
- end: {
33511
- line: 25,
33512
- column: 1
33513
- }
33514
- },
33515
- "1": {
33516
- start: {
33517
- line: 10,
33518
- column: 16
33519
- },
33520
- end: {
33521
- line: 10,
33522
- column: 32
33523
- }
33524
- },
33525
- "2": {
33526
- start: {
33527
- line: 12,
33528
- column: 2
33529
- },
33530
- end: {
33531
- line: 24,
33532
- column: 4
33533
- }
33534
- }
33535
- },
33536
- fnMap: {
33537
- "0": {
33538
- name: "(anonymous_0)",
33539
- decl: {
33540
- start: {
33541
- line: 9,
33542
- column: 26
33543
- },
33544
- end: {
33545
- line: 9,
33546
- column: 27
33547
- }
33548
- },
33549
- loc: {
33550
- start: {
33551
- line: 9,
33552
- column: 55
33553
- },
33554
- end: {
33555
- line: 25,
33556
- column: 1
33557
- }
33558
- },
33559
- line: 9
33560
- }
33561
- },
33562
- branchMap: {},
33563
- s: {
33564
- "0": 0,
33565
- "1": 0,
33566
- "2": 0
33567
- },
33568
- f: {
33569
- "0": 0
33570
- },
33571
- b: {},
33572
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
33573
- hash: "bff3242ad4d93fb8dc91f4ea027c78ff72f9fd60"
33574
- };
33575
- var coverage = global[gcv] || (global[gcv] = {});
33576
- if (!coverage[path] || coverage[path].hash !== hash) {
33577
- coverage[path] = coverageData;
33578
- }
33579
- var actualCoverage = coverage[path];
33580
- {
33581
- // @ts-ignore
33582
- cov_knzy2b2r3 = function () {
33583
- return actualCoverage;
33584
- };
33585
- }
33586
- return actualCoverage;
33587
- }
33588
- cov_knzy2b2r3();
33589
- cov_knzy2b2r3().s[0]++;
33590
31778
  var AppSwitcherButton = function AppSwitcherButton(_ref) {
33591
31779
  var onAppSwitcherToggle = _ref.onAppSwitcherToggle;
33592
- cov_knzy2b2r3().f[0]++;
33593
- var _ref2 = (cov_knzy2b2r3().s[1]++, reactI18next.useTranslation()),
33594
- t = _ref2.t;
33595
- cov_knzy2b2r3().s[2]++;
31780
+ var _useTranslation = reactI18next.useTranslation(),
31781
+ t = _useTranslation.t;
33596
31782
  return /*#__PURE__*/React__default["default"].createElement(NavIconWrapper, {
33597
31783
  label: t("neetoMolecules.sidebar.productSwitcher")
33598
31784
  }, /*#__PURE__*/React__default["default"].createElement("button", {
@@ -33606,202 +31792,15 @@ var AppSwitcherButton = function AppSwitcherButton(_ref) {
33606
31792
  }))));
33607
31793
  };
33608
31794
 
33609
- function cov_xms5uo6jj() {
33610
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/constants.js";
33611
- var hash = "af7eebc65024d4453cb3c7dbbdfb5d0c2e5b6fb3";
33612
- var global = new Function("return this")();
33613
- var gcv = "__coverage__";
33614
- var coverageData = {
33615
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/constants.js",
33616
- statementMap: {
33617
- "0": {
33618
- start: {
33619
- line: 5,
33620
- column: 30
33621
- },
33622
- end: {
33623
- line: 5,
33624
- column: 50
33625
- }
33626
- },
33627
- "1": {
33628
- start: {
33629
- line: 6,
33630
- column: 35
33631
- },
33632
- end: {
33633
- line: 6,
33634
- column: 60
33635
- }
33636
- },
33637
- "2": {
33638
- start: {
33639
- line: 7,
33640
- column: 43
33641
- },
33642
- end: {
33643
- line: 7,
33644
- column: 67
33645
- }
33646
- },
33647
- "3": {
33648
- start: {
33649
- line: 8,
33650
- column: 34
33651
- },
33652
- end: {
33653
- line: 8,
33654
- column: 36
33655
- }
33656
- },
33657
- "4": {
33658
- start: {
33659
- line: 9,
33660
- column: 35
33661
- },
33662
- end: {
33663
- line: 9,
33664
- column: 37
33665
- }
33666
- },
33667
- "5": {
33668
- start: {
33669
- line: 11,
33670
- column: 39
33671
- },
33672
- end: {
33673
- line: 42,
33674
- column: 1
33675
- }
33676
- },
33677
- "6": {
33678
- start: {
33679
- line: 17,
33680
- column: 6
33681
- },
33682
- end: {
33683
- line: 20,
33684
- column: 7
33685
- }
33686
- },
33687
- "7": {
33688
- start: {
33689
- line: 32,
33690
- column: 6
33691
- },
33692
- end: {
33693
- line: 32,
33694
- column: 57
33695
- }
33696
- },
33697
- "8": {
33698
- start: {
33699
- line: 33,
33700
- column: 6
33701
- },
33702
- end: {
33703
- line: 33,
33704
- column: 53
33705
- }
33706
- }
33707
- },
33708
- fnMap: {
33709
- "0": {
33710
- name: "(anonymous_0)",
33711
- decl: {
33712
- start: {
33713
- line: 16,
33714
- column: 13
33715
- },
33716
- end: {
33717
- line: 16,
33718
- column: 14
33719
- }
33720
- },
33721
- loc: {
33722
- start: {
33723
- line: 17,
33724
- column: 6
33725
- },
33726
- end: {
33727
- line: 20,
33728
- column: 7
33729
- }
33730
- },
33731
- line: 17
33732
- },
33733
- "1": {
33734
- name: "(anonymous_1)",
33735
- decl: {
33736
- start: {
33737
- line: 31,
33738
- column: 13
33739
- },
33740
- end: {
33741
- line: 31,
33742
- column: 14
33743
- }
33744
- },
33745
- loc: {
33746
- start: {
33747
- line: 31,
33748
- column: 19
33749
- },
33750
- end: {
33751
- line: 34,
33752
- column: 5
33753
- }
33754
- },
33755
- line: 31
33756
- }
33757
- },
33758
- branchMap: {},
33759
- s: {
33760
- "0": 0,
33761
- "1": 0,
33762
- "2": 0,
33763
- "3": 0,
33764
- "4": 0,
33765
- "5": 0,
33766
- "6": 0,
33767
- "7": 0,
33768
- "8": 0
33769
- },
33770
- f: {
33771
- "0": 0,
33772
- "1": 0
33773
- },
33774
- b: {},
33775
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
33776
- hash: "af7eebc65024d4453cb3c7dbbdfb5d0c2e5b6fb3"
33777
- };
33778
- var coverage = global[gcv] || (global[gcv] = {});
33779
- if (!coverage[path] || coverage[path].hash !== hash) {
33780
- coverage[path] = coverageData;
33781
- }
33782
- var actualCoverage = coverage[path];
33783
- {
33784
- // @ts-ignore
33785
- cov_xms5uo6jj = function () {
33786
- return actualCoverage;
33787
- };
33788
- }
33789
- return actualCoverage;
33790
- }
33791
- cov_xms5uo6jj();
33792
- var MY_PROFILE_URL = (cov_xms5uo6jj().s[0]++, "/auth/profile/edit");
33793
- var MY_ORGANIZATION_URL = (cov_xms5uo6jj().s[1]++, "/auth/organization/edit");
33794
- var CHANGELOG_WIDGET_TRIGGER_ID = (cov_xms5uo6jj().s[2]++, "neetochangelog-trigger");
33795
- (cov_xms5uo6jj().s[3]++, 40);
33796
- (cov_xms5uo6jj().s[4]++, 40);
33797
- var DEFAULT_HELP_LINK_PROPS = (cov_xms5uo6jj().s[5]++, {
31795
+ var MY_PROFILE_URL = "/auth/profile/edit";
31796
+ var MY_ORGANIZATION_URL = "/auth/organization/edit";
31797
+ var CHANGELOG_WIDGET_TRIGGER_ID = "neetochangelog-trigger";
31798
+ var DEFAULT_HELP_LINK_PROPS = {
33798
31799
  documentationProps: {
33799
31800
  label: i18next.t("neetoMolecules.sidebar.helpLinks.documentation"),
33800
31801
  icon: neetoIcons.Book,
33801
31802
  "data-cy": "help-link-documentation-button",
33802
31803
  onClick: function onClick() {
33803
- cov_xms5uo6jj().f[0]++;
33804
- cov_xms5uo6jj().s[6]++;
33805
31804
  return window.open("https://help.".concat(ramda.toLower(globalProps.appName), ".com/"), "_blank");
33806
31805
  }
33807
31806
  },
@@ -33816,10 +31815,7 @@ var DEFAULT_HELP_LINK_PROPS = (cov_xms5uo6jj().s[5]++, {
33816
31815
  "data-cy": "help-link-live-chat-button",
33817
31816
  onClick: function onClick() {
33818
31817
  var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
33819
- cov_xms5uo6jj().f[1]++;
33820
- cov_xms5uo6jj().s[7]++;
33821
31818
  (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
33822
- cov_xms5uo6jj().s[8]++;
33823
31819
  (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
33824
31820
  }
33825
31821
  },
@@ -33829,314 +31825,34 @@ var DEFAULT_HELP_LINK_PROPS = (cov_xms5uo6jj().s[5]++, {
33829
31825
  icon: neetoIcons.Gift,
33830
31826
  "data-cy": "help-link-changelog-button"
33831
31827
  }
33832
- });
31828
+ };
33833
31829
 
33834
- function cov_1oxq9rco7h() {
33835
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Footer/utils.js";
33836
- var hash = "760cf979759a12614a10d8cc171c712d7a38c9bc";
33837
- var global = new Function("return this")();
33838
- var gcv = "__coverage__";
33839
- var coverageData = {
33840
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Footer/utils.js",
33841
- statementMap: {
33842
- "0": {
33843
- start: {
33844
- line: 8,
33845
- column: 30
33846
- },
33847
- end: {
33848
- line: 38,
33849
- column: 4
33850
- }
33851
- },
33852
- "1": {
33853
- start: {
33854
- line: 9,
33855
- column: 2
33856
- },
33857
- end: {
33858
- line: 38,
33859
- column: 4
33860
- }
33861
- },
33862
- "2": {
33863
- start: {
33864
- line: 17,
33865
- column: 23
33866
- },
33867
- end: {
33868
- line: 17,
33869
- column: 60
33870
- }
33871
- },
33872
- "3": {
33873
- start: {
33874
- line: 23,
33875
- column: 23
33876
- },
33877
- end: {
33878
- line: 23,
33879
- column: 65
33880
- }
33881
- },
33882
- "4": {
33883
- start: {
33884
- line: 32,
33885
- column: 10
33886
- },
33887
- end: {
33888
- line: 32,
33889
- column: 28
33890
- }
33891
- },
33892
- "5": {
33893
- start: {
33894
- line: 33,
33895
- column: 10
33896
- },
33897
- end: {
33898
- line: 33,
33899
- column: 43
33900
- }
33901
- }
33902
- },
33903
- fnMap: {
33904
- "0": {
33905
- name: "(anonymous_0)",
33906
- decl: {
33907
- start: {
33908
- line: 8,
33909
- column: 30
33910
- },
33911
- end: {
33912
- line: 8,
33913
- column: 31
33914
- }
33915
- },
33916
- loc: {
33917
- start: {
33918
- line: 9,
33919
- column: 2
33920
- },
33921
- end: {
33922
- line: 38,
33923
- column: 4
33924
- }
33925
- },
33926
- line: 9
33927
- },
33928
- "1": {
33929
- name: "(anonymous_1)",
33930
- decl: {
33931
- start: {
33932
- line: 17,
33933
- column: 17
33934
- },
33935
- end: {
33936
- line: 17,
33937
- column: 18
33938
- }
33939
- },
33940
- loc: {
33941
- start: {
33942
- line: 17,
33943
- column: 23
33944
- },
33945
- end: {
33946
- line: 17,
33947
- column: 60
33948
- }
33949
- },
33950
- line: 17
33951
- },
33952
- "2": {
33953
- name: "(anonymous_2)",
33954
- decl: {
33955
- start: {
33956
- line: 23,
33957
- column: 17
33958
- },
33959
- end: {
33960
- line: 23,
33961
- column: 18
33962
- }
33963
- },
33964
- loc: {
33965
- start: {
33966
- line: 23,
33967
- column: 23
33968
- },
33969
- end: {
33970
- line: 23,
33971
- column: 65
33972
- }
33973
- },
33974
- line: 23
33975
- },
33976
- "3": {
33977
- name: "(anonymous_3)",
33978
- decl: {
33979
- start: {
33980
- line: 31,
33981
- column: 17
33982
- },
33983
- end: {
33984
- line: 31,
33985
- column: 18
33986
- }
33987
- },
33988
- loc: {
33989
- start: {
33990
- line: 31,
33991
- column: 23
33992
- },
33993
- end: {
33994
- line: 34,
33995
- column: 9
33996
- }
33997
- },
33998
- line: 31
33999
- }
34000
- },
34001
- branchMap: {
34002
- "0": {
34003
- loc: {
34004
- start: {
34005
- line: 12,
34006
- column: 11
34007
- },
34008
- end: {
34009
- line: 12,
34010
- column: 67
34011
- }
34012
- },
34013
- type: "binary-expr",
34014
- locations: [{
34015
- start: {
34016
- line: 12,
34017
- column: 11
34018
- },
34019
- end: {
34020
- line: 12,
34021
- column: 34
34022
- }
34023
- }, {
34024
- start: {
34025
- line: 12,
34026
- column: 38
34027
- },
34028
- end: {
34029
- line: 12,
34030
- column: 67
34031
- }
34032
- }],
34033
- line: 12
34034
- },
34035
- "1": {
34036
- loc: {
34037
- start: {
34038
- line: 20,
34039
- column: 6
34040
- },
34041
- end: {
34042
- line: 25,
34043
- column: 7
34044
- }
34045
- },
34046
- type: "binary-expr",
34047
- locations: [{
34048
- start: {
34049
- line: 20,
34050
- column: 6
34051
- },
34052
- end: {
34053
- line: 20,
34054
- column: 25
34055
- }
34056
- }, {
34057
- start: {
34058
- line: 20,
34059
- column: 29
34060
- },
34061
- end: {
34062
- line: 25,
34063
- column: 7
34064
- }
34065
- }],
34066
- line: 20
34067
- }
34068
- },
34069
- s: {
34070
- "0": 0,
34071
- "1": 0,
34072
- "2": 0,
34073
- "3": 0,
34074
- "4": 0,
34075
- "5": 0
34076
- },
34077
- f: {
34078
- "0": 0,
34079
- "1": 0,
34080
- "2": 0,
34081
- "3": 0
34082
- },
34083
- b: {
34084
- "0": [0, 0],
34085
- "1": [0, 0]
34086
- },
34087
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34088
- hash: "760cf979759a12614a10d8cc171c712d7a38c9bc"
34089
- };
34090
- var coverage = global[gcv] || (global[gcv] = {});
34091
- if (!coverage[path] || coverage[path].hash !== hash) {
34092
- coverage[path] = coverageData;
34093
- }
34094
- var actualCoverage = coverage[path];
34095
- {
34096
- // @ts-ignore
34097
- cov_1oxq9rco7h = function () {
34098
- return actualCoverage;
34099
- };
34100
- }
34101
- return actualCoverage;
34102
- }
34103
- cov_1oxq9rco7h();
34104
- cov_1oxq9rco7h().s[0]++;
34105
31830
  var getProfileInfo = function getProfileInfo(profileInfoOverrides) {
34106
31831
  var _globalProps$user, _globalProps$user2, _globalProps$user3, _globalProps$user4, _globalProps$user5;
34107
- cov_1oxq9rco7h().f[0]++;
34108
- cov_1oxq9rco7h().s[1]++;
34109
31832
  return ramda.mergeDeepLeft(profileInfoOverrides, {
34110
31833
  name: "".concat((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.firstName, " ").concat((_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.lastName),
34111
31834
  imageUrl: (_globalProps$user3 = globalProps.user) === null || _globalProps$user3 === void 0 ? void 0 : _globalProps$user3.profileImageUrl,
34112
- email: (cov_1oxq9rco7h().b[0][0]++, (_globalProps$user4 = globalProps.user) === null || _globalProps$user4 === void 0 ? void 0 : _globalProps$user4.email) || (cov_1oxq9rco7h().b[0][1]++, (_globalProps$user5 = globalProps.user) === null || _globalProps$user5 === void 0 ? void 0 : _globalProps$user5.phoneNumber),
31835
+ email: ((_globalProps$user4 = globalProps.user) === null || _globalProps$user4 === void 0 ? void 0 : _globalProps$user4.email) || ((_globalProps$user5 = globalProps.user) === null || _globalProps$user5 === void 0 ? void 0 : _globalProps$user5.phoneNumber),
34113
31836
  topLinks: [{
34114
31837
  label: i18next.t("neetoMolecules.sidebar.myProfile"),
34115
31838
  icon: neetoIcons.User,
34116
31839
  onClick: function onClick() {
34117
- cov_1oxq9rco7h().f[1]++;
34118
- cov_1oxq9rco7h().s[2]++;
34119
31840
  return window.open(MY_PROFILE_URL, "_blank");
34120
31841
  },
34121
31842
  "data-cy": "my-profile-button"
34122
- }, (cov_1oxq9rco7h().b[1][0]++, globalProps.isOwner) && (cov_1oxq9rco7h().b[1][1]++, {
31843
+ }, globalProps.isOwner && {
34123
31844
  label: i18next.t("neetoMolecules.sidebar.myOrganization"),
34124
31845
  icon: neetoIcons.Settings,
34125
31846
  onClick: function onClick() {
34126
- cov_1oxq9rco7h().f[2]++;
34127
- cov_1oxq9rco7h().s[3]++;
34128
31847
  return window.open(MY_ORGANIZATION_URL, "_blank");
34129
31848
  },
34130
31849
  "data-cy": "profile-organization-settings-button"
34131
- })].filter(Boolean),
31850
+ }].filter(Boolean),
34132
31851
  bottomLinks: [{
34133
31852
  icon: neetoIcons.LeftArrow,
34134
31853
  label: i18next.t("neetoMolecules.sidebar.logout"),
34135
31854
  onClick: function onClick() {
34136
- cov_1oxq9rco7h().f[3]++;
34137
- cov_1oxq9rco7h().s[4]++;
34138
31855
  utils.resetAuthTokens();
34139
- cov_1oxq9rco7h().s[5]++;
34140
31856
  window.location.href = "/logout";
34141
31857
  },
34142
31858
  "data-cy": "profile-logout-button"
@@ -34144,101 +31860,7 @@ var getProfileInfo = function getProfileInfo(profileInfoOverrides) {
34144
31860
  });
34145
31861
  };
34146
31862
 
34147
- function cov_w1mh1oj8a() {
34148
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/HelpSection/index.jsx";
34149
- var hash = "6c6e74c3eabf2d0125b23db04d6b4613534eec5d";
34150
- var global = new Function("return this")();
34151
- var gcv = "__coverage__";
34152
- var coverageData = {
34153
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/HelpSection/index.jsx",
34154
- statementMap: {
34155
- "0": {
34156
- start: {
34157
- line: 7,
34158
- column: 20
34159
- },
34160
- end: {
34161
- line: 17,
34162
- column: 2
34163
- }
34164
- },
34165
- "1": {
34166
- start: {
34167
- line: 8,
34168
- column: 2
34169
- },
34170
- end: {
34171
- line: 16,
34172
- column: 11
34173
- }
34174
- },
34175
- "2": {
34176
- start: {
34177
- line: 19,
34178
- column: 0
34179
- },
34180
- end: {
34181
- line: 19,
34182
- column: 40
34183
- }
34184
- }
34185
- },
34186
- fnMap: {
34187
- "0": {
34188
- name: "(anonymous_0)",
34189
- decl: {
34190
- start: {
34191
- line: 7,
34192
- column: 31
34193
- },
34194
- end: {
34195
- line: 7,
34196
- column: 32
34197
- }
34198
- },
34199
- loc: {
34200
- start: {
34201
- line: 8,
34202
- column: 2
34203
- },
34204
- end: {
34205
- line: 16,
34206
- column: 11
34207
- }
34208
- },
34209
- line: 8
34210
- }
34211
- },
34212
- branchMap: {},
34213
- s: {
34214
- "0": 0,
34215
- "1": 0,
34216
- "2": 0
34217
- },
34218
- f: {
34219
- "0": 0
34220
- },
34221
- b: {},
34222
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34223
- hash: "6c6e74c3eabf2d0125b23db04d6b4613534eec5d"
34224
- };
34225
- var coverage = global[gcv] || (global[gcv] = {});
34226
- if (!coverage[path] || coverage[path].hash !== hash) {
34227
- coverage[path] = coverageData;
34228
- }
34229
- var actualCoverage = coverage[path];
34230
- {
34231
- // @ts-ignore
34232
- cov_w1mh1oj8a = function () {
34233
- return actualCoverage;
34234
- };
34235
- }
34236
- return actualCoverage;
34237
- }
34238
- cov_w1mh1oj8a();
34239
- var HelpSection = (cov_w1mh1oj8a().s[0]++, /*#__PURE__*/React.forwardRef(function (_, ref) {
34240
- cov_w1mh1oj8a().f[0]++;
34241
- cov_w1mh1oj8a().s[1]++;
31863
+ var HelpSection = /*#__PURE__*/React.forwardRef(function (_, ref) {
34242
31864
  return /*#__PURE__*/React__default["default"].createElement("button", {
34243
31865
  className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none",
34244
31866
  "data-cy": "help-button",
@@ -34248,8 +31870,7 @@ var HelpSection = (cov_w1mh1oj8a().s[0]++, /*#__PURE__*/React.forwardRef(functio
34248
31870
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Help, {
34249
31871
  size: 24
34250
31872
  })));
34251
- }));
34252
- cov_w1mh1oj8a().s[2]++;
31873
+ });
34253
31874
  HelpSection.displayName = "HelpSection";
34254
31875
 
34255
31876
  function _typeof(obj) {
@@ -34294,455 +31915,41 @@ function _defineProperty(obj, key, value) {
34294
31915
  }
34295
31916
 
34296
31917
  var _excluded$2 = ["onClick", "label", "icon"];
34297
- function cov_1ninsyc6yz() {
34298
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/HelpSection/HelpSectionMenu.jsx";
34299
- var hash = "5f0c31bfb5495310ac01bbe41e15f2a52e067b3b";
34300
- var global = new Function("return this")();
34301
- var gcv = "__coverage__";
34302
- var coverageData = {
34303
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/HelpSection/HelpSectionMenu.jsx",
34304
- statementMap: {
34305
- "0": {
34306
- start: {
34307
- line: 10,
34308
- column: 24
34309
- },
34310
- end: {
34311
- line: 56,
34312
- column: 1
34313
- }
34314
- },
34315
- "1": {
34316
- start: {
34317
- line: 11,
34318
- column: 24
34319
- },
34320
- end: {
34321
- line: 11,
34322
- column: 56
34323
- }
34324
- },
34325
- "2": {
34326
- start: {
34327
- line: 13,
34328
- column: 20
34329
- },
34330
- end: {
34331
- line: 21,
34332
- column: 32
34333
- }
34334
- },
34335
- "3": {
34336
- start: {
34337
- line: 14,
34338
- column: 17
34339
- },
34340
- end: {
34341
- line: 20,
34342
- column: 5
34343
- }
34344
- },
34345
- "4": {
34346
- start: {
34347
- line: 18,
34348
- column: 23
34349
- },
34350
- end: {
34351
- line: 18,
34352
- column: 38
34353
- }
34354
- },
34355
- "5": {
34356
- start: {
34357
- line: 21,
34358
- column: 26
34359
- },
34360
- end: {
34361
- line: 21,
34362
- column: 31
34363
- }
34364
- },
34365
- "6": {
34366
- start: {
34367
- line: 23,
34368
- column: 2
34369
- },
34370
- end: {
34371
- line: 55,
34372
- column: 4
34373
- }
34374
- },
34375
- "7": {
34376
- start: {
34377
- line: 27,
34378
- column: 26
34379
- },
34380
- end: {
34381
- line: 27,
34382
- column: 30
34383
- }
34384
- },
34385
- "8": {
34386
- start: {
34387
- line: 29,
34388
- column: 10
34389
- },
34390
- end: {
34391
- line: 51,
34392
- column: 12
34393
- }
34394
- }
34395
- },
34396
- fnMap: {
34397
- "0": {
34398
- name: "(anonymous_0)",
34399
- decl: {
34400
- start: {
34401
- line: 10,
34402
- column: 24
34403
- },
34404
- end: {
34405
- line: 10,
34406
- column: 25
34407
- }
34408
- },
34409
- loc: {
34410
- start: {
34411
- line: 10,
34412
- column: 51
34413
- },
34414
- end: {
34415
- line: 56,
34416
- column: 1
34417
- }
34418
- },
34419
- line: 10
34420
- },
34421
- "1": {
34422
- name: "(anonymous_1)",
34423
- decl: {
34424
- start: {
34425
- line: 14,
34426
- column: 9
34427
- },
34428
- end: {
34429
- line: 14,
34430
- column: 10
34431
- }
34432
- },
34433
- loc: {
34434
- start: {
34435
- line: 14,
34436
- column: 17
34437
- },
34438
- end: {
34439
- line: 20,
34440
- column: 5
34441
- }
34442
- },
34443
- line: 14
34444
- },
34445
- "2": {
34446
- name: "(anonymous_2)",
34447
- decl: {
34448
- start: {
34449
- line: 18,
34450
- column: 17
34451
- },
34452
- end: {
34453
- line: 18,
34454
- column: 18
34455
- }
34456
- },
34457
- loc: {
34458
- start: {
34459
- line: 18,
34460
- column: 23
34461
- },
34462
- end: {
34463
- line: 18,
34464
- column: 38
34465
- }
34466
- },
34467
- line: 18
34468
- },
34469
- "3": {
34470
- name: "(anonymous_3)",
34471
- decl: {
34472
- start: {
34473
- line: 21,
34474
- column: 12
34475
- },
34476
- end: {
34477
- line: 21,
34478
- column: 13
34479
- }
34480
- },
34481
- loc: {
34482
- start: {
34483
- line: 21,
34484
- column: 26
34485
- },
34486
- end: {
34487
- line: 21,
34488
- column: 31
34489
- }
34490
- },
34491
- line: 21
34492
- },
34493
- "4": {
34494
- name: "(anonymous_4)",
34495
- decl: {
34496
- start: {
34497
- line: 26,
34498
- column: 8
34499
- },
34500
- end: {
34501
- line: 26,
34502
- column: 9
34503
- }
34504
- },
34505
- loc: {
34506
- start: {
34507
- line: 26,
34508
- column: 77
34509
- },
34510
- end: {
34511
- line: 52,
34512
- column: 9
34513
- }
34514
- },
34515
- line: 26
34516
- }
34517
- },
34518
- branchMap: {
34519
- "0": {
34520
- loc: {
34521
- start: {
34522
- line: 17,
34523
- column: 10
34524
- },
34525
- end: {
34526
- line: 19,
34527
- column: 7
34528
- }
34529
- },
34530
- type: "binary-expr",
34531
- locations: [{
34532
- start: {
34533
- line: 17,
34534
- column: 10
34535
- },
34536
- end: {
34537
- line: 17,
34538
- column: 41
34539
- }
34540
- }, {
34541
- start: {
34542
- line: 17,
34543
- column: 45
34544
- },
34545
- end: {
34546
- line: 19,
34547
- column: 7
34548
- }
34549
- }],
34550
- line: 17
34551
- },
34552
- "1": {
34553
- loc: {
34554
- start: {
34555
- line: 26,
34556
- column: 11
34557
- },
34558
- end: {
34559
- line: 26,
34560
- column: 25
34561
- }
34562
- },
34563
- type: "default-arg",
34564
- locations: [{
34565
- start: {
34566
- line: 26,
34567
- column: 21
34568
- },
34569
- end: {
34570
- line: 26,
34571
- column: 25
34572
- }
34573
- }],
34574
- line: 26
34575
- },
34576
- "2": {
34577
- loc: {
34578
- start: {
34579
- line: 26,
34580
- column: 27
34581
- },
34582
- end: {
34583
- line: 26,
34584
- column: 37
34585
- }
34586
- },
34587
- type: "default-arg",
34588
- locations: [{
34589
- start: {
34590
- line: 26,
34591
- column: 35
34592
- },
34593
- end: {
34594
- line: 26,
34595
- column: 37
34596
- }
34597
- }],
34598
- line: 26
34599
- },
34600
- "3": {
34601
- loc: {
34602
- start: {
34603
- line: 26,
34604
- column: 39
34605
- },
34606
- end: {
34607
- line: 26,
34608
- column: 50
34609
- }
34610
- },
34611
- type: "default-arg",
34612
- locations: [{
34613
- start: {
34614
- line: 26,
34615
- column: 46
34616
- },
34617
- end: {
34618
- line: 26,
34619
- column: 50
34620
- }
34621
- }],
34622
- line: 26
34623
- },
34624
- "4": {
34625
- loc: {
34626
- start: {
34627
- line: 36,
34628
- column: 17
34629
- },
34630
- end: {
34631
- line: 40,
34632
- column: 17
34633
- }
34634
- },
34635
- type: "binary-expr",
34636
- locations: [{
34637
- start: {
34638
- line: 36,
34639
- column: 17
34640
- },
34641
- end: {
34642
- line: 36,
34643
- column: 21
34644
- }
34645
- }, {
34646
- start: {
34647
- line: 37,
34648
- column: 18
34649
- },
34650
- end: {
34651
- line: 39,
34652
- column: 25
34653
- }
34654
- }],
34655
- line: 36
34656
- }
34657
- },
34658
- s: {
34659
- "0": 0,
34660
- "1": 0,
34661
- "2": 0,
34662
- "3": 0,
34663
- "4": 0,
34664
- "5": 0,
34665
- "6": 0,
34666
- "7": 0,
34667
- "8": 0
34668
- },
34669
- f: {
34670
- "0": 0,
34671
- "1": 0,
34672
- "2": 0,
34673
- "3": 0,
34674
- "4": 0
34675
- },
34676
- b: {
34677
- "0": [0, 0],
34678
- "1": [0],
34679
- "2": [0],
34680
- "3": [0],
34681
- "4": [0, 0]
34682
- },
34683
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34684
- hash: "5f0c31bfb5495310ac01bbe41e15f2a52e067b3b"
34685
- };
34686
- var coverage = global[gcv] || (global[gcv] = {});
34687
- if (!coverage[path] || coverage[path].hash !== hash) {
34688
- coverage[path] = coverageData;
34689
- }
34690
- var actualCoverage = coverage[path];
34691
- {
34692
- // @ts-ignore
34693
- cov_1ninsyc6yz = function () {
34694
- return actualCoverage;
34695
- };
34696
- }
34697
- return actualCoverage;
34698
- }
34699
- cov_1ninsyc6yz();
34700
31918
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
34701
31919
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34702
- cov_1ninsyc6yz().s[0]++;
34703
31920
  var HelpSectionMenu = function HelpSectionMenu(_ref) {
34704
31921
  var helpLinkOverrides = _ref.helpLinkOverrides;
34705
- cov_1ninsyc6yz().f[0]++;
34706
- var _ref2 = (cov_1ninsyc6yz().s[1]++, KeyboardShortcuts__default["default"].usePaneState()),
34707
- _ref3 = _slicedToArray(_ref2, 2),
34708
- setIsOpen = _ref3[1];
34709
- var helpLinks = (cov_1ninsyc6yz().s[2]++, Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
34710
- cov_1ninsyc6yz().f[1]++;
34711
- cov_1ninsyc6yz().s[3]++;
34712
- return _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), (cov_1ninsyc6yz().b[0][0]++, key === "keyboardShortcutProps") && (cov_1ninsyc6yz().b[0][1]++, {
31922
+ var _KeyboardShortcuts$us = KeyboardShortcuts__default["default"].usePaneState(),
31923
+ _KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
31924
+ setIsOpen = _KeyboardShortcuts$us2[1];
31925
+ var helpLinks = Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
31926
+ return _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
34713
31927
  onClick: function onClick() {
34714
- cov_1ninsyc6yz().f[2]++;
34715
- cov_1ninsyc6yz().s[4]++;
34716
31928
  return setIsOpen(true);
34717
31929
  }
34718
- }));
34719
- }).filter(function (_ref4) {
34720
- var hide = _ref4.hide;
34721
- cov_1ninsyc6yz().f[3]++;
34722
- cov_1ninsyc6yz().s[5]++;
31930
+ });
31931
+ }).filter(function (_ref2) {
31932
+ var hide = _ref2.hide;
34723
31933
  return !hide;
34724
- }));
34725
- cov_1ninsyc6yz().s[6]++;
34726
- return /*#__PURE__*/React__default["default"].createElement("ul", null, helpLinks.map(function (_ref5, idx) {
34727
- var _ref5$onClick = _ref5.onClick,
34728
- onClick = _ref5$onClick === void 0 ? (cov_1ninsyc6yz().b[1][0]++, pure.noop) : _ref5$onClick,
34729
- _ref5$label = _ref5.label,
34730
- label = _ref5$label === void 0 ? (cov_1ninsyc6yz().b[2][0]++, "") : _ref5$label,
34731
- _ref5$icon = _ref5.icon,
34732
- icon = _ref5$icon === void 0 ? (cov_1ninsyc6yz().b[3][0]++, null) : _ref5$icon,
34733
- otherProps = _objectWithoutProperties(_ref5, _excluded$2);
34734
- cov_1ninsyc6yz().f[4]++;
34735
- var IconSVG = (cov_1ninsyc6yz().s[7]++, icon);
34736
- cov_1ninsyc6yz().s[8]++;
31934
+ });
31935
+ return /*#__PURE__*/React__default["default"].createElement("ul", null, helpLinks.map(function (_ref3, idx) {
31936
+ var _ref3$onClick = _ref3.onClick,
31937
+ onClick = _ref3$onClick === void 0 ? pure.noop : _ref3$onClick,
31938
+ _ref3$label = _ref3.label,
31939
+ label = _ref3$label === void 0 ? "" : _ref3$label,
31940
+ _ref3$icon = _ref3.icon,
31941
+ icon = _ref3$icon === void 0 ? null : _ref3$icon,
31942
+ otherProps = _objectWithoutProperties(_ref3, _excluded$2);
31943
+ var IconSVG = icon;
34737
31944
  return /*#__PURE__*/React__default["default"].createElement("li", {
34738
31945
  className: "neeto-molecules-help-sublist__item",
34739
31946
  key: idx
34740
31947
  }, /*#__PURE__*/React__default["default"].createElement("button", _extends({
34741
31948
  className: "neeto-molecules-help-sublist__item-btn",
34742
31949
  onClick: onClick
34743
- }, otherProps), (cov_1ninsyc6yz().b[4][0]++, icon) && (cov_1ninsyc6yz().b[4][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
31950
+ }, otherProps), icon && /*#__PURE__*/React__default["default"].createElement("span", {
34744
31951
  className: "neeto-molecules-help-sublist__item-btn-icon"
34745
- }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null))), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31952
+ }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
34746
31953
  className: "neeto-molecules-help-sublist__item-btn-label",
34747
31954
  component: "span",
34748
31955
  style: "body2",
@@ -34751,102 +31958,8 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
34751
31958
  }));
34752
31959
  };
34753
31960
 
34754
- function cov_dz0c5lxbl() {
34755
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/ProfileSection/index.jsx";
34756
- var hash = "98e69ceeab00cfa0475784ca3d9842317940ebe1";
34757
- var global = new Function("return this")();
34758
- var gcv = "__coverage__";
34759
- var coverageData = {
34760
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/ProfileSection/index.jsx",
34761
- statementMap: {
34762
- "0": {
34763
- start: {
34764
- line: 7,
34765
- column: 23
34766
- },
34767
- end: {
34768
- line: 21,
34769
- column: 2
34770
- }
34771
- },
34772
- "1": {
34773
- start: {
34774
- line: 8,
34775
- column: 2
34776
- },
34777
- end: {
34778
- line: 20,
34779
- column: 11
34780
- }
34781
- },
34782
- "2": {
34783
- start: {
34784
- line: 23,
34785
- column: 0
34786
- },
34787
- end: {
34788
- line: 23,
34789
- column: 46
34790
- }
34791
- }
34792
- },
34793
- fnMap: {
34794
- "0": {
34795
- name: "(anonymous_0)",
34796
- decl: {
34797
- start: {
34798
- line: 7,
34799
- column: 34
34800
- },
34801
- end: {
34802
- line: 7,
34803
- column: 35
34804
- }
34805
- },
34806
- loc: {
34807
- start: {
34808
- line: 8,
34809
- column: 2
34810
- },
34811
- end: {
34812
- line: 20,
34813
- column: 11
34814
- }
34815
- },
34816
- line: 8
34817
- }
34818
- },
34819
- branchMap: {},
34820
- s: {
34821
- "0": 0,
34822
- "1": 0,
34823
- "2": 0
34824
- },
34825
- f: {
34826
- "0": 0
34827
- },
34828
- b: {},
34829
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34830
- hash: "98e69ceeab00cfa0475784ca3d9842317940ebe1"
34831
- };
34832
- var coverage = global[gcv] || (global[gcv] = {});
34833
- if (!coverage[path] || coverage[path].hash !== hash) {
34834
- coverage[path] = coverageData;
34835
- }
34836
- var actualCoverage = coverage[path];
34837
- {
34838
- // @ts-ignore
34839
- cov_dz0c5lxbl = function () {
34840
- return actualCoverage;
34841
- };
34842
- }
34843
- return actualCoverage;
34844
- }
34845
- cov_dz0c5lxbl();
34846
- var ProfileSection = (cov_dz0c5lxbl().s[0]++, /*#__PURE__*/React.forwardRef(function (_ref, ref) {
31961
+ var ProfileSection = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
34847
31962
  var profileInfo = _ref.profileInfo;
34848
- cov_dz0c5lxbl().f[0]++;
34849
- cov_dz0c5lxbl().s[1]++;
34850
31963
  return /*#__PURE__*/React__default["default"].createElement("button", {
34851
31964
  className: "neeto-molecules-sidebar__profile-wrapper neeto-ui-w-full neeto-ui-text-left",
34852
31965
  "data-cy": "profile-section",
@@ -34858,8 +31971,7 @@ var ProfileSection = (cov_dz0c5lxbl().s[0]++, /*#__PURE__*/React.forwardRef(func
34858
31971
  size: "large",
34859
31972
  user: profileInfo
34860
31973
  })));
34861
- }));
34862
- cov_dz0c5lxbl().s[2]++;
31974
+ });
34863
31975
  ProfileSection.displayName = "ProfileSection";
34864
31976
 
34865
31977
  function _arrayWithoutHoles(arr) {
@@ -34879,211 +31991,17 @@ function _toConsumableArray(arr) {
34879
31991
  }
34880
31992
 
34881
31993
  var _excluded$1 = ["onClick", "label", "icon"];
34882
- function cov_2g1mnq5m0z() {
34883
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/ProfileSection/LinkSection.jsx";
34884
- var hash = "4d2042675a4185a0afe191f4f3e976ce4dde51b3";
34885
- var global = new Function("return this")();
34886
- var gcv = "__coverage__";
34887
- var coverageData = {
34888
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/ProfileSection/LinkSection.jsx",
34889
- statementMap: {
34890
- "0": {
34891
- start: {
34892
- line: 7,
34893
- column: 20
34894
- },
34895
- end: {
34896
- line: 37,
34897
- column: 1
34898
- }
34899
- },
34900
- "1": {
34901
- start: {
34902
- line: 8,
34903
- column: 2
34904
- },
34905
- end: {
34906
- line: 36,
34907
- column: 7
34908
- }
34909
- },
34910
- "2": {
34911
- start: {
34912
- line: 10,
34913
- column: 22
34914
- },
34915
- end: {
34916
- line: 10,
34917
- column: 26
34918
- }
34919
- },
34920
- "3": {
34921
- start: {
34922
- line: 12,
34923
- column: 6
34924
- },
34925
- end: {
34926
- line: 34,
34927
- column: 8
34928
- }
34929
- }
34930
- },
34931
- fnMap: {
34932
- "0": {
34933
- name: "(anonymous_0)",
34934
- decl: {
34935
- start: {
34936
- line: 7,
34937
- column: 20
34938
- },
34939
- end: {
34940
- line: 7,
34941
- column: 21
34942
- }
34943
- },
34944
- loc: {
34945
- start: {
34946
- line: 8,
34947
- column: 2
34948
- },
34949
- end: {
34950
- line: 36,
34951
- column: 7
34952
- }
34953
- },
34954
- line: 8
34955
- },
34956
- "1": {
34957
- name: "(anonymous_1)",
34958
- decl: {
34959
- start: {
34960
- line: 9,
34961
- column: 15
34962
- },
34963
- end: {
34964
- line: 9,
34965
- column: 16
34966
- }
34967
- },
34968
- loc: {
34969
- start: {
34970
- line: 9,
34971
- column: 72
34972
- },
34973
- end: {
34974
- line: 35,
34975
- column: 5
34976
- }
34977
- },
34978
- line: 9
34979
- }
34980
- },
34981
- branchMap: {
34982
- "0": {
34983
- loc: {
34984
- start: {
34985
- line: 9,
34986
- column: 34
34987
- },
34988
- end: {
34989
- line: 9,
34990
- column: 45
34991
- }
34992
- },
34993
- type: "default-arg",
34994
- locations: [{
34995
- start: {
34996
- line: 9,
34997
- column: 41
34998
- },
34999
- end: {
35000
- line: 9,
35001
- column: 45
35002
- }
35003
- }],
35004
- line: 9
35005
- },
35006
- "1": {
35007
- loc: {
35008
- start: {
35009
- line: 19,
35010
- column: 13
35011
- },
35012
- end: {
35013
- line: 23,
35014
- column: 13
35015
- }
35016
- },
35017
- type: "binary-expr",
35018
- locations: [{
35019
- start: {
35020
- line: 19,
35021
- column: 13
35022
- },
35023
- end: {
35024
- line: 19,
35025
- column: 17
35026
- }
35027
- }, {
35028
- start: {
35029
- line: 20,
35030
- column: 14
35031
- },
35032
- end: {
35033
- line: 22,
35034
- column: 21
35035
- }
35036
- }],
35037
- line: 19
35038
- }
35039
- },
35040
- s: {
35041
- "0": 0,
35042
- "1": 0,
35043
- "2": 0,
35044
- "3": 0
35045
- },
35046
- f: {
35047
- "0": 0,
35048
- "1": 0
35049
- },
35050
- b: {
35051
- "0": [0],
35052
- "1": [0, 0]
35053
- },
35054
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
35055
- hash: "4d2042675a4185a0afe191f4f3e976ce4dde51b3"
35056
- };
35057
- var coverage = global[gcv] || (global[gcv] = {});
35058
- if (!coverage[path] || coverage[path].hash !== hash) {
35059
- coverage[path] = coverageData;
35060
- }
35061
- var actualCoverage = coverage[path];
35062
- {
35063
- // @ts-ignore
35064
- cov_2g1mnq5m0z = function () {
35065
- return actualCoverage;
35066
- };
35067
- }
35068
- return actualCoverage;
35069
- }
35070
- cov_2g1mnq5m0z();
35071
- cov_2g1mnq5m0z().s[0]++;
35072
31994
  var LinkSection = function LinkSection(_ref) {
35073
31995
  var links = _ref.links;
35074
- cov_2g1mnq5m0z().f[0]++;
35075
- cov_2g1mnq5m0z().s[1]++;
35076
31996
  return /*#__PURE__*/React__default["default"].createElement("ul", {
35077
31997
  className: "neeto-molecules-profile-sublist"
35078
31998
  }, links.map(function (_ref2, idx) {
35079
31999
  var onClick = _ref2.onClick,
35080
32000
  label = _ref2.label,
35081
32001
  _ref2$icon = _ref2.icon,
35082
- icon = _ref2$icon === void 0 ? (cov_2g1mnq5m0z().b[0][0]++, null) : _ref2$icon,
32002
+ icon = _ref2$icon === void 0 ? null : _ref2$icon,
35083
32003
  otherProps = _objectWithoutProperties(_ref2, _excluded$1);
35084
- cov_2g1mnq5m0z().f[1]++;
35085
- var IconSVG = (cov_2g1mnq5m0z().s[2]++, icon);
35086
- cov_2g1mnq5m0z().s[3]++;
32004
+ var IconSVG = icon;
35087
32005
  return /*#__PURE__*/React__default["default"].createElement("li", {
35088
32006
  className: "neeto-molecules-profile-sublist__item",
35089
32007
  key: idx
@@ -35091,9 +32009,9 @@ var LinkSection = function LinkSection(_ref) {
35091
32009
  onClick: onClick
35092
32010
  }, otherProps, {
35093
32011
  className: "neeto-molecules-profile-sublist__item-btn"
35094
- }), (cov_2g1mnq5m0z().b[1][0]++, icon) && (cov_2g1mnq5m0z().b[1][1]++, /*#__PURE__*/React__default["default"].createElement("span", {
32012
+ }), icon && /*#__PURE__*/React__default["default"].createElement("span", {
35095
32013
  className: "neeto-molecules-profile-sublist__item-btn-icon"
35096
- }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null))), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32014
+ }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35097
32015
  className: "neeto-molecules-profile-sublist__item-btn-label",
35098
32016
  component: "span",
35099
32017
  style: "body2",
@@ -35102,214 +32020,14 @@ var LinkSection = function LinkSection(_ref) {
35102
32020
  }));
35103
32021
  };
35104
32022
 
35105
- function cov_co3i4qloj() {
35106
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/ProfileSection/ProfileMenu.jsx";
35107
- var hash = "6d9eff3afb11e5e7252341ce484feff8da220288";
35108
- var global = new Function("return this")();
35109
- var gcv = "__coverage__";
35110
- var coverageData = {
35111
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/ProfileSection/ProfileMenu.jsx",
35112
- statementMap: {
35113
- "0": {
35114
- start: {
35115
- line: 11,
35116
- column: 20
35117
- },
35118
- end: {
35119
- line: 53,
35120
- column: 1
35121
- }
35122
- },
35123
- "1": {
35124
- start: {
35125
- line: 12,
35126
- column: 64
35127
- },
35128
- end: {
35129
- line: 12,
35130
- column: 75
35131
- }
35132
- },
35133
- "2": {
35134
- start: {
35135
- line: 14,
35136
- column: 2
35137
- },
35138
- end: {
35139
- line: 52,
35140
- column: 4
35141
- }
35142
- }
35143
- },
35144
- fnMap: {
35145
- "0": {
35146
- name: "(anonymous_0)",
35147
- decl: {
35148
- start: {
35149
- line: 11,
35150
- column: 20
35151
- },
35152
- end: {
35153
- line: 11,
35154
- column: 21
35155
- }
35156
- },
35157
- loc: {
35158
- start: {
35159
- line: 11,
35160
- column: 56
35161
- },
35162
- end: {
35163
- line: 53,
35164
- column: 1
35165
- }
35166
- },
35167
- line: 11
35168
- }
35169
- },
35170
- branchMap: {
35171
- "0": {
35172
- loc: {
35173
- start: {
35174
- line: 35,
35175
- column: 11
35176
- },
35177
- end: {
35178
- line: 43,
35179
- column: 11
35180
- }
35181
- },
35182
- type: "binary-expr",
35183
- locations: [{
35184
- start: {
35185
- line: 35,
35186
- column: 11
35187
- },
35188
- end: {
35189
- line: 35,
35190
- column: 16
35191
- }
35192
- }, {
35193
- start: {
35194
- line: 36,
35195
- column: 12
35196
- },
35197
- end: {
35198
- line: 42,
35199
- column: 25
35200
- }
35201
- }],
35202
- line: 35
35203
- },
35204
- "1": {
35205
- loc: {
35206
- start: {
35207
- line: 49,
35208
- column: 7
35209
- },
35210
- end: {
35211
- line: 49,
35212
- column: 74
35213
- }
35214
- },
35215
- type: "binary-expr",
35216
- locations: [{
35217
- start: {
35218
- line: 49,
35219
- column: 7
35220
- },
35221
- end: {
35222
- line: 49,
35223
- column: 15
35224
- }
35225
- }, {
35226
- start: {
35227
- line: 49,
35228
- column: 19
35229
- },
35230
- end: {
35231
- line: 49,
35232
- column: 74
35233
- }
35234
- }],
35235
- line: 49
35236
- },
35237
- "2": {
35238
- loc: {
35239
- start: {
35240
- line: 50,
35241
- column: 7
35242
- },
35243
- end: {
35244
- line: 50,
35245
- column: 57
35246
- }
35247
- },
35248
- type: "binary-expr",
35249
- locations: [{
35250
- start: {
35251
- line: 50,
35252
- column: 7
35253
- },
35254
- end: {
35255
- line: 50,
35256
- column: 18
35257
- }
35258
- }, {
35259
- start: {
35260
- line: 50,
35261
- column: 22
35262
- },
35263
- end: {
35264
- line: 50,
35265
- column: 57
35266
- }
35267
- }],
35268
- line: 50
35269
- }
35270
- },
35271
- s: {
35272
- "0": 0,
35273
- "1": 0,
35274
- "2": 0
35275
- },
35276
- f: {
35277
- "0": 0
35278
- },
35279
- b: {
35280
- "0": [0, 0],
35281
- "1": [0, 0],
35282
- "2": [0, 0]
35283
- },
35284
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
35285
- hash: "6d9eff3afb11e5e7252341ce484feff8da220288"
35286
- };
35287
- var coverage = global[gcv] || (global[gcv] = {});
35288
- if (!coverage[path] || coverage[path].hash !== hash) {
35289
- coverage[path] = coverageData;
35290
- }
35291
- var actualCoverage = coverage[path];
35292
- {
35293
- // @ts-ignore
35294
- cov_co3i4qloj = function () {
35295
- return actualCoverage;
35296
- };
35297
- }
35298
- return actualCoverage;
35299
- }
35300
- cov_co3i4qloj();
35301
- cov_co3i4qloj().s[0]++;
35302
32023
  var ProfileMenu = function ProfileMenu(_ref) {
35303
32024
  var profileInfo = _ref.profileInfo,
35304
32025
  extraTopLinks = _ref.extraTopLinks;
35305
- cov_co3i4qloj().f[0]++;
35306
- var _ref2 = (cov_co3i4qloj().s[1]++, profileInfo),
35307
- name = _ref2.name,
35308
- email = _ref2.email,
35309
- topLinks = _ref2.topLinks,
35310
- bottomLinks = _ref2.bottomLinks,
35311
- customContent = _ref2.customContent;
35312
- cov_co3i4qloj().s[2]++;
32026
+ var name = profileInfo.name,
32027
+ email = profileInfo.email,
32028
+ topLinks = profileInfo.topLinks,
32029
+ bottomLinks = profileInfo.bottomLinks,
32030
+ customContent = profileInfo.customContent;
35313
32031
  return /*#__PURE__*/React__default["default"].createElement("div", {
35314
32032
  className: "neeto-ui-flex neeto-ui-flex-col neeto-molecules-profile-popup"
35315
32033
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -35328,183 +32046,27 @@ var ProfileMenu = function ProfileMenu(_ref) {
35328
32046
  style: "h5",
35329
32047
  title: name,
35330
32048
  weight: "semibold"
35331
- }, pure.truncate(name, 18)), (cov_co3i4qloj().b[0][0]++, email) && (cov_co3i4qloj().b[0][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32049
+ }, pure.truncate(name, 18)), email && /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35332
32050
  className: "neeto-ui-w-full neeto-ui-truncate neeto-ui-text-gray-600",
35333
32051
  lineHeight: "tight",
35334
32052
  style: "body3"
35335
- }, email)))), /*#__PURE__*/React__default["default"].createElement("div", {
32053
+ }, email))), /*#__PURE__*/React__default["default"].createElement("div", {
35336
32054
  className: "neeto-molecules-sidebar__profile-wrapper-custom-content"
35337
- }, customContent), (cov_co3i4qloj().b[1][0]++, topLinks) && (cov_co3i4qloj().b[1][1]++, /*#__PURE__*/React__default["default"].createElement(LinkSection, {
32055
+ }, customContent), topLinks && /*#__PURE__*/React__default["default"].createElement(LinkSection, {
35338
32056
  links: [].concat(_toConsumableArray(extraTopLinks), _toConsumableArray(topLinks))
35339
- })), (cov_co3i4qloj().b[2][0]++, bottomLinks) && (cov_co3i4qloj().b[2][1]++, /*#__PURE__*/React__default["default"].createElement(LinkSection, {
32057
+ }), bottomLinks && /*#__PURE__*/React__default["default"].createElement(LinkSection, {
35340
32058
  links: bottomLinks
35341
- })));
32059
+ }));
35342
32060
  };
35343
32061
 
35344
- function cov_3jxto2evp() {
35345
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Footer/index.jsx";
35346
- var hash = "b026adc6d85baafab01a0035d09f815e9c0bd14b";
35347
- var global = new Function("return this")();
35348
- var gcv = "__coverage__";
35349
- var coverageData = {
35350
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Footer/index.jsx",
35351
- statementMap: {
35352
- "0": {
35353
- start: {
35354
- line: 14,
35355
- column: 15
35356
- },
35357
- end: {
35358
- line: 55,
35359
- column: 1
35360
- }
35361
- },
35362
- "1": {
35363
- start: {
35364
- line: 21,
35365
- column: 22
35366
- },
35367
- end: {
35368
- line: 21,
35369
- column: 58
35370
- }
35371
- },
35372
- "2": {
35373
- start: {
35374
- line: 23,
35375
- column: 2
35376
- },
35377
- end: {
35378
- line: 54,
35379
- column: 4
35380
- }
35381
- }
35382
- },
35383
- fnMap: {
35384
- "0": {
35385
- name: "(anonymous_0)",
35386
- decl: {
35387
- start: {
35388
- line: 14,
35389
- column: 15
35390
- },
35391
- end: {
35392
- line: 14,
35393
- column: 16
35394
- }
35395
- },
35396
- loc: {
35397
- start: {
35398
- line: 20,
35399
- column: 6
35400
- },
35401
- end: {
35402
- line: 55,
35403
- column: 1
35404
- }
35405
- },
35406
- line: 20
35407
- }
35408
- },
35409
- branchMap: {
35410
- "0": {
35411
- loc: {
35412
- start: {
35413
- line: 18,
35414
- column: 2
35415
- },
35416
- end: {
35417
- line: 18,
35418
- column: 25
35419
- }
35420
- },
35421
- type: "default-arg",
35422
- locations: [{
35423
- start: {
35424
- line: 18,
35425
- column: 20
35426
- },
35427
- end: {
35428
- line: 18,
35429
- column: 25
35430
- }
35431
- }],
35432
- line: 18
35433
- },
35434
- "1": {
35435
- loc: {
35436
- start: {
35437
- line: 35,
35438
- column: 7
35439
- },
35440
- end: {
35441
- line: 37,
35442
- column: 7
35443
- }
35444
- },
35445
- type: "binary-expr",
35446
- locations: [{
35447
- start: {
35448
- line: 35,
35449
- column: 7
35450
- },
35451
- end: {
35452
- line: 35,
35453
- column: 22
35454
- }
35455
- }, {
35456
- start: {
35457
- line: 36,
35458
- column: 8
35459
- },
35460
- end: {
35461
- line: 36,
35462
- column: 71
35463
- }
35464
- }],
35465
- line: 35
35466
- }
35467
- },
35468
- s: {
35469
- "0": 0,
35470
- "1": 0,
35471
- "2": 0
35472
- },
35473
- f: {
35474
- "0": 0
35475
- },
35476
- b: {
35477
- "0": [0],
35478
- "1": [0, 0]
35479
- },
35480
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
35481
- hash: "b026adc6d85baafab01a0035d09f815e9c0bd14b"
35482
- };
35483
- var coverage = global[gcv] || (global[gcv] = {});
35484
- if (!coverage[path] || coverage[path].hash !== hash) {
35485
- coverage[path] = coverageData;
35486
- }
35487
- var actualCoverage = coverage[path];
35488
- {
35489
- // @ts-ignore
35490
- cov_3jxto2evp = function () {
35491
- return actualCoverage;
35492
- };
35493
- }
35494
- return actualCoverage;
35495
- }
35496
- cov_3jxto2evp();
35497
- cov_3jxto2evp().s[0]++;
35498
32062
  var Footer = function Footer(_ref) {
35499
32063
  var extraTopLinks = _ref.extraTopLinks,
35500
32064
  helpLinkOverrides = _ref.helpLinkOverrides,
35501
32065
  profileInfoOverrides = _ref.profileInfoOverrides,
35502
32066
  _ref$showAppSwitcher = _ref.showAppSwitcher,
35503
- showAppSwitcher = _ref$showAppSwitcher === void 0 ? (cov_3jxto2evp().b[0][0]++, false) : _ref$showAppSwitcher,
32067
+ showAppSwitcher = _ref$showAppSwitcher === void 0 ? false : _ref$showAppSwitcher,
35504
32068
  onAppSwitcherToggle = _ref.onAppSwitcherToggle;
35505
- cov_3jxto2evp().f[0]++;
35506
- var profileInfo = (cov_3jxto2evp().s[1]++, getProfileInfo(profileInfoOverrides));
35507
- cov_3jxto2evp().s[2]++;
32069
+ var profileInfo = getProfileInfo(profileInfoOverrides);
35508
32070
  return /*#__PURE__*/React__default["default"].createElement("div", {
35509
32071
  className: "neeto-molecules-sidebar__footer"
35510
32072
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
@@ -35516,9 +32078,9 @@ var Footer = function Footer(_ref) {
35516
32078
  hideOnClick: false,
35517
32079
  position: "right",
35518
32080
  theme: "light"
35519
- }, /*#__PURE__*/React__default["default"].createElement(HelpSection, null)), (cov_3jxto2evp().b[1][0]++, showAppSwitcher) && (cov_3jxto2evp().b[1][1]++, /*#__PURE__*/React__default["default"].createElement(AppSwitcherButton, {
32081
+ }, /*#__PURE__*/React__default["default"].createElement(HelpSection, null)), showAppSwitcher && /*#__PURE__*/React__default["default"].createElement(AppSwitcherButton, {
35520
32082
  onAppSwitcherToggle: onAppSwitcherToggle
35521
- })), /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
32083
+ }), /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
35522
32084
  interactive: true,
35523
32085
  className: "neeto-molecules-profile-popup-wrapper",
35524
32086
  hideOnClick: false,
@@ -35533,200 +32095,13 @@ var Footer = function Footer(_ref) {
35533
32095
  })));
35534
32096
  };
35535
32097
 
35536
- function cov_17k34ad0bz() {
35537
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Header.jsx";
35538
- var hash = "c1f927311f5d22150d89fd74d94931189bdccf83";
35539
- var global = new Function("return this")();
35540
- var gcv = "__coverage__";
35541
- var coverageData = {
35542
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Header.jsx",
35543
- statementMap: {
35544
- "0": {
35545
- start: {
35546
- line: 10,
35547
- column: 15
35548
- },
35549
- end: {
35550
- line: 36,
35551
- column: 1
35552
- }
35553
- },
35554
- "1": {
35555
- start: {
35556
- line: 11,
35557
- column: 19
35558
- },
35559
- end: {
35560
- line: 13,
35561
- column: 5
35562
- }
35563
- },
35564
- "2": {
35565
- start: {
35566
- line: 15,
35567
- column: 22
35568
- },
35569
- end: {
35570
- line: 15,
35571
- column: 44
35572
- }
35573
- },
35574
- "3": {
35575
- start: {
35576
- line: 17,
35577
- column: 18
35578
- },
35579
- end: {
35580
- line: 22,
35581
- column: 3
35582
- }
35583
- },
35584
- "4": {
35585
- start: {
35586
- line: 24,
35587
- column: 2
35588
- },
35589
- end: {
35590
- line: 35,
35591
- column: 4
35592
- }
35593
- }
35594
- },
35595
- fnMap: {
35596
- "0": {
35597
- name: "(anonymous_0)",
35598
- decl: {
35599
- start: {
35600
- line: 10,
35601
- column: 15
35602
- },
35603
- end: {
35604
- line: 10,
35605
- column: 16
35606
- }
35607
- },
35608
- loc: {
35609
- start: {
35610
- line: 10,
35611
- column: 21
35612
- },
35613
- end: {
35614
- line: 36,
35615
- column: 1
35616
- }
35617
- },
35618
- line: 10
35619
- }
35620
- },
35621
- branchMap: {
35622
- "0": {
35623
- loc: {
35624
- start: {
35625
- line: 18,
35626
- column: 4
35627
- },
35628
- end: {
35629
- line: 21,
35630
- column: 36
35631
- }
35632
- },
35633
- type: "binary-expr",
35634
- locations: [{
35635
- start: {
35636
- line: 18,
35637
- column: 4
35638
- },
35639
- end: {
35640
- line: 21,
35641
- column: 10
35642
- }
35643
- }, {
35644
- start: {
35645
- line: 21,
35646
- column: 14
35647
- },
35648
- end: {
35649
- line: 21,
35650
- column: 36
35651
- }
35652
- }],
35653
- line: 18
35654
- },
35655
- "1": {
35656
- loc: {
35657
- start: {
35658
- line: 31,
35659
- column: 11
35660
- },
35661
- end: {
35662
- line: 31,
35663
- column: 52
35664
- }
35665
- },
35666
- type: "cond-expr",
35667
- locations: [{
35668
- start: {
35669
- line: 31,
35670
- column: 25
35671
- },
35672
- end: {
35673
- line: 31,
35674
- column: 40
35675
- }
35676
- }, {
35677
- start: {
35678
- line: 31,
35679
- column: 43
35680
- },
35681
- end: {
35682
- line: 31,
35683
- column: 52
35684
- }
35685
- }],
35686
- line: 31
35687
- }
35688
- },
35689
- s: {
35690
- "0": 0,
35691
- "1": 0,
35692
- "2": 0,
35693
- "3": 0,
35694
- "4": 0
35695
- },
35696
- f: {
35697
- "0": 0
35698
- },
35699
- b: {
35700
- "0": [0, 0],
35701
- "1": [0, 0]
35702
- },
35703
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
35704
- hash: "c1f927311f5d22150d89fd74d94931189bdccf83"
35705
- };
35706
- var coverage = global[gcv] || (global[gcv] = {});
35707
- if (!coverage[path] || coverage[path].hash !== hash) {
35708
- coverage[path] = coverageData;
35709
- }
35710
- var actualCoverage = coverage[path];
35711
- {
35712
- // @ts-ignore
35713
- cov_17k34ad0bz = function () {
35714
- return actualCoverage;
35715
- };
35716
- }
35717
- return actualCoverage;
35718
- }
35719
- cov_17k34ad0bz();
35720
- cov_17k34ad0bz().s[0]++;
35721
32098
  var Header = function Header() {
35722
- var _ref, _findBy2;
35723
- cov_17k34ad0bz().f[0]++;
35724
- var logoName = (cov_17k34ad0bz().s[1]++, "Neeto".concat(pure.capitalize(globalProps.appName.substr(5).toLowerCase())));
35725
- var ProductLogo = (cov_17k34ad0bz().s[2]++, ProductLogos__namespace[logoName]);
35726
- var homeUrl = (cov_17k34ad0bz().s[3]++, new URL((_ref = (cov_17k34ad0bz().b[0][0]++, (_findBy2 = pure._findBy({
32099
+ var _findBy$url, _findBy2;
32100
+ var logoName = "Neeto".concat(pure.capitalize(globalProps.appName.substr(5).toLowerCase()));
32101
+ var ProductLogo = ProductLogos__namespace[logoName];
32102
+ var homeUrl = new URL((_findBy$url = (_findBy2 = pure._findBy({
35727
32103
  name: globalProps.appName.split("neeto")[1]
35728
- }, globalProps.neetoApps)) === null || _findBy2 === void 0 ? void 0 : _findBy2.url)) !== null && _ref !== void 0 ? _ref : (cov_17k34ad0bz().b[0][1]++, window.location.origin)));
35729
- cov_17k34ad0bz().s[4]++;
32104
+ }, globalProps.neetoApps)) === null || _findBy2 === void 0 ? void 0 : _findBy2.url) !== null && _findBy$url !== void 0 ? _findBy$url : window.location.origin);
35730
32105
  return /*#__PURE__*/React__default["default"].createElement("div", {
35731
32106
  className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",
35732
32107
  "data-cy": "sidebar-info"
@@ -35734,249 +32109,13 @@ var Header = function Header() {
35734
32109
  className: "neeto-molecules-sidebar__logo flex flex-shrink-0 items-center justify-center"
35735
32110
  }, /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Link, {
35736
32111
  to: homeUrl.pathname
35737
- }, ProductLogo ? (cov_17k34ad0bz().b[1][0]++, /*#__PURE__*/React__default["default"].createElement(ProductLogo, null)) : (cov_17k34ad0bz().b[1][1]++, /*#__PURE__*/React__default["default"].createElement(ProductLogos.Neeto, null)))));
32112
+ }, ProductLogo ? /*#__PURE__*/React__default["default"].createElement(ProductLogo, null) : /*#__PURE__*/React__default["default"].createElement(ProductLogos.Neeto, null))));
35738
32113
  };
35739
32114
 
35740
32115
  var _excluded = ["label", "to", "icon", "description"];
35741
- function cov_27l2553py() {
35742
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Links.jsx";
35743
- var hash = "68502e30aeb5bb2cd1229fdb3fd5a0e63c3c69aa";
35744
- var global = new Function("return this")();
35745
- var gcv = "__coverage__";
35746
- var coverageData = {
35747
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Links.jsx",
35748
- statementMap: {
35749
- "0": {
35750
- start: {
35751
- line: 8,
35752
- column: 14
35753
- },
35754
- end: {
35755
- line: 47,
35756
- column: 1
35757
- }
35758
- },
35759
- "1": {
35760
- start: {
35761
- line: 9,
35762
- column: 19
35763
- },
35764
- end: {
35765
- line: 9,
35766
- column: 32
35767
- }
35768
- },
35769
- "2": {
35770
- start: {
35771
- line: 11,
35772
- column: 2
35773
- },
35774
- end: {
35775
- line: 46,
35776
- column: 4
35777
- }
35778
- },
35779
- "3": {
35780
- start: {
35781
- line: 15,
35782
- column: 26
35783
- },
35784
- end: {
35785
- line: 15,
35786
- column: 30
35787
- }
35788
- },
35789
- "4": {
35790
- start: {
35791
- line: 16,
35792
- column: 22
35793
- },
35794
- end: {
35795
- line: 16,
35796
- column: 55
35797
- }
35798
- },
35799
- "5": {
35800
- start: {
35801
- line: 17,
35802
- column: 27
35803
- },
35804
- end: {
35805
- line: 17,
35806
- column: 75
35807
- }
35808
- },
35809
- "6": {
35810
- start: {
35811
- line: 17,
35812
- column: 33
35813
- },
35814
- end: {
35815
- line: 17,
35816
- column: 75
35817
- }
35818
- },
35819
- "7": {
35820
- start: {
35821
- line: 19,
35822
- column: 10
35823
- },
35824
- end: {
35825
- line: 42,
35826
- column: 12
35827
- }
35828
- }
35829
- },
35830
- fnMap: {
35831
- "0": {
35832
- name: "(anonymous_0)",
35833
- decl: {
35834
- start: {
35835
- line: 8,
35836
- column: 14
35837
- },
35838
- end: {
35839
- line: 8,
35840
- column: 15
35841
- }
35842
- },
35843
- loc: {
35844
- start: {
35845
- line: 8,
35846
- column: 32
35847
- },
35848
- end: {
35849
- line: 47,
35850
- column: 1
35851
- }
35852
- },
35853
- line: 8
35854
- },
35855
- "1": {
35856
- name: "(anonymous_1)",
35857
- decl: {
35858
- start: {
35859
- line: 14,
35860
- column: 8
35861
- },
35862
- end: {
35863
- line: 14,
35864
- column: 9
35865
- }
35866
- },
35867
- loc: {
35868
- start: {
35869
- line: 14,
35870
- column: 72
35871
- },
35872
- end: {
35873
- line: 43,
35874
- column: 9
35875
- }
35876
- },
35877
- line: 14
35878
- },
35879
- "2": {
35880
- name: "(anonymous_2)",
35881
- decl: {
35882
- start: {
35883
- line: 17,
35884
- column: 27
35885
- },
35886
- end: {
35887
- line: 17,
35888
- column: 28
35889
- }
35890
- },
35891
- loc: {
35892
- start: {
35893
- line: 17,
35894
- column: 33
35895
- },
35896
- end: {
35897
- line: 17,
35898
- column: 75
35899
- }
35900
- },
35901
- line: 17
35902
- }
35903
- },
35904
- branchMap: {
35905
- "0": {
35906
- loc: {
35907
- start: {
35908
- line: 32,
35909
- column: 17
35910
- },
35911
- end: {
35912
- line: 39,
35913
- column: 17
35914
- }
35915
- },
35916
- type: "binary-expr",
35917
- locations: [{
35918
- start: {
35919
- line: 32,
35920
- column: 17
35921
- },
35922
- end: {
35923
- line: 32,
35924
- column: 21
35925
- }
35926
- }, {
35927
- start: {
35928
- line: 33,
35929
- column: 18
35930
- },
35931
- end: {
35932
- line: 38,
35933
- column: 24
35934
- }
35935
- }],
35936
- line: 32
35937
- }
35938
- },
35939
- s: {
35940
- "0": 0,
35941
- "1": 0,
35942
- "2": 0,
35943
- "3": 0,
35944
- "4": 0,
35945
- "5": 0,
35946
- "6": 0,
35947
- "7": 0
35948
- },
35949
- f: {
35950
- "0": 0,
35951
- "1": 0,
35952
- "2": 0
35953
- },
35954
- b: {
35955
- "0": [0, 0]
35956
- },
35957
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
35958
- hash: "68502e30aeb5bb2cd1229fdb3fd5a0e63c3c69aa"
35959
- };
35960
- var coverage = global[gcv] || (global[gcv] = {});
35961
- if (!coverage[path] || coverage[path].hash !== hash) {
35962
- coverage[path] = coverageData;
35963
- }
35964
- var actualCoverage = coverage[path];
35965
- {
35966
- // @ts-ignore
35967
- cov_27l2553py = function () {
35968
- return actualCoverage;
35969
- };
35970
- }
35971
- return actualCoverage;
35972
- }
35973
- cov_27l2553py();
35974
- cov_27l2553py().s[0]++;
35975
32116
  var Links = function Links(_ref) {
35976
32117
  var navLinks = _ref.navLinks;
35977
- cov_27l2553py().f[0]++;
35978
- var location = (cov_27l2553py().s[1]++, reactRouterDom.useLocation());
35979
- cov_27l2553py().s[2]++;
32118
+ var location = reactRouterDom.useLocation();
35980
32119
  return /*#__PURE__*/React__default["default"].createElement("div", {
35981
32120
  className: "neeto-molecules-sidebar__links"
35982
32121
  }, navLinks.map(function (_ref2, mainIndex) {
@@ -35985,16 +32124,11 @@ var Links = function Links(_ref) {
35985
32124
  icon = _ref2.icon,
35986
32125
  description = _ref2.description,
35987
32126
  otherProps = _objectWithoutProperties(_ref2, _excluded);
35988
- cov_27l2553py().f[1]++;
35989
- var IconSVG = (cov_27l2553py().s[3]++, icon);
35990
- var url = (cov_27l2553py().s[4]++, new URL(to, window.location.href));
35991
- cov_27l2553py().s[5]++;
32127
+ var IconSVG = icon;
32128
+ var url = new URL(to, window.location.href);
35992
32129
  var isActive = function isActive() {
35993
- cov_27l2553py().f[2]++;
35994
- cov_27l2553py().s[6]++;
35995
32130
  return location.pathname.startsWith(url.pathname);
35996
32131
  };
35997
- cov_27l2553py().s[7]++;
35998
32132
  return /*#__PURE__*/React__default["default"].createElement(NavIconWrapper, {
35999
32133
  description: description,
36000
32134
  key: mainIndex,
@@ -36004,430 +32138,32 @@ var Links = function Links(_ref) {
36004
32138
  className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link",
36005
32139
  isActive: isActive,
36006
32140
  to: to
36007
- }, otherProps), (cov_27l2553py().b[0][0]++, icon) && (cov_27l2553py().b[0][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
32141
+ }, otherProps), icon && /*#__PURE__*/React__default["default"].createElement("div", {
36008
32142
  className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-molecules-sidebar__link-icon",
36009
32143
  "data-testid": label
36010
- }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null)))));
32144
+ }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null))));
36011
32145
  }));
36012
32146
  };
36013
32147
 
36014
- function cov_11r0xh9z3c() {
36015
- var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/index.jsx";
36016
- var hash = "a1f444d19a25bf57d0865d127e95f283c84f002f";
36017
- var global = new Function("return this")();
36018
- var gcv = "__coverage__";
36019
- var coverageData = {
36020
- path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/index.jsx",
36021
- statementMap: {
36022
- "0": {
36023
- start: {
36024
- line: 13,
36025
- column: 16
36026
- },
36027
- end: {
36028
- line: 56,
36029
- column: 1
36030
- }
36031
- },
36032
- "1": {
36033
- start: {
36034
- line: 20,
36035
- column: 52
36036
- },
36037
- end: {
36038
- line: 20,
36039
- column: 67
36040
- }
36041
- },
36042
- "2": {
36043
- start: {
36044
- line: 21,
36045
- column: 19
36046
- },
36047
- end: {
36048
- line: 21,
36049
- column: 32
36050
- }
36051
- },
36052
- "3": {
36053
- start: {
36054
- line: 23,
36055
- column: 2
36056
- },
36057
- end: {
36058
- line: 26,
36059
- column: 17
36060
- }
36061
- },
36062
- "4": {
36063
- start: {
36064
- line: 24,
36065
- column: 4
36066
- },
36067
- end: {
36068
- line: 24,
36069
- column: 53
36070
- }
36071
- },
36072
- "5": {
36073
- start: {
36074
- line: 28,
36075
- column: 2
36076
- },
36077
- end: {
36078
- line: 55,
36079
- column: 4
36080
- }
36081
- },
36082
- "6": {
36083
- start: {
36084
- line: 45,
36085
- column: 37
36086
- },
36087
- end: {
36088
- line: 45,
36089
- column: 62
36090
- }
36091
- },
36092
- "7": {
36093
- start: {
36094
- line: 51,
36095
- column: 25
36096
- },
36097
- end: {
36098
- line: 51,
36099
- column: 52
36100
- }
36101
- }
36102
- },
36103
- fnMap: {
36104
- "0": {
36105
- name: "(anonymous_0)",
36106
- decl: {
36107
- start: {
36108
- line: 13,
36109
- column: 16
36110
- },
36111
- end: {
36112
- line: 13,
36113
- column: 17
36114
- }
36115
- },
36116
- loc: {
36117
- start: {
36118
- line: 19,
36119
- column: 6
36120
- },
36121
- end: {
36122
- line: 56,
36123
- column: 1
36124
- }
36125
- },
36126
- line: 19
36127
- },
36128
- "1": {
36129
- name: "(anonymous_1)",
36130
- decl: {
36131
- start: {
36132
- line: 23,
36133
- column: 12
36134
- },
36135
- end: {
36136
- line: 23,
36137
- column: 13
36138
- }
36139
- },
36140
- loc: {
36141
- start: {
36142
- line: 23,
36143
- column: 18
36144
- },
36145
- end: {
36146
- line: 26,
36147
- column: 3
36148
- }
36149
- },
36150
- line: 23
36151
- },
36152
- "2": {
36153
- name: "(anonymous_2)",
36154
- decl: {
36155
- start: {
36156
- line: 45,
36157
- column: 31
36158
- },
36159
- end: {
36160
- line: 45,
36161
- column: 32
36162
- }
36163
- },
36164
- loc: {
36165
- start: {
36166
- line: 45,
36167
- column: 37
36168
- },
36169
- end: {
36170
- line: 45,
36171
- column: 62
36172
- }
36173
- },
36174
- line: 45
36175
- },
36176
- "3": {
36177
- name: "(anonymous_3)",
36178
- decl: {
36179
- start: {
36180
- line: 51,
36181
- column: 19
36182
- },
36183
- end: {
36184
- line: 51,
36185
- column: 20
36186
- }
36187
- },
36188
- loc: {
36189
- start: {
36190
- line: 51,
36191
- column: 25
36192
- },
36193
- end: {
36194
- line: 51,
36195
- column: 52
36196
- }
36197
- },
36198
- line: 51
36199
- }
36200
- },
36201
- branchMap: {
36202
- "0": {
36203
- loc: {
36204
- start: {
36205
- line: 15,
36206
- column: 2
36207
- },
36208
- end: {
36209
- line: 15,
36210
- column: 27
36211
- }
36212
- },
36213
- type: "default-arg",
36214
- locations: [{
36215
- start: {
36216
- line: 15,
36217
- column: 25
36218
- },
36219
- end: {
36220
- line: 15,
36221
- column: 27
36222
- }
36223
- }],
36224
- line: 15
36225
- },
36226
- "1": {
36227
- loc: {
36228
- start: {
36229
- line: 16,
36230
- column: 2
36231
- },
36232
- end: {
36233
- line: 16,
36234
- column: 24
36235
- }
36236
- },
36237
- type: "default-arg",
36238
- locations: [{
36239
- start: {
36240
- line: 16,
36241
- column: 22
36242
- },
36243
- end: {
36244
- line: 16,
36245
- column: 24
36246
- }
36247
- }],
36248
- line: 16
36249
- },
36250
- "2": {
36251
- loc: {
36252
- start: {
36253
- line: 17,
36254
- column: 2
36255
- },
36256
- end: {
36257
- line: 17,
36258
- column: 20
36259
- }
36260
- },
36261
- type: "default-arg",
36262
- locations: [{
36263
- start: {
36264
- line: 17,
36265
- column: 18
36266
- },
36267
- end: {
36268
- line: 17,
36269
- column: 20
36270
- }
36271
- }],
36272
- line: 17
36273
- },
36274
- "3": {
36275
- loc: {
36276
- start: {
36277
- line: 18,
36278
- column: 2
36279
- },
36280
- end: {
36281
- line: 18,
36282
- column: 24
36283
- }
36284
- },
36285
- type: "default-arg",
36286
- locations: [{
36287
- start: {
36288
- line: 18,
36289
- column: 20
36290
- },
36291
- end: {
36292
- line: 18,
36293
- column: 24
36294
- }
36295
- }],
36296
- line: 18
36297
- },
36298
- "4": {
36299
- loc: {
36300
- start: {
36301
- line: 24,
36302
- column: 4
36303
- },
36304
- end: {
36305
- line: 24,
36306
- column: 52
36307
- }
36308
- },
36309
- type: "binary-expr",
36310
- locations: [{
36311
- start: {
36312
- line: 24,
36313
- column: 4
36314
- },
36315
- end: {
36316
- line: 24,
36317
- column: 21
36318
- }
36319
- }, {
36320
- start: {
36321
- line: 24,
36322
- column: 25
36323
- },
36324
- end: {
36325
- line: 24,
36326
- column: 52
36327
- }
36328
- }],
36329
- line: 24
36330
- },
36331
- "5": {
36332
- loc: {
36333
- start: {
36334
- line: 48,
36335
- column: 7
36336
- },
36337
- end: {
36338
- line: 53,
36339
- column: 7
36340
- }
36341
- },
36342
- type: "binary-expr",
36343
- locations: [{
36344
- start: {
36345
- line: 48,
36346
- column: 7
36347
- },
36348
- end: {
36349
- line: 48,
36350
- column: 22
36351
- }
36352
- }, {
36353
- start: {
36354
- line: 49,
36355
- column: 8
36356
- },
36357
- end: {
36358
- line: 52,
36359
- column: 10
36360
- }
36361
- }],
36362
- line: 48
36363
- }
36364
- },
36365
- s: {
36366
- "0": 0,
36367
- "1": 0,
36368
- "2": 0,
36369
- "3": 0,
36370
- "4": 0,
36371
- "5": 0,
36372
- "6": 0,
36373
- "7": 0
36374
- },
36375
- f: {
36376
- "0": 0,
36377
- "1": 0,
36378
- "2": 0,
36379
- "3": 0
36380
- },
36381
- b: {
36382
- "0": [0],
36383
- "1": [0],
36384
- "2": [0],
36385
- "3": [0],
36386
- "4": [0, 0],
36387
- "5": [0, 0]
36388
- },
36389
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
36390
- hash: "a1f444d19a25bf57d0865d127e95f283c84f002f"
36391
- };
36392
- var coverage = global[gcv] || (global[gcv] = {});
36393
- if (!coverage[path] || coverage[path].hash !== hash) {
36394
- coverage[path] = coverageData;
36395
- }
36396
- var actualCoverage = coverage[path];
36397
- {
36398
- // @ts-ignore
36399
- cov_11r0xh9z3c = function () {
36400
- return actualCoverage;
36401
- };
36402
- }
36403
- return actualCoverage;
36404
- }
36405
- cov_11r0xh9z3c();
36406
- cov_11r0xh9z3c().s[0]++;
36407
32148
  var Sidebar = function Sidebar(_ref) {
36408
32149
  var navLinks = _ref.navLinks,
36409
32150
  _ref$profileInfoOverr = _ref.profileInfoOverrides,
36410
- profileInfoOverrides = _ref$profileInfoOverr === void 0 ? (cov_11r0xh9z3c().b[0][0]++, {}) : _ref$profileInfoOverr,
32151
+ profileInfoOverrides = _ref$profileInfoOverr === void 0 ? {} : _ref$profileInfoOverr,
36411
32152
  _ref$helpLinkOverride = _ref.helpLinkOverrides,
36412
- helpLinkOverrides = _ref$helpLinkOverride === void 0 ? (cov_11r0xh9z3c().b[1][0]++, {}) : _ref$helpLinkOverride,
32153
+ helpLinkOverrides = _ref$helpLinkOverride === void 0 ? {} : _ref$helpLinkOverride,
36413
32154
  _ref$extraTopLinks = _ref.extraTopLinks,
36414
- extraTopLinks = _ref$extraTopLinks === void 0 ? (cov_11r0xh9z3c().b[2][0]++, []) : _ref$extraTopLinks,
32155
+ extraTopLinks = _ref$extraTopLinks === void 0 ? [] : _ref$extraTopLinks,
36415
32156
  _ref$showAppSwitcher = _ref.showAppSwitcher,
36416
- showAppSwitcher = _ref$showAppSwitcher === void 0 ? (cov_11r0xh9z3c().b[3][0]++, true) : _ref$showAppSwitcher;
36417
- cov_11r0xh9z3c().f[0]++;
36418
- var _ref2 = (cov_11r0xh9z3c().s[1]++, React.useState(false)),
36419
- _ref3 = _slicedToArray(_ref2, 2),
36420
- isAppSwitcherOpen = _ref3[0],
36421
- setIsAppSwitcherOpen = _ref3[1];
36422
- var location = (cov_11r0xh9z3c().s[2]++, reactRouterDom.useLocation());
36423
- cov_11r0xh9z3c().s[3]++;
32157
+ showAppSwitcher = _ref$showAppSwitcher === void 0 ? true : _ref$showAppSwitcher;
32158
+ var _useState = React.useState(false),
32159
+ _useState2 = _slicedToArray(_useState, 2),
32160
+ isAppSwitcherOpen = _useState2[0],
32161
+ setIsAppSwitcherOpen = _useState2[1];
32162
+ var location = reactRouterDom.useLocation();
36424
32163
  React.useEffect(function () {
36425
- cov_11r0xh9z3c().f[1]++;
36426
- cov_11r0xh9z3c().s[4]++;
36427
- (cov_11r0xh9z3c().b[4][0]++, isAppSwitcherOpen) && (cov_11r0xh9z3c().b[4][1]++, setIsAppSwitcherOpen(false));
32164
+ isAppSwitcherOpen && setIsAppSwitcherOpen(false);
36428
32165
  // eslint-disable-next-line react-hooks/exhaustive-deps
36429
32166
  }, [location]);
36430
- cov_11r0xh9z3c().s[5]++;
36431
32167
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
36432
32168
  "data-cy": "sidebar-wrapper",
36433
32169
  "data-testid": "sidebar",
@@ -36440,18 +32176,14 @@ var Sidebar = function Sidebar(_ref) {
36440
32176
  profileInfoOverrides: profileInfoOverrides,
36441
32177
  showAppSwitcher: showAppSwitcher,
36442
32178
  onAppSwitcherToggle: function onAppSwitcherToggle() {
36443
- cov_11r0xh9z3c().f[2]++;
36444
- cov_11r0xh9z3c().s[6]++;
36445
32179
  return setIsAppSwitcherOpen(ramda.not);
36446
32180
  }
36447
- })), (cov_11r0xh9z3c().b[5][0]++, showAppSwitcher) && (cov_11r0xh9z3c().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(AppSwitcher, {
32181
+ })), showAppSwitcher && /*#__PURE__*/React__default["default"].createElement(AppSwitcher, {
36448
32182
  isOpen: isAppSwitcherOpen,
36449
32183
  onClose: function onClose() {
36450
- cov_11r0xh9z3c().f[3]++;
36451
- cov_11r0xh9z3c().s[7]++;
36452
32184
  return setIsAppSwitcherOpen(false);
36453
32185
  }
36454
- })));
32186
+ }));
36455
32187
  };
36456
32188
 
36457
32189
  module.exports = Sidebar;