@wg-npm/survey-creator 0.3.377-8.develop → 0.3.479-2.release

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.
@@ -6,183 +6,178 @@ import draggable from 'vuedraggable';
6
6
 
7
7
  var defaultLang = {
8
8
  survey_creator: {
9
- locale: "zh-CN",
9
+ locale: 'en-US',
10
10
  common: {
11
- back: "返回",
12
- save: "保存",
13
- copy: "复制",
14
- cancel: "取消",
15
- operation: "操作",
16
- delete: "删除",
11
+ back: "Back",
12
+ save: "Save",
13
+ copy: "Copy",
14
+ cancel: "Cancel",
15
+ operation: "Operation",
16
+ delete: "delete",
17
17
  languages: {
18
18
  "zh-CN": "简体中文",
19
19
  "zh-TW": "繁体中文",
20
- "en-US": "English",
20
+ "en-US": "English"
21
21
  },
22
22
  layout: {
23
- HORIZONTAL: "水平",
24
- VERTICAL: "垂直",
23
+ HORIZONTAL: "Horizontal",
24
+ VERTICAL: "Vertical"
25
25
  },
26
26
  settings: {
27
- translate: "多语言翻译",
28
- preview: "预览",
27
+ translate: "Translate",
28
+ preview: "Preview"
29
29
  },
30
30
  tips: {
31
- edit: "编辑",
32
- copy: "复制",
33
- delete: "删除",
34
- please_input_answer: "请输入回答",
31
+ edit: "Edit",
32
+ copy: "Copy",
33
+ delete: "Delete",
34
+ please_input_answer: "Please Input Answer"
35
35
  },
36
36
  tab: {
37
- question_setting: "题目设置",
38
- language: "多语言翻译",
39
- },
37
+ question_setting: "Question Setting",
38
+ language: "Language"
39
+ }
40
40
  },
41
41
  survey: {
42
- question_count: "题目数",
43
- total_score: "总配分",
44
- layout: "布局",
42
+ question_count: "Question Count",
43
+ total_score: "Total Score",
44
+ layout: "layout"
45
45
  },
46
46
  question: {
47
- no_data: "还未创建题目",
48
- create: "新增题目",
49
- max_score: "最高分值:",
50
- star_single: "此题计星",
51
- star_multi_prefix: "当选择",
52
- star_multi_suffix: "项及以上时计星",
53
- type: "题型",
47
+ no_data: "No question has been created yet",
48
+ create: "Create Title",
49
+ max_score: "Max Score:",
50
+ star_single: "Get Star",
51
+ star_multi_prefix: "Selected",
52
+ star_multi_suffix: "Items or More Get Star",
53
+ type: "Title Type",
54
54
  types: {
55
- SINGLE_SELECTION: "单选题",
56
- MULTI_SELECTION: "多选题",
57
- FILL_BLANK: "填空题",
58
- SHORT_ANSWER: "简答题",
59
- MATRIX: "分数量表",
60
- TEXT_TITLE: "文字说明",
61
- EVALUATION: "统计题",
55
+ SINGLE_SELECTION: "Single Selection",
56
+ MULTI_SELECTION: "Multi Selection",
57
+ FILL_BLANK: "Fill Blank",
58
+ SHORT_ANSWER: "Short Answer",
59
+ MATRIX: "Matrix",
60
+ TEXT_TITLE: "Text Title",
61
+ EVALUATION: "Evaluation",
62
62
  },
63
- optional: "选项",
64
- sub_questions: "子题",
65
- score: "分值",
66
- scores: "",
67
- questionRequired: "此题必填",
68
- titleRequiredTip: "请填写题目名称",
69
- textTitleRequiredTip: "请填写文字说明",
70
- scoreRequiredTip: "分值不能为空",
71
- subQuestionRequiredTip: "子題不能为空",
72
- optionalRequiredTip: "选项不能为空",
73
- commitRequiredTip: "描述不能为空",
74
- levelRequiredTip: "等级不能为空",
75
- addItem: "新增子题",
76
- noQuestion: "还未添加题目!",
77
- noQuestionTip: "新增题目请按右上角「新增题目按钮」",
78
- wordCountLimit: "字数限制",
79
- multi_selection: "多选题",
80
- single_selection: "单选题",
81
- remote_selection: "单选题",
82
- short_answer: "简答题",
83
- fill_blank: "填空题",
84
- matrix: "分数量表",
85
- text_title: "文字说明",
86
- group: "题组",
87
- level: "量表范围",
88
- matrixLevel1: "非常不同意",
89
- matrixLevel2: "不同意",
90
- matrixLevel3: "部分同意",
91
- matrixLevel4: "同意",
92
- matrixLevel5: "非常同意",
63
+ optional: "Optional",
64
+ sub_questions: 'Sub Question',
65
+ score: "Score",
66
+ scores: "Score",
67
+ questionRequired: "Required",
68
+ titleRequiredTip: "Please Input Question Title",
69
+ scoreRequiredTip: "Score Required",
70
+ subQuestionRequiredTip: "Sub Question Required",
71
+ optionalRequiredTip: "Optional Required",
72
+ commitRequiredTip: "Commit Required",
73
+ levelRequiredTip: "Level Required",
74
+ addItem: "New SubQuestion",
75
+ noQuestion: "noQuestion!",
76
+ noQuestionTip: "No Question Please Press New Question Button",
77
+ wordCountLimit: "Word Limit",
78
+ multi_selection: "Multi Selection",
79
+ single_selection: "Single Selection",
80
+ remote_selection: "Single Selection",
81
+ short_answer: "Short Answer",
82
+ fill_blank: 'Fill Blank',
83
+ matrix: 'Matrix',
84
+ text_title: 'Text',
85
+ group: 'Group Question',
86
+ level: "Scale Scope",
87
+ matrixLevel1: "Poor",
88
+ matrixLevel2: "Fair",
89
+ matrixLevel3: "Average",
90
+ matrixLevel4: "Good",
91
+ matrixLevel5: "Excellent",
93
92
  scoreErrorTip: "分值只能填写1000以内两位小数",
94
- notEmpty: "不能为空",
95
- pleaseEnter: "请填写",
96
- wordsLimit: "字数限制:",
97
- noDesc: "无选项描述",
98
- noSubDesc: "暂无子题描述",
99
- noQuestionDesc: "暂无题目描述",
100
- unSave: "未保存",
101
- surveyConfirmContent: "确认要提交?提交后问卷即锁定不可再修改!",
102
- unSaveConfirm: "有未保存的题目,确定要返回吗?",
103
- scoringEnabled: "此题占分",
104
- starEnabled: "此题计星",
105
- optionalStarTip: "此项得星",
106
- starLeastOneTip: "至少一项得星",
107
- starMinCountPrefix: "当选择",
108
- starMinCountSuffix: "项及以上时计星",
109
- maxScore: "最高分值:",
110
- enableMultiSelect: "可复选",
93
+ notEmpty: "Required",
94
+ pleaseEnter: "Please Insert",
95
+ wordsLimit: "Word limit",
96
+ noDesc: "No required",
97
+ noSubDesc: "No SubQuestion",
98
+ noQuestionDesc: "No Question Desc",
99
+ unSave: "Not Save",
100
+ surveyConfirmContent: "Are you sure submit? locked this survey when you committed",
101
+ unSaveConfirm: "Some question not saved,are you sure back?",
102
+ scoringEnabled: "Score Required",
103
+ starEnabled: "Get Star Required",
104
+ optionalStarTip: "Optional Get Star",
105
+ starLeastOneTip: "Least One Choice Get Star",
106
+ starMinCountPrefix: "Selected",
107
+ starMinCountSuffix: "Items or More Get Star",
108
+ maxScore: "Max score",
109
+ enableMultiSelect: "Enable Multi Selection",
111
110
  evaluation: {
112
111
  level: {
113
- "1": "",
114
- "2": "较好",
115
- "3": "一般",
116
- "4": "较差",
117
- "5": "",
112
+ "1": "Excellent",
113
+ "2": "Good",
114
+ "3": "Average",
115
+ "4": "Fail",
116
+ "5": "Poor",
118
117
  },
119
118
  type: {
120
- STAR: "计星",
121
- EXPR: "条件判断",
119
+ STAR: "Star",
120
+ EXPR: "Conditional"
122
121
  },
123
- levelNameLabel: "评价等级",
124
- levelLabel: "评价标准",
125
- selectedType: "统计方式",
122
+ levelNameLabel: "Evaluation Level",
123
+ levelLabel: "Evaluation Rule",
124
+ selectedType: "Evaluation Type",
126
125
  desc: {
127
- atPoint: "{0}",
128
- inRange: "{0}-{1}",
129
- outOfRange: "{0}星以上",
126
+ atPoint: "{0} Star",
127
+ inRange: "{0}-{1} Star",
128
+ outOfRange: "{0} Star Or More"
130
129
  },
131
130
  condition: {
132
- if: "如果",
133
- else: "否则",
134
- add_if_template: "添加如果模板",
135
- requirements: "满足条件",
136
- score_condition_title: "总分数范围为",
131
+ if: "If",
132
+ else: "Else",
133
+ add_if_template: "Add Template",
134
+ requirements: "Cond",
137
135
  type: {
138
- ASSIGN: "题目范围为__的结果为__的数量__",
139
- AUTO: "题目范围为__的结果为__",
140
- SCORE: "总分数范围为__",
136
+ ASSIGN: "When scope is __ and choices in __ and count __",
137
+ AUTO: "When scope is __ and choices in __"
141
138
  },
142
- evaluation_label: "设置总体评价为",
143
- evaluation_require_tip: "总体评价不能为空",
144
- question: "题目",
145
- question_scope: "题目范围",
146
- question_result: "的结果为",
147
- question_count: "的数量",
148
- choose_result: "选择结果",
149
- operator: "运算符",
150
- other: "其他",
151
- assign_template: `{0} 项为 {1} {2} {3}项`,
152
- auto_template: `{0} 项为 {1}`,
153
- score_template: `总分数范围为: {0}分{1}, {2}分`,
154
- },
139
+ evaluation_label: "Evaluation Label",
140
+ evaluation_require_tip: "Evaluation can not be null",
141
+ question: "Question",
142
+ question_scope: "Scope",
143
+ question_result: "results",
144
+ question_count: "count",
145
+ choose_result: "Choose Result",
146
+ operator: "Operator",
147
+ other: "Other",
148
+ assign_template: `{0} questions answer is {1} count {2} {3}`,
149
+ auto_template: `{0} questions answer is {1}`,
150
+ }
155
151
  },
156
152
  },
157
153
  page: {
158
- question: "题目",
159
- textTitle: "说明",
160
- subQuestion: "子题",
161
- matrixQuestion: "主题标题",
162
- count: "题目数",
163
- arrangement: "选项排列",
164
- horizontal: "横向",
165
- vertical: "纵向",
166
- totalScore: "总配分",
154
+ question: "Question",
155
+ subQuestion: "Sub Question",
156
+ matrixQuestion: "Matrix Title",
157
+ count: "Question Count",
158
+ arrangement: "Layout",
159
+ horizontal: "Horizontal",
160
+ vertical: "Vertical",
161
+ totalScore: "Total Score"
167
162
  },
168
163
  translator: {
169
- save: "保存",
170
- cancel: "取消",
164
+ save: "Save",
165
+ cancel: "Cancel",
171
166
  table: {
172
- header_type: "类型",
173
- header_primary_name: "(默认语言)",
167
+ header_type: "Type",
168
+ header_primary_name: "(Default Language)",
174
169
  header_zhCn: "简体中文",
175
170
  header_enUs: "English",
176
171
  header_zhTw: "繁体中文",
177
- },
172
+ }
178
173
  },
179
174
  message: {
180
- saveSuccess: "保存成功",
181
- saveFailed: "保存失败",
182
- surveyLocaleNoSettingCompleted: "问卷题目翻译不完全,是否继续?",
183
- noSettingLocale: "未设置多国语言!",
184
- },
185
- },
175
+ saveSuccess: "Save Success",
176
+ saveFailed: "Save Failed",
177
+ surveyLocaleNoSettingCompleted: "Survey translate not completed,continue?",
178
+ noSettingLocale: "Not setting translate",
179
+ }
180
+ }
186
181
  };
187
182
 
188
183
  let lang = defaultLang;
@@ -626,7 +621,7 @@ const questionTypes = [
626
621
  "TEXT_TITLE",
627
622
  "EVALUATION",
628
623
  ];
629
- var script$H = Vue.extend({
624
+ var script$G = Vue.extend({
630
625
  name: "create-question-dropdown",
631
626
  mixins: [LocaleMixin],
632
627
  inject: ["$rootComponent"],
@@ -719,20 +714,20 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
719
714
  }
720
715
 
721
716
  /* script */
722
- const __vue_script__$H = script$H;
717
+ const __vue_script__$G = script$G;
723
718
 
724
719
  /* template */
725
- var __vue_render__$H = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dropdown',{attrs:{"transfer":true}},[_c('Button',{attrs:{"icon":"md-add","type":"primary"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.create')))]),_vm._v(" "),_c('DropdownMenu',{attrs:{"slot":"list"},slot:"list"},_vm._l((_vm.questionTypes),function(questionType){return _c('DropdownItem',{key:questionType,staticClass:"dropdown_item",nativeOn:{"click":function($event){return _vm.onCreate(questionType)}}},[_vm._v(_vm._s(_vm.t(("survey_creator.question.types." + questionType))))])}),1)],1)};
726
- var __vue_staticRenderFns__$H = [];
720
+ var __vue_render__$G = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dropdown',{attrs:{"transfer":true}},[_c('Button',{attrs:{"icon":"md-add","type":"primary"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.create')))]),_vm._v(" "),_c('DropdownMenu',{attrs:{"slot":"list"},slot:"list"},_vm._l((_vm.questionTypes),function(questionType){return _c('DropdownItem',{key:questionType,staticClass:"dropdown_item",nativeOn:{"click":function($event){return _vm.onCreate(questionType)}}},[_vm._v(_vm._s(_vm.t(("survey_creator.question.types." + questionType))))])}),1)],1)};
721
+ var __vue_staticRenderFns__$G = [];
727
722
 
728
723
  /* style */
729
- const __vue_inject_styles__$H = undefined;
724
+ const __vue_inject_styles__$G = undefined;
730
725
  /* scoped */
731
- const __vue_scope_id__$H = undefined;
726
+ const __vue_scope_id__$G = undefined;
732
727
  /* module identifier */
733
- const __vue_module_identifier__$H = undefined;
728
+ const __vue_module_identifier__$G = undefined;
734
729
  /* functional template */
735
- const __vue_is_functional_template__$H = false;
730
+ const __vue_is_functional_template__$G = false;
736
731
  /* style inject */
737
732
 
738
733
  /* style inject SSR */
@@ -741,22 +736,22 @@ var __vue_staticRenderFns__$H = [];
741
736
 
742
737
 
743
738
 
744
- const __vue_component__$H = /*#__PURE__*/normalizeComponent(
745
- { render: __vue_render__$H, staticRenderFns: __vue_staticRenderFns__$H },
746
- __vue_inject_styles__$H,
747
- __vue_script__$H,
748
- __vue_scope_id__$H,
749
- __vue_is_functional_template__$H,
750
- __vue_module_identifier__$H,
739
+ const __vue_component__$G = /*#__PURE__*/normalizeComponent(
740
+ { render: __vue_render__$G, staticRenderFns: __vue_staticRenderFns__$G },
741
+ __vue_inject_styles__$G,
742
+ __vue_script__$G,
743
+ __vue_scope_id__$G,
744
+ __vue_is_functional_template__$G,
745
+ __vue_module_identifier__$G,
751
746
  false,
752
747
  undefined,
753
748
  undefined,
754
749
  undefined
755
750
  );
756
751
 
757
- var CreateQuestionDropdown = __vue_component__$H;
752
+ var CreateQuestionDropdown = __vue_component__$G;
758
753
 
759
- var script$G = Vue.extend({
754
+ var script$F = Vue.extend({
760
755
  name: "change-language",
761
756
  mixins: [LocaleMixin],
762
757
  inject: ["$rootComponent"],
@@ -781,20 +776,20 @@ var script$G = Vue.extend({
781
776
  });
782
777
 
783
778
  /* script */
784
- const __vue_script__$G = script$G;
779
+ const __vue_script__$F = script$F;
785
780
 
786
781
  /* template */
787
- var __vue_render__$G = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dropdown',[_c('Button',{attrs:{"type":"primary"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.common.languages." + (this.language))))+"\n "),_c('Icon',{attrs:{"type":"ios-arrow-down"}})],1),_vm._v(" "),_c('DropdownMenu',{attrs:{"slot":"list"},slot:"list"},_vm._l((_vm.languages),function(language){return _c('DropdownItem',{key:language,attrs:{"transfer":true},nativeOn:{"click":function($event){return _vm.onChangeLanguage(language)}}},[_vm._v(_vm._s(_vm.t(("survey_creator.common.languages." + language))))])}),1)],1)};
788
- var __vue_staticRenderFns__$G = [];
782
+ var __vue_render__$F = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Dropdown',[_c('Button',{attrs:{"type":"primary"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.common.languages." + (this.language))))+"\n "),_c('Icon',{attrs:{"type":"ios-arrow-down"}})],1),_vm._v(" "),_c('DropdownMenu',{attrs:{"slot":"list"},slot:"list"},_vm._l((_vm.languages),function(language){return _c('DropdownItem',{key:language,attrs:{"transfer":true},nativeOn:{"click":function($event){return _vm.onChangeLanguage(language)}}},[_vm._v(_vm._s(_vm.t(("survey_creator.common.languages." + language))))])}),1)],1)};
783
+ var __vue_staticRenderFns__$F = [];
789
784
 
790
785
  /* style */
791
- const __vue_inject_styles__$G = undefined;
786
+ const __vue_inject_styles__$F = undefined;
792
787
  /* scoped */
793
- const __vue_scope_id__$G = undefined;
788
+ const __vue_scope_id__$F = undefined;
794
789
  /* module identifier */
795
- const __vue_module_identifier__$G = undefined;
790
+ const __vue_module_identifier__$F = undefined;
796
791
  /* functional template */
797
- const __vue_is_functional_template__$G = false;
792
+ const __vue_is_functional_template__$F = false;
798
793
  /* style inject */
799
794
 
800
795
  /* style inject SSR */
@@ -803,22 +798,22 @@ var __vue_staticRenderFns__$G = [];
803
798
 
804
799
 
805
800
 
806
- const __vue_component__$G = /*#__PURE__*/normalizeComponent(
807
- { render: __vue_render__$G, staticRenderFns: __vue_staticRenderFns__$G },
808
- __vue_inject_styles__$G,
809
- __vue_script__$G,
810
- __vue_scope_id__$G,
811
- __vue_is_functional_template__$G,
812
- __vue_module_identifier__$G,
801
+ const __vue_component__$F = /*#__PURE__*/normalizeComponent(
802
+ { render: __vue_render__$F, staticRenderFns: __vue_staticRenderFns__$F },
803
+ __vue_inject_styles__$F,
804
+ __vue_script__$F,
805
+ __vue_scope_id__$F,
806
+ __vue_is_functional_template__$F,
807
+ __vue_module_identifier__$F,
813
808
  false,
814
809
  undefined,
815
810
  undefined,
816
811
  undefined
817
812
  );
818
813
 
819
- var ChangeLanguage = __vue_component__$G;
814
+ var ChangeLanguage = __vue_component__$F;
820
815
 
821
- var script$F = Vue.extend({
816
+ var script$E = Vue.extend({
822
817
  name: 'toolbar',
823
818
  mixins: [LocaleMixin],
824
819
  inject: ['$rootComponent'],
@@ -857,20 +852,20 @@ var script$F = Vue.extend({
857
852
  });
858
853
 
859
854
  /* script */
860
- const __vue_script__$F = script$F;
855
+ const __vue_script__$E = script$E;
861
856
 
862
857
  /* template */
863
- var __vue_render__$F = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{staticClass:"toolbar-wrapper",attrs:{"type":"flex","justify":"end","align":"middle","gutter":20}},[(_vm.preview)?_c('Col',[_c('Button',{attrs:{"icon":"ios-search","type":"primary"},on:{"click":this.$rootComponent.onPreview}},[_vm._v(_vm._s(_vm.t('survey_creator.common.settings.preview'))+"\n ")])],1):_vm._e(),_vm._v(" "),(_vm.changeLanguage)?_c('Col',[_c('change-language',{attrs:{"languages":_vm.survey.options.languages}})],1):_vm._e()],1)};
864
- var __vue_staticRenderFns__$F = [];
858
+ var __vue_render__$E = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{staticClass:"toolbar-wrapper",attrs:{"type":"flex","justify":"end","align":"middle","gutter":20}},[(_vm.preview)?_c('Col',[_c('Button',{attrs:{"icon":"ios-search","type":"primary"},on:{"click":this.$rootComponent.onPreview}},[_vm._v(_vm._s(_vm.t('survey_creator.common.settings.preview'))+"\n ")])],1):_vm._e(),_vm._v(" "),(_vm.changeLanguage)?_c('Col',[_c('change-language',{attrs:{"languages":_vm.survey.options.languages}})],1):_vm._e()],1)};
859
+ var __vue_staticRenderFns__$E = [];
865
860
 
866
861
  /* style */
867
- const __vue_inject_styles__$F = undefined;
862
+ const __vue_inject_styles__$E = undefined;
868
863
  /* scoped */
869
- const __vue_scope_id__$F = undefined;
864
+ const __vue_scope_id__$E = undefined;
870
865
  /* module identifier */
871
- const __vue_module_identifier__$F = undefined;
866
+ const __vue_module_identifier__$E = undefined;
872
867
  /* functional template */
873
- const __vue_is_functional_template__$F = false;
868
+ const __vue_is_functional_template__$E = false;
874
869
  /* style inject */
875
870
 
876
871
  /* style inject SSR */
@@ -879,22 +874,22 @@ var __vue_staticRenderFns__$F = [];
879
874
 
880
875
 
881
876
 
882
- const __vue_component__$F = /*#__PURE__*/normalizeComponent(
883
- { render: __vue_render__$F, staticRenderFns: __vue_staticRenderFns__$F },
884
- __vue_inject_styles__$F,
885
- __vue_script__$F,
886
- __vue_scope_id__$F,
887
- __vue_is_functional_template__$F,
888
- __vue_module_identifier__$F,
877
+ const __vue_component__$E = /*#__PURE__*/normalizeComponent(
878
+ { render: __vue_render__$E, staticRenderFns: __vue_staticRenderFns__$E },
879
+ __vue_inject_styles__$E,
880
+ __vue_script__$E,
881
+ __vue_scope_id__$E,
882
+ __vue_is_functional_template__$E,
883
+ __vue_module_identifier__$E,
889
884
  false,
890
885
  undefined,
891
886
  undefined,
892
887
  undefined
893
888
  );
894
889
 
895
- var Toolbar = __vue_component__$F;
890
+ var Toolbar = __vue_component__$E;
896
891
 
897
- var script$E = Vue.extend({
892
+ var script$D = Vue.extend({
898
893
  name: "question-title",
899
894
  components: { Icon },
900
895
  mixins: [LocaleMixin],
@@ -923,20 +918,20 @@ var script$E = Vue.extend({
923
918
  });
924
919
 
925
920
  /* script */
926
- const __vue_script__$E = script$E;
921
+ const __vue_script__$D = script$D;
927
922
 
928
923
  /* template */
929
- var __vue_render__$E = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question-title"},[_c('label',{staticClass:"star"},[_vm._v(_vm._s(_vm.question.options.required ? '*' : ''))]),_vm._v(" "),(_vm.question.header.number)?_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+".")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(_vm.question.header.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"options-explain"},[_vm._v("("+_vm._s(_vm.t("survey_creator.question.max_score", _vm.$rootComponent.currentLanguage))+_vm._s(_vm.maxScore)+")")]):_vm._e(),_vm._v(" "),(_vm.haveStar)?_c('span',{staticClass:"options-explain"},[(_vm.isSingleSelection)?_c('span',[_vm._v("\n ("+_vm._s(_vm.t("survey_creator.question.star_single", _vm.$rootComponent.currentLanguage))+"\n "),_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1),_vm._v(")\n ")]):_c('span',[_vm._v("\n (\n "+_vm._s(_vm.t("survey_creator.question.star_single", _vm.$rootComponent.currentLanguage))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}}),_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.star_multi_prefix", _vm.$rootComponent.currentLanguage))+"\n "+_vm._s(_vm.question.options.starMinCount)+"\n "+_vm._s(_vm.t("survey_creator.question.star_multi_suffix", _vm.$rootComponent.currentLanguage))+"\n )\n ")],1)]):_vm._e()])};
930
- var __vue_staticRenderFns__$E = [];
924
+ var __vue_render__$D = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question-title"},[_c('label',{staticClass:"star"},[_vm._v(_vm._s(_vm.question.options.required ? '*' : ''))]),_vm._v(" "),(_vm.question.header.number)?_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+".")]):_vm._e(),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(_vm.question.header.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"options-explain"},[_vm._v("("+_vm._s(_vm.t("survey_creator.question.max_score", _vm.$rootComponent.currentLanguage))+_vm._s(_vm.maxScore)+")")]):_vm._e(),_vm._v(" "),(_vm.haveStar)?_c('span',{staticClass:"options-explain"},[(_vm.isSingleSelection)?_c('span',[_vm._v("\n ("+_vm._s(_vm.t("survey_creator.question.star_single", _vm.$rootComponent.currentLanguage))+"\n "),_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1),_vm._v(")\n ")]):_c('span',[_vm._v("\n (\n "+_vm._s(_vm.t("survey_creator.question.star_single", _vm.$rootComponent.currentLanguage))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}}),_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.star_multi_prefix", _vm.$rootComponent.currentLanguage))+"\n "+_vm._s(_vm.question.options.starMinCount)+"\n "+_vm._s(_vm.t("survey_creator.question.star_multi_suffix", _vm.$rootComponent.currentLanguage))+"\n )\n ")],1)]):_vm._e()])};
925
+ var __vue_staticRenderFns__$D = [];
931
926
 
932
927
  /* style */
933
- const __vue_inject_styles__$E = undefined;
928
+ const __vue_inject_styles__$D = undefined;
934
929
  /* scoped */
935
- const __vue_scope_id__$E = undefined;
930
+ const __vue_scope_id__$D = undefined;
936
931
  /* module identifier */
937
- const __vue_module_identifier__$E = undefined;
932
+ const __vue_module_identifier__$D = undefined;
938
933
  /* functional template */
939
- const __vue_is_functional_template__$E = false;
934
+ const __vue_is_functional_template__$D = false;
940
935
  /* style inject */
941
936
 
942
937
  /* style inject SSR */
@@ -945,22 +940,22 @@ var __vue_staticRenderFns__$E = [];
945
940
 
946
941
 
947
942
 
948
- const __vue_component__$E = /*#__PURE__*/normalizeComponent(
949
- { render: __vue_render__$E, staticRenderFns: __vue_staticRenderFns__$E },
950
- __vue_inject_styles__$E,
951
- __vue_script__$E,
952
- __vue_scope_id__$E,
953
- __vue_is_functional_template__$E,
954
- __vue_module_identifier__$E,
943
+ const __vue_component__$D = /*#__PURE__*/normalizeComponent(
944
+ { render: __vue_render__$D, staticRenderFns: __vue_staticRenderFns__$D },
945
+ __vue_inject_styles__$D,
946
+ __vue_script__$D,
947
+ __vue_scope_id__$D,
948
+ __vue_is_functional_template__$D,
949
+ __vue_module_identifier__$D,
955
950
  false,
956
951
  undefined,
957
952
  undefined,
958
953
  undefined
959
954
  );
960
955
 
961
- var QuestionTitle = __vue_component__$E;
956
+ var QuestionTitle = __vue_component__$D;
962
957
 
963
- var script$D = Vue.extend({
958
+ var script$C = Vue.extend({
964
959
  name: "clickable-icon",
965
960
  components: { Tooltip, Icon },
966
961
  props: {
@@ -1042,46 +1037,46 @@ function addStyle(id, css) {
1042
1037
  }
1043
1038
 
1044
1039
  /* script */
1045
- const __vue_script__$D = script$D;
1040
+ const __vue_script__$C = script$C;
1046
1041
 
1047
1042
  /* template */
1048
- var __vue_render__$D = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.tooltip)?_c('Tooltip',{attrs:{"content":_vm.tooltip,"transfer":true}},[_c('span',{staticClass:"icon-button hover-able",on:{"click":_vm.click}},[_c('Icon',{attrs:{"type":_vm.type,"custom":_vm.custom,"size":_vm.size}})],1)]):_c('span',{staticClass:"icon-button hover-able"},[_c('Icon',{attrs:{"type":_vm.type,"custom":_vm.custom,"size":_vm.size},on:{"click":_vm.click}})],1)};
1049
- var __vue_staticRenderFns__$D = [];
1043
+ var __vue_render__$C = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.tooltip)?_c('Tooltip',{attrs:{"content":_vm.tooltip,"transfer":true}},[_c('span',{staticClass:"icon-button hover-able",on:{"click":_vm.click}},[_c('Icon',{attrs:{"type":_vm.type,"custom":_vm.custom,"size":_vm.size}})],1)]):_c('span',{staticClass:"icon-button hover-able"},[_c('Icon',{attrs:{"type":_vm.type,"custom":_vm.custom,"size":_vm.size},on:{"click":_vm.click}})],1)};
1044
+ var __vue_staticRenderFns__$C = [];
1050
1045
 
1051
1046
  /* style */
1052
- const __vue_inject_styles__$D = function (inject) {
1047
+ const __vue_inject_styles__$C = function (inject) {
1053
1048
  if (!inject) return
1054
1049
  inject("data-v-6e22f2ee_0", { source: ".icon-button{cursor:pointer;line-height:1.5}", map: undefined, media: undefined });
1055
1050
 
1056
1051
  };
1057
1052
  /* scoped */
1058
- const __vue_scope_id__$D = undefined;
1053
+ const __vue_scope_id__$C = undefined;
1059
1054
  /* module identifier */
1060
- const __vue_module_identifier__$D = undefined;
1055
+ const __vue_module_identifier__$C = undefined;
1061
1056
  /* functional template */
1062
- const __vue_is_functional_template__$D = false;
1057
+ const __vue_is_functional_template__$C = false;
1063
1058
  /* style inject SSR */
1064
1059
 
1065
1060
  /* style inject shadow dom */
1066
1061
 
1067
1062
 
1068
1063
 
1069
- const __vue_component__$D = /*#__PURE__*/normalizeComponent(
1070
- { render: __vue_render__$D, staticRenderFns: __vue_staticRenderFns__$D },
1071
- __vue_inject_styles__$D,
1072
- __vue_script__$D,
1073
- __vue_scope_id__$D,
1074
- __vue_is_functional_template__$D,
1075
- __vue_module_identifier__$D,
1064
+ const __vue_component__$C = /*#__PURE__*/normalizeComponent(
1065
+ { render: __vue_render__$C, staticRenderFns: __vue_staticRenderFns__$C },
1066
+ __vue_inject_styles__$C,
1067
+ __vue_script__$C,
1068
+ __vue_scope_id__$C,
1069
+ __vue_is_functional_template__$C,
1070
+ __vue_module_identifier__$C,
1076
1071
  false,
1077
1072
  createInjector,
1078
1073
  undefined,
1079
1074
  undefined
1080
1075
  );
1081
1076
 
1082
- var ClickableIcon = __vue_component__$D;
1077
+ var ClickableIcon = __vue_component__$C;
1083
1078
 
1084
- var script$C = Vue.extend({
1079
+ var script$B = Vue.extend({
1085
1080
  name: "editor-question-toolbar",
1086
1081
  components: { Row, Col, Icon, ClickableIcon },
1087
1082
  mixins: [LocaleMixin],
@@ -1116,20 +1111,20 @@ var script$C = Vue.extend({
1116
1111
  });
1117
1112
 
1118
1113
  /* script */
1119
- const __vue_script__$C = script$C;
1114
+ const __vue_script__$B = script$B;
1120
1115
 
1121
1116
  /* template */
1122
- var __vue_render__$C = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{staticClass:"editor-question-toolbar",attrs:{"type":"flex","justify":"center","align":"middle"}},[(_vm.edit)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.edit'),"type":"ios-create-outline"},on:{"click":_vm.onEdit}})],1):_vm._e(),_vm._v(" "),(_vm.copy)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.copy'),"type":"ios-copy-outline"},on:{"click":_vm.onCopy}})],1):_vm._e(),_vm._v(" "),(_vm.enableDelete)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.delete'),"type":"ios-trash-outline"},on:{"click":_vm.onDelete}})],1):_vm._e()],1)};
1123
- var __vue_staticRenderFns__$C = [];
1117
+ var __vue_render__$B = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{staticClass:"editor-question-toolbar",attrs:{"type":"flex","justify":"center","align":"middle"}},[(_vm.edit)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.edit'),"type":"ios-create-outline"},on:{"click":_vm.onEdit}})],1):_vm._e(),_vm._v(" "),(_vm.copy)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.copy'),"type":"ios-copy-outline"},on:{"click":_vm.onCopy}})],1):_vm._e(),_vm._v(" "),(_vm.enableDelete)?_c('Col',[_c('clickable-icon',{attrs:{"tooltip":_vm.t('survey_creator.common.tips.delete'),"type":"ios-trash-outline"},on:{"click":_vm.onDelete}})],1):_vm._e()],1)};
1118
+ var __vue_staticRenderFns__$B = [];
1124
1119
 
1125
1120
  /* style */
1126
- const __vue_inject_styles__$C = undefined;
1121
+ const __vue_inject_styles__$B = undefined;
1127
1122
  /* scoped */
1128
- const __vue_scope_id__$C = undefined;
1123
+ const __vue_scope_id__$B = undefined;
1129
1124
  /* module identifier */
1130
- const __vue_module_identifier__$C = undefined;
1125
+ const __vue_module_identifier__$B = undefined;
1131
1126
  /* functional template */
1132
- const __vue_is_functional_template__$C = false;
1127
+ const __vue_is_functional_template__$B = false;
1133
1128
  /* style inject */
1134
1129
 
1135
1130
  /* style inject SSR */
@@ -1138,22 +1133,22 @@ var __vue_staticRenderFns__$C = [];
1138
1133
 
1139
1134
 
1140
1135
 
1141
- const __vue_component__$C = /*#__PURE__*/normalizeComponent(
1142
- { render: __vue_render__$C, staticRenderFns: __vue_staticRenderFns__$C },
1143
- __vue_inject_styles__$C,
1144
- __vue_script__$C,
1145
- __vue_scope_id__$C,
1146
- __vue_is_functional_template__$C,
1147
- __vue_module_identifier__$C,
1136
+ const __vue_component__$B = /*#__PURE__*/normalizeComponent(
1137
+ { render: __vue_render__$B, staticRenderFns: __vue_staticRenderFns__$B },
1138
+ __vue_inject_styles__$B,
1139
+ __vue_script__$B,
1140
+ __vue_scope_id__$B,
1141
+ __vue_is_functional_template__$B,
1142
+ __vue_module_identifier__$B,
1148
1143
  false,
1149
1144
  undefined,
1150
1145
  undefined,
1151
1146
  undefined
1152
1147
  );
1153
1148
 
1154
- var EditQuestionToolbar = __vue_component__$C;
1149
+ var EditQuestionToolbar = __vue_component__$B;
1155
1150
 
1156
- var script$B = Vue.extend({
1151
+ var script$A = Vue.extend({
1157
1152
  name: "question-default-layout",
1158
1153
  components: { Row, Col, QuestionTitle, EditQuestionToolbar },
1159
1154
  mixins: [LocaleMixin],
@@ -1178,20 +1173,20 @@ var script$B = Vue.extend({
1178
1173
  });
1179
1174
 
1180
1175
  /* script */
1181
- const __vue_script__$B = script$B;
1176
+ const __vue_script__$A = script$A;
1182
1177
 
1183
1178
  /* template */
1184
- var __vue_render__$B = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},[_c('Row',{attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',[_c('question-title',{attrs:{"question":_vm.question,"max-score":true}})],1),_vm._v(" "),_c('Col',[_c('edit-question-toolbar',{on:{"on-edit":_vm.onEdit,"on-copy":_vm.onCopy,"on-delete":_vm.onDelete}})],1)],1),_vm._v(" "),_vm._t("default")],2)};
1185
- var __vue_staticRenderFns__$B = [];
1179
+ var __vue_render__$A = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},[_c('Row',{attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',[_c('question-title',{attrs:{"question":_vm.question,"max-score":true}})],1),_vm._v(" "),_c('Col',[_c('edit-question-toolbar',{on:{"on-edit":_vm.onEdit,"on-copy":_vm.onCopy,"on-delete":_vm.onDelete}})],1)],1),_vm._v(" "),_vm._t("default")],2)};
1180
+ var __vue_staticRenderFns__$A = [];
1186
1181
 
1187
1182
  /* style */
1188
- const __vue_inject_styles__$B = undefined;
1183
+ const __vue_inject_styles__$A = undefined;
1189
1184
  /* scoped */
1190
- const __vue_scope_id__$B = undefined;
1185
+ const __vue_scope_id__$A = undefined;
1191
1186
  /* module identifier */
1192
- const __vue_module_identifier__$B = undefined;
1187
+ const __vue_module_identifier__$A = undefined;
1193
1188
  /* functional template */
1194
- const __vue_is_functional_template__$B = false;
1189
+ const __vue_is_functional_template__$A = false;
1195
1190
  /* style inject */
1196
1191
 
1197
1192
  /* style inject SSR */
@@ -1200,22 +1195,22 @@ var __vue_staticRenderFns__$B = [];
1200
1195
 
1201
1196
 
1202
1197
 
1203
- const __vue_component__$B = /*#__PURE__*/normalizeComponent(
1204
- { render: __vue_render__$B, staticRenderFns: __vue_staticRenderFns__$B },
1205
- __vue_inject_styles__$B,
1206
- __vue_script__$B,
1207
- __vue_scope_id__$B,
1208
- __vue_is_functional_template__$B,
1209
- __vue_module_identifier__$B,
1198
+ const __vue_component__$A = /*#__PURE__*/normalizeComponent(
1199
+ { render: __vue_render__$A, staticRenderFns: __vue_staticRenderFns__$A },
1200
+ __vue_inject_styles__$A,
1201
+ __vue_script__$A,
1202
+ __vue_scope_id__$A,
1203
+ __vue_is_functional_template__$A,
1204
+ __vue_module_identifier__$A,
1210
1205
  false,
1211
1206
  undefined,
1212
1207
  undefined,
1213
1208
  undefined
1214
1209
  );
1215
1210
 
1216
- var QuestionDefaultLayout = __vue_component__$B;
1211
+ var QuestionDefaultLayout = __vue_component__$A;
1217
1212
 
1218
- var script$A = Vue.extend({
1213
+ var script$z = Vue.extend({
1219
1214
  name: "single-selection",
1220
1215
  components: { Row, Col, Radio, RadioGroup, Icon },
1221
1216
  mixins: [LocaleMixin],
@@ -1257,20 +1252,20 @@ var script$A = Vue.extend({
1257
1252
  });
1258
1253
 
1259
1254
  /* script */
1260
- const __vue_script__$A = script$A;
1255
+ const __vue_script__$z = script$z;
1261
1256
 
1262
1257
  /* template */
1263
- var __vue_render__$A = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('RadioGroup',{attrs:{"vertical":_vm.vertical}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Radio',{attrs:{"label":choice.id}},[(_vm.haveStar(choice))?_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1):_vm._e(),_vm._v(" "),_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)};
1264
- var __vue_staticRenderFns__$A = [];
1258
+ var __vue_render__$z = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('RadioGroup',{attrs:{"vertical":_vm.vertical}},[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Radio',{attrs:{"label":choice.id}},[(_vm.haveStar(choice))?_c('span',[_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1):_vm._e(),_vm._v(" "),_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)};
1259
+ var __vue_staticRenderFns__$z = [];
1265
1260
 
1266
1261
  /* style */
1267
- const __vue_inject_styles__$A = undefined;
1262
+ const __vue_inject_styles__$z = undefined;
1268
1263
  /* scoped */
1269
- const __vue_scope_id__$A = undefined;
1264
+ const __vue_scope_id__$z = undefined;
1270
1265
  /* module identifier */
1271
- const __vue_module_identifier__$A = undefined;
1266
+ const __vue_module_identifier__$z = undefined;
1272
1267
  /* functional template */
1273
- const __vue_is_functional_template__$A = false;
1268
+ const __vue_is_functional_template__$z = false;
1274
1269
  /* style inject */
1275
1270
 
1276
1271
  /* style inject SSR */
@@ -1279,22 +1274,22 @@ var __vue_staticRenderFns__$A = [];
1279
1274
 
1280
1275
 
1281
1276
 
1282
- const __vue_component__$A = /*#__PURE__*/normalizeComponent(
1283
- { render: __vue_render__$A, staticRenderFns: __vue_staticRenderFns__$A },
1284
- __vue_inject_styles__$A,
1285
- __vue_script__$A,
1286
- __vue_scope_id__$A,
1287
- __vue_is_functional_template__$A,
1288
- __vue_module_identifier__$A,
1277
+ const __vue_component__$z = /*#__PURE__*/normalizeComponent(
1278
+ { render: __vue_render__$z, staticRenderFns: __vue_staticRenderFns__$z },
1279
+ __vue_inject_styles__$z,
1280
+ __vue_script__$z,
1281
+ __vue_scope_id__$z,
1282
+ __vue_is_functional_template__$z,
1283
+ __vue_module_identifier__$z,
1289
1284
  false,
1290
1285
  undefined,
1291
1286
  undefined,
1292
1287
  undefined
1293
1288
  );
1294
1289
 
1295
- var SingleSelection = __vue_component__$A;
1290
+ var SingleSelection = __vue_component__$z;
1296
1291
 
1297
- var script$z = Vue.extend({
1292
+ var script$y = Vue.extend({
1298
1293
  name: "multi-selection",
1299
1294
  components: { Row, Col, Checkbox, CheckboxGroup },
1300
1295
  mixins: [LocaleMixin],
@@ -1333,20 +1328,20 @@ var script$z = Vue.extend({
1333
1328
  });
1334
1329
 
1335
1330
  /* script */
1336
- const __vue_script__$z = script$z;
1331
+ const __vue_script__$y = script$y;
1337
1332
 
1338
1333
  /* template */
1339
- var __vue_render__$z = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CheckboxGroup',[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Checkbox',{attrs:{"label":choice.id}},[_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)};
1340
- var __vue_staticRenderFns__$z = [];
1334
+ var __vue_render__$y = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CheckboxGroup',[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Checkbox',{attrs:{"label":choice.id}},[_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)};
1335
+ var __vue_staticRenderFns__$y = [];
1341
1336
 
1342
1337
  /* style */
1343
- const __vue_inject_styles__$z = undefined;
1338
+ const __vue_inject_styles__$y = undefined;
1344
1339
  /* scoped */
1345
- const __vue_scope_id__$z = undefined;
1340
+ const __vue_scope_id__$y = undefined;
1346
1341
  /* module identifier */
1347
- const __vue_module_identifier__$z = undefined;
1342
+ const __vue_module_identifier__$y = undefined;
1348
1343
  /* functional template */
1349
- const __vue_is_functional_template__$z = false;
1344
+ const __vue_is_functional_template__$y = false;
1350
1345
  /* style inject */
1351
1346
 
1352
1347
  /* style inject SSR */
@@ -1355,22 +1350,22 @@ var __vue_staticRenderFns__$z = [];
1355
1350
 
1356
1351
 
1357
1352
 
1358
- const __vue_component__$z = /*#__PURE__*/normalizeComponent(
1359
- { render: __vue_render__$z, staticRenderFns: __vue_staticRenderFns__$z },
1360
- __vue_inject_styles__$z,
1361
- __vue_script__$z,
1362
- __vue_scope_id__$z,
1363
- __vue_is_functional_template__$z,
1364
- __vue_module_identifier__$z,
1353
+ const __vue_component__$y = /*#__PURE__*/normalizeComponent(
1354
+ { render: __vue_render__$y, staticRenderFns: __vue_staticRenderFns__$y },
1355
+ __vue_inject_styles__$y,
1356
+ __vue_script__$y,
1357
+ __vue_scope_id__$y,
1358
+ __vue_is_functional_template__$y,
1359
+ __vue_module_identifier__$y,
1365
1360
  false,
1366
1361
  undefined,
1367
1362
  undefined,
1368
1363
  undefined
1369
1364
  );
1370
1365
 
1371
- var MultiSelection = __vue_component__$z;
1366
+ var MultiSelection = __vue_component__$y;
1372
1367
 
1373
- var script$y = Vue.extend({
1368
+ var script$x = Vue.extend({
1374
1369
  name: "short-answer",
1375
1370
  components: { Row, Col, Radio, Input },
1376
1371
  mixins: [LocaleMixin],
@@ -1384,20 +1379,20 @@ var script$y = Vue.extend({
1384
1379
  });
1385
1380
 
1386
1381
  /* script */
1387
- const __vue_script__$y = script$y;
1382
+ const __vue_script__$x = script$x;
1388
1383
 
1389
1384
  /* template */
1390
- var __vue_render__$y = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Input',{attrs:{"maxlength":_vm.question.options.wordLimit,"type":"textarea","rows":4,"show-word-limit":_vm.question.options.wordLimit && _vm.question.options.wordLimit > 0,"placeholder":_vm.t('survey_creator.common.tips.please_input_answer', _vm.$rootComponent.currentLanguage)}})};
1391
- var __vue_staticRenderFns__$y = [];
1385
+ var __vue_render__$x = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Input',{attrs:{"maxlength":_vm.question.options.wordLimit,"type":"textarea","rows":4,"show-word-limit":_vm.question.options.wordLimit && _vm.question.options.wordLimit > 0,"placeholder":_vm.t('survey_creator.common.tips.please_input_answer', _vm.$rootComponent.currentLanguage)}})};
1386
+ var __vue_staticRenderFns__$x = [];
1392
1387
 
1393
1388
  /* style */
1394
- const __vue_inject_styles__$y = undefined;
1389
+ const __vue_inject_styles__$x = undefined;
1395
1390
  /* scoped */
1396
- const __vue_scope_id__$y = undefined;
1391
+ const __vue_scope_id__$x = undefined;
1397
1392
  /* module identifier */
1398
- const __vue_module_identifier__$y = undefined;
1393
+ const __vue_module_identifier__$x = undefined;
1399
1394
  /* functional template */
1400
- const __vue_is_functional_template__$y = false;
1395
+ const __vue_is_functional_template__$x = false;
1401
1396
  /* style inject */
1402
1397
 
1403
1398
  /* style inject SSR */
@@ -1406,22 +1401,22 @@ var __vue_staticRenderFns__$y = [];
1406
1401
 
1407
1402
 
1408
1403
 
1409
- const __vue_component__$y = /*#__PURE__*/normalizeComponent(
1410
- { render: __vue_render__$y, staticRenderFns: __vue_staticRenderFns__$y },
1411
- __vue_inject_styles__$y,
1412
- __vue_script__$y,
1413
- __vue_scope_id__$y,
1414
- __vue_is_functional_template__$y,
1415
- __vue_module_identifier__$y,
1404
+ const __vue_component__$x = /*#__PURE__*/normalizeComponent(
1405
+ { render: __vue_render__$x, staticRenderFns: __vue_staticRenderFns__$x },
1406
+ __vue_inject_styles__$x,
1407
+ __vue_script__$x,
1408
+ __vue_scope_id__$x,
1409
+ __vue_is_functional_template__$x,
1410
+ __vue_module_identifier__$x,
1416
1411
  false,
1417
1412
  undefined,
1418
1413
  undefined,
1419
1414
  undefined
1420
1415
  );
1421
1416
 
1422
- var ShortAnswer = __vue_component__$y;
1417
+ var ShortAnswer = __vue_component__$x;
1423
1418
 
1424
- var script$x = Vue.extend({
1419
+ var script$w = Vue.extend({
1425
1420
  name: "fill-blank",
1426
1421
  components: { Row, Col, Radio, Input },
1427
1422
  inject: ["$rootComponent"],
@@ -1435,20 +1430,20 @@ var script$x = Vue.extend({
1435
1430
  });
1436
1431
 
1437
1432
  /* script */
1438
- const __vue_script__$x = script$x;
1433
+ const __vue_script__$w = script$w;
1439
1434
 
1440
1435
  /* template */
1441
- var __vue_render__$x = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Input',{attrs:{"maxlength":_vm.question.options.wordLimit,"show-word-limit":_vm.question.options.wordLimit && _vm.question.options.wordLimit > 0,"placeholder":_vm.t('survey_creator.common.tips.please_input_answer', _vm.$rootComponent.currentLanguage)}})};
1442
- var __vue_staticRenderFns__$x = [];
1436
+ var __vue_render__$w = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Input',{attrs:{"maxlength":_vm.question.options.wordLimit,"show-word-limit":_vm.question.options.wordLimit && _vm.question.options.wordLimit > 0,"placeholder":_vm.t('survey_creator.common.tips.please_input_answer', _vm.$rootComponent.currentLanguage)}})};
1437
+ var __vue_staticRenderFns__$w = [];
1443
1438
 
1444
1439
  /* style */
1445
- const __vue_inject_styles__$x = undefined;
1440
+ const __vue_inject_styles__$w = undefined;
1446
1441
  /* scoped */
1447
- const __vue_scope_id__$x = undefined;
1442
+ const __vue_scope_id__$w = undefined;
1448
1443
  /* module identifier */
1449
- const __vue_module_identifier__$x = undefined;
1444
+ const __vue_module_identifier__$w = undefined;
1450
1445
  /* functional template */
1451
- const __vue_is_functional_template__$x = false;
1446
+ const __vue_is_functional_template__$w = false;
1452
1447
  /* style inject */
1453
1448
 
1454
1449
  /* style inject SSR */
@@ -1457,44 +1452,44 @@ var __vue_staticRenderFns__$x = [];
1457
1452
 
1458
1453
 
1459
1454
 
1460
- const __vue_component__$x = /*#__PURE__*/normalizeComponent(
1461
- { render: __vue_render__$x, staticRenderFns: __vue_staticRenderFns__$x },
1462
- __vue_inject_styles__$x,
1463
- __vue_script__$x,
1464
- __vue_scope_id__$x,
1465
- __vue_is_functional_template__$x,
1466
- __vue_module_identifier__$x,
1455
+ const __vue_component__$w = /*#__PURE__*/normalizeComponent(
1456
+ { render: __vue_render__$w, staticRenderFns: __vue_staticRenderFns__$w },
1457
+ __vue_inject_styles__$w,
1458
+ __vue_script__$w,
1459
+ __vue_scope_id__$w,
1460
+ __vue_is_functional_template__$w,
1461
+ __vue_module_identifier__$w,
1467
1462
  false,
1468
1463
  undefined,
1469
1464
  undefined,
1470
1465
  undefined
1471
1466
  );
1472
1467
 
1473
- var FillBlank = __vue_component__$x;
1468
+ var FillBlank = __vue_component__$w;
1474
1469
 
1475
1470
  //
1476
1471
  //
1477
1472
  //
1478
1473
  //
1479
- var script$w = {
1474
+ var script$v = {
1480
1475
  name: "text-title"
1481
1476
  };
1482
1477
 
1483
1478
  /* script */
1484
- const __vue_script__$w = script$w;
1479
+ const __vue_script__$v = script$v;
1485
1480
 
1486
1481
  /* template */
1487
- var __vue_render__$w = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')};
1488
- var __vue_staticRenderFns__$w = [];
1482
+ var __vue_render__$v = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')};
1483
+ var __vue_staticRenderFns__$v = [];
1489
1484
 
1490
1485
  /* style */
1491
- const __vue_inject_styles__$w = undefined;
1486
+ const __vue_inject_styles__$v = undefined;
1492
1487
  /* scoped */
1493
- const __vue_scope_id__$w = undefined;
1488
+ const __vue_scope_id__$v = undefined;
1494
1489
  /* module identifier */
1495
- const __vue_module_identifier__$w = undefined;
1490
+ const __vue_module_identifier__$v = undefined;
1496
1491
  /* functional template */
1497
- const __vue_is_functional_template__$w = false;
1492
+ const __vue_is_functional_template__$v = false;
1498
1493
  /* style inject */
1499
1494
 
1500
1495
  /* style inject SSR */
@@ -1503,22 +1498,22 @@ var __vue_staticRenderFns__$w = [];
1503
1498
 
1504
1499
 
1505
1500
 
1506
- const __vue_component__$w = /*#__PURE__*/normalizeComponent(
1507
- { render: __vue_render__$w, staticRenderFns: __vue_staticRenderFns__$w },
1508
- __vue_inject_styles__$w,
1509
- __vue_script__$w,
1510
- __vue_scope_id__$w,
1511
- __vue_is_functional_template__$w,
1512
- __vue_module_identifier__$w,
1501
+ const __vue_component__$v = /*#__PURE__*/normalizeComponent(
1502
+ { render: __vue_render__$v, staticRenderFns: __vue_staticRenderFns__$v },
1503
+ __vue_inject_styles__$v,
1504
+ __vue_script__$v,
1505
+ __vue_scope_id__$v,
1506
+ __vue_is_functional_template__$v,
1507
+ __vue_module_identifier__$v,
1513
1508
  false,
1514
1509
  undefined,
1515
1510
  undefined,
1516
1511
  undefined
1517
1512
  );
1518
1513
 
1519
- var TextTitle = __vue_component__$w;
1514
+ var TextTitle = __vue_component__$v;
1520
1515
 
1521
- var script$v = Vue.extend({
1516
+ var script$u = Vue.extend({
1522
1517
  name: "matrix",
1523
1518
  components: { Row, Col, Radio, RadioGroup, Divider },
1524
1519
  mixins: [LocaleMixin],
@@ -1564,20 +1559,20 @@ var script$v = Vue.extend({
1564
1559
  });
1565
1560
 
1566
1561
  /* script */
1567
- const __vue_script__$v = script$v;
1562
+ const __vue_script__$u = script$u;
1568
1563
 
1569
1564
  /* template */
1570
- var __vue_render__$v = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},_vm._l((_vm.question.subQuestions),function(subQuestion,index){return _c('div',{key:index},[(!_vm.isPreview)?_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left","size":"small"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.sub_questions', _vm.$rootComponent.currentLanguage)))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"sub-question-title"},[_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+"."+_vm._s(subQuestion.number))]),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(subQuestion.text,true)))]),_vm._v(" "),(_vm.maxScore && _vm.choiceMaxScore)?_c('span',{staticClass:"sub-max-score"},[_vm._v("("+_vm._s(_vm.t("survey_creator.question.max_score", _vm.$rootComponent.currentLanguage))+_vm._s(_vm.choiceMaxScore)+")")]):_vm._e()]),_vm._v(" "),_c('RadioGroup',[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50,"align":"middle"}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Radio',{attrs:{"label":choice.id}},[_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)],1)}),0)};
1571
- var __vue_staticRenderFns__$v = [];
1565
+ var __vue_render__$u = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"question"},_vm._l((_vm.question.subQuestions),function(subQuestion,index){return _c('div',{key:index},[(!_vm.isPreview)?_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left","size":"small"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.sub_questions', _vm.$rootComponent.currentLanguage)))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"sub-question-title"},[_c('span',{staticClass:"number"},[_vm._v(_vm._s(_vm.question.header.number)+"."+_vm._s(subQuestion.number))]),_vm._v(" "),_c('span',{staticClass:"content"},[_vm._v(_vm._s(_vm._f("translate")(subQuestion.text,true)))]),_vm._v(" "),(_vm.maxScore && _vm.choiceMaxScore)?_c('span',{staticClass:"sub-max-score"},[_vm._v("("+_vm._s(_vm.t("survey_creator.question.max_score", _vm.$rootComponent.currentLanguage))+_vm._s(_vm.choiceMaxScore)+")")]):_vm._e()]),_vm._v(" "),_c('RadioGroup',[_c('Row',{attrs:{"type":"flex","justify":"start","gutter":50,"align":"middle"}},_vm._l((_vm.question.choices),function(choice){return _c('Col',{key:choice.id,class:_vm.choiceClasses},[_c('Radio',{attrs:{"label":choice.id}},[_c('span',{staticClass:"choice-title"},[_vm._v(_vm._s(_vm._f("translate")(choice.text,true)))]),_vm._v(" "),(_vm.haveMaxScore)?_c('span',{staticClass:"choice-score"},[_vm._v(_vm._s(("(" + (choice.options.score || 0) + " " + (_vm.t('survey_creator.question.scores', _vm.$rootComponent.currentLanguage)) + ")")))]):_vm._e()])],1)}),1)],1)],1)}),0)};
1566
+ var __vue_staticRenderFns__$u = [];
1572
1567
 
1573
1568
  /* style */
1574
- const __vue_inject_styles__$v = undefined;
1569
+ const __vue_inject_styles__$u = undefined;
1575
1570
  /* scoped */
1576
- const __vue_scope_id__$v = undefined;
1571
+ const __vue_scope_id__$u = undefined;
1577
1572
  /* module identifier */
1578
- const __vue_module_identifier__$v = undefined;
1573
+ const __vue_module_identifier__$u = undefined;
1579
1574
  /* functional template */
1580
- const __vue_is_functional_template__$v = false;
1575
+ const __vue_is_functional_template__$u = false;
1581
1576
  /* style inject */
1582
1577
 
1583
1578
  /* style inject SSR */
@@ -1586,22 +1581,22 @@ var __vue_staticRenderFns__$v = [];
1586
1581
 
1587
1582
 
1588
1583
 
1589
- const __vue_component__$v = /*#__PURE__*/normalizeComponent(
1590
- { render: __vue_render__$v, staticRenderFns: __vue_staticRenderFns__$v },
1591
- __vue_inject_styles__$v,
1592
- __vue_script__$v,
1593
- __vue_scope_id__$v,
1594
- __vue_is_functional_template__$v,
1595
- __vue_module_identifier__$v,
1584
+ const __vue_component__$u = /*#__PURE__*/normalizeComponent(
1585
+ { render: __vue_render__$u, staticRenderFns: __vue_staticRenderFns__$u },
1586
+ __vue_inject_styles__$u,
1587
+ __vue_script__$u,
1588
+ __vue_scope_id__$u,
1589
+ __vue_is_functional_template__$u,
1590
+ __vue_module_identifier__$u,
1596
1591
  false,
1597
1592
  undefined,
1598
1593
  undefined,
1599
1594
  undefined
1600
1595
  );
1601
1596
 
1602
- var Matrix = __vue_component__$v;
1597
+ var Matrix = __vue_component__$u;
1603
1598
 
1604
- var script$u = Vue.extend({
1599
+ var script$t = Vue.extend({
1605
1600
  name: "star",
1606
1601
  mixins: [LocaleMixin],
1607
1602
  props: {
@@ -1624,20 +1619,20 @@ var script$u = Vue.extend({
1624
1619
  });
1625
1620
 
1626
1621
  /* script */
1627
- const __vue_script__$u = script$u;
1622
+ const __vue_script__$t = script$t;
1628
1623
 
1629
1624
  /* template */
1630
- var __vue_render__$u = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc"},[_vm._v(_vm._s(_vm.getDesc()))])};
1631
- var __vue_staticRenderFns__$u = [];
1625
+ var __vue_render__$t = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc"},[_vm._v(_vm._s(_vm.getDesc()))])};
1626
+ var __vue_staticRenderFns__$t = [];
1632
1627
 
1633
1628
  /* style */
1634
- const __vue_inject_styles__$u = undefined;
1629
+ const __vue_inject_styles__$t = undefined;
1635
1630
  /* scoped */
1636
- const __vue_scope_id__$u = undefined;
1631
+ const __vue_scope_id__$t = undefined;
1637
1632
  /* module identifier */
1638
- const __vue_module_identifier__$u = undefined;
1633
+ const __vue_module_identifier__$t = undefined;
1639
1634
  /* functional template */
1640
- const __vue_is_functional_template__$u = false;
1635
+ const __vue_is_functional_template__$t = false;
1641
1636
  /* style inject */
1642
1637
 
1643
1638
  /* style inject SSR */
@@ -1646,20 +1641,20 @@ var __vue_staticRenderFns__$u = [];
1646
1641
 
1647
1642
 
1648
1643
 
1649
- const __vue_component__$u = /*#__PURE__*/normalizeComponent(
1650
- { render: __vue_render__$u, staticRenderFns: __vue_staticRenderFns__$u },
1651
- __vue_inject_styles__$u,
1652
- __vue_script__$u,
1653
- __vue_scope_id__$u,
1654
- __vue_is_functional_template__$u,
1655
- __vue_module_identifier__$u,
1644
+ const __vue_component__$t = /*#__PURE__*/normalizeComponent(
1645
+ { render: __vue_render__$t, staticRenderFns: __vue_staticRenderFns__$t },
1646
+ __vue_inject_styles__$t,
1647
+ __vue_script__$t,
1648
+ __vue_scope_id__$t,
1649
+ __vue_is_functional_template__$t,
1650
+ __vue_module_identifier__$t,
1656
1651
  false,
1657
1652
  undefined,
1658
1653
  undefined,
1659
1654
  undefined
1660
1655
  );
1661
1656
 
1662
- var Star$1 = __vue_component__$u;
1657
+ var Star$1 = __vue_component__$t;
1663
1658
 
1664
1659
  class ExprEvaluationQuestion {
1665
1660
  questions;
@@ -1771,7 +1766,7 @@ class ExprEvaluationQuestion {
1771
1766
  }
1772
1767
 
1773
1768
  const SPLIT_LENGTH = 60;
1774
- var script$t = Vue.extend({
1769
+ var script$s = Vue.extend({
1775
1770
  name: "expr-if",
1776
1771
  mixins: [LocaleMixin],
1777
1772
  components: { Tooltip },
@@ -1779,7 +1774,7 @@ var script$t = Vue.extend({
1779
1774
  data() {
1780
1775
  return {
1781
1776
  desc: "",
1782
- descTitle: "",
1777
+ descTitle: ""
1783
1778
  };
1784
1779
  },
1785
1780
  created() {
@@ -1788,41 +1783,31 @@ var script$t = Vue.extend({
1788
1783
  props: {
1789
1784
  conditions: {
1790
1785
  type: Array,
1791
- required: true,
1792
- },
1786
+ required: true
1787
+ }
1793
1788
  },
1794
1789
  computed: {
1795
1790
  questions() {
1796
1791
  return _.cloneDeep(this.$rootComponent.currentSurvey.questions);
1797
- },
1792
+ }
1798
1793
  },
1799
1794
  methods: {
1800
1795
  getDesc(condition) {
1801
1796
  let payload = condition.payload;
1802
- if (condition.type == "SCORE") {
1803
- return this.t("survey_creator.question.evaluation.condition.score_template", [payload.minScore, payload.operator, payload.maxScore]);
1804
- }
1805
- else {
1806
- let numbers = new ExprEvaluationQuestion(this.questions, payload.scope).calculateNumbers();
1807
- let scope = _.join(_.map(numbers, (number) => {
1808
- if (_.isArray(_.head(number))) {
1809
- return _.join(_.map(number, (e) => _.join(e, "-")), ", ");
1810
- }
1811
- return _.join(number, "-");
1812
- }), ", ");
1813
- if (condition.type == "ASSIGN") {
1814
- return this.t("survey_creator.question.evaluation.condition.assign_template", [
1815
- scope,
1816
- _.join(payload.values, "、"),
1817
- _.unescape(payload.operator),
1818
- payload.size,
1819
- ]);
1820
- }
1821
- else if (condition.type == "AUTO") {
1822
- return this.t("survey_creator.question.evaluation.condition.auto_template", [scope, _.join(payload.values, "、")]);
1797
+ let numbers = new ExprEvaluationQuestion(this.questions, payload.scope).calculateNumbers();
1798
+ let scope = _.join(_.map(numbers, number => {
1799
+ if (_.isArray(_.head(number))) {
1800
+ return _.join(_.map(number, e => _.join(e, "-")), ", ");
1823
1801
  }
1824
- return "";
1802
+ return _.join(number, "-");
1803
+ }), ", ");
1804
+ if (condition.type == "ASSIGN") {
1805
+ return this.t('survey_creator.question.evaluation.condition.assign_template', [scope, _.join(payload.values, "、"), _.unescape(payload.operator), payload.size]);
1806
+ }
1807
+ else if (condition.type == "AUTO") {
1808
+ return this.t('survey_creator.question.evaluation.condition.auto_template', [scope, _.join(payload.values, "、")]);
1825
1809
  }
1810
+ return "";
1826
1811
  },
1827
1812
  getChineseLength(_str) {
1828
1813
  _str = _.trim(_str);
@@ -1834,38 +1819,37 @@ var script$t = Vue.extend({
1834
1819
  return chinese ? chinese.length : 0;
1835
1820
  },
1836
1821
  initialDesc() {
1837
- let desc = "";
1822
+ let desc = '';
1838
1823
  let ds = _.map(this.conditions, (c) => {
1839
1824
  return this.getDesc(c);
1840
1825
  });
1841
- desc = _.join(ds, "<br>");
1826
+ desc = _.join(ds, '<br>');
1842
1827
  this.desc = desc;
1843
1828
  let strLength = desc.length;
1844
1829
  let cLength = this.getChineseLength(desc.substring(0, SPLIT_LENGTH));
1845
1830
  if (strLength > SPLIT_LENGTH) {
1846
- this.desc =
1847
- desc.substring(0, SPLIT_LENGTH - _.ceil(cLength / 2)) + "...";
1831
+ this.desc = desc.substring(0, SPLIT_LENGTH - _.ceil(cLength / 2)) + "...";
1848
1832
  }
1849
1833
  this.descTitle = desc;
1850
- },
1851
- },
1834
+ }
1835
+ }
1852
1836
  });
1853
1837
 
1854
1838
  /* script */
1855
- const __vue_script__$t = script$t;
1839
+ const __vue_script__$s = script$s;
1856
1840
 
1857
1841
  /* template */
1858
- var __vue_render__$t = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Tooltip',{attrs:{"max-width":"200"}},[_c('span',{attrs:{"slot":"content"},domProps:{"innerHTML":_vm._s(this.descTitle)},slot:"content"}),_vm._v(" "),_c('span',{staticClass:"desc",domProps:{"innerHTML":_vm._s(this.desc)}})])};
1859
- var __vue_staticRenderFns__$t = [];
1842
+ var __vue_render__$s = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Tooltip',{attrs:{"max-width":"200"}},[_c('span',{attrs:{"slot":"content"},domProps:{"innerHTML":_vm._s(this.descTitle)},slot:"content"}),_vm._v(" "),_c('span',{staticClass:"desc",domProps:{"innerHTML":_vm._s(this.desc)}})])};
1843
+ var __vue_staticRenderFns__$s = [];
1860
1844
 
1861
1845
  /* style */
1862
- const __vue_inject_styles__$t = undefined;
1846
+ const __vue_inject_styles__$s = undefined;
1863
1847
  /* scoped */
1864
- const __vue_scope_id__$t = undefined;
1848
+ const __vue_scope_id__$s = undefined;
1865
1849
  /* module identifier */
1866
- const __vue_module_identifier__$t = undefined;
1850
+ const __vue_module_identifier__$s = undefined;
1867
1851
  /* functional template */
1868
- const __vue_is_functional_template__$t = false;
1852
+ const __vue_is_functional_template__$s = false;
1869
1853
  /* style inject */
1870
1854
 
1871
1855
  /* style inject SSR */
@@ -1874,22 +1858,22 @@ var __vue_staticRenderFns__$t = [];
1874
1858
 
1875
1859
 
1876
1860
 
1877
- const __vue_component__$t = /*#__PURE__*/normalizeComponent(
1878
- { render: __vue_render__$t, staticRenderFns: __vue_staticRenderFns__$t },
1879
- __vue_inject_styles__$t,
1880
- __vue_script__$t,
1881
- __vue_scope_id__$t,
1882
- __vue_is_functional_template__$t,
1883
- __vue_module_identifier__$t,
1861
+ const __vue_component__$s = /*#__PURE__*/normalizeComponent(
1862
+ { render: __vue_render__$s, staticRenderFns: __vue_staticRenderFns__$s },
1863
+ __vue_inject_styles__$s,
1864
+ __vue_script__$s,
1865
+ __vue_scope_id__$s,
1866
+ __vue_is_functional_template__$s,
1867
+ __vue_module_identifier__$s,
1884
1868
  false,
1885
1869
  undefined,
1886
1870
  undefined,
1887
1871
  undefined
1888
1872
  );
1889
1873
 
1890
- var If$1 = __vue_component__$t;
1874
+ var If$1 = __vue_component__$s;
1891
1875
 
1892
- var script$s = Vue.extend({
1876
+ var script$r = Vue.extend({
1893
1877
  name: "expr-else",
1894
1878
  mixins: [LocaleMixin],
1895
1879
  props: {
@@ -1900,20 +1884,20 @@ var script$s = Vue.extend({
1900
1884
  });
1901
1885
 
1902
1886
  /* script */
1903
- const __vue_script__$s = script$s;
1887
+ const __vue_script__$r = script$r;
1904
1888
 
1905
1889
  /* template */
1906
- var __vue_render__$s = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(_vm.t('survey_creator.question.evaluation.condition.other'))}})};
1907
- var __vue_staticRenderFns__$s = [];
1890
+ var __vue_render__$r = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{staticClass:"desc",domProps:{"innerHTML":_vm._s(_vm.t('survey_creator.question.evaluation.condition.other'))}})};
1891
+ var __vue_staticRenderFns__$r = [];
1908
1892
 
1909
1893
  /* style */
1910
- const __vue_inject_styles__$s = undefined;
1894
+ const __vue_inject_styles__$r = undefined;
1911
1895
  /* scoped */
1912
- const __vue_scope_id__$s = undefined;
1896
+ const __vue_scope_id__$r = undefined;
1913
1897
  /* module identifier */
1914
- const __vue_module_identifier__$s = undefined;
1898
+ const __vue_module_identifier__$r = undefined;
1915
1899
  /* functional template */
1916
- const __vue_is_functional_template__$s = false;
1900
+ const __vue_is_functional_template__$r = false;
1917
1901
  /* style inject */
1918
1902
 
1919
1903
  /* style inject SSR */
@@ -1922,22 +1906,22 @@ var __vue_staticRenderFns__$s = [];
1922
1906
 
1923
1907
 
1924
1908
 
1925
- const __vue_component__$s = /*#__PURE__*/normalizeComponent(
1926
- { render: __vue_render__$s, staticRenderFns: __vue_staticRenderFns__$s },
1927
- __vue_inject_styles__$s,
1928
- __vue_script__$s,
1929
- __vue_scope_id__$s,
1930
- __vue_is_functional_template__$s,
1931
- __vue_module_identifier__$s,
1909
+ const __vue_component__$r = /*#__PURE__*/normalizeComponent(
1910
+ { render: __vue_render__$r, staticRenderFns: __vue_staticRenderFns__$r },
1911
+ __vue_inject_styles__$r,
1912
+ __vue_script__$r,
1913
+ __vue_scope_id__$r,
1914
+ __vue_is_functional_template__$r,
1915
+ __vue_module_identifier__$r,
1932
1916
  false,
1933
1917
  undefined,
1934
1918
  undefined,
1935
1919
  undefined
1936
1920
  );
1937
1921
 
1938
- var Else$1 = __vue_component__$s;
1922
+ var Else$1 = __vue_component__$r;
1939
1923
 
1940
- var script$r = Vue.extend({
1924
+ var script$q = Vue.extend({
1941
1925
  name: "expr",
1942
1926
  props: {
1943
1927
  item: {
@@ -1952,20 +1936,20 @@ var script$r = Vue.extend({
1952
1936
  });
1953
1937
 
1954
1938
  /* script */
1955
- const __vue_script__$r = script$r;
1939
+ const __vue_script__$q = script$q;
1956
1940
 
1957
1941
  /* template */
1958
- var __vue_render__$r = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.item.type,{tag:"component",attrs:{"conditions":_vm.item.conditions}})};
1959
- var __vue_staticRenderFns__$r = [];
1942
+ var __vue_render__$q = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.item.type,{tag:"component",attrs:{"conditions":_vm.item.conditions}})};
1943
+ var __vue_staticRenderFns__$q = [];
1960
1944
 
1961
1945
  /* style */
1962
- const __vue_inject_styles__$r = undefined;
1946
+ const __vue_inject_styles__$q = undefined;
1963
1947
  /* scoped */
1964
- const __vue_scope_id__$r = undefined;
1948
+ const __vue_scope_id__$q = undefined;
1965
1949
  /* module identifier */
1966
- const __vue_module_identifier__$r = undefined;
1950
+ const __vue_module_identifier__$q = undefined;
1967
1951
  /* functional template */
1968
- const __vue_is_functional_template__$r = false;
1952
+ const __vue_is_functional_template__$q = false;
1969
1953
  /* style inject */
1970
1954
 
1971
1955
  /* style inject SSR */
@@ -1974,22 +1958,22 @@ var __vue_staticRenderFns__$r = [];
1974
1958
 
1975
1959
 
1976
1960
 
1977
- const __vue_component__$r = /*#__PURE__*/normalizeComponent(
1978
- { render: __vue_render__$r, staticRenderFns: __vue_staticRenderFns__$r },
1979
- __vue_inject_styles__$r,
1980
- __vue_script__$r,
1981
- __vue_scope_id__$r,
1982
- __vue_is_functional_template__$r,
1983
- __vue_module_identifier__$r,
1961
+ const __vue_component__$q = /*#__PURE__*/normalizeComponent(
1962
+ { render: __vue_render__$q, staticRenderFns: __vue_staticRenderFns__$q },
1963
+ __vue_inject_styles__$q,
1964
+ __vue_script__$q,
1965
+ __vue_scope_id__$q,
1966
+ __vue_is_functional_template__$q,
1967
+ __vue_module_identifier__$q,
1984
1968
  false,
1985
1969
  undefined,
1986
1970
  undefined,
1987
1971
  undefined
1988
1972
  );
1989
1973
 
1990
- var Expr$1 = __vue_component__$r;
1974
+ var Expr$1 = __vue_component__$q;
1991
1975
 
1992
- var script$q = Vue.extend({
1976
+ var script$p = Vue.extend({
1993
1977
  name: "Evaluation",
1994
1978
  components: {
1995
1979
  Row, Col, Checkbox, CheckboxGroup, Card, Icon,
@@ -2006,20 +1990,20 @@ var script$q = Vue.extend({
2006
1990
  });
2007
1991
 
2008
1992
  /* script */
2009
- const __vue_script__$q = script$q;
1993
+ const __vue_script__$p = script$p;
2010
1994
 
2011
1995
  /* template */
2012
- var __vue_render__$q = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"col-padding"},[_c('Card',{staticClass:"evaluation-cards-default",attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":"ios-checkmark-circle-outline","size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm._f("translate")(item.text,true)))]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
2013
- var __vue_staticRenderFns__$q = [];
1996
+ var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.question.evaluationItems.length > 0)?_c('Row',{attrs:{"type":"flex","justify":"start","gutter":24}},_vm._l((_vm.question.evaluationItems),function(item){return _c('Col',{key:item.id,staticClass:"col-padding"},[_c('Card',{staticClass:"evaluation-cards-default",attrs:{"dis-hover":""}},[_c('div',{staticClass:"card-title",attrs:{"slot":"title"},slot:"title"},[_c('Icon',{staticClass:"icon",attrs:{"type":"ios-checkmark-circle-outline","size":36}})],1),_vm._v(" "),_c('div',{staticClass:"card-content"},[_c('p',{staticClass:"text"},[_vm._v(_vm._s(_vm._f("translate")(item.text,true)))]),_vm._v(" "),_c(_vm.question.options.evaluationType,{tag:"component",attrs:{"item":item}})],1)])],1)}),1):_vm._e()],1)};
1997
+ var __vue_staticRenderFns__$p = [];
2014
1998
 
2015
1999
  /* style */
2016
- const __vue_inject_styles__$q = undefined;
2000
+ const __vue_inject_styles__$p = undefined;
2017
2001
  /* scoped */
2018
- const __vue_scope_id__$q = undefined;
2002
+ const __vue_scope_id__$p = undefined;
2019
2003
  /* module identifier */
2020
- const __vue_module_identifier__$q = undefined;
2004
+ const __vue_module_identifier__$p = undefined;
2021
2005
  /* functional template */
2022
- const __vue_is_functional_template__$q = false;
2006
+ const __vue_is_functional_template__$p = false;
2023
2007
  /* style inject */
2024
2008
 
2025
2009
  /* style inject SSR */
@@ -2028,22 +2012,22 @@ var __vue_staticRenderFns__$q = [];
2028
2012
 
2029
2013
 
2030
2014
 
2031
- const __vue_component__$q = /*#__PURE__*/normalizeComponent(
2032
- { render: __vue_render__$q, staticRenderFns: __vue_staticRenderFns__$q },
2033
- __vue_inject_styles__$q,
2034
- __vue_script__$q,
2035
- __vue_scope_id__$q,
2036
- __vue_is_functional_template__$q,
2037
- __vue_module_identifier__$q,
2015
+ const __vue_component__$p = /*#__PURE__*/normalizeComponent(
2016
+ { render: __vue_render__$p, staticRenderFns: __vue_staticRenderFns__$p },
2017
+ __vue_inject_styles__$p,
2018
+ __vue_script__$p,
2019
+ __vue_scope_id__$p,
2020
+ __vue_is_functional_template__$p,
2021
+ __vue_module_identifier__$p,
2038
2022
  false,
2039
2023
  undefined,
2040
2024
  undefined,
2041
2025
  undefined
2042
2026
  );
2043
2027
 
2044
- var Evaluation = __vue_component__$q;
2028
+ var Evaluation = __vue_component__$p;
2045
2029
 
2046
- var script$p = Vue.extend({
2030
+ var script$o = Vue.extend({
2047
2031
  name: "editor-question-row",
2048
2032
  components: {
2049
2033
  Row,
@@ -2075,20 +2059,20 @@ var script$p = Vue.extend({
2075
2059
  });
2076
2060
 
2077
2061
  /* script */
2078
- const __vue_script__$p = script$p;
2062
+ const __vue_script__$o = script$o;
2079
2063
 
2080
2064
  /* template */
2081
- var __vue_render__$p = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{staticClass:"question-row",attrs:{"padding":0,"bordered":false,"dis-hover":true}},[_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.types." + (_vm.question.type))))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle","gutter":20}},[_c('Col',{staticClass:"question-row-move"},[_c('Icon',{attrs:{"custom":"i-icon icon-activity-drag","size":"15","color":"#dcdee2"}})],1),_vm._v(" "),_c('Col',{staticClass:"question-row-content"},[_c('question-default-layout',{attrs:{"question":_vm.question}},[_c(_vm.question.type,{tag:"component",attrs:{"question":_vm.question}})],1)],1)],1)],1)};
2082
- var __vue_staticRenderFns__$p = [];
2065
+ var __vue_render__$o = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{staticClass:"question-row",attrs:{"padding":0,"bordered":false,"dis-hover":true}},[_c('Divider',{staticClass:"question-type-desc",attrs:{"orientation":"left"}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.types." + (_vm.question.type))))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle","gutter":20}},[_c('Col',{staticClass:"question-row-move"},[_c('Icon',{attrs:{"custom":"i-icon icon-activity-drag","size":"15","color":"#dcdee2"}})],1),_vm._v(" "),_c('Col',{staticClass:"question-row-content"},[_c('question-default-layout',{attrs:{"question":_vm.question}},[_c(_vm.question.type,{tag:"component",attrs:{"question":_vm.question}})],1)],1)],1)],1)};
2066
+ var __vue_staticRenderFns__$o = [];
2083
2067
 
2084
2068
  /* style */
2085
- const __vue_inject_styles__$p = undefined;
2069
+ const __vue_inject_styles__$o = undefined;
2086
2070
  /* scoped */
2087
- const __vue_scope_id__$p = undefined;
2071
+ const __vue_scope_id__$o = undefined;
2088
2072
  /* module identifier */
2089
- const __vue_module_identifier__$p = undefined;
2073
+ const __vue_module_identifier__$o = undefined;
2090
2074
  /* functional template */
2091
- const __vue_is_functional_template__$p = false;
2075
+ const __vue_is_functional_template__$o = false;
2092
2076
  /* style inject */
2093
2077
 
2094
2078
  /* style inject SSR */
@@ -2097,22 +2081,22 @@ var __vue_staticRenderFns__$p = [];
2097
2081
 
2098
2082
 
2099
2083
 
2100
- const __vue_component__$p = /*#__PURE__*/normalizeComponent(
2101
- { render: __vue_render__$p, staticRenderFns: __vue_staticRenderFns__$p },
2102
- __vue_inject_styles__$p,
2103
- __vue_script__$p,
2104
- __vue_scope_id__$p,
2105
- __vue_is_functional_template__$p,
2106
- __vue_module_identifier__$p,
2084
+ const __vue_component__$o = /*#__PURE__*/normalizeComponent(
2085
+ { render: __vue_render__$o, staticRenderFns: __vue_staticRenderFns__$o },
2086
+ __vue_inject_styles__$o,
2087
+ __vue_script__$o,
2088
+ __vue_scope_id__$o,
2089
+ __vue_is_functional_template__$o,
2090
+ __vue_module_identifier__$o,
2107
2091
  false,
2108
2092
  undefined,
2109
2093
  undefined,
2110
2094
  undefined
2111
2095
  );
2112
2096
 
2113
- var EditorQuestionRow = __vue_component__$p;
2097
+ var EditorQuestionRow = __vue_component__$o;
2114
2098
 
2115
- var script$o = Vue.extend({
2099
+ var script$n = Vue.extend({
2116
2100
  name: "editor-questions",
2117
2101
  components: { EditorQuestionRow, draggable },
2118
2102
  mixins: [LocaleMixin],
@@ -2138,18 +2122,18 @@ var script$o = Vue.extend({
2138
2122
  var __$_require_images_empty_svg__ = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4NiIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDg2IDgwIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iI0Y1RjVGNyIgZD0iTTc5IDY1LjY4djIuOTJjMCAyLjc2LTIuMjM5IDUtNSA1SDEyYy0yLjc2MiAwLTUtMi4yNC01LTV2LTIuOTJjLTQuNDIgMS40MTQtNyAzLjEwNC03IDQuOTIgMCA0Ljk3IDE5LjI1MSA5IDQzIDkgMjMuNzQ4IDAgNDMtNC4wMyA0My05IDAtMS44MTYtMi41NzktMy41MDYtNy00LjkyIi8+CiAgICAgICAgPHBhdGggZmlsbD0iI0RDREVFOCIgZD0iTTU3LjQxNCA1Mi4xNDljLS4yNDUuODU5LTEuMDMgMS40NS0xLjkyMyAxLjQ1SDMwLjUwOGMtLjg5MyAwLTEuNjc4LS41OTEtMS45MjMtMS40NWwtLjU0OS0xLjkyM2MtLjYxMy0yLjE0Ni0yLjU3NS0zLjYyNi00LjgwNy0zLjYyNkg3djIyYzAgMi43NjIgMi4yMzggNSA1IDVoNjJjMi43NjEgMCA1LTIuMjM4IDUtNXYtMjJINjIuNzcyYy0yLjIzMyAwLTQuMTk1IDEuNDgtNC44MDggMy42MjZsLS41NSAxLjkyM3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRjBGMkY1IiBkPSJNNTkgNDMuNkgyN2MtLjU1MyAwLTEtLjQ0OC0xLTEgMC0uNTUzLjQ0Ny0xIDEtMWgzMmMuNTUyIDAgMSAuNDQ3IDEgMSAwIC41NTItLjQ0OCAxLTEgMXptMC05SDI3Yy0uNTUzIDAtMS0uNDQ4LTEtMSAwLS41NTMuNDQ3LTEgMS0xaDMyYy41NTIgMCAxIC40NDcgMSAxIDAgLjU1Mi0uNDQ4IDEtMSAxem0tMzEtOGMtMS4xMDQgMC0yLS44OTYtMi0ydi0xNGMwLTEuMTA0Ljg5Ni0yIDItMmgzMGMxLjEwNCAwIDIgLjg5NiAyIDJ2MTRjMCAxLjEwNC0uODk2IDItMiAySDI4eiIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM5MTk2QUEiIGQ9Ik02OC42IDQ2LjZ2LTEuNUg2OHYtMi41ODRoLjZ2LTIuOTVINjhWMzcuMDFoLjZWMzQuNmwxMC40IDEySDY4LjZ6TTE3LjQgMzQuNTk5djIuNDM5aC42djIuNTU2aC0uNnYyLjk0OWguNlY0NS4xaC0uNnYxLjVIN2wxMC40LTEyLjAwMXoiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjRENERUU4IiBkPSJNMTcuNDAxIDQ2LjZ2LTEuNUgxOC42djEuNWgtMS4xOTl6TTI3Ljc0OSAxLjJWMGgyLjk0OXYxLjJoLTIuOTQ5em01LjUwNiAwVjBoMi45NDl2MS4yaC0yLjk0OXptNS41MDQgMFYwaDIuOTQ5djEuMmgtMi45NDl6bTUuNTA2IDBWMGgyLjk0OXYxLjJoLTIuOTQ5em01LjUwNSAwVjBoMi45NDl2MS4ySDQ5Ljc3em01LjUwNiAwVjBoMi45NDl2MS4yaC0yLjk0OXptOC4zNjMuMDQ2QzYzLjQzIDEuMjE0IDYzLjIxNyAxLjIgNjMgMS4yaC0yLjIxOVYwSDYzYy4yNzggMCAuNTQ5LjAyLjgxNS4wNThsLS4xNzYgMS4xODh6bS00MS4zMDMuMDA0TDIyLjE1Ny4wNjJDMjIuNDMyLjAyMiAyMi43MTQgMCAyMyAwaDIuMTkzdjEuMkgyM2MtLjIyNSAwLS40NDcuMDE2LS42NjQuMDV6bTQ0LjgzNiAyLjk0N2MtLjI3OC0uODI2LS43OTItMS41NDYtMS40ODYtMi4wODNsLjczNC0uOTQ5Yy44ODMuNjgyIDEuNTM2IDEuNTk4IDEuODg5IDIuNjVsLTEuMTM3LjM4MnpNMTguODIgNC4yMmwtMS4xMzktLjM3N2MuMzQ4LTEuMDUyLjk5NS0xLjk3MiAxLjg3NC0yLjY1OWwuNzM4Ljk0NWMtLjY5LjU0LTEuMiAxLjI2My0xLjQ3MyAyLjA5MXptNDguNTgxIDUuMjYzVjYuNTM0SDY4LjZ2Mi45NWgtMS4xOTl6bS01MCAuMDI3VjYuNTYxSDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc4VjEyLjA0SDY4LjZ2Mi45NWgtMS4xOTl6bS01MCAuMDI4di0yLjk1SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc4di0yLjk0OUg2OC42djIuOTVoLTEuMTk5em0tNTAgLjAyN3YtMi45NDlIMTguNnYyLjk1aC0xLjE5OXptNTAgNS40NzhWMjMuMDVINjguNlYyNmgtMS4xOTl6bS01MCAuMDI4di0yLjk1SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDUuNDc3di0yLjk0OUg2OC42djIuOTVoLTEuMTk5em0tNTAgLjAyOHYtMi45NDlIMTguNnYyLjk1aC0xLjE5OXptNTAgNS40NzdWMzQuMDZINjguNnYyLjk1aC0xLjE5OXptLTUwIC4wM3YtMi45NUgxOC42djIuOTVoLTEuMTk5em01MCA1LjQ3NnYtMi45NDlINjguNnYyLjk1aC0xLjE5OXptLTUwIC4wMjh2LTIuOTQ5SDE4LjZ2Mi45NWgtMS4xOTl6bTUwIDQuMDU2di0xLjVINjguNnYxLjVoLTEuMTk5eiIvPgogICAgPC9nPgo8L3N2Zz4K";
2139
2123
 
2140
2124
  /* script */
2141
- const __vue_script__$o = script$o;
2142
- var __vue_render__$o = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.survey.questions.length > 0)?_c('draggable',{staticClass:"questions-wrapper",attrs:{"draggable":".question-row"},on:{"start":function($event){_vm.drag=true;},"end":_vm.dragEnd},model:{value:(_vm.survey.questions),callback:function ($$v) {_vm.$set(_vm.survey, "questions", $$v);},expression:"survey.questions"}},[_c('transition-group',_vm._l((_vm.survey.questions),function(question,index){return _c('editor-question-row',{key:question.id,class:{'question-row-active': question.active},attrs:{"question":question,"index":index,"id":question.id},nativeOn:{"click":function($event){return _vm.chooseQuestion(question)}}})}),1)],1):_c('div',{staticClass:"no-data"},[_c('img',{staticClass:"empty-icon",attrs:{"src":__$_require_images_empty_svg__}}),_vm._v(" "),_c('p',{staticClass:"empty-desc"},[_vm._v(_vm._s(_vm.t('survey_creator.question.no_data')))])])],1)};
2143
- var __vue_staticRenderFns__$o = [];
2125
+ const __vue_script__$n = script$n;
2126
+ var __vue_render__$n = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.survey.questions.length > 0)?_c('draggable',{staticClass:"questions-wrapper",attrs:{"draggable":".question-row"},on:{"start":function($event){_vm.drag=true;},"end":_vm.dragEnd},model:{value:(_vm.survey.questions),callback:function ($$v) {_vm.$set(_vm.survey, "questions", $$v);},expression:"survey.questions"}},[_c('transition-group',_vm._l((_vm.survey.questions),function(question,index){return _c('editor-question-row',{key:question.id,class:{'question-row-active': question.active},attrs:{"question":question,"index":index,"id":question.id},nativeOn:{"click":function($event){return _vm.chooseQuestion(question)}}})}),1)],1):_c('div',{staticClass:"no-data"},[_c('img',{staticClass:"empty-icon",attrs:{"src":__$_require_images_empty_svg__}}),_vm._v(" "),_c('p',{staticClass:"empty-desc"},[_vm._v(_vm._s(_vm.t('survey_creator.question.no_data')))])])],1)};
2127
+ var __vue_staticRenderFns__$n = [];
2144
2128
 
2145
2129
  /* style */
2146
- const __vue_inject_styles__$o = undefined;
2130
+ const __vue_inject_styles__$n = undefined;
2147
2131
  /* scoped */
2148
- const __vue_scope_id__$o = undefined;
2132
+ const __vue_scope_id__$n = undefined;
2149
2133
  /* module identifier */
2150
- const __vue_module_identifier__$o = undefined;
2134
+ const __vue_module_identifier__$n = undefined;
2151
2135
  /* functional template */
2152
- const __vue_is_functional_template__$o = false;
2136
+ const __vue_is_functional_template__$n = false;
2153
2137
  /* style inject */
2154
2138
 
2155
2139
  /* style inject SSR */
@@ -2158,22 +2142,22 @@ var __vue_staticRenderFns__$o = [];
2158
2142
 
2159
2143
 
2160
2144
 
2161
- const __vue_component__$o = /*#__PURE__*/normalizeComponent(
2162
- { render: __vue_render__$o, staticRenderFns: __vue_staticRenderFns__$o },
2163
- __vue_inject_styles__$o,
2164
- __vue_script__$o,
2165
- __vue_scope_id__$o,
2166
- __vue_is_functional_template__$o,
2167
- __vue_module_identifier__$o,
2145
+ const __vue_component__$n = /*#__PURE__*/normalizeComponent(
2146
+ { render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
2147
+ __vue_inject_styles__$n,
2148
+ __vue_script__$n,
2149
+ __vue_scope_id__$n,
2150
+ __vue_is_functional_template__$n,
2151
+ __vue_module_identifier__$n,
2168
2152
  false,
2169
2153
  undefined,
2170
2154
  undefined,
2171
2155
  undefined
2172
2156
  );
2173
2157
 
2174
- var EditQuestions = __vue_component__$o;
2158
+ var EditQuestions = __vue_component__$n;
2175
2159
 
2176
- var script$n = Vue.extend({
2160
+ var script$m = Vue.extend({
2177
2161
  name: "survey-editor",
2178
2162
  mixins: [LocaleMixin],
2179
2163
  components: { Card, Row, Col, Button, EditQuestions },
@@ -2190,20 +2174,20 @@ var script$n = Vue.extend({
2190
2174
  });
2191
2175
 
2192
2176
  /* script */
2193
- const __vue_script__$n = script$n;
2177
+ const __vue_script__$m = script$m;
2194
2178
 
2195
2179
  /* template */
2196
- var __vue_render__$n = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-editor-wrapper"},[_c('Card',{attrs:{"shadow":""}},[_c('edit-questions',{attrs:{"survey":_vm.survey}})],1)],1)};
2197
- var __vue_staticRenderFns__$n = [];
2180
+ var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"survey-editor-wrapper"},[_c('Card',{attrs:{"shadow":""}},[_c('edit-questions',{attrs:{"survey":_vm.survey}})],1)],1)};
2181
+ var __vue_staticRenderFns__$m = [];
2198
2182
 
2199
2183
  /* style */
2200
- const __vue_inject_styles__$n = undefined;
2184
+ const __vue_inject_styles__$m = undefined;
2201
2185
  /* scoped */
2202
- const __vue_scope_id__$n = undefined;
2186
+ const __vue_scope_id__$m = undefined;
2203
2187
  /* module identifier */
2204
- const __vue_module_identifier__$n = undefined;
2188
+ const __vue_module_identifier__$m = undefined;
2205
2189
  /* functional template */
2206
- const __vue_is_functional_template__$n = false;
2190
+ const __vue_is_functional_template__$m = false;
2207
2191
  /* style inject */
2208
2192
 
2209
2193
  /* style inject SSR */
@@ -2212,20 +2196,20 @@ var __vue_staticRenderFns__$n = [];
2212
2196
 
2213
2197
 
2214
2198
 
2215
- const __vue_component__$n = /*#__PURE__*/normalizeComponent(
2216
- { render: __vue_render__$n, staticRenderFns: __vue_staticRenderFns__$n },
2217
- __vue_inject_styles__$n,
2218
- __vue_script__$n,
2219
- __vue_scope_id__$n,
2220
- __vue_is_functional_template__$n,
2221
- __vue_module_identifier__$n,
2199
+ const __vue_component__$m = /*#__PURE__*/normalizeComponent(
2200
+ { render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
2201
+ __vue_inject_styles__$m,
2202
+ __vue_script__$m,
2203
+ __vue_scope_id__$m,
2204
+ __vue_is_functional_template__$m,
2205
+ __vue_module_identifier__$m,
2222
2206
  false,
2223
2207
  undefined,
2224
2208
  undefined,
2225
2209
  undefined
2226
2210
  );
2227
2211
 
2228
- var SurveyEditor = __vue_component__$n;
2212
+ var SurveyEditor = __vue_component__$m;
2229
2213
 
2230
2214
  var questionFormMixin = Vue.extend({
2231
2215
  inject: ["$rootComponent"],
@@ -2251,7 +2235,7 @@ var questionFormMixin = Vue.extend({
2251
2235
  methods: {}
2252
2236
  });
2253
2237
 
2254
- var script$m = Vue.extend({
2238
+ var script$l = Vue.extend({
2255
2239
  name: "single-selection-form",
2256
2240
  components: {
2257
2241
  Form,
@@ -2322,10 +2306,10 @@ var script$m = Vue.extend({
2322
2306
  });
2323
2307
 
2324
2308
  /* script */
2325
- const __vue_script__$m = script$m;
2309
+ const __vue_script__$l = script$l;
2326
2310
 
2327
2311
  /* template */
2328
- var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',{staticClass:"question-options"},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.questionRequired'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.scoringEnabledChange},model:{value:(_vm.editQuestion.options.scoringEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "scoringEnabled", $$v);},expression:"editQuestion.options.scoringEnabled"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.scoringEnabled'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.starEnabledChange},model:{value:(_vm.editQuestion.options.starEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starEnabled", $$v);},expression:"editQuestion.options.starEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starEnabled'))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1)])],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"23"}},[_c('Input',{attrs:{"maxlength":500,"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, $$v);},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('draggable',{staticClass:"question-choices-wrapper",attrs:{"draggable":".question-choice"},on:{"start":function($event){_vm.drag=true;},"end":function($event){_vm.drag=false;}},model:{value:(_vm.editQuestion.choices),callback:function ($$v) {_vm.$set(_vm.editQuestion, "choices", $$v);},expression:"editQuestion.choices"}},_vm._l((_vm.editQuestion.choices),function(option,index){return _c('div',{key:index,staticClass:"question-choice"},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.optionalRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"12"}},[_c('Input',{model:{value:(option.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(option.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"option.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.choices.length < _vm.choiceLimit.max)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addOption()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.choices.length > _vm.choiceLimit.min)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteOption(index)}}}):_vm._e()],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"4"}},[_c('Form-item',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],attrs:{"prop":'choices.' + index + '.options.score',"label-width":80,"rules":[
2312
+ var __vue_render__$l = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',{staticClass:"question-options"},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.questionRequired'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.scoringEnabledChange},model:{value:(_vm.editQuestion.options.scoringEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "scoringEnabled", $$v);},expression:"editQuestion.options.scoringEnabled"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.scoringEnabled'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.starEnabledChange},model:{value:(_vm.editQuestion.options.starEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starEnabled", $$v);},expression:"editQuestion.options.starEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starEnabled'))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1)])],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"23"}},[_c('Input',{attrs:{"maxlength":500,"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, $$v);},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('draggable',{staticClass:"question-choices-wrapper",attrs:{"draggable":".question-choice"},on:{"start":function($event){_vm.drag=true;},"end":function($event){_vm.drag=false;}},model:{value:(_vm.editQuestion.choices),callback:function ($$v) {_vm.$set(_vm.editQuestion, "choices", $$v);},expression:"editQuestion.choices"}},_vm._l((_vm.editQuestion.choices),function(option,index){return _c('div',{key:index,staticClass:"question-choice"},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.optionalRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"12"}},[_c('Input',{model:{value:(option.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(option.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"option.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.choices.length < _vm.choiceLimit.max)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addOption()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.choices.length > _vm.choiceLimit.min)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteOption(index)}}}):_vm._e()],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"4"}},[_c('Form-item',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],attrs:{"prop":'choices.' + index + '.options.score',"label-width":80,"rules":[
2329
2313
  { required: _vm.editQuestion.options.scoringEnabled,
2330
2314
  message: _vm.t('survey_creator.question.scoreRequiredTip')},
2331
2315
  { pattern: /^(([1-9][0-9][0-9]|[1-9][0-9]|[0-9])(\.\d{1,2})?|0\.\d{1,2})$/,
@@ -2334,42 +2318,42 @@ var __vue_render__$m = function () {var _vm=this;var _h=_vm.$createElement;var _
2334
2318
  { message: _vm.t('survey_creator.question.starLeastOneTip'),
2335
2319
  validator:_vm.validatedStar}
2336
2320
  ]}},[_c('Checkbox',{on:{"on-change":function($event){return _vm.starChange(option.id)}},model:{value:(option.options.star),callback:function ($$v) {_vm.$set(option.options, "star", $$v);},expression:"option.options.star"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.optionalStarTip'))+"\n ")])],1)],1)],1)],1)],1)}),0)],1)};
2337
- var __vue_staticRenderFns__$m = [];
2321
+ var __vue_staticRenderFns__$l = [];
2338
2322
 
2339
2323
  /* style */
2340
- const __vue_inject_styles__$m = function (inject) {
2324
+ const __vue_inject_styles__$l = function (inject) {
2341
2325
  if (!inject) return
2342
2326
  inject("data-v-281b8cd1_0", { source: ".question-options[data-v-281b8cd1]{padding-bottom:10px;padding-left:80px}", map: undefined, media: undefined });
2343
2327
 
2344
2328
  };
2345
2329
  /* scoped */
2346
- const __vue_scope_id__$m = "data-v-281b8cd1";
2330
+ const __vue_scope_id__$l = "data-v-281b8cd1";
2347
2331
  /* module identifier */
2348
- const __vue_module_identifier__$m = undefined;
2332
+ const __vue_module_identifier__$l = undefined;
2349
2333
  /* functional template */
2350
- const __vue_is_functional_template__$m = false;
2334
+ const __vue_is_functional_template__$l = false;
2351
2335
  /* style inject SSR */
2352
2336
 
2353
2337
  /* style inject shadow dom */
2354
2338
 
2355
2339
 
2356
2340
 
2357
- const __vue_component__$m = /*#__PURE__*/normalizeComponent(
2358
- { render: __vue_render__$m, staticRenderFns: __vue_staticRenderFns__$m },
2359
- __vue_inject_styles__$m,
2360
- __vue_script__$m,
2361
- __vue_scope_id__$m,
2362
- __vue_is_functional_template__$m,
2363
- __vue_module_identifier__$m,
2341
+ const __vue_component__$l = /*#__PURE__*/normalizeComponent(
2342
+ { render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
2343
+ __vue_inject_styles__$l,
2344
+ __vue_script__$l,
2345
+ __vue_scope_id__$l,
2346
+ __vue_is_functional_template__$l,
2347
+ __vue_module_identifier__$l,
2364
2348
  false,
2365
2349
  createInjector,
2366
2350
  undefined,
2367
2351
  undefined
2368
2352
  );
2369
2353
 
2370
- var SingleSelectionForm = __vue_component__$m;
2354
+ var SingleSelectionForm = __vue_component__$l;
2371
2355
 
2372
- var script$l = Vue.extend({
2356
+ var script$k = Vue.extend({
2373
2357
  name: "multi-selection-form",
2374
2358
  components: {
2375
2359
  Form,
@@ -2437,51 +2421,51 @@ var script$l = Vue.extend({
2437
2421
  });
2438
2422
 
2439
2423
  /* script */
2440
- const __vue_script__$l = script$l;
2424
+ const __vue_script__$k = script$k;
2441
2425
 
2442
2426
  /* template */
2443
- var __vue_render__$l = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',{staticClass:"question-options"},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.questionRequired'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.scoringEnabledChange},model:{value:(_vm.editQuestion.options.scoringEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "scoringEnabled", $$v);},expression:"editQuestion.options.scoringEnabled"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.scoringEnabled'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.starEnabledChange},model:{value:(_vm.editQuestion.options.starEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starEnabled", $$v);},expression:"editQuestion.options.starEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starEnabled'))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1)]),_vm._v(" "),(_vm.editQuestion.options.starEnabled)?_c('div',{staticStyle:{"display":"inline"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starMinCountPrefix'))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"50px"},attrs:{"size":"small"},model:{value:(_vm.editQuestion.options.starMinCount),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starMinCount", $$v);},expression:"editQuestion.options.starMinCount"}},_vm._l((_vm.selectStarList),function(item){return _c('Option',{key:item.value,attrs:{"value":item.value}},[_vm._v(_vm._s(item.label)+"\n ")])}),1),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starMinCountSuffix'))+"\n ")])],1):_vm._e()],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"23"}},[_c('Input',{attrs:{"maxlength":500,"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, $$v);},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('draggable',{staticClass:"question-choices-wrapper",attrs:{"draggable":".question-choice"},on:{"start":function($event){_vm.drag=true;},"end":function($event){_vm.drag=false;}},model:{value:(_vm.editQuestion.choices),callback:function ($$v) {_vm.$set(_vm.editQuestion, "choices", $$v);},expression:"editQuestion.choices"}},_vm._l((_vm.editQuestion.choices),function(option,index){return _c('div',{key:index,staticClass:"question-choice"},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.optionalRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"16"}},[_c('Input',{model:{value:(option.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(option.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"option.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.choices.length < _vm.choiceLimit.max)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addOption()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.choices.length > _vm.choiceLimit.min)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteOption(index)}}}):_vm._e()],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"4"}},[_c('Form-item',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],attrs:{"prop":'choices.' + index + '.options.score',"label-width":80,"rules":[
2427
+ var __vue_render__$k = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',{staticClass:"question-options"},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.questionRequired'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.scoringEnabledChange},model:{value:(_vm.editQuestion.options.scoringEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "scoringEnabled", $$v);},expression:"editQuestion.options.scoringEnabled"}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.scoringEnabled'))+"\n ")]),_vm._v(" "),_c('Checkbox',{on:{"on-change":_vm.starEnabledChange},model:{value:(_vm.editQuestion.options.starEnabled),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starEnabled", $$v);},expression:"editQuestion.options.starEnabled"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starEnabled'))+"\n "),_c('Icon',{attrs:{"type":"md-star","color":"orange","size":16}})],1)]),_vm._v(" "),(_vm.editQuestion.options.starEnabled)?_c('div',{staticStyle:{"display":"inline"}},[_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starMinCountPrefix'))+"\n ")]),_vm._v(" "),_c('Select',{staticStyle:{"width":"50px"},attrs:{"size":"small"},model:{value:(_vm.editQuestion.options.starMinCount),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "starMinCount", $$v);},expression:"editQuestion.options.starMinCount"}},_vm._l((_vm.selectStarList),function(item){return _c('Option',{key:item.value,attrs:{"value":item.value}},[_vm._v(_vm._s(item.label)+"\n ")])}),1),_vm._v(" "),_c('span',[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.starMinCountSuffix'))+"\n ")])],1):_vm._e()],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label-width":80,"label":_vm.t('survey_creator.page.question'),"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"23"}},[_c('Input',{attrs:{"maxlength":500,"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, $$v);},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('draggable',{staticClass:"question-choices-wrapper",attrs:{"draggable":".question-choice"},on:{"start":function($event){_vm.drag=true;},"end":function($event){_vm.drag=false;}},model:{value:(_vm.editQuestion.choices),callback:function ($$v) {_vm.$set(_vm.editQuestion, "choices", $$v);},expression:"editQuestion.choices"}},_vm._l((_vm.editQuestion.choices),function(option,index){return _c('div',{key:index,staticClass:"question-choice"},[_c('FormItem',{attrs:{"label-width":80,"label":_vm.t('survey_creator.question.optional'),"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.optionalRequiredTip')}}},[_c('Row',[_c('Col',{attrs:{"span":"16"}},[_c('Input',{model:{value:(option.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(option.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"option.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.choices.length < _vm.choiceLimit.max)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addOption()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.choices.length > _vm.choiceLimit.min)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteOption(index)}}}):_vm._e()],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"4"}},[_c('Form-item',{directives:[{name:"show",rawName:"v-show",value:(_vm.editQuestion.options.scoringEnabled),expression:"editQuestion.options.scoringEnabled"}],attrs:{"prop":'choices.' + index + '.options.score',"label-width":80,"rules":[
2444
2428
  { required: _vm.editQuestion.options.scoringEnabled,
2445
2429
  message: _vm.t('survey_creator.question.scoreRequiredTip')},
2446
2430
  { pattern: /^(([1-9][0-9][0-9]|[1-9][0-9]|[0-9])(\.\d{1,2})?|0\.\d{1,2})$/,
2447
2431
  message: _vm.t('survey_creator.question.scoreErrorTip')}
2448
2432
  ]}},[_c('Input',{staticStyle:{"width":"95%"},attrs:{"type":"number"},model:{value:(option.options.score),callback:function ($$v) {_vm.$set(option.options, "score", $$v);},expression:"option.options.score"}},[_c('span',{attrs:{"slot":"prepend"},slot:"prepend"},[_vm._v(_vm._s(_vm.t('survey_creator.question.score')))])])],1)],1)],1)],1)],1)}),0)],1)};
2449
- var __vue_staticRenderFns__$l = [];
2433
+ var __vue_staticRenderFns__$k = [];
2450
2434
 
2451
2435
  /* style */
2452
- const __vue_inject_styles__$l = function (inject) {
2436
+ const __vue_inject_styles__$k = function (inject) {
2453
2437
  if (!inject) return
2454
2438
  inject("data-v-2ff2d3ea_0", { source: ".question-options[data-v-2ff2d3ea]{padding-bottom:10px;padding-left:80px}", map: undefined, media: undefined });
2455
2439
 
2456
2440
  };
2457
2441
  /* scoped */
2458
- const __vue_scope_id__$l = "data-v-2ff2d3ea";
2442
+ const __vue_scope_id__$k = "data-v-2ff2d3ea";
2459
2443
  /* module identifier */
2460
- const __vue_module_identifier__$l = undefined;
2444
+ const __vue_module_identifier__$k = undefined;
2461
2445
  /* functional template */
2462
- const __vue_is_functional_template__$l = false;
2446
+ const __vue_is_functional_template__$k = false;
2463
2447
  /* style inject SSR */
2464
2448
 
2465
2449
  /* style inject shadow dom */
2466
2450
 
2467
2451
 
2468
2452
 
2469
- const __vue_component__$l = /*#__PURE__*/normalizeComponent(
2470
- { render: __vue_render__$l, staticRenderFns: __vue_staticRenderFns__$l },
2471
- __vue_inject_styles__$l,
2472
- __vue_script__$l,
2473
- __vue_scope_id__$l,
2474
- __vue_is_functional_template__$l,
2475
- __vue_module_identifier__$l,
2453
+ const __vue_component__$k = /*#__PURE__*/normalizeComponent(
2454
+ { render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
2455
+ __vue_inject_styles__$k,
2456
+ __vue_script__$k,
2457
+ __vue_scope_id__$k,
2458
+ __vue_is_functional_template__$k,
2459
+ __vue_module_identifier__$k,
2476
2460
  false,
2477
2461
  createInjector,
2478
2462
  undefined,
2479
2463
  undefined
2480
2464
  );
2481
2465
 
2482
- var MultiSelectionForm = __vue_component__$l;
2466
+ var MultiSelectionForm = __vue_component__$k;
2483
2467
 
2484
- var script$k = Vue.extend({
2468
+ var script$j = Vue.extend({
2485
2469
  name: "short-answer-form",
2486
2470
  components: {
2487
2471
  Form,
@@ -2495,21 +2479,21 @@ var script$k = Vue.extend({
2495
2479
  });
2496
2480
 
2497
2481
  /* script */
2498
- const __vue_script__$k = script$k;
2482
+ const __vue_script__$j = script$j;
2499
2483
 
2500
2484
  /* template */
2501
- var __vue_render__$k = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true,
2485
+ var __vue_render__$j = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true,
2502
2486
  message: _vm.t('survey_creator.question.titleRequiredTip')}}},[_c('label',{attrs:{"slot":"label"},slot:"label"},[_c('span'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t('survey_creator.page.question')))])]),_vm._v(" "),_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.questionRequired')))]),_vm._v(" "),_c('Input',{attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)};
2503
- var __vue_staticRenderFns__$k = [];
2487
+ var __vue_staticRenderFns__$j = [];
2504
2488
 
2505
2489
  /* style */
2506
- const __vue_inject_styles__$k = undefined;
2490
+ const __vue_inject_styles__$j = undefined;
2507
2491
  /* scoped */
2508
- const __vue_scope_id__$k = undefined;
2492
+ const __vue_scope_id__$j = undefined;
2509
2493
  /* module identifier */
2510
- const __vue_module_identifier__$k = undefined;
2494
+ const __vue_module_identifier__$j = undefined;
2511
2495
  /* functional template */
2512
- const __vue_is_functional_template__$k = false;
2496
+ const __vue_is_functional_template__$j = false;
2513
2497
  /* style inject */
2514
2498
 
2515
2499
  /* style inject SSR */
@@ -2518,22 +2502,22 @@ var __vue_staticRenderFns__$k = [];
2518
2502
 
2519
2503
 
2520
2504
 
2521
- const __vue_component__$k = /*#__PURE__*/normalizeComponent(
2522
- { render: __vue_render__$k, staticRenderFns: __vue_staticRenderFns__$k },
2523
- __vue_inject_styles__$k,
2524
- __vue_script__$k,
2525
- __vue_scope_id__$k,
2526
- __vue_is_functional_template__$k,
2527
- __vue_module_identifier__$k,
2505
+ const __vue_component__$j = /*#__PURE__*/normalizeComponent(
2506
+ { render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
2507
+ __vue_inject_styles__$j,
2508
+ __vue_script__$j,
2509
+ __vue_scope_id__$j,
2510
+ __vue_is_functional_template__$j,
2511
+ __vue_module_identifier__$j,
2528
2512
  false,
2529
2513
  undefined,
2530
2514
  undefined,
2531
2515
  undefined
2532
2516
  );
2533
2517
 
2534
- var ShortAnswerForm = __vue_component__$k;
2518
+ var ShortAnswerForm = __vue_component__$j;
2535
2519
 
2536
- var script$j = Vue.extend({
2520
+ var script$i = Vue.extend({
2537
2521
  name: "matrix-form",
2538
2522
  components: {
2539
2523
  Form,
@@ -2627,20 +2611,20 @@ var script$j = Vue.extend({
2627
2611
  });
2628
2612
 
2629
2613
  /* script */
2630
- const __vue_script__$j = script$j;
2614
+ const __vue_script__$i = script$i;
2631
2615
 
2632
2616
  /* template */
2633
- var __vue_render__$j = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')},"label":_vm.t('survey_creator.page.matrixQuestion')}},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.questionRequired')))]),_vm._v(" "),_c('Row',[_c('Col',{attrs:{"span":23,"offset":-1}},[_c('Input',{attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label":_vm.t('survey_creator.question.level'),"label-width":_vm.labelWidth}},[_c('InputNumber',{attrs:{"min":2,"max":10},on:{"on-change":_vm.levelChange},model:{value:(_vm.editQuestion.options.level),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "level", $$v);},expression:"editQuestion.options.level"}})],1)],1),_vm._v(" "),_vm._l((_vm.editQuestion.choices),function(choice,index){return _c('FormItem',{key:choice.id,attrs:{"label":_vm.t('survey_creator.question.optional'),"label-width":_vm.labelWidth}},[_c('Row',[_c('Col',{attrs:{"span":"4"}},[_c('FormItem',{attrs:{"prop":'choices.' + index + '.options.score',"rules":{required: true, message: _vm.t('survey_creator.question.scoreRequiredTip')}}},[_c('InputNumber',{attrs:{"min":0},model:{value:(choice.options.score),callback:function ($$v) {_vm.$set(choice.options, "score", $$v);},expression:"choice.options.score"}})],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"19"}},[_c('FormItem',{attrs:{"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.commitRequiredTip')}}},[_c('Input',{model:{value:(choice.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(choice.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"choice.text[primaryLanguage]"}})],1)],1)],1)],1)}),_vm._v(" "),_vm._l((_vm.editQuestion.subQuestions),function(subQuestion,index){return _c('div',{key:index,attrs:{"id":'subQuestion-' + index}},[_c('FormItem',{attrs:{"label-width":_vm.labelWidth,"label":_vm.t('survey_creator.question.sub_questions'),"prop":'subQuestions.' + + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.subQuestionRequiredTip')}}},[_c('Row',{attrs:{"type":"flex","justify":"space-between"}},[_c('Col',{attrs:{"span":"20"}},[_c('Input',{model:{value:(subQuestion.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(subQuestion.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"subQuestion.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.subQuestions.length)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addItem()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.subQuestions.length > 1)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteSubQuestion(index)}}}):_vm._e()],1)],1)],1)],1)],1)})],2)};
2634
- var __vue_staticRenderFns__$j = [];
2617
+ var __vue_render__$i = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Row',[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.titleRequiredTip')},"label":_vm.t('survey_creator.page.matrixQuestion')}},[_c('Checkbox',{model:{value:(_vm.editQuestion.options.required),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "required", $$v);},expression:"editQuestion.options.required"}},[_vm._v(_vm._s(_vm.t('survey_creator.question.questionRequired')))]),_vm._v(" "),_c('Row',[_c('Col',{attrs:{"span":23,"offset":-1}},[_c('Input',{attrs:{"placeholder":_vm.t('survey_creator.question.titleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)],1)],1),_vm._v(" "),_c('Row',[_c('Form-item',{attrs:{"label":_vm.t('survey_creator.question.level'),"label-width":_vm.labelWidth}},[_c('InputNumber',{attrs:{"min":2,"max":10},on:{"on-change":_vm.levelChange},model:{value:(_vm.editQuestion.options.level),callback:function ($$v) {_vm.$set(_vm.editQuestion.options, "level", $$v);},expression:"editQuestion.options.level"}})],1)],1),_vm._v(" "),_vm._l((_vm.editQuestion.choices),function(choice,index){return _c('FormItem',{key:choice.id,attrs:{"label":_vm.t('survey_creator.question.optional'),"label-width":_vm.labelWidth}},[_c('Row',[_c('Col',{attrs:{"span":"4"}},[_c('FormItem',{attrs:{"prop":'choices.' + index + '.options.score',"rules":{required: true, message: _vm.t('survey_creator.question.scoreRequiredTip')}}},[_c('InputNumber',{attrs:{"min":0},model:{value:(choice.options.score),callback:function ($$v) {_vm.$set(choice.options, "score", $$v);},expression:"choice.options.score"}})],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":"19"}},[_c('FormItem',{attrs:{"prop":'choices.' + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.commitRequiredTip')}}},[_c('Input',{model:{value:(choice.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(choice.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"choice.text[primaryLanguage]"}})],1)],1)],1)],1)}),_vm._v(" "),_vm._l((_vm.editQuestion.subQuestions),function(subQuestion,index){return _c('div',{key:index,attrs:{"id":'subQuestion-' + index}},[_c('FormItem',{attrs:{"label-width":_vm.labelWidth,"label":_vm.t('survey_creator.question.sub_questions'),"prop":'subQuestions.' + + index + '.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.subQuestionRequiredTip')}}},[_c('Row',{attrs:{"type":"flex","justify":"space-between"}},[_c('Col',{attrs:{"span":"20"}},[_c('Input',{model:{value:(subQuestion.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(subQuestion.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"subQuestion.text[primaryLanguage]"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":"3"}},[_c('ButtonGroup',[(_vm.editQuestion.subQuestions.length)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addItem()}}}):_vm._e(),_vm._v(" "),(_vm.editQuestion.subQuestions.length > 1)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteSubQuestion(index)}}}):_vm._e()],1)],1)],1)],1)],1)})],2)};
2618
+ var __vue_staticRenderFns__$i = [];
2635
2619
 
2636
2620
  /* style */
2637
- const __vue_inject_styles__$j = undefined;
2621
+ const __vue_inject_styles__$i = undefined;
2638
2622
  /* scoped */
2639
- const __vue_scope_id__$j = undefined;
2623
+ const __vue_scope_id__$i = undefined;
2640
2624
  /* module identifier */
2641
- const __vue_module_identifier__$j = undefined;
2625
+ const __vue_module_identifier__$i = undefined;
2642
2626
  /* functional template */
2643
- const __vue_is_functional_template__$j = false;
2627
+ const __vue_is_functional_template__$i = false;
2644
2628
  /* style inject */
2645
2629
 
2646
2630
  /* style inject SSR */
@@ -2649,22 +2633,22 @@ var __vue_staticRenderFns__$j = [];
2649
2633
 
2650
2634
 
2651
2635
 
2652
- const __vue_component__$j = /*#__PURE__*/normalizeComponent(
2653
- { render: __vue_render__$j, staticRenderFns: __vue_staticRenderFns__$j },
2654
- __vue_inject_styles__$j,
2655
- __vue_script__$j,
2656
- __vue_scope_id__$j,
2657
- __vue_is_functional_template__$j,
2658
- __vue_module_identifier__$j,
2636
+ const __vue_component__$i = /*#__PURE__*/normalizeComponent(
2637
+ { render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
2638
+ __vue_inject_styles__$i,
2639
+ __vue_script__$i,
2640
+ __vue_scope_id__$i,
2641
+ __vue_is_functional_template__$i,
2642
+ __vue_module_identifier__$i,
2659
2643
  false,
2660
2644
  undefined,
2661
2645
  undefined,
2662
2646
  undefined
2663
2647
  );
2664
2648
 
2665
- var MatrixForm = __vue_component__$j;
2649
+ var MatrixForm = __vue_component__$i;
2666
2650
 
2667
- var script$i = Vue.extend({
2651
+ var script$h = Vue.extend({
2668
2652
  name: "title-form",
2669
2653
  components: {
2670
2654
  Form,
@@ -2677,20 +2661,20 @@ var script$i = Vue.extend({
2677
2661
  });
2678
2662
 
2679
2663
  /* script */
2680
- const __vue_script__$i = script$i;
2664
+ const __vue_script__$h = script$h;
2681
2665
 
2682
2666
  /* template */
2683
- var __vue_render__$i = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.textTitleRequiredTip')}}},[_c('label',{attrs:{"slot":"label"},slot:"label"},[_c('span'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t('survey_creator.page.textTitle')))])]),_vm._v(" "),_c('Input',{attrs:{"autosize":{ minRows: 3, maxRows: 3 },"type":"textarea","placeholder":_vm.t('survey_creator.question.textTitleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)};
2684
- var __vue_staticRenderFns__$i = [];
2667
+ var __vue_render__$h = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Form',{ref:"questionForm",attrs:{"model":_vm.editQuestion,"label-colon":false}},[_c('Form-item',{attrs:{"prop":'header.text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.textTitleRequiredTip')}}},[_c('label',{attrs:{"slot":"label"},slot:"label"},[_c('span'),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.t('survey_creator.page.textTitle')))])]),_vm._v(" "),_c('Input',{attrs:{"autosize":{ minRows: 3, maxRows: 3 },"type":"textarea","placeholder":_vm.t('survey_creator.question.textTitleRequiredTip')},model:{value:(_vm.editQuestion.header.text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.editQuestion.header.text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"editQuestion.header.text[primaryLanguage]"}})],1)],1)};
2668
+ var __vue_staticRenderFns__$h = [];
2685
2669
 
2686
2670
  /* style */
2687
- const __vue_inject_styles__$i = undefined;
2671
+ const __vue_inject_styles__$h = undefined;
2688
2672
  /* scoped */
2689
- const __vue_scope_id__$i = undefined;
2673
+ const __vue_scope_id__$h = undefined;
2690
2674
  /* module identifier */
2691
- const __vue_module_identifier__$i = undefined;
2675
+ const __vue_module_identifier__$h = undefined;
2692
2676
  /* functional template */
2693
- const __vue_is_functional_template__$i = false;
2677
+ const __vue_is_functional_template__$h = false;
2694
2678
  /* style inject */
2695
2679
 
2696
2680
  /* style inject SSR */
@@ -2699,22 +2683,22 @@ var __vue_staticRenderFns__$i = [];
2699
2683
 
2700
2684
 
2701
2685
 
2702
- const __vue_component__$i = /*#__PURE__*/normalizeComponent(
2703
- { render: __vue_render__$i, staticRenderFns: __vue_staticRenderFns__$i },
2704
- __vue_inject_styles__$i,
2705
- __vue_script__$i,
2706
- __vue_scope_id__$i,
2707
- __vue_is_functional_template__$i,
2708
- __vue_module_identifier__$i,
2686
+ const __vue_component__$h = /*#__PURE__*/normalizeComponent(
2687
+ { render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
2688
+ __vue_inject_styles__$h,
2689
+ __vue_script__$h,
2690
+ __vue_scope_id__$h,
2691
+ __vue_is_functional_template__$h,
2692
+ __vue_module_identifier__$h,
2709
2693
  false,
2710
2694
  undefined,
2711
2695
  undefined,
2712
2696
  undefined
2713
2697
  );
2714
2698
 
2715
- var TitleForm = __vue_component__$i;
2699
+ var TitleForm = __vue_component__$h;
2716
2700
 
2717
- var script$h = Vue.extend({
2701
+ var script$g = Vue.extend({
2718
2702
  name: "star",
2719
2703
  mixins: [questionFormMixin],
2720
2704
  components: {
@@ -2808,10 +2792,10 @@ var script$h = Vue.extend({
2808
2792
  });
2809
2793
 
2810
2794
  /* script */
2811
- const __vue_script__$h = script$h;
2795
+ const __vue_script__$g = script$g;
2812
2796
 
2813
2797
  /* template */
2814
- var __vue_render__$h = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Table',{ref:"myTable",attrs:{"size":"small","border":"","data":_vm.evaluationItems,"columns":_vm.realColumns},scopedSlots:_vm._u([{key:"levelName",fn:function(ref){
2798
+ var __vue_render__$g = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Table',{ref:"myTable",attrs:{"size":"small","border":"","data":_vm.evaluationItems,"columns":_vm.realColumns},scopedSlots:_vm._u([{key:"levelName",fn:function(ref){
2815
2799
  var row = ref.row;
2816
2800
  ref.column;
2817
2801
  return [_c('FormItem',{attrs:{"prop":'evaluationItems[' + row._index + '].text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.commitRequiredTip')}}},[_c('Input',{model:{value:(_vm.evaluationItems[row._index].text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.evaluationItems[row._index].text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"evaluationItems[row._index].text[primaryLanguage]"}})],1)]}},{key:"level",fn:function(ref){
@@ -2821,16 +2805,16 @@ return [_c('FormItem',{attrs:{"prop":'evaluationItems[' + row._index + '].level'
2821
2805
  var row = ref.row;
2822
2806
  ref.column;
2823
2807
  return [(_vm.evaluationItems.length)?_c('Button',{attrs:{"icon":"md-add"},nativeOn:{"click":function($event){return _vm.addItem()}}}):_vm._e(),_vm._v(" "),(_vm.evaluationItems.length > 1)?_c('Button',{attrs:{"icon":"md-remove"},nativeOn:{"click":function($event){return _vm.deleteItem(row._index)}}}):_vm._e()]}}])})};
2824
- var __vue_staticRenderFns__$h = [];
2808
+ var __vue_staticRenderFns__$g = [];
2825
2809
 
2826
2810
  /* style */
2827
- const __vue_inject_styles__$h = undefined;
2811
+ const __vue_inject_styles__$g = undefined;
2828
2812
  /* scoped */
2829
- const __vue_scope_id__$h = undefined;
2813
+ const __vue_scope_id__$g = undefined;
2830
2814
  /* module identifier */
2831
- const __vue_module_identifier__$h = undefined;
2815
+ const __vue_module_identifier__$g = undefined;
2832
2816
  /* functional template */
2833
- const __vue_is_functional_template__$h = false;
2817
+ const __vue_is_functional_template__$g = false;
2834
2818
  /* style inject */
2835
2819
 
2836
2820
  /* style inject SSR */
@@ -2839,20 +2823,20 @@ var __vue_staticRenderFns__$h = [];
2839
2823
 
2840
2824
 
2841
2825
 
2842
- const __vue_component__$h = /*#__PURE__*/normalizeComponent(
2843
- { render: __vue_render__$h, staticRenderFns: __vue_staticRenderFns__$h },
2844
- __vue_inject_styles__$h,
2845
- __vue_script__$h,
2846
- __vue_scope_id__$h,
2847
- __vue_is_functional_template__$h,
2848
- __vue_module_identifier__$h,
2826
+ const __vue_component__$g = /*#__PURE__*/normalizeComponent(
2827
+ { render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
2828
+ __vue_inject_styles__$g,
2829
+ __vue_script__$g,
2830
+ __vue_scope_id__$g,
2831
+ __vue_is_functional_template__$g,
2832
+ __vue_module_identifier__$g,
2849
2833
  false,
2850
2834
  undefined,
2851
2835
  undefined,
2852
2836
  undefined
2853
2837
  );
2854
2838
 
2855
- var Star = __vue_component__$h;
2839
+ var Star = __vue_component__$g;
2856
2840
 
2857
2841
  var ExprMixin = Vue.extend({
2858
2842
  inject: ["$rootComponent"],
@@ -2917,7 +2901,7 @@ var ExprMixin = Vue.extend({
2917
2901
  }
2918
2902
  });
2919
2903
 
2920
- var script$g = Vue.extend({
2904
+ var script$f = Vue.extend({
2921
2905
  name: "question-select",
2922
2906
  components: { Select, Option, Tooltip },
2923
2907
  mixins: [questionFormMixin],
@@ -2967,92 +2951,23 @@ var script$g = Vue.extend({
2967
2951
  }
2968
2952
  });
2969
2953
 
2970
- /* script */
2971
- const __vue_script__$g = script$g;
2972
-
2973
- /* template */
2974
- var __vue_render__$g = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.question_scope'),"multiple":"","max-tag-count":0,"max-tag-placeholder":_vm.numbers},on:{"on-change":_vm.onChange},model:{value:(_vm.scope),callback:function ($$v) {_vm.scope=$$v;},expression:"scope"}},[_vm._l((_vm.questions),function(question){return [(question.type == 'SINGLE_SELECTION')?_c('Option',{key:question.id,attrs:{"value":question.id,"tag":question.header.number}},[_c('Tooltip',{attrs:{"transfer":true,"content":_vm.getSingleOptionContent(question),"max-width":"500","placement":"top-start"}},[_vm._v("\n "+_vm._s(question.header.number)+" "+_vm._s(_vm._f("title")(question.header.text[_vm.primaryLanguage]))+"\n ")])],1):_vm._e(),_vm._v(" "),(question.type == 'MATRIX')?_vm._l((question.subQuestions),function(subQuestion){return _c('Option',{key:subQuestion.id,attrs:{"value":subQuestion.id,"tag":question.header.number + '.' + subQuestion.number}},[_c('Tooltip',{attrs:{"transfer":true,"content":_vm.getMatrixOptionContent(question,subQuestion),"max-width":"500","placement":"top-start"}},[_vm._v("\n "+_vm._s(question.header.number)+"."+_vm._s(subQuestion.number)+" "+_vm._s(_vm._f("title")(subQuestion.text[_vm.primaryLanguage]))+"\n ")])],1)}):_vm._e()]})],2)};
2975
- var __vue_staticRenderFns__$g = [];
2976
-
2977
- /* style */
2978
- const __vue_inject_styles__$g = undefined;
2979
- /* scoped */
2980
- const __vue_scope_id__$g = undefined;
2981
- /* module identifier */
2982
- const __vue_module_identifier__$g = undefined;
2983
- /* functional template */
2984
- const __vue_is_functional_template__$g = false;
2985
- /* style inject */
2986
-
2987
- /* style inject SSR */
2988
-
2989
- /* style inject shadow dom */
2990
-
2991
-
2992
-
2993
- const __vue_component__$g = /*#__PURE__*/normalizeComponent(
2994
- { render: __vue_render__$g, staticRenderFns: __vue_staticRenderFns__$g },
2995
- __vue_inject_styles__$g,
2996
- __vue_script__$g,
2997
- __vue_scope_id__$g,
2998
- __vue_is_functional_template__$g,
2999
- __vue_module_identifier__$g,
3000
- false,
3001
- undefined,
3002
- undefined,
3003
- undefined
3004
- );
3005
-
3006
- var QuestionSelect = __vue_component__$g;
3007
-
3008
- var script$f = Vue.extend({
3009
- name: "assign",
3010
- mixins: [questionFormMixin, ExprMixin],
3011
- components: {
3012
- Row,
3013
- Col,
3014
- Select,
3015
- OptionGroup,
3016
- Option,
3017
- FormItem,
3018
- InputNumber,
3019
- QuestionSelect
3020
- },
3021
- created() {
3022
- this.value.operator = _.unescape(this.value.operator);
3023
- },
3024
- methods: {
3025
- generateExpr() {
3026
- let ids = `${_.map(this.value.scope, e => {
3027
- return `"` + e + `"`;
3028
- })}`;
3029
- let answers = `${_.map(this.value.values, e => {
3030
- return `"` + e + `"`;
3031
- })}`;
3032
- return `$count($[id in [${ids}]][answer in [${answers}]]) ${this.value.operator} ${this.value.size}`;
3033
- }
3034
- }
3035
- });
3036
-
3037
2954
  /* script */
3038
2955
  const __vue_script__$f = script$f;
3039
2956
 
3040
2957
  /* template */
3041
- var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.scope"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('question-select',{attrs:{"question":_vm.question},model:{value:(_vm.value.scope),callback:function ($$v) {_vm.$set(_vm.value, "scope", $$v);},expression:"value.scope"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_result'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.values"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.choose_result'),"max-tag-count":1,"multiple":""},model:{value:(_vm.value.values),callback:function ($$v) {_vm.$set(_vm.value, "values", $$v);},expression:"value.values"}},_vm._l((_vm.choices),function(choice,index){return _c('Option',{key:index,attrs:{"value":choice}},[_vm._v("\n "+_vm._s(choice)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_count'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.operator"),"rules":{ required: true, trigger: 'change', message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.operator),callback:function ($$v) {_vm.$set(_vm.value, "operator", $$v);},expression:"value.operator"}},_vm._l((_vm.operators),function(operator,index){return _c('Option',{key:index,attrs:{"value":operator}},[_vm._v("\n "+_vm._s(operator)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.size"),"rules":{ required: true, type: 'number', trigger: 'change', message: _vm.t('survey_creator.question.notEmpty') }}},[_c('InputNumber',{attrs:{"min":0,"max":_vm.value.scope.length},model:{value:(_vm.value.size),callback:function ($$v) {_vm.$set(_vm.value, "size", $$v);},expression:"value.size"}})],1)],1)],1)};
2958
+ var __vue_render__$f = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.question_scope'),"multiple":"","max-tag-count":0,"max-tag-placeholder":_vm.numbers},on:{"on-change":_vm.onChange},model:{value:(_vm.scope),callback:function ($$v) {_vm.scope=$$v;},expression:"scope"}},[_vm._l((_vm.questions),function(question){return [(question.type == 'SINGLE_SELECTION')?_c('Option',{key:question.id,attrs:{"value":question.id,"tag":question.header.number}},[_c('Tooltip',{attrs:{"transfer":true,"content":_vm.getSingleOptionContent(question),"max-width":"500","placement":"top-start"}},[_vm._v("\n "+_vm._s(question.header.number)+" "+_vm._s(_vm._f("title")(question.header.text[_vm.primaryLanguage]))+"\n ")])],1):_vm._e(),_vm._v(" "),(question.type == 'MATRIX')?_vm._l((question.subQuestions),function(subQuestion){return _c('Option',{key:subQuestion.id,attrs:{"value":subQuestion.id,"tag":question.header.number + '.' + subQuestion.number}},[_c('Tooltip',{attrs:{"transfer":true,"content":_vm.getMatrixOptionContent(question,subQuestion),"max-width":"500","placement":"top-start"}},[_vm._v("\n "+_vm._s(question.header.number)+"."+_vm._s(subQuestion.number)+" "+_vm._s(_vm._f("title")(subQuestion.text[_vm.primaryLanguage]))+"\n ")])],1)}):_vm._e()]})],2)};
3042
2959
  var __vue_staticRenderFns__$f = [];
3043
2960
 
3044
2961
  /* style */
3045
- const __vue_inject_styles__$f = function (inject) {
3046
- if (!inject) return
3047
- inject("data-v-c3e890de_0", { source: ".label[data-v-c3e890de]{text-align:right;margin-bottom:24px;padding-right:2px}", map: undefined, media: undefined });
3048
-
3049
- };
2962
+ const __vue_inject_styles__$f = undefined;
3050
2963
  /* scoped */
3051
- const __vue_scope_id__$f = "data-v-c3e890de";
2964
+ const __vue_scope_id__$f = undefined;
3052
2965
  /* module identifier */
3053
2966
  const __vue_module_identifier__$f = undefined;
3054
2967
  /* functional template */
3055
2968
  const __vue_is_functional_template__$f = false;
2969
+ /* style inject */
2970
+
3056
2971
  /* style inject SSR */
3057
2972
 
3058
2973
  /* style inject shadow dom */
@@ -3067,24 +2982,29 @@ var __vue_staticRenderFns__$f = [];
3067
2982
  __vue_is_functional_template__$f,
3068
2983
  __vue_module_identifier__$f,
3069
2984
  false,
3070
- createInjector,
2985
+ undefined,
3071
2986
  undefined,
3072
2987
  undefined
3073
2988
  );
3074
2989
 
3075
- var Assign = __vue_component__$f;
2990
+ var QuestionSelect = __vue_component__$f;
3076
2991
 
3077
2992
  var script$e = Vue.extend({
3078
- name: "auto",
3079
- mixins: [ExprMixin, questionFormMixin],
2993
+ name: "assign",
2994
+ mixins: [questionFormMixin, ExprMixin],
3080
2995
  components: {
3081
2996
  Row,
3082
2997
  Col,
3083
2998
  Select,
2999
+ OptionGroup,
3084
3000
  Option,
3085
3001
  FormItem,
3002
+ InputNumber,
3086
3003
  QuestionSelect
3087
3004
  },
3005
+ created() {
3006
+ this.value.operator = _.unescape(this.value.operator);
3007
+ },
3088
3008
  methods: {
3089
3009
  generateExpr() {
3090
3010
  let ids = `${_.map(this.value.scope, e => {
@@ -3093,7 +3013,7 @@ var script$e = Vue.extend({
3093
3013
  let answers = `${_.map(this.value.values, e => {
3094
3014
  return `"` + e + `"`;
3095
3015
  })}`;
3096
- return `$count($[id in [${ids}]][answer in [${answers}]]) = ${_.size(this.value.scope)}`;
3016
+ return `$count($[id in [${ids}]][answer in [${answers}]]) ${this.value.operator} ${this.value.size}`;
3097
3017
  }
3098
3018
  }
3099
3019
  });
@@ -3102,17 +3022,17 @@ var script$e = Vue.extend({
3102
3022
  const __vue_script__$e = script$e;
3103
3023
 
3104
3024
  /* template */
3105
- var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.type.SCORE'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.scope"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('question-select',{attrs:{"question":_vm.question},model:{value:(_vm.value.scope),callback:function ($$v) {_vm.$set(_vm.value, "scope", $$v);},expression:"value.scope"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_result'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":8}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.values"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.choose_result'),"max-tag-count":1,"multiple":""},model:{value:(_vm.value.values),callback:function ($$v) {_vm.$set(_vm.value, "values", $$v);},expression:"value.values"}},_vm._l((_vm.choices),function(choice,index){return _c('Option',{key:index,attrs:{"value":choice}},[_vm._v("\n "+_vm._s(choice)+"\n ")])}),1)],1)],1)],1)};
3025
+ var __vue_render__$e = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.scope"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('question-select',{attrs:{"question":_vm.question},model:{value:(_vm.value.scope),callback:function ($$v) {_vm.$set(_vm.value, "scope", $$v);},expression:"value.scope"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_result'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.values"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.choose_result'),"max-tag-count":1,"multiple":""},model:{value:(_vm.value.values),callback:function ($$v) {_vm.$set(_vm.value, "values", $$v);},expression:"value.values"}},_vm._l((_vm.choices),function(choice,index){return _c('Option',{key:index,attrs:{"value":choice}},[_vm._v("\n "+_vm._s(choice)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_count'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.operator"),"rules":{ required: true, trigger: 'change', message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.operator),callback:function ($$v) {_vm.$set(_vm.value, "operator", $$v);},expression:"value.operator"}},_vm._l((_vm.operators),function(operator,index){return _c('Option',{key:index,attrs:{"value":operator}},[_vm._v("\n "+_vm._s(operator)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.size"),"rules":{ required: true, type: 'number', trigger: 'change', message: _vm.t('survey_creator.question.notEmpty') }}},[_c('InputNumber',{attrs:{"min":0,"max":_vm.value.scope.length},model:{value:(_vm.value.size),callback:function ($$v) {_vm.$set(_vm.value, "size", $$v);},expression:"value.size"}})],1)],1)],1)};
3106
3026
  var __vue_staticRenderFns__$e = [];
3107
3027
 
3108
3028
  /* style */
3109
3029
  const __vue_inject_styles__$e = function (inject) {
3110
3030
  if (!inject) return
3111
- inject("data-v-1b7846c4_0", { source: ".label[data-v-1b7846c4]{text-align:right;margin-bottom:24px}", map: undefined, media: undefined });
3031
+ inject("data-v-c3e890de_0", { source: ".label[data-v-c3e890de]{text-align:right;margin-bottom:24px;padding-right:2px}", map: undefined, media: undefined });
3112
3032
 
3113
3033
  };
3114
3034
  /* scoped */
3115
- const __vue_scope_id__$e = "data-v-1b7846c4";
3035
+ const __vue_scope_id__$e = "data-v-c3e890de";
3116
3036
  /* module identifier */
3117
3037
  const __vue_module_identifier__$e = undefined;
3118
3038
  /* functional template */
@@ -3136,74 +3056,47 @@ var __vue_staticRenderFns__$e = [];
3136
3056
  undefined
3137
3057
  );
3138
3058
 
3139
- var Auto = __vue_component__$e;
3059
+ var Assign = __vue_component__$e;
3140
3060
 
3141
3061
  var script$d = Vue.extend({
3142
- name: "score",
3143
- mixins: [ExprMixin, LocaleMixin],
3062
+ name: "auto",
3063
+ mixins: [ExprMixin, questionFormMixin],
3144
3064
  components: {
3145
3065
  Row,
3146
3066
  Col,
3147
3067
  Select,
3148
3068
  Option,
3149
3069
  FormItem,
3150
- InputNumber,
3151
- },
3152
- data() {
3153
- return {
3154
- operators: ["<=", "<"],
3155
- };
3156
- },
3157
- computed: {
3158
- totalScore() {
3159
- return this.$rootComponent.currentSurvey.statistics.maxScore;
3160
- },
3070
+ QuestionSelect
3161
3071
  },
3162
3072
  methods: {
3163
3073
  generateExpr() {
3164
- let minScore = this.value.minScore;
3165
- let maxScore = this.value.maxScore;
3166
- return `$totalScore ${minScore} ${this.value.operator} ${maxScore}`;
3167
- },
3168
- rangeChange() {
3169
- console.log("222");
3170
- },
3171
- },
3074
+ let ids = `${_.map(this.value.scope, e => {
3075
+ return `"` + e + `"`;
3076
+ })}`;
3077
+ let answers = `${_.map(this.value.values, e => {
3078
+ return `"` + e + `"`;
3079
+ })}`;
3080
+ return `$count($[id in [${ids}]][answer in [${answers}]]) = ${_.size(this.value.scope)}`;
3081
+ }
3082
+ }
3172
3083
  });
3173
3084
 
3174
3085
  /* script */
3175
3086
  const __vue_script__$d = script$d;
3176
3087
 
3177
3088
  /* template */
3178
- var __vue_render__$d = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.score_condition_title"))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.minScore"),"rules":{
3179
- required: true,
3180
- type: 'number',
3181
- trigger: 'change',
3182
- min: 0,
3183
- max: this.totalScore,
3184
- message: _vm.t('分值不能为空'),
3185
- }}},[_c('InputNumber',{attrs:{"min":0,"max":_vm.value.maxScore},on:{"on-change":_vm.rangeChange},model:{value:(_vm.value.minScore),callback:function ($$v) {_vm.$set(_vm.value, "minScore", $$v);},expression:"value.minScore"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scores"))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.operator"),"rules":{
3186
- required: true,
3187
- trigger: 'change',
3188
- message: _vm.t('survey_creator.question.notEmpty'),
3189
- }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.operator')},model:{value:(_vm.value.operator),callback:function ($$v) {_vm.$set(_vm.value, "operator", $$v);},expression:"value.operator"}},_vm._l((_vm.operators),function(operator,index){return _c('Option',{key:index,attrs:{"value":operator}},[_vm._v("\n "+_vm._s(operator)+"\n ")])}),1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":3}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.maxScore"),"rules":{
3190
- required: true,
3191
- type: 'number',
3192
- trigger: 'change',
3193
- min: 0,
3194
- max: this.totalScore,
3195
- message: _vm.t('分值不能为空'),
3196
- }}},[_c('InputNumber',{attrs:{"min":_vm.value.minScore,"max":_vm.totalScore},on:{"on-change":_vm.rangeChange},model:{value:(_vm.value.maxScore),callback:function ($$v) {_vm.$set(_vm.value, "maxScore", $$v);},expression:"value.maxScore"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.scores"))+"\n ")])],1)};
3089
+ var __vue_render__$d = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Row',{attrs:{"type":"flex","justify":"start","gutter":6,"align":"middle"}},[_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":5}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.scope"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('question-select',{attrs:{"question":_vm.question},model:{value:(_vm.value.scope),callback:function ($$v) {_vm.$set(_vm.value, "scope", $$v);},expression:"value.scope"}})],1)],1),_vm._v(" "),_c('Col',{staticClass:"label"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.question_result'))+"\n ")]),_vm._v(" "),_c('Col',{attrs:{"span":8}},[_c('FormItem',{attrs:{"prop":("evaluationItems[" + _vm.itemIndex + "].conditions[" + _vm.index + "].payload.values"),"rules":{ required: true, type: 'array', trigger: 'change', min: 1, message: _vm.t('survey_creator.question.notEmpty') }}},[_c('Select',{attrs:{"placeholder":_vm.t('survey_creator.question.evaluation.condition.choose_result'),"max-tag-count":1,"multiple":""},model:{value:(_vm.value.values),callback:function ($$v) {_vm.$set(_vm.value, "values", $$v);},expression:"value.values"}},_vm._l((_vm.choices),function(choice,index){return _c('Option',{key:index,attrs:{"value":choice}},[_vm._v("\n "+_vm._s(choice)+"\n ")])}),1)],1)],1)],1)};
3197
3090
  var __vue_staticRenderFns__$d = [];
3198
3091
 
3199
3092
  /* style */
3200
3093
  const __vue_inject_styles__$d = function (inject) {
3201
3094
  if (!inject) return
3202
- inject("data-v-595ef9bc_0", { source: ".label[data-v-595ef9bc]{text-align:right;margin-bottom:24px}", map: undefined, media: undefined });
3095
+ inject("data-v-647dceac_0", { source: ".label[data-v-647dceac]{text-align:right;margin-bottom:24px}", map: undefined, media: undefined });
3203
3096
 
3204
3097
  };
3205
3098
  /* scoped */
3206
- const __vue_scope_id__$d = "data-v-595ef9bc";
3099
+ const __vue_scope_id__$d = "data-v-647dceac";
3207
3100
  /* module identifier */
3208
3101
  const __vue_module_identifier__$d = undefined;
3209
3102
  /* functional template */
@@ -3227,53 +3120,48 @@ var __vue_staticRenderFns__$d = [];
3227
3120
  undefined
3228
3121
  );
3229
3122
 
3230
- var Score = __vue_component__$d;
3123
+ var Auto = __vue_component__$d;
3231
3124
 
3232
3125
  var script$c = Vue.extend({
3233
3126
  name: "condition",
3234
3127
  mixins: [questionFormMixin],
3235
3128
  components: {
3236
3129
  ASSIGN: Assign,
3237
- AUTO: Auto,
3238
- SCORE: Score,
3130
+ AUTO: Auto
3239
3131
  },
3240
3132
  props: {
3241
3133
  type: {
3242
3134
  type: String,
3243
- required: true,
3135
+ required: true
3244
3136
  },
3245
3137
  value: {
3246
3138
  type: Object,
3247
- required: true,
3139
+ required: true
3248
3140
  },
3249
3141
  index: {
3250
3142
  type: Number,
3251
- required: true,
3143
+ required: true
3252
3144
  },
3253
3145
  evaluationItems: {
3254
3146
  type: Array,
3255
- required: true,
3147
+ required: true
3256
3148
  },
3257
3149
  itemIndex: {
3258
3150
  type: Number,
3259
- required: true,
3260
- },
3151
+ required: true
3152
+ }
3261
3153
  },
3262
3154
  data() {
3263
3155
  return {
3264
3156
  exprConditionType: "AUTO",
3265
- exprConditionTypes: [
3266
- "AUTO",
3267
- "ASSIGN",
3268
- "SCORE",
3269
- ],
3157
+ exprConditionTypes: ["AUTO", "ASSIGN"]
3270
3158
  };
3271
3159
  },
3272
3160
  methods: {
3273
3161
  expr(value) {
3274
3162
  this.$emit("expr", this.index, value);
3275
- },
3276
- },
3163
+ }
3164
+ }
3277
3165
  });
3278
3166
 
3279
3167
  /* script */
@@ -3327,109 +3215,80 @@ var script$b = Vue.extend({
3327
3215
  Icon,
3328
3216
  Condition,
3329
3217
  FormItem,
3330
- Input,
3218
+ Input
3331
3219
  },
3332
3220
  props: {
3333
3221
  value: {
3334
3222
  type: Array,
3335
- required: true,
3223
+ required: true
3336
3224
  },
3337
3225
  position: {
3338
3226
  type: Number,
3339
- required: true,
3340
- },
3227
+ required: true
3228
+ }
3341
3229
  },
3342
3230
  data() {
3343
3231
  return {
3344
3232
  evaluationItems: this.value,
3345
3233
  exprConditionType: "AUTO",
3346
- exprConditionTypes: [
3347
- "AUTO",
3348
- "ASSIGN",
3349
- "SCORE",
3350
- ],
3234
+ exprConditionTypes: ["AUTO", "ASSIGN"]
3351
3235
  };
3352
3236
  },
3353
3237
  computed: {
3354
3238
  deletable() {
3355
- return (_.size(_.filter(this.evaluationItems, (item) => item.type == "IF")) > 1);
3356
- },
3357
- disableAddConditionBtn() {
3358
- let conditions = this.evaluationItems[this.position].conditions;
3359
- let scoreConditions = _.size(_.filter(conditions, (item) => item.type == "SCORE"));
3360
- return (this.exprConditionType == "SCORE" && scoreConditions > 0);
3361
- },
3239
+ return _.size(_.filter(this.evaluationItems, item => item.type == "IF")) > 1;
3240
+ }
3362
3241
  },
3363
3242
  methods: {
3364
3243
  onAdd() {
3365
3244
  this.evaluationItems.splice(this.position + 1, 0, {
3366
- id: `Evaluation-Item-${_.now()}-${_.random(0, 9999999)}`,
3367
- type: "IF",
3368
- text: {
3369
- "zh-CN": "",
3245
+ "id": `Evaluation-Item-${_.now()}-${_.random(0, 9999999)}`,
3246
+ "type": "IF",
3247
+ "text": {
3248
+ "zh-CN": ""
3370
3249
  },
3371
- conditions: [],
3250
+ "conditions": []
3372
3251
  });
3373
3252
  },
3374
3253
  onDelete() {
3375
3254
  this.evaluationItems.splice(this.position, 1);
3376
3255
  },
3377
3256
  addCondition() {
3378
- this.evaluationItems[this.position].conditions ||
3379
- this.$set(this.evaluationItems[this.position], "conditions", []);
3257
+ this.evaluationItems[this.position].conditions || this.$set(this.evaluationItems[this.position], "conditions", []);
3380
3258
  this.evaluationItems[this.position].conditions.push({
3381
3259
  type: this.exprConditionType,
3382
- payload: this.buildPayloadByType(this.exprConditionType),
3383
- });
3384
- },
3385
- buildPayloadByType(type) {
3386
- if (type == "SCORE") {
3387
- return {
3388
- payload: {
3389
- minScore: 0,
3390
- operator: "<",
3391
- maxScore: 0,
3392
- },
3393
- };
3394
- }
3395
- return {
3396
3260
  payload: {
3397
3261
  scope: [],
3398
3262
  operator: "=",
3399
3263
  values: [],
3400
- size: 0,
3401
- },
3402
- };
3264
+ size: 0
3265
+ }
3266
+ });
3403
3267
  },
3404
3268
  removeCondition(index) {
3405
3269
  this.evaluationItems[this.position].conditions.splice(index, 1);
3406
3270
  },
3407
3271
  expr(index, value) {
3408
3272
  _.set(this.evaluationItems[this.position].conditions[index], "expr", value);
3409
- },
3410
- },
3273
+ }
3274
+ }
3411
3275
  });
3412
3276
 
3413
3277
  /* script */
3414
3278
  const __vue_script__$b = script$b;
3415
3279
 
3416
3280
  /* template */
3417
- var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{attrs:{"dis-hover":""}},[_c('Row',{attrs:{"slot":"title","type":"flex","gutter":6},slot:"title"},[_c('Col',[_c('div',{staticClass:"text"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.if"))+"\n ")])]),_vm._v(" "),_c('Col',[_c('Button',{attrs:{"type":"primary","icon":"md-add"},on:{"click":_vm.onAdd}},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.add_if_template"))+"\n ")])],1)],1),_vm._v(" "),_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.deletable),expression:"deletable"}],attrs:{"slot":"extra","href":"#"},on:{"click":function($event){$event.preventDefault();return _vm.onDelete.apply(null, arguments)}},slot:"extra"},[_vm._v("\n "+_vm._s(_vm.t("survey_creator.common.delete"))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{staticClass:"label"},[_c('Icon',{attrs:{"type":"ios-arrow-forward","color":"#2d8cf0"}}),_vm._v("\n "+_vm._s(_vm.t("survey_creator.question.evaluation.condition.requirements"))+"\n ")],1),_vm._v(" "),_c('Col',{attrs:{"span":16}},[_c('Select',{model:{value:(_vm.exprConditionType),callback:function ($$v) {_vm.exprConditionType=$$v;},expression:"exprConditionType"}},_vm._l((_vm.exprConditionTypes),function(type){return _c('Option',{key:type,attrs:{"value":type}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.evaluation.condition.type." + type)))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",attrs:{"icon":"md-add","disabled":_vm.disableAddConditionBtn},on:{"click":_vm.addCondition}})],1)],1),_vm._v(" "),_vm._l((_vm.evaluationItems[_vm.position].conditions),function(condition,index){return _c('Row',{key:index,staticClass:"mt-base",attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('condition',{key:index,attrs:{"index":index,"type":condition.type,"question":_vm.question,"evaluation-items":_vm.evaluationItems,"item-index":_vm.position},on:{"expr":_vm.expr},model:{value:(condition.payload),callback:function ($$v) {_vm.$set(condition, "payload", $$v);},expression:"condition.payload"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",staticStyle:{"margin-bottom":"24px"},attrs:{"icon":"md-remove"},on:{"click":function($event){return _vm.removeCondition(index)}}})],1)],1)}),_vm._v(" "),_c('Row',{staticClass:"mt-base",attrs:{"type":"flex","justify":"end","align":"middle"}},[_c('Col',[_c('FormItem',{attrs:{"prop":'evaluationItems[' + _vm.position + '].text.' + _vm.primaryLanguage,"rules":{
3418
- required: true,
3419
- message: _vm.t(
3420
- 'survey_creator.question.evaluation.condition.evaluation_require_tip'
3421
- ),
3422
- }}},[_vm._v(_vm._s(_vm.t("survey_creator.question.evaluation.condition.evaluation_label"))+"\n "),_c('Input',{staticClass:"input",model:{value:(_vm.evaluationItems[_vm.position].text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.evaluationItems[_vm.position].text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"evaluationItems[position].text[primaryLanguage]"}})],1)],1)],1)],2)};
3281
+ var __vue_render__$b = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Card',{attrs:{"dis-hover":""}},[_c('Row',{attrs:{"slot":"title","type":"flex","gutter":6},slot:"title"},[_c('Col',[_c('div',{staticClass:"text"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.if'))+"\n ")])]),_vm._v(" "),_c('Col',[_c('Button',{attrs:{"type":"primary","icon":"md-add"},on:{"click":_vm.onAdd}},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.add_if_template'))+"\n ")])],1)],1),_vm._v(" "),_c('a',{directives:[{name:"show",rawName:"v-show",value:(_vm.deletable),expression:"deletable"}],attrs:{"slot":"extra","href":"#"},on:{"click":function($event){$event.preventDefault();return _vm.onDelete.apply(null, arguments)}},slot:"extra"},[_vm._v("\n "+_vm._s(_vm.t('survey_creator.common.delete'))+"\n ")]),_vm._v(" "),_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('Row',{attrs:{"type":"flex","justify":"start","align":"middle"}},[_c('Col',{staticClass:"label"},[_c('Icon',{attrs:{"type":"ios-arrow-forward","color":"#2d8cf0"}}),_vm._v("\n "+_vm._s(_vm.t('survey_creator.question.evaluation.condition.requirements'))+"\n ")],1),_vm._v(" "),_c('Col',{attrs:{"span":16}},[_c('Select',{model:{value:(_vm.exprConditionType),callback:function ($$v) {_vm.exprConditionType=$$v;},expression:"exprConditionType"}},_vm._l((_vm.exprConditionTypes),function(type){return _c('Option',{key:type,attrs:{"value":type}},[_vm._v("\n "+_vm._s(_vm.t(("survey_creator.question.evaluation.condition.type." + type)))+"\n ")])}),1)],1)],1)],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",attrs:{"icon":"md-add"},on:{"click":_vm.addCondition}})],1)],1),_vm._v(" "),_vm._l((_vm.evaluationItems[_vm.position].conditions),function(condition,index){return _c('Row',{key:index,staticClass:"mt-base",attrs:{"type":"flex","justify":"space-between","align":"middle"}},[_c('Col',{attrs:{"span":22}},[_c('condition',{key:index,attrs:{"index":index,"type":condition.type,"question":_vm.question,"evaluation-items":_vm.evaluationItems,"item-index":_vm.position},on:{"expr":_vm.expr},model:{value:(condition.payload),callback:function ($$v) {_vm.$set(condition, "payload", $$v);},expression:"condition.payload"}})],1),_vm._v(" "),_c('Col',{attrs:{"span":2}},[_c('Button',{staticClass:"action",staticStyle:{"margin-bottom":"24px"},attrs:{"icon":"md-remove"},on:{"click":function($event){return _vm.removeCondition(index)}}})],1)],1)}),_vm._v(" "),_c('Row',{staticClass:"mt-base",attrs:{"type":"flex","justify":"end","align":"middle"}},[_c('Col',[_c('FormItem',{attrs:{"prop":'evaluationItems[' + _vm.position + '].text.' + _vm.primaryLanguage,"rules":{required: true, message: _vm.t('survey_creator.question.evaluation.condition.evaluation_require_tip')}}},[_vm._v(_vm._s(_vm.t('survey_creator.question.evaluation.condition.evaluation_label'))+"\n "),_c('Input',{staticClass:"input",model:{value:(_vm.evaluationItems[_vm.position].text[_vm.primaryLanguage]),callback:function ($$v) {_vm.$set(_vm.evaluationItems[_vm.position].text, _vm.primaryLanguage, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"evaluationItems[position].text[primaryLanguage]"}})],1)],1)],1)],2)};
3423
3282
  var __vue_staticRenderFns__$b = [];
3424
3283
 
3425
3284
  /* style */
3426
3285
  const __vue_inject_styles__$b = function (inject) {
3427
3286
  if (!inject) return
3428
- inject("data-v-25df9b0d_0", { source: ".mt-base[data-v-25df9b0d]{margin-top:12px}.action[data-v-25df9b0d]{float:right}.input[data-v-25df9b0d]{width:100px}.label[data-v-25df9b0d]{text-align:right;padding-right:4px}.text[data-v-25df9b0d]{background-color:#ebf7ff;height:32px;padding:8px 18px;font-weight:500;color:#515a6e}[data-v-25df9b0d] .ivu-card .ivu-form-item{margin-bottom:4px;margin-top:0}[data-v-25df9b0d] .ivu-card .ivu-form-item-error{margin-bottom:24px;margin-top:0}", map: undefined, media: undefined });
3287
+ inject("data-v-d6e1875c_0", { source: ".mt-base[data-v-d6e1875c]{margin-top:12px}.action[data-v-d6e1875c]{float:right}.input[data-v-d6e1875c]{width:100px}.label[data-v-d6e1875c]{text-align:right;padding-right:4px}.text[data-v-d6e1875c]{background-color:#ebf7ff;height:32px;padding:8px 18px;font-weight:500;color:#515a6e}[data-v-d6e1875c] .ivu-card .ivu-form-item{margin-bottom:4px;margin-top:0}[data-v-d6e1875c] .ivu-card .ivu-form-item-error{margin-bottom:24px;margin-top:0}", map: undefined, media: undefined });
3429
3288
 
3430
3289
  };
3431
3290
  /* scoped */
3432
- const __vue_scope_id__$b = "data-v-25df9b0d";
3291
+ const __vue_scope_id__$b = "data-v-d6e1875c";
3433
3292
  /* module identifier */
3434
3293
  const __vue_module_identifier__$b = undefined;
3435
3294
  /* functional template */