jclic 2.1.21 → 2.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/jclic-node.js +1 -1
  3. package/dist/jclic-node.js.map +1 -1
  4. package/dist/jclic.min.js +2 -2
  5. package/dist/jclic.min.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/GlobalData.js +1 -1
  8. package/dist/1078.jclic-node.js +0 -282
  9. package/dist/1078.jclic-node.js.map +0 -1
  10. package/dist/1196.jclic-node.js +0 -808
  11. package/dist/1196.jclic-node.js.map +0 -1
  12. package/dist/1253.jclic-node.js +0 -1432
  13. package/dist/1253.jclic-node.js.map +0 -1
  14. package/dist/13.jclic-node.js +0 -103
  15. package/dist/13.jclic-node.js.map +0 -1
  16. package/dist/1567.jclic-node.js +0 -2313
  17. package/dist/1567.jclic-node.js.map +0 -1
  18. package/dist/1588.jclic-node.js +0 -602
  19. package/dist/1588.jclic-node.js.map +0 -1
  20. package/dist/1725.jclic-node.js +0 -836
  21. package/dist/1725.jclic-node.js.map +0 -1
  22. package/dist/1731.jclic-node.js +0 -438
  23. package/dist/1731.jclic-node.js.map +0 -1
  24. package/dist/1842.jclic-node.js +0 -651
  25. package/dist/1842.jclic-node.js.map +0 -1
  26. package/dist/2160.jclic-node.js +0 -1016
  27. package/dist/2160.jclic-node.js.map +0 -1
  28. package/dist/222.jclic-node.js +0 -129
  29. package/dist/222.jclic-node.js.map +0 -1
  30. package/dist/2316.jclic-node.js +0 -949
  31. package/dist/2316.jclic-node.js.map +0 -1
  32. package/dist/2355.jclic-node.js +0 -371
  33. package/dist/2355.jclic-node.js.map +0 -1
  34. package/dist/2366.jclic-node.js +0 -431
  35. package/dist/2366.jclic-node.js.map +0 -1
  36. package/dist/2379.jclic-node.js +0 -202
  37. package/dist/2379.jclic-node.js.map +0 -1
  38. package/dist/2437.jclic-node.js +0 -450
  39. package/dist/2437.jclic-node.js.map +0 -1
  40. package/dist/2531.jclic-node.js +0 -869
  41. package/dist/2531.jclic-node.js.map +0 -1
  42. package/dist/2608.jclic-node.js +0 -160
  43. package/dist/2608.jclic-node.js.map +0 -1
  44. package/dist/2715.jclic-node.js +0 -554
  45. package/dist/2715.jclic-node.js.map +0 -1
  46. package/dist/277.jclic-node.js +0 -22
  47. package/dist/277.jclic-node.js.map +0 -1
  48. package/dist/2921.jclic-node.js +0 -660
  49. package/dist/2921.jclic-node.js.map +0 -1
  50. package/dist/2952.jclic-node.js +0 -101
  51. package/dist/2952.jclic-node.js.map +0 -1
  52. package/dist/3018.jclic-node.js +0 -421
  53. package/dist/3018.jclic-node.js.map +0 -1
  54. package/dist/3019.jclic-node.js +0 -682
  55. package/dist/3019.jclic-node.js.map +0 -1
  56. package/dist/3231.jclic-node.js +0 -274
  57. package/dist/3231.jclic-node.js.map +0 -1
  58. package/dist/331.jclic-node.js +0 -115
  59. package/dist/331.jclic-node.js.map +0 -1
  60. package/dist/3391.jclic-node.js +0 -276
  61. package/dist/3391.jclic-node.js.map +0 -1
  62. package/dist/3502.jclic-node.js +0 -671
  63. package/dist/3502.jclic-node.js.map +0 -1
  64. package/dist/3653.jclic-node.js +0 -982
  65. package/dist/3653.jclic-node.js.map +0 -1
  66. package/dist/371.jclic.min.js +0 -2
  67. package/dist/371.jclic.min.js.map +0 -1
  68. package/dist/3856.jclic-node.js +0 -575
  69. package/dist/3856.jclic-node.js.map +0 -1
  70. package/dist/4112.jclic-node.js +0 -659
  71. package/dist/4112.jclic-node.js.map +0 -1
  72. package/dist/4123.jclic-node.js +0 -910
  73. package/dist/4123.jclic-node.js.map +0 -1
  74. package/dist/427.jclic-node.js +0 -894
  75. package/dist/427.jclic-node.js.map +0 -1
  76. package/dist/4483.jclic-node.js +0 -327
  77. package/dist/4483.jclic-node.js.map +0 -1
  78. package/dist/4548.jclic-node.js +0 -1078
  79. package/dist/4548.jclic-node.js.map +0 -1
  80. package/dist/466.jclic-node.js +0 -99
  81. package/dist/466.jclic-node.js.map +0 -1
  82. package/dist/485.jclic-node.js +0 -783
  83. package/dist/485.jclic-node.js.map +0 -1
  84. package/dist/4921.jclic-node.js +0 -500
  85. package/dist/4921.jclic-node.js.map +0 -1
  86. package/dist/5091.jclic-node.js +0 -239
  87. package/dist/5091.jclic-node.js.map +0 -1
  88. package/dist/520.jclic-node.js +0 -550
  89. package/dist/520.jclic-node.js.map +0 -1
  90. package/dist/5312.jclic-node.js +0 -1126
  91. package/dist/5312.jclic-node.js.map +0 -1
  92. package/dist/5338.jclic-node.js +0 -212
  93. package/dist/5338.jclic-node.js.map +0 -1
  94. package/dist/5344.jclic-node.js +0 -229
  95. package/dist/5344.jclic-node.js.map +0 -1
  96. package/dist/5550.jclic-node.js +0 -238
  97. package/dist/5550.jclic-node.js.map +0 -1
  98. package/dist/5626.jclic-node.js +0 -614
  99. package/dist/5626.jclic-node.js.map +0 -1
  100. package/dist/5977.jclic-node.js +0 -1081
  101. package/dist/5977.jclic-node.js.map +0 -1
  102. package/dist/6148.jclic-node.js +0 -345
  103. package/dist/6148.jclic-node.js.map +0 -1
  104. package/dist/6176.jclic-node.js +0 -481
  105. package/dist/6176.jclic-node.js.map +0 -1
  106. package/dist/6221.jclic-node.js +0 -1072
  107. package/dist/6221.jclic-node.js.map +0 -1
  108. package/dist/6238.jclic-node.js +0 -718
  109. package/dist/6238.jclic-node.js.map +0 -1
  110. package/dist/6454.jclic-node.js +0 -1413
  111. package/dist/6454.jclic-node.js.map +0 -1
  112. package/dist/6565.jclic-node.js +0 -294
  113. package/dist/6565.jclic-node.js.map +0 -1
  114. package/dist/6579.jclic-node.js +0 -719
  115. package/dist/6579.jclic-node.js.map +0 -1
  116. package/dist/6715.jclic-node.js +0 -148
  117. package/dist/6715.jclic-node.js.map +0 -1
  118. package/dist/6777.jclic-node.js +0 -171
  119. package/dist/6777.jclic-node.js.map +0 -1
  120. package/dist/6782.jclic-node.js +0 -1611
  121. package/dist/6782.jclic-node.js.map +0 -1
  122. package/dist/6847.jclic-node.js +0 -601
  123. package/dist/6847.jclic-node.js.map +0 -1
  124. package/dist/6856.jclic-node.js +0 -252
  125. package/dist/6856.jclic-node.js.map +0 -1
  126. package/dist/696.jclic-node.js +0 -1821
  127. package/dist/696.jclic-node.js.map +0 -1
  128. package/dist/698.jclic-node.js +0 -583
  129. package/dist/698.jclic-node.js.map +0 -1
  130. package/dist/704.jclic-node.js +0 -80
  131. package/dist/704.jclic-node.js.map +0 -1
  132. package/dist/7046.jclic-node.js +0 -735
  133. package/dist/7046.jclic-node.js.map +0 -1
  134. package/dist/7220.jclic-node.js +0 -156
  135. package/dist/7220.jclic-node.js.map +0 -1
  136. package/dist/7257.jclic-node.js +0 -931
  137. package/dist/7257.jclic-node.js.map +0 -1
  138. package/dist/743.jclic-node.js +0 -583
  139. package/dist/743.jclic-node.js.map +0 -1
  140. package/dist/757.jclic-node.js +0 -1072
  141. package/dist/757.jclic-node.js.map +0 -1
  142. package/dist/7781.jclic-node.js +0 -202
  143. package/dist/7781.jclic-node.js.map +0 -1
  144. package/dist/7912.jclic-node.js +0 -2103
  145. package/dist/7912.jclic-node.js.map +0 -1
  146. package/dist/827.jclic-node.js +0 -708
  147. package/dist/827.jclic-node.js.map +0 -1
  148. package/dist/8276.jclic-node.js +0 -409
  149. package/dist/8276.jclic-node.js.map +0 -1
  150. package/dist/8322.jclic-node.js +0 -498
  151. package/dist/8322.jclic-node.js.map +0 -1
  152. package/dist/8641.jclic-node.js +0 -360
  153. package/dist/8641.jclic-node.js.map +0 -1
  154. package/dist/8837.jclic-node.js +0 -651
  155. package/dist/8837.jclic-node.js.map +0 -1
  156. package/dist/8895.jclic-node.js +0 -151
  157. package/dist/8895.jclic-node.js.map +0 -1
  158. package/dist/9072.jclic-node.js +0 -1285
  159. package/dist/9072.jclic-node.js.map +0 -1
  160. package/dist/9078.jclic-node.js +0 -935
  161. package/dist/9078.jclic-node.js.map +0 -1
  162. package/dist/9103.jclic-node.js +0 -718
  163. package/dist/9103.jclic-node.js.map +0 -1
  164. package/dist/9359.jclic-node.js +0 -145
  165. package/dist/9359.jclic-node.js.map +0 -1
  166. package/dist/9409.jclic-node.js +0 -921
  167. package/dist/9409.jclic-node.js.map +0 -1
  168. package/dist/9513.jclic-node.js +0 -720
  169. package/dist/9513.jclic-node.js.map +0 -1
  170. package/dist/9704.jclic-node.js +0 -81
  171. package/dist/9704.jclic-node.js.map +0 -1
  172. package/dist/9950.jclic-node.js +0 -827
  173. package/dist/9950.jclic-node.js.map +0 -1
@@ -1,949 +0,0 @@
1
- "use strict";
2
- exports.id = 2316;
3
- exports.ids = [2316,5626,1731,1078,7220];
4
- exports.modules = {
5
-
6
- /***/ 2316:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
11
- /* harmony export */ });
12
- /* unused harmony export ActivitySequence */
13
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7750);
14
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
15
- /* harmony import */ var _JumpInfo_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7220);
16
- /* harmony import */ var _ActivitySequenceElement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5626);
17
- /* harmony import */ var _ActivitySequenceJump_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4112);
18
- /* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1253);
19
- /**
20
- * File : bags/ActivitySequence.js
21
- * Created : 05/04/2015
22
- * By : Francesc Busquets <francesc@gmail.com>
23
- *
24
- * JClic.js
25
- * An HTML5 player of JClic activities
26
- * https://projectestac.github.io/jclic.js
27
- *
28
- * @source https://github.com/projectestac/jclic.js
29
- *
30
- * @license EUPL-1.2
31
- * @licstart
32
- * (c) 2000-2020 Educational Telematic Network of Catalonia (XTEC)
33
- *
34
- * Licensed under the EUPL, Version 1.1 or -as soon they will be approved by
35
- * the European Commission- subsequent versions of the EUPL (the "Licence");
36
- * You may not use this work except in compliance with the Licence.
37
- *
38
- * You may obtain a copy of the Licence at:
39
- * https://joinup.ec.europa.eu/software/page/eupl
40
- *
41
- * Unless required by applicable law or agreed to in writing, software
42
- * distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
43
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
44
- * Licence for the specific language governing permissions and limitations
45
- * under the Licence.
46
- * @licend
47
- * @module
48
- */
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
- /**
57
- * This class stores the definition of the sequence to follow to show the activities of a
58
- * {@link module:project/JClicProject.JClicProject JClicProject}. The sequence are formed by an ordered list of objects of type
59
- * {@link module:bags/ActivitySequenceElement.ActivitySequenceElement ActivitySequenceElement}.
60
- * It stores also a transient pointer to the current sequence element.
61
- */
62
- class ActivitySequence {
63
- /**
64
- * ActivitySequence constructor
65
- * @param {module:project/JClicProject.JClicProject} project - The JClic project to which this ActivitySequence belongs
66
- */
67
- constructor(project) {
68
- this.project = project;
69
- this.elements = [];
70
- }
71
-
72
- /**
73
- * Loads the object settings from a specific JQuery XML element
74
- * @param {external:jQuery} $xml - The XML element to parse
75
- */
76
- setProperties($xml) {
77
- $xml.children('item').each((_i, data) => this.elements.push(new _ActivitySequenceElement_js__WEBPACK_IMPORTED_MODULE_2__["default"]().setProperties(jquery__WEBPACK_IMPORTED_MODULE_0___default()(data))));
78
- return this;
79
- }
80
-
81
- /**
82
- * Gets a object with the basic attributes needed to rebuild this instance excluding functions,
83
- * parent references, constants and also attributes retaining the default value.
84
- * The resulting object is commonly usued to serialize elements in JSON format.
85
- * @returns {object} - The resulting object, with minimal attrributes
86
- */
87
- getAttributes() {
88
- return this.elements.map(el => el.getAttributes());
89
- }
90
-
91
- /**
92
- * Loads the object settings from a data object
93
- * @param {object} data - The data object to parse
94
- */
95
- setAttributes(data) {
96
- data.forEach(el => this.elements.push(new _ActivitySequenceElement_js__WEBPACK_IMPORTED_MODULE_2__["default"]().setAttributes(el)));
97
- return this;
98
- }
99
-
100
- /**
101
- * Returns the index of the specified element in the sequence.
102
- * @param {module:bags/ActivitySequenceElement.ActivitySequenceElement} ase - The element to search.
103
- * @returns {number} - The requested index, or `null` if not found.
104
- */
105
- getElementIndex(ase) {
106
- return ase === null ? -1 : this.elements.indexOf(ase);
107
- }
108
-
109
- /**
110
- * Returns the nth element of the sequence.
111
- * @param {number} n - Index of the requested element
112
- * @param {boolean} updateCurrentAct - when `true`, the `currentAct` index will be updated.
113
- * @returns {module:bags/ActivitySequenceElement.ActivitySequenceElement} - The requested element, or `null` if out of range.
114
- */
115
- getElement(n, updateCurrentAct) {
116
- let result = null;
117
- if (n >= 0 && n < this.elements.length) {
118
- result = this.elements[n];
119
- if (updateCurrentAct)
120
- this.currentAct = n;
121
- }
122
- return result;
123
- }
124
-
125
- /**
126
- * Search into the sequence for a element with the provided tag
127
- * @param {string} tag - The tag to search
128
- * @param {boolean} updateCurrentAct - when `true`, the `currentAct` index will be updated.
129
- * @returns {module:bags/ActivitySequenceElement.ActivitySequenceElement} - The requested element, or `null` if not found.
130
- */
131
- getElementByTag(tag, updateCurrentAct) {
132
- let
133
- result = null,
134
- resultIndex = -1;
135
- if (tag) {
136
- tag = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_4__/* .nSlash */ .c4)(tag);
137
- this.elements.some((el, index) => {
138
- if (el.tag === tag) {
139
- result = el;
140
- resultIndex = index;
141
- }
142
- return resultIndex !== -1;
143
- });
144
- if (resultIndex !== -1 && updateCurrentAct)
145
- this.currentAct = resultIndex;
146
- }
147
- return result;
148
- }
149
-
150
- /**
151
- * Gets the sequence element pointed by the `currentAct` member.
152
- * @returns {module:bags/ActivitySequenceElement.ActivitySequenceElement} - The current sequence element, or `null` if not set.
153
- */
154
- getCurrentAct() {
155
- return this.getElement(this.currentAct, false);
156
- }
157
-
158
- /**
159
- * Checks if it's possible to go forward from the current position in the sequence.
160
- * @param {boolean} hasReturn - Indicates whether the history of jumps done since the beginning
161
- * of the JClic session is empty or not. When not empty, a `RETURN` action is still possible.
162
- * @returns {boolean} - `true` when the user is allowed to go ahead to a next activity,
163
- * `false` otherwise. */
164
- hasNextAct(hasReturn) {
165
- let result = false;
166
- const ase = this.getCurrentAct();
167
- if (ase) {
168
- if (ase.fwdJump === null)
169
- result = true;
170
- else
171
- switch (ase.fwdJump.action) {
172
- case 'STOP':
173
- break;
174
- case 'RETURN':
175
- result = hasReturn;
176
- break;
177
- default:
178
- result = true;
179
- }
180
- }
181
- return result;
182
- }
183
-
184
- /**
185
- * Checks if it's possible to go back from the current position in the sequence.
186
- * @param {boolean} hasReturn - Indicates whether the history of jumps done since the beginning
187
- * of the JClic session is empty or not. When not empty, a `RETURN` action is still possible.
188
- * @returns {boolean} - `true` when the user is allowed to go back to a previous activity,
189
- * `false` otherwise. */
190
- hasPrevAct(hasReturn) {
191
- let result = false;
192
- const ase = this.getCurrentAct();
193
- if (ase) {
194
- if (ase.backJump === null)
195
- result = true;
196
- else
197
- switch (ase.backJump.action) {
198
- case 'STOP':
199
- break;
200
- case 'RETURN':
201
- result = hasReturn;
202
- break;
203
- default:
204
- result = true;
205
- }
206
- }
207
- return result;
208
- }
209
-
210
- /**
211
- * Gets the current state for the 'next' and 'prev' buttons.
212
- * @returns {string} - One of the possible values of {@link module:bags/ActivitySequenceElement.ActivitySequenceElement#navButtons navButtons},
213
- * thus: `none`, `fwd`, `back` or `both`
214
- */
215
- getNavButtonsFlag() {
216
- let flag = 'none';
217
- const ase = this.getCurrentAct();
218
- if (ase)
219
- flag = ase.navButtons;
220
- return flag;
221
- }
222
-
223
- /**
224
- * Computes the jump to perform from the current position on the sequence
225
- * @param {boolean} back - When `true`, the request is for the 'go back' button. Otherwise, is
226
- * for the 'next' one.
227
- * @param {module:report/Reporter.Reporter} reporter - The reporting engine that will provide values about score average
228
- * and time spend on the activities, used only to compute conditional jumps.
229
- * @returns {module:bags/JumpInfo.JumpInfo} - The jump info if a valid jump is possible, `null` otherwise.
230
- */
231
- getJump(back, reporter) {
232
- const ase = this.getCurrentAct();
233
- let result = null;
234
- if (ase) {
235
- const asj = back ? ase.backJump : ase.fwdJump;
236
- if (asj === null) {
237
- let i = this.currentAct + (back ? -1 : 1);
238
- if (i >= this.elements.length || i < 0)
239
- i = 0;
240
- result = new _JumpInfo_js__WEBPACK_IMPORTED_MODULE_1__["default"]('JUMP', i);
241
- } else {
242
- let
243
- rating = -1,
244
- time = -1;
245
- if (reporter !== null) {
246
- const seqRegInfo = reporter.getCurrentSequenceInfo();
247
- if (seqRegInfo !== null) {
248
- rating = Math.round(seqRegInfo.tScore);
249
- time = Math.round(seqRegInfo.tTime / 1000);
250
- }
251
- }
252
- result = asj.resolveJump(rating, time);
253
- }
254
- }
255
- return result;
256
- }
257
-
258
- /**
259
- * Finds the nearest sequence element with a valid 'tag', looking back in the `elements` list.
260
- * @param {number} num - The point of the sequence from which to start looking back.
261
- * @returns {string} - The nearest 'tag', or `null` if not found.
262
- */
263
- getSequenceForElement(num) {
264
- let tag = null;
265
- if (num >= 0 && num < this.elements.length)
266
- for (let i = num; tag === null && i >= 0; i--) {
267
- tag = this.getElement(i, false).tag;
268
- }
269
- return tag;
270
- }
271
-
272
- /**
273
- * Gets the first {@link module:bags/ActivitySequenceElement.ActivitySequenceElement ActivitySequenceElement} in the `elements` list pointing to the
274
- * specified activity name.
275
- * The search is always case-insensitive.
276
- * @param {string} activity - The name of the activity to search for.
277
- * @returns {module:bags/ActivitySequenceElement.ActivitySequenceElement} The requested element or `null` if not found.
278
- */
279
- getElementByActivityName(activity) {
280
- let result = null;
281
- if (activity !== null) {
282
- for (let i = 0; result === null && i < this.elements.length; i++) {
283
- const ase = this.getElement(i, false);
284
- if (ase.activity.toLowerCase() === activity.toLowerCase())
285
- result = ase;
286
- }
287
- }
288
- return result;
289
- }
290
-
291
- /**
292
- * Utility function to check if the current sequence element corresponds to the specified
293
- * activity. If negative, the `currentAct` will be accordingly set.
294
- * @param {string} activity - The name of the activity to check
295
- */
296
- checkCurrentActivity(activity) {
297
- let ase = this.getCurrentAct();
298
- if (ase === null || ase.activity.toUpperCase() !== activity.toUpperCase()) {
299
- for (let i = 0; i < this.elements.length; i++) {
300
- if (this.getElement(i, false).activity.toUpperCase() === activity.toUpperCase()) {
301
- this.currentAct = i;
302
- return false;
303
- }
304
- }
305
- ase = new _ActivitySequenceElement_js__WEBPACK_IMPORTED_MODULE_2__["default"]();
306
- ase.activity = activity;
307
- ase.fwdJump = new _ActivitySequenceJump_js__WEBPACK_IMPORTED_MODULE_3__["default"]('STOP');
308
- ase.backJump = new _ActivitySequenceJump_js__WEBPACK_IMPORTED_MODULE_3__["default"]('STOP');
309
- this.elements.push(ase);
310
- this.currentAct = this.elements.length - 1;
311
- return false;
312
- }
313
- return true;
314
- }
315
- }
316
-
317
- Object.assign(ActivitySequence.prototype, {
318
- /**
319
- * The ordered list of {@link module:bags/ActivitySequenceElement.ActivitySequenceElement ActivitySequenceElement} objects
320
- * @name module:bags/ActivitySequence.ActivitySequence#elements
321
- * @type {module:bags/ActivitySequenceElement.ActivitySequenceElement[]} */
322
- elements: null,
323
- /**
324
- * The JClic project to which this ActivitySequence belongs.
325
- * @name module:bags/ActivitySequence.ActivitySequence#project
326
- * @type {module:project/JClicProject.JClicProject} */
327
- project: null,
328
- /**
329
- * Pointer to the {@link module:bags/ActivitySequenceElement.ActivitySequenceElement ActivitySequenceElement} currently running (points inside
330
- * the `elements` array).
331
- * @name module:bags/ActivitySequence.ActivitySequence#currentAct
332
- * @type {number} */
333
- currentAct: -1,
334
- });
335
-
336
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ActivitySequence);
337
-
338
-
339
- /***/ }),
340
-
341
- /***/ 5626:
342
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
343
-
344
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
345
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
346
- /* harmony export */ });
347
- /* unused harmony export ActivitySequenceElement */
348
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7750);
349
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
350
- /* harmony import */ var _ActivitySequenceJump_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4112);
351
- /* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1253);
352
- /**
353
- * File : bags/ActivitySequenceElement.js
354
- * Created : 05/04/2015
355
- * By : Francesc Busquets <francesc@gmail.com>
356
- *
357
- * JClic.js
358
- * An HTML5 player of JClic activities
359
- * https://projectestac.github.io/jclic.js
360
- *
361
- * @source https://github.com/projectestac/jclic.js
362
- *
363
- * @license EUPL-1.2
364
- * @licstart
365
- * (c) 2000-2020 Educational Telematic Network of Catalonia (XTEC)
366
- *
367
- * Licensed under the EUPL, Version 1.1 or -as soon they will be approved by
368
- * the European Commission- subsequent versions of the EUPL (the "Licence");
369
- * You may not use this work except in compliance with the Licence.
370
- *
371
- * You may obtain a copy of the Licence at:
372
- * https://joinup.ec.europa.eu/software/page/eupl
373
- *
374
- * Unless required by applicable law or agreed to in writing, software
375
- * distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
376
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
377
- * Licence for the specific language governing permissions and limitations
378
- * under the Licence.
379
- * @licend
380
- * @module
381
- */
382
-
383
-
384
-
385
-
386
-
387
- /**
388
- *
389
- * This class is the basic component of {@link module:bags/ActivitySequence.ActivitySequence ActivitySequence} objects. It represents a specific
390
- * point in the project's sequence of JClic activities.
391
- *
392
- * For each point of the sequence, some options can be set:
393
- * - What activity must run at this point
394
- * - What to do or where to jump when the activity finishes
395
- * - The behavior of the "next" button
396
- * - The behavior of the "prev" button
397
- *
398
- * Sequence points can also have a "tag", used to refer to them with a unique name.
399
- */
400
- class ActivitySequenceElement {
401
- constructor() {
402
- }
403
-
404
- /**
405
- * Loads the object settings from a specific JQuery XML element
406
- * @param {external:jQuery} $xml
407
- */
408
- setProperties($xml) {
409
-
410
- // Iterate on all provided attributes
411
- (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__/* .attrForEach */ .GM)($xml.get(0).attributes, (name, val) => {
412
- switch (name) {
413
- case 'id':
414
- this['tag'] = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__/* .nSlash */ .c4)(val);
415
- break;
416
- case 'name':
417
- this['activity'] = val;
418
- break;
419
- case 'description':
420
- // possible navButtons values are: `none`, `fwd`, `back` or `both`
421
- case 'navButtons':
422
- this[name] = val;
423
- break;
424
- case 'delay':
425
- this[name] = Number(val);
426
- break;
427
- }
428
- });
429
-
430
- // Iterate on 'jump' elements to load fwdJump and/or backJump
431
- $xml.children('jump').each((_n, data) => {
432
- const jmp = new _ActivitySequenceJump_js__WEBPACK_IMPORTED_MODULE_1__["default"]().setProperties(jquery__WEBPACK_IMPORTED_MODULE_0___default()(data));
433
- if (jmp.id === 'forward')
434
- this.fwdJump = jmp;
435
- else if (jmp.id === 'back')
436
- this.backJump = jmp;
437
- });
438
- return this;
439
- }
440
-
441
- /**
442
- * Gets a object with the basic attributes needed to rebuild this instance excluding functions,
443
- * parent references, constants and also attributes retaining the default value.
444
- * The resulting object is commonly usued to serialize elements in JSON format.
445
- * @returns {object} - The resulting object, with minimal attrributes
446
- */
447
- getAttributes() {
448
- return (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__/* .getAttr */ .iu)(this, ['tag', 'description', 'activity', 'fwdJump', 'backJump', 'navButtons', 'delay']);
449
- }
450
-
451
- /**
452
- * Loads sequence element settings from a data object
453
- * @param {object} data
454
- */
455
- setAttributes(data) {
456
- ['tag', 'description', 'activity', 'navButtons', 'delay'].forEach(t => {
457
- if (!(0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__/* .isEmpty */ .Im)(data[t]))
458
- this[t] = data[t];
459
- });
460
-
461
- ['fwdJump', 'backJump'].forEach(jmp => {
462
- if (data[jmp]) {
463
- this[jmp] = new _ActivitySequenceJump_js__WEBPACK_IMPORTED_MODULE_1__["default"]().setAttributes(data[jmp]);
464
- }
465
- });
466
- return this;
467
- }
468
- }
469
-
470
- Object.assign(ActivitySequenceElement.prototype, {
471
- /**
472
- * Optional unique identifier of this element in the {@link module:bags/ActivitySequence.ActivitySequence ActivitySequence}.
473
- * @name module:bags/ActivitySequenceElement.ActivitySequenceElement#tag
474
- * @type {string} */
475
- tag: null,
476
- /**
477
- * Optional description of this sequence element.
478
- * @name module:bags/ActivitySequenceElement.ActivitySequenceElement#description
479
- * @type {string} */
480
- description: null,
481
- /**
482
- * Name of the {@link module:Activity.Activity Activity} pointed by this element.
483
- * @name module:bags/ActivitySequenceElement.ActivitySequenceElement#activity
484
- * @type {string} */
485
- activity: '',
486
- /**
487
- * Jump to be processed by the 'next' button action
488
- * @name module:bags/ActivitySequenceElement.ActivitySequenceElement#fwdJump
489
- * @type {module:bags/ActivitySequenceJump.ActivitySequenceJump} */
490
- fwdJump: null,
491
- /**
492
- * Jump to be processed by the 'prev' button action.
493
- * @name module:bags/ActivitySequenceElement.ActivitySequenceElement#backJump
494
- * @type {module:bags/ActivitySequenceJump.ActivitySequenceJump} */
495
- backJump: null,
496
- /**
497
- * What buttons should be active at this point of the sequence. Valid values are:
498
- * - 'none'
499
- * - 'fwd'
500
- * - 'back'
501
- * - 'both'
502
- * @name module:bags/ActivitySequenceElement.ActivitySequenceElement#navButtons
503
- * @type {string} */
504
- navButtons: 'both',
505
- /**
506
- * Time delay (in seconds) before passing to the next/prev activity
507
- * @name module:bags/ActivitySequenceElement.ActivitySequenceElement#delay
508
- * @type {number} */
509
- delay: 0,
510
- });
511
-
512
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ActivitySequenceElement);
513
-
514
-
515
- /***/ }),
516
-
517
- /***/ 4112:
518
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
519
-
520
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
521
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
522
- /* harmony export */ });
523
- /* unused harmony export ActivitySequenceJump */
524
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7750);
525
- /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
526
- /* harmony import */ var _JumpInfo_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7220);
527
- /* harmony import */ var _ConditionalJumpInfo_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1078);
528
- /* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1253);
529
- /**
530
- * File : bags/ActivitySequenceJump.js
531
- * Created : 05/04/2015
532
- * By : Francesc Busquets <francesc@gmail.com>
533
- *
534
- * JClic.js
535
- * An HTML5 player of JClic activities
536
- * https://projectestac.github.io/jclic.js
537
- *
538
- * @source https://github.com/projectestac/jclic.js
539
- *
540
- * @license EUPL-1.2
541
- * @licstart
542
- * (c) 2000-2020 Catalan Educational Telematic Network (XTEC)
543
- *
544
- * Licensed under the EUPL, Version 1.1 or -as soon they will be approved by
545
- * the European Commission- subsequent versions of the EUPL (the "Licence");
546
- * You may not use this work except in compliance with the Licence.
547
- *
548
- * You may obtain a copy of the Licence at:
549
- * https://joinup.ec.europa.eu/software/page/eupl
550
- *
551
- * Unless required by applicable law or agreed to in writing, software
552
- * distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
553
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
554
- * Licence for the specific language governing permissions and limitations
555
- * under the Licence.
556
- * @licend
557
- * @module
558
- */
559
-
560
-
561
-
562
-
563
-
564
-
565
- /**
566
- * This is a special case of {@link module:bags/JumpInfo.JumpInfo JumpInfo}, used only in {@link module:bags/ActivitySequenceElement.ActivitySequenceElement ActivitySequenceElement} objects.
567
- * Sequence elements can contain up to two ActivitySequenceJump objects: one to be processed
568
- * when the user clicks on the "next" button (or when the activity finishes, if in automatic mode),
569
- * and the other used with the "prev" button. ActivitySequenceJump objects define a default jump
570
- * or action to be performed, but can also have up to two {@link module:bags/ConditionalJumpInfo.ConditionalJumpInfo ConditionalJumpInfo} objects. These
571
- * define alternative jumps that are performed only when score or time are below or over a specific
572
- * threshold.
573
- * @extends module:bags/JumpInfo.JumpInfo
574
- */
575
- class ActivitySequenceJump extends _JumpInfo_js__WEBPACK_IMPORTED_MODULE_1__["default"] {
576
- /**
577
- * ActivitySequenceJump constructor
578
- * @param {string} action - Must be one of the described actions.
579
- * @param {number|string} [sq] - Can be the tag of the sequence element to jump to, or its
580
- * cardinal number in the list.
581
- */
582
- constructor(action, sq) {
583
- super(action, sq);
584
- }
585
-
586
- /**
587
- * Loads the object settings from a specific JQuery XML element.
588
- * @param {external:jQuery} $xml - The XML element to parse
589
- */
590
- setProperties($xml) {
591
- super.setProperties($xml);
592
-
593
- // Read conditional jumps
594
- $xml.children('jump').each((_n, child) => {
595
- const condJmp = new _ConditionalJumpInfo_js__WEBPACK_IMPORTED_MODULE_2__["default"]().setProperties(jquery__WEBPACK_IMPORTED_MODULE_0___default()(child));
596
- if (condJmp.id === 'upper')
597
- this.upperJump = condJmp;
598
- else if (condJmp.id === 'lower')
599
- this.lowerJump = condJmp;
600
- });
601
- return this;
602
- }
603
-
604
- /**
605
- * Gets a object with the basic attributes needed to rebuild this instance excluding functions,
606
- * parent references, constants and also attributes retaining the default value.
607
- * The resulting object is commonly usued to serialize elements in JSON format.
608
- * @returns {object} - The resulting object, with minimal attrributes
609
- */
610
- getAttributes() {
611
- return Object.assign(super.getAttributes(), (0,_Utils_js__WEBPACK_IMPORTED_MODULE_3__/* .getAttr */ .iu)(this, ['upperJump', 'lowerJump']));
612
- }
613
-
614
- /**
615
- * Loads the jump settings from a data object
616
- * @param {object} data - The data object to parse
617
- */
618
- setAttributes(data) {
619
- super.setAttributes(data);
620
-
621
- ['upperJump', 'lowerJump'].forEach(cj => {
622
- if (data[cj])
623
- this[cj] = new _ConditionalJumpInfo_js__WEBPACK_IMPORTED_MODULE_2__["default"]().setAttributes(data[cj]);
624
- });
625
-
626
- return this;
627
- }
628
-
629
-
630
- /**
631
- * Resolves what {@link module:bags/JumpInfo.JumpInfo JumpInfo} must be taken, based on a done time and average rating obtained
632
- * in activities.
633
- * @param {number} rating - Average rating obtained by the user in the activities done during the
634
- * last sequence stretch.
635
- * @param {number} time - Total time spend doing the activities.
636
- * @returns {module:bags/JumpInfo.JumpInfo}
637
- */
638
- resolveJump(rating, time) {
639
- let result = this;
640
- if (rating >= 0 && time >= 0) {
641
- if (this.upperJump !== null &&
642
- rating > this.upperJump.threshold &&
643
- (this.upperJump.time <= 0 || time < this.upperJump.time)) {
644
- result = this.upperJump;
645
- } else if (this.lowerJump !== null &&
646
- (rating < this.lowerJump.threshold ||
647
- this.lowerJump.time > 0 && time > this.lowerJump.time)) {
648
- result = this.lowerJump;
649
- }
650
- }
651
- return result;
652
- }
653
- }
654
-
655
- Object.assign(ActivitySequenceJump.prototype, {
656
- /**
657
- * Optional jump to be performed when the results (score and time) are above a specific threshold.
658
- * @name module:bags/ActivitySequenceJump.ActivitySequenceJump#upperJump
659
- * @type {module:bags/ConditionalJumpInfo.ConditionalJumpInfo} */
660
- upperJump: null,
661
- /**
662
- * Optional jump to be performed when the results (score or time) are below a specific threshold.
663
- * @name module:bags/ActivitySequenceJump.ActivitySequenceJump#lowerJump
664
- * @type {module:bags/ConditionalJumpInfo.ConditionalJumpInfo} */
665
- lowerJump: null,
666
- });
667
-
668
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ActivitySequenceJump);
669
-
670
-
671
- /***/ }),
672
-
673
- /***/ 1078:
674
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
675
-
676
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
677
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
678
- /* harmony export */ });
679
- /* unused harmony export ConditionalJumpInfo */
680
- /* harmony import */ var _JumpInfo_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7220);
681
- /* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1253);
682
- /**
683
- * File : bags/ConditionalJumpInfo.js
684
- * Created : 05/04/2015
685
- * By : Francesc Busquets <francesc@gmail.com>
686
- *
687
- * JClic.js
688
- * An HTML5 player of JClic activities
689
- * https://projectestac.github.io/jclic.js
690
- *
691
- * @source https://github.com/projectestac/jclic.js
692
- *
693
- * @license EUPL-1.2
694
- * @licstart
695
- * (c) 2000-2020 Catalan Educational Telematic Network (XTEC)
696
- *
697
- * Licensed under the EUPL, Version 1.1 or -as soon they will be approved by
698
- * the European Commission- subsequent versions of the EUPL (the "Licence");
699
- * You may not use this work except in compliance with the Licence.
700
- *
701
- * You may obtain a copy of the Licence at:
702
- * https://joinup.ec.europa.eu/software/page/eupl
703
- *
704
- * Unless required by applicable law or agreed to in writing, software
705
- * distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
706
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
707
- * Licence for the specific language governing permissions and limitations
708
- * under the Licence.
709
- * @licend
710
- * @module
711
- */
712
-
713
-
714
-
715
-
716
- /**
717
- * This special case of {@link module:bags/JumpInfo.JumpInfo JumpInfo} is used in {@link module:bags/ActivitySequenceJump.ActivitySequenceJump ActivitySequenceJump} objects to decide
718
- * the type of jump or action to be performed, based on the results obtained by the user when
719
- * playing previous JClic activities.
720
- *
721
- * In addition to the standard {@link module:bags/JumpInfo.JumpInfo JumpInfo} fields and methods, this class has two public
722
- * members where score and time thresholds are stored.
723
- *
724
- * The exact meaning of this members will depend on the type of `ConditionalJumpInfo` in the
725
- * {@link module:bags/ActivitySequenceJump.ActivitySequenceJump ActivitySequenceJump} (it can be `upperJump` or `lowerJump`).
726
- * @extends module:bags/JumpInfo.JumpInfo
727
- */
728
- class ConditionalJumpInfo extends _JumpInfo_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
729
- /**
730
- * ConditionalJumpInfo constructor
731
- * @param {string} action - Must be one of the described actions.
732
- * @param {number|string} [sq] - Can be the tag of the sequence element to jump to, or its
733
- * cardinal number in the list.
734
- * @param {number} [threshold] - Threshold above or below which the action will be triggered,
735
- * depending on the type of JumpInfo.
736
- * @param {number} [time] - Delay to be applied in automatic jumps.
737
- */
738
- constructor(action, sq, threshold, time) {
739
- super(action, sq);
740
- this.threshold = typeof threshold === 'number' ? threshold : -1;
741
- this.time = typeof threshold === 'number' ? time : -1;
742
- }
743
-
744
- /**
745
- * Loads this object settings from a specific JQuery XML element
746
- * @param {external:jQuery} $xml - The XML element to parse
747
- */
748
- setProperties($xml) {
749
- super.setProperties($xml);
750
- if ($xml.attr('threshold') !== undefined)
751
- this.threshold = $xml.attr('threshold');
752
- if ($xml.attr('time') !== undefined)
753
- this.time = $xml.attr('time');
754
- return this;
755
- }
756
-
757
- /**
758
- * Gets a object with the basic attributes needed to rebuild this instance excluding functions,
759
- * parent references, constants and also attributes retaining the default value.
760
- * The resulting object is commonly usued to serialize elements in JSON format.
761
- * @returns {object} - The resulting object, with minimal attrributes
762
- */
763
- getAttributes() {
764
- return Object.assign(super.getAttributes(), (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__/* .getAttr */ .iu)(this, ['threshold', 'time']));
765
- }
766
-
767
- /**
768
- * Loads this conditional jump settings from a data object
769
- * @param {object} data - The data object to parse
770
- */
771
- setAttributes(data) {
772
- super.setAttributes(data);
773
- ['threshold', 'time'].forEach(t => {
774
- if (!(0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__/* .isEmpty */ .Im)(data[t]))
775
- this[t] = data[t];
776
- });
777
- return this;
778
- }
779
- }
780
-
781
- Object.assign(ConditionalJumpInfo.prototype, {
782
- /**
783
- * Threshold above or below which the action will be triggered, depending on the type of JumpInfo.
784
- * @name module:bags/ConditionalJumpInfo.ConditionalJumpInfo#threshold
785
- * @type {number} */
786
- threshold: -1,
787
- /**
788
- * Delay to be applied in automatic jumps.
789
- * @name module:bags/ConditionalJumpInfo.ConditionalJumpInfo#time
790
- * @type {number} */
791
- time: -1,
792
- });
793
-
794
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ConditionalJumpInfo);
795
-
796
-
797
- /***/ }),
798
-
799
- /***/ 7220:
800
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
801
-
802
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
803
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
804
- /* harmony export */ });
805
- /* unused harmony export JumpInfo */
806
- /* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1253);
807
- /**
808
- * File : bags/JumpInfo.js
809
- * Created : 05/04/2015
810
- * By : Francesc Busquets <francesc@gmail.com>
811
- *
812
- * JClic.js
813
- * An HTML5 player of JClic activities
814
- * https://projectestac.github.io/jclic.js
815
- *
816
- * @source https://github.com/projectestac/jclic.js
817
- *
818
- * @license EUPL-1.2
819
- * @licstart
820
- * (c) 2000-2020 Catalan Educational Telematic Network (XTEC)
821
- *
822
- * Licensed under the EUPL, Version 1.1 or -as soon they will be approved by
823
- * the European Commission- subsequent versions of the EUPL (the "Licence");
824
- * You may not use this work except in compliance with the Licence.
825
- *
826
- * You may obtain a copy of the Licence at:
827
- * https://joinup.ec.europa.eu/software/page/eupl
828
- *
829
- * Unless required by applicable law or agreed to in writing, software
830
- * distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
831
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
832
- * Licence for the specific language governing permissions and limitations
833
- * under the Licence.
834
- * @licend
835
- * @module
836
- */
837
-
838
-
839
-
840
- /**
841
- * This class contains information about what things JClic sequence manager has to do in certain
842
- * circumstances, such as:
843
- * - an activity finishes
844
- * - the user clicks on the "next" or "prev" buttons
845
- * - the user clicks or a cell with special "active content"
846
- *
847
- * Different kinds of actions are possible for each of these events:
848
- * - RETURN: to go back to a previous point in the sequence.
849
- * - EXIT: to exit the program (thus navigating to another URL)
850
- * - STOP: to do nothing.
851
- * - JUMP: to jump to a specific point in the sequence of activities, or to another JClic project.
852
- * @see {@link module:bags/ActivitySequenceJump.ActivitySequenceJump ActivitySequenceJump}
853
- * @see {@link module:bags/ConditionalJumpInfo.ConditionalJumpInfo ConditionalJumpInfo}
854
- */
855
- class JumpInfo {
856
- /**
857
- * JumpInfo constructor
858
- * @param {string} action - Must be one of the described actions.
859
- * @param {number|string} [sq] - Can be the tag of the sequence element to jump to, or its
860
- * cardinal number in the list.
861
- */
862
- constructor(action, sq) {
863
- this.action = action;
864
- switch (typeof sq) {
865
- case 'string':
866
- this.sequence = sq;
867
- break;
868
- case 'number':
869
- this.actNum = sq;
870
- break;
871
- }
872
- }
873
-
874
- /**
875
- * Loads the object settings from a specific JQuery XML element
876
- * @param {external:jQuery} $xml - The XML element to parse
877
- */
878
- setProperties($xml) {
879
- this.id = $xml.attr('id');
880
- this.action = $xml.attr('action') || 'JUMP';
881
- if ($xml.attr('tag'))
882
- this.sequence = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__/* .nSlash */ .c4)($xml.attr('tag'));
883
- if ($xml.attr('project'))
884
- this.projectPath = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__/* .nSlash */ .c4)($xml.attr('project'));
885
- return this;
886
- }
887
-
888
- /**
889
- * Gets a object with the basic attributes needed to rebuild this instance excluding functions,
890
- * parent references, constants and also attributes retaining the default value.
891
- * The resulting object is commonly usued to serialize elements in JSON format.
892
- * @returns {object} - The resulting object, with minimal attrributes
893
- */
894
- getAttributes() {
895
- return (0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__/* .getAttr */ .iu)(this, ['id', 'action', 'actNum', 'sequence', 'projectPath']);
896
- }
897
-
898
- /**
899
- * Loads the object settings from a data object
900
- * @param {object} data - The data object to parse
901
- */
902
- setAttributes(data) {
903
- ['id', 'action', 'actNum', 'sequence', 'projectPath'].forEach(t => {
904
- if (!(0,_Utils_js__WEBPACK_IMPORTED_MODULE_0__/* .isEmpty */ .Im)(data[t]))
905
- this[t] = data[t];
906
- });
907
- return this;
908
- }
909
- }
910
-
911
- Object.assign(JumpInfo.prototype, {
912
- /**
913
- * The JumpInfo identifier
914
- * - For regular jumps: 'forward', 'back'
915
- * - For conditional jumps: 'upper', 'lower'
916
- * @name module:bags/JumpInfo.JumpInfo#id
917
- * @type {string} */
918
- id: null,
919
- /**
920
- * The current action.
921
- * Possible values are: `JUMP`, `STOP`, `RETURN` and `EXIT`.
922
- * @name module:bags/JumpInfo.JumpInfo#action
923
- * @type {string} */
924
- action: null,
925
- /**
926
- * Activity number in the sequence list
927
- * @name module:bags/JumpInfo.JumpInfo#actNum
928
- * @type {number} */
929
- actNum: -1,
930
- /**
931
- * Current sequence tag
932
- * @name module:bags/JumpInfo.JumpInfo#sequence
933
- * @type {string} */
934
- sequence: null,
935
- /**
936
- * Path of another JClic project to jump to
937
- * @name module:bags/JumpInfo.JumpInfo#projectPath
938
- * @type {string} */
939
- projectPath: null,
940
- });
941
-
942
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JumpInfo);
943
-
944
-
945
- /***/ })
946
-
947
- };
948
- ;
949
- //# sourceMappingURL=2316.jclic-node.js.map