mozrest-sdk-react-dev 0.2.25 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mozrest-sdk.es.js +309 -179
- package/package.json +1 -1
- package/style.css +2 -2
package/mozrest-sdk.es.js
CHANGED
|
@@ -7,7 +7,7 @@ const pulse$5 = "_pulse_1xz3t_1";
|
|
|
7
7
|
const container$J = "_container_1xz3t_13";
|
|
8
8
|
const item$b = "_item_1xz3t_20";
|
|
9
9
|
const itemfull$1 = "_itemfull_1xz3t_26";
|
|
10
|
-
var styles$
|
|
10
|
+
var styles$1_ = {
|
|
11
11
|
"animate-pulse": "_animate-pulse_1xz3t_1",
|
|
12
12
|
pulse: pulse$5,
|
|
13
13
|
container: container$J,
|
|
@@ -16,15 +16,15 @@ var styles$1Z = {
|
|
|
16
16
|
};
|
|
17
17
|
const SkeletonPage = () => {
|
|
18
18
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
19
|
-
className: styles$
|
|
19
|
+
className: styles$1_["animate-pulse"]
|
|
20
20
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
21
|
-
className: styles$
|
|
21
|
+
className: styles$1_.container
|
|
22
22
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
23
|
-
className: styles$
|
|
23
|
+
className: styles$1_.item
|
|
24
24
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
25
|
-
className: styles$
|
|
25
|
+
className: styles$1_.item
|
|
26
26
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
27
|
-
className: styles$
|
|
27
|
+
className: styles$1_.itemfull
|
|
28
28
|
})));
|
|
29
29
|
};
|
|
30
30
|
/*! *****************************************************************************
|
|
@@ -2133,7 +2133,9 @@ const useFetch = (uri, params, extra) => {
|
|
|
2133
2133
|
return;
|
|
2134
2134
|
setTimeout(() => revalidate({ retryCount }), 5e3);
|
|
2135
2135
|
},
|
|
2136
|
-
onSuccess: (extra == null ? void 0 : extra.onSuccess) || noop$c
|
|
2136
|
+
onSuccess: (extra == null ? void 0 : extra.onSuccess) || noop$c,
|
|
2137
|
+
revalidateOnFocus: false,
|
|
2138
|
+
revalidateOnReconnect: true
|
|
2137
2139
|
});
|
|
2138
2140
|
return {
|
|
2139
2141
|
data: handleFormat(data2, (extra == null ? void 0 : extra.formatData) || noopFormat),
|
|
@@ -2154,7 +2156,7 @@ const GetToken = async ({ key: key2 }) => {
|
|
|
2154
2156
|
sessionStorage.setItem("sdk_refreshToken", data2.refresh_token);
|
|
2155
2157
|
const user = await instance$1.get("user-me");
|
|
2156
2158
|
sessionStorage.setItem("sdk_user", JSON.stringify(user));
|
|
2157
|
-
return { data:
|
|
2159
|
+
return { data: user };
|
|
2158
2160
|
};
|
|
2159
2161
|
const classNames$2 = (...classNames2) => {
|
|
2160
2162
|
const resultClasses = [];
|
|
@@ -2174,7 +2176,7 @@ const classNames$2 = (...classNames2) => {
|
|
|
2174
2176
|
return resultClasses.join(" ");
|
|
2175
2177
|
};
|
|
2176
2178
|
const container$I = "_container_1ar7o_1";
|
|
2177
|
-
var styles$
|
|
2179
|
+
var styles$1Z = {
|
|
2178
2180
|
container: container$I
|
|
2179
2181
|
};
|
|
2180
2182
|
const Container = ({
|
|
@@ -2188,12 +2190,12 @@ const Container = ({
|
|
|
2188
2190
|
return /* @__PURE__ */ React__default.createElement(Tag2, {
|
|
2189
2191
|
"aria-label": ariaLabel,
|
|
2190
2192
|
"aria-labelledby": ariaLabelledby,
|
|
2191
|
-
className: classNames$2(styles$
|
|
2193
|
+
className: classNames$2(styles$1Z["container"], className)
|
|
2192
2194
|
}, children);
|
|
2193
2195
|
};
|
|
2194
2196
|
const container$H = "_container_118v9_1";
|
|
2195
2197
|
const header$8 = "_header_118v9_5";
|
|
2196
|
-
var styles$
|
|
2198
|
+
var styles$1Y = {
|
|
2197
2199
|
container: container$H,
|
|
2198
2200
|
header: header$8
|
|
2199
2201
|
};
|
|
@@ -2204,11 +2206,11 @@ const LayoutPage$1 = ({
|
|
|
2204
2206
|
contentClassName
|
|
2205
2207
|
}) => {
|
|
2206
2208
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
2207
|
-
className: classNames$2(styles$
|
|
2209
|
+
className: classNames$2(styles$1Y.container, containerClassName, "mz-sdk-cst-pf")
|
|
2208
2210
|
}, header2 && /* @__PURE__ */ React__default.createElement("div", {
|
|
2209
2211
|
className: "mz-header"
|
|
2210
2212
|
}, header2), /* @__PURE__ */ React__default.createElement(Container, {
|
|
2211
|
-
className: classNames$2(styles$
|
|
2213
|
+
className: classNames$2(styles$1Y.content, contentClassName)
|
|
2212
2214
|
}, children));
|
|
2213
2215
|
};
|
|
2214
2216
|
const Error$1 = ({
|
|
@@ -6363,6 +6365,7 @@ const AREYOUSURENOSHOWRESERVATION = "Are you sure you want to change this reserv
|
|
|
6363
6365
|
const NOSHOW = "No show";
|
|
6364
6366
|
const VENUEISCLOSED = "Venue is closed";
|
|
6365
6367
|
const VenueClosedByConfigurationAtThisTime = "Venue is closed by configuration at this time";
|
|
6368
|
+
const AIPROMPT = "AI Prompt";
|
|
6366
6369
|
var en = {
|
|
6367
6370
|
errors,
|
|
6368
6371
|
SPECIALCLOSINGDATES,
|
|
@@ -6684,7 +6687,8 @@ var en = {
|
|
|
6684
6687
|
AREYOUSURENOSHOWRESERVATION,
|
|
6685
6688
|
NOSHOW,
|
|
6686
6689
|
VENUEISCLOSED,
|
|
6687
|
-
VenueClosedByConfigurationAtThisTime
|
|
6690
|
+
VenueClosedByConfigurationAtThisTime,
|
|
6691
|
+
AIPROMPT
|
|
6688
6692
|
};
|
|
6689
6693
|
instance.use(initReactI18next).init({
|
|
6690
6694
|
resources: {
|
|
@@ -7204,7 +7208,7 @@ const GetReviews = async ({
|
|
|
7204
7208
|
"sortby[createdAt]": "DESC"
|
|
7205
7209
|
}
|
|
7206
7210
|
});
|
|
7207
|
-
return formatData$
|
|
7211
|
+
return formatData$k(data2);
|
|
7208
7212
|
};
|
|
7209
7213
|
const formatParams$5 = (params) => {
|
|
7210
7214
|
const all2 = {};
|
|
@@ -7229,7 +7233,7 @@ const formatParams$5 = (params) => {
|
|
|
7229
7233
|
limit: 30
|
|
7230
7234
|
};
|
|
7231
7235
|
};
|
|
7232
|
-
const formatData$
|
|
7236
|
+
const formatData$k = (data2) => {
|
|
7233
7237
|
return data2.map(({ reviewerProfilePhoto, reviewerName, reply: reply2, createdAt, ...item2 }) => ({
|
|
7234
7238
|
...item2,
|
|
7235
7239
|
reviewer: {
|
|
@@ -7625,7 +7629,7 @@ const useInfinite = (service, params, limit = 5) => {
|
|
|
7625
7629
|
};
|
|
7626
7630
|
};
|
|
7627
7631
|
const btn$1 = "_btn_1wg4v_1";
|
|
7628
|
-
var styles$
|
|
7632
|
+
var styles$1X = {
|
|
7629
7633
|
btn: btn$1,
|
|
7630
7634
|
"btn--large": "_btn--large_1wg4v_16",
|
|
7631
7635
|
"btn--small": "_btn--small_1wg4v_19",
|
|
@@ -8940,7 +8944,7 @@ var icons$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
8940
8944
|
clock
|
|
8941
8945
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8942
8946
|
const icon$6 = "_icon_1i2ej_1";
|
|
8943
|
-
var styles$
|
|
8947
|
+
var styles$1W = {
|
|
8944
8948
|
icon: icon$6,
|
|
8945
8949
|
"icon--small": "_icon--small_1i2ej_12",
|
|
8946
8950
|
"icon--medium": "_icon--medium_1i2ej_15",
|
|
@@ -8954,7 +8958,7 @@ const Icon$1 = ({
|
|
|
8954
8958
|
...props
|
|
8955
8959
|
}) => {
|
|
8956
8960
|
return /* @__PURE__ */ React__default.createElement("span", {
|
|
8957
|
-
className: classNames$2(styles$
|
|
8961
|
+
className: classNames$2(styles$1W["icon"], styles$1W[`icon--${size}`], className),
|
|
8958
8962
|
...props
|
|
8959
8963
|
}, icons$2[icon2]());
|
|
8960
8964
|
};
|
|
@@ -8971,7 +8975,7 @@ const Button$3 = React__default.forwardRef(({
|
|
|
8971
8975
|
...props
|
|
8972
8976
|
}, ref = null) => {
|
|
8973
8977
|
const componentProps = {
|
|
8974
|
-
className: classNames$2(styles$
|
|
8978
|
+
className: classNames$2(styles$1X["btn"], styles$1X[`btn--${mode}`], styles$1X[`btn--${size}`], "mz-btn", className),
|
|
8975
8979
|
...props
|
|
8976
8980
|
};
|
|
8977
8981
|
const IconBtn = icon2 ? /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
@@ -13066,7 +13070,7 @@ var FormProvider = function FormProvider2(_ref3) {
|
|
|
13066
13070
|
}, children);
|
|
13067
13071
|
};
|
|
13068
13072
|
var _excluded$c = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
13069
|
-
var Form$
|
|
13073
|
+
var Form$c = function Form(_ref3, ref) {
|
|
13070
13074
|
var name = _ref3.name, initialValues = _ref3.initialValues, fields = _ref3.fields, form2 = _ref3.form, preserve = _ref3.preserve, children = _ref3.children, _ref$component = _ref3.component, Component2 = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref3.validateMessages, _ref$validateTrigger = _ref3.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref3.onValuesChange, _onFieldsChange = _ref3.onFieldsChange, _onFinish = _ref3.onFinish, onFinishFailed = _ref3.onFinishFailed, restProps = _objectWithoutProperties$w(_ref3, _excluded$c);
|
|
13071
13075
|
var formContext = React.useContext(FormContext);
|
|
13072
13076
|
var _useForm = useForm(form2), _useForm2 = _slicedToArray$a(_useForm, 1), formInstance = _useForm2[0];
|
|
@@ -13194,7 +13198,7 @@ function useWatch() {
|
|
|
13194
13198
|
}, [isValidForm]);
|
|
13195
13199
|
return value2;
|
|
13196
13200
|
}
|
|
13197
|
-
var InternalForm = /* @__PURE__ */ React.forwardRef(Form$
|
|
13201
|
+
var InternalForm = /* @__PURE__ */ React.forwardRef(Form$c);
|
|
13198
13202
|
var RefForm = InternalForm;
|
|
13199
13203
|
RefForm.FormProvider = FormProvider;
|
|
13200
13204
|
RefForm.Field = WrapperField;
|
|
@@ -32581,7 +32585,7 @@ function Field(_ref3) {
|
|
|
32581
32585
|
}
|
|
32582
32586
|
return createElement$1(asElement, _extends$O({}, field2, props), children);
|
|
32583
32587
|
}
|
|
32584
|
-
var Form$
|
|
32588
|
+
var Form$b = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
32585
32589
|
var action = props.action, rest = _objectWithoutPropertiesLoose$y(props, ["action"]);
|
|
32586
32590
|
var _action = action != null ? action : "#";
|
|
32587
32591
|
var _useFormikContext = useFormikContext(), handleReset = _useFormikContext.handleReset, handleSubmit = _useFormikContext.handleSubmit;
|
|
@@ -32592,7 +32596,7 @@ var Form$c = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
32592
32596
|
action: _action
|
|
32593
32597
|
}, rest));
|
|
32594
32598
|
});
|
|
32595
|
-
Form$
|
|
32599
|
+
Form$b.displayName = "Form";
|
|
32596
32600
|
function connect(Comp) {
|
|
32597
32601
|
var C2 = function C3(props) {
|
|
32598
32602
|
return createElement$1(FormikConsumer, null, function(formik) {
|
|
@@ -32833,17 +32837,17 @@ FieldArrayInner.defaultProps = {
|
|
|
32833
32837
|
};
|
|
32834
32838
|
var FieldArray = /* @__PURE__ */ connect(FieldArrayInner);
|
|
32835
32839
|
const sronly = "_sronly_1n9bw_1";
|
|
32836
|
-
var styles$
|
|
32840
|
+
var styles$1V = {
|
|
32837
32841
|
sronly
|
|
32838
32842
|
};
|
|
32839
32843
|
const SrOnly = ({ children }) => {
|
|
32840
32844
|
return /* @__PURE__ */ React__default.createElement("span", {
|
|
32841
|
-
className: styles$
|
|
32845
|
+
className: styles$1V.sronly
|
|
32842
32846
|
}, children);
|
|
32843
32847
|
};
|
|
32844
|
-
const label$
|
|
32845
|
-
var styles$
|
|
32846
|
-
label: label$
|
|
32848
|
+
const label$6 = "_label_1vki7_1";
|
|
32849
|
+
var styles$1U = {
|
|
32850
|
+
label: label$6,
|
|
32847
32851
|
"label--hidden": "_label--hidden_1vki7_9",
|
|
32848
32852
|
"label--bold": "_label--bold_1vki7_13"
|
|
32849
32853
|
};
|
|
@@ -35455,15 +35459,15 @@ var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_c
|
|
|
35455
35459
|
}), _defineProperty$w(_class2, "supportedWrappers", ["div", "span"]), _defineProperty$w(_class2, "displayName", "ReactTooltip"), _class2)) || _class) || _class) || _class) || _class) || _class) || _class) || _class;
|
|
35456
35460
|
const tooltip$2 = "_tooltip_17puf_1";
|
|
35457
35461
|
const tooltip__icon$1 = "_tooltip__icon_17puf_4";
|
|
35458
|
-
var styles$
|
|
35462
|
+
var styles$1T = {
|
|
35459
35463
|
tooltip: tooltip$2,
|
|
35460
35464
|
tooltip__icon: tooltip__icon$1
|
|
35461
35465
|
};
|
|
35462
35466
|
const Tooltip$1 = ({ children }) => {
|
|
35463
35467
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
35464
|
-
className: styles$
|
|
35468
|
+
className: styles$1T.tooltip
|
|
35465
35469
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
35466
|
-
className: styles$
|
|
35470
|
+
className: styles$1T.tooltip__icon,
|
|
35467
35471
|
icon: "question",
|
|
35468
35472
|
size: "small",
|
|
35469
35473
|
"data-tip": true
|
|
@@ -35482,7 +35486,7 @@ const Label$1 = ({
|
|
|
35482
35486
|
...props
|
|
35483
35487
|
}) => {
|
|
35484
35488
|
const label2 = /* @__PURE__ */ React__default.createElement("label", {
|
|
35485
|
-
className: styles$
|
|
35489
|
+
className: styles$1U.label,
|
|
35486
35490
|
...props
|
|
35487
35491
|
}, children, tooltip2 && /* @__PURE__ */ React__default.createElement(Tooltip$1, null, tooltip2));
|
|
35488
35492
|
return isHidden2 ? /* @__PURE__ */ React__default.createElement(SrOnly, null, label2) : label2;
|
|
@@ -35589,15 +35593,15 @@ const formatHeader = (accessToken) => {
|
|
|
35589
35593
|
};
|
|
35590
35594
|
const tooltip$1 = "_tooltip_17puf_1";
|
|
35591
35595
|
const tooltip__icon = "_tooltip__icon_17puf_4";
|
|
35592
|
-
var styles$
|
|
35596
|
+
var styles$1S = {
|
|
35593
35597
|
tooltip: tooltip$1,
|
|
35594
35598
|
tooltip__icon
|
|
35595
35599
|
};
|
|
35596
35600
|
const LockTooltip = ({ children }) => {
|
|
35597
35601
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
35598
|
-
className: styles$
|
|
35602
|
+
className: styles$1S.tooltip
|
|
35599
35603
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
35600
|
-
className: styles$
|
|
35604
|
+
className: styles$1S.tooltip__icon,
|
|
35601
35605
|
icon: "lock",
|
|
35602
35606
|
size: "small",
|
|
35603
35607
|
"data-tip": children
|
|
@@ -35609,7 +35613,7 @@ const LockTooltip = ({ children }) => {
|
|
|
35609
35613
|
}));
|
|
35610
35614
|
};
|
|
35611
35615
|
const input$2 = "_input_1ufjp_1";
|
|
35612
|
-
var styles$
|
|
35616
|
+
var styles$1R = {
|
|
35613
35617
|
input: input$2
|
|
35614
35618
|
};
|
|
35615
35619
|
const TextArea$1 = React__default.forwardRef(({
|
|
@@ -35641,7 +35645,7 @@ const TextArea$1 = React__default.forwardRef(({
|
|
|
35641
35645
|
}, label2), /* @__PURE__ */ React__default.createElement("div", {
|
|
35642
35646
|
style: { position: "relative" }
|
|
35643
35647
|
}, /* @__PURE__ */ React__default.createElement("textarea", {
|
|
35644
|
-
className: styles$
|
|
35648
|
+
className: styles$1R.input,
|
|
35645
35649
|
onChange: handleChange,
|
|
35646
35650
|
id: id2,
|
|
35647
35651
|
name: id2,
|
|
@@ -35656,7 +35660,7 @@ const TextArea$1 = React__default.forwardRef(({
|
|
|
35656
35660
|
}, /* @__PURE__ */ React__default.createElement(LockTooltip, null, disabledTooltip))));
|
|
35657
35661
|
});
|
|
35658
35662
|
const text$1 = "_text_1f1l5_1";
|
|
35659
|
-
var styles$
|
|
35663
|
+
var styles$1Q = {
|
|
35660
35664
|
text: text$1
|
|
35661
35665
|
};
|
|
35662
35666
|
const FieldError = ({
|
|
@@ -35665,7 +35669,7 @@ const FieldError = ({
|
|
|
35665
35669
|
}) => {
|
|
35666
35670
|
if (touched && error3) {
|
|
35667
35671
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
35668
|
-
className: styles$
|
|
35672
|
+
className: styles$1Q.text
|
|
35669
35673
|
}, error3);
|
|
35670
35674
|
}
|
|
35671
35675
|
return null;
|
|
@@ -38310,6 +38314,44 @@ create$2().matches(phoneRegExp, instance.t("PHONENUMBERISNOTVALID"));
|
|
|
38310
38314
|
const ContextUserRole = React__default.createContext([
|
|
38311
38315
|
[]
|
|
38312
38316
|
]);
|
|
38317
|
+
const label$5 = "_label_7mgn7_1";
|
|
38318
|
+
const comment$3 = "_comment_7mgn7_5";
|
|
38319
|
+
const translate = "_translate_7mgn7_9";
|
|
38320
|
+
var styles$1P = {
|
|
38321
|
+
label: label$5,
|
|
38322
|
+
comment: comment$3,
|
|
38323
|
+
translate
|
|
38324
|
+
};
|
|
38325
|
+
const label$4 = "_label_15hk9_1";
|
|
38326
|
+
const translation$1 = "_translation_15hk9_6";
|
|
38327
|
+
var styles$1O = {
|
|
38328
|
+
label: label$4,
|
|
38329
|
+
translation: translation$1
|
|
38330
|
+
};
|
|
38331
|
+
const TranslateReply = async ({
|
|
38332
|
+
text: text2,
|
|
38333
|
+
locale: locale2
|
|
38334
|
+
}) => {
|
|
38335
|
+
const data2 = await instance$1.post(`listing/venue-listing-reviews/reply/translate`, { text: text2, locale: locale2 });
|
|
38336
|
+
return { data: data2 };
|
|
38337
|
+
};
|
|
38338
|
+
const ReplyTranslation = ({ text: text2 }) => {
|
|
38339
|
+
const { t: t2 } = useTranslation();
|
|
38340
|
+
const { isExecuting, execute, data: data2 } = useService(TranslateReply);
|
|
38341
|
+
useEffect(() => {
|
|
38342
|
+
if (text2) {
|
|
38343
|
+
execute({ text: text2, locale: "en" });
|
|
38344
|
+
}
|
|
38345
|
+
}, [text2]);
|
|
38346
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, isExecuting && /* @__PURE__ */ React__default.createElement("span", null, t2("TRANSLATING"), "..."), !isExecuting && /* @__PURE__ */ React__default.createElement("div", {
|
|
38347
|
+
className: styles$1O.translation
|
|
38348
|
+
}, /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
38349
|
+
htmlFor: "",
|
|
38350
|
+
className: styles$1O.label
|
|
38351
|
+
}, t2("TRANSLATION")), /* @__PURE__ */ React__default.createElement("p", {
|
|
38352
|
+
className: styles$1O.translation
|
|
38353
|
+
}, data2 && data2.translatedText ? data2.translatedText : "---")));
|
|
38354
|
+
};
|
|
38313
38355
|
const ReplyForm = ({
|
|
38314
38356
|
reviewId,
|
|
38315
38357
|
onSucess,
|
|
@@ -38318,13 +38360,16 @@ const ReplyForm = ({
|
|
|
38318
38360
|
setShowTemplates,
|
|
38319
38361
|
isMobile: isMobile2 = false,
|
|
38320
38362
|
onSuggestTemplate,
|
|
38321
|
-
isSuggesting = false
|
|
38363
|
+
isSuggesting = false,
|
|
38364
|
+
locale: locale2
|
|
38322
38365
|
}) => {
|
|
38366
|
+
var _a2, _b;
|
|
38323
38367
|
const { t: t2 } = useTranslation();
|
|
38324
38368
|
const { execute, isExecuting } = useService(AddReviewReply);
|
|
38325
38369
|
useContext(ContextTemplate);
|
|
38326
38370
|
const [roles] = useContext(ContextUserRole);
|
|
38327
38371
|
const ref = useRef(null);
|
|
38372
|
+
const [showTranslation, setShowTranslation] = useState(false);
|
|
38328
38373
|
const handleExecute = async (data2) => {
|
|
38329
38374
|
await execute({ reviewId, data: data2 });
|
|
38330
38375
|
onSucess();
|
|
@@ -38333,7 +38378,7 @@ const ReplyForm = ({
|
|
|
38333
38378
|
initialValues: { comment: "" },
|
|
38334
38379
|
validationSchema: validate({ comment: stringRequired }),
|
|
38335
38380
|
onSubmit: handleExecute
|
|
38336
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
38381
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(TemplateUpdate, {
|
|
38337
38382
|
locationName,
|
|
38338
38383
|
reviewerName
|
|
38339
38384
|
}), /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
@@ -38346,7 +38391,17 @@ const ReplyForm = ({
|
|
|
38346
38391
|
rows: 8,
|
|
38347
38392
|
ref,
|
|
38348
38393
|
placeholder: t2("TYPEYOURANSWER")
|
|
38349
|
-
}), /* @__PURE__ */ React__default.createElement(
|
|
38394
|
+
}), ((_a2 = ref.current) == null ? void 0 : _a2.value) && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
38395
|
+
style: { marginTop: 10 }
|
|
38396
|
+
}, !showTranslation && locale2 !== "en" && /* @__PURE__ */ React__default.createElement("span", {
|
|
38397
|
+
className: styles$1P.translate,
|
|
38398
|
+
onClick: () => setShowTranslation(true)
|
|
38399
|
+
}, t2("SHOWTRANSLATION")), showTranslation && locale2 !== "en" && /* @__PURE__ */ React__default.createElement("span", {
|
|
38400
|
+
className: styles$1P.translate,
|
|
38401
|
+
onClick: () => setShowTranslation(false)
|
|
38402
|
+
}, t2("HIDETRANSLATION"))), /* @__PURE__ */ React__default.createElement("div", null, showTranslation && /* @__PURE__ */ React__default.createElement(ReplyTranslation, {
|
|
38403
|
+
text: (_b = ref.current) == null ? void 0 : _b.value
|
|
38404
|
+
}))), /* @__PURE__ */ React__default.createElement("br", null), /* @__PURE__ */ React__default.createElement("div", {
|
|
38350
38405
|
style: { display: "flex", justifyContent: isMobile2 ? "flex-end" : "space-between" }
|
|
38351
38406
|
}, !isMobile2 && /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
38352
38407
|
onClick: () => {
|
|
@@ -38371,23 +38426,23 @@ const ReplyForm = ({
|
|
|
38371
38426
|
children: t2("POSTREPLY")
|
|
38372
38427
|
}))))));
|
|
38373
38428
|
};
|
|
38374
|
-
const label$
|
|
38375
|
-
const comment$
|
|
38429
|
+
const label$3 = "_label_x1r40_1";
|
|
38430
|
+
const comment$2 = "_comment_x1r40_7";
|
|
38376
38431
|
const date$4 = "_date_x1r40_12";
|
|
38377
|
-
var styles$
|
|
38378
|
-
label: label$
|
|
38379
|
-
comment: comment$
|
|
38432
|
+
var styles$1N = {
|
|
38433
|
+
label: label$3,
|
|
38434
|
+
comment: comment$2,
|
|
38380
38435
|
date: date$4
|
|
38381
38436
|
};
|
|
38382
38437
|
const Reply = ({ reply: reply2 }) => {
|
|
38383
38438
|
const { t: t2 } = useTranslation();
|
|
38384
38439
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
38385
38440
|
htmlFor: "",
|
|
38386
|
-
className: styles$
|
|
38441
|
+
className: styles$1N.label
|
|
38387
38442
|
}, t2("REPLY")), /* @__PURE__ */ React__default.createElement("p", {
|
|
38388
|
-
className: styles$
|
|
38443
|
+
className: styles$1N.comment
|
|
38389
38444
|
}, reply2.comment), /* @__PURE__ */ React__default.createElement("span", {
|
|
38390
|
-
className: styles$
|
|
38445
|
+
className: styles$1N.date
|
|
38391
38446
|
}, reply2.createdAt), /* @__PURE__ */ React__default.createElement("br", null));
|
|
38392
38447
|
};
|
|
38393
38448
|
const Start = (props) => {
|
|
@@ -38587,7 +38642,7 @@ const GetReplyTemplates = async ({
|
|
|
38587
38642
|
offset: page * limit
|
|
38588
38643
|
}
|
|
38589
38644
|
});
|
|
38590
|
-
return formatData$
|
|
38645
|
+
return formatData$j(data2);
|
|
38591
38646
|
};
|
|
38592
38647
|
const formatParams$4 = (params = {}) => {
|
|
38593
38648
|
let all2 = {};
|
|
@@ -38606,7 +38661,7 @@ const formatParams$4 = (params = {}) => {
|
|
|
38606
38661
|
limit: 30
|
|
38607
38662
|
};
|
|
38608
38663
|
};
|
|
38609
|
-
const formatData$
|
|
38664
|
+
const formatData$j = (data2) => {
|
|
38610
38665
|
return data2.map((item2) => {
|
|
38611
38666
|
return {
|
|
38612
38667
|
id: item2.id,
|
|
@@ -38626,7 +38681,7 @@ const formatData$i = (data2) => {
|
|
|
38626
38681
|
});
|
|
38627
38682
|
};
|
|
38628
38683
|
const heading = "_heading_1fifa_1";
|
|
38629
|
-
var styles$
|
|
38684
|
+
var styles$1M = {
|
|
38630
38685
|
heading,
|
|
38631
38686
|
"heading--large": "_heading--large_1fifa_7",
|
|
38632
38687
|
"heading--medium": "_heading--medium_1fifa_15",
|
|
@@ -38636,13 +38691,13 @@ const Heading = ({ children, level = "h1", size = "medium", id: id2, ...props })
|
|
|
38636
38691
|
const Tag2 = level;
|
|
38637
38692
|
return /* @__PURE__ */ React__default.createElement(Tag2, {
|
|
38638
38693
|
id: id2,
|
|
38639
|
-
className: classNames$2(styles$
|
|
38694
|
+
className: classNames$2(styles$1M["heading"], styles$1M[`heading--${size}`]),
|
|
38640
38695
|
...props
|
|
38641
38696
|
}, children);
|
|
38642
38697
|
};
|
|
38643
38698
|
const header$7 = "_header_190p9_1";
|
|
38644
38699
|
const icon$5 = "_icon_190p9_10";
|
|
38645
|
-
var styles$
|
|
38700
|
+
var styles$1L = {
|
|
38646
38701
|
header: header$7,
|
|
38647
38702
|
icon: icon$5
|
|
38648
38703
|
};
|
|
@@ -38654,15 +38709,15 @@ const Header$4 = ({ header: header2 }) => {
|
|
|
38654
38709
|
return header2;
|
|
38655
38710
|
}
|
|
38656
38711
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
38657
|
-
className: styles$
|
|
38712
|
+
className: styles$1L.header
|
|
38658
38713
|
}, /* @__PURE__ */ React__default.createElement(Heading, null, header2.title), typeof header2.icon === "string" && /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
38659
38714
|
icon: header2.icon,
|
|
38660
38715
|
onClick: header2.onClickIcon,
|
|
38661
|
-
className: styles$
|
|
38716
|
+
className: styles$1L.icon
|
|
38662
38717
|
}), typeof header2.icon !== "string" && header2.icon && header2.icon);
|
|
38663
38718
|
};
|
|
38664
38719
|
const container$G = "_container_pd6ji_1";
|
|
38665
|
-
var styles$
|
|
38720
|
+
var styles$1K = {
|
|
38666
38721
|
container: container$G
|
|
38667
38722
|
};
|
|
38668
38723
|
const Card = ({
|
|
@@ -38672,15 +38727,15 @@ const Card = ({
|
|
|
38672
38727
|
classNameContent
|
|
38673
38728
|
}) => {
|
|
38674
38729
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
38675
|
-
className: classNames$2(styles$
|
|
38730
|
+
className: classNames$2(styles$1K.container, className, "mz-card")
|
|
38676
38731
|
}, /* @__PURE__ */ React__default.createElement(Header$4, {
|
|
38677
38732
|
header: header2
|
|
38678
38733
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
38679
|
-
className: classNames$2(styles$
|
|
38734
|
+
className: classNames$2(styles$1K.content, classNameContent)
|
|
38680
38735
|
}, children)));
|
|
38681
38736
|
};
|
|
38682
38737
|
const text = "_text_12cto_1";
|
|
38683
|
-
var styles$
|
|
38738
|
+
var styles$1J = {
|
|
38684
38739
|
text
|
|
38685
38740
|
};
|
|
38686
38741
|
const tagsMap$2 = {
|
|
@@ -38691,7 +38746,7 @@ const tagsMap$2 = {
|
|
|
38691
38746
|
};
|
|
38692
38747
|
const TemplateText = ({ text: text2 }) => {
|
|
38693
38748
|
return /* @__PURE__ */ React__default.createElement("p", {
|
|
38694
|
-
className: styles$
|
|
38749
|
+
className: styles$1J.text
|
|
38695
38750
|
}, text2.split("@@").map((item2, index2) => {
|
|
38696
38751
|
if (tagsMap$2[item2]) {
|
|
38697
38752
|
return /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -38702,7 +38757,7 @@ const TemplateText = ({ text: text2 }) => {
|
|
|
38702
38757
|
}));
|
|
38703
38758
|
};
|
|
38704
38759
|
const button$9 = "_button_1hbqp_1";
|
|
38705
|
-
var styles$
|
|
38760
|
+
var styles$1I = {
|
|
38706
38761
|
button: button$9
|
|
38707
38762
|
};
|
|
38708
38763
|
const Template$1 = ({ text: text2, onClickUse }) => {
|
|
@@ -38713,14 +38768,14 @@ const Template$1 = ({ text: text2, onClickUse }) => {
|
|
|
38713
38768
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(TemplateText, {
|
|
38714
38769
|
text: text2
|
|
38715
38770
|
}), /* @__PURE__ */ React__default.createElement("button", {
|
|
38716
|
-
className: styles$
|
|
38771
|
+
className: styles$1I.button,
|
|
38717
38772
|
onClick: handleClickUse
|
|
38718
38773
|
}, "Use"));
|
|
38719
38774
|
};
|
|
38720
38775
|
const container$F = "_container_1ej4w_1";
|
|
38721
38776
|
const hide$1 = "_hide_1ej4w_8";
|
|
38722
38777
|
const toolbar$3 = "_toolbar_1ej4w_12";
|
|
38723
|
-
var styles$
|
|
38778
|
+
var styles$1H = {
|
|
38724
38779
|
container: container$F,
|
|
38725
38780
|
hide: hide$1,
|
|
38726
38781
|
toolbar: toolbar$3
|
|
@@ -39016,7 +39071,7 @@ function parse$2(value2, root2, parent, rule, rules2, rulesets, pseudo, points,
|
|
|
39016
39071
|
switch (peek()) {
|
|
39017
39072
|
case 42:
|
|
39018
39073
|
case 47:
|
|
39019
|
-
append(comment$
|
|
39074
|
+
append(comment$1(commenter(next(), caret()), root2, parent), declarations);
|
|
39020
39075
|
break;
|
|
39021
39076
|
default:
|
|
39022
39077
|
characters2 += "/";
|
|
@@ -39093,7 +39148,7 @@ function ruleset(value2, root2, parent, index2, offset3, rules2, points, type4,
|
|
|
39093
39148
|
props[k2++] = z2;
|
|
39094
39149
|
return node(value2, root2, parent, offset3 === 0 ? RULESET : type4, props, children, length2);
|
|
39095
39150
|
}
|
|
39096
|
-
function comment$
|
|
39151
|
+
function comment$1(value2, root2, parent) {
|
|
39097
39152
|
return node(value2, root2, parent, COMMENT, from(char()), substr(value2, 2, -2), 0);
|
|
39098
39153
|
}
|
|
39099
39154
|
function declaration(value2, root2, parent, length2) {
|
|
@@ -43533,7 +43588,7 @@ var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
43533
43588
|
var Select$1 = StateManagedSelect;
|
|
43534
43589
|
const container$E = "_container_ut3y7_1";
|
|
43535
43590
|
const tooltip = "_tooltip_ut3y7_5";
|
|
43536
|
-
var styles$
|
|
43591
|
+
var styles$1G = {
|
|
43537
43592
|
container: container$E,
|
|
43538
43593
|
tooltip
|
|
43539
43594
|
};
|
|
@@ -43561,7 +43616,7 @@ const NewSelect = ({
|
|
|
43561
43616
|
...props
|
|
43562
43617
|
}) => {
|
|
43563
43618
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
43564
|
-
className: styles$
|
|
43619
|
+
className: styles$1G.container
|
|
43565
43620
|
}, label2 && /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
43566
43621
|
htmlFor: id2
|
|
43567
43622
|
}, label2), /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -43572,7 +43627,7 @@ const NewSelect = ({
|
|
|
43572
43627
|
id: id2,
|
|
43573
43628
|
isDisabled
|
|
43574
43629
|
}), isDisabled && /* @__PURE__ */ React__default.createElement("div", {
|
|
43575
|
-
className: styles$
|
|
43630
|
+
className: styles$1G.tooltip
|
|
43576
43631
|
}, /* @__PURE__ */ React__default.createElement(LockTooltip, null, disabledTooltip))));
|
|
43577
43632
|
};
|
|
43578
43633
|
const getTypesOptions = (data2 = []) => {
|
|
@@ -43698,11 +43753,11 @@ const TemplatesModal = ({
|
|
|
43698
43753
|
icon: "close",
|
|
43699
43754
|
onClickIcon: onClose2
|
|
43700
43755
|
},
|
|
43701
|
-
className: classNames$2(styles$
|
|
43702
|
-
[styles$
|
|
43756
|
+
className: classNames$2(styles$1H.container, {
|
|
43757
|
+
[styles$1H.hide]: !open
|
|
43703
43758
|
})
|
|
43704
43759
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43705
|
-
className: styles$
|
|
43760
|
+
className: styles$1H.toolbar
|
|
43706
43761
|
}, /* @__PURE__ */ React__default.createElement(NewSelect, {
|
|
43707
43762
|
label: t2("REPLYTEMPLATETYPE"),
|
|
43708
43763
|
options: typeOptions,
|
|
@@ -43734,7 +43789,7 @@ const statusbar__icons = "_statusbar__icons_xc9df_44";
|
|
|
43734
43789
|
const platform = "_platform_xc9df_48";
|
|
43735
43790
|
const button$8 = "_button_xc9df_61";
|
|
43736
43791
|
const flag$3 = "_flag_xc9df_70";
|
|
43737
|
-
var styles$
|
|
43792
|
+
var styles$1F = {
|
|
43738
43793
|
detail: detail$1,
|
|
43739
43794
|
hidden,
|
|
43740
43795
|
reviewer: reviewer$1,
|
|
@@ -43746,26 +43801,18 @@ var styles$1G = {
|
|
|
43746
43801
|
button: button$8,
|
|
43747
43802
|
flag: flag$3
|
|
43748
43803
|
};
|
|
43749
|
-
const label$3 = "_label_7mgn7_1";
|
|
43750
|
-
const comment$1 = "_comment_7mgn7_5";
|
|
43751
|
-
const translate = "_translate_7mgn7_9";
|
|
43752
|
-
var styles$1F = {
|
|
43753
|
-
label: label$3,
|
|
43754
|
-
comment: comment$1,
|
|
43755
|
-
translate
|
|
43756
|
-
};
|
|
43757
43804
|
const Comment = ({ children, showTranslation, setShowTranslation, locale: locale2 }) => {
|
|
43758
43805
|
const { t: t2 } = useTranslation();
|
|
43759
43806
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
43760
43807
|
htmlFor: "",
|
|
43761
|
-
className: styles$
|
|
43808
|
+
className: styles$1P.label
|
|
43762
43809
|
}, t2("REVIEW")), /* @__PURE__ */ React__default.createElement("p", {
|
|
43763
|
-
className: styles$
|
|
43810
|
+
className: styles$1P.comment
|
|
43764
43811
|
}, children), !showTranslation && locale2 !== "en" && /* @__PURE__ */ React__default.createElement("span", {
|
|
43765
|
-
className: styles$
|
|
43812
|
+
className: styles$1P.translate,
|
|
43766
43813
|
onClick: () => setShowTranslation(true)
|
|
43767
43814
|
}, t2("SHOWTRANSLATION")), showTranslation && locale2 !== "en" && /* @__PURE__ */ React__default.createElement("span", {
|
|
43768
|
-
className: styles$
|
|
43815
|
+
className: styles$1P.translate,
|
|
43769
43816
|
onClick: () => setShowTranslation(false)
|
|
43770
43817
|
}, t2("HIDETRANSLATION")));
|
|
43771
43818
|
};
|
|
@@ -43839,26 +43886,26 @@ const DetailMobile = ({
|
|
|
43839
43886
|
const openModal = () => setShowTemplates(true);
|
|
43840
43887
|
const closeModal = () => setShowTemplates(false);
|
|
43841
43888
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
43842
|
-
className: classNames$2(styles$
|
|
43843
|
-
[styles$
|
|
43889
|
+
className: classNames$2(styles$1F.detail, {
|
|
43890
|
+
[styles$1F.hidden]: !openForm
|
|
43844
43891
|
})
|
|
43845
43892
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43846
43893
|
onClick,
|
|
43847
|
-
className: styles$
|
|
43894
|
+
className: styles$1F.back
|
|
43848
43895
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
43849
43896
|
icon: "close"
|
|
43850
43897
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
43851
|
-
className: styles$
|
|
43898
|
+
className: styles$1F.statusbar
|
|
43852
43899
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43853
|
-
className: styles$
|
|
43900
|
+
className: styles$1F.statusbar__icons
|
|
43854
43901
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
43855
43902
|
icon: reply2 ? "mailReplied" : "mailNotReplied"
|
|
43856
43903
|
}), /* @__PURE__ */ React__default.createElement("img", {
|
|
43857
43904
|
alt: platform2,
|
|
43858
43905
|
src: platformImages[platform2],
|
|
43859
|
-
className: styles$
|
|
43906
|
+
className: styles$1F.platform
|
|
43860
43907
|
})), /* @__PURE__ */ React__default.createElement("div", null, createdAt)), /* @__PURE__ */ React__default.createElement("strong", {
|
|
43861
|
-
className: styles$
|
|
43908
|
+
className: styles$1F.reviewer
|
|
43862
43909
|
}, reviewer2.name, " ", ` `, locale2 && /* @__PURE__ */ React__default.createElement(CountryFlag, {
|
|
43863
43910
|
locale: locale2
|
|
43864
43911
|
})), /* @__PURE__ */ React__default.createElement(StartScore, {
|
|
@@ -43878,7 +43925,7 @@ const DetailMobile = ({
|
|
|
43878
43925
|
}, comment2), showTranslation && /* @__PURE__ */ React__default.createElement(CommentTranslation, {
|
|
43879
43926
|
commentId: id2
|
|
43880
43927
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
43881
|
-
className: styles$
|
|
43928
|
+
className: styles$1F["container--reply"]
|
|
43882
43929
|
}, reply2 ? /* @__PURE__ */ React__default.createElement(Reply, {
|
|
43883
43930
|
reply: reply2
|
|
43884
43931
|
}) : /* @__PURE__ */ React__default.createElement(ReplyForm, {
|
|
@@ -43887,7 +43934,8 @@ const DetailMobile = ({
|
|
|
43887
43934
|
locationName,
|
|
43888
43935
|
onSucess: onReload,
|
|
43889
43936
|
isMobile: true,
|
|
43890
|
-
isSuggesting
|
|
43937
|
+
isSuggesting,
|
|
43938
|
+
locale: locale2
|
|
43891
43939
|
})), /* @__PURE__ */ React__default.createElement(TemplatesModal, {
|
|
43892
43940
|
open: showTemplates,
|
|
43893
43941
|
rating,
|
|
@@ -43954,7 +44002,8 @@ const DetailDesktop = ({
|
|
|
43954
44002
|
onSucess: onReload,
|
|
43955
44003
|
setShowTemplates: setShowTemplate,
|
|
43956
44004
|
onSuggestTemplate,
|
|
43957
|
-
isSuggesting
|
|
44005
|
+
isSuggesting,
|
|
44006
|
+
locale: locale2
|
|
43958
44007
|
})));
|
|
43959
44008
|
};
|
|
43960
44009
|
const container$D = "_container_1br0u_1";
|
|
@@ -49855,9 +49904,9 @@ const GetVenueListingsOptions = async () => {
|
|
|
49855
49904
|
limit: 1e3
|
|
49856
49905
|
}
|
|
49857
49906
|
});
|
|
49858
|
-
return formatData$
|
|
49907
|
+
return formatData$i(data2);
|
|
49859
49908
|
};
|
|
49860
|
-
const formatData$
|
|
49909
|
+
const formatData$i = (data2) => {
|
|
49861
49910
|
return {
|
|
49862
49911
|
data: data2.data.map(({ id: id2, businessName }) => ({
|
|
49863
49912
|
id: id2,
|
|
@@ -50253,9 +50302,9 @@ const GetVenueListingModule = async ({
|
|
|
50253
50302
|
Authorization: `Bearer ${accessToken}`
|
|
50254
50303
|
}
|
|
50255
50304
|
});
|
|
50256
|
-
return formatData$
|
|
50305
|
+
return formatData$h(data2);
|
|
50257
50306
|
};
|
|
50258
|
-
const formatData$
|
|
50307
|
+
const formatData$h = (values = {}) => {
|
|
50259
50308
|
const { country, ...rest } = values;
|
|
50260
50309
|
const _country = countries$1 == null ? void 0 : countries$1.find(({ id: id2 }) => id2 === country);
|
|
50261
50310
|
return {
|
|
@@ -52692,7 +52741,7 @@ const Accountpages$1 = () => {
|
|
|
52692
52741
|
initialValues: {},
|
|
52693
52742
|
onSubmit: () => {
|
|
52694
52743
|
}
|
|
52695
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52744
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52696
52745
|
id: "firstName",
|
|
52697
52746
|
label: t2("FIRSTNAME")
|
|
52698
52747
|
}), /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
@@ -52743,7 +52792,7 @@ const Accountpages = () => {
|
|
|
52743
52792
|
initialValues: {},
|
|
52744
52793
|
onSubmit: () => {
|
|
52745
52794
|
}
|
|
52746
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52795
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52747
52796
|
id: "firstName",
|
|
52748
52797
|
label: "First Name"
|
|
52749
52798
|
}), /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
@@ -52772,7 +52821,7 @@ const Accountpages = () => {
|
|
|
52772
52821
|
initialValues: {},
|
|
52773
52822
|
onSubmit: () => {
|
|
52774
52823
|
}
|
|
52775
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52824
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52776
52825
|
id: "currentPassword",
|
|
52777
52826
|
label: "Current password",
|
|
52778
52827
|
type: "password"
|
|
@@ -52803,10 +52852,10 @@ const GetUserNotificationSettings = async ({}) => {
|
|
|
52803
52852
|
const UpdateUserNotificationSettings = async ({
|
|
52804
52853
|
data: data2
|
|
52805
52854
|
}) => {
|
|
52806
|
-
await instance$1.put(`listing/notification-settings`, formatData$
|
|
52855
|
+
await instance$1.put(`listing/notification-settings`, formatData$g(data2));
|
|
52807
52856
|
return { data: data2 };
|
|
52808
52857
|
};
|
|
52809
|
-
const formatData$
|
|
52858
|
+
const formatData$g = (data2) => {
|
|
52810
52859
|
return {
|
|
52811
52860
|
dailyReport: data2.dailyReport ? "true" : "false",
|
|
52812
52861
|
weeklyReport: data2.weeklyReport ? "true" : "false",
|
|
@@ -52819,9 +52868,9 @@ const formatData$f = (data2) => {
|
|
|
52819
52868
|
emails: data2.emails
|
|
52820
52869
|
};
|
|
52821
52870
|
};
|
|
52822
|
-
const mainConatiner$2 = "
|
|
52823
|
-
const container$v = "
|
|
52824
|
-
const item$9 = "
|
|
52871
|
+
const mainConatiner$2 = "_mainConatiner_1mt10_1";
|
|
52872
|
+
const container$v = "_container_1mt10_5";
|
|
52873
|
+
const item$9 = "_item_1mt10_23";
|
|
52825
52874
|
var styles$1m = {
|
|
52826
52875
|
mainConatiner: mainConatiner$2,
|
|
52827
52876
|
container: container$v,
|
|
@@ -52915,7 +52964,7 @@ var styles$1i = {
|
|
|
52915
52964
|
plus: plus$4,
|
|
52916
52965
|
footer: footer$d
|
|
52917
52966
|
};
|
|
52918
|
-
const
|
|
52967
|
+
const EmailForm = ({
|
|
52919
52968
|
open,
|
|
52920
52969
|
onCloseForm,
|
|
52921
52970
|
initialValues = {},
|
|
@@ -52953,7 +53002,7 @@ const Form$b = ({
|
|
|
52953
53002
|
initialValues,
|
|
52954
53003
|
onSubmit: handleSubmit,
|
|
52955
53004
|
validationSchema: dataValidationSchema
|
|
52956
|
-
}, ({ values, isValid: isValid2 }) => /* @__PURE__ */ React__default.createElement(Form$
|
|
53005
|
+
}, ({ values, isValid: isValid2 }) => /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(FieldArray, {
|
|
52957
53006
|
name: "emails",
|
|
52958
53007
|
render: (arrayHelpers) => /* @__PURE__ */ React__default.createElement("div", null, values.emails && values.emails.length > 0 ? values.emails.map((email3, index2) => /* @__PURE__ */ React__default.createElement("div", {
|
|
52959
53008
|
className: styles$1i.container,
|
|
@@ -52988,17 +53037,78 @@ const Form$b = ({
|
|
|
52988
53037
|
}, t2("SAVE"))))
|
|
52989
53038
|
}))));
|
|
52990
53039
|
};
|
|
53040
|
+
const UpdateUserSettings = async ({
|
|
53041
|
+
data: data2
|
|
53042
|
+
}) => {
|
|
53043
|
+
await instance$1.put(`listing/user-settings`, formatData$f(data2));
|
|
53044
|
+
return { data: data2 };
|
|
53045
|
+
};
|
|
53046
|
+
const formatData$f = (data2) => {
|
|
53047
|
+
var _a2;
|
|
53048
|
+
return {
|
|
53049
|
+
aiPrompt: (_a2 = data2.aiPrompt) != null ? _a2 : null
|
|
53050
|
+
};
|
|
53051
|
+
};
|
|
53052
|
+
const AiPromptForm = ({
|
|
53053
|
+
open,
|
|
53054
|
+
onCloseForm,
|
|
53055
|
+
initialValues = {},
|
|
53056
|
+
reload
|
|
53057
|
+
}) => {
|
|
53058
|
+
const { t: t2 } = useTranslation();
|
|
53059
|
+
const { isExecuting, execute } = useService(UpdateUserSettings, {
|
|
53060
|
+
onSuccess: async () => {
|
|
53061
|
+
await reload();
|
|
53062
|
+
onCloseForm();
|
|
53063
|
+
}
|
|
53064
|
+
});
|
|
53065
|
+
const handleSubmit = (data2) => {
|
|
53066
|
+
execute({ data: data2 });
|
|
53067
|
+
};
|
|
53068
|
+
return /* @__PURE__ */ React__default.createElement(Modal2, {
|
|
53069
|
+
open,
|
|
53070
|
+
onClose: onCloseForm,
|
|
53071
|
+
title: t2("AIPROMPT"),
|
|
53072
|
+
width: 500
|
|
53073
|
+
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
53074
|
+
initialValues,
|
|
53075
|
+
onSubmit: handleSubmit
|
|
53076
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(TextAreaField, {
|
|
53077
|
+
id: "aiPrompt",
|
|
53078
|
+
label: t2("AIPROMPT"),
|
|
53079
|
+
hideLabel: true,
|
|
53080
|
+
rows: 8
|
|
53081
|
+
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
53082
|
+
style: { display: "flex", justifyContent: "flex-end", marginTop: "1rem" }
|
|
53083
|
+
}, /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
53084
|
+
size: "small",
|
|
53085
|
+
type: "submit",
|
|
53086
|
+
isLoading: isExecuting
|
|
53087
|
+
}, t2("SAVE"))))));
|
|
53088
|
+
};
|
|
53089
|
+
const GetUser = async () => {
|
|
53090
|
+
const user = await instance$1.get("user-me");
|
|
53091
|
+
sessionStorage.setItem("sdk_user", JSON.stringify(user));
|
|
53092
|
+
return { data: user };
|
|
53093
|
+
};
|
|
52991
53094
|
const Notifications = ({
|
|
52992
53095
|
venueId,
|
|
52993
53096
|
venueListingId
|
|
52994
53097
|
}) => {
|
|
53098
|
+
var _a2, _b, _c;
|
|
52995
53099
|
const { t: t2 } = useTranslation();
|
|
52996
53100
|
const [showModal, setShowmodal] = useState(false);
|
|
52997
53101
|
const closeModal = () => setShowmodal(false);
|
|
52998
53102
|
const openModal = () => setShowmodal(true);
|
|
53103
|
+
const [showAiPromptModal, setShowAiPromptModal] = useState(false);
|
|
53104
|
+
const closeAiPromptModal = () => setShowAiPromptModal(false);
|
|
53105
|
+
const openAiPromptModal = () => setShowAiPromptModal(true);
|
|
52999
53106
|
const { data: data2, isLoading, error: error3, reload } = useFetch(GetUserNotificationSettings, {
|
|
53000
53107
|
cacheId: `user-notifications-settings`
|
|
53001
53108
|
});
|
|
53109
|
+
const { data: userData2, reload: reloadUserData } = useFetch(GetUser, {
|
|
53110
|
+
cacheId: `user-data`
|
|
53111
|
+
});
|
|
53002
53112
|
const _reload = () => {
|
|
53003
53113
|
reload();
|
|
53004
53114
|
};
|
|
@@ -53015,6 +53125,9 @@ const Notifications = ({
|
|
|
53015
53125
|
}
|
|
53016
53126
|
execute({ data: values });
|
|
53017
53127
|
};
|
|
53128
|
+
useEffect(() => {
|
|
53129
|
+
console.log(userData2, "LOL");
|
|
53130
|
+
}, [userData2]);
|
|
53018
53131
|
if (isLoading) {
|
|
53019
53132
|
return /* @__PURE__ */ React__default.createElement(SkeletonPage, null);
|
|
53020
53133
|
}
|
|
@@ -53029,54 +53142,72 @@ const Notifications = ({
|
|
|
53029
53142
|
initialValues: data2,
|
|
53030
53143
|
onSubmit: handleSubmit,
|
|
53031
53144
|
enableReinitialize: true
|
|
53032
|
-
}, ({ handleSubmit: handleSubmit2 }) =>
|
|
53033
|
-
|
|
53034
|
-
}, /* @__PURE__ */ React__default.createElement(Card, {
|
|
53035
|
-
header: { title: t2("REVIEWSREPORT") }
|
|
53036
|
-
}, /* @__PURE__ */ React__default.createElement("p", null, "Get a daily report by email to help you keep track of all your activity."), /* @__PURE__ */ React__default.createElement(UIList, {
|
|
53037
|
-
mode: "vertical"
|
|
53038
|
-
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53039
|
-
id: "dailyReport",
|
|
53040
|
-
name: t2("DAILYREPORT"),
|
|
53041
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53042
|
-
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53043
|
-
id: "weeklyReport",
|
|
53044
|
-
name: t2("WEEKLYREPORT"),
|
|
53045
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53046
|
-
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53047
|
-
id: "monthlyReport",
|
|
53048
|
-
name: t2("MONTHLYREPORT"),
|
|
53049
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53050
|
-
}))), /* @__PURE__ */ React__default.createElement(Card, {
|
|
53051
|
-
header: { title: t2("REVIEWS") }
|
|
53052
|
-
}, /* @__PURE__ */ React__default.createElement("p", null, "Get an instant email when you receive a negative review so that you can initiate an immediate response to your customer."), /* @__PURE__ */ React__default.createElement(UIList, {
|
|
53053
|
-
mode: "vertical"
|
|
53054
|
-
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53055
|
-
id: "allReviewAlert",
|
|
53056
|
-
name: t2("ALLREVIEWS"),
|
|
53057
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53058
|
-
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53059
|
-
id: "negativeReviewAlert",
|
|
53060
|
-
name: t2("NEGATIVEREVIEWS1"),
|
|
53061
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53062
|
-
}))), /* @__PURE__ */ React__default.createElement(Card, {
|
|
53063
|
-
header: {
|
|
53064
|
-
title: t2("Email"),
|
|
53065
|
-
icon: "edit",
|
|
53066
|
-
onClickIcon: openModal
|
|
53067
|
-
}
|
|
53068
|
-
}, /* @__PURE__ */ React__default.createElement("p", null, "Get all the notifications on these emails."), /* @__PURE__ */ React__default.createElement("br", null), data2 == null ? void 0 : data2.emails.map((email3, index2) => {
|
|
53145
|
+
}, ({ handleSubmit: handleSubmit2 }) => {
|
|
53146
|
+
var _a3, _b2;
|
|
53069
53147
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
53070
|
-
|
|
53148
|
+
className: styles$1m.container
|
|
53149
|
+
}, /* @__PURE__ */ React__default.createElement(Card, {
|
|
53150
|
+
header: { title: t2("REVIEWSREPORT") }
|
|
53151
|
+
}, /* @__PURE__ */ React__default.createElement("p", null, "Get a daily report by email to help you keep track of all your activity."), /* @__PURE__ */ React__default.createElement(UIList, {
|
|
53152
|
+
mode: "vertical"
|
|
53153
|
+
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53154
|
+
id: "dailyReport",
|
|
53155
|
+
name: t2("DAILYREPORT"),
|
|
53156
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53157
|
+
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53158
|
+
id: "weeklyReport",
|
|
53159
|
+
name: t2("WEEKLYREPORT"),
|
|
53160
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53161
|
+
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53162
|
+
id: "monthlyReport",
|
|
53163
|
+
name: t2("MONTHLYREPORT"),
|
|
53164
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53165
|
+
}))), /* @__PURE__ */ React__default.createElement(Card, {
|
|
53166
|
+
header: { title: t2("REVIEWS") }
|
|
53167
|
+
}, /* @__PURE__ */ React__default.createElement("p", null, "Get an instant email when you receive a negative review so that you can initiate an immediate response to your customer."), /* @__PURE__ */ React__default.createElement(UIList, {
|
|
53168
|
+
mode: "vertical"
|
|
53169
|
+
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53170
|
+
id: "allReviewAlert",
|
|
53171
|
+
name: t2("ALLREVIEWS"),
|
|
53172
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53173
|
+
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53174
|
+
id: "negativeReviewAlert",
|
|
53175
|
+
name: t2("NEGATIVEREVIEWS1"),
|
|
53176
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53177
|
+
}))), /* @__PURE__ */ React__default.createElement(Card, {
|
|
53178
|
+
header: {
|
|
53179
|
+
title: t2("Email"),
|
|
53180
|
+
icon: "edit",
|
|
53181
|
+
onClickIcon: openModal
|
|
53182
|
+
}
|
|
53183
|
+
}, /* @__PURE__ */ React__default.createElement("p", null, "Get all the notifications on these emails."), /* @__PURE__ */ React__default.createElement("br", null), data2 == null ? void 0 : data2.emails.map((email3, index2) => {
|
|
53184
|
+
return /* @__PURE__ */ React__default.createElement("div", {
|
|
53185
|
+
key: index2,
|
|
53186
|
+
className: styles$1m.item
|
|
53187
|
+
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
53188
|
+
icon: "mail"
|
|
53189
|
+
})), email3 || t2("NOTDEFINED"));
|
|
53190
|
+
}), !(data2 == null ? void 0 : data2.emails) && /* @__PURE__ */ React__default.createElement("div", {
|
|
53071
53191
|
className: styles$1m.item
|
|
53072
53192
|
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
53073
53193
|
icon: "mail"
|
|
53074
|
-
})),
|
|
53075
|
-
|
|
53076
|
-
|
|
53077
|
-
|
|
53078
|
-
|
|
53079
|
-
|
|
53194
|
+
})), t2("NOTDEFINED"))), ((_a3 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _a3.company) && /* @__PURE__ */ React__default.createElement(Card, {
|
|
53195
|
+
header: {
|
|
53196
|
+
title: t2("AIPROMPT"),
|
|
53197
|
+
icon: "edit",
|
|
53198
|
+
onClickIcon: openAiPromptModal
|
|
53199
|
+
}
|
|
53200
|
+
}, /* @__PURE__ */ React__default.createElement("p", null, "Ai prompt for generate reviews."), /* @__PURE__ */ React__default.createElement("br", null), /* @__PURE__ */ React__default.createElement("div", {
|
|
53201
|
+
className: styles$1m.item
|
|
53202
|
+
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
53203
|
+
icon: "robot"
|
|
53204
|
+
})), ((_b2 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _b2.company.aiPrompt) || t2("NOTDEFINED"))));
|
|
53205
|
+
}), /* @__PURE__ */ React__default.createElement(AiPromptForm, {
|
|
53206
|
+
open: showAiPromptModal,
|
|
53207
|
+
onCloseForm: closeAiPromptModal,
|
|
53208
|
+
initialValues: { aiPrompt: (_c = (_b = (_a2 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _a2.company) == null ? void 0 : _b.aiPrompt) != null ? _c : "" },
|
|
53209
|
+
reload: reloadUserData
|
|
53210
|
+
}), /* @__PURE__ */ React__default.createElement(EmailForm, {
|
|
53080
53211
|
open: showModal,
|
|
53081
53212
|
onCloseForm: closeModal,
|
|
53082
53213
|
initialValues: data2,
|
|
@@ -53189,7 +53320,7 @@ const ReplyTemplateForm = ({
|
|
|
53189
53320
|
initialValues: initialState2,
|
|
53190
53321
|
validationSchema: schema$1,
|
|
53191
53322
|
onSubmit: executeSubmit
|
|
53192
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
53323
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
53193
53324
|
className: styles$1g.form
|
|
53194
53325
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
53195
53326
|
id: "title",
|
|
@@ -79248,7 +79379,7 @@ const Form$a = ({
|
|
|
79248
79379
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
79249
79380
|
initialValues,
|
|
79250
79381
|
onSubmit: handleSubmit
|
|
79251
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
79382
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
79252
79383
|
className: styles$13.container
|
|
79253
79384
|
}, /* @__PURE__ */ React__default.createElement(Row$1, {
|
|
79254
79385
|
gutter: [16, 16]
|
|
@@ -91565,7 +91696,7 @@ const Form$9 = ({
|
|
|
91565
91696
|
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement("h3", null, "Address"), /* @__PURE__ */ React__default.createElement("p", null, "Edit the Address below to update your Bing Profile."), /* @__PURE__ */ React__default.createElement("p", null, "Note : You need to click 'Location' in your Google Business Account to edit your address on Google and click 'About' then 'Contact Info' to edit the adress on Facebook.")), /* @__PURE__ */ React__default.createElement(Formik, {
|
|
91566
91697
|
initialValues,
|
|
91567
91698
|
onSubmit: handleSubmit
|
|
91568
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
91699
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
91569
91700
|
className: styles$X.form
|
|
91570
91701
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
91571
91702
|
className: styles$X.form__row1
|
|
@@ -92000,7 +92131,7 @@ const Form$8 = ({
|
|
|
92000
92131
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92001
92132
|
initialValues,
|
|
92002
92133
|
onSubmit: handleSubmit
|
|
92003
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92134
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
92004
92135
|
className: styles$P.form
|
|
92005
92136
|
}, /* @__PURE__ */ React__default.createElement(RegularHours$1, {
|
|
92006
92137
|
id: "regularHours"
|
|
@@ -92527,7 +92658,7 @@ const Form$7 = ({
|
|
|
92527
92658
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92528
92659
|
initialValues,
|
|
92529
92660
|
onSubmit: handleSubmit
|
|
92530
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92661
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
92531
92662
|
className: styles$M.container
|
|
92532
92663
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
92533
92664
|
className: styles$M.form
|
|
@@ -92624,7 +92755,7 @@ const Form$6 = ({
|
|
|
92624
92755
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92625
92756
|
initialValues,
|
|
92626
92757
|
onSubmit: handleSubmit
|
|
92627
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92758
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
92628
92759
|
style: {
|
|
92629
92760
|
display: "grid",
|
|
92630
92761
|
gridTemplateColumns: "repeat(2,1fr)",
|
|
@@ -94197,7 +94328,7 @@ const Form$5 = ({
|
|
|
94197
94328
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
94198
94329
|
initialValues,
|
|
94199
94330
|
onSubmit: handleSubmit
|
|
94200
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
94331
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
94201
94332
|
className: styles$L.container
|
|
94202
94333
|
}, /* @__PURE__ */ React__default.createElement(MediaPage, null)), /* @__PURE__ */ React__default.createElement("div", {
|
|
94203
94334
|
className: styles$L.footer
|
|
@@ -94354,7 +94485,7 @@ const Form$4 = ({
|
|
|
94354
94485
|
initialValues,
|
|
94355
94486
|
onSubmit: handleSubmit,
|
|
94356
94487
|
validationSchema: schema
|
|
94357
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
94488
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
94358
94489
|
className: styles$F.container
|
|
94359
94490
|
}, /* @__PURE__ */ React__default.createElement(TextInputFieldWithRule, {
|
|
94360
94491
|
id: "urlWebsite",
|
|
@@ -95171,7 +95302,7 @@ const ModalBingVerify = ({
|
|
|
95171
95302
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
95172
95303
|
initialValues,
|
|
95173
95304
|
onSubmit: handleSubmit
|
|
95174
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
95305
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement("p", null, "Bing will contact you by email or post and provide you with a verification PIN code. Once you get it, please add it below so that your profile can be synchonised.")), /* @__PURE__ */ React__default.createElement("div", {
|
|
95175
95306
|
style: {
|
|
95176
95307
|
display: "grid",
|
|
95177
95308
|
gridTemplateColumns: "repeat(2,1fr)",
|
|
@@ -95227,7 +95358,7 @@ const ModalBingConnect = ({
|
|
|
95227
95358
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
95228
95359
|
initialValues,
|
|
95229
95360
|
onSubmit: handleSubmit
|
|
95230
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
95361
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement("p", null, "Bing may require verification of the business ownership, and contact you by email or post. Please, enter below the email you want to use for verification purposes with Bing.")), /* @__PURE__ */ React__default.createElement("div", {
|
|
95231
95362
|
style: {
|
|
95232
95363
|
display: "grid",
|
|
95233
95364
|
gridTemplateColumns: "repeat(1,1fr)",
|
|
@@ -96102,25 +96233,25 @@ const UpdateResbook = async ({
|
|
|
96102
96233
|
await instance$1.put(`${BASE_URL}${venue_id}/tables/${table_id}`, formarTableRules(data2));
|
|
96103
96234
|
return { data: "updated" };
|
|
96104
96235
|
case "opHour":
|
|
96105
|
-
instance$1.put(`${BASE_URL}${venue_id}/opening-hours`, formarRegularHours(data2));
|
|
96236
|
+
await instance$1.put(`${BASE_URL}${venue_id}/opening-hours`, formarRegularHours(data2));
|
|
96106
96237
|
return { data: "updated" };
|
|
96107
96238
|
case "arrRule":
|
|
96108
|
-
instance$1.put(`${BASE_URL}${venue_id}/arrival-rules/${table_id}`, formatArrivalRules(data2));
|
|
96239
|
+
await instance$1.put(`${BASE_URL}${venue_id}/arrival-rules/${table_id}`, formatArrivalRules(data2));
|
|
96109
96240
|
return { data: "updated" };
|
|
96110
96241
|
case "seatingRule":
|
|
96111
|
-
instance$1.put(`${BASE_URL}${venue_id}/seating-rules/${table_id}`, formarSeatingRules(data2));
|
|
96242
|
+
await instance$1.put(`${BASE_URL}${venue_id}/seating-rules/${table_id}`, formarSeatingRules(data2));
|
|
96112
96243
|
return { data: "updated" };
|
|
96113
96244
|
case "specialDate":
|
|
96114
96245
|
if (table_id) {
|
|
96115
|
-
instance$1.put(`${BASE_URL}${venue_id}/special-dates/${table_id}`, formarSpecialHours((_a2 = Object.values(data2)[0]) != null ? _a2 : {}));
|
|
96246
|
+
await instance$1.put(`${BASE_URL}${venue_id}/special-dates/${table_id}`, formarSpecialHours((_a2 = Object.values(data2)[0]) != null ? _a2 : {}));
|
|
96116
96247
|
return { data: "updated" };
|
|
96117
96248
|
} else {
|
|
96118
|
-
instance$1.post(`${BASE_URL}${venue_id}/special-dates`, formarSpecialHours((_b = Object.values(data2)[0]) != null ? _b : {}));
|
|
96249
|
+
await instance$1.post(`${BASE_URL}${venue_id}/special-dates`, formarSpecialHours((_b = Object.values(data2)[0]) != null ? _b : {}));
|
|
96119
96250
|
return { data: "created" };
|
|
96120
96251
|
}
|
|
96121
96252
|
case "deleteSpecialDate":
|
|
96122
96253
|
if (table_id) {
|
|
96123
|
-
instance$1.delete(`${BASE_URL}${venue_id}/special-dates/${table_id}`);
|
|
96254
|
+
await instance$1.delete(`${BASE_URL}${venue_id}/special-dates/${table_id}`);
|
|
96124
96255
|
return { data: "deleted" };
|
|
96125
96256
|
} else {
|
|
96126
96257
|
break;
|
|
@@ -96205,9 +96336,8 @@ const Form$3 = ({
|
|
|
96205
96336
|
onCloseForm();
|
|
96206
96337
|
}
|
|
96207
96338
|
});
|
|
96208
|
-
const handleSubmit = (data2) => {
|
|
96209
|
-
execute({ venue_id: venueId, data: data2, module: "opHour" });
|
|
96210
|
-
reload();
|
|
96339
|
+
const handleSubmit = async (data2) => {
|
|
96340
|
+
await execute({ venue_id: venueId, data: data2, module: "opHour" });
|
|
96211
96341
|
};
|
|
96212
96342
|
return /* @__PURE__ */ React__default.createElement(Modal2, {
|
|
96213
96343
|
open,
|
|
@@ -96216,7 +96346,7 @@ const Form$3 = ({
|
|
|
96216
96346
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
96217
96347
|
initialValues,
|
|
96218
96348
|
onSubmit: handleSubmit
|
|
96219
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
96349
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
96220
96350
|
className: styles$r.form
|
|
96221
96351
|
}, /* @__PURE__ */ React__default.createElement(RegularHours, {
|
|
96222
96352
|
id: "regularHours"
|
|
@@ -96417,7 +96547,7 @@ const NotificationsComp = ({}) => {
|
|
|
96417
96547
|
className: styles2.item
|
|
96418
96548
|
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
96419
96549
|
icon: "mail"
|
|
96420
|
-
})), t2("NOTDEFINED")))))), /* @__PURE__ */ React__default.createElement(
|
|
96550
|
+
})), t2("NOTDEFINED")))))), /* @__PURE__ */ React__default.createElement(EmailForm, {
|
|
96421
96551
|
open: showModal,
|
|
96422
96552
|
onCloseForm: closeModal,
|
|
96423
96553
|
initialValues: data2,
|
|
@@ -97199,7 +97329,7 @@ const SpecificHours = ({ value: value2, reload, id: id2, venue_id, onDeleteSpeci
|
|
|
97199
97329
|
return /* @__PURE__ */ React__default.createElement(Formik, {
|
|
97200
97330
|
initialValues: value2,
|
|
97201
97331
|
onSubmit: handleSubmit
|
|
97202
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
97332
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
97203
97333
|
className: styles$h.form,
|
|
97204
97334
|
onChange: () => setIsEditing(true)
|
|
97205
97335
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -99699,7 +99829,7 @@ const ContactDetailsFormFields = ({ isExecuting = false }) => {
|
|
|
99699
99829
|
isSubmitting,
|
|
99700
99830
|
isValid: isValid2
|
|
99701
99831
|
} = useFormikContext();
|
|
99702
|
-
return /* @__PURE__ */ React__default.createElement(Form$
|
|
99832
|
+
return /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
99703
99833
|
style: { display: "flex", flexDirection: "row", flexWrap: "wrap" }
|
|
99704
99834
|
}, /* @__PURE__ */ React__default.createElement(Row$1, {
|
|
99705
99835
|
gutter: [16, 16]
|
|
@@ -101377,7 +101507,7 @@ const ChangePasswordForm = ({ isExecuting }) => {
|
|
|
101377
101507
|
const {
|
|
101378
101508
|
isValid: isValid2
|
|
101379
101509
|
} = useFormikContext();
|
|
101380
|
-
return /* @__PURE__ */ React__default.createElement(Form$
|
|
101510
|
+
return /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
101381
101511
|
style: { display: "flex", flexDirection: "column", justifyContent: "center", gap: 20, flexWrap: "wrap" }
|
|
101382
101512
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
101383
101513
|
id: "currentPassword",
|