@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.
Files changed (55) hide show
  1. package/MagicfeedbackPopupSdk.podspec +18 -0
  2. package/README.md +33 -1
  3. package/dist/2.2.38-CCK7SF4A.mjs +2343 -0
  4. package/dist/2.2.38-CCK7SF4A.mjs.map +1 -0
  5. package/dist/2.2.38-LGZRM7GX.mjs +2343 -0
  6. package/dist/2.2.38-LGZRM7GX.mjs.map +1 -0
  7. package/dist/2.2.39-BJJ3YRJ4.mjs +2344 -0
  8. package/dist/2.2.39-BJJ3YRJ4.mjs.map +1 -0
  9. package/dist/2.2.39-HPNDYUPP.mjs +2344 -0
  10. package/dist/2.2.39-HPNDYUPP.mjs.map +1 -0
  11. package/dist/assets/assets/style.css +165 -1
  12. package/dist/assets/assets/survey-css/2.2.38.css +2335 -0
  13. package/dist/assets/assets/survey-css/2.2.39.css +2336 -0
  14. package/dist/chunk-3QS3WKRC.mjs +31 -0
  15. package/dist/chunk-3QS3WKRC.mjs.map +1 -0
  16. package/dist/chunk-7ZQOAKXR.mjs +3335 -0
  17. package/dist/chunk-7ZQOAKXR.mjs.map +1 -0
  18. package/dist/chunk-BJTO5JO5.mjs +11 -0
  19. package/dist/chunk-BJTO5JO5.mjs.map +1 -0
  20. package/dist/{chunk-AFRHPS3K.mjs → chunk-EW2ARDEY.mjs} +591 -51
  21. package/dist/chunk-EW2ARDEY.mjs.map +1 -0
  22. package/dist/{chunk-VHTN5UXD.mjs → chunk-XOEEBDBJ.mjs} +630 -10
  23. package/dist/chunk-XOEEBDBJ.mjs.map +1 -0
  24. package/dist/index.d.mts +159 -10
  25. package/dist/index.d.ts +159 -10
  26. package/dist/index.js +7275 -1466
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +318 -41
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/index.native.d.mts +1616 -0
  31. package/dist/index.native.d.ts +1616 -0
  32. package/dist/index.native.js +15853 -0
  33. package/dist/index.native.js.map +1 -0
  34. package/dist/index.native.mjs +3914 -0
  35. package/dist/index.native.mjs.map +1 -0
  36. package/dist/react-native.d.mts +105 -8
  37. package/dist/react-native.d.ts +105 -8
  38. package/dist/react-native.js +5827 -132
  39. package/dist/react-native.js.map +1 -1
  40. package/dist/react-native.mjs +313 -43
  41. package/dist/react-native.mjs.map +1 -1
  42. package/dist/renderPopup-2Y4QMWR7.mjs +3847 -0
  43. package/dist/renderPopup-2Y4QMWR7.mjs.map +1 -0
  44. package/dist/renderPopup-YDJUON42.mjs +3847 -0
  45. package/dist/renderPopup-YDJUON42.mjs.map +1 -0
  46. package/dist/{renderPopup-L2Q3KJAZ.mjs → renderPopup-ZHTRMFO2.mjs} +142 -9
  47. package/dist/renderPopup-ZHTRMFO2.mjs.map +1 -0
  48. package/ios/DeepdotsBackgroundTask.m +71 -0
  49. package/package.json +14 -5
  50. package/react-native.config.js +9 -0
  51. package/dist/chunk-AFRHPS3K.mjs.map +0 -1
  52. package/dist/chunk-VHTN5UXD.mjs.map +0 -1
  53. package/dist/renderPopup-L2Q3KJAZ.mjs.map +0 -1
  54. package/dist/renderPopup-PQWJSBOY.mjs +0 -3622
  55. package/dist/renderPopup-PQWJSBOY.mjs.map +0 -1
@@ -0,0 +1,3335 @@
1
+ // src/version.ts
2
+ var SDK_VERSION = "1.19.0";
3
+ var SDK_IDENTIFIER = `${"react-native"}@${SDK_VERSION}`;
4
+ var POPUP_CHANNEL = "popup";
5
+
6
+ // src/tracking/tracking-manager.ts
7
+ var InMemoryStorage = class {
8
+ constructor() {
9
+ this.map = /* @__PURE__ */ new Map();
10
+ }
11
+ getItem(key) {
12
+ return this.map.has(key) ? this.map.get(key) : null;
13
+ }
14
+ setItem(key, value) {
15
+ this.map.set(key, value);
16
+ }
17
+ removeItem(key) {
18
+ this.map.delete(key);
19
+ }
20
+ };
21
+ function createDefaultStorage() {
22
+ try {
23
+ if (typeof window !== "undefined" && window.localStorage) {
24
+ const ls = window.localStorage;
25
+ const probe = "__deepdots_probe__";
26
+ ls.setItem(probe, "1");
27
+ ls.removeItem(probe);
28
+ return {
29
+ getItem: (k) => ls.getItem(k),
30
+ setItem: (k, v) => ls.setItem(k, v),
31
+ removeItem: (k) => ls.removeItem(k)
32
+ };
33
+ }
34
+ } catch {
35
+ }
36
+ return new InMemoryStorage();
37
+ }
38
+ var STORAGE_KEYS = {
39
+ userId: "deepdots.user_id",
40
+ firstSeen: "deepdots.user.first_seen",
41
+ contactAttributes: "deepdots.contact.attributes"
42
+ };
43
+ function buildSurveyIdentity(userId, sessionId, miniService = null, analyticsFeedbackSessionId = null) {
44
+ const profile = userId ? [{ key: "external-user-id", value: [userId] }] : [];
45
+ const metadata = [];
46
+ if (sessionId) metadata.push({ key: "session_id", value: [sessionId] });
47
+ if (userId) metadata.push({ key: "user_id", value: [userId] });
48
+ if (miniService) metadata.push({ key: "mini_service", value: [miniService] });
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] });
52
+ return { profile, metadata };
53
+ }
54
+ function defaultUuid() {
55
+ const g = typeof globalThis !== "undefined" ? globalThis : {};
56
+ if (g.crypto?.randomUUID) return g.crypto.randomUUID();
57
+ const bytes = new Uint8Array(16);
58
+ if (g.crypto?.getRandomValues) {
59
+ g.crypto.getRandomValues(bytes);
60
+ } else {
61
+ for (let i = 0; i < 16; i++) bytes[i] = Math.floor(Math.random() * 256);
62
+ }
63
+ bytes[6] = bytes[6] & 15 | 64;
64
+ bytes[8] = bytes[8] & 63 | 128;
65
+ const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, "0"));
66
+ return `${hex.slice(0, 4).join("")}-${hex.slice(4, 6).join("")}-${hex.slice(6, 8).join("")}-${hex.slice(8, 10).join("")}-${hex.slice(10, 16).join("")}`;
67
+ }
68
+ var TrackingManager = class {
69
+ constructor(options) {
70
+ /** session_id cacheado, provisto por el backend (no se genera ni se persiste). */
71
+ this.sessionId = null;
72
+ this.userWasJustCreated = false;
73
+ this.storage = options.storage;
74
+ this.clientUserId = options.clientUserId;
75
+ this.now = options.now ?? (() => Date.now());
76
+ this.uuid = options.uuid ?? defaultUuid;
77
+ this.enabled = options.enabled ?? true;
78
+ }
79
+ isTrackingEnabled() {
80
+ return this.enabled;
81
+ }
82
+ setTrackingEnabled(enabled) {
83
+ this.enabled = enabled;
84
+ }
85
+ /** Resuelve el user_id según la regla: cliente > persistido > generar+persistir. */
86
+ getUserId() {
87
+ if (!this.enabled) return null;
88
+ if (this.clientUserId) return this.clientUserId;
89
+ const persisted = this.storage.getItem(STORAGE_KEYS.userId);
90
+ if (persisted) return persisted;
91
+ const id = this.uuid();
92
+ this.storage.setItem(STORAGE_KEYS.userId, id);
93
+ this.storage.setItem(STORAGE_KEYS.firstSeen, String(this.now()));
94
+ this.userWasJustCreated = true;
95
+ return id;
96
+ }
97
+ /** `true` solo en la primera sesión tras crear el user_id propio del SDK. */
98
+ isNewUser() {
99
+ return this.userWasJustCreated;
100
+ }
101
+ /** session_id actual provisto por el backend, o null si aún no llegó. */
102
+ getSessionId() {
103
+ if (!this.enabled) return null;
104
+ return this.sessionId;
105
+ }
106
+ /** Cachea el session_id devuelto por el backend (respuesta de POST /sdk/popups). */
107
+ setSessionId(sessionId) {
108
+ if (!this.enabled) return;
109
+ this.sessionId = sessionId;
110
+ }
111
+ };
112
+
113
+ // src/ui/font.ts
114
+ var FORMAT_BY_EXT = {
115
+ woff2: "woff2",
116
+ woff: "woff",
117
+ ttf: "truetype",
118
+ otf: "opentype"
119
+ };
120
+ function fontFormatFromUrl(url) {
121
+ const clean = url.split("?")[0].split("#")[0];
122
+ const ext = clean.slice(clean.lastIndexOf(".") + 1).toLowerCase();
123
+ return FORMAT_BY_EXT[ext];
124
+ }
125
+ function sanitizeFamily(family) {
126
+ return family.replace(/[^A-Za-z0-9 ._-]/g, "").trim();
127
+ }
128
+ function isSafeFontUrl(url) {
129
+ if (!/^(https?:|data:)/i.test(url)) return false;
130
+ return !/[\x00-\x20"<>\\]/.test(url);
131
+ }
132
+ function buildFontFamilyValue(family) {
133
+ const safe = sanitizeFamily(family);
134
+ return `"${safe}", -apple-system, system-ui, sans-serif`;
135
+ }
136
+ function buildFontFaceCss(family, url) {
137
+ if (!url || !isSafeFontUrl(url)) return "";
138
+ const safe = sanitizeFamily(family);
139
+ const fmt = fontFormatFromUrl(url);
140
+ const src = fmt ? `url("${url}") format("${fmt}")` : `url("${url}")`;
141
+ return `@font-face{font-family:"${safe}";src:${src};font-display:swap;}`;
142
+ }
143
+
144
+ // src/i18n/labels.ts
145
+ var EN = {
146
+ accept: "Send",
147
+ decline: "Cancel",
148
+ start: "Start survey",
149
+ complete: "Complete survey",
150
+ back: "Back",
151
+ question: "Question",
152
+ of: "of",
153
+ followUp: "Follow-up",
154
+ closeAria: "Close popup",
155
+ loadingAria: "Loading survey",
156
+ errorRequired: "Please answer the required question to continue.",
157
+ errorInvalidEmail: "Please enter a valid email address.",
158
+ errorSubmit: "An error occurred while submitting. Please try again or close the popup.",
159
+ errorLoad: "We couldn't load this survey."
160
+ };
161
+ var ES = {
162
+ accept: "Enviar",
163
+ decline: "Cancelar",
164
+ start: "Empezar encuesta",
165
+ complete: "Completar encuesta",
166
+ back: "Atr\xE1s",
167
+ question: "Pregunta",
168
+ of: "de",
169
+ followUp: "Seguimiento",
170
+ closeAria: "Cerrar ventana emergente",
171
+ loadingAria: "Cargando encuesta",
172
+ errorRequired: "Responde la pregunta obligatoria para continuar.",
173
+ errorInvalidEmail: "Introduce una direcci\xF3n de correo electr\xF3nico v\xE1lida.",
174
+ errorSubmit: "Se produjo un error al enviar. Int\xE9ntalo de nuevo o cierra la ventana.",
175
+ errorLoad: "No se ha podido cargar la encuesta."
176
+ };
177
+ var DA = {
178
+ accept: "Send",
179
+ decline: "Annuller",
180
+ start: "Start unders\xF8gelse",
181
+ complete: "Afslut unders\xF8gelse",
182
+ back: "Tilbage",
183
+ question: "Sp\xF8rgsm\xE5l",
184
+ of: "af",
185
+ followUp: "Opf\xF8lgning",
186
+ closeAria: "Luk pop op",
187
+ loadingAria: "Indl\xE6ser unders\xF8gelse",
188
+ errorRequired: "Besvar venligst det obligatoriske sp\xF8rgsm\xE5l for at forts\xE6tte.",
189
+ errorInvalidEmail: "Indtast venligst en gyldig e-mailadresse.",
190
+ errorSubmit: "Der opstod en fejl under afsendelsen. Pr\xF8v igen, eller luk pop op-vinduet.",
191
+ errorLoad: "Unders\xF8gelsen kunne ikke indl\xE6ses."
192
+ };
193
+ var NO = {
194
+ accept: "Send",
195
+ decline: "Avbryt",
196
+ start: "Start unders\xF8kelse",
197
+ complete: "Fullf\xF8r unders\xF8kelse",
198
+ back: "Tilbake",
199
+ question: "Sp\xF8rsm\xE5l",
200
+ of: "av",
201
+ followUp: "Oppf\xF8lging",
202
+ closeAria: "Lukk popup",
203
+ loadingAria: "Laster unders\xF8kelse",
204
+ errorRequired: "Svar p\xE5 det obligatoriske sp\xF8rsm\xE5let for \xE5 fortsette.",
205
+ errorInvalidEmail: "Skriv inn en gyldig e-postadresse.",
206
+ errorSubmit: "Det oppstod en feil under innsendingen. Pr\xF8v igjen, eller lukk popupen.",
207
+ errorLoad: "Unders\xF8kelsen kunne ikke lastes inn."
208
+ };
209
+ var SV = {
210
+ accept: "Skicka",
211
+ decline: "Avbryt",
212
+ start: "Starta unders\xF6kning",
213
+ complete: "Slutf\xF6r unders\xF6kning",
214
+ back: "Tillbaka",
215
+ question: "Fr\xE5ga",
216
+ of: "av",
217
+ followUp: "Uppf\xF6ljning",
218
+ closeAria: "St\xE4ng popup",
219
+ loadingAria: "Laddar unders\xF6kning",
220
+ errorRequired: "Svara p\xE5 den obligatoriska fr\xE5gan f\xF6r att forts\xE4tta.",
221
+ errorInvalidEmail: "Ange en giltig e-postadress.",
222
+ errorSubmit: "Ett fel uppstod vid inskickningen. F\xF6rs\xF6k igen eller st\xE4ng popupen.",
223
+ errorLoad: "Enk\xE4ten kunde inte laddas."
224
+ };
225
+ var FI = {
226
+ accept: "L\xE4het\xE4",
227
+ decline: "Peruuta",
228
+ start: "Aloita kysely",
229
+ complete: "Viimeistele kysely",
230
+ back: "Takaisin",
231
+ question: "Kysymys",
232
+ of: "/",
233
+ followUp: "Jatkokysymys",
234
+ closeAria: "Sulje ponnahdusikkuna",
235
+ loadingAria: "Ladataan kysely\xE4",
236
+ errorRequired: "Vastaa pakolliseen kysymykseen jatkaaksesi.",
237
+ errorInvalidEmail: "Anna kelvollinen s\xE4hk\xF6postiosoite.",
238
+ errorSubmit: "L\xE4hetyksess\xE4 tapahtui virhe. Yrit\xE4 uudelleen tai sulje ponnahdusikkuna.",
239
+ errorLoad: "Kysely\xE4 ei voitu ladata."
240
+ };
241
+ var DE = {
242
+ accept: "Senden",
243
+ decline: "Abbrechen",
244
+ start: "Umfrage starten",
245
+ complete: "Umfrage abschlie\xDFen",
246
+ back: "Zur\xFCck",
247
+ question: "Frage",
248
+ of: "von",
249
+ followUp: "Folgefrage",
250
+ closeAria: "Popup schlie\xDFen",
251
+ loadingAria: "Umfrage wird geladen",
252
+ errorRequired: "Bitte beantworte die Pflichtfrage, um fortzufahren.",
253
+ errorInvalidEmail: "Bitte gib eine g\xFCltige E-Mail-Adresse ein.",
254
+ errorSubmit: "Beim Senden ist ein Fehler aufgetreten. Versuche es erneut oder schlie\xDFe das Popup.",
255
+ errorLoad: "Die Umfrage konnte nicht geladen werden."
256
+ };
257
+ var FR = {
258
+ accept: "Envoyer",
259
+ decline: "Annuler",
260
+ start: "Commencer l'enqu\xEAte",
261
+ complete: "Terminer l'enqu\xEAte",
262
+ back: "Retour",
263
+ question: "Question",
264
+ of: "sur",
265
+ followUp: "Question compl\xE9mentaire",
266
+ closeAria: "Fermer la fen\xEAtre",
267
+ loadingAria: "Chargement de l'enqu\xEAte",
268
+ errorRequired: "Veuillez r\xE9pondre \xE0 la question obligatoire pour continuer.",
269
+ errorInvalidEmail: "Veuillez saisir une adresse e-mail valide.",
270
+ errorSubmit: "Une erreur s'est produite lors de l'envoi. R\xE9essayez ou fermez la fen\xEAtre.",
271
+ errorLoad: "Impossible de charger l'enqu\xEAte."
272
+ };
273
+ var PT = {
274
+ accept: "Enviar",
275
+ decline: "Cancelar",
276
+ start: "Iniciar question\xE1rio",
277
+ complete: "Concluir question\xE1rio",
278
+ back: "Voltar",
279
+ question: "Pergunta",
280
+ of: "de",
281
+ followUp: "Seguimento",
282
+ closeAria: "Fechar janela",
283
+ loadingAria: "A carregar question\xE1rio",
284
+ errorRequired: "Responda \xE0 pergunta obrigat\xF3ria para continuar.",
285
+ errorInvalidEmail: "Insira um endere\xE7o de e-mail v\xE1lido.",
286
+ errorSubmit: "Ocorreu um erro ao enviar. Tente novamente ou feche a janela.",
287
+ errorLoad: "N\xE3o foi poss\xEDvel carregar o inqu\xE9rito."
288
+ };
289
+ var AR = {
290
+ accept: "\u0625\u0631\u0633\u0627\u0644",
291
+ decline: "\u0625\u0644\u063A\u0627\u0621",
292
+ start: "\u0627\u0628\u062F\u0623 \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646",
293
+ complete: "\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646",
294
+ back: "\u0631\u062C\u0648\u0639",
295
+ question: "\u0633\u0624\u0627\u0644",
296
+ of: "\u0645\u0646",
297
+ followUp: "\u0633\u0624\u0627\u0644 \u0645\u062A\u0627\u0628\u0639\u0629",
298
+ closeAria: "\u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0645\u0646\u0628\u062B\u0642\u0629",
299
+ loadingAria: "\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646",
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.",
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.",
303
+ errorLoad: "\u062A\u0639\u0630\u0651\u0631 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646."
304
+ };
305
+ var BN = {
306
+ accept: "\u09AA\u09BE\u09A0\u09BE\u09A8",
307
+ decline: "\u09AC\u09BE\u09A4\u09BF\u09B2",
308
+ start: "\u099C\u09B0\u09BF\u09AA \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8",
309
+ complete: "\u099C\u09B0\u09BF\u09AA \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09C1\u09A8",
310
+ back: "\u09AA\u09BF\u099B\u09A8\u09C7",
311
+ question: "\u09AA\u09CD\u09B0\u09B6\u09CD\u09A8",
312
+ of: "/",
313
+ followUp: "\u09AB\u09B2\u09CB-\u0986\u09AA",
314
+ closeAria: "\u09AA\u09AA\u0986\u09AA \u09AC\u09A8\u09CD\u09A7 \u0995\u09B0\u09C1\u09A8",
315
+ loadingAria: "\u099C\u09B0\u09BF\u09AA \u09B2\u09CB\u09A1 \u09B9\u099A\u09CD\u099B\u09C7",
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",
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",
319
+ errorLoad: "\u09B8\u09AE\u09C0\u0995\u09CD\u09B7\u09BE\u099F\u09BF \u09B2\u09CB\u09A1 \u0995\u09B0\u09BE \u09AF\u09BE\u09AF\u09BC\u09A8\u09BF\u0964"
320
+ };
321
+ var ZH_CN = {
322
+ accept: "\u53D1\u9001",
323
+ decline: "\u53D6\u6D88",
324
+ start: "\u5F00\u59CB\u95EE\u5377",
325
+ complete: "\u5B8C\u6210\u95EE\u5377",
326
+ back: "\u8FD4\u56DE",
327
+ question: "\u95EE\u9898",
328
+ of: "/",
329
+ followUp: "\u8FFD\u95EE",
330
+ closeAria: "\u5173\u95ED\u5F39\u7A97",
331
+ loadingAria: "\u6B63\u5728\u52A0\u8F7D\u95EE\u5377",
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",
334
+ errorSubmit: "\u63D0\u4EA4\u65F6\u51FA\u9519\u3002\u8BF7\u91CD\u8BD5\u6216\u5173\u95ED\u5F39\u7A97\u3002",
335
+ errorLoad: "\u65E0\u6CD5\u52A0\u8F7D\u95EE\u5377\u3002"
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
+ };
593
+ var LABELS = {
594
+ en: EN,
595
+ es: ES,
596
+ da: DA,
597
+ no: NO,
598
+ sv: SV,
599
+ fi: FI,
600
+ de: DE,
601
+ fr: FR,
602
+ pt: PT,
603
+ ar: AR,
604
+ bn: BN,
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
622
+ };
623
+ var SUPPORTED_LANGUAGES = [
624
+ // Los 11 idiomas que la plataforma ofrece para un survey, más zh-CN (que el SDK nativo ya
625
+ // traía). Si la plataforma añade uno nuevo, hay que añadirlo aquí o el chrome saldrá en
626
+ // inglés bajo un survey traducido.
627
+ "en",
628
+ "es",
629
+ "da",
630
+ "no",
631
+ "sv",
632
+ "fi",
633
+ "de",
634
+ "fr",
635
+ "pt",
636
+ "ar",
637
+ "bn",
638
+ "zh-CN",
639
+ // El resto de idiomas oficiales de la UE (DD-67), traducidos a máquina: pendientes de
640
+ // revisión nativa.
641
+ "bg",
642
+ "cs",
643
+ "el",
644
+ "et",
645
+ "ga",
646
+ "hr",
647
+ "hu",
648
+ "it",
649
+ "lt",
650
+ "lv",
651
+ "mt",
652
+ "nl",
653
+ "pl",
654
+ "ro",
655
+ "sk",
656
+ "sl"
657
+ ];
658
+ function resolveLocale(lang) {
659
+ if (typeof lang !== "string") return "en";
660
+ const normalized = lang.trim().toLowerCase().replace(/_/g, "-");
661
+ if (!normalized) return "en";
662
+ if (normalized === "zh" || normalized.startsWith("zh-")) return "zh-CN";
663
+ const primary = normalized.split("-")[0];
664
+ switch (primary) {
665
+ case "en":
666
+ return "en";
667
+ case "es":
668
+ return "es";
669
+ case "da":
670
+ return "da";
671
+ case "no":
672
+ case "nb":
673
+ case "nn":
674
+ return "no";
675
+ case "sv":
676
+ return "sv";
677
+ case "fi":
678
+ return "fi";
679
+ case "de":
680
+ return "de";
681
+ case "fr":
682
+ return "fr";
683
+ case "pt":
684
+ return "pt";
685
+ case "ar":
686
+ return "ar";
687
+ case "bn":
688
+ return "bn";
689
+ case "bg":
690
+ return "bg";
691
+ case "cs":
692
+ return "cs";
693
+ case "el":
694
+ return "el";
695
+ case "et":
696
+ return "et";
697
+ case "ga":
698
+ return "ga";
699
+ case "hr":
700
+ return "hr";
701
+ case "hu":
702
+ return "hu";
703
+ case "it":
704
+ return "it";
705
+ case "lt":
706
+ return "lt";
707
+ case "lv":
708
+ return "lv";
709
+ case "mt":
710
+ return "mt";
711
+ case "nl":
712
+ return "nl";
713
+ case "pl":
714
+ return "pl";
715
+ case "ro":
716
+ return "ro";
717
+ case "sk":
718
+ return "sk";
719
+ case "sl":
720
+ return "sl";
721
+ default:
722
+ return "en";
723
+ }
724
+ }
725
+ var RTL_LOCALES = ["ar"];
726
+ function isRtlLanguage(lang) {
727
+ return RTL_LOCALES.includes(resolveLocale(lang));
728
+ }
729
+ function directionFor(lang) {
730
+ return isRtlLanguage(lang) ? "rtl" : "ltr";
731
+ }
732
+ function getLabels(lang) {
733
+ return LABELS[resolveLocale(lang)];
734
+ }
735
+ function resolveActionLabels(actions, lang) {
736
+ const labels = getLabels(lang);
737
+ const pick = (value, fallback) => {
738
+ const trimmed = typeof value === "string" ? value.trim() : "";
739
+ return trimmed ? value : fallback;
740
+ };
741
+ return {
742
+ accept: pick(actions?.accept?.label, labels.accept),
743
+ decline: pick(actions?.decline?.label, labels.decline),
744
+ start: pick(actions?.start?.label, labels.start),
745
+ complete: pick(actions?.complete?.label, labels.complete),
746
+ back: pick(actions?.back?.label, labels.back)
747
+ };
748
+ }
749
+ var RESOLVE_LOCALE_JS = `function ddResolveLocale(lang){
750
+ if(typeof lang!=='string') return 'en';
751
+ var n=lang.trim().toLowerCase().replace(/_/g,'-');
752
+ if(!n) return 'en';
753
+ if(n==='zh'||n.indexOf('zh-')===0) return 'zh-CN';
754
+ var p=n.split('-')[0];
755
+ if(p==='en') return 'en';
756
+ if(p==='es') return 'es';
757
+ if(p==='da') return 'da';
758
+ if(p==='no'||p==='nb'||p==='nn') return 'no';
759
+ if(p==='sv') return 'sv';
760
+ if(p==='fi') return 'fi';
761
+ if(p==='de') return 'de';
762
+ if(p==='fr') return 'fr';
763
+ if(p==='pt') return 'pt';
764
+ if(p==='ar') return 'ar';
765
+ if(p==='bn') return 'bn';
766
+ if(p==='bg') return 'bg';
767
+ if(p==='cs') return 'cs';
768
+ if(p==='el') return 'el';
769
+ if(p==='et') return 'et';
770
+ if(p==='ga') return 'ga';
771
+ if(p==='hr') return 'hr';
772
+ if(p==='hu') return 'hu';
773
+ if(p==='it') return 'it';
774
+ if(p==='lt') return 'lt';
775
+ if(p==='lv') return 'lv';
776
+ if(p==='mt') return 'mt';
777
+ if(p==='nl') return 'nl';
778
+ if(p==='pl') return 'pl';
779
+ if(p==='ro') return 'ro';
780
+ if(p==='sk') return 'sk';
781
+ if(p==='sl') return 'sl';
782
+ return 'en';
783
+ }`;
784
+
785
+ // src/ui/reveal.ts
786
+ var REVEAL_TIMEOUT_MS = 1200;
787
+ function revealWhenPainted(root, reveal) {
788
+ const pending = Array.from(root.querySelectorAll("img")).filter((img) => !img.complete);
789
+ if (!pending.length) {
790
+ reveal();
791
+ return;
792
+ }
793
+ let left = pending.length;
794
+ const onSettled = () => {
795
+ left -= 1;
796
+ if (left <= 0) reveal();
797
+ };
798
+ pending.forEach((img) => {
799
+ img.addEventListener("load", onSettled, { once: true });
800
+ img.addEventListener("error", onSettled, { once: true });
801
+ });
802
+ }
803
+
804
+ // src/ui/surveyPalette.ts
805
+ var HEX_COLOR = /^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;
806
+ function resolveSurveyPrimaryColor(style) {
807
+ for (const candidate of [style?.primaryColor, style?.buttonPrimaryColor]) {
808
+ const value = (candidate ?? "").trim();
809
+ if (HEX_COLOR.test(value)) return value;
810
+ }
811
+ return null;
812
+ }
813
+ function surveyPrimaryVars(color) {
814
+ return [
815
+ ["--mf-primary", color],
816
+ ["--mf-primary-hover", `color-mix(in srgb, ${color} 85%, black)`],
817
+ ["--mf-primary-light", `color-mix(in srgb, ${color} 15%, white)`],
818
+ ["--mf-primary-border", `color-mix(in srgb, ${color} 35%, transparent)`],
819
+ ["--mf-border-focus", color]
820
+ ];
821
+ }
822
+ function applySurveyPrimaryColor(el, style) {
823
+ const color = resolveSurveyPrimaryColor(style);
824
+ if (!color) return;
825
+ for (const [name, value] of surveyPrimaryVars(color)) {
826
+ el.style.setProperty(name, value);
827
+ }
828
+ }
829
+ var PRIMARY_COLOR_JS = `
830
+ function ddResolveSurveyPrimaryColor(style){
831
+ var hex=/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;
832
+ var candidates=[style&&style.primaryColor, style&&style.buttonPrimaryColor];
833
+ for(var i=0;i<candidates.length;i++){
834
+ var value=(candidates[i]||'').trim();
835
+ if(hex.test(value)){ return value; }
836
+ }
837
+ return null;
838
+ }
839
+ function ddApplySurveyPrimaryColor(el, style){
840
+ var color=ddResolveSurveyPrimaryColor(style);
841
+ if(!color||!el){ return; }
842
+ el.style.setProperty('--mf-primary', color);
843
+ el.style.setProperty('--mf-primary-hover', 'color-mix(in srgb, '+color+' 85%, black)');
844
+ el.style.setProperty('--mf-primary-light', 'color-mix(in srgb, '+color+' 15%, white)');
845
+ el.style.setProperty('--mf-primary-border', 'color-mix(in srgb, '+color+' 35%, transparent)');
846
+ el.style.setProperty('--mf-border-focus', color);
847
+ }`;
848
+
849
+ // src/ui/busy.ts
850
+ function setSurveyBusy(el, busy) {
851
+ if (!el) return;
852
+ el.style.pointerEvents = busy ? "none" : "";
853
+ el.setAttribute("aria-busy", busy ? "true" : "false");
854
+ if ("inert" in el) {
855
+ el.inert = busy;
856
+ }
857
+ }
858
+ var BUSY_JS = `
859
+ function ddSetSurveyBusy(el, busy){
860
+ if(!el){ return; }
861
+ el.style.pointerEvents = busy ? 'none' : '';
862
+ el.setAttribute('aria-busy', busy ? 'true' : 'false');
863
+ if('inert' in el){ el.inert = busy; }
864
+ }`;
865
+
866
+ // src/ui/submitError.ts
867
+ var SURVEY_ERROR_MESSAGE_MAX = 300;
868
+ var REASON_BY_CODE = {
869
+ REQUIRED: "required",
870
+ INVALID_EMAIL: "invalid_email",
871
+ SEND_FAILED: "send_failed",
872
+ NO_PAGE: "no_page"
873
+ };
874
+ function submitErrorText(error) {
875
+ if (!error) return "";
876
+ if (typeof error === "string") return error;
877
+ const message = error.message;
878
+ return typeof message === "string" ? message : String(error);
879
+ }
880
+ function classifySubmitError(error) {
881
+ const message = submitErrorText(error).slice(0, SURVEY_ERROR_MESSAGE_MAX);
882
+ const code = error && typeof error === "object" ? error.code : void 0;
883
+ if (typeof code === "string" && REASON_BY_CODE[code]) return { reason: REASON_BY_CODE[code], message };
884
+ if (message.toLowerCase().includes("no response")) return { reason: "required", message };
885
+ return { reason: "unknown", message };
886
+ }
887
+ var SUBMIT_ERROR_JS = `
888
+ function ddClassifySubmitError(error){
889
+ var message='';
890
+ if(error){
891
+ if(typeof error==='string'){ message=error; }
892
+ else if(typeof error.message==='string'){ message=error.message; }
893
+ else { message=String(error); }
894
+ }
895
+ message=message.slice(0, ${SURVEY_ERROR_MESSAGE_MAX});
896
+ var byCode={ REQUIRED:'required', INVALID_EMAIL:'invalid_email', SEND_FAILED:'send_failed', NO_PAGE:'no_page' };
897
+ var code=error && typeof error==='object' ? error.code : undefined;
898
+ if(typeof code==='string' && byCode.hasOwnProperty(code)){ return { reason: byCode[code], message: message }; }
899
+ if(message.toLowerCase().indexOf('no response')!==-1){ return { reason: 'required', message: message }; }
900
+ return { reason: 'unknown', message: message };
901
+ }`;
902
+
903
+ // src/assets/style.css
904
+ var style_default = `/**
905
+ * NO EDITAR A MANO \u2014 generado por scripts/vendor-survey-css.mjs
906
+ *
907
+ * Copia de @magicfeedback/native@2.2.39 \u2192 dist/styles/magicfeedback-default.css
908
+ * (la hoja can\xF3nica del paquete, la que apunta su campo "style"), con estos cambios locales:
909
+ *
910
+ * 1. Sin el @import de Google Fonts (Nunito): no queremos una petici\xF3n externa desde la
911
+ * p\xE1gina del host, y la tipograf\xEDa la decide el popup.
912
+ * 2. .magicfeedback-container hereda la fuente del popup (var(--deepdots-font, inherit)).
913
+ * 3. Los selectores desnudos (h2, p, input, textarea, select, ::placeholder, .error) van
914
+ * acotados a .deepdots-popup: este CSS se inyecta en el <head> del host y sin acotar
915
+ * repintar\xEDa su web.
916
+ * 4. El grupo .magicfeedback-radio se cualifica como div.magicfeedback-radio (la clase acaba
917
+ * tambi\xE9n en el <input> del boolean).
918
+ * 5. Todo :hover va dentro de @media (hover: hover): en t\xE1ctil WebKit deja el hover pegado
919
+ * en el \xFAltimo punto tocado y la opci\xF3n de la p\xE1gina siguiente parec\xEDa seleccionada.
920
+ * 6. Al final, un bloque de reglas propias del popup (fuente en los controles y padding del
921
+ * radio nativo).
922
+ *
923
+ * Las variables --mf-* se dejan en :root a prop\xF3sito: el modal del priority-list se portea a
924
+ * <body>, fuera de .deepdots-popup, y ah\xED las necesita.
925
+ *
926
+ * Para subir de versi\xF3n: npm i @magicfeedback/native@<v> && node scripts/vendor-survey-css.mjs
927
+ */
928
+
929
+ /**
930
+ * @magicfeedback/native - Default Styles
931
+ * Clean, minimal, and elegant survey rendering
932
+ */
933
+
934
+ /* @import de Google Fonts (Nunito) eliminado al vendorizar: la fuente la pone el popup. */
935
+
936
+ /* ========================================
937
+ CSS VARIABLES - Design SYSTEM
938
+ ======================================== */
939
+ :root {
940
+ /* Colors - Minimal Pastel */
941
+ /* --mf-primary is the one source of truth for brand/accent color \u2014
942
+ every token below derives from it via color-mix() (or references
943
+ it directly) so changing this single value, here or via a
944
+ per-integration override, keeps hover/light/border states in
945
+ sync automatically instead of going stale independently. Scoped
946
+ to genuinely interactive/accent surfaces (buttons, selected
947
+ chips, focus rings) \u2014 general body text stays on its own neutral
948
+ scale below, not tied to the brand color. */
949
+ --mf-primary: #5d7bad;
950
+ --mf-primary-hover: color-mix(in srgb, var(--mf-primary) 85%, black);
951
+ --mf-primary-light: color-mix(in srgb, var(--mf-primary) 15%, white);
952
+ /* a translucent tint \u2014 mixed with transparent (opacity), not white,
953
+ so it reads as a soft shadow of the brand color rather than a
954
+ pastel of it. */
955
+ --mf-primary-border: color-mix(in srgb, var(--mf-primary) 35%, transparent);
956
+
957
+ --mf-text-primary: #1E293B;
958
+ --mf-text-secondary: #475569;
959
+ --mf-text-muted: #94A3B8;
960
+
961
+ --mf-bg-primary: #F8FAFC;
962
+ --mf-bg-secondary: #FFFFFF;
963
+ --mf-bg-hover: #EEF2F6;
964
+
965
+ --mf-border: #E2E8F0;
966
+ --mf-border-focus: var(--mf-primary);
967
+
968
+ --mf-success: #16A34A;
969
+ --mf-error: #EF4444;
970
+ --mf-warning: #F59E0B;
971
+
972
+ --mf-surface: #FFFFFF;
973
+ --mf-surface-alt: #F1F5F9;
974
+ --mf-accent: #38BDF8;
975
+
976
+ /* Spacing */
977
+ --mf-space-xs: 0.25rem;
978
+ --mf-space-sm: 0.5rem;
979
+ --mf-space-md: 0.75rem;
980
+ --mf-space-lg: 1rem;
981
+ --mf-space-xl: 1.5rem;
982
+
983
+ /* Border Radius */
984
+ --mf-radius-sm: 0.5rem;
985
+ --mf-radius-md: 0.75rem;
986
+ --mf-radius-lg: 1.25rem;
987
+ --mf-radius-full: 9999px;
988
+
989
+ /* Shadows */
990
+ --mf-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
991
+ --mf-shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
992
+ --mf-shadow-lg: 0 16px 30px rgba(15, 23, 42, 0.12);
993
+ --mf-shadow-focus: 0 0 0 3px rgba(30, 41, 59, 0.15);
994
+ --mf-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
995
+
996
+ /* Typography */
997
+ --mf-font-sans: "Nunito", "Quicksand", "Avenir Next", "Trebuchet MS", sans-serif;
998
+ --mf-font-size-sm: 0.875rem;
999
+ --mf-font-size-base: 1rem;
1000
+ --mf-font-size-lg: 1.125rem;
1001
+ --mf-font-size-xl: 1.25rem;
1002
+ --mf-line-height: 1.6;
1003
+
1004
+ /* Font Weights */
1005
+ --mf-font-weight-normal: 400;
1006
+ --mf-font-weight-medium: 500;
1007
+ --mf-font-weight-semibold: 600;
1008
+ --mf-font-weight-bold: 700;
1009
+ --mf-font-weight-extrabold: 800;
1010
+
1011
+ /* Transitions */
1012
+ --mf-transition: all 0.2s ease;
1013
+ --mf-transition-fast: all 0.15s ease;
1014
+ }
1015
+
1016
+ /* ========================================
1017
+ ANIMATIONS
1018
+ ======================================== */
1019
+ @keyframes mf-fade-in {
1020
+ from {
1021
+ opacity: 0;
1022
+ transform: translateY(8px);
1023
+ }
1024
+ to {
1025
+ opacity: 1;
1026
+ transform: translateY(0);
1027
+ }
1028
+ }
1029
+
1030
+ @keyframes mf-slide-in {
1031
+ from {
1032
+ opacity: 0;
1033
+ transform: translateX(-16px);
1034
+ }
1035
+ to {
1036
+ opacity: 1;
1037
+ transform: translateX(0);
1038
+ }
1039
+ }
1040
+
1041
+ @keyframes mf-scale-in {
1042
+ from {
1043
+ opacity: 0;
1044
+ transform: scale(0.95);
1045
+ }
1046
+ to {
1047
+ opacity: 1;
1048
+ transform: scale(1);
1049
+ }
1050
+ }
1051
+
1052
+ @keyframes mf-pulse {
1053
+ 0%,
1054
+ 100% {
1055
+ opacity: 1;
1056
+ }
1057
+ 50% {
1058
+ opacity: 0.8;
1059
+ }
1060
+ }
1061
+
1062
+ /* ========================================
1063
+ BASE CONTAINER
1064
+ ======================================== */
1065
+ .magicfeedback-container {
1066
+ /* Local: hereda la fuente del popup; --deepdots-font viene de PopupStyle.font. */
1067
+ font-family: var(--deepdots-font, inherit);
1068
+ color: var(--mf-text-primary);
1069
+ line-height: var(--mf-line-height);
1070
+ animation: mf-fade-in 0.4s ease-out;
1071
+ border-radius: var(--mf-radius-lg);
1072
+ }
1073
+
1074
+ /* ========================================
1075
+ MESSAGES
1076
+ ======================================== */
1077
+ .magicfeedback-success-message,
1078
+ .magicfeedback-info-message,
1079
+ .magicfeedback-start-message {
1080
+ padding: var(--mf-space-lg);
1081
+ margin: var(--mf-space-lg) 0;
1082
+ animation: mf-scale-in 0.3s ease-out;
1083
+ }
1084
+
1085
+ /* .magicfeedback-info-message/-start-message are set via innerHTML (see
1086
+ renderInfoPage.ts / questions.service.ts's renderStartMessage) \u2014 whatever
1087
+ rich text a survey author writes lands here as real HTML, not just the
1088
+ <p>/<img> pair this used to style. Covering the rest of what a rich-text
1089
+ editor commonly outputs (headings, lists, links, emphasis, quotes, code,
1090
+ rules) keeps that content on the same type scale and palette as the rest
1091
+ of the widget instead of falling back to unstyled browser defaults. */
1092
+ .magicfeedback-success-message > :first-child,
1093
+ .magicfeedback-info-message > :first-child,
1094
+ .magicfeedback-start-message > :first-child {
1095
+ margin-top: 0;
1096
+ }
1097
+
1098
+ .magicfeedback-success-message > :last-child,
1099
+ .magicfeedback-info-message > :last-child,
1100
+ .magicfeedback-start-message > :last-child {
1101
+ margin-bottom: 0;
1102
+ }
1103
+
1104
+ .magicfeedback-success-message p,
1105
+ .magicfeedback-info-message p,
1106
+ .magicfeedback-start-message p {
1107
+ font-size: var(--mf-font-size-base);
1108
+ color: var(--mf-text-secondary);
1109
+ margin: 0 0 var(--mf-space-md);
1110
+ line-height: var(--mf-line-height);
1111
+ }
1112
+
1113
+ .magicfeedback-info-message h1,
1114
+ .magicfeedback-info-message h2,
1115
+ .magicfeedback-info-message h3,
1116
+ .magicfeedback-info-message h4,
1117
+ .magicfeedback-info-message h5,
1118
+ .magicfeedback-info-message h6,
1119
+ .magicfeedback-start-message h1,
1120
+ .magicfeedback-start-message h2,
1121
+ .magicfeedback-start-message h3,
1122
+ .magicfeedback-start-message h4,
1123
+ .magicfeedback-start-message h5,
1124
+ .magicfeedback-start-message h6 {
1125
+ color: var(--mf-text-primary);
1126
+ font-weight: var(--mf-font-weight-bold);
1127
+ line-height: 1.3;
1128
+ margin: var(--mf-space-lg) 0 var(--mf-space-sm);
1129
+ text-align: start;
1130
+ }
1131
+
1132
+ .magicfeedback-info-message h1, .magicfeedback-start-message h1 { font-size: var(--mf-font-size-xl); }
1133
+ .magicfeedback-info-message h2, .magicfeedback-start-message h2 { font-size: var(--mf-font-size-lg); }
1134
+ .magicfeedback-info-message h3,
1135
+ .magicfeedback-info-message h4,
1136
+ .magicfeedback-info-message h5,
1137
+ .magicfeedback-info-message h6,
1138
+ .magicfeedback-start-message h3,
1139
+ .magicfeedback-start-message h4,
1140
+ .magicfeedback-start-message h5,
1141
+ .magicfeedback-start-message h6 { font-size: var(--mf-font-size-base); }
1142
+
1143
+ .magicfeedback-info-message strong,
1144
+ .magicfeedback-info-message b,
1145
+ .magicfeedback-start-message strong,
1146
+ .magicfeedback-start-message b {
1147
+ font-weight: var(--mf-font-weight-bold);
1148
+ color: var(--mf-text-primary);
1149
+ }
1150
+
1151
+ .magicfeedback-info-message a,
1152
+ .magicfeedback-start-message a {
1153
+ color: var(--mf-primary);
1154
+ text-decoration: underline;
1155
+ text-underline-offset: 2px;
1156
+ }
1157
+
1158
+ @media (hover: hover) {
1159
+ .magicfeedback-info-message a:hover,
1160
+ .magicfeedback-start-message a:hover {
1161
+ color: var(--mf-primary-hover);
1162
+ }
1163
+ }
1164
+
1165
+ .magicfeedback-info-message ul,
1166
+ .magicfeedback-info-message ol,
1167
+ .magicfeedback-start-message ul,
1168
+ .magicfeedback-start-message ol {
1169
+ margin: 0 0 var(--mf-space-md);
1170
+ padding-inline-start: var(--mf-space-xl);
1171
+ color: var(--mf-text-secondary);
1172
+ line-height: var(--mf-line-height);
1173
+ }
1174
+
1175
+ .magicfeedback-info-message li + li,
1176
+ .magicfeedback-start-message li + li {
1177
+ margin-top: var(--mf-space-xs);
1178
+ }
1179
+
1180
+ .magicfeedback-info-message blockquote,
1181
+ .magicfeedback-start-message blockquote {
1182
+ margin: 0 0 var(--mf-space-md);
1183
+ padding: var(--mf-space-sm) var(--mf-space-md);
1184
+ border-inline-start: 3px solid var(--mf-primary-border);
1185
+ color: var(--mf-text-secondary);
1186
+ font-style: italic;
1187
+ }
1188
+
1189
+ .magicfeedback-info-message code,
1190
+ .magicfeedback-start-message code {
1191
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1192
+ font-size: 0.9em;
1193
+ background: var(--mf-bg-hover);
1194
+ padding: 0.15em 0.4em;
1195
+ border-radius: var(--mf-radius-sm);
1196
+ }
1197
+
1198
+ .magicfeedback-info-message pre,
1199
+ .magicfeedback-start-message pre {
1200
+ margin: 0 0 var(--mf-space-md);
1201
+ padding: var(--mf-space-md);
1202
+ background: var(--mf-bg-hover);
1203
+ border-radius: var(--mf-radius-md);
1204
+ overflow-x: auto;
1205
+ }
1206
+
1207
+ .magicfeedback-info-message pre code,
1208
+ .magicfeedback-start-message pre code {
1209
+ background: none;
1210
+ padding: 0;
1211
+ }
1212
+
1213
+ .magicfeedback-info-message hr,
1214
+ .magicfeedback-start-message hr {
1215
+ border: none;
1216
+ border-top: 1px solid var(--mf-border);
1217
+ margin: var(--mf-space-lg) 0;
1218
+ }
1219
+
1220
+ .magicfeedback-success-message img,
1221
+ .magicfeedback-info-message img,
1222
+ .magicfeedback-start-message img {
1223
+ max-width: 100%;
1224
+ height: auto;
1225
+ margin: var(--mf-space-lg) auto;
1226
+ display: block;
1227
+ border-radius: var(--mf-radius-md);
1228
+ }
1229
+
1230
+ .magicfeedback-image {
1231
+ max-height: 400px;
1232
+ height: auto;
1233
+ max-width: 100%;
1234
+ margin: var(--mf-space-lg) auto;
1235
+ display: block;
1236
+ border-radius: var(--mf-radius-md);
1237
+ }
1238
+
1239
+ /* ========================================
1240
+ FORM STRUCTURE
1241
+ ======================================== */
1242
+ .magicfeedback-form {
1243
+ display: flex;
1244
+ flex-direction: column;
1245
+ gap: var(--mf-space-lg);
1246
+ padding: clamp(16px, 2.5vw, 28px);
1247
+ }
1248
+
1249
+ .magicfeedback-questions {
1250
+ display: flex;
1251
+ flex-direction: column;
1252
+ gap: var(--mf-space-xl);
1253
+ width: 100%;
1254
+ }
1255
+
1256
+ .magicfeedback-div {
1257
+ display: flex;
1258
+ flex-direction: column;
1259
+ gap: var(--mf-space-sm);
1260
+ animation: mf-slide-in 0.3s ease-out;
1261
+ background: var(--mf-bg-secondary);
1262
+ border-radius: var(--mf-radius-md);
1263
+ }
1264
+
1265
+ /* ========================================
1266
+ LABELS & TYPOGRAPHY
1267
+ ======================================== */
1268
+ .magicfeedback-label {
1269
+ font-size: var(--mf-font-size-lg);
1270
+ font-weight: var(--mf-font-weight-bold);
1271
+ color: var(--mf-text-primary);
1272
+ line-height: var(--mf-line-height);
1273
+ text-align: start;
1274
+ letter-spacing: -0.01em;
1275
+ }
1276
+
1277
+ .magicfeedback-sublabel {
1278
+ font-size: var(--mf-font-size-base);
1279
+ font-weight: var(--mf-font-weight-normal);
1280
+ color: var(--mf-text-secondary);
1281
+ margin-bottom: var(--mf-space-sm);
1282
+ }
1283
+
1284
+ .deepdots-popup h2 {
1285
+ font-size: var(--mf-font-size-xl);
1286
+ font-weight: 600;
1287
+ color: var(--mf-text-primary);
1288
+ margin: 0 0 var(--mf-space-xl) 0;
1289
+ text-align: center;
1290
+ letter-spacing: -0.01em;
1291
+ }
1292
+
1293
+ .deepdots-popup p {
1294
+ margin: 0;
1295
+ font-size: var(--mf-font-size-sm);
1296
+ color: var(--mf-text-secondary);
1297
+ }
1298
+
1299
+ /* ========================================
1300
+ FORM INPUTS
1301
+ ======================================== */
1302
+ .deepdots-popup input[type="date"],
1303
+ .deepdots-popup input[type="text"],
1304
+ .deepdots-popup input[type="number"],
1305
+ .deepdots-popup input[type="email"],
1306
+ .deepdots-popup input[type="password"],
1307
+ .deepdots-popup textarea,
1308
+ .deepdots-popup select {
1309
+ padding: 0.75rem 0.9rem;
1310
+ font-size: var(--mf-font-size-base);
1311
+ font-family: inherit;
1312
+ color: var(--mf-text-primary);
1313
+ background-color: var(--mf-surface);
1314
+ border: 2px solid var(--mf-border);
1315
+ border-radius: var(--mf-radius-md);
1316
+ outline: none;
1317
+ transition: var(--mf-transition);
1318
+ -webkit-appearance: none;
1319
+ appearance: none;
1320
+ box-shadow: var(--mf-shadow-sm);
1321
+ }
1322
+
1323
+ .deepdots-popup textarea {
1324
+ min-height: 100px;
1325
+ resize: vertical;
1326
+ }
1327
+
1328
+ .deepdots-popup input::placeholder,
1329
+ .deepdots-popup textarea::placeholder {
1330
+ color: var(--mf-text-muted);
1331
+ }
1332
+
1333
+ /* Remove number input spinners */
1334
+ .deepdots-popup input::-webkit-outer-spin-button,
1335
+ .deepdots-popup input::-webkit-inner-spin-button {
1336
+ -webkit-appearance: none;
1337
+ margin: 0;
1338
+ }
1339
+
1340
+ .deepdots-popup input[type="number"] {
1341
+ /* -moz-appearance: textfield; removed for lint compatibility */
1342
+ }
1343
+
1344
+ /* Email @ button (assets.atButton). --mf-secondary is defined by MagicSurvey;
1345
+ the fallback is the same #2E2E2E. */
1346
+ .magicfeedback-email-container {
1347
+ display: flex;
1348
+ flex-direction: column;
1349
+ gap: var(--mf-space-sm);
1350
+ }
1351
+
1352
+ .magicfeedback-email-row {
1353
+ display: flex;
1354
+ align-items: stretch;
1355
+ gap: var(--mf-space-sm);
1356
+ }
1357
+
1358
+ .magicfeedback-email-row input[type="email"] {
1359
+ flex: 1 1 auto;
1360
+ min-width: 0;
1361
+ }
1362
+
1363
+ .magicfeedback-email-inset {
1364
+ position: relative;
1365
+ }
1366
+
1367
+ .magicfeedback-email-inset input[type="email"] {
1368
+ width: 100%;
1369
+ box-sizing: border-box;
1370
+ padding-inline-end: 3.6rem;
1371
+ }
1372
+
1373
+ .magicfeedback-email-row input[type="email"]:focus,
1374
+ .magicfeedback-email-inset input[type="email"]:focus {
1375
+ border-color: var(--mf-border-focus);
1376
+ }
1377
+
1378
+ .magicfeedback-email-at {
1379
+ flex: none;
1380
+ aspect-ratio: 1;
1381
+ align-self: stretch;
1382
+ min-width: 46px;
1383
+ display: grid;
1384
+ place-items: center;
1385
+ padding: 0;
1386
+ font-family: inherit;
1387
+ font-size: 1.35rem;
1388
+ font-weight: var(--mf-font-weight-extrabold);
1389
+ line-height: 1;
1390
+ color: #FFFFFF;
1391
+ background-color: var(--mf-secondary, #2E2E2E);
1392
+ border: 2px solid var(--mf-secondary, #2E2E2E);
1393
+ border-radius: var(--mf-radius-full);
1394
+ cursor: pointer;
1395
+ box-shadow: var(--mf-shadow-sm);
1396
+ -webkit-tap-highlight-color: transparent;
1397
+ touch-action: manipulation;
1398
+ -webkit-user-select: none;
1399
+ user-select: none;
1400
+ transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
1401
+ }
1402
+
1403
+ .magicfeedback-email-at:active {
1404
+ background-color: color-mix(in srgb, var(--mf-secondary, #2E2E2E) 85%, black);
1405
+ transform: scale(0.92);
1406
+ box-shadow: none;
1407
+ }
1408
+
1409
+ .magicfeedback-email-at:focus-visible {
1410
+ outline: 3px solid var(--mf-primary-border);
1411
+ outline-offset: 2px;
1412
+ }
1413
+
1414
+ .magicfeedback-email-inset .magicfeedback-email-at {
1415
+ position: absolute;
1416
+ inset-inline-end: 7px;
1417
+ top: 50%;
1418
+ transform: translateY(-50%);
1419
+ width: 2.5rem;
1420
+ height: 2.5rem;
1421
+ min-width: 0;
1422
+ aspect-ratio: auto;
1423
+ font-size: 1.15rem;
1424
+ color: var(--mf-text-primary);
1425
+ background-color: var(--mf-surface-alt);
1426
+ border: 1px solid var(--mf-border);
1427
+ box-shadow: none;
1428
+ }
1429
+
1430
+ .magicfeedback-email-inset .magicfeedback-email-at:active {
1431
+ transform: translateY(-50%) scale(0.9);
1432
+ color: var(--mf-primary);
1433
+ background-color: var(--mf-primary-light);
1434
+ border-color: var(--mf-primary-border);
1435
+ }
1436
+
1437
+ .magicfeedback-email-hint {
1438
+ margin: 0;
1439
+ text-align: start;
1440
+ font-size: var(--mf-font-size-sm);
1441
+ line-height: 1.45;
1442
+ color: var(--mf-text-secondary);
1443
+ }
1444
+
1445
+ .magicfeedback-email-hint b {
1446
+ font-weight: var(--mf-font-weight-extrabold);
1447
+ color: var(--mf-text-primary);
1448
+ }
1449
+
1450
+ /* Custom Select Arrow */
1451
+ .deepdots-popup select {
1452
+ 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");
1453
+ background-repeat: no-repeat;
1454
+ background-position: right var(--mf-space-md) center;
1455
+ padding-inline-end: var(--mf-space-xl);
1456
+ }
1457
+
1458
+ /* Error State */
1459
+ .deepdots-popup input.error,
1460
+ .deepdots-popup select.error,
1461
+ .deepdots-popup textarea.error {
1462
+ border-color: var(--mf-error);
1463
+ }
1464
+
1465
+ .magicfeedback-error {
1466
+ margin-top: var(--mf-space-xs);
1467
+ font-size: var(--mf-font-size-sm);
1468
+ color: var(--mf-error);
1469
+ }
1470
+
1471
+ /* ========================================
1472
+ CHECKBOX & RADIO OPTIONS
1473
+ ======================================== */
1474
+ .magicfeedback-checkbox,
1475
+ div.magicfeedback-radio {
1476
+ display: flex;
1477
+ flex-direction: column;
1478
+ gap: var(--mf-space-sm);
1479
+ width: 100%;
1480
+ }
1481
+
1482
+ /* Single choice in a row (assets.direction "row"): one equal box per
1483
+ option. The "other" text field wraps to its own line below. Stacked
1484
+ (phone, or too narrow) it is the usual vertical list again. */
1485
+ .magicfeedback-radio--row {
1486
+ flex-direction: row;
1487
+ flex-wrap: wrap;
1488
+ }
1489
+
1490
+ .magicfeedback-radio--row > .magicfeedback-radio-container {
1491
+ flex: 1 1 0;
1492
+ min-width: 0;
1493
+ }
1494
+
1495
+ .magicfeedback-radio--row > .magicfeedback-extra-option {
1496
+ flex-basis: 100%;
1497
+ }
1498
+
1499
+ .magicfeedback-radio--row.magicfeedback-radio--stacked {
1500
+ flex-direction: column;
1501
+ flex-wrap: nowrap;
1502
+ }
1503
+
1504
+ .magicfeedback-radio--row.magicfeedback-radio--stacked > .magicfeedback-radio-container {
1505
+ flex: none;
1506
+ }
1507
+
1508
+ .magicfeedback-radio--row .magicfeedback-radio-container label {
1509
+ overflow-wrap: anywhere;
1510
+ }
1511
+
1512
+ .magicfeedback-checkbox-container,
1513
+ .magicfeedback-radio-container {
1514
+ display: flex;
1515
+ align-items: center;
1516
+ gap: var(--mf-space-sm);
1517
+ padding: var(--mf-space-md);
1518
+ border: 1.5px solid var(--mf-border);
1519
+ border-radius: var(--mf-radius-md);
1520
+ cursor: pointer;
1521
+ transition: var(--mf-transition-fast);
1522
+ }
1523
+
1524
+ @media (hover: hover) {
1525
+ .magicfeedback-checkbox-container:hover,
1526
+ .magicfeedback-radio-container:hover {
1527
+ background-color: var(--mf-bg-hover);
1528
+ border-color: var(--mf-primary);
1529
+ }
1530
+ }
1531
+
1532
+ .magicfeedback-checkbox-container:has(input:checked),
1533
+ .magicfeedback-radio-container:has(input:checked) {
1534
+ background-color: var(--mf-primary-light);
1535
+ border-color: var(--mf-primary);
1536
+ }
1537
+
1538
+ .magicfeedback-checkbox input[type="checkbox"],
1539
+ .magicfeedback-radio-container input[type="radio"] {
1540
+ width: 18px;
1541
+ height: 18px;
1542
+ margin: 0;
1543
+ cursor: pointer;
1544
+ flex-shrink: 0;
1545
+ accent-color: var(--mf-primary);
1546
+ }
1547
+
1548
+ .magicfeedback-checkbox label,
1549
+ .magicfeedback-radio-container label {
1550
+ font-size: var(--mf-font-size-base);
1551
+ text-align: start;
1552
+ color: var(--mf-text-primary);
1553
+ cursor: pointer;
1554
+ margin: 0;
1555
+ flex: 1;
1556
+ }
1557
+
1558
+ /* ========================================
1559
+ BOOLEAN OPTIONS
1560
+ ======================================== */
1561
+ .magicfeedback-boolean-container {
1562
+ display: flex;
1563
+ gap: var(--mf-space-md);
1564
+ width: 100%;
1565
+ }
1566
+
1567
+ .magicfeedback-boolean-option {
1568
+ flex: 1;
1569
+ position: relative;
1570
+ }
1571
+
1572
+ .magicfeedback-boolean-option input[type="radio"] {
1573
+ position: absolute;
1574
+ opacity: 0;
1575
+ width: 0;
1576
+ height: 0;
1577
+ }
1578
+
1579
+ .magicfeedback-boolean-option label {
1580
+ display: flex;
1581
+ align-items: center;
1582
+ justify-content: center;
1583
+ padding: var(--mf-space-md);
1584
+ font-size: var(--mf-font-size-base);
1585
+ font-weight: 500;
1586
+ color: var(--mf-text-secondary);
1587
+ border: 1.5px solid var(--mf-border);
1588
+ border-radius: var(--mf-radius-md);
1589
+ cursor: pointer;
1590
+ transition: var(--mf-transition-fast);
1591
+ margin: 0;
1592
+ width: -webkit-fill-available;
1593
+ height: inherit;
1594
+ }
1595
+
1596
+ @media (hover: hover) {
1597
+ .magicfeedback-boolean-option label:hover {
1598
+ background-color: var(--mf-bg-hover);
1599
+ border-color: var(--mf-primary);
1600
+ }
1601
+ }
1602
+
1603
+ .magicfeedback-boolean-option input[type="radio"]:checked + label {
1604
+ color: var(--mf-primary);
1605
+ background-color: var(--mf-primary-light);
1606
+ border-color: var(--mf-primary);
1607
+ font-weight: 600;
1608
+ }
1609
+
1610
+ /* ========================================
1611
+ RATING SYSTEMS
1612
+ ======================================== */
1613
+ .magicfeedback-rating,
1614
+ .magicfeedback-rating-number,
1615
+ .magicfeedback-rating-star {
1616
+ width: 100%;
1617
+ }
1618
+
1619
+ .magicfeedback-rating-container,
1620
+ .magicfeedback-rating-number-container,
1621
+ .magicfeedback-rating-star-container {
1622
+ display: flex;
1623
+ flex-wrap: wrap;
1624
+ gap: var(--mf-space-sm);
1625
+ justify-content: center;
1626
+ align-items: center;
1627
+ padding: var(--mf-space-md) 0;
1628
+ list-style: none;
1629
+ margin: 0;
1630
+ }
1631
+
1632
+ /* Caption line below the row \u2014 min on one side, max on the other (swapped
1633
+ for order: "rtl") \u2014 same simple, non-responsive pattern as the
1634
+ rating-number row caption. Used by rating-star and rating-emoji. */
1635
+ .magicfeedback-rating-placeholder {
1636
+ display: flex;
1637
+ justify-content: space-between;
1638
+ gap: var(--mf-space-md);
1639
+ width: 100%;
1640
+ margin-top: var(--mf-space-sm);
1641
+ font-size: var(--mf-font-size-sm);
1642
+ font-weight: var(--mf-font-weight-semibold);
1643
+ color: var(--mf-text-secondary);
1644
+ }
1645
+
1646
+ .magicfeedback-rating-placeholder-value {
1647
+ overflow-wrap: anywhere;
1648
+ }
1649
+
1650
+ .magicfeedback-rating-placeholder-value:last-child {
1651
+ text-align: end;
1652
+ }
1653
+
1654
+ /* Rating with Images */
1655
+ .magicfeedback-rating-option-label-container input[type="radio"] {
1656
+ position: absolute;
1657
+ opacity: 0;
1658
+ width: 0;
1659
+ height: 0;
1660
+ }
1661
+
1662
+ .magicfeedback-rating-option-label-container img {
1663
+ width: 56px;
1664
+ height: 56px;
1665
+ cursor: pointer;
1666
+ transition: var(--mf-transition-fast);
1667
+ border-radius: var(--mf-radius-full);
1668
+ border: 2px solid transparent;
1669
+ }
1670
+
1671
+ @media (hover: hover) {
1672
+ .magicfeedback-rating-option-label-container img:hover {
1673
+ transform: scale(1.1);
1674
+ border-color: var(--mf-primary);
1675
+ }
1676
+ }
1677
+
1678
+ .magicfeedback-rating-option-label-container input[type="radio"]:checked + img {
1679
+ border-color: var(--mf-primary);
1680
+ box-shadow: 0 0 0 3px var(--mf-primary-light);
1681
+ }
1682
+
1683
+ .magicfeedback-rating-option-label-container label {
1684
+ display: block;
1685
+ text-align: center;
1686
+ font-size: var(--mf-font-size-sm);
1687
+ color: var(--mf-text-secondary);
1688
+ margin-top: var(--mf-space-xs);
1689
+ cursor: pointer;
1690
+ }
1691
+
1692
+ /* Rating Numbers \u2014 each option is its own outlined chip in the survey's
1693
+ primary color, with a gap between them. Row and column use the same
1694
+ chip; column additionally has room to show each option's own text
1695
+ plainly next to its number. */
1696
+
1697
+ /* Every size here is width:100%/flex:1 combined with the chip's own
1698
+ padding and border. Without border-box, the browser's default
1699
+ content-box adds that padding/border on TOP of the declared size, so
1700
+ the chip quietly overflows past its flex slot \u2014 reading as "not quite
1701
+ full width" or, worse, pushing into the next chip. */
1702
+ .magicfeedback-rating-number-container,
1703
+ .magicfeedback-rating-number-option,
1704
+ .magicfeedback-rating-number-option-label-container,
1705
+ .magicfeedback-rating-number-value {
1706
+ box-sizing: border-box;
1707
+ }
1708
+
1709
+ /* The shared rating-container rule (above, reused by star rating) sets
1710
+ align-items:center for its row-of-chips layout \u2014 in a stacked column
1711
+ that still nudges a 100%-wide chip inward instead of a true 0 offset.
1712
+ Force stretch so every chip fills the exact same width, flush on
1713
+ both sides. */
1714
+ .magicfeedback-rating-number-container-column,
1715
+ .magicfeedback-rating-number-container-column-reverse {
1716
+ align-items: stretch;
1717
+ }
1718
+
1719
+ /* Caption line below the row \u2014 the single place min/max labels live
1720
+ for row mode, shared by mobile and desktop. */
1721
+ .magicfeedback-rating-number-scale-labels {
1722
+ display: flex;
1723
+ justify-content: space-between;
1724
+ gap: var(--mf-space-md);
1725
+ margin-top: var(--mf-space-sm);
1726
+ font-size: var(--mf-font-size-sm);
1727
+ font-weight: var(--mf-font-weight-semibold);
1728
+ color: var(--mf-text-secondary);
1729
+ }
1730
+
1731
+ .magicfeedback-rating-number-scale-label {
1732
+ overflow-wrap: anywhere;
1733
+ }
1734
+
1735
+ /* assets.minMaxPlaceholderPosition: the caption above or below the row. */
1736
+ .magicfeedback-rating-number-scale-labels--top {
1737
+ margin-top: 0;
1738
+ margin-bottom: var(--mf-space-sm);
1739
+ }
1740
+
1741
+ .magicfeedback-rating-number-scale-labels--bottom {
1742
+ margin-top: var(--mf-space-sm);
1743
+ margin-bottom: 0;
1744
+ }
1745
+
1746
+ /* Row with a text per number: the text sits above each chip (below with
1747
+ numberPlaceholdersPosition "bottom"). The option is a column laid out
1748
+ inline; this only spaces and styles the text. */
1749
+ .magicfeedback-rating-number-option--captioned {
1750
+ gap: var(--mf-space-xs);
1751
+ }
1752
+
1753
+ .magicfeedback-rating-number-option-caption {
1754
+ font-size: var(--mf-font-size-sm);
1755
+ font-weight: var(--mf-font-weight-semibold);
1756
+ color: var(--mf-text-secondary);
1757
+ text-align: center;
1758
+ line-height: 1.25;
1759
+ overflow-wrap: anywhere;
1760
+ cursor: pointer;
1761
+ }
1762
+
1763
+ .magicfeedback-rating-number-scale-label:last-child {
1764
+ text-align: end;
1765
+ }
1766
+
1767
+ /* Column, no per-option text: each row is its own separated chip, so
1768
+ the min/max labels bookend the stack from outside it \u2014 one line
1769
+ above the first chip, one below the last. Margin goes on whichever
1770
+ side actually faces the list \u2014 the "before" label (always the first
1771
+ child) gets space below it, the "after" one (always right after the
1772
+ container, extra option row or not) gets space above it \u2014 so both
1773
+ sit the same distance from the chips regardless of which one it is. */
1774
+ .magicfeedback-rating-number-scale-label-block {
1775
+ font-size: var(--mf-font-size-sm);
1776
+ font-weight: var(--mf-font-weight-semibold);
1777
+ color: var(--mf-text-secondary);
1778
+ text-align: center;
1779
+ }
1780
+
1781
+ .magicfeedback-rating-number-scale-label-block:first-child {
1782
+ margin-bottom: var(--mf-space-sm);
1783
+ }
1784
+
1785
+ .magicfeedback-rating-number-container + .magicfeedback-rating-number-scale-label-block {
1786
+ margin-top: var(--mf-space-sm);
1787
+ }
1788
+
1789
+ .magicfeedback-rating-number-option {
1790
+ display: flex;
1791
+ }
1792
+
1793
+ .magicfeedback-rating-number-option-label-container {
1794
+ position: relative;
1795
+ width: 100%;
1796
+ display: flex;
1797
+ cursor: pointer;
1798
+ }
1799
+
1800
+ .magicfeedback-rating-number-option-label-container input[type="radio"] {
1801
+ position: absolute;
1802
+ opacity: 0;
1803
+ width: 0;
1804
+ height: 0;
1805
+ }
1806
+
1807
+ .magicfeedback-rating-number-value {
1808
+ display: flex;
1809
+ align-items: center;
1810
+ justify-content: center;
1811
+ width: 100%;
1812
+ transition: var(--mf-transition-fast);
1813
+ color: var(--mf-text-secondary);
1814
+ font-weight: var(--mf-font-weight-semibold);
1815
+ }
1816
+
1817
+ /* Row: individual outlined chips in the survey's own primary color \u2014
1818
+ var(--mf-primary) so whatever brand color a given survey sets carries
1819
+ through automatically, no color hardcoded here. */
1820
+ .magicfeedback-rating-number-container-row,
1821
+ .magicfeedback-rating-number-container-row-reverse {
1822
+ flex-wrap: nowrap;
1823
+ gap: var(--mf-space-sm);
1824
+ }
1825
+
1826
+ .magicfeedback-rating-number-option-row,
1827
+ .magicfeedback-rating-number-option-row-reverse {
1828
+ flex: 1 1 0;
1829
+ min-width: 0;
1830
+ }
1831
+
1832
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
1833
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
1834
+ min-height: 56px;
1835
+ padding: var(--mf-space-sm);
1836
+ border: 2px solid var(--mf-primary-border);
1837
+ border-radius: var(--mf-radius-md);
1838
+ background: var(--mf-bg-secondary);
1839
+ color: var(--mf-primary);
1840
+ font-size: var(--mf-font-size-lg);
1841
+ font-weight: var(--mf-font-weight-bold);
1842
+ }
1843
+
1844
+ /* More than 6 options (e.g. a 0-10 NPS scale): still one row, never
1845
+ wraps \u2014 but scaled down on purpose, so it reads as a compact chip
1846
+ rather than the same 56px button stretched thin. */
1847
+ .magicfeedback-rating-number-container-row--dense .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
1848
+ .magicfeedback-rating-number-container-row--dense .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
1849
+ min-height: 36px;
1850
+ padding: var(--mf-space-xs);
1851
+ border-radius: var(--mf-radius-sm);
1852
+ font-size: 0.8rem;
1853
+ }
1854
+
1855
+ @media (hover: hover) {
1856
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value,
1857
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
1858
+ background: var(--mf-primary-light);
1859
+ }
1860
+ }
1861
+
1862
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1863
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1864
+ color: #fff;
1865
+ background-color: var(--mf-primary);
1866
+ box-shadow: var(--mf-shadow-md);
1867
+ }
1868
+
1869
+ /* Extra option: always its own row below the scale, and styled like every
1870
+ other chip now \u2014 "doesn't apply" is still not a point on the 1..N
1871
+ continuum, but it no longer needs a different border style to say so. */
1872
+ .magicfeedback-rating-number-extra-row {
1873
+ display: flex;
1874
+ justify-content: center;
1875
+ margin-top: var(--mf-space-sm);
1876
+ }
1877
+
1878
+ .magicfeedback-rating-number-option--extra {
1879
+ flex: 0 1 auto;
1880
+ }
1881
+
1882
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container {
1883
+ width: auto;
1884
+ }
1885
+
1886
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-value {
1887
+ min-height: 36px;
1888
+ padding: 0 var(--mf-space-md);
1889
+ border: 2px solid var(--mf-primary-border);
1890
+ border-radius: var(--mf-radius-md);
1891
+ background: var(--mf-bg-secondary);
1892
+ color: var(--mf-primary);
1893
+ font-size: var(--mf-font-size-sm);
1894
+ }
1895
+
1896
+ @media (hover: hover) {
1897
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
1898
+ background: var(--mf-primary-light);
1899
+ }
1900
+ }
1901
+
1902
+ .magicfeedback-rating-number-option--extra .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1903
+ color: #fff;
1904
+ background-color: var(--mf-primary);
1905
+ box-shadow: var(--mf-shadow-md);
1906
+ }
1907
+
1908
+ /* Column: the same separated chips as row, just stacked \u2014 each option is
1909
+ its own outlined chip with a gap between them, not one shared box. */
1910
+ .magicfeedback-rating-number-container-column,
1911
+ .magicfeedback-rating-number-container-column-reverse {
1912
+ gap: var(--mf-space-sm);
1913
+ }
1914
+
1915
+ .magicfeedback-rating-number-option-column,
1916
+ .magicfeedback-rating-number-option-column-reverse {
1917
+ width: 100%;
1918
+ }
1919
+
1920
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-value,
1921
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-value {
1922
+ justify-content: flex-start;
1923
+ gap: var(--mf-space-sm);
1924
+ min-height: 48px;
1925
+ padding: var(--mf-space-sm) var(--mf-space-md);
1926
+ border: 2px solid var(--mf-primary-border);
1927
+ border-radius: var(--mf-radius-md);
1928
+ background: var(--mf-bg-secondary);
1929
+ color: var(--mf-primary);
1930
+ }
1931
+
1932
+ @media (hover: hover) {
1933
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value,
1934
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container:hover .magicfeedback-rating-number-value {
1935
+ background: var(--mf-primary-light);
1936
+ }
1937
+ }
1938
+
1939
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1940
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1941
+ color: #fff;
1942
+ background-color: var(--mf-primary);
1943
+ box-shadow: var(--mf-shadow-md);
1944
+ }
1945
+
1946
+ .magicfeedback-rating-number-value-num {
1947
+ font-weight: var(--mf-font-weight-bold);
1948
+ }
1949
+
1950
+ /* Column with per-option text: a min-width so "1".."9" and "10" line up,
1951
+ with the label text starting at the same x. Skipped entirely when the
1952
+ column has no per-option text at all (--bare below) \u2014 with nothing to
1953
+ align against, the same left-shift bug from row mode would resurface. */
1954
+ .magicfeedback-rating-number-container-column:not(.magicfeedback-rating-number-container-column--bare) .magicfeedback-rating-number-value-num,
1955
+ .magicfeedback-rating-number-container-column-reverse:not(.magicfeedback-rating-number-container-column--bare) .magicfeedback-rating-number-value-num {
1956
+ flex: none;
1957
+ min-width: 1.4em;
1958
+ }
1959
+
1960
+ /* Column, no per-option text at all (only min/max, or nothing): a bare
1961
+ numbered list has nothing to left-align against, so center each
1962
+ number instead of stranding it on the left with blank space beside it. */
1963
+ .magicfeedback-rating-number-container-column--bare .magicfeedback-rating-number-value {
1964
+ justify-content: center;
1965
+ }
1966
+
1967
+ .magicfeedback-rating-number-value-label {
1968
+ font-weight: var(--mf-font-weight-medium);
1969
+ }
1970
+
1971
+ .magicfeedback-rating-number-option-column .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value,
1972
+ .magicfeedback-rating-number-option-column-reverse .magicfeedback-rating-number-option-label-container input[type="radio"]:checked + .magicfeedback-rating-number-value {
1973
+ color: #fff;
1974
+ background-color: var(--mf-primary);
1975
+ }
1976
+
1977
+ /* Star Rating */
1978
+ .magicfeedback-rating-star-container {
1979
+ justify-content: center;
1980
+ }
1981
+
1982
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star {
1983
+ font-size: 40px;
1984
+ color: var(--mf-border);
1985
+ cursor: pointer;
1986
+ margin: 0 var(--mf-space-xs);
1987
+ transition: var(--mf-transition-fast);
1988
+ }
1989
+
1990
+ @media (hover: hover) {
1991
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover,
1992
+ .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover ~ span {
1993
+ color: #fbbf24;
1994
+ transform: scale(1.1);
1995
+ }
1996
+ }
1997
+
1998
+ .magicfeedback-rating-star-selected {
1999
+ color: #fbbf24 !important;
2000
+ }
2001
+
2002
+ /* ========================================
2003
+ MULTIPLE CHOICE WITH IMAGES
2004
+ ======================================== */
2005
+ .magicfeedback-multiple-choice-image-option {
2006
+ display: flex;
2007
+ border-radius: var(--mf-radius-md);
2008
+ overflow: hidden;
2009
+ transition: var(--mf-transition-fast);
2010
+ }
2011
+
2012
+ .magicfeedback-image-option-label-container {
2013
+ cursor: pointer;
2014
+ border-radius: var(--mf-radius-md);
2015
+ overflow: hidden;
2016
+ transition: var(--mf-transition-fast);
2017
+ }
2018
+
2019
+ .magicfeedback-image-option-label-container input[type="radio"],
2020
+ .magicfeedback-image-option-label-container input[type="checkbox"] {
2021
+ position: absolute;
2022
+ opacity: 0;
2023
+ width: 0;
2024
+ height: 0;
2025
+ }
2026
+
2027
+ .magicfeedback-image-option-label-container img {
2028
+ width: 100%;
2029
+ height: auto;
2030
+ display: block;
2031
+ border: 2px solid var(--mf-border);
2032
+ border-radius: var(--mf-radius-md);
2033
+ transition: var(--mf-transition-fast);
2034
+ }
2035
+
2036
+ @media (hover: hover) {
2037
+ .magicfeedback-image-option-label-container:hover img {
2038
+ border-color: var(--mf-primary);
2039
+ box-shadow: var(--mf-shadow-md);
2040
+ }
2041
+ }
2042
+
2043
+ .magicfeedback-image-option-label-container input:checked + img {
2044
+ border-color: var(--mf-primary);
2045
+ box-shadow: 0 0 0 3px var(--mf-primary-light);
2046
+ }
2047
+
2048
+ /* ========================================
2049
+ MATRIX QUESTIONS
2050
+ ======================================== */
2051
+ .magicfeedback-multi-question-matrix-container {
2052
+ width: 100%;
2053
+ overflow-x: auto;
2054
+ border-radius: var(--mf-radius-md);
2055
+ /* the layout follows the space the survey gets (a pop-in, a sidebar),
2056
+ not the size of the window */
2057
+ container-type: inline-size;
2058
+ }
2059
+
2060
+ .magicfeedback-multi-question-matrix-table {
2061
+ width: 100%;
2062
+ border-collapse: separate;
2063
+ border-spacing: 0 var(--mf-space-xs);
2064
+ }
2065
+
2066
+ .magicfeedback-multi-question-matrix-table th {
2067
+ padding: var(--mf-space-md);
2068
+ text-align: center;
2069
+ font-size: var(--mf-font-size-sm);
2070
+ font-weight: 500;
2071
+ color: var(--mf-text-secondary);
2072
+ }
2073
+
2074
+ .magicfeedback-multi-question-matrix-row-tr {
2075
+ background-color: var(--mf-bg-primary);
2076
+ border-radius: var(--mf-radius-md);
2077
+ transition: var(--mf-transition-fast);
2078
+ }
2079
+
2080
+ .magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
2081
+ background-color: var(--mf-bg-secondary);
2082
+ }
2083
+
2084
+ @media (hover: hover) {
2085
+ .magicfeedback-multi-question-matrix-row-tr:hover {
2086
+ background-color: var(--mf-bg-hover);
2087
+ box-shadow: var(--mf-shadow-sm);
2088
+ }
2089
+ }
2090
+
2091
+ .magicfeedback-multi-question-matrix-table td {
2092
+ padding: var(--mf-space-md);
2093
+ text-align: center;
2094
+ }
2095
+
2096
+ .magicfeedback-multi-question-matrix-label {
2097
+ text-align: start;
2098
+ font-size: var(--mf-font-size-base);
2099
+ color: var(--mf-text-primary);
2100
+ }
2101
+
2102
+ .magicfeedback-multi-question-matrix-table input[type="radio"] {
2103
+ width: 20px;
2104
+ height: 20px;
2105
+ cursor: pointer;
2106
+ accent-color: var(--mf-primary);
2107
+ }
2108
+
2109
+ .magicfeedback-multi-question-matrix-question {
2110
+ min-width: 200px;
2111
+ padding: 10px;
2112
+ }
2113
+
2114
+ /* the column header names the option in a table; the per-cell label is for
2115
+ screen readers until the rows stack */
2116
+ .magicfeedback-multi-question-matrix-option-label {
2117
+ position: absolute;
2118
+ width: 1px;
2119
+ height: 1px;
2120
+ overflow: hidden;
2121
+ clip: rect(0, 0, 0, 0);
2122
+ white-space: nowrap;
2123
+ }
2124
+
2125
+ /* narrow container: every row becomes its own question with the options
2126
+ stacked underneath, instead of a table cut off at the side */
2127
+ @container (max-width: 599px) {
2128
+ .magicfeedback-multi-question-matrix-table,
2129
+ .magicfeedback-multi-question-matrix-table tbody,
2130
+ .magicfeedback-multi-question-matrix-table tr,
2131
+ .magicfeedback-multi-question-matrix-table td {
2132
+ display: block;
2133
+ width: 100%;
2134
+ }
2135
+
2136
+ .magicfeedback-multi-question-matrix-table thead {
2137
+ display: none;
2138
+ }
2139
+
2140
+ .magicfeedback-multi-question-matrix-row-tr,
2141
+ .magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
2142
+ margin-bottom: var(--mf-space-lg);
2143
+ background: transparent;
2144
+ box-shadow: none;
2145
+ }
2146
+
2147
+ @media (hover: hover) {
2148
+ .magicfeedback-multi-question-matrix-row-tr:hover {
2149
+ margin-bottom: var(--mf-space-lg);
2150
+ background: transparent;
2151
+ box-shadow: none;
2152
+ }
2153
+ }
2154
+
2155
+ .magicfeedback-multi-question-matrix-table td.magicfeedback-multi-question-matrix-question {
2156
+ min-width: 0;
2157
+ padding: 0 0 var(--mf-space-sm);
2158
+ text-align: start;
2159
+ }
2160
+
2161
+ .magicfeedback-multi-question-matrix-question .magicfeedback-multi-question-matrix-label {
2162
+ font-weight: 600;
2163
+ }
2164
+
2165
+ .magicfeedback-multi-question-matrix-table td.magicfeedback-multi-question-matrix-option {
2166
+ display: flex;
2167
+ align-items: center;
2168
+ gap: var(--mf-space-sm);
2169
+ margin-bottom: var(--mf-space-sm);
2170
+ padding: 0 var(--mf-space-md);
2171
+ text-align: start;
2172
+ background: var(--mf-bg-secondary);
2173
+ border: 2px solid var(--mf-border);
2174
+ border-radius: var(--mf-radius-md);
2175
+ cursor: pointer;
2176
+ transition: var(--mf-transition-fast);
2177
+ }
2178
+
2179
+ @media (hover: hover) {
2180
+ .magicfeedback-multi-question-matrix-option:hover {
2181
+ border-color: var(--mf-primary-border);
2182
+ }
2183
+ }
2184
+
2185
+ .magicfeedback-multi-question-matrix-option:has(input:checked) {
2186
+ border-color: var(--mf-primary);
2187
+ background: var(--mf-primary-light);
2188
+ }
2189
+
2190
+ .magicfeedback-multi-question-matrix-table .magicfeedback-multi-question-matrix-option input[type="radio"] {
2191
+ flex-shrink: 0;
2192
+ }
2193
+
2194
+ /* the whole card is the click target */
2195
+ .magicfeedback-multi-question-matrix-option-label {
2196
+ position: static;
2197
+ flex: 1;
2198
+ width: auto;
2199
+ height: auto;
2200
+ padding: var(--mf-space-md) 0;
2201
+ overflow: visible;
2202
+ clip: auto;
2203
+ white-space: normal;
2204
+ font-size: var(--mf-font-size-base);
2205
+ color: var(--mf-text-primary);
2206
+ cursor: pointer;
2207
+ }
2208
+ }
2209
+
2210
+ /* ========================================
2211
+ MAXDIFF (BEST\u2013WORST)
2212
+ ======================================== */
2213
+ .magicfeedback-max-diff {
2214
+ /* "least" gets its own hue, apart from the brand color "most" uses; dark
2215
+ enough to read as header text and to hold the white center dot */
2216
+ --mf-max-diff-worst: #b45309;
2217
+ width: 100%;
2218
+ }
2219
+
2220
+ .magicfeedback-max-diff-container {
2221
+ width: 100%;
2222
+ /* the layout follows the space the survey gets (a pop-in, a sidebar),
2223
+ not the size of the window */
2224
+ container-type: inline-size;
2225
+ }
2226
+
2227
+ .magicfeedback-max-diff-progress {
2228
+ display: flex;
2229
+ align-items: center;
2230
+ gap: var(--mf-space-md);
2231
+ margin-bottom: var(--mf-space-lg);
2232
+ }
2233
+
2234
+ .magicfeedback-max-diff-progress-label {
2235
+ font-size: 0.8125rem;
2236
+ font-weight: var(--mf-font-weight-bold);
2237
+ letter-spacing: 0.04em;
2238
+ text-transform: uppercase;
2239
+ white-space: nowrap;
2240
+ color: var(--mf-text-secondary);
2241
+ }
2242
+
2243
+ .magicfeedback-max-diff-progress-track {
2244
+ flex: 1;
2245
+ height: 6px;
2246
+ overflow: hidden;
2247
+ border-radius: var(--mf-radius-full);
2248
+ background: var(--mf-border);
2249
+ }
2250
+
2251
+ .magicfeedback-max-diff-progress-fill {
2252
+ display: block;
2253
+ height: 100%;
2254
+ border-radius: var(--mf-radius-full);
2255
+ background: var(--mf-primary);
2256
+ }
2257
+
2258
+ .magicfeedback-max-diff-table {
2259
+ width: 100%;
2260
+ border-collapse: collapse;
2261
+ }
2262
+
2263
+ .magicfeedback-max-diff-head,
2264
+ .magicfeedback-max-diff-head-spacer {
2265
+ border-bottom: 1px solid var(--mf-border);
2266
+ }
2267
+
2268
+ .magicfeedback-max-diff-head {
2269
+ width: 11rem;
2270
+ padding: 0 var(--mf-space-sm) var(--mf-space-sm);
2271
+ font-size: 0.8125rem;
2272
+ font-weight: var(--mf-font-weight-extrabold);
2273
+ letter-spacing: 0.04em;
2274
+ text-transform: uppercase;
2275
+ text-align: center;
2276
+ vertical-align: bottom;
2277
+ }
2278
+
2279
+ .magicfeedback-max-diff-head-best {
2280
+ color: var(--mf-primary);
2281
+ }
2282
+
2283
+ .magicfeedback-max-diff-head-worst {
2284
+ color: var(--mf-max-diff-worst);
2285
+ }
2286
+
2287
+ .magicfeedback-max-diff-head-label {
2288
+ display: inline-flex;
2289
+ align-items: center;
2290
+ gap: 6px;
2291
+ }
2292
+
2293
+ .magicfeedback-max-diff-row {
2294
+ transition: background-color 0.15s ease;
2295
+ }
2296
+
2297
+ .magicfeedback-max-diff-row > * {
2298
+ border-bottom: 1px solid var(--mf-border);
2299
+ }
2300
+
2301
+ .magicfeedback-max-diff-row:has(.magicfeedback-max-diff-best:checked) {
2302
+ background-color: color-mix(in srgb, var(--mf-primary) 8%, transparent);
2303
+ }
2304
+
2305
+ .magicfeedback-max-diff-row:has(.magicfeedback-max-diff-worst:checked) {
2306
+ background-color: color-mix(in srgb, var(--mf-max-diff-worst) 8%, transparent);
2307
+ }
2308
+
2309
+ .magicfeedback-max-diff-item {
2310
+ padding: var(--mf-space-md) var(--mf-space-sm);
2311
+ font-size: 1.0625rem;
2312
+ font-weight: var(--mf-font-weight-semibold);
2313
+ line-height: 1.4;
2314
+ text-align: center;
2315
+ color: var(--mf-text-primary);
2316
+ }
2317
+
2318
+ .magicfeedback-max-diff-row:has(input:checked) .magicfeedback-max-diff-item {
2319
+ font-weight: var(--mf-font-weight-extrabold);
2320
+ }
2321
+
2322
+ .magicfeedback-max-diff-cell {
2323
+ padding: 0;
2324
+ }
2325
+
2326
+ /* the whole cell is the click target */
2327
+ .magicfeedback-max-diff-pick {
2328
+ display: flex;
2329
+ align-items: center;
2330
+ justify-content: center;
2331
+ min-height: 64px;
2332
+ cursor: pointer;
2333
+ }
2334
+
2335
+ .magicfeedback-max-diff-input {
2336
+ appearance: none;
2337
+ -webkit-appearance: none;
2338
+ flex-shrink: 0;
2339
+ width: 26px;
2340
+ height: 26px;
2341
+ margin: 0;
2342
+ border: 2px solid color-mix(in srgb, var(--mf-text-secondary) 80%, white);
2343
+ border-radius: var(--mf-radius-full);
2344
+ background: var(--mf-bg-secondary);
2345
+ cursor: pointer;
2346
+ transition: var(--mf-transition-fast);
2347
+ }
2348
+
2349
+ @media (hover: hover) {
2350
+ .magicfeedback-max-diff-pick:hover .magicfeedback-max-diff-input {
2351
+ transform: scale(1.08);
2352
+ }
2353
+ }
2354
+
2355
+ .magicfeedback-max-diff-best:checked {
2356
+ border-color: var(--mf-primary);
2357
+ background: radial-gradient(circle, #FFFFFF 0 4px, var(--mf-primary) 4.5px);
2358
+ }
2359
+
2360
+ .magicfeedback-max-diff-worst:checked {
2361
+ border-color: var(--mf-max-diff-worst);
2362
+ background: radial-gradient(circle, #FFFFFF 0 4px, var(--mf-max-diff-worst) 4.5px);
2363
+ }
2364
+
2365
+ .magicfeedback-max-diff-input:focus-visible {
2366
+ outline: 3px solid var(--mf-primary-border);
2367
+ outline-offset: 3px;
2368
+ }
2369
+
2370
+ /* narrow container: same table, slimmer pick columns and the header icon
2371
+ stacked over its label */
2372
+ @container (max-width: 599px) {
2373
+ .magicfeedback-max-diff-head {
2374
+ width: 4.75rem;
2375
+ padding-inline: 2px;
2376
+ font-size: 0.6875rem;
2377
+ }
2378
+
2379
+ .magicfeedback-max-diff-head-label {
2380
+ flex-direction: column;
2381
+ gap: 2px;
2382
+ }
2383
+
2384
+ .magicfeedback-max-diff-item {
2385
+ padding-inline: 4px;
2386
+ font-size: var(--mf-font-size-base);
2387
+ }
2388
+
2389
+ .magicfeedback-max-diff-pick {
2390
+ min-height: 68px;
2391
+ }
2392
+
2393
+ .magicfeedback-max-diff-input {
2394
+ width: 28px;
2395
+ height: 28px;
2396
+ }
2397
+ }
2398
+
2399
+ /* ========================================
2400
+ PRIORITY LIST
2401
+ ======================================== */
2402
+ .magicfeedback-priority-list-item {
2403
+ display: flex;
2404
+ align-items: center;
2405
+ justify-content: space-between;
2406
+ padding: var(--mf-space-md);
2407
+ margin: var(--mf-space-sm) 0;
2408
+ background-color: var(--mf-bg-primary);
2409
+ border: 1.5px solid var(--mf-border);
2410
+ border-radius: var(--mf-radius-md);
2411
+ transition: var(--mf-transition-fast);
2412
+ }
2413
+
2414
+ @media (hover: hover) {
2415
+ .magicfeedback-priority-list-item:hover {
2416
+ box-shadow: var(--mf-shadow-sm);
2417
+ border-color: var(--mf-primary);
2418
+ }
2419
+ }
2420
+
2421
+ .magicfeedback-priority-list-item-label {
2422
+ flex: 1;
2423
+ font-size: var(--mf-font-size-base);
2424
+ text-align: start;
2425
+ color: var(--mf-text-primary);
2426
+ margin: 0;
2427
+ }
2428
+
2429
+ .magicfeedback-priority-list-arrow-up,
2430
+ .magicfeedback-priority-list-arrow-down {
2431
+ padding: var(--mf-space-xs);
2432
+ font-size: var(--mf-font-size-lg);
2433
+ color: var(--mf-text-secondary);
2434
+ cursor: pointer;
2435
+ transition: var(--mf-transition-fast);
2436
+ user-select: none;
2437
+ }
2438
+
2439
+ @media (hover: hover) {
2440
+ .magicfeedback-priority-list-arrow-up:hover,
2441
+ .magicfeedback-priority-list-arrow-down:hover {
2442
+ color: var(--mf-primary);
2443
+ transform: scale(1.2);
2444
+ }
2445
+ }
2446
+
2447
+ /* ========================================
2448
+ POINT SYSTEM
2449
+ ======================================== */
2450
+ .magicfeedback-point-system-item {
2451
+ display: flex;
2452
+ align-items: center;
2453
+ justify-content: space-between;
2454
+ padding: var(--mf-space-md);
2455
+ margin: var(--mf-space-sm) 0;
2456
+ background-color: var(--mf-bg-primary);
2457
+ border: 1.5px solid var(--mf-border);
2458
+ border-radius: var(--mf-radius-md);
2459
+ min-height: 45px;
2460
+ }
2461
+
2462
+ .magicfeedback-point-system-item label {
2463
+ flex: 1;
2464
+ font-size: var(--mf-font-size-base);
2465
+ color: var(--mf-text-primary);
2466
+ margin: 0;
2467
+ }
2468
+
2469
+ .magicfeedback-point-system-input-container {
2470
+ display: flex;
2471
+ align-items: center;
2472
+ gap: var(--mf-space-sm);
2473
+ }
2474
+
2475
+ .magicfeedback-point-system-item input {
2476
+ width: 80px;
2477
+ min-width: 80px;
2478
+ padding: var(--mf-space-sm);
2479
+ text-align: center;
2480
+ font-size: var(--mf-font-size-base);
2481
+ border: 1.5px solid var(--mf-border);
2482
+ border-radius: var(--mf-radius-md);
2483
+ margin: 0;
2484
+ }
2485
+
2486
+ .magicfeedback-point-system-total {
2487
+ display: flex;
2488
+ justify-content: flex-end;
2489
+ margin-top: var(--mf-space-md);
2490
+ font-size: var(--mf-font-size-base);
2491
+ font-weight: 600;
2492
+ color: var(--mf-text-primary);
2493
+ }
2494
+
2495
+ /* ========================================
2496
+ CONSENT
2497
+ ======================================== */
2498
+ .magicfeedback-consent-container {
2499
+ display: flex;
2500
+ flex-direction: row;
2501
+ align-items: center;
2502
+ gap: var(--mf-space-sm);
2503
+ padding: var(--mf-space-md);
2504
+ background-color: var(--mf-bg-secondary);
2505
+ border-radius: var(--mf-radius-md);
2506
+ margin: var(--mf-space-md) 0;
2507
+ }
2508
+
2509
+ .magicfeedback-consent-container input[type="checkbox"] {
2510
+ margin-top: 2px;
2511
+ flex-shrink: 0;
2512
+ accent-color: var(--mf-primary);
2513
+ }
2514
+
2515
+ .magicfeedback-consent-container label {
2516
+ flex: 1;
2517
+ font-size: var(--mf-font-size-sm);
2518
+ text-align: start;
2519
+ color: var(--mf-text-secondary);
2520
+ line-height: var(--mf-line-height);
2521
+ cursor: pointer;
2522
+ margin-bottom: 0;
2523
+ }
2524
+
2525
+ /* ========================================
2526
+ ACTION BUTTONS
2527
+ ======================================== */
2528
+ .magicfeedback-action-container {
2529
+ display: flex;
2530
+ align-items: center;
2531
+ justify-content: space-between;
2532
+ gap: var(--mf-space-md);
2533
+ margin-top: var(--mf-space-xl);
2534
+ padding-top: var(--mf-space-lg);
2535
+ border-top: 1px solid var(--mf-border);
2536
+ }
2537
+
2538
+ .magicfeedback-submit {
2539
+ padding: 0.8rem 1.6rem;
2540
+ font-size: var(--mf-font-size-base);
2541
+ font-weight: 800;
2542
+ color: #FFFFFF;
2543
+ background-color: var(--mf-primary);
2544
+ border: 2px solid var(--mf-primary);
2545
+ border-radius: var(--mf-radius-full);
2546
+ cursor: pointer;
2547
+ transition: var(--mf-transition-fast);
2548
+ box-shadow: var(--mf-shadow-md);
2549
+ }
2550
+
2551
+ @media (hover: hover) {
2552
+ .magicfeedback-submit:hover {
2553
+ background-color: var(--mf-primary-hover);
2554
+ box-shadow: var(--mf-shadow-lg);
2555
+ transform: translateY(-2px);
2556
+ }
2557
+ }
2558
+
2559
+ .magicfeedback-submit:active {
2560
+ transform: translateY(0);
2561
+ box-shadow: var(--mf-shadow-sm);
2562
+ }
2563
+
2564
+ .magicfeedback-submit:disabled {
2565
+ opacity: 0.5;
2566
+ cursor: not-allowed;
2567
+ transform: none;
2568
+ }
2569
+
2570
+ .magicfeedback-back {
2571
+ padding: 0.65rem 1rem;
2572
+ font-size: var(--mf-font-size-base);
2573
+ font-weight: 700;
2574
+ color: var(--mf-primary);
2575
+ background-color: var(--mf-bg-secondary);
2576
+ border: 2px solid var(--mf-border);
2577
+ border-radius: var(--mf-radius-full);
2578
+ cursor: pointer;
2579
+ transition: var(--mf-transition-fast);
2580
+ }
2581
+
2582
+ @media (hover: hover) {
2583
+ .magicfeedback-back:hover {
2584
+ border-color: var(--mf-primary);
2585
+ background-color: var(--mf-bg-hover);
2586
+ }
2587
+ }
2588
+
2589
+ /* hidden on the first page; keep the submit button on the right */
2590
+ .magicfeedback-back[hidden] {
2591
+ display: none;
2592
+ }
2593
+
2594
+ .magicfeedback-action-container .magicfeedback-submit {
2595
+ margin-left: auto;
2596
+ }
2597
+
2598
+ /* ========================================
2599
+ SKIP & COUNTER
2600
+ ======================================== */
2601
+ .magicfeedback-skip-container {
2602
+ display: flex;
2603
+ align-items: center;
2604
+ gap: var(--mf-space-xs);
2605
+ padding: 0;
2606
+ margin: 0;
2607
+ font-size: var(--mf-font-size-sm);
2608
+ color: var(--mf-text-muted);
2609
+ background: transparent;
2610
+ border: none;
2611
+ cursor: pointer;
2612
+ transition: var(--mf-transition-fast);
2613
+ }
2614
+
2615
+ @media (hover: hover) {
2616
+ .magicfeedback-skip-container:hover {
2617
+ color: var(--mf-primary);
2618
+ }
2619
+ }
2620
+
2621
+ .magicfeedback-skip-container input[type="checkbox"] {
2622
+ margin: 0;
2623
+ cursor: pointer;
2624
+ accent-color: var(--mf-primary);
2625
+ }
2626
+
2627
+ .magicfeedback-counter {
2628
+ display: flex;
2629
+ justify-content: flex-end;
2630
+ margin-top: var(--mf-space-md);
2631
+ font-size: var(--mf-font-size-sm);
2632
+ color: var(--mf-text-muted);
2633
+ }
2634
+
2635
+ /* ========================================
2636
+ MODAL STYLES
2637
+ ======================================== */
2638
+ /* Modal backdrop */
2639
+ .magicfeedback-modal-backdrop {
2640
+ position: fixed;
2641
+ top: 0;
2642
+ left: 0;
2643
+ width: 100vw;
2644
+ height: 100vh;
2645
+ background: rgba(0,0,0,0.4);
2646
+ display: none; /* toggled to flex when open */
2647
+ align-items: center;
2648
+ justify-content: center;
2649
+ z-index: 9999;
2650
+ }
2651
+
2652
+ /* Modal container */
2653
+ .magicfeedback-modal {
2654
+ background: #fff;
2655
+ border-radius: 8px;
2656
+ box-shadow: 0 8px 24px rgba(0,0,0,0.2);
2657
+ max-width: 520px;
2658
+ width: 90%;
2659
+ max-height: 80vh;
2660
+ /* Flex column so the options list scrolls while the actions footer
2661
+ (counter + confirm button) stays pinned and always visible. */
2662
+ display: flex;
2663
+ flex-direction: column;
2664
+ overflow: hidden;
2665
+ padding: 16px;
2666
+ position: relative;
2667
+ /* Portalled to document.body (see renderPriorityList.ts) to escape the
2668
+ host page's overflow/z-index \u2014 so it never inherits
2669
+ .magicfeedback-container's neutral text color and instead inherits
2670
+ whatever color the host page's own <body> happens to set. Needs its
2671
+ own explicit baseline rather than relying on that inheritance. */
2672
+ color: var(--mf-text-primary);
2673
+ }
2674
+
2675
+ /* Modal actions */
2676
+ .magicfeedback-modal-actions {
2677
+ display: flex;
2678
+ justify-content: flex-end;
2679
+ gap: 8px;
2680
+ margin-top: 12px;
2681
+ flex-shrink: 0;
2682
+ }
2683
+
2684
+ .magicfeedback-modal-counter {
2685
+ margin-inline-end: auto;
2686
+ display: flex;
2687
+ align-items: center;
2688
+ font-size: 14px;
2689
+ color: var(--mf-text-secondary);
2690
+ }
2691
+
2692
+ /* Modal list */
2693
+ .magicfeedback-modal-list {
2694
+ display: flex;
2695
+ flex-direction: column;
2696
+ gap: 8px;
2697
+ /* Scrollable area; footer stays fixed below it. */
2698
+ flex: 1 1 auto;
2699
+ overflow-y: auto;
2700
+ min-height: 0;
2701
+ }
2702
+
2703
+ .magicfeedback-modal-row {
2704
+ display: flex;
2705
+ align-items: center;
2706
+ gap: 10px;
2707
+ cursor: pointer;
2708
+ }
2709
+
2710
+ /* Priority list header */
2711
+ .magicfeedback-priority-list-header {
2712
+ display: flex;
2713
+ align-items: center;
2714
+ justify-content: space-between;
2715
+ gap: 12px;
2716
+ margin-bottom: 8px;
2717
+ }
2718
+
2719
+ .magicfeedback-priority-list-reorder {
2720
+ margin-top: 8px;
2721
+ }
2722
+
2723
+ .magicfeedback-priority-list-list {
2724
+ padding: 0;
2725
+ list-style: none;
2726
+ }
2727
+
2728
+ .magicfeedback-priority-list-item {
2729
+ display: flex;
2730
+ justify-content: space-between;
2731
+ align-items: center;
2732
+ margin: 5px 0;
2733
+ }
2734
+
2735
+ .magicfeedback-priority-list-item-label {
2736
+ font-size: 15px;
2737
+ }
2738
+
2739
+ .magicfeedback-priority-list-arrows {
2740
+ display: flex;
2741
+ align-items: center;
2742
+ gap: 6px;
2743
+ }
2744
+
2745
+ /* Buttons */
2746
+ .magicfeedback-button {
2747
+ appearance: none;
2748
+ border: 2px solid var(--mf-border);
2749
+ border-radius: var(--mf-radius-full);
2750
+ background: var(--mf-bg-secondary);
2751
+ color: var(--mf-text-primary);
2752
+ padding: 0.6rem 1rem;
2753
+ font-size: 14px;
2754
+ font-weight: 700;
2755
+ cursor: pointer;
2756
+ box-shadow: var(--mf-shadow-sm);
2757
+ }
2758
+
2759
+ @media (hover: hover) {
2760
+ .magicfeedback-button:hover {
2761
+ background: var(--mf-bg-hover);
2762
+ border-color: var(--mf-primary);
2763
+ }
2764
+ }
2765
+
2766
+ .magicfeedback-button:active {
2767
+ transform: translateY(1px);
2768
+ }
2769
+
2770
+ .magicfeedback-button-primary {
2771
+ border-color: var(--mf-primary);
2772
+ background: var(--mf-primary);
2773
+ color: #fff;
2774
+ box-shadow: var(--mf-shadow-md);
2775
+ }
2776
+
2777
+ @media (hover: hover) {
2778
+ .magicfeedback-button-primary:hover {
2779
+ background: var(--mf-primary-hover);
2780
+ }
2781
+ }
2782
+
2783
+ .magicfeedback-button-primary:active {
2784
+ background: var(--mf-primary-hover);
2785
+ }
2786
+
2787
+ /* Warning flash */
2788
+ .magicfeedback-warning {
2789
+ color: #C70039;
2790
+ }
2791
+
2792
+ /* Start message button */
2793
+ .magicfeedback-start-message-button {
2794
+ appearance: none;
2795
+ border: 2px solid var(--mf-primary);
2796
+ border-radius: var(--mf-radius-full);
2797
+ background: var(--mf-primary);
2798
+ color: #fff;
2799
+ padding: 0.8rem 1.4rem;
2800
+ font-size: 15px;
2801
+ font-weight: 800;
2802
+ cursor: pointer;
2803
+ box-shadow: var(--mf-shadow-md);
2804
+ }
2805
+
2806
+ @media (hover: hover) {
2807
+ .magicfeedback-start-message-button:hover {
2808
+ background: var(--mf-primary-hover);
2809
+ }
2810
+ }
2811
+
2812
+ /* ========================================
2813
+ RESPONSIVE DESIGN
2814
+ ======================================== */
2815
+ @media (max-width: 768px) {
2816
+ :root {
2817
+ --mf-space-lg: 1.25rem;
2818
+ --mf-space-xl: 1.5rem;
2819
+ }
2820
+
2821
+ .magicfeedback-container {
2822
+ padding: 12px;
2823
+ border-radius: var(--mf-radius-md);
2824
+ }
2825
+
2826
+ .magicfeedback-form {
2827
+ padding: 14px;
2828
+ border-radius: var(--mf-radius-md);
2829
+ }
2830
+
2831
+ .magicfeedback-div {
2832
+ padding: 12px;
2833
+ gap: var(--mf-space-lg)
2834
+ }
2835
+
2836
+ .magicfeedback-label {
2837
+ font-size: var(--mf-font-size-base);
2838
+ }
2839
+
2840
+ .deepdots-popup input[type="date"],
2841
+ .deepdots-popup input[type="text"],
2842
+ .deepdots-popup input[type="number"],
2843
+ .deepdots-popup input[type="email"],
2844
+ .deepdots-popup input[type="password"],
2845
+ .deepdots-popup textarea,
2846
+ .deepdots-popup select {
2847
+ padding: 0.85rem 0.95rem;
2848
+ font-size: 1rem;
2849
+ min-height: 46px;
2850
+ }
2851
+
2852
+ /*
2853
+ .magicfeedback-radio-container,
2854
+ .magicfeedback-checkbox-container,
2855
+ .magicfeedback-boolean-container,
2856
+ .magicfeedback-consent-container {
2857
+ width: 100%;
2858
+ }
2859
+ */
2860
+
2861
+ .magicfeedback-radio-container,
2862
+ .magicfeedback-checkbox-container {
2863
+ padding: 10px 12px;
2864
+ border-radius: var(--mf-radius-md);
2865
+ border: 1px solid var(--mf-border);
2866
+ gap: 10px;
2867
+ }
2868
+
2869
+ .magicfeedback-rating-container,
2870
+ .magicfeedback-rating-number-container,
2871
+ .magicfeedback-rating-star-container {
2872
+ gap: 10px;
2873
+ }
2874
+
2875
+ .magicfeedback-boolean-container {
2876
+ flex-direction: column;
2877
+ gap: 10px;
2878
+ }
2879
+
2880
+ .magicfeedback-rating-number-container-row,
2881
+ .magicfeedback-rating-number-container-row-reverse {
2882
+ gap: 6px;
2883
+ }
2884
+
2885
+ .magicfeedback-rating-number-option-row .magicfeedback-rating-number-value,
2886
+ .magicfeedback-rating-number-option-row-reverse .magicfeedback-rating-number-value {
2887
+ min-height: 44px;
2888
+ padding: var(--mf-space-xs);
2889
+ font-size: 0.9rem;
2890
+ }
2891
+
2892
+ .magicfeedback-action-container {
2893
+ flex-direction: column-reverse;
2894
+ }
2895
+
2896
+ .magicfeedback-submit,
2897
+ .magicfeedback-back {
2898
+ width: 100%;
2899
+ text-align: center;
2900
+ min-height: 48px;
2901
+ }
2902
+ }
2903
+
2904
+ /* ========================================
2905
+ ACCESSIBILITY
2906
+ ======================================== */
2907
+ @media (prefers-reduced-motion: reduce) {
2908
+ *,
2909
+ *::before,
2910
+ *::after {
2911
+ animation-duration: 0.01ms !important;
2912
+ animation-iteration-count: 1 !important;
2913
+ transition-duration: 0.01ms !important;
2914
+ }
2915
+ }
2916
+
2917
+
2918
+ /* ========================================
2919
+ UTILITY CLASSES
2920
+ ======================================== */
2921
+ .magicfeedback-visually-hidden {
2922
+ position: absolute;
2923
+ width: 1px;
2924
+ height: 1px;
2925
+ padding: 0;
2926
+ margin: -1px;
2927
+ overflow: hidden;
2928
+ clip: rect(0, 0, 0, 0);
2929
+ white-space: nowrap;
2930
+ border-width: 0;
2931
+ }
2932
+
2933
+ .magicfeedback-modal-close {
2934
+ position: absolute;
2935
+ top: 8px;
2936
+ inset-inline-end: 8px;
2937
+ background: transparent;
2938
+ border: none;
2939
+ font-size: 20px;
2940
+ line-height: 1;
2941
+ cursor: pointer;
2942
+ color: #666;
2943
+ }
2944
+
2945
+ .magicfeedback-modal-close:focus {
2946
+ color: #000;
2947
+ outline: none;
2948
+ }
2949
+
2950
+ @media (hover: hover) {
2951
+ .magicfeedback-modal-close:hover {
2952
+ color: #000;
2953
+ outline: none;
2954
+ }
2955
+ }
2956
+
2957
+ /* ========================================
2958
+ FILE / IMAGE UPLOAD
2959
+ ======================================== */
2960
+ .magicfeedback-upload {
2961
+ display: flex;
2962
+ flex-direction: column;
2963
+ gap: var(--mf-space-md);
2964
+ width: 100%;
2965
+ margin: 10px 0;
2966
+ }
2967
+
2968
+ /* The native input is an invisible, focusable overlay covering the dropzone. */
2969
+ .magicfeedback-upload-native {
2970
+ position: absolute;
2971
+ inset: 0;
2972
+ width: 100%;
2973
+ height: 100%;
2974
+ margin: 0;
2975
+ padding: 0;
2976
+ opacity: 0;
2977
+ cursor: pointer;
2978
+ z-index: 2;
2979
+ }
2980
+
2981
+ .magicfeedback-upload-dropzone {
2982
+ position: relative;
2983
+ display: flex;
2984
+ flex-direction: column;
2985
+ align-items: center;
2986
+ justify-content: center;
2987
+ gap: var(--mf-space-sm);
2988
+ box-sizing: border-box;
2989
+ width: 100%;
2990
+ min-height: 150px;
2991
+ padding: var(--mf-space-xl);
2992
+ text-align: center;
2993
+ border: 2px dashed var(--mf-border);
2994
+ border-radius: var(--mf-radius-md);
2995
+ background-color: var(--mf-surface-alt);
2996
+ cursor: pointer;
2997
+ transition: var(--mf-transition);
2998
+ }
2999
+
3000
+ @media (hover: hover) {
3001
+ .magicfeedback-upload-dropzone:hover {
3002
+ border-color: var(--mf-primary);
3003
+ background-color: var(--mf-bg-hover);
3004
+ }
3005
+ }
3006
+
3007
+ .magicfeedback-upload-dropzone:focus-within {
3008
+ border-color: var(--mf-primary);
3009
+ box-shadow: var(--mf-shadow-focus);
3010
+ }
3011
+
3012
+ .magicfeedback-upload-dropzone.is-dragover {
3013
+ border-color: var(--mf-primary);
3014
+ border-style: solid;
3015
+ background-color: var(--mf-primary-light);
3016
+ box-shadow: var(--mf-shadow-focus);
3017
+ }
3018
+
3019
+ .magicfeedback-upload-icon {
3020
+ display: inline-flex;
3021
+ align-items: center;
3022
+ justify-content: center;
3023
+ width: 46px;
3024
+ height: 46px;
3025
+ color: var(--mf-primary);
3026
+ background-color: var(--mf-surface);
3027
+ border-radius: var(--mf-radius-full);
3028
+ box-shadow: var(--mf-shadow-sm);
3029
+ pointer-events: none;
3030
+ }
3031
+
3032
+ .magicfeedback-upload-icon svg {
3033
+ width: 24px;
3034
+ height: 24px;
3035
+ }
3036
+
3037
+ .magicfeedback-upload-cta {
3038
+ font-family: inherit;
3039
+ font-weight: var(--mf-font-weight-semibold);
3040
+ font-size: var(--mf-font-size-base);
3041
+ color: var(--mf-text-primary);
3042
+ pointer-events: none;
3043
+ }
3044
+
3045
+ .magicfeedback-upload-hint {
3046
+ font-family: inherit;
3047
+ font-size: var(--mf-font-size-sm);
3048
+ color: var(--mf-text-muted);
3049
+ pointer-events: none;
3050
+ }
3051
+
3052
+ .magicfeedback-upload-list {
3053
+ display: flex;
3054
+ flex-direction: column;
3055
+ gap: var(--mf-space-sm);
3056
+ width: 100%;
3057
+ margin: 0;
3058
+ padding: 0;
3059
+ list-style: none;
3060
+ }
3061
+
3062
+ .magicfeedback-upload-list:empty {
3063
+ display: none;
3064
+ }
3065
+
3066
+ .magicfeedback-upload-file-item {
3067
+ display: flex;
3068
+ align-items: center;
3069
+ gap: var(--mf-space-md);
3070
+ padding: var(--mf-space-sm) var(--mf-space-md);
3071
+ background-color: var(--mf-surface);
3072
+ border: 1px solid var(--mf-border);
3073
+ border-radius: var(--mf-radius-sm);
3074
+ box-shadow: var(--mf-shadow-sm);
3075
+ animation: mf-scale-in 0.2s ease-out;
3076
+ }
3077
+
3078
+ .magicfeedback-upload-thumb {
3079
+ flex: 0 0 auto;
3080
+ display: inline-flex;
3081
+ align-items: center;
3082
+ justify-content: center;
3083
+ width: 40px;
3084
+ height: 40px;
3085
+ overflow: hidden;
3086
+ color: var(--mf-text-secondary);
3087
+ background-color: var(--mf-surface-alt);
3088
+ border-radius: var(--mf-radius-sm);
3089
+ }
3090
+
3091
+ .magicfeedback-upload-thumb img {
3092
+ width: 100%;
3093
+ height: 100%;
3094
+ object-fit: cover;
3095
+ }
3096
+
3097
+ .magicfeedback-upload-thumb svg {
3098
+ width: 20px;
3099
+ height: 20px;
3100
+ }
3101
+
3102
+ .magicfeedback-upload-file-info {
3103
+ display: flex;
3104
+ flex-direction: column;
3105
+ flex: 1 1 auto;
3106
+ min-width: 0;
3107
+ text-align: start;
3108
+ }
3109
+
3110
+ .magicfeedback-upload-file-name {
3111
+ font-family: inherit;
3112
+ font-size: var(--mf-font-size-sm);
3113
+ font-weight: var(--mf-font-weight-semibold);
3114
+ color: var(--mf-text-primary);
3115
+ white-space: nowrap;
3116
+ overflow: hidden;
3117
+ text-overflow: ellipsis;
3118
+ }
3119
+
3120
+ .magicfeedback-upload-file-size {
3121
+ font-family: inherit;
3122
+ font-size: 0.75rem;
3123
+ color: var(--mf-text-muted);
3124
+ }
3125
+
3126
+ .magicfeedback-upload-remove {
3127
+ flex: 0 0 auto;
3128
+ display: inline-flex;
3129
+ align-items: center;
3130
+ justify-content: center;
3131
+ width: 30px;
3132
+ height: 30px;
3133
+ padding: 0;
3134
+ color: var(--mf-text-muted);
3135
+ background-color: transparent;
3136
+ border: none;
3137
+ border-radius: var(--mf-radius-full);
3138
+ cursor: pointer;
3139
+ transition: var(--mf-transition-fast);
3140
+ }
3141
+
3142
+ .magicfeedback-upload-remove:focus-visible {
3143
+ color: var(--mf-error);
3144
+ background-color: var(--mf-primary-light);
3145
+ outline: none;
3146
+ }
3147
+
3148
+ @media (hover: hover) {
3149
+ .magicfeedback-upload-remove:hover {
3150
+ color: var(--mf-error);
3151
+ background-color: var(--mf-primary-light);
3152
+ outline: none;
3153
+ }
3154
+ }
3155
+
3156
+ .magicfeedback-upload-remove svg {
3157
+ width: 16px;
3158
+ height: 16px;
3159
+ }
3160
+
3161
+ .magicfeedback-upload-error {
3162
+ display: none;
3163
+ font-family: inherit;
3164
+ font-size: var(--mf-font-size-sm);
3165
+ color: var(--mf-error);
3166
+ }
3167
+
3168
+ .magicfeedback-upload-error.is-visible {
3169
+ display: block;
3170
+ }
3171
+
3172
+ /* ========================================
3173
+ RTL (Arabic)
3174
+ ========================================
3175
+ The SDK stamps dir="rtl" (and .magicfeedback-rtl) on the survey container
3176
+ for right-to-left languages. Everything else in this stylesheet uses logical
3177
+ properties (text-align: start, padding-inline-*, inset-inline-*), so it
3178
+ mirrors on its own; only the handful of rules that cannot be expressed
3179
+ logically live here.
3180
+
3181
+ Rules are scoped to [dir="rtl"] inside our own subtree so a host page that is
3182
+ itself RTL, or one that embeds an Arabic survey in an LTR page, both render
3183
+ correctly. */
3184
+
3185
+ /* background-position has no logical form: move the select caret to the
3186
+ left edge, opposite the padding that inset-inline-end already mirrored. */
3187
+ [dir="rtl"] select {
3188
+ background-position: left var(--mf-space-md) center;
3189
+ }
3190
+
3191
+ /* Emails, URLs, numbers, dates and phone numbers are latin/numeric content
3192
+ even in an Arabic survey: keep their own direction LTR so punctuation
3193
+ (@, ., +, /) lands where the user expects, but align them to the start of
3194
+ the RTL line so they still read as part of the form. */
3195
+ [dir="rtl"] input[type="email"],
3196
+ [dir="rtl"] input[type="url"],
3197
+ [dir="rtl"] input[type="number"],
3198
+ [dir="rtl"] input[type="tel"],
3199
+ [dir="rtl"] input[type="date"],
3200
+ [dir="rtl"] input[type="time"] {
3201
+ direction: ltr;
3202
+ text-align: right;
3203
+ }
3204
+
3205
+ /* Mirror of mf-slide-in: questions enter from the reading edge. */
3206
+ @keyframes mf-slide-in-rtl {
3207
+ from {
3208
+ opacity: 0;
3209
+ transform: translateX(16px);
3210
+ }
3211
+ to {
3212
+ opacity: 1;
3213
+ transform: translateX(0);
3214
+ }
3215
+ }
3216
+
3217
+ [dir="rtl"] .magicfeedback-div {
3218
+ animation-name: mf-slide-in-rtl;
3219
+ }
3220
+
3221
+ /* ========================================
3222
+ LOCAL \u2014 reglas del popup, no vienen del paquete
3223
+ ======================================== */
3224
+
3225
+ /* Los controles de formulario no heredan font-family: cuando el popup trae fuente propia
3226
+ (clase deepdots-has-font), se les fuerza la del contenedor. */
3227
+ .deepdots-popup.deepdots-has-font button,
3228
+ .deepdots-popup.deepdots-has-font input,
3229
+ .deepdots-popup.deepdots-has-font textarea,
3230
+ .deepdots-popup.deepdots-has-font select {
3231
+ font-family: var(--deepdots-font, inherit);
3232
+ }
3233
+
3234
+ /* WebKit s\xED aplica el padding al radio nativo: con padding el control se dibuja enorme (se vio
3235
+ en iOS, WebView de RN y Safari, no en Chrome). El paquete ya no lo pone, pero la regla es
3236
+ barata y evita que vuelva. */
3237
+ .deepdots-popup input[type="radio"] {
3238
+ padding: 0;
3239
+ }
3240
+ `;
3241
+
3242
+ // src/util/logger.ts
3243
+ var active = console;
3244
+ function setLogger(logger) {
3245
+ active = logger ?? console;
3246
+ }
3247
+ function sdkLog(...args) {
3248
+ active.log(...args);
3249
+ }
3250
+ function sdkWarn(...args) {
3251
+ (active.warn ?? active.log)(...args);
3252
+ }
3253
+ function sdkError(...args) {
3254
+ (active.error ?? active.log)(...args);
3255
+ }
3256
+
3257
+ // src/ui/surveySdkVersion.ts
3258
+ var BUNDLED_SURVEY_SDK_VERSION = "2.2.39";
3259
+ var SUPPORTED_SURVEY_SDK_VERSIONS = ["2.2.38", "2.2.39"];
3260
+ var SEMVER = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/;
3261
+ function isSemver(value) {
3262
+ return typeof value === "string" && SEMVER.test(value);
3263
+ }
3264
+ function isSupportedSurveySdk(version) {
3265
+ return SUPPORTED_SURVEY_SDK_VERSIONS.includes(version);
3266
+ }
3267
+ function chooseSurveySdkVersion(requested) {
3268
+ const bundled = (reason) => ({
3269
+ version: BUNDLED_SURVEY_SDK_VERSION,
3270
+ source: "bundled",
3271
+ reason,
3272
+ ...requested ? { requested } : {}
3273
+ });
3274
+ if (requested === void 0 || requested === null || requested === "") return bundled("not_assigned");
3275
+ if (!isSemver(requested)) return bundled("invalid");
3276
+ if (!isSupportedSurveySdk(requested)) return bundled("unsupported");
3277
+ if (requested === BUNDLED_SURVEY_SDK_VERSION) return bundled("same_as_bundled");
3278
+ return { version: requested, source: "assigned", requested };
3279
+ }
3280
+ function surveySdkUrls(version) {
3281
+ return [
3282
+ `https://cdn.jsdelivr.net/npm/@magicfeedback/native@${version}/dist/magicfeedback-sdk.browser.js`,
3283
+ `https://unpkg.com/@magicfeedback/native@${version}/dist/magicfeedback-sdk.browser.js`
3284
+ ];
3285
+ }
3286
+ function surveySdkCssUrls(version) {
3287
+ return [
3288
+ `https://cdn.jsdelivr.net/npm/@magicfeedback/popup-sdk@${SDK_VERSION}/dist/assets/assets/survey-css/${version}.css`,
3289
+ `https://unpkg.com/@magicfeedback/popup-sdk@${SDK_VERSION}/dist/assets/assets/survey-css/${version}.css`
3290
+ ];
3291
+ }
3292
+ function describeSurveySdkChoice(choice) {
3293
+ if (choice.source === "assigned") return `survey SDK ${choice.version} (assigned)`;
3294
+ const asked = choice.requested ? `, requested ${choice.requested}` : "";
3295
+ return `survey SDK ${choice.version} (bundled: ${choice.reason}${asked})`;
3296
+ }
3297
+
3298
+ export {
3299
+ SDK_IDENTIFIER,
3300
+ InMemoryStorage,
3301
+ createDefaultStorage,
3302
+ STORAGE_KEYS,
3303
+ buildSurveyIdentity,
3304
+ TrackingManager,
3305
+ BUNDLED_SURVEY_SDK_VERSION,
3306
+ chooseSurveySdkVersion,
3307
+ surveySdkUrls,
3308
+ surveySdkCssUrls,
3309
+ describeSurveySdkChoice,
3310
+ buildFontFamilyValue,
3311
+ buildFontFaceCss,
3312
+ LABELS,
3313
+ SUPPORTED_LANGUAGES,
3314
+ resolveLocale,
3315
+ RTL_LOCALES,
3316
+ isRtlLanguage,
3317
+ directionFor,
3318
+ getLabels,
3319
+ resolveActionLabels,
3320
+ RESOLVE_LOCALE_JS,
3321
+ REVEAL_TIMEOUT_MS,
3322
+ revealWhenPainted,
3323
+ applySurveyPrimaryColor,
3324
+ PRIMARY_COLOR_JS,
3325
+ setSurveyBusy,
3326
+ BUSY_JS,
3327
+ classifySubmitError,
3328
+ SUBMIT_ERROR_JS,
3329
+ style_default,
3330
+ setLogger,
3331
+ sdkLog,
3332
+ sdkWarn,
3333
+ sdkError
3334
+ };
3335
+ //# sourceMappingURL=chunk-7ZQOAKXR.mjs.map