@magicfeedback/popup-sdk 1.22.0 → 1.23.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/README.md +8 -2
- package/dist/2.2.47-BYEZ6PUX.mjs +2428 -0
- package/dist/2.2.47-BYEZ6PUX.mjs.map +1 -0
- package/dist/2.2.47-ZZQRJNYY.mjs +2428 -0
- package/dist/2.2.47-ZZQRJNYY.mjs.map +1 -0
- package/dist/assets/assets/style.css +8 -1
- package/dist/assets/assets/survey-css/2.2.47.css +2420 -0
- package/dist/{chunk-36KEHE2P.mjs → chunk-7PNQVCOR.mjs} +156 -5
- package/dist/chunk-7PNQVCOR.mjs.map +1 -0
- package/dist/{chunk-7PVEXIUG.mjs → chunk-HDCZ2QGX.mjs} +156 -5
- package/dist/chunk-HDCZ2QGX.mjs.map +1 -0
- package/dist/{chunk-4MUHUL7W.mjs → chunk-OXAYYIUH.mjs} +156 -5
- package/dist/chunk-OXAYYIUH.mjs.map +1 -0
- package/dist/index.d.mts +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +4028 -1312
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +128 -61
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +36 -0
- package/dist/index.native.d.ts +36 -0
- package/dist/index.native.js +4028 -1312
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +128 -61
- package/dist/index.native.mjs.map +1 -1
- package/dist/react-native.d.mts +25 -0
- package/dist/react-native.d.ts +25 -0
- package/dist/react-native.js +2826 -182
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +128 -61
- package/dist/react-native.mjs.map +1 -1
- package/dist/{renderPopup-I3LIC3W3.mjs → renderPopup-I565DNZX.mjs} +21 -29
- package/dist/renderPopup-I565DNZX.mjs.map +1 -0
- package/dist/{renderPopup-5VVYPKXP.mjs → renderPopup-KWAMONIN.mjs} +1213 -1149
- package/dist/renderPopup-KWAMONIN.mjs.map +1 -0
- package/dist/{renderPopup-VS5XFGTI.mjs → renderPopup-USTJXQJ6.mjs} +1213 -1149
- package/dist/renderPopup-USTJXQJ6.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/chunk-36KEHE2P.mjs.map +0 -1
- package/dist/chunk-4MUHUL7W.mjs.map +0 -1
- package/dist/chunk-7PVEXIUG.mjs.map +0 -1
- package/dist/renderPopup-5VVYPKXP.mjs.map +0 -1
- package/dist/renderPopup-I3LIC3W3.mjs.map +0 -1
- package/dist/renderPopup-VS5XFGTI.mjs.map +0 -1
|
@@ -140,7 +140,7 @@ function ddResolveForcedMode(appearance){
|
|
|
140
140
|
}`;
|
|
141
141
|
|
|
142
142
|
// src/version.ts
|
|
143
|
-
var SDK_VERSION = "1.
|
|
143
|
+
var SDK_VERSION = "1.23.0";
|
|
144
144
|
var SDK_IDENTIFIER = `${"react-native"}@${SDK_VERSION}`;
|
|
145
145
|
var POPUP_CHANNEL = "popup";
|
|
146
146
|
|
|
@@ -251,6 +251,42 @@ var TrackingManager = class {
|
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
|
|
254
|
+
// src/ui/placement.ts
|
|
255
|
+
var CARD_MAX_WIDTH_PX = {
|
|
256
|
+
small: 360,
|
|
257
|
+
regular: 600
|
|
258
|
+
};
|
|
259
|
+
var SMALL_CARD_MOBILE_MAX_PX = 300;
|
|
260
|
+
var BACKDROP_COLOR = "rgba(0,0,0,0.5)";
|
|
261
|
+
var ALIGN = {
|
|
262
|
+
center: { justifyContent: "center", alignItems: "center" },
|
|
263
|
+
bottom: { justifyContent: "center", alignItems: "flex-end" },
|
|
264
|
+
"bottom-right": { justifyContent: "flex-end", alignItems: "flex-end" },
|
|
265
|
+
"bottom-left": { justifyContent: "flex-start", alignItems: "flex-end" },
|
|
266
|
+
top: { justifyContent: "center", alignItems: "flex-start" },
|
|
267
|
+
"top-right": { justifyContent: "flex-end", alignItems: "flex-start" },
|
|
268
|
+
"top-left": { justifyContent: "flex-start", alignItems: "flex-start" }
|
|
269
|
+
};
|
|
270
|
+
function isPosition(value) {
|
|
271
|
+
return typeof value === "string" && Object.prototype.hasOwnProperty.call(ALIGN, value);
|
|
272
|
+
}
|
|
273
|
+
function resolvePlacement(style) {
|
|
274
|
+
const position = isPosition(style?.position) ? style.position : "center";
|
|
275
|
+
const size = style?.size === "small" ? "small" : "regular";
|
|
276
|
+
const blocksPage = position === "center" || style?.blockPage === true;
|
|
277
|
+
const align = ALIGN[position];
|
|
278
|
+
return {
|
|
279
|
+
position,
|
|
280
|
+
size,
|
|
281
|
+
blocksPage,
|
|
282
|
+
justifyContent: align.justifyContent,
|
|
283
|
+
alignItems: align.alignItems,
|
|
284
|
+
padding: position === "center" ? "0" : "16px",
|
|
285
|
+
background: blocksPage ? BACKDROP_COLOR : "transparent",
|
|
286
|
+
cardMaxWidthPx: CARD_MAX_WIDTH_PX[size]
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
|
|
254
290
|
// src/ui/font.ts
|
|
255
291
|
var FORMAT_BY_EXT = {
|
|
256
292
|
woff2: "woff2",
|
|
@@ -291,6 +327,8 @@ var EN = {
|
|
|
291
327
|
back: "Back",
|
|
292
328
|
question: "Question",
|
|
293
329
|
of: "of",
|
|
330
|
+
answeredOf: "{answered} of {total} answered",
|
|
331
|
+
answered: "{answered} answered",
|
|
294
332
|
followUp: "Follow-up",
|
|
295
333
|
closeAria: "Close popup",
|
|
296
334
|
loadingAria: "Loading survey",
|
|
@@ -307,6 +345,8 @@ var ES = {
|
|
|
307
345
|
back: "Atr\xE1s",
|
|
308
346
|
question: "Pregunta",
|
|
309
347
|
of: "de",
|
|
348
|
+
answeredOf: "{answered} de {total} respondidas",
|
|
349
|
+
answered: "{answered} respondidas",
|
|
310
350
|
followUp: "Seguimiento",
|
|
311
351
|
closeAria: "Cerrar ventana emergente",
|
|
312
352
|
loadingAria: "Cargando encuesta",
|
|
@@ -323,6 +363,8 @@ var DA = {
|
|
|
323
363
|
back: "Tilbage",
|
|
324
364
|
question: "Sp\xF8rgsm\xE5l",
|
|
325
365
|
of: "af",
|
|
366
|
+
answeredOf: "{answered} af {total} besvaret",
|
|
367
|
+
answered: "{answered} besvaret",
|
|
326
368
|
followUp: "Opf\xF8lgning",
|
|
327
369
|
closeAria: "Luk pop op",
|
|
328
370
|
loadingAria: "Indl\xE6ser unders\xF8gelse",
|
|
@@ -339,6 +381,8 @@ var NO = {
|
|
|
339
381
|
back: "Tilbake",
|
|
340
382
|
question: "Sp\xF8rsm\xE5l",
|
|
341
383
|
of: "av",
|
|
384
|
+
answeredOf: "{answered} av {total} besvart",
|
|
385
|
+
answered: "{answered} besvart",
|
|
342
386
|
followUp: "Oppf\xF8lging",
|
|
343
387
|
closeAria: "Lukk popup",
|
|
344
388
|
loadingAria: "Laster unders\xF8kelse",
|
|
@@ -355,6 +399,8 @@ var SV = {
|
|
|
355
399
|
back: "Tillbaka",
|
|
356
400
|
question: "Fr\xE5ga",
|
|
357
401
|
of: "av",
|
|
402
|
+
answeredOf: "{answered} av {total} besvarade",
|
|
403
|
+
answered: "{answered} besvarade",
|
|
358
404
|
followUp: "Uppf\xF6ljning",
|
|
359
405
|
closeAria: "St\xE4ng popup",
|
|
360
406
|
loadingAria: "Laddar unders\xF6kning",
|
|
@@ -371,6 +417,8 @@ var FI = {
|
|
|
371
417
|
back: "Takaisin",
|
|
372
418
|
question: "Kysymys",
|
|
373
419
|
of: "/",
|
|
420
|
+
answeredOf: "{answered}/{total} vastattu",
|
|
421
|
+
answered: "{answered} vastattu",
|
|
374
422
|
followUp: "Jatkokysymys",
|
|
375
423
|
closeAria: "Sulje ponnahdusikkuna",
|
|
376
424
|
loadingAria: "Ladataan kysely\xE4",
|
|
@@ -387,6 +435,8 @@ var DE = {
|
|
|
387
435
|
back: "Zur\xFCck",
|
|
388
436
|
question: "Frage",
|
|
389
437
|
of: "von",
|
|
438
|
+
answeredOf: "{answered} von {total} beantwortet",
|
|
439
|
+
answered: "{answered} beantwortet",
|
|
390
440
|
followUp: "Folgefrage",
|
|
391
441
|
closeAria: "Popup schlie\xDFen",
|
|
392
442
|
loadingAria: "Umfrage wird geladen",
|
|
@@ -403,6 +453,8 @@ var FR = {
|
|
|
403
453
|
back: "Retour",
|
|
404
454
|
question: "Question",
|
|
405
455
|
of: "sur",
|
|
456
|
+
answeredOf: "{answered} sur {total} r\xE9pondues",
|
|
457
|
+
answered: "{answered} r\xE9pondues",
|
|
406
458
|
followUp: "Question compl\xE9mentaire",
|
|
407
459
|
closeAria: "Fermer la fen\xEAtre",
|
|
408
460
|
loadingAria: "Chargement de l'enqu\xEAte",
|
|
@@ -419,6 +471,8 @@ var PT = {
|
|
|
419
471
|
back: "Voltar",
|
|
420
472
|
question: "Pergunta",
|
|
421
473
|
of: "de",
|
|
474
|
+
answeredOf: "{answered} de {total} respondidas",
|
|
475
|
+
answered: "{answered} respondidas",
|
|
422
476
|
followUp: "Seguimento",
|
|
423
477
|
closeAria: "Fechar janela",
|
|
424
478
|
loadingAria: "A carregar question\xE1rio",
|
|
@@ -435,6 +489,8 @@ var AR = {
|
|
|
435
489
|
back: "\u0631\u062C\u0648\u0639",
|
|
436
490
|
question: "\u0633\u0624\u0627\u0644",
|
|
437
491
|
of: "\u0645\u0646",
|
|
492
|
+
answeredOf: "\u062A\u0645\u062A \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u0639\u0644\u0649 {answered} \u0645\u0646 {total}",
|
|
493
|
+
answered: "\u062A\u0645\u062A \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u0639\u0644\u0649 {answered}",
|
|
438
494
|
followUp: "\u0633\u0624\u0627\u0644 \u0645\u062A\u0627\u0628\u0639\u0629",
|
|
439
495
|
closeAria: "\u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0645\u0646\u0628\u062B\u0642\u0629",
|
|
440
496
|
loadingAria: "\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646",
|
|
@@ -451,6 +507,8 @@ var BN = {
|
|
|
451
507
|
back: "\u09AA\u09BF\u099B\u09A8\u09C7",
|
|
452
508
|
question: "\u09AA\u09CD\u09B0\u09B6\u09CD\u09A8",
|
|
453
509
|
of: "/",
|
|
510
|
+
answeredOf: "{total}\u099F\u09BF\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 {answered}\u099F\u09BF\u09B0 \u0989\u09A4\u09CD\u09A4\u09B0 \u09A6\u09C7\u0993\u09AF\u09BC\u09BE \u09B9\u09AF\u09BC\u09C7\u099B\u09C7",
|
|
511
|
+
answered: "{answered}\u099F\u09BF\u09B0 \u0989\u09A4\u09CD\u09A4\u09B0 \u09A6\u09C7\u0993\u09AF\u09BC\u09BE \u09B9\u09AF\u09BC\u09C7\u099B\u09C7",
|
|
454
512
|
followUp: "\u09AB\u09B2\u09CB-\u0986\u09AA",
|
|
455
513
|
closeAria: "\u09AA\u09AA\u0986\u09AA \u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09C1\u09A8",
|
|
456
514
|
loadingAria: "\u099C\u09B0\u09BF\u09AA \u09B2\u09CB\u09A1 \u09B9\u099A\u09CD\u099B\u09C7",
|
|
@@ -467,6 +525,8 @@ var ZH_CN = {
|
|
|
467
525
|
back: "\u8FD4\u56DE",
|
|
468
526
|
question: "\u95EE\u9898",
|
|
469
527
|
of: "/",
|
|
528
|
+
answeredOf: "\u5DF2\u56DE\u7B54 {answered} / {total} \u9898",
|
|
529
|
+
answered: "\u5DF2\u56DE\u7B54 {answered} \u9898",
|
|
470
530
|
followUp: "\u8FFD\u95EE",
|
|
471
531
|
closeAria: "\u5173\u95ED\u5F39\u7A97",
|
|
472
532
|
loadingAria: "\u6B63\u5728\u52A0\u8F7D\u95EE\u5377",
|
|
@@ -483,6 +543,8 @@ var BG = {
|
|
|
483
543
|
back: "\u041D\u0430\u0437\u0430\u0434",
|
|
484
544
|
question: "\u0412\u044A\u043F\u0440\u043E\u0441",
|
|
485
545
|
of: "\u043E\u0442",
|
|
546
|
+
answeredOf: "\u041E\u0442\u0433\u043E\u0432\u043E\u0440\u0435\u043D\u0438 {answered} \u043E\u0442 {total}",
|
|
547
|
+
answered: "\u041E\u0442\u0433\u043E\u0432\u043E\u0440\u0435\u043D\u0438: {answered}",
|
|
486
548
|
followUp: "\u0414\u043E\u043F\u044A\u043B\u043D\u0438\u0442\u0435\u043B\u0435\u043D \u0432\u044A\u043F\u0440\u043E\u0441",
|
|
487
549
|
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",
|
|
488
550
|
loadingAria: "\u0410\u043D\u043A\u0435\u0442\u0430\u0442\u0430 \u0441\u0435 \u0437\u0430\u0440\u0435\u0436\u0434\u0430",
|
|
@@ -499,6 +561,8 @@ var CS = {
|
|
|
499
561
|
back: "Zp\u011Bt",
|
|
500
562
|
question: "Ot\xE1zka",
|
|
501
563
|
of: "z",
|
|
564
|
+
answeredOf: "Zodpov\u011Bzeno {answered} z {total}",
|
|
565
|
+
answered: "Zodpov\u011Bzeno: {answered}",
|
|
502
566
|
followUp: "Dopl\u0148uj\xEDc\xED ot\xE1zka",
|
|
503
567
|
closeAria: "Zav\u0159\xEDt vyskakovac\xED okno",
|
|
504
568
|
loadingAria: "Na\u010D\xEDt\xE1n\xED pr\u016Fzkumu",
|
|
@@ -515,6 +579,8 @@ var EL = {
|
|
|
515
579
|
back: "\u03A0\u03AF\u03C3\u03C9",
|
|
516
580
|
question: "\u0395\u03C1\u03CE\u03C4\u03B7\u03C3\u03B7",
|
|
517
581
|
of: "\u03B1\u03C0\u03CC",
|
|
582
|
+
answeredOf: "\u0391\u03C0\u03B1\u03BD\u03C4\u03AE\u03B8\u03B7\u03BA\u03B1\u03BD {answered} \u03B1\u03C0\u03CC {total}",
|
|
583
|
+
answered: "\u0391\u03C0\u03B1\u03BD\u03C4\u03AE\u03B8\u03B7\u03BA\u03B1\u03BD: {answered}",
|
|
518
584
|
followUp: "\u03A3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03AE \u03B5\u03C1\u03CE\u03C4\u03B7\u03C3\u03B7",
|
|
519
585
|
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",
|
|
520
586
|
loadingAria: "\u03A6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7 \u03AD\u03C1\u03B5\u03C5\u03BD\u03B1\u03C2",
|
|
@@ -531,6 +597,8 @@ var ET = {
|
|
|
531
597
|
back: "Tagasi",
|
|
532
598
|
question: "K\xFCsimus",
|
|
533
599
|
of: "/",
|
|
600
|
+
answeredOf: "Vastatud {answered}/{total}",
|
|
601
|
+
answered: "Vastatud: {answered}",
|
|
534
602
|
followUp: "T\xE4psustav k\xFCsimus",
|
|
535
603
|
closeAria: "Sulge h\xFCpikaken",
|
|
536
604
|
loadingAria: "K\xFCsitluse laadimine",
|
|
@@ -547,6 +615,8 @@ var GA = {
|
|
|
547
615
|
back: "Siar",
|
|
548
616
|
question: "Ceist",
|
|
549
617
|
of: "as",
|
|
618
|
+
answeredOf: "{answered} as {total} freagartha",
|
|
619
|
+
answered: "{answered} freagartha",
|
|
550
620
|
followUp: "Ceist leantach",
|
|
551
621
|
closeAria: "D\xFAn an phreabfhuinneog",
|
|
552
622
|
loadingAria: "Suirbh\xE9 \xE1 l\xF3d\xE1il",
|
|
@@ -563,6 +633,8 @@ var HR = {
|
|
|
563
633
|
back: "Natrag",
|
|
564
634
|
question: "Pitanje",
|
|
565
635
|
of: "od",
|
|
636
|
+
answeredOf: "Odgovoreno {answered} od {total}",
|
|
637
|
+
answered: "Odgovoreno: {answered}",
|
|
566
638
|
followUp: "Dodatno pitanje",
|
|
567
639
|
closeAria: "Zatvori sko\u010Dni prozor",
|
|
568
640
|
loadingAria: "U\u010Ditavanje ankete",
|
|
@@ -579,6 +651,8 @@ var HU = {
|
|
|
579
651
|
back: "Vissza",
|
|
580
652
|
question: "K\xE9rd\xE9s",
|
|
581
653
|
of: "/",
|
|
654
|
+
answeredOf: "{answered} / {total} megv\xE1laszolva",
|
|
655
|
+
answered: "{answered} megv\xE1laszolva",
|
|
582
656
|
followUp: "Kieg\xE9sz\xEDt\u0151 k\xE9rd\xE9s",
|
|
583
657
|
closeAria: "Felugr\xF3 ablak bez\xE1r\xE1sa",
|
|
584
658
|
loadingAria: "K\xE9rd\u0151\xEDv bet\xF6lt\xE9se",
|
|
@@ -595,6 +669,8 @@ var IT = {
|
|
|
595
669
|
back: "Indietro",
|
|
596
670
|
question: "Domanda",
|
|
597
671
|
of: "di",
|
|
672
|
+
answeredOf: "{answered} di {total} risposte",
|
|
673
|
+
answered: "{answered} risposte",
|
|
598
674
|
followUp: "Approfondimento",
|
|
599
675
|
closeAria: "Chiudi popup",
|
|
600
676
|
loadingAria: "Caricamento del sondaggio",
|
|
@@ -611,6 +687,8 @@ var LT = {
|
|
|
611
687
|
back: "Atgal",
|
|
612
688
|
question: "Klausimas",
|
|
613
689
|
of: "i\u0161",
|
|
690
|
+
answeredOf: "Atsakyta {answered} i\u0161 {total}",
|
|
691
|
+
answered: "Atsakyta: {answered}",
|
|
614
692
|
followUp: "Papildomas klausimas",
|
|
615
693
|
closeAria: "U\u017Edaryti i\u0161\u0161okant\u012F lang\u0105",
|
|
616
694
|
loadingAria: "\u012Ekeliama apklausa",
|
|
@@ -627,6 +705,8 @@ var LV = {
|
|
|
627
705
|
back: "Atpaka\u013C",
|
|
628
706
|
question: "Jaut\u0101jums",
|
|
629
707
|
of: "no",
|
|
708
|
+
answeredOf: "Atbild\u0113ti {answered} no {total}",
|
|
709
|
+
answered: "Atbild\u0113ti: {answered}",
|
|
630
710
|
followUp: "Papildjaut\u0101jums",
|
|
631
711
|
closeAria: "Aizv\u0113rt uznirsto\u0161o logu",
|
|
632
712
|
loadingAria: "Notiek aptaujas iel\u0101de",
|
|
@@ -643,6 +723,8 @@ var MT = {
|
|
|
643
723
|
back: "Lura",
|
|
644
724
|
question: "Mistoqsija",
|
|
645
725
|
of: "minn",
|
|
726
|
+
answeredOf: "{answered} minn {total} imwie\u0121ba",
|
|
727
|
+
answered: "{answered} imwie\u0121ba",
|
|
646
728
|
followUp: "Mistoqsija ta' segwitu",
|
|
647
729
|
closeAria: "Ag\u0127laq il-popup",
|
|
648
730
|
loadingAria: "Qed jitg\u0127abba l-ist\u0127arri\u0121",
|
|
@@ -659,6 +741,8 @@ var NL = {
|
|
|
659
741
|
back: "Terug",
|
|
660
742
|
question: "Vraag",
|
|
661
743
|
of: "van",
|
|
744
|
+
answeredOf: "{answered} van {total} beantwoord",
|
|
745
|
+
answered: "{answered} beantwoord",
|
|
662
746
|
followUp: "Vervolgvraag",
|
|
663
747
|
closeAria: "Pop-up sluiten",
|
|
664
748
|
loadingAria: "Enqu\xEAte wordt geladen",
|
|
@@ -675,6 +759,8 @@ var PL = {
|
|
|
675
759
|
back: "Wstecz",
|
|
676
760
|
question: "Pytanie",
|
|
677
761
|
of: "z",
|
|
762
|
+
answeredOf: "Odpowiedziano na {answered} z {total}",
|
|
763
|
+
answered: "Odpowiedziano: {answered}",
|
|
678
764
|
followUp: "Pytanie uzupe\u0142niaj\u0105ce",
|
|
679
765
|
closeAria: "Zamknij okno",
|
|
680
766
|
loadingAria: "\u0141adowanie ankiety",
|
|
@@ -691,6 +777,8 @@ var RO = {
|
|
|
691
777
|
back: "\xCEnapoi",
|
|
692
778
|
question: "\xCEntrebarea",
|
|
693
779
|
of: "din",
|
|
780
|
+
answeredOf: "{answered} din {total} r\u0103spunse",
|
|
781
|
+
answered: "{answered} r\u0103spunse",
|
|
694
782
|
followUp: "\xCEntrebare suplimentar\u0103",
|
|
695
783
|
closeAria: "\xCEnchide\u021Bi fereastra pop-up",
|
|
696
784
|
loadingAria: "Se \xEEncarc\u0103 sondajul",
|
|
@@ -707,6 +795,8 @@ var SK = {
|
|
|
707
795
|
back: "Sp\xE4\u0165",
|
|
708
796
|
question: "Ot\xE1zka",
|
|
709
797
|
of: "z",
|
|
798
|
+
answeredOf: "Zodpovedan\xE9 {answered} z {total}",
|
|
799
|
+
answered: "Zodpovedan\xE9: {answered}",
|
|
710
800
|
followUp: "Dopl\u0148uj\xFAca ot\xE1zka",
|
|
711
801
|
closeAria: "Zavrie\u0165 vyskakovacie okno",
|
|
712
802
|
loadingAria: "Na\u010D\xEDtava sa prieskum",
|
|
@@ -723,6 +813,8 @@ var SL = {
|
|
|
723
813
|
back: "Nazaj",
|
|
724
814
|
question: "Vpra\u0161anje",
|
|
725
815
|
of: "od",
|
|
816
|
+
answeredOf: "Odgovorjeno {answered} od {total}",
|
|
817
|
+
answered: "Odgovorjeno: {answered}",
|
|
726
818
|
followUp: "Dodatno vpra\u0161anje",
|
|
727
819
|
closeAria: "Zapri pojavno okno",
|
|
728
820
|
loadingAria: "Nalaganje ankete",
|
|
@@ -739,6 +831,8 @@ var CA = {
|
|
|
739
831
|
back: "Enrere",
|
|
740
832
|
question: "Pregunta",
|
|
741
833
|
of: "de",
|
|
834
|
+
answeredOf: "{answered} de {total} respostes",
|
|
835
|
+
answered: "{answered} respostes",
|
|
742
836
|
followUp: "Seguiment",
|
|
743
837
|
closeAria: "Tanca la finestra emergent",
|
|
744
838
|
loadingAria: "S'est\xE0 carregant l'enquesta",
|
|
@@ -989,6 +1083,52 @@ function ddSetSurveyBusy(el, busy){
|
|
|
989
1083
|
if('inert' in el){ el.inert = busy; }
|
|
990
1084
|
}`;
|
|
991
1085
|
|
|
1086
|
+
// src/ui/progressView.ts
|
|
1087
|
+
var clamp = (n, min, max) => Math.min(max, Math.max(min, n));
|
|
1088
|
+
function fillAnswered(template, answered, total) {
|
|
1089
|
+
return template.split("{answered}").join(String(answered)).split("{total}").join(String(total));
|
|
1090
|
+
}
|
|
1091
|
+
function progressView(input, labels) {
|
|
1092
|
+
const total = input.total;
|
|
1093
|
+
const progress = input.progress;
|
|
1094
|
+
const percentage = input.unit === "percentage";
|
|
1095
|
+
if (total <= 1) return { visible: false, percent: 0, current: "", rest: "" };
|
|
1096
|
+
if (input.mode !== "completed") {
|
|
1097
|
+
if (input.completed) return { visible: false, percent: 0, current: "", rest: "" };
|
|
1098
|
+
const current = clamp(progress + 1, 1, total);
|
|
1099
|
+
const percent2 = clamp(current / total * 100, 0, 100);
|
|
1100
|
+
if (percentage) return { visible: true, percent: percent2, current: `${Math.round(percent2)}%`, rest: "" };
|
|
1101
|
+
const label = clamp(Math.floor(progress) + 1, 1, total);
|
|
1102
|
+
return { visible: true, percent: percent2, current: `${labels.question} ${label}`, rest: ` ${labels.of} ${total}` };
|
|
1103
|
+
}
|
|
1104
|
+
const answered = input.completed ? clamp(Math.floor(progress) + 1, 1, total) : clamp(Math.floor(progress), 0, total);
|
|
1105
|
+
const shownTotal = input.completed ? answered : total;
|
|
1106
|
+
const percent = input.completed ? 100 : clamp(answered / total * 100, 0, 100);
|
|
1107
|
+
if (percentage) return { visible: true, percent, current: `${Math.round(percent)}%`, rest: "" };
|
|
1108
|
+
return { visible: true, percent, current: fillAnswered(labels.answeredOf, answered, shownTotal), rest: "" };
|
|
1109
|
+
}
|
|
1110
|
+
var PROGRESS_VIEW_JS = `
|
|
1111
|
+
function ddProgressView(input, labels){
|
|
1112
|
+
function clamp(n,a,b){ return Math.min(b,Math.max(a,n)); }
|
|
1113
|
+
function fill(t,a,n){ return String(t).split('{answered}').join(String(a)).split('{total}').join(String(n)); }
|
|
1114
|
+
var total=input.total, progress=input.progress, pctUnit=input.unit==='percentage';
|
|
1115
|
+
if(total<=1){ return {visible:false,percent:0,current:'',rest:''}; }
|
|
1116
|
+
if(input.mode!=='completed'){
|
|
1117
|
+
if(input.completed){ return {visible:false,percent:0,current:'',rest:''}; }
|
|
1118
|
+
var cur=clamp(progress+1,1,total);
|
|
1119
|
+
var pct=clamp((cur/total)*100,0,100);
|
|
1120
|
+
if(pctUnit){ return {visible:true,percent:pct,current:Math.round(pct)+'%',rest:''}; }
|
|
1121
|
+
var lab=clamp(Math.floor(progress)+1,1,total);
|
|
1122
|
+
return {visible:true,percent:pct,current:labels.question+' '+lab,rest:' '+labels.of+' '+total};
|
|
1123
|
+
}
|
|
1124
|
+
var answered=input.completed ? clamp(Math.floor(progress)+1,1,total) : clamp(Math.floor(progress),0,total);
|
|
1125
|
+
var shown=input.completed ? answered : total;
|
|
1126
|
+
var p2=input.completed ? 100 : clamp((answered/total)*100,0,100);
|
|
1127
|
+
if(pctUnit){ return {visible:true,percent:p2,current:Math.round(p2)+'%',rest:''}; }
|
|
1128
|
+
return {visible:true,percent:p2,current:fill(labels.answeredOf,answered,shown),rest:''};
|
|
1129
|
+
}
|
|
1130
|
+
`;
|
|
1131
|
+
|
|
992
1132
|
// src/ui/submitError.ts
|
|
993
1133
|
var SURVEY_ERROR_MESSAGE_MAX = 300;
|
|
994
1134
|
var REASON_BY_CODE = {
|
|
@@ -1030,7 +1170,7 @@ function ddClassifySubmitError(error){
|
|
|
1030
1170
|
var style_default = `/**
|
|
1031
1171
|
* NO EDITAR A MANO \u2014 generado por scripts/vendor-survey-css.mjs
|
|
1032
1172
|
*
|
|
1033
|
-
* Copia de @magicfeedback/native@2.2.
|
|
1173
|
+
* Copia de @magicfeedback/native@2.2.47 \u2192 dist/styles/magicfeedback-default.css
|
|
1034
1174
|
* (la hoja can\xF3nica del paquete, la que apunta su campo "style"), con estos cambios locales:
|
|
1035
1175
|
*
|
|
1036
1176
|
* 1. Sin el @import de Google Fonts (Nunito): no queremos una petici\xF3n externa desde la
|
|
@@ -1272,6 +1412,11 @@ var style_default = `/**
|
|
|
1272
1412
|
padding: var(--mf-space-lg);
|
|
1273
1413
|
margin: var(--mf-space-lg) 0;
|
|
1274
1414
|
animation: mf-scale-in 0.3s ease-out;
|
|
1415
|
+
/* A long word or URL with no spaces wraps instead of running off the card
|
|
1416
|
+
(Lemu, 23-nov: an info page with "Hehehe\u2026" was cut on the right).
|
|
1417
|
+
break-word, not anywhere: it only breaks a word that does not fit and
|
|
1418
|
+
leaves the min-content width alone, so nothing in a flex row shrinks. */
|
|
1419
|
+
overflow-wrap: break-word;
|
|
1275
1420
|
}
|
|
1276
1421
|
|
|
1277
1422
|
/* .magicfeedback-info-message/-start-message are set via innerHTML (see
|
|
@@ -1458,6 +1603,7 @@ var style_default = `/**
|
|
|
1458
1603
|
LABELS & TYPOGRAPHY
|
|
1459
1604
|
======================================== */
|
|
1460
1605
|
.magicfeedback-label {
|
|
1606
|
+
overflow-wrap: break-word;
|
|
1461
1607
|
font-size: var(--mf-font-size-lg);
|
|
1462
1608
|
font-weight: var(--mf-font-weight-bold);
|
|
1463
1609
|
color: var(--mf-text-primary);
|
|
@@ -1467,6 +1613,7 @@ var style_default = `/**
|
|
|
1467
1613
|
}
|
|
1468
1614
|
|
|
1469
1615
|
.magicfeedback-sublabel {
|
|
1616
|
+
overflow-wrap: break-word;
|
|
1470
1617
|
font-size: var(--mf-font-size-base);
|
|
1471
1618
|
font-weight: var(--mf-font-weight-normal);
|
|
1472
1619
|
color: var(--mf-text-secondary);
|
|
@@ -3458,8 +3605,8 @@ function sdkError(...args) {
|
|
|
3458
3605
|
}
|
|
3459
3606
|
|
|
3460
3607
|
// src/ui/surveySdkVersion.ts
|
|
3461
|
-
var BUNDLED_SURVEY_SDK_VERSION = "2.2.
|
|
3462
|
-
var SUPPORTED_SURVEY_SDK_VERSIONS = ["2.2.38", "2.2.39", "2.2.44"];
|
|
3608
|
+
var BUNDLED_SURVEY_SDK_VERSION = "2.2.47";
|
|
3609
|
+
var SUPPORTED_SURVEY_SDK_VERSIONS = ["2.2.38", "2.2.39", "2.2.44", "2.2.47"];
|
|
3463
3610
|
var SEMVER = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/;
|
|
3464
3611
|
function isSemver(value) {
|
|
3465
3612
|
return typeof value === "string" && SEMVER.test(value);
|
|
@@ -3511,6 +3658,8 @@ export {
|
|
|
3511
3658
|
STORAGE_KEYS,
|
|
3512
3659
|
buildSurveyIdentity,
|
|
3513
3660
|
TrackingManager,
|
|
3661
|
+
SMALL_CARD_MOBILE_MAX_PX,
|
|
3662
|
+
resolvePlacement,
|
|
3514
3663
|
BUNDLED_SURVEY_SDK_VERSION,
|
|
3515
3664
|
chooseSurveySdkVersion,
|
|
3516
3665
|
surveySdkUrls,
|
|
@@ -3530,6 +3679,8 @@ export {
|
|
|
3530
3679
|
PRIMARY_COLOR_JS,
|
|
3531
3680
|
setSurveyBusy,
|
|
3532
3681
|
BUSY_JS,
|
|
3682
|
+
progressView,
|
|
3683
|
+
PROGRESS_VIEW_JS,
|
|
3533
3684
|
classifySubmitError,
|
|
3534
3685
|
SUBMIT_ERROR_JS,
|
|
3535
3686
|
style_default,
|
|
@@ -3538,4 +3689,4 @@ export {
|
|
|
3538
3689
|
sdkWarn,
|
|
3539
3690
|
sdkError
|
|
3540
3691
|
};
|
|
3541
|
-
//# sourceMappingURL=chunk-
|
|
3692
|
+
//# sourceMappingURL=chunk-7PNQVCOR.mjs.map
|