@magicfeedback/popup-sdk 1.12.0 → 1.14.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.
@@ -15,7 +15,7 @@ import {
15
15
  sdkWarn,
16
16
  setSurveyBusy,
17
17
  style_default
18
- } from "./chunk-GXEPYT33.mjs";
18
+ } from "./chunk-C7VD3HY4.mjs";
19
19
 
20
20
  // node_modules/@magicfeedback/native/dist/magicfeedback-sdk.browser.js
21
21
  var require_magicfeedback_sdk_browser = __commonJS({
@@ -24,7 +24,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
24
24
  !(function(e, t) {
25
25
  "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.magicfeedback = t() : e.magicfeedback = t();
26
26
  })(self, (() => {
27
- return e = { 6911: function(e2, t2) {
27
+ return e = { 6539: function(e2, t2) {
28
28
  var i = "undefined" != typeof self ? self : this, n = (function() {
29
29
  function e3() {
30
30
  this.fetch = false, this.DOMException = i.DOMException;
@@ -230,19 +230,19 @@ var require_magicfeedback_sdk_browser = __commonJS({
230
230
  })(n), n.fetch.ponyfill = true, delete n.fetch.polyfill;
231
231
  var r = n;
232
232
  (t2 = r.fetch).default = r.fetch, t2.fetch = r.fetch, t2.Headers = r.Headers, t2.Request = r.Request, t2.Response = r.Response, e2.exports = t2;
233
- }, 431: (e2, t2) => {
233
+ }, 5867: (e2, t2) => {
234
234
  "use strict";
235
235
  Object.defineProperty(t2, "__esModule", { value: true }), t2.HOST_API_URL_DEV = t2.HOST_API_URL = void 0, t2.HOST_API_URL = "https://api.deepdots.com/", t2.HOST_API_URL_DEV = "https://api-dev.deepdots.com/";
236
- }, 2474: function(e2, t2, i) {
236
+ }, 1422: function(e2, t2, i) {
237
237
  "use strict";
238
238
  var n = this && this.__importDefault || function(e3) {
239
239
  return e3 && e3.__esModule ? e3 : { default: e3 };
240
240
  };
241
241
  Object.defineProperty(t2, "__esModule", { value: true });
242
- const r = n(i(5969));
242
+ const r = n(i(8453));
243
243
  let o = null;
244
244
  o || (o = (0, r.default)()), t2.default = o;
245
- }, 5969: function(e2, t2, i) {
245
+ }, 8453: function(e2, t2, i) {
246
246
  "use strict";
247
247
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
248
248
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -270,7 +270,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
270
270
  }));
271
271
  };
272
272
  Object.defineProperty(t2, "__esModule", { value: true });
273
- const r = i(139), o = i(7350), a = i(8587), s = i(1874), l = i(6891), d = i(431), c = i(6029);
273
+ const r = i(1167), o = i(7490), a = i(9303), s = i(4070), l = i(9071), d = i(5867), c = i(3433);
274
274
  t2.default = function() {
275
275
  const e3 = new a.Config();
276
276
  let t3 = new s.Log(e3);
@@ -303,7 +303,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
303
303
  }));
304
304
  } };
305
305
  };
306
- }, 1701: (e2, t2) => {
306
+ }, 9481: (e2, t2) => {
307
307
  "use strict";
308
308
  Object.defineProperty(t2, "__esModule", { value: true }), t2.History = void 0, t2.History = class {
309
309
  constructor() {
@@ -334,7 +334,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
334
334
  return this.items[e3];
335
335
  }
336
336
  };
337
- }, 7350: function(e2, t2, i) {
337
+ }, 7490: function(e2, t2, i) {
338
338
  "use strict";
339
339
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
340
340
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -362,26 +362,48 @@ var require_magicfeedback_sdk_browser = __commonJS({
362
362
  }));
363
363
  };
364
364
  Object.defineProperty(t2, "__esModule", { value: true }), t2.AgentForm = void 0;
365
- const r = i(1874), o = i(9), a = i(8019), s = i(3963), l = i(1817), d = i(459), c = i(1853), u = i(3903), p = i(7031), m = i(93), h = i(2139);
365
+ const r = i(4070), o = i(3501), a = i(4759), s = i(1351), l = i(5349), d = i(2335), c = i(8129), u = i(7643), p = i(7627), m = i(9089), h = i(9039);
366
366
  t2.AgentForm = class {
367
367
  constructor(e3, t3, i2, n2) {
368
- this.config = e3, this.log = new r.Log(e3), this.url = e3.get("url"), this.integrationId = t3, this.publicKey = i2, this.privateKey = n2, this.formOptionsConfig = { addButton: true, addSuccessScreen: true, questionFormat: "standard", answerDelimiter: s.DEFAULT_ANSWER_DELIMITER, resume: true, allowBack: false, emptyAnswerText: "" }, this.selector = "", this.language = "en", this.product = { customIcons: false }, this.sessionId = "", this.conversation = [], this.askedRefs = [], this.currentTurn = 1, this.maxTurns = 0, this.currentQuestion = null, this.questionHistory = [], this.busy = false, this.rateLimitTimer = null, this.progress = 0, this.total = 0, this.completed = false, this.timeToCompleted = 0;
368
+ this.config = e3, this.log = new r.Log(e3), this.url = e3.get("url"), this.integrationId = t3, this.publicKey = i2, this.privateKey = n2, this.formOptionsConfig = { addButton: true, addSuccessScreen: true, questionFormat: "standard", answerDelimiter: s.DEFAULT_ANSWER_DELIMITER, resume: true, allowBack: false, emptyAnswerText: "" }, this.selector = "", this.language = "en", this.product = { customIcons: false }, this.integrationData = null, this.started = false, this.sessionId = "", this.conversation = [], this.askedRefs = [], this.currentTurn = 1, this.maxTurns = 0, this.currentQuestion = null, this.questionHistory = [], this.busy = false, this.rateLimitTimer = null, this.progress = 0, this.total = 0, this.completed = false, this.timeToCompleted = 0;
369
369
  }
370
370
  generate(e3, t3 = {}) {
371
- var i2;
371
+ var i2, r2;
372
372
  return n(this, void 0, void 0, (function* () {
373
- this.formOptionsConfig = Object.assign(Object.assign({}, this.formOptionsConfig), t3), this.selector = e3, t3.lang && (this.language = t3.lang), t3.primaryColor && (this.primaryColor = t3.primaryColor), this.config.get("dryRun") && this.log.log("dryRun has no effect in agent mode: the server drives the conversation");
373
+ this.formOptionsConfig = Object.assign(Object.assign({}, this.formOptionsConfig), t3), this.selector = e3, t3.lang && (this.language = t3.lang), t3.primaryColor && (this.primaryColor = t3.primaryColor);
374
+ const n2 = false === this.formOptionsConfig.resume || this.isPreview() ? null : this.restore(), o2 = null === (r2 = null === (i2 = this.integrationData) || void 0 === i2 ? void 0 : i2.style) || void 0 === r2 ? void 0 : r2.startMessage;
375
+ if (n2 || !o2) yield this.open(n2);
376
+ else try {
377
+ this.renderWelcome(o2);
378
+ } catch (e4) {
379
+ this.log.err(`Could not show the introduction of ${this.integrationId}:`, e4), this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, error: e4 }));
380
+ }
381
+ }));
382
+ }
383
+ startForm() {
384
+ return n(this, void 0, void 0, (function* () {
385
+ this.started || (yield this.open(null));
386
+ }));
387
+ }
388
+ renderWelcome(e3) {
389
+ var t3;
390
+ const i2 = (0, d.generateContainer)(this.selector, this.integrationId);
391
+ this.primaryColor && (0, d.applyPrimaryColor)(i2, this.primaryColor), (0, d.applyDirection)(i2, this.language), i2.appendChild((0, u.renderStartMessage)(e3, this.formOptionsConfig.addButton, this.formOptionsConfig.startButtonText || (0, p.t)(this.language, "action.start"), (() => this.startForm()))), this.formOptionsConfig.onLoadedEvent && this.formOptionsConfig.onLoadedEvent({ loading: false, formData: null !== (t3 = this.integrationData) && void 0 !== t3 ? t3 : void 0, lang: this.language });
392
+ }
393
+ open(e3) {
394
+ var t3, i2, r2;
395
+ return n(this, void 0, void 0, (function* () {
396
+ this.started = true;
374
397
  try {
375
- const e4 = false !== this.formOptionsConfig.resume ? this.restore() : null;
376
- if (e4) this.log.log(`Resuming agent session ${e4.sessionId} at turn ${e4.currentTurn}`), this.mountForm(), this.renderStep();
398
+ if (e3) this.log.log(`Resuming agent session ${e3.sessionId} at turn ${e3.currentTurn}`), this.mountForm(), this.renderStep();
377
399
  else {
378
- const e5 = yield this.startWithRetry();
379
- this.sessionId = e5.sessionId, this.maxTurns = e5.maxTurns, this.currentTurn = null !== (i2 = e5.currentTurn) && void 0 !== i2 ? i2 : 1, this.total = Math.max(this.maxTurns - 1, 0);
380
- const t4 = (0, s.toAgentStep)(e5, this.adapterContext());
381
- if (this.mountForm(), "END" === t4.kind) return yield this.renderEnd(t4), void (this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, progress: this.progress, total: this.total, sessionId: this.sessionId, completed: true })));
382
- this.acceptQuestion(t4), this.renderStep(), this.persist();
400
+ const e4 = yield this.startWithRetry();
401
+ this.sessionId = e4.sessionId, this.maxTurns = e4.maxTurns, this.currentTurn = null !== (t3 = e4.currentTurn) && void 0 !== t3 ? t3 : 1, this.total = Math.max(this.maxTurns - 1, 0);
402
+ const n2 = (0, s.toAgentStep)(e4, this.adapterContext());
403
+ if (this.mountForm(), "END" === n2.kind) return yield this.renderEnd(n2), void (this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, progress: this.progress, total: this.total, sessionId: this.sessionId, formData: null !== (i2 = this.integrationData) && void 0 !== i2 ? i2 : void 0, lang: this.language, completed: true })));
404
+ this.acceptQuestion(n2), this.renderStep(), this.persist();
383
405
  }
384
- this.timeToCompleted = Date.now(), this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, progress: this.progress, total: this.total, sessionId: this.sessionId, formOptionsConfig: this.formOptionsConfig }));
406
+ this.timeToCompleted = Date.now(), this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, progress: this.progress, total: this.total, sessionId: this.sessionId, formData: null !== (r2 = this.integrationData) && void 0 !== r2 ? r2 : void 0, lang: this.language, formOptionsConfig: this.formOptionsConfig }));
385
407
  } catch (e4) {
386
408
  this.log.err(`Could not start the agent survey ${this.integrationId}:`, e4), this.renderFatal(e4), this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, error: e4 }));
387
409
  }
@@ -422,7 +444,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
422
444
  o2 = this.formOptionsConfig.emptyAnswerText || "";
423
445
  }
424
446
  this.formOptionsConfig.beforeSubmitEvent && (yield this.formOptionsConfig.beforeSubmitEvent({ loading: true, progress: this.progress, total: this.total }));
425
- const d2 = { role: "user", content: o2, questionType: t3.type, questionRef: t3.ref }, u2 = this.currentTurn + 1, m2 = yield (0, a.nextAgentTurn)(this.url, { publicKey: this.publicKey, privateKey: this.privateKey, integrationId: this.integrationId, sessionId: this.sessionId, conversation: [...this.conversation], currentTurn: u2, lastAnswer: o2, lastQuestionRef: t3.ref, askedRefs: [...this.askedRefs] }, this.log);
447
+ const d2 = { role: "user", content: o2, questionType: t3.type, questionRef: t3.ref }, u2 = this.currentTurn + 1, m2 = yield (0, a.nextAgentTurn)(this.url, Object.assign({ publicKey: this.publicKey, privateKey: this.privateKey, integrationId: this.integrationId, sessionId: this.sessionId, conversation: [...this.conversation], currentTurn: u2, lastAnswer: o2, lastQuestionRef: t3.ref, askedRefs: [...this.askedRefs] }, this.previewFlag()), this.log);
426
448
  this.conversation.push(d2), this.currentTurn = null !== (e3 = m2.currentTurn) && void 0 !== e3 ? e3 : u2, m2.maxTurns && (this.maxTurns = m2.maxTurns), this.total = Math.max(this.maxTurns - 1, 0);
427
449
  const h2 = (0, s.toAgentStep)(m2, this.adapterContext());
428
450
  if ("END" === h2.kind) return void (yield this.renderEnd(h2));
@@ -505,7 +527,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
505
527
  }
506
528
  startWithRetry() {
507
529
  return n(this, void 0, void 0, (function* () {
508
- const e3 = { publicKey: this.publicKey, privateKey: this.privateKey, integrationId: this.integrationId };
530
+ const e3 = Object.assign({ publicKey: this.publicKey, privateKey: this.privateKey, integrationId: this.integrationId }, this.previewFlag());
509
531
  try {
510
532
  return yield (0, a.startAgentSurvey)(this.url, e3, this.log);
511
533
  } catch (t3) {
@@ -541,8 +563,14 @@ var require_magicfeedback_sdk_browser = __commonJS({
541
563
  storageKey() {
542
564
  return `magicfeedback-agent-${this.integrationId}`;
543
565
  }
566
+ isPreview() {
567
+ return Boolean(this.config.get("dryRun"));
568
+ }
569
+ previewFlag() {
570
+ return this.isPreview() ? { preview: true } : {};
571
+ }
544
572
  persist() {
545
- if (false !== this.formOptionsConfig.resume) try {
573
+ if (!this.isPreview() && false !== this.formOptionsConfig.resume) try {
546
574
  const e3 = { sessionId: this.sessionId, conversation: this.conversation, currentTurn: this.currentTurn, maxTurns: this.maxTurns, askedRefs: this.askedRefs, questionHistory: this.questionHistory, savedAt: Date.now() };
547
575
  localStorage.setItem(this.storageKey(), JSON.stringify(e3));
548
576
  } catch (e3) {
@@ -568,10 +596,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
568
596
  }
569
597
  applyIntegrationContext(e3) {
570
598
  var t3, i2;
571
- (null === (t3 = null == e3 ? void 0 : e3.lang) || void 0 === t3 ? void 0 : t3.length) && (this.language = e3.lang[0]), (null == e3 ? void 0 : e3.product) && (this.product = e3.product), (null === (i2 = null == e3 ? void 0 : e3.style) || void 0 === i2 ? void 0 : i2.primaryColor) && (this.primaryColor = e3.style.primaryColor);
599
+ this.integrationData = e3, (null === (t3 = null == e3 ? void 0 : e3.lang) || void 0 === t3 ? void 0 : t3.length) && (this.language = e3.lang[0]), (null == e3 ? void 0 : e3.product) && (this.product = e3.product), (null === (i2 = null == e3 ? void 0 : e3.style) || void 0 === i2 ? void 0 : i2.primaryColor) && (this.primaryColor = e3.style.primaryColor);
572
600
  }
573
601
  };
574
- }, 8587: (e2, t2) => {
602
+ }, 9303: (e2, t2) => {
575
603
  "use strict";
576
604
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Config = void 0, t2.Config = class {
577
605
  constructor() {
@@ -584,7 +612,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
584
612
  this.variables[e3] = t3;
585
613
  }
586
614
  };
587
- }, 139: function(e2, t2, i) {
615
+ }, 1167: function(e2, t2, i) {
588
616
  "use strict";
589
617
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
590
618
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -612,10 +640,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
612
640
  }));
613
641
  };
614
642
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Form = void 0;
615
- const r = i(1140), o = i(7350), a = i(1874), s = i(6891), l = i(3903), d = i(1853), c = i(459), u = i(1817), p = i(2531), m = i(198), h = i(4245), f = i(1701), g = i(1814), y = i(7031), v = i(6029), b = i(93), E = i(9033), A = i(2139);
643
+ const r = i(4760), o = i(7490), a = i(4070), s = i(9071), l = i(7643), d = i(8129), c = i(2335), u = i(5349), p = i(1719), m = i(3378), h = i(7305), f = i(9481), g = i(7170), y = i(7627), v = i(3433), b = i(9089), E = i(4069), A = i(9039), k = [r.FEEDBACKAPPANSWERTYPE.INFO_PAGE, r.FEEDBACKAPPANSWERTYPE.PASSWORD, r.FEEDBACKAPPANSWERTYPE.EMAIL, r.FEEDBACKAPPANSWERTYPE.CONTACT, r.FEEDBACKAPPANSWERTYPE.UPLOAD_FILE, r.FEEDBACKAPPANSWERTYPE.UPLOAD_IMAGE, r.FEEDBACKAPPANSWERTYPE.MAX_DIFF];
616
644
  t2.Form = class {
617
645
  constructor(e3, t3, i2, n2, r2) {
618
- this.config = e3, this.log = new a.Log(e3), this.formOptionsConfig = { addButton: true, addSuccessScreen: true, getMetaData: true, customMetaData: [], questionFormat: "standard" }, this.selector = "", this.appId = t3, this.publicKey = i2 || "", this.url = e3.get("url"), this.id = "", this.formData = null, this.activeLang = null, this.feedback = { text: "", answers: [], profile: null != n2 ? n2 : [], metrics: [], metadata: null != r2 ? r2 : [] }, this.history = new f.History(), this.agentForm = null, this.graph = new p.PageGraph([]), this.progress = 0, this.total = 0, this.completed = false, this.sending = false, this.timeToCompleted = 0;
646
+ this.urlAutoAdvanceChecked = false, this.config = e3, this.log = new a.Log(e3), this.formOptionsConfig = { addButton: true, addSuccessScreen: true, getMetaData: true, customMetaData: [], questionFormat: "standard" }, this.selector = "", this.appId = t3, this.publicKey = i2 || "", this.url = e3.get("url"), this.id = "", this.formData = null, this.activeLang = null, this.feedback = { text: "", answers: [], profile: null != n2 ? n2 : [], metrics: [], metadata: null != r2 ? r2 : [] }, this.history = new f.History(), this.agentForm = null, this.graph = new p.PageGraph([]), this.progress = 0, this.total = 0, this.completed = false, this.sending = false, this.timeToCompleted = 0;
619
647
  }
620
648
  generate(e3, t3) {
621
649
  var i2, r2, a2, l2, d2, c2, u2;
@@ -701,14 +729,20 @@ var require_magicfeedback_sdk_browser = __commonJS({
701
729
  }
702
730
  this.formOptionsConfig.addButton && o2.addEventListener("submit", ((e4) => {
703
731
  e4.preventDefault(), this.send();
704
- })), this.timeToCompleted = Date.now(), this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, progress: this.progress, total: this.total, formData: this.formData, lang: this.lang(), formOptionsConfig: this.formOptionsConfig })), this.autofocusAfterRender(e3);
732
+ })), this.timeToCompleted = Date.now(), this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, progress: this.progress, total: this.total, formData: this.formData, lang: this.lang(), formOptionsConfig: this.formOptionsConfig })), this.autofocusAfterRender(e3), this.autoAdvanceFromUrl(a2, s2);
705
733
  } catch (e4) {
706
734
  return this.log.err(e4), void (this.formOptionsConfig.onLoadedEvent && this.formOptionsConfig.onLoadedEvent({ loading: false, error: e4 }));
707
735
  }
708
736
  }));
709
737
  }
738
+ autoAdvanceFromUrl(e3, t3) {
739
+ if (this.urlAutoAdvanceChecked) return;
740
+ if (this.urlAutoAdvanceChecked = true, !(0, A.autoAdvanceRequested)() || 1 !== t3.questions.length) return;
741
+ const i2 = (0, A.answeredInput)(e3, t3.questions[0].ref);
742
+ i2 && (0, A.scheduleAutoAdvance)(i2, (() => this.autoSend()));
743
+ }
710
744
  startForm() {
711
- this.generateForm("navigation");
745
+ this.agentForm ? this.agentForm.startForm() : this.generateForm("navigation");
712
746
  }
713
747
  focusFirstQuestion() {
714
748
  return "undefined" != typeof document && (0, E.focusFirstTextQuestion)(document.getElementById("magicfeedback-questions-" + this.appId));
@@ -953,13 +987,65 @@ var require_magicfeedback_sdk_browser = __commonJS({
953
987
  const n2 = null !== (t3 = this.feedback.answers.find(((t4) => t4.key === e3.ref))) && void 0 !== t3 ? t3 : this.feedback.answers.find(((t4) => t4.key.includes(e3.ref) && !t4.key.includes("extra-option"))), r2 = null === (i2 = null == n2 ? void 0 : n2.value) || void 0 === i2 ? void 0 : i2.find(((e4) => null != e4 && "" !== e4));
954
988
  if (void 0 === r2) return this.log.log(`The question ${e3.ref} has no answer, skipping its follow up`), null;
955
989
  try {
956
- const t4 = this.config.get("url"), i3 = Object.assign(Object.assign(Object.assign({ answer: r2 }, "" !== this.publicKey && { publicKey: this.publicKey }), "" === this.publicKey && { campaignSessionId: this.appId }), { sessionId: this.id, question: e3 });
990
+ const t4 = this.config.get("url"), i3 = Object.assign(Object.assign(Object.assign({ answer: r2 }, "" !== this.publicKey && { publicKey: this.publicKey }), "" === this.publicKey && { campaignSessionId: this.appId }), { sessionId: this.id, question: e3, previousAnswers: this.previousAnswers(e3), upcomingQuestions: this.upcomingQuestions() });
957
991
  return yield (0, s.getFollowUpQuestion)(t4, i3, this.log);
958
992
  } catch (t4) {
959
993
  return this.log.err(`An error occurred while requesting the follow up of ${e3.ref} in the form ${this.appId}:`, t4), null;
960
994
  }
961
995
  }));
962
996
  }
997
+ previousAnswers(e3) {
998
+ var t3;
999
+ const i2 = /* @__PURE__ */ new Map();
1000
+ for (let n2 = 0; n2 < this.history.size(); n2++) {
1001
+ const r2 = this.history.get(n2);
1002
+ if (r2) for (const n3 of r2.questions) {
1003
+ if (n3.ref === e3.ref) continue;
1004
+ if (k.includes(n3.type)) continue;
1005
+ const o2 = this.followUpAnswerValue(n3, null === (t3 = r2.answers) || void 0 === t3 ? void 0 : t3.find(((e4) => e4.key === n3.ref)));
1006
+ void 0 !== o2 && (i2.delete(n3.ref), i2.set(n3.ref, { title: n3.title, answer: o2 }));
1007
+ }
1008
+ }
1009
+ return [...i2.values()];
1010
+ }
1011
+ followUpAnswerValue(e3, t3) {
1012
+ var i2;
1013
+ const n2 = (null !== (i2 = null == t3 ? void 0 : t3.value) && void 0 !== i2 ? i2 : []).filter(((e4) => null != e4 && "" !== e4));
1014
+ if (0 === n2.length) return;
1015
+ if (e3.type === r.FEEDBACKAPPANSWERTYPE.BOOLEAN && 1 === n2.length && ["Yes", "No"].includes(n2[0])) return "Yes" === n2[0];
1016
+ if (e3.type === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) {
1017
+ const t4 = this.parseMatrixAnswerPre({ key: e3.ref, value: n2 }).map(((e4) => `${e4.key}: ${(Array.isArray(e4.value) ? e4.value : [e4.value]).join(", ")}`));
1018
+ return t4.length > 0 ? t4 : void 0;
1019
+ }
1020
+ const o2 = n2.map(((e4) => "string" == typeof e4 ? e4 : JSON.stringify(e4)));
1021
+ return 1 === o2.length ? o2[0] : o2;
1022
+ }
1023
+ upcomingQuestions() {
1024
+ var e3, t3;
1025
+ const i2 = this.history.back();
1026
+ if (!i2) return [];
1027
+ const n2 = [], o2 = /* @__PURE__ */ new Set(), a2 = /* @__PURE__ */ new Set();
1028
+ let s2 = i2.isFollowup && i2.origin ? i2.origin : i2, l2 = null !== (e3 = s2.answers) && void 0 !== e3 ? e3 : [];
1029
+ for (; !a2.has(s2.id); ) {
1030
+ let e4;
1031
+ if (a2.add(s2.id), l2) {
1032
+ const i4 = this.graph.findRoute(s2, l2);
1033
+ e4 = i4 ? i4.transition === h.TransitionType.PAGE && null !== (t3 = i4.transitionDestiny) && void 0 !== t3 ? t3 : void 0 : this.graph.getNextEdgeByDefault(s2);
1034
+ } else {
1035
+ if (s2.edges.some(((e5) => e5.typeCondition !== h.ConditionType.DIRECT && e5.typeCondition !== h.ConditionType.PRECONDITIONAL))) break;
1036
+ e4 = this.graph.getNextEdgeByDefault(s2);
1037
+ }
1038
+ const i3 = e4 ? this.graph.getNodeById(e4) : void 0;
1039
+ if (!i3) break;
1040
+ if (i3.edges.filter(((e5) => e5.typeCondition === h.ConditionType.PRECONDITIONAL)).some(((e5) => !this.latestAnswer(e5.questionRef)))) break;
1041
+ if (this.skipsByPreconditions(i3)) s2 = i3, l2 = [];
1042
+ else {
1043
+ for (const e5 of i3.questions) e5.type !== r.FEEDBACKAPPANSWERTYPE.INFO_PAGE && (o2.has(e5.ref) || (o2.add(e5.ref), n2.push({ title: e5.title })));
1044
+ s2 = i3, l2 = null;
1045
+ }
1046
+ }
1047
+ return n2;
1048
+ }
963
1049
  processNextQuestion(e3) {
964
1050
  var t3, i2;
965
1051
  return n(this, void 0, void 0, (function* () {
@@ -981,54 +1067,61 @@ var require_magicfeedback_sdk_browser = __commonJS({
981
1067
  }));
982
1068
  }
983
1069
  renderNextQuestion(e3, t3) {
984
- var i2, o2, a2, s2, d2;
1070
+ var i2, r2, o2;
985
1071
  return n(this, void 0, void 0, (function* () {
986
- const n2 = t3.isFollowup && t3.origin ? t3.origin : t3, c2 = n2 === t3 ? this.feedback.answers : [...null !== (i2 = n2.answers) && void 0 !== i2 ? i2 : [], ...this.feedback.answers];
987
- let u2 = this.graph.getNextPage(n2, c2);
988
- if (!u2) return void this.finish();
989
- const p2 = u2.edges.filter(((e4) => "PRECONDITIONAL" === e4.typeCondition)).sort(((e4, t4) => e4.position < t4.position ? -1 : e4.position > t4.position ? 1 : 0));
990
- if ((null == p2 ? void 0 : p2.length) > 0) {
991
- const t4 = p2.some(((e4) => e4.transition === h.TransitionType.ALLOW));
992
- let i3 = t4;
993
- for (const t5 of p2) {
994
- let n3;
995
- for (let e4 = this.history.size() - 1; e4 >= 0; e4--) {
996
- const i4 = this.history.get(e4);
997
- if (i4 && (n3 = null === (o2 = i4.answers) || void 0 === o2 ? void 0 : o2.find(((e5) => e5.key === t5.questionRef)), n3)) break;
998
- }
999
- let s3 = false;
1000
- if (n3) {
1001
- const e4 = null === (a2 = this.formData) || void 0 === a2 ? void 0 : a2.questions.find(((e5) => e5.ref === t5.questionRef)), i4 = Array.isArray(n3.value) ? n3.value : [n3.value], o3 = Array.isArray(t5.value) ? t5.value : [t5.value];
1002
- if ((null == e4 ? void 0 : e4.type) === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) s3 = this.evaluateMatrixPreconditional(t5, n3);
1003
- else switch (t5.typeOperator) {
1004
- case "EQUAL":
1005
- case "INQ":
1006
- s3 = i4.some(((e5) => o3.includes(e5)));
1007
- break;
1008
- case "NOEQUAL":
1009
- case "NINQ":
1010
- s3 = i4.every(((e5) => !o3.includes(e5)));
1011
- break;
1012
- case "GREATER":
1013
- s3 = i4.some(((e5) => Number(e5) > Number(o3[0])));
1014
- break;
1015
- case "LESS":
1016
- s3 = i4.some(((e5) => Number(e5) < Number(o3[0])));
1017
- break;
1018
- case "GREATEREQUAL":
1019
- s3 = i4.some(((e5) => Number(e5) >= Number(o3[0])));
1020
- break;
1021
- case "LESSEQUAL":
1022
- s3 = i4.some(((e5) => Number(e5) <= Number(o3[0])));
1023
- }
1024
- }
1025
- if (t5.transition === h.TransitionType.ALLOW) s3 || (i3 = false);
1026
- else if (t5.transition === h.TransitionType.NEXT && s3) return this.feedback.answers = [], void (u2 && (yield this.renderNextQuestion(e3, u2)));
1072
+ const n2 = t3.isFollowup && t3.origin ? t3.origin : t3, a2 = n2 === t3 ? this.feedback.answers : [...null !== (i2 = n2.answers) && void 0 !== i2 ? i2 : [], ...this.feedback.answers];
1073
+ let s2 = this.graph.getNextPage(n2, a2);
1074
+ if (s2) {
1075
+ if (this.skipsByPreconditions(s2)) return this.feedback.answers = [], void (yield this.renderNextQuestion(e3, s2));
1076
+ s2.elements = (0, l.renderQuestions)(s2.questions, this.formOptionsConfig.questionFormat, this.lang(), null === (r2 = this.formData) || void 0 === r2 ? void 0 : r2.product, (() => this.autoSend())), e3.innerHTML = "", null === (o2 = s2.elements) || void 0 === o2 || o2.forEach(((t4) => e3.appendChild(t4))), (0, b.armGhostTapGuard)(e3), this.history.enqueue(s2), this.syncBackButton(), this.progress = this.total - this.graph.findMaxDepth(s2), this.formOptionsConfig.afterSubmitEvent && (yield this.formOptionsConfig.afterSubmitEvent({ response: this.id, loading: false, progress: this.progress, total: this.total, followup: s2.isFollowup, completed: this.completed, error: null })), this.autofocusAfterRender("navigation");
1077
+ } else this.finish();
1078
+ }));
1079
+ }
1080
+ skipsByPreconditions(e3) {
1081
+ var t3;
1082
+ const i2 = e3.edges.filter(((e4) => "PRECONDITIONAL" === e4.typeCondition)).sort(((e4, t4) => e4.position < t4.position ? -1 : e4.position > t4.position ? 1 : 0));
1083
+ if (0 === i2.length) return false;
1084
+ const n2 = i2.some(((e4) => e4.transition === h.TransitionType.ALLOW));
1085
+ let o2 = n2;
1086
+ for (const e4 of i2) {
1087
+ const i3 = this.latestAnswer(e4.questionRef);
1088
+ let n3 = false;
1089
+ if (i3) {
1090
+ const o3 = null === (t3 = this.formData) || void 0 === t3 ? void 0 : t3.questions.find(((t4) => t4.ref === e4.questionRef)), a2 = Array.isArray(i3.value) ? i3.value : [i3.value], s2 = Array.isArray(e4.value) ? e4.value : [e4.value];
1091
+ if ((null == o3 ? void 0 : o3.type) === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) n3 = this.evaluateMatrixPreconditional(e4, i3);
1092
+ else switch (e4.typeOperator) {
1093
+ case "EQUAL":
1094
+ case "INQ":
1095
+ n3 = a2.some(((e5) => s2.includes(e5)));
1096
+ break;
1097
+ case "NOEQUAL":
1098
+ case "NINQ":
1099
+ n3 = a2.every(((e5) => !s2.includes(e5)));
1100
+ break;
1101
+ case "GREATER":
1102
+ n3 = a2.some(((e5) => Number(e5) > Number(s2[0])));
1103
+ break;
1104
+ case "LESS":
1105
+ n3 = a2.some(((e5) => Number(e5) < Number(s2[0])));
1106
+ break;
1107
+ case "GREATEREQUAL":
1108
+ n3 = a2.some(((e5) => Number(e5) >= Number(s2[0])));
1109
+ break;
1110
+ case "LESSEQUAL":
1111
+ n3 = a2.some(((e5) => Number(e5) <= Number(s2[0])));
1027
1112
  }
1028
- if (t4 && !i3) return this.feedback.answers = [], void (u2 && (yield this.renderNextQuestion(e3, u2)));
1029
1113
  }
1030
- u2.elements = (0, l.renderQuestions)(u2.questions, this.formOptionsConfig.questionFormat, this.lang(), null === (s2 = this.formData) || void 0 === s2 ? void 0 : s2.product, (() => this.autoSend())), e3.innerHTML = "", null === (d2 = u2.elements) || void 0 === d2 || d2.forEach(((t4) => e3.appendChild(t4))), (0, b.armGhostTapGuard)(e3), this.history.enqueue(u2), this.syncBackButton(), this.progress = this.total - this.graph.findMaxDepth(u2), this.formOptionsConfig.afterSubmitEvent && (yield this.formOptionsConfig.afterSubmitEvent({ response: this.id, loading: false, progress: this.progress, total: this.total, followup: u2.isFollowup, completed: this.completed, error: null })), this.autofocusAfterRender("navigation");
1031
- }));
1114
+ if (e4.transition === h.TransitionType.ALLOW) n3 || (o2 = false);
1115
+ else if (e4.transition === h.TransitionType.NEXT && n3) return true;
1116
+ }
1117
+ return !!n2 && !o2;
1118
+ }
1119
+ latestAnswer(e3) {
1120
+ var t3, i2;
1121
+ for (let n2 = this.history.size() - 1; n2 >= 0; n2--) {
1122
+ const r2 = null === (i2 = null === (t3 = this.history.get(n2)) || void 0 === t3 ? void 0 : t3.answers) || void 0 === i2 ? void 0 : i2.find(((t4) => t4.key === e3));
1123
+ if (r2) return r2;
1124
+ }
1032
1125
  }
1033
1126
  syncBackButton() {
1034
1127
  const e3 = document.getElementById("magicfeedback-" + this.appId), t3 = null == e3 ? void 0 : e3.querySelector(".magicfeedback-back");
@@ -1110,17 +1203,17 @@ var require_magicfeedback_sdk_browser = __commonJS({
1110
1203
  }
1111
1204
  }
1112
1205
  };
1113
- }, 198: (e2, t2) => {
1206
+ }, 3378: (e2, t2) => {
1114
1207
  "use strict";
1115
1208
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Page = void 0, t2.Page = class {
1116
1209
  constructor(e3, t3, i, n, r) {
1117
1210
  this.id = e3, this.position = t3, this.generatedAt = (/* @__PURE__ */ new Date()).toISOString(), this.updatedAt = (/* @__PURE__ */ new Date()).toISOString(), this.status = "ACTIVE", this.integrationId = i, this.integrationQuestions = n, this.integrationPageRoutes = r;
1118
1211
  }
1119
1212
  };
1120
- }, 2531: (e2, t2, i) => {
1213
+ }, 1719: (e2, t2, i) => {
1121
1214
  "use strict";
1122
1215
  Object.defineProperty(t2, "__esModule", { value: true }), t2.PageGraph = void 0;
1123
- const n = i(1814), r = i(1140), o = i(4245);
1216
+ const n = i(7170), r = i(4760), o = i(7305);
1124
1217
  t2.PageGraph = class {
1125
1218
  constructor(e3) {
1126
1219
  this.nodes = /* @__PURE__ */ new Map(), this.buildGraph(e3);
@@ -1155,14 +1248,32 @@ var require_magicfeedback_sdk_browser = __commonJS({
1155
1248
  getNextPage(e3, t3) {
1156
1249
  var i2;
1157
1250
  if (!e3) return;
1158
- e3.edges.sort(((e4, t4) => "DIRECT" === e4.typeCondition ? 1 : "DIRECT" === t4.typeCondition ? -1 : 0));
1159
- const n2 = e3.edges.find(((i3) => {
1160
- const n3 = e3.questions.find(((e4) => e4.ref === i3.questionRef)), a = null == t3 ? void 0 : t3.filter(((e4) => e4.key === i3.questionRef));
1161
- if ("DIRECT" === i3.typeCondition) return true;
1251
+ const n2 = this.findRoute(e3, t3);
1252
+ if (!n2) {
1253
+ const t4 = this.getNextEdgeByDefault(e3);
1254
+ if (!t4) return;
1255
+ return this.getNodeById(t4);
1256
+ }
1257
+ switch (n2.transition) {
1258
+ case o.TransitionType.PAGE:
1259
+ if (!n2.transitionDestiny) return;
1260
+ return this.getNodeById(n2.transitionDestiny);
1261
+ case o.TransitionType.FINISH:
1262
+ return;
1263
+ case o.TransitionType.REDIRECT:
1264
+ return void (window.location.href = (null === (i2 = n2.transitionDestiny) || void 0 === i2 ? void 0 : i2.includes("?")) ? `${n2.transitionDestiny}&${window.location.search.slice(1)}` : `${n2.transitionDestiny}${window.location.search}`);
1265
+ default:
1266
+ return;
1267
+ }
1268
+ }
1269
+ findRoute(e3, t3) {
1270
+ return e3.edges.sort(((e4, t4) => "DIRECT" === e4.typeCondition ? 1 : "DIRECT" === t4.typeCondition ? -1 : 0)), e3.edges.find(((i2) => {
1271
+ const n2 = e3.questions.find(((e4) => e4.ref === i2.questionRef)), a = null == t3 ? void 0 : t3.filter(((e4) => e4.key === i2.questionRef));
1272
+ if ("DIRECT" === i2.typeCondition) return true;
1162
1273
  if (!a || 0 === a.length) return false;
1163
- if ((null == n3 ? void 0 : n3.type) === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) return this.evaluateMatrixCondition(i3, a);
1164
- const s = Array.isArray(i3.value) ? i3.value : [i3.value];
1165
- switch (i3.typeOperator) {
1274
+ if ((null == n2 ? void 0 : n2.type) === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) return this.evaluateMatrixCondition(i2, a);
1275
+ const s = Array.isArray(i2.value) ? i2.value : [i2.value];
1276
+ switch (i2.typeOperator) {
1166
1277
  case o.OperatorType.EQUAL:
1167
1278
  return a.some(((e4) => (Array.isArray(e4.value) ? e4.value : [e4.value]).some(((e5) => s.includes(e5)))));
1168
1279
  case o.OperatorType.NOEQUAL:
@@ -1183,22 +1294,6 @@ var require_magicfeedback_sdk_browser = __commonJS({
1183
1294
  return false;
1184
1295
  }
1185
1296
  }));
1186
- if (!n2) {
1187
- const t4 = this.getNextEdgeByDefault(e3);
1188
- if (!t4) return;
1189
- return this.getNodeById(t4);
1190
- }
1191
- switch (n2.transition) {
1192
- case o.TransitionType.PAGE:
1193
- if (!n2.transitionDestiny) return;
1194
- return this.getNodeById(n2.transitionDestiny);
1195
- case o.TransitionType.FINISH:
1196
- return;
1197
- case o.TransitionType.REDIRECT:
1198
- return void (window.location.href = (null === (i2 = n2.transitionDestiny) || void 0 === i2 ? void 0 : i2.includes("?")) ? `${n2.transitionDestiny}&${window.location.search.slice(1)}` : `${n2.transitionDestiny}${window.location.search}`);
1199
- default:
1200
- return;
1201
- }
1202
1297
  }
1203
1298
  findDepth(e3) {
1204
1299
  const t3 = this.getNodeById(e3);
@@ -1265,7 +1360,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
1265
1360
  }
1266
1361
  }
1267
1362
  };
1268
- }, 1814: (e2, t2) => {
1363
+ }, 7170: (e2, t2) => {
1269
1364
  "use strict";
1270
1365
  Object.defineProperty(t2, "__esModule", { value: true }), t2.PageNode = void 0, t2.PageNode = class {
1271
1366
  constructor(e3, t3, i, n, r, o = false) {
@@ -1281,7 +1376,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
1281
1376
  this.answers = e3;
1282
1377
  }
1283
1378
  };
1284
- }, 4245: (e2, t2) => {
1379
+ }, 7305: (e2, t2) => {
1285
1380
  "use strict";
1286
1381
  var i, n, r, o;
1287
1382
  Object.defineProperty(t2, "__esModule", { value: true }), t2.PageRoute = t2.StatusType = t2.OperatorType = t2.ConditionType = t2.TransitionType = void 0, (o = t2.TransitionType || (t2.TransitionType = {})).PAGE = "PAGE", o.FINISH = "FINISH", o.REDIRECT = "REDIRECT", o.NEXT = "NEXT", o.ALLOW = "ALLOW", (function(e3) {
@@ -1293,17 +1388,17 @@ var require_magicfeedback_sdk_browser = __commonJS({
1293
1388
  this.id = e3, this.questionRef = t3, this.typeCondition = d || i.LOGICAL, this.typeOperator = r2, this.value = o2 || [], this.transition = a, this.transitionDestiny = s, this.status = n.ACTIVE, this.generatedAt = /* @__PURE__ */ new Date(), this.updatedAt = /* @__PURE__ */ new Date(), this.integrationPageId = l, this.position = c || 0, this.option = u || [];
1294
1389
  }
1295
1390
  };
1296
- }, 1140: (e2, t2) => {
1391
+ }, 4760: (e2, t2) => {
1297
1392
  "use strict";
1298
1393
  var i, n;
1299
1394
  Object.defineProperty(t2, "__esModule", { value: true }), t2.AGENT_ANSWER_TYPE_BLOCKED = t2.QuestionType = t2.FEEDBACKAPPANSWERTYPE = void 0, (n = t2.FEEDBACKAPPANSWERTYPE || (t2.FEEDBACKAPPANSWERTYPE = {})).CONTACT = "CONTACT", n.MULTIPLECHOISE_IMAGE = "MULTIPLECHOISE_IMAGE", n.EMAIL = "EMAIL", n.RATING_STAR = "RATING_STAR", n.RADIO = "RADIO", n.MULTIPLECHOICE = "MULTIPLECHOICE", n.SELECT = "SELECT", n.TEXT = "TEXT", n.LONGTEXT = "LONGTEXT", n.NUMBER = "NUMBER", n.RATING_EMOJI = "RATING_EMOJI", n.RATING_NUMBER = "RATING_NUMBER", n.DATE = "DATE", n.BOOLEAN = "BOOLEAN", n.PASSWORD = "PASSWORD", n.CONSENT = "CONSENT", n.MULTI_QUESTION_MATRIX = "MULTI_QUESTION_MATRIX", n.POINT_SYSTEM = "POINT_SYSTEM", n.PRIORITY_LIST = "PRIORITY_LIST", n.INFO_PAGE = "INFO_PAGE", n.UPLOAD_FILE = "UPLOAD_FILE", n.UPLOAD_IMAGE = "UPLOAD_IMAGE", n.MAX_DIFF = "MAX_DIFF", t2.QuestionType = class {
1300
1395
  }, t2.AGENT_ANSWER_TYPE_BLOCKED = "ABUSIVE_OR_OFFENSIVE", (function(e3) {
1301
1396
  e3.FORM = "form", e3.DIV = "div";
1302
1397
  })(i || (i = {}));
1303
- }, 459: (e2, t2, i) => {
1398
+ }, 2335: (e2, t2, i) => {
1304
1399
  "use strict";
1305
1400
  Object.defineProperty(t2, "__esModule", { value: true }), t2.applyDirection = t2.applyPrimaryColor = t2.generateContainer = void 0;
1306
- const n = i(7031);
1401
+ const n = i(7627);
1307
1402
  t2.generateContainer = function(e3, t3) {
1308
1403
  let i2 = document.getElementById(e3);
1309
1404
  if (!i2 && (i2 = document.getElementById("magicfeedback-container-" + t3), !i2)) throw new Error(`Element with ID '${e3}' not found.`);
@@ -1314,10 +1409,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
1314
1409
  const i2 = (0, n.isRtlLanguage)(t3);
1315
1410
  e3.setAttribute("dir", i2 ? "rtl" : "ltr"), e3.classList.toggle("magicfeedback-rtl", i2);
1316
1411
  };
1317
- }, 6658: (e2, t2, i) => {
1412
+ }, 1366: (e2, t2, i) => {
1318
1413
  "use strict";
1319
1414
  Object.defineProperty(t2, "__esModule", { value: true }), t2.getUrlParam = t2.getBooleanOptions = t2.parseTitle = void 0;
1320
- const n = i(7031);
1415
+ const n = i(7627);
1321
1416
  t2.parseTitle = function(e3, t3) {
1322
1417
  return e3 ? "object" == typeof e3 ? e3[t3] || e3.en : e3 : "";
1323
1418
  }, t2.getBooleanOptions = function(e3) {
@@ -1325,10 +1420,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
1325
1420
  }, t2.getUrlParam = function(e3) {
1326
1421
  return new URLSearchParams(window.location.search).get(e3);
1327
1422
  };
1328
- }, 1433: (e2, t2, i) => {
1423
+ }, 2709: (e2, t2, i) => {
1329
1424
  "use strict";
1330
1425
  Object.defineProperty(t2, "__esModule", { value: true }), t2.RATING_NUMBER_MIN_CHIP_WIDTH = t2.usesLegacyRatingNumber = t2.createRatingNumberElement = t2.createStarRating = t2.createRatingPlaceholder = void 0;
1331
- const n = i(7031), r = i(2139);
1426
+ const n = i(7627), r = i(9039);
1332
1427
  function o(e3, t3, i2 = "ltr") {
1333
1428
  const n2 = document.createElement("div");
1334
1429
  n2.classList.add("magicfeedback-rating-placeholder");
@@ -1339,32 +1434,27 @@ var require_magicfeedback_sdk_browser = __commonJS({
1339
1434
  }
1340
1435
  t2.createRatingPlaceholder = o, t2.createStarRating = function(e3, t3, i2, n2 = () => {
1341
1436
  }, a) {
1342
- const s = "magicfeedback-rating-star-selected", l = document.createElement("div");
1343
- l.classList.add("magicfeedback-rating-star-container"), l.style.maxWidth = "300px", l.style.margin = "auto", l.dataset.originalSelection = "0";
1437
+ const s = document.createElement("div");
1438
+ s.classList.add("magicfeedback-rating-star-container"), s.style.maxWidth = "300px", s.style.margin = "auto", s.dataset.originalSelection = "0";
1439
+ const l = (e4) => {
1440
+ s.querySelectorAll(".rating__star").forEach(((t4, i3) => {
1441
+ t4.classList.toggle("magicfeedback-rating-star-selected", i3 < e4);
1442
+ }));
1443
+ };
1344
1444
  for (let t4 = 1; t4 <= 5; t4++) {
1345
1445
  const i3 = document.createElement("label");
1346
1446
  i3.classList.add("magicfeedback-rating-star-option");
1347
1447
  const o2 = document.createElement("input");
1348
1448
  o2.id = `rating-${e3}-${t4}`, o2.type = "radio", o2.name = e3, o2.value = t4.toString(), o2.style.position = "absolute", o2.style.opacity = "0", o2.style.width = "0", o2.style.height = "0", o2.classList.add("magicfeedback-input"), a && a === o2.value && (o2.checked = true), o2.addEventListener("change", (() => {
1349
- const e4 = l.querySelectorAll(".rating__star");
1350
- for (let t5 = 0; t5 < e4.length; t5++) t5 + 1 <= Number(o2.value) ? e4[t5].classList.contains(s) || e4[t5].classList.add(s) : e4[t5].classList.contains(s) && e4[t5].classList.remove(s);
1351
- l.dataset.originalSelection = o2.value;
1449
+ l(Number(o2.value)), s.dataset.originalSelection = o2.value;
1352
1450
  })), (0, r.autoAdvanceOn)(o2, n2), i3.appendChild(o2);
1353
1451
  const d2 = document.createElement("label");
1354
- d2.htmlFor = `rating-${e3}-${t4}`, d2.classList.add("rating__star"), d2.textContent = "\u2605", d2.style.fontSize = "40px", d2.style.color = "#CCCCCC", d2.style.cursor = "pointer", d2.addEventListener("mouseenter", (() => {
1355
- const e4 = l.querySelectorAll(".rating__star"), i4 = t4 - 1;
1356
- e4.forEach(((e5, t5) => {
1357
- t5 <= i4 ? e5.classList.contains(s) || e5.classList.add(s) : e5.classList.contains(s) && e5.classList.remove(s);
1358
- }));
1359
- })), d2.addEventListener("mouseleave", (() => {
1360
- const e4 = Number(l.dataset.originalSelection || "0");
1361
- l.querySelectorAll(".rating__star").forEach(((t5, i4) => {
1362
- i4 < e4 ? t5.classList.contains(s) || t5.classList.add(s) : t5.classList.contains(s) && t5.classList.remove(s);
1363
- }));
1364
- })), i3.appendChild(d2), l.appendChild(i3);
1452
+ d2.htmlFor = `rating-${e3}-${t4}`, d2.classList.add("rating__star"), d2.textContent = "\u2605", d2.style.fontSize = "40px", d2.style.color = "#CCCCCC", d2.style.cursor = "pointer", d2.addEventListener("mouseenter", (() => l(t4))), d2.addEventListener("mouseleave", (() => l(Number(s.dataset.originalSelection || "0")))), i3.appendChild(d2), s.appendChild(i3);
1365
1453
  }
1366
- const d = o(t3, i2);
1367
- return d.childElementCount > 0 && l.appendChild(d), l;
1454
+ const d = s.querySelector("input:checked");
1455
+ d && (s.dataset.originalSelection = d.value, l(Number(d.value)));
1456
+ const c = o(t3, i2);
1457
+ return c.childElementCount > 0 && s.appendChild(c), s;
1368
1458
  }, t2.createRatingNumberElement = function(e3, i2, o2, a, s, l, d, c, u = {}) {
1369
1459
  var p, m;
1370
1460
  const h = document.createElement("div");
@@ -1382,21 +1472,21 @@ var require_magicfeedback_sdk_browser = __commonJS({
1382
1472
  const A = (null == i2 ? void 0 : i2.max) ? Number(null == i2 ? void 0 : i2.max) : 10, k = (null == i2 ? void 0 : i2.min) ? Number(null == i2 ? void 0 : i2.min) : 0;
1383
1473
  !v && A - k + 1 > 6 && E.classList.add("magicfeedback-rating-number-container-row--dense");
1384
1474
  const T = (null == i2 ? void 0 : i2.numberPlaceholders) || null, C = !(!T || !Object.keys(T).length);
1385
- let x = null;
1475
+ let P = null;
1386
1476
  if (!v && ((null == i2 ? void 0 : i2.minPlaceholder) || (null == i2 ? void 0 : i2.maxPlaceholder))) {
1387
- x = document.createElement("div"), x.classList.add("magicfeedback-rating-number-scale-labels");
1477
+ P = document.createElement("div"), P.classList.add("magicfeedback-rating-number-scale-labels");
1388
1478
  const e4 = document.createElement("span");
1389
1479
  e4.classList.add("magicfeedback-rating-number-scale-label"), e4.textContent = null !== (p = null == i2 ? void 0 : i2.minPlaceholder) && void 0 !== p ? p : "";
1390
1480
  const t3 = document.createElement("span");
1391
- t3.classList.add("magicfeedback-rating-number-scale-label"), t3.textContent = null !== (m = null == i2 ? void 0 : i2.maxPlaceholder) && void 0 !== m ? m : "", "ltr" === o2 ? (x.appendChild(e4), x.appendChild(t3)) : (x.appendChild(t3), x.appendChild(e4));
1481
+ t3.classList.add("magicfeedback-rating-number-scale-label"), t3.textContent = null !== (m = null == i2 ? void 0 : i2.maxPlaceholder) && void 0 !== m ? m : "", "ltr" === o2 ? (P.appendChild(e4), P.appendChild(t3)) : (P.appendChild(t3), P.appendChild(e4));
1392
1482
  }
1393
- let P = null;
1483
+ let w = null;
1394
1484
  if (v && !C && E.classList.add("magicfeedback-rating-number-container-column--bare"), (!v || !C) && ((null == i2 ? void 0 : i2.minPlaceholder) || (null == i2 ? void 0 : i2.maxPlaceholder))) {
1395
1485
  const e4 = "ltr" === o2 ? null == i2 ? void 0 : i2.minPlaceholder : null == i2 ? void 0 : i2.maxPlaceholder, t3 = "ltr" === o2 ? null == i2 ? void 0 : i2.maxPlaceholder : null == i2 ? void 0 : i2.minPlaceholder, n2 = (e5) => {
1396
1486
  const t4 = document.createElement("div");
1397
1487
  return t4.classList.add("magicfeedback-rating-number-scale-label-block"), v || (t4.classList.add("magicfeedback-rating-number-scale-label-block--stacked"), t4.style.display = "none"), t4.textContent = e5, t4;
1398
1488
  };
1399
- e4 && h.appendChild(n2(e4)), t3 && (P = n2(t3));
1489
+ e4 && h.appendChild(n2(e4)), t3 && (w = n2(t3));
1400
1490
  }
1401
1491
  for (let t3 = k; t3 <= A; t3++) {
1402
1492
  const n2 = document.createElement("div");
@@ -1418,7 +1508,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
1418
1508
  } else T && T[t3] && (o3.title = T[t3]);
1419
1509
  o3.appendChild(m2), n2.appendChild(o3), E.appendChild(n2);
1420
1510
  }
1421
- if (h.appendChild(E), P && h.appendChild(P), x && h.appendChild(x), v || f || (function(e4, i3, n2, r2) {
1511
+ if (h.appendChild(E), w && h.appendChild(w), P && h.appendChild(P), v || f || (function(e4, i3, n2, r2) {
1422
1512
  if ("undefined" == typeof ResizeObserver) return;
1423
1513
  const o3 = i3.classList.contains("magicfeedback-rating-number-container-row--dense");
1424
1514
  let a2 = 0, s2 = false;
@@ -1458,17 +1548,17 @@ var require_magicfeedback_sdk_browser = __commonJS({
1458
1548
  }, t2.usesLegacyRatingNumber = function(e3) {
1459
1549
  return !!e3 && /matas/i.test(e3);
1460
1550
  }, t2.RATING_NUMBER_MIN_CHIP_WIDTH = 44;
1461
- }, 7156: (e2, t2, i) => {
1551
+ }, 368: (e2, t2, i) => {
1462
1552
  "use strict";
1463
1553
  Object.defineProperty(t2, "__esModule", { value: true }), t2.getQuestionRenderer = void 0;
1464
- const n = i(1140), r = i(7352), o = i(5826), a = i(6054), s = i(8416), l = i(227), d = i(8707), c = i(511), u = i(6055), p = i(4310), m = i(5429), h = i(8822), f = i(6083), g = i(9102), y = i(6838), v = i(2427), b = i(1732), E = i(5469), A = i(4336), k = i(5963), T = i(4792), C = i(7754), x = /* @__PURE__ */ new Map([[n.FEEDBACKAPPANSWERTYPE.TEXT, s.renderText], [n.FEEDBACKAPPANSWERTYPE.LONGTEXT, o.renderLongText], [n.FEEDBACKAPPANSWERTYPE.NUMBER, a.renderNumber], [n.FEEDBACKAPPANSWERTYPE.RADIO, r.renderChoice], [n.FEEDBACKAPPANSWERTYPE.MULTIPLECHOICE, r.renderChoice], [n.FEEDBACKAPPANSWERTYPE.BOOLEAN, l.renderBoolean], [n.FEEDBACKAPPANSWERTYPE.SELECT, d.renderSelect], [n.FEEDBACKAPPANSWERTYPE.DATE, c.renderDate], [n.FEEDBACKAPPANSWERTYPE.EMAIL, u.renderEmail], [n.FEEDBACKAPPANSWERTYPE.PASSWORD, p.renderPassword], [n.FEEDBACKAPPANSWERTYPE.CONSENT, m.renderConsent], [n.FEEDBACKAPPANSWERTYPE.RATING_EMOJI, h.renderRatingEmoji], [n.FEEDBACKAPPANSWERTYPE.RATING_NUMBER, f.renderRatingNumber], [n.FEEDBACKAPPANSWERTYPE.RATING_STAR, g.renderRatingStar], [n.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX, y.renderMatrix], [n.FEEDBACKAPPANSWERTYPE.PRIORITY_LIST, v.renderPriorityList], [n.FEEDBACKAPPANSWERTYPE.POINT_SYSTEM, b.renderPointSystem], [n.FEEDBACKAPPANSWERTYPE.UPLOAD_IMAGE, E.renderUploadImage], [n.FEEDBACKAPPANSWERTYPE.UPLOAD_FILE, A.renderUploadFile], [n.FEEDBACKAPPANSWERTYPE.MULTIPLECHOISE_IMAGE, k.renderMultipleChoiceImage], [n.FEEDBACKAPPANSWERTYPE.INFO_PAGE, T.renderInfoPage], [n.FEEDBACKAPPANSWERTYPE.MAX_DIFF, C.renderMaxDiff]]);
1554
+ const n = i(4760), r = i(620), o = i(9006), a = i(3034), s = i(8924), l = i(2807), d = i(2311), c = i(8139), u = i(6363), p = i(7282), m = i(9369), h = i(2626), f = i(2255), g = i(1042), y = i(1994), v = i(1615), b = i(8160), E = i(9169), A = i(1724), k = i(2287), T = i(9796), C = i(5430), P = /* @__PURE__ */ new Map([[n.FEEDBACKAPPANSWERTYPE.TEXT, s.renderText], [n.FEEDBACKAPPANSWERTYPE.LONGTEXT, o.renderLongText], [n.FEEDBACKAPPANSWERTYPE.NUMBER, a.renderNumber], [n.FEEDBACKAPPANSWERTYPE.RADIO, r.renderChoice], [n.FEEDBACKAPPANSWERTYPE.MULTIPLECHOICE, r.renderChoice], [n.FEEDBACKAPPANSWERTYPE.BOOLEAN, l.renderBoolean], [n.FEEDBACKAPPANSWERTYPE.SELECT, d.renderSelect], [n.FEEDBACKAPPANSWERTYPE.DATE, c.renderDate], [n.FEEDBACKAPPANSWERTYPE.EMAIL, u.renderEmail], [n.FEEDBACKAPPANSWERTYPE.PASSWORD, p.renderPassword], [n.FEEDBACKAPPANSWERTYPE.CONSENT, m.renderConsent], [n.FEEDBACKAPPANSWERTYPE.RATING_EMOJI, h.renderRatingEmoji], [n.FEEDBACKAPPANSWERTYPE.RATING_NUMBER, f.renderRatingNumber], [n.FEEDBACKAPPANSWERTYPE.RATING_STAR, g.renderRatingStar], [n.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX, y.renderMatrix], [n.FEEDBACKAPPANSWERTYPE.PRIORITY_LIST, v.renderPriorityList], [n.FEEDBACKAPPANSWERTYPE.POINT_SYSTEM, b.renderPointSystem], [n.FEEDBACKAPPANSWERTYPE.UPLOAD_IMAGE, E.renderUploadImage], [n.FEEDBACKAPPANSWERTYPE.UPLOAD_FILE, A.renderUploadFile], [n.FEEDBACKAPPANSWERTYPE.MULTIPLECHOISE_IMAGE, k.renderMultipleChoiceImage], [n.FEEDBACKAPPANSWERTYPE.INFO_PAGE, T.renderInfoPage], [n.FEEDBACKAPPANSWERTYPE.MAX_DIFF, C.renderMaxDiff]]);
1465
1555
  t2.getQuestionRenderer = function(e3) {
1466
- return x.get(e3);
1556
+ return P.get(e3);
1467
1557
  };
1468
- }, 227: (e2, t2, i) => {
1558
+ }, 2807: (e2, t2, i) => {
1469
1559
  "use strict";
1470
1560
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderBoolean = void 0;
1471
- const n = i(6658), r = i(2139);
1561
+ const n = i(1366), r = i(9039);
1472
1562
  t2.renderBoolean = ({ question: e3, language: t3, urlParamValue: i2, send: o }) => {
1473
1563
  const { ref: a, assets: s } = e3, l = document.createElement("div"), d = "magicfeedback-radio", c = document.createElement("div");
1474
1564
  return c.classList.add("magicfeedback-boolean-container"), c.style.display = "flex", c.style.flexDirection = "row", c.style.justifyContent = "space-between", c.style.width = "70%", c.style.margin = "auto", ((null == s ? void 0 : s.addIcon) ? ["\u{1F44D}", "\u{1F44E}"] : (0, n.getBooleanOptions)(t3)).forEach(((e4, t4) => {
@@ -1480,10 +1570,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
1480
1570
  l2.id = `rating-${a}-${t4}`, l2.type = "radio", l2.name = a, l2.value = ["Yes", "No"][t4], l2.classList.add(d), l2.classList.add("magicfeedback-input"), l2.style.position = "absolute", l2.style.opacity = "0", l2.style.width = "0", l2.style.height = "0", l2.style.margin = "0", (0, r.autoAdvanceOn)(l2, o), i2 && i2.toLowerCase() === l2.value.toLowerCase() && (l2.checked = true), n2.appendChild(l2), n2.appendChild(s2), c.appendChild(n2);
1481
1571
  })), l.appendChild(c), { element: l, elementTypeClass: d };
1482
1572
  };
1483
- }, 7352: (e2, t2, i) => {
1573
+ }, 620: (e2, t2, i) => {
1484
1574
  "use strict";
1485
1575
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderChoice = void 0;
1486
- const n = i(1140), r = i(9930), o = i(2139);
1576
+ const n = i(4760), r = i(3262), o = i(9039);
1487
1577
  t2.renderChoice = ({ question: e3, language: t3, urlParamValue: i2, randomPosition: a, send: s }) => {
1488
1578
  const { type: l, ref: d, value: c, defaultValue: u, assets: p } = e3, m = document.createElement("div"), h = "magicfeedback-" + ("MULTIPLECHOICE" === l ? "checkbox" : "radio");
1489
1579
  let f = c || [];
@@ -1512,29 +1602,29 @@ var require_magicfeedback_sdk_browser = __commonJS({
1512
1602
  }
1513
1603
  })), { element: m, elementTypeClass: h };
1514
1604
  };
1515
- }, 5429: (e2, t2, i) => {
1605
+ }, 9369: (e2, t2, i) => {
1516
1606
  "use strict";
1517
1607
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderConsent = void 0;
1518
- const n = i(2139);
1608
+ const n = i(9039);
1519
1609
  t2.renderConsent = ({ question: e3, urlParamValue: t3, send: i2 }) => {
1520
1610
  const { id: r, ref: o, value: a, require: s } = e3, l = document.createElement("input");
1521
1611
  return l.type = "checkbox", l.id = `magicfeedback-${r}`, l.name = o, l.value = "true", l.required = s, l.classList.add("magicfeedback-consent"), l.classList.add("magicfeedback-input"), t3 && a.includes(t3) && (l.checked = true), (0, n.autoAdvanceOn)(l, i2), { element: l, elementTypeClass: "magicfeedback-consent" };
1522
1612
  };
1523
- }, 511: (e2, t2, i) => {
1613
+ }, 8139: (e2, t2, i) => {
1524
1614
  "use strict";
1525
1615
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderDate = void 0;
1526
- const n = i(9930);
1616
+ const n = i(3262);
1527
1617
  t2.renderDate = ({ language: e3, placeholderText: t3, urlParamValue: i2 }) => {
1528
1618
  const r = document.createElement("input");
1529
1619
  return r.type = "date", r.placeholder = t3 || n.placeholder.date(e3 || "en"), i2 && (r.value = i2), { element: r, elementTypeClass: "magicfeedback-date" };
1530
1620
  };
1531
- }, 6055: (e2, t2) => {
1621
+ }, 6363: (e2, t2) => {
1532
1622
  "use strict";
1533
1623
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderEmail = void 0, t2.renderEmail = ({ placeholderText: e3, urlParamValue: t3 }) => {
1534
1624
  const i = document.createElement("input");
1535
1625
  return i.type = "email", i.placeholder = e3 || "you@example.com", t3 && (i.value = t3), { element: i, elementTypeClass: "magicfeedback-email" };
1536
1626
  };
1537
- }, 4792: (e2, t2) => {
1627
+ }, 9796: (e2, t2) => {
1538
1628
  "use strict";
1539
1629
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderInfoPage = void 0, t2.renderInfoPage = ({ question: e3, placeholderText: t3 }) => {
1540
1630
  var i, n;
@@ -1545,15 +1635,15 @@ var require_magicfeedback_sdk_browser = __commonJS({
1545
1635
  }
1546
1636
  return { element: r, elementTypeClass: "magicfeedback-info-page" };
1547
1637
  };
1548
- }, 5826: (e2, t2, i) => {
1638
+ }, 9006: (e2, t2, i) => {
1549
1639
  "use strict";
1550
1640
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderLongText = void 0;
1551
- const n = i(9930);
1641
+ const n = i(3262);
1552
1642
  t2.renderLongText = ({ language: e3, placeholderText: t3, urlParamValue: i2, maxCharacters: r }) => {
1553
1643
  const o = document.createElement("textarea");
1554
1644
  return o.rows = 3, r > 0 && (o.maxLength = r), o.placeholder = t3 || n.placeholder.answer(e3 || "en"), i2 && (o.value = i2), { element: o, elementTypeClass: "magicfeedback-longtext" };
1555
1645
  };
1556
- }, 6838: (e2, t2) => {
1646
+ }, 1994: (e2, t2) => {
1557
1647
  "use strict";
1558
1648
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderMatrix = void 0, t2.renderMatrix = ({ question: e3, isPhone: t3, randomPosition: i }) => {
1559
1649
  const { ref: n, value: r, assets: o } = e3, a = document.createElement("div"), s = document.createElement("div");
@@ -1601,10 +1691,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
1601
1691
  }
1602
1692
  return a.appendChild(s), { element: a, elementTypeClass: "magicfeedback-multi-question-matrix" };
1603
1693
  };
1604
- }, 7754: (e2, t2, i) => {
1694
+ }, 5430: (e2, t2, i) => {
1605
1695
  "use strict";
1606
1696
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderMaxDiff = void 0;
1607
- const n = i(6658), r = i(7031), o = "http://www.w3.org/2000/svg";
1697
+ const n = i(1366), r = i(7627), o = "http://www.w3.org/2000/svg";
1608
1698
  t2.renderMaxDiff = ({ question: e3, language: t3, randomPosition: i2 }) => {
1609
1699
  const { ref: a, value: s, assets: l } = e3, d = document.createElement("div");
1610
1700
  let c = [...s || []];
@@ -1657,10 +1747,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
1657
1747
  })));
1658
1748
  })), p.appendChild(f), d.appendChild(p), { element: d, elementTypeClass: "magicfeedback-max-diff" };
1659
1749
  };
1660
- }, 5963: (e2, t2, i) => {
1750
+ }, 2287: (e2, t2, i) => {
1661
1751
  "use strict";
1662
1752
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderMultipleChoiceImage = void 0;
1663
- const n = i(2139);
1753
+ const n = i(9039);
1664
1754
  t2.renderMultipleChoiceImage = ({ question: e3, randomPosition: t3, urlParamValue: i2, send: r }) => {
1665
1755
  const o = document.createElement("div"), { ref: a, assets: s } = e3;
1666
1756
  let l = [...e3.value];
@@ -1709,28 +1799,28 @@ var require_magicfeedback_sdk_browser = __commonJS({
1709
1799
  }
1710
1800
  return t3 && (l = l.sort((() => Math.random() - 0.5))), l.forEach(((e4) => g(JSON.parse(e4)))), f && (null == s ? void 0 : s.extraOptionValue) && (null == s ? void 0 : s.extraOptionValue.length) > 0 && g(null == s ? void 0 : s.extraOptionValue[0]), o.appendChild(d), { element: o, elementTypeClass: "magicfeedback-multiple-choice-image" };
1711
1801
  };
1712
- }, 6054: (e2, t2, i) => {
1802
+ }, 3034: (e2, t2, i) => {
1713
1803
  "use strict";
1714
1804
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderNumber = void 0;
1715
- const n = i(9930), r = i(6658);
1805
+ const n = i(3262), r = i(1366);
1716
1806
  t2.renderNumber = ({ question: e3, format: t3, language: i2, urlParamValue: o }) => {
1717
1807
  const a = document.createElement("input");
1718
1808
  a.type = "number", a.placeholder = "slim" === t3 ? (0, r.parseTitle)(e3.title, i2) : n.placeholder.number(i2 || "en");
1719
1809
  const { value: s } = e3;
1720
1810
  return s.length && (s.sort(((e4, t4) => Number(e4) - Number(t4))), a.max = s[s.length - 1], a.min = s[0], a.value = s[0]), o && !isNaN(Number(o)) && (a.value = o), { element: a, elementTypeClass: "magicfeedback-number" };
1721
1811
  };
1722
- }, 4310: (e2, t2, i) => {
1812
+ }, 7282: (e2, t2, i) => {
1723
1813
  "use strict";
1724
1814
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderPassword = void 0;
1725
- const n = i(9930);
1815
+ const n = i(3262);
1726
1816
  t2.renderPassword = ({ language: e3, placeholderText: t3, urlParamValue: i2 }) => {
1727
1817
  const r = document.createElement("input");
1728
1818
  return r.type = "password", r.placeholder = t3 || n.placeholder.password(e3 || "en"), i2 && (r.value = i2), { element: r, elementTypeClass: "magicfeedback-password" };
1729
1819
  };
1730
- }, 1732: (e2, t2, i) => {
1820
+ }, 8160: (e2, t2, i) => {
1731
1821
  "use strict";
1732
1822
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderPointSystem = void 0;
1733
- const n = i(9930);
1823
+ const n = i(3262);
1734
1824
  t2.renderPointSystem = ({ question: e3, language: t3 }) => {
1735
1825
  const { ref: i2, value: r } = e3, o = document.createElement("div"), a = document.createElement("div");
1736
1826
  a.classList.add("magicfeedback-point-system-container");
@@ -1771,10 +1861,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
1771
1861
  })), o2.appendChild(a2), o2.appendChild(p), n2.appendChild(o2), s.appendChild(n2);
1772
1862
  })), a.appendChild(s), a.appendChild(c), a.appendChild(d), o.appendChild(a), { element: o, elementTypeClass: "magicfeedback-point-system" };
1773
1863
  };
1774
- }, 2427: (e2, t2, i) => {
1864
+ }, 1615: (e2, t2, i) => {
1775
1865
  "use strict";
1776
1866
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderPriorityList = void 0;
1777
- const n = i(7031);
1867
+ const n = i(7627);
1778
1868
  t2.renderPriorityList = ({ question: e3, randomPosition: t3, language: i2 }) => {
1779
1869
  var r, o, a;
1780
1870
  const s = document.createElement("div"), l = (function(e4) {
@@ -1870,23 +1960,23 @@ var require_magicfeedback_sdk_browser = __commonJS({
1870
1960
  T.textContent = `${d("prioritized")} ${e5.length} ${t5} ${a2}`, u2.style.display = e5.length > 0 ? "block" : "none";
1871
1961
  };
1872
1962
  C();
1873
- const x = document.createElement("button");
1874
- x.type = "button", x.classList.add("magicfeedback-modal-close"), x.setAttribute("aria-label", d("cancel")), x.title = d("cancel"), x.textContent = "\xD7", x.style.position = "absolute", x.style.top = "8px", x.style.setProperty("inset-inline-end", "8px"), x.style.border = "none", x.style.background = "transparent", x.style.fontSize = "24px", x.style.cursor = "pointer";
1875
- const P = () => {
1963
+ const P = document.createElement("button");
1964
+ P.type = "button", P.classList.add("magicfeedback-modal-close"), P.setAttribute("aria-label", d("cancel")), P.title = d("cancel"), P.textContent = "\xD7", P.style.position = "absolute", P.style.top = "8px", P.style.setProperty("inset-inline-end", "8px"), P.style.border = "none", P.style.background = "transparent", P.style.fontSize = "24px", P.style.cursor = "pointer";
1965
+ const w = () => {
1876
1966
  document.body.appendChild(g), g.style.display = "flex", E(), C();
1877
- }, L = () => {
1967
+ }, x = () => {
1878
1968
  g.style.display = "none", c.appendChild(g);
1879
1969
  };
1880
- x.addEventListener("click", (() => {
1881
- L();
1970
+ P.addEventListener("click", (() => {
1971
+ x();
1882
1972
  }));
1883
1973
  const S = document.createElement("button");
1884
1974
  return S.type = "button", S.textContent = d("confirm"), S.classList.add("magicfeedback-button"), S.classList.add("magicfeedback-button-primary"), S.addEventListener("click", (() => {
1885
- L(), f();
1886
- })), k.appendChild(T), k.appendChild(S), y.appendChild(x), y.appendChild(v), y.appendChild(A), y.appendChild(k), g.appendChild(y), p2.addEventListener("click", (() => {
1887
- P();
1975
+ x(), f();
1976
+ })), k.appendChild(T), k.appendChild(S), y.appendChild(P), y.appendChild(v), y.appendChild(A), y.appendChild(k), g.appendChild(y), p2.addEventListener("click", (() => {
1977
+ w();
1888
1978
  })), g.addEventListener("click", ((e6) => {
1889
- e6.target === g && L();
1979
+ e6.target === g && x();
1890
1980
  })), c.appendChild(o3), c.appendChild(m), c.appendChild(g), f(), c;
1891
1981
  }
1892
1982
  const u = document.createElement("ul");
@@ -1935,10 +2025,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
1935
2025
  })({ value: e3.value, ref: e3.ref, randomPosition: t3, limitPriority: (null === (r = e3.assets) || void 0 === r ? void 0 : r.limitPriority) || false, maxPriority: (null === (o = e3.assets) || void 0 === o ? void 0 : o.maxPriority) || 0, placeholder: (null === (a = e3.assets) || void 0 === a ? void 0 : a.placeholder) || "", language: i2 || "en" });
1936
2026
  return s.appendChild(l), { element: s, elementTypeClass: "magicfeedback-priority-list" };
1937
2027
  };
1938
- }, 8822: (e2, t2, i) => {
2028
+ }, 2626: (e2, t2, i) => {
1939
2029
  "use strict";
1940
2030
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderRatingEmoji = void 0;
1941
- const n = i(1433), r = i(2139), o = "https://survey-dev.magicfeedback.io/assets/emojis";
2031
+ const n = i(2709), r = i(9039), o = "https://survey-dev.magicfeedback.io/assets/emojis";
1942
2032
  t2.renderRatingEmoji = ({ question: e3, url: t3, send: i2, urlParamValue: a }) => {
1943
2033
  const { ref: s, assets: l } = e3, d = document.createElement("div"), c = "magicfeedback-rating", u = document.createElement("div");
1944
2034
  u.classList.add("magicfeedback-rating-container");
@@ -1989,27 +2079,27 @@ var require_magicfeedback_sdk_browser = __commonJS({
1989
2079
  }
1990
2080
  return h.childElementCount > 0 && u.appendChild(h), d.appendChild(u), { element: d, elementTypeClass: c };
1991
2081
  };
1992
- }, 6083: (e2, t2, i) => {
2082
+ }, 2255: (e2, t2, i) => {
1993
2083
  "use strict";
1994
2084
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderRatingNumber = void 0;
1995
- const n = i(1433);
2085
+ const n = i(2709);
1996
2086
  t2.renderRatingNumber = ({ question: e3, order: t3, direction: i2, send: r, urlParamValue: o, language: a, isPhone: s, productId: l }) => {
1997
2087
  const d = "magicfeedback-rating-number";
1998
2088
  return { element: (0, n.createRatingNumberElement)(e3.ref, e3.assets, t3, i2, d, r, o, a, { legacy: (0, n.usesLegacyRatingNumber)(l), isPhone: s }), elementTypeClass: d };
1999
2089
  };
2000
- }, 9102: (e2, t2, i) => {
2090
+ }, 1042: (e2, t2, i) => {
2001
2091
  "use strict";
2002
2092
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderRatingStar = void 0;
2003
- const n = i(1433);
2093
+ const n = i(2709);
2004
2094
  t2.renderRatingStar = ({ question: e3, send: t3, urlParamValue: i2 }) => {
2005
2095
  var r, o;
2006
2096
  const a = document.createElement("div"), s = (0, n.createStarRating)(e3.ref, null === (r = e3.assets) || void 0 === r ? void 0 : r.minPlaceholder, null === (o = e3.assets) || void 0 === o ? void 0 : o.maxPlaceholder, t3, i2);
2007
2097
  return a.appendChild(s), { element: a, elementTypeClass: "magicfeedback-rating-star" };
2008
2098
  };
2009
- }, 8707: (e2, t2, i) => {
2099
+ }, 2311: (e2, t2, i) => {
2010
2100
  "use strict";
2011
2101
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderSelect = void 0;
2012
- const n = i(6658), r = i(7031);
2102
+ const n = i(1366), r = i(7627);
2013
2103
  t2.renderSelect = ({ question: e3, format: t3, language: i2, urlParamValue: o }) => {
2014
2104
  const { title: a, value: s, defaultValue: l } = e3, d = document.createElement("select"), c = document.createElement("option");
2015
2105
  return c.value = "", c.text = "slim" === t3 ? (0, n.parseTitle)(a, i2) : l || (0, r.t)(i2, "select.placeholder"), c.disabled = true, c.selected = true, d.appendChild(c), s.forEach(((e4) => {
@@ -2017,27 +2107,27 @@ var require_magicfeedback_sdk_browser = __commonJS({
2017
2107
  t4.value = e4, t4.text = e4, d.appendChild(t4);
2018
2108
  })), o && s.includes(o) && (d.value = o), { element: d, elementTypeClass: "magicfeedback-select" };
2019
2109
  };
2020
- }, 8416: (e2, t2, i) => {
2110
+ }, 8924: (e2, t2, i) => {
2021
2111
  "use strict";
2022
2112
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderText = void 0;
2023
- const n = i(9930);
2113
+ const n = i(3262);
2024
2114
  t2.renderText = ({ language: e3, placeholderText: t3, urlParamValue: i2, send: r }) => {
2025
2115
  const o = document.createElement("input");
2026
2116
  return o.type = "text", o.placeholder = t3 || n.placeholder.answer(e3 || "en"), i2 && (o.value = i2), o.addEventListener("keyup", ((e4) => {
2027
2117
  e4.preventDefault(), "Enter" === e4.key && r && r();
2028
2118
  })), { element: o, elementTypeClass: "magicfeedback-text" };
2029
2119
  };
2030
- }, 4336: (e2, t2, i) => {
2120
+ }, 1724: (e2, t2, i) => {
2031
2121
  "use strict";
2032
2122
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderUploadFile = void 0;
2033
- const n = i(1853);
2123
+ const n = i(8129);
2034
2124
  t2.renderUploadFile = ({ question: e3, language: t3 }) => (0, n.createUploadControl)(e3, t3, "file");
2035
- }, 5469: (e2, t2, i) => {
2125
+ }, 9169: (e2, t2, i) => {
2036
2126
  "use strict";
2037
2127
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderUploadImage = void 0;
2038
- const n = i(1853);
2128
+ const n = i(8129);
2039
2129
  t2.renderUploadImage = ({ question: e3, language: t3 }) => (0, n.createUploadControl)(e3, t3, "image");
2040
- }, 1853: function(e2, t2, i) {
2130
+ }, 8129: function(e2, t2, i) {
2041
2131
  "use strict";
2042
2132
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
2043
2133
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -2065,7 +2155,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2065
2155
  }));
2066
2156
  };
2067
2157
  Object.defineProperty(t2, "__esModule", { value: true }), t2.createUploadControl = t2.awaitUploadReady = t2.getUploadValues = t2.formatFileSize = void 0;
2068
- const r = i(9930), o = i(6658), a = "__mfUploadValues", s = "__mfUploadReady";
2158
+ const r = i(3262), o = i(1366), a = "__mfUploadValues", s = "__mfUploadReady";
2069
2159
  function l(e3) {
2070
2160
  if ("number" != typeof e3 || isNaN(e3)) return "";
2071
2161
  if (e3 < 1024) return `${e3} B`;
@@ -2103,25 +2193,25 @@ var require_magicfeedback_sdk_browser = __commonJS({
2103
2193
  })(t3, i2, m, h, f), E.appendChild(v), E.appendChild(A), E.appendChild(k), E.appendChild(T);
2104
2194
  const C = document.createElement("div");
2105
2195
  C.classList.add("magicfeedback-upload-error");
2106
- const x = document.createElement("ul");
2107
- x.classList.add("magicfeedback-upload-list"), y.appendChild(E), y.appendChild(C), y.appendChild(x);
2108
- const P = /* @__PURE__ */ new WeakMap(), L = (e4) => {
2109
- const t4 = P.get(e4);
2196
+ const P = document.createElement("ul");
2197
+ P.classList.add("magicfeedback-upload-list"), y.appendChild(E), y.appendChild(C), y.appendChild(P);
2198
+ const w = /* @__PURE__ */ new WeakMap(), x = (e4) => {
2199
+ const t4 = w.get(e4);
2110
2200
  return t4 ? Promise.resolve(t4) : new Promise(((t5) => {
2111
2201
  const i3 = new FileReader(), n3 = (i4) => {
2112
2202
  const n4 = JSON.stringify({ name: e4.name, type: e4.type, size: e4.size, content: i4 });
2113
- P.set(e4, n4), t5(n4);
2203
+ w.set(e4, n4), t5(n4);
2114
2204
  };
2115
2205
  i3.onload = () => n3("string" == typeof i3.result ? i3.result : ""), i3.onerror = () => n3(""), i3.readAsDataURL(e4);
2116
2206
  }));
2117
- }, S = [], w = (e4) => {
2207
+ }, S = [], O = (e4) => {
2118
2208
  try {
2119
2209
  const t4 = h > 0 ? e4.slice(0, h) : e4, i3 = new DataTransfer();
2120
2210
  t4.forEach(((e5) => i3.items.add(e5))), v.files = i3.files;
2121
2211
  } catch (e5) {
2122
2212
  }
2123
2213
  !(function() {
2124
- S.forEach(((e6) => URL.revokeObjectURL(e6))), S.length = 0, x.innerHTML = "";
2214
+ S.forEach(((e6) => URL.revokeObjectURL(e6))), S.length = 0, P.innerHTML = "";
2125
2215
  const e5 = Array.from(v.files || []);
2126
2216
  y.classList.toggle("magicfeedback-upload--has-files", e5.length > 0), e5.forEach(((e6, n3) => {
2127
2217
  const o2 = document.createElement("li");
@@ -2141,16 +2231,16 @@ var require_magicfeedback_sdk_browser = __commonJS({
2141
2231
  c2.classList.add("magicfeedback-upload-file-size"), c2.textContent = l(e6.size), s2.appendChild(d2), s2.appendChild(c2);
2142
2232
  const u2 = document.createElement("button");
2143
2233
  u2.type = "button", u2.classList.add("magicfeedback-upload-remove"), u2.setAttribute("aria-label", `${r.placeholder.upload.remove(t3)}: ${e6.name}`), u2.innerHTML = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>', u2.addEventListener("click", ((e7) => {
2144
- e7.preventDefault(), e7.stopPropagation(), w(Array.from(v.files || []).filter(((e8, t4) => t4 !== n3)));
2145
- })), o2.appendChild(a2), o2.appendChild(s2), o2.appendChild(u2), x.appendChild(o2);
2234
+ e7.preventDefault(), e7.stopPropagation(), O(Array.from(v.files || []).filter(((e8, t4) => t4 !== n3)));
2235
+ })), o2.appendChild(a2), o2.appendChild(s2), o2.appendChild(u2), P.appendChild(o2);
2146
2236
  }));
2147
2237
  })(), (() => {
2148
- const e5 = Array.from(v.files || []), t4 = Promise.all(e5.map(L)).then(((e6) => {
2238
+ const e5 = Array.from(v.files || []), t4 = Promise.all(e5.map(x)).then(((e6) => {
2149
2239
  v[a] = e6;
2150
2240
  }));
2151
2241
  v[s] = t4;
2152
2242
  })();
2153
- }, O = (e4) => {
2243
+ }, L = (e4) => {
2154
2244
  if (!e4.length) return C.textContent = "", void C.classList.remove("is-visible");
2155
2245
  const i3 = e4.map(((e5) => e5.name)).join(", ");
2156
2246
  C.textContent = `${r.placeholder.upload.tooLarge(t3, f)}: ${i3}`, C.classList.add("is-visible");
@@ -2161,7 +2251,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2161
2251
  };
2162
2252
  v.addEventListener("change", (() => {
2163
2253
  const { accepted: e4, rejected: t4 } = N(Array.from(v.files || []));
2164
- O(t4), w(e4);
2254
+ L(t4), O(e4);
2165
2255
  }));
2166
2256
  const I = (e4) => {
2167
2257
  e4.preventDefault(), e4.stopPropagation();
@@ -2176,12 +2266,12 @@ var require_magicfeedback_sdk_browser = __commonJS({
2176
2266
  let n3 = t4 ? Array.from(t4.files) : [];
2177
2267
  if ("image" === i2 && (n3 = n3.filter(((e5) => e5.type.startsWith("image/")))), !n3.length) return;
2178
2268
  const { accepted: r2, rejected: o2 } = N(n3);
2179
- if (O(o2), !r2.length) return;
2269
+ if (L(o2), !r2.length) return;
2180
2270
  const a2 = m ? Array.from(v.files || []) : [];
2181
- w(a2.concat(r2));
2271
+ O(a2.concat(r2));
2182
2272
  })), { element: y, elementTypeClass: p };
2183
2273
  };
2184
- }, 8019: function(e2, t2, i) {
2274
+ }, 4759: function(e2, t2, i) {
2185
2275
  "use strict";
2186
2276
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
2187
2277
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -2211,7 +2301,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2211
2301
  return e3 && e3.__esModule ? e3 : { default: e3 };
2212
2302
  };
2213
2303
  Object.defineProperty(t2, "__esModule", { value: true }), t2.nextAgentTurn = t2.startAgentSurvey = void 0;
2214
- const o = r(i(6911)), a = i(6891), s = i(1347), l = i(9);
2304
+ const o = r(i(6539)), a = i(9071), s = i(5407), l = i(3501);
2215
2305
  function d(e3, t3, i2, r2, s2) {
2216
2306
  var d2;
2217
2307
  return n(this, void 0, void 0, (function* () {
@@ -2247,7 +2337,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2247
2337
  }, t2.nextAgentTurn = function(e3, t3, i2) {
2248
2338
  return d(e3, s.endpoints.sdk.agentSurveyNext, t3, i2, "next");
2249
2339
  };
2250
- }, 9: (e2, t2) => {
2340
+ }, 3501: (e2, t2) => {
2251
2341
  "use strict";
2252
2342
  Object.defineProperty(t2, "__esModule", { value: true }), t2.mapAgentStatus = t2.AgentApiError = void 0;
2253
2343
  class i extends Error {
@@ -2261,10 +2351,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
2261
2351
  t2.AgentApiError = i, t2.mapAgentStatus = function(e3, t3) {
2262
2352
  return 429 === e3 ? "RATE_LIMITED" : 406 === e3 || 401 === e3 || 403 === e3 ? "AUTH" : 404 === e3 ? "NOT_FOUND" : 400 === e3 || 422 === e3 ? "BAD_CONFIG" : e3 >= 500 ? "start" === t3 ? "AI_UNAVAILABLE" : "NETWORK" : "MALFORMED";
2263
2353
  };
2264
- }, 3963: (e2, t2, i) => {
2354
+ }, 1351: (e2, t2, i) => {
2265
2355
  "use strict";
2266
2356
  Object.defineProperty(t2, "__esModule", { value: true }), t2.encodeAnswer = t2.toAgentStep = t2.ratingBounds = t2.mapAgentType = t2.DEFAULT_ANSWER_DELIMITER = void 0;
2267
- const n = i(1140), r = i(6658);
2357
+ const n = i(4760), r = i(1366);
2268
2358
  t2.DEFAULT_ANSWER_DELIMITER = ", ";
2269
2359
  const o = [n.FEEDBACKAPPANSWERTYPE.RADIO, n.FEEDBACKAPPANSWERTYPE.MULTIPLECHOICE, n.FEEDBACKAPPANSWERTYPE.SELECT, n.FEEDBACKAPPANSWERTYPE.MULTIPLECHOISE_IMAGE], a = Object.values(n.FEEDBACKAPPANSWERTYPE);
2270
2360
  function s(e3, t3, i2) {
@@ -2307,10 +2397,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
2307
2397
  const r2 = i2.ref, o2 = (e4) => e4.flatMap(((e5) => Array.isArray(e5.value) ? e5.value : [e5.value])).map(((e5) => "string" == typeof e5 ? e5 : JSON.stringify(e5))).map(((e5) => (e5 || "").trim())).filter(((e5) => "" !== e5)), a2 = o2(e3.filter(((e4) => e4.key === r2))), s2 = o2(e3.filter(((e4) => e4.key === `extra-option-${r2}`)));
2308
2398
  return [a2.filter(((e4, t3) => a2.indexOf(e4) === t3)).join(n2), s2.join(n2)].filter(((e4) => "" !== e4)).join(n2);
2309
2399
  };
2310
- }, 1817: (e2, t2, i) => {
2400
+ }, 5349: (e2, t2, i) => {
2311
2401
  "use strict";
2312
2402
  Object.defineProperty(t2, "__esModule", { value: true }), t2.scrapeInputs = void 0;
2313
- const n = i(1853);
2403
+ const n = i(8129);
2314
2404
  t2.scrapeInputs = function(e3) {
2315
2405
  const t3 = e3.querySelectorAll(".magicfeedback-input"), i2 = [], r = {};
2316
2406
  return t3.forEach(((e4) => {
@@ -2332,7 +2422,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2332
2422
  i2.push({ key: e4, value: n2 });
2333
2423
  })), i2;
2334
2424
  };
2335
- }, 7031: (e2, t2) => {
2425
+ }, 7627: (e2, t2) => {
2336
2426
  "use strict";
2337
2427
  Object.defineProperty(t2, "__esModule", { value: true }), t2.t = t2.isLanguageSupported = t2.isRtlLanguage = t2.hasOwnTranslation = t2.TRANSLATION_KEYS = t2.normalizeLanguage = t2.RTL_LANGUAGES = t2.AVAILABLE_LANGUAGES = t2.SUPPORTED_LANGUAGES = void 0;
2338
2428
  const i = { "placeholder.answer": "Write your answer here...", "placeholder.number": "Write your number here...", "placeholder.email": "Write your email here...", "placeholder.date": "Write your date here...", "placeholder.password": "Write your password here...", "pointSystem.error": "The total points must be 100 %", "boolean.yes": "Yes", "boolean.no": "No", "upload.cta": "Drag & drop or click to upload", "upload.imagesOnly": "Images only", "upload.anyFileType": "Any file type", "upload.maxFiles": "Max {n} files", "upload.maxSize": "Max {mb} MB", "upload.tooLarge": "File is too large (max {mb} MB)", "upload.remove": "Remove", "select.placeholder": "Select an option", "rating.ariaLabel": "Rating", "maxDiff.best": "Most important", "maxDiff.worst": "Least important", "maxDiff.setProgress": "Block {k} of {n}", "priority.selectUpTo": "Select up to", "priority.options": "options", "priority.thenOrder": "and then order them", "priority.selectOptions": "Select options", "priority.cancel": "Cancel", "priority.confirm": "Confirm", "priority.selectOptionNumber": "Select option #", "priority.prioritized": "Prioritized", "priority.of": "of", "priority.instruction": "Your priority list can be seen below. If you wish, you can rearrange your choices using the arrows. Click 'Next' to confirm your selection and proceed.", "action.send": "Send", "action.back": "Back", "action.next": "Next", "action.start": "Go!", "message.success": "Thank you for your feedback!", "message.blocked": "Thanks for your time - we'll end the conversation here.", "message.required": "Please answer before continuing.", "message.rateLimit": "Too many requests. Retrying in {seconds}s..." }, n = { en: i, es: { "placeholder.answer": "Escribe tu respuesta aqu\xED...", "placeholder.number": "Escribe tu n\xFAmero aqu\xED...", "placeholder.email": "Escribe tu correo electr\xF3nico aqu\xED...", "placeholder.date": "Escribe tu fecha aqu\xED...", "placeholder.password": "Escribe tu contrase\xF1a aqu\xED...", "pointSystem.error": "El total de puntos debe ser 100 %", "boolean.yes": "S\xED", "boolean.no": "No", "upload.cta": "Arrastra y suelta o haz clic para subir", "upload.imagesOnly": "Solo im\xE1genes", "upload.anyFileType": "Cualquier tipo de archivo", "upload.maxFiles": "M\xE1x. {n} archivos", "upload.maxSize": "M\xE1x. {mb} MB", "upload.tooLarge": "Archivo demasiado grande (m\xE1x. {mb} MB)", "upload.remove": "Eliminar", "select.placeholder": "Selecciona una opci\xF3n", "rating.ariaLabel": "Valoraci\xF3n", "maxDiff.best": "M\xE1s importante", "maxDiff.worst": "Menos importante", "maxDiff.setProgress": "Bloque {k} de {n}", "priority.selectUpTo": "Selecciona hasta", "priority.options": "opciones", "priority.thenOrder": "y luego ord\xE9nalas", "priority.selectOptions": "Seleccionar opciones", "priority.cancel": "Cancelar", "priority.confirm": "Confirmar", "priority.selectOptionNumber": "Selecciona la opci\xF3n #", "priority.prioritized": "Priorizadas", "priority.of": "de", "priority.instruction": 'Tu lista priorizada se muestra abajo. Si deseas, puedes reordenar las opciones con las flechas. Haz clic en "Siguiente" para confirmar y continuar.', "action.send": "Enviar", "action.back": "Atr\xE1s", "action.next": "Siguiente", "action.start": "\xA1Empezar!", "message.success": "\xA1Gracias por tus comentarios!", "message.blocked": "Gracias por tu tiempo, terminamos aqu\xED la conversaci\xF3n.", "message.required": "Por favor, responde antes de continuar.", "message.rateLimit": "Demasiadas solicitudes. Reintentando en {seconds} s..." }, de: { "placeholder.answer": "Schreiben Sie hier Ihre Antwort...", "placeholder.number": "Geben Sie hier Ihre Zahl ein...", "placeholder.email": "Geben Sie hier Ihre E-Mail-Adresse ein...", "placeholder.date": "Geben Sie hier Ihr Datum ein...", "placeholder.password": "Geben Sie hier Ihr Passwort ein...", "pointSystem.error": "Die Gesamtpunktzahl muss 100 % betragen", "boolean.yes": "Ja", "boolean.no": "Nein", "upload.cta": "Ziehen Sie Dateien hierher oder klicken Sie zum Hochladen", "upload.imagesOnly": "Nur Bilder", "upload.anyFileType": "Beliebiger Dateityp", "upload.maxFiles": "Max. {n} Dateien", "upload.maxSize": "Max. {mb} MB", "upload.tooLarge": "Datei ist zu gro\xDF (max. {mb} MB)", "upload.remove": "Entfernen", "select.placeholder": "Option ausw\xE4hlen", "rating.ariaLabel": "Bewertung", "maxDiff.best": "Am wichtigsten", "maxDiff.worst": "Am wenigsten wichtig", "maxDiff.setProgress": "Block {k} von {n}", "priority.selectUpTo": "W\xE4hlen Sie bis zu", "priority.options": "Optionen", "priority.thenOrder": "und ordnen Sie sie dann", "priority.selectOptions": "Optionen ausw\xE4hlen", "priority.cancel": "Abbrechen", "priority.confirm": "Best\xE4tigen", "priority.selectOptionNumber": "W\xE4hlen Sie Option #", "priority.prioritized": "Priorisiert", "priority.of": "von", "priority.instruction": 'Ihre Priorit\xE4tenliste wird unten angezeigt. Wenn Sie m\xF6chten, k\xF6nnen Sie Ihre Auswahl mit den Pfeilen neu anordnen. Klicken Sie auf "Weiter", um Ihre Auswahl zu best\xE4tigen und fortzufahren.', "action.send": "Senden", "action.back": "Zur\xFCck", "action.next": "Weiter", "action.start": "Los!", "message.success": "Vielen Dank f\xFCr Ihr Feedback!", "message.blocked": "Danke f\xFCr Ihre Zeit - wir beenden das Gespr\xE4ch hier.", "message.required": "Bitte antworten Sie, bevor Sie fortfahren.", "message.rateLimit": "Zu viele Anfragen. Erneuter Versuch in {seconds} s..." }, fr: { "placeholder.answer": "\xC9crivez votre r\xE9ponse ici...", "placeholder.number": "\xC9crivez votre nombre ici...", "placeholder.email": "\xC9crivez votre e-mail ici...", "placeholder.date": "\xC9crivez votre date ici...", "placeholder.password": "\xC9crivez votre mot de passe ici...", "pointSystem.error": "Le total des points doit \xEAtre de 100 %", "boolean.yes": "Oui", "boolean.no": "Non", "upload.cta": "Glissez-d\xE9posez ou cliquez pour t\xE9l\xE9verser", "upload.imagesOnly": "Images uniquement", "upload.anyFileType": "Tout type de fichier", "upload.maxFiles": "Max. {n} fichiers", "upload.maxSize": "Max. {mb} Mo", "upload.tooLarge": "Fichier trop volumineux (max. {mb} Mo)", "upload.remove": "Supprimer", "select.placeholder": "S\xE9lectionnez une option", "rating.ariaLabel": "\xC9valuation", "maxDiff.best": "Le plus important", "maxDiff.worst": "Le moins important", "maxDiff.setProgress": "Bloc {k} sur {n}", "priority.selectUpTo": "S\xE9lectionnez jusqu'\xE0", "priority.options": "options", "priority.thenOrder": "puis classez-les", "priority.selectOptions": "S\xE9lectionner des options", "priority.cancel": "Annuler", "priority.confirm": "Confirmer", "priority.selectOptionNumber": "S\xE9lectionnez l'option #", "priority.prioritized": "Prioris\xE9es", "priority.of": "sur", "priority.instruction": `Votre liste de priorit\xE9s est affich\xE9e ci-dessous. Si vous le souhaitez, vous pouvez r\xE9organiser vos choix \xE0 l'aide des fl\xE8ches. Cliquez sur "Suivant" pour confirmer votre s\xE9lection et continuer.`, "action.send": "Envoyer", "action.back": "Retour", "action.next": "Suivant", "action.start": "C'est parti !", "message.success": "Merci pour votre retour !", "message.blocked": "Merci pour votre temps, nous terminons la conversation ici.", "message.required": "Veuillez r\xE9pondre avant de continuer.", "message.rateLimit": "Trop de requ\xEAtes. Nouvelle tentative dans {seconds} s..." }, pt: { "placeholder.answer": "Escreva sua resposta aqui...", "placeholder.number": "Escreva seu n\xFAmero aqui...", "placeholder.email": "Escreva seu e-mail aqui...", "placeholder.date": "Escreva sua data aqui...", "placeholder.password": "Escreva sua senha aqui...", "pointSystem.error": "O total de pontos deve ser 100 %", "boolean.yes": "Sim", "boolean.no": "N\xE3o", "upload.cta": "Arraste e solte ou clique para enviar", "upload.imagesOnly": "Somente imagens", "upload.anyFileType": "Qualquer tipo de arquivo", "upload.maxFiles": "M\xE1x. {n} arquivos", "upload.maxSize": "M\xE1x. {mb} MB", "upload.tooLarge": "Arquivo muito grande (m\xE1x. {mb} MB)", "upload.remove": "Remover", "select.placeholder": "Selecione uma op\xE7\xE3o", "rating.ariaLabel": "Avalia\xE7\xE3o", "maxDiff.best": "Mais importante", "maxDiff.worst": "Menos importante", "maxDiff.setProgress": "Bloco {k} de {n}", "priority.selectUpTo": "Selecione at\xE9", "priority.options": "op\xE7\xF5es", "priority.thenOrder": "e depois ordene-as", "priority.selectOptions": "Selecionar op\xE7\xF5es", "priority.cancel": "Cancelar", "priority.confirm": "Confirmar", "priority.selectOptionNumber": "Selecione a op\xE7\xE3o #", "priority.prioritized": "Priorizadas", "priority.of": "de", "priority.instruction": 'Sua lista de prioridades pode ser vista abaixo. Se quiser, voc\xEA pode reorganizar suas escolhas usando as setas. Clique em "Pr\xF3ximo" para confirmar sua sele\xE7\xE3o e continuar.', "action.send": "Enviar", "action.back": "Voltar", "action.next": "Pr\xF3ximo", "action.start": "Come\xE7ar!", "message.success": "Obrigado pelo seu feedback!", "message.blocked": "Obrigado pelo seu tempo, encerramos a conversa por aqui.", "message.required": "Responda antes de continuar.", "message.rateLimit": "Muitas solicita\xE7\xF5es. Tentando novamente em {seconds} s..." }, da: { "placeholder.answer": "Skriv dit svar her...", "placeholder.number": "Skriv dit nummer her...", "placeholder.email": "Skriv din e-mail her...", "placeholder.date": "Skriv din dato her...", "placeholder.password": "Skriv dit kodeord her...", "pointSystem.error": "Samlet antal point skal v\xE6re 100 %", "boolean.yes": "Ja", "boolean.no": "Nej", "upload.cta": "Tr\xE6k og slip eller klik for at uploade", "upload.imagesOnly": "Kun billeder", "upload.anyFileType": "Enhver filtype", "upload.maxFiles": "Maks. {n} filer", "upload.maxSize": "Maks. {mb} MB", "upload.tooLarge": "Filen er for stor (maks. {mb} MB)", "upload.remove": "Fjern", "select.placeholder": "V\xE6lg en mulighed", "rating.ariaLabel": "Bed\xF8mmelse", "maxDiff.best": "Vigtigst", "maxDiff.worst": "Mindst vigtigt", "maxDiff.setProgress": "Blok {k} af {n}", "priority.selectUpTo": "V\xE6lg op til", "priority.options": "muligheder", "priority.thenOrder": "og sorter dem derefter", "priority.selectOptions": "V\xE6lg muligheder", "priority.cancel": "Annuller", "priority.confirm": "Bekr\xE6ft", "priority.selectOptionNumber": "V\xE6lg mulighed #", "priority.prioritized": "Prioriteret", "priority.of": "af", "priority.instruction": 'Din prioritetsliste vises nedenfor. Hvis du \xF8nsker det, kan du omarrangere dine valg ved hj\xE6lp af pilene. Klik p\xE5 "N\xE6ste" for at bekr\xE6fte dit valg og forts\xE6tte.', "action.send": "Send", "action.back": "Tilbage", "action.next": "N\xE6ste", "action.start": "Start!", "message.success": "Tak for din feedback!", "message.blocked": "Tak for din tid - vi afslutter samtalen her.", "message.required": "Svar venligst, f\xF8r du forts\xE6tter.", "message.rateLimit": "For mange foresp\xF8rgsler. Pr\xF8ver igen om {seconds} s..." }, fi: { "placeholder.answer": "Kirjoita vastauksesi t\xE4h\xE4n...", "placeholder.number": "Kirjoita numerosi t\xE4h\xE4n...", "placeholder.email": "Kirjoita s\xE4hk\xF6postiosoitteesi t\xE4h\xE4n...", "placeholder.date": "Kirjoita p\xE4iv\xE4m\xE4\xE4r\xE4si t\xE4h\xE4n...", "placeholder.password": "Kirjoita salasanasi t\xE4h\xE4n...", "pointSystem.error": "Kokonaispisteiden on oltava 100 %", "boolean.yes": "Kyll\xE4", "boolean.no": "Ei", "upload.cta": "Ved\xE4 ja pudota tai napsauta ladataksesi", "upload.imagesOnly": "Vain kuvat", "upload.anyFileType": "Mik\xE4 tahansa tiedostotyyppi", "upload.maxFiles": "Enint\xE4\xE4n {n} tiedostoa", "upload.maxSize": "Enint\xE4\xE4n {mb} MB", "upload.tooLarge": "Tiedosto on liian suuri (enint\xE4\xE4n {mb} MB)", "upload.remove": "Poista", "select.placeholder": "Valitse vaihtoehto", "rating.ariaLabel": "Arvio", "maxDiff.best": "T\xE4rkein", "maxDiff.worst": "V\xE4hiten t\xE4rke\xE4", "maxDiff.setProgress": "Osa {k}/{n}", "priority.selectUpTo": "Valitse enint\xE4\xE4n", "priority.options": "vaihtoehtoa", "priority.thenOrder": "ja j\xE4rjest\xE4 ne sitten", "priority.selectOptions": "Valitse vaihtoehdot", "priority.cancel": "Peruuta", "priority.confirm": "Vahvista", "priority.selectOptionNumber": "Valitse vaihtoehto #", "priority.prioritized": "Priorisoitu", "priority.of": " / ", "priority.instruction": 'Prioriteettilistasi n\xE4kyy alla. Voit halutessasi j\xE4rjest\xE4\xE4 valinnat uudelleen nuolien avulla. Napsauta "Seuraava" vahvistaaksesi valinnan ja jatkaaksesi.', "action.send": "L\xE4het\xE4", "action.back": "Takaisin", "action.next": "Seuraava", "action.start": "Aloita!", "message.success": "Kiitos palautteestasi!", "message.blocked": "Kiitos ajastasi - lopetamme keskustelun t\xE4h\xE4n.", "message.required": "Vastaa ennen jatkamista.", "message.rateLimit": "Liikaa pyynt\xF6j\xE4. Yritet\xE4\xE4n uudelleen {seconds} s kuluttua..." }, no: { "placeholder.answer": "Skriv svaret ditt her...", "placeholder.number": "Skriv nummeret ditt her...", "placeholder.email": "Skriv e-posten din her...", "placeholder.date": "Skriv datoen din her...", "placeholder.password": "Skriv passordet ditt her...", "pointSystem.error": "Totalt antall poeng m\xE5 v\xE6re 100 %", "boolean.yes": "Ja", "boolean.no": "Nei", "upload.cta": "Dra og slipp eller klikk for \xE5 laste opp", "upload.imagesOnly": "Kun bilder", "upload.anyFileType": "Alle filtyper", "upload.maxFiles": "Maks {n} filer", "upload.maxSize": "Maks {mb} MB", "upload.tooLarge": "Filen er for stor (maks {mb} MB)", "upload.remove": "Fjern", "select.placeholder": "Velg et alternativ", "rating.ariaLabel": "Vurdering", "maxDiff.best": "Viktigst", "maxDiff.worst": "Minst viktig", "maxDiff.setProgress": "Blokk {k} av {n}", "priority.selectUpTo": "Velg opptil", "priority.options": "alternativer", "priority.thenOrder": "og ordne dem deretter", "priority.selectOptions": "Velg alternativer", "priority.cancel": "Avbryt", "priority.confirm": "Bekreft", "priority.selectOptionNumber": "Velg alternativ #", "priority.prioritized": "Prioritert", "priority.of": "av", "priority.instruction": 'Prioriteringslisten din vises nedenfor. Hvis du \xF8nsker det, kan du ordne valgene dine ved hjelp av pilene. Klikk p\xE5 "Neste" for \xE5 bekrefte valget ditt og fortsette.', "action.send": "Send", "action.back": "Tilbake", "action.next": "Neste", "action.start": "Start!", "message.success": "Takk for tilbakemeldingen!", "message.blocked": "Takk for tiden din - vi avslutter samtalen her.", "message.required": "Vennligst svar f\xF8r du fortsetter.", "message.rateLimit": "For mange foresp\xF8rsler. Pr\xF8ver igjen om {seconds} s..." }, sv: { "placeholder.answer": "Skriv ditt svar h\xE4r...", "placeholder.number": "Skriv ditt nummer h\xE4r...", "placeholder.email": "Skriv din e-post h\xE4r...", "placeholder.date": "Skriv ditt datum h\xE4r...", "placeholder.password": "Skriv ditt l\xF6senord h\xE4r...", "pointSystem.error": "Totala po\xE4ng m\xE5ste vara 100 %", "boolean.yes": "Ja", "boolean.no": "Nej", "upload.cta": "Dra och sl\xE4pp eller klicka f\xF6r att ladda upp", "upload.imagesOnly": "Endast bilder", "upload.anyFileType": "Alla filtyper", "upload.maxFiles": "Max {n} filer", "upload.maxSize": "Max {mb} MB", "upload.tooLarge": "Filen \xE4r f\xF6r stor (max {mb} MB)", "upload.remove": "Ta bort", "select.placeholder": "V\xE4lj ett alternativ", "rating.ariaLabel": "Betyg", "maxDiff.best": "Viktigast", "maxDiff.worst": "Minst viktig", "maxDiff.setProgress": "Block {k} av {n}", "priority.selectUpTo": "V\xE4lj upp till", "priority.options": "alternativ", "priority.thenOrder": "och ordna dem sedan", "priority.selectOptions": "V\xE4lj alternativ", "priority.cancel": "Avbryt", "priority.confirm": "Bekr\xE4fta", "priority.selectOptionNumber": "V\xE4lj alternativ #", "priority.prioritized": "Prioriterat", "priority.of": "av", "priority.instruction": 'Din prioriteringslista visas nedan. Om du vill kan du ordna om dina val med hj\xE4lp av pilarna. Klicka p\xE5 "N\xE4sta" f\xF6r att bekr\xE4fta ditt val och forts\xE4tta.', "action.send": "Skicka", "action.back": "Tillbaka", "action.next": "N\xE4sta", "action.start": "K\xF6r!", "message.success": "Tack f\xF6r din feedback!", "message.blocked": "Tack f\xF6r din tid - vi avslutar samtalet h\xE4r.", "message.required": "Svara innan du forts\xE4tter.", "message.rateLimit": "F\xF6r m\xE5nga f\xF6rfr\xE5gningar. F\xF6rs\xF6ker igen om {seconds} s..." }, ar: { "placeholder.answer": "\u0627\u0643\u062A\u0628 \u0625\u062C\u0627\u0628\u062A\u0643 \u0647\u0646\u0627...", "placeholder.number": "\u0627\u0643\u062A\u0628 \u0631\u0642\u0645\u0643 \u0647\u0646\u0627...", "placeholder.email": "\u0627\u0643\u062A\u0628 \u0628\u0631\u064A\u062F\u0643 \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A \u0647\u0646\u0627...", "placeholder.date": "\u0627\u0643\u062A\u0628 \u062A\u0627\u0631\u064A\u062E\u0643 \u0647\u0646\u0627...", "placeholder.password": "\u0627\u0643\u062A\u0628 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0647\u0646\u0627...", "pointSystem.error": "\u064A\u062C\u0628 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0646\u0642\u0627\u0637 \u0627\u0644\u0625\u062C\u0645\u0627\u0644\u064A\u0629 100 %", "boolean.yes": "\u0646\u0639\u0645", "boolean.no": "\u0644\u0627", "upload.cta": "\u0627\u0633\u062D\u0628 \u0648\u0623\u0641\u0644\u062A \u0623\u0648 \u0627\u0646\u0642\u0631 \u0644\u0644\u062A\u062D\u0645\u064A\u0644", "upload.imagesOnly": "\u0627\u0644\u0635\u0648\u0631 \u0641\u0642\u0637", "upload.anyFileType": "\u0623\u064A \u0646\u0648\u0639 \u0645\u0646 \u0627\u0644\u0645\u0644\u0641\u0627\u062A", "upload.maxFiles": "{n} \u0645\u0644\u0641\u0627\u062A \u0643\u062D\u062F \u0623\u0642\u0635\u0649", "upload.maxSize": "{mb} \u0645\u064A\u063A\u0627\u0628\u0627\u064A\u062A \u0643\u062D\u062F \u0623\u0642\u0635\u0649", "upload.tooLarge": "\u0627\u0644\u0645\u0644\u0641 \u0643\u0628\u064A\u0631 \u062C\u062F\u064B\u0627 (\u0627\u0644\u062D\u062F \u0627\u0644\u0623\u0642\u0635\u0649 {mb} \u0645\u064A\u063A\u0627\u0628\u0627\u064A\u062A)", "upload.remove": "\u0625\u0632\u0627\u0644\u0629", "select.placeholder": "\u0627\u062E\u062A\u0631 \u062E\u064A\u0627\u0631\u064B\u0627", "rating.ariaLabel": "\u0627\u0644\u062A\u0642\u064A\u064A\u0645", "maxDiff.best": "\u0627\u0644\u0623\u0643\u062B\u0631 \u0623\u0647\u0645\u064A\u0629", "maxDiff.worst": "\u0627\u0644\u0623\u0642\u0644 \u0623\u0647\u0645\u064A\u0629", "maxDiff.setProgress": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 {k} \u0645\u0646 {n}", "priority.selectUpTo": "\u0627\u062E\u062A\u0631 \u062D\u062A\u0649", "priority.options": "\u062E\u064A\u0627\u0631\u0627\u062A", "priority.thenOrder": "\u062B\u0645 \u0631\u062A\u0628\u0647\u0627", "priority.selectOptions": "\u0627\u062E\u062A\u0631 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A", "priority.cancel": "\u0625\u0644\u063A\u0627\u0621", "priority.confirm": "\u062A\u0623\u0643\u064A\u062F", "priority.selectOptionNumber": "\u0627\u062E\u062A\u0631 \u0627\u0644\u062E\u064A\u0627\u0631 #", "priority.prioritized": "\u062A\u0645 \u0627\u0644\u062A\u0631\u062A\u064A\u0628", "priority.of": "\u0645\u0646", "priority.instruction": '\u062A\u0638\u0647\u0631 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0623\u0648\u0644\u0648\u064A\u0627\u062A \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0623\u062F\u0646\u0627\u0647. \u0625\u0630\u0627 \u0631\u063A\u0628\u062A\u060C \u064A\u0645\u0643\u0646\u0643 \u0625\u0639\u0627\u062F\u0629 \u062A\u0631\u062A\u064A\u0628 \u0627\u062E\u062A\u064A\u0627\u0631\u0627\u062A\u0643 \u0628\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0623\u0633\u0647\u0645. \u0627\u0646\u0642\u0631 \u0639\u0644\u0649 "\u0627\u0644\u062A\u0627\u0644\u064A" \u0644\u062A\u0623\u0643\u064A\u062F \u0627\u062E\u062A\u064A\u0627\u0631\u0643 \u0648\u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629.', "action.send": "\u0625\u0631\u0633\u0627\u0644", "action.back": "\u0631\u062C\u0648\u0639", "action.next": "\u0627\u0644\u062A\u0627\u0644\u064A", "action.start": "\u0627\u0628\u062F\u0623!", "message.success": "\u0634\u0643\u0631\u064B\u0627 \u0644\u0645\u0644\u0627\u062D\u0638\u0627\u062A\u0643!", "message.blocked": "\u0634\u0643\u0631\u064B\u0627 \u0639\u0644\u0649 \u0648\u0642\u062A\u0643\u060C \u0633\u0646\u0646\u0647\u064A \u0627\u0644\u0645\u062D\u0627\u062F\u062B\u0629 \u0647\u0646\u0627.", "message.required": "\u064A\u0631\u062C\u0649 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u0642\u0628\u0644 \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", "message.rateLimit": "\u0637\u0644\u0628\u0627\u062A \u0643\u062B\u064A\u0631\u0629 \u062C\u062F\u064B\u0627. \u0633\u0646\u0639\u064A\u062F \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u062E\u0644\u0627\u0644 {seconds} \u062B\u0627\u0646\u064A\u0629..." }, bn: { "placeholder.answer": "\u098F\u0996\u09BE\u09A8\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u0989\u09A4\u09CD\u09A4\u09B0 \u09B2\u09BF\u0996\u09C1\u09A8...", "placeholder.number": "\u098F\u0996\u09BE\u09A8\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u09B8\u0982\u0996\u09CD\u09AF\u09BE \u09B2\u09BF\u0996\u09C1\u09A8...", "placeholder.email": "\u098F\u0996\u09BE\u09A8\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u0987\u09AE\u09C7\u0987\u09B2 \u09B2\u09BF\u0996\u09C1\u09A8...", "placeholder.date": "\u098F\u0996\u09BE\u09A8\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09BE\u09B0\u09BF\u0996 \u09B2\u09BF\u0996\u09C1\u09A8...", "placeholder.password": "\u098F\u0996\u09BE\u09A8\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09BE\u09B8\u0993\u09AF\u09BC\u09BE\u09B0\u09CD\u09A1 \u09B2\u09BF\u0996\u09C1\u09A8...", "pointSystem.error": "\u09AE\u09CB\u099F \u09AA\u09AF\u09BC\u09C7\u09A8\u09CD\u099F 100 % \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7", "boolean.yes": "\u09B9\u09CD\u09AF\u09BE\u0981", "boolean.no": "\u09A8\u09BE", "upload.cta": "\u099F\u09C7\u09A8\u09C7 \u0986\u09A8\u09C1\u09A8 \u09AC\u09BE \u0986\u09AA\u09B2\u09CB\u09A1 \u0995\u09B0\u09A4\u09C7 \u0995\u09CD\u09B2\u09BF\u0995 \u0995\u09B0\u09C1\u09A8", "upload.imagesOnly": "\u09B6\u09C1\u09A7\u09C1\u09AE\u09BE\u09A4\u09CD\u09B0 \u099B\u09AC\u09BF", "upload.anyFileType": "\u09AF\u09C7\u0995\u09CB\u09A8\u09CB \u09A7\u09B0\u09A8\u09C7\u09B0 \u09AB\u09BE\u0987\u09B2", "upload.maxFiles": "\u09B8\u09B0\u09CD\u09AC\u09CB\u099A\u09CD\u099A {n}\u099F\u09BF \u09AB\u09BE\u0987\u09B2", "upload.maxSize": "\u09B8\u09B0\u09CD\u09AC\u09CB\u099A\u09CD\u099A {mb} MB", "upload.tooLarge": "\u09AB\u09BE\u0987\u09B2\u099F\u09BF \u0996\u09C1\u09AC \u09AC\u09A1\u09BC (\u09B8\u09B0\u09CD\u09AC\u09CB\u099A\u09CD\u099A {mb} MB)", "upload.remove": "\u09B8\u09B0\u09BE\u09A8", "select.placeholder": "\u098F\u0995\u099F\u09BF \u09AC\u09BF\u0995\u09B2\u09CD\u09AA \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8", "rating.ariaLabel": "\u09B0\u09C7\u099F\u09BF\u0982", "maxDiff.best": "\u09B8\u09AC\u099A\u09C7\u09AF\u09BC\u09C7 \u0997\u09C1\u09B0\u09C1\u09A4\u09CD\u09AC\u09AA\u09C2\u09B0\u09CD\u09A3", "maxDiff.worst": "\u09B8\u09AC\u099A\u09C7\u09AF\u09BC\u09C7 \u0995\u09AE \u0997\u09C1\u09B0\u09C1\u09A4\u09CD\u09AC\u09AA\u09C2\u09B0\u09CD\u09A3", "maxDiff.setProgress": "\u09AC\u09CD\u09B2\u0995 {k}/{n}", "priority.selectUpTo": "\u09B8\u09B0\u09CD\u09AC\u09CB\u099A\u09CD\u099A \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8", "priority.options": "\u099F\u09BF \u09AC\u09BF\u0995\u09B2\u09CD\u09AA", "priority.thenOrder": "\u09A4\u09BE\u09B0\u09AA\u09B0 \u09B8\u09C7\u0997\u09C1\u09B2\u09CB \u09B8\u09BE\u099C\u09BE\u09A8", "priority.selectOptions": "\u09AC\u09BF\u0995\u09B2\u09CD\u09AA \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8", "priority.cancel": "\u09AC\u09BE\u09A4\u09BF\u09B2", "priority.confirm": "\u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4 \u0995\u09B0\u09C1\u09A8", "priority.selectOptionNumber": "\u09AC\u09BF\u0995\u09B2\u09CD\u09AA # \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8", "priority.prioritized": "\u0985\u0997\u09CD\u09B0\u09BE\u09A7\u09BF\u0995\u09BE\u09B0\u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4", "priority.of": "\u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7", "priority.instruction": '\u0986\u09AA\u09A8\u09BE\u09B0 \u0985\u0997\u09CD\u09B0\u09BE\u09A7\u09BF\u0995\u09BE\u09B0 \u09A4\u09BE\u09B2\u09BF\u0995\u09BE \u09A8\u09BF\u099A\u09C7 \u09A6\u09C7\u0996\u09BE\u09A8\u09CB \u09B9\u09AF\u09BC\u09C7\u099B\u09C7\u0964 \u099A\u09BE\u0987\u09B2\u09C7 \u09A4\u09C0\u09B0 \u099A\u09BF\u09B9\u09CD\u09A8 \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u099B\u09A8\u09CD\u09A6\u0997\u09C1\u09B2\u09CB \u09AA\u09C1\u09A8\u09B0\u09BE\u09AF\u09BC \u09B8\u09BE\u099C\u09BE\u09A4\u09C7 \u09AA\u09BE\u09B0\u09C7\u09A8\u0964 "\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0" \u0995\u09CD\u09B2\u09BF\u0995 \u0995\u09B0\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4 \u0995\u09B0\u09C1\u09A8 \u098F\u09AC\u0982 \u098F\u0997\u09BF\u09AF\u09BC\u09C7 \u09AF\u09BE\u09A8\u0964', "action.send": "\u09AA\u09BE\u09A0\u09BE\u09A8", "action.back": "\u09AA\u09BF\u099B\u09A8\u09C7", "action.next": "\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0", "action.start": "\u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!", "message.success": "\u0986\u09AA\u09A8\u09BE\u09B0 \u09AE\u09A4\u09BE\u09AE\u09A4\u09C7\u09B0 \u099C\u09A8\u09CD\u09AF \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6!", "message.blocked": "\u0986\u09AA\u09A8\u09BE\u09B0 \u09B8\u09AE\u09AF\u09BC\u09C7\u09B0 \u099C\u09A8\u09CD\u09AF \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6, \u0986\u09AE\u09B0\u09BE \u098F\u0996\u09BE\u09A8\u09C7\u0987 \u0995\u09A5\u09CB\u09AA\u0995\u09A5\u09A8 \u09B6\u09C7\u09B7 \u0995\u09B0\u099B\u09BF\u0964", "message.required": "\u099A\u09BE\u09B2\u09BF\u09AF\u09BC\u09C7 \u09AF\u09BE\u0993\u09AF\u09BC\u09BE\u09B0 \u0986\u0997\u09C7 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0989\u09A4\u09CD\u09A4\u09B0 \u09A6\u09BF\u09A8\u0964", "message.rateLimit": "\u0985\u09A8\u09C7\u0995 \u09AC\u09C7\u09B6\u09BF \u0985\u09A8\u09C1\u09B0\u09CB\u09A7\u0964 {seconds} \u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7..." }, it: { "boolean.yes": "S\xEC", "boolean.no": "No", "priority.selectUpTo": "Seleziona fino a", "priority.options": "opzioni", "priority.thenOrder": "e poi ordinali", "priority.selectOptions": "Seleziona opzioni", "priority.cancel": "Annulla", "priority.confirm": "Conferma", "priority.selectOptionNumber": "Seleziona opzione #", "priority.prioritized": "Prioritizzate", "priority.of": "di", "priority.instruction": 'La tua lista di priorit\xE0 \xE8 mostrata qui sotto. Se vuoi, puoi riordinare le tue scelte usando le frecce. Clicca su "Avanti" per confermare la selezione e continuare.' }, nl: { "boolean.yes": "Ja", "boolean.no": "Nee", "priority.selectUpTo": "Selecteer tot", "priority.options": "opties", "priority.thenOrder": "en rangschik ze vervolgens", "priority.selectOptions": "Selecteer opties", "priority.cancel": "Annuleren", "priority.confirm": "Bevestigen", "priority.selectOptionNumber": "Selecteer optie #", "priority.prioritized": "Geprioriteerd", "priority.of": "van", "priority.instruction": 'Je prioriteitenlijst wordt hieronder weergegeven. Als je wilt, kun je je keuzes herschikken met behulp van de pijlen. Klik op "Volgende" om je selectie te bevestigen en door te gaan.' }, pl: { "boolean.yes": "Tak", "boolean.no": "Nie", "priority.selectUpTo": "Wybierz do", "priority.options": "opcje", "priority.thenOrder": "a nast\u0119pnie je uporz\u0105dkuj", "priority.selectOptions": "Wybierz opcje", "priority.cancel": "Anuluj", "priority.confirm": "Potwierd\u017A", "priority.selectOptionNumber": "Wybierz opcj\u0119 #", "priority.prioritized": "Priorytetowe", "priority.of": "z", "priority.instruction": 'Twoja lista priorytet\xF3w jest pokazana poni\u017Cej. Je\u015Bli chcesz, mo\u017Cesz zmieni\u0107 kolejno\u015B\u0107 swoich wybor\xF3w za pomoc\u0105 strza\u0142ek. Kliknij "Dalej", aby potwierdzi\u0107 wyb\xF3r i kontynuowa\u0107.' }, ru: { "boolean.yes": "\u0414\u0430", "boolean.no": "\u041D\u0435\u0442", "priority.selectUpTo": "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u043E", "priority.options": "\u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432", "priority.thenOrder": "\u0430 \u0437\u0430\u0442\u0435\u043C \u0443\u043F\u043E\u0440\u044F\u0434\u043E\u0447\u044C\u0442\u0435 \u0438\u0445", "priority.selectOptions": "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u044B", "priority.cancel": "\u041E\u0442\u043C\u0435\u043D\u0430", "priority.confirm": "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C", "priority.selectOptionNumber": "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 #", "priority.prioritized": "\u041F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u044B", "priority.of": "\u0438\u0437", "priority.instruction": '\u0412\u0430\u0448 \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u043E\u0432 \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044F \u043D\u0438\u0436\u0435. \u0415\u0441\u043B\u0438 \u0445\u043E\u0442\u0438\u0442\u0435, \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u043E\u0440\u044F\u0434\u043E\u043A \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0441\u0442\u0440\u0435\u043B\u043E\u043A. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 "\u0414\u0430\u043B\u0435\u0435", \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440 \u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C.' }, ja: { "boolean.yes": "\u306F\u3044", "boolean.no": "\u3044\u3044\u3048", "priority.selectUpTo": "\u6700\u5927", "priority.options": "\u500B\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u9078\u629E", "priority.thenOrder": "\u305D\u306E\u5F8C\u4E26\u3079\u66FF\u3048\u3066\u304F\u3060\u3055\u3044", "priority.selectOptions": "\u30AA\u30D7\u30B7\u30E7\u30F3\u3092\u9078\u629E", "priority.cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB", "priority.confirm": "\u78BA\u8A8D", "priority.selectOptionNumber": "\u30AA\u30D7\u30B7\u30E7\u30F3 # \u3092\u9078\u629E", "priority.prioritized": "\u512A\u5148\u9806\u4F4D", "priority.of": "\u306E\u3046\u3061", "priority.instruction": "\u512A\u5148\u9806\u4F4D\u30EA\u30B9\u30C8\u306F\u4EE5\u4E0B\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u5FC5\u8981\u306B\u5FDC\u3058\u3066\u3001\u77E2\u5370\u3092\u4F7F\u3063\u3066\u9078\u629E\u80A2\u3092\u4E26\u3079\u66FF\u3048\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002\u300C\u6B21\u3078\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u9078\u629E\u3092\u78BA\u5B9A\u3057\u3001\u7D9A\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }, zh: { "boolean.yes": "\u662F", "boolean.no": "\u4E0D", "priority.selectUpTo": "\u6700\u591A\u9009\u62E9", "priority.options": "\u4E2A\u9009\u9879", "priority.thenOrder": "\u7136\u540E\u6392\u5E8F\u5B83\u4EEC", "priority.selectOptions": "\u9009\u62E9\u9009\u9879", "priority.cancel": "\u53D6\u6D88", "priority.confirm": "\u786E\u8BA4", "priority.selectOptionNumber": "\u9009\u62E9\u9009\u9879 #", "priority.prioritized": "\u5DF2\u4F18\u5148", "priority.of": "\u5171", "priority.instruction": "\u4F60\u7684\u4F18\u5148\u5217\u8868\u5982\u4E0B\u6240\u793A\u3002\u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u4F7F\u7528\u7BAD\u5934\u91CD\u65B0\u6392\u5E8F\u9009\u9879\u3002\u70B9\u51FB\u201C\u4E0B\u4E00\u6B65\u201D\u786E\u8BA4\u9009\u62E9\u5E76\u7EE7\u7EED\u3002" }, ko: { "boolean.yes": "\uC608", "boolean.no": "\uC544\uB2C8", "priority.selectUpTo": "\uCD5C\uB300", "priority.options": "\uAC1C\uC758 \uC635\uC158 \uC120\uD0DD", "priority.thenOrder": "\uADF8\uB7F0 \uB2E4\uC74C \uC815\uB82C\uD558\uC138\uC694", "priority.selectOptions": "\uC635\uC158 \uC120\uD0DD", "priority.cancel": "\uCDE8\uC18C", "priority.confirm": "\uD655\uC778", "priority.selectOptionNumber": "\uC635\uC158 # \uC120\uD0DD", "priority.prioritized": "\uC6B0\uC120\uC21C\uC704", "priority.of": "\uC911", "priority.instruction": '\uC6B0\uC120\uC21C\uC704 \uBAA9\uB85D\uC740 \uC544\uB798\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4. \uC6D0\uD55C\uB2E4\uBA74 \uD654\uC0B4\uD45C\uB97C \uC0AC\uC6A9\uD574 \uC120\uD0DD \uD56D\uBAA9\uC744 \uC7AC\uC815\uB82C\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. "\uB2E4\uC74C"\uC744 \uD074\uB9AD\uD558\uC5EC \uC120\uD0DD\uC744 \uD655\uC778\uD558\uACE0 \uACC4\uC18D\uD558\uC138\uC694.' } };
@@ -2363,18 +2453,18 @@ var require_magicfeedback_sdk_browser = __commonJS({
2363
2453
  return Object.keys(t4).reduce(((e5, i2) => e5.replace(new RegExp("\\{" + i2 + "\\}", "g"), String(t4[i2]))), e4);
2364
2454
  })(s, r2) : s;
2365
2455
  };
2366
- }, 1347: (e2, t2) => {
2456
+ }, 5407: (e2, t2) => {
2367
2457
  "use strict";
2368
2458
  Object.defineProperty(t2, "__esModule", { value: true }), t2.endpoints = void 0, t2.endpoints = { sdk: { app: (e3, t3) => `sdk/app/${e3}/${t3}`, app_info: (e3, t3) => `sdk/app/${e3}/${t3}/info`, session: (e3) => `sdk/app/session/${e3}/info`, feedback: "sdk/feedback", followUpQuestion: "sdk/followUpQuestion", agentSurveyStart: "sdk/agentSurvey/start", agentSurveyNext: "sdk/agentSurvey/next" } };
2369
- }, 9930: (e2, t2, i) => {
2459
+ }, 3262: (e2, t2, i) => {
2370
2460
  "use strict";
2371
2461
  Object.defineProperty(t2, "__esModule", { value: true }), t2.placeholder = void 0;
2372
- const n = i(7031);
2462
+ const n = i(7627);
2373
2463
  t2.placeholder = { answer: (e3) => (0, n.t)(e3, "placeholder.answer"), number: (e3) => (0, n.t)(e3, "placeholder.number"), email: (e3) => (0, n.t)(e3, "placeholder.email"), date: (e3) => (0, n.t)(e3, "placeholder.date"), password: (e3) => (0, n.t)(e3, "placeholder.password"), pointsystemerror: (e3) => (0, n.t)(e3, "pointSystem.error"), upload: { cta: (e3) => (0, n.t)(e3, "upload.cta"), formats: (e3, t3) => (0, n.t)(e3, "image" === t3 ? "upload.imagesOnly" : "upload.anyFileType"), maxFiles: (e3, t3) => (0, n.t)(e3, "upload.maxFiles", { n: t3 }), maxSize: (e3, t3) => (0, n.t)(e3, "upload.maxSize", { mb: t3 }), tooLarge: (e3, t3) => (0, n.t)(e3, "upload.tooLarge", { mb: t3 }), remove: (e3) => (0, n.t)(e3, "upload.remove") } };
2374
- }, 3903: (e2, t2, i) => {
2464
+ }, 7643: (e2, t2, i) => {
2375
2465
  "use strict";
2376
2466
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderStartMessage = t2.renderSuccess = t2.renderError = t2.renderActions = t2.renderQuestions = void 0;
2377
- const n = i(1140), r = i(7156), o = i(6658), a = i(6029), s = i(2139), l = { small: "1rem", medium: "1.2rem", large: "1.5rem" };
2467
+ const n = i(4760), r = i(368), o = i(1366), a = i(3433), s = i(9039), l = { small: "1rem", medium: "1.2rem", large: "1.5rem" };
2378
2468
  t2.renderQuestions = function e3(t3, i2 = "standard", d = "en", c = { customIcons: false }, u) {
2379
2469
  if (!t3) throw new Error("[MagicFeedback] No questions provided");
2380
2470
  const p = [], { customIcons: m, id: h } = c;
@@ -2394,13 +2484,13 @@ var require_magicfeedback_sdk_browser = __commonJS({
2394
2484
  var p2, m2, h2;
2395
2485
  let f2, g2, { id: y2, title: v, type: b, ref: E, require: A, defaultValue: k, assets: T } = e5, C = document.createElement("div");
2396
2486
  C.classList.add("magicfeedback-div");
2397
- const x = window.innerWidth < 600, P = "slim" === t4 ? (0, o.parseTitle)(v, i3) : null == T ? void 0 : T.placeholder, L = (0, a.shownValueFor)(e5, (0, o.getUrlParam)(E)), S = (null == T ? void 0 : T.maxCharacters) || 0, w = false === (null == T ? void 0 : T.autoAdvance) ? void 0 : c2, O = void 0 !== (null == T ? void 0 : T.randomPosition) && (null == T ? void 0 : T.randomPosition), N = (null == T ? void 0 : T.direction) || "row", I = (null == T ? void 0 : T.order) || "ltr", D = (0, r.getQuestionRenderer)(b);
2487
+ const P = window.innerWidth < 600, w = "slim" === t4 ? (0, o.parseTitle)(v, i3) : null == T ? void 0 : T.placeholder, x = (0, a.shownValueFor)(e5, (0, o.getUrlParam)(E)), S = (null == T ? void 0 : T.maxCharacters) || 0, O = false === (null == T ? void 0 : T.autoAdvance) ? void 0 : c2, L = void 0 !== (null == T ? void 0 : T.randomPosition) && (null == T ? void 0 : T.randomPosition), N = (null == T ? void 0 : T.direction) || "row", I = (null == T ? void 0 : T.order) || "ltr", D = (0, r.getQuestionRenderer)(b);
2398
2488
  if (!D) return C;
2399
2489
  {
2400
- const r2 = D({ question: e5, format: t4, language: i3, url: d2, send: b === n.FEEDBACKAPPANSWERTYPE.TEXT ? c2 : w, isPhone: x, urlParamValue: L, placeholderText: P, maxCharacters: S, randomPosition: O, direction: N, order: I, productId: u2 });
2490
+ const r2 = D({ question: e5, format: t4, language: i3, url: d2, send: b === n.FEEDBACKAPPANSWERTYPE.TEXT ? c2 : O, isPhone: P, urlParamValue: x, placeholderText: w, maxCharacters: S, randomPosition: L, direction: N, order: I, productId: u2 });
2401
2491
  f2 = r2.element, g2 = r2.elementTypeClass;
2402
2492
  }
2403
- f2.id = `magicfeedback-${y2}`, f2.setAttribute("name", E), f2.classList.add(g2), (void 0 !== k || null !== L) && (f2.value = L || k), ["RADIO", "MULTIPLECHOICE", "UPLOAD_IMAGE", "UPLOAD_FILE"].includes(b) || (f2.classList.add("magicfeedback-input"), f2.required = A);
2493
+ f2.id = `magicfeedback-${y2}`, f2.setAttribute("name", E), f2.classList.add(g2), (void 0 !== k || null !== x) && (f2.value = x || k), ["RADIO", "MULTIPLECHOICE", "UPLOAD_IMAGE", "UPLOAD_FILE"].includes(b) || (f2.classList.add("magicfeedback-input"), f2.required = A);
2404
2494
  const R = document.createElement("label");
2405
2495
  R.setAttribute("for", `magicfeedback-${y2}`), R.textContent = (0, o.parseTitle)(v, i3), R.classList.add("magicfeedback-label"), (function(e6, t5) {
2406
2496
  if ("INFO_PAGE" !== t5.type) return;
@@ -2429,7 +2519,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2429
2519
  const i4 = document.createElement("label");
2430
2520
  i4.htmlFor = `skip-${E}`, i4.textContent = null == T ? void 0 : T.extraOptionText, i4.style.fontSize = "15px", i4.style.cursor = "pointer", i4.style.margin = "0 5px", t5.addEventListener("click", (() => {
2431
2521
  f2.value = "-";
2432
- })), (0, s.autoAdvanceOn)(t5, w, "click"), e7.appendChild(t5), e7.appendChild(i4), C.appendChild(e7);
2522
+ })), (0, s.autoAdvanceOn)(t5, O, "click"), e7.appendChild(t5), e7.appendChild(i4), C.appendChild(e7);
2433
2523
  }
2434
2524
  } else C.appendChild(f2);
2435
2525
  }
@@ -2464,7 +2554,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2464
2554
  }
2465
2555
  return r2;
2466
2556
  };
2467
- }, 6891: function(e2, t2, i) {
2557
+ }, 9071: function(e2, t2, i) {
2468
2558
  "use strict";
2469
2559
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
2470
2560
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -2494,7 +2584,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2494
2584
  return e3 && e3.__esModule ? e3 : { default: e3 };
2495
2585
  };
2496
2586
  Object.defineProperty(t2, "__esModule", { value: true }), t2.getFollowUpQuestion = t2.sendFeedback = t2.getQuestions = t2.getSessionForm = t2.getForm = t2.validateEmail = t2.header = void 0;
2497
- const o = r(i(6911)), a = r(i(8330)), s = i(1347), l = i(6029);
2587
+ const o = r(i(6539)), a = r(i(8330)), s = i(5407), l = i(3433);
2498
2588
  t2.header = { Accept: "application/json", "Magicfeedback-Sdk-Version": a.default.version, "x-magicfeedback-parameters": window.location.search || "" }, t2.validateEmail = function(e3) {
2499
2589
  return /\S+@\S+\.\S+/.test(e3);
2500
2590
  }, t2.getForm = function(e3, i2, r2, a2, d) {
@@ -2549,10 +2639,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
2549
2639
  }
2550
2640
  }));
2551
2641
  };
2552
- }, 6029: (e2, t2, i) => {
2642
+ }, 3433: (e2, t2, i) => {
2553
2643
  "use strict";
2554
2644
  Object.defineProperty(t2, "__esModule", { value: true }), t2.toBaseAnswers = t2.shownValueFor = t2.baseValueMap = t2.withLangParam = t2.detectSurveyLang = t2.normalizeSurveyLang = void 0;
2555
- const n = i(1140), r = { nb: "no", nn: "no", nob: "no", nno: "no" };
2645
+ const n = i(4760), r = { nb: "no", nn: "no", nob: "no", nno: "no" };
2556
2646
  function o(e3) {
2557
2647
  if (!e3 || "string" != typeof e3) return null;
2558
2648
  const t3 = e3.trim().toLowerCase().replace(/_/g, "-").split("-")[0];
@@ -2649,9 +2739,9 @@ var require_magicfeedback_sdk_browser = __commonJS({
2649
2739
  return Object.assign(Object.assign({}, e4), { value: e4.value.map(o2) });
2650
2740
  }));
2651
2741
  };
2652
- }, 2139: (e2, t2) => {
2742
+ }, 9039: (e2, t2) => {
2653
2743
  "use strict";
2654
- Object.defineProperty(t2, "__esModule", { value: true }), t2.cancelAutoAdvance = t2.autoAdvanceOn = t2.scheduleAutoAdvance = t2.AUTO_ADVANCE_DELAY_MS = void 0, t2.AUTO_ADVANCE_DELAY_MS = 300;
2744
+ Object.defineProperty(t2, "__esModule", { value: true }), t2.answeredInput = t2.autoAdvanceRequested = t2.AUTO_ADVANCE_PARAM = t2.cancelAutoAdvance = t2.autoAdvanceOn = t2.scheduleAutoAdvance = t2.AUTO_ADVANCE_DELAY_MS = void 0, t2.AUTO_ADVANCE_DELAY_MS = 300;
2655
2745
  const i = /* @__PURE__ */ new Map();
2656
2746
  function n(e3, n2) {
2657
2747
  const r = i.get(n2);
@@ -2667,8 +2757,13 @@ var require_magicfeedback_sdk_browser = __commonJS({
2667
2757
  e3 && i.forEach((({ timer: t3, source: n2 }, r) => {
2668
2758
  e3.contains(n2) && (clearTimeout(t3), i.delete(r));
2669
2759
  }));
2760
+ }, t2.AUTO_ADVANCE_PARAM = "autoadvance", t2.autoAdvanceRequested = function(e3 = window.location.search) {
2761
+ const i2 = new URLSearchParams(e3).get(t2.AUTO_ADVANCE_PARAM);
2762
+ return "true" === i2 || "1" === i2;
2763
+ }, t2.answeredInput = function(e3, t3) {
2764
+ return Array.from(e3.querySelectorAll(".magicfeedback-input")).filter(((e4) => e4.name === t3)).find(((e4) => "radio" === e4.type || "checkbox" === e4.type ? e4.checked : "" !== e4.value)) || null;
2670
2765
  };
2671
- }, 9033: (e2, t2) => {
2766
+ }, 4069: (e2, t2) => {
2672
2767
  "use strict";
2673
2768
  function i(e3) {
2674
2769
  if (!e3) return null;
@@ -2696,7 +2791,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2696
2791
  }
2697
2792
  return (null === (n = e3.ownerDocument) || void 0 === n ? void 0 : n.activeElement) === r;
2698
2793
  };
2699
- }, 93: (e2, t2) => {
2794
+ }, 9089: (e2, t2) => {
2700
2795
  "use strict";
2701
2796
  Object.defineProperty(t2, "__esModule", { value: true }), t2.armGhostTapGuard = t2.GHOST_TAP_GUARD_MS = void 0, t2.GHOST_TAP_GUARD_MS = 400;
2702
2797
  const i = /* @__PURE__ */ new WeakMap();
@@ -2707,7 +2802,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2707
2802
  }), true), i.set(e3, n()));
2708
2803
  };
2709
2804
  const n = () => "undefined" != typeof performance ? performance.now() : Date.now();
2710
- }, 1874: (e2, t2) => {
2805
+ }, 4070: (e2, t2) => {
2711
2806
  "use strict";
2712
2807
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Log = void 0, t2.Log = class {
2713
2808
  constructor(e3) {
@@ -2722,13 +2817,13 @@ var require_magicfeedback_sdk_browser = __commonJS({
2722
2817
  };
2723
2818
  }, 8330: (e2) => {
2724
2819
  "use strict";
2725
- e2.exports = JSON.parse('{"name":"@magicfeedback/native","version":"2.2.31","main":"./dist/magicfeedback-sdk.node.js","browser":"./dist/magicfeedback-sdk.browser.js","types":"./dist/types/src/index.d.ts","repository":{"type":"git","url":"git+ssh://git@github.com/MagicFeedback/magicfeedback-sdk.git"},"author":"farias@magicfeedback.io","license":"MIT","private":false,"scripts":{"dev":"vite","build":"webpack","build:watch":"webpack --watch --mode development","release":"npm publish --access public","release:beta":"npm publish --access public --tag beta","release:alpha":"npm publish --access public --tag alpha","test":"jest","test:watch":"jest --watchAll","coverage":"jest --coverage","publish:sdk":"bash publish.sh","publish:sdk:dry-run":"NPM_DRY_RUN=1 bash publish.sh"},"files":["dist"],"devDependencies":{"@babel/preset-typescript":"^7.22.5","@types/node":"^17.0.21","@types/webpack":"^5.28.0","@types/webpack-node-externals":"^2.5.3","c8":"^7.11.0","copy-webpack-plugin":"^11.0.0","jest":"^29.5.0","jest-environment-jsdom":"^29.5.0","jest-fetch-mock":"^3.0.3","nock":"^13.2.4","ts-jest":"^29.1.0","ts-loader":"^9.2.7","ts-node":"^10.7.0","typescript":"^4.6.2","vite":"^2.8.0","vite-plugin-dts":"^0.9.9","webpack":"^5.70.0","webpack-cli":"^4.9.2","webpack-node-externals":"^3.0.0"},"dependencies":{"cross-fetch":"^3.1.5","is-bundling-for-browser-or-node":"^1.1.1"},"description":"MagicFeedbackAI JavaScript Library for [MagicFeedback.io](https://magicfeedback.io/)","bugs":{"url":"https://github.com/MagicFeedback/magicfeedback-sdk/issues"},"homepage":"https://github.com/MagicFeedback/magicfeedback-sdk#readme","directories":{"example":"examples","test":"test"},"style":"./dist/styles/magicfeedback-default.css"}');
2820
+ e2.exports = JSON.parse('{"name":"@magicfeedback/native","version":"2.2.33","main":"./dist/magicfeedback-sdk.node.js","browser":"./dist/magicfeedback-sdk.browser.js","types":"./dist/types/src/index.d.ts","repository":{"type":"git","url":"git+ssh://git@github.com/MagicFeedback/magicfeedback-sdk.git"},"author":"farias@magicfeedback.io","license":"MIT","private":false,"scripts":{"dev":"vite","build":"webpack","build:watch":"webpack --watch --mode development","release":"npm publish --access public","release:beta":"npm publish --access public --tag beta","release:alpha":"npm publish --access public --tag alpha","test":"jest","test:watch":"jest --watchAll","coverage":"jest --coverage","publish:sdk":"bash publish.sh","publish:sdk:dry-run":"NPM_DRY_RUN=1 bash publish.sh"},"files":["dist"],"devDependencies":{"@babel/preset-typescript":"^7.22.5","@types/node":"^17.0.21","@types/webpack":"^5.28.0","@types/webpack-node-externals":"^2.5.3","c8":"^7.11.0","copy-webpack-plugin":"^11.0.0","jest":"^29.5.0","jest-environment-jsdom":"^29.5.0","jest-fetch-mock":"^3.0.3","nock":"^13.2.4","ts-jest":"^29.1.0","ts-loader":"^9.2.7","ts-node":"^10.7.0","typescript":"^4.6.2","vite":"^2.8.0","vite-plugin-dts":"^0.9.9","webpack":"^5.70.0","webpack-cli":"^4.9.2","webpack-node-externals":"^3.0.0"},"dependencies":{"cross-fetch":"^3.1.5","is-bundling-for-browser-or-node":"^1.1.1"},"description":"MagicFeedbackAI JavaScript Library for [MagicFeedback.io](https://magicfeedback.io/)","bugs":{"url":"https://github.com/MagicFeedback/magicfeedback-sdk/issues"},"homepage":"https://github.com/MagicFeedback/magicfeedback-sdk#readme","directories":{"example":"examples","test":"test"},"style":"./dist/styles/magicfeedback-default.css"}');
2726
2821
  } }, t = {}, (function i(n) {
2727
2822
  var r = t[n];
2728
2823
  if (void 0 !== r) return r.exports;
2729
2824
  var o = t[n] = { exports: {} };
2730
2825
  return e[n].call(o.exports, o, o.exports, i), o.exports;
2731
- })(2474).default;
2826
+ })(1422).default;
2732
2827
  var e, t;
2733
2828
  }));
2734
2829
  }
@@ -3492,4 +3587,4 @@ export {
3492
3587
  SURVEY_ALIGNMENT_STYLE_ID,
3493
3588
  renderPopup
3494
3589
  };
3495
- //# sourceMappingURL=renderPopup-KSZJ5AN4.mjs.map
3590
+ //# sourceMappingURL=renderPopup-Z6TENBP6.mjs.map