@bigbinary/neeto-molecules 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DateFormat.cjs.js +93 -52
- package/dist/DateFormat.cjs.js.map +1 -1
- package/dist/DateFormat.js +93 -52
- package/dist/DateFormat.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +991 -812
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +974 -795
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PhoneNumber.cjs.js +285 -141
- package/dist/PhoneNumber.cjs.js.map +1 -1
- package/dist/PhoneNumber.js +286 -142
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/Sidebar.cjs.js +535 -11
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +536 -12
- package/dist/Sidebar.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +2 -1
- package/types/DateFormat.d.ts +1 -0
- package/types/NeetoWidget.d.ts +4 -0
package/dist/Sidebar.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React, { useRef, useCallback, useEffect, Children, isValidElement, cloneElement, forwardRef, useState } from 'react';
|
|
2
2
|
import { toLower, mergeDeepLeft, not } from 'ramda';
|
|
3
3
|
import { Link, useLocation, NavLink } from 'react-router-dom';
|
|
4
|
-
import { useOnClickOutside } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
4
|
import { NeetoIcon, Close, Search, AppSwitcher as AppSwitcher$1, Book, Keyboard, ChatEmpty, Gift, User, Settings, LeftArrow, Help } from '@bigbinary/neeto-icons';
|
|
6
5
|
import { Typography, Button, Input, Tooltip, Avatar } from '@bigbinary/neetoui';
|
|
7
6
|
import { useTranslation } from 'react-i18next';
|
|
8
|
-
import { capitalize, noop as noop$1, truncate,
|
|
7
|
+
import { capitalize, noop as noop$1, truncate, _findBy } from '@bigbinary/neeto-commons-frontend/pure';
|
|
9
8
|
import * as AppIcons from '@bigbinary/neeto-icons/app-icons';
|
|
10
9
|
import { t as t$1 } from 'i18next';
|
|
11
10
|
import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -32579,9 +32578,499 @@ var Portal = function Portal(_ref) {
|
|
|
32579
32578
|
return /*#__PURE__*/reactDom.exports.createPortal(children, target.current);
|
|
32580
32579
|
};
|
|
32581
32580
|
|
|
32581
|
+
function cov_1r2ywuxngm() {
|
|
32582
|
+
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/utils.js";
|
|
32583
|
+
var hash = "288fa234e84e26ed8fa5ff782656864c5f046c27";
|
|
32584
|
+
var global = new Function("return this")();
|
|
32585
|
+
var gcv = "__coverage__";
|
|
32586
|
+
var coverageData = {
|
|
32587
|
+
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/utils.js",
|
|
32588
|
+
statementMap: {
|
|
32589
|
+
"0": {
|
|
32590
|
+
start: {
|
|
32591
|
+
line: 3,
|
|
32592
|
+
column: 33
|
|
32593
|
+
},
|
|
32594
|
+
end: {
|
|
32595
|
+
line: 29,
|
|
32596
|
+
column: 1
|
|
32597
|
+
}
|
|
32598
|
+
},
|
|
32599
|
+
"1": {
|
|
32600
|
+
start: {
|
|
32601
|
+
line: 4,
|
|
32602
|
+
column: 2
|
|
32603
|
+
},
|
|
32604
|
+
end: {
|
|
32605
|
+
line: 28,
|
|
32606
|
+
column: 39
|
|
32607
|
+
}
|
|
32608
|
+
},
|
|
32609
|
+
"2": {
|
|
32610
|
+
start: {
|
|
32611
|
+
line: 5,
|
|
32612
|
+
column: 21
|
|
32613
|
+
},
|
|
32614
|
+
end: {
|
|
32615
|
+
line: 20,
|
|
32616
|
+
column: 5
|
|
32617
|
+
}
|
|
32618
|
+
},
|
|
32619
|
+
"3": {
|
|
32620
|
+
start: {
|
|
32621
|
+
line: 7,
|
|
32622
|
+
column: 6
|
|
32623
|
+
},
|
|
32624
|
+
end: {
|
|
32625
|
+
line: 9,
|
|
32626
|
+
column: 7
|
|
32627
|
+
}
|
|
32628
|
+
},
|
|
32629
|
+
"4": {
|
|
32630
|
+
start: {
|
|
32631
|
+
line: 8,
|
|
32632
|
+
column: 8
|
|
32633
|
+
},
|
|
32634
|
+
end: {
|
|
32635
|
+
line: 8,
|
|
32636
|
+
column: 15
|
|
32637
|
+
}
|
|
32638
|
+
},
|
|
32639
|
+
"5": {
|
|
32640
|
+
start: {
|
|
32641
|
+
line: 11,
|
|
32642
|
+
column: 6
|
|
32643
|
+
},
|
|
32644
|
+
end: {
|
|
32645
|
+
line: 18,
|
|
32646
|
+
column: 7
|
|
32647
|
+
}
|
|
32648
|
+
},
|
|
32649
|
+
"6": {
|
|
32650
|
+
start: {
|
|
32651
|
+
line: 13,
|
|
32652
|
+
column: 8
|
|
32653
|
+
},
|
|
32654
|
+
end: {
|
|
32655
|
+
line: 15,
|
|
32656
|
+
column: 9
|
|
32657
|
+
}
|
|
32658
|
+
},
|
|
32659
|
+
"7": {
|
|
32660
|
+
start: {
|
|
32661
|
+
line: 14,
|
|
32662
|
+
column: 10
|
|
32663
|
+
},
|
|
32664
|
+
end: {
|
|
32665
|
+
line: 14,
|
|
32666
|
+
column: 25
|
|
32667
|
+
}
|
|
32668
|
+
},
|
|
32669
|
+
"8": {
|
|
32670
|
+
start: {
|
|
32671
|
+
line: 17,
|
|
32672
|
+
column: 8
|
|
32673
|
+
},
|
|
32674
|
+
end: {
|
|
32675
|
+
line: 17,
|
|
32676
|
+
column: 15
|
|
32677
|
+
}
|
|
32678
|
+
},
|
|
32679
|
+
"9": {
|
|
32680
|
+
start: {
|
|
32681
|
+
line: 19,
|
|
32682
|
+
column: 6
|
|
32683
|
+
},
|
|
32684
|
+
end: {
|
|
32685
|
+
line: 19,
|
|
32686
|
+
column: 21
|
|
32687
|
+
}
|
|
32688
|
+
},
|
|
32689
|
+
"10": {
|
|
32690
|
+
start: {
|
|
32691
|
+
line: 21,
|
|
32692
|
+
column: 4
|
|
32693
|
+
},
|
|
32694
|
+
end: {
|
|
32695
|
+
line: 21,
|
|
32696
|
+
column: 53
|
|
32697
|
+
}
|
|
32698
|
+
},
|
|
32699
|
+
"11": {
|
|
32700
|
+
start: {
|
|
32701
|
+
line: 22,
|
|
32702
|
+
column: 4
|
|
32703
|
+
},
|
|
32704
|
+
end: {
|
|
32705
|
+
line: 22,
|
|
32706
|
+
column: 54
|
|
32707
|
+
}
|
|
32708
|
+
},
|
|
32709
|
+
"12": {
|
|
32710
|
+
start: {
|
|
32711
|
+
line: 24,
|
|
32712
|
+
column: 4
|
|
32713
|
+
},
|
|
32714
|
+
end: {
|
|
32715
|
+
line: 27,
|
|
32716
|
+
column: 6
|
|
32717
|
+
}
|
|
32718
|
+
},
|
|
32719
|
+
"13": {
|
|
32720
|
+
start: {
|
|
32721
|
+
line: 25,
|
|
32722
|
+
column: 6
|
|
32723
|
+
},
|
|
32724
|
+
end: {
|
|
32725
|
+
line: 25,
|
|
32726
|
+
column: 58
|
|
32727
|
+
}
|
|
32728
|
+
},
|
|
32729
|
+
"14": {
|
|
32730
|
+
start: {
|
|
32731
|
+
line: 26,
|
|
32732
|
+
column: 6
|
|
32733
|
+
},
|
|
32734
|
+
end: {
|
|
32735
|
+
line: 26,
|
|
32736
|
+
column: 59
|
|
32737
|
+
}
|
|
32738
|
+
}
|
|
32739
|
+
},
|
|
32740
|
+
fnMap: {
|
|
32741
|
+
"0": {
|
|
32742
|
+
name: "(anonymous_0)",
|
|
32743
|
+
decl: {
|
|
32744
|
+
start: {
|
|
32745
|
+
line: 3,
|
|
32746
|
+
column: 33
|
|
32747
|
+
},
|
|
32748
|
+
end: {
|
|
32749
|
+
line: 3,
|
|
32750
|
+
column: 34
|
|
32751
|
+
}
|
|
32752
|
+
},
|
|
32753
|
+
loc: {
|
|
32754
|
+
start: {
|
|
32755
|
+
line: 3,
|
|
32756
|
+
column: 69
|
|
32757
|
+
},
|
|
32758
|
+
end: {
|
|
32759
|
+
line: 29,
|
|
32760
|
+
column: 1
|
|
32761
|
+
}
|
|
32762
|
+
},
|
|
32763
|
+
line: 3
|
|
32764
|
+
},
|
|
32765
|
+
"1": {
|
|
32766
|
+
name: "(anonymous_1)",
|
|
32767
|
+
decl: {
|
|
32768
|
+
start: {
|
|
32769
|
+
line: 4,
|
|
32770
|
+
column: 12
|
|
32771
|
+
},
|
|
32772
|
+
end: {
|
|
32773
|
+
line: 4,
|
|
32774
|
+
column: 13
|
|
32775
|
+
}
|
|
32776
|
+
},
|
|
32777
|
+
loc: {
|
|
32778
|
+
start: {
|
|
32779
|
+
line: 4,
|
|
32780
|
+
column: 18
|
|
32781
|
+
},
|
|
32782
|
+
end: {
|
|
32783
|
+
line: 28,
|
|
32784
|
+
column: 3
|
|
32785
|
+
}
|
|
32786
|
+
},
|
|
32787
|
+
line: 4
|
|
32788
|
+
},
|
|
32789
|
+
"2": {
|
|
32790
|
+
name: "(anonymous_2)",
|
|
32791
|
+
decl: {
|
|
32792
|
+
start: {
|
|
32793
|
+
line: 5,
|
|
32794
|
+
column: 21
|
|
32795
|
+
},
|
|
32796
|
+
end: {
|
|
32797
|
+
line: 5,
|
|
32798
|
+
column: 22
|
|
32799
|
+
}
|
|
32800
|
+
},
|
|
32801
|
+
loc: {
|
|
32802
|
+
start: {
|
|
32803
|
+
line: 5,
|
|
32804
|
+
column: 30
|
|
32805
|
+
},
|
|
32806
|
+
end: {
|
|
32807
|
+
line: 20,
|
|
32808
|
+
column: 5
|
|
32809
|
+
}
|
|
32810
|
+
},
|
|
32811
|
+
line: 5
|
|
32812
|
+
},
|
|
32813
|
+
"3": {
|
|
32814
|
+
name: "(anonymous_3)",
|
|
32815
|
+
decl: {
|
|
32816
|
+
start: {
|
|
32817
|
+
line: 24,
|
|
32818
|
+
column: 11
|
|
32819
|
+
},
|
|
32820
|
+
end: {
|
|
32821
|
+
line: 24,
|
|
32822
|
+
column: 12
|
|
32823
|
+
}
|
|
32824
|
+
},
|
|
32825
|
+
loc: {
|
|
32826
|
+
start: {
|
|
32827
|
+
line: 24,
|
|
32828
|
+
column: 17
|
|
32829
|
+
},
|
|
32830
|
+
end: {
|
|
32831
|
+
line: 27,
|
|
32832
|
+
column: 5
|
|
32833
|
+
}
|
|
32834
|
+
},
|
|
32835
|
+
line: 24
|
|
32836
|
+
}
|
|
32837
|
+
},
|
|
32838
|
+
branchMap: {
|
|
32839
|
+
"0": {
|
|
32840
|
+
loc: {
|
|
32841
|
+
start: {
|
|
32842
|
+
line: 7,
|
|
32843
|
+
column: 6
|
|
32844
|
+
},
|
|
32845
|
+
end: {
|
|
32846
|
+
line: 9,
|
|
32847
|
+
column: 7
|
|
32848
|
+
}
|
|
32849
|
+
},
|
|
32850
|
+
type: "if",
|
|
32851
|
+
locations: [{
|
|
32852
|
+
start: {
|
|
32853
|
+
line: 7,
|
|
32854
|
+
column: 6
|
|
32855
|
+
},
|
|
32856
|
+
end: {
|
|
32857
|
+
line: 9,
|
|
32858
|
+
column: 7
|
|
32859
|
+
}
|
|
32860
|
+
}, {
|
|
32861
|
+
start: {
|
|
32862
|
+
line: undefined,
|
|
32863
|
+
column: undefined
|
|
32864
|
+
},
|
|
32865
|
+
end: {
|
|
32866
|
+
line: undefined,
|
|
32867
|
+
column: undefined
|
|
32868
|
+
}
|
|
32869
|
+
}],
|
|
32870
|
+
line: 7
|
|
32871
|
+
},
|
|
32872
|
+
"1": {
|
|
32873
|
+
loc: {
|
|
32874
|
+
start: {
|
|
32875
|
+
line: 7,
|
|
32876
|
+
column: 10
|
|
32877
|
+
},
|
|
32878
|
+
end: {
|
|
32879
|
+
line: 7,
|
|
32880
|
+
column: 72
|
|
32881
|
+
}
|
|
32882
|
+
},
|
|
32883
|
+
type: "binary-expr",
|
|
32884
|
+
locations: [{
|
|
32885
|
+
start: {
|
|
32886
|
+
line: 7,
|
|
32887
|
+
column: 10
|
|
32888
|
+
},
|
|
32889
|
+
end: {
|
|
32890
|
+
line: 7,
|
|
32891
|
+
column: 28
|
|
32892
|
+
}
|
|
32893
|
+
}, {
|
|
32894
|
+
start: {
|
|
32895
|
+
line: 7,
|
|
32896
|
+
column: 32
|
|
32897
|
+
},
|
|
32898
|
+
end: {
|
|
32899
|
+
line: 7,
|
|
32900
|
+
column: 72
|
|
32901
|
+
}
|
|
32902
|
+
}],
|
|
32903
|
+
line: 7
|
|
32904
|
+
},
|
|
32905
|
+
"2": {
|
|
32906
|
+
loc: {
|
|
32907
|
+
start: {
|
|
32908
|
+
line: 11,
|
|
32909
|
+
column: 6
|
|
32910
|
+
},
|
|
32911
|
+
end: {
|
|
32912
|
+
line: 18,
|
|
32913
|
+
column: 7
|
|
32914
|
+
}
|
|
32915
|
+
},
|
|
32916
|
+
type: "if",
|
|
32917
|
+
locations: [{
|
|
32918
|
+
start: {
|
|
32919
|
+
line: 11,
|
|
32920
|
+
column: 6
|
|
32921
|
+
},
|
|
32922
|
+
end: {
|
|
32923
|
+
line: 18,
|
|
32924
|
+
column: 7
|
|
32925
|
+
}
|
|
32926
|
+
}, {
|
|
32927
|
+
start: {
|
|
32928
|
+
line: undefined,
|
|
32929
|
+
column: undefined
|
|
32930
|
+
},
|
|
32931
|
+
end: {
|
|
32932
|
+
line: undefined,
|
|
32933
|
+
column: undefined
|
|
32934
|
+
}
|
|
32935
|
+
}],
|
|
32936
|
+
line: 11
|
|
32937
|
+
},
|
|
32938
|
+
"3": {
|
|
32939
|
+
loc: {
|
|
32940
|
+
start: {
|
|
32941
|
+
line: 13,
|
|
32942
|
+
column: 8
|
|
32943
|
+
},
|
|
32944
|
+
end: {
|
|
32945
|
+
line: 15,
|
|
32946
|
+
column: 9
|
|
32947
|
+
}
|
|
32948
|
+
},
|
|
32949
|
+
type: "if",
|
|
32950
|
+
locations: [{
|
|
32951
|
+
start: {
|
|
32952
|
+
line: 13,
|
|
32953
|
+
column: 8
|
|
32954
|
+
},
|
|
32955
|
+
end: {
|
|
32956
|
+
line: 15,
|
|
32957
|
+
column: 9
|
|
32958
|
+
}
|
|
32959
|
+
}, {
|
|
32960
|
+
start: {
|
|
32961
|
+
line: undefined,
|
|
32962
|
+
column: undefined
|
|
32963
|
+
},
|
|
32964
|
+
end: {
|
|
32965
|
+
line: undefined,
|
|
32966
|
+
column: undefined
|
|
32967
|
+
}
|
|
32968
|
+
}],
|
|
32969
|
+
line: 13
|
|
32970
|
+
}
|
|
32971
|
+
},
|
|
32972
|
+
s: {
|
|
32973
|
+
"0": 0,
|
|
32974
|
+
"1": 0,
|
|
32975
|
+
"2": 0,
|
|
32976
|
+
"3": 0,
|
|
32977
|
+
"4": 0,
|
|
32978
|
+
"5": 0,
|
|
32979
|
+
"6": 0,
|
|
32980
|
+
"7": 0,
|
|
32981
|
+
"8": 0,
|
|
32982
|
+
"9": 0,
|
|
32983
|
+
"10": 0,
|
|
32984
|
+
"11": 0,
|
|
32985
|
+
"12": 0,
|
|
32986
|
+
"13": 0,
|
|
32987
|
+
"14": 0
|
|
32988
|
+
},
|
|
32989
|
+
f: {
|
|
32990
|
+
"0": 0,
|
|
32991
|
+
"1": 0,
|
|
32992
|
+
"2": 0,
|
|
32993
|
+
"3": 0
|
|
32994
|
+
},
|
|
32995
|
+
b: {
|
|
32996
|
+
"0": [0, 0],
|
|
32997
|
+
"1": [0, 0],
|
|
32998
|
+
"2": [0, 0],
|
|
32999
|
+
"3": [0, 0]
|
|
33000
|
+
},
|
|
33001
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
33002
|
+
hash: "288fa234e84e26ed8fa5ff782656864c5f046c27"
|
|
33003
|
+
};
|
|
33004
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
33005
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
33006
|
+
coverage[path] = coverageData;
|
|
33007
|
+
}
|
|
33008
|
+
var actualCoverage = coverage[path];
|
|
33009
|
+
{
|
|
33010
|
+
// @ts-ignore
|
|
33011
|
+
cov_1r2ywuxngm = function () {
|
|
33012
|
+
return actualCoverage;
|
|
33013
|
+
};
|
|
33014
|
+
}
|
|
33015
|
+
return actualCoverage;
|
|
33016
|
+
}
|
|
33017
|
+
cov_1r2ywuxngm();
|
|
33018
|
+
cov_1r2ywuxngm().s[0]++;
|
|
33019
|
+
var useOnClickOutside = function useOnClickOutside(insideRef, outsideRef, handler) {
|
|
33020
|
+
cov_1r2ywuxngm().f[0]++;
|
|
33021
|
+
cov_1r2ywuxngm().s[1]++;
|
|
33022
|
+
useEffect(function () {
|
|
33023
|
+
cov_1r2ywuxngm().f[1]++;
|
|
33024
|
+
cov_1r2ywuxngm().s[2]++;
|
|
33025
|
+
var listener = function listener(event) {
|
|
33026
|
+
cov_1r2ywuxngm().f[2]++;
|
|
33027
|
+
cov_1r2ywuxngm().s[3]++;
|
|
33028
|
+
// Do nothing if clicking ref's element or descendent elements
|
|
33029
|
+
if ((cov_1r2ywuxngm().b[1][0]++, !insideRef.current) || (cov_1r2ywuxngm().b[1][1]++, insideRef.current.contains(event.target))) {
|
|
33030
|
+
cov_1r2ywuxngm().b[0][0]++;
|
|
33031
|
+
cov_1r2ywuxngm().s[4]++;
|
|
33032
|
+
return;
|
|
33033
|
+
} else {
|
|
33034
|
+
cov_1r2ywuxngm().b[0][1]++;
|
|
33035
|
+
}
|
|
33036
|
+
cov_1r2ywuxngm().s[5]++;
|
|
33037
|
+
if (outsideRef.current) {
|
|
33038
|
+
cov_1r2ywuxngm().b[2][0]++;
|
|
33039
|
+
cov_1r2ywuxngm().s[6]++;
|
|
33040
|
+
// If Outside ref exists, trigger the handler if it contains the event target.
|
|
33041
|
+
if (outsideRef.current.contains(event.target)) {
|
|
33042
|
+
cov_1r2ywuxngm().b[3][0]++;
|
|
33043
|
+
cov_1r2ywuxngm().s[7]++;
|
|
33044
|
+
handler(event);
|
|
33045
|
+
} else {
|
|
33046
|
+
cov_1r2ywuxngm().b[3][1]++;
|
|
33047
|
+
}
|
|
33048
|
+
cov_1r2ywuxngm().s[8]++;
|
|
33049
|
+
return;
|
|
33050
|
+
} else {
|
|
33051
|
+
cov_1r2ywuxngm().b[2][1]++;
|
|
33052
|
+
}
|
|
33053
|
+
cov_1r2ywuxngm().s[9]++;
|
|
33054
|
+
handler(event);
|
|
33055
|
+
};
|
|
33056
|
+
cov_1r2ywuxngm().s[10]++;
|
|
33057
|
+
document.addEventListener("mousedown", listener);
|
|
33058
|
+
cov_1r2ywuxngm().s[11]++;
|
|
33059
|
+
document.addEventListener("touchstart", listener);
|
|
33060
|
+
cov_1r2ywuxngm().s[12]++;
|
|
33061
|
+
return function () {
|
|
33062
|
+
cov_1r2ywuxngm().f[3]++;
|
|
33063
|
+
cov_1r2ywuxngm().s[13]++;
|
|
33064
|
+
document.removeEventListener("mousedown", listener);
|
|
33065
|
+
cov_1r2ywuxngm().s[14]++;
|
|
33066
|
+
document.removeEventListener("touchstart", listener);
|
|
33067
|
+
};
|
|
33068
|
+
}, [insideRef, outsideRef, handler]);
|
|
33069
|
+
};
|
|
33070
|
+
|
|
32582
33071
|
function cov_2lck7amjw7() {
|
|
32583
33072
|
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/AppSwitcher/index.jsx";
|
|
32584
|
-
var hash = "
|
|
33073
|
+
var hash = "f48177db9e544dcc6e11b963cf49f5c34e8e9e6d";
|
|
32585
33074
|
var global = new Function("return this")();
|
|
32586
33075
|
var gcv = "__coverage__";
|
|
32587
33076
|
var coverageData = {
|
|
@@ -32624,7 +33113,7 @@ function cov_2lck7amjw7() {
|
|
|
32624
33113
|
},
|
|
32625
33114
|
end: {
|
|
32626
33115
|
line: 16,
|
|
32627
|
-
column:
|
|
33116
|
+
column: 55
|
|
32628
33117
|
}
|
|
32629
33118
|
},
|
|
32630
33119
|
"4": {
|
|
@@ -32688,7 +33177,7 @@ function cov_2lck7amjw7() {
|
|
|
32688
33177
|
},
|
|
32689
33178
|
b: {},
|
|
32690
33179
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
32691
|
-
hash: "
|
|
33180
|
+
hash: "f48177db9e544dcc6e11b963cf49f5c34e8e9e6d"
|
|
32692
33181
|
};
|
|
32693
33182
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
32694
33183
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -32712,7 +33201,7 @@ var AppSwitcher = function AppSwitcher(_ref) {
|
|
|
32712
33201
|
var paneWrapper = (cov_2lck7amjw7().s[1]++, useRef(null));
|
|
32713
33202
|
var backdropRef = (cov_2lck7amjw7().s[2]++, useRef(null));
|
|
32714
33203
|
cov_2lck7amjw7().s[3]++;
|
|
32715
|
-
useOnClickOutside(backdropRef, onClose);
|
|
33204
|
+
useOnClickOutside(paneWrapper, backdropRef, onClose);
|
|
32716
33205
|
cov_2lck7amjw7().s[4]++;
|
|
32717
33206
|
useHotkeys("esc", onClose);
|
|
32718
33207
|
cov_2lck7amjw7().s[5]++;
|
|
@@ -35020,7 +35509,7 @@ var Footer = function Footer(_ref) {
|
|
|
35020
35509
|
|
|
35021
35510
|
function cov_17k34ad0bz() {
|
|
35022
35511
|
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/Sidebar/Header.jsx";
|
|
35023
|
-
var hash = "
|
|
35512
|
+
var hash = "c1f927311f5d22150d89fd74d94931189bdccf83";
|
|
35024
35513
|
var global = new Function("return this")();
|
|
35025
35514
|
var gcv = "__coverage__";
|
|
35026
35515
|
var coverageData = {
|
|
@@ -35105,6 +35594,39 @@ function cov_17k34ad0bz() {
|
|
|
35105
35594
|
},
|
|
35106
35595
|
branchMap: {
|
|
35107
35596
|
"0": {
|
|
35597
|
+
loc: {
|
|
35598
|
+
start: {
|
|
35599
|
+
line: 18,
|
|
35600
|
+
column: 4
|
|
35601
|
+
},
|
|
35602
|
+
end: {
|
|
35603
|
+
line: 21,
|
|
35604
|
+
column: 36
|
|
35605
|
+
}
|
|
35606
|
+
},
|
|
35607
|
+
type: "binary-expr",
|
|
35608
|
+
locations: [{
|
|
35609
|
+
start: {
|
|
35610
|
+
line: 18,
|
|
35611
|
+
column: 4
|
|
35612
|
+
},
|
|
35613
|
+
end: {
|
|
35614
|
+
line: 21,
|
|
35615
|
+
column: 10
|
|
35616
|
+
}
|
|
35617
|
+
}, {
|
|
35618
|
+
start: {
|
|
35619
|
+
line: 21,
|
|
35620
|
+
column: 14
|
|
35621
|
+
},
|
|
35622
|
+
end: {
|
|
35623
|
+
line: 21,
|
|
35624
|
+
column: 36
|
|
35625
|
+
}
|
|
35626
|
+
}],
|
|
35627
|
+
line: 18
|
|
35628
|
+
},
|
|
35629
|
+
"1": {
|
|
35108
35630
|
loc: {
|
|
35109
35631
|
start: {
|
|
35110
35632
|
line: 31,
|
|
@@ -35149,10 +35671,11 @@ function cov_17k34ad0bz() {
|
|
|
35149
35671
|
"0": 0
|
|
35150
35672
|
},
|
|
35151
35673
|
b: {
|
|
35152
|
-
"0": [0, 0]
|
|
35674
|
+
"0": [0, 0],
|
|
35675
|
+
"1": [0, 0]
|
|
35153
35676
|
},
|
|
35154
35677
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
35155
|
-
hash: "
|
|
35678
|
+
hash: "c1f927311f5d22150d89fd74d94931189bdccf83"
|
|
35156
35679
|
};
|
|
35157
35680
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
35158
35681
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -35170,12 +35693,13 @@ function cov_17k34ad0bz() {
|
|
|
35170
35693
|
cov_17k34ad0bz();
|
|
35171
35694
|
cov_17k34ad0bz().s[0]++;
|
|
35172
35695
|
var Header = function Header() {
|
|
35696
|
+
var _ref, _findBy2;
|
|
35173
35697
|
cov_17k34ad0bz().f[0]++;
|
|
35174
35698
|
var logoName = (cov_17k34ad0bz().s[1]++, "Neeto".concat(capitalize(globalProps.appName.substr(5).toLowerCase())));
|
|
35175
35699
|
var ProductLogo = (cov_17k34ad0bz().s[2]++, ProductLogos[logoName]);
|
|
35176
|
-
var homeUrl = (cov_17k34ad0bz().s[3]++, new URL(
|
|
35700
|
+
var homeUrl = (cov_17k34ad0bz().s[3]++, new URL((_ref = (cov_17k34ad0bz().b[0][0]++, (_findBy2 = _findBy({
|
|
35177
35701
|
name: globalProps.appName.split("neeto")[1]
|
|
35178
|
-
}, globalProps.neetoApps).url));
|
|
35702
|
+
}, globalProps.neetoApps)) === null || _findBy2 === void 0 ? void 0 : _findBy2.url)) !== null && _ref !== void 0 ? _ref : (cov_17k34ad0bz().b[0][1]++, window.location.origin)));
|
|
35179
35703
|
cov_17k34ad0bz().s[4]++;
|
|
35180
35704
|
return /*#__PURE__*/React.createElement("div", {
|
|
35181
35705
|
className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",
|
|
@@ -35184,7 +35708,7 @@ var Header = function Header() {
|
|
|
35184
35708
|
className: "neeto-molecules-sidebar__logo flex flex-shrink-0 items-center justify-center"
|
|
35185
35709
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
35186
35710
|
to: homeUrl.pathname
|
|
35187
|
-
}, ProductLogo ? (cov_17k34ad0bz().b[
|
|
35711
|
+
}, ProductLogo ? (cov_17k34ad0bz().b[1][0]++, /*#__PURE__*/React.createElement(ProductLogo, null)) : (cov_17k34ad0bz().b[1][1]++, /*#__PURE__*/React.createElement(Neeto, null)))));
|
|
35188
35712
|
};
|
|
35189
35713
|
|
|
35190
35714
|
var _excluded = ["label", "to", "icon", "description"];
|