@bigbinary/neeto-commons-frontend 2.0.53 → 2.0.55

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/utils.js CHANGED
@@ -8,16 +8,181 @@ import dayjs from 'dayjs';
8
8
  import relativeTime from 'dayjs/plugin/relativeTime';
9
9
  import updateLocale from 'dayjs/plugin/updateLocale';
10
10
 
11
- var HEADERS_KEYS = {
11
+ function cov_1ugerkjpgx() {
12
+ var path = "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/constants/axios.js";
13
+ var hash = "9f00aa4e2bf0ed326253647f80a7e5bfd780ca7f";
14
+ var global = new Function("return this")();
15
+ var gcv = "__coverage__";
16
+ var coverageData = {
17
+ path: "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/constants/axios.js",
18
+ statementMap: {
19
+ "0": {
20
+ start: {
21
+ line: 1,
22
+ column: 28
23
+ },
24
+ end: {
25
+ line: 7,
26
+ column: 1
27
+ }
28
+ }
29
+ },
30
+ fnMap: {},
31
+ branchMap: {},
32
+ s: {
33
+ "0": 0
34
+ },
35
+ f: {},
36
+ b: {},
37
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
38
+ hash: "9f00aa4e2bf0ed326253647f80a7e5bfd780ca7f"
39
+ };
40
+ var coverage = global[gcv] || (global[gcv] = {});
41
+ if (!coverage[path] || coverage[path].hash !== hash) {
42
+ coverage[path] = coverageData;
43
+ }
44
+ var actualCoverage = coverage[path];
45
+ {
46
+ // @ts-ignore
47
+ cov_1ugerkjpgx = function () {
48
+ return actualCoverage;
49
+ };
50
+ }
51
+ return actualCoverage;
52
+ }
53
+ cov_1ugerkjpgx();
54
+ var HEADERS_KEYS = (cov_1ugerkjpgx().s[0]++, {
12
55
  xAuthEmail: "X-Auth-Email",
13
56
  xAuthToken: "X-Auth-Token",
14
57
  xCsrfToken: "X-CSRF-TOKEN",
15
58
  contentType: "Content-Type",
16
59
  accept: "Accept"
17
- };
60
+ });
18
61
 
62
+ function cov_i6tsm4dfx() {
63
+ var path = "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/axios.js";
64
+ var hash = "9f3593f540b8e6b3008004a25cc3741a0fd7c1ad";
65
+ var global = new Function("return this")();
66
+ var gcv = "__coverage__";
67
+ var coverageData = {
68
+ path: "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/axios.js",
69
+ statementMap: {
70
+ "0": {
71
+ start: {
72
+ line: 6,
73
+ column: 24
74
+ },
75
+ end: {
76
+ line: 10,
77
+ column: 1
78
+ }
79
+ },
80
+ "1": {
81
+ start: {
82
+ line: 7,
83
+ column: 2
84
+ },
85
+ end: {
86
+ line: 9,
87
+ column: 5
88
+ }
89
+ },
90
+ "2": {
91
+ start: {
92
+ line: 8,
93
+ column: 4
94
+ },
95
+ end: {
96
+ line: 8,
97
+ column: 42
98
+ }
99
+ }
100
+ },
101
+ fnMap: {
102
+ "0": {
103
+ name: "(anonymous_0)",
104
+ decl: {
105
+ start: {
106
+ line: 6,
107
+ column: 24
108
+ },
109
+ end: {
110
+ line: 6,
111
+ column: 25
112
+ }
113
+ },
114
+ loc: {
115
+ start: {
116
+ line: 6,
117
+ column: 30
118
+ },
119
+ end: {
120
+ line: 10,
121
+ column: 1
122
+ }
123
+ },
124
+ line: 6
125
+ },
126
+ "1": {
127
+ name: "(anonymous_1)",
128
+ decl: {
129
+ start: {
130
+ line: 7,
131
+ column: 31
132
+ },
133
+ end: {
134
+ line: 7,
135
+ column: 32
136
+ }
137
+ },
138
+ loc: {
139
+ start: {
140
+ line: 7,
141
+ column: 41
142
+ },
143
+ end: {
144
+ line: 9,
145
+ column: 3
146
+ }
147
+ },
148
+ line: 7
149
+ }
150
+ },
151
+ branchMap: {},
152
+ s: {
153
+ "0": 0,
154
+ "1": 0,
155
+ "2": 0
156
+ },
157
+ f: {
158
+ "0": 0,
159
+ "1": 0
160
+ },
161
+ b: {},
162
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
163
+ hash: "9f3593f540b8e6b3008004a25cc3741a0fd7c1ad"
164
+ };
165
+ var coverage = global[gcv] || (global[gcv] = {});
166
+ if (!coverage[path] || coverage[path].hash !== hash) {
167
+ coverage[path] = coverageData;
168
+ }
169
+ var actualCoverage = coverage[path];
170
+ {
171
+ // @ts-ignore
172
+ cov_i6tsm4dfx = function () {
173
+ return actualCoverage;
174
+ };
175
+ }
176
+ return actualCoverage;
177
+ }
178
+ cov_i6tsm4dfx();
179
+ cov_i6tsm4dfx().s[0]++;
19
180
  var resetAuthTokens = function resetAuthTokens() {
181
+ cov_i6tsm4dfx().f[0]++;
182
+ cov_i6tsm4dfx().s[1]++;
20
183
  values(HEADERS_KEYS).forEach(function (header) {
184
+ cov_i6tsm4dfx().f[1]++;
185
+ cov_i6tsm4dfx().s[2]++;
21
186
  delete axios.defaults.headers[header];
22
187
  });
23
188
  };
@@ -2521,29 +2686,1415 @@ var lib = {
2521
2686
  };
2522
2687
 
2523
2688
  var _this = undefined;
2689
+ function cov_21fmbrrwg() {
2690
+ var path = "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/general.js";
2691
+ var hash = "9b8866fdcba942237d2f340ff28e1a3491bfaabd";
2692
+ var global = new Function("return this")();
2693
+ var gcv = "__coverage__";
2694
+ var coverageData = {
2695
+ path: "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/general.js",
2696
+ statementMap: {
2697
+ "0": {
2698
+ start: {
2699
+ line: 10,
2700
+ column: 50
2701
+ },
2702
+ end: {
2703
+ line: 12,
2704
+ column: 1
2705
+ }
2706
+ },
2707
+ "1": {
2708
+ start: {
2709
+ line: 11,
2710
+ column: 2
2711
+ },
2712
+ end: {
2713
+ line: 11,
2714
+ column: 26
2715
+ }
2716
+ },
2717
+ "2": {
2718
+ start: {
2719
+ line: 14,
2720
+ column: 28
2721
+ },
2722
+ end: {
2723
+ line: 19,
2724
+ column: 1
2725
+ }
2726
+ },
2727
+ "3": {
2728
+ start: {
2729
+ line: 15,
2730
+ column: 15
2731
+ },
2732
+ end: {
2733
+ line: 15,
2734
+ column: 35
2735
+ }
2736
+ },
2737
+ "4": {
2738
+ start: {
2739
+ line: 16,
2740
+ column: 16
2741
+ },
2742
+ end: {
2743
+ line: 16,
2744
+ column: 31
2745
+ }
2746
+ },
2747
+ "5": {
2748
+ start: {
2749
+ line: 18,
2750
+ column: 2
2751
+ },
2752
+ end: {
2753
+ line: 18,
2754
+ column: 43
2755
+ }
2756
+ },
2757
+ "6": {
2758
+ start: {
2759
+ line: 21,
2760
+ column: 31
2761
+ },
2762
+ end: {
2763
+ line: 38,
2764
+ column: 3
2765
+ }
2766
+ },
2767
+ "7": {
2768
+ start: {
2769
+ line: 27,
2770
+ column: 2
2771
+ },
2772
+ end: {
2773
+ line: 38,
2774
+ column: 3
2775
+ }
2776
+ },
2777
+ "8": {
2778
+ start: {
2779
+ line: 28,
2780
+ column: 4
2781
+ },
2782
+ end: {
2783
+ line: 37,
2784
+ column: 13
2785
+ }
2786
+ },
2787
+ "9": {
2788
+ start: {
2789
+ line: 29,
2790
+ column: 30
2791
+ },
2792
+ end: {
2793
+ line: 32,
2794
+ column: 7
2795
+ }
2796
+ },
2797
+ "10": {
2798
+ start: {
2799
+ line: 34,
2800
+ column: 6
2801
+ },
2802
+ end: {
2803
+ line: 36,
2804
+ column: 26
2805
+ }
2806
+ },
2807
+ "11": {
2808
+ start: {
2809
+ line: 40,
2810
+ column: 31
2811
+ },
2812
+ end: {
2813
+ line: 70,
2814
+ column: 1
2815
+ }
2816
+ },
2817
+ "12": {
2818
+ start: {
2819
+ line: 47,
2820
+ column: 2
2821
+ },
2822
+ end: {
2823
+ line: 69,
2824
+ column: 3
2825
+ }
2826
+ },
2827
+ "13": {
2828
+ start: {
2829
+ line: 48,
2830
+ column: 4
2831
+ },
2832
+ end: {
2833
+ line: 64,
2834
+ column: 5
2835
+ }
2836
+ },
2837
+ "14": {
2838
+ start: {
2839
+ line: 49,
2840
+ column: 6
2841
+ },
2842
+ end: {
2843
+ line: 49,
2844
+ column: 48
2845
+ }
2846
+ },
2847
+ "15": {
2848
+ start: {
2849
+ line: 51,
2850
+ column: 23
2851
+ },
2852
+ end: {
2853
+ line: 51,
2854
+ column: 57
2855
+ }
2856
+ },
2857
+ "16": {
2858
+ start: {
2859
+ line: 52,
2860
+ column: 6
2861
+ },
2862
+ end: {
2863
+ line: 52,
2864
+ column: 28
2865
+ }
2866
+ },
2867
+ "17": {
2868
+ start: {
2869
+ line: 54,
2870
+ column: 6
2871
+ },
2872
+ end: {
2873
+ line: 54,
2874
+ column: 31
2875
+ }
2876
+ },
2877
+ "18": {
2878
+ start: {
2879
+ line: 55,
2880
+ column: 6
2881
+ },
2882
+ end: {
2883
+ line: 55,
2884
+ column: 32
2885
+ }
2886
+ },
2887
+ "19": {
2888
+ start: {
2889
+ line: 56,
2890
+ column: 6
2891
+ },
2892
+ end: {
2893
+ line: 56,
2894
+ column: 40
2895
+ }
2896
+ },
2897
+ "20": {
2898
+ start: {
2899
+ line: 58,
2900
+ column: 6
2901
+ },
2902
+ end: {
2903
+ line: 58,
2904
+ column: 42
2905
+ }
2906
+ },
2907
+ "21": {
2908
+ start: {
2909
+ line: 59,
2910
+ column: 6
2911
+ },
2912
+ end: {
2913
+ line: 59,
2914
+ column: 23
2915
+ }
2916
+ },
2917
+ "22": {
2918
+ start: {
2919
+ line: 60,
2920
+ column: 6
2921
+ },
2922
+ end: {
2923
+ line: 60,
2924
+ column: 24
2925
+ }
2926
+ },
2927
+ "23": {
2928
+ start: {
2929
+ line: 62,
2930
+ column: 6
2931
+ },
2932
+ end: {
2933
+ line: 62,
2934
+ column: 35
2935
+ }
2936
+ },
2937
+ "24": {
2938
+ start: {
2939
+ line: 63,
2940
+ column: 6
2941
+ },
2942
+ end: {
2943
+ line: 63,
2944
+ column: 42
2945
+ }
2946
+ },
2947
+ "25": {
2948
+ start: {
2949
+ line: 66,
2950
+ column: 4
2951
+ },
2952
+ end: {
2953
+ line: 66,
2954
+ column: 42
2955
+ }
2956
+ },
2957
+ "26": {
2958
+ start: {
2959
+ line: 68,
2960
+ column: 4
2961
+ },
2962
+ end: {
2963
+ line: 68,
2964
+ column: 24
2965
+ }
2966
+ },
2967
+ "27": {
2968
+ start: {
2969
+ line: 72,
2970
+ column: 24
2971
+ },
2972
+ end: {
2973
+ line: 88,
2974
+ column: 1
2975
+ }
2976
+ },
2977
+ "28": {
2978
+ start: {
2979
+ line: 73,
2980
+ column: 23
2981
+ },
2982
+ end: {
2983
+ line: 73,
2984
+ column: 25
2985
+ }
2986
+ },
2987
+ "29": {
2988
+ start: {
2989
+ line: 74,
2990
+ column: 2
2991
+ },
2992
+ end: {
2993
+ line: 79,
2994
+ column: 5
2995
+ }
2996
+ },
2997
+ "30": {
2998
+ start: {
2999
+ line: 75,
3000
+ column: 4
3001
+ },
3002
+ end: {
3003
+ line: 78,
3004
+ column: 5
3005
+ }
3006
+ },
3007
+ "31": {
3008
+ start: {
3009
+ line: 76,
3010
+ column: 6
3011
+ },
3012
+ end: {
3013
+ line: 76,
3014
+ column: 29
3015
+ }
3016
+ },
3017
+ "32": {
3018
+ start: {
3019
+ line: 77,
3020
+ column: 6
3021
+ },
3022
+ end: {
3023
+ line: 77,
3024
+ column: 66
3025
+ }
3026
+ },
3027
+ "33": {
3028
+ start: {
3029
+ line: 81,
3030
+ column: 22
3031
+ },
3032
+ end: {
3033
+ line: 85,
3034
+ column: 11
3035
+ }
3036
+ },
3037
+ "34": {
3038
+ start: {
3039
+ line: 87,
3040
+ column: 2
3041
+ },
3042
+ end: {
3043
+ line: 87,
3044
+ column: 66
3045
+ }
3046
+ },
3047
+ "35": {
3048
+ start: {
3049
+ line: 90,
3050
+ column: 24
3051
+ },
3052
+ end: {
3053
+ line: 96,
3054
+ column: 3
3055
+ }
3056
+ },
3057
+ "36": {
3058
+ start: {
3059
+ line: 91,
3060
+ column: 2
3061
+ },
3062
+ end: {
3063
+ line: 96,
3064
+ column: 3
3065
+ }
3066
+ },
3067
+ "37": {
3068
+ start: {
3069
+ line: 98,
3070
+ column: 30
3071
+ },
3072
+ end: {
3073
+ line: 99,
3074
+ column: 65
3075
+ }
3076
+ },
3077
+ "38": {
3078
+ start: {
3079
+ line: 99,
3080
+ column: 2
3081
+ },
3082
+ end: {
3083
+ line: 99,
3084
+ column: 65
3085
+ }
3086
+ },
3087
+ "39": {
3088
+ start: {
3089
+ line: 101,
3090
+ column: 30
3091
+ },
3092
+ end: {
3093
+ line: 102,
3094
+ column: 51
3095
+ }
3096
+ },
3097
+ "40": {
3098
+ start: {
3099
+ line: 102,
3100
+ column: 2
3101
+ },
3102
+ end: {
3103
+ line: 102,
3104
+ column: 51
3105
+ }
3106
+ },
3107
+ "41": {
3108
+ start: {
3109
+ line: 104,
3110
+ column: 24
3111
+ },
3112
+ end: {
3113
+ line: 111,
3114
+ column: 1
3115
+ }
3116
+ },
3117
+ "42": {
3118
+ start: {
3119
+ line: 107,
3120
+ column: 2
3121
+ },
3122
+ end: {
3123
+ line: 110,
3124
+ column: 4
3125
+ }
3126
+ },
3127
+ "43": {
3128
+ start: {
3129
+ line: 108,
3130
+ column: 4
3131
+ },
3132
+ end: {
3133
+ line: 108,
3134
+ column: 24
3135
+ }
3136
+ },
3137
+ "44": {
3138
+ start: {
3139
+ line: 109,
3140
+ column: 4
3141
+ },
3142
+ end: {
3143
+ line: 109,
3144
+ column: 60
3145
+ }
3146
+ },
3147
+ "45": {
3148
+ start: {
3149
+ line: 109,
3150
+ column: 29
3151
+ },
3152
+ end: {
3153
+ line: 109,
3154
+ column: 51
3155
+ }
3156
+ }
3157
+ },
3158
+ fnMap: {
3159
+ "0": {
3160
+ name: "(anonymous_0)",
3161
+ decl: {
3162
+ start: {
3163
+ line: 10,
3164
+ column: 56
3165
+ },
3166
+ end: {
3167
+ line: 10,
3168
+ column: 57
3169
+ }
3170
+ },
3171
+ loc: {
3172
+ start: {
3173
+ line: 11,
3174
+ column: 2
3175
+ },
3176
+ end: {
3177
+ line: 11,
3178
+ column: 26
3179
+ }
3180
+ },
3181
+ line: 11
3182
+ },
3183
+ "1": {
3184
+ name: "(anonymous_1)",
3185
+ decl: {
3186
+ start: {
3187
+ line: 14,
3188
+ column: 28
3189
+ },
3190
+ end: {
3191
+ line: 14,
3192
+ column: 29
3193
+ }
3194
+ },
3195
+ loc: {
3196
+ start: {
3197
+ line: 14,
3198
+ column: 34
3199
+ },
3200
+ end: {
3201
+ line: 19,
3202
+ column: 1
3203
+ }
3204
+ },
3205
+ line: 14
3206
+ },
3207
+ "2": {
3208
+ name: "(anonymous_2)",
3209
+ decl: {
3210
+ start: {
3211
+ line: 21,
3212
+ column: 31
3213
+ },
3214
+ end: {
3215
+ line: 21,
3216
+ column: 32
3217
+ }
3218
+ },
3219
+ loc: {
3220
+ start: {
3221
+ line: 27,
3222
+ column: 2
3223
+ },
3224
+ end: {
3225
+ line: 38,
3226
+ column: 3
3227
+ }
3228
+ },
3229
+ line: 27
3230
+ },
3231
+ "3": {
3232
+ name: "(anonymous_3)",
3233
+ decl: {
3234
+ start: {
3235
+ line: 27,
3236
+ column: 14
3237
+ },
3238
+ end: {
3239
+ line: 27,
3240
+ column: 15
3241
+ }
3242
+ },
3243
+ loc: {
3244
+ start: {
3245
+ line: 28,
3246
+ column: 4
3247
+ },
3248
+ end: {
3249
+ line: 37,
3250
+ column: 13
3251
+ }
3252
+ },
3253
+ line: 28
3254
+ },
3255
+ "4": {
3256
+ name: "(anonymous_4)",
3257
+ decl: {
3258
+ start: {
3259
+ line: 28,
3260
+ column: 15
3261
+ },
3262
+ end: {
3263
+ line: 28,
3264
+ column: 16
3265
+ }
3266
+ },
3267
+ loc: {
3268
+ start: {
3269
+ line: 28,
3270
+ column: 21
3271
+ },
3272
+ end: {
3273
+ line: 37,
3274
+ column: 5
3275
+ }
3276
+ },
3277
+ line: 28
3278
+ },
3279
+ "5": {
3280
+ name: "(anonymous_5)",
3281
+ decl: {
3282
+ start: {
3283
+ line: 40,
3284
+ column: 31
3285
+ },
3286
+ end: {
3287
+ line: 40,
3288
+ column: 32
3289
+ }
3290
+ },
3291
+ loc: {
3292
+ start: {
3293
+ line: 46,
3294
+ column: 5
3295
+ },
3296
+ end: {
3297
+ line: 70,
3298
+ column: 1
3299
+ }
3300
+ },
3301
+ line: 46
3302
+ },
3303
+ "6": {
3304
+ name: "(anonymous_6)",
3305
+ decl: {
3306
+ start: {
3307
+ line: 72,
3308
+ column: 24
3309
+ },
3310
+ end: {
3311
+ line: 72,
3312
+ column: 25
3313
+ }
3314
+ },
3315
+ loc: {
3316
+ start: {
3317
+ line: 72,
3318
+ column: 43
3319
+ },
3320
+ end: {
3321
+ line: 88,
3322
+ column: 1
3323
+ }
3324
+ },
3325
+ line: 72
3326
+ },
3327
+ "7": {
3328
+ name: "(anonymous_7)",
3329
+ decl: {
3330
+ start: {
3331
+ line: 74,
3332
+ column: 26
3333
+ },
3334
+ end: {
3335
+ line: 74,
3336
+ column: 27
3337
+ }
3338
+ },
3339
+ loc: {
3340
+ start: {
3341
+ line: 74,
3342
+ column: 44
3343
+ },
3344
+ end: {
3345
+ line: 79,
3346
+ column: 3
3347
+ }
3348
+ },
3349
+ line: 74
3350
+ },
3351
+ "8": {
3352
+ name: "(anonymous_8)",
3353
+ decl: {
3354
+ start: {
3355
+ line: 90,
3356
+ column: 24
3357
+ },
3358
+ end: {
3359
+ line: 90,
3360
+ column: 25
3361
+ }
3362
+ },
3363
+ loc: {
3364
+ start: {
3365
+ line: 91,
3366
+ column: 2
3367
+ },
3368
+ end: {
3369
+ line: 96,
3370
+ column: 3
3371
+ }
3372
+ },
3373
+ line: 91
3374
+ },
3375
+ "9": {
3376
+ name: "(anonymous_9)",
3377
+ decl: {
3378
+ start: {
3379
+ line: 98,
3380
+ column: 30
3381
+ },
3382
+ end: {
3383
+ line: 98,
3384
+ column: 31
3385
+ }
3386
+ },
3387
+ loc: {
3388
+ start: {
3389
+ line: 99,
3390
+ column: 2
3391
+ },
3392
+ end: {
3393
+ line: 99,
3394
+ column: 65
3395
+ }
3396
+ },
3397
+ line: 99
3398
+ },
3399
+ "10": {
3400
+ name: "(anonymous_10)",
3401
+ decl: {
3402
+ start: {
3403
+ line: 101,
3404
+ column: 30
3405
+ },
3406
+ end: {
3407
+ line: 101,
3408
+ column: 31
3409
+ }
3410
+ },
3411
+ loc: {
3412
+ start: {
3413
+ line: 102,
3414
+ column: 2
3415
+ },
3416
+ end: {
3417
+ line: 102,
3418
+ column: 51
3419
+ }
3420
+ },
3421
+ line: 102
3422
+ },
3423
+ "11": {
3424
+ name: "(anonymous_11)",
3425
+ decl: {
3426
+ start: {
3427
+ line: 104,
3428
+ column: 24
3429
+ },
3430
+ end: {
3431
+ line: 104,
3432
+ column: 25
3433
+ }
3434
+ },
3435
+ loc: {
3436
+ start: {
3437
+ line: 104,
3438
+ column: 47
3439
+ },
3440
+ end: {
3441
+ line: 111,
3442
+ column: 1
3443
+ }
3444
+ },
3445
+ line: 104
3446
+ },
3447
+ "12": {
3448
+ name: "(anonymous_12)",
3449
+ decl: {
3450
+ start: {
3451
+ line: 107,
3452
+ column: 9
3453
+ },
3454
+ end: {
3455
+ line: 107,
3456
+ column: 10
3457
+ }
3458
+ },
3459
+ loc: {
3460
+ start: {
3461
+ line: 107,
3462
+ column: 22
3463
+ },
3464
+ end: {
3465
+ line: 110,
3466
+ column: 3
3467
+ }
3468
+ },
3469
+ line: 107
3470
+ },
3471
+ "13": {
3472
+ name: "(anonymous_13)",
3473
+ decl: {
3474
+ start: {
3475
+ line: 109,
3476
+ column: 23
3477
+ },
3478
+ end: {
3479
+ line: 109,
3480
+ column: 24
3481
+ }
3482
+ },
3483
+ loc: {
3484
+ start: {
3485
+ line: 109,
3486
+ column: 29
3487
+ },
3488
+ end: {
3489
+ line: 109,
3490
+ column: 51
3491
+ }
3492
+ },
3493
+ line: 109
3494
+ }
3495
+ },
3496
+ branchMap: {
3497
+ "0": {
3498
+ loc: {
3499
+ start: {
3500
+ line: 18,
3501
+ column: 9
3502
+ },
3503
+ end: {
3504
+ line: 18,
3505
+ column: 42
3506
+ }
3507
+ },
3508
+ type: "cond-expr",
3509
+ locations: [{
3510
+ start: {
3511
+ line: 18,
3512
+ column: 29
3513
+ },
3514
+ end: {
3515
+ line: 18,
3516
+ column: 37
3517
+ }
3518
+ }, {
3519
+ start: {
3520
+ line: 18,
3521
+ column: 40
3522
+ },
3523
+ end: {
3524
+ line: 18,
3525
+ column: 42
3526
+ }
3527
+ }],
3528
+ line: 18
3529
+ },
3530
+ "1": {
3531
+ loc: {
3532
+ start: {
3533
+ line: 24,
3534
+ column: 2
3535
+ },
3536
+ end: {
3537
+ line: 24,
3538
+ column: 24
3539
+ }
3540
+ },
3541
+ type: "default-arg",
3542
+ locations: [{
3543
+ start: {
3544
+ line: 24,
3545
+ column: 21
3546
+ },
3547
+ end: {
3548
+ line: 24,
3549
+ column: 24
3550
+ }
3551
+ }],
3552
+ line: 24
3553
+ },
3554
+ "2": {
3555
+ loc: {
3556
+ start: {
3557
+ line: 25,
3558
+ column: 2
3559
+ },
3560
+ end: {
3561
+ line: 25,
3562
+ column: 33
3563
+ }
3564
+ },
3565
+ type: "default-arg",
3566
+ locations: [{
3567
+ start: {
3568
+ line: 25,
3569
+ column: 10
3570
+ },
3571
+ end: {
3572
+ line: 25,
3573
+ column: 33
3574
+ }
3575
+ }],
3576
+ line: 25
3577
+ },
3578
+ "3": {
3579
+ loc: {
3580
+ start: {
3581
+ line: 34,
3582
+ column: 6
3583
+ },
3584
+ end: {
3585
+ line: 36,
3586
+ column: 25
3587
+ }
3588
+ },
3589
+ type: "cond-expr",
3590
+ locations: [{
3591
+ start: {
3592
+ line: 35,
3593
+ column: 10
3594
+ },
3595
+ end: {
3596
+ line: 35,
3597
+ column: 50
3598
+ }
3599
+ }, {
3600
+ start: {
3601
+ line: 36,
3602
+ column: 10
3603
+ },
3604
+ end: {
3605
+ line: 36,
3606
+ column: 25
3607
+ }
3608
+ }],
3609
+ line: 34
3610
+ },
3611
+ "4": {
3612
+ loc: {
3613
+ start: {
3614
+ line: 42,
3615
+ column: 2
3616
+ },
3617
+ end: {
3618
+ line: 45,
3619
+ column: 8
3620
+ }
3621
+ },
3622
+ type: "default-arg",
3623
+ locations: [{
3624
+ start: {
3625
+ line: 45,
3626
+ column: 6
3627
+ },
3628
+ end: {
3629
+ line: 45,
3630
+ column: 8
3631
+ }
3632
+ }],
3633
+ line: 42
3634
+ },
3635
+ "5": {
3636
+ loc: {
3637
+ start: {
3638
+ line: 43,
3639
+ column: 4
3640
+ },
3641
+ end: {
3642
+ line: 43,
3643
+ column: 21
3644
+ }
3645
+ },
3646
+ type: "default-arg",
3647
+ locations: [{
3648
+ start: {
3649
+ line: 43,
3650
+ column: 17
3651
+ },
3652
+ end: {
3653
+ line: 43,
3654
+ column: 21
3655
+ }
3656
+ }],
3657
+ line: 43
3658
+ },
3659
+ "6": {
3660
+ loc: {
3661
+ start: {
3662
+ line: 44,
3663
+ column: 4
3664
+ },
3665
+ end: {
3666
+ line: 44,
3667
+ column: 72
3668
+ }
3669
+ },
3670
+ type: "default-arg",
3671
+ locations: [{
3672
+ start: {
3673
+ line: 44,
3674
+ column: 14
3675
+ },
3676
+ end: {
3677
+ line: 44,
3678
+ column: 72
3679
+ }
3680
+ }],
3681
+ line: 44
3682
+ },
3683
+ "7": {
3684
+ loc: {
3685
+ start: {
3686
+ line: 48,
3687
+ column: 4
3688
+ },
3689
+ end: {
3690
+ line: 64,
3691
+ column: 5
3692
+ }
3693
+ },
3694
+ type: "if",
3695
+ locations: [{
3696
+ start: {
3697
+ line: 48,
3698
+ column: 4
3699
+ },
3700
+ end: {
3701
+ line: 64,
3702
+ column: 5
3703
+ }
3704
+ }, {
3705
+ start: {
3706
+ line: 50,
3707
+ column: 11
3708
+ },
3709
+ end: {
3710
+ line: 64,
3711
+ column: 5
3712
+ }
3713
+ }],
3714
+ line: 48
3715
+ },
3716
+ "8": {
3717
+ loc: {
3718
+ start: {
3719
+ line: 48,
3720
+ column: 8
3721
+ },
3722
+ end: {
3723
+ line: 48,
3724
+ column: 53
3725
+ }
3726
+ },
3727
+ type: "binary-expr",
3728
+ locations: [{
3729
+ start: {
3730
+ line: 48,
3731
+ column: 8
3732
+ },
3733
+ end: {
3734
+ line: 48,
3735
+ column: 27
3736
+ }
3737
+ }, {
3738
+ start: {
3739
+ line: 48,
3740
+ column: 31
3741
+ },
3742
+ end: {
3743
+ line: 48,
3744
+ column: 53
3745
+ }
3746
+ }],
3747
+ line: 48
3748
+ },
3749
+ "9": {
3750
+ loc: {
3751
+ start: {
3752
+ line: 66,
3753
+ column: 4
3754
+ },
3755
+ end: {
3756
+ line: 66,
3757
+ column: 41
3758
+ }
3759
+ },
3760
+ type: "binary-expr",
3761
+ locations: [{
3762
+ start: {
3763
+ line: 66,
3764
+ column: 4
3765
+ },
3766
+ end: {
3767
+ line: 66,
3768
+ column: 14
3769
+ }
3770
+ }, {
3771
+ start: {
3772
+ line: 66,
3773
+ column: 18
3774
+ },
3775
+ end: {
3776
+ line: 66,
3777
+ column: 41
3778
+ }
3779
+ }],
3780
+ line: 66
3781
+ },
3782
+ "10": {
3783
+ loc: {
3784
+ start: {
3785
+ line: 75,
3786
+ column: 4
3787
+ },
3788
+ end: {
3789
+ line: 78,
3790
+ column: 5
3791
+ }
3792
+ },
3793
+ type: "if",
3794
+ locations: [{
3795
+ start: {
3796
+ line: 75,
3797
+ column: 4
3798
+ },
3799
+ end: {
3800
+ line: 78,
3801
+ column: 5
3802
+ }
3803
+ }, {
3804
+ start: {
3805
+ line: undefined,
3806
+ column: undefined
3807
+ },
3808
+ end: {
3809
+ line: undefined,
3810
+ column: undefined
3811
+ }
3812
+ }],
3813
+ line: 75
3814
+ },
3815
+ "11": {
3816
+ loc: {
3817
+ start: {
3818
+ line: 87,
3819
+ column: 9
3820
+ },
3821
+ end: {
3822
+ line: 87,
3823
+ column: 65
3824
+ }
3825
+ },
3826
+ type: "cond-expr",
3827
+ locations: [{
3828
+ start: {
3829
+ line: 87,
3830
+ column: 32
3831
+ },
3832
+ end: {
3833
+ line: 87,
3834
+ column: 37
3835
+ }
3836
+ }, {
3837
+ start: {
3838
+ line: 87,
3839
+ column: 40
3840
+ },
3841
+ end: {
3842
+ line: 87,
3843
+ column: 65
3844
+ }
3845
+ }],
3846
+ line: 87
3847
+ },
3848
+ "12": {
3849
+ loc: {
3850
+ start: {
3851
+ line: 90,
3852
+ column: 33
3853
+ },
3854
+ end: {
3855
+ line: 90,
3856
+ column: 52
3857
+ }
3858
+ },
3859
+ type: "default-arg",
3860
+ locations: [{
3861
+ start: {
3862
+ line: 90,
3863
+ column: 43
3864
+ },
3865
+ end: {
3866
+ line: 90,
3867
+ column: 52
3868
+ }
3869
+ }],
3870
+ line: 90
3871
+ },
3872
+ "13": {
3873
+ loc: {
3874
+ start: {
3875
+ line: 92,
3876
+ column: 4
3877
+ },
3878
+ end: {
3879
+ line: 94,
3880
+ column: 28
3881
+ }
3882
+ },
3883
+ type: "binary-expr",
3884
+ locations: [{
3885
+ start: {
3886
+ line: 92,
3887
+ column: 4
3888
+ },
3889
+ end: {
3890
+ line: 92,
3891
+ column: 36
3892
+ }
3893
+ }, {
3894
+ start: {
3895
+ line: 93,
3896
+ column: 6
3897
+ },
3898
+ end: {
3899
+ line: 93,
3900
+ column: 24
3901
+ }
3902
+ }, {
3903
+ start: {
3904
+ line: 94,
3905
+ column: 6
3906
+ },
3907
+ end: {
3908
+ line: 94,
3909
+ column: 28
3910
+ }
3911
+ }],
3912
+ line: 92
3913
+ },
3914
+ "14": {
3915
+ loc: {
3916
+ start: {
3917
+ line: 98,
3918
+ column: 31
3919
+ },
3920
+ end: {
3921
+ line: 98,
3922
+ column: 43
3923
+ }
3924
+ },
3925
+ type: "default-arg",
3926
+ locations: [{
3927
+ start: {
3928
+ line: 98,
3929
+ column: 41
3930
+ },
3931
+ end: {
3932
+ line: 98,
3933
+ column: 43
3934
+ }
3935
+ }],
3936
+ line: 98
3937
+ },
3938
+ "15": {
3939
+ loc: {
3940
+ start: {
3941
+ line: 104,
3942
+ column: 31
3943
+ },
3944
+ end: {
3945
+ line: 104,
3946
+ column: 42
3947
+ }
3948
+ },
3949
+ type: "default-arg",
3950
+ locations: [{
3951
+ start: {
3952
+ line: 104,
3953
+ column: 39
3954
+ },
3955
+ end: {
3956
+ line: 104,
3957
+ column: 42
3958
+ }
3959
+ }],
3960
+ line: 104
3961
+ }
3962
+ },
3963
+ s: {
3964
+ "0": 0,
3965
+ "1": 0,
3966
+ "2": 0,
3967
+ "3": 0,
3968
+ "4": 0,
3969
+ "5": 0,
3970
+ "6": 0,
3971
+ "7": 0,
3972
+ "8": 0,
3973
+ "9": 0,
3974
+ "10": 0,
3975
+ "11": 0,
3976
+ "12": 0,
3977
+ "13": 0,
3978
+ "14": 0,
3979
+ "15": 0,
3980
+ "16": 0,
3981
+ "17": 0,
3982
+ "18": 0,
3983
+ "19": 0,
3984
+ "20": 0,
3985
+ "21": 0,
3986
+ "22": 0,
3987
+ "23": 0,
3988
+ "24": 0,
3989
+ "25": 0,
3990
+ "26": 0,
3991
+ "27": 0,
3992
+ "28": 0,
3993
+ "29": 0,
3994
+ "30": 0,
3995
+ "31": 0,
3996
+ "32": 0,
3997
+ "33": 0,
3998
+ "34": 0,
3999
+ "35": 0,
4000
+ "36": 0,
4001
+ "37": 0,
4002
+ "38": 0,
4003
+ "39": 0,
4004
+ "40": 0,
4005
+ "41": 0,
4006
+ "42": 0,
4007
+ "43": 0,
4008
+ "44": 0,
4009
+ "45": 0
4010
+ },
4011
+ f: {
4012
+ "0": 0,
4013
+ "1": 0,
4014
+ "2": 0,
4015
+ "3": 0,
4016
+ "4": 0,
4017
+ "5": 0,
4018
+ "6": 0,
4019
+ "7": 0,
4020
+ "8": 0,
4021
+ "9": 0,
4022
+ "10": 0,
4023
+ "11": 0,
4024
+ "12": 0,
4025
+ "13": 0
4026
+ },
4027
+ b: {
4028
+ "0": [0, 0],
4029
+ "1": [0],
4030
+ "2": [0],
4031
+ "3": [0, 0],
4032
+ "4": [0],
4033
+ "5": [0],
4034
+ "6": [0],
4035
+ "7": [0, 0],
4036
+ "8": [0, 0],
4037
+ "9": [0, 0],
4038
+ "10": [0, 0],
4039
+ "11": [0, 0],
4040
+ "12": [0],
4041
+ "13": [0, 0, 0],
4042
+ "14": [0],
4043
+ "15": [0]
4044
+ },
4045
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4046
+ hash: "9b8866fdcba942237d2f340ff28e1a3491bfaabd"
4047
+ };
4048
+ var coverage = global[gcv] || (global[gcv] = {});
4049
+ if (!coverage[path] || coverage[path].hash !== hash) {
4050
+ coverage[path] = coverageData;
4051
+ }
4052
+ var actualCoverage = coverage[path];
4053
+ {
4054
+ // @ts-ignore
4055
+ cov_21fmbrrwg = function () {
4056
+ return actualCoverage;
4057
+ };
4058
+ }
4059
+ return actualCoverage;
4060
+ }
4061
+ cov_21fmbrrwg();
2524
4062
  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; }
2525
4063
  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; }
2526
- var withEventTargetValue = /*#__PURE__*/curry(function (func, event) {
4064
+ var withEventTargetValue = ( cov_21fmbrrwg().s[0]++, curry(function (func, event) {
4065
+ cov_21fmbrrwg().f[0]++;
4066
+ cov_21fmbrrwg().s[1]++;
2527
4067
  return func(event.target.value);
2528
- });
4068
+ }));
4069
+ cov_21fmbrrwg().s[2]++;
2529
4070
  var getSubdomain = function getSubdomain() {
2530
- var host = window.location.host;
2531
- var parts = host.split(".");
2532
- return parts.length >= 3 ? parts[0] : "";
4071
+ cov_21fmbrrwg().f[1]++;
4072
+ var host = (cov_21fmbrrwg().s[3]++, window.location.host);
4073
+ var parts = (cov_21fmbrrwg().s[4]++, host.split("."));
4074
+ cov_21fmbrrwg().s[5]++;
4075
+ return parts.length >= 3 ? (cov_21fmbrrwg().b[0][0]++, parts[0]) : (cov_21fmbrrwg().b[0][1]++, "");
2533
4076
  };
4077
+ cov_21fmbrrwg().s[6]++;
2534
4078
  var simulateApiCall = function simulateApiCall(result, error) {
2535
- var errorProbability = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.1;
2536
- var delay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : getRandomInt(350, 1000);
4079
+ var errorProbability = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (cov_21fmbrrwg().b[1][0]++, 0.1);
4080
+ var delay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_21fmbrrwg().b[2][0]++, getRandomInt(350, 1000));
4081
+ cov_21fmbrrwg().f[2]++;
4082
+ cov_21fmbrrwg().s[7]++;
2537
4083
  return new Promise(function (resolve, reject) {
4084
+ cov_21fmbrrwg().f[3]++;
4085
+ cov_21fmbrrwg().s[8]++;
2538
4086
  return setTimeout(function () {
2539
- var defaultErrorObj = {
4087
+ cov_21fmbrrwg().f[4]++;
4088
+ var defaultErrorObj = (cov_21fmbrrwg().s[9]++, {
2540
4089
  success: false,
2541
4090
  notice: i18next.t("neetoCommons.notice.errorOccurred")
2542
- };
2543
- Math.random() < errorProbability ? reject(_objectSpread(_objectSpread({}, defaultErrorObj), error)) : resolve(result);
4091
+ });
4092
+ cov_21fmbrrwg().s[10]++;
4093
+ Math.random() < errorProbability ? (cov_21fmbrrwg().b[3][0]++, reject(_objectSpread(_objectSpread({}, defaultErrorObj), error))) : (cov_21fmbrrwg().b[3][1]++, resolve(result));
2544
4094
  }, delay);
2545
4095
  });
2546
4096
  };
4097
+ cov_21fmbrrwg().s[11]++;
2547
4098
  var copyToClipboard = /*#__PURE__*/function () {
2548
4099
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(text) {
2549
4100
  var _ref2,
@@ -2556,137 +4107,803 @@ var copyToClipboard = /*#__PURE__*/function () {
2556
4107
  return regenerator.wrap(function _callee$(_context) {
2557
4108
  while (1) switch (_context.prev = _context.next) {
2558
4109
  case 0:
2559
- _ref2 = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}, _ref2$showToastr = _ref2.showToastr, showToastr = _ref2$showToastr === void 0 ? true : _ref2$showToastr, _ref2$message = _ref2.message, message = _ref2$message === void 0 ? i18next.t("neetoCommons.toastr.success.copiedToClipboard") : _ref2$message;
2560
- _context.prev = 1;
2561
- if (!(navigator.clipboard && window.isSecureContext)) {
2562
- _context.next = 7;
4110
+ _ref2 = _args.length > 1 && _args[1] !== undefined ? _args[1] : (cov_21fmbrrwg().b[4][0]++, {}), _ref2$showToastr = _ref2.showToastr, showToastr = _ref2$showToastr === void 0 ? (cov_21fmbrrwg().b[5][0]++, true) : _ref2$showToastr, _ref2$message = _ref2.message, message = _ref2$message === void 0 ? (cov_21fmbrrwg().b[6][0]++, i18next.t("neetoCommons.toastr.success.copiedToClipboard")) : _ref2$message;
4111
+ cov_21fmbrrwg().f[5]++;
4112
+ cov_21fmbrrwg().s[12]++;
4113
+ _context.prev = 3;
4114
+ cov_21fmbrrwg().s[13]++;
4115
+ if (!((cov_21fmbrrwg().b[8][0]++, navigator.clipboard) && (cov_21fmbrrwg().b[8][1]++, window.isSecureContext))) {
4116
+ _context.next = 12;
2563
4117
  break;
2564
4118
  }
2565
- _context.next = 5;
4119
+ cov_21fmbrrwg().b[7][0]++;
4120
+ cov_21fmbrrwg().s[14]++;
4121
+ _context.next = 10;
2566
4122
  return navigator.clipboard.writeText(text);
2567
- case 5:
2568
- _context.next = 17;
4123
+ case 10:
4124
+ _context.next = 32;
2569
4125
  break;
2570
- case 7:
2571
- textArea = document.createElement("textarea");
4126
+ case 12:
4127
+ cov_21fmbrrwg().b[7][1]++;
4128
+ textArea = (cov_21fmbrrwg().s[15]++, document.createElement("textarea"));
4129
+ cov_21fmbrrwg().s[16]++;
2572
4130
  textArea.value = text;
4131
+ cov_21fmbrrwg().s[17]++;
2573
4132
  textArea.style.top = "0";
4133
+ cov_21fmbrrwg().s[18]++;
2574
4134
  textArea.style.left = "0";
4135
+ cov_21fmbrrwg().s[19]++;
2575
4136
  textArea.style.position = "fixed";
4137
+ cov_21fmbrrwg().s[20]++;
2576
4138
  document.body.appendChild(textArea);
4139
+ cov_21fmbrrwg().s[21]++;
2577
4140
  textArea.focus();
4141
+ cov_21fmbrrwg().s[22]++;
2578
4142
  textArea.select();
4143
+ cov_21fmbrrwg().s[23]++;
2579
4144
  document.execCommand("copy");
4145
+ cov_21fmbrrwg().s[24]++;
2580
4146
  document.body.removeChild(textArea);
2581
- case 17:
2582
- showToastr && Toastr.success(message);
2583
- _context.next = 23;
4147
+ case 32:
4148
+ cov_21fmbrrwg().s[25]++;
4149
+ (cov_21fmbrrwg().b[9][0]++, showToastr) && (cov_21fmbrrwg().b[9][1]++, Toastr.success(message));
4150
+ _context.next = 40;
2584
4151
  break;
2585
- case 20:
2586
- _context.prev = 20;
2587
- _context.t0 = _context["catch"](1);
4152
+ case 36:
4153
+ _context.prev = 36;
4154
+ _context.t0 = _context["catch"](3);
4155
+ cov_21fmbrrwg().s[26]++;
2588
4156
  Toastr.error(_context.t0);
2589
- case 23:
4157
+ case 40:
2590
4158
  case "end":
2591
4159
  return _context.stop();
2592
4160
  }
2593
- }, _callee, null, [[1, 20]]);
4161
+ }, _callee, null, [[3, 36]]);
2594
4162
  }));
2595
4163
  return function copyToClipboard(_x) {
2596
4164
  return _ref.apply(this, arguments);
2597
4165
  };
2598
4166
  }();
4167
+ cov_21fmbrrwg().s[27]++;
2599
4168
  var buildUrl = function buildUrl(route, params) {
2600
- var placeHolders = [];
4169
+ cov_21fmbrrwg().f[6]++;
4170
+ var placeHolders = (cov_21fmbrrwg().s[28]++, []);
4171
+ cov_21fmbrrwg().s[29]++;
2601
4172
  toPairs(params).forEach(function (_ref3) {
2602
4173
  var _ref4 = _slicedToArray(_ref3, 2),
2603
4174
  key = _ref4[0],
2604
4175
  value = _ref4[1];
4176
+ cov_21fmbrrwg().f[7]++;
4177
+ cov_21fmbrrwg().s[30]++;
2605
4178
  if (route.includes(":".concat(key))) {
4179
+ cov_21fmbrrwg().b[10][0]++;
4180
+ cov_21fmbrrwg().s[31]++;
2606
4181
  placeHolders.push(key);
4182
+ cov_21fmbrrwg().s[32]++;
2607
4183
  route = route.replace(":".concat(key), encodeURIComponent(value));
4184
+ } else {
4185
+ cov_21fmbrrwg().b[10][1]++;
2608
4186
  }
2609
4187
  });
2610
- var queryParams = pipe(omit(placeHolders), preprocessForSerialization, lib.stringify)(params);
2611
- return isEmpty(queryParams) ? route : "".concat(route, "?").concat(queryParams);
4188
+ var queryParams = (cov_21fmbrrwg().s[33]++, pipe(omit(placeHolders), preprocessForSerialization, lib.stringify)(params));
4189
+ cov_21fmbrrwg().s[34]++;
4190
+ return isEmpty(queryParams) ? (cov_21fmbrrwg().b[11][0]++, route) : (cov_21fmbrrwg().b[11][1]++, "".concat(route, "?").concat(queryParams));
2612
4191
  };
4192
+ cov_21fmbrrwg().s[35]++;
2613
4193
  var toLocale = function toLocale(number) {
2614
4194
  var _window$globalProps, _window$globalProps$u;
2615
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
2616
- return Number(number).toLocaleString(((_window$globalProps = window.globalProps) === null || _window$globalProps === void 0 ? void 0 : (_window$globalProps$u = _window$globalProps.user) === null || _window$globalProps$u === void 0 ? void 0 : _window$globalProps$u.locale) || navigator.language || navigator.languages[0], options);
4195
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_21fmbrrwg().b[12][0]++, undefined);
4196
+ cov_21fmbrrwg().f[8]++;
4197
+ cov_21fmbrrwg().s[36]++;
4198
+ return Number(number).toLocaleString((cov_21fmbrrwg().b[13][0]++, (_window$globalProps = window.globalProps) === null || _window$globalProps === void 0 ? void 0 : (_window$globalProps$u = _window$globalProps.user) === null || _window$globalProps$u === void 0 ? void 0 : _window$globalProps$u.locale) || (cov_21fmbrrwg().b[13][1]++, navigator.language) || (cov_21fmbrrwg().b[13][2]++, navigator.languages[0]), options);
2617
4199
  };
4200
+ cov_21fmbrrwg().s[37]++;
2618
4201
  var getQueryParams = function getQueryParams() {
2619
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4202
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_21fmbrrwg().b[14][0]++, {});
4203
+ cov_21fmbrrwg().f[9]++;
4204
+ cov_21fmbrrwg().s[38]++;
2620
4205
  return lib.parse(location.search, _objectSpread({
2621
4206
  ignoreQueryPrefix: true
2622
4207
  }, options));
2623
4208
  };
4209
+ cov_21fmbrrwg().s[39]++;
2624
4210
  var joinHyphenCase = function joinHyphenCase() {
4211
+ cov_21fmbrrwg().f[10]++;
4212
+ cov_21fmbrrwg().s[40]++;
2625
4213
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2626
4214
  args[_key] = arguments[_key];
2627
4215
  }
2628
4216
  return args.join(" ").replace(/\s+/g, "-").toLowerCase();
2629
4217
  };
4218
+ cov_21fmbrrwg().s[41]++;
2630
4219
  var debounce = function debounce(func) {
2631
- var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
4220
+ var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_21fmbrrwg().b[15][0]++, 350);
4221
+ cov_21fmbrrwg().f[11]++;
2632
4222
  var timer;
4223
+ cov_21fmbrrwg().s[42]++;
2633
4224
  return function () {
2634
4225
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2635
4226
  args[_key2] = arguments[_key2];
2636
4227
  }
4228
+ cov_21fmbrrwg().f[12]++;
4229
+ cov_21fmbrrwg().s[43]++;
2637
4230
  clearTimeout(timer);
4231
+ cov_21fmbrrwg().s[44]++;
2638
4232
  timer = setTimeout(function () {
4233
+ cov_21fmbrrwg().f[13]++;
4234
+ cov_21fmbrrwg().s[45]++;
2639
4235
  return func.apply(_this, args);
2640
4236
  }, delay);
2641
4237
  };
2642
4238
  };
2643
4239
 
4240
+ function cov_2g6pb6fenj() {
4241
+ var path = "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/datetime.js";
4242
+ var hash = "b87e294303948abc4a85ef310811baabe20803f6";
4243
+ var global = new Function("return this")();
4244
+ var gcv = "__coverage__";
4245
+ var coverageData = {
4246
+ path: "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/datetime.js",
4247
+ statementMap: {
4248
+ "0": {
4249
+ start: {
4250
+ line: 5,
4251
+ column: 0
4252
+ },
4253
+ end: {
4254
+ line: 5,
4255
+ column: 27
4256
+ }
4257
+ },
4258
+ "1": {
4259
+ start: {
4260
+ line: 6,
4261
+ column: 0
4262
+ },
4263
+ end: {
4264
+ line: 6,
4265
+ column: 27
4266
+ }
4267
+ },
4268
+ "2": {
4269
+ start: {
4270
+ line: 8,
4271
+ column: 26
4272
+ },
4273
+ end: {
4274
+ line: 22,
4275
+ column: 1
4276
+ }
4277
+ },
4278
+ "3": {
4279
+ start: {
4280
+ line: 9,
4281
+ column: 19
4282
+ },
4283
+ end: {
4284
+ line: 9,
4285
+ column: 40
4286
+ }
4287
+ },
4288
+ "4": {
4289
+ start: {
4290
+ line: 10,
4291
+ column: 16
4292
+ },
4293
+ end: {
4294
+ line: 10,
4295
+ column: 44
4296
+ }
4297
+ },
4298
+ "5": {
4299
+ start: {
4300
+ line: 11,
4301
+ column: 16
4302
+ },
4303
+ end: {
4304
+ line: 11,
4305
+ column: 49
4306
+ }
4307
+ },
4308
+ "6": {
4309
+ start: {
4310
+ line: 12,
4311
+ column: 20
4312
+ },
4313
+ end: {
4314
+ line: 12,
4315
+ column: 57
4316
+ }
4317
+ },
4318
+ "7": {
4319
+ start: {
4320
+ line: 13,
4321
+ column: 31
4322
+ },
4323
+ end: {
4324
+ line: 13,
4325
+ column: 63
4326
+ }
4327
+ },
4328
+ "8": {
4329
+ start: {
4330
+ line: 14,
4331
+ column: 20
4332
+ },
4333
+ end: {
4334
+ line: 14,
4335
+ column: 60
4336
+ }
4337
+ },
4338
+ "9": {
4339
+ start: {
4340
+ line: 15,
4341
+ column: 24
4342
+ },
4343
+ end: {
4344
+ line: 15,
4345
+ column: 68
4346
+ }
4347
+ },
4348
+ "10": {
4349
+ start: {
4350
+ line: 17,
4351
+ column: 21
4352
+ },
4353
+ end: {
4354
+ line: 17,
4355
+ column: 67
4356
+ }
4357
+ },
4358
+ "11": {
4359
+ start: {
4360
+ line: 18,
4361
+ column: 20
4362
+ },
4363
+ end: {
4364
+ line: 18,
4365
+ column: 41
4366
+ }
4367
+ },
4368
+ "12": {
4369
+ start: {
4370
+ line: 20,
4371
+ column: 4
4372
+ },
4373
+ end: {
4374
+ line: 20,
4375
+ column: 38
4376
+ }
4377
+ },
4378
+ "13": {
4379
+ start: {
4380
+ line: 24,
4381
+ column: 26
4382
+ },
4383
+ end: {
4384
+ line: 24,
4385
+ column: 36
4386
+ }
4387
+ }
4388
+ },
4389
+ fnMap: {
4390
+ "0": {
4391
+ name: "(anonymous_0)",
4392
+ decl: {
4393
+ start: {
4394
+ line: 9,
4395
+ column: 11
4396
+ },
4397
+ end: {
4398
+ line: 9,
4399
+ column: 12
4400
+ }
4401
+ },
4402
+ loc: {
4403
+ start: {
4404
+ line: 9,
4405
+ column: 19
4406
+ },
4407
+ end: {
4408
+ line: 9,
4409
+ column: 40
4410
+ }
4411
+ },
4412
+ line: 9
4413
+ },
4414
+ "1": {
4415
+ name: "(anonymous_1)",
4416
+ decl: {
4417
+ start: {
4418
+ line: 10,
4419
+ column: 8
4420
+ },
4421
+ end: {
4422
+ line: 10,
4423
+ column: 9
4424
+ }
4425
+ },
4426
+ loc: {
4427
+ start: {
4428
+ line: 10,
4429
+ column: 16
4430
+ },
4431
+ end: {
4432
+ line: 10,
4433
+ column: 44
4434
+ }
4435
+ },
4436
+ line: 10
4437
+ },
4438
+ "2": {
4439
+ name: "(anonymous_2)",
4440
+ decl: {
4441
+ start: {
4442
+ line: 11,
4443
+ column: 8
4444
+ },
4445
+ end: {
4446
+ line: 11,
4447
+ column: 9
4448
+ }
4449
+ },
4450
+ loc: {
4451
+ start: {
4452
+ line: 11,
4453
+ column: 16
4454
+ },
4455
+ end: {
4456
+ line: 11,
4457
+ column: 49
4458
+ }
4459
+ },
4460
+ line: 11
4461
+ },
4462
+ "3": {
4463
+ name: "(anonymous_3)",
4464
+ decl: {
4465
+ start: {
4466
+ line: 12,
4467
+ column: 12
4468
+ },
4469
+ end: {
4470
+ line: 12,
4471
+ column: 13
4472
+ }
4473
+ },
4474
+ loc: {
4475
+ start: {
4476
+ line: 12,
4477
+ column: 20
4478
+ },
4479
+ end: {
4480
+ line: 12,
4481
+ column: 57
4482
+ }
4483
+ },
4484
+ line: 12
4485
+ },
4486
+ "4": {
4487
+ name: "(anonymous_4)",
4488
+ decl: {
4489
+ start: {
4490
+ line: 13,
4491
+ column: 23
4492
+ },
4493
+ end: {
4494
+ line: 13,
4495
+ column: 24
4496
+ }
4497
+ },
4498
+ loc: {
4499
+ start: {
4500
+ line: 13,
4501
+ column: 31
4502
+ },
4503
+ end: {
4504
+ line: 13,
4505
+ column: 63
4506
+ }
4507
+ },
4508
+ line: 13
4509
+ },
4510
+ "5": {
4511
+ name: "(anonymous_5)",
4512
+ decl: {
4513
+ start: {
4514
+ line: 14,
4515
+ column: 12
4516
+ },
4517
+ end: {
4518
+ line: 14,
4519
+ column: 13
4520
+ }
4521
+ },
4522
+ loc: {
4523
+ start: {
4524
+ line: 14,
4525
+ column: 20
4526
+ },
4527
+ end: {
4528
+ line: 14,
4529
+ column: 60
4530
+ }
4531
+ },
4532
+ line: 14
4533
+ },
4534
+ "6": {
4535
+ name: "(anonymous_6)",
4536
+ decl: {
4537
+ start: {
4538
+ line: 15,
4539
+ column: 16
4540
+ },
4541
+ end: {
4542
+ line: 15,
4543
+ column: 17
4544
+ }
4545
+ },
4546
+ loc: {
4547
+ start: {
4548
+ line: 15,
4549
+ column: 24
4550
+ },
4551
+ end: {
4552
+ line: 15,
4553
+ column: 68
4554
+ }
4555
+ },
4556
+ line: 15
4557
+ },
4558
+ "7": {
4559
+ name: "(anonymous_7)",
4560
+ decl: {
4561
+ start: {
4562
+ line: 16,
4563
+ column: 12
4564
+ },
4565
+ end: {
4566
+ line: 16,
4567
+ column: 13
4568
+ }
4569
+ },
4570
+ loc: {
4571
+ start: {
4572
+ line: 16,
4573
+ column: 20
4574
+ },
4575
+ end: {
4576
+ line: 21,
4577
+ column: 3
4578
+ }
4579
+ },
4580
+ line: 16
4581
+ }
4582
+ },
4583
+ branchMap: {},
4584
+ s: {
4585
+ "0": 0,
4586
+ "1": 0,
4587
+ "2": 0,
4588
+ "3": 0,
4589
+ "4": 0,
4590
+ "5": 0,
4591
+ "6": 0,
4592
+ "7": 0,
4593
+ "8": 0,
4594
+ "9": 0,
4595
+ "10": 0,
4596
+ "11": 0,
4597
+ "12": 0,
4598
+ "13": 0
4599
+ },
4600
+ f: {
4601
+ "0": 0,
4602
+ "1": 0,
4603
+ "2": 0,
4604
+ "3": 0,
4605
+ "4": 0,
4606
+ "5": 0,
4607
+ "6": 0,
4608
+ "7": 0
4609
+ },
4610
+ b: {},
4611
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4612
+ hash: "b87e294303948abc4a85ef310811baabe20803f6"
4613
+ };
4614
+ var coverage = global[gcv] || (global[gcv] = {});
4615
+ if (!coverage[path] || coverage[path].hash !== hash) {
4616
+ coverage[path] = coverageData;
4617
+ }
4618
+ var actualCoverage = coverage[path];
4619
+ {
4620
+ // @ts-ignore
4621
+ cov_2g6pb6fenj = function () {
4622
+ return actualCoverage;
4623
+ };
4624
+ }
4625
+ return actualCoverage;
4626
+ }
4627
+ cov_2g6pb6fenj();
4628
+ cov_2g6pb6fenj().s[0]++;
2644
4629
  dayjs.extend(relativeTime);
4630
+ cov_2g6pb6fenj().s[1]++;
2645
4631
  dayjs.extend(updateLocale);
2646
- var timeFormat = {
4632
+ var timeFormat = (cov_2g6pb6fenj().s[2]++, {
2647
4633
  fromNow: function fromNow(time) {
4634
+ cov_2g6pb6fenj().f[0]++;
4635
+ cov_2g6pb6fenj().s[3]++;
2648
4636
  return dayjs(time).fromNow();
2649
4637
  },
2650
4638
  time: function time(_time) {
4639
+ cov_2g6pb6fenj().f[1]++;
4640
+ cov_2g6pb6fenj().s[4]++;
2651
4641
  return dayjs(_time).format("h:mm A");
2652
4642
  },
2653
4643
  date: function date(time) {
4644
+ cov_2g6pb6fenj().f[2]++;
4645
+ cov_2g6pb6fenj().s[5]++;
2654
4646
  return dayjs(time).format("MMM D, YYYY");
2655
4647
  },
2656
4648
  dateWeek: function dateWeek(time) {
4649
+ cov_2g6pb6fenj().f[3]++;
4650
+ cov_2g6pb6fenj().s[6]++;
2657
4651
  return dayjs(time).format("MMM D, YYYY ddd");
2658
4652
  },
2659
4653
  dateWeekWithoutYear: function dateWeekWithoutYear(time) {
4654
+ cov_2g6pb6fenj().f[4]++;
4655
+ cov_2g6pb6fenj().s[7]++;
2660
4656
  return dayjs(time).format("MMM D, ddd");
2661
4657
  },
2662
4658
  dateTime: function dateTime(time) {
4659
+ cov_2g6pb6fenj().f[5]++;
4660
+ cov_2g6pb6fenj().s[8]++;
2663
4661
  return dayjs(time).format("MMM D, YYYY h:mm A");
2664
4662
  },
2665
4663
  dateWeekTime: function dateWeekTime(time) {
4664
+ cov_2g6pb6fenj().f[6]++;
4665
+ cov_2g6pb6fenj().s[9]++;
2666
4666
  return dayjs(time).format("MMM D, YYYY ddd h:mm A");
2667
4667
  },
2668
4668
  extended: function extended(time) {
2669
- var dateTime = dayjs(time).format("dddd MMMM D, YYYY h:mm A");
2670
- var fromNow = dayjs(time).fromNow();
4669
+ cov_2g6pb6fenj().f[7]++;
4670
+ var dateTime = (cov_2g6pb6fenj().s[10]++, dayjs(time).format("dddd MMMM D, YYYY h:mm A"));
4671
+ var fromNow = (cov_2g6pb6fenj().s[11]++, dayjs(time).fromNow());
4672
+ cov_2g6pb6fenj().s[12]++;
2671
4673
  return "".concat(dateTime, " (").concat(fromNow, ")");
2672
4674
  }
2673
- };
2674
- var dateFormat = timeFormat;
2675
-
4675
+ });
4676
+ var dateFormat = (cov_2g6pb6fenj().s[13]++, timeFormat);
4677
+
4678
+ function cov_ro756b6vn() {
4679
+ var path = "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/permissions.js";
4680
+ var hash = "2beee7eabece2f43a16b326e262b43caf3f198cc";
4681
+ var global = new Function("return this")();
4682
+ var gcv = "__coverage__";
4683
+ var coverageData = {
4684
+ path: "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/permissions.js",
4685
+ statementMap: {
4686
+ "0": {
4687
+ start: {
4688
+ line: 1,
4689
+ column: 29
4690
+ },
4691
+ end: {
4692
+ line: 2,
4693
+ column: 46
4694
+ }
4695
+ },
4696
+ "1": {
4697
+ start: {
4698
+ line: 2,
4699
+ column: 2
4700
+ },
4701
+ end: {
4702
+ line: 2,
4703
+ column: 46
4704
+ }
4705
+ },
4706
+ "2": {
4707
+ start: {
4708
+ line: 4,
4709
+ column: 32
4710
+ },
4711
+ end: {
4712
+ line: 5,
4713
+ column: 33
4714
+ }
4715
+ },
4716
+ "3": {
4717
+ start: {
4718
+ line: 5,
4719
+ column: 2
4720
+ },
4721
+ end: {
4722
+ line: 5,
4723
+ column: 33
4724
+ }
4725
+ },
4726
+ "4": {
4727
+ start: {
4728
+ line: 7,
4729
+ column: 33
4730
+ },
4731
+ end: {
4732
+ line: 8,
4733
+ column: 34
4734
+ }
4735
+ },
4736
+ "5": {
4737
+ start: {
4738
+ line: 8,
4739
+ column: 2
4740
+ },
4741
+ end: {
4742
+ line: 8,
4743
+ column: 34
4744
+ }
4745
+ }
4746
+ },
4747
+ fnMap: {
4748
+ "0": {
4749
+ name: "(anonymous_0)",
4750
+ decl: {
4751
+ start: {
4752
+ line: 1,
4753
+ column: 29
4754
+ },
4755
+ end: {
4756
+ line: 1,
4757
+ column: 30
4758
+ }
4759
+ },
4760
+ loc: {
4761
+ start: {
4762
+ line: 2,
4763
+ column: 2
4764
+ },
4765
+ end: {
4766
+ line: 2,
4767
+ column: 46
4768
+ }
4769
+ },
4770
+ line: 2
4771
+ },
4772
+ "1": {
4773
+ name: "(anonymous_1)",
4774
+ decl: {
4775
+ start: {
4776
+ line: 4,
4777
+ column: 32
4778
+ },
4779
+ end: {
4780
+ line: 4,
4781
+ column: 33
4782
+ }
4783
+ },
4784
+ loc: {
4785
+ start: {
4786
+ line: 5,
4787
+ column: 2
4788
+ },
4789
+ end: {
4790
+ line: 5,
4791
+ column: 33
4792
+ }
4793
+ },
4794
+ line: 5
4795
+ },
4796
+ "2": {
4797
+ name: "(anonymous_2)",
4798
+ decl: {
4799
+ start: {
4800
+ line: 7,
4801
+ column: 33
4802
+ },
4803
+ end: {
4804
+ line: 7,
4805
+ column: 34
4806
+ }
4807
+ },
4808
+ loc: {
4809
+ start: {
4810
+ line: 8,
4811
+ column: 2
4812
+ },
4813
+ end: {
4814
+ line: 8,
4815
+ column: 34
4816
+ }
4817
+ },
4818
+ line: 8
4819
+ }
4820
+ },
4821
+ branchMap: {},
4822
+ s: {
4823
+ "0": 0,
4824
+ "1": 0,
4825
+ "2": 0,
4826
+ "3": 0,
4827
+ "4": 0,
4828
+ "5": 0
4829
+ },
4830
+ f: {
4831
+ "0": 0,
4832
+ "1": 0,
4833
+ "2": 0
4834
+ },
4835
+ b: {},
4836
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4837
+ hash: "2beee7eabece2f43a16b326e262b43caf3f198cc"
4838
+ };
4839
+ var coverage = global[gcv] || (global[gcv] = {});
4840
+ if (!coverage[path] || coverage[path].hash !== hash) {
4841
+ coverage[path] = coverageData;
4842
+ }
4843
+ var actualCoverage = coverage[path];
4844
+ {
4845
+ // @ts-ignore
4846
+ cov_ro756b6vn = function () {
4847
+ return actualCoverage;
4848
+ };
4849
+ }
4850
+ return actualCoverage;
4851
+ }
4852
+ cov_ro756b6vn();
4853
+ cov_ro756b6vn().s[0]++;
2676
4854
  var hasPermission = function hasPermission(permission) {
4855
+ cov_ro756b6vn().f[0]++;
4856
+ cov_ro756b6vn().s[1]++;
2677
4857
  return globalProps.permissions.includes(permission);
2678
4858
  };
4859
+ cov_ro756b6vn().s[2]++;
2679
4860
  var hasAnyPermission = function hasAnyPermission() {
4861
+ cov_ro756b6vn().f[1]++;
4862
+ cov_ro756b6vn().s[3]++;
2680
4863
  for (var _len = arguments.length, permissions = new Array(_len), _key = 0; _key < _len; _key++) {
2681
4864
  permissions[_key] = arguments[_key];
2682
4865
  }
2683
4866
  return permissions.some(hasPermission);
2684
4867
  };
4868
+ cov_ro756b6vn().s[4]++;
2685
4869
  var hasAllPermissions = function hasAllPermissions() {
4870
+ cov_ro756b6vn().f[2]++;
4871
+ cov_ro756b6vn().s[5]++;
2686
4872
  for (var _len2 = arguments.length, permissions = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2687
4873
  permissions[_key2] = arguments[_key2];
2688
4874
  }
2689
4875
  return permissions.every(hasPermission);
2690
4876
  };
2691
4877
 
4878
+ function cov_4in8ul7j9() {
4879
+ var path = "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/index.js";
4880
+ var hash = "ce59561817642aef031a381b0cfa08fefaec6c67";
4881
+ var global = new Function("return this")();
4882
+ var gcv = "__coverage__";
4883
+ var coverageData = {
4884
+ path: "/home/runner/work/neeto-commons-frontend/neeto-commons-frontend/src/utils/index.js",
4885
+ statementMap: {},
4886
+ fnMap: {},
4887
+ branchMap: {},
4888
+ s: {},
4889
+ f: {},
4890
+ b: {},
4891
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
4892
+ hash: "ce59561817642aef031a381b0cfa08fefaec6c67"
4893
+ };
4894
+ var coverage = global[gcv] || (global[gcv] = {});
4895
+ if (!coverage[path] || coverage[path].hash !== hash) {
4896
+ coverage[path] = coverageData;
4897
+ }
4898
+ var actualCoverage = coverage[path];
4899
+ {
4900
+ // @ts-ignore
4901
+ cov_4in8ul7j9 = function () {
4902
+ return actualCoverage;
4903
+ };
4904
+ }
4905
+ return actualCoverage;
4906
+ }
4907
+ cov_4in8ul7j9();
4908
+
2692
4909
  export { buildUrl, copyToClipboard, dateFormat, debounce, getQueryParams, getSubdomain, hasAllPermissions, hasAnyPermission, hasPermission, joinHyphenCase, resetAuthTokens, simulateApiCall, timeFormat, toLocale, withEventTargetValue };