@magicfeedback/popup-sdk 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -572,7 +572,7 @@ var init_style = __esm({
572
572
  style_default = `/**
573
573
  * NO EDITAR A MANO \u2014 generado por scripts/vendor-survey-css.mjs
574
574
  *
575
- * Copia de @magicfeedback/native@2.2.31 \u2192 dist/styles/magicfeedback-default.css
575
+ * Copia de @magicfeedback/native@2.2.33 \u2192 dist/styles/magicfeedback-default.css
576
576
  * (la hoja can\xF3nica del paquete, la que apunta su campo "style"), con estos cambios locales:
577
577
  *
578
578
  * 1. Sin el @import de Google Fonts (Nunito): no queremos una petici\xF3n externa desde la
@@ -2816,7 +2816,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
2816
2816
  !(function(e, t) {
2817
2817
  "object" == typeof exports && "object" == typeof module2 ? module2.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.magicfeedback = t() : e.magicfeedback = t();
2818
2818
  })(self, (() => {
2819
- return e = { 6911: function(e2, t2) {
2819
+ return e = { 6539: function(e2, t2) {
2820
2820
  var i = "undefined" != typeof self ? self : this, n = (function() {
2821
2821
  function e3() {
2822
2822
  this.fetch = false, this.DOMException = i.DOMException;
@@ -3022,19 +3022,19 @@ var require_magicfeedback_sdk_browser = __commonJS({
3022
3022
  })(n), n.fetch.ponyfill = true, delete n.fetch.polyfill;
3023
3023
  var r = n;
3024
3024
  (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;
3025
- }, 431: (e2, t2) => {
3025
+ }, 5867: (e2, t2) => {
3026
3026
  "use strict";
3027
3027
  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/";
3028
- }, 2474: function(e2, t2, i) {
3028
+ }, 1422: function(e2, t2, i) {
3029
3029
  "use strict";
3030
3030
  var n = this && this.__importDefault || function(e3) {
3031
3031
  return e3 && e3.__esModule ? e3 : { default: e3 };
3032
3032
  };
3033
3033
  Object.defineProperty(t2, "__esModule", { value: true });
3034
- const r = n(i(5969));
3034
+ const r = n(i(8453));
3035
3035
  let o = null;
3036
3036
  o || (o = (0, r.default)()), t2.default = o;
3037
- }, 5969: function(e2, t2, i) {
3037
+ }, 8453: function(e2, t2, i) {
3038
3038
  "use strict";
3039
3039
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
3040
3040
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -3062,7 +3062,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
3062
3062
  }));
3063
3063
  };
3064
3064
  Object.defineProperty(t2, "__esModule", { value: true });
3065
- const r = i(139), o = i(7350), a = i(8587), s = i(1874), l = i(6891), d = i(431), c = i(6029);
3065
+ const r = i(1167), o = i(7490), a = i(9303), s = i(4070), l = i(9071), d = i(5867), c = i(3433);
3066
3066
  t2.default = function() {
3067
3067
  const e3 = new a.Config();
3068
3068
  let t3 = new s.Log(e3);
@@ -3095,7 +3095,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
3095
3095
  }));
3096
3096
  } };
3097
3097
  };
3098
- }, 1701: (e2, t2) => {
3098
+ }, 9481: (e2, t2) => {
3099
3099
  "use strict";
3100
3100
  Object.defineProperty(t2, "__esModule", { value: true }), t2.History = void 0, t2.History = class {
3101
3101
  constructor() {
@@ -3126,7 +3126,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
3126
3126
  return this.items[e3];
3127
3127
  }
3128
3128
  };
3129
- }, 7350: function(e2, t2, i) {
3129
+ }, 7490: function(e2, t2, i) {
3130
3130
  "use strict";
3131
3131
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
3132
3132
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -3154,26 +3154,48 @@ var require_magicfeedback_sdk_browser = __commonJS({
3154
3154
  }));
3155
3155
  };
3156
3156
  Object.defineProperty(t2, "__esModule", { value: true }), t2.AgentForm = void 0;
3157
- 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);
3157
+ 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);
3158
3158
  t2.AgentForm = class {
3159
3159
  constructor(e3, t3, i2, n2) {
3160
- 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;
3160
+ 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;
3161
3161
  }
3162
3162
  generate(e3, t3 = {}) {
3163
- var i2;
3163
+ var i2, r2;
3164
+ return n(this, void 0, void 0, (function* () {
3165
+ this.formOptionsConfig = Object.assign(Object.assign({}, this.formOptionsConfig), t3), this.selector = e3, t3.lang && (this.language = t3.lang), t3.primaryColor && (this.primaryColor = t3.primaryColor);
3166
+ 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;
3167
+ if (n2 || !o2) yield this.open(n2);
3168
+ else try {
3169
+ this.renderWelcome(o2);
3170
+ } catch (e4) {
3171
+ this.log.err(`Could not show the introduction of ${this.integrationId}:`, e4), this.formOptionsConfig.onLoadedEvent && (yield this.formOptionsConfig.onLoadedEvent({ loading: false, error: e4 }));
3172
+ }
3173
+ }));
3174
+ }
3175
+ startForm() {
3176
+ return n(this, void 0, void 0, (function* () {
3177
+ this.started || (yield this.open(null));
3178
+ }));
3179
+ }
3180
+ renderWelcome(e3) {
3181
+ var t3;
3182
+ const i2 = (0, d.generateContainer)(this.selector, this.integrationId);
3183
+ 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 });
3184
+ }
3185
+ open(e3) {
3186
+ var t3, i2, r2;
3164
3187
  return n(this, void 0, void 0, (function* () {
3165
- 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");
3188
+ this.started = true;
3166
3189
  try {
3167
- const e4 = false !== this.formOptionsConfig.resume ? this.restore() : null;
3168
- if (e4) this.log.log(`Resuming agent session ${e4.sessionId} at turn ${e4.currentTurn}`), this.mountForm(), this.renderStep();
3190
+ if (e3) this.log.log(`Resuming agent session ${e3.sessionId} at turn ${e3.currentTurn}`), this.mountForm(), this.renderStep();
3169
3191
  else {
3170
- const e5 = yield this.startWithRetry();
3171
- 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);
3172
- const t4 = (0, s.toAgentStep)(e5, this.adapterContext());
3173
- 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 })));
3174
- this.acceptQuestion(t4), this.renderStep(), this.persist();
3192
+ const e4 = yield this.startWithRetry();
3193
+ 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);
3194
+ const n2 = (0, s.toAgentStep)(e4, this.adapterContext());
3195
+ 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 })));
3196
+ this.acceptQuestion(n2), this.renderStep(), this.persist();
3175
3197
  }
3176
- 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 }));
3198
+ 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 }));
3177
3199
  } catch (e4) {
3178
3200
  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 }));
3179
3201
  }
@@ -3214,7 +3236,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
3214
3236
  o2 = this.formOptionsConfig.emptyAnswerText || "";
3215
3237
  }
3216
3238
  this.formOptionsConfig.beforeSubmitEvent && (yield this.formOptionsConfig.beforeSubmitEvent({ loading: true, progress: this.progress, total: this.total }));
3217
- 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);
3239
+ 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);
3218
3240
  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);
3219
3241
  const h2 = (0, s.toAgentStep)(m2, this.adapterContext());
3220
3242
  if ("END" === h2.kind) return void (yield this.renderEnd(h2));
@@ -3297,7 +3319,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
3297
3319
  }
3298
3320
  startWithRetry() {
3299
3321
  return n(this, void 0, void 0, (function* () {
3300
- const e3 = { publicKey: this.publicKey, privateKey: this.privateKey, integrationId: this.integrationId };
3322
+ const e3 = Object.assign({ publicKey: this.publicKey, privateKey: this.privateKey, integrationId: this.integrationId }, this.previewFlag());
3301
3323
  try {
3302
3324
  return yield (0, a.startAgentSurvey)(this.url, e3, this.log);
3303
3325
  } catch (t3) {
@@ -3333,8 +3355,14 @@ var require_magicfeedback_sdk_browser = __commonJS({
3333
3355
  storageKey() {
3334
3356
  return `magicfeedback-agent-${this.integrationId}`;
3335
3357
  }
3358
+ isPreview() {
3359
+ return Boolean(this.config.get("dryRun"));
3360
+ }
3361
+ previewFlag() {
3362
+ return this.isPreview() ? { preview: true } : {};
3363
+ }
3336
3364
  persist() {
3337
- if (false !== this.formOptionsConfig.resume) try {
3365
+ if (!this.isPreview() && false !== this.formOptionsConfig.resume) try {
3338
3366
  const e3 = { sessionId: this.sessionId, conversation: this.conversation, currentTurn: this.currentTurn, maxTurns: this.maxTurns, askedRefs: this.askedRefs, questionHistory: this.questionHistory, savedAt: Date.now() };
3339
3367
  localStorage.setItem(this.storageKey(), JSON.stringify(e3));
3340
3368
  } catch (e3) {
@@ -3360,10 +3388,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
3360
3388
  }
3361
3389
  applyIntegrationContext(e3) {
3362
3390
  var t3, i2;
3363
- (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);
3391
+ 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);
3364
3392
  }
3365
3393
  };
3366
- }, 8587: (e2, t2) => {
3394
+ }, 9303: (e2, t2) => {
3367
3395
  "use strict";
3368
3396
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Config = void 0, t2.Config = class {
3369
3397
  constructor() {
@@ -3376,7 +3404,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
3376
3404
  this.variables[e3] = t3;
3377
3405
  }
3378
3406
  };
3379
- }, 139: function(e2, t2, i) {
3407
+ }, 1167: function(e2, t2, i) {
3380
3408
  "use strict";
3381
3409
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
3382
3410
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -3404,10 +3432,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
3404
3432
  }));
3405
3433
  };
3406
3434
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Form = void 0;
3407
- 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);
3435
+ 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];
3408
3436
  t2.Form = class {
3409
3437
  constructor(e3, t3, i2, n2, r2) {
3410
- 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;
3438
+ 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;
3411
3439
  }
3412
3440
  generate(e3, t3) {
3413
3441
  var i2, r2, a2, l2, d2, c2, u2;
@@ -3493,14 +3521,20 @@ var require_magicfeedback_sdk_browser = __commonJS({
3493
3521
  }
3494
3522
  this.formOptionsConfig.addButton && o2.addEventListener("submit", ((e4) => {
3495
3523
  e4.preventDefault(), this.send();
3496
- })), 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);
3524
+ })), 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);
3497
3525
  } catch (e4) {
3498
3526
  return this.log.err(e4), void (this.formOptionsConfig.onLoadedEvent && this.formOptionsConfig.onLoadedEvent({ loading: false, error: e4 }));
3499
3527
  }
3500
3528
  }));
3501
3529
  }
3530
+ autoAdvanceFromUrl(e3, t3) {
3531
+ if (this.urlAutoAdvanceChecked) return;
3532
+ if (this.urlAutoAdvanceChecked = true, !(0, A.autoAdvanceRequested)() || 1 !== t3.questions.length) return;
3533
+ const i2 = (0, A.answeredInput)(e3, t3.questions[0].ref);
3534
+ i2 && (0, A.scheduleAutoAdvance)(i2, (() => this.autoSend()));
3535
+ }
3502
3536
  startForm() {
3503
- this.generateForm("navigation");
3537
+ this.agentForm ? this.agentForm.startForm() : this.generateForm("navigation");
3504
3538
  }
3505
3539
  focusFirstQuestion() {
3506
3540
  return "undefined" != typeof document && (0, E.focusFirstTextQuestion)(document.getElementById("magicfeedback-questions-" + this.appId));
@@ -3745,13 +3779,65 @@ var require_magicfeedback_sdk_browser = __commonJS({
3745
3779
  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));
3746
3780
  if (void 0 === r2) return this.log.log(`The question ${e3.ref} has no answer, skipping its follow up`), null;
3747
3781
  try {
3748
- 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 });
3782
+ 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() });
3749
3783
  return yield (0, s.getFollowUpQuestion)(t4, i3, this.log);
3750
3784
  } catch (t4) {
3751
3785
  return this.log.err(`An error occurred while requesting the follow up of ${e3.ref} in the form ${this.appId}:`, t4), null;
3752
3786
  }
3753
3787
  }));
3754
3788
  }
3789
+ previousAnswers(e3) {
3790
+ var t3;
3791
+ const i2 = /* @__PURE__ */ new Map();
3792
+ for (let n2 = 0; n2 < this.history.size(); n2++) {
3793
+ const r2 = this.history.get(n2);
3794
+ if (r2) for (const n3 of r2.questions) {
3795
+ if (n3.ref === e3.ref) continue;
3796
+ if (k.includes(n3.type)) continue;
3797
+ const o2 = this.followUpAnswerValue(n3, null === (t3 = r2.answers) || void 0 === t3 ? void 0 : t3.find(((e4) => e4.key === n3.ref)));
3798
+ void 0 !== o2 && (i2.delete(n3.ref), i2.set(n3.ref, { title: n3.title, answer: o2 }));
3799
+ }
3800
+ }
3801
+ return [...i2.values()];
3802
+ }
3803
+ followUpAnswerValue(e3, t3) {
3804
+ var i2;
3805
+ const n2 = (null !== (i2 = null == t3 ? void 0 : t3.value) && void 0 !== i2 ? i2 : []).filter(((e4) => null != e4 && "" !== e4));
3806
+ if (0 === n2.length) return;
3807
+ if (e3.type === r.FEEDBACKAPPANSWERTYPE.BOOLEAN && 1 === n2.length && ["Yes", "No"].includes(n2[0])) return "Yes" === n2[0];
3808
+ if (e3.type === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) {
3809
+ const t4 = this.parseMatrixAnswerPre({ key: e3.ref, value: n2 }).map(((e4) => `${e4.key}: ${(Array.isArray(e4.value) ? e4.value : [e4.value]).join(", ")}`));
3810
+ return t4.length > 0 ? t4 : void 0;
3811
+ }
3812
+ const o2 = n2.map(((e4) => "string" == typeof e4 ? e4 : JSON.stringify(e4)));
3813
+ return 1 === o2.length ? o2[0] : o2;
3814
+ }
3815
+ upcomingQuestions() {
3816
+ var e3, t3;
3817
+ const i2 = this.history.back();
3818
+ if (!i2) return [];
3819
+ const n2 = [], o2 = /* @__PURE__ */ new Set(), a2 = /* @__PURE__ */ new Set();
3820
+ let s2 = i2.isFollowup && i2.origin ? i2.origin : i2, l2 = null !== (e3 = s2.answers) && void 0 !== e3 ? e3 : [];
3821
+ for (; !a2.has(s2.id); ) {
3822
+ let e4;
3823
+ if (a2.add(s2.id), l2) {
3824
+ const i4 = this.graph.findRoute(s2, l2);
3825
+ e4 = i4 ? i4.transition === h.TransitionType.PAGE && null !== (t3 = i4.transitionDestiny) && void 0 !== t3 ? t3 : void 0 : this.graph.getNextEdgeByDefault(s2);
3826
+ } else {
3827
+ if (s2.edges.some(((e5) => e5.typeCondition !== h.ConditionType.DIRECT && e5.typeCondition !== h.ConditionType.PRECONDITIONAL))) break;
3828
+ e4 = this.graph.getNextEdgeByDefault(s2);
3829
+ }
3830
+ const i3 = e4 ? this.graph.getNodeById(e4) : void 0;
3831
+ if (!i3) break;
3832
+ if (i3.edges.filter(((e5) => e5.typeCondition === h.ConditionType.PRECONDITIONAL)).some(((e5) => !this.latestAnswer(e5.questionRef)))) break;
3833
+ if (this.skipsByPreconditions(i3)) s2 = i3, l2 = [];
3834
+ else {
3835
+ 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 })));
3836
+ s2 = i3, l2 = null;
3837
+ }
3838
+ }
3839
+ return n2;
3840
+ }
3755
3841
  processNextQuestion(e3) {
3756
3842
  var t3, i2;
3757
3843
  return n(this, void 0, void 0, (function* () {
@@ -3773,54 +3859,61 @@ var require_magicfeedback_sdk_browser = __commonJS({
3773
3859
  }));
3774
3860
  }
3775
3861
  renderNextQuestion(e3, t3) {
3776
- var i2, o2, a2, s2, d2;
3862
+ var i2, r2, o2;
3777
3863
  return n(this, void 0, void 0, (function* () {
3778
- 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];
3779
- let u2 = this.graph.getNextPage(n2, c2);
3780
- if (!u2) return void this.finish();
3781
- const p2 = u2.edges.filter(((e4) => "PRECONDITIONAL" === e4.typeCondition)).sort(((e4, t4) => e4.position < t4.position ? -1 : e4.position > t4.position ? 1 : 0));
3782
- if ((null == p2 ? void 0 : p2.length) > 0) {
3783
- const t4 = p2.some(((e4) => e4.transition === h.TransitionType.ALLOW));
3784
- let i3 = t4;
3785
- for (const t5 of p2) {
3786
- let n3;
3787
- for (let e4 = this.history.size() - 1; e4 >= 0; e4--) {
3788
- const i4 = this.history.get(e4);
3789
- if (i4 && (n3 = null === (o2 = i4.answers) || void 0 === o2 ? void 0 : o2.find(((e5) => e5.key === t5.questionRef)), n3)) break;
3790
- }
3791
- let s3 = false;
3792
- if (n3) {
3793
- 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];
3794
- if ((null == e4 ? void 0 : e4.type) === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) s3 = this.evaluateMatrixPreconditional(t5, n3);
3795
- else switch (t5.typeOperator) {
3796
- case "EQUAL":
3797
- case "INQ":
3798
- s3 = i4.some(((e5) => o3.includes(e5)));
3799
- break;
3800
- case "NOEQUAL":
3801
- case "NINQ":
3802
- s3 = i4.every(((e5) => !o3.includes(e5)));
3803
- break;
3804
- case "GREATER":
3805
- s3 = i4.some(((e5) => Number(e5) > Number(o3[0])));
3806
- break;
3807
- case "LESS":
3808
- s3 = i4.some(((e5) => Number(e5) < Number(o3[0])));
3809
- break;
3810
- case "GREATEREQUAL":
3811
- s3 = i4.some(((e5) => Number(e5) >= Number(o3[0])));
3812
- break;
3813
- case "LESSEQUAL":
3814
- s3 = i4.some(((e5) => Number(e5) <= Number(o3[0])));
3815
- }
3816
- }
3817
- if (t5.transition === h.TransitionType.ALLOW) s3 || (i3 = false);
3818
- else if (t5.transition === h.TransitionType.NEXT && s3) return this.feedback.answers = [], void (u2 && (yield this.renderNextQuestion(e3, u2)));
3864
+ 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];
3865
+ let s2 = this.graph.getNextPage(n2, a2);
3866
+ if (s2) {
3867
+ if (this.skipsByPreconditions(s2)) return this.feedback.answers = [], void (yield this.renderNextQuestion(e3, s2));
3868
+ 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");
3869
+ } else this.finish();
3870
+ }));
3871
+ }
3872
+ skipsByPreconditions(e3) {
3873
+ var t3;
3874
+ const i2 = e3.edges.filter(((e4) => "PRECONDITIONAL" === e4.typeCondition)).sort(((e4, t4) => e4.position < t4.position ? -1 : e4.position > t4.position ? 1 : 0));
3875
+ if (0 === i2.length) return false;
3876
+ const n2 = i2.some(((e4) => e4.transition === h.TransitionType.ALLOW));
3877
+ let o2 = n2;
3878
+ for (const e4 of i2) {
3879
+ const i3 = this.latestAnswer(e4.questionRef);
3880
+ let n3 = false;
3881
+ if (i3) {
3882
+ 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];
3883
+ if ((null == o3 ? void 0 : o3.type) === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) n3 = this.evaluateMatrixPreconditional(e4, i3);
3884
+ else switch (e4.typeOperator) {
3885
+ case "EQUAL":
3886
+ case "INQ":
3887
+ n3 = a2.some(((e5) => s2.includes(e5)));
3888
+ break;
3889
+ case "NOEQUAL":
3890
+ case "NINQ":
3891
+ n3 = a2.every(((e5) => !s2.includes(e5)));
3892
+ break;
3893
+ case "GREATER":
3894
+ n3 = a2.some(((e5) => Number(e5) > Number(s2[0])));
3895
+ break;
3896
+ case "LESS":
3897
+ n3 = a2.some(((e5) => Number(e5) < Number(s2[0])));
3898
+ break;
3899
+ case "GREATEREQUAL":
3900
+ n3 = a2.some(((e5) => Number(e5) >= Number(s2[0])));
3901
+ break;
3902
+ case "LESSEQUAL":
3903
+ n3 = a2.some(((e5) => Number(e5) <= Number(s2[0])));
3819
3904
  }
3820
- if (t4 && !i3) return this.feedback.answers = [], void (u2 && (yield this.renderNextQuestion(e3, u2)));
3821
3905
  }
3822
- 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");
3823
- }));
3906
+ if (e4.transition === h.TransitionType.ALLOW) n3 || (o2 = false);
3907
+ else if (e4.transition === h.TransitionType.NEXT && n3) return true;
3908
+ }
3909
+ return !!n2 && !o2;
3910
+ }
3911
+ latestAnswer(e3) {
3912
+ var t3, i2;
3913
+ for (let n2 = this.history.size() - 1; n2 >= 0; n2--) {
3914
+ 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));
3915
+ if (r2) return r2;
3916
+ }
3824
3917
  }
3825
3918
  syncBackButton() {
3826
3919
  const e3 = document.getElementById("magicfeedback-" + this.appId), t3 = null == e3 ? void 0 : e3.querySelector(".magicfeedback-back");
@@ -3902,17 +3995,17 @@ var require_magicfeedback_sdk_browser = __commonJS({
3902
3995
  }
3903
3996
  }
3904
3997
  };
3905
- }, 198: (e2, t2) => {
3998
+ }, 3378: (e2, t2) => {
3906
3999
  "use strict";
3907
4000
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Page = void 0, t2.Page = class {
3908
4001
  constructor(e3, t3, i, n, r) {
3909
4002
  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;
3910
4003
  }
3911
4004
  };
3912
- }, 2531: (e2, t2, i) => {
4005
+ }, 1719: (e2, t2, i) => {
3913
4006
  "use strict";
3914
4007
  Object.defineProperty(t2, "__esModule", { value: true }), t2.PageGraph = void 0;
3915
- const n = i(1814), r = i(1140), o = i(4245);
4008
+ const n = i(7170), r = i(4760), o = i(7305);
3916
4009
  t2.PageGraph = class {
3917
4010
  constructor(e3) {
3918
4011
  this.nodes = /* @__PURE__ */ new Map(), this.buildGraph(e3);
@@ -3947,14 +4040,32 @@ var require_magicfeedback_sdk_browser = __commonJS({
3947
4040
  getNextPage(e3, t3) {
3948
4041
  var i2;
3949
4042
  if (!e3) return;
3950
- e3.edges.sort(((e4, t4) => "DIRECT" === e4.typeCondition ? 1 : "DIRECT" === t4.typeCondition ? -1 : 0));
3951
- const n2 = e3.edges.find(((i3) => {
3952
- const n3 = e3.questions.find(((e4) => e4.ref === i3.questionRef)), a = null == t3 ? void 0 : t3.filter(((e4) => e4.key === i3.questionRef));
3953
- if ("DIRECT" === i3.typeCondition) return true;
4043
+ const n2 = this.findRoute(e3, t3);
4044
+ if (!n2) {
4045
+ const t4 = this.getNextEdgeByDefault(e3);
4046
+ if (!t4) return;
4047
+ return this.getNodeById(t4);
4048
+ }
4049
+ switch (n2.transition) {
4050
+ case o.TransitionType.PAGE:
4051
+ if (!n2.transitionDestiny) return;
4052
+ return this.getNodeById(n2.transitionDestiny);
4053
+ case o.TransitionType.FINISH:
4054
+ return;
4055
+ case o.TransitionType.REDIRECT:
4056
+ 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}`);
4057
+ default:
4058
+ return;
4059
+ }
4060
+ }
4061
+ findRoute(e3, t3) {
4062
+ return e3.edges.sort(((e4, t4) => "DIRECT" === e4.typeCondition ? 1 : "DIRECT" === t4.typeCondition ? -1 : 0)), e3.edges.find(((i2) => {
4063
+ const n2 = e3.questions.find(((e4) => e4.ref === i2.questionRef)), a = null == t3 ? void 0 : t3.filter(((e4) => e4.key === i2.questionRef));
4064
+ if ("DIRECT" === i2.typeCondition) return true;
3954
4065
  if (!a || 0 === a.length) return false;
3955
- if ((null == n3 ? void 0 : n3.type) === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) return this.evaluateMatrixCondition(i3, a);
3956
- const s = Array.isArray(i3.value) ? i3.value : [i3.value];
3957
- switch (i3.typeOperator) {
4066
+ if ((null == n2 ? void 0 : n2.type) === r.FEEDBACKAPPANSWERTYPE.MULTI_QUESTION_MATRIX) return this.evaluateMatrixCondition(i2, a);
4067
+ const s = Array.isArray(i2.value) ? i2.value : [i2.value];
4068
+ switch (i2.typeOperator) {
3958
4069
  case o.OperatorType.EQUAL:
3959
4070
  return a.some(((e4) => (Array.isArray(e4.value) ? e4.value : [e4.value]).some(((e5) => s.includes(e5)))));
3960
4071
  case o.OperatorType.NOEQUAL:
@@ -3975,22 +4086,6 @@ var require_magicfeedback_sdk_browser = __commonJS({
3975
4086
  return false;
3976
4087
  }
3977
4088
  }));
3978
- if (!n2) {
3979
- const t4 = this.getNextEdgeByDefault(e3);
3980
- if (!t4) return;
3981
- return this.getNodeById(t4);
3982
- }
3983
- switch (n2.transition) {
3984
- case o.TransitionType.PAGE:
3985
- if (!n2.transitionDestiny) return;
3986
- return this.getNodeById(n2.transitionDestiny);
3987
- case o.TransitionType.FINISH:
3988
- return;
3989
- case o.TransitionType.REDIRECT:
3990
- 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}`);
3991
- default:
3992
- return;
3993
- }
3994
4089
  }
3995
4090
  findDepth(e3) {
3996
4091
  const t3 = this.getNodeById(e3);
@@ -4057,7 +4152,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
4057
4152
  }
4058
4153
  }
4059
4154
  };
4060
- }, 1814: (e2, t2) => {
4155
+ }, 7170: (e2, t2) => {
4061
4156
  "use strict";
4062
4157
  Object.defineProperty(t2, "__esModule", { value: true }), t2.PageNode = void 0, t2.PageNode = class {
4063
4158
  constructor(e3, t3, i, n, r, o = false) {
@@ -4073,7 +4168,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
4073
4168
  this.answers = e3;
4074
4169
  }
4075
4170
  };
4076
- }, 4245: (e2, t2) => {
4171
+ }, 7305: (e2, t2) => {
4077
4172
  "use strict";
4078
4173
  var i, n, r, o;
4079
4174
  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) {
@@ -4085,17 +4180,17 @@ var require_magicfeedback_sdk_browser = __commonJS({
4085
4180
  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 || [];
4086
4181
  }
4087
4182
  };
4088
- }, 1140: (e2, t2) => {
4183
+ }, 4760: (e2, t2) => {
4089
4184
  "use strict";
4090
4185
  var i, n;
4091
4186
  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 {
4092
4187
  }, t2.AGENT_ANSWER_TYPE_BLOCKED = "ABUSIVE_OR_OFFENSIVE", (function(e3) {
4093
4188
  e3.FORM = "form", e3.DIV = "div";
4094
4189
  })(i || (i = {}));
4095
- }, 459: (e2, t2, i) => {
4190
+ }, 2335: (e2, t2, i) => {
4096
4191
  "use strict";
4097
4192
  Object.defineProperty(t2, "__esModule", { value: true }), t2.applyDirection = t2.applyPrimaryColor = t2.generateContainer = void 0;
4098
- const n = i(7031);
4193
+ const n = i(7627);
4099
4194
  t2.generateContainer = function(e3, t3) {
4100
4195
  let i2 = document.getElementById(e3);
4101
4196
  if (!i2 && (i2 = document.getElementById("magicfeedback-container-" + t3), !i2)) throw new Error(`Element with ID '${e3}' not found.`);
@@ -4106,10 +4201,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
4106
4201
  const i2 = (0, n.isRtlLanguage)(t3);
4107
4202
  e3.setAttribute("dir", i2 ? "rtl" : "ltr"), e3.classList.toggle("magicfeedback-rtl", i2);
4108
4203
  };
4109
- }, 6658: (e2, t2, i) => {
4204
+ }, 1366: (e2, t2, i) => {
4110
4205
  "use strict";
4111
4206
  Object.defineProperty(t2, "__esModule", { value: true }), t2.getUrlParam = t2.getBooleanOptions = t2.parseTitle = void 0;
4112
- const n = i(7031);
4207
+ const n = i(7627);
4113
4208
  t2.parseTitle = function(e3, t3) {
4114
4209
  return e3 ? "object" == typeof e3 ? e3[t3] || e3.en : e3 : "";
4115
4210
  }, t2.getBooleanOptions = function(e3) {
@@ -4117,10 +4212,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
4117
4212
  }, t2.getUrlParam = function(e3) {
4118
4213
  return new URLSearchParams(window.location.search).get(e3);
4119
4214
  };
4120
- }, 1433: (e2, t2, i) => {
4215
+ }, 2709: (e2, t2, i) => {
4121
4216
  "use strict";
4122
4217
  Object.defineProperty(t2, "__esModule", { value: true }), t2.RATING_NUMBER_MIN_CHIP_WIDTH = t2.usesLegacyRatingNumber = t2.createRatingNumberElement = t2.createStarRating = t2.createRatingPlaceholder = void 0;
4123
- const n = i(7031), r = i(2139);
4218
+ const n = i(7627), r = i(9039);
4124
4219
  function o(e3, t3, i2 = "ltr") {
4125
4220
  const n2 = document.createElement("div");
4126
4221
  n2.classList.add("magicfeedback-rating-placeholder");
@@ -4131,32 +4226,27 @@ var require_magicfeedback_sdk_browser = __commonJS({
4131
4226
  }
4132
4227
  t2.createRatingPlaceholder = o, t2.createStarRating = function(e3, t3, i2, n2 = () => {
4133
4228
  }, a) {
4134
- const s = "magicfeedback-rating-star-selected", l = document.createElement("div");
4135
- l.classList.add("magicfeedback-rating-star-container"), l.style.maxWidth = "300px", l.style.margin = "auto", l.dataset.originalSelection = "0";
4229
+ const s = document.createElement("div");
4230
+ s.classList.add("magicfeedback-rating-star-container"), s.style.maxWidth = "300px", s.style.margin = "auto", s.dataset.originalSelection = "0";
4231
+ const l = (e4) => {
4232
+ s.querySelectorAll(".rating__star").forEach(((t4, i3) => {
4233
+ t4.classList.toggle("magicfeedback-rating-star-selected", i3 < e4);
4234
+ }));
4235
+ };
4136
4236
  for (let t4 = 1; t4 <= 5; t4++) {
4137
4237
  const i3 = document.createElement("label");
4138
4238
  i3.classList.add("magicfeedback-rating-star-option");
4139
4239
  const o2 = document.createElement("input");
4140
4240
  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", (() => {
4141
- const e4 = l.querySelectorAll(".rating__star");
4142
- 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);
4143
- l.dataset.originalSelection = o2.value;
4241
+ l(Number(o2.value)), s.dataset.originalSelection = o2.value;
4144
4242
  })), (0, r.autoAdvanceOn)(o2, n2), i3.appendChild(o2);
4145
4243
  const d2 = document.createElement("label");
4146
- 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", (() => {
4147
- const e4 = l.querySelectorAll(".rating__star"), i4 = t4 - 1;
4148
- e4.forEach(((e5, t5) => {
4149
- t5 <= i4 ? e5.classList.contains(s) || e5.classList.add(s) : e5.classList.contains(s) && e5.classList.remove(s);
4150
- }));
4151
- })), d2.addEventListener("mouseleave", (() => {
4152
- const e4 = Number(l.dataset.originalSelection || "0");
4153
- l.querySelectorAll(".rating__star").forEach(((t5, i4) => {
4154
- i4 < e4 ? t5.classList.contains(s) || t5.classList.add(s) : t5.classList.contains(s) && t5.classList.remove(s);
4155
- }));
4156
- })), i3.appendChild(d2), l.appendChild(i3);
4244
+ 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);
4157
4245
  }
4158
- const d = o(t3, i2);
4159
- return d.childElementCount > 0 && l.appendChild(d), l;
4246
+ const d = s.querySelector("input:checked");
4247
+ d && (s.dataset.originalSelection = d.value, l(Number(d.value)));
4248
+ const c = o(t3, i2);
4249
+ return c.childElementCount > 0 && s.appendChild(c), s;
4160
4250
  }, t2.createRatingNumberElement = function(e3, i2, o2, a, s, l, d, c, u = {}) {
4161
4251
  var p, m;
4162
4252
  const h = document.createElement("div");
@@ -4174,21 +4264,21 @@ var require_magicfeedback_sdk_browser = __commonJS({
4174
4264
  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;
4175
4265
  !v && A - k + 1 > 6 && E.classList.add("magicfeedback-rating-number-container-row--dense");
4176
4266
  const T = (null == i2 ? void 0 : i2.numberPlaceholders) || null, C = !(!T || !Object.keys(T).length);
4177
- let x = null;
4267
+ let P = null;
4178
4268
  if (!v && ((null == i2 ? void 0 : i2.minPlaceholder) || (null == i2 ? void 0 : i2.maxPlaceholder))) {
4179
- x = document.createElement("div"), x.classList.add("magicfeedback-rating-number-scale-labels");
4269
+ P = document.createElement("div"), P.classList.add("magicfeedback-rating-number-scale-labels");
4180
4270
  const e4 = document.createElement("span");
4181
4271
  e4.classList.add("magicfeedback-rating-number-scale-label"), e4.textContent = null !== (p = null == i2 ? void 0 : i2.minPlaceholder) && void 0 !== p ? p : "";
4182
4272
  const t3 = document.createElement("span");
4183
- 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));
4273
+ 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));
4184
4274
  }
4185
- let P = null;
4275
+ let w = null;
4186
4276
  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))) {
4187
4277
  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) => {
4188
4278
  const t4 = document.createElement("div");
4189
4279
  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;
4190
4280
  };
4191
- e4 && h.appendChild(n2(e4)), t3 && (P = n2(t3));
4281
+ e4 && h.appendChild(n2(e4)), t3 && (w = n2(t3));
4192
4282
  }
4193
4283
  for (let t3 = k; t3 <= A; t3++) {
4194
4284
  const n2 = document.createElement("div");
@@ -4210,7 +4300,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
4210
4300
  } else T && T[t3] && (o3.title = T[t3]);
4211
4301
  o3.appendChild(m2), n2.appendChild(o3), E.appendChild(n2);
4212
4302
  }
4213
- if (h.appendChild(E), P && h.appendChild(P), x && h.appendChild(x), v || f || (function(e4, i3, n2, r2) {
4303
+ if (h.appendChild(E), w && h.appendChild(w), P && h.appendChild(P), v || f || (function(e4, i3, n2, r2) {
4214
4304
  if ("undefined" == typeof ResizeObserver) return;
4215
4305
  const o3 = i3.classList.contains("magicfeedback-rating-number-container-row--dense");
4216
4306
  let a2 = 0, s2 = false;
@@ -4250,17 +4340,17 @@ var require_magicfeedback_sdk_browser = __commonJS({
4250
4340
  }, t2.usesLegacyRatingNumber = function(e3) {
4251
4341
  return !!e3 && /matas/i.test(e3);
4252
4342
  }, t2.RATING_NUMBER_MIN_CHIP_WIDTH = 44;
4253
- }, 7156: (e2, t2, i) => {
4343
+ }, 368: (e2, t2, i) => {
4254
4344
  "use strict";
4255
4345
  Object.defineProperty(t2, "__esModule", { value: true }), t2.getQuestionRenderer = void 0;
4256
- 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]]);
4346
+ 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]]);
4257
4347
  t2.getQuestionRenderer = function(e3) {
4258
- return x.get(e3);
4348
+ return P.get(e3);
4259
4349
  };
4260
- }, 227: (e2, t2, i) => {
4350
+ }, 2807: (e2, t2, i) => {
4261
4351
  "use strict";
4262
4352
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderBoolean = void 0;
4263
- const n = i(6658), r = i(2139);
4353
+ const n = i(1366), r = i(9039);
4264
4354
  t2.renderBoolean = ({ question: e3, language: t3, urlParamValue: i2, send: o }) => {
4265
4355
  const { ref: a, assets: s } = e3, l = document.createElement("div"), d = "magicfeedback-radio", c = document.createElement("div");
4266
4356
  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) => {
@@ -4272,10 +4362,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
4272
4362
  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);
4273
4363
  })), l.appendChild(c), { element: l, elementTypeClass: d };
4274
4364
  };
4275
- }, 7352: (e2, t2, i) => {
4365
+ }, 620: (e2, t2, i) => {
4276
4366
  "use strict";
4277
4367
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderChoice = void 0;
4278
- const n = i(1140), r = i(9930), o = i(2139);
4368
+ const n = i(4760), r = i(3262), o = i(9039);
4279
4369
  t2.renderChoice = ({ question: e3, language: t3, urlParamValue: i2, randomPosition: a, send: s }) => {
4280
4370
  const { type: l, ref: d, value: c, defaultValue: u, assets: p } = e3, m = document.createElement("div"), h = "magicfeedback-" + ("MULTIPLECHOICE" === l ? "checkbox" : "radio");
4281
4371
  let f = c || [];
@@ -4304,29 +4394,29 @@ var require_magicfeedback_sdk_browser = __commonJS({
4304
4394
  }
4305
4395
  })), { element: m, elementTypeClass: h };
4306
4396
  };
4307
- }, 5429: (e2, t2, i) => {
4397
+ }, 9369: (e2, t2, i) => {
4308
4398
  "use strict";
4309
4399
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderConsent = void 0;
4310
- const n = i(2139);
4400
+ const n = i(9039);
4311
4401
  t2.renderConsent = ({ question: e3, urlParamValue: t3, send: i2 }) => {
4312
4402
  const { id: r, ref: o, value: a, require: s } = e3, l = document.createElement("input");
4313
4403
  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" };
4314
4404
  };
4315
- }, 511: (e2, t2, i) => {
4405
+ }, 8139: (e2, t2, i) => {
4316
4406
  "use strict";
4317
4407
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderDate = void 0;
4318
- const n = i(9930);
4408
+ const n = i(3262);
4319
4409
  t2.renderDate = ({ language: e3, placeholderText: t3, urlParamValue: i2 }) => {
4320
4410
  const r = document.createElement("input");
4321
4411
  return r.type = "date", r.placeholder = t3 || n.placeholder.date(e3 || "en"), i2 && (r.value = i2), { element: r, elementTypeClass: "magicfeedback-date" };
4322
4412
  };
4323
- }, 6055: (e2, t2) => {
4413
+ }, 6363: (e2, t2) => {
4324
4414
  "use strict";
4325
4415
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderEmail = void 0, t2.renderEmail = ({ placeholderText: e3, urlParamValue: t3 }) => {
4326
4416
  const i = document.createElement("input");
4327
4417
  return i.type = "email", i.placeholder = e3 || "you@example.com", t3 && (i.value = t3), { element: i, elementTypeClass: "magicfeedback-email" };
4328
4418
  };
4329
- }, 4792: (e2, t2) => {
4419
+ }, 9796: (e2, t2) => {
4330
4420
  "use strict";
4331
4421
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderInfoPage = void 0, t2.renderInfoPage = ({ question: e3, placeholderText: t3 }) => {
4332
4422
  var i, n;
@@ -4337,15 +4427,15 @@ var require_magicfeedback_sdk_browser = __commonJS({
4337
4427
  }
4338
4428
  return { element: r, elementTypeClass: "magicfeedback-info-page" };
4339
4429
  };
4340
- }, 5826: (e2, t2, i) => {
4430
+ }, 9006: (e2, t2, i) => {
4341
4431
  "use strict";
4342
4432
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderLongText = void 0;
4343
- const n = i(9930);
4433
+ const n = i(3262);
4344
4434
  t2.renderLongText = ({ language: e3, placeholderText: t3, urlParamValue: i2, maxCharacters: r }) => {
4345
4435
  const o = document.createElement("textarea");
4346
4436
  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" };
4347
4437
  };
4348
- }, 6838: (e2, t2) => {
4438
+ }, 1994: (e2, t2) => {
4349
4439
  "use strict";
4350
4440
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderMatrix = void 0, t2.renderMatrix = ({ question: e3, isPhone: t3, randomPosition: i }) => {
4351
4441
  const { ref: n, value: r, assets: o } = e3, a = document.createElement("div"), s = document.createElement("div");
@@ -4393,10 +4483,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
4393
4483
  }
4394
4484
  return a.appendChild(s), { element: a, elementTypeClass: "magicfeedback-multi-question-matrix" };
4395
4485
  };
4396
- }, 7754: (e2, t2, i) => {
4486
+ }, 5430: (e2, t2, i) => {
4397
4487
  "use strict";
4398
4488
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderMaxDiff = void 0;
4399
- const n = i(6658), r = i(7031), o = "http://www.w3.org/2000/svg";
4489
+ const n = i(1366), r = i(7627), o = "http://www.w3.org/2000/svg";
4400
4490
  t2.renderMaxDiff = ({ question: e3, language: t3, randomPosition: i2 }) => {
4401
4491
  const { ref: a, value: s, assets: l } = e3, d = document.createElement("div");
4402
4492
  let c = [...s || []];
@@ -4449,10 +4539,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
4449
4539
  })));
4450
4540
  })), p.appendChild(f), d.appendChild(p), { element: d, elementTypeClass: "magicfeedback-max-diff" };
4451
4541
  };
4452
- }, 5963: (e2, t2, i) => {
4542
+ }, 2287: (e2, t2, i) => {
4453
4543
  "use strict";
4454
4544
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderMultipleChoiceImage = void 0;
4455
- const n = i(2139);
4545
+ const n = i(9039);
4456
4546
  t2.renderMultipleChoiceImage = ({ question: e3, randomPosition: t3, urlParamValue: i2, send: r }) => {
4457
4547
  const o = document.createElement("div"), { ref: a, assets: s } = e3;
4458
4548
  let l = [...e3.value];
@@ -4501,28 +4591,28 @@ var require_magicfeedback_sdk_browser = __commonJS({
4501
4591
  }
4502
4592
  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" };
4503
4593
  };
4504
- }, 6054: (e2, t2, i) => {
4594
+ }, 3034: (e2, t2, i) => {
4505
4595
  "use strict";
4506
4596
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderNumber = void 0;
4507
- const n = i(9930), r = i(6658);
4597
+ const n = i(3262), r = i(1366);
4508
4598
  t2.renderNumber = ({ question: e3, format: t3, language: i2, urlParamValue: o }) => {
4509
4599
  const a = document.createElement("input");
4510
4600
  a.type = "number", a.placeholder = "slim" === t3 ? (0, r.parseTitle)(e3.title, i2) : n.placeholder.number(i2 || "en");
4511
4601
  const { value: s } = e3;
4512
4602
  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" };
4513
4603
  };
4514
- }, 4310: (e2, t2, i) => {
4604
+ }, 7282: (e2, t2, i) => {
4515
4605
  "use strict";
4516
4606
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderPassword = void 0;
4517
- const n = i(9930);
4607
+ const n = i(3262);
4518
4608
  t2.renderPassword = ({ language: e3, placeholderText: t3, urlParamValue: i2 }) => {
4519
4609
  const r = document.createElement("input");
4520
4610
  return r.type = "password", r.placeholder = t3 || n.placeholder.password(e3 || "en"), i2 && (r.value = i2), { element: r, elementTypeClass: "magicfeedback-password" };
4521
4611
  };
4522
- }, 1732: (e2, t2, i) => {
4612
+ }, 8160: (e2, t2, i) => {
4523
4613
  "use strict";
4524
4614
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderPointSystem = void 0;
4525
- const n = i(9930);
4615
+ const n = i(3262);
4526
4616
  t2.renderPointSystem = ({ question: e3, language: t3 }) => {
4527
4617
  const { ref: i2, value: r } = e3, o = document.createElement("div"), a = document.createElement("div");
4528
4618
  a.classList.add("magicfeedback-point-system-container");
@@ -4563,10 +4653,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
4563
4653
  })), o2.appendChild(a2), o2.appendChild(p), n2.appendChild(o2), s.appendChild(n2);
4564
4654
  })), a.appendChild(s), a.appendChild(c), a.appendChild(d), o.appendChild(a), { element: o, elementTypeClass: "magicfeedback-point-system" };
4565
4655
  };
4566
- }, 2427: (e2, t2, i) => {
4656
+ }, 1615: (e2, t2, i) => {
4567
4657
  "use strict";
4568
4658
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderPriorityList = void 0;
4569
- const n = i(7031);
4659
+ const n = i(7627);
4570
4660
  t2.renderPriorityList = ({ question: e3, randomPosition: t3, language: i2 }) => {
4571
4661
  var r, o, a;
4572
4662
  const s = document.createElement("div"), l = (function(e4) {
@@ -4662,23 +4752,23 @@ var require_magicfeedback_sdk_browser = __commonJS({
4662
4752
  T.textContent = `${d("prioritized")} ${e5.length} ${t5} ${a2}`, u2.style.display = e5.length > 0 ? "block" : "none";
4663
4753
  };
4664
4754
  C();
4665
- const x = document.createElement("button");
4666
- 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";
4667
- const P = () => {
4755
+ const P = document.createElement("button");
4756
+ 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";
4757
+ const w = () => {
4668
4758
  document.body.appendChild(g), g.style.display = "flex", E(), C();
4669
- }, L = () => {
4759
+ }, x = () => {
4670
4760
  g.style.display = "none", c.appendChild(g);
4671
4761
  };
4672
- x.addEventListener("click", (() => {
4673
- L();
4762
+ P.addEventListener("click", (() => {
4763
+ x();
4674
4764
  }));
4675
4765
  const S = document.createElement("button");
4676
4766
  return S.type = "button", S.textContent = d("confirm"), S.classList.add("magicfeedback-button"), S.classList.add("magicfeedback-button-primary"), S.addEventListener("click", (() => {
4677
- L(), f();
4678
- })), k.appendChild(T), k.appendChild(S), y.appendChild(x), y.appendChild(v), y.appendChild(A), y.appendChild(k), g.appendChild(y), p2.addEventListener("click", (() => {
4679
- P();
4767
+ x(), f();
4768
+ })), k.appendChild(T), k.appendChild(S), y.appendChild(P), y.appendChild(v), y.appendChild(A), y.appendChild(k), g.appendChild(y), p2.addEventListener("click", (() => {
4769
+ w();
4680
4770
  })), g.addEventListener("click", ((e6) => {
4681
- e6.target === g && L();
4771
+ e6.target === g && x();
4682
4772
  })), c.appendChild(o3), c.appendChild(m), c.appendChild(g), f(), c;
4683
4773
  }
4684
4774
  const u = document.createElement("ul");
@@ -4727,10 +4817,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
4727
4817
  })({ 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" });
4728
4818
  return s.appendChild(l), { element: s, elementTypeClass: "magicfeedback-priority-list" };
4729
4819
  };
4730
- }, 8822: (e2, t2, i) => {
4820
+ }, 2626: (e2, t2, i) => {
4731
4821
  "use strict";
4732
4822
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderRatingEmoji = void 0;
4733
- const n = i(1433), r = i(2139), o = "https://survey-dev.magicfeedback.io/assets/emojis";
4823
+ const n = i(2709), r = i(9039), o = "https://survey-dev.magicfeedback.io/assets/emojis";
4734
4824
  t2.renderRatingEmoji = ({ question: e3, url: t3, send: i2, urlParamValue: a }) => {
4735
4825
  const { ref: s, assets: l } = e3, d = document.createElement("div"), c = "magicfeedback-rating", u = document.createElement("div");
4736
4826
  u.classList.add("magicfeedback-rating-container");
@@ -4781,27 +4871,27 @@ var require_magicfeedback_sdk_browser = __commonJS({
4781
4871
  }
4782
4872
  return h.childElementCount > 0 && u.appendChild(h), d.appendChild(u), { element: d, elementTypeClass: c };
4783
4873
  };
4784
- }, 6083: (e2, t2, i) => {
4874
+ }, 2255: (e2, t2, i) => {
4785
4875
  "use strict";
4786
4876
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderRatingNumber = void 0;
4787
- const n = i(1433);
4877
+ const n = i(2709);
4788
4878
  t2.renderRatingNumber = ({ question: e3, order: t3, direction: i2, send: r, urlParamValue: o, language: a, isPhone: s, productId: l }) => {
4789
4879
  const d = "magicfeedback-rating-number";
4790
4880
  return { element: (0, n.createRatingNumberElement)(e3.ref, e3.assets, t3, i2, d, r, o, a, { legacy: (0, n.usesLegacyRatingNumber)(l), isPhone: s }), elementTypeClass: d };
4791
4881
  };
4792
- }, 9102: (e2, t2, i) => {
4882
+ }, 1042: (e2, t2, i) => {
4793
4883
  "use strict";
4794
4884
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderRatingStar = void 0;
4795
- const n = i(1433);
4885
+ const n = i(2709);
4796
4886
  t2.renderRatingStar = ({ question: e3, send: t3, urlParamValue: i2 }) => {
4797
4887
  var r, o;
4798
4888
  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);
4799
4889
  return a.appendChild(s), { element: a, elementTypeClass: "magicfeedback-rating-star" };
4800
4890
  };
4801
- }, 8707: (e2, t2, i) => {
4891
+ }, 2311: (e2, t2, i) => {
4802
4892
  "use strict";
4803
4893
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderSelect = void 0;
4804
- const n = i(6658), r = i(7031);
4894
+ const n = i(1366), r = i(7627);
4805
4895
  t2.renderSelect = ({ question: e3, format: t3, language: i2, urlParamValue: o }) => {
4806
4896
  const { title: a, value: s, defaultValue: l } = e3, d = document.createElement("select"), c = document.createElement("option");
4807
4897
  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) => {
@@ -4809,27 +4899,27 @@ var require_magicfeedback_sdk_browser = __commonJS({
4809
4899
  t4.value = e4, t4.text = e4, d.appendChild(t4);
4810
4900
  })), o && s.includes(o) && (d.value = o), { element: d, elementTypeClass: "magicfeedback-select" };
4811
4901
  };
4812
- }, 8416: (e2, t2, i) => {
4902
+ }, 8924: (e2, t2, i) => {
4813
4903
  "use strict";
4814
4904
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderText = void 0;
4815
- const n = i(9930);
4905
+ const n = i(3262);
4816
4906
  t2.renderText = ({ language: e3, placeholderText: t3, urlParamValue: i2, send: r }) => {
4817
4907
  const o = document.createElement("input");
4818
4908
  return o.type = "text", o.placeholder = t3 || n.placeholder.answer(e3 || "en"), i2 && (o.value = i2), o.addEventListener("keyup", ((e4) => {
4819
4909
  e4.preventDefault(), "Enter" === e4.key && r && r();
4820
4910
  })), { element: o, elementTypeClass: "magicfeedback-text" };
4821
4911
  };
4822
- }, 4336: (e2, t2, i) => {
4912
+ }, 1724: (e2, t2, i) => {
4823
4913
  "use strict";
4824
4914
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderUploadFile = void 0;
4825
- const n = i(1853);
4915
+ const n = i(8129);
4826
4916
  t2.renderUploadFile = ({ question: e3, language: t3 }) => (0, n.createUploadControl)(e3, t3, "file");
4827
- }, 5469: (e2, t2, i) => {
4917
+ }, 9169: (e2, t2, i) => {
4828
4918
  "use strict";
4829
4919
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderUploadImage = void 0;
4830
- const n = i(1853);
4920
+ const n = i(8129);
4831
4921
  t2.renderUploadImage = ({ question: e3, language: t3 }) => (0, n.createUploadControl)(e3, t3, "image");
4832
- }, 1853: function(e2, t2, i) {
4922
+ }, 8129: function(e2, t2, i) {
4833
4923
  "use strict";
4834
4924
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
4835
4925
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -4857,7 +4947,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
4857
4947
  }));
4858
4948
  };
4859
4949
  Object.defineProperty(t2, "__esModule", { value: true }), t2.createUploadControl = t2.awaitUploadReady = t2.getUploadValues = t2.formatFileSize = void 0;
4860
- const r = i(9930), o = i(6658), a = "__mfUploadValues", s = "__mfUploadReady";
4950
+ const r = i(3262), o = i(1366), a = "__mfUploadValues", s = "__mfUploadReady";
4861
4951
  function l(e3) {
4862
4952
  if ("number" != typeof e3 || isNaN(e3)) return "";
4863
4953
  if (e3 < 1024) return `${e3} B`;
@@ -4895,25 +4985,25 @@ var require_magicfeedback_sdk_browser = __commonJS({
4895
4985
  })(t3, i2, m, h, f), E.appendChild(v), E.appendChild(A), E.appendChild(k), E.appendChild(T);
4896
4986
  const C = document.createElement("div");
4897
4987
  C.classList.add("magicfeedback-upload-error");
4898
- const x = document.createElement("ul");
4899
- x.classList.add("magicfeedback-upload-list"), y.appendChild(E), y.appendChild(C), y.appendChild(x);
4900
- const P = /* @__PURE__ */ new WeakMap(), L = (e4) => {
4901
- const t4 = P.get(e4);
4988
+ const P = document.createElement("ul");
4989
+ P.classList.add("magicfeedback-upload-list"), y.appendChild(E), y.appendChild(C), y.appendChild(P);
4990
+ const w = /* @__PURE__ */ new WeakMap(), x = (e4) => {
4991
+ const t4 = w.get(e4);
4902
4992
  return t4 ? Promise.resolve(t4) : new Promise(((t5) => {
4903
4993
  const i3 = new FileReader(), n3 = (i4) => {
4904
4994
  const n4 = JSON.stringify({ name: e4.name, type: e4.type, size: e4.size, content: i4 });
4905
- P.set(e4, n4), t5(n4);
4995
+ w.set(e4, n4), t5(n4);
4906
4996
  };
4907
4997
  i3.onload = () => n3("string" == typeof i3.result ? i3.result : ""), i3.onerror = () => n3(""), i3.readAsDataURL(e4);
4908
4998
  }));
4909
- }, S = [], w = (e4) => {
4999
+ }, S = [], O = (e4) => {
4910
5000
  try {
4911
5001
  const t4 = h > 0 ? e4.slice(0, h) : e4, i3 = new DataTransfer();
4912
5002
  t4.forEach(((e5) => i3.items.add(e5))), v.files = i3.files;
4913
5003
  } catch (e5) {
4914
5004
  }
4915
5005
  !(function() {
4916
- S.forEach(((e6) => URL.revokeObjectURL(e6))), S.length = 0, x.innerHTML = "";
5006
+ S.forEach(((e6) => URL.revokeObjectURL(e6))), S.length = 0, P.innerHTML = "";
4917
5007
  const e5 = Array.from(v.files || []);
4918
5008
  y.classList.toggle("magicfeedback-upload--has-files", e5.length > 0), e5.forEach(((e6, n3) => {
4919
5009
  const o2 = document.createElement("li");
@@ -4933,16 +5023,16 @@ var require_magicfeedback_sdk_browser = __commonJS({
4933
5023
  c2.classList.add("magicfeedback-upload-file-size"), c2.textContent = l(e6.size), s2.appendChild(d2), s2.appendChild(c2);
4934
5024
  const u2 = document.createElement("button");
4935
5025
  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) => {
4936
- e7.preventDefault(), e7.stopPropagation(), w(Array.from(v.files || []).filter(((e8, t4) => t4 !== n3)));
4937
- })), o2.appendChild(a2), o2.appendChild(s2), o2.appendChild(u2), x.appendChild(o2);
5026
+ e7.preventDefault(), e7.stopPropagation(), O(Array.from(v.files || []).filter(((e8, t4) => t4 !== n3)));
5027
+ })), o2.appendChild(a2), o2.appendChild(s2), o2.appendChild(u2), P.appendChild(o2);
4938
5028
  }));
4939
5029
  })(), (() => {
4940
- const e5 = Array.from(v.files || []), t4 = Promise.all(e5.map(L)).then(((e6) => {
5030
+ const e5 = Array.from(v.files || []), t4 = Promise.all(e5.map(x)).then(((e6) => {
4941
5031
  v[a] = e6;
4942
5032
  }));
4943
5033
  v[s] = t4;
4944
5034
  })();
4945
- }, O = (e4) => {
5035
+ }, L = (e4) => {
4946
5036
  if (!e4.length) return C.textContent = "", void C.classList.remove("is-visible");
4947
5037
  const i3 = e4.map(((e5) => e5.name)).join(", ");
4948
5038
  C.textContent = `${r.placeholder.upload.tooLarge(t3, f)}: ${i3}`, C.classList.add("is-visible");
@@ -4953,7 +5043,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
4953
5043
  };
4954
5044
  v.addEventListener("change", (() => {
4955
5045
  const { accepted: e4, rejected: t4 } = N(Array.from(v.files || []));
4956
- O(t4), w(e4);
5046
+ L(t4), O(e4);
4957
5047
  }));
4958
5048
  const I = (e4) => {
4959
5049
  e4.preventDefault(), e4.stopPropagation();
@@ -4968,12 +5058,12 @@ var require_magicfeedback_sdk_browser = __commonJS({
4968
5058
  let n3 = t4 ? Array.from(t4.files) : [];
4969
5059
  if ("image" === i2 && (n3 = n3.filter(((e5) => e5.type.startsWith("image/")))), !n3.length) return;
4970
5060
  const { accepted: r2, rejected: o2 } = N(n3);
4971
- if (O(o2), !r2.length) return;
5061
+ if (L(o2), !r2.length) return;
4972
5062
  const a2 = m ? Array.from(v.files || []) : [];
4973
- w(a2.concat(r2));
5063
+ O(a2.concat(r2));
4974
5064
  })), { element: y, elementTypeClass: p };
4975
5065
  };
4976
- }, 8019: function(e2, t2, i) {
5066
+ }, 4759: function(e2, t2, i) {
4977
5067
  "use strict";
4978
5068
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
4979
5069
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -5003,7 +5093,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
5003
5093
  return e3 && e3.__esModule ? e3 : { default: e3 };
5004
5094
  };
5005
5095
  Object.defineProperty(t2, "__esModule", { value: true }), t2.nextAgentTurn = t2.startAgentSurvey = void 0;
5006
- const o = r(i(6911)), a = i(6891), s = i(1347), l = i(9);
5096
+ const o = r(i(6539)), a = i(9071), s = i(5407), l = i(3501);
5007
5097
  function d(e3, t3, i2, r2, s2) {
5008
5098
  var d2;
5009
5099
  return n(this, void 0, void 0, (function* () {
@@ -5039,7 +5129,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
5039
5129
  }, t2.nextAgentTurn = function(e3, t3, i2) {
5040
5130
  return d(e3, s.endpoints.sdk.agentSurveyNext, t3, i2, "next");
5041
5131
  };
5042
- }, 9: (e2, t2) => {
5132
+ }, 3501: (e2, t2) => {
5043
5133
  "use strict";
5044
5134
  Object.defineProperty(t2, "__esModule", { value: true }), t2.mapAgentStatus = t2.AgentApiError = void 0;
5045
5135
  class i extends Error {
@@ -5053,10 +5143,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
5053
5143
  t2.AgentApiError = i, t2.mapAgentStatus = function(e3, t3) {
5054
5144
  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";
5055
5145
  };
5056
- }, 3963: (e2, t2, i) => {
5146
+ }, 1351: (e2, t2, i) => {
5057
5147
  "use strict";
5058
5148
  Object.defineProperty(t2, "__esModule", { value: true }), t2.encodeAnswer = t2.toAgentStep = t2.ratingBounds = t2.mapAgentType = t2.DEFAULT_ANSWER_DELIMITER = void 0;
5059
- const n = i(1140), r = i(6658);
5149
+ const n = i(4760), r = i(1366);
5060
5150
  t2.DEFAULT_ANSWER_DELIMITER = ", ";
5061
5151
  const o = [n.FEEDBACKAPPANSWERTYPE.RADIO, n.FEEDBACKAPPANSWERTYPE.MULTIPLECHOICE, n.FEEDBACKAPPANSWERTYPE.SELECT, n.FEEDBACKAPPANSWERTYPE.MULTIPLECHOISE_IMAGE], a = Object.values(n.FEEDBACKAPPANSWERTYPE);
5062
5152
  function s(e3, t3, i2) {
@@ -5099,10 +5189,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
5099
5189
  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}`)));
5100
5190
  return [a2.filter(((e4, t3) => a2.indexOf(e4) === t3)).join(n2), s2.join(n2)].filter(((e4) => "" !== e4)).join(n2);
5101
5191
  };
5102
- }, 1817: (e2, t2, i) => {
5192
+ }, 5349: (e2, t2, i) => {
5103
5193
  "use strict";
5104
5194
  Object.defineProperty(t2, "__esModule", { value: true }), t2.scrapeInputs = void 0;
5105
- const n = i(1853);
5195
+ const n = i(8129);
5106
5196
  t2.scrapeInputs = function(e3) {
5107
5197
  const t3 = e3.querySelectorAll(".magicfeedback-input"), i2 = [], r = {};
5108
5198
  return t3.forEach(((e4) => {
@@ -5124,7 +5214,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
5124
5214
  i2.push({ key: e4, value: n2 });
5125
5215
  })), i2;
5126
5216
  };
5127
- }, 7031: (e2, t2) => {
5217
+ }, 7627: (e2, t2) => {
5128
5218
  "use strict";
5129
5219
  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;
5130
5220
  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.' } };
@@ -5155,18 +5245,18 @@ var require_magicfeedback_sdk_browser = __commonJS({
5155
5245
  return Object.keys(t4).reduce(((e5, i2) => e5.replace(new RegExp("\\{" + i2 + "\\}", "g"), String(t4[i2]))), e4);
5156
5246
  })(s, r2) : s;
5157
5247
  };
5158
- }, 1347: (e2, t2) => {
5248
+ }, 5407: (e2, t2) => {
5159
5249
  "use strict";
5160
5250
  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" } };
5161
- }, 9930: (e2, t2, i) => {
5251
+ }, 3262: (e2, t2, i) => {
5162
5252
  "use strict";
5163
5253
  Object.defineProperty(t2, "__esModule", { value: true }), t2.placeholder = void 0;
5164
- const n = i(7031);
5254
+ const n = i(7627);
5165
5255
  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") } };
5166
- }, 3903: (e2, t2, i) => {
5256
+ }, 7643: (e2, t2, i) => {
5167
5257
  "use strict";
5168
5258
  Object.defineProperty(t2, "__esModule", { value: true }), t2.renderStartMessage = t2.renderSuccess = t2.renderError = t2.renderActions = t2.renderQuestions = void 0;
5169
- 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" };
5259
+ 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" };
5170
5260
  t2.renderQuestions = function e3(t3, i2 = "standard", d = "en", c = { customIcons: false }, u) {
5171
5261
  if (!t3) throw new Error("[MagicFeedback] No questions provided");
5172
5262
  const p = [], { customIcons: m, id: h } = c;
@@ -5186,13 +5276,13 @@ var require_magicfeedback_sdk_browser = __commonJS({
5186
5276
  var p2, m2, h2;
5187
5277
  let f2, g2, { id: y2, title: v, type: b, ref: E, require: A, defaultValue: k, assets: T } = e5, C = document.createElement("div");
5188
5278
  C.classList.add("magicfeedback-div");
5189
- 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);
5279
+ 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);
5190
5280
  if (!D) return C;
5191
5281
  {
5192
- 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 });
5282
+ 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 });
5193
5283
  f2 = r2.element, g2 = r2.elementTypeClass;
5194
5284
  }
5195
- 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);
5285
+ 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);
5196
5286
  const R = document.createElement("label");
5197
5287
  R.setAttribute("for", `magicfeedback-${y2}`), R.textContent = (0, o.parseTitle)(v, i3), R.classList.add("magicfeedback-label"), (function(e6, t5) {
5198
5288
  if ("INFO_PAGE" !== t5.type) return;
@@ -5221,7 +5311,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
5221
5311
  const i4 = document.createElement("label");
5222
5312
  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", (() => {
5223
5313
  f2.value = "-";
5224
- })), (0, s.autoAdvanceOn)(t5, w, "click"), e7.appendChild(t5), e7.appendChild(i4), C.appendChild(e7);
5314
+ })), (0, s.autoAdvanceOn)(t5, O, "click"), e7.appendChild(t5), e7.appendChild(i4), C.appendChild(e7);
5225
5315
  }
5226
5316
  } else C.appendChild(f2);
5227
5317
  }
@@ -5256,7 +5346,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
5256
5346
  }
5257
5347
  return r2;
5258
5348
  };
5259
- }, 6891: function(e2, t2, i) {
5349
+ }, 9071: function(e2, t2, i) {
5260
5350
  "use strict";
5261
5351
  var n = this && this.__awaiter || function(e3, t3, i2, n2) {
5262
5352
  return new (i2 || (i2 = Promise))((function(r2, o2) {
@@ -5286,7 +5376,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
5286
5376
  return e3 && e3.__esModule ? e3 : { default: e3 };
5287
5377
  };
5288
5378
  Object.defineProperty(t2, "__esModule", { value: true }), t2.getFollowUpQuestion = t2.sendFeedback = t2.getQuestions = t2.getSessionForm = t2.getForm = t2.validateEmail = t2.header = void 0;
5289
- const o = r(i(6911)), a = r(i(8330)), s = i(1347), l = i(6029);
5379
+ const o = r(i(6539)), a = r(i(8330)), s = i(5407), l = i(3433);
5290
5380
  t2.header = { Accept: "application/json", "Magicfeedback-Sdk-Version": a.default.version, "x-magicfeedback-parameters": window.location.search || "" }, t2.validateEmail = function(e3) {
5291
5381
  return /\S+@\S+\.\S+/.test(e3);
5292
5382
  }, t2.getForm = function(e3, i2, r2, a2, d) {
@@ -5341,10 +5431,10 @@ var require_magicfeedback_sdk_browser = __commonJS({
5341
5431
  }
5342
5432
  }));
5343
5433
  };
5344
- }, 6029: (e2, t2, i) => {
5434
+ }, 3433: (e2, t2, i) => {
5345
5435
  "use strict";
5346
5436
  Object.defineProperty(t2, "__esModule", { value: true }), t2.toBaseAnswers = t2.shownValueFor = t2.baseValueMap = t2.withLangParam = t2.detectSurveyLang = t2.normalizeSurveyLang = void 0;
5347
- const n = i(1140), r = { nb: "no", nn: "no", nob: "no", nno: "no" };
5437
+ const n = i(4760), r = { nb: "no", nn: "no", nob: "no", nno: "no" };
5348
5438
  function o(e3) {
5349
5439
  if (!e3 || "string" != typeof e3) return null;
5350
5440
  const t3 = e3.trim().toLowerCase().replace(/_/g, "-").split("-")[0];
@@ -5441,9 +5531,9 @@ var require_magicfeedback_sdk_browser = __commonJS({
5441
5531
  return Object.assign(Object.assign({}, e4), { value: e4.value.map(o2) });
5442
5532
  }));
5443
5533
  };
5444
- }, 2139: (e2, t2) => {
5534
+ }, 9039: (e2, t2) => {
5445
5535
  "use strict";
5446
- 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;
5536
+ 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;
5447
5537
  const i = /* @__PURE__ */ new Map();
5448
5538
  function n(e3, n2) {
5449
5539
  const r = i.get(n2);
@@ -5459,8 +5549,13 @@ var require_magicfeedback_sdk_browser = __commonJS({
5459
5549
  e3 && i.forEach((({ timer: t3, source: n2 }, r) => {
5460
5550
  e3.contains(n2) && (clearTimeout(t3), i.delete(r));
5461
5551
  }));
5552
+ }, t2.AUTO_ADVANCE_PARAM = "autoadvance", t2.autoAdvanceRequested = function(e3 = window.location.search) {
5553
+ const i2 = new URLSearchParams(e3).get(t2.AUTO_ADVANCE_PARAM);
5554
+ return "true" === i2 || "1" === i2;
5555
+ }, t2.answeredInput = function(e3, t3) {
5556
+ 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;
5462
5557
  };
5463
- }, 9033: (e2, t2) => {
5558
+ }, 4069: (e2, t2) => {
5464
5559
  "use strict";
5465
5560
  function i(e3) {
5466
5561
  if (!e3) return null;
@@ -5488,7 +5583,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
5488
5583
  }
5489
5584
  return (null === (n = e3.ownerDocument) || void 0 === n ? void 0 : n.activeElement) === r;
5490
5585
  };
5491
- }, 93: (e2, t2) => {
5586
+ }, 9089: (e2, t2) => {
5492
5587
  "use strict";
5493
5588
  Object.defineProperty(t2, "__esModule", { value: true }), t2.armGhostTapGuard = t2.GHOST_TAP_GUARD_MS = void 0, t2.GHOST_TAP_GUARD_MS = 400;
5494
5589
  const i = /* @__PURE__ */ new WeakMap();
@@ -5499,7 +5594,7 @@ var require_magicfeedback_sdk_browser = __commonJS({
5499
5594
  }), true), i.set(e3, n()));
5500
5595
  };
5501
5596
  const n = () => "undefined" != typeof performance ? performance.now() : Date.now();
5502
- }, 1874: (e2, t2) => {
5597
+ }, 4070: (e2, t2) => {
5503
5598
  "use strict";
5504
5599
  Object.defineProperty(t2, "__esModule", { value: true }), t2.Log = void 0, t2.Log = class {
5505
5600
  constructor(e3) {
@@ -5514,13 +5609,13 @@ var require_magicfeedback_sdk_browser = __commonJS({
5514
5609
  };
5515
5610
  }, 8330: (e2) => {
5516
5611
  "use strict";
5517
- 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"}');
5612
+ 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"}');
5518
5613
  } }, t = {}, (function i(n) {
5519
5614
  var r = t[n];
5520
5615
  if (void 0 !== r) return r.exports;
5521
5616
  var o = t[n] = { exports: {} };
5522
5617
  return e[n].call(o.exports, o, o.exports, i), o.exports;
5523
- })(2474).default;
5618
+ })(1422).default;
5524
5619
  var e, t;
5525
5620
  }));
5526
5621
  }
@@ -5533,30 +5628,35 @@ __export(renderPopup_exports, {
5533
5628
  SURVEY_ALIGNMENT_STYLE_ID: () => SURVEY_ALIGNMENT_STYLE_ID,
5534
5629
  renderPopup: () => renderPopup
5535
5630
  });
5536
- function ensureMagicFeedbackStyles(_popup) {
5537
- const STYLE_ID = "magicfeedback-sdk-styles";
5538
- if (document.getElementById(STYLE_ID)) return;
5539
- const style = document.createElement("style");
5540
- style.id = STYLE_ID;
5541
- style.textContent = style_default;
5542
- document.head.appendChild(style);
5543
- }
5544
- function ensureSurveyAlignmentStyles() {
5545
- if (document.getElementById(SURVEY_ALIGNMENT_STYLE_ID)) return;
5546
- const style = document.createElement("style");
5547
- style.id = SURVEY_ALIGNMENT_STYLE_ID;
5548
- style.textContent = `
5631
+ function ensureStyle(id, css, nonce) {
5632
+ let el = document.getElementById(id);
5633
+ if (el && nonce && el.getAttribute("nonce") !== nonce) {
5634
+ el.remove();
5635
+ el = null;
5636
+ }
5637
+ if (!el) {
5638
+ el = document.createElement("style");
5639
+ el.id = id;
5640
+ if (nonce) el.setAttribute("nonce", nonce);
5641
+ el.textContent = css;
5642
+ document.head.appendChild(el);
5643
+ } else if (el.textContent !== css) {
5644
+ el.textContent = css;
5645
+ }
5646
+ return el;
5647
+ }
5648
+ function ensureMagicFeedbackStyles(nonce) {
5649
+ ensureStyle("magicfeedback-sdk-styles", style_default, nonce);
5650
+ }
5651
+ function ensureSurveyAlignmentStyles(nonce) {
5652
+ ensureStyle(SURVEY_ALIGNMENT_STYLE_ID, `
5549
5653
  .deepdots-popup .magicfeedback-container,
5550
5654
  .deepdots-popup .magicfeedback-form,
5551
5655
  .deepdots-popup .magicfeedback-div { padding-left: 0; padding-right: 0; }
5552
- `;
5553
- document.head.appendChild(style);
5554
- }
5555
- function ensureSpinnerStyles(_popup) {
5556
- if (document.getElementById("deepdots-spinner-styles")) return;
5557
- const style = document.createElement("style");
5558
- style.id = "deepdots-spinner-styles";
5559
- style.textContent = `
5656
+ `, nonce);
5657
+ }
5658
+ function ensureSpinnerStyles(nonce) {
5659
+ ensureStyle("deepdots-spinner-styles", `
5560
5660
  /* El enunciado trae margin-top:20px del CSS de surveys, que sumaba al hueco de la barra
5561
5661
  de progreso y descompensaba la simetr\xEDa. Solo se anula en el primero: entre preguntas
5562
5662
  de la misma p\xE1gina sigue separando. */
@@ -5564,14 +5664,10 @@ function ensureSpinnerStyles(_popup) {
5564
5664
  @keyframes ddspin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
5565
5665
  .mf-spinner { display:flex; justify-content:center; align-items:center; padding:8px 0; }
5566
5666
  .mf-spinner-circle { width:28px; height:28px; border:3px solid #e0e6ed; border-top-color:#1E293B; border-radius:50%; animation: ddspin 0.9s linear infinite; }
5567
- `;
5568
- document.head.appendChild(style);
5569
- }
5570
- function ensureResponsiveStyles(_popup) {
5571
- if (document.getElementById("deepdots-responsive-styles")) return;
5572
- const style = document.createElement("style");
5573
- style.id = "deepdots-responsive-styles";
5574
- style.textContent = `
5667
+ `, nonce);
5668
+ }
5669
+ function ensureResponsiveStyles(nonce) {
5670
+ ensureStyle("deepdots-responsive-styles", `
5575
5671
  /* Responsive adjustments */
5576
5672
  @media (max-width: 640px) {
5577
5673
  .deepdots-popup {
@@ -5604,32 +5700,20 @@ function ensureResponsiveStyles(_popup) {
5604
5700
  overflow-y: auto !important;
5605
5701
  }
5606
5702
  }
5607
- `;
5608
- document.head.appendChild(style);
5703
+ `, nonce);
5609
5704
  }
5610
- function ensureCustomCss(css) {
5705
+ function ensureCustomCss(css, nonce) {
5611
5706
  const STYLE_ID = "deepdots-custom-css";
5612
- const existing = document.getElementById(STYLE_ID);
5613
5707
  if (!css) {
5614
- existing?.remove();
5708
+ document.getElementById(STYLE_ID)?.remove();
5615
5709
  return;
5616
5710
  }
5617
- const el = existing ?? document.createElement("style");
5618
- el.id = STYLE_ID;
5619
- if (el.textContent !== css) el.textContent = css;
5620
- document.head.appendChild(el);
5711
+ document.head.appendChild(ensureStyle(STYLE_ID, css, nonce));
5621
5712
  }
5622
- function ensureFontFace(family, url) {
5713
+ function ensureFontFace(family, url, nonce) {
5623
5714
  const css = buildFontFaceCss(family, url);
5624
5715
  if (!css) return;
5625
- const STYLE_ID = "deepdots-font-face";
5626
- let el = document.getElementById(STYLE_ID);
5627
- if (!el) {
5628
- el = document.createElement("style");
5629
- el.id = STYLE_ID;
5630
- document.head.appendChild(el);
5631
- }
5632
- if (el.textContent !== css) el.textContent = css;
5716
+ ensureStyle("deepdots-font-face", css, nonce);
5633
5717
  }
5634
5718
  function hasFinePointer() {
5635
5719
  return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(pointer: fine)").matches;
@@ -5639,6 +5723,7 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
5639
5723
  let stylesInjected = false;
5640
5724
  let pageDepth = 0;
5641
5725
  let onStartPage = false;
5726
+ const cspNonce = options?.cspNonce?.trim() || void 0;
5642
5727
  let labels = getLabels(options?.language);
5643
5728
  let actionLabels = resolveActionLabels(actions, options?.language);
5644
5729
  let direction = directionFor(options?.language);
@@ -5690,7 +5775,7 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
5690
5775
  popup.style.fontFamily = familyValue;
5691
5776
  popup.style.setProperty("--deepdots-font", familyValue);
5692
5777
  popup.classList.add("deepdots-has-font");
5693
- if (font.url) ensureFontFace(font.family, font.url);
5778
+ if (font.url) ensureFontFace(font.family, font.url, cspNonce);
5694
5779
  }
5695
5780
  const header = document.createElement("div");
5696
5781
  header.className = "deepdots-popup-header";
@@ -5806,11 +5891,11 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
5806
5891
  }
5807
5892
  progressFollowUp.style.display = p.followup ? "inline-block" : "none";
5808
5893
  }
5809
- ensureMagicFeedbackStyles(popup);
5810
- ensureSurveyAlignmentStyles();
5811
- ensureSpinnerStyles(popup);
5812
- ensureResponsiveStyles(popup);
5813
- ensureCustomCss(options?.surveyCss);
5894
+ ensureMagicFeedbackStyles(cspNonce);
5895
+ ensureSurveyAlignmentStyles(cspNonce);
5896
+ ensureSpinnerStyles(cspNonce);
5897
+ ensureResponsiveStyles(cspNonce);
5898
+ ensureCustomCss(options?.surveyCss, cspNonce);
5814
5899
  const containerContent = document.createElement("div");
5815
5900
  containerContent.id = "dd-content";
5816
5901
  containerContent.className = "deepdots-popup-container-content";
@@ -6541,7 +6626,7 @@ function trimmedOrNull(value) {
6541
6626
  }
6542
6627
  function buildSurveyHtml(opts) {
6543
6628
  const env = opts.env === "development" ? "dev" : "prod";
6544
- const version = opts.version ?? "2.2.31";
6629
+ const version = opts.version ?? "2.2.33";
6545
6630
  const cdn = `https://cdn.jsdelivr.net/npm/@magicfeedback/native@${version}/dist/magicfeedback-sdk.browser.js`;
6546
6631
  const sid = jsonForScript(opts.surveyId);
6547
6632
  const pid = jsonForScript(opts.productId);
@@ -8298,8 +8383,6 @@ var DeepdotsPopups = class {
8298
8383
  this.renderer = createDefaultRenderer();
8299
8384
  /** Logger para el output de debug. Default `console`; el host puede inyectar el suyo en init(). */
8300
8385
  this.logger = console;
8301
- this.popupContainer = null;
8302
- // deprecated: mantenido para compatibilidad interna
8303
8386
  this.popupDefinitions = [];
8304
8387
  this.popupsLoaded = false;
8305
8388
  /**
@@ -8330,6 +8413,7 @@ var DeepdotsPopups = class {
8330
8413
  this.showProgressBar = void 0;
8331
8414
  /** CSS del host inyectado al final de los estilos del popup. */
8332
8415
  this.surveyCss = void 0;
8416
+ this.cspNonce = void 0;
8333
8417
  /** Identidad + sesión (Fase 1 tracking). Null hasta init(). */
8334
8418
  this.tracking = null;
8335
8419
  /** Capa de analytics (canal separado del feedback). Null hasta init(). */
@@ -8402,6 +8486,7 @@ var DeepdotsPopups = class {
8402
8486
  this.renderChrome = config.renderChrome ?? true;
8403
8487
  this.showProgressBar = config.showProgressBar;
8404
8488
  this.surveyCss = config.surveyCss;
8489
+ this.cspNonce = config.cspNonce;
8405
8490
  this.onFeedbackSession = config.onFeedbackSession;
8406
8491
  this.config = {
8407
8492
  apiKey: config.apiKey || void 0,
@@ -8502,7 +8587,6 @@ var DeepdotsPopups = class {
8502
8587
  this.initialized = true;
8503
8588
  this.log("SDK initialized", this.config);
8504
8589
  if (this.renderer.init) this.renderer.init();
8505
- this.setupPopupContainer();
8506
8590
  this.awaitingPopups = Boolean(this.config.apiKey && this.baseUrl);
8507
8591
  this.fetchPopupsFromServer().then((defs) => {
8508
8592
  if (!defs) this.dropPendingTriggers();
@@ -9473,27 +9557,6 @@ var DeepdotsPopups = class {
9473
9557
  listeners.delete(listener);
9474
9558
  }
9475
9559
  }
9476
- /** Setup popup container element */
9477
- setupPopupContainer() {
9478
- if (typeof document === "undefined") {
9479
- return;
9480
- }
9481
- this.popupContainer = document.createElement("div");
9482
- this.popupContainer.id = "deepdots-popup-container";
9483
- this.popupContainer.style.cssText = `
9484
- position: fixed;
9485
- top: 0;
9486
- left: 0;
9487
- width: 100%;
9488
- height: 100%;
9489
- display: none;
9490
- z-index: 999999;
9491
- background: rgba(0, 0, 0, 0.5);
9492
- justify-content: center;
9493
- align-items: center;
9494
- `;
9495
- document.body.appendChild(this.popupContainer);
9496
- }
9497
9560
  /** Render the popup UI */
9498
9561
  renderPopup(surveyId, productId, actions, style, title) {
9499
9562
  const userId = this.tracking?.getUserId() ?? this.config?.userId;
@@ -9501,54 +9564,25 @@ var DeepdotsPopups = class {
9501
9564
  const miniService = this.analytics?.getMiniService() ?? void 0;
9502
9565
  const analyticsFeedbackSessionId = this.analyticsFeedbackSessionId;
9503
9566
  this.log("tracking \xB7 survey identity \u2192", { userId: userId ?? null, sessionId: sessionId ?? null, miniService: miniService ?? null, analyticsFeedbackSessionId: analyticsFeedbackSessionId ?? null });
9504
- if (this.renderer) {
9505
- this.renderer.show(
9506
- surveyId,
9507
- productId,
9508
- actions,
9509
- (type, id, payload) => this.emitEvent(type, id, payload),
9510
- () => this.hidePopup(),
9511
- this.env,
9512
- userId,
9513
- style,
9514
- sessionId,
9515
- miniService,
9516
- analyticsFeedbackSessionId,
9517
- this.renderChrome,
9518
- { title, showProgressBar: this.showProgressBar, surveyCss: this.surveyCss, language: this.language }
9519
- );
9520
- return;
9521
- }
9522
- if (!this.popupContainer) return;
9523
- const container = this.popupContainer;
9524
- void Promise.resolve().then(() => (init_renderPopup(), renderPopup_exports)).then(({ renderPopup: renderPopup2 }) => {
9525
- renderPopup2(
9526
- container,
9527
- surveyId,
9528
- productId,
9529
- actions,
9530
- (type, id, payload) => this.emitEvent(type, id, payload),
9531
- () => this.hidePopup(),
9532
- this.env,
9533
- userId,
9534
- style,
9535
- sessionId,
9536
- miniService,
9537
- analyticsFeedbackSessionId,
9538
- { title, showProgressBar: this.showProgressBar, surveyCss: this.surveyCss, language: this.language }
9539
- );
9540
- });
9567
+ this.renderer.show(
9568
+ surveyId,
9569
+ productId,
9570
+ actions,
9571
+ (type, id, payload) => this.emitEvent(type, id, payload),
9572
+ () => this.hidePopup(),
9573
+ this.env,
9574
+ userId,
9575
+ style,
9576
+ sessionId,
9577
+ miniService,
9578
+ analyticsFeedbackSessionId,
9579
+ this.renderChrome,
9580
+ { title, showProgressBar: this.showProgressBar, surveyCss: this.surveyCss, language: this.language, cspNonce: this.cspNonce }
9581
+ );
9541
9582
  }
9542
9583
  /** Hide the popup */
9543
9584
  hidePopup() {
9544
- if (this.renderer) {
9545
- this.renderer.hide();
9546
- return;
9547
- }
9548
- if (this.popupContainer) {
9549
- this.popupContainer.style.display = "none";
9550
- this.popupContainer.innerHTML = "";
9551
- }
9585
+ this.renderer.hide();
9552
9586
  }
9553
9587
  /** Emit an event */
9554
9588
  emitEvent(type, surveyId, data) {