mozrest-sdk-react-dev 0.3.74 → 0.3.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/mozrest-sdk.es.js +477 -270
  2. package/package.json +1 -1
  3. package/style.css +217 -164
package/mozrest-sdk.es.js CHANGED
@@ -8,7 +8,7 @@ import ReactDOM__default, { createPortal } from "react-dom";
8
8
  const container$C = "_container_1xz3t_13";
9
9
  const item$8 = "_item_1xz3t_20";
10
10
  const itemfull$1 = "_itemfull_1xz3t_26";
11
- const styles$2q = {
11
+ const styles$2r = {
12
12
  "animate-pulse": "_animate-pulse_1xz3t_1",
13
13
  container: container$C,
14
14
  item: item$8,
@@ -960,15 +960,15 @@ const jsxs = jsxRuntimeExports.jsxs;
960
960
  const Fragment = jsxRuntimeExports.Fragment;
961
961
  const SkeletonPage$1 = () => {
962
962
  return /* @__PURE__ */ jsx$1("div", {
963
- className: styles$2q["animate-pulse"],
963
+ className: styles$2r["animate-pulse"],
964
964
  children: /* @__PURE__ */ jsxs("div", {
965
- className: styles$2q.container,
965
+ className: styles$2r.container,
966
966
  children: [/* @__PURE__ */ jsx$1("div", {
967
- className: styles$2q.item
967
+ className: styles$2r.item
968
968
  }), /* @__PURE__ */ jsx$1("div", {
969
- className: styles$2q.item
969
+ className: styles$2r.item
970
970
  }), /* @__PURE__ */ jsx$1("div", {
971
- className: styles$2q.itemfull
971
+ className: styles$2r.itemfull
972
972
  })]
973
973
  })
974
974
  });
@@ -3445,7 +3445,7 @@ const classNames$2 = (...classNames2) => {
3445
3445
  return resultClasses.join(" ");
3446
3446
  };
3447
3447
  const container$B = "_container_1ar7o_1";
3448
- const styles$2p = {
3448
+ const styles$2q = {
3449
3449
  container: container$B
3450
3450
  };
3451
3451
  const Container = ({
@@ -3459,12 +3459,12 @@ const Container = ({
3459
3459
  return /* @__PURE__ */ jsx$1(Tag2, {
3460
3460
  "aria-label": ariaLabel,
3461
3461
  "aria-labelledby": ariaLabelledby,
3462
- className: classNames$2(styles$2p["container"], className),
3462
+ className: classNames$2(styles$2q["container"], className),
3463
3463
  children
3464
3464
  });
3465
3465
  };
3466
3466
  const container$A = "_container_11xrj_1";
3467
- const styles$2o = {
3467
+ const styles$2p = {
3468
3468
  container: container$A
3469
3469
  };
3470
3470
  const LayoutPage$2 = ({
@@ -3474,12 +3474,12 @@ const LayoutPage$2 = ({
3474
3474
  contentClassName
3475
3475
  }) => {
3476
3476
  return /* @__PURE__ */ jsxs("div", {
3477
- className: classNames$2(styles$2o.container, containerClassName, "mz-sdk-cst-pf"),
3477
+ className: classNames$2(styles$2p.container, containerClassName, "mz-sdk-cst-pf"),
3478
3478
  children: [header2 && /* @__PURE__ */ jsx$1("div", {
3479
3479
  className: "mz-header",
3480
3480
  children: header2
3481
3481
  }), /* @__PURE__ */ jsx$1(Container, {
3482
- className: classNames$2(styles$2o.content, contentClassName),
3482
+ className: classNames$2(styles$2p.content, contentClassName),
3483
3483
  children
3484
3484
  })]
3485
3485
  });
@@ -40815,25 +40815,25 @@ const ContextUserRole = React__default.createContext([
40815
40815
  const label$8 = "_label_7mgn7_1";
40816
40816
  const comment$4 = "_comment_7mgn7_5";
40817
40817
  const translate = "_translate_7mgn7_9";
40818
- const styles$2n = {
40818
+ const styles$2o = {
40819
40819
  label: label$8,
40820
40820
  comment: comment$4,
40821
40821
  translate
40822
40822
  };
40823
40823
  const sronly$1 = "_sronly_1n9bw_1";
40824
- const styles$2m = {
40824
+ const styles$2n = {
40825
40825
  sronly: sronly$1
40826
40826
  };
40827
40827
  const SrOnly$1 = ({
40828
40828
  children
40829
40829
  }) => {
40830
40830
  return /* @__PURE__ */ jsx$1("span", {
40831
- className: styles$2m.sronly,
40831
+ className: styles$2n.sronly,
40832
40832
  children
40833
40833
  });
40834
40834
  };
40835
40835
  const label$7 = "_label_1vki7_1";
40836
- const styles$2l = {
40836
+ const styles$2m = {
40837
40837
  label: label$7
40838
40838
  };
40839
40839
  var propTypes$3 = { exports: {} };
@@ -45739,7 +45739,7 @@ const icons$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
45739
45739
  yes: yes$1
45740
45740
  }, Symbol.toStringTag, { value: "Module" }));
45741
45741
  const icon$a = "_icon_69yub_1";
45742
- const styles$2k = {
45742
+ const styles$2l = {
45743
45743
  icon: icon$a,
45744
45744
  "icon--small": "_icon--small_69yub_12",
45745
45745
  "icon--medium": "_icon--medium_69yub_15",
@@ -45754,14 +45754,14 @@ const Icon$1 = ({
45754
45754
  ...props
45755
45755
  }) => {
45756
45756
  return /* @__PURE__ */ jsx$1("span", {
45757
- className: classNames$2(styles$2k["icon"], styles$2k[`icon--${size}`], className),
45757
+ className: classNames$2(styles$2l["icon"], styles$2l[`icon--${size}`], className),
45758
45758
  ...props,
45759
45759
  children: icons$1[icon2]()
45760
45760
  });
45761
45761
  };
45762
45762
  const tooltip$2 = "_tooltip_17puf_1";
45763
45763
  const tooltip__icon$1 = "_tooltip__icon_17puf_4";
45764
- const styles$2j = {
45764
+ const styles$2k = {
45765
45765
  tooltip: tooltip$2,
45766
45766
  tooltip__icon: tooltip__icon$1
45767
45767
  };
@@ -45769,9 +45769,9 @@ const Tooltip$2 = ({
45769
45769
  children
45770
45770
  }) => {
45771
45771
  return /* @__PURE__ */ jsxs("div", {
45772
- className: styles$2j.tooltip,
45772
+ className: styles$2k.tooltip,
45773
45773
  children: [/* @__PURE__ */ jsx$1(Icon$1, {
45774
- className: styles$2j.tooltip__icon,
45774
+ className: styles$2k.tooltip__icon,
45775
45775
  icon: "question",
45776
45776
  size: "small",
45777
45777
  "data-tip": true
@@ -45792,7 +45792,7 @@ const Label$2 = ({
45792
45792
  ...props
45793
45793
  }) => {
45794
45794
  const label2 = /* @__PURE__ */ jsxs("label", {
45795
- className: styles$2l.label,
45795
+ className: styles$2m.label,
45796
45796
  ...props,
45797
45797
  children: [children, tooltip2 && /* @__PURE__ */ jsx$1(Tooltip$2, {
45798
45798
  children: tooltip2
@@ -45804,7 +45804,7 @@ const Label$2 = ({
45804
45804
  };
45805
45805
  const label$6 = "_label_15hk9_1";
45806
45806
  const translation$1 = "_translation_15hk9_6";
45807
- const styles$2i = {
45807
+ const styles$2j = {
45808
45808
  label: label$6,
45809
45809
  translation: translation$1
45810
45810
  };
@@ -45844,13 +45844,13 @@ const ReplyTranslation = ({
45844
45844
  children: [isExecuting && /* @__PURE__ */ jsxs("span", {
45845
45845
  children: [t2("TRANSLATING"), "..."]
45846
45846
  }), !isExecuting && /* @__PURE__ */ jsxs("div", {
45847
- className: styles$2i.translation,
45847
+ className: styles$2j.translation,
45848
45848
  children: [/* @__PURE__ */ jsx$1(Label$2, {
45849
45849
  htmlFor: "",
45850
- className: styles$2i.label,
45850
+ className: styles$2j.label,
45851
45851
  children: t2("TRANSLATION")
45852
45852
  }), /* @__PURE__ */ jsx$1("p", {
45853
- className: styles$2i.translation,
45853
+ className: styles$2j.translation,
45854
45854
  children: data2 && data2.translatedText ? decodeHtmlEntities$1(data2.translatedText) : "---"
45855
45855
  })]
45856
45856
  })]
@@ -45870,6 +45870,24 @@ const Pointer = () => /* @__PURE__ */ jsx$1("svg", {
45870
45870
  d: "M7.904 17.563a1.2 1.2 0 0 0 2.228.308l2.09-3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047-1.047a1.067 1.067 0 0 0 0-1.509l-4.907-4.907l3.113-2.09a1.2 1.2 0 0 0-.309-2.228L4 4z"
45871
45871
  })
45872
45872
  });
45873
+ const Copy = () => /* @__PURE__ */ jsx$1("svg", {
45874
+ xmlns: "http://www.w3.org/2000/svg",
45875
+ width: "24",
45876
+ height: "24",
45877
+ viewBox: "0 0 24 24",
45878
+ children: /* @__PURE__ */ jsxs("g", {
45879
+ fill: "none",
45880
+ stroke: "currentColor",
45881
+ "stroke-linecap": "round",
45882
+ "stroke-linejoin": "round",
45883
+ "stroke-width": "2",
45884
+ children: [/* @__PURE__ */ jsx$1("path", {
45885
+ d: "M7 9.667A2.667 2.667 0 0 1 9.667 7h8.666A2.667 2.667 0 0 1 21 9.667v8.666A2.667 2.667 0 0 1 18.333 21H9.667A2.667 2.667 0 0 1 7 18.333z"
45886
+ }), /* @__PURE__ */ jsx$1("path", {
45887
+ d: "M4.012 16.737A2 2 0 0 1 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1"
45888
+ })]
45889
+ })
45890
+ });
45873
45891
  const Users$2 = () => /* @__PURE__ */ jsx$1("svg", {
45874
45892
  xmlns: "http://www.w3.org/2000/svg",
45875
45893
  width: "24",
@@ -47398,6 +47416,7 @@ const icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
47398
47416
  Bing,
47399
47417
  CalendarTime,
47400
47418
  CheckBox,
47419
+ Copy,
47401
47420
  EyeOff,
47402
47421
  FidgetSpinner,
47403
47422
  LetterX,
@@ -47484,7 +47503,7 @@ const icons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
47484
47503
  yes
47485
47504
  }, Symbol.toStringTag, { value: "Module" }));
47486
47505
  const icon$9 = "_icon_lm3br_1";
47487
- const styles$2h = {
47506
+ const styles$2i = {
47488
47507
  icon: icon$9,
47489
47508
  "icon--xs": "_icon--xs_lm3br_12",
47490
47509
  "icon--small": "_icon--small_lm3br_15",
@@ -47499,13 +47518,13 @@ const Icon = ({
47499
47518
  ...props
47500
47519
  }) => {
47501
47520
  return /* @__PURE__ */ jsx$1("span", {
47502
- className: classNames$2(styles$2h["icon"], styles$2h[`icon--${size}`], className),
47521
+ className: classNames$2(styles$2i["icon"], styles$2i[`icon--${size}`], className),
47503
47522
  ...props,
47504
47523
  children: React__default.createElement(icons[icon2])
47505
47524
  });
47506
47525
  };
47507
47526
  const btn$2 = "_btn_g6dop_1";
47508
- const styles$2g = {
47527
+ const styles$2h = {
47509
47528
  btn: btn$2,
47510
47529
  "btn--large": "_btn--large_g6dop_16",
47511
47530
  "btn--default": "_btn--default_g6dop_20",
@@ -47533,7 +47552,7 @@ const Button$1 = ({
47533
47552
  ...props
47534
47553
  }) => {
47535
47554
  const componentProps = {
47536
- className: classNames$2(styles$2g["btn"], styles$2g[`btn--${mode}`], styles$2g[`btn--${size}`], "mz-btn", className),
47555
+ className: classNames$2(styles$2h["btn"], styles$2h[`btn--${mode}`], styles$2h[`btn--${size}`], "mz-btn", className),
47537
47556
  ...props
47538
47557
  };
47539
47558
  const IconBtn = icon2 ? /* @__PURE__ */ jsx$1(Icon, {
@@ -47558,25 +47577,25 @@ const Button$1 = ({
47558
47577
  });
47559
47578
  };
47560
47579
  const sronly = "_sronly_1n9bw_1";
47561
- const styles$2f = {
47580
+ const styles$2g = {
47562
47581
  sronly
47563
47582
  };
47564
47583
  const SrOnly = ({
47565
47584
  children
47566
47585
  }) => {
47567
47586
  return /* @__PURE__ */ jsx$1("span", {
47568
- className: styles$2f.sronly,
47587
+ className: styles$2g.sronly,
47569
47588
  children
47570
47589
  });
47571
47590
  };
47572
47591
  const label$5 = "_label_wrsfp_1";
47573
- const styles$2e = {
47592
+ const styles$2f = {
47574
47593
  label: label$5
47575
47594
  };
47576
47595
  const tooltipContainer = "_tooltipContainer_13ux5_1";
47577
47596
  const tooltipBox = "_tooltipBox_13ux5_5";
47578
47597
  const isVisible = "_isVisible_13ux5_26";
47579
- const styles$2d = {
47598
+ const styles$2e = {
47580
47599
  tooltipContainer,
47581
47600
  tooltipBox,
47582
47601
  isVisible,
@@ -47596,14 +47615,14 @@ const Tooltip$1 = ({
47596
47615
  const showTooltip = () => setIsVisible(true);
47597
47616
  const hideTooltip = () => setIsVisible(false);
47598
47617
  return /* @__PURE__ */ jsxs("div", {
47599
- className: styles$2d.tooltipContainer,
47618
+ className: styles$2e.tooltipContainer,
47600
47619
  onMouseEnter: showTooltip,
47601
47620
  onMouseLeave: hideTooltip,
47602
47621
  onFocus: showTooltip,
47603
47622
  onBlur: hideTooltip,
47604
47623
  tabIndex: 0,
47605
47624
  children: [children, /* @__PURE__ */ jsx$1("div", {
47606
- className: classNames$2(styles$2d.tooltipBox, styles$2d[`tooltip--${position2}`], isVisible2 ? styles$2d.isVisible : "", className),
47625
+ className: classNames$2(styles$2e.tooltipBox, styles$2e[`tooltip--${position2}`], isVisible2 ? styles$2e.isVisible : "", className),
47607
47626
  ...props,
47608
47627
  children: message2 ?? ""
47609
47628
  })]
@@ -47617,7 +47636,7 @@ const Label$1 = ({
47617
47636
  ...props
47618
47637
  }) => {
47619
47638
  const label2 = /* @__PURE__ */ jsxs("label", {
47620
- className: styles$2e.label,
47639
+ className: styles$2f.label,
47621
47640
  ...props,
47622
47641
  children: [children, tooltip2 && /* @__PURE__ */ jsx$1(Tooltip$1, {
47623
47642
  message: tooltip2,
@@ -49548,23 +49567,23 @@ function o(o2, n, a2) {
49548
49567
  }
49549
49568
  };
49550
49569
  }
49551
- const text$2 = "_text_1f1l5_1";
49552
- const styles$2c = {
49553
- text: text$2
49570
+ const text$3 = "_text_1f1l5_1";
49571
+ const styles$2d = {
49572
+ text: text$3
49554
49573
  };
49555
49574
  const FieldError$1 = ({
49556
49575
  error: error3
49557
49576
  }) => {
49558
49577
  if (error3) {
49559
49578
  return /* @__PURE__ */ jsx$1("div", {
49560
- className: styles$2c.text,
49579
+ className: styles$2d.text,
49561
49580
  children: error3.message
49562
49581
  });
49563
49582
  }
49564
49583
  return null;
49565
49584
  };
49566
49585
  const input$5 = "_input_1ayrx_1";
49567
- const styles$2b = {
49586
+ const styles$2c = {
49568
49587
  input: input$5
49569
49588
  };
49570
49589
  const TextArea$1 = React__default.forwardRef(({
@@ -49596,7 +49615,7 @@ const TextArea$1 = React__default.forwardRef(({
49596
49615
  tooltip: tooltip2,
49597
49616
  children: label2
49598
49617
  }), /* @__PURE__ */ jsx$1("textarea", {
49599
- className: styles$2b.input,
49618
+ className: styles$2c.input,
49600
49619
  onChange: handleChange,
49601
49620
  id: id2,
49602
49621
  name: id2,
@@ -49738,11 +49757,11 @@ const ReplyForm = ({
49738
49757
  marginTop: 10
49739
49758
  },
49740
49759
  children: [!showTranslation && locale2 !== "en" && /* @__PURE__ */ jsx$1("span", {
49741
- className: styles$2n.translate,
49760
+ className: styles$2o.translate,
49742
49761
  onClick: () => setShowTranslation(true),
49743
49762
  children: t2("SHOWTRANSLATION")
49744
49763
  }), showTranslation && locale2 !== "en" && /* @__PURE__ */ jsx$1("span", {
49745
- className: styles$2n.translate,
49764
+ className: styles$2o.translate,
49746
49765
  onClick: () => setShowTranslation(false),
49747
49766
  children: t2("HIDETRANSLATION")
49748
49767
  })]
@@ -49791,7 +49810,7 @@ const ReplyForm = ({
49791
49810
  const label$4 = "_label_x1r40_1";
49792
49811
  const comment$1 = "_comment_x1r40_7";
49793
49812
  const date$3 = "_date_x1r40_12";
49794
- const styles$2a = {
49813
+ const styles$2b = {
49795
49814
  label: label$4,
49796
49815
  comment: comment$1,
49797
49816
  date: date$3
@@ -49805,13 +49824,13 @@ const Reply = ({
49805
49824
  return /* @__PURE__ */ jsxs("div", {
49806
49825
  children: [/* @__PURE__ */ jsx$1(Label$2, {
49807
49826
  htmlFor: "",
49808
- className: styles$2a.label,
49827
+ className: styles$2b.label,
49809
49828
  children: t2("REPLY")
49810
49829
  }), /* @__PURE__ */ jsx$1("p", {
49811
- className: styles$2a.comment,
49830
+ className: styles$2b.comment,
49812
49831
  children: reply2.comment
49813
49832
  }), /* @__PURE__ */ jsx$1("span", {
49814
- className: styles$2a.date,
49833
+ className: styles$2b.date,
49815
49834
  children: reply2.createdAt
49816
49835
  }), /* @__PURE__ */ jsx$1("br", {})]
49817
49836
  });
@@ -49898,7 +49917,7 @@ const back = "_back_ypeoh_30";
49898
49917
  const statusbar = "_statusbar_ypeoh_38";
49899
49918
  const statusbar__icons = "_statusbar__icons_ypeoh_44";
49900
49919
  const platform$1 = "_platform_ypeoh_48";
49901
- const styles$29 = {
49920
+ const styles$2a = {
49902
49921
  detail: detail$1,
49903
49922
  hidden,
49904
49923
  reviewer: reviewer$1,
@@ -49929,38 +49948,38 @@ const Comment = ({
49929
49948
  return /* @__PURE__ */ jsxs("div", {
49930
49949
  children: [/* @__PURE__ */ jsx$1(Label$2, {
49931
49950
  htmlFor: "",
49932
- className: styles$2n.label,
49951
+ className: styles$2o.label,
49933
49952
  children: t2("REVIEW")
49934
49953
  }), /* @__PURE__ */ jsx$1("p", {
49935
- className: styles$2n.comment,
49954
+ className: styles$2o.comment,
49936
49955
  dangerouslySetInnerHTML: {
49937
49956
  __html: parsedComment
49938
49957
  }
49939
49958
  }), !showTranslation && locale2 !== lang2 && /* @__PURE__ */ jsx$1("span", {
49940
- className: styles$2n.translate,
49959
+ className: styles$2o.translate,
49941
49960
  onClick: () => setShowTranslation(true),
49942
49961
  children: t2("SHOWTRANSLATION")
49943
49962
  }), showTranslation && locale2 !== lang2 && /* @__PURE__ */ jsx$1("span", {
49944
- className: styles$2n.translate,
49963
+ className: styles$2o.translate,
49945
49964
  onClick: () => setShowTranslation(false),
49946
49965
  children: t2("HIDETRANSLATION")
49947
49966
  })]
49948
49967
  });
49949
49968
  };
49950
49969
  const flag = "_flag_wd4ay_1";
49951
- const styles$28 = {
49970
+ const styles$29 = {
49952
49971
  flag
49953
49972
  };
49954
49973
  const CountryFlag = ({
49955
49974
  locale: locale2
49956
49975
  }) => {
49957
49976
  return /* @__PURE__ */ jsx$1("span", {
49958
- className: `fib fi-${locale2 === "en" ? "gb" : locale2} ${styles$28.flag}`
49977
+ className: `fib fi-${locale2 === "en" ? "gb" : locale2} ${styles$29.flag}`
49959
49978
  });
49960
49979
  };
49961
49980
  const label$3 = "_label_15hk9_1";
49962
49981
  const translation = "_translation_15hk9_6";
49963
- const styles$27 = {
49982
+ const styles$28 = {
49964
49983
  label: label$3,
49965
49984
  translation
49966
49985
  };
@@ -50003,13 +50022,13 @@ const CommentTranslation = ({
50003
50022
  children: [isLoading && /* @__PURE__ */ jsxs("span", {
50004
50023
  children: [t2("TRANSLATING"), "..."]
50005
50024
  }), !isLoading && /* @__PURE__ */ jsxs("div", {
50006
- className: styles$27.translation,
50025
+ className: styles$28.translation,
50007
50026
  children: [/* @__PURE__ */ jsx$1(Label$2, {
50008
50027
  htmlFor: "",
50009
- className: styles$27.label,
50028
+ className: styles$28.label,
50010
50029
  children: t2("TRANSLATION")
50011
50030
  }), /* @__PURE__ */ jsx$1("p", {
50012
- className: styles$27.translation,
50031
+ className: styles$28.translation,
50013
50032
  children: decodeHtmlEntities(data2 || "")
50014
50033
  })]
50015
50034
  })]
@@ -50017,7 +50036,7 @@ const CommentTranslation = ({
50017
50036
  };
50018
50037
  const label$2 = "_label_13kaz_1";
50019
50038
  const title$3 = "_title_13kaz_5";
50020
- const styles$26 = {
50039
+ const styles$27 = {
50021
50040
  label: label$2,
50022
50041
  title: title$3
50023
50042
  };
@@ -50030,10 +50049,10 @@ const Title = ({
50030
50049
  return /* @__PURE__ */ jsxs("div", {
50031
50050
  children: [/* @__PURE__ */ jsx$1(Label$2, {
50032
50051
  htmlFor: "",
50033
- className: styles$26.label,
50052
+ className: styles$27.label,
50034
50053
  children: t2("TITLE")
50035
50054
  }), /* @__PURE__ */ jsx$1("p", {
50036
- className: styles$26.title,
50055
+ className: styles$27.title,
50037
50056
  children
50038
50057
  })]
50039
50058
  });
@@ -50210,9 +50229,9 @@ const formatData$k = (data2) => {
50210
50229
  return 0;
50211
50230
  });
50212
50231
  };
50213
- const text$1 = "_text_12cto_1";
50214
- const styles$25 = {
50215
- text: text$1
50232
+ const text$2 = "_text_12cto_1";
50233
+ const styles$26 = {
50234
+ text: text$2
50216
50235
  };
50217
50236
  const tagsMap$2 = {
50218
50237
  business_name: "@Business name",
@@ -50224,7 +50243,7 @@ const TemplateText = ({
50224
50243
  text: text2
50225
50244
  }) => {
50226
50245
  return /* @__PURE__ */ jsx$1("p", {
50227
- className: styles$25.text,
50246
+ className: styles$26.text,
50228
50247
  children: text2.split("@@").map((item2, index2) => {
50229
50248
  if (tagsMap$2[item2]) {
50230
50249
  return /* @__PURE__ */ jsx$1("span", {
@@ -50236,7 +50255,7 @@ const TemplateText = ({
50236
50255
  });
50237
50256
  };
50238
50257
  const button$7 = "_button_1hbqp_1";
50239
- const styles$24 = {
50258
+ const styles$25 = {
50240
50259
  button: button$7
50241
50260
  };
50242
50261
  const Template$1 = ({
@@ -50251,7 +50270,7 @@ const Template$1 = ({
50251
50270
  children: [/* @__PURE__ */ jsx$1(TemplateText, {
50252
50271
  text: text2
50253
50272
  }), /* @__PURE__ */ jsx$1("button", {
50254
- className: styles$24.button,
50273
+ className: styles$25.button,
50255
50274
  onClick: handleClickUse,
50256
50275
  children: "Use"
50257
50276
  })]
@@ -50260,7 +50279,7 @@ const Template$1 = ({
50260
50279
  const container$z = "_container_1ej4w_1";
50261
50280
  const hide$1 = "_hide_1ej4w_8";
50262
50281
  const toolbar$3 = "_toolbar_1ej4w_12";
50263
- const styles$23 = {
50282
+ const styles$24 = {
50264
50283
  container: container$z,
50265
50284
  hide: hide$1,
50266
50285
  toolbar: toolbar$3
@@ -56340,7 +56359,7 @@ var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
56340
56359
  });
56341
56360
  const tooltip$1 = "_tooltip_17puf_1";
56342
56361
  const tooltip__icon = "_tooltip__icon_17puf_4";
56343
- const styles$22 = {
56362
+ const styles$23 = {
56344
56363
  tooltip: tooltip$1,
56345
56364
  tooltip__icon
56346
56365
  };
@@ -56348,9 +56367,9 @@ const LockTooltip = ({
56348
56367
  children
56349
56368
  }) => {
56350
56369
  return /* @__PURE__ */ jsxs("div", {
56351
- className: styles$22.tooltip,
56370
+ className: styles$23.tooltip,
56352
56371
  children: [/* @__PURE__ */ jsx$1(Icon$1, {
56353
- className: styles$22.tooltip__icon,
56372
+ className: styles$23.tooltip__icon,
56354
56373
  icon: "lock",
56355
56374
  size: "small",
56356
56375
  "data-tip": children
@@ -56364,7 +56383,7 @@ const LockTooltip = ({
56364
56383
  };
56365
56384
  const container$y = "_container_ut3y7_1";
56366
56385
  const tooltip = "_tooltip_ut3y7_5";
56367
- const styles$21 = {
56386
+ const styles$22 = {
56368
56387
  container: container$y,
56369
56388
  tooltip
56370
56389
  };
@@ -56393,7 +56412,7 @@ const NewSelect = ({
56393
56412
  ...props
56394
56413
  }) => {
56395
56414
  return /* @__PURE__ */ jsxs("div", {
56396
- className: styles$21.container,
56415
+ className: styles$22.container,
56397
56416
  children: [label2 && /* @__PURE__ */ jsx$1(Label$2, {
56398
56417
  htmlFor: id2,
56399
56418
  children: label2
@@ -56407,7 +56426,7 @@ const NewSelect = ({
56407
56426
  id: id2,
56408
56427
  isDisabled
56409
56428
  }), isDisabled && /* @__PURE__ */ jsx$1("div", {
56410
- className: styles$21.tooltip,
56429
+ className: styles$22.tooltip,
56411
56430
  children: /* @__PURE__ */ jsx$1(LockTooltip, {
56412
56431
  children: disabledTooltip
56413
56432
  })
@@ -56483,12 +56502,12 @@ const filterTemplatesByLanguage = (templates, language) => {
56483
56502
  };
56484
56503
  const header$9 = "_header_1jmjy_1";
56485
56504
  const icon$8 = "_icon_1jmjy_11";
56486
- const styles$20 = {
56505
+ const styles$21 = {
56487
56506
  header: header$9,
56488
56507
  icon: icon$8
56489
56508
  };
56490
56509
  const heading = "_heading_1fifa_1";
56491
- const styles$1$ = {
56510
+ const styles$20 = {
56492
56511
  heading,
56493
56512
  "heading--large": "_heading--large_1fifa_7",
56494
56513
  "heading--medium": "_heading--medium_1fifa_15",
@@ -56504,7 +56523,7 @@ const Heading = ({
56504
56523
  const Tag2 = level;
56505
56524
  return /* @__PURE__ */ jsx$1(Tag2, {
56506
56525
  id: id2,
56507
- className: classNames$2(styles$1$["heading"], styles$1$[`heading--${size}`]),
56526
+ className: classNames$2(styles$20["heading"], styles$20[`heading--${size}`]),
56508
56527
  ...props,
56509
56528
  children
56510
56529
  });
@@ -56519,18 +56538,18 @@ const Header$6 = ({
56519
56538
  return header2;
56520
56539
  }
56521
56540
  return /* @__PURE__ */ jsxs("div", {
56522
- className: styles$20.header,
56541
+ className: styles$21.header,
56523
56542
  children: [/* @__PURE__ */ jsx$1(Heading, {
56524
56543
  children: header2.title
56525
56544
  }), typeof header2.icon === "string" && /* @__PURE__ */ jsx$1(Icon, {
56526
56545
  icon: header2.icon,
56527
56546
  onClick: header2.onClickIcon,
56528
- className: styles$20.icon
56547
+ className: styles$21.icon
56529
56548
  }), typeof header2.icon !== "string" && header2.icon && header2.icon]
56530
56549
  });
56531
56550
  };
56532
56551
  const container$x = "_container_pc1hp_1";
56533
- const styles$1_ = {
56552
+ const styles$1$ = {
56534
56553
  container: container$x
56535
56554
  };
56536
56555
  const Card$1 = ({
@@ -56542,12 +56561,12 @@ const Card$1 = ({
56542
56561
  }) => {
56543
56562
  return /* @__PURE__ */ jsx$1(Fragment, {
56544
56563
  children: /* @__PURE__ */ jsxs("div", {
56545
- className: classNames$2(styles$1_.container, className, "mz-card"),
56564
+ className: classNames$2(styles$1$.container, className, "mz-card"),
56546
56565
  style: style2,
56547
56566
  children: [/* @__PURE__ */ jsx$1(Header$6, {
56548
56567
  header: header2
56549
56568
  }), /* @__PURE__ */ jsx$1("div", {
56550
- className: classNames$2(styles$1_.content, classNameContent),
56569
+ className: classNames$2(styles$1$.content, classNameContent),
56551
56570
  children
56552
56571
  })]
56553
56572
  })
@@ -56619,11 +56638,11 @@ const TemplatesModal = ({
56619
56638
  icon: "close",
56620
56639
  onClickIcon: onClose2
56621
56640
  },
56622
- className: classNames$2(styles$23.container, {
56623
- [styles$23.hide]: !open
56641
+ className: classNames$2(styles$24.container, {
56642
+ [styles$24.hide]: !open
56624
56643
  }),
56625
56644
  children: [/* @__PURE__ */ jsxs("div", {
56626
- className: styles$23.toolbar,
56645
+ className: styles$24.toolbar,
56627
56646
  children: [/* @__PURE__ */ jsx$1(NewSelect, {
56628
56647
  label: t2("REPLYTEMPLATETYPE"),
56629
56648
  options: typeOptions,
@@ -56650,6 +56669,123 @@ const TemplatesModal = ({
56650
56669
  })]
56651
56670
  });
56652
56671
  };
56672
+ const Modal$1 = ({
56673
+ open,
56674
+ children,
56675
+ onClose: onClose2,
56676
+ title: title2,
56677
+ width
56678
+ }) => {
56679
+ return /* @__PURE__ */ jsx$1(Modal$2, {
56680
+ className: "resbook-modal",
56681
+ title: /* @__PURE__ */ jsxs(Fragment, {
56682
+ children: [typeof title2 === "string" && /* @__PURE__ */ jsx$1(Heading, {
56683
+ children: title2
56684
+ }), typeof title2 !== "string" && !!title2 ? title2 : /* @__PURE__ */ jsx$1("div", {})]
56685
+ }),
56686
+ open,
56687
+ onCancel: onClose2,
56688
+ width: width || 1e3,
56689
+ footer: null,
56690
+ closeIcon: /* @__PURE__ */ jsx$1(Icon, {
56691
+ icon: "close",
56692
+ size: "small"
56693
+ }),
56694
+ centered: true,
56695
+ zIndex: 1032,
56696
+ children
56697
+ });
56698
+ };
56699
+ const content$b = "_content_1dgv9_1";
56700
+ const text$1 = "_text_1dgv9_5";
56701
+ const replyBox = "_replyBox_1dgv9_9";
56702
+ const loading$3 = "_loading_1dgv9_18";
56703
+ const actions = "_actions_1dgv9_33";
56704
+ const styles$1_ = {
56705
+ content: content$b,
56706
+ text: text$1,
56707
+ replyBox,
56708
+ loading: loading$3,
56709
+ actions
56710
+ };
56711
+ const AiReplyModal = ({
56712
+ open,
56713
+ replyText,
56714
+ isLoading,
56715
+ onClose: onClose2,
56716
+ onGoToExternal,
56717
+ externalButtonLabel,
56718
+ onSuggestAnother
56719
+ }) => {
56720
+ const {
56721
+ t: t2
56722
+ } = useTranslation();
56723
+ const [copied, setCopied] = useState(false);
56724
+ const handleCopy = () => {
56725
+ if (!replyText) return;
56726
+ if (navigator && navigator.clipboard && navigator.clipboard.writeText) {
56727
+ navigator.clipboard.writeText(replyText);
56728
+ } else {
56729
+ const textarea2 = document.createElement("textarea");
56730
+ textarea2.value = replyText;
56731
+ textarea2.style.position = "fixed";
56732
+ textarea2.style.left = "-9999px";
56733
+ document.body.appendChild(textarea2);
56734
+ textarea2.select();
56735
+ document.execCommand("copy");
56736
+ document.body.removeChild(textarea2);
56737
+ }
56738
+ setCopied(true);
56739
+ };
56740
+ useEffect(() => {
56741
+ if (!copied) return;
56742
+ const timer = setTimeout(() => {
56743
+ setCopied(false);
56744
+ }, 2e3);
56745
+ return () => clearTimeout(timer);
56746
+ }, [copied]);
56747
+ return /* @__PURE__ */ jsx$1(Modal$1, {
56748
+ open,
56749
+ onClose: onClose2,
56750
+ title: t2("SUGGESTREPLY"),
56751
+ width: 600,
56752
+ children: /* @__PURE__ */ jsx$1("div", {
56753
+ className: styles$1_.content,
56754
+ children: isLoading ? /* @__PURE__ */ jsx$1("div", {
56755
+ className: styles$1_.loading,
56756
+ children: /* @__PURE__ */ jsx$1(Spinner$1, {})
56757
+ }) : /* @__PURE__ */ jsxs(Fragment, {
56758
+ children: [/* @__PURE__ */ jsx$1("div", {
56759
+ className: styles$1_.replyBox,
56760
+ children: /* @__PURE__ */ jsx$1("p", {
56761
+ className: styles$1_.text,
56762
+ children: replyText
56763
+ })
56764
+ }), /* @__PURE__ */ jsxs("div", {
56765
+ className: styles$1_.actions,
56766
+ children: [/* @__PURE__ */ jsx$1(Button$1, {
56767
+ size: "small",
56768
+ mode: "secondary",
56769
+ icon: "robot",
56770
+ onClick: onSuggestAnother,
56771
+ children: t2("SUGGESTREPLY")
56772
+ }), /* @__PURE__ */ jsx$1(Button$1, {
56773
+ size: "small",
56774
+ mode: copied ? "success" : "secondary",
56775
+ icon: copied ? "check" : "Copy",
56776
+ onClick: handleCopy,
56777
+ children: copied ? t2("Copied") : t2("Copy")
56778
+ }), /* @__PURE__ */ jsx$1(Button$1, {
56779
+ size: "small",
56780
+ mode: "primary",
56781
+ onClick: onGoToExternal,
56782
+ children: externalButtonLabel
56783
+ })]
56784
+ })]
56785
+ })
56786
+ })
56787
+ });
56788
+ };
56653
56789
  const DetailMobile = ({
56654
56790
  id: id2,
56655
56791
  reply: reply2,
@@ -56680,28 +56816,38 @@ const DetailMobile = ({
56680
56816
  const showReplyTemplates = ((_a2 = user == null ? void 0 : user.company) == null ? void 0 : _a2.replyTemplates) !== false;
56681
56817
  const [showTemplates, setShowTemplates] = useState(false);
56682
56818
  const [showTranslation, setShowTranslation] = useState(false);
56819
+ const [template] = useContext(ContextTemplate);
56820
+ const [showAiReplyModal, setShowAiReplyModal] = useState(false);
56821
+ const personalisedReply = useMemo$1(() => {
56822
+ if (!template) return "";
56823
+ return template.replaceAll("@@business_name@@", locationName).replaceAll("@@client_fullt_name@@", reviewer2.name).replaceAll("@@client_full_name@@", reviewer2.name);
56824
+ }, [template, locationName, reviewer2.name]);
56825
+ const handleOpenAiReplyModal = () => {
56826
+ setShowAiReplyModal(true);
56827
+ onSuggestTemplate();
56828
+ };
56683
56829
  const openModal = () => setShowTemplates(true);
56684
56830
  const closeModal = () => setShowTemplates(false);
56685
56831
  return /* @__PURE__ */ jsxs("div", {
56686
- className: classNames$2(styles$29.detail, {
56687
- [styles$29.hidden]: !openForm
56832
+ className: classNames$2(styles$2a.detail, {
56833
+ [styles$2a.hidden]: !openForm
56688
56834
  }),
56689
56835
  children: [/* @__PURE__ */ jsx$1("div", {
56690
56836
  onClick,
56691
- className: styles$29.back,
56837
+ className: styles$2a.back,
56692
56838
  children: /* @__PURE__ */ jsx$1(Icon, {
56693
56839
  icon: "close"
56694
56840
  })
56695
56841
  }), /* @__PURE__ */ jsxs("div", {
56696
- className: styles$29.statusbar,
56842
+ className: styles$2a.statusbar,
56697
56843
  children: [/* @__PURE__ */ jsxs("div", {
56698
- className: styles$29.statusbar__icons,
56844
+ className: styles$2a.statusbar__icons,
56699
56845
  children: [/* @__PURE__ */ jsx$1(Icon, {
56700
56846
  icon: reply2 ? "mailReplied" : "mailNotReplied"
56701
56847
  }), /* @__PURE__ */ jsx$1("img", {
56702
56848
  alt: platform2,
56703
56849
  src: module2.logo || reviewer2.profilePhoto || platformImages[platform2] || "",
56704
- className: styles$29.platform,
56850
+ className: styles$2a.platform,
56705
56851
  onError: (e) => {
56706
56852
  const target = e.target;
56707
56853
  const fallback = reviewer2.profilePhoto || platformImages[platform2] || "";
@@ -56714,7 +56860,7 @@ const DetailMobile = ({
56714
56860
  children: createdAt
56715
56861
  })]
56716
56862
  }), /* @__PURE__ */ jsxs("strong", {
56717
- className: styles$29.reviewer,
56863
+ className: styles$2a.reviewer,
56718
56864
  children: [reviewer2.name, " ", ` `, locale2 && /* @__PURE__ */ jsx$1(CountryFlag, {
56719
56865
  locale: locale2
56720
56866
  })]
@@ -56759,7 +56905,7 @@ const DetailMobile = ({
56759
56905
  commentId: id2
56760
56906
  })]
56761
56907
  }), platform2 !== "tripadvisor" && platform2 !== "zomato" ? /* @__PURE__ */ jsx$1("div", {
56762
- className: styles$29["container--reply"],
56908
+ className: styles$2a["container--reply"],
56763
56909
  children: reply2 && platform2 !== "facebook" && platform2 !== "google" ? /* @__PURE__ */ jsx$1(Reply, {
56764
56910
  reply: reply2
56765
56911
  }) : /* @__PURE__ */ jsx$1(ReplyForm, {
@@ -56775,7 +56921,7 @@ const DetailMobile = ({
56775
56921
  reply: reply2
56776
56922
  })
56777
56923
  }) : /* @__PURE__ */ jsx$1("div", {
56778
- className: styles$29["container--reply"],
56924
+ className: styles$2a["container--reply"],
56779
56925
  children: reply2 && /* @__PURE__ */ jsx$1(Reply, {
56780
56926
  reply: reply2
56781
56927
  })
@@ -56796,12 +56942,30 @@ const DetailMobile = ({
56796
56942
  onClick: openModal,
56797
56943
  children: t2("SHOWTEMPLATES")
56798
56944
  })]
56799
- }) : /* @__PURE__ */ jsx$1(Button$1, {
56800
- type: "submit",
56801
- size: "small",
56802
- mode: "primary",
56803
- children: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
56804
- onClick: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com"))
56945
+ }) : /* @__PURE__ */ jsxs(Fragment, {
56946
+ children: [!reply2 && /* @__PURE__ */ jsx$1(Button$1, {
56947
+ isLoading: isSuggesting,
56948
+ onClick: handleOpenAiReplyModal,
56949
+ style: {
56950
+ marginBottom: 10
56951
+ },
56952
+ icon: "robot",
56953
+ children: t2("SUGGESTREPLY")
56954
+ }), /* @__PURE__ */ jsx$1(Button$1, {
56955
+ type: "submit",
56956
+ size: "small",
56957
+ mode: "primary",
56958
+ children: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
56959
+ onClick: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com"))
56960
+ }), /* @__PURE__ */ jsx$1(AiReplyModal, {
56961
+ open: showAiReplyModal,
56962
+ onClose: () => setShowAiReplyModal(false),
56963
+ replyText: personalisedReply,
56964
+ isLoading: isSuggesting,
56965
+ onGoToExternal: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com")),
56966
+ externalButtonLabel: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
56967
+ onSuggestAnother: onSuggestTemplate
56968
+ })]
56805
56969
  })]
56806
56970
  });
56807
56971
  };
@@ -56890,6 +57054,16 @@ const DetailDesktop = ({
56890
57054
  t: t2
56891
57055
  } = useTranslation();
56892
57056
  const [showTranslation, setShowTranslation] = useState(false);
57057
+ const [template] = useContext(ContextTemplate);
57058
+ const [showAiReplyModal, setShowAiReplyModal] = useState(false);
57059
+ const personalisedReply = useMemo$1(() => {
57060
+ if (!template) return "";
57061
+ return template.replaceAll("@@business_name@@", locationName).replaceAll("@@client_fullt_name@@", reviewer2.name).replaceAll("@@client_full_name@@", reviewer2.name);
57062
+ }, [template, locationName, reviewer2.name]);
57063
+ const handleOpenAiReplyModal = () => {
57064
+ setShowAiReplyModal(true);
57065
+ onSuggestTemplate();
57066
+ };
56893
57067
  const shouldShowReply = reply2 && (platform2 !== "facebook" && platform2 !== "google" || platform2 === "facebook" && (!reply2.replyExternalId || reply2.replyExternalId === ""));
56894
57068
  return /* @__PURE__ */ jsxs("div", {
56895
57069
  className: classNames$2(styles$1Z.detail, {
@@ -56953,18 +57127,35 @@ const DetailDesktop = ({
56953
57127
  className: styles$1Z.reply,
56954
57128
  children: reply2 ? /* @__PURE__ */ jsx$1(Reply, {
56955
57129
  reply: reply2
56956
- }) : /* @__PURE__ */ jsx$1("div", {
56957
- style: {
56958
- display: "flex",
56959
- justifyContent: "flex-end"
56960
- },
56961
- children: /* @__PURE__ */ jsx$1(Button, {
56962
- type: "submit",
56963
- size: "small",
56964
- mode: "primary",
56965
- children: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
56966
- onClick: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com"))
56967
- })
57130
+ }) : /* @__PURE__ */ jsxs(Fragment, {
57131
+ children: [/* @__PURE__ */ jsxs("div", {
57132
+ style: {
57133
+ display: "flex",
57134
+ justifyContent: "flex-end",
57135
+ gap: 8
57136
+ },
57137
+ children: [/* @__PURE__ */ jsx$1(Button, {
57138
+ isLoading: isSuggesting,
57139
+ size: "small",
57140
+ icon: "robot",
57141
+ children: t2("SUGGESTREPLY"),
57142
+ onClick: handleOpenAiReplyModal
57143
+ }), /* @__PURE__ */ jsx$1(Button, {
57144
+ type: "submit",
57145
+ size: "small",
57146
+ mode: "primary",
57147
+ children: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
57148
+ onClick: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com"))
57149
+ })]
57150
+ }), /* @__PURE__ */ jsx$1(AiReplyModal, {
57151
+ open: showAiReplyModal,
57152
+ onClose: () => setShowAiReplyModal(false),
57153
+ replyText: personalisedReply,
57154
+ isLoading: isSuggesting,
57155
+ onGoToExternal: () => window.open(reviewUrl ?? (platform2 === "zomato" ? "zomato.com" : "tripadvisor.com")),
57156
+ externalButtonLabel: platform2 === "zomato" ? t2("ZOMATOREPLY") : t2("TRIPADVISORREPLY"),
57157
+ onSuggestAnother: onSuggestTemplate
57158
+ })]
56968
57159
  })
56969
57160
  })]
56970
57161
  });
@@ -59415,12 +59606,12 @@ function requireLodash() {
59415
59606
  }
59416
59607
  return isDrop ? baseSlice(array4, fromRight ? 0 : index2, fromRight ? index2 + 1 : length2) : baseSlice(array4, fromRight ? index2 + 1 : 0, fromRight ? length2 : index2);
59417
59608
  }
59418
- function baseWrapperValue(value2, actions) {
59609
+ function baseWrapperValue(value2, actions2) {
59419
59610
  var result2 = value2;
59420
59611
  if (result2 instanceof LazyWrapper) {
59421
59612
  result2 = result2.value();
59422
59613
  }
59423
- return arrayReduce(actions, function(result3, action) {
59614
+ return arrayReduce(actions2, function(result3, action) {
59424
59615
  return action.func.apply(action.thisArg, arrayPush2([result3], action.args));
59425
59616
  }, result2);
59426
59617
  }
@@ -62343,8 +62534,8 @@ function requireLodash() {
62343
62534
  object4.prototype[methodName] = function() {
62344
62535
  var chainAll = this.__chain__;
62345
62536
  if (chain2 || chainAll) {
62346
- var result2 = object4(this.__wrapped__), actions = result2.__actions__ = copyArray2(this.__actions__);
62347
- actions.push({ "func": func, "args": arguments, "thisArg": object4 });
62537
+ var result2 = object4(this.__wrapped__), actions2 = result2.__actions__ = copyArray2(this.__actions__);
62538
+ actions2.push({ "func": func, "args": arguments, "thisArg": object4 });
62348
62539
  result2.__chain__ = chainAll;
62349
62540
  return result2;
62350
62541
  }
@@ -62969,33 +63160,6 @@ const getReplyTemplateLanguage = () => _23.find(replyLanguages, { "id": getLocal
62969
63160
  const isLocaleSupported = (locale2) => {
62970
63161
  return ["ar", "cs", "da", "de", "el", "en", "es", "et", "fi", "fr", "hi", "hr", "hu", "it", "ja", "ko", "nl", "pl", "pt", "ro", "ru", "sl", "sk", "th", "tr", "uk", "vi", "lt", "zh-CN", "zh-TW"].includes(locale2);
62971
63162
  };
62972
- const Modal$1 = ({
62973
- open,
62974
- children,
62975
- onClose: onClose2,
62976
- title: title2,
62977
- width
62978
- }) => {
62979
- return /* @__PURE__ */ jsx$1(Modal$2, {
62980
- className: "resbook-modal",
62981
- title: /* @__PURE__ */ jsxs(Fragment, {
62982
- children: [typeof title2 === "string" && /* @__PURE__ */ jsx$1(Heading, {
62983
- children: title2
62984
- }), typeof title2 !== "string" && !!title2 ? title2 : /* @__PURE__ */ jsx$1("div", {})]
62985
- }),
62986
- open,
62987
- onCancel: onClose2,
62988
- width: width || 1e3,
62989
- footer: null,
62990
- closeIcon: /* @__PURE__ */ jsx$1(Icon, {
62991
- icon: "close",
62992
- size: "small"
62993
- }),
62994
- centered: true,
62995
- zIndex: 1032,
62996
- children
62997
- });
62998
- };
62999
63163
  const container$s = "_container_vuyk0_1";
63000
63164
  const fullWidth = "_fullWidth_vuyk0_6";
63001
63165
  const styles$1P = {
@@ -152033,55 +152197,55 @@ const ReservationsAnalytics = ({
152033
152197
  })]
152034
152198
  });
152035
152199
  };
152036
- const mainWrapper = "_mainWrapper_fujtq_2";
152037
- const mainConatiner$1 = "_mainConatiner_fujtq_9";
152038
- const mainTableContainer = "_mainTableContainer_fujtq_20";
152039
- const mainSidebarContainer = "_mainSidebarContainer_fujtq_28";
152040
- const sidebarContent = "_sidebarContent_fujtq_36";
152041
- const sidebarHeader = "_sidebarHeader_fujtq_41";
152042
- const sidebarMainContent = "_sidebarMainContent_fujtq_46";
152043
- const sidebarFooter = "_sidebarFooter_fujtq_54";
152044
- const headerReferece = "_headerReferece_fujtq_59";
152045
- const sidebarCloseIcon = "_sidebarCloseIcon_fujtq_62";
152046
- const headerContainer = "_headerContainer_fujtq_125";
152047
- const searchContainer = "_searchContainer_fujtq_131";
152048
- const buttonList = "_buttonList_fujtq_142";
152049
- const buttonItem = "_buttonItem_fujtq_147";
152050
- const addReservationButton = "_addReservationButton_fujtq_156";
152051
- const hideCancellationsContainer = "_hideCancellationsContainer_fujtq_165";
152052
- const customerVisitContainer = "_customerVisitContainer_fujtq_173";
152053
- const multipleVisits = "_multipleVisits_fujtq_184";
152054
- const singleVisit = "_singleVisit_fujtq_187";
152055
- const loading$2 = "_loading_fujtq_190";
152056
- const tableTopHeader = "_tableTopHeader_fujtq_201";
152057
- const tableTopHeaderContent = "_tableTopHeaderContent_fujtq_215";
152058
- const tableTopHeaderContentText = "_tableTopHeaderContentText_fujtq_222";
152059
- const tableRowContainer = "_tableRowContainer_fujtq_231";
152060
- const tableRowCard = "_tableRowCard_fujtq_237";
152061
- const fadeInX = "_fadeInX_fujtq_1";
152062
- const canceled = "_canceled_fujtq_245";
152063
- const noData = "_noData_fujtq_248";
152064
- const tableRowHour = "_tableRowHour_fujtq_255";
152065
- const tableRowHourText = "_tableRowHourText_fujtq_271";
152066
- const hours = "_hours_fujtq_279";
152067
- const tableRowContent = "_tableRowContent_fujtq_285";
152068
- const rowImage = "_rowImage_fujtq_300";
152069
- const rowContactContainer = "_rowContactContainer_fujtq_314";
152070
- const rowContactText = "_rowContactText_fujtq_326";
152071
- const rowContactPhone = "_rowContactPhone_fujtq_332";
152072
- const rowSectionContainer = "_rowSectionContainer_fujtq_339";
152073
- const rowSection = "_rowSection_fujtq_339";
152074
- const rowSectionText = "_rowSectionText_fujtq_352";
152075
- const rowSectionSecText = "_rowSectionSecText_fujtq_358";
152076
- const rowActionButton = "_rowActionButton_fujtq_365";
152077
- const bookingInfoContainer = "_bookingInfoContainer_fujtq_378";
152078
- const bookingInfoCardColumn = "_bookingInfoCardColumn_fujtq_383";
152079
- const bookingInfoCardContainer = "_bookingInfoCardContainer_fujtq_391";
152080
- const bookingInfoCard = "_bookingInfoCard_fujtq_383";
152081
- const bookingInfoCardContent = "_bookingInfoCardContent_fujtq_403";
152082
- const bookingInfoCardTitle = "_bookingInfoCardTitle_fujtq_409";
152083
- const bookingInfoCardText = "_bookingInfoCardText_fujtq_412";
152084
- const enableOnboardingContainer = "_enableOnboardingContainer_fujtq_416";
152200
+ const mainWrapper = "_mainWrapper_qcpcl_2";
152201
+ const mainConatiner$1 = "_mainConatiner_qcpcl_9";
152202
+ const mainTableContainer = "_mainTableContainer_qcpcl_20";
152203
+ const mainSidebarContainer = "_mainSidebarContainer_qcpcl_28";
152204
+ const sidebarContent = "_sidebarContent_qcpcl_37";
152205
+ const sidebarHeader = "_sidebarHeader_qcpcl_42";
152206
+ const sidebarMainContent = "_sidebarMainContent_qcpcl_47";
152207
+ const sidebarFooter = "_sidebarFooter_qcpcl_55";
152208
+ const headerReferece = "_headerReferece_qcpcl_60";
152209
+ const sidebarCloseIcon = "_sidebarCloseIcon_qcpcl_63";
152210
+ const headerContainer = "_headerContainer_qcpcl_126";
152211
+ const searchContainer = "_searchContainer_qcpcl_132";
152212
+ const buttonList = "_buttonList_qcpcl_143";
152213
+ const buttonItem = "_buttonItem_qcpcl_148";
152214
+ const addReservationButton = "_addReservationButton_qcpcl_157";
152215
+ const hideCancellationsContainer = "_hideCancellationsContainer_qcpcl_166";
152216
+ const customerVisitContainer = "_customerVisitContainer_qcpcl_174";
152217
+ const multipleVisits = "_multipleVisits_qcpcl_185";
152218
+ const singleVisit = "_singleVisit_qcpcl_188";
152219
+ const loading$2 = "_loading_qcpcl_191";
152220
+ const tableTopHeader = "_tableTopHeader_qcpcl_202";
152221
+ const tableTopHeaderContent = "_tableTopHeaderContent_qcpcl_216";
152222
+ const tableTopHeaderContentText = "_tableTopHeaderContentText_qcpcl_223";
152223
+ const tableRowContainer = "_tableRowContainer_qcpcl_232";
152224
+ const tableRowCard = "_tableRowCard_qcpcl_238";
152225
+ const fadeInX = "_fadeInX_qcpcl_1";
152226
+ const canceled = "_canceled_qcpcl_246";
152227
+ const noData = "_noData_qcpcl_249";
152228
+ const tableRowHour = "_tableRowHour_qcpcl_256";
152229
+ const tableRowHourText = "_tableRowHourText_qcpcl_272";
152230
+ const hours = "_hours_qcpcl_280";
152231
+ const tableRowContent = "_tableRowContent_qcpcl_286";
152232
+ const rowImage = "_rowImage_qcpcl_301";
152233
+ const rowContactContainer = "_rowContactContainer_qcpcl_315";
152234
+ const rowContactText = "_rowContactText_qcpcl_327";
152235
+ const rowContactPhone = "_rowContactPhone_qcpcl_333";
152236
+ const rowSectionContainer = "_rowSectionContainer_qcpcl_340";
152237
+ const rowSection = "_rowSection_qcpcl_340";
152238
+ const rowSectionText = "_rowSectionText_qcpcl_353";
152239
+ const rowSectionSecText = "_rowSectionSecText_qcpcl_359";
152240
+ const rowActionButton = "_rowActionButton_qcpcl_366";
152241
+ const bookingInfoContainer = "_bookingInfoContainer_qcpcl_379";
152242
+ const bookingInfoCardColumn = "_bookingInfoCardColumn_qcpcl_384";
152243
+ const bookingInfoCardContainer = "_bookingInfoCardContainer_qcpcl_392";
152244
+ const bookingInfoCard = "_bookingInfoCard_qcpcl_384";
152245
+ const bookingInfoCardContent = "_bookingInfoCardContent_qcpcl_404";
152246
+ const bookingInfoCardTitle = "_bookingInfoCardTitle_qcpcl_410";
152247
+ const bookingInfoCardText = "_bookingInfoCardText_qcpcl_413";
152248
+ const enableOnboardingContainer = "_enableOnboardingContainer_qcpcl_417";
152085
152249
  const styles$u = {
152086
152250
  mainWrapper,
152087
152251
  mainConatiner: mainConatiner$1,
@@ -152093,9 +152257,9 @@ const styles$u = {
152093
152257
  sidebarFooter,
152094
152258
  headerReferece,
152095
152259
  sidebarCloseIcon,
152096
- "mainSidebarContainer--open": "_mainSidebarContainer--open_fujtq_73",
152097
- "mainSidebarContainer--close": "_mainSidebarContainer--close_fujtq_79",
152098
- "sidebarCloseIcon--show": "_sidebarCloseIcon--show_fujtq_87",
152260
+ "mainSidebarContainer--open": "_mainSidebarContainer--open_qcpcl_74",
152261
+ "mainSidebarContainer--close": "_mainSidebarContainer--close_qcpcl_80",
152262
+ "sidebarCloseIcon--show": "_sidebarCloseIcon--show_qcpcl_88",
152099
152263
  headerContainer,
152100
152264
  searchContainer,
152101
152265
  buttonList,
@@ -153103,6 +153267,22 @@ const GetTableAvailability = async ({
153103
153267
  }
153104
153268
  return [];
153105
153269
  };
153270
+ const GetTableWalkInAvailability = async ({
153271
+ venue_id,
153272
+ params
153273
+ }) => {
153274
+ if (params && params.startSec) {
153275
+ const responseData = await instance$1.get(`/resbook/venue/${venue_id}/table-availablity/walk-in`, {
153276
+ params: {
153277
+ ...params,
153278
+ limit: 100
153279
+ }
153280
+ });
153281
+ const data2 = responseData ?? [];
153282
+ return data2;
153283
+ }
153284
+ return [];
153285
+ };
153106
153286
  var momentTimezone$2 = { exports: {} };
153107
153287
  var momentTimezone$1 = { exports: {} };
153108
153288
  const require$$0 = /* @__PURE__ */ getAugmentedNamespace(moment$1);
@@ -154072,18 +154252,30 @@ const index$7 = ({
154072
154252
  phone: "",
154073
154253
  notes: ""
154074
154254
  };
154075
- const bookingSchema = () => create$2().shape({
154076
- source: create$6().test("is-valid-partySize", "Source is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
154077
- date: create$4().required(),
154078
- time: create$6().test("is-valid-time", "Time is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
154079
- partySize: create$6().test("is-valid-partySize", "Party Size is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
154080
- table: create$6().test("is-valid-table", "Table is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
154081
- firstName: create$4(),
154082
- lastName: create$4(),
154083
- email: create$4().email(t2("errors.email")),
154084
- phone: create$4().nullable().notRequired().test("is-valid-phone", t2("errors.phone"), (value2) => !value2 || new RegExp(/^\+?[1-9]\d{1,14}$/).test(value2)),
154085
- notes: create$4()
154086
- });
154255
+ const isWalkInRef = useRef(false);
154256
+ const [, setSchemaTick] = useState(0);
154257
+ const bookingSchema = () => {
154258
+ const base = {
154259
+ source: create$6().test("is-valid-source", "Source is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
154260
+ partySize: create$6().test("is-valid-partySize", "Party Size is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
154261
+ table: create$6().test("is-valid-table", "Table is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required()
154262
+ };
154263
+ if (isWalkInRef.current) {
154264
+ return create$2().shape({
154265
+ ...base
154266
+ });
154267
+ }
154268
+ return create$2().shape({
154269
+ ...base,
154270
+ date: create$4().required(),
154271
+ time: create$6().test("is-valid-time", "Time is required", (value2) => value2 !== null && typeof value2 === "object" && !!value2.value).required(),
154272
+ firstName: create$4(),
154273
+ lastName: create$4(),
154274
+ email: create$4().email(t2("errors.email")),
154275
+ phone: create$4().nullable().notRequired().test("is-valid-phone", t2("errors.phone"), (value2) => !value2 || new RegExp(/^\+?[1-9]\d{1,14}$/).test(value2)),
154276
+ notes: create$4()
154277
+ });
154278
+ };
154087
154279
  const {
154088
154280
  control,
154089
154281
  reset,
@@ -154100,6 +154292,13 @@ const index$7 = ({
154100
154292
  control,
154101
154293
  name: "source"
154102
154294
  });
154295
+ useEffect(() => {
154296
+ const newIsWalkIn = (source2 == null ? void 0 : source2.code) === "WALK-IN";
154297
+ if (isWalkInRef.current !== newIsWalkIn) {
154298
+ isWalkInRef.current = newIsWalkIn;
154299
+ setSchemaTick((t22) => t22 + 1);
154300
+ }
154301
+ }, [source2 == null ? void 0 : source2.code]);
154103
154302
  const date4 = useWatch({
154104
154303
  control,
154105
154304
  name: "date"
@@ -154112,9 +154311,10 @@ const index$7 = ({
154112
154311
  control,
154113
154312
  name: "partySize"
154114
154313
  });
154314
+ const isWalkIn = (source2 == null ? void 0 : source2.code) === "WALK-IN";
154115
154315
  const {
154116
154316
  data: data2
154117
- } = useFetch(date4 && time2 && (time2 == null ? void 0 : time2.value) && partySize2 && (partySize2 == null ? void 0 : partySize2.value) ? GetTableAvailability : () => Promise.resolve([]), {
154317
+ } = useFetch(date4 && time2 && (time2 == null ? void 0 : time2.value) && partySize2 && (partySize2 == null ? void 0 : partySize2.value) ? isWalkIn ? GetTableWalkInAvailability : GetTableAvailability : () => Promise.resolve([]), {
154118
154318
  cacheId: "reservation0dashboard0table0availability",
154119
154319
  venue_id: venueId,
154120
154320
  params: source2 && (source2 == null ? void 0 : source2.value) ? {
@@ -154134,7 +154334,7 @@ const index$7 = ({
154134
154334
  }
154135
154335
  });
154136
154336
  const onSubmit = async () => {
154137
- var _a2, _b, _c, _d, _e2, _f, _g;
154337
+ var _a2, _b, _c, _d, _e2, _f, _g, _h, _i;
154138
154338
  const data22 = await getValues();
154139
154339
  const result = await trigger();
154140
154340
  if (!result) {
@@ -154142,17 +154342,19 @@ const index$7 = ({
154142
154342
  return;
154143
154343
  }
154144
154344
  if (!selectedBooking) {
154345
+ const isWalkInCreate = ((_a2 = data22 == null ? void 0 : data22.source) == null ? void 0 : _a2.code) === "WALK-IN";
154346
+ const startSec = isWalkInCreate ? moment.tz(moment(), currentTimeZone || void 0).valueOf() / 1e3 : data22.date && ((_b = data22.time) == null ? void 0 : _b.value) ? moment.tz(`${data22.date} ${(_c = data22.time) == null ? void 0 : _c.value}`, "DD/MM/YYYY HH:mm", currentTimeZone ? currentTimeZone : "").valueOf() / 1e3 : moment.tz(moment(), currentTimeZone ? currentTimeZone : "").valueOf() / 1e3;
154145
154347
  const toSend = {
154146
- bookingChannel: (_a2 = data22 == null ? void 0 : data22.source) == null ? void 0 : _a2.value,
154147
- partySize: (_b = data22 == null ? void 0 : data22.partySize) == null ? void 0 : _b.value,
154148
- table: (_c = data22 == null ? void 0 : data22.table) == null ? void 0 : _c.value,
154149
- date: data22.date ? moment.tz(`${data22.date} ${(_d = data22.time) == null ? void 0 : _d.value}`, "DD/MM/YYYY HH:mm", currentTimeZone ? currentTimeZone : "").valueOf() / 1e3 : moment.tz(moment(), currentTimeZone ? currentTimeZone : "").valueOf() / 1e3,
154348
+ bookingChannel: (_d = data22 == null ? void 0 : data22.source) == null ? void 0 : _d.value,
154349
+ partySize: (_e2 = data22 == null ? void 0 : data22.partySize) == null ? void 0 : _e2.value,
154350
+ table: (_f = data22 == null ? void 0 : data22.table) == null ? void 0 : _f.value,
154351
+ date: Math.floor(startSec),
154150
154352
  notes: data22 == null ? void 0 : data22.notes,
154151
154353
  contact: {
154152
- firstname: data22 == null ? void 0 : data22.firstName,
154153
- lastname: data22 == null ? void 0 : data22.lastName,
154154
- email: data22 == null ? void 0 : data22.email,
154155
- telephone: data22 == null ? void 0 : data22.phone,
154354
+ firstname: isWalkInCreate ? "" : data22 == null ? void 0 : data22.firstName,
154355
+ lastname: isWalkInCreate ? "" : data22 == null ? void 0 : data22.lastName,
154356
+ email: isWalkInCreate ? "" : data22 == null ? void 0 : data22.email,
154357
+ telephone: isWalkInCreate ? "" : data22 == null ? void 0 : data22.phone,
154156
154358
  locale: "en"
154157
154359
  }
154158
154360
  };
@@ -154162,10 +154364,11 @@ const index$7 = ({
154162
154364
  });
154163
154365
  reloadMainTable();
154164
154366
  } else {
154367
+ const dateSec = data22.date ? moment.tz(`${data22.date} ${(_g = data22.time) == null ? void 0 : _g.value}`, "DD/MM/YYYY HH:mm", currentTimeZone ? currentTimeZone : "").valueOf() / 1e3 : moment.tz(moment(), currentTimeZone ? currentTimeZone : "").valueOf() / 1e3;
154165
154368
  const toSend = {
154166
- partySize: (_e2 = data22 == null ? void 0 : data22.partySize) == null ? void 0 : _e2.value,
154167
- table: (_f = data22 == null ? void 0 : data22.table) == null ? void 0 : _f.value,
154168
- date: data22.date ? moment.tz(`${data22.date} ${(_g = data22.time) == null ? void 0 : _g.value}`, "DD/MM/YYYY HH:mm", currentTimeZone ? currentTimeZone : "").valueOf() / 1e3 : moment.tz(moment(), currentTimeZone ? currentTimeZone : "").valueOf() / 1e3,
154369
+ partySize: (_h = data22 == null ? void 0 : data22.partySize) == null ? void 0 : _h.value,
154370
+ table: (_i = data22 == null ? void 0 : data22.table) == null ? void 0 : _i.value,
154371
+ date: Math.floor(dateSec),
154169
154372
  notes: data22 == null ? void 0 : data22.notes,
154170
154373
  contact: {
154171
154374
  firstname: data22 == null ? void 0 : data22.firstName,
@@ -154184,7 +154387,8 @@ const index$7 = ({
154184
154387
  };
154185
154388
  useEffect(() => {
154186
154389
  if (data2) {
154187
- const tableOptions2 = data2.map((item2) => {
154390
+ const list = Array.isArray(data2) ? data2 : (data2 == null ? void 0 : data2.id) ? [data2] : [];
154391
+ const tableOptions2 = list.map((item2) => {
154188
154392
  var _a2, _b;
154189
154393
  return {
154190
154394
  value: item2.id,
@@ -154214,7 +154418,7 @@ const index$7 = ({
154214
154418
  if (filtersData == null ? void 0 : filtersData.hours) {
154215
154419
  setTimeByDayOptions(filtersData == null ? void 0 : filtersData.hours);
154216
154420
  }
154217
- if ((filtersData == null ? void 0 : filtersData.tables) && !selectedBooking) {
154421
+ if ((filtersData == null ? void 0 : filtersData.tables) && !selectedBooking && (source2 == null ? void 0 : source2.code) !== "WALK-IN") {
154218
154422
  setTableOptions(filtersData.tables.map((item2) => ({
154219
154423
  value: item2.id,
154220
154424
  label: item2.label
@@ -154223,7 +154427,7 @@ const index$7 = ({
154223
154427
  if (filtersData == null ? void 0 : filtersData.timeZone) {
154224
154428
  setCurrentTimeZone(filtersData.timeZone);
154225
154429
  }
154226
- }, [filtersData]);
154430
+ }, [filtersData, source2 == null ? void 0 : source2.code]);
154227
154431
  useEffect(() => {
154228
154432
  var _a2, _b;
154229
154433
  if (selectedBooking) {
@@ -154275,7 +154479,7 @@ const index$7 = ({
154275
154479
  useEffect(() => {
154276
154480
  if (source2 && source2.code === "WALK-IN") {
154277
154481
  const currentTime = moment();
154278
- setValue("date", currentTime.format("YYYY-MM-DD"));
154482
+ setValue("date", currentTime.format("DD/MM/YYYY"));
154279
154483
  if (timeOptions.length > 0) {
154280
154484
  const validFutureTimes = timeOptions.filter((option) => option.value).map((option) => ({
154281
154485
  ...option,
@@ -154309,10 +154513,11 @@ const index$7 = ({
154309
154513
  name: "source",
154310
154514
  options: sourceOptions.map((item2) => ({
154311
154515
  value: item2.value,
154312
- label: t2(item2.label)
154516
+ label: t2(item2.label),
154517
+ code: item2.code
154313
154518
  }))
154314
154519
  })
154315
- }), /* @__PURE__ */ jsxs("div", {
154520
+ }), !isWalkIn && /* @__PURE__ */ jsxs("div", {
154316
154521
  style: {
154317
154522
  display: "flex",
154318
154523
  gap: 10
@@ -154374,66 +154579,68 @@ const index$7 = ({
154374
154579
  options: tableOptions
154375
154580
  })
154376
154581
  })]
154377
- }), /* @__PURE__ */ jsxs("div", {
154378
- style: {
154379
- display: "flex",
154380
- gap: 10
154381
- },
154382
- children: [/* @__PURE__ */ jsx$1("div", {
154582
+ }), !isWalkIn && /* @__PURE__ */ jsxs(Fragment, {
154583
+ children: [/* @__PURE__ */ jsxs("div", {
154383
154584
  style: {
154384
- width: "50%"
154585
+ display: "flex",
154586
+ gap: 10
154587
+ },
154588
+ children: [/* @__PURE__ */ jsx$1("div", {
154589
+ style: {
154590
+ width: "50%"
154591
+ },
154592
+ children: /* @__PURE__ */ jsx$1(TextInputField, {
154593
+ disabled: !canEdit,
154594
+ control,
154595
+ id: "firstName",
154596
+ name: "firstName",
154597
+ placeholder: t2("firstname"),
154598
+ radius: "md",
154599
+ filled: true
154600
+ })
154601
+ }), /* @__PURE__ */ jsx$1("div", {
154602
+ style: {
154603
+ width: "50%"
154604
+ },
154605
+ children: /* @__PURE__ */ jsx$1(TextInputField, {
154606
+ disabled: !canEdit,
154607
+ control,
154608
+ id: "lastName",
154609
+ name: "lastName",
154610
+ placeholder: t2("lastname"),
154611
+ radius: "md",
154612
+ filled: true
154613
+ })
154614
+ })]
154615
+ }), /* @__PURE__ */ jsx$1(CustomerVisits, {
154616
+ venueId
154617
+ }), /* @__PURE__ */ jsx$1("div", {
154618
+ style: {
154619
+ width: "100%"
154385
154620
  },
154386
154621
  children: /* @__PURE__ */ jsx$1(TextInputField, {
154387
154622
  disabled: !canEdit,
154388
154623
  control,
154389
- id: "firstName",
154390
- name: "firstName",
154391
- placeholder: t2("firstname"),
154624
+ id: "phone",
154625
+ name: "phone",
154626
+ placeholder: t2("phone"),
154392
154627
  radius: "md",
154393
154628
  filled: true
154394
154629
  })
154395
154630
  }), /* @__PURE__ */ jsx$1("div", {
154396
154631
  style: {
154397
- width: "50%"
154632
+ width: "100%"
154398
154633
  },
154399
154634
  children: /* @__PURE__ */ jsx$1(TextInputField, {
154400
154635
  disabled: !canEdit,
154401
154636
  control,
154402
- id: "lastName",
154403
- name: "lastName",
154404
- placeholder: t2("lastname"),
154637
+ id: "email",
154638
+ name: "email",
154639
+ placeholder: t2("email"),
154405
154640
  radius: "md",
154406
154641
  filled: true
154407
154642
  })
154408
154643
  })]
154409
- }), /* @__PURE__ */ jsx$1(CustomerVisits, {
154410
- venueId
154411
- }), /* @__PURE__ */ jsx$1("div", {
154412
- style: {
154413
- width: "100%"
154414
- },
154415
- children: /* @__PURE__ */ jsx$1(TextInputField, {
154416
- disabled: !canEdit,
154417
- control,
154418
- id: "phone",
154419
- name: "phone",
154420
- placeholder: t2("phone"),
154421
- radius: "md",
154422
- filled: true
154423
- })
154424
- }), /* @__PURE__ */ jsx$1("div", {
154425
- style: {
154426
- width: "100%"
154427
- },
154428
- children: /* @__PURE__ */ jsx$1(TextInputField, {
154429
- disabled: !canEdit,
154430
- control,
154431
- id: "email",
154432
- name: "email",
154433
- placeholder: t2("email"),
154434
- radius: "md",
154435
- filled: true
154436
- })
154437
154644
  }), /* @__PURE__ */ jsx$1("div", {
154438
154645
  style: {
154439
154646
  width: "100%"
@@ -154445,7 +154652,7 @@ const index$7 = ({
154445
154652
  name: "notes",
154446
154653
  placeholder: t2("notes")
154447
154654
  })
154448
- }), /* @__PURE__ */ jsx$1("div", {
154655
+ }), !isWalkIn && /* @__PURE__ */ jsx$1("div", {
154449
154656
  style: {
154450
154657
  width: "100%"
154451
154658
  },