@elice/material-survey 1.230328.0 → 1.230418.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +409 -0
  2. package/cjs/components/material-survey/MaterialSurvey.i18n.js +2 -2
  3. package/cjs/components/material-survey/MaterialSurvey.js +56 -51
  4. package/cjs/components/material-survey/MaterialSurveyInfo.js +6 -5
  5. package/cjs/components/material-survey/MaterialSurveySelectMultiple.js +117 -91
  6. package/cjs/components/material-survey/MaterialSurveySelectOne.js +110 -81
  7. package/cjs/components/material-survey/MaterialSurveyShimmer.js +13 -12
  8. package/cjs/components/material-survey/MaterialSurveyText.js +111 -80
  9. package/cjs/components/material-survey/SurveyResultBadge.js +9 -8
  10. package/cjs/components/material-survey/SurveySubmitStatusText.js +6 -8
  11. package/cjs/components/material-survey/context/MaterialSurveyContext.js +102 -79
  12. package/cjs/components/material-survey-edit/MaterialSurveyEdit.js +45 -38
  13. package/cjs/components/material-survey-edit/MaterialSurveyEditContent.js +79 -83
  14. package/cjs/components/material-survey-edit/MaterialSurveyEditOptionSelect.js +71 -76
  15. package/cjs/components/material-survey-edit/context.js +4 -2
  16. package/cjs/components/material-survey-edit/locales.js +2 -2
  17. package/cjs/components/material-survey-edit/utils/editValue.js +17 -16
  18. package/cjs/components/shared/StyledMarkdown.js +4 -2
  19. package/cjs/components/shared/SurveyContentBox.js +48 -54
  20. package/cjs/components/shared/question-checkbox/QuestionCheckbox.js +7 -9
  21. package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.js +15 -18
  22. package/cjs/components/shared/question-checkbox/QuestionCheckboxOption.js +48 -103
  23. package/cjs/components/shared/question-radio/QuestionRadio.js +7 -9
  24. package/cjs/components/shared/question-radio/QuestionRadioContext.js +15 -18
  25. package/cjs/components/shared/question-radio/QuestionRadioOption.js +41 -87
  26. package/cjs/helpers/index.js +0 -3
  27. package/cjs/index.js +7 -7
  28. package/es/_virtual/_rollupPluginBabelHelpers.js +394 -0
  29. package/es/components/material-survey/MaterialSurvey.i18n.js +2 -2
  30. package/es/components/material-survey/MaterialSurvey.js +51 -46
  31. package/es/components/material-survey/MaterialSurveyInfo.js +3 -4
  32. package/es/components/material-survey/MaterialSurveySelectMultiple.js +109 -85
  33. package/es/components/material-survey/MaterialSurveySelectOne.js +102 -75
  34. package/es/components/material-survey/MaterialSurveyShimmer.js +10 -11
  35. package/es/components/material-survey/MaterialSurveyText.js +106 -77
  36. package/es/components/material-survey/SurveyResultBadge.js +6 -7
  37. package/es/components/material-survey/SurveySubmitStatusText.js +3 -7
  38. package/es/components/material-survey/context/MaterialSurveyContext.js +103 -80
  39. package/es/components/material-survey-edit/MaterialSurveyEdit.js +41 -36
  40. package/es/components/material-survey-edit/MaterialSurveyEditContent.js +75 -81
  41. package/es/components/material-survey-edit/MaterialSurveyEditOptionSelect.js +68 -75
  42. package/es/components/material-survey-edit/context.js +4 -2
  43. package/es/components/material-survey-edit/locales.js +2 -2
  44. package/es/components/material-survey-edit/utils/editValue.js +17 -16
  45. package/es/components/shared/StyledMarkdown.js +1 -1
  46. package/es/components/shared/SurveyContentBox.js +48 -54
  47. package/es/components/shared/question-checkbox/QuestionCheckbox.js +4 -8
  48. package/es/components/shared/question-checkbox/QuestionCheckboxContext.js +15 -18
  49. package/es/components/shared/question-checkbox/QuestionCheckboxOption.js +45 -102
  50. package/es/components/shared/question-radio/QuestionRadio.js +4 -8
  51. package/es/components/shared/question-radio/QuestionRadioContext.js +15 -18
  52. package/es/components/shared/question-radio/QuestionRadioOption.js +38 -86
  53. package/es/helpers/index.js +0 -3
  54. package/package.json +8 -8
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var React = require('react');
4
6
  var designTokens = require('@elice/design-tokens');
5
7
  var styled = require('styled-components');
@@ -10,164 +12,116 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
13
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
14
 
13
- const StyledQuestionRadioOption = styled__default["default"].div.withConfig({
15
+ var StyledQuestionRadioOption = styled__default["default"].div.withConfig({
14
16
  componentId: "sc-zgbv8k-0"
15
- })(["display:flex;align-items:center;padding:1.125rem;border-radius:8px;background-color:", ";&:not(:last-of-type){margin-bottom:1rem;}&:hover,& *:hover{cursor:", ";}", ""], ({
16
- checked,
17
- status
18
- }) => {
17
+ })(["display:flex;align-items:center;padding:1.125rem;border-radius:8px;background-color:", ";&:not(:last-of-type){margin-bottom:1rem;}&:hover,& *:hover{cursor:", ";}", ""], function (_ref) {
18
+ var checked = _ref.checked,
19
+ status = _ref.status;
19
20
  if (checked) {
20
21
  return designTokens.base.color.primary1;
21
22
  }
22
-
23
23
  switch (status) {
24
24
  case 'correct':
25
25
  return designTokens.base.color.green1;
26
-
27
26
  case 'wrong':
28
27
  return designTokens.base.color.red1;
29
-
30
28
  default:
31
29
  return designTokens.base.color.navy5;
32
30
  }
33
- }, ({
34
- disabled
35
- }) => disabled ? 'not-allowed' : 'pointer', ({
36
- isAnswer
37
- }) => isAnswer ? `border: 3px solid ${designTokens.base.color.green5}` : '');
38
- const StyledQuestionRadioInput = styled__default["default"].input.withConfig({
31
+ }, function (_ref2) {
32
+ var disabled = _ref2.disabled;
33
+ return disabled ? 'not-allowed' : 'pointer';
34
+ }, function (_ref3) {
35
+ var isAnswer = _ref3.isAnswer;
36
+ return isAnswer ? "border: 3px solid ".concat(designTokens.base.color.green5) : '';
37
+ });
38
+ var StyledQuestionRadioInput = styled__default["default"].input.withConfig({
39
39
  componentId: "sc-zgbv8k-1"
40
- })(["flex:none;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;border-radius:50%;width:1.25rem;height:1.25rem;margin-right:0.875rem;border:2px solid ", ";", ""], ({
41
- checked,
42
- status
43
- }) => {
40
+ })(["flex:none;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;border-radius:50%;width:1.25rem;height:1.25rem;margin-right:0.875rem;border:2px solid ", ";", ""], function (_ref4) {
41
+ var checked = _ref4.checked,
42
+ status = _ref4.status;
44
43
  if (checked) {
45
44
  return designTokens.base.color.primary6;
46
45
  }
47
-
48
46
  switch (status) {
49
47
  case 'correct':
50
48
  return designTokens.base.color.green9;
51
-
52
49
  case 'wrong':
53
50
  return designTokens.base.color.red9;
54
-
55
51
  default:
56
52
  return designTokens.base.color.gray3;
57
53
  }
58
- }, ({
59
- status,
60
- checked
61
- }) => {
54
+ }, function (_ref5) {
55
+ var status = _ref5.status,
56
+ checked = _ref5.checked;
62
57
  if (checked) {
63
- return `
64
- &:after {
65
- content: '';
66
- position: absolute;
67
- top: 50%;
68
- left: 50%;
69
- transform: translate(-50%, -50%);
70
- width: 70%;
71
- height: 70%;
72
- border-radius: 50%;
73
- background-color: ${designTokens.base.color.primary6};
74
- }
75
- `;
58
+ return "\n &:after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 70%;\n height: 70%;\n border-radius: 50%;\n background-color: ".concat(designTokens.base.color.primary6, ";\n }\n ");
76
59
  }
77
-
78
60
  if (status) {
79
- let bgColor;
80
-
61
+ var bgColor;
81
62
  switch (status) {
82
63
  case 'correct':
83
64
  bgColor = designTokens.base.color.green9;
84
65
  break;
85
-
86
66
  case 'wrong':
87
67
  bgColor = designTokens.base.color.red9;
88
68
  break;
89
-
90
69
  default:
91
70
  bgColor = designTokens.base.color.gray3;
92
71
  break;
93
72
  }
94
-
95
- return `
96
- &:after {
97
- content: '';
98
- position: absolute;
99
- top: 50%;
100
- left: 50%;
101
- transform: translate(-50%, -50%);
102
- width: 70%;
103
- height: 70%;
104
- border-radius: 50%;
105
- background-color: ${bgColor};
106
- }
107
- `;
73
+ return "\n &:after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 70%;\n height: 70%;\n border-radius: 50%;\n background-color: ".concat(bgColor, ";\n }\n ");
108
74
  }
109
75
  });
110
- const StyledLabel = styled__default["default"].label.withConfig({
76
+ var StyledLabel = styled__default["default"].label.withConfig({
111
77
  componentId: "sc-zgbv8k-2"
112
- })(["word-break:break-all;margin-right:0.875rem;font-size:", ";color:", ";& p{color:", ";}"], designTokens.base.size.body3, ({
113
- checked,
114
- status
115
- }) => {
78
+ })(["word-break:break-all;margin-right:0.875rem;font-size:", ";color:", ";& p{color:", ";}"], designTokens.base.size.body3, function (_ref6) {
79
+ var checked = _ref6.checked,
80
+ status = _ref6.status;
116
81
  if (checked) {
117
82
  return designTokens.base.color.primary6;
118
83
  }
119
-
120
84
  switch (status) {
121
85
  case 'correct':
122
86
  return designTokens.base.color.green9;
123
-
124
87
  case 'wrong':
125
88
  return designTokens.base.color.red9;
126
-
127
89
  default:
128
90
  return designTokens.base.color.navy0;
129
91
  }
130
- }, ({
131
- checked,
132
- status
133
- }) => {
92
+ }, function (_ref7) {
93
+ var checked = _ref7.checked,
94
+ status = _ref7.status;
134
95
  if (checked) {
135
96
  return designTokens.base.color.primary6;
136
97
  }
137
-
138
98
  switch (status) {
139
99
  case 'correct':
140
100
  return designTokens.base.color.green9;
141
-
142
101
  case 'wrong':
143
102
  return designTokens.base.color.red9;
144
-
145
103
  default:
146
104
  return designTokens.base.color.navy0;
147
105
  }
148
106
  });
149
- const QuestionRadioOption = React__default["default"].memo(({
150
- value,
151
- status,
152
- isAnswer,
153
- children
154
- }) => {
155
- const {
156
- selectedValue,
157
- disabled,
158
- onSelect
159
- } = QuestionRadioContext.useQuestionRadioContext();
107
+ var QuestionRadioOption = React__default["default"].memo(function (_ref8) {
108
+ var value = _ref8.value,
109
+ status = _ref8.status,
110
+ isAnswer = _ref8.isAnswer,
111
+ children = _ref8.children;
112
+ var _useQuestionRadioCont = QuestionRadioContext.useQuestionRadioContext(),
113
+ selectedValue = _useQuestionRadioCont.selectedValue,
114
+ disabled = _useQuestionRadioCont.disabled,
115
+ onSelect = _useQuestionRadioCont.onSelect;
160
116
  return React__default["default"].createElement(StyledQuestionRadioOption, {
161
117
  isAnswer: isAnswer,
162
118
  disabled: disabled,
163
119
  checked: selectedValue === value,
164
- onClick: e => {
120
+ onClick: function onClick(e) {
165
121
  e.preventDefault();
166
-
167
122
  if (disabled) {
168
123
  return;
169
124
  }
170
-
171
125
  onSelect(value);
172
126
  },
173
127
  status: status
@@ -184,4 +138,4 @@ const QuestionRadioOption = React__default["default"].memo(({
184
138
  }, children));
185
139
  });
186
140
 
187
- module.exports = QuestionRadioOption;
141
+ exports["default"] = QuestionRadioOption;
@@ -5,17 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var types = require('@elice/types');
6
6
 
7
7
  exports.SurveyResultStatus = void 0;
8
-
9
8
  (function (SurveyResultStatus) {
10
9
  SurveyResultStatus[SurveyResultStatus["Submitted"] = 0] = "Submitted";
11
10
  SurveyResultStatus[SurveyResultStatus["NotSubmitted"] = 1] = "NotSubmitted";
12
11
  })(exports.SurveyResultStatus || (exports.SurveyResultStatus = {}));
13
-
14
12
  function getSurveyResultStatus(materialSurveyResponse) {
15
13
  if (materialSurveyResponse) {
16
14
  return exports.SurveyResultStatus.Submitted;
17
15
  }
18
-
19
16
  return exports.SurveyResultStatus.NotSubmitted;
20
17
  }
21
18
  function checkUserLectureTestEnded(lecture) {
package/cjs/index.js CHANGED
@@ -12,10 +12,10 @@ var QuestionCheckboxOption = require('./components/shared/question-checkbox/Ques
12
12
 
13
13
 
14
14
 
15
- exports.MaterialSurvey = MaterialSurvey;
16
- exports.MaterialSurveyInfo = MaterialSurveyInfo;
17
- exports.MaterialSurveyEdit = MaterialSurveyEdit;
18
- exports.QuestionRadio = QuestionRadio;
19
- exports.QuestionRadioOption = QuestionRadioOption;
20
- exports.QuestionCheckbox = QuestionCheckbox;
21
- exports.QuestionCheckboxOption = QuestionCheckboxOption;
15
+ exports.MaterialSurvey = MaterialSurvey["default"];
16
+ exports.MaterialSurveyInfo = MaterialSurveyInfo["default"];
17
+ exports.MaterialSurveyEdit = MaterialSurveyEdit["default"];
18
+ exports.QuestionRadio = QuestionRadio["default"];
19
+ exports.QuestionRadioOption = QuestionRadioOption["default"];
20
+ exports.QuestionCheckbox = QuestionCheckbox["default"];
21
+ exports.QuestionCheckboxOption = QuestionCheckboxOption["default"];
@@ -0,0 +1,394 @@
1
+ function _iterableToArrayLimit(arr, i) {
2
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
3
+ if (null != _i) {
4
+ var _s,
5
+ _e,
6
+ _x,
7
+ _r,
8
+ _arr = [],
9
+ _n = !0,
10
+ _d = !1;
11
+ try {
12
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
+ if (Object(_i) !== _i) return;
14
+ _n = !1;
15
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
16
+ } catch (err) {
17
+ _d = !0, _e = err;
18
+ } finally {
19
+ try {
20
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
21
+ } finally {
22
+ if (_d) throw _e;
23
+ }
24
+ }
25
+ return _arr;
26
+ }
27
+ }
28
+ function _regeneratorRuntime() {
29
+ _regeneratorRuntime = function () {
30
+ return exports;
31
+ };
32
+ var exports = {},
33
+ Op = Object.prototype,
34
+ hasOwn = Op.hasOwnProperty,
35
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
36
+ obj[key] = desc.value;
37
+ },
38
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
39
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
40
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
41
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
42
+ function define(obj, key, value) {
43
+ return Object.defineProperty(obj, key, {
44
+ value: value,
45
+ enumerable: !0,
46
+ configurable: !0,
47
+ writable: !0
48
+ }), obj[key];
49
+ }
50
+ try {
51
+ define({}, "");
52
+ } catch (err) {
53
+ define = function (obj, key, value) {
54
+ return obj[key] = value;
55
+ };
56
+ }
57
+ function wrap(innerFn, outerFn, self, tryLocsList) {
58
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
59
+ generator = Object.create(protoGenerator.prototype),
60
+ context = new Context(tryLocsList || []);
61
+ return defineProperty(generator, "_invoke", {
62
+ value: makeInvokeMethod(innerFn, self, context)
63
+ }), generator;
64
+ }
65
+ function tryCatch(fn, obj, arg) {
66
+ try {
67
+ return {
68
+ type: "normal",
69
+ arg: fn.call(obj, arg)
70
+ };
71
+ } catch (err) {
72
+ return {
73
+ type: "throw",
74
+ arg: err
75
+ };
76
+ }
77
+ }
78
+ exports.wrap = wrap;
79
+ var ContinueSentinel = {};
80
+ function Generator() {}
81
+ function GeneratorFunction() {}
82
+ function GeneratorFunctionPrototype() {}
83
+ var IteratorPrototype = {};
84
+ define(IteratorPrototype, iteratorSymbol, function () {
85
+ return this;
86
+ });
87
+ var getProto = Object.getPrototypeOf,
88
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
89
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
90
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
91
+ function defineIteratorMethods(prototype) {
92
+ ["next", "throw", "return"].forEach(function (method) {
93
+ define(prototype, method, function (arg) {
94
+ return this._invoke(method, arg);
95
+ });
96
+ });
97
+ }
98
+ function AsyncIterator(generator, PromiseImpl) {
99
+ function invoke(method, arg, resolve, reject) {
100
+ var record = tryCatch(generator[method], generator, arg);
101
+ if ("throw" !== record.type) {
102
+ var result = record.arg,
103
+ value = result.value;
104
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
105
+ invoke("next", value, resolve, reject);
106
+ }, function (err) {
107
+ invoke("throw", err, resolve, reject);
108
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
109
+ result.value = unwrapped, resolve(result);
110
+ }, function (error) {
111
+ return invoke("throw", error, resolve, reject);
112
+ });
113
+ }
114
+ reject(record.arg);
115
+ }
116
+ var previousPromise;
117
+ defineProperty(this, "_invoke", {
118
+ value: function (method, arg) {
119
+ function callInvokeWithMethodAndArg() {
120
+ return new PromiseImpl(function (resolve, reject) {
121
+ invoke(method, arg, resolve, reject);
122
+ });
123
+ }
124
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
125
+ }
126
+ });
127
+ }
128
+ function makeInvokeMethod(innerFn, self, context) {
129
+ var state = "suspendedStart";
130
+ return function (method, arg) {
131
+ if ("executing" === state) throw new Error("Generator is already running");
132
+ if ("completed" === state) {
133
+ if ("throw" === method) throw arg;
134
+ return doneResult();
135
+ }
136
+ for (context.method = method, context.arg = arg;;) {
137
+ var delegate = context.delegate;
138
+ if (delegate) {
139
+ var delegateResult = maybeInvokeDelegate(delegate, context);
140
+ if (delegateResult) {
141
+ if (delegateResult === ContinueSentinel) continue;
142
+ return delegateResult;
143
+ }
144
+ }
145
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
146
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
147
+ context.dispatchException(context.arg);
148
+ } else "return" === context.method && context.abrupt("return", context.arg);
149
+ state = "executing";
150
+ var record = tryCatch(innerFn, self, context);
151
+ if ("normal" === record.type) {
152
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
153
+ return {
154
+ value: record.arg,
155
+ done: context.done
156
+ };
157
+ }
158
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
159
+ }
160
+ };
161
+ }
162
+ function maybeInvokeDelegate(delegate, context) {
163
+ var methodName = context.method,
164
+ method = delegate.iterator[methodName];
165
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
166
+ var record = tryCatch(method, delegate.iterator, context.arg);
167
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
168
+ var info = record.arg;
169
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
170
+ }
171
+ function pushTryEntry(locs) {
172
+ var entry = {
173
+ tryLoc: locs[0]
174
+ };
175
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
176
+ }
177
+ function resetTryEntry(entry) {
178
+ var record = entry.completion || {};
179
+ record.type = "normal", delete record.arg, entry.completion = record;
180
+ }
181
+ function Context(tryLocsList) {
182
+ this.tryEntries = [{
183
+ tryLoc: "root"
184
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
185
+ }
186
+ function values(iterable) {
187
+ if (iterable) {
188
+ var iteratorMethod = iterable[iteratorSymbol];
189
+ if (iteratorMethod) return iteratorMethod.call(iterable);
190
+ if ("function" == typeof iterable.next) return iterable;
191
+ if (!isNaN(iterable.length)) {
192
+ var i = -1,
193
+ next = function next() {
194
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
195
+ return next.value = undefined, next.done = !0, next;
196
+ };
197
+ return next.next = next;
198
+ }
199
+ }
200
+ return {
201
+ next: doneResult
202
+ };
203
+ }
204
+ function doneResult() {
205
+ return {
206
+ value: undefined,
207
+ done: !0
208
+ };
209
+ }
210
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
211
+ value: GeneratorFunctionPrototype,
212
+ configurable: !0
213
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
214
+ value: GeneratorFunction,
215
+ configurable: !0
216
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
217
+ var ctor = "function" == typeof genFun && genFun.constructor;
218
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
219
+ }, exports.mark = function (genFun) {
220
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
221
+ }, exports.awrap = function (arg) {
222
+ return {
223
+ __await: arg
224
+ };
225
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
226
+ return this;
227
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
228
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
229
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
230
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
231
+ return result.done ? result.value : iter.next();
232
+ });
233
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
234
+ return this;
235
+ }), define(Gp, "toString", function () {
236
+ return "[object Generator]";
237
+ }), exports.keys = function (val) {
238
+ var object = Object(val),
239
+ keys = [];
240
+ for (var key in object) keys.push(key);
241
+ return keys.reverse(), function next() {
242
+ for (; keys.length;) {
243
+ var key = keys.pop();
244
+ if (key in object) return next.value = key, next.done = !1, next;
245
+ }
246
+ return next.done = !0, next;
247
+ };
248
+ }, exports.values = values, Context.prototype = {
249
+ constructor: Context,
250
+ reset: function (skipTempReset) {
251
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
252
+ },
253
+ stop: function () {
254
+ this.done = !0;
255
+ var rootRecord = this.tryEntries[0].completion;
256
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
257
+ return this.rval;
258
+ },
259
+ dispatchException: function (exception) {
260
+ if (this.done) throw exception;
261
+ var context = this;
262
+ function handle(loc, caught) {
263
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
264
+ }
265
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
266
+ var entry = this.tryEntries[i],
267
+ record = entry.completion;
268
+ if ("root" === entry.tryLoc) return handle("end");
269
+ if (entry.tryLoc <= this.prev) {
270
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
271
+ hasFinally = hasOwn.call(entry, "finallyLoc");
272
+ if (hasCatch && hasFinally) {
273
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
274
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
275
+ } else if (hasCatch) {
276
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
277
+ } else {
278
+ if (!hasFinally) throw new Error("try statement without catch or finally");
279
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
280
+ }
281
+ }
282
+ }
283
+ },
284
+ abrupt: function (type, arg) {
285
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
286
+ var entry = this.tryEntries[i];
287
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
288
+ var finallyEntry = entry;
289
+ break;
290
+ }
291
+ }
292
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
293
+ var record = finallyEntry ? finallyEntry.completion : {};
294
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
295
+ },
296
+ complete: function (record, afterLoc) {
297
+ if ("throw" === record.type) throw record.arg;
298
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
299
+ },
300
+ finish: function (finallyLoc) {
301
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
302
+ var entry = this.tryEntries[i];
303
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
304
+ }
305
+ },
306
+ catch: function (tryLoc) {
307
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
308
+ var entry = this.tryEntries[i];
309
+ if (entry.tryLoc === tryLoc) {
310
+ var record = entry.completion;
311
+ if ("throw" === record.type) {
312
+ var thrown = record.arg;
313
+ resetTryEntry(entry);
314
+ }
315
+ return thrown;
316
+ }
317
+ }
318
+ throw new Error("illegal catch attempt");
319
+ },
320
+ delegateYield: function (iterable, resultName, nextLoc) {
321
+ return this.delegate = {
322
+ iterator: values(iterable),
323
+ resultName: resultName,
324
+ nextLoc: nextLoc
325
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
326
+ }
327
+ }, exports;
328
+ }
329
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
330
+ try {
331
+ var info = gen[key](arg);
332
+ var value = info.value;
333
+ } catch (error) {
334
+ reject(error);
335
+ return;
336
+ }
337
+ if (info.done) {
338
+ resolve(value);
339
+ } else {
340
+ Promise.resolve(value).then(_next, _throw);
341
+ }
342
+ }
343
+ function _asyncToGenerator(fn) {
344
+ return function () {
345
+ var self = this,
346
+ args = arguments;
347
+ return new Promise(function (resolve, reject) {
348
+ var gen = fn.apply(self, args);
349
+ function _next(value) {
350
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
351
+ }
352
+ function _throw(err) {
353
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
354
+ }
355
+ _next(undefined);
356
+ });
357
+ };
358
+ }
359
+ function _slicedToArray(arr, i) {
360
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
361
+ }
362
+ function _toConsumableArray(arr) {
363
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
364
+ }
365
+ function _arrayWithoutHoles(arr) {
366
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
367
+ }
368
+ function _arrayWithHoles(arr) {
369
+ if (Array.isArray(arr)) return arr;
370
+ }
371
+ function _iterableToArray(iter) {
372
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
373
+ }
374
+ function _unsupportedIterableToArray(o, minLen) {
375
+ if (!o) return;
376
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
377
+ var n = Object.prototype.toString.call(o).slice(8, -1);
378
+ if (n === "Object" && o.constructor) n = o.constructor.name;
379
+ if (n === "Map" || n === "Set") return Array.from(o);
380
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
381
+ }
382
+ function _arrayLikeToArray(arr, len) {
383
+ if (len == null || len > arr.length) len = arr.length;
384
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
385
+ return arr2;
386
+ }
387
+ function _nonIterableSpread() {
388
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
389
+ }
390
+ function _nonIterableRest() {
391
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
392
+ }
393
+
394
+ export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _arrayWithoutHoles as arrayWithoutHoles, _asyncToGenerator as asyncToGenerator, _iterableToArray as iterableToArray, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _nonIterableSpread as nonIterableSpread, _regeneratorRuntime as regeneratorRuntime, _slicedToArray as slicedToArray, _toConsumableArray as toConsumableArray, _unsupportedIterableToArray as unsupportedIterableToArray };
@@ -1,4 +1,4 @@
1
- const en = {
1
+ var en = {
2
2
  'materialSurvey.error': 'Failed to fetch survey',
3
3
  'materialSurvey.submit': 'Submit',
4
4
  'materialSurvey.submittedAnswer': 'Submitted Answer',
@@ -13,7 +13,7 @@ const en = {
13
13
  'materialSurvey.resultStatus.submitted': 'Submitted',
14
14
  'materialSurvey.text.placeholder': 'please fill the answer'
15
15
  };
16
- const ko = {
16
+ var ko = {
17
17
  'materialSurvey.error': '설문조사를 불러오는데 실패했습니다.\n잠시 후 다시 시도해주세요.',
18
18
  'materialSurvey.submit': '제출',
19
19
  'materialSurvey.submittedAnswer': '제출한 답',