Merge branch 'main' into test

This commit is contained in:
Nukeap committed 2025-02-19 15:14:28 +03:00
commit 714f76a2b2
234 files changed
+12592 -1042

No files matched your search

-2
View File
@@ -5,7 +5,6 @@ from django.conf import settings
from ckeditor.fields import RichTextField
from ckeditor_uploader.fields import RichTextUploadingField
from datetime import date
from vote.models import Vote
from django.utils.timezone import now
class BaseSender(models.Model):
@@ -41,7 +40,6 @@ class News(models.Model):
cdate =models.DateTimeField(default=datetime.now, verbose_name='Дата создания')
author = models.ForeignKey(settings.AUTH_USER_MODEL, editable=False, on_delete=models.PROTECT, verbose_name='Автор')
link = models.ImageField(upload_to='newsimage/%Y/%m/%d', null=True, default="newsimage/default.jpg", verbose_name='Изображение')
vote = models.ForeignKey(Vote, on_delete=models.CASCADE, null=True, blank=True)
class Meta:
+1 -1
View File
@@ -165,7 +165,7 @@ class CarouselsAPIView(ListAPIView):
result = CarouselsSerializer(queryset, many= True).data
manbrd = DictEmployee.objects.filter(birthdate__month=date.today().month, birthdate__day__gte=date.today().day).order_by('birthdate__day')
manbrd = DictEmployee.objects.filter(birthdate__month=date.today().month, birthdate__day__gte=date.today().day, deleted=0).order_by('birthdate__day')
dr_img = BaseSender.objects.update_or_create(name="День рождения", defaults={'name':"День рождения"})
mess = ''
if len(manbrd) > 0 :
+1 -1
View File
@@ -38,7 +38,7 @@ SWAGGER_SETTINGS = {
}
}
}
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["*","portal-t",'portal9966']
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
+14 -16
View File
@@ -50,9 +50,20 @@ class TestAnswer(models.Model):
def __str__(self):
return self.name
class Testing(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
test = models.ForeignKey(Test, on_delete=models.PROTECT, blank=False, verbose_name="Тест")
completion_date = models.DateTimeField(blank=True, null=True, verbose_name="Дата завершения тестирования")
test_passed = models.BooleanField(blank=False, verbose_name="Тест пройден")
class Meta:
verbose_name = "Тестирование"
verbose_name_plural = "Тестирования"
def __str__(self):
return self.test.name
class TestAttempt(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='test_attempts')
test = models.ForeignKey(Test, on_delete=models.CASCADE)
testing = models.ForeignKey(Testing, on_delete=models.CASCADE)
score = models.FloatField(verbose_name='Результат', default=0.0)
attempt_number = models.IntegerField(verbose_name='Номер попытки', default=1)
completion_date = models.DateTimeField(default=datetime.datetime.now, verbose_name="Дата прохождения теста")
@@ -71,17 +82,4 @@ class TestResult(models.Model):
class Meta:
verbose_name = "Результат"
verbose_name_plural = "Результаты"
class Testing(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
test = models.ForeignKey(Test, on_delete=models.PROTECT, blank=False, verbose_name="Тест")
completion_date = models.DateTimeField(blank=True, null=True, verbose_name="Дата завершения тестирования")
test_passed = models.BooleanField(blank=False, verbose_name="Тест пройден")
class Meta:
verbose_name = "Тестирование"
verbose_name_plural = "Тестирования"
def __str__(self):
return self.test.name
verbose_name_plural = "Результаты"
+10 -2
View File
@@ -31,7 +31,8 @@ class TestAnswerSerializer(serializers.ModelSerializer):
return validated_data
def to_representation(self, instance):
user_login = self.context['request'].user.username
# user_login = self.context['request'].user.username
user_login = '9966-00-125'
representation = super().to_representation(instance)
representation['right_wrong'] = self.encrypt_data(str(representation['right_wrong']), user_login)
@@ -86,4 +87,11 @@ class TestsSerializer(serializers.ModelSerializer):
if user.is_authenticated:
validated_data['author'] = user
return super().create(validated_data)
return super().create(validated_data)
class TestInfoSerializer(serializers.Serializer):
test = TestsSerializer(read_only=True)
# test_answers = TestAnswerSerializer(many=True, read_only=True)
score = serializers.IntegerField(read_only=True)
is_passed = serializers.BooleanField(read_only=True)
test_answers = TestAnswerSerializer(many=True, read_only=True)
+2 -2
View File
@@ -5,7 +5,7 @@ from .views import *
urlpatterns = [
path('testdetail/<int:id>/', TestDetail.as_view(),name='TestDetail'),
path('gettests/', GetTests.as_view(), name="GetTests"),
path('gettesting/', GetTesting.as_view(), name="GetTesting"),
path('testresultcreate/', TestResultCreate.as_view(), name="TestResultCreate"),
# path('gettesting/', GetTesting.as_view(), name="GetTesting"),
path('testresultview/', TestResultView.as_view(), name="TestResultView"),
]
+108 -66
View File
@@ -19,17 +19,37 @@ import base64
import hashlib
from cryptography.fernet import Fernet
from django.db.models import F
from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
class GetTests(generics.ListAPIView):
queryset = Test.objects.all()
serializer_class = TestsSerializer
pagination_class = None
@swagger_auto_schema(
operation_description="""Получить список тестов по статусу
*Нужно авторизоваться!""",
manual_parameters=[
openapi.Parameter(
'status',
openapi.IN_QUERY,
description="Статус тестов (например, 'active', 'completed'). Пустое значение вернет все тесты",
type=openapi.TYPE_STRING,
required=False,
),
],
responses={
200: "success",
400: 'error',
}
)
def get (self, request, *args, **kwargs):
user = request.user
# user = User.objects.get(username='9966-00-125')
status = request.query_params.get('status')
tests = self.get_tests_by_status(status, datetime.now(), user)
if status != None:
if status is not None:
self.set_attemps_number(user, tests)
serialized_tests = self.get_serializer(tests, many=True).data
@@ -55,8 +75,11 @@ class GetTests(generics.ListAPIView):
return status_filters.get(status, Test.objects.none()).order_by('dateend')
def set_attemps_number(self, user, tests):
attempt_counts = TestAttempt.objects.filter(testing__user=user, testing__test__in=tests).values('testing__test').annotate(count=Count('testing__test'))
attempt_counts = {item['testing__test']: item['count'] for item in attempt_counts}
for test in tests:
test.attemps_number = get_attempt_count(user=user, test=test)
test.attemps_number = test.attemps_number - attempt_counts.get(test.id, 0)
class TestDetail(generics.RetrieveUpdateDestroyAPIView):
queryset = Test.objects.all()
@@ -73,92 +96,110 @@ class TestDetail(generics.RetrieveUpdateDestroyAPIView):
return Response(test_serialized)
# class TestListCreate(generics.ListCreateAPIView):
# queryset = Test.objects.all()
# serializer_class = TestSerializer
# class GetTesting(APIView):
# def get(self, request):
# user = request.user
# now = datetime.now()
# status = request.query_params.get('status')
# tests = self.get_tests_by_status(status, now)
# serialized_tests = TestSerializer(tests, many=True).data
# questions = TestQuestion.objects.filter(test__in=tests)
# questions_by_test_id = defaultdict(list)
# for question in questions:
# questions_by_test_id[question.test.id].append(question)
# for test in serialized_tests:
# test['is_passed'] = self.has_participated(user, test['id'])
# related_questions = questions_by_test_id[test['id']]
# test['files'] = [question.file.url for question in related_questions if question.file]
# return Response(serialized_tests)
# tests = Testing.objects.filter(user=user)
# test_names = {test.id: test.test.name for test in tests}
# serializer = TestingSeriaizer(tests, many=True).data
# for test in serializer:
# if test['id'] in test_names:
# test['test_name'] = test_names[test['id']]
# return Response(serializer)
# def get_tests_by_status(self, status, now):
# print(status)
# if status is None:
# return Test.objects.all().order_by('dateend')
# status_filters = {
# 'active': Test.objects.filter(dateend__gt=now),
# 'completed': Test.objects.filter(dateend__lt=now),
# }
# return status_filters.get(status, Test.objects.none()).order_by('dateend')
# def has_participated(self, employee, test):
# return TestResult.objects.filter(user=employee, answer__question__test=test).exists()
class GetTesting(APIView):
def get(self, request):
user = request.user
tests = Testing.objects.filter(user=user)
test_names = {test.id: test.test.name for test in tests}
serializer = TestingSeriaizer(tests, many=True).data
for test in serializer:
if test['id'] in test_names:
test['test_name'] = test_names[test['id']]
return Response(serializer)
class TestResultCreate(generics.ListCreateAPIView):
class TestResultView(generics.ListCreateAPIView):
queryset = TestResult.objects.all()
serializer_class = TestResultSerializer
pagination_class = None
@swagger_auto_schema(
operation_description="""Получить результаты тестов
*Нужно авторизоваться!""",
manual_parameters=[
openapi.Parameter(
'id',
openapi.IN_QUERY,
description="ID теста",
type=openapi.TYPE_INTEGER,
required=True,
),
],
responses={
200: "success",
400: 'error',
}
)
def get(self, request, *args, **kwargs):
user = request.user
# user = User.objects.get(username = "9966-00-125")
test_id = request.GET.get('id')
last_attempt = TestAttempt.objects.filter(testing__user=user, testing__test__id=test_id).order_by('-completion_date').first()
answer_ids = TestResult.objects.filter(attempt=last_attempt).values_list('answer__id', flat=True)
test_info = self.get_test_info(answer_ids)
return Response(data={'score': test_info['score'], 'answered_questions_total': test_info['answered_questions_total']})
@swagger_auto_schema(
operation_description=""" Сохранить результаты тестов
*Нужно авторизоваться!""",
manual_parameters=[
openapi.Parameter(
'status',
openapi.IN_QUERY,
description="Статус тестов (например, 'testing'). Пустое значение - режим тренировки",
type=openapi.TYPE_STRING,
required=False,
),
],
request_body=openapi.Schema(
type=openapi.TYPE_ARRAY,
items=openapi.Schema(
type=openapi.TYPE_OBJECT,
properties={
'answer': openapi.Schema(type=openapi.TYPE_INTEGER, description='ID ответа')
},
),
),
responses={
200: "success",
400: 'error',
}
)
def post(self, request, *args, **kwargs):
user = request.user
# user = User.objects.get(username = "9966-00-125")
test_info = self.get_test_info(request)
test_attempt = self.create_test_attempt(user, test_info)
status = request.query_params.get('status')
answer_ids = [item['answer'] for item in request.data]
test_info = self.get_test_info(answer_ids)
if status == 'testing':
test_attempt = self.create_test_attempt(user, test_info)
serializer = self.get_serializer(data=request.data, many=True)
if serializer.is_valid():
serializer.save(attempt=test_attempt)
self.update_testing(user, test_info)
serializer = self.get_serializer(data=request.data, many=True)
if serializer.is_valid():
serializer.save(attempt=test_attempt)
self.update_testing(user, test_info)
return Response(test_info['is_passed'])
return Response(data={'score': test_info['score'], 'answered_questions_total': test_info['answered_questions_total']})
def create_test_attempt(self, user, test_info):
test = test_info['test']
score = test_info['score']
attempt_count = get_attempt_count(user=user, test=test)+ 1
test_attempt = TestAttempt.objects.create(user=user, test=test , score=score , attempt_number=attempt_count , completion_date= datetime.now())
testing = Testing.objects.get(user=user, test=test)
attempt_count = get_attempt_count(testing)+ 1
test_attempt = TestAttempt.objects.create(testing=testing , score=score , attempt_number=attempt_count , completion_date= datetime.now())
return test_attempt
def update_testing(self, user, test_info):
test = test_info['test']
test_passed = test_info['is_passed']
Testing.objects.update_or_create(user=user, test=test, defaults = {"completion_date": test.dateend,"test_passed":test_passed})
Testing.objects.update_or_create(user=user, test=test, defaults = {"test_passed":test_passed})
def get_test_info(self, request):
def get_test_info(self, answer_ids):
answer_ids = [item['answer'] for item in request.data]
test_answers = TestAnswer.objects.filter(id__in=answer_ids)
test = test_answers[0].question.test
answered_questions_total = test_answers.values('question').distinct().count()
correct_questions = sum(
TestAnswer.objects.filter(
@@ -175,9 +216,10 @@ class TestResultCreate(generics.ListCreateAPIView):
result = {
"is_passed": correct_questions >= pass_perc,
"score": correct_questions,
"test": test
"test": test,
"answered_questions_total": answered_questions_total,
}
return result
def get_attempt_count(user, test):
return TestAttempt.objects.filter(user=user, test=test).count()
def get_attempt_count(testing):
return TestAttempt.objects.filter(testing=testing).count()
+7
View File
@@ -2,6 +2,7 @@ from django.db import models
from userauth.models import *
from accounts.models import User
import datetime
from navigation.models import News
# Create your models here.
class Vote(models.Model):
@@ -10,10 +11,16 @@ class Vote(models.Model):
datestart = models.DateTimeField(default=datetime.datetime.now, verbose_name='Дата и время начала периода')
dateend = models.DateTimeField(default=datetime.datetime.now, verbose_name='Дата и время окончания периода')
author = models.ForeignKey(User, on_delete=models.CASCADE, verbose_name='Создатель голосования')
news = models.ForeignKey(News, on_delete=models.CASCADE, null=True, blank=True, verbose_name='Новость')
def __str__(self):
return self.name
def delete(self, *args, **kwargs):
if self.news:
self.news.delete()
super().delete(*args, **kwargs)
class Meta:
verbose_name = "Голосование"
verbose_name_plural = "Голосования"
+353 -126
View File
@@ -1,232 +1,459 @@
from rest_framework.views import APIView
from rest_framework.response import Response
from django.db.models import Count
from django.db.models import Q
from .models import *
from userauth.models import *
from .serializers import *
from datetime import datetime
from rest_framework import generics
from navigation.models import News
import json
from collections import defaultdict
import os
from django.conf import settings
from django.urls import reverse
import html
from datetime import datetime, timezone
from collections import defaultdict
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import generics
from django.db import DatabaseError
from django.db.models import Count
from accounts.models import User
from navigation.models import News
from userauth.models import DictDepartment, DictEmployee, EmployeeDepartment
from .models import Vote, Answer, Question, Result
from .serializers import (
VoteSerializer,
VotesSerializer,
DictEmployeeSerializer,
ResultSerializer,
)
class GetVotes(APIView):
"""
Комментарий
"""
def get(self, request):
"""
Комментарий
"""
user = request.user
# user = User.objects.get(username='9966-00-125')
now = datetime.now()
status = request.query_params.get('status')
#
status = request.query_params.get("status")
votes = self.get_votes_by_status(status, now)
serialized_votes = VotesSerializer(votes, many=True).data
questions_by_vote_id = self.get_questions_by_vote_id(votes)
self.enrich_votes(serialized_votes, questions_by_vote_id, user)
return Response(serialized_votes)
def get_votes_by_status(self, status, now):
"""
Комментарий
"""
print(status)
if status is None:
return Vote.objects.all().order_by("dateend")
status_filters = {
"active": Vote.objects.filter(dateend__gt=now),
"completed": Vote.objects.filter(dateend__lt=now),
}
return status_filters.get(status, Vote.objects.none()).order_by("dateend")
def get_questions_by_vote_id(self, votes):
"""
Комментарий
"""
questions = Question.objects.filter(vote__in=votes)
questions_by_vote_id = defaultdict(list)
for question in questions:
questions_by_vote_id[question.vote.id].append(question)
return questions_by_vote_id
def enrich_votes(self, serialized_votes, questions_by_vote_id, user):
"""
Комментарий
"""
for vote in serialized_votes:
vote['is_passed'] = self.has_participated(user, vote['id'])
related_questions = questions_by_vote_id[vote['id']]
vote['files'] = [question.file.url for question in related_questions if question.file]
return Response(serialized_votes)
def get_votes_by_status(self, status, now):
print(status)
if status is None:
return Vote.objects.all().order_by('dateend')
status_filters = {
'active': Vote.objects.filter(dateend__gt=now),
'completed': Vote.objects.filter(dateend__lt=now),
}
return status_filters.get(status, Vote.objects.none()).order_by('dateend')
vote["is_passed"] = self.has_participated(user, vote["id"])
related_questions = questions_by_vote_id[vote["id"]]
vote["files"] = [
question.file.url for question in related_questions if question.file
]
def has_participated(self, employee, vote):
return Result.objects.filter(user=employee, answer__question__vote=vote).exists()
"""
Комментарий
"""
return Result.objects.filter(
user=employee, answer__question__vote=vote
).exists()
class VoteDetail(generics.RetrieveUpdateDestroyAPIView):
"""
Комментарий
"""
queryset = Vote.objects.all()
serializer_class = VoteSerializer
lookup_url_kwarg = 'id'
lookup_field = 'id'
lookup_url_kwarg = "id"
lookup_field = "id"
def get(self, request, *args, **kwargs):
results = Result.objects.filter(answer__question__vote=kwargs['id'], user=request.user)
if results:
return Response({'status': 'error', 'message': 'voted'}, status=400)
try:
vote = Vote.objects.get(id=kwargs['id'])
if vote.dateend < datetime.now(timezone.utc):
return Response({'status': 'error', 'message': 'Voting is over'}, status=400)
except Exception as e:
return Response({'status': 'error', 'message': str(e)}, status=400)
answers_employee = Answer.objects.filter(question__vote=vote).filter(question__settings__choice="employee").values('name', 'question')
"""
Комментарий
"""
answers_names = [item['name'] for item in answers_employee]
question_ids = [item['question'] for item in answers_employee]
if answers_employee:
employees_serializer = get_employees_serializer(answers_names)
employee_dict = {employee['id']: employee for employee in employees_serializer}
# if self.check_user_vote(kwargs['id'], User.objects.get(username='9966-00-125')):
if self.check_user_vote(kwargs["id"], request.user):
return Response({"status": "error", "message": "voted"}, status=400)
vote = self.get_vote(kwargs["id"])
if isinstance(vote, Response):
return vote
answers_employee = self.get_employee_answers(vote)
answers_names = [item["name"] for item in answers_employee]
employee_dict = self.serialize_employees(answers_names)
serialized_data = self.retrieve(request, *args, **kwargs).data
for question in serialized_data['questions']:
for answer in question['answers']:
if question['id'] in question_ids:
if answer['name'] in answers_names:
answer['employee'] = employee_dict.get(int(answer['name']))
self.add_employee_info(
serialized_data, answers_employee, answers_names, employee_dict
)
return Response(serialized_data)
def check_user_vote(self, vote_id, user):
"""
Комментарий
"""
results = Result.objects.filter(answer__question__vote=vote_id, user=user)
return results.exists()
def get_vote(self, vote_id):
"""
Получить незавершенное голосование
"""
try:
vote = Vote.objects.get(id=vote_id)
if vote.dateend < datetime.now(timezone.utc):
return Response(
{"status": "error", "message": "Voting is over"}, status=400
)
return vote
except Vote.DoesNotExist as e:
return Response({"status": "error", "message": str(e)}, status=400)
def get_employee_answers(self, vote):
"""
Комментарий
"""
return (
Answer.objects.filter(question__vote=vote)
.filter(question__settings__choice="employee")
.values("name", "question")
)
def serialize_employees(self, answers_names):
"""
Комментарий
"""
employees_serializer = get_employees_serializer(answers_names)
return {employee["id"]: employee for employee in employees_serializer}
def add_employee_info(
self, serialized_data, answers_employee, answers_names, employee_dict
):
"""
Комментарий
"""
question_ids = [item["question"] for item in answers_employee]
for question in serialized_data["questions"]:
for answer in question["answers"]:
if question["id"] in question_ids:
if answer["name"] in answers_names:
answer["employee"] = employee_dict.get(int(answer["name"]))
class VoteCreate(APIView):
"""
Комментарий
"""
def post(self, request):
"""
Комментарий
"""
try:
vote = self.create_vote(request)
self.create_news(request, vote)
return Response({'status': 'success', 'message': 'Vote and news created successfully.'}, status=200)
except Exception as e:
if request.data.get("news") == "true":
self.create_news(request, vote)
return Response(
{"status": "success", "message": "Vote and news created successfully."},
status=200,
)
except ValueError as e:
return Response({"status": "error", "message": str(e)}, status=400)
except DatabaseError as e:
print(e)
return Response({'status': 'error', 'message': str(e)}, status=400)
return Response({"status": "error", "message": str(e)}, status=400)
def create_vote(self, request):
"""
Комментарий
"""
user = request.user
vote = Vote.objects.create(
name=request.data['title'],
description=request.data['description'],
datestart=request.data['startDate'],
dateend=request.data['endDate'],
name=request.data["title"],
description=request.data["description"],
datestart=request.data["startDate"],
dateend=request.data["endDate"],
author=user,
)
questions_files = {file.name: file for file in request.FILES.getlist('questionsfiles')}
answers_files = {file.name: file for file in request.FILES.getlist('answersfiles')}
questions_files = {
file.name: file for file in request.FILES.getlist("questionsfiles")
}
answers_files = {
file.name: file for file in request.FILES.getlist("answersfiles")
}
questions = json.loads(request.data['questions'])
questions = json.loads(request.data["questions"])
for count, question_data in enumerate(questions, start=1):
question_image = questions_files.get(question_data['image']['name']) if 'image' in question_data and question_data['image'] is not None else None
question_image = (
questions_files.get(question_data["image"]["name"])
if "image" in question_data and question_data["image"] is not None
else None
)
question = Question.objects.create(
name=question_data['text'],
name=question_data["text"],
vote=vote,
file=question_image,
numb=count,
settings=question_data.get('settings', {}),
settings=question_data.get("settings", {}),
)
for answer in question_data['answers']:
answer_image = answers_files.get(answer['image']['name']) if 'image' in answer and answer['image'] is not None else None
for answer in question_data["answers"]:
answer_image = (
answers_files.get(answer["image"]["name"])
if "image" in answer and answer["image"] is not None
else None
)
Answer.objects.create(
name=answer['text'],
file=answer_image,
question=question
name=answer["text"], file=answer_image, question=question
)
return vote
def create_news(self, request, vote):
"""
Комментарий
"""
formatted_date = datetime.strptime(request.data["endDate"][:-1], "%Y-%m-%dT%H:%M:%S.%f").strftime("%d.%m.%Y %H:%M")
vote_url = make_clickable(request.data['title'], f"/vote/voting/{vote.id}")
formatted_date = datetime.strptime(
request.data["endDate"][:-1], "%Y-%m-%dT%H:%M:%S.%f"
).strftime("%d.%m.%Y %H:%M")
vote_url = make_clickable(request.data["title"], f"/vote/voting/{vote.id}")
news = News(
title = 'Пройдите голосование!',
text = f'Пройдите голосование "{vote_url}" до {formatted_date}',
cdate = request.data['startDate'],
author = request.user,
link = os.path.join('defaultimg','vote.png'),
vote = vote
title="Пройдите голосование!",
text=f'Пройдите голосование "{vote_url}" до {formatted_date}',
cdate=request.data["startDate"],
author=request.user,
link=os.path.join("defaultimg", "vote.png"),
)
news.save()
news.save()
vote.news = news
vote.save()
def make_clickable(text, url):
"""
Комментарий
"""
text = html.escape(text)
anchor = f'<a href="{html.escape(url)}">{text}</a>'
return anchor
class GetDictEmployee(APIView):
"""
Комментарий
"""
def get(self, request):
"""
Комментарий
"""
employees = DictEmployee.objects.filter(deleted=0)
set_real_departments(employees)
employees_serializer = DictEmployeeSerializer(employees, many=True).data
return Response(employees_serializer)
class GetResults(APIView):
"""
Комментарий
"""
def get(self, request):
vote_id = request.GET.get('id')
try:
vote = Vote.objects.get(id=vote_id)
except Vote.DoesNotExist:
return Response({'status': 'error', 'message': 'Vote not found'}, status=404)
"""
Комментарий
"""
vote_id = request.GET.get("id")
vote = self.get_vote(vote_id)
if isinstance(vote, Response):
return vote
serialized_data = VoteSerializer(vote).data
answers_employee = Answer.objects.filter(
question__vote=vote,
question__settings__choice="employee"
).values('name', 'question')
answers_names = [item['name'] for item in answers_employee]
question_ids = [item['question'] for item in answers_employee]
answers_employee = self.get_employee_answers(vote)
answers_names = [item["name"] for item in answers_employee]
employee_dict = self.create_employee_dict(answers_names)
result_dict = self.get_answer_counts(vote)
info = {
"serialized_data": serialized_data,
"answers_employee": answers_employee,
"answers_names": answers_names,
"employee_dict": employee_dict,
"result_dict": result_dict,
}
self.add_employee_info(info)
employee_dict = {}
if answers_employee:
employees_serializer = get_employees_serializer(answers_names)
employee_dict = {employee['id']: employee for employee in employees_serializer}
results = Result.objects.filter(
answer__question__vote=vote
).values('answer_id').annotate(count=Count('id'))
result_dict = {int(result['answer_id']): result['count'] for result in results}
for question in serialized_data['questions']:
for answer in question['answers']:
answer['count'] = result_dict.get(int(answer['id']), 0)
if question['id'] in question_ids:
if answer['name'] in answers_names:
answer['employee'] = employee_dict.get(int(answer['name']))
users = Result.objects.filter(answer__question__vote=vote).values('user_id')
users = User.objects.filter(created_at__lt=vote.dateend).exclude(id__in=users)
employee_ids = users.values_list('user_id', flat=True)
serialized_data['nonvoting'] = get_employees_serializer(employee_ids)
serialized_data["nonvoting"] = self.get_non_voting_employees(vote)
return Response(serialized_data)
def get_vote(self, vote_id):
"""
Комментарий
"""
try:
vote = Vote.objects.get(id=vote_id)
return vote
except Vote.DoesNotExist:
return Response(
{"status": "error", "message": "Vote not found"}, status=404
)
def get_employee_answers(self, vote):
"""
Комментарий
"""
answers_employee = Answer.objects.filter(
question__vote=vote, question__settings__choice="employee"
).values("name", "question")
return answers_employee
def create_employee_dict(self, answers_names):
"""
Комментарий
"""
if not answers_names:
return {}
employees_serializer = get_employees_serializer(answers_names)
return {employee["id"]: employee for employee in employees_serializer}
def get_answer_counts(self, vote):
"""
Комментарий
"""
results = (
Result.objects.filter(answer__question__vote=vote)
.values("answer_id")
.annotate(count=Count("id"))
)
return {int(result["answer_id"]): result["count"] for result in results}
def add_employee_info(self, info):
"""
info ={serialized_data, answers_employee, answers_names, employee_dict, result_dict}
Комментарий
"""
serialized_data = info.get("serialized_data")
answers_employee = info.get("answers_employee")
answers_names = info.get("answers_names")
employee_dict = info.get("employee_dict")
result_dict = info.get("result_dict")
question_ids = [item["question"] for item in answers_employee]
for question in serialized_data["questions"]:
for answer in question["answers"]:
answer["count"] = result_dict.get(int(answer["id"]), 0)
if question["id"] in question_ids:
if answer["name"] in answers_names:
answer["employee"] = employee_dict.get(int(answer["name"]))
def get_non_voting_employees(self, vote):
"""
Комментарий
"""
users = Result.objects.filter(answer__question__vote=vote).values("user_id")
non_voting_users = User.objects.filter(created_at__lt=vote.dateend).exclude(
id__in=users
)
employee_ids = non_voting_users.values_list("user_id", flat=True)
return get_employees_serializer(employee_ids)
class VoteResultCreate(generics.ListCreateAPIView):
"""
Комментарий
"""
queryset = Result.objects.all()
serializer_class = ResultSerializer
def create(self, request, *args, **kwargs):
"""
Комментарий
"""
serializer = self.get_serializer(data=request.data, many=True)
if serializer.is_valid():
serializer.save()
return Response(serializer.data)
def get_employees_serializer(ids):
"""
Комментарий
"""
employees = DictEmployee.objects.filter(id__in=ids)
set_real_departments(employees)
set_real_departments(employees)
employees_serializer = DictEmployeeSerializer(employees, many=True).data
return employees_serializer
def set_real_departments(employees):
"""
Комментарий
"""
employee_departments = EmployeeDepartment.objects.filter(employee__in=employees)
departments = DictDepartment.objects.in_bulk([ed.department.id for ed in employee_departments])
department_map = {ed.employee.id: {'name': ed.department.name, 'id': departments[ed.department.id]} for ed in employee_departments}
departments = DictDepartment.objects.in_bulk(
[ed.department.id for ed in employee_departments]
)
department_map = {
ed.employee.id: {
"name": ed.department.name,
"id": departments[ed.department.id],
}
for ed in employee_departments
}
for employee in employees:
if employee.id in department_map:
employee.department = department_map[employee.id]['name']
employee.id_dict_department = department_map[employee.id]['id']
employee.department = department_map[employee.id]["name"]
employee.id_dict_department = department_map[employee.id]["id"]
+4
View File
@@ -0,0 +1,4 @@
import{_ as Xt,O as on,P as sn,s as V,t as ot,v as f,x as d,F as T,C as j,$ as tt,E as R,aV as vr,r as q,aC as Mo,aN as Xi,Q as Ct,S as Yt,R as Ht,T as Ne,U as vt,L as st,D as yt,y as F,a3 as yr,z as xr,V as Fe,b9 as oe,q as se,aY as Mt,be as xe,n as Jt,bf as re,w as bo,k as ae,bg as rn,bh as wr,b as br,p as Ft,f as di,e as an,g as Lr,a5 as mi,B as dt,a2 as Qi,b0 as tn,Z as en,X as Pr,W as Tr,Y as Sr,a$ as Cr,A as zo,c as ko,bi as Mr,b3 as zr}from"./index-COjDMumS.js";import{V as nn}from"./VList-CwTaIQsW.js";import{P as kr}from"./PatternTabs-Cu_8Xs49.js";import{V as Or}from"./VForm-c-Rrg0xF.js";import{V as Ji}from"./VTextField-BjWksY-K.js";import{V as Ar}from"./VTextarea-qF2XqWL0.js";import{V as Er}from"./VFileInput-Busl2805.js";import{a as fi}from"./VWindowItem-rSD9c8zs.js";import"./ssrBoot-Me6CX2Hk.js";import"./VTabs-BH9jz0Y6.js";import"./VInput-Bmr5cjyQ.js";/* empty css */import"./VField-DR7-v1FU.js";function Ir(c,l){for(var a=0;a<l.length;a++){const u=l[a];if(typeof u!="string"&&!Array.isArray(u)){for(const m in u)if(m!=="default"&&!(m in c)){const y=Object.getOwnPropertyDescriptor(u,m);y&&Object.defineProperty(c,m,y.get?y:{enumerable:!0,get:()=>u[m]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}const Br={props:{sText:{type:String,default:""}},setup(){return{checkremote:on,spravURL:sn}}},Zr={class:"vertext text-button my-1 pb-13"};function Rr(c,l,a,u,m,y){return V(),ot(R,{"no-gutters":"",class:"h-100"},{default:f(()=>[d(T,{class:"align-self-center flex-grow-0"},{default:f(()=>[j("span",Zr,tt(a.sText),1)]),_:1}),d(T,{class:"w100"},{default:f(()=>[a.sText=="Руководство"?(V(),ot(R,{key:0,"no-gutters":"",class:"text-center text-button py-2"})):(V(),ot(R,{key:1,"no-gutters":"",class:"text-center text-button py-2"})),d(R,{"no-gutters":"",class:"h-100"},{default:f(()=>[vr(c.$slots,"cardboss")]),_:3})]),_:3})]),_:3})}const Dr=Xt(Br,[["render",Rr]]),Nr={components:{StructureInspectionRow:Dr},setup(){const c=q([]),{smAndDown:l,mdAndDown:a,lgAndDown:u}=Mo();return(()=>{Ne.get("api/about_inspection/getstructure/").then(y=>{c.value=y.data})})(),{structures:c,checkremote:on,spravURL:sn,mdAndDown:a,lgAndDown:u,smAndDown:l}}};function Vr(c,l,a,u,m,y){const g=vt("list-user");return V(),ot(R,{"no-gutters":"",class:"h-100 gap"},{default:f(()=>[d(T,{class:"flex-grow-0 d-flex d-sm-none d-lg-none d-xl-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:"flex-column"},{default:f(()=>[d(T,{lg:"4"},{default:f(()=>l[0]||(l[0]=[j("span",{class:"vertext text-button my-1 pb-8"},"Руководство",-1)])),_:1}),d(T,null,{default:f(()=>l[1]||(l[1]=[j("span",{class:"vertext text-button my-1 pb-13"},"Структурные подразделения",-1)])),_:1})]),_:1})]),_:1}),d(T,{class:"d-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:Xi(u.smAndDown?" flex-column":"")},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(u.structures,x=>(V(),ot(T,{md:u.mdAndDown?"12":"",lg:u.lgAndDown?6:"",class:"w100 flex-column d-flex",key:x.id},{default:f(()=>[d(R,{"no-gutters":"",class:"flex-grow-0"},{default:f(()=>[d(T,{class:"flex-column d-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:"mb-2 mt-1 justify-center d-flex mx-1"},{default:f(()=>[d(st,{class:"flex-column d-flex flex-grow-1",elevation:10},{default:f(()=>[d(yt,{class:"pa-0"},{default:f(()=>[d(T,{lg:"12",class:"pa-0"},{default:f(()=>[d(R,{"no-gutters":""},{default:f(()=>[d(T,{class:"d-flex py-3 justify-center align-center font-weight-medium text-uppercase"},{default:f(()=>[F(tt(x.post),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":""},{default:f(()=>[d(T,{lg:"4",class:"pa-1 heightfoto"},{default:f(()=>[d(g,{author:x,from_which:"top_comment"},null,8,["author"])]),_:2},1024),d(T,{class:"text-center align-self-center font-weight-medium"},{default:f(()=>[F(tt(x.fio),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":"",class:Xi(u.lgAndDown?"":"gap h-0 overflow-auto")},{default:f(()=>[d(T,{lg:"12"},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(x.deps,v=>(V(),ot(R,{"no-gutters":"",class:"gap mb-1",key:v.id},{default:f(()=>[d(T,{class:"d-flex flex-column"},{default:f(()=>[d(st,{class:"flex-column d-flex flex-grow-1 mx-1",elevation:5},{default:f(()=>[d(yt,{class:"pa-1 pt-3 px-3 flex-column"},{default:f(()=>[d(T,{lg:"12",class:"minh pa-0"},{default:f(()=>[d(R,{"no-gutters":""},{default:f(()=>[d(T,{class:"text-wrap text-center text-body-2 font-weight-medium text-uppercase"},{default:f(()=>[F(tt(v.name),1)]),_:2},1024),d(T,{class:"flex-grow-0"},{default:f(()=>[d(yr,{location:"top"},{activator:f(({props:M})=>[j("span",xr({ref_for:!0},M),[d(Fe,{size:"large",color:"green",icon:"mdi-arrow-top-right"})],16)]),default:f(()=>[d(R,null,{default:f(()=>[d(T,null,{default:f(()=>l[2]||(l[2]=[F(" Перейти на страницу отдела ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":""},{default:f(()=>[d(g,{author:v.chief_deps},null,8,["Line truncated
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var _a=Ve.exports,Co;function pa(){return Co||(Co=1,function(c,l){(function(a,u){u(l)})(_a,function(a){var u="1.9.4";function m(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++){o=arguments[i];for(e in o)t[e]=o[e]}return t}var y=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function g(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var x=0;function v(t){return"_leaflet_id"in t||(t._leaflet_id=++x),t._leaflet_id}function M(t,e,i){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(i,o),o=!1)},s=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(r,e),n=!0)},s}function P(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}function S(){return!1}function G(t,e){if(e===!1)return t;var i=Math.pow(10,e===void 0?6:e);return Math.round(t*i)/i}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function lt(t){return H(t).split(/\s+/)}function N(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?y(t.options):{});for(var i in e)t.options[i]=e[i];return t.options}function xt(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var X=/\{ *([\w_ -]+) *\}/g;function rt(t,e){return t.replace(X,function(i,n){var o=e[n];if(o===void 0)throw new Error("No value provided for variable "+i);return typeof o=="function"&&(o=o(e)),o})}var K=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function kt(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var jt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function mt(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var qe=0;function Ut(t){var e=+new Date,i=Math.max(0,16-(e-qe));return qe=e+i,window.setTimeout(t,i)}var I=window.requestAnimationFrame||mt("RequestAnimationFrame")||Ut,$=window.cancelAnimationFrame||mt("CancelAnimationFrame")||mt("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function ut(t,e,i){if(i&&I===Ut)t.call(e);else return I.call(window,g(t,e))}function wt(t){t&&$.call(window,t)}var qo={__proto__:null,extend:m,create:y,bind:g,get lastId(){return x},stamp:v,throttle:M,wrapNum:P,falseFn:S,formatNum:G,trim:H,splitWords:lt,setOptions:N,getParamString:xt,template:rt,isArray:K,indexOf:kt,emptyImageUrl:jt,requestFn:I,cancelFn:$,requestAnimFrame:ut,cancelAnimFrame:wt};function Bt(){}Bt.extend=function(t){var e=function(){N(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,n=y(i);n.constructor=e,e.prototype=n;for(var o in this)Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"&&(e[o]=this[o]);return t.statics&&m(e,t.statics),t.includes&&(Go(t.includes),m.apply(null,[n].concat(t.includes))),m(n,t),delete n.statics,delete n.includes,n.options&&(n.options=i.options?y(i.options):{},m(n.options,t.options)),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var s=0,r=n._initHooks.length;s<r;s++)n._initHooks[s].call(this)}},e},Bt.include=function(t){var e=this.prototype.options;return m(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Bt.mergeOptions=function(t){return m(this.prototype.options,t),this},Bt.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};function Go(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=K(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var gt={on:function(t,e,i){if(typeof t=="object")for(var n in t)this._on(n,t[n],e);else{t=lt(t);for(var o=0,s=t.length;o<s;o++)this._on(t[o],e,i)}return this},off:function(t,e,i){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var n in t)this._off(n,t[n],e);else{t=lt(t);for(var o=arguments.length===1,s=0,r=t.length;s<r;s++)o?this._off(t[s]):this._off(t[s],e,i)}return this},_on:function(t,e,i,n){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,i)===!1){i===this&&(i=void 0);var o={fn:e,ctx:i};n&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t],!!n)){if(arguments.length===1){if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=S;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof Line truncated
+1
View File
@@ -0,0 +1 @@
.subtable .v-data-table-footer{display:none}.subtable tbody{text-align:start!important}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-heaLine truncated
+29
View File
@@ -0,0 +1,29 @@
var yr=Object.defineProperty;var xr=(i,t,e)=>t in i?yr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var O=(i,t,e)=>xr(i,typeof t!="symbol"?t+"":t,e);import{bj as vr,d as wr,r as Z,_ as ft,s as R,t as H,v as x,x as _,F,y as J,$ as W,a3 as Ut,V as Ct,z as ot,C as T,E as U,Q as ut,L as pe,U as G,bk as Mo,D as wn,aV as Po,a6 as gt,ai as Me,f as z,w as Te,p as Oe,bl as Co,k as Ae,ag as rn,bm as we,aa as se,bn as qi,ae as me,bo as kr,ar as Mt,am as Sr,bp as Mr,bq as Pr,br as Do,bs as ln,al as at,bt as Ri,bu as di,aw as zn,bv as Cr,bw as Dr,aA as Tr,aC as Vn,bx as Or,R as vt,A as Fi,by as cn,a$ as rs,a7 as Ar,bz as Ir,ao as Rr,a9 as Fr,ab as Lr,bA as Er,bB as ui,bC as To,aH as Oo,Z as Ao,af as Li,O as Br,P as zr,S as ie,aN as qt,a0 as ei,bD as Io,b0 as Vr,bE as Ro,aW as Ei,bF as Bi,bG as Jt,b9 as Fo,bf as kn,bH as Hr,q as Wr,bg as Nr,bI as Sn,n as jr,bJ as Lo,bK as st,a1 as $r,bL as $t,bM as ls,b3 as Yr,T as Ur,bN as Xr}from"./index-COjDMumS.js";import{V as cs}from"./VPagination-D9kFqUDc.js";import{V as Eo,m as Gr,u as Kr,a as qr}from"./VSelect-CYP9gZOZ.js";import{V as Hn}from"./VCheckboxBtn-MbVoU8jL.js";import{m as Bo,u as zo}from"./filter-Bl2taI8b.js";import{a as Jr,F as Qr,V as Zr}from"./VToolbar-DBXauuuI.js";import{D as Vo}from"./date-select-D2bApzzg.js";import{V as tl}from"./VSwitch-rZtxTrUU.js";import"./VTextField-BjWksY-K.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";import"./VList-CwTaIQsW.js";import"./ssrBoot-Me6CX2Hk.js";import"./VSelectionControl-BK9dDQDu.js";import"./VTextarea-qF2XqWL0.js";import"./VLocaleProvider-CVl-Ln1o.js";import"./VSpacer-Q-SG7gn8.js";function ds(i,t,e){return Object.keys(i).filter(n=>vr(n)&&n.endsWith(t)).reduce((n,s)=>(n[s.slice(0,-t.length)]=o=>i[s](o,e(o)),n),{})}const Ji=wr("filter",()=>({date_period:Z({startdate:new Date(new Date().getFullYear(),0,1),enddate:new Date})})),el={props:{indicator:{type:Object,default:{}}}},il={class:"text-caption"},nl={key:1};function sl(i,t,e,n,s,o){const a=G("vue3-autocounter");return R(),H(pe,{class:"text-center text-blue-grey-darken-4 d-flex h-100 flex-column cursor-default justify-center"},{default:x(()=>[_(U,{"no-gutters":"",class:"flex-grow-0"},{default:x(()=>[_(F,{class:"text-h5 font-weight-bold pl-5"},{default:x(()=>[J(W(e.indicator.title)+" ",1),_(Ut,{width:"250"},{activator:x(({props:r})=>[_(Ct,ot({icon:"mdi-information",color:"cyan-darken-3",size:"12"},r,{class:"align-self-end pr-2 pb-5 cursor-help"}),null,16)]),default:x(()=>[T("span",il,W(e.indicator.tooltip),1)]),_:1})]),_:1})]),_:1}),_(U,{"no-gutters":"",class:"flex-grow-0"},{default:x(()=>[_(F,{class:"text-h6 font-weight-medium"},{default:x(()=>[J(W(e.indicator.abb),1)]),_:1})]),_:1}),_(U,{"no-gutters":"",class:"flex-grow-0 pt-3"},{default:x(()=>[_(F,{class:"text-h3 text-grey-darken-3 text-center font-weight-regular align-self-center"},{default:x(()=>[Number.isNaN(e.indicator.data)?(R(),ut("div",nl,[_(U,null,{default:x(()=>[_(F,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:x(()=>t[0]||(t[0]=[J(" Данных нет ")])),_:1})]),_:1})])):(R(),H(a,{key:0,ref:"counter",startAmount:0,endAmount:e.indicator.data,duration:1,decimals:Number.isInteger(e.indicator.data)?0:2,suffix:e.indicator.abb=="(PPV)"?"":"%"},null,8,["endAmount","decimals","suffix"]))]),_:1})]),_:1})]),_:1})}const Ho=ft(el,[["render",sl]]),ol={props:{title:{type:String,default:""},ico:{type:String,default:""}}};function al(i,t,e,n,s,o){return R(),H(pe,{class:"text-center h-100 d-flex flex-column"},{default:x(()=>[_(U,{"no-gutters":"",class:"flex-grow-0"},{default:x(()=>[_(F,{class:"d-flex flex-column pa-1"},{default:x(()=>[_(Mo,{color:"light-blue-darken-4",label:"",class:"text-center text-cyan-darken-4 rounded-0 text-subtitle-1 font-weight-medium"},{default:x(()=>[_(Ct,{start:"",color:"cyan-darken-4",icon:e.ico},null,8,["icon"]),J(" "+W(e.title),1)]),_:1})]),_:1})]),_:1}),_(U,{"no-gutters":""},{default:x(()=>[_(F,{class:"flex-column d-flex"},{default:x(()=>[_(wn,{class:"px-3 py-1 flex-column d-flex h-0 overflow-x-auto overflow-x-hidden"},{default:x(()=>[Po(i.$slots,"filling")]),_:3})]),_:3})]),_:3})]),_:3})}const Qi=ft(ol,[["render",al]]),rl=gt({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Wo=Symbol.for("vuetify:data-table-pagination");function ll(i){const t=Me(i,"page",void 0,n=>+(n??1)),e=Me(i,"itemsPerPage",void 0,n=>+(n??10));return{page:t,itemsPerPage:e}}function cl(i){const{page:t,itemsPerPage:e,itemsLength:n}=i,s=z(()=>e.value===-1?0:e.value*(t.value-1)),o=z(()=>e.value===-1?n.value:Math.min(n.value,s.value+e.value)),a=z(()=>e.value===-1||n.value===0?1:Math.ceil(n.value/e.value));Te([t,a],()=>{t.value>a.value&&(t.value=a.value)});function r(h){e.value=h,t.value=1}function l(){t.value=rn(t.value+1,1,a.value)}function c(){t.value=rn(t.value-1,1,a.value)}function d(h){t.value=rn(h,1,a.value)}const u={page:t,itemsPerPage:e,startInLine truncated
* @kurkle/color v0.3.4
* https://github.com/kurkle/color#readme
* (c) 2024 Jukka Kurkela
* Released under the MIT License
*/function li(i){return i+.5|0}const Qt=(i,t,e)=>Math.max(Math.min(i,e),t);function Ne(i){return Qt(li(i*2.55),0,255)}function ee(i){return Qt(li(i*255),0,255)}function jt(i){return Qt(li(i/2.55)/100,0,1)}function hs(i){return Qt(li(i*100),0,100)}const St={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Pn=[..."0123456789ABCDEF"],cc=i=>Pn[i&15],dc=i=>Pn[(i&240)>>4]+Pn[i&15],hi=i=>(i&240)>>4===(i&15),uc=i=>hi(i.r)&&hi(i.g)&&hi(i.b)&&hi(i.a);function hc(i){var t=i.length,e;return i[0]==="#"&&(t===4||t===5?e={r:255&St[i[1]]*17,g:255&St[i[2]]*17,b:255&St[i[3]]*17,a:t===5?St[i[4]]*17:255}:(t===7||t===9)&&(e={r:St[i[1]]<<4|St[i[2]],g:St[i[3]]<<4|St[i[4]],b:St[i[5]]<<4|St[i[6]],a:t===9?St[i[7]]<<4|St[i[8]]:255})),e}const fc=(i,t)=>i<255?t(i):"";function gc(i){var t=uc(i)?cc:dc;return i?"#"+t(i.r)+t(i.g)+t(i.b)+fc(i.a,t):void 0}const pc=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ka(i,t,e){const n=t*Math.min(e,1-e),s=(o,a=(o+i/30)%12)=>e-n*Math.max(Math.min(a-3,9-a,1),-1);return[s(0),s(8),s(4)]}function mc(i,t,e){const n=(s,o=(s+i/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function bc(i,t,e){const n=ka(i,1,.5);let s;for(t+e>1&&(s=1/(t+e),t*=s,e*=s),s=0;s<3;s++)n[s]*=1-t-e,n[s]+=t;return n}function _c(i,t,e,n,s){return i===s?(t-e)/n+(t<e?6:0):t===s?(e-i)/n+2:(i-t)/n+4}function jn(i){const e=i.r/255,n=i.g/255,s=i.b/255,o=Math.max(e,n,s),a=Math.min(e,n,s),r=(o+a)/2;let l,c,d;return o!==a&&(d=o-a,c=r>.5?d/(2-o-a):d/(o+a),l=_c(e,n,s,d,o),l=l*60+.5),[l|0,c||0,r]}function $n(i,t,e,n){return(Array.isArray(t)?i(t[0],t[1],t[2]):i(t,e,n)).map(ee)}function Yn(i,t,e){return $n(ka,i,t,e)}function yc(i,t,e){return $n(bc,i,t,e)}function xc(i,t,e){return $n(mc,i,t,e)}function Sa(i){return(i%360+360)%360}function vc(i){const t=pc.exec(i);let e=255,n;if(!t)return;t[5]!==n&&(e=t[6]?Ne(+t[5]):ee(+t[5]));const s=Sa(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?n=yc(s,o,a):t[1]==="hsv"?n=xc(s,o,a):n=Yn(s,o,a),{r:n[0],g:n[1],b:n[2],a:e}}function wc(i,t){var e=jn(i);e[0]=Sa(e[0]+t),e=Yn(e),i.r=e[0],i.g=e[1],i.b=e[2]}function kc(i){if(!i)return;const t=jn(i),e=t[0],n=hs(t[1]),s=hs(t[2]);return i.a<255?`hsla(${e}, ${n}%, ${s}%, ${jt(i.a)})`:`hsl(${e}, ${n}%, ${s}%)`}const fs={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},gs={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Sc(){const i={},t=Object.keys(gs),e=Object.keys(fs);let n,s,o,a,r;for(n=0;n<t.length;n++){for(a=r=t[n],s=0;s<e.length;s++)o=e[s]Line truncated
* Chart.js v4.4.7
* https://www.chartjs.org
* (c) 2024 Chart.js Contributors
* Released under the MIT License
*/function Ht(){}const Ac=(()=>{let i=0;return()=>i++})();function X(i){return i==null}function nt(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function V(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function Dt(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function Rt(i,t){return Dt(i)?i:t}function L(i,t){return typeof i>"u"?t:i}const Ic=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function Y(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function N(i,t,e,n){let s,o,a;if(nt(i))for(o=i.length,s=0;s<o;s++)t.call(e,i[s],s);else if(V(i))for(a=Object.keys(i),o=a.length,s=0;s<o;s++)t.call(e,i[a[s]],a[s])}function Wi(i,t){let e,n,s,o;if(!i||!t||i.length!==t.length)return!1;for(e=0,n=i.length;e<n;++e)if(s=i[e],o=t[e],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function Ni(i){if(nt(i))return i.map(Ni);if(V(i)){const t=Object.create(null),e=Object.keys(i),n=e.length;let s=0;for(;s<n;++s)t[e[s]]=Ni(i[e[s]]);return t}return i}function Pa(i){return["__proto__","prototype","constructor"].indexOf(i)===-1}function Rc(i,t,e,n){if(!Pa(i))return;const s=t[i],o=e[i];V(s)&&V(o)?Et(s,o,n):t[i]=Ni(o)}function Et(i,t,e){const n=nt(t)?t:[t],s=n.length;if(!V(i))return i;e=e||{};const o=e.merger||Rc;let a;for(let r=0;r<s;++r){if(a=n[r],!V(a))continue;const l=Object.keys(a);for(let c=0,d=l.length;c<d;++c)o(l[c],i,a,e)}return i}function Xe(i,t){return Et(i,t,{merger:Fc})}function Fc(i,t,e){if(!Pa(i))return;const n=t[i],s=e[i];V(n)&&V(s)?Xe(n,s):Object.prototype.hasOwnProperty.call(t,i)||(t[i]=Ni(s))}const ms={"":i=>i,x:i=>i.x,y:i=>i.y};function Lc(i){const t=i.split("."),e=[];let n="";for(const s of t)n+=s,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}function Ec(i){const t=Lc(i);return e=>{for(const n of t){if(n==="")break;e=e&&e[n]}return e}}function ji(i,t){return(ms[t]||(ms[t]=Ec(t)))(i)}function Un(i){return i.charAt(0).toUpperCase()+i.slice(1)}const $i=i=>typeof i<"u",ne=i=>typeof i=="function",bs=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function Bc(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const it=Math.PI,ct=2*it,zc=ct+it,Yi=Number.POSITIVE_INFINITY,Vc=it/180,rt=it/2,oe=it/4,_s=it*2/3,Cn=Math.log10,Pe=Math.sign;function Ge(i,t,e){return Math.abs(i-t)<e}function ys(i){const t=Math.round(i);i=Ge(i,t,i/1e3)?t:i;const e=Math.pow(10,Math.floor(Cn(i))),n=i/e;return(n<=1?1:n<=2?2:n<=5?5:10)*e}function Hc(i){const t=[],e=Math.sqrt(i);let n;for(n=1;n<e;n++)i%n===0&&(t.push(n),t.push(i/n));return e===(e|0)&&t.push(e),t.sort((s,o)=>s-o).pop(),t}function ni(i){return!isNaN(parseFloat(i))&&isFinite(i)}function Wc(i,t){const e=Math.round(i);return e-t<=i&&e+t>=i}function Nc(i,t,e){let n,s,o;for(n=0,s=i.length;n<s;n++)o=i[n][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function de(i){return i*(it/180)}function jc(i){return i*(180/it)}function xs(i){if(!Dt(i))return;let t=1,e=0;for(;Math.round(i*t)/t!==i;)t*=10,e++;return e}function Ca(i,t){const e=t.x-i.x,n=t.y-i.y,s=Math.sqrt(e*e+n*n);let o=Math.atan2(n,e);return o<-.5*it&&(o+=ct),{angle:o,distance:s}}function Dn(i,t){return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function $c(i,t){return(i-t+zc)%ct-it}function Kt(i){return(i%ct+ct)%ct}function Xn(i,t,e,n){const s=Kt(i),o=Kt(t),a=Kt(e),r=Kt(o-s),l=Kt(a-s),c=Kt(s-o),d=Kt(s-a);return s===o||s===a||n&&o===a||r>l&&c<d}function ht(i,t,e){return Math.max(t,Math.min(e,i))}function Yc(i){return ht(i,-32768,32767)}function Zt(i,t,e,n=1e-6){return i>=Math.min(t,e)-n&&i<=Math.max(t,e)+n}function Gn(i,t,e){e=e||(a=>i[a]<t);let n=i.length-1,s=0,o;for(;n-s>1;)o=s+n>>1,e(o)?s=o:n=o;return{lo:s,hi:n}}const ue=(i,t,e,n)=>Gn(i,e,n?s=>{const o=i[s][t];return o<e||o===e&&i[s+1][t]===e}:s=>i[s][t]<e),Uc=(i,t,e)=>Gn(i,e,n=>i[n][t]>=e);function Xc(i,t,e){let n=0,s=i.length;for(;n<s&&i[n]<t;)n++;for(;s>n&&i[s-1]>e;)s--;return n>0||s<i.length?i.slice(n,s):i}const Da=["push","pop","shift","splice","unshift"];function Gc(i,t){if(i._chartjs){i._chartjs.listeners.push(t);return}Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Da.forEach(e=>{const n="_onData"+Un(e),s=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...o){const a=s.apply(this,o);return i._chartjs.listeners.forEach(r=>{typeof r[n]=="function"&&r[n](...o)}),a}})})}function vs(i,t){const e=i._chartjs;if(!e)return;const n=e.listeners,s=n.indexOf(t);s!==-1&&n.splice(s,1),!(n.length>0)&&(Da.forEach(o=>{delete i[o]}),delete i._chartjs)}function Kc(i){const t=new Set(i);return t.size===i.length?i:Array.from(t)}const Ta=function(){return typeof window>"u"?function(i){return i()}:window.requestAnimationFrame}();function Oa(i,t){let e=[],n=!1;return function(...s){e=s,n||(n=!0,Ta.call(window,()=>{n=!1,i.apply(t,e)}))}}function qc(i,t){lLine truncated
* Chart.js v4.4.7
* https://www.chartjs.org
* (c) 2024 Chart.js Contributors
* Released under the MIT License
*/class tu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,s){const o=e.listeners[s],a=e.duration;o.forEach(r=>r({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Ta.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;const o=n.items;let a=o.length-1,r=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(t),r=!0):(o[a]=o[o.length-1],o.pop());r&&(s.draw(),this._notify(s,n,t,"progress")),o.length||(n.running=!1,this._notify(s,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let s=n.length-1;for(;s>=0;--s)n[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Wt=new tu;const Ls="transparent",eu={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const n=Ss(i||Ls),s=n.valid&&Ss(t||Ls);return s&&s.valid?s.mix(n,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class iu{constructor(t,e,n,s){const o=e[n];s=K([t.to,s,o,t.from]);const a=K([t.from,o,s]);this._active=!0,this._fn=t.fn||eu[t.type||typeof a],this._easing=Ke[t.easing]||Ke.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const s=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=K([t.to,e,s,t.from]),this._from=K([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,s=this._prop,o=this._from,a=this._loop,r=this._to;let l;if(this._active=o!==r&&(a||e<n),!this._active){this._target[s]=r,this._notify(!0);return}if(e<0){this._target[s]=o;return}l=e/n%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,r,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let s=0;s<n.length;s++)n[s][e]()}}class $a{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!V(t))return;const e=Object.keys(Q.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!V(o))return;const a={};for(const r of e)a[r]=o[r];(nt(o.properties)&&o.properties||[s]).forEach(r=>{(r===s||!n.has(r))&&n.set(r,a)})})}_animateOptions(t,e){const n=e.options,s=su(t,n);if(!s)return[];const o=this._createAnimations(s,n);return n.$shared&&nu(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,s=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),r=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,e));continue}const d=e[c];let u=o[c];const h=n.get(c);if(u)if(h&&u.active()){u.update(h,d,r);continue}else u.cancel();if(!h||!h.duration){t[c]=d;continue}o[c]=u=new iu(h,t,c,d),s.push(u)}return s}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const n=this._createAnimations(t,e);if(n.length)return Wt.add(this._chart,n),!0}}function nu(i,t){const e=[],n=Object.keys(t);for(let s=0;s<n.length;s++){const o=i[n[s]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}function su(i,t){if(!t)return;let e=i.options;if(!e){i.options=t;return}return e.$shared&&(i.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function Es(i,t){const e=i&&i.options||{},n=e.reverse,s=e.min===void 0?t:0,o=e.max===void 0?t:0;return{start:n?o:s,end:n?s:o}}function ou(i,t,e){if(e===!1)return!1;const n=Es(i,e),s=Es(t,e);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}function au(i){let t,e,n,s;return V(i)?(t=i.top,e=i.right,n=i.bottom,s=i.left):t=e=n=s=i,{top:t,right:e,bottom:n,left:s,disabled:i===!1}}function Ya(i,t){const e=[],n=i._getSortedDatasetMetas(t);let s,o;for(s=0,o=n.length;s<o;++s)e.push(n[s].index);retuLine truncated
`)>-1?i.split(`
`):i}function qh(i,t){const{element:e,datasetIndex:n,index:s}=t,o=i.getDatasetMeta(n).controller,{label:a,value:r}=o.getLabelAndValue(s);return{chart:i,label:a,parsed:o.getParsed(s),raw:i.data.datasets[n].data[s],formattedValue:r,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:e}}function co(i,t){const e=i.chart.ctx,{body:n,footer:s,title:o}=i,{boxWidth:a,boxHeight:r}=t,l=lt(t.bodyFont),c=lt(t.titleFont),d=lt(t.footerFont),u=o.length,h=s.length,f=n.length,g=wt(t.padding);let m=g.height,p=0,b=n.reduce((M,v)=>M+v.before.length+v.lines.length+v.after.length,0);if(b+=i.beforeBody.length+i.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){const M=t.displayColors?Math.max(r,l.lineHeight):l.lineHeight;m+=f*M+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}h&&(m+=t.footerMarginTop+h*d.lineHeight+(h-1)*t.footerSpacing);let y=0;const w=function(M){p=Math.max(p,e.measureText(M).width+y)};return e.save(),e.font=c.string,N(i.title,w),e.font=l.string,N(i.beforeBody.concat(i.afterBody),w),y=t.displayColors?a+2+t.boxPadding:0,N(n,M=>{N(M.before,w),N(M.lines,w),N(M.after,w)}),y=0,e.font=d.string,N(i.footer,w),e.restore(),p+=g.width,{width:p,height:m}}function Jh(i,t){const{y:e,height:n}=t;return e<n/2?"top":e>i.height-n/2?"bottom":"center"}function Qh(i,t,e,n){const{x:s,width:o}=n,a=e.caretSize+e.caretPadding;if(i==="left"&&s+o+a>t.width||i==="right"&&s-o-a<0)return!0}function Zh(i,t,e,n){const{x:s,width:o}=e,{width:a,chartArea:{left:r,right:l}}=i;let c="center";return n==="center"?c=s<=(r+l)/2?"left":"right":s<=o/2?c="left":s>=a-o/2&&(c="right"),Qh(c,i,t,e)&&(c="center"),c}function uo(i,t,e){const n=e.yAlign||t.yAlign||Jh(i,e);return{xAlign:e.xAlign||t.xAlign||Zh(i,t,e,n),yAlign:n}}function tf(i,t){let{x:e,width:n}=i;return t==="right"?e-=n:t==="center"&&(e-=n/2),e}function ef(i,t,e){let{y:n,height:s}=i;return t==="top"?n+=e:t==="bottom"?n-=s+e:n-=s/2,n}function ho(i,t,e,n){const{caretSize:s,caretPadding:o,cornerRadius:a}=i,{xAlign:r,yAlign:l}=e,c=s+o,{topLeft:d,topRight:u,bottomLeft:h,bottomRight:f}=ke(a);let g=tf(t,r);const m=ef(t,l,c);return l==="center"?r==="left"?g+=c:r==="right"&&(g-=c):r==="left"?g-=Math.max(d,h)+s:r==="right"&&(g+=Math.max(u,f)+s),{x:ht(g,0,n.width-t.width),y:ht(m,0,n.height-t.height)}}function ki(i,t,e){const n=wt(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-n.right:i.x+n.left}function fo(i){return Ft([],Nt(i))}function nf(i,t,e){return be(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function go(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}const rr={beforeTitle:Ht,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,n=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return e[t.dataIndex]}return""},afterTitle:Ht,beforeBody:Ht,beforeLabel:Ht,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let t=i.dataset.label||"";t&&(t+=": ");const e=i.formattedValue;return X(e)||(t+=e),t},labelColor(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Ht,afterBody:Ht,beforeFooter:Ht,footer:Ht,afterFooter:Ht};function _t(i,t,e,n){const s=i[t].call(e,n);return typeof s>"u"?rr[t].call(e,n):s}class Fn extends Ot{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&e.options.animation&&n.animations,o=new $a(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=nf(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:n}=e,s=_t(n,"beforeTitle",this,t),o=_t(n,"title",this,t),a=_t(n,"afterTitle",this,t);let r=[];return r=Ft(r,Nt(s)),r=Ft(r,Nt(o)),r=Ft(r,Nt(a)),r}getBeforeBody(t,e){return fo(_t(e.callbacks,"b Line truncated
* chartjs-plugin-datalabels v2.2.0
* https://chartjs-plugin-datalabels.netlify.app
* (c) 2017-2022 chartjs-plugin-datalabels contributors
* Released under the MIT license
*/var ko=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var i=window.screen;if(i)return(i.deviceXDPI||1)/(i.logicalXDPI||1)}return 1}(),Ze={toTextLines:function(i){var t=[],e;for(i=[].concat(i);i.length;)e=i.pop(),typeof e=="string"?t.unshift.apply(t,e.split(`
`)):Array.isArray(e)?i.push.apply(i,e):X(i)||t.unshift(""+e);return t},textSize:function(i,t,e){var n=[].concat(t),s=n.length,o=i.font,a=0,r;for(i.font=e.string,r=0;r<s;++r)a=Math.max(i.measureText(n[r]).width,a);return i.font=o,{height:s*e.lineHeight,width:a}},bound:function(i,t,e){return Math.max(i,Math.min(t,e))},arrayDiff:function(i,t){var e=i.slice(),n=[],s,o,a,r;for(s=0,a=t.length;s<a;++s)r=t[s],o=e.indexOf(r),o===-1?n.push([r,1]):e.splice(o,1);for(s=0,a=e.length;s<a;++s)n.push([e[s],-1]);return n},rasterize:function(i){return Math.round(i*ko)/ko}};function vn(i,t){var e=t.x,n=t.y;if(e===null)return{x:0,y:-1};if(n===null)return{x:1,y:0};var s=i.x-e,o=i.y-n,a=Math.sqrt(s*s+o*o);return{x:a?s/a:0,y:a?o/a:-1}}function wf(i,t,e,n,s){switch(s){case"center":e=n=0;break;case"bottom":e=0,n=1;break;case"right":e=1,n=0;break;case"left":e=-1,n=0;break;case"top":e=0,n=-1;break;case"start":e=-e,n=-n;break;case"end":break;default:s*=Math.PI/180,e=Math.cos(s),n=Math.sin(s);break}return{x:i,y:t,vx:e,vy:n}}var kf=0,ur=1,hr=2,fr=4,gr=8;function Mi(i,t,e){var n=kf;return i<e.left?n|=ur:i>e.right&&(n|=hr),t<e.top?n|=gr:t>e.bottom&&(n|=fr),n}function Sf(i,t){for(var e=i.x0,n=i.y0,s=i.x1,o=i.y1,a=Mi(e,n,t),r=Mi(s,o,t),l,c,d;!(!(a|r)||a&r);)l=a||r,l&gr?(c=e+(s-e)*(t.top-n)/(o-n),d=t.top):l&fr?(c=e+(s-e)*(t.bottom-n)/(o-n),d=t.bottom):l&hr?(d=n+(o-n)*(t.right-e)/(s-e),c=t.right):l&ur&&(d=n+(o-n)*(t.left-e)/(s-e),c=t.left),l===a?(e=c,n=d,a=Mi(e,n,t)):(s=c,o=d,r=Mi(s,o,t));return{x0:e,x1:s,y0:n,y1:o}}function Pi(i,t){var e=t.anchor,n=i,s,o;return t.clamp&&(n=Sf(n,t.area)),e==="start"?(s=n.x0,o=n.y0):e==="end"?(s=n.x1,o=n.y1):(s=(n.x0+n.x1)/2,o=(n.y0+n.y1)/2),wf(s,o,i.vx,i.vy,t.align)}var Ci={arc:function(i,t){var e=(i.startAngle+i.endAngle)/2,n=Math.cos(e),s=Math.sin(e),o=i.innerRadius,a=i.outerRadius;return Pi({x0:i.x+n*o,y0:i.y+s*o,x1:i.x+n*a,y1:i.y+s*a,vx:n,vy:s},t)},point:function(i,t){var e=vn(i,t.origin),n=e.x*i.options.radius,s=e.y*i.options.radius;return Pi({x0:i.x-n,y0:i.y-s,x1:i.x+n,y1:i.y+s,vx:e.x,vy:e.y},t)},bar:function(i,t){var e=vn(i,t.origin),n=i.x,s=i.y,o=0,a=0;return i.horizontal?(n=Math.min(i.x,i.base),o=Math.abs(i.base-i.x)):(s=Math.min(i.y,i.base),a=Math.abs(i.base-i.y)),Pi({x0:n,y0:s+a,x1:n+o,y1:s,vx:e.x,vy:e.y},t)},fallback:function(i,t){var e=vn(i,t.origin);return Pi({x0:i.x,y0:i.y,x1:i.x+(i.width||0),y1:i.y+(i.height||0),vx:e.x,vy:e.y},t)}},Yt=Ze.rasterize;function Mf(i){var t=i.borderWidth||0,e=i.padding,n=i.size.height,s=i.size.width,o=-s/2,a=-n/2;return{frame:{x:o-e.left-t,y:a-e.top-t,w:s+e.width+t*2,h:n+e.height+t*2},text:{x:o,y:a,w:s,h:n}}}function Pf(i,t){var e=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var n=e.getBasePixel();return i.horizontal?{x:n,y:null}:{x:null,y:n}}function Cf(i){return i instanceof $e?Ci.arc:i instanceof Qe?Ci.point:i instanceof Ii?Ci.bar:Ci.fallback}function Df(i,t,e,n,s,o){var a=Math.PI/2;if(o){var r=Math.min(o,s/2,n/2),l=t+r,c=e+r,d=t+n-r,u=e+s-r;i.moveTo(t,c),l<d&&c<u?(i.arc(l,c,r,-Math.PI,-a),i.arc(d,c,r,-a,0),i.arc(d,u,r,0,a),i.arc(l,u,r,a,Math.PI)):l<d?(i.moveTo(l,e),i.arc(d,c,r,-a,a),i.arc(l,c,r,a,Math.PI+a)):c<u?(i.arc(l,c,r,-Math.PI,0),i.arc(l,u,r,0,Math.PI)):i.arc(l,c,r,-Math.PI,Math.PI),i.closePath(),i.moveTo(t,e)}else i.rect(t,e,n,s)}function Tf(i,t,e){var n=e.backgroundColor,s=e.borderColor,o=e.borderWidth;!n&&(!s||!o)||(i.beginPath(),Df(i,Yt(t.x)+o/2,Yt(t.y)+o/2,Yt(t.w)-o,Yt(t.h)-o,e.borderRadius),i.closePath(),n&&(i.fillStyle=n,i.fill()),s&&o&&(i.strokeStyle=s,i.lineWidth=o,i.lineJoin="miter",i.stroke()))}function Of(i,t,e){var n=e.lineHeight,s=i.w,o=i.x,a=i.y+n/2;return t==="center"?o+=s/2:(t==="end"||t==="right")&&(o+=s),{h:n,w:s,x:o,y:a}}function Af(i,t,e){var n=i.shadowBlur,s=e.stroked,o=Yt(e.x),a=Yt(e.y),r=Yt(e.w);s&&i.strokeText(t,o,a,r),e.filled&&(n&&s&&(i.shadowBlur=0),i.fillText(t,o,a,r),n&&s&&(i.shadowBlur=n))}function If(i,t,e,n){var s=n.textAlign,o=n.color,a=!!o,r=n.font,l=t.length,c=n.textStrokeColor,d=n.textStrokeWidth,u=c&&d,h;if(!(!l||!a&&!u))for(e=Of(e,s,r),i.font=r.string,i.textAlign=s,i.textBaseline="middle",i.shadowBlur=n.textShadowBlur,i.shadowColor=n.textShadowColor,a&&(i.fillStyle=o),u&&(i.lineJoin="round",i.lineWidth=d,i.strokeStyle=c),h=0,l=t.length;h<l;++h)Af(i,t[h],{stroked:u,filled:a,w:e.w,x:e.x,y:e.y+e.h*h})}var pr=function(i,t,e,n){var s=this;s._config=i,s._index=n,s._model=null,s._rects=null,s._ctx=t,s._el=e};Et(pr.prototype,{_modelize:function(i,t,e,n){var s=this,o=s._index,a=lt(K([e.font,{}],n,o)),r=K([e.color,Q.color],n,o);return{align:K([e.align,"center"],n,o),anchor:K([e.anchor,"center"],n,o),area:n.chart.chartArea,backgroundColor:K([e.backgroundColor,null],n,o),borderColor:K([e.borderColor,null],n,o),borderRadius:K([e.borderRadius,0],n,o),borderWidth:K([e.borderWidth,0],n,o),clamp:K([e.clamp,!1],n,o),clip:K([e.clip,!1],n,o),color:r,display:i,font:a,lines:t,offset:K([e.offset,4],n,o),opacity:K([e.opacity,1],n,o),origin:Pf(s._el, Line truncated
* chartjs-adapter-moment v1.0.1
* https://www.chartjs.org
* (c) 2022 chartjs-adapter-moment Contributors
* Released under the MIT license
*/const $f={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Ua._date.override(typeof st=="function"?{_id:"moment",formats:function(){return $f},parse:function(i,t){return typeof i=="string"&&typeof t=="string"?i=st(i,t):i instanceof st||(i=st(i)),i.isValid()?i.valueOf():null},format:function(i,t){return st(i).format(t)},add:function(i,t,e){return st(i).add(t,e).valueOf()},diff:function(i,t,e){return st(i).diff(st(t),e)},startOf:function(i,t,e){return i=st(i),t==="isoWeek"?(e=Math.trunc(Math.min(Math.max(0,e),6)),i.isoWeekday(e).startOf("day").valueOf()):i.startOf(t).valueOf()},endOf:function(i,t){return st(i).endOf(t).valueOf()}}:{});nn.register(jf,Ln,En,Qe,Ye,Kh,sf,Xh,ri);const Yf={components:{Line:vf},props:{dataLineChart:{type:Object,default:()=>{}},period:{type:Object,default:()=>{}},filter:{type:String,default:"d"}},setup(i,{emit:t}){const e=Ji(),n=Z(0),s={datasets:[{label:"Открыто страниц",backgroundColor:"#C62828",borderColor:"#C62828",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:g=>g.count,datakey:"count",tooltips:!1,hidden:!0,yAxisID:"y"},{label:"Активные пользователи",backgroundColor:"teal",borderColor:"teal",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:g=>g.unic.length,datakey:"unic",customlabel:[],tooltips:!0,yAxisID:"y"},{label:"CRR",backgroundColor:"#673AB7",borderColor:"#673AB7",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:(g,m)=>parseFloat(l(m).toFixed(2)),hidden:!0,datakey:"crr",customlabel:[],tooltips:!0,yAxisID:"y1"},{label:"BR",backgroundColor:"#283593",borderColor:"#283593",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:g=>parseFloat((g.br/g.unic.length*100).toFixed(2)),datakey:"br",hidden:!0,customlabel:[],tooltips:!0,yAxisID:"y1"},{label:"PPV",backgroundColor:"#EF9A9A",borderColor:"#EF9A9A",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:g=>parseFloat((g.pages/g.unic.length).toFixed(2)),datakey:"ppv",hidden:!0,customlabel:[],tooltips:!0,yAxisID:"y"}]},o=z({get(){r();let g=st(e.date_period.enddate),m=st(e.date_period.startdate);n.value=g.diff(m,"days")+1;let p=null;if(Object.keys(i.dataLineChart).length>0){p=s,p.labels=[],p.datasets.forEach(b=>{b.data=[]});for(let[b,y]of Object.entries(i.dataLineChart))p.datasets.forEach(w=>{w.data.push(w.func(y,b))}),p.labels.push($r(b))}return p}}),a=Z([]),r=()=>{let g=[];i.period.period.forEach(m=>{let p=g.findIndex(b=>b.visitdate==m.visitdate);p==-1?g.push({visitdate:m.visitdate,user:Array.from(new Set([m.user.id]))}):g[p].user=Array.from(new Set(g[p].user).add(m.user.id))}),a.value=[...i.period.before,...g]},l=g=>{let m=d(a.value.filter(y=>new Date(y.visitdate)>st(new Date(g)).subtract(n.value*2,"d")&&new Date(y.visitdate)<=st(new Date(g)).subtract(n.value,"d"))),p=d(a.value.filter(y=>new Date(y.visitdate)>st(new Date(g)).subtract(n.value,"d")&&new Date(y.visitdate)<=new Date(g))),b=new Set([...m].filter(y=>p.has(y)));return g==$t(e.date_period.enddate)&&c(b.size*100/m.size),m.size==0?0:b.size*100/m.size},c=g=>{t("getCRR",g)},d=g=>{let m=[];return g.forEach(p=>m.push(...p.user)),new Set(m)},u=z({get(){return JSON.parse(JSON.stringify(o.value))}}),h=Z(null);return{data:u,options:{plugins:{datalabels:{color:"grey",align:"top",display:"auto"},legend:{onHover:(g,m)=>{g.native.target.style.cursor="pointer"},onLeave:(g,m)=>{g.native.target.style.cursor="default"},position:"bottom",labels:{color:"grey",align:"right"}}},layout:{padding:{top:35,bottom:5,left:20,right:15}},scales:{x:{grid:{color:"white"}},y:{ticks:{stepSize:10},offset:!0,grid:{color:"white"}},y1:{type:"linear",display:!0,position:"right"}},responsive:!0,maintainAspectRatio:!1},linear:h}}};function Uf(i,t,e,n,s,o){const a=G("Line");return R(),H(pe,{class:"h-100"},{default:x(()=>[n.data!==null?(R(),H(a,{key:0,data:n.data,ref:"linear",options:n.options},null,8,["data","options"])):ei("",!0)]),_:1})}const Xf=ft(Yf,[["render",Uf]]),Gf={props:{info:{type:Object,default:()=>({tooltip:"",ico:"",color:""})}},setup(i){return{}}};function Kf(i,t,e,n,s,o){return R(),H(Ut,{location:"top"},{activator:x(({props:a})=>[T("span",Ei(Bi(a)),[_(Ct,{class:"cursor-help",size:"large",color:e.info.color,icon:e.info.ico},null,8,["color","icon"])],16)]),default:x(()=>[_(U,null,{default:x(()=>[_(F,null,{default:x(()=>[J(W(e.info.tooltip),1)]),_:1})]),_:1})]),_:1})}const qf=ft(Gf,[["render",Kf]]),Jf={props:{info:{type:Array,default:()=>[]}}};function Qf(i,t,e,n,s,o){return R(),H(Ut,{location:"top"},{activator:x(({props:a})=>[T("span",Ei(Bi(a)),W(e.info.length),17)]),default:x(()=>[(R(!0),ut(vt,null,ie(e.info,a=>(R(),H(U,{"no-gutters":"",key:a},{default:x(()=>[_(F,null,{default:x(()=>[J(W(a),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})}const Zf=ft(Jf,[["render",Qf]]),tg={components:{PatternCard:Qi,TooltipIco:qf,TooltipUser:Zf},props:{alldata:{type:Object,default:()=>({period:[],sLine truncated
+7
View File
@@ -0,0 +1,7 @@
import{d as qt,r as U,T as de,_ as ae,s as N,t as z,v as f,x as u,B as Kt,y as P,$ as Z,V as Te,a$ as te,D as Bt,aV as Gt,G as Zt,A as ne,a0 as De,L as xt,l as Ae,f as H,bG as Jt,bk as et,C as ue,a2 as ke,Z as Xt,z as _e,Q as ce,R as pe,S as Ie,bL as je,a1 as Tt,U as G,b1 as lt,aN as Ye,F as D,bb as Qt,E as V,Y as St,W as Be,a3 as $t,M as Ct,aJ as en,H as tn,I as nn,q as an,w as rn}from"./index-COjDMumS.js";import{V as on}from"./VForm-c-Rrg0xF.js";import{V as Ue}from"./VCheckboxBtn-MbVoU8jL.js";import{a as ln}from"./VList-CwTaIQsW.js";import{V as Le}from"./VAutocomplete-DUcshk7Q.js";import{V as Ee}from"./VTextarea-qF2XqWL0.js";import{V as tt,a as Ot}from"./VLocaleProvider-CVl-Ln1o.js";import{V as sn}from"./VFileInput-Busl2805.js";import{V as Ut}from"./VTextField-BjWksY-K.js";import{b as dn,c as un,a as cn,V as fn}from"./VExpansionPanels-AiedkAuP.js";import"./VInput-Bmr5cjyQ.js";import"./VSelectionControl-BK9dDQDu.js";import"./ssrBoot-Me6CX2Hk.js";import"./VSelect-CYP9gZOZ.js";import"./filter-Bl2taI8b.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VSpacer-Q-SG7gn8.js";const yn=qt("weekends",()=>{const n=U({});function e(a){de.get(`api/calendar_of_events/exclusion_dates/?year=${a}`,{}).then(t=>{n.value=t.data})}return{week:n,getWeekend:e}}),hn={props:{title:{type:String,default:""},newOrOld:{type:Boolean,default:!1}},setup(n,{emit:e}){const a=U(null);return{form_valid:a,transformation:()=>{e("postData",a.value.isValid)},clearFormValidation:()=>{a.value&&a.value.resetValidation()}}}};function mn(n,e,a,t,r,l){return N(),z(xt,{"min-height":"436",class:"pa-3"},{default:f(()=>[u(Kt,{class:"pr-0 pl-2 d-flex justify-space-between"},{default:f(()=>[P(Z(a.title)+" ",1),u(Te,{icon:"mdi-close cursor-pointer",size:"small",color:"grey",onClick:e[0]||(e[0]=s=>n.$emit("closeDialog"))})]),_:1}),u(on,{ref:"form_valid",onSubmit:te(t.transformation,["prevent"])},{default:f(()=>[u(Bt,{class:"d-flex px-3"},{default:f(()=>[Gt(n.$slots,"card_text")]),_:3}),u(Zt,{class:"justify-end"},{default:f(()=>[a.newOrOld?De("",!0):(N(),z(ne,{key:0,icon:"mdi-delete",variant:"tonal",rounded:"",size:"36px",onClick:e[1]||(e[1]=s=>n.$emit("delObject"))})),u(ne,{class:"text-subtitle-1",elevation:"0",width:"150",onClick:e[2]||(e[2]=s=>n.$emit("closeDialog")),color:"btn_gray",variant:"flat"},{default:f(()=>e[3]||(e[3]=[P("Отменить")])),_:1}),u(ne,{class:"text-subtitle-1 font-weight-regular",color:"btn_text",variant:"flat",elevation:"0",width:"150",type:"transformation"},{default:f(()=>[P(Z(a.newOrOld?"Создать":"Редактировать"),1)]),_:1})]),_:1})]),_:3},8,["onSubmit"])]),_:3})}const Mt=ae(hn,[["render",mn]]),vn={props:{staff:{type:Array,default:()=>[]},okey:{type:String,default:"selected"}},setup(n,{emit:e}){const a=U(""),t=Ae(),r=U([]),l=H({get(){if(n.okey=="editor"){let d=[];return n.staff.forEach(y=>{let p={...y};p.employees=y.employees.filter(T=>T.selected==!0),p.employees.length>0&&d.push(p)}),d.forEach(y=>{y.employees.every(p=>p.editor==!0)&&(y.editor=!0)}),d}return n.staff}}),s=H({get(){let d=[];return n.staff.forEach(y=>{y.employees.length!=1&&y.employees.every(p=>p[n.okey]==!0)?(y[n.okey]=!0,d.push(y)):y.employees.length==1?(y[n.okey]=!0,d.push(...y.employees.filter(p=>p[n.okey]==!0))):(y[n.okey]=!1,d.push(...y.employees.filter(p=>p[n.okey]==!0)))}),d},set(d){Array.isArray(d)||i(d)}}),i=d=>{if("employees"in d)d.employees.forEach(y=>{y.id!=t.user.is_idEmployee&&(y[n.okey]=!d[n.okey])}),e("returnIdParticant",{okey:n.okey,staff:d.employees,select:[]});else if(d.length){if(d[0].id!=t.user.is_idEmployee){let y=!d.every(p=>p[n.okey]==!0);o(d,y),e("returnIdParticant",{okey:n.okey,staff:r.value,select:[]}),r.value=[]}}else d[n.okey]=!d[n.okey],e("returnIdParticant",{okey:n.okey,staff:[d],select:[]})},o=(d,y)=>{d.forEach(p=>{p.id!=t.user.is_idEmployee&&(p[n.okey]=y),"employees"in p||r.value.push(p),"employees"in p&&o(p.employees,y)})};function c(d,y){return d.includes(a.value)||y.raw.employees.some(p=>p.title.toLowerCase().includes(a.value.toLowerCase()))}return{staffed:l,filtered:a,accountStore:t,selectedStaff:s,splitname:Jt,onFilter:c,disable:d=>d.id==t.user.id_dict_department&&d.employees.length==1,allUser:()=>{i(l.value)}}}},pn={class:"text-body-2"};function bn(n,e,a,t,r,l){return N(),z(Le,{modelValue:t.selectedStaff,"onUpdate:modelValue":e[2]||(e[2]=s=>t.selectedStaff=s),items:t.staffed,label:"Выберите из списка или найдите по ФИО","item-title":"title","item-value":"id","custom-filter":t.onFilter,"onUpdate:search":e[3]||(e[3]=s=>t.filtered=s),multiple:"","hide-details":"",variant:"outlined",density:"compact",class:"max-height-select py-3","return-object":""},{selection:f(({item:s})=>[u(et,{class:"me-2",color:"teal-darken-3",size:"small",label:""},{default:f(()=>[ue("span",null,Z(s.title),1),s.value!=t.accountStore.user.is_idEmployee?(N(),z(Te,{key:0,icon:"mdi-close-circle",size:"x-small",class:"ml-3",onClick:te(i=>t.selectedStaff=s.raw,["stop"])},null,8,["onCliLine truncated
`).map(Gn).filter(function(a){return a!==null});return Q(Q({},e[0]),e[1])}function ze(n){var e={},a=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(n);if(!a)return e;var t=a[1],r=a[2];return t&&(e.tzid=t),e.dtstart=at(r),e}function Gn(n){if(n=n.replace(/^\s+|\s+$/,""),!n.length)return null;var e=/^([A-Z]+?)[:;]/.exec(n.toUpperCase());if(!e)return ht(n);var a=e[1];switch(a.toUpperCase()){case"RRULE":case"EXRULE":return ht(n);case"DTSTART":return ze(n);default:throw new Error("Unsupported RFC prop ".concat(a," in ").concat(n))}}function ht(n){var e=n.replace(/^RRULE:/i,""),a=ze(e),t=n.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return t.forEach(function(r){var l=r.split("="),s=l[0],i=l[1];switch(s.toUpperCase()){case"FREQ":a.freq=L[i.toUpperCase()];break;case"WKST":a.wkst=ee[i.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var o=Zn(i),c=s.toLowerCase();a[c]=o;break;case"BYWEEKDAY":case"BYDAY":a.byweekday=Jn(i);break;case"DTSTART":case"TZID":var m=ze(n);a.tzid=m.tzid,a.dtstart=m.dtstart;break;case"UNTIL":a.until=at(i);break;case"BYEASTER":a.byeaster=Number(i);break;default:throw new Error("Unknown RRULE property '"+s+"'")}}),a}function Zn(n){if(n.indexOf(",")!==-1){var e=n.split(",");return e.map(mt)}return mt(n)}function mt(n){return/^[+-]?\d+$/.test(n)?Number(n):n}function Jn(n){var e=n.split(",");return e.map(function(a){if(a.length===2)return ee[a];var t=a.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw new SyntaxError("Invalid weekday string: ".concat(a));var r=Number(t[1]),l=t[2],s=ee[l].weekday;return new B(s,r)})}var He=function(){function n(e,a){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=a}return Object.defineProperty(n.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),n.prototype.toString=function(){var e=nt(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},n.prototype.getTime=function(){return this.date.getTime()},n.prototype.rezonedDate=function(){return this.isUTC?this.date:Vn(this.date,this.tzid)},n}();function $e(n){for(var e=[],a="",t=Object.keys(n),r=Object.keys(ot),l=0;l<t.length;l++)if(t[l]!=="tzid"&&A(r,t[l])){var s=t[l].toUpperCase(),i=n[t[l]],o="";if(!(!F(i)||X(i)&&!i.length)){switch(s){case"FREQ":o=g.FREQUENCIES[n.freq];break;case"WKST":ie(i)?o=new B(i).toString():o=i.toString();break;case"BYWEEKDAY":s="BYDAY",o=Yn(i).map(function(y){return y instanceof B?y:X(y)?new B(y[0],y[1]):new B(y)}).toString();break;case"DTSTART":a=Xn(i,n.tzid);break;case"UNTIL":o=nt(i,!n.tzid);break;default:if(X(i)){for(var c=[],m=0;m<i.length;m++)c[m]=String(i[m]);o=c.toString()}else o=String(i)}o&&e.push([s,o])}}var h=e.map(function(y){var p=y[0],T=y[1];return"".concat(p,"=").concat(T.toString())}).join(";"),d="";return h!==""&&(d="RRULE:".concat(h)),[a,d].filter(function(y){return!!y}).join(`
`)}function Xn(n,e){return n?"DTSTART"+new He(new Date(n),e).toString():""}function Qn(n,e){return Array.isArray(n)?!Array.isArray(e)||n.length!==e.length?!1:n.every(function(a,t){return a.getTime()===e[t].getTime()}):n instanceof Date?e instanceof Date&&n.getTime()===e.getTime():n===e}var $n=function(){function n(){this.all=!1,this.before=[],this.after=[],this.between=[]}return n.prototype._cacheAdd=function(e,a,t){a&&(a=a instanceof Date?Je(a):ut(a)),e==="all"?this.all=a:(t._value=a,this[e].push(t))},n.prototype._cacheGet=function(e,a){var t=!1,r=a?Object.keys(a):[],l=function(m){for(var h=0;h<r.length;h++){var d=r[h];if(!Qn(a[d],m[d]))return!0}return!1},s=this[e];if(e==="all")t=this.all;else if(X(s))for(var i=0;i<s.length;i++){var o=s[i];if(!(r.length&&l(o))){t=o._value;break}}if(!t&&this.all){for(var c=new ge(e,a),i=0;i<this.all.length&&c.accept(this.all[i]);i++);t=c.getValue(),this._cacheAdd(e,t,a)}return X(t)?ut(t):t instanceof Date?Je(t):t},n}(),ea=v(v(v(v(v(v(v(v(v(v(v(v(v([],Y(1,31),!0),Y(2,28),!0),Y(3,31),!0),Y(4,30),!0),Y(5,31),!0),Y(6,30),!0),Y(7,31),!0),Y(8,31),!0),Y(9,30),!0),Y(10,31),!0),Y(11,30),!0),Y(12,31),!0),Y(1,7),!0),ta=v(v(v(v(v(v(v(v(v(v(v(v(v([],Y(1,31),!0),Y(2,29),!0),Y(3,31),!0),Y(4,30),!0),Y(5,31),!0),Y(6,30),!0),Y(7,31),!0),Y(8,31),!0),Y(9,30),!0),Y(10,31),!0),Y(11,30),!0),Y(12,31),!0),Y(1,7),!0),na=le(1,29),aa=le(1,30),ye=le(1,31),q=le(1,32),ra=v(v(v(v(v(v(v(v(v(v(v(v(v([],q,!0),aa,!0),q,!0),ye,!0),q,!0),ye,!0),q,!0),q,!0),ye,!0),q,!0),ye,!0),q,!0),q.slice(0,7),!0),ia=v(v(v(v(v(v(v(v(v(v(v(v(v([],q,!0),na,!0),q,!0),ye,!0),q,!0),ye,!0),q,!0),q,!0),ye,!0),q,!0),ye,!0),q,!0),q.slice(0,7),!0),oa=le(-28,0),la=le(-29,0),he=le(-30,0),K=le(-31,0),sa=v(v(v(v(v(v(v(v(v(v(v(v(v([],K,!0),la,!0),K,!0),he,!0),K,!0),he,!0),K,!0),K,!0),he,!0),K,!0),he,!0),K,!0),K.slice(0,7),!0),da=v(v(v(v(v(v(v(v(v(v(v(v(v([],K,!0),oa,!0),K,!0),he,!0),K,!0),he,!0),K,!0),K,!0),he,!0),K,!0),he,!0),K,!0),K.slice(0,7),!0),ua=[0,31,60,91,121,152,182,213,244,274,305,335,366],ca=[0,31,59,90,120,151,181,212,243,273,304,334,365],vt=function(){for(var n=[],e=0;e<55;e++)n=n.concat(le(7));return n}();function fa(n,e){var a=be(n,1,1),t=Me(n)?366:365,r=Me(n+1)?366:365,l=Ze(a),s=xe(a),i=Q(Q({yearlen:t,nextyearlen:r,yearordinal:l,yearweekday:s},ya(n)),{wnomask:null});if(oe(e.byweekno))return i;i.wnomask=Y(0,t+7);var o,c,m=o=$(7-s+e.wkst,7);m>=4?(m=0,c=i.yearlen+$(s-e.wkst,7)):c=t-m;for(var h=Math.floor(c/7),d=$(c,7),y=Math.floor(h+d/4),p=0;p<e.byweekno.length;p++){var T=e.byweekno[p];if(T<0&&(T+=y+1),T>0&&T<=y){var x=void 0;T>1?(x=m+(T-1)*7,m!==o&&(x-=7-o)):x=m;for(var b=0;b<7&&(i.wnomask[x]=1,x++,i.wdaymask[x]!==e.wkst);b++);}}if(A(e.byweekno,1)){var x=m+y*7;if(m!==o&&(x-=7-o),x<t)for(var p=0;p<7&&(i.wnomask[x]=1,x+=1,i.wdaymask[x]!==e.wkst);p++);}if(m){var O=void 0;if(A(e.byweekno,-1))O=-1;else{var E=xe(be(n-1,1,1)),k=$(7-E.valueOf()+e.wkst,7),C=Me(n-1)?366:365,S=void 0;k>=4?(k=0,S=C+$(E-e.wkst,7)):S=t-m,O=Math.floor(52+$(S,7)/4)}if(A(e.byweekno,O))for(var x=0;x<m;x++)i.wnomask[x]=1}return i}function ya(n){var e=Me(n)?366:365,a=be(n,1,1),t=xe(a);return e===365?{mmask:ea,mdaymask:ia,nmdaymask:da,wdaymask:vt.slice(t),mrange:ca}:{mmask:ta,mdaymask:ra,nmdaymask:sa,wdaymask:vt.slice(t),mrange:ua}}function ha(n,e,a,t,r,l){var s={lastyear:n,lastmonth:e,nwdaymask:[]},i=[];if(l.freq===g.YEARLY)if(oe(l.bymonth))i=[[0,a]];else for(var o=0;o<l.bymonth.length;o++)e=l.bymonth[o],i.push(t.slice(e-1,e+1));else l.freq===g.MONTHLY&&(i=[t.slice(e-1,e+1)]);if(oe(i))return s;s.nwdaymask=Y(0,a);for(var o=0;o<i.length;o++)for(var c=i[o],m=c[0],h=c[1]-1,d=0;d<l.bynweekday.length;d++){var y=void 0,p=l.bynweekday[d],T=p[0],x=p[1];x<0?(y=h+(x+1)*7,y-=$(r[y]-T,7)):(y=m+(x-1)*7,y+=$(7-r[y]+T,7)),m<=y&&y<=h&&(s.nwdaymask[y]=1)}return s}function ma(n,e){e===void 0&&(e=0);var a=n%19,t=Math.floor(n/100),r=n%100,l=Math.floor(t/4),s=t%4,i=Math.floor((t+8)/25),o=Math.floor((t-i+1)/3),c=Math.floor(19*a+t-l-o+15)%30,m=Math.floor(r/4),h=r%4,d=Math.floor(32+2*s+2*m-c-h)%7,y=Math.floor((a+11*c+22*d)/451),p=Math.floor((c+d-7*y+114)/31),T=(c+d-7*y+114)%31+1,x=Date.UTC(n,p-1,T+e),b=Date.UTC(n,0,1);return[Math.ceil((x-b)/(1e3*60*60*24))]}var va=function(){function n(e){this.options=e}return n.prototype.rebuild=function(e,a){var t=this.options;if(e!==this.lastyear&&(this.yearinfo=fa(e,t)),j(t.bynweekday)&&(a!==this.lastmonth||e!==this.lastyear)){var r=this.yearinfo,l=r.yearlen,s=r.mrange,i=r.wdaymask;this.monthinfo=ha(e,a,l,s,i,t)}F(t.byeaster)&&(this.eastermask=ma(e,t.byeaster))},Object.defineProperty(n.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yearordinal",{get:function(){return this.yearin Line truncated
`),t=0;t<a.length;){var r=a[t]=a[t].replace(/\s+$/g,"");r?t>0&&r[0]===" "?(a[t-1]+=r.slice(1),a.splice(t,1)):t+=1:a.splice(t,1)}return a}function Oa(n){n.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function gt(n,e){return Oa(e),n.split(",").map(function(a){return at(a)})}function kt(n){var e=this;return function(a){if(a!==void 0&&(e["_".concat(n)]=a),e["_".concat(n)]!==void 0)return e["_".concat(n)];for(var t=0;t<e._rrule.length;t++){var r=e._rrule[t].origOptions[n];if(r)return r}}}var Ua=function(n){rt(e,n);function e(a){a===void 0&&(a=!1);var t=n.call(this,{},a)||this;return t.dtstart=kt.apply(t,["dtstart"]),t.tzid=kt.apply(t,["tzid"]),t._rrule=[],t._rdate=[],t._exrule=[],t._exdate=[],t}return e.prototype._iter=function(a){return Da(a,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},e.prototype.rrule=function(a){Dt(a,this._rrule)},e.prototype.exrule=function(a){Dt(a,this._exrule)},e.prototype.rdate=function(a){_t(a,this._rdate)},e.prototype.exdate=function(a){_t(a,this._exdate)},e.prototype.rrules=function(){return this._rrule.map(function(a){return wt(a.toString())})},e.prototype.exrules=function(){return this._exrule.map(function(a){return wt(a.toString())})},e.prototype.rdates=function(){return this._rdate.map(function(a){return new Date(a.getTime())})},e.prototype.exdates=function(){return this._exdate.map(function(a){return new Date(a.getTime())})},e.prototype.valueOf=function(){var a=[];return!this._rrule.length&&this._dtstart&&(a=a.concat($e({dtstart:this._dtstart}))),this._rrule.forEach(function(t){a=a.concat(t.toString().split(`
`))}),this._exrule.forEach(function(t){a=a.concat(t.toString().split(`
`).map(function(r){return r.replace(/^RRULE:/,"EXRULE:")}).filter(function(r){return!/^DTSTART/.test(r)}))}),this._rdate.length&&a.push(Et("RDATE",this._rdate,this.tzid())),this._exdate.length&&a.push(Et("EXDATE",this._exdate,this.tzid())),a},e.prototype.toString=function(){return this.valueOf().join(`
`)},e.prototype.clone=function(){var a=new e(!!this._cache);return this._rrule.forEach(function(t){return a.rrule(t.clone())}),this._exrule.forEach(function(t){return a.exrule(t.clone())}),this._rdate.forEach(function(t){return a.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return a.exdate(new Date(t.getTime()))}),a},e}(g);function Dt(n,e){if(!(n instanceof g))throw new TypeError(String(n)+" is not RRule instance");A(e.map(String),String(n))||e.push(n)}function _t(n,e){if(!(n instanceof Date))throw new TypeError(String(n)+" is not Date instance");A(e.map(Number),Number(n))||(e.push(n),Ne(e))}function Et(n,e,a){var t=!a||a.toUpperCase()==="UTC",r=t?"".concat(n,":"):"".concat(n,";TZID=").concat(a,":"),l=e.map(function(s){return nt(s.valueOf(),t)}).join(",");return"".concat(r).concat(l)}const Ma={components:{calendarCreateSelect:Yt,DialogCreate:Mt,TimeSelect:kn,UploadingFile:xn,ReminderEvent:Cn,PeriodEvents:Mn},props:{eventCalendar:{type:Object,default:()=>{}}},setup(n,{emit:e}){const a=U(null),t=H({get:()=>n.eventCalendar,set:w=>e("update:eventCalendar",w)}),r=[{type:"Не повторять",rule:{},id:1},{type:"Каждый день",rule:{freq:3},id:2},{type:"Каждую неделю",rule:{freq:2},id:3},{type:"Каждый месяц",rule:{freq:1},id:4},{type:"Каждый год",rule:{freq:0},id:5}],l=H({get(){let w="";if(t.value.event.period!=null){let _=JSON.parse(t.value.event.period);_!=null&&(s(_.origOptions),r.findIndex(M=>M.rule.freq==_.origOptions.freq),w=r[r.findIndex(M=>M.rule.freq==_.origOptions.freq)])}else w=r[0].type;return k(),w},set(w){s(w.rule)}}),s=w=>{let _;w.freq==3&&(_=new g({...w,dtstart:new Date(t.value.event.date_start),until:new Date(t.value.event.date_end)})),w.freq==2&&(_=new g({...w,dtstart:new Date(t.value.event.date_start),byweekday:Ce()})),w.freq==1&&(_=new g({...w,bymonthday:me(),dtstart:new Date(t.value.event.date_start)})),w.freq==0&&(_=new g({...w,bymonthday:Ve(),dtstart:new Date(t.value.event.date_start),bymonth:ve()})),Object.keys(w).length==0?t.value.event.period=null:t.value.event.period=JSON.stringify(_)},i=[g.SU,g.MO,g.TU,g.WE,g.TH,g.FR,g.SA],o=St().alert,c=w=>!!w||"Поле обязательно",m={name:[w=>c(w)]},h=U([]);de.get("api/calendar_of_events/get_employees/").then(w=>{h.value=w.data.filter(_=>_.employees.length>0)});const d=Ae(),y=H({get(){let w=[],_=t.value.mycalendars.findIndex(M=>M.id==b.value[0].id);return h.value.forEach(M=>{let I={...M};I.employees=M.employees.filter(R=>((R.id==d.user.is_idEmployee||t.value.event.participant.some(re=>R.id==re))&&(R.selected=!0),t.value.mycalendars[_].participant.some(re=>re.id===R.id))),I.employees.length>0&&w.push(I)}),w}}),p=w=>{de.delete(`api/calendar_of_events/my_events/?delid=${w}`).then(_=>{o.alert=!0,o.text=_.data.mess,o.ico="mdi-check",o.color="orange-accent-1",e("getCalendar")}),e("closeDialog")},T=U([]),x=w=>{T.value=w},b=H({get(){let w=[];if(t.value.event.calendar){let _=t.value.mycalendars.findIndex(M=>M.id==t.value.event.calendar);w.push({cl_name:t.value.mycalendars[_].cl_name,cl_color:t.value.mycalendars[_].cl_color,id:t.value.mycalendars[_].id})}else w.push({cl_name:t.value.mycalendars[0].cl_name,cl_color:t.value.mycalendars[0].cl_color,id:t.value.mycalendars[0].id});return t.value.event.calendar==null&&(t.value.event.calendar=t.value.mycalendars[0].id),w},set(w){t.value.event.calendar=w.value}}),O=U(""),E=U(!1),k=()=>{t.value.event.hasOwnProperty("id")?(O.value="Редактирование события",E.value=!1):(O.value="Новое событие",E.value=!0)},C=w=>{w.staff.forEach(_=>{if(_.selected==!0&&!t.value.event.participant.includes(_.id))t.value.event.participant.push(_.id);else{let M=t.value.event.participant.findIndex(I=>I==_.id);M!=-1&&t.value.event.participant.splice(M,1)}})},S=H({get(){return Tt(new Date(t.value.event.date_start))},set(w){w.split(".")}}),W=U(!1),Re=w=>{if(w){let _=new FormData;_.append("event",JSON.stringify({...t.value.event})),t.value.event.files!==null&&T.value.forEach(M=>_.append("files",M)),de.post("api/calendar_of_events/my_events/",_).then(M=>{o.alert=!0,o.text=M.data.mess,o.ico="mdi-check",o.color="green-darken-4",e("getCalendar"),e("closeDialog")})}},Ce=()=>{const w=new Date(t.value.event.date_start),_=new Date(t.value.event.date_end);let M=w.getDay(),I=_.getDay();const R=[];if(w.getDay()>_.getDay()){I=6;for(let J=M;J<=I;J++)R.push(J)}if(w.getDay()!=_.getDay()&&w.getDay()>_.getDay()){M=0;for(let J=M;J<=_.getDay();J++)R.push(J)}if(w.getDay()<_.getDay())for(let J=M;J<=_.getDay();J++)R.push(J);w.getDay()==_.getDay()&&R.push(w.getDay());let re=[];return R.forEach(J=>{re.push(i[J])}),re},me=()=>{const w=new Date(t.value.event.date_start),_=new Date(t.value.event.date_end);let M=w.getDate(),I=_.getDate();const R=[];for(let re=M;re<=I;re++)R.push(re);return console.log(R.length,"дни в месяце"),R},Ve=()=>{const w=new Date(t.value.event.date_start),_=new Date(t.value.event.date_end);let M=Fe(w,_),I=[];return M.forEach(R=>I.push Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as T,r as v,f as g,a5 as w,s as r,Q as c,C as i,$ as u,x as t,v as s,E as f,R as _,S as b,t as h,V as x,B as q,y as I,a0 as N,bK as B,c6 as y,F as p,X as D,aV as C,L as F}from"./index-COjDMumS.js";import{V as L}from"./VTextField-BjWksY-K.js";import{V}from"./VContainer-_Rd4jqOY.js";const S={props:{title:{type:String,default:"Не забыть передать тайтл сюда!"},activeTab:{type:Number,default:0},testingCard:{type:Array,default:()=>[{id:1,name:"Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий",type:"test",description:"Краткое описание тестирования",file:"https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg",dateend:new Date,question_count:20,time:20,attemps_number:3},{id:2,name:"Удобство раздела тестирования",type:"test",description:"Опрос среди сотрудников ЦОД МФ",file:"https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg",dateend:new Date,question_count:28,time:15,attemps_number:1}]}},setup(l){const o=v(""),m=g(()=>o.value?l.testingCard.filter(e=>e.name.toLowerCase().includes(o.value.toLowerCase())):l.testingCard),n=g(()=>{let e=[{icon:"mdi-calendar-clock",field:"dateend",color:"teal-darken-1"},{icon:"mdi-clipboard-list-outline",field:"question_count",color:"teal-darken-1"},{icon:"mdi-timer-outline",field:"time",color:"teal-darken-1"},{icon:"mdi-fire",field:"attemps_number",color:"#FF9800"}];return l.activeTab==0?e:e.splice(1,2)});return{search:o,searchTest:m,momenter:(e,a)=>a=="dateend"?"до "+B(e).format("DD.MM.YYYY, HH:mm"):a=="question_count"?e+y(e,[" вопрос"," вопроса"," вопросов"]):a=="time"?e+y(e,[" минута"," минуты"," минут"]):e,activeTabIcon:n,baseURL:w}}},Y={class:"my-4 text-h5"},j={class:"d-flex flex-column justify-center flex-grow-1"},R={class:"text-body-1 font-weight-medium mb-2"},z={class:"text-body-1 text-disabled mb-2"},E={class:"d-flex ga-4"},H={class:"ml-1"};function M(l,o,m,n,k,e){return r(),c(_,null,[i("div",Y,u(m.title),1),t(V,{fluid:!0},{default:s(()=>[t(f,null,{default:s(()=>[t(L,{modelValue:n.search,"onUpdate:modelValue":o[0]||(o[0]=a=>n.search=a),"append-inner-icon":"mdi-magnify",label:"Найти тестирование по названию",variant:"solo","onClick:appendInner":n.searchTest,clearable:""},null,8,["modelValue","onClick:appendInner"])]),_:1})]),_:1}),(r(!0),c(_,null,b(n.searchTest,a=>(r(),h(F,{key:a.id,class:"my-2 border-sm"},{default:s(()=>[t(f,{class:"pa-2"},{default:s(()=>[t(p,{cols:"1"},{default:s(()=>[t(D,{height:"125",src:a.file},null,8,["src"])]),_:2},1024),t(p,{cols:"auto",class:"d-flex flex-grow-1"},{default:s(()=>[i("div",j,[i("div",R,u(a.name),1),i("div",z,u(a.description),1),i("div",E,[C(l.$slots,"results"),(r(!0),c(_,null,b(n.activeTabIcon,d=>(r(),c("div",null,[t(x,{color:d.color,icon:d.icon,size:"large"},null,8,["color","icon"]),i("span",H,u(n.momenter(a[d.field],d.field)),1)]))),256))])])]),_:2},1024),t(p,{cols:"auto",class:"align-self-center"},{default:s(()=>[C(l.$slots,"buttons")]),_:3})]),_:2},1024)]),_:2},1024))),128)),n.searchTest.length?N("",!0):(r(),h(V,{key:0,fluid:!0},{default:s(()=>[t(f,{class:"align-center flex-column"},{default:s(()=>[t(x,{icon:"mdi-note-off-outline",color:"grey-lighten-1",size:"x-large"}),t(q,{class:"text-h4 text-grey-lighten-1"},{default:s(()=>o[1]||(o[1]=[I("Данные не найдены")])),_:1})]),_:1})]),_:1}))],64)}const O=T(S,[["render",M]]);export{O as C};
+372
View File
@@ -0,0 +1,372 @@
import{r as yd,s as q,Q as Yl,x as j,v as x,F as fl,L as JZ,R as od,S as dU,G as LR,t as Bl,y as Zc,A as oa,a0 as pF,E as lU,C as jd,$ as sZ,af as mV,am as Em,w as Vi,e as $h,b8 as AR,b9 as wm,al as Cm,f as le,aV as _R,aX as rm,ba as ra,u as xa,X as qR,M as xm,T as IR,U as Pn,b0 as Qi,a5 as de,_ as Ue,bb as Mc,B as $R,aN as jm,J as Om,H as aQ,I as WQ,D as gm,Z as Km,bc as sQ,a2 as lN,V as dN,b3 as Hm,bd as vm,aT as Pm}from"./index-COjDMumS.js";import{P as fm}from"./PatternTabs-Cu_8Xs49.js";import{V as Am,a as ii}from"./VWindowItem-rSD9c8zs.js";import{V as _m}from"./VSpacer-Q-SG7gn8.js";import{V as te}from"./VContainer-_Rd4jqOY.js";import{V as qm,a as $m,b as l2}from"./VRadioGroup-CItD9UOf.js";import{V as UN,a as tN,b as ZN,c as FN}from"./VExpansionPanels-AiedkAuP.js";import{V as cN}from"./VList-CwTaIQsW.js";import"./VTabs-BH9jz0Y6.js";import"./ssrBoot-Me6CX2Hk.js";import"./VCheckboxBtn-MbVoU8jL.js";import"./VSelectionControl-BK9dDQDu.js";import"./VInput-Bmr5cjyQ.js";const d2={__name:"TestSafety",props:{data:Array},setup(U){const l=yd([{question:"Вопрос 1",answers:["1","2","3","4"]},{question:"Вопрос 2",answers:["Rer","LoL","Fort","FullG"]},{checkQuestion:"Вопрос с чексбоксом",answers:["Кукумбер","Сикельд"]}]),d=yd(""),t=yd([]),Z=yd([]),F=yd(0);return(c,a)=>(q(),Yl(od,null,[j(lU,null,{default:x(()=>[j(fl,{cols:"12"},{default:x(()=>[j(JZ,null,{default:x(()=>[j(Am,{modelValue:F.value,"onUpdate:modelValue":a[2]||(a[2]=W=>F.value=W)},{default:x(()=>[(q(!0),Yl(od,null,dU(l.value,(W,s)=>(q(),Bl(ii,{key:s},{default:x(()=>[W.question?(q(),Bl(JZ,{key:0,title:W.question},{default:x(()=>[j(qm,{modelValue:d.value,"onUpdate:modelValue":a[0]||(a[0]=V=>d.value=V),label:"Выберите вариант ответа"},{default:x(()=>[(q(!0),Yl(od,null,dU(W.answers,V=>(q(),Bl($m,{label:V,value:V},null,8,["label","value"]))),256))]),_:2},1032,["modelValue"])]),_:2},1032,["title"])):pF("",!0),W.checkQuestion?(q(),Bl(JZ,{key:1,title:W.checkQuestion},{default:x(()=>[(q(!0),Yl(od,null,dU(W.answers,V=>(q(),Bl(l2,{modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=Q=>t.value=Q),label:V,value:V},null,8,["modelValue","label","value"]))),256))]),_:2},1032,["title"])):pF("",!0)]),_:2},1024))),128))]),_:1},8,["modelValue"]),j(LR,null,{default:x(()=>[F.value>0?(q(),Bl(oa,{key:0,variant:"text",onClick:a[3]||(a[3]=W=>F.value--)},{default:x(()=>a[5]||(a[5]=[Zc(" Back ")])),_:1})):pF("",!0),j(_m),F.value<l.value.length?(q(),Bl(oa,{key:1,variant:"text",onClick:a[4]||(a[4]=W=>F.value++)},{default:x(()=>a[6]||(a[6]=[Zc(" Next ")])),_:1})):pF("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),j(lU,null,{default:x(()=>[j(fl,null,{default:x(()=>[j(JZ,{title:"Результат"},{default:x(()=>[j(te,null,{default:x(()=>[jd("p",null,"Количество баллов: "+sZ(Z.value),1)]),_:1})]),_:1})]),_:1})]),_:1})],64))}};var U2=Object.defineProperty,Ze=U=>{throw TypeError(U)},t2=(U,l,d)=>l in U?U2(U,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):U[l]=d,f=(U,l,d)=>t2(U,typeof l!="symbol"?l+"":l,d),DR=(U,l,d)=>l.has(U)||Ze("Cannot "+d),n=(U,l,d)=>(DR(U,l,"read from private field"),d?d.call(U):l.get(U)),b=(U,l,d)=>l.has(U)?Ze("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(U):l.set(U,d),R=(U,l,d,t)=>(DR(U,l,"write to private field"),l.set(U,d),d),h=(U,l,d)=>(DR(U,l,"access private method"),d),kd=(U,l,d,t)=>({set _(Z){R(U,l,Z)},get _(){return n(U,l,t)}}),Z2={9306:(U,l,d)=>{var t=d(4901),Z=d(6823),F=TypeError;U.exports=function(c){if(t(c))return c;throw new F(Z(c)+" is not a function")}},3506:(U,l,d)=>{var t=d(3925),Z=String,F=TypeError;U.exports=function(c){if(t(c))return c;throw new F("Can't set "+Z(c)+" as a prototype")}},7080:(U,l,d)=>{var t=d(4402).has;U.exports=function(Z){return t(Z),Z}},679:(U,l,d)=>{var t=d(1625),Z=TypeError;U.exports=function(F,c){if(t(c,F))return F;throw new Z("Incorrect invocation")}},8551:(U,l,d)=>{var t=d(34),Z=String,F=TypeError;U.exports=function(c){if(t(c))return c;throw new F(Z(c)+" is not an object")}},7811:U=>{U.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394:(U,l,d)=>{var t=d(4576),Z=d(6706),F=d(2195),c=t.ArrayBuffer,a=t.TypeError;U.exports=c&&Z(c.prototype,"byteLength","get")||function(W){if(F(W)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return W.byteLength}},3238:(U,l,d)=>{var t=d(4576),Z=d(7476),F=d(7394),c=t.ArrayBuffer,a=c&&c.prototype,W=a&&Z(a.slice);U.exports=function(s){if(F(s)!==0||!W)return!1;try{return W(s,0,0),!1}catch{return!0}}},5169:(U,l,d)=>{var t=d(3238),Z=TypeError;U.exports=function(F){if(t(F))throw new Z("ArrayBuffer is detached");return F}},5636:(U,l,d)=>{var t=d(4576),Z=d(9504),F=d(6706),c=d(7696),a=d(5169),W=d(7394),s=d(4483),V=d(1548),Q=t.structuredClone,i=t.ArrayBuffer,N=t.DataView,e=Math.min,m=i.prototype,M=N.prototype,J=Z(m.slice),S=F(m,"resizable","get"),G=F(m,"maxByteLength","get"),X=Z(M.getInt8),u=Z(M.setInt8);U.exports=(V||s)&&function(p,Y,o){var T=W(p),B=Y===void 0?T:c(Y),y=!S||!S(p),w;if(Line truncated
`,"\\r":"\r","\\t":" "},i=/^[\da-f]{4}$/i,N=/^[\u0000-\u001F]$/;U.exports=function(e,m){for(var M=!0,J="";m<e.length;){var S=W(e,m);if(S==="\\"){var G=s(e,m,m+2);if(Z(Q,G))J+=Q[G],m+=2;else if(G==="\\u"){m+=2;var X=s(e,m,m+4);if(!V(i,X))throw new F("Bad Unicode escape at: "+m);J+=a(c(X,16)),m+=4}else throw new F('Unknown escape sequence: "'+G+'"')}else if(S==='"'){M=!1,m++;break}else{if(V(N,S))throw new F("Bad control character in string literal at: "+m);J+=S,m++}}if(M)throw new F("Unterminated string at: "+m);return{value:J,end:m}}},1103:U=>{U.exports=function(l){try{return{error:!1,value:l()}}catch(d){return{error:!0,value:d}}}},7750:(U,l,d)=>{var t=d(4117),Z=TypeError;U.exports=function(F){if(t(F))throw new Z("Can't call method on "+F);return F}},9286:(U,l,d)=>{var t=d(4402),Z=d(8469),F=t.Set,c=t.add;U.exports=function(a){var W=new F;return Z(a,function(s){c(W,s)}),W}},3440:(U,l,d)=>{var t=d(7080),Z=d(4402),F=d(9286),c=d(5170),a=d(3789),W=d(8469),s=d(507),V=Z.has,Q=Z.remove;U.exports=function(i){var N=t(this),e=a(i),m=F(N);return c(N)<=e.size?W(N,function(M){e.includes(M)&&Q(m,M)}):s(e.getIterator(),function(M){V(N,M)&&Q(m,M)}),m}},4402:(U,l,d)=>{var t=d(9504),Z=Set.prototype;U.exports={Set,add:t(Z.add),has:t(Z.has),remove:t(Z.delete),proto:Z}},8750:(U,l,d)=>{var t=d(7080),Z=d(4402),F=d(5170),c=d(3789),a=d(8469),W=d(507),s=Z.Set,V=Z.add,Q=Z.has;U.exports=function(i){var N=t(this),e=c(i),m=new s;return F(N)>e.size?W(e.getIterator(),function(M){Q(N,M)&&V(m,M)}):a(N,function(M){e.includes(M)&&V(m,M)}),m}},4449:(U,l,d)=>{var t=d(7080),Z=d(4402).has,F=d(5170),c=d(3789),a=d(8469),W=d(507),s=d(9539);U.exports=function(V){var Q=t(this),i=c(V);if(F(Q)<=i.size)return a(Q,function(e){if(i.includes(e))return!1},!0)!==!1;var N=i.getIterator();return W(N,function(e){if(Z(Q,e))return s(N,"normal",!1)})!==!1}},3838:(U,l,d)=>{var t=d(7080),Z=d(5170),F=d(8469),c=d(3789);U.exports=function(a){var W=t(this),s=c(a);return Z(W)>s.size?!1:F(W,function(V){if(!s.includes(V))return!1},!0)!==!1}},8527:(U,l,d)=>{var t=d(7080),Z=d(4402).has,F=d(5170),c=d(3789),a=d(507),W=d(9539);U.exports=function(s){var V=t(this),Q=c(s);if(F(V)<Q.size)return!1;var i=Q.getIterator();return a(i,function(N){if(!Z(V,N))return W(i,"normal",!1)})!==!1}},8469:(U,l,d)=>{var t=d(9504),Z=d(507),F=d(4402),c=F.Set,a=F.proto,W=t(a.forEach),s=t(a.keys),V=s(new c).next;U.exports=function(Q,i,N){return N?Z({iterator:s(Q),next:V},i):W(Q,i)}},4916:(U,l,d)=>{var t=d(7751),Z=function(F){return{size:F,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};U.exports=function(F){var c=t("Set");try{new c()[F](Z(0));try{return new c()[F](Z(-1)),!1}catch{return!0}}catch{return!1}}},5170:(U,l,d)=>{var t=d(6706),Z=d(4402);U.exports=t(Z.proto,"size","get")||function(F){return F.size}},3650:(U,l,d)=>{var t=d(7080),Z=d(4402),F=d(9286),c=d(3789),a=d(507),W=Z.add,s=Z.has,V=Z.remove;U.exports=function(Q){var i=t(this),N=c(Q).getIterator(),e=F(i);return a(N,function(m){s(i,m)?V(e,m):W(e,m)}),e}},4204:(U,l,d)=>{var t=d(7080),Z=d(4402).add,F=d(9286),c=d(3789),a=d(507);U.exports=function(W){var s=t(this),V=c(W).getIterator(),Q=F(s);return a(V,function(i){Z(Q,i)}),Q}},6119:(U,l,d)=>{var t=d(5745),Z=d(3392),F=t("keys");U.exports=function(c){return F[c]||(F[c]=Z(c))}},7629:(U,l,d)=>{var t=d(6395),Z=d(4576),F=d(9433),c="__core-js_shared__",a=U.exports=Z[c]||F(c,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:t?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(U,l,d)=>{var t=d(7629);U.exports=function(Z,F){return t[Z]||(t[Z]=F||{})}},1548:(U,l,d)=>{var t=d(4576),Z=d(9039),F=d(9519),c=d(4215),a=t.structuredClone;U.exports=!!a&&!Z(function(){if(c==="DENO"&&F>92||c==="NODE"&&F>94||c==="BROWSER"&&F>97)return!1;var W=new ArrayBuffer(8),s=a(W,{transfer:[W]});return W.byteLength!==0||s.byteLength!==8})},4495:(U,l,d)=>{var t=d(9519),Z=d(9039),F=d(4576),c=F.String;U.exports=!!Object.getOwnPropertySymbols&&!Z(function(){var a=Symbol("symbol detection");return!c(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&t&&t<41})},5610:(U,l,d)=>{var t=d(1291),Z=Math.max,F=Math.min;U.exports=function(c,a){var W=t(c);return W<0?Z(W+a,0):F(W,a)}},5854:(U,l,d)=>{var t=d(2777),Z=TypeError;U.exports=function(F){var c=t(F,"number");if(typeof c=="number")throw new Z("Can't convert number to bigint");return BigInt(c)}},7696:(U,l,d)=>{var t=d(1291),Z=d(8014),F=RangeError;U.exports=function(c){if(c===void 0)return 0;var a=t(c),W=Z(a);if(a!==W)throw new F("Wrong length or index");return W}},5397:(U,l,d)=>{var t=d(7055),Z=d(7750);U.exports=function(F){return t(Z(F))}},1291:(U,l,d)=>{var t=d(741);U.exports=function(Z){var F=+Z;return F!==F||F===0?0:t(F)}},8014:(U,l,d)=>{var t=d(1291),Z=Math.min;U.exports=function(F){var c=t(F);return c>0?Z(c,9007199254740991):0}},8981:(U,l,d)=>{var t=d(7750),Z=Object;U.exports=function(F){return Z(t(F))}},95 Line truncated
`);return l.join("")}}function dn(U,l){try{const{protocol:d}=l?new URL(U,l):new URL(U);return d==="http:"||d==="https:"}catch{return!1}}function oU(U){U.preventDefault()}function UU(U){U.preventDefault(),U.stopPropagation()}var eQ,Gc;let ne=(eQ=class{static toDateObject(U){if(!U||typeof U!="string")return null;n(this,Gc)||R(this,Gc,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const l=n(this,Gc).exec(U);if(!l)return null;const d=parseInt(l[1],10);let t=parseInt(l[2],10);t=t>=1&&t<=12?t-1:0;let Z=parseInt(l[3],10);Z=Z>=1&&Z<=31?Z:1;let F=parseInt(l[4],10);F=F>=0&&F<=23?F:0;let c=parseInt(l[5],10);c=c>=0&&c<=59?c:0;let a=parseInt(l[6],10);a=a>=0&&a<=59?a:0;const W=l[7]||"Z";let s=parseInt(l[8],10);s=s>=0&&s<=23?s:0;let V=parseInt(l[9],10)||0;return V=V>=0&&V<=59?V:0,W==="-"?(F+=s,c+=V):W==="+"&&(F-=s,c-=V),new Date(Date.UTC(d,t,Z,F,c,a))}},Gc=new WeakMap,b(eQ,Gc),eQ);function S2(U,{scale:l=1,rotation:d=0}){const{width:t,height:Z}=U.attributes.style,F=[0,0,parseInt(t),parseInt(Z)];return new Da({viewBox:F,userUnit:1,scale:l,rotation:d})}function xR(U){if(U.startsWith("#")){const l=parseInt(U.slice(1),16);return[(l&16711680)>>16,(l&65280)>>8,l&255]}return U.startsWith("rgb(")?U.slice(4,-1).split(",").map(l=>parseInt(l)):U.startsWith("rgba(")?U.slice(5,-1).split(",").map(l=>parseInt(l)).slice(0,3):(ll(`Not a valid color format: "${U}"`),[0,0,0])}function T2(U){const l=document.createElement("span");l.style.visibility="hidden",document.body.append(l);for(const d of U.keys()){l.style.color=d;const t=window.getComputedStyle(l).color;U.set(d,xR(t))}l.remove()}function Xl(U){const{a:l,b:d,c:t,d:Z,e:F,f:c}=U.getTransform();return[l,d,t,Z,F,c]}function LU(U){const{a:l,b:d,c:t,d:Z,e:F,f:c}=U.getTransform().invertSelf();return[l,d,t,Z,F,c]}function DF(U,l,d=!1,t=!0){if(l instanceof Da){const{pageWidth:Z,pageHeight:F}=l.rawDims,{style:c}=U,a=zd.isCSSRoundSupported,W=`var(--scale-factor) * ${Z}px`,s=`var(--scale-factor) * ${F}px`,V=a?`round(down, ${W}, var(--scale-round-x, 1px))`:`calc(${W})`,Q=a?`round(down, ${s}, var(--scale-round-y, 1px))`:`calc(${s})`;!d||l.rotation%180===0?(c.width=V,c.height=Q):(c.width=Q,c.height=V)}t&&U.setAttribute("data-main-rotation",l.rotation)}let jR=class{constructor(){const U=window.devicePixelRatio||1;this.sx=U,this.sy=U}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}};var _Z,a0,lt,C0,jW,fn,hi,ae,qU,VN,QN,JV,We,ei;const OW=class gW{constructor(l){b(this,qU),b(this,_Z,null),b(this,a0,null),b(this,lt),b(this,C0,null),b(this,jW,null),R(this,lt,l),n(gW,fn)||R(gW,fn,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const l=R(this,_Z,document.createElement("div"));l.classList.add("editToolbar","hidden"),l.setAttribute("role","toolbar");const d=n(this,lt)._uiManager._signal;l.addEventListener("contextmenu",oU,{signal:d}),l.addEventListener("pointerdown",h(gW,hi,ae),{signal:d});const t=R(this,C0,document.createElement("div"));t.className="buttons",l.append(t);const Z=n(this,lt).toolbarPosition;if(Z){const{style:F}=l,c=n(this,lt)._uiManager.direction==="ltr"?1-Z[0]:Z[0];F.insetInlineEnd=`${100*c}%`,F.top=`calc(${100*Z[1]}% + var(--editor-toolbar-vert-offset))`}return h(this,qU,We).call(this),l}get div(){return n(this,_Z)}hide(){var l;n(this,_Z).classList.add("hidden"),(l=n(this,a0))==null||l.hideDropdown()}show(){var l;n(this,_Z).classList.remove("hidden"),(l=n(this,jW))==null||l.shown()}async addAltText(l){const d=await l.render();h(this,qU,JV).call(this,d),n(this,C0).prepend(d,n(this,qU,ei)),R(this,jW,l)}addColorPicker(l){R(this,a0,l);const d=l.renderButton();h(this,qU,JV).call(this,d),n(this,C0).prepend(d,n(this,qU,ei))}remove(){var l;n(this,_Z).remove(),(l=n(this,a0))==null||l.destroy(),R(this,a0,null)}};_Z=new WeakMap,a0=new WeakMap,lt=new WeakMap,C0=new WeakMap,jW=new WeakMap,fn=new WeakMap,hi=new WeakSet,ae=function(U){U.stopPropagation()},qU=new WeakSet,VN=function(U){n(this,lt)._focusEventsAllowed=!1,UU(U)},QN=function(U){n(this,lt)._focusEventsAllowed=!0,UU(U)},JV=function(U){const l=n(this,lt)._uiManager._signal;U.addEventListener("focusin",h(this,qU,VN).bind(this),{capture:!0,signal:l}),U.addEventListener("focusout",h(this,qU,QN).bind(this),{capture:!0,signal:l}),U.addEventListener("contextmenu",oU,{signal:l})},We=function(){const{editorType:U,_uiManager:l}=n(this,lt),d=document.createElement("button");d.className="delete",d.tabIndex=0,d.setAttribute("data-l10n-id",n(OW,fn)[U]),h(this,qU,JV).call(this,d),d.addEventListener("click",t=>{l.delete()},{signal:l._signal}),n(this,C0).append(d)},ei=function(){const U=document.createElement("div");return U.className="divider",U},b(OW,hi),b(OW,fn,null);let X2=OW;var KW,GF,r0,An,se,Ve,iN;class u2{constructor(l){b(this,An),b(this,KW,null),b(this,GF,null),b(this,r0),R(this,r0,l)}show(l,d,t){const[Z,F]=h(th Line truncated
`))||null;s&&this.data.comb&&(s=s.replaceAll(/\s+/g,""));const V={userValue:a,formattedValue:s,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(F=document.createElement("textarea"),F.textContent=s??a,this.data.doNotScroll&&(F.style.overflowY="hidden")):(F=document.createElement("input"),F.type="text",F.setAttribute("value",s??a),this.data.doNotScroll&&(F.style.overflowX="hidden")),this.data.hasOwnCanvas&&(F.hidden=!0),EF.add(F),F.setAttribute("data-element-id",Z),F.disabled=this.data.readOnly,F.name=this.data.fieldName,F.tabIndex=wa,this._setRequired(F,this.data.required),W&&(F.maxLength=W),F.addEventListener("input",i=>{t.setValue(Z,{value:i.target.value}),this.setPropertyOnSiblings(F,"value",i.target.value,"value"),V.formattedValue=null}),F.addEventListener("resetform",i=>{const N=this.data.defaultFieldValue??"";F.value=V.userValue=N,V.formattedValue=null});let Q=i=>{const{formattedValue:N}=V;N!=null&&(i.target.value=N),i.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){F.addEventListener("focus",N=>{var e;if(V.focused)return;const{target:m}=N;V.userValue&&(m.value=V.userValue),V.lastCommittedValue=m.value,V.commitKey=1,(e=this.data.actions)!=null&&e.Focus||(V.focused=!0)}),F.addEventListener("updatefromsandbox",N=>{this.showElementAndHideCanvas(N.target);const e={value(m){V.userValue=m.detail.value??"",t.setValue(Z,{value:V.userValue.toString()}),m.target.value=V.userValue},formattedValue(m){const{formattedValue:M}=m.detail;V.formattedValue=M,M!=null&&m.target!==document.activeElement&&(m.target.value=M),t.setValue(Z,{formattedValue:M})},selRange(m){m.target.setSelectionRange(...m.detail.selRange)},charLimit:m=>{var M;const{charLimit:J}=m.detail,{target:S}=m;if(J===0){S.removeAttribute("maxLength");return}S.setAttribute("maxLength",J);let G=V.userValue;!G||G.length<=J||(G=G.slice(0,J),S.value=V.userValue=G,t.setValue(Z,{value:G}),(M=this.linkService.eventBus)==null||M.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Z,name:"Keystroke",value:G,willCommit:!0,commitKey:1,selStart:S.selectionStart,selEnd:S.selectionEnd}}))}};this._dispatchEventFromSandbox(e,N)}),F.addEventListener("keydown",N=>{var e;V.commitKey=1;let m=-1;if(N.key==="Escape"?m=0:N.key==="Enter"&&!this.data.multiLine?m=2:N.key==="Tab"&&(V.commitKey=3),m===-1)return;const{value:M}=N.target;V.lastCommittedValue!==M&&(V.lastCommittedValue=M,V.userValue=M,(e=this.linkService.eventBus)==null||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Z,name:"Keystroke",value:M,willCommit:!0,commitKey:m,selStart:N.target.selectionStart,selEnd:N.target.selectionEnd}}))});const i=Q;Q=null,F.addEventListener("blur",N=>{var e,m;if(!V.focused||!N.relatedTarget)return;(e=this.data.actions)!=null&&e.Blur||(V.focused=!1);const{value:M}=N.target;V.userValue=M,V.lastCommittedValue!==M&&((m=this.linkService.eventBus)==null||m.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Z,name:"Keystroke",value:M,willCommit:!0,commitKey:V.commitKey,selStart:N.target.selectionStart,selEnd:N.target.selectionEnd}})),i(N)}),(d=this.data.actions)!=null&&d.Keystroke&&F.addEventListener("beforeinput",N=>{var e;V.lastCommittedValue=null;const{data:m,target:M}=N,{value:J,selectionStart:S,selectionEnd:G}=M;let X=S,u=G;switch(N.inputType){case"deleteWordBackward":{const p=J.substring(0,S).match(/\w*[^\w]*$/);p&&(X-=p[0].length);break}case"deleteWordForward":{const p=J.substring(S).match(/^[^\w]*\w*/);p&&(u+=p[0].length);break}case"deleteContentBackward":S===G&&(X-=1);break;case"deleteContentForward":S===G&&(u+=1);break}N.preventDefault(),(e=this.linkService.eventBus)==null||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Z,name:"Keystroke",value:J,change:m||"",willCommit:!1,selStart:X,selEnd:u}})}),this._setEventListeners(F,V,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],N=>N.target.value)}if(Q&&F.addEventListener("blur",Q),this.data.comb){const i=(this.data.rect[2]-this.data.rect[0])/W;F.classList.add("comb"),F.style.letterSpacing=`calc(${i}px * var(--scale-factor) - 1ch)`}}else F=document.createElement("div"),F.textContent=this.data.fieldValue,F.style.verticalAlign="middle",F.style.display="table-cell",this.data.hasOwnCanvas&&(F.hidden=!0);return this._setTextStyle(F),this._setBackgroundColor(F),this._setDefaultPropertiesFromJS(F),this.container.append(F),this.container}}class vM extends wF{constructor(l){super(l,{isRenderable:!!l.data.hasOwnCanvas})}}class PM extends wF{constructor(l){super(l,{isRenderable:l.renderForms})}render(){const l=this.annotationStorage,d=this.data,t=d.id;let Z=l.getValue(t,{value:d.exportValue===d.fieldValue}).value;typeof Z=="string"&&(Z=Z!=="Off",l.setValue(t,{value:Z})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const F=document.createElement("input");return EF.add(F),F.setAttribute("data-element-id",t),F.disabled=d.readOnly,this._setRequired(F,this.data.required),F Line truncated
`))l.push({name:"span",value:Z,attributes:t});return d},Zb=function(U){U.altKey||U.shiftKey||U.ctrlKey||U.metaKey||(U.key==="Enter"||U.key==="Escape"&&n(this,At))&&h(this,Al,yV).call(this)},qN=function(){if(n(this,NZ)!==null)return;const{page:{view:U},viewport:{rawDims:{pageWidth:l,pageHeight:d,pageX:t,pageY:Z}}}=n(this,BV);let F=!!n(this,ta),c=F?n(this,ta):n(this,oV);for(const i of n(this,YV))if(!c||K.intersect(i.data.rect,c)!==null){c=i.data.rect,F=!0;break}const a=K.normalizeRect([c[0],U[3]-c[1]+U[1],c[2],U[3]-c[3]+U[1]]),W=F?c[2]-c[0]+5:0,s=a[0]+W,V=a[1];R(this,NZ,[100*(s-t)/l,100*(V-Z)/d]);const{style:Q}=n(this,wl);Q.left=`${n(this,NZ)[0]}%`,Q.top=`${n(this,NZ)[1]}%`},yV=function(){R(this,At,!n(this,At)),n(this,At)?(h(this,Al,kV).call(this),n(this,wl).addEventListener("click",n(this,Ua)),n(this,wl).addEventListener("keydown",n(this,da))):(h(this,Al,gi).call(this),n(this,wl).removeEventListener("click",n(this,Ua)),n(this,wl).removeEventListener("keydown",n(this,da)))},kV=function(){n(this,HU)||this.render(),this.isVisible?n(this,At)&&n(this,wl).classList.add("focused"):(h(this,Al,qN).call(this),n(this,wl).hidden=!1,n(this,wl).style.zIndex=parseInt(n(this,wl).style.zIndex)+1e3)},gi=function(){n(this,wl).classList.remove("focused"),!(n(this,At)||!this.isVisible)&&(n(this,wl).hidden=!0,n(this,wl).style.zIndex=parseInt(n(this,wl).style.zIndex)-1e3)};class Fb extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),this.textContent=l.data.textContent,this.textPosition=l.data.textPosition,this.annotationEditorType=Zl.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const l=document.createElement("div");l.classList.add("annotationTextContent"),l.setAttribute("role","comment");for(const d of this.textContent){const t=document.createElement("span");t.textContent=d,l.append(t)}this.container.append(l)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var Vs;class qM extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),b(this,Vs,null)}render(){this.container.classList.add("lineAnnotation");const l=this.data,{width:d,height:t}=YZ(l.rect),Z=this.svgFactory.create(d,t,!0),F=R(this,Vs,this.svgFactory.createElement("svg:line"));return F.setAttribute("x1",l.rect[2]-l.lineCoordinates[0]),F.setAttribute("y1",l.rect[3]-l.lineCoordinates[1]),F.setAttribute("x2",l.rect[2]-l.lineCoordinates[2]),F.setAttribute("y2",l.rect[3]-l.lineCoordinates[3]),F.setAttribute("stroke-width",l.borderStyle.width||1),F.setAttribute("stroke","transparent"),F.setAttribute("fill","transparent"),Z.append(F),this.container.append(Z),!l.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return n(this,Vs)}addHighlightArea(){this.container.classList.add("highlightArea")}}Vs=new WeakMap;var Qs;class $M extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),b(this,Qs,null)}render(){this.container.classList.add("squareAnnotation");const l=this.data,{width:d,height:t}=YZ(l.rect),Z=this.svgFactory.create(d,t,!0),F=l.borderStyle.width,c=R(this,Qs,this.svgFactory.createElement("svg:rect"));return c.setAttribute("x",F/2),c.setAttribute("y",F/2),c.setAttribute("width",d-F),c.setAttribute("height",t-F),c.setAttribute("stroke-width",F||1),c.setAttribute("stroke","transparent"),c.setAttribute("fill","transparent"),Z.append(c),this.container.append(Z),!l.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return n(this,Qs)}addHighlightArea(){this.container.classList.add("highlightArea")}}Qs=new WeakMap;var is;class lJ extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),b(this,is,null)}render(){this.container.classList.add("circleAnnotation");const l=this.data,{width:d,height:t}=YZ(l.rect),Z=this.svgFactory.create(d,t,!0),F=l.borderStyle.width,c=R(this,is,this.svgFactory.createElement("svg:ellipse"));return c.setAttribute("cx",d/2),c.setAttribute("cy",t/2),c.setAttribute("rx",d/2-F/2),c.setAttribute("ry",t/2-F/2),c.setAttribute("stroke-width",F||1),c.setAttribute("stroke","transparent"),c.setAttribute("fill","transparent"),Z.append(c),this.container.append(Z),!l.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return n(this,is)}addHighlightArea(){this.container.classList.add("highlightArea")}}is=new WeakMap;var Rs;class cb extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),b(this,Rs,null),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:l,vertices:d,borderStyle:t,popupRef:Z}}=this;if(!d)return this.container;const{width:F,height:c}=YZ(l),a=this.svgFactory.create(F,c,!0);let W=[];for(let V=0,Q=d.length;V<Q;V+=2){const i=d[V]-l[0],N=l[3]-d[V+1];W.push(`${i},${N}`)}W=W.join(" ");const s=R(this,Rs,this.svgFactory.createElement(this.svgElementName));return s.setAttri Line truncated
`);if(!a)return;const W=window.getSelection();if(!W.rangeCount)return;this.editorDiv.normalize(),W.deleteFromDocument();const s=W.getRangeAt(0);if(!a.includes(`
`)){s.insertNode(document.createTextNode(a)),this.editorDiv.normalize(),W.collapseToStart();return}const{startContainer:V,startOffset:Q}=s,i=[],N=[];if(V.nodeType===Node.TEXT_NODE){const M=V.parentElement;if(N.push(V.nodeValue.slice(Q).replaceAll(ms,"")),M!==this.editorDiv){let J=i;for(const S of this.editorDiv.childNodes){if(S===M){J=N;continue}J.push(h(t=Fd,yF,LV).call(t,S))}}i.push(V.nodeValue.slice(0,Q).replaceAll(ms,""))}else if(V===this.editorDiv){let M=i,J=0;for(const S of this.editorDiv.childNodes)J++===Q&&(M=N),M.push(h(Z=Fd,yF,LV).call(Z,S))}R(this,RU,`${i.join(`
`)}${a}${N.join(`
`)}`),h(this,Pd,Js).call(this);const e=new Range;let m=i.reduce((M,J)=>M+J.length,0);for(const{firstChild:M}of this.editorDiv.childNodes)if(M.nodeType===Node.TEXT_NODE){const J=M.nodeValue.length;if(m<=J){e.setStart(M,m),e.setEnd(M,m);break}m-=J}W.removeAllRanges(),W.addRange(e)}get contentDiv(){return this.editorDiv}static async deserialize(l,d,t){var Z;let F=null;if(l instanceof Fb){const{data:{defaultAppearanceData:{fontSize:a,fontColor:W},rect:s,rotation:V,id:Q,popupRef:i},textContent:N,textPosition:e,parent:{page:{pageNumber:m}}}=l;if(!N||N.length===0)return null;F=l={annotationType:Zl.FREETEXT,color:Array.from(W),fontSize:a,value:N.join(`
`),position:e,pageIndex:m-1,rect:s.slice(0),rotation:V,id:Q,deleted:!1,popupRef:i}}const c=await super.deserialize(l,d,t);return R(c,NU,l.fontSize),R(c,AU,K.makeHexColor(...l.color)),R(c,RU,h(Z=Fd,yF,vi).call(Z,l.value)),c.annotationElementId=l.id||null,c._initialData=F,c}serialize(l=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const d=Fd._internalPadding*this.parentScale,t=this.getRect(d,d),Z=Cl._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:n(this,AU)),F={annotationType:Zl.FREETEXT,color:Z,fontSize:n(this,NU),value:h(this,Pd,Qb).call(this),pageIndex:this.pageIndex,rect:t,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return l?F:this.annotationElementId&&!h(this,Pd,ib).call(this,F)?null:(F.id=this.annotationElementId,F)}renderAnnotationElement(l){const d=super.renderAnnotationElement(l);if(this.deleted)return d;const{style:t}=d;t.fontSize=`calc(${n(this,NU)}px * var(--scale-factor))`,t.color=n(this,AU),d.replaceChildren();for(const F of n(this,RU).split(`
`)){const c=document.createElement("div");c.append(F?document.createTextNode(F):document.createElement("br")),d.append(c)}const Z=Fd._internalPadding*this.parentScale;return l.updateEdited({rect:this.getRect(Z,Z),popupContent:n(this,RU)}),d}resetAnnotationElement(l){super.resetAnnotationElement(l),l.resetEdited()}};AU=new WeakMap,RU=new WeakMap,Ms=new WeakMap,X0=new WeakMap,NU=new WeakMap,Pd=new WeakSet,Wb=function(U){const l=t=>{this.editorDiv.style.fontSize=`calc(${t}px * var(--scale-factor))`,this.translate(0,-(t-n(this,NU))*this.parentScale),R(this,NU,t),h(this,Pd,zV).call(this)},d=n(this,NU);this.addCommands({cmd:l.bind(this,U),undo:l.bind(this,d),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:nl.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},sb=function(U){const l=t=>{R(this,AU,this.editorDiv.style.color=t)},d=n(this,AU);this.addCommands({cmd:l.bind(this,U),undo:l.bind(this,d),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:nl.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},Vb=function(){var U;const l=[];this.editorDiv.normalize();let d=null;for(const t of this.editorDiv.childNodes)(d==null?void 0:d.nodeType)===Node.TEXT_NODE&&t.nodeName==="BR"||(l.push(h(U=it,yF,LV).call(U,t)),d=t);return l.join(`
`)},zV=function(){const[U,l]=this.parentDimensions;let d;if(this.isAttachedToDOM)d=this.div.getBoundingClientRect();else{const{currentLayer:t,div:Z}=this,F=Z.style.display,c=Z.classList.contains("hidden");Z.classList.remove("hidden"),Z.style.display="hidden",t.div.append(this.div),d=Z.getBoundingClientRect(),Z.remove(),Z.style.display=F,Z.classList.toggle("hidden",c)}this.rotation%180===this.parentRotation%180?(this.width=d.width/U,this.height=d.height/l):(this.width=d.height/U,this.height=d.width/l),this.fixAndSetPosition()},yF=new WeakSet,LV=function(U){return(U.nodeType===Node.TEXT_NODE?U.nodeValue:U.innerText).replaceAll(ms,"")},Js=function(){if(this.editorDiv.replaceChildren(),!!n(this,RU))for(const U of n(this,RU).split(`
`)){const l=document.createElement("div");l.append(U?document.createTextNode(U):document.createElement("br")),this.editorDiv.append(l)}},Qb=function(){return n(this,RU).replaceAll(" "," ")},vi=function(U){return U.replaceAll(" "," ")},ib=function(U){const{value:l,fontSize:d,color:t,pageIndex:Z}=this._initialData;return this._hasBeenMoved||U.value!==l||U.fontSize!==d||U.color.some((F,c)=>F!==t[c])||U.pageIndex!==Z},b(it,yF),f(it,"_freeTextDefaultContent",""),f(it,"_internalPadding",0),f(it,"_defaultColor",null),f(it,"_defaultFontSize",10),f(it,"_type","freetext"),f(it,"_editorType",Zl.FREETEXT);let aJ=it;class O{toSVGPath(){Jl("Abstract method `toSVGPath` must be implemented.")}get box(){Jl("Abstract getter `box` must be implemented.")}serialize(l,d){Jl("Abstract method `serialize` must be implemented.")}static _rescale(l,d,t,Z,F,c){c||(c=new Float32Array(l.length));for(let a=0,W=l.length;a<W;a+=2)c[a]=d+l[a]*Z,c[a+1]=t+l[a+1]*F;return c}static _rescaleAndSwap(l,d,t,Z,F,c){c||(c=new Float32Array(l.length));for(let a=0,W=l.length;a<W;a+=2)c[a]=d+l[a+1]*Z,c[a+1]=t+l[a]*F;return c}static _translate(l,d,t,Z){Z||(Z=new Float32Array(l.length));for(let F=0,c=l.length;F<c;F+=2)Z[F]=d+l[F],Z[F+1]=t+l[F+1];return Z}static svgRound(l){return Math.round(l*1e4)}static _normalizePoint(l,d,t,Z,F){switch(F){case 90:return[1-d/t,l/Z];case 180:return[1-l/t,1-d/Z];case 270:return[d/t,1-l/Z];default:return[l/t,d/Z]}}static _normalizePagePoint(l,d,t){switch(t){case 90:return[1-d,l];case 180:return[1-l,1-d];case 270:return[d,1-l];default:return[l,d]}}static createBezierPoints(l,d,t,Z,F,c){return[(l+5*t)/6,(d+5*Z)/6,(5*t+F)/6,(5*Z+c)/6,(t+F)/2,(Z+c)/2]}}f(O,"PRECISION",1e-4);var hU,_U,Za,Fa,Rt,cl,nc,ac,Gs,Ss,ca,un,cF,Ts,DQ,Pi,eU,jc,Rb,Nb,hb,eb,bb,mb;const u0=class fi{constructor({x:l,y:d},t,Z,F,c,a=0){b(this,eU),b(this,hU),b(this,_U,[]),b(this,Za),b(this,Fa),b(this,Rt,[]),b(this,cl,new Float32Array(18)),b(this,nc),b(this,ac),b(this,Gs),b(this,Ss),b(this,ca),b(this,un),b(this,cF,[]),R(this,hU,t),R(this,un,F*Z),R(this,Fa,c),n(this,cl).set([NaN,NaN,NaN,NaN,l,d],6),R(this,Za,a),R(this,Ss,n(fi,Ts)*Z),R(this,Gs,n(fi,Pi)*Z),R(this,ca,Z),n(this,cF).push(l,d)}isEmpty(){return isNaN(n(this,cl)[8])}add({x:l,y:d}){var t;R(this,nc,l),R(this,ac,d);const[Z,F,c,a]=n(this,hU);let[W,s,V,Q]=n(this,cl).subarray(8,12);const i=l-V,N=d-Q,e=Math.hypot(i,N);if(e<n(this,Gs))return!1;const m=e-n(this,Ss),M=m/e,J=M*i,S=M*N;let G=W,X=s;W=V,s=Q,V+=J,Q+=S,(t=n(this,cF))==null||t.push(l,d);const u=-S/m,p=J/m,Y=u*n(this,un),o=p*n(this,un);return n(this,cl).set(n(this,cl).subarray(2,8),0),n(this,cl).set([V+Y,Q+o],4),n(this,cl).set(n(this,cl).subarray(14,18),12),n(this,cl).set([V-Y,Q-o],16),isNaN(n(this,cl)[6])?(n(this,Rt).length===0&&(n(this,cl).set([W+Y,s+o],2),n(this,Rt).push(NaN,NaN,NaN,NaN,(W+Y-Z)/c,(s+o-F)/a),n(this,cl).set([W-Y,s-o],14),n(this,_U).push(NaN,NaN,NaN,NaN,(W-Y-Z)/c,(s-o-F)/a)),n(this,cl).set([G,X,W,s,V,Q],6),!this.isEmpty()):(n(this,cl).set([G,X,W,s,V,Q],6),Math.abs(Math.atan2(X-s,G-W)-Math.atan2(S,J))<Math.PI/2?([W,s,V,Q]=n(this,cl).subarray(2,6),n(this,Rt).push(NaN,NaN,NaN,NaN,((W+V)/2-Z)/c,((s+Q)/2-F)/a),[W,s,G,X]=n(this,cl).subarray(14,18),n(this,_U).push(NaN,NaN,NaN,NaN,((G+W)/2-Z)/c,((X+s)/2-F)/a),!0):([G,X,W,s,V,Q]=n(this,cl).subarray(0,6),n(this,Rt).push(((G+5*W)/6-Z)/c,((X+5*s)/6-F)/a,((5*W+V)/6-Z)/c,((5*s+Q)/6-F)/a,((W+V)/2-Z)/c,((s+Q)/2-F)/a),[V,Q,W,s,G,X]=n(this,cl).subarray(12,18),n(this,_U).push(((G+5*W)/6-Z)/c,((X+5*s)/6-F)/a,((5*W+V)/6-Z)/c,((5*s+Q)/6-F)/a,((W+V)/2-Z)/c,((s+Q)/2-F)/a),!0))}toSVGPath(){if(this.isEmpty())return"";const l=n(this,Rt),d=n(this,_U);if(isNaN(n(this,cl)[6])&&!this.isEmpty())return h(this,eU,Rb).call(this);const t=[];t.push(`M${l[4]} ${l[5]}`);for(let Z=6;Z<l.length;Z+=6)isNaN(l[Z])?t.push(`L${l[Z+4]} ${l[Z+5]}`):t.push(`C${l[Z]} ${l[Z+1]} ${l[Z+2]} ${l[Z+3]} ${l[Z+4]} ${l[Z+5]}`);h(this,eU,hb).call(this,t);for(let Z=d.length-6;Z>=6;Z-=6)isNaN(d[Z])?t.push(`L${d[Z+4]} ${d[Z+5]}`):t.push(`C${d[Z]} ${d[Z+1]} ${d[Z+2]} ${d[Z+3]} ${d[Z+4]} ${d[Z+5]}`);return h(this,eU,Nb).call(this,t),t.join(" ")}newFreeDrawOutline(l,d,t,Z,F,c){return new Gb(l,d,t,Z,F,c)}getOutlines(){var l;const d=n(this,Rt),t=n(this,_U),Z=n(this,cl),[F,c,a,W]=n(this,hU),s=new Float32Array((((l=n(this,cF))==null?void 0:l.length)??0)+2);for(let i=0,N=s.length-2;i<N;i+=2)s[i]=(n(this,cF)[i]-F)/a,s[i+1]=(n(this,cF)[i+1]-c)/W;if(s[s.length-2]=(n(this,nc)-F)/a,s[s.length-1]=(n(this,ac)-c)/W,isNaN(Z[6])&&!this.isEmpty())return h(this,eU,eb).call(this,s);const V=new Float32Array(n(this,Rt).length+24+n(this,_U).length);let Q=d.length;for(let i=0;i<Q;i+=2){if(isNaN(d[i])){V[i]=V[i+1]=NaN;continue}V[i]=d[i],V[i+1]=d[i+1]}Q=h(this,eU,mb).call(this,V,Q);for(let i=t.length-6;i>=6;i-=6)for(let N=0;N<6;N+=2){if(isNaN(t[i+N])){V[Q]=V[Q+1]=NaN,Q+=2;continue}V[Q]=t[i+N],V[Q+1]=t[i+N+1],Q+=2}return h(this,eU,bb).call(this,V,Q),this.newFreeDrawOutline(V,s,n(this,hU),n(this,ca),n(this,Za),n(this,Fa))}};hU=new WeakMap,_U=new WeakMap,Za=new WeakMap,Fa=new WeakM Line truncated
@page {
margin: 3mm;
size: ${l}pt ${d}pt;
}
body {
margin: 0;
}
canvas {
width: 100%;
page-break-after: always;
page-break-before: avoid;
page-break-inside: avoid;
}
`,U.contentWindow.document.head.appendChild(t),U.contentWindow.document.body.style.width="100%"}function pJ(U){return new Promise(l=>{const d=document.createElement("iframe");d.width="0",d.height="0",d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.border="none",d.style.overflow="hidden",d.onload=()=>l(d),U.appendChild(d)})}function YJ(U,l){const d=URL.createObjectURL(new Blob([U],{type:"application/pdf"})),t=document.createElement("a");t.href=d,t.download=l,t.style.display="none",document.body.append(t),t.click(),setTimeout(()=>{URL.revokeObjectURL(d),document.body.removeChild(t)},1e3)}function ah(U){for(;U!=null&&U.firstChild;)U.removeChild(U.firstChild)}function vQ(U){U==null||U.querySelectorAll("canvas").forEach(l=>{var d;l.width=1,l.height=1,(d=l.getContext("2d"))==null||d.clearRect(0,0,1,1)})}function Wh(U){return Object.prototype.hasOwnProperty.call(U,"_pdfInfo")}function gb({onError:U,onPasswordRequest:l,onProgress:d,source:t}){const Z=mV(null),F=mV(null);return Em(async()=>{const c=AR(t);if(c){if(Wh(c)){Z.value=c;return}try{F.value=TJ(c),l&&(F.value.onPassword=(a,W)=>{l({callback:a,isWrongPassword:W===GJ.INCORRECT_PASSWORD})}),d&&(F.value.onProgress=d),Z.value=await F.value.promise}catch(a){if(Z.value=null,U)U(a);else throw a}}}),Vi(Z,(c,a)=>{a==null||a.destroy()}),$h(()=>{var c,a,W,s;(c=F.value)!=null&&c.onPassword&&(F.value.onPassword=null),(a=F.value)!=null&&a.onProgress&&(F.value.onProgress=null),(W=F.value)==null||W.destroy(),Wh(AR(t))||(s=Z.value)==null||s.destroy()}),{doc:Z}}var ha={};ha.d=(U,l)=>{for(var d in l)ha.o(l,d)&&!ha.o(U,d)&&Object.defineProperty(U,d,{enumerable:!0,get:l[d]})};ha.o=(U,l)=>Object.prototype.hasOwnProperty.call(U,l);var kl=globalThis.pdfjsViewer={};ha.d(kl,{AnnotationLayerBuilder:()=>Zm,DownloadManager:()=>SG,EventBus:()=>cm,FindState:()=>_t,GenericL10n:()=>nQ,LinkTarget:()=>VF,PDFFindController:()=>WG,PDFHistory:()=>JS,PDFLinkService:()=>tm,PDFPageView:()=>Xm,PDFScriptingManager:()=>IS,PDFSinglePageViewer:()=>CS,PDFViewer:()=>Im,ProgressBar:()=>rJ,RenderingStates:()=>Dl,ScrollMode:()=>Wl,SimpleLinkService:()=>vR,SpreadMode:()=>Sd,StructTreeLayerBuilder:()=>bm,TextLayerBuilder:()=>Sm,XfaLayerBuilder:()=>Tm,parseQueryString:()=>FQ});const BJ="auto",Kb=1,sh=1.1,oJ=.1,yJ=10,PQ=0,kJ=1.25,Hb=40,vb=5,Dl={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},Vc={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},dt={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2},Wl={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},Sd={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function Pb(U,l,d=!1){let t=U.offsetParent;if(!t){console.error("offsetParent is not set -- cannot scroll");return}let Z=U.offsetTop+U.clientTop,F=U.offsetLeft+U.clientLeft;for(;t.clientHeight===t.scrollHeight&&t.clientWidth===t.scrollWidth||d&&(t.classList.contains("markedContent")||getComputedStyle(t).overflow==="hidden");)if(Z+=t.offsetTop,F+=t.offsetLeft,t=t.offsetParent,!t)return;l&&(l.top!==void 0&&(Z+=l.top),l.left!==void 0&&(F+=l.left,t.scrollLeft=F)),t.scrollTop=Z}function zJ(U,l,d=void 0){const t=function(c){F||(F=window.requestAnimationFrame(function(){F=null;const a=U.scrollLeft,W=Z.lastX;a!==W&&(Z.right=a>W),Z.lastX=a;const s=U.scrollTop,V=Z.lastY;s!==V&&(Z.down=s>V),Z.lastY=s,l(Z)}))},Z={right:!0,down:!0,lastX:U.scrollLeft,lastY:U.scrollTop,_eventHandler:t};let F=null;return U.addEventListener("scroll",t,{useCapture:!0,signal:d}),d==null||d.addEventListener("abort",()=>window.cancelAnimationFrame(F),{once:!0}),Z}function FQ(U){const l=new Map;for(const[d,t]of new URLSearchParams(U))l.set(d.toLowerCase(),t);return l}const Vh=/[\x00-\x1F]/g;function ea(U,l=!1){return Vh.test(U)?l?U.replaceAll(Vh,d=>d==="\0"?"":" "):U.replaceAll("\0",""):U}function La(U,l,d=0){let t=d,Z=U.length-1;if(Z<0||!l(U[Z]))return U.length;if(l(U[t]))return t;for(;t<Z;){const F=t+Z>>1,c=U[F];l(c)?Z=F:t=F+1}return t}function Qh(U){if(Math.floor(U)===U)return[U,1];const l=1/U,d=8;if(l>d)return[1,d];if(Math.floor(l)===l)return[1,l];const t=U>1?l:U;let Z=0,F=1,c=1,a=1;for(;;){const s=Z+c,V=F+a;if(V>d)break;t<=s/V?(c=s,a=V):(Z=s,F=V)}let W;return t-Z/F<c/a-t?W=t===U?[Z,F]:[F,Z]:W=t===U?[c,a]:[a,c],W}function zW(U,l){return U-U%l}function LJ(U,l,d){if(U<2)return U;let t=l[U].div,Z=t.offsetTop+t.clientTop;Z>=d&&(t=l[U-1].div,Z=t.offsetTop+t.clientTop);for(let F=U-2;F>=0&&(t=l[F].div,!(t.offsetTop+t.clientTop+t.clientHeight<=Z));--F)U=F;return U}function IJ({scrollEl:U,views:l,sortByVisibility:d=!1,horizontal:t=!1,rtl:Z=!1}){const F=U.scrollTop,c=F+U.clientHeight,a=U.scrollLeft,W=a+U.clientWidth;function s(S){const G=S.div;return G.offsetTop+G.clientTop+G.clientHeight>F}function V(S){const G=S.div,X=G.offsetLeft+G.clientLeft,u=X+G.clientWidth;return Z?X<W:u>a}const Q=[],i=new Set,N=l.length;let e=La(l,t?V:s);e>0&&e<N&&!t&&(e=LJ(e,l,F));let m=t?W:-1;for(let S=e;S<N;S++){const G=l[S],X=G.div,u=X.offsetLeft+X.clientLeft,p=X.offsetTop+X.clientTop,Y=X.clientWidth,o=X.clientHeight,T=u+Y,B=p+o;if(m===-1)B>=c&&(m=B);else if((t?u:p)>m)break;if(B<=F||p>=c||T<=a| Line truncated
`),E=D?G.length-2:G.length;i=!0;let I=E;T+Q===((y=Z[a])==null?void 0:y[1])&&(I-=Z[a][0],++a);for(let L=1;L<=I;L++)c.push(T-1-s+L,s-L);return s-=I,V+=I,D?(T+=E-1,c.push(T-s+1,1+s),s+=1,V+=1,Q+=1,G.slice(0,E)):G}if(X)return V+=1,Q+=1,X.replace(`
`,"");if(u){const D=u.length-2;return c.push(T-s+D,1+s),s+=1,V+=1,Q+=1,u.slice(0,-2)}if(p){const D=p.length-1;return c.push(T-s+D,s),V+=1,Q+=1,p.slice(0,-1)}if(Y)return c.push(T-s+1,s-1),s-=1,V+=1,Q+=1," ";if(T+Q===((w=l[W])==null?void 0:w[1])){const D=l[W][0]-1;++W;for(let E=1;E<=D;E++)c.push(T-(s-E),s-E);s-=D,V+=D}return o}),c.push(F.length,s);const N=new Uint32Array(c.length>>1),e=new Int32Array(c.length>>1);for(let m=0,M=c.length;m<M;m+=2)N[m>>1]=c[m],e[m>>1]=c[m+1];return[F,[N,e],i]}function aG(U,l,d){if(!U)return[l,d];const[t,Z]=U,F=l,c=l+d-1;let a=La(t,Q=>Q>=F);t[a]>F&&--a;let W=La(t,Q=>Q>=c,a);t[W]>c&&--W;const s=F+Z[a],V=c+Z[W]+1-s;return[s,V]}var sd,ba,k0,Ul,_b,nR,li,eh,qb,aR,bh,mh,DW,_c,n0,Mh,di,Ui,EW,$b,ti,Zi,qc;class WG{constructor({linkService:l,eventBus:d,updateMatchesCountOnProgress:t=!0}){b(this,Ul),b(this,sd,null),b(this,ba,!0),b(this,k0,0),this._linkService=l,this._eventBus=d,R(this,ba,t),this.onIsPageVisible=null,h(this,Ul,nR).call(this),d._on("find",h(this,Ul,_b).bind(this)),d._on("findbarclose",h(this,Ul,$b).bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return n(this,sd)}setDocument(l){this._pdfDocument&&h(this,Ul,nR).call(this),l&&(this._pdfDocument=l,this._firstPageCapability.resolve())}scrollMatchIntoView({element:l=null,selectedLeft:d=0,pageIndex:t=-1,matchIndex:Z=-1}){if(!this._scrollMatches||!l||Z===-1||Z!==this._selected.matchIdx||t===-1||t!==this._selected.pageIdx)return;this._scrollMatches=!1;const F={top:lG,left:d+dG};Pb(l,F,!0)}match(l,d,t){const Z=this._hasDiacritics[t];let F=!1;if(typeof l=="string"?[F,l]=h(this,Ul,aR).call(this,l,Z):l=l.sort().reverse().map(Q=>{const[i,N]=h(this,Ul,aR).call(this,Q,Z);return F||(F=i),`(${N})`}).join("|"),!l)return;const{caseSensitive:c,entireWord:a}=n(this,sd),W=`g${F?"u":""}${c?"":"i"}`;l=new RegExp(l,W);const s=[];let V;for(;(V=l.exec(d))!==null;)a&&!h(this,Ul,qb).call(this,d,V.index,V[0].length)||s.push({index:V.index,length:V[0].length});return s}}sd=new WeakMap,ba=new WeakMap,k0=new WeakMap,Ul=new WeakSet,_b=function(U){if(!U)return;const l=this._pdfDocument,{type:d}=U;(n(this,sd)===null||h(this,Ul,eh).call(this,U))&&(this._dirtyMatch=!0),R(this,sd,U),d!=="highlightallchange"&&h(this,Ul,qc).call(this,_t.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||l&&this._pdfDocument!==l)return;h(this,Ul,mh).call(this);const t=!this._highlightMatches,Z=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),d?this._dirtyMatch?h(this,Ul,n0).call(this):d==="again"?(h(this,Ul,n0).call(this),t&&n(this,sd).highlightAll&&h(this,Ul,_c).call(this)):d==="highlightallchange"?(Z?h(this,Ul,n0).call(this):this._highlightMatches=!0,h(this,Ul,_c).call(this)):h(this,Ul,n0).call(this):this._findTimeout=setTimeout(()=>{h(this,Ul,n0).call(this),this._findTimeout=null},$J)})},nR=function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],R(this,k0,0),R(this,sd,null),this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=Promise.withResolvers()},li=function(){const{query:U}=n(this,sd);return typeof U=="string"?(U!==this._rawQuery&&(this._rawQuery=U,[this._normalizedQuery]=$Q(U)),this._normalizedQuery):(U||[]).filter(l=>!!l).map(l=>$Q(l)[0])},eh=function(U){var l;const d=U.query,t=n(this,sd).query,Z=typeof d;if(Z!==typeof t)return!0;if(Z==="string"){if(d!==t)return!0}else if(JSON.stringify(d)!==JSON.stringify(t))return!0;switch(U.type){case"again":const F=this._selected.pageIdx+1,c=this._linkService;return F>=1&&F<=c.pagesCount&&F!==c.page&&!(((l=this.onIsPageVisible)==null?void 0:l.call(this,F))??!0);case"highlightallchange":return!1}return!0},qb=function(U,l,d){let t=U.slice(0,l).match(ZG);if(t){const Z=U.charCodeAt(l),F=t[1].charCodeAt(0);if(IW(Z)===IW(F))return!1}if(t=U.slice(l+d).match(FG),t){const Z=U.charCodeAt(l+d-1),F=t[1].charCodeAt(0);if(IW(Z)===IW(F))return!1}return!0},aR=function(U,l){const{matchDiacritics:d}=n(this,sd);let t=!1;U=U.replaceAll(tG,(F,c,a,W,s,V)=>c?`[ ]*\\${c}[ ]*`:a?`[ ]*${a}[ ]*`:W?"[ ]+":d?s||V:s?Rh.has(s.charCodeAt(0))?s:"":l?(t=!0,`${V}\\p{M}*`):V);const Z="[ ]*";return U.endsWith(Z)&&(U=U.slice(0,U.length-Z.length)),d&&l&&(AQ||(AQ=String.fromCharCode(...Rh)),t=!0,U=`${U}(?=[${AQ}]|[^\\p{M}]|$)`),[t,U]},bh=function(U){const l=n(this,Ul,li);if(l.length===0)return;const d=this._pageContents[U],t=this.match(l,d,U),Z=this._pageMatches[U]=[],F=this._pageMatchesLength[U]=[],c=this._pageDiffs[U];t==null||t.fo Line truncated
`);[this._pageContents[d],this._pageDiffs[d],this._hasDiacritics[d]]=$Q(a.join("")),F()},c=>{console.error(`Unable to get text content for page ${d+1}`,c),this._pageContents[d]="",this._pageDiffs[d]=null,this._hasDiacritics[d]=!1,F()}))}},DW=function(U){this._scrollMatches&&this._selected.pageIdx===U&&(this._linkService.page=U+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:U})},_c=function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})},n0=function(){const U=n(this,sd).findPrevious,l=this._linkService.page-1,d=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=l,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,R(this,k0,0),this._matchesCountTotal=0,h(this,Ul,_c).call(this);for(let Z=0;Z<d;Z++)this._pendingFindMatches.has(Z)||(this._pendingFindMatches.add(Z),this._extractTextPromises[Z].then(()=>{this._pendingFindMatches.delete(Z),h(this,Ul,bh).call(this,Z)}))}if(n(this,Ul,li).length===0){h(this,Ul,qc).call(this,_t.FOUND);return}if(this._resumePageIdx)return;const t=this._offset;if(this._pagesToSearch=d,t.matchIdx!==null){const Z=this._pageMatches[t.pageIdx].length;if(!U&&t.matchIdx+1<Z||U&&t.matchIdx>0){t.matchIdx=U?t.matchIdx-1:t.matchIdx+1,h(this,Ul,EW).call(this,!0);return}h(this,Ul,Ui).call(this,U)}h(this,Ul,di).call(this)},Mh=function(U){const l=this._offset,d=U.length,t=n(this,sd).findPrevious;return d?(l.matchIdx=t?d-1:0,h(this,Ul,EW).call(this,!0),!0):(h(this,Ul,Ui).call(this,t),l.wrapped&&(l.matchIdx=null,this._pagesToSearch<0)?(h(this,Ul,EW).call(this,!1),!0):!1)},di=function(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let U=null;do{const l=this._offset.pageIdx;if(U=this._pageMatches[l],!U){this._resumePageIdx=l;break}}while(!h(this,Ul,Mh).call(this,U))},Ui=function(U){const l=this._offset,d=this._linkService.pagesCount;l.pageIdx=U?l.pageIdx-1:l.pageIdx+1,l.matchIdx=null,this._pagesToSearch--,(l.pageIdx>=d||l.pageIdx<0)&&(l.pageIdx=U?d-1:0,l.wrapped=!0)},EW=function(U=!1){let l=_t.NOT_FOUND;const d=this._offset.wrapped;if(this._offset.wrapped=!1,U){const t=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,l=d?_t.WRAPPED:_t.FOUND,t!==-1&&t!==this._selected.pageIdx&&h(this,Ul,DW).call(this,t)}h(this,Ul,qc).call(this,l,n(this,sd).findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,h(this,Ul,DW).call(this,this._selected.pageIdx))},$b=function(U){const l=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||l&&this._pdfDocument!==l||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),h(this,Ul,qc).call(this,_t.FOUND),this._highlightMatches=!1,h(this,Ul,_c).call(this))})},ti=function(){var U;const{pageIdx:l,matchIdx:d}=this._selected;let t=0,Z=this._matchesCountTotal;if(d!==-1){for(let F=0;F<l;F++)t+=((U=this._pageMatches[F])==null?void 0:U.length)||0;t+=d+1}return(t<1||t>Z)&&(t=Z=0),{current:t,total:Z}},Zi=function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:h(this,Ul,ti).call(this)})},qc=function(U,l=!1){var d,t;!n(this,ba)&&(n(this,k0)!==this._linkService.pagesCount||U===_t.PENDING)||this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:U,previous:l,entireWord:((d=n(this,sd))==null?void 0:d.entireWord)??null,matchesCount:h(this,Ul,ti).call(this),rawQuery:((t=n(this,sd))==null?void 0:t.query)??null})};const sG="noopener noreferrer nofollow",VF={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};var WR,lm;const dm=class Um{constructor({eventBus:l,externalLinkTarget:d=null,externalLinkRel:t=null,ignoreDestinationZoom:Z=!1}={}){f(this,"externalLinkEnabled",!0),this.eventBus=l,this.externalLinkTarget=d,this.externalLinkRel=t,this._ignoreDestinationZoom=Z,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(l,d=null){this.baseUrl=d,this.pdfDocument=l}setViewer(l){this.pdfViewer=l}setHistory(l){this.pdfHistory=l}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfDocument?this.pdfViewer.currentPageNumber:1}set page(l){this.pdfDocument&&(this.pdfViewer.currentPageNumber=l)}get rotation(){return this.pdfDocument?this.pdfViewer.pagesRotation:0}set rotation(l){this.pdfDocument&&(this.pdfViewer.pagesRotation=l)}get isInPresentationMode(){return this.pdfDocument?this.pdfViewer.isInPresentationMode:!1}async goToDestination(l){if(!this.pdfDocument)return;let d,t,Z;if(typeof l=="string"?(d=l,t=await this.pdfDocument.getDestination(l)):(d=null,t=await l),!Array.isArray(t)){console.error(`goToDestination: "${t}" is not a valid destination array, for dest="${l}".`);return}const[F]=t;if(F&&typeof F=="object"){if( Line truncated
`),y=gG.exec(T)[1].length;return new Dh(B,y)}}}class Dh{constructor(l,d){this.value=l,this.length=d}}const lS=/<|&#?\w+;/,dS={"http://www.w3.org/1999/xhtml":["em","strong","small","s","cite","q","dfn","abbr","data","time","code","var","samp","kbd","sub","sup","i","b","u","mark","bdi","bdo","span","br","wbr"]},US={"http://www.w3.org/1999/xhtml":{global:["title","aria-label","aria-valuetext"],a:["download"],area:["download","alt"],input:["alt","placeholder"],menuitem:["label"],menu:["label"],optgroup:["label"],option:["label"],track:["label"],img:["alt"],textarea:["placeholder"],th:["abbr"]},"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul":{global:["accesskey","aria-label","aria-valuetext","label","title","tooltiptext"],description:["value"],key:["key","keycode"],label:["value"],textbox:["placeholder","value"]}};function tS(U,l){const{value:d}=l;if(typeof d=="string")if(U.localName==="title"&&U.namespaceURI==="http://www.w3.org/1999/xhtml")U.textContent=d;else if(!lS.test(d))U.textContent=d;else{const t=U.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","template");t.innerHTML=d,ZS(t.content,U)}am(l,U)}function ZS(U,l){for(const d of U.childNodes)if(d.nodeType!==d.TEXT_NODE){if(d.hasAttribute("data-l10n-name")){const t=cS(l,d);U.replaceChild(t,d);continue}if(aS(d)){const t=nS(d);U.replaceChild(t,d);continue}console.warn(`An element of forbidden type "${d.localName}" was found in the translation. Only safe text-level elements and elements with data-l10n-name are allowed.`),U.replaceChild(iR(d),d)}l.textContent="",l.appendChild(U)}function FS(U,l){if(!U)return!1;for(let d of U)if(d.name===l)return!0;return!1}function am(U,l){const d=l.hasAttribute("data-l10n-attrs")?l.getAttribute("data-l10n-attrs").split(",").map(t=>t.trim()):null;for(const t of Array.from(l.attributes))Eh(t.name,l,d)&&!FS(U.attributes,t.name)&&l.removeAttribute(t.name);if(U.attributes)for(const t of Array.from(U.attributes))Eh(t.name,l,d)&&l.getAttribute(t.name)!==t.value&&l.setAttribute(t.name,t.value)}function cS(U,l){const d=l.getAttribute("data-l10n-name"),t=U.querySelector(`[data-l10n-name="${d}"]`);if(!t)return console.warn(`An element named "${d}" wasn't found in the source.`),iR(l);if(t.localName!==l.localName)return console.warn(`An element named "${d}" was found in the translation but its type ${l.localName} didn't match the element found in the source (${t.localName}).`),iR(l);U.removeChild(t);const Z=t.cloneNode(!1);return Wm(l,Z)}function nS(U){const l=U.ownerDocument.createElement(U.localName);return Wm(U,l)}function iR(U){return U.ownerDocument.createTextNode(U.textContent)}function aS(U){const l=dS[U.namespaceURI];return l&&l.includes(U.localName)}function Eh(U,l,d=null){if(d&&d.includes(U))return!0;const t=US[l.namespaceURI];if(!t)return!1;const Z=U.toLowerCase(),F=l.localName;if(t.global.includes(Z))return!0;if(!t[F])return!1;if(t[F].includes(Z))return!0;if(l.namespaceURI==="http://www.w3.org/1999/xhtml"&&F==="input"&&Z==="value"){const c=l.type.toLowerCase();if(c==="submit"||c==="button"||c==="reset")return!0}return!1}function Wm(U,l){return l.textContent=U.textContent,am(U,l),l}class WS extends Array{static from(l){return l instanceof this?l:new this(l)}}class sS extends WS{constructor(l){if(super(),Symbol.asyncIterator in Object(l))this.iterator=l[Symbol.asyncIterator]();else if(Symbol.iterator in Object(l))this.iterator=l[Symbol.iterator]();else throw new TypeError("Argument must implement the iteration protocol.")}[Symbol.asyncIterator](){const l=this;let d=0;return{async next(){return l.length<=d&&l.push(l.iterator.next()),l[d++]}}}async touchNext(l=1){let d=0;for(;d++<l;){const t=this[this.length-1];if(t&&(await t).done)break;this.push(this.iterator.next())}return this[this.length-1]}}class VS{constructor(l=[],d){this.resourceIds=l,this.generateBundles=d,this.onChange(!0)}addResourceIds(l,d=!1){return this.resourceIds.push(...l),this.onChange(d),this.resourceIds.length}removeResourceIds(l){return this.resourceIds=this.resourceIds.filter(d=>!l.includes(d)),this.onChange(),this.resourceIds.length}async formatWithFallback(l,d){const t=[];let Z=!1;for await(const F of this.bundles){Z=!0;const c=RS(d,F,l,t);if(c.size===0)break;if(typeof console<"u"){const a=F.locales[0],W=Array.from(c).join(", ");console.warn(`[fluent] Missing translations in ${a}: ${W}`)}}return!Z&&typeof console<"u"&&console.warn(`[fluent] Request for keys failed because no resource bundles got generated.
keys: ${JSON.stringify(l)}.
resourceIds: ${JSON.stringify(this.resourceIds)}.`),t}formatMessages(l){return this.formatWithFallback(l,iS)}formatValues(l){return this.formatWithFallback(l,QS)}async formatValue(l,d){const[t]=await this.formatValues([{id:l,args:d}]);return t}handleEvent(){this.onChange()}onChange(l=!1){this.bundles=sS.from(this.generateBundles(this.resourceIds)),l&&this.bundles.touchNext(2)}}function QS(U,l,d,t){return d.value?U.formatPattern(d.value,t,l):null}function iS(U,l,d,t){const Z={value:null,attributes:null};d.value&&(Z.value=U.formatPattern(d.value,t,l));let F=Object.keys(d.attributes);if(F.length>0){Z.attributes=new Array(F.length);for(let[c,a]of F.entries()){let W=U.formatPattern(d.attributes[a],t,l);Z.attributes[c]={name:a,value:W}}}return Z}function RS(U,l,d,t){const Z=[],F=new Set;return d.forEach(({id:c,args:a},W)=>{if(t[W]!==void 0)return;let s=l.getMessage(c);if(s){if(Z.length=0,t[W]=U(l,Z,s,a),Z.length>0&&typeof console<"u"){const V=l.locales[0],Q=Z.join(", ");console.warn(`[fluent][resolver] errors in ${V}/${c}: ${Q}.`)}}else F.add(c)}),F}const iF="data-l10n-id",$c="data-l10n-args",NS=`[${iF}]`;class hS extends VS{constructor(l,d){super(l,d),this.roots=new Set,this.pendingrAF=null,this.pendingElements=new Set,this.windowElement=null,this.mutationObserver=null,this.observerConfig={attributes:!0,characterData:!1,childList:!0,subtree:!0,attributeFilter:[iF,$c]}}onChange(l=!1){super.onChange(l),this.roots&&this.translateRoots()}setAttributes(l,d,t){return l.setAttribute(iF,d),t?l.setAttribute($c,JSON.stringify(t)):l.removeAttribute($c),l}getAttributes(l){return{id:l.getAttribute(iF),args:JSON.parse(l.getAttribute($c)||null)}}connectRoot(l){for(const d of this.roots)if(d===l||d.contains(l)||l.contains(d))throw new Error("Cannot add a root that overlaps with existing root.");if(this.windowElement){if(this.windowElement!==l.ownerDocument.defaultView)throw new Error(`Cannot connect a root:
DOMLocalization already has a root from a different window.`)}else this.windowElement=l.ownerDocument.defaultView,this.mutationObserver=new this.windowElement.MutationObserver(d=>this.translateMutations(d));this.roots.add(l),this.mutationObserver.observe(l,this.observerConfig)}disconnectRoot(l){return this.roots.delete(l),this.pauseObserving(),this.roots.size===0?(this.mutationObserver=null,this.windowElement&&this.pendingrAF&&this.windowElement.cancelAnimationFrame(this.pendingrAF),this.windowElement=null,this.pendingrAF=null,this.pendingElements.clear(),!0):(this.resumeObserving(),!1)}translateRoots(){const l=Array.from(this.roots);return Promise.all(l.map(d=>this.translateFragment(d)))}pauseObserving(){this.mutationObserver&&(this.translateMutations(this.mutationObserver.takeRecords()),this.mutationObserver.disconnect())}resumeObserving(){if(this.mutationObserver)for(const l of this.roots)this.mutationObserver.observe(l,this.observerConfig)}translateMutations(l){for(const d of l)switch(d.type){case"attributes":d.target.hasAttribute("data-l10n-id")&&this.pendingElements.add(d.target);break;case"childList":for(const t of d.addedNodes)if(t.nodeType===t.ELEMENT_NODE)if(t.childElementCount)for(const Z of this.getTranslatables(t))this.pendingElements.add(Z);else t.hasAttribute(iF)&&this.pendingElements.add(t);break}this.pendingElements.size>0&&this.pendingrAF===null&&(this.pendingrAF=this.windowElement.requestAnimationFrame(()=>{this.translateElements(Array.from(this.pendingElements)),this.pendingElements.clear(),this.pendingrAF=null}))}translateFragment(l){return this.translateElements(this.getTranslatables(l))}async translateElements(l){if(!l.length)return;const d=l.map(this.getKeysForElement),t=await this.formatMessages(d);return this.applyTranslations(l,t)}applyTranslations(l,d){this.pauseObserving();for(let t=0;t<l.length;t++)d[t]!==void 0&&tS(l[t],d[t]);this.resumeObserving()}getTranslatables(l){const d=Array.from(l.querySelectorAll(NS));return typeof l.hasAttribute=="function"&&l.hasAttribute(iF)&&d.push(l),d}getKeysForElement(l){return{id:l.getAttribute(iF),args:JSON.parse(l.getAttribute($c)||null)}}}var Cs,qt,wn,Hd,KV,sm,Vm;const Qm=class RR{constructor({lang:l,isRTL:d},t=null){b(this,Cs),b(this,qt),b(this,wn),b(this,Hd);var Z,F;R(this,wn,h(Z=RR,KV,sm).call(Z,l)),R(this,Hd,t),R(this,Cs,d??h(F=RR,KV,Vm).call(F,n(this,wn))?"rtl":"ltr")}_setL10n(l){R(this,Hd,l)}getLanguage(){return n(this,wn)}getDirection(){return n(this,Cs)}async get(l,d=null,t){var Z;return Array.isArray(l)?(l=l.map(F=>({id:F})),(await n(this,Hd).formatMessages(l)).map(F=>F.value)):((Z=(await n(this,Hd).formatMessages([{id:l,args:d}]))[0])==null?void 0:Z.value)||t}async translate(l){(n(this,qt)||R(this,qt,new Set)).add(l);try{n(this,Hd).connectRoot(l),await n(this,Hd).translateRoots()}catch{}}async translateOnce(l){try{await n(this,Hd).translateElements([l])}catch(d){console.error("translateOnce:",d)}}async destroy(){if(n(this,qt)){for(const l of n(this,qt))n(this,Hd).disconnectRoot(l);n(this,qt).clear(),R(this,qt,null)}n(this,Hd).pauseObserving()}pause(){n(this,Hd).pauseObserving()}resume(){n(this,Hd).resumeObserving()}};Cs=new WeakMap,qt=new WeakMap,wn=new WeakMap,Hd=new WeakMap,KV=new WeakSet,sm=function(U){return U=(U==null?void 0:U.toLowerCase())||"en-us",{en:"en-us",es:"es-es",fy:"fy-nl",ga:"ga-ie",gu:"gu-in",hi:"hi-in",hy:"hy-am",nb:"nb-no",ne:"ne-np",nn:"nn-no",pa:"pa-in",pt:"pt-pt",sv:"sv-se",zh:"zh-cn"}[U]||U},Vm=function(U){const l=U.split("-",1)[0];return["ar","he","fa","ps","ur"].includes(l)},b(Qm,KV);let eS=Qm;function wh(U,l){const d=new $G(l),t=new EG(U),Z=t.addResource(d);return Z.length&&console.error("L10n errors",Z),t}var nZ,im,Ch,rh,Rm,ai;const Nm=class Cn extends eS{constructor(l){super({lang:l});const d=l?h(Cn,nZ,im).bind(Cn,"en-us",this.getLanguage()):h(Cn,nZ,Rm).bind(Cn,this.getLanguage());this._setL10n(new hS([],d))}};nZ=new WeakSet,im=async function*(U,l){const{baseURL:d,paths:t}=await h(this,nZ,rh).call(this),Z=[l];if(U!==l){const F=l.split("-",1)[0];F!==l&&Z.push(F),Z.push(U)}for(const F of Z){const c=await h(this,nZ,Ch).call(this,F,d,t);c?yield c:F==="en-us"&&(yield h(this,nZ,ai).call(this,F))}},Ch=async function(U,l,d){const t=d[U];if(!t)return null;const Z=new URL(t,l),F=await Jh(Z,"text");return wh(U,F)},rh=async function(){try{const{href:U}=document.querySelector('link[type="application/l10n"]'),l=await Jh(U,"json");return{baseURL:U.replace(/[^/]*$/,"")||"./",paths:l}}catch{}return{baseURL:"./",paths:Object.create(null)}},Rm=async function*(U){yield h(this,nZ,ai).call(this,U)},ai=async function(U){return wh(U,`pdfjs-previous-button =
.title = Previous Page
pdfjs-previous-button-label = Previous
pdfjs-next-button =
.title = Next Page
pdfjs-next-button-label = Next
pdfjs-page-input =
.title = Page
pdfjs-of-pages = of { $pagesCount }
pdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount })
pdfjs-zoom-out-button =
.title = Zoom Out
pdfjs-zoom-out-button-label = Zoom Out
pdfjs-zoom-in-button =
.title = Zoom In
pdfjs-zoom-in-button-label = Zoom In
pdfjs-zoom-select =
.title = Zoom
pdfjs-presentation-mode-button =
.title = Switch to Presentation Mode
pdfjs-presentation-mode-button-label = Presentation Mode
pdfjs-open-file-button =
.title = Open File
pdfjs-open-file-button-label = Open
pdfjs-print-button =
.title = Print
pdfjs-print-button-label = Print
pdfjs-save-button =
.title = Save
pdfjs-save-button-label = Save
pdfjs-download-button =
.title = Download
pdfjs-download-button-label = Download
pdfjs-bookmark-button =
.title = Current Page (View URL from Current Page)
pdfjs-bookmark-button-label = Current Page
pdfjs-tools-button =
.title = Tools
pdfjs-tools-button-label = Tools
pdfjs-first-page-button =
.title = Go to First Page
pdfjs-first-page-button-label = Go to First Page
pdfjs-last-page-button =
.title = Go to Last Page
pdfjs-last-page-button-label = Go to Last Page
pdfjs-page-rotate-cw-button =
.title = Rotate Clockwise
pdfjs-page-rotate-cw-button-label = Rotate Clockwise
pdfjs-page-rotate-ccw-button =
.title = Rotate Counterclockwise
pdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise
pdfjs-cursor-text-select-tool-button =
.title = Enable Text Selection Tool
pdfjs-cursor-text-select-tool-button-label = Text Selection Tool
pdfjs-cursor-hand-tool-button =
.title = Enable Hand Tool
pdfjs-cursor-hand-tool-button-label = Hand Tool
pdfjs-scroll-page-button =
.title = Use Page Scrolling
pdfjs-scroll-page-button-label = Page Scrolling
pdfjs-scroll-vertical-button =
.title = Use Vertical Scrolling
pdfjs-scroll-vertical-button-label = Vertical Scrolling
pdfjs-scroll-horizontal-button =
.title = Use Horizontal Scrolling
pdfjs-scroll-horizontal-button-label = Horizontal Scrolling
pdfjs-scroll-wrapped-button =
.title = Use Wrapped Scrolling
pdfjs-scroll-wrapped-button-label = Wrapped Scrolling
pdfjs-spread-none-button =
.title = Do not join page spreads
pdfjs-spread-none-button-label = No Spreads
pdfjs-spread-odd-button =
.title = Join page spreads starting with odd-numbered pages
pdfjs-spread-odd-button-label = Odd Spreads
pdfjs-spread-even-button =
.title = Join page spreads starting with even-numbered pages
pdfjs-spread-even-button-label = Even Spreads
pdfjs-document-properties-button =
.title = Document Properties…
pdfjs-document-properties-button-label = Document Properties…
pdfjs-document-properties-file-name = File name:
pdfjs-document-properties-file-size = File size:
pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes)
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
pdfjs-document-properties-title = Title:
pdfjs-document-properties-author = Author:
pdfjs-document-properties-subject = Subject:
pdfjs-document-properties-keywords = Keywords:
pdfjs-document-properties-creation-date = Creation Date:
pdfjs-document-properties-modification-date = Modification Date:
pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-document-properties-creator = Creator:
pdfjs-document-properties-producer = PDF Producer:
pdfjs-document-properties-version = PDF Version:
pdfjs-document-properties-page-count = Page Count:
pdfjs-document-properties-page-size = Page Size:
pdfjs-document-properties-page-size-unit-inches = in
pdfjs-document-properties-page-size-unit-millimeters = mm
pdfjs-document-properties-page-size-orientation-portrait = portrait
pdfjs-document-properties-page-size-orientation-landscape = landscape
pdfjs-document-properties-page-size-name-a-three = A3
pdfjs-document-properties-page-size-name-a-four = A4
pdfjs-document-properties-page-size-name-letter = Letter
pdfjs-document-properties-page-size-name-legal = Legal
pdfjs-document-properties-page-size-dimension-string = { $width } × { $height } { $unit } ({ $orientation })
pdfjs-document-properties-page-size-dimension-name-string = { $width } × { $height } { $unit } ({ $name }, { $orientation })
pdfjs-document-properties-linearized = Fast Web View:
pdfjs-document-properties-linearized-yes = Yes
pdfjs-document-properties-linearized-no = No
pdfjs-document-properties-close-button = Close
pdfjs-print-progress-message = Preparing document for printing…
pdfjs-print-progress-percent = { $progress }%
pdfjs-print-progress-close-button = Cancel
pdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser.
pdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing.
pdfjs-toggle-sidebar-button =
.title = Toggle Sidebar
pdfjs-toggle-sidebar-notification-button =
.title = Toggle Sidebar (document contains outline/attachments/layers)
pdfjs-toggle-sidebar-button-label = Toggle Sidebar
pdfjs-document-outline-button =
.title = Show Document Outline (double-click to expand/collapse all items)
pdfjs-document-outline-button-label = Document Outline
pdfjs-attachments-button =
.title = Show Attachments
pdfjs-attachments-button-label = Attachments
pdfjs-layers-button =
.title = Show Layers (double-click to reset all layers to the default state)
pdfjs-layers-button-label = Layers
pdfjs-thumbs-button =
.title = Show Thumbnails
pdfjs-thumbs-button-label = Thumbnails
pdfjs-current-outline-item-button =
.title = Find Current Outline Item
pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-findbar-button =
.title = Find in Document
pdfjs-findbar-button-label = Find
pdfjs-additional-layers = Additional Layers
pdfjs-thumb-page-title =
.title = Page { $page }
pdfjs-thumb-page-canvas =
.aria-label = Thumbnail of Page { $page }
pdfjs-find-input =
.title = Find
.placeholder = Find in document…
pdfjs-find-previous-button =
.title = Find the previous occurrence of the phrase
pdfjs-find-previous-button-label = Previous
pdfjs-find-next-button =
.title = Find the next occurrence of the phrase
pdfjs-find-next-button-label = Next
pdfjs-find-highlight-checkbox = Highlight All
pdfjs-find-match-case-checkbox-label = Match Case
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-entire-word-checkbox-label = Whole Words
pdfjs-find-reached-top = Reached top of document, continued from bottom
pdfjs-find-reached-bottom = Reached end of document, continued from top
pdfjs-find-match-count =
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
pdfjs-find-not-found = Phrase not found
pdfjs-page-scale-width = Page Width
pdfjs-page-scale-fit = Page Fit
pdfjs-page-scale-auto = Automatic Zoom
pdfjs-page-scale-actual = Actual Size
pdfjs-page-scale-percent = { $scale }%
pdfjs-page-landmark =
.aria-label = Page { $page }
pdfjs-loading-error = An error occurred while loading the PDF.
pdfjs-invalid-file-error = Invalid or corrupted PDF file.
pdfjs-missing-file-error = Missing PDF file.
pdfjs-unexpected-response-error = Unexpected server response.
pdfjs-rendering-error = An error occurred while rendering the page.
pdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-text-annotation-type =
.alt = [{ $type } Annotation]
pdfjs-password-label = Enter the password to open this PDF file.
pdfjs-password-invalid = Invalid password. Please try again.
pdfjs-password-ok-button = OK
pdfjs-password-cancel-button = Cancel
pdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts.
pdfjs-editor-free-text-button =
.title = Text
pdfjs-editor-free-text-button-label = Text
pdfjs-editor-ink-button =
.title = Draw
pdfjs-editor-ink-button-label = Draw
pdfjs-editor-stamp-button =
.title = Add or edit images
pdfjs-editor-stamp-button-label = Add or edit images
pdfjs-editor-highlight-button =
.title = Highlight
pdfjs-editor-highlight-button-label = Highlight
pdfjs-highlight-floating-button1 =
.title = Highlight
.aria-label = Highlight
pdfjs-highlight-floating-button-label = Highlight
pdfjs-editor-remove-ink-button =
.title = Remove drawing
pdfjs-editor-remove-freetext-button =
.title = Remove text
pdfjs-editor-remove-stamp-button =
.title = Remove image
pdfjs-editor-remove-highlight-button =
.title = Remove highlight
pdfjs-editor-free-text-color-input = Color
pdfjs-editor-free-text-size-input = Size
pdfjs-editor-ink-color-input = Color
pdfjs-editor-ink-thickness-input = Thickness
pdfjs-editor-ink-opacity-input = Opacity
pdfjs-editor-stamp-add-image-button =
.title = Add image
pdfjs-editor-stamp-add-image-button-label = Add image
pdfjs-editor-free-highlight-thickness-input = Thickness
pdfjs-editor-free-highlight-thickness-title =
.title = Change thickness when highlighting items other than text
pdfjs-free-text2 =
.aria-label = Text Editor
.default-content = Start typing…
pdfjs-ink =
.aria-label = Draw Editor
pdfjs-ink-canvas =
.aria-label = User-created image
pdfjs-editor-alt-text-button =
.aria-label = Alt text
pdfjs-editor-alt-text-button-label = Alt text
pdfjs-editor-alt-text-edit-button =
.aria-label = Edit alt text
pdfjs-editor-alt-text-dialog-label = Choose an option
pdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.
pdfjs-editor-alt-text-add-description-label = Add a description
pdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions.
pdfjs-editor-alt-text-mark-decorative-label = Mark as decorative
pdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks.
pdfjs-editor-alt-text-cancel-button = Cancel
pdfjs-editor-alt-text-save-button = Save
pdfjs-editor-alt-text-decorative-tooltip = Marked as decorative
pdfjs-editor-alt-text-textarea =
.placeholder = For example, “A young man sits down at a table to eat a meal”
pdfjs-editor-resizer-top-left =
.aria-label = Top left corner — resize
pdfjs-editor-resizer-top-middle =
.aria-label = Top middle — resize
pdfjs-editor-resizer-top-right =
.aria-label = Top right corner — resize
pdfjs-editor-resizer-middle-right =
.aria-label = Middle right — resize
pdfjs-editor-resizer-bottom-right =
.aria-label = Bottom right corner — resize
pdfjs-editor-resizer-bottom-middle =
.aria-label = Bottom middle — resize
pdfjs-editor-resizer-bottom-left =
.aria-label = Bottom left corner — resize
pdfjs-editor-resizer-middle-left =
.aria-label = Middle left — resize
pdfjs-editor-highlight-colorpicker-label = Highlight color
pdfjs-editor-colorpicker-button =
.title = Change color
pdfjs-editor-colorpicker-dropdown =
.aria-label = Color choices
pdfjs-editor-colorpicker-yellow =
.title = Yellow
pdfjs-editor-colorpicker-green =
.title = Green
pdfjs-editor-colorpicker-blue =
.title = Blue
pdfjs-editor-colorpicker-pink =
.title = Pink
pdfjs-editor-colorpicker-red =
.title = Red
pdfjs-editor-highlight-show-all-button-label = Show all
pdfjs-editor-highlight-show-all-button =
.title = Show all
pdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description)
pdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description)
pdfjs-editor-new-alt-text-textarea =
.placeholder = Write your description here…
pdfjs-editor-new-alt-text-description = Short description for people who can’t see the image or when the image doesn’t load.
pdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate.
pdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more
pdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically
pdfjs-editor-new-alt-text-not-now-button = Not now
pdfjs-editor-new-alt-text-error-title = Couldn’t create alt text automatically
pdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later.
pdfjs-editor-new-alt-text-error-close-button = Close
pdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
.aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
pdfjs-editor-new-alt-text-added-button =
.aria-label = Alt text added
pdfjs-editor-new-alt-text-added-button-label = Alt text added
pdfjs-editor-new-alt-text-missing-button =
.aria-label = Missing alt text
pdfjs-editor-new-alt-text-missing-button-label = Missing alt text
pdfjs-editor-new-alt-text-to-review-button =
.aria-label = Review alt text
pdfjs-editor-new-alt-text-to-review-button-label = Review alt text
pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText }
pdfjs-image-alt-text-settings-button =
.title = Image alt text settings
pdfjs-image-alt-text-settings-button-label = Image alt text settings
pdfjs-editor-alt-text-settings-dialog-label = Image alt text settings
pdfjs-editor-alt-text-settings-automatic-title = Automatic alt text
pdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically
pdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who can’t see the image or when the image doesn’t load.
pdfjs-editor-alt-text-settings-download-model-label = Alt text AI model ({ $totalSize } MB)
pdfjs-editor-alt-text-settings-ai-model-description = Runs locally on your device so your data stays private. Required for automatic alt text.
pdfjs-editor-alt-text-settings-delete-model-button = Delete
pdfjs-editor-alt-text-settings-download-model-button = Download
pdfjs-editor-alt-text-settings-downloading-model-button = Downloading…
pdfjs-editor-alt-text-settings-editor-title = Alt text editor
pdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image
pdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text.
pdfjs-editor-alt-text-settings-close-button = Close
pdfjs-editor-undo-bar-message-highlight = Highlight removed
pdfjs-editor-undo-bar-message-freetext = Text removed
pdfjs-editor-undo-bar-message-ink = Drawing removed
pdfjs-editor-undo-bar-message-stamp = Image removed
pdfjs-editor-undo-bar-message-multiple =
{ $count ->
[one] { $count } annotation removed
*[other] { $count } annotations removed
}
pdfjs-editor-undo-bar-undo-button =
.title = Undo
pdfjs-editor-undo-bar-undo-button-label = Undo
pdfjs-editor-undo-bar-close-button =
.title = Close
pdfjs-editor-undo-bar-close-button-label = Close`)},b(Nm,nZ);let nQ=Nm;const bS=1e3,mS=50,MS=1e3;function NR(){return document.location.hash}var RF,Ql,kt,rs,HV,Ma,xs,hR,xh,jh,eR,hm,em;class JS{constructor({linkService:l,eventBus:d}){b(this,Ql),b(this,RF,null),this.linkService=l,this.eventBus=d,this._initialized=!1,this._fingerprint="",this.reset(),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",t=>{this._isPagesLoaded=!!t.pagesCount},{once:!0})})}initialize({fingerprint:l,resetHistory:d=!1,updateUrl:t=!1}){if(!l||typeof l!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const Z=this._fingerprint!==""&&this._fingerprint!==l;this._fingerprint=l,this._updateUrl=t===!0,this._initialized=!0,h(this,Ql,hm).call(this);const F=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=NR(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!h(this,Ql,Ma).call(this,F,!0)||d){const{hash:a,page:W,rotation:s}=h(this,Ql,hR).call(this,!0);if(!a||Z||d){h(this,Ql,kt).call(this,null,!0);return}h(this,Ql,kt).call(this,{hash:a,page:W,rotation:s},!0);return}const c=F.destination;h(this,Ql,xs).call(this,c,F.uid,!0),c.rotation!==void 0&&(this._initialRotation=c.rotation),c.dest?(this._initialBookmark=JSON.stringify(c.dest),this._destination.page=null):c.hash?this._initialBookmark=c.hash:c.page&&(this._initialBookmark=`page=${c.page}`)}reset(){this._initialized&&(h(this,Ql,eR).call(this),this._initialized=!1,h(this,Ql,em).call(this)),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:l=null,explicitDest:d,pageNumber:t}){if(!this._initialized)return;if(l&&typeof l!="string"){console.error(`PDFHistory.push: "${l}" is not a valid namedDest parameter.`);return}else if(Array.isArray(d)){if(!h(this,Ql,HV).call(this,t)&&(t!==null||this._destination)){console.error(`PDFHistory.push: "${t}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${d}" is not a valid explicitDest parameter.`);return}const Z=l||JSON.stringify(d);if(!Z)return;let F=!1;if(this._destination&&(GS(this._destination.hash,Z)||SS(this._destination.dest,d))){if(this._destination.page)return;F=!0}this._popStateInProgress&&!F||(h(this,Ql,kt).call(this,{dest:d,hash:Z,page:t,rotation:this.linkService.rotation},F),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(l){var d;if(this._initialized){if(!h(this,Ql,HV).call(this,l)){console.error(`PDFHistory.pushPage: "${l}" is not a valid page number.`);return}((d=this._destination)==null?void 0:d.page)!==l&&(this._popStateInProgress||(h(this,Ql,kt).call(this,{dest:null,hash:`page=${l}`,page:l,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||h(this,Ql,rs).call(this)}back(){if(!this._initialized||this._popStateInProgress)return;const l=window.history.state;h(this,Ql,Ma).call(this,l)&&l.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const l=window.history.state;h(this,Ql,Ma).call(this,l)&&l.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}}RF=new WeakMap,Ql=new WeakSet,kt=function(U,l=!1){const d=l||!this._destination,t={fingerprint:this._fingerprint,uid:d?this._uid:this._uid+1,destination:U};h(this,Ql,xs).call(this,U,t.uid);let Z;if(this._updateUrl&&U!=null&&U.hash){const F=document.location.href.split("#",1)[0];F.startsWith("file://")||(Z=`${F}#${U.hash}`)}d?window.history.replaceState(t,"",Z):window.history.pushState(t,"",Z)},rs=function(U=!1){if(!this._position)return;let l=this._position;if(U&&(l=Object.assign(Object.create(null),this._position),l.temporary=!0),!this._destination){h(this,Ql,kt).call(this,l);return}if(this._destination.temporary){h(this,Ql,kt).call(this,l,!0);return}if(this._destination.hash===l.hash||!this._destination.page&&this._numPositionUpdates<=mS)return;let d=!1;if(this._destination.page>=l.first&&this._destination.page<=l.page){if(this._destination.dest!==void 0||!this._destination.first)return;d=!0}h(this,Ql,kt).call(this,l,d)},HV=function(U){return Number.isInteger(U)&&U>0&&U<=this.linkService.pagesCount},Ma=function(U,l=!1){if(!U)return!1;if(U.fingerprint!==this._fingerprint)if(l){if(typeof U.fingerprint!="string"||U.fingerprint.length!==this._fingerprint.length)return!1;const[d]=performance.getEntriesByType("navi Line truncated
`);l.push(ea(d.join("")))}return l.join(`
`)}setDocument(l){var d,t,Z;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),(d=this.findController)==null||d.setDocument(null),(t=this._scriptingManager)==null||t.setDocument(null),(Z=n(this,aU))==null||Z.destroy(),R(this,aU,null)),this.pdfDocument=l,!l)return;const F=l.numPages,c=l.getPage(1),a=l.getOptionalContentConfig({intent:"display"}),W=n(this,QV)?l.getPermissions():Promise.resolve(),{eventBus:s,pageColors:V,viewer:Q}=this;R(this,JF,new AbortController);const{signal:i}=n(this,JF);if(F>rW.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const m=this._scrollMode=Wl.PAGE;s.dispatch("scrollmodechanged",{source:this,mode:m})}this._pagesCapability.promise.then(()=>{s.dispatch("pagesloaded",{source:this,pagesCount:F})},()=>{});const N=m=>{const M=this._pages[m.pageNumber-1];M&&n(this,MF).push(M)};s._on("pagerender",N,{signal:i});const e=m=>{m.cssTransform||(this._onePageRenderedCapability.resolve({timestamp:m.timestamp}),s._off("pagerendered",e))};s._on("pagerendered",e,{signal:i}),Promise.all([c,W]).then(([m,M])=>{var J,S;if(l!==this.pdfDocument)return;this._firstPageCapability.resolve(m),this._optionalContentConfigPromise=a;const{annotationEditorMode:G,annotationMode:X,textLayerMode:u}=h(this,al,Ym).call(this,M);if(u!==dt.DISABLE){const T=R(this,uF,document.createElement("div"));T.id="hiddenCopyElement",Q.before(T)}if(typeof AbortSignal.any=="function"&&G!==Ad.DISABLE){const T=G;l.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):fh(T)?(R(this,aU,new iG(this.container,Q,n(this,nV),s,l,V,n(this,aV),n(this,VV),n(this,iV),n(this,RV),n(this,w0),n(this,WV),n(this,hV))),s.dispatch("annotationeditoruimanager",{source:this,uiManager:n(this,aU)}),T!==Ad.NONE&&(T===Ad.STAMP&&((J=n(this,w0))==null||J.loadModel("altText")),n(this,aU).updateMode(T))):console.error(`Invalid AnnotationEditor mode: ${T}`)}const p=this._scrollMode===Wl.PAGE?null:Q,Y=this.currentScale,o=m.getViewport({scale:Y*yt.PDF_TO_CSS_UNITS});Q.style.setProperty("--scale-factor",o.scale),V!=null&&V.background&&Q.style.setProperty("--page-bg-color",V.background),((V==null?void 0:V.foreground)==="CanvasText"||(V==null?void 0:V.background)==="Canvas")&&(Q.style.setProperty("--hcm-highlight-filter",l.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),Q.style.setProperty("--hcm-highlight-selected-filter",l.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","ButtonText")));for(let T=1;T<=F;++T){const B=new Xm({container:p,eventBus:s,id:T,scale:Y,defaultViewport:o.clone(),optionalContentConfigPromise:a,renderingQueue:this.renderingQueue,textLayerMode:u,annotationMode:X,imageResourcesPath:this.imageResourcesPath,maxCanvasPixels:this.maxCanvasPixels,pageColors:V,l10n:this.l10n,layerProperties:this._layerProperties,enableHWA:n(this,sV)});this._pages.push(B)}(S=this._pages[0])==null||S.setPdfPage(m),this._scrollMode===Wl.PAGE?h(this,al,Ba).call(this):this._spreadMode!==Sd.NONE&&this._updateSpreadMode(),h(this,al,Bm).call(this,i).then(async()=>{var T,B;if(l!==this.pdfDocument)return;if((T=this.findController)==null||T.setDocument(l),(B=this._scriptingManager)==null||B.setDocument(l),n(this,uF)&&document.addEventListener("copy",h(this,al,om).bind(this,u),{signal:i}),n(this,aU)&&s.dispatch("annotationeditormodechanged",{source:this,mode:n(this,St)}),l.loadingParams.disableAutoFetch||F>rW.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let y=F-1;if(y<=0){this._pagesCapability.resolve();return}for(let w=2;w<=F;++w){const D=l.getPage(w).then(E=>{const I=this._pages[w-1];I.pdfPage||I.setPdfPage(E),--y===0&&this._pagesCapability.resolve()},E=>{console.error(`Unable to get page ${w} to initialize viewer`,E),--y===0&&this._pagesCapability.resolve()});w%rW.PAUSE_EAGER_PAGE_INIT===0&&await D}}),s.dispatch("pagesinit",{source:this}),l.getMetadata().then(({info:T})=>{l===this.pdfDocument&&T.Language&&(Q.lang=T.Language)}),this.defaultRenderingQueue&&this.update()}).catch(m=>{console.error("Unable to initialize viewer",m),this._pagesCapability.reject(m)})}setPageLabels(l){var d;if(this.pdfDocument){l?Array.isArray(l)&&this.pdfDocument.numPages===l.length?this._pageLabels=l:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let t=0,Z=this._pages.length;t<Z;t++)this._pages[t].setPageLabel(((d=this._pageLabels)==null?void 0:d[t])??null)}}_resetView(){var l,d;this._pages=[],this._currentPageNumber=1,this._currentScale=PQ,this._currentScaleValue=null,this._pageLabels=null,R(this,MF,new wS(Ph)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=Promise.withResolvers(),this._onePageRenderedCapability=Promise.withResolvers(),this._pagesCapability=Promise.withResolvers(),this._scrollMode=Wl.VERTICAL,this._previousScro Line truncated
+1
View File
@@ -0,0 +1 @@
import{d as Tt,r as x,c as st,a as At,o as jt,w as z,i as Ee,b as $e,e as _e,f as w,u as V,h as Lt,j as Dt,k as Ue,p as qe,n as Pe,_ as le,l as De,m as it,q as ve,s as _,t as O,v as c,x as i,V as U,y as D,z as F,A as Y,B as ut,C as I,D as Me,E as K,F as Z,G as ct,H as dt,I as vt,J as Mt,K as It,L as ie,M as ft,N as Bt,O as zt,P as Nt,Q as J,R as ee,S as ue,T as Te,U as G,W as Ht,X as Ie,Y as Ft,Z as oe,$ as B,a0 as N,a1 as Ut,a2 as ae,a3 as H,a4 as qt,a5 as Ae,a6 as fe,a7 as Be,a8 as Wt,a9 as mt,aa as ke,ab as gt,ac as Yt,ad as pt,ae as Ve,af as q,ag as Xt,ah as ht,ai as yt,aj as ce,ak as wt,al as he,am as bt,an as Gt,ao as $t,ap as Kt,aq as Zt,ar as Jt,as as Qt,at as ea,au as ta,av as aa,aw as na,ax as ra,ay as oa,az as la,aA as We,aB as sa,aC as _t,aD as ia,aE as ua,aF as ca,aG as da,aH as va,aI as fa,aJ as ma,aK as ga,aL as pa,aM as ha,aN as ya}from"./index-COjDMumS.js";import{V as kt}from"./VContainer-_Rd4jqOY.js";import{V as Ye}from"./VTextField-BjWksY-K.js";import{V as Vt}from"./VSpacer-Q-SG7gn8.js";import{V as wa}from"./VAlert-C5Ve5RMV.js";import{F as ba,m as $a,V as Xe}from"./VToolbar-DBXauuuI.js";import{V as _a}from"./VTextarea-qF2XqWL0.js";import{V as ka}from"./vcardUser-D1657SA7.js";import{V as ye,a as Va}from"./VList-CwTaIQsW.js";import{u as ze}from"./ssrBoot-Me6CX2Hk.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";const Sa=Tt("MainmenuStore",()=>{const e=x([]);return{portallinks:e,loadlinks:async()=>{const n=await st.get("api/navigation/links/");e.value=n.data}}});function Ge(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,t)}return n}function Q(e){for(var a=1;a<arguments.length;a++){var n=arguments[a]!=null?arguments[a]:{};a%2?Ge(Object(n),!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xa(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function Ke(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,t)=>(a.includes(t)||(n[t]=V(e[t])),n),{})}function we(e){return typeof e=="function"}function Ca(e){return Lt(e)||Dt(e)}function St(e,a,n){let t=e;const o=a.split(".");for(let l=0;l<o.length;l++){if(!t[o[l]])return n;t=t[o[l]]}return t}function Oe(e,a,n){return w(()=>e.some(t=>St(a,t,{[n]:!1})[n]))}function Ze(e,a,n){return w(()=>e.reduce((t,o)=>{const l=St(a,o,{[n]:!1})[n]||[];return t.concat(l)},[]))}function xt(e,a,n,t){return e.call(t,V(a),V(n),t)}function Ct(e){return e.$valid!==void 0?!e.$valid:!e}function Ra(e,a,n,t,o,l,s){let{$lazy:u,$rewardEarly:v}=o,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],f=arguments.length>8?arguments[8]:void 0,m=arguments.length>9?arguments[9]:void 0,y=arguments.length>10?arguments[10]:void 0;const p=x(!!t.value),r=x(0);n.value=!1;const g=z([a,t].concat(d,y),()=>{if(u&&!t.value||v&&!m.value&&!n.value)return;let h;try{h=xt(e,a,f,s)}catch($){h=Promise.reject($)}r.value++,n.value=!!r.value,p.value=!1,Promise.resolve(h).then($=>{r.value--,n.value=!!r.value,l.value=$,p.value=Ct($)}).catch($=>{r.value--,n.value=!!r.value,l.value=$,p.value=!0})},{immediate:!0,deep:typeof a=="object"});return{$invalid:p,$unwatch:g}}function Oa(e,a,n,t,o,l,s,u){let{$lazy:v,$rewardEarly:d}=t;const f=()=>({}),m=w(()=>{if(v&&!n.value||d&&!u.value)return!1;let y=!0;try{const p=xt(e,a,s,l);o.value=p,y=Ct(p)}catch(p){o.value=p}return y});return{$unwatch:f,$invalid:m}}function Ea(e,a,n,t,o,l,s,u,v,d,f){const m=x(!1),y=e.$params||{},p=x(null);let r,g;e.$async?{$invalid:r,$unwatch:g}=Ra(e.$validator,a,m,n,t,p,o,e.$watchTargets,v,d,f):{$invalid:r,$unwatch:g}=Oa(e.$validator,a,n,t,p,o,v,d);const h=e.$message;return{$message:we(h)?w(()=>h(Ke({$pending:m,$invalid:r,$params:Ke(y),$model:a,$response:p,$validator:l,$propertyPath:u,$property:s}))):h||"",$params:y,$pending:m,$invalid:r,$response:p,$unwatch:g}}function Pa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a=V(e),n=Object.keys(a),t={},o={},l={};let s=null;return n.forEach(u=>{const v=a[u];switch(!0){case we(v.$validator):t[u]=v;break;case we(v):t[u]={$validator:v};break;case u==="$validationGroups":s=v;break;case u.startsWith("$"):l[u]=v;break;default:o[u]=v}}),{rules:t,nestedValidators:o,config:l,validationGroups:s}}const Ta="__root";function Aa(e,a,n,t,o,l,s,u,v){const d=Object.keys(e),f=t.get(o,e),m=x(!1),y=x(!1),p=x(0);if(f){if(!f.$partial)return f;f.$unwatch(),m.value=f.$dirty.value}const r={$dirty:m,$path:o,$touch:()=>{m.value||(m.value=!0)},$reset:()=>{m.value&&(m.value=!1)},$commit:()=>{}};return d.length?(d.forEach(g=>{r[g]=Ea(e[g],a,r.$dirty,l,s,g,n,o,v,y,p)}),r.$externalResults=w(()=>u.value?[].coLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as f,s as u,Q as v,x as e,v as t,F as s,C as o,$ as i,E as r,A as d,y as c,R as V,t as h,U as $}from"./index-COjDMumS.js";import{V as m}from"./VContainer-_Rd4jqOY.js";import{V as b}from"./VPagination-D9kFqUDc.js";const y={props:{title:{type:String,default:"Название теста здесь"},time:{}}},C={class:"text-h5"},w={class:"text-h4 text-grey-lighten-1"};function B(_,a,l,x,g,p){return u(),v(V,null,[e(r,{class:"ma-0 border-b-thin"},{default:t(()=>[e(s,{cols:"auto",class:"flex-grow-1"},{default:t(()=>[a[0]||(a[0]=o("div",{class:"text-subtitle-1 text-grey-lighten-1"},"Тест",-1)),o("div",C,i(l.title),1)]),_:1}),e(s,{cols:"auto",class:"d-flex flex-column"},{default:t(()=>[a[1]||(a[1]=o("div",{class:"align-self-end text-grey-lighten-1"},"!!!",-1)),o("div",w,i(l.time)+"Таймер сюдаааа!!!",1)]),_:1})]),_:1}),e(r,{class:"ma-0 border-b-thin"},{default:t(()=>[e(s,{cols:"auto",class:"flex-grow-1"},{default:t(()=>[e(m,{class:"d-flex align-center max-width"},{default:t(()=>[e(d,{elevation:"1",color:"teal-darken-1",size:"x-small",rounded:"",icon:"mdi-information-outline"}),e(b,{length:25,"total-visible":20,"next-icon":"mdi-menu-right","prev-icon":"mdi-menu-left"},{item:t(n=>[c(i(n),1)]),_:1})]),_:1})]),_:1}),e(s,{cols:"auto",class:"align-self-center"},{default:t(()=>[e(d,{elevation:"0",color:"#0000001F",rounded:"1"},{default:t(()=>a[2]||(a[2]=[c("Выйти")])),_:1})]),_:1})]),_:1})],64)}const D=f(y,[["render",B]]),T={components:{HeaderDetailTesting:D}};function k(_,a,l,x,g,p){const n=$("HeaderDetailTesting");return u(),h(m,null,{default:t(()=>[e(n)]),_:1})}const E=f(T,[["render",k]]);export{E as default};
+1
View File
@@ -0,0 +1 @@
import{_ as s,b3 as a,t as o,v as e,E as r,s as n,x as c,y as l,F as f}from"./index-COjDMumS.js";const p={setup(){a()}};function x(i,t,u,_,d,g){return n(),o(r,null,{default:e(()=>[c(f,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>t[0]||(t[0]=[l(" F.A.Q. ")])),_:1})]),_:1})}const V=s(p,[["render",x]]);export{V as default};
+1
View File
@@ -0,0 +1 @@
import{_ as s,t as a,v as t,E as o,s as r,x as n,y as c,F as l}from"./index-COjDMumS.js";const f={setup(){}};function x(d,e,i,p,_,u){return r(),a(o,null,{default:t(()=>[n(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:t(()=>e[0]||(e[0]=[c(" Обратная связь ")])),_:1})]),_:1})}const h=s(f,[["render",x]]);export{h as default};
+1
View File
@@ -0,0 +1 @@
import{_ as f,r as p,T as h,f as _,t as c,v as e,a5 as x,s as l,Q as g,S as V,R as b,x as a,L as w,B as k,E as u,F as s,y as C,$ as v,X as d,D as y,a0 as T}from"./index-COjDMumS.js";import{V as $,a as B}from"./VCarouselItem-o6gyOaNw.js";import{V as F}from"./VContainer-_Rd4jqOY.js";import{V as I}from"./VTextarea-qF2XqWL0.js";import"./VWindowItem-rSD9c8zs.js";import"./ssrBoot-Me6CX2Hk.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";const L={setup(){const i=x.slice(0,-1),o=p([{link:""}]);h.get("api/fns/links/").then(t=>{o.value=t.data});const n=_(()=>window.innerHeight-50);return{burl:i,carous:o,carushi:n}}};function N(i,o,n,t,R,D){return l(),c($,{cover:"",height:t.carushi,"hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white"},{default:e(()=>[(l(!0),g(b,null,V(t.carous,(r,m)=>(l(),c(B,{key:m,src:`${t.burl}${r.link}`,cover:"",eager:""},{default:e(()=>[a(F,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:e(()=>[a(w,{class:"bgCard h-100 d-flex flex-column"},{default:e(()=>[a(k,{class:"ma-2 text-h3 text-uppercase titles py-5 flex-column"},{default:e(()=>[a(u,null,{default:e(()=>[a(s,{class:"pa-0 pl-1 align-self-center"},{default:e(()=>[C(v(r.title),1)]),_:2},1024),a(s,{class:"flex-grow-0 pa-0 pr-1"},{default:e(()=>[a(d,{width:"50","aspect-ratio":1,src:`${t.burl}${r.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),"text"in r&&r.text.length>0?(l(),c(y,{key:0,class:"ml-2 mb-0 mb-2 flex-grow-0 pb-3 text-h6 h-100 pl-3 py-3 mr-1"},{default:e(()=>[a(u,null,{default:e(()=>[a(s,{cols:"6",class:"bgText"},{default:e(()=>[a(I,{class:"mt-n3 text-black textareas pt-2 font-weight-medium","model-value":r.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024),a(s,{cols:"6",class:"bgText"},{default:e(()=>[a(d,{"aspect-ratio":1,src:`${t.burl}${r.link2}`},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):T("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1},8,["height"])}const z=f(L,[["render",N]]);export{z as default};
+2
View File
@@ -0,0 +1,2 @@
import{_ as B,r as w,Y as Pe,s as v,t as p,v as u,Q as m,S as x,R as M,a5 as Q,T as z,x as c,L as A,B as G,E as O,F as C,y as T,$ as D,X as ve,a0 as g,D as K,C as b,aa as Re,aO as Ne,aP as Be,aQ as Ue,aR as ke,aS as Ee,U as H,Z as ne,A as ae,aT as ze,M as me,q as fe,f as ye,O as Te,P as Ce,G as Me,l as Se,H as Ge,I as qe,aU as ue,aV as k,aW as ge,z as $,aN as W,aX as R,aJ as re,aY as y,aZ as Ve,K as Oe,a_ as Ke,a$ as Z,a1 as Xe,b0 as xe,b1 as Ze,V as X,a3 as Ae,b2 as Je,a2 as Qe,m as $e,b3 as et,b4 as tt}from"./index-COjDMumS.js";import{V as st,a as _e}from"./VCarouselItem-o6gyOaNw.js";import{V as We}from"./VContainer-_Rd4jqOY.js";import{V as ce}from"./VTextarea-qF2XqWL0.js";import{N as it}from"./NewsCard-Dbnw4IXW.js";import{L as at}from"./load-round-_0dE5waF.js";import{V as lt}from"./vcardUser-D1657SA7.js";import{V as he}from"./VTextField-BjWksY-K.js";import{V as He,b as nt}from"./VList-CwTaIQsW.js";import{V as rt}from"./VSwitch-rZtxTrUU.js";import{V as Le}from"./VFileInput-Busl2805.js";import{V as ot,a as dt}from"./VLocaleProvider-CVl-Ln1o.js";import"./VWindowItem-rSD9c8zs.js";import"./ssrBoot-Me6CX2Hk.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";import"./icoUser-_yXQAwDo.js";import"./VSelectionControl-BK9dDQDu.js";import"./VSpacer-Q-SG7gn8.js";const ut={setup(){const s=w(0),e=Q.slice(0,-1),t=w(null),a=w([{link:"/media/newsimage/scales.jpg",title:null,text:""}]),n=Pe().alert;(()=>{z.get("api/navigation/carousels/").then(o=>{o.data.mess!=""&&(n.alert=!0,n.text=o.data.mess,n.color="red-darken-2",n.ico="mdi-alert-outline"),o.data.result.length>0&&(a.value=o.data.result)})})();const r=w(1e4);return{slidechanged:()=>{a.value[s.value].link.endsWith("mp4")&&t.value.forEach(o=>{o.currentSrc!=e+a.value[s.value].link&&o.pause()}),a.value[s.value].link.endsWith("mp4")?r.value=1e10:r.value=1e4},videoElement:t,currentslide:s,interval:r,burl:e,carous:a,ended:o=>{o.target.currentTime=0,o.target.pause(),document.exitFullscreen(),s.value=s.value<a.value.length-1?s.value+1:0}}}},ct={class:"d-flex justify-center"},ht=["src"];function vt(s,e,t,a,n,i){return v(),p(st,{modelValue:a.currentslide,"onUpdate:modelValue":[e[2]||(e[2]=r=>a.currentslide=r),a.slidechanged],interval:a.interval,cover:"",cycle:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":a.carous.length<2?!1:"hover",color:"white"},{default:u(()=>[(v(!0),m(M,null,x(a.carous,(r,l)=>(v(),m(M,{key:l},[r.link.endsWith("mp4")?(v(),p(_e,{key:1},{default:u(()=>[b("div",ct,[b("video",{ref_for:!0,ref:"videoElement",style:{height:"450px"},controls:"",preload:"metadata",onEnded:e[0]||(e[0]=(...d)=>a.ended&&a.ended(...d)),onLoadedmetadata:e[1]||(e[1]=d=>a.interval=1e10)},[b("source",{src:`${a.burl}${r.link}`,type:"video/mp4"},null,8,ht),e[3]||(e[3]=T(" Текущий браузер не поддерживает воспроизведение этого видео. "))],544)])]),_:2},1024)):(v(),p(_e,{key:0,src:`${a.burl}${r.link}`,cover:"",eager:""},{default:u(()=>[c(We,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:u(()=>[r.text!=""||r.title!=null?(v(),p(A,{key:0,class:"bgCard h-100 d-flex flex-column"},{default:u(()=>[r.title!=null?(v(),p(G,{key:0,class:"text-h3 text-uppercase titles text-text_carous ma-1 mb-0"},{default:u(()=>[c(O,{"no-gutters":""},{default:u(()=>[c(C,{class:"align-self-center"},{default:u(()=>[T(D(r.title),1)]),_:2},1024),c(C,{class:"flex-grow-0"},{default:u(()=>[c(ve,{width:"50","aspect-ratio":1,src:`${a.burl}${r.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):g("",!0),r.text!=""?(v(),p(K,{key:1,class:"w-50 flex-grow-0 text-h6 bgText overflow-auto ma-1 pa-0"},{default:u(()=>[c(ce,{class:"text-text_caroustext-black textareas font-weight-medium nocursor","model-value":r.text,variant:"solo",readonly:"","auto-grow":"",rows:"1","hide-details":"",flat:"","bg-color":"transparent"},null,8,["model-value"])]),_:2},1024)):g("",!0)]),_:2},1024)):g("",!0)]),_:2},1024)]),_:2},1032,["src"]))],64))),128))]),_:1},8,["modelValue","interval","show-arrows","onUpdate:modelValue"])}const mt=B(ut,[["render",vt]]),Ie=Re()({name:"VSlideGroupItem",props:Ne(),emits:{"group:selected":s=>!0},setup(s,e){let{slots:t}=e;const a=Be(s,Ue);return()=>{var n;return(n=t.default)==null?void 0:n.call(t,{isSelected:a.isSelected.value,select:a.select,toggle:a.toggle,selectedClass:a.selectedClass.value})}}}),ft={props:{digitalData:{type:Object,default:{}}},setup(){const s=Q.slice(0,-1);return{model:w(!1),burl:s}}};function yt(s,e,t,a,n,i){const r=H("vue3-autocounter");return v(),p(A,{class:"d-flex ml-3"},{default:u(()=>[c(Ee,{class:"mx-auto",elevation:"0","max-width":"813"},{default:u(()=>[c(ke,{modelValue:a.model,"onUpdate:modelValue":e[0]||(e[0]=l=>a.model=l),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:u(()=>[(v(!0),m(M,null,x(t.digitalData,l=>(v(),p(Ie,{key:l},{default:u(()=>[c(A,{class:"ma-2 mt-4 Line truncated
A valid view must be one of: ${pe.join(", ")}.`),s="week"),this.enabledViews.includes(s)||(console.warn(`Vue Cal: the provided active-view "${s}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),s=this.enabledViews[0]),s},switchToNarrowerView(s=null){this.transitionDirection="right";const e=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];e&&this.switchView(e,s)},switchView(s,e=null,t=!1){s=this.validateView(s);const a=this.utils.date,n=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&t){if(this.view.id===s)return;const l=this.enabledViews;this.transitionDirection=l.indexOf(this.view.id)>l.indexOf(s)?"left":"right"}const i=this.view.id;switch(this.view.events=[],this.view.id=s,this.view.firstCellDate=null,this.view.lastCellDate=null,e||(e=this.view.selectedDate||this.view.startDate),s){case"years":{this.view.startDate=new Date(Math.floor(e.getFullYear()/25)*25||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break}case"year":{this.view.startDate=new Date(e.getFullYear(),0,1),this.view.endDate=new Date(e.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break}case"month":{this.view.startDate=new Date(e.getFullYear(),e.getMonth(),1),this.view.endDate=new Date(e.getFullYear(),e.getMonth()+1,1),this.view.endDate.setSeconds(-1);let l=new Date(this.view.startDate);if(l.getDay()!==(this.startWeekOnSunday?0:1)&&(l=a.getPreviousFirstDayOfWeek(l,this.startWeekOnSunday)),this.view.firstCellDate=l,this.view.lastCellDate=a.addDays(l,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const d=this.view.firstCellDate.getDay()===6&&!this.startWeekOnSunday?2:1;this.view.firstCellDate=a.addDays(this.view.firstCellDate,d)}if([0,6].includes(this.view.startDate.getDay())){const d=this.view.startDate.getDay()===6?2:1;this.view.startDate=a.addDays(this.view.startDate,d)}if([0,6].includes(this.view.lastCellDate.getDay())){const d=this.view.lastCellDate.getDay()===0&&!this.startWeekOnSunday?2:1;this.view.lastCellDate=a.subtractDays(this.view.lastCellDate,d)}if([0,6].includes(this.view.endDate.getDay())){const d=this.view.endDate.getDay()===0?2:1;this.view.endDate=a.subtractDays(this.view.endDate,d)}}break}case"week":{e=a.getPreviousFirstDayOfWeek(e,this.startWeekOnSunday);const l=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?a.addDays(e,1):e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=a.addDays(e,l),this.view.endDate.setSeconds(-1);break}case"day":{this.view.startDate=e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(e),this.view.endDate.setHours(23,59,59,0);break}}this.addEventsToView();const r=this.view.startDate&&this.view.startDate.getTime();if(!(i===s&&r===n)&&(this.$emit("update:activeView",s),this.ready)){const l=this.view.startDate,d={view:s,startDate:l,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:a.getWeek(this.startWeekOnSunday?a.addDays(l,1):l)}:{}};this.$emit("view-change",d)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(s=!0){const e=this.utils.date;this.transitionDirection=s?"right":"left";const t=s?1:-1;let a=null;const{startDate:n,id:i}=this.view;switch(i){case"years":a=new Date(n.getFullYear()+25*t,0,1);break;case"year":a=new Date(n.getFullYear()+1*t,1,1);break;case"month":a=new Date(n.getFullYear(),n.getMonth()+1*t,1);break;case"week":a=e[s?"addDays":"subtractDays"](e.getPreviousFirstDayOfWeek(n,this.startWeekOnSunday),7);break;case"day":a=e[s?"addDays":"subtractDays"](n,1);const r=a.getDay(),l=this.startWeekOnSunday?r:(r||7)-1;if(this.weekDays[l].hide){const o=this.weekDays.map((f,_)=>({...f,i:_}));let h=0;s?([...o.slice(l),...o].find(f=>(h++,!f.hide)).i,h--):[...o,...o.slice(0,l)].reverse().find(f=>(h++,!f.hide)).i,a=e[s?"addDays":"subtractDays"](a,h)}break}a&&this.switchView(i,a)},addEventsToView(s=[]){const e=this.utils.event,{startDate:t,endDate:a,firstCellDate:n,lastCellDate:i}=this.view;if(s.length||(this.view.events=[]),s=s.length?s:[...this.mutableEvents],!s||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let r=s.filter(l=>e.eventInRange(l,t,a));!this.isYearsOrYearView&&!(this.isMonthView&&!this.eventsOnMonthView)&&(r=r.map(l=>l.daysCount>1?e.createEventSegments(l,n||t,i||a):l)),this.view.events.push(...r),this.isMonthView&&(this.view.outOfScopeEvents=[],s.forEach(l=>{(e.eventInRange(l,n,t)||e.eventInRange(l,a,i))&&(this.view.events.some(d=>d._eid===l._eid)||this.view.outOfScopeEvents.push(l))}))},findAncestor(s,e){for(;(s=s.parentElement)&&!s.classList.contains(e););return s},isDOMElementAnEvent(s){return s.classList.contains("vuecal__event")||this.findAncestor(s,"vuecal__event")},onMouseMove(s){co Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as s,b3 as a,t as o,v as e,E as r,s as n,x as c,y as l,F as f}from"./index-COjDMumS.js";const i={setup(){a()}};function p(x,t,u,_,d,g){return n(),o(r,null,{default:e(()=>[c(f,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>t[0]||(t[0]=[l(" Охрана труда ")])),_:1})]),_:1})}const V=s(i,[["render",p]]);export{V as default};
+1
View File
@@ -0,0 +1 @@
import{l as p,_ as V,bG as v,U as I,s as f,t as D,v as l,x as e,B as T,y as _,$ as c,E as d,F as r,X as L,C as o,V as m,Z as b,aN as N,D as z,Q as y,A as B,L as S,a5 as k,T as M,bK as O}from"./index-COjDMumS.js";import{i as j}from"./icoUser-_yXQAwDo.js";const A=p(),Y={components:{icoUser:j},name:"NewsCard",props:{news:{type:Object,default:{}}},setup(g,{emit:n}){const s=k.slice(0,-1),a=t=>{let i=new DOMParser().parseFromString(t,"text/html").body.textContent||"";i=i.replaceAll('src="/media/uploads',`src="${k}media/uploads`);const C=i.split(" ").slice(0,50);return`${i.split(" ").slice(0,50).join(" ")} ${C.length<50?"":"..."}`},x=(t,h)=>{M.post("api/navigation/newscrossroad/",{news:t,scores:h}).then(i=>{g.news.scores=i.data})},w=()=>{n("openOneImg")};function u(t){return O(t).format("DD.MM.YYYY")}return{accountStore:A,burl:s,limitText:a,splitname:v,toggleIncrementLike:x,openOneImg:w,formatDate:u}}},U={class:"justify-self-end"},E={class:"subheading me-2"},F={class:"subheading me-2"},H={class:"subheading"},R={class:"subheading"},G=["innerHTML"],K={key:1,class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},P={class:"text-caption align-self-center"};function Q(g,n,s,a,x,w){const u=I("ico-user");return f(),D(S,{class:"rounded-0 h-100 flex-column d-flex","min-height":"400","max-height":"400"},{default:l(()=>[e(T,{class:""},{default:l(()=>[_(c(s.news.title),1)]),_:1}),e(d,{class:"flex-grow-0"},{default:l(()=>[e(r,{class:"d-flex flex-column"},{default:l(()=>[e(L,{src:`${a.burl}${s.news.link}`,height:"170px",width:"92%",class:"mx-auto",cover:"",onClick:n[0]||(n[0]=t=>a.openOneImg(s.news.link))},null,8,["src"])]),_:1})]),_:1}),e(d,{class:"ma-0 flex-grow-0"},{default:l(()=>[e(r,{class:"py-1 pl-4",lg:"5",md:"12",sm:"12"},{default:l(()=>[e(u,{author:s.news.author},null,8,["author"])]),_:1}),e(r,{lg:"7",md:"12",sm:"12",class:"py-1 text-end pr-4"},{default:l(()=>[o("div",U,[e(m,{size:"x-small",class:"me-1",icon:s.news.scores.filter(t=>t.user==a.accountStore.user.login&&t.score==!0).length>0?"mdi-thumb-up":"mdi-thumb-up-outline",onClick:n[1]||(n[1]=t=>a.toggleIncrementLike(s.news.id,!0))},null,8,["icon"]),o("span",E,c(s.news.scores.filter(t=>t.score==!0).length),1),n[3]||(n[3]=o("span",{class:"me-1"}," · ",-1)),e(m,{size:"x-small",class:"me-1",icon:s.news.scores.filter(t=>t.user==a.accountStore.user.login&&t.score==!1).length>0?"mdi-thumb-down":"mdi-thumb-down-outline",onClick:n[2]||(n[2]=t=>a.toggleIncrementLike(s.news.id,!1))},null,8,["icon"]),o("span",F,c(s.news.scores.filter(t=>t.score==!1).length),1),n[4]||(n[4]=o("span",{class:"me-1"}," · ",-1)),e(m,{size:"x-small",class:"me-1",icon:"mdi-message-text-outline"}),o("span",H,c(s.news.comment.length),1),n[5]||(n[5]=o("span",{class:"me-1"}," · ",-1)),e(m,{size:"x-small",class:"me-1 mb-1",icon:"mdi-image"}),o("span",R,c(s.news.gallery.length),1)])]),_:1})]),_:1}),e(b,{class:"mx-4"}),e(d,{class:"ma-0 overflow-auto"},{default:l(()=>[e(r,{class:N(["py-0",s.news.text.length==0?"align-self-center":"my-3"])},{default:l(()=>[e(z,{class:"py-0 px-2"},{default:l(()=>[s.news.text.length>0?(f(),y("div",{key:0,innerHTML:a.limitText(s.news.text)},null,8,G)):(f(),y("div",K,"Без описания"))]),_:1})]),_:1},8,["class"])]),_:1}),e(b,{class:"mx-4"}),e(d,{class:"flex-grow-0 ma-0"},{default:l(()=>[e(r,{class:"d-flex justify-space-between"},{default:l(()=>[e(B,{color:"more_details_btn",to:`/newsfull?id=${s.news.id}`,size:"small",rounded:"xl","append-icon":"mdi-step-forward-2"},{default:l(()=>n[6]||(n[6]=[_(" Подробнее ")])),_:1},8,["to"]),o("span",P,c(a.formatDate(s.news.cdate)),1)]),_:1})]),_:1})]),_:1})}const q=V(Y,[["render",Q]]);export{q as N};
+1
View File
@@ -0,0 +1 @@
import{_,r as c,s as u,t as g,v as a,x as o,E as m,Q as v,S as x,R as V,F as d,A as y,y as N,$ as C,aT as h,T as A,U as w,b3 as b}from"./index-COjDMumS.js";import{N as k}from"./NewsCard-Dbnw4IXW.js";import{V as $}from"./VPagination-D9kFqUDc.js";import{V as U}from"./VSelect-CYP9gZOZ.js";import"./icoUser-_yXQAwDo.js";import"./VTextField-BjWksY-K.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";import"./VList-CwTaIQsW.js";import"./ssrBoot-Me6CX2Hk.js";import"./VCheckboxBtn-MbVoU8jL.js";import"./VSelectionControl-BK9dDQDu.js";const B={components:{NewsCard:k},setup(){const i=c([]),s=c(0),r=c(1),e=c(8),f=h(),p=c(0),l=()=>{A.get(`api/navigation/newscrossroad/?name=${f.path.slice(1)}&page=${r.value-1}&countpage=${e.value}`).then(n=>{i.value=n.data.result,s.value=n.data.countpage/e.value,p.value=s.value<=1?1:Math.ceil(s.value)})};return l(),{newsAll:i,pager:n=>{r.value=Number(n),l()},page:r,countpage:e,visiblePage:p,loadNewsAll:l}}};function P(i,s,r,e,f,p){const l=w("NewsCard");return u(),g(m,{class:"py-2"},{default:a(()=>[o(d,{class:"d-flex flex-column"},{default:a(()=>[o(m,{class:"h-0 overflow-auto"},{default:a(()=>[(u(!0),v(V,null,x(e.newsAll,(t,n)=>(u(),g(d,{key:n,xl:"3",lg:"4",md:"12",sm:"12",xs:"12",cols:"12",class:"d-flex pa-0 flex-column"},{default:a(()=>[o(l,{news:t,class:"ma-1"},null,8,["news"])]),_:2},1024))),128))]),_:1}),o(m,{class:"flex-grow-0"},{default:a(()=>[o(d,{class:"pa-0"},{default:a(()=>[o($,{density:"compact",modelValue:e.page,"onUpdate:modelValue":[s[0]||(s[0]=t=>e.page=t),e.loadNewsAll],length:e.visiblePage,"total-visible":7},{item:a(t=>[o(y,{icon:"",density:"compact",color:t.isActive?"more_details_btn":"grey-ligten-3",onClick:n=>e.pager(t.page)},{default:a(()=>[N(C(t.page),1)]),_:2},1032,["color","onClick"])]),_:1},8,["modelValue","length","onUpdate:modelValue"])]),_:1}),o(d,{class:"flex-grow-0 py-0"},{default:a(()=>[o(U,{style:{width:"53px"},"hide-details":"",density:"compact","hide-selected":"",modelValue:e.countpage,"onUpdate:modelValue":[s[1]||(s[1]=t=>e.countpage=t),e.loadNewsAll],rounded:"",variant:"underlined",items:[8,16,24,32,40]},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})}const R=_(B,[["render",P]]),S={components:{newsCrossroad:R},setup(){b()}};function T(i,s,r,e,f,p){const l=w("news-crossroad");return u(),g(m,{class:"justify-center ma-0"},{default:a(()=>[o(d,{class:"flex-column d-flex"},{default:a(()=>[o(l)]),_:1})]),_:1})}const K=_(S,[["render",T]]);export{K as default};
+1
View File
@@ -0,0 +1 @@
import{_ as f,r as V,s as o,t as r,v as a,x as t,L as m,Q as i,S as p,R as b,F as d,aV as _,E as g,y as v,$ as x}from"./index-COjDMumS.js";import{V as k,a as w}from"./VTabs-BH9jz0Y6.js";import{V as y}from"./VWindowItem-rSD9c8zs.js";const T={props:{tabs:{type:Object,default:()=>{}}},setup(){return{tab:V(null)}}};function B(n,l,u,s,C,S){return o(),r(g,{"no-gutters":"",class:"flex-column gap pa-1"},{default:a(()=>[t(d,{class:"v-col-auto"},{default:a(()=>[t(m,null,{default:a(()=>[t(k,{modelValue:s.tab,"onUpdate:modelValue":l[0]||(l[0]=e=>s.tab=e),"bg-color":"teal-darken-1","slider-color":"teal-lighten-3","selected-class":"active-tab",grow:!0},{default:a(()=>[(o(!0),i(b,null,p(u.tabs,(e,c)=>(o(),r(w,{value:e.value,key:c},{default:a(()=>[v(x(e.title),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(d,{class:""},{default:a(()=>[t(y,{modelValue:s.tab,"onUpdate:modelValue":l[1]||(l[1]=e=>s.tab=e),class:"h-100"},{default:a(()=>[_(n.$slots,"item")]),_:3},8,["modelValue"])]),_:3})]),_:3})}const N=f(T,[["render",B]]);export{N as P};
@@ -0,0 +1 @@
import{a6 as h,a7 as k,b5 as V,ao as I,a9 as b,aa as v,ab as x,b6 as y,x as l,aO as C,aP as S,_ as G,b3 as P,t as p,v as t,E as f,s as d,Q as T,S as B,R as w,F as g,A as N,b7 as R,C as $,$ as D}from"./index-COjDMumS.js";import{V as F}from"./VContainer-_Rd4jqOY.js";const _=Symbol.for("vuetify:v-item-group"),O=h({...k(),...V({selectedClass:"v-item--selected"}),...I(),...b()},"VItemGroup"),Y=v()({name:"VItemGroup",props:O(),emits:{"update:modelValue":e=>!0},setup(e,c){let{slots:a}=c;const{themeClasses:r}=x(e),{isSelected:u,select:i,next:s,prev:o,selected:m}=y(e,_);return()=>l(e.tag,{class:["v-item-group",r.value,e.class],style:e.style},{default:()=>{var n;return[(n=a.default)==null?void 0:n.call(a,{isSelected:u,select:i,next:s,prev:o,selected:m.value})]}})}}),A=v()({name:"VItem",props:C(),emits:{"group:selected":e=>!0},setup(e,c){let{slots:a}=c;const{isSelected:r,select:u,toggle:i,selectedClass:s,value:o,disabled:m}=S(e,_);return()=>{var n;return(n=a.default)==null?void 0:n.call(a,{isSelected:r.value,selectedClass:s.value,select:u,toggle:i,value:o.value,disabled:m.value})}}}),E={setup(){return P(),{activates:[{name:"Комиссии",link:"http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_committees"},{name:"Ответственность",link:"http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_departments"}]}}},K={class:"text-h5 text-grey flex-grow-1 text-center"};function j(e,c,a,r,u,i){return d(),p(f,{class:"align-center"},{default:t(()=>[l(g,{class:"mt-4 text--lighten-1 font-weight-light"},{default:t(()=>[l(Y,{mandatory:""},{default:t(()=>[l(F,null,{default:t(()=>[l(f,{class:"justify-center"},{default:t(()=>[(d(!0),T(w,null,B(r.activates,s=>(d(),p(g,{key:s,cols:"4",md:"2"},{default:t(()=>[l(A,null,{default:t(({isSelected:o,toggle:m})=>[l(N,{color:o?"primary":"",class:"d-flex align-center pa-6",dark:"",href:s.link,target:s.link?"_blank":""},{default:t(()=>[l(R,null,{default:t(()=>[$("div",K,D(s.name),1)]),_:2},1024)]),_:2},1032,["color","href","target"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const q=G(E,[["render",j]]);export{q as default};
+1
View File
@@ -0,0 +1 @@
import{C as b}from"./CatalogTest-DMixOACb.js";import{_ as g,r as u,w as p,f as V,t as f,v as e,T as C,s as v,x as l,Q as x,S as _,R as k,A as d,y as n,U as B,$ as y}from"./index-COjDMumS.js";import{V as A}from"./VContainer-_Rd4jqOY.js";import{V as w,c as m,b as F,a as I}from"./VTabs-BH9jz0Y6.js";import"./VTextField-BjWksY-K.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";import"./VWindowItem-rSD9c8zs.js";import"./ssrBoot-Me6CX2Hk.js";const S={components:{CatalogTest:b},setup(){const o=u(0),t=u(""),i=u([]),a=()=>{let c=o.value==0?"?status=active":o.value==1?"?status=completed":"";C.get(`/api/tests/gettests/${c}`).then(r=>i.value=r.data).finally(()=>{o.value==0&&(t.value=i.value.length)})};a(),p(()=>o.value,()=>{a()});const T=V(()=>[{value:0,title:`Назначенные (${t.value})`},{value:1,title:"Завершенные"},{value:2,title:"Каталог"}]);return{activeTab:o,tabs:T,getAllTests:i}}};function U(o,t,i,a,T,c){const r=B("CatalogTest");return v(),f(A,{fluid:!0},{default:e(()=>[l(w,{modelValue:a.activeTab,"onUpdate:modelValue":t[0]||(t[0]=s=>a.activeTab=s),class:"mb-2 text-teal-darken-4"},{default:e(()=>[(v(!0),x(k,null,_(a.tabs,s=>(v(),f(I,{key:s.value,value:s.value},{default:e(()=>[n(y(s.title),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),l(F,{modelValue:a.activeTab,"onUpdate:modelValue":t[1]||(t[1]=s=>a.activeTab=s),class:"border-t-thin"},{default:e(()=>[l(m,{class:"my-2"},{default:e(()=>[l(r,{title:"Назначенные",activeTab:a.activeTab,testingCard:a.getAllTests},{buttons:e(()=>[l(d,{color:"#00897B1F",class:"mr-2 text-teal-darken-1",elevation:"0"},{default:e(()=>t[2]||(t[2]=[n(" Тренироваться ")])),_:1}),l(d,{color:"teal-darken-1",elevation:"0"},{default:e(()=>t[3]||(t[3]=[n(" Пройти ")])),_:1})]),_:1},8,["activeTab","testingCard"])]),_:1}),l(m,null,{default:e(()=>[l(r,{title:"Завершенные",activeTab:a.activeTab,testingCard:a.getAllTests},{results:e(()=>t[4]||(t[4]=[])),buttons:e(()=>[l(d,{color:"#00897B1F",class:"mr-2 text-teal-darken-1",elevation:"0"},{default:e(()=>t[5]||(t[5]=[n(" Результаты ")])),_:1})]),_:1},8,["activeTab","testingCard"])]),_:1}),l(m,null,{default:e(()=>[l(r,{title:"Каталог",activeTab:a.activeTab,testingCard:a.getAllTests},{buttons:e(()=>[l(d,{color:"#00897B1F",class:"mr-2 text-teal-darken-1",elevation:"0"},{default:e(()=>t[6]||(t[6]=[n(" Тренироваться ")])),_:1})]),_:1},8,["activeTab","testingCard"])]),_:1})]),_:1},8,["modelValue"])]),_:1})}const z=g(S,[["render",U]]);export{z as default};
+1
View File
@@ -0,0 +1 @@
import{C as b}from"./CatalogTest-DMixOACb.js";import{_ as g,r as u,w as p,f as V,t as f,v as e,T as C,s as v,x as l,Q as x,S as _,R as k,A as d,y as n,U as B,$ as y}from"./index-COjDMumS.js";import{V as A}from"./VContainer-_Rd4jqOY.js";import{V as w,c as m,b as F,a as I}from"./VTabs-BH9jz0Y6.js";import"./VTextField-BjWksY-K.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";import"./VWindowItem-rSD9c8zs.js";import"./ssrBoot-Me6CX2Hk.js";const U={components:{CatalogTest:b},setup(){const o=u(0),t=u(""),i=u([]),a=()=>{let c=o.value==0?"?status=active":o.value==1?"?status=completed":"";C.get(`/api/tests/gettests/${c}`).then(r=>i.value=r.data).finally(()=>{o.value==0&&(t.value=i.value.length)})};a(),p(()=>o.value,()=>{a()});const T=V(()=>[{value:0,title:`Назначенные (${t.value})`},{value:1,title:"Завершенные"},{value:2,title:"Каталог"}]);return{activeTab:o,tabs:T,getAllTests:i}}};function N(o,t,i,a,T,c){const r=B("CatalogTest");return v(),f(A,{fluid:!0},{default:e(()=>[l(w,{modelValue:a.activeTab,"onUpdate:modelValue":t[0]||(t[0]=s=>a.activeTab=s),class:"mb-2 text-teal-darken-4"},{default:e(()=>[(v(!0),x(k,null,_(a.tabs,s=>(v(),f(I,{key:s.value,value:s.value},{default:e(()=>[n(y(s.title),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),l(F,{modelValue:a.activeTab,"onUpdate:modelValue":t[1]||(t[1]=s=>a.activeTab=s),class:"border-t-thin"},{default:e(()=>[l(m,{class:"my-2"},{default:e(()=>[l(r,{title:"Назначенные",activeTab:a.activeTab,testingCard:a.getAllTests},{buttons:e(()=>[l(d,{color:"#00897B1F",class:"mr-2 text-teal-darken-1",elevation:"0"},{default:e(()=>t[2]||(t[2]=[n(" Тренироваться ")])),_:1}),l(d,{color:"teal-darken-1",elevation:"0"},{default:e(()=>t[3]||(t[3]=[n(" Пройти ")])),_:1})]),_:1},8,["activeTab","testingCard"])]),_:1}),l(m,null,{default:e(()=>[l(r,{title:"Завершенные",activeTab:a.activeTab,testingCard:a.getAllTests},{results:e(()=>t[4]||(t[4]=[])),buttons:e(()=>[l(d,{color:"#00897B1F",class:"mr-2 text-teal-darken-1",elevation:"0"},{default:e(()=>t[5]||(t[5]=[n(" Результаты ")])),_:1})]),_:1},8,["activeTab","testingCard"])]),_:1}),l(m,null,{default:e(()=>[l(r,{title:"Каталог",activeTab:a.activeTab,testingCard:a.getAllTests},{buttons:e(()=>[l(d,{color:"#00897B1F",class:"mr-2 text-teal-darken-1",elevation:"0"},{default:e(()=>t[6]||(t[6]=[n(" Тренироваться ")])),_:1})]),_:1},8,["activeTab","testingCard"])]),_:1})]),_:1},8,["modelValue"])]),_:1})}const q=g(U,[["render",N]]);export{q as default};
+1
View File
@@ -0,0 +1 @@
import{bY as z,a6 as D,bm as L,a7 as $,bz as F,an as R,ax as j,cf as w,cg as E,ay as O,ao as M,a9 as N,ch as Y,aa as Z,ai as p,f as o,ab as q,ci as G,bA as H,ap as J,aB as K,cj as Q,ck as U,aD as W,cl as X,al as ee,bn as ae,x as t,bZ as te,V as le,aI as d,A as ne,z as se}from"./index-COjDMumS.js";const oe=z("v-alert-title"),ie=["success","info","warning","error"],re=D({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:L,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>ie.includes(e)},...$(),...F(),...R(),...j(),...w(),...E(),...O(),...M(),...N(),...Y({variant:"flat"})},"VAlert"),ue=Z()({name:"VAlert",props:re(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,v){let{emit:m,slots:a}=v;const i=p(e,"modelValue"),n=o(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),y=o(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:b}=q(e),{colorClasses:f,colorStyles:k,variantClasses:P}=G(y),{densityClasses:V}=H(e),{dimensionStyles:C}=J(e),{elevationClasses:g}=K(e),{locationStyles:x}=Q(e),{positionClasses:S}=U(e),{roundedClasses:_}=W(e),{textColorClasses:A,textColorStyles:B}=X(ee(e,"borderColor")),{t:h}=ae(),r=o(()=>({"aria-label":h(e.closeLabel),onClick(s){i.value=!1,m("click:close",s)}}));return()=>{const s=!!(a.prepend||n.value),I=!!(a.title||e.title),T=!!(a.close||e.closable);return i.value&&t(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},b.value,f.value,V.value,g.value,S.value,_.value,P.value,e.class],style:[k.value,C.value,x.value,e.style],role:"alert"},{default:()=>{var c,u;return[te(!1,"v-alert"),e.border&&t("div",{key:"border",class:["v-alert__border",A.value],style:B.value},null),s&&t("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?t(d,{key:"prepend-defaults",disabled:!n.value,defaults:{VIcon:{density:e.density,icon:n.value,size:e.prominent?44:28}}},a.prepend):t(le,{key:"prepend-icon",density:e.density,icon:n.value,size:e.prominent?44:28},null)]),t("div",{class:"v-alert__content"},[I&&t(oe,{key:"title"},{default:()=>{var l;return[((l=a.title)==null?void 0:l.call(a))??e.title]}}),((c=a.text)==null?void 0:c.call(a))??e.text,(u=a.default)==null?void 0:u.call(a)]),a.append&&t("div",{key:"append",class:"v-alert__append"},[a.append()]),T&&t("div",{key:"close",class:"v-alert__close"},[a.close?t(d,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var l;return[(l=a.close)==null?void 0:l.call(a,{props:r.value})]}}):t(ne,se({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},r.value),null)])]}})}}});export{ue as V};
+1
View File
@@ -0,0 +1 @@
import{b as be,c as we,d as Ce}from"./VSelect-CYP9gZOZ.js";import{m as xe,V as G}from"./VTextField-BjWksY-K.js";import{a6 as Se,b_ as Ae,cp as Fe,aa as Ie,bn as Pe,r as R,af as A,ai as q,f as g,cl as De,w as _,n as J,cm as Re,ae as _e,x as o,R as M,b1 as Me,z as x,a2 as Q,W as Te,V as Y,cq as Ee,bk as Le,aI as Ne,y as Oe,cr as Be,bX as Ke,bs as Ue,cs as Z,ct as ee}from"./index-COjDMumS.js";import{m as ze,u as qe}from"./filter-Bl2taI8b.js";import{d as He}from"./VInput-Bmr5cjyQ.js";import{u as We,V as Xe}from"./VList-CwTaIQsW.js";import{V as $e}from"./VCheckboxBtn-MbVoU8jL.js";function je(l,V,u){if(V==null)return l;if(Array.isArray(V))throw new Error("Multiple matches is not implemented");return typeof V=="number"&&~V?o(M,null,[o("span",{class:"v-autocomplete__unmask"},[l.substr(0,V)]),o("span",{class:"v-autocomplete__mask"},[l.substr(V,u)]),o("span",{class:"v-autocomplete__unmask"},[l.substr(V+u)])]):l}const Ge=Se({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...ze({filterKeys:["title"]}),...be(),...Ae(xe({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Fe({transition:!1})},"VAutocomplete"),al=Ie()({name:"VAutocomplete",props:Ge(),emits:{"update:focused":l=>!0,"update:search":l=>!0,"update:modelValue":l=>!0,"update:menu":l=>!0},setup(l,V){let{slots:u}=V;const{t:T}=Pe(),h=R(),y=A(!1),b=A(!0),E=A(!1),H=R(),L=R(),N=q(l,"menu"),c=g({get:()=>N.value,set:e=>{var t;N.value&&!e&&((t=H.value)!=null&&t.ΨopenChildren.size)||(N.value=e)}}),s=A(-1),le=g(()=>{var e;return(e=h.value)==null?void 0:e.color}),W=g(()=>c.value?l.closeText:l.openText),{items:X,transformIn:te,transformOut:ae}=We(l),{textColorClasses:ue,textColorStyles:ne}=De(le),v=q(l,"search",""),n=q(l,"modelValue",[],e=>te(e===null?[null]:Ue(e)),e=>{const t=ae(e);return l.multiple?t:t[0]??null}),oe=g(()=>typeof l.counterValue=="function"?l.counterValue(n.value):typeof l.counterValue=="number"?l.counterValue:n.value.length),F=He(l),{filteredItems:O,getMatches:ie}=qe(l,X,()=>b.value?"":v.value),k=g(()=>l.hideSelected?O.value.filter(e=>!n.value.some(t=>t.value===e.value)):O.value),I=g(()=>!!(l.chips||u.chip)),S=g(()=>I.value||!!u.selection),se=g(()=>n.value.map(e=>e.props.value)),B=g(()=>{var t;return(l.autoSelectFirst===!0||l.autoSelectFirst==="exact"&&v.value===((t=k.value[0])==null?void 0:t.title))&&k.value.length>0&&!b.value&&!E.value}),K=g(()=>l.hideNoData&&!k.value.length||F.isReadonly.value||F.isDisabled.value),U=R(),re=we(U,h);function ce(e){l.openOnClear&&(c.value=!0),v.value=""}function ve(){K.value||(c.value=!0)}function de(e){K.value||(y.value&&(e.preventDefault(),e.stopPropagation()),c.value=!c.value)}function fe(e){var t;e.key!==" "&&Z(e)&&((t=h.value)==null||t.focus())}function me(e){var a,i,m;if(F.isReadonly.value)return;const t=h.value.selectionStart,r=n.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(e.key)&&e.preventDefault(),["Enter","ArrowDown"].includes(e.key)&&(c.value=!0),["Escape"].includes(e.key)&&(c.value=!1),B.value&&["Enter","Tab"].includes(e.key)&&!n.value.some(d=>{let{value:f}=d;return f===k.value[0].value})&&w(k.value[0]),e.key==="ArrowDown"&&B.value&&((a=U.value)==null||a.focus("next")),["Backspace","Delete"].includes(e.key)){if(!l.multiple&&S.value&&n.value.length>0&&!v.value)return w(n.value[0],!1);if(~s.value){e.preventDefault();const d=s.value;w(n.value[s.value],!1),s.value=d>=r-1?r-2:d}else e.key==="Backspace"&&!v.value&&(s.value=r-1);return}if(l.multiple)if(e.key==="ArrowLeft"){if(s.value<0&&t>0)return;const d=s.value>-1?s.value-1:r-1;n.value[d]?s.value=d:(s.value=-1,h.value.setSelectionRange((i=v.value)==null?void 0:i.length,(m=v.value)==null?void 0:m.length))}else if(e.key==="ArrowRight"){if(s.value<0)return;const d=s.value+1;n.value[d]?s.value=d:(s.value=-1,h.value.setSelectionRange(0,0))}else~s.value&&Z(e)&&(s.value=-1)}function pe(e){if(ee(h.value,":autofill")||ee(h.value,":-webkit-autofill")){const t=X.value.find(r=>r.title===e.target.value);t&&w(t)}}function he(){var e;l.eager&&((e=L.value)==null||e.calculateVisibleItems())}function ge(){var e;y.value&&(b.value=!0,(e=h.value)==null||e.focus())}function Ve(e){y.value=!0,setTimeout(()=>{E.value=!0})}function ye(e){E.value=!1}function ke(e){(e==null||e===""&&!l.multiple&&!S.value)&&(n.value=[])}const z=A(!1);function w(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!e||e.props.disabled))if(l.multiple){const r=n.value.findIndex(i=>l.valueComparator(i.value,e.value)),a=t??!~r;if(~r){const i=a?[...n.value,e]:[...n.value];i.splice(r,1),n.value=i}else a&&(n.value=[...n.value,e]);l.clearOnSelect&&(v.value="")}else{const r=t!==!1;n.value=r?[e]:[],v.value=r&&!S.value?e.title:"",J(()=>{c.value=!1,b.value=!0})}}return _(y,(e,t)=>{var r;e!==t&&(e?(z.value=!0,v.value=l.multiple||S.value?"":String(((r=n.value.at(-1))==null?void 0:r.props.title)??""),b.value=!0,J(()=>z.value=!1)):(!l.multiple&&v.value==null&&(n.value=[]),c.value=!1,n.value.some(a=>{let{title:i}=a;return i===v.value})|Line truncated
+1
View File
@@ -0,0 +1 @@
import{m as D,V as w,b as k,a as h}from"./VWindowItem-rSD9c8zs.js";import{a6 as P,bm as x,aa as y,ai as B,bn as _,r as T,w as g,q as S,ae as b,x as t,R as A,aI as N,A as W,z as s,J as F,ar as L,co as R,X as I}from"./index-COjDMumS.js";const $=P({color:String,cycle:Boolean,delimiterIcon:{type:x,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...D({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),U=y()({name:"VCarousel",props:$(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const r=B(e,"modelValue"),{t:u}=_(),i=T();let c=-1;g(r,m),g(()=>e.interval,m),g(()=>e.cycle,d=>{d?m():window.clearTimeout(c)}),S(f);function f(){!e.cycle||!i.value||(c=window.setTimeout(i.value.group.next,+e.interval>0?+e.interval:6e3))}function m(){window.clearTimeout(c),window.requestAnimationFrame(f)}return b(()=>{const d=w.filterProps(e);return t(w,s({ref:i},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:L(e.height)},e.style]}),{default:a.default,additional:v=>{let{group:l}=v;return t(A,null,[!e.hideDelimiters&&t("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[l.items.value.length>0&&t(N,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[l.items.value.map((o,C)=>{const V={id:`carousel-item-${o.id}`,"aria-label":u("$vuetify.carousel.ariaLabel.delimiter",C+1,l.items.value.length),class:["v-carousel__controls__item",l.isSelected(o.id)&&"v-btn--active"],onClick:()=>l.select(o.id,!0)};return a.item?a.item({props:V,item:o}):t(W,s(o,V),null)})]})]),e.progress&&t(F,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(l.getItemIndex(r.value)+1)/l.items.value.length*100},null)])},prev:a.prev,next:a.next})}),{}}}),q=P({...R(),...k()},"VCarouselItem"),J=y()({name:"VCarouselItem",inheritAttrs:!1,props:q(),setup(e,n){let{slots:a,attrs:r}=n;b(()=>{const u=I.filterProps(e),i=h.filterProps(e);return t(h,s({class:["v-carousel-item",e.class]},i),{default:()=>[t(I,s(r,u),a)]})})}});export{U as V,J as a};
+1
View File
@@ -0,0 +1 @@
import{m as f,V as o}from"./VSelectionControl-BK9dDQDu.js";import{a6 as V,bm as v,aa as x,ai as c,f as l,ae as I,b_ as b,x as k,z as h}from"./index-COjDMumS.js";const C=V({indeterminate:Boolean,indeterminateIcon:{type:v,default:"$checkboxIndeterminate"},...f({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),B=x()({name:"VCheckboxBtn",props:C(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,r){let{slots:s}=r;const t=c(e,"indeterminate"),a=c(e,"modelValue");function u(n){t.value&&(t.value=!1)}const i=l(()=>t.value?e.indeterminateIcon:e.falseIcon),m=l(()=>t.value?e.indeterminateIcon:e.trueIcon);return I(()=>{const n=b(o.filterProps(e),["modelValue"]);return k(o,h(n,{modelValue:a.value,"onUpdate:modelValue":[d=>a.value=d,u],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:i.value,trueIcon:m.value,"aria-checked":t.value?"mixed":void 0}),s)}),{}}});export{B as V,C as m};
+1
View File
@@ -0,0 +1 @@
import{a6 as t,a7 as l,an as r,ao as i,aa as m,ad as c,ap as u,ae as d,x as p}from"./index-COjDMumS.js";const C=t({fluid:{type:Boolean,default:!1},...l(),...r(),...i()},"VContainer"),V=m()({name:"VContainer",props:C(),setup(a,e){let{slots:s}=e;const{rtlClasses:n}=c(),{dimensionStyles:o}=u(a);return d(()=>p(a.tag,{class:["v-container",{"v-container--fluid":a.fluid},n.value,a.class],style:[o.value,a.style]},s)),{}}});export{V};
+1
View File
@@ -0,0 +1 @@
import{a6 as b,a7 as g,bS as L,aa as P,k as C,bT as $,ae as m,x as l,H as T,I as j,bR as z,bm as k,an as H,bU as O,aA as h,ap as F,f as v,bV as N,aI as w,V as U,ax as W,aO as q,ay as J,ao as A,aP as K,aB as M,aD as Q,p as X,b5 as Y,bW as Z,a9 as ee,b6 as ae,ab as ne,aH as le,al as t}from"./index-COjDMumS.js";const p=Symbol.for("vuetify:v-expansion-panel"),B=b({...g(),...L()},"VExpansionPanelText"),I=P()({name:"VExpansionPanelText",props:B(),setup(e,d){let{slots:n}=d;const a=C(p);if(!a)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:o,onAfterLeave:u}=$(e,a.isSelected);return m(()=>l(z,{onAfterLeave:u},{default:()=>{var i;return[T(l("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&o.value&&l("div",{class:"v-expansion-panel-text__wrapper"},[(i=n.default)==null?void 0:i.call(n)])]),[[j,a.isSelected.value]])]}})),{}}}),D=b({color:String,expandIcon:{type:k,default:"$expand"},collapseIcon:{type:k,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...g(),...H()},"VExpansionPanelTitle"),S=P()({name:"VExpansionPanelTitle",directives:{Ripple:O},props:D(),setup(e,d){let{slots:n}=d;const a=C(p);if(!a)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:o,backgroundColorStyles:u}=h(e,"color"),{dimensionStyles:i}=F(e),r=v(()=>({collapseIcon:e.collapseIcon,disabled:a.disabled.value,expanded:a.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),y=v(()=>a.isSelected.value?e.collapseIcon:e.expandIcon);return m(()=>{var x;return T(l("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":a.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},o.value,e.class],style:[u.value,i.value,e.style],type:"button",tabindex:a.disabled.value?-1:void 0,disabled:a.disabled.value,"aria-expanded":a.isSelected.value,onClick:e.readonly?void 0:a.toggle},[l("span",{class:"v-expansion-panel-title__overlay"},null),(x=n.default)==null?void 0:x.call(n,r.value),!e.hideActions&&l(w,{defaults:{VIcon:{icon:y.value}}},{default:()=>{var f;return[l("span",{class:"v-expansion-panel-title__icon"},[((f=n.actions)==null?void 0:f.call(n,r.value))??l(U,null,null)])]}})]),[[N("ripple"),e.ripple]])}),{}}}),_=b({title:String,text:String,bgColor:String,...W(),...q(),...J(),...A(),...D(),...B()},"VExpansionPanel"),ie=P()({name:"VExpansionPanel",props:_(),emits:{"group:selected":e=>!0},setup(e,d){let{slots:n}=d;const a=K(e,p),{backgroundColorClasses:o,backgroundColorStyles:u}=h(e,"bgColor"),{elevationClasses:i}=M(e),{roundedClasses:r}=Q(e),y=v(()=>(a==null?void 0:a.disabled.value)||e.disabled),x=v(()=>a.group.items.value.reduce((c,s,V)=>(a.group.selected.value.includes(s.id)&&c.push(V),c),[])),f=v(()=>{const c=a.group.items.value.findIndex(s=>s.id===a.id);return!a.isSelected.value&&x.value.some(s=>s-c===1)}),R=v(()=>{const c=a.group.items.value.findIndex(s=>s.id===a.id);return!a.isSelected.value&&x.value.some(s=>s-c===-1)});return X(p,a),m(()=>{const c=!!(n.text||e.text),s=!!(n.title||e.title),V=S.filterProps(e),G=I.filterProps(e);return l(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":a.isSelected.value,"v-expansion-panel--before-active":f.value,"v-expansion-panel--after-active":R.value,"v-expansion-panel--disabled":y.value},r.value,o.value,e.class],style:[u.value,e.style]},{default:()=>[l("div",{class:["v-expansion-panel__shadow",...i.value]},null),l(w,{defaults:{VExpansionPanelTitle:{...V},VExpansionPanelText:{...G}}},{default:()=>{var E;return[s&&l(S,{key:"title"},{default:()=>[n.title?n.title():e.title]}),c&&l(I,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(E=n.default)==null?void 0:E.call(n)]}})]})}),{groupItem:a}}}),te=["default","accordion","inset","popout"],se=b({flat:Boolean,...Y(),...Z(_(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...ee(),...g(),...A(),variant:{type:String,default:"default",validator:e=>te.includes(e)}},"VExpansionPanels"),ce=P()({name:"VExpansionPanels",props:se(),emits:{"update:modelValue":e=>!0},setup(e,d){let{slots:n}=d;const{next:a,prev:o}=ae(e,p),{themeClasses:u}=ne(e),i=v(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return le({VExpansionPanel:{bgColor:t(e,"bgColor"),collapseIcon:t(e,"collapseIcon"),color:t(e,"color"),eager:t(e,"eager"),elevation:t(e,"elevation"),expandIcon:t(e,"expandIcon"),focusable:t(e,"focusable"),hideActions:t(e,"hideActions"),readonly:t(e,"readonly"),ripple:t(e,"ripple"),rounded:t(e,"rounded"),static:t(e,"static")}}),m(()=>l(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},u.value,i.value,e.class],style:e.style},{default:()=>{var r;return[(r=n.default)==null?void 0:r.call(n,{prev:o,next:a})]}}Line truncated
+1
View File
@@ -0,0 +1 @@
import{a6 as S,a7 as L,cp as le,d1 as ne,aa as w,f as i,ae as R,x as a,H as U,I as W,cw as te,bm as F,by as P,bv as ie,ay as se,a9 as oe,ab as re,bw as de,aD as ue,ad as ce,bQ as ve,r as B,aA as fe,al as be,cl as me,w as ye,d2 as ge,ar as Ce,cX as he,cY as ke,bx as Ie,d3 as _e,aI as xe,R as Ve,z as Fe,bj as Pe,bW as Be}from"./index-COjDMumS.js";import{b as Se,e as Le,u as we,f as Re}from"./VInput-Bmr5cjyQ.js";const $e=S({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...L(),...le({transition:{component:ne}})},"VCounter"),Ne=w()({name:"VCounter",functional:!0,props:$e(),setup(e,o){let{slots:n}=o;const x=i(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return R(()=>a(te,{transition:e.transition},{default:()=>[U(a("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[n.default?n.default({counter:x.value,max:e.max,value:e.value}):x.value]),[[W,e.active]])]})),{}}}),Te=S({floating:Boolean,...L()},"VFieldLabel"),_=w()({name:"VFieldLabel",props:Te(),setup(e,o){let{slots:n}=o;return R(()=>a(Se,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}}),Ae=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],De=S({appendInnerIcon:F,bgColor:String,clearable:Boolean,clearIcon:{type:F,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:F,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>Ae.includes(e)},"onClick:clear":P(),"onClick:appendInner":P(),"onClick:prependInner":P(),...L(),...ie(),...se(),...oe()},"VField"),Ee=w()({name:"VField",inheritAttrs:!1,props:{id:String,...Le(),...De()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{attrs:n,emit:x,slots:l}=o;const{themeClasses:j}=re(e),{loaderClasses:p}=de(e),{focusClasses:X,isFocused:$,focus:b,blur:m}=we(e),{InputIcon:V}=Re(e),{roundedClasses:Y}=ue(e),{rtlClasses:q}=ce(),y=i(()=>e.dirty||e.active),T=i(()=>!!(e.label||l.label)),g=i(()=>!e.singleLine&&T.value),z=ve(),r=i(()=>e.id||`input-${z}`),H=i(()=>`${r.value}-messages`),A=B(),C=B(),D=B(),E=i(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:Q,backgroundColorStyles:G}=fe(be(e,"bgColor")),{textColorClasses:O,textColorStyles:M}=me(i(()=>e.error||e.disabled?void 0:y.value&&$.value?e.color:e.baseColor));ye(y,c=>{if(g.value){const s=A.value.$el,d=C.value.$el;requestAnimationFrame(()=>{const u=ge(s),t=d.getBoundingClientRect(),h=t.x-u.x,k=t.y-u.y-(u.height/2-t.height/2),f=t.width/.75,I=Math.abs(f-u.width)>1?{maxWidth:Ce(f)}:void 0,K=getComputedStyle(s),N=getComputedStyle(d),Z=parseFloat(K.transitionDuration)*1e3||150,ee=parseFloat(N.getPropertyValue("--v-field-label-scale")),ae=N.getPropertyValue("color");s.style.visibility="visible",d.style.visibility="hidden",he(s,{transform:`translate(${h}px, ${k}px) scale(${ee})`,color:ae,...I},{duration:Z,easing:ke,direction:c?"normal":"reverse"}).finished.then(()=>{s.style.removeProperty("visibility"),d.style.removeProperty("visibility")})})}},{flush:"post"});const v=i(()=>({isActive:y,isFocused:$,controlRef:D,blur:m,focus:b}));function J(c){c.target!==document.activeElement&&c.preventDefault()}return R(()=>{var h,k,f;const c=e.variant==="outlined",s=!!(l["prepend-inner"]||e.prependInnerIcon),d=!!(e.clearable||l.clear)&&!e.disabled,u=!!(l["append-inner"]||e.appendInnerIcon||d),t=()=>l.label?l.label({...v.value,label:e.label,props:{for:r.value}}):e.label;return a("div",Fe({class:["v-field",{"v-field--active":y.value,"v-field--appended":u,"v-field--center-affix":e.centerAffix??!E.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":s,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!t(),[`v-field--variant-${e.variant}`]:!0},j.value,Q.value,X.value,p.value,Y.value,q.value,e.class],style:[G.value,e.style],onClick:J},n),[a("div",{class:"v-field__overlay"},null),a(Ie,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:l.loader}),s&&a("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&a(V,{key:"prepend-icon",name:"prependInner"},null),(h=l["prepend-inner"])==null?void 0:h.call(l,v.value)]),a("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&a(_,{key:"floating-label",ref:C,class:[O.value],floating:!0,for:r.value,style:M.value},{default:()=>[t()]}),T.value&&a(_,{key:"label",ref:A,for:r.value},{default:()=>[t()]}),(k=l.default)==null?void 0:k.call(l,{...v.value,Line truncated
+1
View File
@@ -0,0 +1 @@
import{m as W,f as Y,V as Z,a as ee}from"./VField-DR7-v1FU.js";import{a as le,u as te,V as B}from"./VInput-Bmr5cjyQ.js";import{a6 as ne,bs as M,aa as ae,bn as ue,ai as ie,f as s,cu as x,r as h,w as oe,ae as se,ce as re,x as u,z as V,R as b,bk as ce,bX as de,n as fe,cv as ve}from"./index-COjDMumS.js";const me=ne({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},...le({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>M(e).every(f=>f!=null&&typeof f=="object")},...W({clearable:!0})},"VFileInput"),be=ae()({name:"VFileInput",inheritAttrs:!1,props:me(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,f){let{attrs:N,emit:k,slots:n}=f;const{t:C}=ue(),a=ie(e,"modelValue",e.modelValue,l=>M(l),l=>!e.multiple&&Array.isArray(l)?l[0]:l),{isFocused:v,focus:$,blur:D}=te(e),g=s(()=>typeof e.showSize!="boolean"?e.showSize:void 0),I=s(()=>(a.value??[]).reduce((l,t)=>{let{size:r=0}=t;return l+r},0)),S=s(()=>x(I.value,g.value)),p=s(()=>(a.value??[]).map(l=>{const{name:t="",size:r=0}=l;return e.showSize?`${t} (${x(r,g.value)})`:t})),j=s(()=>{var t;const l=((t=a.value)==null?void 0:t.length)??0;return e.showSize?C(e.counterSizeString,l,S.value):C(e.counterString,l)}),F=h(),P=h(),i=h(),E=s(()=>v.value||e.active),z=s(()=>["plain","underlined"].includes(e.variant));function y(){var l;i.value!==document.activeElement&&((l=i.value)==null||l.focus()),v.value||$()}function O(l){var t;(t=i.value)==null||t.click()}function U(l){k("mousedown:control",l)}function L(l){var t;(t=i.value)==null||t.click(),k("click:control",l)}function T(l){l.stopPropagation(),y(),fe(()=>{a.value=[],ve(e["onClick:clear"],l)})}return oe(a,l=>{(!Array.isArray(l)||!l.length)&&i.value&&(i.value.value="")}),se(()=>{const l=!!(n.counter||e.counter),t=!!(l||n.details),[r,X]=re(N),{modelValue:pe,..._}=B.filterProps(e),q=Y(e);return u(B,V({ref:F,modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":z.value},e.class],style:e.style,"onClick:prepend":O},r,_,{centerAffix:!z.value,focused:v.value}),{...n,default:c=>{let{id:m,isDisabled:d,isDirty:w,isReadonly:A,isValid:G}=c;return u(Z,V({ref:P,"prepend-icon":e.prependIcon,onMousedown:U,onClick:L,"onClick:clear":T,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},q,{id:m.value,active:E.value||w.value,dirty:w.value||e.dirty,disabled:d.value,focused:v.value,error:G.value===!1}),{...n,default:H=>{var R;let{props:{class:J,...K}}=H;return u(b,null,[u("input",V({ref:i,type:"file",readonly:A.value,disabled:d.value,multiple:e.multiple,name:e.name,onClick:o=>{o.stopPropagation(),A.value&&o.preventDefault(),y()},onChange:o=>{if(!o.target)return;const Q=o.target;a.value=[...Q.files??[]]},onFocus:y,onBlur:D},K,X),null),u("div",{class:J},[!!((R=a.value)!=null&&R.length)&&!e.hideInput&&(n.selection?n.selection({fileNames:p.value,totalBytes:I.value,totalBytesReadable:S.value}):e.chips?p.value.map(o=>u(ce,{key:o,size:"small",text:o},null)):p.value.join(", "))])])}})},details:t?c=>{var m,d;return u(b,null,[(m=n.details)==null?void 0:m.call(n,c),l&&u(b,null,[u("span",null,null),u(ee,{active:!!((d=a.value)!=null&&d.length),value:j.value,disabled:e.disabled},n.counter)])])}:void 0})}),de({},F,P,i)}});export{be as V};
+1
View File
@@ -0,0 +1 @@
import{a6 as p,a7 as b,aa as v,r as F,ae as V,x as y,bX as h}from"./index-COjDMumS.js";import{m as R,c as P}from"./VInput-Bmr5cjyQ.js";const k=p({...b(),...R()},"VForm"),D=v()({name:"VForm",props:k(),emits:{"update:modelValue":o=>!0,submit:o=>!0},setup(o,i){let{slots:n,emit:f}=i;const r=P(o),s=F();function l(t){t.preventDefault(),r.reset()}function u(t){const a=t,e=r.validate();a.then=e.then.bind(e),a.catch=e.catch.bind(e),a.finally=e.finally.bind(e),f("submit",a),a.defaultPrevented||e.then(c=>{var m;let{valid:d}=c;d&&((m=s.value)==null||m.submit())}),a.preventDefault()}return V(()=>{var t;return y("form",{ref:s,class:["v-form",o.class],style:o.style,novalidate:!0,onReset:l,onSubmit:u},[(t=n.default)==null?void 0:t.call(n,r)])}),h(r,s)}});export{D as V};
+1
View File
@@ -0,0 +1 @@
import{a6 as S,by as B,a7 as E,a9 as W,aa as z,ae as F,x as y,bn as X,V as Z,cv as ee,d4 as q,ai as _,f as c,cp as ae,d1 as ne,bs as x,cl as te,cw as se,k as le,af as A,r as R,w,p as ie,be as ue,al as re,bQ as Q,bl as oe,u as de,o as ce,e as ve,q as fe,aj as j,n as ge,bm as H,bz as me,c0 as ye,an as he,bA as be,ap as Ve,ab as pe,ad as ke}from"./index-COjDMumS.js";const Ie=S({text:String,onClick:B(),...E(),...W()},"VLabel"),Ae=z()({name:"VLabel",props:Ie(),setup(e,s){let{slots:r}=s;return F(()=>{var n;return y("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(n=r.default)==null?void 0:n.call(r)])}),{}}});function Me(e){const{t:s}=X();function r(n){let{name:o}=n;const a={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[o],u=e[`onClick:${o}`];function m(g){g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),g.stopPropagation(),ee(u,new PointerEvent("click",g)))}const V=u&&a?s(`$vuetify.input.${a}`,e.label??""):void 0;return y(Z,{icon:e[`${o}Icon`],"aria-label":V,onClick:u,onKeydown:m},null)}return{InputIcon:r}}const Ce=S({focused:Boolean,"onUpdate:focused":B()},"focus");function Re(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q();const r=_(e,"focused"),n=c(()=>({[`${s}--focused`]:r.value}));function o(){r.value=!0}function a(){r.value=!1}return{focusClasses:n,isFocused:r,focus:o,blur:a}}const Se=S({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...E(),...ae({transition:{component:ne,leaveAbsolute:!0,group:!0}})},"VMessages"),we=z()({name:"VMessages",props:Se(),setup(e,s){let{slots:r}=s;const n=c(()=>x(e.messages)),{textColorClasses:o,textColorStyles:a}=te(c(()=>e.color));return F(()=>y(se,{transition:e.transition,tag:"div",class:["v-messages",o.value,e.class],style:[a.value,e.style]},{default:()=>[e.active&&n.value.map((u,m)=>y("div",{class:"v-messages__message",key:`${m}-${n.value}`},[r.message?r.message({message:u}):u]))]})),{}}}),Y=Symbol.for("vuetify:form"),Ee=S({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function ze(e){const s=_(e,"modelValue"),r=c(()=>e.disabled),n=c(()=>e.readonly),o=A(!1),a=R([]),u=R([]);async function m(){const l=[];let i=!0;u.value=[],o.value=!0;for(const v of a.value){const d=await v.validate();if(d.length>0&&(i=!1,l.push({id:v.id,errorMessages:d})),!i&&e.fastFail)break}return u.value=l,o.value=!1,{valid:i,errors:u.value}}function V(){a.value.forEach(l=>l.reset())}function g(){a.value.forEach(l=>l.resetValidation())}return w(a,()=>{let l=0,i=0;const v=[];for(const d of a.value)d.isValid===!1?(i++,v.push({id:d.id,errorMessages:d.errorMessages})):d.isValid===!0&&l++;u.value=v,s.value=i>0?!1:l===a.value.length?!0:null},{deep:!0,flush:"post"}),ie(Y,{register:l=>{let{id:i,vm:v,validate:d,reset:k,resetValidation:p}=l;a.value.some(M=>M.id===i),a.value.push({id:i,validate:d,reset:k,resetValidation:p,vm:ue(v),isValid:null,errorMessages:[]})},unregister:l=>{a.value=a.value.filter(i=>i.id!==l)},update:(l,i,v)=>{const d=a.value.find(k=>k.id===l);d&&(d.isValid=i,d.errorMessages=v)},isDisabled:r,isReadonly:n,isValidating:o,isValid:s,items:a,validateOn:re(e,"validateOn")}),{errors:u,isDisabled:r,isReadonly:n,isValidating:o,isValid:s,items:a,validate:m,reset:V,resetValidation:g}}function Pe(e){const s=le(Y,null);return{...s,isReadonly:c(()=>!!((e==null?void 0:e.readonly)??(s==null?void 0:s.isReadonly.value))),isDisabled:c(()=>!!((e==null?void 0:e.disabled)??(s==null?void 0:s.isDisabled.value)))}}const De=S({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Ce()},"validation");function xe(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q(),r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Q();const n=_(e,"modelValue"),o=c(()=>e.validationValue===void 0?n.value:e.validationValue),a=Pe(e),u=R([]),m=A(!0),V=c(()=>!!(x(n.value===""?null:n.value).length||x(o.value===""?null:o.value).length)),g=c(()=>{var t;return(t=e.errorMessages)!=null&&t.length?x(e.errorMessages).concat(u.value).slice(0,Math.max(0,+e.maxErrors)):u.value}),l=c(()=>{var b;let t=(e.validateOn??((b=a.validateOn)==null?void 0:b.value))||"input";t==="lazy"&&(t="input lazy"),t==="eager"&&(t="input eager");const f=new Set((t==null?void 0:t.split(" "))??[]);return{input:f.has("input"),blur:f.has("blur")||f.has("input")||f.has("invalid-input"),invalidInput:f.has("invalid-input"),lazy:f.has("lazy"),eager:f.has("eager")}}),i=c(()=>{var t;return e.error||(t=e.errorMessages)!=null&&t.length?!1:e.rules.length?m.value?u.value.length||l.value.lazy?null:!0:!u.value.length:!0}),v=A(!1),d=c(()=>({[`${s}--error`]:i.value=Line truncated
+1
View File
@@ -0,0 +1 @@
import{cK as Z,cL as J,a6 as S,bm as P,a7 as w,ao as F,aa as A,cM as Y,al as u,f as y,cN as ee,ae as O,x as c,aI as te,cw as ae,bR as ne,H as se,I as le,cl as ie,cO as E,Z as oe,a2 as G,z as N,br as re,bB as b,b_ as $,by as B,cP as ue,au as ce,bz as de,an as ve,ax as fe,ay as me,a9 as be,ch as ye,ab as ge,aA as Ce,az as he,bA as pe,ap as Ie,aB as Pe,aD as Ve,cQ as ke,aH as Se,af as Le,r as xe,cR as Ae}from"./index-COjDMumS.js";import{u as Be}from"./ssrBoot-Me6CX2Hk.js";const Te=Z({name:"VListGroupActivator",setup(e,a){let{slots:t}=a;return J(),()=>{var s;return(s=t.default)==null?void 0:s.call(t)}}}),we=S({activeColor:String,baseColor:String,color:String,collapseIcon:{type:P,default:"$collapse"},expandIcon:{type:P,default:"$expand"},prependIcon:P,appendIcon:P,fluid:Boolean,subgroup:Boolean,title:String,value:null,...w(),...F()},"VListGroup"),R=A()({name:"VListGroup",props:we(),setup(e,a){let{slots:t}=a;const{isOpen:s,open:o,id:i}=Y(u(e,"value"),!0),l=y(()=>`v-list-group--id-${String(i.value)}`),n=ee(),{isBooted:g}=Be();function f(m){m.stopPropagation(),o(!s.value,m)}const C=y(()=>({onClick:f,class:"v-list-group__header",id:l.value})),h=y(()=>s.value?e.collapseIcon:e.expandIcon),p=y(()=>({VListItem:{active:s.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&h.value,appendIcon:e.appendIcon||!e.subgroup&&h.value,title:e.title,value:e.value}}));return O(()=>c(e.tag,{class:["v-list-group",{"v-list-group--prepend":n==null?void 0:n.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":s.value},e.class],style:e.style},{default:()=>[t.activator&&c(te,{defaults:p.value},{default:()=>[c(Te,null,{default:()=>[t.activator({props:C.value,isOpen:s.value})]})]}),c(ae,{transition:{component:ne},disabled:!g.value},{default:()=>{var m;return[se(c("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(m=t.default)==null?void 0:m.call(t)]),[[le,s.value]])]}})]})),{isOpen:s}}}),Fe=S({color:String,inset:Boolean,sticky:Boolean,title:String,...w(),...F()},"VListSubheader"),Oe=A()({name:"VListSubheader",props:Fe(),setup(e,a){let{slots:t}=a;const{textColorClasses:s,textColorStyles:o}=ie(u(e,"color"));return O(()=>{const i=!!(t.default||e.title);return c(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},s.value,e.class],style:[{textColorStyles:o},e.style]},{default:()=>{var l;return[i&&c("div",{class:"v-list-subheader__text"},[((l=t.default)==null?void 0:l.call(t))??e.title])]}})}),{}}}),De=S({items:Array,returnObject:Boolean},"VListChildren"),M=A()({name:"VListChildren",props:De(),setup(e,a){let{slots:t}=a;return E(),()=>{var s,o;return((s=t.default)==null?void 0:s.call(t))??((o=e.items)==null?void 0:o.map(i=>{var p,m;let{children:l,props:n,type:g,raw:f}=i;if(g==="divider")return((p=t.divider)==null?void 0:p.call(t,{props:n}))??c(oe,n,null);if(g==="subheader")return((m=t.subheader)==null?void 0:m.call(t,{props:n}))??c(Oe,n,null);const C={subtitle:t.subtitle?v=>{var r;return(r=t.subtitle)==null?void 0:r.call(t,{...v,item:f})}:void 0,prepend:t.prepend?v=>{var r;return(r=t.prepend)==null?void 0:r.call(t,{...v,item:f})}:void 0,append:t.append?v=>{var r;return(r=t.append)==null?void 0:r.call(t,{...v,item:f})}:void 0,title:t.title?v=>{var r;return(r=t.title)==null?void 0:r.call(t,{...v,item:f})}:void 0},h=R.filterProps(n);return l?c(R,N({value:n==null?void 0:n.value},h),{activator:v=>{let{props:r}=v;const L={...n,...r,value:e.returnObject?f:n.value};return t.header?t.header({props:L}):c(G,L,C)},default:()=>c(M,{items:l,returnObject:e.returnObject},t)}):t.item?t.item({props:n}):c(G,N(n,{value:e.returnObject?f:n.value}),C)}))}}}),je=S({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:re}},"list-items");function T(e,a){const t=b(a,e.itemTitle,a),s=b(a,e.itemValue,t),o=b(a,e.itemChildren),i=e.itemProps===!0?typeof a=="object"&&a!=null&&!Array.isArray(a)?"children"in a?$(a,["children"]):a:void 0:b(a,e.itemProps),l={title:t,value:s,...i};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(o)?z(e,o):void 0,raw:a}}function z(e,a){const t=[];for(const s of a)t.push(T(e,s));return t}function Me(e){const a=y(()=>z(e,e.items)),t=y(()=>a.value.some(i=>i.value===null));function s(i){return t.value||(i=i.filter(l=>l!==null)),i.map(l=>e.returnObject&&typeof l=="string"?T(e,l):a.value.find(n=>e.valueComparator(l,n.value))||T(e,l))}function o(i){return e.returnObject?i.map(l=>{let{raw:n}=l;return n}):i.map(l=>{let{value:n}=l;return n})}return{items:a,transformIn:s,transformOut:o}}function _e(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}Line truncated
+1
View File
@@ -0,0 +1 @@
import{a6 as S,bm as T,aa as w,f as h,ae as Y,x as l,A as C,aA as oe,cw as ee,aI as q,by as se,cx as ce,r as F,cy as ve,cz as j,af as L,w as ae,y as ke,ai as U,bP as te,am as ne,z as _,ar as le,cA as me,q as fe,n as he,b_ as $,cB as ye,bn as Pe,cC as G,R as pe,cD as be,bs as z,a7 as Ve,cE as ge}from"./index-COjDMumS.js";import{V as xe}from"./VSpacer-Q-SG7gn8.js";const re=S({active:{type:[String,Array],default:void 0},disabled:{type:[Boolean,String,Array],default:!1},nextIcon:{type:T,default:"$next"},prevIcon:{type:T,default:"$prev"},modeIcon:{type:T,default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),J=w()({name:"VDatePickerControls",props:re(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,y){let{emit:k}=y;const d=h(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),a=h(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),c=h(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),u=h(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function s(){k("click:prev")}function r(){k("click:next")}function t(){k("click:year")}function n(){k("click:month")}return Y(()=>l("div",{class:["v-date-picker-controls"]},[l(C,{class:"v-date-picker-controls__month-btn",disabled:d.value,text:e.text,variant:"text",rounded:!0,onClick:n},null),l(C,{key:"mode-btn",class:"v-date-picker-controls__mode-btn",disabled:a.value,density:"comfortable",icon:e.modeIcon,variant:"text",onClick:t},null),l(xe,{key:"mode-spacer"},null),l("div",{key:"month-buttons",class:"v-date-picker-controls__month"},[l(C,{disabled:c.value,icon:e.prevIcon,variant:"text",onClick:s},null),l(C,{disabled:u.value,icon:e.nextIcon,variant:"text",onClick:r},null)])])),{}}}),De=S({appendIcon:T,color:String,header:String,transition:String,onClick:se()},"VDatePickerHeader"),K=w()({name:"VDatePickerHeader",props:De(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,y){let{emit:k,slots:d}=y;const{backgroundColorClasses:a,backgroundColorStyles:c}=oe(e,"color");function u(){k("click")}function s(){k("click:append")}return Y(()=>{const r=!!(d.default||e.header),t=!!(d.append||e.appendIcon);return l("div",{class:["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},a.value],style:c.value,onClick:u},[d.prepend&&l("div",{key:"prepend",class:"v-date-picker-header__prepend"},[d.prepend()]),r&&l(ee,{key:"content",name:e.transition},{default:()=>{var n;return[l("div",{key:e.header,class:"v-date-picker-header__content"},[((n=d.default)==null?void 0:n.call(d))??e.header])]}}),t&&l("div",{class:"v-date-picker-header__append"},[d.append?l(q,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var n;return[(n=d.append)==null?void 0:n.call(d)]}}):l(C,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:s},null)])])}),{}}}),ie=S({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},...ce()},"VDatePickerMonth"),Q=w()({name:"VDatePickerMonth",props:ie(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,y){let{emit:k,slots:d}=y;const a=F(),{daysInMonth:c,model:u,weekNumbers:s}=ve(e),r=j(),t=L(),n=L(),m=L(!1),V=h(()=>m.value?e.reverseTransition:e.transition);e.multiple==="range"&&u.value.length>0&&(t.value=u.value[0],u.value.length>1&&(n.value=u.value[u.value.length-1]));const I=h(()=>{const v=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return u.value.length>=v});ae(c,(v,i)=>{i&&(m.value=r.isBefore(v[0].date,i[0].date))});function H(v){const i=r.startOfDay(v);if(u.value.length===0?t.value=void 0:u.value.length===1&&(t.value=u.value[0],n.value=void 0),!t.value)t.value=i,u.value=[t.value];else if(n.value)t.value=v,n.value=void 0,u.value=[t.value];else{if(r.isSameDay(i,t.value)){t.value=void 0,u.value=[];return}else r.isBefore(i,t.value)?(n.value=r.endOfDay(t.value),t.value=i):n.value=r.endOfDay(i);const p=r.getDiff(n.value,t.value,"days"),x=[t.value];for(let b=1;b<p;b++){const R=r.addDays(t.value,b);x.push(R)}x.push(n.value),u.value=x}}function M(v){const i=u.value.findIndex(p=>r.isSameDay(p,v));if(i===-1)u.value=[...u.value,v];else{const p=[...u.value];p.splice(i,1),u.value=p}}function g(v){e.multiple==="range"?H(v):e.multiple?M(v):u.value=[v]}return()=>l("div",{class:"v-date-picker-month"},[e.showWeek&&l("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&l("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[ke(" ")]),s.value.map(v=>l("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[v]))]),l(ee,{name:V.value},{default:()=>{var v;return[l("div",{ref:a,key:(v=c.value[0].date)==null?void 0:v.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdayLine truncated
+1
View File
@@ -0,0 +1 @@
import{r as E,cU as K,a6 as O,bm as L,au as U,a7 as W,bz as q,ax as G,ay as H,bO as X,ao as j,a9 as J,ch as Q,aa as Y,ai as Z,bn as aa,ad as ea,ab as ta,aC as la,af as ia,aH as S,cF as na,f as b,bP as k,al as f,ae as sa,x as o,A as P,z as h,cV as R,n as B}from"./index-COjDMumS.js";function ua(){const a=E([]);K(()=>a.value=[]);function V(n,_){a.value[_]=n}return{refs:a,updateRef:V}}const ra=O({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:a=>a.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:a=>a%1===0},totalVisible:[Number,String],firstIcon:{type:L,default:"$first"},prevIcon:{type:L,default:"$prev"},nextIcon:{type:L,default:"$next"},lastIcon:{type:L,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...U(),...W(),...q(),...G(),...H(),...X(),...j({tag:"nav"}),...J(),...Q({variant:"text"})},"VPagination"),va=Y()({name:"VPagination",props:ra(),emits:{"update:modelValue":a=>!0,first:a=>!0,prev:a=>!0,next:a=>!0,last:a=>!0},setup(a,V){let{slots:n,emit:_}=V;const i=Z(a,"modelValue"),{t:g,n:$}=aa(),{isRtl:x}=ea(),{themeClasses:C}=ta(a),{width:F}=la(),p=ia(-1);S(void 0,{scoped:!0});const{resizeRef:w}=na(e=>{if(!e.length)return;const{target:t,contentRect:l}=e[0],r=t.querySelector(".v-pagination__list > *");if(!r)return;const v=l.width,m=r.offsetWidth+parseFloat(getComputedStyle(r).marginRight)*2;p.value=I(v,m)}),s=b(()=>parseInt(a.length,10)),u=b(()=>parseInt(a.start,10)),c=b(()=>a.totalVisible!=null?parseInt(a.totalVisible,10):p.value>=0?p.value:I(F.value,58));function I(e,t){const l=a.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((e-t*l)/t).toFixed(2)))}const M=b(()=>{if(s.value<=0||isNaN(s.value)||s.value>Number.MAX_SAFE_INTEGER)return[];if(c.value<=0)return[];if(c.value===1)return[i.value];if(s.value<=c.value)return k(s.value,u.value);const e=c.value%2===0,t=e?c.value/2:Math.floor(c.value/2),l=e?t:t+1,r=s.value-t;if(l-i.value>=0)return[...k(Math.max(1,c.value-1),u.value),a.ellipsis,s.value];if(i.value-r>=(e?1:0)){const v=c.value-1,m=s.value-v+u.value;return[u.value,a.ellipsis,...k(v,m)]}else{const v=Math.max(1,c.value-2),m=v===1?i.value:i.value-Math.ceil(v/2)+u.value;return[u.value,a.ellipsis,...k(v,m),a.ellipsis,s.value]}});function y(e,t,l){e.preventDefault(),i.value=t,l&&_(l,t)}const{refs:N,updateRef:z}=ua();S({VPaginationBtn:{color:f(a,"color"),border:f(a,"border"),density:f(a,"density"),size:f(a,"size"),variant:f(a,"variant"),rounded:f(a,"rounded"),elevation:f(a,"elevation")}});const D=b(()=>M.value.map((e,t)=>{const l=r=>z(r,t);if(typeof e=="string")return{isActive:!1,key:`ellipsis-${t}`,page:e,props:{ref:l,ellipsis:!0,icon:!0,disabled:!0}};{const r=e===i.value;return{isActive:r,key:e,page:$(e),props:{ref:l,ellipsis:!1,icon:!0,disabled:!!a.disabled||+a.length<2,color:r?a.activeColor:a.color,"aria-current":r,"aria-label":g(r?a.currentPageAriaLabel:a.pageAriaLabel,e),onClick:v=>y(v,e)}}}})),d=b(()=>{const e=!!a.disabled||i.value<=u.value,t=!!a.disabled||i.value>=u.value+s.value-1;return{first:a.showFirstLastPage?{icon:x.value?a.lastIcon:a.firstIcon,onClick:l=>y(l,u.value,"first"),disabled:e,"aria-label":g(a.firstAriaLabel),"aria-disabled":e}:void 0,prev:{icon:x.value?a.nextIcon:a.prevIcon,onClick:l=>y(l,i.value-1,"prev"),disabled:e,"aria-label":g(a.previousAriaLabel),"aria-disabled":e},next:{icon:x.value?a.prevIcon:a.nextIcon,onClick:l=>y(l,i.value+1,"next"),disabled:t,"aria-label":g(a.nextAriaLabel),"aria-disabled":t},last:a.showFirstLastPage?{icon:x.value?a.firstIcon:a.lastIcon,onClick:l=>y(l,u.value+s.value-1,"last"),disabled:t,"aria-label":g(a.lastAriaLabel),"aria-disabled":t}:void 0}});function A(){var t;const e=i.value-u.value;(t=N.value[e])==null||t.$el.focus()}function T(e){e.key===R.left&&!a.disabled&&i.value>+a.start?(i.value=i.value-1,B(A)):e.key===R.right&&!a.disabled&&i.value<u.value+s.value-1&&(i.value=i.value+1,B(A))}return sa(()=>o(a.tag,{ref:w,class:["v-pagination",C.value,a.class],style:a.style,role:"navigation","aria-label":g(a.ariaLabel),onKeydown:T,"data-test":"v-pagination-root"},{default:()=>[o("ul",{class:"v-pagination__list"},[a.showFirstLastPage&&o("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(d.value.first):o(P,h({_as:"VPaginationBtn"},d.value.first),null)]),o("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(d.value.prev):o(P,h({_as:"VPaginationBtn"},d.value.prev),nuLine truncated
+1
View File
@@ -0,0 +1 @@
import{m as N,V as x}from"./VCheckboxBtn-MbVoU8jL.js";import{a as A,u as z,V,b as L}from"./VInput-Bmr5cjyQ.js";import{a6 as h,b_ as G,aa as R,ai as S,bQ as $,f as F,ae as g,ce as U,x as o,z as c,bm as C,R as M}from"./index-COjDMumS.js";import{m as Q,V as I,a as T,b as _}from"./VSelectionControl-BK9dDQDu.js";const j=h({...A(),...G(N(),["inline"])},"VCheckbox"),W=R()({name:"VCheckbox",inheritAttrs:!1,props:j(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,s){let{attrs:r,slots:a}=s;const t=S(e,"modelValue"),{isFocused:m,focus:l,blur:f}=z(e),b=$(),p=F(()=>e.id||`checkbox-${b}`);return g(()=>{const[v,u]=U(r),d=V.filterProps(e),n=x.filterProps(e);return o(V,c({class:["v-checkbox",e.class]},v,d,{modelValue:t.value,"onUpdate:modelValue":i=>t.value=i,id:p.value,focused:m.value,style:e.style}),{...a,default:i=>{let{id:y,messagesId:P,isDisabled:k,isReadonly:O,isValid:B}=i;return o(x,c(n,{id:y.value,"aria-describedby":P.value,disabled:k.value,readonly:O.value},u,{error:B.value===!1,modelValue:t.value,"onUpdate:modelValue":D=>t.value=D,onFocus:l,onBlur:f}),a)}})}),{}}}),q=h({...Q({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),X=R()({name:"VRadio",props:q(),setup(e,s){let{slots:r}=s;return g(()=>{const a=I.filterProps(e);return o(I,c(a,{class:["v-radio",e.class],style:e.style,type:"radio"}),r)}),{}}}),w=h({height:{type:[Number,String],default:"auto"},...A(),...G(T(),["multiple"]),trueIcon:{type:C,default:"$radioOn"},falseIcon:{type:C,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),Y=R()({name:"VRadioGroup",inheritAttrs:!1,props:w(),emits:{"update:modelValue":e=>!0},setup(e,s){let{attrs:r,slots:a}=s;const t=$(),m=F(()=>e.id||`radio-group-${t}`),l=S(e,"modelValue");return g(()=>{const[f,b]=U(r),p=V.filterProps(e),v=I.filterProps(e),u=a.label?a.label({label:e.label,props:{for:m.value}}):e.label;return o(V,c({class:["v-radio-group",e.class],style:e.style},f,p,{modelValue:l.value,"onUpdate:modelValue":d=>l.value=d,id:m.value}),{...a,default:d=>{let{id:n,messagesId:i,isDisabled:y,isReadonly:P}=d;return o(M,null,[u&&o(L,{id:n.value},{default:()=>[u]}),o(_,c(v,{id:n.value,"aria-describedby":i.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:y.value,readonly:P.value,"aria-labelledby":u?n.value:void 0,multiple:!1},b,{modelValue:l.value,"onUpdate:modelValue":k=>l.value=k}),a)])}})}),{}}});export{Y as V,X as a,W as b};
+1
View File
@@ -0,0 +1 @@
import{m as Se,V as re}from"./VTextField-BjWksY-K.js";import{a6 as W,a7 as he,aa as oe,cF as ge,w as H,ae as ue,x as c,R as j,z as M,aC as ke,af as O,am as ce,r as N,f as A,at as ye,ag as le,cG as Te,cH as Pe,n as Ve,cm as ae,an as Ie,bl as xe,ap as Ce,al as Re,aj as Ae,q as De,cI as Fe,ar as Z,bm as Be,b_ as Oe,cp as _e,cJ as Ee,bn as Le,ai as de,b1 as Me,a2 as fe,W as He,V as ve,cq as qe,bk as Ue,aI as ze,y as Ne,bX as Ke,bs as $e,cs as me,ct as pe}from"./index-COjDMumS.js";import{d as je}from"./VInput-Bmr5cjyQ.js";import{m as We,u as Xe,V as Ge}from"./VList-CwTaIQsW.js";import{V as Je}from"./VCheckboxBtn-MbVoU8jL.js";const Ye=W({renderless:Boolean,...he()},"VVirtualScrollItem"),Qe=oe()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Ye(),emits:{"update:height":e=>!0},setup(e,d){let{attrs:n,emit:f,slots:s}=d;const{resizeRef:v,contentRect:m}=ge(void 0,"border");H(()=>{var u;return(u=m.value)==null?void 0:u.height},u=>{u!=null&&f("update:height",u)}),ue(()=>{var u,a;return e.renderless?c(j,null,[(u=s.default)==null?void 0:u.call(s,{itemRef:v})]):c("div",M({ref:v,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(a=s.default)==null?void 0:a.call(s)])})}}),Ze=-1,et=1,ne=100,tt=W({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function lt(e,d){const n=ke(),f=O(0);ce(()=>{f.value=parseFloat(e.itemHeight||0)});const s=O(0),v=O(Math.ceil((parseInt(e.height)||n.height.value)/(f.value||16))||1),m=O(0),u=O(0),a=N(),V=N();let R=0;const{resizeRef:B,contentRect:i}=ge();ce(()=>{B.value=a.value});const w=A(()=>{var t;return a.value===document.documentElement?n.height.value:((t=i.value)==null?void 0:t.height)||parseInt(e.height)||0}),_=A(()=>!!(a.value&&V.value&&w.value&&f.value));let x=Array.from({length:d.value.length}),p=Array.from({length:d.value.length});const b=O(0);let k=-1;function E(t){return x[t]||f.value}const C=Pe(()=>{const t=performance.now();p[0]=0;const o=d.value.length;for(let g=1;g<=o-1;g++)p[g]=(p[g-1]||0)+E(g-1);b.value=Math.max(b.value,performance.now()-t)},b),X=H(_,t=>{t&&(X(),R=V.value.offsetTop,C.immediate(),D(),~k&&Ve(()=>{ae&&window.requestAnimationFrame(()=>{Q(k),k=-1})}))});ye(()=>{C.clear()});function ee(t,o){const g=x[t],y=f.value;f.value=y?Math.min(f.value,o):o,(g!==o||y!==f.value)&&(x[t]=o,C())}function T(t){return t=le(t,0,d.value.length-1),p[t]||0}function G(t){return nt(p,t)}let q=0,L=0,K=0;H(w,(t,o)=>{o&&(D(),t<o&&requestAnimationFrame(()=>{L=0,D()}))});let U=-1;function z(){if(!a.value||!V.value)return;const t=a.value.scrollTop,o=performance.now();o-K>500?(L=Math.sign(t-q),R=V.value.offsetTop):L=t-q,q=t,K=o,window.clearTimeout(U),U=window.setTimeout(J,500),D()}function J(){!a.value||!V.value||(L=0,K=0,window.clearTimeout(U),D())}let Y=-1;function D(){cancelAnimationFrame(Y),Y=requestAnimationFrame(te)}function te(){if(!a.value||!w.value)return;const t=q-R,o=Math.sign(L),g=Math.max(0,t-ne),y=le(G(g),0,d.value.length),r=t+w.value+ne,h=le(G(r)+1,y+1,d.value.length);if((o!==Ze||y<s.value)&&(o!==et||h>v.value)){const S=T(s.value)-T(y),F=T(h)-T(v.value);Math.max(S,F)>ne?(s.value=y,v.value=h):(y<=0&&(s.value=y),h>=d.value.length&&(v.value=h))}m.value=T(s.value),u.value=T(d.value.length)-T(v.value)}function Q(t){const o=T(t);!a.value||t&&!o?k=t:a.value.scrollTop=o}const l=A(()=>d.value.slice(s.value,v.value).map((t,o)=>({raw:t,index:o+s.value,key:Te(t)&&"value"in t?t.value:o+s.value})));return H(d,()=>{x=Array.from({length:d.value.length}),p=Array.from({length:d.value.length}),C.immediate(),D()},{deep:!0}),{calculateVisibleItems:D,containerRef:a,markerRef:V,computedItems:l,paddingTop:m,paddingBottom:u,scrollToIndex:Q,handleScroll:z,handleScrollend:J,handleItemResize:ee}}function nt(e,d){let n=e.length-1,f=0,s=0,v=null,m=-1;if(e[n]<d)return n;for(;f<=n;)if(s=f+n>>1,v=e[s],v>d)n=s-1;else if(v<d)m=s,f=s+1;else return v===d?s:f;return m}const at=W({items:{type:Array,default:()=>[]},renderless:Boolean,...tt(),...he(),...Ie()},"VVirtualScroll"),ot=oe()({name:"VVirtualScroll",props:at(),setup(e,d){let{slots:n}=d;const f=xe("VVirtualScroll"),{dimensionStyles:s}=Ce(e),{calculateVisibleItems:v,containerRef:m,markerRef:u,handleScroll:a,handleScrollend:V,handleItemResize:R,scrollToIndex:B,paddingTop:i,paddingBottom:w,computedItems:_}=lt(e,Re(e,"items"));return Ae(()=>e.renderless,()=>{function x(){var k,E;const b=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";m.value===document.documentElement?(document[b]("scroll",a,{passive:!0}),document[b]("scrollend",V)):((k=m.value)==null||k[b]("scroll",a,{passive:!0}),(E=m.value)==null||E[b]("scrollend",V))}De(()=>{m.value=Fe(f.vnode.el,!0),x(!0)}),ye(x)}),ue(()=>{const x=_.value.map(p=>c(Qe,{key:p.key,renderless:e.renderless,"onUpdate:height":b=>R(p.index,b)},{default:b=>{var k;return(k=n.default)==null?void 0:k.call(n,{item:p.raw,index:p.index,...b})}}));return e.renderless?c(j,null,[c("div",{ref:u,class:"v-virtual-scroll__spacer",style:{paddingTop:Z(i.value)}},nulLine truncated
+1
View File
@@ -0,0 +1 @@
import{a6 as h,bm as w,br as q,a7 as U,bz as O,a9 as Q,aa as R,ai as _,bQ as H,f as o,p as J,at as K,aH as W,al as u,ae as j,x as v,bU as X,af as D,r as Y,ce as Z,z as T,H as p,bV as ee,R as le,V as ae,k as te,bA as ne,bs as I,cl as oe,aA as ue,ct as ie,n as re}from"./index-COjDMumS.js";import{b as ce}from"./VInput-Bmr5cjyQ.js";const z=Symbol.for("vuetify:selection-control-group"),E=h({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:w,trueIcon:w,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:q},...U(),...O(),...Q()},"SelectionControlGroup"),se=h({...E({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),be=R()({name:"VSelectionControlGroup",props:se(),emits:{"update:modelValue":e=>!0},setup(e,i){let{slots:f}=i;const l=_(e,"modelValue"),t=H(),y=o(()=>e.id||`v-selection-control-group-${t}`),c=o(()=>e.name||y.value),a=new Set;return J(z,{modelValue:l,forceUpdate:()=>{a.forEach(n=>n())},onForceUpdate:n=>{a.add(n),K(()=>{a.delete(n)})}}),W({[e.defaultsTarget]:{color:u(e,"color"),disabled:u(e,"disabled"),density:u(e,"density"),error:u(e,"error"),inline:u(e,"inline"),modelValue:l,multiple:o(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),name:c,falseIcon:u(e,"falseIcon"),trueIcon:u(e,"trueIcon"),readonly:u(e,"readonly"),ripple:u(e,"ripple"),type:u(e,"type"),valueComparator:u(e,"valueComparator")}}),j(()=>{var n;return v("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(n=f.default)==null?void 0:n.call(f)])}),{}}}),de=h({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...U(),...E()},"VSelectionControl");function ve(e){const i=te(z,void 0),{densityClasses:f}=ne(e),l=_(e,"modelValue"),t=o(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),y=o(()=>e.falseValue!==void 0?e.falseValue:!1),c=o(()=>!!e.multiple||e.multiple==null&&Array.isArray(l.value)),a=o({get(){const m=i?i.modelValue.value:l.value;return c.value?I(m).some(r=>e.valueComparator(r,t.value)):e.valueComparator(m,t.value)},set(m){if(e.readonly)return;const r=m?t.value:y.value;let b=r;c.value&&(b=m?[...I(l.value),r]:I(l.value).filter(s=>!e.valueComparator(s,t.value))),i?i.modelValue.value=b:l.value=b}}),{textColorClasses:n,textColorStyles:C}=oe(o(()=>{if(!(e.error||e.disabled))return a.value?e.color:e.baseColor})),{backgroundColorClasses:V,backgroundColorStyles:S}=ue(o(()=>a.value&&!e.error&&!e.disabled?e.color:e.baseColor)),k=o(()=>a.value?e.trueIcon:e.falseIcon);return{group:i,densityClasses:f,trueValue:t,falseValue:y,model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,icon:k}}const ye=R()({name:"VSelectionControl",directives:{Ripple:X},inheritAttrs:!1,props:de(),emits:{"update:modelValue":e=>!0},setup(e,i){let{attrs:f,slots:l}=i;const{group:t,densityClasses:y,icon:c,model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,trueValue:k}=ve(e),m=H(),r=D(!1),b=D(!1),s=Y(),g=o(()=>e.id||`input-${m}`),A=o(()=>!e.disabled&&!e.readonly);t==null||t.onForceUpdate(()=>{s.value&&(s.value.checked=a.value)});function x(d){A.value&&(r.value=!0,ie(d.target,":focus-visible")!==!1&&(b.value=!0))}function B(){r.value=!1,b.value=!1}function L(d){d.stopPropagation()}function M(d){if(!A.value){s.value&&(s.value.checked=a.value);return}e.readonly&&t&&re(()=>t.forceUpdate()),a.value=d.target.checked}return j(()=>{var P,G;const d=l.label?l.label({label:e.label,props:{for:g.value}}):e.label,[N,$]=Z(f),F=v("input",T({ref:s,checked:a.value,disabled:!!e.disabled,id:g.value,onBlur:B,onFocus:x,onInput:M,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:k.value,name:e.name,"aria-checked":e.type==="checkbox"?a.value:void 0},$),null);return v("div",T({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":r.value,"v-selection-control--focus-visible":b.value,"v-selection-control--inline":e.inline},y.value,e.class]},N,{style:e.style}),[v("div",{class:["v-selection-control__wrapper",n.value],style:C.value},[(P=l.default)==null?void 0:P.call(l,{backgroundColorClasses:V,backgroundColorStyles:S}),p(v("div",{class:["v-selection-control__input"]},[((G=l.input)==null?void 0:G.call(l,{model:a,textColorClasses:n,textColorStyles:C,backgroundColorClasses:V,backgroundColorStyles:S,inputNode:F,icon:c.value,props:{onFocus:x,onBlur:B,id:g.value}}))??v(le,null,[c.value&&v(ae,{key:"icon",icon:c.value},null),F])]),[[ee("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),d&&v(ce,{for:g.value,onClick:L},{default:()=>[d]})])}),{isFocused:r,input:s}}});export{ye as V,E as a,be as b,de as mLine truncated
+1
View File
@@ -0,0 +1 @@
import{bY as a}from"./index-COjDMumS.js";const r=a("v-spacer","div","VSpacer");export{r as V};
+1
View File
@@ -0,0 +1 @@
import{a6 as E,aa as O,ai as k,bw as Q,r as W,cm as $,f as g,bQ as j,ae as q,ce as G,x as a,z as w,R as H,aI as J,cn as K,V as X,bx as Y,bN as Z}from"./index-COjDMumS.js";import{a as ee,u as ae,V as b}from"./VInput-Bmr5cjyQ.js";import{m as te,V as y}from"./VSelectionControl-BK9dDQDu.js";const le=E({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...ee(),...te()},"VSwitch"),ie=O()({name:"VSwitch",inheritAttrs:!1,props:le(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,C){let{attrs:S,slots:t}=C;const n=k(e,"indeterminate"),s=k(e,"modelValue"),{loaderClasses:P}=Q(e),{isFocused:_,focus:x,blur:I}=ae(e),m=W(),h=$&&window.matchMedia("(forced-colors: active)").matches,A=g(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),B=j(),F=g(()=>e.id||`switch-${B}`);function R(){n.value&&(n.value=!1)}function p(i){var u,r;i.stopPropagation(),i.preventDefault(),(r=(u=m.value)==null?void 0:u.input)==null||r.click()}return q(()=>{const[i,u]=G(S),r=b.filterProps(e),z=y.filterProps(e);return a(b,w({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":n.value},P.value,e.class]},i,r,{modelValue:s.value,"onUpdate:modelValue":c=>s.value=c,id:F.value,focused:_.value,style:e.style}),{...t,default:c=>{let{id:N,messagesId:D,isDisabled:M,isReadonly:U,isValid:V}=c;const d={model:s,isValid:V};return a(y,w({ref:m},z,{modelValue:s.value,"onUpdate:modelValue":[o=>s.value=o,R],id:N.value,"aria-describedby":D.value,type:"checkbox","aria-checked":n.value?"mixed":void 0,disabled:M.value,readonly:U.value,onFocus:x,onBlur:I},u),{...t,default:o=>{let{backgroundColorClasses:v,backgroundColorStyles:l}=o;return a("div",{class:["v-switch__track",h?void 0:v.value],style:l.value,onClick:p},[t["track-true"]&&a("div",{key:"prepend",class:"v-switch__track-true"},[t["track-true"](d)]),t["track-false"]&&a("div",{key:"append",class:"v-switch__track-false"},[t["track-false"](d)])])},input:o=>{let{inputNode:v,icon:l,backgroundColorClasses:L,backgroundColorStyles:T}=o;return a(H,null,[v,a("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":l||e.loading},e.inset||h?void 0:L.value],style:e.inset?void 0:T.value},[t.thumb?a(J,{defaults:{VIcon:{icon:l,size:"x-small"}}},{default:()=>[t.thumb({...d,icon:l})]}):a(K,null,{default:()=>[e.loading?a(Y,{name:"v-switch",active:!0,color:V.value===!1?void 0:A.value},{default:f=>t.loader?t.loader(f):a(Z,{active:f.isActive,color:f.color,indeterminate:!0,size:"16",width:"2"},null)}):l&&a(X,{key:String(l),icon:l,size:"x-small"},null)]})])])}})}})}),{}}});export{ie as V};
+1
View File
@@ -0,0 +1 @@
import{a6 as k,b_ as G,cW as O,aa as P,cl as q,r as z,f as C,ae as W,A as R,x as i,R as U,z as h,bX as Z,cX as J,cY as K,k as L,ai as X,cZ as Q,bz as ee,ao as ae,bA as te,aA as se,al as f,aF as le,aH as oe,aR as A,ar as ne,cG as re}from"./index-COjDMumS.js";import{m as ie,V as E,b as de,a as M}from"./VWindowItem-rSD9c8zs.js";const I=Symbol.for("vuetify:v-tabs"),ue=k({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...G(O({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),ce=P()({name:"VTab",props:ue(),setup(e,o){let{slots:n,attrs:a}=o;const{textColorClasses:r,textColorStyles:m}=q(e,"sliderColor"),l=z(),u=z(),c=C(()=>e.direction==="horizontal"),x=C(()=>{var b,t;return((t=(b=l.value)==null?void 0:b.group)==null?void 0:t.isSelected.value)??!1});function B(b){var s,v;let{value:t}=b;if(t){const d=(v=(s=l.value)==null?void 0:s.$el.parentElement)==null?void 0:v.querySelector(".v-tab--selected .v-tab__slider"),$=u.value;if(!d||!$)return;const D=getComputedStyle(d).color,g=d.getBoundingClientRect(),V=$.getBoundingClientRect(),T=c.value?"x":"y",S=c.value?"X":"Y",_=c.value?"right":"bottom",w=c.value?"width":"height",F=g[T],H=V[T],y=F>H?g[_]-V[_]:g[T]-V[T],Y=Math.sign(y)>0?c.value?"right":"bottom":Math.sign(y)<0?c.value?"left":"top":"center",j=(Math.abs(y)+(Math.sign(y)<0?g[w]:V[w]))/Math.max(g[w],V[w])||0,N=g[w]/V[w]||0,p=1.5;J($,{backgroundColor:[D,"currentcolor"],transform:[`translate${S}(${y}px) scale${S}(${N})`,`translate${S}(${y/p}px) scale${S}(${(j-1)/p+1})`,"none"],transformOrigin:Array(3).fill(Y)},{duration:225,easing:K})}}return W(()=>{const b=R.filterProps(e);return i(R,h({symbol:I,ref:l,class:["v-tab",e.class],style:e.style,tabindex:x.value?0:-1,role:"tab","aria-selected":String(x.value),active:!1},b,a,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":B}),{...n,default:()=>{var t;return i(U,null,[((t=n.default)==null?void 0:t.call(n))??e.text,!e.hideSlider&&i("div",{ref:u,class:["v-tab__slider",r.value],style:m.value},null)])}})}),Z({},l)}}),be=k({...G(ie(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),ve=P()({name:"VTabsWindow",props:be(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const a=L(I,null),r=X(e,"modelValue"),m=C({get(){var l;return r.value!=null||!a?r.value:(l=a.items.value.find(u=>a.selected.value.includes(u.id)))==null?void 0:l.value},set(l){r.value=l}});return W(()=>{const l=E.filterProps(e);return i(E,h({_as:"VTabsWindow"},l,{modelValue:m.value,"onUpdate:modelValue":u=>m.value=u,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),me=k({...de()},"VTabsWindowItem"),fe=P()({name:"VTabsWindowItem",props:me(),setup(e,o){let{slots:n}=o;return W(()=>{const a=M.filterProps(e);return i(M,h({_as:"VTabsWindowItem"},a,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function ge(e){return e?e.map(o=>re(o)?o:{text:o,value:o}):[]}const Ve=k({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Q({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ee(),...ae()},"VTabs"),xe=P()({name:"VTabs",props:Ve(),emits:{"update:modelValue":e=>!0},setup(e,o){let{attrs:n,slots:a}=o;const r=X(e,"modelValue"),m=C(()=>ge(e.items)),{densityClasses:l}=te(e),{backgroundColorClasses:u,backgroundColorStyles:c}=se(f(e,"bgColor")),{scopeId:x}=le();return oe({VTab:{color:f(e,"color"),direction:f(e,"direction"),stacked:f(e,"stacked"),fixed:f(e,"fixedTabs"),sliderColor:f(e,"sliderColor"),hideSlider:f(e,"hideSlider")}}),W(()=>{const B=A.filterProps(e),b=!!(a.window||e.items.length>0);return i(U,null,[i(A,h(B,{modelValue:r.value,"onUpdate:modelValue":t=>r.value=t,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},l.value,u.value,e.class],style:[{"--v-tabs-height":ne(e.height)},c.value,e.style],role:"tablist",symbol:I},x,n),{default:()=>{var t;return[((t=a.default)==null?void 0:t.call(a))??m.value.map(s=>{var v;return((v=a.tab)==null?void 0:v.call(a,{item:s}))??i(ce,h(s,{key:s.text,value:s.value}),{default:a[`tab.${s.value}`]?()=>{var d;return(d=a[`tab.${s.value}`])==null?void 0:d.call(a,{item:s})}:void 0})})]}}),b&&i(ve,h({modelValue:r.value,"onUpdate:modelValue":t=>r.value=t,key:"tabs-window"},x),{default:()=>{var t;return[m.value.map(s=>{var v;return((v=a.item)==null?void 0:v.call(a,{item:s}))??i(fe,{value:s.value},{default:()=>{var d;return(d=a[`item.${s.value}`])==null?void 0:d.call(a,{item:s})}})}),(t=a.window)==null?void 0:t.call(a)]}})])}),{}}});export{xe as V,ce as a,ve as b,fe as c};
+1
View File
@@ -0,0 +1 @@
/* empty css */import{m as q,f as G,V as J,a as K}from"./VField-DR7-v1FU.js";import{a as L,u as Q,V as I}from"./VInput-Bmr5cjyQ.js";import{a6 as W,aa as Y,cS as Z,ai as ee,f as v,r as x,ae as te,ce as ne,x as n,z as V,H as le,bV as ae,R as y,c$ as ue,bX as ie,n as S,cv as oe}from"./index-COjDMumS.js";const re=["color","file","time","date","datetime-local","week","month"],se=W({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...L(),...q()},"VTextField"),xe=Y()({name:"VTextField",directives:{Intersect:Z},inheritAttrs:!1,props:se(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,w){let{attrs:m,emit:g,slots:l}=w;const i=ee(e,"modelValue"),{isFocused:r,focus:R,blur:A}=Q(e),D=v(()=>typeof e.counterValue=="function"?e.counterValue(i.value):typeof e.counterValue=="number"?e.counterValue:(i.value??"").toString().length),T=v(()=>{if(m.maxlength)return m.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),C=v(()=>["plain","underlined"].includes(e.variant));function B(t,a){var u,o;!e.autofocus||!t||(o=(u=a[0].target)==null?void 0:u.focus)==null||o.call(u)}const h=x(),k=x(),s=x(),M=v(()=>re.includes(e.type)||e.persistentPlaceholder||r.value||e.active);function d(){var t;s.value!==document.activeElement&&((t=s.value)==null||t.focus()),r.value||R()}function N(t){g("mousedown:control",t),t.target!==s.value&&(d(),t.preventDefault())}function p(t){d(),g("click:control",t)}function E(t){t.stopPropagation(),d(),S(()=>{i.value=null,oe(e["onClick:clear"],t)})}function z(t){var u;const a=t.target;if(i.value=a.value,(u=e.modelModifiers)!=null&&u.trim&&["text","search","password","tel","url"].includes(e.type)){const o=[a.selectionStart,a.selectionEnd];S(()=>{a.selectionStart=o[0],a.selectionEnd=o[1]})}}return te(()=>{const t=!!(l.counter||e.counter!==!1&&e.counter!=null),a=!!(t||l.details),[u,o]=ne(m),{modelValue:ce,...O}=I.filterProps(e),U=G(e);return n(I,V({ref:h,modelValue:i.value,"onUpdate:modelValue":c=>i.value=c,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":C.value},e.class],style:e.style},u,O,{centerAffix:!C.value,focused:r.value}),{...l,default:c=>{let{id:f,isDisabled:F,isDirty:P,isReadonly:j,isValid:H}=c;return n(J,V({ref:k,onMousedown:N,onClick:p,"onClick:clear":E,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},U,{id:f.value,active:M.value||P.value,dirty:P.value||e.dirty,disabled:F.value,focused:r.value,error:H.value===!1}),{...l,default:X=>{let{props:{class:b,...$}}=X;const _=le(n("input",V({ref:s,value:i.value,onInput:z,autofocus:e.autofocus,readonly:j.value,disabled:F.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:d,onBlur:A},$,o),null),[[ae("intersect"),{handler:B},null,{once:!0}]]);return n(y,null,[e.prefix&&n("span",{class:"v-text-field__prefix"},[n("span",{class:"v-text-field__prefix__text"},[e.prefix])]),l.default?n("div",{class:b,"data-no-activator":""},[l.default(),_]):ue(_,{class:b}),e.suffix&&n("span",{class:"v-text-field__suffix"},[n("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:a?c=>{var f;return n(y,null,[(f=l.details)==null?void 0:f.call(l,c),t&&n(y,null,[n("span",null,null),n(K,{active:e.persistentCounter||r.value,value:D.value,max:T.value,disabled:e.disabled},l.counter)])])}:void 0})}),ie({},h,k,s)}});export{xe as V,se as m};
+1
View File
@@ -0,0 +1 @@
import{a6 as p,aa as ee,cS as te,ai as ae,f as y,r as v,af as ne,am as le,q as oe,w as m,e as ie,ae as ue,ce as re,x as l,z as I,R as b,H as _,bV as se,cT as ce,bX as de,n as S,cv as fe,ar as ve,ag as me}from"./index-COjDMumS.js";/* empty css */import{m as xe,f as ge,V as he,a as we}from"./VField-DR7-v1FU.js";import{a as Ve,u as ye,V as G}from"./VInput-Bmr5cjyQ.js";const Fe=p({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Ve(),...xe()},"VTextarea"),Ie=ee()({name:"VTextarea",directives:{Intersect:te},inheritAttrs:!1,props:Fe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,D){let{attrs:F,emit:H,slots:u}=D;const o=ae(e,"modelValue"),{isFocused:f,focus:E,blur:U}=ye(e),O=y(()=>typeof e.counterValue=="function"?e.counterValue(o.value):(o.value||"").toString().length),$=y(()=>{if(F.maxlength)return F.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function j(t,n){var a,i;!e.autofocus||!t||(i=(a=n[0].target)==null?void 0:a.focus)==null||i.call(a)}const M=v(),x=v(),z=ne(""),g=v(),q=y(()=>e.persistentPlaceholder||f.value||e.active);function C(){var t;g.value!==document.activeElement&&((t=g.value)==null||t.focus()),f.value||E()}function X(t){C(),H("click:control",t)}function J(t){H("mousedown:control",t)}function K(t){t.stopPropagation(),C(),S(()=>{o.value="",fe(e["onClick:clear"],t)})}function L(t){var a;const n=t.target;if(o.value=n.value,(a=e.modelModifiers)!=null&&a.trim){const i=[n.selectionStart,n.selectionEnd];S(()=>{n.selectionStart=i[0],n.selectionEnd=i[1]})}}const c=v(),h=v(+e.rows),P=y(()=>["plain","underlined"].includes(e.variant));le(()=>{e.autoGrow||(h.value=+e.rows)});function d(){e.autoGrow&&S(()=>{if(!c.value||!x.value)return;const t=getComputedStyle(c.value),n=getComputedStyle(x.value.$el),a=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),i=c.value.scrollHeight,w=parseFloat(t.lineHeight),R=Math.max(parseFloat(e.rows)*w+a,parseFloat(n.getPropertyValue("--v-input-control-height"))),k=parseFloat(e.maxRows)*w+a||1/0,s=me(i??0,R,k);h.value=Math.floor((s-a)/w),z.value=ve(s)})}oe(d),m(o,d),m(()=>e.rows,d),m(()=>e.maxRows,d),m(()=>e.density,d);let r;return m(c,t=>{t?(r=new ResizeObserver(d),r.observe(c.value)):r==null||r.disconnect()}),ie(()=>{r==null||r.disconnect()}),ue(()=>{const t=!!(u.counter||e.counter||e.counterValue),n=!!(t||u.details),[a,i]=re(F),{modelValue:w,...R}=G.filterProps(e),k=ge(e);return l(G,I({ref:M,modelValue:o.value,"onUpdate:modelValue":s=>o.value=s,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":P.value},e.class],style:e.style},a,R,{centerAffix:h.value===1&&!P.value,focused:f.value}),{...u,default:s=>{let{id:V,isDisabled:B,isDirty:N,isReadonly:Q,isValid:W}=s;return l(he,I({ref:x,style:{"--v-textarea-control-height":z.value},onClick:X,onMousedown:J,"onClick:clear":K,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},k,{id:V.value,active:q.value||N.value,centerAffix:h.value===1&&!P.value,dirty:N.value||e.dirty,disabled:B.value,focused:f.value,error:W.value===!1}),{...u,default:Y=>{let{props:{class:T,...A}}=Y;return l(b,null,[e.prefix&&l("span",{class:"v-text-field__prefix"},[e.prefix]),_(l("textarea",I({ref:g,class:T,value:o.value,onInput:L,autofocus:e.autofocus,readonly:Q.value,disabled:B.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:C,onBlur:U},A,i),null),[[se("intersect"),{handler:j},null,{once:!0}]]),e.autoGrow&&_(l("textarea",{class:[T,"v-textarea__sizer"],id:`${A.id}-sizer`,"onUpdate:modelValue":Z=>o.value=Z,ref:c,readonly:!0,"aria-hidden":"true"},null),[[ce,o.value]]),e.suffix&&l("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:n?s=>{var V;return l(b,null,[(V=u.details)==null?void 0:V.call(u,s),t&&l(b,null,[l("span",null,null),l(we,{active:e.persistentCounter||f.value,value:O.value,max:$.value,disabled:e.disabled},u.counter)])])}:void 0})}),de({},M,x,g)}});export{Ie as V};
+1
View File
@@ -0,0 +1 @@
import{a6 as R,bm as A,a7 as N,bz as X,bO as Z,ao as F,a9 as U,aa as M,bn as q,ab as O,ai as G,f as d,ag as J,bP as K,af as Q,bQ as W,ae as w,x as t,R as L,A as Y,z as p,y as j,_ as ee,s as B,Q as D,S as ae,t as te,v as C,F as E,V as le,$ as ne,Z as oe,E as ie,au as se,ax as re,ay as ue,aA as ce,al as de,az as me,aB as ge,aD as ve,ad as be,aH as fe,X as he,aI as P,ar as T,bR as ye}from"./index-COjDMumS.js";const xe=R({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:A,default:"$ratingEmpty"},fullIcon:{type:A,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...N(),...X(),...Z(),...F(),...U()},"VRating"),Ve=M()({name:"VRating",props:xe(),emits:{"update:modelValue":e=>!0},setup(e,m){let{slots:a}=m;const{t:s}=q(),{themeClasses:v}=O(e),V=G(e,"modelValue"),r=d(()=>J(parseFloat(V.value),0,+e.length)),u=d(()=>K(Number(e.length),1)),h=d(()=>u.value.flatMap(l=>e.halfIncrements?[l-.5,l]:[l])),y=Q(-1),b=d(()=>h.value.map(l=>{const o=e.hover&&y.value>-1,n=r.value>=l,i=y.value>=l,c=(o?i:n)?e.fullIcon:e.emptyIcon,I=e.activeColor??e.color,S=n||i?I:e.color;return{isFilled:n,isHovered:i,icon:c,color:S}})),_=d(()=>[0,...h.value].map(l=>{function o(){y.value=l}function n(){y.value=-1}function i(){e.disabled||e.readonly||(V.value=r.value===l&&e.clearable?0:l)}return{onMouseenter:e.hover?o:void 0,onMouseleave:e.hover?n:void 0,onClick:i}})),x=d(()=>e.name??`v-rating-${W()}`);function f(l){var z,H;let{value:o,index:n,showStar:i=!0}=l;const{onMouseenter:g,onMouseleave:c,onClick:I}=_.value[n+1],S=`${x.value}-${String(o).replace(".","-")}`,$={color:(z=b.value[n])==null?void 0:z.color,density:e.density,disabled:e.disabled,icon:(H=b.value[n])==null?void 0:H.icon,ripple:e.ripple,size:e.size,variant:"plain"};return t(L,null,[t("label",{for:S,class:{"v-rating__item--half":e.halfIncrements&&o%1>0,"v-rating__item--full":e.halfIncrements&&o%1===0},onMouseenter:g,onMouseleave:c,onClick:I},[t("span",{class:"v-rating__hidden"},[s(e.itemAriaLabel,o,e.length)]),i?a.item?a.item({...b.value[n],props:$,value:o,index:n,rating:r.value}):t(Y,p({"aria-label":s(e.itemAriaLabel,o,e.length)},$),null):void 0]),t("input",{class:"v-rating__hidden",name:x.value,id:S,type:"radio",value:o,checked:r.value===o,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function k(l){return a["item-label"]?a["item-label"](l):l.label?t("span",null,[l.label]):t("span",null,[j(" ")])}return w(()=>{var o;const l=!!((o=e.itemLabels)!=null&&o.length)||a["item-label"];return t(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},v.value,e.class],style:e.style},{default:()=>[t(f,{value:0,index:-1,showStar:!1},null),u.value.map((n,i)=>{var g,c;return t("div",{class:"v-rating__wrapper"},[l&&e.itemLabelPosition==="top"?k({value:n,index:i,label:(g=e.itemLabels)==null?void 0:g[i]}):void 0,t("div",{class:"v-rating__item"},[e.halfIncrements?t(L,null,[t(f,{value:n-.5,index:i*2},null),t(f,{value:n,index:i*2+1},null)]):t(f,{value:n,index:i},null)]),l&&e.itemLabelPosition==="bottom"?k({value:n,index:i,label:(c=e.itemLabels)==null?void 0:c[i]}):void 0])})]})}),{}}}),_e={props:{rating:{type:Object,default:()=>{}}},setup(e,{emit:m}){return{message:d({get:()=>e.rating.nowrating,set:s=>m("update:rating",s)})}}};function ke(e,m,a,s,v,V){return B(),D("div",null,[(B(!0),D(L,null,ae(a.rating.basecrit,(r,u)=>(B(),te(ie,{key:u,class:"align-center"},{default:C(()=>[t(E,{class:"pl-5",lg:"5"},{default:C(()=>[t(le,{size:"large",color:r.color,icon:r.ico},null,8,["color","icon"]),j(" "+ne(r.name),1)]),_:2},1024),t(E,{lg:"6",class:"pa-0"},{default:C(()=>[t(Ve,{modelValue:s.message[u].rating,"onUpdate:modelValue":h=>s.message[u].rating=h,hover:typeof u=="number","half-increments":"",color:"yellow",density:"comfortable"},null,8,["modelValue","onUpdate:modelValue","hover"])]),_:2},1024),t(oe)]),_:2},1024))),128))])}const Pe=ee(_e,[["render",ke]]),Se=R({text:String,...N(),...F()},"VToolbarTitle"),Te=M()({name:"VToolbarTitle",props:Se(),setup(e,m){let{slots:a}=m;return w(()=>{const s=!!(a.default||a.text||e.text);return t(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var v;return[s&&t("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(v=a.default)==null?void 0:v.call(a)])]}})}),{}}}),Ie=[null,"prominent","default","comfortable","compact"],Be=R({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>Ie.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...se(),...N(),...re(),...ue(),...F({tag:"header"}),...U()},"VToolbar"),Line truncated
+1
View File
@@ -0,0 +1 @@
import{c_ as Y,a6 as _,a7 as H,ao as M,a9 as O,aa as k,ab as j,ad as G,bn as F,b6 as z,r as S,f as h,af as x,w as D,p as U,x as m,A as E,ae as V,H as R,bV as q,aO as J,bS as K,k as Q,aP as Z,bT as N,I as p,cw as ee,ar as X,n as te}from"./index-COjDMumS.js";import{u as ne}from"./ssrBoot-Me6CX2Hk.js";const oe=e=>{const{touchstartX:o,touchendX:t,touchstartY:n,touchendY:a}=e,u=.5,s=16;e.offsetX=t-o,e.offsetY=a-n,Math.abs(e.offsetY)<u*Math.abs(e.offsetX)&&(e.left&&t<o-s&&e.left(e),e.right&&t>o+s&&e.right(e)),Math.abs(e.offsetX)<u*Math.abs(e.offsetY)&&(e.up&&a<n-s&&e.up(e),e.down&&a>n+s&&e.down(e))};function se(e,o){var n;const t=e.changedTouches[0];o.touchstartX=t.clientX,o.touchstartY=t.clientY,(n=o.start)==null||n.call(o,{originalEvent:e,...o})}function ae(e,o){var n;const t=e.changedTouches[0];o.touchendX=t.clientX,o.touchendY=t.clientY,(n=o.end)==null||n.call(o,{originalEvent:e,...o}),oe(o)}function ie(e,o){var n;const t=e.changedTouches[0];o.touchmoveX=t.clientX,o.touchmoveY=t.clientY,(n=o.move)==null||n.call(o,{originalEvent:e,...o})}function ue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:t=>se(t,o),touchend:t=>ae(t,o),touchmove:t=>ie(t,o)}}function ce(e,o){var v;const t=o.value,n=t!=null&&t.parent?e.parentElement:e,a=(t==null?void 0:t.options)??{passive:!0},u=(v=o.instance)==null?void 0:v.$.uid;if(!n||!u)return;const s=ue(o.value);n._touchHandlers=n._touchHandlers??Object.create(null),n._touchHandlers[u]=s,Y(s).forEach(r=>{n.addEventListener(r,s[r],a)})}function le(e,o){var u,s;const t=(u=o.value)!=null&&u.parent?e.parentElement:e,n=(s=o.instance)==null?void 0:s.$.uid;if(!(t!=null&&t._touchHandlers)||!n)return;const a=t._touchHandlers[n];Y(a).forEach(v=>{t.removeEventListener(v,a[v])}),delete t._touchHandlers[n]}const W={mounted:ce,unmounted:le},P=Symbol.for("vuetify:v-window"),$=Symbol.for("vuetify:v-window-group"),re=_({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...H(),...M(),...O()},"VWindow"),he=k()({name:"VWindow",directives:{Touch:W},props:re(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const{themeClasses:n}=j(e),{isRtl:a}=G(),{t:u}=F(),s=z(e,$),v=S(),r=h(()=>a.value?!e.reverse:e.reverse),d=x(!1),y=h(()=>{const i=e.direction==="vertical"?"y":"x",f=(r.value?!d.value:d.value)?"-reverse":"";return`v-window-${i}${f}-transition`}),T=x(0),b=S(void 0),g=h(()=>s.items.value.findIndex(i=>s.selected.value.includes(i.id)));D(g,(i,l)=>{const f=s.items.value.length,C=f-1;f<=2?d.value=i<l:i===C&&l===0?d.value=!0:i===0&&l===C?d.value=!1:d.value=i<l}),U(P,{transition:y,isReversed:d,transitionCount:T,transitionHeight:b,rootRef:v});const c=h(()=>e.continuous||g.value!==0),I=h(()=>e.continuous||g.value!==s.items.value.length-1);function w(){c.value&&s.prev()}function B(){I.value&&s.next()}const L=h(()=>{const i=[],l={icon:a.value?e.nextIcon:e.prevIcon,class:`v-window__${r.value?"right":"left"}`,onClick:s.prev,"aria-label":u("$vuetify.carousel.prev")};i.push(c.value?t.prev?t.prev({props:l}):m(E,l,null):m("div",null,null));const f={icon:a.value?e.prevIcon:e.nextIcon,class:`v-window__${r.value?"left":"right"}`,onClick:s.next,"aria-label":u("$vuetify.carousel.next")};return i.push(I.value?t.next?t.next({props:f}):m(E,f,null):m("div",null,null)),i}),A=h(()=>e.touch===!1?e.touch:{...{left:()=>{r.value?w():B()},right:()=>{r.value?B():w()},start:l=>{let{originalEvent:f}=l;f.stopPropagation()}},...e.touch===!0?{}:e.touch});return V(()=>R(m(e.tag,{ref:v,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},n.value,e.class],style:e.style},{default:()=>{var i,l;return[m("div",{class:"v-window__container",style:{height:b.value}},[(i=t.default)==null?void 0:i.call(t,{group:s}),e.showArrows!==!1&&m("div",{class:"v-window__controls"},[L.value])]),(l=t.additional)==null?void 0:l.call(t,{group:s})]}}),[[q("touch"),A.value]])),{group:s}}}),ve=_({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...H(),...J(),...K()},"VWindowItem"),me=k()({name:"VWindowItem",directives:{Touch:W},props:ve(),emits:{"group:selected":e=>!0},setup(e,o){let{slots:t}=o;const n=Q(P),a=Z(e,$),{isBooted:u}=ne();if(!n||!a)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const s=x(!1),v=h(()=>u.value&&(n.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function r(){!s.value||!n||(s.valLine truncated
+1
View File
@@ -0,0 +1 @@
import{a6 as le,a7 as lt,ao as at,aa as ce,ae as me,x as l,bn as ot,aI as je,A as B,bY as nt,aO as st,bU as it,aP as rt,f as E,H as dt,bV as ut,bZ as ct,W as ee,V as te,bm as se,b_ as mt,k as ft,ai as vt,z as de,aw as pt,b5 as gt,b$ as yt,c0 as Vt,b6 as kt,aC as xt,bC as _t,bB as ze,aH as bt,aS as Oe,R,Z as oe,_ as q,r as w,c1 as ht,w as ne,O as Ae,P as Ee,s as d,t as k,v as a,L as O,C as s,y as f,Q as _,B as Y,D as $,G as _e,a_ as we,S as j,$ as m,a0 as F,aN as Ne,E as Z,c2 as Ct,U as J,F as M,bk as He,a2 as ve,c3 as Ye,l as Me,b0 as be,c4 as Ie,X as Te,M as ue,T as wt,a$ as ie,c5 as St,c6 as Dt,a5 as Xe,a3 as Ue,c7 as It,c8 as Tt,c9 as Ut,J as Fe,b3 as Rt,ca as Bt,cb as At,a4 as Et,aT as Mt,cc as Pt,cd as Lt}from"./index-COjDMumS.js";import{D as Wt}from"./date-select-D2bApzzg.js";import{V as re}from"./VSpacer-Q-SG7gn8.js";import{m as jt,V as Re,b as zt,a as Qe}from"./VWindowItem-rSD9c8zs.js";import{V as xe}from"./VTextField-BjWksY-K.js";import{V as Ot}from"./VTextarea-qF2XqWL0.js";import{V as Nt}from"./VSwitch-rZtxTrUU.js";import{V as Se}from"./VSelect-CYP9gZOZ.js";import{V as Ht}from"./VAlert-C5Ve5RMV.js";import{V as De}from"./VFileInput-Busl2805.js";import{V as Ft,a as Qt,b as Ge}from"./VRadioGroup-CItD9UOf.js";import{V as Gt}from"./VAutocomplete-DUcshk7Q.js";import{a as Yt,V as Be}from"./VList-CwTaIQsW.js";import{V as ye}from"./VContainer-_Rd4jqOY.js";import{V as Xt}from"./VCheckboxBtn-MbVoU8jL.js";import{V as Zt,a as Jt}from"./VCarouselItem-o6gyOaNw.js";import{V as Ze,a as he,b as Kt,c as Ce}from"./VTabs-BH9jz0Y6.js";import"./VLocaleProvider-CVl-Ln1o.js";import"./ssrBoot-Me6CX2Hk.js";/* empty css */import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";import"./VSelectionControl-BK9dDQDu.js";import"./filter-Bl2taI8b.js";const qt=le({start:Boolean,end:Boolean,...lt(),...at()},"VListItemAction"),$t=ce()({name:"VListItemAction",props:qt(),setup(i,t){let{slots:u}=t;return me(()=>l(i.tag,{class:["v-list-item-action",{"v-list-item-action--start":i.start,"v-list-item-action--end":i.end},i.class],style:i.style},u)),{}}}),Pe=Symbol.for("vuetify:v-stepper"),Je=le({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),Ke=ce()({name:"VStepperActions",props:Je(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(i,t){let{emit:u,slots:e}=t;const{t:c}=ot();function g(){u("click:prev")}function b(){u("click:next")}return me(()=>{const n={onClick:g},y={onClick:b};return l("div",{class:"v-stepper-actions"},[l(je,{defaults:{VBtn:{disabled:["prev",!0].includes(i.disabled),text:c(i.prevText),variant:"text"}}},{default:()=>{var o;return[((o=e.prev)==null?void 0:o.call(e,{props:n}))??l(B,n,null)]}}),l(je,{defaults:{VBtn:{color:i.color,disabled:["next",!0].includes(i.disabled),text:c(i.nextText),variant:"tonal"}}},{default:()=>{var o;return[((o=e.next)==null?void 0:o.call(e,{props:y}))??l(B,y,null)]}})])}),{}}}),Le=nt("v-stepper-header"),el=le({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:se,default:"$complete"},editable:Boolean,editIcon:{type:se,default:"$edit"},error:Boolean,errorIcon:{type:se,default:"$error"},icon:se,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),tl=le({...el(),...st()},"VStepperItem"),pe=ce()({name:"VStepperItem",directives:{Ripple:it},props:tl(),emits:{"group:selected":i=>!0},setup(i,t){let{slots:u}=t;const e=rt(i,Pe,!0),c=E(()=>(e==null?void 0:e.value.value)??i.value),g=E(()=>i.rules.every(C=>C()===!0)),b=E(()=>!i.disabled&&i.editable),n=E(()=>!i.disabled&&i.editable),y=E(()=>i.error||!g.value),o=E(()=>i.complete||i.rules.length>0&&g.value),v=E(()=>y.value?i.errorIcon:o.value?i.completeIcon:e.isSelected.value&&i.editable?i.editIcon:i.icon),r=E(()=>({canEdit:n.value,hasError:y.value,hasCompleted:o.value,title:i.title,subtitle:i.subtitle,step:c.value,value:i.value}));return me(()=>{var Q,H,T;const C=(!e||e.isSelected.value||o.value||n.value)&&!y.value&&!i.disabled,D=!!(i.title!=null||u.title),P=!!(i.subtitle!=null||u.subtitle);function N(){e==null||e.toggle()}return dt(l("button",{class:["v-stepper-item",{"v-stepper-item--complete":o.value,"v-stepper-item--disabled":i.disabled,"v-stepper-item--error":y.value},e==null?void 0:e.selectedClass.value],disabled:!i.editable,type:"button",onClick:N},[b.value&&ct(!0,"v-stepper-item"),l(ee,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:C?i.color:void 0,size:24},{default:()=>{var p;return[((p=u.icon)==null?void 0:p.call(u,r.value))??(v.value?l(te,{icon:v.value},null):c.value)]}}),l("div",{class:"v-stepper-item__content"},[D&&l("div",{key:"title",class:"v-stepper-item__title"},[((Q=u.title)==null?void 0:Q.call(u,r.value))??i.title]),P&&l("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[((H=u.subtitle)==null?void 0:H.call(u,r.value))??i.subtitle]),(T=u.default)==null?void 0:T.call(u,r.value)])]),[[ut("ripple"),i.riLine truncated
+1
View File
@@ -0,0 +1 @@
import{_ as f,m as V,bL as n,r as s,a1 as p,s as D,t as x,v as o,x as l,V as v,z as m,b1 as y}from"./index-COjDMumS.js";import{V as S}from"./VTextarea-qF2XqWL0.js";import{a as _,V as k}from"./VLocaleProvider-CVl-Ln1o.js";const w={props:{datedefault:{type:Date,default:""}},setup(c,{emit:a}){const r=V();n(new Date);const e=s(!1),d=s(null);return{menudate:e,selectedDate:d,dateStart:()=>{a("returndate",d.value),e.value=!1},formatComa:p,formatDash:n,appStore:r}}};function h(c,a,r,e,d,i){return D(),x(y,{modelValue:e.menudate,"onUpdate:modelValue":a[2]||(a[2]=t=>e.menudate=t),"close-on-content-click":!1,"nudge-right":40,transition:"scale-transition","offset-y":""},{activator:o(({props:t})=>[l(S,m({modelValue:e.selectedDate,"onUpdate:modelValue":a[0]||(a[0]=u=>e.selectedDate=u),value:e.formatComa(r.datedefault),"no-resize":"",class:"my-textarea",rows:"1","hide-details":"",style:{width:"119px"},variant:"plain",density:"compact"},t),{"prepend-inner":o(()=>[l(v,m(t,{icon:"mdi-calendar-today",color:"cyan-darken-3",size:"x-small"}),null,16)]),_:2},1040,["modelValue","value"])]),default:o(()=>[l(k,{locale:"ru"},{default:o(()=>[l(_,{modelValue:e.selectedDate,"onUpdate:modelValue":[a[1]||(a[1]=t=>e.selectedDate=t),e.dateStart],"show-adjacent-months":"","hide-header":"",border:""},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["modelValue"])}const z=f(w,[["render",h]]);export{z as D};
+1
View File
@@ -0,0 +1 @@
import{a6 as I,af as v,f as L,u as i,am as j,bs as w,bB as O}from"./index-COjDMumS.js";const S=(t,c,e)=>t==null||c==null?-1:t.toString().toLocaleLowerCase().indexOf(c.toString().toLocaleLowerCase()),A=I({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function x(t,c,e){var g;const f=[],s=(e==null?void 0:e.default)??S,m=e!=null&&e.filterKeys?w(e.filterKeys):!1,y=Object.keys((e==null?void 0:e.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return f;e:for(let r=0;r<t.length;r++){const[a,M=a]=w(t[r]),h={},u={};let l=-1;if((c||y>0)&&!(e!=null&&e.noFilter)){if(typeof a=="object"){const K=m||Object.keys(M);for(const n of K){const k=O(M,n),b=(g=e==null?void 0:e.customKeyFilter)==null?void 0:g[n];if(l=b?b(k,c,a):s(k,c,a),l!==-1&&l!==!1)b?h[n]=l:u[n]=l;else if((e==null?void 0:e.filterMode)==="every")continue e}}else l=s(a,c,a),l!==-1&&l!==!1&&(u.title=l);const d=Object.keys(u).length,F=Object.keys(h).length;if(!d&&!F||(e==null?void 0:e.filterMode)==="union"&&F!==y&&!d||(e==null?void 0:e.filterMode)==="intersection"&&(F!==y||!d))continue}f.push({index:r,matches:{...u,...h}})}return f}function B(t,c,e,f){const s=v([]),m=v(new Map),y=L(()=>f!=null&&f.transform?i(c).map(r=>[r,f.transform(r)]):i(c));j(()=>{const r=typeof e=="function"?e():i(e),a=typeof r!="string"&&typeof r!="number"?"":String(r),M=x(y.value,a,{customKeyFilter:{...t.customKeyFilter,...i(f==null?void 0:f.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),h=i(c),u=[],l=new Map;M.forEach(d=>{let{index:F,matches:K}=d;const n=h[F];u.push(n),l.set(n.value,K)}),s.value=u,m.value=l});function g(r){return m.value.get(r.value)}return{filteredItems:s,filteredMatches:m,getMatches:g}}export{A as m,B as u};
+1
View File
@@ -0,0 +1 @@
import{_ as c,r as i,bG as l,s as p,Q as d,x as s,V as u,C as m,$ as _,U as f}from"./index-COjDMumS.js";const x={props:{author:{type:Object,default:{}}},setup(){const n=i(!1);return{splitname:l,open:n}}},g={class:"text-caption me-2"};function V(n,o,t,e,h,k){const r=f("info-user-card");return p(),d("div",null,[s(u,{size:"x-small",class:"me-1",icon:"mdi-account",onClick:o[0]||(o[0]=a=>e.open=!0)}),m("span",g,_(e.splitname(t.author)),1),s(r,{author:t.author,opendialog:e.open,"onUpdate:opendialog":o[1]||(o[1]=a=>e.open=a)},null,8,["author","opendialog"])])}const B=c(x,[["render",V]]);export{B as i};
+45
View File
@@ -0,0 +1,45 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DefaultPortal-zhgkHsv0.js","assets/VContainer-_Rd4jqOY.js","assets/VTextField-BjWksY-K.js","assets/VField-DR7-v1FU.js","assets/VInput-Bmr5cjyQ.js","assets/VInput-BkCXTJZC.css","assets/VField-DxlUG_YQ.css","assets/VTextField-BlKXYkpA.css","assets/VSpacer-Q-SG7gn8.js","assets/VAlert-C5Ve5RMV.js","assets/VAlert-iGJ3gOzk.css","assets/VToolbar-DBXauuuI.js","assets/VToolbar-8mGC8o9f.css","assets/VTextarea-qF2XqWL0.js","assets/VTextarea-BTR7f0gW.css","assets/vcardUser-D1657SA7.js","assets/VList-CwTaIQsW.js","assets/ssrBoot-Me6CX2Hk.js","assets/VList-BcF7kSzT.css","assets/DefaultPortal-BzQVxUDf.css","assets/HomePage-ALz7IMsV.js","assets/VCarouselItem-o6gyOaNw.js","assets/VWindowItem-rSD9c8zs.js","assets/VWindowItem-CWBhiE_Y.css","assets/VCarouselItem-BO-gePTW.css","assets/NewsCard-Dbnw4IXW.js","assets/icoUser-_yXQAwDo.js","assets/load-round-_0dE5waF.js","assets/VFileInput-Busl2805.js","assets/VFileInput-hxvwU-MM.css","assets/load-round-B4mT6bS6.css","assets/VSwitch-rZtxTrUU.js","assets/VSelectionControl-BK9dDQDu.js","assets/VSelectionControl-CIeJsqfW.css","assets/VSwitch-Mm7Rd7At.css","assets/VLocaleProvider-CVl-Ln1o.js","assets/VLocaleProvider-2KZ5EKmp.css","assets/HomePage-BYtut_DO.css","assets/o_OKiB-DiqvqWQa.js","assets/ProvidingActivitiesPage-DZ_NktD3.js","assets/ProvidingActivitiesPage-D-0vg8zC.css","assets/ChaptersSafety-CtJTabBi.js","assets/PatternTabs-Cu_8Xs49.js","assets/VTabs-BH9jz0Y6.js","assets/VTabs-Bv8FUb0o.css","assets/VRadioGroup-CItD9UOf.js","assets/VCheckboxBtn-MbVoU8jL.js","assets/VRadioGroup-D0gc5V3-.css","assets/VExpansionPanels-AiedkAuP.js","assets/VExpansionPanels-RsCANmDP.css","assets/ChaptersSafety-BKLP8LT9.css","assets/AboutInspectionPage-F0vSluc3.js","assets/VForm-c-Rrg0xF.js","assets/AboutInspectionPage-ERA13iuC.css","assets/AboutPortalPage-DlvrmrqK.js","assets/VPagination-D9kFqUDc.js","assets/VPagination-CgkIFNCO.css","assets/VSelect-CYP9gZOZ.js","assets/VSelect-C5CKHFYB.css","assets/filter-Bl2taI8b.js","assets/date-select-D2bApzzg.js","assets/date-select-woJUZyQ7.css","assets/AboutPortalPage-CdwtFbke.css","assets/NewsPage-B7dU7g8g.js","assets/NewsPage-tn0RQdqM.css","assets/news-full-Dzfl78Zg.js","assets/news-full-jj_ICCyw.css","assets/FnsHol-D_yUgoIl.js","assets/FnsHol-BYHVbYT4.css","assets/BigCalendar-DF4EIahr.js","assets/VAutocomplete-DUcshk7Q.js","assets/VAutocomplete-CuVjyvcC.css","assets/BigCalendar-DWQqjsw-.css","assets/VoteHomePage-B6llW5Fl.js","assets/VoteHomePage-DW05nxUC.css","assets/TestHomePage-KYzyzh41.js","assets/CatalogTest-DMixOACb.js","assets/DetailCardTest-DPP_zAOK.js","assets/SecretPage-QLq_YLiI.js"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function gu(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Be={},es=[],bn=()=>{},Zy=()=>!1,Ha=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yu=e=>e.startsWith("onUpdate:"),at=Object.assign,pu=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xy=Object.prototype.hasOwnProperty,Fe=(e,t)=>Xy.call(e,t),de=Array.isArray,ts=e=>Ya(e)==="[object Map]",ch=e=>Ya(e)==="[object Set]",ve=e=>typeof e=="function",Je=e=>typeof e=="string",Vn=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",fh=e=>(Ue(e)||ve(e))&&ve(e.then)&&ve(e.catch),dh=Object.prototype.toString,Ya=e=>dh.call(e),Qy=e=>Ya(e).slice(8,-1),hh=e=>Ya(e)==="[object Object]",bu=e=>Je(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ys=gu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ja=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ep=/-(\w)/g,Pt=ja(e=>e.replace(ep,(t,n)=>n?n.toUpperCase():"")),tp=/\B([A-Z])/g,ar=ja(e=>e.replace(tp,"-$1").toLowerCase()),$n=ja(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qi=ja(e=>e?`on${$n(e)}`:""),er=(e,t)=>!Object.is(e,t),ea=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},mh=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Sl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},np=e=>{const t=Je(e)?Number(e):NaN;return isNaN(t)?e:t};let Rc;const Wa=()=>Rc||(Rc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ua(e){if(de(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Je(r)?ap(r):Ua(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(Je(e)||Ue(e))return e}const rp=/;(?![^(]*\))/g,sp=/:([^]+)/,ip=/\/\*[^]*?\*\//g;function ap(e){const t={};return e.replace(ip,"").split(rp).forEach(n=>{if(n){const r=n.split(sp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function os(e){let t="";if(Je(e))t=e;else if(de(e))for(let n=0;n<e.length;n++){const r=os(e[n]);r&&(t+=r+" ")}else if(Ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function fP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Je(t)&&(e.class=os(t)),n&&(e.style=Ua(n)),e}const op="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lp=gu(op);function vh(e){return!!e||e===""}const gh=e=>!!(e&&e.__v_isRef===!0),Wt=e=>Je(e)?e:e==null?"":de(e)||Ue(e)&&(e.toString===dh||!ve(e.toString))?gh(e)?Wt(e.value):JSON.stringify(e,yh,2):String(e),yh=(e,t)=>gh(t)?yh(e,t.value):ts(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Bo(r,i)+" =>"]=s,n),{})}:ch(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bo(n))}:Vn(t)?Bo(t):Ue(t)&&!de(t)&&!hh(t)?String(t):t,Bo=(e,t="")=>{var n;return Vn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let kt;class ph{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=kt,!t&&kt&&(this.index=(kt.scopes||(kt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=kt;try{return kt=this,t()}finally{kt=n}}}on(){kt=this}off(){kt=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function wi(e){return new ph(e)}function bh(){return kt}function Lt(e,t=!1){kt&&kt.cleanups.push(e)}let je;const Ho=new WeakSet;class _h{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,kt&&kt.active&&kt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ho.has(this)&&(Ho.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Sh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ic(this),kh(this);const t=je,n=Xt;je=this,Xt=!0;try{return this.fn()}finally{xh(this),je=t,Xt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Su(t);this.deps=this.depsTail=void 0,Ic(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ho.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){kl(this)&&this.run()}get dirty(){return kl(this)}}let wh=0,js,Ws;function Sh(e,t=!1){if(e.flags|=8,t){e.next=Ws,Ws=e;return}e.next=js,js=e}function _u(){wh++}function wu(){if(--wh>0)return;if(Ws){let t=Ws;for(Ws=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;js;){let t=js;for(js=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function kh(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xh(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Su(r),up(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function kl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ch(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ch(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qs))return;e.globalVersion=Qs;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!kl(e)){e.flags&=-3;return}const n=je,r=Xt;je=e,Xt=!0;try{kh(e);const s=e.fn(e._value);(t.version===0||er(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{je=n,Xt=r,xh(e),e.flags&=-3}}function Su(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Su(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function up(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xt=!0;const Eh=[];function or(){Eh.push(Xt),Xt=!1}function lr(){const e=Eh.pop();Xt=e===void 0?!0:e}function Ic(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=je;je=void 0;try{t()}finally{je=n}}}let Qs=0;class cp{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ku{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!je||!Xt||je===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==je)n=this.activeLink=new cp(je,this),je.deps?(n.prevDep=je.depsTail,je.depsTail.nextDep=n,je.depsTail=n):je.deps=je.depsTail=n,Ah(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=je.depsTail,n.nextDep=void 0,je.depsTail.nextDep=n,je.depsTail=n,je.deps===n&&(je.deps=r)}return n}trigger(t){this.version++,Qs++,this.notify(t)}notify(t){_u();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{wu()}}}function Ah(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDLine truncated
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Si(e,t,n,r){try{return r?e(...r):e()}catch(s){Ka(s,t,n)}}function en(e,t,n,r){if(ve(e)){const s=Si(e,t,n,r);return s&&fh(s)&&s.catch(i=>{Ka(i,t,n)}),s}if(de(e)){const s=[];for(let i=0;i<e.length;i++)s.push(en(e[i],t,n,r));return s}}function Ka(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Be;if(t){let o=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}o=o.parent}if(i){or(),Si(i,null,10,[e,l,u]),lr();return}}Np(e,n,s,r,a)}function Np(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const xt=[];let vn=-1;const ns=[];let qn=null,zr=0;const Vh=Promise.resolve();let pa=null;function Vt(e){const t=pa||Vh;return e?t.then(this?e.bind(this):e):t}function Lp(e){let t=vn+1,n=xt.length;for(;t<n;){const r=t+n>>>1,s=xt[r],i=ti(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Ou(e){if(!(e.flags&1)){const t=ti(e),n=xt[xt.length-1];!n||!(e.flags&2)&&t>=ti(n)?xt.push(e):xt.splice(Lp(t),0,e),e.flags|=1,$h()}}function $h(){pa||(pa=Vh.then(Hh))}function Vp(e){de(e)?ns.push(...e):qn&&e.id===-1?qn.splice(zr+1,0,e):e.flags&1||(ns.push(e),e.flags|=1),$h()}function Nc(e,t,n=vn+1){for(;n<xt.length;n++){const r=xt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;xt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Bh(e){if(ns.length){const t=[...new Set(ns)].sort((n,r)=>ti(n)-ti(r));if(ns.length=0,qn){qn.push(...t);return}for(qn=t,zr=0;zr<qn.length;zr++){const n=qn[zr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}qn=null,zr=0}}const ti=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Hh(e){try{for(vn=0;vn<xt.length;vn++){const t=xt[vn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Si(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;vn<xt.length;vn++){const t=xt[vn];t&&(t.flags&=-2)}vn=-1,xt.length=0,Bh(),pa=null,(xt.length||ns.length)&&Hh()}}let st=null,Yh=null;function ba(e){const t=st;return st=e,Yh=e&&e.type.__scopeId||null,t}function Re(e,t=st,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Zc(-1);const i=ba(t);let a;try{a=e(...s)}finally{ba(i),r._d&&Zc(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Nn(e,t){if(st===null)return e;const n=to(st),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,o,l=Be]=t[s];i&&(ve(i)&&(i={mounted:i,updated:i}),i.deep&&Pn(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:l}))}return e}function fr(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let a=0;a<s.length;a++){const o=s[a];i&&(o.oldValue=i[a].value);let l=o.dir[r];l&&(or(),en(l,n,8,[e.el,o,e,t]),lr())}}const jh=Symbol("_vte"),Wh=e=>e.__isTeleport,Us=e=>e&&(e.disabled||e.disabled===""),Lc=e=>e&&(e.defer||e.defer===""),Vc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,$c=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Al=(e,t)=>{const n=e&&e.to;return Je(n)?t?t(n):null:n},Uh={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,a,o,l,u){const{mc:c,pc:f,pbc:d,o:{insert:m,querySelector:h,createText:v,createComment:g}}=u,_=Us(t.props);let{shapeFlag:S,children:x,dynamicChildren:A}=t;if(e==null){const I=t.el=v(""),D=t.anchor=v("");m(I,n,r),m(D,n,r);const M=(O,B)=>{S&16&&(s&&s.isCE&&(s.ce._teleportTarget=O),c(x,O,B,s,i,a,o,l))},C=()=>{const O=t.target=Al(t.props,h),B=zh(O,t,v,m);O&&(a!=="svg"&&Vc(O)?a="svg":a!=="mathml"&&$c(O)&&(a="mathml"),_||(M(O,B),ta(t,!1)))};_&&(M(n,D),ta(t,!0)),Lc(t.props)?St(()=>{C(),t.el.__isMounted=!0},i):C()}else{if(Lc(t.props)&&!e.el.__isMounted){St(()=>{Uh.process(e,t,n,r,s,i,a,o,l,u),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const I=t.anchor=e.anchor,D=t.target=e.target,M=t.targetAnchor=e.targetAnchor,C=Us(e.props),O=C?n:D,B=C?I:M;if(a==="svg"||Vc(D)?a="svg":(a==="mathml"||$c(D))&&(a="mathml"),A?(d(e.dynamicChildren,A,O,s,i,a,o),Fu(e,t,!0)):l||f(e,t,O,B,s,i,a,o,!1),_)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ui(t,n,I,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=Al(t.props,h);F&&Ui(t,F,null,u,0)}else C&&Ui(t,D,M,u,1);ta(t,_)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:a,children:o,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(s(u),s(c)),i&&s(l),a&16){const m=i||!Us(d);for(let h=0;h<o.length;h++){const v=o[h];r(v,t,n,m,!!v.dynamicChildren)}}},move:Ui,hydrate:$p};function Ui(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:a,anchor:o,shapeFlag:l,children:u,props:c}=e,f=i===2;if(f&&r(a,t,n),(!f||Us(c))&&l&16)for(let d=0;d<u.length;d++)s(u[d],t,n,2);f&&r(o,t,n)}function $p(e,t,n,r,s,i,{o:{nextSibling:a,parentNode:o,querySelector:l,insert:u,createText:c}},f){const d=t.target=Al(t.props,l);if(d){const m=Us(t.props),h=d._lpa||d.firstChild;if(t.shapeFlag&16)if(m)t.anchor=f(a(e),t,o(e),n,r,s,i),t.targetStart=h,t.targetAnchor=h&&a(h);else{t.anchor=a(e);let v=h;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targ Line truncated
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Rl;const ef=typeof window<"u"&&window.trustedTypes;if(ef)try{Rl=ef.createPolicy("vue",{createHTML:e=>e})}catch{}const Cm=Rl?e=>Rl.createHTML(e):e=>e,Hb="http://www.w3.org/2000/svg",Yb="http://www.w3.org/1998/Math/MathML",An=typeof document<"u"?document:null,tf=An&&An.createElement("template"),jb={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?An.createElementNS(Hb,e):t==="mathml"?An.createElementNS(Yb,e):n?An.createElement(e,{is:n}):An.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>An.createTextNode(e),createComment:e=>An.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>An.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const a=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{tf.innerHTML=Cm(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=tf.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Wn="transition",Rs="animation",us=Symbol("_vtc"),Em={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Am=at({},qh,Em),Wb=e=>(e.displayName="Transition",e.props=Am,e),Dr=Wb((e,{slots:t})=>wn(Yp,Om(e),t)),hr=(e,t=[])=>{de(e)?e.forEach(n=>n(...t)):e&&e(...t)},nf=e=>e?de(e)?e.some(t=>t.length>1):e.length>1:!1;function Om(e){const t={};for(const w in e)w in Em||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:c=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Ub(s),v=h&&h[0],g=h&&h[1],{onBeforeEnter:_,onEnter:S,onEnterCancelled:x,onLeave:A,onLeaveCancelled:I,onBeforeAppear:D=_,onAppear:M=S,onAppearCancelled:C=x}=t,O=(w,R,H,U)=>{w._enterCancelled=U,zn(w,R?c:o),zn(w,R?u:a),H&&H()},B=(w,R)=>{w._isLeaving=!1,zn(w,f),zn(w,m),zn(w,d),R&&R()},F=w=>(R,H)=>{const U=w?M:S,re=()=>O(R,w,H);hr(U,[R,re]),rf(()=>{zn(R,w?l:i),mn(R,w?c:o),nf(U)||sf(R,r,v,re)})};return at(t,{onBeforeEnter(w){hr(_,[w]),mn(w,i),mn(w,a)},onBeforeAppear(w){hr(D,[w]),mn(w,l),mn(w,u)},onEnter:F(!1),onAppear:F(!0),onLeave(w,R){w._isLeaving=!0;const H=()=>B(w,R);mn(w,f),w._enterCancelled?(mn(w,d),Il()):(Il(),mn(w,d)),rf(()=>{w._isLeaving&&(zn(w,f),mn(w,m),nf(A)||sf(w,r,g,H))}),hr(A,[w,H])},onEnterCancelled(w){O(w,!1,void 0,!0),hr(x,[w])},onAppearCancelled(w){O(w,!0,void 0,!0),hr(C,[w])},onLeaveCancelled(w){B(w),hr(I,[w])}})}function Ub(e){if(e==null)return null;if(Ue(e))return[qo(e.enter),qo(e.leave)];{const t=qo(e);return[t,t]}}function qo(e){return np(e)}function mn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[us]||(e[us]=new Set)).add(t)}function zn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[us];n&&(n.delete(t),n.size||(e[us]=void 0))}function rf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let zb=0;function sf(e,t,n,r){const s=e._endId=++zb,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:a,timeout:o,propCount:l}=Tm(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=m=>{m.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),e.addEventListener(u,d)}function Tm(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),s=r(`${Wn}Delay`),i=r(`${Wn}Duration`),a=af(s,i),o=r(`${Rs}Delay`),l=r(`${Rs}Duration`),u=af(o,l);let c=null,f=0,d=0;t===Wn?a>0&&(c=Wn,f=a,d=i.length):t===Rs?u>0&&(c=Rs,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?Wn:Rs:null,d=c?c===Wn?i.length:l.length:0);const m=c===Wn&&/\b(transform|all)(,|$)/.test(r(`${Wn}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:m}}function af(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>of(n)+of(e[r])))}function of(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Il(){return document.body.offsetHeight}function Gb(e,t,n){const r=e[us];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ka=Symbol("_vod"),Pm=Symbol("_vsh"),no={beforeMount(e,{value:t},{transition:n}){e[ka]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Is(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updat Line truncated
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let Im;const ro=e=>Im=e,Fm=Symbol();function Fl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var qs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(qs||(qs={}));function w0(){const e=wi(!0),t=e.run(()=>ie({}));let n=[],r=[];const s=Au({install(i){ro(s),s._a=i,i.provide(Fm,s),i.config.globalProperties.$pinia=s,r.forEach(a=>n.push(a)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Nm=()=>{};function _f(e,t,n,r=Nm){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&bh()&&Lt(s),s}function Hr(e,...t){e.slice().forEach(n=>{n(...t)})}const S0=e=>e(),wf=Symbol(),Xo=Symbol();function Nl(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Fl(s)&&Fl(r)&&e.hasOwnProperty(n)&&!Ve(r)&&!tr(r)?e[n]=Nl(s,r):e[n]=r}return e}const k0=Symbol();function x0(e){return!Fl(e)||!e.hasOwnProperty(k0)}const{assign:Gn}=Object;function C0(e){return!!(Ve(e)&&e.effect)}function E0(e,t,n,r){const{state:s,actions:i,getters:a}=t,o=n.state.value[e];let l;function u(){o||(n.state.value[e]=s?s():{});const c=qa(n.state.value[e]);return Gn(c,i,Object.keys(a||{}).reduce((f,d)=>(f[d]=Au(k(()=>{ro(n);const m=n._s.get(e);return a[d].call(m,m)})),f),{}))}return l=Lm(e,u,t,n,r,!0),l}function Lm(e,t,n={},r,s,i){let a;const o=Gn({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],m;const h=r.state.value[e];!i&&!h&&(r.state.value[e]={}),ie({});let v;function g(C){let O;u=c=!1,typeof C=="function"?(C(r.state.value[e]),O={type:qs.patchFunction,storeId:e,events:m}):(Nl(r.state.value[e],C),O={type:qs.patchObject,payload:C,storeId:e,events:m});const B=v=Symbol();Vt().then(()=>{v===B&&(u=!0)}),c=!0,Hr(f,O,r.state.value[e])}const _=i?function(){const{state:O}=n,B=O?O():{};this.$patch(F=>{Gn(F,B)})}:Nm;function S(){a.stop(),f=[],d=[],r._s.delete(e)}const x=(C,O="")=>{if(wf in C)return C[Xo]=O,C;const B=function(){ro(r);const F=Array.from(arguments),w=[],R=[];function H(ne){w.push(ne)}function U(ne){R.push(ne)}Hr(d,{args:F,name:B[Xo],store:I,after:H,onError:U});let re;try{re=C.apply(this&&this.$id===e?this:I,F)}catch(ne){throw Hr(R,ne),ne}return re instanceof Promise?re.then(ne=>(Hr(w,ne),ne)).catch(ne=>(Hr(R,ne),Promise.reject(ne))):(Hr(w,re),re)};return B[wf]=!0,B[Xo]=O,B},A={_p:r,$id:e,$onAction:_f.bind(null,d),$patch:g,$reset:_,$subscribe(C,O={}){const B=_f(f,C,O.detached,()=>F()),F=a.run(()=>we(()=>r.state.value[e],w=>{(O.flush==="sync"?c:u)&&C({storeId:e,type:qs.direct,events:m},w)},Gn({},l,O)));return B},$dispose:S},I=rt(A);r._s.set(e,I);const M=(r._a&&r._a.runWithContext||S0)(()=>r._e.run(()=>(a=wi()).run(()=>t({action:x}))));for(const C in M){const O=M[C];if(Ve(O)&&!C0(O)||tr(O))i||(h&&x0(O)&&(Ve(O)?O.value=h[C]:Nl(O,h[C])),r.state.value[e][C]=O);else if(typeof O=="function"){const B=x(O,C);M[C]=B,o.actions[C]=O}}return Gn(I,M),Gn(le(I),M),Object.defineProperty(I,"$state",{get:()=>r.state.value[e],set:C=>{g(O=>{Gn(O,C)})}}),r._p.forEach(C=>{Gn(I,a.run(()=>C({store:I,app:r._a,pinia:r,options:o})))}),h&&i&&n.hydrate&&n.hydrate(I.$state,h),u=!0,c=!0,I}/*! #__NO_SIDE_EFFECTS__ */function Bu(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function a(o,l){const u=ob();return o=o||(u?Oe(Fm,null):null),o&&ro(o),o=Im,o._s.has(r)||(i?Lm(r,t,s,o):E0(r,s,o)),o._s.get(r)}return a.$id=r,a}function Vm(e,t){return function(){return e.apply(t,arguments)}}const{toString:A0}=Object.prototype,{getPrototypeOf:Hu}=Object,so=(e=>t=>{const n=A0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),sn=e=>(e=e.toLowerCase(),t=>so(t)===e),io=e=>t=>typeof t===e,{isArray:vs}=Array,ai=io("undefined");function O0(e){return e!==null&&!ai(e)&&e.constructor!==null&&!ai(e.constructor)&&Nt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $m=sn("ArrayBuffer");function T0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&$m(e.buffer),t}const P0=io("string"),Nt=io("function"),Bm=io("number"),ao=e=>e!==null&&typeof e=="object",D0=e=>e===!0||e===!1,ia=e=>{if(so(e)!=="object")return!1;const t=Hu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},M0=sn("Date"),R0=sn("File"),I0=sn("Blob"),F0=sn("FileList"),N0=e=>ao(e)&&Nt(e.pipe),L0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nt(e.append)&&((t=so(e))==="formdata"||t==="object"&&Nt(e.toString)&&e.toString()==="[object FormData]"))},V0=sn("URLSearchParams"),[$0,B0,H0,Y0]=["ReadableStream","Request","Response","Headers"].map(sn),j0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ei(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(tLine truncated
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||t[n]&&O_[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Af=Symbol("internals");function Fs(e){return e&&String(e).trim().toLowerCase()}function aa(e){return e===!1||e==null?e:P.isArray(e)?e.map(aa):String(e)}function P_(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const D_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function el(e,t,n,r,s){if(P.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function M_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function R_(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,a){return this[r].call(this,t,s,i,a)},configurable:!0})})}class Tt{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(o,l,u){const c=Fs(l);if(!c)throw new Error("header name must be a non-empty string");const f=P.findKey(s,c);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||l]=aa(o))}const a=(o,l)=>P.forEach(o,(u,c)=>i(u,c,l));if(P.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(P.isString(t)&&(t=t.trim())&&!D_(t))a(T_(t),n);else if(P.isHeaders(t))for(const[o,l]of t.entries())i(l,o,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Fs(t),t){const r=P.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return P_(s);if(P.isFunction(n))return n.call(this,s,r);if(P.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fs(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||el(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(a){if(a=Fs(a),a){const o=P.findKey(r,a);o&&(!n||el(r,r[o],o,n))&&(delete r[o],s=!0)}}return P.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||el(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return P.forEach(this,(s,i)=>{const a=P.findKey(r,i);if(a){n[a]=aa(s),delete n[i];return}const o=t?M_(i):String(i).trim();o!==i&&delete n[i],n[o]=aa(s),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&P.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Af]=this[Af]={accessors:{}}).accessors,s=this.prototype;function i(a){const o=Fs(a);r[o]||(R_(s,a),r[o]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}}Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(Tt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(Tt);function tl(e,t){const n=this||Ai,r=t||n,s=Tt.from(r.headers);let i=r.data;return P.forEach(e,function(o){i=o.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Qm(e){return!!(e&&e.__CANCEL__)}function gs(e,t,n){_e.call(this,e??"canceled",_e.ERR_CANCELED,t,n),this.name="CanceledError"}P.inherits(gs,_e,{__CANCEL__:!0});function ev(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _e("Request failed with status code "+n.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function I_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function F_(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];a||(a=u),n[s]=l,r[s]=u;let f=i,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(d*1e3/m):void 0}}function N_(e,t){let n=0,r=1e3/t,s,i;const a=(u,c=Date.now())=>{n=c,s=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(s=u,i||(i=setTimeout(()=>{i=null,a(s)},r-f)))},()=>s&&a(s)]}const Ca=(e,t,n=3)=>{let r=0;const s=F_(50,250);return N_(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-r,u=s(l),c=a<=o;r=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},Of=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Tf=e=>(...t)=>P.asap(()=>e(...t)),L_=yt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,V_=yt.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const a=[e+"="+encodeURIComponent(t)];P.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),P.isString(r)&&a.push("path="+r),P.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function B_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tv(e,t){return e&&!$_(t)?B_(e,t):t}const Pf=e=>e instanceof Tt?{...e}:e;function Mr(e,t){t=t||{};const n={};function r(u,c,f,d){return P.isPlainObject(u)&&P.isPlainObject(c)?P.merge.call({caseless:d},u,c):P.isPlainObject(c)?P.merge({},c):P.isArray(c)?c.slice():c}function s(u,c,f,d){if(P.isUndefined(c)){if(!P.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function i(u,c){if(!P.isUndefined(c))return r(void 0,c)}function a(u,c){if(P.isUndefined(c)){if(!P.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c,f)=>s(Pf(u),Pf(c),f,!0)};return P.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||s,d=f(e[c],t[c],c);P.isUndefined(d)&&f!==o||(n[c]=d)}),n}const nv=e=>{const t=Mr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:o}=t;t.headers=a=Tt.from(a),t.url=Jm(tv(t.baseURL,t.url),e.params,e.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(P.isFormData(n)){if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(yt.hasStandardBrowserEnv&&(r&&P.isFunction(r)&&(r=r(t)),r||r!==!1&&L_(t.url))){const u=s&&i&&V_.read(i);u&&a.set(s,u)}return t},H_=typeof XMLHttpRequest< Line truncated
`+i.map(Rf).join(`
`):" "+Rf(i[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Hl};function nl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gs(null,e)}function If(e){return nl(e),e.headers=Tt.from(e.headers),e.data=tl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iv.getAdapter(e.adapter||Ai.adapter)(e).then(function(r){return nl(e),r.data=tl.call(e,e.transformResponse,r),r.headers=Tt.from(r.headers),r},function(r){return Qm(r)||(nl(e),r&&r.response&&(r.response.data=tl.call(e,e.transformResponse,r.response),r.response.headers=Tt.from(r.response.headers))),Promise.reject(r)})}const av="1.7.9",uo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uo[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ff={};uo.transitional=function(t,n,r){function s(i,a){return"[Axios v"+av+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,o)=>{if(t===!1)throw new _e(s(a," has been removed"+(n?" in "+n:"")),_e.ERR_DEPRECATED);return n&&!Ff[a]&&(Ff[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,o):!0}};uo.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Q_(e,t,n){if(typeof e!="object")throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],a=t[i];if(a){const o=e[i],l=o===void 0||a(o,i,e);if(l!==!0)throw new _e("option "+i+" must be "+l,_e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _e("Unknown option "+i,_e.ERR_BAD_OPTION)}}const oa={assertOptions:Q_,validators:uo},hn=oa.validators;class xr{constructor(t){this.defaults=t,this.interceptors={request:new Ef,response:new Ef}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&oa.assertOptions(r,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean)},!1),s!=null&&(P.isFunction(s)?n.paramsSerializer={serialize:s}:oa.assertOptions(s,{encode:hn.function,serialize:hn.function},!0)),oa.assertOptions(n,{baseUrl:hn.spelling("baseURL"),withXsrfToken:hn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Tt.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const h=[If.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,u),d=h.length,c=Promise.resolve(n);f<d;)c=c.then(h[f++],h[f++]);return c}d=o.length;let m=n;for(f=0;f<d;){const h=o[f++],v=o[f++];try{m=h(m)}catch(g){v.call(this,g);break}}try{c=If.call(this,m)}catch(h){return Promise.reject(h)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Mr(this.defaults,t);const n=tv(t.baseURL,t.url);return Jm(n,t.params,t.paramsSerializer)}}P.forEach(["delete","get","head","options"],function(t){xr.prototype[t]=function(n,r){return this.request(Mr(r||{},{method:t,url:n,data:(r||{}).data}))}});P.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,o){return this.request(Mr(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}xr.prototype[t]=n(),xr.prototype[t+"Form"]=n(!0)});class Wu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(o=>{r.subscribe(o),i=o}).then(s);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,o){r.reason||(r.reason=new gs(i,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Wu(function(s){t=s}),cancel:t}}}function ew(e){return function(n){return e.apply(null,n)}}function tw(e){return P.isObject(e)&&e.isAxiosError===!0}const Yl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Yl).forEach(([e,t])=>{Yl[t]=e});function ov(e){const t=new xr(e),n=Vm(xr.prototype.request,t);return P.extend(n,xr.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ov(Mr(e,s))},n}const Qe=ov(Ai);Qe.Axios=xr;Qe.CanceledError=gs;Qe.CancelToken=Wu;Qe.isCancel=Qm;Qe.VERSION=av;Qe.toFormData=oo;Qe.AxiosError=_e;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=ew;Qe.isAxiosError=tw;Qe.mergeConfig=Mr;Qe.AxiosHeaders=Tt;Qe.formToJSON=e=>Xm(P.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=iv.getAdapter;Qe.HttpStatusCode=Yl;Qe.default=Qe;const Aa="http://10.252.44.33/accounting6/images/photo/",bP="http://10.252.44.33/accounting6/",co=`http://${window.location.host}/`,_P=`ws://${window.location.host}/`;async Line truncated
* vue-router v4.5.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const qr=typeof document<"u";function cv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cv(e.default)}const Ie=Object.assign;function rl(e,t){const n={};for(const r in t){const s=t[r];n[r]=tn(s)?s.map(e):e(s)}return n}const Ks=()=>{},tn=Array.isArray,fv=/#/g,uw=/&/g,cw=/\//g,fw=/=/g,dw=/\?/g,dv=/\+/g,hw=/%5B/g,mw=/%5D/g,hv=/%5E/g,vw=/%60/g,mv=/%7B/g,gw=/%7C/g,vv=/%7D/g,yw=/%20/g;function Uu(e){return encodeURI(""+e).replace(gw,"|").replace(hw,"[").replace(mw,"]")}function pw(e){return Uu(e).replace(mv,"{").replace(vv,"}").replace(hv,"^")}function jl(e){return Uu(e).replace(dv,"%2B").replace(yw,"+").replace(fv,"%23").replace(uw,"%26").replace(vw,"`").replace(mv,"{").replace(vv,"}").replace(hv,"^")}function bw(e){return jl(e).replace(fw,"%3D")}function _w(e){return Uu(e).replace(fv,"%23").replace(dw,"%3F")}function ww(e){return e==null?"":_w(e).replace(cw,"%2F")}function oi(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Sw=/\/$/,kw=e=>e.replace(Sw,"");function sl(e,t,n="/"){let r,s={},i="",a="";const o=t.indexOf("#");let l=t.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,o>-1?o:t.length),s=e(i)),o>-1&&(r=r||t.slice(0,o),a=t.slice(o,t.length)),r=Aw(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:s,hash:oi(a)}}function xw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Lf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Cw(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&cs(t.matched[r],n.matched[s])&&gv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function cs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ew(e[n],t[n]))return!1;return!0}function Ew(e,t){return tn(e)?Vf(e,t):tn(t)?Vf(t,e):e===t}function Vf(e,t){return tn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Aw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,a,o;for(a=0;a<r.length;a++)if(o=r[a],o!==".")if(o==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}const Un={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var li;(function(e){e.pop="pop",e.push="push"})(li||(li={}));var Js;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Js||(Js={}));function Ow(e){if(!e)if(qr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kw(e)}const Tw=/^[^#]+#/;function Pw(e,t){return e.replace(Tw,"#")+t}function Dw(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const fo=()=>({left:window.scrollX,top:window.scrollY});function Mw(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Dw(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $f(e,t){return(history.state?history.state.position-t:-1)+e}const Wl=new Map;function Rw(e,t){Wl.set(e,t)}function Iw(e){const t=Wl.get(e);return Wl.delete(e),t}let Fw=()=>location.protocol+"//"+location.host;function yv(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(o);return l[0]!=="/"&&(l="/"+l),Lf(l,"")}return Lf(n,e)+r+s}function Nw(e,t,n,r){let s=[],i=[],a=null;const o=({state:d})=>{const m=yv(e,location),h=n.value,v=t.value;let g=0;if(d){if(n.value=m,t.value=d,a&&a===h){a=null;return}g=v?d.position-v.position:0}else r(m);s.forEach(_=>{_(n.value,h,{delta:g,type:li.pop,direction:g?g>0?Js.forward:Js.back:Js.unknown})})};function l(){a=n.value}function u(d){s.push(d);const m=()=>{const h=s.indexOf(d);h>-1&&s.splice(h,1)};return i.push(m),m}function c(){const{history:d}=window;d.state&&d.replaceState(Ie({},d.state,{scroll:fo()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Bf(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?fo():null}}function Lw(e){const{history:t,location:n}=window,r={value:yv(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scLine truncated
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var Sv;function Z(){return Sv.apply(null,arguments)}function dS(e){Sv=e}function nn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Cr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function De(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Gu(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(De(e,t))return!1;return!0}function Ot(e){return e===void 0}function Ln(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Oi(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function kv(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function Xn(e,t){for(var n in t)De(t,n)&&(e[n]=t[n]);return De(t,"toString")&&(e.toString=t.toString),De(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Sn(e,t,n,r){return zv(e,t,n,r,!0).utc()}function hS(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Se(e){return e._pf==null&&(e._pf=hS()),e._pf}var zl;Array.prototype.some?zl=Array.prototype.some:zl=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function qu(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Se(e),n=zl.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function mo(e){var t=Sn(NaN);return e!=null?Xn(Se(t),e):Se(t).userInvalidated=!0,t}var ed=Z.momentProperties=[],al=!1;function Ku(e,t){var n,r,s,i=ed.length;if(Ot(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Ot(t._i)||(e._i=t._i),Ot(t._f)||(e._f=t._f),Ot(t._l)||(e._l=t._l),Ot(t._strict)||(e._strict=t._strict),Ot(t._tzm)||(e._tzm=t._tzm),Ot(t._isUTC)||(e._isUTC=t._isUTC),Ot(t._offset)||(e._offset=t._offset),Ot(t._pf)||(e._pf=Se(t)),Ot(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=ed[n],s=t[r],Ot(s)||(e[r]=s);return e}function Ti(e){Ku(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),al===!1&&(al=!0,Z.updateOffset(this),al=!1)}function rn(e){return e instanceof Ti||e!=null&&e._isAMomentObject!=null}function xv(e){Z.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Gt(e,t){var n=!0;return Xn(function(){if(Z.deprecationHandler!=null&&Z.deprecationHandler(null,e),n){var r=[],s,i,a,o=arguments.length;for(i=0;i<o;i++){if(s="",typeof arguments[i]=="object"){s+=`
[`+i+"] ";for(a in arguments[0])De(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[i];r.push(s)}xv(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var td={};function Cv(e,t){Z.deprecationHandler!=null&&Z.deprecationHandler(e,t),td[e]||(xv(t),td[e]=!0)}Z.suppressDeprecationWarnings=!1;Z.deprecationHandler=null;function kn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function mS(e){var t,n;for(n in e)De(e,n)&&(t=e[n],kn(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Gl(e,t){var n=Xn({},e),r;for(r in t)De(t,r)&&(Cr(e[r])&&Cr(t[r])?(n[r]={},Xn(n[r],e[r]),Xn(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)De(e,r)&&!De(t,r)&&Cr(e[r])&&(n[r]=Xn({},n[r]));return n}function Ju(e){e!=null&&this.set(e)}var ql;Object.keys?ql=Object.keys:ql=function(e){var t,n=[];for(t in e)De(e,t)&&n.push(t);return n};var vS={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function gS(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return kn(r)?r.call(t,n):r}function _n(e,t,n){var r=""+Math.abs(e),s=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var Zu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Gi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ol={},ss={};function oe(e,t,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(ss[e]=s),t&&(ss[t[0]]=function(){return _n(s.apply(this,arguments),t[1],t[2])}),n&&(ss[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function yS(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function pS(e){var t=e.match(Zu),n,r;for(n=0,r=t.length;n<r;n++)ss[t[n]]?t[n]=ss[t[n]]:t[n]=yS(t[n]);return function(s){var i="",a;for(a=0;a<r;a++)i+=kn(t[a])?t[a].call(s,e):t[a];return i}}function ua(e,t){return e.isValid()?(t=Ev(t,e.localeData()),ol[t]=ol[t]||pS(t),ol[t](e)):e.localeData().invalidDate()}function Ev(e,t){var n=5;function r(s){return t.longDateFormat(s)||s}for(Gi.lastIndex=0;n>=0&&Gi.test(e);)e=e.replace(Gi,r),Gi.lastIndex=0,n-=1;return e}var bS={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function _S(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Zu).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var wS="Invalid date";function SS(){return this._invalidDate}var kS="%d",xS=/\d{1,2}/;function CS(e){return this._ordinal.replace("%d",e)}var ES={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function AS(e,t,n,r){var s=this._relativeTime[n];return kn(s)?s(e,t,n,r):s.replace(/%d/i,e)}function OS(e,t){var n=this._relativeTime[e>0?"future":"past"];return kn(n)?n(t):n.replace(/%s/i,t)}var nd={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function qt(e){return typeof e=="string"?nd[e]||nd[e.toLowerCase()]:void 0}function Xu(e){var t={},n,r;for(r in e)De(e,r)&&(n=qt(r),n&&(t[n]=e[r]));return t}var TS={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function PS(e){var t=[],n;for(n in e)De(e,n)&&t.push({unit:n,priority:TS[n]});return t.sort(function(r,s){return r.priority-s.priority}),t}var Av=/\d/,Bt=/\d\d/,Ov=/\d{3}/,Qu=/\d{4}/,vo=/[+-]?\d{6}/,Ge=/\d\d?/,Tv=/\d\d\d\d?/,Pv=/\d\d\d\d\d\d?/,go=/\d{1,3}/,ec=/\d{1,4}/,yo=/[+-]?\d{1,6}/,ys=/\d+/,po=/[+-]?\d+/,DS=/Z|[+-]\d\d:?\d\d/gi,bo=/Z|[+-]\d\d(?::?\d\d)?/gi,MS=/[+-]?\d+(\.\d{1,3})?/,Pi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ps=/^[1-9]\d?/,tc=/^([1-9]\d|\d)/,Oa;Oa={};fu Line truncated
Z.version="2.30.1";dS(ze);Z.fn=j;Z.min=ek;Z.max=tk;Z.now=nk;Z.utc=Sn;Z.unix=Px;Z.months=Mx;Z.isDate=Oi;Z.locale=nr;Z.invalid=mo;Z.duration=an;Z.isMoment=rn;Z.weekdays=Ix;Z.parseZone=Dx;Z.localeData=Yn;Z.isDuration=ca;Z.monthsShort=Rx;Z.weekdaysMin=Nx;Z.defineLocale=ac;Z.updateLocale=D1;Z.locales=M1;Z.weekdaysShort=Fx;Z.normalizeUnits=qt;Z.relativeTimeRounding=uC;Z.relativeTimeThreshold=cC;Z.calendarFormat=Ak;Z.prototype=j;Z.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const TP="hello";function PP(e){let t=e.split("/");return t[t.length-1]}function DP(e){return Z(e).format("DD.MM.YYYY")}function MP(e){return Z(e).format("YYYY-MM-DD")}function RP(e){return Z(e).format("DD.MM.YYYY H:mm")}function IP(e){return Z(e).format("YYYY-MM-DD H:mm")}function FP(e,t){e.includes(t)||e.push(t)}function hg(e){return e}function dC(e){return e.familyname+" "+e.name[0]+"."+e.parentname[0]+"."}function NP(){const e=fS();if("meta"in e.currentRoute.value&&"ico"in e.currentRoute.value.meta){const t=Co(),n=uv();let r={user__id:"user"in t&&"id"in t.user?t.user.id:null,page:e.currentRoute.value.meta.title,fullPath:e.currentRoute.value.fullPath,ico:e.currentRoute.value.meta.ico};lv.post(`${co}api/watcher/counter/`,r).then(s=>{n.countvisitor=s.data})}}function LP(e,t){const n=[2,0,1,1,1,2];return t[e%100>4&&e%100<20?2:n[e%10<5?e%10:5]]}const Co=Bu("AccountStore",()=>{const e=uv(),t=ie(l()),n=k({get(){return Object.keys(t.value).length==0&&l(),JSON.parse(localStorage.getItem(t.value.is_idEmployee))}}),r={calendar:[]};function s(d){return console.log(n.value),n.value===null?r[d]:n.value[d]}const i=ie(!1),a=ie(s("calendar"));console.log(a.value,"calval");const o=d=>{d.photo=`${Aa}${d.login}.jpg`,t.value=d};function l(){try{let d=ow.decode(localStorage.getItem("refresh"));return d.user.photo=`${Aa}${d.user.login}.jpg`,d.user}catch{return{}}}const u=async d=>{e.loading=!0;const m=await lv.post("api/accounts/token/",d);localStorage.setItem("access",m.data.access),localStorage.setItem("refresh",m.data.refresh),t.value=l(),n.value===null&&f(r),e.loading=!1},c=()=>{t.value={},localStorage.removeItem("access"),localStorage.removeItem("refresh")};we(t,(d,m)=>{i.value=!!("login"in d&&d.login.startsWith("9966-"))},{deep:!0});function f(d){localStorage.setItem(t.value.is_idEmployee,JSON.stringify(d))}return we(()=>a.value,d=>{let m=JSON.parse(localStorage.getItem(t.value.is_idEmployee));m.calendar=d,f(m)},{deep:!0}),{user:t,setUser:o,cod2user:i,logging:u,logout:c,calendar:a,getuserFromStorage:l}}),hC={__name:"App",setup(e){const t=Co();return t.setUser(t.getuserFromStorage()),(n,r)=>{const s=nm("router-view");return ft(),zt(s)}}},mC="modulepreload",vC=function(e){return"/"+e},ad={},Xe=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),o=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=vC(l),l in ad)return;ad[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":mC,u||(f.as="script"),f.crossOrigin="",f.href=l,o&&f.setAttribute("nonce",o),document.head.appendChild(f),u)return new Promise((d,m)=>{f.addEventListener("load",d),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return s.then(a=>{for(const o of a||[])o.status==="rejected"&&i(o.reason);return t().catch(i)})};async function gC(){(await Xe(()=>import("./webfontloader-B3UJeM59.js").then(t=>t.w),[])).load({google:{families:["Roboto:100,300,400,500,700,900&display=swap"]}})}const Le=typeof window<"u",vc=Le&&"IntersectionObserver"in window,yC=Le&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function od(e,t,n){pC(e,t),t.set(e,n)}function pC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bC(e,t,n){return e.set(mg(e,t),n),n}function vr(e,t){return e.get(mg(e,t))}function mg(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function vg(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;s<r;s++){if(e==null)return n;e=e[t[s]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function Eo(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>Eo(e[r],t[r]))}function Ql(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0Line truncated
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function mi(e){const{h:t,s:n,v:r,a:s}=e,i=o=>{const l=(o+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},a=[i(5),i(3),i(1)].map(o=>Math.round(o*255));return{r:a[0],g:a[1],b:a[2],a:s}}function xd(e){return mi(Ag(e))}function Ag(e){const{h:t,s:n,l:r,a:s}=e,i=r+n*Math.min(r,1-r),a=i===0?0:2-2*r/i;return{h:t,s:a,v:i,a:s}}function Xi(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function JC(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Xi(t),Xi(n),Xi(r),s!==void 0?Xi(Math.round(s*255)):""].join("")}`}function ZC(e){e=XC(e);let[t,n,r,s]=kC(e,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function XC(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=cd(cd(e,6),8,"F")),e}function QC(e,t){const n=xg(pc(e));return n[0]=n[0]+t*10,Eg(Cg(n))}function eE(e,t){const n=xg(pc(e));return n[0]=n[0]-t*10,Eg(Cg(n))}function tE(e){const t=pn(e);return pc(t)[1]}function Og(e){const t=Math.abs(Sd(pn(0),pn(e)));return Math.abs(Sd(pn(16777215),pn(e)))>Math.min(t,50)?"#fff":"#000"}function ee(e,t){return n=>Object.keys(e).reduce((r,s)=>{const a=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...a,default:n[s]}:r[s]=a,t&&!r[s].source&&(r[s].source=t),r},{})}const qe=ee({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function nt(e,t){const n=Vu();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function ur(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=nt(e).type;return Er((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let Tg=0,ma=new WeakMap;function Nr(){const e=nt("getUid");if(ma.has(e))return ma.get(e);{const t=Tg++;return ma.set(e,t),t}}Nr.reset=()=>{Tg=0,ma=new WeakMap};function nE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const hs=Symbol.for("vuetify:defaults");function rE(e){return ie(e)}function bc(){const e=Oe(hs);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Oo(e,t){const n=bc(),r=ie(e),s=k(()=>{if(pt(t==null?void 0:t.disabled))return n.value;const a=pt(t==null?void 0:t.scoped),o=pt(t==null?void 0:t.reset),l=pt(t==null?void 0:t.root);if(r.value==null&&!(a||o||l))return n.value;let u=bt(r.value,{prev:n.value});if(a)return u;if(o||l){const c=Number(o||1/0);for(let f=0;f<=c&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=bt(bt(u,{prev:u}),u[l])),u}return u.prev?bt(u.prev,u):u});return ut(hs,s),s}function sE(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[Er(t)])<"u"}function iE(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bc();const r=nt("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=k(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),i=new Proxy(e,{get(l,u){var f,d,m,h,v,g,_;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(f=s.value)==null?void 0:f[u],c].filter(S=>S!=null):typeof u=="string"&&!sE(r.vnode,u)?((d=s.value)==null?void 0:d[u])!==void 0?(m=s.value)==null?void 0:m[u]:((v=(h=n.value)==null?void 0:h.global)==null?void 0:v[u])!==void 0?(_=(g=n.value)==null?void 0:g.global)==null?void 0:_[u]:c:c}}),a=Ee();Hn(()=>{if(s.value){const l=Object.entries(s.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});a.value=l.length?Object.fromEntries(l):void 0}else a.value=void 0});function o(){const l=nE(hs,r);ut(hs,k(()=>a.value?bt((l==null?void 0:l.value)??{},a.value):l==null?void 0:l.value))}return{props:i,provideSubDefaults:o}}function Ri(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=ee(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return wC(r,t)},e.props._as=String,e.setup=function(r,s){const i=bc();if(!i.value)return e._setup(r,s);const{props:a,provideSubDefaults:o}=iE(r,r._as??e.name,i),l=e._setup(a,s);return o(),l}}return e}function ge(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Ri:Ja)(t)}function ZP(e,t){return t.props=e,t}function _c(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return ge()({name:n??$n(Pt(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...qe()},setup(r,s){let{slots:i}=s;return()=>{var a;return wn(r.tag,{class:[e,r.class],style:r.style},(a=i.default)==null?void 0:a.call(i))}}})}function Pg(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e Line truncated
`,...n.map(r=>` ${r};
`),`}
`)}function Td(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[s,i]of Object.entries(e.colors)){const a=pn(i);r.push(`--v-theme-${s}: ${a.r},${a.g},${a.b}`),s.startsWith("on-")||r.push(`--v-theme-${s}-overlay-multiplier: ${tE(i)>.18?t:n}`)}for(const[s,i]of Object.entries(e.variables)){const a=typeof i=="string"&&i.startsWith("#")?pn(i):void 0,o=a?`${a.r}, ${a.g}, ${a.b}`:void 0;r.push(`--v-${s}: ${o??i}`)}return r}const Ig=ee({color:String,...Lr(),...qe(),...ws(),...ks(),...As(),...To(),...on(),...ct(),...Et()},"VSheet"),iu=ge()({name:"VSheet",props:Ig(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Dt(e),{backgroundColorClasses:s,backgroundColorStyles:i}=Fn(We(e,"color")),{borderClasses:a}=Vr(e),{dimensionStyles:o}=Ss(e),{elevationClasses:l}=xs(e),{locationStyles:u}=Fi(e),{positionClasses:c}=Po(e),{roundedClasses:f}=ln(e);return xe(()=>y(e.tag,{class:["v-sheet",r.value,s.value,a.value,l.value,c.value,f.value,e.class],style:[i.value,o.value,u.value,e.style]},n)),{}}}),Do={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function SE(e,t,n){const r=[];let s=[];const i=Fg(e),a=Ng(e),o=n??Do[t.slice(-2).toUpperCase()]??0,l=(i.getDay()-o+7)%7,u=(a.getDay()-o+7)%7;for(let c=0;c<l;c++){const f=new Date(i);f.setDate(f.getDate()-(l-c)),s.push(f)}for(let c=1;c<=a.getDate();c++){const f=new Date(e.getFullYear(),e.getMonth(),c);s.push(f),s.length===7&&(r.push(s),s=[])}for(let c=1;c<7-u;c++){const f=new Date(a);f.setDate(f.getDate()+c),s.push(f)}return s.length>0&&r.push(s),r}function kE(e,t,n){const r=n??Do[t.slice(-2).toUpperCase()]??0,s=new Date(e);for(;s.getDay()!==r;)s.setDate(s.getDate()-1);return s}function xE(e,t){const n=new Date(e),r=((Do[t.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function Fg(e){return new Date(e.getFullYear(),e.getMonth(),1)}function Ng(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function CE(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const EE=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function Lg(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(EE.test(e))return CE(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const Pd=new Date(2e3,0,2);function AE(e,t){const n=t??Do[e.slice(-2).toUpperCase()]??0;return Mi(7).map(r=>{const s=new Date(Pd);return s.setDate(Pd.getDate()+n+r),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(s)})}function OE(e,t,n,r){const s=Lg(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(s,t,n);let a={};switch(t){case"fullDate":a={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":a={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const o=s.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${o} ${l}`;case"normalDateWithWeekday":a={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":a={month:"short",day:"numeric"};break;case"year":a={year:"numeric"};break;case"month":a={month:"long"};break;case"monthShort":a={month:"short"};break;case"monthAndYear":a={month:"long",year:"numeric"};break;case"monthAndDate":a={month:"long",day:"numeric"};break;case"weekday":a={weekday:"long"};break;case"weekdayShort":a={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":a={hour:"numeric",hour12:!0};break;case"hours24h":a={hour:"numeric",hour12:!1};break;case"minutes":a={minute:"numeric"};break;case"seconds":a={second:"numeric"};break;case"fullTime":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":a={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":a={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":a={year:"numeric",month:"2-digit",day:"2-digit"};break;c Line truncated
`,1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const ST=$i(bT,[["render",wT]]),kT=ee({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...Hi({origin:"center center",scrollStrategy:"block",transition:{component:cy},zIndex:2400})},"VDialog"),xT=ge()({name:"VDialog",props:kT(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Ct(e,"modelValue"),{scopeId:i}=Bi(),a=ie();function o(c){var m,h;const f=c.relatedTarget,d=c.target;if(f!==d&&((m=a.value)!=null&&m.contentEl)&&((h=a.value)!=null&&h.globalTop)&&![document,a.value.contentEl].includes(d)&&!a.value.contentEl.contains(d)){const v=hi(a.value.contentEl);if(!v.length)return;const g=v[0],_=v[v.length-1];f===g?_.focus():g.focus()}}$t(()=>{document.removeEventListener("focusin",o)}),Le&&we(()=>s.value&&e.retainFocus,c=>{c?document.addEventListener("focusin",o):document.removeEventListener("focusin",o)},{immediate:!0});function l(){var c;n("afterEnter"),(c=a.value)!=null&&c.contentEl&&!a.value.contentEl.contains(document.activeElement)&&a.value.contentEl.focus({preventScroll:!0})}function u(){n("afterLeave")}return we(s,async c=>{var f;c||(await Vt(),(f=a.value.activatorEl)==null||f.focus({preventScroll:!0}))}),xe(()=>{const c=ir.filterProps(e),f=ke({"aria-haspopup":"dialog"},e.activatorProps),d=ke({tabindex:-1},e.contentProps);return y(ir,ke({ref:a,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:s.value,"onUpdate:modelValue":m=>s.value=m,"aria-modal":"true",activatorProps:f,contentProps:d,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:l,onAfterLeave:u},i),{activator:r.activator,default:function(){for(var m=arguments.length,h=new Array(m),v=0;v<m;v++)h[v]=arguments[v];return y(dt,{root:"VDialog"},{default:()=>{var g;return[(g=r.default)==null?void 0:g.call(r,...h)]}})}})}),Vo({},a)}}),CT=ee({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...qe(),...Et()},"VDivider"),wl=ge()({name:"VDivider",props:CT(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=Dt(e),{textColorClasses:i,textColorStyles:a}=Rr(We(e,"color")),o=k(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=be(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=be(e.thickness)),l});return xe(()=>{const l=y("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class],style:[o.value,a.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?y("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[l,y("div",{class:"v-divider__content"},[r.default()]),l]):l}),{}}}),ET={name:"InfoUserCard",props:{opendialog:{type:Boolean,default:!1},author:{type:Object,default:{}}},setup(e,{emit:t}){return{mydialog:k({get:()=>e.opendialog,set:i=>t("update:opendialog",i)}),spravURL:Aa,checkremote:hg,basicInformation:()=>[{title:"Отдел:",info:e.author.department},{title:"ФИО:",info:e.author.fio},{title:"Должность:",info:e.author.post}],subInformation:()=>[{title:"E-mail: ",info:e.author.email},{title:"Телефон: ",info:e.author.tel},{title:"Комната: ",info:e.author.room},{title:"Логин: ",info:e.author.login}]}}},AT={class:"font-weight-medium"},OT={class:"text-subtitle-1"},TT={class:"font-weight-medium"},PT={class:"text-subtitle-1"};function DT(e,t,n,r,s,i){return ft(),zt(xT,{modelValue:r.mydialog,"onUpdate:modelValue":t[1]||(t[1]=a=>r.mydialog=a),persistent:"",width:"600",class:"mx-auto"},{default:Re(()=>[y(Oy,{height:"500"},{default:Re(()=>[y(Ay,{class:"pl-6"},{default:Re(()=>t[2]||(t[2]=[Pr(" Информация ")])),_:1}),y(wl),y(fu,null,{default:Re(()=>[y(Xs,{"no-gutters":"",class:"flex-grow-0"},{default:Re(()=>[y(Qr,{lg:"4"},{default:Re(()=>[y(No,{cover:"","min-height":"222px","max-height":"222px",src:r.checkremote(`${r.spravURL}${n.author.login}.jpg`)},null,8,["src"])]),_:1}),y(Qr,{class:"d-flex flex-column"},{default:Re(()=>[(ft(!0),si(He,null,Yc(r.basicInformation(),a=>(ft(),zt(Xs,{"no-gutters":"",class:"flex-grow-0 mx-3 my-1",key:a},{default:Re(()=>[y(Qr,null,{default:Re(()=>[Kt("span",AT,Wt(a.title),1),t[3]||(t[3]=Kt("br",null,null,-1)),Kt("span",OT,Wt(a.info),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),y(wl),y(fu,{class:"d-flex flex-column py-2"},{default:Re(()=>[(ft(!0),si(He,null,Yc(r.subInformation(),a=>(ft(),zt(Xs,{"no-gutters":"",class:"flex-grow-0",key:a},{default:Re(()=>[y(Qr,null,{default:Re(()=>[Kt("span",TT,Wt(a.title),1),Kt("span",PT,Wt(a.info),1)]),_:2},1024)]),_:2},1024))),128))]),_:1}),y( Line truncated
+1
View File
@@ -0,0 +1 @@
import{_ as V,r as _,Y as k,a5 as p,s as v,t as y,v as a,x as l,E as i,F as o,L as w,B as C,y as c,b0 as m,V as x,T as g}from"./index-COjDMumS.js";import{V as b}from"./VFileInput-Busl2805.js";const F={setup(){const r=_([]),e=k().alert,u=n=>{g.get(`api/general_vacation/dailyroundup/?excel=${n}`).then(t=>{let d=document.createElement("a");d.href=p+t.data.path,d.click(),d.remove()})},s=n=>{const t=new FormData;t.append("dailyfiles",r.value),console.log(r.value),g.post(`api/general_vacation/dailyroundup/?excel=${n}`,t).then(d=>{f(d.data.mess)}),r.value=[]},f=n=>{e.alert=!0,n=="Файл загружен"?(e.text="Файл загружен",e.ico="mdi-check",e.color="green-darken-4"):(e.text="Ошибка загрузки",e.ico="mdi-alert-circle-outline",e.color="pink-accent-4")};return{excelOp:u,baseURL:p,dailyfiles:r,onPickFile:s,feedalert:e}}};function L(r,e,u,s,f,n){return v(),y(i,{"no-gutters":"",class:"gap ma-3 flex-column"},{default:a(()=>[l(o,{lg:"2",class:"w100 d-flex flex-column"},{default:a(()=>[l(i,{"no-gutters":"",class:"gap"},{default:a(()=>[l(o,{lg:"4"},{default:a(()=>[l(w,{class:"h-100"},{default:a(()=>[l(C,null,{default:a(()=>e[3]||(e[3]=[c(" Ежедневная статистика по сотрудникам ")])),_:1}),l(i,{"no-gutters":"",class:"gap"},{default:a(()=>[l(o,{class:"flex-grow-0"},{default:a(()=>[l(m,{class:"mt-2 align-self-end"},{default:a(()=>e[4]||(e[4]=[c(" 1. Скачать файл ежедневной статистики ")])),_:1})]),_:1}),l(o,{class:"flex-grow-0"},{default:a(()=>[l(x,{icon:"mdi-file-excel",color:"green-darken-3",onClick:e[0]||(e[0]=t=>s.excelOp("excround"))})]),_:1})]),_:1}),l(i,{"no-gutters":"",class:"gap mt-5"},{default:a(()=>[l(o,{class:"flex-grow-0"},{default:a(()=>[l(m,{class:"mt-3 align-self-end"},{default:a(()=>e[5]||(e[5]=[c(" 2. Загрузить данные на сервер ")])),_:1})]),_:1}),l(o,null,{default:a(()=>[l(b,{accept:".xlsx",modelValue:s.dailyfiles,"onUpdate:modelValue":e[1]||(e[1]=t=>s.dailyfiles=t),variant:"underlined",density:"compact",label:"Прикрепить файл","hide-details":""},null,8,["modelValue"])]),_:1}),l(o,{class:"flex-grow-0 pr-2"},{default:a(()=>[l(x,{icon:"mdi-chevron-double-right",color:"blue-grey-darken-2",onClick:e[2]||(e[2]=t=>s.onPickFile("roundfilse"))})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const B=V(F,[["render",L]]);export{B as L};
+1
View File
@@ -0,0 +1 @@
import{_ as ye,l as xe,r as p,w as be,O as ve,P as ke,Q as V,x as o,v as l,E as h,M as J,a0 as z,aT as Me,a5 as K,T as E,s as v,F as u,L as N,B as Oe,y as S,$ as O,a3 as Z,V as Q,z as $,C as P,X as B,a2 as Pe,Z as ee,D as te,t as F,R as ne,S as ae,K as _e,a$ as Se,A as W,U as De,aN as re}from"./index-COjDMumS.js";import{i as Fe}from"./icoUser-_yXQAwDo.js";import{V as We}from"./VSwitch-rZtxTrUU.js";import{V as Ce}from"./VTextarea-qF2XqWL0.js";import{V as Te}from"./VAlert-C5Ve5RMV.js";import"./VInput-Bmr5cjyQ.js";import"./VSelectionControl-BK9dDQDu.js";/* empty css */import"./VField-DR7-v1FU.js";const fe=6048e5,pe=864e5,oe=Symbol.for("constructDateFrom");function T(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&oe in n?n[oe](e):n instanceof Date?new n.constructor(e):new Date(e)}function _(n,e){return T(e||n,n)}let Ye={};function R(){return Ye}function j(n,e){var i,m,g,x;const a=R(),t=(e==null?void 0:e.weekStartsOn)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.weekStartsOn)??a.weekStartsOn??((x=(g=a.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,r=_(n,e==null?void 0:e.in),s=r.getDay(),c=(s<t?7:0)+s-t;return r.setDate(r.getDate()-c),r.setHours(0,0,0,0),r}function X(n,e){return j(n,{...e,weekStartsOn:1})}function me(n,e){const a=_(n,e==null?void 0:e.in),t=a.getFullYear(),r=T(a,0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);const s=X(r),c=T(a,0);c.setFullYear(t,0,4),c.setHours(0,0,0,0);const i=X(c);return a.getTime()>=s.getTime()?t+1:a.getTime()>=i.getTime()?t:t-1}function ie(n){const e=_(n),a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return a.setUTCFullYear(e.getFullYear()),+n-+a}function Ve(n,...e){const a=T.bind(null,e.find(t=>typeof t=="object"));return e.map(a)}function le(n,e){const a=_(n,e==null?void 0:e.in);return a.setHours(0,0,0,0),a}function Ee(n,e,a){const[t,r]=Ve(a==null?void 0:a.in,n,e),s=le(t),c=le(r),i=+s-ie(s),m=+c-ie(c);return Math.round((i-m)/pe)}function Ne(n,e){const a=me(n,e),t=T(n,0);return t.setFullYear(a,0,4),t.setHours(0,0,0,0),X(t)}function qe(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Le(n){return!(!qe(n)&&typeof n!="number"||isNaN(+_(n)))}function Ie(n,e){const a=_(n,e==null?void 0:e.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}const He={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ae=(n,e,a)=>{let t;const r=He[n];return typeof r=="string"?t=r:e===1?t=r.one:t=r.other.replace("{{count}}",e.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+t:t+" ago":t};function G(n){return(e={})=>{const a=e.width?String(e.width):n.defaultWidth;return n.formats[a]||n.formats[n.defaultWidth]}}const je={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Be={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xe={date:G({formats:je,defaultWidth:"full"}),time:G({formats:Qe,defaultWidth:"full"}),dateTime:G({formats:Be,defaultWidth:"full"})},Re={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ge=(n,e,a,t)=>Re[n];function H(n){return(e,a)=>{const t=a!=null&&a.context?String(a.context):"standalone";let r;if(t==="formatting"&&n.formattingValues){const c=n.defaultFormattingWidth||n.defaultWidth,i=a!=null&&a.width?String(a.width):c;r=n.formattingValues[i]||n.formattingValues[c]}else{const c=n.defaultWidth,i=a!=null&&a.width?String(a.width):n.defaultWidth;r=n.values[i]||n.values[c]}const s=n.argumentCallback?n.argumentCallback(e):e;return r[s]}}const Ue={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Je={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ze={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","AprLine truncated
+1
View File
@@ -0,0 +1 @@
import{L as l}from"./load-round-_0dE5waF.js";import{_ as p,b3 as d,l as i,t as o,v as t,E as r,s,x as a,y as _,F as f,U as m}from"./index-COjDMumS.js";import"./VFileInput-Busl2805.js";import"./VField-DR7-v1FU.js";import"./VInput-Bmr5cjyQ.js";const x={components:{LoadRound:l},setup(){return d(),{accountStore:i()}}};function g(n,e,h,c,k,y){const u=m("load-round");return c.accountStore.user.is_staff?(s(),o(r,{key:0},{default:t(()=>[a(u)]),_:1})):(s(),o(r,{key:1},{default:t(()=>[a(f,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:t(()=>e[0]||(e[0]=[_(" Отдел кадров и безопасности ")])),_:1})]),_:1}))}const $=p(x,[["render",g]]);export{$ as default};
+1
View File
@@ -0,0 +1 @@
import{af as t,q as e,f as s,d0 as n}from"./index-COjDMumS.js";function i(){const o=t(!1);return e(()=>{window.requestAnimationFrame(()=>{o.value=!0})}),{ssrBootStyles:s(()=>o.value?void 0:{transition:"none !important"}),isBooted:n(o)}}export{i as u};
+1
View File
@@ -0,0 +1 @@
import{_ as l,r as c,O as p,P as i,s as d,Q as u,x as n,L as f,U as m}from"./index-COjDMumS.js";const _={props:{author:{type:Object,default:{}}},setup(){return{open:c(!1),checkremote:p,spravURL:i}}};function v(r,t,o,e,g,h){const s=m("info-user-card");return d(),u("div",null,[n(f,{class:"bg-transparent",density:"compact","prepend-avatar":e.checkremote(`${e.spravURL}${o.author.login}.jpg`),title:o.author.fio,subtitle:o.author.post,variant:"text",onClick:t[0]||(t[0]=a=>e.open=!0)},null,8,["prepend-avatar","title","subtitle"]),n(s,{author:o.author,opendialog:e.open,"onUpdate:opendialog":t[1]||(t[1]=a=>e.open=a)},null,8,["author","opendialog"])])}const x=l(_,[["render",v]]);export{x as V};
+1
View File
@@ -0,0 +1 @@
import{g as Ft}from"./index-COjDMumS.js";function Pt(w,S){for(var _=0;_<S.length;_++){const l=S[_];if(typeof l!="string"&&!Array.isArray(l)){for(const v in l)if(v!=="default"&&!(v in w)){const T=Object.getOwnPropertyDescriptor(l,v);T&&Object.defineProperty(w,v,T.get?T:{enumerable:!0,get:()=>l[v]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var B={exports:{}},ft;function It(){return ft||(ft=1,function(w){(function(){function S(t,n,i){return t.call.apply(t.bind,arguments)}function _(t,n,i){if(!t)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var o=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(o,e),t.apply(n,o)}}return function(){return t.apply(n,arguments)}}function l(t,n,i){return l=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?S:_,l.apply(null,arguments)}var v=Date.now||function(){return+new Date};function T(t,n){this.a=t,this.o=n||t,this.c=this.o.document}var ct=!!window.FontFace;function W(t,n,i,e){if(n=t.c.createElement(n),i)for(var o in i)i.hasOwnProperty(o)&&(o=="style"?n.style.cssText=i[o]:n.setAttribute(o,i[o]));return e&&n.appendChild(t.c.createTextNode(e)),n}function D(t,n,i){t=t.c.getElementsByTagName(n)[0],t||(t=document.documentElement),t.insertBefore(i,t.lastChild)}function E(t){t.parentNode&&t.parentNode.removeChild(t)}function y(t,n,i){n=n||[],i=i||[];for(var e=t.className.split(/\s+/),o=0;o<n.length;o+=1){for(var s=!1,r=0;r<e.length;r+=1)if(n[o]===e[r]){s=!0;break}s||e.push(n[o])}for(n=[],o=0;o<e.length;o+=1){for(s=!1,r=0;r<i.length;r+=1)if(e[o]===i[r]){s=!0;break}s||n.push(e[o])}t.className=n.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function q(t,n){for(var i=t.className.split(/\s+/),e=0,o=i.length;e<o;e++)if(i[e]==n)return!0;return!1}function lt(t){return t.o.location.hostname||t.a.location.hostname}function L(t,n,i){function e(){a&&o&&s&&(a(r),a=null)}n=W(t,"link",{rel:"stylesheet",href:n,media:"all"});var o=!1,s=!0,r=null,a=i||null;ct?(n.onload=function(){o=!0,e()},n.onerror=function(){o=!0,r=Error("Stylesheet failed to load"),e()}):setTimeout(function(){o=!0,e()},0),D(t,"head",n)}function F(t,n,i,e){var o=t.c.getElementsByTagName("head")[0];if(o){var s=W(t,"script",{src:n}),r=!1;return s.onload=s.onreadystatechange=function(){r||this.readyState&&this.readyState!="loaded"&&this.readyState!="complete"||(r=!0,i&&i(null),s.onload=s.onreadystatechange=null,s.parentNode.tagName=="HEAD"&&o.removeChild(s))},o.appendChild(s),setTimeout(function(){r||(r=!0,i&&i(Error("Script load timeout")))},e||5e3),s}return null}function $(){this.a=0,this.c=null}function z(t){return t.a++,function(){t.a--,M(t)}}function H(t,n){t.c=n,M(t)}function M(t){t.a==0&&t.c&&(t.c(),t.c=null)}function G(t){this.a=t||"-"}G.prototype.c=function(t){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return n.join(this.a)};function g(t,n){this.c=t,this.f=4,this.a="n";var i=(n||"n4").match(/^([nio])([1-9])$/i);i&&(this.a=i[1],this.f=parseInt(i[2],10))}function ht(t){return K(t)+" "+(t.f+"00")+" 300px "+R(t.c)}function R(t){var n=[];t=t.split(/,\s*/);for(var i=0;i<t.length;i++){var e=t[i].replace(/['"]/g,"");e.indexOf(" ")!=-1||/^\d/.test(e)?n.push("'"+e+"'"):n.push(e)}return n.join(",")}function p(t){return t.a+t.f}function K(t){var n="normal";return t.a==="o"?n="oblique":t.a==="i"&&(n="italic"),n}function pt(t){var n=4,i="n",e=null;return t&&((e=t.match(/(normal|oblique|italic)/i))&&e[1]&&(i=e[1].substr(0,1).toLowerCase()),(e=t.match(/([1-9]00|normal|bold)/i))&&e[1]&&(/bold/i.test(e[1])?n=7:/[1-9]00/.test(e[1])&&(n=parseInt(e[1].substr(0,1),10)))),i+n}function gt(t,n){this.c=t,this.f=t.o.document.documentElement,this.h=n,this.a=new G("-"),this.j=n.events!==!1,this.g=n.classes!==!1}function dt(t){t.g&&y(t.f,[t.a.c("wf","loading")]),x(t,"loading")}function U(t){if(t.g){var n=q(t.f,t.a.c("wf","active")),i=[],e=[t.a.c("wf","loading")];n||i.push(t.a.c("wf","inactive")),y(t.f,i,e)}x(t,"inactive")}function x(t,n,i){t.j&&t.h[n]&&(i?t.h[n](i.c,p(i)):t.h[n]())}function vt(){this.c={}}function mt(t,n,i){var e=[],o;for(o in n)if(n.hasOwnProperty(o)){var s=t.c[o];s&&e.push(s(n[o],i))}return e}function b(t,n){this.c=t,this.f=n,this.a=W(this.c,"span",{"aria-hidden":"true"},this.f)}function A(t){D(t.c,"body",t.a)}function C(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+R(t.c)+";"+("font-style:"+K(t)+";font-weight:"+(t.f+"00")+";")}function V(t,n,i,e,o,s){this.g=t,this.j=n,this.a=e,this.c=i,this.f=o||3e3,this.h=s||void 0}V.prototype.start=function(){var t=this.c.o.document,n=this,i=v(),e=new Promise(function(r,a){function f(){v()-i>=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(u){1<=u.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=Line truncated
+1 -1
View File
@@ -6,7 +6,7 @@
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Портал</title>
<script type="module" crossorigin src="/assets/index-ANVW43jv.js"></script>
<script type="module" crossorigin src="/assets/index-COjDMumS.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CV4Hyfa3.css">
</head>
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "front",
"version": "0.0.84",
"version": "0.0.86",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front",
"version": "0.0.84",
"version": "0.0.86",
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^44.1.0",
"@ckeditor/ckeditor5-dev-translations": "^43.0.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "front",
"version": "0.0.84",
"version": "0.0.86",
"scripts": {
"dev": "vite",
"build": "vite build",
+21 -27
View File
@@ -2,51 +2,45 @@
<router-view />
</template>
<script setup >
import {useAccountStore} from '@/store/AccountStore'
const accountStore = useAccountStore()
accountStore.setUser(accountStore.getuserFromStorage())
<script setup>
import { useAccountStore } from '@/store/AccountStore';
const accountStore = useAccountStore();
accountStore.setUser(accountStore.getuserFromStorage());
</script>
<style>
::-webkit-scrollbar {
width: 1px;
height: 6px;
width: 1px;
height: 6px;
}
/* Track */
::-webkit-scrollbar-track {
-webkit-border-radius: 6px;
border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
}
/* Handle */
::-webkit-scrollbar-thumb {
-webkit-border-radius: 6px;
border-radius: 6px;
background: rgb(var(--v-theme-scrollbar))
-webkit-border-radius: 6px;
border-radius: 6px;
background: rgb(var(--v-theme-scrollbar));
}
::-webkit-scrollbar-thumb:window-inactive {
background: rgb(var(--v-theme-scrollbar))
background: rgb(var(--v-theme-scrollbar));
}
.bggrad {
background: linear-gradient(to top right, rgba(19,84,122,.8), rgba(128,208,199,.8));
background: linear-gradient(to top right, rgba(19, 84, 122, 0.8), rgba(128, 208, 199, 0.8));
}
.bgCard {
/* #ffffff6b #ffffff8c*/
background: #ffffff38 ;
/* #ffffff6b #ffffff8c*/
background: #ffffff38;
}
.bgText {
background: #ffffffb0;
line-height: 2.1rem!important;
background: #ffffffb0;
line-height: 2.1rem !important;
}
.gap {
@@ -54,11 +48,11 @@ import {useAccountStore} from '@/store/AccountStore'
}
.w100 {
max-width: 100%!important
max-width: 100% !important;
}
.bottom-alert {
bottom: 10px;
left: 40%;
left: 40%;
}
</style>
@@ -51,9 +51,7 @@
<v-col>
<calendar-my
:calendars="
calendarForMy.filter(
(e) => e.author == accountStore.user.is_idEmployee
)
calendarForMy.filter((e) => e.author == accountStore.user.is_idEmployee)
"
title="Мои календари"
@getCalendar="getCalendar"
@@ -61,9 +59,7 @@
<calendar-my
:calendars="
calendarForMy.filter(
(e) => e.author != accountStore.user.is_idEmployee
)
calendarForMy.filter((e) => e.author != accountStore.user.is_idEmployee)
"
title="Подписки"
/>
@@ -103,18 +99,18 @@
</template>
<script>
import { ref, onMounted, watch } from "vue";
import { useWeekendsStore } from "@/store/WeekendsStore";
import EventCreate from "@/components/calendar_of_events/event-create.vue";
import CalendarMy from "@/components/calendar_of_events/calendar-my.vue";
import { axiosApiInstance } from "@/utils/axios-api";
import { useAccountStore } from "@/store/AccountStore";
import CalendarFull from "@/components/calendar_of_events/UI_calendar/calendarFull.vue";
import { ref, onMounted, watch } from 'vue';
import { useWeekendsStore } from '@/store/WeekendsStore';
import EventCreate from '@/components/calendar_of_events/event-create.vue';
import CalendarMy from '@/components/calendar_of_events/calendar-my.vue';
import { axiosApiInstance } from '@/utils/axios-api';
import { useAccountStore } from '@/store/AccountStore';
import CalendarFull from '@/components/calendar_of_events/UI_calendar/calendarFull.vue';
export default {
components: { EventCreate, CalendarMy, CalendarFull },
setup(props, { emit }) {
setup() {
const accountStore = useAccountStore();
const showDialog = ref(false);
const week = useWeekendsStore();
@@ -135,36 +131,27 @@ export default {
};
const getCalendar = () => {
axiosApiInstance
.get(`api/calendar_of_events/my_calendars/`)
.then((res) => {
res.data.forEach(
(e) =>
(e.visible = accountStore.calendar.includes(e.id) ? false : true)
);
calendarForMy.value = res.data;
});
axiosApiInstance.get(`api/calendar_of_events/my_calendars/`).then((res) => {
res.data.forEach((e) => (e.visible = accountStore.calendar.includes(e.id) ? false : true));
calendarForMy.value = res.data;
});
};
getCalendar();
const getEvents = (idEvent, clik) => {
axiosApiInstance
.get(
`api/calendar_of_events/my_events/${
idEvent === undefined ? "" : `?id=${idEvent}`
}`
)
.get(`api/calendar_of_events/my_events/${idEvent === undefined ? '' : `?id=${idEvent}`}`)
.then((res) => {
if (idEvent === undefined) {
res.data.event = {
name: "",
name: '',
participant: [accountStore.user.is_idEmployee],
files: [],
date_start: new Date(),
date_end: new Date(),
period: null,
description: "",
description: '',
calendar: null,
};
}
@@ -184,28 +171,25 @@ export default {
};
const weekendsData = () => {
cal.value.$el
.querySelectorAll(".v-date-picker-month__day")
.forEach((e) => {
let datas = e.getAttribute("data-v-date");
let weeks =
new Date(datas).getDay() === 6 || new Date(datas).getDay() === 0;
if (weeks) {
e.querySelectorAll("span").forEach((n) => {
n.classList.add("text-red");
cal.value.$el.querySelectorAll('.v-date-picker-month__day').forEach((e) => {
let datas = e.getAttribute('data-v-date');
let weeks = new Date(datas).getDay() === 6 || new Date(datas).getDay() === 0;
if (weeks) {
e.querySelectorAll('span').forEach((n) => {
n.classList.add('text-red');
});
}
if (MyMonth.value in week.week[MyYear.value]) {
if (week.week[MyYear.value][MyMonth.value].includes(datas)) {
e.querySelectorAll('span').forEach((n) => {
n.classList.add('text-red');
if (n.classList.contains('text-red') && weeks) {
n.classList.replace('text-red', 'text-black');
}
});
}
if (MyMonth.value in week.week[MyYear.value]) {
if (week.week[MyYear.value][MyMonth.value].includes(datas)) {
e.querySelectorAll("span").forEach((n) => {
n.classList.add("text-red");
if (n.classList.contains("text-red") && weeks) {
n.classList.replace("text-red", "text-black");
}
});
}
}
});
}
});
};
onMounted(() => {
@@ -214,11 +198,11 @@ export default {
watch(
() => week.week,
(newValue, oldValue) => {
(newValue) => {
if (newValue) {
weekendsData();
}
}
},
);
const CheckingStore = () => {
@@ -230,7 +214,7 @@ export default {
};
const infoEvent = (i) => {
console.log(i, "iiiiiiiiii");
console.log(i, 'iiiiiiiiii');
};
return {
@@ -16,11 +16,7 @@
return-object
>
<template v-slot:selection="{ item }">
<v-chip
class="me-2"
color="teal-darken-3"
size="small"
label>
<v-chip class="me-2" color="teal-darken-3" size="small" label>
<span> {{ item.title }}</span>
<v-icon
v-if="item.value != accountStore.user.is_idEmployee"
@@ -53,12 +49,7 @@
<template v-slot:item="{ props, item }">
<v-list-group v-bind="props" :value="item.raw.title">
<template v-slot:activator="{ props }">
<v-list-item
v-bind="props"
@click.stop=""
density="compact"
class="text-body-2"
>
<v-list-item v-bind="props" @click.stop="" density="compact" class="text-body-2">
<template v-slot:prepend>
<v-checkbox-btn
@click.stop="selectedStaff = item.raw"
@@ -78,7 +69,7 @@
<v-list-item
v-for="x in item.raw.employees.filter((e) =>
e.title.toLowerCase().includes(filtered.toLowerCase())
e.title.toLowerCase().includes(filtered.toLowerCase()),
)"
:key="x.id"
:value="x.title"
@@ -101,9 +92,9 @@
</template>
<script>
import { ref, computed } from "vue";
import { splitname } from "@/utils/universal_functions";
import { useAccountStore } from "@/store/AccountStore";
import { ref, computed } from 'vue';
import { splitname } from '@/utils/universal_functions';
import { useAccountStore } from '@/store/AccountStore';
export default {
props: {
@@ -113,18 +104,18 @@ export default {
},
okey: {
type: String,
default: "selected",
default: 'selected',
},
},
setup(props, { emit }) {
const filtered = ref("");
const filtered = ref('');
const accountStore = useAccountStore();
const back = ref([]);
const staffed = computed({
get() {
if (props.okey == "editor") {
if (props.okey == 'editor') {
let ns = [];
props.staff.forEach((e) => {
let emp = { ...e };
@@ -147,10 +138,7 @@ export default {
get() {
let selected = [];
props.staff.forEach((e) => {
if (
e.employees.length != 1 &&
e.employees.every((n) => n[props.okey] == true)
) {
if (e.employees.length != 1 && e.employees.every((n) => n[props.okey] == true)) {
e[props.okey] = true;
selected.push(e);
} else if (e.employees.length == 1) {
@@ -176,13 +164,13 @@ export default {
});
const emitUp = (part) => {
if ("employees" in part) {
if ('employees' in part) {
part.employees.forEach((e) => {
if (e.id != accountStore.user.is_idEmployee) {
e[props.okey] = !part[props.okey];
}
});
emit("returnIdParticant", {
emit('returnIdParticant', {
okey: props.okey,
staff: part.employees,
select: [],
@@ -191,7 +179,7 @@ export default {
if (part[0].id != accountStore.user.is_idEmployee) {
let val = part.every((e) => e[props.okey] == true) ? false : true;
cbstaff(part, val);
emit("returnIdParticant", {
emit('returnIdParticant', {
okey: props.okey,
staff: back.value,
select: [],
@@ -200,7 +188,7 @@ export default {
}
} else {
part[props.okey] = !part[props.okey];
emit("returnIdParticant", {
emit('returnIdParticant', {
okey: props.okey,
staff: [part],
select: [],
@@ -213,10 +201,10 @@ export default {
if (e.id != accountStore.user.is_idEmployee) {
e[props.okey] = value;
}
if (!("employees" in e)) {
if (!('employees' in e)) {
back.value.push(e);
}
if ("employees" in e) {
if ('employees' in e) {
cbstaff(e.employees, value);
}
});
@@ -226,7 +214,7 @@ export default {
return (
item.includes(filtered.value) ||
itemText.raw.employees.some((e) =>
e.title.toLowerCase().includes(filtered.value.toLowerCase())
e.title.toLowerCase().includes(filtered.value.toLowerCase()),
)
);
}
@@ -10,10 +10,7 @@
<v-row no-gutters class="flex-column">
<v-col class="d-flex flex-column">
<v-row no-gutters class="align-center">
<v-col class="text-body-2 text-text_grey pb-5" lg="2">
Название
</v-col>
<v-col class="text-body-2 text-text_grey pb-5" lg="2"> Название </v-col>
<v-col>
<v-textarea
density="compact"
@@ -37,8 +34,8 @@
propsCalendar.cl_color === null
? 'flat'
: propsCalendar.cl_color === x
? 'flat'
: 'tonal'
? 'flat'
: 'tonal'
"
/> </v-col
></v-row>
@@ -80,8 +77,8 @@
<v-icon v-bind="props" icon="mdi-help-circle-outline" />
</template>
<div class="custom-tooltip">
Участники с доступом редактирования смогут изменять поля
календаря, а также редактировать и удалять события
Участники с доступом редактирования смогут изменять поля календаря, а также
редактировать и удалять события
</div>
</v-tooltip>
</v-col>
@@ -92,12 +89,12 @@
</template>
<script>
import { computed, ref } from "vue";
import { axiosApiInstance } from "@/utils/axios-api";
import calendarCreateSelect from "@/components/calendar_of_events/calendar-create-select.vue";
import { useAlertStore } from "@/store/useAlertStore";
import DialogCreate from "./UI_calendar/dialogCreate.vue";
import { useAccountStore } from "@/store/AccountStore";
import { computed, ref } from 'vue';
import { axiosApiInstance } from '@/utils/axios-api';
import calendarCreateSelect from '@/components/calendar_of_events/calendar-create-select.vue';
import { useAlertStore } from '@/store/useAlertStore';
import DialogCreate from './UI_calendar/dialogCreate.vue';
import { useAccountStore } from '@/store/AccountStore';
export default {
components: { calendarCreateSelect, DialogCreate },
@@ -105,7 +102,7 @@ export default {
props: {
calendar: {
type: Object,
default: {},
default: () => {},
},
},
@@ -113,15 +110,10 @@ export default {
const accountStore = useAccountStore();
const returnIdParticant = (idPart) => {
idPart.staff.forEach((e) => {
let indx = propsCalendar.value.participant.findIndex(
(l) => l.participant_calendar == e.id
);
let ind = propsCalendar.value.participant.find(
(l) => l.participant_calendar == e.id
);
if (idPart.okey == "editor") {
let indx = propsCalendar.value.participant.findIndex((l) => l.participant_calendar == e.id);
let ind = propsCalendar.value.participant.find((l) => l.participant_calendar == e.id);
if (idPart.okey == 'editor') {
ind.editor = e.editor;
} else {
if (e.selected == true) {
@@ -135,7 +127,7 @@ export default {
}
} else {
let ind = propsCalendar.value.participant.findIndex(
(l) => l.participant_calendar == e.id
(l) => l.participant_calendar == e.id,
);
if (ind != -1) {
@@ -144,32 +136,29 @@ export default {
}
}
});
};
const propsCalendar = computed({
get: () => props.calendar,
set: (value) => emit("update:calendar", value),
set: (value) => emit('update:calendar', value),
});
const feedalert = useAlertStore().alert;
const rules = {
cl_name: [(val) => req(val)],
cl_descr: [(val) => req(val)],
};
const titleCard = ref("");
const titleCard = ref('');
const newCalendar = ref(false);
const calendarNewOrOld = () => {
if (propsCalendar.value.hasOwnProperty("id")) {
titleCard.value = "Редактирование календаря";
if (propsCalendar.value.author != accountStore.user.is_idEmployee)
newCalendar.value = true;
if ('id' in propsCalendar.value) {
titleCard.value = 'Редактирование календаря';
if (propsCalendar.value.author != accountStore.user.is_idEmployee) newCalendar.value = true;
} else {
titleCard.value = "Новый календарь";
titleCard.value = 'Новый календарь';
newCalendar.value = true;
}
@@ -186,22 +175,19 @@ export default {
.then((result) => {
feedalert.alert = true;
feedalert.text = result.data.mess;
feedalert.ico = "mdi-check";
feedalert.color = "green-darken-4";
emit("getCalendar");
emit("closeDialog");
feedalert.ico = 'mdi-check';
feedalert.color = 'green-darken-4';
emit('getCalendar');
emit('closeDialog');
});
}
};
const staff = ref([]);
axiosApiInstance
.get("api/calendar_of_events/get_employees/")
.then((res) => {
staff.value = res.data.filter((e) => e.employees.length > 0);
});
axiosApiInstance.get('api/calendar_of_events/get_employees/').then((res) => {
staff.value = res.data.filter((e) => e.employees.length > 0);
});
const newStaff = computed({
get() {
@@ -209,7 +195,7 @@ export default {
if (propsCalendar.value.participant.length > 0) {
e.employees.forEach((empl) => {
let ab = propsCalendar.value.participant.find(
(a) => a.participant_calendar === empl.id
(a) => a.participant_calendar === empl.id,
);
if (ab) {
empl.selected = true;
@@ -227,21 +213,21 @@ export default {
});
const color = [
"red",
"pink",
"deep-orange",
"amber",
"yellow",
"lime",
"light-green",
"green",
"light-blue",
"blue",
"indigo",
"deep-purple",
"purple",
"blue-grey",
"brown",
'red',
'pink',
'deep-orange',
'amber',
'yellow',
'lime',
'light-green',
'green',
'light-blue',
'blue',
'indigo',
'deep-purple',
'purple',
'blue-grey',
'brown',
];
const colorPik = (col) => {
@@ -258,16 +244,15 @@ export default {
.then((result) => {
feedalert.alert = true;
feedalert.text = result.data.mess;
feedalert.ico = "mdi-check";
feedalert.color = "orange-accent-1";
emit("getCalendar");
feedalert.ico = 'mdi-check';
feedalert.color = 'orange-accent-1';
emit('getCalendar');
});
emit("closeDialog");
emit('closeDialog');
};
const req = (val) => {
return !!val || "Поле обязательно";
return !!val || 'Поле обязательно';
};
return {
+90 -128
View File
@@ -1,5 +1,4 @@
<template>
{{ interval }}
<v-carousel
v-model="currentslide"
:interval="interval"
@@ -8,172 +7,135 @@
height="450"
hide-delimiters
hide-delimiter-background
:show-arrows="carous.length<2?false:'hover'"
:show-arrows="carous.length < 2 ? false : 'hover'"
color="white"
@update:modelValue="slidechanged"
>
<template v-for="(x, i) in carous" :key="i">
<v-carousel-item
v-if="!x.link.endsWith('mp4')"
:src="`${burl}${x.link}`"
cover
eager
>
<v-container
fill-height
fluid
pa-0
ma-0
pb-3
class="flex-column h-100 d-flex"
>
<v-card
v-if="x.text != '' || x.title != null"
class="bgCard h-100 d-flex flex-column"
>
<v-card-title
v-if="x.title != null"
class="text-h3 text-uppercase titles text-text_carous ma-1 mb-0"
>
<v-row no-gutters>
<v-col class="align-self-center">
{{ x.title }}
</v-col>
<v-col class="flex-grow-0">
<v-img
width="50"
:aspect-ratio="1"
:src="`${burl}${x.sender}`"
cover
/>
</v-col>
</v-row>
</v-card-title>
<v-card-text
v-if="x.text != ''"
class="w-50 flex-grow-0 text-h6 bgText overflow-auto ma-1 pa-0"
>
<v-textarea
class="text-text_caroustext-black textareas font-weight-medium nocursor"
:model-value="x.text"
variant="solo"
readonly
auto-grow
rows="1"
hide-details
flat
bg-color="transparent"
/>
</v-card-text>
</v-card>
</v-container>
</v-carousel-item>
<v-carousel-item v-else >
<div class="d-flex justify-center">
<video
ref="videoElement"
style="height: 450px"
controls
autoplay
preload="metadata"
@ended="ended"
@loadedmetadata="interval = 10000000000"
<template v-for="(x, i) in carous" :key="i">
<v-carousel-item v-if="!x.link.endsWith('mp4')" :src="`${burl}${x.link}`" cover eager>
<v-container fill-height fluid pa-0 ma-0 pb-3 class="flex-column h-100 d-flex">
<v-card v-if="x.text != '' || x.title != null" class="bgCard h-100 d-flex flex-column">
<v-card-title
v-if="x.title != null"
class="text-h3 text-uppercase titles text-text_carous ma-1 mb-0"
>
<source :src="`${burl}${x.link}`" type="video/mp4" />
Текущий браузер не поддерживает воспроизведение этого видео.
</video>
</div>
<!-- currentslide=currentslide<carous.length-1?currentslide+1:0 -->
</v-carousel-item>
</template>
<v-row no-gutters>
<v-col class="align-self-center">
{{ x.title }}
</v-col>
<v-col class="flex-grow-0">
<v-img width="50" :aspect-ratio="1" :src="`${burl}${x.sender}`" cover />
</v-col>
</v-row>
</v-card-title>
<v-card-text
v-if="x.text != ''"
class="w-50 flex-grow-0 text-h6 bgText overflow-auto ma-1 pa-0"
>
<v-textarea
class="text-text_caroustext-black textareas font-weight-medium nocursor"
:model-value="x.text"
variant="solo"
readonly
auto-grow
rows="1"
hide-details
flat
bg-color="transparent"
/>
</v-card-text>
</v-card>
</v-container>
</v-carousel-item>
<v-carousel-item v-else>
<div class="d-flex justify-center">
<video
ref="videoElement"
style="height: 450px"
controls
preload="metadata"
@ended="ended"
@loadedmetadata="interval = 10000000000"
>
<source :src="`${burl}${x.link}`" type="video/mp4" />
Текущий браузер не поддерживает воспроизведение этого видео.
</video>
</div>
<!-- currentslide=currentslide<carous.length-1?currentslide+1:0 -->
</v-carousel-item>
</template>
</v-carousel>
</template>
<script>
import { ref, computed } from "vue";
import { baseURL } from "@/utils/axios-api";
import { axiosApiInstance } from "@/utils/axios-api";
import { useAlertStore } from "@/store/useAlertStore";
import { ref } from 'vue';
import { baseURL } from '@/utils/axios-api';
import { axiosApiInstance } from '@/utils/axios-api';
import { useAlertStore } from '@/store/useAlertStore';
export default {
setup() {
const currentslide=ref(0)
const currentslide = ref(0);
const burl = baseURL.slice(0, -1);
const videoElement=ref(null)
const carous = ref([{ link: `/media/newsimage/scales.jpg`, "title": null, "text": "" }]);
const videoElement = ref(null);
const carous = ref([{ link: `/media/newsimage/scales.jpg`, title: null, text: '' }]);
const feedalert = useAlertStore().alert;
const getfromserver = () => {
axiosApiInstance.get("api/navigation/carousels/").then((result) => {
if (result.data.mess != "") {
axiosApiInstance.get('api/navigation/carousels/').then((result) => {
if (result.data.mess != '') {
feedalert.alert = true;
feedalert.text = result.data.mess;
feedalert.color = "red-darken-2";
feedalert.ico = "mdi-alert-outline";
feedalert.color = 'red-darken-2';
feedalert.ico = 'mdi-alert-outline';
}
console.log(result.data);
if (result.data.result.length > 0) {
carous.value = result.data.result;
}
});
};
getfromserver();
const interval=ref(10000)
const slidechanged=()=>{
console.log(videoElement.value);
if (carous.value[currentslide.value].link.endsWith('mp4')){
videoElement.value.forEach((e)=>{
if(e.currentSrc!=burl+carous.value[currentslide.value].link){
e.pause()
}else{
console.log("sdflkhlh");
e.play()
const interval = ref(10000);
const slidechanged = () => {
if (carous.value[currentslide.value].link.endsWith('mp4')) {
videoElement.value.forEach((e) => {
if (e.currentSrc != burl + carous.value[currentslide.value].link) {
e.pause();
}
})
// else{
// console.log("sdflkhlh");
// e.play()
// }
});
}
if(carous.value[currentslide.value].link.endsWith('mp4')){
interval.value = 10000000000
}else{
interval.value=10000
if (carous.value[currentslide.value].link.endsWith('mp4')) {
interval.value = 10000000000;
} else {
interval.value = 10000;
}
}
const ended = (val)=>{
val.target.currentTime = 0
};
const ended = (val) => {
val.target.currentTime = 0;
val.target.pause();
document.exitFullscreen()
currentslide.value=currentslide.value<carous.value.length-1?currentslide.value+1:0
}
document.exitFullscreen();
currentslide.value =
currentslide.value < carous.value.length - 1 ? currentslide.value + 1 : 0;
};
return {
slidechanged,
videoElement,
currentslide,
interval,
// intervalcomp,
burl,
carous,
ended
ended,
};
},
};
Whitespace-only changes.
+2 -1
View File
@@ -180,7 +180,8 @@ export default {
const onPickFile = (ex) => {
const sdata = new FormData()
sdata.append('dailyfiles', dailyfiles.value[0])
sdata.append('dailyfiles', dailyfiles.value)
console.log(dailyfiles.value);
axiosApiInstance.post(`api/general_vacation/dailyroundup/?excel=${ex}`, sdata).then(result => {
info.value = result.data
dailyfun()
+2 -2
View File
@@ -76,8 +76,8 @@ export default {
const onPickFile = (ex) => {
const sdata = new FormData()
sdata.append('dailyfiles', dailyfiles.value[0])
sdata.append('dailyfiles', dailyfiles.value)
console.log(dailyfiles.value);
axiosApiInstance.post(`api/general_vacation/dailyroundup/?excel=${ex}`, sdata).then(result => {
textFromAlert(result.data['mess'])
})
@@ -1,6 +1,5 @@
<template>
<div class="px-4">
{{ displayDays + declOfNum(displayDays, [' день', ' дня', ' дней']) }}
{{ displayHours + declOfNum(displayHours, [' час', ' часа', ' часов']) }}
{{ displayMinutes + declOfNum(displayMinutes, [' минута', ' минуты', ' минут']) }}
{{ displaySeconds + declOfNum(displaySeconds, [' секунда', ' секунды', ' секунд']) }}
@@ -0,0 +1,18 @@
<template>
<v-container>
<HeaderDetailTesting />
</v-container>
</template>
<script>
import HeaderDetailTesting from './HeaderDetailTesting.vue';
export default {
components: {
HeaderDetailTesting,
}
}
</script>
@@ -0,0 +1,43 @@
<template>
<v-row class="ma-0 border-b-thin">
<v-col cols="auto" class="flex-grow-1">
<div class="text-subtitle-1 text-grey-lighten-1">Тест</div>
<div class="text-h5">{{ title }}</div>
</v-col>
<v-col cols="auto" class="d-flex flex-column">
<div class="align-self-end text-grey-lighten-1">!!!</div>
<div class="text-h4 text-grey-lighten-1">{{ time }}Таймер сюдаааа!!!</div>
</v-col>
</v-row>
<v-row class="ma-0 border-b-thin">
<v-col cols="auto" class="flex-grow-1">
<v-container class="d-flex align-center max-width">
<v-btn elevation="1" color="teal-darken-1" size="x-small" rounded icon="mdi-information-outline" />
<v-pagination :length="25" :total-visible="20" next-icon="mdi-menu-right" prev-icon="mdi-menu-left">
<template #item="item">
{{ item }}
</template>
</v-pagination>
</v-container>
</v-col>
<v-col cols="auto" class="align-self-center">
<v-btn elevation="0" color="#0000001F" rounded="1">Выйти</v-btn>
</v-col>
</v-row>
</template>
<script>
export default {
props: {
title: {
type: String,
default: 'Название теста здесь',
},
time: {
}
}
}
</script>
+1 -1
View File
@@ -18,7 +18,7 @@
<v-card-title>Лидер номинации</v-card-title>
</v-card>
<v-card class="scroll-leaders pt-4" elevation="0">
<div v-for="leader in max_thn.slice(0,3)">
<div v-for="leader in max_thn.slice(0,10)">
{{ leader.cand_name }} - {{ leader.total }}
</div>
</v-card>
@@ -43,6 +43,14 @@
</div>
<v-divider></v-divider>
<div class="flex-grow-0 flex-shrink-1">
<div class="pt-2 d-flex align-center"><span class="text-overline text-grey text-center">Публикация новости: </span>
<v-switch v-model="form.createnews"
class="px-2"
density="comfortable"
hide-details
color="primary"
:label="form.createnews?'да':'нет'"
></v-switch></div>
<div class="pt-2 text-overline text-grey">Дата и время:</div>
<div class="d-flex justify-space-around">
<div class="d-flex ga-3 align-center">
@@ -360,6 +368,7 @@ export default {
startDate: new Date(),
endDate: new Date(new Date().setDate(new Date().getDate() + 14)),
questions: [],
createnews:false
});
const rules = {
+10 -10
View File
@@ -293,21 +293,21 @@ export default {
// ],
// },
{
name: "Календарь",
ico: "mdi-calendar",
path: "/ical",
},
// {
// name: "Календарь",
// ico: "mdi-calendar",
// path: "/ical",
// },
{
name: "Голосование",
ico: "mdi-vote",
path: "/vote",
},
{
name: "Тестирование",
ico: "mdi-book-open-blank-variant",
path: "/test",
},
// {
// name: "Тестирование",
// ico: "mdi-book-open-blank-variant",
// path: "/test",
// },
{
name: "Об инспекции",
+6
View File
@@ -177,6 +177,12 @@ const routes = [
ico: "mdi-account",
},
},
{
path: "/test/testdetail/:id",
name: "TestDetail",
component: () =>
import("@/components/testing/DetailCardTest.vue")
},
{
path: '/secret',
name: 'Secret Page',
+68 -73
View File
@@ -1,32 +1,39 @@
import {useAccountStore} from '@/store/AccountStore'
import axios from "axios";
import { useAccountStore } from '@/store/AccountStore';
import axios from 'axios';
const spravURL = 'http://10.252.44.33/accounting6/images/photo/'
const spravURLBase = 'http://10.252.44.33/accounting6/'
const baseURL = process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:8000/' : `http://${window.location.host}/`;
const baseWS = process.env.NODE_ENV === 'development' ? 'ws://127.0.0.1:8000/' : `ws://${window.location.host}/`;
const spravURL = 'http://10.252.44.33/accounting6/images/photo/';
const spravURLBase = 'http://10.252.44.33/accounting6/';
const baseURL =
process.env.NODE_ENV === 'development'
? 'http://127.0.0.1:8000/'
: `http://${window.location.host}/`;
const baseWS =
process.env.NODE_ENV === 'development' ? 'ws://127.0.0.1:8000/' : `ws://${window.location.host}/`;
// const baseURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000/': `http://10.252.44.60:9965/`;
// const baseWS = process.env.NODE_ENV == 'development'? 'ws://127.0.0.1:8000/': `ws://10.252.44.60:9966/`;
// для релизного меняем 'http://ukd/'
// const baseURL = 'http://127.0.0.1:8000/';
async function refreshToken() {
const refresh = localStorage.getItem('refresh');
try {
const result = await axios.post('/api/accounts/token/refresh/', {refresh}, {
baseURL
})
const result = await axios.post(
'/api/accounts/token/refresh/',
{ refresh },
{
baseURL,
},
);
if (result.config.data) localStorage.setItem('refresh', JSON.parse(result.config.data).refresh);
localStorage.setItem('access', result.data.access)
localStorage.setItem('access', result.data.access);
return result.data.access;
} catch (e) {
const accountStore = useAccountStore()
accountStore.logout()
accountStore.cod2user.value = false
const accountStore = useAccountStore();
accountStore.logout();
accountStore.cod2user.value = false;
return Promise.reject(e);
}
@@ -40,32 +47,36 @@ const clearAxios = axios.create({
baseURL,
});
axiosApiInstance.defaults.headers.common['Authorization'] = `Bearer ${localStorage.getItem('access')}`
axiosApiInstance.defaults.headers.common['Authorization'] =
`Bearer ${localStorage.getItem('access')}`;
axiosApiInstance.interceptors.request.use(config => {
const access = localStorage.getItem('access');
if (access) {
config.headers = {
'Authorization': `Bearer ${access}`,
axiosApiInstance.interceptors.request.use(
(config) => {
const access = localStorage.getItem('access');
if (access) {
config.headers = {
Authorization: `Bearer ${access}`,
};
}
}
return config;
}, error => {
return Promise.reject(error);
})
return config;
},
(error) => {
return Promise.reject(error);
},
);
axiosApiInstance.interceptors.response.use(
response => {
(response) => {
return response;
},
async error => {
async (error) => {
const originalRequest = error.config;
if ((error.response.status === 401 || error.response.status === 403) && !originalRequest._retry) {
if (
(error.response.status === 401 || error.response.status === 403) &&
!originalRequest._retry
) {
originalRequest._retry = true;
try {
const token = await refreshToken();
axiosApiInstance.defaults.headers.common['Authorization'] = `Bearer ${token}`;
@@ -75,64 +86,54 @@ axiosApiInstance.interceptors.response.use(
}
return axiosApiInstance(originalRequest);
} catch (e) {
return Promise.reject(error);
return Promise.reject(error) ?? e;
}
}
return Promise.reject(error);
})
},
);
async function getVotes(status) {
try {
const response = await axiosApiInstance.get(`/api/vote/getvotes?status=${status}`);
return response.data;
} catch (error) {
console.error('Ошибка запроса голосования:', error);
throw error;
throw new Error('Ошибка запроса голосования:', error);
}
}
async function createVote(voteData) {
try {
const formData = new FormData();
voteData.questions.forEach(question => {
formData.append('questionsfiles', question.image)
if(!!question.image){
const {name,size,lastModified}=question.image
question.image={name,size,lastModified}
voteData.questions.forEach((question) => {
formData.append('questionsfiles', question.image);
if (question.image) {
const { name, size, lastModified } = question.image;
question.image = { name, size, lastModified };
}
question.answers.forEach((answer) => {
formData.append('answersfiles', answer.image);
if (answer.image) {
const { name, size, lastModified } = answer.image;
answer.image = { name, size, lastModified };
}
question.answers.forEach(answer=>{
formData.append('answersfiles', answer.image)
if(!!answer.image){
const {name,size,lastModified}=answer.image
answer.image={name,size,lastModified}
}
})
});
});
formData.append('news', voteData.createnews);
formData.append('title', voteData.title);
formData.append('description', voteData.description);
formData.append('startDate', new Date(voteData.startDate).toISOString());
formData.append('endDate', new Date(voteData.endDate).toISOString());
formData.append('questions', JSON.stringify(voteData.questions));
const response = await axiosApiInstance.post('/api/vote/votecreate/', formData, {
headers: {'Content-Type': 'multipart/form-data'},
await axiosApiInstance.post('/api/vote/votecreate/', formData, {
headers: { 'Content-Type': 'multipart/form-data' },
});
// return response.data;
} catch (error) {
console.error('Ошибка создания голосования:', error);
throw error;
throw new Error(error);
}
}
@@ -141,8 +142,7 @@ async function getVoteDetail(id) {
const response = await axiosApiInstance.get(`/api/vote/votedetail/${id}/`);
return response.data;
} catch (error) {
console.error("Ошибка получения деталей голосования:", error);
throw error;
throw new Error(error);
}
}
@@ -169,10 +169,8 @@ async function getVoteDetail(id) {
async function deleteVote(id) {
try {
await axiosApiInstance.delete(`/api/vote/votedetail/${id}/`);
console.log("Голосование успешно удалено");
} catch (error) {
console.error("Ошибка удаления голосования:", error);
throw error;
throw new Error(error);
}
}
@@ -181,8 +179,7 @@ async function getEmployees() {
const response = await axiosApiInstance.get(`api/vote/getdictemployee/`);
return response.data;
} catch (error) {
console.error("Ошибка получения всех сотрудников:", error);
throw error;
throw new Error(error);
}
}
@@ -191,12 +188,10 @@ async function getVoteResult(id) {
const response = await axiosApiInstance.get(`/api/vote/getresults/?id=${id}`);
return response.data;
} catch (error) {
console.error("Ошибка получения результата голосования:", error);
throw error;
throw new Error(error);
}
}
export {
axiosApiInstance,
clearAxios,
@@ -212,4 +207,4 @@ export {
deleteVote,
getEmployees,
getVoteResult,
}
};
+14 -19
View File
@@ -1,26 +1,21 @@
<template>
<v-row>
<v-col
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
>
F.A.Q.
</v-col>
</v-row>
<v-row>
<v-col
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
>
F.A.Q.
</v-col>
</v-row>
</template>
<script>
import {pagecounter} from '@/utils/universal_functions'
import { pagecounter } from '@/utils/universal_functions';
export default {
setup(){
pagecounter()
}
}
setup() {
pagecounter();
},
};
</script>
<style>
</style>
<style></style>
+88 -150
View File
@@ -1,160 +1,98 @@
<template>
<v-carousel
cover
:height="carushi"
hide-delimiters
hide-delimiter-background
show-arrows="hover"
color="white"
>
<v-carousel-item v-for="(x, i) in carous" :key="i" :src="`${burl}${x.link}`" cover eager>
<v-container fill-height fluid pa-0 ma-0 pb-3 class="flex-column h-100 d-flex">
<v-card class="bgCard h-100 d-flex flex-column">
<v-card-title class="ma-2 text-h3 text-uppercase titles py-5 flex-column">
<v-row>
<v-col class="pa-0 pl-1 align-self-center">{{ x.title }} </v-col>
<v-carousel
cover
:height="carushi"
hide-delimiters
hide-delimiter-background
show-arrows="hover"
color="white"
>
<v-carousel-item
v-for="(x, i) in carous" :key="i"
:src="`${burl}${x.link}`"
cover
eager
>
<v-col class="flex-grow-0 pa-0 pr-1">
<v-img width="50" :aspect-ratio="1" :src="`${burl}${x.sender}`" cover />
</v-col>
</v-row>
</v-card-title>
<v-card-text
v-if="'text' in x && x.text.length > 0"
class="ml-2 mb-0 mb-2 flex-grow-0 pb-3 text-h6 h-100 pl-3 py-3 mr-1"
>
<v-row>
<v-col cols="6" class="bgText">
<v-textarea
class="mt-n3 text-black textareas pt-2 font-weight-medium"
:model-value="x.text"
variant="plain"
readonly
auto-grow
rows="1"
hide-details
/>
</v-col>
<v-container
fill-height
fluid
pa-0 ma-0 pb-3
class="flex-column h-100 d-flex"
>
<v-card class="bgCard h-100 d-flex flex-column">
<v-card-title class="ma-2 text-h3 text-uppercase titles py-5 flex-column">
<v-row>
<v-col class="pa-0 pl-1 align-self-center">{{x.title}}
</v-col>
<v-col class="flex-grow-0 pa-0 pr-1">
<v-img
width="50"
:aspect-ratio="1"
:src="`${burl}${x.sender}`"
cover
/>
</v-col>
</v-row>
</v-card-title>
<v-card-text v-if="'text' in x && x.text.length>0" class="ml-2 mb-0 mb-2 flex-grow-0 pb-3 text-h6 h-100 pl-3 py-3 mr-1 ">
<v-row>
<v-col cols="6" class="bgText">
<v-img :aspect-ratio="1" :src="`${burl}${x.link2}`" />
</v-col>
</v-row>
</v-card-text>
</v-card>
</v-container>
</v-carousel-item>
</v-carousel>
</template>
<v-col cols=6 class=" bgText">
<v-textarea
class="mt-n3 text-black textareas pt-2 font-weight-medium"
:model-value=x.text
variant='plain'
readonly
auto-grow
rows="1"
hide-details
<script>
import { ref, computed } from 'vue';
/>
</v-col>
import { baseURL } from '@/utils/axios-api';
import { axiosApiInstance } from '@/utils/axios-api';
<v-col cols=6 class=" bgText">
<v-img
:aspect-ratio="1"
:src="`${burl}${x.link2}`"
/>
</v-col>
</v-row>
</v-card-text>
</v-card>
</v-container>
</v-carousel-item>
</v-carousel>
</template>
<script>
import { ref, computed } from 'vue'
import {getfromserver} from '@/utils/universal_functions'
import { baseURL } from '@/utils/axios-api'
import { axiosApiInstance } from '@/utils/axios-api'
export default {
setup() {
const burl = baseURL.slice(0,-1)
const carous=ref([{link: ""}])
axiosApiInstance.get(`api/fns/links/`).then(data => {
carous.value= data.data
// t_dailyRound.value = data.data
export default {
setup() {
const burl = baseURL.slice(0, -1);
const carous = ref([{ link: '' }]);
// result.value=JSON.parse(JSON.stringify(data.data.daily))
axiosApiInstance.get(`api/fns/links/`).then((data) => {
carous.value = data.data;
})
// getfromserver("api/fns/links/", carous)
const carushi = computed(()=> {
return window.innerHeight-50
})
return { burl, carous, carushi}
}
// t_dailyRound.value = data.data
// result.value=JSON.parse(JSON.stringify(data.data.daily))
});
// getfromserver("api/fns/links/", carous)
}
</script>
<style>
.bgCard {
/* #ffffff6b #ffffff8c*/
background: #ffffff38 ;
}
.bgText {
background: #ffffffb0;
line-height: 3.1rem!important;
}
.titles {
/* font-family: cursive !important; */
background: #ffffff8c;
}
.textareas .v-field__input {
font-size: 2.5em!important;
}
</style>
const carushi = computed(() => {
return window.innerHeight - 50;
});
return { burl, carous, carushi };
},
};
</script>
<style>
.bgCard {
/* #ffffff6b #ffffff8c*/
background: #ffffff38;
}
.bgText {
background: #ffffffb0;
line-height: 3.1rem !important;
}
.titles {
/* font-family: cursive !important; */
background: #ffffff8c;
}
.textareas .v-field__input {
font-size: 2.5em !important;
}
</style>
+73 -196
View File
@@ -1,223 +1,100 @@
<template>
<v-container>
<v-tabs v-model="activeTab" class="mb-4 text-teal-darken-4">
<v-tab>Назначенные ({{ scheduledTests.length }})</v-tab>
<v-tab>Завершенные ({{ completedTests.length }})</v-tab>
<v-tab>Каталог</v-tab>
<v-container :fluid="true">
<v-tabs v-model="activeTab" class="mb-2 text-teal-darken-4">
<v-tab v-for="tab in tabs" :key="tab.value" :value="tab.value"> {{ tab.title }} </v-tab>
</v-tabs>
<v-tabs-window v-model="activeTab">
<!-- Назначенные -->
<v-tabs-window-item>
<v-card outlined>
<v-card-title>
Назначенные
</v-card-title>
<v-text-field
v-model="search"
class="mx-4"
clearable
label="Найти тестирование по названию"
variant="outlined"
/>
<v-data-table
:headers="headers"
:items="filteredScheduledTests"
hide-default-footer
hide-default-header
item-value="id"
>
<template #item.image="{ item }">
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
</template>
<template #item.title="{ item }">
<TestCard :item="item"/>
</template>
<template #item.actions="{ item }">
<v-btn v-if="item.type === 'test'" class="mr-4" color="teal-darken-4" variant="tonal">Тренироваться
</v-btn>
<v-btn color="teal-darken-4">Пройти</v-btn>
</template>
</v-data-table>
</v-card>
<v-tabs-window v-model="activeTab" class="border-t-thin">
<!-- Вкладка назначенные -->
<v-tabs-window-item class="my-2">
<CatalogTest title="Назначенные" :activeTab="activeTab" :testingCard="getAllTests">
<template #buttons>
<v-btn color="#00897B1F" class="mr-2 text-teal-darken-1" elevation="0">
Тренироваться
</v-btn>
<v-btn color="teal-darken-1" elevation="0"> Пройти </v-btn>
</template>
</CatalogTest>
</v-tabs-window-item>
<!-- Завершенные -->
<!-- Вкладка завершенных -->
<v-tabs-window-item>
<v-card class="mb-6" outlined>
<v-card-title>
Завершенные
</v-card-title>
<v-data-table
:headers="headers"
:items="filteredCompletedTests"
hide-default-footer
hide-default-header
item-value="id"
>
<template #item.image="{ item }">
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
</template>
<template #item.title="{ item }">
<TestCard :item="item"/>
</template>
<template #item.actions="{ item }">
<v-btn color="teal-darken-4">Посмотреть результаты</v-btn>
</template>
</v-data-table>
</v-card>
<CatalogTest title="Завершенные" :activeTab="activeTab" :testingCard="getAllTests">
<!-- Здесь отобразить результат теста после того как будет готов БЭК и УМТ -->
<template #results>
<!-- <div>
<v-icon icon="mdi-calendar-clock" size="large" />
<span class="ml-1">12354</span>
</div> -->
</template>
<template #buttons>
<v-btn color="#00897B1F" class="mr-2 text-teal-darken-1" elevation="0">
Результаты
</v-btn>
</template>
</CatalogTest>
</v-tabs-window-item>
<!-- Каталог -->
<!-- Вкладка каталога -->
<v-tabs-window-item>
<v-card outlined>
<v-card-title>
Каталог
</v-card-title>
<v-text-field
v-model="search"
class="mx-4"
clearable
label="Найти тестирование по названию"
variant="outlined"
/>
<v-data-table
:headers="headers"
:items="filteredTests"
hide-default-footer
hide-default-header
item-value="id"
>
<template #item.image="{ item }">
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
</template>
<template #item.title="{ item }">
<TestCard :item="item"/>
</template>
<template #item.actions="{ item }">
<v-btn v-if="item.type === 'test'" class="mr-4" color="teal-darken-4" variant="tonal">Тренироваться
</v-btn>
<v-btn color="teal-darken-4">Пройти</v-btn>
</template>
</v-data-table>
</v-card>
<CatalogTest title="Каталог" :activeTab="activeTab" :testingCard="getAllTests">
<template #buttons>
<v-btn color="#00897B1F" class="mr-2 text-teal-darken-1" elevation="0">
Тренироваться
</v-btn>
</template>
</CatalogTest>
</v-tabs-window-item>
</v-tabs-window>
</v-container>
</template>
<script>
import {computed, ref} from 'vue';
import TestCard from "@/components/tests/TestCard.vue";
import CatalogTest from '@/components/testing/CatalogTest.vue';
import { axiosApiInstance } from '@/utils/axios-api';
import { ref, computed, watch } from 'vue';
export default {
components: {TestCard},
components: {
CatalogTest,
},
setup() {
const activeTab = ref(0);
const search = ref('');
const currentTest = ref('');
const headers = [
{text: 'Картинка', value: 'image', sortable: false},
{text: 'Название', value: 'title', align: 'start'},
{text: 'Действия', value: 'actions', sortable: false},
];
const getAllTests = ref([]);
const tests = ref([
{
id: 1,
title: 'Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий',
type: 'test',
description: 'Краткое описание тестирования',
date: '2025-02-28',
questions: 20,
time: '15 минут',
attempts: 1,
image: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
},
{
id: 2,
title: 'Удобство раздела тестирования',
type: 'survey',
description: 'Опрос среди сотрудников ЦОД МФ',
date: '2025-06-22',
questions: 28,
time: null,
attempts: null,
image: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
},
{
id: 3,
title: 'Законченная карточка законченного тестирования',
type: 'survey',
description: 'законченное описание законченного тестирования',
date: '2024-06-22',
questions: 1,
time: null,
attempts: null,
image: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
const getTestById = () => {
let status =
activeTab.value == 0 ? '?status=active' : activeTab.value == 1 ? '?status=completed' : '';
axiosApiInstance
.get(`/api/tests/gettests/${status}`)
.then((resp) => (getAllTests.value = resp.data))
.finally(() => {
if (activeTab.value == 0) {
currentTest.value = getAllTests.value.length;
}
});
};
getTestById();
watch(
() => activeTab.value,
() => {
getTestById();
},
);
const tabs = computed(() => [
{ value: 0, title: `Назначенные (${currentTest.value})` },
{ value: 1, title: 'Завершенные' },
{ value: 2, title: 'Каталог' },
]);
const currentDate = new Date();
const scheduledTests = computed(() => {
return tests.value.filter(test => new Date(test.date) > currentDate);
});
const completedTests = computed(() => {
return tests.value.filter(test => new Date(test.date) <= currentDate);
});
const filteredScheduledTests = computed(() => {
if (!search.value) return scheduledTests.value;
return scheduledTests.value.filter(test =>
test.title.toLowerCase().includes(search.value.toLowerCase())
);
});
const filteredCompletedTests = computed(() => {
if (!search.value) return completedTests.value;
return completedTests.value.filter(test =>
test.title.toLowerCase().includes(search.value.toLowerCase())
);
});
const filteredTests = computed(() => {
if (!search.value) return tests.value.filter(test => new Date(test.date) > currentDate);
return tests.value.filter(test => new Date(test.date) > currentDate)
.filter((test) =>
test.title.toLowerCase().includes(search.value.toLowerCase())
);
});
return {
activeTab,
search,
headers,
tests,
filteredTests,
filteredScheduledTests,
filteredCompletedTests,
scheduledTests,
completedTests,
tabs,
getAllTests,
};
},
};
</script>
<style>
.v-data-table__wrapper {
overflow-x: auto;
}
</style>
+4
View File
@@ -19,6 +19,8 @@
<div>
<v-card class="vote-card-information" variant="flat">
<v-card-text class="justify-center align-center vote-card-information-title">
<p>ВЫ УЖЕ ПРОГОЛОСОВАЛИ.</p>
<p>СПАСИБО!</p>
@@ -182,6 +184,7 @@ export default {
})
const toggleFlip1 = () => {
isFlipped1.value = !isFlipped1.value;
};
@@ -260,6 +263,7 @@ export default {
}
.flip-card-inner {
display: flex;
position: relative;
transition: transform 0.8s;
+3 -3
View File
@@ -20,11 +20,12 @@
<!-- Вкладка завершенных -->
<v-tabs-window-item>
<CatalogTest title="Завершенные" :activeTab="activeTab" :testingCard="getAllTests">
<!-- Здесь отобразить результат теста после того как будет готов БЭК и УМТ -->
<template #results>
<div>
<!-- <div>
<v-icon icon="mdi-calendar-clock" size="large" />
<span class="ml-1">12354</span>
</div>
</div> -->
</template>
<template #buttons>
<v-btn color="#00897B1F" class="mr-2 text-teal-darken-1" elevation="0">
@@ -44,7 +45,6 @@
</CatalogTest>
</v-tabs-window-item>
</v-tabs-window>
{{ getAllTests }}
</v-container>
</template>