@bigbinary/neeto-form-frontend 1.1.7 → 1.1.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
@@ -7550,6 +7550,155 @@ var useUpdateSubmission = function useUpdateSubmission(options) {
7550
7550
  }));
7551
7551
  };
7552
7552
 
7553
+ function cov_mbp79m7m4() {
7554
+ var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/constants.js";
7555
+ var hash = "631e837964fe5ad9ac2dca205fbf66d83b2a4115";
7556
+ var global = new Function("return this")();
7557
+ var gcv = "__coverage__";
7558
+ var coverageData = {
7559
+ path: "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/constants.js",
7560
+ statementMap: {
7561
+ "0": {
7562
+ start: {
7563
+ line: 3,
7564
+ column: 30
7565
+ },
7566
+ end: {
7567
+ line: 113,
7568
+ column: 1
7569
+ }
7570
+ },
7571
+ "1": {
7572
+ start: {
7573
+ line: 115,
7574
+ column: 25
7575
+ },
7576
+ end: {
7577
+ line: 115,
7578
+ column: 58
7579
+ }
7580
+ }
7581
+ },
7582
+ fnMap: {},
7583
+ branchMap: {},
7584
+ s: {
7585
+ "0": 0,
7586
+ "1": 0
7587
+ },
7588
+ f: {},
7589
+ b: {},
7590
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
7591
+ hash: "631e837964fe5ad9ac2dca205fbf66d83b2a4115"
7592
+ };
7593
+ var coverage = global[gcv] || (global[gcv] = {});
7594
+ if (!coverage[path] || coverage[path].hash !== hash) {
7595
+ coverage[path] = coverageData;
7596
+ }
7597
+ var actualCoverage = coverage[path];
7598
+ {
7599
+ // @ts-ignore
7600
+ cov_mbp79m7m4 = function () {
7601
+ return actualCoverage;
7602
+ };
7603
+ }
7604
+ return actualCoverage;
7605
+ }
7606
+ cov_mbp79m7m4();
7607
+ (cov_mbp79m7m4().s[0]++, {
7608
+ questions: [{
7609
+ id: "bb101126-4183-4ddf-adff-7563a2be0b19",
7610
+ kind: "paragraph",
7611
+ displayOrder: 1,
7612
+ displayKind: "Description Field",
7613
+ label: i18next.t("neetoForm.common.fillTheFormToChat"),
7614
+ placeholder: "",
7615
+ isRequired: false,
7616
+ options: [],
7617
+ nodeId: "bb101126-4183-4ddf-adff-7563a2be0b19"
7618
+ }, {
7619
+ id: "a8e0178e-44df-465e-8acb-ef5d1c08d541",
7620
+ kind: "email",
7621
+ displayOrder: 2,
7622
+ displayKind: "Email Input Field",
7623
+ label: i18next.t("neetoForm.common.email"),
7624
+ placeholder: "",
7625
+ isRequired: true,
7626
+ options: [],
7627
+ nodeId: "a8e0178e-44df-465e-8acb-ef5d1c08d541"
7628
+ }, {
7629
+ id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62d8f6",
7630
+ label: i18next.t("neetoForm.common.selectOne"),
7631
+ isRequired: false,
7632
+ options: [{
7633
+ label: "ABC",
7634
+ id: "ABC"
7635
+ }, {
7636
+ label: "EFG",
7637
+ id: "EFG"
7638
+ }, {
7639
+ label: "QWE",
7640
+ id: "QWE"
7641
+ }],
7642
+ kind: "checkbox",
7643
+ nodeId: "f32ad8aa-039a-4b70-b3af-b97ed6fc67a6"
7644
+ }, {
7645
+ id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62wew",
7646
+ label: i18next.t("neetoForm.common.rate"),
7647
+ isRequired: true,
7648
+ highestRatingLabel: "",
7649
+ averageRatingLabel: "",
7650
+ lowestRatingLabel: "",
7651
+ kind: "rating",
7652
+ nodeId: "236a8cb3-b86d-4c30-9c18-f0d69788f6bc"
7653
+ }, {
7654
+ id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62d8as",
7655
+ label: i18next.t("neetoForm.common.phone"),
7656
+ kind: "phone",
7657
+ nodeId: "5dd3be53-ec99-48e2-bf21-298b6108cb00"
7658
+ }, {
7659
+ id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62d8f32",
7660
+ label: i18next.t("neetoForm.common.select"),
7661
+ isRequired: false,
7662
+ options: [{
7663
+ label: "A",
7664
+ id: "A"
7665
+ }, {
7666
+ label: "B",
7667
+ id: "B"
7668
+ }, {
7669
+ label: "C",
7670
+ id: "C"
7671
+ }],
7672
+ kind: "dropdown",
7673
+ nodeId: "e65f27ea-a9b9-45b1-a8de-efb27a5b3e72"
7674
+ }, {
7675
+ id: "a7d3e47d-f7a2-4bf9-aaea-d301ad62d8f8",
7676
+ label: "Nice",
7677
+ kind: "paragraph",
7678
+ nodeId: "15507c92-4bb5-4428-bc2b-0a7b078a144a"
7679
+ }, {
7680
+ id: "a7d3e47d-f7a2-4bf9-aaea-d301addw2d8f9",
7681
+ label: i18next.t("neetoForm.common.singleChoice"),
7682
+ isRequired: false,
7683
+ options: [{
7684
+ label: "A",
7685
+ id: "A"
7686
+ }, {
7687
+ label: "B",
7688
+ id: "B"
7689
+ }, {
7690
+ label: "C",
7691
+ id: "C"
7692
+ }],
7693
+ kind: "radio",
7694
+ nodeId: "37683bae-da1b-4890-ade9-0664006dc57d"
7695
+ }]
7696
+ });
7697
+ var THUMBS_UP = (cov_mbp79m7m4().s[1]++, {
7698
+ icon: "👍",
7699
+ className: "w-20"
7700
+ });
7701
+
7553
7702
  function cov_16b5hyh40v() {
7554
7703
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/common/helpers/form.js";
7555
7704
  var hash = "987746111ffb0997187da2da6e6bc4c4eb79e03d";
@@ -29849,7 +29998,7 @@ var formValidationSchema = (cov_13igvew484().s[2]++, yup.object().shape({
29849
29998
 
29850
29999
  function cov_2nbnnlcv5p() {
29851
30000
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/index.jsx";
29852
- var hash = "3657512e450f0fb3332d5e2b841a7570f6023ce7";
30001
+ var hash = "586f1e4ea09a0f3f1bd98abee7fc2f2b618eecf5";
29853
30002
  var global = new Function("return this")();
29854
30003
  var gcv = "__coverage__";
29855
30004
  var coverageData = {
@@ -29857,7 +30006,7 @@ function cov_2nbnnlcv5p() {
29857
30006
  statementMap: {
29858
30007
  "0": {
29859
30008
  start: {
29860
- line: 20,
30009
+ line: 21,
29861
30010
  column: 18
29862
30011
  },
29863
30012
  end: {
@@ -29867,17 +30016,17 @@ function cov_2nbnnlcv5p() {
29867
30016
  },
29868
30017
  "1": {
29869
30018
  start: {
29870
- line: 41,
30019
+ line: 42,
29871
30020
  column: 22
29872
30021
  },
29873
30022
  end: {
29874
- line: 41,
30023
+ line: 42,
29875
30024
  column: 38
29876
30025
  }
29877
30026
  },
29878
30027
  "2": {
29879
30028
  start: {
29880
- line: 43,
30029
+ line: 44,
29881
30030
  column: 43
29882
30031
  },
29883
30032
  end: {
@@ -29887,22 +30036,22 @@ function cov_2nbnnlcv5p() {
29887
30036
  },
29888
30037
  "3": {
29889
30038
  start: {
29890
- line: 45,
30039
+ line: 46,
29891
30040
  column: 22
29892
30041
  },
29893
30042
  end: {
29894
- line: 45,
30043
+ line: 46,
29895
30044
  column: 41
29896
30045
  }
29897
30046
  },
29898
30047
  "4": {
29899
30048
  start: {
29900
30049
  line: 47,
29901
- column: 6
30050
+ column: 21
29902
30051
  },
29903
30052
  end: {
29904
30053
  line: 47,
29905
- column: 28
30054
+ column: 50
29906
30055
  }
29907
30056
  },
29908
30057
  "5": {
@@ -30121,17 +30270,17 @@ function cov_2nbnnlcv5p() {
30121
30270
  name: "(anonymous_0)",
30122
30271
  decl: {
30123
30272
  start: {
30124
- line: 20,
30273
+ line: 21,
30125
30274
  column: 18
30126
30275
  },
30127
30276
  end: {
30128
- line: 20,
30277
+ line: 21,
30129
30278
  column: 19
30130
30279
  }
30131
30280
  },
30132
30281
  loc: {
30133
30282
  start: {
30134
- line: 40,
30283
+ line: 41,
30135
30284
  column: 6
30136
30285
  },
30137
30286
  end: {
@@ -30139,52 +30288,52 @@ function cov_2nbnnlcv5p() {
30139
30288
  column: 1
30140
30289
  }
30141
30290
  },
30142
- line: 40
30291
+ line: 41
30143
30292
  },
30144
30293
  "1": {
30145
30294
  name: "(anonymous_1)",
30146
30295
  decl: {
30147
30296
  start: {
30148
- line: 45,
30297
+ line: 46,
30149
30298
  column: 13
30150
30299
  },
30151
30300
  end: {
30152
- line: 45,
30301
+ line: 46,
30153
30302
  column: 14
30154
30303
  }
30155
30304
  },
30156
30305
  loc: {
30157
30306
  start: {
30158
- line: 45,
30307
+ line: 46,
30159
30308
  column: 22
30160
30309
  },
30161
30310
  end: {
30162
- line: 45,
30311
+ line: 46,
30163
30312
  column: 41
30164
30313
  }
30165
30314
  },
30166
- line: 45
30315
+ line: 46
30167
30316
  },
30168
30317
  "2": {
30169
30318
  name: "(anonymous_2)",
30170
30319
  decl: {
30171
30320
  start: {
30172
- line: 46,
30321
+ line: 47,
30173
30322
  column: 15
30174
30323
  },
30175
30324
  end: {
30176
- line: 46,
30325
+ line: 47,
30177
30326
  column: 16
30178
30327
  }
30179
30328
  },
30180
30329
  loc: {
30181
30330
  start: {
30182
30331
  line: 47,
30183
- column: 6
30332
+ column: 21
30184
30333
  },
30185
30334
  end: {
30186
30335
  line: 47,
30187
- column: 28
30336
+ column: 50
30188
30337
  }
30189
30338
  },
30190
30339
  line: 47
@@ -30386,268 +30535,244 @@ function cov_2nbnnlcv5p() {
30386
30535
  "0": {
30387
30536
  loc: {
30388
30537
  start: {
30389
- line: 24,
30538
+ line: 25,
30390
30539
  column: 2
30391
30540
  },
30392
30541
  end: {
30393
- line: 24,
30542
+ line: 25,
30394
30543
  column: 31
30395
30544
  }
30396
30545
  },
30397
30546
  type: "default-arg",
30398
30547
  locations: [{
30399
30548
  start: {
30400
- line: 24,
30549
+ line: 25,
30401
30550
  column: 27
30402
30551
  },
30403
30552
  end: {
30404
- line: 24,
30553
+ line: 25,
30405
30554
  column: 31
30406
30555
  }
30407
30556
  }],
30408
- line: 24
30557
+ line: 25
30409
30558
  },
30410
30559
  "1": {
30411
30560
  loc: {
30412
30561
  start: {
30413
- line: 25,
30562
+ line: 26,
30414
30563
  column: 2
30415
30564
  },
30416
30565
  end: {
30417
- line: 25,
30566
+ line: 26,
30418
30567
  column: 25
30419
30568
  }
30420
30569
  },
30421
30570
  type: "default-arg",
30422
30571
  locations: [{
30423
30572
  start: {
30424
- line: 25,
30573
+ line: 26,
30425
30574
  column: 23
30426
30575
  },
30427
30576
  end: {
30428
- line: 25,
30577
+ line: 26,
30429
30578
  column: 25
30430
30579
  }
30431
30580
  }],
30432
- line: 25
30581
+ line: 26
30433
30582
  },
30434
30583
  "2": {
30435
30584
  loc: {
30436
30585
  start: {
30437
- line: 26,
30586
+ line: 27,
30438
30587
  column: 2
30439
30588
  },
30440
30589
  end: {
30441
- line: 26,
30590
+ line: 27,
30442
30591
  column: 21
30443
30592
  }
30444
30593
  },
30445
30594
  type: "default-arg",
30446
30595
  locations: [{
30447
30596
  start: {
30448
- line: 26,
30597
+ line: 27,
30449
30598
  column: 19
30450
30599
  },
30451
30600
  end: {
30452
- line: 26,
30601
+ line: 27,
30453
30602
  column: 21
30454
30603
  }
30455
30604
  }],
30456
- line: 26
30605
+ line: 27
30457
30606
  },
30458
30607
  "3": {
30459
30608
  loc: {
30460
30609
  start: {
30461
- line: 28,
30610
+ line: 29,
30462
30611
  column: 2
30463
30612
  },
30464
30613
  end: {
30465
- line: 28,
30614
+ line: 29,
30466
30615
  column: 24
30467
30616
  }
30468
30617
  },
30469
30618
  type: "default-arg",
30470
30619
  locations: [{
30471
30620
  start: {
30472
- line: 28,
30621
+ line: 29,
30473
30622
  column: 20
30474
30623
  },
30475
30624
  end: {
30476
- line: 28,
30625
+ line: 29,
30477
30626
  column: 24
30478
30627
  }
30479
30628
  }],
30480
- line: 28
30629
+ line: 29
30481
30630
  },
30482
30631
  "4": {
30483
30632
  loc: {
30484
30633
  start: {
30485
- line: 31,
30634
+ line: 32,
30486
30635
  column: 2
30487
30636
  },
30488
30637
  end: {
30489
- line: 31,
30638
+ line: 32,
30490
30639
  column: 20
30491
30640
  }
30492
30641
  },
30493
30642
  type: "default-arg",
30494
30643
  locations: [{
30495
30644
  start: {
30496
- line: 31,
30645
+ line: 32,
30497
30646
  column: 18
30498
30647
  },
30499
30648
  end: {
30500
- line: 31,
30649
+ line: 32,
30501
30650
  column: 20
30502
30651
  }
30503
30652
  }],
30504
- line: 31
30653
+ line: 32
30505
30654
  },
30506
30655
  "5": {
30507
30656
  loc: {
30508
30657
  start: {
30509
- line: 32,
30658
+ line: 33,
30510
30659
  column: 2
30511
30660
  },
30512
30661
  end: {
30513
- line: 32,
30662
+ line: 33,
30514
30663
  column: 51
30515
30664
  }
30516
30665
  },
30517
30666
  type: "default-arg",
30518
30667
  locations: [{
30519
30668
  start: {
30520
- line: 32,
30669
+ line: 33,
30521
30670
  column: 24
30522
30671
  },
30523
30672
  end: {
30524
- line: 32,
30673
+ line: 33,
30525
30674
  column: 51
30526
30675
  }
30527
30676
  }],
30528
- line: 32
30677
+ line: 33
30529
30678
  },
30530
30679
  "6": {
30531
30680
  loc: {
30532
30681
  start: {
30533
- line: 33,
30682
+ line: 34,
30534
30683
  column: 2
30535
30684
  },
30536
30685
  end: {
30537
- line: 33,
30686
+ line: 34,
30538
30687
  column: 53
30539
30688
  }
30540
30689
  },
30541
30690
  type: "default-arg",
30542
30691
  locations: [{
30543
30692
  start: {
30544
- line: 33,
30693
+ line: 34,
30545
30694
  column: 25
30546
30695
  },
30547
30696
  end: {
30548
- line: 33,
30697
+ line: 34,
30549
30698
  column: 53
30550
30699
  }
30551
30700
  }],
30552
- line: 33
30701
+ line: 34
30553
30702
  },
30554
30703
  "7": {
30555
30704
  loc: {
30556
30705
  start: {
30557
- line: 37,
30706
+ line: 38,
30558
30707
  column: 2
30559
30708
  },
30560
30709
  end: {
30561
- line: 37,
30710
+ line: 38,
30562
30711
  column: 20
30563
30712
  }
30564
30713
  },
30565
30714
  type: "default-arg",
30566
30715
  locations: [{
30567
30716
  start: {
30568
- line: 37,
30717
+ line: 38,
30569
30718
  column: 15
30570
30719
  },
30571
30720
  end: {
30572
- line: 37,
30721
+ line: 38,
30573
30722
  column: 20
30574
30723
  }
30575
30724
  }],
30576
- line: 37
30725
+ line: 38
30577
30726
  },
30578
30727
  "8": {
30579
30728
  loc: {
30580
30729
  start: {
30581
- line: 38,
30730
+ line: 39,
30582
30731
  column: 2
30583
30732
  },
30584
30733
  end: {
30585
- line: 38,
30734
+ line: 39,
30586
30735
  column: 25
30587
30736
  }
30588
30737
  },
30589
30738
  type: "default-arg",
30590
30739
  locations: [{
30591
30740
  start: {
30592
- line: 38,
30741
+ line: 39,
30593
30742
  column: 17
30594
30743
  },
30595
30744
  end: {
30596
- line: 38,
30745
+ line: 39,
30597
30746
  column: 25
30598
30747
  }
30599
30748
  }],
30600
- line: 38
30749
+ line: 39
30601
30750
  },
30602
30751
  "9": {
30603
30752
  loc: {
30604
30753
  start: {
30605
- line: 39,
30754
+ line: 40,
30606
30755
  column: 2
30607
30756
  },
30608
30757
  end: {
30609
- line: 39,
30758
+ line: 40,
30610
30759
  column: 31
30611
30760
  }
30612
30761
  },
30613
30762
  type: "default-arg",
30614
30763
  locations: [{
30615
30764
  start: {
30616
- line: 39,
30765
+ line: 40,
30617
30766
  column: 26
30618
30767
  },
30619
30768
  end: {
30620
- line: 39,
30769
+ line: 40,
30621
30770
  column: 31
30622
30771
  }
30623
30772
  }],
30624
- line: 39
30773
+ line: 40
30625
30774
  },
30626
30775
  "10": {
30627
- loc: {
30628
- start: {
30629
- line: 46,
30630
- column: 18
30631
- },
30632
- end: {
30633
- line: 46,
30634
- column: 70
30635
- }
30636
- },
30637
- type: "default-arg",
30638
- locations: [{
30639
- start: {
30640
- line: 46,
30641
- column: 27
30642
- },
30643
- end: {
30644
- line: 46,
30645
- column: 70
30646
- }
30647
- }],
30648
- line: 46
30649
- },
30650
- "11": {
30651
30776
  loc: {
30652
30777
  start: {
30653
30778
  line: 51,
@@ -30671,7 +30796,7 @@ function cov_2nbnnlcv5p() {
30671
30796
  }],
30672
30797
  line: 51
30673
30798
  },
30674
- "12": {
30799
+ "11": {
30675
30800
  loc: {
30676
30801
  start: {
30677
30802
  line: 76,
@@ -30704,7 +30829,7 @@ function cov_2nbnnlcv5p() {
30704
30829
  }],
30705
30830
  line: 76
30706
30831
  },
30707
- "13": {
30832
+ "12": {
30708
30833
  loc: {
30709
30834
  start: {
30710
30835
  line: 76,
@@ -30746,7 +30871,7 @@ function cov_2nbnnlcv5p() {
30746
30871
  }],
30747
30872
  line: 76
30748
30873
  },
30749
- "14": {
30874
+ "13": {
30750
30875
  loc: {
30751
30876
  start: {
30752
30877
  line: 99,
@@ -30779,7 +30904,7 @@ function cov_2nbnnlcv5p() {
30779
30904
  }],
30780
30905
  line: 99
30781
30906
  },
30782
- "15": {
30907
+ "14": {
30783
30908
  loc: {
30784
30909
  start: {
30785
30910
  line: 108,
@@ -30812,7 +30937,7 @@ function cov_2nbnnlcv5p() {
30812
30937
  }],
30813
30938
  line: 108
30814
30939
  },
30815
- "16": {
30940
+ "15": {
30816
30941
  loc: {
30817
30942
  start: {
30818
30943
  line: 112,
@@ -30845,7 +30970,7 @@ function cov_2nbnnlcv5p() {
30845
30970
  }],
30846
30971
  line: 112
30847
30972
  },
30848
- "17": {
30973
+ "16": {
30849
30974
  loc: {
30850
30975
  start: {
30851
30976
  line: 114,
@@ -30878,7 +31003,7 @@ function cov_2nbnnlcv5p() {
30878
31003
  }],
30879
31004
  line: 114
30880
31005
  },
30881
- "18": {
31006
+ "17": {
30882
31007
  loc: {
30883
31008
  start: {
30884
31009
  line: 116,
@@ -30911,7 +31036,7 @@ function cov_2nbnnlcv5p() {
30911
31036
  }],
30912
31037
  line: 116
30913
31038
  },
30914
- "19": {
31039
+ "18": {
30915
31040
  loc: {
30916
31041
  start: {
30917
31042
  line: 145,
@@ -30944,7 +31069,7 @@ function cov_2nbnnlcv5p() {
30944
31069
  }],
30945
31070
  line: 145
30946
31071
  },
30947
- "20": {
31072
+ "19": {
30948
31073
  loc: {
30949
31074
  start: {
30950
31075
  line: 149,
@@ -30977,7 +31102,7 @@ function cov_2nbnnlcv5p() {
30977
31102
  }],
30978
31103
  line: 149
30979
31104
  },
30980
- "21": {
31105
+ "20": {
30981
31106
  loc: {
30982
31107
  start: {
30983
31108
  line: 156,
@@ -31064,20 +31189,19 @@ function cov_2nbnnlcv5p() {
31064
31189
  "8": [0],
31065
31190
  "9": [0],
31066
31191
  "10": [0],
31067
- "11": [0],
31068
- "12": [0, 0],
31069
- "13": [0, 0, 0],
31192
+ "11": [0, 0],
31193
+ "12": [0, 0, 0],
31194
+ "13": [0, 0],
31070
31195
  "14": [0, 0],
31071
31196
  "15": [0, 0],
31072
31197
  "16": [0, 0],
31073
31198
  "17": [0, 0],
31074
31199
  "18": [0, 0],
31075
31200
  "19": [0, 0],
31076
- "20": [0, 0],
31077
- "21": [0, 0]
31201
+ "20": [0, 0]
31078
31202
  },
31079
31203
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
31080
- hash: "3657512e450f0fb3332d5e2b841a7570f6023ce7"
31204
+ hash: "586f1e4ea09a0f3f1bd98abee7fc2f2b618eecf5"
31081
31205
  };
31082
31206
  var coverage = global[gcv] || (global[gcv] = {});
31083
31207
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -31097,7 +31221,7 @@ function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if
31097
31221
  function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31098
31222
  cov_2nbnnlcv5p().s[0]++;
31099
31223
  var BuildForm = function BuildForm(_ref) {
31100
- var _ref6, _ref7, _ref9;
31224
+ var _ref5, _ref6, _ref8;
31101
31225
  var id = _ref.id,
31102
31226
  onUpdate = _ref.onUpdate,
31103
31227
  buildRequestArgs = _ref.buildRequestArgs,
@@ -31136,16 +31260,14 @@ var BuildForm = function BuildForm(_ref) {
31136
31260
  cov_2nbnnlcv5p().s[3]++;
31137
31261
  return neetoui.Toastr.error(error);
31138
31262
  },
31139
- onSuccess: function onSuccess(_ref3) {
31140
- var _ref3$notice = _ref3.notice,
31141
- notice = _ref3$notice === void 0 ? (cov_2nbnnlcv5p().b[10][0]++, "Questions have been updated successfully!") : _ref3$notice;
31263
+ onSuccess: function onSuccess() {
31142
31264
  cov_2nbnnlcv5p().f[2]++;
31143
31265
  cov_2nbnnlcv5p().s[4]++;
31144
- return neetoui.Toastr.success(notice);
31266
+ return neetoui.Toastr.success("", THUMBS_UP);
31145
31267
  }
31146
31268
  })),
31147
31269
  updateQuestions = _ref2.mutateAsync;
31148
- var _ref4 = (cov_2nbnnlcv5p().s[5]++, useForm({
31270
+ var _ref3 = (cov_2nbnnlcv5p().s[5]++, useForm({
31149
31271
  formId: id,
31150
31272
  onSuccess: function onSuccess(data) {
31151
31273
  cov_2nbnnlcv5p().f[3]++;
@@ -31165,23 +31287,23 @@ var BuildForm = function BuildForm(_ref) {
31165
31287
  }]
31166
31288
  }
31167
31289
  })),
31168
- _ref4$data = _ref4.data,
31169
- _ref4$data2 = _ref4$data === void 0 ? (cov_2nbnnlcv5p().b[11][0]++, {
31290
+ _ref3$data = _ref3.data,
31291
+ _ref3$data2 = _ref3$data === void 0 ? (cov_2nbnnlcv5p().b[10][0]++, {
31170
31292
  title: "",
31171
31293
  questions: []
31172
- }) : _ref4$data,
31173
- questions = _ref4$data2.questions,
31174
- isQuestionsLoading = _ref4$data2.isQuestionsLoading,
31175
- isLoading = _ref4.isLoading;
31294
+ }) : _ref3$data,
31295
+ questions = _ref3$data2.questions,
31296
+ isQuestionsLoading = _ref3$data2.isQuestionsLoading,
31297
+ isLoading = _ref3.isLoading;
31176
31298
  cov_2nbnnlcv5p().s[7]++;
31177
- if ((cov_2nbnnlcv5p().b[13][0]++, isLoading) || (cov_2nbnnlcv5p().b[13][1]++, showLoader) && (cov_2nbnnlcv5p().b[13][2]++, isQuestionsLoading)) {
31178
- cov_2nbnnlcv5p().b[12][0]++;
31299
+ if ((cov_2nbnnlcv5p().b[12][0]++, isLoading) || (cov_2nbnnlcv5p().b[12][1]++, showLoader) && (cov_2nbnnlcv5p().b[12][2]++, isQuestionsLoading)) {
31300
+ cov_2nbnnlcv5p().b[11][0]++;
31179
31301
  cov_2nbnnlcv5p().s[8]++;
31180
31302
  return /*#__PURE__*/React__default["default"].createElement("div", {
31181
31303
  className: "flex h-full w-full items-center justify-center py-6"
31182
31304
  }, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null));
31183
31305
  } else {
31184
- cov_2nbnnlcv5p().b[12][1]++;
31306
+ cov_2nbnnlcv5p().b[11][1]++;
31185
31307
  }
31186
31308
  cov_2nbnnlcv5p().s[9]++;
31187
31309
  var handleSubmit = function handleSubmit(payload) {
@@ -31197,34 +31319,34 @@ var BuildForm = function BuildForm(_ref) {
31197
31319
  cov_2nbnnlcv5p().s[11]++;
31198
31320
  var onValueChange = function onValueChange(questions) {
31199
31321
  cov_2nbnnlcv5p().f[5]++;
31200
- var _ref5 = (cov_2nbnnlcv5p().s[12]++, queryClient.getQueryState([QUERY_KEYS.QUESTIONS, id])),
31201
- dataUpdateCount = _ref5.dataUpdateCount;
31322
+ var _ref4 = (cov_2nbnnlcv5p().s[12]++, queryClient.getQueryState([QUERY_KEYS.QUESTIONS, id])),
31323
+ dataUpdateCount = _ref4.dataUpdateCount;
31202
31324
  cov_2nbnnlcv5p().s[13]++;
31203
31325
  if (dataUpdateCount > 0) {
31204
- cov_2nbnnlcv5p().b[14][0]++;
31326
+ cov_2nbnnlcv5p().b[13][0]++;
31205
31327
  cov_2nbnnlcv5p().s[14]++;
31206
31328
  queryClient.setQueryData([QUERY_KEYS.QUESTIONS, "preview/".concat(id)], ramda.assoc("questions", questions));
31207
31329
  } else {
31208
- cov_2nbnnlcv5p().b[14][1]++;
31330
+ cov_2nbnnlcv5p().b[13][1]++;
31209
31331
  }
31210
31332
  };
31211
- var isDeletable = (cov_2nbnnlcv5p().s[15]++, (_ref6 = (cov_2nbnnlcv5p().b[15][0]++, isQuestionDeletable)) !== null && _ref6 !== void 0 ? _ref6 : (cov_2nbnnlcv5p().b[15][1]++, function (question) {
31333
+ var isDeletable = (cov_2nbnnlcv5p().s[15]++, (_ref5 = (cov_2nbnnlcv5p().b[14][0]++, isQuestionDeletable)) !== null && _ref5 !== void 0 ? _ref5 : (cov_2nbnnlcv5p().b[14][1]++, function (question) {
31212
31334
  cov_2nbnnlcv5p().f[6]++;
31213
31335
  cov_2nbnnlcv5p().s[16]++;
31214
31336
  return !nonRemovableFields.includes(question.kind);
31215
31337
  }));
31216
- var isRequiredField = (cov_2nbnnlcv5p().s[17]++, (_ref7 = (cov_2nbnnlcv5p().b[16][0]++, isFieldRequired)) !== null && _ref7 !== void 0 ? _ref7 : (cov_2nbnnlcv5p().b[16][1]++, function (_ref8) {
31217
- var kind = _ref8.kind;
31338
+ var isRequiredField = (cov_2nbnnlcv5p().s[17]++, (_ref6 = (cov_2nbnnlcv5p().b[15][0]++, isFieldRequired)) !== null && _ref6 !== void 0 ? _ref6 : (cov_2nbnnlcv5p().b[15][1]++, function (_ref7) {
31339
+ var kind = _ref7.kind;
31218
31340
  cov_2nbnnlcv5p().f[7]++;
31219
31341
  cov_2nbnnlcv5p().s[18]++;
31220
31342
  return requiredFields.includes(kind);
31221
31343
  }));
31222
- var isDisabledFieldLabel = (cov_2nbnnlcv5p().s[19]++, (_ref9 = (cov_2nbnnlcv5p().b[17][0]++, isFieldLabelDisabled)) !== null && _ref9 !== void 0 ? _ref9 : (cov_2nbnnlcv5p().b[17][1]++, function () {
31344
+ var isDisabledFieldLabel = (cov_2nbnnlcv5p().s[19]++, (_ref8 = (cov_2nbnnlcv5p().b[16][0]++, isFieldLabelDisabled)) !== null && _ref8 !== void 0 ? _ref8 : (cov_2nbnnlcv5p().b[16][1]++, function () {
31223
31345
  cov_2nbnnlcv5p().f[8]++;
31224
31346
  cov_2nbnnlcv5p().s[20]++;
31225
31347
  return false;
31226
31348
  }));
31227
- var defaultQuestionKinds = (cov_2nbnnlcv5p().s[21]++, allowAdditionalGuests ? (cov_2nbnnlcv5p().b[18][0]++, QUESTION_KINDS) : (cov_2nbnnlcv5p().b[18][1]++, pure.removeBy({
31349
+ var defaultQuestionKinds = (cov_2nbnnlcv5p().s[21]++, allowAdditionalGuests ? (cov_2nbnnlcv5p().b[17][0]++, QUESTION_KINDS) : (cov_2nbnnlcv5p().b[17][1]++, pure.removeBy({
31228
31350
  type: QUESTION_KIND.ADDITIONAL_GUESTS.value
31229
31351
  }, QUESTION_KINDS)));
31230
31352
  cov_2nbnnlcv5p().s[22]++;
@@ -31237,9 +31359,9 @@ var BuildForm = function BuildForm(_ref) {
31237
31359
  questions: questions
31238
31360
  },
31239
31361
  onSubmit: handleSubmit
31240
- }, function (_ref10) {
31241
- var errors = _ref10.errors,
31242
- setFieldError = _ref10.setFieldError;
31362
+ }, function (_ref9) {
31363
+ var errors = _ref9.errors,
31364
+ setFieldError = _ref9.setFieldError;
31243
31365
  cov_2nbnnlcv5p().f[9]++;
31244
31366
  cov_2nbnnlcv5p().s[23]++;
31245
31367
  return /*#__PURE__*/React__default["default"].createElement(Form, _extends$8({}, formDomProps, {
@@ -31254,21 +31376,21 @@ var BuildForm = function BuildForm(_ref) {
31254
31376
  showActionBlock: showActionBlock,
31255
31377
  showAddQuestionDivider: showAddQuestionDivider,
31256
31378
  submitButtonProps: submitButtonProps,
31257
- questionKinds: pure.isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[19][0]++, questionKinds) : (cov_2nbnnlcv5p().b[19][1]++, defaultQuestionKinds),
31379
+ questionKinds: pure.isPresent(questionKinds) ? (cov_2nbnnlcv5p().b[18][0]++, questionKinds) : (cov_2nbnnlcv5p().b[18][1]++, defaultQuestionKinds),
31258
31380
  onValueChange: onValueChange,
31259
31381
  onChange: function onChange(event) {
31260
31382
  cov_2nbnnlcv5p().f[10]++;
31261
31383
  cov_2nbnnlcv5p().s[24]++;
31262
31384
  if (!ramda.isEmpty(errors)) {
31263
- cov_2nbnnlcv5p().b[20][0]++;
31385
+ cov_2nbnnlcv5p().b[19][0]++;
31264
31386
  cov_2nbnnlcv5p().s[25]++;
31265
31387
  setFieldError(event.target.name);
31266
31388
  } else {
31267
- cov_2nbnnlcv5p().b[20][1]++;
31389
+ cov_2nbnnlcv5p().b[19][1]++;
31268
31390
  }
31269
31391
  }
31270
31392
  }));
31271
- }), (cov_2nbnnlcv5p().b[21][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[21][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
31393
+ }), (cov_2nbnnlcv5p().b[20][0]++, isQuestionsLoading) && (cov_2nbnnlcv5p().b[20][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
31272
31394
  className: "neeto-ui-bg-gray-100 absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center opacity-75"
31273
31395
  }, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null))));
31274
31396
  };