mozrest-sdk-react-dev 0.2.26 → 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 +298 -169
- 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) => {
|
|
@@ -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 = []) => {
|
|
@@ -43700,11 +43753,11 @@ const TemplatesModal = ({
|
|
|
43700
43753
|
icon: "close",
|
|
43701
43754
|
onClickIcon: onClose2
|
|
43702
43755
|
},
|
|
43703
|
-
className: classNames$2(styles$
|
|
43704
|
-
[styles$
|
|
43756
|
+
className: classNames$2(styles$1H.container, {
|
|
43757
|
+
[styles$1H.hide]: !open
|
|
43705
43758
|
})
|
|
43706
43759
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43707
|
-
className: styles$
|
|
43760
|
+
className: styles$1H.toolbar
|
|
43708
43761
|
}, /* @__PURE__ */ React__default.createElement(NewSelect, {
|
|
43709
43762
|
label: t2("REPLYTEMPLATETYPE"),
|
|
43710
43763
|
options: typeOptions,
|
|
@@ -43736,7 +43789,7 @@ const statusbar__icons = "_statusbar__icons_xc9df_44";
|
|
|
43736
43789
|
const platform = "_platform_xc9df_48";
|
|
43737
43790
|
const button$8 = "_button_xc9df_61";
|
|
43738
43791
|
const flag$3 = "_flag_xc9df_70";
|
|
43739
|
-
var styles$
|
|
43792
|
+
var styles$1F = {
|
|
43740
43793
|
detail: detail$1,
|
|
43741
43794
|
hidden,
|
|
43742
43795
|
reviewer: reviewer$1,
|
|
@@ -43748,26 +43801,18 @@ var styles$1G = {
|
|
|
43748
43801
|
button: button$8,
|
|
43749
43802
|
flag: flag$3
|
|
43750
43803
|
};
|
|
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
43804
|
const Comment = ({ children, showTranslation, setShowTranslation, locale: locale2 }) => {
|
|
43760
43805
|
const { t: t2 } = useTranslation();
|
|
43761
43806
|
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Label$1, {
|
|
43762
43807
|
htmlFor: "",
|
|
43763
|
-
className: styles$
|
|
43808
|
+
className: styles$1P.label
|
|
43764
43809
|
}, t2("REVIEW")), /* @__PURE__ */ React__default.createElement("p", {
|
|
43765
|
-
className: styles$
|
|
43810
|
+
className: styles$1P.comment
|
|
43766
43811
|
}, children), !showTranslation && locale2 !== "en" && /* @__PURE__ */ React__default.createElement("span", {
|
|
43767
|
-
className: styles$
|
|
43812
|
+
className: styles$1P.translate,
|
|
43768
43813
|
onClick: () => setShowTranslation(true)
|
|
43769
43814
|
}, t2("SHOWTRANSLATION")), showTranslation && locale2 !== "en" && /* @__PURE__ */ React__default.createElement("span", {
|
|
43770
|
-
className: styles$
|
|
43815
|
+
className: styles$1P.translate,
|
|
43771
43816
|
onClick: () => setShowTranslation(false)
|
|
43772
43817
|
}, t2("HIDETRANSLATION")));
|
|
43773
43818
|
};
|
|
@@ -43841,26 +43886,26 @@ const DetailMobile = ({
|
|
|
43841
43886
|
const openModal = () => setShowTemplates(true);
|
|
43842
43887
|
const closeModal = () => setShowTemplates(false);
|
|
43843
43888
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
43844
|
-
className: classNames$2(styles$
|
|
43845
|
-
[styles$
|
|
43889
|
+
className: classNames$2(styles$1F.detail, {
|
|
43890
|
+
[styles$1F.hidden]: !openForm
|
|
43846
43891
|
})
|
|
43847
43892
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43848
43893
|
onClick,
|
|
43849
|
-
className: styles$
|
|
43894
|
+
className: styles$1F.back
|
|
43850
43895
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
43851
43896
|
icon: "close"
|
|
43852
43897
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
43853
|
-
className: styles$
|
|
43898
|
+
className: styles$1F.statusbar
|
|
43854
43899
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
43855
|
-
className: styles$
|
|
43900
|
+
className: styles$1F.statusbar__icons
|
|
43856
43901
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
43857
43902
|
icon: reply2 ? "mailReplied" : "mailNotReplied"
|
|
43858
43903
|
}), /* @__PURE__ */ React__default.createElement("img", {
|
|
43859
43904
|
alt: platform2,
|
|
43860
43905
|
src: platformImages[platform2],
|
|
43861
|
-
className: styles$
|
|
43906
|
+
className: styles$1F.platform
|
|
43862
43907
|
})), /* @__PURE__ */ React__default.createElement("div", null, createdAt)), /* @__PURE__ */ React__default.createElement("strong", {
|
|
43863
|
-
className: styles$
|
|
43908
|
+
className: styles$1F.reviewer
|
|
43864
43909
|
}, reviewer2.name, " ", ` `, locale2 && /* @__PURE__ */ React__default.createElement(CountryFlag, {
|
|
43865
43910
|
locale: locale2
|
|
43866
43911
|
})), /* @__PURE__ */ React__default.createElement(StartScore, {
|
|
@@ -43880,7 +43925,7 @@ const DetailMobile = ({
|
|
|
43880
43925
|
}, comment2), showTranslation && /* @__PURE__ */ React__default.createElement(CommentTranslation, {
|
|
43881
43926
|
commentId: id2
|
|
43882
43927
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
43883
|
-
className: styles$
|
|
43928
|
+
className: styles$1F["container--reply"]
|
|
43884
43929
|
}, reply2 ? /* @__PURE__ */ React__default.createElement(Reply, {
|
|
43885
43930
|
reply: reply2
|
|
43886
43931
|
}) : /* @__PURE__ */ React__default.createElement(ReplyForm, {
|
|
@@ -43889,7 +43934,8 @@ const DetailMobile = ({
|
|
|
43889
43934
|
locationName,
|
|
43890
43935
|
onSucess: onReload,
|
|
43891
43936
|
isMobile: true,
|
|
43892
|
-
isSuggesting
|
|
43937
|
+
isSuggesting,
|
|
43938
|
+
locale: locale2
|
|
43893
43939
|
})), /* @__PURE__ */ React__default.createElement(TemplatesModal, {
|
|
43894
43940
|
open: showTemplates,
|
|
43895
43941
|
rating,
|
|
@@ -43956,7 +44002,8 @@ const DetailDesktop = ({
|
|
|
43956
44002
|
onSucess: onReload,
|
|
43957
44003
|
setShowTemplates: setShowTemplate,
|
|
43958
44004
|
onSuggestTemplate,
|
|
43959
|
-
isSuggesting
|
|
44005
|
+
isSuggesting,
|
|
44006
|
+
locale: locale2
|
|
43960
44007
|
})));
|
|
43961
44008
|
};
|
|
43962
44009
|
const container$D = "_container_1br0u_1";
|
|
@@ -49857,9 +49904,9 @@ const GetVenueListingsOptions = async () => {
|
|
|
49857
49904
|
limit: 1e3
|
|
49858
49905
|
}
|
|
49859
49906
|
});
|
|
49860
|
-
return formatData$
|
|
49907
|
+
return formatData$i(data2);
|
|
49861
49908
|
};
|
|
49862
|
-
const formatData$
|
|
49909
|
+
const formatData$i = (data2) => {
|
|
49863
49910
|
return {
|
|
49864
49911
|
data: data2.data.map(({ id: id2, businessName }) => ({
|
|
49865
49912
|
id: id2,
|
|
@@ -50255,9 +50302,9 @@ const GetVenueListingModule = async ({
|
|
|
50255
50302
|
Authorization: `Bearer ${accessToken}`
|
|
50256
50303
|
}
|
|
50257
50304
|
});
|
|
50258
|
-
return formatData$
|
|
50305
|
+
return formatData$h(data2);
|
|
50259
50306
|
};
|
|
50260
|
-
const formatData$
|
|
50307
|
+
const formatData$h = (values = {}) => {
|
|
50261
50308
|
const { country, ...rest } = values;
|
|
50262
50309
|
const _country = countries$1 == null ? void 0 : countries$1.find(({ id: id2 }) => id2 === country);
|
|
50263
50310
|
return {
|
|
@@ -52694,7 +52741,7 @@ const Accountpages$1 = () => {
|
|
|
52694
52741
|
initialValues: {},
|
|
52695
52742
|
onSubmit: () => {
|
|
52696
52743
|
}
|
|
52697
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52744
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52698
52745
|
id: "firstName",
|
|
52699
52746
|
label: t2("FIRSTNAME")
|
|
52700
52747
|
}), /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
@@ -52745,7 +52792,7 @@ const Accountpages = () => {
|
|
|
52745
52792
|
initialValues: {},
|
|
52746
52793
|
onSubmit: () => {
|
|
52747
52794
|
}
|
|
52748
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52795
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52749
52796
|
id: "firstName",
|
|
52750
52797
|
label: "First Name"
|
|
52751
52798
|
}), /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
@@ -52774,7 +52821,7 @@ const Accountpages = () => {
|
|
|
52774
52821
|
initialValues: {},
|
|
52775
52822
|
onSubmit: () => {
|
|
52776
52823
|
}
|
|
52777
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
52824
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(LayoutForm, null, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
52778
52825
|
id: "currentPassword",
|
|
52779
52826
|
label: "Current password",
|
|
52780
52827
|
type: "password"
|
|
@@ -52805,10 +52852,10 @@ const GetUserNotificationSettings = async ({}) => {
|
|
|
52805
52852
|
const UpdateUserNotificationSettings = async ({
|
|
52806
52853
|
data: data2
|
|
52807
52854
|
}) => {
|
|
52808
|
-
await instance$1.put(`listing/notification-settings`, formatData$
|
|
52855
|
+
await instance$1.put(`listing/notification-settings`, formatData$g(data2));
|
|
52809
52856
|
return { data: data2 };
|
|
52810
52857
|
};
|
|
52811
|
-
const formatData$
|
|
52858
|
+
const formatData$g = (data2) => {
|
|
52812
52859
|
return {
|
|
52813
52860
|
dailyReport: data2.dailyReport ? "true" : "false",
|
|
52814
52861
|
weeklyReport: data2.weeklyReport ? "true" : "false",
|
|
@@ -52821,9 +52868,9 @@ const formatData$f = (data2) => {
|
|
|
52821
52868
|
emails: data2.emails
|
|
52822
52869
|
};
|
|
52823
52870
|
};
|
|
52824
|
-
const mainConatiner$2 = "
|
|
52825
|
-
const container$v = "
|
|
52826
|
-
const item$9 = "
|
|
52871
|
+
const mainConatiner$2 = "_mainConatiner_1mt10_1";
|
|
52872
|
+
const container$v = "_container_1mt10_5";
|
|
52873
|
+
const item$9 = "_item_1mt10_23";
|
|
52827
52874
|
var styles$1m = {
|
|
52828
52875
|
mainConatiner: mainConatiner$2,
|
|
52829
52876
|
container: container$v,
|
|
@@ -52917,7 +52964,7 @@ var styles$1i = {
|
|
|
52917
52964
|
plus: plus$4,
|
|
52918
52965
|
footer: footer$d
|
|
52919
52966
|
};
|
|
52920
|
-
const
|
|
52967
|
+
const EmailForm = ({
|
|
52921
52968
|
open,
|
|
52922
52969
|
onCloseForm,
|
|
52923
52970
|
initialValues = {},
|
|
@@ -52955,7 +53002,7 @@ const Form$b = ({
|
|
|
52955
53002
|
initialValues,
|
|
52956
53003
|
onSubmit: handleSubmit,
|
|
52957
53004
|
validationSchema: dataValidationSchema
|
|
52958
|
-
}, ({ values, isValid: isValid2 }) => /* @__PURE__ */ React__default.createElement(Form$
|
|
53005
|
+
}, ({ values, isValid: isValid2 }) => /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement(FieldArray, {
|
|
52959
53006
|
name: "emails",
|
|
52960
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", {
|
|
52961
53008
|
className: styles$1i.container,
|
|
@@ -52990,17 +53037,78 @@ const Form$b = ({
|
|
|
52990
53037
|
}, t2("SAVE"))))
|
|
52991
53038
|
}))));
|
|
52992
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
|
+
};
|
|
52993
53094
|
const Notifications = ({
|
|
52994
53095
|
venueId,
|
|
52995
53096
|
venueListingId
|
|
52996
53097
|
}) => {
|
|
53098
|
+
var _a2, _b, _c;
|
|
52997
53099
|
const { t: t2 } = useTranslation();
|
|
52998
53100
|
const [showModal, setShowmodal] = useState(false);
|
|
52999
53101
|
const closeModal = () => setShowmodal(false);
|
|
53000
53102
|
const openModal = () => setShowmodal(true);
|
|
53103
|
+
const [showAiPromptModal, setShowAiPromptModal] = useState(false);
|
|
53104
|
+
const closeAiPromptModal = () => setShowAiPromptModal(false);
|
|
53105
|
+
const openAiPromptModal = () => setShowAiPromptModal(true);
|
|
53001
53106
|
const { data: data2, isLoading, error: error3, reload } = useFetch(GetUserNotificationSettings, {
|
|
53002
53107
|
cacheId: `user-notifications-settings`
|
|
53003
53108
|
});
|
|
53109
|
+
const { data: userData2, reload: reloadUserData } = useFetch(GetUser, {
|
|
53110
|
+
cacheId: `user-data`
|
|
53111
|
+
});
|
|
53004
53112
|
const _reload = () => {
|
|
53005
53113
|
reload();
|
|
53006
53114
|
};
|
|
@@ -53017,6 +53125,9 @@ const Notifications = ({
|
|
|
53017
53125
|
}
|
|
53018
53126
|
execute({ data: values });
|
|
53019
53127
|
};
|
|
53128
|
+
useEffect(() => {
|
|
53129
|
+
console.log(userData2, "LOL");
|
|
53130
|
+
}, [userData2]);
|
|
53020
53131
|
if (isLoading) {
|
|
53021
53132
|
return /* @__PURE__ */ React__default.createElement(SkeletonPage, null);
|
|
53022
53133
|
}
|
|
@@ -53031,54 +53142,72 @@ const Notifications = ({
|
|
|
53031
53142
|
initialValues: data2,
|
|
53032
53143
|
onSubmit: handleSubmit,
|
|
53033
53144
|
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) => {
|
|
53145
|
+
}, ({ handleSubmit: handleSubmit2 }) => {
|
|
53146
|
+
var _a3, _b2;
|
|
53071
53147
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
53072
|
-
|
|
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", {
|
|
53073
53191
|
className: styles$1m.item
|
|
53074
53192
|
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
53075
53193
|
icon: "mail"
|
|
53076
|
-
})),
|
|
53077
|
-
|
|
53078
|
-
|
|
53079
|
-
|
|
53080
|
-
|
|
53081
|
-
|
|
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, {
|
|
53082
53211
|
open: showModal,
|
|
53083
53212
|
onCloseForm: closeModal,
|
|
53084
53213
|
initialValues: data2,
|
|
@@ -53191,7 +53320,7 @@ const ReplyTemplateForm = ({
|
|
|
53191
53320
|
initialValues: initialState2,
|
|
53192
53321
|
validationSchema: schema$1,
|
|
53193
53322
|
onSubmit: executeSubmit
|
|
53194
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
53323
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
53195
53324
|
className: styles$1g.form
|
|
53196
53325
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
53197
53326
|
id: "title",
|
|
@@ -79250,7 +79379,7 @@ const Form$a = ({
|
|
|
79250
79379
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
79251
79380
|
initialValues,
|
|
79252
79381
|
onSubmit: handleSubmit
|
|
79253
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
79382
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
79254
79383
|
className: styles$13.container
|
|
79255
79384
|
}, /* @__PURE__ */ React__default.createElement(Row$1, {
|
|
79256
79385
|
gutter: [16, 16]
|
|
@@ -91567,7 +91696,7 @@ const Form$9 = ({
|
|
|
91567
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, {
|
|
91568
91697
|
initialValues,
|
|
91569
91698
|
onSubmit: handleSubmit
|
|
91570
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
91699
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
91571
91700
|
className: styles$X.form
|
|
91572
91701
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
91573
91702
|
className: styles$X.form__row1
|
|
@@ -92002,7 +92131,7 @@ const Form$8 = ({
|
|
|
92002
92131
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92003
92132
|
initialValues,
|
|
92004
92133
|
onSubmit: handleSubmit
|
|
92005
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92134
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
92006
92135
|
className: styles$P.form
|
|
92007
92136
|
}, /* @__PURE__ */ React__default.createElement(RegularHours$1, {
|
|
92008
92137
|
id: "regularHours"
|
|
@@ -92529,7 +92658,7 @@ const Form$7 = ({
|
|
|
92529
92658
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92530
92659
|
initialValues,
|
|
92531
92660
|
onSubmit: handleSubmit
|
|
92532
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92661
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
92533
92662
|
className: styles$M.container
|
|
92534
92663
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
92535
92664
|
className: styles$M.form
|
|
@@ -92626,7 +92755,7 @@ const Form$6 = ({
|
|
|
92626
92755
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
92627
92756
|
initialValues,
|
|
92628
92757
|
onSubmit: handleSubmit
|
|
92629
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
92758
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
92630
92759
|
style: {
|
|
92631
92760
|
display: "grid",
|
|
92632
92761
|
gridTemplateColumns: "repeat(2,1fr)",
|
|
@@ -94199,7 +94328,7 @@ const Form$5 = ({
|
|
|
94199
94328
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
94200
94329
|
initialValues,
|
|
94201
94330
|
onSubmit: handleSubmit
|
|
94202
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
94331
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
94203
94332
|
className: styles$L.container
|
|
94204
94333
|
}, /* @__PURE__ */ React__default.createElement(MediaPage, null)), /* @__PURE__ */ React__default.createElement("div", {
|
|
94205
94334
|
className: styles$L.footer
|
|
@@ -94356,7 +94485,7 @@ const Form$4 = ({
|
|
|
94356
94485
|
initialValues,
|
|
94357
94486
|
onSubmit: handleSubmit,
|
|
94358
94487
|
validationSchema: schema
|
|
94359
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
94488
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
94360
94489
|
className: styles$F.container
|
|
94361
94490
|
}, /* @__PURE__ */ React__default.createElement(TextInputFieldWithRule, {
|
|
94362
94491
|
id: "urlWebsite",
|
|
@@ -95173,7 +95302,7 @@ const ModalBingVerify = ({
|
|
|
95173
95302
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
95174
95303
|
initialValues,
|
|
95175
95304
|
onSubmit: handleSubmit
|
|
95176
|
-
}, /* @__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", {
|
|
95177
95306
|
style: {
|
|
95178
95307
|
display: "grid",
|
|
95179
95308
|
gridTemplateColumns: "repeat(2,1fr)",
|
|
@@ -95229,7 +95358,7 @@ const ModalBingConnect = ({
|
|
|
95229
95358
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
95230
95359
|
initialValues,
|
|
95231
95360
|
onSubmit: handleSubmit
|
|
95232
|
-
}, /* @__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", {
|
|
95233
95362
|
style: {
|
|
95234
95363
|
display: "grid",
|
|
95235
95364
|
gridTemplateColumns: "repeat(1,1fr)",
|
|
@@ -96217,7 +96346,7 @@ const Form$3 = ({
|
|
|
96217
96346
|
}, /* @__PURE__ */ React__default.createElement(Formik, {
|
|
96218
96347
|
initialValues,
|
|
96219
96348
|
onSubmit: handleSubmit
|
|
96220
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
96349
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
96221
96350
|
className: styles$r.form
|
|
96222
96351
|
}, /* @__PURE__ */ React__default.createElement(RegularHours, {
|
|
96223
96352
|
id: "regularHours"
|
|
@@ -96418,7 +96547,7 @@ const NotificationsComp = ({}) => {
|
|
|
96418
96547
|
className: styles2.item
|
|
96419
96548
|
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
96420
96549
|
icon: "mail"
|
|
96421
|
-
})), t2("NOTDEFINED")))))), /* @__PURE__ */ React__default.createElement(
|
|
96550
|
+
})), t2("NOTDEFINED")))))), /* @__PURE__ */ React__default.createElement(EmailForm, {
|
|
96422
96551
|
open: showModal,
|
|
96423
96552
|
onCloseForm: closeModal,
|
|
96424
96553
|
initialValues: data2,
|
|
@@ -97200,7 +97329,7 @@ const SpecificHours = ({ value: value2, reload, id: id2, venue_id, onDeleteSpeci
|
|
|
97200
97329
|
return /* @__PURE__ */ React__default.createElement(Formik, {
|
|
97201
97330
|
initialValues: value2,
|
|
97202
97331
|
onSubmit: handleSubmit
|
|
97203
|
-
}, /* @__PURE__ */ React__default.createElement(Form$
|
|
97332
|
+
}, /* @__PURE__ */ React__default.createElement(Form$b, {
|
|
97204
97333
|
className: styles$h.form,
|
|
97205
97334
|
onChange: () => setIsEditing(true)
|
|
97206
97335
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -99700,7 +99829,7 @@ const ContactDetailsFormFields = ({ isExecuting = false }) => {
|
|
|
99700
99829
|
isSubmitting,
|
|
99701
99830
|
isValid: isValid2
|
|
99702
99831
|
} = useFormikContext();
|
|
99703
|
-
return /* @__PURE__ */ React__default.createElement(Form$
|
|
99832
|
+
return /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
99704
99833
|
style: { display: "flex", flexDirection: "row", flexWrap: "wrap" }
|
|
99705
99834
|
}, /* @__PURE__ */ React__default.createElement(Row$1, {
|
|
99706
99835
|
gutter: [16, 16]
|
|
@@ -101378,7 +101507,7 @@ const ChangePasswordForm = ({ isExecuting }) => {
|
|
|
101378
101507
|
const {
|
|
101379
101508
|
isValid: isValid2
|
|
101380
101509
|
} = useFormikContext();
|
|
101381
|
-
return /* @__PURE__ */ React__default.createElement(Form$
|
|
101510
|
+
return /* @__PURE__ */ React__default.createElement(Form$b, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
101382
101511
|
style: { display: "flex", flexDirection: "column", justifyContent: "center", gap: 20, flexWrap: "wrap" }
|
|
101383
101512
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
101384
101513
|
id: "currentPassword",
|