mozrest-sdk-react-dev 0.3.73 → 0.3.75
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 +1187 -692
- package/package.json +1 -1
- package/style.css +251 -173
package/mozrest-sdk.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import ReactDOM__default, { createPortal } from "react-dom";
|
|
|
8
8
|
const container$C = "_container_1xz3t_13";
|
|
9
9
|
const item$8 = "_item_1xz3t_20";
|
|
10
10
|
const itemfull$1 = "_itemfull_1xz3t_26";
|
|
11
|
-
const styles$
|
|
11
|
+
const styles$2r = {
|
|
12
12
|
"animate-pulse": "_animate-pulse_1xz3t_1",
|
|
13
13
|
container: container$C,
|
|
14
14
|
item: item$8,
|
|
@@ -960,15 +960,15 @@ const jsxs = jsxRuntimeExports.jsxs;
|
|
|
960
960
|
const Fragment = jsxRuntimeExports.Fragment;
|
|
961
961
|
const SkeletonPage$1 = () => {
|
|
962
962
|
return /* @__PURE__ */ jsx$1("div", {
|
|
963
|
-
className: styles$
|
|
963
|
+
className: styles$2r["animate-pulse"],
|
|
964
964
|
children: /* @__PURE__ */ jsxs("div", {
|
|
965
|
-
className: styles$
|
|
965
|
+
className: styles$2r.container,
|
|
966
966
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
967
|
-
className: styles$
|
|
967
|
+
className: styles$2r.item
|
|
968
968
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
969
|
-
className: styles$
|
|
969
|
+
className: styles$2r.item
|
|
970
970
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
971
|
-
className: styles$
|
|
971
|
+
className: styles$2r.itemfull
|
|
972
972
|
})]
|
|
973
973
|
})
|
|
974
974
|
});
|
|
@@ -3445,7 +3445,7 @@ const classNames$2 = (...classNames2) => {
|
|
|
3445
3445
|
return resultClasses.join(" ");
|
|
3446
3446
|
};
|
|
3447
3447
|
const container$B = "_container_1ar7o_1";
|
|
3448
|
-
const styles$
|
|
3448
|
+
const styles$2q = {
|
|
3449
3449
|
container: container$B
|
|
3450
3450
|
};
|
|
3451
3451
|
const Container = ({
|
|
@@ -3459,12 +3459,12 @@ const Container = ({
|
|
|
3459
3459
|
return /* @__PURE__ */ jsx$1(Tag2, {
|
|
3460
3460
|
"aria-label": ariaLabel,
|
|
3461
3461
|
"aria-labelledby": ariaLabelledby,
|
|
3462
|
-
className: classNames$2(styles$
|
|
3462
|
+
className: classNames$2(styles$2q["container"], className),
|
|
3463
3463
|
children
|
|
3464
3464
|
});
|
|
3465
3465
|
};
|
|
3466
3466
|
const container$A = "_container_11xrj_1";
|
|
3467
|
-
const styles$
|
|
3467
|
+
const styles$2p = {
|
|
3468
3468
|
container: container$A
|
|
3469
3469
|
};
|
|
3470
3470
|
const LayoutPage$2 = ({
|
|
@@ -3474,12 +3474,12 @@ const LayoutPage$2 = ({
|
|
|
3474
3474
|
contentClassName
|
|
3475
3475
|
}) => {
|
|
3476
3476
|
return /* @__PURE__ */ jsxs("div", {
|
|
3477
|
-
className: classNames$2(styles$
|
|
3477
|
+
className: classNames$2(styles$2p.container, containerClassName, "mz-sdk-cst-pf"),
|
|
3478
3478
|
children: [header2 && /* @__PURE__ */ jsx$1("div", {
|
|
3479
3479
|
className: "mz-header",
|
|
3480
3480
|
children: header2
|
|
3481
3481
|
}), /* @__PURE__ */ jsx$1(Container, {
|
|
3482
|
-
className: classNames$2(styles$
|
|
3482
|
+
className: classNames$2(styles$2p.content, contentClassName),
|
|
3483
3483
|
children
|
|
3484
3484
|
})]
|
|
3485
3485
|
});
|
|
@@ -7678,6 +7678,7 @@ const PROFILEURL$4 = "Profile URL";
|
|
|
7678
7678
|
const AREYOUSURECONNECTTOTRIPADVISOR$4 = "Are you sure you want to connect to Tripadvisor";
|
|
7679
7679
|
const TRIPADVISOR$4 = "Tripadvisor";
|
|
7680
7680
|
const TRIPADVISORREPLY$4 = "Reply on Tripadvisor";
|
|
7681
|
+
const ZOMATOREPLY$4 = "Reply on Zomato";
|
|
7681
7682
|
const COMMINGUP$4 = "Coming up";
|
|
7682
7683
|
const TODAY$4 = "Today";
|
|
7683
7684
|
const TOMORROW$4 = "Tomorrow";
|
|
@@ -7715,6 +7716,7 @@ const SPECIAL_DATES_DESC$4 = "Special closing dates or different shifts (special
|
|
|
7715
7716
|
const SPECIAL_DATES_DESC2$4 = "Define the period for closures or adjusted hours. Both dates are included.";
|
|
7716
7717
|
const SPECIAL_SHIFTS$4 = "Special shifts";
|
|
7717
7718
|
const ADD_SPECIAL_DATE$4 = "Add special date";
|
|
7719
|
+
const ADD_OCCASION$4 = "Add occasion";
|
|
7718
7720
|
const DELETE_SPECIAL_DATE$4 = "Delete special date";
|
|
7719
7721
|
const ARE_YOU_SURE_DELETE_SPECIAL_DATE$4 = "Are you sure you want to delete this special date?";
|
|
7720
7722
|
const RESERVATION_PREFERENCES$4 = "Reservation preferences";
|
|
@@ -7959,6 +7961,8 @@ const MENU$4 = "Menu";
|
|
|
7959
7961
|
const SELECT_OCCASION$3 = "Select Occasion";
|
|
7960
7962
|
const SELECT_AREA$4 = "Select Area";
|
|
7961
7963
|
const SELECT_MENU$4 = "Select Menu";
|
|
7964
|
+
const AREYOUSURECONNECTTOZOMATO$4 = "Are you sure you want to connect to Zomato";
|
|
7965
|
+
const AREYOUSUREDISCONNECTFROMZOMATO$4 = "Are you sure you want to disconnect from Zomato";
|
|
7962
7966
|
const en = {
|
|
7963
7967
|
errors: errors$4,
|
|
7964
7968
|
SPECIALCLOSINGDATES: SPECIALCLOSINGDATES$4,
|
|
@@ -8293,6 +8297,7 @@ const en = {
|
|
|
8293
8297
|
AREYOUSURECONNECTTOTRIPADVISOR: AREYOUSURECONNECTTOTRIPADVISOR$4,
|
|
8294
8298
|
TRIPADVISOR: TRIPADVISOR$4,
|
|
8295
8299
|
TRIPADVISORREPLY: TRIPADVISORREPLY$4,
|
|
8300
|
+
ZOMATOREPLY: ZOMATOREPLY$4,
|
|
8296
8301
|
COMMINGUP: COMMINGUP$4,
|
|
8297
8302
|
TODAY: TODAY$4,
|
|
8298
8303
|
TOMORROW: TOMORROW$4,
|
|
@@ -8330,6 +8335,7 @@ const en = {
|
|
|
8330
8335
|
SPECIAL_DATES_DESC2: SPECIAL_DATES_DESC2$4,
|
|
8331
8336
|
SPECIAL_SHIFTS: SPECIAL_SHIFTS$4,
|
|
8332
8337
|
ADD_SPECIAL_DATE: ADD_SPECIAL_DATE$4,
|
|
8338
|
+
ADD_OCCASION: ADD_OCCASION$4,
|
|
8333
8339
|
DELETE_SPECIAL_DATE: DELETE_SPECIAL_DATE$4,
|
|
8334
8340
|
ARE_YOU_SURE_DELETE_SPECIAL_DATE: ARE_YOU_SURE_DELETE_SPECIAL_DATE$4,
|
|
8335
8341
|
RESERVATION_PREFERENCES: RESERVATION_PREFERENCES$4,
|
|
@@ -8432,6 +8438,7 @@ const en = {
|
|
|
8432
8438
|
"Bing will contact you by email or post and provide you with a verification PIN code. Once you get it, please add it below so that your profile can be synchonised.": "Bing will contact you by email or post and provide you with a verification PIN code. Once you get it, please add it below so that your profile can be synchonised.",
|
|
8433
8439
|
"Bing may require verification of the business ownership, and contact you by email or post. Please, enter below the email you want to use for verification purposes with Bing.": "Bing may require verification of the business ownership, and contact you by email or post. Please, enter below the email you want to use for verification purposes with Bing.",
|
|
8434
8440
|
"Please, enter below the profile url of your tripadvisor.": "Please enter your TripAdvisor profile URL below.",
|
|
8441
|
+
"Please, enter below the profile url of your zomato.": "Please enter your Zomato profile URL below.",
|
|
8435
8442
|
"Select an account": "Select an account",
|
|
8436
8443
|
"Please select an accout that you want to connect to Facebook.": "Please select an account that you want to connect to Facebook.",
|
|
8437
8444
|
"Please select an accout that you want to connect to Google": "Replace it with: Please select an account that you want to connect to Google.",
|
|
@@ -8624,7 +8631,9 @@ const en = {
|
|
|
8624
8631
|
MENU: MENU$4,
|
|
8625
8632
|
SELECT_OCCASION: SELECT_OCCASION$3,
|
|
8626
8633
|
SELECT_AREA: SELECT_AREA$4,
|
|
8627
|
-
SELECT_MENU: SELECT_MENU$4
|
|
8634
|
+
SELECT_MENU: SELECT_MENU$4,
|
|
8635
|
+
AREYOUSURECONNECTTOZOMATO: AREYOUSURECONNECTTOZOMATO$4,
|
|
8636
|
+
AREYOUSUREDISCONNECTFROMZOMATO: AREYOUSUREDISCONNECTFROMZOMATO$4
|
|
8628
8637
|
};
|
|
8629
8638
|
const errors$3 = { "required": "Este campo es requerido", "email": "Este correo electrónico no es válido", "phone": "Número de teléfono no válido", "url": "URL no válida" };
|
|
8630
8639
|
const SPECIALCLOSINGDATES$3 = "Fechas de cierre especiales u horarios de apertura diferentes (días especiales, festivos, eventos privados…)";
|
|
@@ -8956,6 +8965,7 @@ const PROFILEURL$3 = "URL del perfil";
|
|
|
8956
8965
|
const AREYOUSURECONNECTTOTRIPADVISOR$3 = "¿Está seguro de que desea conectarse a Tripadvisor?";
|
|
8957
8966
|
const TRIPADVISOR$3 = "Tripadvisor";
|
|
8958
8967
|
const TRIPADVISORREPLY$3 = "Respuesta de Tripadvisor";
|
|
8968
|
+
const ZOMATOREPLY$3 = "Respuesta de Zomato";
|
|
8959
8969
|
const COMMINGUP$3 = "Próximamente";
|
|
8960
8970
|
const TODAY$3 = "Hoy";
|
|
8961
8971
|
const TOMORROW$3 = "Mañana";
|
|
@@ -8993,6 +9003,7 @@ const SPECIAL_DATES_DESC$3 = "Fechas de cierre especiales o turnos diferentes (d
|
|
|
8993
9003
|
const SPECIAL_DATES_DESC2$3 = "Defina el período para cierres u horarios ajustados. Ambas fechas están incluidas.";
|
|
8994
9004
|
const SPECIAL_SHIFTS$3 = "Turnos especiales";
|
|
8995
9005
|
const ADD_SPECIAL_DATE$3 = "Agregar fecha especial";
|
|
9006
|
+
const ADD_OCCASION$3 = "Añadir ocasión";
|
|
8996
9007
|
const DELETE_SPECIAL_DATE$3 = "Eliminar fecha especial";
|
|
8997
9008
|
const ARE_YOU_SURE_DELETE_SPECIAL_DATE$3 = "¿Está seguro de que desea eliminar esta fecha especial?";
|
|
8998
9009
|
const RESERVATION_PREFERENCES$3 = "Preferencias de reserva";
|
|
@@ -9238,6 +9249,8 @@ const MENU$3 = "Menú";
|
|
|
9238
9249
|
const SELECT_OCCASION$2 = "Seleccionar ocasión";
|
|
9239
9250
|
const SELECT_AREA$3 = "Seleccionar área";
|
|
9240
9251
|
const SELECT_MENU$3 = "Seleccionar menú";
|
|
9252
|
+
const AREYOUSURECONNECTTOZOMATO$3 = "¿Está seguro de que desea conectar a Zomato";
|
|
9253
|
+
const AREYOUSUREDISCONNECTFROMZOMATO$3 = "¿Está seguro de que desea desconectar de Zomato";
|
|
9241
9254
|
const es$2 = {
|
|
9242
9255
|
errors: errors$3,
|
|
9243
9256
|
SPECIALCLOSINGDATES: SPECIALCLOSINGDATES$3,
|
|
@@ -9572,6 +9585,7 @@ const es$2 = {
|
|
|
9572
9585
|
AREYOUSURECONNECTTOTRIPADVISOR: AREYOUSURECONNECTTOTRIPADVISOR$3,
|
|
9573
9586
|
TRIPADVISOR: TRIPADVISOR$3,
|
|
9574
9587
|
TRIPADVISORREPLY: TRIPADVISORREPLY$3,
|
|
9588
|
+
ZOMATOREPLY: ZOMATOREPLY$3,
|
|
9575
9589
|
COMMINGUP: COMMINGUP$3,
|
|
9576
9590
|
TODAY: TODAY$3,
|
|
9577
9591
|
TOMORROW: TOMORROW$3,
|
|
@@ -9609,6 +9623,7 @@ const es$2 = {
|
|
|
9609
9623
|
SPECIAL_DATES_DESC2: SPECIAL_DATES_DESC2$3,
|
|
9610
9624
|
SPECIAL_SHIFTS: SPECIAL_SHIFTS$3,
|
|
9611
9625
|
ADD_SPECIAL_DATE: ADD_SPECIAL_DATE$3,
|
|
9626
|
+
ADD_OCCASION: ADD_OCCASION$3,
|
|
9612
9627
|
DELETE_SPECIAL_DATE: DELETE_SPECIAL_DATE$3,
|
|
9613
9628
|
ARE_YOU_SURE_DELETE_SPECIAL_DATE: ARE_YOU_SURE_DELETE_SPECIAL_DATE$3,
|
|
9614
9629
|
RESERVATION_PREFERENCES: RESERVATION_PREFERENCES$3,
|
|
@@ -9711,6 +9726,7 @@ const es$2 = {
|
|
|
9711
9726
|
"Bing will contact you by email or post and provide you with a verification PIN code. Once you get it, please add it below so that your profile can be synchonised.": "Bing se pondrá en contacto con usted por correo electrónico o por correo postal y le proporcionará un código PIN de verificación. Una vez que lo reciba, agréguelo a continuación para que su perfil pueda sincronizarse.",
|
|
9712
9727
|
"Bing may require verification of the business ownership, and contact you by email or post. Please, enter below the email you want to use for verification purposes with Bing.": "Bing puede requerir la verificación de la propiedad del negocio y ponerse en contacto con usted por correo electrónico o por correo postal. Por favor, ingrese a continuación el correo electrónico que desea utilizar para fines de verificación con Bing.",
|
|
9713
9728
|
"Please, enter below the profile url of your tripadvisor.": "Por favor, ingrese a continuación la URL del perfil de su tripadvisor.",
|
|
9729
|
+
"Please, enter below the profile url of your zomato.": "Por favor, ingrese a continuación la URL del perfil de su zomato.",
|
|
9714
9730
|
"Select an account": "Seleccionar una cuenta",
|
|
9715
9731
|
"Please select an accout that you want to connect to Facebook.": "Por favor, seleccione una cuenta que desea conectar a Facebook.",
|
|
9716
9732
|
"Please select an accout that you want to connect to Google": "Por favor, seleccione una cuenta que desea conectar a Google",
|
|
@@ -9904,7 +9920,9 @@ const es$2 = {
|
|
|
9904
9920
|
MENU: MENU$3,
|
|
9905
9921
|
SELECT_OCCASION: SELECT_OCCASION$2,
|
|
9906
9922
|
SELECT_AREA: SELECT_AREA$3,
|
|
9907
|
-
SELECT_MENU: SELECT_MENU$3
|
|
9923
|
+
SELECT_MENU: SELECT_MENU$3,
|
|
9924
|
+
AREYOUSURECONNECTTOZOMATO: AREYOUSURECONNECTTOZOMATO$3,
|
|
9925
|
+
AREYOUSUREDISCONNECTFROMZOMATO: AREYOUSUREDISCONNECTFROMZOMATO$3
|
|
9908
9926
|
};
|
|
9909
9927
|
const errors$2 = { "required": "Ce champ est requis", "email": "Cet email n'est pas valide", "phone": "Numéro de téléphone non valide", "url": "Cette URL n'est pas valide" };
|
|
9910
9928
|
const SPECIALCLOSINGDATES$2 = "Fermetures exceptionnelles et horaires d’ouverture modifiés (jours fériés, événements, etc.) ";
|
|
@@ -10236,6 +10254,7 @@ const PROFILEURL$2 = "URL du profil";
|
|
|
10236
10254
|
const AREYOUSURECONNECTTOTRIPADVISOR$2 = "Êtes-vous sûr de vouloir vous connecter à Tripadvisor ?";
|
|
10237
10255
|
const TRIPADVISOR$2 = "Tripadvisor";
|
|
10238
10256
|
const TRIPADVISORREPLY$2 = "Répondre sur Tripadvisor ";
|
|
10257
|
+
const ZOMATOREPLY$2 = "Répondre sur Zomato";
|
|
10239
10258
|
const COMMINGUP$2 = "À venir";
|
|
10240
10259
|
const TODAY$2 = "Aujourd'hui";
|
|
10241
10260
|
const TOMORROW$2 = "Demain";
|
|
@@ -10273,6 +10292,7 @@ const SPECIAL_DATES_DESC$2 = "Dates de fermeture spéciales ou services différe
|
|
|
10273
10292
|
const SPECIAL_DATES_DESC2$2 = "Définissez la période de fermeture ou d’horaires modifiés. Les deux dates sont incluses.";
|
|
10274
10293
|
const SPECIAL_SHIFTS$2 = "Services spéciaux";
|
|
10275
10294
|
const ADD_SPECIAL_DATE$2 = "Ajouter une date spéciale";
|
|
10295
|
+
const ADD_OCCASION$2 = "Ajouter une occasion";
|
|
10276
10296
|
const DELETE_SPECIAL_DATE$2 = "Supprimer la date spéciale";
|
|
10277
10297
|
const ARE_YOU_SURE_DELETE_SPECIAL_DATE$2 = "Êtes-vous sûr de vouloir supprimer cette date spéciale ?";
|
|
10278
10298
|
const RESERVATION_PREFERENCES$2 = "Préférences de réservation";
|
|
@@ -10518,6 +10538,8 @@ const MENU$2 = "Menu";
|
|
|
10518
10538
|
const SELECT_OCCASION$1 = "Sélectionner l'occasion";
|
|
10519
10539
|
const SELECT_AREA$2 = "Sélectionner la zone";
|
|
10520
10540
|
const SELECT_MENU$2 = "Sélectionner le menu";
|
|
10541
|
+
const AREYOUSURECONNECTTOZOMATO$2 = "Êtes-vous sûr de vouloir vous connecter à Zomato";
|
|
10542
|
+
const AREYOUSUREDISCONNECTFROMZOMATO$2 = "Êtes-vous sûr de vouloir vous déconnecter de Zomato";
|
|
10521
10543
|
const fr$1 = {
|
|
10522
10544
|
errors: errors$2,
|
|
10523
10545
|
SPECIALCLOSINGDATES: SPECIALCLOSINGDATES$2,
|
|
@@ -10852,6 +10874,7 @@ const fr$1 = {
|
|
|
10852
10874
|
AREYOUSURECONNECTTOTRIPADVISOR: AREYOUSURECONNECTTOTRIPADVISOR$2,
|
|
10853
10875
|
TRIPADVISOR: TRIPADVISOR$2,
|
|
10854
10876
|
TRIPADVISORREPLY: TRIPADVISORREPLY$2,
|
|
10877
|
+
ZOMATOREPLY: ZOMATOREPLY$2,
|
|
10855
10878
|
COMMINGUP: COMMINGUP$2,
|
|
10856
10879
|
TODAY: TODAY$2,
|
|
10857
10880
|
TOMORROW: TOMORROW$2,
|
|
@@ -10889,6 +10912,7 @@ const fr$1 = {
|
|
|
10889
10912
|
SPECIAL_DATES_DESC2: SPECIAL_DATES_DESC2$2,
|
|
10890
10913
|
SPECIAL_SHIFTS: SPECIAL_SHIFTS$2,
|
|
10891
10914
|
ADD_SPECIAL_DATE: ADD_SPECIAL_DATE$2,
|
|
10915
|
+
ADD_OCCASION: ADD_OCCASION$2,
|
|
10892
10916
|
DELETE_SPECIAL_DATE: DELETE_SPECIAL_DATE$2,
|
|
10893
10917
|
ARE_YOU_SURE_DELETE_SPECIAL_DATE: ARE_YOU_SURE_DELETE_SPECIAL_DATE$2,
|
|
10894
10918
|
RESERVATION_PREFERENCES: RESERVATION_PREFERENCES$2,
|
|
@@ -10990,6 +11014,7 @@ const fr$1 = {
|
|
|
10990
11014
|
"Contact your account manager to get more information about how to get a license.": "Veuillez contacter votre gestionnaire de compte pour obtenir plus d’informations sur la procédure d’obtention d’une licence.",
|
|
10991
11015
|
"Bing will contact you by email or post and provide you with a verification PIN code. Once you get it, please add it below so that your profile can be synchonised.": "Bing vous contactera par email ou courrier pour vous fournir un code PIN de vérification. Dès réception, merci de bien vouloir le saisir ci-dessous afin de synchroniser votre profil.",
|
|
10992
11016
|
"Please, enter below the profile url of your tripadvisor.": "Veuillez saisir ci-dessous l'URL de votre profil Tripadvisor.",
|
|
11017
|
+
"Please, enter below the profile url of your zomato.": "Veuillez saisir ci-dessous l'URL de votre profil Zomato.",
|
|
10993
11018
|
"Select an account": "Sélectionner un compte",
|
|
10994
11019
|
"Please select an accout that you want to connect to Facebook.": "Veuillez sélectionner un compte à connecter à Facebook.",
|
|
10995
11020
|
"Please select an accout that you want to connect to Google": "Veuillez sélectionner un compte à connecter à Google.",
|
|
@@ -11183,7 +11208,9 @@ const fr$1 = {
|
|
|
11183
11208
|
MENU: MENU$2,
|
|
11184
11209
|
SELECT_OCCASION: SELECT_OCCASION$1,
|
|
11185
11210
|
SELECT_AREA: SELECT_AREA$2,
|
|
11186
|
-
SELECT_MENU: SELECT_MENU$2
|
|
11211
|
+
SELECT_MENU: SELECT_MENU$2,
|
|
11212
|
+
AREYOUSURECONNECTTOZOMATO: AREYOUSURECONNECTTOZOMATO$2,
|
|
11213
|
+
AREYOUSUREDISCONNECTFROMZOMATO: AREYOUSUREDISCONNECTFROMZOMATO$2
|
|
11187
11214
|
};
|
|
11188
11215
|
const errors$1 = { "required": "Dieses Feld ist erforderlich", "email": "Diese E-Mail ist nicht gültig", "phone": "Diese Telefonnummer ist nicht gültig", "url": "Diese URL ist nicht gültig" };
|
|
11189
11216
|
const SPECIALCLOSINGDATES$1 = "Besondere Schließungstage oder abweichende Öffnungszeiten (besondere Tage, Feiertage, private Veranstaltungen…)";
|
|
@@ -11513,6 +11540,7 @@ const PROFILEURL$1 = "Profil-URL";
|
|
|
11513
11540
|
const AREYOUSURECONNECTTOTRIPADVISOR$1 = "Sind Sie sicher, dass Sie eine Verbindung zu Tripadvisor herstellen möchten?";
|
|
11514
11541
|
const TRIPADVISOR$1 = "Tripadvisor";
|
|
11515
11542
|
const TRIPADVISORREPLY$1 = "Tripadvisor-Antwort";
|
|
11543
|
+
const ZOMATOREPLY$1 = "Zomato-Antwort";
|
|
11516
11544
|
const COMMINGUP$1 = "Steht bevor";
|
|
11517
11545
|
const TODAY$1 = "Heute";
|
|
11518
11546
|
const TOMORROW$1 = "Morgen";
|
|
@@ -11550,6 +11578,7 @@ const SPECIAL_DATES_DESC$1 = "Besondere Schließtage oder abweichende Schichten
|
|
|
11550
11578
|
const SPECIAL_DATES_DESC2$1 = "Definieren Sie den Zeitraum für Schließungen oder angepasste Öffnungszeiten. Beide Daten sind inklusive.";
|
|
11551
11579
|
const SPECIAL_SHIFTS$1 = "Besondere Schichten";
|
|
11552
11580
|
const ADD_SPECIAL_DATE$1 = "Besonderes Datum hinzufügen";
|
|
11581
|
+
const ADD_OCCASION$1 = "Anlass hinzufügen";
|
|
11553
11582
|
const DELETE_SPECIAL_DATE$1 = "Besonderes Datum löschen";
|
|
11554
11583
|
const ARE_YOU_SURE_DELETE_SPECIAL_DATE$1 = "Sind Sie sicher, dass Sie dieses besondere Datum löschen möchten?";
|
|
11555
11584
|
const RESERVATION_PREFERENCES$1 = "Reservierungspräferenzen";
|
|
@@ -11737,6 +11766,8 @@ const MENU$1 = "Menü";
|
|
|
11737
11766
|
const SELECT_OCCASION = "Gelegenheit auswählen";
|
|
11738
11767
|
const SELECT_AREA$1 = "Bereich auswählen";
|
|
11739
11768
|
const SELECT_MENU$1 = "Menü auswählen";
|
|
11769
|
+
const AREYOUSURECONNECTTOZOMATO$1 = "Sind Sie sicher, dass Sie eine Verbindung zu Zomato herstellen möchten?";
|
|
11770
|
+
const AREYOUSUREDISCONNECTFROMZOMATO$1 = "Sind Sie sicher, dass Sie eine Verbindung zu Zomato trennen möchten?";
|
|
11740
11771
|
const de$1 = {
|
|
11741
11772
|
errors: errors$1,
|
|
11742
11773
|
SPECIALCLOSINGDATES: SPECIALCLOSINGDATES$1,
|
|
@@ -12069,6 +12100,7 @@ const de$1 = {
|
|
|
12069
12100
|
AREYOUSURECONNECTTOTRIPADVISOR: AREYOUSURECONNECTTOTRIPADVISOR$1,
|
|
12070
12101
|
TRIPADVISOR: TRIPADVISOR$1,
|
|
12071
12102
|
TRIPADVISORREPLY: TRIPADVISORREPLY$1,
|
|
12103
|
+
ZOMATOREPLY: ZOMATOREPLY$1,
|
|
12072
12104
|
COMMINGUP: COMMINGUP$1,
|
|
12073
12105
|
TODAY: TODAY$1,
|
|
12074
12106
|
TOMORROW: TOMORROW$1,
|
|
@@ -12106,6 +12138,7 @@ const de$1 = {
|
|
|
12106
12138
|
SPECIAL_DATES_DESC2: SPECIAL_DATES_DESC2$1,
|
|
12107
12139
|
SPECIAL_SHIFTS: SPECIAL_SHIFTS$1,
|
|
12108
12140
|
ADD_SPECIAL_DATE: ADD_SPECIAL_DATE$1,
|
|
12141
|
+
ADD_OCCASION: ADD_OCCASION$1,
|
|
12109
12142
|
DELETE_SPECIAL_DATE: DELETE_SPECIAL_DATE$1,
|
|
12110
12143
|
ARE_YOU_SURE_DELETE_SPECIAL_DATE: ARE_YOU_SURE_DELETE_SPECIAL_DATE$1,
|
|
12111
12144
|
RESERVATION_PREFERENCES: RESERVATION_PREFERENCES$1,
|
|
@@ -12208,6 +12241,7 @@ const de$1 = {
|
|
|
12208
12241
|
"Bing will contact you by email or post and provide you with a verification PIN code. Once you get it, please add it below so that your profile can be synchonised.": "Bing wird Sie per E-Mail oder Post kontaktieren und Ihnen einen Verifizierungs-PIN senden. Sobald Sie ihn erhalten haben, geben Sie ihn bitte unten ein, damit Ihr Profil synchronisiert werden kann.",
|
|
12209
12242
|
"Bing may require verification of the business ownership, and contact you by email or post. Please, enter below the email you want to use for verification purposes with Bing.": "Bing kann eine Verifizierung des Unternehmensbesitzes verlangen und Sie per E-Mail oder Post kontaktieren. Bitte geben Sie unten die E-Mail-Adresse an, die Sie für die Verifizierung verwenden möchten.",
|
|
12210
12243
|
"Please, enter below the profile url of your tripadvisor.": "Bitte geben Sie unten die Profil-URL Ihres Tripadvisor-Kontos ein.",
|
|
12244
|
+
"Please, enter below the profile url of your zomato.": "Bitte geben Sie unten die Profil-URL Ihres Zomato-Kontos ein.",
|
|
12211
12245
|
"Select an account": "Konto auswählen",
|
|
12212
12246
|
"Please select an accout that you want to connect to Facebook.": "Bitte wählen Sie das Konto aus, das Sie mit Facebook verbinden möchten.",
|
|
12213
12247
|
"Please select an accout that you want to connect to Google": "Bitte wählen Sie das Konto aus, das Sie mit Google verbinden möchten.",
|
|
@@ -12343,7 +12377,9 @@ const de$1 = {
|
|
|
12343
12377
|
MENU: MENU$1,
|
|
12344
12378
|
SELECT_OCCASION,
|
|
12345
12379
|
SELECT_AREA: SELECT_AREA$1,
|
|
12346
|
-
SELECT_MENU: SELECT_MENU$1
|
|
12380
|
+
SELECT_MENU: SELECT_MENU$1,
|
|
12381
|
+
AREYOUSURECONNECTTOZOMATO: AREYOUSURECONNECTTOZOMATO$1,
|
|
12382
|
+
AREYOUSUREDISCONNECTFROMZOMATO: AREYOUSUREDISCONNECTFROMZOMATO$1
|
|
12347
12383
|
};
|
|
12348
12384
|
const errors = { "required": "Dit veld is verplicht", "email": "Dit e-mailadres is ongeldig", "phone": "Ongeldig telefoonnummer", "url": "Deze URL is ongeldig" };
|
|
12349
12385
|
const SPECIALCLOSINGDATES = "Speciale sluitingsdagen of afwijkende openingstijden (feestdagen, evenementen, enz.)";
|
|
@@ -12673,6 +12709,7 @@ const PROFILEURL = "Profiel-URL";
|
|
|
12673
12709
|
const AREYOUSURECONNECTTOTRIPADVISOR = "Weet je zeker dat je verbinding wilt maken met Tripadvisor?";
|
|
12674
12710
|
const TRIPADVISOR = "Tripadvisor";
|
|
12675
12711
|
const TRIPADVISORREPLY = "Tripadvisor-antwoord";
|
|
12712
|
+
const ZOMATOREPLY = "Zomato-antwoord";
|
|
12676
12713
|
const COMMINGUP = "Binnenkort";
|
|
12677
12714
|
const TODAY = "Vandaag";
|
|
12678
12715
|
const TOMORROW = "Morgen";
|
|
@@ -12710,6 +12747,7 @@ const SPECIAL_DATES_DESC = "Speciale sluitingsdagen of afwijkende shifts (feestd
|
|
|
12710
12747
|
const SPECIAL_DATES_DESC2 = "Geef de periode op voor sluitingen of aangepaste uren. Beide datums zijn inbegrepen.";
|
|
12711
12748
|
const SPECIAL_SHIFTS = "Speciale shifts";
|
|
12712
12749
|
const ADD_SPECIAL_DATE = "Speciale datum toevoegen";
|
|
12750
|
+
const ADD_OCCASION = "Gelegenheid toevoegen";
|
|
12713
12751
|
const DELETE_SPECIAL_DATE = "Speciale datum verwijderen";
|
|
12714
12752
|
const ARE_YOU_SURE_DELETE_SPECIAL_DATE = "Weet je zeker dat je deze speciale datum wilt verwijderen?";
|
|
12715
12753
|
const RESERVATION_PREFERENCES = "Voorkeuren voor reserveringen";
|
|
@@ -12897,6 +12935,8 @@ const MENU = "Menu";
|
|
|
12897
12935
|
const SELECT_OCHTEND = "Ochtend selecteren";
|
|
12898
12936
|
const SELECT_AREA = "Gebied selecteren";
|
|
12899
12937
|
const SELECT_MENU = "Menu selecteren";
|
|
12938
|
+
const AREYOUSURECONNECTTOZOMATO = "Weet je zeker dat je verbinding wilt maken met Zomato";
|
|
12939
|
+
const AREYOUSUREDISCONNECTFROMZOMATO = "Weet je zeker dat je verbinding wilt verbreken met Zomato";
|
|
12900
12940
|
const nl$1 = {
|
|
12901
12941
|
errors,
|
|
12902
12942
|
SPECIALCLOSINGDATES,
|
|
@@ -13229,6 +13269,7 @@ const nl$1 = {
|
|
|
13229
13269
|
AREYOUSURECONNECTTOTRIPADVISOR,
|
|
13230
13270
|
TRIPADVISOR,
|
|
13231
13271
|
TRIPADVISORREPLY,
|
|
13272
|
+
ZOMATOREPLY,
|
|
13232
13273
|
COMMINGUP,
|
|
13233
13274
|
TODAY,
|
|
13234
13275
|
TOMORROW,
|
|
@@ -13266,6 +13307,7 @@ const nl$1 = {
|
|
|
13266
13307
|
SPECIAL_DATES_DESC2,
|
|
13267
13308
|
SPECIAL_SHIFTS,
|
|
13268
13309
|
ADD_SPECIAL_DATE,
|
|
13310
|
+
ADD_OCCASION,
|
|
13269
13311
|
DELETE_SPECIAL_DATE,
|
|
13270
13312
|
ARE_YOU_SURE_DELETE_SPECIAL_DATE,
|
|
13271
13313
|
RESERVATION_PREFERENCES,
|
|
@@ -13368,6 +13410,7 @@ const nl$1 = {
|
|
|
13368
13410
|
"Bing will contact you by email or post and provide you with a verification PIN code. Once you get it, please add it below so that your profile can be synchonised.": "Bing neemt contact met je op via e-mail of post en geeft je een verificatiecode. Zodra je die hebt ontvangen, voeg je hem hieronder toe zodat je profiel gesynchroniseerd kan worden.",
|
|
13369
13411
|
"Bing may require verification of the business ownership, and contact you by email or post. Please, enter below the email you want to use for verification purposes with Bing.": "Bing kan een eigendomsverificatie van je bedrijf vereisen. Geef hieronder het e-mailadres op dat je daarvoor wilt gebruiken.",
|
|
13370
13412
|
"Please, enter below the profile url of your tripadvisor.": "Voer hieronder de profiel-URL van je Tripadvisor-account in.",
|
|
13413
|
+
"Please, enter below the profile url of your zomato.": "Voer hieronder de profiel-URL van je Zomato-account in.",
|
|
13371
13414
|
"Select an account": "Selecteer een account",
|
|
13372
13415
|
"Please select an accout that you want to connect to Facebook.": "Selecteer een account dat je wilt verbinden met Facebook.",
|
|
13373
13416
|
"Please select an accout that you want to connect to Google": "Selecteer een account dat je wilt verbinden met Google",
|
|
@@ -13503,7 +13546,9 @@ const nl$1 = {
|
|
|
13503
13546
|
MENU,
|
|
13504
13547
|
SELECT_OCHTEND,
|
|
13505
13548
|
SELECT_AREA,
|
|
13506
|
-
SELECT_MENU
|
|
13549
|
+
SELECT_MENU,
|
|
13550
|
+
AREYOUSURECONNECTTOZOMATO,
|
|
13551
|
+
AREYOUSUREDISCONNECTFROMZOMATO
|
|
13507
13552
|
};
|
|
13508
13553
|
instance.use(initReactI18next).init({
|
|
13509
13554
|
// the translations
|
|
@@ -40770,25 +40815,25 @@ const ContextUserRole = React__default.createContext([
|
|
|
40770
40815
|
const label$8 = "_label_7mgn7_1";
|
|
40771
40816
|
const comment$4 = "_comment_7mgn7_5";
|
|
40772
40817
|
const translate = "_translate_7mgn7_9";
|
|
40773
|
-
const styles$
|
|
40818
|
+
const styles$2o = {
|
|
40774
40819
|
label: label$8,
|
|
40775
40820
|
comment: comment$4,
|
|
40776
40821
|
translate
|
|
40777
40822
|
};
|
|
40778
40823
|
const sronly$1 = "_sronly_1n9bw_1";
|
|
40779
|
-
const styles$
|
|
40824
|
+
const styles$2n = {
|
|
40780
40825
|
sronly: sronly$1
|
|
40781
40826
|
};
|
|
40782
40827
|
const SrOnly$1 = ({
|
|
40783
40828
|
children
|
|
40784
40829
|
}) => {
|
|
40785
40830
|
return /* @__PURE__ */ jsx$1("span", {
|
|
40786
|
-
className: styles$
|
|
40831
|
+
className: styles$2n.sronly,
|
|
40787
40832
|
children
|
|
40788
40833
|
});
|
|
40789
40834
|
};
|
|
40790
40835
|
const label$7 = "_label_1vki7_1";
|
|
40791
|
-
const styles$
|
|
40836
|
+
const styles$2m = {
|
|
40792
40837
|
label: label$7
|
|
40793
40838
|
};
|
|
40794
40839
|
var propTypes$3 = { exports: {} };
|
|
@@ -45694,7 +45739,7 @@ const icons$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
45694
45739
|
yes: yes$1
|
|
45695
45740
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
45696
45741
|
const icon$a = "_icon_69yub_1";
|
|
45697
|
-
const styles$
|
|
45742
|
+
const styles$2l = {
|
|
45698
45743
|
icon: icon$a,
|
|
45699
45744
|
"icon--small": "_icon--small_69yub_12",
|
|
45700
45745
|
"icon--medium": "_icon--medium_69yub_15",
|
|
@@ -45709,14 +45754,14 @@ const Icon$1 = ({
|
|
|
45709
45754
|
...props
|
|
45710
45755
|
}) => {
|
|
45711
45756
|
return /* @__PURE__ */ jsx$1("span", {
|
|
45712
|
-
className: classNames$2(styles$
|
|
45757
|
+
className: classNames$2(styles$2l["icon"], styles$2l[`icon--${size}`], className),
|
|
45713
45758
|
...props,
|
|
45714
45759
|
children: icons$1[icon2]()
|
|
45715
45760
|
});
|
|
45716
45761
|
};
|
|
45717
45762
|
const tooltip$2 = "_tooltip_17puf_1";
|
|
45718
45763
|
const tooltip__icon$1 = "_tooltip__icon_17puf_4";
|
|
45719
|
-
const styles$
|
|
45764
|
+
const styles$2k = {
|
|
45720
45765
|
tooltip: tooltip$2,
|
|
45721
45766
|
tooltip__icon: tooltip__icon$1
|
|
45722
45767
|
};
|
|
@@ -45724,9 +45769,9 @@ const Tooltip$2 = ({
|
|
|
45724
45769
|
children
|
|
45725
45770
|
}) => {
|
|
45726
45771
|
return /* @__PURE__ */ jsxs("div", {
|
|
45727
|
-
className: styles$
|
|
45772
|
+
className: styles$2k.tooltip,
|
|
45728
45773
|
children: [/* @__PURE__ */ jsx$1(Icon$1, {
|
|
45729
|
-
className: styles$
|
|
45774
|
+
className: styles$2k.tooltip__icon,
|
|
45730
45775
|
icon: "question",
|
|
45731
45776
|
size: "small",
|
|
45732
45777
|
"data-tip": true
|
|
@@ -45747,7 +45792,7 @@ const Label$2 = ({
|
|
|
45747
45792
|
...props
|
|
45748
45793
|
}) => {
|
|
45749
45794
|
const label2 = /* @__PURE__ */ jsxs("label", {
|
|
45750
|
-
className: styles$
|
|
45795
|
+
className: styles$2m.label,
|
|
45751
45796
|
...props,
|
|
45752
45797
|
children: [children, tooltip2 && /* @__PURE__ */ jsx$1(Tooltip$2, {
|
|
45753
45798
|
children: tooltip2
|
|
@@ -45759,7 +45804,7 @@ const Label$2 = ({
|
|
|
45759
45804
|
};
|
|
45760
45805
|
const label$6 = "_label_15hk9_1";
|
|
45761
45806
|
const translation$1 = "_translation_15hk9_6";
|
|
45762
|
-
const styles$
|
|
45807
|
+
const styles$2j = {
|
|
45763
45808
|
label: label$6,
|
|
45764
45809
|
translation: translation$1
|
|
45765
45810
|
};
|
|
@@ -45799,13 +45844,13 @@ const ReplyTranslation = ({
|
|
|
45799
45844
|
children: [isExecuting && /* @__PURE__ */ jsxs("span", {
|
|
45800
45845
|
children: [t2("TRANSLATING"), "..."]
|
|
45801
45846
|
}), !isExecuting && /* @__PURE__ */ jsxs("div", {
|
|
45802
|
-
className: styles$
|
|
45847
|
+
className: styles$2j.translation,
|
|
45803
45848
|
children: [/* @__PURE__ */ jsx$1(Label$2, {
|
|
45804
45849
|
htmlFor: "",
|
|
45805
|
-
className: styles$
|
|
45850
|
+
className: styles$2j.label,
|
|
45806
45851
|
children: t2("TRANSLATION")
|
|
45807
45852
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
45808
|
-
className: styles$
|
|
45853
|
+
className: styles$2j.translation,
|
|
45809
45854
|
children: data2 && data2.translatedText ? decodeHtmlEntities$1(data2.translatedText) : "---"
|
|
45810
45855
|
})]
|
|
45811
45856
|
})]
|
|
@@ -45825,6 +45870,24 @@ const Pointer = () => /* @__PURE__ */ jsx$1("svg", {
|
|
|
45825
45870
|
d: "M7.904 17.563a1.2 1.2 0 0 0 2.228.308l2.09-3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047-1.047a1.067 1.067 0 0 0 0-1.509l-4.907-4.907l3.113-2.09a1.2 1.2 0 0 0-.309-2.228L4 4z"
|
|
45826
45871
|
})
|
|
45827
45872
|
});
|
|
45873
|
+
const Copy = () => /* @__PURE__ */ jsx$1("svg", {
|
|
45874
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
45875
|
+
width: "24",
|
|
45876
|
+
height: "24",
|
|
45877
|
+
viewBox: "0 0 24 24",
|
|
45878
|
+
children: /* @__PURE__ */ jsxs("g", {
|
|
45879
|
+
fill: "none",
|
|
45880
|
+
stroke: "currentColor",
|
|
45881
|
+
"stroke-linecap": "round",
|
|
45882
|
+
"stroke-linejoin": "round",
|
|
45883
|
+
"stroke-width": "2",
|
|
45884
|
+
children: [/* @__PURE__ */ jsx$1("path", {
|
|
45885
|
+
d: "M7 9.667A2.667 2.667 0 0 1 9.667 7h8.666A2.667 2.667 0 0 1 21 9.667v8.666A2.667 2.667 0 0 1 18.333 21H9.667A2.667 2.667 0 0 1 7 18.333z"
|
|
45886
|
+
}), /* @__PURE__ */ jsx$1("path", {
|
|
45887
|
+
d: "M4.012 16.737A2 2 0 0 1 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1"
|
|
45888
|
+
})]
|
|
45889
|
+
})
|
|
45890
|
+
});
|
|
45828
45891
|
const Users$2 = () => /* @__PURE__ */ jsx$1("svg", {
|
|
45829
45892
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45830
45893
|
width: "24",
|
|
@@ -45946,6 +46009,16 @@ const Tripadvisor = () => /* @__PURE__ */ jsx$1("svg", {
|
|
|
45946
46009
|
})]
|
|
45947
46010
|
})
|
|
45948
46011
|
});
|
|
46012
|
+
const Zomato = () => /* @__PURE__ */ jsx$1("svg", {
|
|
46013
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46014
|
+
height: "535",
|
|
46015
|
+
viewBox: "0 0 2500 535.29",
|
|
46016
|
+
width: "2500",
|
|
46017
|
+
children: /* @__PURE__ */ jsx$1("path", {
|
|
46018
|
+
d: "m381.02 135.1-2.25 72.32-188.62 205.03c78.79 0 128.75-.77 157.56-2.37-8.35 38.91-15.14 70.72-21.98 118.41-37.89-3.2-96.96-4-156.06-4-65.88 0-123.46.79-169.67 4l1.54-73.14 188.61-204.21c-82.57 0-112.88.78-146.95 1.58 7.55-36.56 12.86-77.07 18.16-117.62 59.84 2.38 83.32 3.16 161.35 3.16 71.97.01 112.85-.78 158.31-3.16zm214.39-21.48c-122.75 0-216.64 109.67-216.64 240.84 0 98.53 56.8 174.03 167.39 174.03 123.48 0 216.65-109.69 216.65-241.63.01-97.7-55.31-173.24-167.4-173.24zm-37.13 309.46c-27.28 0-43.17-24.67-43.17-73.14 0-72.32 29.54-130.32 65.92-130.32 26.49 0 42.4 23.86 42.4 73.1-.01 71.52-28.77 130.36-65.15 130.36zm1772.1-314.9c-124.32 0-219.47 111.12-219.47 243.94 0 99.87 57.55 176.37 169.59 176.37 125.09 0 219.49-111.13 219.49-244.78.01-99.02-55.99-175.53-169.61-175.53zm-39.95 314.48c-27.29 0-43.17-24.67-43.17-73.14 0-72.32 29.55-130.31 65.92-130.31 26.48 0 42.42 23.84 42.42 73.09-.02 71.55-28.81 130.36-65.17 130.36zm-890.58-165.97c9.86-67.53 4.56-128.74-70.42-128.74-54.55 0-113.63 46.1-155.29 123.19 9.1-63.6 3.78-123.19-70.45-123.19-56.05 0-116.65 48.47-158.33 128.74 10.61-52.45 8.35-112.07 5.31-124.78-43.17 7.16-81.03 11.12-134.07 12.71 1.52 36.57-.76 84.22-7.58 129.56l-17.42 119.19c-6.82 46.91-14.4 100.95-21.98 135.13h140.9c.77-20.69 6.08-53.26 9.86-81.87l12.12-81.84c9.84-53.28 52.25-116.03 84.82-116.03 18.94 0 18.2 18.27 12.89 52.44l-13.64 92.16c-6.84 46.91-14.39 100.95-21.98 135.13h142.41c.77-20.69 5.31-53.26 9.09-81.87l12.11-81.84c9.86-53.28 52.3-116.03 84.85-116.03 18.96 0 18.21 17.46 15.15 41.32l-34.02 238.41h129.97zm680.51 147.03-15.15 93.79c-23.49 12.71-67.43 31-118.18 31-86.36 0-103.76-46.1-90.15-143.85l21.98-157.36h-42.5l12-101.86 46.4-2.24 17.43-73.91 131.03-49.29-16.65 123.19h90.15c-3.02 12.71-13.66 82.67-16.64 104.1h-87.92l-19.7 145.44c-5.3 37.35-2.25 50.87 23.47 50.87 18.98-.02 46.98-11.15 64.43-19.88zm-497.04 50.66c47.69-5.91 80.51-51.88 88.4-97.75l1.33-12.29c-20.49-4.58-50.11-8.07-78.83-4.56-27.35 3.33-50.11 14.7-62.35 31.16-9.23 11.82-13.87 25.96-11.81 42.82 3.11 25.25 31.04 44.55 63.26 40.62zm-40.59 72.64c-67.31 8.27-111.64-18.45-124.95-79.22-8.35-38.24 3.24-81.8 23.51-107.79 27.15-33.99 71.39-55.81 125.38-62.4 43.45-5.39 80.06-2.73 114.3 3.75l1.42-5.87c.98-9.39 1.97-18.76.6-29.98-3.55-28.81-26.27-45.97-82.37-39.07-37.85 4.65-73.86 18.32-101.82 33.88l-27.2-82.19c37.9-21.76 85.67-38.32 140.34-45.03 104.43-12.81 177.81 20.49 187.21 97.05 2.49 20.36 2.79 41.94.22 61.52-13.41 94.66-22 165.89-25.77 213.63-.61 7.39-.56 20.09.1 38.09l-129.59-.12c2.76-7.46 5.23-17.58 7.43-30.27 1.46-8.35 2.5-18.88 3.15-31.64-27.39 37.58-65.04 59.9-111.96 65.66z",
|
|
46019
|
+
fill: "#e23744"
|
|
46020
|
+
})
|
|
46021
|
+
});
|
|
45949
46022
|
const LetterX = () => /* @__PURE__ */ jsxs("svg", {
|
|
45950
46023
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45951
46024
|
width: "24",
|
|
@@ -47343,6 +47416,7 @@ const icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
47343
47416
|
Bing,
|
|
47344
47417
|
CalendarTime,
|
|
47345
47418
|
CheckBox,
|
|
47419
|
+
Copy,
|
|
47346
47420
|
EyeOff,
|
|
47347
47421
|
FidgetSpinner,
|
|
47348
47422
|
LetterX,
|
|
@@ -47356,6 +47430,7 @@ const icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
47356
47430
|
UserPlus,
|
|
47357
47431
|
Users: Users$2,
|
|
47358
47432
|
UsersPlus,
|
|
47433
|
+
Zomato,
|
|
47359
47434
|
apple,
|
|
47360
47435
|
armChair,
|
|
47361
47436
|
arrowDown,
|
|
@@ -47428,7 +47503,7 @@ const icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
47428
47503
|
yes
|
|
47429
47504
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
47430
47505
|
const icon$9 = "_icon_lm3br_1";
|
|
47431
|
-
const styles$
|
|
47506
|
+
const styles$2i = {
|
|
47432
47507
|
icon: icon$9,
|
|
47433
47508
|
"icon--xs": "_icon--xs_lm3br_12",
|
|
47434
47509
|
"icon--small": "_icon--small_lm3br_15",
|
|
@@ -47443,13 +47518,13 @@ const Icon = ({
|
|
|
47443
47518
|
...props
|
|
47444
47519
|
}) => {
|
|
47445
47520
|
return /* @__PURE__ */ jsx$1("span", {
|
|
47446
|
-
className: classNames$2(styles$
|
|
47521
|
+
className: classNames$2(styles$2i["icon"], styles$2i[`icon--${size}`], className),
|
|
47447
47522
|
...props,
|
|
47448
47523
|
children: React__default.createElement(icons[icon2])
|
|
47449
47524
|
});
|
|
47450
47525
|
};
|
|
47451
47526
|
const btn$2 = "_btn_g6dop_1";
|
|
47452
|
-
const styles$
|
|
47527
|
+
const styles$2h = {
|
|
47453
47528
|
btn: btn$2,
|
|
47454
47529
|
"btn--large": "_btn--large_g6dop_16",
|
|
47455
47530
|
"btn--default": "_btn--default_g6dop_20",
|
|
@@ -47477,7 +47552,7 @@ const Button$1 = ({
|
|
|
47477
47552
|
...props
|
|
47478
47553
|
}) => {
|
|
47479
47554
|
const componentProps = {
|
|
47480
|
-
className: classNames$2(styles$
|
|
47555
|
+
className: classNames$2(styles$2h["btn"], styles$2h[`btn--${mode}`], styles$2h[`btn--${size}`], "mz-btn", className),
|
|
47481
47556
|
...props
|
|
47482
47557
|
};
|
|
47483
47558
|
const IconBtn = icon2 ? /* @__PURE__ */ jsx$1(Icon, {
|
|
@@ -47502,25 +47577,25 @@ const Button$1 = ({
|
|
|
47502
47577
|
});
|
|
47503
47578
|
};
|
|
47504
47579
|
const sronly = "_sronly_1n9bw_1";
|
|
47505
|
-
const styles$
|
|
47580
|
+
const styles$2g = {
|
|
47506
47581
|
sronly
|
|
47507
47582
|
};
|
|
47508
47583
|
const SrOnly = ({
|
|
47509
47584
|
children
|
|
47510
47585
|
}) => {
|
|
47511
47586
|
return /* @__PURE__ */ jsx$1("span", {
|
|
47512
|
-
className: styles$
|
|
47587
|
+
className: styles$2g.sronly,
|
|
47513
47588
|
children
|
|
47514
47589
|
});
|
|
47515
47590
|
};
|
|
47516
47591
|
const label$5 = "_label_wrsfp_1";
|
|
47517
|
-
const styles$
|
|
47592
|
+
const styles$2f = {
|
|
47518
47593
|
label: label$5
|
|
47519
47594
|
};
|
|
47520
47595
|
const tooltipContainer = "_tooltipContainer_13ux5_1";
|
|
47521
47596
|
const tooltipBox = "_tooltipBox_13ux5_5";
|
|
47522
47597
|
const isVisible = "_isVisible_13ux5_26";
|
|
47523
|
-
const styles$
|
|
47598
|
+
const styles$2e = {
|
|
47524
47599
|
tooltipContainer,
|
|
47525
47600
|
tooltipBox,
|
|
47526
47601
|
isVisible,
|
|
@@ -47540,14 +47615,14 @@ const Tooltip$1 = ({
|
|
|
47540
47615
|
const showTooltip = () => setIsVisible(true);
|
|
47541
47616
|
const hideTooltip = () => setIsVisible(false);
|
|
47542
47617
|
return /* @__PURE__ */ jsxs("div", {
|
|
47543
|
-
className: styles$
|
|
47618
|
+
className: styles$2e.tooltipContainer,
|
|
47544
47619
|
onMouseEnter: showTooltip,
|
|
47545
47620
|
onMouseLeave: hideTooltip,
|
|
47546
47621
|
onFocus: showTooltip,
|
|
47547
47622
|
onBlur: hideTooltip,
|
|
47548
47623
|
tabIndex: 0,
|
|
47549
47624
|
children: [children, /* @__PURE__ */ jsx$1("div", {
|
|
47550
|
-
className: classNames$2(styles$
|
|
47625
|
+
className: classNames$2(styles$2e.tooltipBox, styles$2e[`tooltip--${position2}`], isVisible2 ? styles$2e.isVisible : "", className),
|
|
47551
47626
|
...props,
|
|
47552
47627
|
children: message2 ?? ""
|
|
47553
47628
|
})]
|
|
@@ -47561,7 +47636,7 @@ const Label$1 = ({
|
|
|
47561
47636
|
...props
|
|
47562
47637
|
}) => {
|
|
47563
47638
|
const label2 = /* @__PURE__ */ jsxs("label", {
|
|
47564
|
-
className: styles$
|
|
47639
|
+
className: styles$2f.label,
|
|
47565
47640
|
...props,
|
|
47566
47641
|
children: [children, tooltip2 && /* @__PURE__ */ jsx$1(Tooltip$1, {
|
|
47567
47642
|
message: tooltip2,
|
|
@@ -49492,23 +49567,23 @@ function o(o2, n, a2) {
|
|
|
49492
49567
|
}
|
|
49493
49568
|
};
|
|
49494
49569
|
}
|
|
49495
|
-
const text$
|
|
49496
|
-
const styles$
|
|
49497
|
-
text: text$
|
|
49570
|
+
const text$3 = "_text_1f1l5_1";
|
|
49571
|
+
const styles$2d = {
|
|
49572
|
+
text: text$3
|
|
49498
49573
|
};
|
|
49499
49574
|
const FieldError$1 = ({
|
|
49500
49575
|
error: error3
|
|
49501
49576
|
}) => {
|
|
49502
49577
|
if (error3) {
|
|
49503
49578
|
return /* @__PURE__ */ jsx$1("div", {
|
|
49504
|
-
className: styles$
|
|
49579
|
+
className: styles$2d.text,
|
|
49505
49580
|
children: error3.message
|
|
49506
49581
|
});
|
|
49507
49582
|
}
|
|
49508
49583
|
return null;
|
|
49509
49584
|
};
|
|
49510
49585
|
const input$5 = "_input_1ayrx_1";
|
|
49511
|
-
const styles$
|
|
49586
|
+
const styles$2c = {
|
|
49512
49587
|
input: input$5
|
|
49513
49588
|
};
|
|
49514
49589
|
const TextArea$1 = React__default.forwardRef(({
|
|
@@ -49540,7 +49615,7 @@ const TextArea$1 = React__default.forwardRef(({
|
|
|
49540
49615
|
tooltip: tooltip2,
|
|
49541
49616
|
children: label2
|
|
49542
49617
|
}), /* @__PURE__ */ jsx$1("textarea", {
|
|
49543
|
-
className: styles$
|
|
49618
|
+
className: styles$2c.input,
|
|
49544
49619
|
onChange: handleChange,
|
|
49545
49620
|
id: id2,
|
|
49546
49621
|
name: id2,
|
|
@@ -49682,11 +49757,11 @@ const ReplyForm = ({
|
|
|
49682
49757
|
marginTop: 10
|
|
49683
49758
|
},
|
|
49684
49759
|
children: [!showTranslation && locale2 !== "en" && /* @__PURE__ */ jsx$1("span", {
|
|
49685
|
-
className: styles$
|
|
49760
|
+
className: styles$2o.translate,
|
|
49686
49761
|
onClick: () => setShowTranslation(true),
|
|
49687
49762
|
children: t2("SHOWTRANSLATION")
|
|
49688
49763
|
}), showTranslation && locale2 !== "en" && /* @__PURE__ */ jsx$1("span", {
|
|
49689
|
-
className: styles$
|
|
49764
|
+
className: styles$2o.translate,
|
|
49690
49765
|
onClick: () => setShowTranslation(false),
|
|
49691
49766
|
children: t2("HIDETRANSLATION")
|
|
49692
49767
|
})]
|
|
@@ -49735,7 +49810,7 @@ const ReplyForm = ({
|
|
|
49735
49810
|
const label$4 = "_label_x1r40_1";
|
|
49736
49811
|
const comment$1 = "_comment_x1r40_7";
|
|
49737
49812
|
const date$3 = "_date_x1r40_12";
|
|
49738
|
-
const styles$
|
|
49813
|
+
const styles$2b = {
|
|
49739
49814
|
label: label$4,
|
|
49740
49815
|
comment: comment$1,
|
|
49741
49816
|
date: date$3
|
|
@@ -49749,13 +49824,13 @@ const Reply = ({
|
|
|
49749
49824
|
return /* @__PURE__ */ jsxs("div", {
|
|
49750
49825
|
children: [/* @__PURE__ */ jsx$1(Label$2, {
|
|
49751
49826
|
htmlFor: "",
|
|
49752
|
-
className: styles$
|
|
49827
|
+
className: styles$2b.label,
|
|
49753
49828
|
children: t2("REPLY")
|
|
49754
49829
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
49755
|
-
className: styles$
|
|
49830
|
+
className: styles$2b.comment,
|
|
49756
49831
|
children: reply2.comment
|
|
49757
49832
|
}), /* @__PURE__ */ jsx$1("span", {
|
|
49758
|
-
className: styles$
|
|
49833
|
+
className: styles$2b.date,
|
|
49759
49834
|
children: reply2.createdAt
|
|
49760
49835
|
}), /* @__PURE__ */ jsx$1("br", {})]
|
|
49761
49836
|
});
|
|
@@ -49832,7 +49907,8 @@ const StartScore = ({
|
|
|
49832
49907
|
const platformImages = {
|
|
49833
49908
|
tripadvisor: "https://static.tacdn.com/img2/brand_refresh/Tripadvisor_logoset_solid_green.svg",
|
|
49834
49909
|
facebook: "https://play-lh.googleusercontent.com/5pZMqQYClc5McEjaISPkvhF8pDmlbLqraTMwk1eeqTlnUSjVxPCq-MItIrJPJGe7xW4",
|
|
49835
|
-
google: "data:imagepng;base64,iVBORw0KGgoAAAANSUhEUgAAAHcAAAB6CAMAAACyeTxmAAABJlBMVEX////pQjU0qFNChfT6uwWAqvk5gfQzf/Tm7v690Pv6tgD6uQAwp1DpQDPpPC7/vADoOCklpEnn8+r63Nv98fD1sKz7wADoNjff8OPy+fT86ejrUkfoLBnoMSD4+v8QoT/sYlnudGzxj4nrST3nHQD4zszoJhD3phX/+vD7viX/9OD+8NL81IX95rj93Zb+35/94qpglvbd5/1DrV7R6NbC4cn3v7vynZjsWlD0pqHue3Txh4DtZmX1jwD80HHrVTDubSvyiCPweif1lh37xUjsTQn7xTrQ3vz8zFwhd/RJozXQtiaExZOauvmmsjh5rUWaz6beuB9Uqk3BtTCPsD+txvpmvYax2rpjuXMml5A1o3BAiec/kM4/mrA3n4kxpWI7k7yEsOVV1wY9AAAFRElEQVRoge2YaXvaRhDHhSyDDZLQIkwNSBaHIT5ip7E4fLTunYRGaUlaY9I2Pb7/l+iKW2J2pV1J+Hla/i/8xqCf5j8zO7MIwlZbbbXVZlSs6FNVipsi6r1+vVZtKupEqep1/e5AryQL1W/qVcPQVFVZkaqZbaXW6CUVud64NkxVSUHCcEO5TQBdvKkeazBzyTbMhh4rtXJnmHToDK0d11pxUgNCXZFqXMdDLjY0LSx0SjbrMbjda4Zy2CNNvYlIrdyyU7EUsxapo1sKm8VLqWaPH9s/5gl2FrLR4MXWDG6qK7PGdYxUqrwez6VVOepab6oRsdjqA2ZsKxUda7JjdeVJsJXo0aY4TBZiwLY5sLWolZxKHXNgG2bAQ90p324bhvvHhEYVTyULPfpxoWjt6m2/hze6It7uWgeNmmn4thAubKVJORwVzaz1dd85VOnV1dXxwVPJglCnJFdTb+GhXukvxyUftkdOLnWg4/Vg1gQ8JgvFFNFlrUlfYPTa5JV5GkgQ7kguK+27wC/32wpXA+E8kVwON8dbKl+0wheEg0pthhtpOh/2/EsCtprsBei+9Oyrz6Bok8WeZaVS7us1sKIlfN27zEmSVPrGD27Hd/WAJblcqfTMCzb7CWMvstJEJWk1yep1wljhPifNVPp2AVa0eK+W6zo5XXCl0ncbc1k4z0pLzRtKaSb+w8nznLQKnjaUGfVmF6zvPdxpQympxMM9k/zCDaUFD6Go8qR37vUPSRezILzIrXEl6RXtG6932fQafMobgJt7TuPuD9IsyuyCT/GXlavsBZWb2WHSS+ghJ68g7kmc3J0j4CHr5YxtPqVh2bl7wEPOofS+iZWbvgrLpZYVOxcq6Iv19pWyl7FyM/thuS82wIXK+fP/MPepfH6iutpAH4XnxntugFzwnJRi5YLnxgbmAnhOCiA31jkIc8G5fx8nF5yD4J6TO6UZvT/IEAVhwbkP7XV56ccOhXu0RxZkM8xdL+j8Wxk5FC7tlQbr3Mw7+LO+BSuX/0kURbnAxYVSD7av4L+n5KWfMVZEQy7ubhrgguXsS3D+/QcXK8o2T8BHYFmB5ey9h+Z/EWfiyvADYHMaXp+FlXt3Lv+ruBA6ZMYevQTCzTyQPj4fhXnpwxKLnWbm7gPVTEwv1tTo/HvRI2anwewS04t1mZ23j0dWl437Djqt0oTudXWSnbePL2KmFO8DPUS1GVfWvH28YmqmK9BlwuE809lbgMoGPtqBwyVW80QjmQCWaQNiRXswdidDripXhxbMFWX0GAZ7RcDSqmoiBxHAojUKxj5AjetqQA9XEMo2wWlc1WJAPx2OP6YJ4RLPyIW6xICx12NKlgsOktFvv4ObRjooXKwRGeySu2XwWx1HRBNP/oAmb1B2J+9NdtolW7bT8aHLneEYofn/PwHgEOFip0k1PY/ZEkfDx27BVaf76IxlC628qvWnv6Yz8A9XaxrSwRM2smZCyG8P+subZMLvVoDGlBSHkGz9vdpPlEHkFzXFIWR9zCy8hm8JsChdHE7LhhoQtkhYh5HBs4Ya0OdB/GAZfcKHV/iaig3sNhQ71j0/olW121D/sGOxRoF9HBAw5+UKHyARvJYR4zq4og6/18hm3/eXKjtrx2C4YC0Hnluh1eUJGdn8Hi9CHsqMZISGEYOdkR2LgYwsJ0pmPSoMUbjSxsPZ4fuFgKTu2AoqMQy143HYo4K7zZDYMoaOhyGXe3b0o2Mjd8WQ5QVPdpcPNB4NY8sqqHKhg1cq254iRdsej5zHTiF+e2F6uXDoqrAp4FZbbfW/179wN6bIyeplrwAAAABJRU5ErkJggg=="
|
|
49910
|
+
google: "data:imagepng;base64,iVBORw0KGgoAAAANSUhEUgAAAHcAAAB6CAMAAACyeTxmAAABJlBMVEX////pQjU0qFNChfT6uwWAqvk5gfQzf/Tm7v690Pv6tgD6uQAwp1DpQDPpPC7/vADoOCklpEnn8+r63Nv98fD1sKz7wADoNjff8OPy+fT86ejrUkfoLBnoMSD4+v8QoT/sYlnudGzxj4nrST3nHQD4zszoJhD3phX/+vD7viX/9OD+8NL81IX95rj93Zb+35/94qpglvbd5/1DrV7R6NbC4cn3v7vynZjsWlD0pqHue3Txh4DtZmX1jwD80HHrVTDubSvyiCPweif1lh37xUjsTQn7xTrQ3vz8zFwhd/RJozXQtiaExZOauvmmsjh5rUWaz6beuB9Uqk3BtTCPsD+txvpmvYax2rpjuXMml5A1o3BAiec/kM4/mrA3n4kxpWI7k7yEsOVV1wY9AAAFRElEQVRoge2YaXvaRhDHhSyDDZLQIkwNSBaHIT5ip7E4fLTunYRGaUlaY9I2Pb7/l+iKW2J2pV1J+Hla/i/8xqCf5j8zO7MIwlZbbbXVZlSs6FNVipsi6r1+vVZtKupEqep1/e5AryQL1W/qVcPQVFVZkaqZbaXW6CUVud64NkxVSUHCcEO5TQBdvKkeazBzyTbMhh4rtXJnmHToDK0d11pxUgNCXZFqXMdDLjY0LSx0SjbrMbjda4Zy2CNNvYlIrdyyU7EUsxapo1sKm8VLqWaPH9s/5gl2FrLR4MXWDG6qK7PGdYxUqrwez6VVOepab6oRsdjqA2ZsKxUda7JjdeVJsJXo0aY4TBZiwLY5sLWolZxKHXNgG2bAQ90p324bhvvHhEYVTyULPfpxoWjt6m2/hze6It7uWgeNmmn4thAubKVJORwVzaz1dd85VOnV1dXxwVPJglCnJFdTb+GhXukvxyUftkdOLnWg4/Vg1gQ8JgvFFNFlrUlfYPTa5JV5GkgQ7kguK+27wC/32wpXA+E8kVwON8dbKl+0wheEg0pthhtpOh/2/EsCtprsBei+9Oyrz6Bok8WeZaVS7us1sKIlfN27zEmSVPrGD27Hd/WAJblcqfTMCzb7CWMvstJEJWk1yep1wljhPifNVPp2AVa0eK+W6zo5XXCl0ncbc1k4z0pLzRtKaSb+w8nznLQKnjaUGfVmF6zvPdxpQympxMM9k/zCDaUFD6Go8qR37vUPSRezILzIrXEl6RXtG6932fQafMobgJt7TuPuD9IsyuyCT/GXlavsBZWb2WHSS+ghJ68g7kmc3J0j4CHr5YxtPqVh2bl7wEPOofS+iZWbvgrLpZYVOxcq6Iv19pWyl7FyM/thuS82wIXK+fP/MPepfH6iutpAH4XnxntugFzwnJRi5YLnxgbmAnhOCiA31jkIc8G5fx8nF5yD4J6TO6UZvT/IEAVhwbkP7XV56ccOhXu0RxZkM8xdL+j8Wxk5FC7tlQbr3Mw7+LO+BSuX/0kURbnAxYVSD7av4L+n5KWfMVZEQy7ubhrgguXsS3D+/QcXK8o2T8BHYFmB5ey9h+Z/EWfiyvADYHMaXp+FlXt3Lv+ruBA6ZMYevQTCzTyQPj4fhXnpwxKLnWbm7gPVTEwv1tTo/HvRI2anwewS04t1mZ23j0dWl437Djqt0oTudXWSnbePL2KmFO8DPUS1GVfWvH28YmqmK9BlwuE809lbgMoGPtqBwyVW80QjmQCWaQNiRXswdidDripXhxbMFWX0GAZ7RcDSqmoiBxHAojUKxj5AjetqQA9XEMo2wWlc1WJAPx2OP6YJ4RLPyIW6xICx12NKlgsOktFvv4ObRjooXKwRGeySu2XwWx1HRBNP/oAmb1B2J+9NdtolW7bT8aHLneEYofn/PwHgEOFip0k1PY/ZEkfDx27BVaf76IxlC628qvWnv6Yz8A9XaxrSwRM2smZCyG8P+subZMLvVoDGlBSHkGz9vdpPlEHkFzXFIWR9zCy8hm8JsChdHE7LhhoQtkhYh5HBs4Ya0OdB/GAZfcKHV/iaig3sNhQ71j0/olW121D/sGOxRoF9HBAw5+UKHyARvJYR4zq4og6/18hm3/eXKjtrx2C4YC0Hnluh1eUJGdn8Hi9CHsqMZISGEYOdkR2LgYwsJ0pmPSoMUbjSxsPZ4fuFgKTu2AoqMQy143HYo4K7zZDYMoaOhyGXe3b0o2Mjd8WQ5QVPdpcPNB4NY8sqqHKhg1cq254iRdsej5zHTiF+e2F6uXDoqrAp4FZbbfW/179wN6bIyeplrwAAAABJRU5ErkJggg==",
|
|
49911
|
+
zomato: "https://b.zmtcdn.com/web/assets/2267aec184e096c98c46a1565a5563661664945464.png"
|
|
49836
49912
|
};
|
|
49837
49913
|
const detail$1 = "_detail_ypeoh_1";
|
|
49838
49914
|
const hidden = "_hidden_ypeoh_14";
|
|
@@ -49841,7 +49917,7 @@ const back = "_back_ypeoh_30";
|
|
|
49841
49917
|
const statusbar = "_statusbar_ypeoh_38";
|
|
49842
49918
|
const statusbar__icons = "_statusbar__icons_ypeoh_44";
|
|
49843
49919
|
const platform$1 = "_platform_ypeoh_48";
|
|
49844
|
-
const styles$
|
|
49920
|
+
const styles$2a = {
|
|
49845
49921
|
detail: detail$1,
|
|
49846
49922
|
hidden,
|
|
49847
49923
|
reviewer: reviewer$1,
|
|
@@ -49864,39 +49940,46 @@ const Comment = ({
|
|
|
49864
49940
|
t: t2
|
|
49865
49941
|
} = useTranslation();
|
|
49866
49942
|
const [lang2] = useContext(ContextLang);
|
|
49943
|
+
const parseHtml = (text2) => {
|
|
49944
|
+
if (!text2) return "";
|
|
49945
|
+
return text2.replace(/<br\s*\/?>/gi, "<br />");
|
|
49946
|
+
};
|
|
49947
|
+
const parsedComment = parseHtml(children);
|
|
49867
49948
|
return /* @__PURE__ */ jsxs("div", {
|
|
49868
49949
|
children: [/* @__PURE__ */ jsx$1(Label$2, {
|
|
49869
49950
|
htmlFor: "",
|
|
49870
|
-
className: styles$
|
|
49951
|
+
className: styles$2o.label,
|
|
49871
49952
|
children: t2("REVIEW")
|
|
49872
49953
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
49873
|
-
className: styles$
|
|
49874
|
-
|
|
49954
|
+
className: styles$2o.comment,
|
|
49955
|
+
dangerouslySetInnerHTML: {
|
|
49956
|
+
__html: parsedComment
|
|
49957
|
+
}
|
|
49875
49958
|
}), !showTranslation && locale2 !== lang2 && /* @__PURE__ */ jsx$1("span", {
|
|
49876
|
-
className: styles$
|
|
49959
|
+
className: styles$2o.translate,
|
|
49877
49960
|
onClick: () => setShowTranslation(true),
|
|
49878
49961
|
children: t2("SHOWTRANSLATION")
|
|
49879
49962
|
}), showTranslation && locale2 !== lang2 && /* @__PURE__ */ jsx$1("span", {
|
|
49880
|
-
className: styles$
|
|
49963
|
+
className: styles$2o.translate,
|
|
49881
49964
|
onClick: () => setShowTranslation(false),
|
|
49882
49965
|
children: t2("HIDETRANSLATION")
|
|
49883
49966
|
})]
|
|
49884
49967
|
});
|
|
49885
49968
|
};
|
|
49886
49969
|
const flag = "_flag_wd4ay_1";
|
|
49887
|
-
const styles$
|
|
49970
|
+
const styles$29 = {
|
|
49888
49971
|
flag
|
|
49889
49972
|
};
|
|
49890
49973
|
const CountryFlag = ({
|
|
49891
49974
|
locale: locale2
|
|
49892
49975
|
}) => {
|
|
49893
49976
|
return /* @__PURE__ */ jsx$1("span", {
|
|
49894
|
-
className: `fib fi-${locale2 === "en" ? "gb" : locale2} ${styles$
|
|
49977
|
+
className: `fib fi-${locale2 === "en" ? "gb" : locale2} ${styles$29.flag}`
|
|
49895
49978
|
});
|
|
49896
49979
|
};
|
|
49897
49980
|
const label$3 = "_label_15hk9_1";
|
|
49898
49981
|
const translation = "_translation_15hk9_6";
|
|
49899
|
-
const styles$
|
|
49982
|
+
const styles$28 = {
|
|
49900
49983
|
label: label$3,
|
|
49901
49984
|
translation
|
|
49902
49985
|
};
|
|
@@ -49939,13 +50022,13 @@ const CommentTranslation = ({
|
|
|
49939
50022
|
children: [isLoading && /* @__PURE__ */ jsxs("span", {
|
|
49940
50023
|
children: [t2("TRANSLATING"), "..."]
|
|
49941
50024
|
}), !isLoading && /* @__PURE__ */ jsxs("div", {
|
|
49942
|
-
className: styles$
|
|
50025
|
+
className: styles$28.translation,
|
|
49943
50026
|
children: [/* @__PURE__ */ jsx$1(Label$2, {
|
|
49944
50027
|
htmlFor: "",
|
|
49945
|
-
className: styles$
|
|
50028
|
+
className: styles$28.label,
|
|
49946
50029
|
children: t2("TRANSLATION")
|
|
49947
50030
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
49948
|
-
className: styles$
|
|
50031
|
+
className: styles$28.translation,
|
|
49949
50032
|
children: decodeHtmlEntities(data2 || "")
|
|
49950
50033
|
})]
|
|
49951
50034
|
})]
|
|
@@ -49953,7 +50036,7 @@ const CommentTranslation = ({
|
|
|
49953
50036
|
};
|
|
49954
50037
|
const label$2 = "_label_13kaz_1";
|
|
49955
50038
|
const title$3 = "_title_13kaz_5";
|
|
49956
|
-
const styles$
|
|
50039
|
+
const styles$27 = {
|
|
49957
50040
|
label: label$2,
|
|
49958
50041
|
title: title$3
|
|
49959
50042
|
};
|
|
@@ -49966,10 +50049,10 @@ const Title = ({
|
|
|
49966
50049
|
return /* @__PURE__ */ jsxs("div", {
|
|
49967
50050
|
children: [/* @__PURE__ */ jsx$1(Label$2, {
|
|
49968
50051
|
htmlFor: "",
|
|
49969
|
-
className: styles$
|
|
50052
|
+
className: styles$27.label,
|
|
49970
50053
|
children: t2("TITLE")
|
|
49971
50054
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
49972
|
-
className: styles$
|
|
50055
|
+
className: styles$27.title,
|
|
49973
50056
|
children
|
|
49974
50057
|
})]
|
|
49975
50058
|
});
|
|
@@ -50146,9 +50229,9 @@ const formatData$k = (data2) => {
|
|
|
50146
50229
|
return 0;
|
|
50147
50230
|
});
|
|
50148
50231
|
};
|
|
50149
|
-
const text$
|
|
50150
|
-
const styles$
|
|
50151
|
-
text: text$
|
|
50232
|
+
const text$2 = "_text_12cto_1";
|
|
50233
|
+
const styles$26 = {
|
|
50234
|
+
text: text$2
|
|
50152
50235
|
};
|
|
50153
50236
|
const tagsMap$2 = {
|
|
50154
50237
|
business_name: "@Business name",
|
|
@@ -50160,7 +50243,7 @@ const TemplateText = ({
|
|
|
50160
50243
|
text: text2
|
|
50161
50244
|
}) => {
|
|
50162
50245
|
return /* @__PURE__ */ jsx$1("p", {
|
|
50163
|
-
className: styles$
|
|
50246
|
+
className: styles$26.text,
|
|
50164
50247
|
children: text2.split("@@").map((item2, index2) => {
|
|
50165
50248
|
if (tagsMap$2[item2]) {
|
|
50166
50249
|
return /* @__PURE__ */ jsx$1("span", {
|
|
@@ -50172,7 +50255,7 @@ const TemplateText = ({
|
|
|
50172
50255
|
});
|
|
50173
50256
|
};
|
|
50174
50257
|
const button$7 = "_button_1hbqp_1";
|
|
50175
|
-
const styles$
|
|
50258
|
+
const styles$25 = {
|
|
50176
50259
|
button: button$7
|
|
50177
50260
|
};
|
|
50178
50261
|
const Template$1 = ({
|
|
@@ -50187,7 +50270,7 @@ const Template$1 = ({
|
|
|
50187
50270
|
children: [/* @__PURE__ */ jsx$1(TemplateText, {
|
|
50188
50271
|
text: text2
|
|
50189
50272
|
}), /* @__PURE__ */ jsx$1("button", {
|
|
50190
|
-
className: styles$
|
|
50273
|
+
className: styles$25.button,
|
|
50191
50274
|
onClick: handleClickUse,
|
|
50192
50275
|
children: "Use"
|
|
50193
50276
|
})]
|
|
@@ -50196,7 +50279,7 @@ const Template$1 = ({
|
|
|
50196
50279
|
const container$z = "_container_1ej4w_1";
|
|
50197
50280
|
const hide$1 = "_hide_1ej4w_8";
|
|
50198
50281
|
const toolbar$3 = "_toolbar_1ej4w_12";
|
|
50199
|
-
const styles$
|
|
50282
|
+
const styles$24 = {
|
|
50200
50283
|
container: container$z,
|
|
50201
50284
|
hide: hide$1,
|
|
50202
50285
|
toolbar: toolbar$3
|
|
@@ -56276,7 +56359,7 @@ var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
56276
56359
|
});
|
|
56277
56360
|
const tooltip$1 = "_tooltip_17puf_1";
|
|
56278
56361
|
const tooltip__icon = "_tooltip__icon_17puf_4";
|
|
56279
|
-
const styles$
|
|
56362
|
+
const styles$23 = {
|
|
56280
56363
|
tooltip: tooltip$1,
|
|
56281
56364
|
tooltip__icon
|
|
56282
56365
|
};
|
|
@@ -56284,9 +56367,9 @@ const LockTooltip = ({
|
|
|
56284
56367
|
children
|
|
56285
56368
|
}) => {
|
|
56286
56369
|
return /* @__PURE__ */ jsxs("div", {
|
|
56287
|
-
className: styles$
|
|
56370
|
+
className: styles$23.tooltip,
|
|
56288
56371
|
children: [/* @__PURE__ */ jsx$1(Icon$1, {
|
|
56289
|
-
className: styles$
|
|
56372
|
+
className: styles$23.tooltip__icon,
|
|
56290
56373
|
icon: "lock",
|
|
56291
56374
|
size: "small",
|
|
56292
56375
|
"data-tip": children
|
|
@@ -56300,7 +56383,7 @@ const LockTooltip = ({
|
|
|
56300
56383
|
};
|
|
56301
56384
|
const container$y = "_container_ut3y7_1";
|
|
56302
56385
|
const tooltip = "_tooltip_ut3y7_5";
|
|
56303
|
-
const styles$
|
|
56386
|
+
const styles$22 = {
|
|
56304
56387
|
container: container$y,
|
|
56305
56388
|
tooltip
|
|
56306
56389
|
};
|
|
@@ -56329,7 +56412,7 @@ const NewSelect = ({
|
|
|
56329
56412
|
...props
|
|
56330
56413
|
}) => {
|
|
56331
56414
|
return /* @__PURE__ */ jsxs("div", {
|
|
56332
|
-
className: styles$
|
|
56415
|
+
className: styles$22.container,
|
|
56333
56416
|
children: [label2 && /* @__PURE__ */ jsx$1(Label$2, {
|
|
56334
56417
|
htmlFor: id2,
|
|
56335
56418
|
children: label2
|
|
@@ -56343,7 +56426,7 @@ const NewSelect = ({
|
|
|
56343
56426
|
id: id2,
|
|
56344
56427
|
isDisabled
|
|
56345
56428
|
}), isDisabled && /* @__PURE__ */ jsx$1("div", {
|
|
56346
|
-
className: styles$
|
|
56429
|
+
className: styles$22.tooltip,
|
|
56347
56430
|
children: /* @__PURE__ */ jsx$1(LockTooltip, {
|
|
56348
56431
|
children: disabledTooltip
|
|
56349
56432
|
})
|
|
@@ -56419,12 +56502,12 @@ const filterTemplatesByLanguage = (templates, language) => {
|
|
|
56419
56502
|
};
|
|
56420
56503
|
const header$9 = "_header_1jmjy_1";
|
|
56421
56504
|
const icon$8 = "_icon_1jmjy_11";
|
|
56422
|
-
const styles$
|
|
56505
|
+
const styles$21 = {
|
|
56423
56506
|
header: header$9,
|
|
56424
56507
|
icon: icon$8
|
|
56425
56508
|
};
|
|
56426
56509
|
const heading = "_heading_1fifa_1";
|
|
56427
|
-
const styles$
|
|
56510
|
+
const styles$20 = {
|
|
56428
56511
|
heading,
|
|
56429
56512
|
"heading--large": "_heading--large_1fifa_7",
|
|
56430
56513
|
"heading--medium": "_heading--medium_1fifa_15",
|
|
@@ -56440,7 +56523,7 @@ const Heading = ({
|
|
|
56440
56523
|
const Tag2 = level;
|
|
56441
56524
|
return /* @__PURE__ */ jsx$1(Tag2, {
|
|
56442
56525
|
id: id2,
|
|
56443
|
-
className: classNames$2(styles$
|
|
56526
|
+
className: classNames$2(styles$20["heading"], styles$20[`heading--${size}`]),
|
|
56444
56527
|
...props,
|
|
56445
56528
|
children
|
|
56446
56529
|
});
|
|
@@ -56455,18 +56538,18 @@ const Header$6 = ({
|
|
|
56455
56538
|
return header2;
|
|
56456
56539
|
}
|
|
56457
56540
|
return /* @__PURE__ */ jsxs("div", {
|
|
56458
|
-
className: styles$
|
|
56541
|
+
className: styles$21.header,
|
|
56459
56542
|
children: [/* @__PURE__ */ jsx$1(Heading, {
|
|
56460
56543
|
children: header2.title
|
|
56461
56544
|
}), typeof header2.icon === "string" && /* @__PURE__ */ jsx$1(Icon, {
|
|
56462
56545
|
icon: header2.icon,
|
|
56463
56546
|
onClick: header2.onClickIcon,
|
|
56464
|
-
className: styles$
|
|
56547
|
+
className: styles$21.icon
|
|
56465
56548
|
}), typeof header2.icon !== "string" && header2.icon && header2.icon]
|
|
56466
56549
|
});
|
|
56467
56550
|
};
|
|
56468
56551
|
const container$x = "_container_pc1hp_1";
|
|
56469
|
-
const styles$
|
|
56552
|
+
const styles$1$ = {
|
|
56470
56553
|
container: container$x
|
|
56471
56554
|
};
|
|
56472
56555
|
const Card$1 = ({
|
|
@@ -56478,12 +56561,12 @@ const Card$1 = ({
|
|
|
56478
56561
|
}) => {
|
|
56479
56562
|
return /* @__PURE__ */ jsx$1(Fragment, {
|
|
56480
56563
|
children: /* @__PURE__ */ jsxs("div", {
|
|
56481
|
-
className: classNames$2(styles$
|
|
56564
|
+
className: classNames$2(styles$1$.container, className, "mz-card"),
|
|
56482
56565
|
style: style2,
|
|
56483
56566
|
children: [/* @__PURE__ */ jsx$1(Header$6, {
|
|
56484
56567
|
header: header2
|
|
56485
56568
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
56486
|
-
className: classNames$2(styles$
|
|
56569
|
+
className: classNames$2(styles$1$.content, classNameContent),
|
|
56487
56570
|
children
|
|
56488
56571
|
})]
|
|
56489
56572
|
})
|
|
@@ -56555,11 +56638,11 @@ const TemplatesModal = ({
|
|
|
56555
56638
|
icon: "close",
|
|
56556
56639
|
onClickIcon: onClose2
|
|
56557
56640
|
},
|
|
56558
|
-
className: classNames$2(styles$
|
|
56559
|
-
[styles$
|
|
56641
|
+
className: classNames$2(styles$24.container, {
|
|
56642
|
+
[styles$24.hide]: !open
|
|
56560
56643
|
}),
|
|
56561
56644
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
56562
|
-
className: styles$
|
|
56645
|
+
className: styles$24.toolbar,
|
|
56563
56646
|
children: [/* @__PURE__ */ jsx$1(NewSelect, {
|
|
56564
56647
|
label: t2("REPLYTEMPLATETYPE"),
|
|
56565
56648
|
options: typeOptions,
|
|
@@ -56586,6 +56669,123 @@ const TemplatesModal = ({
|
|
|
56586
56669
|
})]
|
|
56587
56670
|
});
|
|
56588
56671
|
};
|
|
56672
|
+
const Modal$1 = ({
|
|
56673
|
+
open,
|
|
56674
|
+
children,
|
|
56675
|
+
onClose: onClose2,
|
|
56676
|
+
title: title2,
|
|
56677
|
+
width
|
|
56678
|
+
}) => {
|
|
56679
|
+
return /* @__PURE__ */ jsx$1(Modal$2, {
|
|
56680
|
+
className: "resbook-modal",
|
|
56681
|
+
title: /* @__PURE__ */ jsxs(Fragment, {
|
|
56682
|
+
children: [typeof title2 === "string" && /* @__PURE__ */ jsx$1(Heading, {
|
|
56683
|
+
children: title2
|
|
56684
|
+
}), typeof title2 !== "string" && !!title2 ? title2 : /* @__PURE__ */ jsx$1("div", {})]
|
|
56685
|
+
}),
|
|
56686
|
+
open,
|
|
56687
|
+
onCancel: onClose2,
|
|
56688
|
+
width: width || 1e3,
|
|
56689
|
+
footer: null,
|
|
56690
|
+
closeIcon: /* @__PURE__ */ jsx$1(Icon, {
|
|
56691
|
+
icon: "close",
|
|
56692
|
+
size: "small"
|
|
56693
|
+
}),
|
|
56694
|
+
centered: true,
|
|
56695
|
+
zIndex: 1032,
|
|
56696
|
+
children
|
|
56697
|
+
});
|
|
56698
|
+
};
|
|
56699
|
+
const content$b = "_content_1dgv9_1";
|
|
56700
|
+
const text$1 = "_text_1dgv9_5";
|
|
56701
|
+
const replyBox = "_replyBox_1dgv9_9";
|
|
56702
|
+
const loading$3 = "_loading_1dgv9_18";
|
|
56703
|
+
const actions = "_actions_1dgv9_33";
|
|
56704
|
+
const styles$1_ = {
|
|
56705
|
+
content: content$b,
|
|
56706
|
+
text: text$1,
|
|
56707
|
+
replyBox,
|
|
56708
|
+
loading: loading$3,
|
|
56709
|
+
actions
|
|
56710
|
+
};
|
|
56711
|
+
const AiReplyModal = ({
|
|
56712
|
+
open,
|
|
56713
|
+
replyText,
|
|
56714
|
+
isLoading,
|
|
56715
|
+
onClose: onClose2,
|
|
56716
|
+
onGoToExternal,
|
|
56717
|
+
externalButtonLabel,
|
|
56718
|
+
onSuggestAnother
|
|
56719
|
+
}) => {
|
|
56720
|
+
const {
|
|
56721
|
+
t: t2
|
|
56722
|
+
} = useTranslation();
|
|
56723
|
+
const [copied, setCopied] = useState(false);
|
|
56724
|
+
const handleCopy = () => {
|
|
56725
|
+
if (!replyText) return;
|
|
56726
|
+
if (navigator && navigator.clipboard && navigator.clipboard.writeText) {
|
|
56727
|
+
navigator.clipboard.writeText(replyText);
|
|
56728
|
+
} else {
|
|
56729
|
+
const textarea2 = document.createElement("textarea");
|
|
56730
|
+
textarea2.value = replyText;
|
|
56731
|
+
textarea2.style.position = "fixed";
|
|
56732
|
+
textarea2.style.left = "-9999px";
|
|
56733
|
+
document.body.appendChild(textarea2);
|
|
56734
|
+
textarea2.select();
|
|
56735
|
+
document.execCommand("copy");
|
|
56736
|
+
document.body.removeChild(textarea2);
|
|
56737
|
+
}
|
|
56738
|
+
setCopied(true);
|
|
56739
|
+
};
|
|
56740
|
+
useEffect(() => {
|
|
56741
|
+
if (!copied) return;
|
|
56742
|
+
const timer = setTimeout(() => {
|
|
56743
|
+
setCopied(false);
|
|
56744
|
+
}, 2e3);
|
|
56745
|
+
return () => clearTimeout(timer);
|
|
56746
|
+
}, [copied]);
|
|
56747
|
+
return /* @__PURE__ */ jsx$1(Modal$1, {
|
|
56748
|
+
open,
|
|
56749
|
+
onClose: onClose2,
|
|
56750
|
+
title: t2("SUGGESTREPLY"),
|
|
56751
|
+
width: 600,
|
|
56752
|
+
children: /* @__PURE__ */ jsx$1("div", {
|
|
56753
|
+
className: styles$1_.content,
|
|
56754
|
+
children: isLoading ? /* @__PURE__ */ jsx$1("div", {
|
|
56755
|
+
className: styles$1_.loading,
|
|
56756
|
+
children: /* @__PURE__ */ jsx$1(Spinner$1, {})
|
|
56757
|
+
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
56758
|
+
children: [/* @__PURE__ */ jsx$1("div", {
|
|
56759
|
+
className: styles$1_.replyBox,
|
|
56760
|
+
children: /* @__PURE__ */ jsx$1("p", {
|
|
56761
|
+
className: styles$1_.text,
|
|
56762
|
+
children: replyText
|
|
56763
|
+
})
|
|
56764
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
56765
|
+
className: styles$1_.actions,
|
|
56766
|
+
children: [/* @__PURE__ */ jsx$1(Button$1, {
|
|
56767
|
+
size: "small",
|
|
56768
|
+
mode: "secondary",
|
|
56769
|
+
icon: "robot",
|
|
56770
|
+
onClick: onSuggestAnother,
|
|
56771
|
+
children: t2("SUGGESTREPLY")
|
|
56772
|
+
}), /* @__PURE__ */ jsx$1(Button$1, {
|
|
56773
|
+
size: "small",
|
|
56774
|
+
mode: copied ? "success" : "secondary",
|
|
56775
|
+
icon: copied ? "check" : "Copy",
|
|
56776
|
+
onClick: handleCopy,
|
|
56777
|
+
children: copied ? t2("Copied") : t2("Copy")
|
|
56778
|
+
}), /* @__PURE__ */ jsx$1(Button$1, {
|
|
56779
|
+
size: "small",
|
|
56780
|
+
mode: "primary",
|
|
56781
|
+
onClick: onGoToExternal,
|
|
56782
|
+
children: externalButtonLabel
|
|
56783
|
+
})]
|
|
56784
|
+
})]
|
|
56785
|
+
})
|
|
56786
|
+
})
|
|
56787
|
+
});
|
|
56788
|
+
};
|
|
56589
56789
|
const DetailMobile = ({
|
|
56590
56790
|
id: id2,
|
|
56591
56791
|
reply: reply2,
|
|
@@ -56598,6 +56798,7 @@ const DetailMobile = ({
|
|
|
56598
56798
|
locationName,
|
|
56599
56799
|
locale: locale2,
|
|
56600
56800
|
reviewUrl,
|
|
56801
|
+
module: module2,
|
|
56601
56802
|
meta,
|
|
56602
56803
|
onReload,
|
|
56603
56804
|
openForm,
|
|
@@ -56615,34 +56816,51 @@ const DetailMobile = ({
|
|
|
56615
56816
|
const showReplyTemplates = ((_a2 = user == null ? void 0 : user.company) == null ? void 0 : _a2.replyTemplates) !== false;
|
|
56616
56817
|
const [showTemplates, setShowTemplates] = useState(false);
|
|
56617
56818
|
const [showTranslation, setShowTranslation] = useState(false);
|
|
56819
|
+
const [template] = useContext(ContextTemplate);
|
|
56820
|
+
const [showAiReplyModal, setShowAiReplyModal] = useState(false);
|
|
56821
|
+
const personalisedReply = useMemo$1(() => {
|
|
56822
|
+
if (!template) return "";
|
|
56823
|
+
return template.replaceAll("@@business_name@@", locationName).replaceAll("@@client_fullt_name@@", reviewer2.name).replaceAll("@@client_full_name@@", reviewer2.name);
|
|
56824
|
+
}, [template, locationName, reviewer2.name]);
|
|
56825
|
+
const handleOpenAiReplyModal = () => {
|
|
56826
|
+
setShowAiReplyModal(true);
|
|
56827
|
+
onSuggestTemplate();
|
|
56828
|
+
};
|
|
56618
56829
|
const openModal = () => setShowTemplates(true);
|
|
56619
56830
|
const closeModal = () => setShowTemplates(false);
|
|
56620
56831
|
return /* @__PURE__ */ jsxs("div", {
|
|
56621
|
-
className: classNames$2(styles$
|
|
56622
|
-
[styles$
|
|
56832
|
+
className: classNames$2(styles$2a.detail, {
|
|
56833
|
+
[styles$2a.hidden]: !openForm
|
|
56623
56834
|
}),
|
|
56624
56835
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
56625
56836
|
onClick,
|
|
56626
|
-
className: styles$
|
|
56837
|
+
className: styles$2a.back,
|
|
56627
56838
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
56628
56839
|
icon: "close"
|
|
56629
56840
|
})
|
|
56630
56841
|
}), /* @__PURE__ */ jsxs("div", {
|
|
56631
|
-
className: styles$
|
|
56842
|
+
className: styles$2a.statusbar,
|
|
56632
56843
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
56633
|
-
className: styles$
|
|
56844
|
+
className: styles$2a.statusbar__icons,
|
|
56634
56845
|
children: [/* @__PURE__ */ jsx$1(Icon, {
|
|
56635
56846
|
icon: reply2 ? "mailReplied" : "mailNotReplied"
|
|
56636
56847
|
}), /* @__PURE__ */ jsx$1("img", {
|
|
56637
56848
|
alt: platform2,
|
|
56638
|
-
src: platformImages[platform2],
|
|
56639
|
-
className: styles$
|
|
56849
|
+
src: module2.logo || reviewer2.profilePhoto || platformImages[platform2] || "",
|
|
56850
|
+
className: styles$2a.platform,
|
|
56851
|
+
onError: (e) => {
|
|
56852
|
+
const target = e.target;
|
|
56853
|
+
const fallback = reviewer2.profilePhoto || platformImages[platform2] || "";
|
|
56854
|
+
if (target.src !== fallback) {
|
|
56855
|
+
target.src = fallback;
|
|
56856
|
+
}
|
|
56857
|
+
}
|
|
56640
56858
|
})]
|
|
56641
56859
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
56642
56860
|
children: createdAt
|
|
56643
56861
|
})]
|
|
56644
56862
|
}), /* @__PURE__ */ jsxs("strong", {
|
|
56645
|
-
className: styles$
|
|
56863
|
+
className: styles$2a.reviewer,
|
|
56646
56864
|
children: [reviewer2.name, " ", ` `, locale2 && /* @__PURE__ */ jsx$1(CountryFlag, {
|
|
56647
56865
|
locale: locale2
|
|
56648
56866
|
})]
|
|
@@ -56686,8 +56904,8 @@ const DetailMobile = ({
|
|
|
56686
56904
|
}), showTranslation && /* @__PURE__ */ jsx$1(CommentTranslation, {
|
|
56687
56905
|
commentId: id2
|
|
56688
56906
|
})]
|
|
56689
|
-
}), platform2 !== "tripadvisor" ? /* @__PURE__ */ jsx$1("div", {
|
|
56690
|
-
className: styles$
|
|
56907
|
+
}), platform2 !== "tripadvisor" && platform2 !== "zomato" ? /* @__PURE__ */ jsx$1("div", {
|
|
56908
|
+
className: styles$2a["container--reply"],
|
|
56691
56909
|
children: reply2 && platform2 !== "facebook" && platform2 !== "google" ? /* @__PURE__ */ jsx$1(Reply, {
|
|
56692
56910
|
reply: reply2
|
|
56693
56911
|
}) : /* @__PURE__ */ jsx$1(ReplyForm, {
|
|
@@ -56703,7 +56921,7 @@ const DetailMobile = ({
|
|
|
56703
56921
|
reply: reply2
|
|
56704
56922
|
})
|
|
56705
56923
|
}) : /* @__PURE__ */ jsx$1("div", {
|
|
56706
|
-
className: styles$
|
|
56924
|
+
className: styles$2a["container--reply"],
|
|
56707
56925
|
children: reply2 && /* @__PURE__ */ jsx$1(Reply, {
|
|
56708
56926
|
reply: reply2
|
|
56709
56927
|
})
|
|
@@ -56711,7 +56929,7 @@ const DetailMobile = ({
|
|
|
56711
56929
|
open: showTemplates,
|
|
56712
56930
|
rating,
|
|
56713
56931
|
onClose: closeModal
|
|
56714
|
-
}), platform2 !== "tripadvisor" ? /* @__PURE__ */ jsxs(Fragment, {
|
|
56932
|
+
}), platform2 !== "tripadvisor" && platform2 !== "zomato" ? /* @__PURE__ */ jsxs(Fragment, {
|
|
56715
56933
|
children: [/* @__PURE__ */ jsx$1(Button$1, {
|
|
56716
56934
|
isLoading: isSuggesting,
|
|
56717
56935
|
onClick: () => onSuggestTemplate(),
|
|
@@ -56724,25 +56942,43 @@ const DetailMobile = ({
|
|
|
56724
56942
|
onClick: openModal,
|
|
56725
56943
|
children: t2("SHOWTEMPLATES")
|
|
56726
56944
|
})]
|
|
56727
|
-
}) : /* @__PURE__ */
|
|
56728
|
-
|
|
56729
|
-
|
|
56730
|
-
|
|
56731
|
-
|
|
56732
|
-
|
|
56945
|
+
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
56946
|
+
children: [!reply2 && /* @__PURE__ */ jsx$1(Button$1, {
|
|
56947
|
+
isLoading: isSuggesting,
|
|
56948
|
+
onClick: handleOpenAiReplyModal,
|
|
56949
|
+
style: {
|
|
56950
|
+
marginBottom: 10
|
|
56951
|
+
},
|
|
56952
|
+
icon: "robot",
|
|
56953
|
+
children: t2("SUGGESTREPLY")
|
|
56954
|
+
}), /* @__PURE__ */ jsx$1(Button$1, {
|
|
56955
|
+
type: "submit",
|
|
56956
|
+
size: "small",
|
|
56957
|
+
mode: "primary",
|
|
56958
|
+
children: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
|
|
56959
|
+
onClick: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com"))
|
|
56960
|
+
}), /* @__PURE__ */ jsx$1(AiReplyModal, {
|
|
56961
|
+
open: showAiReplyModal,
|
|
56962
|
+
onClose: () => setShowAiReplyModal(false),
|
|
56963
|
+
replyText: personalisedReply,
|
|
56964
|
+
isLoading: isSuggesting,
|
|
56965
|
+
onGoToExternal: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com")),
|
|
56966
|
+
externalButtonLabel: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
|
|
56967
|
+
onSuggestAnother: onSuggestTemplate
|
|
56968
|
+
})]
|
|
56733
56969
|
})]
|
|
56734
56970
|
});
|
|
56735
56971
|
};
|
|
56736
56972
|
const detail = "_detail_1nbuk_1";
|
|
56737
56973
|
const reply = "_reply_1nbuk_10";
|
|
56738
56974
|
const hide = "_hide_1nbuk_14";
|
|
56739
|
-
const styles$
|
|
56975
|
+
const styles$1Z = {
|
|
56740
56976
|
detail,
|
|
56741
56977
|
reply,
|
|
56742
56978
|
hide
|
|
56743
56979
|
};
|
|
56744
56980
|
const btn$1 = "_btn_1wg4v_1";
|
|
56745
|
-
const styles$
|
|
56981
|
+
const styles$1Y = {
|
|
56746
56982
|
btn: btn$1,
|
|
56747
56983
|
"btn--large": "_btn--large_1wg4v_16",
|
|
56748
56984
|
"btn--small": "_btn--small_1wg4v_19",
|
|
@@ -56767,7 +57003,7 @@ const Button = React__default.forwardRef(({
|
|
|
56767
57003
|
...props
|
|
56768
57004
|
}, ref = null) => {
|
|
56769
57005
|
const componentProps = {
|
|
56770
|
-
className: classNames$2(styles$
|
|
57006
|
+
className: classNames$2(styles$1Y["btn"], styles$1Y[`btn--${mode}`], styles$1Y[`btn--${size}`], "mz-btn", className),
|
|
56771
57007
|
...props
|
|
56772
57008
|
};
|
|
56773
57009
|
const IconBtn = icon2 ? /* @__PURE__ */ jsx$1(Icon$1, {
|
|
@@ -56818,10 +57054,20 @@ const DetailDesktop = ({
|
|
|
56818
57054
|
t: t2
|
|
56819
57055
|
} = useTranslation();
|
|
56820
57056
|
const [showTranslation, setShowTranslation] = useState(false);
|
|
57057
|
+
const [template] = useContext(ContextTemplate);
|
|
57058
|
+
const [showAiReplyModal, setShowAiReplyModal] = useState(false);
|
|
57059
|
+
const personalisedReply = useMemo$1(() => {
|
|
57060
|
+
if (!template) return "";
|
|
57061
|
+
return template.replaceAll("@@business_name@@", locationName).replaceAll("@@client_fullt_name@@", reviewer2.name).replaceAll("@@client_full_name@@", reviewer2.name);
|
|
57062
|
+
}, [template, locationName, reviewer2.name]);
|
|
57063
|
+
const handleOpenAiReplyModal = () => {
|
|
57064
|
+
setShowAiReplyModal(true);
|
|
57065
|
+
onSuggestTemplate();
|
|
57066
|
+
};
|
|
56821
57067
|
const shouldShowReply = reply2 && (platform2 !== "facebook" && platform2 !== "google" || platform2 === "facebook" && (!reply2.replyExternalId || reply2.replyExternalId === ""));
|
|
56822
57068
|
return /* @__PURE__ */ jsxs("div", {
|
|
56823
|
-
className: classNames$2(styles$
|
|
56824
|
-
[styles$
|
|
57069
|
+
className: classNames$2(styles$1Z.detail, {
|
|
57070
|
+
[styles$1Z.hide]: !openForm
|
|
56825
57071
|
}),
|
|
56826
57072
|
children: [meta && /* @__PURE__ */ jsxs("div", {
|
|
56827
57073
|
style: {
|
|
@@ -56861,8 +57107,8 @@ const DetailDesktop = ({
|
|
|
56861
57107
|
}), showTranslation && /* @__PURE__ */ jsx$1(CommentTranslation, {
|
|
56862
57108
|
commentId: id2
|
|
56863
57109
|
})]
|
|
56864
|
-
}), platform2 !== "tripadvisor" ? /* @__PURE__ */ jsx$1("div", {
|
|
56865
|
-
className: styles$
|
|
57110
|
+
}), platform2 !== "tripadvisor" && platform2 !== "zomato" ? /* @__PURE__ */ jsx$1("div", {
|
|
57111
|
+
className: styles$1Z.reply,
|
|
56866
57112
|
children: shouldShowReply ? /* @__PURE__ */ jsx$1(Reply, {
|
|
56867
57113
|
reply: reply2
|
|
56868
57114
|
}) : /* @__PURE__ */ jsx$1(ReplyForm, {
|
|
@@ -56878,21 +57124,38 @@ const DetailDesktop = ({
|
|
|
56878
57124
|
reply: reply2
|
|
56879
57125
|
})
|
|
56880
57126
|
}) : /* @__PURE__ */ jsx$1("div", {
|
|
56881
|
-
className: styles$
|
|
57127
|
+
className: styles$1Z.reply,
|
|
56882
57128
|
children: reply2 ? /* @__PURE__ */ jsx$1(Reply, {
|
|
56883
57129
|
reply: reply2
|
|
56884
|
-
}) : /* @__PURE__ */
|
|
56885
|
-
|
|
56886
|
-
|
|
56887
|
-
|
|
56888
|
-
|
|
56889
|
-
|
|
56890
|
-
|
|
56891
|
-
|
|
56892
|
-
|
|
56893
|
-
|
|
56894
|
-
|
|
56895
|
-
|
|
57130
|
+
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
57131
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
57132
|
+
style: {
|
|
57133
|
+
display: "flex",
|
|
57134
|
+
justifyContent: "flex-end",
|
|
57135
|
+
gap: 8
|
|
57136
|
+
},
|
|
57137
|
+
children: [/* @__PURE__ */ jsx$1(Button, {
|
|
57138
|
+
isLoading: isSuggesting,
|
|
57139
|
+
size: "small",
|
|
57140
|
+
icon: "robot",
|
|
57141
|
+
children: t2("SUGGESTREPLY"),
|
|
57142
|
+
onClick: handleOpenAiReplyModal
|
|
57143
|
+
}), /* @__PURE__ */ jsx$1(Button, {
|
|
57144
|
+
type: "submit",
|
|
57145
|
+
size: "small",
|
|
57146
|
+
mode: "primary",
|
|
57147
|
+
children: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
|
|
57148
|
+
onClick: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com"))
|
|
57149
|
+
})]
|
|
57150
|
+
}), /* @__PURE__ */ jsx$1(AiReplyModal, {
|
|
57151
|
+
open: showAiReplyModal,
|
|
57152
|
+
onClose: () => setShowAiReplyModal(false),
|
|
57153
|
+
replyText: personalisedReply,
|
|
57154
|
+
isLoading: isSuggesting,
|
|
57155
|
+
onGoToExternal: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com")),
|
|
57156
|
+
externalButtonLabel: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
|
|
57157
|
+
onSuggestAnother: onSuggestTemplate
|
|
57158
|
+
})]
|
|
56896
57159
|
})
|
|
56897
57160
|
})]
|
|
56898
57161
|
});
|
|
@@ -56908,7 +57171,7 @@ const image$1 = "_image_x6ey8_40";
|
|
|
56908
57171
|
const imageMobile = "_imageMobile_x6ey8_46";
|
|
56909
57172
|
const reviewer = "_reviewer_x6ey8_61";
|
|
56910
57173
|
const location = "_location_x6ey8_66";
|
|
56911
|
-
const styles$
|
|
57174
|
+
const styles$1X = {
|
|
56912
57175
|
container: container$w,
|
|
56913
57176
|
light,
|
|
56914
57177
|
active,
|
|
@@ -56941,6 +57204,7 @@ const Review = ({
|
|
|
56941
57204
|
platform: platform2,
|
|
56942
57205
|
createdAt,
|
|
56943
57206
|
locationName,
|
|
57207
|
+
venueListingId,
|
|
56944
57208
|
locale: locale2,
|
|
56945
57209
|
reviewUrl,
|
|
56946
57210
|
module: module2,
|
|
@@ -56972,30 +57236,37 @@ const Review = ({
|
|
|
56972
57236
|
}
|
|
56973
57237
|
}, [data2]);
|
|
56974
57238
|
return /* @__PURE__ */ jsxs("article", {
|
|
56975
|
-
className: classNames$2(styles$
|
|
56976
|
-
[styles$
|
|
56977
|
-
[styles$
|
|
57239
|
+
className: classNames$2(styles$1X.container, {
|
|
57240
|
+
[styles$1X.light]: light2,
|
|
57241
|
+
[styles$1X.active]: openForm
|
|
56978
57242
|
}),
|
|
56979
57243
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
56980
|
-
className: styles$
|
|
57244
|
+
className: styles$1X.resume,
|
|
56981
57245
|
onClick,
|
|
56982
57246
|
children: /* @__PURE__ */ jsxs("div", {
|
|
56983
|
-
className: styles$
|
|
57247
|
+
className: styles$1X.resume__container,
|
|
56984
57248
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
56985
|
-
className: styles$
|
|
57249
|
+
className: styles$1X.left,
|
|
56986
57250
|
children: [/* @__PURE__ */ jsx$1(Row, {
|
|
56987
57251
|
children: /* @__PURE__ */ jsxs(Col, {
|
|
56988
57252
|
xs: 24,
|
|
56989
57253
|
sm: 0,
|
|
56990
57254
|
children: [/* @__PURE__ */ jsx$1("span", {
|
|
56991
|
-
className: styles$
|
|
57255
|
+
className: styles$1X["icon--center"],
|
|
56992
57256
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
56993
57257
|
icon: reply2 ? "mailReplied" : "mailNotReplied"
|
|
56994
57258
|
})
|
|
56995
57259
|
}), /* @__PURE__ */ jsx$1("img", {
|
|
56996
57260
|
alt: platform2,
|
|
56997
|
-
src: module2.logo || platformImages[platform2],
|
|
56998
|
-
className: styles$
|
|
57261
|
+
src: module2.logo || reviewer2.profilePhoto || platformImages[platform2] || "",
|
|
57262
|
+
className: styles$1X.imageMobile,
|
|
57263
|
+
onError: (e) => {
|
|
57264
|
+
const target = e.target;
|
|
57265
|
+
const fallback = reviewer2.profilePhoto || platformImages[platform2] || "";
|
|
57266
|
+
if (target.src !== fallback) {
|
|
57267
|
+
target.src = fallback;
|
|
57268
|
+
}
|
|
57269
|
+
}
|
|
56999
57270
|
})]
|
|
57000
57271
|
})
|
|
57001
57272
|
}), /* @__PURE__ */ jsx$1(Row, {
|
|
@@ -57003,7 +57274,7 @@ const Review = ({
|
|
|
57003
57274
|
xs: 0,
|
|
57004
57275
|
sm: 24,
|
|
57005
57276
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
57006
|
-
className: styles$
|
|
57277
|
+
className: styles$1X["icon--center"],
|
|
57007
57278
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
57008
57279
|
icon: reply2 ? "mailReplied" : "mailNotReplied"
|
|
57009
57280
|
})
|
|
@@ -57015,8 +57286,15 @@ const Review = ({
|
|
|
57015
57286
|
sm: 24,
|
|
57016
57287
|
children: /* @__PURE__ */ jsx$1("img", {
|
|
57017
57288
|
alt: platform2,
|
|
57018
|
-
src: module2.logo || platformImages[platform2],
|
|
57019
|
-
className: styles$
|
|
57289
|
+
src: module2.logo || reviewer2.profilePhoto || platformImages[platform2] || "",
|
|
57290
|
+
className: styles$1X.image,
|
|
57291
|
+
onError: (e) => {
|
|
57292
|
+
const target = e.target;
|
|
57293
|
+
const fallback = reviewer2.profilePhoto || platformImages[platform2] || "";
|
|
57294
|
+
if (target.src !== fallback) {
|
|
57295
|
+
target.src = fallback;
|
|
57296
|
+
}
|
|
57297
|
+
}
|
|
57020
57298
|
})
|
|
57021
57299
|
})
|
|
57022
57300
|
}), /* @__PURE__ */ jsx$1(Row, {
|
|
@@ -57040,7 +57318,7 @@ const Review = ({
|
|
|
57040
57318
|
},
|
|
57041
57319
|
children: [/* @__PURE__ */ jsx$1(Col, {
|
|
57042
57320
|
children: /* @__PURE__ */ jsx$1("strong", {
|
|
57043
|
-
className: styles$
|
|
57321
|
+
className: styles$1X.reviewer,
|
|
57044
57322
|
children: reviewer2.name
|
|
57045
57323
|
})
|
|
57046
57324
|
}), /* @__PURE__ */ jsx$1(Col, {
|
|
@@ -57078,11 +57356,11 @@ const Review = ({
|
|
|
57078
57356
|
})]
|
|
57079
57357
|
}), multiVenue && /* @__PURE__ */ jsx$1("div", {
|
|
57080
57358
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
57081
|
-
className: styles$
|
|
57359
|
+
className: styles$1X.location,
|
|
57082
57360
|
children: locationName
|
|
57083
57361
|
})
|
|
57084
57362
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
57085
|
-
className: styles$
|
|
57363
|
+
className: styles$1X.right,
|
|
57086
57364
|
children: createdAt
|
|
57087
57365
|
})]
|
|
57088
57366
|
})
|
|
@@ -57096,8 +57374,10 @@ const Review = ({
|
|
|
57096
57374
|
platform: platform2,
|
|
57097
57375
|
createdAt,
|
|
57098
57376
|
locationName,
|
|
57377
|
+
venueListingId,
|
|
57099
57378
|
locale: locale2,
|
|
57100
57379
|
reviewUrl,
|
|
57380
|
+
module: module2,
|
|
57101
57381
|
meta,
|
|
57102
57382
|
onReload,
|
|
57103
57383
|
openForm,
|
|
@@ -57114,8 +57394,10 @@ const Review = ({
|
|
|
57114
57394
|
platform: platform2,
|
|
57115
57395
|
createdAt,
|
|
57116
57396
|
locationName,
|
|
57397
|
+
venueListingId,
|
|
57117
57398
|
locale: locale2,
|
|
57118
57399
|
reviewUrl,
|
|
57400
|
+
module: module2,
|
|
57119
57401
|
meta,
|
|
57120
57402
|
onReload,
|
|
57121
57403
|
openForm,
|
|
@@ -57128,7 +57410,7 @@ const Review = ({
|
|
|
57128
57410
|
};
|
|
57129
57411
|
const header$8 = "_header_190p9_1";
|
|
57130
57412
|
const icon$7 = "_icon_190p9_10";
|
|
57131
|
-
const styles$
|
|
57413
|
+
const styles$1W = {
|
|
57132
57414
|
header: header$8,
|
|
57133
57415
|
icon: icon$7
|
|
57134
57416
|
};
|
|
@@ -57142,18 +57424,18 @@ const Header$5 = ({
|
|
|
57142
57424
|
return header2;
|
|
57143
57425
|
}
|
|
57144
57426
|
return /* @__PURE__ */ jsxs("div", {
|
|
57145
|
-
className: styles$
|
|
57427
|
+
className: styles$1W.header,
|
|
57146
57428
|
children: [/* @__PURE__ */ jsx$1(Heading, {
|
|
57147
57429
|
children: header2.title
|
|
57148
57430
|
}), typeof header2.icon === "string" && /* @__PURE__ */ jsx$1(Icon$1, {
|
|
57149
57431
|
icon: header2.icon,
|
|
57150
57432
|
onClick: header2.onClickIcon,
|
|
57151
|
-
className: styles$
|
|
57433
|
+
className: styles$1W.icon
|
|
57152
57434
|
}), typeof header2.icon !== "string" && header2.icon && header2.icon]
|
|
57153
57435
|
});
|
|
57154
57436
|
};
|
|
57155
57437
|
const container$v = "_container_pd6ji_1";
|
|
57156
|
-
const styles$
|
|
57438
|
+
const styles$1V = {
|
|
57157
57439
|
container: container$v
|
|
57158
57440
|
};
|
|
57159
57441
|
const Card = ({
|
|
@@ -57165,43 +57447,43 @@ const Card = ({
|
|
|
57165
57447
|
}) => {
|
|
57166
57448
|
return /* @__PURE__ */ jsx$1(Fragment, {
|
|
57167
57449
|
children: /* @__PURE__ */ jsxs("div", {
|
|
57168
|
-
className: classNames$2(styles$
|
|
57450
|
+
className: classNames$2(styles$1V.container, className, "mz-card"),
|
|
57169
57451
|
style: style2,
|
|
57170
57452
|
children: [/* @__PURE__ */ jsx$1(Header$5, {
|
|
57171
57453
|
header: header2
|
|
57172
57454
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
57173
|
-
className: classNames$2(styles$
|
|
57455
|
+
className: classNames$2(styles$1V.content, classNameContent),
|
|
57174
57456
|
children
|
|
57175
57457
|
})]
|
|
57176
57458
|
})
|
|
57177
57459
|
});
|
|
57178
57460
|
};
|
|
57179
57461
|
const header$7 = "_header_1qr4z_1";
|
|
57180
|
-
const styles$
|
|
57462
|
+
const styles$1U = {
|
|
57181
57463
|
header: header$7
|
|
57182
57464
|
};
|
|
57183
57465
|
const Header$4 = ({
|
|
57184
57466
|
title: title2
|
|
57185
57467
|
}) => {
|
|
57186
57468
|
return /* @__PURE__ */ jsx$1("div", {
|
|
57187
|
-
className: styles$
|
|
57469
|
+
className: styles$1U.header,
|
|
57188
57470
|
children: /* @__PURE__ */ jsxs(Heading, {
|
|
57189
57471
|
children: [" ", title2]
|
|
57190
57472
|
})
|
|
57191
57473
|
});
|
|
57192
57474
|
};
|
|
57193
57475
|
const container$u = "_container_1egcu_1";
|
|
57194
|
-
const styles$
|
|
57476
|
+
const styles$1T = {
|
|
57195
57477
|
container: container$u
|
|
57196
57478
|
};
|
|
57197
57479
|
const Empty = ({
|
|
57198
57480
|
children
|
|
57199
57481
|
}) => {
|
|
57200
57482
|
return /* @__PURE__ */ jsxs("div", {
|
|
57201
|
-
className: styles$
|
|
57483
|
+
className: styles$1T.container,
|
|
57202
57484
|
children: [/* @__PURE__ */ jsx$1(Icon$1, {
|
|
57203
57485
|
icon: "fileSad",
|
|
57204
|
-
className: styles$
|
|
57486
|
+
className: styles$1T.icon,
|
|
57205
57487
|
size: "xxl"
|
|
57206
57488
|
}), /* @__PURE__ */ jsx$1("h2", {
|
|
57207
57489
|
children
|
|
@@ -57211,7 +57493,7 @@ const Empty = ({
|
|
|
57211
57493
|
const container$t = "_container_n6953_1";
|
|
57212
57494
|
const content$a = "_content_n6953_6";
|
|
57213
57495
|
const empty = "_empty_n6953_10";
|
|
57214
|
-
const styles$
|
|
57496
|
+
const styles$1S = {
|
|
57215
57497
|
container: container$t,
|
|
57216
57498
|
content: content$a,
|
|
57217
57499
|
empty
|
|
@@ -57252,13 +57534,13 @@ const Reviews = ({
|
|
|
57252
57534
|
}
|
|
57253
57535
|
};
|
|
57254
57536
|
return /* @__PURE__ */ jsxs(Card, {
|
|
57255
|
-
className: styles$
|
|
57256
|
-
classNameContent: styles$
|
|
57537
|
+
className: styles$1S.container,
|
|
57538
|
+
classNameContent: styles$1S.content,
|
|
57257
57539
|
header: /* @__PURE__ */ jsx$1(Header$4, {
|
|
57258
57540
|
title: t2("REVIEWS")
|
|
57259
57541
|
}),
|
|
57260
57542
|
children: [isEmpty && /* @__PURE__ */ jsx$1("div", {
|
|
57261
|
-
className: styles$
|
|
57543
|
+
className: styles$1S.empty,
|
|
57262
57544
|
children: /* @__PURE__ */ jsx$1(Empty, {
|
|
57263
57545
|
children: t2("youDontHaveReviewsYet")
|
|
57264
57546
|
})
|
|
@@ -57310,7 +57592,7 @@ const collapse$1 = "_collapse_1tnkf_8";
|
|
|
57310
57592
|
const collapse__header = "_collapse__header_1tnkf_15";
|
|
57311
57593
|
const left$1 = "_left_1tnkf_23";
|
|
57312
57594
|
const content$9 = "_content_1tnkf_28";
|
|
57313
|
-
const styles$
|
|
57595
|
+
const styles$1R = {
|
|
57314
57596
|
collapse: collapse$1,
|
|
57315
57597
|
"collapse--light": "_collapse--light_1tnkf_12",
|
|
57316
57598
|
collapse__header,
|
|
@@ -57332,14 +57614,14 @@ const Template = ({
|
|
|
57332
57614
|
t: t2
|
|
57333
57615
|
} = useTranslation();
|
|
57334
57616
|
return /* @__PURE__ */ jsxs("div", {
|
|
57335
|
-
className: classNames$2(styles$
|
|
57336
|
-
[styles$
|
|
57617
|
+
className: classNames$2(styles$1R.collapse, {
|
|
57618
|
+
[styles$1R["collapse--light"]]: light2
|
|
57337
57619
|
}),
|
|
57338
57620
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
57339
|
-
className: styles$
|
|
57621
|
+
className: styles$1R.collapse__header,
|
|
57340
57622
|
onClick: toggle,
|
|
57341
57623
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
57342
|
-
className: styles$
|
|
57624
|
+
className: styles$1R.left,
|
|
57343
57625
|
children: [/* @__PURE__ */ jsx$1(Icon$1, {
|
|
57344
57626
|
icon: open ? "chevronDown" : "chevronRight"
|
|
57345
57627
|
}), template.title, /* @__PURE__ */ jsx$1(CountryFlag, {
|
|
@@ -57350,7 +57632,7 @@ const Template = ({
|
|
|
57350
57632
|
children: t2("USE")
|
|
57351
57633
|
})]
|
|
57352
57634
|
}), open && /* @__PURE__ */ jsx$1("div", {
|
|
57353
|
-
className: styles$
|
|
57635
|
+
className: styles$1R.content,
|
|
57354
57636
|
children: /* @__PURE__ */ jsx$1(TemplateContent, {
|
|
57355
57637
|
children: template.reply
|
|
57356
57638
|
})
|
|
@@ -57360,7 +57642,7 @@ const Template = ({
|
|
|
57360
57642
|
const skeleton$3 = "_skeleton_1jxqg_12";
|
|
57361
57643
|
const error$4 = "_error_1jxqg_16";
|
|
57362
57644
|
const filters$1 = "_filters_1jxqg_20";
|
|
57363
|
-
const styles$
|
|
57645
|
+
const styles$1Q = {
|
|
57364
57646
|
skeleton: skeleton$3,
|
|
57365
57647
|
error: error$4,
|
|
57366
57648
|
filters: filters$1,
|
|
@@ -59324,12 +59606,12 @@ function requireLodash() {
|
|
|
59324
59606
|
}
|
|
59325
59607
|
return isDrop ? baseSlice(array4, fromRight ? 0 : index2, fromRight ? index2 + 1 : length2) : baseSlice(array4, fromRight ? index2 + 1 : 0, fromRight ? length2 : index2);
|
|
59326
59608
|
}
|
|
59327
|
-
function baseWrapperValue(value2,
|
|
59609
|
+
function baseWrapperValue(value2, actions2) {
|
|
59328
59610
|
var result2 = value2;
|
|
59329
59611
|
if (result2 instanceof LazyWrapper) {
|
|
59330
59612
|
result2 = result2.value();
|
|
59331
59613
|
}
|
|
59332
|
-
return arrayReduce(
|
|
59614
|
+
return arrayReduce(actions2, function(result3, action) {
|
|
59333
59615
|
return action.func.apply(action.thisArg, arrayPush2([result3], action.args));
|
|
59334
59616
|
}, result2);
|
|
59335
59617
|
}
|
|
@@ -62252,8 +62534,8 @@ function requireLodash() {
|
|
|
62252
62534
|
object4.prototype[methodName] = function() {
|
|
62253
62535
|
var chainAll = this.__chain__;
|
|
62254
62536
|
if (chain2 || chainAll) {
|
|
62255
|
-
var result2 = object4(this.__wrapped__),
|
|
62256
|
-
|
|
62537
|
+
var result2 = object4(this.__wrapped__), actions2 = result2.__actions__ = copyArray2(this.__actions__);
|
|
62538
|
+
actions2.push({ "func": func, "args": arguments, "thisArg": object4 });
|
|
62257
62539
|
result2.__chain__ = chainAll;
|
|
62258
62540
|
return result2;
|
|
62259
62541
|
}
|
|
@@ -62878,36 +63160,9 @@ const getReplyTemplateLanguage = () => _23.find(replyLanguages, { "id": getLocal
|
|
|
62878
63160
|
const isLocaleSupported = (locale2) => {
|
|
62879
63161
|
return ["ar", "cs", "da", "de", "el", "en", "es", "et", "fi", "fr", "hi", "hr", "hu", "it", "ja", "ko", "nl", "pl", "pt", "ro", "ru", "sl", "sk", "th", "tr", "uk", "vi", "lt", "zh-CN", "zh-TW"].includes(locale2);
|
|
62880
63162
|
};
|
|
62881
|
-
const Modal$1 = ({
|
|
62882
|
-
open,
|
|
62883
|
-
children,
|
|
62884
|
-
onClose: onClose2,
|
|
62885
|
-
title: title2,
|
|
62886
|
-
width
|
|
62887
|
-
}) => {
|
|
62888
|
-
return /* @__PURE__ */ jsx$1(Modal$2, {
|
|
62889
|
-
className: "resbook-modal",
|
|
62890
|
-
title: /* @__PURE__ */ jsxs(Fragment, {
|
|
62891
|
-
children: [typeof title2 === "string" && /* @__PURE__ */ jsx$1(Heading, {
|
|
62892
|
-
children: title2
|
|
62893
|
-
}), typeof title2 !== "string" && !!title2 ? title2 : /* @__PURE__ */ jsx$1("div", {})]
|
|
62894
|
-
}),
|
|
62895
|
-
open,
|
|
62896
|
-
onCancel: onClose2,
|
|
62897
|
-
width: width || 1e3,
|
|
62898
|
-
footer: null,
|
|
62899
|
-
closeIcon: /* @__PURE__ */ jsx$1(Icon, {
|
|
62900
|
-
icon: "close",
|
|
62901
|
-
size: "small"
|
|
62902
|
-
}),
|
|
62903
|
-
centered: true,
|
|
62904
|
-
zIndex: 1032,
|
|
62905
|
-
children
|
|
62906
|
-
});
|
|
62907
|
-
};
|
|
62908
63163
|
const container$s = "_container_vuyk0_1";
|
|
62909
63164
|
const fullWidth = "_fullWidth_vuyk0_6";
|
|
62910
|
-
const styles$
|
|
63165
|
+
const styles$1P = {
|
|
62911
63166
|
container: container$s,
|
|
62912
63167
|
fullWidth
|
|
62913
63168
|
};
|
|
@@ -63029,7 +63284,7 @@ const Select = ({
|
|
|
63029
63284
|
};
|
|
63030
63285
|
}, [value2, translateLabels, t2]);
|
|
63031
63286
|
return /* @__PURE__ */ jsxs("div", {
|
|
63032
|
-
className: `${styles$
|
|
63287
|
+
className: `${styles$1P.container} ${fullWidth2 ? styles$1P.fullWidth : ""}`,
|
|
63033
63288
|
children: [label2 && /* @__PURE__ */ jsx$1(Label$1, {
|
|
63034
63289
|
htmlFor: id2,
|
|
63035
63290
|
children: label2
|
|
@@ -63112,15 +63367,15 @@ const Templates = ({
|
|
|
63112
63367
|
children: t2("REPLYTEMPLATES")
|
|
63113
63368
|
}),
|
|
63114
63369
|
children: [isLoading && /* @__PURE__ */ jsx$1("div", {
|
|
63115
|
-
className: styles$
|
|
63370
|
+
className: styles$1Q.skeleton,
|
|
63116
63371
|
children: /* @__PURE__ */ jsx$1(SkeletonPage$1, {})
|
|
63117
63372
|
}), error3 && /* @__PURE__ */ jsx$1("div", {
|
|
63118
|
-
className: styles$
|
|
63373
|
+
className: styles$1Q.error,
|
|
63119
63374
|
children: /* @__PURE__ */ jsx$1("h2", {
|
|
63120
63375
|
children: error3
|
|
63121
63376
|
})
|
|
63122
63377
|
}), /* @__PURE__ */ jsxs("div", {
|
|
63123
|
-
className: styles$
|
|
63378
|
+
className: styles$1Q.filters,
|
|
63124
63379
|
children: [/* @__PURE__ */ jsx$1(Select, {
|
|
63125
63380
|
label: t2("REPLYTEMPLATETYPE"),
|
|
63126
63381
|
options: typeOptions,
|
|
@@ -63133,7 +63388,7 @@ const Templates = ({
|
|
|
63133
63388
|
onChange: handleOnChangeLanguage
|
|
63134
63389
|
})]
|
|
63135
63390
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
63136
|
-
className: styles$
|
|
63391
|
+
className: styles$1Q["templates--container"],
|
|
63137
63392
|
children: templates == null ? void 0 : templates.map((template, index2) => /* @__PURE__ */ jsx$1(Template, {
|
|
63138
63393
|
template,
|
|
63139
63394
|
light: index2 % 2 === 1,
|
|
@@ -63530,7 +63785,7 @@ const useOutsideClick = (ref, callback) => {
|
|
|
63530
63785
|
const filterButton$1 = "_filterButton_c0yjo_1";
|
|
63531
63786
|
const buttonClose$1 = "_buttonClose_c0yjo_21";
|
|
63532
63787
|
const toolbar$2 = "_toolbar_c0yjo_38";
|
|
63533
|
-
const styles$
|
|
63788
|
+
const styles$1O = {
|
|
63534
63789
|
filterButton: filterButton$1,
|
|
63535
63790
|
buttonClose: buttonClose$1,
|
|
63536
63791
|
toolbar: toolbar$2,
|
|
@@ -63550,12 +63805,12 @@ const FiltersWrapper$1 = ({
|
|
|
63550
63805
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
63551
63806
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
63552
63807
|
ref,
|
|
63553
|
-
className: classNames$2(styles$
|
|
63554
|
-
[styles$
|
|
63808
|
+
className: classNames$2(styles$1O.toolbar, {
|
|
63809
|
+
[styles$1O["toolbar--hide"]]: !showFilters
|
|
63555
63810
|
}),
|
|
63556
63811
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
63557
|
-
className: classNames$2(styles$
|
|
63558
|
-
[styles$
|
|
63812
|
+
className: classNames$2(styles$1O.buttonClose, {
|
|
63813
|
+
[styles$1O.hide]: !showFilters
|
|
63559
63814
|
}),
|
|
63560
63815
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
63561
63816
|
icon: "close",
|
|
@@ -63567,7 +63822,7 @@ const FiltersWrapper$1 = ({
|
|
|
63567
63822
|
})]
|
|
63568
63823
|
}), /* @__PURE__ */ jsxs("button", {
|
|
63569
63824
|
onClick: toogleFilter,
|
|
63570
|
-
className: styles$
|
|
63825
|
+
className: styles$1O.filterButton,
|
|
63571
63826
|
children: [/* @__PURE__ */ jsx$1(Icon, {
|
|
63572
63827
|
icon: "descriptionShort",
|
|
63573
63828
|
size: "small"
|
|
@@ -63578,7 +63833,7 @@ const FiltersWrapper$1 = ({
|
|
|
63578
63833
|
const inputWrapper = "_inputWrapper_c5acm_1";
|
|
63579
63834
|
const input$4 = "_input_c5acm_1";
|
|
63580
63835
|
const inputIcon = "_inputIcon_c5acm_89";
|
|
63581
|
-
const styles$
|
|
63836
|
+
const styles$1N = {
|
|
63582
63837
|
inputWrapper,
|
|
63583
63838
|
input: input$4,
|
|
63584
63839
|
"input--r-md": "_input--r-md_c5acm_37",
|
|
@@ -63640,7 +63895,7 @@ const Input$2 = React__default.forwardRef(({
|
|
|
63640
63895
|
},
|
|
63641
63896
|
children: [/* @__PURE__ */ jsx$1("input", {
|
|
63642
63897
|
ref,
|
|
63643
|
-
className: classNames$2(styles$
|
|
63898
|
+
className: classNames$2(styles$1N["input"], styles$1N[`input--h-${heigth}`], styles$1N[`input--r-${radius}`], icon2 && styles$1N[`input--with-icon-${iconPosition}`], filled == true ? styles$1N[`input--filled`] : "", borderLess == true ? styles$1N[`input--borderless`] : "", rounded == true ? styles$1N[`input--rounded`] : "", error3 == true ? styles$1N[`input--error`] : "", lineThrough == true ? styles$1N[`input--line-through`] : ""),
|
|
63644
63899
|
style: customStyles2,
|
|
63645
63900
|
onChange: onChange2,
|
|
63646
63901
|
id: id2,
|
|
@@ -63651,7 +63906,7 @@ const Input$2 = React__default.forwardRef(({
|
|
|
63651
63906
|
disabled: disabled2,
|
|
63652
63907
|
...props
|
|
63653
63908
|
}), icon2 && /* @__PURE__ */ jsx$1("div", {
|
|
63654
|
-
className: classNames$2(styles$
|
|
63909
|
+
className: classNames$2(styles$1N["inputIcon"], styles$1N[`inputIcon--p-${iconPosition}`], className ? className : ""),
|
|
63655
63910
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
63656
63911
|
icon: icon2,
|
|
63657
63912
|
size: iconSize
|
|
@@ -63661,7 +63916,7 @@ const Input$2 = React__default.forwardRef(({
|
|
|
63661
63916
|
});
|
|
63662
63917
|
});
|
|
63663
63918
|
const datePicker$1 = "_datePicker_aezmq_1";
|
|
63664
|
-
const styles$
|
|
63919
|
+
const styles$1M = {
|
|
63665
63920
|
datePicker: datePicker$1
|
|
63666
63921
|
};
|
|
63667
63922
|
function r(e) {
|
|
@@ -72867,7 +73122,7 @@ const left = "_left_10sq9_38";
|
|
|
72867
73122
|
const datePickerShortcuts = "_datePickerShortcuts_10sq9_48";
|
|
72868
73123
|
const singleMode = "_singleMode_10sq9_298";
|
|
72869
73124
|
const rangeMode = "_rangeMode_10sq9_303";
|
|
72870
|
-
const styles$
|
|
73125
|
+
const styles$1L = {
|
|
72871
73126
|
datePicker,
|
|
72872
73127
|
inlinePicker,
|
|
72873
73128
|
visible,
|
|
@@ -86467,12 +86722,12 @@ const DatePicker$1 = ({
|
|
|
86467
86722
|
return null;
|
|
86468
86723
|
}
|
|
86469
86724
|
return /* @__PURE__ */ jsx$1("div", {
|
|
86470
|
-
className: styles$
|
|
86725
|
+
className: styles$1L.datePickerShortcuts,
|
|
86471
86726
|
children: options2.shortcuts.map((shortcut, index2) => /* @__PURE__ */ jsx$1(Button$1, {
|
|
86472
86727
|
type: "button",
|
|
86473
86728
|
mode: "tertiary",
|
|
86474
86729
|
size: "mini",
|
|
86475
|
-
className: styles$
|
|
86730
|
+
className: styles$1L.datePickerShortcutBtn,
|
|
86476
86731
|
onClick: () => {
|
|
86477
86732
|
shortcut.onClick({
|
|
86478
86733
|
setDateRange: (start, end) => {
|
|
@@ -86523,7 +86778,7 @@ const DatePicker$1 = ({
|
|
|
86523
86778
|
}, [value2, format3, isRangeMode]);
|
|
86524
86779
|
const selectedDate = isRangeMode ? startDate : singleDate;
|
|
86525
86780
|
return /* @__PURE__ */ jsxs("div", {
|
|
86526
|
-
className: `${styles$
|
|
86781
|
+
className: `${styles$1L.inlinePicker} ${show ? styles$1L.visible : ""} ${isRangeMode ? styles$1L.rangeMode : styles$1L.singleMode} ${styles$1L[pickerPosition]}`,
|
|
86527
86782
|
children: [/* @__PURE__ */ jsx$1(DatePicker$2, {
|
|
86528
86783
|
id: id2,
|
|
86529
86784
|
ref: datePickerRef,
|
|
@@ -86591,7 +86846,7 @@ const InputDatePicker = (props) => {
|
|
|
86591
86846
|
});
|
|
86592
86847
|
});
|
|
86593
86848
|
return /* @__PURE__ */ jsxs("div", {
|
|
86594
|
-
className: styles$
|
|
86849
|
+
className: styles$1M.datePicker,
|
|
86595
86850
|
ref: pickerContainerRef,
|
|
86596
86851
|
children: [/* @__PURE__ */ jsx$1(CustomInput, {}), /* @__PURE__ */ jsx$1(DatePicker$1, {
|
|
86597
86852
|
id: props.id,
|
|
@@ -86794,7 +87049,7 @@ const Header$3 = ({
|
|
|
86794
87049
|
const content$8 = "_content_6vryc_2";
|
|
86795
87050
|
const grid = "_grid_6vryc_8";
|
|
86796
87051
|
const footer$8 = "_footer_6vryc_15";
|
|
86797
|
-
const styles$
|
|
87052
|
+
const styles$1K = {
|
|
86798
87053
|
content: content$8,
|
|
86799
87054
|
grid,
|
|
86800
87055
|
footer: footer$8
|
|
@@ -86802,7 +87057,7 @@ const styles$1J = {
|
|
|
86802
87057
|
const container$r = "_container_1xz3t_13";
|
|
86803
87058
|
const item$7 = "_item_1xz3t_20";
|
|
86804
87059
|
const itemfull = "_itemfull_1xz3t_26";
|
|
86805
|
-
const styles$
|
|
87060
|
+
const styles$1J = {
|
|
86806
87061
|
"animate-pulse": "_animate-pulse_1xz3t_1",
|
|
86807
87062
|
container: container$r,
|
|
86808
87063
|
item: item$7,
|
|
@@ -86810,21 +87065,21 @@ const styles$1I = {
|
|
|
86810
87065
|
};
|
|
86811
87066
|
const SkeletonPage = () => {
|
|
86812
87067
|
return /* @__PURE__ */ jsx$1("div", {
|
|
86813
|
-
className: styles$
|
|
87068
|
+
className: styles$1J["animate-pulse"],
|
|
86814
87069
|
children: /* @__PURE__ */ jsxs("div", {
|
|
86815
|
-
className: styles$
|
|
87070
|
+
className: styles$1J.container,
|
|
86816
87071
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
86817
|
-
className: styles$
|
|
87072
|
+
className: styles$1J.item
|
|
86818
87073
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
86819
|
-
className: styles$
|
|
87074
|
+
className: styles$1J.item
|
|
86820
87075
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
86821
|
-
className: styles$
|
|
87076
|
+
className: styles$1J.itemfull
|
|
86822
87077
|
})]
|
|
86823
87078
|
})
|
|
86824
87079
|
});
|
|
86825
87080
|
};
|
|
86826
87081
|
const container$q = "_container_1oqup_1";
|
|
86827
|
-
const styles$
|
|
87082
|
+
const styles$1I = {
|
|
86828
87083
|
container: container$q
|
|
86829
87084
|
};
|
|
86830
87085
|
const LayoutPage$1 = ({
|
|
@@ -86834,12 +87089,12 @@ const LayoutPage$1 = ({
|
|
|
86834
87089
|
contentClassName
|
|
86835
87090
|
}) => {
|
|
86836
87091
|
return /* @__PURE__ */ jsxs("div", {
|
|
86837
|
-
className: classNames$2(styles$
|
|
87092
|
+
className: classNames$2(styles$1I.container, containerClassName, "mz-sdk-cst-pf"),
|
|
86838
87093
|
children: [header2 && /* @__PURE__ */ jsx$1("div", {
|
|
86839
87094
|
className: "mz-header",
|
|
86840
87095
|
children: header2
|
|
86841
87096
|
}), /* @__PURE__ */ jsx$1(Container, {
|
|
86842
|
-
className: classNames$2(styles$
|
|
87097
|
+
className: classNames$2(styles$1I.content, contentClassName),
|
|
86843
87098
|
children
|
|
86844
87099
|
})]
|
|
86845
87100
|
});
|
|
@@ -86935,7 +87190,7 @@ const ReviewsPage = ({
|
|
|
86935
87190
|
});
|
|
86936
87191
|
}
|
|
86937
87192
|
return /* @__PURE__ */ jsx$1(LayoutPage$2, {
|
|
86938
|
-
contentClassName: styles$
|
|
87193
|
+
contentClassName: styles$1K.content,
|
|
86939
87194
|
header: /* @__PURE__ */ jsx$1(Header$3, {
|
|
86940
87195
|
onChangeFilter: setFilters,
|
|
86941
87196
|
filters: filter2,
|
|
@@ -86952,7 +87207,7 @@ const ReviewsPage = ({
|
|
|
86952
87207
|
value: [lang2],
|
|
86953
87208
|
children: /* @__PURE__ */ jsxs("div", {
|
|
86954
87209
|
children: [isLoadingInitialData && /* @__PURE__ */ jsx$1(SkeletonPage, {}), !isLoadingInitialData && /* @__PURE__ */ jsxs("div", {
|
|
86955
|
-
className: styles$
|
|
87210
|
+
className: styles$1K.grid,
|
|
86956
87211
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
86957
87212
|
children: [/* @__PURE__ */ jsx$1(Reviews, {
|
|
86958
87213
|
reviews: issues,
|
|
@@ -86962,7 +87217,7 @@ const ReviewsPage = ({
|
|
|
86962
87217
|
setShowTemplate: setShowReplyTemplates,
|
|
86963
87218
|
selectedReviewId: filter2.reviewId
|
|
86964
87219
|
}), !isReachingEnd && /* @__PURE__ */ jsx$1("div", {
|
|
86965
|
-
className: styles$
|
|
87220
|
+
className: styles$1K.footer,
|
|
86966
87221
|
children: /* @__PURE__ */ jsx$1(Button$1, {
|
|
86967
87222
|
type: "button",
|
|
86968
87223
|
onClick: loadMore,
|
|
@@ -87975,7 +88230,7 @@ const container$p = "_container_1jgim_1";
|
|
|
87975
88230
|
const button$6 = "_button_1jgim_14";
|
|
87976
88231
|
const skeleton$2 = "_skeleton_1jgim_22";
|
|
87977
88232
|
const item$6 = "_item_1jgim_33";
|
|
87978
|
-
const styles$
|
|
88233
|
+
const styles$1H = {
|
|
87979
88234
|
container: container$p,
|
|
87980
88235
|
button: button$6,
|
|
87981
88236
|
"button-disable": "_button-disable_1jgim_17",
|
|
@@ -87998,11 +88253,11 @@ const Table$1 = ({
|
|
|
87998
88253
|
width: "100%"
|
|
87999
88254
|
},
|
|
88000
88255
|
children: /* @__PURE__ */ jsxs(Card, {
|
|
88001
|
-
classNameContent: classNames$2(styles$
|
|
88256
|
+
classNameContent: classNames$2(styles$1H.container, classNameContent),
|
|
88002
88257
|
className: classNameConatiner,
|
|
88003
88258
|
header: Header2,
|
|
88004
88259
|
children: [/* @__PURE__ */ jsxs("table", {
|
|
88005
|
-
className: classNames$2(styles$
|
|
88260
|
+
className: classNames$2(styles$1H.table, className),
|
|
88006
88261
|
children: [/* @__PURE__ */ jsx$1("thead", {
|
|
88007
88262
|
children: /* @__PURE__ */ jsx$1("tr", {
|
|
88008
88263
|
children: header2.map((h2) => /* @__PURE__ */ jsx$1("th", {
|
|
@@ -88032,12 +88287,12 @@ const LoadingBody$2 = ({
|
|
|
88032
88287
|
rows = 5,
|
|
88033
88288
|
items: items2 = 5
|
|
88034
88289
|
}) => /* @__PURE__ */ jsx$1("tbody", {
|
|
88035
|
-
className: styles$
|
|
88290
|
+
className: styles$1H.skeleton,
|
|
88036
88291
|
children: Object.keys(Array(rows).fill(1)).map((index2) => {
|
|
88037
88292
|
return /* @__PURE__ */ jsx$1("tr", {
|
|
88038
88293
|
children: Object.keys(Array(items2).fill(1)).map((id2) => /* @__PURE__ */ jsx$1("td", {
|
|
88039
88294
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
88040
|
-
className: styles$
|
|
88295
|
+
className: styles$1H.item
|
|
88041
88296
|
})
|
|
88042
88297
|
}, `${index2}-${id2}`))
|
|
88043
88298
|
}, index2);
|
|
@@ -88062,11 +88317,11 @@ const TablePagination$2 = ({
|
|
|
88062
88317
|
page,
|
|
88063
88318
|
onChangePage
|
|
88064
88319
|
});
|
|
88065
|
-
const leftButtonsStyle = classNames$2(styles$
|
|
88066
|
-
[styles$
|
|
88320
|
+
const leftButtonsStyle = classNames$2(styles$1H.button, {
|
|
88321
|
+
[styles$1H["button-disable"]]: page === minPage
|
|
88067
88322
|
});
|
|
88068
|
-
const rightButtonsStyle = classNames$2(styles$
|
|
88069
|
-
[styles$
|
|
88323
|
+
const rightButtonsStyle = classNames$2(styles$1H.button, {
|
|
88324
|
+
[styles$1H["button-disable"]]: page === maxPage
|
|
88070
88325
|
});
|
|
88071
88326
|
if (total === 0) {
|
|
88072
88327
|
return null;
|
|
@@ -89109,7 +89364,7 @@ const formatParams$4 = ({ limit = 10, page = 1 }) => {
|
|
|
89109
89364
|
};
|
|
89110
89365
|
};
|
|
89111
89366
|
const container$o = "_container_aljvu_1";
|
|
89112
|
-
const styles$
|
|
89367
|
+
const styles$1G = {
|
|
89113
89368
|
container: container$o
|
|
89114
89369
|
};
|
|
89115
89370
|
const roleOptions = [{
|
|
@@ -89125,7 +89380,7 @@ const FiltersBar = () => {
|
|
|
89125
89380
|
title: "Filters"
|
|
89126
89381
|
},
|
|
89127
89382
|
children: /* @__PURE__ */ jsxs("div", {
|
|
89128
|
-
className: styles$
|
|
89383
|
+
className: styles$1G.container,
|
|
89129
89384
|
children: [/* @__PURE__ */ jsx$1(NewSelect, {
|
|
89130
89385
|
placeholder: "All roles",
|
|
89131
89386
|
options: roleOptions,
|
|
@@ -89142,7 +89397,7 @@ const FiltersBar = () => {
|
|
|
89142
89397
|
};
|
|
89143
89398
|
const container$n = "_container_ntz7t_1";
|
|
89144
89399
|
const table$2 = "_table_ntz7t_6";
|
|
89145
|
-
const styles$
|
|
89400
|
+
const styles$1F = {
|
|
89146
89401
|
container: container$n,
|
|
89147
89402
|
table: table$2
|
|
89148
89403
|
};
|
|
@@ -89164,8 +89419,8 @@ const Users = () => {
|
|
|
89164
89419
|
totalElements: (data2 == null ? void 0 : data2.total) || 0,
|
|
89165
89420
|
data: (data2 == null ? void 0 : data2.data) || [],
|
|
89166
89421
|
header: TableHeader,
|
|
89167
|
-
className: styles$
|
|
89168
|
-
classNameConatiner: styles$
|
|
89422
|
+
className: styles$1F.table,
|
|
89423
|
+
classNameConatiner: styles$1F.container
|
|
89169
89424
|
})]
|
|
89170
89425
|
});
|
|
89171
89426
|
};
|
|
@@ -91128,7 +91383,7 @@ var Form$7 = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
91128
91383
|
});
|
|
91129
91384
|
Form$7.displayName = "Form";
|
|
91130
91385
|
const text = "_text_1f1l5_1";
|
|
91131
|
-
const styles$
|
|
91386
|
+
const styles$1E = {
|
|
91132
91387
|
text
|
|
91133
91388
|
};
|
|
91134
91389
|
const FieldError = ({
|
|
@@ -91137,7 +91392,7 @@ const FieldError = ({
|
|
|
91137
91392
|
}) => {
|
|
91138
91393
|
if (touched && error3) {
|
|
91139
91394
|
return /* @__PURE__ */ jsx$1("div", {
|
|
91140
|
-
className: styles$
|
|
91395
|
+
className: styles$1E.text,
|
|
91141
91396
|
children: error3
|
|
91142
91397
|
});
|
|
91143
91398
|
}
|
|
@@ -91180,7 +91435,7 @@ const SelectField$1 = ({
|
|
|
91180
91435
|
});
|
|
91181
91436
|
};
|
|
91182
91437
|
const input$3 = "_input_1xto5_1";
|
|
91183
|
-
const styles$
|
|
91438
|
+
const styles$1D = {
|
|
91184
91439
|
input: input$3,
|
|
91185
91440
|
"input--r-md": "_input--r-md_1xto5_23",
|
|
91186
91441
|
"input--r-sm": "_input--r-sm_1xto5_26"
|
|
@@ -91225,7 +91480,7 @@ const Input$1 = ({
|
|
|
91225
91480
|
position: "relative"
|
|
91226
91481
|
},
|
|
91227
91482
|
children: /* @__PURE__ */ jsx$1("input", {
|
|
91228
|
-
className: classNames$2(styles$
|
|
91483
|
+
className: classNames$2(styles$1D["input"], styles$1D[`input--h-${heigth}`], styles$1D[`input--r-${radius}`]),
|
|
91229
91484
|
onChange: handleChange,
|
|
91230
91485
|
id: id2,
|
|
91231
91486
|
name: id2,
|
|
@@ -91250,14 +91505,14 @@ const TextInputField$1 = (props) => {
|
|
|
91250
91505
|
});
|
|
91251
91506
|
};
|
|
91252
91507
|
const layoutForm = "_layoutForm_2ktmv_1";
|
|
91253
|
-
const styles$
|
|
91508
|
+
const styles$1C = {
|
|
91254
91509
|
layoutForm
|
|
91255
91510
|
};
|
|
91256
91511
|
const LayoutForm = ({
|
|
91257
91512
|
children
|
|
91258
91513
|
}) => {
|
|
91259
91514
|
return /* @__PURE__ */ jsx$1("div", {
|
|
91260
|
-
className: styles$
|
|
91515
|
+
className: styles$1C.layoutForm,
|
|
91261
91516
|
children
|
|
91262
91517
|
});
|
|
91263
91518
|
};
|
|
@@ -91462,7 +91717,7 @@ const formatData$h = (data2) => {
|
|
|
91462
91717
|
const mainConatiner$3 = "_mainConatiner_1mt10_1";
|
|
91463
91718
|
const container$m = "_container_1mt10_5";
|
|
91464
91719
|
const item$5 = "_item_1mt10_23";
|
|
91465
|
-
const styles$
|
|
91720
|
+
const styles$1B = {
|
|
91466
91721
|
mainConatiner: mainConatiner$3,
|
|
91467
91722
|
container: container$m,
|
|
91468
91723
|
item: item$5
|
|
@@ -91470,7 +91725,7 @@ const styles$1A = {
|
|
|
91470
91725
|
const label$1 = "_label_4sekk_1";
|
|
91471
91726
|
const label__switch$1 = "_label__switch_4sekk_8";
|
|
91472
91727
|
const input$2 = "_input_4sekk_30";
|
|
91473
|
-
const styles$
|
|
91728
|
+
const styles$1A = {
|
|
91474
91729
|
label: label$1,
|
|
91475
91730
|
label__switch: label__switch$1,
|
|
91476
91731
|
input: input$2
|
|
@@ -91494,7 +91749,7 @@ const Toggle$2 = ({
|
|
|
91494
91749
|
}
|
|
91495
91750
|
return /* @__PURE__ */ jsxs("div", {
|
|
91496
91751
|
children: [/* @__PURE__ */ jsx$1("input", {
|
|
91497
|
-
className: styles$
|
|
91752
|
+
className: styles$1A.input,
|
|
91498
91753
|
onChange: handleChange,
|
|
91499
91754
|
id: id2,
|
|
91500
91755
|
name: id2,
|
|
@@ -91502,9 +91757,9 @@ const Toggle$2 = ({
|
|
|
91502
91757
|
checked
|
|
91503
91758
|
}), /* @__PURE__ */ jsxs("label", {
|
|
91504
91759
|
htmlFor: id2,
|
|
91505
|
-
className: styles$
|
|
91760
|
+
className: styles$1A.label,
|
|
91506
91761
|
children: [/* @__PURE__ */ jsx$1("span", {
|
|
91507
|
-
className: styles$
|
|
91762
|
+
className: styles$1A.label__switch
|
|
91508
91763
|
}), label2]
|
|
91509
91764
|
})]
|
|
91510
91765
|
});
|
|
@@ -91524,7 +91779,7 @@ const ToggleField = (props) => {
|
|
|
91524
91779
|
});
|
|
91525
91780
|
};
|
|
91526
91781
|
const item$4 = "_item_1hc7u_1";
|
|
91527
|
-
const styles$
|
|
91782
|
+
const styles$1z = {
|
|
91528
91783
|
item: item$4
|
|
91529
91784
|
};
|
|
91530
91785
|
const Item$1 = ({
|
|
@@ -91534,7 +91789,7 @@ const Item$1 = ({
|
|
|
91534
91789
|
isLoading
|
|
91535
91790
|
}) => {
|
|
91536
91791
|
return /* @__PURE__ */ jsxs("div", {
|
|
91537
|
-
className: styles$
|
|
91792
|
+
className: styles$1z.item,
|
|
91538
91793
|
children: [name2, isLoading ? /* @__PURE__ */ jsx$1(Spinner$1, {}) : /* @__PURE__ */ jsx$1(ToggleField, {
|
|
91539
91794
|
id: id2,
|
|
91540
91795
|
onChange: onChange2
|
|
@@ -91546,7 +91801,7 @@ const email2 = "_email_1vq15_8";
|
|
|
91546
91801
|
const button$5 = "_button_1vq15_20";
|
|
91547
91802
|
const plus$1 = "_plus_1vq15_33";
|
|
91548
91803
|
const footer$7 = "_footer_1vq15_42";
|
|
91549
|
-
const styles$
|
|
91804
|
+
const styles$1y = {
|
|
91550
91805
|
container: container$l,
|
|
91551
91806
|
email: email2,
|
|
91552
91807
|
button: button$5,
|
|
@@ -91565,7 +91820,7 @@ const cardFooter$1 = "_cardFooter_75rsa_119";
|
|
|
91565
91820
|
const cardFooterContent$1 = "_cardFooterContent_75rsa_132";
|
|
91566
91821
|
const sectionManagement$1 = "_sectionManagement_75rsa_145";
|
|
91567
91822
|
const sectionFormRow$1 = "_sectionFormRow_75rsa_145";
|
|
91568
|
-
const styles$
|
|
91823
|
+
const styles$1x = {
|
|
91569
91824
|
mainConatiner: mainConatiner$2,
|
|
91570
91825
|
header: header$6,
|
|
91571
91826
|
content: content$7,
|
|
@@ -91590,20 +91845,20 @@ const EmailsCard = ({
|
|
|
91590
91845
|
t: t2
|
|
91591
91846
|
} = useTranslation();
|
|
91592
91847
|
return /* @__PURE__ */ jsx$1(Card, {
|
|
91593
|
-
className: styles$
|
|
91848
|
+
className: styles$1x.sectionCard,
|
|
91594
91849
|
children: /* @__PURE__ */ jsxs("div", {
|
|
91595
|
-
className: styles$
|
|
91850
|
+
className: styles$1x.sectionCard,
|
|
91596
91851
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
91597
|
-
className: styles$
|
|
91852
|
+
className: styles$1x.cardHeader,
|
|
91598
91853
|
children: [/* @__PURE__ */ jsx$1("h2", {
|
|
91599
|
-
className: styles$
|
|
91854
|
+
className: styles$1x.cardTitle,
|
|
91600
91855
|
children: t2("EMAILS")
|
|
91601
91856
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
91602
|
-
className: styles$
|
|
91857
|
+
className: styles$1x.cardDesc,
|
|
91603
91858
|
children: t2("EMAILS_DESC")
|
|
91604
91859
|
})]
|
|
91605
91860
|
}), /* @__PURE__ */ jsxs("div", {
|
|
91606
|
-
className: styles$
|
|
91861
|
+
className: styles$1x.cardBody,
|
|
91607
91862
|
children: [(data2 == null ? void 0 : data2.emails) && data2.emails.length > 0 && /* @__PURE__ */ jsx$1("div", {
|
|
91608
91863
|
style: {
|
|
91609
91864
|
display: "flex",
|
|
@@ -91626,9 +91881,9 @@ const EmailsCard = ({
|
|
|
91626
91881
|
}), t2("NOTDEFINED")]
|
|
91627
91882
|
})]
|
|
91628
91883
|
}), canEdit && /* @__PURE__ */ jsxs("div", {
|
|
91629
|
-
className: styles$
|
|
91884
|
+
className: styles$1x.cardFooter,
|
|
91630
91885
|
children: [/* @__PURE__ */ jsx$1(Divider$1, {}), /* @__PURE__ */ jsx$1("div", {
|
|
91631
|
-
className: styles$
|
|
91886
|
+
className: styles$1x.cardFooterContent,
|
|
91632
91887
|
onClick: () => {
|
|
91633
91888
|
setIsOpenDrawer(true);
|
|
91634
91889
|
},
|
|
@@ -91646,7 +91901,7 @@ const drawer__header__content = "_drawer__header__content_nrlje_50";
|
|
|
91646
91901
|
const drawer__header__content__desc = "_drawer__header__content__desc_nrlje_56";
|
|
91647
91902
|
const drawer__close = "_drawer__close_nrlje_61";
|
|
91648
91903
|
const drawer__body = "_drawer__body_nrlje_72";
|
|
91649
|
-
const styles$
|
|
91904
|
+
const styles$1w = {
|
|
91650
91905
|
drawer,
|
|
91651
91906
|
"drawer--open": "_drawer--open_nrlje_14",
|
|
91652
91907
|
drawer__overlay,
|
|
@@ -91666,36 +91921,36 @@ const Drawer = ({
|
|
|
91666
91921
|
width = 500
|
|
91667
91922
|
}) => {
|
|
91668
91923
|
return /* @__PURE__ */ jsxs("div", {
|
|
91669
|
-
className: classNames$2(styles$
|
|
91924
|
+
className: classNames$2(styles$1w.drawer, isOpen ? styles$1w[`drawer--open`] : ""),
|
|
91670
91925
|
children: [isOpen && /* @__PURE__ */ jsx$1("div", {
|
|
91671
|
-
className: styles$
|
|
91926
|
+
className: styles$1w.drawer__overlay,
|
|
91672
91927
|
onClick: onClose2
|
|
91673
91928
|
}), /* @__PURE__ */ jsxs("div", {
|
|
91674
|
-
className: styles$
|
|
91929
|
+
className: styles$1w.drawer__content,
|
|
91675
91930
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
91676
|
-
className: styles$
|
|
91931
|
+
className: styles$1w.drawer__header,
|
|
91677
91932
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
91678
|
-
className: styles$
|
|
91933
|
+
className: styles$1w.drawer__header__content,
|
|
91679
91934
|
children: [/* @__PURE__ */ jsx$1("h3", {
|
|
91680
91935
|
children: title2
|
|
91681
91936
|
}), titleDesc && /* @__PURE__ */ jsx$1("p", {
|
|
91682
|
-
className: styles$
|
|
91937
|
+
className: styles$1w.drawer__header__content__desc,
|
|
91683
91938
|
children: titleDesc
|
|
91684
91939
|
})]
|
|
91685
91940
|
}), /* @__PURE__ */ jsx$1("button", {
|
|
91686
|
-
className: styles$
|
|
91941
|
+
className: styles$1w.drawer__close,
|
|
91687
91942
|
onClick: onClose2,
|
|
91688
91943
|
children: "×"
|
|
91689
91944
|
})]
|
|
91690
91945
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
91691
|
-
className: styles$
|
|
91946
|
+
className: styles$1w.drawer__body,
|
|
91692
91947
|
children
|
|
91693
91948
|
})]
|
|
91694
91949
|
})]
|
|
91695
91950
|
});
|
|
91696
91951
|
};
|
|
91697
91952
|
const infoText$1 = "_infoText_1m2uc_1";
|
|
91698
|
-
const styles$
|
|
91953
|
+
const styles$1v = {
|
|
91699
91954
|
infoText: infoText$1
|
|
91700
91955
|
};
|
|
91701
91956
|
const TextInputField = ({
|
|
@@ -91735,7 +91990,7 @@ const TextInputField = ({
|
|
|
91735
91990
|
error: error3 ? true : false,
|
|
91736
91991
|
...props
|
|
91737
91992
|
}), infoText2 && /* @__PURE__ */ jsx$1("p", {
|
|
91738
|
-
className: styles$
|
|
91993
|
+
className: styles$1v.infoText,
|
|
91739
91994
|
children: t2(infoText2)
|
|
91740
91995
|
}), error3 && /* @__PURE__ */ jsx$1(FieldError$1, {
|
|
91741
91996
|
error: error3
|
|
@@ -91814,7 +92069,7 @@ const EmailEditDrawer = ({
|
|
|
91814
92069
|
children: /* @__PURE__ */ jsxs("div", {
|
|
91815
92070
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
91816
92071
|
children: fields.map((item2, index2) => /* @__PURE__ */ jsxs("div", {
|
|
91817
|
-
className: styles$
|
|
92072
|
+
className: styles$1x.sectionFormRow,
|
|
91818
92073
|
style: {
|
|
91819
92074
|
justifyContent: "flex-start"
|
|
91820
92075
|
},
|
|
@@ -91875,7 +92130,7 @@ const index$d = ({
|
|
|
91875
92130
|
}) => {
|
|
91876
92131
|
const [isOpenDrawer, setIsOpenDrawer] = useState(false);
|
|
91877
92132
|
return /* @__PURE__ */ jsxs("div", {
|
|
91878
|
-
className: styles$
|
|
92133
|
+
className: styles$1x.sectionManagement,
|
|
91879
92134
|
children: [/* @__PURE__ */ jsx$1(EmailsCard, {
|
|
91880
92135
|
isOpenDrawer,
|
|
91881
92136
|
setIsOpenDrawer,
|
|
@@ -91893,7 +92148,7 @@ const index$d = ({
|
|
|
91893
92148
|
const label = "_label_1ghpv_1";
|
|
91894
92149
|
const label__switch = "_label__switch_1ghpv_8";
|
|
91895
92150
|
const input$1 = "_input_1ghpv_34";
|
|
91896
|
-
const styles$
|
|
92151
|
+
const styles$1u = {
|
|
91897
92152
|
label,
|
|
91898
92153
|
label__switch,
|
|
91899
92154
|
"label__switch--disabled": "_label__switch--disabled_1ghpv_18",
|
|
@@ -91921,7 +92176,7 @@ const Toggle$1 = ({
|
|
|
91921
92176
|
};
|
|
91922
92177
|
return /* @__PURE__ */ jsxs("div", {
|
|
91923
92178
|
children: [/* @__PURE__ */ jsx$1("input", {
|
|
91924
|
-
className: styles$
|
|
92179
|
+
className: styles$1u.input,
|
|
91925
92180
|
type: "checkbox",
|
|
91926
92181
|
onChange: handleChange,
|
|
91927
92182
|
id: id2,
|
|
@@ -91931,14 +92186,14 @@ const Toggle$1 = ({
|
|
|
91931
92186
|
disabled: disabled2
|
|
91932
92187
|
}), /* @__PURE__ */ jsxs("label", {
|
|
91933
92188
|
htmlFor: id2,
|
|
91934
|
-
className: styles$
|
|
92189
|
+
className: styles$1u.label,
|
|
91935
92190
|
style: {
|
|
91936
92191
|
display: "flex",
|
|
91937
92192
|
flexDirection: labelPosition === "left" ? "row-reverse" : "row",
|
|
91938
92193
|
fontWeight: boldLabel ? "bold" : "normal"
|
|
91939
92194
|
},
|
|
91940
92195
|
children: [/* @__PURE__ */ jsx$1("span", {
|
|
91941
|
-
className: classNames$2(styles$
|
|
92196
|
+
className: classNames$2(styles$1u.label__switch, disabled2 ? styles$1u["label__switch--disabled"] : "")
|
|
91942
92197
|
}), t2(label2 ?? "")]
|
|
91943
92198
|
})]
|
|
91944
92199
|
});
|
|
@@ -92018,18 +92273,18 @@ const ReservationsCard = ({
|
|
|
92018
92273
|
}
|
|
92019
92274
|
}, [data2]);
|
|
92020
92275
|
return /* @__PURE__ */ jsxs(Card, {
|
|
92021
|
-
className: styles$
|
|
92276
|
+
className: styles$1x.sectionCard,
|
|
92022
92277
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
92023
|
-
className: styles$
|
|
92278
|
+
className: styles$1x.cardHeader,
|
|
92024
92279
|
children: [/* @__PURE__ */ jsx$1("h2", {
|
|
92025
|
-
className: styles$
|
|
92280
|
+
className: styles$1x.cardTitle,
|
|
92026
92281
|
children: t2("RESERVATIONS")
|
|
92027
92282
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
92028
|
-
className: styles$
|
|
92283
|
+
className: styles$1x.cardDesc,
|
|
92029
92284
|
children: t2("RESERVATIONS_DESC")
|
|
92030
92285
|
})]
|
|
92031
92286
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
92032
|
-
className: styles$
|
|
92287
|
+
className: styles$1x.cardBody,
|
|
92033
92288
|
children: data2 && /* @__PURE__ */ jsxs("div", {
|
|
92034
92289
|
style: {
|
|
92035
92290
|
display: "flex",
|
|
@@ -92090,7 +92345,7 @@ const index$c = ({
|
|
|
92090
92345
|
canEdit
|
|
92091
92346
|
}) => {
|
|
92092
92347
|
return /* @__PURE__ */ jsx$1("div", {
|
|
92093
|
-
className: styles$
|
|
92348
|
+
className: styles$1x.sectionManagement,
|
|
92094
92349
|
children: /* @__PURE__ */ jsx$1(ReservationsCard, {
|
|
92095
92350
|
data: data2,
|
|
92096
92351
|
reload,
|
|
@@ -92138,18 +92393,18 @@ const ReviewsCard = ({
|
|
|
92138
92393
|
}
|
|
92139
92394
|
}, [data2]);
|
|
92140
92395
|
return /* @__PURE__ */ jsxs(Card, {
|
|
92141
|
-
className: styles$
|
|
92396
|
+
className: styles$1x.sectionCard,
|
|
92142
92397
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
92143
|
-
className: styles$
|
|
92398
|
+
className: styles$1x.cardHeader,
|
|
92144
92399
|
children: [/* @__PURE__ */ jsx$1("h2", {
|
|
92145
|
-
className: styles$
|
|
92400
|
+
className: styles$1x.cardTitle,
|
|
92146
92401
|
children: t2("REVIEWS")
|
|
92147
92402
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
92148
|
-
className: styles$
|
|
92403
|
+
className: styles$1x.cardDesc,
|
|
92149
92404
|
children: t2("REVIEWS_DESC")
|
|
92150
92405
|
})]
|
|
92151
92406
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
92152
|
-
className: styles$
|
|
92407
|
+
className: styles$1x.cardBody,
|
|
92153
92408
|
children: data2 && /* @__PURE__ */ jsxs("div", {
|
|
92154
92409
|
style: {
|
|
92155
92410
|
display: "flex",
|
|
@@ -92196,7 +92451,7 @@ const index$b = ({
|
|
|
92196
92451
|
canEdit
|
|
92197
92452
|
}) => {
|
|
92198
92453
|
return /* @__PURE__ */ jsx$1("div", {
|
|
92199
|
-
className: styles$
|
|
92454
|
+
className: styles$1x.sectionManagement,
|
|
92200
92455
|
children: /* @__PURE__ */ jsx$1(ReviewsCard, {
|
|
92201
92456
|
data: data2,
|
|
92202
92457
|
reload,
|
|
@@ -92245,18 +92500,18 @@ const ReviewsReportCard = ({
|
|
|
92245
92500
|
}
|
|
92246
92501
|
}, [data2]);
|
|
92247
92502
|
return /* @__PURE__ */ jsxs(Card, {
|
|
92248
|
-
className: styles$
|
|
92503
|
+
className: styles$1x.sectionCard,
|
|
92249
92504
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
92250
|
-
className: styles$
|
|
92505
|
+
className: styles$1x.cardHeader,
|
|
92251
92506
|
children: [/* @__PURE__ */ jsx$1("h2", {
|
|
92252
|
-
className: styles$
|
|
92507
|
+
className: styles$1x.cardTitle,
|
|
92253
92508
|
children: t2("REVIEWSREPORT")
|
|
92254
92509
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
92255
|
-
className: styles$
|
|
92510
|
+
className: styles$1x.cardDesc,
|
|
92256
92511
|
children: t2("REVIEWSREPORT_DESC")
|
|
92257
92512
|
})]
|
|
92258
92513
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
92259
|
-
className: styles$
|
|
92514
|
+
className: styles$1x.cardBody,
|
|
92260
92515
|
children: data2 && /* @__PURE__ */ jsxs("div", {
|
|
92261
92516
|
style: {
|
|
92262
92517
|
display: "flex",
|
|
@@ -92317,7 +92572,7 @@ const index$a = ({
|
|
|
92317
92572
|
canEdit
|
|
92318
92573
|
}) => {
|
|
92319
92574
|
return /* @__PURE__ */ jsx$1("div", {
|
|
92320
|
-
className: styles$
|
|
92575
|
+
className: styles$1x.sectionManagement,
|
|
92321
92576
|
children: /* @__PURE__ */ jsx$1(ReviewsReportCard, {
|
|
92322
92577
|
data: data2,
|
|
92323
92578
|
reload,
|
|
@@ -92351,14 +92606,14 @@ function Main$3({
|
|
|
92351
92606
|
setCurrentVenue(venueId);
|
|
92352
92607
|
}, [venueId]);
|
|
92353
92608
|
return /* @__PURE__ */ jsxs("div", {
|
|
92354
|
-
className: styles$
|
|
92609
|
+
className: styles$1x.mainConatiner,
|
|
92355
92610
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
92356
|
-
className: styles$
|
|
92611
|
+
className: styles$1x.header,
|
|
92357
92612
|
children: /* @__PURE__ */ jsx$1("h2", {
|
|
92358
92613
|
children: t2("NOTIFICATIONS")
|
|
92359
92614
|
})
|
|
92360
92615
|
}), /* @__PURE__ */ jsxs("div", {
|
|
92361
|
-
className: styles$
|
|
92616
|
+
className: styles$1x.content,
|
|
92362
92617
|
children: [/* @__PURE__ */ jsx$1(index$d, {
|
|
92363
92618
|
venueId: currentVenue,
|
|
92364
92619
|
data: data2,
|
|
@@ -92464,9 +92719,9 @@ const EmailForm = ({
|
|
|
92464
92719
|
onSubmit: handleSubmit(onSubmitForm),
|
|
92465
92720
|
children: /* @__PURE__ */ jsxs("div", {
|
|
92466
92721
|
children: [fields && fields.length > 0 ? fields.map((item2, index2) => /* @__PURE__ */ jsxs("div", {
|
|
92467
|
-
className: styles$
|
|
92722
|
+
className: styles$1y.container,
|
|
92468
92723
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
92469
|
-
className: styles$
|
|
92724
|
+
className: styles$1y.email,
|
|
92470
92725
|
children: /* @__PURE__ */ jsx$1(TextInputField, {
|
|
92471
92726
|
control,
|
|
92472
92727
|
id: `emails.${index2}`,
|
|
@@ -92476,19 +92731,19 @@ const EmailForm = ({
|
|
|
92476
92731
|
radius: "sm"
|
|
92477
92732
|
})
|
|
92478
92733
|
}), index2 > 0 && /* @__PURE__ */ jsx$1("button", {
|
|
92479
|
-
className: styles$
|
|
92734
|
+
className: styles$1y.button,
|
|
92480
92735
|
type: "button",
|
|
92481
92736
|
onClick: () => remove(index2),
|
|
92482
92737
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
92483
|
-
className: styles$
|
|
92738
|
+
className: styles$1y.plus,
|
|
92484
92739
|
children: "-"
|
|
92485
92740
|
})
|
|
92486
92741
|
}), /* @__PURE__ */ jsx$1("button", {
|
|
92487
|
-
className: styles$
|
|
92742
|
+
className: styles$1y.button,
|
|
92488
92743
|
type: "button",
|
|
92489
92744
|
onClick: () => append2(""),
|
|
92490
92745
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
92491
|
-
className: styles$
|
|
92746
|
+
className: styles$1y.plus,
|
|
92492
92747
|
children: "+"
|
|
92493
92748
|
})
|
|
92494
92749
|
})]
|
|
@@ -92499,7 +92754,7 @@ const EmailForm = ({
|
|
|
92499
92754
|
onClick: () => append2(""),
|
|
92500
92755
|
children: t2("ADDANEMAIL")
|
|
92501
92756
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
92502
|
-
className: styles$
|
|
92757
|
+
className: styles$1y.footer,
|
|
92503
92758
|
children: /* @__PURE__ */ jsx$1(Button$1, {
|
|
92504
92759
|
size: "small",
|
|
92505
92760
|
type: "submit",
|
|
@@ -92529,7 +92784,7 @@ const formatData$g = (data2) => {
|
|
|
92529
92784
|
autoReplyReviews: data2.autoReplyReviews ? "true" : "false"
|
|
92530
92785
|
};
|
|
92531
92786
|
};
|
|
92532
|
-
const styles$
|
|
92787
|
+
const styles$1t = {
|
|
92533
92788
|
"ui-list": "_ui-list_4zr5h_1",
|
|
92534
92789
|
"ui-list--horizontal": "_ui-list--horizontal_4zr5h_10"
|
|
92535
92790
|
};
|
|
@@ -92538,7 +92793,7 @@ const UIList$1 = ({
|
|
|
92538
92793
|
children
|
|
92539
92794
|
}) => {
|
|
92540
92795
|
return /* @__PURE__ */ jsx$1("ul", {
|
|
92541
|
-
className: classNames$2(styles$
|
|
92796
|
+
className: classNames$2(styles$1t["ui-list"], styles$1t[`ui-list--${mode}`]),
|
|
92542
92797
|
children: React__default.Children.map(children, (child, i) => /* @__PURE__ */ jsx$1("li", {
|
|
92543
92798
|
children: child
|
|
92544
92799
|
}, i))
|
|
@@ -92571,7 +92826,7 @@ const Modal2 = ({
|
|
|
92571
92826
|
});
|
|
92572
92827
|
};
|
|
92573
92828
|
const input = "_input_1ufjp_1";
|
|
92574
|
-
const styles$
|
|
92829
|
+
const styles$1s = {
|
|
92575
92830
|
input
|
|
92576
92831
|
};
|
|
92577
92832
|
const TextArea = React__default.forwardRef(({
|
|
@@ -92607,7 +92862,7 @@ const TextArea = React__default.forwardRef(({
|
|
|
92607
92862
|
position: "relative"
|
|
92608
92863
|
},
|
|
92609
92864
|
children: [/* @__PURE__ */ jsx$1("textarea", {
|
|
92610
|
-
className: styles$
|
|
92865
|
+
className: styles$1s.input,
|
|
92611
92866
|
onChange: handleChange,
|
|
92612
92867
|
id: id2,
|
|
92613
92868
|
name: id2,
|
|
@@ -92828,7 +93083,7 @@ const AiPromptCard = ({
|
|
|
92828
93083
|
onChange: () => handleSubmit("autoReplyReviews", values)
|
|
92829
93084
|
})
|
|
92830
93085
|
}), /* @__PURE__ */ jsxs("div", {
|
|
92831
|
-
className: styles$
|
|
93086
|
+
className: styles$1B.item,
|
|
92832
93087
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
92833
93088
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
92834
93089
|
icon: "robot"
|
|
@@ -92905,7 +93160,7 @@ const Notifications = ({
|
|
|
92905
93160
|
});
|
|
92906
93161
|
}
|
|
92907
93162
|
return /* @__PURE__ */ jsxs(LayoutPage$1, {
|
|
92908
|
-
containerClassName: styles$
|
|
93163
|
+
containerClassName: styles$1B.mainConatiner,
|
|
92909
93164
|
children: [/* @__PURE__ */ jsx$1(Formik, {
|
|
92910
93165
|
initialValues: data2,
|
|
92911
93166
|
onSubmit: handleSubmit,
|
|
@@ -92913,7 +93168,7 @@ const Notifications = ({
|
|
|
92913
93168
|
children: ({
|
|
92914
93169
|
handleSubmit: handleSubmit2
|
|
92915
93170
|
}) => /* @__PURE__ */ jsxs("div", {
|
|
92916
|
-
className: styles$
|
|
93171
|
+
className: styles$1B.container,
|
|
92917
93172
|
children: [/* @__PURE__ */ jsxs(Card$1, {
|
|
92918
93173
|
header: {
|
|
92919
93174
|
title: t2("REVIEWSREPORT")
|
|
@@ -92964,7 +93219,7 @@ const Notifications = ({
|
|
|
92964
93219
|
children: t2("Get all the notifications on these emails.")
|
|
92965
93220
|
}), /* @__PURE__ */ jsx$1("br", {}), data2 == null ? void 0 : data2.emails.map((email3, index2) => {
|
|
92966
93221
|
return /* @__PURE__ */ jsxs("div", {
|
|
92967
|
-
className: styles$
|
|
93222
|
+
className: styles$1B.item,
|
|
92968
93223
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
92969
93224
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
92970
93225
|
icon: "mail"
|
|
@@ -92972,7 +93227,7 @@ const Notifications = ({
|
|
|
92972
93227
|
}), email3 || t2("NOTDEFINED")]
|
|
92973
93228
|
}, index2);
|
|
92974
93229
|
}), !(data2 == null ? void 0 : data2.emails) && /* @__PURE__ */ jsxs("div", {
|
|
92975
|
-
className: styles$
|
|
93230
|
+
className: styles$1B.item,
|
|
92976
93231
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
92977
93232
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
92978
93233
|
icon: "mail"
|
|
@@ -93164,7 +93419,7 @@ function App$1() {
|
|
|
93164
93419
|
const filterButton = "_filterButton_l1kwj_1";
|
|
93165
93420
|
const buttonClose = "_buttonClose_l1kwj_20";
|
|
93166
93421
|
const toolbar$1 = "_toolbar_l1kwj_36";
|
|
93167
|
-
const styles$
|
|
93422
|
+
const styles$1r = {
|
|
93168
93423
|
filterButton,
|
|
93169
93424
|
buttonClose,
|
|
93170
93425
|
toolbar: toolbar$1,
|
|
@@ -93181,12 +93436,12 @@ const FiltersWrapper = ({
|
|
|
93181
93436
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
93182
93437
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
93183
93438
|
ref,
|
|
93184
|
-
className: classNames$2(styles$
|
|
93185
|
-
[styles$
|
|
93439
|
+
className: classNames$2(styles$1r.toolbar, {
|
|
93440
|
+
[styles$1r["toolbar--hide"]]: !showFilters
|
|
93186
93441
|
}),
|
|
93187
93442
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
93188
|
-
className: classNames$2(styles$
|
|
93189
|
-
[styles$
|
|
93443
|
+
className: classNames$2(styles$1r.buttonClose, {
|
|
93444
|
+
[styles$1r.hide]: !showFilters
|
|
93190
93445
|
}),
|
|
93191
93446
|
children: /* @__PURE__ */ jsx$1(Icon$1, {
|
|
93192
93447
|
icon: "close",
|
|
@@ -93198,7 +93453,7 @@ const FiltersWrapper = ({
|
|
|
93198
93453
|
})]
|
|
93199
93454
|
}), /* @__PURE__ */ jsxs("button", {
|
|
93200
93455
|
onClick: toogleFilter,
|
|
93201
|
-
className: styles$
|
|
93456
|
+
className: styles$1r.filterButton,
|
|
93202
93457
|
children: [/* @__PURE__ */ jsx$1(Icon$1, {
|
|
93203
93458
|
icon: "descriptionShort",
|
|
93204
93459
|
size: "small"
|
|
@@ -93530,7 +93785,7 @@ const icon$6 = "_icon_wt0av_1";
|
|
|
93530
93785
|
const green$1 = "_green_wt0av_10";
|
|
93531
93786
|
const blue$1 = "_blue_wt0av_15";
|
|
93532
93787
|
const red$1 = "_red_wt0av_20";
|
|
93533
|
-
const styles$
|
|
93788
|
+
const styles$1q = {
|
|
93534
93789
|
icon: icon$6,
|
|
93535
93790
|
green: green$1,
|
|
93536
93791
|
blue: blue$1,
|
|
@@ -93541,7 +93796,7 @@ const CircleIcon$1 = ({
|
|
|
93541
93796
|
color: color2 = "green"
|
|
93542
93797
|
}) => {
|
|
93543
93798
|
return /* @__PURE__ */ jsx$1("span", {
|
|
93544
|
-
className: classNames$2(styles$
|
|
93799
|
+
className: classNames$2(styles$1q.icon, styles$1q[color2]),
|
|
93545
93800
|
children: /* @__PURE__ */ jsx$1(Icon2, {
|
|
93546
93801
|
size: 20
|
|
93547
93802
|
})
|
|
@@ -116807,7 +117062,7 @@ const container$k = "_container_6pm34_1";
|
|
|
116807
117062
|
const content$6 = "_content_6pm34_7";
|
|
116808
117063
|
const item$3 = "_item_6pm34_13";
|
|
116809
117064
|
const compare = "_compare_6pm34_19";
|
|
116810
|
-
const styles$
|
|
117065
|
+
const styles$1p = {
|
|
116811
117066
|
container: container$k,
|
|
116812
117067
|
content: content$6,
|
|
116813
117068
|
item: item$3,
|
|
@@ -116825,11 +117080,11 @@ const AverageScoreCard = ({
|
|
|
116825
117080
|
header: {
|
|
116826
117081
|
title: t2("AVERAGESCORE")
|
|
116827
117082
|
},
|
|
116828
|
-
className: styles$
|
|
116829
|
-
classNameContent: styles$
|
|
117083
|
+
className: styles$1p.container,
|
|
117084
|
+
classNameContent: styles$1p.content,
|
|
116830
117085
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
116831
117086
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
116832
|
-
className: styles$
|
|
117087
|
+
className: styles$1p.item,
|
|
116833
117088
|
children: [/* @__PURE__ */ jsx$1(ScoreChart, {
|
|
116834
117089
|
data: inPeriod.chart,
|
|
116835
117090
|
avg: inPeriod.avg
|
|
@@ -116838,7 +117093,7 @@ const AverageScoreCard = ({
|
|
|
116838
117093
|
data: inPeriod.chart
|
|
116839
117094
|
})]
|
|
116840
117095
|
}), /* @__PURE__ */ jsxs("div", {
|
|
116841
|
-
className: styles$
|
|
117096
|
+
className: styles$1p.item,
|
|
116842
117097
|
children: [/* @__PURE__ */ jsx$1(ScoreChart, {
|
|
116843
117098
|
data: compare2.chart,
|
|
116844
117099
|
avg: compare2.avg
|
|
@@ -116848,7 +117103,7 @@ const AverageScoreCard = ({
|
|
|
116848
117103
|
})]
|
|
116849
117104
|
})]
|
|
116850
117105
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
116851
|
-
className: styles$
|
|
117106
|
+
className: styles$1p.compare,
|
|
116852
117107
|
children: /* @__PURE__ */ jsx$1("small", {
|
|
116853
117108
|
children: t2("COMPARED_PERIOD", {
|
|
116854
117109
|
date: comparedPeriod
|
|
@@ -116907,7 +117162,7 @@ const comparison$1 = "_comparison_18cx4_20";
|
|
|
116907
117162
|
const container$j = "_container_18cx4_25";
|
|
116908
117163
|
const content$5 = "_content_18cx4_29";
|
|
116909
117164
|
const title$2 = "_title_18cx4_33";
|
|
116910
|
-
const styles$
|
|
117165
|
+
const styles$1o = {
|
|
116911
117166
|
success: success$1,
|
|
116912
117167
|
danger: danger$1,
|
|
116913
117168
|
header: header$5,
|
|
@@ -116919,18 +117174,18 @@ const styles$1n = {
|
|
|
116919
117174
|
};
|
|
116920
117175
|
const container$i = "_container_1vji6_13";
|
|
116921
117176
|
const itemStatCard$1 = "_itemStatCard_1vji6_32";
|
|
116922
|
-
const styles$
|
|
117177
|
+
const styles$1n = {
|
|
116923
117178
|
"animate-pulse": "_animate-pulse_1vji6_1",
|
|
116924
117179
|
container: container$i,
|
|
116925
117180
|
itemStatCard: itemStatCard$1
|
|
116926
117181
|
};
|
|
116927
117182
|
const SkeletonStatCard$1 = () => {
|
|
116928
117183
|
return /* @__PURE__ */ jsx$1("div", {
|
|
116929
|
-
className: styles$
|
|
117184
|
+
className: styles$1n["animate-pulse"],
|
|
116930
117185
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
116931
|
-
className: styles$
|
|
117186
|
+
className: styles$1n.container,
|
|
116932
117187
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
116933
|
-
className: styles$
|
|
117188
|
+
className: styles$1n.itemStatCard
|
|
116934
117189
|
})
|
|
116935
117190
|
})
|
|
116936
117191
|
});
|
|
@@ -116947,10 +117202,10 @@ const StatsCard$1 = ({
|
|
|
116947
117202
|
}) => {
|
|
116948
117203
|
const arrow2 = comparison2 > 0 ? /* @__PURE__ */ jsx$1(ArrowUp, {
|
|
116949
117204
|
size: 20,
|
|
116950
|
-
className: styles$
|
|
117205
|
+
className: styles$1o.success
|
|
116951
117206
|
}) : /* @__PURE__ */ jsx$1(ArrowDown, {
|
|
116952
117207
|
size: 20,
|
|
116953
|
-
className: styles$
|
|
117208
|
+
className: styles$1o.danger
|
|
116954
117209
|
});
|
|
116955
117210
|
const renderValue = () => {
|
|
116956
117211
|
if (loadingValue) {
|
|
@@ -116967,12 +117222,12 @@ const StatsCard$1 = ({
|
|
|
116967
117222
|
}
|
|
116968
117223
|
if (typeof value2 === "number") {
|
|
116969
117224
|
return /* @__PURE__ */ jsx$1("span", {
|
|
116970
|
-
className: styles$
|
|
117225
|
+
className: styles$1o.value,
|
|
116971
117226
|
children: numberToLocaleString(value2)
|
|
116972
117227
|
});
|
|
116973
117228
|
}
|
|
116974
117229
|
return /* @__PURE__ */ jsxs("span", {
|
|
116975
|
-
className: styles$
|
|
117230
|
+
className: styles$1o.value,
|
|
116976
117231
|
children: [numberToLocaleString(value2.value), /* @__PURE__ */ jsx$1("sub", {
|
|
116977
117232
|
style: {
|
|
116978
117233
|
fontWeight: "bold",
|
|
@@ -116984,19 +117239,19 @@ const StatsCard$1 = ({
|
|
|
116984
117239
|
};
|
|
116985
117240
|
return /* @__PURE__ */ jsx$1(Card$1, {
|
|
116986
117241
|
header: /* @__PURE__ */ jsxs("div", {
|
|
116987
|
-
className: styles$
|
|
117242
|
+
className: styles$1o.header,
|
|
116988
117243
|
children: [icon2, /* @__PURE__ */ jsx$1("span", {
|
|
116989
|
-
className: styles$
|
|
117244
|
+
className: styles$1o.title,
|
|
116990
117245
|
children: title2
|
|
116991
117246
|
})]
|
|
116992
117247
|
}),
|
|
116993
|
-
className: styles$
|
|
116994
|
-
classNameContent: styles$
|
|
117248
|
+
className: styles$1o.container,
|
|
117249
|
+
classNameContent: styles$1o.content,
|
|
116995
117250
|
children: !loading2 ? /* @__PURE__ */ jsxs(React__default.Fragment, {
|
|
116996
117251
|
children: [renderValue(), comparison2 !== 0 && /* @__PURE__ */ jsxs("div", {
|
|
116997
|
-
className: classNames$2(styles$
|
|
116998
|
-
[styles$
|
|
116999
|
-
[styles$
|
|
117252
|
+
className: classNames$2(styles$1o.comparison, {
|
|
117253
|
+
[styles$1o.success]: comparison2 > 0,
|
|
117254
|
+
[styles$1o.danger]: comparison2 < 0
|
|
117000
117255
|
}),
|
|
117001
117256
|
children: [comparison2 !== 0 ? arrow2 : /* @__PURE__ */ jsx$1("span", {
|
|
117002
117257
|
style: {
|
|
@@ -117261,7 +117516,7 @@ const content$4 = "_content_15v81_42";
|
|
|
117261
117516
|
const errorContainer = "_errorContainer_15v81_49";
|
|
117262
117517
|
const venueSelectorContainer = "_venueSelectorContainer_15v81_54";
|
|
117263
117518
|
const venueSelector$1 = "_venueSelector_15v81_54";
|
|
117264
|
-
const styles$
|
|
117519
|
+
const styles$1m = {
|
|
117265
117520
|
listingAnalyticsContainer,
|
|
117266
117521
|
h3,
|
|
117267
117522
|
center,
|
|
@@ -117551,7 +117806,7 @@ const SelectVenue = ({
|
|
|
117551
117806
|
};
|
|
117552
117807
|
const param = "_param_su98a_1";
|
|
117553
117808
|
const title$1 = "_title_su98a_6";
|
|
117554
|
-
const styles$
|
|
117809
|
+
const styles$1l = {
|
|
117555
117810
|
param,
|
|
117556
117811
|
title: title$1
|
|
117557
117812
|
};
|
|
@@ -117561,9 +117816,9 @@ const Param = ({
|
|
|
117561
117816
|
tooltip: tooltip2,
|
|
117562
117817
|
loadingValue = false
|
|
117563
117818
|
}) => /* @__PURE__ */ jsxs("div", {
|
|
117564
|
-
className: styles$
|
|
117819
|
+
className: styles$1l.param,
|
|
117565
117820
|
children: [/* @__PURE__ */ jsx$1("span", {
|
|
117566
|
-
className: styles$
|
|
117821
|
+
className: styles$1l.title,
|
|
117567
117822
|
children: tooltip2 ? /* @__PURE__ */ jsx$1(Tooltip$1, {
|
|
117568
117823
|
message: tooltip2,
|
|
117569
117824
|
children: title2
|
|
@@ -117633,11 +117888,11 @@ const Analytics$2 = ({
|
|
|
117633
117888
|
}
|
|
117634
117889
|
}, [data2]);
|
|
117635
117890
|
return /* @__PURE__ */ jsxs("div", {
|
|
117636
|
-
className: styles$
|
|
117891
|
+
className: styles$1m.listingAnalyticsContainer,
|
|
117637
117892
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
117638
|
-
className: styles$
|
|
117893
|
+
className: styles$1m.venueSelectorContainer,
|
|
117639
117894
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
117640
|
-
className: styles$
|
|
117895
|
+
className: styles$1m.venueSelector,
|
|
117641
117896
|
children: /* @__PURE__ */ jsx$1(SelectVenue, {
|
|
117642
117897
|
onChange: handleChangeVenue,
|
|
117643
117898
|
selectedVenue: listingId,
|
|
@@ -117646,18 +117901,18 @@ const Analytics$2 = ({
|
|
|
117646
117901
|
})
|
|
117647
117902
|
}), isLoading && /* @__PURE__ */ jsx$1(LayoutPage$1, {
|
|
117648
117903
|
children: /* @__PURE__ */ jsxs("div", {
|
|
117649
|
-
className: styles$
|
|
117904
|
+
className: styles$1m.center,
|
|
117650
117905
|
children: [/* @__PURE__ */ jsx$1(Icon, {
|
|
117651
117906
|
icon: "Spinner",
|
|
117652
117907
|
size: "xl"
|
|
117653
117908
|
}), /* @__PURE__ */ jsx$1("h3", {
|
|
117654
|
-
className: styles$
|
|
117909
|
+
className: styles$1m.h3,
|
|
117655
117910
|
children: t2("loadingAnalytics")
|
|
117656
117911
|
})]
|
|
117657
117912
|
})
|
|
117658
117913
|
}), !isLoading && !formattedStats && (data2 == null ? void 0 : data2.error) && /* @__PURE__ */ jsx$1(LayoutPage$1, {
|
|
117659
117914
|
children: /* @__PURE__ */ jsxs("div", {
|
|
117660
|
-
className: styles$
|
|
117915
|
+
className: styles$1m.errorContainer,
|
|
117661
117916
|
children: [/* @__PURE__ */ jsx$1("h1", {
|
|
117662
117917
|
children: t2("You don't have a connected Google Account")
|
|
117663
117918
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
@@ -117666,7 +117921,7 @@ const Analytics$2 = ({
|
|
|
117666
117921
|
})
|
|
117667
117922
|
}), !isLoading && notAuthorized && /* @__PURE__ */ jsx$1(LayoutPage$1, {
|
|
117668
117923
|
children: /* @__PURE__ */ jsxs("div", {
|
|
117669
|
-
className: styles$
|
|
117924
|
+
className: styles$1m.errorContainer,
|
|
117670
117925
|
children: [/* @__PURE__ */ jsx$1("h1", {
|
|
117671
117926
|
children: t2("Your Google Business Profile is not Verified")
|
|
117672
117927
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
@@ -117679,7 +117934,7 @@ const Analytics$2 = ({
|
|
|
117679
117934
|
value: filter2
|
|
117680
117935
|
}),
|
|
117681
117936
|
children: [isLoading && /* @__PURE__ */ jsx$1(SkeletonPage, {}), !isLoading && formattedStats && /* @__PURE__ */ jsxs("div", {
|
|
117682
|
-
className: styles$
|
|
117937
|
+
className: styles$1m.content,
|
|
117683
117938
|
children: [/* @__PURE__ */ jsxs(Row, {
|
|
117684
117939
|
gutter: [16, 28],
|
|
117685
117940
|
children: [/* @__PURE__ */ jsx$1(Col, {
|
|
@@ -117788,7 +118043,7 @@ const comparison = "_comparison_18cx4_20";
|
|
|
117788
118043
|
const container$h = "_container_18cx4_25";
|
|
117789
118044
|
const content$3 = "_content_18cx4_29";
|
|
117790
118045
|
const title = "_title_18cx4_33";
|
|
117791
|
-
const styles$
|
|
118046
|
+
const styles$1k = {
|
|
117792
118047
|
success,
|
|
117793
118048
|
danger,
|
|
117794
118049
|
header: header$4,
|
|
@@ -117801,7 +118056,7 @@ const styles$1j = {
|
|
|
117801
118056
|
const container$g = "_container_1vji6_13";
|
|
117802
118057
|
const itemStatCard = "_itemStatCard_1vji6_32";
|
|
117803
118058
|
const itemDiv = "_itemDiv_1vji6_39";
|
|
117804
|
-
const styles$
|
|
118059
|
+
const styles$1j = {
|
|
117805
118060
|
"animate-pulse": "_animate-pulse_1vji6_1",
|
|
117806
118061
|
container: container$g,
|
|
117807
118062
|
itemStatCard,
|
|
@@ -117809,28 +118064,28 @@ const styles$1i = {
|
|
|
117809
118064
|
};
|
|
117810
118065
|
const SkeletonStatCard = () => {
|
|
117811
118066
|
return /* @__PURE__ */ jsx$1("div", {
|
|
117812
|
-
className: styles$
|
|
118067
|
+
className: styles$1j["animate-pulse"],
|
|
117813
118068
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
117814
|
-
className: styles$
|
|
118069
|
+
className: styles$1j.container,
|
|
117815
118070
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
117816
|
-
className: styles$
|
|
118071
|
+
className: styles$1j.itemStatCard
|
|
117817
118072
|
})
|
|
117818
118073
|
})
|
|
117819
118074
|
});
|
|
117820
118075
|
};
|
|
117821
118076
|
const SkeletonDiv = () => {
|
|
117822
118077
|
return /* @__PURE__ */ jsx$1("div", {
|
|
117823
|
-
className: styles$
|
|
118078
|
+
className: styles$1j["animate-pulse"],
|
|
117824
118079
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
117825
|
-
className: styles$
|
|
118080
|
+
className: styles$1j.container,
|
|
117826
118081
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
117827
|
-
className: styles$
|
|
118082
|
+
className: styles$1j.itemDiv
|
|
117828
118083
|
})
|
|
117829
118084
|
})
|
|
117830
118085
|
});
|
|
117831
118086
|
};
|
|
117832
118087
|
const spinner = "_spinner_mmhvn_1";
|
|
117833
|
-
const styles$
|
|
118088
|
+
const styles$1i = {
|
|
117834
118089
|
spinner
|
|
117835
118090
|
};
|
|
117836
118091
|
const Spinner = ({
|
|
@@ -117844,7 +118099,7 @@ const Spinner = ({
|
|
|
117844
118099
|
borderTop: `${size / 10}px solid transparent`
|
|
117845
118100
|
};
|
|
117846
118101
|
return /* @__PURE__ */ jsx$1("div", {
|
|
117847
|
-
className: styles$
|
|
118102
|
+
className: styles$1i.spinner,
|
|
117848
118103
|
style: spinnerStyle
|
|
117849
118104
|
});
|
|
117850
118105
|
};
|
|
@@ -117860,10 +118115,10 @@ const StatsCard = ({
|
|
|
117860
118115
|
}) => {
|
|
117861
118116
|
const arrow2 = comparison2 > 0 ? /* @__PURE__ */ jsx$1(ArrowUp, {
|
|
117862
118117
|
size: 20,
|
|
117863
|
-
className: styles$
|
|
118118
|
+
className: styles$1k.success
|
|
117864
118119
|
}) : /* @__PURE__ */ jsx$1(ArrowDown, {
|
|
117865
118120
|
size: 20,
|
|
117866
|
-
className: styles$
|
|
118121
|
+
className: styles$1k.danger
|
|
117867
118122
|
});
|
|
117868
118123
|
const renderValue = () => {
|
|
117869
118124
|
if (loadingValue) {
|
|
@@ -117879,12 +118134,12 @@ const StatsCard = ({
|
|
|
117879
118134
|
}
|
|
117880
118135
|
if (typeof value2 === "number") {
|
|
117881
118136
|
return /* @__PURE__ */ jsx$1("span", {
|
|
117882
|
-
className: styles$
|
|
118137
|
+
className: styles$1k.value,
|
|
117883
118138
|
children: numberToLocaleString(value2)
|
|
117884
118139
|
});
|
|
117885
118140
|
}
|
|
117886
118141
|
return /* @__PURE__ */ jsxs("span", {
|
|
117887
|
-
className: styles$
|
|
118142
|
+
className: styles$1k.value,
|
|
117888
118143
|
children: [numberToLocaleString(value2.value), /* @__PURE__ */ jsx$1("sub", {
|
|
117889
118144
|
style: {
|
|
117890
118145
|
fontWeight: "bold",
|
|
@@ -117896,19 +118151,19 @@ const StatsCard = ({
|
|
|
117896
118151
|
};
|
|
117897
118152
|
return /* @__PURE__ */ jsx$1(Card$1, {
|
|
117898
118153
|
header: /* @__PURE__ */ jsxs("div", {
|
|
117899
|
-
className: styles$
|
|
118154
|
+
className: styles$1k.header,
|
|
117900
118155
|
children: [icon2, /* @__PURE__ */ jsx$1("span", {
|
|
117901
|
-
className: styles$
|
|
118156
|
+
className: styles$1k.title,
|
|
117902
118157
|
children: title2
|
|
117903
118158
|
})]
|
|
117904
118159
|
}),
|
|
117905
|
-
className: styles$
|
|
117906
|
-
classNameContent: styles$
|
|
118160
|
+
className: styles$1k.container,
|
|
118161
|
+
classNameContent: styles$1k.content,
|
|
117907
118162
|
children: !loading2 ? /* @__PURE__ */ jsxs(React__default.Fragment, {
|
|
117908
118163
|
children: [renderValue(), comparison2 !== 0 && /* @__PURE__ */ jsxs("div", {
|
|
117909
|
-
className: classNames$2(styles$
|
|
117910
|
-
[styles$
|
|
117911
|
-
[styles$
|
|
118164
|
+
className: classNames$2(styles$1k.comparison, {
|
|
118165
|
+
[styles$1k.success]: comparison2 > 0,
|
|
118166
|
+
[styles$1k.danger]: comparison2 < 0
|
|
117912
118167
|
}),
|
|
117913
118168
|
children: [comparison2 !== 0 ? arrow2 : /* @__PURE__ */ jsx$1("span", {
|
|
117914
118169
|
style: {
|
|
@@ -117923,7 +118178,7 @@ const StatsCard = ({
|
|
|
117923
118178
|
}) : /* @__PURE__ */ jsx$1(SkeletonStatCard, {})
|
|
117924
118179
|
});
|
|
117925
118180
|
};
|
|
117926
|
-
const styles$
|
|
118181
|
+
const styles$1h = {
|
|
117927
118182
|
"ui-list": "_ui-list_4zr5h_1",
|
|
117928
118183
|
"ui-list--horizontal": "_ui-list--horizontal_4zr5h_10"
|
|
117929
118184
|
};
|
|
@@ -117932,7 +118187,7 @@ const UIList = ({
|
|
|
117932
118187
|
children
|
|
117933
118188
|
}) => {
|
|
117934
118189
|
return /* @__PURE__ */ jsx$1("ul", {
|
|
117935
|
-
className: classNames$2(styles$
|
|
118190
|
+
className: classNames$2(styles$1h["ui-list"], styles$1h[`ui-list--${mode}`]),
|
|
117936
118191
|
children: React__default.Children.map(children, (child, i) => /* @__PURE__ */ jsx$1("li", {
|
|
117937
118192
|
children: child
|
|
117938
118193
|
}, i))
|
|
@@ -117967,7 +118222,7 @@ const icon$5 = "_icon_wt0av_1";
|
|
|
117967
118222
|
const green = "_green_wt0av_10";
|
|
117968
118223
|
const blue = "_blue_wt0av_15";
|
|
117969
118224
|
const red = "_red_wt0av_20";
|
|
117970
|
-
const styles$
|
|
118225
|
+
const styles$1g = {
|
|
117971
118226
|
icon: icon$5,
|
|
117972
118227
|
green,
|
|
117973
118228
|
blue,
|
|
@@ -117978,7 +118233,7 @@ const CircleIcon = ({
|
|
|
117978
118233
|
color: color2 = "green"
|
|
117979
118234
|
}) => {
|
|
117980
118235
|
return /* @__PURE__ */ jsx$1("span", {
|
|
117981
|
-
className: classNames$2(styles$
|
|
118236
|
+
className: classNames$2(styles$1g.icon, styles$1g[color2]),
|
|
117982
118237
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
117983
118238
|
size: "medium",
|
|
117984
118239
|
icon: name2
|
|
@@ -118424,18 +118679,18 @@ const Analytics$1 = ({
|
|
|
118424
118679
|
children: /* @__PURE__ */ jsxs("div", {
|
|
118425
118680
|
children: [isLoadingListingAnalytics && /* @__PURE__ */ jsx$1(LayoutPage$1, {
|
|
118426
118681
|
children: /* @__PURE__ */ jsxs("div", {
|
|
118427
|
-
className: styles$
|
|
118682
|
+
className: styles$1m.center,
|
|
118428
118683
|
children: [/* @__PURE__ */ jsx$1(Icon, {
|
|
118429
118684
|
icon: "Spinner",
|
|
118430
118685
|
size: "xl"
|
|
118431
118686
|
}), /* @__PURE__ */ jsx$1("h3", {
|
|
118432
|
-
className: styles$
|
|
118687
|
+
className: styles$1m.h3,
|
|
118433
118688
|
children: t2("loadingAnalytics")
|
|
118434
118689
|
})]
|
|
118435
118690
|
})
|
|
118436
118691
|
}), !isLoadingListingAnalytics && !formattedStats && (data2 == null ? void 0 : data2.error) && /* @__PURE__ */ jsx$1(LayoutPage$1, {
|
|
118437
118692
|
children: /* @__PURE__ */ jsxs("div", {
|
|
118438
|
-
className: styles$
|
|
118693
|
+
className: styles$1m.errorContainer,
|
|
118439
118694
|
children: [/* @__PURE__ */ jsx$1("h1", {
|
|
118440
118695
|
children: t2("You don't have a connected Google Account")
|
|
118441
118696
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
@@ -118444,7 +118699,7 @@ const Analytics$1 = ({
|
|
|
118444
118699
|
})
|
|
118445
118700
|
}), !isLoadingListingAnalytics && notAuthorized && /* @__PURE__ */ jsx$1(LayoutPage$1, {
|
|
118446
118701
|
children: /* @__PURE__ */ jsxs("div", {
|
|
118447
|
-
className: styles$
|
|
118702
|
+
className: styles$1m.errorContainer,
|
|
118448
118703
|
children: [/* @__PURE__ */ jsx$1("h1", {
|
|
118449
118704
|
children: t2("Your Google Business Profile is not Verified")
|
|
118450
118705
|
}), /* @__PURE__ */ jsx$1("p", {
|
|
@@ -118870,7 +119125,7 @@ const getTooltipContentSourceName = (rule) => {
|
|
|
118870
119125
|
});
|
|
118871
119126
|
};
|
|
118872
119127
|
const icon$4 = "_icon_14ksh_1";
|
|
118873
|
-
const styles$
|
|
119128
|
+
const styles$1f = {
|
|
118874
119129
|
icon: icon$4
|
|
118875
119130
|
};
|
|
118876
119131
|
const EditIconWithRule = ({
|
|
@@ -118884,7 +119139,7 @@ const EditIconWithRule = ({
|
|
|
118884
119139
|
children: [/* @__PURE__ */ jsx$1(Icon, {
|
|
118885
119140
|
icon: "lock",
|
|
118886
119141
|
"data-tip": getTooltipContentSourceName(rule),
|
|
118887
|
-
className: styles$
|
|
119142
|
+
className: styles$1f.icon
|
|
118888
119143
|
}), /* @__PURE__ */ jsx$1(ReactTooltip, {
|
|
118889
119144
|
place: "right",
|
|
118890
119145
|
type: "dark",
|
|
@@ -118896,12 +119151,12 @@ const EditIconWithRule = ({
|
|
|
118896
119151
|
return /* @__PURE__ */ jsx$1(Icon, {
|
|
118897
119152
|
icon: "edit",
|
|
118898
119153
|
onClick,
|
|
118899
|
-
className: styles$
|
|
119154
|
+
className: styles$1f.icon
|
|
118900
119155
|
});
|
|
118901
119156
|
};
|
|
118902
119157
|
const item$2 = "_item_1pd7z_1";
|
|
118903
119158
|
const icon$3 = "_icon_1pd7z_7";
|
|
118904
|
-
const styles$
|
|
119159
|
+
const styles$1e = {
|
|
118905
119160
|
item: item$2,
|
|
118906
119161
|
icon: icon$3
|
|
118907
119162
|
};
|
|
@@ -118914,10 +119169,10 @@ const Item = ({
|
|
|
118914
119169
|
t: t2
|
|
118915
119170
|
} = useTranslation();
|
|
118916
119171
|
return /* @__PURE__ */ jsxs("div", {
|
|
118917
|
-
className: styles$
|
|
119172
|
+
className: styles$1e.item,
|
|
118918
119173
|
children: [icon2 && /* @__PURE__ */ jsx$1("div", {
|
|
118919
119174
|
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
118920
|
-
className: styles$
|
|
119175
|
+
className: styles$1e.icon,
|
|
118921
119176
|
icon: icon2
|
|
118922
119177
|
})
|
|
118923
119178
|
}), label2 && /* @__PURE__ */ jsx$1("div", {
|
|
@@ -119090,7 +119345,7 @@ const GetListingCategories = async () => {
|
|
|
119090
119345
|
};
|
|
119091
119346
|
const container$f = "_container_d8rq4_1";
|
|
119092
119347
|
const footer$6 = "_footer_d8rq4_5";
|
|
119093
|
-
const styles$
|
|
119348
|
+
const styles$1d = {
|
|
119094
119349
|
container: container$f,
|
|
119095
119350
|
footer: footer$6
|
|
119096
119351
|
};
|
|
@@ -119272,7 +119527,7 @@ const Form$6 = ({
|
|
|
119272
119527
|
children: /* @__PURE__ */ jsxs("form", {
|
|
119273
119528
|
onSubmit: handleSubmit(onSubmitForm),
|
|
119274
119529
|
children: [/* @__PURE__ */ jsx$1("div", {
|
|
119275
|
-
className: styles$
|
|
119530
|
+
className: styles$1d.container,
|
|
119276
119531
|
children: /* @__PURE__ */ jsxs(Row, {
|
|
119277
119532
|
gutter: [16, 16],
|
|
119278
119533
|
children: [/* @__PURE__ */ jsx$1(Col, {
|
|
@@ -119343,7 +119598,7 @@ const Form$6 = ({
|
|
|
119343
119598
|
})]
|
|
119344
119599
|
})
|
|
119345
119600
|
}), /* @__PURE__ */ jsxs("div", {
|
|
119346
|
-
className: styles$
|
|
119601
|
+
className: styles$1d.footer,
|
|
119347
119602
|
children: [/* @__PURE__ */ jsx$1(Button$1, {
|
|
119348
119603
|
size: "small",
|
|
119349
119604
|
type: "reset",
|
|
@@ -120384,9 +120639,9 @@ function requireFacebookLoginRenderProps() {
|
|
|
120384
120639
|
}
|
|
120385
120640
|
var facebookLoginRenderPropsExports = requireFacebookLoginRenderProps();
|
|
120386
120641
|
const FacebookLogin = /* @__PURE__ */ getDefaultExportFromCjs(facebookLoginRenderPropsExports);
|
|
120387
|
-
const connectedText$
|
|
120388
|
-
const styles$
|
|
120389
|
-
connectedText: connectedText$
|
|
120642
|
+
const connectedText$4 = "_connectedText_1nbx5_1";
|
|
120643
|
+
const styles$1c = {
|
|
120644
|
+
connectedText: connectedText$4
|
|
120390
120645
|
};
|
|
120391
120646
|
const FbButton$1 = ({
|
|
120392
120647
|
onSuccess,
|
|
@@ -120424,7 +120679,7 @@ const FbButton$1 = ({
|
|
|
120424
120679
|
mode: "tertiary",
|
|
120425
120680
|
onClick: handleDisconect,
|
|
120426
120681
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
120427
|
-
className: styles$
|
|
120682
|
+
className: styles$1c.connectedText,
|
|
120428
120683
|
children: isDisconnecting ? t2("SYNCING") : t2("SYNCKED")
|
|
120429
120684
|
})
|
|
120430
120685
|
});
|
|
@@ -120441,7 +120696,7 @@ const FbButton$1 = ({
|
|
|
120441
120696
|
onClick: () => setTimeout(renderProps.onClick, 100),
|
|
120442
120697
|
disabled: renderProps.isDisabled,
|
|
120443
120698
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
120444
|
-
className: styles$
|
|
120699
|
+
className: styles$1c.connectedText,
|
|
120445
120700
|
children: t2("CONNECT")
|
|
120446
120701
|
})
|
|
120447
120702
|
})
|
|
@@ -126546,9 +126801,9 @@ const GoogleAuthCallback = async ({
|
|
|
126546
126801
|
validateResponse(data2);
|
|
126547
126802
|
return { data: data2 };
|
|
126548
126803
|
};
|
|
126549
|
-
const connectedText$
|
|
126550
|
-
const styles$
|
|
126551
|
-
connectedText: connectedText$
|
|
126804
|
+
const connectedText$3 = "_connectedText_1nbx5_1";
|
|
126805
|
+
const styles$1b = {
|
|
126806
|
+
connectedText: connectedText$3
|
|
126552
126807
|
};
|
|
126553
126808
|
const GoogleButton$1 = ({
|
|
126554
126809
|
onSuccess,
|
|
@@ -126593,7 +126848,7 @@ const GoogleButton$1 = ({
|
|
|
126593
126848
|
type: "button",
|
|
126594
126849
|
onClick: handleDisconect,
|
|
126595
126850
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
126596
|
-
className: styles$
|
|
126851
|
+
className: styles$1b.connectedText,
|
|
126597
126852
|
children: isDisconnecting ? t2("SYNCING") : t2("SYNCKED")
|
|
126598
126853
|
})
|
|
126599
126854
|
});
|
|
@@ -126606,7 +126861,7 @@ const GoogleButton$1 = ({
|
|
|
126606
126861
|
onClick: () => login(),
|
|
126607
126862
|
isLoading: isExecuting,
|
|
126608
126863
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
126609
|
-
className: styles$
|
|
126864
|
+
className: styles$1b.connectedText,
|
|
126610
126865
|
children: t2("CONNECT")
|
|
126611
126866
|
})
|
|
126612
126867
|
});
|
|
@@ -126619,9 +126874,9 @@ const GoogleButtonContainer$1 = (props) => {
|
|
|
126619
126874
|
})
|
|
126620
126875
|
});
|
|
126621
126876
|
};
|
|
126622
|
-
const connectedText$
|
|
126623
|
-
const styles$
|
|
126624
|
-
connectedText: connectedText$
|
|
126877
|
+
const connectedText$2 = "_connectedText_1nbx5_1";
|
|
126878
|
+
const styles$1a = {
|
|
126879
|
+
connectedText: connectedText$2
|
|
126625
126880
|
};
|
|
126626
126881
|
const BingButton$1 = ({
|
|
126627
126882
|
venueId,
|
|
@@ -126647,7 +126902,7 @@ const BingButton$1 = ({
|
|
|
126647
126902
|
icon: "Bing",
|
|
126648
126903
|
onClick: handleDisconnect,
|
|
126649
126904
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
126650
|
-
className: styles$
|
|
126905
|
+
className: styles$1a.connectedText,
|
|
126651
126906
|
children: t2("SYNCKED")
|
|
126652
126907
|
})
|
|
126653
126908
|
});
|
|
@@ -126659,7 +126914,7 @@ const BingButton$1 = ({
|
|
|
126659
126914
|
icon: "Bing",
|
|
126660
126915
|
onClick: onBingVerify,
|
|
126661
126916
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
126662
|
-
className: styles$
|
|
126917
|
+
className: styles$1a.connectedText,
|
|
126663
126918
|
children: t2("VERIFY")
|
|
126664
126919
|
})
|
|
126665
126920
|
});
|
|
@@ -126672,7 +126927,7 @@ const BingButton$1 = ({
|
|
|
126672
126927
|
icon: "Bing",
|
|
126673
126928
|
onClick: onBingConnect,
|
|
126674
126929
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
126675
|
-
className: styles$
|
|
126930
|
+
className: styles$1a.connectedText,
|
|
126676
126931
|
children: t2("CONNECT")
|
|
126677
126932
|
})
|
|
126678
126933
|
});
|
|
@@ -126704,6 +126959,10 @@ const useConnect = ({ venueId }) => {
|
|
|
126704
126959
|
"Tripadvisor"
|
|
126705
126960
|
/* Tripadvisor */
|
|
126706
126961
|
);
|
|
126962
|
+
const ZomatoConnected = activeModules.includes(
|
|
126963
|
+
"Zomato"
|
|
126964
|
+
/* Zomato */
|
|
126965
|
+
);
|
|
126707
126966
|
return {
|
|
126708
126967
|
isLoading,
|
|
126709
126968
|
data: data2,
|
|
@@ -126712,22 +126971,23 @@ const useConnect = ({ venueId }) => {
|
|
|
126712
126971
|
BingConnected,
|
|
126713
126972
|
AppleConnected,
|
|
126714
126973
|
TripadvisorConnected,
|
|
126715
|
-
reload
|
|
126974
|
+
reload,
|
|
126975
|
+
ZomatoConnected
|
|
126716
126976
|
};
|
|
126717
126977
|
};
|
|
126718
126978
|
const toolbar = "_toolbar_1e45v_1";
|
|
126719
126979
|
const buttonGroup = "_buttonGroup_1e45v_9";
|
|
126720
126980
|
const venueSelector = "_venueSelector_1e45v_15";
|
|
126721
126981
|
const lastUpdate = "_lastUpdate_1e45v_26";
|
|
126722
|
-
const styles$
|
|
126982
|
+
const styles$19 = {
|
|
126723
126983
|
toolbar,
|
|
126724
126984
|
buttonGroup,
|
|
126725
126985
|
venueSelector,
|
|
126726
126986
|
lastUpdate
|
|
126727
126987
|
};
|
|
126728
|
-
const connectedText = "_connectedText_1nbx5_1";
|
|
126729
|
-
const styles$
|
|
126730
|
-
connectedText
|
|
126988
|
+
const connectedText$1 = "_connectedText_1nbx5_1";
|
|
126989
|
+
const styles$18 = {
|
|
126990
|
+
connectedText: connectedText$1
|
|
126731
126991
|
};
|
|
126732
126992
|
const TripadvisorButton = ({
|
|
126733
126993
|
venueId,
|
|
@@ -126750,7 +127010,7 @@ const TripadvisorButton = ({
|
|
|
126750
127010
|
type: "button",
|
|
126751
127011
|
onClick: handleDisconnect,
|
|
126752
127012
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
126753
|
-
className: styles$
|
|
127013
|
+
className: styles$18.connectedText,
|
|
126754
127014
|
children: t2("SYNCKED")
|
|
126755
127015
|
})
|
|
126756
127016
|
});
|
|
@@ -126761,6 +127021,48 @@ const TripadvisorButton = ({
|
|
|
126761
127021
|
mode: "tertiary",
|
|
126762
127022
|
type: "button",
|
|
126763
127023
|
onClick: onTripadvisorConnect,
|
|
127024
|
+
children: /* @__PURE__ */ jsx$1("span", {
|
|
127025
|
+
className: styles$18.connectedText,
|
|
127026
|
+
children: t2("CONNECT")
|
|
127027
|
+
})
|
|
127028
|
+
});
|
|
127029
|
+
};
|
|
127030
|
+
const connectedText = "_connectedText_1nbx5_1";
|
|
127031
|
+
const styles$17 = {
|
|
127032
|
+
connectedText
|
|
127033
|
+
};
|
|
127034
|
+
const ZomatoButton = ({
|
|
127035
|
+
venueId,
|
|
127036
|
+
isConnected,
|
|
127037
|
+
onZomatoConnect,
|
|
127038
|
+
onDisconnect,
|
|
127039
|
+
onConnect
|
|
127040
|
+
}) => {
|
|
127041
|
+
const {
|
|
127042
|
+
t: t2
|
|
127043
|
+
} = useTranslation();
|
|
127044
|
+
const handleDisconnect = async () => {
|
|
127045
|
+
onDisconnect("Zomato");
|
|
127046
|
+
};
|
|
127047
|
+
if (isConnected) {
|
|
127048
|
+
return /* @__PURE__ */ jsx$1(Button$1, {
|
|
127049
|
+
icon: "Zomato",
|
|
127050
|
+
size: "default",
|
|
127051
|
+
mode: "tertiary",
|
|
127052
|
+
type: "button",
|
|
127053
|
+
onClick: handleDisconnect,
|
|
127054
|
+
children: /* @__PURE__ */ jsx$1("span", {
|
|
127055
|
+
className: styles$17.connectedText,
|
|
127056
|
+
children: t2("SYNCKED")
|
|
127057
|
+
})
|
|
127058
|
+
});
|
|
127059
|
+
}
|
|
127060
|
+
return /* @__PURE__ */ jsx$1(Button$1, {
|
|
127061
|
+
icon: "Zomato",
|
|
127062
|
+
size: "default",
|
|
127063
|
+
mode: "tertiary",
|
|
127064
|
+
type: "button",
|
|
127065
|
+
onClick: onZomatoConnect,
|
|
126764
127066
|
children: /* @__PURE__ */ jsx$1("span", {
|
|
126765
127067
|
className: styles$17.connectedText,
|
|
126766
127068
|
children: t2("CONNECT")
|
|
@@ -126780,6 +127082,7 @@ const FormToolBar = ({
|
|
|
126780
127082
|
onBingVerify,
|
|
126781
127083
|
onBingConnect,
|
|
126782
127084
|
onTripadvisorConnect,
|
|
127085
|
+
onZomatoConnect,
|
|
126783
127086
|
googlePublishing,
|
|
126784
127087
|
facebookPublishing
|
|
126785
127088
|
}) => {
|
|
@@ -126794,6 +127097,7 @@ const FormToolBar = ({
|
|
|
126794
127097
|
BingConnected,
|
|
126795
127098
|
AppleConnected,
|
|
126796
127099
|
TripadvisorConnected,
|
|
127100
|
+
ZomatoConnected,
|
|
126797
127101
|
reload,
|
|
126798
127102
|
isLoading: loadingConnections
|
|
126799
127103
|
} = useConnect({
|
|
@@ -126815,9 +127119,9 @@ const FormToolBar = ({
|
|
|
126815
127119
|
return /* @__PURE__ */ jsx$1(Fragment, {
|
|
126816
127120
|
children: /* @__PURE__ */ jsx$1(HeaderBar, {
|
|
126817
127121
|
children: /* @__PURE__ */ jsxs("div", {
|
|
126818
|
-
className: styles$
|
|
127122
|
+
className: styles$19.toolbar,
|
|
126819
127123
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
126820
|
-
className: styles$
|
|
127124
|
+
className: styles$19.buttonGroup,
|
|
126821
127125
|
children: [(GoogleConnected || FacebookConnected || BingConnected) && /* @__PURE__ */ jsxs(Fragment, {
|
|
126822
127126
|
children: [/* @__PURE__ */ jsx$1(GoogleButtonContainer$1, {
|
|
126823
127127
|
onSuccess: setGoogleResponse,
|
|
@@ -126840,6 +127144,13 @@ const FormToolBar = ({
|
|
|
126840
127144
|
onTripadvisorConnect,
|
|
126841
127145
|
onDisconnect,
|
|
126842
127146
|
onConnect
|
|
127147
|
+
}), /* @__PURE__ */ jsx$1(ZomatoButton, {
|
|
127148
|
+
venueId,
|
|
127149
|
+
isConnected: ZomatoConnected,
|
|
127150
|
+
reload: reloadConnect,
|
|
127151
|
+
onZomatoConnect,
|
|
127152
|
+
onDisconnect,
|
|
127153
|
+
onConnect
|
|
126843
127154
|
}), /* @__PURE__ */ jsx$1(BingButton$1, {
|
|
126844
127155
|
venueId,
|
|
126845
127156
|
bingVerificationCode: data2.bingVerificationCode,
|
|
@@ -126857,7 +127168,7 @@ const FormToolBar = ({
|
|
|
126857
127168
|
type: "button",
|
|
126858
127169
|
children: t2("CONNECT")
|
|
126859
127170
|
}), (GoogleConnected || FacebookConnected || BingConnected) && /* @__PURE__ */ jsxs("div", {
|
|
126860
|
-
className: styles$
|
|
127171
|
+
className: styles$19.lastUpdate,
|
|
126861
127172
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
126862
127173
|
style: {
|
|
126863
127174
|
fontWeight: "bolder"
|
|
@@ -126868,11 +127179,11 @@ const FormToolBar = ({
|
|
|
126868
127179
|
})]
|
|
126869
127180
|
})]
|
|
126870
127181
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
126871
|
-
className: styles$
|
|
127182
|
+
className: styles$19.buttonGroup,
|
|
126872
127183
|
children: !singleVenue2 && /* @__PURE__ */ jsx$1("div", {
|
|
126873
|
-
className: styles$
|
|
127184
|
+
className: styles$19.buttonGroup,
|
|
126874
127185
|
children: /* @__PURE__ */ jsx$1("div", {
|
|
126875
|
-
className: styles$
|
|
127186
|
+
className: styles$19.venueSelector,
|
|
126876
127187
|
children: /* @__PURE__ */ jsx$1(SelectVenue, {
|
|
126877
127188
|
onChange: handleChangeVenue,
|
|
126878
127189
|
selectedVenue: venueId,
|
|
@@ -148333,6 +148644,76 @@ const ModalTripadvisorConnect = ({
|
|
|
148333
148644
|
})
|
|
148334
148645
|
});
|
|
148335
148646
|
};
|
|
148647
|
+
const ModalZomatoConnect = ({
|
|
148648
|
+
open,
|
|
148649
|
+
onClose: onClose2,
|
|
148650
|
+
initialValues,
|
|
148651
|
+
reload,
|
|
148652
|
+
venueListingId,
|
|
148653
|
+
onConnect,
|
|
148654
|
+
setZomatoProfileUrl
|
|
148655
|
+
}) => {
|
|
148656
|
+
const {
|
|
148657
|
+
t: t2
|
|
148658
|
+
} = useTranslation();
|
|
148659
|
+
const {
|
|
148660
|
+
isExecuting,
|
|
148661
|
+
execute
|
|
148662
|
+
} = useService(UpdateVenueListing, {
|
|
148663
|
+
onSuccess: async () => {
|
|
148664
|
+
onConnect("Zomato");
|
|
148665
|
+
await reload();
|
|
148666
|
+
onClose2();
|
|
148667
|
+
}
|
|
148668
|
+
});
|
|
148669
|
+
const handleSubmit = (data2) => {
|
|
148670
|
+
setZomatoProfileUrl(data2.profileUrl);
|
|
148671
|
+
execute({
|
|
148672
|
+
venueListingId,
|
|
148673
|
+
data: data2
|
|
148674
|
+
});
|
|
148675
|
+
};
|
|
148676
|
+
return /* @__PURE__ */ jsx$1(Modal2, {
|
|
148677
|
+
open,
|
|
148678
|
+
onClose: onClose2,
|
|
148679
|
+
title: t2("Zomato profile url"),
|
|
148680
|
+
width: 600,
|
|
148681
|
+
children: /* @__PURE__ */ jsx$1(Formik, {
|
|
148682
|
+
initialValues,
|
|
148683
|
+
onSubmit: handleSubmit,
|
|
148684
|
+
children: /* @__PURE__ */ jsxs(Form$7, {
|
|
148685
|
+
children: [/* @__PURE__ */ jsx$1("div", {
|
|
148686
|
+
children: /* @__PURE__ */ jsx$1("p", {
|
|
148687
|
+
children: t2("Please, enter below the profile url of your zomato.")
|
|
148688
|
+
})
|
|
148689
|
+
}), /* @__PURE__ */ jsx$1("div", {
|
|
148690
|
+
style: {
|
|
148691
|
+
display: "grid",
|
|
148692
|
+
gridTemplateColumns: "repeat(1,1fr)",
|
|
148693
|
+
gap: "1rem"
|
|
148694
|
+
},
|
|
148695
|
+
children: /* @__PURE__ */ jsx$1(TextInputField$1, {
|
|
148696
|
+
id: "profileUrl",
|
|
148697
|
+
label: t2("PROFILEURL")
|
|
148698
|
+
})
|
|
148699
|
+
}), /* @__PURE__ */ jsx$1("div", {
|
|
148700
|
+
style: {
|
|
148701
|
+
display: "flex",
|
|
148702
|
+
justifyContent: "flex-end",
|
|
148703
|
+
alignItems: "center",
|
|
148704
|
+
marginTop: "1rem"
|
|
148705
|
+
},
|
|
148706
|
+
children: /* @__PURE__ */ jsx$1(Button, {
|
|
148707
|
+
size: "small",
|
|
148708
|
+
type: "submit",
|
|
148709
|
+
isLoading: isExecuting,
|
|
148710
|
+
children: t2("SAVE")
|
|
148711
|
+
})
|
|
148712
|
+
})]
|
|
148713
|
+
})
|
|
148714
|
+
})
|
|
148715
|
+
});
|
|
148716
|
+
};
|
|
148336
148717
|
const VenueListingDetail = ({
|
|
148337
148718
|
venueListingId,
|
|
148338
148719
|
singleVenue: singleVenue2 = false
|
|
@@ -148348,6 +148729,8 @@ const VenueListingDetail = ({
|
|
|
148348
148729
|
const [openBingConnectModal, setOpenBingConnectModal] = useState(false);
|
|
148349
148730
|
const [openTripadvisorConnectModal, setOpenTripadvisorConnectModal] = useState(false);
|
|
148350
148731
|
const [tripadvisorProfileUrl, setTripadvisorProfileUrl] = useState(null);
|
|
148732
|
+
const [openZomatoConnectModal, setOpenZomatoConnectModal] = useState(false);
|
|
148733
|
+
const [zomatoProfileUrl, setZomatoProfileUrl] = useState(null);
|
|
148351
148734
|
const clearModuleToDisconnect = () => setModuleToDisconnect(void 0);
|
|
148352
148735
|
const clearModuleToConnect = () => setModuleToConnect(void 0);
|
|
148353
148736
|
const [showAppleConnectModal, setShowAppleConnectModal] = useState(false);
|
|
@@ -148427,7 +148810,7 @@ const VenueListingDetail = ({
|
|
|
148427
148810
|
void executeModuleConnect({
|
|
148428
148811
|
venueId,
|
|
148429
148812
|
module: moduleToConnect,
|
|
148430
|
-
profileUrl: tripadvisorProfileUrl
|
|
148813
|
+
profileUrl: tripadvisorProfileUrl || zomatoProfileUrl || void 0
|
|
148431
148814
|
});
|
|
148432
148815
|
};
|
|
148433
148816
|
const [temporaryClosed, setTemporaylosed] = useState();
|
|
@@ -148526,6 +148909,7 @@ const VenueListingDetail = ({
|
|
|
148526
148909
|
onBingVerify: () => setOpenBingModal(true),
|
|
148527
148910
|
onBingConnect: () => setOpenBingConnectModal(true),
|
|
148528
148911
|
onTripadvisorConnect: () => setOpenTripadvisorConnectModal(true),
|
|
148912
|
+
onZomatoConnect: () => setOpenZomatoConnectModal(true),
|
|
148529
148913
|
googlePublishing,
|
|
148530
148914
|
facebookPublishing
|
|
148531
148915
|
}),
|
|
@@ -148649,6 +149033,14 @@ const VenueListingDetail = ({
|
|
|
148649
149033
|
reload,
|
|
148650
149034
|
onConnect: setModuleToConnect,
|
|
148651
149035
|
setTripadvisorProfileUrl
|
|
149036
|
+
}), /* @__PURE__ */ jsx$1(ModalZomatoConnect, {
|
|
149037
|
+
onClose: () => setOpenZomatoConnectModal(false),
|
|
149038
|
+
open: Boolean(openZomatoConnectModal),
|
|
149039
|
+
initialValues: data2,
|
|
149040
|
+
venueListingId,
|
|
149041
|
+
reload,
|
|
149042
|
+
onConnect: setModuleToConnect,
|
|
149043
|
+
setZomatoProfileUrl
|
|
148652
149044
|
}), /* @__PURE__ */ jsx$1(FbStepsToConnect, {
|
|
148653
149045
|
venueId,
|
|
148654
149046
|
onSucess: reloadConnect,
|
|
@@ -148671,11 +149063,13 @@ const actionstoDisconnect = {
|
|
|
148671
149063
|
Google: t("AREYOUSUREDISCONNECTFROMGOOGLE"),
|
|
148672
149064
|
Facebook: t("AREYOUSUREDISCONNECTFROMFACEBOOK"),
|
|
148673
149065
|
Bing: t("AREYOUSUREDISCONNECTFROMBING"),
|
|
148674
|
-
Tripadvisor: t("AREYOUSUREDISCONNECTFROMTRIPADVISOR")
|
|
149066
|
+
Tripadvisor: t("AREYOUSUREDISCONNECTFROMTRIPADVISOR"),
|
|
149067
|
+
Zomato: t("AREYOUSUREDISCONNECTFROMZOMATO")
|
|
148675
149068
|
};
|
|
148676
149069
|
const actionstoConnect = {
|
|
148677
149070
|
BingConnect: t("AREYOUSURECONNECTTOBING"),
|
|
148678
|
-
TripAdvisorConnect: t("AREYOUSURECONNECTTOTRIPADVISOR")
|
|
149071
|
+
TripAdvisorConnect: t("AREYOUSURECONNECTTOTRIPADVISOR"),
|
|
149072
|
+
ZomatoConnect: t("AREYOUSURECONNECTTOZOMATO")
|
|
148679
149073
|
};
|
|
148680
149074
|
const getAction = (module2 = "") => {
|
|
148681
149075
|
return actionstoDisconnect[module2] || actionstoConnect[module2] || "";
|
|
@@ -151803,55 +152197,55 @@ const ReservationsAnalytics = ({
|
|
|
151803
152197
|
})]
|
|
151804
152198
|
});
|
|
151805
152199
|
};
|
|
151806
|
-
const mainWrapper = "
|
|
151807
|
-
const mainConatiner$1 = "
|
|
151808
|
-
const mainTableContainer = "
|
|
151809
|
-
const mainSidebarContainer = "
|
|
151810
|
-
const sidebarContent = "
|
|
151811
|
-
const sidebarHeader = "
|
|
151812
|
-
const sidebarMainContent = "
|
|
151813
|
-
const sidebarFooter = "
|
|
151814
|
-
const headerReferece = "
|
|
151815
|
-
const sidebarCloseIcon = "
|
|
151816
|
-
const headerContainer = "
|
|
151817
|
-
const searchContainer = "
|
|
151818
|
-
const buttonList = "
|
|
151819
|
-
const buttonItem = "
|
|
151820
|
-
const addReservationButton = "
|
|
151821
|
-
const hideCancellationsContainer = "
|
|
151822
|
-
const customerVisitContainer = "
|
|
151823
|
-
const multipleVisits = "
|
|
151824
|
-
const singleVisit = "
|
|
151825
|
-
const loading$2 = "
|
|
151826
|
-
const tableTopHeader = "
|
|
151827
|
-
const tableTopHeaderContent = "
|
|
151828
|
-
const tableTopHeaderContentText = "
|
|
151829
|
-
const tableRowContainer = "
|
|
151830
|
-
const tableRowCard = "
|
|
151831
|
-
const fadeInX = "
|
|
151832
|
-
const canceled = "
|
|
151833
|
-
const noData = "
|
|
151834
|
-
const tableRowHour = "
|
|
151835
|
-
const tableRowHourText = "
|
|
151836
|
-
const hours = "
|
|
151837
|
-
const tableRowContent = "
|
|
151838
|
-
const rowImage = "
|
|
151839
|
-
const rowContactContainer = "
|
|
151840
|
-
const rowContactText = "
|
|
151841
|
-
const rowContactPhone = "
|
|
151842
|
-
const rowSectionContainer = "
|
|
151843
|
-
const rowSection = "
|
|
151844
|
-
const rowSectionText = "
|
|
151845
|
-
const rowSectionSecText = "
|
|
151846
|
-
const rowActionButton = "
|
|
151847
|
-
const bookingInfoContainer = "
|
|
151848
|
-
const bookingInfoCardColumn = "
|
|
151849
|
-
const bookingInfoCardContainer = "
|
|
151850
|
-
const bookingInfoCard = "
|
|
151851
|
-
const bookingInfoCardContent = "
|
|
151852
|
-
const bookingInfoCardTitle = "
|
|
151853
|
-
const bookingInfoCardText = "
|
|
151854
|
-
const enableOnboardingContainer = "
|
|
152200
|
+
const mainWrapper = "_mainWrapper_qcpcl_2";
|
|
152201
|
+
const mainConatiner$1 = "_mainConatiner_qcpcl_9";
|
|
152202
|
+
const mainTableContainer = "_mainTableContainer_qcpcl_20";
|
|
152203
|
+
const mainSidebarContainer = "_mainSidebarContainer_qcpcl_28";
|
|
152204
|
+
const sidebarContent = "_sidebarContent_qcpcl_37";
|
|
152205
|
+
const sidebarHeader = "_sidebarHeader_qcpcl_42";
|
|
152206
|
+
const sidebarMainContent = "_sidebarMainContent_qcpcl_47";
|
|
152207
|
+
const sidebarFooter = "_sidebarFooter_qcpcl_55";
|
|
152208
|
+
const headerReferece = "_headerReferece_qcpcl_60";
|
|
152209
|
+
const sidebarCloseIcon = "_sidebarCloseIcon_qcpcl_63";
|
|
152210
|
+
const headerContainer = "_headerContainer_qcpcl_126";
|
|
152211
|
+
const searchContainer = "_searchContainer_qcpcl_132";
|
|
152212
|
+
const buttonList = "_buttonList_qcpcl_143";
|
|
152213
|
+
const buttonItem = "_buttonItem_qcpcl_148";
|
|
152214
|
+
const addReservationButton = "_addReservationButton_qcpcl_157";
|
|
152215
|
+
const hideCancellationsContainer = "_hideCancellationsContainer_qcpcl_166";
|
|
152216
|
+
const customerVisitContainer = "_customerVisitContainer_qcpcl_174";
|
|
152217
|
+
const multipleVisits = "_multipleVisits_qcpcl_185";
|
|
152218
|
+
const singleVisit = "_singleVisit_qcpcl_188";
|
|
152219
|
+
const loading$2 = "_loading_qcpcl_191";
|
|
152220
|
+
const tableTopHeader = "_tableTopHeader_qcpcl_202";
|
|
152221
|
+
const tableTopHeaderContent = "_tableTopHeaderContent_qcpcl_216";
|
|
152222
|
+
const tableTopHeaderContentText = "_tableTopHeaderContentText_qcpcl_223";
|
|
152223
|
+
const tableRowContainer = "_tableRowContainer_qcpcl_232";
|
|
152224
|
+
const tableRowCard = "_tableRowCard_qcpcl_238";
|
|
152225
|
+
const fadeInX = "_fadeInX_qcpcl_1";
|
|
152226
|
+
const canceled = "_canceled_qcpcl_246";
|
|
152227
|
+
const noData = "_noData_qcpcl_249";
|
|
152228
|
+
const tableRowHour = "_tableRowHour_qcpcl_256";
|
|
152229
|
+
const tableRowHourText = "_tableRowHourText_qcpcl_272";
|
|
152230
|
+
const hours = "_hours_qcpcl_280";
|
|
152231
|
+
const tableRowContent = "_tableRowContent_qcpcl_286";
|
|
152232
|
+
const rowImage = "_rowImage_qcpcl_301";
|
|
152233
|
+
const rowContactContainer = "_rowContactContainer_qcpcl_315";
|
|
152234
|
+
const rowContactText = "_rowContactText_qcpcl_327";
|
|
152235
|
+
const rowContactPhone = "_rowContactPhone_qcpcl_333";
|
|
152236
|
+
const rowSectionContainer = "_rowSectionContainer_qcpcl_340";
|
|
152237
|
+
const rowSection = "_rowSection_qcpcl_340";
|
|
152238
|
+
const rowSectionText = "_rowSectionText_qcpcl_353";
|
|
152239
|
+
const rowSectionSecText = "_rowSectionSecText_qcpcl_359";
|
|
152240
|
+
const rowActionButton = "_rowActionButton_qcpcl_366";
|
|
152241
|
+
const bookingInfoContainer = "_bookingInfoContainer_qcpcl_379";
|
|
152242
|
+
const bookingInfoCardColumn = "_bookingInfoCardColumn_qcpcl_384";
|
|
152243
|
+
const bookingInfoCardContainer = "_bookingInfoCardContainer_qcpcl_392";
|
|
152244
|
+
const bookingInfoCard = "_bookingInfoCard_qcpcl_384";
|
|
152245
|
+
const bookingInfoCardContent = "_bookingInfoCardContent_qcpcl_404";
|
|
152246
|
+
const bookingInfoCardTitle = "_bookingInfoCardTitle_qcpcl_410";
|
|
152247
|
+
const bookingInfoCardText = "_bookingInfoCardText_qcpcl_413";
|
|
152248
|
+
const enableOnboardingContainer = "_enableOnboardingContainer_qcpcl_417";
|
|
151855
152249
|
const styles$u = {
|
|
151856
152250
|
mainWrapper,
|
|
151857
152251
|
mainConatiner: mainConatiner$1,
|
|
@@ -151863,9 +152257,9 @@ const styles$u = {
|
|
|
151863
152257
|
sidebarFooter,
|
|
151864
152258
|
headerReferece,
|
|
151865
152259
|
sidebarCloseIcon,
|
|
151866
|
-
"mainSidebarContainer--open": "_mainSidebarContainer--
|
|
151867
|
-
"mainSidebarContainer--close": "_mainSidebarContainer--
|
|
151868
|
-
"sidebarCloseIcon--show": "_sidebarCloseIcon--
|
|
152260
|
+
"mainSidebarContainer--open": "_mainSidebarContainer--open_qcpcl_74",
|
|
152261
|
+
"mainSidebarContainer--close": "_mainSidebarContainer--close_qcpcl_80",
|
|
152262
|
+
"sidebarCloseIcon--show": "_sidebarCloseIcon--show_qcpcl_88",
|
|
151869
152263
|
headerContainer,
|
|
151870
152264
|
searchContainer,
|
|
151871
152265
|
buttonList,
|
|
@@ -152873,6 +153267,22 @@ const GetTableAvailability = async ({
|
|
|
152873
153267
|
}
|
|
152874
153268
|
return [];
|
|
152875
153269
|
};
|
|
153270
|
+
const GetTableWalkInAvailability = async ({
|
|
153271
|
+
venue_id,
|
|
153272
|
+
params
|
|
153273
|
+
}) => {
|
|
153274
|
+
if (params && params.startSec) {
|
|
153275
|
+
const responseData = await instance$1.get(`/resbook/venue/${venue_id}/table-availablity/walk-in`, {
|
|
153276
|
+
params: {
|
|
153277
|
+
...params,
|
|
153278
|
+
limit: 100
|
|
153279
|
+
}
|
|
153280
|
+
});
|
|
153281
|
+
const data2 = responseData ?? [];
|
|
153282
|
+
return data2;
|
|
153283
|
+
}
|
|
153284
|
+
return [];
|
|
153285
|
+
};
|
|
152876
153286
|
var momentTimezone$2 = { exports: {} };
|
|
152877
153287
|
var momentTimezone$1 = { exports: {} };
|
|
152878
153288
|
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(moment$1);
|
|
@@ -153638,15 +154048,17 @@ const CheckDisplay = ({
|
|
|
153638
154048
|
const [showDetails, setShowDetails] = useState(false);
|
|
153639
154049
|
const [showAllItems, setShowAllItems] = useState(false);
|
|
153640
154050
|
const formatCurrency = (amount) => {
|
|
154051
|
+
console.log("currency", currency);
|
|
154052
|
+
console.log("amount", amount);
|
|
153641
154053
|
switch (currency) {
|
|
153642
154054
|
case "EUR":
|
|
153643
154055
|
return `€${amount.toFixed(2)}`;
|
|
153644
154056
|
case "USD":
|
|
153645
154057
|
return `$${amount.toFixed(2)}`;
|
|
153646
154058
|
case "GBP":
|
|
153647
|
-
return `£${amount.toFixed(2)}`;
|
|
154059
|
+
return `£${amount ? amount.toFixed(2) : "-"}`;
|
|
153648
154060
|
default:
|
|
153649
|
-
return `${amount.toFixed(2)} ${currency ?? ""}`;
|
|
154061
|
+
return `${amount ? amount.toFixed(2) : "-"} ${currency ?? ""}`;
|
|
153650
154062
|
}
|
|
153651
154063
|
};
|
|
153652
154064
|
const calculatedValues = useMemo$1(() => {
|
|
@@ -153697,14 +154109,14 @@ const CheckDisplay = ({
|
|
|
153697
154109
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
153698
154110
|
children: [t2("TAX"), " (", calculatedValues.taxPercentage, "%)"]
|
|
153699
154111
|
}), /* @__PURE__ */ jsx$1("span", {
|
|
153700
|
-
children: formatCurrency(check2.tax)
|
|
154112
|
+
children: check2.tax ? formatCurrency(check2.tax) : "-"
|
|
153701
154113
|
})]
|
|
153702
154114
|
}), /* @__PURE__ */ jsxs("div", {
|
|
153703
154115
|
className: styles$q.detailRow,
|
|
153704
154116
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
153705
154117
|
children: [t2("TIP"), " (", calculatedValues.tipPercentage, "%)"]
|
|
153706
154118
|
}), /* @__PURE__ */ jsx$1("span", {
|
|
153707
|
-
children: formatCurrency(check2.tip)
|
|
154119
|
+
children: check2.tip ? formatCurrency(check2.tip) : "-"
|
|
153708
154120
|
})]
|
|
153709
154121
|
}), /* @__PURE__ */ jsxs("div", {
|
|
153710
154122
|
className: styles$q.detailRow,
|
|
@@ -153713,7 +154125,7 @@ const CheckDisplay = ({
|
|
|
153713
154125
|
children: t2("GROSS_TOTAL")
|
|
153714
154126
|
}), /* @__PURE__ */ jsx$1("span", {
|
|
153715
154127
|
className: styles$q.grossTotalAmount,
|
|
153716
|
-
children: formatCurrency(calculatedValues.grossTotal)
|
|
154128
|
+
children: calculatedValues.grossTotal ? formatCurrency(calculatedValues.grossTotal) : "-"
|
|
153717
154129
|
})]
|
|
153718
154130
|
})]
|
|
153719
154131
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
@@ -153743,7 +154155,7 @@ const CheckDisplay = ({
|
|
|
153743
154155
|
children: [item2.quantity, " - ", item2.name]
|
|
153744
154156
|
}), /* @__PURE__ */ jsx$1("span", {
|
|
153745
154157
|
className: styles$q.itemPrice,
|
|
153746
|
-
children: formatCurrency(item2.price)
|
|
154158
|
+
children: formatCurrency((item2 == null ? void 0 : item2.price) ?? (item2 == null ? void 0 : item2.amount) ?? (item2 == null ? void 0 : item2.unitAmount) ?? 0)
|
|
153747
154159
|
})]
|
|
153748
154160
|
}, `${check2.checkNumber}-${item2.id}-${itemIndex}`);
|
|
153749
154161
|
})
|
|
@@ -153840,18 +154252,30 @@ const index$7 = ({
|
|
|
153840
154252
|
phone: "",
|
|
153841
154253
|
notes: ""
|
|
153842
154254
|
};
|
|
153843
|
-
const
|
|
153844
|
-
|
|
153845
|
-
|
|
153846
|
-
|
|
153847
|
-
|
|
153848
|
-
|
|
153849
|
-
|
|
153850
|
-
|
|
153851
|
-
|
|
153852
|
-
|
|
153853
|
-
|
|
153854
|
-
|
|
154255
|
+
const isWalkInRef = useRef(false);
|
|
154256
|
+
const [, setSchemaTick] = useState(0);
|
|
154257
|
+
const bookingSchema = () => {
|
|
154258
|
+
const base = {
|
|
154259
|
+
source: create$6().test("is-valid-source", "Source is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
|
|
154260
|
+
partySize: create$6().test("is-valid-partySize", "Party Size is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
|
|
154261
|
+
table: create$6().test("is-valid-table", "Table is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required()
|
|
154262
|
+
};
|
|
154263
|
+
if (isWalkInRef.current) {
|
|
154264
|
+
return create$2().shape({
|
|
154265
|
+
...base
|
|
154266
|
+
});
|
|
154267
|
+
}
|
|
154268
|
+
return create$2().shape({
|
|
154269
|
+
...base,
|
|
154270
|
+
date: create$4().required(),
|
|
154271
|
+
time: create$6().test("is-valid-time", "Time is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
|
|
154272
|
+
firstName: create$4(),
|
|
154273
|
+
lastName: create$4(),
|
|
154274
|
+
email: create$4().email(t2("errors.email")),
|
|
154275
|
+
phone: create$4().nullable().notRequired().test("is-valid-phone", t2("errors.phone"), (value2) => !value2 || new RegExp(/^\+?[1-9]\d{1,14}$/).test(value2)),
|
|
154276
|
+
notes: create$4()
|
|
154277
|
+
});
|
|
154278
|
+
};
|
|
153855
154279
|
const {
|
|
153856
154280
|
control,
|
|
153857
154281
|
reset,
|
|
@@ -153868,6 +154292,13 @@ const index$7 = ({
|
|
|
153868
154292
|
control,
|
|
153869
154293
|
name: "source"
|
|
153870
154294
|
});
|
|
154295
|
+
useEffect(() => {
|
|
154296
|
+
const newIsWalkIn = (source2 == null ? void 0 : source2.code) === "WALK-IN";
|
|
154297
|
+
if (isWalkInRef.current !== newIsWalkIn) {
|
|
154298
|
+
isWalkInRef.current = newIsWalkIn;
|
|
154299
|
+
setSchemaTick((t22) => t22 + 1);
|
|
154300
|
+
}
|
|
154301
|
+
}, [source2 == null ? void 0 : source2.code]);
|
|
153871
154302
|
const date4 = useWatch({
|
|
153872
154303
|
control,
|
|
153873
154304
|
name: "date"
|
|
@@ -153880,9 +154311,10 @@ const index$7 = ({
|
|
|
153880
154311
|
control,
|
|
153881
154312
|
name: "partySize"
|
|
153882
154313
|
});
|
|
154314
|
+
const isWalkIn = (source2 == null ? void 0 : source2.code) === "WALK-IN";
|
|
153883
154315
|
const {
|
|
153884
154316
|
data: data2
|
|
153885
|
-
} = useFetch(date4 && time2 && (time2 == null ? void 0 : time2.value) && partySize2 && (partySize2 == null ? void 0 : partySize2.value) ? GetTableAvailability : () => Promise.resolve([]), {
|
|
154317
|
+
} = useFetch(date4 && time2 && (time2 == null ? void 0 : time2.value) && partySize2 && (partySize2 == null ? void 0 : partySize2.value) ? isWalkIn ? GetTableWalkInAvailability : GetTableAvailability : () => Promise.resolve([]), {
|
|
153886
154318
|
cacheId: "reservation0dashboard0table0availability",
|
|
153887
154319
|
venue_id: venueId,
|
|
153888
154320
|
params: source2 && (source2 == null ? void 0 : source2.value) ? {
|
|
@@ -153902,7 +154334,7 @@ const index$7 = ({
|
|
|
153902
154334
|
}
|
|
153903
154335
|
});
|
|
153904
154336
|
const onSubmit = async () => {
|
|
153905
|
-
var _a2, _b, _c, _d, _e2, _f, _g;
|
|
154337
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h, _i;
|
|
153906
154338
|
const data22 = await getValues();
|
|
153907
154339
|
const result = await trigger();
|
|
153908
154340
|
if (!result) {
|
|
@@ -153910,17 +154342,19 @@ const index$7 = ({
|
|
|
153910
154342
|
return;
|
|
153911
154343
|
}
|
|
153912
154344
|
if (!selectedBooking) {
|
|
154345
|
+
const isWalkInCreate = ((_a2 = data22 == null ? void 0 : data22.source) == null ? void 0 : _a2.code) === "WALK-IN";
|
|
154346
|
+
const startSec = isWalkInCreate ? moment.tz(moment(), currentTimeZone || void 0).valueOf() / 1e3 : data22.date && ((_b = data22.time) == null ? void 0 : _b.value) ? moment.tz(`${data22.date} ${(_c = data22.time) == null ? void 0 : _c.value}`, "DD/MM/YYYY HH:mm", currentTimeZone ? currentTimeZone : "").valueOf() / 1e3 : moment.tz(moment(), currentTimeZone ? currentTimeZone : "").valueOf() / 1e3;
|
|
153913
154347
|
const toSend = {
|
|
153914
|
-
bookingChannel: (
|
|
153915
|
-
partySize: (
|
|
153916
|
-
table: (
|
|
153917
|
-
date:
|
|
154348
|
+
bookingChannel: (_d = data22 == null ? void 0 : data22.source) == null ? void 0 : _d.value,
|
|
154349
|
+
partySize: (_e2 = data22 == null ? void 0 : data22.partySize) == null ? void 0 : _e2.value,
|
|
154350
|
+
table: (_f = data22 == null ? void 0 : data22.table) == null ? void 0 : _f.value,
|
|
154351
|
+
date: Math.floor(startSec),
|
|
153918
154352
|
notes: data22 == null ? void 0 : data22.notes,
|
|
153919
154353
|
contact: {
|
|
153920
|
-
firstname: data22 == null ? void 0 : data22.firstName,
|
|
153921
|
-
lastname: data22 == null ? void 0 : data22.lastName,
|
|
153922
|
-
email: data22 == null ? void 0 : data22.email,
|
|
153923
|
-
telephone: data22 == null ? void 0 : data22.phone,
|
|
154354
|
+
firstname: isWalkInCreate ? "" : data22 == null ? void 0 : data22.firstName,
|
|
154355
|
+
lastname: isWalkInCreate ? "" : data22 == null ? void 0 : data22.lastName,
|
|
154356
|
+
email: isWalkInCreate ? "" : data22 == null ? void 0 : data22.email,
|
|
154357
|
+
telephone: isWalkInCreate ? "" : data22 == null ? void 0 : data22.phone,
|
|
153924
154358
|
locale: "en"
|
|
153925
154359
|
}
|
|
153926
154360
|
};
|
|
@@ -153930,10 +154364,11 @@ const index$7 = ({
|
|
|
153930
154364
|
});
|
|
153931
154365
|
reloadMainTable();
|
|
153932
154366
|
} else {
|
|
154367
|
+
const dateSec = data22.date ? moment.tz(`${data22.date} ${(_g = data22.time) == null ? void 0 : _g.value}`, "DD/MM/YYYY HH:mm", currentTimeZone ? currentTimeZone : "").valueOf() / 1e3 : moment.tz(moment(), currentTimeZone ? currentTimeZone : "").valueOf() / 1e3;
|
|
153933
154368
|
const toSend = {
|
|
153934
|
-
partySize: (
|
|
153935
|
-
table: (
|
|
153936
|
-
date:
|
|
154369
|
+
partySize: (_h = data22 == null ? void 0 : data22.partySize) == null ? void 0 : _h.value,
|
|
154370
|
+
table: (_i = data22 == null ? void 0 : data22.table) == null ? void 0 : _i.value,
|
|
154371
|
+
date: Math.floor(dateSec),
|
|
153937
154372
|
notes: data22 == null ? void 0 : data22.notes,
|
|
153938
154373
|
contact: {
|
|
153939
154374
|
firstname: data22 == null ? void 0 : data22.firstName,
|
|
@@ -153952,7 +154387,8 @@ const index$7 = ({
|
|
|
153952
154387
|
};
|
|
153953
154388
|
useEffect(() => {
|
|
153954
154389
|
if (data2) {
|
|
153955
|
-
const
|
|
154390
|
+
const list = Array.isArray(data2) ? data2 : (data2 == null ? void 0 : data2.id) ? [data2] : [];
|
|
154391
|
+
const tableOptions2 = list.map((item2) => {
|
|
153956
154392
|
var _a2, _b;
|
|
153957
154393
|
return {
|
|
153958
154394
|
value: item2.id,
|
|
@@ -153982,7 +154418,7 @@ const index$7 = ({
|
|
|
153982
154418
|
if (filtersData == null ? void 0 : filtersData.hours) {
|
|
153983
154419
|
setTimeByDayOptions(filtersData == null ? void 0 : filtersData.hours);
|
|
153984
154420
|
}
|
|
153985
|
-
if ((filtersData == null ? void 0 : filtersData.tables) && !selectedBooking) {
|
|
154421
|
+
if ((filtersData == null ? void 0 : filtersData.tables) && !selectedBooking && (source2 == null ? void 0 : source2.code) !== "WALK-IN") {
|
|
153986
154422
|
setTableOptions(filtersData.tables.map((item2) => ({
|
|
153987
154423
|
value: item2.id,
|
|
153988
154424
|
label: item2.label
|
|
@@ -153991,7 +154427,7 @@ const index$7 = ({
|
|
|
153991
154427
|
if (filtersData == null ? void 0 : filtersData.timeZone) {
|
|
153992
154428
|
setCurrentTimeZone(filtersData.timeZone);
|
|
153993
154429
|
}
|
|
153994
|
-
}, [filtersData]);
|
|
154430
|
+
}, [filtersData, source2 == null ? void 0 : source2.code]);
|
|
153995
154431
|
useEffect(() => {
|
|
153996
154432
|
var _a2, _b;
|
|
153997
154433
|
if (selectedBooking) {
|
|
@@ -154043,7 +154479,7 @@ const index$7 = ({
|
|
|
154043
154479
|
useEffect(() => {
|
|
154044
154480
|
if (source2 && source2.code === "WALK-IN") {
|
|
154045
154481
|
const currentTime = moment();
|
|
154046
|
-
setValue("date", currentTime.format("YYYY
|
|
154482
|
+
setValue("date", currentTime.format("DD/MM/YYYY"));
|
|
154047
154483
|
if (timeOptions.length > 0) {
|
|
154048
154484
|
const validFutureTimes = timeOptions.filter((option) => option.value).map((option) => ({
|
|
154049
154485
|
...option,
|
|
@@ -154077,10 +154513,11 @@ const index$7 = ({
|
|
|
154077
154513
|
name: "source",
|
|
154078
154514
|
options: sourceOptions.map((item2) => ({
|
|
154079
154515
|
value: item2.value,
|
|
154080
|
-
label: t2(item2.label)
|
|
154516
|
+
label: t2(item2.label),
|
|
154517
|
+
code: item2.code
|
|
154081
154518
|
}))
|
|
154082
154519
|
})
|
|
154083
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
154520
|
+
}), !isWalkIn && /* @__PURE__ */ jsxs("div", {
|
|
154084
154521
|
style: {
|
|
154085
154522
|
display: "flex",
|
|
154086
154523
|
gap: 10
|
|
@@ -154142,66 +154579,68 @@ const index$7 = ({
|
|
|
154142
154579
|
options: tableOptions
|
|
154143
154580
|
})
|
|
154144
154581
|
})]
|
|
154145
|
-
}), /* @__PURE__ */ jsxs(
|
|
154146
|
-
|
|
154147
|
-
display: "flex",
|
|
154148
|
-
gap: 10
|
|
154149
|
-
},
|
|
154150
|
-
children: [/* @__PURE__ */ jsx$1("div", {
|
|
154582
|
+
}), !isWalkIn && /* @__PURE__ */ jsxs(Fragment, {
|
|
154583
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
154151
154584
|
style: {
|
|
154152
|
-
|
|
154585
|
+
display: "flex",
|
|
154586
|
+
gap: 10
|
|
154587
|
+
},
|
|
154588
|
+
children: [/* @__PURE__ */ jsx$1("div", {
|
|
154589
|
+
style: {
|
|
154590
|
+
width: "50%"
|
|
154591
|
+
},
|
|
154592
|
+
children: /* @__PURE__ */ jsx$1(TextInputField, {
|
|
154593
|
+
disabled: !canEdit,
|
|
154594
|
+
control,
|
|
154595
|
+
id: "firstName",
|
|
154596
|
+
name: "firstName",
|
|
154597
|
+
placeholder: t2("firstname"),
|
|
154598
|
+
radius: "md",
|
|
154599
|
+
filled: true
|
|
154600
|
+
})
|
|
154601
|
+
}), /* @__PURE__ */ jsx$1("div", {
|
|
154602
|
+
style: {
|
|
154603
|
+
width: "50%"
|
|
154604
|
+
},
|
|
154605
|
+
children: /* @__PURE__ */ jsx$1(TextInputField, {
|
|
154606
|
+
disabled: !canEdit,
|
|
154607
|
+
control,
|
|
154608
|
+
id: "lastName",
|
|
154609
|
+
name: "lastName",
|
|
154610
|
+
placeholder: t2("lastname"),
|
|
154611
|
+
radius: "md",
|
|
154612
|
+
filled: true
|
|
154613
|
+
})
|
|
154614
|
+
})]
|
|
154615
|
+
}), /* @__PURE__ */ jsx$1(CustomerVisits, {
|
|
154616
|
+
venueId
|
|
154617
|
+
}), /* @__PURE__ */ jsx$1("div", {
|
|
154618
|
+
style: {
|
|
154619
|
+
width: "100%"
|
|
154153
154620
|
},
|
|
154154
154621
|
children: /* @__PURE__ */ jsx$1(TextInputField, {
|
|
154155
154622
|
disabled: !canEdit,
|
|
154156
154623
|
control,
|
|
154157
|
-
id: "
|
|
154158
|
-
name: "
|
|
154159
|
-
placeholder: t2("
|
|
154624
|
+
id: "phone",
|
|
154625
|
+
name: "phone",
|
|
154626
|
+
placeholder: t2("phone"),
|
|
154160
154627
|
radius: "md",
|
|
154161
154628
|
filled: true
|
|
154162
154629
|
})
|
|
154163
154630
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
154164
154631
|
style: {
|
|
154165
|
-
width: "
|
|
154632
|
+
width: "100%"
|
|
154166
154633
|
},
|
|
154167
154634
|
children: /* @__PURE__ */ jsx$1(TextInputField, {
|
|
154168
154635
|
disabled: !canEdit,
|
|
154169
154636
|
control,
|
|
154170
|
-
id: "
|
|
154171
|
-
name: "
|
|
154172
|
-
placeholder: t2("
|
|
154637
|
+
id: "email",
|
|
154638
|
+
name: "email",
|
|
154639
|
+
placeholder: t2("email"),
|
|
154173
154640
|
radius: "md",
|
|
154174
154641
|
filled: true
|
|
154175
154642
|
})
|
|
154176
154643
|
})]
|
|
154177
|
-
}), /* @__PURE__ */ jsx$1(CustomerVisits, {
|
|
154178
|
-
venueId
|
|
154179
|
-
}), /* @__PURE__ */ jsx$1("div", {
|
|
154180
|
-
style: {
|
|
154181
|
-
width: "100%"
|
|
154182
|
-
},
|
|
154183
|
-
children: /* @__PURE__ */ jsx$1(TextInputField, {
|
|
154184
|
-
disabled: !canEdit,
|
|
154185
|
-
control,
|
|
154186
|
-
id: "phone",
|
|
154187
|
-
name: "phone",
|
|
154188
|
-
placeholder: t2("phone"),
|
|
154189
|
-
radius: "md",
|
|
154190
|
-
filled: true
|
|
154191
|
-
})
|
|
154192
|
-
}), /* @__PURE__ */ jsx$1("div", {
|
|
154193
|
-
style: {
|
|
154194
|
-
width: "100%"
|
|
154195
|
-
},
|
|
154196
|
-
children: /* @__PURE__ */ jsx$1(TextInputField, {
|
|
154197
|
-
disabled: !canEdit,
|
|
154198
|
-
control,
|
|
154199
|
-
id: "email",
|
|
154200
|
-
name: "email",
|
|
154201
|
-
placeholder: t2("email"),
|
|
154202
|
-
radius: "md",
|
|
154203
|
-
filled: true
|
|
154204
|
-
})
|
|
154205
154644
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
154206
154645
|
style: {
|
|
154207
154646
|
width: "100%"
|
|
@@ -154213,7 +154652,7 @@ const index$7 = ({
|
|
|
154213
154652
|
name: "notes",
|
|
154214
154653
|
placeholder: t2("notes")
|
|
154215
154654
|
})
|
|
154216
|
-
}), /* @__PURE__ */ jsx$1("div", {
|
|
154655
|
+
}), !isWalkIn && /* @__PURE__ */ jsx$1("div", {
|
|
154217
154656
|
style: {
|
|
154218
154657
|
width: "100%"
|
|
154219
154658
|
},
|
|
@@ -195543,19 +195982,21 @@ const BrandManagement$1 = ({
|
|
|
195543
195982
|
})
|
|
195544
195983
|
});
|
|
195545
195984
|
};
|
|
195546
|
-
const brandDetailHeader = "
|
|
195547
|
-
const brandDetailContainer = "
|
|
195548
|
-
const brandDetailContent = "
|
|
195549
|
-
const brandDetailContentContainer = "
|
|
195550
|
-
const
|
|
195551
|
-
const
|
|
195552
|
-
const
|
|
195553
|
-
const
|
|
195985
|
+
const brandDetailHeader = "_brandDetailHeader_gx61u_1";
|
|
195986
|
+
const brandDetailContainer = "_brandDetailContainer_gx61u_7";
|
|
195987
|
+
const brandDetailContent = "_brandDetailContent_gx61u_11";
|
|
195988
|
+
const brandDetailContentContainer = "_brandDetailContentContainer_gx61u_18";
|
|
195989
|
+
const brandDetailOccasionRow = "_brandDetailOccasionRow_gx61u_26";
|
|
195990
|
+
const brandDetailContentRow = "_brandDetailContentRow_gx61u_30";
|
|
195991
|
+
const brandDetailContentItem = "_brandDetailContentItem_gx61u_37";
|
|
195992
|
+
const brandDetailContentItemTitle = "_brandDetailContentItemTitle_gx61u_48";
|
|
195993
|
+
const brandDetailActions = "_brandDetailActions_gx61u_56";
|
|
195554
195994
|
const styles$e = {
|
|
195555
195995
|
brandDetailHeader,
|
|
195556
195996
|
brandDetailContainer,
|
|
195557
195997
|
brandDetailContent,
|
|
195558
195998
|
brandDetailContentContainer,
|
|
195999
|
+
brandDetailOccasionRow,
|
|
195559
196000
|
brandDetailContentRow,
|
|
195560
196001
|
brandDetailContentItem,
|
|
195561
196002
|
brandDetailContentItemTitle,
|
|
@@ -195568,6 +196009,82 @@ const UpdateBrand = async ({
|
|
|
195568
196009
|
await instance$1.put(`/brands/${brandId}`, data2);
|
|
195569
196010
|
return { data: "updated" };
|
|
195570
196011
|
};
|
|
196012
|
+
const OccasionsField = ({
|
|
196013
|
+
control,
|
|
196014
|
+
fields,
|
|
196015
|
+
watchedOccasions,
|
|
196016
|
+
occasionOptions,
|
|
196017
|
+
getAreaOptionsForOccasion,
|
|
196018
|
+
getMenuOptionsForOccasion,
|
|
196019
|
+
isLoadingOccasions,
|
|
196020
|
+
remove,
|
|
196021
|
+
append: append2
|
|
196022
|
+
}) => {
|
|
196023
|
+
const {
|
|
196024
|
+
t: t2
|
|
196025
|
+
} = useTranslation();
|
|
196026
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
196027
|
+
children: [fields.map((field, index2) => {
|
|
196028
|
+
var _a2, _b;
|
|
196029
|
+
const rowOccasionId = (_b = (_a2 = watchedOccasions == null ? void 0 : watchedOccasions[index2]) == null ? void 0 : _a2.occasionId) == null ? void 0 : _b.value;
|
|
196030
|
+
const areaOptions = getAreaOptionsForOccasion(rowOccasionId);
|
|
196031
|
+
const menuOptions = getMenuOptionsForOccasion(rowOccasionId);
|
|
196032
|
+
return /* @__PURE__ */ jsx$1("div", {
|
|
196033
|
+
className: styles$e.brandDetailOccasionRow,
|
|
196034
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
196035
|
+
className: styles$e.brandDetailContentRow,
|
|
196036
|
+
children: [/* @__PURE__ */ jsx$1(SelectField, {
|
|
196037
|
+
fullWidth: true,
|
|
196038
|
+
label: t2("OCCASION"),
|
|
196039
|
+
control,
|
|
196040
|
+
name: `occasions.${index2}.occasionId`,
|
|
196041
|
+
options: occasionOptions,
|
|
196042
|
+
placeholder: t2("SELECT_OCCASION") || "Select Occasion",
|
|
196043
|
+
isClearable: true,
|
|
196044
|
+
isDisabled: isLoadingOccasions,
|
|
196045
|
+
isLoading: isLoadingOccasions
|
|
196046
|
+
}), /* @__PURE__ */ jsx$1(SelectField, {
|
|
196047
|
+
fullWidth: true,
|
|
196048
|
+
label: t2("AREA"),
|
|
196049
|
+
control,
|
|
196050
|
+
name: `occasions.${index2}.occasionAreaId`,
|
|
196051
|
+
options: areaOptions,
|
|
196052
|
+
placeholder: t2("SELECT_AREA") || "Select Area",
|
|
196053
|
+
isClearable: true,
|
|
196054
|
+
isDisabled: !rowOccasionId || isLoadingOccasions,
|
|
196055
|
+
isLoading: isLoadingOccasions
|
|
196056
|
+
}), /* @__PURE__ */ jsx$1(SelectField, {
|
|
196057
|
+
fullWidth: true,
|
|
196058
|
+
label: t2("MENU"),
|
|
196059
|
+
control,
|
|
196060
|
+
name: `occasions.${index2}.occasionMenuId`,
|
|
196061
|
+
options: menuOptions,
|
|
196062
|
+
placeholder: t2("SELECT_MENU") || "Select Menu",
|
|
196063
|
+
isClearable: true,
|
|
196064
|
+
isDisabled: !rowOccasionId || isLoadingOccasions,
|
|
196065
|
+
isLoading: isLoadingOccasions
|
|
196066
|
+
}), /* @__PURE__ */ jsx$1(Button$1, {
|
|
196067
|
+
type: "button",
|
|
196068
|
+
mode: "tertiary",
|
|
196069
|
+
icon: "TrashX",
|
|
196070
|
+
onClick: () => remove(index2),
|
|
196071
|
+
"aria-label": t2("REMOVE") || "Remove"
|
|
196072
|
+
})]
|
|
196073
|
+
})
|
|
196074
|
+
}, field.id);
|
|
196075
|
+
}), /* @__PURE__ */ jsx$1(Button$1, {
|
|
196076
|
+
type: "button",
|
|
196077
|
+
mode: "secondary",
|
|
196078
|
+
onClick: () => append2({
|
|
196079
|
+
occasionId: null,
|
|
196080
|
+
occasionAreaId: null,
|
|
196081
|
+
occasionMenuId: null
|
|
196082
|
+
}),
|
|
196083
|
+
className: styles$e.brandDetailAddOccasion,
|
|
196084
|
+
children: t2("ADD_OCCASION")
|
|
196085
|
+
})]
|
|
196086
|
+
});
|
|
196087
|
+
};
|
|
195571
196088
|
const BrandDetail = () => {
|
|
195572
196089
|
const {
|
|
195573
196090
|
t: t2
|
|
@@ -195605,16 +196122,22 @@ const BrandDetail = () => {
|
|
|
195605
196122
|
defaultValues: {
|
|
195606
196123
|
rwgTc: "",
|
|
195607
196124
|
rwgTcLink: "",
|
|
195608
|
-
|
|
195609
|
-
occasionAreaId: null,
|
|
195610
|
-
occasionMenuId: null
|
|
196125
|
+
occasions: []
|
|
195611
196126
|
}
|
|
195612
196127
|
});
|
|
195613
|
-
const
|
|
196128
|
+
const {
|
|
196129
|
+
fields,
|
|
196130
|
+
append: append2,
|
|
196131
|
+
remove
|
|
196132
|
+
} = useFieldArray({
|
|
195614
196133
|
control,
|
|
195615
|
-
name: "
|
|
196134
|
+
name: "occasions"
|
|
195616
196135
|
});
|
|
195617
|
-
const
|
|
196136
|
+
const watchedOccasions = useWatch({
|
|
196137
|
+
control,
|
|
196138
|
+
name: "occasions"
|
|
196139
|
+
}) || [];
|
|
196140
|
+
const previousOccasionIdsRef = useRef({});
|
|
195618
196141
|
const isInitializingRef = useRef(true);
|
|
195619
196142
|
const {
|
|
195620
196143
|
isExecuting,
|
|
@@ -195632,97 +196155,92 @@ const BrandDetail = () => {
|
|
|
195632
196155
|
label: occasion.name
|
|
195633
196156
|
}));
|
|
195634
196157
|
}, [occasionsData]);
|
|
195635
|
-
const
|
|
196158
|
+
const getOccasionDataById = (occasionId) => {
|
|
195636
196159
|
var _a2;
|
|
195637
|
-
if (!
|
|
195638
|
-
return occasionsData.occasions.occasions.find((occ) => occ.id ===
|
|
195639
|
-
}
|
|
195640
|
-
const
|
|
195641
|
-
|
|
195642
|
-
|
|
196160
|
+
if (!occasionId || !((_a2 = occasionsData == null ? void 0 : occasionsData.occasions) == null ? void 0 : _a2.occasions)) return null;
|
|
196161
|
+
return occasionsData.occasions.occasions.find((occ) => occ.id === occasionId) || null;
|
|
196162
|
+
};
|
|
196163
|
+
const getAreaOptionsForOccasion = (occasionId) => {
|
|
196164
|
+
const occasionData = getOccasionDataById(occasionId);
|
|
196165
|
+
if (!(occasionData == null ? void 0 : occasionData.areas)) return [];
|
|
196166
|
+
return occasionData.areas.map((area2) => ({
|
|
195643
196167
|
value: area2.value,
|
|
195644
196168
|
label: area2.label
|
|
195645
196169
|
}));
|
|
195646
|
-
}
|
|
195647
|
-
const
|
|
195648
|
-
|
|
195649
|
-
|
|
196170
|
+
};
|
|
196171
|
+
const getMenuOptionsForOccasion = (occasionId) => {
|
|
196172
|
+
const occasionData = getOccasionDataById(occasionId);
|
|
196173
|
+
if (!(occasionData == null ? void 0 : occasionData.menus)) return [];
|
|
196174
|
+
return occasionData.menus.map((menu2) => ({
|
|
195650
196175
|
value: menu2.value,
|
|
195651
196176
|
label: menu2.label
|
|
195652
196177
|
}));
|
|
195653
|
-
}
|
|
195654
|
-
useEffect(() => {
|
|
195655
|
-
const currentOccasionValue = (selectedOccasion == null ? void 0 : selectedOccasion.value) || null;
|
|
195656
|
-
if (isInitializingRef.current) {
|
|
195657
|
-
previousOccasionRef.current = currentOccasionValue;
|
|
195658
|
-
return;
|
|
195659
|
-
}
|
|
195660
|
-
if (previousOccasionRef.current !== null && previousOccasionRef.current !== currentOccasionValue) {
|
|
195661
|
-
setValue("occasionAreaId", null);
|
|
195662
|
-
setValue("occasionMenuId", null);
|
|
195663
|
-
}
|
|
195664
|
-
previousOccasionRef.current = currentOccasionValue;
|
|
195665
|
-
}, [selectedOccasion == null ? void 0 : selectedOccasion.value, setValue]);
|
|
196178
|
+
};
|
|
195666
196179
|
useEffect(() => {
|
|
195667
|
-
if (
|
|
195668
|
-
|
|
195669
|
-
|
|
195670
|
-
|
|
195671
|
-
|
|
195672
|
-
|
|
195673
|
-
|
|
195674
|
-
|
|
195675
|
-
const occasionData = occasionsData.occasions.occasions.find((occ) => occ.id === extraData.occasionId);
|
|
195676
|
-
if (occasionData == null ? void 0 : occasionData.areas) {
|
|
195677
|
-
preselectedArea = occasionData.areas.find((area2) => area2.value === extraData.occasionAreaId) || null;
|
|
195678
|
-
if (preselectedArea) {
|
|
195679
|
-
preselectedArea = {
|
|
195680
|
-
value: preselectedArea.value,
|
|
195681
|
-
label: preselectedArea.label
|
|
195682
|
-
};
|
|
195683
|
-
}
|
|
195684
|
-
}
|
|
195685
|
-
}
|
|
195686
|
-
let preselectedMenu = null;
|
|
195687
|
-
if (extraData.occasionMenuId && preselectedOccasion) {
|
|
195688
|
-
const occasionData = occasionsData.occasions.occasions.find((occ) => occ.id === extraData.occasionId);
|
|
195689
|
-
if (occasionData == null ? void 0 : occasionData.menus) {
|
|
195690
|
-
preselectedMenu = occasionData.menus.find((menu2) => menu2.value === extraData.occasionMenuId) || null;
|
|
195691
|
-
if (preselectedMenu) {
|
|
195692
|
-
preselectedMenu = {
|
|
195693
|
-
value: preselectedMenu.value,
|
|
195694
|
-
label: preselectedMenu.label
|
|
195695
|
-
};
|
|
195696
|
-
}
|
|
195697
|
-
}
|
|
196180
|
+
if (isInitializingRef.current || !(watchedOccasions == null ? void 0 : watchedOccasions.length)) return;
|
|
196181
|
+
watchedOccasions.forEach((row, index2) => {
|
|
196182
|
+
var _a2;
|
|
196183
|
+
const currentId = ((_a2 = row == null ? void 0 : row.occasionId) == null ? void 0 : _a2.value) ?? null;
|
|
196184
|
+
const prevId = previousOccasionIdsRef.current[index2];
|
|
196185
|
+
if (prevId !== void 0 && prevId !== null && prevId !== currentId) {
|
|
196186
|
+
setValue(`occasions.${index2}.occasionAreaId`, null);
|
|
196187
|
+
setValue(`occasions.${index2}.occasionMenuId`, null);
|
|
195698
196188
|
}
|
|
195699
|
-
|
|
195700
|
-
|
|
195701
|
-
|
|
195702
|
-
|
|
195703
|
-
|
|
195704
|
-
|
|
195705
|
-
|
|
195706
|
-
|
|
195707
|
-
|
|
195708
|
-
|
|
195709
|
-
|
|
196189
|
+
previousOccasionIdsRef.current[index2] = currentId;
|
|
196190
|
+
});
|
|
196191
|
+
}, [watchedOccasions, setValue]);
|
|
196192
|
+
useEffect(() => {
|
|
196193
|
+
var _a2;
|
|
196194
|
+
if (!data2 || !((_a2 = occasionsData == null ? void 0 : occasionsData.occasions) == null ? void 0 : _a2.occasions)) return;
|
|
196195
|
+
const extraData = data2.extraData || {};
|
|
196196
|
+
const occasionsList = Array.isArray(extraData.occasions) ? extraData.occasions : [];
|
|
196197
|
+
const occasionsFormValues = occasionsList.map((item2) => {
|
|
196198
|
+
var _a3, _b;
|
|
196199
|
+
const occasionOpt = occasionOptions.find((o2) => o2.value === item2.occasionId) || null;
|
|
196200
|
+
const occasionData = getOccasionDataById(item2.occasionId);
|
|
196201
|
+
const areaOpt = (_a3 = occasionData == null ? void 0 : occasionData.areas) == null ? void 0 : _a3.find((a2) => a2.value === item2.occasionAreaId);
|
|
196202
|
+
const menuOpt = (_b = occasionData == null ? void 0 : occasionData.menus) == null ? void 0 : _b.find((m2) => m2.value === item2.occasionMenuId);
|
|
196203
|
+
return {
|
|
196204
|
+
occasionId: occasionOpt,
|
|
196205
|
+
occasionAreaId: areaOpt ? {
|
|
196206
|
+
value: areaOpt.value,
|
|
196207
|
+
label: areaOpt.label
|
|
196208
|
+
} : null,
|
|
196209
|
+
occasionMenuId: menuOpt ? {
|
|
196210
|
+
value: menuOpt.value,
|
|
196211
|
+
label: menuOpt.label
|
|
196212
|
+
} : null
|
|
196213
|
+
};
|
|
196214
|
+
});
|
|
196215
|
+
const initialOccasions = occasionsFormValues.length > 0 ? occasionsFormValues : [];
|
|
196216
|
+
reset({
|
|
196217
|
+
rwgTc: data2.rwgTc || "",
|
|
196218
|
+
rwgTcLink: data2.rwgTcLink || "",
|
|
196219
|
+
occasions: initialOccasions
|
|
196220
|
+
});
|
|
196221
|
+
Object.keys(previousOccasionIdsRef.current).forEach((key2) => delete previousOccasionIdsRef.current[Number(key2)]);
|
|
196222
|
+
initialOccasions.forEach((row, i) => {
|
|
196223
|
+
var _a3;
|
|
196224
|
+
previousOccasionIdsRef.current[i] = ((_a3 = row == null ? void 0 : row.occasionId) == null ? void 0 : _a3.value) ?? null;
|
|
196225
|
+
});
|
|
196226
|
+
setTimeout(() => {
|
|
196227
|
+
isInitializingRef.current = false;
|
|
196228
|
+
}, 100);
|
|
195710
196229
|
}, [data2, occasionsData, occasionOptions, reset]);
|
|
195711
196230
|
const onSubmit = (formData) => {
|
|
195712
|
-
|
|
196231
|
+
const occasionsList = (formData.occasions || []).map((row) => {
|
|
196232
|
+
var _a2, _b, _c;
|
|
196233
|
+
return {
|
|
196234
|
+
occasionId: ((_a2 = row.occasionId) == null ? void 0 : _a2.value) ?? null,
|
|
196235
|
+
occasionAreaId: ((_b = row.occasionAreaId) == null ? void 0 : _b.value) ?? null,
|
|
196236
|
+
occasionMenuId: ((_c = row.occasionMenuId) == null ? void 0 : _c.value) ?? null
|
|
196237
|
+
};
|
|
196238
|
+
});
|
|
195713
196239
|
const submitData = {
|
|
195714
196240
|
rwgTc: formData.rwgTc,
|
|
195715
|
-
rwgTcLink: formData.rwgTcLink
|
|
196241
|
+
rwgTcLink: formData.rwgTcLink,
|
|
196242
|
+
occasions: occasionsList
|
|
195716
196243
|
};
|
|
195717
|
-
if ((_a2 = formData.occasionId) == null ? void 0 : _a2.value) {
|
|
195718
|
-
submitData.occasionId = formData.occasionId.value;
|
|
195719
|
-
}
|
|
195720
|
-
if ((_b = formData.occasionAreaId) == null ? void 0 : _b.value) {
|
|
195721
|
-
submitData.occasionAreaId = formData.occasionAreaId.value;
|
|
195722
|
-
}
|
|
195723
|
-
if ((_c = formData.occasionMenuId) == null ? void 0 : _c.value) {
|
|
195724
|
-
submitData.occasionMenuId = formData.occasionMenuId.value;
|
|
195725
|
-
}
|
|
195726
196244
|
execute({
|
|
195727
196245
|
brandId,
|
|
195728
196246
|
data: submitData
|
|
@@ -195806,39 +196324,16 @@ const BrandDetail = () => {
|
|
|
195806
196324
|
}), /* @__PURE__ */ jsxs("h3", {
|
|
195807
196325
|
children: [t2("OCCASIONS"), ":"]
|
|
195808
196326
|
})]
|
|
195809
|
-
}), /* @__PURE__ */ jsx$1(Divider2, {}), /* @__PURE__ */
|
|
195810
|
-
|
|
195811
|
-
|
|
195812
|
-
|
|
195813
|
-
|
|
195814
|
-
|
|
195815
|
-
|
|
195816
|
-
|
|
195817
|
-
|
|
195818
|
-
|
|
195819
|
-
isDisabled: isLoadingOccasions,
|
|
195820
|
-
isLoading: isLoadingOccasions
|
|
195821
|
-
}), /* @__PURE__ */ jsx$1(SelectField, {
|
|
195822
|
-
fullWidth: true,
|
|
195823
|
-
label: t2("AREA"),
|
|
195824
|
-
control,
|
|
195825
|
-
name: "occasionAreaId",
|
|
195826
|
-
options: areaOptions,
|
|
195827
|
-
placeholder: t2("SELECT_AREA") || "Select Area",
|
|
195828
|
-
isClearable: true,
|
|
195829
|
-
isDisabled: !(selectedOccasion == null ? void 0 : selectedOccasion.value) || isLoadingOccasions,
|
|
195830
|
-
isLoading: isLoadingOccasions
|
|
195831
|
-
}), /* @__PURE__ */ jsx$1(SelectField, {
|
|
195832
|
-
fullWidth: true,
|
|
195833
|
-
label: t2("MENU"),
|
|
195834
|
-
control,
|
|
195835
|
-
name: "occasionMenuId",
|
|
195836
|
-
options: menuOptions,
|
|
195837
|
-
placeholder: t2("SELECT_MENU") || "Select Menu",
|
|
195838
|
-
isClearable: true,
|
|
195839
|
-
isDisabled: !(selectedOccasion == null ? void 0 : selectedOccasion.value) || isLoadingOccasions,
|
|
195840
|
-
isLoading: isLoadingOccasions
|
|
195841
|
-
})]
|
|
196327
|
+
}), /* @__PURE__ */ jsx$1(Divider2, {}), /* @__PURE__ */ jsx$1(OccasionsField, {
|
|
196328
|
+
control,
|
|
196329
|
+
fields,
|
|
196330
|
+
watchedOccasions,
|
|
196331
|
+
occasionOptions,
|
|
196332
|
+
getAreaOptionsForOccasion,
|
|
196333
|
+
getMenuOptionsForOccasion,
|
|
196334
|
+
isLoadingOccasions,
|
|
196335
|
+
remove,
|
|
196336
|
+
append: append2
|
|
195842
196337
|
})]
|
|
195843
196338
|
}), /* @__PURE__ */ jsx$1("div", {
|
|
195844
196339
|
className: styles$e.brandDetailActions,
|