sprof 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/forms/store/index.d.ts +219 -1
- package/dist/sprof.js +1 -1
- package/dist/sprof.umd.cjs +1 -1
- package/dist/store/Store.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,5 +6,223 @@ import { default as FormSectionsStore } from './FormSectionsStore';
|
|
|
6
6
|
import { default as FormsStore } from './FormsStore';
|
|
7
7
|
import { default as SelectedAnswerVariantsStore } from './SelectedAnswerVariantsStore';
|
|
8
8
|
export { AnswerVariantsStore, FieldFillsStore, FieldsStore, FormFillsStore, FormSectionsStore, FormsStore, SelectedAnswerVariantsStore };
|
|
9
|
-
declare const m:
|
|
9
|
+
declare const m: {
|
|
10
|
+
AnswerVariants: {
|
|
11
|
+
readonly items: import('../classes').AnswerVariant[];
|
|
12
|
+
readonly item: import('../classes').AnswerVariant;
|
|
13
|
+
count: globalThis.Ref<number, number>;
|
|
14
|
+
classConstructor: import('../../../services/ClassHelper').Constructable<import('../classes').AnswerVariant>;
|
|
15
|
+
url: string;
|
|
16
|
+
Set(item: void | import('../classes').AnswerVariant): void;
|
|
17
|
+
Item(): import('../classes').AnswerVariant;
|
|
18
|
+
getUrl(query?: string | undefined): string;
|
|
19
|
+
GetAll(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
20
|
+
Get(id?: string | undefined): Promise<void>;
|
|
21
|
+
FTSP(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
22
|
+
Create(item?: import('../classes').AnswerVariant | undefined): Promise<void | import('../classes').AnswerVariant>;
|
|
23
|
+
CreateAndSet(item: import('../classes').AnswerVariant): Promise<void>;
|
|
24
|
+
CreateMany(items?: import('../classes').AnswerVariant[] | undefined): Promise<void>;
|
|
25
|
+
Update(item?: import('../classes').AnswerVariant | undefined): Promise<void | import('../classes').AnswerVariant>;
|
|
26
|
+
UpdateAndSet(item: import('../classes').AnswerVariant): Promise<void>;
|
|
27
|
+
UpdateAndReset(item?: import('../classes').AnswerVariant | undefined): Promise<void>;
|
|
28
|
+
Remove(id: string | undefined): Promise<void>;
|
|
29
|
+
UpdateMany(items?: import('../classes').AnswerVariant[] | undefined): Promise<void>;
|
|
30
|
+
SetAll(items: import('../classes').AnswerVariant[] | undefined): void;
|
|
31
|
+
SetAllWithCount(items?: import('../../../interfaces/ItemsWithCount').default<import('../classes').AnswerVariant> | undefined): void;
|
|
32
|
+
RemoveItem(id: string): void;
|
|
33
|
+
AppendToAll(items?: import('../classes').AnswerVariant[] | undefined): void;
|
|
34
|
+
ResetState(): void;
|
|
35
|
+
ResetItem(): void;
|
|
36
|
+
ClearItems(): void;
|
|
37
|
+
UnshiftToAll(item: import('../classes').AnswerVariant): void;
|
|
38
|
+
Items(): import('../classes').AnswerVariant[];
|
|
39
|
+
Count(): globalThis.Ref<number, number>;
|
|
40
|
+
};
|
|
41
|
+
FieldFills: {
|
|
42
|
+
readonly items: import('../classes').FieldFill[];
|
|
43
|
+
readonly item: import('../classes').FieldFill;
|
|
44
|
+
count: globalThis.Ref<number, number>;
|
|
45
|
+
classConstructor: import('../../../services/ClassHelper').Constructable<import('../classes').FieldFill>;
|
|
46
|
+
url: string;
|
|
47
|
+
Set(item: void | import('../classes').FieldFill): void;
|
|
48
|
+
Item(): import('../classes').FieldFill;
|
|
49
|
+
getUrl(query?: string | undefined): string;
|
|
50
|
+
GetAll(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
51
|
+
Get(id?: string | undefined): Promise<void>;
|
|
52
|
+
FTSP(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
53
|
+
Create(item?: import('../classes').FieldFill | undefined): Promise<void | import('../classes').FieldFill>;
|
|
54
|
+
CreateAndSet(item: import('../classes').FieldFill): Promise<void>;
|
|
55
|
+
CreateMany(items?: import('../classes').FieldFill[] | undefined): Promise<void>;
|
|
56
|
+
Update(item?: import('../classes').FieldFill | undefined): Promise<void | import('../classes').FieldFill>;
|
|
57
|
+
UpdateAndSet(item: import('../classes').FieldFill): Promise<void>;
|
|
58
|
+
UpdateAndReset(item?: import('../classes').FieldFill | undefined): Promise<void>;
|
|
59
|
+
Remove(id: string | undefined): Promise<void>;
|
|
60
|
+
UpdateMany(items?: import('../classes').FieldFill[] | undefined): Promise<void>;
|
|
61
|
+
SetAll(items: import('../classes').FieldFill[] | undefined): void;
|
|
62
|
+
SetAllWithCount(items?: import('../../../interfaces/ItemsWithCount').default<import('../classes').FieldFill> | undefined): void;
|
|
63
|
+
RemoveItem(id: string): void;
|
|
64
|
+
AppendToAll(items?: import('../classes').FieldFill[] | undefined): void;
|
|
65
|
+
ResetState(): void;
|
|
66
|
+
ResetItem(): void;
|
|
67
|
+
ClearItems(): void;
|
|
68
|
+
UnshiftToAll(item: import('../classes').FieldFill): void;
|
|
69
|
+
Items(): import('../classes').FieldFill[];
|
|
70
|
+
Count(): globalThis.Ref<number, number>;
|
|
71
|
+
};
|
|
72
|
+
Fields: {
|
|
73
|
+
readonly items: import('../classes').Field[];
|
|
74
|
+
readonly item: import('../classes').Field;
|
|
75
|
+
count: globalThis.Ref<number, number>;
|
|
76
|
+
classConstructor: import('../../../services/ClassHelper').Constructable<import('../classes').Field>;
|
|
77
|
+
url: string;
|
|
78
|
+
Set(item: void | import('../classes').Field): void;
|
|
79
|
+
Item(): import('../classes').Field;
|
|
80
|
+
getUrl(query?: string | undefined): string;
|
|
81
|
+
GetAll(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
82
|
+
Get(id?: string | undefined): Promise<void>;
|
|
83
|
+
FTSP(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
84
|
+
Create(item?: import('../classes').Field | undefined): Promise<void | import('../classes').Field>;
|
|
85
|
+
CreateAndSet(item: import('../classes').Field): Promise<void>;
|
|
86
|
+
CreateMany(items?: import('../classes').Field[] | undefined): Promise<void>;
|
|
87
|
+
Update(item?: import('../classes').Field | undefined): Promise<void | import('../classes').Field>;
|
|
88
|
+
UpdateAndSet(item: import('../classes').Field): Promise<void>;
|
|
89
|
+
UpdateAndReset(item?: import('../classes').Field | undefined): Promise<void>;
|
|
90
|
+
Remove(id: string | undefined): Promise<void>;
|
|
91
|
+
UpdateMany(items?: import('../classes').Field[] | undefined): Promise<void>;
|
|
92
|
+
SetAll(items: import('../classes').Field[] | undefined): void;
|
|
93
|
+
SetAllWithCount(items?: import('../../../interfaces/ItemsWithCount').default<import('../classes').Field> | undefined): void;
|
|
94
|
+
RemoveItem(id: string): void;
|
|
95
|
+
AppendToAll(items?: import('../classes').Field[] | undefined): void;
|
|
96
|
+
ResetState(): void;
|
|
97
|
+
ResetItem(): void;
|
|
98
|
+
ClearItems(): void;
|
|
99
|
+
UnshiftToAll(item: import('../classes').Field): void;
|
|
100
|
+
Items(): import('../classes').Field[];
|
|
101
|
+
Count(): globalThis.Ref<number, number>;
|
|
102
|
+
};
|
|
103
|
+
FormFills: {
|
|
104
|
+
readonly items: import('../classes').FormFill[];
|
|
105
|
+
readonly item: import('../classes').FormFill;
|
|
106
|
+
count: globalThis.Ref<number, number>;
|
|
107
|
+
classConstructor: import('../../../services/ClassHelper').Constructable<import('../classes').FormFill>;
|
|
108
|
+
url: string;
|
|
109
|
+
Set(item: void | import('../classes').FormFill): void;
|
|
110
|
+
Item(): import('../classes').FormFill;
|
|
111
|
+
getUrl(query?: string | undefined): string;
|
|
112
|
+
GetAll(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
113
|
+
Get(id?: string | undefined): Promise<void>;
|
|
114
|
+
FTSP(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
115
|
+
Create(item?: import('../classes').FormFill | undefined): Promise<void | import('../classes').FormFill>;
|
|
116
|
+
CreateAndSet(item: import('../classes').FormFill): Promise<void>;
|
|
117
|
+
CreateMany(items?: import('../classes').FormFill[] | undefined): Promise<void>;
|
|
118
|
+
Update(item?: import('../classes').FormFill | undefined): Promise<void | import('../classes').FormFill>;
|
|
119
|
+
UpdateAndSet(item: import('../classes').FormFill): Promise<void>;
|
|
120
|
+
UpdateAndReset(item?: import('../classes').FormFill | undefined): Promise<void>;
|
|
121
|
+
Remove(id: string | undefined): Promise<void>;
|
|
122
|
+
UpdateMany(items?: import('../classes').FormFill[] | undefined): Promise<void>;
|
|
123
|
+
SetAll(items: import('../classes').FormFill[] | undefined): void;
|
|
124
|
+
SetAllWithCount(items?: import('../../../interfaces/ItemsWithCount').default<import('../classes').FormFill> | undefined): void;
|
|
125
|
+
RemoveItem(id: string): void;
|
|
126
|
+
AppendToAll(items?: import('../classes').FormFill[] | undefined): void;
|
|
127
|
+
ResetState(): void;
|
|
128
|
+
ResetItem(): void;
|
|
129
|
+
ClearItems(): void;
|
|
130
|
+
UnshiftToAll(item: import('../classes').FormFill): void;
|
|
131
|
+
Items(): import('../classes').FormFill[];
|
|
132
|
+
Count(): globalThis.Ref<number, number>;
|
|
133
|
+
};
|
|
134
|
+
FormSections: {
|
|
135
|
+
readonly items: import('../classes').FormSection[];
|
|
136
|
+
readonly item: import('../classes').FormSection;
|
|
137
|
+
count: globalThis.Ref<number, number>;
|
|
138
|
+
classConstructor: import('../../../services/ClassHelper').Constructable<import('../classes').FormSection>;
|
|
139
|
+
url: string;
|
|
140
|
+
Set(item: void | import('../classes').FormSection): void;
|
|
141
|
+
Item(): import('../classes').FormSection;
|
|
142
|
+
getUrl(query?: string | undefined): string;
|
|
143
|
+
GetAll(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
144
|
+
Get(id?: string | undefined): Promise<void>;
|
|
145
|
+
FTSP(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
146
|
+
Create(item?: import('../classes').FormSection | undefined): Promise<void | import('../classes').FormSection>;
|
|
147
|
+
CreateAndSet(item: import('../classes').FormSection): Promise<void>;
|
|
148
|
+
CreateMany(items?: import('../classes').FormSection[] | undefined): Promise<void>;
|
|
149
|
+
Update(item?: import('../classes').FormSection | undefined): Promise<void | import('../classes').FormSection>;
|
|
150
|
+
UpdateAndSet(item: import('../classes').FormSection): Promise<void>;
|
|
151
|
+
UpdateAndReset(item?: import('../classes').FormSection | undefined): Promise<void>;
|
|
152
|
+
Remove(id: string | undefined): Promise<void>;
|
|
153
|
+
UpdateMany(items?: import('../classes').FormSection[] | undefined): Promise<void>;
|
|
154
|
+
SetAll(items: import('../classes').FormSection[] | undefined): void;
|
|
155
|
+
SetAllWithCount(items?: import('../../../interfaces/ItemsWithCount').default<import('../classes').FormSection> | undefined): void;
|
|
156
|
+
RemoveItem(id: string): void;
|
|
157
|
+
AppendToAll(items?: import('../classes').FormSection[] | undefined): void;
|
|
158
|
+
ResetState(): void;
|
|
159
|
+
ResetItem(): void;
|
|
160
|
+
ClearItems(): void;
|
|
161
|
+
UnshiftToAll(item: import('../classes').FormSection): void;
|
|
162
|
+
Items(): import('../classes').FormSection[];
|
|
163
|
+
Count(): globalThis.Ref<number, number>;
|
|
164
|
+
};
|
|
165
|
+
Forms: {
|
|
166
|
+
readonly items: import('../classes').Form[];
|
|
167
|
+
readonly item: import('../classes').Form;
|
|
168
|
+
count: globalThis.Ref<number, number>;
|
|
169
|
+
classConstructor: import('../../../services/ClassHelper').Constructable<import('../classes').Form>;
|
|
170
|
+
url: string;
|
|
171
|
+
Set(item: void | import('../classes').Form): void;
|
|
172
|
+
Item(): import('../classes').Form;
|
|
173
|
+
getUrl(query?: string | undefined): string;
|
|
174
|
+
GetAll(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
175
|
+
Get(id?: string | undefined): Promise<void>;
|
|
176
|
+
FTSP(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
177
|
+
Create(item?: import('../classes').Form | undefined): Promise<void | import('../classes').Form>;
|
|
178
|
+
CreateAndSet(item: import('../classes').Form): Promise<void>;
|
|
179
|
+
CreateMany(items?: import('../classes').Form[] | undefined): Promise<void>;
|
|
180
|
+
Update(item?: import('../classes').Form | undefined): Promise<void | import('../classes').Form>;
|
|
181
|
+
UpdateAndSet(item: import('../classes').Form): Promise<void>;
|
|
182
|
+
UpdateAndReset(item?: import('../classes').Form | undefined): Promise<void>;
|
|
183
|
+
Remove(id: string | undefined): Promise<void>;
|
|
184
|
+
UpdateMany(items?: import('../classes').Form[] | undefined): Promise<void>;
|
|
185
|
+
SetAll(items: import('../classes').Form[] | undefined): void;
|
|
186
|
+
SetAllWithCount(items?: import('../../../interfaces/ItemsWithCount').default<import('../classes').Form> | undefined): void;
|
|
187
|
+
RemoveItem(id: string): void;
|
|
188
|
+
AppendToAll(items?: import('../classes').Form[] | undefined): void;
|
|
189
|
+
ResetState(): void;
|
|
190
|
+
ResetItem(): void;
|
|
191
|
+
ClearItems(): void;
|
|
192
|
+
UnshiftToAll(item: import('../classes').Form): void;
|
|
193
|
+
Items(): import('../classes').Form[];
|
|
194
|
+
Count(): globalThis.Ref<number, number>;
|
|
195
|
+
};
|
|
196
|
+
SelectedAnswerVariants: {
|
|
197
|
+
readonly items: import('../classes').SelectedAnswerVariant[];
|
|
198
|
+
readonly item: import('../classes').SelectedAnswerVariant;
|
|
199
|
+
count: globalThis.Ref<number, number>;
|
|
200
|
+
classConstructor: import('../../../services/ClassHelper').Constructable<import('../classes').SelectedAnswerVariant>;
|
|
201
|
+
url: string;
|
|
202
|
+
Set(item: void | import('../classes').SelectedAnswerVariant): void;
|
|
203
|
+
Item(): import('../classes').SelectedAnswerVariant;
|
|
204
|
+
getUrl(query?: string | undefined): string;
|
|
205
|
+
GetAll(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
206
|
+
Get(id?: string | undefined): Promise<void>;
|
|
207
|
+
FTSP(options?: import('../../../services/BaseStore').GetAllOptions | undefined): Promise<void>;
|
|
208
|
+
Create(item?: import('../classes').SelectedAnswerVariant | undefined): Promise<void | import('../classes').SelectedAnswerVariant>;
|
|
209
|
+
CreateAndSet(item: import('../classes').SelectedAnswerVariant): Promise<void>;
|
|
210
|
+
CreateMany(items?: import('../classes').SelectedAnswerVariant[] | undefined): Promise<void>;
|
|
211
|
+
Update(item?: import('../classes').SelectedAnswerVariant | undefined): Promise<void | import('../classes').SelectedAnswerVariant>;
|
|
212
|
+
UpdateAndSet(item: import('../classes').SelectedAnswerVariant): Promise<void>;
|
|
213
|
+
UpdateAndReset(item?: import('../classes').SelectedAnswerVariant | undefined): Promise<void>;
|
|
214
|
+
Remove(id: string | undefined): Promise<void>;
|
|
215
|
+
UpdateMany(items?: import('../classes').SelectedAnswerVariant[] | undefined): Promise<void>;
|
|
216
|
+
SetAll(items: import('../classes').SelectedAnswerVariant[] | undefined): void;
|
|
217
|
+
SetAllWithCount(items?: import('../../../interfaces/ItemsWithCount').default<import('../classes').SelectedAnswerVariant> | undefined): void;
|
|
218
|
+
RemoveItem(id: string): void;
|
|
219
|
+
AppendToAll(items?: import('../classes').SelectedAnswerVariant[] | undefined): void;
|
|
220
|
+
ResetState(): void;
|
|
221
|
+
ResetItem(): void;
|
|
222
|
+
ClearItems(): void;
|
|
223
|
+
UnshiftToAll(item: import('../classes').SelectedAnswerVariant): void;
|
|
224
|
+
Items(): import('../classes').SelectedAnswerVariant[];
|
|
225
|
+
Count(): globalThis.Ref<number, number>;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
10
228
|
export { m };
|
package/dist/sprof.js
CHANGED
package/dist/sprof.umd.cjs
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const o=new this(e);return n.forEach(r=>o.set(r)),o}static accessor(e){const o=(this[lr]=this[lr]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=Vt(a);o[c]||(vd(r,a),o[c]=!0)}return C.isArray(e)?e.forEach(s):s(e),this}}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(ye.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(o){this[n]=o}}}),C.freezeMethods(ye);function si(t,e){const n=this||At,o=e||n,r=ye.from(o.headers);let s=o.data;return C.forEach(t,function(c){s=c.call(n,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function cr(t){return!!(t&&t.__CANCEL__)}function ft(t,e,n){D.call(this,t??"canceled",D.ERR_CANCELED,e,n),this.name="CanceledError"}C.inherits(ft,D,{__CANCEL__:!0});function dr(t,e,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):e(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Md(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Bd(t,e){t=t||10;const n=new Array(t),o=new Array(t);let r=0,s=0,a;return e=e!==void 0?e:1e3,function(d){const u=Date.now(),h=o[s];a||(a=u),n[r]=d,o[r]=u;let f=s,p=0;for(;f!==r;)p+=n[f++],f=f%t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),u-a<e)return;const y=h&&u-h;return y?Math.round(p*1e3/y):void 0}}function Id(t,e){let n=0,o=1e3/e,r,s;const a=(u,h=Date.now())=>{n=h,r=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=o?a(u,h):(r=u,s||(s=setTimeout(()=>{s=null,a(r)},o-f)))},()=>r&&a(r)]}const mn=(t,e,n=3)=>{let o=0;const r=Bd(50,250);return Id(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=a-o,u=r(d),h=a<=c;o=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c&&h?(c-a)/u:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(f)},n)},ur=(t,e)=>{const n=t!=null;return[o=>e[0]({lengthComputable:n,total:t,loaded:o}),e[1]]},hr=t=>(...e)=>C.asap(()=>t(...e)),$d=ge.hasStandardBrowserEnv?function(){const e=ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent),n=document.createElement("a");let o;function r(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const c=C.isString(a)?r(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),xd=ge.hasStandardBrowserEnv?{write(t,e,n,o,r,s){const a=[t+"="+encodeURIComponent(e)];C.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),C.isString(o)&&a.push("path="+o),C.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nd(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Rd(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function fr(t,e){return t&&!Nd(e)?Rd(t,e):e}const mr=t=>t instanceof ye?{...t}:t;function Qe(t,e){e=e||{};const n={};function o(u,h,f){return C.isPlainObject(u)&&C.isPlainObject(h)?C.merge.call({caseless:f},u,h):C.isPlainObject(h)?C.merge({},h):C.isArray(h)?h.slice():h}function r(u,h,f){if(C.isUndefined(h)){if(!C.isUndefined(u))return o(void 0,u,f)}else return o(u,h,f)}function s(u,h){if(!C.isUndefined(h))return o(void 0,h)}function a(u,h){if(C.isUndefined(h)){if(!C.isUndefined(u))return o(void 0,u)}else return o(void 0,h)}function c(u,h,f){if(f in e)return o(u,h);if(f in t)return o(void 0,u)}const d={url:s,method:s,data:s,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:c,headers:(u,h)=>r(mr(u),mr(h),!0)};return C.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=d[h]||r,p=f(t[h],e[h],h);C.isUndefined(p)&&f!==c||(n[h]=p)}),n}const pr=t=>{const e=Qe({},t);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:c}=e;e.headers=a=ye.from(a),e.url=or(fr(e.baseURL,e.url),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let d;if(C.isFormData(n)){if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[u,...h]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(ge.hasStandardBrowserEnv&&(o&&C.isFunction(o)&&(o=o(e)),o||o!==!1&&$d(e.url))){const u=r&&s&&xd.read(s);u&&a.set(r,u)}return e},Ad=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,o){const r=pr(t);let s=r.data;const a=ye.from(r.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=r,h,f,p,y,g;function k(){y&&y(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,!0),b.timeout=r.timeout;function I(){if(!b)return;const O=ye.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),F={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:O,config:t,request:b};dr(function(Ie){n(Ie),k()},function(Ie){o(Ie),k()},F),b=null}"onloadend"in b?b.onloadend=I:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(I)},b.onabort=function(){b&&(o(new D("Request aborted",D.ECONNABORTED,t,b)),b=null)},b.onerror=function(){o(new D("Network Error",D.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let z=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const F=r.transitional||sr;r.timeoutErrorMessage&&(z=r.timeoutErrorMessage),o(new D(z,F.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,b)),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&C.forEach(a.toJSON(),function(z,F){b.setRequestHeader(F,z)}),C.isUndefined(r.withCredentials)||(b.withCredentials=!!r.withCredentials),c&&c!=="json"&&(b.responseType=r.responseType),u&&([p,g]=mn(u,!0),b.addEventListener("progress",p)),d&&b.upload&&([f,y]=mn(d),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(h=O=>{b&&(o(!O||O.type?new ft(null,t,b):O),b.abort(),b=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const L=Md(r.url);if(L&&ge.protocols.indexOf(L)===-1){o(new D("Unsupported protocol "+L+":",D.ERR_BAD_REQUEST,t));return}b.send(s||null)})},Vd=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let o=new AbortController,r;const s=function(u){if(!r){r=!0,c();const h=u instanceof Error?u:this.reason;o.abort(h instanceof D?h:new ft(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,s(new D(`timeout ${e} of ms exceeded`,D.ETIMEDOUT))},e);const c=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:d}=o;return d.unsubscribe=()=>C.asap(c),d}},Pd=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let o=0,r;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},Fd=async function*(t,e){for await(const n of Td(t))yield*Pd(n,e)},Td=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:o}=await e.read();if(n)break;yield o}}finally{await e.cancel()}},gr=(t,e,n,o)=>{const r=Fd(t,e);let s=0,a,c=d=>{a||(a=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:u,value:h}=await r.next();if(u){c(),d.close();return}let f=h.byteLength;if(n){let p=s+=f;n(p)}d.enqueue(new Uint8Array(h))}catch(u){throw c(u),u}},cancel(d){return c(d),r.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yr=pn&&typeof ReadableStream=="function",zd=pn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),wr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Dd=yr&&wr(()=>{let t=!1;const e=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),br=64*1024,ai=yr&&wr(()=>C.isReadableStream(new Response("").body)),gn={stream:ai&&(t=>t.body)};pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gn[e]&&(gn[e]=C.isFunction(t[e])?n=>n[e]():(n,o)=>{throw new D(`Response type '${e}' is not supported`,D.ERR_NOT_SUPPORT,o)})})})(new Response);const Ld=async t=>{if(t==null)return 0;if(C.isBlob(t))return t.size;if(C.isSpecCompliantForm(t))return(await new Request(ge.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(C.isArrayBufferView(t)||C.isArrayBuffer(t))return t.byteLength;if(C.isURLSearchParams(t)&&(t=t+""),C.isString(t))return(await zd(t)).byteLength},Od=async(t,e)=>{const n=C.toFiniteNumber(t.getContentLength());return n??Ld(e)},li={http:ad,xhr:Ad,fetch:pn&&(async t=>{let{url:e,method:n,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:d,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:p}=pr(t);u=u?(u+"").toLowerCase():"text";let y=Vd([r,s&&s.toAbortSignal()],a),g;const k=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let b;try{if(d&&Dd&&n!=="get"&&n!=="head"&&(b=await Od(h,o))!==0){let F=new Request(e,{method:"POST",body:o,duplex:"half"}),Ee;if(C.isFormData(o)&&(Ee=F.headers.get("content-type"))&&h.setContentType(Ee),F.body){const[Ie,Ze]=ur(b,mn(hr(d)));o=gr(F.body,br,Ie,Ze)}}C.isString(f)||(f=f?"include":"omit");const I="credentials"in Request.prototype;g=new Request(e,{...p,signal:y,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:o,duplex:"half",credentials:I?f:void 0});let L=await fetch(g);const O=ai&&(u==="stream"||u==="response");if(ai&&(c||O&&k)){const F={};["status","statusText","headers"].forEach(vt=>{F[vt]=L[vt]});const Ee=C.toFiniteNumber(L.headers.get("content-length")),[Ie,Ze]=c&&ur(Ee,mn(hr(c),!0))||[];L=new Response(gr(L.body,br,Ie,()=>{Ze&&Ze(),k&&k()}),F)}u=u||"text";let z=await gn[C.findKey(gn,u)||"text"](L,t);return!O&&k&&k(),await new Promise((F,Ee)=>{dr(F,Ee,{data:z,headers:ye.from(L.headers),status:L.status,statusText:L.statusText,config:t,request:g})})}catch(I){throw k&&k(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,t,g),{cause:I.cause||I}):D.from(I,I&&I.code,t,g)}})};C.forEach(li,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Sr=t=>`- ${t}`,_d=t=>C.isFunction(t)||t===null||t===!1,Cr={getAdapter:t=>{t=C.isArray(t)?t:[t];const{length:e}=t;let n,o;const r={};for(let s=0;s<e;s++){n=t[s];let a;if(o=n,!_d(n)&&(o=li[(a=String(n)).toLowerCase()],o===void 0))throw new D(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
|
|
21
21
|
`+s.map(Sr).join(`
|
|
22
22
|
`):" "+Sr(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:li};function ci(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ft(null,t)}function kr(t){return ci(t),t.headers=ye.from(t.headers),t.data=si.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Cr.getAdapter(t.adapter||At.adapter)(t).then(function(o){return ci(t),o.data=si.call(t,t.transformResponse,o),o.headers=ye.from(o.headers),o},function(o){return cr(o)||(ci(t),o&&o.response&&(o.response.data=si.call(t,t.transformResponse,o.response),o.response.headers=ye.from(o.response.headers))),Promise.reject(o)})}const Er="1.7.7",di={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{di[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});const vr={};di.transitional=function(e,n,o){function r(s,a){return"[Axios v"+Er+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,c)=>{if(e===!1)throw new D(r(a," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!vr[a]&&(vr[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,c):!0}};function Hd(t,e,n){if(typeof t!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let r=o.length;for(;r-- >0;){const s=o[r],a=e[s];if(a){const c=t[s],d=c===void 0||a(c,s,t);if(d!==!0)throw new D("option "+s+" must be "+d,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+s,D.ERR_BAD_OPTION)}}const ui={assertOptions:Hd,validators:di},Ue=ui.validators;class Ke{constructor(e){this.defaults=e,this.interceptors={request:new rr,response:new rr}}async request(e,n){try{return await this._request(e,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
23
|
-
`+s):o.stack=s}catch{}}throw o}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Qe(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:s}=n;o!==void 0&&ui.assertOptions(o,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1),r!=null&&(C.isFunction(r)?n.paramsSerializer={serialize:r}:ui.assertOptions(r,{encode:Ue.function,serialize:Ue.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&C.merge(s.common,s[n.method]);s&&C.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=ye.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(d=d&&k.synchronous,c.unshift(k.fulfilled,k.rejected))});const u=[];this.interceptors.response.forEach(function(k){u.push(k.fulfilled,k.rejected)});let h,f=0,p;if(!d){const g=[kr.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,u),p=g.length,h=Promise.resolve(n);f<p;)h=h.then(g[f++],g[f++]);return h}p=c.length;let y=n;for(f=0;f<p;){const g=c[f++],k=c[f++];try{y=g(y)}catch(b){k.call(this,b);break}}try{h=kr.call(this,y)}catch(g){return Promise.reject(g)}for(f=0,p=u.length;f<p;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=Qe(this.defaults,e);const n=fr(e.baseURL,e.url);return or(n,e.params,e.paramsSerializer)}}C.forEach(["delete","get","head","options"],function(e){Ke.prototype[e]=function(n,o){return this.request(Qe(o||{},{method:e,url:n,data:(o||{}).data}))}}),C.forEach(["post","put","patch"],function(e){function n(o){return function(s,a,c){return this.request(Qe(c||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Ke.prototype[e]=n(),Ke.prototype[e+"Form"]=n(!0)});class hi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(c=>{o.subscribe(c),s=c}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},e(function(s,a,c){o.reason||(o.reason=new ft(s,a,c),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=o=>{e.abort(o)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new hi(function(r){e=r}),cancel:e}}}function qd(t){return function(n){return t.apply(null,n)}}function Ud(t){return C.isObject(t)&&t.isAxiosError===!0}const fi={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(fi).forEach(([t,e])=>{fi[e]=t});function Mr(t){const e=new Ke(t),n=Ho(Ke.prototype.request,e);return C.extend(n,Ke.prototype,e,{allOwnKeys:!0}),C.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Mr(Qe(t,r))},n}const K=Mr(At);K.Axios=Ke,K.CanceledError=ft,K.CancelToken=hi,K.isCancel=cr,K.VERSION=Er,K.toFormData=hn,K.AxiosError=D,K.Cancel=K.CanceledError,K.all=function(e){return Promise.all(e)},K.spread=qd,K.isAxiosError=Ud,K.mergeConfig=Qe,K.AxiosHeaders=ye,K.formToJSON=t=>ar(C.isHTMLForm(t)?new FormData(t):t),K.getAdapter=Cr.getAdapter,K.HttpStatusCode=fi,K.default=K;var Pt=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(Pt||{});const Ft=(()=>{function t(){const d=r();return!(!d||d==="undefined")}function e(d){d.accessToken&&localStorage.setItem("access_token",d.accessToken),d.refreshToken&&localStorage.setItem("refresh_token",d.refreshToken)}function n(){const d=localStorage.getItem("user");return d?JSON.parse(d).id:""}function o(){const d=localStorage.getItem("user");if(d)return JSON.parse(d)}function r(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(d){if(!t())return;const u=Ft.getUser();u&&(u.human=d,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:r,getRefreshToken:s,getUserId:n,clearTokens:a,getUser:o,updateHuman:c}})();class mi{constructor(e){l(this,"code",400);l(this,"err","");v.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,n){const o=e.config;if(e.response){if(e.response.status===401&&!o._retry)return o._retry=!0,n.defaults.headers.common.token=Ft.getAccessToken(),e.config.headers.token=Ft.getAccessToken(),e.config.baseURL=void 0,n.request(o);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){R.Notification.Error("Неверный логин или пароль");return}R.Notification.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const r=new mi(e.response.data).getErr();r&&R.Notification.Error(r)}return Promise.reject(e)}}}const mt=K.create();mt.interceptors.response.use(t=>t,async t=>await mi.Handle(t,mt));class Tt{static async Get(e,n,o){return await mt({method:Pt.GET,url:e,headers:n,responseType:o})}static async Post(e,n,o,r){return n["Content-Type"]="multipart/form-data",await mt({method:Pt.POST,url:e,headers:n,responseType:o,data:r})}static async Put(e,n,o){return n["Content-Type"]="multipart/form-data",await mt({method:Pt.PUT,url:e,headers:n,data:o})}static async Delete(e,n){return await mt({method:Pt.DELETE,url:e,headers:n})}}var pi=(t=>(t.ContentType="Content-Type",t.Token="token",t))(pi||{}),Br=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(Br||{});const j=class j{static Setup(e,n,o){this.baseUrl=e,this.apiVersion=n,this.apiHost=o}static newWebSocket(e){const n=this.apiHost.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const o=j.getDownloadFileName(e,n.headers),r=URL.createObjectURL(n.data),s=document.createElement("a");s.href=r,s.setAttribute("download",o),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,n){if(e)return e;const o=n["content-disposition"],r=o.indexOf('"')+1,s=o.lastIndexOf('"'),a=o.substring(r,s);return a||"file"}static getHeaders(e){const n=$e.Get(ve.AccessToken);return e||(e=j.headers),n&&(e[pi.Token]=n),e??j.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?j.download(e.downloadFileName,n):n.data}static async Get(e){return j.returnResponse(e,await Tt.Get(j.buildUrl((e==null?void 0:e.query)??""),j.getHeaders(e==null?void 0:e.headers),j.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return j.returnResponse(e,await Tt.Post(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers),j.getResponseType(e.isBlob),j.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return j.returnResponse(e,await Tt.Put(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers),j.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return j.returnResponse(e,await Tt.Delete(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(j.buildUrl(n))}static buildUrl(e){const n=e??"";return this.baseUrl+this.apiVersion+n}static getResponseType(e){return e?"blob":"json"}static createFormDataPayload(e,n){const o=new FormData;if(o.append("form",JSON.stringify(e)),n)for(const r of n)r.file&&o.append(r.id??"files",r.file,r.originalName);return o}};l(j,"baseUrl",""),l(j,"apiVersion",""),l(j,"apiHost",""),l(j,"headers",{[pi.ContentType]:Br.ApplicationJson});let ae=j;class Y{constructor(e,n){l(this,"items",i.reactive([]));l(this,"item");l(this,"count",i.ref(0));l(this,"classConstructor");l(this,"url","");this.classConstructor=e,this.item=i.reactive(new this.classConstructor),this.url=n}Set(e){Object.assign(this.item,new this.classConstructor(e))}Item(){return this.item}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetAll(e){let n;const o=ae.Get;e&&e.withCache?n=await Cc.TryGet(this.getUrl(),o):n=await o({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}async Get(e){e||(e=ot.Id()),this.Set(await ae.Get({query:this.getUrl(e)}))}async FTSP(e){var a;const o=((e==null?void 0:e.ftsp)??ee.Get()).clearForHTTP(),r={payload:{ftsp:o},query:this.getUrl("ftsp")},s=await ae.Post(r);if(!(!s||!s.ftsp))if(Array.isArray(s.data))this.SetAll(s.data);else{if(o.p.append){this.AppendToAll((a=s.data)==null?void 0:a.items);return}this.SetAllWithCount(s.data)}}async Create(e){const n=e??this.item,o={payload:n,query:this.getUrl()};return n.getFileInfos&&(o.fileInfos=n.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await ae.Post(o)}async CreateAndSet(e){const n=await this.Create(e);this.Set(n)}async CreateMany(e){if(!e)return;const n=[];e.forEach(o=>{n.push(new Promise(()=>this.Create(o)))}),Promise.all(n)}async Update(e){const n=e??this.item,o={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(o.fileInfos=n.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await ae.Put(o)}async UpdateAndSet(e){const n=await this.Update(e);this.Set(n)}async UpdateAndReset(e){await this.Update(e??this.item),this.Set()}async Remove(e){if(!e){console.warn("BaseStore/Remove. id is undefined");return}await ae.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}async UpdateMany(e){if(e||(e=this.items),!e)return;const n=[];e.forEach(o=>{n.push(new Promise(()=>this.Update(o)))}),Promise.all(n)}SetAll(e){e&&(this.items.splice(0,this.items.length),this.items.push(...e.map(n=>new this.classConstructor(n))))}SetAllWithCount(e){e&&(this.SetAll(e.items),this.count.value=e.count)}RemoveItem(e){const n=this.items.findIndex(o=>o.id===e);this.items.splice(n,1)}AppendToAll(e){if(!e)return;const n=e.map(o=>new this.classConstructor(o));this.items.push(...n)}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){v.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){this.items.unshift(new this.classConstructor(e))}Items(){return this.items}Count(){return this.count}}let Wd=class extends Y{constructor(){super(Oo,"inns")}};const Gd=new Wd;let jd=class extends Y{constructor(){super(xt,"passport-scans")}};const Zd=new jd;let Yd=class extends Y{constructor(){super(Xn,"passports")}};const Jd=new Yd;let Xd=class extends Y{constructor(){super(_o,"snilss")}};const Qd=new Xd;class gi{constructor(e){l(this,"id");l(this,"name","");v.BuildClass(this,e)}static Create(e){const n=new gi;return n.id=v.CreateUUID(),n.name=e,n}}class zt{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");v.BuildClass(this,e)}static Create(e,n){const o=new zt;return o.id=v.CreateUUID(),o.name=e,o.label=n,o}}let Kd=class extends Y{constructor(){super(zt,"extracts")}};const eu=new Kd;class et{constructor(e){l(this,"id");l(this,"name","");l(this,"score",0);l(this,"order",0);l(this,"showMoreQuestions",!1);l(this,"showOther",!1);l(this,"fieldId");l(this,"isMatrixY",!1);v.BuildClass(this,e)}static Create(e){const n=new et;return n.id=v.CreateUUID(),n.fieldId=e,n}}class tu{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");v.BuildClass(this,e)}}class Ir{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);v.BuildClass(this,e)}}class Dt{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");v.BuildClass(this,e)}static Create(e){const n=new Dt;return n.id=v.CreateUUID(),n.fieldId=e,n}}var nu=Object.defineProperty,Lt=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&nu(e,n,r),r};const tt=class On{constructor(e){l(this,"id");l(this,"name","");l(this,"code","");l(this,"valueTypeId");l(this,"order",0);l(this,"ageCompare",!1);l(this,"answerVariants",[]);l(this,"answerVariantsForDelete",[]);l(this,"fieldExamples",[]);l(this,"fieldVariants",[]);l(this,"valueType",new Zn);l(this,"fieldMeasures",[]);l(this,"showSet",!1);l(this,"showRadio",!1);l(this,"isEdit",!1);l(this,"children",[]);l(this,"parentId");l(this,"formSectionId");l(this,"selected",!1);v.BuildClass(this,e),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(e=>!e.isMatrixY)}getMatrixY(){return this.answerVariants.filter(e=>e.isMatrixY)}static Create(e){const n=new On;return n.id=v.CreateUUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(o=>o.id===e);return n?n.name:""}addRadioItem(e){const n=new et(e);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(e){const n=this.answerVariants[e].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(e,1)}changeRelation(e){const n=e.find(o=>o.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,n)=>e.order=n)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new Ir(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new Dt)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(e){this.valueType=e,this.valueTypeId=e.id}setName(e){this.name=e}addAnswerVariant(){const e=et.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=On.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=Dt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new On(this);return e.id=v.CreateUUID(),e.answerVariants.forEach(n=>{n.id=v.CreateUUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const o=n.copy();return o.parentId=e.id,o}),e}};Lt([v.GetClassConstructor(et)],tt.prototype,"answerVariants"),Lt([v.GetClassConstructor(tu)],tt.prototype,"fieldExamples"),Lt([v.GetClassConstructor(Dt)],tt.prototype,"fieldVariants"),Lt([v.GetClassConstructor(Ir)],tt.prototype,"fieldMeasures"),Lt([v.GetClassConstructor(tt)],tt.prototype,"children");let yn=tt;class $r{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new X);v.BuildClass(this,e)}}class nt{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");v.BuildClass(this,e)}static Create(e,n){const o=new nt;return o.id=de(),o.fieldFillId=e,o.answerVariantId=n,o}static GetClassName(){return"selectedAnswerVariant"}}var iu=Object.defineProperty,xr=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&iu(e,n,r),r};const yi=class po{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new X);l(this,"fileInfoId");l(this,"order",0);l(this,"selectedAnswerVariants",[]);l(this,"patientId");l(this,"fieldId");l(this,"formFillId");l(this,"answerVariantId");l(this,"filled",!1);l(this,"researchResultId");l(this,"answerFiles",[]);l(this,"answerFilesForDelete",[]);v.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const o=new po;return o.id=de(),o.fieldId=e.id,o.formFillId=n,o.order=e.order,o.valueNumber=0,o.valueString="",o.valueDate=new Date,o}setString(e){this.valueString=e,this.filled=this.valueString.length>0}setNumber(e){this.valueNumber=e,this.filled=!0}setOther(e){this.valueOther=e,this.filled=this.valueOther.length>0}setDate(e){this.valueDate=e,this.filled=!0}setRadio(e){this.answerVariantId=e,this.filled=!!this.answerVariantId}static CreateMany(e,n){return e.map(o=>po.Create(o,n))}addFile(){const e=new $r;return e.id=de(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(n=>e.push(n.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,n){const o=nt.Create(this.id,e);return o.answerVariantIdY=n,this.selectedAnswerVariants.push(o),this.filled=!0,o}getMatrixValue(e,n){return this.selectedAnswerVariants.find(o=>o.answerVariantId===e&&o.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=nt.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(o=>o.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(o=>o.answerVariantId===n.id):!1}};xr([v.GetClassConstructor(nt)],yi.prototype,"selectedAnswerVariants"),xr([v.GetClassConstructor($r)],yi.prototype,"answerFiles");let pt=yi;var ou=Object.defineProperty,ru=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ou(e,n,r),r};const Nr=class ul{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");v.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,n){return`${this.getFieldN(e)}.${n+1}`}static Create(e){const n=new ul;return n.id=v.CreateUUID(),n.formId=e,n}addField(){const e=yn.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,n)=>e.order=n)}getAnswerVariants(){const e=[];return this.fields.forEach(n=>e.push(...n.answerVariants)),e}};ru([v.GetClassConstructor(yn)],Nr.prototype,"fields");let wn=Nr;var su=Object.defineProperty,au=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&su(e,n,r),r};const Rr=class hl{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"isLaboratory",!1);l(this,"formSections",[]);l(this,"isEdit",!1);l(this,"withDates",!1);l(this,"withScores",!1);l(this,"selectedForExport",!1);l(this,"filterString","");l(this,"showOnlyNotFilled",!1);l(this,"showOnlyFilled",!1);v.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new hl;return e.id=v.CreateUUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=wn.Create(this.id);return this.formSections.push(e),Ss.Sort(this.formSections),e}getFields(){const e=this.formSections.map(o=>o.fields).flat(),n=e.map(o=>o.children).flat();return e.concat(n).filter(o=>o.children.length===0)}};au([v.GetClassConstructor(wn)],Rr.prototype,"formSections");let Ar=Rr;var lu=Object.defineProperty,cu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&lu(e,n,r),r};const Vr=class fl{constructor(e){l(this,"id");l(this,"date",new Date);l(this,"editMode",!1);l(this,"userFormId");l(this,"fillingPercentage",0);l(this,"fieldFills",[]);l(this,"num","");l(this,"formId");v.BuildClass(this,e)}static Create(e){const n=new fl;return n.id=v.CreateUUID(),n.formId=e.id,n.fieldFills.push(...pt.CreateMany(e.getFields(),n.id)),n}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var n;return(n=this.fieldFills)==null?void 0:n.find(o=>o.fieldId===e)}pushRegisterProperty(e){const n=new pt;n.researchResultId=e,this.fieldFills.push(n)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(n=>n.researchResultId===e)}getOrCreateFieldFill(e){let n=this.getFieldFill(e.id);return n||(n=pt.Create(e),this.addFieldFill(n)),n}getFileInfos(){const e=[];return this.fieldFills.forEach(n=>e.push(...n.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(o=>o.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(e/n*100)}getFieldFillByFieldId(e){return this.fieldFills.find(n=>n.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(n=>n.fieldVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(o=>{var r;if(o.code){const s=(r=this.getFieldFillByFieldId(o.id))==null?void 0:r.valueNumber;n[o.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};cu([v.GetClassConstructor(pt)],Vr.prototype,"fieldFills");let Pr=Vr,du=class extends Y{constructor(){super(et,"answer-variants")}};const Fr=new du;let uu=class extends Y{constructor(){super(pt,"field-fills")}};const Tr=new uu;let hu=class extends Y{constructor(){super(yn,"fields")}};const zr=new hu;let fu=class extends Y{constructor(){super(Pr,"form-fills")}};const Dr=new fu;let mu=class extends Y{constructor(){super(wn,"form-sections")}};const Lr=new mu;let pu=class extends Y{constructor(){super(Ar,"forms")}};const Or=new pu;let gu=class extends Y{constructor(){super(nt,"selected-answer-variants")}};const _r=new gu,Hr={AnswerVariants:Fr,FieldFills:Tr,Fields:zr,FormFills:Dr,FormSections:Lr,Forms:Or,SelectedAnswerVariants:_r};let yu=class extends Y{constructor(){super(zt,"color-themes")}};const wu=new yu;class bu{constructor(){l(this,"form",new mc);l(this,"status",new wc);l(this,"modal",new pc)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}}const wi=new bu;class Su{constructor(){l(this,"title","");l(this,"buttons",[])}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const Cu=new Su;class ku{constructor(){l(this,"menu",[]);l(this,"path","");l(this,"isOpen",!0);l(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return q.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(o=>q.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var n;return this.filterString?(n=e.children)==null?void 0:n.filter(o=>q.SearchIn(o.name,this.filterString)):e.children}}const Eu=new ku;class vu{constructor(){l(this,"Menu",Eu);l(this,"Head",Cu)}}const qr=new vu;class Ur{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class Wr extends Ur{constructor(){super(...arguments);l(this,"type",ue.Success);l(this,"text","");l(this,"title","")}showMessage(n,o){this.hide(),this.type=o,typeof n=="string"?this.text=n:(this.text=n.text,this.title=n.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(n){this.showMessage(n,ue.Info)}Success(n){this.showMessage(n,ue.Success)}Error(n){this.showMessage(n,ue.Error)}Warning(n){this.showMessage(n,ue.Warning)}FormMessage(n){let o="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(n))n[r][0]&&n[r][0].message&&(o+=`<li>${n[r][0].message}</li>`);return o+="</ul>",o}}class Mu extends Wr{constructor(){super(...arguments);l(this,"confirmButtonText","Да");l(this,"cancelButtonText","Нет");l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){return super.show(),typeof n!="string"&&(this.confirmButtonText=n.confirmButtonText,this.cancelButtonText=n.cancelButtonText),new Promise((o,r)=>{this.resolve=o,this.reject=r})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const Gr=new Mu;class Bu extends Ur{Show(){super.show()}Hide(){super.hide()}}const jr=new Bu;class Ot{static Get(e,n,o="-"){return!e||!n?"":`${e}${o}${n}`}static In(e,n,o){return e>=n&&e<=o}static Intersects(e,n,o,r){return e===o||n===r||e>o&&e<r||n>o&&n<r||n>r&&e<o}}const Zr=1e3,Yr=60*Zr,bi=60*Yr;var _t=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(_t||{});const bn={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class _{static S(e){return Zr*e}static M(e){return Yr*e}static H(e){return bi*e}static D(e){return bi*e}static W(e){return bi*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=_.SplitHM(e);return n.length>1?_.HtoM(n[0])+n[1]:_.HtoM(n[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const n=e.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(e){const n=_.SplitHM(e);return _.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const o=new Date,r=_.SplitHM(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return _.ConcatHM(a,c)}static ConcatHM(e,n){return`${e}:${_.NormalizeTime(n)}`}static DiffM(e,n){return _.Gt(n,e)?_.HMtoM(n)-_.HMtoM(e):_.HMtoM(e)-_.HMtoM(n)}static GetPeriod(e,n){return Ot.Get(e,n)}static Gt(e,n){return _.HMtoM(e)>_.HMtoM(n)}static GtOrEq(e,n){return _.Gt(e,n)||_.Eq(e,n)}static Eq(e,n){return _.HMtoM(e)===_.HMtoM(n)}static PeriodInPeriod(e,n,o,r){return _.HMtoM(e)>=_.HMtoM(o)&&_.HMtoM(n)<=_.HMtoM(r)}static PeriodsIntersects(e,n,o,r){return Ot.Intersects(_.HMtoM(e),_.HMtoM(n),_.HMtoM(o),_.HMtoM(r))}}class Ht{static Wait(e,n){return new Promise(o=>setTimeout(()=>o(n),e))}static WaitS(e,n){return Ht.Wait(_.S(e),n)}static WaitM(e,n){return Ht.Wait(_.M(e),n)}}class Iu extends Wr{constructor(){super(...arguments);l(this,"duration",_.S(3))}showMessage(n,o){super.showMessage(n,o),typeof n!="string"&&(this.duration=n.duration??this.duration),Ht.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",o=ue.Warning;super.showMessage(n,o)}Save(){const n="Изменения успешно сохранены",o=ue.Success;super.showMessage(n,o)}}const Jr=new Iu;class $u{constructor(){l(this,"limit",25);l(this,"count",0);l(this,"curPage",1);l(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const Xr=new $u;class R{}l(R,"Auth",i.reactive(wi)),l(R,"AdminUI",i.reactive(qr)),l(R,"Dialog",i.reactive(Gr)),l(R,"Notification",i.reactive(Jr)),l(R,"Loading",i.reactive(jr)),l(R,"Paginator",i.reactive(Xr));function Qr(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:s=>{t.value&&s.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(s,a)=>{t.value&&!e.value?R.Dialog.Save().then(()=>{s(),a()}).catch(()=>{R.Notification.Warning("Изменения не были сохранены"),a()}):a()}}}const xu=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{var c;ee.Get().reset(),Fe.Set(a==null?void 0:a.sortsLib),ee.Get().setSortModel(Fe.GetDefault()),Fe.Set(a==null?void 0:a.sortsLib),ee.Get().setSortModel(Fe.GetDefault()),R.Paginator.storeModule=(c=a==null?void 0:a.pagination)==null?void 0:c.storeModule,await s()}),{saveButtonClick:e,showConfirmModal:n}=Qr(),o=s=>cc((a,c,d)=>{n((s||r)(),d)}),r=s=>async()=>{e.value=!0;try{s&&await s(),R.Notification.Success("Сохранено")}catch(a){R.Notification.Success("Что-то пошло не так. "+a);return}};return{onBeforeMount:t,onBeforeRouteLeave:o,submit:r}})(),Kr=["#31af5e","#ff4d3b","#006BB5","#f3911c"];function Nu(){return Kr[Math.floor(Math.random()*Kr.length)]}function Ru(t,e){const n=[2,0,1,1,1,2];return t.length+" "+e[t.length%100>4&&t.length%100<20?2:n[t.length%10<5?t.length%10:5]]}class Au{constructor(e){l(this,"name","");v.BuildClass(this,e)}cache(){}getFromCache(e){const n=sessionStorage.getItem(this.name);if(n){const o=JSON.parse(n),r=new Date,s=new Date(o.time),a=r.getTime()-s.getTime();return Math.round(a/6e4)>(e||10)?null:o.data}else return null}async storeGetWithCache(e,n){let o;return o=this.getFromCache(n),o||(o=await e(),o&&this.cache()),o}}function Vu(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const Pu=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Fu{static GetRandColor(e){return Ae.GetRandEL(e??Pu)}}function Tu(t){const e=t.filter(r=>r.rating!==0);let n=0;e.forEach(r=>n=n+r.rating);const o=n/e.length;return isNaN(o)?0:Number((n/e.length).toFixed(2))}let zu=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",_t.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",bn[_t.FiveMinutes])}startDrag(e,n){this.draggedStartTime=e,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=bn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ae.GenerateNumsRange(this.startHour,this.endHour)}};const Du=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"];class gt{constructor(e){l(this,"locale","ru-RU");this.locale=e??this.locale}format(e,n){if(!e)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(o.year=n.year||n.year===void 0?n.year:o.year,o.month=n.month||n.month===void 0?n.month:o.month,o.day=n.day||n.day===void 0?n.day:o.day,o.hour=n.hour??o.hour,o.minute=n.minute??o.minute),Intl.DateTimeFormat(this.locale,o).format(new Date(e))}getPeriod(e,n,o){return`${this.format(e,o)}-${this.format(n,o)}`}getShortDayName(e){return e?Du[e.getDay()]:""}getCurrentWeekPeriod(e){const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),r=new Date(n.getFullYear(),n.getMonth(),o.getDate()+7);return this.getPeriod(o,r,e||{month:"2-digit",day:"numeric",year:void 0})}getDurationInDay(e,n){const o=new Date,r=new Date,s=gt.SplitHourTime(e),a=gt.SplitHourTime(n);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(e){const n=gt.SplitHourTime(e);return n[0]*60+n[1]}static SplitHourTime(e){const n=e.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(e,n){const o=new Date,r=gt.SplitHourTime(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}getMonthsDiff(e,n){return n.getMonth()-e.getMonth()+12*(n.getFullYear()-e.getFullYear())}stringToDate(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}}const Si=t=>t===8||t===46,Lu=t=>t>46&&t<58,Ou=t=>t>34&&t<41,_u=t=>t+".",Hu=(t,e,n)=>{Si(e)||Ou(e)||(!Lu(e)||n>9)&&t.preventDefault()};function qu(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let o=t.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=t.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),t=n+"."+o+"."+r}return t}function Uu(t){const e=t.keyCode;let n=t.srcElement.value;const o=n.length;Hu(t,e,o),!Si(e)&&(o===2||o===5)&&(n=_u(n));const r=t.srcElement.value+String.fromCharCode(t.which);if(Si(e)){t.srcElement.value=n;return}n.length===0&&Number(r)>3&&(n="3",t.preventDefault()),n.length===1&&Number(r)>31&&(n="31",t.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=qu(n,o),t.srcElement.value=n}class Ci{static GetPeriod(e,n){return Ot.Get(Ve.Format(e),Ve.Format(n))}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,n,o){return Ot.In(new Date(e),new Date(n),new Date(o))}static GetDatesFromPeriod(e,n){const o=[new Date(e)];let r=e;for(;r<=n;)r=Ci.AddDays(r,1),o.push(r);return o}static AddDays(e,n){const o=new Date(e);return o.setDate(o.getDate()+n),o}static Eq(e,n){return e.getTime()===n.getTime()}}class Wu{constructor(){l(this,"dragged",!1);l(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class es{static Get(e){const n=e.split(".");return n[n.length-1]}}const Gu=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function n(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){t(s,[a]);return}const d=c.split(",");d.push(a),t(s,d)}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const d=c.split(",").filter(u=>u!==a);t(s,d)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:o,setFavourite:t,isFavourite:e,clearFavourite:r}})();function ts(t,e){const n=[];if(t)for(let o=0;o<Math.ceil(t.length/e);o++)n[o]=t.slice(o*e,o*e+e);return n}function ju(t,e){t[e].order=e-1,t[e-1]&&(t[e-1].order=e),[t[e],t[e-1]]=[t[e-1],t[e]]}function Zu(t,e){t[e].order=e+1,t[e+1]&&(t[e+1].order=e),[t[e],t[e+1]]=[t[e+1],t[e]]}let Yu=class{async Login(e){const n=e??R.Auth.Form.GetValues(),o=await ae.Post({query:"auth/login",payload:n});if(!o)throw R.Notification.Error("Ошибка авторизации"),"Ошибка авторизации";R.Auth.Status.SetState(o)}async LoginAs(e){if(!await ae.Post({query:"auth/login-as",payload:{email:e}})){R.Notification.Error("Ошибка авторизации");return}}async Register(){}async RestorePassword(){}async passwordChange(){await ae.Put({query:"auth/password-change"})}async RefreshToken(){await ae.Post({query:"auth/refresh-token",payload:{refreshToken:Ft.getRefreshToken()}})}async CheckUuid(e){await ae.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}};const ns=new Yu;let Ju=class extends Y{constructor(){super(dt,"contacts")}};const is=new Ju;let Xu=class extends Y{constructor(){super(Ye,"emails")}};const ki=new Xu;let Qu=class extends Y{constructor(){super(X,"file-infos")}};const os=new Qu;class Ei{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");v.BuildClass(this,e)}static Create(e){const n=new Ei;return n.id=v.CreateUUID(),n.ftsp=JSON.stringify(e),n}}let Ku=class extends Y{constructor(){super(Ei,"ftsp-presets")}};const rs=new Ku;let eh=class extends Y{constructor(){super(jn,"humans")}};const ss=new eh;class as{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new X);l(this,"scanId");e&&(this.id=e==null?void 0:e.id,this.name=e.name,this.order=e.order,this.downloadToFile=e.downloadToFile,this.pageSectionId=e.pageSectionId,e.scan&&(this.scan=new X(e.scan)),this.scanId=e.scanId)}getFileInfos(){return[this.scan]}uploadScan(e){return this.scan.id||(this.scan.id=de()),this.scan.originalName=e.name,this.scan.file=e.raw,this.scan.fileSystemPath=de(),this.scan.url=e.url,this.scan}getFileName(){return this.name?this.name:this.scan.originalName}}class th{constructor(e){l(this,"id");l(this,"documentType",new it);l(this,"documentTypeId");l(this,"order",0);v.BuildClass(this,e)}getFileInfos(){const e=[];return e.push(...this.documentType.getFileInfos()),e}}var nh=Object.defineProperty,ls=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&nh(e,n,r),r};class it{constructor(e){l(this,"id");l(this,"name","");l(this,"singleScan",!1);l(this,"scan");l(this,"scanId");l(this,"order",0);l(this,"description","");l(this,"scans",[]);l(this,"scansForDelete",[]);l(this,"pageSectionDocuments",[]);l(this,"pageSectionDocumentsForDelete",[]);l(this,"pageSectionImages",[]);l(this,"pageSectionImagesForDelete",[]);l(this,"pageSideMenuId");l(this,"pageId");l(this,"text","");l(this,"documents",[]);v.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new as;e.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(e)}getFileInfos(){const e=[];return this.pageSectionDocuments.forEach(n=>{e.push(...n.getFileInfos())}),e}infoExists(e){const n=q.SearchIn(this.name,e),o=q.SearchIn(this.description,e),r=this.getDocuments(e);return n||o||r.length>0}getDocuments(e){return this.pageSectionDocuments.filter(n=>q.SearchIn(n.name,e))}getDescription(e){return e?q.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=q.SearchIn(this.description,e)?q.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(n=>q.SearchIn(n.name,e))}}ls([v.GetClassConstructor(as)],it.prototype,"pageSectionDocuments"),ls([v.GetClassConstructor(th)],it.prototype,"pageSectionImages");class ih{constructor(e){l(this,"id");l(this,"document",new it);l(this,"documentId");l(this,"pageId");v.BuildClass(this,e)}static GetFileInfos(e){const n=[];return e.forEach(o=>{const r=o.document.scan;r&&n.push(r)}),n}}var oh=Object.defineProperty,rh=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&oh(e,n,r),r};class cs{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");v.BuildClass(this,e)}}rh([v.GetClassConstructor(X)],cs.prototype,"fileInfo");var sh=Object.defineProperty,ah=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&sh(e,n,r),r};class yt{constructor(e){l(this,"id");l(this,"name","Новое меню");l(this,"order",0);l(this,"description","");l(this,"routeAnchor","");l(this,"slug","");l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"showContent",!1);l(this,"pageId");l(this,"selected",!1);l(this,"sections",[]);l(this,"text","");v.BuildClass(this,e),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const e=[];return this.pageSections.forEach(n=>{e.push(...n.getFileInfos())}),e}addPageSection(){const e=new it;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=de(),this.pageSections.push(e)}infoExists(e){const n=q.SearchIn(this.name,e),o=q.SearchIn(this.description,e),r=this.getPageSections(e).length>0;return n||o||r}getPageSections(e){return e.length?this.pageSections.filter(n=>n.infoExists(e)):this.pageSections}filter(e){e.length?(this.sections=this.pageSections.filter(n=>n.infoExists(e)),this.text=q.SearchIn(this.description,e)?q.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(e))}}ah([v.GetClassConstructor(it)],yt.prototype,"pageSections");var ds=(t=>(t.User="USER",t.Admin="ADMIN",t))(ds||{});class lh{constructor(e){l(this,"id");l(this,"name",ds.User);l(this,"label","");l(this,"startPage","");v.BuildClass(this,e)}}var ch=Object.defineProperty,Sn=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ch(e,n,r),r};class wt{constructor(e){l(this,"id");l(this,"title","");l(this,"content","");l(this,"slug","");l(this,"pagesGroup","Без группы");l(this,"link","");l(this,"withComments",!1);l(this,"showContacts",!1);l(this,"collaps",!1);l(this,"showContent",!1);l(this,"pageImages",[]);l(this,"pageImagesForDelete",[]);l(this,"pageImagesNames",[]);l(this,"pageSideMenus",[]);l(this,"menus",[]);l(this,"pageSideMenusForDelete",[]);l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"pageDocuments",[]);l(this,"contact",new dt);l(this,"contactId");l(this,"role",new lh);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");v.BuildClass(this,e),this.menus=this.pageSideMenus}getActiveMenu(){const e=this.pageSideMenus.find(n=>n.id===this.activeMenuId);return e||this.pageSideMenus[0]}setActiveMenuId(e){this.activeMenuId=e}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const e=[];return this.pageSideMenus.forEach(n=>{e.push(...n.getFileInfos())}),this.pageDocuments.forEach(n=>{n.document.scan&&e.push(n.document.scan)}),this.pageImages.forEach(n=>{n.fileInfo&&e.push(n.fileInfo)}),e}addSideMenu(){const e=new yt;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=de(),this.pageSideMenus.push(e),e.id}selectSideMenu(e,n){if(!e&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(o=>{n?o.selected=o.id===e:o.selected=o.slug===e})}getSelectedSideMenu(){const e=this.pageSideMenus.find(n=>n.selected);return e||new yt}addCustomSectionsToSideMenu(e){e.forEach(n=>{const o=new yt;o.id=n.id,o.name=n.name,typeof n.order<"u"?this.pageSideMenus.splice(n.order,0,o):this.pageSideMenus.push(o)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(e=>e.id==="contacts")){const e=new yt;e.id="contacts",e.name="Контакты",this.pageSideMenus.push(e)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(e=>e.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(e=>e.infoExists(this.filterStr)),this.menus.forEach(e=>e.filter(this.filterStr))}static GetClassName(){return"page"}}Sn([v.GetClassConstructor(cs)],wt.prototype,"pageImages"),Sn([v.GetClassConstructor(yt)],wt.prototype,"pageSideMenus"),Sn([v.GetClassConstructor(it)],wt.prototype,"pageSections"),Sn([v.GetClassConstructor(ih)],wt.prototype,"pageDocuments");class us{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"selected",!1);l(this,"hide",!1);l(this,"editMode",!1);l(this,"color","");l(this,"background","");l(this,"page",new wt);l(this,"pageId");l(this,"order",0);l(this,"menuId");l(this,"iconId");l(this,"icon",new X);l(this,"iconName","");l(this,"svgCode","");v.BuildClass(this,e)}getLink(){return this.isLink()&&!this.isPageLink()?this.link:!this.isLink()&&this.isPageLink()?this.page.getLink():""}isLink(){return this.link!==""}isPageLink(){return this.pageId!==void 0&&this.pageId!==""}addFile(e){this.icon.id||(this.icon.id=de()),this.icon.originalName=e.name,this.icon.file=e.raw}}var dh=Object.defineProperty,uh=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&dh(e,n,r),r};class hs{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"top",!0);l(this,"side",!0);l(this,"show",!1);l(this,"hide",!1);l(this,"active",!1);l(this,"order",0);l(this,"selected",!1);l(this,"editMode",!1);l(this,"page",new wt);l(this,"pageId");l(this,"subMenus",[]);l(this,"subMenusForDelete",[]);l(this,"iconId");l(this,"icon",new X);v.BuildClass(this,e)}getLink(){return this.isLink()&&!this.isPageLink()?this.link:!this.isLink()&&this.isPageLink()?this.page.getLink():""}withoutChildren(){return this.subMenus.length===0}isLink(){return this.link!==""}isPageLink(){return!!this.pageId&&this.pageId!==""}getFileInfos(){const e=[];return e.push(this.icon),this.subMenus.forEach(n=>{e.push(n.icon)}),e}addFile(e){this.icon.id||(this.icon.id=de()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new us)}removeSubMenu(e){const n=this.subMenus[e].id;n&&this.subMenusForDelete.push(n),this.subMenus.splice(e,1)}setColorsForSubMenus(){const e=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let n=0;this.subMenus.forEach(o=>{o.color=e[n],n=e.length-1?n=0:n++})}containPath(e){return this.getLink()===e||!!this.subMenus.find(n=>n.getLink()===e)}static GetClassName(){return"menu"}}uh([v.GetClassConstructor(us)],hs.prototype,"subMenus");let hh=class extends Y{constructor(){super(hs,"menus")}};const fs=new hh;let fh=class extends Y{constructor(){super(ct,"phones")}};const vi=new fh;class mh{constructor(e){l(this,"id");l(this,"nameRus","");v.BuildClass(this,e)}}var ph=Object.defineProperty,gh=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ph(e,n,r),r};class ms{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);v.BuildClass(this,e)}}gh([v.GetClassConstructor(mh)],ms.prototype,"fields");let yh=class extends Y{constructor(){super(ms,"schemas")}};const ps=new yh;class gs{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);v.BuildClass(this,e)}}class wh{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");v.BuildClass(this,e)}}var bh=Object.defineProperty,ys=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&bh(e,n,r),r};class bt{constructor(e){l(this,"id");l(this,"key","");l(this,"label","");l(this,"order",0);l(this,"route","");l(this,"table","");l(this,"active",!0);l(this,"searchColumn","");l(this,"descriptionColumn","");l(this,"labelColumn","");l(this,"valueColumn","");l(this,"options",[]);l(this,"searchGroupMetaColumns",[]);v.BuildClass(this,e)}}ys([v.GetClassConstructor(gs)],bt.prototype,"options"),ys([v.GetClassConstructor(wh)],bt.prototype,"searchGroupMetaColumns");class Mi{constructor(e){l(this,"query","");l(this,"key","");l(this,"params","");l(this,"suggester",!1);l(this,"mustBeTranslated",!0);l(this,"options",[]);l(this,"searchGroupId","");l(this,"searchGroups",[]);l(this,"searchGroup",new bt);l(this,"searchObjects",[]);l(this,"pagination",new en);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new bt(n))),e.searchGroup&&(this.searchGroup=new bt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new gs(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(o=>o.id===e);n?this.searchGroup=n:this.searchGroup=new bt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(ot.Route().query.groupId)}setQuery(){const e=ot.Route().query.query;e&&(this.query=e)}}let Sh=class{constructor(){l(this,"isSearchDrawerOpen",i.ref(!1));l(this,"searchModel",i.reactive(new Mi));l(this,"searchGroups",i.reactive([]));l(this,"count",0)}async Search(e){const n=await ae.Get({query:`?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(o=>{e.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(e){this.SetSearchModel(await ae.Get({query:`/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(o=>{o.options=[]});const n=await ae.Get({query:`main?searchModel=${e.toUrl()}`});this.SetSearchModel(n)}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new Mi}SetSearchModel(e){e&&(this.searchModel=new Mi(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const Cn=new Sh;class Bi{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");v.BuildClass(this,e)}static Create(){const e=new Bi;return e.id=v.CreateUUID(),e}}let Ch=class extends Y{constructor(){super(Bi,"users-accounts")}};const ws=new Ch;let kh=class extends Y{constructor(){super(Zn,"value-types")}};const bs=new kh;class kn{constructor(){l(this,"Auth",ns);l(this,"Contacts",is);l(this,"Emails",ki);l(this,"FileInfos",os);l(this,"FTSPPresets",rs);l(this,"Humans",ss);l(this,"Menus",fs);l(this,"Phones",vi);l(this,"Schemas",ps);l(this,"Search",Cn);l(this,"UserAccounts",ws);l(this,"ValueTypes",bs)}static Extend(e){for(const n in e)Object.defineProperties(kn,{key:e[n]})}}kn.Extend(Hr);class We{}l(We,"Auth",i.reactive(wi)),l(We,"AdminUI",i.reactive(qr)),l(We,"Dialog",i.reactive(Gr)),l(We,"Notification",i.reactive(Jr)),l(We,"Loading",i.reactive(jr)),l(We,"Paginator",i.reactive(Xr)),l(We,"Store",kn);const zn=class zn{static Format(e){let n=e;if(!n)e=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const o=n.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:e="";break;case(r===1&&n.length===1&&o==="7"):case(r===1&&n.length===1&&o==="8"):e="+7 (";break;case r<4:e=`+7 (${o}`;break;case r<7:e=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};l(zn,"validatePhone",(e,n,o)=>{zn.getPhoneRegExp().test(n)||!n?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let Ii=zn;const Eh=[{path:"/",redirect:"/login"},{path:"/login",component:()=>Promise.resolve().then(()=>Vm),meta:{layout:"LoginLayout"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>Promise.resolve().then(()=>zm)}],je=class je{static SetRouter(e){this.router=e,this.AddRoutes(Eh)}static GetRouter(){return this.router}static AddRoutes(e){e.forEach(n=>{this.GetRouter().addRoute(n)})}static async To(e){R.Loading.Show(),await this.GetRouter().push(e),R.Loading.Hide()}static async ToHome(){R.Loading.Show(),R.Loading.Hide()}static async Replace(e){await this.GetRouter().replace(e)}static Id(){return je.GetStringParam("id")}static Slug(){return je.GetStringParam("slug")}static async Back(){R.Loading.Show(),this.GetRouter().go(-1),R.Loading.Hide()}static GetQid(){return je.GetStringQueryParam("qid")}static Route(){return this.GetRouter().currentRoute.value}static RouterPushBlank(e){const n=this.GetRouter().resolve({path:e});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const e=(n=je.Route())==null?void 0:n.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.GetRouter().push("/admin");return}let n=e;n[0]==="/"&&(n=e.substring(1)),await je.To(`/admin/${n}`)}static GetStringQueryParam(e){return String(this.Route().query[e])}static GetNumberQueryParam(e){return Number(this.Route().query[e]??0)}static GetStringParam(e){return this.Route().params[e]}static Resolve(e){return this.GetRouter().resolve(e)}};l(je,"router");let ot=je;class vh{static async Auth(e){e&&e()}static Dev(){}}class Mh{constructor(){l(this,"startHour",9);l(this,"startHM",`${this.startHour}:00`);l(this,"endHour",19);l(this,"endHM",`${this.endHour}:00`);l(this,"timelinePxHeight",50);l(this,"timelineStep",_t.FiveMinutes);l(this,"timelines",bn[_t.FiveMinutes])}periodIsCorrect(e,n){return _.GtOrEq(e,this.startHM)&&_.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=bn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ae.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,o,r){return r.filter(s=>s.id!==o).every(s=>!_.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,o)=>_.HMtoM(n.startTime)-_.HMtoM(o.startTime))}}const Bh=-68;function Ih(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),o=e??Bh;let r=0;n&&(r=n.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class Ss{static Sort(e){e.forEach((n,o)=>n.order=o)}}class $i{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l($i,"staticUrl","");function $h(t,e){let n=!0;return t.value.validate((o,r)=>(o||(e?R.Notification.Error("Пожалуйста, проверьте правильность введенных данных"):R.Notification.Error(R.Notification.FormMessage(r)),n=!1),n)),n}const xh=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const n=new MutationObserver(()=>{document.querySelector(t)&&(n.disconnect(),e(document.querySelector(t)))});n.observe(document.body,{childList:!0,subtree:!0})});class En{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");v.BuildClass(this,e)}static Create(e,n,o,r){const s=new En;return s.id=de(),s.chatId=e,s.message=o,s.userName=r,s}static CreatePingMessage(){const e=new En;return e.type="ping",e.id=de(),e}isMessage(){return this.type==="message"||this.type===""}}const Nh="";class Rh{constructor(e="",n="",o="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);v.BuildClass(this,{endpoint:e,query:n,mutation:o}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(En.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Nh.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}const xi=i.defineComponent({__name:"PInputDate",props:i.mergeModels({placeholder:{type:String,default:"Укажите дату"},width:{type:String,required:!1,default:"auto"},margin:{type:String,required:!1,default:""},label:{type:String,default:"",required:!1}},{modelValue:{default:new Date},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(t,{emit:e}){const n=e,o=i.useModel(t,"modelValue"),r=Ve.Format(o.value),s=i.ref(r),a=d=>{if(!c(d))return;const u=Ve.FromRuStr(d);o.value=u,n("beforeChange",u),n("change",u)},c=d=>d.length!=10?(s.value=r,R.Notification.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=r,R.Notification.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=r,R.Notification.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=r,R.Notification.Error("Неверный год"),!1):!0;return(d,u)=>{const h=qe;return i.openBlock(),i.createElementBlock("div",{class:"style-container",style:i.normalizeStyle({width:t.width,position:"relative"})},[i.createVNode(h,{modelValue:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(s)?s.value=f:null),mask:"##.##.####",placeholder:t.placeholder,margin:t.margin,label:t.label,onBlur:a,onKeydown:i.withKeys(i.withModifiers(f=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Ah={class:"number"},Cs=M(i.defineComponent({__name:"PInputNumber",props:{modelValue:{type:Number,required:!0,default:0}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.modelValue??0),s=()=>{r.value++,o("update:modelValue",r.value),o("change")},a=()=>{r.value--,o("update:modelValue",r.value),o("change")},c=()=>{o("update:modelValue",r.value),o("change")};return(d,u)=>(i.openBlock(),i.createElementBlock("div",Ah,[i.createElementVNode("button",{class:"number-minus",type:"button",onClick:a},u[1]||(u[1]=[i.createElementVNode("svg",{class:"icon-minus"},[i.createElementVNode("use",{"xlink:href":"#minus"})],-1)])),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=h=>i.isRef(r)?r.value=h:null),class:"input-field",type:"number",min:"0",step:"0.1",onInput:c},null,544),[[i.vModelText,i.unref(r)]]),i.createElementVNode("button",{class:"number-plus",type:"button",onClick:s},u[2]||(u[2]=[i.createElementVNode("svg",{class:"icon-plus"},[i.createElementVNode("use",{"xlink:href":"#plus"})],-1)]))]))}}),[["__scopeId","data-v-f53b6419"]]),Vh=["innerHTML"],Ph={key:1},we=M(i.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"var(--font-color)"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(t){const e=t,n={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,background:e.background,padding:e.padding,width:e.width,maxWidth:e.width,minWidth:e.minWidth,margin:e.margin,justifyContent:e.justifyContent};return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:r[0]||(r[0]=s=>o.$emit("click"))},[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,Vh)):(i.openBlock(),i.createElementBlock("span",Ph,i.toDisplayString(t.string),1))],2))}}),[["__scopeId","data-v-bd8f6c8f"]]),ks=M(i.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.shift?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({minWidth:t.widthClosed,maxWidth:t.widthClosed})},null,4)),i.createElementVNode("div",{class:"LS-body",style:i.normalizeStyle({marginLeft:i.unref(r)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute",background:t.background})},[i.createElementVNode("div",{class:"LS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed})`})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed}),onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-3ea7497e"]]),Es=M(i.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-84953e34"]]),vs=M(i.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("li",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-4cb3c766"]]),Fh=["for"],Th=["id","name","checked","value"],Ms=M(i.defineComponent({__name:"PRadio",props:i.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:"14px"},size:{type:String,default:"20px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=e,r=t,s=q.CreateGuid(),a=i.computed(()=>n.value===r.value),c=()=>{o("change",r.value)};return(d,u)=>(i.openBlock(),i.createElementBlock("div",{class:"radio-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"radio-field__label",for:i.unref(s),style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{id:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),name:t.name,checked:i.unref(a),class:"radio-field__input",type:"radio",value:t.value},null,8,Th),[[i.vModelRadio,n.value]]),i.createElementVNode("div",{class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius}),onClick:c},[n.value===t.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"radio-dot",style:i.normalizeStyle({width:`calc(${t.size} - 50%)`,height:`calc(${t.size} - 50%)`})},null,4)):i.createCommentVNode("",!0)],4),i.createElementVNode("span",{onClick:c},i.toDisplayString(t.label),1)],12,Fh)],4))}}),[["__scopeId","data-v-a8f68add"]]),zh={class:"wrapper"},Dh={class:"content"},Bs=M(i.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock("div",zh,[i.createElementVNode("div",Dh,[i.renderSlot(a.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",{class:"RS-body",style:i.normalizeStyle({marginRight:i.unref(r)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute"})},[i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed}),onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4),i.createElementVNode("div",{class:"RS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed} - 2px)`,background:t.background})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)])}}}),[["__scopeId","data-v-6f8cc35c"]]),Ni=M(i.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[i.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-db435ef1"]]),qt=M(i.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[i.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-8d8cfcf1"]]),Lh=["for"],Oh={class:"field"},_h={class:"left-field"},Hh={class:"arrow"},qh={selected:"",hidden:""},Uh={class:"right-field"},rt=M(i.defineComponent({inheritAttrs:!1,__name:"PSelect",props:i.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=i.ref(!0),r=e,s=i.ref(!1),a=()=>{o.value=!1,r("change",n.value)},c=()=>{r("clear",void 0),r("change",void 0),o.value=!0};return(d,u)=>{const h=Ni;return i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Lh)):i.createCommentVNode("",!0),i.createElementVNode("div",Oh,[i.createElementVNode("div",_h,[i.renderSlot(d.$slots,"left",{},void 0,!0)]),i.createElementVNode("div",{class:"sl",onMouseover:u[1]||(u[1]=f=>s.value=!0),onMouseleave:u[2]||(u[2]=f=>s.value=!1)},[t.clearable?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"clear",onClick:c},[i.createVNode(qt,{margin:"0"})],512)),[[i.vShow,i.unref(s)]]):i.createCommentVNode("",!0),i.createElementVNode("div",Hh,[i.createVNode(h,{margin:"2px 2px 0 0"})]),i.withDirectives(i.createElementVNode("select",i.mergeProps(d.$attrs,{"onUpdate:modelValue":u[0]||(u[0]=f=>n.value=f),class:"text-field__input",onChange:a}),[i.createElementVNode("option",qh,i.toDisplayString(t.placeholder),1),i.renderSlot(d.$slots,"default",{},void 0,!0)],16),[[i.vModelSelect,n.value]])],32),i.createElementVNode("div",Uh,[i.renderSlot(d.$slots,"right",{},void 0,!0)])])],4)}}}),[["__scopeId","data-v-eab44241"]]),vn=M(i.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"sticky-block",style:i.normalizeStyle({zIndex:1+t.zIndex,top:t.top,background:t.background,padding:t.padding,boxShadow:t.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-db44b76d"]]),Wh=["for"],Gh={class:"left-field"},jh={class:"right-field"},Is=M(i.defineComponent({__name:"PTextarea",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue");return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Wh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Gh,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps(n.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>e.value=r),class:"text-field__input",style:{color:t.color},onBlur:o[1]||(o[1]=r=>n.$emit("blur",e.value)),onInput:o[2]||(o[2]=r=>n.$emit("input",e.value))}),null,16),[[i.vModelText,e.value],[i.unref(Io),t.mask]]),i.createElementVNode("div",jh,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-172b61e5"]]),Zh={class:"top-slider-content"},Yh={class:"center"},$s=M(i.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>r.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(r)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Zh,[i.createElementVNode("div",Yh,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:c[2]||(c[2]=d=>s(!i.unref(r)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-12ffd2e2"]]),Ut=M(i.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(t,{emit:e}){const n=t,o=e,r=a=>{a.key==="Escape"&&s()};i.onMounted(()=>{document.body.addEventListener("keydown",r)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",r)});const s=()=>{n.closable&&o("close")};return(a,c)=>{const d=qt;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:s})):i.createCommentVNode("",!0),t.show?(i.openBlock(),i.createElementBlock("div",{key:1,class:"modal-w",style:i.normalizeStyle({maxWidth:t.width,width:t.width,margin:t.margin,padding:t.padding,top:t.top})},[t.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[i.createVNode(d,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-41f0eae5"]]),Jh={class:"btn-group"},Mn=M(i.defineComponent({__name:"AuthForm",props:{width:{type:String,default:"300px"},margin:{type:String,default:"auto"},padding:{type:String,default:"60px 100px"}},emits:["submit"],setup(t,{emit:e}){const n=R.Auth.Form,o=i.ref(!1),r=e,s=i.computed(()=>n.GetButtons()),a=async c=>{await R.Auth.Form.Block(async()=>{if(!c.submit)return n.SetStatus(c.GetStatus());const d=n.Validate();if(d.length>0){R.Notification.Error(d.join(", "));return}r("submit")})};return i.onBeforeUnmount(()=>{n.Reset()}),(c,d)=>{const u=qe,h=pe;return i.openBlock(),i.createElementBlock("div",{class:"auth-card",style:i.normalizeStyle({width:t.width,margin:t.margin,padding:t.padding})},[i.createElementVNode("div",null,i.toDisplayString(("PHelp"in c?c.PHelp:i.unref(R)).Auth.Form.GetTitle()),1),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(("PHelp"in c?c.PHelp:i.unref(R)).Auth.Form.GetFields(),f=>(i.openBlock(),i.createBlock(u,{id:f.id,key:f,modelValue:f.value,"onUpdate:modelValue":p=>f.value=p,placeholder:f.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","placeholder"]))),128)),i.createVNode(h,{type:"primary",skin:"text_ano",text:"Забыли пароль?",width:"124px",margin:"0 0 0 5px"}),i.createElementVNode("div",Jh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),f=>(i.openBlock(),i.createBlock(h,{id:f.id,key:f.GetStatus(),disabled:i.unref(o),type:"primary",skin:"base",text:f.text,color:f.submit?"blue":"grey",margin:"10px 0 0 0",width:"100%",height:"52px",onClick:p=>a(f)},null,8,["id","disabled","text","color","onClick"]))),128))])])],4)}}}),[["__scopeId","data-v-e716ebe9"]]),xs=i.defineComponent({__name:"AuthModal",emits:["submit"],setup(t){const e=()=>{R.Auth.Form.Reset(),R.Auth.Modal.Close()};return(n,o)=>{const r=Mn,s=Ut;return i.openBlock(),i.createBlock(s,{show:("PHelp"in n?n.PHelp:i.unref(R)).Auth.Modal.IsVisible(),closable:("PHelp"in n?n.PHelp:i.unref(R)).Auth.Modal.IsClosable(),onClose:e},{default:i.withCtx(()=>[i.createVNode(r,{width:"760px",onAction:o[0]||(o[0]=a=>n.$emit("submit"))})]),_:1},8,["show","closable"])}}}),Wt=M(i.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(t){return i.useCssVars(e=>({59355408:t.maxWidth,"24aaa640":t.width,"0833ce18":t.background,"65d0bfaa":t.gridGap,"2373d8d7":t.gridTemplateColumns,ea2919c2:t.gridTemplateRows,"5f2f1c74":t.margin})),(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["grid-block",t.customClass])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-352a1099"]]);var Oe=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(Oe||{});const Xh={class:"container"},Qh={class:"slide-box"},Kh={class:"link-number"},ef=["id","onClick"],Ns=M(i.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(t){i.useCssVars(y=>({"17adb052":n}));const e=t,n=`${e.animationTime}ms`,o=i.ref(e.startActiveGroupIndex),r=i.ref(Oe.None),s=i.ref(ts(e.events,e.quantity)),a=i.computed(()=>s.value[o.value]);i.onMounted(()=>{});const c=()=>o.value=o.value+1<s.value.length?o.value+1:0,d=()=>o.value=o.value-1<0?s.value.length-1:o.value-1,u=y=>{r.value=y,setTimeout(()=>r.value=Oe.None,e.animationTime)},h=y=>{y!=o.value&&(u(y<o.value?Oe.Prev:Oe.Next),setTimeout(()=>o.value=y,e.animationTime/2))},f=()=>{u(Oe.Next),setTimeout(c,e.animationTime/2)},p=()=>{u(Oe.Prev),setTimeout(d,e.animationTime/2)};return(y,g)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",Xh,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:g[0]||(g[0]=i.withModifiers(k=>p(),["stop"]))},g[2]||(g[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),i.createElementVNode("div",Qh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(k,b)=>(i.openBlock(),i.createElementBlock("div",{key:b,class:i.normalizeClass({animationnext:i.unref(r)===i.unref(Oe).Next,animationprev:i.unref(r)===i.unref(Oe).Prev})},g[3]||(g[3]=[i.createElementVNode("div",{class:"image"},[i.createElementVNode("div",{class:"image-box"})],-1)]),2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:g[1]||(g[1]=i.withModifiers(k=>f(),["stop"]))},g[4]||(g[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),i.createElementVNode("div",Kh,[i.createVNode(Wt,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(k,b)=>(i.openBlock(),i.createElementBlock("div",{id:b.toString(),key:b,class:"number",style:i.normalizeStyle({background:b.toString()===i.unref(o).toString()?"#9D9D9D":""}),onClick:i.withModifiers(I=>h(b),["stop"])},i.toDisplayString(b+1),13,ef))),128))]),_:1})])],4))}}),[["__scopeId","data-v-3493284a"]]);class Bn{constructor(e){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"store","");v.BuildClass(this,e)}static CreateCropper(e,n,o){const r=new Bn;return r.src=e,r.id=o,n&&(r.ratio=n),r}}let tf=class{constructor(){l(this,"cropper",new Bn)}Open(e){this.cropper=e}Cropper(){return this.cropper}Ratio(){return this.cropper.ratio}};const Ri=new tf,Ai=M(i.defineComponent({__name:"EmailForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{ki.Update(e.value)};return(o,r)=>{const s=qe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.address,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.address=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-bbe15030"]]),Vi=M(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{await vi.Update(e.value)};return(o,r)=>{const s=qe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-9d94e007"]]),nf={key:0,class:"contact-container"},of={class:"bottom-buttons"},rf={class:"list-number"},sf={class:"bottom-buttons"},af={class:"list-number"},Rs=M(i.defineComponent({__name:"ContactForm",props:i.mergeModels({full:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{},o=async a=>{e.value.removeEmail(a)},r=async()=>{},s=async a=>{e.value.removePhone(a)};return(a,c)=>{const d=qe,u=pe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.full?(i.openBlock(),i.createElementBlock("div",nf,[i.createVNode(d,{modelValue:e.value.description,"onUpdate:modelValue":c[0]||(c[0]=h=>e.value.description=h),label:"Описание"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.time,"onUpdate:modelValue":c[1]||(c[1]=h=>e.value.time=h),label:"Время работы"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.latitude,"onUpdate:modelValue":c[2]||(c[2]=h=>e.value.latitude=h),label:"Широта (для карты)"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.longitude,"onUpdate:modelValue":c[3]||(c[3]=h=>e.value.longitude=h),label:"Долгота (для карты)"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"contact-container",style:i.normalizeStyle({background:e.value.phones.length?"":"#F9FAFB"})},[i.createElementVNode("div",of,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({color:e.value.phones.length?"#303133":"#c4c4c4"})},"Телефоны",4),i.createVNode(u,{class:"admin-add",text:"+ Добавить",onClick:c[4]||(c[4]=h=>r())})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.value.phones,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:h.id,class:"contact-container-item"},[i.createVNode(u,{class:"admin-del",text:"Удалить",onClick:p=>s(h.id)},null,8,["onClick"]),i.createElementVNode("div",rf,i.toDisplayString(f+1),1),i.createVNode(Vi,{modelValue:e.value.phones[f],"onUpdate:modelValue":p=>e.value.phones[f]=p},null,8,["modelValue","onUpdate:modelValue"])]))),128))],4),i.createElementVNode("div",{class:"contact-container",style:i.normalizeStyle({background:e.value.emails.length?"":"#F9FAFB"})},[i.createElementVNode("div",sf,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({color:e.value.emails.length?"#303133":"#c4c4c4"})},"Электронная почта",4),i.createVNode(u,{class:"admin-add",text:"+ Добавить",onClick:c[5]||(c[5]=h=>n())})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.value.emails,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:h.id,class:"contact-container-item"},[i.createVNode(u,{class:"admin-del",text:"Удалить",onClick:p=>o(h.id)},null,8,["onClick"]),i.createElementVNode("div",af,i.toDisplayString(f+1),1),i.createVNode(Ai,{modelValue:e.value.emails[f],"onUpdate:modelValue":p=>e.value.emails[f]=p},null,8,["modelValue","onUpdate:modelValue"])]))),128))],4)],64)}}}),[["__scopeId","data-v-5abf9c52"]]),As=i.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.x),s=i.ref(n.y),a=i.computed(()=>r.value+"px"),c=i.computed(()=>s.value+"px"),d=()=>{o("close")};return(u,h)=>{const f=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"context-window",style:i.normalizeStyle({left:i.unref(a),top:i.unref(c)})},[i.renderSlot(u.$slots,"default")],4)),[[f,d]])}}}),lf={class:"date-range"},Vs=M(i.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(t,{emit:e}){const n=t,o=e;i.watch(()=>[n.start,n.end],()=>{n.start||(r.value=void 0),n.end||(s.value=void 0)});const r=i.ref(n.start),s=i.ref(n.end),a=d=>{if(r.value=d,!n.end||d>n.end){R.Notification.Warning("Дата начала больше даты окончания");return}o("update:start",d),o("setStart",d)},c=d=>{if(s.value=d,!n.start||d<n.start){R.Notification.Warning("Дата начала больше даты окончания");return}o("update:end",d),o("setEnd",d)};return(d,u)=>{const h=xi;return i.openBlock(),i.createElementBlock("div",lf,[i.createVNode(h,{"model-value":i.unref(r),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(r)?r.value=f:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=i.createTextVNode(" - ")),i.createVNode(h,{"model-value":i.unref(s),"onUpdate:modelValue":u[1]||(u[1]=f=>i.isRef(s)?s.value=f:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-aac32b2f"]]),cf=i.defineComponent({name:"DateInputRangeV2"}),df={class:"date-range"};function uf(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",df,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ps=M(cf,[["render",uf],["__scopeId","data-v-80580591"]]),hf={class:"drop-item"},ff={key:0,class:"drop-item-list"},Fs=M(i.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(t){const e=t,n=i.ref(e.rolledUp),o=async()=>{n.value=!n.value};return(r,s)=>{const a=we,c=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",hf,[i.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=d=>o())},[i.createVNode(a,{"font-size":"13px","font-weight":"600",string:t.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),i.createElementVNode("div",{style:i.normalizeStyle({transform:i.unref(n)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[i.createVNode(c,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",ff,[i.renderSlot(r.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-75ec18f4"]]),Ts=M(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Gn,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,o=i.ref(!1),r=e,s=()=>{n.model.setBoolean(o.value),o.value?ee.Get().setF(n.model):ee.Get().removeF(n.model),r("load")};return(a,c)=>{const d=qn;return i.openBlock(),i.createBlock(d,{modelValue:i.unref(o),"onUpdate:modelValue":c[0]||(c[0]=u=>i.isRef(o)?o.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-ae33ede2"]]),mf={key:0,class:"blur"},pf={style:{display:"flex","justify-content":"center"}},st=M(i.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"#1979CF"},borderColor:{type:String,required:!1,default:"#E3E3E3"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(t,{emit:e}){const n=t,o=e,r=n.customClass!==""?n.customClass:"inside-class",s=i.ref(!1),a=i.ref(!1),c=i.ref(!1),d=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=z=>{z.stopPropagation(),z.key==="Escape"&&(n.showSaveDialog?c.value=!0:a.value=!1)};i.watch(a,async()=>{var z,F;await i.nextTick(),a.value?((F=(z=document.getElementById("info-item-opened-content"))==null?void 0:z.querySelector("input"))==null||F.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&o("after-close")});const h=()=>{o("click"),a.value=!!n.withOpenWindow,d.value!==n.close&&(a.value=!1,d.value=!d.value)},f=i.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),p=i.computed(()=>a.value&&n.withOpenWindow),y=i.computed(()=>({background:n.background?n.background:void 0,zIndex:p.value?"2":"0",padding:p.value?"0":n.padding,margin:n.margin,width:p.value?n.openWidth:n.width,height:p.value?n.openHeight:n.height,minHeight:"40px",maxWidth:n.maxWidth,minWidth:n.minWidth,borderColor:s.value||a.value?n.colorSelected:n.borderColor,color:s.value?n.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:p.value?"end":"center",cursor:(n.withHover,"pointer")})),g=i.computed(()=>({height:p.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),k=i.computed(()=>({height:p.value?"auto":"0"})),b=i.computed(()=>({color:s.value?n.colorSelected:"#343E5C",fill:s.value?n.colorSelected:"#343E5C",background:n.background})),I=()=>{n.showSaveDialog?c.value=!0:a.value=!1},L=async()=>{await o("keyup-enter"),n.close&&(a.value=!1),c.value=!1},O=()=>{a.value=!1,c.value=!1};return(z,F)=>{const Ee=we,Ie=pe,Ze=Ut,vt=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",mf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:F[2]||(F[2]=i.withModifiers(Dn=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(r)]),style:i.normalizeStyle(i.unref(y)),onMouseenter:F[0]||(F[0]=Dn=>t.withHover?s.value=!0:s.value=!1),onMouseleave:F[1]||(F[1]=Dn=>s.value=!1)},[i.unref(a)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["close-window",t.customClass]),style:i.normalizeStyle(i.unref(g))},[i.renderSlot(z.$slots,"default",{},void 0,!0)],6)),i.unref(a)?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:i.normalizeStyle(i.unref(k))},[i.renderSlot(z.$slots,"open-inside-content",{},void 0,!0)],4)),[[vt,I,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(b))},[i.renderSlot(z.$slots,"title",{},()=>[i.createVNode(Ee,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:i.normalizeStyle({color:i.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),i.createVNode(Ze,{show:i.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",pf,[i.createVNode(Ie,{text:"Не сохранять",onClick:O}),i.createVNode(Ie,{text:"Сохранять",onClick:L})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-4788a262"]]),zs=M(i.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,o=i.ref(void 0),r=async a=>{ee.Get().replaceF(a,o.value),o.value=a,ee.Get().p.drop()},s=async a=>{await r(a),n("load")};return(a,c)=>{const d=we,u=pe,h=Wt,f=st;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:t.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),i.createVNode(f,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:i.withCtx(()=>c[0]||(c[0]=[])),default:i.withCtx(()=>[i.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(p,y)=>(i.openBlock(),i.createBlock(u,{key:y,color:"blue",height:"auto",text:p.label,"is-toggle":p.valueEq(i.unref(o)),"toggle-mode":!0,inverse:t.inverse,onClick:g=>s(p.valueEq(i.unref(o))?void 0:p)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-04775fc7"]]),gf=["value","label"],Ds=M(i.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,o=ee.Get(),r=i.ref(void 0),s=async c=>{o.replaceF(c,r.value),r.value=c},a=async c=>{c?await s(r.value):await s(void 0),n("load")};return(c,d)=>{const u=rt;return i.openBlock(),i.createBlock(u,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(r)?r.value=h:null),clearable:i.unref(r),placeholder:t.defaultLabel,onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:h,label:h.label},null,8,gf))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ea2463cc"]]),Ls=M(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-a4a3cc13"]]),Os=M(i.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"#ffffff"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"10px"},borderColor:{type:String,required:!1,default:"#343D5C"},margin:{type:String,required:!1,default:"5px"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"14px"},withIcon:{type:Boolean,required:!1,default:!1}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"general-block-item",style:i.normalizeStyle({background:t.background,height:t.height,width:t.width,borderColor:t.borderColor,padding:t.padding,margin:t.margin,transform:t.scale&&i.unref(e)?"scale(1.03, 1.03)":""}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[i.createElementVNode("div",{class:"green",style:i.normalizeStyle({width:`${t.ready}`})},null,4),i.createElementVNode("div",{class:"general-block-item-title",style:i.normalizeStyle({fontSize:t.fontSize})},[i.renderSlot(n.$slots,"general-item",{},void 0,!0)],4),i.createElementVNode("div",{class:"tools-icon",style:i.normalizeStyle({display:t.withIcon?"flex":"none"})},o[2]||(o[2]=[i.createElementVNode("svg",{class:"icon-del"},[i.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[i.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-d7e51e08"]]),Pi=M(i.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),i.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-40934683"]]),Fi=M(i.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),i.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-496ff188"]]),_s=M(i.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[i.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-11a9207f"]]),Hs=M(i.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#edit"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-74cd505c"]]),qs=M(i.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#email"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-b89c9521"]]),Us=M(i.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[i.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-47aba5d0"]]),Ws=M(i.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#phone"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cb2db6a7"]]),Ti=M(i.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#search"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1b900a88"]]),zi=M(i.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-31d7e282"]]),Di=M(i.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-ac346343"]]),Li=M(i.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-646afc45"]]),Oi=M(i.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-ef44f40e"]]),_i=M(i.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),o[3]||(o[3]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1c5f4e97><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1c5f4e97><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-1c5f4e97></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-1c5f4e97></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-1c5f4e97></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1c5f4e97"]]);function Gs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gs(Object(n),!0).forEach(function(o){Me(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Me(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yf(t,e){if(t==null)return{};var n,o,r=function(a,c){if(a==null)return{};var d,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)d=f[u],c.indexOf(d)>=0||(h[d]=a[d]);return h}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function at(t){return function(e){if(Array.isArray(e))return Hi(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return Hi(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Hi(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
+
`+s):o.stack=s}catch{}}throw o}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Qe(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:s}=n;o!==void 0&&ui.assertOptions(o,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1),r!=null&&(C.isFunction(r)?n.paramsSerializer={serialize:r}:ui.assertOptions(r,{encode:Ue.function,serialize:Ue.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&C.merge(s.common,s[n.method]);s&&C.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=ye.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(d=d&&k.synchronous,c.unshift(k.fulfilled,k.rejected))});const u=[];this.interceptors.response.forEach(function(k){u.push(k.fulfilled,k.rejected)});let h,f=0,p;if(!d){const g=[kr.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,u),p=g.length,h=Promise.resolve(n);f<p;)h=h.then(g[f++],g[f++]);return h}p=c.length;let y=n;for(f=0;f<p;){const g=c[f++],k=c[f++];try{y=g(y)}catch(b){k.call(this,b);break}}try{h=kr.call(this,y)}catch(g){return Promise.reject(g)}for(f=0,p=u.length;f<p;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=Qe(this.defaults,e);const n=fr(e.baseURL,e.url);return or(n,e.params,e.paramsSerializer)}}C.forEach(["delete","get","head","options"],function(e){Ke.prototype[e]=function(n,o){return this.request(Qe(o||{},{method:e,url:n,data:(o||{}).data}))}}),C.forEach(["post","put","patch"],function(e){function n(o){return function(s,a,c){return this.request(Qe(c||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Ke.prototype[e]=n(),Ke.prototype[e+"Form"]=n(!0)});class hi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(c=>{o.subscribe(c),s=c}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},e(function(s,a,c){o.reason||(o.reason=new ft(s,a,c),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=o=>{e.abort(o)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new hi(function(r){e=r}),cancel:e}}}function qd(t){return function(n){return t.apply(null,n)}}function Ud(t){return C.isObject(t)&&t.isAxiosError===!0}const fi={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(fi).forEach(([t,e])=>{fi[e]=t});function Mr(t){const e=new Ke(t),n=Ho(Ke.prototype.request,e);return C.extend(n,Ke.prototype,e,{allOwnKeys:!0}),C.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Mr(Qe(t,r))},n}const K=Mr(At);K.Axios=Ke,K.CanceledError=ft,K.CancelToken=hi,K.isCancel=cr,K.VERSION=Er,K.toFormData=hn,K.AxiosError=D,K.Cancel=K.CanceledError,K.all=function(e){return Promise.all(e)},K.spread=qd,K.isAxiosError=Ud,K.mergeConfig=Qe,K.AxiosHeaders=ye,K.formToJSON=t=>ar(C.isHTMLForm(t)?new FormData(t):t),K.getAdapter=Cr.getAdapter,K.HttpStatusCode=fi,K.default=K;var Pt=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(Pt||{});const Ft=(()=>{function t(){const d=r();return!(!d||d==="undefined")}function e(d){d.accessToken&&localStorage.setItem("access_token",d.accessToken),d.refreshToken&&localStorage.setItem("refresh_token",d.refreshToken)}function n(){const d=localStorage.getItem("user");return d?JSON.parse(d).id:""}function o(){const d=localStorage.getItem("user");if(d)return JSON.parse(d)}function r(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(d){if(!t())return;const u=Ft.getUser();u&&(u.human=d,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:r,getRefreshToken:s,getUserId:n,clearTokens:a,getUser:o,updateHuman:c}})();class mi{constructor(e){l(this,"code",400);l(this,"err","");v.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,n){const o=e.config;if(e.response){if(e.response.status===401&&!o._retry)return o._retry=!0,n.defaults.headers.common.token=Ft.getAccessToken(),e.config.headers.token=Ft.getAccessToken(),e.config.baseURL=void 0,n.request(o);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){R.Notification.Error("Неверный логин или пароль");return}R.Notification.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const r=new mi(e.response.data).getErr();r&&R.Notification.Error(r)}return Promise.reject(e)}}}const mt=K.create();mt.interceptors.response.use(t=>t,async t=>await mi.Handle(t,mt));class Tt{static async Get(e,n,o){return await mt({method:Pt.GET,url:e,headers:n,responseType:o})}static async Post(e,n,o,r){return n["Content-Type"]="multipart/form-data",await mt({method:Pt.POST,url:e,headers:n,responseType:o,data:r})}static async Put(e,n,o){return n["Content-Type"]="multipart/form-data",await mt({method:Pt.PUT,url:e,headers:n,data:o})}static async Delete(e,n){return await mt({method:Pt.DELETE,url:e,headers:n})}}var pi=(t=>(t.ContentType="Content-Type",t.Token="token",t))(pi||{}),Br=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(Br||{});const j=class j{static Setup(e,n,o){this.baseUrl=e,this.apiVersion=n,this.apiHost=o}static newWebSocket(e){const n=this.apiHost.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const o=j.getDownloadFileName(e,n.headers),r=URL.createObjectURL(n.data),s=document.createElement("a");s.href=r,s.setAttribute("download",o),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,n){if(e)return e;const o=n["content-disposition"],r=o.indexOf('"')+1,s=o.lastIndexOf('"'),a=o.substring(r,s);return a||"file"}static getHeaders(e){const n=$e.Get(ve.AccessToken);return e||(e=j.headers),n&&(e[pi.Token]=n),e??j.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?j.download(e.downloadFileName,n):n.data}static async Get(e){return j.returnResponse(e,await Tt.Get(j.buildUrl((e==null?void 0:e.query)??""),j.getHeaders(e==null?void 0:e.headers),j.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return j.returnResponse(e,await Tt.Post(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers),j.getResponseType(e.isBlob),j.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return j.returnResponse(e,await Tt.Put(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers),j.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return j.returnResponse(e,await Tt.Delete(j.buildUrl(e==null?void 0:e.query),j.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(j.buildUrl(n))}static buildUrl(e){const n=e??"";return this.baseUrl+this.apiVersion+n}static getResponseType(e){return e?"blob":"json"}static createFormDataPayload(e,n){const o=new FormData;if(o.append("form",JSON.stringify(e)),n)for(const r of n)r.file&&o.append(r.id??"files",r.file,r.originalName);return o}};l(j,"baseUrl",""),l(j,"apiVersion",""),l(j,"apiHost",""),l(j,"headers",{[pi.ContentType]:Br.ApplicationJson});let ae=j;class Y{constructor(e,n){l(this,"items",i.reactive([]));l(this,"item");l(this,"count",i.ref(0));l(this,"classConstructor");l(this,"url","");this.classConstructor=e,this.item=i.reactive(new this.classConstructor),this.url=n}Set(e){Object.assign(this.item,new this.classConstructor(e))}Item(){return this.item}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetAll(e){let n;const o=ae.Get;e&&e.withCache?n=await Cc.TryGet(this.getUrl(),o):n=await o({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}async Get(e){e||(e=ot.Id()),this.Set(await ae.Get({query:this.getUrl(e)}))}async FTSP(e){var a;const o=((e==null?void 0:e.ftsp)??ee.Get()).clearForHTTP(),r={payload:{ftsp:o},query:this.getUrl("ftsp")},s=await ae.Post(r);if(!(!s||!s.ftsp))if(Array.isArray(s.data))this.SetAll(s.data);else{if(o.p.append){this.AppendToAll((a=s.data)==null?void 0:a.items);return}this.SetAllWithCount(s.data)}}async Create(e){const n=e??this.item,o={payload:n,query:this.getUrl()};return n.getFileInfos&&(o.fileInfos=n.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await ae.Post(o)}async CreateAndSet(e){const n=await this.Create(e);this.Set(n)}async CreateMany(e){if(!e)return;const n=[];e.forEach(o=>{n.push(new Promise(()=>this.Create(o)))}),Promise.all(n)}async Update(e){const n=e??this.item,o={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(o.fileInfos=n.getFileInfos(),o.fileInfos.forEach(r=>r.url="")),await ae.Put(o)}async UpdateAndSet(e){const n=await this.Update(e);this.Set(n)}async UpdateAndReset(e){await this.Update(e??this.item),this.Set()}async Remove(e){if(!e){console.warn("BaseStore/Remove. id is undefined");return}await ae.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}async UpdateMany(e){if(e||(e=this.items),!e)return;const n=[];e.forEach(o=>{n.push(new Promise(()=>this.Update(o)))}),Promise.all(n)}SetAll(e){e&&(this.items.splice(0,this.items.length),this.items.push(...e.map(n=>new this.classConstructor(n))))}SetAllWithCount(e){e&&(this.SetAll(e.items),this.count.value=e.count)}RemoveItem(e){const n=this.items.findIndex(o=>o.id===e);this.items.splice(n,1)}AppendToAll(e){if(!e)return;const n=e.map(o=>new this.classConstructor(o));this.items.push(...n)}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){v.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){this.items.unshift(new this.classConstructor(e))}Items(){return this.items}Count(){return this.count}}let Wd=class extends Y{constructor(){super(Oo,"inns")}};const Gd=new Wd;let jd=class extends Y{constructor(){super(xt,"passport-scans")}};const Zd=new jd;let Yd=class extends Y{constructor(){super(Xn,"passports")}};const Jd=new Yd;let Xd=class extends Y{constructor(){super(_o,"snilss")}};const Qd=new Xd;class gi{constructor(e){l(this,"id");l(this,"name","");v.BuildClass(this,e)}static Create(e){const n=new gi;return n.id=v.CreateUUID(),n.name=e,n}}class zt{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");v.BuildClass(this,e)}static Create(e,n){const o=new zt;return o.id=v.CreateUUID(),o.name=e,o.label=n,o}}let Kd=class extends Y{constructor(){super(zt,"extracts")}};const eu=new Kd;class et{constructor(e){l(this,"id");l(this,"name","");l(this,"score",0);l(this,"order",0);l(this,"showMoreQuestions",!1);l(this,"showOther",!1);l(this,"fieldId");l(this,"isMatrixY",!1);v.BuildClass(this,e)}static Create(e){const n=new et;return n.id=v.CreateUUID(),n.fieldId=e,n}}class tu{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");v.BuildClass(this,e)}}class Ir{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);v.BuildClass(this,e)}}class Dt{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");v.BuildClass(this,e)}static Create(e){const n=new Dt;return n.id=v.CreateUUID(),n.fieldId=e,n}}var nu=Object.defineProperty,Lt=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&nu(e,n,r),r};const tt=class On{constructor(e){l(this,"id");l(this,"name","");l(this,"code","");l(this,"valueTypeId");l(this,"order",0);l(this,"ageCompare",!1);l(this,"answerVariants",[]);l(this,"answerVariantsForDelete",[]);l(this,"fieldExamples",[]);l(this,"fieldVariants",[]);l(this,"valueType",new Zn);l(this,"fieldMeasures",[]);l(this,"showSet",!1);l(this,"showRadio",!1);l(this,"isEdit",!1);l(this,"children",[]);l(this,"parentId");l(this,"formSectionId");l(this,"selected",!1);v.BuildClass(this,e),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(e=>!e.isMatrixY)}getMatrixY(){return this.answerVariants.filter(e=>e.isMatrixY)}static Create(e){const n=new On;return n.id=v.CreateUUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(o=>o.id===e);return n?n.name:""}addRadioItem(e){const n=new et(e);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(e){const n=this.answerVariants[e].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(e,1)}changeRelation(e){const n=e.find(o=>o.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,n)=>e.order=n)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new Ir(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new Dt)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(e){this.valueType=e,this.valueTypeId=e.id}setName(e){this.name=e}addAnswerVariant(){const e=et.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=On.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=Dt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new On(this);return e.id=v.CreateUUID(),e.answerVariants.forEach(n=>{n.id=v.CreateUUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const o=n.copy();return o.parentId=e.id,o}),e}};Lt([v.GetClassConstructor(et)],tt.prototype,"answerVariants"),Lt([v.GetClassConstructor(tu)],tt.prototype,"fieldExamples"),Lt([v.GetClassConstructor(Dt)],tt.prototype,"fieldVariants"),Lt([v.GetClassConstructor(Ir)],tt.prototype,"fieldMeasures"),Lt([v.GetClassConstructor(tt)],tt.prototype,"children");let yn=tt;class $r{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new X);v.BuildClass(this,e)}}class nt{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");v.BuildClass(this,e)}static Create(e,n){const o=new nt;return o.id=de(),o.fieldFillId=e,o.answerVariantId=n,o}static GetClassName(){return"selectedAnswerVariant"}}var iu=Object.defineProperty,xr=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&iu(e,n,r),r};const yi=class po{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new X);l(this,"fileInfoId");l(this,"order",0);l(this,"selectedAnswerVariants",[]);l(this,"patientId");l(this,"fieldId");l(this,"formFillId");l(this,"answerVariantId");l(this,"filled",!1);l(this,"researchResultId");l(this,"answerFiles",[]);l(this,"answerFilesForDelete",[]);v.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const o=new po;return o.id=de(),o.fieldId=e.id,o.formFillId=n,o.order=e.order,o.valueNumber=0,o.valueString="",o.valueDate=new Date,o}setString(e){this.valueString=e,this.filled=this.valueString.length>0}setNumber(e){this.valueNumber=e,this.filled=!0}setOther(e){this.valueOther=e,this.filled=this.valueOther.length>0}setDate(e){this.valueDate=e,this.filled=!0}setRadio(e){this.answerVariantId=e,this.filled=!!this.answerVariantId}static CreateMany(e,n){return e.map(o=>po.Create(o,n))}addFile(){const e=new $r;return e.id=de(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(n=>e.push(n.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,n){const o=nt.Create(this.id,e);return o.answerVariantIdY=n,this.selectedAnswerVariants.push(o),this.filled=!0,o}getMatrixValue(e,n){return this.selectedAnswerVariants.find(o=>o.answerVariantId===e&&o.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=nt.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(o=>o.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(o=>o.answerVariantId===n.id):!1}};xr([v.GetClassConstructor(nt)],yi.prototype,"selectedAnswerVariants"),xr([v.GetClassConstructor($r)],yi.prototype,"answerFiles");let pt=yi;var ou=Object.defineProperty,ru=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ou(e,n,r),r};const Nr=class ul{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");v.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,n){return`${this.getFieldN(e)}.${n+1}`}static Create(e){const n=new ul;return n.id=v.CreateUUID(),n.formId=e,n}addField(){const e=yn.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,n)=>e.order=n)}getAnswerVariants(){const e=[];return this.fields.forEach(n=>e.push(...n.answerVariants)),e}};ru([v.GetClassConstructor(yn)],Nr.prototype,"fields");let wn=Nr;var su=Object.defineProperty,au=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&su(e,n,r),r};const Rr=class hl{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"isLaboratory",!1);l(this,"formSections",[]);l(this,"isEdit",!1);l(this,"withDates",!1);l(this,"withScores",!1);l(this,"selectedForExport",!1);l(this,"filterString","");l(this,"showOnlyNotFilled",!1);l(this,"showOnlyFilled",!1);v.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new hl;return e.id=v.CreateUUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=wn.Create(this.id);return this.formSections.push(e),Ss.Sort(this.formSections),e}getFields(){const e=this.formSections.map(o=>o.fields).flat(),n=e.map(o=>o.children).flat();return e.concat(n).filter(o=>o.children.length===0)}};au([v.GetClassConstructor(wn)],Rr.prototype,"formSections");let Ar=Rr;var lu=Object.defineProperty,cu=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&lu(e,n,r),r};const Vr=class fl{constructor(e){l(this,"id");l(this,"date",new Date);l(this,"editMode",!1);l(this,"userFormId");l(this,"fillingPercentage",0);l(this,"fieldFills",[]);l(this,"num","");l(this,"formId");v.BuildClass(this,e)}static Create(e){const n=new fl;return n.id=v.CreateUUID(),n.formId=e.id,n.fieldFills.push(...pt.CreateMany(e.getFields(),n.id)),n}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var n;return(n=this.fieldFills)==null?void 0:n.find(o=>o.fieldId===e)}pushRegisterProperty(e){const n=new pt;n.researchResultId=e,this.fieldFills.push(n)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(n=>n.researchResultId===e)}getOrCreateFieldFill(e){let n=this.getFieldFill(e.id);return n||(n=pt.Create(e),this.addFieldFill(n)),n}getFileInfos(){const e=[];return this.fieldFills.forEach(n=>e.push(...n.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(o=>o.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(e/n*100)}getFieldFillByFieldId(e){return this.fieldFills.find(n=>n.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(n=>n.fieldVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(o=>{var r;if(o.code){const s=(r=this.getFieldFillByFieldId(o.id))==null?void 0:r.valueNumber;n[o.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};cu([v.GetClassConstructor(pt)],Vr.prototype,"fieldFills");let Pr=Vr,du=class extends Y{constructor(){super(et,"answer-variants")}};const Fr=new du;let uu=class extends Y{constructor(){super(pt,"field-fills")}};const Tr=new uu;let hu=class extends Y{constructor(){super(yn,"fields")}};const zr=new hu;let fu=class extends Y{constructor(){super(Pr,"form-fills")}};const Dr=new fu;let mu=class extends Y{constructor(){super(wn,"form-sections")}};const Lr=new mu;let pu=class extends Y{constructor(){super(Ar,"forms")}};const Or=new pu;let gu=class extends Y{constructor(){super(nt,"selected-answer-variants")}};const _r=new gu,Hr={AnswerVariants:Fr,FieldFills:Tr,Fields:zr,FormFills:Dr,FormSections:Lr,Forms:Or,SelectedAnswerVariants:_r};let yu=class extends Y{constructor(){super(zt,"color-themes")}};const wu=new yu;class bu{constructor(){l(this,"form",new mc);l(this,"status",new wc);l(this,"modal",new pc)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}}const wi=new bu;class Su{constructor(){l(this,"title","");l(this,"buttons",[])}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const Cu=new Su;class ku{constructor(){l(this,"menu",[]);l(this,"path","");l(this,"isOpen",!0);l(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return q.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(o=>q.SearchIn(o.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var n;return this.filterString?(n=e.children)==null?void 0:n.filter(o=>q.SearchIn(o.name,this.filterString)):e.children}}const Eu=new ku;class vu{constructor(){l(this,"Menu",Eu);l(this,"Head",Cu)}}const qr=new vu;class Ur{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class Wr extends Ur{constructor(){super(...arguments);l(this,"type",ue.Success);l(this,"text","");l(this,"title","")}showMessage(n,o){this.hide(),this.type=o,typeof n=="string"?this.text=n:(this.text=n.text,this.title=n.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(n){this.showMessage(n,ue.Info)}Success(n){this.showMessage(n,ue.Success)}Error(n){this.showMessage(n,ue.Error)}Warning(n){this.showMessage(n,ue.Warning)}FormMessage(n){let o="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(n))n[r][0]&&n[r][0].message&&(o+=`<li>${n[r][0].message}</li>`);return o+="</ul>",o}}class Mu extends Wr{constructor(){super(...arguments);l(this,"confirmButtonText","Да");l(this,"cancelButtonText","Нет");l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){return super.show(),typeof n!="string"&&(this.confirmButtonText=n.confirmButtonText,this.cancelButtonText=n.cancelButtonText),new Promise((o,r)=>{this.resolve=o,this.reject=r})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const Gr=new Mu;class Bu extends Ur{Show(){super.show()}Hide(){super.hide()}}const jr=new Bu;class Ot{static Get(e,n,o="-"){return!e||!n?"":`${e}${o}${n}`}static In(e,n,o){return e>=n&&e<=o}static Intersects(e,n,o,r){return e===o||n===r||e>o&&e<r||n>o&&n<r||n>r&&e<o}}const Zr=1e3,Yr=60*Zr,bi=60*Yr;var _t=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(_t||{});const bn={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class _{static S(e){return Zr*e}static M(e){return Yr*e}static H(e){return bi*e}static D(e){return bi*e}static W(e){return bi*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=_.SplitHM(e);return n.length>1?_.HtoM(n[0])+n[1]:_.HtoM(n[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const n=e.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(e){const n=_.SplitHM(e);return _.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const o=new Date,r=_.SplitHM(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return _.ConcatHM(a,c)}static ConcatHM(e,n){return`${e}:${_.NormalizeTime(n)}`}static DiffM(e,n){return _.Gt(n,e)?_.HMtoM(n)-_.HMtoM(e):_.HMtoM(e)-_.HMtoM(n)}static GetPeriod(e,n){return Ot.Get(e,n)}static Gt(e,n){return _.HMtoM(e)>_.HMtoM(n)}static GtOrEq(e,n){return _.Gt(e,n)||_.Eq(e,n)}static Eq(e,n){return _.HMtoM(e)===_.HMtoM(n)}static PeriodInPeriod(e,n,o,r){return _.HMtoM(e)>=_.HMtoM(o)&&_.HMtoM(n)<=_.HMtoM(r)}static PeriodsIntersects(e,n,o,r){return Ot.Intersects(_.HMtoM(e),_.HMtoM(n),_.HMtoM(o),_.HMtoM(r))}}class Ht{static Wait(e,n){return new Promise(o=>setTimeout(()=>o(n),e))}static WaitS(e,n){return Ht.Wait(_.S(e),n)}static WaitM(e,n){return Ht.Wait(_.M(e),n)}}class Iu extends Wr{constructor(){super(...arguments);l(this,"duration",_.S(3))}showMessage(n,o){super.showMessage(n,o),typeof n!="string"&&(this.duration=n.duration??this.duration),Ht.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",o=ue.Warning;super.showMessage(n,o)}Save(){const n="Изменения успешно сохранены",o=ue.Success;super.showMessage(n,o)}}const Jr=new Iu;class $u{constructor(){l(this,"limit",25);l(this,"count",0);l(this,"curPage",1);l(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const Xr=new $u;class R{}l(R,"Auth",i.reactive(wi)),l(R,"AdminUI",i.reactive(qr)),l(R,"Dialog",i.reactive(Gr)),l(R,"Notification",i.reactive(Jr)),l(R,"Loading",i.reactive(jr)),l(R,"Paginator",i.reactive(Xr));function Qr(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:s=>{t.value&&s.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(s,a)=>{t.value&&!e.value?R.Dialog.Save().then(()=>{s(),a()}).catch(()=>{R.Notification.Warning("Изменения не были сохранены"),a()}):a()}}}const xu=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{var c;ee.Get().reset(),Fe.Set(a==null?void 0:a.sortsLib),ee.Get().setSortModel(Fe.GetDefault()),Fe.Set(a==null?void 0:a.sortsLib),ee.Get().setSortModel(Fe.GetDefault()),R.Paginator.storeModule=(c=a==null?void 0:a.pagination)==null?void 0:c.storeModule,await s()}),{saveButtonClick:e,showConfirmModal:n}=Qr(),o=s=>cc((a,c,d)=>{n((s||r)(),d)}),r=s=>async()=>{e.value=!0;try{s&&await s(),R.Notification.Success("Сохранено")}catch(a){R.Notification.Success("Что-то пошло не так. "+a);return}};return{onBeforeMount:t,onBeforeRouteLeave:o,submit:r}})(),Kr=["#31af5e","#ff4d3b","#006BB5","#f3911c"];function Nu(){return Kr[Math.floor(Math.random()*Kr.length)]}function Ru(t,e){const n=[2,0,1,1,1,2];return t.length+" "+e[t.length%100>4&&t.length%100<20?2:n[t.length%10<5?t.length%10:5]]}class Au{constructor(e){l(this,"name","");v.BuildClass(this,e)}cache(){}getFromCache(e){const n=sessionStorage.getItem(this.name);if(n){const o=JSON.parse(n),r=new Date,s=new Date(o.time),a=r.getTime()-s.getTime();return Math.round(a/6e4)>(e||10)?null:o.data}else return null}async storeGetWithCache(e,n){let o;return o=this.getFromCache(n),o||(o=await e(),o&&this.cache()),o}}function Vu(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const Pu=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Fu{static GetRandColor(e){return Ae.GetRandEL(e??Pu)}}function Tu(t){const e=t.filter(r=>r.rating!==0);let n=0;e.forEach(r=>n=n+r.rating);const o=n/e.length;return isNaN(o)?0:Number((n/e.length).toFixed(2))}let zu=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",_t.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",bn[_t.FiveMinutes])}startDrag(e,n){this.draggedStartTime=e,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=bn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ae.GenerateNumsRange(this.startHour,this.endHour)}};const Du=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"];class gt{constructor(e){l(this,"locale","ru-RU");this.locale=e??this.locale}format(e,n){if(!e)return"";const o={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(o.year=n.year||n.year===void 0?n.year:o.year,o.month=n.month||n.month===void 0?n.month:o.month,o.day=n.day||n.day===void 0?n.day:o.day,o.hour=n.hour??o.hour,o.minute=n.minute??o.minute),Intl.DateTimeFormat(this.locale,o).format(new Date(e))}getPeriod(e,n,o){return`${this.format(e,o)}-${this.format(n,o)}`}getShortDayName(e){return e?Du[e.getDay()]:""}getCurrentWeekPeriod(e){const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),r=new Date(n.getFullYear(),n.getMonth(),o.getDate()+7);return this.getPeriod(o,r,e||{month:"2-digit",day:"numeric",year:void 0})}getDurationInDay(e,n){const o=new Date,r=new Date,s=gt.SplitHourTime(e),a=gt.SplitHourTime(n);return o.setHours(s[0],s[1],0,0),r.setHours(a[0],a[1],0,0),(r.getTime()-o.getTime())/1e3/60}static HourTimeinMunutes(e){const n=gt.SplitHourTime(e);return n[0]*60+n[1]}static SplitHourTime(e){const n=e.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(e,n){const o=new Date,r=gt.SplitHourTime(e);o.setHours(r[0],r[1],0,0);const s=new Date(o.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}getMonthsDiff(e,n){return n.getMonth()-e.getMonth()+12*(n.getFullYear()-e.getFullYear())}stringToDate(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}}const Si=t=>t===8||t===46,Lu=t=>t>46&&t<58,Ou=t=>t>34&&t<41,_u=t=>t+".",Hu=(t,e,n)=>{Si(e)||Ou(e)||(!Lu(e)||n>9)&&t.preventDefault()};function qu(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let o=t.substring(3,5).replace(".","1");Number(o)>12&&(o="12");let r=t.substring(6,10).replace(".","1");Number(r)>2100&&(r="2100"),t=n+"."+o+"."+r}return t}function Uu(t){const e=t.keyCode;let n=t.srcElement.value;const o=n.length;Hu(t,e,o),!Si(e)&&(o===2||o===5)&&(n=_u(n));const r=t.srcElement.value+String.fromCharCode(t.which);if(Si(e)){t.srcElement.value=n;return}n.length===0&&Number(r)>3&&(n="3",t.preventDefault()),n.length===1&&Number(r)>31&&(n="31",t.preventDefault()),r.length===5&&Number(r.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=qu(n,o),t.srcElement.value=n}class Ci{static GetPeriod(e,n){return Ot.Get(Ve.Format(e),Ve.Format(n))}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,n,o){return Ot.In(new Date(e),new Date(n),new Date(o))}static GetDatesFromPeriod(e,n){const o=[new Date(e)];let r=e;for(;r<=n;)r=Ci.AddDays(r,1),o.push(r);return o}static AddDays(e,n){const o=new Date(e);return o.setDate(o.getDate()+n),o}static Eq(e,n){return e.getTime()===n.getTime()}}class Wu{constructor(){l(this,"dragged",!1);l(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class es{static Get(e){const n=e.split(".");return n[n.length-1]}}const Gu=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function n(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){t(s,[a]);return}const d=c.split(",");d.push(a),t(s,d)}function o(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const d=c.split(",").filter(u=>u!==a);t(s,d)}function r(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:o,setFavourite:t,isFavourite:e,clearFavourite:r}})();function ts(t,e){const n=[];if(t)for(let o=0;o<Math.ceil(t.length/e);o++)n[o]=t.slice(o*e,o*e+e);return n}function ju(t,e){t[e].order=e-1,t[e-1]&&(t[e-1].order=e),[t[e],t[e-1]]=[t[e-1],t[e]]}function Zu(t,e){t[e].order=e+1,t[e+1]&&(t[e+1].order=e),[t[e],t[e+1]]=[t[e+1],t[e]]}let Yu=class{async Login(e){const n=e??R.Auth.Form.GetValues(),o=await ae.Post({query:"auth/login",payload:n});if(!o)throw R.Notification.Error("Ошибка авторизации"),"Ошибка авторизации";R.Auth.Status.SetState(o)}async LoginAs(e){if(!await ae.Post({query:"auth/login-as",payload:{email:e}})){R.Notification.Error("Ошибка авторизации");return}}async Register(){}async RestorePassword(){}async passwordChange(){await ae.Put({query:"auth/password-change"})}async RefreshToken(){await ae.Post({query:"auth/refresh-token",payload:{refreshToken:Ft.getRefreshToken()}})}async CheckUuid(e){await ae.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}};const ns=new Yu;let Ju=class extends Y{constructor(){super(dt,"contacts")}};const is=new Ju;let Xu=class extends Y{constructor(){super(Ye,"emails")}};const ki=new Xu;let Qu=class extends Y{constructor(){super(X,"file-infos")}};const os=new Qu;class Ei{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");v.BuildClass(this,e)}static Create(e){const n=new Ei;return n.id=v.CreateUUID(),n.ftsp=JSON.stringify(e),n}}let Ku=class extends Y{constructor(){super(Ei,"ftsp-presets")}};const rs=new Ku;let eh=class extends Y{constructor(){super(jn,"humans")}};const ss=new eh;class as{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new X);l(this,"scanId");e&&(this.id=e==null?void 0:e.id,this.name=e.name,this.order=e.order,this.downloadToFile=e.downloadToFile,this.pageSectionId=e.pageSectionId,e.scan&&(this.scan=new X(e.scan)),this.scanId=e.scanId)}getFileInfos(){return[this.scan]}uploadScan(e){return this.scan.id||(this.scan.id=de()),this.scan.originalName=e.name,this.scan.file=e.raw,this.scan.fileSystemPath=de(),this.scan.url=e.url,this.scan}getFileName(){return this.name?this.name:this.scan.originalName}}class th{constructor(e){l(this,"id");l(this,"documentType",new it);l(this,"documentTypeId");l(this,"order",0);v.BuildClass(this,e)}getFileInfos(){const e=[];return e.push(...this.documentType.getFileInfos()),e}}var nh=Object.defineProperty,ls=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&nh(e,n,r),r};class it{constructor(e){l(this,"id");l(this,"name","");l(this,"singleScan",!1);l(this,"scan");l(this,"scanId");l(this,"order",0);l(this,"description","");l(this,"scans",[]);l(this,"scansForDelete",[]);l(this,"pageSectionDocuments",[]);l(this,"pageSectionDocumentsForDelete",[]);l(this,"pageSectionImages",[]);l(this,"pageSectionImagesForDelete",[]);l(this,"pageSideMenuId");l(this,"pageId");l(this,"text","");l(this,"documents",[]);v.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new as;e.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(e)}getFileInfos(){const e=[];return this.pageSectionDocuments.forEach(n=>{e.push(...n.getFileInfos())}),e}infoExists(e){const n=q.SearchIn(this.name,e),o=q.SearchIn(this.description,e),r=this.getDocuments(e);return n||o||r.length>0}getDocuments(e){return this.pageSectionDocuments.filter(n=>q.SearchIn(n.name,e))}getDescription(e){return e?q.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=q.SearchIn(this.description,e)?q.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(n=>q.SearchIn(n.name,e))}}ls([v.GetClassConstructor(as)],it.prototype,"pageSectionDocuments"),ls([v.GetClassConstructor(th)],it.prototype,"pageSectionImages");class ih{constructor(e){l(this,"id");l(this,"document",new it);l(this,"documentId");l(this,"pageId");v.BuildClass(this,e)}static GetFileInfos(e){const n=[];return e.forEach(o=>{const r=o.document.scan;r&&n.push(r)}),n}}var oh=Object.defineProperty,rh=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&oh(e,n,r),r};class cs{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");v.BuildClass(this,e)}}rh([v.GetClassConstructor(X)],cs.prototype,"fileInfo");var sh=Object.defineProperty,ah=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&sh(e,n,r),r};class yt{constructor(e){l(this,"id");l(this,"name","Новое меню");l(this,"order",0);l(this,"description","");l(this,"routeAnchor","");l(this,"slug","");l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"showContent",!1);l(this,"pageId");l(this,"selected",!1);l(this,"sections",[]);l(this,"text","");v.BuildClass(this,e),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const e=[];return this.pageSections.forEach(n=>{e.push(...n.getFileInfos())}),e}addPageSection(){const e=new it;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=de(),this.pageSections.push(e)}infoExists(e){const n=q.SearchIn(this.name,e),o=q.SearchIn(this.description,e),r=this.getPageSections(e).length>0;return n||o||r}getPageSections(e){return e.length?this.pageSections.filter(n=>n.infoExists(e)):this.pageSections}filter(e){e.length?(this.sections=this.pageSections.filter(n=>n.infoExists(e)),this.text=q.SearchIn(this.description,e)?q.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(e))}}ah([v.GetClassConstructor(it)],yt.prototype,"pageSections");var ds=(t=>(t.User="USER",t.Admin="ADMIN",t))(ds||{});class lh{constructor(e){l(this,"id");l(this,"name",ds.User);l(this,"label","");l(this,"startPage","");v.BuildClass(this,e)}}var ch=Object.defineProperty,Sn=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ch(e,n,r),r};class wt{constructor(e){l(this,"id");l(this,"title","");l(this,"content","");l(this,"slug","");l(this,"pagesGroup","Без группы");l(this,"link","");l(this,"withComments",!1);l(this,"showContacts",!1);l(this,"collaps",!1);l(this,"showContent",!1);l(this,"pageImages",[]);l(this,"pageImagesForDelete",[]);l(this,"pageImagesNames",[]);l(this,"pageSideMenus",[]);l(this,"menus",[]);l(this,"pageSideMenusForDelete",[]);l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"pageDocuments",[]);l(this,"contact",new dt);l(this,"contactId");l(this,"role",new lh);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");v.BuildClass(this,e),this.menus=this.pageSideMenus}getActiveMenu(){const e=this.pageSideMenus.find(n=>n.id===this.activeMenuId);return e||this.pageSideMenus[0]}setActiveMenuId(e){this.activeMenuId=e}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const e=[];return this.pageSideMenus.forEach(n=>{e.push(...n.getFileInfos())}),this.pageDocuments.forEach(n=>{n.document.scan&&e.push(n.document.scan)}),this.pageImages.forEach(n=>{n.fileInfo&&e.push(n.fileInfo)}),e}addSideMenu(){const e=new yt;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=de(),this.pageSideMenus.push(e),e.id}selectSideMenu(e,n){if(!e&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(o=>{n?o.selected=o.id===e:o.selected=o.slug===e})}getSelectedSideMenu(){const e=this.pageSideMenus.find(n=>n.selected);return e||new yt}addCustomSectionsToSideMenu(e){e.forEach(n=>{const o=new yt;o.id=n.id,o.name=n.name,typeof n.order<"u"?this.pageSideMenus.splice(n.order,0,o):this.pageSideMenus.push(o)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(e=>e.id==="contacts")){const e=new yt;e.id="contacts",e.name="Контакты",this.pageSideMenus.push(e)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(e=>e.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(e=>e.infoExists(this.filterStr)),this.menus.forEach(e=>e.filter(this.filterStr))}static GetClassName(){return"page"}}Sn([v.GetClassConstructor(cs)],wt.prototype,"pageImages"),Sn([v.GetClassConstructor(yt)],wt.prototype,"pageSideMenus"),Sn([v.GetClassConstructor(it)],wt.prototype,"pageSections"),Sn([v.GetClassConstructor(ih)],wt.prototype,"pageDocuments");class us{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"selected",!1);l(this,"hide",!1);l(this,"editMode",!1);l(this,"color","");l(this,"background","");l(this,"page",new wt);l(this,"pageId");l(this,"order",0);l(this,"menuId");l(this,"iconId");l(this,"icon",new X);l(this,"iconName","");l(this,"svgCode","");v.BuildClass(this,e)}getLink(){return this.isLink()&&!this.isPageLink()?this.link:!this.isLink()&&this.isPageLink()?this.page.getLink():""}isLink(){return this.link!==""}isPageLink(){return this.pageId!==void 0&&this.pageId!==""}addFile(e){this.icon.id||(this.icon.id=de()),this.icon.originalName=e.name,this.icon.file=e.raw}}var dh=Object.defineProperty,uh=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&dh(e,n,r),r};class hs{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"top",!0);l(this,"side",!0);l(this,"show",!1);l(this,"hide",!1);l(this,"active",!1);l(this,"order",0);l(this,"selected",!1);l(this,"editMode",!1);l(this,"page",new wt);l(this,"pageId");l(this,"subMenus",[]);l(this,"subMenusForDelete",[]);l(this,"iconId");l(this,"icon",new X);v.BuildClass(this,e)}getLink(){return this.isLink()&&!this.isPageLink()?this.link:!this.isLink()&&this.isPageLink()?this.page.getLink():""}withoutChildren(){return this.subMenus.length===0}isLink(){return this.link!==""}isPageLink(){return!!this.pageId&&this.pageId!==""}getFileInfos(){const e=[];return e.push(this.icon),this.subMenus.forEach(n=>{e.push(n.icon)}),e}addFile(e){this.icon.id||(this.icon.id=de()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new us)}removeSubMenu(e){const n=this.subMenus[e].id;n&&this.subMenusForDelete.push(n),this.subMenus.splice(e,1)}setColorsForSubMenus(){const e=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let n=0;this.subMenus.forEach(o=>{o.color=e[n],n=e.length-1?n=0:n++})}containPath(e){return this.getLink()===e||!!this.subMenus.find(n=>n.getLink()===e)}static GetClassName(){return"menu"}}uh([v.GetClassConstructor(us)],hs.prototype,"subMenus");let hh=class extends Y{constructor(){super(hs,"menus")}};const fs=new hh;let fh=class extends Y{constructor(){super(ct,"phones")}};const vi=new fh;class mh{constructor(e){l(this,"id");l(this,"nameRus","");v.BuildClass(this,e)}}var ph=Object.defineProperty,gh=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&ph(e,n,r),r};class ms{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);v.BuildClass(this,e)}}gh([v.GetClassConstructor(mh)],ms.prototype,"fields");let yh=class extends Y{constructor(){super(ms,"schemas")}};const ps=new yh;class gs{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);v.BuildClass(this,e)}}class wh{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");v.BuildClass(this,e)}}var bh=Object.defineProperty,ys=(t,e,n,o)=>{for(var r=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(r=a(e,n,r)||r);return r&&bh(e,n,r),r};class bt{constructor(e){l(this,"id");l(this,"key","");l(this,"label","");l(this,"order",0);l(this,"route","");l(this,"table","");l(this,"active",!0);l(this,"searchColumn","");l(this,"descriptionColumn","");l(this,"labelColumn","");l(this,"valueColumn","");l(this,"options",[]);l(this,"searchGroupMetaColumns",[]);v.BuildClass(this,e)}}ys([v.GetClassConstructor(gs)],bt.prototype,"options"),ys([v.GetClassConstructor(wh)],bt.prototype,"searchGroupMetaColumns");class Mi{constructor(e){l(this,"query","");l(this,"key","");l(this,"params","");l(this,"suggester",!1);l(this,"mustBeTranslated",!0);l(this,"options",[]);l(this,"searchGroupId","");l(this,"searchGroups",[]);l(this,"searchGroup",new bt);l(this,"searchObjects",[]);l(this,"pagination",new en);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new bt(n))),e.searchGroup&&(this.searchGroup=new bt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new gs(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(o=>o.id===e);n?this.searchGroup=n:this.searchGroup=new bt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(ot.Route().query.groupId)}setQuery(){const e=ot.Route().query.query;e&&(this.query=e)}}let Sh=class{constructor(){l(this,"isSearchDrawerOpen",i.ref(!1));l(this,"searchModel",i.reactive(new Mi));l(this,"searchGroups",i.reactive([]));l(this,"count",0)}async Search(e){const n=await ae.Get({query:`?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(o=>{e.searchObjects.push({id:o.id,value:o.value,label:o.label,description:o.description})})}async mainSearch(e){this.SetSearchModel(await ae.Get({query:`/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(o=>{o.options=[]});const n=await ae.Get({query:`main?searchModel=${e.toUrl()}`});this.SetSearchModel(n)}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new Mi}SetSearchModel(e){e&&(this.searchModel=new Mi(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const Cn=new Sh;class Bi{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");v.BuildClass(this,e)}static Create(){const e=new Bi;return e.id=v.CreateUUID(),e}}let Ch=class extends Y{constructor(){super(Bi,"users-accounts")}};const ws=new Ch;let kh=class extends Y{constructor(){super(Zn,"value-types")}};const bs=new kh;class kn{constructor(){l(this,"Auth",ns);l(this,"Contacts",is);l(this,"Emails",ki);l(this,"FileInfos",os);l(this,"FTSPPresets",rs);l(this,"Humans",ss);l(this,"Menus",fs);l(this,"Phones",vi);l(this,"Schemas",ps);l(this,"Search",Cn);l(this,"UserAccounts",ws);l(this,"ValueTypes",bs)}static Extend(e){for(const n of e)Object.defineProperties(kn,{key:e[n]})}}kn.Extend(Hr);class We{}l(We,"Auth",i.reactive(wi)),l(We,"AdminUI",i.reactive(qr)),l(We,"Dialog",i.reactive(Gr)),l(We,"Notification",i.reactive(Jr)),l(We,"Loading",i.reactive(jr)),l(We,"Paginator",i.reactive(Xr)),l(We,"Store",kn);const zn=class zn{static Format(e){let n=e;if(!n)e=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const o=n.replace(/\+7|[^\d]/g,""),r=o.length;switch(!0){case r===0:e="";break;case(r===1&&n.length===1&&o==="7"):case(r===1&&n.length===1&&o==="8"):e="+7 (";break;case r<4:e=`+7 (${o}`;break;case r<7:e=`+7 (${o.slice(0,3)}) ${o.slice(3)}`;break;case r<9:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}`;break;default:e=`+7 (${o.slice(0,3)}) ${o.slice(3,6)}-${o.slice(6,8)}-${o.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};l(zn,"validatePhone",(e,n,o)=>{zn.getPhoneRegExp().test(n)||!n?o():o(new Error("Пожалуйста, введите корректный номер телефона"))});let Ii=zn;const Eh=[{path:"/",redirect:"/login"},{path:"/login",component:()=>Promise.resolve().then(()=>Vm),meta:{layout:"LoginLayout"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:()=>Promise.resolve().then(()=>zm)}],je=class je{static SetRouter(e){this.router=e,this.AddRoutes(Eh)}static GetRouter(){return this.router}static AddRoutes(e){e.forEach(n=>{this.GetRouter().addRoute(n)})}static async To(e){R.Loading.Show(),await this.GetRouter().push(e),R.Loading.Hide()}static async ToHome(){R.Loading.Show(),R.Loading.Hide()}static async Replace(e){await this.GetRouter().replace(e)}static Id(){return je.GetStringParam("id")}static Slug(){return je.GetStringParam("slug")}static async Back(){R.Loading.Show(),this.GetRouter().go(-1),R.Loading.Hide()}static GetQid(){return je.GetStringQueryParam("qid")}static Route(){return this.GetRouter().currentRoute.value}static RouterPushBlank(e){const n=this.GetRouter().resolve({path:e});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const e=(n=je.Route())==null?void 0:n.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.GetRouter().push("/admin");return}let n=e;n[0]==="/"&&(n=e.substring(1)),await je.To(`/admin/${n}`)}static GetStringQueryParam(e){return String(this.Route().query[e])}static GetNumberQueryParam(e){return Number(this.Route().query[e]??0)}static GetStringParam(e){return this.Route().params[e]}static Resolve(e){return this.GetRouter().resolve(e)}};l(je,"router");let ot=je;class vh{static async Auth(e){e&&e()}static Dev(){}}class Mh{constructor(){l(this,"startHour",9);l(this,"startHM",`${this.startHour}:00`);l(this,"endHour",19);l(this,"endHM",`${this.endHour}:00`);l(this,"timelinePxHeight",50);l(this,"timelineStep",_t.FiveMinutes);l(this,"timelines",bn[_t.FiveMinutes])}periodIsCorrect(e,n){return _.GtOrEq(e,this.startHM)&&_.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=bn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ae.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,o,r){return r.filter(s=>s.id!==o).every(s=>!_.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,o)=>_.HMtoM(n.startTime)-_.HMtoM(o.startTime))}}const Bh=-68;function Ih(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),o=e??Bh;let r=0;n&&(r=n.getBoundingClientRect().top+o+document.body.scrollTop),r&&document.body.scrollTo({top:r,behavior:"smooth"})}class Ss{static Sort(e){e.forEach((n,o)=>n.order=o)}}class $i{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l($i,"staticUrl","");function $h(t,e){let n=!0;return t.value.validate((o,r)=>(o||(e?R.Notification.Error("Пожалуйста, проверьте правильность введенных данных"):R.Notification.Error(R.Notification.FormMessage(r)),n=!1),n)),n}const xh=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const n=new MutationObserver(()=>{document.querySelector(t)&&(n.disconnect(),e(document.querySelector(t)))});n.observe(document.body,{childList:!0,subtree:!0})});class En{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");v.BuildClass(this,e)}static Create(e,n,o,r){const s=new En;return s.id=de(),s.chatId=e,s.message=o,s.userName=r,s}static CreatePingMessage(){const e=new En;return e.type="ping",e.id=de(),e}isMessage(){return this.type==="message"||this.type===""}}const Nh="";class Rh{constructor(e="",n="",o="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);v.BuildClass(this,{endpoint:e,query:n,mutation:o}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(En.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Nh.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}const xi=i.defineComponent({__name:"PInputDate",props:i.mergeModels({placeholder:{type:String,default:"Укажите дату"},width:{type:String,required:!1,default:"auto"},margin:{type:String,required:!1,default:""},label:{type:String,default:"",required:!1}},{modelValue:{default:new Date},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(t,{emit:e}){const n=e,o=i.useModel(t,"modelValue"),r=Ve.Format(o.value),s=i.ref(r),a=d=>{if(!c(d))return;const u=Ve.FromRuStr(d);o.value=u,n("beforeChange",u),n("change",u)},c=d=>d.length!=10?(s.value=r,R.Notification.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=r,R.Notification.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=r,R.Notification.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=r,R.Notification.Error("Неверный год"),!1):!0;return(d,u)=>{const h=qe;return i.openBlock(),i.createElementBlock("div",{class:"style-container",style:i.normalizeStyle({width:t.width,position:"relative"})},[i.createVNode(h,{modelValue:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(s)?s.value=f:null),mask:"##.##.####",placeholder:t.placeholder,margin:t.margin,label:t.label,onBlur:a,onKeydown:i.withKeys(i.withModifiers(f=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Ah={class:"number"},Cs=M(i.defineComponent({__name:"PInputNumber",props:{modelValue:{type:Number,required:!0,default:0}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.modelValue??0),s=()=>{r.value++,o("update:modelValue",r.value),o("change")},a=()=>{r.value--,o("update:modelValue",r.value),o("change")},c=()=>{o("update:modelValue",r.value),o("change")};return(d,u)=>(i.openBlock(),i.createElementBlock("div",Ah,[i.createElementVNode("button",{class:"number-minus",type:"button",onClick:a},u[1]||(u[1]=[i.createElementVNode("svg",{class:"icon-minus"},[i.createElementVNode("use",{"xlink:href":"#minus"})],-1)])),i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=h=>i.isRef(r)?r.value=h:null),class:"input-field",type:"number",min:"0",step:"0.1",onInput:c},null,544),[[i.vModelText,i.unref(r)]]),i.createElementVNode("button",{class:"number-plus",type:"button",onClick:s},u[2]||(u[2]=[i.createElementVNode("svg",{class:"icon-plus"},[i.createElementVNode("use",{"xlink:href":"#plus"})],-1)]))]))}}),[["__scopeId","data-v-f53b6419"]]),Vh=["innerHTML"],Ph={key:1},we=M(i.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"var(--font-color)"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(t){const e=t,n={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,background:e.background,padding:e.padding,width:e.width,maxWidth:e.width,minWidth:e.minWidth,margin:e.margin,justifyContent:e.justifyContent};return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:r[0]||(r[0]=s=>o.$emit("click"))},[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,Vh)):(i.openBlock(),i.createElementBlock("span",Ph,i.toDisplayString(t.string),1))],2))}}),[["__scopeId","data-v-bd8f6c8f"]]),ks=M(i.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.shift?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({minWidth:t.widthClosed,maxWidth:t.widthClosed})},null,4)),i.createElementVNode("div",{class:"LS-body",style:i.normalizeStyle({marginLeft:i.unref(r)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute",background:t.background})},[i.createElementVNode("div",{class:"LS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed})`})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed}),onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-3ea7497e"]]),Es=M(i.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-84953e34"]]),vs=M(i.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("li",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-4cb3c766"]]),Fh=["for"],Th=["id","name","checked","value"],Ms=M(i.defineComponent({__name:"PRadio",props:i.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:"14px"},size:{type:String,default:"20px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=e,r=t,s=q.CreateGuid(),a=i.computed(()=>n.value===r.value),c=()=>{o("change",r.value)};return(d,u)=>(i.openBlock(),i.createElementBlock("div",{class:"radio-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"radio-field__label",for:i.unref(s),style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{id:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),name:t.name,checked:i.unref(a),class:"radio-field__input",type:"radio",value:t.value},null,8,Th),[[i.vModelRadio,n.value]]),i.createElementVNode("div",{class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius}),onClick:c},[n.value===t.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"radio-dot",style:i.normalizeStyle({width:`calc(${t.size} - 50%)`,height:`calc(${t.size} - 50%)`})},null,4)):i.createCommentVNode("",!0)],4),i.createElementVNode("span",{onClick:c},i.toDisplayString(t.label),1)],12,Fh)],4))}}),[["__scopeId","data-v-a8f68add"]]),zh={class:"wrapper"},Dh={class:"content"},Bs=M(i.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>{const d=we;return i.openBlock(),i.createElementBlock("div",zh,[i.createElementVNode("div",Dh,[i.renderSlot(a.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",{class:"RS-body",style:i.normalizeStyle({marginRight:i.unref(r)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute"})},[i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed}),onClick:c[0]||(c[0]=u=>s(!i.unref(r)))},[i.unref(r)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4),i.createElementVNode("div",{class:"RS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed} - 2px)`,background:t.background})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)])}}}),[["__scopeId","data-v-6f8cc35c"]]),Ni=M(i.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[i.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-db435ef1"]]),qt=M(i.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[i.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-8d8cfcf1"]]),Lh=["for"],Oh={class:"field"},_h={class:"left-field"},Hh={class:"arrow"},qh={selected:"",hidden:""},Uh={class:"right-field"},rt=M(i.defineComponent({inheritAttrs:!1,__name:"PSelect",props:i.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),o=i.ref(!0),r=e,s=i.ref(!1),a=()=>{o.value=!1,r("change",n.value)},c=()=>{r("clear",void 0),r("change",void 0),o.value=!0};return(d,u)=>{const h=Ni;return i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Lh)):i.createCommentVNode("",!0),i.createElementVNode("div",Oh,[i.createElementVNode("div",_h,[i.renderSlot(d.$slots,"left",{},void 0,!0)]),i.createElementVNode("div",{class:"sl",onMouseover:u[1]||(u[1]=f=>s.value=!0),onMouseleave:u[2]||(u[2]=f=>s.value=!1)},[t.clearable?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"clear",onClick:c},[i.createVNode(qt,{margin:"0"})],512)),[[i.vShow,i.unref(s)]]):i.createCommentVNode("",!0),i.createElementVNode("div",Hh,[i.createVNode(h,{margin:"2px 2px 0 0"})]),i.withDirectives(i.createElementVNode("select",i.mergeProps(d.$attrs,{"onUpdate:modelValue":u[0]||(u[0]=f=>n.value=f),class:"text-field__input",onChange:a}),[i.createElementVNode("option",qh,i.toDisplayString(t.placeholder),1),i.renderSlot(d.$slots,"default",{},void 0,!0)],16),[[i.vModelSelect,n.value]])],32),i.createElementVNode("div",Uh,[i.renderSlot(d.$slots,"right",{},void 0,!0)])])],4)}}}),[["__scopeId","data-v-eab44241"]]),vn=M(i.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"sticky-block",style:i.normalizeStyle({zIndex:1+t.zIndex,top:t.top,background:t.background,padding:t.padding,boxShadow:t.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-db44b76d"]]),Wh=["for"],Gh={class:"left-field"},jh={class:"right-field"},Is=M(i.defineComponent({__name:"PTextarea",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue");return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Wh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Gh,[i.renderSlot(n.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps(n.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=r=>e.value=r),class:"text-field__input",style:{color:t.color},onBlur:o[1]||(o[1]=r=>n.$emit("blur",e.value)),onInput:o[2]||(o[2]=r=>n.$emit("input",e.value))}),null,16),[[i.vModelText,e.value],[i.unref(Io),t.mask]]),i.createElementVNode("div",jh,[i.renderSlot(n.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-172b61e5"]]),Zh={class:"top-slider-content"},Yh={class:"center"},$s=M(i.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.open);i.watch(()=>n.open,()=>{r.value=!r.value});const s=a=>{r.value=!r.value,o("open",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(r)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>r.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(r)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Zh,[i.createElementVNode("div",Yh,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:c[2]||(c[2]=d=>s(!i.unref(r)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-12ffd2e2"]]),Ut=M(i.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(t,{emit:e}){const n=t,o=e,r=a=>{a.key==="Escape"&&s()};i.onMounted(()=>{document.body.addEventListener("keydown",r)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",r)});const s=()=>{n.closable&&o("close")};return(a,c)=>{const d=qt;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:s})):i.createCommentVNode("",!0),t.show?(i.openBlock(),i.createElementBlock("div",{key:1,class:"modal-w",style:i.normalizeStyle({maxWidth:t.width,width:t.width,margin:t.margin,padding:t.padding,top:t.top})},[t.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-box",onClick:s},[i.createVNode(d,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-41f0eae5"]]),Jh={class:"btn-group"},Mn=M(i.defineComponent({__name:"AuthForm",props:{width:{type:String,default:"300px"},margin:{type:String,default:"auto"},padding:{type:String,default:"60px 100px"}},emits:["submit"],setup(t,{emit:e}){const n=R.Auth.Form,o=i.ref(!1),r=e,s=i.computed(()=>n.GetButtons()),a=async c=>{await R.Auth.Form.Block(async()=>{if(!c.submit)return n.SetStatus(c.GetStatus());const d=n.Validate();if(d.length>0){R.Notification.Error(d.join(", "));return}r("submit")})};return i.onBeforeUnmount(()=>{n.Reset()}),(c,d)=>{const u=qe,h=pe;return i.openBlock(),i.createElementBlock("div",{class:"auth-card",style:i.normalizeStyle({width:t.width,margin:t.margin,padding:t.padding})},[i.createElementVNode("div",null,i.toDisplayString(("PHelp"in c?c.PHelp:i.unref(R)).Auth.Form.GetTitle()),1),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(("PHelp"in c?c.PHelp:i.unref(R)).Auth.Form.GetFields(),f=>(i.openBlock(),i.createBlock(u,{id:f.id,key:f,modelValue:f.value,"onUpdate:modelValue":p=>f.value=p,placeholder:f.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","placeholder"]))),128)),i.createVNode(h,{type:"primary",skin:"text_ano",text:"Забыли пароль?",width:"124px",margin:"0 0 0 5px"}),i.createElementVNode("div",Jh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),f=>(i.openBlock(),i.createBlock(h,{id:f.id,key:f.GetStatus(),disabled:i.unref(o),type:"primary",skin:"base",text:f.text,color:f.submit?"blue":"grey",margin:"10px 0 0 0",width:"100%",height:"52px",onClick:p=>a(f)},null,8,["id","disabled","text","color","onClick"]))),128))])])],4)}}}),[["__scopeId","data-v-e716ebe9"]]),xs=i.defineComponent({__name:"AuthModal",emits:["submit"],setup(t){const e=()=>{R.Auth.Form.Reset(),R.Auth.Modal.Close()};return(n,o)=>{const r=Mn,s=Ut;return i.openBlock(),i.createBlock(s,{show:("PHelp"in n?n.PHelp:i.unref(R)).Auth.Modal.IsVisible(),closable:("PHelp"in n?n.PHelp:i.unref(R)).Auth.Modal.IsClosable(),onClose:e},{default:i.withCtx(()=>[i.createVNode(r,{width:"760px",onAction:o[0]||(o[0]=a=>n.$emit("submit"))})]),_:1},8,["show","closable"])}}}),Wt=M(i.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(t){return i.useCssVars(e=>({59355408:t.maxWidth,"24aaa640":t.width,"0833ce18":t.background,"65d0bfaa":t.gridGap,"2373d8d7":t.gridTemplateColumns,ea2919c2:t.gridTemplateRows,"5f2f1c74":t.margin})),(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["grid-block",t.customClass])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-352a1099"]]);var Oe=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(Oe||{});const Xh={class:"container"},Qh={class:"slide-box"},Kh={class:"link-number"},ef=["id","onClick"],Ns=M(i.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(t){i.useCssVars(y=>({"17adb052":n}));const e=t,n=`${e.animationTime}ms`,o=i.ref(e.startActiveGroupIndex),r=i.ref(Oe.None),s=i.ref(ts(e.events,e.quantity)),a=i.computed(()=>s.value[o.value]);i.onMounted(()=>{});const c=()=>o.value=o.value+1<s.value.length?o.value+1:0,d=()=>o.value=o.value-1<0?s.value.length-1:o.value-1,u=y=>{r.value=y,setTimeout(()=>r.value=Oe.None,e.animationTime)},h=y=>{y!=o.value&&(u(y<o.value?Oe.Prev:Oe.Next),setTimeout(()=>o.value=y,e.animationTime/2))},f=()=>{u(Oe.Next),setTimeout(c,e.animationTime/2)},p=()=>{u(Oe.Prev),setTimeout(d,e.animationTime/2)};return(y,g)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",Xh,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:g[0]||(g[0]=i.withModifiers(k=>p(),["stop"]))},g[2]||(g[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),i.createElementVNode("div",Qh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(k,b)=>(i.openBlock(),i.createElementBlock("div",{key:b,class:i.normalizeClass({animationnext:i.unref(r)===i.unref(Oe).Next,animationprev:i.unref(r)===i.unref(Oe).Prev})},g[3]||(g[3]=[i.createElementVNode("div",{class:"image"},[i.createElementVNode("div",{class:"image-box"})],-1)]),2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:g[1]||(g[1]=i.withModifiers(k=>f(),["stop"]))},g[4]||(g[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),i.createElementVNode("div",Kh,[i.createVNode(Wt,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),(k,b)=>(i.openBlock(),i.createElementBlock("div",{id:b.toString(),key:b,class:"number",style:i.normalizeStyle({background:b.toString()===i.unref(o).toString()?"#9D9D9D":""}),onClick:i.withModifiers(I=>h(b),["stop"])},i.toDisplayString(b+1),13,ef))),128))]),_:1})])],4))}}),[["__scopeId","data-v-3493284a"]]);class Bn{constructor(e){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"store","");v.BuildClass(this,e)}static CreateCropper(e,n,o){const r=new Bn;return r.src=e,r.id=o,n&&(r.ratio=n),r}}let tf=class{constructor(){l(this,"cropper",new Bn)}Open(e){this.cropper=e}Cropper(){return this.cropper}Ratio(){return this.cropper.ratio}};const Ri=new tf,Ai=M(i.defineComponent({__name:"EmailForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{ki.Update(e.value)};return(o,r)=>{const s=qe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.address,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.address=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-bbe15030"]]),Vi=M(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{await vi.Update(e.value)};return(o,r)=>{const s=qe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":r[1]||(r[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-9d94e007"]]),nf={key:0,class:"contact-container"},of={class:"bottom-buttons"},rf={class:"list-number"},sf={class:"bottom-buttons"},af={class:"list-number"},Rs=M(i.defineComponent({__name:"ContactForm",props:i.mergeModels({full:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{},o=async a=>{e.value.removeEmail(a)},r=async()=>{},s=async a=>{e.value.removePhone(a)};return(a,c)=>{const d=qe,u=pe;return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.full?(i.openBlock(),i.createElementBlock("div",nf,[i.createVNode(d,{modelValue:e.value.description,"onUpdate:modelValue":c[0]||(c[0]=h=>e.value.description=h),label:"Описание"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.time,"onUpdate:modelValue":c[1]||(c[1]=h=>e.value.time=h),label:"Время работы"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.latitude,"onUpdate:modelValue":c[2]||(c[2]=h=>e.value.latitude=h),label:"Широта (для карты)"},null,8,["modelValue"]),i.createVNode(d,{modelValue:e.value.longitude,"onUpdate:modelValue":c[3]||(c[3]=h=>e.value.longitude=h),label:"Долгота (для карты)"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"contact-container",style:i.normalizeStyle({background:e.value.phones.length?"":"#F9FAFB"})},[i.createElementVNode("div",of,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({color:e.value.phones.length?"#303133":"#c4c4c4"})},"Телефоны",4),i.createVNode(u,{class:"admin-add",text:"+ Добавить",onClick:c[4]||(c[4]=h=>r())})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.value.phones,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:h.id,class:"contact-container-item"},[i.createVNode(u,{class:"admin-del",text:"Удалить",onClick:p=>s(h.id)},null,8,["onClick"]),i.createElementVNode("div",rf,i.toDisplayString(f+1),1),i.createVNode(Vi,{modelValue:e.value.phones[f],"onUpdate:modelValue":p=>e.value.phones[f]=p},null,8,["modelValue","onUpdate:modelValue"])]))),128))],4),i.createElementVNode("div",{class:"contact-container",style:i.normalizeStyle({background:e.value.emails.length?"":"#F9FAFB"})},[i.createElementVNode("div",sf,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({color:e.value.emails.length?"#303133":"#c4c4c4"})},"Электронная почта",4),i.createVNode(u,{class:"admin-add",text:"+ Добавить",onClick:c[5]||(c[5]=h=>n())})]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.value.emails,(h,f)=>(i.openBlock(),i.createElementBlock("div",{key:h.id,class:"contact-container-item"},[i.createVNode(u,{class:"admin-del",text:"Удалить",onClick:p=>o(h.id)},null,8,["onClick"]),i.createElementVNode("div",af,i.toDisplayString(f+1),1),i.createVNode(Ai,{modelValue:e.value.emails[f],"onUpdate:modelValue":p=>e.value.emails[f]=p},null,8,["modelValue","onUpdate:modelValue"])]))),128))],4)],64)}}}),[["__scopeId","data-v-5abf9c52"]]),As=i.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(n.x),s=i.ref(n.y),a=i.computed(()=>r.value+"px"),c=i.computed(()=>s.value+"px"),d=()=>{o("close")};return(u,h)=>{const f=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"context-window",style:i.normalizeStyle({left:i.unref(a),top:i.unref(c)})},[i.renderSlot(u.$slots,"default")],4)),[[f,d]])}}}),lf={class:"date-range"},Vs=M(i.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(t,{emit:e}){const n=t,o=e;i.watch(()=>[n.start,n.end],()=>{n.start||(r.value=void 0),n.end||(s.value=void 0)});const r=i.ref(n.start),s=i.ref(n.end),a=d=>{if(r.value=d,!n.end||d>n.end){R.Notification.Warning("Дата начала больше даты окончания");return}o("update:start",d),o("setStart",d)},c=d=>{if(s.value=d,!n.start||d<n.start){R.Notification.Warning("Дата начала больше даты окончания");return}o("update:end",d),o("setEnd",d)};return(d,u)=>{const h=xi;return i.openBlock(),i.createElementBlock("div",lf,[i.createVNode(h,{"model-value":i.unref(r),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(r)?r.value=f:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=i.createTextVNode(" - ")),i.createVNode(h,{"model-value":i.unref(s),"onUpdate:modelValue":u[1]||(u[1]=f=>i.isRef(s)?s.value=f:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-aac32b2f"]]),cf=i.defineComponent({name:"DateInputRangeV2"}),df={class:"date-range"};function uf(t,e,n,o,r,s){return i.openBlock(),i.createElementBlock("div",df,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ps=M(cf,[["render",uf],["__scopeId","data-v-80580591"]]),hf={class:"drop-item"},ff={key:0,class:"drop-item-list"},Fs=M(i.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(t){const e=t,n=i.ref(e.rolledUp),o=async()=>{n.value=!n.value};return(r,s)=>{const a=we,c=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",hf,[i.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=d=>o())},[i.createVNode(a,{"font-size":"13px","font-weight":"600",string:t.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),i.createElementVNode("div",{style:i.normalizeStyle({transform:i.unref(n)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[i.createVNode(c,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",ff,[i.renderSlot(r.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-75ec18f4"]]),Ts=M(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new Gn,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,o=i.ref(!1),r=e,s=()=>{n.model.setBoolean(o.value),o.value?ee.Get().setF(n.model):ee.Get().removeF(n.model),r("load")};return(a,c)=>{const d=qn;return i.openBlock(),i.createBlock(d,{modelValue:i.unref(o),"onUpdate:modelValue":c[0]||(c[0]=u=>i.isRef(o)?o.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-ae33ede2"]]),mf={key:0,class:"blur"},pf={style:{display:"flex","justify-content":"center"}},st=M(i.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"#1979CF"},borderColor:{type:String,required:!1,default:"#E3E3E3"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(t,{emit:e}){const n=t,o=e,r=n.customClass!==""?n.customClass:"inside-class",s=i.ref(!1),a=i.ref(!1),c=i.ref(!1),d=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=z=>{z.stopPropagation(),z.key==="Escape"&&(n.showSaveDialog?c.value=!0:a.value=!1)};i.watch(a,async()=>{var z,F;await i.nextTick(),a.value?((F=(z=document.getElementById("info-item-opened-content"))==null?void 0:z.querySelector("input"))==null||F.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&o("after-close")});const h=()=>{o("click"),a.value=!!n.withOpenWindow,d.value!==n.close&&(a.value=!1,d.value=!d.value)},f=i.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),p=i.computed(()=>a.value&&n.withOpenWindow),y=i.computed(()=>({background:n.background?n.background:void 0,zIndex:p.value?"2":"0",padding:p.value?"0":n.padding,margin:n.margin,width:p.value?n.openWidth:n.width,height:p.value?n.openHeight:n.height,minHeight:"40px",maxWidth:n.maxWidth,minWidth:n.minWidth,borderColor:s.value||a.value?n.colorSelected:n.borderColor,color:s.value?n.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:p.value?"end":"center",cursor:(n.withHover,"pointer")})),g=i.computed(()=>({height:p.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),k=i.computed(()=>({height:p.value?"auto":"0"})),b=i.computed(()=>({color:s.value?n.colorSelected:"#343E5C",fill:s.value?n.colorSelected:"#343E5C",background:n.background})),I=()=>{n.showSaveDialog?c.value=!0:a.value=!1},L=async()=>{await o("keyup-enter"),n.close&&(a.value=!1),c.value=!1},O=()=>{a.value=!1,c.value=!1};return(z,F)=>{const Ee=we,Ie=pe,Ze=Ut,vt=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",mf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:F[2]||(F[2]=i.withModifiers(Dn=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(r)]),style:i.normalizeStyle(i.unref(y)),onMouseenter:F[0]||(F[0]=Dn=>t.withHover?s.value=!0:s.value=!1),onMouseleave:F[1]||(F[1]=Dn=>s.value=!1)},[i.unref(a)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["close-window",t.customClass]),style:i.normalizeStyle(i.unref(g))},[i.renderSlot(z.$slots,"default",{},void 0,!0)],6)),i.unref(a)?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:i.normalizeStyle(i.unref(k))},[i.renderSlot(z.$slots,"open-inside-content",{},void 0,!0)],4)),[[vt,I,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(b))},[i.renderSlot(z.$slots,"title",{},()=>[i.createVNode(Ee,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:i.normalizeStyle({color:i.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),i.createVNode(Ze,{show:i.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",pf,[i.createVNode(Ie,{text:"Не сохранять",onClick:O}),i.createVNode(Ie,{text:"Сохранять",onClick:L})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-4788a262"]]),zs=M(i.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,o=i.ref(void 0),r=async a=>{ee.Get().replaceF(a,o.value),o.value=a,ee.Get().p.drop()},s=async a=>{await r(a),n("load")};return(a,c)=>{const d=we,u=pe,h=Wt,f=st;return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:t.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),i.createVNode(f,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:i.withCtx(()=>c[0]||(c[0]=[])),default:i.withCtx(()=>[i.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(p,y)=>(i.openBlock(),i.createBlock(u,{key:y,color:"blue",height:"auto",text:p.label,"is-toggle":p.valueEq(i.unref(o)),"toggle-mode":!0,inverse:t.inverse,onClick:g=>s(p.valueEq(i.unref(o))?void 0:p)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-04775fc7"]]),gf=["value","label"],Ds=M(i.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,o=ee.Get(),r=i.ref(void 0),s=async c=>{o.replaceF(c,r.value),r.value=c},a=async c=>{c?await s(r.value):await s(void 0),n("load")};return(c,d)=>{const u=rt;return i.openBlock(),i.createBlock(u,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(r)?r.value=h:null),clearable:i.unref(r),placeholder:t.defaultLabel,onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:h,label:h.label},null,8,gf))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ea2463cc"]]),Ls=M(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-a4a3cc13"]]),Os=M(i.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"#ffffff"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"10px"},borderColor:{type:String,required:!1,default:"#343D5C"},margin:{type:String,required:!1,default:"5px"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"14px"},withIcon:{type:Boolean,required:!1,default:!1}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock("div",{class:"general-block-item",style:i.normalizeStyle({background:t.background,height:t.height,width:t.width,borderColor:t.borderColor,padding:t.padding,margin:t.margin,transform:t.scale&&i.unref(e)?"scale(1.03, 1.03)":""}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},[i.createElementVNode("div",{class:"green",style:i.normalizeStyle({width:`${t.ready}`})},null,4),i.createElementVNode("div",{class:"general-block-item-title",style:i.normalizeStyle({fontSize:t.fontSize})},[i.renderSlot(n.$slots,"general-item",{},void 0,!0)],4),i.createElementVNode("div",{class:"tools-icon",style:i.normalizeStyle({display:t.withIcon?"flex":"none"})},o[2]||(o[2]=[i.createElementVNode("svg",{class:"icon-del"},[i.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[i.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-d7e51e08"]]),Pi=M(i.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),i.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-40934683"]]),Fi=M(i.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),i.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-496ff188"]]),_s=M(i.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[i.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-11a9207f"]]),Hs=M(i.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#edit"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-74cd505c"]]),qs=M(i.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#email"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-b89c9521"]]),Us=M(i.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[i.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-47aba5d0"]]),Ws=M(i.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#phone"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cb2db6a7"]]),Ti=M(i.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#search"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1b900a88"]]),zi=M(i.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-31d7e282"]]),Di=M(i.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-ac346343"]]),Li=M(i.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-646afc45"]]),Oi=M(i.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),o[3]||(o[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-ef44f40e"]]),_i=M(i.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:o[0]||(o[0]=r=>e.value=!0),onMouseleave:o[1]||(o[1]=r=>e.value=!1)},o[2]||(o[2]=[i.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),o[3]||(o[3]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1c5f4e97><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1c5f4e97><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-1c5f4e97></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-1c5f4e97></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-1c5f4e97></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1c5f4e97"]]);function Gs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gs(Object(n),!0).forEach(function(o){Me(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Me(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yf(t,e){if(t==null)return{};var n,o,r=function(a,c){if(a==null)return{};var d,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)d=f[u],c.indexOf(d)>=0||(h[d]=a[d]);return h}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)n=s[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function at(t){return function(e){if(Array.isArray(e))return Hi(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return Hi(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Hi(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
24
24
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Hi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var js,wf,In,te=(js=function(t){/*!
|
|
25
25
|
Copyright (c) 2018 Jed Watson.
|
|
26
26
|
Licensed under the MIT License (MIT), see
|
package/dist/store/Store.d.ts
CHANGED
package/package.json
CHANGED