@topvisor/ui 1.5.10-hotkeys.2 → 1.5.10-hotkeys.3
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/.chunks/forms-CjJD60m3.es.amd.js.map +1 -1
- package/.chunks/forms-CjJD60m3.es.js.map +1 -1
- package/.chunks/formsExt-CT5_dKnt.es.amd.js +2 -0
- package/.chunks/formsExt-CT5_dKnt.es.amd.js.map +1 -0
- package/.chunks/{formsExt-B9hGGznb.es.js → formsExt-CT5_dKnt.es.js} +15 -11
- package/.chunks/formsExt-CT5_dKnt.es.js.map +1 -0
- package/assets/forms.css +1 -1
- package/assets/project.css +1 -1
- package/autoload-css-manifest.amd.json +1 -1
- package/autoload-css-manifest.json +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +1 -1
- package/package.json +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +366 -390
- package/project/project.js.map +1 -1
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +199 -1
- package/src/components/project/project.d.ts +0 -1
- package/src/components/project/projectSelector/cache.d.ts +2 -2
- package/src/components/project/projectSelector/utils.d.ts +6 -4
- package/.chunks/formsExt-B9hGGznb.es.amd.js +0 -2
- package/.chunks/formsExt-B9hGGznb.es.amd.js.map +0 -1
- package/.chunks/formsExt-B9hGGznb.es.js.map +0 -1
- package/src/components/project/navigation/navigateCache.d.ts +0 -15
- package/src/components/project/navigation/navigation.d.ts +0 -4
|
@@ -401,6 +401,204 @@ export declare const useAPI: (api: Props["api"], apiSetSearchParams: Props["apiS
|
|
|
401
401
|
}[]>;
|
|
402
402
|
isLoading: Ref<boolean, boolean>;
|
|
403
403
|
countLoading: Ref<number, number>;
|
|
404
|
-
load: (append: boolean) => Promise<
|
|
404
|
+
load: (append: boolean) => Promise<{
|
|
405
|
+
[x: string]: any;
|
|
406
|
+
id: number | typeof ITEM_ID_NEW;
|
|
407
|
+
name: string;
|
|
408
|
+
listItemProps?: {
|
|
409
|
+
type?: "button" | "formControls" | "regular" | "title" | "delimiter" | undefined;
|
|
410
|
+
closeByClick?: boolean | undefined;
|
|
411
|
+
class?: string | undefined;
|
|
412
|
+
attrs?: {
|
|
413
|
+
style?: string | undefined;
|
|
414
|
+
title?: string | undefined;
|
|
415
|
+
id?: string | undefined;
|
|
416
|
+
dir?: string | undefined;
|
|
417
|
+
hidden?: string | undefined;
|
|
418
|
+
contextmenu?: string | undefined;
|
|
419
|
+
lang?: string | undefined;
|
|
420
|
+
tabindex?: string | undefined;
|
|
421
|
+
color?: string | undefined;
|
|
422
|
+
contenteditable?: string | undefined;
|
|
423
|
+
onCopy?: string | undefined;
|
|
424
|
+
onCut?: string | undefined;
|
|
425
|
+
onPaste?: string | undefined;
|
|
426
|
+
onCompositionend?: string | undefined;
|
|
427
|
+
onCompositionstart?: string | undefined;
|
|
428
|
+
onCompositionupdate?: string | undefined;
|
|
429
|
+
onDrag?: string | undefined;
|
|
430
|
+
onDragend?: string | undefined;
|
|
431
|
+
onDragenter?: string | undefined;
|
|
432
|
+
onDragexit?: string | undefined;
|
|
433
|
+
onDragleave?: string | undefined;
|
|
434
|
+
onDragover?: string | undefined;
|
|
435
|
+
onDragstart?: string | undefined;
|
|
436
|
+
onDrop?: string | undefined;
|
|
437
|
+
onFocus?: string | undefined;
|
|
438
|
+
onFocusin?: string | undefined;
|
|
439
|
+
onFocusout?: string | undefined;
|
|
440
|
+
onBlur?: string | undefined;
|
|
441
|
+
onChange?: string | undefined;
|
|
442
|
+
onBeforeinput?: string | undefined;
|
|
443
|
+
onFormdata?: string | undefined;
|
|
444
|
+
onInput?: string | undefined;
|
|
445
|
+
onReset?: string | undefined;
|
|
446
|
+
onSubmit?: string | undefined;
|
|
447
|
+
onInvalid?: string | undefined;
|
|
448
|
+
onFullscreenchange?: string | undefined;
|
|
449
|
+
onFullscreenerror?: string | undefined;
|
|
450
|
+
onLoad?: string | undefined;
|
|
451
|
+
onError?: string | undefined;
|
|
452
|
+
onKeydown?: string | undefined;
|
|
453
|
+
onKeypress?: string | undefined;
|
|
454
|
+
onKeyup?: string | undefined;
|
|
455
|
+
onDblclick?: string | undefined;
|
|
456
|
+
onMousedown?: string | undefined;
|
|
457
|
+
onMouseenter?: string | undefined;
|
|
458
|
+
onMouseleave?: string | undefined;
|
|
459
|
+
onMousemove?: string | undefined;
|
|
460
|
+
onMouseout?: string | undefined;
|
|
461
|
+
onMouseover?: string | undefined;
|
|
462
|
+
onMouseup?: string | undefined;
|
|
463
|
+
onAbort?: string | undefined;
|
|
464
|
+
onCanplay?: string | undefined;
|
|
465
|
+
onCanplaythrough?: string | undefined;
|
|
466
|
+
onDurationchange?: string | undefined;
|
|
467
|
+
onEmptied?: string | undefined;
|
|
468
|
+
onEncrypted?: string | undefined;
|
|
469
|
+
onEnded?: string | undefined;
|
|
470
|
+
onLoadeddata?: string | undefined;
|
|
471
|
+
onLoadedmetadata?: string | undefined;
|
|
472
|
+
onLoadstart?: string | undefined;
|
|
473
|
+
onPause?: string | undefined;
|
|
474
|
+
onPlay?: string | undefined;
|
|
475
|
+
onPlaying?: string | undefined;
|
|
476
|
+
onProgress?: string | undefined;
|
|
477
|
+
onRatechange?: string | undefined;
|
|
478
|
+
onSeeked?: string | undefined;
|
|
479
|
+
onSeeking?: string | undefined;
|
|
480
|
+
onStalled?: string | undefined;
|
|
481
|
+
onSuspend?: string | undefined;
|
|
482
|
+
onTimeupdate?: string | undefined;
|
|
483
|
+
onVolumechange?: string | undefined;
|
|
484
|
+
onWaiting?: string | undefined;
|
|
485
|
+
onSelect?: string | undefined;
|
|
486
|
+
onScroll?: string | undefined;
|
|
487
|
+
onScrollend?: string | undefined;
|
|
488
|
+
onTouchcancel?: string | undefined;
|
|
489
|
+
onTouchend?: string | undefined;
|
|
490
|
+
onTouchmove?: string | undefined;
|
|
491
|
+
onTouchstart?: string | undefined;
|
|
492
|
+
onAuxclick?: string | undefined;
|
|
493
|
+
onClick?: string | undefined;
|
|
494
|
+
onContextmenu?: string | undefined;
|
|
495
|
+
onGotpointercapture?: string | undefined;
|
|
496
|
+
onLostpointercapture?: string | undefined;
|
|
497
|
+
onPointerdown?: string | undefined;
|
|
498
|
+
onPointermove?: string | undefined;
|
|
499
|
+
onPointerup?: string | undefined;
|
|
500
|
+
onPointercancel?: string | undefined;
|
|
501
|
+
onPointerenter?: string | undefined;
|
|
502
|
+
onPointerleave?: string | undefined;
|
|
503
|
+
onPointerover?: string | undefined;
|
|
504
|
+
onPointerout?: string | undefined;
|
|
505
|
+
onBeforetoggle?: string | undefined;
|
|
506
|
+
onToggle?: string | undefined;
|
|
507
|
+
onWheel?: string | undefined;
|
|
508
|
+
onAnimationcancel?: string | undefined;
|
|
509
|
+
onAnimationstart?: string | undefined;
|
|
510
|
+
onAnimationend?: string | undefined;
|
|
511
|
+
onAnimationiteration?: string | undefined;
|
|
512
|
+
onSecuritypolicyviolation?: string | undefined;
|
|
513
|
+
onTransitioncancel?: string | undefined;
|
|
514
|
+
onTransitionend?: string | undefined;
|
|
515
|
+
onTransitionrun?: string | undefined;
|
|
516
|
+
onTransitionstart?: string | undefined;
|
|
517
|
+
innerHTML?: string | undefined;
|
|
518
|
+
accesskey?: string | undefined;
|
|
519
|
+
draggable?: string | undefined;
|
|
520
|
+
enterkeyhint?: string | undefined;
|
|
521
|
+
enterKeyHint?: string | undefined;
|
|
522
|
+
inert?: string | undefined;
|
|
523
|
+
placeholder?: string | undefined;
|
|
524
|
+
spellcheck?: string | undefined;
|
|
525
|
+
translate?: string | undefined;
|
|
526
|
+
radiogroup?: string | undefined;
|
|
527
|
+
role?: string | undefined;
|
|
528
|
+
about?: string | undefined;
|
|
529
|
+
datatype?: string | undefined;
|
|
530
|
+
inlist?: string | undefined;
|
|
531
|
+
prefix?: string | undefined;
|
|
532
|
+
property?: string | undefined;
|
|
533
|
+
resource?: string | undefined;
|
|
534
|
+
typeof?: string | undefined;
|
|
535
|
+
vocab?: string | undefined;
|
|
536
|
+
autocapitalize?: string | undefined;
|
|
537
|
+
autocorrect?: string | undefined;
|
|
538
|
+
autosave?: string | undefined;
|
|
539
|
+
itemprop?: string | undefined;
|
|
540
|
+
itemscope?: string | undefined;
|
|
541
|
+
itemtype?: string | undefined;
|
|
542
|
+
itemid?: string | undefined;
|
|
543
|
+
itemref?: string | undefined;
|
|
544
|
+
results?: string | undefined;
|
|
545
|
+
security?: string | undefined;
|
|
546
|
+
unselectable?: string | undefined;
|
|
547
|
+
inputmode?: string | undefined;
|
|
548
|
+
is?: string | undefined;
|
|
549
|
+
exportparts?: string | undefined;
|
|
550
|
+
part?: string | undefined;
|
|
551
|
+
"aria-activedescendant"?: string | undefined;
|
|
552
|
+
"aria-atomic"?: string | undefined;
|
|
553
|
+
"aria-autocomplete"?: string | undefined;
|
|
554
|
+
"aria-busy"?: string | undefined;
|
|
555
|
+
"aria-checked"?: string | undefined;
|
|
556
|
+
"aria-colcount"?: string | undefined;
|
|
557
|
+
"aria-colindex"?: string | undefined;
|
|
558
|
+
"aria-colspan"?: string | undefined;
|
|
559
|
+
"aria-controls"?: string | undefined;
|
|
560
|
+
"aria-current"?: string | undefined;
|
|
561
|
+
"aria-describedby"?: string | undefined;
|
|
562
|
+
"aria-details"?: string | undefined;
|
|
563
|
+
"aria-disabled"?: string | undefined;
|
|
564
|
+
"aria-dropeffect"?: string | undefined;
|
|
565
|
+
"aria-errormessage"?: string | undefined;
|
|
566
|
+
"aria-expanded"?: string | undefined;
|
|
567
|
+
"aria-flowto"?: string | undefined;
|
|
568
|
+
"aria-grabbed"?: string | undefined;
|
|
569
|
+
"aria-haspopup"?: string | undefined;
|
|
570
|
+
"aria-hidden"?: string | undefined;
|
|
571
|
+
"aria-invalid"?: string | undefined;
|
|
572
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
573
|
+
"aria-label"?: string | undefined;
|
|
574
|
+
"aria-labelledby"?: string | undefined;
|
|
575
|
+
"aria-level"?: string | undefined;
|
|
576
|
+
"aria-live"?: string | undefined;
|
|
577
|
+
"aria-modal"?: string | undefined;
|
|
578
|
+
"aria-multiline"?: string | undefined;
|
|
579
|
+
"aria-multiselectable"?: string | undefined;
|
|
580
|
+
"aria-orientation"?: string | undefined;
|
|
581
|
+
"aria-owns"?: string | undefined;
|
|
582
|
+
"aria-placeholder"?: string | undefined;
|
|
583
|
+
"aria-posinset"?: string | undefined;
|
|
584
|
+
"aria-pressed"?: string | undefined;
|
|
585
|
+
"aria-readonly"?: string | undefined;
|
|
586
|
+
"aria-relevant"?: string | undefined;
|
|
587
|
+
"aria-required"?: string | undefined;
|
|
588
|
+
"aria-roledescription"?: string | undefined;
|
|
589
|
+
"aria-rowcount"?: string | undefined;
|
|
590
|
+
"aria-rowindex"?: string | undefined;
|
|
591
|
+
"aria-rowspan"?: string | undefined;
|
|
592
|
+
"aria-selected"?: string | undefined;
|
|
593
|
+
"aria-setsize"?: string | undefined;
|
|
594
|
+
"aria-sort"?: string | undefined;
|
|
595
|
+
"aria-valuemax"?: string | undefined;
|
|
596
|
+
"aria-valuemin"?: string | undefined;
|
|
597
|
+
"aria-valuenow"?: string | undefined;
|
|
598
|
+
"aria-valuetext"?: string | undefined;
|
|
599
|
+
} | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
}[] | undefined>;
|
|
602
|
+
getNextOffset: () => number | null | undefined;
|
|
405
603
|
setSearchTextAndLoad: (newSearchText: string, useDebounce?: boolean) => void;
|
|
406
604
|
};
|
|
@@ -5,7 +5,6 @@ export { findRegion, genSearcherByKey, dialogRegionSelector } from './regionSele
|
|
|
5
5
|
export { default as TopGroupSelector } from './groupSelector/groupSelector.vue';
|
|
6
6
|
export { default as TopProjectSelector } from './projectSelector/projectSelector.vue';
|
|
7
7
|
export { clearCache as topProjectSelectorClearCache } from './projectSelector/cache';
|
|
8
|
-
export { navigateToAdjacentProject } from './navigation/navigation';
|
|
9
8
|
export type { Emits as TopTagSelectorEmits, Tag, TagId, TagIdExclude } from './tagSelector/types';
|
|
10
9
|
export { genElPopupOpener as genElTopTagSelectorPopupOpener, renderElPopupOpener as renderElTopTagSelectorPopupOpener, } from './tagSelector/utils/el';
|
|
11
10
|
export { default as TopTagSelector } from './tagSelector/tagSelector.vue';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Project } from './types';
|
|
2
2
|
import { Ref, ShallowRef } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Promise текущего выполняющегося запроса на получение проектов.
|
|
@@ -24,7 +24,7 @@ export declare const projectsRequest: Ref<{
|
|
|
24
24
|
*
|
|
25
25
|
* @todo Добавить поддержку моков
|
|
26
26
|
*/
|
|
27
|
-
export declare const projectsCache: ShallowRef<
|
|
27
|
+
export declare const projectsCache: ShallowRef<Project[] | undefined, Project[] | undefined>;
|
|
28
28
|
export declare const setCacheTotal: (projectsTotal: number) => void;
|
|
29
29
|
export declare const getCacheTotal: () => number | undefined;
|
|
30
30
|
/**
|
|
@@ -6,6 +6,12 @@ import { components } from 'topvisor-openapi/src/ts/TV/API/Types/UrlShort';
|
|
|
6
6
|
* Сгенерировать элемент для TopSelector
|
|
7
7
|
*/
|
|
8
8
|
export declare const genProjectItem: (project: Project) => Item;
|
|
9
|
+
/**
|
|
10
|
+
* Подготовить данные проектов для отображения:
|
|
11
|
+
* - добавить `listItemProps` для шаблона TopSelector
|
|
12
|
+
* - добавить заголовки к категориям
|
|
13
|
+
*/
|
|
14
|
+
export declare const prepareProjects: (projects: Project[] | undefined) => Item[] | undefined;
|
|
9
15
|
export declare const navigateToProject: (projectId: number) => void;
|
|
10
16
|
/**
|
|
11
17
|
* Сгенерировать ссылку на страницу проекта с инструментом
|
|
@@ -35,10 +41,6 @@ export declare const genProjectExternalLink: (url: string) => string;
|
|
|
35
41
|
export declare const apiSetSearchParamsFilter: (api: NonNullable<Props["api"]>, search: string) => void;
|
|
36
42
|
/**
|
|
37
43
|
* Создать API запрос на получение списка проектов
|
|
38
|
-
*
|
|
39
|
-
* Данные после загрузки преобразуются с помощью `prepareProjects()`
|
|
40
|
-
*
|
|
41
|
-
* @see prepareProjects
|
|
42
44
|
*/
|
|
43
45
|
export declare const genApiGetProjects: (client: Api.Client<Api.TV.Paths, true>) => Api.ClientRequest<Api.ClientRequestContext< paths, "/get/projects_2/projects/", true>, ("name" | "id" | "on" | "right" | "user_id" | "url")[], Api.Params<Api.ClientRequestContext< paths, "/get/projects_2/projects/", true>, undefined, {
|
|
44
46
|
"COUNT(*)"?: any;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
define([`require`,`exports`,`./api-nVBtzTDk.es.amd`,`./forms-CjJD60m3.es.amd`,`../utils/keyboard.amd`,`./popup-q1PRZblX.es.amd`,`vue`,`../require/css.amd!../assets/formsExt.css`],function(e,t,n,r,i,a,o){"use strict";if(s===void 0)var s=window.Vue;Object.defineProperty(t,"__esModule",{value:!0}),t.u=t.t=t.s=t.r=t.p=t.o=t.n=t.l=t.i=t.f=t.d=t.c=t.a=void 0;var c={key:0,class:`top-menu_selectAll`},l=(0,o.defineComponent)({__name:`menu`,props:(0,o.mergeModels)({modelValue:{},items:{},isMultiple:{type:Boolean},canBeEmptyMultiple:{type:Boolean},styling:{default:`default`},selectAllItem:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,o.useModel)(e,`modelValue`),i=(0,o.ref)();!t.isMultiple&&typeof n.value!=`string`&&typeof n.value!=`number`&&console.warn(`Type check failed for prop "modelValue". Expected String: `+typeof n.value),t.isMultiple&&!Array.isArray(n.value)&&console.warn(`Type check failed for prop "modelValue". Expected Array: `+typeof n.value),t.isMultiple&&!t.canBeEmptyMultiple&&Array.isArray(n.value)&&!n.value.length&&t.items[0]&&(n.value=[t.items[0]?.href??t.items[0]?.value]);let a=e=>Array.isArray(n.value)?n.value.includes(e.value):e.value===n.value,s=(e,r=!1)=>{if(Array.isArray(n.value)){let i=n.value.slice();if(r){i.length||(i=t.items.map(e=>e.value));let n=i.indexOf(e.value);n===-1?i.push(e.value):i.splice(n,1)}else i=i.length===1&&i[0]===e.value?[]:[e.value];!t.canBeEmptyMultiple&&!i.length&&(i=[e.value]),n.value=i;return}n.value=e.value},l=e=>{if(i.value.scrollWidth<=i.value.offsetWidth||e.shiftKey||Math.abs(e.deltaY)<50)return;e.preventDefault();let t=e.deltaY>0?30:-30;i.value.scrollLeft=i.value.scrollLeft+t},u=(e=!0)=>{let t=i.value.querySelector(`.top-active`);if(!t)return;let n=t.offsetLeft-i.value.offsetLeft-24,a=t.offsetLeft-i.value.offsetLeft+t.clientWidth+24,o=i.value.scrollLeft,s=i.value.clientWidth+i.value.scrollLeft,c;n<o&&(c=n),a>s&&(c=a-i.value.clientWidth),c!==void 0&&((0,r.G)()?r.O.$?.(i.value).animate({scrollLeft:c},e?200:0):i.value.scrollTo({left:c,behavior:e?`smooth`:`auto`}))},d=()=>{if(Array.isArray(n.value)){if(n.value.length===t.items.length){n.value=[t.items[0].href??t.items[0].value];return}n.value=t.items.map(e=>e.href??e.value)}};return(0,o.onMounted)(()=>u(!1)),(0,o.onUpdated)(()=>u(!0)),(t,u)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`el`,ref:i,class:(0,o.normalizeClass)({"top-menu":!0,[`top-style_`+e.styling]:!0}),onWheel:l},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createBlock)(r.h,(0,o.mergeProps)({ref_for:!0},e,{class:`top-menu_item`,color:`theme`,onClick:t=>s(e,t.ctrlKey||t.metaKey),isActive:a(e)}),(0,o.createSlots)({_:2},[e.content?{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.content),1)]),key:`0`}:void 0]),1040,[`onClick`,`isActive`]))),256)),Array.isArray(n.value)&&e.selectAllItem?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,c,[(0,o.createVNode)(r.h,(0,o.mergeProps)(e.selectAllItem,{class:`top-menu_item`,color:`theme`,styling:``,onClick:u[0]||=e=>d(),isActive:n.value.length===e.items.length}),(0,o.createSlots)({_:2},[e.selectAllItem.content?{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.selectAllItem.content),1)]),key:`0`}:void 0]),1040,[`isActive`])])):(0,o.createCommentVNode)(``,!0)],34))}}),u={class:`top-selector2_itemMulti top-ellipsis`},d=(0,o.defineComponent)({__name:`itemMulti`,props:{id:{},name:{}},emits:[`delete`],setup(e,{emit:t}){return(n,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,u,[(0,o.createTextVNode)((0,o.toDisplayString)(e.name)+` `,1),(0,o.createElementVNode)(`span`,{class:`top-selector2_itemMultiDelete`,"data-top-icon":``,onClick:r[0]||=n=>t(`delete`,{id:e.id,name:e.name}),onMousedown:r[1]||=(0,o.withModifiers)(()=>{},[`stop`])},null,32)]))}}),f=new Map,p=new Map,m=new Map,h=e=>(m.has(e)||m.set(e,(0,o.ref)(0)),m.get(e)),g=e=>{h(e).value++},_=e=>{f.get(e)?.clear(),g(e)},v=(e,t)=>{f.get(e)?.forEach(e=>t(e))},y=(e,t)=>{p.get(e)?.forEach(e=>t(e))},b=(e,t,n)=>{y(e,e=>{let r=!1;if(Array.isArray(e.value))e.value.filter(e=>e.id===t).forEach(e=>{Object.assign(e,n),r=!0});else{if(e.value.id!==t)return;Object.assign(e.value,n),r=!0}r&&(0,o.triggerRef)(e)})},x=e=>{let t=window.mo?.user?.id;return JSON.stringify(e.params)+`:`+e.url+`:`+t},S=(e,t)=>{let n=f.get(t)?.get(e);if(n)return n.result=n.result.map(e=>({...e})),n},C=(e,t,n)=>{f.has(t)||f.set(t,new Map),f.get(t)?.set(e,n)},w=(e,t)=>{p.has(e)||p.set(e,new Set),p.get(e)?.add(t),(0,o.onUnmounted)(()=>p.get(e)?.delete(t))},T=(e,t,n)=>{v(e,e=>{let r=e.result.find(e=>e.id===t);r&&Object.assign(r,n)}),b(e,t,n),g(e)},E=(e,t)=>{v(e,e=>{let n=e.result.findIndex(e=>e.id===t);n!==-1&&(e.result.splice(n,1),e.nextOffset&&e.nextOffset--)}),b(e,t,{name:`--`}),g(e)},D=(e,t,n,i,a)=>{let s=(0,o.ref)([]),c=(0,o.ref)(!1),l=(0,o.ref)(0),u=``,d;e&&!e.params.limit&&(e.params.limit=100),e&&w(e.path,a);let f=()=>{if(!e)return;e.params.offset=0;let t=S(x(e),e.path);if(!t){s.value=[],d=void 0;return}s.value=t.result,d=t.nextOffset};e&&i&&(0,o.watch)(h(e.path),()=>{f()});let p=async()=>{if(!e)return;let t=i?x(e):void 0;if(t){let n=S(t,e.path);if(n)return e.abortByFingerprint(),n}let n=await e.call();if(n.errors)return;if(!Array.isArray(n.result)){console.warn("Array expected in `res.result`");return}let r=n.result.findIndex(e=>e.id===void 0||e.name===void 0);if(r!==-1){console.warn(`В result[${r}] нет id или name`);return}return t&&C(t,e.path,n),n},m=async n=>{if(!e)return;if(n){if(!d||c.value)return;e.params.offset=d}else e.params.offset=0;t?.(e,u),c.value=!0;let r=await p();c.value=!1,l.value++,r&&(d=r.nextOffset,n?s.value=s.value.concat(r.result):s.value=r.result)},g=(0,r.P)(()=>m(!1),200);return{apiRequest:e,items:s,isLoading:c,countLoading:l,load:m,setSearchTextAndLoad:(t,r=!0)=>{if(e){if(t.length<n){e.abortByFingerprint(),s.value=[];return}t===u&&s.value.length||(u=t,r?g():m(!1))}}}},O=0,k=null,A=(e,t,n=!0)=>n&&t.id===null?Array.isArray(e)?e.some(e=>e.id===t.id&&e.name===t.name):t.name===e.name:Array.isArray(e)?e.some(e=>e.id===t.id):t.id===e.id,j=(e,t,r)=>{let i=e.params.filters??[];i=i.filter(e=>e.name!==r),t&&i.push((0,n.i)(r,`CONTAINS`,[t])),e.changeParams({filters:i})},M=(e,t,n,a)=>{let s=(0,o.ref)(``),c={id:0,name:(0,r.E)().Common.All},l=()=>{s.value=``},u=()=>!(!a.apiRequest||s.value.length>=t.minLength),d=(0,o.computed)(()=>{let e=[];return!t.multiselect&&t.useAllItem&&(typeof t.useAllItem==`string`&&(c.name=t.useAllItem),e.push(c)),t.items?.forEach(t=>e.push(t)),e}),f=(0,o.ref)([]),p=(0,o.ref)(t.itemsChunkSize),m=()=>{f.value=_()},h=()=>{t.itemsChunkSize&&p.value!==void 0&&(p.value+=t.itemsChunkSize)},g=()=>{t.itemsChunkSize&&(p.value=t.itemsChunkSize)},_=()=>{let n=s.value.toLowerCase(),r=(0,i.invertKeyboardLayout)(n),o=[],c,l=[],u=()=>{l.at(-1)?.listItemProps?.type===`delimiter`&&l.pop(),l.length&&=(c&&o.push(c),o.push(...l),0)},f=e=>{let i=t.searchFields?.includes(`id`),a=e.name.toLowerCase(),o=t.searchFields?.filter(e=>e!==`id`).map(t=>typeof e[t]==`string`||typeof e[t]==`number`?e[t]:``).join(`☼`).toLowerCase();(i&&e.id===Number(n)||o?.includes(n)||o?.includes(r))&&(a===n||a===r?l.unshift(e):l.push(e))};for(let e of d.value)switch(e.listItemProps?.type){case`title`:u(),c=e;break;case`delimiter`:if(l.length){let t=l.length;l.at(-1)?.listItemProps?.type===`delimiter`&&t--,l[t]=e}break;default:f(e)}if(u(),o.push(...a.items.value),t.itemsChunkSize&&!a.apiRequest&&(o=o.slice(0,p.value)),t.appendSearchToResult&&s.value&&(!t.appendSearchToResultCond||t.appendSearchToResultCond(n))&&(t.appendSearchAllowDuplicate||!o.find(e=>e.name.toLowerCase()===n))){let e={id:null,name:s.value};t.appendWithoutSelect&&(e.listItemProps={closeByClick:!1}),o.push(e)}return t.multiselect&&(o=o.filter(t=>!A(e.value,t))),t.prepareItemsBeforeRender&&(o=t.prepareItemsBeforeRender(o)),o},v=r=>{r.listItemProps?.type!==`title`&&r.listItemProps?.type!==`delimiter`&&(r.id===null&&(n(`appendItem`,r),t.appendWithoutSelect)||(t.multiselect&&Array.isArray(e.value)?A(e.value,r)||(e.value=[...e.value,r]):e.value=r,setTimeout(()=>{l()})))};if(a.apiRequest){let n=[()=>t.items,a.items];t.multiselect&&n.push(e),(0,o.watch)(n,()=>{m()},{deep:2})}else(0,o.watch)(s,()=>{g()}),(0,o.watch)([e,()=>t.items,s,p],()=>{m()},{immediate:!0,deep:2}),(0,o.watch)([()=>t.items?.length??0,()=>t.items],async(n,r)=>{(n[0]<r[0]||n[1]!==r[1])&&(await(0,o.nextTick)(),(Array.isArray(e.value)?e.value:[e.value]).forEach(e=>{e.id!==c.id&&(t.items?.find(t=>t.id===e.id)||(e.name=`--`))}))});return{searchText:s,resetSearch:l,genIsShort:u,itemsForShow:f,revelItemsForShow:h,resetItemsForShow:g,selectItem:v,selectNextItem:()=>{if(Array.isArray(e.value))return;let t=f.value.filter(e=>![`title`,`delimiter`].includes(e.listItemProps?.type??``));e.value={...t[(t.findIndex(t=>t.id===e.value.id)+1)%t.length]}},deleteItemByItem:async t=>{Array.isArray(e.value)&&(e.value=e.value.filter(e=>e.id!==t.id||e.name!==t.name))}}},N={key:0,class:`top-selector2_activeItems`},P={key:1,class:`top-selector2_activeName top-ellipsis`},F={key:2,class:`top-selector2_placeholder top-ellipsis`},I={class:`top-selector2_searchWidget`},L=(0,o.defineComponent)({__name:`selector2`,props:(0,o.mergeModels)({modelValue:{},items:{default:()=>[]},itemsChunkSize:{},itemsIsLoading:{type:Boolean},title:{},disabled:{type:Boolean},icon:{},modificator:{},size:{default:`s`},isError:{type:Boolean},openByFocusInput:{type:Boolean,default:void 0},searchType:{default:`popup`},searchFields:{default:()=>[`id`,`name`]},placeholder:{},hasCloserBtn:{type:Boolean},prepareItemsBeforeRender:{},api:{},apiSetSearchParams:{},minLength:{default:0},useCache:{type:Boolean},appendSearchToResult:{type:Boolean},appendSearchAllowDuplicate:{type:Boolean},appendSearchToResultCond:{},appendWithoutSelect:{type:Boolean},multiselect:{type:Boolean},useAllItem:{type:[Boolean,String]},addChanger:{type:Boolean},buttonProps:{},selectedAsPlaceholder:{type:Boolean},openerShortcut:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,o.mergeModels)([`appendItem`,`open`],[`update:modelValue`]),setup(e,{expose:t,emit:n,slots:i}){let s=e,c=(0,o.useModel)(e,`modelValue`),l=n,u=(0,o.computed)(()=>s.searchType===`inline`&&s.multiselect||s.searchType===`inline`&&r.O.state.isMobile?`popup`:s.searchType),f=D(s.api,s.apiSetSearchParams,s.minLength,s.useCache,c),p=M(c,s,l,f),m=(0,o.computed)(()=>s.buttonProps?`TopButton`:u.value===`inline`?`TopInput`:`div`),h=(0,o.ref)(null),g=(0,o.ref)(null),v=()=>h.value?.popup;f.apiRequest&&(0,o.watch)(p.searchText,()=>{f.setSearchTextAndLoad(p.searchText.value)});let y=(0,o.computed)(()=>Array.isArray(c.value)||s.multiselect||!s.selectedAsPlaceholder&&u.value!==`inline`?s.placeholder:c.value?.name||s.placeholder),b=e=>{let t=!1;switch(e.key){case`Delete`:case`Backspace`:Array.isArray(c.value)&&(e.preventDefault(),e.stopPropagation(),c.value.pop());break;case`ArrowUp`:case`ArrowRight`:case`ArrowDown`:case`ArrowLeft`:case`Enter`:case` `:t=!0;break;case`Escape`:u.value===`inline`&&p.resetSearch()}let n=e.key.length===1&&!e.ctrlKey&&!e.metaKey;(u.value===`popup`||u.value===`inline`)&&n&&(t=!0),v()?.elPopup&&(t=!1),t&&(u.value===`popup`&&(e.preventDefault(),e.stopPropagation(),n&&(p.searchText.value||(p.searchText.value=e.key))),e.currentTarget?.click())},x=e=>{e.preventDefault(),p.selectNextItem()},S=()=>{f.apiRequest&&f.setSearchTextAndLoad(p.searchText.value,!1),l(`open`)},C=()=>{p.resetItemsForShow(),u.value===`popup`&&p.searchText.value&&p.resetSearch()},w=e=>{let t=e.target;t.scrollTop/(t.scrollHeight-t.offsetHeight)>.8&&(s.api?f.load(!0):p.revelItemsForShow())};return t({getPopup:v,popupOpenerRef:g,resetCache:(e=!1)=>{f.apiRequest&&(e&&_(f.apiRequest.path),f.items.value=[],f.countLoading.value=0,f.apiRequest.params.offset=0,requestAnimationFrame(()=>{p.itemsForShow.value=[]}),v()?.elPopup&&f.setSearchTextAndLoad(p.searchText.value))},updateCacheItemById:(e,t)=>{f.apiRequest&&T(f.apiRequest.path,e,t)},deleteCacheItemById:e=>{f.apiRequest&&E(f.apiRequest.path,e)}}),(t,n)=>{let s=(0,o.resolveComponent)(`TopLoadbar`),l=(0,o.resolveDirective)(`top-focus`),_=(0,o.resolveDirective)(`top-shortcut`);return(0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.s),{ref_key:`popupRef`,ref:h,onOpen:n[3]||=e=>S(),onClose:n[4]||=e=>C(),onScrollContentList:n[5]||=e=>w(e),notch:!1,transitionDuration:0,openByFocusInput:u.value===`inline`&&(e.openByFocusInput??!0),disabled:u.value===`inline`&&(0,o.unref)(p).genIsShort()},(0,o.createSlots)({opener:(0,o.withCtx)(()=>[(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(m.value),(0,o.mergeProps)({ref_key:`popupOpenerRef`,ref:g},e.buttonProps,{class:{"top-selector2":!0,"top-selector2-multiselect":e.multiselect,[`top-selector2-`+e.modificator]:!!e.modificator,"top-as-input":!e.buttonProps&&u.value!==`inline`,"top-as-selector":!0,[`top-size_`+e.size]:!0,"top-disabled":e.disabled,"top-forms-focusable":!e.disabled,"top-error":e.isError},icon:e.icon,tabindex:`0`,onKeydown:b,onBlur:n[0]||=e=>u.value===`inline`&&(0,o.unref)(p).resetSearch(),placeholder:y.value,title:e.title,captionType:u.value===`inline`&&e.title!==void 0?`top`:void 0,modelValue:(0,o.unref)(p).searchText.value,"onUpdate:modelValue":n[1]||=e=>(0,o.unref)(p).searchText.value=e}),{default:(0,o.withCtx)(()=>[e.multiselect?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,N,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(c.value,e=>((0,o.openBlock)(),(0,o.createBlock)(d,{key:e.id??void 0,id:e.id,name:e.name,onDelete:(0,o.unref)(p).deleteItemByItem},null,8,[`id`,`name`,`onDelete`]))),128))])):(0,o.createCommentVNode)(``,!0),u.value!==`inline`&&!e.multiselect?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,P,(0,o.toDisplayString)(Array.isArray(c.value)?``:c.value.name),1)):(0,o.createCommentVNode)(``,!0),e.multiselect&&!c.value.length?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,F,(0,o.toDisplayString)(y.value),1)):(0,o.createCommentVNode)(``,!0),e.addChanger&&!e.buttonProps&&!e.multiselect&&(0,o.unref)(p).itemsForShow.value.length>1&&!e.disabled?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,{key:3,class:`top-changer top-changer-selector`,"data-top-popup-disabled":`true`,onClick:x})):(0,o.createCommentVNode)(``,!0)]),_:1},16,[`class`,`icon`,`placeholder`,`title`,`captionType`,`modelValue`])),[[l,e.isError,void 0,{onupdate:!0}],[_,e.openerShortcut]])]),contentList:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(p).itemsForShow.value,n=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.o),(0,o.mergeProps)({key:n.id??void 0,class:{"top-active":!Array.isArray(c.value)&&!e.multiselect&&c.value.id===n.id&&c.value.name===n.name,"top-selector2_item-all":n.id===(0,o.unref)(0),"top-selector2_item-new":n.id===(0,o.unref)(null)},closeByClick:!e.multiselect||(0,o.unref)(r.O).state.isMobile},{ref_for:!0},n.listItemProps,{onClick:e=>(0,o.unref)(p).selectItem(n)}),(0,o.createSlots)({default:(0,o.withCtx)(()=>[i.item?(0,o.renderSlot)(t.$slots,`item`,{item:n},void 0,void 0,0):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createTextVNode)((0,o.toDisplayString)(n.name),1)],64))]),_:2},[i.actions?{name:`actions`,fn:(0,o.withCtx)(()=>[(0,o.renderSlot)(t.$slots,`actions`,{item:n})]),key:`0`}:void 0]),1040,[`class`,`closeByClick`,`onClick`]))),128)),!(0,o.unref)(p).itemsForShow.value.length&&!(0,o.unref)(p).genIsShort()?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.o),{key:0,type:`regular`},{default:(0,o.withCtx)(()=>[(0,o.unref)(f).isLoading.value&&!(0,o.unref)(f).countLoading.value||e.itemsIsLoading?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(r.t),{key:0,type:`circles`})):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createTextVNode)((0,o.toDisplayString)(t.$i18n.Common.No_results),1)],64))]),_:1})):(0,o.createCommentVNode)(``,!0),(0,o.unref)(f).countLoading.value&&(0,o.unref)(f).isLoading.value&&u.value===`inline`?((0,o.openBlock)(),(0,o.createBlock)(s,{key:1})):(0,o.createCommentVNode)(``,!0)]),_:2},[u.value===`popup`?{name:`widget`,fn:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`div`,I,[(0,o.withDirectives)((0,o.createVNode)((0,o.unref)(a.a),{title:`Поиск`,icon:``,modelValue:(0,o.unref)(p).searchText.value,"onUpdate:modelValue":n[2]||=e=>(0,o.unref)(p).searchText.value=e,isLoading:!!(0,o.unref)(f).countLoading.value&&(0,o.unref)(f).isLoading.value,placeholder:y.value},null,8,[`modelValue`,`isLoading`,`placeholder`]),[[l,c.value,void 0,{onupdate:!0}]]),e.hasCloserBtn&&!t.$core.state.isMobile?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(r.h),{key:0,class:`closer`,color:`theme`},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.$i18n.Common.Cancel),1)]),_:1})):(0,o.createCommentVNode)(``,!0)])]),key:`0`}:void 0]),1032,[`openByFocusInput`,`disabled`])}}}),R={class:`top-editArea_footer`},z=(0,o.defineComponent)({__name:`editArea`,props:{defaultValue:{default:``},title:{},cancelText:{default:`Cancel`},submitText:{default:`Send`},closeText:{default:`Close`},isFocused:{type:Boolean},forceShowCloseBtn:{type:Boolean},attachToKeyboard:{type:Boolean},modelValue:{},name:{},placeholder:{},styling:{},rows:{},minHeight:{},expandable:{type:Boolean,default:!0},disabled:{type:Boolean},readonly:{type:Boolean},isError:{type:Boolean},hint:{},maxLength:{}},emits:[`submit`,`close`,`clickOnTitle`],setup(e,{emit:t,slots:n}){let i=e,a=t,s=(0,o.ref)(i.defaultValue),c=(0,o.ref)(i.isFocused),l=(0,o.computed)(()=>s.value!==i.defaultValue),u=e=>{a(`submit`,e),s.value=i.defaultValue},d=()=>{if(i.forceShowCloseBtn&&!l.value){a(`close`);return}s.value=i.defaultValue},f=()=>{i.attachToKeyboard&&a(`clickOnTitle`)};return(t,i)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{class:(0,o.normalizeClass)({"top-editArea":!0,"top-editArea-attachedToKeyboard":e.attachToKeyboard})},[e.title||n.caption?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,class:`top-editArea_caption`,onClick:i[0]||=e=>f()},[(0,o.renderSlot)(t.$slots,`caption`,{},()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.title),1)])])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`div`,{class:(0,o.normalizeClass)({"top-editArea_form":!0,"top-forms-focusable":!0,"top-as-input":!0,"top-error":e.isError,"top-focus":c.value})},[(0,o.createVNode)(r.r,{modelValue:s.value,"onUpdate:modelValue":i[1]||=e=>s.value=e,name:e.name,placeholder:e.placeholder,rows:e.rows,minHeight:e.minHeight,expandable:e.expandable,disabled:e.disabled,readonly:e.readonly,isError:e.isError,hint:e.hint,class:`top-editArea_element`,onFocus:i[2]||=()=>c.value=!0,onBlur:i[3]||=()=>c.value=!1,onKeyup:[(0,o.withKeys)(d,[`esc`]),i[4]||=(0,o.withKeys)((0,o.withModifiers)(e=>u(s.value),[`ctrl`]),[`enter`])]},null,8,[`modelValue`,`name`,`placeholder`,`rows`,`minHeight`,`expandable`,`disabled`,`readonly`,`isError`,`hint`]),(0,o.createElementVNode)(`div`,R,[l.value||e.forceShowCloseBtn?((0,o.openBlock)(),(0,o.createBlock)(r.h,{key:0,icon:t.$core.state.isMobile?``:``,class:`top-editArea_button`,color:`theme`,styling:`soft`,onClick:d},(0,o.createSlots)({_:2},[t.$core.state.isMobile?void 0:{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.cancelText),1)]),key:`0`}]),1032,[`icon`])):(0,o.createCommentVNode)(``,!0),l.value?((0,o.openBlock)(),(0,o.createBlock)(r.h,{key:1,class:`top-editArea_button`,icon:t.$core.state.isMobile?``:``,onClick:i[5]||=e=>u(s.value)},(0,o.createSlots)({_:2},[t.$core.state.isMobile?void 0:{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.submitText),1)]),key:`0`}]),1032,[`icon`])):(0,o.createCommentVNode)(``,!0)])],2)],2))}}),B={class:`top-editInput`},V=(0,o.defineComponent)({__name:`editInput`,props:{modelValue:{},alwaysShowSubmitBtn:{type:Boolean},input:{},button:{}},emits:[`update:modelValue`],setup(e,{emit:t,slots:n}){let i=e,a=(0,o.ref)(i.modelValue);(0,o.watch)(()=>i.modelValue,()=>{a.value=i.modelValue});let s=t,c=()=>{s(`update:modelValue`,a.value)};return(t,i)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,B,[(0,o.createVNode)(r.c,(0,o.mergeProps)(e.input,{onKeydownCapture:i[0]||=(0,o.withKeys)((0,o.withModifiers)(t=>a.value=e.modelValue,[`stop`]),[`esc`]),onKeydown:(0,o.withKeys)((0,o.withModifiers)(c,[`stop`]),[`enter`]),modelValue:a.value,"onUpdate:modelValue":i[1]||=e=>a.value=e}),(0,o.createSlots)({_:2},[n.caption?{name:`caption`,fn:(0,o.withCtx)(()=>[(0,o.renderSlot)(t.$slots,`caption`)]),key:`0`}:void 0]),1040,[`onKeydown`,`modelValue`]),a.value!==e.modelValue||e.alwaysShowSubmitBtn?((0,o.openBlock)(),(0,o.createBlock)(r.h,(0,o.mergeProps)({key:0,icon:``,styling:`soft`},e.button,{onClick:c}),null,16)):(0,o.createCommentVNode)(``,!0)]))}}),H=(0,o.defineComponent)({__name:`optionGroup`,props:(0,o.mergeModels)({modelValue:{},items:{},size:{default:`s`},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,o.useModel)(e,`modelValue`),n=e,i=(0,o.ref)(null);(0,o.watch)(t,()=>{let e=n.items.map(e=>e.value);Array.isArray(t.value)?t.value.find(t=>!e.includes(t))&&(t.value=t.value.filter(t=>e.includes(t))):e.includes(t.value)||(t.value=e[0]??``),i.value?.querySelector(`.radioGroup_item-selected`)?.scrollIntoView()},{immediate:!0});let a=`optionGroup-`+Math.random();return(n,s)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`elRef`,ref:i,class:(0,o.normalizeClass)({"top-optionGroup":!0,[`top-optionGroup-showIndicator_`+Number(e.showIndicator)]:!0,"top-scrollBarXHidding":!0,[`top-size_`+e.size]:!!e.size,"top-error":e.isError})},[Array.isArray(t.value)?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)(e.items,n=>((0,o.openBlock)(),(0,o.createBlock)(r.f,{class:(0,o.normalizeClass)({"top-optionGroup_item-selected":t.value.includes(n.value),"top-optionGroup_item":!0}),modelValue:t.value,"onUpdate:modelValue":s[0]||=e=>t.value=e,value:n.value,title:n.title,disabled:n.disabled,isError:e.isError,"data-top-icon":n.icon},(0,o.createSlots)({_:2},[n.label?{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(n.label),1)]),key:`0`}:void 0]),1032,[`class`,`modelValue`,`value`,`title`,`disabled`,`isError`,`data-top-icon`]))),256)):((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:1},(0,o.renderList)(e.items,n=>((0,o.openBlock)(),(0,o.createBlock)(r.a,{class:(0,o.normalizeClass)({"top-optionGroup_item-selected":n.value===t.value,"top-optionGroup_item":!0}),modelValue:t.value,"onUpdate:modelValue":s[1]||=e=>t.value=e,name:a,value:n.value,title:n.title,disabled:n.disabled,isError:e.isError,"data-top-icon":n.icon},(0,o.createSlots)({_:2},[n.label?{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(n.label),1)]),key:`0`}:void 0]),1032,[`class`,`modelValue`,`value`,`title`,`disabled`,`isError`,`data-top-icon`]))),256))],2))}}),U=(0,o.defineComponent)({__name:`radioGroup`,props:(0,o.mergeModels)({modelValue:{},items:{},size:{},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,o.useModel)(e,`modelValue`);return(e,r)=>((0,o.openBlock)(),(0,o.createBlock)(H,{class:`top-radioGroup`,modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,items:t.items,size:t.size,showIndicator:t.showIndicator,isError:t.isError},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`items`,`size`,`showIndicator`,`isError`]))}}),W=(0,o.defineComponent)({__name:`checkboxGroup`,props:(0,o.mergeModels)({modelValue:{},items:{},size:{},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=(0,o.useModel)(e,`modelValue`);return(e,r)=>((0,o.openBlock)(),(0,o.createBlock)(H,{class:`top-checkboxGroup`,modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,items:t.items,size:t.size,showIndicator:t.showIndicator,isError:t.isError},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`items`,`size`,`showIndicator`,`isError`]))}}),G=[`data-top-icon`],K={class:`top-info_text`},q={key:0,class:`top-info_value`},J=(0,o.defineComponent)({__name:`info`,props:{icon:{},styling:{default:`default`},size:{default:`default`}},setup(e,{slots:t}){return(n,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{class:(0,o.normalizeClass)({"top-info":!0,[`top-size_`+e.size]:!0,[`top-info-styling_`+e.styling]:!0}),"data-top-icon":e.icon},[(0,o.createElementVNode)(`div`,K,[(0,o.renderSlot)(n.$slots,`default`)]),t.additional?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,q,[(0,o.renderSlot)(n.$slots,`additional`)])):(0,o.createCommentVNode)(``,!0)],10,G))}}),Y={key:0,class:`top-policy`},X={class:`top-policy_title`},Z=[`innerHTML`],Q=(0,o.defineComponent)({__name:`policy`,props:{title:{},description:{},acceptText:{}},emits:[`accept`],setup(e,{emit:t}){let n=t,i=(0,o.ref)(!0),a=()=>{i.value=!1,n(`accept`)};return(t,n)=>i.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,Y,[(0,o.createElementVNode)(`div`,X,(0,o.toDisplayString)(e.title),1),(0,o.createElementVNode)(`div`,{class:`top-policy_description`,innerHTML:e.description},null,8,Z),(0,o.createVNode)((0,o.unref)(r.h),{size:`m`,onClick:a},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.acceptText),1)]),_:1})])):(0,o.createCommentVNode)(``,!0)}}),$={key:0,class:`top-banner`},ee={class:`top-banner_wrapper`},te={class:`top-banner_content`},ne={class:`top-banner_contentText`},re=(0,o.defineComponent)({__name:`banner`,props:{showCloseButton:{type:Boolean,default:!0},buttonProps:{}},emits:[`close`],setup(e,{emit:t}){let n=t,i=(0,o.ref)(!0),a=()=>{i.value=!1},s=e=>{e instanceof HTMLElement&&(e.style.height=`${e.offsetHeight}px`,requestAnimationFrame(()=>{e.style.height=`0px`,e.style.paddingTop=`0px`,e.style.paddingBottom=`0px`}))},c=()=>{n(`close`)};return(t,n)=>((0,o.openBlock)(),(0,o.createBlock)(o.Transition,{onBeforeLeave:s,onAfterLeave:c},{default:(0,o.withCtx)(()=>[i.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,$,[(0,o.createElementVNode)(`div`,ee,[(0,o.createElementVNode)(`div`,te,[(0,o.createElementVNode)(`span`,ne,[(0,o.renderSlot)(t.$slots,`default`)]),e.buttonProps?((0,o.openBlock)(),(0,o.createBlock)(r.h,(0,o.normalizeProps)((0,o.mergeProps)({key:0},e.buttonProps)),{default:(0,o.withCtx)(()=>[e.buttonProps.default?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.createTextVNode)((0,o.toDisplayString)(e.buttonProps.default),1)],64)):(0,o.createCommentVNode)(``,!0)]),_:1},16)):(0,o.createCommentVNode)(``,!0)]),e.showCloseButton?((0,o.openBlock)(),(0,o.createBlock)(r.h,{key:0,class:`top-banner_closeButton`,color:`theme`,icon:``,title:t.$i18n.Common.Close,onClick:a},null,8,[`title`])):(0,o.createCommentVNode)(``,!0)])])):(0,o.createCommentVNode)(``,!0)]),_:3}))}});t.p=l,t.f=_,t.l=O,t.u=k,t.d=j,t.c=L,t.s=z,t.o=V,t.a=U,t.i=W,t.r=J,t.n=Q,t.t=re});
|
|
2
|
-
//# sourceMappingURL=formsExt-B9hGGznb.es.amd.js.map
|