mozrest-sdk-react-dev 0.2.26 → 0.2.28
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 +298 -171
- 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
|
/*! *****************************************************************************
|
|
@@ -2156,7 +2156,7 @@ const GetToken = async ({ key: key2 }) => {
|
|
|
2156
2156
|
sessionStorage.setItem("sdk_refreshToken", data2.refresh_token);
|
|
2157
2157
|
const user = await instance$1.get("user-me");
|
|
2158
2158
|
sessionStorage.setItem("sdk_user", JSON.stringify(user));
|
|
2159
|
-
return { data:
|
|
2159
|
+
return { data: user };
|
|
2160
2160
|
};
|
|
2161
2161
|
const classNames$2 = (...classNames2) => {
|
|
2162
2162
|
const resultClasses = [];
|
|
@@ -2176,7 +2176,7 @@ const classNames$2 = (...classNames2) => {
|
|
|
2176
2176
|
return resultClasses.join(" ");
|
|
2177
2177
|
};
|
|
2178
2178
|
const container$I = "_container_1ar7o_1";
|
|
2179
|
-
var styles$
|
|
2179
|
+
var styles$1Z = {
|
|
2180
2180
|
container: container$I
|
|
2181
2181
|
};
|
|
2182
2182
|
const Container = ({
|
|
@@ -2190,12 +2190,12 @@ const Container = ({
|
|
|
2190
2190
|
return /* @__PURE__ */ React__default.createElement(Tag2, {
|
|
2191
2191
|
"aria-label": ariaLabel,
|
|
2192
2192
|
"aria-labelledby": ariaLabelledby,
|
|
2193
|
-
className: classNames$2(styles$
|
|
2193
|
+
className: classNames$2(styles$1Z["container"], className)
|
|
2194
2194
|
}, children);
|
|
2195
2195
|
};
|
|
2196
2196
|
const container$H = "_container_118v9_1";
|
|
2197
2197
|
const header$8 = "_header_118v9_5";
|
|
2198
|
-
var styles$
|
|
2198
|
+
var styles$1Y = {
|
|
2199
2199
|
container: container$H,
|
|
2200
2200
|
header: header$8
|
|
2201
2201
|
};
|
|
@@ -2206,11 +2206,11 @@ const LayoutPage$1 = ({
|
|
|
2206
2206
|
contentClassName
|
|
2207
2207
|
}) => {
|
|
2208
2208
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
2209
|
-
className: classNames$2(styles$
|
|
2209
|
+
className: classNames$2(styles$1Y.container, containerClassName, "mz-sdk-cst-pf")
|
|
2210
2210
|
}, header2 && /* @__PURE__ */ React__default.createElement("div", {
|
|
2211
2211
|
className: "mz-header"
|
|
2212
2212
|
}, header2), /* @__PURE__ */ React__default.createElement(Container, {
|
|
2213
|
-
className: classNames$2(styles$
|
|
2213
|
+
className: classNames$2(styles$1Y.content, contentClassName)
|
|
2214
2214
|
}, children));
|
|
2215
2215
|
};
|
|
2216
2216
|
const Error$1 = ({
|
|
@@ -6365,6 +6365,7 @@ const AREYOUSURENOSHOWRESERVATION = "Are you sure you want to change this reserv
|
|
|
6365
6365
|
const NOSHOW = "No show";
|
|
6366
6366
|
const VENUEISCLOSED = "Venue is closed";
|
|
6367
6367
|
const VenueClosedByConfigurationAtThisTime = "Venue is closed by configuration at this time";
|
|
6368
|
+
const AIPROMPT = "AI Prompt";
|
|
6368
6369
|
var en = {
|
|
6369
6370
|
errors,
|
|
6370
6371
|
SPECIALCLOSINGDATES,
|
|
@@ -6686,7 +6687,8 @@ var en = {
|
|
|
6686
6687
|
AREYOUSURENOSHOWRESERVATION,
|
|
6687
6688
|
NOSHOW,
|
|
6688
6689
|
VENUEISCLOSED,
|
|
6689
|
-
VenueClosedByConfigurationAtThisTime
|
|
6690
|
+
VenueClosedByConfigurationAtThisTime,
|
|
6691
|
+
AIPROMPT
|
|
6690
6692
|
};
|
|
6691
6693
|
instance.use(initReactI18next).init({
|
|
6692
6694
|
resources: {
|
|
@@ -7206,7 +7208,7 @@ const GetReviews = async ({
|
|
|
7206
7208
|
"sortby[createdAt]": "DESC"
|
|
7207
7209
|
}
|
|
7208
7210
|
});
|
|
7209
|
-
return formatData$
|
|
7211
|
+
return formatData$k(data2);
|
|
7210
7212
|
};
|
|
7211
7213
|
const formatParams$5 = (params) => {
|
|
7212
7214
|
const all2 = {};
|
|
@@ -7231,7 +7233,7 @@ const formatParams$5 = (params) => {
|
|
|
7231
7233
|
limit: 30
|
|
7232
7234
|
};
|
|
7233
7235
|
};
|
|
7234
|
-
const formatData$
|
|
7236
|
+
const formatData$k = (data2) => {
|
|
7235
7237
|
return data2.map(({ reviewerProfilePhoto, reviewerName, reply: reply2, createdAt, ...item2 }) => ({
|
|
7236
7238
|
...item2,
|
|
7237
7239
|
reviewer: {
|
|
@@ -7627,7 +7629,7 @@ const useInfinite = (service, params, limit = 5) => {
|
|
|
7627
7629
|
};
|
|
7628
7630
|
};
|
|
7629
7631
|
const btn$1 = "_btn_1wg4v_1";
|
|
7630
|
-
var styles$
|
|
7632
|
+
var styles$1X = {
|
|
7631
7633
|
btn: btn$1,
|
|
7632
7634
|
"btn--large": "_btn--large_1wg4v_16",
|
|
7633
7635
|
"btn--small": "_btn--small_1wg4v_19",
|
|
@@ -8942,7 +8944,7 @@ var icons$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
8942
8944
|
clock
|
|
8943
8945
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8944
8946
|
const icon$6 = "_icon_1i2ej_1";
|
|
8945
|
-
var styles$
|
|
8947
|
+
var styles$1W = {
|
|
8946
8948
|
icon: icon$6,
|
|
8947
8949
|
"icon--small": "_icon--small_1i2ej_12",
|
|
8948
8950
|
"icon--medium": "_icon--medium_1i2ej_15",
|
|
@@ -8956,7 +8958,7 @@ const Icon$1 = ({
|
|
|
8956
8958
|
...props
|
|
8957
8959
|
}) => {
|
|
8958
8960
|
return /* @__PURE__ */ React__default.createElement("span", {
|
|
8959
|
-
className: classNames$2(styles$
|
|
8961
|
+
className: classNames$2(styles$1W["icon"], styles$1W[`icon--${size}`], className),
|
|
8960
8962
|
...props
|
|
8961
8963
|
}, icons$2[icon2]());
|
|
8962
8964
|
};
|
|
@@ -8973,7 +8975,7 @@ const Button$3 = React__default.forwardRef(({
|
|
|
8973
8975
|
...props
|
|
8974
8976
|
}, ref = null) => {
|
|
8975
8977
|
const componentProps = {
|
|
8976
|
-
className: classNames$2(styles$
|
|
8978
|
+
className: classNames$2(styles$1X["btn"], styles$1X[`btn--${mode}`], styles$1X[`btn--${size}`], "mz-btn", className),
|
|
8977
8979
|
...props
|
|
8978
8980
|
};
|
|
8979
8981
|
const IconBtn = icon2 ? /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
@@ -13068,7 +13070,7 @@ var FormProvider = function FormProvider2(_ref3) {
|
|
|
13068
13070
|
}, children);
|
|
13069
13071
|
};
|
|
13070
13072
|
var _excluded$c = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
13071
|
-
var Form$
|
|
13073
|
+
var Form$c = function Form(_ref3, ref) {
|
|
13072
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);
|
|
13073
13075
|
var formContext = React.useContext(FormContext);
|
|
13074
13076
|
var _useForm = useForm(form2), _useForm2 = _slicedToArray$a(_useForm, 1), formInstance = _useForm2[0];
|
|
@@ -13196,7 +13198,7 @@ function useWatch() {
|
|
|
13196
13198
|
}, [isValidForm]);
|
|
13197
13199
|
return value2;
|
|
13198
13200
|
}
|
|
13199
|
-
var InternalForm = /* @__PURE__ */ React.forwardRef(Form$
|
|
13201
|
+
var InternalForm = /* @__PURE__ */ React.forwardRef(Form$c);
|
|
13200
13202
|
var RefForm = InternalForm;
|
|
13201
13203
|
RefForm.FormProvider = FormProvider;
|
|
13202
13204
|
RefForm.Field = WrapperField;
|
|
@@ -32583,7 +32585,7 @@ function Field(_ref3) {
|
|
|
32583
32585
|
}
|
|
32584
32586
|
return createElement$1(asElement, _extends$O({}, field2, props), children);
|
|
32585
32587
|
}
|
|
32586
|
-
var Form$
|
|
32588
|
+
var Form$b = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
32587
32589
|
var action = props.action, rest = _objectWithoutPropertiesLoose$y(props, ["action"]);
|
|
32588
32590
|
var _action = action != null ? action : "#";
|
|
32589
32591
|
var _useFormikContext = useFormikContext(), handleReset = _useFormikContext.handleReset, handleSubmit = _useFormikContext.handleSubmit;
|
|
@@ -32594,7 +32596,7 @@ var Form$c = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
32594
32596
|
action: _action
|
|
32595
32597
|
}, rest));
|
|
32596
32598
|
});
|
|
32597
|
-
Form$
|
|
32599
|
+
Form$b.displayName = "Form";
|
|
32598
32600
|
function connect(Comp) {
|
|
32599
32601
|
var C2 = function C3(props) {
|
|
32600
32602
|
return createElement$1(FormikConsumer, null, function(formik) {
|
|
@@ -32835,17 +32837,17 @@ FieldArrayInner.defaultProps = {
|
|
|
32835
32837
|
};
|
|
32836
32838
|
var FieldArray = /* @__PURE__ */ connect(FieldArrayInner);
|
|
32837
32839
|
const sronly = "_sronly_1n9bw_1";
|
|
32838
|
-
var styles$
|
|
32840
|
+
var styles$1V = {
|
|
32839
32841
|
sronly
|
|
32840
32842
|
};
|
|
32841
32843
|
const SrOnly = ({ children }) => {
|
|
32842
32844
|
return /* @__PURE__ */ React__default.createElement("span", {
|
|
32843
|
-
className: styles$
|
|
32845
|
+
className: styles$1V.sronly
|
|
32844
32846
|
}, children);
|
|
32845
32847
|
};
|
|
32846
|
-
const label$
|
|
32847
|
-
var styles$
|
|
32848
|
-
label: label$
|
|
32848
|
+
const label$6 = "_label_1vki7_1";
|
|
32849
|
+
var styles$1U = {
|
|
32850
|
+
label: label$6,
|
|
32849
32851
|
"label--hidden": "_label--hidden_1vki7_9",
|
|
32850
32852
|
"label--bold": "_label--bold_1vki7_13"
|
|
32851
32853
|
};
|
|
@@ -35457,15 +35459,15 @@ var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_c
|
|
|
35457
35459
|
}), _defineProperty$w(_class2, "supportedWrappers", ["div", "span"]), _defineProperty$w(_class2, "displayName", "ReactTooltip"), _class2)) || _class) || _class) || _class) || _class) || _class) || _class) || _class;
|
|
35458
35460
|
const tooltip$2 = "_tooltip_17puf_1";
|
|
35459
35461
|
const tooltip__icon$1 = "_tooltip__icon_17puf_4";
|
|
35460
|
-
var styles$
|
|
35462
|
+
var styles$1T = {
|
|
35461
35463
|
tooltip: tooltip$2,
|
|
35462
35464
|
tooltip__icon: tooltip__icon$1
|
|
35463
35465
|
};
|
|
35464
35466
|
const Tooltip$1 = ({ children }) => {
|
|
35465
35467
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
35466
|
-
className: styles$
|
|
35468
|
+
className: styles$1T.tooltip
|
|
35467
35469
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
35468
|
-
className: styles$
|
|
35470
|
+
className: styles$1T.tooltip__icon,
|
|
35469
35471
|
icon: "question",
|
|
35470
35472
|
size: "small",
|
|
35471
35473
|
"data-tip": true
|
|
@@ -35484,7 +35486,7 @@ const Label$1 = ({
|
|
|
35484
35486
|
...props
|
|
35485
35487
|
}) => {
|
|
35486
35488
|
const label2 = /* @__PURE__ */ React__default.createElement("label", {
|
|
35487
|
-
className: styles$
|
|
35489
|
+
className: styles$1U.label,
|
|
35488
35490
|
...props
|
|
35489
35491
|
}, children, tooltip2 && /* @__PURE__ */ React__default.createElement(Tooltip$1, null, tooltip2));
|
|
35490
35492
|
return isHidden2 ? /* @__PURE__ */ React__default.createElement(SrOnly, null, label2) : label2;
|
|
@@ -35591,15 +35593,15 @@ const formatHeader = (accessToken) => {
|
|
|
35591
35593
|
};
|
|
35592
35594
|
const tooltip$1 = "_tooltip_17puf_1";
|
|
35593
35595
|
const tooltip__icon = "_tooltip__icon_17puf_4";
|
|
35594
|
-
var styles$
|
|
35596
|
+
var styles$1S = {
|
|
35595
35597
|
tooltip: tooltip$1,
|
|
35596
35598
|
tooltip__icon
|
|
35597
35599
|
};
|
|
35598
35600
|
const LockTooltip = ({ children }) => {
|
|
35599
35601
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
35600
|
-
className: styles$
|
|
35602
|
+
className: styles$1S.tooltip
|
|
35601
35603
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
35602
|
-
className: styles$
|
|
35604
|
+
className: styles$1S.tooltip__icon,
|
|
35603
35605
|
icon: "lock",
|
|
35604
35606
|
size: "small",
|
|
35605
35607
|
"data-tip": children
|
|
@@ -35611,7 +35613,7 @@ const LockTooltip = ({ children }) => {
|
|
|
35611
35613
|
}));
|
|
35612
35614
|
};
|
|
35613
35615
|
const input$2 = "_input_1ufjp_1";
|
|
35614
|
-
var styles$
|
|
35616
|
+
var styles$1R = {
|
|
35615
35617
|
input: input$2
|
|
35616
35618
|
};
|
|
35617
35619
|
const TextArea$1 = React__default.forwardRef(({
|
|
@@ -35643,7 +35645,7 @@ const TextArea$1 = React__default.forwardRef(({
|
|
|
35643
35645
|
}, label2), /* @__PURE__ */ React__default.createElement("div", {
|
|
35644
35646
|
style: { position: "relative" }
|
|
35645
35647
|
}, /* @__PURE__ */ React__default.createElement("textarea", {
|
|
35646
|
-
className: styles$
|
|
35648
|
+
className: styles$1R.input,
|
|
35647
35649
|
onChange: handleChange,
|
|
35648
35650
|
id: id2,
|
|
35649
35651
|
name: id2,
|
|
@@ -35658,7 +35660,7 @@ const TextArea$1 = React__default.forwardRef(({
|
|
|
35658
35660
|
}, /* @__PURE__ */ React__default.createElement(LockTooltip, null, disabledTooltip))));
|
|
35659
35661
|
});
|
|
35660
35662
|
const text$1 = "_text_1f1l5_1";
|
|
35661
|
-
var styles$
|
|
35663
|
+
var styles$1Q = {
|
|
35662
35664
|
text: text$1
|
|
35663
35665
|
};
|
|
35664
35666
|
const FieldError = ({
|
|
@@ -35667,7 +35669,7 @@ const FieldError = ({
|
|
|
35667
35669
|
}) => {
|
|
35668
35670
|
if (touched && error3) {
|
|
35669
35671
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
35670
|
-
className: styles$
|
|
35672
|
+
className: styles$1Q.text
|
|
35671
35673
|
}, error3);
|
|
35672
35674
|
}
|
|
35673
35675
|
return null;
|
|
@@ -38312,6 +38314,44 @@ create$2().matches(phoneRegExp, instance.t("PHONENUMBERISNOTVALID"));
|
|
|
38312
38314
|
const ContextUserRole = React__default.createContext([
|
|
38313
38315
|
[]
|
|
38314
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
|
+
};
|
|
38315
38355
|
const ReplyForm = ({
|
|
38316
38356
|
reviewId,
|
|
38317
38357
|
onSucess,
|
|
@@ -38320,13 +38360,16 @@ const ReplyForm = ({
|
|
|
38320
38360
|
setShowTemplates,
|
|
38321
38361
|
isMobile: isMobile2 = false,
|
|
38322
38362
|
onSuggestTemplate,
|
|
38323
|
-
isSuggesting = false
|
|
38363
|
+
isSuggesting = false,
|
|
38364
|
+
locale: locale2
|
|
38324
38365
|
}) => {
|
|
38366
|
+
var _a2, _b;
|
|
38325
38367
|
const { t: t2 } = useTranslation();
|
|
38326
38368
|
const { execute, isExecuting } = useService(AddReviewReply);
|
|
38327
38369
|
useContext(ContextTemplate);
|
|
38328
38370
|
const [roles] = useContext(ContextUserRole);
|
|
38329
38371
|
const ref = useRef(null);
|
|
38372
|
+
const [showTranslation, setShowTranslation] = useState(false);
|
|
38330
38373
|
const handleExecute = async (data2) => {
|
|
38331
38374
|
await execute({ reviewId, data: data2 });
|
|
38332
38375
|
onSucess();
|
|
@@ -38335,7 +38378,7 @@ const ReplyForm = ({
|
|
|
38335
38378
|
initialValues: { comment: "" },
|
|
38336
38379
|
validationSchema: validate({ comment: stringRequired }),
|
|
38337
38380
|
onSubmit: handleExecute
|
|
38338
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
38381
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(TemplateUpdate, {
|
|
38339
38382
|
locationName,
|
|
38340
38383
|
reviewerName
|
|
38341
38384
|
}), /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
@@ -38348,7 +38391,17 @@ const ReplyForm = ({
|
|
|
38348
38391
|
rows: 8,
|
|
38349
38392
|
ref,
|
|
38350
38393
|
placeholder: t2("TYPEYOURANSWER")
|
|
38351
|
-
}), /* @__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", {
|
|
38352
38405
|
style: { display: "flex", justifyContent: isMobile2 ? "flex-end" : "space-between" }
|
|
38353
38406
|
}, !isMobile2 && /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
38354
38407
|
onClick: () => {
|
|
@@ -38373,23 +38426,23 @@ const ReplyForm = ({
|
|
|
38373
38426
|
children: t2("POSTREPLY")
|
|
38374
38427
|
}))))));
|
|
38375
38428
|
};
|
|
38376
|
-
const label$
|
|
38377
|
-
const comment$
|
|
38429
|
+
const label$3 = "_label_x1r40_1";
|
|
38430
|
+
const comment$2 = "_comment_x1r40_7";
|
|
38378
38431
|
const date$4 = "_date_x1r40_12";
|
|
38379
|
-
var styles$
|
|
38380
|
-
label: label$
|
|
38381
|
-
comment: comment$
|
|
38432
|
+
var styles$1N = {
|
|
38433
|
+
label: label$3,
|
|
38434
|
+
comment: comment$2,
|
|
38382
38435
|
date: date$4
|
|
38383
38436
|
};
|
|
38384
38437
|
const Reply = ({ reply: reply2 }) => {
|
|
38385
38438
|
const { t: t2 } = useTranslation();
|
|
38386
38439
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
38387
38440
|
htmlFor: "",
|
|
38388
|
-
className: styles$
|
|
38441
|
+
className: styles$1N.label
|
|
38389
38442
|
}, t2("REPLY")), /* @__PURE__ */ React__default.createElement("p", {
|
|
38390
|
-
className: styles$
|
|
38443
|
+
className: styles$1N.comment
|
|
38391
38444
|
}, reply2.comment), /* @__PURE__ */ React__default.createElement("span", {
|
|
38392
|
-
className: styles$
|
|
38445
|
+
className: styles$1N.date
|
|
38393
38446
|
}, reply2.createdAt), /* @__PURE__ */ React__default.createElement("br", null));
|
|
38394
38447
|
};
|
|
38395
38448
|
const Start = (props) => {
|
|
@@ -38536,7 +38589,7 @@ const replyLanguages = [
|
|
|
38536
38589
|
},
|
|
38537
38590
|
{
|
|
38538
38591
|
id: "vn",
|
|
38539
|
-
label: "
|
|
38592
|
+
label: "Vietnamese",
|
|
38540
38593
|
value: "vn"
|
|
38541
38594
|
},
|
|
38542
38595
|
{
|
|
@@ -38589,7 +38642,7 @@ const GetReplyTemplates = async ({
|
|
|
38589
38642
|
offset: page * limit
|
|
38590
38643
|
}
|
|
38591
38644
|
});
|
|
38592
|
-
return formatData$
|
|
38645
|
+
return formatData$j(data2);
|
|
38593
38646
|
};
|
|
38594
38647
|
const formatParams$4 = (params = {}) => {
|
|
38595
38648
|
let all2 = {};
|
|
@@ -38608,7 +38661,7 @@ const formatParams$4 = (params = {}) => {
|
|
|
38608
38661
|
limit: 30
|
|
38609
38662
|
};
|
|
38610
38663
|
};
|
|
38611
|
-
const formatData$
|
|
38664
|
+
const formatData$j = (data2) => {
|
|
38612
38665
|
return data2.map((item2) => {
|
|
38613
38666
|
return {
|
|
38614
38667
|
id: item2.id,
|
|
@@ -38628,7 +38681,7 @@ const formatData$i = (data2) => {
|
|
|
38628
38681
|
});
|
|
38629
38682
|
};
|
|
38630
38683
|
const heading = "_heading_1fifa_1";
|
|
38631
|
-
var styles$
|
|
38684
|
+
var styles$1M = {
|
|
38632
38685
|
heading,
|
|
38633
38686
|
"heading--large": "_heading--large_1fifa_7",
|
|
38634
38687
|
"heading--medium": "_heading--medium_1fifa_15",
|
|
@@ -38638,13 +38691,13 @@ const Heading = ({ children, level = "h1", size = "medium", id: id2, ...props })
|
|
|
38638
38691
|
const Tag2 = level;
|
|
38639
38692
|
return /* @__PURE__ */ React__default.createElement(Tag2, {
|
|
38640
38693
|
id: id2,
|
|
38641
|
-
className: classNames$2(styles$
|
|
38694
|
+
className: classNames$2(styles$1M["heading"], styles$1M[`heading--${size}`]),
|
|
38642
38695
|
...props
|
|
38643
38696
|
}, children);
|
|
38644
38697
|
};
|
|
38645
38698
|
const header$7 = "_header_190p9_1";
|
|
38646
38699
|
const icon$5 = "_icon_190p9_10";
|
|
38647
|
-
var styles$
|
|
38700
|
+
var styles$1L = {
|
|
38648
38701
|
header: header$7,
|
|
38649
38702
|
icon: icon$5
|
|
38650
38703
|
};
|
|
@@ -38656,15 +38709,15 @@ const Header$4 = ({ header: header2 }) => {
|
|
|
38656
38709
|
return header2;
|
|
38657
38710
|
}
|
|
38658
38711
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
38659
|
-
className: styles$
|
|
38712
|
+
className: styles$1L.header
|
|
38660
38713
|
}, /* @__PURE__ */ React__default.createElement(Heading, null, header2.title), typeof header2.icon === "string" && /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
38661
38714
|
icon: header2.icon,
|
|
38662
38715
|
onClick: header2.onClickIcon,
|
|
38663
|
-
className: styles$
|
|
38716
|
+
className: styles$1L.icon
|
|
38664
38717
|
}), typeof header2.icon !== "string" && header2.icon && header2.icon);
|
|
38665
38718
|
};
|
|
38666
38719
|
const container$G = "_container_pd6ji_1";
|
|
38667
|
-
var styles$
|
|
38720
|
+
var styles$1K = {
|
|
38668
38721
|
container: container$G
|
|
38669
38722
|
};
|
|
38670
38723
|
const Card = ({
|
|
@@ -38674,15 +38727,15 @@ const Card = ({
|
|
|
38674
38727
|
classNameContent
|
|
38675
38728
|
}) => {
|
|
38676
38729
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
38677
|
-
className: classNames$2(styles$
|
|
38730
|
+
className: classNames$2(styles$1K.container, className, "mz-card")
|
|
38678
38731
|
}, /* @__PURE__ */ React__default.createElement(Header$4, {
|
|
38679
38732
|
header: header2
|
|
38680
38733
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
38681
|
-
className: classNames$2(styles$
|
|
38734
|
+
className: classNames$2(styles$1K.content, classNameContent)
|
|
38682
38735
|
}, children)));
|
|
38683
38736
|
};
|
|
38684
38737
|
const text = "_text_12cto_1";
|
|
38685
|
-
var styles$
|
|
38738
|
+
var styles$1J = {
|
|
38686
38739
|
text
|
|
38687
38740
|
};
|
|
38688
38741
|
const tagsMap$2 = {
|
|
@@ -38693,7 +38746,7 @@ const tagsMap$2 = {
|
|
|
38693
38746
|
};
|
|
38694
38747
|
const TemplateText = ({ text: text2 }) => {
|
|
38695
38748
|
return /* @__PURE__ */ React__default.createElement("p", {
|
|
38696
|
-
className: styles$
|
|
38749
|
+
className: styles$1J.text
|
|
38697
38750
|
}, text2.split("@@").map((item2, index2) => {
|
|
38698
38751
|
if (tagsMap$2[item2]) {
|
|
38699
38752
|
return /* @__PURE__ */ React__default.createElement("span", {
|
|
@@ -38704,7 +38757,7 @@ const TemplateText = ({ text: text2 }) => {
|
|
|
38704
38757
|
}));
|
|
38705
38758
|
};
|
|
38706
38759
|
const button$9 = "_button_1hbqp_1";
|
|
38707
|
-
var styles$
|
|
38760
|
+
var styles$1I = {
|
|
38708
38761
|
button: button$9
|
|
38709
38762
|
};
|
|
38710
38763
|
const Template$1 = ({ text: text2, onClickUse }) => {
|
|
@@ -38715,14 +38768,14 @@ const Template$1 = ({ text: text2, onClickUse }) => {
|
|
|
38715
38768
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(TemplateText, {
|
|
38716
38769
|
text: text2
|
|
38717
38770
|
}), /* @__PURE__ */ React__default.createElement("button", {
|
|
38718
|
-
className: styles$
|
|
38771
|
+
className: styles$1I.button,
|
|
38719
38772
|
onClick: handleClickUse
|
|
38720
38773
|
}, "Use"));
|
|
38721
38774
|
};
|
|
38722
38775
|
const container$F = "_container_1ej4w_1";
|
|
38723
38776
|
const hide$1 = "_hide_1ej4w_8";
|
|
38724
38777
|
const toolbar$3 = "_toolbar_1ej4w_12";
|
|
38725
|
-
var styles$
|
|
38778
|
+
var styles$1H = {
|
|
38726
38779
|
container: container$F,
|
|
38727
38780
|
hide: hide$1,
|
|
38728
38781
|
toolbar: toolbar$3
|
|
@@ -39018,7 +39071,7 @@ function parse$2(value2, root2, parent, rule, rules2, rulesets, pseudo, points,
|
|
|
39018
39071
|
switch (peek()) {
|
|
39019
39072
|
case 42:
|
|
39020
39073
|
case 47:
|
|
39021
|
-
append(comment$
|
|
39074
|
+
append(comment$1(commenter(next(), caret()), root2, parent), declarations);
|
|
39022
39075
|
break;
|
|
39023
39076
|
default:
|
|
39024
39077
|
characters2 += "/";
|
|
@@ -39095,7 +39148,7 @@ function ruleset(value2, root2, parent, index2, offset3, rules2, points, type4,
|
|
|
39095
39148
|
props[k2++] = z2;
|
|
39096
39149
|
return node(value2, root2, parent, offset3 === 0 ? RULESET : type4, props, children, length2);
|
|
39097
39150
|
}
|
|
39098
|
-
function comment$
|
|
39151
|
+
function comment$1(value2, root2, parent) {
|
|
39099
39152
|
return node(value2, root2, parent, COMMENT, from(char()), substr(value2, 2, -2), 0);
|
|
39100
39153
|
}
|
|
39101
39154
|
function declaration(value2, root2, parent, length2) {
|
|
@@ -43535,7 +43588,7 @@ var StateManagedSelect = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
|
43535
43588
|
var Select$1 = StateManagedSelect;
|
|
43536
43589
|
const container$E = "_container_ut3y7_1";
|
|
43537
43590
|
const tooltip = "_tooltip_ut3y7_5";
|
|
43538
|
-
var styles$
|
|
43591
|
+
var styles$1G = {
|
|
43539
43592
|
container: container$E,
|
|
43540
43593
|
tooltip
|
|
43541
43594
|
};
|
|
@@ -43563,7 +43616,7 @@ const NewSelect = ({
|
|
|
43563
43616
|
...props
|
|
43564
43617
|
}) => {
|
|
43565
43618
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
43566
|
-
className: styles$
|
|
43619
|
+
className: styles$1G.container
|
|
43567
43620
|
}, label2 && /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
43568
43621
|
htmlFor: id2
|
|
43569
43622
|
}, label2), /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -43574,7 +43627,7 @@ const NewSelect = ({
|
|
|
43574
43627
|
id: id2,
|
|
43575
43628
|
isDisabled
|
|
43576
43629
|
}), isDisabled && /* @__PURE__ */ React__default.createElement("div", {
|
|
43577
|
-
className: styles$
|
|
43630
|
+
className: styles$1G.tooltip
|
|
43578
43631
|
}, /* @__PURE__ */ React__default.createElement(LockTooltip, null, disabledTooltip))));
|
|
43579
43632
|
};
|
|
43580
43633
|
const getTypesOptions = (data2 = []) => {
|
|
@@ -43593,7 +43646,8 @@ const getLanguageOptions = (data2 = []) => {
|
|
|
43593
43646
|
return [];
|
|
43594
43647
|
}
|
|
43595
43648
|
const languages = data2.reduce((acc, item2) => ({ ...acc, [item2.language.id]: item2.language }), {});
|
|
43596
|
-
|
|
43649
|
+
let arrayLanguages = Object.values(languages);
|
|
43650
|
+
arrayLanguages = arrayLanguages.sort((a2, b2) => a2.label.localeCompare(b2.label));
|
|
43597
43651
|
if (arrayLanguages.length === 0) {
|
|
43598
43652
|
return [];
|
|
43599
43653
|
}
|
|
@@ -43700,11 +43754,11 @@ const TemplatesModal = ({
|
|
|
43700
43754
|
icon: "close",
|
|
43701
43755
|
onClickIcon: onClose2
|
|
43702
43756
|
},
|
|
43703
|
-
className: classNames$2(styles$
|
|
43704
|
-
[styles$
|
|
43757
|
+
className: classNames$2(styles$1H.container, {
|
|
43758
|
+
[styles$1H.hide]: !open
|
|
43705
43759
|
})
|
|
43706
43760
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43707
|
-
className: styles$
|
|
43761
|
+
className: styles$1H.toolbar
|
|
43708
43762
|
}, /* @__PURE__ */ React__default.createElement(NewSelect, {
|
|
43709
43763
|
label: t2("REPLYTEMPLATETYPE"),
|
|
43710
43764
|
options: typeOptions,
|
|
@@ -43736,7 +43790,7 @@ const statusbar__icons = "_statusbar__icons_xc9df_44";
|
|
|
43736
43790
|
const platform = "_platform_xc9df_48";
|
|
43737
43791
|
const button$8 = "_button_xc9df_61";
|
|
43738
43792
|
const flag$3 = "_flag_xc9df_70";
|
|
43739
|
-
var styles$
|
|
43793
|
+
var styles$1F = {
|
|
43740
43794
|
detail: detail$1,
|
|
43741
43795
|
hidden,
|
|
43742
43796
|
reviewer: reviewer$1,
|
|
@@ -43748,26 +43802,18 @@ var styles$1G = {
|
|
|
43748
43802
|
button: button$8,
|
|
43749
43803
|
flag: flag$3
|
|
43750
43804
|
};
|
|
43751
|
-
const label$3 = "_label_7mgn7_1";
|
|
43752
|
-
const comment$1 = "_comment_7mgn7_5";
|
|
43753
|
-
const translate = "_translate_7mgn7_9";
|
|
43754
|
-
var styles$1F = {
|
|
43755
|
-
label: label$3,
|
|
43756
|
-
comment: comment$1,
|
|
43757
|
-
translate
|
|
43758
|
-
};
|
|
43759
43805
|
const Comment = ({ children, showTranslation, setShowTranslation, locale: locale2 }) => {
|
|
43760
43806
|
const { t: t2 } = useTranslation();
|
|
43761
43807
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
43762
43808
|
htmlFor: "",
|
|
43763
|
-
className: styles$
|
|
43809
|
+
className: styles$1P.label
|
|
43764
43810
|
}, t2("REVIEW")), /* @__PURE__ */ React__default.createElement("p", {
|
|
43765
|
-
className: styles$
|
|
43811
|
+
className: styles$1P.comment
|
|
43766
43812
|
}, children), !showTranslation && locale2 !== "en" && /* @__PURE__ */ React__default.createElement("span", {
|
|
43767
|
-
className: styles$
|
|
43813
|
+
className: styles$1P.translate,
|
|
43768
43814
|
onClick: () => setShowTranslation(true)
|
|
43769
43815
|
}, t2("SHOWTRANSLATION")), showTranslation && locale2 !== "en" && /* @__PURE__ */ React__default.createElement("span", {
|
|
43770
|
-
className: styles$
|
|
43816
|
+
className: styles$1P.translate,
|
|
43771
43817
|
onClick: () => setShowTranslation(false)
|
|
43772
43818
|
}, t2("HIDETRANSLATION")));
|
|
43773
43819
|
};
|
|
@@ -43841,26 +43887,26 @@ const DetailMobile = ({
|
|
|
43841
43887
|
const openModal = () => setShowTemplates(true);
|
|
43842
43888
|
const closeModal = () => setShowTemplates(false);
|
|
43843
43889
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
43844
|
-
className: classNames$2(styles$
|
|
43845
|
-
[styles$
|
|
43890
|
+
className: classNames$2(styles$1F.detail, {
|
|
43891
|
+
[styles$1F.hidden]: !openForm
|
|
43846
43892
|
})
|
|
43847
43893
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43848
43894
|
onClick,
|
|
43849
|
-
className: styles$
|
|
43895
|
+
className: styles$1F.back
|
|
43850
43896
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
43851
43897
|
icon: "close"
|
|
43852
43898
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
43853
|
-
className: styles$
|
|
43899
|
+
className: styles$1F.statusbar
|
|
43854
43900
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43855
|
-
className: styles$
|
|
43901
|
+
className: styles$1F.statusbar__icons
|
|
43856
43902
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
43857
43903
|
icon: reply2 ? "mailReplied" : "mailNotReplied"
|
|
43858
43904
|
}), /* @__PURE__ */ React__default.createElement("img", {
|
|
43859
43905
|
alt: platform2,
|
|
43860
43906
|
src: platformImages[platform2],
|
|
43861
|
-
className: styles$
|
|
43907
|
+
className: styles$1F.platform
|
|
43862
43908
|
})), /* @__PURE__ */ React__default.createElement("div", null, createdAt)), /* @__PURE__ */ React__default.createElement("strong", {
|
|
43863
|
-
className: styles$
|
|
43909
|
+
className: styles$1F.reviewer
|
|
43864
43910
|
}, reviewer2.name, " ", ` `, locale2 && /* @__PURE__ */ React__default.createElement(CountryFlag, {
|
|
43865
43911
|
locale: locale2
|
|
43866
43912
|
})), /* @__PURE__ */ React__default.createElement(StartScore, {
|
|
@@ -43880,7 +43926,7 @@ const DetailMobile = ({
|
|
|
43880
43926
|
}, comment2), showTranslation && /* @__PURE__ */ React__default.createElement(CommentTranslation, {
|
|
43881
43927
|
commentId: id2
|
|
43882
43928
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
43883
|
-
className: styles$
|
|
43929
|
+
className: styles$1F["container--reply"]
|
|
43884
43930
|
}, reply2 ? /* @__PURE__ */ React__default.createElement(Reply, {
|
|
43885
43931
|
reply: reply2
|
|
43886
43932
|
}) : /* @__PURE__ */ React__default.createElement(ReplyForm, {
|
|
@@ -43889,7 +43935,8 @@ const DetailMobile = ({
|
|
|
43889
43935
|
locationName,
|
|
43890
43936
|
onSucess: onReload,
|
|
43891
43937
|
isMobile: true,
|
|
43892
|
-
isSuggesting
|
|
43938
|
+
isSuggesting,
|
|
43939
|
+
locale: locale2
|
|
43893
43940
|
})), /* @__PURE__ */ React__default.createElement(TemplatesModal, {
|
|
43894
43941
|
open: showTemplates,
|
|
43895
43942
|
rating,
|
|
@@ -43956,7 +44003,8 @@ const DetailDesktop = ({
|
|
|
43956
44003
|
onSucess: onReload,
|
|
43957
44004
|
setShowTemplates: setShowTemplate,
|
|
43958
44005
|
onSuggestTemplate,
|
|
43959
|
-
isSuggesting
|
|
44006
|
+
isSuggesting,
|
|
44007
|
+
locale: locale2
|
|
43960
44008
|
})));
|
|
43961
44009
|
};
|
|
43962
44010
|
const container$D = "_container_1br0u_1";
|
|
@@ -49857,9 +49905,9 @@ const GetVenueListingsOptions = async () => {
|
|
|
49857
49905
|
limit: 1e3
|
|
49858
49906
|
}
|
|
49859
49907
|
});
|
|
49860
|
-
return formatData$
|
|
49908
|
+
return formatData$i(data2);
|
|
49861
49909
|
};
|
|
49862
|
-
const formatData$
|
|
49910
|
+
const formatData$i = (data2) => {
|
|
49863
49911
|
return {
|
|
49864
49912
|
data: data2.data.map(({ id: id2, businessName }) => ({
|
|
49865
49913
|
id: id2,
|
|
@@ -50255,9 +50303,9 @@ const GetVenueListingModule = async ({
|
|
|
50255
50303
|
Authorization: `Bearer ${accessToken}`
|
|
50256
50304
|
}
|
|
50257
50305
|
});
|
|
50258
|
-
return formatData$
|
|
50306
|
+
return formatData$h(data2);
|
|
50259
50307
|
};
|
|
50260
|
-
const formatData$
|
|
50308
|
+
const formatData$h = (values = {}) => {
|
|
50261
50309
|
const { country, ...rest } = values;
|
|
50262
50310
|
const _country = countries$1 == null ? void 0 : countries$1.find(({ id: id2 }) => id2 === country);
|
|
50263
50311
|
return {
|
|
@@ -52694,7 +52742,7 @@ const Accountpages$1 = () => {
|
|
|
52694
52742
|
initialValues: {},
|
|
52695
52743
|
onSubmit: () => {
|
|
52696
52744
|
}
|
|
52697
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52745
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52698
52746
|
id: "firstName",
|
|
52699
52747
|
label: t2("FIRSTNAME")
|
|
52700
52748
|
}), /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
@@ -52745,7 +52793,7 @@ const Accountpages = () => {
|
|
|
52745
52793
|
initialValues: {},
|
|
52746
52794
|
onSubmit: () => {
|
|
52747
52795
|
}
|
|
52748
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52796
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52749
52797
|
id: "firstName",
|
|
52750
52798
|
label: "First Name"
|
|
52751
52799
|
}), /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
@@ -52774,7 +52822,7 @@ const Accountpages = () => {
|
|
|
52774
52822
|
initialValues: {},
|
|
52775
52823
|
onSubmit: () => {
|
|
52776
52824
|
}
|
|
52777
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52825
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52778
52826
|
id: "currentPassword",
|
|
52779
52827
|
label: "Current password",
|
|
52780
52828
|
type: "password"
|
|
@@ -52805,10 +52853,10 @@ const GetUserNotificationSettings = async ({}) => {
|
|
|
52805
52853
|
const UpdateUserNotificationSettings = async ({
|
|
52806
52854
|
data: data2
|
|
52807
52855
|
}) => {
|
|
52808
|
-
await instance$1.put(`listing/notification-settings`, formatData$
|
|
52856
|
+
await instance$1.put(`listing/notification-settings`, formatData$g(data2));
|
|
52809
52857
|
return { data: data2 };
|
|
52810
52858
|
};
|
|
52811
|
-
const formatData$
|
|
52859
|
+
const formatData$g = (data2) => {
|
|
52812
52860
|
return {
|
|
52813
52861
|
dailyReport: data2.dailyReport ? "true" : "false",
|
|
52814
52862
|
weeklyReport: data2.weeklyReport ? "true" : "false",
|
|
@@ -52821,9 +52869,9 @@ const formatData$f = (data2) => {
|
|
|
52821
52869
|
emails: data2.emails
|
|
52822
52870
|
};
|
|
52823
52871
|
};
|
|
52824
|
-
const mainConatiner$2 = "
|
|
52825
|
-
const container$v = "
|
|
52826
|
-
const item$9 = "
|
|
52872
|
+
const mainConatiner$2 = "_mainConatiner_1mt10_1";
|
|
52873
|
+
const container$v = "_container_1mt10_5";
|
|
52874
|
+
const item$9 = "_item_1mt10_23";
|
|
52827
52875
|
var styles$1m = {
|
|
52828
52876
|
mainConatiner: mainConatiner$2,
|
|
52829
52877
|
container: container$v,
|
|
@@ -52917,7 +52965,7 @@ var styles$1i = {
|
|
|
52917
52965
|
plus: plus$4,
|
|
52918
52966
|
footer: footer$d
|
|
52919
52967
|
};
|
|
52920
|
-
const
|
|
52968
|
+
const EmailForm = ({
|
|
52921
52969
|
open,
|
|
52922
52970
|
onCloseForm,
|
|
52923
52971
|
initialValues = {},
|
|
@@ -52955,7 +53003,7 @@ const Form$b = ({
|
|
|
52955
53003
|
initialValues,
|
|
52956
53004
|
onSubmit: handleSubmit,
|
|
52957
53005
|
validationSchema: dataValidationSchema
|
|
52958
|
-
}, ({ values, isValid: isValid2 }) => /* @__PURE__ */ React__default.createElement(Form$
|
|
53006
|
+
}, ({ values, isValid: isValid2 }) => /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(FieldArray, {
|
|
52959
53007
|
name: "emails",
|
|
52960
53008
|
render: (arrayHelpers) => /* @__PURE__ */ React__default.createElement("div", null, values.emails && values.emails.length > 0 ? values.emails.map((email3, index2) => /* @__PURE__ */ React__default.createElement("div", {
|
|
52961
53009
|
className: styles$1i.container,
|
|
@@ -52990,17 +53038,78 @@ const Form$b = ({
|
|
|
52990
53038
|
}, t2("SAVE"))))
|
|
52991
53039
|
}))));
|
|
52992
53040
|
};
|
|
53041
|
+
const UpdateUserSettings = async ({
|
|
53042
|
+
data: data2
|
|
53043
|
+
}) => {
|
|
53044
|
+
await instance$1.put(`listing/user-settings`, formatData$f(data2));
|
|
53045
|
+
return { data: data2 };
|
|
53046
|
+
};
|
|
53047
|
+
const formatData$f = (data2) => {
|
|
53048
|
+
var _a2;
|
|
53049
|
+
return {
|
|
53050
|
+
aiPrompt: (_a2 = data2.aiPrompt) != null ? _a2 : null
|
|
53051
|
+
};
|
|
53052
|
+
};
|
|
53053
|
+
const AiPromptForm = ({
|
|
53054
|
+
open,
|
|
53055
|
+
onCloseForm,
|
|
53056
|
+
initialValues = {},
|
|
53057
|
+
reload
|
|
53058
|
+
}) => {
|
|
53059
|
+
const { t: t2 } = useTranslation();
|
|
53060
|
+
const { isExecuting, execute } = useService(UpdateUserSettings, {
|
|
53061
|
+
onSuccess: async () => {
|
|
53062
|
+
await reload();
|
|
53063
|
+
onCloseForm();
|
|
53064
|
+
}
|
|
53065
|
+
});
|
|
53066
|
+
const handleSubmit = (data2) => {
|
|
53067
|
+
execute({ data: data2 });
|
|
53068
|
+
};
|
|
53069
|
+
return /* @__PURE__ */ React__default.createElement(Modal2, {
|
|
53070
|
+
open,
|
|
53071
|
+
onClose: onCloseForm,
|
|
53072
|
+
title: t2("AIPROMPT"),
|
|
53073
|
+
width: 500
|
|
53074
|
+
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
53075
|
+
initialValues,
|
|
53076
|
+
onSubmit: handleSubmit
|
|
53077
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(TextAreaField, {
|
|
53078
|
+
id: "aiPrompt",
|
|
53079
|
+
label: t2("AIPROMPT"),
|
|
53080
|
+
hideLabel: true,
|
|
53081
|
+
rows: 8
|
|
53082
|
+
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
53083
|
+
style: { display: "flex", justifyContent: "flex-end", marginTop: "1rem" }
|
|
53084
|
+
}, /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
53085
|
+
size: "small",
|
|
53086
|
+
type: "submit",
|
|
53087
|
+
isLoading: isExecuting
|
|
53088
|
+
}, t2("SAVE"))))));
|
|
53089
|
+
};
|
|
53090
|
+
const GetUser = async () => {
|
|
53091
|
+
const user = await instance$1.get("user-me");
|
|
53092
|
+
sessionStorage.setItem("sdk_user", JSON.stringify(user));
|
|
53093
|
+
return { data: user };
|
|
53094
|
+
};
|
|
52993
53095
|
const Notifications = ({
|
|
52994
53096
|
venueId,
|
|
52995
53097
|
venueListingId
|
|
52996
53098
|
}) => {
|
|
53099
|
+
var _a2, _b, _c;
|
|
52997
53100
|
const { t: t2 } = useTranslation();
|
|
52998
53101
|
const [showModal, setShowmodal] = useState(false);
|
|
52999
53102
|
const closeModal = () => setShowmodal(false);
|
|
53000
53103
|
const openModal = () => setShowmodal(true);
|
|
53104
|
+
const [showAiPromptModal, setShowAiPromptModal] = useState(false);
|
|
53105
|
+
const closeAiPromptModal = () => setShowAiPromptModal(false);
|
|
53106
|
+
const openAiPromptModal = () => setShowAiPromptModal(true);
|
|
53001
53107
|
const { data: data2, isLoading, error: error3, reload } = useFetch(GetUserNotificationSettings, {
|
|
53002
53108
|
cacheId: `user-notifications-settings`
|
|
53003
53109
|
});
|
|
53110
|
+
const { data: userData2, reload: reloadUserData } = useFetch(GetUser, {
|
|
53111
|
+
cacheId: `user-data`
|
|
53112
|
+
});
|
|
53004
53113
|
const _reload = () => {
|
|
53005
53114
|
reload();
|
|
53006
53115
|
};
|
|
@@ -53031,54 +53140,72 @@ const Notifications = ({
|
|
|
53031
53140
|
initialValues: data2,
|
|
53032
53141
|
onSubmit: handleSubmit,
|
|
53033
53142
|
enableReinitialize: true
|
|
53034
|
-
}, ({ handleSubmit: handleSubmit2 }) =>
|
|
53035
|
-
|
|
53036
|
-
}, /* @__PURE__ */ React__default.createElement(Card, {
|
|
53037
|
-
header: { title: t2("REVIEWSREPORT") }
|
|
53038
|
-
}, /* @__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, {
|
|
53039
|
-
mode: "vertical"
|
|
53040
|
-
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53041
|
-
id: "dailyReport",
|
|
53042
|
-
name: t2("DAILYREPORT"),
|
|
53043
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53044
|
-
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53045
|
-
id: "weeklyReport",
|
|
53046
|
-
name: t2("WEEKLYREPORT"),
|
|
53047
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53048
|
-
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53049
|
-
id: "monthlyReport",
|
|
53050
|
-
name: t2("MONTHLYREPORT"),
|
|
53051
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53052
|
-
}))), /* @__PURE__ */ React__default.createElement(Card, {
|
|
53053
|
-
header: { title: t2("REVIEWS") }
|
|
53054
|
-
}, /* @__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, {
|
|
53055
|
-
mode: "vertical"
|
|
53056
|
-
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53057
|
-
id: "allReviewAlert",
|
|
53058
|
-
name: t2("ALLREVIEWS"),
|
|
53059
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53060
|
-
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53061
|
-
id: "negativeReviewAlert",
|
|
53062
|
-
name: t2("NEGATIVEREVIEWS1"),
|
|
53063
|
-
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53064
|
-
}))), /* @__PURE__ */ React__default.createElement(Card, {
|
|
53065
|
-
header: {
|
|
53066
|
-
title: t2("Email"),
|
|
53067
|
-
icon: "edit",
|
|
53068
|
-
onClickIcon: openModal
|
|
53069
|
-
}
|
|
53070
|
-
}, /* @__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) => {
|
|
53143
|
+
}, ({ handleSubmit: handleSubmit2 }) => {
|
|
53144
|
+
var _a3, _b2;
|
|
53071
53145
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
53072
|
-
|
|
53146
|
+
className: styles$1m.container
|
|
53147
|
+
}, /* @__PURE__ */ React__default.createElement(Card, {
|
|
53148
|
+
header: { title: t2("REVIEWSREPORT") }
|
|
53149
|
+
}, /* @__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, {
|
|
53150
|
+
mode: "vertical"
|
|
53151
|
+
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53152
|
+
id: "dailyReport",
|
|
53153
|
+
name: t2("DAILYREPORT"),
|
|
53154
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53155
|
+
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53156
|
+
id: "weeklyReport",
|
|
53157
|
+
name: t2("WEEKLYREPORT"),
|
|
53158
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53159
|
+
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53160
|
+
id: "monthlyReport",
|
|
53161
|
+
name: t2("MONTHLYREPORT"),
|
|
53162
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53163
|
+
}))), /* @__PURE__ */ React__default.createElement(Card, {
|
|
53164
|
+
header: { title: t2("REVIEWS") }
|
|
53165
|
+
}, /* @__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, {
|
|
53166
|
+
mode: "vertical"
|
|
53167
|
+
}, /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53168
|
+
id: "allReviewAlert",
|
|
53169
|
+
name: t2("ALLREVIEWS"),
|
|
53170
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53171
|
+
}), /* @__PURE__ */ React__default.createElement(Item$1, {
|
|
53172
|
+
id: "negativeReviewAlert",
|
|
53173
|
+
name: t2("NEGATIVEREVIEWS1"),
|
|
53174
|
+
onChange: () => setTimeout(handleSubmit2, 100)
|
|
53175
|
+
}))), /* @__PURE__ */ React__default.createElement(Card, {
|
|
53176
|
+
header: {
|
|
53177
|
+
title: t2("Email"),
|
|
53178
|
+
icon: "edit",
|
|
53179
|
+
onClickIcon: openModal
|
|
53180
|
+
}
|
|
53181
|
+
}, /* @__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) => {
|
|
53182
|
+
return /* @__PURE__ */ React__default.createElement("div", {
|
|
53183
|
+
key: index2,
|
|
53184
|
+
className: styles$1m.item
|
|
53185
|
+
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
53186
|
+
icon: "mail"
|
|
53187
|
+
})), email3 || t2("NOTDEFINED"));
|
|
53188
|
+
}), !(data2 == null ? void 0 : data2.emails) && /* @__PURE__ */ React__default.createElement("div", {
|
|
53073
53189
|
className: styles$1m.item
|
|
53074
53190
|
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
53075
53191
|
icon: "mail"
|
|
53076
|
-
})),
|
|
53077
|
-
|
|
53078
|
-
|
|
53079
|
-
|
|
53080
|
-
|
|
53081
|
-
|
|
53192
|
+
})), t2("NOTDEFINED"))), ((_a3 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _a3.company) && /* @__PURE__ */ React__default.createElement(Card, {
|
|
53193
|
+
header: {
|
|
53194
|
+
title: t2("AIPROMPT"),
|
|
53195
|
+
icon: "edit",
|
|
53196
|
+
onClickIcon: openAiPromptModal
|
|
53197
|
+
}
|
|
53198
|
+
}, /* @__PURE__ */ React__default.createElement("p", null, "Ai prompt for generate reviews."), /* @__PURE__ */ React__default.createElement("br", null), /* @__PURE__ */ React__default.createElement("div", {
|
|
53199
|
+
className: styles$1m.item
|
|
53200
|
+
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
53201
|
+
icon: "robot"
|
|
53202
|
+
})), ((_b2 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _b2.company.aiPrompt) || t2("NOTDEFINED"))));
|
|
53203
|
+
}), /* @__PURE__ */ React__default.createElement(AiPromptForm, {
|
|
53204
|
+
open: showAiPromptModal,
|
|
53205
|
+
onCloseForm: closeAiPromptModal,
|
|
53206
|
+
initialValues: { aiPrompt: (_c = (_b = (_a2 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _a2.company) == null ? void 0 : _b.aiPrompt) != null ? _c : "" },
|
|
53207
|
+
reload: reloadUserData
|
|
53208
|
+
}), /* @__PURE__ */ React__default.createElement(EmailForm, {
|
|
53082
53209
|
open: showModal,
|
|
53083
53210
|
onCloseForm: closeModal,
|
|
53084
53211
|
initialValues: data2,
|
|
@@ -53191,7 +53318,7 @@ const ReplyTemplateForm = ({
|
|
|
53191
53318
|
initialValues: initialState2,
|
|
53192
53319
|
validationSchema: schema$1,
|
|
53193
53320
|
onSubmit: executeSubmit
|
|
53194
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
53321
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
53195
53322
|
className: styles$1g.form
|
|
53196
53323
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
53197
53324
|
id: "title",
|
|
@@ -79250,7 +79377,7 @@ const Form$a = ({
|
|
|
79250
79377
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
79251
79378
|
initialValues,
|
|
79252
79379
|
onSubmit: handleSubmit
|
|
79253
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
79380
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
79254
79381
|
className: styles$13.container
|
|
79255
79382
|
}, /* @__PURE__ */ React__default.createElement(Row$1, {
|
|
79256
79383
|
gutter: [16, 16]
|
|
@@ -91567,7 +91694,7 @@ const Form$9 = ({
|
|
|
91567
91694
|
}, /* @__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, {
|
|
91568
91695
|
initialValues,
|
|
91569
91696
|
onSubmit: handleSubmit
|
|
91570
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
91697
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
91571
91698
|
className: styles$X.form
|
|
91572
91699
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
91573
91700
|
className: styles$X.form__row1
|
|
@@ -92002,7 +92129,7 @@ const Form$8 = ({
|
|
|
92002
92129
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92003
92130
|
initialValues,
|
|
92004
92131
|
onSubmit: handleSubmit
|
|
92005
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92132
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
92006
92133
|
className: styles$P.form
|
|
92007
92134
|
}, /* @__PURE__ */ React__default.createElement(RegularHours$1, {
|
|
92008
92135
|
id: "regularHours"
|
|
@@ -92529,7 +92656,7 @@ const Form$7 = ({
|
|
|
92529
92656
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92530
92657
|
initialValues,
|
|
92531
92658
|
onSubmit: handleSubmit
|
|
92532
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92659
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
92533
92660
|
className: styles$M.container
|
|
92534
92661
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
92535
92662
|
className: styles$M.form
|
|
@@ -92626,7 +92753,7 @@ const Form$6 = ({
|
|
|
92626
92753
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92627
92754
|
initialValues,
|
|
92628
92755
|
onSubmit: handleSubmit
|
|
92629
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92756
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
92630
92757
|
style: {
|
|
92631
92758
|
display: "grid",
|
|
92632
92759
|
gridTemplateColumns: "repeat(2,1fr)",
|
|
@@ -94199,7 +94326,7 @@ const Form$5 = ({
|
|
|
94199
94326
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
94200
94327
|
initialValues,
|
|
94201
94328
|
onSubmit: handleSubmit
|
|
94202
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
94329
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
94203
94330
|
className: styles$L.container
|
|
94204
94331
|
}, /* @__PURE__ */ React__default.createElement(MediaPage, null)), /* @__PURE__ */ React__default.createElement("div", {
|
|
94205
94332
|
className: styles$L.footer
|
|
@@ -94356,7 +94483,7 @@ const Form$4 = ({
|
|
|
94356
94483
|
initialValues,
|
|
94357
94484
|
onSubmit: handleSubmit,
|
|
94358
94485
|
validationSchema: schema
|
|
94359
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
94486
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
94360
94487
|
className: styles$F.container
|
|
94361
94488
|
}, /* @__PURE__ */ React__default.createElement(TextInputFieldWithRule, {
|
|
94362
94489
|
id: "urlWebsite",
|
|
@@ -95173,7 +95300,7 @@ const ModalBingVerify = ({
|
|
|
95173
95300
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
95174
95301
|
initialValues,
|
|
95175
95302
|
onSubmit: handleSubmit
|
|
95176
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
95303
|
+
}, /* @__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", {
|
|
95177
95304
|
style: {
|
|
95178
95305
|
display: "grid",
|
|
95179
95306
|
gridTemplateColumns: "repeat(2,1fr)",
|
|
@@ -95229,7 +95356,7 @@ const ModalBingConnect = ({
|
|
|
95229
95356
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
95230
95357
|
initialValues,
|
|
95231
95358
|
onSubmit: handleSubmit
|
|
95232
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
95359
|
+
}, /* @__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", {
|
|
95233
95360
|
style: {
|
|
95234
95361
|
display: "grid",
|
|
95235
95362
|
gridTemplateColumns: "repeat(1,1fr)",
|
|
@@ -96217,7 +96344,7 @@ const Form$3 = ({
|
|
|
96217
96344
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
96218
96345
|
initialValues,
|
|
96219
96346
|
onSubmit: handleSubmit
|
|
96220
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
96347
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
96221
96348
|
className: styles$r.form
|
|
96222
96349
|
}, /* @__PURE__ */ React__default.createElement(RegularHours, {
|
|
96223
96350
|
id: "regularHours"
|
|
@@ -96418,7 +96545,7 @@ const NotificationsComp = ({}) => {
|
|
|
96418
96545
|
className: styles2.item
|
|
96419
96546
|
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
96420
96547
|
icon: "mail"
|
|
96421
|
-
})), t2("NOTDEFINED")))))), /* @__PURE__ */ React__default.createElement(
|
|
96548
|
+
})), t2("NOTDEFINED")))))), /* @__PURE__ */ React__default.createElement(EmailForm, {
|
|
96422
96549
|
open: showModal,
|
|
96423
96550
|
onCloseForm: closeModal,
|
|
96424
96551
|
initialValues: data2,
|
|
@@ -97200,7 +97327,7 @@ const SpecificHours = ({ value: value2, reload, id: id2, venue_id, onDeleteSpeci
|
|
|
97200
97327
|
return /* @__PURE__ */ React__default.createElement(Formik, {
|
|
97201
97328
|
initialValues: value2,
|
|
97202
97329
|
onSubmit: handleSubmit
|
|
97203
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
97330
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
97204
97331
|
className: styles$h.form,
|
|
97205
97332
|
onChange: () => setIsEditing(true)
|
|
97206
97333
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -99700,7 +99827,7 @@ const ContactDetailsFormFields = ({ isExecuting = false }) => {
|
|
|
99700
99827
|
isSubmitting,
|
|
99701
99828
|
isValid: isValid2
|
|
99702
99829
|
} = useFormikContext();
|
|
99703
|
-
return /* @__PURE__ */ React__default.createElement(Form$
|
|
99830
|
+
return /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
99704
99831
|
style: { display: "flex", flexDirection: "row", flexWrap: "wrap" }
|
|
99705
99832
|
}, /* @__PURE__ */ React__default.createElement(Row$1, {
|
|
99706
99833
|
gutter: [16, 16]
|
|
@@ -101378,7 +101505,7 @@ const ChangePasswordForm = ({ isExecuting }) => {
|
|
|
101378
101505
|
const {
|
|
101379
101506
|
isValid: isValid2
|
|
101380
101507
|
} = useFormikContext();
|
|
101381
|
-
return /* @__PURE__ */ React__default.createElement(Form$
|
|
101508
|
+
return /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
101382
101509
|
style: { display: "flex", flexDirection: "column", justifyContent: "center", gap: 20, flexWrap: "wrap" }
|
|
101383
101510
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
101384
101511
|
id: "currentPassword",
|