@bigbinary/neeto-image-uploader-frontend 1.2.7 → 1.2.8

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/index.cjs.js CHANGED
@@ -18415,7 +18415,7 @@ var ProgressBar = function ProgressBar(_ref) {
18415
18415
 
18416
18416
  function cov_1avu3clziw() {
18417
18417
  var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/index.jsx";
18418
- var hash = "bb1c2e8e6f0f6fe878378d28af9bf296f5e818e6";
18418
+ var hash = "d7b859013a7d4c490e45dcdc8d9538434190e345";
18419
18419
  var global = new Function("return this")();
18420
18420
  var gcv = "__coverage__";
18421
18421
  var coverageData = {
@@ -18423,82 +18423,82 @@ function cov_1avu3clziw() {
18423
18423
  statementMap: {
18424
18424
  "0": {
18425
18425
  start: {
18426
- line: 18,
18426
+ line: 19,
18427
18427
  column: 22
18428
18428
  },
18429
18429
  end: {
18430
- line: 174,
18430
+ line: 175,
18431
18431
  column: 1
18432
18432
  }
18433
18433
  },
18434
18434
  "1": {
18435
18435
  start: {
18436
- line: 19,
18436
+ line: 20,
18437
18437
  column: 54
18438
18438
  },
18439
18439
  end: {
18440
- line: 19,
18440
+ line: 20,
18441
18441
  column: 69
18442
18442
  }
18443
18443
  },
18444
18444
  "2": {
18445
18445
  start: {
18446
- line: 20,
18446
+ line: 21,
18447
18447
  column: 28
18448
18448
  },
18449
18449
  end: {
18450
- line: 20,
18450
+ line: 21,
18451
18451
  column: 50
18452
18452
  }
18453
18453
  },
18454
18454
  "3": {
18455
18455
  start: {
18456
- line: 21,
18456
+ line: 22,
18457
18457
  column: 40
18458
18458
  },
18459
18459
  end: {
18460
- line: 21,
18460
+ line: 22,
18461
18461
  column: 55
18462
18462
  }
18463
18463
  },
18464
18464
  "4": {
18465
18465
  start: {
18466
- line: 22,
18466
+ line: 23,
18467
18467
  column: 42
18468
18468
  },
18469
18469
  end: {
18470
- line: 22,
18470
+ line: 23,
18471
18471
  column: 57
18472
18472
  }
18473
18473
  },
18474
18474
  "5": {
18475
18475
  start: {
18476
- line: 23,
18476
+ line: 24,
18477
18477
  column: 34
18478
18478
  },
18479
18479
  end: {
18480
- line: 23,
18480
+ line: 24,
18481
18481
  column: 46
18482
18482
  }
18483
18483
  },
18484
18484
  "6": {
18485
18485
  start: {
18486
- line: 25,
18486
+ line: 26,
18487
18487
  column: 16
18488
18488
  },
18489
18489
  end: {
18490
- line: 25,
18490
+ line: 26,
18491
18491
  column: 32
18492
18492
  }
18493
18493
  },
18494
18494
  "7": {
18495
18495
  start: {
18496
- line: 27,
18497
- column: 24
18496
+ line: 28,
18497
+ column: 33
18498
18498
  },
18499
18499
  end: {
18500
- line: 27,
18501
- column: 28
18500
+ line: 28,
18501
+ column: 48
18502
18502
  }
18503
18503
  },
18504
18504
  "8": {
@@ -18513,22 +18513,22 @@ function cov_1avu3clziw() {
18513
18513
  },
18514
18514
  "9": {
18515
18515
  start: {
18516
- line: 30,
18517
- column: 33
18516
+ line: 31,
18517
+ column: 23
18518
18518
  },
18519
18519
  end: {
18520
- line: 30,
18521
- column: 48
18520
+ line: 35,
18521
+ column: 3
18522
18522
  }
18523
18523
  },
18524
18524
  "10": {
18525
18525
  start: {
18526
18526
  line: 32,
18527
- column: 23
18527
+ column: 4
18528
18528
  },
18529
18529
  end: {
18530
- line: 36,
18531
- column: 3
18530
+ line: 32,
18531
+ column: 17
18532
18532
  }
18533
18533
  },
18534
18534
  "11": {
@@ -18538,7 +18538,7 @@ function cov_1avu3clziw() {
18538
18538
  },
18539
18539
  end: {
18540
18540
  line: 33,
18541
- column: 17
18541
+ column: 20
18542
18542
  }
18543
18543
  },
18544
18544
  "12": {
@@ -18548,47 +18548,47 @@ function cov_1avu3clziw() {
18548
18548
  },
18549
18549
  end: {
18550
18550
  line: 34,
18551
- column: 20
18551
+ column: 40
18552
18552
  }
18553
18553
  },
18554
18554
  "13": {
18555
18555
  start: {
18556
- line: 35,
18557
- column: 4
18556
+ line: 37,
18557
+ column: 19
18558
18558
  },
18559
18559
  end: {
18560
- line: 35,
18561
- column: 40
18560
+ line: 37,
18561
+ column: 49
18562
18562
  }
18563
18563
  },
18564
18564
  "14": {
18565
18565
  start: {
18566
- line: 38,
18567
- column: 19
18566
+ line: 37,
18567
+ column: 27
18568
18568
  },
18569
18569
  end: {
18570
- line: 38,
18570
+ line: 37,
18571
18571
  column: 49
18572
18572
  }
18573
18573
  },
18574
18574
  "15": {
18575
18575
  start: {
18576
- line: 38,
18577
- column: 27
18576
+ line: 39,
18577
+ column: 24
18578
18578
  },
18579
18579
  end: {
18580
- line: 38,
18581
- column: 49
18580
+ line: 47,
18581
+ column: 3
18582
18582
  }
18583
18583
  },
18584
18584
  "16": {
18585
18585
  start: {
18586
18586
  line: 40,
18587
- column: 24
18587
+ column: 4
18588
18588
  },
18589
18589
  end: {
18590
- line: 48,
18591
- column: 3
18590
+ line: 40,
18591
+ column: 69
18592
18592
  }
18593
18593
  },
18594
18594
  "17": {
@@ -18597,18 +18597,18 @@ function cov_1avu3clziw() {
18597
18597
  column: 4
18598
18598
  },
18599
18599
  end: {
18600
- line: 41,
18601
- column: 69
18600
+ line: 44,
18601
+ column: 7
18602
18602
  }
18603
18603
  },
18604
18604
  "18": {
18605
18605
  start: {
18606
- line: 42,
18606
+ line: 45,
18607
18607
  column: 4
18608
18608
  },
18609
18609
  end: {
18610
18610
  line: 45,
18611
- column: 7
18611
+ column: 40
18612
18612
  }
18613
18613
  },
18614
18614
  "19": {
@@ -18618,196 +18618,186 @@ function cov_1avu3clziw() {
18618
18618
  },
18619
18619
  end: {
18620
18620
  line: 46,
18621
- column: 40
18622
- }
18623
- },
18624
- "20": {
18625
- start: {
18626
- line: 47,
18627
- column: 4
18628
- },
18629
- end: {
18630
- line: 47,
18631
18621
  column: 27
18632
18622
  }
18633
18623
  },
18634
- "21": {
18624
+ "20": {
18635
18625
  start: {
18636
- line: 50,
18626
+ line: 49,
18637
18627
  column: 23
18638
18628
  },
18639
18629
  end: {
18640
- line: 69,
18630
+ line: 68,
18641
18631
  column: 3
18642
18632
  }
18643
18633
  },
18644
- "22": {
18634
+ "21": {
18645
18635
  start: {
18646
- line: 51,
18636
+ line: 50,
18647
18637
  column: 4
18648
18638
  },
18649
18639
  end: {
18650
- line: 55,
18640
+ line: 54,
18651
18641
  column: 5
18652
18642
  }
18653
18643
  },
18654
- "23": {
18644
+ "22": {
18655
18645
  start: {
18656
- line: 52,
18646
+ line: 51,
18657
18647
  column: 6
18658
18648
  },
18659
18649
  end: {
18660
- line: 52,
18650
+ line: 51,
18661
18651
  column: 73
18662
18652
  }
18663
18653
  },
18664
- "24": {
18654
+ "23": {
18665
18655
  start: {
18666
- line: 54,
18656
+ line: 53,
18667
18657
  column: 6
18668
18658
  },
18669
18659
  end: {
18670
- line: 54,
18660
+ line: 53,
18671
18661
  column: 13
18672
18662
  }
18673
18663
  },
18674
- "25": {
18664
+ "24": {
18675
18665
  start: {
18676
- line: 57,
18666
+ line: 56,
18677
18667
  column: 20
18678
18668
  },
18679
18669
  end: {
18680
- line: 63,
18670
+ line: 62,
18681
18671
  column: 5
18682
18672
  }
18683
18673
  },
18684
- "26": {
18674
+ "25": {
18685
18675
  start: {
18686
- line: 65,
18676
+ line: 64,
18687
18677
  column: 4
18688
18678
  },
18689
18679
  end: {
18690
- line: 68,
18680
+ line: 67,
18691
18681
  column: 7
18692
18682
  }
18693
18683
  },
18694
- "27": {
18684
+ "26": {
18695
18685
  start: {
18696
- line: 71,
18686
+ line: 70,
18697
18687
  column: 21
18698
18688
  },
18699
18689
  end: {
18700
- line: 82,
18690
+ line: 81,
18701
18691
  column: 3
18702
18692
  }
18703
18693
  },
18704
- "28": {
18694
+ "27": {
18705
18695
  start: {
18706
- line: 72,
18696
+ line: 71,
18707
18697
  column: 20
18708
18698
  },
18709
18699
  end: {
18710
- line: 75,
18700
+ line: 74,
18711
18701
  column: 5
18712
18702
  }
18713
18703
  },
18714
- "29": {
18704
+ "28": {
18715
18705
  start: {
18716
- line: 77,
18706
+ line: 76,
18717
18707
  column: 4
18718
18708
  },
18719
18709
  end: {
18720
- line: 80,
18710
+ line: 79,
18721
18711
  column: 7
18722
18712
  }
18723
18713
  },
18724
- "30": {
18714
+ "29": {
18725
18715
  start: {
18726
- line: 81,
18716
+ line: 80,
18727
18717
  column: 4
18728
18718
  },
18729
18719
  end: {
18730
- line: 81,
18720
+ line: 80,
18731
18721
  column: 27
18732
18722
  }
18733
18723
  },
18734
- "31": {
18724
+ "30": {
18735
18725
  start: {
18736
- line: 85,
18726
+ line: 84,
18737
18727
  column: 4
18738
18728
  },
18739
18729
  end: {
18740
- line: 90,
18730
+ line: 89,
18741
18731
  column: 6
18742
18732
  }
18743
18733
  },
18744
- "32": {
18734
+ "31": {
18745
18735
  start: {
18746
- line: 92,
18736
+ line: 91,
18747
18737
  column: 2
18748
18738
  },
18749
18739
  end: {
18750
- line: 109,
18740
+ line: 108,
18751
18741
  column: 3
18752
18742
  }
18753
18743
  },
18754
- "33": {
18744
+ "32": {
18755
18745
  start: {
18756
- line: 93,
18746
+ line: 92,
18757
18747
  column: 4
18758
18748
  },
18759
18749
  end: {
18760
- line: 108,
18750
+ line: 107,
18761
18751
  column: 6
18762
18752
  }
18763
18753
  },
18764
- "34": {
18754
+ "33": {
18765
18755
  start: {
18766
- line: 111,
18756
+ line: 110,
18767
18757
  column: 2
18768
18758
  },
18769
18759
  end: {
18770
- line: 173,
18760
+ line: 174,
18771
18761
  column: 4
18772
18762
  }
18773
18763
  },
18774
- "35": {
18764
+ "34": {
18775
18765
  start: {
18776
- line: 122,
18766
+ line: 121,
18777
18767
  column: 29
18778
18768
  },
18779
18769
  end: {
18780
- line: 122,
18770
+ line: 121,
18781
18771
  column: 54
18782
18772
  }
18783
18773
  },
18784
- "36": {
18774
+ "35": {
18785
18775
  start: {
18786
- line: 150,
18776
+ line: 149,
18787
18777
  column: 27
18788
18778
  },
18789
18779
  end: {
18790
- line: 150,
18780
+ line: 149,
18791
18781
  column: 49
18792
18782
  }
18793
18783
  },
18794
- "37": {
18784
+ "36": {
18795
18785
  start: {
18796
- line: 154,
18786
+ line: 152,
18797
18787
  column: 33
18798
18788
  },
18799
18789
  end: {
18800
- line: 154,
18790
+ line: 152,
18801
18791
  column: 55
18802
18792
  }
18803
18793
  },
18804
- "38": {
18794
+ "37": {
18805
18795
  start: {
18806
- line: 169,
18796
+ line: 170,
18807
18797
  column: 23
18808
18798
  },
18809
18799
  end: {
18810
- line: 169,
18800
+ line: 170,
18811
18801
  column: 51
18812
18802
  }
18813
18803
  }
@@ -18817,311 +18807,311 @@ function cov_1avu3clziw() {
18817
18807
  name: "(anonymous_0)",
18818
18808
  decl: {
18819
18809
  start: {
18820
- line: 18,
18810
+ line: 19,
18821
18811
  column: 22
18822
18812
  },
18823
18813
  end: {
18824
- line: 18,
18814
+ line: 19,
18825
18815
  column: 23
18826
18816
  }
18827
18817
  },
18828
18818
  loc: {
18829
18819
  start: {
18830
- line: 18,
18820
+ line: 19,
18831
18821
  column: 76
18832
18822
  },
18833
18823
  end: {
18834
- line: 174,
18824
+ line: 175,
18835
18825
  column: 1
18836
18826
  }
18837
18827
  },
18838
- line: 18
18828
+ line: 19
18839
18829
  },
18840
18830
  "1": {
18841
18831
  name: "(anonymous_1)",
18842
18832
  decl: {
18843
18833
  start: {
18844
- line: 32,
18834
+ line: 31,
18845
18835
  column: 23
18846
18836
  },
18847
18837
  end: {
18848
- line: 32,
18838
+ line: 31,
18849
18839
  column: 24
18850
18840
  }
18851
18841
  },
18852
18842
  loc: {
18853
18843
  start: {
18854
- line: 32,
18844
+ line: 31,
18855
18845
  column: 29
18856
18846
  },
18857
18847
  end: {
18858
- line: 36,
18848
+ line: 35,
18859
18849
  column: 3
18860
18850
  }
18861
18851
  },
18862
- line: 32
18852
+ line: 31
18863
18853
  },
18864
18854
  "2": {
18865
18855
  name: "(anonymous_2)",
18866
18856
  decl: {
18867
18857
  start: {
18868
- line: 38,
18858
+ line: 37,
18869
18859
  column: 19
18870
18860
  },
18871
18861
  end: {
18872
- line: 38,
18862
+ line: 37,
18873
18863
  column: 20
18874
18864
  }
18875
18865
  },
18876
18866
  loc: {
18877
18867
  start: {
18878
- line: 38,
18868
+ line: 37,
18879
18869
  column: 27
18880
18870
  },
18881
18871
  end: {
18882
- line: 38,
18872
+ line: 37,
18883
18873
  column: 49
18884
18874
  }
18885
18875
  },
18886
- line: 38
18876
+ line: 37
18887
18877
  },
18888
18878
  "3": {
18889
18879
  name: "(anonymous_3)",
18890
18880
  decl: {
18891
18881
  start: {
18892
- line: 40,
18882
+ line: 39,
18893
18883
  column: 24
18894
18884
  },
18895
18885
  end: {
18896
- line: 40,
18886
+ line: 39,
18897
18887
  column: 25
18898
18888
  }
18899
18889
  },
18900
18890
  loc: {
18901
18891
  start: {
18902
- line: 40,
18892
+ line: 39,
18903
18893
  column: 41
18904
18894
  },
18905
18895
  end: {
18906
- line: 48,
18896
+ line: 47,
18907
18897
  column: 3
18908
18898
  }
18909
18899
  },
18910
- line: 40
18900
+ line: 39
18911
18901
  },
18912
18902
  "4": {
18913
18903
  name: "(anonymous_4)",
18914
18904
  decl: {
18915
18905
  start: {
18916
- line: 50,
18906
+ line: 49,
18917
18907
  column: 23
18918
18908
  },
18919
18909
  end: {
18920
- line: 50,
18910
+ line: 49,
18921
18911
  column: 24
18922
18912
  }
18923
18913
  },
18924
18914
  loc: {
18925
18915
  start: {
18926
- line: 50,
18916
+ line: 49,
18927
18917
  column: 32
18928
18918
  },
18929
18919
  end: {
18930
- line: 69,
18920
+ line: 68,
18931
18921
  column: 3
18932
18922
  }
18933
18923
  },
18934
- line: 50
18924
+ line: 49
18935
18925
  },
18936
18926
  "5": {
18937
18927
  name: "(anonymous_5)",
18938
18928
  decl: {
18939
18929
  start: {
18940
- line: 71,
18930
+ line: 70,
18941
18931
  column: 21
18942
18932
  },
18943
18933
  end: {
18944
- line: 71,
18934
+ line: 70,
18945
18935
  column: 22
18946
18936
  }
18947
18937
  },
18948
18938
  loc: {
18949
18939
  start: {
18950
- line: 71,
18940
+ line: 70,
18951
18941
  column: 40
18952
18942
  },
18953
18943
  end: {
18954
- line: 82,
18944
+ line: 81,
18955
18945
  column: 3
18956
18946
  }
18957
18947
  },
18958
- line: 71
18948
+ line: 70
18959
18949
  },
18960
18950
  "6": {
18961
18951
  name: "(anonymous_6)",
18962
18952
  decl: {
18963
18953
  start: {
18964
- line: 122,
18954
+ line: 121,
18965
18955
  column: 23
18966
18956
  },
18967
18957
  end: {
18968
- line: 122,
18958
+ line: 121,
18969
18959
  column: 24
18970
18960
  }
18971
18961
  },
18972
18962
  loc: {
18973
18963
  start: {
18974
- line: 122,
18964
+ line: 121,
18975
18965
  column: 29
18976
18966
  },
18977
18967
  end: {
18978
- line: 122,
18968
+ line: 121,
18979
18969
  column: 54
18980
18970
  }
18981
18971
  },
18982
- line: 122
18972
+ line: 121
18983
18973
  },
18984
18974
  "7": {
18985
18975
  name: "(anonymous_7)",
18986
18976
  decl: {
18987
18977
  start: {
18988
- line: 150,
18978
+ line: 149,
18989
18979
  column: 21
18990
18980
  },
18991
18981
  end: {
18992
- line: 150,
18982
+ line: 149,
18993
18983
  column: 22
18994
18984
  }
18995
18985
  },
18996
18986
  loc: {
18997
18987
  start: {
18998
- line: 150,
18988
+ line: 149,
18999
18989
  column: 27
19000
18990
  },
19001
18991
  end: {
19002
- line: 150,
18992
+ line: 149,
19003
18993
  column: 49
19004
18994
  }
19005
18995
  },
19006
- line: 150
18996
+ line: 149
19007
18997
  },
19008
18998
  "8": {
19009
18999
  name: "(anonymous_8)",
19010
19000
  decl: {
19011
19001
  start: {
19012
- line: 154,
19002
+ line: 152,
19013
19003
  column: 27
19014
19004
  },
19015
19005
  end: {
19016
- line: 154,
19006
+ line: 152,
19017
19007
  column: 28
19018
19008
  }
19019
19009
  },
19020
19010
  loc: {
19021
19011
  start: {
19022
- line: 154,
19012
+ line: 152,
19023
19013
  column: 33
19024
19014
  },
19025
19015
  end: {
19026
- line: 154,
19016
+ line: 152,
19027
19017
  column: 55
19028
19018
  }
19029
19019
  },
19030
- line: 154
19020
+ line: 152
19031
19021
  },
19032
19022
  "9": {
19033
19023
  name: "(anonymous_9)",
19034
19024
  decl: {
19035
19025
  start: {
19036
- line: 169,
19026
+ line: 170,
19037
19027
  column: 17
19038
19028
  },
19039
19029
  end: {
19040
- line: 169,
19030
+ line: 170,
19041
19031
  column: 18
19042
19032
  }
19043
19033
  },
19044
19034
  loc: {
19045
19035
  start: {
19046
- line: 169,
19036
+ line: 170,
19047
19037
  column: 23
19048
19038
  },
19049
19039
  end: {
19050
- line: 169,
19040
+ line: 170,
19051
19041
  column: 51
19052
19042
  }
19053
19043
  },
19054
- line: 169
19044
+ line: 170
19055
19045
  }
19056
19046
  },
19057
19047
  branchMap: {
19058
19048
  "0": {
19059
19049
  loc: {
19060
19050
  start: {
19061
- line: 18,
19051
+ line: 19,
19062
19052
  column: 25
19063
19053
  },
19064
19054
  end: {
19065
- line: 18,
19055
+ line: 19,
19066
19056
  column: 48
19067
19057
  }
19068
19058
  },
19069
19059
  type: "default-arg",
19070
19060
  locations: [{
19071
19061
  start: {
19072
- line: 18,
19062
+ line: 19,
19073
19063
  column: 44
19074
19064
  },
19075
19065
  end: {
19076
- line: 18,
19066
+ line: 19,
19077
19067
  column: 48
19078
19068
  }
19079
19069
  }],
19080
- line: 18
19070
+ line: 19
19081
19071
  },
19082
19072
  "1": {
19083
19073
  loc: {
19084
19074
  start: {
19085
- line: 18,
19075
+ line: 19,
19086
19076
  column: 50
19087
19077
  },
19088
19078
  end: {
19089
- line: 18,
19079
+ line: 19,
19090
19080
  column: 64
19091
19081
  }
19092
19082
  },
19093
19083
  type: "default-arg",
19094
19084
  locations: [{
19095
19085
  start: {
19096
- line: 18,
19086
+ line: 19,
19097
19087
  column: 62
19098
19088
  },
19099
19089
  end: {
19100
- line: 18,
19090
+ line: 19,
19101
19091
  column: 64
19102
19092
  }
19103
19093
  }],
19104
- line: 18
19094
+ line: 19
19105
19095
  },
19106
19096
  "2": {
19107
19097
  loc: {
19108
19098
  start: {
19109
- line: 51,
19099
+ line: 50,
19110
19100
  column: 4
19111
19101
  },
19112
19102
  end: {
19113
- line: 55,
19103
+ line: 54,
19114
19104
  column: 5
19115
19105
  }
19116
19106
  },
19117
19107
  type: "if",
19118
19108
  locations: [{
19119
19109
  start: {
19120
- line: 51,
19110
+ line: 50,
19121
19111
  column: 4
19122
19112
  },
19123
19113
  end: {
19124
- line: 55,
19114
+ line: 54,
19125
19115
  column: 5
19126
19116
  }
19127
19117
  }, {
@@ -19134,27 +19124,27 @@ function cov_1avu3clziw() {
19134
19124
  column: undefined
19135
19125
  }
19136
19126
  }],
19137
- line: 51
19127
+ line: 50
19138
19128
  },
19139
19129
  "3": {
19140
19130
  loc: {
19141
19131
  start: {
19142
- line: 92,
19132
+ line: 91,
19143
19133
  column: 2
19144
19134
  },
19145
19135
  end: {
19146
- line: 109,
19136
+ line: 108,
19147
19137
  column: 3
19148
19138
  }
19149
19139
  },
19150
19140
  type: "if",
19151
19141
  locations: [{
19152
19142
  start: {
19153
- line: 92,
19143
+ line: 91,
19154
19144
  column: 2
19155
19145
  },
19156
19146
  end: {
19157
- line: 109,
19147
+ line: 108,
19158
19148
  column: 3
19159
19149
  }
19160
19150
  }, {
@@ -19167,172 +19157,172 @@ function cov_1avu3clziw() {
19167
19157
  column: undefined
19168
19158
  }
19169
19159
  }],
19170
- line: 92
19160
+ line: 91
19171
19161
  },
19172
19162
  "4": {
19173
19163
  loc: {
19174
19164
  start: {
19175
- line: 95,
19165
+ line: 94,
19176
19166
  column: 9
19177
19167
  },
19178
19168
  end: {
19179
- line: 106,
19169
+ line: 105,
19180
19170
  column: 9
19181
19171
  }
19182
19172
  },
19183
19173
  type: "cond-expr",
19184
19174
  locations: [{
19185
19175
  start: {
19186
- line: 96,
19176
+ line: 95,
19187
19177
  column: 10
19188
19178
  },
19189
19179
  end: {
19190
- line: 101,
19180
+ line: 100,
19191
19181
  column: 16
19192
19182
  }
19193
19183
  }, {
19194
19184
  start: {
19195
- line: 103,
19185
+ line: 102,
19196
19186
  column: 10
19197
19187
  },
19198
19188
  end: {
19199
- line: 105,
19189
+ line: 104,
19200
19190
  column: 16
19201
19191
  }
19202
19192
  }],
19203
- line: 95
19193
+ line: 94
19204
19194
  },
19205
19195
  "5": {
19206
19196
  loc: {
19207
19197
  start: {
19208
- line: 95,
19198
+ line: 94,
19209
19199
  column: 9
19210
19200
  },
19211
19201
  end: {
19212
- line: 95,
19202
+ line: 94,
19213
19203
  column: 55
19214
19204
  }
19215
19205
  },
19216
19206
  type: "binary-expr",
19217
19207
  locations: [{
19218
19208
  start: {
19219
- line: 95,
19209
+ line: 94,
19220
19210
  column: 9
19221
19211
  },
19222
19212
  end: {
19223
- line: 95,
19213
+ line: 94,
19224
19214
  column: 29
19225
19215
  }
19226
19216
  }, {
19227
19217
  start: {
19228
- line: 95,
19218
+ line: 94,
19229
19219
  column: 33
19230
19220
  },
19231
19221
  end: {
19232
- line: 95,
19222
+ line: 94,
19233
19223
  column: 55
19234
19224
  }
19235
19225
  }],
19236
- line: 95
19226
+ line: 94
19237
19227
  },
19238
19228
  "6": {
19239
19229
  loc: {
19240
19230
  start: {
19241
- line: 113,
19231
+ line: 112,
19242
19232
  column: 7
19243
19233
  },
19244
19234
  end: {
19245
- line: 166,
19235
+ line: 167,
19246
19236
  column: 7
19247
19237
  }
19248
19238
  },
19249
19239
  type: "cond-expr",
19250
19240
  locations: [{
19251
19241
  start: {
19252
- line: 114,
19242
+ line: 113,
19253
19243
  column: 8
19254
19244
  },
19255
19245
  end: {
19256
- line: 159,
19246
+ line: 160,
19257
19247
  column: 14
19258
19248
  }
19259
19249
  }, {
19260
19250
  start: {
19261
- line: 161,
19251
+ line: 162,
19262
19252
  column: 8
19263
19253
  },
19264
19254
  end: {
19265
- line: 165,
19255
+ line: 166,
19266
19256
  column: 10
19267
19257
  }
19268
19258
  }],
19269
- line: 113
19259
+ line: 112
19270
19260
  },
19271
19261
  "7": {
19272
19262
  loc: {
19273
19263
  start: {
19274
- line: 140,
19264
+ line: 139,
19275
19265
  column: 24
19276
19266
  },
19277
19267
  end: {
19278
- line: 140,
19279
- column: 58
19268
+ line: 139,
19269
+ column: 73
19280
19270
  }
19281
19271
  },
19282
19272
  type: "binary-expr",
19283
19273
  locations: [{
19284
19274
  start: {
19285
- line: 140,
19275
+ line: 139,
19286
19276
  column: 24
19287
19277
  },
19288
19278
  end: {
19289
- line: 140,
19290
- column: 37
19279
+ line: 139,
19280
+ column: 52
19291
19281
  }
19292
19282
  }, {
19293
19283
  start: {
19294
- line: 140,
19295
- column: 41
19284
+ line: 139,
19285
+ column: 56
19296
19286
  },
19297
19287
  end: {
19298
- line: 140,
19299
- column: 58
19288
+ line: 139,
19289
+ column: 73
19300
19290
  }
19301
19291
  }],
19302
- line: 140
19292
+ line: 139
19303
19293
  },
19304
19294
  "8": {
19305
19295
  loc: {
19306
19296
  start: {
19307
- line: 153,
19308
- column: 34
19297
+ line: 156,
19298
+ column: 16
19309
19299
  },
19310
19300
  end: {
19311
- line: 153,
19312
- column: 76
19301
+ line: 156,
19302
+ column: 73
19313
19303
  }
19314
19304
  },
19315
19305
  type: "cond-expr",
19316
19306
  locations: [{
19317
19307
  start: {
19318
- line: 153,
19319
- column: 50
19308
+ line: 156,
19309
+ column: 47
19320
19310
  },
19321
19311
  end: {
19322
- line: 153,
19323
- column: 63
19312
+ line: 156,
19313
+ column: 60
19324
19314
  }
19325
19315
  }, {
19326
19316
  start: {
19327
- line: 153,
19328
- column: 66
19317
+ line: 156,
19318
+ column: 63
19329
19319
  },
19330
19320
  end: {
19331
- line: 153,
19332
- column: 76
19321
+ line: 156,
19322
+ column: 73
19333
19323
  }
19334
19324
  }],
19335
- line: 153
19325
+ line: 156
19336
19326
  }
19337
19327
  },
19338
19328
  s: {
@@ -19373,8 +19363,7 @@ function cov_1avu3clziw() {
19373
19363
  "34": 0,
19374
19364
  "35": 0,
19375
19365
  "36": 0,
19376
- "37": 0,
19377
- "38": 0
19366
+ "37": 0
19378
19367
  },
19379
19368
  f: {
19380
19369
  "0": 0,
@@ -19400,7 +19389,7 @@ function cov_1avu3clziw() {
19400
19389
  "8": [0, 0]
19401
19390
  },
19402
19391
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
19403
- hash: "bb1c2e8e6f0f6fe878378d28af9bf296f5e818e6"
19392
+ hash: "d7b859013a7d4c490e45dcdc8d9538434190e345"
19404
19393
  };
19405
19394
  var coverage = global[gcv] || (global[gcv] = {});
19406
19395
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -19448,65 +19437,111 @@ var ImageUploader = function ImageUploader(_ref) {
19448
19437
  setSignedId = _ref11[1];
19449
19438
  var _ref12 = (cov_1avu3clziw().s[6]++, useTranslation()),
19450
19439
  t = _ref12.t;
19451
- var isDevelopment = (cov_1avu3clziw().s[7]++, true);
19452
- var _ref13 = (cov_1avu3clziw().s[8]++, useCreateBlob());
19453
- _ref13.mutate;
19454
- var _ref14 = (cov_1avu3clziw().s[9]++, useUpdateBlob());
19455
- _ref14.mutate;
19456
- cov_1avu3clziw().s[10]++;
19440
+ var _ref13 = (cov_1avu3clziw().s[7]++, useCreateBlob()),
19441
+ createBlob = _ref13.mutate;
19442
+ var _ref14 = (cov_1avu3clziw().s[8]++, useUpdateBlob()),
19443
+ updateBlob = _ref14.mutate;
19444
+ cov_1avu3clziw().s[9]++;
19457
19445
  var handleDelete = function handleDelete() {
19458
19446
  cov_1avu3clziw().f[1]++;
19459
- cov_1avu3clziw().s[11]++;
19447
+ cov_1avu3clziw().s[10]++;
19460
19448
  setImage({});
19461
- cov_1avu3clziw().s[12]++;
19449
+ cov_1avu3clziw().s[11]++;
19462
19450
  setSignedId("");
19463
- cov_1avu3clziw().s[13]++;
19451
+ cov_1avu3clziw().s[12]++;
19464
19452
  onChange({
19465
19453
  url: "",
19466
19454
  signedId: ""
19467
19455
  });
19468
19456
  };
19469
- cov_1avu3clziw().s[14]++;
19457
+ cov_1avu3clziw().s[13]++;
19470
19458
  var onChange = function onChange(file) {
19471
19459
  cov_1avu3clziw().f[2]++;
19472
- cov_1avu3clziw().s[15]++;
19460
+ cov_1avu3clziw().s[14]++;
19473
19461
  return onUploadComplete(file);
19474
19462
  };
19475
- cov_1avu3clziw().s[16]++;
19463
+ cov_1avu3clziw().s[15]++;
19476
19464
  var handleSuccess = function handleSuccess(attachedImage) {
19477
19465
  cov_1avu3clziw().f[3]++;
19478
- cov_1avu3clziw().s[17]++;
19466
+ cov_1avu3clziw().s[16]++;
19479
19467
  setImage(ramda.mergeRight(image, {
19480
19468
  url: attachedImage.metadata.url
19481
19469
  }));
19482
- cov_1avu3clziw().s[18]++;
19470
+ cov_1avu3clziw().s[17]++;
19483
19471
  onChange({
19484
19472
  url: attachedImage.metadata.url,
19485
19473
  signedId: attachedImage.signedId
19486
19474
  });
19487
- cov_1avu3clziw().s[19]++;
19475
+ cov_1avu3clziw().s[18]++;
19488
19476
  setSignedId(attachedImage.signedId);
19489
- cov_1avu3clziw().s[20]++;
19477
+ cov_1avu3clziw().s[19]++;
19490
19478
  setIsEditorOpen(false);
19491
19479
  };
19492
- cov_1avu3clziw().s[21]++;
19480
+ cov_1avu3clziw().s[20]++;
19493
19481
  var handleUpload = function handleUpload(image) {
19494
19482
  cov_1avu3clziw().f[4]++;
19495
- cov_1avu3clziw().s[22]++;
19496
- {
19483
+ cov_1avu3clziw().s[21]++;
19484
+ if (IS_DEVELOPMENT_OR_HEROKU_ENV) {
19497
19485
  cov_1avu3clziw().b[2][0]++;
19498
- cov_1avu3clziw().s[23]++;
19486
+ cov_1avu3clziw().s[22]++;
19499
19487
  handleSuccess(ramda.mergeRight(image, {
19500
19488
  metadata: {
19501
19489
  url: image.url
19502
19490
  }
19503
19491
  }));
19504
- cov_1avu3clziw().s[24]++;
19492
+ cov_1avu3clziw().s[23]++;
19505
19493
  return;
19494
+ } else {
19495
+ cov_1avu3clziw().b[2][1]++;
19506
19496
  }
19497
+ var payload = (cov_1avu3clziw().s[24]++, {
19498
+ filename: image.name,
19499
+ byteSize: image.size,
19500
+ contentType: image.fileType,
19501
+ checksum: image.fileId,
19502
+ metadata: image
19503
+ });
19504
+ cov_1avu3clziw().s[25]++;
19505
+ createBlob(payload, {
19506
+ onSuccess: handleSuccess,
19507
+ onError: neetoui.Toastr.error
19508
+ });
19507
19509
  };
19508
- cov_1avu3clziw().s[27]++;
19509
- var _ref17 = (cov_1avu3clziw().s[31]++, useDropzoneWithValidation({
19510
+ cov_1avu3clziw().s[26]++;
19511
+ var handleEdit = /*#__PURE__*/function () {
19512
+ var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref15) {
19513
+ var url, payload;
19514
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
19515
+ while (1) switch (_context.prev = _context.next) {
19516
+ case 0:
19517
+ url = _ref15.url;
19518
+ cov_1avu3clziw().f[5]++;
19519
+ payload = (cov_1avu3clziw().s[27]++, {
19520
+ id: signedId,
19521
+ payload: {
19522
+ metadata: {
19523
+ url: url
19524
+ }
19525
+ }
19526
+ });
19527
+ cov_1avu3clziw().s[28]++;
19528
+ updateBlob(payload, {
19529
+ onSuccess: handleSuccess,
19530
+ onError: neetoui.Toastr.error
19531
+ });
19532
+ cov_1avu3clziw().s[29]++;
19533
+ setIsEditorOpen(false);
19534
+ case 7:
19535
+ case "end":
19536
+ return _context.stop();
19537
+ }
19538
+ }, _callee);
19539
+ }));
19540
+ return function handleEdit(_x) {
19541
+ return _ref16.apply(this, arguments);
19542
+ };
19543
+ }();
19544
+ var _ref17 = (cov_1avu3clziw().s[30]++, useDropzoneWithValidation({
19510
19545
  maxSize: MAX_IMAGE_SIZE,
19511
19546
  acceptedTypes: ALLOWED_IMAGE_TYPES,
19512
19547
  onUploadComplete: handleUpload,
@@ -19516,10 +19551,10 @@ var ImageUploader = function ImageUploader(_ref) {
19516
19551
  getInputProps = _ref17.getInputProps,
19517
19552
  uploadProgress = _ref17.uploadProgress,
19518
19553
  inputRef = _ref17.inputRef;
19519
- cov_1avu3clziw().s[32]++;
19554
+ cov_1avu3clziw().s[31]++;
19520
19555
  if (isUploading) {
19521
19556
  cov_1avu3clziw().b[3][0]++;
19522
- cov_1avu3clziw().s[33]++;
19557
+ cov_1avu3clziw().s[32]++;
19523
19558
  return /*#__PURE__*/React__default["default"].createElement("div", {
19524
19559
  className: className
19525
19560
  }, (cov_1avu3clziw().b[5][0]++, uploadProgress !== 0) && (cov_1avu3clziw().b[5][1]++, uploadProgress !== 100) ? (cov_1avu3clziw().b[4][0]++, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -19533,7 +19568,7 @@ var ImageUploader = function ImageUploader(_ref) {
19533
19568
  } else {
19534
19569
  cov_1avu3clziw().b[3][1]++;
19535
19570
  }
19536
- cov_1avu3clziw().s[34]++;
19571
+ cov_1avu3clziw().s[33]++;
19537
19572
  return /*#__PURE__*/React__default["default"].createElement("div", {
19538
19573
  className: className
19539
19574
  }, isNotNilOrEmpty(image.url) ? (cov_1avu3clziw().b[6][0]++, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -19551,7 +19586,7 @@ var ImageUploader = function ImageUploader(_ref) {
19551
19586
  onClick: function onClick() {
19552
19587
  var _inputRef$current;
19553
19588
  cov_1avu3clziw().f[6]++;
19554
- cov_1avu3clziw().s[35]++;
19589
+ cov_1avu3clziw().s[34]++;
19555
19590
  return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
19556
19591
  }
19557
19592
  }), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -19570,7 +19605,7 @@ var ImageUploader = function ImageUploader(_ref) {
19570
19605
  }), /*#__PURE__*/React__default["default"].createElement("div", {
19571
19606
  className: "neeto-ui-bg-gray-300 w-px"
19572
19607
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
19573
- disabled: (cov_1avu3clziw().b[7][0]++, isDevelopment) && (cov_1avu3clziw().b[7][1]++, ramda.isEmpty(signedId)),
19608
+ disabled: (cov_1avu3clziw().b[7][0]++, IS_DEVELOPMENT_OR_HEROKU_ENV) && (cov_1avu3clziw().b[7][1]++, ramda.isEmpty(signedId)),
19574
19609
  label: t("imageUpload.edit"),
19575
19610
  style: "link",
19576
19611
  onClick: setIsEditorOpen
@@ -19580,18 +19615,18 @@ var ImageUploader = function ImageUploader(_ref) {
19580
19615
  size: "large",
19581
19616
  onClose: function onClose() {
19582
19617
  cov_1avu3clziw().f[7]++;
19583
- cov_1avu3clziw().s[36]++;
19618
+ cov_1avu3clziw().s[35]++;
19584
19619
  return setIsEditorOpen(false);
19585
19620
  }
19586
19621
  }, /*#__PURE__*/React__default["default"].createElement(ImageEditor, {
19587
- handleEditComplete: (cov_1avu3clziw().b[8][0]++, handleSuccess) ,
19588
19622
  handleReset: function handleReset() {
19589
19623
  cov_1avu3clziw().f[8]++;
19590
- cov_1avu3clziw().s[37]++;
19624
+ cov_1avu3clziw().s[36]++;
19591
19625
  return setIsEditorOpen(false);
19592
19626
  },
19593
19627
  image: image,
19594
- signedId: signedId
19628
+ signedId: signedId,
19629
+ handleEditComplete: IS_DEVELOPMENT_OR_HEROKU_ENV ? (cov_1avu3clziw().b[8][0]++, handleSuccess) : (cov_1avu3clziw().b[8][1]++, handleEdit)
19595
19630
  })))) : (cov_1avu3clziw().b[6][1]++, /*#__PURE__*/React__default["default"].createElement(ImageUpload, {
19596
19631
  getInputProps: getInputProps,
19597
19632
  getRootProps: getRootProps,
@@ -19600,7 +19635,7 @@ var ImageUploader = function ImageUploader(_ref) {
19600
19635
  isOpen: isAssetLibraryOpen,
19601
19636
  onClose: function onClose() {
19602
19637
  cov_1avu3clziw().f[9]++;
19603
- cov_1avu3clziw().s[38]++;
19638
+ cov_1avu3clziw().s[37]++;
19604
19639
  return setIsAssetLibraryOpen(false);
19605
19640
  },
19606
19641
  onUploadComplete: handleUpload