mozrest-sdk-react-dev 0.3.12 → 0.3.14

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.
Files changed (3) hide show
  1. package/mozrest-sdk.es.js +1186 -386
  2. package/package.json +1 -1
  3. package/style.css +145 -113
package/mozrest-sdk.es.js CHANGED
@@ -5,7 +5,7 @@ import ReactDOM__default, { createPortal } from "react-dom";
5
5
  const container$A = "_container_1xz3t_13";
6
6
  const item$7 = "_item_1xz3t_20";
7
7
  const itemfull$1 = "_itemfull_1xz3t_26";
8
- const styles$20 = {
8
+ const styles$21 = {
9
9
  "animate-pulse": "_animate-pulse_1xz3t_1",
10
10
  container: container$A,
11
11
  item: item$7,
@@ -957,15 +957,15 @@ const jsxs = jsxRuntimeExports.jsxs;
957
957
  const Fragment = jsxRuntimeExports.Fragment;
958
958
  const SkeletonPage$1 = () => {
959
959
  return /* @__PURE__ */ jsx$1("div", {
960
- className: styles$20["animate-pulse"],
960
+ className: styles$21["animate-pulse"],
961
961
  children: /* @__PURE__ */ jsxs("div", {
962
- className: styles$20.container,
962
+ className: styles$21.container,
963
963
  children: [/* @__PURE__ */ jsx$1("div", {
964
- className: styles$20.item
964
+ className: styles$21.item
965
965
  }), /* @__PURE__ */ jsx$1("div", {
966
- className: styles$20.item
966
+ className: styles$21.item
967
967
  }), /* @__PURE__ */ jsx$1("div", {
968
- className: styles$20.itemfull
968
+ className: styles$21.itemfull
969
969
  })]
970
970
  })
971
971
  });
@@ -3298,7 +3298,11 @@ const config$1 = {
3298
3298
  fb_graph_url: "https://graph.facebook.com/v12.0",
3299
3299
  paddle_env: "sandbox",
3300
3300
  paddle_vendor_id: "6925",
3301
- paddle_product_id: "42937"
3301
+ paddle_product_id: "42937",
3302
+ stripe_client_id: "ca_RfFkg4XcsD2iyNPdUyCt7qpmrIGo4Ixb",
3303
+ stripe_publish_key: "pk_test_2343823823823",
3304
+ stripe_gateway_url: "https://stripe-gateway.dev.mozrest.com/mozrest-stripe-handler_local",
3305
+ env: "dev"
3302
3306
  };
3303
3307
  const refreshToken = async () => {
3304
3308
  try {
@@ -3434,7 +3438,7 @@ const classNames$2 = (...classNames2) => {
3434
3438
  return resultClasses.join(" ");
3435
3439
  };
3436
3440
  const container$z = "_container_1ar7o_1";
3437
- const styles$1$ = {
3441
+ const styles$20 = {
3438
3442
  container: container$z
3439
3443
  };
3440
3444
  const Container = ({
@@ -3448,12 +3452,12 @@ const Container = ({
3448
3452
  return /* @__PURE__ */ jsx$1(Tag2, {
3449
3453
  "aria-label": ariaLabel,
3450
3454
  "aria-labelledby": ariaLabelledby,
3451
- className: classNames$2(styles$1$["container"], className),
3455
+ className: classNames$2(styles$20["container"], className),
3452
3456
  children
3453
3457
  });
3454
3458
  };
3455
3459
  const container$y = "_container_11xrj_1";
3456
- const styles$1_ = {
3460
+ const styles$1$ = {
3457
3461
  container: container$y
3458
3462
  };
3459
3463
  const LayoutPage$2 = ({
@@ -3463,12 +3467,12 @@ const LayoutPage$2 = ({
3463
3467
  contentClassName
3464
3468
  }) => {
3465
3469
  return /* @__PURE__ */ jsxs("div", {
3466
- className: classNames$2(styles$1_.container, containerClassName, "mz-sdk-cst-pf"),
3470
+ className: classNames$2(styles$1$.container, containerClassName, "mz-sdk-cst-pf"),
3467
3471
  children: [header2 && /* @__PURE__ */ jsx$1("div", {
3468
3472
  className: "mz-header",
3469
3473
  children: header2
3470
3474
  }), /* @__PURE__ */ jsx$1(Container, {
3471
- className: classNames$2(styles$1_.content, contentClassName),
3475
+ className: classNames$2(styles$1$.content, contentClassName),
3472
3476
  children
3473
3477
  })]
3474
3478
  });
@@ -7770,6 +7774,27 @@ const INSERTAGS$1 = "Insert tags";
7770
7774
  const loadingListingAnalytics$1 = "Loading Listing Analytics";
7771
7775
  const All$1 = "All";
7772
7776
  const confirmationExportExcel$1 = "Do you want to export an excel file from {{from}} until {{till}}? You will receive shortly the report in your email inbox.";
7777
+ const PAYMENTS_INTEGRATION$1 = "Payments integration";
7778
+ const PAYMENTS_INTEGRATION_DESC$1 = "Accept online payments through your own Stripe account, seamlessly integrated with your booking system, using credit cards, digital wallets, or bank transfers.";
7779
+ const CONNECT_WITH_STRIPE$1 = "Connect with Stripe";
7780
+ const DISCONNECT_STRIPE_ACCOUNT$1 = "Disconnect Stripe account";
7781
+ const AMOUNT_PER_GUEST$1 = "Amount per guest";
7782
+ const MIN_GUESTS_REQ_PAYMENT$1 = "Min. guests requiring payment";
7783
+ const CANCELATION_POLICY_IN_HOURS$1 = "Cancelation policy in hours";
7784
+ const ENABLED_PAYMENTS$1 = "Enabled payments";
7785
+ const paymentRules$2 = "Payment rules";
7786
+ const paymentRulesDesc$2 = "A payment rule will be required to make a booking in this period, based on the following settings.";
7787
+ const amountPerGuestDesc$1 = "The amount guests have to pay to make a booking.";
7788
+ const minGuestsReqPaymentDesc$1 = "If set to '4' a booking with 3 or fewer people will not have to pay.";
7789
+ const cancelationPolicyInHoursDesc$1 = "The time before a booking during which a guest will get a full refund if they cancel their booking.";
7790
+ const paymentsEnabled$1 = "Payments enabled";
7791
+ const depositType$1 = "Deposit type";
7792
+ const amountPerGuest$1 = "Amount per guest";
7793
+ const minGuestsReqPayment$1 = "Min. guests requiring payment";
7794
+ const deposit$1 = "Deposit";
7795
+ const creditCardGuarantee$1 = "Credit card guarantee";
7796
+ const disconnectStripeAccount$1 = "Disconnect Stripe account";
7797
+ const disconnectStripeAccountDesc$1 = "Are you sure you want to disconnect your Stripe account?";
7773
7798
  const en = {
7774
7799
  errors: errors$1,
7775
7800
  SPECIALCLOSINGDATES: SPECIALCLOSINGDATES$1,
@@ -8254,7 +8279,28 @@ const en = {
8254
8279
  All: All$1,
8255
8280
  "Choose the Booking creation date range to export. The rest of the filters selected on the page will apply as export criteria.": "Choose the Booking creation date range to export. The rest of the filters selected on the page will apply as export criteria.",
8256
8281
  "You will receive shortly the report on you email inbox after clicking the 'Export data' button.": "You will receive shortly the report on you email inbox after clicking the 'Export data' button.",
8257
- confirmationExportExcel: confirmationExportExcel$1
8282
+ confirmationExportExcel: confirmationExportExcel$1,
8283
+ PAYMENTS_INTEGRATION: PAYMENTS_INTEGRATION$1,
8284
+ PAYMENTS_INTEGRATION_DESC: PAYMENTS_INTEGRATION_DESC$1,
8285
+ CONNECT_WITH_STRIPE: CONNECT_WITH_STRIPE$1,
8286
+ DISCONNECT_STRIPE_ACCOUNT: DISCONNECT_STRIPE_ACCOUNT$1,
8287
+ AMOUNT_PER_GUEST: AMOUNT_PER_GUEST$1,
8288
+ MIN_GUESTS_REQ_PAYMENT: MIN_GUESTS_REQ_PAYMENT$1,
8289
+ CANCELATION_POLICY_IN_HOURS: CANCELATION_POLICY_IN_HOURS$1,
8290
+ ENABLED_PAYMENTS: ENABLED_PAYMENTS$1,
8291
+ paymentRules: paymentRules$2,
8292
+ paymentRulesDesc: paymentRulesDesc$2,
8293
+ amountPerGuestDesc: amountPerGuestDesc$1,
8294
+ minGuestsReqPaymentDesc: minGuestsReqPaymentDesc$1,
8295
+ cancelationPolicyInHoursDesc: cancelationPolicyInHoursDesc$1,
8296
+ paymentsEnabled: paymentsEnabled$1,
8297
+ depositType: depositType$1,
8298
+ amountPerGuest: amountPerGuest$1,
8299
+ minGuestsReqPayment: minGuestsReqPayment$1,
8300
+ deposit: deposit$1,
8301
+ creditCardGuarantee: creditCardGuarantee$1,
8302
+ disconnectStripeAccount: disconnectStripeAccount$1,
8303
+ disconnectStripeAccountDesc: disconnectStripeAccountDesc$1
8258
8304
  };
8259
8305
  const errors = { "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" };
8260
8306
  const SPECIALCLOSINGDATES = "Fechas de cierre especiales u horarios de apertura diferentes (días especiales, festivos, eventos privados…)";
@@ -8694,6 +8740,27 @@ const INSERTAGS = "Insertar etiquetas";
8694
8740
  const loadingListingAnalytics = "Cargando analíticas de listing...";
8695
8741
  const All = "Todos";
8696
8742
  const confirmationExportExcel = "Quiere exportar un archivo excel desde {{from}} hasta {{till}}? Recibirá pronto el informe en su bandeja de entrada de correo electrónico.";
8743
+ const PAYMENTS_INTEGRATION = "Integración de pagos";
8744
+ const PAYMENTS_INTEGRATION_DESC = "Acepta pagos en línea a través de su cuenta de Stripe propia, integrado con su sistema de reservas, usando tarjetas de crédito, billeteras digitales o transferencias bancarias.";
8745
+ const CONNECT_WITH_STRIPE = "Conectar con Stripe";
8746
+ const DISCONNECT_STRIPE_ACCOUNT = "Desconectar cuenta de Stripe";
8747
+ const AMOUNT_PER_GUEST = "Cantidad por invitado";
8748
+ const MIN_GUESTS_REQ_PAYMENT = "Mínimo de invitados requeridos para pago";
8749
+ const CANCELATION_POLICY_IN_HOURS = "Política de cancelación en horas";
8750
+ const ENABLED_PAYMENTS = "Pagos habilitados";
8751
+ const paymentRules$1 = "Reglas de pago";
8752
+ const paymentRulesDesc$1 = "Una regla de pago será requerida para hacer una reserva en este período, basada en los siguientes ajustes.";
8753
+ const amountPerGuestDesc = "La cantidad de invitados que tienen que pagar para hacer una reserva.";
8754
+ const minGuestsReqPaymentDesc = "Si se establece en '4' una reserva con 3 o menos personas no tendrá que pagar.";
8755
+ const cancelationPolicyInHoursDesc = "El tiempo antes de una reserva durante el cual un invitado recibirá un reembolso completo si cancela su reserva.";
8756
+ const paymentsEnabled = "Pagos habilitados";
8757
+ const depositType = "Tipo de depósito";
8758
+ const amountPerGuest = "Cantidad por invitado";
8759
+ const minGuestsReqPayment = "Mínimo de invitados requeridos para pago";
8760
+ const deposit = "Depósito";
8761
+ const creditCardGuarantee = "Garantía de tarjeta de crédito";
8762
+ const disconnectStripeAccount = "Desconectar cuenta de Stripe";
8763
+ const disconnectStripeAccountDesc = "¿Está seguro de que desea desconectar su cuenta de Stripe?";
8697
8764
  const es$1 = {
8698
8765
  errors,
8699
8766
  SPECIALCLOSINGDATES,
@@ -9178,7 +9245,28 @@ const es$1 = {
9178
9245
  All,
9179
9246
  "Choose the Booking creation date range to export. The rest of the filters selected on the page will apply as export criteria.": "Elija el rango de fechas de creación de la reserva para exportar. El resto de los filtros seleccionados en la página se aplicarán como criterios de exportación.",
9180
9247
  "You will receive shortly the report on you email inbox after clicking the 'Export data' button.": "Recibirá pronto el informe en su bandeja de entrada de correo electrónico después de hacer clic en el botón 'Exportar datos'.",
9181
- confirmationExportExcel
9248
+ confirmationExportExcel,
9249
+ PAYMENTS_INTEGRATION,
9250
+ PAYMENTS_INTEGRATION_DESC,
9251
+ CONNECT_WITH_STRIPE,
9252
+ DISCONNECT_STRIPE_ACCOUNT,
9253
+ AMOUNT_PER_GUEST,
9254
+ MIN_GUESTS_REQ_PAYMENT,
9255
+ CANCELATION_POLICY_IN_HOURS,
9256
+ ENABLED_PAYMENTS,
9257
+ paymentRules: paymentRules$1,
9258
+ paymentRulesDesc: paymentRulesDesc$1,
9259
+ amountPerGuestDesc,
9260
+ minGuestsReqPaymentDesc,
9261
+ cancelationPolicyInHoursDesc,
9262
+ paymentsEnabled,
9263
+ depositType,
9264
+ amountPerGuest,
9265
+ minGuestsReqPayment,
9266
+ deposit,
9267
+ creditCardGuarantee,
9268
+ disconnectStripeAccount,
9269
+ disconnectStripeAccountDesc
9182
9270
  };
9183
9271
  instance.use(initReactI18next).init({
9184
9272
  // the translations
@@ -14163,10 +14251,10 @@ var infinite = function(useSWRNext) {
14163
14251
  };
14164
14252
  };
14165
14253
  };
14166
- var index$f = withMiddleware(useSWR, infinite);
14254
+ var index$g = withMiddleware(useSWR, infinite);
14167
14255
  const useInfinite = (service, params, limit = 5) => {
14168
14256
  var _a2, _b;
14169
- const { data: data2, error: error3, isValidating, mutate: mutate2, size, setSize } = index$f((page, previousPageData) => {
14257
+ const { data: data2, error: error3, isValidating, mutate: mutate2, size, setSize } = index$g((page, previousPageData) => {
14170
14258
  if (previousPageData && !previousPageData.length) {
14171
14259
  return null;
14172
14260
  }
@@ -15254,7 +15342,7 @@ var ResizeObserver$1 = (
15254
15342
  return (_a2 = observers.get(this))[method4].apply(_a2, arguments);
15255
15343
  };
15256
15344
  });
15257
- var index$e = function() {
15345
+ var index$f = function() {
15258
15346
  if (typeof global$1$1.ResizeObserver !== "undefined") {
15259
15347
  return global$1$1.ResizeObserver;
15260
15348
  }
@@ -15262,7 +15350,7 @@ var index$e = function() {
15262
15350
  }();
15263
15351
  const ResizeObserver_es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15264
15352
  __proto__: null,
15265
- default: index$e
15353
+ default: index$f
15266
15354
  }, Symbol.toStringTag, { value: "Module" }));
15267
15355
  function _createSuper$n(t2) {
15268
15356
  var r2 = _isNativeReflectConstruct$o();
@@ -21291,7 +21379,7 @@ function monitorResize(element, callback) {
21291
21379
  prevWidth = fixedWidth;
21292
21380
  prevHeight = fixedHeight;
21293
21381
  }
21294
- var resizeObserver = new index$e(onResize);
21382
+ var resizeObserver = new index$f(onResize);
21295
21383
  if (element) {
21296
21384
  resizeObserver.observe(element);
21297
21385
  }
@@ -36269,25 +36357,25 @@ const ContextUserRole = React__default.createContext([
36269
36357
  const label$8 = "_label_7mgn7_1";
36270
36358
  const comment$4 = "_comment_7mgn7_5";
36271
36359
  const translate = "_translate_7mgn7_9";
36272
- const styles$1Z = {
36360
+ const styles$1_ = {
36273
36361
  label: label$8,
36274
36362
  comment: comment$4,
36275
36363
  translate
36276
36364
  };
36277
36365
  const sronly$1 = "_sronly_1n9bw_1";
36278
- const styles$1Y = {
36366
+ const styles$1Z = {
36279
36367
  sronly: sronly$1
36280
36368
  };
36281
36369
  const SrOnly$1 = ({
36282
36370
  children
36283
36371
  }) => {
36284
36372
  return /* @__PURE__ */ jsx$1("span", {
36285
- className: styles$1Y.sronly,
36373
+ className: styles$1Z.sronly,
36286
36374
  children
36287
36375
  });
36288
36376
  };
36289
36377
  const label$7 = "_label_1vki7_1";
36290
- const styles$1X = {
36378
+ const styles$1Y = {
36291
36379
  label: label$7
36292
36380
  };
36293
36381
  var propTypes$3 = { exports: {} };
@@ -41175,7 +41263,7 @@ const icons$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
41175
41263
  yes: yes$1
41176
41264
  }, Symbol.toStringTag, { value: "Module" }));
41177
41265
  const icon$a = "_icon_69yub_1";
41178
- const styles$1W = {
41266
+ const styles$1X = {
41179
41267
  icon: icon$a,
41180
41268
  "icon--small": "_icon--small_69yub_12",
41181
41269
  "icon--medium": "_icon--medium_69yub_15",
@@ -41190,14 +41278,14 @@ const Icon$1 = ({
41190
41278
  ...props
41191
41279
  }) => {
41192
41280
  return /* @__PURE__ */ jsx$1("span", {
41193
- className: classNames$2(styles$1W["icon"], styles$1W[`icon--${size}`], className),
41281
+ className: classNames$2(styles$1X["icon"], styles$1X[`icon--${size}`], className),
41194
41282
  ...props,
41195
41283
  children: icons$1[icon2]()
41196
41284
  });
41197
41285
  };
41198
41286
  const tooltip$2 = "_tooltip_17puf_1";
41199
41287
  const tooltip__icon$1 = "_tooltip__icon_17puf_4";
41200
- const styles$1V = {
41288
+ const styles$1W = {
41201
41289
  tooltip: tooltip$2,
41202
41290
  tooltip__icon: tooltip__icon$1
41203
41291
  };
@@ -41205,9 +41293,9 @@ const Tooltip$2 = ({
41205
41293
  children
41206
41294
  }) => {
41207
41295
  return /* @__PURE__ */ jsxs("div", {
41208
- className: styles$1V.tooltip,
41296
+ className: styles$1W.tooltip,
41209
41297
  children: [/* @__PURE__ */ jsx$1(Icon$1, {
41210
- className: styles$1V.tooltip__icon,
41298
+ className: styles$1W.tooltip__icon,
41211
41299
  icon: "question",
41212
41300
  size: "small",
41213
41301
  "data-tip": true
@@ -41228,7 +41316,7 @@ const Label$2 = ({
41228
41316
  ...props
41229
41317
  }) => {
41230
41318
  const label2 = /* @__PURE__ */ jsxs("label", {
41231
- className: styles$1X.label,
41319
+ className: styles$1Y.label,
41232
41320
  ...props,
41233
41321
  children: [children, tooltip2 && /* @__PURE__ */ jsx$1(Tooltip$2, {
41234
41322
  children: tooltip2
@@ -41240,7 +41328,7 @@ const Label$2 = ({
41240
41328
  };
41241
41329
  const label$6 = "_label_15hk9_1";
41242
41330
  const translation$1 = "_translation_15hk9_6";
41243
- const styles$1U = {
41331
+ const styles$1V = {
41244
41332
  label: label$6,
41245
41333
  translation: translation$1
41246
41334
  };
@@ -41274,13 +41362,13 @@ const ReplyTranslation = ({
41274
41362
  children: [isExecuting && /* @__PURE__ */ jsxs("span", {
41275
41363
  children: [t2("TRANSLATING"), "..."]
41276
41364
  }), !isExecuting && /* @__PURE__ */ jsxs("div", {
41277
- className: styles$1U.translation,
41365
+ className: styles$1V.translation,
41278
41366
  children: [/* @__PURE__ */ jsx$1(Label$2, {
41279
41367
  htmlFor: "",
41280
- className: styles$1U.label,
41368
+ className: styles$1V.label,
41281
41369
  children: t2("TRANSLATION")
41282
41370
  }), /* @__PURE__ */ jsx$1("p", {
41283
- className: styles$1U.translation,
41371
+ className: styles$1V.translation,
41284
41372
  children: data2 && data2.translatedText ? data2.translatedText : "---"
41285
41373
  })]
41286
41374
  })]
@@ -42861,7 +42949,7 @@ const icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
42861
42949
  yes
42862
42950
  }, Symbol.toStringTag, { value: "Module" }));
42863
42951
  const icon$9 = "_icon_lm3br_1";
42864
- const styles$1T = {
42952
+ const styles$1U = {
42865
42953
  icon: icon$9,
42866
42954
  "icon--xs": "_icon--xs_lm3br_12",
42867
42955
  "icon--small": "_icon--small_lm3br_15",
@@ -42876,13 +42964,13 @@ const Icon = ({
42876
42964
  ...props
42877
42965
  }) => {
42878
42966
  return /* @__PURE__ */ jsx$1("span", {
42879
- className: classNames$2(styles$1T["icon"], styles$1T[`icon--${size}`], className),
42967
+ className: classNames$2(styles$1U["icon"], styles$1U[`icon--${size}`], className),
42880
42968
  ...props,
42881
42969
  children: React__default.createElement(icons[icon2])
42882
42970
  });
42883
42971
  };
42884
42972
  const btn$2 = "_btn_g6dop_1";
42885
- const styles$1S = {
42973
+ const styles$1T = {
42886
42974
  btn: btn$2,
42887
42975
  "btn--large": "_btn--large_g6dop_16",
42888
42976
  "btn--default": "_btn--default_g6dop_20",
@@ -42910,7 +42998,7 @@ const Button$1 = ({
42910
42998
  ...props
42911
42999
  }) => {
42912
43000
  const componentProps = {
42913
- className: classNames$2(styles$1S["btn"], styles$1S[`btn--${mode}`], styles$1S[`btn--${size}`], "mz-btn", className),
43001
+ className: classNames$2(styles$1T["btn"], styles$1T[`btn--${mode}`], styles$1T[`btn--${size}`], "mz-btn", className),
42914
43002
  ...props
42915
43003
  };
42916
43004
  const IconBtn = icon2 ? /* @__PURE__ */ jsx$1(Icon, {
@@ -42935,25 +43023,25 @@ const Button$1 = ({
42935
43023
  });
42936
43024
  };
42937
43025
  const sronly = "_sronly_1n9bw_1";
42938
- const styles$1R = {
43026
+ const styles$1S = {
42939
43027
  sronly
42940
43028
  };
42941
43029
  const SrOnly = ({
42942
43030
  children
42943
43031
  }) => {
42944
43032
  return /* @__PURE__ */ jsx$1("span", {
42945
- className: styles$1R.sronly,
43033
+ className: styles$1S.sronly,
42946
43034
  children
42947
43035
  });
42948
43036
  };
42949
43037
  const label$5 = "_label_wrsfp_1";
42950
- const styles$1Q = {
43038
+ const styles$1R = {
42951
43039
  label: label$5
42952
43040
  };
42953
43041
  const tooltipContainer = "_tooltipContainer_13ux5_1";
42954
43042
  const tooltipBox = "_tooltipBox_13ux5_5";
42955
43043
  const isVisible = "_isVisible_13ux5_26";
42956
- const styles$1P = {
43044
+ const styles$1Q = {
42957
43045
  tooltipContainer,
42958
43046
  tooltipBox,
42959
43047
  isVisible,
@@ -42973,14 +43061,14 @@ const Tooltip$1 = ({
42973
43061
  const showTooltip = () => setIsVisible(true);
42974
43062
  const hideTooltip = () => setIsVisible(false);
42975
43063
  return /* @__PURE__ */ jsxs("div", {
42976
- className: styles$1P.tooltipContainer,
43064
+ className: styles$1Q.tooltipContainer,
42977
43065
  onMouseEnter: showTooltip,
42978
43066
  onMouseLeave: hideTooltip,
42979
43067
  onFocus: showTooltip,
42980
43068
  onBlur: hideTooltip,
42981
43069
  tabIndex: 0,
42982
43070
  children: [children, /* @__PURE__ */ jsx$1("div", {
42983
- className: classNames$2(styles$1P.tooltipBox, styles$1P[`tooltip--${position2}`], isVisible2 ? styles$1P.isVisible : "", className),
43071
+ className: classNames$2(styles$1Q.tooltipBox, styles$1Q[`tooltip--${position2}`], isVisible2 ? styles$1Q.isVisible : "", className),
42984
43072
  ...props,
42985
43073
  children: message ?? ""
42986
43074
  })]
@@ -42994,7 +43082,7 @@ const Label$1 = ({
42994
43082
  ...props
42995
43083
  }) => {
42996
43084
  const label2 = /* @__PURE__ */ jsxs("label", {
42997
- className: styles$1Q.label,
43085
+ className: styles$1R.label,
42998
43086
  ...props,
42999
43087
  children: [children, tooltip2 && /* @__PURE__ */ jsx$1(Tooltip$1, {
43000
43088
  message: tooltip2,
@@ -44926,7 +45014,7 @@ function o(o2, n, a2) {
44926
45014
  };
44927
45015
  }
44928
45016
  const text$2 = "_text_1f1l5_1";
44929
- const styles$1O = {
45017
+ const styles$1P = {
44930
45018
  text: text$2
44931
45019
  };
44932
45020
  const FieldError$1 = ({
@@ -44934,14 +45022,14 @@ const FieldError$1 = ({
44934
45022
  }) => {
44935
45023
  if (error3) {
44936
45024
  return /* @__PURE__ */ jsx$1("div", {
44937
- className: styles$1O.text,
45025
+ className: styles$1P.text,
44938
45026
  children: error3.message
44939
45027
  });
44940
45028
  }
44941
45029
  return null;
44942
45030
  };
44943
45031
  const input$5 = "_input_1ayrx_1";
44944
- const styles$1N = {
45032
+ const styles$1O = {
44945
45033
  input: input$5
44946
45034
  };
44947
45035
  const TextArea$1 = React__default.forwardRef(({
@@ -44977,7 +45065,7 @@ const TextArea$1 = React__default.forwardRef(({
44977
45065
  position: "relative"
44978
45066
  },
44979
45067
  children: /* @__PURE__ */ jsx$1("textarea", {
44980
- className: styles$1N.input,
45068
+ className: styles$1O.input,
44981
45069
  onChange: handleChange,
44982
45070
  id: id2,
44983
45071
  name: id2,
@@ -45099,11 +45187,11 @@ const ReplyForm = ({
45099
45187
  marginTop: 10
45100
45188
  },
45101
45189
  children: [!showTranslation && locale2 !== "en" && /* @__PURE__ */ jsx$1("span", {
45102
- className: styles$1Z.translate,
45190
+ className: styles$1_.translate,
45103
45191
  onClick: () => setShowTranslation(true),
45104
45192
  children: t2("SHOWTRANSLATION")
45105
45193
  }), showTranslation && locale2 !== "en" && /* @__PURE__ */ jsx$1("span", {
45106
- className: styles$1Z.translate,
45194
+ className: styles$1_.translate,
45107
45195
  onClick: () => setShowTranslation(false),
45108
45196
  children: t2("HIDETRANSLATION")
45109
45197
  })]
@@ -45150,7 +45238,7 @@ const ReplyForm = ({
45150
45238
  const label$4 = "_label_x1r40_1";
45151
45239
  const comment$1 = "_comment_x1r40_7";
45152
45240
  const date$3 = "_date_x1r40_12";
45153
- const styles$1M = {
45241
+ const styles$1N = {
45154
45242
  label: label$4,
45155
45243
  comment: comment$1,
45156
45244
  date: date$3
@@ -45164,13 +45252,13 @@ const Reply = ({
45164
45252
  return /* @__PURE__ */ jsxs("div", {
45165
45253
  children: [/* @__PURE__ */ jsx$1(Label$2, {
45166
45254
  htmlFor: "",
45167
- className: styles$1M.label,
45255
+ className: styles$1N.label,
45168
45256
  children: t2("REPLY")
45169
45257
  }), /* @__PURE__ */ jsx$1("p", {
45170
- className: styles$1M.comment,
45258
+ className: styles$1N.comment,
45171
45259
  children: reply2.comment
45172
45260
  }), /* @__PURE__ */ jsx$1("span", {
45173
- className: styles$1M.date,
45261
+ className: styles$1N.date,
45174
45262
  children: reply2.createdAt
45175
45263
  }), /* @__PURE__ */ jsx$1("br", {})]
45176
45264
  });
@@ -45256,7 +45344,7 @@ const back = "_back_ypeoh_30";
45256
45344
  const statusbar = "_statusbar_ypeoh_38";
45257
45345
  const statusbar__icons = "_statusbar__icons_ypeoh_44";
45258
45346
  const platform = "_platform_ypeoh_48";
45259
- const styles$1L = {
45347
+ const styles$1M = {
45260
45348
  detail: detail$1,
45261
45349
  hidden,
45262
45350
  reviewer: reviewer$1,
@@ -45278,36 +45366,36 @@ const Comment = ({
45278
45366
  return /* @__PURE__ */ jsxs("div", {
45279
45367
  children: [/* @__PURE__ */ jsx$1(Label$2, {
45280
45368
  htmlFor: "",
45281
- className: styles$1Z.label,
45369
+ className: styles$1_.label,
45282
45370
  children: t2("REVIEW")
45283
45371
  }), /* @__PURE__ */ jsx$1("p", {
45284
- className: styles$1Z.comment,
45372
+ className: styles$1_.comment,
45285
45373
  children
45286
45374
  }), !showTranslation && locale2 !== "en" && /* @__PURE__ */ jsx$1("span", {
45287
- className: styles$1Z.translate,
45375
+ className: styles$1_.translate,
45288
45376
  onClick: () => setShowTranslation(true),
45289
45377
  children: t2("SHOWTRANSLATION")
45290
45378
  }), showTranslation && locale2 !== "en" && /* @__PURE__ */ jsx$1("span", {
45291
- className: styles$1Z.translate,
45379
+ className: styles$1_.translate,
45292
45380
  onClick: () => setShowTranslation(false),
45293
45381
  children: t2("HIDETRANSLATION")
45294
45382
  })]
45295
45383
  });
45296
45384
  };
45297
45385
  const flag = "_flag_wd4ay_1";
45298
- const styles$1K = {
45386
+ const styles$1L = {
45299
45387
  flag
45300
45388
  };
45301
45389
  const CountryFlag = ({
45302
45390
  locale: locale2
45303
45391
  }) => {
45304
45392
  return /* @__PURE__ */ jsx$1("span", {
45305
- className: `fib fi-${locale2 === "en" ? "gb" : locale2} ${styles$1K.flag}`
45393
+ className: `fib fi-${locale2 === "en" ? "gb" : locale2} ${styles$1L.flag}`
45306
45394
  });
45307
45395
  };
45308
45396
  const label$3 = "_label_15hk9_1";
45309
45397
  const translation = "_translation_15hk9_6";
45310
- const styles$1J = {
45398
+ const styles$1K = {
45311
45399
  label: label$3,
45312
45400
  translation
45313
45401
  };
@@ -45343,13 +45431,13 @@ const CommentTranslation = ({
45343
45431
  children: [isLoading && /* @__PURE__ */ jsxs("span", {
45344
45432
  children: [t2("TRANSLATING"), "..."]
45345
45433
  }), !isLoading && /* @__PURE__ */ jsxs("div", {
45346
- className: styles$1J.translation,
45434
+ className: styles$1K.translation,
45347
45435
  children: [/* @__PURE__ */ jsx$1(Label$2, {
45348
45436
  htmlFor: "",
45349
- className: styles$1J.label,
45437
+ className: styles$1K.label,
45350
45438
  children: t2("TRANSLATION")
45351
45439
  }), /* @__PURE__ */ jsx$1("p", {
45352
- className: styles$1J.translation,
45440
+ className: styles$1K.translation,
45353
45441
  children: data2
45354
45442
  })]
45355
45443
  })]
@@ -45357,7 +45445,7 @@ const CommentTranslation = ({
45357
45445
  };
45358
45446
  const label$2 = "_label_13kaz_1";
45359
45447
  const title$3 = "_title_13kaz_5";
45360
- const styles$1I = {
45448
+ const styles$1J = {
45361
45449
  label: label$2,
45362
45450
  title: title$3
45363
45451
  };
@@ -45370,10 +45458,10 @@ const Title = ({
45370
45458
  return /* @__PURE__ */ jsxs("div", {
45371
45459
  children: [/* @__PURE__ */ jsx$1(Label$2, {
45372
45460
  htmlFor: "",
45373
- className: styles$1I.label,
45461
+ className: styles$1J.label,
45374
45462
  children: t2("TITLE")
45375
45463
  }), /* @__PURE__ */ jsx$1("p", {
45376
- className: styles$1I.title,
45464
+ className: styles$1J.title,
45377
45465
  children
45378
45466
  })]
45379
45467
  });
@@ -45551,7 +45639,7 @@ const formatData$k = (data2) => {
45551
45639
  });
45552
45640
  };
45553
45641
  const text$1 = "_text_12cto_1";
45554
- const styles$1H = {
45642
+ const styles$1I = {
45555
45643
  text: text$1
45556
45644
  };
45557
45645
  const tagsMap$2 = {
@@ -45564,7 +45652,7 @@ const TemplateText = ({
45564
45652
  text: text2
45565
45653
  }) => {
45566
45654
  return /* @__PURE__ */ jsx$1("p", {
45567
- className: styles$1H.text,
45655
+ className: styles$1I.text,
45568
45656
  children: text2.split("@@").map((item2, index2) => {
45569
45657
  if (tagsMap$2[item2]) {
45570
45658
  return /* @__PURE__ */ jsx$1("span", {
@@ -45576,7 +45664,7 @@ const TemplateText = ({
45576
45664
  });
45577
45665
  };
45578
45666
  const button$6 = "_button_1hbqp_1";
45579
- const styles$1G = {
45667
+ const styles$1H = {
45580
45668
  button: button$6
45581
45669
  };
45582
45670
  const Template$1 = ({
@@ -45591,7 +45679,7 @@ const Template$1 = ({
45591
45679
  children: [/* @__PURE__ */ jsx$1(TemplateText, {
45592
45680
  text: text2
45593
45681
  }), /* @__PURE__ */ jsx$1("button", {
45594
- className: styles$1G.button,
45682
+ className: styles$1H.button,
45595
45683
  onClick: handleClickUse,
45596
45684
  children: "Use"
45597
45685
  })]
@@ -45600,7 +45688,7 @@ const Template$1 = ({
45600
45688
  const container$x = "_container_1ej4w_1";
45601
45689
  const hide$1 = "_hide_1ej4w_8";
45602
45690
  const toolbar$3 = "_toolbar_1ej4w_12";
45603
- const styles$1F = {
45691
+ const styles$1G = {
45604
45692
  container: container$x,
45605
45693
  hide: hide$1,
45606
45694
  toolbar: toolbar$3
@@ -47348,7 +47436,7 @@ function autoUpdate(reference, floating, update, options2) {
47348
47436
  }
47349
47437
  };
47350
47438
  }
47351
- var index$d = useLayoutEffect$1;
47439
+ var index$e = useLayoutEffect$1;
47352
47440
  function _defineProperty$t(obj, key2, value2) {
47353
47441
  if (key2 in obj) {
47354
47442
  Object.defineProperty(obj, key2, {
@@ -47910,7 +47998,7 @@ var MenuPortal = function MenuPortal2(_ref7) {
47910
47998
  });
47911
47999
  }
47912
48000
  }, [controlElement, menuPosition, placement, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.offset, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.left, computedPosition === null || computedPosition === void 0 ? void 0 : computedPosition.rect.width]);
47913
- index$d(function() {
48001
+ index$e(function() {
47914
48002
  updateComputedPosition();
47915
48003
  }, [updateComputedPosition]);
47916
48004
  var runAutoUpdate = useCallback(function() {
@@ -47922,7 +48010,7 @@ var MenuPortal = function MenuPortal2(_ref7) {
47922
48010
  cleanupRef.current = autoUpdate(controlElement, menuPortalRef.current, updateComputedPosition);
47923
48011
  }
47924
48012
  }, [controlElement, updateComputedPosition]);
47925
- index$d(function() {
48013
+ index$e(function() {
47926
48014
  runAutoUpdate();
47927
48015
  }, [runAutoUpdate]);
47928
48016
  var setMenuPortalElement = useCallback(function(menuPortalElement) {
@@ -50742,7 +50830,7 @@ var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
50742
50830
  });
50743
50831
  const tooltip$1 = "_tooltip_17puf_1";
50744
50832
  const tooltip__icon = "_tooltip__icon_17puf_4";
50745
- const styles$1E = {
50833
+ const styles$1F = {
50746
50834
  tooltip: tooltip$1,
50747
50835
  tooltip__icon
50748
50836
  };
@@ -50750,9 +50838,9 @@ const LockTooltip = ({
50750
50838
  children
50751
50839
  }) => {
50752
50840
  return /* @__PURE__ */ jsxs("div", {
50753
- className: styles$1E.tooltip,
50841
+ className: styles$1F.tooltip,
50754
50842
  children: [/* @__PURE__ */ jsx$1(Icon$1, {
50755
- className: styles$1E.tooltip__icon,
50843
+ className: styles$1F.tooltip__icon,
50756
50844
  icon: "lock",
50757
50845
  size: "small",
50758
50846
  "data-tip": children
@@ -50766,7 +50854,7 @@ const LockTooltip = ({
50766
50854
  };
50767
50855
  const container$w = "_container_ut3y7_1";
50768
50856
  const tooltip = "_tooltip_ut3y7_5";
50769
- const styles$1D = {
50857
+ const styles$1E = {
50770
50858
  container: container$w,
50771
50859
  tooltip
50772
50860
  };
@@ -50795,7 +50883,7 @@ const NewSelect = ({
50795
50883
  ...props
50796
50884
  }) => {
50797
50885
  return /* @__PURE__ */ jsxs("div", {
50798
- className: styles$1D.container,
50886
+ className: styles$1E.container,
50799
50887
  children: [label2 && /* @__PURE__ */ jsx$1(Label$2, {
50800
50888
  htmlFor: id2,
50801
50889
  children: label2
@@ -50809,7 +50897,7 @@ const NewSelect = ({
50809
50897
  id: id2,
50810
50898
  isDisabled
50811
50899
  }), isDisabled && /* @__PURE__ */ jsx$1("div", {
50812
- className: styles$1D.tooltip,
50900
+ className: styles$1E.tooltip,
50813
50901
  children: /* @__PURE__ */ jsx$1(LockTooltip, {
50814
50902
  children: disabledTooltip
50815
50903
  })
@@ -50885,12 +50973,12 @@ const filterTemplatesByLanguage = (templates, language) => {
50885
50973
  };
50886
50974
  const header$7 = "_header_1jmjy_1";
50887
50975
  const icon$8 = "_icon_1jmjy_11";
50888
- const styles$1C = {
50976
+ const styles$1D = {
50889
50977
  header: header$7,
50890
50978
  icon: icon$8
50891
50979
  };
50892
50980
  const heading = "_heading_1fifa_1";
50893
- const styles$1B = {
50981
+ const styles$1C = {
50894
50982
  heading,
50895
50983
  "heading--large": "_heading--large_1fifa_7",
50896
50984
  "heading--medium": "_heading--medium_1fifa_15",
@@ -50906,7 +50994,7 @@ const Heading = ({
50906
50994
  const Tag2 = level;
50907
50995
  return /* @__PURE__ */ jsx$1(Tag2, {
50908
50996
  id: id2,
50909
- className: classNames$2(styles$1B["heading"], styles$1B[`heading--${size}`]),
50997
+ className: classNames$2(styles$1C["heading"], styles$1C[`heading--${size}`]),
50910
50998
  ...props,
50911
50999
  children
50912
51000
  });
@@ -50921,18 +51009,18 @@ const Header$6 = ({
50921
51009
  return header2;
50922
51010
  }
50923
51011
  return /* @__PURE__ */ jsxs("div", {
50924
- className: styles$1C.header,
51012
+ className: styles$1D.header,
50925
51013
  children: [/* @__PURE__ */ jsx$1(Heading, {
50926
51014
  children: header2.title
50927
51015
  }), typeof header2.icon === "string" && /* @__PURE__ */ jsx$1(Icon, {
50928
51016
  icon: header2.icon,
50929
51017
  onClick: header2.onClickIcon,
50930
- className: styles$1C.icon
51018
+ className: styles$1D.icon
50931
51019
  }), typeof header2.icon !== "string" && header2.icon && header2.icon]
50932
51020
  });
50933
51021
  };
50934
51022
  const container$v = "_container_pc1hp_1";
50935
- const styles$1A = {
51023
+ const styles$1B = {
50936
51024
  container: container$v
50937
51025
  };
50938
51026
  const Card$1 = ({
@@ -50944,12 +51032,12 @@ const Card$1 = ({
50944
51032
  }) => {
50945
51033
  return /* @__PURE__ */ jsx$1(Fragment, {
50946
51034
  children: /* @__PURE__ */ jsxs("div", {
50947
- className: classNames$2(styles$1A.container, className, "mz-card"),
51035
+ className: classNames$2(styles$1B.container, className, "mz-card"),
50948
51036
  style: style2,
50949
51037
  children: [/* @__PURE__ */ jsx$1(Header$6, {
50950
51038
  header: header2
50951
51039
  }), /* @__PURE__ */ jsx$1("div", {
50952
- className: classNames$2(styles$1A.content, classNameContent),
51040
+ className: classNames$2(styles$1B.content, classNameContent),
50953
51041
  children
50954
51042
  })]
50955
51043
  })
@@ -51021,11 +51109,11 @@ const TemplatesModal = ({
51021
51109
  icon: "close",
51022
51110
  onClickIcon: onClose2
51023
51111
  },
51024
- className: classNames$2(styles$1F.container, {
51025
- [styles$1F.hide]: !open
51112
+ className: classNames$2(styles$1G.container, {
51113
+ [styles$1G.hide]: !open
51026
51114
  }),
51027
51115
  children: [/* @__PURE__ */ jsxs("div", {
51028
- className: styles$1F.toolbar,
51116
+ className: styles$1G.toolbar,
51029
51117
  children: [/* @__PURE__ */ jsx$1(NewSelect, {
51030
51118
  label: t2("REPLYTEMPLATETYPE"),
51031
51119
  options: typeOptions,
@@ -51079,31 +51167,31 @@ const DetailMobile = ({
51079
51167
  const openModal = () => setShowTemplates(true);
51080
51168
  const closeModal = () => setShowTemplates(false);
51081
51169
  return /* @__PURE__ */ jsxs("div", {
51082
- className: classNames$2(styles$1L.detail, {
51083
- [styles$1L.hidden]: !openForm
51170
+ className: classNames$2(styles$1M.detail, {
51171
+ [styles$1M.hidden]: !openForm
51084
51172
  }),
51085
51173
  children: [/* @__PURE__ */ jsx$1("div", {
51086
51174
  onClick,
51087
- className: styles$1L.back,
51175
+ className: styles$1M.back,
51088
51176
  children: /* @__PURE__ */ jsx$1(Icon, {
51089
51177
  icon: "close"
51090
51178
  })
51091
51179
  }), /* @__PURE__ */ jsxs("div", {
51092
- className: styles$1L.statusbar,
51180
+ className: styles$1M.statusbar,
51093
51181
  children: [/* @__PURE__ */ jsxs("div", {
51094
- className: styles$1L.statusbar__icons,
51182
+ className: styles$1M.statusbar__icons,
51095
51183
  children: [/* @__PURE__ */ jsx$1(Icon, {
51096
51184
  icon: reply2 ? "mailReplied" : "mailNotReplied"
51097
51185
  }), /* @__PURE__ */ jsx$1("img", {
51098
51186
  alt: platform2,
51099
51187
  src: platformImages[platform2],
51100
- className: styles$1L.platform
51188
+ className: styles$1M.platform
51101
51189
  })]
51102
51190
  }), /* @__PURE__ */ jsx$1("div", {
51103
51191
  children: createdAt
51104
51192
  })]
51105
51193
  }), /* @__PURE__ */ jsxs("strong", {
51106
- className: styles$1L.reviewer,
51194
+ className: styles$1M.reviewer,
51107
51195
  children: [reviewer2.name, " ", ` `, locale2 && /* @__PURE__ */ jsx$1(CountryFlag, {
51108
51196
  locale: locale2
51109
51197
  })]
@@ -51148,7 +51236,7 @@ const DetailMobile = ({
51148
51236
  commentId: id2
51149
51237
  })]
51150
51238
  }), platform2 !== "tripadvisor" ? /* @__PURE__ */ jsx$1("div", {
51151
- className: styles$1L["container--reply"],
51239
+ className: styles$1M["container--reply"],
51152
51240
  children: reply2 ? /* @__PURE__ */ jsx$1(Reply, {
51153
51241
  reply: reply2
51154
51242
  }) : /* @__PURE__ */ jsx$1(ReplyForm, {
@@ -51161,7 +51249,7 @@ const DetailMobile = ({
51161
51249
  locale: locale2
51162
51250
  })
51163
51251
  }) : /* @__PURE__ */ jsx$1("div", {
51164
- className: styles$1L["container--reply"],
51252
+ className: styles$1M["container--reply"],
51165
51253
  children: reply2 && /* @__PURE__ */ jsx$1(Reply, {
51166
51254
  reply: reply2
51167
51255
  })
@@ -51194,13 +51282,13 @@ const DetailMobile = ({
51194
51282
  const detail = "_detail_1nbuk_1";
51195
51283
  const reply = "_reply_1nbuk_10";
51196
51284
  const hide = "_hide_1nbuk_14";
51197
- const styles$1z = {
51285
+ const styles$1A = {
51198
51286
  detail,
51199
51287
  reply,
51200
51288
  hide
51201
51289
  };
51202
51290
  const btn$1 = "_btn_1wg4v_1";
51203
- const styles$1y = {
51291
+ const styles$1z = {
51204
51292
  btn: btn$1,
51205
51293
  "btn--large": "_btn--large_1wg4v_16",
51206
51294
  "btn--small": "_btn--small_1wg4v_19",
@@ -51225,7 +51313,7 @@ const Button = React__default.forwardRef(({
51225
51313
  ...props
51226
51314
  }, ref = null) => {
51227
51315
  const componentProps = {
51228
- className: classNames$2(styles$1y["btn"], styles$1y[`btn--${mode}`], styles$1y[`btn--${size}`], "mz-btn", className),
51316
+ className: classNames$2(styles$1z["btn"], styles$1z[`btn--${mode}`], styles$1z[`btn--${size}`], "mz-btn", className),
51229
51317
  ...props
51230
51318
  };
51231
51319
  const IconBtn = icon2 ? /* @__PURE__ */ jsx$1(Icon$1, {
@@ -51277,8 +51365,8 @@ const DetailDesktop = ({
51277
51365
  } = useTranslation();
51278
51366
  const [showTranslation, setShowTranslation] = useState(false);
51279
51367
  return /* @__PURE__ */ jsxs("div", {
51280
- className: classNames$2(styles$1z.detail, {
51281
- [styles$1z.hide]: !openForm
51368
+ className: classNames$2(styles$1A.detail, {
51369
+ [styles$1A.hide]: !openForm
51282
51370
  }),
51283
51371
  children: [meta && /* @__PURE__ */ jsxs("div", {
51284
51372
  style: {
@@ -51319,7 +51407,7 @@ const DetailDesktop = ({
51319
51407
  commentId: id2
51320
51408
  })]
51321
51409
  }), platform2 !== "tripadvisor" ? /* @__PURE__ */ jsx$1("div", {
51322
- className: styles$1z.reply,
51410
+ className: styles$1A.reply,
51323
51411
  children: reply2 ? /* @__PURE__ */ jsx$1(Reply, {
51324
51412
  reply: reply2
51325
51413
  }) : /* @__PURE__ */ jsx$1(ReplyForm, {
@@ -51333,7 +51421,7 @@ const DetailDesktop = ({
51333
51421
  locale: locale2
51334
51422
  })
51335
51423
  }) : /* @__PURE__ */ jsx$1("div", {
51336
- className: styles$1z.reply,
51424
+ className: styles$1A.reply,
51337
51425
  children: reply2 ? /* @__PURE__ */ jsx$1(Reply, {
51338
51426
  reply: reply2
51339
51427
  }) : /* @__PURE__ */ jsx$1("div", {
@@ -51363,7 +51451,7 @@ const image$1 = "_image_x6ey8_40";
51363
51451
  const imageMobile = "_imageMobile_x6ey8_46";
51364
51452
  const reviewer = "_reviewer_x6ey8_61";
51365
51453
  const location = "_location_x6ey8_66";
51366
- const styles$1x = {
51454
+ const styles$1y = {
51367
51455
  container: container$u,
51368
51456
  light,
51369
51457
  active,
@@ -51427,30 +51515,30 @@ const Review = ({
51427
51515
  }
51428
51516
  }, [data2]);
51429
51517
  return /* @__PURE__ */ jsxs("article", {
51430
- className: classNames$2(styles$1x.container, {
51431
- [styles$1x.light]: light2,
51432
- [styles$1x.active]: openForm
51518
+ className: classNames$2(styles$1y.container, {
51519
+ [styles$1y.light]: light2,
51520
+ [styles$1y.active]: openForm
51433
51521
  }),
51434
51522
  children: [/* @__PURE__ */ jsx$1("div", {
51435
- className: styles$1x.resume,
51523
+ className: styles$1y.resume,
51436
51524
  onClick,
51437
51525
  children: /* @__PURE__ */ jsxs("div", {
51438
- className: styles$1x.resume__container,
51526
+ className: styles$1y.resume__container,
51439
51527
  children: [/* @__PURE__ */ jsxs("div", {
51440
- className: styles$1x.left,
51528
+ className: styles$1y.left,
51441
51529
  children: [/* @__PURE__ */ jsx$1(Row, {
51442
51530
  children: /* @__PURE__ */ jsxs(Col, {
51443
51531
  xs: 24,
51444
51532
  sm: 0,
51445
51533
  children: [/* @__PURE__ */ jsx$1("span", {
51446
- className: styles$1x["icon--center"],
51534
+ className: styles$1y["icon--center"],
51447
51535
  children: /* @__PURE__ */ jsx$1(Icon, {
51448
51536
  icon: reply2 ? "mailReplied" : "mailNotReplied"
51449
51537
  })
51450
51538
  }), /* @__PURE__ */ jsx$1("img", {
51451
51539
  alt: platform2,
51452
51540
  src: module2.logo || platformImages[platform2],
51453
- className: styles$1x.imageMobile
51541
+ className: styles$1y.imageMobile
51454
51542
  })]
51455
51543
  })
51456
51544
  }), /* @__PURE__ */ jsx$1(Row, {
@@ -51458,7 +51546,7 @@ const Review = ({
51458
51546
  xs: 0,
51459
51547
  sm: 24,
51460
51548
  children: /* @__PURE__ */ jsx$1("span", {
51461
- className: styles$1x["icon--center"],
51549
+ className: styles$1y["icon--center"],
51462
51550
  children: /* @__PURE__ */ jsx$1(Icon, {
51463
51551
  icon: reply2 ? "mailReplied" : "mailNotReplied"
51464
51552
  })
@@ -51471,7 +51559,7 @@ const Review = ({
51471
51559
  children: /* @__PURE__ */ jsx$1("img", {
51472
51560
  alt: platform2,
51473
51561
  src: module2.logo || platformImages[platform2],
51474
- className: styles$1x.image
51562
+ className: styles$1y.image
51475
51563
  })
51476
51564
  })
51477
51565
  }), /* @__PURE__ */ jsx$1(Row, {
@@ -51495,7 +51583,7 @@ const Review = ({
51495
51583
  },
51496
51584
  children: [/* @__PURE__ */ jsx$1(Col, {
51497
51585
  children: /* @__PURE__ */ jsx$1("strong", {
51498
- className: styles$1x.reviewer,
51586
+ className: styles$1y.reviewer,
51499
51587
  children: reviewer2.name
51500
51588
  })
51501
51589
  }), /* @__PURE__ */ jsx$1(Col, {
@@ -51533,11 +51621,11 @@ const Review = ({
51533
51621
  })]
51534
51622
  }), multiVenue && /* @__PURE__ */ jsx$1("div", {
51535
51623
  children: /* @__PURE__ */ jsx$1("div", {
51536
- className: styles$1x.location,
51624
+ className: styles$1y.location,
51537
51625
  children: locationName
51538
51626
  })
51539
51627
  }), /* @__PURE__ */ jsx$1("div", {
51540
- className: styles$1x.right,
51628
+ className: styles$1y.right,
51541
51629
  children: createdAt
51542
51630
  })]
51543
51631
  })
@@ -51583,7 +51671,7 @@ const Review = ({
51583
51671
  };
51584
51672
  const header$6 = "_header_190p9_1";
51585
51673
  const icon$7 = "_icon_190p9_10";
51586
- const styles$1w = {
51674
+ const styles$1x = {
51587
51675
  header: header$6,
51588
51676
  icon: icon$7
51589
51677
  };
@@ -51597,18 +51685,18 @@ const Header$5 = ({
51597
51685
  return header2;
51598
51686
  }
51599
51687
  return /* @__PURE__ */ jsxs("div", {
51600
- className: styles$1w.header,
51688
+ className: styles$1x.header,
51601
51689
  children: [/* @__PURE__ */ jsx$1(Heading, {
51602
51690
  children: header2.title
51603
51691
  }), typeof header2.icon === "string" && /* @__PURE__ */ jsx$1(Icon$1, {
51604
51692
  icon: header2.icon,
51605
51693
  onClick: header2.onClickIcon,
51606
- className: styles$1w.icon
51694
+ className: styles$1x.icon
51607
51695
  }), typeof header2.icon !== "string" && header2.icon && header2.icon]
51608
51696
  });
51609
51697
  };
51610
51698
  const container$t = "_container_pd6ji_1";
51611
- const styles$1v = {
51699
+ const styles$1w = {
51612
51700
  container: container$t
51613
51701
  };
51614
51702
  const Card = ({
@@ -51620,43 +51708,43 @@ const Card = ({
51620
51708
  }) => {
51621
51709
  return /* @__PURE__ */ jsx$1(Fragment, {
51622
51710
  children: /* @__PURE__ */ jsxs("div", {
51623
- className: classNames$2(styles$1v.container, className, "mz-card"),
51711
+ className: classNames$2(styles$1w.container, className, "mz-card"),
51624
51712
  style: style2,
51625
51713
  children: [/* @__PURE__ */ jsx$1(Header$5, {
51626
51714
  header: header2
51627
51715
  }), /* @__PURE__ */ jsx$1("div", {
51628
- className: classNames$2(styles$1v.content, classNameContent),
51716
+ className: classNames$2(styles$1w.content, classNameContent),
51629
51717
  children
51630
51718
  })]
51631
51719
  })
51632
51720
  });
51633
51721
  };
51634
51722
  const header$5 = "_header_1qr4z_1";
51635
- const styles$1u = {
51723
+ const styles$1v = {
51636
51724
  header: header$5
51637
51725
  };
51638
51726
  const Header$4 = ({
51639
51727
  title: title2
51640
51728
  }) => {
51641
51729
  return /* @__PURE__ */ jsx$1("div", {
51642
- className: styles$1u.header,
51730
+ className: styles$1v.header,
51643
51731
  children: /* @__PURE__ */ jsxs(Heading, {
51644
51732
  children: [" ", title2]
51645
51733
  })
51646
51734
  });
51647
51735
  };
51648
51736
  const container$s = "_container_1egcu_1";
51649
- const styles$1t = {
51737
+ const styles$1u = {
51650
51738
  container: container$s
51651
51739
  };
51652
51740
  const Empty = ({
51653
51741
  children
51654
51742
  }) => {
51655
51743
  return /* @__PURE__ */ jsxs("div", {
51656
- className: styles$1t.container,
51744
+ className: styles$1u.container,
51657
51745
  children: [/* @__PURE__ */ jsx$1(Icon$1, {
51658
51746
  icon: "fileSad",
51659
- className: styles$1t.icon,
51747
+ className: styles$1u.icon,
51660
51748
  size: "xxl"
51661
51749
  }), /* @__PURE__ */ jsx$1("h2", {
51662
51750
  children
@@ -51664,11 +51752,11 @@ const Empty = ({
51664
51752
  });
51665
51753
  };
51666
51754
  const container$r = "_container_n6953_1";
51667
- const content$9 = "_content_n6953_6";
51755
+ const content$8 = "_content_n6953_6";
51668
51756
  const empty = "_empty_n6953_10";
51669
- const styles$1s = {
51757
+ const styles$1t = {
51670
51758
  container: container$r,
51671
- content: content$9,
51759
+ content: content$8,
51672
51760
  empty
51673
51761
  };
51674
51762
  const ContextReview = React__default.createContext([
@@ -51703,13 +51791,13 @@ const Reviews = ({
51703
51791
  }
51704
51792
  };
51705
51793
  return /* @__PURE__ */ jsxs(Card, {
51706
- className: styles$1s.container,
51707
- classNameContent: styles$1s.content,
51794
+ className: styles$1t.container,
51795
+ classNameContent: styles$1t.content,
51708
51796
  header: /* @__PURE__ */ jsx$1(Header$4, {
51709
51797
  title: t2("REVIEWS")
51710
51798
  }),
51711
51799
  children: [isEmpty && /* @__PURE__ */ jsx$1("div", {
51712
- className: styles$1s.empty,
51800
+ className: styles$1t.empty,
51713
51801
  children: /* @__PURE__ */ jsx$1(Empty, {
51714
51802
  children: t2("youDontHaveReviewsYet")
51715
51803
  })
@@ -51760,13 +51848,13 @@ const tagsMap$1 = {
51760
51848
  const collapse = "_collapse_1tnkf_8";
51761
51849
  const collapse__header = "_collapse__header_1tnkf_15";
51762
51850
  const left = "_left_1tnkf_23";
51763
- const content$8 = "_content_1tnkf_28";
51764
- const styles$1r = {
51851
+ const content$7 = "_content_1tnkf_28";
51852
+ const styles$1s = {
51765
51853
  collapse,
51766
51854
  "collapse--light": "_collapse--light_1tnkf_12",
51767
51855
  collapse__header,
51768
51856
  left,
51769
- content: content$8
51857
+ content: content$7
51770
51858
  };
51771
51859
  const Template = ({
51772
51860
  light: light2,
@@ -51783,14 +51871,14 @@ const Template = ({
51783
51871
  t: t2
51784
51872
  } = useTranslation();
51785
51873
  return /* @__PURE__ */ jsxs("div", {
51786
- className: classNames$2(styles$1r.collapse, {
51787
- [styles$1r["collapse--light"]]: light2
51874
+ className: classNames$2(styles$1s.collapse, {
51875
+ [styles$1s["collapse--light"]]: light2
51788
51876
  }),
51789
51877
  children: [/* @__PURE__ */ jsxs("div", {
51790
- className: styles$1r.collapse__header,
51878
+ className: styles$1s.collapse__header,
51791
51879
  onClick: toggle,
51792
51880
  children: [/* @__PURE__ */ jsxs("div", {
51793
- className: styles$1r.left,
51881
+ className: styles$1s.left,
51794
51882
  children: [/* @__PURE__ */ jsx$1(Icon$1, {
51795
51883
  icon: open ? "chevronDown" : "chevronRight"
51796
51884
  }), template.title, /* @__PURE__ */ jsx$1(CountryFlag, {
@@ -51801,7 +51889,7 @@ const Template = ({
51801
51889
  children: t2("USE")
51802
51890
  })]
51803
51891
  }), open && /* @__PURE__ */ jsx$1("div", {
51804
- className: styles$1r.content,
51892
+ className: styles$1s.content,
51805
51893
  children: /* @__PURE__ */ jsx$1(TemplateContent, {
51806
51894
  children: template.reply
51807
51895
  })
@@ -51811,7 +51899,7 @@ const Template = ({
51811
51899
  const skeleton$2 = "_skeleton_1jxqg_12";
51812
51900
  const error$1 = "_error_1jxqg_16";
51813
51901
  const filters$1 = "_filters_1jxqg_20";
51814
- const styles$1q = {
51902
+ const styles$1r = {
51815
51903
  skeleton: skeleton$2,
51816
51904
  error: error$1,
51817
51905
  filters: filters$1,
@@ -57354,7 +57442,7 @@ const Modal$1 = ({
57354
57442
  });
57355
57443
  };
57356
57444
  const container$q = "_container_ut3y7_1";
57357
- const styles$1p = {
57445
+ const styles$1q = {
57358
57446
  container: container$q
57359
57447
  };
57360
57448
  const customStyles = {
@@ -57428,7 +57516,7 @@ const Select = ({
57428
57516
  ...props
57429
57517
  }) => {
57430
57518
  return /* @__PURE__ */ jsxs("div", {
57431
- className: styles$1p.container,
57519
+ className: styles$1q.container,
57432
57520
  children: [label2 && /* @__PURE__ */ jsx$1(Label$1, {
57433
57521
  htmlFor: id2,
57434
57522
  children: label2
@@ -57506,15 +57594,15 @@ const Templates = ({
57506
57594
  children: t2("REPLYTEMPLATES")
57507
57595
  }),
57508
57596
  children: [isLoading && /* @__PURE__ */ jsx$1("div", {
57509
- className: styles$1q.skeleton,
57597
+ className: styles$1r.skeleton,
57510
57598
  children: /* @__PURE__ */ jsx$1(SkeletonPage$1, {})
57511
57599
  }), error3 && /* @__PURE__ */ jsx$1("div", {
57512
- className: styles$1q.error,
57600
+ className: styles$1r.error,
57513
57601
  children: /* @__PURE__ */ jsx$1("h2", {
57514
57602
  children: error3
57515
57603
  })
57516
57604
  }), /* @__PURE__ */ jsxs("div", {
57517
- className: styles$1q.filters,
57605
+ className: styles$1r.filters,
57518
57606
  children: [/* @__PURE__ */ jsx$1(Select, {
57519
57607
  label: t2("REPLYTEMPLATETYPE"),
57520
57608
  options: typeOptions,
@@ -57527,7 +57615,7 @@ const Templates = ({
57527
57615
  onChange: handleOnChangeLanguage
57528
57616
  })]
57529
57617
  }), /* @__PURE__ */ jsx$1("div", {
57530
- className: styles$1q["templates--container"],
57618
+ className: styles$1r["templates--container"],
57531
57619
  children: templates == null ? void 0 : templates.map((template, index2) => /* @__PURE__ */ jsx$1(Template, {
57532
57620
  template,
57533
57621
  light: index2 % 2 === 1,
@@ -59069,22 +59157,22 @@ const reInit = (el, props) => {
59069
59157
  el.litePickerInstance.destroy();
59070
59158
  init$2(el, props);
59071
59159
  };
59072
- const inputWrapper = "_inputWrapper_ib1mx_1";
59073
- const input$4 = "_input_ib1mx_1";
59074
- const inputIcon = "_inputIcon_ib1mx_75";
59075
- const styles$1o = {
59160
+ const inputWrapper = "_inputWrapper_1vi07_1";
59161
+ const input$4 = "_input_1vi07_1";
59162
+ const inputIcon = "_inputIcon_1vi07_75";
59163
+ const styles$1p = {
59076
59164
  inputWrapper,
59077
59165
  input: input$4,
59078
- "input--r-md": "_input--r-md_ib1mx_37",
59079
- "input--r-sm": "_input--r-sm_ib1mx_42",
59080
- "input--with-icon-left": "_input--with-icon-left_ib1mx_47",
59081
- "input--with-icon-right": "_input--with-icon-right_ib1mx_50",
59082
- "input--filled": "_input--filled_ib1mx_53",
59083
- "input--borderless": "_input--borderless_ib1mx_56",
59084
- "input--rounded": "_input--rounded_ib1mx_60",
59166
+ "input--r-md": "_input--r-md_1vi07_37",
59167
+ "input--r-sm": "_input--r-sm_1vi07_42",
59168
+ "input--with-icon-left": "_input--with-icon-left_1vi07_47",
59169
+ "input--with-icon-right": "_input--with-icon-right_1vi07_50",
59170
+ "input--filled": "_input--filled_1vi07_53",
59171
+ "input--borderless": "_input--borderless_1vi07_56",
59172
+ "input--rounded": "_input--rounded_1vi07_60",
59085
59173
  inputIcon,
59086
- "inputIcon--p-left": "_inputIcon--p-left_ib1mx_84",
59087
- "inputIcon--p-right": "_inputIcon--p-right_ib1mx_87"
59174
+ "inputIcon--p-left": "_inputIcon--p-left_1vi07_84",
59175
+ "inputIcon--p-right": "_inputIcon--p-right_1vi07_87"
59088
59176
  };
59089
59177
  const Input$2 = React__default.forwardRef(({
59090
59178
  id: id2,
@@ -59129,7 +59217,7 @@ const Input$2 = React__default.forwardRef(({
59129
59217
  },
59130
59218
  children: [/* @__PURE__ */ jsx$1("input", {
59131
59219
  ref,
59132
- className: classNames$2(styles$1o["input"], styles$1o[`input--h-${heigth}`], styles$1o[`input--r-${radius}`], icon2 && styles$1o[`input--with-icon-${iconPosition}`], filled == true ? styles$1o[`input--filled`] : "", borderLess == true ? styles$1o[`input--borderless`] : "", rounded == true ? styles$1o[`input--rounded`] : ""),
59220
+ className: classNames$2(styles$1p["input"], styles$1p[`input--h-${heigth}`], styles$1p[`input--r-${radius}`], icon2 && styles$1p[`input--with-icon-${iconPosition}`], filled == true ? styles$1p[`input--filled`] : "", borderLess == true ? styles$1p[`input--borderless`] : "", rounded == true ? styles$1p[`input--rounded`] : ""),
59133
59221
  style: customStyles2,
59134
59222
  onChange: onChange2,
59135
59223
  id: id2,
@@ -59140,7 +59228,7 @@ const Input$2 = React__default.forwardRef(({
59140
59228
  disabled: disabled2,
59141
59229
  ...props
59142
59230
  }), icon2 && /* @__PURE__ */ jsx$1("div", {
59143
- className: classNames$2(styles$1o["inputIcon"], styles$1o[`inputIcon--p-${iconPosition}`], className ? className : ""),
59231
+ className: classNames$2(styles$1p["inputIcon"], styles$1p[`inputIcon--p-${iconPosition}`], className ? className : ""),
59144
59232
  children: /* @__PURE__ */ jsx$1(Icon, {
59145
59233
  icon: icon2,
59146
59234
  size: iconSize
@@ -59276,7 +59364,7 @@ const useOutsideClick = (ref, callback) => {
59276
59364
  const filterButton$1 = "_filterButton_c0yjo_1";
59277
59365
  const buttonClose$1 = "_buttonClose_c0yjo_21";
59278
59366
  const toolbar$2 = "_toolbar_c0yjo_38";
59279
- const styles$1n = {
59367
+ const styles$1o = {
59280
59368
  filterButton: filterButton$1,
59281
59369
  buttonClose: buttonClose$1,
59282
59370
  toolbar: toolbar$2,
@@ -59296,12 +59384,12 @@ const FiltersWrapper$1 = ({
59296
59384
  return /* @__PURE__ */ jsxs(Fragment, {
59297
59385
  children: [/* @__PURE__ */ jsxs("div", {
59298
59386
  ref,
59299
- className: classNames$2(styles$1n.toolbar, {
59300
- [styles$1n["toolbar--hide"]]: !showFilters
59387
+ className: classNames$2(styles$1o.toolbar, {
59388
+ [styles$1o["toolbar--hide"]]: !showFilters
59301
59389
  }),
59302
59390
  children: [/* @__PURE__ */ jsx$1("div", {
59303
- className: classNames$2(styles$1n.buttonClose, {
59304
- [styles$1n.hide]: !showFilters
59391
+ className: classNames$2(styles$1o.buttonClose, {
59392
+ [styles$1o.hide]: !showFilters
59305
59393
  }),
59306
59394
  children: /* @__PURE__ */ jsx$1(Icon, {
59307
59395
  icon: "close",
@@ -59313,7 +59401,7 @@ const FiltersWrapper$1 = ({
59313
59401
  })]
59314
59402
  }), /* @__PURE__ */ jsxs("button", {
59315
59403
  onClick: toogleFilter,
59316
- className: styles$1n.filterButton,
59404
+ className: styles$1o.filterButton,
59317
59405
  children: [/* @__PURE__ */ jsx$1(Icon, {
59318
59406
  icon: "descriptionShort",
59319
59407
  size: "small"
@@ -59468,18 +59556,18 @@ const Header$3 = ({
59468
59556
  })
59469
59557
  });
59470
59558
  };
59471
- const content$7 = "_content_6vryc_2";
59559
+ const content$6 = "_content_6vryc_2";
59472
59560
  const grid = "_grid_6vryc_8";
59473
59561
  const footer$8 = "_footer_6vryc_15";
59474
- const styles$1m = {
59475
- content: content$7,
59562
+ const styles$1n = {
59563
+ content: content$6,
59476
59564
  grid,
59477
59565
  footer: footer$8
59478
59566
  };
59479
59567
  const container$p = "_container_1xz3t_13";
59480
59568
  const item$6 = "_item_1xz3t_20";
59481
59569
  const itemfull = "_itemfull_1xz3t_26";
59482
- const styles$1l = {
59570
+ const styles$1m = {
59483
59571
  "animate-pulse": "_animate-pulse_1xz3t_1",
59484
59572
  container: container$p,
59485
59573
  item: item$6,
@@ -59487,21 +59575,21 @@ const styles$1l = {
59487
59575
  };
59488
59576
  const SkeletonPage = () => {
59489
59577
  return /* @__PURE__ */ jsx$1("div", {
59490
- className: styles$1l["animate-pulse"],
59578
+ className: styles$1m["animate-pulse"],
59491
59579
  children: /* @__PURE__ */ jsxs("div", {
59492
- className: styles$1l.container,
59580
+ className: styles$1m.container,
59493
59581
  children: [/* @__PURE__ */ jsx$1("div", {
59494
- className: styles$1l.item
59582
+ className: styles$1m.item
59495
59583
  }), /* @__PURE__ */ jsx$1("div", {
59496
- className: styles$1l.item
59584
+ className: styles$1m.item
59497
59585
  }), /* @__PURE__ */ jsx$1("div", {
59498
- className: styles$1l.itemfull
59586
+ className: styles$1m.itemfull
59499
59587
  })]
59500
59588
  })
59501
59589
  });
59502
59590
  };
59503
59591
  const container$o = "_container_1oqup_1";
59504
- const styles$1k = {
59592
+ const styles$1l = {
59505
59593
  container: container$o
59506
59594
  };
59507
59595
  const LayoutPage$1 = ({
@@ -59511,12 +59599,12 @@ const LayoutPage$1 = ({
59511
59599
  contentClassName
59512
59600
  }) => {
59513
59601
  return /* @__PURE__ */ jsxs("div", {
59514
- className: classNames$2(styles$1k.container, containerClassName, "mz-sdk-cst-pf"),
59602
+ className: classNames$2(styles$1l.container, containerClassName, "mz-sdk-cst-pf"),
59515
59603
  children: [header2 && /* @__PURE__ */ jsx$1("div", {
59516
59604
  className: "mz-header",
59517
59605
  children: header2
59518
59606
  }), /* @__PURE__ */ jsx$1(Container, {
59519
- className: classNames$2(styles$1k.content, contentClassName),
59607
+ className: classNames$2(styles$1l.content, contentClassName),
59520
59608
  children
59521
59609
  })]
59522
59610
  });
@@ -59589,7 +59677,7 @@ const ReviewsPage = ({
59589
59677
  });
59590
59678
  }
59591
59679
  return /* @__PURE__ */ jsx$1(LayoutPage$2, {
59592
- contentClassName: styles$1m.content,
59680
+ contentClassName: styles$1n.content,
59593
59681
  header: /* @__PURE__ */ jsx$1(Header$3, {
59594
59682
  onChangeFilter: setFilters,
59595
59683
  filters: filter2,
@@ -59604,7 +59692,7 @@ const ReviewsPage = ({
59604
59692
  value: [review, setReview],
59605
59693
  children: /* @__PURE__ */ jsxs("div", {
59606
59694
  children: [isLoadingInitialData && /* @__PURE__ */ jsx$1(SkeletonPage, {}), !isLoadingInitialData && /* @__PURE__ */ jsxs("div", {
59607
- className: styles$1m.grid,
59695
+ className: styles$1n.grid,
59608
59696
  children: [/* @__PURE__ */ jsxs("div", {
59609
59697
  children: [/* @__PURE__ */ jsx$1(Reviews, {
59610
59698
  reviews: issues,
@@ -59613,7 +59701,7 @@ const ReviewsPage = ({
59613
59701
  multiVenue,
59614
59702
  setShowTemplate: setShowReplyTemplates
59615
59703
  }), !isReachingEnd && /* @__PURE__ */ jsx$1("div", {
59616
- className: styles$1m.footer,
59704
+ className: styles$1n.footer,
59617
59705
  children: /* @__PURE__ */ jsx$1(Button$1, {
59618
59706
  type: "button",
59619
59707
  onClick: loadMore,
@@ -60625,7 +60713,7 @@ const container$n = "_container_1jgim_1";
60625
60713
  const button$5 = "_button_1jgim_14";
60626
60714
  const skeleton$1 = "_skeleton_1jgim_22";
60627
60715
  const item$5 = "_item_1jgim_33";
60628
- const styles$1j = {
60716
+ const styles$1k = {
60629
60717
  container: container$n,
60630
60718
  button: button$5,
60631
60719
  "button-disable": "_button-disable_1jgim_17",
@@ -60648,11 +60736,11 @@ const Table = ({
60648
60736
  width: "100%"
60649
60737
  },
60650
60738
  children: /* @__PURE__ */ jsxs(Card, {
60651
- classNameContent: classNames$2(styles$1j.container, classNameContent),
60739
+ classNameContent: classNames$2(styles$1k.container, classNameContent),
60652
60740
  className: classNameConatiner,
60653
60741
  header: Header2,
60654
60742
  children: [/* @__PURE__ */ jsxs("table", {
60655
- className: classNames$2(styles$1j.table, className),
60743
+ className: classNames$2(styles$1k.table, className),
60656
60744
  children: [/* @__PURE__ */ jsx$1("thead", {
60657
60745
  children: /* @__PURE__ */ jsx$1("tr", {
60658
60746
  children: header2.map((h2) => /* @__PURE__ */ jsx$1("th", {
@@ -60682,12 +60770,12 @@ const LoadingBody$1 = ({
60682
60770
  rows = 5,
60683
60771
  items = 5
60684
60772
  }) => /* @__PURE__ */ jsx$1("tbody", {
60685
- className: styles$1j.skeleton,
60773
+ className: styles$1k.skeleton,
60686
60774
  children: Object.keys(Array(rows).fill(1)).map((index2) => {
60687
60775
  return /* @__PURE__ */ jsx$1("tr", {
60688
60776
  children: Object.keys(Array(items).fill(1)).map((id2) => /* @__PURE__ */ jsx$1("td", {
60689
60777
  children: /* @__PURE__ */ jsx$1("div", {
60690
- className: styles$1j.item
60778
+ className: styles$1k.item
60691
60779
  })
60692
60780
  }, `${index2}-${id2}`))
60693
60781
  }, index2);
@@ -60712,11 +60800,11 @@ const TablePagination$1 = ({
60712
60800
  page,
60713
60801
  onChangePage
60714
60802
  });
60715
- const leftButtonsStyle = classNames$2(styles$1j.button, {
60716
- [styles$1j["button-disable"]]: page === minPage
60803
+ const leftButtonsStyle = classNames$2(styles$1k.button, {
60804
+ [styles$1k["button-disable"]]: page === minPage
60717
60805
  });
60718
- const rightButtonsStyle = classNames$2(styles$1j.button, {
60719
- [styles$1j["button-disable"]]: page === maxPage
60806
+ const rightButtonsStyle = classNames$2(styles$1k.button, {
60807
+ [styles$1k["button-disable"]]: page === maxPage
60720
60808
  });
60721
60809
  if (total === 0) {
60722
60810
  return null;
@@ -61759,7 +61847,7 @@ const formatParams$3 = ({ limit = 10, page = 1 }) => {
61759
61847
  };
61760
61848
  };
61761
61849
  const container$m = "_container_aljvu_1";
61762
- const styles$1i = {
61850
+ const styles$1j = {
61763
61851
  container: container$m
61764
61852
  };
61765
61853
  const roleOptions = [{
@@ -61775,7 +61863,7 @@ const FiltersBar = () => {
61775
61863
  title: "Filters"
61776
61864
  },
61777
61865
  children: /* @__PURE__ */ jsxs("div", {
61778
- className: styles$1i.container,
61866
+ className: styles$1j.container,
61779
61867
  children: [/* @__PURE__ */ jsx$1(NewSelect, {
61780
61868
  placeholder: "All roles",
61781
61869
  options: roleOptions,
@@ -61792,7 +61880,7 @@ const FiltersBar = () => {
61792
61880
  };
61793
61881
  const container$l = "_container_ntz7t_1";
61794
61882
  const table$1 = "_table_ntz7t_6";
61795
- const styles$1h = {
61883
+ const styles$1i = {
61796
61884
  container: container$l,
61797
61885
  table: table$1
61798
61886
  };
@@ -61814,8 +61902,8 @@ const Users = () => {
61814
61902
  totalElements: (data2 == null ? void 0 : data2.total) || 0,
61815
61903
  data: (data2 == null ? void 0 : data2.data) || [],
61816
61904
  header: TableHeader,
61817
- className: styles$1h.table,
61818
- classNameConatiner: styles$1h.container
61905
+ className: styles$1i.table,
61906
+ classNameConatiner: styles$1i.container
61819
61907
  })]
61820
61908
  });
61821
61909
  };
@@ -63778,7 +63866,7 @@ var Form$7 = /* @__PURE__ */ forwardRef(function(props, ref) {
63778
63866
  });
63779
63867
  Form$7.displayName = "Form";
63780
63868
  const text = "_text_1f1l5_1";
63781
- const styles$1g = {
63869
+ const styles$1h = {
63782
63870
  text
63783
63871
  };
63784
63872
  const FieldError = ({
@@ -63787,7 +63875,7 @@ const FieldError = ({
63787
63875
  }) => {
63788
63876
  if (touched && error3) {
63789
63877
  return /* @__PURE__ */ jsx$1("div", {
63790
- className: styles$1g.text,
63878
+ className: styles$1h.text,
63791
63879
  children: error3
63792
63880
  });
63793
63881
  }
@@ -63830,7 +63918,7 @@ const SelectField$1 = ({
63830
63918
  });
63831
63919
  };
63832
63920
  const input$3 = "_input_1xto5_1";
63833
- const styles$1f = {
63921
+ const styles$1g = {
63834
63922
  input: input$3,
63835
63923
  "input--r-md": "_input--r-md_1xto5_23",
63836
63924
  "input--r-sm": "_input--r-sm_1xto5_26"
@@ -63875,7 +63963,7 @@ const Input$1 = ({
63875
63963
  position: "relative"
63876
63964
  },
63877
63965
  children: /* @__PURE__ */ jsx$1("input", {
63878
- className: classNames$2(styles$1f["input"], styles$1f[`input--h-${heigth}`], styles$1f[`input--r-${radius}`]),
63966
+ className: classNames$2(styles$1g["input"], styles$1g[`input--h-${heigth}`], styles$1g[`input--r-${radius}`]),
63879
63967
  onChange: handleChange,
63880
63968
  id: id2,
63881
63969
  name: id2,
@@ -63900,14 +63988,14 @@ const TextInputField$1 = (props) => {
63900
63988
  });
63901
63989
  };
63902
63990
  const layoutForm = "_layoutForm_2ktmv_1";
63903
- const styles$1e = {
63991
+ const styles$1f = {
63904
63992
  layoutForm
63905
63993
  };
63906
63994
  const LayoutForm = ({
63907
63995
  children
63908
63996
  }) => {
63909
63997
  return /* @__PURE__ */ jsx$1("div", {
63910
- className: styles$1e.layoutForm,
63998
+ className: styles$1f.layoutForm,
63911
63999
  children
63912
64000
  });
63913
64001
  };
@@ -64112,7 +64200,7 @@ const formatData$h = (data2) => {
64112
64200
  const mainConatiner$3 = "_mainConatiner_1mt10_1";
64113
64201
  const container$k = "_container_1mt10_5";
64114
64202
  const item$4 = "_item_1mt10_23";
64115
- const styles$1d = {
64203
+ const styles$1e = {
64116
64204
  mainConatiner: mainConatiner$3,
64117
64205
  container: container$k,
64118
64206
  item: item$4
@@ -64120,7 +64208,7 @@ const styles$1d = {
64120
64208
  const label$1 = "_label_4sekk_1";
64121
64209
  const label__switch$1 = "_label__switch_4sekk_8";
64122
64210
  const input$2 = "_input_4sekk_30";
64123
- const styles$1c = {
64211
+ const styles$1d = {
64124
64212
  label: label$1,
64125
64213
  label__switch: label__switch$1,
64126
64214
  input: input$2
@@ -64144,7 +64232,7 @@ const Toggle$2 = ({
64144
64232
  }
64145
64233
  return /* @__PURE__ */ jsxs("div", {
64146
64234
  children: [/* @__PURE__ */ jsx$1("input", {
64147
- className: styles$1c.input,
64235
+ className: styles$1d.input,
64148
64236
  onChange: handleChange,
64149
64237
  id: id2,
64150
64238
  name: id2,
@@ -64152,9 +64240,9 @@ const Toggle$2 = ({
64152
64240
  checked
64153
64241
  }), /* @__PURE__ */ jsxs("label", {
64154
64242
  htmlFor: id2,
64155
- className: styles$1c.label,
64243
+ className: styles$1d.label,
64156
64244
  children: [/* @__PURE__ */ jsx$1("span", {
64157
- className: styles$1c.label__switch
64245
+ className: styles$1d.label__switch
64158
64246
  }), label2]
64159
64247
  })]
64160
64248
  });
@@ -64174,7 +64262,7 @@ const ToggleField = (props) => {
64174
64262
  });
64175
64263
  };
64176
64264
  const item$3 = "_item_1hc7u_1";
64177
- const styles$1b = {
64265
+ const styles$1c = {
64178
64266
  item: item$3
64179
64267
  };
64180
64268
  const Item$1 = ({
@@ -64183,7 +64271,7 @@ const Item$1 = ({
64183
64271
  onChange: onChange2
64184
64272
  }) => {
64185
64273
  return /* @__PURE__ */ jsxs("div", {
64186
- className: styles$1b.item,
64274
+ className: styles$1c.item,
64187
64275
  children: [name2, /* @__PURE__ */ jsx$1(ToggleField, {
64188
64276
  id: id2,
64189
64277
  onChange: onChange2
@@ -64195,7 +64283,7 @@ const email2 = "_email_1vq15_8";
64195
64283
  const button$4 = "_button_1vq15_20";
64196
64284
  const plus$1 = "_plus_1vq15_33";
64197
64285
  const footer$7 = "_footer_1vq15_42";
64198
- const styles$1a = {
64286
+ const styles$1b = {
64199
64287
  container: container$j,
64200
64288
  email: email2,
64201
64289
  button: button$4,
@@ -64204,7 +64292,7 @@ const styles$1a = {
64204
64292
  };
64205
64293
  const mainConatiner$2 = "_mainConatiner_75rsa_64";
64206
64294
  const header$4 = "_header_75rsa_75";
64207
- const content$6 = "_content_75rsa_81";
64295
+ const content$5 = "_content_75rsa_81";
64208
64296
  const sectionCard$1 = "_sectionCard_75rsa_95";
64209
64297
  const cardHeader$1 = "_cardHeader_75rsa_104";
64210
64298
  const cardTitle$1 = "_cardTitle_75rsa_107";
@@ -64214,10 +64302,10 @@ const cardFooter$1 = "_cardFooter_75rsa_119";
64214
64302
  const cardFooterContent$1 = "_cardFooterContent_75rsa_132";
64215
64303
  const sectionManagement$1 = "_sectionManagement_75rsa_145";
64216
64304
  const sectionFormRow$1 = "_sectionFormRow_75rsa_145";
64217
- const styles$19 = {
64305
+ const styles$1a = {
64218
64306
  mainConatiner: mainConatiner$2,
64219
64307
  header: header$4,
64220
- content: content$6,
64308
+ content: content$5,
64221
64309
  sectionCard: sectionCard$1,
64222
64310
  cardHeader: cardHeader$1,
64223
64311
  cardTitle: cardTitle$1,
@@ -64239,20 +64327,20 @@ const EmailsCard = ({
64239
64327
  t: t2
64240
64328
  } = useTranslation();
64241
64329
  return /* @__PURE__ */ jsx$1(Card, {
64242
- className: styles$19.sectionCard,
64330
+ className: styles$1a.sectionCard,
64243
64331
  children: /* @__PURE__ */ jsxs("div", {
64244
- className: styles$19.sectionCard,
64332
+ className: styles$1a.sectionCard,
64245
64333
  children: [/* @__PURE__ */ jsxs("div", {
64246
- className: styles$19.cardHeader,
64334
+ className: styles$1a.cardHeader,
64247
64335
  children: [/* @__PURE__ */ jsx$1("h2", {
64248
- className: styles$19.cardTitle,
64336
+ className: styles$1a.cardTitle,
64249
64337
  children: t2("EMAILS")
64250
64338
  }), /* @__PURE__ */ jsx$1("p", {
64251
- className: styles$19.cardDesc,
64339
+ className: styles$1a.cardDesc,
64252
64340
  children: t2("EMAILS_DESC")
64253
64341
  })]
64254
64342
  }), /* @__PURE__ */ jsxs("div", {
64255
- className: styles$19.cardBody,
64343
+ className: styles$1a.cardBody,
64256
64344
  children: [(data2 == null ? void 0 : data2.emails) && data2.emails.length > 0 && /* @__PURE__ */ jsx$1("div", {
64257
64345
  style: {
64258
64346
  display: "flex",
@@ -64275,9 +64363,9 @@ const EmailsCard = ({
64275
64363
  }), t2("NOTDEFINED")]
64276
64364
  })]
64277
64365
  }), canEdit && /* @__PURE__ */ jsxs("div", {
64278
- className: styles$19.cardFooter,
64366
+ className: styles$1a.cardFooter,
64279
64367
  children: [/* @__PURE__ */ jsx$1("hr", {}), /* @__PURE__ */ jsx$1("div", {
64280
- className: styles$19.cardFooterContent,
64368
+ className: styles$1a.cardFooterContent,
64281
64369
  onClick: () => {
64282
64370
  setIsOpenDrawer(true);
64283
64371
  },
@@ -64287,17 +64375,17 @@ const EmailsCard = ({
64287
64375
  })
64288
64376
  });
64289
64377
  };
64290
- const drawer = "_drawer_1laol_1";
64291
- const drawer__overlay = "_drawer__overlay_1laol_18";
64292
- const drawer__content = "_drawer__content_1laol_34";
64293
- const drawer__header = "_drawer__header_1laol_42";
64294
- const drawer__header__content = "_drawer__header__content_1laol_50";
64295
- const drawer__header__content__desc = "_drawer__header__content__desc_1laol_56";
64296
- const drawer__close = "_drawer__close_1laol_60";
64297
- const drawer__body = "_drawer__body_1laol_71";
64298
- const styles$18 = {
64378
+ const drawer = "_drawer_nrlje_1";
64379
+ const drawer__overlay = "_drawer__overlay_nrlje_18";
64380
+ const drawer__content = "_drawer__content_nrlje_34";
64381
+ const drawer__header = "_drawer__header_nrlje_42";
64382
+ const drawer__header__content = "_drawer__header__content_nrlje_50";
64383
+ const drawer__header__content__desc = "_drawer__header__content__desc_nrlje_56";
64384
+ const drawer__close = "_drawer__close_nrlje_61";
64385
+ const drawer__body = "_drawer__body_nrlje_72";
64386
+ const styles$19 = {
64299
64387
  drawer,
64300
- "drawer--open": "_drawer--open_1laol_14",
64388
+ "drawer--open": "_drawer--open_nrlje_14",
64301
64389
  drawer__overlay,
64302
64390
  drawer__content,
64303
64391
  drawer__header,
@@ -64315,40 +64403,48 @@ const Drawer = ({
64315
64403
  width = 500
64316
64404
  }) => {
64317
64405
  return /* @__PURE__ */ jsxs("div", {
64318
- className: classNames$2(styles$18.drawer, isOpen ? styles$18[`drawer--open`] : ""),
64406
+ className: classNames$2(styles$19.drawer, isOpen ? styles$19[`drawer--open`] : ""),
64319
64407
  children: [isOpen && /* @__PURE__ */ jsx$1("div", {
64320
- className: styles$18.drawer__overlay,
64408
+ className: styles$19.drawer__overlay,
64321
64409
  onClick: onClose2
64322
64410
  }), /* @__PURE__ */ jsxs("div", {
64323
- className: styles$18.drawer__content,
64411
+ className: styles$19.drawer__content,
64324
64412
  children: [/* @__PURE__ */ jsxs("div", {
64325
- className: styles$18.drawer__header,
64413
+ className: styles$19.drawer__header,
64326
64414
  children: [/* @__PURE__ */ jsxs("div", {
64327
- className: styles$18.drawer__header__content,
64415
+ className: styles$19.drawer__header__content,
64328
64416
  children: [/* @__PURE__ */ jsx$1("h3", {
64329
64417
  children: title2
64330
64418
  }), titleDesc && /* @__PURE__ */ jsx$1("p", {
64331
- className: styles$18.drawer__header__content__desc,
64419
+ className: styles$19.drawer__header__content__desc,
64332
64420
  children: titleDesc
64333
64421
  })]
64334
64422
  }), /* @__PURE__ */ jsx$1("button", {
64335
- className: styles$18.drawer__close,
64423
+ className: styles$19.drawer__close,
64336
64424
  onClick: onClose2,
64337
64425
  children: "×"
64338
64426
  })]
64339
64427
  }), /* @__PURE__ */ jsx$1("div", {
64340
- className: styles$18.drawer__body,
64428
+ className: styles$19.drawer__body,
64341
64429
  children
64342
64430
  })]
64343
64431
  })]
64344
64432
  });
64345
64433
  };
64434
+ const infoText = "_infoText_1m2uc_1";
64435
+ const styles$18 = {
64436
+ infoText
64437
+ };
64346
64438
  const TextInputField = ({
64347
64439
  control,
64348
64440
  name: name2,
64349
64441
  onChangeE,
64442
+ infoText: infoText2,
64350
64443
  ...props
64351
64444
  }) => {
64445
+ const {
64446
+ t: t2
64447
+ } = useTranslation();
64352
64448
  return /* @__PURE__ */ jsx$1(Controller, {
64353
64449
  control,
64354
64450
  name: name2,
@@ -64374,6 +64470,9 @@ const TextInputField = ({
64374
64470
  },
64375
64471
  onBlur,
64376
64472
  ...props
64473
+ }), infoText2 && /* @__PURE__ */ jsx$1("p", {
64474
+ className: styles$18.infoText,
64475
+ children: t2(infoText2)
64377
64476
  }), error3 && /* @__PURE__ */ jsx$1(FieldError$1, {
64378
64477
  error: error3
64379
64478
  })]
@@ -64451,7 +64550,7 @@ const EmailEditDrawer = ({
64451
64550
  children: /* @__PURE__ */ jsxs("div", {
64452
64551
  children: [/* @__PURE__ */ jsx$1("div", {
64453
64552
  children: fields.map((item2, index2) => /* @__PURE__ */ jsxs("div", {
64454
- className: styles$19.sectionFormRow,
64553
+ className: styles$1a.sectionFormRow,
64455
64554
  style: {
64456
64555
  justifyContent: "flex-start"
64457
64556
  },
@@ -64504,7 +64603,7 @@ const EmailEditDrawer = ({
64504
64603
  })
64505
64604
  });
64506
64605
  };
64507
- const index$c = ({
64606
+ const index$d = ({
64508
64607
  venueId,
64509
64608
  data: data2,
64510
64609
  reload,
@@ -64512,7 +64611,7 @@ const index$c = ({
64512
64611
  }) => {
64513
64612
  const [isOpenDrawer, setIsOpenDrawer] = useState(false);
64514
64613
  return /* @__PURE__ */ jsxs("div", {
64515
- className: styles$19.sectionManagement,
64614
+ className: styles$1a.sectionManagement,
64516
64615
  children: [/* @__PURE__ */ jsx$1(EmailsCard, {
64517
64616
  isOpenDrawer,
64518
64617
  setIsOpenDrawer,
@@ -64655,18 +64754,18 @@ const ReservationsCard = ({
64655
64754
  }
64656
64755
  }, [data2]);
64657
64756
  return /* @__PURE__ */ jsxs(Card, {
64658
- className: styles$19.sectionCard,
64757
+ className: styles$1a.sectionCard,
64659
64758
  children: [/* @__PURE__ */ jsxs("div", {
64660
- className: styles$19.cardHeader,
64759
+ className: styles$1a.cardHeader,
64661
64760
  children: [/* @__PURE__ */ jsx$1("h2", {
64662
- className: styles$19.cardTitle,
64761
+ className: styles$1a.cardTitle,
64663
64762
  children: t2("RESERVATIONS")
64664
64763
  }), /* @__PURE__ */ jsx$1("p", {
64665
- className: styles$19.cardDesc,
64764
+ className: styles$1a.cardDesc,
64666
64765
  children: t2("RESERVATIONS_DESC")
64667
64766
  })]
64668
64767
  }), /* @__PURE__ */ jsx$1("div", {
64669
- className: styles$19.cardBody,
64768
+ className: styles$1a.cardBody,
64670
64769
  children: data2 && /* @__PURE__ */ jsxs("div", {
64671
64770
  style: {
64672
64771
  display: "flex",
@@ -64720,14 +64819,14 @@ const ReservationsCard = ({
64720
64819
  })]
64721
64820
  });
64722
64821
  };
64723
- const index$b = ({
64822
+ const index$c = ({
64724
64823
  venueId,
64725
64824
  data: data2,
64726
64825
  reload,
64727
64826
  canEdit
64728
64827
  }) => {
64729
64828
  return /* @__PURE__ */ jsx$1("div", {
64730
- className: styles$19.sectionManagement,
64829
+ className: styles$1a.sectionManagement,
64731
64830
  children: /* @__PURE__ */ jsx$1(ReservationsCard, {
64732
64831
  data: data2,
64733
64832
  reload,
@@ -64775,18 +64874,18 @@ const ReviewsCard = ({
64775
64874
  }
64776
64875
  }, [data2]);
64777
64876
  return /* @__PURE__ */ jsxs(Card, {
64778
- className: styles$19.sectionCard,
64877
+ className: styles$1a.sectionCard,
64779
64878
  children: [/* @__PURE__ */ jsxs("div", {
64780
- className: styles$19.cardHeader,
64879
+ className: styles$1a.cardHeader,
64781
64880
  children: [/* @__PURE__ */ jsx$1("h2", {
64782
- className: styles$19.cardTitle,
64881
+ className: styles$1a.cardTitle,
64783
64882
  children: t2("REVIEWS")
64784
64883
  }), /* @__PURE__ */ jsx$1("p", {
64785
- className: styles$19.cardDesc,
64884
+ className: styles$1a.cardDesc,
64786
64885
  children: t2("REVIEWS_DESC")
64787
64886
  })]
64788
64887
  }), /* @__PURE__ */ jsx$1("div", {
64789
- className: styles$19.cardBody,
64888
+ className: styles$1a.cardBody,
64790
64889
  children: data2 && /* @__PURE__ */ jsxs("div", {
64791
64890
  style: {
64792
64891
  display: "flex",
@@ -64826,14 +64925,14 @@ const ReviewsCard = ({
64826
64925
  })]
64827
64926
  });
64828
64927
  };
64829
- const index$a = ({
64928
+ const index$b = ({
64830
64929
  venueId,
64831
64930
  data: data2,
64832
64931
  reload,
64833
64932
  canEdit
64834
64933
  }) => {
64835
64934
  return /* @__PURE__ */ jsx$1("div", {
64836
- className: styles$19.sectionManagement,
64935
+ className: styles$1a.sectionManagement,
64837
64936
  children: /* @__PURE__ */ jsx$1(ReviewsCard, {
64838
64937
  data: data2,
64839
64938
  reload,
@@ -64882,18 +64981,18 @@ const ReviewsReportCard = ({
64882
64981
  }
64883
64982
  }, [data2]);
64884
64983
  return /* @__PURE__ */ jsxs(Card, {
64885
- className: styles$19.sectionCard,
64984
+ className: styles$1a.sectionCard,
64886
64985
  children: [/* @__PURE__ */ jsxs("div", {
64887
- className: styles$19.cardHeader,
64986
+ className: styles$1a.cardHeader,
64888
64987
  children: [/* @__PURE__ */ jsx$1("h2", {
64889
- className: styles$19.cardTitle,
64988
+ className: styles$1a.cardTitle,
64890
64989
  children: t2("REVIEWSREPORT")
64891
64990
  }), /* @__PURE__ */ jsx$1("p", {
64892
- className: styles$19.cardDesc,
64991
+ className: styles$1a.cardDesc,
64893
64992
  children: t2("REVIEWSREPORT_DESC")
64894
64993
  })]
64895
64994
  }), /* @__PURE__ */ jsx$1("div", {
64896
- className: styles$19.cardBody,
64995
+ className: styles$1a.cardBody,
64897
64996
  children: data2 && /* @__PURE__ */ jsxs("div", {
64898
64997
  style: {
64899
64998
  display: "flex",
@@ -64947,14 +65046,14 @@ const ReviewsReportCard = ({
64947
65046
  })]
64948
65047
  });
64949
65048
  };
64950
- const index$9 = ({
65049
+ const index$a = ({
64951
65050
  venueId,
64952
65051
  data: data2,
64953
65052
  reload,
64954
65053
  canEdit
64955
65054
  }) => {
64956
65055
  return /* @__PURE__ */ jsx$1("div", {
64957
- className: styles$19.sectionManagement,
65056
+ className: styles$1a.sectionManagement,
64958
65057
  children: /* @__PURE__ */ jsx$1(ReviewsReportCard, {
64959
65058
  data: data2,
64960
65059
  reload,
@@ -64988,30 +65087,30 @@ function Main$2({
64988
65087
  setCurrentVenue(venueId);
64989
65088
  }, [venueId]);
64990
65089
  return /* @__PURE__ */ jsxs("div", {
64991
- className: styles$19.mainConatiner,
65090
+ className: styles$1a.mainConatiner,
64992
65091
  children: [/* @__PURE__ */ jsx$1("div", {
64993
- className: styles$19.header,
65092
+ className: styles$1a.header,
64994
65093
  children: /* @__PURE__ */ jsx$1("h2", {
64995
65094
  children: t2("NOTIFICATIONS")
64996
65095
  })
64997
65096
  }), /* @__PURE__ */ jsxs("div", {
64998
- className: styles$19.content,
64999
- children: [/* @__PURE__ */ jsx$1(index$c, {
65097
+ className: styles$1a.content,
65098
+ children: [/* @__PURE__ */ jsx$1(index$d, {
65000
65099
  venueId: currentVenue,
65001
65100
  data: data2,
65002
65101
  reload,
65003
65102
  canEdit
65004
- }), /* @__PURE__ */ jsx$1(index$b, {
65103
+ }), /* @__PURE__ */ jsx$1(index$c, {
65005
65104
  venueId: currentVenue,
65006
65105
  data: data2,
65007
65106
  reload,
65008
65107
  canEdit
65009
- }), /* @__PURE__ */ jsx$1(index$a, {
65108
+ }), /* @__PURE__ */ jsx$1(index$b, {
65010
65109
  venueId: currentVenue,
65011
65110
  data: data2,
65012
65111
  reload,
65013
65112
  canEdit
65014
- }), /* @__PURE__ */ jsx$1(index$9, {
65113
+ }), /* @__PURE__ */ jsx$1(index$a, {
65015
65114
  venueId: currentVenue,
65016
65115
  data: data2,
65017
65116
  reload,
@@ -65101,9 +65200,9 @@ const EmailForm = ({
65101
65200
  onSubmit: handleSubmit(onSubmitForm),
65102
65201
  children: /* @__PURE__ */ jsxs("div", {
65103
65202
  children: [fields && fields.length > 0 ? fields.map((item2, index2) => /* @__PURE__ */ jsxs("div", {
65104
- className: styles$1a.container,
65203
+ className: styles$1b.container,
65105
65204
  children: [/* @__PURE__ */ jsx$1("div", {
65106
- className: styles$1a.email,
65205
+ className: styles$1b.email,
65107
65206
  children: /* @__PURE__ */ jsx$1(TextInputField, {
65108
65207
  control,
65109
65208
  id: `emails.${index2}`,
@@ -65113,19 +65212,19 @@ const EmailForm = ({
65113
65212
  radius: "sm"
65114
65213
  })
65115
65214
  }), index2 > 0 && /* @__PURE__ */ jsx$1("button", {
65116
- className: styles$1a.button,
65215
+ className: styles$1b.button,
65117
65216
  type: "button",
65118
65217
  onClick: () => remove(index2),
65119
65218
  children: /* @__PURE__ */ jsx$1("span", {
65120
- className: styles$1a.plus,
65219
+ className: styles$1b.plus,
65121
65220
  children: "-"
65122
65221
  })
65123
65222
  }), /* @__PURE__ */ jsx$1("button", {
65124
- className: styles$1a.button,
65223
+ className: styles$1b.button,
65125
65224
  type: "button",
65126
65225
  onClick: () => append2(""),
65127
65226
  children: /* @__PURE__ */ jsx$1("span", {
65128
- className: styles$1a.plus,
65227
+ className: styles$1b.plus,
65129
65228
  children: "+"
65130
65229
  })
65131
65230
  })]
@@ -65136,7 +65235,7 @@ const EmailForm = ({
65136
65235
  onClick: () => append2(""),
65137
65236
  children: t2("ADDANEMAIL")
65138
65237
  }), /* @__PURE__ */ jsx$1("div", {
65139
- className: styles$1a.footer,
65238
+ className: styles$1b.footer,
65140
65239
  children: /* @__PURE__ */ jsx$1(Button$1, {
65141
65240
  size: "small",
65142
65241
  type: "submit",
@@ -65392,7 +65491,7 @@ const Notifications = ({
65392
65491
  });
65393
65492
  }
65394
65493
  return /* @__PURE__ */ jsxs(LayoutPage$1, {
65395
- containerClassName: styles$1d.mainConatiner,
65494
+ containerClassName: styles$1e.mainConatiner,
65396
65495
  children: [/* @__PURE__ */ jsx$1(Formik, {
65397
65496
  initialValues: data2,
65398
65497
  onSubmit: handleSubmit,
@@ -65402,7 +65501,7 @@ const Notifications = ({
65402
65501
  }) => {
65403
65502
  var _a3, _b2;
65404
65503
  return /* @__PURE__ */ jsxs("div", {
65405
- className: styles$1d.container,
65504
+ className: styles$1e.container,
65406
65505
  children: [/* @__PURE__ */ jsxs(Card$1, {
65407
65506
  header: {
65408
65507
  title: t2("REVIEWSREPORT")
@@ -65453,7 +65552,7 @@ const Notifications = ({
65453
65552
  children: t2("Get all the notifications on these emails.")
65454
65553
  }), /* @__PURE__ */ jsx$1("br", {}), data2 == null ? void 0 : data2.emails.map((email3, index2) => {
65455
65554
  return /* @__PURE__ */ jsxs("div", {
65456
- className: styles$1d.item,
65555
+ className: styles$1e.item,
65457
65556
  children: [/* @__PURE__ */ jsx$1("div", {
65458
65557
  children: /* @__PURE__ */ jsx$1(Icon, {
65459
65558
  icon: "mail"
@@ -65461,7 +65560,7 @@ const Notifications = ({
65461
65560
  }), email3 || t2("NOTDEFINED")]
65462
65561
  }, index2);
65463
65562
  }), !(data2 == null ? void 0 : data2.emails) && /* @__PURE__ */ jsxs("div", {
65464
- className: styles$1d.item,
65563
+ className: styles$1e.item,
65465
65564
  children: [/* @__PURE__ */ jsx$1("div", {
65466
65565
  children: /* @__PURE__ */ jsx$1(Icon, {
65467
65566
  icon: "mail"
@@ -65477,7 +65576,7 @@ const Notifications = ({
65477
65576
  children: [/* @__PURE__ */ jsx$1("p", {
65478
65577
  children: t2("Ai prompt for generate reviews.")
65479
65578
  }), /* @__PURE__ */ jsx$1("br", {}), /* @__PURE__ */ jsxs("div", {
65480
- className: styles$1d.item,
65579
+ className: styles$1e.item,
65481
65580
  children: [/* @__PURE__ */ jsx$1("div", {
65482
65581
  children: /* @__PURE__ */ jsx$1(Icon, {
65483
65582
  icon: "robot"
@@ -89287,12 +89386,12 @@ const renderActiveShape = ({
89287
89386
  });
89288
89387
  };
89289
89388
  const container$i = "_container_6pm34_1";
89290
- const content$5 = "_content_6pm34_7";
89389
+ const content$4 = "_content_6pm34_7";
89291
89390
  const item$2 = "_item_6pm34_13";
89292
89391
  const compare = "_compare_6pm34_19";
89293
89392
  const styles$12 = {
89294
89393
  container: container$i,
89295
- content: content$5,
89394
+ content: content$4,
89296
89395
  item: item$2,
89297
89396
  compare
89298
89397
  };
@@ -89388,7 +89487,7 @@ const header$3 = "_header_18cx4_9";
89388
89487
  const value$1 = "_value_18cx4_14";
89389
89488
  const comparison$1 = "_comparison_18cx4_20";
89390
89489
  const container$h = "_container_18cx4_25";
89391
- const content$4 = "_content_18cx4_29";
89490
+ const content$3 = "_content_18cx4_29";
89392
89491
  const title$2 = "_title_18cx4_33";
89393
89492
  const styles$11 = {
89394
89493
  success: success$1,
@@ -89397,7 +89496,7 @@ const styles$11 = {
89397
89496
  value: value$1,
89398
89497
  comparison: comparison$1,
89399
89498
  container: container$h,
89400
- content: content$4,
89499
+ content: content$3,
89401
89500
  title: title$2
89402
89501
  };
89403
89502
  const container$g = "_container_1vji6_13";
@@ -89740,7 +89839,7 @@ const ActionsChart = ({
89740
89839
  const listingAnalyticsContainer = "_listingAnalyticsContainer_15v81_1";
89741
89840
  const h3 = "_h3_15v81_22";
89742
89841
  const center = "_center_15v81_28";
89743
- const content$3 = "_content_15v81_42";
89842
+ const content$2 = "_content_15v81_42";
89744
89843
  const errorContainer = "_errorContainer_15v81_49";
89745
89844
  const venueSelectorContainer = "_venueSelectorContainer_15v81_54";
89746
89845
  const venueSelector$1 = "_venueSelector_15v81_54";
@@ -89748,7 +89847,7 @@ const styles$$ = {
89748
89847
  listingAnalyticsContainer,
89749
89848
  h3,
89750
89849
  center,
89751
- content: content$3,
89850
+ content: content$2,
89752
89851
  errorContainer,
89753
89852
  venueSelectorContainer,
89754
89853
  venueSelector: venueSelector$1
@@ -90240,7 +90339,7 @@ const header$2 = "_header_18cx4_9";
90240
90339
  const value = "_value_18cx4_14";
90241
90340
  const comparison = "_comparison_18cx4_20";
90242
90341
  const container$f = "_container_18cx4_25";
90243
- const content$2 = "_content_18cx4_29";
90342
+ const content$1 = "_content_18cx4_29";
90244
90343
  const title = "_title_18cx4_33";
90245
90344
  const styles$Z = {
90246
90345
  success,
@@ -90249,7 +90348,7 @@ const styles$Z = {
90249
90348
  value,
90250
90349
  comparison,
90251
90350
  container: container$f,
90252
- content: content$2,
90351
+ content: content$1,
90253
90352
  title
90254
90353
  };
90255
90354
  const container$e = "_container_1vji6_13";
@@ -121146,7 +121245,6 @@ const actionstoConnect = {
121146
121245
  TripAdvisorConnect: t("AREYOUSURECONNECTTOTRIPADVISOR")
121147
121246
  };
121148
121247
  const getAction = (module2 = "") => {
121149
- console.log(module2, "module");
121150
121248
  return actionstoDisconnect[module2] || actionstoConnect[module2] || "";
121151
121249
  };
121152
121250
  const getLastVenueManaged = () => localStorage.getItem("rb_lastManagedLocation");
@@ -122928,9 +123026,9 @@ const showStatsOptions = [
122928
123026
  { value: 1, label: t("BOOKINGS") },
122929
123027
  { value: 2, label: t("COVERS") }
122930
123028
  ];
122931
- const content$1 = "_content_7cjx9_1";
123029
+ const content = "_content_7cjx9_1";
122932
123030
  const styles$c = {
122933
- content: content$1
123031
+ content
122934
123032
  };
122935
123033
  const LoadingBarChart = ({ data: data2, type: type4, dateType }) => {
122936
123034
  const [isLoading, setIsLoading] = useState(true);
@@ -124240,53 +124338,53 @@ const ReservationsAnalytics = ({
124240
124338
  })]
124241
124339
  });
124242
124340
  };
124243
- const mainConatiner$1 = "_mainConatiner_1qp4s_7";
124244
- const mainTableContainer = "_mainTableContainer_1qp4s_17";
124245
- const mainSidebarContainer = "_mainSidebarContainer_1qp4s_25";
124246
- const headerReferece = "_headerReferece_1qp4s_35";
124247
- const sidebarCloseIcon = "_sidebarCloseIcon_1qp4s_38";
124248
- const headerContainer = "_headerContainer_1qp4s_90";
124249
- const searchContainer = "_searchContainer_1qp4s_96";
124250
- const buttonList = "_buttonList_1qp4s_107";
124251
- const buttonItem = "_buttonItem_1qp4s_112";
124252
- const addReservationButton = "_addReservationButton_1qp4s_121";
124253
- const tableTopHeader = "_tableTopHeader_1qp4s_130";
124254
- const tableTopHeaderContent = "_tableTopHeaderContent_1qp4s_144";
124255
- const tableTopHeaderContentText = "_tableTopHeaderContentText_1qp4s_151";
124256
- const tableRowContainer = "_tableRowContainer_1qp4s_160";
124257
- const tableRowCard = "_tableRowCard_1qp4s_166";
124258
- const fadeInX = "_fadeInX_1qp4s_1";
124259
- const canceled = "_canceled_1qp4s_174";
124260
- const noData = "_noData_1qp4s_177";
124261
- const tableRowHour = "_tableRowHour_1qp4s_184";
124262
- const tableRowHourText = "_tableRowHourText_1qp4s_200";
124263
- const hours = "_hours_1qp4s_208";
124264
- const tableRowContent = "_tableRowContent_1qp4s_214";
124265
- const rowImage = "_rowImage_1qp4s_229";
124266
- const rowContactContainer = "_rowContactContainer_1qp4s_243";
124267
- const rowContactText = "_rowContactText_1qp4s_255";
124268
- const rowContactPhone = "_rowContactPhone_1qp4s_261";
124269
- const rowSectionContainer = "_rowSectionContainer_1qp4s_268";
124270
- const rowSection = "_rowSection_1qp4s_268";
124271
- const rowSectionText = "_rowSectionText_1qp4s_281";
124272
- const rowSectionSecText = "_rowSectionSecText_1qp4s_287";
124273
- const rowActionButton = "_rowActionButton_1qp4s_294";
124274
- const bookingInfoContainer = "_bookingInfoContainer_1qp4s_307";
124275
- const bookingInfoCardColumn = "_bookingInfoCardColumn_1qp4s_312";
124276
- const bookingInfoCardContainer = "_bookingInfoCardContainer_1qp4s_320";
124277
- const bookingInfoCard = "_bookingInfoCard_1qp4s_312";
124278
- const bookingInfoCardContent = "_bookingInfoCardContent_1qp4s_332";
124279
- const bookingInfoCardTitle = "_bookingInfoCardTitle_1qp4s_338";
124280
- const bookingInfoCardText = "_bookingInfoCardText_1qp4s_341";
124341
+ const mainConatiner$1 = "_mainConatiner_dbqrh_7";
124342
+ const mainTableContainer = "_mainTableContainer_dbqrh_17";
124343
+ const mainSidebarContainer = "_mainSidebarContainer_dbqrh_25";
124344
+ const headerReferece = "_headerReferece_dbqrh_35";
124345
+ const sidebarCloseIcon = "_sidebarCloseIcon_dbqrh_38";
124346
+ const headerContainer = "_headerContainer_dbqrh_90";
124347
+ const searchContainer = "_searchContainer_dbqrh_96";
124348
+ const buttonList = "_buttonList_dbqrh_107";
124349
+ const buttonItem = "_buttonItem_dbqrh_112";
124350
+ const addReservationButton = "_addReservationButton_dbqrh_121";
124351
+ const tableTopHeader = "_tableTopHeader_dbqrh_130";
124352
+ const tableTopHeaderContent = "_tableTopHeaderContent_dbqrh_144";
124353
+ const tableTopHeaderContentText = "_tableTopHeaderContentText_dbqrh_151";
124354
+ const tableRowContainer = "_tableRowContainer_dbqrh_160";
124355
+ const tableRowCard = "_tableRowCard_dbqrh_166";
124356
+ const fadeInX = "_fadeInX_dbqrh_1";
124357
+ const canceled = "_canceled_dbqrh_174";
124358
+ const noData = "_noData_dbqrh_177";
124359
+ const tableRowHour = "_tableRowHour_dbqrh_184";
124360
+ const tableRowHourText = "_tableRowHourText_dbqrh_200";
124361
+ const hours = "_hours_dbqrh_208";
124362
+ const tableRowContent = "_tableRowContent_dbqrh_214";
124363
+ const rowImage = "_rowImage_dbqrh_229";
124364
+ const rowContactContainer = "_rowContactContainer_dbqrh_243";
124365
+ const rowContactText = "_rowContactText_dbqrh_255";
124366
+ const rowContactPhone = "_rowContactPhone_dbqrh_261";
124367
+ const rowSectionContainer = "_rowSectionContainer_dbqrh_268";
124368
+ const rowSection = "_rowSection_dbqrh_268";
124369
+ const rowSectionText = "_rowSectionText_dbqrh_281";
124370
+ const rowSectionSecText = "_rowSectionSecText_dbqrh_287";
124371
+ const rowActionButton = "_rowActionButton_dbqrh_294";
124372
+ const bookingInfoContainer = "_bookingInfoContainer_dbqrh_307";
124373
+ const bookingInfoCardColumn = "_bookingInfoCardColumn_dbqrh_312";
124374
+ const bookingInfoCardContainer = "_bookingInfoCardContainer_dbqrh_320";
124375
+ const bookingInfoCard = "_bookingInfoCard_dbqrh_312";
124376
+ const bookingInfoCardContent = "_bookingInfoCardContent_dbqrh_332";
124377
+ const bookingInfoCardTitle = "_bookingInfoCardTitle_dbqrh_338";
124378
+ const bookingInfoCardText = "_bookingInfoCardText_dbqrh_341";
124281
124379
  const styles$8 = {
124282
124380
  mainConatiner: mainConatiner$1,
124283
124381
  mainTableContainer,
124284
124382
  mainSidebarContainer,
124285
124383
  headerReferece,
124286
124384
  sidebarCloseIcon,
124287
- "mainSidebarContainer--open": "_mainSidebarContainer--open_1qp4s_46",
124288
- "mainSidebarContainer--close": "_mainSidebarContainer--close_1qp4s_52",
124289
- "sidebarCloseIcon--show": "_sidebarCloseIcon--show_1qp4s_60",
124385
+ "mainSidebarContainer--open": "_mainSidebarContainer--open_dbqrh_46",
124386
+ "mainSidebarContainer--close": "_mainSidebarContainer--close_dbqrh_52",
124387
+ "sidebarCloseIcon--show": "_sidebarCloseIcon--show_dbqrh_60",
124290
124388
  headerContainer,
124291
124389
  searchContainer,
124292
124390
  buttonList,
@@ -124676,7 +124774,7 @@ const DatePicker = ({
124676
124774
  renderExtraFooter
124677
124775
  });
124678
124776
  };
124679
- const index$8 = ({
124777
+ const index$9 = ({
124680
124778
  filters: filters2,
124681
124779
  setFilters,
124682
124780
  currentVenue,
@@ -125148,7 +125246,7 @@ const TableBody = ({
125148
125246
  })
125149
125247
  });
125150
125248
  };
125151
- const index$7 = ({
125249
+ const index$8 = ({
125152
125250
  data: data2,
125153
125251
  filters: filters2,
125154
125252
  filtersData,
@@ -125956,7 +126054,7 @@ const AddBooking = async ({
125956
126054
  );
125957
126055
  return { data: "created" };
125958
126056
  };
125959
- const index$6 = ({
126057
+ const index$7 = ({
125960
126058
  filtersData,
125961
126059
  venueId
125962
126060
  }) => {
@@ -126065,7 +126163,6 @@ const index$6 = ({
126065
126163
  return;
126066
126164
  }
126067
126165
  if (!selectedBooking) {
126068
- console.log("data", data22);
126069
126166
  const toSend = {
126070
126167
  bookingChannel: (_a2 = data22 == null ? void 0 : data22.source) == null ? void 0 : _a2.value,
126071
126168
  partySize: (_b = data22 == null ? void 0 : data22.partySize) == null ? void 0 : _b.value,
@@ -126186,7 +126283,7 @@ const index$6 = ({
126186
126283
  }, [selectedBooking]);
126187
126284
  useEffect(() => {
126188
126285
  if (date4) {
126189
- const weekDay = moment(date4).format("dddd").toLocaleLowerCase();
126286
+ const weekDay = moment(date4).locale("en").format("dddd").toLowerCase();
126190
126287
  const timeSlots = timeByDayOptions.find((item2) => item2.weekday === weekDay);
126191
126288
  if (timeSlots) {
126192
126289
  setTimeOptions(timeSlots.hours.map((item2) => ({
@@ -126613,13 +126710,13 @@ function MainComponent({
126613
126710
  className: styles$8.mainConatiner,
126614
126711
  children: [/* @__PURE__ */ jsxs("div", {
126615
126712
  className: styles$8.mainTableContainer,
126616
- children: [/* @__PURE__ */ jsx$1(index$8, {
126713
+ children: [/* @__PURE__ */ jsx$1(index$9, {
126617
126714
  filters: filters2,
126618
126715
  setFilters,
126619
126716
  currentVenue,
126620
126717
  userEmail,
126621
126718
  userFullName
126622
- }), /* @__PURE__ */ jsx$1(index$7, {
126719
+ }), /* @__PURE__ */ jsx$1(index$8, {
126623
126720
  data: data2,
126624
126721
  filters: filters2,
126625
126722
  filtersData,
@@ -126627,7 +126724,7 @@ function MainComponent({
126627
126724
  })]
126628
126725
  }), /* @__PURE__ */ jsx$1("div", {
126629
126726
  className: classNames$2(styles$8.mainSidebarContainer, showSidebar ? styles$8[`mainSidebarContainer--open`] : "styles[`mainSidebarContainer--close`]"),
126630
- children: /* @__PURE__ */ jsx$1(index$6, {
126727
+ children: /* @__PURE__ */ jsx$1(index$7, {
126631
126728
  filtersData,
126632
126729
  venueId
126633
126730
  })
@@ -126650,27 +126747,32 @@ function Main$1({
126650
126747
  })
126651
126748
  });
126652
126749
  }
126653
- const mainConatiner = "_mainConatiner_70uhk_64";
126654
- const header$1 = "_header_70uhk_75";
126655
- const content = "_content_70uhk_81";
126656
- const sectionCard = "_sectionCard_70uhk_94";
126657
- const cardHeader = "_cardHeader_70uhk_99";
126658
- const cardTitle = "_cardTitle_70uhk_102";
126659
- const cardDesc = "_cardDesc_70uhk_106";
126660
- const cardBody = "_cardBody_70uhk_110";
126661
- const cardFooter = "_cardFooter_70uhk_114";
126662
- const cardFooterContent = "_cardFooterContent_70uhk_114";
126663
- const sectionManagement = "_sectionManagement_70uhk_126";
126664
- const sectionFormRow = "_sectionFormRow_70uhk_126";
126665
- const drawerContent = "_drawerContent_70uhk_133";
126666
- const scrollableForm = "_scrollableForm_70uhk_138";
126667
- const fixedActions = "_fixedActions_70uhk_144";
126668
- const specialDatesInfoText = "_specialDatesInfoText_70uhk_153";
126669
- const deleteIcon = "_deleteIcon_70uhk_167";
126750
+ const mainConatiner = "_mainConatiner_pybf6_64";
126751
+ const header$1 = "_header_pybf6_75";
126752
+ const sectionCard = "_sectionCard_pybf6_94";
126753
+ const cardHeader = "_cardHeader_pybf6_98";
126754
+ const cardTitle = "_cardTitle_pybf6_101";
126755
+ const cardDesc = "_cardDesc_pybf6_105";
126756
+ const cardBody = "_cardBody_pybf6_109";
126757
+ const cardFooter = "_cardFooter_pybf6_113";
126758
+ const cardFooterContent = "_cardFooterContent_pybf6_113";
126759
+ const sectionManagement = "_sectionManagement_pybf6_125";
126760
+ const sectionFormRow = "_sectionFormRow_pybf6_125";
126761
+ const drawerContent = "_drawerContent_pybf6_132";
126762
+ const scrollableForm = "_scrollableForm_pybf6_137";
126763
+ const fixedActions = "_fixedActions_pybf6_143";
126764
+ const specialDatesInfoText = "_specialDatesInfoText_pybf6_152";
126765
+ const deleteIcon = "_deleteIcon_pybf6_166";
126766
+ const stripeConnectContainer = "_stripeConnectContainer_pybf6_171";
126767
+ const paymentGatewayContainer = "_paymentGatewayContainer_pybf6_179";
126768
+ const paymentRules = "_paymentRules_pybf6_185";
126769
+ const paymentRulesContainer = "_paymentRulesContainer_pybf6_190";
126770
+ const paymentRulesDesc = "_paymentRulesDesc_pybf6_196";
126670
126771
  const styles$6 = {
126772
+ "my-masonry-grid": "_my-masonry-grid_pybf6_42",
126773
+ "my-masonry-grid_column": "_my-masonry-grid_column_pybf6_53",
126671
126774
  mainConatiner,
126672
126775
  header: header$1,
126673
- content,
126674
126776
  sectionCard,
126675
126777
  cardHeader,
126676
126778
  cardTitle,
@@ -126684,7 +126786,12 @@ const styles$6 = {
126684
126786
  scrollableForm,
126685
126787
  fixedActions,
126686
126788
  specialDatesInfoText,
126687
- deleteIcon
126789
+ deleteIcon,
126790
+ stripeConnectContainer,
126791
+ paymentGatewayContainer,
126792
+ paymentRules,
126793
+ paymentRulesContainer,
126794
+ paymentRulesDesc
126688
126795
  };
126689
126796
  const AreaManagementCard$1 = ({
126690
126797
  isOpenDrawer,
@@ -127020,7 +127127,7 @@ const fieldChanged$3 = (currentValue, initialData) => {
127020
127127
  }
127021
127128
  return false;
127022
127129
  };
127023
- const index$5 = ({
127130
+ const index$6 = ({
127024
127131
  venueId,
127025
127132
  reloadAreas,
127026
127133
  areas,
@@ -127280,6 +127387,11 @@ const UpdateResbook = async ({
127280
127387
  } else {
127281
127388
  break;
127282
127389
  }
127390
+ case "payment":
127391
+ await instance$1.post(`${BASE_URL$1}${venue_id}/payment`, formatPaymentDefinition(data2));
127392
+ await instance$1.post(`${BASE_URL$1}${venue_id}/payment-gateway`, formatPaymentGateway(data2));
127393
+ await instance$1.put(`${BASE_URL$1}${venue_id}/opening-hours`, data2 == null ? void 0 : data2.days);
127394
+ return { data: "updated" };
127283
127395
  default:
127284
127396
  await instance$1.put(
127285
127397
  `${BASE_URL$1}${venue_id}/tables/${table_id}`,
@@ -127312,6 +127424,25 @@ const UpdateResbook = async ({
127312
127424
  ]);
127313
127425
  return { data: "updated" };
127314
127426
  };
127427
+ const formatPaymentDefinition = (input2) => {
127428
+ const { paymentEnabled, amount, minGuestsRequiringPayment, cancellationPolicyDuration, depositType: depositType2 } = input2;
127429
+ return {
127430
+ paymentEnabled,
127431
+ amount,
127432
+ minGuestsRequiringPayment,
127433
+ cancellationPolicyDuration,
127434
+ depositType: depositType2
127435
+ };
127436
+ };
127437
+ const formatPaymentGateway = (input2) => {
127438
+ const { merchantId, status } = input2;
127439
+ return {
127440
+ gateway: "stripe",
127441
+ status,
127442
+ publishKey: config$1.stripe_publish_key,
127443
+ merchantId
127444
+ };
127445
+ };
127315
127446
  const formarRegularHours = ({ regularHours }) => {
127316
127447
  return weekdaysIds.reduce((acc, key2) => {
127317
127448
  const {
@@ -127696,6 +127827,9 @@ const fieldChanged$2 = (currentValue, initialData) => {
127696
127827
  const GetTableManagement = async ({
127697
127828
  venue_id
127698
127829
  }) => {
127830
+ if (!venue_id) {
127831
+ return null;
127832
+ }
127699
127833
  const responseData = await instance$1.get(
127700
127834
  `resbook/venue/${venue_id}/tables`,
127701
127835
  {
@@ -127719,7 +127853,7 @@ const formatData$5 = (data2) => {
127719
127853
  };
127720
127854
  });
127721
127855
  };
127722
- const index$4 = ({
127856
+ const index$5 = ({
127723
127857
  venueId,
127724
127858
  areas,
127725
127859
  canEdit
@@ -128025,6 +128159,9 @@ const fieldChanged$1 = (currentValue, initialData) => {
128025
128159
  const GetSeatingRules = async ({
128026
128160
  venue_id
128027
128161
  }) => {
128162
+ if (!venue_id) {
128163
+ return null;
128164
+ }
128028
128165
  const responseData = await instance$1.get(
128029
128166
  `/resbook/venue/${venue_id}/seating-rules`,
128030
128167
  {
@@ -128046,7 +128183,7 @@ const formatSeating = (data2) => {
128046
128183
  };
128047
128184
  });
128048
128185
  };
128049
- const index$3 = ({
128186
+ const index$4 = ({
128050
128187
  venueId,
128051
128188
  canEdit
128052
128189
  }) => {
@@ -128157,6 +128294,9 @@ const SpecialDatesCard = ({
128157
128294
  const GetSpecialDates = async ({
128158
128295
  venue_id
128159
128296
  }) => {
128297
+ if (!venue_id) {
128298
+ return null;
128299
+ }
128160
128300
  const responseData = await instance$1.get(
128161
128301
  `/resbook/venue/${venue_id}/special-dates?limit=100`
128162
128302
  );
@@ -128554,7 +128694,7 @@ const fieldChanged = (currentValue, initialData) => {
128554
128694
  }
128555
128695
  return false;
128556
128696
  };
128557
- const index$2 = ({
128697
+ const index$3 = ({
128558
128698
  venueId,
128559
128699
  canEdit
128560
128700
  }) => {
@@ -128874,6 +129014,9 @@ const GetOpeningHours = async ({
128874
129014
  venue_id
128875
129015
  }) => {
128876
129016
  try {
129017
+ if (!venue_id) {
129018
+ return null;
129019
+ }
128877
129020
  const responseData = await instance$1.get(`/resbook/venue/${venue_id}/opening-hours?limit=100`);
128878
129021
  if (!responseData || typeof responseData !== "object") {
128879
129022
  console.error("Error fetching opening hours data: Invalid response data");
@@ -128897,7 +129040,7 @@ const formatData$3 = (data2) => {
128897
129040
  });
128898
129041
  return openingHoursArray;
128899
129042
  };
128900
- const index$1 = ({
129043
+ const index$2 = ({
128901
129044
  venueId,
128902
129045
  canEdit
128903
129046
  }) => {
@@ -129142,6 +129285,9 @@ const ReservationPreferencesEditDrawer = ({
129142
129285
  const GetArrivalRules = async ({
129143
129286
  venue_id
129144
129287
  }) => {
129288
+ if (!venue_id) {
129289
+ return null;
129290
+ }
129145
129291
  const responseData = await instance$1.get(
129146
129292
  `/resbook/venue/${venue_id}/arrival-rules?limit=100`
129147
129293
  );
@@ -129155,7 +129301,7 @@ const formatData$2 = (data2) => {
129155
129301
  id: data2[0].id
129156
129302
  };
129157
129303
  };
129158
- const index = ({
129304
+ const index$1 = ({
129159
129305
  venueId,
129160
129306
  canEdit
129161
129307
  }) => {
@@ -129209,6 +129355,624 @@ const formatData$1 = (data2) => {
129209
129355
  const formatVenueData = (data2) => {
129210
129356
  return { bookableAreas: data2.bookableAreas };
129211
129357
  };
129358
+ const PaymentsCard = ({
129359
+ isOpenDrawer,
129360
+ setIsOpenDrawer,
129361
+ paymentDefinitionData,
129362
+ canEdit
129363
+ }) => {
129364
+ const {
129365
+ t: t2
129366
+ } = useTranslation();
129367
+ return /* @__PURE__ */ jsxs(Card, {
129368
+ className: styles$6.sectionCard,
129369
+ children: [/* @__PURE__ */ jsxs("div", {
129370
+ className: styles$6.cardHeader,
129371
+ children: [/* @__PURE__ */ jsx$1("h2", {
129372
+ className: styles$6.cardTitle,
129373
+ children: t2("PAYMENTS_INTEGRATION")
129374
+ }), /* @__PURE__ */ jsx$1("p", {
129375
+ className: styles$6.cardDesc,
129376
+ children: t2("PAYMENTS_INTEGRATION_DESC")
129377
+ })]
129378
+ }), /* @__PURE__ */ jsx$1("div", {
129379
+ className: styles$6.cardBody,
129380
+ children: /* @__PURE__ */ jsxs("div", {
129381
+ style: {
129382
+ display: "grid",
129383
+ gridTemplateColumns: "1fr auto",
129384
+ gap: "10px",
129385
+ rowGap: "20px",
129386
+ marginBottom: 10
129387
+ },
129388
+ children: [/* @__PURE__ */ jsxs("div", {
129389
+ style: {
129390
+ display: "contents"
129391
+ },
129392
+ children: [/* @__PURE__ */ jsx$1("p", {
129393
+ style: {
129394
+ fontWeight: "bold"
129395
+ },
129396
+ children: t2("ENABLED_PAYMENTS")
129397
+ }), /* @__PURE__ */ jsxs("p", {
129398
+ style: {
129399
+ textAlign: "left"
129400
+ },
129401
+ children: [" ", (paymentDefinitionData == null ? void 0 : paymentDefinitionData.paymentEnabled) ? t2("YES") : t2("NO")]
129402
+ })]
129403
+ }), /* @__PURE__ */ jsxs("div", {
129404
+ style: {
129405
+ display: "contents"
129406
+ },
129407
+ children: [/* @__PURE__ */ jsx$1("p", {
129408
+ style: {
129409
+ fontWeight: "bold"
129410
+ },
129411
+ children: t2("AMOUNT_PER_GUEST")
129412
+ }), /* @__PURE__ */ jsx$1("p", {
129413
+ style: {
129414
+ textAlign: "left"
129415
+ },
129416
+ children: (paymentDefinitionData == null ? void 0 : paymentDefinitionData.amount) ?? "---"
129417
+ })]
129418
+ }), /* @__PURE__ */ jsxs("div", {
129419
+ style: {
129420
+ display: "contents"
129421
+ },
129422
+ children: [/* @__PURE__ */ jsx$1("p", {
129423
+ style: {
129424
+ fontWeight: "bold"
129425
+ },
129426
+ children: t2("MIN_GUESTS_REQ_PAYMENT")
129427
+ }), /* @__PURE__ */ jsx$1("p", {
129428
+ style: {
129429
+ textAlign: "left"
129430
+ },
129431
+ children: (paymentDefinitionData == null ? void 0 : paymentDefinitionData.minGuestsRequiringPayment) ?? "---"
129432
+ })]
129433
+ })]
129434
+ })
129435
+ }), canEdit && /* @__PURE__ */ jsxs("div", {
129436
+ className: styles$6.cardFooter,
129437
+ children: [/* @__PURE__ */ jsx$1("hr", {}), /* @__PURE__ */ jsx$1("div", {
129438
+ className: styles$6.cardFooterContent,
129439
+ onClick: () => {
129440
+ setIsOpenDrawer(true);
129441
+ },
129442
+ children: t2("more")
129443
+ })]
129444
+ })]
129445
+ });
129446
+ };
129447
+ const PaymentsEditDrawer = ({
129448
+ isOpen,
129449
+ setIsOpen,
129450
+ venueId,
129451
+ shiftsData,
129452
+ paymentDefinitionData,
129453
+ paymentGatewayData,
129454
+ reload
129455
+ }) => {
129456
+ const {
129457
+ t: t2
129458
+ } = useTranslation();
129459
+ const {
129460
+ showMessageError,
129461
+ showMessageSucess
129462
+ } = useMessage();
129463
+ const [isLoadingStripe, setIsLoadingStripe] = useState(false);
129464
+ const [isOpenDisconnectStripeConfirmation, setIsOpenDisconnectStripeConfirmation] = useState(false);
129465
+ const {
129466
+ isExecuting: loadingUpdate,
129467
+ execute: executeUpdater
129468
+ } = useService(UpdateResbook, {});
129469
+ const defaultValue2 = {
129470
+ days: [],
129471
+ enabledPayments: false,
129472
+ amount: 0,
129473
+ minGuestsRequiringPayment: 0,
129474
+ cancellationPolicyDuration: 0,
129475
+ depositType: null,
129476
+ merchantId: null,
129477
+ status: "inactive"
129478
+ };
129479
+ const depositTypeOptions = [{
129480
+ label: t2("deposit"),
129481
+ value: "deposit"
129482
+ }, {
129483
+ label: t2("creditCardGuarantee"),
129484
+ value: "cc_guarantee"
129485
+ }];
129486
+ const paymentsSchema = () => create$2().shape({
129487
+ enabledPayments: create$5().required(t2("Enabled payments is required")),
129488
+ amount: create$3().required(t2("Amount per guest is required")),
129489
+ minGuestsRequiringPayment: create$3().required(t2("Min. guests requiring payment is required")),
129490
+ cancellationPolicyDuration: create$3().required(t2("Cancelation policy in hours is required")),
129491
+ depositType: create$6(),
129492
+ days: create$1().of(create$2().shape({
129493
+ id: create$4().nullable(),
129494
+ closed: create$5(),
129495
+ weekDay: create$4().nullable(),
129496
+ timeslots: create$1().of(create$2().shape({
129497
+ start: create$4().required(t2("Start time is required")),
129498
+ end: create$4().required(t2("End time is required")),
129499
+ paymentEnabled: create$5().required(t2("Apply payment rules is required"))
129500
+ })).max(2, t2("You can only add up to two timeslots"))
129501
+ }))
129502
+ });
129503
+ const {
129504
+ control,
129505
+ reset,
129506
+ trigger,
129507
+ getValues,
129508
+ setValue: setValue2,
129509
+ watch,
129510
+ formState: {
129511
+ isDirty
129512
+ }
129513
+ } = useForm({
129514
+ mode: "onChange",
129515
+ resolver: o(paymentsSchema()),
129516
+ defaultValues: defaultValue2
129517
+ });
129518
+ const days2 = watch("days");
129519
+ const enabledPayments = watch("enabledPayments");
129520
+ const merchantId = watch("merchantId");
129521
+ const status = watch("status");
129522
+ const {
129523
+ fields
129524
+ } = useFieldArray({
129525
+ control,
129526
+ name: "days"
129527
+ });
129528
+ const onSubmit = async (toggleDrawer = true) => {
129529
+ var _a2;
129530
+ const formData = getValues();
129531
+ const result = await trigger();
129532
+ if (!result) {
129533
+ showMessageError(t2("pleaseCheckFormsErrors"));
129534
+ return;
129535
+ }
129536
+ const transformedData = formData.days.reduce((acc, day2) => {
129537
+ acc[day2.day.toLowerCase()] = {
129538
+ closed: day2.closed.toString(),
129539
+ timeslots: (day2 == null ? void 0 : day2.timeslots.map((timeslot) => ({
129540
+ start: timeslot.start,
129541
+ end: timeslot.end,
129542
+ paymentEnabled: timeslot.paymentEnabled ? "true" : "false"
129543
+ }))) || []
129544
+ };
129545
+ return acc;
129546
+ }, {});
129547
+ const toSend = {
129548
+ enabledPayments: formData.enabledPayments,
129549
+ amount: formData.amount,
129550
+ minGuestsRequiringPayment: formData.minGuestsRequiringPayment,
129551
+ cancellationPolicyDuration: formData.cancellationPolicyDuration,
129552
+ depositType: (_a2 = formData.depositType) == null ? void 0 : _a2.value,
129553
+ days: transformedData,
129554
+ merchantId: formData.merchantId,
129555
+ status: formData.status
129556
+ };
129557
+ try {
129558
+ await executeUpdater({
129559
+ data: toSend,
129560
+ venue_id: venueId,
129561
+ module: "payment"
129562
+ });
129563
+ reload();
129564
+ if (toggleDrawer) {
129565
+ setIsOpen(false);
129566
+ }
129567
+ } catch (error3) {
129568
+ showMessageError(t2("Failed to save shifts"));
129569
+ }
129570
+ };
129571
+ const isProcessingCode = React__default.useRef(false);
129572
+ const exchangeCodeForToken = async (code) => {
129573
+ if (isProcessingCode.current) {
129574
+ return;
129575
+ }
129576
+ try {
129577
+ isProcessingCode.current = true;
129578
+ setIsLoadingStripe(true);
129579
+ const response = await fetch(`${config$1.stripe_gateway_url}?action=getMerchantId&code=${code}`);
129580
+ const data2 = await response.json();
129581
+ if (data2.success && data2.stripe_user_id) {
129582
+ setValue2("merchantId", data2.stripe_user_id, {
129583
+ shouldDirty: true,
129584
+ shouldTouch: true,
129585
+ shouldValidate: true
129586
+ });
129587
+ setValue2("status", "active", {
129588
+ shouldDirty: true,
129589
+ shouldTouch: true,
129590
+ shouldValidate: true
129591
+ });
129592
+ showMessageSucess(t2("Successfully connected with Stripe"));
129593
+ await onSubmit(false);
129594
+ } else {
129595
+ throw new Error("Invalid response from Stripe gateway");
129596
+ }
129597
+ } catch (error3) {
129598
+ console.error("Error exchanging code for token:", error3);
129599
+ showMessageError(t2("Failed to connect with Stripe"));
129600
+ } finally {
129601
+ setIsLoadingStripe(false);
129602
+ isProcessingCode.current = false;
129603
+ }
129604
+ };
129605
+ const onConnectWithStripe = () => {
129606
+ const queryParams = new URLSearchParams({
129607
+ response_type: "code",
129608
+ client_id: config$1.stripe_client_id,
129609
+ scope: "read_write",
129610
+ redirect_uri: `${window.location.origin}/stripe-connect`
129611
+ });
129612
+ const width = 500;
129613
+ const height = 600;
129614
+ const left2 = window.screen.width / 2 - width / 2;
129615
+ const top = window.screen.height / 2 - height / 2;
129616
+ const stripeWindow = window.open(`https://connect.stripe.com/oauth/authorize?${queryParams.toString()}`, "Stripe Connect", `width=${width},
129617
+ height=${height},
129618
+ left=${left2},
129619
+ top=${top},
129620
+ toolbar=no,
129621
+ menubar=no,
129622
+ scrollbars=yes,
129623
+ resizable=no,
129624
+ location=no,
129625
+ status=no`);
129626
+ const handleMessage = async (event) => {
129627
+ if (event.origin === window.location.origin && event.data.type === "STRIPE_OAUTH_RESULT") {
129628
+ if (event.data.success && event.data.code) {
129629
+ await exchangeCodeForToken(event.data.code);
129630
+ } else {
129631
+ showMessageError(t2("Failed to connect with Stripe"));
129632
+ }
129633
+ if (stripeWindow) {
129634
+ stripeWindow.close();
129635
+ }
129636
+ window.removeEventListener("message", handleMessage);
129637
+ }
129638
+ };
129639
+ if (stripeWindow === null) {
129640
+ showMessageError(t2("Please allow popups for this website"));
129641
+ return;
129642
+ }
129643
+ window.addEventListener("message", handleMessage);
129644
+ };
129645
+ const onStripeDisconnect = async () => {
129646
+ try {
129647
+ setIsLoadingStripe(true);
129648
+ const currentMerchantId = merchantId;
129649
+ if (!currentMerchantId) {
129650
+ setValue2("status", "inactive", {
129651
+ shouldDirty: true,
129652
+ shouldTouch: true,
129653
+ shouldValidate: true
129654
+ });
129655
+ return;
129656
+ }
129657
+ const response = await fetch(`${config$1.stripe_gateway_url}?action=unauthorize&merchantId=${currentMerchantId}`);
129658
+ const data2 = await response.json();
129659
+ if (data2.success) {
129660
+ setValue2("merchantId", null, {
129661
+ shouldDirty: true,
129662
+ shouldTouch: true,
129663
+ shouldValidate: true
129664
+ });
129665
+ setValue2("status", "inactive", {
129666
+ shouldDirty: true,
129667
+ shouldTouch: true,
129668
+ shouldValidate: true
129669
+ });
129670
+ showMessageSucess(t2("Successfully disconnected Stripe account"));
129671
+ await onSubmit(false);
129672
+ setIsOpenDisconnectStripeConfirmation(false);
129673
+ setIsLoadingStripe(false);
129674
+ } else {
129675
+ throw new Error("Failed to deauthorize Stripe account");
129676
+ }
129677
+ } catch (error3) {
129678
+ console.error("Error disconnecting Stripe account:", error3);
129679
+ showMessageError(t2("Failed to disconnect Stripe account"));
129680
+ setIsLoadingStripe(false);
129681
+ }
129682
+ };
129683
+ useEffect(() => {
129684
+ if (shiftsData && paymentDefinitionData && paymentGatewayData) {
129685
+ const data2 = {
129686
+ days: shiftsData,
129687
+ enabledPayments: paymentDefinitionData == null ? void 0 : paymentDefinitionData.paymentEnabled,
129688
+ amount: (paymentDefinitionData == null ? void 0 : paymentDefinitionData.amount) ?? 0,
129689
+ minGuestsRequiringPayment: (paymentDefinitionData == null ? void 0 : paymentDefinitionData.minGuestsRequiringPayment) ?? 0,
129690
+ cancellationPolicyDuration: (paymentDefinitionData == null ? void 0 : paymentDefinitionData.cancellationPolicyDuration) ?? 0,
129691
+ depositType: (paymentDefinitionData == null ? void 0 : paymentDefinitionData.depositType) ? depositTypeOptions.find((item2) => item2.value === (paymentDefinitionData == null ? void 0 : paymentDefinitionData.depositType)) : null,
129692
+ merchantId: (paymentGatewayData == null ? void 0 : paymentGatewayData.merchantId) ?? null,
129693
+ status: (paymentGatewayData == null ? void 0 : paymentGatewayData.status) ?? "inactive"
129694
+ };
129695
+ reset(data2);
129696
+ } else {
129697
+ reset(defaultValue2);
129698
+ }
129699
+ }, [shiftsData, paymentDefinitionData]);
129700
+ return /* @__PURE__ */ jsxs(Drawer, {
129701
+ isOpen,
129702
+ onClose: () => setIsOpen(false),
129703
+ title: t2("PAYMENTS_INTEGRATION"),
129704
+ titleDesc: t2("PAYMENTS_INTEGRATION_DESC"),
129705
+ children: [/* @__PURE__ */ jsxs("div", {
129706
+ className: styles$6.drawerContent,
129707
+ children: [/* @__PURE__ */ jsxs("div", {
129708
+ className: styles$6.scrollableForm,
129709
+ children: [/* @__PURE__ */ jsx$1("div", {
129710
+ className: styles$6.stripeConnectContainer,
129711
+ children: /* @__PURE__ */ jsx$1(SwitchField, {
129712
+ control,
129713
+ id: "enabledPayments",
129714
+ name: "enabledPayments",
129715
+ label: t2("paymentsEnabled")
129716
+ })
129717
+ }), enabledPayments && /* @__PURE__ */ jsx$1("div", {
129718
+ className: styles$6.stripeConnectContainer,
129719
+ children: status === "inactive" ? /* @__PURE__ */ jsx$1(Button$1, {
129720
+ isLoading: isLoadingStripe,
129721
+ disabled: isLoadingStripe,
129722
+ mode: "success",
129723
+ icon: isLoadingStripe ? "Spinner" : void 0,
129724
+ onClick: onConnectWithStripe,
129725
+ children: t2("CONNECT_WITH_STRIPE")
129726
+ }) : /* @__PURE__ */ jsx$1(Button$1, {
129727
+ isLoading: isLoadingStripe,
129728
+ disabled: isLoadingStripe,
129729
+ mode: "soft-danger",
129730
+ icon: isLoadingStripe ? "Spinner" : void 0,
129731
+ onClick: () => setIsOpenDisconnectStripeConfirmation(true),
129732
+ children: t2("DISCONNECT_STRIPE_ACCOUNT")
129733
+ })
129734
+ }), enabledPayments && /* @__PURE__ */ jsxs("div", {
129735
+ className: styles$6.paymentGatewayContainer,
129736
+ children: [/* @__PURE__ */ jsx$1(SelectField, {
129737
+ control,
129738
+ id: `depositType`,
129739
+ name: `depositType`,
129740
+ label: t2("depositType"),
129741
+ options: depositTypeOptions
129742
+ }), /* @__PURE__ */ jsxs("div", {
129743
+ className: styles$6.paymentRules,
129744
+ children: [/* @__PURE__ */ jsxs("div", {
129745
+ children: [/* @__PURE__ */ jsx$1("h3", {
129746
+ children: t2("paymentRules")
129747
+ }), /* @__PURE__ */ jsx$1("p", {
129748
+ className: styles$6.paymentRulesDesc,
129749
+ children: t2("paymentRulesDesc")
129750
+ })]
129751
+ }), /* @__PURE__ */ jsxs("div", {
129752
+ className: styles$6.paymentRulesContainer,
129753
+ children: [/* @__PURE__ */ jsx$1("div", {
129754
+ style: {
129755
+ maxWidth: 280
129756
+ },
129757
+ children: /* @__PURE__ */ jsx$1(TextInputField, {
129758
+ control,
129759
+ id: `amount`,
129760
+ name: "amount",
129761
+ type: "number",
129762
+ label: t2("amountPerGuest"),
129763
+ placeholder: t2("amountPerGuest"),
129764
+ infoText: t2("amountPerGuestDesc")
129765
+ })
129766
+ }), /* @__PURE__ */ jsx$1("div", {
129767
+ style: {
129768
+ maxWidth: 280
129769
+ },
129770
+ children: /* @__PURE__ */ jsx$1(TextInputField, {
129771
+ control,
129772
+ id: `minGuestsRequiringPayment`,
129773
+ name: `minGuestsRequiringPayment`,
129774
+ type: "number",
129775
+ label: t2("minGuestsReqPayment"),
129776
+ placeholder: t2("minGuestsReqPayment"),
129777
+ infoText: t2("minGuestsReqPaymentDesc")
129778
+ })
129779
+ })]
129780
+ })]
129781
+ })]
129782
+ }), /* @__PURE__ */ jsx$1("div", {
129783
+ children: enabledPayments && /* @__PURE__ */ jsxs(Fragment, {
129784
+ children: [/* @__PURE__ */ jsx$1("hr", {}), /* @__PURE__ */ jsx$1("p", {
129785
+ className: styles$6.paymentRulesDesc,
129786
+ style: {
129787
+ marginTop: 20
129788
+ },
129789
+ children: t2("paymentRulesDesc")
129790
+ }), fields.map((item2, index2) => {
129791
+ var _a2, _b;
129792
+ return /* @__PURE__ */ jsxs("div", {
129793
+ className: styles$6.sectionFormRow,
129794
+ style: {
129795
+ justifyContent: "flex-start",
129796
+ paddingLeft: 0,
129797
+ paddingRight: 0,
129798
+ width: "100%"
129799
+ },
129800
+ children: [/* @__PURE__ */ jsx$1("div", {
129801
+ children: /* @__PURE__ */ jsx$1("p", {
129802
+ style: {
129803
+ width: "100px"
129804
+ },
129805
+ children: t2(item2.day)
129806
+ })
129807
+ }), !((_a2 = days2[index2]) == null ? void 0 : _a2.closed) && /* @__PURE__ */ jsx$1("div", {
129808
+ style: {
129809
+ display: "flex",
129810
+ flexDirection: "row",
129811
+ gap: 50
129812
+ },
129813
+ children: (_b = days2[index2]) == null ? void 0 : _b.timeslots.map((_24, slotIndex) => {
129814
+ var _a3, _b2, _c, _d;
129815
+ return /* @__PURE__ */ jsxs("div", {
129816
+ style: {
129817
+ display: "flex",
129818
+ alignItems: "center",
129819
+ gap: 10
129820
+ },
129821
+ children: [/* @__PURE__ */ jsx$1("div", {
129822
+ children: /* @__PURE__ */ jsx$1("p", {
129823
+ children: ((_b2 = (_a3 = days2[index2]) == null ? void 0 : _a3.timeslots[Number(slotIndex)]) == null ? void 0 : _b2.start) || "--:--"
129824
+ })
129825
+ }), /* @__PURE__ */ jsx$1("div", {
129826
+ children: /* @__PURE__ */ jsx$1("p", {
129827
+ children: ((_d = (_c = days2[index2]) == null ? void 0 : _c.timeslots[Number(slotIndex)]) == null ? void 0 : _d.end) || "--:--"
129828
+ })
129829
+ }), /* @__PURE__ */ jsx$1("div", {
129830
+ style: {
129831
+ color: "#FF4C51",
129832
+ cursor: "pointer"
129833
+ },
129834
+ children: /* @__PURE__ */ jsx$1(SwitchField, {
129835
+ control,
129836
+ id: `days.${index2}.timeslots.${slotIndex}.paymentEnabled`,
129837
+ name: `days.${index2}.timeslots.${slotIndex}.paymentEnabled`,
129838
+ onChangeEvent: (e) => {
129839
+ const isClosed = e.target.checked;
129840
+ setValue2(`days.${index2}.timeslots.${slotIndex}.paymentEnabled`, isClosed);
129841
+ }
129842
+ })
129843
+ })]
129844
+ }, slotIndex);
129845
+ })
129846
+ })]
129847
+ }, item2.id);
129848
+ })]
129849
+ })
129850
+ })]
129851
+ }), /* @__PURE__ */ jsx$1("div", {
129852
+ className: styles$6.fixedActions,
129853
+ children: isDirty && /* @__PURE__ */ jsx$1(Button$1, {
129854
+ isLoading: loadingUpdate,
129855
+ disabled: loadingUpdate,
129856
+ mode: "success",
129857
+ icon: loadingUpdate ? "Spinner" : "check",
129858
+ type: "button",
129859
+ onClick: () => onSubmit(),
129860
+ children: t2("SAVE")
129861
+ })
129862
+ })]
129863
+ }), /* @__PURE__ */ jsx$1(ConfirmationModal, {
129864
+ open: isOpenDisconnectStripeConfirmation,
129865
+ onClose: () => setIsOpenDisconnectStripeConfirmation(false),
129866
+ onAccept: () => onStripeDisconnect(),
129867
+ title: t2("disconnectStripeAccount"),
129868
+ text: t2("disconnectStripeAccountDesc")
129869
+ })]
129870
+ });
129871
+ };
129872
+ const GetPaymentDefinition = async ({
129873
+ venue_id
129874
+ }) => {
129875
+ try {
129876
+ if (!venue_id) {
129877
+ return null;
129878
+ }
129879
+ const responseData = await instance$1.get(`/resbook/venue/${venue_id}/payment`);
129880
+ if (!responseData || typeof responseData !== "object") {
129881
+ console.error("Error fetching opening hours data: Invalid response data");
129882
+ return [];
129883
+ }
129884
+ const data2 = responseData;
129885
+ return data2;
129886
+ } catch (error3) {
129887
+ console.error("Error fetching opening hours data:", error3.message);
129888
+ return null;
129889
+ }
129890
+ };
129891
+ const GetPaymentGateway = async ({
129892
+ venue_id
129893
+ }) => {
129894
+ try {
129895
+ if (!venue_id) {
129896
+ return null;
129897
+ }
129898
+ const responseData = await instance$1.get(`/resbook/venue/${venue_id}/payment-gateway`);
129899
+ if (!responseData || typeof responseData !== "object") {
129900
+ console.error("Error fetching opening hours data: Invalid response data");
129901
+ return [];
129902
+ }
129903
+ const data2 = responseData;
129904
+ return data2;
129905
+ } catch (error3) {
129906
+ console.error("Error fetching opening hours data:", error3.message);
129907
+ return null;
129908
+ }
129909
+ };
129910
+ const index = ({
129911
+ venueId,
129912
+ canEdit
129913
+ }) => {
129914
+ const [isOpenDrawer, setIsOpenDrawer] = useState(false);
129915
+ const weekdayOrder = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
129916
+ const {
129917
+ data: shiftsData,
129918
+ reload: reloadShifts
129919
+ } = useFetch(GetOpeningHours, {
129920
+ cacheId: "shifts0management",
129921
+ venue_id: venueId
129922
+ });
129923
+ const {
129924
+ data: paymentDefinitionData,
129925
+ reload: reloadPaymentDefinition
129926
+ } = useFetch(GetPaymentDefinition, {
129927
+ cacheId: "payment0definition",
129928
+ venue_id: venueId
129929
+ });
129930
+ const {
129931
+ data: paymentGatewayData,
129932
+ reload: reloadPaymentGateway
129933
+ } = useFetch(GetPaymentGateway, {
129934
+ cacheId: "payment0gateway",
129935
+ venue_id: venueId
129936
+ });
129937
+ const [formatedData, setFormatedData] = useState([]);
129938
+ useEffect(() => {
129939
+ if (shiftsData) {
129940
+ const sortedData = shiftsData.sort((a2, b2) => weekdayOrder.indexOf(a2.day) - weekdayOrder.indexOf(b2.day)).map((item2) => {
129941
+ var _a2;
129942
+ return {
129943
+ ...item2,
129944
+ day: item2.day.charAt(0).toUpperCase() + item2.day.slice(1),
129945
+ timeslots: (_a2 = item2 == null ? void 0 : item2.timeslots) == null ? void 0 : _a2.map((timeslot) => ({
129946
+ ...timeslot,
129947
+ paymentEnabled: (timeslot == null ? void 0 : timeslot.paymentEnabled) && (timeslot == null ? void 0 : timeslot.paymentEnabled) === "true" ? true : false
129948
+ }))
129949
+ };
129950
+ });
129951
+ setFormatedData(sortedData);
129952
+ }
129953
+ }, [shiftsData]);
129954
+ return /* @__PURE__ */ jsxs("div", {
129955
+ className: styles$6.sectionManagement,
129956
+ children: [/* @__PURE__ */ jsx$1(PaymentsCard, {
129957
+ isOpenDrawer,
129958
+ setIsOpenDrawer,
129959
+ paymentDefinitionData,
129960
+ canEdit
129961
+ }), /* @__PURE__ */ jsx$1(PaymentsEditDrawer, {
129962
+ isOpen: isOpenDrawer,
129963
+ setIsOpen: setIsOpenDrawer,
129964
+ venueId,
129965
+ shiftsData: formatedData,
129966
+ paymentGatewayData,
129967
+ paymentDefinitionData,
129968
+ reload: () => {
129969
+ reloadShifts();
129970
+ reloadPaymentDefinition();
129971
+ reloadPaymentGateway();
129972
+ }
129973
+ })]
129974
+ });
129975
+ };
129212
129976
  function Main({
129213
129977
  venueId
129214
129978
  }) {
@@ -129217,6 +129981,7 @@ function Main({
129217
129981
  } = useTranslation();
129218
129982
  const [currentVenue, setCurrentVenue] = useState(null);
129219
129983
  const [canEdit, setCanEdit] = useState(false);
129984
+ console.log(config$1.env, "LOL");
129220
129985
  const {
129221
129986
  data: data2,
129222
129987
  reload
@@ -129233,6 +129998,35 @@ function Main({
129233
129998
  useEffect(() => {
129234
129999
  setCurrentVenue(venueId);
129235
130000
  }, [venueId]);
130001
+ useEffect(() => {
130002
+ const handleStripeCallback = () => {
130003
+ var _a2, _b;
130004
+ const urlParams = new URLSearchParams(window.location.search);
130005
+ const code = urlParams.get("code");
130006
+ const error22 = urlParams.get("error");
130007
+ const errorDescription = urlParams.get("error_description");
130008
+ if (code) {
130009
+ (_a2 = window.opener) == null ? void 0 : _a2.postMessage({
130010
+ type: "STRIPE_OAUTH_RESULT",
130011
+ success: true,
130012
+ code
130013
+ }, window.location.origin);
130014
+ } else if (error22) {
130015
+ (_b = window.opener) == null ? void 0 : _b.postMessage({
130016
+ type: "STRIPE_OAUTH_RESULT",
130017
+ success: false,
130018
+ error: error22,
130019
+ errorDescription
130020
+ }, window.location.origin);
130021
+ }
130022
+ };
130023
+ if (window.location.pathname === "/stripe-connect" && window.location.search.includes("code=")) {
130024
+ handleStripeCallback();
130025
+ }
130026
+ }, []);
130027
+ if (window.location.pathname === "/stripe-connect" && window.location.search.includes("code=")) {
130028
+ return /* @__PURE__ */ jsx$1(SkeletonPage, {});
130029
+ }
129236
130030
  return /* @__PURE__ */ jsxs("div", {
129237
130031
  className: styles$6.mainConatiner,
129238
130032
  children: [/* @__PURE__ */ jsx$1("div", {
@@ -129240,27 +130034,33 @@ function Main({
129240
130034
  children: /* @__PURE__ */ jsx$1("h2", {
129241
130035
  children: t2("RESTAURANTSETUP")
129242
130036
  })
129243
- }), /* @__PURE__ */ jsxs("div", {
129244
- className: styles$6.content,
129245
- children: [/* @__PURE__ */ jsx$1(index$5, {
130037
+ }), /* @__PURE__ */ jsxs(Masonry, {
130038
+ breakpointCols: {
130039
+ default: 3,
130040
+ 1200: 2,
130041
+ 800: 1
130042
+ },
130043
+ className: styles$6["my-masonry-grid"],
130044
+ columnClassName: styles$6["my-masonry-grid_column"],
130045
+ children: [/* @__PURE__ */ jsx$1(index$6, {
129246
130046
  areas: data2,
129247
130047
  reloadAreas: reload,
129248
130048
  venueId: currentVenue,
129249
130049
  canEdit
129250
- }), /* @__PURE__ */ jsx$1(index$4, {
130050
+ }), /* @__PURE__ */ jsx$1(index$5, {
129251
130051
  areas: data2,
129252
130052
  venueId: currentVenue,
129253
130053
  canEdit
129254
- }), /* @__PURE__ */ jsx$1(index$3, {
130054
+ }), /* @__PURE__ */ jsx$1(index$4, {
129255
130055
  venueId: currentVenue,
129256
130056
  canEdit
129257
- })]
129258
- }), /* @__PURE__ */ jsxs("div", {
129259
- className: styles$6.content,
129260
- children: [/* @__PURE__ */ jsx$1(index$1, {
130057
+ }), /* @__PURE__ */ jsx$1(index$2, {
129261
130058
  venueId: currentVenue,
129262
130059
  canEdit
129263
- }), /* @__PURE__ */ jsx$1(index$2, {
130060
+ }), /* @__PURE__ */ jsx$1(index$3, {
130061
+ venueId: currentVenue,
130062
+ canEdit
130063
+ }), /* @__PURE__ */ jsx$1(index$1, {
129264
130064
  venueId: currentVenue,
129265
130065
  canEdit
129266
130066
  }), /* @__PURE__ */ jsx$1(index, {