biz9-logic 10.0.61 → 10.0.79
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/biz9_config +1 -1
- package/index.js +1209 -110
- package/package.json +1 -1
- package/test.js +43 -58
package/index.js
CHANGED
|
@@ -75,9 +75,16 @@ class Type {
|
|
|
75
75
|
static DATA_VIDEO='video_biz';
|
|
76
76
|
//field
|
|
77
77
|
static FIELD_AUTHOR = 'author';
|
|
78
|
+
static FIELD_CART_NUMBER = 'cart_number';
|
|
79
|
+
static FIELD_CART_ID = 'cart_id';
|
|
80
|
+
static FIELD_CART_ITEM_ID = 'cart_item_id';
|
|
81
|
+
static FIELD_ORDER_NUMBER = 'order_number';
|
|
82
|
+
static FIELD_ORDER_ID = 'order_id';
|
|
83
|
+
static FIELD_ORDER_ITEM_ID = 'order_item_id';
|
|
78
84
|
static FIELD_CATEGORY = 'category';
|
|
79
85
|
static FIELD_CATEGORY_TYPE = 'category_type';
|
|
80
|
-
|
|
86
|
+
static FIELD_COST = 'cost';
|
|
87
|
+
static FIELD_GRAND_TOTAL = 'grand_total';
|
|
81
88
|
static FIELD_DATA_TYPE='data_type';
|
|
82
89
|
static FIELD_DATE_CREATE='date_create';
|
|
83
90
|
static FIELD_DATE_SAVE='date_save';
|
|
@@ -143,7 +150,7 @@ class Type {
|
|
|
143
150
|
static TITLE_DATA_PAGE = 'Page';
|
|
144
151
|
static TITLE_DATA_PRODUCT = 'Product';
|
|
145
152
|
static TITLE_DATA_SERVICE = 'Service';
|
|
146
|
-
|
|
153
|
+
//
|
|
147
154
|
static TITLE_APP_ENV_TEST='Test';
|
|
148
155
|
static TITLE_APP_ENV_STAGE='Stage';
|
|
149
156
|
static TITLE_APP_ENV_PROD='Production';
|
|
@@ -157,18 +164,13 @@ class Type {
|
|
|
157
164
|
static TITLE_CART_SUB_ITEMS='Cart Sub Items';
|
|
158
165
|
static TITLE_CART_ITEMS='Cart Items';
|
|
159
166
|
static TITLE_CART_SUB_ITEMS='Cart Sub Items';
|
|
160
|
-
static
|
|
167
|
+
static TITLE_IMAGES='Images';
|
|
161
168
|
static TITLE_GROUP='Group';
|
|
162
169
|
static TITLE_N_A='N/A';
|
|
163
|
-
static TITLE_IMAGES='Images';
|
|
164
|
-
static TITLE_ITEMS='Items';
|
|
165
|
-
static TITLE_ONE='One';
|
|
166
170
|
static TITLE_ORDER_ITEMS='Order Items';
|
|
167
171
|
static TITLE_ORDER_SUB_ITEMS='order Sub Items';
|
|
168
172
|
static TITLE_PARENT_ITEM='Parent Item';
|
|
169
173
|
static TITLE_USER='User';
|
|
170
|
-
static TITLE_SORT_BY_ASC='ASC';
|
|
171
|
-
static TITLE_SORT_BY_DESC='DESC';
|
|
172
174
|
static TITLE_STAT_ITEMS='Stat Items';
|
|
173
175
|
static TITLE_STAT_SUB_ITEMS='Stat Sub Items';
|
|
174
176
|
static TITLE_ORDER_STATUS_NEW="New";
|
|
@@ -231,6 +233,12 @@ class Type {
|
|
|
231
233
|
static PAGE_SERVICE='service';
|
|
232
234
|
static PAGE_SERVICE_HOME='service_home';
|
|
233
235
|
static PAGE_SERVICE_SEARCH='service_search';
|
|
236
|
+
//search
|
|
237
|
+
static SEARCH_ITEMS='items';
|
|
238
|
+
static SEARCH_ONE='one';
|
|
239
|
+
static SEARCH_COUNT='count';
|
|
240
|
+
static SEARCH_SORT_BY_ASC='asc';
|
|
241
|
+
static SEARCH_SORT_BY_DESC='desc';
|
|
234
242
|
//stat
|
|
235
243
|
static STAT_CART='cart_post';
|
|
236
244
|
static STAT_CART_ITEM='cart_item_post';
|
|
@@ -285,6 +293,12 @@ class Type {
|
|
|
285
293
|
static IMAGE_RESIZE_NORMAL="normal";
|
|
286
294
|
static IMAGE_RESIZE_SQUARE="squre";
|
|
287
295
|
static IMAGE_RESIZE_NONE="none";
|
|
296
|
+
//
|
|
297
|
+
static CART_SUB_TYPE_STANDARD = 'standard';
|
|
298
|
+
static CART_SUB_TYPE_SHIPPING = 'shipping';
|
|
299
|
+
static CART_SUB_TYPE_COUPON = 'coupon';
|
|
300
|
+
static CART_SUB_TYPE_GIFT_CARD = 'gift_card';
|
|
301
|
+
|
|
288
302
|
//order
|
|
289
303
|
static ORDER_STATUS_NEW="new";
|
|
290
304
|
static ORDER_STATUS_OPEN="open";
|
|
@@ -363,10 +377,10 @@ class Stat_Logic {
|
|
|
363
377
|
}
|
|
364
378
|
class Order_Logic {
|
|
365
379
|
static get = (cart,option) => {
|
|
366
|
-
option = option?option:{
|
|
380
|
+
option = option?option:{};
|
|
381
|
+
let order_code = option.order_code ? option.order_code+"-" : "";
|
|
367
382
|
let order = Data_Logic.get_new(Type.DATA_ORDER,0,{data:{
|
|
368
|
-
order_number:
|
|
369
|
-
parent_data_type:cart.parent_data_type,
|
|
383
|
+
order_number:order_code + Num.get_id(99999),
|
|
370
384
|
user_id:cart.user_id,
|
|
371
385
|
cart_number:cart.cart_number,
|
|
372
386
|
grand_total:cart.grand_total,
|
|
@@ -374,20 +388,14 @@ class Order_Logic {
|
|
|
374
388
|
order_items:[]
|
|
375
389
|
}});
|
|
376
390
|
for(const key in cart) {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
&& key != Type.
|
|
381
|
-
|
|
382
|
-
&& key != Type.FIELD_SOURCE && key != Type.FIELD_SOURCE_ID
|
|
383
|
-
&& key != Type.FIELD_DATE_CREATE && key != Type.FIELD_DATE_SAVE){
|
|
391
|
+
if(!Obj.check_is_array(cart[key]) && Obj.check_is_object(cart[key])
|
|
392
|
+
&& key != Type.FIELD_ID && key != Type.FIELD_DATA_TYPE
|
|
393
|
+
&& key != Type.FIELD_SOURCE && key != Type.FIELD_SOURCE_ID
|
|
394
|
+
&& key != Type.FIELD_DATE_CREATE && key != Type.FIELD_DATE_SAVE)
|
|
395
|
+
{
|
|
384
396
|
order[key] = cart[key];
|
|
385
397
|
}
|
|
386
398
|
}
|
|
387
|
-
if(option.get_payment_plan){
|
|
388
|
-
order.payment_plan = option.payment_plan;
|
|
389
|
-
}
|
|
390
|
-
/*
|
|
391
399
|
cart.cart_items.forEach(cart_item => {
|
|
392
400
|
let order_item = Data_Logic.get_new(Type.DATA_ORDER_ITEM,0,{data:{
|
|
393
401
|
order_number:order.order_number,
|
|
@@ -398,38 +406,34 @@ class Order_Logic {
|
|
|
398
406
|
cost:cart_item.cost?cart_item.cost:0,
|
|
399
407
|
order_sub_items:[]
|
|
400
408
|
}});
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
&& key != Type.FIELD_ID && key != Type.FIELD_DATA_TYPE
|
|
405
|
-
&& key != Type.TITLE_PARENT_ITEM && key != Type.TITLE_USER
|
|
406
|
-
&& key != Type.TITLE_CART_ITEMS && key != Type.TITLE_CART_SUB_ITEMS
|
|
407
|
-
&& key != Type.TITLE_ORDER_ITEMS && key != Type.TITLE_ORDER_SUB_ITEMS
|
|
409
|
+
for(const key in cart_item){
|
|
410
|
+
if(!Obj.check_is_array(cart_item[key]) && Obj.check_is_object(cart_item[key])
|
|
411
|
+
&& key != Type.FIELD_ID && key != Type.FIELD_DATA_TYPE
|
|
408
412
|
&& key != Type.FIELD_SOURCE && key != Type.FIELD_SOURCE_ID
|
|
409
|
-
&& key != Type.FIELD_DATE_CREATE && key != Type.FIELD_DATE_SAVE
|
|
413
|
+
&& key != Type.FIELD_DATE_CREATE && key != Type.FIELD_DATE_SAVE){
|
|
410
414
|
order_item[key] = cart_item[key]
|
|
411
415
|
}
|
|
412
416
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
417
|
+
cart_item.cart_sub_items.forEach(cart_sub_item => {
|
|
418
|
+
let order_sub_item = Data_Logic.get_new(Type.DATA_ORDER_SUB_ITEM,0,{data:{
|
|
419
|
+
type:cart_sub_item.type,
|
|
420
|
+
cart_item_id:cart_sub_item.cart_item_id,
|
|
421
|
+
quanity:cart_sub_item.quanity,
|
|
422
|
+
cost:cart_sub_item.cost
|
|
423
|
+
}});
|
|
424
|
+
for(const key in cart_sub_item){
|
|
425
|
+
if(!Obj.check_is_array(order_sub_item[key]) && Obj.check_is_object(order_sub_item[key])
|
|
426
|
+
&& key != Type.FIELD_ID && key != Type.FIELD_DATA_TYPE
|
|
427
|
+
&& key != Type.FIELD_SOURCE && key != Type.FIELD_SOURCE_ID
|
|
428
|
+
&& key != Type.FIELD_DATE_CREATE && key != Type.FIELD_DATE_SAVE){
|
|
429
|
+
order_sub_item[key] = cart_sub_item[key]
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
order_item.order_sub_items.push(order_sub_item);
|
|
433
|
+
});
|
|
434
|
+
order.order_items.push(order_item);
|
|
430
435
|
});
|
|
431
436
|
return order;
|
|
432
|
-
*/
|
|
433
437
|
};
|
|
434
438
|
static get_order_statuses(){
|
|
435
439
|
return [
|
|
@@ -441,17 +445,6 @@ class Order_Logic {
|
|
|
441
445
|
{value:Type.ORDER_STATUS_CANCELLED,label:Type.TITLE_ORDER_STATUS_CANCELLED,title:Type.TITLE_ORDER_STATUS_CANCELLED},
|
|
442
446
|
];
|
|
443
447
|
};
|
|
444
|
-
|
|
445
|
-
/*
|
|
446
|
-
static get_order_payment = (order_number,payment_method_type,payment_amount) => {
|
|
447
|
-
return Data_Logic.get_new(Type.DATA_ORDER_PAYMENT,0,{data:
|
|
448
|
-
{
|
|
449
|
-
order_number:order_number,
|
|
450
|
-
payment_method_type:payment_method_type,
|
|
451
|
-
payment_amount:payment_amount,
|
|
452
|
-
transaction_id:Title.ORDER_TRANSACTION_ID + Num.get_id(99999)
|
|
453
|
-
}});
|
|
454
|
-
};
|
|
455
448
|
static get_total = (order) => {
|
|
456
449
|
let grand_total = 0;
|
|
457
450
|
order.order_items.forEach(order_item => {
|
|
@@ -471,18 +464,37 @@ class Order_Logic {
|
|
|
471
464
|
order.grand_total = grand_total;
|
|
472
465
|
return order;
|
|
473
466
|
};
|
|
474
|
-
|
|
467
|
+
|
|
468
|
+
static get_order_payment = (order_number,payment_method_type,payment_amount) => {
|
|
469
|
+
return Data_Logic.get_new(Type.DATA_ORDER_PAYMENT,0,{data:
|
|
470
|
+
{
|
|
471
|
+
order_number:order_number,
|
|
472
|
+
payment_method_type:payment_method_type,
|
|
473
|
+
payment_amount:payment_amount,
|
|
474
|
+
transaction_id:Title.ORDER_TRANSACTION_ID + Num.get_id(99999)
|
|
475
|
+
}});
|
|
476
|
+
};
|
|
475
477
|
}
|
|
476
478
|
class Cart_Logic {
|
|
477
|
-
static get = (
|
|
478
|
-
|
|
479
|
+
static get = (user_id,option) => {
|
|
480
|
+
option = option ? option : {};
|
|
481
|
+
let cart_code = option.cart_code ? option.cart_code+"-" : "";
|
|
482
|
+
return Data_Logic.get_new(Type.DATA_CART,0,{data:{user_id:user_id,cart_number:cart_code + Num.get_id(99999),grand_total:0,cart_items:[]}});
|
|
479
483
|
};
|
|
480
|
-
static get_cart_item = (parent_data_type,parent_id,
|
|
481
|
-
return Data_Logic.get_new(Type.DATA_CART_ITEM,0,{data:{parent_data_type:parent_data_type,parent_id:parent_id,
|
|
484
|
+
static get_cart_item = (parent_data_type,parent_id,quanity,cost) =>{
|
|
485
|
+
return Data_Logic.get_new(Type.DATA_CART_ITEM,0,{data:{parent_data_type:parent_data_type,parent_id:parent_id,quanity:quanity?quanity:0,cost:cost?cost:0,cart_sub_items:[]}});
|
|
482
486
|
};
|
|
483
|
-
static get_cart_sub_item = (
|
|
484
|
-
return Data_Logic.get_new(Type.DATA_CART_SUB_ITEM,0,{data:{
|
|
487
|
+
static get_cart_sub_item = (cart_item_id,type,quanity,cost) =>{
|
|
488
|
+
return Data_Logic.get_new(Type.DATA_CART_SUB_ITEM,0,{data:{type:type,cart_item_id:cart_item_id,quanity:quanity,cost:cost}});
|
|
485
489
|
};
|
|
490
|
+
static get_cart_sub_items = () =>{
|
|
491
|
+
return [
|
|
492
|
+
{title:Str.get_title(Type.CART_SUB_TYPE_STANDARD),label:Str.get_title(Type.CART_SUB_TYPE_STANDARD),type:Type.CART_SUB_TYPE_STANDARD},
|
|
493
|
+
{title:Str.get_title(Type.CART_SUB_TYPE_SHIPPING),label:Str.get_title(Type.CART_SUB_TYPE_SHIPPING),type:Type.CART_SUB_TYPE_SHIPPING},
|
|
494
|
+
{title:Str.get_title(Type.CART_SUB_TYPE_COUPON),label:Str.get_title(Type.CART_SUB_TYPE_COUPON),type:Type.CART_SUB_TYPE_COUPON},
|
|
495
|
+
{title:Str.get_title(Type.CART_SUB_TYPE_GIFT_CARD),label:Str.get_title(Type.CART_SUB_TYPE_GIFT_CARD),type:Type.CART_SUB_TYPE_GIFT_CARD}
|
|
496
|
+
];
|
|
497
|
+
};
|
|
486
498
|
static get_total = (cart) => {
|
|
487
499
|
let grand_total = 0;
|
|
488
500
|
cart.cart_items.forEach(cart_item => {
|
|
@@ -534,8 +546,8 @@ class Product_Logic {
|
|
|
534
546
|
break;
|
|
535
547
|
}
|
|
536
548
|
};
|
|
537
|
-
static get_test = (
|
|
538
|
-
let data =
|
|
549
|
+
static get_test = () =>{
|
|
550
|
+
let data = Data_Logic.get(Type.DATA_PRODUCT,0);
|
|
539
551
|
data.cost = Field_Logic.get_test_cost();
|
|
540
552
|
data.old_cost = Field_Logic.get_test_cost();
|
|
541
553
|
data.category = "Category "+String(Num.get_id());
|
|
@@ -581,33 +593,43 @@ class Service_Logic {
|
|
|
581
593
|
return data;
|
|
582
594
|
};
|
|
583
595
|
}
|
|
596
|
+
class Content_Logic {
|
|
597
|
+
static get_test = () =>{
|
|
598
|
+
let data = Data_Logic.get(Type.DATA_CONTENT,0);
|
|
599
|
+
data.field_1="Field 1 "+ Num.get_id();
|
|
600
|
+
data.field_2="Field 2 "+ Num.get_id();
|
|
601
|
+
return data;
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
|
|
584
605
|
class Blank_Logic {
|
|
585
|
-
static get_test = (
|
|
586
|
-
|
|
606
|
+
static get_test = () =>{
|
|
607
|
+
let data = Data_Logic.get(Type.DATA_BLANK,0);
|
|
587
608
|
data.field_1="Field 1 "+ Num.get_id();
|
|
588
609
|
data.field_2="Field 2 "+ Num.get_id();
|
|
589
610
|
return data;
|
|
590
611
|
};
|
|
591
612
|
};
|
|
592
613
|
class Blog_Post_Logic {
|
|
593
|
-
static get_test = (
|
|
594
|
-
|
|
595
|
-
data.author="
|
|
614
|
+
static get_test = () =>{
|
|
615
|
+
let data = Data_Logic.get(Type.DATA_BLOG_POST,0);
|
|
616
|
+
data.author="Full Name "+ Num.get_id();
|
|
596
617
|
data.tag = "Tag "+ Num.get_id() + ", Tag "+Num.get_id() + ", Tag "+ Num.get_id(), " Tag "+ Num.get_id() + ", Tag "+Num.get_id() + ", Tag "+ Num.get_id();
|
|
597
618
|
data.category = "Category "+String(Num.get_id());
|
|
598
619
|
data.type = "Type "+String(Num.get_id());
|
|
599
620
|
data.sub_type = "Sub Type "+String(Num.get_id());
|
|
600
|
-
|
|
621
|
+
data.description = "Description "+String(Num.get_id());
|
|
622
|
+
data.note = Field_Logic.get_test_note();
|
|
601
623
|
return data;
|
|
602
624
|
};
|
|
603
625
|
}
|
|
604
626
|
class Gallery_Logic {
|
|
605
627
|
static get_test = () =>{
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
628
|
+
let data = Data_Logic.get(Type.DATA_GALLERY,0);
|
|
629
|
+
data.date = String(String(Num.get_id(2030)) + "-" + String(Num.get_id(13)) + "-" + String(Num.get_id(30))).trim();
|
|
630
|
+
data.time = String(Num.get_id(24)) + ":" + String(Num.get_id(59));
|
|
631
|
+
data.website = "Website "+String(Num.get_id());
|
|
632
|
+
return data;
|
|
611
633
|
};
|
|
612
634
|
};
|
|
613
635
|
class Event_Logic {
|
|
@@ -639,8 +661,8 @@ class Event_Logic {
|
|
|
639
661
|
}
|
|
640
662
|
};
|
|
641
663
|
static get_test = () =>{
|
|
642
|
-
let data =
|
|
643
|
-
|
|
664
|
+
let data = Data_Logic.get(Type.DATA_EVENT,0);
|
|
665
|
+
data.cost = Field_Logic.get_test_cost();
|
|
644
666
|
data.old_cost = Field_Logic.get_test_cost();
|
|
645
667
|
data.date = String(String(Num.get_id(2030)) + "-" + String(Num.get_id(13)) + "-" + String(Num.get_id(30))).trim();
|
|
646
668
|
data.time = String(Num.get_id(24)) + ":" + String(Num.get_id(59));
|
|
@@ -659,10 +681,6 @@ class Field_Logic {
|
|
|
659
681
|
data[Type.FIELD_TITLE] = option.title;
|
|
660
682
|
data[Type.FIELD_TITLE_URL] = Str.get_title_url(option.title);
|
|
661
683
|
}
|
|
662
|
-
if(option.title){
|
|
663
|
-
data[Type.FIELD_TITLE] = Data_Logic.get_data_type_by_type(data.data_type);
|
|
664
|
-
data[Type.FIELD_TITLE_URL] = Str.get_title_url(data[Type.FIELD_TITLE]);
|
|
665
|
-
}
|
|
666
684
|
if(option.generate_title || option.test){
|
|
667
685
|
data[Type.FIELD_TITLE] = Data_Logic.get_data_type_by_type(data.data_type) + " " +Num.get_id(999);
|
|
668
686
|
data[Type.FIELD_TITLE_URL] = Str.get_title_url(data[Type.FIELD_TITLE]);
|
|
@@ -909,11 +927,11 @@ class Review_Logic {
|
|
|
909
927
|
] };
|
|
910
928
|
}
|
|
911
929
|
static get_test = () =>{
|
|
912
|
-
|
|
913
|
-
data.
|
|
914
|
-
data.
|
|
930
|
+
let data = Data_Logic.get(Type.DATA_REVIEW,0);
|
|
931
|
+
data.user_id = 1;
|
|
932
|
+
data.parent_data_type = Type.DATA_BLANK;;
|
|
933
|
+
data.parent_id = 1;
|
|
915
934
|
data.rating = Num.get_id(6);
|
|
916
|
-
data.user_id = user_id;
|
|
917
935
|
data.comment = "My comment "+ Field_Logic.get_test_note();
|
|
918
936
|
return data;
|
|
919
937
|
};
|
|
@@ -926,6 +944,12 @@ class Category_Logic {
|
|
|
926
944
|
}
|
|
927
945
|
return categorys;
|
|
928
946
|
};
|
|
947
|
+
static get_test = () =>{
|
|
948
|
+
let data = Data_Logic.get(Type.DATA_CATEGORY,0);
|
|
949
|
+
data.field_1="Field 1 "+ Num.get_id();
|
|
950
|
+
data.field_2="Field 2 "+ Num.get_id();
|
|
951
|
+
return data;
|
|
952
|
+
};
|
|
929
953
|
};
|
|
930
954
|
class Storage {
|
|
931
955
|
static get = (window,key) => {
|
|
@@ -983,7 +1007,6 @@ static get_pages(){
|
|
|
983
1007
|
{value:Type.PAGE_SERVICE_HOME,title:Type.TITLE_PAGE_SERVICE_HOME,label:Type.TITLE_PAGE_SERVICE_HOME,url:Url.PAGE_SERVICE_HOME},
|
|
984
1008
|
];
|
|
985
1009
|
};
|
|
986
|
-
|
|
987
1010
|
}
|
|
988
1011
|
class User_Logic {
|
|
989
1012
|
static get_user_roles(){
|
|
@@ -1049,23 +1072,1085 @@ class User_Logic {
|
|
|
1049
1072
|
delete req.session.user;
|
|
1050
1073
|
}
|
|
1051
1074
|
static get_test = () =>{
|
|
1052
|
-
let data =
|
|
1053
|
-
|
|
1075
|
+
let data = Data_Logic.get(Type.DATA_USER,0);
|
|
1076
|
+
data.first_name="First Name "+ Num.get_id();
|
|
1054
1077
|
data.last_name="First Name "+ Num.get_id();
|
|
1055
1078
|
data.email="email"+ Num.get_id() + "@email.com";
|
|
1056
|
-
data.city="City"+ Num.get_id();
|
|
1057
|
-
data.state=
|
|
1079
|
+
data.city="City "+ Num.get_id();
|
|
1080
|
+
data.state= User_Logic.get_states()[Num.get_id(User_Logic.get_states().length)].label;
|
|
1081
|
+
data.country= User_Logic.get_countries()[Num.get_id(User_Logic.get_countries().length)].label;
|
|
1058
1082
|
data.password="1234567";
|
|
1059
|
-
data.country="United States";
|
|
1060
1083
|
return data;
|
|
1061
1084
|
};
|
|
1085
|
+
static get_countries = () =>{
|
|
1086
|
+
return [
|
|
1087
|
+
{label: 'United States', value: 'United States'},
|
|
1088
|
+
{
|
|
1089
|
+
value: 'Afghanistan',
|
|
1090
|
+
label: 'Afghanistan'
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
value: 'Albania',
|
|
1094
|
+
label: 'Albania'
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
value: 'Algeria',
|
|
1098
|
+
label: 'Algeria'
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
value: 'American Samoa',
|
|
1102
|
+
label: 'American Samoa'
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
value: 'Andorra',
|
|
1106
|
+
label: 'Andorra'
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
value: 'Angola',
|
|
1110
|
+
label: 'Angola'
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
value: 'Anguilla',
|
|
1114
|
+
label: 'Anguilla'
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
value: 'Antarctica',
|
|
1118
|
+
label: 'Antarctica'
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
value: 'Antigua and Barbuda',
|
|
1122
|
+
label: 'Antigua and Barbuda'
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
value: 'Argentina',
|
|
1126
|
+
label: 'Argentina'
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
value: 'Armenia',
|
|
1130
|
+
label: 'Armenia'
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
value: 'Aruba',
|
|
1134
|
+
label: 'Aruba'
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
value: 'Australia',
|
|
1138
|
+
label: 'Australia'
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
value: 'Austria',
|
|
1142
|
+
label: 'Austria'
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
value: 'Azerbaijan',
|
|
1146
|
+
label: 'Azerbaijan'
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
value: 'Bahamas',
|
|
1150
|
+
label: 'Bahamas'
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
value: 'Bahrain',
|
|
1154
|
+
label: 'Bahrain'
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
value: 'Bangladesh',
|
|
1158
|
+
label: 'Bangladesh'
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
value: 'Barbados',
|
|
1162
|
+
label: 'Barbados'
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
value: 'Belarus',
|
|
1166
|
+
label: 'Belarus'
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
value: 'Belgium',
|
|
1170
|
+
label: 'Belgium'
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
value: 'Belize',
|
|
1174
|
+
label: 'Belize'
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
value: 'Benin',
|
|
1178
|
+
label: 'Benin'
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
value: 'Bermuda',
|
|
1182
|
+
label: 'Bermuda'
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
value: 'Bhutan',
|
|
1186
|
+
label: 'Bhutan'
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
value: 'Bolivia (Plurinational State of)',
|
|
1190
|
+
label: 'Bolivia (Plurinational State of)'
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
value: 'Bonaire, Sint Eustatius and Saba',
|
|
1194
|
+
label: 'Bonaire, Sint Eustatius and Saba'
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
value: 'Bosnia and Herzegovina',
|
|
1198
|
+
label: 'Bosnia and Herzegovina'
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
value: 'Botswana',
|
|
1202
|
+
label: 'Botswana'
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
value: 'Bouvet Island',
|
|
1206
|
+
label: 'Bouvet Island'
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
value: 'Brazil',
|
|
1210
|
+
label: 'Brazil'
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
value: 'British Indian Ocean Territory',
|
|
1214
|
+
label: 'British Indian Ocean Territory'
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
value: 'Brunei Darussalam',
|
|
1218
|
+
label: 'Brunei Darussalam'
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
value: 'Bulgaria',
|
|
1222
|
+
label: 'Bulgaria'
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
value: 'Burkina Faso',
|
|
1226
|
+
label: 'Burkina Faso'
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
value: 'Burundi',
|
|
1230
|
+
label: 'Burundi'
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
value: 'Cabo Verde',
|
|
1234
|
+
label: 'Cabo Verde'
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
value: 'Cambodia',
|
|
1238
|
+
label: 'Cambodia'
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
value: 'Cameroon',
|
|
1242
|
+
label: 'Cameroon'
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
value: 'Canada',
|
|
1246
|
+
label: 'Canada'
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
value: 'Cayman Islands',
|
|
1250
|
+
label: 'Cayman Islands'
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
value: 'Central African Republic',
|
|
1254
|
+
label: 'Central African Republic'
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
value: 'Chad',
|
|
1258
|
+
label: 'Chad'
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
value: 'Chile',
|
|
1262
|
+
label: 'Chile'
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
value: 'China',
|
|
1266
|
+
label: 'China'
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
value: 'Christmas Island',
|
|
1270
|
+
label: 'Christmas Island'
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
value: 'Cocos (Keeling) Islands',
|
|
1274
|
+
label: 'Cocos (Keeling) Islands'
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
value: 'Colombia',
|
|
1278
|
+
label: 'Colombia'
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
value: 'Comoros',
|
|
1282
|
+
label: 'Comoros'
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
value: 'Congo',
|
|
1286
|
+
label: 'Congo'
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
value: 'Congo (Democratic Republic of the)',
|
|
1290
|
+
label: 'Congo (Democratic Republic of the)'
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
value: 'Cook Islands',
|
|
1294
|
+
label: 'Cook Islands'
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
value: 'Costa Rica',
|
|
1298
|
+
label: 'Costa Rica'
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
value: 'Croatia',
|
|
1302
|
+
label: 'Croatia'
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
value: 'Cuba',
|
|
1306
|
+
label: 'Cuba'
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
value: 'Curaçao',
|
|
1310
|
+
label: 'Curaçao'
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
value: 'Cyprus',
|
|
1314
|
+
label: 'Cyprus'
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
value: 'Czechia',
|
|
1318
|
+
label: 'Czechia'
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
value: "Côte d'Ivoire",
|
|
1322
|
+
label: "Côte d'Ivoire"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
value: 'Denmark',
|
|
1326
|
+
label: 'Denmark'
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
value: 'Djibouti',
|
|
1330
|
+
label: 'Djibouti'
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
value: 'Dominica',
|
|
1334
|
+
label: 'Dominica'
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
value: 'Dominican Republic',
|
|
1338
|
+
label: 'Dominican Republic'
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
value: 'Ecuador',
|
|
1342
|
+
label: 'Ecuador'
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
value: 'Egypt',
|
|
1346
|
+
label: 'Egypt'
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
value: 'El Salvador',
|
|
1350
|
+
label: 'El Salvador'
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
value: 'Equatorial Guinea',
|
|
1354
|
+
label: 'Equatorial Guinea'
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
value: 'Eritrea',
|
|
1358
|
+
label: 'Eritrea'
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
value: 'Estonia',
|
|
1362
|
+
label: 'Estonia'
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
value: 'Ethiopia',
|
|
1366
|
+
label: 'Ethiopia'
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
value: 'Falkland Islands (Malvinas)',
|
|
1370
|
+
label: 'Falkland Islands (Malvinas)'
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
value: 'Faroe Islands',
|
|
1374
|
+
label: 'Faroe Islands'
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
value: 'Fiji',
|
|
1378
|
+
label: 'Fiji'
|
|
1379
|
+
},
|
|
1380
|
+
{
|
|
1381
|
+
value: 'Finland',
|
|
1382
|
+
label: 'Finland'
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
value: 'France',
|
|
1386
|
+
label: 'France'
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
value: 'French Guiana',
|
|
1390
|
+
label: 'French Guiana'
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
value: 'French Polynesia',
|
|
1394
|
+
label: 'French Polynesia'
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
value: 'French Southern Territories',
|
|
1398
|
+
label: 'French Southern Territories'
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
value: 'Gabon',
|
|
1402
|
+
label: 'Gabon'
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
value: 'Gambia',
|
|
1406
|
+
label: 'Gambia'
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
value: 'Georgia',
|
|
1410
|
+
label: 'Georgia'
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
value: 'Germany',
|
|
1414
|
+
label: 'Germany'
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
value: 'Ghana',
|
|
1418
|
+
label: 'Ghana'
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
value: 'Gibraltar',
|
|
1422
|
+
label: 'Gibraltar'
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
value: 'Greece',
|
|
1426
|
+
label: 'Greece'
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
value: 'Greenland',
|
|
1430
|
+
label: 'Greenland'
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
value: 'Grenada',
|
|
1434
|
+
label: 'Grenada'
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
value: 'Guadeloupe',
|
|
1438
|
+
label: 'Guadeloupe'
|
|
1439
|
+
},
|
|
1440
|
+
{
|
|
1441
|
+
value: 'Guam',
|
|
1442
|
+
label: 'Guam'
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
value: 'Guatemala',
|
|
1446
|
+
label: 'Guatemala'
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
value: 'Guernsey',
|
|
1450
|
+
label: 'Guernsey'
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
value: 'Guinea',
|
|
1454
|
+
label: 'Guinea'
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
value: 'Guinea-Bissau',
|
|
1458
|
+
label: 'Guinea-Bissau'
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
value: 'Guyana',
|
|
1462
|
+
label: 'Guyana'
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
value: 'Haiti',
|
|
1466
|
+
label: 'Haiti'
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
value: 'Heard Island and McDonald Islands',
|
|
1470
|
+
label: 'Heard Island and McDonald Islands'
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
value: 'Holy See',
|
|
1474
|
+
label: 'Holy See'
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
value: 'Honduras',
|
|
1478
|
+
label: 'Honduras'
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
value: 'Hong Kong',
|
|
1482
|
+
label: 'Hong Kong'
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
value: 'Hungary',
|
|
1486
|
+
label: 'Hungary'
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
value: 'Iceland',
|
|
1490
|
+
label: 'Iceland'
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
value: 'India',
|
|
1494
|
+
label: 'India'
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
value: 'Indonesia',
|
|
1498
|
+
label: 'Indonesia'
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
value: 'Iran (Islamic Republic of)',
|
|
1502
|
+
label: 'Iran (Islamic Republic of)'
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
value: 'Iraq',
|
|
1506
|
+
label: 'Iraq'
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
value: 'Ireland',
|
|
1510
|
+
label: 'Ireland'
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
value: 'Isle of Man',
|
|
1514
|
+
label: 'Isle of Man'
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
value: 'Israel',
|
|
1518
|
+
label: 'Israel'
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
value: 'Italy',
|
|
1522
|
+
label: 'Italy'
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
value: 'Jamaica',
|
|
1526
|
+
label: 'Jamaica'
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
value: 'Japan',
|
|
1530
|
+
label: 'Japan'
|
|
1531
|
+
},
|
|
1532
|
+
{
|
|
1533
|
+
value: 'Jersey',
|
|
1534
|
+
label: 'Jersey'
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
value: 'Jordan',
|
|
1538
|
+
label: 'Jordan'
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
value: 'Kazakhstan',
|
|
1542
|
+
label: 'Kazakhstan'
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
value: 'Kenya',
|
|
1546
|
+
label: 'Kenya'
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
value: 'Kiribati',
|
|
1550
|
+
label: 'Kiribati'
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
value: "Korea (Democratic People's Republic of)",
|
|
1554
|
+
label: "Korea (Democratic People's Republic of)"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
value: 'Korea (Republic of)',
|
|
1558
|
+
label: 'Korea (Republic of)'
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
value: 'Kuwait',
|
|
1562
|
+
label: 'Kuwait'
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
value: 'Kyrgyzstan',
|
|
1566
|
+
label: 'Kyrgyzstan'
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
value: "Lao People's Democratic Republic",
|
|
1570
|
+
label: "Lao People's Democratic Republic"
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
value: 'Latvia',
|
|
1574
|
+
label: 'Latvia'
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
value: 'Lebanon',
|
|
1578
|
+
label: 'Lebanon'
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
value: 'Lesotho',
|
|
1582
|
+
label: 'Lesotho'
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
value: 'Liberia',
|
|
1586
|
+
label: 'Liberia'
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
value: 'Libya',
|
|
1590
|
+
label: 'Libya'
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
value: 'Liechtenstein',
|
|
1594
|
+
label: 'Liechtenstein'
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
value: 'Lithuania',
|
|
1598
|
+
label: 'Lithuania'
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
value: 'Luxembourg',
|
|
1602
|
+
label: 'Luxembourg'
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
value: 'Macao',
|
|
1606
|
+
label: 'Macao'
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
value: 'Macedonia (the former Yugoslav Republic of)',
|
|
1610
|
+
label: 'Macedonia (the former Yugoslav Republic of)'
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
value: 'Madagascar',
|
|
1614
|
+
label: 'Madagascar'
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
value: 'Malawi',
|
|
1618
|
+
label: 'Malawi'
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
value: 'Malaysia',
|
|
1622
|
+
label: 'Malaysia'
|
|
1623
|
+
},
|
|
1624
|
+
{
|
|
1625
|
+
value: 'Maldives',
|
|
1626
|
+
label: 'Maldives'
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
value: 'Mali',
|
|
1630
|
+
label: 'Mali'
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
value: 'Malta',
|
|
1634
|
+
label: 'Malta'
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
value: 'Marshall Islands',
|
|
1638
|
+
label: 'Marshall Islands'
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
value: 'Martinique',
|
|
1642
|
+
label: 'Martinique'
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
value: 'Mauritania',
|
|
1646
|
+
label: 'Mauritania'
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
value: 'Mauritius',
|
|
1650
|
+
label: 'Mauritius'
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
value: 'Mayotte',
|
|
1654
|
+
label: 'Mayotte'
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
value: 'Mexico',
|
|
1658
|
+
label: 'Mexico'
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
value: 'Micronesia (Federated States of)',
|
|
1662
|
+
label: 'Micronesia (Federated States of)'
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
value: 'Moldova (Republic of)',
|
|
1666
|
+
label: 'Moldova (Republic of)'
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
value: 'Monaco',
|
|
1670
|
+
label: 'Monaco'
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
value: 'Mongolia',
|
|
1674
|
+
label: 'Mongolia'
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
value: 'Montenegro',
|
|
1678
|
+
label: 'Montenegro'
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
value: 'Montserrat',
|
|
1682
|
+
label: 'Montserrat'
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
value: 'Morocco',
|
|
1686
|
+
label: 'Morocco'
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
value: 'Mozambique',
|
|
1690
|
+
label: 'Mozambique'
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
value: 'Myanmar',
|
|
1694
|
+
label: 'Myanmar'
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
value: 'Namibia',
|
|
1698
|
+
label: 'Namibia'
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
value: 'Nauru',
|
|
1702
|
+
label: 'Nauru'
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
value: 'Nepal',
|
|
1706
|
+
label: 'Nepal'
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
value: 'Netherlands',
|
|
1710
|
+
label: 'Netherlands'
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
value: 'New Caledonia',
|
|
1714
|
+
label: 'New Caledonia'
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
value: 'New Zealand',
|
|
1718
|
+
label: 'New Zealand'
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
value: 'Nicaragua',
|
|
1722
|
+
label: 'Nicaragua'
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
value: 'Niger',
|
|
1726
|
+
label: 'Niger'
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
value: 'Nigeria',
|
|
1730
|
+
label: 'Nigeria'
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
value: 'Niue',
|
|
1734
|
+
label: 'Niue'
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
value: 'Norfolk Island',
|
|
1738
|
+
label: 'Norfolk Island'
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
value: 'Northern Mariana Islands',
|
|
1742
|
+
label: 'Northern Mariana Islands'
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
value: 'Norway',
|
|
1746
|
+
label: 'Norway'
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
value: 'Oman',
|
|
1750
|
+
label: 'Oman'
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
value: 'Pakistan',
|
|
1754
|
+
label: 'Pakistan'
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
value: 'Palau',
|
|
1758
|
+
label: 'Palau'
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
value: 'Palestine, State of',
|
|
1762
|
+
label: 'Palestine, State of'
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
value: 'Panama',
|
|
1766
|
+
label: 'Panama'
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
value: 'Papua New Guinea',
|
|
1770
|
+
label: 'Papua New Guinea'
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
value: 'Paraguay',
|
|
1774
|
+
label: 'Paraguay'
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
value: 'Peru',
|
|
1778
|
+
label: 'Peru'
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
value: 'Philippines',
|
|
1782
|
+
label: 'Philippines'
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
value: 'Pitcairn',
|
|
1786
|
+
label: 'Pitcairn'
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
value: 'Poland',
|
|
1790
|
+
label: 'Poland'
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
value: 'Portugal',
|
|
1794
|
+
label: 'Portugal'
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
value: 'Puerto Rico',
|
|
1798
|
+
label: 'Puerto Rico'
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
value: 'Qatar',
|
|
1802
|
+
label: 'Qatar'
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
value: 'Romania',
|
|
1806
|
+
label: 'Romania'
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
value: 'Russian Federation',
|
|
1810
|
+
label: 'Russian Federation'
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
value: 'Rwanda',
|
|
1814
|
+
label: 'Rwanda'
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
value: 'Réunion',
|
|
1818
|
+
label: 'Réunion'
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
value: 'Saint Barthélemy',
|
|
1822
|
+
label: 'Saint Barthélemy'
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
value: 'Saint Helena, Ascension and Tristan da Cunha',
|
|
1826
|
+
label: 'Saint Helena, Ascension and Tristan da Cunha'
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
value: 'Saint Kitts and Nevis',
|
|
1830
|
+
label: 'Saint Kitts and Nevis'
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
value: 'Saint Lucia',
|
|
1834
|
+
label: 'Saint Lucia'
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
value: 'Saint Martin (French part)',
|
|
1838
|
+
label: 'Saint Martin (French part)'
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
value: 'Saint Pierre and Miquelon',
|
|
1842
|
+
label: 'Saint Pierre and Miquelon'
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
value: 'Saint Vincent and the Grenadines',
|
|
1846
|
+
label: 'Saint Vincent and the Grenadines'
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
value: 'Samoa',
|
|
1850
|
+
label: 'Samoa'
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
value: 'San Marino',
|
|
1854
|
+
label: 'San Marino'
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
value: 'Sao Tome and Principe',
|
|
1858
|
+
label: 'Sao Tome and Principe'
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
value: 'Saudi Arabia',
|
|
1862
|
+
label: 'Saudi Arabia'
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
value: 'Senegal',
|
|
1866
|
+
label: 'Senegal'
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
value: 'Serbia',
|
|
1870
|
+
label: 'Serbia'
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
value: 'Seychelles',
|
|
1874
|
+
label: 'Seychelles'
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
value: 'Sierra Leone',
|
|
1878
|
+
label: 'Sierra Leone'
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
value: 'Singapore',
|
|
1882
|
+
label: 'Singapore'
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
value: 'Sint Maarten (Dutch part)',
|
|
1886
|
+
label: 'Sint Maarten (Dutch part)'
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
value: 'Slovakia',
|
|
1890
|
+
label: 'Slovakia'
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
value: 'Slovenia',
|
|
1894
|
+
label: 'Slovenia'
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
value: 'Solomon Islands',
|
|
1898
|
+
label: 'Solomon Islands'
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
value: 'Somalia',
|
|
1902
|
+
label: 'Somalia'
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
value: 'South Africa',
|
|
1906
|
+
label: 'South Africa'
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
value: 'South Georgia and the South Sandwich Islands',
|
|
1910
|
+
label: 'South Georgia and the South Sandwich Islands'
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
value: 'South Sudan',
|
|
1914
|
+
label: 'South Sudan'
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
value: 'Spain',
|
|
1918
|
+
label: 'Spain'
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
value: 'Sri Lanka',
|
|
1922
|
+
label: 'Sri Lanka'
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
value: 'Sudan',
|
|
1926
|
+
label: 'Sudan'
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
value: 'Suriname',
|
|
1930
|
+
label: 'Suriname'
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
value: 'Svalbard and Jan Mayen',
|
|
1934
|
+
label: 'Svalbard and Jan Mayen'
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
value: 'Swaziland',
|
|
1938
|
+
label: 'Swaziland'
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
value: 'Sweden',
|
|
1942
|
+
label: 'Sweden'
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
value: 'Switzerland',
|
|
1946
|
+
label: 'Switzerland'
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
value: 'Syrian Arab Republic',
|
|
1950
|
+
label: 'Syrian Arab Republic'
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
value: 'Taiwan Republic of China',
|
|
1954
|
+
label: 'Taiwan Republic of China'
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
value: 'Tajikistan',
|
|
1958
|
+
label: 'Tajikistan'
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
value: 'Tanzania, United Republic of',
|
|
1962
|
+
label: 'Tanzania, United Republic of'
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
value: 'Thailand',
|
|
1966
|
+
label: 'Thailand'
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
value: 'Timor-Leste',
|
|
1970
|
+
label: 'Timor-Leste'
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
value: 'Togo',
|
|
1974
|
+
label: 'Togo'
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
value: 'Tokelau',
|
|
1978
|
+
label: 'Tokelau'
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
value: 'Tonga',
|
|
1982
|
+
label: 'Tonga'
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
value: 'Trinidad and Tobago',
|
|
1986
|
+
label: 'Trinidad and Tobago'
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
value: 'Tunisia',
|
|
1990
|
+
label: 'Tunisia'
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
value: 'Turkey',
|
|
1994
|
+
label: 'Turkey'
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
value: 'Turkmenistan',
|
|
1998
|
+
label: 'Turkmenistan'
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
value: 'Turks and Caicos Islands',
|
|
2002
|
+
label: 'Turks and Caicos Islands'
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
value: 'Tuvalu',
|
|
2006
|
+
label: 'Tuvalu'
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
value: 'Uganda',
|
|
2010
|
+
label: 'Uganda'
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
value: 'Ukraine',
|
|
2014
|
+
label: 'Ukraine'
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
value: 'United Arab Emirates',
|
|
2018
|
+
label: 'United Arab Emirates'
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
value: 'United Kingdom of Great Britain and Northern Ireland',
|
|
2022
|
+
label: 'United Kingdom of Great Britain and Northern Ireland'
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
value: 'United States Minor Outlying Islands',
|
|
2026
|
+
label: 'United States Minor Outlying Islands'
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
value: 'United States of America',
|
|
2030
|
+
label: 'United States of America'
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
value: 'Uruguay',
|
|
2034
|
+
label: 'Uruguay'
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
value: 'Uzbekistan',
|
|
2038
|
+
label: 'Uzbekistan'
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
value: 'Vanuatu',
|
|
2042
|
+
label: 'Vanuatu'
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
value: 'Venezuela (Bolivarian Republic of)',
|
|
2046
|
+
label: 'Venezuela (Bolivarian Republic of)'
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
value: 'Vietnam',
|
|
2050
|
+
label: 'Vietnam'
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
value: 'Virgin Islands (British)',
|
|
2054
|
+
label: 'Virgin Islands (British)'
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
value: 'Virgin Islands (U.S.)',
|
|
2058
|
+
label: 'Virgin Islands (U.S.)'
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
value: 'Wallis and Futuna',
|
|
2062
|
+
label: 'Wallis and Futuna'
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
value: 'Western Sahara',
|
|
2066
|
+
label: 'Western Sahara'
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
value: 'Yemen',
|
|
2070
|
+
label: 'Yemen'
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
value: 'Zambia',
|
|
2074
|
+
label: 'Zambia'
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
value: 'Zimbabwe',
|
|
2078
|
+
label: 'Zimbabwe'
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
value: 'Åland Islands',
|
|
2082
|
+
label: 'Åland Islands'
|
|
2083
|
+
}
|
|
2084
|
+
];
|
|
2085
|
+
|
|
2086
|
+
};
|
|
2087
|
+
static get_states = () =>{
|
|
2088
|
+
return [
|
|
2089
|
+
{
|
|
2090
|
+
label: "Other",
|
|
2091
|
+
value: "Other"
|
|
2092
|
+
},
|
|
2093
|
+
{ label: "Alaska", value: "Alaska" },
|
|
2094
|
+
{ label: "Alabama", value: "Alabama" },
|
|
2095
|
+
{ label: "Arkansas", value: "Arkansas" },
|
|
2096
|
+
{ label: "Arizona", value: "Arizona" },
|
|
2097
|
+
{ label: "California", value: "California" },
|
|
2098
|
+
{ label: "Colorado", value: "Colorado" },
|
|
2099
|
+
{ label: "Connecticut", value: "Connecticut" },
|
|
2100
|
+
{ label: "District of Columbia", value: "District of Columbia" },
|
|
2101
|
+
{ label: "Delaware", value: "Delaware" },
|
|
2102
|
+
{ label: "Florida", value: "Florida" },
|
|
2103
|
+
{ label: "Georgia", value: "Georgia" },
|
|
2104
|
+
{ label: "Hawaii", value: "Hawaii" },
|
|
2105
|
+
{ label: "Iowa", value: "Iowa" },
|
|
2106
|
+
{ label: "Idaho", value: "Idaho" },
|
|
2107
|
+
{ label: "IL", value: "Illinois" },
|
|
2108
|
+
{ label: "Illinois", value: "Indiana" },
|
|
2109
|
+
{ label: "Kansas", value: "Kansas" },
|
|
2110
|
+
{ label: "Kentucky", value: "Kentucky" },
|
|
2111
|
+
{ label: "Louisiana", value: "Louisiana" },
|
|
2112
|
+
{ label: "Massachusetts", value: "Massachusetts" },
|
|
2113
|
+
{ label: "Maryland", value: "Maryland" },
|
|
2114
|
+
{ label: "Maine", value: "Maine" },
|
|
2115
|
+
{ label: "Michigan", value: "Michigan" },
|
|
2116
|
+
{ label: "Minnesota", value: "Minnesota" },
|
|
2117
|
+
{ label: "Missouri", value: "Missouri" },
|
|
2118
|
+
{ label: "Mississippi", value: "Mississippi" },
|
|
2119
|
+
{ label: "Montana", value: "Montana" },
|
|
2120
|
+
{ label: "North Carolina", value: "North Carolina" },
|
|
2121
|
+
{ label: "North Dakota", value: "North Dakota" },
|
|
2122
|
+
{ label: "Nebraska", value: "Nebraska" },
|
|
2123
|
+
{ label: "New Hampshire", value: "New Hampshire" },
|
|
2124
|
+
{ label: "New Jersey", value: "New Jersey" },
|
|
2125
|
+
{ label: "New Mexico", value: "New Mexico" },
|
|
2126
|
+
{ label: "Nevada", value: "Nevada" },
|
|
2127
|
+
{ label: "New York", value: "NewYork" },
|
|
2128
|
+
{ label: "Ohio", value: "Ohio" },
|
|
2129
|
+
{ label: "Oklahoma", value: "Oklahoma" },
|
|
2130
|
+
{ label: "Oregon", value: "Oregon" },
|
|
2131
|
+
{ label: "Pennsylvania", value: "Pennsylvania" },
|
|
2132
|
+
{ label: "Rhode Island", value: "Rhode Island" },
|
|
2133
|
+
{ label: "South Carolina", value: "South Carolina" },
|
|
2134
|
+
{ label: "South Dakota", value: "South Dakota" },
|
|
2135
|
+
{ label: "Tennessee", value: "Tennessee" },
|
|
2136
|
+
{ label: "Texas", value: "Texas" },
|
|
2137
|
+
{ label: "Utah", value: "Utah" },
|
|
2138
|
+
{ label: "Virginia", value: "Virginia" },
|
|
2139
|
+
{ label: "Vermont", value: "Vermont" },
|
|
2140
|
+
{ label: "Washington", value: "Washington" },
|
|
2141
|
+
{ label: "Wisconsin", value: "Wisconsin" },
|
|
2142
|
+
{ label: "West Virginia", value: "West Virginia" },
|
|
2143
|
+
{ label: "Wyoming", value: "Wyoming" },
|
|
2144
|
+
];
|
|
2145
|
+
}
|
|
1062
2146
|
}
|
|
1063
2147
|
class Data_Logic {
|
|
1064
2148
|
static get_new = (data_type,id,option) => {
|
|
1065
2149
|
return Data_Logic.get(data_type,id,option);
|
|
1066
2150
|
};
|
|
1067
|
-
// -->
|
|
2151
|
+
// --> option = / test / blank / title / generate_title / count / data
|
|
1068
2152
|
static get = (data_type,id,option) => {
|
|
2153
|
+
option = option ? option : {};
|
|
1069
2154
|
function get_test_data(data_type){
|
|
1070
2155
|
switch(data_type)
|
|
1071
2156
|
{
|
|
@@ -1081,11 +2166,14 @@ class Data_Logic {
|
|
|
1081
2166
|
case Type.DATA_PRODUCT:
|
|
1082
2167
|
return Product_Logic.get_test();
|
|
1083
2168
|
break;
|
|
2169
|
+
case Type.DATA_REVIEW:
|
|
2170
|
+
return Review_Logic.get_test();
|
|
2171
|
+
break;
|
|
1084
2172
|
case Type.DATA_CONTENT:
|
|
1085
2173
|
case Type.DATA_CATEGORY:
|
|
1086
2174
|
case Type.DATA_BLANK:
|
|
1087
2175
|
return Blank_Logic.get_test();
|
|
1088
|
-
|
|
2176
|
+
break;
|
|
1089
2177
|
case Type.DATA_USER:
|
|
1090
2178
|
return User_Logic.get_test();
|
|
1091
2179
|
break;
|
|
@@ -1094,15 +2182,20 @@ class Data_Logic {
|
|
|
1094
2182
|
break;
|
|
1095
2183
|
}
|
|
1096
2184
|
}
|
|
1097
|
-
|
|
2185
|
+
let data = null;
|
|
2186
|
+
if(option.count>1){
|
|
2187
|
+
data = [];
|
|
2188
|
+
}else{
|
|
2189
|
+
data = {data_type:data_type,id:id};
|
|
2190
|
+
}
|
|
1098
2191
|
option = option ? option : {count:0};
|
|
1099
2192
|
data = Field_Logic.get_base_option(data,option);
|
|
1100
2193
|
if(option.test){
|
|
1101
2194
|
data = Obj.merge(get_test_data(data_type),data);
|
|
1102
2195
|
}
|
|
1103
2196
|
if(option.title){
|
|
1104
|
-
data[Type.
|
|
1105
|
-
data[Type.
|
|
2197
|
+
data[Type.FIELD_TITLE] = option.title;
|
|
2198
|
+
data[Type.FIELD_TITLE_URL] = Str.get_title_url(option.title);
|
|
1106
2199
|
}
|
|
1107
2200
|
if(option.blank){
|
|
1108
2201
|
for(const field in data){
|
|
@@ -1118,6 +2211,9 @@ class Data_Logic {
|
|
|
1118
2211
|
let test_data = Obj.merge(data,get_test_data(data.data_type));
|
|
1119
2212
|
test_data[Type.FIELD_TITLE] = my_title;
|
|
1120
2213
|
test_data[Type.FIELD_TITLE_URL] = Str.get_title_url(my_title);
|
|
2214
|
+
if(option.data){
|
|
2215
|
+
test_data = Obj.merge(test_data,option.data);
|
|
2216
|
+
}
|
|
1121
2217
|
items.push(test_data);
|
|
1122
2218
|
}
|
|
1123
2219
|
data = items;
|
|
@@ -1193,9 +2289,9 @@ class Data_Logic {
|
|
|
1193
2289
|
}
|
|
1194
2290
|
static get_search_group = (option) => {
|
|
1195
2291
|
option = option ? option : {};
|
|
1196
|
-
let type = option.type ? option.type : Type.
|
|
2292
|
+
let type = option.type ? option.type : Type.SEARCH_ITEMS;
|
|
1197
2293
|
let field = option.field ? option.field : {};
|
|
1198
|
-
let title = option.title ? option.title : {};
|
|
2294
|
+
let title = option.title ? Str.get_title_url(option.title) : {};
|
|
1199
2295
|
let image_show = option.image_show ? option.image_show : {};
|
|
1200
2296
|
let image = option.image ? option.image : {show:false};
|
|
1201
2297
|
let page_current = option.page_current ? option.page_current : 1;
|
|
@@ -1204,25 +2300,27 @@ class Data_Logic {
|
|
|
1204
2300
|
}
|
|
1205
2301
|
static get_search_foreign = (type,foreign_data_type,foreign_field,parent_field,option) => {
|
|
1206
2302
|
option = option ? option : {};
|
|
1207
|
-
type = type ? type : Type.
|
|
2303
|
+
type = type ? type : Type.SEARCH_ITEMS;
|
|
1208
2304
|
foreign_data_type = foreign_data_type ? foreign_data_type : Str.get_title_url(Data_Logic.get_data_type_by_type(foreign_data_type,{plural:true}));
|
|
1209
2305
|
foreign_field = foreign_field ? foreign_field : Type.FIELD_PARENT_ID;
|
|
1210
2306
|
parent_field = parent_field ? parent_field : parent_field;
|
|
1211
|
-
let field = option.field ? option.field :
|
|
1212
|
-
let title = option.title ? option.title : Str.get_title_url(Data_Logic.get_data_type_by_type(foreign_data_type,{plural:true}));
|
|
2307
|
+
let field = option.field ? option.field : null;
|
|
2308
|
+
let title = option.title ? Str.get_title_url(option.title) : Str.get_title_url(Data_Logic.get_data_type_by_type(foreign_data_type,{plural:true}));
|
|
1213
2309
|
let page_current = option.page_current ? option.page_current : 1;
|
|
1214
2310
|
let page_size = option.page_size ? option.page_size : 0;
|
|
1215
2311
|
return {type:type,foreign_data_type:foreign_data_type,foreign_field:foreign_field,parent_field:parent_field,type:type,field:field,title:title,page_current:page_current,page_size:page_size};
|
|
1216
2312
|
}
|
|
1217
2313
|
static get_search_join = (type,search,option) => {
|
|
1218
2314
|
option = option ? option : {};
|
|
1219
|
-
type = type ? type : Type.
|
|
2315
|
+
type = type ? type : Type.SEARCH_ITEMS;
|
|
1220
2316
|
search = search ? search : Data_Logic.get_search(Type.DATA_BLANK,{},{},1,0);
|
|
1221
2317
|
let field = option.field ? option.field : {};
|
|
1222
|
-
let
|
|
1223
|
-
let
|
|
2318
|
+
let distinct = option.distinct ? option.distinct : null; //distinct:{field:'title',sort_by:Type.SEARCH_SORT_BY_DESC}
|
|
2319
|
+
let title = option.title ? Str.get_title_url(option.title) : Str.get_title_url(Data_Logic.get_data_type_by_type(search.data_type,{plural:true}));
|
|
2320
|
+
let foreigns = option.foreigns ? option.foreigns : [];
|
|
2321
|
+
let page_current = option.page_current ? option.page_current : 1;
|
|
1224
2322
|
let page_size = option.page_size ? option.page_size : 0;
|
|
1225
|
-
return {type:type,search:search,field:field,title:title,page_current:page_current,page_size:page_size};
|
|
2323
|
+
return {type:type,search:search,field:field,title:title,distinct:distinct,foreigns:foreigns,page_current:page_current,page_size:page_size};
|
|
1226
2324
|
}
|
|
1227
2325
|
static copy = (data_type,item)=>{
|
|
1228
2326
|
let copy_item = Data_Logic.get_new(data_type,0);
|
|
@@ -1454,7 +2552,6 @@ class Url {
|
|
|
1454
2552
|
static GET="main/crud/get";
|
|
1455
2553
|
static LOGIN="user/login";
|
|
1456
2554
|
static LOGOUT="user/logout";
|
|
1457
|
-
static REGISTER="user/register";
|
|
1458
2555
|
static PARENT_TOP="main/crud/parent_top";
|
|
1459
2556
|
static PING_GET="ping_get";
|
|
1460
2557
|
static PING_POST="ping_post";
|
|
@@ -1498,6 +2595,7 @@ class Url {
|
|
|
1498
2595
|
static PAGE_PRODUCT="page/product";
|
|
1499
2596
|
static PAGE_PRODUCT_HOME="page/product_home";
|
|
1500
2597
|
static PAGE_PRODUCT_SEARCH="page/product_search";
|
|
2598
|
+
static PAGE_REGISTER="user/register";
|
|
1501
2599
|
static PAGE_SERVICE="page/service";
|
|
1502
2600
|
static PAGE_SERVICE_HOME="page/service_home";
|
|
1503
2601
|
static PAGE_SERVICE_SEARCH="page/service_search";
|
|
@@ -1521,6 +2619,7 @@ module.exports = {
|
|
|
1521
2619
|
Blog_Post_Logic,
|
|
1522
2620
|
Cart_Logic,
|
|
1523
2621
|
Category_Logic,
|
|
2622
|
+
Content_Logic,
|
|
1524
2623
|
Data_Logic,
|
|
1525
2624
|
Event_Logic,
|
|
1526
2625
|
File_Logic,
|