@magicfeedback/popup-sdk 1.17.2 → 1.19.0
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/MagicfeedbackPopupSdk.podspec +18 -0
- package/README.md +33 -1
- package/dist/2.2.38-CCK7SF4A.mjs +2343 -0
- package/dist/2.2.38-CCK7SF4A.mjs.map +1 -0
- package/dist/2.2.38-LGZRM7GX.mjs +2343 -0
- package/dist/2.2.38-LGZRM7GX.mjs.map +1 -0
- package/dist/2.2.39-BJJ3YRJ4.mjs +2344 -0
- package/dist/2.2.39-BJJ3YRJ4.mjs.map +1 -0
- package/dist/2.2.39-HPNDYUPP.mjs +2344 -0
- package/dist/2.2.39-HPNDYUPP.mjs.map +1 -0
- package/dist/assets/assets/style.css +165 -1
- package/dist/assets/assets/survey-css/2.2.38.css +2335 -0
- package/dist/assets/assets/survey-css/2.2.39.css +2336 -0
- package/dist/chunk-3QS3WKRC.mjs +31 -0
- package/dist/chunk-3QS3WKRC.mjs.map +1 -0
- package/dist/chunk-7ZQOAKXR.mjs +3335 -0
- package/dist/chunk-7ZQOAKXR.mjs.map +1 -0
- package/dist/chunk-BJTO5JO5.mjs +11 -0
- package/dist/chunk-BJTO5JO5.mjs.map +1 -0
- package/dist/{chunk-AFRHPS3K.mjs → chunk-EW2ARDEY.mjs} +591 -51
- package/dist/chunk-EW2ARDEY.mjs.map +1 -0
- package/dist/{chunk-VHTN5UXD.mjs → chunk-XOEEBDBJ.mjs} +630 -10
- package/dist/chunk-XOEEBDBJ.mjs.map +1 -0
- package/dist/index.d.mts +159 -10
- package/dist/index.d.ts +159 -10
- package/dist/index.js +7275 -1466
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +318 -41
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +1616 -0
- package/dist/index.native.d.ts +1616 -0
- package/dist/index.native.js +15853 -0
- package/dist/index.native.js.map +1 -0
- package/dist/index.native.mjs +3914 -0
- package/dist/index.native.mjs.map +1 -0
- package/dist/react-native.d.mts +105 -8
- package/dist/react-native.d.ts +105 -8
- package/dist/react-native.js +5827 -132
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +313 -43
- package/dist/react-native.mjs.map +1 -1
- package/dist/renderPopup-2Y4QMWR7.mjs +3847 -0
- package/dist/renderPopup-2Y4QMWR7.mjs.map +1 -0
- package/dist/renderPopup-YDJUON42.mjs +3847 -0
- package/dist/renderPopup-YDJUON42.mjs.map +1 -0
- package/dist/{renderPopup-L2Q3KJAZ.mjs → renderPopup-ZHTRMFO2.mjs} +142 -9
- package/dist/renderPopup-ZHTRMFO2.mjs.map +1 -0
- package/ios/DeepdotsBackgroundTask.m +71 -0
- package/package.json +14 -5
- package/react-native.config.js +9 -0
- package/dist/chunk-AFRHPS3K.mjs.map +0 -1
- package/dist/chunk-VHTN5UXD.mjs.map +0 -1
- package/dist/renderPopup-L2Q3KJAZ.mjs.map +0 -1
- package/dist/renderPopup-PQWJSBOY.mjs +0 -3622
- package/dist/renderPopup-PQWJSBOY.mjs.map +0 -1
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
-
mod
|
|
25
|
-
));
|
|
1
|
+
// src/version.ts
|
|
2
|
+
var SDK_VERSION = "1.19.0";
|
|
3
|
+
var SDK_IDENTIFIER = `${"react-native"}@${SDK_VERSION}`;
|
|
4
|
+
var POPUP_CHANNEL = "popup";
|
|
26
5
|
|
|
27
6
|
// src/tracking/tracking-manager.ts
|
|
28
7
|
var InMemoryStorage = class {
|
|
@@ -68,6 +47,8 @@ function buildSurveyIdentity(userId, sessionId, miniService = null, analyticsFee
|
|
|
68
47
|
if (userId) metadata.push({ key: "user_id", value: [userId] });
|
|
69
48
|
if (miniService) metadata.push({ key: "mini_service", value: [miniService] });
|
|
70
49
|
if (analyticsFeedbackSessionId) metadata.push({ key: "deepdots_analytics_feedback_session_id", value: [analyticsFeedbackSessionId] });
|
|
50
|
+
metadata.push({ key: "deepdots_channel", value: [POPUP_CHANNEL] });
|
|
51
|
+
metadata.push({ key: "deepdots_sdk", value: [SDK_IDENTIFIER] });
|
|
71
52
|
return { profile, metadata };
|
|
72
53
|
}
|
|
73
54
|
function defaultUuid() {
|
|
@@ -173,6 +154,7 @@ var EN = {
|
|
|
173
154
|
closeAria: "Close popup",
|
|
174
155
|
loadingAria: "Loading survey",
|
|
175
156
|
errorRequired: "Please answer the required question to continue.",
|
|
157
|
+
errorInvalidEmail: "Please enter a valid email address.",
|
|
176
158
|
errorSubmit: "An error occurred while submitting. Please try again or close the popup.",
|
|
177
159
|
errorLoad: "We couldn't load this survey."
|
|
178
160
|
};
|
|
@@ -188,6 +170,7 @@ var ES = {
|
|
|
188
170
|
closeAria: "Cerrar ventana emergente",
|
|
189
171
|
loadingAria: "Cargando encuesta",
|
|
190
172
|
errorRequired: "Responde la pregunta obligatoria para continuar.",
|
|
173
|
+
errorInvalidEmail: "Introduce una direcci\xF3n de correo electr\xF3nico v\xE1lida.",
|
|
191
174
|
errorSubmit: "Se produjo un error al enviar. Int\xE9ntalo de nuevo o cierra la ventana.",
|
|
192
175
|
errorLoad: "No se ha podido cargar la encuesta."
|
|
193
176
|
};
|
|
@@ -203,6 +186,7 @@ var DA = {
|
|
|
203
186
|
closeAria: "Luk pop op",
|
|
204
187
|
loadingAria: "Indl\xE6ser unders\xF8gelse",
|
|
205
188
|
errorRequired: "Besvar venligst det obligatoriske sp\xF8rgsm\xE5l for at forts\xE6tte.",
|
|
189
|
+
errorInvalidEmail: "Indtast venligst en gyldig e-mailadresse.",
|
|
206
190
|
errorSubmit: "Der opstod en fejl under afsendelsen. Pr\xF8v igen, eller luk pop op-vinduet.",
|
|
207
191
|
errorLoad: "Unders\xF8gelsen kunne ikke indl\xE6ses."
|
|
208
192
|
};
|
|
@@ -218,6 +202,7 @@ var NO = {
|
|
|
218
202
|
closeAria: "Lukk popup",
|
|
219
203
|
loadingAria: "Laster unders\xF8kelse",
|
|
220
204
|
errorRequired: "Svar p\xE5 det obligatoriske sp\xF8rsm\xE5let for \xE5 fortsette.",
|
|
205
|
+
errorInvalidEmail: "Skriv inn en gyldig e-postadresse.",
|
|
221
206
|
errorSubmit: "Det oppstod en feil under innsendingen. Pr\xF8v igjen, eller lukk popupen.",
|
|
222
207
|
errorLoad: "Unders\xF8kelsen kunne ikke lastes inn."
|
|
223
208
|
};
|
|
@@ -233,6 +218,7 @@ var SV = {
|
|
|
233
218
|
closeAria: "St\xE4ng popup",
|
|
234
219
|
loadingAria: "Laddar unders\xF6kning",
|
|
235
220
|
errorRequired: "Svara p\xE5 den obligatoriska fr\xE5gan f\xF6r att forts\xE4tta.",
|
|
221
|
+
errorInvalidEmail: "Ange en giltig e-postadress.",
|
|
236
222
|
errorSubmit: "Ett fel uppstod vid inskickningen. F\xF6rs\xF6k igen eller st\xE4ng popupen.",
|
|
237
223
|
errorLoad: "Enk\xE4ten kunde inte laddas."
|
|
238
224
|
};
|
|
@@ -248,6 +234,7 @@ var FI = {
|
|
|
248
234
|
closeAria: "Sulje ponnahdusikkuna",
|
|
249
235
|
loadingAria: "Ladataan kysely\xE4",
|
|
250
236
|
errorRequired: "Vastaa pakolliseen kysymykseen jatkaaksesi.",
|
|
237
|
+
errorInvalidEmail: "Anna kelvollinen s\xE4hk\xF6postiosoite.",
|
|
251
238
|
errorSubmit: "L\xE4hetyksess\xE4 tapahtui virhe. Yrit\xE4 uudelleen tai sulje ponnahdusikkuna.",
|
|
252
239
|
errorLoad: "Kysely\xE4 ei voitu ladata."
|
|
253
240
|
};
|
|
@@ -263,6 +250,7 @@ var DE = {
|
|
|
263
250
|
closeAria: "Popup schlie\xDFen",
|
|
264
251
|
loadingAria: "Umfrage wird geladen",
|
|
265
252
|
errorRequired: "Bitte beantworte die Pflichtfrage, um fortzufahren.",
|
|
253
|
+
errorInvalidEmail: "Bitte gib eine g\xFCltige E-Mail-Adresse ein.",
|
|
266
254
|
errorSubmit: "Beim Senden ist ein Fehler aufgetreten. Versuche es erneut oder schlie\xDFe das Popup.",
|
|
267
255
|
errorLoad: "Die Umfrage konnte nicht geladen werden."
|
|
268
256
|
};
|
|
@@ -278,6 +266,7 @@ var FR = {
|
|
|
278
266
|
closeAria: "Fermer la fen\xEAtre",
|
|
279
267
|
loadingAria: "Chargement de l'enqu\xEAte",
|
|
280
268
|
errorRequired: "Veuillez r\xE9pondre \xE0 la question obligatoire pour continuer.",
|
|
269
|
+
errorInvalidEmail: "Veuillez saisir une adresse e-mail valide.",
|
|
281
270
|
errorSubmit: "Une erreur s'est produite lors de l'envoi. R\xE9essayez ou fermez la fen\xEAtre.",
|
|
282
271
|
errorLoad: "Impossible de charger l'enqu\xEAte."
|
|
283
272
|
};
|
|
@@ -293,6 +282,7 @@ var PT = {
|
|
|
293
282
|
closeAria: "Fechar janela",
|
|
294
283
|
loadingAria: "A carregar question\xE1rio",
|
|
295
284
|
errorRequired: "Responda \xE0 pergunta obrigat\xF3ria para continuar.",
|
|
285
|
+
errorInvalidEmail: "Insira um endere\xE7o de e-mail v\xE1lido.",
|
|
296
286
|
errorSubmit: "Ocorreu um erro ao enviar. Tente novamente ou feche a janela.",
|
|
297
287
|
errorLoad: "N\xE3o foi poss\xEDvel carregar o inqu\xE9rito."
|
|
298
288
|
};
|
|
@@ -308,6 +298,7 @@ var AR = {
|
|
|
308
298
|
closeAria: "\u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0645\u0646\u0628\u062B\u0642\u0629",
|
|
309
299
|
loadingAria: "\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646",
|
|
310
300
|
errorRequired: "\u064A\u0631\u062C\u0649 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u0639\u0644\u0649 \u0627\u0644\u0633\u0624\u0627\u0644 \u0627\u0644\u0645\u0637\u0644\u0648\u0628 \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.",
|
|
301
|
+
errorInvalidEmail: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0639\u0646\u0648\u0627\u0646 \u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0635\u0627\u0644\u062D.",
|
|
311
302
|
errorSubmit: "\u062D\u062F\u062B \u062E\u0637\u0623 \u0623\u062B\u0646\u0627\u0621 \u0627\u0644\u0625\u0631\u0633\u0627\u0644. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0623\u0648 \u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0646\u0627\u0641\u0630\u0629.",
|
|
312
303
|
errorLoad: "\u062A\u0639\u0630\u0651\u0631 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646."
|
|
313
304
|
};
|
|
@@ -323,6 +314,7 @@ var BN = {
|
|
|
323
314
|
closeAria: "\u09AA\u09AA\u0986\u09AA \u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09C1\u09A8",
|
|
324
315
|
loadingAria: "\u099C\u09B0\u09BF\u09AA \u09B2\u09CB\u09A1 \u09B9\u099A\u09CD\u099B\u09C7",
|
|
325
316
|
errorRequired: "\u099A\u09BE\u09B2\u09BF\u09AF\u09BC\u09C7 \u09AF\u09C7\u09A4\u09C7 \u0986\u09AC\u09B6\u09CD\u09AF\u0995 \u09AA\u09CD\u09B0\u09B6\u09CD\u09A8\u09C7\u09B0 \u0989\u09A4\u09CD\u09A4\u09B0 \u09A6\u09BF\u09A8\u0964",
|
|
317
|
+
errorInvalidEmail: "\u098F\u0995\u099F\u09BF \u09AC\u09C8\u09A7 \u0987\u09AE\u09C7\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE \u09B2\u09BF\u0996\u09C1\u09A8\u0964",
|
|
326
318
|
errorSubmit: "\u099C\u09AE\u09BE \u09A6\u09C7\u0993\u09AF\u09BC\u09BE\u09B0 \u09B8\u09AE\u09AF\u09BC \u098F\u0995\u099F\u09BF \u09A4\u09CD\u09B0\u09C1\u099F\u09BF \u0998\u099F\u09C7\u099B\u09C7\u0964 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u09AA\u09AA\u0986\u09AA \u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09C1\u09A8\u0964",
|
|
327
319
|
errorLoad: "\u09B8\u09AE\u09C0\u0995\u09CD\u09B7\u09BE\u099F\u09BF \u09B2\u09CB\u09A1 \u0995\u09B0\u09BE \u09AF\u09BE\u09AF\u09BC\u09A8\u09BF\u0964"
|
|
328
320
|
};
|
|
@@ -338,9 +330,266 @@ var ZH_CN = {
|
|
|
338
330
|
closeAria: "\u5173\u95ED\u5F39\u7A97",
|
|
339
331
|
loadingAria: "\u6B63\u5728\u52A0\u8F7D\u95EE\u5377",
|
|
340
332
|
errorRequired: "\u8BF7\u56DE\u7B54\u5FC5\u7B54\u9898\u540E\u7EE7\u7EED\u3002",
|
|
333
|
+
errorInvalidEmail: "\u8BF7\u8F93\u5165\u6709\u6548\u7684\u7535\u5B50\u90AE\u4EF6\u5730\u5740\u3002",
|
|
341
334
|
errorSubmit: "\u63D0\u4EA4\u65F6\u51FA\u9519\u3002\u8BF7\u91CD\u8BD5\u6216\u5173\u95ED\u5F39\u7A97\u3002",
|
|
342
335
|
errorLoad: "\u65E0\u6CD5\u52A0\u8F7D\u95EE\u5377\u3002"
|
|
343
336
|
};
|
|
337
|
+
var BG = {
|
|
338
|
+
accept: "\u0418\u0437\u043F\u0440\u0430\u0449\u0430\u043D\u0435",
|
|
339
|
+
decline: "\u041E\u0442\u043A\u0430\u0437",
|
|
340
|
+
start: "\u0417\u0430\u043F\u043E\u0447\u0432\u0430\u043D\u0435 \u043D\u0430 \u0430\u043D\u043A\u0435\u0442\u0430\u0442\u0430",
|
|
341
|
+
complete: "\u0417\u0430\u0432\u044A\u0440\u0448\u0432\u0430\u043D\u0435 \u043D\u0430 \u0430\u043D\u043A\u0435\u0442\u0430\u0442\u0430",
|
|
342
|
+
back: "\u041D\u0430\u0437\u0430\u0434",
|
|
343
|
+
question: "\u0412\u044A\u043F\u0440\u043E\u0441",
|
|
344
|
+
of: "\u043E\u0442",
|
|
345
|
+
followUp: "\u0414\u043E\u043F\u044A\u043B\u043D\u0438\u0442\u0435\u043B\u0435\u043D \u0432\u044A\u043F\u0440\u043E\u0441",
|
|
346
|
+
closeAria: "\u0417\u0430\u0442\u0432\u0430\u0440\u044F\u043D\u0435 \u043D\u0430 \u0438\u0437\u0441\u043A\u0430\u0447\u0430\u0449\u0438\u044F \u043F\u0440\u043E\u0437\u043E\u0440\u0435\u0446",
|
|
347
|
+
loadingAria: "\u0410\u043D\u043A\u0435\u0442\u0430\u0442\u0430 \u0441\u0435 \u0437\u0430\u0440\u0435\u0436\u0434\u0430",
|
|
348
|
+
errorRequired: "\u041C\u043E\u043B\u044F, \u043E\u0442\u0433\u043E\u0432\u043E\u0440\u0435\u0442\u0435 \u043D\u0430 \u0437\u0430\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u0438\u044F \u0432\u044A\u043F\u0440\u043E\u0441, \u0437\u0430 \u0434\u0430 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435.",
|
|
349
|
+
errorInvalidEmail: "\u041C\u043E\u043B\u044F, \u0432\u044A\u0432\u0435\u0434\u0435\u0442\u0435 \u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441.",
|
|
350
|
+
errorSubmit: "\u0412\u044A\u0437\u043D\u0438\u043A\u043D\u0430 \u0433\u0440\u0435\u0448\u043A\u0430 \u043F\u0440\u0438 \u0438\u0437\u043F\u0440\u0430\u0449\u0430\u043D\u0435\u0442\u043E. \u041C\u043E\u043B\u044F, \u043E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E \u0438\u043B\u0438 \u0437\u0430\u0442\u0432\u043E\u0440\u0435\u0442\u0435 \u043F\u0440\u043E\u0437\u043E\u0440\u0435\u0446\u0430.",
|
|
351
|
+
errorLoad: "\u041D\u0435 \u0443\u0441\u043F\u044F\u0445\u043C\u0435 \u0434\u0430 \u0437\u0430\u0440\u0435\u0434\u0438\u043C \u0442\u0430\u0437\u0438 \u0430\u043D\u043A\u0435\u0442\u0430."
|
|
352
|
+
};
|
|
353
|
+
var CS = {
|
|
354
|
+
accept: "Odeslat",
|
|
355
|
+
decline: "Zru\u0161it",
|
|
356
|
+
start: "Zah\xE1jit pr\u016Fzkum",
|
|
357
|
+
complete: "Dokon\u010Dit pr\u016Fzkum",
|
|
358
|
+
back: "Zp\u011Bt",
|
|
359
|
+
question: "Ot\xE1zka",
|
|
360
|
+
of: "z",
|
|
361
|
+
followUp: "Dopl\u0148uj\xEDc\xED ot\xE1zka",
|
|
362
|
+
closeAria: "Zav\u0159\xEDt vyskakovac\xED okno",
|
|
363
|
+
loadingAria: "Na\u010D\xEDt\xE1n\xED pr\u016Fzkumu",
|
|
364
|
+
errorRequired: "P\u0159ed pokra\u010Dov\xE1n\xEDm pros\xEDm odpov\u011Bzte na povinnou ot\xE1zku.",
|
|
365
|
+
errorInvalidEmail: "Zadejte pros\xEDm platnou e-mailovou adresu.",
|
|
366
|
+
errorSubmit: "P\u0159i odes\xEDl\xE1n\xED do\u0161lo k chyb\u011B. Zkuste to pros\xEDm znovu nebo okno zav\u0159ete.",
|
|
367
|
+
errorLoad: "Tento pr\u016Fzkum se nepoda\u0159ilo na\u010D\xEDst."
|
|
368
|
+
};
|
|
369
|
+
var EL = {
|
|
370
|
+
accept: "\u0391\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE",
|
|
371
|
+
decline: "\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",
|
|
372
|
+
start: "\u0388\u03BD\u03B1\u03C1\u03BE\u03B7 \u03AD\u03C1\u03B5\u03C5\u03BD\u03B1\u03C2",
|
|
373
|
+
complete: "\u039F\u03BB\u03BF\u03BA\u03BB\u03AE\u03C1\u03C9\u03C3\u03B7 \u03AD\u03C1\u03B5\u03C5\u03BD\u03B1\u03C2",
|
|
374
|
+
back: "\u03A0\u03AF\u03C3\u03C9",
|
|
375
|
+
question: "\u0395\u03C1\u03CE\u03C4\u03B7\u03C3\u03B7",
|
|
376
|
+
of: "\u03B1\u03C0\u03CC",
|
|
377
|
+
followUp: "\u03A3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE \u03B5\u03C1\u03CE\u03C4\u03B7\u03C3\u03B7",
|
|
378
|
+
closeAria: "\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF \u03B1\u03BD\u03B1\u03B4\u03C5\u03CC\u03BC\u03B5\u03BD\u03BF\u03C5 \u03C0\u03B1\u03C1\u03B1\u03B8\u03CD\u03C1\u03BF\u03C5",
|
|
379
|
+
loadingAria: "\u03A6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7 \u03AD\u03C1\u03B5\u03C5\u03BD\u03B1\u03C2",
|
|
380
|
+
errorRequired: "\u0391\u03C0\u03B1\u03BD\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C3\u03C4\u03B7\u03BD \u03C5\u03C0\u03BF\u03C7\u03C1\u03B5\u03C9\u03C4\u03B9\u03BA\u03AE \u03B5\u03C1\u03CE\u03C4\u03B7\u03C3\u03B7 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5.",
|
|
381
|
+
errorInvalidEmail: "\u0395\u03B9\u03C3\u03B1\u03B3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email.",
|
|
382
|
+
errorSubmit: "\u03A0\u03B1\u03C1\u03BF\u03C5\u03C3\u03B9\u03AC\u03C3\u03C4\u03B7\u03BA\u03B5 \u03C3\u03C6\u03AC\u03BB\u03BC\u03B1 \u03BA\u03B1\u03C4\u03AC \u03C4\u03B7\u03BD \u03B1\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE. \u0394\u03BF\u03BA\u03B9\u03BC\u03AC\u03C3\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC \u03AE \u03BA\u03BB\u03B5\u03AF\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B1\u03C1\u03AC\u03B8\u03C5\u03C1\u03BF.",
|
|
383
|
+
errorLoad: "\u0394\u03B5\u03BD \u03AE\u03C4\u03B1\u03BD \u03B4\u03C5\u03BD\u03B1\u03C4\u03AE \u03B7 \u03C6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7 \u03B1\u03C5\u03C4\u03AE\u03C2 \u03C4\u03B7\u03C2 \u03AD\u03C1\u03B5\u03C5\u03BD\u03B1\u03C2."
|
|
384
|
+
};
|
|
385
|
+
var ET = {
|
|
386
|
+
accept: "Saada",
|
|
387
|
+
decline: "T\xFChista",
|
|
388
|
+
start: "Alusta k\xFCsitlust",
|
|
389
|
+
complete: "L\xF5peta k\xFCsitlus",
|
|
390
|
+
back: "Tagasi",
|
|
391
|
+
question: "K\xFCsimus",
|
|
392
|
+
of: "/",
|
|
393
|
+
followUp: "T\xE4psustav k\xFCsimus",
|
|
394
|
+
closeAria: "Sulge h\xFCpikaken",
|
|
395
|
+
loadingAria: "K\xFCsitluse laadimine",
|
|
396
|
+
errorRequired: "J\xE4tkamiseks vasta palun kohustuslikule k\xFCsimusele.",
|
|
397
|
+
errorInvalidEmail: "Palun sisesta kehtiv e-posti aadress.",
|
|
398
|
+
errorSubmit: "Saatmisel tekkis viga. Proovi uuesti v\xF5i sulge h\xFCpikaken.",
|
|
399
|
+
errorLoad: "Seda k\xFCsitlust ei \xF5nnestunud laadida."
|
|
400
|
+
};
|
|
401
|
+
var GA = {
|
|
402
|
+
accept: "Seol",
|
|
403
|
+
decline: "Cealaigh",
|
|
404
|
+
start: "Tosaigh an suirbh\xE9",
|
|
405
|
+
complete: "Cr\xEDochnaigh an suirbh\xE9",
|
|
406
|
+
back: "Siar",
|
|
407
|
+
question: "Ceist",
|
|
408
|
+
of: "as",
|
|
409
|
+
followUp: "Ceist leantach",
|
|
410
|
+
closeAria: "D\xFAn an phreabfhuinneog",
|
|
411
|
+
loadingAria: "Suirbh\xE9 \xE1 l\xF3d\xE1il",
|
|
412
|
+
errorRequired: "Freagair an cheist \xE9igeantach chun lean\xFAint ar aghaidh, le do thoil.",
|
|
413
|
+
errorInvalidEmail: "Cuir isteach seoladh r\xEDomhphoist bail\xED, le do thoil.",
|
|
414
|
+
errorSubmit: "Tharla earr\xE1id agus \xE9 \xE1 sheoladh. Triail ar\xEDs n\xF3 d\xFAn an phreabfhuinneog.",
|
|
415
|
+
errorLoad: "N\xEDorbh fh\xE9idir linn an suirbh\xE9 seo a l\xF3d\xE1il."
|
|
416
|
+
};
|
|
417
|
+
var HR = {
|
|
418
|
+
accept: "Po\u0161alji",
|
|
419
|
+
decline: "Odustani",
|
|
420
|
+
start: "Zapo\u010Dni anketu",
|
|
421
|
+
complete: "Zavr\u0161i anketu",
|
|
422
|
+
back: "Natrag",
|
|
423
|
+
question: "Pitanje",
|
|
424
|
+
of: "od",
|
|
425
|
+
followUp: "Dodatno pitanje",
|
|
426
|
+
closeAria: "Zatvori sko\u010Dni prozor",
|
|
427
|
+
loadingAria: "U\u010Ditavanje ankete",
|
|
428
|
+
errorRequired: "Molimo odgovorite na obavezno pitanje kako biste nastavili.",
|
|
429
|
+
errorInvalidEmail: "Unesite valjanu e-adresu.",
|
|
430
|
+
errorSubmit: "Do\u0161lo je do pogre\u0161ke pri slanju. Poku\u0161ajte ponovno ili zatvorite prozor.",
|
|
431
|
+
errorLoad: "Nismo uspjeli u\u010Ditati ovu anketu."
|
|
432
|
+
};
|
|
433
|
+
var HU = {
|
|
434
|
+
accept: "K\xFCld\xE9s",
|
|
435
|
+
decline: "M\xE9gse",
|
|
436
|
+
start: "K\xE9rd\u0151\xEDv ind\xEDt\xE1sa",
|
|
437
|
+
complete: "K\xE9rd\u0151\xEDv befejez\xE9se",
|
|
438
|
+
back: "Vissza",
|
|
439
|
+
question: "K\xE9rd\xE9s",
|
|
440
|
+
of: "/",
|
|
441
|
+
followUp: "Kieg\xE9sz\xEDt\u0151 k\xE9rd\xE9s",
|
|
442
|
+
closeAria: "Felugr\xF3 ablak bez\xE1r\xE1sa",
|
|
443
|
+
loadingAria: "K\xE9rd\u0151\xEDv bet\xF6lt\xE9se",
|
|
444
|
+
errorRequired: "K\xE9rj\xFCk, v\xE1laszoljon a k\xF6telez\u0151 k\xE9rd\xE9sre a tov\xE1bbl\xE9p\xE9shez.",
|
|
445
|
+
errorInvalidEmail: "K\xE9rj\xFCk, adjon meg \xE9rv\xE9nyes e-mail-c\xEDmet.",
|
|
446
|
+
errorSubmit: "Hiba t\xF6rt\xE9nt a k\xFCld\xE9s sor\xE1n. Pr\xF3b\xE1lja \xFAjra, vagy z\xE1rja be az ablakot.",
|
|
447
|
+
errorLoad: "Nem siker\xFClt bet\xF6lteni ezt a k\xE9rd\u0151\xEDvet."
|
|
448
|
+
};
|
|
449
|
+
var IT = {
|
|
450
|
+
accept: "Invia",
|
|
451
|
+
decline: "Annulla",
|
|
452
|
+
start: "Inizia il sondaggio",
|
|
453
|
+
complete: "Completa il sondaggio",
|
|
454
|
+
back: "Indietro",
|
|
455
|
+
question: "Domanda",
|
|
456
|
+
of: "di",
|
|
457
|
+
followUp: "Approfondimento",
|
|
458
|
+
closeAria: "Chiudi popup",
|
|
459
|
+
loadingAria: "Caricamento del sondaggio",
|
|
460
|
+
errorRequired: "Rispondi alla domanda obbligatoria per continuare.",
|
|
461
|
+
errorInvalidEmail: "Inserisci un indirizzo email valido.",
|
|
462
|
+
errorSubmit: "Si \xE8 verificato un errore durante l'invio. Riprova o chiudi il popup.",
|
|
463
|
+
errorLoad: "Non \xE8 stato possibile caricare questo sondaggio."
|
|
464
|
+
};
|
|
465
|
+
var LT = {
|
|
466
|
+
accept: "Si\u0173sti",
|
|
467
|
+
decline: "At\u0161aukti",
|
|
468
|
+
start: "Prad\u0117ti apklaus\u0105",
|
|
469
|
+
complete: "Baigti apklaus\u0105",
|
|
470
|
+
back: "Atgal",
|
|
471
|
+
question: "Klausimas",
|
|
472
|
+
of: "i\u0161",
|
|
473
|
+
followUp: "Papildomas klausimas",
|
|
474
|
+
closeAria: "U\u017Edaryti i\u0161\u0161okant\u012F lang\u0105",
|
|
475
|
+
loadingAria: "\u012Ekeliama apklausa",
|
|
476
|
+
errorRequired: "Nor\u0117dami t\u0119sti, atsakykite \u012F privalom\u0105 klausim\u0105.",
|
|
477
|
+
errorInvalidEmail: "\u012Eveskite galiojant\u012F el. pa\u0161to adres\u0105.",
|
|
478
|
+
errorSubmit: "Siun\u010Diant \u012Fvyko klaida. Bandykite dar kart\u0105 arba u\u017Edarykite lang\u0105.",
|
|
479
|
+
errorLoad: "Nepavyko \u012Fkelti \u0161ios apklausos."
|
|
480
|
+
};
|
|
481
|
+
var LV = {
|
|
482
|
+
accept: "Nos\u016Bt\u012Bt",
|
|
483
|
+
decline: "Atcelt",
|
|
484
|
+
start: "S\u0101kt aptauju",
|
|
485
|
+
complete: "Pabeigt aptauju",
|
|
486
|
+
back: "Atpaka\u013C",
|
|
487
|
+
question: "Jaut\u0101jums",
|
|
488
|
+
of: "no",
|
|
489
|
+
followUp: "Papildjaut\u0101jums",
|
|
490
|
+
closeAria: "Aizv\u0113rt uznirsto\u0161o logu",
|
|
491
|
+
loadingAria: "Notiek aptaujas iel\u0101de",
|
|
492
|
+
errorRequired: "L\u016Bdzu, atbildiet uz oblig\u0101to jaut\u0101jumu, lai turpin\u0101tu.",
|
|
493
|
+
errorInvalidEmail: "L\u016Bdzu, ievadiet der\u012Bgu e-pasta adresi.",
|
|
494
|
+
errorSubmit: "Nos\u016Btot rad\u0101s k\u013C\u016Bda. L\u016Bdzu, m\u0113\u0123iniet v\u0113lreiz vai aizveriet logu.",
|
|
495
|
+
errorLoad: "Neizdev\u0101s iel\u0101d\u0113t \u0161o aptauju."
|
|
496
|
+
};
|
|
497
|
+
var MT = {
|
|
498
|
+
accept: "Ibg\u0127at",
|
|
499
|
+
decline: "Ikkan\u010Bella",
|
|
500
|
+
start: "Ibda l-ist\u0127arri\u0121",
|
|
501
|
+
complete: "Lesti l-ist\u0127arri\u0121",
|
|
502
|
+
back: "Lura",
|
|
503
|
+
question: "Mistoqsija",
|
|
504
|
+
of: "minn",
|
|
505
|
+
followUp: "Mistoqsija ta' segwitu",
|
|
506
|
+
closeAria: "Ag\u0127laq il-popup",
|
|
507
|
+
loadingAria: "Qed jitg\u0127abba l-ist\u0127arri\u0121",
|
|
508
|
+
errorRequired: "Jekk jog\u0127\u0121bok wie\u0121eb il-mistoqsija obbligatorja biex tkompli.",
|
|
509
|
+
errorInvalidEmail: "Jekk jog\u0127\u0121bok da\u0127\u0127al indirizz tal-email validu.",
|
|
510
|
+
errorSubmit: "Se\u0127\u0127 \u017Cball waqt il-bg\u0127it. Er\u0121a' pprova jew ag\u0127laq il-popup.",
|
|
511
|
+
errorLoad: "Ma stajniex intellg\u0127u dan l-ist\u0127arri\u0121."
|
|
512
|
+
};
|
|
513
|
+
var NL = {
|
|
514
|
+
accept: "Verzenden",
|
|
515
|
+
decline: "Annuleren",
|
|
516
|
+
start: "Enqu\xEAte starten",
|
|
517
|
+
complete: "Enqu\xEAte afronden",
|
|
518
|
+
back: "Terug",
|
|
519
|
+
question: "Vraag",
|
|
520
|
+
of: "van",
|
|
521
|
+
followUp: "Vervolgvraag",
|
|
522
|
+
closeAria: "Pop-up sluiten",
|
|
523
|
+
loadingAria: "Enqu\xEAte wordt geladen",
|
|
524
|
+
errorRequired: "Beantwoord de verplichte vraag om verder te gaan.",
|
|
525
|
+
errorInvalidEmail: "Voer een geldig e-mailadres in.",
|
|
526
|
+
errorSubmit: "Er is iets misgegaan bij het verzenden. Probeer het opnieuw of sluit de pop-up.",
|
|
527
|
+
errorLoad: "We konden deze enqu\xEAte niet laden."
|
|
528
|
+
};
|
|
529
|
+
var PL = {
|
|
530
|
+
accept: "Wy\u015Blij",
|
|
531
|
+
decline: "Anuluj",
|
|
532
|
+
start: "Rozpocznij ankiet\u0119",
|
|
533
|
+
complete: "Zako\u0144cz ankiet\u0119",
|
|
534
|
+
back: "Wstecz",
|
|
535
|
+
question: "Pytanie",
|
|
536
|
+
of: "z",
|
|
537
|
+
followUp: "Pytanie uzupe\u0142niaj\u0105ce",
|
|
538
|
+
closeAria: "Zamknij okno",
|
|
539
|
+
loadingAria: "\u0141adowanie ankiety",
|
|
540
|
+
errorRequired: "Odpowiedz na wymagane pytanie, aby przej\u015B\u0107 dalej.",
|
|
541
|
+
errorInvalidEmail: "Wpisz prawid\u0142owy adres e-mail.",
|
|
542
|
+
errorSubmit: "Podczas wysy\u0142ania wyst\u0105pi\u0142 b\u0142\u0105d. Spr\xF3buj ponownie lub zamknij okno.",
|
|
543
|
+
errorLoad: "Nie uda\u0142o si\u0119 wczyta\u0107 tej ankiety."
|
|
544
|
+
};
|
|
545
|
+
var RO = {
|
|
546
|
+
accept: "Trimite\u021Bi",
|
|
547
|
+
decline: "Anula\u021Bi",
|
|
548
|
+
start: "\xCEncepe\u021Bi sondajul",
|
|
549
|
+
complete: "Finaliza\u021Bi sondajul",
|
|
550
|
+
back: "\xCEnapoi",
|
|
551
|
+
question: "\xCEntrebarea",
|
|
552
|
+
of: "din",
|
|
553
|
+
followUp: "\xCEntrebare suplimentar\u0103",
|
|
554
|
+
closeAria: "\xCEnchide\u021Bi fereastra pop-up",
|
|
555
|
+
loadingAria: "Se \xEEncarc\u0103 sondajul",
|
|
556
|
+
errorRequired: "V\u0103 rug\u0103m s\u0103 r\u0103spunde\u021Bi la \xEEntrebarea obligatorie pentru a continua.",
|
|
557
|
+
errorInvalidEmail: "V\u0103 rug\u0103m s\u0103 introduce\u021Bi o adres\u0103 de e-mail valid\u0103.",
|
|
558
|
+
errorSubmit: "A ap\u0103rut o eroare la trimitere. \xCEncerca\u021Bi din nou sau \xEEnchide\u021Bi fereastra.",
|
|
559
|
+
errorLoad: "Nu am putut \xEEnc\u0103rca acest sondaj."
|
|
560
|
+
};
|
|
561
|
+
var SK = {
|
|
562
|
+
accept: "Odosla\u0165",
|
|
563
|
+
decline: "Zru\u0161i\u0165",
|
|
564
|
+
start: "Za\u010Da\u0165 prieskum",
|
|
565
|
+
complete: "Dokon\u010Di\u0165 prieskum",
|
|
566
|
+
back: "Sp\xE4\u0165",
|
|
567
|
+
question: "Ot\xE1zka",
|
|
568
|
+
of: "z",
|
|
569
|
+
followUp: "Dopl\u0148uj\xFAca ot\xE1zka",
|
|
570
|
+
closeAria: "Zavrie\u0165 vyskakovacie okno",
|
|
571
|
+
loadingAria: "Na\u010D\xEDtava sa prieskum",
|
|
572
|
+
errorRequired: "Ak chcete pokra\u010Dova\u0165, odpovedzte, pros\xEDm, na povinn\xFA ot\xE1zku.",
|
|
573
|
+
errorInvalidEmail: "Zadajte, pros\xEDm, platn\xFA e-mailov\xFA adresu.",
|
|
574
|
+
errorSubmit: "Pri odosielan\xED sa vyskytla chyba. Sk\xFAste to znova alebo okno zatvorte.",
|
|
575
|
+
errorLoad: "Tento prieskum sa nepodarilo na\u010D\xEDta\u0165."
|
|
576
|
+
};
|
|
577
|
+
var SL = {
|
|
578
|
+
accept: "Po\u0161lji",
|
|
579
|
+
decline: "Prekli\u010Di",
|
|
580
|
+
start: "Za\u010Dni anketo",
|
|
581
|
+
complete: "Zaklju\u010Di anketo",
|
|
582
|
+
back: "Nazaj",
|
|
583
|
+
question: "Vpra\u0161anje",
|
|
584
|
+
of: "od",
|
|
585
|
+
followUp: "Dodatno vpra\u0161anje",
|
|
586
|
+
closeAria: "Zapri pojavno okno",
|
|
587
|
+
loadingAria: "Nalaganje ankete",
|
|
588
|
+
errorRequired: "Za nadaljevanje odgovorite na obvezno vpra\u0161anje.",
|
|
589
|
+
errorInvalidEmail: "Vnesite veljaven e-po\u0161tni naslov.",
|
|
590
|
+
errorSubmit: "Pri po\u0161iljanju je pri\u0161lo do napake. Poskusite znova ali zaprite okno.",
|
|
591
|
+
errorLoad: "Ankete ni bilo mogo\u010De nalo\u017Eiti."
|
|
592
|
+
};
|
|
344
593
|
var LABELS = {
|
|
345
594
|
en: EN,
|
|
346
595
|
es: ES,
|
|
@@ -353,25 +602,24 @@ var LABELS = {
|
|
|
353
602
|
pt: PT,
|
|
354
603
|
ar: AR,
|
|
355
604
|
bn: BN,
|
|
356
|
-
"zh-CN": ZH_CN
|
|
605
|
+
"zh-CN": ZH_CN,
|
|
606
|
+
bg: BG,
|
|
607
|
+
cs: CS,
|
|
608
|
+
el: EL,
|
|
609
|
+
et: ET,
|
|
610
|
+
ga: GA,
|
|
611
|
+
hr: HR,
|
|
612
|
+
hu: HU,
|
|
613
|
+
it: IT,
|
|
614
|
+
lt: LT,
|
|
615
|
+
lv: LV,
|
|
616
|
+
mt: MT,
|
|
617
|
+
nl: NL,
|
|
618
|
+
pl: PL,
|
|
619
|
+
ro: RO,
|
|
620
|
+
sk: SK,
|
|
621
|
+
sl: SL
|
|
357
622
|
};
|
|
358
|
-
var SUPPORTED_LANGUAGES = [
|
|
359
|
-
// Los 11 idiomas que la plataforma ofrece para un survey, más zh-CN (que el SDK nativo ya
|
|
360
|
-
// traía). Si la plataforma añade uno nuevo, hay que añadirlo aquí o el chrome saldrá en
|
|
361
|
-
// inglés bajo un survey traducido.
|
|
362
|
-
"en",
|
|
363
|
-
"es",
|
|
364
|
-
"da",
|
|
365
|
-
"no",
|
|
366
|
-
"sv",
|
|
367
|
-
"fi",
|
|
368
|
-
"de",
|
|
369
|
-
"fr",
|
|
370
|
-
"pt",
|
|
371
|
-
"ar",
|
|
372
|
-
"bn",
|
|
373
|
-
"zh-CN"
|
|
374
|
-
];
|
|
375
623
|
function resolveLocale(lang) {
|
|
376
624
|
if (typeof lang !== "string") return "en";
|
|
377
625
|
const normalized = lang.trim().toLowerCase().replace(/_/g, "-");
|
|
@@ -403,6 +651,38 @@ function resolveLocale(lang) {
|
|
|
403
651
|
return "ar";
|
|
404
652
|
case "bn":
|
|
405
653
|
return "bn";
|
|
654
|
+
case "bg":
|
|
655
|
+
return "bg";
|
|
656
|
+
case "cs":
|
|
657
|
+
return "cs";
|
|
658
|
+
case "el":
|
|
659
|
+
return "el";
|
|
660
|
+
case "et":
|
|
661
|
+
return "et";
|
|
662
|
+
case "ga":
|
|
663
|
+
return "ga";
|
|
664
|
+
case "hr":
|
|
665
|
+
return "hr";
|
|
666
|
+
case "hu":
|
|
667
|
+
return "hu";
|
|
668
|
+
case "it":
|
|
669
|
+
return "it";
|
|
670
|
+
case "lt":
|
|
671
|
+
return "lt";
|
|
672
|
+
case "lv":
|
|
673
|
+
return "lv";
|
|
674
|
+
case "mt":
|
|
675
|
+
return "mt";
|
|
676
|
+
case "nl":
|
|
677
|
+
return "nl";
|
|
678
|
+
case "pl":
|
|
679
|
+
return "pl";
|
|
680
|
+
case "ro":
|
|
681
|
+
return "ro";
|
|
682
|
+
case "sk":
|
|
683
|
+
return "sk";
|
|
684
|
+
case "sl":
|
|
685
|
+
return "sl";
|
|
406
686
|
default:
|
|
407
687
|
return "en";
|
|
408
688
|
}
|
|
@@ -448,6 +728,22 @@ var RESOLVE_LOCALE_JS = `function ddResolveLocale(lang){
|
|
|
448
728
|
if(p==='pt') return 'pt';
|
|
449
729
|
if(p==='ar') return 'ar';
|
|
450
730
|
if(p==='bn') return 'bn';
|
|
731
|
+
if(p==='bg') return 'bg';
|
|
732
|
+
if(p==='cs') return 'cs';
|
|
733
|
+
if(p==='el') return 'el';
|
|
734
|
+
if(p==='et') return 'et';
|
|
735
|
+
if(p==='ga') return 'ga';
|
|
736
|
+
if(p==='hr') return 'hr';
|
|
737
|
+
if(p==='hu') return 'hu';
|
|
738
|
+
if(p==='it') return 'it';
|
|
739
|
+
if(p==='lt') return 'lt';
|
|
740
|
+
if(p==='lv') return 'lv';
|
|
741
|
+
if(p==='mt') return 'mt';
|
|
742
|
+
if(p==='nl') return 'nl';
|
|
743
|
+
if(p==='pl') return 'pl';
|
|
744
|
+
if(p==='ro') return 'ro';
|
|
745
|
+
if(p==='sk') return 'sk';
|
|
746
|
+
if(p==='sl') return 'sl';
|
|
451
747
|
return 'en';
|
|
452
748
|
}`;
|
|
453
749
|
|
|
@@ -532,11 +828,48 @@ function ddSetSurveyBusy(el, busy){
|
|
|
532
828
|
if('inert' in el){ el.inert = busy; }
|
|
533
829
|
}`;
|
|
534
830
|
|
|
831
|
+
// src/ui/submitError.ts
|
|
832
|
+
var SURVEY_ERROR_MESSAGE_MAX = 300;
|
|
833
|
+
var REASON_BY_CODE = {
|
|
834
|
+
REQUIRED: "required",
|
|
835
|
+
INVALID_EMAIL: "invalid_email",
|
|
836
|
+
SEND_FAILED: "send_failed",
|
|
837
|
+
NO_PAGE: "no_page"
|
|
838
|
+
};
|
|
839
|
+
function submitErrorText(error) {
|
|
840
|
+
if (!error) return "";
|
|
841
|
+
if (typeof error === "string") return error;
|
|
842
|
+
const message = error.message;
|
|
843
|
+
return typeof message === "string" ? message : String(error);
|
|
844
|
+
}
|
|
845
|
+
function classifySubmitError(error) {
|
|
846
|
+
const message = submitErrorText(error).slice(0, SURVEY_ERROR_MESSAGE_MAX);
|
|
847
|
+
const code = error && typeof error === "object" ? error.code : void 0;
|
|
848
|
+
if (typeof code === "string" && REASON_BY_CODE[code]) return { reason: REASON_BY_CODE[code], message };
|
|
849
|
+
if (message.toLowerCase().includes("no response")) return { reason: "required", message };
|
|
850
|
+
return { reason: "unknown", message };
|
|
851
|
+
}
|
|
852
|
+
var SUBMIT_ERROR_JS = `
|
|
853
|
+
function ddClassifySubmitError(error){
|
|
854
|
+
var message='';
|
|
855
|
+
if(error){
|
|
856
|
+
if(typeof error==='string'){ message=error; }
|
|
857
|
+
else if(typeof error.message==='string'){ message=error.message; }
|
|
858
|
+
else { message=String(error); }
|
|
859
|
+
}
|
|
860
|
+
message=message.slice(0, ${SURVEY_ERROR_MESSAGE_MAX});
|
|
861
|
+
var byCode={ REQUIRED:'required', INVALID_EMAIL:'invalid_email', SEND_FAILED:'send_failed', NO_PAGE:'no_page' };
|
|
862
|
+
var code=error && typeof error==='object' ? error.code : undefined;
|
|
863
|
+
if(typeof code==='string' && byCode.hasOwnProperty(code)){ return { reason: byCode[code], message: message }; }
|
|
864
|
+
if(message.toLowerCase().indexOf('no response')!==-1){ return { reason: 'required', message: message }; }
|
|
865
|
+
return { reason: 'unknown', message: message };
|
|
866
|
+
}`;
|
|
867
|
+
|
|
535
868
|
// src/assets/style.css
|
|
536
869
|
var style_default = `/**
|
|
537
870
|
* NO EDITAR A MANO \u2014 generado por scripts/vendor-survey-css.mjs
|
|
538
871
|
*
|
|
539
|
-
* Copia de @magicfeedback/native@2.2.
|
|
872
|
+
* Copia de @magicfeedback/native@2.2.39 \u2192 dist/styles/magicfeedback-default.css
|
|
540
873
|
* (la hoja can\xF3nica del paquete, la que apunta su campo "style"), con estos cambios locales:
|
|
541
874
|
*
|
|
542
875
|
* 1. Sin el @import de Google Fonts (Nunito): no queremos una petici\xF3n externa desde la
|
|
@@ -973,6 +1306,112 @@ var style_default = `/**
|
|
|
973
1306
|
/* -moz-appearance: textfield; removed for lint compatibility */
|
|
974
1307
|
}
|
|
975
1308
|
|
|
1309
|
+
/* Email @ button (assets.atButton). --mf-secondary is defined by MagicSurvey;
|
|
1310
|
+
the fallback is the same #2E2E2E. */
|
|
1311
|
+
.magicfeedback-email-container {
|
|
1312
|
+
display: flex;
|
|
1313
|
+
flex-direction: column;
|
|
1314
|
+
gap: var(--mf-space-sm);
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.magicfeedback-email-row {
|
|
1318
|
+
display: flex;
|
|
1319
|
+
align-items: stretch;
|
|
1320
|
+
gap: var(--mf-space-sm);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.magicfeedback-email-row input[type="email"] {
|
|
1324
|
+
flex: 1 1 auto;
|
|
1325
|
+
min-width: 0;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
.magicfeedback-email-inset {
|
|
1329
|
+
position: relative;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
.magicfeedback-email-inset input[type="email"] {
|
|
1333
|
+
width: 100%;
|
|
1334
|
+
box-sizing: border-box;
|
|
1335
|
+
padding-inline-end: 3.6rem;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.magicfeedback-email-row input[type="email"]:focus,
|
|
1339
|
+
.magicfeedback-email-inset input[type="email"]:focus {
|
|
1340
|
+
border-color: var(--mf-border-focus);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.magicfeedback-email-at {
|
|
1344
|
+
flex: none;
|
|
1345
|
+
aspect-ratio: 1;
|
|
1346
|
+
align-self: stretch;
|
|
1347
|
+
min-width: 46px;
|
|
1348
|
+
display: grid;
|
|
1349
|
+
place-items: center;
|
|
1350
|
+
padding: 0;
|
|
1351
|
+
font-family: inherit;
|
|
1352
|
+
font-size: 1.35rem;
|
|
1353
|
+
font-weight: var(--mf-font-weight-extrabold);
|
|
1354
|
+
line-height: 1;
|
|
1355
|
+
color: #FFFFFF;
|
|
1356
|
+
background-color: var(--mf-secondary, #2E2E2E);
|
|
1357
|
+
border: 2px solid var(--mf-secondary, #2E2E2E);
|
|
1358
|
+
border-radius: var(--mf-radius-full);
|
|
1359
|
+
cursor: pointer;
|
|
1360
|
+
box-shadow: var(--mf-shadow-sm);
|
|
1361
|
+
-webkit-tap-highlight-color: transparent;
|
|
1362
|
+
touch-action: manipulation;
|
|
1363
|
+
-webkit-user-select: none;
|
|
1364
|
+
user-select: none;
|
|
1365
|
+
transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
.magicfeedback-email-at:active {
|
|
1369
|
+
background-color: color-mix(in srgb, var(--mf-secondary, #2E2E2E) 85%, black);
|
|
1370
|
+
transform: scale(0.92);
|
|
1371
|
+
box-shadow: none;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.magicfeedback-email-at:focus-visible {
|
|
1375
|
+
outline: 3px solid var(--mf-primary-border);
|
|
1376
|
+
outline-offset: 2px;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
.magicfeedback-email-inset .magicfeedback-email-at {
|
|
1380
|
+
position: absolute;
|
|
1381
|
+
inset-inline-end: 7px;
|
|
1382
|
+
top: 50%;
|
|
1383
|
+
transform: translateY(-50%);
|
|
1384
|
+
width: 2.5rem;
|
|
1385
|
+
height: 2.5rem;
|
|
1386
|
+
min-width: 0;
|
|
1387
|
+
aspect-ratio: auto;
|
|
1388
|
+
font-size: 1.15rem;
|
|
1389
|
+
color: var(--mf-text-primary);
|
|
1390
|
+
background-color: var(--mf-surface-alt);
|
|
1391
|
+
border: 1px solid var(--mf-border);
|
|
1392
|
+
box-shadow: none;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.magicfeedback-email-inset .magicfeedback-email-at:active {
|
|
1396
|
+
transform: translateY(-50%) scale(0.9);
|
|
1397
|
+
color: var(--mf-primary);
|
|
1398
|
+
background-color: var(--mf-primary-light);
|
|
1399
|
+
border-color: var(--mf-primary-border);
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
.magicfeedback-email-hint {
|
|
1403
|
+
margin: 0;
|
|
1404
|
+
text-align: start;
|
|
1405
|
+
font-size: var(--mf-font-size-sm);
|
|
1406
|
+
line-height: 1.45;
|
|
1407
|
+
color: var(--mf-text-secondary);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
.magicfeedback-email-hint b {
|
|
1411
|
+
font-weight: var(--mf-font-weight-extrabold);
|
|
1412
|
+
color: var(--mf-text-primary);
|
|
1413
|
+
}
|
|
1414
|
+
|
|
976
1415
|
/* Custom Select Arrow */
|
|
977
1416
|
.deepdots-popup select {
|
|
978
1417
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
|
|
@@ -1005,6 +1444,36 @@ div.magicfeedback-radio {
|
|
|
1005
1444
|
width: 100%;
|
|
1006
1445
|
}
|
|
1007
1446
|
|
|
1447
|
+
/* Single choice in a row (assets.direction "row"): one equal box per
|
|
1448
|
+
option. The "other" text field wraps to its own line below. Stacked
|
|
1449
|
+
(phone, or too narrow) it is the usual vertical list again. */
|
|
1450
|
+
.magicfeedback-radio--row {
|
|
1451
|
+
flex-direction: row;
|
|
1452
|
+
flex-wrap: wrap;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
.magicfeedback-radio--row > .magicfeedback-radio-container {
|
|
1456
|
+
flex: 1 1 0;
|
|
1457
|
+
min-width: 0;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
.magicfeedback-radio--row > .magicfeedback-extra-option {
|
|
1461
|
+
flex-basis: 100%;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
.magicfeedback-radio--row.magicfeedback-radio--stacked {
|
|
1465
|
+
flex-direction: column;
|
|
1466
|
+
flex-wrap: nowrap;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
.magicfeedback-radio--row.magicfeedback-radio--stacked > .magicfeedback-radio-container {
|
|
1470
|
+
flex: none;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
.magicfeedback-radio--row .magicfeedback-radio-container label {
|
|
1474
|
+
overflow-wrap: anywhere;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1008
1477
|
.magicfeedback-checkbox-container,
|
|
1009
1478
|
.magicfeedback-radio-container {
|
|
1010
1479
|
display: flex;
|
|
@@ -1228,6 +1697,34 @@ div.magicfeedback-radio {
|
|
|
1228
1697
|
overflow-wrap: anywhere;
|
|
1229
1698
|
}
|
|
1230
1699
|
|
|
1700
|
+
/* assets.minMaxPlaceholderPosition: the caption above or below the row. */
|
|
1701
|
+
.magicfeedback-rating-number-scale-labels--top {
|
|
1702
|
+
margin-top: 0;
|
|
1703
|
+
margin-bottom: var(--mf-space-sm);
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
.magicfeedback-rating-number-scale-labels--bottom {
|
|
1707
|
+
margin-top: var(--mf-space-sm);
|
|
1708
|
+
margin-bottom: 0;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
/* Row with a text per number: the text sits above each chip (below with
|
|
1712
|
+
numberPlaceholdersPosition "bottom"). The option is a column laid out
|
|
1713
|
+
inline; this only spaces and styles the text. */
|
|
1714
|
+
.magicfeedback-rating-number-option--captioned {
|
|
1715
|
+
gap: var(--mf-space-xs);
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
.magicfeedback-rating-number-option-caption {
|
|
1719
|
+
font-size: var(--mf-font-size-sm);
|
|
1720
|
+
font-weight: var(--mf-font-weight-semibold);
|
|
1721
|
+
color: var(--mf-text-secondary);
|
|
1722
|
+
text-align: center;
|
|
1723
|
+
line-height: 1.25;
|
|
1724
|
+
overflow-wrap: anywhere;
|
|
1725
|
+
cursor: pointer;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1231
1728
|
.magicfeedback-rating-number-scale-label:last-child {
|
|
1232
1729
|
text-align: end;
|
|
1233
1730
|
}
|
|
@@ -2722,21 +3219,62 @@ function sdkError(...args) {
|
|
|
2722
3219
|
(active.error ?? active.log)(...args);
|
|
2723
3220
|
}
|
|
2724
3221
|
|
|
3222
|
+
// src/ui/surveySdkVersion.ts
|
|
3223
|
+
var BUNDLED_SURVEY_SDK_VERSION = "2.2.39";
|
|
3224
|
+
var SUPPORTED_SURVEY_SDK_VERSIONS = ["2.2.38", "2.2.39"];
|
|
3225
|
+
var SEMVER = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/;
|
|
3226
|
+
function isSemver(value) {
|
|
3227
|
+
return typeof value === "string" && SEMVER.test(value);
|
|
3228
|
+
}
|
|
3229
|
+
function isSupportedSurveySdk(version) {
|
|
3230
|
+
return SUPPORTED_SURVEY_SDK_VERSIONS.includes(version);
|
|
3231
|
+
}
|
|
3232
|
+
function chooseSurveySdkVersion(requested) {
|
|
3233
|
+
const bundled = (reason) => ({
|
|
3234
|
+
version: BUNDLED_SURVEY_SDK_VERSION,
|
|
3235
|
+
source: "bundled",
|
|
3236
|
+
reason,
|
|
3237
|
+
...requested ? { requested } : {}
|
|
3238
|
+
});
|
|
3239
|
+
if (requested === void 0 || requested === null || requested === "") return bundled("not_assigned");
|
|
3240
|
+
if (!isSemver(requested)) return bundled("invalid");
|
|
3241
|
+
if (!isSupportedSurveySdk(requested)) return bundled("unsupported");
|
|
3242
|
+
if (requested === BUNDLED_SURVEY_SDK_VERSION) return bundled("same_as_bundled");
|
|
3243
|
+
return { version: requested, source: "assigned", requested };
|
|
3244
|
+
}
|
|
3245
|
+
function surveySdkUrls(version) {
|
|
3246
|
+
return [
|
|
3247
|
+
`https://cdn.jsdelivr.net/npm/@magicfeedback/native@${version}/dist/magicfeedback-sdk.browser.js`,
|
|
3248
|
+
`https://unpkg.com/@magicfeedback/native@${version}/dist/magicfeedback-sdk.browser.js`
|
|
3249
|
+
];
|
|
3250
|
+
}
|
|
3251
|
+
function surveySdkCssUrls(version) {
|
|
3252
|
+
return [
|
|
3253
|
+
`https://cdn.jsdelivr.net/npm/@magicfeedback/popup-sdk@${SDK_VERSION}/dist/assets/assets/survey-css/${version}.css`,
|
|
3254
|
+
`https://unpkg.com/@magicfeedback/popup-sdk@${SDK_VERSION}/dist/assets/assets/survey-css/${version}.css`
|
|
3255
|
+
];
|
|
3256
|
+
}
|
|
3257
|
+
function describeSurveySdkChoice(choice) {
|
|
3258
|
+
if (choice.source === "assigned") return `survey SDK ${choice.version} (assigned)`;
|
|
3259
|
+
const asked = choice.requested ? `, requested ${choice.requested}` : "";
|
|
3260
|
+
return `survey SDK ${choice.version} (bundled: ${choice.reason}${asked})`;
|
|
3261
|
+
}
|
|
3262
|
+
|
|
2725
3263
|
export {
|
|
2726
|
-
|
|
2727
|
-
__toESM,
|
|
2728
|
-
InMemoryStorage,
|
|
3264
|
+
SDK_IDENTIFIER,
|
|
2729
3265
|
createDefaultStorage,
|
|
2730
3266
|
STORAGE_KEYS,
|
|
2731
3267
|
buildSurveyIdentity,
|
|
2732
3268
|
TrackingManager,
|
|
3269
|
+
BUNDLED_SURVEY_SDK_VERSION,
|
|
3270
|
+
chooseSurveySdkVersion,
|
|
3271
|
+
surveySdkUrls,
|
|
3272
|
+
surveySdkCssUrls,
|
|
3273
|
+
describeSurveySdkChoice,
|
|
2733
3274
|
buildFontFamilyValue,
|
|
2734
3275
|
buildFontFaceCss,
|
|
2735
3276
|
LABELS,
|
|
2736
|
-
SUPPORTED_LANGUAGES,
|
|
2737
|
-
resolveLocale,
|
|
2738
3277
|
RTL_LOCALES,
|
|
2739
|
-
isRtlLanguage,
|
|
2740
3278
|
directionFor,
|
|
2741
3279
|
getLabels,
|
|
2742
3280
|
resolveActionLabels,
|
|
@@ -2747,10 +3285,12 @@ export {
|
|
|
2747
3285
|
PRIMARY_COLOR_JS,
|
|
2748
3286
|
setSurveyBusy,
|
|
2749
3287
|
BUSY_JS,
|
|
3288
|
+
classifySubmitError,
|
|
3289
|
+
SUBMIT_ERROR_JS,
|
|
2750
3290
|
style_default,
|
|
2751
3291
|
setLogger,
|
|
2752
3292
|
sdkLog,
|
|
2753
3293
|
sdkWarn,
|
|
2754
3294
|
sdkError
|
|
2755
3295
|
};
|
|
2756
|
-
//# sourceMappingURL=chunk-
|
|
3296
|
+
//# sourceMappingURL=chunk-EW2ARDEY.mjs.map
|