mozrest-sdk-react-dev 0.3.12 → 0.3.13

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