mozrest-sdk-react-dev 0.1.63 → 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 +408 -299
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -6305,6 +6305,12 @@ const CREATEDAT = "Created at";
|
|
|
6305
6305
|
const CHANNEL = "Channel";
|
|
6306
6306
|
const NOTABLESAVAILABLE = "No tables available";
|
|
6307
6307
|
const NOTES = "Notes";
|
|
6308
|
+
const CANCELRESERVATION = "Cancel reservation";
|
|
6309
|
+
const AREYOUSURECANCELRESERVATION = "Are you sure you want to cancel this reservation?";
|
|
6310
|
+
const CANCELREASON = "Cancel reason";
|
|
6311
|
+
const ATMOSPHERE = "Atmosphere";
|
|
6312
|
+
const COOKING = "Cooking";
|
|
6313
|
+
const STANDING = "Standing";
|
|
6308
6314
|
var en = {
|
|
6309
6315
|
errors,
|
|
6310
6316
|
SPECIALCLOSINGDATES,
|
|
@@ -6571,7 +6577,13 @@ var en = {
|
|
|
6571
6577
|
CREATEDAT,
|
|
6572
6578
|
CHANNEL,
|
|
6573
6579
|
NOTABLESAVAILABLE,
|
|
6574
|
-
NOTES
|
|
6580
|
+
NOTES,
|
|
6581
|
+
CANCELRESERVATION,
|
|
6582
|
+
AREYOUSURECANCELRESERVATION,
|
|
6583
|
+
CANCELREASON,
|
|
6584
|
+
ATMOSPHERE,
|
|
6585
|
+
COOKING,
|
|
6586
|
+
STANDING
|
|
6575
6587
|
};
|
|
6576
6588
|
instance.use(initReactI18next).init({
|
|
6577
6589
|
resources: {
|
|
@@ -43561,10 +43573,12 @@ const DetailMobile = ({
|
|
|
43561
43573
|
createdAt,
|
|
43562
43574
|
locationName,
|
|
43563
43575
|
locale: locale2,
|
|
43576
|
+
meta,
|
|
43564
43577
|
onReload,
|
|
43565
43578
|
openForm,
|
|
43566
43579
|
onClick
|
|
43567
43580
|
}) => {
|
|
43581
|
+
const { t: t2 } = useTranslation();
|
|
43568
43582
|
const [showTemplates, setShowTemplates] = useState(false);
|
|
43569
43583
|
const [showTranslation, setShowTranslation] = useState(false);
|
|
43570
43584
|
const openModal = () => setShowTemplates(true);
|
|
@@ -43594,7 +43608,9 @@ const DetailMobile = ({
|
|
|
43594
43608
|
locale: locale2
|
|
43595
43609
|
})), /* @__PURE__ */ React__default.createElement(StartScore, {
|
|
43596
43610
|
score: rating
|
|
43597
|
-
}), /* @__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, {
|
|
43598
43614
|
showTranslation,
|
|
43599
43615
|
setShowTranslation,
|
|
43600
43616
|
locale: locale2
|
|
@@ -43632,16 +43648,20 @@ const DetailDesktop = ({
|
|
|
43632
43648
|
reviewer: reviewer2,
|
|
43633
43649
|
comment: comment2,
|
|
43634
43650
|
locale: locale2,
|
|
43651
|
+
meta,
|
|
43635
43652
|
locationName,
|
|
43636
43653
|
onReload,
|
|
43637
43654
|
openForm
|
|
43638
43655
|
}) => {
|
|
43656
|
+
const { t: t2 } = useTranslation();
|
|
43639
43657
|
const [showTranslation, setShowTranslation] = useState(false);
|
|
43640
43658
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
43641
43659
|
className: classNames$2(styles$1u.detail, {
|
|
43642
43660
|
[styles$1u.hide]: !openForm
|
|
43643
43661
|
})
|
|
43644
|
-
},
|
|
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, {
|
|
43645
43665
|
showTranslation,
|
|
43646
43666
|
setShowTranslation,
|
|
43647
43667
|
locale: locale2
|
|
@@ -43695,6 +43715,7 @@ const Review = ({
|
|
|
43695
43715
|
createdAt,
|
|
43696
43716
|
locationName,
|
|
43697
43717
|
locale: locale2,
|
|
43718
|
+
meta,
|
|
43698
43719
|
onReload,
|
|
43699
43720
|
openForm,
|
|
43700
43721
|
onClick,
|
|
@@ -43749,6 +43770,7 @@ const Review = ({
|
|
|
43749
43770
|
createdAt,
|
|
43750
43771
|
locationName,
|
|
43751
43772
|
locale: locale2,
|
|
43773
|
+
meta,
|
|
43752
43774
|
onReload,
|
|
43753
43775
|
openForm,
|
|
43754
43776
|
onClick
|
|
@@ -43762,6 +43784,7 @@ const Review = ({
|
|
|
43762
43784
|
createdAt,
|
|
43763
43785
|
locationName,
|
|
43764
43786
|
locale: locale2,
|
|
43787
|
+
meta,
|
|
43765
43788
|
onReload,
|
|
43766
43789
|
openForm,
|
|
43767
43790
|
onClick
|
|
@@ -49603,8 +49626,285 @@ const DatePicker = ({
|
|
|
49603
49626
|
allowClear: false
|
|
49604
49627
|
}));
|
|
49605
49628
|
};
|
|
49606
|
-
|
|
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 }) => {
|
|
49607
49903
|
const { t: t2 } = useTranslation();
|
|
49904
|
+
const { data: data2, isLoading, reload } = useFetch(GetVenueListingModule, {
|
|
49905
|
+
cacheId: `module-${venueId}`,
|
|
49906
|
+
venueId
|
|
49907
|
+
});
|
|
49608
49908
|
const handleChangeFilter = (id2) => (value2) => {
|
|
49609
49909
|
onChangeFilter({
|
|
49610
49910
|
...filters2,
|
|
@@ -49642,8 +49942,14 @@ const Header$2 = ({ onChangeFilter, filters: filters2, multiVenue }) => {
|
|
|
49642
49942
|
lg: 4
|
|
49643
49943
|
}, /* @__PURE__ */ React__default.createElement(NewSelect, {
|
|
49644
49944
|
label: t2("PLATFORM"),
|
|
49645
|
-
options:
|
|
49646
|
-
|
|
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],
|
|
49647
49953
|
onChange: handleChangeFilter("platform"),
|
|
49648
49954
|
getOptionValue: (item2) => item2.id
|
|
49649
49955
|
})), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
@@ -49729,7 +50035,8 @@ const ReviewsPage = ({
|
|
|
49729
50035
|
header: /* @__PURE__ */ React__default.createElement(Header$2, {
|
|
49730
50036
|
onChangeFilter: setFilters,
|
|
49731
50037
|
filters: filter,
|
|
49732
|
-
multiVenue
|
|
50038
|
+
multiVenue,
|
|
50039
|
+
venueId
|
|
49733
50040
|
})
|
|
49734
50041
|
}, /* @__PURE__ */ React__default.createElement(ContextTemplate.Provider, {
|
|
49735
50042
|
value: [context, setContext]
|
|
@@ -50589,257 +50896,6 @@ const TablePagination = ({
|
|
|
50589
50896
|
onClick: changePage("end")
|
|
50590
50897
|
})));
|
|
50591
50898
|
};
|
|
50592
|
-
var countries$1 = [
|
|
50593
|
-
{ id: "AF", label: "Afghanistan" },
|
|
50594
|
-
{ id: "AX", label: "\xC5land Islands" },
|
|
50595
|
-
{ id: "AL", label: "Albania" },
|
|
50596
|
-
{ id: "DZ", label: "Algeria" },
|
|
50597
|
-
{ id: "AS", label: "American Samoa" },
|
|
50598
|
-
{ id: "AD", label: "Andorra" },
|
|
50599
|
-
{ id: "AO", label: "Angola" },
|
|
50600
|
-
{ id: "AI", label: "Anguilla" },
|
|
50601
|
-
{ id: "AQ", label: "Antarctica" },
|
|
50602
|
-
{ id: "AG", label: "Antigua and Barbuda" },
|
|
50603
|
-
{ id: "AR", label: "Argentina" },
|
|
50604
|
-
{ id: "AM", label: "Armenia" },
|
|
50605
|
-
{ id: "AW", label: "Aruba" },
|
|
50606
|
-
{ id: "AU", label: "Australia" },
|
|
50607
|
-
{ id: "AT", label: "Austria" },
|
|
50608
|
-
{ id: "AZ", label: "Azerbaijan" },
|
|
50609
|
-
{ id: "BS", label: "Bahamas" },
|
|
50610
|
-
{ id: "BH", label: "Bahrain" },
|
|
50611
|
-
{ id: "BD", label: "Bangladesh" },
|
|
50612
|
-
{ id: "BB", label: "Barbados" },
|
|
50613
|
-
{ id: "BY", label: "Belarus" },
|
|
50614
|
-
{ id: "BE", label: "Belgium" },
|
|
50615
|
-
{ id: "BZ", label: "Belize" },
|
|
50616
|
-
{ id: "BJ", label: "Benin" },
|
|
50617
|
-
{ id: "BM", label: "Bermuda" },
|
|
50618
|
-
{ id: "BT", label: "Bhutan" },
|
|
50619
|
-
{ id: "BO", label: "Bolivia, Plurinational State of" },
|
|
50620
|
-
{ id: "BQ", label: "Bonaire, Sint Eustatius and Saba" },
|
|
50621
|
-
{ id: "BA", label: "Bosnia and Herzegovina" },
|
|
50622
|
-
{ id: "BW", label: "Botswana" },
|
|
50623
|
-
{ id: "BV", label: "Bouvet Island" },
|
|
50624
|
-
{ id: "BR", label: "Brazil" },
|
|
50625
|
-
{ id: "IO", label: "British Indian Ocean Territory" },
|
|
50626
|
-
{ id: "BN", label: "Brunei Darussalam" },
|
|
50627
|
-
{ id: "BG", label: "Bulgaria" },
|
|
50628
|
-
{ id: "BF", label: "Burkina Faso" },
|
|
50629
|
-
{ id: "BI", label: "Burundi" },
|
|
50630
|
-
{ id: "KH", label: "Cambodia" },
|
|
50631
|
-
{ id: "CM", label: "Cameroon" },
|
|
50632
|
-
{ id: "CA", label: "Canada" },
|
|
50633
|
-
{ id: "CV", label: "Cape Verde" },
|
|
50634
|
-
{ id: "KY", label: "Cayman Islands" },
|
|
50635
|
-
{ id: "CF", label: "Central African Republic" },
|
|
50636
|
-
{ id: "TD", label: "Chad" },
|
|
50637
|
-
{ id: "CL", label: "Chile" },
|
|
50638
|
-
{ id: "CN", label: "China" },
|
|
50639
|
-
{ id: "CX", label: "Christmas Island" },
|
|
50640
|
-
{ id: "CC", label: "Cocos (Keeling) Islands" },
|
|
50641
|
-
{ id: "CO", label: "Colombia" },
|
|
50642
|
-
{ id: "KM", label: "Comoros" },
|
|
50643
|
-
{ id: "CG", label: "Congo" },
|
|
50644
|
-
{ id: "CD", label: "Congo, the Democratic Republic of the" },
|
|
50645
|
-
{ id: "CK", label: "Cook Islands" },
|
|
50646
|
-
{ id: "CR", label: "Costa Rica" },
|
|
50647
|
-
{ id: "CI", label: "C\xF4te d'Ivoire" },
|
|
50648
|
-
{ id: "HR", label: "Croatia" },
|
|
50649
|
-
{ id: "CU", label: "Cuba" },
|
|
50650
|
-
{ id: "CW", label: "Cura\xE7ao" },
|
|
50651
|
-
{ id: "CY", label: "Cyprus" },
|
|
50652
|
-
{ id: "CZ", label: "Czech Republic" },
|
|
50653
|
-
{ id: "DK", label: "Denmark" },
|
|
50654
|
-
{ id: "DJ", label: "Djibouti" },
|
|
50655
|
-
{ id: "DM", label: "Dominica" },
|
|
50656
|
-
{ id: "DO", label: "Dominican Republic" },
|
|
50657
|
-
{ id: "EC", label: "Ecuador" },
|
|
50658
|
-
{ id: "EG", label: "Egypt" },
|
|
50659
|
-
{ id: "SV", label: "El Salvador" },
|
|
50660
|
-
{ id: "GQ", label: "Equatorial Guinea" },
|
|
50661
|
-
{ id: "ER", label: "Eritrea" },
|
|
50662
|
-
{ id: "EE", label: "Estonia" },
|
|
50663
|
-
{ id: "ET", label: "Ethiopia" },
|
|
50664
|
-
{ id: "FK", label: "Falkland Islands (Malvinas)" },
|
|
50665
|
-
{ id: "FO", label: "Faroe Islands" },
|
|
50666
|
-
{ id: "FJ", label: "Fiji" },
|
|
50667
|
-
{ id: "FI", label: "Finland" },
|
|
50668
|
-
{ id: "FR", label: "France" },
|
|
50669
|
-
{ id: "GF", label: "French Guiana" },
|
|
50670
|
-
{ id: "PF", label: "French Polynesia" },
|
|
50671
|
-
{ id: "TF", label: "French Southern Territories" },
|
|
50672
|
-
{ id: "GA", label: "Gabon" },
|
|
50673
|
-
{ id: "GM", label: "Gambia" },
|
|
50674
|
-
{ id: "GE", label: "Georgia" },
|
|
50675
|
-
{ id: "DE", label: "Germany" },
|
|
50676
|
-
{ id: "GH", label: "Ghana" },
|
|
50677
|
-
{ id: "GI", label: "Gibraltar" },
|
|
50678
|
-
{ id: "GR", label: "Greece" },
|
|
50679
|
-
{ id: "GL", label: "Greenland" },
|
|
50680
|
-
{ id: "GD", label: "Grenada" },
|
|
50681
|
-
{ id: "GP", label: "Guadeloupe" },
|
|
50682
|
-
{ id: "GU", label: "Guam" },
|
|
50683
|
-
{ id: "GT", label: "Guatemala" },
|
|
50684
|
-
{ id: "GG", label: "Guernsey" },
|
|
50685
|
-
{ id: "GN", label: "Guinea" },
|
|
50686
|
-
{ id: "GW", label: "Guinea-Bissau" },
|
|
50687
|
-
{ id: "GY", label: "Guyana" },
|
|
50688
|
-
{ id: "HT", label: "Haiti" },
|
|
50689
|
-
{ id: "HM", label: "Heard Island and McDonald Islands" },
|
|
50690
|
-
{ id: "VA", label: "Holy See (Vatican City State)" },
|
|
50691
|
-
{ id: "HN", label: "Honduras" },
|
|
50692
|
-
{ id: "HK", label: "Hong Kong" },
|
|
50693
|
-
{ id: "HU", label: "Hungary" },
|
|
50694
|
-
{ id: "IS", label: "Iceland" },
|
|
50695
|
-
{ id: "IN", label: "India" },
|
|
50696
|
-
{ id: "ID", label: "Indonesia" },
|
|
50697
|
-
{ id: "IR", label: "Iran, Islamic Republic of" },
|
|
50698
|
-
{ id: "IQ", label: "Iraq" },
|
|
50699
|
-
{ id: "IE", label: "Ireland" },
|
|
50700
|
-
{ id: "IM", label: "Isle of Man" },
|
|
50701
|
-
{ id: "IL", label: "Israel" },
|
|
50702
|
-
{ id: "IT", label: "Italy" },
|
|
50703
|
-
{ id: "JM", label: "Jamaica" },
|
|
50704
|
-
{ id: "JP", label: "Japan" },
|
|
50705
|
-
{ id: "JE", label: "Jersey" },
|
|
50706
|
-
{ id: "JO", label: "Jordan" },
|
|
50707
|
-
{ id: "KZ", label: "Kazakhstan" },
|
|
50708
|
-
{ id: "KE", label: "Kenya" },
|
|
50709
|
-
{ id: "KI", label: "Kiribati" },
|
|
50710
|
-
{ id: "KP", label: "Korea, Democratic People's Republic of" },
|
|
50711
|
-
{ id: "KR", label: "Korea, Republic of" },
|
|
50712
|
-
{ id: "KW", label: "Kuwait" },
|
|
50713
|
-
{ id: "KG", label: "Kyrgyzstan" },
|
|
50714
|
-
{ id: "LA", label: "Lao People's Democratic Republic" },
|
|
50715
|
-
{ id: "LV", label: "Latvia" },
|
|
50716
|
-
{ id: "LB", label: "Lebanon" },
|
|
50717
|
-
{ id: "LS", label: "Lesotho" },
|
|
50718
|
-
{ id: "LR", label: "Liberia" },
|
|
50719
|
-
{ id: "LY", label: "Libya" },
|
|
50720
|
-
{ id: "LI", label: "Liechtenstein" },
|
|
50721
|
-
{ id: "LT", label: "Lithuania" },
|
|
50722
|
-
{ id: "LU", label: "Luxembourg" },
|
|
50723
|
-
{ id: "MO", label: "Macao" },
|
|
50724
|
-
{ id: "MK", label: "Macedonia, the Former Yugoslav Republic of" },
|
|
50725
|
-
{ id: "MG", label: "Madagascar" },
|
|
50726
|
-
{ id: "MW", label: "Malawi" },
|
|
50727
|
-
{ id: "MY", label: "Malaysia" },
|
|
50728
|
-
{ id: "MV", label: "Maldives" },
|
|
50729
|
-
{ id: "ML", label: "Mali" },
|
|
50730
|
-
{ id: "MT", label: "Malta" },
|
|
50731
|
-
{ id: "MH", label: "Marshall Islands" },
|
|
50732
|
-
{ id: "MQ", label: "Martinique" },
|
|
50733
|
-
{ id: "MR", label: "Mauritania" },
|
|
50734
|
-
{ id: "MU", label: "Mauritius" },
|
|
50735
|
-
{ id: "YT", label: "Mayotte" },
|
|
50736
|
-
{ id: "MX", label: "Mexico" },
|
|
50737
|
-
{ id: "FM", label: "Micronesia, Federated States of" },
|
|
50738
|
-
{ id: "MD", label: "Moldova, Republic of" },
|
|
50739
|
-
{ id: "MC", label: "Monaco" },
|
|
50740
|
-
{ id: "MN", label: "Mongolia" },
|
|
50741
|
-
{ id: "ME", label: "Montenegro" },
|
|
50742
|
-
{ id: "MS", label: "Montserrat" },
|
|
50743
|
-
{ id: "MA", label: "Morocco" },
|
|
50744
|
-
{ id: "MZ", label: "Mozambique" },
|
|
50745
|
-
{ id: "MM", label: "Myanmar" },
|
|
50746
|
-
{ id: "NA", label: "Namibia" },
|
|
50747
|
-
{ id: "NR", label: "Nauru" },
|
|
50748
|
-
{ id: "NP", label: "Nepal" },
|
|
50749
|
-
{ id: "NL", label: "Netherlands" },
|
|
50750
|
-
{ id: "NC", label: "New Caledonia" },
|
|
50751
|
-
{ id: "NZ", label: "New Zealand" },
|
|
50752
|
-
{ id: "NI", label: "Nicaragua" },
|
|
50753
|
-
{ id: "NE", label: "Niger" },
|
|
50754
|
-
{ id: "NG", label: "Nigeria" },
|
|
50755
|
-
{ id: "NU", label: "Niue" },
|
|
50756
|
-
{ id: "NF", label: "Norfolk Island" },
|
|
50757
|
-
{ id: "MP", label: "Northern Mariana Islands" },
|
|
50758
|
-
{ id: "NO", label: "Norway" },
|
|
50759
|
-
{ id: "OM", label: "Oman" },
|
|
50760
|
-
{ id: "PK", label: "Pakistan" },
|
|
50761
|
-
{ id: "PW", label: "Palau" },
|
|
50762
|
-
{ id: "PS", label: "Palestine, State of" },
|
|
50763
|
-
{ id: "PA", label: "Panama" },
|
|
50764
|
-
{ id: "PG", label: "Papua New Guinea" },
|
|
50765
|
-
{ id: "PY", label: "Paraguay" },
|
|
50766
|
-
{ id: "PE", label: "Peru" },
|
|
50767
|
-
{ id: "PH", label: "Philippines" },
|
|
50768
|
-
{ id: "PN", label: "Pitcairn" },
|
|
50769
|
-
{ id: "PL", label: "Poland" },
|
|
50770
|
-
{ id: "PT", label: "Portugal" },
|
|
50771
|
-
{ id: "PR", label: "Puerto Rico" },
|
|
50772
|
-
{ id: "QA", label: "Qatar" },
|
|
50773
|
-
{ id: "RE", label: "R\xE9union" },
|
|
50774
|
-
{ id: "RO", label: "Romania" },
|
|
50775
|
-
{ id: "RU", label: "Russian Federation" },
|
|
50776
|
-
{ id: "RW", label: "Rwanda" },
|
|
50777
|
-
{ id: "BL", label: "Saint Barth\xE9lemy" },
|
|
50778
|
-
{ id: "SH", label: "Saint Helena, Ascension and Tristan da Cunha" },
|
|
50779
|
-
{ id: "KN", label: "Saint Kitts and Nevis" },
|
|
50780
|
-
{ id: "LC", label: "Saint Lucia" },
|
|
50781
|
-
{ id: "MF", label: "Saint Martin (French part)" },
|
|
50782
|
-
{ id: "PM", label: "Saint Pierre and Miquelon" },
|
|
50783
|
-
{ id: "VC", label: "Saint Vincent and the Grenadines" },
|
|
50784
|
-
{ id: "WS", label: "Samoa" },
|
|
50785
|
-
{ id: "SM", label: "San Marino" },
|
|
50786
|
-
{ id: "ST", label: "Sao Tome and Principe" },
|
|
50787
|
-
{ id: "SA", label: "Saudi Arabia" },
|
|
50788
|
-
{ id: "SN", label: "Senegal" },
|
|
50789
|
-
{ id: "RS", label: "Serbia" },
|
|
50790
|
-
{ id: "SC", label: "Seychelles" },
|
|
50791
|
-
{ id: "SL", label: "Sierra Leone" },
|
|
50792
|
-
{ id: "SG", label: "Singapore" },
|
|
50793
|
-
{ id: "SX", label: "Sint Maarten (Dutch part)" },
|
|
50794
|
-
{ id: "SK", label: "Slovakia" },
|
|
50795
|
-
{ id: "SI", label: "Slovenia" },
|
|
50796
|
-
{ id: "SB", label: "Solomon Islands" },
|
|
50797
|
-
{ id: "SO", label: "Somalia" },
|
|
50798
|
-
{ id: "ZA", label: "South Africa" },
|
|
50799
|
-
{ id: "GS", label: "South Georgia and the South Sandwich Islands" },
|
|
50800
|
-
{ id: "SS", label: "South Sudan" },
|
|
50801
|
-
{ id: "ES", label: "Spain" },
|
|
50802
|
-
{ id: "LK", label: "Sri Lanka" },
|
|
50803
|
-
{ id: "SD", label: "Sudan" },
|
|
50804
|
-
{ id: "SR", label: "Surilabel" },
|
|
50805
|
-
{ id: "SJ", label: "Svalbard and Jan Mayen" },
|
|
50806
|
-
{ id: "SZ", label: "Swaziland" },
|
|
50807
|
-
{ id: "SE", label: "Sweden" },
|
|
50808
|
-
{ id: "CH", label: "Switzerland" },
|
|
50809
|
-
{ id: "SY", label: "Syrian Arab Republic" },
|
|
50810
|
-
{ id: "TW", label: "Taiwan, Province of China" },
|
|
50811
|
-
{ id: "TJ", label: "Tajikistan" },
|
|
50812
|
-
{ id: "TZ", label: "Tanzania, United Republic of" },
|
|
50813
|
-
{ id: "TH", label: "Thailand" },
|
|
50814
|
-
{ id: "TL", label: "Timor-Leste" },
|
|
50815
|
-
{ id: "TG", label: "Togo" },
|
|
50816
|
-
{ id: "TK", label: "Tokelau" },
|
|
50817
|
-
{ id: "TO", label: "Tonga" },
|
|
50818
|
-
{ id: "TT", label: "Trinidad and Tobago" },
|
|
50819
|
-
{ id: "TN", label: "Tunisia" },
|
|
50820
|
-
{ id: "TR", label: "Turkey" },
|
|
50821
|
-
{ id: "TM", label: "Turkmenistan" },
|
|
50822
|
-
{ id: "TC", label: "Turks and Caicos Islands" },
|
|
50823
|
-
{ id: "TV", label: "Tuvalu" },
|
|
50824
|
-
{ id: "UG", label: "Uganda" },
|
|
50825
|
-
{ id: "UA", label: "Ukraine" },
|
|
50826
|
-
{ id: "AE", label: "United Arab Emirates" },
|
|
50827
|
-
{ id: "GB", label: "United Kingdom" },
|
|
50828
|
-
{ id: "US", label: "United States" },
|
|
50829
|
-
{ id: "UM", label: "United States Minor Outlying Islands" },
|
|
50830
|
-
{ id: "UY", label: "Uruguay" },
|
|
50831
|
-
{ id: "UZ", label: "Uzbekistan" },
|
|
50832
|
-
{ id: "VU", label: "Vanuatu" },
|
|
50833
|
-
{ id: "VE", label: "Venezuela, Bolivarian Republic of" },
|
|
50834
|
-
{ id: "VN", label: "Viet Nam" },
|
|
50835
|
-
{ id: "VG", label: "Virgin Islands, British" },
|
|
50836
|
-
{ id: "VI", label: "Virgin Islands, U.S." },
|
|
50837
|
-
{ id: "WF", label: "Wallis and Futuna" },
|
|
50838
|
-
{ id: "EH", label: "Western Sahara" },
|
|
50839
|
-
{ id: "YE", label: "Yemen" },
|
|
50840
|
-
{ id: "ZM", label: "Zambia" },
|
|
50841
|
-
{ id: "ZW", label: "Zimbabwe" }
|
|
50842
|
-
];
|
|
50843
50899
|
const Country = ({ id: id2 }) => {
|
|
50844
50900
|
const country = countries$1.find((country2) => country2.id === id2);
|
|
50845
50901
|
return /* @__PURE__ */ React__default.createElement("span", null, country == null ? void 0 : country.label);
|
|
@@ -52221,10 +52277,10 @@ const GetUserNotificationSettings = async ({}) => {
|
|
|
52221
52277
|
const UpdateUserNotificationSettings = async ({
|
|
52222
52278
|
data: data2
|
|
52223
52279
|
}) => {
|
|
52224
|
-
await instance$1.put(`listing/notification-settings`, formatData$
|
|
52280
|
+
await instance$1.put(`listing/notification-settings`, formatData$f(data2));
|
|
52225
52281
|
return { data: data2 };
|
|
52226
52282
|
};
|
|
52227
|
-
const formatData$
|
|
52283
|
+
const formatData$f = (data2) => {
|
|
52228
52284
|
return {
|
|
52229
52285
|
dailyReport: data2.dailyReport ? "true" : "false",
|
|
52230
52286
|
weeklyReport: data2.weeklyReport ? "true" : "false",
|
|
@@ -52567,21 +52623,21 @@ const UpsertReplyTemplates = async ({
|
|
|
52567
52623
|
accessToken
|
|
52568
52624
|
}) => {
|
|
52569
52625
|
if (data2.id) {
|
|
52570
|
-
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), {
|
|
52571
52627
|
headers: {
|
|
52572
52628
|
Authorization: `Bearer ${accessToken}`
|
|
52573
52629
|
}
|
|
52574
52630
|
});
|
|
52575
52631
|
return { data: data2 };
|
|
52576
52632
|
}
|
|
52577
|
-
await instance$1.post(`/listing/review-reply-template`, formatData$
|
|
52633
|
+
await instance$1.post(`/listing/review-reply-template`, formatData$e(data2), {
|
|
52578
52634
|
headers: {
|
|
52579
52635
|
Authorization: `Bearer ${accessToken}`
|
|
52580
52636
|
}
|
|
52581
52637
|
});
|
|
52582
52638
|
return { data: data2 };
|
|
52583
52639
|
};
|
|
52584
|
-
const formatData$
|
|
52640
|
+
const formatData$e = (data2) => {
|
|
52585
52641
|
return {
|
|
52586
52642
|
locale: data2.language.value === "gb" ? "en" : data2.language.value,
|
|
52587
52643
|
comment: data2.reply,
|
|
@@ -53378,7 +53434,7 @@ const groupBy = (arr = [], by) => arr.reduce((acc, item2) => ({
|
|
|
53378
53434
|
...acc,
|
|
53379
53435
|
[item2[by]]: acc[item2[by]] ? [...acc[item2[by]], item2] : [item2]
|
|
53380
53436
|
}), {});
|
|
53381
|
-
const formatData$
|
|
53437
|
+
const formatData$d = (dataToFormat) => {
|
|
53382
53438
|
const compare2 = groupByDate$1(dataToFormat.compare);
|
|
53383
53439
|
const inPeriod = groupByDate$1(dataToFormat.data);
|
|
53384
53440
|
return {
|
|
@@ -76948,7 +77004,7 @@ const formatDateChart = (date4, mode) => {
|
|
|
76948
77004
|
return formatDate(date4, "DD/MM/YYYY");
|
|
76949
77005
|
}
|
|
76950
77006
|
};
|
|
76951
|
-
const formatData$
|
|
77007
|
+
const formatData$c = (data2, mode) => {
|
|
76952
77008
|
const formatedData = data2.reduce((acc, { date: _date, ...item2 }) => {
|
|
76953
77009
|
var _a2, _b, _c;
|
|
76954
77010
|
const date4 = formatDateChart(_date, mode);
|
|
@@ -77016,7 +77072,7 @@ const ReviewsChart = ({
|
|
|
77016
77072
|
const handleChanDisplayBy = (ev) => {
|
|
77017
77073
|
setDisplayBy(ev.target.value);
|
|
77018
77074
|
};
|
|
77019
|
-
const chartData = formatData$
|
|
77075
|
+
const chartData = formatData$c(data2, displayBy);
|
|
77020
77076
|
const options2 = limitDisplaByOptions(days2);
|
|
77021
77077
|
return /* @__PURE__ */ React__default.createElement(Card, {
|
|
77022
77078
|
header: { title: t2("REVIEWSEVOLUTIION") }
|
|
@@ -77325,7 +77381,7 @@ const Analytics$3 = ({ venueListingId, venueId }) => {
|
|
|
77325
77381
|
const { data: data2, isLoading, error: error3 } = useFetch(GetReviewAnalytics, {
|
|
77326
77382
|
cacheId: `reviews-analytics-${venueListingId}`,
|
|
77327
77383
|
params: filter
|
|
77328
|
-
}, { formatData: formatData$
|
|
77384
|
+
}, { formatData: formatData$d });
|
|
77329
77385
|
const { data: venues } = useFetch(GetVenueListingsOptions, {
|
|
77330
77386
|
cacheId: `venueListing-options`
|
|
77331
77387
|
});
|
|
@@ -77581,7 +77637,7 @@ const formatStats$1 = (stat) => {
|
|
|
77581
77637
|
});
|
|
77582
77638
|
return sum;
|
|
77583
77639
|
};
|
|
77584
|
-
const formatData$
|
|
77640
|
+
const formatData$b = (dataToFormat) => {
|
|
77585
77641
|
return {
|
|
77586
77642
|
totals: {
|
|
77587
77643
|
queries: {
|
|
@@ -77681,7 +77737,7 @@ const Analytics$2 = ({ venueListingId, venueId }) => {
|
|
|
77681
77737
|
if (data2 && (data2 == null ? void 0 : data2.BUSINESS_IMPRESSIONS_DESKTOP_SEARCH.error)) {
|
|
77682
77738
|
setNotAuthorized(true);
|
|
77683
77739
|
} else {
|
|
77684
|
-
setFormattedStats(formatData$
|
|
77740
|
+
setFormattedStats(formatData$b(data2));
|
|
77685
77741
|
}
|
|
77686
77742
|
}
|
|
77687
77743
|
}, [data2]);
|
|
@@ -77955,7 +78011,7 @@ const Analytics$1 = ({ venueListingId, venueId }) => {
|
|
|
77955
78011
|
]
|
|
77956
78012
|
})))))));
|
|
77957
78013
|
};
|
|
77958
|
-
const formatData$
|
|
78014
|
+
const formatData$a = (dataToFormat) => {
|
|
77959
78015
|
const compare2 = groupByDate(dataToFormat.compare);
|
|
77960
78016
|
const inPeriod = groupByDate(dataToFormat.data);
|
|
77961
78017
|
return {
|
|
@@ -78094,7 +78150,7 @@ const Analytics = ({ venueListingId, venueId }) => {
|
|
|
78094
78150
|
const { data: data2, isLoading, error: error3 } = useFetch(GetReviewAnalytics, {
|
|
78095
78151
|
cacheId: `reviews-analytics-${venueListingId}`,
|
|
78096
78152
|
params: filter
|
|
78097
|
-
}, { formatData: formatData$
|
|
78153
|
+
}, { formatData: formatData$a });
|
|
78098
78154
|
const comparedPeriod = formatComparedPeriod(filter.compare);
|
|
78099
78155
|
useState({
|
|
78100
78156
|
findBy: "venueId",
|
|
@@ -79185,9 +79241,9 @@ const GetVenueListing = async ({
|
|
|
79185
79241
|
}
|
|
79186
79242
|
});
|
|
79187
79243
|
sessionStorage.setItem("sdk_venue_vertical", data2 == null ? void 0 : data2.vertical);
|
|
79188
|
-
return formatData$
|
|
79244
|
+
return formatData$9(data2);
|
|
79189
79245
|
};
|
|
79190
|
-
const formatData$
|
|
79246
|
+
const formatData$9 = async (values = {}) => {
|
|
79191
79247
|
var _a2;
|
|
79192
79248
|
const {
|
|
79193
79249
|
country,
|
|
@@ -84403,28 +84459,6 @@ const BingButton$1 = ({
|
|
|
84403
84459
|
className: styles$U.connectedText
|
|
84404
84460
|
}, t2("CONNECT")));
|
|
84405
84461
|
};
|
|
84406
|
-
const GetVenueListingModule = async ({
|
|
84407
|
-
venueId,
|
|
84408
|
-
accessToken
|
|
84409
|
-
}) => {
|
|
84410
|
-
const data2 = await instance$1.get(`listing/venue/${venueId}/module`, {
|
|
84411
|
-
headers: {
|
|
84412
|
-
Authorization: `Bearer ${accessToken}`
|
|
84413
|
-
}
|
|
84414
|
-
});
|
|
84415
|
-
return formatData$9(data2);
|
|
84416
|
-
};
|
|
84417
|
-
const formatData$9 = (values = {}) => {
|
|
84418
|
-
const { country, ...rest } = values;
|
|
84419
|
-
const _country = countries$1 == null ? void 0 : countries$1.find(({ id: id2 }) => id2 === country);
|
|
84420
|
-
return {
|
|
84421
|
-
...rest,
|
|
84422
|
-
country: {
|
|
84423
|
-
id: _country == null ? void 0 : _country.id,
|
|
84424
|
-
name: _country == null ? void 0 : _country.label
|
|
84425
|
-
}
|
|
84426
|
-
};
|
|
84427
|
-
};
|
|
84428
84462
|
const useConnect = ({ venueId }) => {
|
|
84429
84463
|
var _a2;
|
|
84430
84464
|
const { data: data2, isLoading, reload } = useFetch(GetVenueListingModule, {
|
|
@@ -96718,7 +96752,7 @@ const SelectedDateDisplay = ({ selectedDate, onSelectDate, datesSummary }) => {
|
|
|
96718
96752
|
index2 === selectedCardIndex && styles$8.cardActive
|
|
96719
96753
|
])
|
|
96720
96754
|
}, /* @__PURE__ */ React__default.createElement("p", {
|
|
96721
|
-
style: { fontSize: "12px", marginBottom:
|
|
96755
|
+
style: { fontSize: "12px", marginBottom: 0, textAlign: "center", fontWeight: "bold" }
|
|
96722
96756
|
}, " ", d2.date.toLocaleDateString([], { weekday: "short" }).toUpperCase(), " "), /* @__PURE__ */ React__default.createElement("div", {
|
|
96723
96757
|
style: { textAlign: "center", position: "relative", bottom: "10px" }
|
|
96724
96758
|
}, /* @__PURE__ */ React__default.createElement("strong", {
|
|
@@ -98963,7 +98997,11 @@ const TableSelectField = ({ value: value2, tableOptions, isEdit, setIsEdit }) =>
|
|
|
98963
98997
|
};
|
|
98964
98998
|
const UpdateBooking = async ({ venueId, bookingId, data: data2 }) => {
|
|
98965
98999
|
await instance$1.put(`/resbook/venue/${venueId}/bookings/${bookingId}`, data2);
|
|
98966
|
-
return { data: "
|
|
99000
|
+
return { data: "updated" };
|
|
99001
|
+
};
|
|
99002
|
+
const CancelBooking = async ({ venueId, bookingId, data: data2 }) => {
|
|
99003
|
+
await instance$1.put(`/resbook/venue/${venueId}/bookings/${bookingId}/cancel`, data2);
|
|
99004
|
+
return { data: "canceled" };
|
|
98967
99005
|
};
|
|
98968
99006
|
const TableSelectForm = ({ table: table2, id: id2, tableOptions, initialValues, isEdit, setIsEdit, reloadMainTable, onClose: onClose2, venueId }) => {
|
|
98969
99007
|
const emptyVal = {
|
|
@@ -98988,9 +99026,53 @@ const TableSelectForm = ({ table: table2, id: id2, tableOptions, initialValues,
|
|
|
98988
99026
|
setIsEdit
|
|
98989
99027
|
}));
|
|
98990
99028
|
};
|
|
98991
|
-
const
|
|
99029
|
+
const CancelReservationModal = ({ onAccept, isLoading, message: message2, title: title2, ...props }) => {
|
|
99030
|
+
const { t: t2 } = useTranslation();
|
|
99031
|
+
const initialValues = {
|
|
99032
|
+
cancelActor: "",
|
|
99033
|
+
cancelReason: ""
|
|
99034
|
+
};
|
|
99035
|
+
const bookingSchema = create$1().shape({
|
|
99036
|
+
cancelActor: create$2().required(t2("errors.required")),
|
|
99037
|
+
cancelReason: create$2()
|
|
99038
|
+
});
|
|
99039
|
+
return /* @__PURE__ */ React__default.createElement(Modal2, {
|
|
99040
|
+
...props,
|
|
99041
|
+
title: t2("CANCELRESERVATION")
|
|
99042
|
+
}, /* @__PURE__ */ React__default.createElement("h5", null, t2("AREYOUSURECANCELRESERVATION")), /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
99043
|
+
initialValues,
|
|
99044
|
+
validationSchema: bookingSchema,
|
|
99045
|
+
onSubmit: (values, { resetForm }) => {
|
|
99046
|
+
onAccept(values);
|
|
99047
|
+
resetForm({ values: initialValues });
|
|
99048
|
+
}
|
|
99049
|
+
}, ({ values, errors: errors2, touched, isValid: isValid2 }) => /* @__PURE__ */ React__default.createElement(Form$c, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
99050
|
+
id: "cancelActor",
|
|
99051
|
+
label: t2("FIRSTNAME")
|
|
99052
|
+
}), /* @__PURE__ */ React__default.createElement(TextAreaField, {
|
|
99053
|
+
id: "cancelReason",
|
|
99054
|
+
label: t2("CANCELREASON"),
|
|
99055
|
+
maxLength: 100
|
|
99056
|
+
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
99057
|
+
style: { display: "flex", justifyContent: "center", gap: 20, marginTop: 20 }
|
|
99058
|
+
}, /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
99059
|
+
size: "small",
|
|
99060
|
+
mode: "tertiary",
|
|
99061
|
+
onClick: props.onClose,
|
|
99062
|
+
disabled: isLoading
|
|
99063
|
+
}, t2("CANCEL")), /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
99064
|
+
size: "small",
|
|
99065
|
+
type: "submit",
|
|
99066
|
+
disabled: !isValid2,
|
|
99067
|
+
isLoading
|
|
99068
|
+
}, t2("ACCEPT")))))));
|
|
99069
|
+
};
|
|
99070
|
+
const ReservationDetail = ({ open, onClose: onClose2, venueId, reloadMainTable, selectedRow, currentTimeZone, setSelectedRow }) => {
|
|
98992
99071
|
var _a2, _b, _c, _d, _e2, _f, _g;
|
|
98993
99072
|
const { t: t2 } = useTranslation();
|
|
99073
|
+
const [openCancelReservationModal, setOpenCancelReservationModal] = useState(false);
|
|
99074
|
+
const onOpenCancelRevModal = () => setOpenCancelReservationModal(true);
|
|
99075
|
+
const onCloseCancelRevModal = () => setOpenCancelReservationModal(false);
|
|
98994
99076
|
const [isEdit, setIsEdit] = useState(false);
|
|
98995
99077
|
const [initialValues, setInitialValues] = useState(null);
|
|
98996
99078
|
const { data: data2 } = useFetch(GetTableAvailability, {
|
|
@@ -99001,6 +99083,20 @@ const ReservationDetail = ({ open, onClose: onClose2, venueId, reloadMainTable,
|
|
|
99001
99083
|
partySize: selectedRow.partySize
|
|
99002
99084
|
} : { startSec: null }
|
|
99003
99085
|
});
|
|
99086
|
+
const { isExecuting, execute } = useService(CancelBooking, {
|
|
99087
|
+
onSuccess: async () => {
|
|
99088
|
+
setSelectedRow({ ...selectedRow, status: "canceled" });
|
|
99089
|
+
onCloseCancelRevModal();
|
|
99090
|
+
reloadMainTable();
|
|
99091
|
+
}
|
|
99092
|
+
});
|
|
99093
|
+
const cancelReservation = async (values) => {
|
|
99094
|
+
const toSend = {
|
|
99095
|
+
cancelActor: values.cancelActor,
|
|
99096
|
+
cancelReason: values.cancelReason
|
|
99097
|
+
};
|
|
99098
|
+
execute({ data: toSend, venueId, bookingId: selectedRow.id });
|
|
99099
|
+
};
|
|
99004
99100
|
useEffect(() => {
|
|
99005
99101
|
if (selectedRow && selectedRow.table && open) {
|
|
99006
99102
|
setInitialValues({ id: selectedRow.table.id, label: selectedRow.table.name });
|
|
@@ -99081,7 +99177,19 @@ const ReservationDetail = ({ open, onClose: onClose2, venueId, reloadMainTable,
|
|
|
99081
99177
|
reloadMainTable,
|
|
99082
99178
|
onClose: onClose2,
|
|
99083
99179
|
venueId
|
|
99084
|
-
}))
|
|
99180
|
+
})), selectedRow && selectedRow.status && selectedRow.status !== "canceled" && /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
99181
|
+
style: { marginTop: 10 },
|
|
99182
|
+
type: "submit",
|
|
99183
|
+
className: styles$8.btnDanger,
|
|
99184
|
+
onClick: () => onOpenCancelRevModal()
|
|
99185
|
+
}, t2("CANCELRESERVATION"))), selectedRow && selectedRow.status && selectedRow.status !== "canceled" && /* @__PURE__ */ React__default.createElement(CancelReservationModal, {
|
|
99186
|
+
width: 400,
|
|
99187
|
+
message: t2("AREYOUSURECANCELRESERVATION"),
|
|
99188
|
+
onAccept: cancelReservation,
|
|
99189
|
+
open: openCancelReservationModal,
|
|
99190
|
+
onClose: onCloseCancelRevModal,
|
|
99191
|
+
isLoading: isExecuting
|
|
99192
|
+
}));
|
|
99085
99193
|
};
|
|
99086
99194
|
const ReservationDashboard = ({
|
|
99087
99195
|
Header: Header2,
|
|
@@ -99194,6 +99302,7 @@ const ReservationDashboard = ({
|
|
|
99194
99302
|
open: openDetailReservation,
|
|
99195
99303
|
onClose: onCloseDetailReservation,
|
|
99196
99304
|
selectedRow,
|
|
99305
|
+
setSelectedRow,
|
|
99197
99306
|
currentTimeZone,
|
|
99198
99307
|
venueId,
|
|
99199
99308
|
reloadMainTable: reload
|