mozrest-sdk-react-dev 0.1.64 → 0.1.65
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/mozrest-sdk.es.js +323 -295
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -6308,6 +6308,9 @@ const NOTES = "Notes";
|
|
|
6308
6308
|
const CANCELRESERVATION = "Cancel reservation";
|
|
6309
6309
|
const AREYOUSURECANCELRESERVATION = "Are you sure you want to cancel this reservation?";
|
|
6310
6310
|
const CANCELREASON = "Cancel reason";
|
|
6311
|
+
const ATMOSPHERE = "Atmosphere";
|
|
6312
|
+
const COOKING = "Cooking";
|
|
6313
|
+
const STANDING = "Standing";
|
|
6311
6314
|
var en = {
|
|
6312
6315
|
errors,
|
|
6313
6316
|
SPECIALCLOSINGDATES,
|
|
@@ -6577,7 +6580,10 @@ var en = {
|
|
|
6577
6580
|
NOTES,
|
|
6578
6581
|
CANCELRESERVATION,
|
|
6579
6582
|
AREYOUSURECANCELRESERVATION,
|
|
6580
|
-
CANCELREASON
|
|
6583
|
+
CANCELREASON,
|
|
6584
|
+
ATMOSPHERE,
|
|
6585
|
+
COOKING,
|
|
6586
|
+
STANDING
|
|
6581
6587
|
};
|
|
6582
6588
|
instance.use(initReactI18next).init({
|
|
6583
6589
|
resources: {
|
|
@@ -43567,10 +43573,12 @@ const DetailMobile = ({
|
|
|
43567
43573
|
createdAt,
|
|
43568
43574
|
locationName,
|
|
43569
43575
|
locale: locale2,
|
|
43576
|
+
meta,
|
|
43570
43577
|
onReload,
|
|
43571
43578
|
openForm,
|
|
43572
43579
|
onClick
|
|
43573
43580
|
}) => {
|
|
43581
|
+
const { t: t2 } = useTranslation();
|
|
43574
43582
|
const [showTemplates, setShowTemplates] = useState(false);
|
|
43575
43583
|
const [showTranslation, setShowTranslation] = useState(false);
|
|
43576
43584
|
const openModal = () => setShowTemplates(true);
|
|
@@ -43600,7 +43608,9 @@ const DetailMobile = ({
|
|
|
43600
43608
|
locale: locale2
|
|
43601
43609
|
})), /* @__PURE__ */ React__default.createElement(StartScore, {
|
|
43602
43610
|
score: rating
|
|
43603
|
-
}), /* @__PURE__ */ React__default.createElement("br", null),
|
|
43611
|
+
}), /* @__PURE__ */ React__default.createElement("br", null), meta && /* @__PURE__ */ React__default.createElement("div", {
|
|
43612
|
+
style: { display: "flex", gap: 10 }
|
|
43613
|
+
}, meta.atmosphere && /* @__PURE__ */ React__default.createElement("p", null, t2("ATMOSPHERE"), ":", meta.atmosphere, " |"), meta.cooking && /* @__PURE__ */ React__default.createElement("p", null, t2("COOKING"), ":", meta.cooking, " |"), meta.standing && /* @__PURE__ */ React__default.createElement("p", null, t2("STANDING"), ":", meta.standing, " |")), comment2 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Comment, {
|
|
43604
43614
|
showTranslation,
|
|
43605
43615
|
setShowTranslation,
|
|
43606
43616
|
locale: locale2
|
|
@@ -43638,16 +43648,20 @@ const DetailDesktop = ({
|
|
|
43638
43648
|
reviewer: reviewer2,
|
|
43639
43649
|
comment: comment2,
|
|
43640
43650
|
locale: locale2,
|
|
43651
|
+
meta,
|
|
43641
43652
|
locationName,
|
|
43642
43653
|
onReload,
|
|
43643
43654
|
openForm
|
|
43644
43655
|
}) => {
|
|
43656
|
+
const { t: t2 } = useTranslation();
|
|
43645
43657
|
const [showTranslation, setShowTranslation] = useState(false);
|
|
43646
43658
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
43647
43659
|
className: classNames$2(styles$1u.detail, {
|
|
43648
43660
|
[styles$1u.hide]: !openForm
|
|
43649
43661
|
})
|
|
43650
|
-
},
|
|
43662
|
+
}, meta && /* @__PURE__ */ React__default.createElement("div", {
|
|
43663
|
+
style: { display: "flex", gap: 10 }
|
|
43664
|
+
}, meta.atmosphere && /* @__PURE__ */ React__default.createElement("p", null, t2("ATMOSPHERE"), ":", meta.atmosphere, " |"), meta.cooking && /* @__PURE__ */ React__default.createElement("p", null, t2("COOKING"), ":", meta.cooking, " |"), meta.standing && /* @__PURE__ */ React__default.createElement("p", null, t2("STANDING"), ":", meta.standing, " |")), comment2 && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Comment, {
|
|
43651
43665
|
showTranslation,
|
|
43652
43666
|
setShowTranslation,
|
|
43653
43667
|
locale: locale2
|
|
@@ -43701,6 +43715,7 @@ const Review = ({
|
|
|
43701
43715
|
createdAt,
|
|
43702
43716
|
locationName,
|
|
43703
43717
|
locale: locale2,
|
|
43718
|
+
meta,
|
|
43704
43719
|
onReload,
|
|
43705
43720
|
openForm,
|
|
43706
43721
|
onClick,
|
|
@@ -43755,6 +43770,7 @@ const Review = ({
|
|
|
43755
43770
|
createdAt,
|
|
43756
43771
|
locationName,
|
|
43757
43772
|
locale: locale2,
|
|
43773
|
+
meta,
|
|
43758
43774
|
onReload,
|
|
43759
43775
|
openForm,
|
|
43760
43776
|
onClick
|
|
@@ -43768,6 +43784,7 @@ const Review = ({
|
|
|
43768
43784
|
createdAt,
|
|
43769
43785
|
locationName,
|
|
43770
43786
|
locale: locale2,
|
|
43787
|
+
meta,
|
|
43771
43788
|
onReload,
|
|
43772
43789
|
openForm,
|
|
43773
43790
|
onClick
|
|
@@ -49609,8 +49626,285 @@ const DatePicker = ({
|
|
|
49609
49626
|
allowClear: false
|
|
49610
49627
|
}));
|
|
49611
49628
|
};
|
|
49612
|
-
|
|
49629
|
+
var countries$1 = [
|
|
49630
|
+
{ id: "AF", label: "Afghanistan" },
|
|
49631
|
+
{ id: "AX", label: "\xC5land Islands" },
|
|
49632
|
+
{ id: "AL", label: "Albania" },
|
|
49633
|
+
{ id: "DZ", label: "Algeria" },
|
|
49634
|
+
{ id: "AS", label: "American Samoa" },
|
|
49635
|
+
{ id: "AD", label: "Andorra" },
|
|
49636
|
+
{ id: "AO", label: "Angola" },
|
|
49637
|
+
{ id: "AI", label: "Anguilla" },
|
|
49638
|
+
{ id: "AQ", label: "Antarctica" },
|
|
49639
|
+
{ id: "AG", label: "Antigua and Barbuda" },
|
|
49640
|
+
{ id: "AR", label: "Argentina" },
|
|
49641
|
+
{ id: "AM", label: "Armenia" },
|
|
49642
|
+
{ id: "AW", label: "Aruba" },
|
|
49643
|
+
{ id: "AU", label: "Australia" },
|
|
49644
|
+
{ id: "AT", label: "Austria" },
|
|
49645
|
+
{ id: "AZ", label: "Azerbaijan" },
|
|
49646
|
+
{ id: "BS", label: "Bahamas" },
|
|
49647
|
+
{ id: "BH", label: "Bahrain" },
|
|
49648
|
+
{ id: "BD", label: "Bangladesh" },
|
|
49649
|
+
{ id: "BB", label: "Barbados" },
|
|
49650
|
+
{ id: "BY", label: "Belarus" },
|
|
49651
|
+
{ id: "BE", label: "Belgium" },
|
|
49652
|
+
{ id: "BZ", label: "Belize" },
|
|
49653
|
+
{ id: "BJ", label: "Benin" },
|
|
49654
|
+
{ id: "BM", label: "Bermuda" },
|
|
49655
|
+
{ id: "BT", label: "Bhutan" },
|
|
49656
|
+
{ id: "BO", label: "Bolivia, Plurinational State of" },
|
|
49657
|
+
{ id: "BQ", label: "Bonaire, Sint Eustatius and Saba" },
|
|
49658
|
+
{ id: "BA", label: "Bosnia and Herzegovina" },
|
|
49659
|
+
{ id: "BW", label: "Botswana" },
|
|
49660
|
+
{ id: "BV", label: "Bouvet Island" },
|
|
49661
|
+
{ id: "BR", label: "Brazil" },
|
|
49662
|
+
{ id: "IO", label: "British Indian Ocean Territory" },
|
|
49663
|
+
{ id: "BN", label: "Brunei Darussalam" },
|
|
49664
|
+
{ id: "BG", label: "Bulgaria" },
|
|
49665
|
+
{ id: "BF", label: "Burkina Faso" },
|
|
49666
|
+
{ id: "BI", label: "Burundi" },
|
|
49667
|
+
{ id: "KH", label: "Cambodia" },
|
|
49668
|
+
{ id: "CM", label: "Cameroon" },
|
|
49669
|
+
{ id: "CA", label: "Canada" },
|
|
49670
|
+
{ id: "CV", label: "Cape Verde" },
|
|
49671
|
+
{ id: "KY", label: "Cayman Islands" },
|
|
49672
|
+
{ id: "CF", label: "Central African Republic" },
|
|
49673
|
+
{ id: "TD", label: "Chad" },
|
|
49674
|
+
{ id: "CL", label: "Chile" },
|
|
49675
|
+
{ id: "CN", label: "China" },
|
|
49676
|
+
{ id: "CX", label: "Christmas Island" },
|
|
49677
|
+
{ id: "CC", label: "Cocos (Keeling) Islands" },
|
|
49678
|
+
{ id: "CO", label: "Colombia" },
|
|
49679
|
+
{ id: "KM", label: "Comoros" },
|
|
49680
|
+
{ id: "CG", label: "Congo" },
|
|
49681
|
+
{ id: "CD", label: "Congo, the Democratic Republic of the" },
|
|
49682
|
+
{ id: "CK", label: "Cook Islands" },
|
|
49683
|
+
{ id: "CR", label: "Costa Rica" },
|
|
49684
|
+
{ id: "CI", label: "C\xF4te d'Ivoire" },
|
|
49685
|
+
{ id: "HR", label: "Croatia" },
|
|
49686
|
+
{ id: "CU", label: "Cuba" },
|
|
49687
|
+
{ id: "CW", label: "Cura\xE7ao" },
|
|
49688
|
+
{ id: "CY", label: "Cyprus" },
|
|
49689
|
+
{ id: "CZ", label: "Czech Republic" },
|
|
49690
|
+
{ id: "DK", label: "Denmark" },
|
|
49691
|
+
{ id: "DJ", label: "Djibouti" },
|
|
49692
|
+
{ id: "DM", label: "Dominica" },
|
|
49693
|
+
{ id: "DO", label: "Dominican Republic" },
|
|
49694
|
+
{ id: "EC", label: "Ecuador" },
|
|
49695
|
+
{ id: "EG", label: "Egypt" },
|
|
49696
|
+
{ id: "SV", label: "El Salvador" },
|
|
49697
|
+
{ id: "GQ", label: "Equatorial Guinea" },
|
|
49698
|
+
{ id: "ER", label: "Eritrea" },
|
|
49699
|
+
{ id: "EE", label: "Estonia" },
|
|
49700
|
+
{ id: "ET", label: "Ethiopia" },
|
|
49701
|
+
{ id: "FK", label: "Falkland Islands (Malvinas)" },
|
|
49702
|
+
{ id: "FO", label: "Faroe Islands" },
|
|
49703
|
+
{ id: "FJ", label: "Fiji" },
|
|
49704
|
+
{ id: "FI", label: "Finland" },
|
|
49705
|
+
{ id: "FR", label: "France" },
|
|
49706
|
+
{ id: "GF", label: "French Guiana" },
|
|
49707
|
+
{ id: "PF", label: "French Polynesia" },
|
|
49708
|
+
{ id: "TF", label: "French Southern Territories" },
|
|
49709
|
+
{ id: "GA", label: "Gabon" },
|
|
49710
|
+
{ id: "GM", label: "Gambia" },
|
|
49711
|
+
{ id: "GE", label: "Georgia" },
|
|
49712
|
+
{ id: "DE", label: "Germany" },
|
|
49713
|
+
{ id: "GH", label: "Ghana" },
|
|
49714
|
+
{ id: "GI", label: "Gibraltar" },
|
|
49715
|
+
{ id: "GR", label: "Greece" },
|
|
49716
|
+
{ id: "GL", label: "Greenland" },
|
|
49717
|
+
{ id: "GD", label: "Grenada" },
|
|
49718
|
+
{ id: "GP", label: "Guadeloupe" },
|
|
49719
|
+
{ id: "GU", label: "Guam" },
|
|
49720
|
+
{ id: "GT", label: "Guatemala" },
|
|
49721
|
+
{ id: "GG", label: "Guernsey" },
|
|
49722
|
+
{ id: "GN", label: "Guinea" },
|
|
49723
|
+
{ id: "GW", label: "Guinea-Bissau" },
|
|
49724
|
+
{ id: "GY", label: "Guyana" },
|
|
49725
|
+
{ id: "HT", label: "Haiti" },
|
|
49726
|
+
{ id: "HM", label: "Heard Island and McDonald Islands" },
|
|
49727
|
+
{ id: "VA", label: "Holy See (Vatican City State)" },
|
|
49728
|
+
{ id: "HN", label: "Honduras" },
|
|
49729
|
+
{ id: "HK", label: "Hong Kong" },
|
|
49730
|
+
{ id: "HU", label: "Hungary" },
|
|
49731
|
+
{ id: "IS", label: "Iceland" },
|
|
49732
|
+
{ id: "IN", label: "India" },
|
|
49733
|
+
{ id: "ID", label: "Indonesia" },
|
|
49734
|
+
{ id: "IR", label: "Iran, Islamic Republic of" },
|
|
49735
|
+
{ id: "IQ", label: "Iraq" },
|
|
49736
|
+
{ id: "IE", label: "Ireland" },
|
|
49737
|
+
{ id: "IM", label: "Isle of Man" },
|
|
49738
|
+
{ id: "IL", label: "Israel" },
|
|
49739
|
+
{ id: "IT", label: "Italy" },
|
|
49740
|
+
{ id: "JM", label: "Jamaica" },
|
|
49741
|
+
{ id: "JP", label: "Japan" },
|
|
49742
|
+
{ id: "JE", label: "Jersey" },
|
|
49743
|
+
{ id: "JO", label: "Jordan" },
|
|
49744
|
+
{ id: "KZ", label: "Kazakhstan" },
|
|
49745
|
+
{ id: "KE", label: "Kenya" },
|
|
49746
|
+
{ id: "KI", label: "Kiribati" },
|
|
49747
|
+
{ id: "KP", label: "Korea, Democratic People's Republic of" },
|
|
49748
|
+
{ id: "KR", label: "Korea, Republic of" },
|
|
49749
|
+
{ id: "KW", label: "Kuwait" },
|
|
49750
|
+
{ id: "KG", label: "Kyrgyzstan" },
|
|
49751
|
+
{ id: "LA", label: "Lao People's Democratic Republic" },
|
|
49752
|
+
{ id: "LV", label: "Latvia" },
|
|
49753
|
+
{ id: "LB", label: "Lebanon" },
|
|
49754
|
+
{ id: "LS", label: "Lesotho" },
|
|
49755
|
+
{ id: "LR", label: "Liberia" },
|
|
49756
|
+
{ id: "LY", label: "Libya" },
|
|
49757
|
+
{ id: "LI", label: "Liechtenstein" },
|
|
49758
|
+
{ id: "LT", label: "Lithuania" },
|
|
49759
|
+
{ id: "LU", label: "Luxembourg" },
|
|
49760
|
+
{ id: "MO", label: "Macao" },
|
|
49761
|
+
{ id: "MK", label: "Macedonia, the Former Yugoslav Republic of" },
|
|
49762
|
+
{ id: "MG", label: "Madagascar" },
|
|
49763
|
+
{ id: "MW", label: "Malawi" },
|
|
49764
|
+
{ id: "MY", label: "Malaysia" },
|
|
49765
|
+
{ id: "MV", label: "Maldives" },
|
|
49766
|
+
{ id: "ML", label: "Mali" },
|
|
49767
|
+
{ id: "MT", label: "Malta" },
|
|
49768
|
+
{ id: "MH", label: "Marshall Islands" },
|
|
49769
|
+
{ id: "MQ", label: "Martinique" },
|
|
49770
|
+
{ id: "MR", label: "Mauritania" },
|
|
49771
|
+
{ id: "MU", label: "Mauritius" },
|
|
49772
|
+
{ id: "YT", label: "Mayotte" },
|
|
49773
|
+
{ id: "MX", label: "Mexico" },
|
|
49774
|
+
{ id: "FM", label: "Micronesia, Federated States of" },
|
|
49775
|
+
{ id: "MD", label: "Moldova, Republic of" },
|
|
49776
|
+
{ id: "MC", label: "Monaco" },
|
|
49777
|
+
{ id: "MN", label: "Mongolia" },
|
|
49778
|
+
{ id: "ME", label: "Montenegro" },
|
|
49779
|
+
{ id: "MS", label: "Montserrat" },
|
|
49780
|
+
{ id: "MA", label: "Morocco" },
|
|
49781
|
+
{ id: "MZ", label: "Mozambique" },
|
|
49782
|
+
{ id: "MM", label: "Myanmar" },
|
|
49783
|
+
{ id: "NA", label: "Namibia" },
|
|
49784
|
+
{ id: "NR", label: "Nauru" },
|
|
49785
|
+
{ id: "NP", label: "Nepal" },
|
|
49786
|
+
{ id: "NL", label: "Netherlands" },
|
|
49787
|
+
{ id: "NC", label: "New Caledonia" },
|
|
49788
|
+
{ id: "NZ", label: "New Zealand" },
|
|
49789
|
+
{ id: "NI", label: "Nicaragua" },
|
|
49790
|
+
{ id: "NE", label: "Niger" },
|
|
49791
|
+
{ id: "NG", label: "Nigeria" },
|
|
49792
|
+
{ id: "NU", label: "Niue" },
|
|
49793
|
+
{ id: "NF", label: "Norfolk Island" },
|
|
49794
|
+
{ id: "MP", label: "Northern Mariana Islands" },
|
|
49795
|
+
{ id: "NO", label: "Norway" },
|
|
49796
|
+
{ id: "OM", label: "Oman" },
|
|
49797
|
+
{ id: "PK", label: "Pakistan" },
|
|
49798
|
+
{ id: "PW", label: "Palau" },
|
|
49799
|
+
{ id: "PS", label: "Palestine, State of" },
|
|
49800
|
+
{ id: "PA", label: "Panama" },
|
|
49801
|
+
{ id: "PG", label: "Papua New Guinea" },
|
|
49802
|
+
{ id: "PY", label: "Paraguay" },
|
|
49803
|
+
{ id: "PE", label: "Peru" },
|
|
49804
|
+
{ id: "PH", label: "Philippines" },
|
|
49805
|
+
{ id: "PN", label: "Pitcairn" },
|
|
49806
|
+
{ id: "PL", label: "Poland" },
|
|
49807
|
+
{ id: "PT", label: "Portugal" },
|
|
49808
|
+
{ id: "PR", label: "Puerto Rico" },
|
|
49809
|
+
{ id: "QA", label: "Qatar" },
|
|
49810
|
+
{ id: "RE", label: "R\xE9union" },
|
|
49811
|
+
{ id: "RO", label: "Romania" },
|
|
49812
|
+
{ id: "RU", label: "Russian Federation" },
|
|
49813
|
+
{ id: "RW", label: "Rwanda" },
|
|
49814
|
+
{ id: "BL", label: "Saint Barth\xE9lemy" },
|
|
49815
|
+
{ id: "SH", label: "Saint Helena, Ascension and Tristan da Cunha" },
|
|
49816
|
+
{ id: "KN", label: "Saint Kitts and Nevis" },
|
|
49817
|
+
{ id: "LC", label: "Saint Lucia" },
|
|
49818
|
+
{ id: "MF", label: "Saint Martin (French part)" },
|
|
49819
|
+
{ id: "PM", label: "Saint Pierre and Miquelon" },
|
|
49820
|
+
{ id: "VC", label: "Saint Vincent and the Grenadines" },
|
|
49821
|
+
{ id: "WS", label: "Samoa" },
|
|
49822
|
+
{ id: "SM", label: "San Marino" },
|
|
49823
|
+
{ id: "ST", label: "Sao Tome and Principe" },
|
|
49824
|
+
{ id: "SA", label: "Saudi Arabia" },
|
|
49825
|
+
{ id: "SN", label: "Senegal" },
|
|
49826
|
+
{ id: "RS", label: "Serbia" },
|
|
49827
|
+
{ id: "SC", label: "Seychelles" },
|
|
49828
|
+
{ id: "SL", label: "Sierra Leone" },
|
|
49829
|
+
{ id: "SG", label: "Singapore" },
|
|
49830
|
+
{ id: "SX", label: "Sint Maarten (Dutch part)" },
|
|
49831
|
+
{ id: "SK", label: "Slovakia" },
|
|
49832
|
+
{ id: "SI", label: "Slovenia" },
|
|
49833
|
+
{ id: "SB", label: "Solomon Islands" },
|
|
49834
|
+
{ id: "SO", label: "Somalia" },
|
|
49835
|
+
{ id: "ZA", label: "South Africa" },
|
|
49836
|
+
{ id: "GS", label: "South Georgia and the South Sandwich Islands" },
|
|
49837
|
+
{ id: "SS", label: "South Sudan" },
|
|
49838
|
+
{ id: "ES", label: "Spain" },
|
|
49839
|
+
{ id: "LK", label: "Sri Lanka" },
|
|
49840
|
+
{ id: "SD", label: "Sudan" },
|
|
49841
|
+
{ id: "SR", label: "Surilabel" },
|
|
49842
|
+
{ id: "SJ", label: "Svalbard and Jan Mayen" },
|
|
49843
|
+
{ id: "SZ", label: "Swaziland" },
|
|
49844
|
+
{ id: "SE", label: "Sweden" },
|
|
49845
|
+
{ id: "CH", label: "Switzerland" },
|
|
49846
|
+
{ id: "SY", label: "Syrian Arab Republic" },
|
|
49847
|
+
{ id: "TW", label: "Taiwan, Province of China" },
|
|
49848
|
+
{ id: "TJ", label: "Tajikistan" },
|
|
49849
|
+
{ id: "TZ", label: "Tanzania, United Republic of" },
|
|
49850
|
+
{ id: "TH", label: "Thailand" },
|
|
49851
|
+
{ id: "TL", label: "Timor-Leste" },
|
|
49852
|
+
{ id: "TG", label: "Togo" },
|
|
49853
|
+
{ id: "TK", label: "Tokelau" },
|
|
49854
|
+
{ id: "TO", label: "Tonga" },
|
|
49855
|
+
{ id: "TT", label: "Trinidad and Tobago" },
|
|
49856
|
+
{ id: "TN", label: "Tunisia" },
|
|
49857
|
+
{ id: "TR", label: "Turkey" },
|
|
49858
|
+
{ id: "TM", label: "Turkmenistan" },
|
|
49859
|
+
{ id: "TC", label: "Turks and Caicos Islands" },
|
|
49860
|
+
{ id: "TV", label: "Tuvalu" },
|
|
49861
|
+
{ id: "UG", label: "Uganda" },
|
|
49862
|
+
{ id: "UA", label: "Ukraine" },
|
|
49863
|
+
{ id: "AE", label: "United Arab Emirates" },
|
|
49864
|
+
{ id: "GB", label: "United Kingdom" },
|
|
49865
|
+
{ id: "US", label: "United States" },
|
|
49866
|
+
{ id: "UM", label: "United States Minor Outlying Islands" },
|
|
49867
|
+
{ id: "UY", label: "Uruguay" },
|
|
49868
|
+
{ id: "UZ", label: "Uzbekistan" },
|
|
49869
|
+
{ id: "VU", label: "Vanuatu" },
|
|
49870
|
+
{ id: "VE", label: "Venezuela, Bolivarian Republic of" },
|
|
49871
|
+
{ id: "VN", label: "Viet Nam" },
|
|
49872
|
+
{ id: "VG", label: "Virgin Islands, British" },
|
|
49873
|
+
{ id: "VI", label: "Virgin Islands, U.S." },
|
|
49874
|
+
{ id: "WF", label: "Wallis and Futuna" },
|
|
49875
|
+
{ id: "EH", label: "Western Sahara" },
|
|
49876
|
+
{ id: "YE", label: "Yemen" },
|
|
49877
|
+
{ id: "ZM", label: "Zambia" },
|
|
49878
|
+
{ id: "ZW", label: "Zimbabwe" }
|
|
49879
|
+
];
|
|
49880
|
+
const GetVenueListingModule = async ({
|
|
49881
|
+
venueId,
|
|
49882
|
+
accessToken
|
|
49883
|
+
}) => {
|
|
49884
|
+
const data2 = await instance$1.get(`listing/venue/${venueId}/module`, {
|
|
49885
|
+
headers: {
|
|
49886
|
+
Authorization: `Bearer ${accessToken}`
|
|
49887
|
+
}
|
|
49888
|
+
});
|
|
49889
|
+
return formatData$g(data2);
|
|
49890
|
+
};
|
|
49891
|
+
const formatData$g = (values = {}) => {
|
|
49892
|
+
const { country, ...rest } = values;
|
|
49893
|
+
const _country = countries$1 == null ? void 0 : countries$1.find(({ id: id2 }) => id2 === country);
|
|
49894
|
+
return {
|
|
49895
|
+
...rest,
|
|
49896
|
+
country: {
|
|
49897
|
+
id: _country == null ? void 0 : _country.id,
|
|
49898
|
+
name: _country == null ? void 0 : _country.label
|
|
49899
|
+
}
|
|
49900
|
+
};
|
|
49901
|
+
};
|
|
49902
|
+
const Header$2 = ({ onChangeFilter, filters: filters2, multiVenue, venueId }) => {
|
|
49613
49903
|
const { t: t2 } = useTranslation();
|
|
49904
|
+
const { data: data2, isLoading, reload } = useFetch(GetVenueListingModule, {
|
|
49905
|
+
cacheId: `module-${venueId}`,
|
|
49906
|
+
venueId
|
|
49907
|
+
});
|
|
49614
49908
|
const handleChangeFilter = (id2) => (value2) => {
|
|
49615
49909
|
onChangeFilter({
|
|
49616
49910
|
...filters2,
|
|
@@ -49648,8 +49942,14 @@ const Header$2 = ({ onChangeFilter, filters: filters2, multiVenue }) => {
|
|
|
49648
49942
|
lg: 4
|
|
49649
49943
|
}, /* @__PURE__ */ React__default.createElement(NewSelect, {
|
|
49650
49944
|
label: t2("PLATFORM"),
|
|
49651
|
-
options:
|
|
49652
|
-
|
|
49945
|
+
options: data2 && data2.data && data2.data.length ? [...[{ id: "", label: t2("ALL") }], ...data2.data.map((platform2) => {
|
|
49946
|
+
var _a2, _b, _c, _d;
|
|
49947
|
+
return { id: (_b = (_a2 = platform2 == null ? void 0 : platform2.module) == null ? void 0 : _a2.id) != null ? _b : "", label: (_d = (_c = platform2 == null ? void 0 : platform2.module) == null ? void 0 : _c.name) != null ? _d : "" };
|
|
49948
|
+
})] : platforms,
|
|
49949
|
+
defaultValue: data2 && data2.data && data2.data.length ? [...[{ id: "", label: t2("ALL") }], ...data2.data.map((platform2) => {
|
|
49950
|
+
var _a2, _b, _c, _d;
|
|
49951
|
+
return { id: (_b = (_a2 = platform2 == null ? void 0 : platform2.module) == null ? void 0 : _a2.id) != null ? _b : "", label: (_d = (_c = platform2 == null ? void 0 : platform2.module) == null ? void 0 : _c.name) != null ? _d : "" };
|
|
49952
|
+
})][0] : platforms[0],
|
|
49653
49953
|
onChange: handleChangeFilter("platform"),
|
|
49654
49954
|
getOptionValue: (item2) => item2.id
|
|
49655
49955
|
})), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
@@ -49735,7 +50035,8 @@ const ReviewsPage = ({
|
|
|
49735
50035
|
header: /* @__PURE__ */ React__default.createElement(Header$2, {
|
|
49736
50036
|
onChangeFilter: setFilters,
|
|
49737
50037
|
filters: filter,
|
|
49738
|
-
multiVenue
|
|
50038
|
+
multiVenue,
|
|
50039
|
+
venueId
|
|
49739
50040
|
})
|
|
49740
50041
|
}, /* @__PURE__ */ React__default.createElement(ContextTemplate.Provider, {
|
|
49741
50042
|
value: [context, setContext]
|
|
@@ -50595,257 +50896,6 @@ const TablePagination = ({
|
|
|
50595
50896
|
onClick: changePage("end")
|
|
50596
50897
|
})));
|
|
50597
50898
|
};
|
|
50598
|
-
var countries$1 = [
|
|
50599
|
-
{ id: "AF", label: "Afghanistan" },
|
|
50600
|
-
{ id: "AX", label: "\xC5land Islands" },
|
|
50601
|
-
{ id: "AL", label: "Albania" },
|
|
50602
|
-
{ id: "DZ", label: "Algeria" },
|
|
50603
|
-
{ id: "AS", label: "American Samoa" },
|
|
50604
|
-
{ id: "AD", label: "Andorra" },
|
|
50605
|
-
{ id: "AO", label: "Angola" },
|
|
50606
|
-
{ id: "AI", label: "Anguilla" },
|
|
50607
|
-
{ id: "AQ", label: "Antarctica" },
|
|
50608
|
-
{ id: "AG", label: "Antigua and Barbuda" },
|
|
50609
|
-
{ id: "AR", label: "Argentina" },
|
|
50610
|
-
{ id: "AM", label: "Armenia" },
|
|
50611
|
-
{ id: "AW", label: "Aruba" },
|
|
50612
|
-
{ id: "AU", label: "Australia" },
|
|
50613
|
-
{ id: "AT", label: "Austria" },
|
|
50614
|
-
{ id: "AZ", label: "Azerbaijan" },
|
|
50615
|
-
{ id: "BS", label: "Bahamas" },
|
|
50616
|
-
{ id: "BH", label: "Bahrain" },
|
|
50617
|
-
{ id: "BD", label: "Bangladesh" },
|
|
50618
|
-
{ id: "BB", label: "Barbados" },
|
|
50619
|
-
{ id: "BY", label: "Belarus" },
|
|
50620
|
-
{ id: "BE", label: "Belgium" },
|
|
50621
|
-
{ id: "BZ", label: "Belize" },
|
|
50622
|
-
{ id: "BJ", label: "Benin" },
|
|
50623
|
-
{ id: "BM", label: "Bermuda" },
|
|
50624
|
-
{ id: "BT", label: "Bhutan" },
|
|
50625
|
-
{ id: "BO", label: "Bolivia, Plurinational State of" },
|
|
50626
|
-
{ id: "BQ", label: "Bonaire, Sint Eustatius and Saba" },
|
|
50627
|
-
{ id: "BA", label: "Bosnia and Herzegovina" },
|
|
50628
|
-
{ id: "BW", label: "Botswana" },
|
|
50629
|
-
{ id: "BV", label: "Bouvet Island" },
|
|
50630
|
-
{ id: "BR", label: "Brazil" },
|
|
50631
|
-
{ id: "IO", label: "British Indian Ocean Territory" },
|
|
50632
|
-
{ id: "BN", label: "Brunei Darussalam" },
|
|
50633
|
-
{ id: "BG", label: "Bulgaria" },
|
|
50634
|
-
{ id: "BF", label: "Burkina Faso" },
|
|
50635
|
-
{ id: "BI", label: "Burundi" },
|
|
50636
|
-
{ id: "KH", label: "Cambodia" },
|
|
50637
|
-
{ id: "CM", label: "Cameroon" },
|
|
50638
|
-
{ id: "CA", label: "Canada" },
|
|
50639
|
-
{ id: "CV", label: "Cape Verde" },
|
|
50640
|
-
{ id: "KY", label: "Cayman Islands" },
|
|
50641
|
-
{ id: "CF", label: "Central African Republic" },
|
|
50642
|
-
{ id: "TD", label: "Chad" },
|
|
50643
|
-
{ id: "CL", label: "Chile" },
|
|
50644
|
-
{ id: "CN", label: "China" },
|
|
50645
|
-
{ id: "CX", label: "Christmas Island" },
|
|
50646
|
-
{ id: "CC", label: "Cocos (Keeling) Islands" },
|
|
50647
|
-
{ id: "CO", label: "Colombia" },
|
|
50648
|
-
{ id: "KM", label: "Comoros" },
|
|
50649
|
-
{ id: "CG", label: "Congo" },
|
|
50650
|
-
{ id: "CD", label: "Congo, the Democratic Republic of the" },
|
|
50651
|
-
{ id: "CK", label: "Cook Islands" },
|
|
50652
|
-
{ id: "CR", label: "Costa Rica" },
|
|
50653
|
-
{ id: "CI", label: "C\xF4te d'Ivoire" },
|
|
50654
|
-
{ id: "HR", label: "Croatia" },
|
|
50655
|
-
{ id: "CU", label: "Cuba" },
|
|
50656
|
-
{ id: "CW", label: "Cura\xE7ao" },
|
|
50657
|
-
{ id: "CY", label: "Cyprus" },
|
|
50658
|
-
{ id: "CZ", label: "Czech Republic" },
|
|
50659
|
-
{ id: "DK", label: "Denmark" },
|
|
50660
|
-
{ id: "DJ", label: "Djibouti" },
|
|
50661
|
-
{ id: "DM", label: "Dominica" },
|
|
50662
|
-
{ id: "DO", label: "Dominican Republic" },
|
|
50663
|
-
{ id: "EC", label: "Ecuador" },
|
|
50664
|
-
{ id: "EG", label: "Egypt" },
|
|
50665
|
-
{ id: "SV", label: "El Salvador" },
|
|
50666
|
-
{ id: "GQ", label: "Equatorial Guinea" },
|
|
50667
|
-
{ id: "ER", label: "Eritrea" },
|
|
50668
|
-
{ id: "EE", label: "Estonia" },
|
|
50669
|
-
{ id: "ET", label: "Ethiopia" },
|
|
50670
|
-
{ id: "FK", label: "Falkland Islands (Malvinas)" },
|
|
50671
|
-
{ id: "FO", label: "Faroe Islands" },
|
|
50672
|
-
{ id: "FJ", label: "Fiji" },
|
|
50673
|
-
{ id: "FI", label: "Finland" },
|
|
50674
|
-
{ id: "FR", label: "France" },
|
|
50675
|
-
{ id: "GF", label: "French Guiana" },
|
|
50676
|
-
{ id: "PF", label: "French Polynesia" },
|
|
50677
|
-
{ id: "TF", label: "French Southern Territories" },
|
|
50678
|
-
{ id: "GA", label: "Gabon" },
|
|
50679
|
-
{ id: "GM", label: "Gambia" },
|
|
50680
|
-
{ id: "GE", label: "Georgia" },
|
|
50681
|
-
{ id: "DE", label: "Germany" },
|
|
50682
|
-
{ id: "GH", label: "Ghana" },
|
|
50683
|
-
{ id: "GI", label: "Gibraltar" },
|
|
50684
|
-
{ id: "GR", label: "Greece" },
|
|
50685
|
-
{ id: "GL", label: "Greenland" },
|
|
50686
|
-
{ id: "GD", label: "Grenada" },
|
|
50687
|
-
{ id: "GP", label: "Guadeloupe" },
|
|
50688
|
-
{ id: "GU", label: "Guam" },
|
|
50689
|
-
{ id: "GT", label: "Guatemala" },
|
|
50690
|
-
{ id: "GG", label: "Guernsey" },
|
|
50691
|
-
{ id: "GN", label: "Guinea" },
|
|
50692
|
-
{ id: "GW", label: "Guinea-Bissau" },
|
|
50693
|
-
{ id: "GY", label: "Guyana" },
|
|
50694
|
-
{ id: "HT", label: "Haiti" },
|
|
50695
|
-
{ id: "HM", label: "Heard Island and McDonald Islands" },
|
|
50696
|
-
{ id: "VA", label: "Holy See (Vatican City State)" },
|
|
50697
|
-
{ id: "HN", label: "Honduras" },
|
|
50698
|
-
{ id: "HK", label: "Hong Kong" },
|
|
50699
|
-
{ id: "HU", label: "Hungary" },
|
|
50700
|
-
{ id: "IS", label: "Iceland" },
|
|
50701
|
-
{ id: "IN", label: "India" },
|
|
50702
|
-
{ id: "ID", label: "Indonesia" },
|
|
50703
|
-
{ id: "IR", label: "Iran, Islamic Republic of" },
|
|
50704
|
-
{ id: "IQ", label: "Iraq" },
|
|
50705
|
-
{ id: "IE", label: "Ireland" },
|
|
50706
|
-
{ id: "IM", label: "Isle of Man" },
|
|
50707
|
-
{ id: "IL", label: "Israel" },
|
|
50708
|
-
{ id: "IT", label: "Italy" },
|
|
50709
|
-
{ id: "JM", label: "Jamaica" },
|
|
50710
|
-
{ id: "JP", label: "Japan" },
|
|
50711
|
-
{ id: "JE", label: "Jersey" },
|
|
50712
|
-
{ id: "JO", label: "Jordan" },
|
|
50713
|
-
{ id: "KZ", label: "Kazakhstan" },
|
|
50714
|
-
{ id: "KE", label: "Kenya" },
|
|
50715
|
-
{ id: "KI", label: "Kiribati" },
|
|
50716
|
-
{ id: "KP", label: "Korea, Democratic People's Republic of" },
|
|
50717
|
-
{ id: "KR", label: "Korea, Republic of" },
|
|
50718
|
-
{ id: "KW", label: "Kuwait" },
|
|
50719
|
-
{ id: "KG", label: "Kyrgyzstan" },
|
|
50720
|
-
{ id: "LA", label: "Lao People's Democratic Republic" },
|
|
50721
|
-
{ id: "LV", label: "Latvia" },
|
|
50722
|
-
{ id: "LB", label: "Lebanon" },
|
|
50723
|
-
{ id: "LS", label: "Lesotho" },
|
|
50724
|
-
{ id: "LR", label: "Liberia" },
|
|
50725
|
-
{ id: "LY", label: "Libya" },
|
|
50726
|
-
{ id: "LI", label: "Liechtenstein" },
|
|
50727
|
-
{ id: "LT", label: "Lithuania" },
|
|
50728
|
-
{ id: "LU", label: "Luxembourg" },
|
|
50729
|
-
{ id: "MO", label: "Macao" },
|
|
50730
|
-
{ id: "MK", label: "Macedonia, the Former Yugoslav Republic of" },
|
|
50731
|
-
{ id: "MG", label: "Madagascar" },
|
|
50732
|
-
{ id: "MW", label: "Malawi" },
|
|
50733
|
-
{ id: "MY", label: "Malaysia" },
|
|
50734
|
-
{ id: "MV", label: "Maldives" },
|
|
50735
|
-
{ id: "ML", label: "Mali" },
|
|
50736
|
-
{ id: "MT", label: "Malta" },
|
|
50737
|
-
{ id: "MH", label: "Marshall Islands" },
|
|
50738
|
-
{ id: "MQ", label: "Martinique" },
|
|
50739
|
-
{ id: "MR", label: "Mauritania" },
|
|
50740
|
-
{ id: "MU", label: "Mauritius" },
|
|
50741
|
-
{ id: "YT", label: "Mayotte" },
|
|
50742
|
-
{ id: "MX", label: "Mexico" },
|
|
50743
|
-
{ id: "FM", label: "Micronesia, Federated States of" },
|
|
50744
|
-
{ id: "MD", label: "Moldova, Republic of" },
|
|
50745
|
-
{ id: "MC", label: "Monaco" },
|
|
50746
|
-
{ id: "MN", label: "Mongolia" },
|
|
50747
|
-
{ id: "ME", label: "Montenegro" },
|
|
50748
|
-
{ id: "MS", label: "Montserrat" },
|
|
50749
|
-
{ id: "MA", label: "Morocco" },
|
|
50750
|
-
{ id: "MZ", label: "Mozambique" },
|
|
50751
|
-
{ id: "MM", label: "Myanmar" },
|
|
50752
|
-
{ id: "NA", label: "Namibia" },
|
|
50753
|
-
{ id: "NR", label: "Nauru" },
|
|
50754
|
-
{ id: "NP", label: "Nepal" },
|
|
50755
|
-
{ id: "NL", label: "Netherlands" },
|
|
50756
|
-
{ id: "NC", label: "New Caledonia" },
|
|
50757
|
-
{ id: "NZ", label: "New Zealand" },
|
|
50758
|
-
{ id: "NI", label: "Nicaragua" },
|
|
50759
|
-
{ id: "NE", label: "Niger" },
|
|
50760
|
-
{ id: "NG", label: "Nigeria" },
|
|
50761
|
-
{ id: "NU", label: "Niue" },
|
|
50762
|
-
{ id: "NF", label: "Norfolk Island" },
|
|
50763
|
-
{ id: "MP", label: "Northern Mariana Islands" },
|
|
50764
|
-
{ id: "NO", label: "Norway" },
|
|
50765
|
-
{ id: "OM", label: "Oman" },
|
|
50766
|
-
{ id: "PK", label: "Pakistan" },
|
|
50767
|
-
{ id: "PW", label: "Palau" },
|
|
50768
|
-
{ id: "PS", label: "Palestine, State of" },
|
|
50769
|
-
{ id: "PA", label: "Panama" },
|
|
50770
|
-
{ id: "PG", label: "Papua New Guinea" },
|
|
50771
|
-
{ id: "PY", label: "Paraguay" },
|
|
50772
|
-
{ id: "PE", label: "Peru" },
|
|
50773
|
-
{ id: "PH", label: "Philippines" },
|
|
50774
|
-
{ id: "PN", label: "Pitcairn" },
|
|
50775
|
-
{ id: "PL", label: "Poland" },
|
|
50776
|
-
{ id: "PT", label: "Portugal" },
|
|
50777
|
-
{ id: "PR", label: "Puerto Rico" },
|
|
50778
|
-
{ id: "QA", label: "Qatar" },
|
|
50779
|
-
{ id: "RE", label: "R\xE9union" },
|
|
50780
|
-
{ id: "RO", label: "Romania" },
|
|
50781
|
-
{ id: "RU", label: "Russian Federation" },
|
|
50782
|
-
{ id: "RW", label: "Rwanda" },
|
|
50783
|
-
{ id: "BL", label: "Saint Barth\xE9lemy" },
|
|
50784
|
-
{ id: "SH", label: "Saint Helena, Ascension and Tristan da Cunha" },
|
|
50785
|
-
{ id: "KN", label: "Saint Kitts and Nevis" },
|
|
50786
|
-
{ id: "LC", label: "Saint Lucia" },
|
|
50787
|
-
{ id: "MF", label: "Saint Martin (French part)" },
|
|
50788
|
-
{ id: "PM", label: "Saint Pierre and Miquelon" },
|
|
50789
|
-
{ id: "VC", label: "Saint Vincent and the Grenadines" },
|
|
50790
|
-
{ id: "WS", label: "Samoa" },
|
|
50791
|
-
{ id: "SM", label: "San Marino" },
|
|
50792
|
-
{ id: "ST", label: "Sao Tome and Principe" },
|
|
50793
|
-
{ id: "SA", label: "Saudi Arabia" },
|
|
50794
|
-
{ id: "SN", label: "Senegal" },
|
|
50795
|
-
{ id: "RS", label: "Serbia" },
|
|
50796
|
-
{ id: "SC", label: "Seychelles" },
|
|
50797
|
-
{ id: "SL", label: "Sierra Leone" },
|
|
50798
|
-
{ id: "SG", label: "Singapore" },
|
|
50799
|
-
{ id: "SX", label: "Sint Maarten (Dutch part)" },
|
|
50800
|
-
{ id: "SK", label: "Slovakia" },
|
|
50801
|
-
{ id: "SI", label: "Slovenia" },
|
|
50802
|
-
{ id: "SB", label: "Solomon Islands" },
|
|
50803
|
-
{ id: "SO", label: "Somalia" },
|
|
50804
|
-
{ id: "ZA", label: "South Africa" },
|
|
50805
|
-
{ id: "GS", label: "South Georgia and the South Sandwich Islands" },
|
|
50806
|
-
{ id: "SS", label: "South Sudan" },
|
|
50807
|
-
{ id: "ES", label: "Spain" },
|
|
50808
|
-
{ id: "LK", label: "Sri Lanka" },
|
|
50809
|
-
{ id: "SD", label: "Sudan" },
|
|
50810
|
-
{ id: "SR", label: "Surilabel" },
|
|
50811
|
-
{ id: "SJ", label: "Svalbard and Jan Mayen" },
|
|
50812
|
-
{ id: "SZ", label: "Swaziland" },
|
|
50813
|
-
{ id: "SE", label: "Sweden" },
|
|
50814
|
-
{ id: "CH", label: "Switzerland" },
|
|
50815
|
-
{ id: "SY", label: "Syrian Arab Republic" },
|
|
50816
|
-
{ id: "TW", label: "Taiwan, Province of China" },
|
|
50817
|
-
{ id: "TJ", label: "Tajikistan" },
|
|
50818
|
-
{ id: "TZ", label: "Tanzania, United Republic of" },
|
|
50819
|
-
{ id: "TH", label: "Thailand" },
|
|
50820
|
-
{ id: "TL", label: "Timor-Leste" },
|
|
50821
|
-
{ id: "TG", label: "Togo" },
|
|
50822
|
-
{ id: "TK", label: "Tokelau" },
|
|
50823
|
-
{ id: "TO", label: "Tonga" },
|
|
50824
|
-
{ id: "TT", label: "Trinidad and Tobago" },
|
|
50825
|
-
{ id: "TN", label: "Tunisia" },
|
|
50826
|
-
{ id: "TR", label: "Turkey" },
|
|
50827
|
-
{ id: "TM", label: "Turkmenistan" },
|
|
50828
|
-
{ id: "TC", label: "Turks and Caicos Islands" },
|
|
50829
|
-
{ id: "TV", label: "Tuvalu" },
|
|
50830
|
-
{ id: "UG", label: "Uganda" },
|
|
50831
|
-
{ id: "UA", label: "Ukraine" },
|
|
50832
|
-
{ id: "AE", label: "United Arab Emirates" },
|
|
50833
|
-
{ id: "GB", label: "United Kingdom" },
|
|
50834
|
-
{ id: "US", label: "United States" },
|
|
50835
|
-
{ id: "UM", label: "United States Minor Outlying Islands" },
|
|
50836
|
-
{ id: "UY", label: "Uruguay" },
|
|
50837
|
-
{ id: "UZ", label: "Uzbekistan" },
|
|
50838
|
-
{ id: "VU", label: "Vanuatu" },
|
|
50839
|
-
{ id: "VE", label: "Venezuela, Bolivarian Republic of" },
|
|
50840
|
-
{ id: "VN", label: "Viet Nam" },
|
|
50841
|
-
{ id: "VG", label: "Virgin Islands, British" },
|
|
50842
|
-
{ id: "VI", label: "Virgin Islands, U.S." },
|
|
50843
|
-
{ id: "WF", label: "Wallis and Futuna" },
|
|
50844
|
-
{ id: "EH", label: "Western Sahara" },
|
|
50845
|
-
{ id: "YE", label: "Yemen" },
|
|
50846
|
-
{ id: "ZM", label: "Zambia" },
|
|
50847
|
-
{ id: "ZW", label: "Zimbabwe" }
|
|
50848
|
-
];
|
|
50849
50899
|
const Country = ({ id: id2 }) => {
|
|
50850
50900
|
const country = countries$1.find((country2) => country2.id === id2);
|
|
50851
50901
|
return /* @__PURE__ */ React__default.createElement("span", null, country == null ? void 0 : country.label);
|
|
@@ -52227,10 +52277,10 @@ const GetUserNotificationSettings = async ({}) => {
|
|
|
52227
52277
|
const UpdateUserNotificationSettings = async ({
|
|
52228
52278
|
data: data2
|
|
52229
52279
|
}) => {
|
|
52230
|
-
await instance$1.put(`listing/notification-settings`, formatData$
|
|
52280
|
+
await instance$1.put(`listing/notification-settings`, formatData$f(data2));
|
|
52231
52281
|
return { data: data2 };
|
|
52232
52282
|
};
|
|
52233
|
-
const formatData$
|
|
52283
|
+
const formatData$f = (data2) => {
|
|
52234
52284
|
return {
|
|
52235
52285
|
dailyReport: data2.dailyReport ? "true" : "false",
|
|
52236
52286
|
weeklyReport: data2.weeklyReport ? "true" : "false",
|
|
@@ -52573,21 +52623,21 @@ const UpsertReplyTemplates = async ({
|
|
|
52573
52623
|
accessToken
|
|
52574
52624
|
}) => {
|
|
52575
52625
|
if (data2.id) {
|
|
52576
|
-
await instance$1.put(`/listing/review-reply-template/${data2.id}`, formatData$
|
|
52626
|
+
await instance$1.put(`/listing/review-reply-template/${data2.id}`, formatData$e(data2), {
|
|
52577
52627
|
headers: {
|
|
52578
52628
|
Authorization: `Bearer ${accessToken}`
|
|
52579
52629
|
}
|
|
52580
52630
|
});
|
|
52581
52631
|
return { data: data2 };
|
|
52582
52632
|
}
|
|
52583
|
-
await instance$1.post(`/listing/review-reply-template`, formatData$
|
|
52633
|
+
await instance$1.post(`/listing/review-reply-template`, formatData$e(data2), {
|
|
52584
52634
|
headers: {
|
|
52585
52635
|
Authorization: `Bearer ${accessToken}`
|
|
52586
52636
|
}
|
|
52587
52637
|
});
|
|
52588
52638
|
return { data: data2 };
|
|
52589
52639
|
};
|
|
52590
|
-
const formatData$
|
|
52640
|
+
const formatData$e = (data2) => {
|
|
52591
52641
|
return {
|
|
52592
52642
|
locale: data2.language.value === "gb" ? "en" : data2.language.value,
|
|
52593
52643
|
comment: data2.reply,
|
|
@@ -53384,7 +53434,7 @@ const groupBy = (arr = [], by) => arr.reduce((acc, item2) => ({
|
|
|
53384
53434
|
...acc,
|
|
53385
53435
|
[item2[by]]: acc[item2[by]] ? [...acc[item2[by]], item2] : [item2]
|
|
53386
53436
|
}), {});
|
|
53387
|
-
const formatData$
|
|
53437
|
+
const formatData$d = (dataToFormat) => {
|
|
53388
53438
|
const compare2 = groupByDate$1(dataToFormat.compare);
|
|
53389
53439
|
const inPeriod = groupByDate$1(dataToFormat.data);
|
|
53390
53440
|
return {
|
|
@@ -76954,7 +77004,7 @@ const formatDateChart = (date4, mode) => {
|
|
|
76954
77004
|
return formatDate(date4, "DD/MM/YYYY");
|
|
76955
77005
|
}
|
|
76956
77006
|
};
|
|
76957
|
-
const formatData$
|
|
77007
|
+
const formatData$c = (data2, mode) => {
|
|
76958
77008
|
const formatedData = data2.reduce((acc, { date: _date, ...item2 }) => {
|
|
76959
77009
|
var _a2, _b, _c;
|
|
76960
77010
|
const date4 = formatDateChart(_date, mode);
|
|
@@ -77022,7 +77072,7 @@ const ReviewsChart = ({
|
|
|
77022
77072
|
const handleChanDisplayBy = (ev) => {
|
|
77023
77073
|
setDisplayBy(ev.target.value);
|
|
77024
77074
|
};
|
|
77025
|
-
const chartData = formatData$
|
|
77075
|
+
const chartData = formatData$c(data2, displayBy);
|
|
77026
77076
|
const options2 = limitDisplaByOptions(days2);
|
|
77027
77077
|
return /* @__PURE__ */ React__default.createElement(Card, {
|
|
77028
77078
|
header: { title: t2("REVIEWSEVOLUTIION") }
|
|
@@ -77331,7 +77381,7 @@ const Analytics$3 = ({ venueListingId, venueId }) => {
|
|
|
77331
77381
|
const { data: data2, isLoading, error: error3 } = useFetch(GetReviewAnalytics, {
|
|
77332
77382
|
cacheId: `reviews-analytics-${venueListingId}`,
|
|
77333
77383
|
params: filter
|
|
77334
|
-
}, { formatData: formatData$
|
|
77384
|
+
}, { formatData: formatData$d });
|
|
77335
77385
|
const { data: venues } = useFetch(GetVenueListingsOptions, {
|
|
77336
77386
|
cacheId: `venueListing-options`
|
|
77337
77387
|
});
|
|
@@ -77587,7 +77637,7 @@ const formatStats$1 = (stat) => {
|
|
|
77587
77637
|
});
|
|
77588
77638
|
return sum;
|
|
77589
77639
|
};
|
|
77590
|
-
const formatData$
|
|
77640
|
+
const formatData$b = (dataToFormat) => {
|
|
77591
77641
|
return {
|
|
77592
77642
|
totals: {
|
|
77593
77643
|
queries: {
|
|
@@ -77687,7 +77737,7 @@ const Analytics$2 = ({ venueListingId, venueId }) => {
|
|
|
77687
77737
|
if (data2 && (data2 == null ? void 0 : data2.BUSINESS_IMPRESSIONS_DESKTOP_SEARCH.error)) {
|
|
77688
77738
|
setNotAuthorized(true);
|
|
77689
77739
|
} else {
|
|
77690
|
-
setFormattedStats(formatData$
|
|
77740
|
+
setFormattedStats(formatData$b(data2));
|
|
77691
77741
|
}
|
|
77692
77742
|
}
|
|
77693
77743
|
}, [data2]);
|
|
@@ -77961,7 +78011,7 @@ const Analytics$1 = ({ venueListingId, venueId }) => {
|
|
|
77961
78011
|
]
|
|
77962
78012
|
})))))));
|
|
77963
78013
|
};
|
|
77964
|
-
const formatData$
|
|
78014
|
+
const formatData$a = (dataToFormat) => {
|
|
77965
78015
|
const compare2 = groupByDate(dataToFormat.compare);
|
|
77966
78016
|
const inPeriod = groupByDate(dataToFormat.data);
|
|
77967
78017
|
return {
|
|
@@ -78100,7 +78150,7 @@ const Analytics = ({ venueListingId, venueId }) => {
|
|
|
78100
78150
|
const { data: data2, isLoading, error: error3 } = useFetch(GetReviewAnalytics, {
|
|
78101
78151
|
cacheId: `reviews-analytics-${venueListingId}`,
|
|
78102
78152
|
params: filter
|
|
78103
|
-
}, { formatData: formatData$
|
|
78153
|
+
}, { formatData: formatData$a });
|
|
78104
78154
|
const comparedPeriod = formatComparedPeriod(filter.compare);
|
|
78105
78155
|
useState({
|
|
78106
78156
|
findBy: "venueId",
|
|
@@ -79191,9 +79241,9 @@ const GetVenueListing = async ({
|
|
|
79191
79241
|
}
|
|
79192
79242
|
});
|
|
79193
79243
|
sessionStorage.setItem("sdk_venue_vertical", data2 == null ? void 0 : data2.vertical);
|
|
79194
|
-
return formatData$
|
|
79244
|
+
return formatData$9(data2);
|
|
79195
79245
|
};
|
|
79196
|
-
const formatData$
|
|
79246
|
+
const formatData$9 = async (values = {}) => {
|
|
79197
79247
|
var _a2;
|
|
79198
79248
|
const {
|
|
79199
79249
|
country,
|
|
@@ -84409,28 +84459,6 @@ const BingButton$1 = ({
|
|
|
84409
84459
|
className: styles$U.connectedText
|
|
84410
84460
|
}, t2("CONNECT")));
|
|
84411
84461
|
};
|
|
84412
|
-
const GetVenueListingModule = async ({
|
|
84413
|
-
venueId,
|
|
84414
|
-
accessToken
|
|
84415
|
-
}) => {
|
|
84416
|
-
const data2 = await instance$1.get(`listing/venue/${venueId}/module`, {
|
|
84417
|
-
headers: {
|
|
84418
|
-
Authorization: `Bearer ${accessToken}`
|
|
84419
|
-
}
|
|
84420
|
-
});
|
|
84421
|
-
return formatData$9(data2);
|
|
84422
|
-
};
|
|
84423
|
-
const formatData$9 = (values = {}) => {
|
|
84424
|
-
const { country, ...rest } = values;
|
|
84425
|
-
const _country = countries$1 == null ? void 0 : countries$1.find(({ id: id2 }) => id2 === country);
|
|
84426
|
-
return {
|
|
84427
|
-
...rest,
|
|
84428
|
-
country: {
|
|
84429
|
-
id: _country == null ? void 0 : _country.id,
|
|
84430
|
-
name: _country == null ? void 0 : _country.label
|
|
84431
|
-
}
|
|
84432
|
-
};
|
|
84433
|
-
};
|
|
84434
84462
|
const useConnect = ({ venueId }) => {
|
|
84435
84463
|
var _a2;
|
|
84436
84464
|
const { data: data2, isLoading, reload } = useFetch(GetVenueListingModule, {
|