mozrest-sdk-react-dev 0.3.47 → 0.3.49
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 +38 -43
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -8396,7 +8396,8 @@ const en = {
|
|
|
8396
8396
|
"dd/mm/yyyy": "dd/mm/yyyy",
|
|
8397
8397
|
NO_AVAILABLE_CHANNELS: NO_AVAILABLE_CHANNELS$4,
|
|
8398
8398
|
select: select$4,
|
|
8399
|
-
AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$4
|
|
8399
|
+
AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$4,
|
|
8400
|
+
"AI automatically replies to your customer reviews.": "AI automatically replies to your customer reviews."
|
|
8400
8401
|
};
|
|
8401
8402
|
const errors$3 = { "required": "Este campo es requerido", "email": "Este correo electrónico no es válido", "phone": "Número de teléfono no válido", "url": "URL no válida" };
|
|
8402
8403
|
const SPECIALCLOSINGDATES$3 = "Fechas de cierre especiales u horarios de apertura diferentes (días especiales, festivos, eventos privados…)";
|
|
@@ -9457,7 +9458,8 @@ const es$2 = {
|
|
|
9457
9458
|
"dd/mm/yyyy": "dd/mm/yyyy",
|
|
9458
9459
|
NO_AVAILABLE_CHANNELS: NO_AVAILABLE_CHANNELS$3,
|
|
9459
9460
|
select: select$3,
|
|
9460
|
-
AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$3
|
|
9461
|
+
AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$3,
|
|
9462
|
+
"AI automatically replies to your customer reviews.": "La IA automáticamente responde a las reseñas de tus clientes."
|
|
9461
9463
|
};
|
|
9462
9464
|
const errors$2 = { "required": "Ce champ est requis", "email": "Cet email n'est pas valide", "phone": "Numéro de téléphone non valide", "url": "Cette URL n'est pas valide" };
|
|
9463
9465
|
const SPECIALCLOSINGDATES$2 = "Fermetures exceptionnelles et horaires d’ouverture modifiés (jours fériés, événements, etc.) ";
|
|
@@ -10517,7 +10519,8 @@ const fr$1 = {
|
|
|
10517
10519
|
"dd/mm/yyyy": "JJ/MM/AAAA",
|
|
10518
10520
|
NO_AVAILABLE_CHANNELS: NO_AVAILABLE_CHANNELS$2,
|
|
10519
10521
|
select: select$2,
|
|
10520
|
-
AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$2
|
|
10522
|
+
AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$2,
|
|
10523
|
+
"AI automatically replies to your customer reviews.": "L'IA répond automatiquement aux avis de vos clients."
|
|
10521
10524
|
};
|
|
10522
10525
|
const errors$1 = { "required": "Dieses Feld ist erforderlich", "email": "Diese E-Mail ist nicht gültig", "phone": "Diese Telefonnummer ist nicht gültig", "url": "Diese URL ist nicht gültig" };
|
|
10523
10526
|
const SPECIALCLOSINGDATES$1 = "Besondere Schließungstage oder abweichende Öffnungszeiten (besondere Tage, Feiertage, private Veranstaltungen…)";
|
|
@@ -11578,7 +11581,8 @@ const de$1 = {
|
|
|
11578
11581
|
"dd/mm/yyyy": "dd/mm/yyyy",
|
|
11579
11582
|
NO_AVAILABLE_CHANNELS: NO_AVAILABLE_CHANNELS$1,
|
|
11580
11583
|
select: select$1,
|
|
11581
|
-
AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$1
|
|
11584
|
+
AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$1,
|
|
11585
|
+
"AI automatically replies to your customer reviews.": "Die KI antwortet automatisch auf Ihre Kundenbewertungen."
|
|
11582
11586
|
};
|
|
11583
11587
|
const errors = { "required": "Dit veld is verplicht", "email": "Dit e-mailadres is ongeldig", "phone": "Ongeldig telefoonnummer", "url": "Deze URL is ongeldig" };
|
|
11584
11588
|
const SPECIALCLOSINGDATES = "Speciale sluitingsdagen of afwijkende openingstijden (feestdagen, evenementen, enz.)";
|
|
@@ -12639,7 +12643,8 @@ const nl$1 = {
|
|
|
12639
12643
|
Covers,
|
|
12640
12644
|
"dd/mm/yyyy": "dd/mm/yyyy",
|
|
12641
12645
|
select,
|
|
12642
|
-
AUTOREPLYREVIEWS
|
|
12646
|
+
AUTOREPLYREVIEWS,
|
|
12647
|
+
"AI automatically replies to your customer reviews.": "De AI-assistent zal nu automatisch reageren op onbeantwoorde beoordelingen van de laatste 30 dagen. U ontvangt een rapport om de resultaten te controleren."
|
|
12643
12648
|
};
|
|
12644
12649
|
instance.use(initReactI18next).init({
|
|
12645
12650
|
// the translations
|
|
@@ -48592,7 +48597,7 @@ const TextArea$1 = React__default.forwardRef(({
|
|
|
48592
48597
|
onChange2 && onChange2(ev);
|
|
48593
48598
|
}
|
|
48594
48599
|
return /* @__PURE__ */ jsxs("div", {
|
|
48595
|
-
children: [/* @__PURE__ */ jsx$1(Label$1, {
|
|
48600
|
+
children: [label2 && /* @__PURE__ */ jsx$1(Label$1, {
|
|
48596
48601
|
isHidden: hideLabel,
|
|
48597
48602
|
htmlFor: id2,
|
|
48598
48603
|
tooltip: tooltip2,
|
|
@@ -48645,6 +48650,11 @@ const TextAreaField$1 = ({
|
|
|
48645
48650
|
})
|
|
48646
48651
|
});
|
|
48647
48652
|
};
|
|
48653
|
+
const ContextReview = React__default.createContext([
|
|
48654
|
+
null,
|
|
48655
|
+
(value2) => {
|
|
48656
|
+
}
|
|
48657
|
+
]);
|
|
48648
48658
|
const ReplyForm = ({
|
|
48649
48659
|
reviewId,
|
|
48650
48660
|
onSucess,
|
|
@@ -48661,6 +48671,7 @@ const ReplyForm = ({
|
|
|
48661
48671
|
const {
|
|
48662
48672
|
t: t2
|
|
48663
48673
|
} = useTranslation();
|
|
48674
|
+
const [review] = useContext(ContextReview);
|
|
48664
48675
|
const canUpdate = platform2 === "facebook" || platform2 === "google";
|
|
48665
48676
|
const isUpdate = reply2 && canUpdate;
|
|
48666
48677
|
const initialValues = {
|
|
@@ -48706,7 +48717,7 @@ const ReplyForm = ({
|
|
|
48706
48717
|
if (reply2) {
|
|
48707
48718
|
setValue("comment", reply2 == null ? void 0 : reply2.comment);
|
|
48708
48719
|
}
|
|
48709
|
-
}, [reply2]);
|
|
48720
|
+
}, [reply2, review]);
|
|
48710
48721
|
return /* @__PURE__ */ jsx$1("form", {
|
|
48711
48722
|
onSubmit: handleSubmit(handleExecute),
|
|
48712
48723
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -55316,11 +55327,6 @@ const styles$1C = {
|
|
|
55316
55327
|
content: content$8,
|
|
55317
55328
|
empty
|
|
55318
55329
|
};
|
|
55319
|
-
const ContextReview = React__default.createContext([
|
|
55320
|
-
null,
|
|
55321
|
-
(value2) => {
|
|
55322
|
-
}
|
|
55323
|
-
]);
|
|
55324
55330
|
const Reviews = ({
|
|
55325
55331
|
reviews,
|
|
55326
55332
|
isEmpty,
|
|
@@ -92072,7 +92078,7 @@ const ConfirmationModal = ({
|
|
|
92072
92078
|
gap: 20,
|
|
92073
92079
|
marginTop: 20
|
|
92074
92080
|
},
|
|
92075
|
-
children: [/* @__PURE__ */ jsx$1(Button$1, {
|
|
92081
|
+
children: [cancelButtonText && /* @__PURE__ */ jsx$1(Button$1, {
|
|
92076
92082
|
size: "small",
|
|
92077
92083
|
mode: "tertiary",
|
|
92078
92084
|
onClick: props.onClose,
|
|
@@ -92099,7 +92105,6 @@ const AiPromptCard = ({
|
|
|
92099
92105
|
const [showAiPromptModal, setShowAiPromptModal] = useState(false);
|
|
92100
92106
|
const [showAutoReplyModal, setShowAutoReplyModal] = useState(false);
|
|
92101
92107
|
const closeAiPromptModal = () => setShowAiPromptModal(false);
|
|
92102
|
-
const openAiPromptModal = () => setShowAiPromptModal(true);
|
|
92103
92108
|
const closeAutoReplyModal = () => setShowAutoReplyModal(false);
|
|
92104
92109
|
const openAutoReplyModal = () => setShowAutoReplyModal(true);
|
|
92105
92110
|
const {
|
|
@@ -92145,34 +92150,24 @@ const AiPromptCard = ({
|
|
|
92145
92150
|
enableReinitialize: true,
|
|
92146
92151
|
children: ({
|
|
92147
92152
|
values
|
|
92148
|
-
}) => {
|
|
92149
|
-
|
|
92150
|
-
|
|
92151
|
-
|
|
92152
|
-
|
|
92153
|
-
|
|
92154
|
-
|
|
92155
|
-
|
|
92156
|
-
|
|
92157
|
-
|
|
92158
|
-
|
|
92159
|
-
|
|
92160
|
-
|
|
92161
|
-
|
|
92162
|
-
|
|
92163
|
-
|
|
92164
|
-
|
|
92165
|
-
|
|
92166
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
92167
|
-
className: styles$1l.item,
|
|
92168
|
-
children: [/* @__PURE__ */ jsx$1("div", {
|
|
92169
|
-
children: /* @__PURE__ */ jsx$1(Icon, {
|
|
92170
|
-
icon: "robot"
|
|
92171
|
-
})
|
|
92172
|
-
}), ((_a3 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _a3.company.aiPrompt) || t2("NOTDEFINED")]
|
|
92173
|
-
})]
|
|
92174
|
-
});
|
|
92175
|
-
}
|
|
92153
|
+
}) => /* @__PURE__ */ jsxs(Card$1, {
|
|
92154
|
+
header: {
|
|
92155
|
+
title: t2("AUTOREPLYREVIEWS")
|
|
92156
|
+
// icon: "edit",
|
|
92157
|
+
// onClickIcon: openAiPromptModal,
|
|
92158
|
+
},
|
|
92159
|
+
children: [/* @__PURE__ */ jsx$1("p", {
|
|
92160
|
+
children: t2("AI automatically replies to your customer reviews.")
|
|
92161
|
+
}), /* @__PURE__ */ jsx$1("br", {}), /* @__PURE__ */ jsx$1(UIList$1, {
|
|
92162
|
+
mode: "vertical",
|
|
92163
|
+
children: /* @__PURE__ */ jsx$1(Item$1, {
|
|
92164
|
+
isLoading: isExecuting,
|
|
92165
|
+
id: "autoReplyReviews",
|
|
92166
|
+
name: t2("AUTOREPLYREVIEWS"),
|
|
92167
|
+
onChange: () => handleSubmit("autoReplyReviews", values)
|
|
92168
|
+
})
|
|
92169
|
+
})]
|
|
92170
|
+
})
|
|
92176
92171
|
}), /* @__PURE__ */ jsx$1(AiPromptForm, {
|
|
92177
92172
|
open: showAiPromptModal,
|
|
92178
92173
|
onCloseForm: closeAiPromptModal,
|
|
@@ -92188,7 +92183,7 @@ const AiPromptCard = ({
|
|
|
92188
92183
|
text: "AUTOREPLYDESCRIPTION",
|
|
92189
92184
|
icon: "robot",
|
|
92190
92185
|
submitButtonText: "UNDERSTOOD",
|
|
92191
|
-
cancelButtonText: "
|
|
92186
|
+
cancelButtonText: ""
|
|
92192
92187
|
})]
|
|
92193
92188
|
});
|
|
92194
92189
|
};
|