react-native-my-survey-sdk 3.1.3 → 4.0.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/components/XeboDropdownView.d.ts +6 -2
- package/dist/components/XeboDropdownView.d.ts.map +1 -1
- package/dist/components/XeboDropdownView.js +26 -17
- package/dist/components/XeboMultiNPSView.d.ts +4 -2
- package/dist/components/XeboMultiNPSView.d.ts.map +1 -1
- package/dist/components/XeboMultiNPSView.js +24 -17
- package/dist/components/XeboMultiRatingView.d.ts +4 -2
- package/dist/components/XeboMultiRatingView.d.ts.map +1 -1
- package/dist/components/XeboMultiRatingView.js +23 -16
- package/dist/components/XeboMultipleChoiceView.d.ts +6 -2
- package/dist/components/XeboMultipleChoiceView.d.ts.map +1 -1
- package/dist/components/XeboMultipleChoiceView.js +35 -38
- package/dist/components/XeboNPSView.d.ts +8 -2
- package/dist/components/XeboNPSView.d.ts.map +1 -1
- package/dist/components/XeboNPSView.js +303 -45
- package/dist/components/XeboPageView.d.ts +33 -0
- package/dist/components/XeboPageView.d.ts.map +1 -0
- package/dist/components/XeboPageView.js +190 -0
- package/dist/components/XeboRatingView.d.ts +20 -2
- package/dist/components/XeboRatingView.d.ts.map +1 -1
- package/dist/components/XeboRatingView.js +63 -37
- package/dist/components/XeboSingleChoiceView.d.ts +8 -2
- package/dist/components/XeboSingleChoiceView.d.ts.map +1 -1
- package/dist/components/XeboSingleChoiceView.js +42 -40
- package/dist/components/XeboSurveyModal.d.ts.map +1 -1
- package/dist/components/XeboSurveyModal.js +151 -35
- package/dist/components/XeboTextBoxView.d.ts +4 -2
- package/dist/components/XeboTextBoxView.d.ts.map +1 -1
- package/dist/components/XeboTextBoxView.js +27 -18
- package/dist/core/XeboLanguageService.d.ts.map +1 -1
- package/dist/core/XeboLanguageService.js +6 -0
- package/dist/core/XeboNetworkService.d.ts +12 -1
- package/dist/core/XeboNetworkService.d.ts.map +1 -1
- package/dist/core/XeboNetworkService.js +181 -64
- package/dist/core/XeboOfflineQueue.d.ts +2 -1
- package/dist/core/XeboOfflineQueue.d.ts.map +1 -1
- package/dist/core/XeboOfflineQueue.js +24 -10
- package/dist/core/XeboSurveyManager.d.ts +16 -1
- package/dist/core/XeboSurveyManager.d.ts.map +1 -1
- package/dist/core/XeboSurveyManager.js +120 -47
- package/dist/i18n/XeboRtl.d.ts +5 -0
- package/dist/i18n/XeboRtl.d.ts.map +1 -1
- package/dist/i18n/XeboRtl.js +11 -0
- package/dist/i18n/XeboStrings.d.ts +6 -0
- package/dist/i18n/XeboStrings.d.ts.map +1 -1
- package/dist/i18n/XeboStrings.js +19 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/models/XeboAPIModels.d.ts +93 -0
- package/dist/models/XeboAPIModels.d.ts.map +1 -1
- package/dist/models/XeboModels.d.ts +86 -2
- package/dist/models/XeboModels.d.ts.map +1 -1
- package/dist/models/XeboModels.js +24 -0
- package/package.json +3 -4
|
@@ -70,10 +70,15 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
70
70
|
this.survey = null;
|
|
71
71
|
this.currentAnswers = [];
|
|
72
72
|
this.currentQuestionIndex = 0;
|
|
73
|
+
/** Indices of the questions shown together, starting at currentQuestionIndex. */
|
|
74
|
+
this.currentPage = [];
|
|
75
|
+
/** Pages already passed, oldest first, so Previous can return to them. */
|
|
76
|
+
this.pageHistory = [];
|
|
73
77
|
this.surveyStartTime = '';
|
|
74
78
|
this.resolvedCollectorUUID = '';
|
|
75
79
|
this.resolvedCollectorMongoId = '';
|
|
76
80
|
this.surveyVisible = false;
|
|
81
|
+
this.disqualified = false;
|
|
77
82
|
// Language
|
|
78
83
|
this.rawSurveyData = null;
|
|
79
84
|
this.resolvedSurveyId = '';
|
|
@@ -93,6 +98,7 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
93
98
|
this.apiKey = config.apiKey;
|
|
94
99
|
this.collectorId = config.collectorId;
|
|
95
100
|
this.onLanguageSelected = config.onLanguageSelected;
|
|
101
|
+
XeboOfflineQueue_1.XeboOfflineQueue.setStorage(config.storage);
|
|
96
102
|
this.resolvedZone = config.zone;
|
|
97
103
|
this.baseURL = (0, XeboNetworkService_1.buildBaseURL)(this.resolvedZone);
|
|
98
104
|
this.feedbackBaseURL = (0, XeboNetworkService_1.buildFeedbackBaseURL)(this.resolvedZone);
|
|
@@ -124,7 +130,6 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
124
130
|
var _a;
|
|
125
131
|
const isConnected = (_a = state.isConnected) !== null && _a !== void 0 ? _a : false;
|
|
126
132
|
if (wasOffline && isConnected) {
|
|
127
|
-
console.log('[Xebo] Network restored — flushing offline queue');
|
|
128
133
|
this.flushQueue();
|
|
129
134
|
}
|
|
130
135
|
wasOffline = !isConnected;
|
|
@@ -136,17 +141,14 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
136
141
|
}
|
|
137
142
|
// ─── Background pre-fetch ──────────────────────────────────────────────────
|
|
138
143
|
async _prefetchSurvey() {
|
|
139
|
-
var _a;
|
|
140
144
|
try {
|
|
141
|
-
console.log('[Xebo] Pre-fetching survey in background...');
|
|
142
145
|
await this._loadSurveyData();
|
|
143
146
|
const survey = this.survey;
|
|
144
147
|
if (survey)
|
|
145
148
|
this.emit(exports.XEBO_EVENTS.SURVEY_LOADED, survey);
|
|
146
|
-
console.log('[Xebo] Pre-fetch done —', (_a = survey === null || survey === void 0 ? void 0 : survey.questions.length) !== null && _a !== void 0 ? _a : 0, 'questions ready');
|
|
147
149
|
}
|
|
148
|
-
catch (
|
|
149
|
-
|
|
150
|
+
catch (_a) {
|
|
151
|
+
// Retried on fetchAndPresentSurvey.
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
154
|
/** Resolves token + collector + raw survey JSON, and parses the primary language. */
|
|
@@ -174,12 +176,8 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
174
176
|
const cached = this.rawSurveyData
|
|
175
177
|
&& this.resolvedCollectorUUID
|
|
176
178
|
&& (!surveyId || surveyId === this.resolvedSurveyId);
|
|
177
|
-
if (cached)
|
|
178
|
-
console.log('[Xebo] Survey already cached — showing instantly');
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
179
|
+
if (!cached)
|
|
181
180
|
await this._loadSurveyData(surveyId);
|
|
182
|
-
}
|
|
183
181
|
const raw = this.rawSurveyData;
|
|
184
182
|
if (raw && (0, XeboLanguageService_1.shouldShowLanguagePage)(raw, language)) {
|
|
185
183
|
this._presentLanguagePage(raw);
|
|
@@ -187,8 +185,8 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
187
185
|
}
|
|
188
186
|
await this._presentInLanguage(raw ? (0, XeboLanguageService_1.findLanguageOption)(raw, language) : undefined);
|
|
189
187
|
}
|
|
190
|
-
catch (
|
|
191
|
-
|
|
188
|
+
catch (_a) {
|
|
189
|
+
// Load failed; the survey stays hidden.
|
|
192
190
|
}
|
|
193
191
|
}
|
|
194
192
|
// ─── Language ──────────────────────────────────────────────────────────────
|
|
@@ -196,7 +194,6 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
196
194
|
this.languageLoadToken += 1;
|
|
197
195
|
(0, XeboStrings_1.resetStrings)();
|
|
198
196
|
this.languagePage = (0, XeboLanguageService_1.buildLanguagePage)(raw);
|
|
199
|
-
console.log('[Xebo] Showing language page —', this.languagePage.options.length, 'options');
|
|
200
197
|
this.emit(exports.XEBO_EVENTS.LANGUAGE_PAGE, this.languagePage);
|
|
201
198
|
this._setVisible(true);
|
|
202
199
|
}
|
|
@@ -213,8 +210,8 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
213
210
|
try {
|
|
214
211
|
(_a = this.onLanguageSelected) === null || _a === void 0 ? void 0 : _a.call(this, option.langKey);
|
|
215
212
|
}
|
|
216
|
-
catch (
|
|
217
|
-
|
|
213
|
+
catch (_b) {
|
|
214
|
+
// A throwing host callback must not block the survey.
|
|
218
215
|
}
|
|
219
216
|
await this._presentInLanguage(option);
|
|
220
217
|
}
|
|
@@ -227,15 +224,15 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
227
224
|
const token = this.languageLoadToken;
|
|
228
225
|
if (!option || option.isPrimary) {
|
|
229
226
|
(0, XeboStrings_1.resetStrings)();
|
|
227
|
+
(0, XeboStrings_1.setButtonLabels)((0, XeboNetworkService_1.primaryButtonLabels)(raw));
|
|
230
228
|
this.survey = (0, XeboNetworkService_1.parseSurvey)(raw, { langKey: option === null || option === void 0 ? void 0 : option.langKey, direction: option === null || option === void 0 ? void 0 : option.direction });
|
|
231
229
|
}
|
|
232
230
|
else {
|
|
233
231
|
try {
|
|
234
232
|
const bundle = await (0, XeboLanguageService_1.fetchTranslation)(this.baseURL, raw.uuid, option, this.bearerToken);
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
// A newer pick or a dismiss superseded this load.
|
|
234
|
+
if (token !== this.languageLoadToken)
|
|
237
235
|
return;
|
|
238
|
-
}
|
|
239
236
|
const direction = this._resolveDirection(option, (_a = bundle.script) === null || _a === void 0 ? void 0 : _a.direction);
|
|
240
237
|
(0, XeboStrings_1.configureStrings)({
|
|
241
238
|
langKey: option.langKey,
|
|
@@ -249,12 +246,12 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
249
246
|
direction,
|
|
250
247
|
});
|
|
251
248
|
}
|
|
252
|
-
catch (
|
|
249
|
+
catch (_c) {
|
|
253
250
|
// A failed translation must not fail the load — fall back to the primary language.
|
|
254
|
-
console.warn('[Xebo] getLanguage failed — showing primary language:', err);
|
|
255
251
|
if (token !== this.languageLoadToken)
|
|
256
252
|
return;
|
|
257
253
|
(0, XeboStrings_1.resetStrings)();
|
|
254
|
+
(0, XeboStrings_1.setButtonLabels)((0, XeboNetworkService_1.primaryButtonLabels)(raw));
|
|
258
255
|
this.survey = (0, XeboNetworkService_1.parseSurvey)(raw);
|
|
259
256
|
}
|
|
260
257
|
}
|
|
@@ -273,11 +270,53 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
273
270
|
_resetSession() {
|
|
274
271
|
this.currentAnswers = [];
|
|
275
272
|
this.currentQuestionIndex = 0;
|
|
273
|
+
this.disqualified = false;
|
|
276
274
|
this.surveyStartTime = new Date().toISOString();
|
|
277
275
|
this.surveyStartEpoch = Date.now();
|
|
278
276
|
this.questionStartEpoch = Date.now();
|
|
279
277
|
this.timePerQues = {};
|
|
280
278
|
this.backTrackCount = 0;
|
|
279
|
+
this.pageHistory = [];
|
|
280
|
+
this._computePage();
|
|
281
|
+
}
|
|
282
|
+
/** True when there is an earlier page to go back to. */
|
|
283
|
+
get canGoBack() {
|
|
284
|
+
return this.pageHistory.length > 0;
|
|
285
|
+
}
|
|
286
|
+
/** The question's options left after options display logic, judged on the answers so far. */
|
|
287
|
+
optionsFor(question) {
|
|
288
|
+
var _a;
|
|
289
|
+
return (0, XeboNetworkService_1.visibleOptions)(question, (_a = this.survey) === null || _a === void 0 ? void 0 : _a.criteria, this._answersOnPath());
|
|
290
|
+
}
|
|
291
|
+
/** Answers on the path actually taken, so ones left on pages abandoned via Previous aren't used. */
|
|
292
|
+
_answersOnPath() {
|
|
293
|
+
var _a, _b;
|
|
294
|
+
const ids = new Set();
|
|
295
|
+
for (const i of [].concat(...this.pageHistory, this.currentPage)) {
|
|
296
|
+
const q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.questions[i];
|
|
297
|
+
if (!q)
|
|
298
|
+
continue;
|
|
299
|
+
ids.add(q.id);
|
|
300
|
+
(_b = q.conditionalFollowUps) === null || _b === void 0 ? void 0 : _b.forEach(f => ids.add(f.questionId));
|
|
301
|
+
}
|
|
302
|
+
return this.currentAnswers.filter(a => ids.has(a.questionId));
|
|
303
|
+
}
|
|
304
|
+
/** Questions from the current one up to the next page break; display logic is checked as the page opens. */
|
|
305
|
+
_computePage() {
|
|
306
|
+
var _a, _b, _c;
|
|
307
|
+
const questions = (_b = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.questions) !== null && _b !== void 0 ? _b : [];
|
|
308
|
+
const page = [];
|
|
309
|
+
for (let i = this.currentQuestionIndex; i < questions.length; i += 1) {
|
|
310
|
+
const q = questions[i];
|
|
311
|
+
if (q.id === 'thank_you_auto')
|
|
312
|
+
break;
|
|
313
|
+
if (i === this.currentQuestionIndex || (0, XeboNetworkService_1.isQuestionDisplayed)(q, (_c = this.survey) === null || _c === void 0 ? void 0 : _c.criteria, this._answersOnPath())) {
|
|
314
|
+
page.push(i);
|
|
315
|
+
}
|
|
316
|
+
if (q.pageBreakAfter)
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
this.currentPage = page;
|
|
281
320
|
}
|
|
282
321
|
// ─── Answer recording ──────────────────────────────────────────────────────
|
|
283
322
|
recordAnswer(answer) {
|
|
@@ -291,17 +330,49 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
291
330
|
}
|
|
292
331
|
// ─── Navigation ────────────────────────────────────────────────────────────
|
|
293
332
|
nextQuestion() {
|
|
333
|
+
var _a;
|
|
294
334
|
if (!this.survey)
|
|
295
335
|
return;
|
|
296
|
-
// Record time spent on the current
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
|
|
336
|
+
// Record time spent on the current page before advancing
|
|
337
|
+
const pageQuestions = this.currentPage.map(i => this.survey.questions[i]);
|
|
338
|
+
const elapsed = (Date.now() - this.questionStartEpoch) / 1000;
|
|
339
|
+
pageQuestions.forEach(q => { this.timePerQues[q.id] = elapsed; });
|
|
340
|
+
// The first question on the page whose logic jumps, ends or disqualifies decides where to go.
|
|
341
|
+
const answers = this._answersOnPath();
|
|
342
|
+
let rule;
|
|
343
|
+
for (const q of pageQuestions) {
|
|
344
|
+
const answer = answers.find(a => a.questionId === q.id);
|
|
345
|
+
const branch = (0, XeboNetworkService_1.resolveDelayedBranch)(q, this.survey.criteria, answers);
|
|
346
|
+
// An "otherwise" branch with no destination must not override skip logic.
|
|
347
|
+
rule = branch && branch.destinationType !== 'default'
|
|
348
|
+
? branch
|
|
349
|
+
: (0, XeboNetworkService_1.resolveSkipRule)(q, answer);
|
|
350
|
+
if (rule && (rule.destinationType !== 'default' || rule.destinationQuestionId))
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
if ((rule === null || rule === void 0 ? void 0 : rule.destinationType) === 'disqua') {
|
|
354
|
+
this.disqualified = true;
|
|
355
|
+
this._submitCurrentSession('disqualified');
|
|
356
|
+
return;
|
|
357
|
+
}
|
|
358
|
+
// Logic may jump forward to a specific question, or 'end' straight to the thank-you page.
|
|
359
|
+
const jumpIdx = (rule === null || rule === void 0 ? void 0 : rule.destinationType) === 'end'
|
|
360
|
+
? this.survey.questions.findIndex(q => q.id === 'thank_you_auto')
|
|
361
|
+
: (rule === null || rule === void 0 ? void 0 : rule.destinationQuestionId)
|
|
362
|
+
? this.survey.questions.findIndex(q => q.id === rule.destinationQuestionId)
|
|
363
|
+
: -1;
|
|
364
|
+
const lastOnPage = (_a = this.currentPage[this.currentPage.length - 1]) !== null && _a !== void 0 ? _a : this.currentQuestionIndex;
|
|
365
|
+
let next = jumpIdx > lastOnPage ? jumpIdx : lastOnPage + 1;
|
|
366
|
+
// Display logic: pass over questions whose criteria aren't met.
|
|
367
|
+
while (next < this.survey.questions.length &&
|
|
368
|
+
!(0, XeboNetworkService_1.isQuestionDisplayed)(this.survey.questions[next], this.survey.criteria, answers)) {
|
|
369
|
+
next += 1;
|
|
300
370
|
}
|
|
301
|
-
const next = this.currentQuestionIndex + 1;
|
|
302
371
|
if (next < this.survey.questions.length) {
|
|
372
|
+
this.pageHistory.push(this.currentPage);
|
|
303
373
|
this.currentQuestionIndex = next;
|
|
304
374
|
this.questionStartEpoch = Date.now();
|
|
375
|
+
this._computePage();
|
|
305
376
|
this.emit(exports.XEBO_EVENTS.QUESTION_CHANGED, this.currentQuestionIndex);
|
|
306
377
|
// If this is the thank-you question, submit in the background
|
|
307
378
|
const q = this.survey.questions[this.currentQuestionIndex];
|
|
@@ -310,6 +381,18 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
310
381
|
}
|
|
311
382
|
}
|
|
312
383
|
}
|
|
384
|
+
/** Goes back to the page shown before this one; its answers stay recorded. */
|
|
385
|
+
previousPage() {
|
|
386
|
+
const page = this.pageHistory.pop();
|
|
387
|
+
if (!this.survey || !(page === null || page === void 0 ? void 0 : page.length))
|
|
388
|
+
return false;
|
|
389
|
+
this.currentQuestionIndex = page[0];
|
|
390
|
+
this.currentPage = page;
|
|
391
|
+
this.backTrackCount += 1;
|
|
392
|
+
this.questionStartEpoch = Date.now();
|
|
393
|
+
this.emit(exports.XEBO_EVENTS.QUESTION_CHANGED, this.currentQuestionIndex);
|
|
394
|
+
return true;
|
|
395
|
+
}
|
|
313
396
|
// ─── Submission ────────────────────────────────────────────────────────────
|
|
314
397
|
_buildQualityFlags() {
|
|
315
398
|
const endEpoch = Date.now();
|
|
@@ -340,13 +423,13 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
340
423
|
region: (_f = (_e = this.userData) === null || _e === void 0 ? void 0 : _e.region) !== null && _f !== void 0 ? _f : null,
|
|
341
424
|
};
|
|
342
425
|
}
|
|
343
|
-
async _submitCurrentSession() {
|
|
344
|
-
var _a
|
|
426
|
+
async _submitCurrentSession(status = 'complete') {
|
|
427
|
+
var _a;
|
|
345
428
|
if (!this.survey)
|
|
346
429
|
return;
|
|
347
430
|
const endTime = new Date().toISOString();
|
|
348
431
|
try {
|
|
349
|
-
const result = await (0, XeboNetworkService_1.submitResponse)(this.feedbackBaseURL, this.survey.id, this.resolvedCollectorUUID, this.bearerToken, this.
|
|
432
|
+
const result = await (0, XeboNetworkService_1.submitResponse)(this.feedbackBaseURL, this.survey.id, this.resolvedCollectorUUID, this.bearerToken, this._answersOnPath(), {
|
|
350
433
|
userData: (_a = this.userData) !== null && _a !== void 0 ? _a : undefined,
|
|
351
434
|
deviceModel: this.deviceModel,
|
|
352
435
|
platform: react_native_1.Platform.OS,
|
|
@@ -360,22 +443,17 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
360
443
|
os: react_native_1.Platform.OS === 'ios' ? 'ios' : 'android',
|
|
361
444
|
browser: react_native_1.Platform.OS === 'ios' ? 'safari' : 'chrome',
|
|
362
445
|
},
|
|
446
|
+
status,
|
|
363
447
|
});
|
|
364
448
|
if (!result.ok) {
|
|
365
449
|
throw new Error(`HTTP ${result.status}`);
|
|
366
450
|
}
|
|
367
|
-
const respData = result.responseJson;
|
|
368
|
-
console.log('[Xebo] Response data:', {
|
|
369
|
-
responseId: (_b = respData === null || respData === void 0 ? void 0 : respData.data) === null || _b === void 0 ? void 0 : _b.responseId,
|
|
370
|
-
created: (_c = respData === null || respData === void 0 ? void 0 : respData.data) === null || _c === void 0 ? void 0 : _c.created,
|
|
371
|
-
});
|
|
372
451
|
}
|
|
373
|
-
catch (
|
|
374
|
-
|
|
375
|
-
await this._enqueueOffline(endTime);
|
|
452
|
+
catch (_b) {
|
|
453
|
+
await this._enqueueOffline(endTime, status);
|
|
376
454
|
}
|
|
377
455
|
}
|
|
378
|
-
async _enqueueOffline(endTime) {
|
|
456
|
+
async _enqueueOffline(endTime, status) {
|
|
379
457
|
var _a;
|
|
380
458
|
if (!this.survey)
|
|
381
459
|
return;
|
|
@@ -384,10 +462,10 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
384
462
|
surveyId: this.survey.id,
|
|
385
463
|
collectorUUID: this.resolvedCollectorUUID,
|
|
386
464
|
mode: 'React Native SDK',
|
|
387
|
-
status
|
|
465
|
+
status,
|
|
388
466
|
startTime: this.surveyStartTime,
|
|
389
467
|
endTime,
|
|
390
|
-
answers:
|
|
468
|
+
answers: this._answersOnPath(),
|
|
391
469
|
userData: (_a = this.userData) !== null && _a !== void 0 ? _a : undefined,
|
|
392
470
|
deviceModel: this.deviceModel,
|
|
393
471
|
platform: react_native_1.Platform.OS,
|
|
@@ -407,8 +485,6 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
407
485
|
const all = await XeboOfflineQueue_1.XeboOfflineQueue.getAll();
|
|
408
486
|
if (all.length === 0)
|
|
409
487
|
return;
|
|
410
|
-
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
411
|
-
console.log(`[Xebo Offline] Flushing ${all.length} queued response(s)`);
|
|
412
488
|
const failed = [];
|
|
413
489
|
for (const queued of all) {
|
|
414
490
|
try {
|
|
@@ -422,19 +498,16 @@ class XeboSurveyManagerClass extends SimpleEventEmitter {
|
|
|
422
498
|
qualityFlags: queued.qualityFlags,
|
|
423
499
|
geolocation: queued.geolocation,
|
|
424
500
|
deviceInfo: queued.deviceInfo,
|
|
501
|
+
status: queued.status,
|
|
425
502
|
});
|
|
426
503
|
if (!result.ok)
|
|
427
504
|
throw new Error(`HTTP ${result.status}`);
|
|
428
|
-
console.log('[Xebo Offline] Flushed response:', queued.responseId);
|
|
429
505
|
}
|
|
430
|
-
catch (
|
|
431
|
-
console.error('[Xebo Offline] Retry failed for:', queued.responseId, err);
|
|
506
|
+
catch (_a) {
|
|
432
507
|
failed.push(queued);
|
|
433
508
|
}
|
|
434
509
|
}
|
|
435
510
|
await XeboOfflineQueue_1.XeboOfflineQueue.saveAll(failed);
|
|
436
|
-
console.log(`[Xebo Offline] Flush complete — ${failed.length} still pending`);
|
|
437
|
-
console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
|
|
438
511
|
}
|
|
439
512
|
// ─── Modal visibility ──────────────────────────────────────────────────────
|
|
440
513
|
_setVisible(visible) {
|
package/dist/i18n/XeboRtl.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ export declare function isRtl(): boolean;
|
|
|
6
6
|
* left/right for textAlign — so 'left' here means the start (right) edge.
|
|
7
7
|
*/
|
|
8
8
|
export declare function rtlText(): TextStyle | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* rtlText() for TextInput. Android aligns inputs to the physical edge and ignores the
|
|
11
|
+
* sheet's direction, so it needs 'right'; iOS swaps like Text does.
|
|
12
|
+
*/
|
|
13
|
+
export declare function rtlInput(): TextStyle | undefined;
|
|
9
14
|
/** Mirrors a flex row (option rows, scale rows) for RTL. */
|
|
10
15
|
export declare function rtlRow(): ViewStyle | undefined;
|
|
11
16
|
//# sourceMappingURL=XeboRtl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboRtl.d.ts","sourceRoot":"","sources":["../../src/i18n/XeboRtl.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"XeboRtl.d.ts","sourceRoot":"","sources":["../../src/i18n/XeboRtl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9D,wBAAgB,KAAK,IAAI,OAAO,CAE/B;AAED;;;;GAIG;AACH,wBAAgB,OAAO,IAAI,SAAS,GAAG,SAAS,CAE/C;AAED;;;GAGG;AACH,wBAAgB,QAAQ,IAAI,SAAS,GAAG,SAAS,CAGhD;AAED,4DAA4D;AAC5D,wBAAgB,MAAM,IAAI,SAAS,GAAG,SAAS,CAE9C"}
|
package/dist/i18n/XeboRtl.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isRtl = isRtl;
|
|
4
4
|
exports.rtlText = rtlText;
|
|
5
|
+
exports.rtlInput = rtlInput;
|
|
5
6
|
exports.rtlRow = rtlRow;
|
|
7
|
+
const react_native_1 = require("react-native");
|
|
6
8
|
const XeboStrings_1 = require("./XeboStrings");
|
|
7
9
|
function isRtl() {
|
|
8
10
|
return (0, XeboStrings_1.getStrings)().direction === 'rtl';
|
|
@@ -15,6 +17,15 @@ function isRtl() {
|
|
|
15
17
|
function rtlText() {
|
|
16
18
|
return isRtl() ? { textAlign: 'left', writingDirection: 'rtl' } : undefined;
|
|
17
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* rtlText() for TextInput. Android aligns inputs to the physical edge and ignores the
|
|
22
|
+
* sheet's direction, so it needs 'right'; iOS swaps like Text does.
|
|
23
|
+
*/
|
|
24
|
+
function rtlInput() {
|
|
25
|
+
if (!isRtl())
|
|
26
|
+
return undefined;
|
|
27
|
+
return { textAlign: react_native_1.Platform.OS === 'android' ? 'right' : 'left', writingDirection: 'rtl' };
|
|
28
|
+
}
|
|
18
29
|
/** Mirrors a flex row (option rows, scale rows) for RTL. */
|
|
19
30
|
function rtlRow() {
|
|
20
31
|
return isRtl() ? { flexDirection: 'row-reverse' } : undefined;
|
|
@@ -2,6 +2,10 @@ import { APILangScript } from '../models/XeboLanguageModels';
|
|
|
2
2
|
export interface XeboStrings {
|
|
3
3
|
next: string;
|
|
4
4
|
submit: string;
|
|
5
|
+
/** Moves to the next question on a page that shows several. */
|
|
6
|
+
ok: string;
|
|
7
|
+
/** Scrolls back to the previous question on a page that shows several. */
|
|
8
|
+
previous: string;
|
|
5
9
|
skip: string;
|
|
6
10
|
close: string;
|
|
7
11
|
thankYouTitle: string;
|
|
@@ -19,6 +23,8 @@ export interface ConfigureStringsInput {
|
|
|
19
23
|
}
|
|
20
24
|
export declare function configureStrings(input: ConfigureStringsInput): void;
|
|
21
25
|
export declare function resetStrings(): void;
|
|
26
|
+
/** The survey's own button text for its primary language; blank values keep the defaults. */
|
|
27
|
+
export declare function setButtonLabels(labels: Partial<Record<'next' | 'submit' | 'ok' | 'previous', string>>): void;
|
|
22
28
|
export declare function getStrings(): XeboStrings;
|
|
23
29
|
/** The Next/Submit label every question view shows on its primary button. */
|
|
24
30
|
export declare function actionLabel(isLastQuestion: boolean): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboStrings.d.ts","sourceRoot":"","sources":["../../src/i18n/XeboStrings.ts"],"names":[],"mappings":"AAAA,OAA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,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,UAAU,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAK5G;AAED,wBAAgB,UAAU,IAAI,WAAW,CAExC;AAED,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,CAE3D;AAED,yFAAyF;AACzF,wBAAgB,eAAe,CAAC,QAAQ,EAAE;IAAE,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEhG"}
|
package/dist/i18n/XeboStrings.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.configureStrings = configureStrings;
|
|
4
4
|
exports.resetStrings = resetStrings;
|
|
5
|
+
exports.setButtonLabels = setButtonLabels;
|
|
5
6
|
exports.getStrings = getStrings;
|
|
6
7
|
exports.actionLabel = actionLabel;
|
|
7
8
|
exports.requiredMessage = requiredMessage;
|
|
@@ -9,6 +10,8 @@ const XeboLanguageService_1 = require("../core/XeboLanguageService");
|
|
|
9
10
|
const defaultStrings = {
|
|
10
11
|
next: 'Next',
|
|
11
12
|
submit: 'Submit',
|
|
13
|
+
ok: 'Ok',
|
|
14
|
+
previous: 'Previous',
|
|
12
15
|
skip: 'Skip',
|
|
13
16
|
close: 'Close',
|
|
14
17
|
thankYouTitle: 'Thank You!',
|
|
@@ -20,13 +23,14 @@ const defaultStrings = {
|
|
|
20
23
|
const builtIn = {
|
|
21
24
|
ar: {
|
|
22
25
|
skip: 'تخطي',
|
|
26
|
+
previous: 'السابق',
|
|
23
27
|
thankYouTitle: 'شكراً لك!',
|
|
24
28
|
thankYouMessage: 'نحن نقدّر ملاحظاتك كثيراً.',
|
|
25
29
|
},
|
|
26
30
|
};
|
|
27
31
|
let currentStrings = Object.assign({}, defaultStrings);
|
|
28
32
|
function configureStrings(input) {
|
|
29
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
33
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
30
34
|
const entry = (_a = input.surveyEntry) !== null && _a !== void 0 ? _a : {};
|
|
31
35
|
const slugs = (_c = (_b = input.script) === null || _b === void 0 ? void 0 : _b.textMapping) !== null && _c !== void 0 ? _c : {};
|
|
32
36
|
const fallback = (_d = builtIn[input.langKey.toLowerCase()]) !== null && _d !== void 0 ? _d : {};
|
|
@@ -34,10 +38,12 @@ function configureStrings(input) {
|
|
|
34
38
|
currentStrings = {
|
|
35
39
|
next: (_e = (0, XeboLanguageService_1.translatedText)(entry.next)) !== null && _e !== void 0 ? _e : defaultStrings.next,
|
|
36
40
|
submit: (_f = (0, XeboLanguageService_1.translatedText)(entry.submit)) !== null && _f !== void 0 ? _f : defaultStrings.submit,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
ok: (_g = (0, XeboLanguageService_1.translatedText)(entry.ok)) !== null && _g !== void 0 ? _g : defaultStrings.ok,
|
|
42
|
+
previous: (_j = (_h = (0, XeboLanguageService_1.translatedText)(entry.prev)) !== null && _h !== void 0 ? _h : fallback.previous) !== null && _j !== void 0 ? _j : defaultStrings.previous,
|
|
43
|
+
skip: (_l = (_k = fallback.skip) !== null && _k !== void 0 ? _k : exit) !== null && _l !== void 0 ? _l : defaultStrings.skip,
|
|
44
|
+
close: (_m = (0, XeboLanguageService_1.translatedText)(slugs['close-text'])) !== null && _m !== void 0 ? _m : defaultStrings.close,
|
|
45
|
+
thankYouTitle: (_o = fallback.thankYouTitle) !== null && _o !== void 0 ? _o : defaultStrings.thankYouTitle,
|
|
46
|
+
thankYouMessage: (_p = fallback.thankYouMessage) !== null && _p !== void 0 ? _p : defaultStrings.thankYouMessage,
|
|
41
47
|
localized: true,
|
|
42
48
|
direction: input.direction,
|
|
43
49
|
};
|
|
@@ -45,6 +51,14 @@ function configureStrings(input) {
|
|
|
45
51
|
function resetStrings() {
|
|
46
52
|
currentStrings = Object.assign({}, defaultStrings);
|
|
47
53
|
}
|
|
54
|
+
/** The survey's own button text for its primary language; blank values keep the defaults. */
|
|
55
|
+
function setButtonLabels(labels) {
|
|
56
|
+
for (const [key, value] of Object.entries(labels)) {
|
|
57
|
+
const text = (0, XeboLanguageService_1.translatedText)(value);
|
|
58
|
+
if (text)
|
|
59
|
+
currentStrings = Object.assign(Object.assign({}, currentStrings), { [key]: text });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
48
62
|
function getStrings() {
|
|
49
63
|
return currentStrings;
|
|
50
64
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { XeboSurveyManager, XEBO_EVENTS } from './core/XeboSurveyManager';
|
|
|
2
2
|
export { XeboSurveyModal } from './components/XeboSurveyModal';
|
|
3
3
|
export type { XeboLanguageOption, XeboLanguagePageModel, XeboLanguagePrompt, } from './models/XeboLanguageModels';
|
|
4
4
|
export type { XeboStrings } from './i18n/XeboStrings';
|
|
5
|
-
export type { XeboSurvey, XeboQuestion, XeboAnswer, XeboAnswerValue, XeboQueuedResponse, XeboConfig, XeboThemeConfig, XeboChoice, XeboNPSLabels, XeboConditionalFollowUp, XeboSurveyPage, XeboUserData, } from './models/XeboModels';
|
|
5
|
+
export type { XeboSurvey, XeboQuestion, XeboAnswer, XeboAnswerValue, XeboQueuedResponse, XeboConfig, XeboStorageAdapter, XeboThemeConfig, XeboChoice, XeboNPSLabels, XeboConditionalFollowUp, XeboSurveyPage, XeboUserData, } from './models/XeboModels';
|
|
6
6
|
export { XeboQuestionType } from './models/XeboModels';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG1E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,YAAY,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,eAAe,EACf,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,cAAc,EACd,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG1E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,YAAY,EACV,UAAU,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,cAAc,EACd,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -20,6 +20,43 @@ export interface APIConfigScale {
|
|
|
20
20
|
enabled: boolean;
|
|
21
21
|
qId: string[];
|
|
22
22
|
}
|
|
23
|
+
export interface APILogicRule {
|
|
24
|
+
answer?: {
|
|
25
|
+
rowId?: string;
|
|
26
|
+
colId?: string;
|
|
27
|
+
} | null;
|
|
28
|
+
criteriaId?: string | null;
|
|
29
|
+
destination?: {
|
|
30
|
+
type?: string;
|
|
31
|
+
qId?: string;
|
|
32
|
+
} | null;
|
|
33
|
+
optionIds?: string[];
|
|
34
|
+
}
|
|
35
|
+
export interface APIButtonColor {
|
|
36
|
+
bgColor?: string;
|
|
37
|
+
color?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface APICriteria {
|
|
40
|
+
uuid: string;
|
|
41
|
+
condition?: Array<{
|
|
42
|
+
data?: {
|
|
43
|
+
type?: string;
|
|
44
|
+
normal?: {
|
|
45
|
+
quesId?: string;
|
|
46
|
+
selected?: boolean;
|
|
47
|
+
options?: {
|
|
48
|
+
opts?: string[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
operator?: string;
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
55
|
+
export interface APILogic {
|
|
56
|
+
type?: string;
|
|
57
|
+
subType?: string;
|
|
58
|
+
data?: APILogicRule[];
|
|
59
|
+
}
|
|
23
60
|
export interface APIQuestionSettings {
|
|
24
61
|
nps?: {
|
|
25
62
|
colors?: {
|
|
@@ -29,6 +66,11 @@ export interface APIQuestionSettings {
|
|
|
29
66
|
};
|
|
30
67
|
leftLabel?: string;
|
|
31
68
|
rightLabel?: string;
|
|
69
|
+
type?: string;
|
|
70
|
+
differentForMobile?: boolean;
|
|
71
|
+
mobile?: {
|
|
72
|
+
type?: string;
|
|
73
|
+
};
|
|
32
74
|
};
|
|
33
75
|
configScale?: APIConfigScale[];
|
|
34
76
|
rating?: {
|
|
@@ -56,13 +98,18 @@ export interface APIQuestion {
|
|
|
56
98
|
col?: APIOptionItem[];
|
|
57
99
|
};
|
|
58
100
|
settings?: APIQuestionSettings;
|
|
101
|
+
logics?: APILogic[];
|
|
102
|
+
/** "Hide question" setting on the platform. */
|
|
103
|
+
isHidden?: boolean;
|
|
59
104
|
placeholder?: {
|
|
60
105
|
text?: string;
|
|
61
106
|
} | string | null;
|
|
62
107
|
}
|
|
63
108
|
export interface APIBlock {
|
|
109
|
+
/** separator: page break after this question; false keeps the next question on the same page. */
|
|
64
110
|
questions: Array<{
|
|
65
111
|
question: APIQuestion;
|
|
112
|
+
separator?: boolean;
|
|
66
113
|
}>;
|
|
67
114
|
}
|
|
68
115
|
export interface APISurveyData {
|
|
@@ -80,6 +127,52 @@ export interface APISurveyData {
|
|
|
80
127
|
content?: string;
|
|
81
128
|
links?: string;
|
|
82
129
|
};
|
|
130
|
+
completionRules?: {
|
|
131
|
+
logicMeet?: {
|
|
132
|
+
type?: string;
|
|
133
|
+
value?: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
criteria?: APICriteria[];
|
|
137
|
+
basicSettings?: {
|
|
138
|
+
questionView?: {
|
|
139
|
+
type?: string;
|
|
140
|
+
autoAdvance?: boolean;
|
|
141
|
+
};
|
|
142
|
+
questions?: {
|
|
143
|
+
numbers?: boolean;
|
|
144
|
+
};
|
|
145
|
+
buttons?: {
|
|
146
|
+
prev?: {
|
|
147
|
+
text?: string;
|
|
148
|
+
enabled?: boolean;
|
|
149
|
+
};
|
|
150
|
+
next?: {
|
|
151
|
+
text?: string;
|
|
152
|
+
};
|
|
153
|
+
submit?: {
|
|
154
|
+
text?: string;
|
|
155
|
+
};
|
|
156
|
+
okay?: {
|
|
157
|
+
text?: string;
|
|
158
|
+
};
|
|
159
|
+
navigations?: {
|
|
160
|
+
enabled?: boolean;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
theme?: {
|
|
165
|
+
style?: {
|
|
166
|
+
btns?: {
|
|
167
|
+
primary?: APIButtonColor;
|
|
168
|
+
};
|
|
169
|
+
advance?: {
|
|
170
|
+
nextButton?: APIButtonColor;
|
|
171
|
+
previousButton?: APIButtonColor;
|
|
172
|
+
okButton?: APIButtonColor;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
83
176
|
primaryLang?: APIPrimaryLang | null;
|
|
84
177
|
languages?: APILanguageEntry[] | null;
|
|
85
178
|
langSettings?: APILangSettings | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XeboAPIModels.d.ts","sourceRoot":"","sources":["../../src/models/XeboAPIModels.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEzF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,CAAC,EAAE;QACJ,MAAM,CAAC,EAAE;YACP,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB,CAAC;QACF,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"XeboAPIModels.d.ts","sourceRoot":"","sources":["../../src/models/XeboAPIModels.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEzF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE;QACJ,G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