hl-core 0.0.9-beta.5 → 0.0.9-beta.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/base.api.ts +1042 -0
- package/api/index.ts +2 -620
- package/api/interceptors.ts +53 -14
- package/components/Button/Btn.vue +2 -2
- package/components/Complex/MessageBlock.vue +2 -2
- package/components/Complex/Page.vue +1 -1
- package/components/Dialog/Dialog.vue +60 -15
- package/components/Form/DynamicForm.vue +100 -0
- package/components/Form/FormBlock.vue +12 -3
- package/components/Form/FormData.vue +110 -0
- package/components/Form/FormSection.vue +3 -3
- package/components/Form/FormToggle.vue +25 -5
- package/components/Form/ManagerAttachment.vue +150 -86
- package/components/Form/ProductConditionsBlock.vue +59 -6
- package/components/Input/Datepicker.vue +43 -7
- package/components/Input/DynamicInput.vue +23 -0
- package/components/Input/FileInput.vue +25 -5
- package/components/Input/FormInput.vue +7 -4
- package/components/Input/Monthpicker.vue +34 -0
- package/components/Input/PanelInput.vue +5 -1
- package/components/Input/RoundedEmptyField.vue +5 -0
- package/components/Input/RoundedSelect.vue +18 -0
- package/components/Input/SwitchInput.vue +64 -0
- package/components/Input/TextInput.vue +160 -0
- package/components/Layout/Drawer.vue +17 -4
- package/components/Layout/Header.vue +23 -2
- package/components/Layout/Loader.vue +1 -1
- package/components/Layout/SettingsPanel.vue +13 -7
- package/components/Menu/InfoMenu.vue +35 -0
- package/components/Menu/MenuNav.vue +17 -2
- package/components/Pages/Anketa.vue +140 -52
- package/components/Pages/Auth.vue +50 -9
- package/components/Pages/ContragentForm.vue +124 -50
- package/components/Pages/Documents.vue +179 -29
- package/components/Pages/InvoiceInfo.vue +1 -1
- package/components/Pages/MemberForm.vue +605 -116
- package/components/Pages/ProductAgreement.vue +1 -8
- package/components/Pages/ProductConditions.vue +1055 -183
- package/components/Panel/PanelHandler.vue +583 -46
- package/components/Panel/PanelSelectItem.vue +17 -2
- package/components/Panel/RightPanelCloser.vue +7 -0
- package/components/Transitions/Animation.vue +28 -0
- package/components/Utilities/Qr.vue +44 -0
- package/composables/axios.ts +1 -0
- package/composables/classes.ts +456 -8
- package/composables/constants.ts +114 -2
- package/composables/fields.ts +328 -0
- package/composables/index.ts +270 -19
- package/composables/styles.ts +29 -16
- package/layouts/default.vue +48 -3
- package/locales/ru.json +547 -14
- package/package.json +28 -24
- package/pages/Token.vue +1 -12
- package/plugins/vuetifyPlugin.ts +2 -0
- package/store/data.store.ts +1463 -275
- package/store/extractStore.ts +17 -0
- package/store/form.store.ts +13 -1
- package/store/member.store.ts +1 -1
- package/store/rules.ts +83 -5
- package/types/enum.ts +61 -0
- package/types/env.d.ts +1 -0
- package/types/form.ts +94 -0
- package/types/index.ts +259 -23
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<base-fade-transition>
|
|
3
|
-
<section v-if="firstQuestionList && firstQuestionList.length && !firstPanel && !secondPanel" class="flex flex-col">
|
|
3
|
+
<section v-if="firstQuestionList && firstQuestionList.length && !firstPanel && !secondPanel" class="flex flex-col shrink grow max-h-[90vh]">
|
|
4
4
|
<section :class="[$styles.blueBgLight, $styles.rounded]" class="mx-[10px] my-[14px] p-4 flex flex-col gap-4">
|
|
5
5
|
<base-form-toggle
|
|
6
6
|
v-model="answerToAll"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@clicked="handleToggler"
|
|
11
11
|
/>
|
|
12
12
|
</section>
|
|
13
|
-
<v-form ref="vForm" class="
|
|
13
|
+
<v-form ref="vForm" class="grow shrink overflow-y-scroll" @submit="submitForm">
|
|
14
14
|
<section
|
|
15
15
|
v-if="firstQuestionList.filter(i => i.first.definedAnswers === 'N').length"
|
|
16
16
|
:class="[$styles.blueBgLight, $styles.rounded]"
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
<base-form-text-section v-for="(question, index) in firstQuestionList.filter(i => i.first.definedAnswers === 'Y')" :key="index">
|
|
35
35
|
<base-fade-transition>
|
|
36
36
|
<div
|
|
37
|
-
v-if="question.first.answerName === 'Да' &&
|
|
37
|
+
v-if="question.first.answerName === 'Да' && question.second"
|
|
38
38
|
:class="[$styles.greenBg, $styles.whiteText, $styles.textSimple]"
|
|
39
39
|
class="rounded-t-lg pl-6 py-1 cursor-pointer"
|
|
40
40
|
@click="openFirstPanel(question)"
|
|
41
41
|
>
|
|
42
|
-
{{ $dataStore.t('questionnaireType.pleaseAnswer', { text:
|
|
42
|
+
{{ $dataStore.t('questionnaireType.pleaseAnswer', { text: question.second.length }) }}
|
|
43
43
|
</div>
|
|
44
44
|
</base-fade-transition>
|
|
45
45
|
<span :class="[$styles.textTitle]" class="border-b-[1px] border-b-[#F3F6FC] p-6 flex items-center justify-between">
|
|
46
46
|
{{ question.first.name }}
|
|
47
47
|
<base-fade-transition>
|
|
48
48
|
<i
|
|
49
|
-
v-if="question.first.answerName === 'Да' &&
|
|
49
|
+
v-if="question.first.answerName === 'Да' && question.second && question.second.length"
|
|
50
50
|
class="mdi mdi-chevron-right text-2xl cursor-pointer"
|
|
51
51
|
@click="openFirstPanel(question)"
|
|
52
52
|
></i>
|
|
@@ -68,43 +68,87 @@
|
|
|
68
68
|
</div>
|
|
69
69
|
</base-form-text-section>
|
|
70
70
|
</section>
|
|
71
|
+
<section
|
|
72
|
+
v-if="firstQuestionList.filter(i => i.first.definedAnswers === 'D').length"
|
|
73
|
+
:class="[$styles.blueBgLight, $styles.rounded]"
|
|
74
|
+
class="mx-[10px] mt-[14px] p-4 flex flex-col gap-4"
|
|
75
|
+
>
|
|
76
|
+
<base-form-text-section v-for="(question, index) in firstQuestionList.filter(i => i.first.definedAnswers === 'D')" :key="index">
|
|
77
|
+
<span :class="[$styles.textTitle]" class="border-b-[1px] border-b-[#F3F6FC] p-6 flex items-center justify-between"> {{ question.first.name }} </span>
|
|
78
|
+
<div class="flex items-center justify-start gap-5 px-4 pt-4" :class="[$styles.textSimple]">
|
|
79
|
+
<v-radio-group
|
|
80
|
+
v-model="question.first.answerName"
|
|
81
|
+
class="anketa-radio"
|
|
82
|
+
:true-icon="`mdi-radiobox-marked ${$styles.greenText}`"
|
|
83
|
+
false-icon="mdi-radiobox-blank text-[#636363]"
|
|
84
|
+
:rules="$rules.required"
|
|
85
|
+
:readonly="formStore.isDisabled[whichSurvey] || !$dataStore.isTask()"
|
|
86
|
+
inline
|
|
87
|
+
>
|
|
88
|
+
<v-radio label="Да" value="Да" />
|
|
89
|
+
<v-radio label="Нет" value="Нет" />
|
|
90
|
+
</v-radio-group>
|
|
91
|
+
</div>
|
|
92
|
+
<base-fade-transition>
|
|
93
|
+
<div v-if="question.first.answerName === 'Да'" :class="[$styles.whiteText, $styles.textSimple]">
|
|
94
|
+
<base-form-input
|
|
95
|
+
v-model="question.first.answerText"
|
|
96
|
+
:label="$dataStore.t('labels.inDetails')"
|
|
97
|
+
:readonly="formStore.isDisabled[whichSurvey] || !$dataStore.isTask()"
|
|
98
|
+
:rules="$rules.required"
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
</base-fade-transition>
|
|
102
|
+
</base-form-text-section>
|
|
103
|
+
</section>
|
|
71
104
|
</v-form>
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
105
|
+
<div class="px-[14px]">
|
|
106
|
+
<base-btn
|
|
107
|
+
class="my-[14px] self-center"
|
|
108
|
+
:loading="isButtonLoading"
|
|
109
|
+
:disabled="formStore.isDisabled[whichSurvey] || !$dataStore.isTask()"
|
|
110
|
+
@click="submitForm"
|
|
111
|
+
:text="$dataStore.t('buttons.save')"
|
|
112
|
+
/>
|
|
113
|
+
</div>
|
|
79
114
|
</section>
|
|
80
|
-
<
|
|
81
|
-
v-if="
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
@click="
|
|
85
|
-
firstPanel = false;
|
|
86
|
-
secondPanel = false;
|
|
87
|
-
"
|
|
115
|
+
<base-btn
|
|
116
|
+
v-if="currentQuestion && currentQuestion.second && currentQuestion.second.length && firstPanel"
|
|
117
|
+
class="!absolute z-10 my-[14px] self-center w-[96%] bottom-[-40px]"
|
|
118
|
+
:text="$dataStore.t('buttons.save')"
|
|
119
|
+
@click="submitSecondaryForm"
|
|
88
120
|
/>
|
|
89
|
-
<section ref="firstPanelSection" v-if="
|
|
90
|
-
<
|
|
121
|
+
<section ref="firstPanelSection" v-if="currentQuestion && currentQuestion.second && firstPanel" class="flex flex-col px-[10px] pb-[14px]" :class="[$styles.scrollPage]">
|
|
122
|
+
<v-form
|
|
123
|
+
v-if="currentQuestion"
|
|
124
|
+
:class="[$styles.blueBgLight, $styles.rounded]"
|
|
125
|
+
class="mx-[10px] mt-[14px] p-4 flex flex-col gap-4"
|
|
126
|
+
ref="vSecondaryForm"
|
|
127
|
+
@submit="submitSecondaryForm"
|
|
128
|
+
>
|
|
91
129
|
<base-form-text-section v-for="question in currentQuestion.second" :title="question.name" :key="question.name">
|
|
92
130
|
<base-form-input
|
|
93
131
|
v-if="question.definedAnswers === 'N'"
|
|
94
132
|
v-model="question.answerText"
|
|
95
133
|
class="border-t-[1px] border-t-[#F3F6FC]"
|
|
96
|
-
placeholder="
|
|
134
|
+
:placeholder="$dataStore.t('labels.inputText')"
|
|
97
135
|
:readonly="formStore.isDisabled[whichSurvey] || !$dataStore.isTask()"
|
|
136
|
+
:rules="isSecondRequired ? $rules.required : []"
|
|
98
137
|
/>
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
138
|
+
<base-panel-input
|
|
139
|
+
v-else
|
|
140
|
+
:class="[$styles.textTitle, $styles.greenText]"
|
|
141
|
+
:value="question.answerName ? question.answerName : 'Выбрать вариант ответа'"
|
|
142
|
+
:readonly="formStore.isDisabled[whichSurvey] || !$dataStore.isTask()"
|
|
143
|
+
:clearable="false"
|
|
144
|
+
:error-messages="isSecondRequired ? (question.answerName ? [] : ['Выбрать вариант ответа']) : []"
|
|
145
|
+
@click="openSecondPanel(question)"
|
|
146
|
+
></base-panel-input>
|
|
103
147
|
</base-form-text-section>
|
|
104
|
-
</
|
|
148
|
+
</v-form>
|
|
105
149
|
</section>
|
|
106
150
|
</base-fade-transition>
|
|
107
|
-
<Teleport v-if="secondPanel" to="#panel-actions">
|
|
151
|
+
<Teleport v-if="secondPanel" to="#right-panel-actions">
|
|
108
152
|
<div :class="[$styles.scrollPage]" class="flex flex-col items-center">
|
|
109
153
|
<base-rounded-input v-model="searchQuery" :label="$dataStore.t('labels.search')" class="w-full p-2" :hide-details="true" />
|
|
110
154
|
<div v-if="$dataStore.questionRefs && $dataStore.questionRefs.length && isPanelLoading === false" class="w-full flex flex-col gap-2 p-2">
|
|
@@ -119,7 +163,7 @@
|
|
|
119
163
|
<base-loader v-if="isPanelLoading" class="absolute mt-10" :size="50" />
|
|
120
164
|
</div>
|
|
121
165
|
</Teleport>
|
|
122
|
-
<base-scroll-buttons @up="scrollForm('up')" @down="scrollForm('down')" />
|
|
166
|
+
<base-scroll-buttons v-if="firstQuestionList && firstQuestionList.length" @up="scrollForm('up')" @down="scrollForm('down')" />
|
|
123
167
|
</template>
|
|
124
168
|
|
|
125
169
|
<script lang="ts">
|
|
@@ -132,6 +176,7 @@ export default defineComponent({
|
|
|
132
176
|
const formStore = useFormStore();
|
|
133
177
|
const dataStore = useDataStore();
|
|
134
178
|
const vForm = ref<any>();
|
|
179
|
+
const vSecondaryForm = ref<any>();
|
|
135
180
|
const firstPanelSection = ref<any>();
|
|
136
181
|
const isButtonLoading = ref<boolean>(false);
|
|
137
182
|
const answerToAll = ref<boolean>(false);
|
|
@@ -148,13 +193,13 @@ export default defineComponent({
|
|
|
148
193
|
: 'surveyByCriticalBasePolicyholder',
|
|
149
194
|
);
|
|
150
195
|
const firstQuestionList = ref<AnketaBody[]>([]);
|
|
151
|
-
const secondQuestionList = ref<AnketaSecond[]>([]);
|
|
152
196
|
const currentQuestion = ref<AnketaBody>();
|
|
153
197
|
const currentSecond = ref<AnketaSecond>();
|
|
154
198
|
const isPanelLoading = ref<boolean>(false);
|
|
155
199
|
const searchQuery = ref<string>('');
|
|
156
200
|
|
|
157
201
|
const whichMember = computed(() => ('member' in route.query && !!route.query.member ? (route.query.member as 'insured' | 'policyholder') : 'insured'));
|
|
202
|
+
const isSecondRequired = computed(() => dataStore.controls.isSecondAnketaRequired);
|
|
158
203
|
const scrollForm = (direction: 'up' | 'down') => {
|
|
159
204
|
const scrollObject = { top: direction === 'up' ? 0 : screen.height * 10, behavior: 'smooth' };
|
|
160
205
|
if (firstPanel.value) {
|
|
@@ -168,11 +213,28 @@ export default defineComponent({
|
|
|
168
213
|
await vForm.value.validate().then(async (v: { valid: Boolean; errors: any }) => {
|
|
169
214
|
if (v.valid) {
|
|
170
215
|
isButtonLoading.value = true;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
216
|
+
const isValid = dataStore.validateAnketa(whichSurvey.value);
|
|
217
|
+
if (!isValid) {
|
|
218
|
+
isButtonLoading.value = false;
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
if (formStore[whichSurvey.value] && formStore[whichSurvey.value]?.body) {
|
|
222
|
+
formStore[whichSurvey.value]?.body.forEach(question => {
|
|
223
|
+
if (question.first.definedAnswers === 'Y' && question.first.answerName?.match(new RegExp('Нет', 'i')) && question.second && question.second.length) {
|
|
224
|
+
question.second.forEach(second => {
|
|
225
|
+
if (second.definedAnswers === 'N') {
|
|
226
|
+
second.answerText = null;
|
|
227
|
+
} else {
|
|
228
|
+
second.answerId = null;
|
|
229
|
+
second.answerName = null;
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
if (question.first.definedAnswers === 'D' && question.first.answerName?.match(new RegExp('Нет', 'i')) && question.first.answerText) {
|
|
234
|
+
question.first.answerText = null;
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
}
|
|
176
238
|
formStore[whichSurvey.value]!.type = surveyType.value;
|
|
177
239
|
const anketaToken = await dataStore.setSurvey(formStore[whichSurvey.value]!);
|
|
178
240
|
if (typeof anketaToken === 'string') {
|
|
@@ -201,13 +263,36 @@ export default defineComponent({
|
|
|
201
263
|
});
|
|
202
264
|
};
|
|
203
265
|
|
|
204
|
-
const
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
266
|
+
const submitSecondaryForm = async () => {
|
|
267
|
+
await vSecondaryForm.value.validate().then(async (v: { valid: Boolean; errors: any }) => {
|
|
268
|
+
if (v.valid) {
|
|
269
|
+
if (isSecondRequired.value && currentQuestion.value && currentQuestion.value.second) {
|
|
270
|
+
const hasError = currentQuestion.value.second.find(second => (second.definedAnswers === 'N' ? !second.answerText : !second.answerName));
|
|
271
|
+
if (hasError) {
|
|
272
|
+
dataStore.showToaster('error', dataStore.t('toaster.emptySecondAnketa', { text: hasError.name }), 5000);
|
|
273
|
+
return false;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
firstPanel.value = false;
|
|
277
|
+
secondPanel.value = false;
|
|
278
|
+
} else {
|
|
279
|
+
const errors = document.querySelector('.v-input--error');
|
|
280
|
+
if (errors) {
|
|
281
|
+
const errorText = errors.parentElement?.children[0].innerHTML;
|
|
282
|
+
if (errorText) {
|
|
283
|
+
dataStore.showToaster('error', dataStore.t('toaster.errorFormField', { text: errorText?.replace(/[-<>!//.]/g, '') }));
|
|
284
|
+
}
|
|
285
|
+
errors.scrollIntoView({
|
|
286
|
+
behavior: 'smooth',
|
|
287
|
+
block: 'center',
|
|
288
|
+
inline: 'nearest',
|
|
289
|
+
});
|
|
290
|
+
}
|
|
209
291
|
}
|
|
210
292
|
});
|
|
293
|
+
};
|
|
294
|
+
const openFirstPanel = async (question: AnketaBody) => {
|
|
295
|
+
currentQuestion.value = question;
|
|
211
296
|
firstPanel.value = true;
|
|
212
297
|
secondPanel.value = false;
|
|
213
298
|
};
|
|
@@ -219,8 +304,8 @@ export default defineComponent({
|
|
|
219
304
|
await dataStore.getQuestionRefs(question.id);
|
|
220
305
|
secondPanel.value = true;
|
|
221
306
|
dataStore.panelAction = null;
|
|
222
|
-
dataStore.
|
|
223
|
-
dataStore.
|
|
307
|
+
dataStore.rightPanel.open = true;
|
|
308
|
+
dataStore.rightPanel.title = question.name;
|
|
224
309
|
isPanelLoading.value = false;
|
|
225
310
|
};
|
|
226
311
|
|
|
@@ -231,12 +316,11 @@ export default defineComponent({
|
|
|
231
316
|
}
|
|
232
317
|
secondPanel.value = false;
|
|
233
318
|
dataStore.panelAction = null;
|
|
234
|
-
dataStore.
|
|
319
|
+
dataStore.rightPanel.open = false;
|
|
235
320
|
dataStore.questionRefs = [];
|
|
236
321
|
};
|
|
237
322
|
|
|
238
323
|
const getDefinedAnswerId = async (id: string, value: any, index: number) => {
|
|
239
|
-
// @ts-ignore
|
|
240
324
|
await dataStore.definedAnswers(id, whichSurvey.value, value, index);
|
|
241
325
|
};
|
|
242
326
|
|
|
@@ -272,18 +356,16 @@ export default defineComponent({
|
|
|
272
356
|
formStore.applicationData.processInstanceId,
|
|
273
357
|
whichMember.value === 'insured' ? formStore.applicationData.insuredApp[0].id : formStore.applicationData.clientApp.id,
|
|
274
358
|
whichSurvey.value,
|
|
275
|
-
surveyType.value === 'health' ? 'surveyByHealthSecond' : 'surveyByCriticalSecond',
|
|
276
359
|
whichMember.value,
|
|
277
360
|
);
|
|
278
361
|
firstQuestionList.value = formStore[whichSurvey.value]!.body;
|
|
279
|
-
secondQuestionList.value = formStore[surveyType.value === 'health' ? 'surveyByHealthSecond' : 'surveyByCriticalSecond']!;
|
|
280
362
|
formStore[whichSurvey.value]!.type = surveyType.value;
|
|
281
363
|
const negativeAnswer = firstQuestionList.value.every(i => i.first.answerName === 'Нет');
|
|
282
364
|
if (negativeAnswer) {
|
|
283
365
|
answerToAll.value = true;
|
|
284
366
|
}
|
|
285
367
|
await Promise.allSettled(
|
|
286
|
-
firstQuestionList.value.map(async
|
|
368
|
+
firstQuestionList.value.map(async question => {
|
|
287
369
|
await dataStore.definedAnswers(question.first.id, whichSurvey.value);
|
|
288
370
|
}),
|
|
289
371
|
);
|
|
@@ -293,10 +375,14 @@ export default defineComponent({
|
|
|
293
375
|
await onInit();
|
|
294
376
|
});
|
|
295
377
|
|
|
378
|
+
onUnmounted(() => {
|
|
379
|
+
dataStore.abortRequests();
|
|
380
|
+
});
|
|
381
|
+
|
|
296
382
|
watch(
|
|
297
|
-
() => dataStore.
|
|
383
|
+
() => dataStore.rightPanel.open,
|
|
298
384
|
() => {
|
|
299
|
-
if (dataStore.
|
|
385
|
+
if (dataStore.rightPanel.open === false) {
|
|
300
386
|
secondPanel.value = false;
|
|
301
387
|
dataStore.panelAction = null;
|
|
302
388
|
}
|
|
@@ -308,7 +394,7 @@ export default defineComponent({
|
|
|
308
394
|
() => firstQuestionList.value,
|
|
309
395
|
value => {
|
|
310
396
|
if (value) {
|
|
311
|
-
const hasPositiveAnswer = value.some(i => i.first.definedAnswers === 'Y' && i.first.answerName !== 'Нет');
|
|
397
|
+
const hasPositiveAnswer = value.some(i => (i.first.definedAnswers === 'Y' || i.first.definedAnswers === 'D') && i.first.answerName !== 'Нет');
|
|
312
398
|
answerToAll.value = !hasPositiveAnswer;
|
|
313
399
|
}
|
|
314
400
|
},
|
|
@@ -320,10 +406,10 @@ export default defineComponent({
|
|
|
320
406
|
return {
|
|
321
407
|
// State
|
|
322
408
|
vForm,
|
|
409
|
+
vSecondaryForm,
|
|
323
410
|
formStore,
|
|
324
411
|
answerToAll,
|
|
325
412
|
firstQuestionList,
|
|
326
|
-
secondQuestionList,
|
|
327
413
|
whichSurvey,
|
|
328
414
|
isButtonLoading,
|
|
329
415
|
firstPanel,
|
|
@@ -333,9 +419,11 @@ export default defineComponent({
|
|
|
333
419
|
isPanelLoading,
|
|
334
420
|
searchQuery,
|
|
335
421
|
firstPanelSection,
|
|
422
|
+
isSecondRequired,
|
|
336
423
|
|
|
337
424
|
// Functions
|
|
338
425
|
submitForm,
|
|
426
|
+
submitSecondaryForm,
|
|
339
427
|
getDefinedAnswerId,
|
|
340
428
|
scrollForm,
|
|
341
429
|
handleToggler,
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="flex h-full" :class="$styles.blueBgLight">
|
|
3
|
+
<svg v-if="$dataStore.isAULETTI" class="absolute ml-8 mt-8" xmlns="http://www.w3.org/2000/svg" width="256" height="73" viewBox="0 0 256 73" fill="none">
|
|
4
|
+
<path
|
|
5
|
+
fill-rule="evenodd"
|
|
6
|
+
clip-rule="evenodd"
|
|
7
|
+
d="M104.544 45.6918H107.417C108.675 45.6918 109.461 45.1378 109.461 44.2252C109.461 43.456 108.989 43.056 108.318 42.8715C108.79 42.6662 109.21 42.3177 109.21 41.6306C109.21 40.8 108.486 40.2769 107.385 40.2769H104.544V45.6918ZM105.792 44.7073V43.3536H107.165C107.847 43.3536 108.172 43.6202 108.172 44.01C108.172 44.4303 107.847 44.7073 107.228 44.7073H105.792ZM105.792 42.5125V41.2306H107.113C107.679 41.2306 107.92 41.4972 107.92 41.8459C107.92 42.2356 107.626 42.5125 107.092 42.5125H105.792ZM113.267 45.8149C114.284 45.8149 115.007 45.4148 115.531 44.7995L114.787 44.1533C114.346 44.574 113.906 44.7995 113.287 44.7995C112.47 44.7995 111.83 44.3072 111.694 43.4252H115.762C115.772 43.3637 115.783 43.1587 115.783 43.0766C115.783 41.5178 114.892 40.1641 113.13 40.1641C111.547 40.1641 110.426 41.4356 110.426 42.9843C110.426 44.6764 111.663 45.8149 113.267 45.8149ZM111.684 42.6048C111.799 41.7639 112.344 41.1794 113.12 41.1794C113.959 41.1794 114.441 41.8048 114.525 42.6048H111.684ZM117.062 47.3327H118.33V44.8508C118.718 45.3534 119.295 45.8046 120.207 45.8046C121.528 45.8046 122.786 44.7892 122.786 42.9946C122.786 41.1794 121.517 40.1641 120.207 40.1641C119.316 40.1641 118.739 40.6152 118.33 41.1794V40.2769H117.062V47.3327ZM119.913 44.7277C119.054 44.7277 118.299 44.0406 118.299 42.9946C118.299 41.9381 119.054 41.2408 119.913 41.2408C120.773 41.2408 121.496 41.9279 121.496 42.9741C121.496 44.0611 120.783 44.7277 119.913 44.7277ZM124.086 45.6918H125.354V43.5075H127.797V45.6918H129.065V40.2769H127.797V42.4715H125.354V40.2769H124.086V45.6918ZM133.29 45.8149C134.999 45.8149 136.257 44.5329 136.257 42.9946C136.257 41.4256 135.009 40.1641 133.311 40.1641C131.613 40.1641 130.355 41.4459 130.355 42.9946C130.355 44.5534 131.602 45.8149 133.29 45.8149ZM133.311 44.7381C132.325 44.7381 131.623 43.938 131.623 42.9946C131.623 42.0306 132.273 41.2511 133.29 41.2511C134.286 41.2511 134.988 42.0409 134.988 42.9946C134.988 43.9483 134.338 44.7381 133.311 44.7381ZM140.104 45.8149C141.184 45.8149 141.824 45.3943 142.369 44.7995L141.603 44.061C141.205 44.4611 140.765 44.7381 140.167 44.7381C139.192 44.7381 138.511 43.9586 138.511 42.9946V42.9741C138.511 42.0306 139.182 41.2511 140.104 41.2511C140.744 41.2511 141.152 41.5281 141.54 41.9279L142.327 41.0972C141.813 40.5435 141.163 40.1641 140.115 40.1641C138.458 40.1641 137.242 41.4562 137.242 42.9946V43.015C137.242 44.5532 138.458 45.8149 140.104 45.8149ZM144.664 45.6918H145.943V41.3433H147.726V40.2769H142.882V41.3433H144.664V45.6918ZM148.732 45.6918H151.363C152.663 45.6918 153.471 45.0047 153.471 43.8869C153.471 42.7073 152.517 42.174 151.269 42.174H150.001V40.2769H148.732V45.6918ZM150.001 44.6867V43.1382H151.175C151.825 43.1382 152.202 43.4049 152.202 43.8869C152.202 44.4098 151.835 44.6867 151.196 44.6867H150.001ZM157.087 46.9941H158.146L158.272 45.6918H162.151V46.9941H163.21L163.378 44.6252H162.591V40.2769H158.303V40.9433C158.303 42.4612 158.146 43.7227 157.685 44.6252H157.087V46.9941ZM158.985 44.6252C159.31 43.9586 159.499 43.0457 159.499 42.0612V41.3433H161.323V44.6252H158.985ZM169.08 45.6918V42.4818C169.08 41.0358 168.284 40.1947 166.648 40.1947C165.747 40.1947 165.149 40.3793 164.541 40.646L164.887 41.6409C165.39 41.4356 165.852 41.3025 166.47 41.3025C167.351 41.3025 167.833 41.7126 167.833 42.4612V42.5638C167.403 42.4304 166.973 42.3382 166.302 42.3382C165.013 42.3382 164.059 42.9124 164.059 44.1125C164.059 45.2201 164.981 45.8046 166.03 45.8046C166.868 45.8046 167.445 45.4661 167.822 45.0251V45.6918H169.08ZM167.854 43.733C167.854 44.4098 167.225 44.8714 166.386 44.8714C165.789 44.8714 165.317 44.5842 165.317 44.0713C165.317 43.5279 165.789 43.2098 166.586 43.2098C167.078 43.2098 167.529 43.3022 167.854 43.4252V43.733ZM170.59 45.6918H171.859V43.5075H174.301V45.6918H175.57V40.2769H174.301V42.4715H171.859V40.2769H170.59V45.6918ZM177.163 45.6918H178.432V43.5075H180.874V45.6918H182.143V40.2769H180.874V42.4715H178.432V40.2769H177.163V45.6918ZM183.736 45.6918H186.263C187.563 45.6918 188.37 45.0047 188.37 43.8869C188.37 42.7073 187.416 42.174 186.168 42.174H185.005V40.2769H183.736V45.6918ZM185.005 44.6867V43.1382H186.074C186.724 43.1382 187.102 43.4049 187.102 43.8869C187.102 44.4098 186.735 44.6867 186.095 44.6867H185.005ZM189.209 45.6918H190.477V40.2769H189.209V45.6918ZM192.071 45.6918H193.308V42.1022L195.038 44.5125L196.778 42.0818V45.6918H198.057V40.2769H196.799L195.059 42.7893L193.329 40.2769H192.071V45.6918ZM107.176 57.3214C108.884 57.3214 110.142 56.0394 110.142 54.5012C110.142 52.9321 108.895 51.6706 107.197 51.6706C105.498 51.6706 104.24 52.9525 104.24 54.5012C104.24 56.0599 105.488 57.3214 107.176 57.3214ZM107.197 56.2446C106.211 56.2446 105.509 55.4446 105.509 54.5012C105.509 53.5372 106.159 52.7577 107.176 52.7577C108.171 52.7577 108.874 53.5474 108.874 54.5012C108.874 55.4549 108.224 56.2446 107.197 56.2446ZM114.137 56.2446C113.224 56.2446 112.533 55.5062 112.533 54.5831C112.533 53.65 113.183 52.9116 114.116 52.9116C115.038 52.9116 115.73 53.6602 115.73 54.5831C115.73 55.5062 115.091 56.2446 114.137 56.2446ZM114.116 57.3214C115.782 57.3214 116.999 56.06 116.999 54.5626C116.999 53.0756 115.782 51.927 114.357 51.927C113.204 51.927 112.512 52.4705 112.229 52.9422C112.291 52.2243 112.616 51.6296 113.686 51.404L116.705 50.7578L116.495 49.763L113.476 50.3784C111.463 50.7886 111.264 52.4807 111.264 54.1627C111.264 56.1624 112.323 57.3214 114.116 57.3214ZM120.825 57.3214C121.842 57.3214 122.565 56.9214 123.09 56.3061L122.345 55.6599C121.905 56.0805 121.465 56.3061 120.846 56.3061C120.028 56.3061 119.389 55.8139 119.253 54.9318H123.32C123.331 54.8703 123.341 54.6653 123.341 54.5831C123.341 53.0244 122.45 51.6706 120.689 51.6706C119.106 51.6706 117.984 52.9423 117.984 54.4909C117.984 56.1831 119.221 57.3214 120.825 57.3214ZM119.242 54.1114C119.357 53.2705 119.903 52.6859 120.678 52.6859C121.517 52.6859 121.999 53.3114 122.083 54.1114H119.242ZM132.074 58.5007H133.133L133.29 56.1318H132.504V51.7834H131.235V56.1318H129.191V51.7834H127.933V56.1318H125.889V51.7834H124.62V57.1983H132.074V58.5007ZM138.993 57.1983V53.9883C138.993 52.5424 138.196 51.7013 136.561 51.7013C135.659 51.7013 135.062 51.886 134.454 52.1526L134.8 53.1475C135.303 52.9422 135.764 52.809 136.383 52.809C137.263 52.809 137.746 53.2191 137.746 53.9679V54.0704C137.316 53.937 136.886 53.8448 136.215 53.8448C134.925 53.8448 133.972 54.419 133.972 55.619C133.972 56.7266 134.894 57.3112 135.942 57.3112C136.781 57.3112 137.358 56.9728 137.735 56.5317V57.1983H138.993ZM137.767 55.2396C137.767 55.9164 137.138 56.3779 136.299 56.3779C135.701 56.3779 135.229 56.0907 135.229 55.578C135.229 55.0346 135.701 54.7165 136.498 54.7165C136.991 54.7165 137.441 54.8088 137.767 54.9318V55.2396ZM140.503 57.1983H141.771V55.014H144.214V57.1983H145.482V51.7834H144.214V53.9781H141.771V51.7834H140.503V57.1983ZM147.076 57.1983H148.271L150.902 53.5883V57.1983H152.129V51.7834H150.934C150.053 52.9935 149.183 54.2037 148.313 55.4138V51.7834H147.076V57.1983ZM153.219 57.1983H154.708L156.018 55.3729H157.15V57.1983H158.419V51.7834H155.641C154.246 51.7834 153.46 52.5013 153.46 53.5474C153.46 54.3986 153.995 54.9421 154.75 55.1677L153.219 57.1983ZM155.819 54.4395C155.169 54.4395 154.729 54.132 154.729 53.6089C154.729 53.0961 155.137 52.7885 155.808 52.7885H157.15V54.4395H155.819ZM160.012 57.1983H161.249V53.6089L162.979 56.0191L164.719 53.5883V57.1983H165.998V51.7834H164.74L163 54.2959L161.27 51.7834H160.012V57.1983Z"
|
|
8
|
+
fill="#9B9D9F"
|
|
9
|
+
/>
|
|
10
|
+
<path
|
|
11
|
+
fill-rule="evenodd"
|
|
12
|
+
clip-rule="evenodd"
|
|
13
|
+
d="M47.2838 0.000584217C50.7026 0.000584217 53.7982 1.35642 56.0389 3.54837C58.2795 5.74052 59.6656 8.76909 59.6656 12.1134V14.536H57.1891C55.1375 14.536 53.2798 15.3495 51.9358 16.6643C50.5916 17.9793 49.7601 19.7966 49.7601 21.8037V24.2262V27.4784C50.2542 26.8811 50.7798 26.31 51.3345 25.7673C55.3678 21.8217 60.94 19.3811 67.0944 19.3811H69.5708C72.0479 19.3811 74.5233 19.3811 76.9999 19.3811C78.3814 19.3811 79.4763 18.3095 79.4763 16.9583C79.4763 15.6129 78.3745 14.5356 76.9999 14.5356C74.1935 14.5356 71.387 14.5354 68.5808 14.5354C66.3984 14.5354 64.6186 12.7942 64.6186 10.6593V9.69025H67.0949C69.1466 9.69025 71.0042 8.87669 72.3483 7.56186C73.6924 6.2469 74.5239 4.42966 74.5239 2.42258V0H77.0005C81.7868 0 86.1206 1.89829 89.2577 4.96702C92.3946 8.03595 94.3351 12.2757 94.3351 16.958C94.3351 21.6405 92.3946 25.8802 89.2577 28.9489C86.1208 32.0176 81.787 33.9159 77.0005 33.9159H74.5239C72.0473 33.9159 69.5713 33.9161 67.0949 33.9161C65.0433 33.9161 63.1856 34.7295 61.8415 36.0445C60.4975 37.3592 59.6658 39.1766 59.6658 41.1836C59.6658 43.1909 60.4975 45.0082 61.8415 46.3229C63.1854 47.6378 65.0431 48.4513 67.0949 48.4513C69.1466 48.4513 71.004 47.6377 72.3483 46.3228C73.1235 45.5644 73.7286 44.6388 74.1016 43.6062H68.5804C66.3981 43.6062 64.6181 41.865 64.6181 39.73V38.761H67.0946H74.5241H77.0005H79.4768L79.477 41.1836C79.477 44.5283 78.0907 47.5567 75.8501 49.7485C73.6094 51.9405 70.514 53.2964 67.0949 53.2964C63.676 53.2964 60.5803 51.9405 58.3396 49.7486C56.099 47.5567 54.7129 44.5283 54.7129 41.1836C54.7129 37.8391 56.099 34.8107 58.3396 32.6188C60.5805 30.4268 63.6762 29.071 67.0949 29.071C69.5713 29.071 72.0473 29.0708 74.5239 29.0708H77.0005C80.4199 29.0708 83.5155 27.715 85.7559 25.5232C87.9964 23.3315 89.3823 20.3031 89.3823 16.958C89.3823 13.6131 87.9964 10.5844 85.7559 8.3927C84.0046 6.67948 81.7307 5.47691 79.1881 5.03353C78.8024 6.75058 78.0442 8.33129 77.0008 9.69042C81.0974 9.69083 84.4291 12.953 84.4291 16.9583C84.4291 20.9585 81.0892 24.2262 76.9999 24.2262C74.5233 24.2262 72.0479 24.2262 69.5708 24.2262H67.0944C62.3072 24.2262 57.9732 26.1244 54.8363 29.193C48.066 35.8161 48.066 46.7255 54.8363 53.3486C57.9732 56.4173 62.3072 58.3153 67.0944 58.3153H69.5708V59.2265C69.5708 60.3482 69.1387 61.3137 68.2962 62.0746C67.4536 62.8355 66.4355 63.1797 65.2924 63.0901C63.3075 62.9347 61.3956 62.5248 59.5914 61.8938C59.2774 64.7074 57.9786 67.232 56.0389 69.1297C53.7982 71.3217 50.7026 72.6775 47.2838 72.6775C43.8647 72.6775 40.769 71.3217 38.5283 69.1297C36.5886 67.2322 35.2898 64.7076 34.9758 61.894C33.1715 62.525 31.2595 62.9352 29.2744 63.0906C28.1315 63.1801 27.1133 62.8358 26.2707 62.0749C25.4282 61.3141 24.9959 60.3486 24.9959 59.2268V58.3158H27.4724C32.2596 58.3158 36.5935 56.4176 39.7304 53.349C46.502 46.7245 46.502 35.8171 39.7304 29.1927C36.5935 26.124 32.2596 24.2258 27.4724 24.2258H24.9959C22.5195 24.2258 20.0431 24.2258 17.5668 24.2258C13.4777 24.2258 10.1376 20.958 10.1376 16.9579C10.1376 12.9527 13.4695 9.69049 17.5661 9.69008C16.5228 8.33116 15.7648 6.75103 15.3793 5.03412C12.8367 5.4775 10.563 6.6799 8.81163 8.39312C6.57118 10.5849 5.18509 13.6133 5.18509 16.9583C5.18509 20.3034 6.57118 23.3318 8.81163 25.5235C11.0521 27.7153 14.1479 29.0712 17.5673 29.0712H20.0436C22.5205 29.0712 24.9962 29.0717 27.4728 29.0717C30.8914 29.0717 33.9873 30.4276 36.2281 32.6195C38.4687 34.8115 39.8548 37.8399 39.8548 41.1843C39.8548 44.5291 38.4687 47.5574 36.2281 49.7494C33.9873 51.9413 30.8914 53.2972 27.4728 53.2972C24.0538 53.2972 20.9581 51.9412 18.7176 49.7492C16.4771 47.5575 15.0908 44.5291 15.0908 41.1843V38.7617H20.0436H27.4728H29.9491V39.7308C29.9491 41.8658 28.1694 43.6069 25.9869 43.6069H20.4661C20.8391 44.6395 21.4442 45.5652 22.2195 46.3235C23.5636 47.6385 25.4211 48.4521 27.4728 48.4521C29.5244 48.4521 31.3821 47.6387 32.7262 46.3237C34.0702 45.0089 34.9019 43.1916 34.9019 41.1843C34.9019 39.1773 34.0702 37.36 32.7262 36.0452C31.3821 34.7303 29.5244 33.9168 27.4728 33.9168C24.9962 33.9168 22.5205 33.9162 20.0436 33.9162H17.5673C12.7807 33.9162 8.44674 32.0182 5.30982 28.9492C2.17276 25.8806 0.232422 21.6409 0.232422 16.9583C0.232422 12.2758 2.17297 8.03609 5.30982 4.96743C8.44674 1.89871 12.7807 0.000333839 17.5673 0.000333839H20.0436V2.42308C20.0436 4.43016 20.8751 6.24748 22.2193 7.56245C23.5633 8.87727 25.421 9.69083 27.4726 9.69083H29.9489V10.6596C29.9489 12.7946 28.1688 14.536 25.9864 14.5357C23.1801 14.5355 20.3734 14.5352 17.5668 14.5352C16.1922 14.5352 15.0904 15.6125 15.0904 16.9579C15.0904 18.3091 16.1853 19.3807 17.5668 19.3807C20.0431 19.3807 22.5195 19.3807 24.9959 19.3807H27.4724C33.6268 19.3807 39.1989 21.8213 43.2322 25.7669C43.7873 26.31 44.3131 26.8815 44.8074 27.4791V24.2262V21.8037C44.8074 19.7966 43.9759 17.9793 42.6318 16.6643C41.2877 15.3495 39.4299 14.536 37.3783 14.536H34.9019C34.9019 11.3059 34.9019 8.07581 34.9019 4.84567H33.9113C31.7289 4.84567 29.9489 3.10456 29.9489 0.969634V0.000584217H34.9019H39.8548C42.3312 0.000584217 44.8074 0.000584217 47.2838 0.000584217ZM115.912 18.6546H116.716L119.651 25.9359H112.837L115.912 18.6546ZM112.627 14.1763L104.241 33.0806H109.762L110.95 30.3115H121.643L122.866 33.0806H128.318L120.105 14.1763H112.627ZM131.588 14.1763V23.8165C131.588 30.0723 135.467 33.5591 141.548 33.5591C147.628 33.5591 151.507 30.0723 151.507 23.8165V14.1763H146.335V23.8506C146.335 27.2007 144.832 29.1493 141.548 29.1493C138.228 29.1493 136.725 27.2007 136.725 23.8506V14.1763H131.588ZM156.49 14.1763V33.0806H174.382V28.5339H161.627V14.1763H156.49ZM178.841 14.1763V33.0806H197.082V28.4314H183.978V25.765H195.335V21.2184H183.978V18.7229H196.628V14.1763H178.841ZM201.471 14.1763V18.6886H208.984V33.0806H214.156V18.6886H221.669V14.1763H201.471ZM225.674 14.1763V18.6886H233.187V33.0806H238.359V18.6886H245.872V14.1763H225.674ZM250.471 14.1763V33.0806H255.607V14.1763H250.471ZM39.8548 4.84567V9.93328C42.2805 10.4149 44.4488 11.5905 46.1336 13.2386C46.5472 13.6432 46.9315 14.0767 47.2838 14.5352C47.636 14.0767 48.0203 13.6432 48.434 13.2386C50.0446 11.663 52.0973 10.5195 54.394 10.0009C54.0351 8.84331 53.3892 7.80764 52.5371 6.97414C51.7619 6.21578 50.8159 5.62388 49.7601 5.25913V7.26825H44.8074V4.84567H39.8548ZM39.8546 59.4887V60.5647C39.8546 62.5719 40.6862 64.3893 42.0303 65.704C43.3743 67.0188 45.2319 67.8323 47.2838 67.8323C49.3354 67.8323 51.1931 67.0188 52.5371 65.704C53.8813 64.3891 54.7128 62.5717 54.7128 60.5647V59.4887C53.497 58.6925 52.3652 57.7826 51.3345 56.7743C49.7155 55.1905 48.3449 53.3641 47.2836 51.3556C46.2223 53.3641 44.8512 55.1909 43.2322 56.7747C42.2017 57.7829 41.0703 58.6927 39.8546 59.4887Z"
|
|
14
|
+
fill="#C19B5F"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
3
17
|
<!-- @vue-ignore -->
|
|
4
|
-
<aside
|
|
18
|
+
<aside
|
|
19
|
+
v-if="$dataStore.isAULETTI === false"
|
|
20
|
+
:class="{ '!hidden': !$display().lgAndUp.value }"
|
|
21
|
+
class="w-full lg:w-1/4 bg-white flex flex-col justify-between border-r-2 relative px-8"
|
|
22
|
+
>
|
|
5
23
|
<img draggable="false" class="w-[50%] mt-8" src="~/assets/auth-logo.svg" />
|
|
6
24
|
<div class="self-center flex flex-col items-center justify-center base-auth">
|
|
7
25
|
<v-carousel :show-arrows="false" color="#009C73">
|
|
@@ -16,15 +34,29 @@
|
|
|
16
34
|
</div>
|
|
17
35
|
<base-btn :text="$dataStore.t('buttons.more')" :disabled="true" class="mb-28" />
|
|
18
36
|
</aside>
|
|
19
|
-
<section v-if="isLogin" class="w-full lg:w-3/4
|
|
37
|
+
<section v-if="isLogin" class="flex flex-col justify-center" :class="[$dataStore.isAULETTI === false ? 'w-full lg:w-3/4' : 'w-full']">
|
|
20
38
|
<!-- @vue-ignore -->
|
|
21
|
-
<img
|
|
39
|
+
<img
|
|
40
|
+
v-if="$dataStore.isAULETTI === false"
|
|
41
|
+
:class="{ '!block': !$display().lgAndUp.value }"
|
|
42
|
+
draggable="false"
|
|
43
|
+
class="hidden w-2/4 sm:w-1/3 mb-10 self-center"
|
|
44
|
+
src="~/assets/auth-logo.svg"
|
|
45
|
+
/>
|
|
22
46
|
<div class="flex flex-col items-center mb-8 text-center">
|
|
23
|
-
<h1 class="text-[28px] font-medium mb-1">{{ $dataStore.t('labels.welcomeHL') }}</h1>
|
|
47
|
+
<h1 class="text-[28px] font-medium mb-1">{{ $dataStore.isAULETTI === false ? $dataStore.t('labels.welcomeHL') : $dataStore.t('labels.welcomeAuletti') }}</h1>
|
|
24
48
|
<span :class="[$styles.greyTextDark]" class="text-[16px]">{{ $dataStore.t('labels.needAuth') }}</span>
|
|
25
49
|
</div>
|
|
26
50
|
<v-form ref="vForm" class="w-2/3 lg:w-[25vw] self-center">
|
|
27
|
-
<base-rounded-input
|
|
51
|
+
<base-rounded-input
|
|
52
|
+
class="mb-1"
|
|
53
|
+
v-model.trim="login"
|
|
54
|
+
:rules="$rules.required"
|
|
55
|
+
:loading="authLoading"
|
|
56
|
+
:placeholder="$dataStore.t('buttons.userLogin')"
|
|
57
|
+
type="text"
|
|
58
|
+
@keyup.enter="submitAuthForm"
|
|
59
|
+
/>
|
|
28
60
|
<base-rounded-input
|
|
29
61
|
class="mb-1"
|
|
30
62
|
v-model.trim="password"
|
|
@@ -34,6 +66,7 @@
|
|
|
34
66
|
:append-inner-icon="showPassword ? 'mdi-eye-outline' : 'mdi-eye-off-outline'"
|
|
35
67
|
@append="showPassword = !showPassword"
|
|
36
68
|
:type="showPassword ? ('' as InputTypes) : 'password'"
|
|
69
|
+
@keyup.enter="submitAuthForm"
|
|
37
70
|
/>
|
|
38
71
|
<span v-if="$dataStore.isLKA" class="inline-block w-full text-end mb-4" :class="[$styles.textSimple, $styles.greyTextDark]" @click="isLogin = false">{{
|
|
39
72
|
$dataStore.t('labels.resetPassword')
|
|
@@ -41,13 +74,19 @@
|
|
|
41
74
|
<base-btn :text="$dataStore.t('buttons.login')" :disabled="authLoading" :btn="$styles.greenBtn" @click="submitAuthForm" />
|
|
42
75
|
</v-form>
|
|
43
76
|
</section>
|
|
44
|
-
<section v-if="isLogin === false" class="w-full lg:w-3/4
|
|
77
|
+
<section v-if="isLogin === false" class="flex flex-col justify-center items-center" :class="[$dataStore.isAULETTI === false ? 'w-full lg:w-3/4' : 'w-full']">
|
|
45
78
|
<div class="flex flex-col items-center mb-4">
|
|
46
79
|
<h1 class="text-[28px] font-medium mb-1">{{ $dataStore.t('labels.resetPassword') }}</h1>
|
|
47
80
|
<span :class="[$styles.greyTextDark]" class="text-[16px]">{{ $dataStore.t('labels.resetType') }}</span>
|
|
48
81
|
</div>
|
|
49
82
|
<div class="p-[2px] mb-8 rounded-[12px] border-[1px] w-2/3 lg:w-[25vw]" :class="[$styles.whiteBg]">
|
|
50
|
-
<v-tabs
|
|
83
|
+
<v-tabs
|
|
84
|
+
v-model="resetPasswordType"
|
|
85
|
+
density="compact"
|
|
86
|
+
:slider-color="$dataStore.isAULETTI || $dataStore.isAulettiParent ? '#DEBE8C' : '#009c73'"
|
|
87
|
+
class="w-full base-reset-password rounded-[12px]"
|
|
88
|
+
:class="[$styles.whiteBg]"
|
|
89
|
+
>
|
|
51
90
|
<v-tab :ripple="false" value="phone"> {{ $dataStore.t('form.phoneNumber') }} </v-tab>
|
|
52
91
|
<v-tab :ripple="false" value="email"> {{ $dataStore.t('form.email') }} </v-tab>
|
|
53
92
|
</v-tabs>
|
|
@@ -61,6 +100,7 @@
|
|
|
61
100
|
:loading="authLoading"
|
|
62
101
|
:placeholder="$dataStore.t('form.phoneNumber')"
|
|
63
102
|
type="text"
|
|
103
|
+
@keyup.enter="submitAuthForm"
|
|
64
104
|
/>
|
|
65
105
|
<base-rounded-input
|
|
66
106
|
v-if="resetPasswordType === 'email'"
|
|
@@ -69,6 +109,7 @@
|
|
|
69
109
|
:loading="authLoading"
|
|
70
110
|
:placeholder="$dataStore.t('form.email')"
|
|
71
111
|
type="text"
|
|
112
|
+
@keyup.enter="submitAuthForm"
|
|
72
113
|
/>
|
|
73
114
|
<span class="inline-block w-full text-end mb-4" :class="[$styles.textSimple, $styles.greyTextDark]" @click="isLogin = true">{{ $dataStore.t('buttons.login') }}</span>
|
|
74
115
|
<base-btn :text="$dataStore.t('buttons.reset')" :disabled="authLoading" :btn="$styles.greenBtn" @click="submitAuthForm" />
|
|
@@ -109,8 +150,8 @@ export default defineComponent({
|
|
|
109
150
|
},
|
|
110
151
|
];
|
|
111
152
|
|
|
112
|
-
const login = ref<string>(
|
|
113
|
-
const password = ref<string>(
|
|
153
|
+
const login = ref<string>('');
|
|
154
|
+
const password = ref<string>('');
|
|
114
155
|
|
|
115
156
|
const numAttempts = ref(0);
|
|
116
157
|
|