eservices-core 1.2.2 → 1.2.4

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.
@@ -1,21 +1,21 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('[dir=rtl] .icon[data-v-6412ede6]{transform:scaleX(-1)}.input-text-container[data-v-65e2ee2d]{position:relative;height:var(--input-height);width:100%;background-color:var(--input-background-color);border:var(--input-border);border-radius:var(--input-border-radius)}.input-text-container[data-v-65e2ee2d]:focus-within{outline:var(--input-border-active)}.input-text__error[data-v-65e2ee2d]{position:absolute;margin:0;top:100%}.input-text[data-v-65e2ee2d]{width:100%;height:100%;padding:0 10px;background-color:transparent;border:0;color:var(--input-color);font-size:var(--input-font-size);outline:none}.input-text[data-v-65e2ee2d]::placeholder{color:var(--input-placeholder-color)}.input-text-container[disabled=true][data-v-65e2ee2d]{background-color:var(--input-background-color-disabled);border:var(--input-border-disabled)}.input-text-container[error=true][data-v-65e2ee2d]{border:var(--input-border-error)}.input-text__password[data-v-65e2ee2d]{padding:0 6px;display:flex;align-items:center}.input-title[data-v-65e2ee2d]{font-size:12px;line-height:16px;color:#667085;margin:4px 0}.input-title_required[data-v-65e2ee2d],.input-text__error[data-v-65e2ee2d]{color:red}.input__toggle[data-v-56d58611]{position:relative;width:40px;height:20px;background-color:var(--input-toggle-background-color);border-radius:var(--input-toggle-border-radius);cursor:pointer;transition:var(--fast);border:var(--input-toggle-border)}.input__toggle[data-v-56d58611]:before{content:"";position:absolute;top:0;bottom:0;margin:auto;left:3px;height:14px;width:14px;border-radius:var(--input-toggle-round-radius);background-color:var(--input-toggle-round-background-color);transition:var(--transition-fast)}.input__toggle.active[data-v-56d58611]{background-color:var(--input-toggle-background-color-active)}.input__toggle.active[data-v-56d58611]:before{transform:translate(20px)}.input__toggle.disabled[data-v-56d58611]{background-color:var(--input-disabled-background-color);border:var(--input-disabled-border)}.input__toggle.disabled[data-v-56d58611]:before{background-color:var(--gray-1)}.input__toggle.disabled[data-v-56d58611]{cursor:auto}.item-wrap[data-v-69ab8592]{display:flex;align-items:center}.input-select__item[data-v-69ab8592]{margin:0;text-overflow:ellipsis;overflow:hidden;color:var(--text-black);transition:var(--fast);font-size:14px;line-height:19px;font-weight:400}.input-select__item.active[data-v-69ab8592]{background-color:var(--main);color:var(--text-white)}.input-select-container[data-v-c4acd469]{position:relative;width:100%;outline:none}.input-select-container.disabled>.input-select-container__current[data-v-c4acd469]{background-color:var(--input-background-color-disabled)}.input-select-container__list[data-v-c4acd469]{display:none;position:absolute;top:calc(100% - 5px);z-index:100;padding-top:4px;border:1px solid var(--gray-1);border-top:0;max-height:250px;width:100%;overflow:auto}.input-select-container.active .input-select-container__list[data-v-c4acd469]{display:block}.input-select-container.active>.input-select-container__current>img[data-v-c4acd469]{transform:rotate(-180deg)}.input-select-container__current[data-v-c4acd469]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 0;border:var(--input-border);width:100%;border-radius:var(--input-border-radius);cursor:pointer;background-color:var(--input-background-color)}.current-placeholder[data-v-c4acd469]{padding:0 10px;color:var(--input-placeholder-color)}.input-select__ico-toggle[data-v-c4acd469]{fill:var(--main)}.input-select-container.error>.input-select-container__current[data-v-c4acd469]{border:1px solid var(--error)}.input-select-container.active>.input-select-container__current[data-v-c4acd469]{outline:var(--input-border-active)}.input-select-value[data-v-c4acd469]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 16px;color:var(--input-color)}.container-input-file[data-v-bdbf1475]{height:var(--input-height);border:var(--input-border);background-color:var(--input-background-color);border-radius:var(--input-border-radius);padding:5px;display:flex;align-items:center;position:relative}.icon__file-upload[data-v-bdbf1475]{font-size:12px;color:var(--input-color)}.input-file[data-v-bdbf1475]{position:absolute;left:0;top:0;z-index:500;width:100%;height:100%;opacity:0;cursor:pointer}.input-file[data-v-bdbf1475]::-webkit-file-upload-button{visibility:hidden}.process-info[data-v-bdbf1475]{margin:4px 0}.widget-input__container[data-v-1e3f1057]{position:relative;outline:none}.widget-input__underline[data-v-1e3f1057]{height:2px;background-color:var(--input-line-color)}.widget-input__placeholder[data-v-1e3f1057]{margin:2px 0 0;color:var(--input-line-placeholder-color);font-size:var(--input-line-placeholder-font-size);line-height:var(--input-line-placeholder-line-height);-webkit-user-select:none;user-select:none}.widget-input__placeholder_error[data-v-1e3f1057]{color:var(--error)}.input-container__content[data-v-1e3f1057]{width:100%;display:flex}.input-text[data-v-212b50e2]{height:31px;width:100%;border:unset;outline:unset;background-color:transparent;color:var(--input-line-color);font-size:var(--input-line-font-size)}.input-text__password[data-v-212b50e2]{padding:0 6px;display:flex;align-items:center}.input-title[data-v-9c3e5ea6]{font-size:12px;line-height:16px;color:#667085;margin:4px 0}.input-text-container[data-v-9c3e5ea6]{position:relative;height:32px;width:100%;background-color:var(--input-background-color);border:var(--input-border);border-radius:var(--input-border-radius)}.input-text-container[data-v-9c3e5ea6]:focus-within{border:var(--input-border-active)!important}.input-text__error[data-v-9c3e5ea6]{position:absolute;margin:0;top:100%;text-align:right}.input-text[data-v-9c3e5ea6]{width:100%;height:100%;padding:0 10px;background-color:transparent;border:0;color:var(--input-color);font-size:var(--input-font-size)}.input-text[data-v-9c3e5ea6]::placeholder{color:var(--input-placeholder-color)}.input-text-container[disabled=true][data-v-9c3e5ea6]{background-color:var(--input-background-disabled);border:var(--input-border-disabled)}.input-text-container[error=true][data-v-9c3e5ea6]{border:var(--input-border-error)}.input-text__password[data-v-9c3e5ea6]{padding:0 6px;display:flex;align-items:center}.input-text[data-v-9c3e5ea6]:focus{border:0;outline:0}.widget-button-wrap[data-v-b6be5c12]{width:fit-content;outline:none;-webkit-user-select:none;user-select:none;position:relative;--size: 30px;max-height:var(--size);height:var(--size)}.widget-button[data-v-b6be5c12]{background-color:var(--widget-button-background);color:var(--widget-button-color);border:var(--widget-button-border);border-radius:var(--widget-button-radius);height:fit-content;overflow:hidden}.widget-button__toggle[data-v-b6be5c12]{height:var(--size);width:var(--size)}.widget-button__toggle[data-v-b6be5c12]:hover{background-color:var(--widget-button-background-hover)}.widget-button__list[data-v-b6be5c12]{overflow:hidden;max-height:var(--size);transition:var(--fast);height:fit-content}.widget-button .widget-button__toggle-icon[data-v-b6be5c12]{transition:var(--fast)}.widget-button.active .widget-button__toggle-icon[data-v-b6be5c12]{transform:rotate(-180deg)}.widget-button__list-elem[data-v-b6be5c12]{line-height:var(--size);font-size:14px;padding:0 10px;transition:var(--extra-fast);min-width:80px}.widget-button__list-elem[data-v-b6be5c12]:hover{background-color:var(--widget-button-background-hover)}.function-item[data-v-73f7eb9f]{padding:10px}.form-title[data-v-c91ffa31]{flex-grow:1}.widget-form[data-v-c3e88e10]{width:100%;max-width:966px;overflow:hidden;border:var(--form-border);background-color:var(--form-background-color);box-shadow:var(--form-shadow);border-radius:var(--form-radius);border-bottom:5px solid var(--form-border-bottom)}.widget-form__head[data-v-c3e88e10]{min-height:60px;align-items:center;background-color:var(--form-head-background-color)}@media screen and (min-width: 769px){.widget-form__head[data-v-c3e88e10]{flex-wrap:nowrap;padding:0 20px 0 40px}.widget-form__head-button[data-v-c3e88e10]{margin-right:15px}}@media screen and (max-width: 768px){.widget-form[data-v-c3e88e10]{width:100%}.widget-form__head[data-v-c3e88e10]{flex-wrap:wrap}}.widget-form__head-functions[data-v-c3e88e10]{height:100%;align-items:center}.widget-form__body[data-v-c3e88e10]{overflow:auto}.form-container-item[data-v-9264f6f4]{flex-wrap:wrap;gap:10px}.form-container-item-center[data-v-9264f6f4]{flex-grow:1;max-width:240px}.form-container-item__title[data-v-9264f6f4]{min-width:180px;max-width:180px;min-height:30px;justify-content:flex-end}.form-container-item__title>span[data-v-9264f6f4]{display:flex;align-items:center;font-size:14px;height:30px;line-height:130%}.form-container-item-1 .form-container-item-center[data-v-9264f6f4]{max-width:unset}.form-container-item__right[data-v-9264f6f4]{flex-grow:1;max-width:240px}.content_double[data-v-9264f6f4]{max-width:480px}.container-auth-wrap[data-v-0b1a5e81]{display:flex;align-items:center;justify-content:center;background-color:var(--container-auth-background-color);border-radius:var(--container-auth-border-radius);box-shadow:var(--container-auth-box-shadow);overflow:hidden;max-width:900px}.container-auth-wrap[data-v-0b1a5e81]{display:flex;width:100%;height:100%}.container-auth-sidebar[data-v-0b1a5e81]{width:300px;background-color:var(--container-auth-sidebar-background-color)}.container-auth-main[data-v-0b1a5e81]{display:flex;flex-direction:column;flex-grow:1;position:relative}@media screen and (min-width: 768px){.container-auth-wrap[data-v-0b1a5e81]{height:500px}.container-auth-wrap>div[data-v-0b1a5e81]{height:100%}.container-auth-sidebar[data-v-0b1a5e81]{height:100%}}@media screen and (max-width: 768px){.container-auth-wrap[data-v-0b1a5e81]{flex-direction:column}.container-auth-sidebar[data-v-0b1a5e81]{height:220px}}.loader[data-v-12ff0501],.loader[data-v-12ff0501]:after{border-radius:50%;width:14px;height:14px}.loader[data-v-12ff0501]{font-size:2px;position:relative;text-indent:-9999em;border-top:1.1em solid rgba(255,255,255,.2);border-right:1.1em solid rgba(255,255,255,.2);border-bottom:1.1em solid rgba(255,255,255,.2);border-left:1.1em solid #ffffff;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8-12ff0501 1.1s infinite linear;animation:load8-12ff0501 1.1s infinite linear}@-webkit-keyframes load8-12ff0501{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8-12ff0501{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.button-wrap[data-v-937d2e62]{position:relative}.button-spinner[data-v-937d2e62]{position:absolute;top:0;bottom:0;left:5px;margin:auto}.button-element[data-v-937d2e62]{height:100%;width:100%;padding:0 20px;cursor:pointer;background-color:transparent;outline:unset;border:unset;color:unset;font-weight:unset;font-size:unset}.widget-button-wrap[data-v-13176c56]{--button-size: 40px;max-height:var(--button-size);z-index:1;position:relative;cursor:pointer;width:fit-content}.widget-multi-button[data-v-13176c56]{display:flex;background-color:#3949ab;border-radius:20px;overflow:hidden}.button__content[data-v-13176c56]{max-height:40px;min-width:80px;transition:.2s;overflow:hidden}.button__content_active[data-v-13176c56]{max-height:200px}.button__content-title[data-v-13176c56]{white-space:nowrap;font-size:14px;line-height:20px;padding:10px 10px 10px 20px;color:#fff;margin:0;transition:background-color .2s}.button__content-title[data-v-13176c56]:hover{background-color:#223296}.button__toggle_active[data-v-13176c56]{transform:rotate(180deg)}.button__side[data-v-13176c56]{min-width:var(--button-size)}.button__size-toggle[data-v-13176c56]{height:var(--button-size)}.button__size-toggle[data-v-13176c56]{cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .1s,background-color .2s;color:#fff}.button__size-toggle[data-v-13176c56]:hover{background-color:#223296}.button__toggle-icon[data-v-13176c56]{height:16px}.button__size-progress[data-v-13176c56]{display:flex;align-items:center;justify-content:center;height:var(--button-size)}.widget-error[data-v-8a0a0924]{height:38px;background-color:#ffb694;box-shadow:4px 4px 10px #ff500033}.widget-error-text[data-v-8a0a0924]{margin:0}.widget-error-wrap[data-v-8a0a0924]{height:100%;display:flex;align-items:center;justify-content:center}.widget-error-close[data-v-8a0a0924]{display:flex;align-items:center;justify-content:center;height:100%;width:40px;cursor:pointer}.widget-error-close[data-v-8a0a0924]:after,.widget-error-close[data-v-8a0a0924]:before{position:absolute;content:"";height:20px;width:2px;background-color:#000;border-radius:2px}.widget-error-close[data-v-8a0a0924]:after{transform:rotate(45deg)}.widget-error-close[data-v-8a0a0924]:before{transform:rotate(-45deg)}.widget-error-message[data-v-8a0a0924]{font-size:14px;line-height:130%;letter-spacing:.05em;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.widget-error-main[data-v-8a0a0924]{width:700px}.widget-error__container-close[data-v-8a0a0924]{height:100%}.article-details[data-v-8a0a0924]{font-size:18px;line-height:130%;letter-spacing:.05em;text-decoration-line:underline;font-weight:700;cursor:pointer}.fade-enter-active[data-v-aa732044],.fade-leave-active[data-v-aa732044]{transition:.5s ease;max-height:38px}.fade-enter-from[data-v-aa732044],.fade-leave-to[data-v-aa732044]{opacity:0;max-height:0}.container-errors[data-v-8e9870dd]{display:flex;gap:1px;flex-direction:column;position:fixed;top:0;left:0;width:100%;z-index:11}.fade-enter-active[data-v-8e9870dd],.fade-leave-active[data-v-8e9870dd]{transition:.5s ease;max-height:38px}.fade-enter-from[data-v-8e9870dd],.fade-leave-to[data-v-8e9870dd]{opacity:0;max-height:0}.modal__wait[data-v-430b5c94]{padding:40px 30px;max-width:450px}*{--extra-fast:.1s;--fast:.2s;--medium:.3s;box-sizing:border-box;--primary: #3949ab }html,body,#app{height:100%}body{margin:0}ul{text-align:left}.flex{display:flex}.flex_column{display:flex;flex-direction:column}.flex_center{display:flex;align-items:center;justify-content:center}.flex_full,.flex_grow{flex-grow:1}.grid{display:grid}.link{text-decoration:var(--link-decoration);color:var(--link-color)}.link_hover-underline:hover,.link_hover_underline:hover{text-decoration:underline}.link_full{position:absolute;height:100%;width:100%;left:0;top:0}.text_sm{font-weight:400;font-size:12px;line-height:16px}.text_md{font-size:14px;line-height:20px}.text_lg{font-size:16px;line-height:24px}.text_size_xxl{font-size:18px;line-height:25px}.text_bold{font-weight:600}.text_nowrap{white-space:nowrap}.text_right{text-align:right}.text_center{text-align:center}.text_size_sm{font-size:12px;line-height:130%}.text_size_md{font-size:14px;line-height:140%}.text_error{color:red}.title_sm{font-weight:600;font-size:16px;line-height:24px}.title_md{font-weight:600;font-size:24px;line-height:32px}.title_lg{font-weight:700;font-size:32px;line-height:48px}.title_xxl,.title_xl{font-weight:700;font-size:48px;line-height:64px}.cursor_pointer{cursor:pointer}.cursor_default{cursor:default}button{outline:none;-webkit-user-select:none;user-select:none;transition:background-color .2s}.button{display:flex;align-items:center;justify-content:center;outline:none}.button_main{background-color:var(--button-background);color:var(--button-color)}.button_main:focus{background-color:var(--button-background-active)}.button_main:active{background-color:var(--button-background-active)}.button_white{background-color:var(--white);color:var(--main)}.button_sm{height:30px;width:130px}.button_shadow{box-shadow:0 2px 4px #00000040}.button_lg{font-weight:600;font-size:16px;line-height:24px;padding:12px 0;height:50px;width:200px}.button_disabled{background-color:var(--gray-1)}.button_resolve{background-color:var(--main);color:var(--white);border-radius:2px}.button_reject{border:1px solid var(--color-dark);border-radius:2px}.button_md{height:30px;padding:0 10px;min-width:80px}.button_disabled{background-color:var(--button-disabled-background-color);cursor:pointer!important}.color_main,.color__text_main{color:var(--main)}.color__text_black{color:var(--black-1)}.color__text_gray{color:var(--text-gray)}.color__text_red,.color_red{color:var(--red)}.color__text_white{color:var(--white)}.background_orange{background-color:var(--orange)}.background_red{background-color:var(--red)}.color_dark{color:var(--dark)}.color_light{color:var(--light)}.move-vertical-enter-active,.move-vertical-leave-active{transition:transform .5s ease}.move-vertical-enter-from,.move-vertical-leave-to{transform:translateY(-10px)}.move-horizontal-enter-active,.move-horizontal-leave-active{transition:transform .5s}.move-horizontal-enter-from,.move-horizontal-leave-to{transform:translate(-40px)}.modal-vertical-enter-active,.modal-vertical-leave-active,.modal-default{transition:transform var(--medium)}.modal-vertical-enter-active .modal-default,.modal-vertical-leave-active .modal-default{transform:translateY(-100px)}.move-vertical-fast-enter-active,.move-vertical-fast-leave-active{transition:transform var(--fast) ease}.move-vertical-fast-enter-from,.move-vertical-fast-leave-to{transform:translateY(-20px)}.slide-up-enter-active,.slide-up-leave-active{transition:transform var(--fast) ease,opacity var(--fast)}.slide-up-enter-from,.slide-up-leave-to{transform:translateY(20px);opacity:0}.opacity-enter-active,.opacity-leave-active{transition:opacity var(--fast) ease}.opacity-enter-from,.opacity-leave-to{opacity:0}.list-move,.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.list-leave-active{position:absolute}.modal-default{background-color:var(--white);position:relative;z-index:1;width:auto;background:var(--white);border-radius:var(--border-radius)}.modal-default__head{background-color:var(--black-1);text-align:center;padding:5px 0;border-radius:6px 6px 0 0}.modal-default__body{gap:20px;padding:0 15px}.modal-default__foot{padding:30px 0;display:flex;justify-content:center}.hint-tooltip{display:block;z-index:222;margin:auto;pointer-events:none;box-shadow:0 0 0 9999px #00000080}.tooltip-help-circle-in,.tooltip-help-circle-out{border-radius:50%}.tooltip-help-undefined{border-radius:50px}.tooltip-card{position:fixed;z-index:315;display:flex;flex-direction:column;width:480px;height:fit-content;margin:auto;border-radius:10px;background-color:var(--hint-background);cursor:default}.tooltip-card__foot{display:flex;justify-content:space-between;align-items:center;background-color:var(--hint-background-navigation);border-radius:10px;padding:20px}.tooltip-card__foot-current{font-weight:600;font-size:20px;line-height:24px;color:var(--white)}.tooltip-card__body{position:relative;display:flex;flex-direction:column;gap:8px;padding:20px 20px 10px}.tooltip-card__body-title{font-weight:700;font-size:20px;line-height:24px;color:var(--white)}.tooltip-card__body-text{font-size:16px;line-height:24px;color:var(--white)}.tooltip-card__foot-button_back{background-color:var(--main-1)}.tooltip-card__foot-button_next{background-color:var(--hint)}.tooltip-card__body-close{position:absolute;right:22px;top:12px;width:20px;height:16px;opacity:.3;cursor:pointer}.tooltip-card__body-close:hover{opacity:1}.tooltip-card__body-close:before,.tooltip-card__body-close:after{position:absolute;left:15px;content:" ";height:21px;width:2px;background-color:#fff}.tooltip-card__body-close:before{transform:rotate(45deg)}.tooltip-card__body-close:after{transform:rotate(-45deg)}.tooltip-card-container-wrap{pointer-events:none;position:absolute;left:0;top:0;z-index:123132;height:100%;width:100%}.tooltip-card-container-wrap>div{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.tester-box-tooltip{pointer-events:all}.position_relative{position:relative}.position_absolute{position:absolute}.gap_5{gap:5px}.gap_10{gap:10px}.gap_20{gap:20px}.margin-0{margin:0}.widget-input{background-color:var(--input-background);border:var(--input-border);border-radius:var(--input-border-radius);color:var(--input-color)}.widget-input:disabled{background-color:var(--input-background-disabled);border:var(--input-border-disabled)}.widget-input[error=true]{border:var(--input-border-error)}.widget-input::placeholder{color:var(--input-placeholder-color)}.widget-input:disabled::placeholder{color:var(--input-placeholder-color-disabled)}.input_error{border:1px solid red!important}.input_size_md{height:var(--input-height)}.input-title{font-size:12px;line-height:16px;color:#667085;margin:4px 0}.widget-table{border-collapse:collapse}.widget-table_mini p{margin:0}.list-cell-link>a{position:absolute;left:0;top:0;z-index:1;height:100%;width:100%;cursor:pointer}.list-cell-link>p{font-weight:500}.widget-table__cell{padding:0 20px;font-weight:400;font-size:14px;line-height:19px;color:#4f4f4f}.widget-table-cell_use{cursor:pointer}.widget-table-cell_select{width:min-content}.table-cell-toggle{--border-color: black;position:relative;display:grid;place-content:center;border:1px solid var(--border-color);height:15px;aspect-ratio:1 / 1;border-radius:50%}.table-cell-toggle_active:after{content:"";border-radius:50%;background-color:var(--border-color);height:9px;aspect-ratio:1/1}.widget-table-cell_number{text-align:right}.overflow_auto{overflow:auto}.padding_5{padding:5px}.padding_10{padding:10px}.padding_0{padding:0}.padding_15,.padding_20{padding:15px}.es-list-container{overflow:auto}.widget-table__head[data-v-2ce532f4]{text-align:left}.widget-table__head-cell[data-v-2ce532f4]{padding:18px}.widget-table__head-title[data-v-2ce532f4]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:600;font-size:14px;line-height:19px;margin:0}.widget-loader[data-v-a01a837d]{display:grid;grid-template-columns:max-content max-content;padding:4px;gap:10px;align-items:center}.widget-table-loader{padding:10px 0}.breadcrumb[data-v-1702aee0]{gap:8px;align-items:center;color:#828282;cursor:pointer}.breadcrumb__title[data-v-1702aee0]{font-weight:400;font-size:12px;line-height:16px;margin:0}.breadcrumb__icon[data-v-1702aee0]{height:16px}.breadcrumb_active[data-v-1702aee0],.breadcrumb[data-v-1702aee0]:hover{color:#4f4f4f}.widget-breadcrumbs[data-v-1dfb2668]{display:flex;gap:14px}tr[data-v-47478206]{border:1px solid #F3F4FC;height:30px}th[data-v-47478206],td[data-v-47478206]{position:relative;padding:0 11px}th[data-v-47478206]{text-align:left}p[data-v-47478206]{margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-cell[data-v-7106cb6a]{padding:0 15px;display:flex}.head-cell[data-v-7106cb6a]:hover{box-shadow:0 -1px #e7f2ff}.list-head-cell-label[data-v-7106cb6a]{padding:5px 0;white-space:nowrap;cursor:pointer}.head-cell-order[data-v-7106cb6a]{position:absolute;inset-inline-end:4px;inset-block:0 0;margin:auto;font-size:14px;height:14px}.head-cell-order_down[data-v-7106cb6a]{transform:rotate(180deg)}.head-cell-resize[data-v-7106cb6a]{padding:3px 10px;cursor:col-resize;transition:background-color .1s}.head-cell-resize[data-v-7106cb6a]:hover{background-color:#f5f5f5}.head-cell-resize[data-v-7106cb6a]:after{content:"";margin:auto;width:1px;height:100%;display:block;background-color:#d2d2d2}.widget-list-head[data-v-1a4b03e9]{position:sticky;top:-1px;z-index:1}.test-block[data-v-1a4b03e9]{background-color:#e7f2ff;inset-block-start:-1px;position:absolute;z-index:2;-webkit-user-select:none;user-select:none;white-space:nowrap;padding:0 10px;height:calc(100% + 1px);display:none;place-content:center}.widget-list-head th[data-v-1a4b03e9]{position:sticky;top:0;z-index:2;-webkit-user-select:none;user-select:none}.head-cell[data-v-1a4b03e9]{display:flex;cursor:pointer;padding:0 10px}.head-cell-label[data-v-1a4b03e9]{flex-grow:1;margin:0;white-space:nowrap;-webkit-user-select:none;user-select:none}.list-arrow[data-v-1a4b03e9]{position:relative;display:block;height:15px;width:2px;background-color:gray;border-radius:2px}.list-arrow[data-v-1a4b03e9]:after,.list-arrow[data-v-1a4b03e9]:before{position:absolute;display:block;content:"";background-color:gray;height:8px;width:2px;border-radius:2px}.list-arrow[data-v-1a4b03e9]:after{transform:rotate(-30deg);right:-2px}.list-arrow[data-v-1a4b03e9]:before{transform:rotate(30deg);left:-2px}.block-list-arrow[data-v-1a4b03e9]{transition:.1s}.down[data-v-1a4b03e9]{transform:rotate(180deg)}.head-cell-order[data-v-1a4b03e9]{display:grid;place-content:center}.widget-list-head-label[data-v-1a4b03e9]{font-weight:400;font-size:13px;line-height:16px;padding:5px 0}.head-cell-resize[data-v-1a4b03e9]{position:relative;padding:3px 10px;cursor:col-resize}.head-cell-resize[data-v-1a4b03e9]:after{content:"";margin:auto;width:1px;height:100%;display:block;background-color:gray}.widget-list-body[data-v-5526b1ce]{position:relative}.widget-list-body[data-v-5526b1ce]:after{content:"";background-color:transparent;z-index:-1;transition:.1s}.widget-list-body_inactive[data-v-5526b1ce]:after{z-index:0;position:absolute;top:0;background-color:#afafaf80;height:100%;width:100%}.widget-section[data-v-07232553]{background-color:var(--form-section-background-color);box-shadow:var(--form-section-box-shadow);border-radius:var(--form-section-border-radius)}.widget-section__header[data-v-07232553]{border-radius:10px 10px 0 0;display:flex;padding:8px 8px 8px 40px;background-color:var(--form-section-header-background-color)}.widget-section-title[data-v-07232553]{flex-grow:1;font-weight:var(--form-section-title-font-weight);color:var(--form-section-title-color);font-size:var(--form-section-title-font-size);line-height:var(--form-section-title-line-height);margin:0}.widget-section__body[data-v-07232553]{padding:20px 40px}.widget-table__head[data-v-cae93640]{text-align:left;position:sticky;top:-1px;z-index:0}.widget-table__head-cell[data-v-cae93640]{padding:18px}.widget-table__head-title[data-v-cae93640]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:600;font-size:14px;line-height:19px;margin:0}.form-titles[data-v-6ea1062c]{display:flex;flex-direction:column;justify-content:center}.form-label[data-v-6ea1062c]{display:flex;gap:10px;padding:4px 7px;align-items:center}.form-container-label[data-v-6ea1062c]{margin:0 0 0 6px}.form-info[data-v-6ea1062c]{color:#828282}.form-label[data-v-6ea1062c]{background-color:#ff6262;color:#fff;border-radius:4px}.form-title[data-v-6ea1062c]{font-weight:700;font-size:18px;line-height:25px}.form-label__title[data-v-6ea1062c]{margin:0;line-height:16px}.form-label__icon[data-v-6ea1062c]{height:16px;font-size:16px}.form-label_inactive[data-v-6ea1062c]{background-color:gray}.form-label_correct[data-v-6ea1062c]{background-color:green}.form-label_warning[data-v-6ea1062c]{background-color:#ff0}.form-label_error[data-v-6ea1062c]{background-color:#ff6262}.widget-form[data-v-3d88d93f]{display:flex;flex-direction:column;gap:10px}.widget-form__head[data-v-3d88d93f]{display:flex;gap:16px;align-items:center;z-index:1;padding:10px 0}.widget-form__button[data-v-3d88d93f]{margin-left:auto}.wrap__widget-form[data-v-3d88d93f]{padding:20px}.widget-form__head[data-v-3d88d93f]{position:sticky;top:0}@media screen and (max-width: 768px){.wrap__widget-form[data-v-3d88d93f]{padding:10px}.widget-form__head[data-v-3d88d93f]{top:15px}}.head-image[data-v-3d88d93f]{padding:15px;background-color:#f3f4fc;border-radius:8px}.validation-item[data-v-e6138c02]{display:grid;grid-template-columns:70px 1fr;border:1px solid #00CCB1;border-radius:4px}.validation-item_failed[data-v-e6138c02]{border-color:#ee8030}.validation-item-header[data-v-e6138c02]{display:grid;place-content:center;background-color:#00ccb1}.validation-item_failed .validation-item-header[data-v-e6138c02]{background-color:#ee8030}.validation-item__title[data-v-e6138c02]{font-weight:700;font-size:18px;line-height:25px;color:#fff}.validation-item-content[data-v-e6138c02]{display:flex;flex-direction:column;padding:10px 16px;gap:10px}.modal-wrap[data-v-119165b9]{max-height:80%;display:flex;flex-direction:column}.modal-wrap-head[data-v-119165b9]{display:flex;align-items:center;padding:10px;background:#F3F4FC;border-radius:8px 8px 0 0}.modal-head__title[data-v-119165b9]{font-weight:700;font-size:18px;line-height:25px}.modal-wrap-body[data-v-119165b9]{background-color:#fff;border-radius:0 0 8px 8px;overflow:auto}.modal-validation-body[data-v-a39cfe2f]{display:flex;flex-direction:column;gap:10px;padding:20px}.widget-input-check[data-v-f4a3dc6c]{display:grid;place-items:center;height:20px;aspect-ratio:1/1;border:2px solid #1a1a1a;border-radius:4px;cursor:pointer;background-color:#fff}.widget-input-check_active[data-v-f4a3dc6c]{background-color:#2f2f2f}.widget-input-check>i[data-v-f4a3dc6c]{font-size:12px;height:12px;color:#fff}.widget-card[data-v-bca33c5b]{display:flex}.widget-card-toggle[data-v-bca33c5b]{padding:10px}.widget-card-wrap[data-v-bca33c5b]{display:flex;flex-grow:1;background-color:#fff;border:1px solid #cbcbcb;border-radius:8px}.widget-card-arrow[data-v-bca33c5b]{padding:10px;cursor:pointer}.card-icon-arrow[data-v-bca33c5b]{display:block;transition:transform var(--fast)}.card-icon-arrow_active[data-v-bca33c5b]{transform:rotate(90deg)}.widget-card-title[data-v-bca33c5b]{margin:0;font-weight:600;font-size:18px;line-height:20px}.widget-card-content[data-v-bca33c5b]{padding:9px 0;flex-grow:1}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { h as N, resolveComponent as x, openBlock as l, createElementBlock as u, createTextVNode as Ae, toDisplayString as y, createCommentVNode as _, createElementVNode as d, createVNode as C, normalizeClass as I, createBlock as b, Fragment as O, renderList as M, reactive as A, defineComponent as $, renderSlot as U, pushScopeId as Lt, popScopeId as Wt, withCtx as fe, withKeys as gn, computed as V, ref as q, normalizeStyle as ut, withModifiers as mn, onMounted as Ke, onUnmounted as yn, unref as P, TransitionGroup as Dt, provide as Mt, inject as dt, resolveDynamicComponent as Ft, mergeProps as jt, useSlots as xt, Transition as vn, defineModel as Se, watch as Tt, readonly as Ut } from "vue";
3
- import { openModal as Bt } from "jenesius-vue-modal";
4
- import { Form as K, utils as oe, FormField as ot } from "jenesius-vue-form";
5
- import qt from "object-hash";
6
- import { RouterLink as Gt, useRoute as wn } from "vue-router";
7
- import bn from "date-and-time";
8
- import { Manager as $n } from "socket.io-client";
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('[dir=rtl] .icon[data-v-6412ede6]{transform:scaleX(-1)}.input-text-container[data-v-65e2ee2d]{position:relative;height:var(--input-height);width:100%;background-color:var(--input-background-color);border:var(--input-border);border-radius:var(--input-border-radius)}.input-text-container[data-v-65e2ee2d]:focus-within{outline:var(--input-border-active)}.input-text__error[data-v-65e2ee2d]{position:absolute;margin:0;top:100%}.input-text[data-v-65e2ee2d]{width:100%;height:100%;padding:0 10px;background-color:transparent;border:0;color:var(--input-color);font-size:var(--input-font-size);outline:none}.input-text[data-v-65e2ee2d]::placeholder{color:var(--input-placeholder-color)}.input-text-container[disabled=true][data-v-65e2ee2d]{background-color:var(--input-background-color-disabled);border:var(--input-border-disabled)}.input-text-container[error=true][data-v-65e2ee2d]{border:var(--input-border-error)}.input-text__password[data-v-65e2ee2d]{padding:0 6px;display:flex;align-items:center}.input-title[data-v-65e2ee2d]{font-size:12px;line-height:16px;color:#667085;margin:4px 0}.input-title_required[data-v-65e2ee2d],.input-text__error[data-v-65e2ee2d]{color:red}.input__toggle[data-v-56d58611]{position:relative;width:40px;height:20px;background-color:var(--input-toggle-background-color);border-radius:var(--input-toggle-border-radius);cursor:pointer;transition:var(--fast);border:var(--input-toggle-border)}.input__toggle[data-v-56d58611]:before{content:"";position:absolute;top:0;bottom:0;margin:auto;left:3px;height:14px;width:14px;border-radius:var(--input-toggle-round-radius);background-color:var(--input-toggle-round-background-color);transition:var(--transition-fast)}.input__toggle.active[data-v-56d58611]{background-color:var(--input-toggle-background-color-active)}.input__toggle.active[data-v-56d58611]:before{transform:translate(20px)}.input__toggle.disabled[data-v-56d58611]{background-color:var(--input-disabled-background-color);border:var(--input-disabled-border)}.input__toggle.disabled[data-v-56d58611]:before{background-color:var(--gray-1)}.input__toggle.disabled[data-v-56d58611]{cursor:auto}.item-wrap[data-v-69ab8592]{display:flex;align-items:center}.input-select__item[data-v-69ab8592]{margin:0;text-overflow:ellipsis;overflow:hidden;color:var(--text-black);transition:var(--fast);font-size:14px;line-height:19px;font-weight:400}.input-select__item.active[data-v-69ab8592]{background-color:var(--main);color:var(--text-white)}.input-select-container[data-v-c4acd469]{position:relative;width:100%;outline:none}.input-select-container.disabled>.input-select-container__current[data-v-c4acd469]{background-color:var(--input-background-color-disabled)}.input-select-container__list[data-v-c4acd469]{display:none;position:absolute;top:calc(100% - 5px);z-index:100;padding-top:4px;border:1px solid var(--gray-1);border-top:0;max-height:250px;width:100%;overflow:auto}.input-select-container.active .input-select-container__list[data-v-c4acd469]{display:block}.input-select-container.active>.input-select-container__current>img[data-v-c4acd469]{transform:rotate(-180deg)}.input-select-container__current[data-v-c4acd469]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 0;border:var(--input-border);width:100%;border-radius:var(--input-border-radius);cursor:pointer;background-color:var(--input-background-color)}.current-placeholder[data-v-c4acd469]{padding:0 10px;color:var(--input-placeholder-color)}.input-select__ico-toggle[data-v-c4acd469]{fill:var(--main)}.input-select-container.error>.input-select-container__current[data-v-c4acd469]{border:1px solid var(--error)}.input-select-container.active>.input-select-container__current[data-v-c4acd469]{outline:var(--input-border-active)}.input-select-value[data-v-c4acd469]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0 16px;color:var(--input-color)}.container-input-file[data-v-bdbf1475]{height:var(--input-height);border:var(--input-border);background-color:var(--input-background-color);border-radius:var(--input-border-radius);padding:5px;display:flex;align-items:center;position:relative}.icon__file-upload[data-v-bdbf1475]{font-size:12px;color:var(--input-color)}.input-file[data-v-bdbf1475]{position:absolute;left:0;top:0;z-index:500;width:100%;height:100%;opacity:0;cursor:pointer}.input-file[data-v-bdbf1475]::-webkit-file-upload-button{visibility:hidden}.process-info[data-v-bdbf1475]{margin:4px 0}.widget-input__container[data-v-1e3f1057]{position:relative;outline:none}.widget-input__underline[data-v-1e3f1057]{height:2px;background-color:var(--input-line-color)}.widget-input__placeholder[data-v-1e3f1057]{margin:2px 0 0;color:var(--input-line-placeholder-color);font-size:var(--input-line-placeholder-font-size);line-height:var(--input-line-placeholder-line-height);-webkit-user-select:none;user-select:none}.widget-input__placeholder_error[data-v-1e3f1057]{color:var(--error)}.input-container__content[data-v-1e3f1057]{width:100%;display:flex}.input-text[data-v-212b50e2]{height:31px;width:100%;border:unset;outline:unset;background-color:transparent;color:var(--input-line-color);font-size:var(--input-line-font-size)}.input-text__password[data-v-212b50e2]{padding:0 6px;display:flex;align-items:center}.input-title[data-v-9c3e5ea6]{font-size:12px;line-height:16px;color:#667085;margin:4px 0}.input-text-container[data-v-9c3e5ea6]{position:relative;height:32px;width:100%;background-color:var(--input-background-color);border:var(--input-border);border-radius:var(--input-border-radius)}.input-text-container[data-v-9c3e5ea6]:focus-within{border:var(--input-border-active)!important}.input-text__error[data-v-9c3e5ea6]{position:absolute;margin:0;top:100%;text-align:right}.input-text[data-v-9c3e5ea6]{width:100%;height:100%;padding:0 10px;background-color:transparent;border:0;color:var(--input-color);font-size:var(--input-font-size)}.input-text[data-v-9c3e5ea6]::placeholder{color:var(--input-placeholder-color)}.input-text-container[disabled=true][data-v-9c3e5ea6]{background-color:var(--input-background-disabled);border:var(--input-border-disabled)}.input-text-container[error=true][data-v-9c3e5ea6]{border:var(--input-border-error)}.input-text__password[data-v-9c3e5ea6]{padding:0 6px;display:flex;align-items:center}.input-text[data-v-9c3e5ea6]:focus{border:0;outline:0}.widget-button-wrap[data-v-b6be5c12]{width:fit-content;outline:none;-webkit-user-select:none;user-select:none;position:relative;--size: 30px;max-height:var(--size);height:var(--size)}.widget-button[data-v-b6be5c12]{background-color:var(--widget-button-background);color:var(--widget-button-color);border:var(--widget-button-border);border-radius:var(--widget-button-radius);height:fit-content;overflow:hidden}.widget-button__toggle[data-v-b6be5c12]{height:var(--size);width:var(--size)}.widget-button__toggle[data-v-b6be5c12]:hover{background-color:var(--widget-button-background-hover)}.widget-button__list[data-v-b6be5c12]{overflow:hidden;max-height:var(--size);transition:var(--fast);height:fit-content}.widget-button .widget-button__toggle-icon[data-v-b6be5c12]{transition:var(--fast)}.widget-button.active .widget-button__toggle-icon[data-v-b6be5c12]{transform:rotate(-180deg)}.widget-button__list-elem[data-v-b6be5c12]{line-height:var(--size);font-size:14px;padding:0 10px;transition:var(--extra-fast);min-width:80px}.widget-button__list-elem[data-v-b6be5c12]:hover{background-color:var(--widget-button-background-hover)}.function-item[data-v-73f7eb9f]{padding:10px}.form-title[data-v-c91ffa31]{flex-grow:1}.widget-form[data-v-c3e88e10]{width:100%;max-width:966px;overflow:hidden;border:var(--form-border);background-color:var(--form-background-color);box-shadow:var(--form-shadow);border-radius:var(--form-radius);border-bottom:5px solid var(--form-border-bottom)}.widget-form__head[data-v-c3e88e10]{min-height:60px;align-items:center;background-color:var(--form-head-background-color)}@media screen and (min-width: 769px){.widget-form__head[data-v-c3e88e10]{flex-wrap:nowrap;padding:0 20px 0 40px}.widget-form__head-button[data-v-c3e88e10]{margin-right:15px}}@media screen and (max-width: 768px){.widget-form[data-v-c3e88e10]{width:100%}.widget-form__head[data-v-c3e88e10]{flex-wrap:wrap}}.widget-form__head-functions[data-v-c3e88e10]{height:100%;align-items:center}.widget-form__body[data-v-c3e88e10]{overflow:auto}.form-container-item[data-v-9264f6f4]{flex-wrap:wrap;gap:10px}.form-container-item-center[data-v-9264f6f4]{flex-grow:1;max-width:240px}.form-container-item__title[data-v-9264f6f4]{min-width:180px;max-width:180px;min-height:30px;justify-content:flex-end}.form-container-item__title>span[data-v-9264f6f4]{display:flex;align-items:center;font-size:14px;height:30px;line-height:130%}.form-container-item-1 .form-container-item-center[data-v-9264f6f4]{max-width:unset}.form-container-item__right[data-v-9264f6f4]{flex-grow:1;max-width:240px}.content_double[data-v-9264f6f4]{max-width:480px}.container-auth-wrap[data-v-0b1a5e81]{display:flex;align-items:center;justify-content:center;background-color:var(--container-auth-background-color);border-radius:var(--container-auth-border-radius);box-shadow:var(--container-auth-box-shadow);overflow:hidden;max-width:900px}.container-auth-wrap[data-v-0b1a5e81]{display:flex;width:100%;height:100%}.container-auth-sidebar[data-v-0b1a5e81]{width:300px;background-color:var(--container-auth-sidebar-background-color)}.container-auth-main[data-v-0b1a5e81]{display:flex;flex-direction:column;flex-grow:1;position:relative}@media screen and (min-width: 768px){.container-auth-wrap[data-v-0b1a5e81]{height:500px}.container-auth-wrap>div[data-v-0b1a5e81]{height:100%}.container-auth-sidebar[data-v-0b1a5e81]{height:100%}}@media screen and (max-width: 768px){.container-auth-wrap[data-v-0b1a5e81]{flex-direction:column}.container-auth-sidebar[data-v-0b1a5e81]{height:220px}}.loader[data-v-12ff0501],.loader[data-v-12ff0501]:after{border-radius:50%;width:14px;height:14px}.loader[data-v-12ff0501]{font-size:2px;position:relative;text-indent:-9999em;border-top:1.1em solid rgba(255,255,255,.2);border-right:1.1em solid rgba(255,255,255,.2);border-bottom:1.1em solid rgba(255,255,255,.2);border-left:1.1em solid #ffffff;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8-12ff0501 1.1s infinite linear;animation:load8-12ff0501 1.1s infinite linear}@-webkit-keyframes load8-12ff0501{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8-12ff0501{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.button-wrap[data-v-937d2e62]{position:relative}.button-spinner[data-v-937d2e62]{position:absolute;top:0;bottom:0;left:5px;margin:auto}.button-element[data-v-937d2e62]{height:100%;width:100%;padding:0 20px;cursor:pointer;background-color:transparent;outline:unset;border:unset;color:unset;font-weight:unset;font-size:unset}.widget-button-wrap[data-v-13176c56]{--button-size: 40px;max-height:var(--button-size);z-index:1;position:relative;cursor:pointer;width:fit-content}.widget-multi-button[data-v-13176c56]{display:flex;background-color:#3949ab;border-radius:20px;overflow:hidden}.button__content[data-v-13176c56]{max-height:40px;min-width:80px;transition:.2s;overflow:hidden}.button__content_active[data-v-13176c56]{max-height:200px}.button__content-title[data-v-13176c56]{white-space:nowrap;font-size:14px;line-height:20px;padding:10px 10px 10px 20px;color:#fff;margin:0;transition:background-color .2s}.button__content-title[data-v-13176c56]:hover{background-color:#223296}.button__toggle_active[data-v-13176c56]{transform:rotate(180deg)}.button__side[data-v-13176c56]{min-width:var(--button-size)}.button__size-toggle[data-v-13176c56]{height:var(--button-size)}.button__size-toggle[data-v-13176c56]{cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .1s,background-color .2s;color:#fff}.button__size-toggle[data-v-13176c56]:hover{background-color:#223296}.button__toggle-icon[data-v-13176c56]{height:16px}.button__size-progress[data-v-13176c56]{display:flex;align-items:center;justify-content:center;height:var(--button-size)}.widget-error[data-v-8a0a0924]{height:38px;background-color:#ffb694;box-shadow:4px 4px 10px #ff500033}.widget-error-text[data-v-8a0a0924]{margin:0}.widget-error-wrap[data-v-8a0a0924]{height:100%;display:flex;align-items:center;justify-content:center}.widget-error-close[data-v-8a0a0924]{display:flex;align-items:center;justify-content:center;height:100%;width:40px;cursor:pointer}.widget-error-close[data-v-8a0a0924]:after,.widget-error-close[data-v-8a0a0924]:before{position:absolute;content:"";height:20px;width:2px;background-color:#000;border-radius:2px}.widget-error-close[data-v-8a0a0924]:after{transform:rotate(45deg)}.widget-error-close[data-v-8a0a0924]:before{transform:rotate(-45deg)}.widget-error-message[data-v-8a0a0924]{font-size:14px;line-height:130%;letter-spacing:.05em;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.widget-error-main[data-v-8a0a0924]{width:700px}.widget-error__container-close[data-v-8a0a0924]{height:100%}.article-details[data-v-8a0a0924]{font-size:18px;line-height:130%;letter-spacing:.05em;text-decoration-line:underline;font-weight:700;cursor:pointer}.fade-enter-active[data-v-aa732044],.fade-leave-active[data-v-aa732044]{transition:.5s ease;max-height:38px}.fade-enter-from[data-v-aa732044],.fade-leave-to[data-v-aa732044]{opacity:0;max-height:0}.container-errors[data-v-8e9870dd]{display:flex;gap:1px;flex-direction:column;position:fixed;top:0;left:0;width:100%;z-index:11}.fade-enter-active[data-v-8e9870dd],.fade-leave-active[data-v-8e9870dd]{transition:.5s ease;max-height:38px}.fade-enter-from[data-v-8e9870dd],.fade-leave-to[data-v-8e9870dd]{opacity:0;max-height:0}.modal__wait[data-v-430b5c94]{padding:40px 30px;max-width:450px}*{--extra-fast:.1s;--fast:.2s;--medium:.3s;box-sizing:border-box;--primary: #3949ab }html,body,#app{height:100%}body{margin:0}ul{text-align:left}.flex{display:flex}.flex_column{display:flex;flex-direction:column}.flex_center{display:flex;align-items:center;justify-content:center}.flex_full,.flex_grow{flex-grow:1}.grid{display:grid}.link{text-decoration:var(--link-decoration);color:var(--link-color)}.link_hover-underline:hover,.link_hover_underline:hover{text-decoration:underline}.link_full{position:absolute;height:100%;width:100%;left:0;top:0}.text_sm{font-weight:400;font-size:12px;line-height:16px}.text_md{font-size:14px;line-height:20px}.text_lg{font-size:16px;line-height:24px}.text_size_xxl{font-size:18px;line-height:25px}.text_bold{font-weight:600}.text_nowrap{white-space:nowrap}.text_right{text-align:right}.text_center{text-align:center}.text_size_sm{font-size:12px;line-height:130%}.text_size_md{font-size:14px;line-height:140%}.text_error{color:red}.title_sm{font-weight:600;font-size:16px;line-height:24px}.title_md{font-weight:600;font-size:24px;line-height:32px}.title_lg{font-weight:700;font-size:32px;line-height:48px}.title_xxl,.title_xl{font-weight:700;font-size:48px;line-height:64px}.cursor_pointer{cursor:pointer}.cursor_default{cursor:default}button{outline:none;-webkit-user-select:none;user-select:none;transition:background-color .2s}.button{display:flex;align-items:center;justify-content:center;outline:none}.button_main{background-color:var(--button-background);color:var(--button-color)}.button_main:focus{background-color:var(--button-background-active)}.button_main:active{background-color:var(--button-background-active)}.button_white{background-color:var(--white);color:var(--main)}.button_sm{height:30px;width:130px}.button_shadow{box-shadow:0 2px 4px #00000040}.button_lg{font-weight:600;font-size:16px;line-height:24px;padding:12px 0;height:50px;width:200px}.button_disabled{background-color:var(--gray-1)}.button_resolve{background-color:var(--main);color:var(--white);border-radius:2px}.button_reject{border:1px solid var(--color-dark);border-radius:2px}.button_md{height:30px;padding:0 10px;min-width:80px}.button_disabled{background-color:var(--button-disabled-background-color);cursor:pointer!important}.color_main,.color__text_main{color:var(--main)}.color__text_black{color:var(--black-1)}.color__text_gray{color:var(--text-gray)}.color__text_red,.color_red{color:var(--red)}.color__text_white{color:var(--white)}.background_orange{background-color:var(--orange)}.background_red{background-color:var(--red)}.color_dark{color:var(--dark)}.color_light{color:var(--light)}.move-vertical-enter-active,.move-vertical-leave-active{transition:transform .5s ease}.move-vertical-enter-from,.move-vertical-leave-to{transform:translateY(-10px)}.move-horizontal-enter-active,.move-horizontal-leave-active{transition:transform .5s}.move-horizontal-enter-from,.move-horizontal-leave-to{transform:translate(-40px)}.modal-vertical-enter-active,.modal-vertical-leave-active,.modal-default{transition:transform var(--medium)}.modal-vertical-enter-active .modal-default,.modal-vertical-leave-active .modal-default{transform:translateY(-100px)}.move-vertical-fast-enter-active,.move-vertical-fast-leave-active{transition:transform var(--fast) ease}.move-vertical-fast-enter-from,.move-vertical-fast-leave-to{transform:translateY(-20px)}.slide-up-enter-active,.slide-up-leave-active{transition:transform var(--fast) ease,opacity var(--fast)}.slide-up-enter-from,.slide-up-leave-to{transform:translateY(20px);opacity:0}.opacity-enter-active,.opacity-leave-active{transition:opacity var(--fast) ease}.opacity-enter-from,.opacity-leave-to{opacity:0}.list-move,.list-enter-active,.list-leave-active{transition:all .5s ease}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.list-leave-active{position:absolute}.modal-default{background-color:var(--white);position:relative;z-index:1;width:auto;background:var(--white);border-radius:var(--border-radius)}.modal-default__head{background-color:var(--black-1);text-align:center;padding:5px 0;border-radius:6px 6px 0 0}.modal-default__body{gap:20px;padding:0 15px}.modal-default__foot{padding:30px 0;display:flex;justify-content:center}.hint-tooltip{display:block;z-index:222;margin:auto;pointer-events:none;box-shadow:0 0 0 9999px #00000080}.tooltip-help-circle-in,.tooltip-help-circle-out{border-radius:50%}.tooltip-help-undefined{border-radius:50px}.tooltip-card{position:fixed;z-index:315;display:flex;flex-direction:column;width:480px;height:fit-content;margin:auto;border-radius:10px;background-color:var(--hint-background);cursor:default}.tooltip-card__foot{display:flex;justify-content:space-between;align-items:center;background-color:var(--hint-background-navigation);border-radius:10px;padding:20px}.tooltip-card__foot-current{font-weight:600;font-size:20px;line-height:24px;color:var(--white)}.tooltip-card__body{position:relative;display:flex;flex-direction:column;gap:8px;padding:20px 20px 10px}.tooltip-card__body-title{font-weight:700;font-size:20px;line-height:24px;color:var(--white)}.tooltip-card__body-text{font-size:16px;line-height:24px;color:var(--white)}.tooltip-card__foot-button_back{background-color:var(--main-1)}.tooltip-card__foot-button_next{background-color:var(--hint)}.tooltip-card__body-close{position:absolute;right:22px;top:12px;width:20px;height:16px;opacity:.3;cursor:pointer}.tooltip-card__body-close:hover{opacity:1}.tooltip-card__body-close:before,.tooltip-card__body-close:after{position:absolute;left:15px;content:" ";height:21px;width:2px;background-color:#fff}.tooltip-card__body-close:before{transform:rotate(45deg)}.tooltip-card__body-close:after{transform:rotate(-45deg)}.tooltip-card-container-wrap{pointer-events:none;position:absolute;left:0;top:0;z-index:123132;height:100%;width:100%}.tooltip-card-container-wrap>div{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.tester-box-tooltip{pointer-events:all}.position_relative{position:relative}.position_absolute{position:absolute}.gap_5{gap:5px}.gap_10{gap:10px}.gap_20{gap:20px}.margin-0{margin:0}.widget-input{background-color:var(--input-background);border:var(--input-border);border-radius:var(--input-border-radius);color:var(--input-color)}.widget-input:disabled{background-color:var(--input-background-disabled);border:var(--input-border-disabled)}.widget-input[error=true]{border:var(--input-border-error)}.widget-input::placeholder{color:var(--input-placeholder-color)}.widget-input:disabled::placeholder{color:var(--input-placeholder-color-disabled)}.input_error{border:1px solid red!important}.input_size_md{height:var(--input-height)}.input-title{font-size:12px;line-height:16px;color:#667085;margin:4px 0}.widget-table{border-collapse:collapse}.widget-table_mini p{margin:0}.list-cell-link>a{position:absolute;left:0;top:0;z-index:1;height:100%;width:100%;cursor:pointer}.list-cell-link>p{font-weight:500}.widget-table__cell{padding:0 20px;font-weight:400;font-size:14px;line-height:19px;color:#4f4f4f}.widget-table-cell_use{cursor:pointer}.widget-table-cell_select{width:min-content}.table-cell-toggle{--border-color: black;position:relative;display:grid;place-content:center;border:1px solid var(--border-color);height:15px;aspect-ratio:1 / 1;border-radius:50%}.table-cell-toggle_active:after{content:"";border-radius:50%;background-color:var(--border-color);height:9px;aspect-ratio:1/1}.widget-table-cell_number{text-align:right}.overflow_auto{overflow:auto}.padding_5{padding:5px}.padding_10{padding:10px}.padding_0{padding:0}.padding_15,.padding_20{padding:15px}.es-list-container{overflow:auto}.widget-table__head[data-v-2ce532f4]{text-align:left}.widget-table__head-cell[data-v-2ce532f4]{padding:18px}.widget-table__head-title[data-v-2ce532f4]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:600;font-size:14px;line-height:19px;margin:0}.widget-loader[data-v-a01a837d]{display:grid;grid-template-columns:max-content max-content;padding:4px;gap:10px;align-items:center}.widget-table-loader{padding:10px 0}.breadcrumb[data-v-1702aee0]{gap:8px;align-items:center;color:#828282;cursor:pointer}.breadcrumb__title[data-v-1702aee0]{font-weight:400;font-size:12px;line-height:16px;margin:0}.breadcrumb__icon[data-v-1702aee0]{height:16px}.breadcrumb_active[data-v-1702aee0],.breadcrumb[data-v-1702aee0]:hover{color:#4f4f4f}.widget-breadcrumbs[data-v-1dfb2668]{display:flex;gap:14px}tr[data-v-47478206]{border:1px solid #F3F4FC;height:30px}th[data-v-47478206],td[data-v-47478206]{position:relative;padding:0 11px}th[data-v-47478206]{text-align:left}p[data-v-47478206]{margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.head-cell[data-v-03c9724f]{padding:0 15px 0 10px;display:flex}.head-cell[data-v-03c9724f]:hover{box-shadow:0 -1px #e7f2ff}.list-head-cell-label[data-v-03c9724f]{padding:5px 0;white-space:nowrap;cursor:pointer}.head-cell-order[data-v-03c9724f]{position:absolute;inset-inline-end:4px;inset-block:0 0;margin:auto;font-size:14px;height:14px}.head-cell-order_down[data-v-03c9724f]{transform:rotate(180deg)}.head-cell-resize[data-v-03c9724f]{padding:3px 10px;cursor:col-resize;transition:background-color .1s}.head-cell-resize[data-v-03c9724f]:hover{background-color:#f5f5f5}.head-cell-resize[data-v-03c9724f]:after{content:"";margin:auto;width:1px;height:100%;display:block;background-color:#d2d2d2}.widget-list-head[data-v-ecab6d75]{position:sticky;top:-1px;z-index:1}.test-block[data-v-ecab6d75]{background-color:#e7f2ff;inset-block-start:-1px;position:absolute;z-index:2;-webkit-user-select:none;user-select:none;white-space:nowrap;padding:0 10px;height:calc(100% + 1px);display:none;place-content:center}.widget-list-head th[data-v-ecab6d75]{position:sticky;top:0;z-index:2;-webkit-user-select:none;user-select:none}.head-cell[data-v-ecab6d75]{display:flex;cursor:pointer;padding:0 10px}.head-cell-label[data-v-ecab6d75]{flex-grow:1;margin:0;white-space:nowrap;-webkit-user-select:none;user-select:none}.list-arrow[data-v-ecab6d75]{position:relative;display:block;height:15px;width:2px;background-color:gray;border-radius:2px}.list-arrow[data-v-ecab6d75]:after,.list-arrow[data-v-ecab6d75]:before{position:absolute;display:block;content:"";background-color:gray;height:8px;width:2px;border-radius:2px}.list-arrow[data-v-ecab6d75]:after{transform:rotate(-30deg);right:-2px}.list-arrow[data-v-ecab6d75]:before{transform:rotate(30deg);left:-2px}.block-list-arrow[data-v-ecab6d75]{transition:.1s}.down[data-v-ecab6d75]{transform:rotate(180deg)}.head-cell-order[data-v-ecab6d75]{display:grid;place-content:center}.widget-list-head-label[data-v-ecab6d75]{font-weight:400;font-size:13px;line-height:16px;padding:5px 0}.head-cell-resize[data-v-ecab6d75]{position:relative;padding:3px 10px;cursor:col-resize}.head-cell-resize[data-v-ecab6d75]:after{content:"";margin:auto;width:1px;height:100%;display:block;background-color:gray}.widget-list-body[data-v-eb609a21]{position:relative}.widget-list-body[data-v-eb609a21]:after{content:"";background-color:transparent;z-index:-1;transition:.1s}.widget-list-body_inactive[data-v-eb609a21]:after{z-index:0;position:absolute;top:0;background-color:#afafaf80;height:100%;width:100%}.widget-section[data-v-07232553]{background-color:var(--form-section-background-color);box-shadow:var(--form-section-box-shadow);border-radius:var(--form-section-border-radius)}.widget-section__header[data-v-07232553]{border-radius:10px 10px 0 0;display:flex;padding:8px 8px 8px 40px;background-color:var(--form-section-header-background-color)}.widget-section-title[data-v-07232553]{flex-grow:1;font-weight:var(--form-section-title-font-weight);color:var(--form-section-title-color);font-size:var(--form-section-title-font-size);line-height:var(--form-section-title-line-height);margin:0}.widget-section__body[data-v-07232553]{padding:20px 40px}.widget-table__head[data-v-cae93640]{text-align:left;position:sticky;top:-1px;z-index:0}.widget-table__head-cell[data-v-cae93640]{padding:18px}.widget-table__head-title[data-v-cae93640]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:600;font-size:14px;line-height:19px;margin:0}.form-titles[data-v-6ea1062c]{display:flex;flex-direction:column;justify-content:center}.form-label[data-v-6ea1062c]{display:flex;gap:10px;padding:4px 7px;align-items:center}.form-container-label[data-v-6ea1062c]{margin:0 0 0 6px}.form-info[data-v-6ea1062c]{color:#828282}.form-label[data-v-6ea1062c]{background-color:#ff6262;color:#fff;border-radius:4px}.form-title[data-v-6ea1062c]{font-weight:700;font-size:18px;line-height:25px}.form-label__title[data-v-6ea1062c]{margin:0;line-height:16px}.form-label__icon[data-v-6ea1062c]{height:16px;font-size:16px}.form-label_inactive[data-v-6ea1062c]{background-color:gray}.form-label_correct[data-v-6ea1062c]{background-color:green}.form-label_warning[data-v-6ea1062c]{background-color:#ff0}.form-label_error[data-v-6ea1062c]{background-color:#ff6262}.widget-form[data-v-3d88d93f]{display:flex;flex-direction:column;gap:10px}.widget-form__head[data-v-3d88d93f]{display:flex;gap:16px;align-items:center;z-index:1;padding:10px 0}.widget-form__button[data-v-3d88d93f]{margin-left:auto}.wrap__widget-form[data-v-3d88d93f]{padding:20px}.widget-form__head[data-v-3d88d93f]{position:sticky;top:0}@media screen and (max-width: 768px){.wrap__widget-form[data-v-3d88d93f]{padding:10px}.widget-form__head[data-v-3d88d93f]{top:15px}}.head-image[data-v-3d88d93f]{padding:15px;background-color:#f3f4fc;border-radius:8px}.validation-item[data-v-e6138c02]{display:grid;grid-template-columns:70px 1fr;border:1px solid #00CCB1;border-radius:4px}.validation-item_failed[data-v-e6138c02]{border-color:#ee8030}.validation-item-header[data-v-e6138c02]{display:grid;place-content:center;background-color:#00ccb1}.validation-item_failed .validation-item-header[data-v-e6138c02]{background-color:#ee8030}.validation-item__title[data-v-e6138c02]{font-weight:700;font-size:18px;line-height:25px;color:#fff}.validation-item-content[data-v-e6138c02]{display:flex;flex-direction:column;padding:10px 16px;gap:10px}.modal-wrap[data-v-119165b9]{max-height:80%;display:flex;flex-direction:column}.modal-wrap-head[data-v-119165b9]{display:flex;align-items:center;padding:10px;background:#F3F4FC;border-radius:8px 8px 0 0}.modal-head__title[data-v-119165b9]{font-weight:700;font-size:18px;line-height:25px}.modal-wrap-body[data-v-119165b9]{background-color:#fff;border-radius:0 0 8px 8px;overflow:auto}.modal-validation-body[data-v-a39cfe2f]{display:flex;flex-direction:column;gap:10px;padding:20px}.widget-input-check[data-v-f4a3dc6c]{display:grid;place-items:center;height:20px;aspect-ratio:1/1;border:2px solid #1a1a1a;border-radius:4px;cursor:pointer;background-color:#fff}.widget-input-check_active[data-v-f4a3dc6c]{background-color:#2f2f2f}.widget-input-check>i[data-v-f4a3dc6c]{font-size:12px;height:12px;color:#fff}.widget-card[data-v-bca33c5b]{display:flex}.widget-card-toggle[data-v-bca33c5b]{padding:10px}.widget-card-wrap[data-v-bca33c5b]{display:flex;flex-grow:1;background-color:#fff;border:1px solid #cbcbcb;border-radius:8px}.widget-card-arrow[data-v-bca33c5b]{padding:10px;cursor:pointer}.card-icon-arrow[data-v-bca33c5b]{display:block;transition:transform var(--fast)}.card-icon-arrow_active[data-v-bca33c5b]{transform:rotate(90deg)}.widget-card-title[data-v-bca33c5b]{margin:0;font-weight:600;font-size:18px;line-height:20px}.widget-card-content[data-v-bca33c5b]{padding:9px 0;flex-grow:1}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import { h as k, resolveComponent as U, openBlock as c, createElementBlock as u, createTextVNode as Ae, toDisplayString as m, createCommentVNode as h, createElementVNode as d, createVNode as C, normalizeClass as I, createBlock as v, Fragment as O, renderList as j, reactive as A, defineComponent as b, renderSlot as B, pushScopeId as Dt, popScopeId as Mt, withCtx as he, withKeys as vn, computed as L, ref as G, normalizeStyle as pt, withModifiers as Ft, onMounted as Ye, onUnmounted as wn, unref as P, TransitionGroup as jt, provide as xt, inject as ft, resolveDynamicComponent as Ut, mergeProps as Bt, useSlots as qt, Transition as bn, watch as Ct, readonly as Gt } from "vue";
3
+ import { openModal as zt } from "jenesius-vue-modal";
4
+ import { Form as Y, utils as ue, FormField as ct } from "jenesius-vue-form";
5
+ import Ht from "object-hash";
6
+ import { RouterLink as Jt, useRoute as $n } from "vue-router";
7
+ import En from "date-and-time";
8
+ import { Manager as Tn } from "socket.io-client";
9
9
  /*!
10
- * eservices-core v1.2.2
10
+ * eservices-core v1.2.4
11
11
  * (c) 2023 ESERVICES
12
12
  */
13
- const m = (t, e) => {
13
+ const g = (t, e) => {
14
14
  const n = t.__vccOpts || t;
15
15
  for (const [s, r] of e)
16
16
  n[s] = r;
17
17
  return n;
18
- }, En = {
18
+ }, Sn = {
19
19
  props: {
20
20
  name: String
21
21
  },
@@ -26,27 +26,27 @@ const m = (t, e) => {
26
26
  } catch {
27
27
  n = t.name;
28
28
  }
29
- return () => N("i", {
29
+ return () => k("i", {
30
30
  class: `icon icon-${n}`
31
31
  });
32
32
  }
33
- }, R = /* @__PURE__ */ m(En, [["__scopeId", "data-v-6412ede6"]]);
34
- function Tn(t, e) {
33
+ }, R = /* @__PURE__ */ g(Sn, [["__scopeId", "data-v-6412ede6"]]);
34
+ function Cn(t, e) {
35
35
  return !!t && t === e || "password is not equal";
36
36
  }
37
- function Ye(t) {
37
+ function Xe(t) {
38
38
  return Number(t.replace(/[^0-9.]/g, ""));
39
39
  }
40
- function pt(t, e = null) {
41
- let s = String(Ye(t)).split(".");
40
+ function ht(t, e = null) {
41
+ let s = String(Xe(t)).split(".");
42
42
  return s[0] = s[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), s.length > 1 && e !== null && s[1].length > e && (s[1] = s[1].substring(0, e)), s.join(".");
43
43
  }
44
- const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
- numeric: Ye,
47
- prettyNumeric: pt,
48
- validPassword: Tn
49
- }, Symbol.toStringTag, { value: "Module" })), le = {
46
+ numeric: Xe,
47
+ prettyNumeric: ht,
48
+ validPassword: Cn
49
+ }, Symbol.toStringTag, { value: "Module" })), de = {
50
50
  props: {
51
51
  title: {
52
52
  type: String
@@ -162,7 +162,7 @@ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
162
162
  this.value = t;
163
163
  }
164
164
  }
165
- }, Xe = {
165
+ }, Ze = {
166
166
  props: {
167
167
  password: {
168
168
  type: Boolean,
@@ -182,7 +182,7 @@ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
182
182
  return this.password && !this.isPasswordVisible ? "password" : "text";
183
183
  }
184
184
  }
185
- }, Cn = {
185
+ }, An = {
186
186
  props: {
187
187
  password: {
188
188
  type: Boolean,
@@ -197,19 +197,19 @@ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
197
197
  this.isPasswordVisible = t;
198
198
  }
199
199
  }
200
- }, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
200
+ }, kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
201
201
  __proto__: null,
202
- MixinInput: le,
203
- MixinInputPassword: Cn,
204
- MixinInputText: Xe
202
+ MixinInput: de,
203
+ MixinInputPassword: An,
204
+ MixinInputText: Ze
205
205
  }, Symbol.toStringTag, { value: "Module" }));
206
- function Ve(t, e = []) {
206
+ function Le(t, e = []) {
207
207
  let n = t;
208
208
  return e.forEach((s) => {
209
209
  n = s(n);
210
210
  }), n;
211
211
  }
212
- const An = {
212
+ const Nn = {
213
213
  components: { Icon: R },
214
214
  props: {
215
215
  modify: {
@@ -231,21 +231,21 @@ const An = {
231
231
  },
232
232
  computed: {
233
233
  prettyValue() {
234
- return console.log("pretty value"), this.pretty(Ve(this.modelValue, this.arrayInputPrettyModifiers));
234
+ return console.log("pretty value"), this.pretty(Le(this.modelValue, this.arrayInputPrettyModifiers));
235
235
  },
236
236
  arrayInputModifiers() {
237
237
  let t = [];
238
- return (this.numeric || this.prettyNumeric) && t.push(Ye), t;
238
+ return (this.numeric || this.prettyNumeric) && t.push(Xe), t;
239
239
  },
240
240
  arrayInputPrettyModifiers() {
241
241
  let t = [];
242
- return this.prettyNumeric && t.push(pt), t;
242
+ return this.prettyNumeric && t.push(ht), t;
243
243
  }
244
244
  },
245
245
  methods: {
246
246
  //Not used
247
247
  onChange(t) {
248
- let e = this.modify(Ve(t.target.value, this.arrayInputModifiers));
248
+ let e = this.modify(Le(t.target.value, this.arrayInputModifiers));
249
249
  this.input(e);
250
250
  },
251
251
  onInput() {
@@ -253,29 +253,29 @@ const An = {
253
253
  this.input(e), this.$refs.input.value = this.pretty(e);
254
254
  },
255
255
  _onInput(t) {
256
- let e = this.modify(Ve(t.target.value, this.arrayInputModifiers));
257
- this.input(e), this.$refs.input.value = this.pretty(Ve(this.modelValue, this.arrayInputPrettyModifiers));
256
+ let e = this.modify(Le(t.target.value, this.arrayInputModifiers));
257
+ this.input(e), this.$refs.input.value = this.pretty(Le(this.modelValue, this.arrayInputPrettyModifiers));
258
258
  }
259
259
  },
260
- mixins: [le, Xe],
260
+ mixins: [de, Ze],
261
261
  name: "InputText"
262
- }, kn = { class: "input-wrap" }, Nn = {
262
+ }, Pn = { class: "input-wrap" }, On = {
263
263
  key: 0,
264
264
  class: "input-title"
265
- }, Pn = {
265
+ }, Rn = {
266
266
  key: 0,
267
267
  class: "input-title_required"
268
- }, On = ["disabled", "error"], Rn = ["type", "placeholder", "disabled", "error", "value"], Vn = {
268
+ }, Vn = ["disabled", "error"], Ln = ["type", "placeholder", "disabled", "error", "value"], Wn = {
269
269
  key: 1,
270
270
  class: "input-text__error text_sm"
271
271
  };
272
- function Ln(t, e, n, s, r, i) {
273
- const a = x("icon");
274
- return l(), u("div", kn, [
275
- t.title ? (l(), u("p", Nn, [
276
- Ae(y(t.title) + " ", 1),
277
- t.required ? (l(), u("span", Pn, "*")) : _("", !0)
278
- ])) : _("", !0),
272
+ function Dn(t, e, n, s, r, i) {
273
+ const a = U("icon");
274
+ return c(), u("div", Pn, [
275
+ t.title ? (c(), u("p", On, [
276
+ Ae(m(t.title) + " ", 1),
277
+ t.required ? (c(), u("span", Rn, "*")) : h("", !0)
278
+ ])) : h("", !0),
279
279
  d("div", {
280
280
  class: "input-text-container input_size_md flex",
281
281
  disabled: t.disabled || t.isInsideDisabled,
@@ -290,8 +290,8 @@ function Ln(t, e, n, s, r, i) {
290
290
  ref: "input",
291
291
  value: n.pretty(t.value),
292
292
  onInput: e[0] || (e[0] = (...o) => i.onInput && i.onInput(...o))
293
- }, null, 40, Rn),
294
- t.password ? (l(), u("div", {
293
+ }, null, 40, Ln),
294
+ t.password ? (c(), u("div", {
295
295
  key: 0,
296
296
  class: "input-text__password",
297
297
  onClick: e[1] || (e[1] = (o) => t.togglePasswordVisible())
@@ -300,35 +300,35 @@ function Ln(t, e, n, s, r, i) {
300
300
  class: "cursor_pointer",
301
301
  name: t.isPasswordVisible ? "eye-crossed" : "eye"
302
302
  }, null, 8, ["name"])
303
- ])) : _("", !0),
304
- t.errorMessage ? (l(), u("p", Vn, y(t.errorMessage), 1)) : _("", !0)
305
- ], 8, On)
303
+ ])) : h("", !0),
304
+ t.errorMessage ? (c(), u("p", Wn, m(t.errorMessage), 1)) : h("", !0)
305
+ ], 8, Vn)
306
306
  ]);
307
307
  }
308
- const Wn = /* @__PURE__ */ m(An, [["render", Ln], ["__scopeId", "data-v-65e2ee2d"]]);
309
- const Dn = {
310
- mixins: [le],
308
+ const Mn = /* @__PURE__ */ g(Nn, [["render", Dn], ["__scopeId", "data-v-65e2ee2d"]]);
309
+ const Fn = {
310
+ mixins: [de],
311
311
  name: "InputToggle"
312
312
  };
313
- function Mn(t, e, n, s, r, i) {
314
- return l(), u("div", {
313
+ function jn(t, e, n, s, r, i) {
314
+ return c(), u("div", {
315
315
  class: I(["input__toggle widget-input", { active: t.value, disabled: t.disabled || t.isInsideDisabled }]),
316
316
  onClick: e[0] || (e[0] = (a) => t.input(!t.value))
317
317
  }, null, 2);
318
318
  }
319
- const Fn = /* @__PURE__ */ m(Dn, [["render", Mn], ["__scopeId", "data-v-56d58611"]]);
320
- const jn = {
319
+ const xn = /* @__PURE__ */ g(Fn, [["render", jn], ["__scopeId", "data-v-56d58611"]]);
320
+ const Un = {
321
321
  props: ["isActive", "title"],
322
322
  name: "FragmentInputSelectItem"
323
- }, xn = { class: "item-wrap" };
324
- function Un(t, e, n, s, r, i) {
325
- return l(), u("div", xn, [
323
+ }, Bn = { class: "item-wrap" };
324
+ function qn(t, e, n, s, r, i) {
325
+ return c(), u("div", Bn, [
326
326
  d("p", {
327
327
  class: I(["input-select__item cursor_pointer", { active: n.isActive }])
328
- }, y(n.title), 3)
328
+ }, m(n.title), 3)
329
329
  ]);
330
330
  }
331
- const Bn = /* @__PURE__ */ m(jn, [["render", Un], ["__scopeId", "data-v-69ab8592"]]);
331
+ const Gn = /* @__PURE__ */ g(Un, [["render", qn], ["__scopeId", "data-v-69ab8592"]]);
332
332
  function ke(t, e) {
333
333
  if (!t)
334
334
  return console.warn("Element is not provided.");
@@ -340,7 +340,7 @@ function ke(t, e) {
340
340
  };
341
341
  window.addEventListener("click", s);
342
342
  }
343
- const qn = {
343
+ const zn = {
344
344
  data: () => ({
345
345
  isActive: !1
346
346
  }),
@@ -366,64 +366,64 @@ const qn = {
366
366
  t && ke(this.$refs.input, () => this.hide());
367
367
  }
368
368
  },
369
- components: { Icon: R, FragmentInputSelectItem: Bn },
370
- mixins: [le],
369
+ components: { Icon: R, FragmentInputSelectItem: Gn },
370
+ mixins: [de],
371
371
  name: "InputSelect"
372
- }, Gn = { class: "input-wrap" }, zn = {
372
+ }, Hn = { class: "input-wrap" }, Jn = {
373
373
  key: 0,
374
374
  class: "input-title"
375
- }, Hn = {
375
+ }, Kn = {
376
376
  key: 0,
377
377
  class: "color__text_red"
378
- }, Jn = { class: "input-select-container__current input_size_md flex" }, Kn = {
378
+ }, Yn = { class: "input-select-container__current input_size_md flex" }, Xn = {
379
379
  key: 0,
380
380
  class: "input-select-value"
381
- }, Yn = {
381
+ }, Zn = {
382
382
  key: 1,
383
383
  class: "current-placeholder text_md"
384
- }, Xn = { class: "input-select-list input-select-container__list" }, Zn = {
384
+ }, Qn = { class: "input-select-list input-select-container__list" }, es = {
385
385
  key: 0,
386
386
  class: "input-text__error position_absolute margin-0 text_sm color__text_red"
387
387
  };
388
- function Qn(t, e, n, s, r, i) {
389
- const a = x("icon"), o = x("fragment-input-select-item");
390
- return l(), u("div", Gn, [
391
- t.title ? (l(), u("p", zn, [
392
- Ae(y(t.title) + " ", 1),
393
- t.required ? (l(), u("span", Hn, "*")) : _("", !0)
394
- ])) : _("", !0),
388
+ function ts(t, e, n, s, r, i) {
389
+ const a = U("icon"), o = U("fragment-input-select-item");
390
+ return c(), u("div", Hn, [
391
+ t.title ? (c(), u("p", Jn, [
392
+ Ae(m(t.title) + " ", 1),
393
+ t.required ? (c(), u("span", Kn, "*")) : h("", !0)
394
+ ])) : h("", !0),
395
395
  d("div", {
396
396
  class: I(["input-select-container cursor_pointer", { active: t.isActive, disabled: t.disabled || t.isInsideDisabled, error: !!t.errorMessage }]),
397
- onClick: e[1] || (e[1] = (c) => i.active()),
397
+ onClick: e[1] || (e[1] = (l) => i.active()),
398
398
  ref: "input"
399
399
  }, [
400
- d("div", Jn, [
401
- t.value === void 0 || t.value === null ? (l(), u("span", Yn, y(t.placeholder), 1)) : (l(), u("p", Kn, y(i.titleValue), 1)),
402
- t.disabled || t.isInsideDisabled ? _("", !0) : (l(), b(a, {
400
+ d("div", Yn, [
401
+ t.value === void 0 || t.value === null ? (c(), u("span", Zn, m(t.placeholder), 1)) : (c(), u("p", Xn, m(i.titleValue), 1)),
402
+ t.disabled || t.isInsideDisabled ? h("", !0) : (c(), v(a, {
403
403
  key: 2,
404
404
  class: "input-select__ico-toggle",
405
405
  name: "caret-down"
406
406
  }))
407
407
  ]),
408
- d("div", Xn, [
409
- t.value ? (l(), b(o, {
408
+ d("div", Qn, [
409
+ t.value ? (c(), v(o, {
410
410
  key: 0,
411
- onClick: e[0] || (e[0] = (c) => t.input(null))
412
- })) : _("", !0),
413
- (l(!0), u(O, null, M(t.arrayParse, (c, p) => (l(), b(o, {
411
+ onClick: e[0] || (e[0] = (l) => t.input(null))
412
+ })) : h("", !0),
413
+ (c(!0), u(O, null, j(t.arrayParse, (l, p) => (c(), v(o, {
414
414
  class: "input-select-list__item",
415
415
  key: p,
416
- "is-active": c.value === t.value,
417
- title: c.title,
418
- onClick: (f) => t.input(c.value)
416
+ "is-active": l.value === t.value,
417
+ title: l.title,
418
+ onClick: (f) => t.input(l.value)
419
419
  }, null, 8, ["is-active", "title", "onClick"]))), 128))
420
420
  ]),
421
- t.errorMessage ? (l(), u("p", Zn, y(t.errorMessage), 1)) : _("", !0)
421
+ t.errorMessage ? (c(), u("p", es, m(t.errorMessage), 1)) : h("", !0)
422
422
  ], 2)
423
423
  ]);
424
424
  }
425
- const es = /* @__PURE__ */ m(qn, [["render", Qn], ["__scopeId", "data-v-c4acd469"]]);
426
- class ts {
425
+ const ns = /* @__PURE__ */ g(zn, [["render", ts], ["__scopeId", "data-v-c4acd469"]]);
426
+ class ss {
427
427
  static async upload(e, n) {
428
428
  const s = new FormData();
429
429
  s.append("file", e);
@@ -434,7 +434,7 @@ class ts {
434
434
  }).then((i) => i.json()).then((i) => (i.filename = e.name, i));
435
435
  }
436
436
  }
437
- function ft(t = () => null) {
437
+ function _t(t = () => null) {
438
438
  let e = t;
439
439
  const n = A({
440
440
  wait: !1,
@@ -453,7 +453,7 @@ function ft(t = () => null) {
453
453
  e = s;
454
454
  }, n;
455
455
  }
456
- const ns = $({
456
+ const rs = b({
457
457
  props: {
458
458
  entityName: {
459
459
  type: String,
@@ -465,29 +465,29 @@ const ns = $({
465
465
  pw: null
466
466
  }),
467
467
  created() {
468
- this.pw = ft(this.onLoad);
468
+ this.pw = _t(this.onLoad);
469
469
  },
470
470
  methods: {
471
471
  async onChange(t) {
472
472
  t && this.pw.call(t);
473
473
  },
474
474
  async onLoad(t) {
475
- const e = await ts.upload(t, this.entityName);
475
+ const e = await ss.upload(t, this.entityName);
476
476
  this.$emit("load", e), this.name && this.input(e.id);
477
477
  }
478
478
  },
479
- mixins: [le],
479
+ mixins: [de],
480
480
  components: { Icon: R }
481
- }), ss = { class: "container-input-file" }, rs = {
481
+ }), is = { class: "container-input-file" }, os = {
482
482
  key: 0,
483
483
  class: "process-info input-file__wait text_size_sm"
484
- }, is = {
484
+ }, as = {
485
485
  key: 1,
486
486
  class: "process-info input-file__error text_size_sm text_error"
487
487
  };
488
- function as(t, e, n, s, r, i) {
489
- const a = x("icon");
490
- return l(), u("div", ss, [
488
+ function ls(t, e, n, s, r, i) {
489
+ const a = U("icon");
490
+ return c(), u("div", is, [
491
491
  C(a, {
492
492
  name: "plus",
493
493
  class: "icon__file-upload"
@@ -497,16 +497,16 @@ function as(t, e, n, s, r, i) {
497
497
  class: "input-file",
498
498
  onChange: e[0] || (e[0] = (o) => t.onChange(o.target.files[0]))
499
499
  }, null, 32),
500
- t.pw.wait ? (l(), u("p", rs, "Loading...")) : _("", !0),
501
- t.pw.error ? (l(), u("p", is, "Error load file")) : _("", !0)
500
+ t.pw.wait ? (c(), u("p", os, "Loading...")) : h("", !0),
501
+ t.pw.error ? (c(), u("p", as, "Error load file")) : h("", !0)
502
502
  ]);
503
503
  }
504
- const os = /* @__PURE__ */ m(ns, [["render", as], ["__scopeId", "data-v-bdbf1475"]]), ls = {
504
+ const cs = /* @__PURE__ */ g(rs, [["render", ls], ["__scopeId", "data-v-bdbf1475"]]), us = {
505
505
  //InputAddress,
506
- InputText: Wn,
507
- InputToggle: Fn,
508
- InputSelect: es,
509
- InputLoadFile: os
506
+ InputText: Mn,
507
+ InputToggle: xn,
508
+ InputSelect: ns,
509
+ InputLoadFile: cs
510
510
  /*InputTextArea,
511
511
  InputDate,
512
512
  ,
@@ -522,7 +522,7 @@ const os = /* @__PURE__ */ m(ns, [["render", as], ["__scopeId", "data-v-bdbf1475
522
522
  InputLicenseType,
523
523
  InputLicenseStatus*/
524
524
  };
525
- const cs = {
525
+ const ds = {
526
526
  props: {
527
527
  placeholder: String,
528
528
  error: [Boolean, String]
@@ -531,63 +531,63 @@ const cs = {
531
531
  return {};
532
532
  },
533
533
  name: "WidgetInputContainer"
534
- }, us = (t) => (Lt("data-v-1e3f1057"), t = t(), Wt(), t), ds = { class: "widget-input__container" }, ps = { class: "input-container__content" }, fs = /* @__PURE__ */ us(() => /* @__PURE__ */ d("div", { class: "widget-input__underline" }, null, -1));
535
- function hs(t, e, n, s, r, i) {
536
- return l(), u("div", ds, [
537
- d("div", ps, [
538
- U(t.$slots, "default", {}, void 0, !0)
534
+ }, ps = (t) => (Dt("data-v-1e3f1057"), t = t(), Mt(), t), fs = { class: "widget-input__container" }, hs = { class: "input-container__content" }, _s = /* @__PURE__ */ ps(() => /* @__PURE__ */ d("div", { class: "widget-input__underline" }, null, -1));
535
+ function gs(t, e, n, s, r, i) {
536
+ return c(), u("div", fs, [
537
+ d("div", hs, [
538
+ B(t.$slots, "default", {}, void 0, !0)
539
539
  ]),
540
- fs,
541
- n.placeholder ? (l(), u("p", {
540
+ _s,
541
+ n.placeholder ? (c(), u("p", {
542
542
  key: 0,
543
543
  class: I(["widget-input__placeholder", { "widget-input__placeholder_error": n.error }])
544
- }, y(n.placeholder), 3)) : _("", !0)
544
+ }, m(n.placeholder), 3)) : h("", !0)
545
545
  ]);
546
546
  }
547
- const _s = /* @__PURE__ */ m(cs, [["render", hs], ["__scopeId", "data-v-1e3f1057"]]);
548
- const gs = {
549
- components: { Icon: R, WidgetInputContainer: _s },
550
- mixins: [le, Xe],
547
+ const ms = /* @__PURE__ */ g(ds, [["render", gs], ["__scopeId", "data-v-1e3f1057"]]);
548
+ const ys = {
549
+ components: { Icon: R, WidgetInputContainer: ms },
550
+ mixins: [de, Ze],
551
551
  name: "InputText"
552
- }, ms = ["type", "value"];
553
- function ys(t, e, n, s, r, i) {
554
- const a = x("icon"), o = x("widget-input-container");
555
- return l(), b(o, {
552
+ }, vs = ["type", "value"];
553
+ function ws(t, e, n, s, r, i) {
554
+ const a = U("icon"), o = U("widget-input-container");
555
+ return c(), v(o, {
556
556
  placeholder: t.placeholder,
557
557
  error: !!t.errorMessage
558
558
  }, {
559
- default: fe(() => [
559
+ default: he(() => [
560
560
  d("input", {
561
561
  type: t.password && !t.isPasswordVisible ? "password" : "text",
562
562
  class: "input-text title_sm",
563
563
  value: t.value,
564
- onChange: e[0] || (e[0] = (c) => t.input(c.target.value)),
565
- onKeyup: e[1] || (e[1] = gn((c) => t.$emit("enter"), ["enter"]))
566
- }, null, 40, ms),
567
- t.password ? (l(), u("div", {
564
+ onChange: e[0] || (e[0] = (l) => t.input(l.target.value)),
565
+ onKeyup: e[1] || (e[1] = vn((l) => t.$emit("enter"), ["enter"]))
566
+ }, null, 40, vs),
567
+ t.password ? (c(), u("div", {
568
568
  key: 0,
569
569
  class: "input-text__password",
570
- onClick: e[2] || (e[2] = (c) => t.togglePasswordVisible())
570
+ onClick: e[2] || (e[2] = (l) => t.togglePasswordVisible())
571
571
  }, [
572
572
  C(a, {
573
573
  class: "cursor_pointer",
574
574
  name: t.isPasswordVisible ? "eye-crossed" : "eye"
575
575
  }, null, 8, ["name"])
576
- ])) : _("", !0)
576
+ ])) : h("", !0)
577
577
  ]),
578
578
  _: 1
579
579
  }, 8, ["placeholder", "error"]);
580
580
  }
581
- const vs = /* @__PURE__ */ m(gs, [["render", ys], ["__scopeId", "data-v-212b50e2"]]), ws = {
582
- InputText: vs
581
+ const bs = /* @__PURE__ */ g(ys, [["render", ws], ["__scopeId", "data-v-212b50e2"]]), $s = {
582
+ InputText: bs
583
583
  };
584
- function Le(t, e = []) {
584
+ function We(t, e = []) {
585
585
  let n = t;
586
586
  return e.forEach((s) => {
587
587
  n = s(n);
588
588
  }), n;
589
589
  }
590
- const bs = $({
590
+ const Es = b({
591
591
  components: { Icon: R },
592
592
  props: {
593
593
  title: String,
@@ -610,21 +610,21 @@ const bs = $({
610
610
  },
611
611
  computed: {
612
612
  prettyValue() {
613
- return console.log("pretty value"), this.pretty(Le(this.modelValue, this.arrayInputPrettyModifiers));
613
+ return console.log("pretty value"), this.pretty(We(this.modelValue, this.arrayInputPrettyModifiers));
614
614
  },
615
615
  arrayInputModifiers() {
616
616
  let t = [];
617
- return (this.numeric || this.prettyNumeric) && t.push(Ye), t;
617
+ return (this.numeric || this.prettyNumeric) && t.push(Xe), t;
618
618
  },
619
619
  arrayInputPrettyModifiers() {
620
620
  let t = [];
621
- return this.prettyNumeric && t.push(pt), t;
621
+ return this.prettyNumeric && t.push(ht), t;
622
622
  }
623
623
  },
624
624
  methods: {
625
625
  //Not used
626
626
  onChange(t) {
627
- let e = this.modify(Le(t.target.value, this.arrayInputModifiers));
627
+ let e = this.modify(We(t.target.value, this.arrayInputModifiers));
628
628
  this.input(e);
629
629
  },
630
630
  onInput() {
@@ -632,29 +632,29 @@ const bs = $({
632
632
  this.input(e), this.$refs.input.value = this.pretty(e);
633
633
  },
634
634
  _onInput(t) {
635
- let e = this.modify(Le(t.target.value, this.arrayInputModifiers));
636
- this.input(e), this.$refs.input.value = this.pretty(Le(this.modelValue, this.arrayInputPrettyModifiers));
635
+ let e = this.modify(We(t.target.value, this.arrayInputModifiers));
636
+ this.input(e), this.$refs.input.value = this.pretty(We(this.modelValue, this.arrayInputPrettyModifiers));
637
637
  }
638
638
  },
639
- mixins: [le, Xe],
639
+ mixins: [de, Ze],
640
640
  name: "InputText"
641
- }), $s = {
641
+ }), Ts = {
642
642
  key: 0,
643
643
  class: "input-title"
644
- }, Es = {
644
+ }, Ss = {
645
645
  key: 0,
646
646
  class: "color__text_red"
647
- }, Ts = ["disabled", "error"], Ss = ["type", "placeholder", "disabled", "error", "value"], Cs = {
647
+ }, Cs = ["disabled", "error"], Is = ["type", "placeholder", "disabled", "error", "value"], As = {
648
648
  key: 1,
649
649
  class: "input-text__error text_sm color__text_red"
650
650
  };
651
- function Is(t, e, n, s, r, i) {
652
- const a = x("icon");
653
- return l(), u(O, null, [
654
- t.title ? (l(), u("p", $s, [
655
- Ae(y(t.title) + " ", 1),
656
- t.required ? (l(), u("span", Es, "*")) : _("", !0)
657
- ])) : _("", !0),
651
+ function ks(t, e, n, s, r, i) {
652
+ const a = U("icon");
653
+ return c(), u(O, null, [
654
+ t.title ? (c(), u("p", Ts, [
655
+ Ae(m(t.title) + " ", 1),
656
+ t.required ? (c(), u("span", Ss, "*")) : h("", !0)
657
+ ])) : h("", !0),
658
658
  d("div", {
659
659
  class: "input-text-container flex",
660
660
  disabled: t.disabled || t.isInsideDisabled,
@@ -669,8 +669,8 @@ function Is(t, e, n, s, r, i) {
669
669
  ref: "input",
670
670
  value: t.pretty(t.value),
671
671
  onInput: e[0] || (e[0] = (...o) => t.onInput && t.onInput(...o))
672
- }, null, 40, Ss),
673
- t.password ? (l(), u("div", {
672
+ }, null, 40, Is),
673
+ t.password ? (c(), u("div", {
674
674
  key: 0,
675
675
  class: "input-text__password",
676
676
  onClick: e[1] || (e[1] = (o) => t.togglePasswordVisible())
@@ -679,19 +679,19 @@ function Is(t, e, n, s, r, i) {
679
679
  class: "cursor_pointer",
680
680
  name: t.isPasswordVisible ? "eye-crossed" : "eye"
681
681
  }, null, 8, ["name"])
682
- ])) : _("", !0),
683
- t.errorMessage ? (l(), u("p", Cs, y(t.errorMessage), 1)) : _("", !0)
684
- ], 8, Ts)
682
+ ])) : h("", !0),
683
+ t.errorMessage ? (c(), u("p", As, m(t.errorMessage), 1)) : h("", !0)
684
+ ], 8, Cs)
685
685
  ], 64);
686
686
  }
687
- const As = /* @__PURE__ */ m(bs, [["render", Is], ["__scopeId", "data-v-9c3e5ea6"]]), ks = {
688
- InputText: As
689
- }, Ns = {
690
- default: ls,
691
- line: ws,
692
- naomi: ks
687
+ const Ns = /* @__PURE__ */ g(Es, [["render", ks], ["__scopeId", "data-v-9c3e5ea6"]]), Ps = {
688
+ InputText: Ns
689
+ }, Os = {
690
+ default: us,
691
+ line: $s,
692
+ naomi: Ps
693
693
  };
694
- const Ps = {
694
+ const Rs = {
695
695
  components: { Icon: R },
696
696
  props: {
697
697
  title: String,
@@ -701,16 +701,16 @@ const Ps = {
701
701
  Array.isArray(t.values) && t.values.forEach((a) => {
702
702
  a.func && console.warn("Prop func is deprecated. Use callback.", a);
703
703
  });
704
- const e = V(() => {
704
+ const e = L(() => {
705
705
  if (!s.value)
706
706
  return "30px";
707
707
  let a = 0;
708
708
  return Array.isArray(t.values) && (a += t.values.length), t.title && a++, typeof t.values == "string" && !Array.isArray(t.values) && a++, a * 30 + "px";
709
- }), n = V(() => Array.isArray(t.values) ? t.values : typeof t.values == "string" ? { title: t.values } : [t.values]), s = q(!1);
709
+ }), n = L(() => Array.isArray(t.values) ? t.values : typeof t.values == "string" ? { title: t.values } : [t.values]), s = G(!1);
710
710
  function r(a = !s.value) {
711
711
  s.value = a, a && ke(i.value, () => r(!1));
712
712
  }
713
- const i = q(null);
713
+ const i = G(null);
714
714
  return {
715
715
  isActive: s,
716
716
  array: n,
@@ -720,44 +720,44 @@ const Ps = {
720
720
  };
721
721
  },
722
722
  name: "Button"
723
- }, Os = { class: "widget-button-wrap flex" }, Rs = ["onClick"];
724
- function Vs(t, e, n, s, r, i) {
725
- const a = x("icon");
726
- return l(), u("div", Os, [
723
+ }, Vs = { class: "widget-button-wrap flex" }, Ls = ["onClick"];
724
+ function Ws(t, e, n, s, r, i) {
725
+ const a = U("icon");
726
+ return c(), u("div", Vs, [
727
727
  d("div", {
728
728
  class: I(["widget-button flex", { active: s.isActive }]),
729
729
  ref: "button"
730
730
  }, [
731
731
  d("div", {
732
732
  class: "widget-button__list flex_column",
733
- style: ut({ maxHeight: s.maxHeight })
733
+ style: pt({ maxHeight: s.maxHeight })
734
734
  }, [
735
- n.title ? (l(), u("span", {
735
+ n.title ? (c(), u("span", {
736
736
  key: 0,
737
737
  class: "widget-button__list-elem cursor_pointer",
738
738
  onClick: e[0] || (e[0] = (o) => s.toggle())
739
- }, y(n.title), 1)) : _("", !0),
740
- (l(!0), u(O, null, M(s.array, (o, c) => (l(), u("span", {
739
+ }, m(n.title), 1)) : h("", !0),
740
+ (c(!0), u(O, null, j(s.array, (o, l) => (c(), u("span", {
741
741
  class: "widget-button__list-elem cursor_pointer",
742
742
  onClick: (p) => (o.callback(), s.toggle(!1)),
743
- key: c
744
- }, y(o.title), 9, Rs))), 128))
743
+ key: l
744
+ }, m(o.title), 9, Ls))), 128))
745
745
  ], 4),
746
- s.array.length > 1 ? (l(), u("div", {
746
+ s.array.length > 1 ? (c(), u("div", {
747
747
  key: 0,
748
748
  class: "widget-button__toggle flex flex_center cursor_pointer",
749
- onClick: e[1] || (e[1] = mn((o) => s.toggle(), ["stop"]))
749
+ onClick: e[1] || (e[1] = Ft((o) => s.toggle(), ["stop"]))
750
750
  }, [
751
751
  C(a, {
752
752
  class: "widget-button__toggle-icon",
753
753
  name: "angle-small-down"
754
754
  })
755
- ])) : _("", !0)
755
+ ])) : h("", !0)
756
756
  ], 2)
757
757
  ]);
758
758
  }
759
- const zt = /* @__PURE__ */ m(Ps, [["render", Vs], ["__scopeId", "data-v-b6be5c12"]]);
760
- const Ls = {
759
+ const Kt = /* @__PURE__ */ g(Rs, [["render", Ws], ["__scopeId", "data-v-b6be5c12"]]);
760
+ const Ds = {
761
761
  props: {
762
762
  icon: String,
763
763
  func: Function
@@ -765,30 +765,30 @@ const Ls = {
765
765
  name: "WidgetFormFunctionItem",
766
766
  components: { Icon: R }
767
767
  };
768
- function Ws(t, e, n, s, r, i) {
769
- const a = x("icon");
770
- return l(), u("div", {
768
+ function Ms(t, e, n, s, r, i) {
769
+ const a = U("icon");
770
+ return c(), u("div", {
771
771
  class: "function-item cursor_pointer",
772
772
  onClick: e[0] || (e[0] = (...o) => n.func && n.func(...o))
773
773
  }, [
774
774
  C(a, { name: n.icon }, null, 8, ["name"])
775
775
  ]);
776
776
  }
777
- const Ds = /* @__PURE__ */ m(Ls, [["render", Ws], ["__scopeId", "data-v-73f7eb9f"]]);
778
- const Ms = {
777
+ const Fs = /* @__PURE__ */ g(Ds, [["render", Ms], ["__scopeId", "data-v-73f7eb9f"]]);
778
+ const js = {
779
779
  props: {
780
780
  title: String
781
781
  },
782
782
  name: "WidgetFormTitle"
783
- }, Fs = { class: "form-title" }, js = { class: "title_lg color__text_black margin-0" };
784
- function xs(t, e, n, s, r, i) {
785
- return l(), u("div", Fs, [
786
- d("h2", js, y(n.title), 1)
783
+ }, xs = { class: "form-title" }, Us = { class: "title_lg color__text_black margin-0" };
784
+ function Bs(t, e, n, s, r, i) {
785
+ return c(), u("div", xs, [
786
+ d("h2", Us, m(n.title), 1)
787
787
  ]);
788
788
  }
789
- const Us = /* @__PURE__ */ m(Ms, [["render", xs], ["__scopeId", "data-v-c91ffa31"]]);
790
- const Bs = {
791
- components: { WidgetFormTitle: Us, WidgetFormFunctionItem: Ds, WidgetButton: zt },
789
+ const qs = /* @__PURE__ */ g(js, [["render", Bs], ["__scopeId", "data-v-c91ffa31"]]);
790
+ const Gs = {
791
+ components: { WidgetFormTitle: qs, WidgetFormFunctionItem: Fs, WidgetButton: Kt },
792
792
  props: {
793
793
  title: String,
794
794
  button: {
@@ -798,36 +798,36 @@ const Bs = {
798
798
  functions: [Array]
799
799
  },
800
800
  name: "WidgetForm"
801
- }, qs = { class: "widget-form flex_column" }, Gs = { class: "widget-form__head flex" }, zs = { class: "widget-form__head-functions flex" }, Hs = { class: "widget-form__body" };
802
- function Js(t, e, n, s, r, i) {
803
- const a = x("widget-form-title"), o = x("widget-button"), c = x("widget-form-function-item");
804
- return l(), u("div", qs, [
805
- d("div", Gs, [
801
+ }, zs = { class: "widget-form flex_column" }, Hs = { class: "widget-form__head flex" }, Js = { class: "widget-form__head-functions flex" }, Ks = { class: "widget-form__body" };
802
+ function Ys(t, e, n, s, r, i) {
803
+ const a = U("widget-form-title"), o = U("widget-button"), l = U("widget-form-function-item");
804
+ return c(), u("div", zs, [
805
+ d("div", Hs, [
806
806
  C(a, { title: n.title }, null, 8, ["title"]),
807
- Array.isArray(n.button) && n.button.length || !Array.isArray(n.button) && n.button ? (l(), b(o, {
807
+ Array.isArray(n.button) && n.button.length || !Array.isArray(n.button) && n.button ? (c(), v(o, {
808
808
  key: 0,
809
809
  class: "widget-form__head-button",
810
810
  values: n.button
811
- }, null, 8, ["values"])) : _("", !0),
812
- d("div", zs, [
813
- (l(!0), u(O, null, M(n.functions, (p, f) => (l(), b(c, {
811
+ }, null, 8, ["values"])) : h("", !0),
812
+ d("div", Js, [
813
+ (c(!0), u(O, null, j(n.functions, (p, f) => (c(), v(l, {
814
814
  key: f,
815
815
  icon: p.icon,
816
816
  func: p.callback
817
817
  }, null, 8, ["icon", "func"]))), 128))
818
818
  ])
819
819
  ]),
820
- d("div", Hs, [
821
- U(t.$slots, "default", {}, void 0, !0)
820
+ d("div", Ks, [
821
+ B(t.$slots, "default", {}, void 0, !0)
822
822
  ])
823
823
  ]);
824
824
  }
825
- const Ks = /* @__PURE__ */ m(Bs, [["render", Js], ["__scopeId", "data-v-c3e88e10"]]), Ys = {
825
+ const Xs = /* @__PURE__ */ g(Gs, [["render", Ys], ["__scopeId", "data-v-c3e88e10"]]), Zs = {
826
826
  default: {
827
- WidgetForm: Ks
827
+ WidgetForm: Xs
828
828
  }
829
829
  };
830
- const Xs = {
830
+ const Qs = {
831
831
  props: {
832
832
  title: String,
833
833
  subTitle: String,
@@ -838,64 +838,64 @@ const Xs = {
838
838
  }
839
839
  },
840
840
  name: "ContainerFormElem"
841
- }, Zs = { class: "form-container-item__title flex" }, Qs = { class: "" }, er = {
841
+ }, er = { class: "form-container-item__title flex" }, tr = { class: "" }, nr = {
842
842
  key: 0,
843
843
  class: ""
844
- }, tr = { class: "title_sm" }, nr = {
844
+ }, sr = { class: "title_sm" }, rr = {
845
845
  key: 1,
846
846
  class: "form-container-item__right"
847
847
  };
848
- function sr(t, e, n, s, r, i) {
849
- return l(), u("div", {
848
+ function ir(t, e, n, s, r, i) {
849
+ return c(), u("div", {
850
850
  class: I(["form-container-item flex", [`form-container-item-${n.type}`]])
851
851
  }, [
852
- d("div", Zs, [
853
- d("span", Qs, y(n.title), 1)
852
+ d("div", er, [
853
+ d("span", tr, m(n.title), 1)
854
854
  ]),
855
855
  d("div", {
856
856
  class: I(["form-container-item-center flex_column", { content_double: n.double }])
857
857
  }, [
858
- U(t.$slots, "default", {}, void 0, !0)
858
+ B(t.$slots, "default", {}, void 0, !0)
859
859
  ], 2),
860
- n.subTitle ? (l(), u("div", er, [
861
- d("span", tr, y(n.subTitle), 1),
862
- U(t.$slots, "centerRight", {}, void 0, !0)
863
- ])) : _("", !0),
864
- t.$slots.right ? (l(), u("div", nr, [
865
- U(t.$slots, "right", {}, void 0, !0)
866
- ])) : _("", !0)
860
+ n.subTitle ? (c(), u("div", nr, [
861
+ d("span", sr, m(n.subTitle), 1),
862
+ B(t.$slots, "centerRight", {}, void 0, !0)
863
+ ])) : h("", !0),
864
+ t.$slots.right ? (c(), u("div", rr, [
865
+ B(t.$slots, "right", {}, void 0, !0)
866
+ ])) : h("", !0)
867
867
  ], 2);
868
868
  }
869
- const rr = /* @__PURE__ */ m(Xs, [["render", sr], ["__scopeId", "data-v-9264f6f4"]]);
870
- const ir = {
869
+ const or = /* @__PURE__ */ g(Qs, [["render", ir], ["__scopeId", "data-v-9264f6f4"]]);
870
+ const ar = {
871
871
  name: "ContainerAuthView"
872
- }, ar = { class: "container-auth-wrap" }, or = { class: "container-auth-sidebar" }, lr = { class: "container-auth-main" };
873
- function cr(t, e, n, s, r, i) {
874
- return l(), u("div", ar, [
875
- d("div", or, [
876
- U(t.$slots, "side", {}, void 0, !0)
872
+ }, lr = { class: "container-auth-wrap" }, cr = { class: "container-auth-sidebar" }, ur = { class: "container-auth-main" };
873
+ function dr(t, e, n, s, r, i) {
874
+ return c(), u("div", lr, [
875
+ d("div", cr, [
876
+ B(t.$slots, "side", {}, void 0, !0)
877
877
  ]),
878
- d("div", lr, [
879
- U(t.$slots, "default", {}, void 0, !0)
878
+ d("div", ur, [
879
+ B(t.$slots, "default", {}, void 0, !0)
880
880
  ])
881
881
  ]);
882
882
  }
883
- const ur = /* @__PURE__ */ m(ir, [["render", cr], ["__scopeId", "data-v-0b1a5e81"]]), dr = {
884
- ContainerFormElem: rr,
885
- ContainerAuthView: ur
886
- }, pr = /* @__PURE__ */ $({
883
+ const pr = /* @__PURE__ */ g(ar, [["render", dr], ["__scopeId", "data-v-0b1a5e81"]]), fr = {
884
+ ContainerFormElem: or,
885
+ ContainerAuthView: pr
886
+ }, hr = /* @__PURE__ */ b({
887
887
  __name: "WidgetSpinner",
888
888
  props: {
889
889
  color: {}
890
890
  },
891
891
  setup(t) {
892
- return (e, n) => (l(), u("div", {
892
+ return (e, n) => (c(), u("div", {
893
893
  class: "loader",
894
- style: ut({ "border-left": `1.1em solid ${e.color ? e.color : "#fff"}` })
894
+ style: pt({ "border-left": `1.1em solid ${e.color ? e.color : "#fff"}` })
895
895
  }, null, 4));
896
896
  }
897
897
  });
898
- const he = /* @__PURE__ */ m(pr, [["__scopeId", "data-v-12ff0501"]]), fr = { class: "button-element" }, hr = /* @__PURE__ */ $({
898
+ const _e = /* @__PURE__ */ g(hr, [["__scopeId", "data-v-12ff0501"]]), _r = { class: "button-element" }, gr = /* @__PURE__ */ b({
899
899
  __name: "WidgetButton",
900
900
  props: {
901
901
  title: {},
@@ -908,38 +908,38 @@ const he = /* @__PURE__ */ m(pr, [["__scopeId", "data-v-12ff0501"]]), fr = { cla
908
908
  function n(r) {
909
909
  r.key === "Enter" && s.call();
910
910
  }
911
- Ke(() => {
911
+ Ye(() => {
912
912
  e.default && document.addEventListener("keypress", n);
913
- }), yn(() => {
913
+ }), wn(() => {
914
914
  document.removeEventListener("keypress", n);
915
915
  });
916
- const s = ft(e.callback);
917
- return (r, i) => (l(), u("div", {
916
+ const s = _t(e.callback);
917
+ return (r, i) => (c(), u("div", {
918
918
  class: "button-wrap",
919
919
  onClick: i[0] || (i[0] = (a) => P(s).call())
920
920
  }, [
921
- P(s).wait || r.wait ? (l(), b(he, {
921
+ P(s).wait || r.wait ? (c(), v(_e, {
922
922
  key: 0,
923
923
  class: "button-spinner"
924
- })) : _("", !0),
925
- d("button", fr, [
926
- Ae(y(r.title) + " ", 1),
927
- U(r.$slots, "default", {}, void 0, !0)
924
+ })) : h("", !0),
925
+ d("button", _r, [
926
+ Ae(m(r.title) + " ", 1),
927
+ B(r.$slots, "default", {}, void 0, !0)
928
928
  ])
929
929
  ]));
930
930
  }
931
931
  });
932
- const _r = /* @__PURE__ */ m(hr, [["__scopeId", "data-v-937d2e62"]]), gr = { class: "widget-button-wrap" }, mr = { class: "widget-multi-button" }, yr = { class: "widget-button-list" }, vr = ["onClick"], wr = { class: "button__side" }, br = {
932
+ const mr = /* @__PURE__ */ g(gr, [["__scopeId", "data-v-937d2e62"]]), yr = { class: "widget-button-wrap" }, vr = { class: "widget-multi-button" }, wr = { class: "widget-button-list" }, br = ["onClick"], $r = { class: "button__side" }, Er = {
933
933
  key: 0,
934
934
  class: "button__size-progress"
935
- }, $r = /* @__PURE__ */ $({
935
+ }, Tr = /* @__PURE__ */ b({
936
936
  __name: "WidgetMultiButton",
937
937
  props: {
938
938
  title: {},
939
939
  array: {}
940
940
  },
941
941
  setup(t) {
942
- const e = ft(), n = A({
942
+ const e = _t(), n = A({
943
943
  active: !1
944
944
  });
945
945
  function s(i = !n.active) {
@@ -948,28 +948,28 @@ const _r = /* @__PURE__ */ m(hr, [["__scopeId", "data-v-937d2e62"]]), gr = { cla
948
948
  function r(i) {
949
949
  e.setFunction(i), e.call();
950
950
  }
951
- return (i, a) => (l(), u("div", gr, [
952
- d("div", mr, [
951
+ return (i, a) => (c(), u("div", yr, [
952
+ d("div", vr, [
953
953
  d("div", {
954
954
  class: I(["button__content", { button__content_active: n.active }])
955
955
  }, [
956
- i.title ? (l(), u("p", {
956
+ i.title ? (c(), u("p", {
957
957
  key: 0,
958
958
  class: "button__content-title widget-multi-button-row",
959
959
  onClick: a[0] || (a[0] = (o) => s())
960
- }, y(i.title), 1)) : _("", !0),
961
- d("div", yr, [
962
- (l(!0), u(O, null, M(i.array, (o, c) => (l(), u("p", {
960
+ }, m(i.title), 1)) : h("", !0),
961
+ d("div", wr, [
962
+ (c(!0), u(O, null, j(i.array, (o, l) => (c(), u("p", {
963
963
  class: "button__content-title widget-multi-button-row",
964
- key: c,
964
+ key: l,
965
965
  onClick: (p) => (r(o.callback), s(!1))
966
- }, y(o.title), 9, vr))), 128))
966
+ }, m(o.title), 9, br))), 128))
967
967
  ])
968
968
  ], 2),
969
- d("div", wr, [
970
- P(e).wait ? (l(), u("div", br, [
971
- C(he, { class: "button-spinner" })
972
- ])) : i.array && i.array.length > 1 ? (l(), u("div", {
969
+ d("div", $r, [
970
+ P(e).wait ? (c(), u("div", Er, [
971
+ C(_e, { class: "button-spinner" })
972
+ ])) : i.array && i.array.length > 1 ? (c(), u("div", {
973
973
  key: 1,
974
974
  class: I(["button__size-toggle widget-multi-button-toggle", { button__toggle_active: n.active }]),
975
975
  onClick: a[1] || (a[1] = (o) => s())
@@ -978,20 +978,20 @@ const _r = /* @__PURE__ */ m(hr, [["__scopeId", "data-v-937d2e62"]]), gr = { cla
978
978
  class: "button__toggle-icon",
979
979
  name: "angle-small-down"
980
980
  })
981
- ], 2)) : _("", !0)
981
+ ], 2)) : h("", !0)
982
982
  ])
983
983
  ])
984
984
  ]));
985
985
  }
986
986
  });
987
- const Ht = /* @__PURE__ */ m($r, [["__scopeId", "data-v-13176c56"]]), Er = {
988
- WidgetButton: _r,
989
- WidgetMultiButton: Ht
990
- }, Tr = {
987
+ const Yt = /* @__PURE__ */ g(Tr, [["__scopeId", "data-v-13176c56"]]), Sr = {
988
+ WidgetButton: mr,
989
+ WidgetMultiButton: Yt
990
+ }, Cr = {
991
991
  Icon: R
992
- }, Sr = {
993
- WidgetSpinner: he
994
- }, D = new class {
992
+ }, Ir = {
993
+ WidgetSpinner: _e
994
+ }, F = new class {
995
995
  constructor() {
996
996
  this.store = A([]);
997
997
  }
@@ -1003,7 +1003,7 @@ const Ht = /* @__PURE__ */ m($r, [["__scopeId", "data-v-13176c56"]]), Er = {
1003
1003
  * @param options Params for current notification item: children, timeout (Default 10) in seconds.
1004
1004
  */
1005
1005
  add(e, n, { children: s, timeout: r = 10 } = {}) {
1006
- const i = new Cr(e, n, r, s || []);
1006
+ const i = new Ar(e, n, r, s || []);
1007
1007
  return this.store.push(i), r && setTimeout(this.remove.bind(this, i.id), r * 1e3), i;
1008
1008
  }
1009
1009
  /**
@@ -1021,14 +1021,14 @@ const Ht = /* @__PURE__ */ m($r, [["__scopeId", "data-v-13176c56"]]), Er = {
1021
1021
  removeChild(e, n) {
1022
1022
  throw new Error("Removing children error.");
1023
1023
  }
1024
- }(), Jt = class Kt {
1024
+ }(), Xt = class Zt {
1025
1025
  constructor(e, n, s, r) {
1026
- this.type = e, this.msg = n, this.timeout = s, this.children = r, this.id = Kt.cardId++;
1026
+ this.type = e, this.msg = n, this.timeout = s, this.children = r, this.id = Zt.cardId++;
1027
1027
  }
1028
1028
  };
1029
- Jt.cardId = 1;
1030
- let Cr = Jt;
1031
- const Ir = { class: "widget-error" }, Ar = { class: "widget-error-wrap" }, kr = { class: "widget-error-main" }, Nr = { class: "widget-error-text widget-error-message" }, Pr = { class: "widget-error__container-close" }, Or = /* @__PURE__ */ $({
1029
+ Xt.cardId = 1;
1030
+ let Ar = Xt;
1031
+ const kr = { class: "widget-error" }, Nr = { class: "widget-error-wrap" }, Pr = { class: "widget-error-main" }, Or = { class: "widget-error-text widget-error-message" }, Rr = { class: "widget-error__container-close" }, Vr = /* @__PURE__ */ b({
1032
1032
  __name: "WidgetError",
1033
1033
  props: {
1034
1034
  isGroup: { type: Boolean },
@@ -1036,17 +1036,17 @@ const Ir = { class: "widget-error" }, Ar = { class: "widget-error-wrap" }, kr =
1036
1036
  },
1037
1037
  emits: ["close", "toggle"],
1038
1038
  setup(t, { emit: e }) {
1039
- return (n, s) => (l(), u("div", Ir, [
1040
- d("div", Ar, [
1041
- d("div", kr, [
1042
- d("p", Nr, y(n.message), 1)
1039
+ return (n, s) => (c(), u("div", kr, [
1040
+ d("div", Nr, [
1041
+ d("div", Pr, [
1042
+ d("p", Or, m(n.message), 1)
1043
1043
  ]),
1044
- n.isGroup ? (l(), u("p", {
1044
+ n.isGroup ? (c(), u("p", {
1045
1045
  key: 0,
1046
1046
  onClick: s[0] || (s[0] = (r) => e("toggle")),
1047
1047
  class: "article-details"
1048
- }, "See details")) : _("", !0),
1049
- d("div", Pr, [
1048
+ }, "See details")) : h("", !0),
1049
+ d("div", Rr, [
1050
1050
  d("div", {
1051
1051
  class: "widget-error-close",
1052
1052
  onClick: s[1] || (s[1] = (r) => e("close"))
@@ -1056,54 +1056,54 @@ const Ir = { class: "widget-error" }, Ar = { class: "widget-error-wrap" }, kr =
1056
1056
  ]));
1057
1057
  }
1058
1058
  });
1059
- const St = /* @__PURE__ */ m(Or, [["__scopeId", "data-v-8a0a0924"]]), Rr = {
1059
+ const It = /* @__PURE__ */ g(Vr, [["__scopeId", "data-v-8a0a0924"]]), Lr = {
1060
1060
  key: 0,
1061
1061
  class: "widget-error-details"
1062
- }, Vr = /* @__PURE__ */ $({
1062
+ }, Wr = /* @__PURE__ */ b({
1063
1063
  __name: "WidgetErrorGroup",
1064
1064
  props: {
1065
1065
  card: {}
1066
1066
  },
1067
1067
  emits: ["closeCard", "closeChild"],
1068
1068
  setup(t, { emit: e }) {
1069
- const n = t, s = V(() => {
1069
+ const n = t, s = L(() => {
1070
1070
  var i;
1071
1071
  return !!((i = n.card.children) != null && i.length);
1072
- }), r = q(!0);
1073
- return (i, a) => (l(), u("div", null, [
1074
- (l(), b(St, {
1072
+ }), r = G(!0);
1073
+ return (i, a) => (c(), u("div", null, [
1074
+ (c(), v(It, {
1075
1075
  message: i.card.msg,
1076
1076
  key: i.card.id,
1077
1077
  onClose: a[0] || (a[0] = (o) => e("closeCard", i.card.id)),
1078
1078
  onToggle: a[1] || (a[1] = (o) => r.value = !r.value),
1079
1079
  "is-group": s.value
1080
1080
  }, null, 8, ["message", "is-group"])),
1081
- !r.value && i.card.children ? (l(), u("div", Rr, [
1082
- C(Dt, { name: "fade" }, {
1083
- default: fe(() => [
1084
- (l(!0), u(O, null, M(i.card.children, (o) => (l(), b(St, {
1081
+ !r.value && i.card.children ? (c(), u("div", Lr, [
1082
+ C(jt, { name: "fade" }, {
1083
+ default: he(() => [
1084
+ (c(!0), u(O, null, j(i.card.children, (o) => (c(), v(It, {
1085
1085
  key: o.id,
1086
1086
  message: o.msg,
1087
- onClose: (c) => e("closeChild", o.id)
1087
+ onClose: (l) => e("closeChild", o.id)
1088
1088
  }, null, 8, ["message", "onClose"]))), 128))
1089
1089
  ]),
1090
1090
  _: 1
1091
1091
  })
1092
- ])) : _("", !0)
1092
+ ])) : h("", !0)
1093
1093
  ]));
1094
1094
  }
1095
1095
  });
1096
- const Lr = /* @__PURE__ */ m(Vr, [["__scopeId", "data-v-aa732044"]]), Wr = { class: "container-errors" }, Dr = /* @__PURE__ */ $({
1096
+ const Dr = /* @__PURE__ */ g(Wr, [["__scopeId", "data-v-aa732044"]]), Mr = { class: "container-errors" }, Fr = /* @__PURE__ */ b({
1097
1097
  __name: "WidgetNotificationSystem",
1098
1098
  setup(t) {
1099
- return (e, n) => (l(), u("div", Wr, [
1100
- C(Dt, { name: "fade" }, {
1101
- default: fe(() => [
1102
- (l(!0), u(O, null, M(P(D).store, (s) => (l(), b(Lr, {
1099
+ return (e, n) => (c(), u("div", Mr, [
1100
+ C(jt, { name: "fade" }, {
1101
+ default: he(() => [
1102
+ (c(!0), u(O, null, j(P(F).store, (s) => (c(), v(Dr, {
1103
1103
  key: s.id,
1104
1104
  card: s,
1105
- onCloseCard: (r) => P(D).remove(s.id),
1106
- onCloseChild: (r) => P(D).removeChild(s.id, r)
1105
+ onCloseCard: (r) => P(F).remove(s.id),
1106
+ onCloseChild: (r) => P(F).removeChild(s.id, r)
1107
1107
  }, null, 8, ["card", "onCloseCard", "onCloseChild"]))), 128))
1108
1108
  ]),
1109
1109
  _: 1
@@ -1111,20 +1111,20 @@ const Lr = /* @__PURE__ */ m(Vr, [["__scopeId", "data-v-aa732044"]]), Wr = { cla
1111
1111
  ]));
1112
1112
  }
1113
1113
  });
1114
- const Mr = /* @__PURE__ */ m(Dr, [["__scopeId", "data-v-8e9870dd"]]), Fr = {
1115
- default: Mr
1114
+ const jr = /* @__PURE__ */ g(Fr, [["__scopeId", "data-v-8e9870dd"]]), xr = {
1115
+ default: jr
1116
1116
  };
1117
- let jr = {
1118
- inputs: Ns,
1119
- forms: Ys,
1120
- spinners: Sr,
1121
- containers: dr,
1122
- buttons: Er,
1123
- icons: Tr,
1124
- errorSystem: Fr
1117
+ let Ur = {
1118
+ inputs: Os,
1119
+ forms: Zs,
1120
+ spinners: Ir,
1121
+ containers: fr,
1122
+ buttons: Sr,
1123
+ icons: Cr,
1124
+ errorSystem: xr
1125
1125
  };
1126
- const xr = {
1127
- inputs: Sn
1126
+ const Br = {
1127
+ inputs: In
1128
1128
  };
1129
1129
  function Ne(t, e) {
1130
1130
  if (typeof t != "object" || t === null)
@@ -1138,120 +1138,120 @@ function Ne(t, e) {
1138
1138
  }
1139
1139
  return t[e];
1140
1140
  }
1141
- function ht(t) {
1141
+ function gt(t) {
1142
1142
  return t.reduce((e, n) => e.then((s) => n == null ? void 0 : n(s)), Promise.resolve());
1143
1143
  }
1144
- const Yt = class S extends Error {
1144
+ const Qt = class E extends Error {
1145
1145
  constructor(e, n = null) {
1146
- super(), this.message = e, this.details = n, this.id = S.ID++;
1146
+ super(), this.message = e, this.details = n, this.id = E.ID++;
1147
1147
  }
1148
1148
  /**
1149
1149
  * @description Не удалось найти родительскую форму. Обычно ошибка используется при вызове Form.getParentForm();
1150
1150
  * */
1151
1151
  static ParentFormNotFound() {
1152
- return new S("Can't found parent form.");
1152
+ return new E("Can't found parent form.");
1153
1153
  }
1154
1154
  /**
1155
1155
  * ОДИН ИЗ ЭЛЕМЕНТОВ, КОТОРЫЙ ПЫТАЕТСЯ ПОДПИСАТЬСЯ НА ФОРМУ
1156
1156
  * НЕ ИМЕЕТ ПАРАМЕТРА NAME.
1157
1157
  * */
1158
1158
  static UndefinedNameOfCompositeFormController(e) {
1159
- return new S("Composite object name is undefined", e);
1159
+ return new E("Composite object name is undefined", e);
1160
1160
  }
1161
1161
  static EntityWithoutName(e) {
1162
- return new S("'Entity doesn't have a name", e);
1162
+ return new E("'Entity doesn't have a name", e);
1163
1163
  }
1164
1164
  static NotResolvedNameEventEmitter(e) {
1165
- return new S(`'${e}' is not a valid Event emitter name`);
1165
+ return new E(`'${e}' is not a valid Event emitter name`);
1166
1166
  }
1167
1167
  static FormIsNotValidated(e) {
1168
- return new S("Form is not validated", e);
1168
+ return new E("Form is not validated", e);
1169
1169
  }
1170
1170
  static ListWorkerIsRunningOrEnd(e) {
1171
- return new S("List data request is running or already done", e);
1171
+ return new E("List data request is running or already done", e);
1172
1172
  }
1173
1173
  static ObjectIdNotNumber(e) {
1174
- return new S(`${e} (id) is not a number`);
1174
+ return new E(`${e} (id) is not a number`);
1175
1175
  }
1176
1176
  static UndefinedErrorId(e, n) {
1177
- return S.ApiNotAvailable();
1177
+ return E.ApiNotAvailable();
1178
1178
  }
1179
1179
  static ApiError(e) {
1180
- return new S("Request error", e);
1180
+ return new E("Request error", e);
1181
1181
  }
1182
1182
  static ApiNotAvailable() {
1183
- return new S(`Sorry, we experience difficulties here.
1183
+ return new E(`Sorry, we experience difficulties here.
1184
1184
  Please try again later or submit a feedback if problem doesn't go.`);
1185
1185
  }
1186
1186
  static AuthServiceError(e, n) {
1187
- return !e && !n ? S.ApiNotAvailable() : new S(e || "Authorization Error", n);
1187
+ return !e && !n ? E.ApiNotAvailable() : new E(e || "Authorization Error", n);
1188
1188
  }
1189
1189
  static ApiResponseParseFailed() {
1190
- return S.ApiNotAvailable();
1190
+ return E.ApiNotAvailable();
1191
1191
  }
1192
1192
  static MissingIdInValuesEntity(e) {
1193
- return new S(
1193
+ return new E(
1194
1194
  "Object doesn't have id",
1195
1195
  e
1196
1196
  );
1197
1197
  }
1198
1198
  static ObjectWithIdNotFound(e, n) {
1199
- return new S(`Can't find object with id: ${e}`, n);
1199
+ return new E(`Can't find object with id: ${e}`, n);
1200
1200
  }
1201
1201
  /**
1202
1202
  * ОШИБКА ДЛЯ ТАБЛИЦЫ, В ТОМ СЛУЧАЕ, ЕСЛИ ОБЪЕКТ НА ОБНОВЛЕНИЕ НЕ СВЯЗАН
1203
1203
  * С СУЩЕСТВУЮЩИМ ОБЪЕКТОМ ПО _tableId
1204
1204
  * */
1205
1205
  static ObjectWithoutConnectToPresentArray(e, n) {
1206
- return new S("Object is not found.", {
1206
+ return new E("Object is not found.", {
1207
1207
  object: e,
1208
1208
  array: n
1209
1209
  });
1210
1210
  }
1211
1211
  static EntityWithoutId(e) {
1212
- return new S("Entity doesn't have id.", e);
1212
+ return new E("Entity doesn't have id.", e);
1213
1213
  }
1214
1214
  static NotFoundedTableIndex(e, n) {
1215
- return new S(`Can't find the element with tableIndex ${e}`, n);
1215
+ return new E(`Can't find the element with tableIndex ${e}`, n);
1216
1216
  }
1217
1217
  /**
1218
1218
  * Использовать в случае, когда тип ошибки не определён или место её
1219
1219
  * появления не понятно
1220
1220
  * */
1221
1221
  static UndefinedError(e, n = []) {
1222
- return new S(e, n);
1222
+ return new E(e, n);
1223
1223
  }
1224
1224
  static TableArrayAlreadyIncludeProvidedIndexValue(e, n, s) {
1225
- return new S(`Array already includes the element with value ${e}`, { array: n, table: s });
1225
+ return new E(`Array already includes the element with value ${e}`, { array: n, table: s });
1226
1226
  }
1227
1227
  static MetadataEntityIsNotAvailable(e) {
1228
- return new S(`Metadata for the ${e} is not currently available.`);
1228
+ return new E(`Metadata for the ${e} is not currently available.`);
1229
1229
  }
1230
1230
  };
1231
- Yt.ID = 0;
1232
- let B = Yt;
1233
- const Xt = "Please try again later or submit a feedback if problem doesn't go.";
1234
- function ze(t) {
1235
- return typeof t == "string" ? nt(t) : Ur(t) ? nt(t.message) : nt(Xt);
1231
+ Qt.ID = 0;
1232
+ let q = Qt;
1233
+ const en = "Please try again later or submit a feedback if problem doesn't go.";
1234
+ function He(t) {
1235
+ return typeof t == "string" ? rt(t) : qr(t) ? rt(t.message) : rt(en);
1236
1236
  }
1237
- function Ur(t) {
1237
+ function qr(t) {
1238
1238
  return !!(typeof t == "object" && Object.hasOwnProperty.call(t, "message") && t !== null);
1239
1239
  }
1240
- function nt(t, e = []) {
1240
+ function rt(t, e = []) {
1241
1241
  return {
1242
1242
  message: t,
1243
1243
  details: e
1244
1244
  };
1245
1245
  }
1246
- class Br {
1246
+ class Gr {
1247
1247
  static getClientData() {
1248
- return g("/close-api/client-content");
1248
+ return _("/close-api/client-content");
1249
1249
  }
1250
1250
  /**
1251
1251
  * @description Получение навигационного меню для текущего контекста.
1252
1252
  * */
1253
1253
  static getNavigation() {
1254
- return g("/close-api/client/navigation");
1254
+ return _("/close-api/client/navigation");
1255
1255
  }
1256
1256
  }
1257
1257
  /*!
@@ -1259,72 +1259,72 @@ class Br {
1259
1259
  * (c) 2022 Jenesius
1260
1260
  * @license MIT
1261
1261
  */
1262
- const Ct = function(t, e) {
1262
+ const At = function(t, e) {
1263
1263
  return t in this.events || (this.events[t] = []), this.events[t].push(e), this.off.bind(this, t, e);
1264
- }, It = function(t, e) {
1264
+ }, kt = function(t, e) {
1265
1265
  t in this.events && this.events[t].forEach((n) => n(e));
1266
- }, At = function(t, e) {
1266
+ }, Nt = function(t, e) {
1267
1267
  const n = this.events[t];
1268
1268
  if (!n)
1269
1269
  return;
1270
1270
  const s = n.indexOf(e);
1271
1271
  s !== -1 && n.splice(s, 1);
1272
- }, kt = function() {
1272
+ }, Pt = function() {
1273
1273
  this.events = {};
1274
1274
  };
1275
- class H {
1275
+ class J {
1276
1276
  constructor() {
1277
1277
  this.events = {};
1278
1278
  }
1279
1279
  on(e, n) {
1280
- return Ct.call(this, e, n);
1280
+ return At.call(this, e, n);
1281
1281
  }
1282
1282
  emit(e, n) {
1283
- return It.call(this, e, n);
1283
+ return kt.call(this, e, n);
1284
1284
  }
1285
1285
  off(e, n) {
1286
- return At.call(this, e, n);
1286
+ return Nt.call(this, e, n);
1287
1287
  }
1288
1288
  cleanEvents() {
1289
- kt.call(this);
1289
+ Pt.call(this);
1290
1290
  }
1291
1291
  static on(e, n) {
1292
- return Ct.call(H, e, n);
1292
+ return At.call(J, e, n);
1293
1293
  }
1294
1294
  static emit(e, n) {
1295
- return It.call(H, e, n);
1295
+ return kt.call(J, e, n);
1296
1296
  }
1297
1297
  static off(e, n) {
1298
- return At.call(H, e, n);
1298
+ return Nt.call(J, e, n);
1299
1299
  }
1300
1300
  static cleanEvents() {
1301
- kt.call(H);
1301
+ Pt.call(J);
1302
1302
  }
1303
1303
  }
1304
- H.events = {};
1305
- var Zt = (t, e, n) => {
1304
+ J.events = {};
1305
+ var tn = (t, e, n) => {
1306
1306
  if (!e.has(t))
1307
1307
  throw TypeError("Cannot " + n);
1308
- }, We = (t, e, n) => (Zt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), st = (t, e, n) => {
1308
+ }, De = (t, e, n) => (tn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), it = (t, e, n) => {
1309
1309
  if (e.has(t))
1310
1310
  throw TypeError("Cannot add the same private member more than once");
1311
1311
  e instanceof WeakSet ? e.add(t) : e.set(t, n);
1312
- }, rt = (t, e, n, s) => (Zt(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), ye, Me, Fe;
1313
- const ce = class z extends H {
1312
+ }, ot = (t, e, n, s) => (tn(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), ve, Fe, je;
1313
+ const pe = class H extends J {
1314
1314
  constructor() {
1315
- super(...arguments), st(this, ye, void 0), st(this, Me, "front"), this.organizations = [], st(this, Fe, !1);
1315
+ super(...arguments), it(this, ve, void 0), it(this, Fe, "front"), this.organizations = [], it(this, je, !1);
1316
1316
  }
1317
1317
  set language(e) {
1318
- localStorage.setItem(z.LOCALSTORAGE_LANGUAGE_KEY, e);
1318
+ localStorage.setItem(H.LOCALSTORAGE_LANGUAGE_KEY, e);
1319
1319
  }
1320
1320
  get language() {
1321
- return localStorage.getItem(z.LOCALSTORAGE_LANGUAGE_KEY) || z.DEFAULT_LANGUAGE;
1321
+ return localStorage.getItem(H.LOCALSTORAGE_LANGUAGE_KEY) || H.DEFAULT_LANGUAGE;
1322
1322
  }
1323
1323
  /**
1324
1324
  * @description Проверяет находится ли язык в local-storage
1325
1325
  * */
1326
1326
  checkLanguageInStorage() {
1327
- return !!localStorage.getItem(z.LOCALSTORAGE_LANGUAGE_KEY);
1327
+ return !!localStorage.getItem(H.LOCALSTORAGE_LANGUAGE_KEY);
1328
1328
  }
1329
1329
  get contextType() {
1330
1330
  var e;
@@ -1332,21 +1332,21 @@ const ce = class z extends H {
1332
1332
  return ((e = this.person) == null ? void 0 : e.id) === this.contextId ? "person" : "organization";
1333
1333
  }
1334
1334
  set router(e) {
1335
- rt(this, ye, e);
1335
+ ot(this, ve, e);
1336
1336
  }
1337
1337
  /**
1338
1338
  * @description VueRouter of Application
1339
1339
  * */
1340
1340
  get router() {
1341
- if (!We(this, ye))
1341
+ if (!De(this, ve))
1342
1342
  throw new Error("Router was not founded. Please set router: Manager.router = router: VueRouter");
1343
- return We(this, ye);
1343
+ return De(this, ve);
1344
1344
  }
1345
1345
  set type(e) {
1346
- rt(this, Me, e);
1346
+ ot(this, Fe, e);
1347
1347
  }
1348
1348
  get type() {
1349
- return We(this, Me);
1349
+ return De(this, Fe);
1350
1350
  }
1351
1351
  get isBack() {
1352
1352
  return this.type === "back";
@@ -1355,19 +1355,19 @@ const ce = class z extends H {
1355
1355
  return this.type === "front";
1356
1356
  }
1357
1357
  set ready(e) {
1358
- rt(this, Fe, e), this.emit(z.EVENT_READY_UPDATE, e);
1358
+ ot(this, je, e), this.emit(H.EVENT_READY_UPDATE, e);
1359
1359
  }
1360
1360
  get ready() {
1361
- return We(this, Fe);
1361
+ return De(this, je);
1362
1362
  }
1363
1363
  onReady(e) {
1364
- return this.on(z.EVENT_READY_UPDATE, e);
1364
+ return this.on(H.EVENT_READY_UPDATE, e);
1365
1365
  }
1366
1366
  onupdateContext(e) {
1367
- return this.on(z.EVENT_CONTEXT_UPDATE, e);
1367
+ return this.on(H.EVENT_CONTEXT_UPDATE, e);
1368
1368
  }
1369
1369
  onupdateData(e) {
1370
- return this.on(z.EVENT_DATA_UPDATE, e);
1370
+ return this.on(H.EVENT_DATA_UPDATE, e);
1371
1371
  }
1372
1372
  /**
1373
1373
  * @description Method for update current context. After success emit event[EVENT_UPDATE_CONTEXT]
@@ -1375,7 +1375,7 @@ const ce = class z extends H {
1375
1375
  setCurrentContext(e) {
1376
1376
  if (this.contextId === e)
1377
1377
  return console.log("[application-manager] The current context has already been installed.");
1378
- this.contextId = Number(e), localStorage.setItem(z.CURRENT_CONTEXT_KEY, String(e)), this.emit(z.EVENT_CONTEXT_UPDATE, e), console.log(`Current context id %c${e}`, "color: purple");
1378
+ this.contextId = Number(e), localStorage.setItem(H.CURRENT_CONTEXT_KEY, String(e)), this.emit(H.EVENT_CONTEXT_UPDATE, e), console.log(`Current context id %c${e}`, "color: purple");
1379
1379
  }
1380
1380
  /**
1381
1381
  * @description Возвращает текущий контекст. В случае, если контекст ещё не получен, или (Внутрення ошибка) не найде
@@ -1392,14 +1392,14 @@ const ce = class z extends H {
1392
1392
  try {
1393
1393
  const e = await this.loadCustomerData();
1394
1394
  this.person = e, this.organizations = e.organizations, this.user = e.user, this.ready = !0;
1395
- const n = Number.parseInt(localStorage.getItem(z.CURRENT_CONTEXT_KEY) || "");
1395
+ const n = Number.parseInt(localStorage.getItem(H.CURRENT_CONTEXT_KEY) || "");
1396
1396
  !Number.isNaN(n) && this.validateContextId(Number(n)) ? this.setCurrentContext(n) : this.setCurrentContext(Number(e.id));
1397
1397
  } catch {
1398
- D.add("error", B.ApiNotAvailable().message);
1398
+ F.add("error", q.ApiNotAvailable().message);
1399
1399
  }
1400
1400
  }
1401
1401
  loadCustomerData() {
1402
- return Br.getClientData();
1402
+ return Gr.getClientData();
1403
1403
  }
1404
1404
  /**
1405
1405
  * @description The main method of application. Load the main information about user.
@@ -1427,46 +1427,46 @@ const ce = class z extends H {
1427
1427
  console.log("DEPRECATED"), localStorage.setItem(this.getListKeyById(e), JSON.stringify(n));
1428
1428
  }
1429
1429
  };
1430
- ye = /* @__PURE__ */ new WeakMap();
1431
- Me = /* @__PURE__ */ new WeakMap();
1430
+ ve = /* @__PURE__ */ new WeakMap();
1432
1431
  Fe = /* @__PURE__ */ new WeakMap();
1433
- ce.DEFAULT_LANGUAGE = "en";
1434
- ce.LOCALSTORAGE_LANGUAGE_KEY = "CurrentLanguage";
1435
- ce.EVENT_CONTEXT_UPDATE = "event:context-update";
1436
- ce.EVENT_READY_UPDATE = "event:ready-update";
1437
- ce.EVENT_DATA_UPDATE = "event:data-update";
1438
- ce.CURRENT_CONTEXT_KEY = "CurrentContext";
1439
- let qr = ce;
1440
- const E = new qr();
1441
- function lo() {
1432
+ je = /* @__PURE__ */ new WeakMap();
1433
+ pe.DEFAULT_LANGUAGE = "en";
1434
+ pe.LOCALSTORAGE_LANGUAGE_KEY = "CurrentLanguage";
1435
+ pe.EVENT_CONTEXT_UPDATE = "event:context-update";
1436
+ pe.EVENT_READY_UPDATE = "event:ready-update";
1437
+ pe.EVENT_DATA_UPDATE = "event:data-update";
1438
+ pe.CURRENT_CONTEXT_KEY = "CurrentContext";
1439
+ let zr = pe;
1440
+ const $ = new zr();
1441
+ function da() {
1442
1442
  const t = A({
1443
- contextType: E.contextType,
1444
- contextId: E.contextId,
1445
- context: E.context
1443
+ contextType: $.contextType,
1444
+ contextId: $.contextId,
1445
+ context: $.context
1446
1446
  });
1447
- return E.onupdateContext(() => {
1448
- t.contextType = E.contextType, t.contextId = E.contextId, t.context = E.context;
1447
+ return $.onupdateContext(() => {
1448
+ t.contextType = $.contextType, t.contextId = $.contextId, t.context = $.context;
1449
1449
  }), t;
1450
1450
  }
1451
- function Gr(t) {
1451
+ function Hr(t) {
1452
1452
  return t.text().then((e) => {
1453
1453
  try {
1454
1454
  return JSON.parse(e);
1455
1455
  } catch {
1456
- return Xt;
1456
+ return en;
1457
1457
  }
1458
1458
  });
1459
1459
  }
1460
- function g(t, e = {}) {
1461
- return E.isFront && (e.headers || (e.headers = {}), e.headers["Context-Id"] = E.contextId), e.redirect = "manual", fetch(t, e).then((n) => n.type === "opaqueredirect" ? void window.location.replace("/auth") : n).catch(() => {
1462
- throw B.ApiNotAvailable();
1463
- }).then((n) => Gr(n).then((s) => {
1460
+ function _(t, e = {}) {
1461
+ return $.isFront && (e.headers || (e.headers = {}), e.headers["Context-Id"] = $.contextId), e.redirect = "manual", fetch(t, e).then((n) => n.type === "opaqueredirect" ? void window.location.replace("/auth") : n).catch(() => {
1462
+ throw q.ApiNotAvailable();
1463
+ }).then((n) => Hr(n).then((s) => {
1464
1464
  if (!n.ok)
1465
1465
  throw s;
1466
1466
  return s;
1467
1467
  }));
1468
1468
  }
1469
- class Ze {
1469
+ class Qe {
1470
1470
  constructor() {
1471
1471
  }
1472
1472
  /**
@@ -1476,7 +1476,7 @@ class Ze {
1476
1476
  *
1477
1477
  * */
1478
1478
  static parseNamesFromListConfig(e) {
1479
- let n = Ze.parseFieldsToGraphQL(e.reduce((r, i) => (i.name && r.push(i.name), r), []));
1479
+ let n = Qe.parseFieldsToGraphQL(e.reduce((r, i) => (i.name && r.push(i.name), r), []));
1480
1480
  function s(r) {
1481
1481
  let i = "";
1482
1482
  for (let a in r)
@@ -1503,7 +1503,7 @@ class Ze {
1503
1503
  return e.reduce(n, {});
1504
1504
  }
1505
1505
  }
1506
- class zr {
1506
+ class Jr {
1507
1507
  constructor() {
1508
1508
  this.public = !1, this.errors = new Proxy([], {
1509
1509
  set: (e, n, s) => (n !== "length" && this.public && console.log(`Journal [Error] ${JSON.stringify(s)}`), e[n] = s, !0)
@@ -1535,91 +1535,91 @@ class zr {
1535
1535
  console.log("The journal has been initialized. To get access check %c_journal in console.", "background: blue; color: white");
1536
1536
  }
1537
1537
  }
1538
- const Qt = new zr();
1539
- function en(t) {
1538
+ const nn = new Jr();
1539
+ function sn(t) {
1540
1540
  return t && t[0].toLowerCase() + t.slice(1);
1541
1541
  }
1542
- const Hr = {
1542
+ const Kr = {
1543
1543
  props: {
1544
1544
  message: String
1545
1545
  },
1546
1546
  name: "ModalWait",
1547
- components: { WidgetSpinner: he }
1548
- }, Jr = { class: "modal__wait modal-default flex_column" };
1549
- function Kr(t, e, n, s, r, i) {
1550
- const a = x("widget-spinner");
1551
- return l(), u("div", Jr, [
1547
+ components: { WidgetSpinner: _e }
1548
+ }, Yr = { class: "modal__wait modal-default flex_column" };
1549
+ function Xr(t, e, n, s, r, i) {
1550
+ const a = U("widget-spinner");
1551
+ return c(), u("div", Yr, [
1552
1552
  C(a),
1553
- d("p", null, y(n.message), 1)
1553
+ d("p", null, m(n.message), 1)
1554
1554
  ]);
1555
1555
  }
1556
- const Yr = /* @__PURE__ */ m(Hr, [["render", Kr], ["__scopeId", "data-v-430b5c94"]]), Xr = {
1556
+ const Zr = /* @__PURE__ */ g(Kr, [["render", Xr], ["__scopeId", "data-v-430b5c94"]]), Qr = {
1557
1557
  error: !0,
1558
1558
  wait: !1,
1559
1559
  throw: !0
1560
1560
  };
1561
- async function _t(t, e = {}) {
1561
+ async function mt(t, e = {}) {
1562
1562
  const n = {
1563
1563
  modalWait: null
1564
1564
  };
1565
- e = Object.assign({}, e, Xr);
1565
+ e = Object.assign({}, e, Qr);
1566
1566
  try {
1567
- e.wait && (n.modalWait = await Bt(Yr, { message: typeof e.wait == "string" ? e.wait : "" }));
1567
+ e.wait && (n.modalWait = await zt(Zr, { message: typeof e.wait == "string" ? e.wait : "" }));
1568
1568
  } catch (s) {
1569
1569
  console.warn(s);
1570
1570
  }
1571
1571
  return Promise.resolve(t()).catch((s) => {
1572
1572
  let r = s;
1573
- if (typeof r == "string" && (r = B.UndefinedError(r)), e.error && (console.log(r, r.details), r instanceof B ? D.add("error", r.message, {
1573
+ if (typeof r == "string" && (r = q.UndefinedError(r)), e.error && (console.log(r, r.details), r instanceof q ? F.add("error", r.message, {
1574
1574
  children: r.details || [],
1575
1575
  timeout: 12
1576
- }) : r != null && r.message ? D.add("error", r.message) : (console.warn(r), D.add("error", B.ApiResponseParseFailed().message))), e.throw)
1576
+ }) : r != null && r.message ? F.add("error", r.message) : (console.warn(r), F.add("error", q.ApiResponseParseFailed().message))), e.throw)
1577
1577
  throw r;
1578
1578
  }).finally(() => {
1579
1579
  var s;
1580
1580
  (s = n.modalWait) == null || s.close();
1581
1581
  });
1582
1582
  }
1583
- function Qe(t) {
1583
+ function et(t) {
1584
1584
  return Object.keys(t).reduce((e, n) => {
1585
1585
  let s = t[n];
1586
1586
  const r = n.charAt(0).toUpperCase() + n.slice(1);
1587
- return typeof s == "object" && !(s == null || Array.isArray(s)) && (s = Qe(s)), e[r] = s, e;
1587
+ return typeof s == "object" && !(s == null || Array.isArray(s)) && (s = et(s)), e[r] = s, e;
1588
1588
  }, {});
1589
1589
  }
1590
- function tn(t, e = 2) {
1590
+ function rn(t, e = 2) {
1591
1591
  if (!(typeof t == "string" || typeof t == "number"))
1592
1592
  return "";
1593
1593
  let s = String(t).split(".");
1594
1594
  return s[0] = s[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), s.length < 2 && (s[1] = ""), s[1] = s[1].padEnd(e, "0"), s[1].length > e && (s[1] = s[1].substring(0, e)), s.join(".");
1595
1595
  }
1596
1596
  const Ce = {
1597
- Request: g,
1597
+ Request: _,
1598
1598
  clickOutside: ke,
1599
1599
  getPropFromObject: Ne,
1600
- runPromiseQueue: ht,
1601
- GraphQL: Ze,
1602
- firstChapterToLowerCase: en,
1603
- requestHandler: _t,
1604
- valuesToUpperCase: Qe,
1605
- prettyMoney: tn
1606
- }, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1600
+ runPromiseQueue: gt,
1601
+ GraphQL: Qe,
1602
+ firstChapterToLowerCase: sn,
1603
+ requestHandler: mt,
1604
+ valuesToUpperCase: et,
1605
+ prettyMoney: rn
1606
+ }, ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1607
1607
  __proto__: null,
1608
- GraphQL: Ze,
1609
- Journal: Qt,
1610
- Request: g,
1608
+ GraphQL: Qe,
1609
+ Journal: nn,
1610
+ Request: _,
1611
1611
  clickOutside: ke,
1612
1612
  default: Ce,
1613
- firstChapterToLowerCase: en,
1613
+ firstChapterToLowerCase: sn,
1614
1614
  getPropFromObject: Ne,
1615
- requestHandler: _t,
1616
- runPromiseQueue: ht,
1617
- valuesToUpperCase: Qe
1615
+ requestHandler: mt,
1616
+ runPromiseQueue: gt,
1617
+ valuesToUpperCase: et
1618
1618
  }, Symbol.toStringTag, { value: "Module" }));
1619
- function nn(t, e = "") {
1619
+ function on(t, e = "") {
1620
1620
  for (let n in t) {
1621
1621
  if (typeof t[n] == "object") {
1622
- nn(t[n], (e.length ? `${e}-` : "") + n);
1622
+ on(t[n], (e.length ? `${e}-` : "") + n);
1623
1623
  continue;
1624
1624
  }
1625
1625
  let s = "--" + ((e.length ? `${e}-` : "") + n).replace(
@@ -1629,32 +1629,32 @@ function nn(t, e = "") {
1629
1629
  document.documentElement.style.setProperty(s, t[n]);
1630
1630
  }
1631
1631
  }
1632
- const te = {};
1633
- function Qr(t) {
1632
+ const se = {};
1633
+ function ti(t) {
1634
1634
  for (let e in t)
1635
- te[e] = t[e];
1636
- t.styles && nn(t.styles), Qt.welcome(), console.log("The config has been initialized. To get access check %c_config in console.", "background: purple; color: white"), window._config = te;
1635
+ se[e] = t[e];
1636
+ t.styles && on(t.styles), nn.welcome(), console.log("The config has been initialized. To get access check %c_config in console.", "background: purple; color: white"), window._config = se;
1637
1637
  }
1638
- const ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1638
+ const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1639
1639
  __proto__: null
1640
1640
  }, Symbol.toStringTag, { value: "Module" }));
1641
- function ti(t) {
1641
+ function si(t) {
1642
1642
  return Array.isArray(t) && t.length === 2 && typeof t[0] == "string" && typeof t[1] == "number";
1643
1643
  }
1644
- const ni = "masterId", si = "masterEntity";
1645
- function He(t, e) {
1644
+ const ri = "masterId", ii = "masterEntity";
1645
+ function Je(t, e) {
1646
1646
  if (!Array.isArray(e))
1647
1647
  return;
1648
- if (ti(e))
1648
+ if (si(e))
1649
1649
  return n(e);
1650
1650
  e.forEach(n);
1651
1651
  function n(s) {
1652
- t.append(si, s[0]), t.append(ni, s[1].toString());
1652
+ t.append(ii, s[0]), t.append(ri, s[1].toString());
1653
1653
  }
1654
1654
  }
1655
- class J {
1655
+ class K {
1656
1656
  static async anonymousGetList(e) {
1657
- return await g(`/open-api/data/${e}`, {
1657
+ return await _(`/open-api/data/${e}`, {
1658
1658
  method: "GET",
1659
1659
  headers: {
1660
1660
  "Content-Type": "application/json"
@@ -1668,21 +1668,21 @@ class J {
1668
1668
  static async getList(e, n) {
1669
1669
  const s = new URLSearchParams();
1670
1670
  function r(a, o) {
1671
- const c = (p) => s.append("fields", p);
1671
+ const l = (p) => s.append("fields", p);
1672
1672
  if (typeof o == "string")
1673
- return c(o);
1673
+ return l(o);
1674
1674
  if (Array.isArray(o))
1675
- return c(o.join(" "));
1675
+ return l(o.join(" "));
1676
1676
  if (typeof o == "object")
1677
- return c(Object.keys(o).join(" "));
1677
+ return l(Object.keys(o).join(" "));
1678
1678
  }
1679
1679
  function i(a, o) {
1680
1680
  if (!o || !Object.keys(o).length)
1681
1681
  return;
1682
- const c = Object.entries(o).map(([p, f]) => `@${p} ${f}`).join(",");
1683
- a.append("order", c);
1682
+ const l = Object.entries(o).map(([p, f]) => `@${p} ${f}`).join(",");
1683
+ a.append("order", l);
1684
1684
  }
1685
- return n && (r(s, n.fields), i(s, n.order), n.limit && s.append("limit", n.limit.toString()), n.offset && s.append("offset", n.offset.toString()), n.filter && s.append("filter", n.filter.toString()), n.useUsageContext && s.append("useUsageContext", n.useUsageContext.toString())), await g(`/close-api/data/${e}?${s.toString()}`, {
1685
+ return n && (r(s, n.fields), i(s, n.order), n.limit && s.append("limit", n.limit.toString()), n.offset && s.append("offset", n.offset.toString()), n.filter && s.append("filter", n.filter.toString()), n.useUsageContext && s.append("useUsageContext", n.useUsageContext.toString())), await _(`/close-api/data/${e}?${s.toString()}`, {
1686
1686
  method: "GET",
1687
1687
  headers: {
1688
1688
  "Content-Type": "application/json"
@@ -1695,21 +1695,21 @@ class J {
1695
1695
  static getCount(e, n) {
1696
1696
  const s = new URLSearchParams();
1697
1697
  function r(a, o) {
1698
- const c = (p) => s.append("fields", p);
1698
+ const l = (p) => s.append("fields", p);
1699
1699
  if (typeof o == "string")
1700
- return c(o);
1700
+ return l(o);
1701
1701
  if (Array.isArray(o))
1702
- return c(o.join(" "));
1702
+ return l(o.join(" "));
1703
1703
  if (typeof o == "object")
1704
- return c(Object.keys(o).join(" "));
1704
+ return l(Object.keys(o).join(" "));
1705
1705
  }
1706
1706
  function i(a, o) {
1707
1707
  if (!o || !Object.keys(o).length)
1708
1708
  return;
1709
- const c = Object.entries(o).map(([p, f]) => `@${p} ${f}`).join(",");
1710
- a.append("order", c);
1709
+ const l = Object.entries(o).map(([p, f]) => `@${p} ${f}`).join(",");
1710
+ a.append("order", l);
1711
1711
  }
1712
- return n && (r(s, n.fields), i(s, n.order), n.limit && s.append("limit", n.limit.toString()), n.offset && s.append("offset", n.offset.toString()), n.filter && s.append("filter", n.filter.toString()), n.useUsageContext && s.append("useUsageContext", n.useUsageContext.toString())), g(`/close-api/data/entities/${e}/count?${s.toString()}`, {
1712
+ return n && (r(s, n.fields), i(s, n.order), n.limit && s.append("limit", n.limit.toString()), n.offset && s.append("offset", n.offset.toString()), n.filter && s.append("filter", n.filter.toString()), n.useUsageContext && s.append("useUsageContext", n.useUsageContext.toString())), _(`/close-api/data/entities/${e}/count?${s.toString()}`, {
1713
1713
  method: "GET",
1714
1714
  headers: {
1715
1715
  "Content-Type": "application/json"
@@ -1721,7 +1721,7 @@ class J {
1721
1721
  * */
1722
1722
  static create(e, n, s) {
1723
1723
  const r = new URLSearchParams();
1724
- return He(r, s == null ? void 0 : s.masterEntities), g(`/close-api/data/${e}?${r.toString()}`, {
1724
+ return Je(r, s == null ? void 0 : s.masterEntities), _(`/close-api/data/${e}?${r.toString()}`, {
1725
1725
  method: "POST",
1726
1726
  headers: {
1727
1727
  "Content-Type": "application/json"
@@ -1735,7 +1735,7 @@ class J {
1735
1735
  * @description Default update method, update entity by primaryKeys.
1736
1736
  * */
1737
1737
  static update(e, n, s, r = {}) {
1738
- return g(`/close-api/data/entities/${e}`, {
1738
+ return _(`/close-api/data/entities/${e}`, {
1739
1739
  method: "PUT",
1740
1740
  headers: {
1741
1741
  "Content-Type": "application/json"
@@ -1758,7 +1758,7 @@ class J {
1758
1758
  let i = s.fields;
1759
1759
  typeof i == "string" && (i = [i]), r.append("fields", i.join(" "));
1760
1760
  }
1761
- return g(`/close-api/data/entities/${e}/id/${n}?${r.toString()}`, {
1761
+ return _(`/close-api/data/entities/${e}/id/${n}?${r.toString()}`, {
1762
1762
  method: "GET",
1763
1763
  headers: {
1764
1764
  "Content-Type": "application/json"
@@ -1767,7 +1767,7 @@ class J {
1767
1767
  }
1768
1768
  static updateById(e, n, s, r) {
1769
1769
  const i = new URLSearchParams();
1770
- return He(i, r == null ? void 0 : r.masterEntities), g(`/close-api/data/entities/${e}/id/${n}?${i.toString()}`, {
1770
+ return Je(i, r == null ? void 0 : r.masterEntities), _(`/close-api/data/entities/${e}/id/${n}?${i.toString()}`, {
1771
1771
  method: "PUT",
1772
1772
  headers: {
1773
1773
  "Content-Type": "application/json"
@@ -1783,10 +1783,10 @@ class J {
1783
1783
  * */
1784
1784
  static removeById(e, n, s) {
1785
1785
  const r = typeof n == "number" ? { Id: n } : n;
1786
- return J.removeByKeys(e, r, s);
1786
+ return K.removeByKeys(e, r, s);
1787
1787
  }
1788
1788
  static removeByKeys(e, n, s) {
1789
- return g(`/close-api/data/entities/${e}`, {
1789
+ return _(`/close-api/data/entities/${e}`, {
1790
1790
  method: "delete",
1791
1791
  headers: {
1792
1792
  "Content-Type": "application/json"
@@ -1795,23 +1795,23 @@ class J {
1795
1795
  });
1796
1796
  }
1797
1797
  }
1798
- var sn = (t, e, n) => {
1798
+ var an = (t, e, n) => {
1799
1799
  if (!e.has(t))
1800
1800
  throw TypeError("Cannot " + n);
1801
- }, it = (t, e, n) => (sn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Nt = (t, e, n) => {
1801
+ }, at = (t, e, n) => (an(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Ot = (t, e, n) => {
1802
1802
  if (e.has(t))
1803
1803
  throw TypeError("Cannot add the same private member more than once");
1804
1804
  e instanceof WeakSet ? e.add(t) : e.set(t, n);
1805
- }, Pt = (t, e, n, s) => (sn(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), ve, je;
1806
- const gt = class pe extends H {
1805
+ }, Rt = (t, e, n, s) => (an(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), we, xe;
1806
+ const yt = class fe extends J {
1807
1807
  constructor(e) {
1808
- super(), Nt(this, ve, []), Nt(this, je, !1), this.hashParams = "", this.offset = 0, this.name = e.name;
1808
+ super(), Ot(this, we, []), Ot(this, xe, !1), this.hashParams = "", this.offset = 0, this.name = e.name;
1809
1809
  }
1810
1810
  set wait(e) {
1811
- Pt(this, je, e), this.emit(pe.EVENT_CHANGE_WAIT, e);
1811
+ Rt(this, xe, e), this.emit(fe.EVENT_CHANGE_WAIT, e);
1812
1812
  }
1813
1813
  get wait() {
1814
- return it(this, je);
1814
+ return at(this, xe);
1815
1815
  }
1816
1816
  read(e) {
1817
1817
  var r, i;
@@ -1821,20 +1821,20 @@ const gt = class pe extends H {
1821
1821
  [(r = e.order) == null ? void 0 : r.name]: (i = e.order) == null ? void 0 : i.duration
1822
1822
  }), e.fields && (n.fields = e.fields), e.filter && (n.filter = e.filter);
1823
1823
  const s = JSON.stringify(n.order) + JSON.stringify(n.filter);
1824
- return s !== this.hashParams && (this.offset = 0, this.hashParams = s), e.limit && (n.limit = e.limit), e.offset && (n.offset = e.offset || this.offset), J.getList(this.name, n).then((a) => (this.offset === 0 && (this.array = []), this.offset += n.limit, a)).then((a) => {
1824
+ return s !== this.hashParams && (this.offset = 0, this.hashParams = s), e.limit && (n.limit = e.limit), e.offset && (n.offset = e.offset || this.offset), K.getList(this.name, n).then((a) => (this.offset === 0 && (this.array = []), this.offset += n.limit, a)).then((a) => {
1825
1825
  this.array.push(...a);
1826
- }).then(() => this.emit(pe.EVENT_DATA, this.array)).finally(() => {
1826
+ }).then(() => this.emit(fe.EVENT_DATA, this.array)).finally(() => {
1827
1827
  this.wait = !1;
1828
1828
  });
1829
1829
  }
1830
1830
  set array(e) {
1831
- Pt(this, ve, e), this.emit(pe.EVENT_DATA, this.array);
1831
+ Rt(this, we, e), this.emit(fe.EVENT_DATA, this.array);
1832
1832
  }
1833
1833
  add(e) {
1834
- it(this, ve).push(...e), this.emit(pe.EVENT_DATA, this.array);
1834
+ at(this, we).push(...e), this.emit(fe.EVENT_DATA, this.array);
1835
1835
  }
1836
1836
  get array() {
1837
- return it(this, ve);
1837
+ return at(this, we);
1838
1838
  }
1839
1839
  /**
1840
1840
  * @description Function get all names from Config.
@@ -1850,7 +1850,7 @@ const gt = class pe extends H {
1850
1850
  * Output: { name: 'title', value: 'GG_GG'}
1851
1851
  */
1852
1852
  static getCellInfo(e, n) {
1853
- const s = pe.getCellName(e), r = (() => {
1853
+ const s = fe.getCellName(e), r = (() => {
1854
1854
  let i = s ? Ne(n, s) : null;
1855
1855
  return i === void 0 && (i = null), e.value ? e.value(i, n) : i;
1856
1856
  })();
@@ -1863,13 +1863,13 @@ const gt = class pe extends H {
1863
1863
  return typeof e.name == "string" ? e.name : Array.isArray(e.name) ? e.name[0] : null;
1864
1864
  }
1865
1865
  };
1866
- ve = /* @__PURE__ */ new WeakMap();
1867
- je = /* @__PURE__ */ new WeakMap();
1868
- gt.EVENT_DATA = "LIST:DATA";
1869
- gt.EVENT_CHANGE_WAIT = "LIST:UPDATE-WAIT";
1870
- let rn = gt;
1871
- const W = Symbol("__ROW_INDEX__");
1872
- let et = class extends rn {
1866
+ we = /* @__PURE__ */ new WeakMap();
1867
+ xe = /* @__PURE__ */ new WeakMap();
1868
+ yt.EVENT_DATA = "LIST:DATA";
1869
+ yt.EVENT_CHANGE_WAIT = "LIST:UPDATE-WAIT";
1870
+ let ln = yt;
1871
+ const M = Symbol("__ROW_INDEX__");
1872
+ let tt = class extends ln {
1873
1873
  constructor(e) {
1874
1874
  super(e), this.rowIndex = 1, this.changes = {
1875
1875
  new: {},
@@ -1886,7 +1886,7 @@ let et = class extends rn {
1886
1886
  */
1887
1887
  create(e) {
1888
1888
  const n = this.wrapData(e);
1889
- this.changes.new[n[W]] = n, this.emitChanges();
1889
+ this.changes.new[n[M]] = n, this.emitChanges();
1890
1890
  }
1891
1891
  cleanChanges() {
1892
1892
  this.changes.new = {}, this.changes.edit = {}, this.changes.remove = [], this.emitChanges();
@@ -1900,7 +1900,7 @@ let et = class extends rn {
1900
1900
  const s = this.wrapData(n, e);
1901
1901
  if (this.changes.new[e])
1902
1902
  return this.changes.new[e] = s, this.emitChanges();
1903
- this.array.find((r) => r[W] === e) && (this.changes.edit[e] = {
1903
+ this.array.find((r) => r[M] === e) && (this.changes.edit[e] = {
1904
1904
  ...this.changes.edit[e],
1905
1905
  ...s
1906
1906
  }, this.emitChanges());
@@ -1908,16 +1908,16 @@ let et = class extends rn {
1908
1908
  remove(e) {
1909
1909
  if (this.changes.new[e])
1910
1910
  return delete this.changes.new[e], this.emitChanges();
1911
- this.array.find((n) => n[W] === e) && (delete this.changes.edit[e], this.changes.remove.includes(e) || this.changes.remove.push(e), this.emitChanges());
1911
+ this.array.find((n) => n[M] === e) && (delete this.changes.edit[e], this.changes.remove.includes(e) || this.changes.remove.push(e), this.emitChanges());
1912
1912
  }
1913
1913
  wrapData(e, n) {
1914
- return n === void 0 && !Object.prototype.hasOwnProperty.call(e, W.toString()) && (n = ++this.rowIndex), {
1914
+ return n === void 0 && !Object.prototype.hasOwnProperty.call(e, M.toString()) && (n = ++this.rowIndex), {
1915
1915
  ...e,
1916
- [W]: n
1916
+ [M]: n
1917
1917
  };
1918
1918
  }
1919
1919
  emitChanges() {
1920
- this.emit(K.EVENT_CHANGED, !0);
1920
+ this.emit(Y.EVENT_CHANGED, !0);
1921
1921
  }
1922
1922
  /**
1923
1923
  * @override
@@ -1932,8 +1932,8 @@ let et = class extends rn {
1932
1932
  console.log(`[table] ${e}`);
1933
1933
  }
1934
1934
  };
1935
- et.PROVIDE_NAME = "table-controller";
1936
- function ri(t) {
1935
+ tt.PROVIDE_NAME = "table-controller";
1936
+ function oi(t) {
1937
1937
  return function(n) {
1938
1938
  return {
1939
1939
  activate() {
@@ -1945,56 +1945,56 @@ function ri(t) {
1945
1945
  };
1946
1946
  };
1947
1947
  }
1948
- function uo(t) {
1948
+ function fa(t) {
1949
1949
  const e = A(t.array);
1950
- Mt(et.PROVIDE_NAME, t);
1950
+ xt(tt.PROVIDE_NAME, t);
1951
1951
  const n = A(t.changes);
1952
- t.on(rn.EVENT_DATA, (a) => e.splice(0, e.length, ...a)), t.on(K.EVENT_CHANGED, () => {
1952
+ t.on(ln.EVENT_DATA, (a) => e.splice(0, e.length, ...a)), t.on(Y.EVENT_CHANGED, () => {
1953
1953
  n.new = Object.keys(t.changes.new).reduce((a, o) => {
1954
- const c = Number(o);
1955
- return a[c] = t.changes.new[c], a;
1954
+ const l = Number(o);
1955
+ return a[l] = t.changes.new[l], a;
1956
1956
  }, {});
1957
1957
  });
1958
- const s = V(() => [
1958
+ const s = L(() => [
1959
1959
  ...e.reduce((a, o) => {
1960
- const c = o[W];
1961
- return t.changes.remove.includes(c) || a.push({
1960
+ const l = o[M];
1961
+ return t.changes.remove.includes(l) || a.push({
1962
1962
  ...o,
1963
- ...t.changes.edit[c]
1963
+ ...t.changes.edit[l]
1964
1964
  }), a;
1965
1965
  }, []),
1966
1966
  ...Object.values(n.new)
1967
- ]), r = K.getParentForm();
1967
+ ]), r = Y.getParentForm();
1968
1968
  return r == null || r.subscribe(t), {
1969
- activeRow: q(null),
1969
+ activeRow: G(null),
1970
1970
  array: s
1971
1971
  };
1972
1972
  }
1973
- function po(t, e) {
1974
- t.read = () => J.getList(t.name, {
1973
+ function ha(t, e) {
1974
+ t.read = () => K.getList(t.name, {
1975
1975
  fields: e == null ? void 0 : e.fields
1976
- }).then((n) => t.array = n).then(() => t.emit(K.EVENT_READ, t.array)), t.save = () => {
1976
+ }).then((n) => t.array = n).then(() => t.emit(Y.EVENT_READ, t.array)), t.save = () => {
1977
1977
  const n = t.name;
1978
1978
  Object.values(t.changes.new).forEach(async (r) => {
1979
- await J.create(n, r);
1979
+ await K.create(n, r);
1980
1980
  }), Object.entries(t.changes.edit).forEach(async ([r, i]) => {
1981
- await J.updateById(t.name, s(Number(r)), i);
1981
+ await K.updateById(t.name, s(Number(r)), i);
1982
1982
  });
1983
1983
  function s(r) {
1984
- const i = t.array.find((a) => a[W] === r);
1984
+ const i = t.array.find((a) => a[M] === r);
1985
1985
  return i.id | i.Id;
1986
1986
  }
1987
1987
  t.changes.remove.forEach(async (r) => {
1988
- await J.removeById(n, s(r), 0);
1989
- }), t.emit(K.EVENT_SAVE);
1988
+ await K.removeById(n, s(r), 0);
1989
+ }), t.emit(Y.EVENT_SAVE);
1990
1990
  };
1991
1991
  }
1992
- const fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1992
+ const _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1993
1993
  __proto__: null
1994
1994
  }, Symbol.toStringTag, { value: "Module" }));
1995
- class ho {
1995
+ class ga {
1996
1996
  static readHistoryById(e, n) {
1997
- return g(`/close-api/audits/history/${e}/${n}`, {
1997
+ return _(`/close-api/audits/history/${e}/${n}`, {
1998
1998
  method: "GET",
1999
1999
  headers: {
2000
2000
  "Content-Type": "application/json"
@@ -2020,54 +2020,54 @@ class ho {
2020
2020
  });
2021
2021
  }
2022
2022
  }
2023
- var an = (t, e, n) => {
2023
+ var cn = (t, e, n) => {
2024
2024
  if (!e.has(t))
2025
2025
  throw TypeError("Cannot " + n);
2026
- }, Q = (t, e, n) => (an(t, e, "read from private field"), n ? n.call(t) : e.get(t)), se = (t, e, n) => {
2026
+ }, te = (t, e, n) => (cn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), oe = (t, e, n) => {
2027
2027
  if (e.has(t))
2028
2028
  throw TypeError("Cannot add the same private member more than once");
2029
2029
  e instanceof WeakSet ? e.add(t) : e.set(t, n);
2030
- }, re = (t, e, n, s) => (an(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), xe, we, Ue, Be, be, $e, lt;
2031
- const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee extends H {
2030
+ }, ae = (t, e, n, s) => (cn(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), Ue, be, Be, qe, $e, Ee, ut;
2031
+ const le = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ne extends J {
2032
2032
  constructor(e) {
2033
- super(), this.LIST_ROW_KEY = 1, se(this, xe, void 0), this.array = [], se(this, we, []), se(this, Ue, []), se(this, Be, new Proxy({}, {
2034
- set: (n, s, r, i) => (n[s] = r, this.emit(ee.EVENT_FILTERS_UPDATE, n), !0),
2035
- deleteProperty: (n, s) => (delete n[s], this.emit(ee.EVENT_FILTERS_UPDATE, n), !0)
2036
- })), se(this, be, !1), se(this, $e, (...n) => Promise), se(this, lt, () => {
2037
- }), re(this, xe, e.primaryKeys || []), this.name = e.name || void 0, e.config && re(this, we, e.config);
2033
+ super(), this.LIST_ROW_KEY = 1, oe(this, Ue, void 0), this.array = [], oe(this, be, []), oe(this, Be, []), oe(this, qe, new Proxy({}, {
2034
+ set: (n, s, r, i) => (n[s] = r, this.emit(ne.EVENT_FILTERS_UPDATE, n), !0),
2035
+ deleteProperty: (n, s) => (delete n[s], this.emit(ne.EVENT_FILTERS_UPDATE, n), !0)
2036
+ })), oe(this, $e, !1), oe(this, Ee, (...n) => Promise), oe(this, ut, () => {
2037
+ }), ae(this, Ue, e.primaryKeys || []), this.name = e.name || void 0, e.config && ae(this, be, e.config);
2038
2038
  }
2039
2039
  set config(e) {
2040
- re(this, we, e.map(oe.copyObject)), this.emitUpdateConfig();
2040
+ ae(this, be, e.map(ue.copyObject)), this.emitUpdateConfig();
2041
2041
  }
2042
2042
  get config() {
2043
- return Q(this, we);
2043
+ return te(this, be);
2044
2044
  }
2045
2045
  emitUpdateConfig() {
2046
- this.emit(ee.EVENT_CONFIG_UPDATE, this.config);
2046
+ this.emit(ne.EVENT_CONFIG_UPDATE, this.config);
2047
2047
  }
2048
2048
  get order() {
2049
- return Q(this, Ue);
2049
+ return te(this, Be);
2050
2050
  }
2051
2051
  set order(e) {
2052
- re(this, Ue, e), this.emit(ee.EVENT_ORDER_UPDATE, this.order);
2052
+ ae(this, Be, e), this.emit(ne.EVENT_ORDER_UPDATE, this.order);
2053
2053
  }
2054
2054
  get filters() {
2055
- return Q(this, Be);
2055
+ return te(this, qe);
2056
2056
  }
2057
2057
  set filters(e) {
2058
- on(Q(this, Be), e);
2058
+ un(te(this, qe), e);
2059
2059
  }
2060
2060
  set wait(e) {
2061
- re(this, be, e), this.emit(K.EVENT_WAIT, Q(this, be));
2061
+ ae(this, $e, e), this.emit(Y.EVENT_WAIT, te(this, $e));
2062
2062
  }
2063
2063
  /**
2064
2064
  * @description Value is true if request is running
2065
2065
  * */
2066
2066
  get wait() {
2067
- return Q(this, be);
2067
+ return te(this, $e);
2068
2068
  }
2069
2069
  get primaryKeys() {
2070
- return Q(this, xe);
2070
+ return te(this, Ue);
2071
2071
  }
2072
2072
  /**
2073
2073
  * @description Получение элемента массива по обычно индексу. Не путать с List.LIST_ROW_INDEX_NAME
@@ -2079,29 +2079,29 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
2079
2079
  * @description Получение записи по ROW_KEY.
2080
2080
  * */
2081
2081
  atByKey(e) {
2082
- return this.array.find((n) => n[ie] === e);
2082
+ return this.array.find((n) => n[le] === e);
2083
2083
  }
2084
2084
  /**
2085
2085
  * @description Возвращает индекс записи по её RowKey, если запись не найдена то -1.
2086
2086
  * */
2087
2087
  indexByKey(e) {
2088
- return this.array.findIndex((n) => n[ie] === e);
2088
+ return this.array.findIndex((n) => n[le] === e);
2089
2089
  }
2090
2090
  /**
2091
2091
  * @description Получение значения ключа из объекта
2092
2092
  * */
2093
2093
  static getKey(e) {
2094
- return e[ie];
2094
+ return e[le];
2095
2095
  }
2096
2096
  static hasKey(e) {
2097
- return typeof e != "object" || e === null ? !1 : Object.prototype.hasOwnProperty.call(e, ie);
2097
+ return typeof e != "object" || e === null ? !1 : Object.prototype.hasOwnProperty.call(e, le);
2098
2098
  }
2099
2099
  /**
2100
2100
  * @description Добавляет к массиву новые элементы.
2101
2101
  * */
2102
2102
  add(...e) {
2103
2103
  const n = this.wrapArray(e);
2104
- this.array.push(...n), this.emit(ee.EVENT_DATA, this.array);
2104
+ this.array.push(...n), this.emit(ne.EVENT_DATA, this.array);
2105
2105
  }
2106
2106
  /**
2107
2107
  * @description Полностью заменяет содержимое массива, новым
@@ -2114,14 +2114,14 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
2114
2114
  * */
2115
2115
  removeByKey(e) {
2116
2116
  const n = this.indexByKey(e);
2117
- n !== -1 && (this.array.splice(n, 1), this.emit(ee.EVENT_DATA, this.array));
2117
+ n !== -1 && (this.array.splice(n, 1), this.emit(ne.EVENT_DATA, this.array));
2118
2118
  }
2119
2119
  /**
2120
2120
  * @description Merging data by RowKey
2121
2121
  * */
2122
2122
  updateByKey(e, n) {
2123
2123
  const s = this.atByKey(e);
2124
- s && (Object.assign(s, n), this.emit(ee.EVENT_DATA, this.array));
2124
+ s && (Object.assign(s, n), this.emit(ne.EVENT_DATA, this.array));
2125
2125
  }
2126
2126
  /**
2127
2127
  * @description Just alias for array and method wrapItem
@@ -2135,29 +2135,29 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
2135
2135
  wrapItem(e) {
2136
2136
  return this.isWrapped(e) ? e : {
2137
2137
  ...e,
2138
- [ie]: this.LIST_ROW_KEY++
2138
+ [le]: this.LIST_ROW_KEY++
2139
2139
  };
2140
2140
  }
2141
2141
  /**
2142
2142
  * @description Return true if provided data is IDefaultListData.
2143
2143
  * */
2144
2144
  isWrapped(e) {
2145
- return Object.prototype.hasOwnProperty.call(e, ie);
2145
+ return Object.prototype.hasOwnProperty.call(e, le);
2146
2146
  }
2147
2147
  set read(e) {
2148
- re(this, $e, e);
2148
+ ae(this, Ee, e);
2149
2149
  }
2150
2150
  get read() {
2151
2151
  return (...e) => Promise.resolve().then(() => {
2152
- const n = Q(this, $e).call(this, ...e);
2152
+ const n = te(this, Ee).call(this, ...e);
2153
2153
  return this.wait = !0, n;
2154
2154
  }).finally(() => this.wait = !1);
2155
2155
  }
2156
2156
  set save(e) {
2157
- re(this, $e, e);
2157
+ ae(this, Ee, e);
2158
2158
  }
2159
2159
  get save() {
2160
- return () => Promise.resolve().then(() => this.wait = !0).then(() => Q(this, lt).call(this)).finally(() => this.wait = !1);
2160
+ return () => Promise.resolve().then(() => this.wait = !0).then(() => te(this, ut).call(this)).finally(() => this.wait = !1);
2161
2161
  }
2162
2162
  /**
2163
2163
  * @description Function get all names from Config.
@@ -2171,7 +2171,7 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
2171
2171
  static mergeWithKey(e, n) {
2172
2172
  return {
2173
2173
  ...e,
2174
- [ie]: n
2174
+ [le]: n
2175
2175
  };
2176
2176
  }
2177
2177
  /**
@@ -2188,7 +2188,7 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
2188
2188
  * Output: { name: 'title', value: 'GG_GG'}
2189
2189
  */
2190
2190
  static getCellInfo(e, n) {
2191
- const s = ee.getCellName(e), r = (() => {
2191
+ const s = ne.getCellName(e), r = (() => {
2192
2192
  let i = s ? Ne(n, s) : null;
2193
2193
  return i === void 0 && (i = null), e.value ? e.value(i, n) : i;
2194
2194
  })();
@@ -2198,19 +2198,19 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
2198
2198
  };
2199
2199
  }
2200
2200
  };
2201
- xe = /* @__PURE__ */ new WeakMap();
2202
- we = /* @__PURE__ */ new WeakMap();
2203
2201
  Ue = /* @__PURE__ */ new WeakMap();
2204
- Be = /* @__PURE__ */ new WeakMap();
2205
2202
  be = /* @__PURE__ */ new WeakMap();
2203
+ Be = /* @__PURE__ */ new WeakMap();
2204
+ qe = /* @__PURE__ */ new WeakMap();
2206
2205
  $e = /* @__PURE__ */ new WeakMap();
2207
- lt = /* @__PURE__ */ new WeakMap();
2206
+ Ee = /* @__PURE__ */ new WeakMap();
2207
+ ut = /* @__PURE__ */ new WeakMap();
2208
2208
  Pe.EVENT_DATA = "list-data: update";
2209
2209
  Pe.EVENT_CONFIG_UPDATE = "list-config:update";
2210
2210
  Pe.EVENT_ORDER_UPDATE = "list-order:update";
2211
2211
  Pe.EVENT_FILTERS_UPDATE = "list-filters:update";
2212
- let Z = Pe;
2213
- function ii(t, e) {
2212
+ let Q = Pe;
2213
+ function ai(t, e) {
2214
2214
  let n = "", s = 0, r;
2215
2215
  t.read = (i = {}) => {
2216
2216
  if (t.wait)
@@ -2224,50 +2224,50 @@ function ii(t, e) {
2224
2224
  a.order && Array.isArray(a.order) && a.order.length && (o.order = {
2225
2225
  [a.order[0]]: a.order[1] || "asc"
2226
2226
  }), a.fields && (o.fields = a.fields), a.filter && (o.filter = a.filter);
2227
- const c = JSON.stringify(o.order) + JSON.stringify(o.filter) + JSON.stringify(o.fields);
2228
- return c !== n && !Number.isNaN(c) && (s = 0, n = c), "limit" in a && (o.limit = a.limit), o.offset = s || a.offset || 0, r = J.getList(t.name, o).then((p) => ((s === 0 || i.clean) && t.set([]), s += o.limit, p)).then((p) => (t.add(...p), p)), r;
2227
+ const l = JSON.stringify(o.order) + JSON.stringify(o.filter) + JSON.stringify(o.fields);
2228
+ return l !== n && !Number.isNaN(l) && (s = 0, n = l), "limit" in a && (o.limit = a.limit), o.offset = s || a.offset || 0, r = K.getList(t.name, o).then((p) => ((s === 0 || i.clean) && t.set([]), s += o.limit, p)).then((p) => (t.add(...p), p)), r;
2229
2229
  };
2230
2230
  }
2231
- function ai(t) {
2231
+ function li(t) {
2232
2232
  const e = A({
2233
2233
  wait: t.wait,
2234
2234
  array: []
2235
2235
  });
2236
- return t.on(Z.EVENT_DATA, (n) => {
2236
+ return t.on(Q.EVENT_DATA, (n) => {
2237
2237
  e.array.splice(0, e.array.length, ...n.map((s) => Object.freeze(JSON.parse(JSON.stringify(s)))));
2238
- }), t.on(K.EVENT_WAIT, () => {
2238
+ }), t.on(Y.EVENT_WAIT, () => {
2239
2239
  e.wait = t.wait;
2240
2240
  }), e;
2241
2241
  }
2242
- function oi(t, e) {
2243
- const n = "list-flex-config", s = dt(n, void 0);
2242
+ function ci(t, e) {
2243
+ const n = "list-flex-config", s = ft(n, void 0);
2244
2244
  if (s)
2245
2245
  return s;
2246
2246
  if (!t || !e)
2247
2247
  throw new Error("Hook useProvideList has two required params: list and defaultSettings");
2248
- t.on(Z.EVENT_CONFIG_UPDATE, () => {
2248
+ t.on(Q.EVENT_CONFIG_UPDATE, () => {
2249
2249
  t.read();
2250
2250
  });
2251
2251
  const r = {
2252
2252
  list: t,
2253
2253
  defaultSettings: e
2254
2254
  };
2255
- return Mt(n, r), r;
2255
+ return xt(n, r), r;
2256
2256
  }
2257
- function _o(t) {
2257
+ function ma(t) {
2258
2258
  const e = A([...t.config]);
2259
- return t.on(Z.EVENT_CONFIG_UPDATE, (n) => {
2259
+ return t.on(Q.EVENT_CONFIG_UPDATE, (n) => {
2260
2260
  e.splice(0, e.length, ...n);
2261
2261
  }), e;
2262
2262
  }
2263
- function li(t) {
2263
+ function ui(t) {
2264
2264
  const e = t.order || [], n = A(e);
2265
- return t.on(Z.EVENT_ORDER_UPDATE, (s) => {
2265
+ return t.on(Q.EVENT_ORDER_UPDATE, (s) => {
2266
2266
  n.splice(0, n.length, ...s), t.read();
2267
2267
  }), n;
2268
2268
  }
2269
- function go(t) {
2270
- const e = q(""), n = V(() => {
2269
+ function ya(t) {
2270
+ const e = G(""), n = L(() => {
2271
2271
  const s = e.value.toLowerCase();
2272
2272
  return P(t).filter((r) => e.value.length ? Object.values(r).join().toLowerCase().includes(s) : !0);
2273
2273
  });
@@ -2276,18 +2276,18 @@ function go(t) {
2276
2276
  searchArray: n
2277
2277
  };
2278
2278
  }
2279
- function on(t, e) {
2279
+ function un(t, e) {
2280
2280
  Object.keys(t).forEach((n) => delete t[n]), Object.entries(e).forEach(([n, s]) => {
2281
2281
  t[n] = s;
2282
2282
  });
2283
2283
  }
2284
- function mo(t) {
2285
- const e = A(oe.copyObject(t.filters));
2286
- return t.on(Z.EVENT_FILTERS_UPDATE, (n) => {
2287
- on(e, n), t.read();
2284
+ function va(t) {
2285
+ const e = A(ue.copyObject(t.filters));
2286
+ return t.on(Q.EVENT_FILTERS_UPDATE, (n) => {
2287
+ un(e, n), t.read();
2288
2288
  }), e;
2289
2289
  }
2290
- function yo(t) {
2290
+ function wa(t) {
2291
2291
  const e = A([]);
2292
2292
  function n(o) {
2293
2293
  return e.includes(o);
@@ -2296,26 +2296,26 @@ function yo(t) {
2296
2296
  n(o) || e.push(o);
2297
2297
  }
2298
2298
  function r(o) {
2299
- const c = e.findIndex((p) => p === o);
2300
- c !== -1 && e.splice(c, 1);
2299
+ const l = e.findIndex((p) => p === o);
2300
+ l !== -1 && e.splice(l, 1);
2301
2301
  }
2302
2302
  function i(o) {
2303
- const c = P(t);
2303
+ const l = P(t);
2304
2304
  if (o === void 0) {
2305
- e.length === 0 ? c.forEach(s) : c.forEach(r);
2305
+ e.length === 0 ? l.forEach(s) : l.forEach(r);
2306
2306
  return;
2307
2307
  }
2308
2308
  n(o) ? r(o) : s(o);
2309
2309
  }
2310
- const a = V(() => {
2310
+ const a = L(() => {
2311
2311
  const o = P(t);
2312
2312
  return e.length === o.length && o.length !== 0;
2313
2313
  });
2314
2314
  return [e, i, a, s, r];
2315
2315
  }
2316
- class ci extends Z {
2316
+ class di extends Q {
2317
2317
  constructor(e) {
2318
- super(e), this.changes = [], this.save = ui.bind(this);
2318
+ super(e), this.changes = [], this.save = pi.bind(this);
2319
2319
  }
2320
2320
  get changed() {
2321
2321
  return !!this.changes.find((e) => e.status === "active");
@@ -2329,141 +2329,141 @@ class ci extends Z {
2329
2329
  });
2330
2330
  }
2331
2331
  }
2332
- function ui() {
2332
+ function pi() {
2333
2333
  const t = this.changes.filter((e) => e.status === "active");
2334
- return ht(t.map((e) => {
2334
+ return gt(t.map((e) => {
2335
2335
  console.log("++");
2336
2336
  }));
2337
2337
  }
2338
- function di() {
2339
- const t = q(null);
2338
+ function fi() {
2339
+ const t = G(null);
2340
2340
  function e(n) {
2341
- t.value = n && qt(n);
2341
+ t.value = n && Ht(n);
2342
2342
  }
2343
2343
  return {
2344
2344
  activeRow: t,
2345
2345
  activateRow: e
2346
2346
  };
2347
2347
  }
2348
- const pi = {
2348
+ const hi = {
2349
2349
  props: {
2350
2350
  config: Array
2351
2351
  },
2352
2352
  name: "WidgetTableHead"
2353
- }, fi = { class: "widget-table__head" }, hi = { class: "widget-table__head-title" };
2354
- function _i(t, e, n, s, r, i) {
2355
- return l(), u("tr", fi, [
2356
- (l(!0), u(O, null, M(n.config, (a, o) => (l(), u("th", {
2353
+ }, _i = { class: "widget-table__head" }, gi = { class: "widget-table__head-title" };
2354
+ function mi(t, e, n, s, r, i) {
2355
+ return c(), u("tr", _i, [
2356
+ (c(!0), u(O, null, j(n.config, (a, o) => (c(), u("th", {
2357
2357
  class: "widget-table__head-cell",
2358
2358
  key: o
2359
2359
  }, [
2360
- d("p", hi, y(a.title), 1)
2360
+ d("p", gi, m(a.title), 1)
2361
2361
  ]))), 128))
2362
2362
  ]);
2363
2363
  }
2364
- const gi = /* @__PURE__ */ m(pi, [["render", _i], ["__scopeId", "data-v-2ce532f4"]]);
2365
- function ln(t) {
2366
- return mt(t, "YYYY/MM/DD HH:mm:ss");
2364
+ const yi = /* @__PURE__ */ g(hi, [["render", mi], ["__scopeId", "data-v-2ce532f4"]]);
2365
+ function dn(t) {
2366
+ return vt(t, "YYYY/MM/DD HH:mm:ss");
2367
2367
  }
2368
- function mt(t, e = "YYYY/MM/DD") {
2368
+ function vt(t, e = "YYYY/MM/DD") {
2369
2369
  if (!t)
2370
2370
  return "";
2371
2371
  try {
2372
2372
  const n = new Date(t);
2373
- return bn.format(n, e);
2373
+ return En.format(n, e);
2374
2374
  } catch (n) {
2375
2375
  return console.log(n), "Invalid date";
2376
2376
  }
2377
2377
  }
2378
- function mi(t, e) {
2379
- const n = t.config.map((s) => yi(s, t, e));
2380
- return N("tr", { class: "widget-table__row widget-table-row" }, n);
2378
+ function vi(t, e) {
2379
+ const n = t.config.map((s) => wi(s, t, e));
2380
+ return k("tr", { class: "widget-table__row widget-table-row" }, n);
2381
2381
  }
2382
- function yi(t, e, n) {
2382
+ function wi(t, e, n) {
2383
2383
  const s = e.values;
2384
- let { name: r, value: i } = Z.getCellInfo(t, s);
2384
+ let { name: r, value: i } = Q.getCellInfo(t, s);
2385
2385
  const a = {
2386
2386
  onClick: [],
2387
2387
  class: ["widget-table__cell widget-table-cell"]
2388
2388
  };
2389
- function o(h) {
2390
- a.onClick.push(() => h(s));
2389
+ function o(w) {
2390
+ a.onClick.push(() => w(s));
2391
2391
  }
2392
- function c(h) {
2393
- Array.isArray(h) ? a.class.push(...h) : a.class.push(h);
2392
+ function l(w) {
2393
+ Array.isArray(w) ? a.class.push(...w) : a.class.push(w);
2394
2394
  }
2395
2395
  const p = [], f = [];
2396
2396
  if (t.hide && t.hide(s))
2397
- return [N("td")];
2397
+ return [k("td")];
2398
2398
  if (t.type)
2399
- switch (c(`widget-table-cell_${t.type}`), t.type) {
2399
+ switch (l(`widget-table-cell_${t.type}`), t.type) {
2400
2400
  case "number": {
2401
2401
  typeof i == "number" && (i = new Intl.NumberFormat().format(i));
2402
2402
  break;
2403
2403
  }
2404
2404
  case "date": {
2405
- i = mt(typeof i == "string" ? i : null);
2405
+ i = vt(typeof i == "string" ? i : null);
2406
2406
  break;
2407
2407
  }
2408
2408
  case "dateTime":
2409
2409
  case "dateWithTime": {
2410
- i = ln(typeof i == "string" ? i : null);
2410
+ i = dn(typeof i == "string" ? i : null);
2411
2411
  break;
2412
2412
  }
2413
2413
  case "multi-select":
2414
- f.push(N(ot, {
2414
+ f.push(k(ct, {
2415
2415
  type: "single-checkbox",
2416
2416
  modelValue: e.selected
2417
- })), o(vi.bind(null, n, !0));
2417
+ })), o(bi.bind(null, n, !0));
2418
2418
  }
2419
2419
  if (t.checked) {
2420
- const h = t.checked(s);
2420
+ const w = t.checked(s);
2421
2421
  f.push(
2422
- N(ot, {
2422
+ k(ct, {
2423
2423
  type: "single-checkbox",
2424
- modelValue: h
2424
+ modelValue: w
2425
2425
  })
2426
2426
  );
2427
2427
  }
2428
2428
  if (t.onClick && o(t.onClick), t.link)
2429
2429
  try {
2430
- const h = t.link(s);
2431
- if (h) {
2432
- const w = N(Gt, { to: h });
2433
- f.push(w), c("list-cell-link");
2430
+ const w = t.link(s);
2431
+ if (w) {
2432
+ const V = k(Jt, { to: w });
2433
+ f.push(V), l("list-cell-link");
2434
2434
  }
2435
- } catch (h) {
2436
- console.warn("Error handle: Add Router link to cell", h);
2435
+ } catch (w) {
2436
+ console.warn("Error handle: Add Router link to cell", w);
2437
2437
  }
2438
- return t.href && (f.push(N("a", {
2438
+ return t.href && (f.push(k("a", {
2439
2439
  href: t.href(s),
2440
2440
  target: "_blank"
2441
- })), c("list-cell-link")), i != null && f.push(
2442
- N("p", {
2441
+ })), l("list-cell-link")), i != null && f.push(
2442
+ k("p", {
2443
2443
  class: "widget-list-cell-text"
2444
2444
  }, i)
2445
- ), t.icon && f.push(N(R, { name: t.icon })), t.class && (typeof t.class == "function" ? c(t.class(s)) : c(t.class)), p.push(N("td", a, f)), p;
2445
+ ), t.icon && f.push(k(R, { name: t.icon })), t.class && (typeof t.class == "function" ? l(t.class(s)) : l(t.class)), p.push(k("td", a, f)), p;
2446
2446
  }
2447
- function vi(t, e) {
2447
+ function bi(t, e) {
2448
2448
  t.emit("select", e);
2449
2449
  }
2450
- function cn(t, e) {
2450
+ function pn(t, e) {
2451
2451
  return () => {
2452
2452
  try {
2453
- return mi(t, e);
2453
+ return vi(t, e);
2454
2454
  } catch (n) {
2455
2455
  return console.warn(n), null;
2456
2456
  }
2457
2457
  };
2458
2458
  }
2459
- const wi = {
2459
+ const $i = {
2460
2460
  props: {
2461
2461
  values: Object,
2462
2462
  config: Object,
2463
2463
  selected: Boolean
2464
2464
  },
2465
- setup: cn
2466
- }, bi = ["colspan"], Ot = /* @__PURE__ */ $({
2465
+ setup: pn
2466
+ }, Ei = ["colspan"], Vt = /* @__PURE__ */ b({
2467
2467
  __name: "widget-table-form",
2468
2468
  props: {
2469
2469
  rowLength: {},
@@ -2472,40 +2472,40 @@ const wi = {
2472
2472
  },
2473
2473
  emits: ["save", "remove", "close"],
2474
2474
  setup(t, { emit: e }) {
2475
- const n = t, s = q(), r = V(() => !n.values && !Z.hasKey(n.values));
2476
- return Ke(() => {
2475
+ const n = t, s = G(), r = L(() => !n.values && !Q.hasKey(n.values));
2476
+ return Ye(() => {
2477
2477
  setTimeout(() => {
2478
2478
  s.value && s.value.scrollIntoView({ block: "nearest", inline: "nearest", behavior: "smooth" });
2479
2479
  }, 250);
2480
- }), (i, a) => (l(), u("tr", {
2480
+ }), (i, a) => (c(), u("tr", {
2481
2481
  class: "widget-table-form",
2482
2482
  ref_key: "refTableForm",
2483
2483
  ref: s
2484
2484
  }, [
2485
2485
  d("td", { colspan: i.rowLength }, [
2486
- (l(), b(Ft(i.component), jt(i.$attrs, {
2486
+ (c(), v(Ut(i.component), Bt(i.$attrs, {
2487
2487
  values: i.values,
2488
2488
  new: r.value,
2489
2489
  onClose: a[0] || (a[0] = (o) => e("close")),
2490
2490
  onSave: a[1] || (a[1] = (o) => e("save", o))
2491
2491
  }), null, 16, ["values", "new"]))
2492
- ], 8, bi)
2492
+ ], 8, Ei)
2493
2493
  ], 512));
2494
2494
  }
2495
- }), $i = { class: "widget-loader" }, Ei = /* @__PURE__ */ $({
2495
+ }), Ti = { class: "widget-loader" }, Si = /* @__PURE__ */ b({
2496
2496
  __name: "widget-loader",
2497
2497
  props: {
2498
2498
  color: {},
2499
2499
  label: {}
2500
2500
  },
2501
2501
  setup(t) {
2502
- return (e, n) => (l(), u("div", $i, [
2503
- C(he, { color: e.color }, null, 8, ["color"]),
2504
- d("span", null, y(e.label), 1)
2502
+ return (e, n) => (c(), u("div", Ti, [
2503
+ C(_e, { color: e.color }, null, 8, ["color"]),
2504
+ d("span", null, m(e.label), 1)
2505
2505
  ]));
2506
2506
  }
2507
2507
  });
2508
- const Ti = /* @__PURE__ */ m(Ei, [["__scopeId", "data-v-a01a837d"]]), Si = /* @__PURE__ */ $({
2508
+ const Ci = /* @__PURE__ */ g(Si, [["__scopeId", "data-v-a01a837d"]]), Ii = /* @__PURE__ */ b({
2509
2509
  __name: "widget-table",
2510
2510
  props: {
2511
2511
  array: {},
@@ -2518,82 +2518,82 @@ const Ti = /* @__PURE__ */ m(Ei, [["__scopeId", "data-v-a01a837d"]]), Si = /* @_
2518
2518
  },
2519
2519
  emits: ["update:activeRow", "update:selectRows", "save", "read"],
2520
2520
  setup(t, { emit: e }) {
2521
- const n = t, s = xt(), r = V(() => {
2522
- var c;
2523
- return (c = s == null ? void 0 : s.default) == null ? void 0 : c.call(s)[0];
2524
- }), i = V(() => n.array.map((c) => ({
2525
- values: c,
2526
- hash: qt(c)
2521
+ const n = t, s = qt(), r = L(() => {
2522
+ var l;
2523
+ return (l = s == null ? void 0 : s.default) == null ? void 0 : l.call(s)[0];
2524
+ }), i = L(() => n.array.map((l) => ({
2525
+ values: l,
2526
+ hash: Ht(l)
2527
2527
  })));
2528
- function a(c, p = !0) {
2529
- return n.selectRows ? p ? n.selectRows.indexOf(c) === -1 ? e("update:selectRows", [...n.selectRows, c]) : e("update:selectRows", n.selectRows.filter((h) => h !== c)) : e("update:selectRows", [c]) : void 0;
2528
+ function a(l, p = !0) {
2529
+ return n.selectRows ? p ? n.selectRows.indexOf(l) === -1 ? e("update:selectRows", [...n.selectRows, l]) : e("update:selectRows", n.selectRows.filter((w) => w !== l)) : e("update:selectRows", [l]) : void 0;
2530
2530
  }
2531
- function o(c) {
2532
- e("save", c), e("update:activeRow", null);
2531
+ function o(l) {
2532
+ e("save", l), e("update:activeRow", null);
2533
2533
  }
2534
- return (c, p) => (l(), u("div", null, [
2535
- C(vn, { name: "move-horizontal" }, {
2536
- default: fe(() => [
2537
- c.wait ? (l(), b(Ti, {
2534
+ return (l, p) => (c(), u("div", null, [
2535
+ C(bn, { name: "move-horizontal" }, {
2536
+ default: he(() => [
2537
+ l.wait ? (c(), v(Ci, {
2538
2538
  key: 0,
2539
2539
  label: "Loading data",
2540
2540
  color: "black",
2541
2541
  class: "widget-table-loader"
2542
- })) : _("", !0)
2542
+ })) : h("", !0)
2543
2543
  ]),
2544
2544
  _: 1
2545
2545
  }),
2546
2546
  d("table", {
2547
- class: I(["widget-table", { "widget-table_mini": c.mini }])
2547
+ class: I(["widget-table", { "widget-table_mini": l.mini }])
2548
2548
  }, [
2549
- C(gi, { config: c.config }, null, 8, ["config"]),
2549
+ C(yi, { config: l.config }, null, 8, ["config"]),
2550
2550
  d("tbody", null, [
2551
- (l(!0), u(O, null, M(i.value, ({ values: f, hash: h }, w) => {
2551
+ (c(!0), u(O, null, j(i.value, ({ values: f, hash: w }, V) => {
2552
2552
  var T;
2553
- return l(), u(O, { key: w }, [
2554
- C(wi, {
2555
- config: c.config,
2553
+ return c(), u(O, { key: V }, [
2554
+ C($i, {
2555
+ config: l.config,
2556
2556
  values: f,
2557
- selected: (T = c.selectRows) == null ? void 0 : T.includes(f),
2558
- onSelect: (F) => a(f, F),
2559
- class: I(c.classCallback ? c.classCallback(f) : "")
2557
+ selected: (T = l.selectRows) == null ? void 0 : T.includes(f),
2558
+ onSelect: (S) => a(f, S),
2559
+ class: I(l.classCallback ? l.classCallback(f) : "")
2560
2560
  }, null, 8, ["config", "values", "selected", "onSelect", "class"]),
2561
- r.value && c.activeRow === h ? (l(), b(Ot, {
2561
+ r.value && l.activeRow === w ? (c(), v(Vt, {
2562
2562
  key: 0,
2563
2563
  component: r.value,
2564
- "row-length": c.config.length,
2564
+ "row-length": l.config.length,
2565
2565
  values: f,
2566
- onClose: p[0] || (p[0] = (F) => e("update:activeRow", null)),
2566
+ onClose: p[0] || (p[0] = (S) => e("update:activeRow", null)),
2567
2567
  onSave: o,
2568
- onRead: p[1] || (p[1] = (F) => e("read"))
2569
- }, null, 8, ["component", "row-length", "values"])) : _("", !0)
2568
+ onRead: p[1] || (p[1] = (S) => e("read"))
2569
+ }, null, 8, ["component", "row-length", "values"])) : h("", !0)
2570
2570
  ], 64);
2571
2571
  }), 128)),
2572
- c.activeRow === 0 ? (l(), b(Ot, {
2572
+ l.activeRow === 0 ? (c(), v(Vt, {
2573
2573
  key: 0,
2574
2574
  component: r.value,
2575
- "row-length": c.config.length,
2575
+ "row-length": l.config.length,
2576
2576
  onClose: p[2] || (p[2] = (f) => e("update:activeRow", null)),
2577
2577
  onSave: o,
2578
2578
  onRead: p[3] || (p[3] = (f) => e("read"))
2579
- }, null, 8, ["component", "row-length"])) : _("", !0)
2579
+ }, null, 8, ["component", "row-length"])) : h("", !0)
2580
2580
  ])
2581
2581
  ], 2)
2582
2582
  ]));
2583
2583
  }
2584
2584
  });
2585
- const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2585
+ const ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2586
2586
  __proto__: null,
2587
- List: Z,
2588
- Table: ci,
2589
- WidgetTable: Si,
2590
- useListOrder: li,
2591
- useListProvide: oi,
2592
- useListRead: ii,
2593
- useListState: ai,
2594
- useTableActiveRow: di
2587
+ List: Q,
2588
+ Table: di,
2589
+ WidgetTable: Ii,
2590
+ useListOrder: ui,
2591
+ useListProvide: ci,
2592
+ useListRead: ai,
2593
+ useListState: li,
2594
+ useTableActiveRow: fi
2595
2595
  }, Symbol.toStringTag, { value: "Module" }));
2596
- class Ci extends H {
2596
+ class Ai extends J {
2597
2597
  constructor() {
2598
2598
  super(), this.EVENT_NEW = "event:new-metadata", this.store = {};
2599
2599
  }
@@ -2616,66 +2616,66 @@ class Ci extends H {
2616
2616
  });
2617
2617
  }
2618
2618
  async loadEntityInformation(e) {
2619
- return await pn.get(e);
2619
+ return await _n.get(e);
2620
2620
  }
2621
2621
  }
2622
- const De = new Ci();
2623
- function wo(t) {
2624
- const e = q(De.get(t));
2625
- return De.on(De.EVENT_NEW, (n) => {
2626
- t === n.entityName && (e.value = De.get(t));
2622
+ const Me = new Ai();
2623
+ function $a(t) {
2624
+ const e = G(Me.get(t));
2625
+ return Me.on(Me.EVENT_NEW, (n) => {
2626
+ t === n.entityName && (e.value = Me.get(t));
2627
2627
  }), e;
2628
2628
  }
2629
- function bo(t, e) {
2629
+ function Ea(t, e) {
2630
2630
  return e.dataType === "DateTime" && typeof t == "string" ? new Date(t).toLocaleString() : t;
2631
2631
  }
2632
- class $o {
2632
+ class Ta {
2633
2633
  /**
2634
2634
  * @description Загрузка словаря для определённого языка.
2635
2635
  * */
2636
2636
  static getDictionary(e) {
2637
2637
  if (!e)
2638
2638
  throw new Error(`Can't get dictionary for ${e}.`);
2639
- return g(`/open-api/internationalization/language/${e}`);
2639
+ return _(`/open-api/internationalization/language/${e}`);
2640
2640
  }
2641
2641
  }
2642
- let ae = {};
2642
+ let ce = {};
2643
2643
  function Ie(t) {
2644
2644
  if (typeof t != "string")
2645
2645
  return console.trace(`Label is not provided for translation: ${t}`), "undefined";
2646
- const e = oe.getPropFromObject((this == null ? void 0 : this.vocabulary) || ae, t);
2646
+ const e = ue.getPropFromObject((this == null ? void 0 : this.vocabulary) || ce, t);
2647
2647
  if (typeof e == "string")
2648
2648
  return e;
2649
- const n = oe.getPropFromObject(ae == null ? void 0 : ae.root, t);
2649
+ const n = ue.getPropFromObject(ce == null ? void 0 : ce.root, t);
2650
2650
  return typeof n == "string" ? n : (typeof e === void 0 && console.warn(`Translation for label "${t}" is not founded.`), t);
2651
2651
  }
2652
2652
  Ie.setGlobalVocabulary = function(t) {
2653
- ae = t;
2653
+ ce = t;
2654
2654
  };
2655
2655
  Ie.getScope = function(t) {
2656
2656
  return Ie.bind({
2657
- vocabulary: oe.getPropFromObject(ae, t)
2657
+ vocabulary: ue.getPropFromObject(ce, t)
2658
2658
  });
2659
2659
  };
2660
2660
  Ie.setVocabulary = function(t) {
2661
- return typeof t == "string" && (t = oe.getPropFromObject(ae, t)), Ie.bind({
2661
+ return typeof t == "string" && (t = ue.getPropFromObject(ce, t)), Ie.bind({
2662
2662
  vocabulary: t
2663
2663
  });
2664
2664
  };
2665
- function Eo(t = "default") {
2666
- if (ct.manager)
2667
- return ct.manager.socket(`/${t}`);
2665
+ function Sa(t = "default") {
2666
+ if (dt.manager)
2667
+ return dt.manager.socket(`/${t}`);
2668
2668
  }
2669
- class ct {
2669
+ class dt {
2670
2670
  }
2671
- function To(t = window.location.origin + "/socket.io") {
2672
- ct.manager = new $n(t, {
2671
+ function Ca(t = window.location.origin + "/socket.io") {
2672
+ dt.manager = new Tn(t, {
2673
2673
  reconnectionDelayMax: 1e3,
2674
2674
  withCredentials: !0,
2675
2675
  transports: ["websocket", "polling"]
2676
2676
  });
2677
2677
  }
2678
- const Ii = { class: "breadcrumb__title" }, Ai = /* @__PURE__ */ $({
2678
+ const ki = { class: "breadcrumb__title" }, Ni = /* @__PURE__ */ b({
2679
2679
  __name: "widget-breadcrumb-item",
2680
2680
  props: {
2681
2681
  active: { type: Boolean },
@@ -2683,11 +2683,11 @@ const Ii = { class: "breadcrumb__title" }, Ai = /* @__PURE__ */ $({
2683
2683
  link: {}
2684
2684
  },
2685
2685
  setup(t) {
2686
- return (e, n) => (l(), u("div", {
2686
+ return (e, n) => (c(), u("div", {
2687
2687
  class: I(["breadcrumb flex", { breadcrumb_active: e.active }])
2688
2688
  }, [
2689
- d("p", Ii, y(e.title), 1),
2690
- e.active ? _("", !0) : (l(), b(R, {
2689
+ d("p", ki, m(e.title), 1),
2690
+ e.active ? h("", !0) : (c(), v(R, {
2691
2691
  key: 0,
2692
2692
  class: "breadcrumb__icon",
2693
2693
  name: "caret-right"
@@ -2695,14 +2695,14 @@ const Ii = { class: "breadcrumb__title" }, Ai = /* @__PURE__ */ $({
2695
2695
  ], 2));
2696
2696
  }
2697
2697
  });
2698
- const ki = /* @__PURE__ */ m(Ai, [["__scopeId", "data-v-1702aee0"]]), Ni = { class: "widget-breadcrumbs" }, Pi = /* @__PURE__ */ $({
2698
+ const Pi = /* @__PURE__ */ g(Ni, [["__scopeId", "data-v-1702aee0"]]), Oi = { class: "widget-breadcrumbs" }, Ri = /* @__PURE__ */ b({
2699
2699
  __name: "widget-breadcrumbs",
2700
2700
  props: {
2701
2701
  array: {}
2702
2702
  },
2703
2703
  setup(t) {
2704
- return (e, n) => (l(), u("div", Ni, [
2705
- (l(!0), u(O, null, M(e.array, (s, r) => (l(), b(ki, {
2704
+ return (e, n) => (c(), u("div", Oi, [
2705
+ (c(!0), u(O, null, j(e.array, (s, r) => (c(), v(Pi, {
2706
2706
  key: r,
2707
2707
  title: s.title,
2708
2708
  link: s.link,
@@ -2711,15 +2711,15 @@ const ki = /* @__PURE__ */ m(Ai, [["__scopeId", "data-v-1702aee0"]]), Ni = { cla
2711
2711
  ]));
2712
2712
  }
2713
2713
  });
2714
- const So = /* @__PURE__ */ m(Pi, [["__scopeId", "data-v-1dfb2668"]]), Oi = {
2714
+ const Ia = /* @__PURE__ */ g(Ri, [["__scopeId", "data-v-1dfb2668"]]), Vi = {
2715
2715
  props: {
2716
2716
  config: Array,
2717
2717
  values: Object,
2718
2718
  selected: Boolean
2719
2719
  },
2720
- setup: cn
2720
+ setup: pn
2721
2721
  };
2722
- const Ri = /* @__PURE__ */ m(Oi, [["__scopeId", "data-v-47478206"]]), Vi = (t) => (Lt("data-v-7106cb6a"), t = t(), Wt(), t), Li = { class: "head-cell" }, Wi = /* @__PURE__ */ Vi(() => /* @__PURE__ */ d("div", { class: "head-cell-resize" }, null, -1)), Di = /* @__PURE__ */ $({
2722
+ const Li = /* @__PURE__ */ g(Vi, [["__scopeId", "data-v-47478206"]]), Wi = (t) => (Dt("data-v-03c9724f"), t = t(), Mt(), t), Di = { class: "head-cell" }, Mi = /* @__PURE__ */ Wi(() => /* @__PURE__ */ d("div", { class: "head-cell-resize" }, null, -1)), Fi = /* @__PURE__ */ b({
2723
2723
  __name: "widget-list-head-cell",
2724
2724
  props: {
2725
2725
  title: {},
@@ -2734,132 +2734,139 @@ const Ri = /* @__PURE__ */ m(Oi, [["__scopeId", "data-v-47478206"]]), Vi = (t) =
2734
2734
  emits: ["select", "order"],
2735
2735
  setup(t, { emit: e }) {
2736
2736
  const n = t;
2737
- return n.title && console.warn(`For cell ${n.name} using title,it should be replaced with label.`), (s, r) => (l(), u("th", null, [
2738
- d("div", Li, [
2737
+ return n.title && console.warn(`For cell ${n.name} using title,it should be replaced with label.`), (s, r) => (c(), u("th", null, [
2738
+ d("div", Di, [
2739
2739
  d("div", {
2740
2740
  class: "head-cell-content flex_grow",
2741
- style: ut({ "min-width": s.minWidth, "max-width": s.maxWidth, width: s.width })
2741
+ style: pt({ "min-width": s.minWidth, "max-width": s.maxWidth, width: s.width })
2742
2742
  }, [
2743
- s.type === "multi-select" ? (l(), b(P(ot), {
2743
+ s.type === "multi-select" ? (c(), v(P(ct), {
2744
2744
  key: 0,
2745
2745
  type: "single-checkbox",
2746
- onClick: r[0] || (r[0] = (i) => e("select"))
2747
- })) : (l(), u("p", {
2746
+ onClick: r[0] || (r[0] = Ft((i) => e("select"), ["stop", "prevent"]))
2747
+ })) : (c(), u("p", {
2748
2748
  key: 1,
2749
2749
  class: "widget-list-head-label head-cell-label list-head-cell-label text_md margin-0",
2750
2750
  onClick: r[1] || (r[1] = (i) => e("order"))
2751
- }, y(s.title || s.label), 1))
2751
+ }, m(s.title || s.label), 1))
2752
2752
  ], 4),
2753
- s.name && s.order.length && s.order[0] === s.name ? (l(), b(P(R), {
2753
+ s.name && s.order.length && s.order[0] === s.name ? (c(), v(P(R), {
2754
2754
  key: 0,
2755
2755
  class: I(["head-cell-order", { "head-cell-order_down": s.order.length > 1 && s.order[1] === "desc" }])
2756
2756
  }, {
2757
- default: fe(() => [
2757
+ default: he(() => [
2758
2758
  Ae("core-arrow-up")
2759
2759
  ]),
2760
2760
  _: 1
2761
- }, 8, ["class"])) : _("", !0),
2762
- Wi
2761
+ }, 8, ["class"])) : h("", !0),
2762
+ Mi
2763
2763
  ])
2764
2764
  ]));
2765
2765
  }
2766
2766
  });
2767
- const Mi = /* @__PURE__ */ m(Di, [["__scopeId", "data-v-7106cb6a"]]), Fi = /* @__PURE__ */ $({
2767
+ const ji = /* @__PURE__ */ g(Fi, [["__scopeId", "data-v-03c9724f"]]), xi = /* @__PURE__ */ b({
2768
2768
  __name: "widget-list-head",
2769
- setup(t) {
2770
- const e = Se("config", {
2771
- required: !0
2772
- }), n = Se("order", {
2773
- required: !0,
2774
- default: () => []
2775
- }), s = q(), r = q();
2776
- Ke(() => {
2777
- function a(h, w) {
2778
- let T = -1;
2769
+ props: {
2770
+ config: {},
2771
+ order: {}
2772
+ },
2773
+ emits: ["update:config", "update:order", "select"],
2774
+ setup(t, { emit: e }) {
2775
+ const n = t, s = G(), r = G();
2776
+ Ye(() => {
2777
+ function l(T, S) {
2778
+ let N = -1;
2779
2779
  do
2780
- T++, w -= h[T];
2781
- while (w > 0 && T < h.length);
2782
- return T;
2780
+ N++, S -= T[N];
2781
+ while (S > 0 && N < T.length);
2782
+ return N;
2783
2783
  }
2784
- function o(h, w) {
2785
- let T = 0;
2786
- for (; w > 0 && w > h[T] && T < h.length; )
2787
- w -= h[T], T++;
2788
- return console.log(w, T), T > 0 ? T : 0;
2784
+ function p(T, S) {
2785
+ let N = 0;
2786
+ for (; S > 0 && S > T[N] && N < T.length; )
2787
+ S -= T[N], N++;
2788
+ return console.log(S, N), N > 0 ? N : 0;
2789
2789
  }
2790
- function c(h) {
2790
+ function f(T) {
2791
2791
  try {
2792
- r.value.style.insetInlineStart = h + "px";
2793
- } catch (w) {
2794
- console.log(w);
2792
+ r.value.style.insetInlineStart = T + "px";
2793
+ } catch (S) {
2794
+ console.log(S);
2795
2795
  }
2796
2796
  }
2797
- function p(h) {
2797
+ function w(T) {
2798
2798
  try {
2799
- r.value.style.width = h + "px", r.value.style.minWidth = h + "px", r.value.style.maxWidth = h + "px";
2800
- } catch (w) {
2801
- console.log(w);
2799
+ r.value.style.width = T + "px", r.value.style.minWidth = T + "px", r.value.style.maxWidth = T + "px";
2800
+ } catch (S) {
2801
+ console.log(S);
2802
2802
  }
2803
2803
  }
2804
- function f(h) {
2805
- return h === null ? !1 : h.classList.contains("head-cell-resize");
2804
+ function V(T) {
2805
+ return T === null ? !1 : T.classList.contains("head-cell-resize");
2806
2806
  }
2807
- s.value.addEventListener("pointerdown", function(w) {
2808
- var Et;
2809
- function T(G) {
2810
- return G.screenX + ue - ne;
2807
+ s.value.addEventListener("pointerdown", function(S) {
2808
+ var St;
2809
+ function N(z) {
2810
+ return z.screenX + W - ee;
2811
2811
  }
2812
- const F = s.value, _e = [...F.children].filter((G) => G.localName === "th"), ue = ((Et = F.offsetParent) == null ? void 0 : Et.scrollLeft) || 0, v = _e.map((G) => G.clientWidth), L = f(w.target), ne = F.getBoundingClientRect().left, de = T(w), k = a(v, de), vt = v.slice(0, k).reduce((G, X) => G + X, 0), wt = de - vt, tt = F.offsetWidth, ge = _e[k].clientWidth;
2813
- console.group("START"), console.log(), console.log("Start screenX", w.screenX), console.log("Widths", v), console.log("max width", tt), console.log("Start Position", de), console.log("Position From", k), console.log("Start Position", k), console.log("Global offset (Отступ самой таблицы от края экрана)", ne), console.log("Del", wt), console.groupEnd(), r.value.innerText = _e[k].textContent || "", r.value.style.display = "grid", r.value.style.width = ge + "px", r.value.style.cursor = "grabbing", c(vt), p(ge), document.addEventListener("pointermove", $t, { passive: !0 }), document.addEventListener("pointerup", bt);
2814
- function bt(G) {
2815
- if (console.group("END"), document.removeEventListener("pointermove", $t), document.removeEventListener("pointerup", bt), L && (e.value[k].width = r.value.style.width, e.value[k].minWidth = r.value.style.width, e.value[k].maxWidth = r.value.style.width), !L) {
2816
- const X = G.screenX + ue - ne;
2817
- console.log("ENP Position", X);
2818
- const Re = o(v, X);
2819
- if (console.log(k, "->", Re), Re !== k) {
2820
- const me = e.value[k];
2821
- e.value.splice(k, 1), e.value.splice(Re, 0, me);
2812
+ const re = s.value, y = [...re.children].filter((z) => z.localName === "th"), W = ((St = re.offsetParent) == null ? void 0 : St.scrollLeft) || 0, ie = y.map((z) => z.clientWidth), ge = V(S.target), ee = re.getBoundingClientRect().left, Re = N(S), D = l(ie, Re), bt = ie.slice(0, D).reduce((z, Z) => z + Z, 0), $t = Re - bt, nt = re.offsetWidth, me = y[D].clientWidth;
2813
+ if (n.config[D].type === "multi-select")
2814
+ return;
2815
+ console.group("START"), console.log(), console.log("Start screenX", S.screenX), console.log("Widths", ie), console.log("max width", nt), console.log("Start Position", Re), console.log("Position From", D), console.log("Start Position", D), console.log("Global offset (Отступ самой таблицы от края экрана)", ee), console.log("Del", $t), console.groupEnd(), r.value.innerText = y[D].textContent || "", r.value.style.display = "grid", r.value.style.width = me + "px", r.value.style.cursor = "grabbing", f(bt), w(me), document.addEventListener("pointermove", Tt, { passive: !0 }), document.addEventListener("pointerup", Et);
2816
+ function Et(z) {
2817
+ if (console.group("END"), document.removeEventListener("pointermove", Tt), document.removeEventListener("pointerup", Et), ge && (n.config[D].width = r.value.style.width, n.config[D].minWidth = r.value.style.width, n.config[D].maxWidth = r.value.style.width, i(n.config)), !ge) {
2818
+ const Z = z.screenX + W - ee;
2819
+ console.log("ENP Position", Z);
2820
+ const Ve = p(ie, Z);
2821
+ if (console.log(D, "->", Ve), Ve !== D) {
2822
+ const ye = n.config[D], st = n.config;
2823
+ st.splice(D, 1), st.splice(Ve, 0, ye), i(st);
2822
2824
  } else {
2823
- const me = e.value[k].name;
2824
- i(me);
2825
+ const ye = n.config[D].name;
2826
+ a(ye);
2825
2827
  }
2826
2828
  }
2827
2829
  r.value.style.display = "none", document.body.style.cursor = "unset", console.groupEnd();
2828
2830
  }
2829
- function $t(G) {
2830
- if (L) {
2831
- const me = T(G) - de + ge;
2832
- p(me);
2831
+ function Tt(z) {
2832
+ if (ge) {
2833
+ const ye = N(z) - Re + me;
2834
+ w(ye);
2833
2835
  return;
2834
2836
  }
2835
- let X = G.screenX + ue - ne - wt;
2836
- X < 0 && (X = 0), X + ge > tt && (X = tt - ge), c(X);
2837
+ let Z = z.screenX + W - ee - $t;
2838
+ Z < 0 && (Z = 0), Z + me > nt && (Z = nt - me), f(Z);
2837
2839
  }
2838
2840
  });
2839
2841
  });
2840
- function i(a) {
2841
- if (!a)
2842
+ function i(l) {
2843
+ e("update:config", l);
2844
+ }
2845
+ function a(l) {
2846
+ if (!l)
2842
2847
  return;
2843
- if (Array.isArray(a)) {
2844
- if (a.length < 1)
2848
+ if (Array.isArray(l)) {
2849
+ if (l.length < 1)
2845
2850
  return;
2846
- a = a[0];
2847
- }
2848
- if (n.value.length === 0 || n.value[0] !== a) {
2849
- n.value = [a];
2850
- return;
2851
+ l = l[0];
2851
2852
  }
2852
- const o = n.value.length === 1 || n.value[1] === "asc" ? "asc" : "desc";
2853
- n.value = [a, o === "asc" ? "desc" : "asc"];
2853
+ if (n.order.length === 0 || n.order[0] !== l)
2854
+ return void o([l]);
2855
+ const p = n.order.length === 1 || n.order[1] === "asc" ? "asc" : "desc";
2856
+ o([l, p === "asc" ? "desc" : "asc"]);
2857
+ }
2858
+ function o(l) {
2859
+ e("update:order", l);
2854
2860
  }
2855
- return (a, o) => (l(), u("tr", {
2861
+ return (l, p) => (c(), u("tr", {
2856
2862
  class: "widget-list-head",
2857
2863
  ref_key: "refHead",
2858
2864
  ref: s
2859
2865
  }, [
2860
- (l(!0), u(O, null, M(e.value, (c, p) => (l(), b(Mi, jt({ key: c }, c, {
2861
- onOrder: (f) => i(c.name),
2862
- order: n.value
2866
+ (c(!0), u(O, null, j(l.config, (f, w) => (c(), v(ji, Bt({ key: f }, f, {
2867
+ onOrder: (V) => a(f.name),
2868
+ onSelect: p[0] || (p[0] = (V) => e("select")),
2869
+ order: l.order
2863
2870
  }), null, 16, ["onOrder", "order"]))), 128)),
2864
2871
  d("div", {
2865
2872
  class: "test-block text_md",
@@ -2869,65 +2876,71 @@ const Mi = /* @__PURE__ */ m(Di, [["__scopeId", "data-v-7106cb6a"]]), Fi = /* @_
2869
2876
  ], 512));
2870
2877
  }
2871
2878
  });
2872
- const ji = /* @__PURE__ */ m(Fi, [["__scopeId", "data-v-1a4b03e9"]]), xi = 50, Ui = /* @__PURE__ */ $({
2879
+ const Ui = /* @__PURE__ */ g(xi, [["__scopeId", "data-v-ecab6d75"]]), Bi = 50, qi = /* @__PURE__ */ b({
2873
2880
  __name: "widget-list",
2874
2881
  props: {
2875
2882
  array: {},
2876
- wait: { type: Boolean }
2883
+ wait: { type: Boolean },
2884
+ config: { default: () => [] },
2885
+ selectedRows: { default: () => [] },
2886
+ order: { default: () => [] }
2877
2887
  },
2878
- emits: ["scrollEnd"],
2888
+ emits: ["scrollEnd", "update:selectedRows", "update:order", "update:config"],
2879
2889
  setup(t, { emit: e }) {
2880
- const n = t, s = Se("config"), r = Se("selectRows"), i = Se("order");
2881
- function a(p, f = !0) {
2882
- var h;
2883
- if (r.value)
2884
- if (!f)
2885
- r.value = [p];
2890
+ const n = t;
2891
+ function s(o, l = !0) {
2892
+ var p;
2893
+ if (n.selectedRows)
2894
+ if (!l)
2895
+ i([o]);
2886
2896
  else {
2887
- const w = r.value.indexOf(p);
2888
- w === -1 ? r.value.push(p) : (h = r.value) == null || h.splice(w, 1);
2897
+ const f = n.selectedRows.indexOf(o);
2898
+ f === -1 ? n.selectedRows.push(o) : (p = n.selectedRows) == null || p.splice(f, 1), i(n.selectedRows);
2889
2899
  }
2890
2900
  }
2891
- function o() {
2892
- var p;
2893
- if (((p = r.value) == null ? void 0 : p.length) !== n.array.length)
2894
- return r.value = n.array;
2895
- r.value = [];
2901
+ function r() {
2902
+ var o;
2903
+ if (((o = n.selectedRows) == null ? void 0 : o.length) !== n.array.length)
2904
+ return i([...n.array]);
2905
+ i([]);
2896
2906
  }
2897
- function c(p) {
2898
- if (!p)
2907
+ function i(o) {
2908
+ e("update:selectedRows", o);
2909
+ }
2910
+ function a(o) {
2911
+ if (!o)
2899
2912
  return;
2900
- const f = p.target;
2901
- f.scrollTop + f.clientHeight + xi > f.scrollHeight && e("scrollEnd");
2913
+ const l = o.target;
2914
+ l.scrollTop + l.clientHeight + Bi > l.scrollHeight && e("scrollEnd");
2902
2915
  }
2903
- return (p, f) => (l(), u("div", {
2916
+ return (o, l) => (c(), u("div", {
2904
2917
  class: "es-list-container",
2905
- onScrollPassive: c
2918
+ onScrollPassive: a
2906
2919
  }, [
2907
2920
  d("table", {
2908
- class: I(["widget-list", { "widget-list_load": p.wait }])
2921
+ class: I(["widget-list", { "widget-list_load": o.wait }])
2909
2922
  }, [
2910
2923
  d("thead", null, [
2911
- C(ji, {
2912
- onSelect: f[0] || (f[0] = (h) => o()),
2913
- config: s.value,
2914
- "onUpdate:config": f[1] || (f[1] = (h) => s.value = h),
2915
- order: i.value,
2916
- "onUpdate:order": f[2] || (f[2] = (h) => i.value = h)
2924
+ C(Ui, {
2925
+ onSelect: l[0] || (l[0] = (p) => r()),
2926
+ "onUpdate:order": l[1] || (l[1] = (p) => e("update:order", p)),
2927
+ "onUpdate:config": l[2] || (l[2] = (p) => e("update:config", p)),
2928
+ config: o.config,
2929
+ order: o.order
2917
2930
  }, null, 8, ["config", "order"])
2918
2931
  ]),
2919
2932
  d("tbody", {
2920
- class: I(["widget-list-body", { "widget-list-body_inactive": p.wait }])
2933
+ class: I(["widget-list-body", { "widget-list-body_inactive": o.wait }])
2921
2934
  }, [
2922
- (l(!0), u(O, null, M(p.array, (h, w) => {
2923
- var T;
2924
- return l(), b(Ri, {
2925
- key: w,
2935
+ (c(!0), u(O, null, j(o.array, (p, f) => {
2936
+ var w;
2937
+ return c(), v(Li, {
2938
+ key: f,
2926
2939
  class: "widget-list-row",
2927
- values: h,
2928
- config: s.value,
2929
- selected: (T = r.value) == null ? void 0 : T.includes(h),
2930
- onSelect: (F) => a(h, F)
2940
+ values: p,
2941
+ config: o.config,
2942
+ selected: (w = o.selectedRows) == null ? void 0 : w.includes(p),
2943
+ onSelect: (V) => s(p, V)
2931
2944
  }, null, 8, ["values", "config", "selected", "onSelect"]);
2932
2945
  }), 128))
2933
2946
  ], 2)
@@ -2935,46 +2948,46 @@ const ji = /* @__PURE__ */ m(Fi, [["__scopeId", "data-v-1a4b03e9"]]), xi = 50, U
2935
2948
  ], 32));
2936
2949
  }
2937
2950
  });
2938
- const Co = /* @__PURE__ */ m(Ui, [["__scopeId", "data-v-5526b1ce"]]), Bi = { class: "widget-section" }, qi = { class: "widget-section__header" }, Gi = { class: "widget-section-title" }, zi = { class: "widget-section__body" }, Hi = /* @__PURE__ */ $({
2951
+ const Aa = /* @__PURE__ */ g(qi, [["__scopeId", "data-v-eb609a21"]]), Gi = { class: "widget-section" }, zi = { class: "widget-section__header" }, Hi = { class: "widget-section-title" }, Ji = { class: "widget-section__body" }, Ki = /* @__PURE__ */ b({
2939
2952
  __name: "widget-section",
2940
2953
  props: {
2941
2954
  title: {}
2942
2955
  },
2943
2956
  setup(t) {
2944
- return (e, n) => (l(), u("div", Bi, [
2945
- d("div", qi, [
2946
- d("p", Gi, y(e.title), 1)
2947
- ]),
2957
+ return (e, n) => (c(), u("div", Gi, [
2948
2958
  d("div", zi, [
2949
- U(e.$slots, "default", {}, void 0, !0)
2959
+ d("p", Hi, m(e.title), 1)
2960
+ ]),
2961
+ d("div", Ji, [
2962
+ B(e.$slots, "default", {}, void 0, !0)
2950
2963
  ])
2951
2964
  ]));
2952
2965
  }
2953
2966
  });
2954
- const Io = /* @__PURE__ */ m(Hi, [["__scopeId", "data-v-07232553"]]);
2955
- const Ji = {
2967
+ const ka = /* @__PURE__ */ g(Ki, [["__scopeId", "data-v-07232553"]]);
2968
+ const Yi = {
2956
2969
  props: {
2957
2970
  config: Array
2958
2971
  },
2959
2972
  name: "WidgetTableHead"
2960
- }, Ki = { class: "widget-table__head" }, Yi = { class: "widget-table__head-title" };
2961
- function Xi(t, e, n, s, r, i) {
2962
- return l(), u("tr", Ki, [
2963
- (l(!0), u(O, null, M(n.config, (a, o) => (l(), u("th", {
2973
+ }, Xi = { class: "widget-table__head" }, Zi = { class: "widget-table__head-title" };
2974
+ function Qi(t, e, n, s, r, i) {
2975
+ return c(), u("tr", Xi, [
2976
+ (c(!0), u(O, null, j(n.config, (a, o) => (c(), u("th", {
2964
2977
  class: "widget-table__head-cell",
2965
2978
  key: o
2966
2979
  }, [
2967
- d("p", Yi, y(a.title), 1)
2980
+ d("p", Zi, m(a.title), 1)
2968
2981
  ]))), 128))
2969
2982
  ]);
2970
2983
  }
2971
- const Zi = /* @__PURE__ */ m(Ji, [["render", Xi], ["__scopeId", "data-v-cae93640"]]);
2972
- function Qi(t, e, n) {
2973
- const s = t.map((r) => ea(r, e, n));
2974
- return N("tr", { class: "widget-table__row widget-table-row" }, s);
2984
+ const eo = /* @__PURE__ */ g(Yi, [["render", Qi], ["__scopeId", "data-v-cae93640"]]);
2985
+ function to(t, e, n) {
2986
+ const s = t.map((r) => no(r, e, n));
2987
+ return k("tr", { class: "widget-table__row widget-table-row" }, s);
2975
2988
  }
2976
- function ea(t, e, n) {
2977
- const { name: s, value: r } = Z.getCellInfo(t, e), i = {
2989
+ function no(t, e, n) {
2990
+ const { name: s, value: r } = Q.getCellInfo(t, e), i = {
2978
2991
  onClick: [],
2979
2992
  class: ["widget-table__cell widget-table-cell"]
2980
2993
  };
@@ -2984,7 +2997,7 @@ function ea(t, e, n) {
2984
2997
  function o(f) {
2985
2998
  Array.isArray(f) ? i.class.push(...f) : i.class.push(f);
2986
2999
  }
2987
- const c = [], p = [];
3000
+ const l = [], p = [];
2988
3001
  if (t.type)
2989
3002
  switch (o(`widget-table-cell_${t.type}`), t.type) {
2990
3003
  case "edit": {
@@ -2996,7 +3009,7 @@ function ea(t, e, n) {
2996
3009
  break;
2997
3010
  }
2998
3011
  case "select-multi": {
2999
- a(n.select.bind(n, !0)), o("widget-table-cell_use"), o("widget-table-cell_select"), p.push(N("div", { class: {
3012
+ a(n.select.bind(n, !0)), o("widget-table-cell_use"), o("widget-table-cell_select"), p.push(k("div", { class: {
3000
3013
  "table-cell-toggle": !0,
3001
3014
  // @ts-ignore
3002
3015
  "table-cell-toggle_active": n.selected.value
@@ -3004,7 +3017,7 @@ function ea(t, e, n) {
3004
3017
  break;
3005
3018
  }
3006
3019
  case "select": {
3007
- a(n.select.bind(n, !1)), o("widget-table-cell_use"), o("widget-table-cell_select"), p.push(N("div", { class: {
3020
+ a(n.select.bind(n, !1)), o("widget-table-cell_use"), o("widget-table-cell_select"), p.push(k("div", { class: {
3008
3021
  "table-cell-toggle": !0,
3009
3022
  // @ts-ignore
3010
3023
  "table-cell-toggle_active": n.selected.value
@@ -3012,24 +3025,24 @@ function ea(t, e, n) {
3012
3025
  break;
3013
3026
  }
3014
3027
  }
3015
- return t.onClick && a(t.onClick), t.link && (p.push(N(Gt, {
3028
+ return t.onClick && a(t.onClick), t.link && (p.push(k(Jt, {
3016
3029
  to: t.link(r, e)
3017
- })), o("list-cell-link")), t.href && (p.push(N("a", {
3030
+ })), o("list-cell-link")), t.href && (p.push(k("a", {
3018
3031
  href: t.href(r, e),
3019
3032
  target: "_blank"
3020
- })), o("list-cell-link")), r && p.push(N("p", {}, r)), t.icon && p.push(N(R, { name: t.icon })), t.class && o(t.class), c.push(N("td", i, p)), c;
3033
+ })), o("list-cell-link")), r && p.push(k("p", {}, r)), t.icon && p.push(k(R, { name: t.icon })), t.class && o(t.class), l.push(k("td", i, p)), l;
3021
3034
  }
3022
- const ta = {
3035
+ const so = {
3023
3036
  props: {
3024
3037
  values: Object,
3025
3038
  config: Object,
3026
- selected: zt
3039
+ selected: Kt
3027
3040
  },
3028
3041
  emits: ["set", "remove", "select"],
3029
3042
  setup(t, e) {
3030
3043
  const { emit: n } = e, s = {
3031
3044
  activate() {
3032
- n("set", t.values[W]);
3045
+ n("set", t.values[M]);
3033
3046
  },
3034
3047
  deactivate() {
3035
3048
  n("set", null);
@@ -3037,14 +3050,14 @@ const ta = {
3037
3050
  removeRow() {
3038
3051
  n("remove");
3039
3052
  },
3040
- selected: V(() => t.selected),
3053
+ selected: L(() => t.selected),
3041
3054
  select(r = !1) {
3042
3055
  n("select", r);
3043
3056
  }
3044
3057
  };
3045
- return () => Qi(t.config, t.values, s);
3058
+ return () => to(t.config, t.values, s);
3046
3059
  }
3047
- }, na = { class: "widget-table-form" }, sa = ["colspan"], Rt = /* @__PURE__ */ $({
3060
+ }, ro = { class: "widget-table-form" }, io = ["colspan"], Lt = /* @__PURE__ */ b({
3048
3061
  __name: "widget-table-form",
3049
3062
  props: {
3050
3063
  rowLength: {},
@@ -3053,29 +3066,29 @@ const ta = {
3053
3066
  controller: {}
3054
3067
  },
3055
3068
  setup(t) {
3056
- const e = t, n = V(() => {
3069
+ const e = t, n = L(() => {
3057
3070
  var a;
3058
- return !((a = e.values) != null && a[W]);
3059
- }), s = dt(et.PROVIDE_NAME);
3071
+ return !((a = e.values) != null && a[M]);
3072
+ }), s = ft(tt.PROVIDE_NAME);
3060
3073
  function r(a) {
3061
- s && (n.value ? s.create(a) : s.edit(e.values[W], a));
3074
+ s && (n.value ? s.create(a) : s.edit(e.values[M], a));
3062
3075
  }
3063
3076
  function i() {
3064
3077
  e.controller.deactivate();
3065
3078
  }
3066
- return (a, o) => (l(), u("tr", na, [
3079
+ return (a, o) => (c(), u("tr", ro, [
3067
3080
  d("td", { colspan: a.rowLength }, [
3068
- (l(), b(Ft(a.component), {
3081
+ (c(), v(Ut(a.component), {
3069
3082
  values: a.values,
3070
3083
  "table-controller": a.controller,
3071
3084
  onSave: r,
3072
3085
  onClose: i,
3073
3086
  new: n.value
3074
3087
  }, null, 40, ["values", "table-controller", "new"]))
3075
- ], 8, sa)
3088
+ ], 8, io)
3076
3089
  ]));
3077
3090
  }
3078
- }), Ao = /* @__PURE__ */ $({
3091
+ }), Na = /* @__PURE__ */ b({
3079
3092
  __name: "widget-table",
3080
3093
  props: {
3081
3094
  array: {},
@@ -3087,52 +3100,52 @@ const ta = {
3087
3100
  emits: ["update:activeRow", "update:selectRows"],
3088
3101
  setup(t, { emit: e }) {
3089
3102
  const n = t;
3090
- dt(et.PROVIDE_NAME);
3091
- const s = xt(), r = V(() => {
3103
+ ft(tt.PROVIDE_NAME);
3104
+ const s = qt(), r = L(() => {
3092
3105
  var o;
3093
3106
  return (o = s == null ? void 0 : s.default) == null ? void 0 : o.call(s)[0];
3094
3107
  });
3095
- function i(o, c = !0) {
3096
- return n.selectRows ? c ? n.selectRows.indexOf(o) === -1 ? e("update:selectRows", [...n.selectRows, o]) : e("update:selectRows", n.selectRows.filter((f) => f !== o)) : e("update:selectRows", [o]) : void 0;
3108
+ function i(o, l = !0) {
3109
+ return n.selectRows ? l ? n.selectRows.indexOf(o) === -1 ? e("update:selectRows", [...n.selectRows, o]) : e("update:selectRows", n.selectRows.filter((f) => f !== o)) : e("update:selectRows", [o]) : void 0;
3097
3110
  }
3098
- const a = ri((o) => e("update:activeRow", o));
3099
- return (o, c) => (l(), u("table", {
3111
+ const a = oi((o) => e("update:activeRow", o));
3112
+ return (o, l) => (c(), u("table", {
3100
3113
  class: I(["widget-table", { "widget-table_mini": o.mini }])
3101
3114
  }, [
3102
- C(Zi, { config: o.config }, null, 8, ["config"]),
3115
+ C(eo, { config: o.config }, null, 8, ["config"]),
3103
3116
  d("tbody", null, [
3104
- (l(!0), u(O, null, M(o.array, (p, f) => {
3105
- var h;
3106
- return l(), u(O, { key: f }, [
3107
- C(ta, {
3117
+ (c(!0), u(O, null, j(o.array, (p, f) => {
3118
+ var w;
3119
+ return c(), u(O, { key: f }, [
3120
+ C(so, {
3108
3121
  config: o.config,
3109
3122
  values: p,
3110
- selected: (h = o.selectRows) == null ? void 0 : h.includes(p[P(W)]),
3111
- onSet: c[0] || (c[0] = (w) => e("update:activeRow", w)),
3112
- onSelect: (w) => i(p[P(W)], w)
3123
+ selected: (w = o.selectRows) == null ? void 0 : w.includes(p[P(M)]),
3124
+ onSet: l[0] || (l[0] = (V) => e("update:activeRow", V)),
3125
+ onSelect: (V) => i(p[P(M)], V)
3113
3126
  }, null, 8, ["config", "values", "selected", "onSelect"]),
3114
- o.activeRow === p[P(W)] ? (l(), b(Rt, {
3127
+ o.activeRow === p[P(M)] ? (c(), v(Lt, {
3115
3128
  key: 0,
3116
3129
  component: r.value,
3117
- controller: P(a)(p[P(W)]),
3130
+ controller: P(a)(p[P(M)]),
3118
3131
  "row-length": o.config.length,
3119
3132
  values: p
3120
- }, null, 8, ["component", "controller", "row-length", "values"])) : _("", !0)
3133
+ }, null, 8, ["component", "controller", "row-length", "values"])) : h("", !0)
3121
3134
  ], 64);
3122
3135
  }), 128)),
3123
- o.activeRow === 0 ? (l(), b(Rt, {
3136
+ o.activeRow === 0 ? (c(), v(Lt, {
3124
3137
  key: 0,
3125
3138
  component: r.value,
3126
3139
  controller: P(a)(0),
3127
3140
  "row-length": o.config.length
3128
- }, null, 8, ["component", "controller", "row-length"])) : _("", !0)
3141
+ }, null, 8, ["component", "controller", "row-length"])) : h("", !0)
3129
3142
  ])
3130
3143
  ], 2));
3131
3144
  }
3132
- }), ra = { class: "widget-form-info flex" }, ia = { class: "form-titles" }, aa = { class: "form-title margin-0" }, oa = { class: "form-info text_size_md margin-0" }, la = {
3145
+ }), oo = { class: "widget-form-info flex" }, ao = { class: "form-titles" }, lo = { class: "form-title margin-0" }, co = { class: "form-info text_size_md margin-0" }, uo = {
3133
3146
  key: 0,
3134
3147
  class: "form-container-label"
3135
- }, ca = { class: "form-label__title text_size_sm" }, ua = /* @__PURE__ */ $({
3148
+ }, po = { class: "form-label__title text_size_sm" }, fo = /* @__PURE__ */ b({
3136
3149
  __name: "WidgetFormInfo",
3137
3150
  props: {
3138
3151
  title: {},
@@ -3140,27 +3153,27 @@ const ta = {
3140
3153
  label: {}
3141
3154
  },
3142
3155
  setup(t) {
3143
- return (e, n) => (l(), u("div", ra, [
3144
- d("div", ia, [
3145
- d("p", aa, y(e.title), 1),
3146
- d("p", oa, y(e.info), 1)
3156
+ return (e, n) => (c(), u("div", oo, [
3157
+ d("div", ao, [
3158
+ d("p", lo, m(e.title), 1),
3159
+ d("p", co, m(e.info), 1)
3147
3160
  ]),
3148
- e.label ? (l(), u("div", la, [
3161
+ e.label ? (c(), u("div", uo, [
3149
3162
  d("div", {
3150
3163
  class: I(["form-label", `form-label_${e.label.type}`])
3151
3164
  }, [
3152
- e.label.icon ? (l(), b(R, {
3165
+ e.label.icon ? (c(), v(R, {
3153
3166
  key: 0,
3154
3167
  class: "form-label__icon",
3155
3168
  name: e.label.icon
3156
- }, null, 8, ["name"])) : _("", !0),
3157
- d("p", ca, y(e.label.title), 1)
3169
+ }, null, 8, ["name"])) : h("", !0),
3170
+ d("p", po, m(e.label.title), 1)
3158
3171
  ], 2)
3159
- ])) : _("", !0)
3172
+ ])) : h("", !0)
3160
3173
  ]));
3161
3174
  }
3162
3175
  });
3163
- const da = /* @__PURE__ */ m(ua, [["__scopeId", "data-v-6ea1062c"]]), pa = { class: "wrap__widget-form" }, fa = { class: "widget-form" }, ha = { class: "widget-form__head" }, _a = { class: "head-image" }, ga = { key: 1 }, ma = { class: "widget-form__body" }, ya = /* @__PURE__ */ $({
3176
+ const ho = /* @__PURE__ */ g(fo, [["__scopeId", "data-v-6ea1062c"]]), _o = { class: "wrap__widget-form" }, go = { class: "widget-form" }, mo = { class: "widget-form__head" }, yo = { class: "head-image" }, vo = { key: 1 }, wo = { class: "widget-form__body" }, bo = /* @__PURE__ */ b({
3164
3177
  __name: "WidgetForm",
3165
3178
  props: {
3166
3179
  title: {},
@@ -3172,40 +3185,40 @@ const da = /* @__PURE__ */ m(ua, [["__scopeId", "data-v-6ea1062c"]]), pa = { cla
3172
3185
  wait: { type: Boolean }
3173
3186
  },
3174
3187
  setup(t) {
3175
- return (e, n) => (l(), u("div", pa, [
3176
- d("div", fa, [
3177
- d("div", ha, [
3178
- d("div", _a, [
3179
- e.wait ? (l(), b(he, {
3188
+ return (e, n) => (c(), u("div", _o, [
3189
+ d("div", go, [
3190
+ d("div", mo, [
3191
+ d("div", yo, [
3192
+ e.wait ? (c(), v(_e, {
3180
3193
  key: 0,
3181
3194
  color: "#3949AB"
3182
- })) : (l(), u("div", ga, [
3183
- e.icon ? (l(), b(R, {
3195
+ })) : (c(), u("div", vo, [
3196
+ e.icon ? (c(), v(R, {
3184
3197
  key: 0,
3185
3198
  class: "form-image",
3186
3199
  name: e.icon
3187
- }, null, 8, ["name"])) : _("", !0)
3200
+ }, null, 8, ["name"])) : h("", !0)
3188
3201
  ]))
3189
3202
  ]),
3190
- C(da, {
3203
+ C(ho, {
3191
3204
  title: e.title,
3192
3205
  info: e.info,
3193
3206
  label: e.label
3194
3207
  }, null, 8, ["title", "info", "label"]),
3195
- e.button && e.button.length ? (l(), b(Ht, {
3208
+ e.button && e.button.length ? (c(), v(Yt, {
3196
3209
  key: 0,
3197
3210
  class: "widget-form__button",
3198
3211
  array: e.button
3199
- }, null, 8, ["array"])) : _("", !0)
3212
+ }, null, 8, ["array"])) : h("", !0)
3200
3213
  ]),
3201
- d("div", ma, [
3202
- U(e.$slots, "default", {}, void 0, !0)
3214
+ d("div", wo, [
3215
+ B(e.$slots, "default", {}, void 0, !0)
3203
3216
  ])
3204
3217
  ])
3205
3218
  ]));
3206
3219
  }
3207
3220
  });
3208
- const ko = /* @__PURE__ */ m(ya, [["__scopeId", "data-v-3d88d93f"]]), va = { class: "validation-item-header" }, wa = { class: "validation-item__title text_bold margin-0" }, ba = { class: "validation-item-content" }, $a = { class: "text_bold text_md margin-0" }, Ea = { class: "text_md margin-0" }, Ta = /* @__PURE__ */ $({
3221
+ const Pa = /* @__PURE__ */ g(bo, [["__scopeId", "data-v-3d88d93f"]]), $o = { class: "validation-item-header" }, Eo = { class: "validation-item__title text_bold margin-0" }, To = { class: "validation-item-content" }, So = { class: "text_bold text_md margin-0" }, Co = { class: "text_md margin-0" }, Io = /* @__PURE__ */ b({
3209
3222
  __name: "modal-validation-item",
3210
3223
  props: {
3211
3224
  message: {},
@@ -3215,45 +3228,45 @@ const ko = /* @__PURE__ */ m(ya, [["__scopeId", "data-v-3d88d93f"]]), va = { cla
3215
3228
  name: {}
3216
3229
  },
3217
3230
  setup(t) {
3218
- return (e, n) => (l(), u("div", {
3231
+ return (e, n) => (c(), u("div", {
3219
3232
  class: I(["validation-item", `validation-item_${e.statusName.toLowerCase()}`])
3220
3233
  }, [
3221
- d("div", va, [
3222
- d("p", wa, y(e.statusName), 1)
3234
+ d("div", $o, [
3235
+ d("p", Eo, m(e.statusName), 1)
3223
3236
  ]),
3224
- d("div", ba, [
3225
- d("p", $a, y(e.title), 1),
3226
- d("p", Ea, y(e.message), 1)
3237
+ d("div", To, [
3238
+ d("p", So, m(e.title), 1),
3239
+ d("p", Co, m(e.message), 1)
3227
3240
  ])
3228
3241
  ], 2));
3229
3242
  }
3230
3243
  });
3231
- const Sa = /* @__PURE__ */ m(Ta, [["__scopeId", "data-v-e6138c02"]]), Ca = { class: "modal-wrap" }, Ia = { class: "modal-wrap-head" }, Aa = { class: "modal-head__title margin-0" }, ka = { class: "modal-wrap-body" }, Na = /* @__PURE__ */ $({
3244
+ const Ao = /* @__PURE__ */ g(Io, [["__scopeId", "data-v-e6138c02"]]), ko = { class: "modal-wrap" }, No = { class: "modal-wrap-head" }, Po = { class: "modal-head__title margin-0" }, Oo = { class: "modal-wrap-body" }, Ro = /* @__PURE__ */ b({
3232
3245
  __name: "modal-wrap",
3233
3246
  props: {
3234
3247
  title: {}
3235
3248
  },
3236
3249
  setup(t) {
3237
- return (e, n) => (l(), u("div", Ca, [
3238
- d("div", Ia, [
3239
- d("p", Aa, y(e.title), 1)
3250
+ return (e, n) => (c(), u("div", ko, [
3251
+ d("div", No, [
3252
+ d("p", Po, m(e.title), 1)
3240
3253
  ]),
3241
- d("div", ka, [
3242
- U(e.$slots, "default", {}, void 0, !0)
3254
+ d("div", Oo, [
3255
+ B(e.$slots, "default", {}, void 0, !0)
3243
3256
  ])
3244
3257
  ]));
3245
3258
  }
3246
3259
  });
3247
- const Pa = /* @__PURE__ */ m(Na, [["__scopeId", "data-v-119165b9"]]), Oa = { class: "modal-validation-body" }, Ra = /* @__PURE__ */ $({
3260
+ const Vo = /* @__PURE__ */ g(Ro, [["__scopeId", "data-v-119165b9"]]), Lo = { class: "modal-validation-body" }, Wo = /* @__PURE__ */ b({
3248
3261
  __name: "modal-validation",
3249
3262
  props: {
3250
3263
  array: {}
3251
3264
  },
3252
3265
  setup(t) {
3253
- return (e, n) => (l(), b(Pa, { title: "Validation results" }, {
3254
- default: fe(() => [
3255
- d("div", Oa, [
3256
- (l(!0), u(O, null, M(e.array, (s, r) => (l(), b(Sa, {
3266
+ return (e, n) => (c(), v(Vo, { title: "Validation results" }, {
3267
+ default: he(() => [
3268
+ d("div", Lo, [
3269
+ (c(!0), u(O, null, j(e.array, (s, r) => (c(), v(Ao, {
3257
3270
  key: r,
3258
3271
  message: s.message,
3259
3272
  name: s.name,
@@ -3267,7 +3280,7 @@ const Pa = /* @__PURE__ */ m(Na, [["__scopeId", "data-v-119165b9"]]), Oa = { cla
3267
3280
  }));
3268
3281
  }
3269
3282
  });
3270
- const No = /* @__PURE__ */ m(Ra, [["__scopeId", "data-v-a39cfe2f"]]), Va = ["alt", "src"], Po = /* @__PURE__ */ $({
3283
+ const Oa = /* @__PURE__ */ g(Wo, [["__scopeId", "data-v-a39cfe2f"]]), Do = ["alt", "src"], Ra = /* @__PURE__ */ b({
3271
3284
  __name: "widget-image",
3272
3285
  props: {
3273
3286
  src: {},
@@ -3275,19 +3288,19 @@ const No = /* @__PURE__ */ m(Ra, [["__scopeId", "data-v-a39cfe2f"]]), Va = ["alt
3275
3288
  default: {}
3276
3289
  },
3277
3290
  setup(t) {
3278
- const e = t, n = q();
3279
- return Ke(() => {
3291
+ const e = t, n = G();
3292
+ return Ye(() => {
3280
3293
  n.value && (n.value.src = e.src), n.value.onerror = function() {
3281
3294
  e.default && (n.value.src = e.default);
3282
3295
  };
3283
- }), (s, r) => (l(), u("img", {
3296
+ }), (s, r) => (c(), u("img", {
3284
3297
  alt: s.alt,
3285
3298
  ref_key: "refImage",
3286
3299
  ref: n,
3287
3300
  src: s.src || s.$props.default
3288
- }, null, 8, Va));
3301
+ }, null, 8, Do));
3289
3302
  }
3290
- }), La = /* @__PURE__ */ $({
3303
+ }), Mo = /* @__PURE__ */ b({
3291
3304
  __name: "widget-input-check",
3292
3305
  props: {
3293
3306
  modelValue: { type: Boolean }
@@ -3298,21 +3311,21 @@ const No = /* @__PURE__ */ m(Ra, [["__scopeId", "data-v-a39cfe2f"]]), Va = ["alt
3298
3311
  function s() {
3299
3312
  e("update:modelValue", !n.modelValue);
3300
3313
  }
3301
- return (r, i) => (l(), u("div", {
3314
+ return (r, i) => (c(), u("div", {
3302
3315
  class: I(["widget-input-check", { "widget-input-check_active": r.modelValue }]),
3303
3316
  onClick: s
3304
3317
  }, [
3305
- r.modelValue ? (l(), b(R, {
3318
+ r.modelValue ? (c(), v(R, {
3306
3319
  key: 0,
3307
3320
  name: "check"
3308
- })) : _("", !0)
3321
+ })) : h("", !0)
3309
3322
  ], 2));
3310
3323
  }
3311
3324
  });
3312
- const Wa = /* @__PURE__ */ m(La, [["__scopeId", "data-v-f4a3dc6c"]]), Da = { class: "widget-card" }, Ma = { class: "widget-card-toggle" }, Fa = { class: "widget-card-wrap" }, ja = { class: "widget-card-content" }, xa = {
3325
+ const Fo = /* @__PURE__ */ g(Mo, [["__scopeId", "data-v-f4a3dc6c"]]), jo = { class: "widget-card" }, xo = { class: "widget-card-toggle" }, Uo = { class: "widget-card-wrap" }, Bo = { class: "widget-card-content" }, qo = {
3313
3326
  key: 0,
3314
3327
  class: "widget-card-title"
3315
- }, Ua = /* @__PURE__ */ $({
3328
+ }, Go = /* @__PURE__ */ b({
3316
3329
  __name: "widget-card",
3317
3330
  props: {
3318
3331
  title: {}
@@ -3324,14 +3337,14 @@ const Wa = /* @__PURE__ */ m(La, [["__scopeId", "data-v-f4a3dc6c"]]), Da = { cla
3324
3337
  });
3325
3338
  return e({
3326
3339
  state: n
3327
- }), (s, r) => (l(), u("div", Da, [
3328
- d("div", Ma, [
3329
- C(Wa, {
3340
+ }), (s, r) => (c(), u("div", jo, [
3341
+ d("div", xo, [
3342
+ C(Fo, {
3330
3343
  modelValue: n.selected,
3331
3344
  "onUpdate:modelValue": r[0] || (r[0] = (i) => n.selected = i)
3332
3345
  }, null, 8, ["modelValue"])
3333
3346
  ]),
3334
- d("div", Fa, [
3347
+ d("div", Uo, [
3335
3348
  d("div", {
3336
3349
  class: "widget-card-arrow",
3337
3350
  onClick: r[1] || (r[1] = (i) => n.hidden = !n.hidden)
@@ -3341,26 +3354,26 @@ const Wa = /* @__PURE__ */ m(La, [["__scopeId", "data-v-f4a3dc6c"]]), Da = { cla
3341
3354
  class: I(["card-icon-arrow", { "card-icon-arrow_active": !n.hidden }])
3342
3355
  }, null, 8, ["class"])
3343
3356
  ]),
3344
- d("div", ja, [
3345
- s.title ? (l(), u("p", xa, y(s.title), 1)) : _("", !0),
3346
- U(s.$slots, "main", {}, void 0, !0),
3347
- n.hidden ? _("", !0) : U(s.$slots, "sub", { key: 1 }, void 0, !0)
3357
+ d("div", Bo, [
3358
+ s.title ? (c(), u("p", qo, m(s.title), 1)) : h("", !0),
3359
+ B(s.$slots, "main", {}, void 0, !0),
3360
+ n.hidden ? h("", !0) : B(s.$slots, "sub", { key: 1 }, void 0, !0)
3348
3361
  ])
3349
3362
  ])
3350
3363
  ]));
3351
3364
  }
3352
3365
  });
3353
- const Oo = /* @__PURE__ */ m(Ua, [["__scopeId", "data-v-bca33c5b"]]);
3354
- class j {
3366
+ const Va = /* @__PURE__ */ g(Go, [["__scopeId", "data-v-bca33c5b"]]);
3367
+ class x {
3355
3368
  static parseError(e) {
3356
3369
  let n = e.errors ? Object.values(e.errors).map((s) => s[0]) : null;
3357
- throw B.AuthServiceError(e.title, n);
3370
+ throw q.AuthServiceError(e.title, n);
3358
3371
  }
3359
3372
  /**
3360
3373
  * @deprecated
3361
3374
  * */
3362
3375
  static login(e) {
3363
- return g(te.identityServerURL + "/api/Authenticate/Login", {
3376
+ return _(se.identityServerURL + "/api/Authenticate/Login", {
3364
3377
  method: "POST",
3365
3378
  headers: {
3366
3379
  "Content-Type": "application/json"
@@ -3368,86 +3381,86 @@ class j {
3368
3381
  credentials: "include",
3369
3382
  body: JSON.stringify({
3370
3383
  ...e,
3371
- AppName: te.applicationName
3384
+ AppName: se.applicationName
3372
3385
  })
3373
- }).catch(j.parseError);
3386
+ }).catch(x.parseError);
3374
3387
  }
3375
3388
  /**
3376
3389
  * @deprecated
3377
3390
  * */
3378
3391
  static registration(e) {
3379
- return e.AppName = te.applicationName, g(te.identityServerURL + "/api/Authenticate/Registration", {
3392
+ return e.AppName = se.applicationName, _(se.identityServerURL + "/api/Authenticate/Registration", {
3380
3393
  method: "POST",
3381
3394
  headers: {
3382
3395
  "Content-Type": "application/json"
3383
3396
  },
3384
3397
  credentials: "include",
3385
3398
  body: JSON.stringify(e)
3386
- }).catch(j.parseError);
3399
+ }).catch(x.parseError);
3387
3400
  }
3388
3401
  static parseProcessAnswer(e) {
3389
3402
  if (e.statusCode > 4)
3390
- throw B.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
3403
+ throw q.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
3391
3404
  return e;
3392
3405
  }
3393
3406
  static startRegistrationProcess(e) {
3394
- return j.requestStepRegistrationProcess("StartRegistration", e);
3407
+ return x.requestStepRegistrationProcess("StartRegistration", e);
3395
3408
  }
3396
3409
  static confirmPhoneRegistrationProcess(e) {
3397
- return j.requestStepRegistrationProcess("ConfirmPhoneNumberByRegistration", e);
3410
+ return x.requestStepRegistrationProcess("ConfirmPhoneNumberByRegistration", e);
3398
3411
  }
3399
3412
  static confirmEmailRegistrationProcess(e) {
3400
- return j.requestStepRegistrationProcess("ConfirmEmailByRegistration", e);
3413
+ return x.requestStepRegistrationProcess("ConfirmEmailByRegistration", e);
3401
3414
  }
3402
3415
  static finishEmailRegistrationProcess(e) {
3403
- return j.requestStepRegistrationProcess("FinishRegistration", e);
3416
+ return x.requestStepRegistrationProcess("FinishRegistration", e);
3404
3417
  }
3405
3418
  /**
3406
3419
  * @description Steps of registration process are the same. Current method provide one requestInterface for all
3407
3420
  * steps.
3408
3421
  * */
3409
3422
  static requestStepRegistrationProcess(e, n) {
3410
- return g(`${te.identityServerURL}/api/Authenticate/${e}`, {
3423
+ return _(`${se.identityServerURL}/api/Authenticate/${e}`, {
3411
3424
  method: "POST",
3412
3425
  headers: {
3413
3426
  "Content-Type": "application/json"
3414
3427
  },
3415
3428
  credentials: "include",
3416
3429
  body: JSON.stringify(n)
3417
- }).catch(j.parseError);
3430
+ }).catch(x.parseError);
3418
3431
  }
3419
3432
  static startLoginProcess(e) {
3420
- return j.requestStepLoginProcess("StartLogin", e);
3433
+ return x.requestStepLoginProcess("StartLogin", e);
3421
3434
  }
3422
3435
  static loginWithPassword(e) {
3423
- return j.requestStepLoginProcess("LoginWithPassword", e);
3436
+ return x.requestStepLoginProcess("LoginWithPassword", e);
3424
3437
  }
3425
3438
  static loginWithOtpCode(e) {
3426
- return j.requestStepLoginProcess("LoginWithOtpCode", e);
3439
+ return x.requestStepLoginProcess("LoginWithOtpCode", e);
3427
3440
  }
3428
3441
  /**
3429
3442
  * @description Method for step-to-step login process
3430
3443
  * @return {ILoginAnswer} answer
3431
3444
  * */
3432
3445
  static requestStepLoginProcess(e, n) {
3433
- return g(`${te.identityServerURL}/api/Authenticate/${e}`, {
3446
+ return _(`${se.identityServerURL}/api/Authenticate/${e}`, {
3434
3447
  method: "POST",
3435
3448
  headers: {
3436
3449
  "Content-Type": "application/json"
3437
3450
  },
3438
3451
  credentials: "include",
3439
3452
  body: JSON.stringify(n)
3440
- }).catch(j.parseError).then(j.parseLoginProcessAnswer);
3453
+ }).catch(x.parseError).then(x.parseLoginProcessAnswer);
3441
3454
  }
3442
3455
  static parseLoginProcessAnswer(e) {
3443
3456
  if (e.statusCode > 3)
3444
- throw B.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
3457
+ throw q.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
3445
3458
  return e;
3446
3459
  }
3447
3460
  }
3448
- const un = class Ee {
3461
+ const fn = class Te {
3449
3462
  static async create(e) {
3450
- return g(Ee.url, {
3463
+ return _(Te.url, {
3451
3464
  method: "post",
3452
3465
  body: JSON.stringify(e),
3453
3466
  headers: {
@@ -3464,7 +3477,7 @@ const un = class Ee {
3464
3477
  entityName: e.entity.name,
3465
3478
  entityCatalogId: e.entity.catalogId
3466
3479
  });
3467
- return g(Ee.url + "?" + n.toString(), {
3480
+ return _(Te.url + "?" + n.toString(), {
3468
3481
  method: "get"
3469
3482
  });
3470
3483
  }
@@ -3472,12 +3485,12 @@ const un = class Ee {
3472
3485
  * @description Получение списка сообщений по Talk Id.
3473
3486
  */
3474
3487
  static async readMessages(e) {
3475
- return g(`${Ee.url}/${e}/messages`, {
3488
+ return _(`${Te.url}/${e}/messages`, {
3476
3489
  method: "get"
3477
3490
  });
3478
3491
  }
3479
3492
  static async createMessage(e) {
3480
- return g(`${Ee.url}/${e.talkId}/messages`, {
3493
+ return _(`${Te.url}/${e.talkId}/messages`, {
3481
3494
  method: "post",
3482
3495
  body: JSON.stringify({
3483
3496
  text: e.text
@@ -3488,11 +3501,11 @@ const un = class Ee {
3488
3501
  });
3489
3502
  }
3490
3503
  };
3491
- un.url = "/close-api/communications";
3492
- let qe = un;
3493
- class Ro {
3504
+ fn.url = "/close-api/communications";
3505
+ let Ge = fn;
3506
+ class La {
3494
3507
  static async getDefaultView(e) {
3495
- return g("/close-api/views/" + e, {
3508
+ return _("/close-api/views/" + e, {
3496
3509
  method: "GET",
3497
3510
  headers: {
3498
3511
  "Content-Type": "application/json"
@@ -3500,15 +3513,15 @@ class Ro {
3500
3513
  });
3501
3514
  }
3502
3515
  }
3503
- function Vt(t) {
3516
+ function Wt(t) {
3504
3517
  return {
3505
3518
  ...t,
3506
3519
  createdEntities: t.createdEntites
3507
3520
  };
3508
3521
  }
3509
- const dn = class Ge {
3522
+ const hn = class ze {
3510
3523
  static async getStartConfig(e, n) {
3511
- return g([Ge.url, e, n].join("/"), {
3524
+ return _([ze.url, e, n].join("/"), {
3512
3525
  method: "GET",
3513
3526
  headers: {
3514
3527
  "Content-Type": "application/json"
@@ -3516,15 +3529,15 @@ const dn = class Ge {
3516
3529
  });
3517
3530
  }
3518
3531
  static async startProcess(e, n) {
3519
- return g([Ge.url, e, n].join("/"), {
3532
+ return _([ze.url, e, n].join("/"), {
3520
3533
  method: "POST",
3521
3534
  headers: {
3522
3535
  "Content-Type": "application/json"
3523
3536
  }
3524
- }).then(Vt);
3537
+ }).then(Wt);
3525
3538
  }
3526
3539
  static async runStep(e, n, s, r, i) {
3527
- return g([Ge.url, e, n].join("/"), {
3540
+ return _([ze.url, e, n].join("/"), {
3528
3541
  method: "PUT",
3529
3542
  headers: {
3530
3543
  "Content-Type": "application/json"
@@ -3534,12 +3547,12 @@ const dn = class Ge {
3534
3547
  token: r,
3535
3548
  values: i
3536
3549
  })
3537
- }).then(Vt);
3550
+ }).then(Wt);
3538
3551
  }
3539
3552
  };
3540
- dn.url = "/close-api/views/process-wizard";
3541
- let at = dn;
3542
- class pn {
3553
+ hn.url = "/close-api/views/process-wizard";
3554
+ let lt = hn;
3555
+ class _n {
3543
3556
  static get url() {
3544
3557
  return "/close-api/metadata";
3545
3558
  }
@@ -3552,12 +3565,12 @@ class pn {
3552
3565
  }
3553
3566
  static getById(e, n, s = []) {
3554
3567
  const r = new URLSearchParams();
3555
- return He(r, s), n && r.append("id", n), g([this.url, e].join("/") + `?${r.toString()}`);
3568
+ return Je(r, s), n && r.append("id", n), _([this.url, e].join("/") + `?${r.toString()}`);
3556
3569
  }
3557
3570
  }
3558
- class Vo {
3571
+ class Wa {
3559
3572
  static invite(e, n, s) {
3560
- return g("/close-api/accounts/invitePerson", {
3573
+ return _("/close-api/accounts/invitePerson", {
3561
3574
  method: "POST",
3562
3575
  headers: {
3563
3576
  "Content-Type": "application/json"
@@ -3570,7 +3583,7 @@ class Vo {
3570
3583
  });
3571
3584
  }
3572
3585
  static accept(e, n) {
3573
- return g("/close-api/accounts/markInvite", {
3586
+ return _("/close-api/accounts/markInvite", {
3574
3587
  method: "POST",
3575
3588
  headers: {
3576
3589
  "Content-Type": "application/json"
@@ -3583,7 +3596,7 @@ class Vo {
3583
3596
  });
3584
3597
  }
3585
3598
  static decline(e, n) {
3586
- return g("/close-api/accounts/markInvite", {
3599
+ return _("/close-api/accounts/markInvite", {
3587
3600
  method: "POST",
3588
3601
  headers: {
3589
3602
  "Content-Type": "application/json"
@@ -3596,20 +3609,20 @@ class Vo {
3596
3609
  });
3597
3610
  }
3598
3611
  }
3599
- class fn {
3612
+ class gn {
3600
3613
  static get url() {
3601
3614
  return "/close-api/rules-validation/";
3602
3615
  }
3603
3616
  static validate(e, n) {
3604
- return g(fn.url + e, {
3617
+ return _(gn.url + e, {
3605
3618
  method: "POST",
3606
3619
  body: JSON.stringify(n)
3607
3620
  });
3608
3621
  }
3609
3622
  }
3610
- class Lo {
3623
+ class Da {
3611
3624
  static getConfiguration() {
3612
- return g("/open-api/webserver-configuration", {
3625
+ return _("/open-api/webserver-configuration", {
3613
3626
  method: "GET",
3614
3627
  headers: {
3615
3628
  "Content-Type": "application/json"
@@ -3617,7 +3630,7 @@ class Lo {
3617
3630
  });
3618
3631
  }
3619
3632
  }
3620
- class Ba {
3633
+ class zo {
3621
3634
  static url() {
3622
3635
  return "/close-api/actions";
3623
3636
  }
@@ -3629,17 +3642,17 @@ class Ba {
3629
3642
  }
3630
3643
  static getById(e, n, s = []) {
3631
3644
  const r = new URLSearchParams();
3632
- return He(r, s), g([this.url(), e, n].join("/") + `?${r.toString()}`, {
3645
+ return Je(r, s), _([this.url(), e, n].join("/") + `?${r.toString()}`, {
3633
3646
  method: "GET"
3634
3647
  });
3635
3648
  }
3636
3649
  }
3637
- const hn = class _n extends H {
3650
+ const mn = class yn extends J {
3638
3651
  constructor(e = []) {
3639
3652
  super(), this.array = A([]), this.defaultArray = [], this.setDefault(e);
3640
3653
  }
3641
3654
  emitUpdate() {
3642
- this.emit(_n.EVENT_DATA, this.array);
3655
+ this.emit(yn.EVENT_DATA, this.array);
3643
3656
  }
3644
3657
  setDefault(e) {
3645
3658
  const n = JSON.parse(JSON.stringify(e));
@@ -3670,80 +3683,80 @@ const hn = class _n extends H {
3670
3683
  return !(e >= 0 && e < this.array.length);
3671
3684
  }
3672
3685
  };
3673
- hn.EVENT_DATA = "list-config:update";
3674
- let Wo = hn;
3675
- class Do extends H {
3686
+ mn.EVENT_DATA = "list-config:update";
3687
+ let Ma = mn;
3688
+ class Fa extends J {
3676
3689
  constructor(e) {
3677
3690
  super(), this.name = "Communication", this.read = () => {
3678
3691
  }, this.id = e;
3679
3692
  }
3680
3693
  sendMessage(e) {
3681
- return qe.createMessage({ talkId: this.id, text: e });
3694
+ return Ge.createMessage({ talkId: this.id, text: e });
3682
3695
  }
3683
3696
  static checkAndGenerate(e) {
3684
- return qe.read(e).then((n) => n.length === 0 ? qe.create(e) : n[0]);
3697
+ return Ge.read(e).then((n) => n.length === 0 ? Ge.create(e) : n[0]);
3685
3698
  }
3686
3699
  }
3687
- function Mo(t) {
3688
- const e = K.getParentForm();
3689
- e ? e.subscribe(t) : console.warn(B.ParentFormNotFound());
3700
+ function ja(t) {
3701
+ const e = Y.getParentForm();
3702
+ e ? e.subscribe(t) : console.warn(q.ParentFormNotFound());
3690
3703
  const n = A([]);
3691
- return t.read = () => qe.readMessages(t.id).then((s) => (n.splice(0, n.length, ...s), s)), {
3704
+ return t.read = () => Ge.readMessages(t.id).then((s) => (n.splice(0, n.length, ...s), s)), {
3692
3705
  array: n
3693
3706
  };
3694
3707
  }
3695
- function qa(t) {
3708
+ function Ho(t) {
3696
3709
  return typeof t != "object" || t === null ? !1 : !!(t.hasOwnProperty("start") || t.hasOwnProperty("end"));
3697
3710
  }
3698
- function Y(t) {
3711
+ function X(t) {
3699
3712
  return Object.keys(t).reduce((e, n) => {
3700
3713
  const s = t[n];
3701
3714
  if (Array.isArray(s)) {
3702
3715
  const r = s.map((i) => typeof i == "string" ? `'${i}'` : i).join(", ");
3703
3716
  return s.length && e.push(`@${n} in (${r})`), e;
3704
3717
  }
3705
- if (qa(s)) {
3718
+ if (Ho(s)) {
3706
3719
  let r = function(i) {
3707
3720
  var a;
3708
3721
  return ((a = i.match(/([^Z]*)/)) == null ? void 0 : a[0]) + "0000Z";
3709
3722
  };
3710
3723
  return s.start && e.push(`@${n} ge ${r(s.start)}`), s.end && e.push(`@${n} le ${r(s.end)}`), e;
3711
3724
  }
3712
- return typeof s == "number" ? (e.push(`@${n} eq ${s}`), e) : typeof s == "string" ? (s.length !== 0 && e.push(`@${n} eq '${s}'`), e) : (s === null && e.push(Y.is(n, s)), e);
3725
+ return typeof s == "number" ? (e.push(`@${n} eq ${s}`), e) : typeof s == "string" ? (s.length !== 0 && e.push(`@${n} eq '${s}'`), e) : (s === null && e.push(X.is(n, s)), e);
3713
3726
  }, []).join(" and ");
3714
3727
  }
3715
3728
  function Oe(t) {
3716
3729
  return typeof t == "string" ? `'${t}'` : `${t}`;
3717
3730
  }
3718
- Y.includes = function(e, n) {
3731
+ X.includes = function(e, n) {
3719
3732
  return `@${e} Contains ${Oe(n)}`;
3720
3733
  };
3721
- Y.beginWith = function(e, n) {
3734
+ X.beginWith = function(e, n) {
3722
3735
  return `@${e} BeginWith ${Oe(n)}`;
3723
3736
  };
3724
- Y.notEq = function(e, n) {
3737
+ X.notEq = function(e, n) {
3725
3738
  return `@${e} nq ${Oe(n)}`;
3726
3739
  };
3727
- Y.eq = function(e, n) {
3728
- return Array.isArray(n) ? Y.in(e, n) : `@${e} eq ${Oe(n)}`;
3740
+ X.eq = function(e, n) {
3741
+ return Array.isArray(n) ? X.in(e, n) : `@${e} eq ${Oe(n)}`;
3729
3742
  };
3730
- Y.in = function(e, n) {
3743
+ X.in = function(e, n) {
3731
3744
  const s = n.map(Oe).join(", ");
3732
3745
  return `@${e} in (${s})`;
3733
3746
  };
3734
- Y.and = function(...e) {
3747
+ X.and = function(...e) {
3735
3748
  return e.join(" and ");
3736
3749
  };
3737
- Y.is = function(e, n) {
3750
+ X.is = function(e, n) {
3738
3751
  return `@${e} is ${n}`;
3739
3752
  };
3740
- Y.or = function(...e) {
3753
+ X.or = function(...e) {
3741
3754
  return e.join(" or ");
3742
3755
  };
3743
- function Ga(t, e = "images") {
3756
+ function Jo(t, e = "images") {
3744
3757
  return `/static-folder/${e}/${t}`;
3745
3758
  }
3746
- function za(t, e, n) {
3759
+ function Ko(t, e, n) {
3747
3760
  return t.reduce((s, r) => {
3748
3761
  var o;
3749
3762
  let i = typeof e == "function" ? e(r) : r[e];
@@ -3754,50 +3767,50 @@ function za(t, e, n) {
3754
3767
  }), s;
3755
3768
  }, []);
3756
3769
  }
3757
- function Ha() {
3770
+ function Yo() {
3758
3771
  return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(
3759
3772
  /[018]/g,
3760
3773
  (t) => (t ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> t / 4).toString(16)
3761
3774
  );
3762
3775
  }
3763
- function Fo(t, e = 1e3) {
3776
+ function xa(t, e = 1e3) {
3764
3777
  let n = 0;
3765
3778
  return (...s) => {
3766
3779
  clearTimeout(n), n = setTimeout(() => t(...s), e);
3767
3780
  };
3768
3781
  }
3769
- function jo(t, e) {
3770
- const n = q(null);
3782
+ function Ua(t, e) {
3783
+ const n = G(null);
3771
3784
  function s() {
3772
- return t.name ? pn.getById(t.name, e, []).then((r) => {
3785
+ return t.name ? _n.getById(t.name, e, []).then((r) => {
3773
3786
  n.value = r, r.fields.forEach((i) => {
3774
3787
  i.canSet ? t.enable(i.name) : t.disable(i.name);
3775
3788
  });
3776
3789
  }).catch(() => {
3777
3790
  n.value = null;
3778
- const r = B.MetadataEntityIsNotAvailable(t.name || "FORM_WITHOUT_NAME");
3779
- D.add("error", r.message);
3791
+ const r = q.MetadataEntityIsNotAvailable(t.name || "FORM_WITHOUT_NAME");
3792
+ F.add("error", r.message);
3780
3793
  }) : Promise.reject();
3781
3794
  }
3782
- return t.on(K.EVENT_READ, s), {
3795
+ return t.on(Y.EVENT_READ, s), {
3783
3796
  metadata: n,
3784
3797
  update: s
3785
3798
  };
3786
3799
  }
3787
- class yt extends Error {
3800
+ class wt extends Error {
3788
3801
  static UndefinedStatus() {
3789
- return new yt("Status is undefined.");
3802
+ return new wt("Status is undefined.");
3790
3803
  }
3791
3804
  }
3792
- class Ja extends yt {
3805
+ class Xo extends wt {
3793
3806
  }
3794
- function xo(t, e) {
3807
+ function Ba(t, e) {
3795
3808
  const n = A([]);
3796
3809
  async function s(i, a) {
3797
3810
  if (!i)
3798
- throw Ja.UndefinedStatus();
3799
- const o = await Ba.get({ criterion: i });
3800
- n.splice(0, n.length), n.push(...o.map((c) => r(c, a)));
3811
+ throw Xo.UndefinedStatus();
3812
+ const o = await zo.get({ criterion: i });
3813
+ n.splice(0, n.length), n.push(...o.map((l) => r(l, a)));
3801
3814
  }
3802
3815
  return {
3803
3816
  actions: n,
@@ -3815,68 +3828,68 @@ function xo(t, e) {
3815
3828
  keys: {
3816
3829
  Id: a
3817
3830
  },
3818
- contextId: E.contextId
3831
+ contextId: $.contextId
3819
3832
  }),
3820
3833
  headers: {
3821
3834
  "Content-Type": "application/json"
3822
3835
  }
3823
- })).then((c) => c.json()).then((c) => {
3824
- if (!c.success)
3825
- throw e != null && e.ModalValidationResult && c.validationEffect ? Bt(e.ModalValidationResult, {
3826
- rules: c.validationEffect.results
3827
- }) : D.add("error", c.message), new Error();
3828
- return c;
3829
- }).then((c) => {
3830
- c.message && D.add("info", c.message), e != null && e.handleAffectedEntities && e.handleAffectedEntities(c.affectedEntities);
3836
+ })).then((l) => l.json()).then((l) => {
3837
+ if (!l.success)
3838
+ throw e != null && e.ModalValidationResult && l.validationEffect ? zt(e.ModalValidationResult, {
3839
+ rules: l.validationEffect.results
3840
+ }) : F.add("error", l.message), new Error();
3841
+ return l;
3842
+ }).then((l) => {
3843
+ l.message && F.add("info", l.message), e != null && e.handleAffectedEntities && e.handleAffectedEntities(l.affectedEntities);
3831
3844
  }).then(() => t.read()))()
3832
3845
  };
3833
3846
  }
3834
3847
  }
3835
- class Je {
3848
+ class Ke {
3836
3849
  static url() {
3837
3850
  return "/close-api/presentation";
3838
3851
  }
3839
3852
  static getStatuses(e, n) {
3840
- return fetch(`${Je.url()}/status/${e}/${n}`).then((s) => s.json());
3853
+ return fetch(`${Ke.url()}/status/${e}/${n}`).then((s) => s.json());
3841
3854
  }
3842
3855
  }
3843
- function Uo(t) {
3856
+ function qa(t) {
3844
3857
  const e = A({
3845
3858
  title: "Loading",
3846
3859
  type: "wait"
3847
3860
  });
3848
3861
  function n(s) {
3849
3862
  if (t.name && Number.isInteger(s))
3850
- return Je.getStatuses(t.name, s).then((r) => {
3863
+ return Ke.getStatuses(t.name, s).then((r) => {
3851
3864
  e.type = r.type, e.title = r.name;
3852
3865
  });
3853
3866
  }
3854
- return t.on(K.EVENT_READ, (s) => {
3867
+ return t.on(Y.EVENT_READ, (s) => {
3855
3868
  var a, o;
3856
3869
  const { code: r, name: i } = {
3857
3870
  code: (a = s.Status) == null ? void 0 : a.Code,
3858
3871
  name: (o = s.Status) == null ? void 0 : o.Name
3859
3872
  };
3860
- return t.name ? !Number.isInteger(r) && !i ? void console.log("Undefined code or name is Status prop.") : Je.getStatuses(t.name, r).then((c) => {
3861
- e.type = c.type, e.title = i;
3873
+ return t.name ? !Number.isInteger(r) && !i ? void console.log("Undefined code or name is Status prop.") : Ke.getStatuses(t.name, r).then((l) => {
3874
+ e.type = l.type, e.title = i;
3862
3875
  }) : void console.log("Form without name.");
3863
3876
  }), { label: e, update: n };
3864
3877
  }
3865
- function Bo(t, e) {
3866
- const n = wn(), s = V(() => Number(n.params.id)), r = A({
3878
+ function Ga(t, e) {
3879
+ const n = $n(), s = L(() => Number(n.params.id)), r = A({
3867
3880
  ready: !1,
3868
3881
  show: !1
3869
3882
  });
3870
- return Tt(() => s.value, () => {
3883
+ return Ct(() => s.value, () => {
3871
3884
  r.ready = !1;
3872
- }), Tt(() => s.value, () => {
3885
+ }), Ct(() => s.value, () => {
3873
3886
  Number.isInteger(s.value) && t.read();
3874
3887
  }, { immediate: !0 }), t.read = Ce.requestHandler.bind(
3875
3888
  null,
3876
3889
  () => Promise.resolve().then(() => {
3877
3890
  if (!t.name)
3878
3891
  throw new Error("Form without entity name. Please set form.name");
3879
- return J.readById(t.name, s.value, {
3892
+ return K.readById(t.name, s.value, {
3880
3893
  fields: e.fields
3881
3894
  });
3882
3895
  }).then(Ce.valuesToUpperCase).then((i) => (Number.isInteger(i.Version) && (t.version = i.Version), t.setValues(i), r.show = !0, i)).catch((i) => {
@@ -3889,43 +3902,43 @@ function Bo(t, e) {
3889
3902
  () => Promise.resolve().then(() => {
3890
3903
  if (!t.name)
3891
3904
  throw new Error("Form without entity name. Please set form.name");
3892
- return J.updateById(t.name, s.value, t.changes, { version: t.version });
3905
+ return K.updateById(t.name, s.value, t.changes, { version: t.version });
3893
3906
  }).then((i) => {
3894
3907
  t.version = i.version;
3895
3908
  })
3896
- ), t.on(K.EVENT_SAVE, t.read.bind(t)), {
3909
+ ), t.on(Y.EVENT_SAVE, t.read.bind(t)), {
3897
3910
  formShadowState: r
3898
3911
  };
3899
3912
  }
3900
- function qo() {
3913
+ function za() {
3901
3914
  const t = A({
3902
- contextId: E.contextId,
3903
- person: E.person,
3904
- organizations: E.organizations,
3905
- ready: E.ready,
3906
- user: E.user
3907
- }), e = V(() => {
3908
- if (!E.ready || !E.person)
3915
+ contextId: $.contextId,
3916
+ person: $.person,
3917
+ organizations: $.organizations,
3918
+ ready: $.ready,
3919
+ user: $.user
3920
+ }), e = L(() => {
3921
+ if (!$.ready || !$.person)
3909
3922
  return null;
3910
3923
  const s = t.contextId;
3911
- return E.person.id === s ? E.person : E.organizations.find((r) => r.id === s) || null;
3912
- }), n = V(() => {
3924
+ return $.person.id === s ? $.person : $.organizations.find((r) => r.id === s) || null;
3925
+ }), n = L(() => {
3913
3926
  var s;
3914
3927
  return t.contextId === ((s = t.person) == null ? void 0 : s.id);
3915
3928
  });
3916
- return E.onupdateContext((s) => {
3929
+ return $.onupdateContext((s) => {
3917
3930
  t.contextId = s;
3918
- }), E.onupdateData(() => {
3919
- t.person = E.person, t.organizations = E.organizations, t.user = E.user;
3920
- }), E.onReady((s) => {
3931
+ }), $.onupdateData(() => {
3932
+ t.person = $.person, t.organizations = $.organizations, t.user = $.user;
3933
+ }), $.onReady((s) => {
3921
3934
  t.ready = s;
3922
3935
  }), {
3923
- state: Ut(t),
3936
+ state: Gt(t),
3924
3937
  currentContext: e,
3925
3938
  isPerson: n
3926
3939
  };
3927
3940
  }
3928
- function Go(t, e) {
3941
+ function Ha(t, e) {
3929
3942
  const n = A({
3930
3943
  ready: !1,
3931
3944
  show: !1
@@ -3937,13 +3950,13 @@ function Go(t, e) {
3937
3950
  let r = e();
3938
3951
  return Promise.resolve().then(() => {
3939
3952
  if (!t.name)
3940
- throw B.EntityWithoutName("Use Form Request");
3941
- return J.readById(t.name, r.id, {
3953
+ throw q.EntityWithoutName("Use Form Request");
3954
+ return K.readById(t.name, r.id, {
3942
3955
  fields: r.fields
3943
3956
  });
3944
3957
  }).then(Ce.valuesToUpperCase).then((i) => (i.hasOwnProperty("Version") && (t.version = Number(i.Version)), t.setValues(i), n.show = !0, i)).catch((i) => {
3945
- const a = ze(i);
3946
- throw D.add("error", a.message), a;
3958
+ const a = He(i);
3959
+ throw F.add("error", a.message), a;
3947
3960
  }).finally(() => {
3948
3961
  n.ready = !0;
3949
3962
  });
@@ -3951,17 +3964,17 @@ function Go(t, e) {
3951
3964
  let r = e();
3952
3965
  return Promise.resolve().then(() => {
3953
3966
  if (!t.name)
3954
- throw B.EntityWithoutName("Use Form Request");
3955
- return J.updateById(t.name, r.id, t.changes, { version: t.version });
3967
+ throw q.EntityWithoutName("Use Form Request");
3968
+ return K.updateById(t.name, r.id, t.changes, { version: t.version });
3956
3969
  }).then((i) => {
3957
3970
  t.version = i.version || i.Version;
3958
3971
  }).catch((i) => {
3959
- const a = ze(i);
3960
- throw D.add("error", a.message), a;
3972
+ const a = He(i);
3973
+ throw F.add("error", a.message), a;
3961
3974
  });
3962
- }, t.on(K.EVENT_SAVE, t.read.bind(t)), { shadowFormState: n, initShadow: s };
3975
+ }, t.on(Y.EVENT_SAVE, t.read.bind(t)), { shadowFormState: n, initShadow: s };
3963
3976
  }
3964
- class zo {
3977
+ class Ja {
3965
3978
  static getRequiredDocuments(e, n, s) {
3966
3979
  const r = new URLSearchParams({
3967
3980
  entity: e,
@@ -3971,15 +3984,15 @@ class zo {
3971
3984
  return fetch(`/close-api/views/required-documents?${r.toString()}`).then((i) => i.json());
3972
3985
  }
3973
3986
  }
3974
- class Te {
3987
+ class Se {
3975
3988
  static url() {
3976
3989
  return "close-api/billing";
3977
3990
  }
3978
3991
  static getBillingMetadata(e) {
3979
- return fetch(`/${Te.url()}/calculator/${e}`);
3992
+ return fetch(`/${Se.url()}/calculator/${e}`);
3980
3993
  }
3981
3994
  static calculate(e, n) {
3982
- return g(`/${Te.url()}/calculator`, {
3995
+ return _(`/${Se.url()}/calculator`, {
3983
3996
  method: "POST",
3984
3997
  headers: {
3985
3998
  "Content-Type": "application/json"
@@ -3991,7 +4004,7 @@ class Te {
3991
4004
  }).then((s) => {
3992
4005
  if (s && s.status === 1)
3993
4006
  return s;
3994
- throw Array.isArray(s.notes) ? new Error(s.notes[0]) : B.ApiNotAvailable();
4007
+ throw Array.isArray(s.notes) ? new Error(s.notes[0]) : q.ApiNotAvailable();
3995
4008
  });
3996
4009
  }
3997
4010
  static parseMetadataField(e) {
@@ -4019,7 +4032,7 @@ class Te {
4019
4032
  * @description Метод для создания онлайн платежа.
4020
4033
  * */
4021
4034
  static createOnlinePayment(e, n) {
4022
- return g(`/${Te.url()}/online-payment`, {
4035
+ return _(`/${Se.url()}/online-payment`, {
4023
4036
  method: "POST",
4024
4037
  headers: {
4025
4038
  "Content-Type": "application/json"
@@ -4035,7 +4048,7 @@ class Te {
4035
4048
  * все полученные данные(в нашем случае весь URL) на аппсервер.
4036
4049
  * */
4037
4050
  static applyOnlinePayment(e) {
4038
- return g(`/${Te.url()}/online-payment`, {
4051
+ return _(`/${Se.url()}/online-payment`, {
4039
4052
  method: "PUT",
4040
4053
  headers: {
4041
4054
  "Content-Type": "application/json"
@@ -4046,7 +4059,7 @@ class Te {
4046
4059
  });
4047
4060
  }
4048
4061
  }
4049
- class Ho {
4062
+ class Ka {
4050
4063
  /**
4051
4064
  * @description Загрузка конфигурации из списка
4052
4065
  * */
@@ -4054,102 +4067,102 @@ class Ho {
4054
4067
  const s = new URLSearchParams();
4055
4068
  s.set("entity", e), n && s.set("mark", n);
4056
4069
  const r = `/close-api/views/list/configs?${s.toString()}`;
4057
- return g(r);
4070
+ return _(r);
4058
4071
  }
4059
4072
  }
4060
- function Ka(t) {
4073
+ function Zo(t) {
4061
4074
  return t.statusName === "Completed";
4062
4075
  }
4063
- function Ya(t) {
4076
+ function Qo(t) {
4064
4077
  return t.statusName === "FinalStepWithConfirmation";
4065
4078
  }
4066
- function Xa(t) {
4079
+ function ea(t) {
4067
4080
  return t.statusName === "ValidationError";
4068
4081
  }
4069
- function Jo(t, e, n) {
4082
+ function Ya(t, e, n) {
4070
4083
  let s = null;
4071
4084
  const r = A({
4072
4085
  wait: null
4073
4086
  });
4074
4087
  let i = [], a = null;
4075
- const o = q(null);
4076
- function c() {
4077
- o.value = i.find((v) => v.name === a) || null;
4088
+ const o = G(null);
4089
+ function l() {
4090
+ o.value = i.find((y) => y.name === a) || null;
4078
4091
  }
4079
4092
  function p() {
4080
- var v;
4081
- return a ? ((v = i.find((L) => L.name === a)) == null ? void 0 : v.fields) || [] : [];
4093
+ var y;
4094
+ return a ? ((y = i.find((W) => W.name === a)) == null ? void 0 : y.fields) || [] : [];
4082
4095
  }
4083
- function f(v) {
4084
- if (c(), Xa(v))
4085
- return void n.onValidation(v.validationResults);
4086
- if ((v.statusName === "FinalStep" || v.statusName === "NextStep") && (!p().length || Za(p(), n.presets)))
4087
- return ue(n.presets || {});
4088
- Ka(v) && n.onCompleted(v), Ya(v) && n.onConfirmation(v);
4096
+ function f(y) {
4097
+ if (l(), ea(y))
4098
+ return void n.onValidation(y.validationResults);
4099
+ if ((y.statusName === "FinalStep" || y.statusName === "NextStep") && (!p().length || ta(p(), n.presets)))
4100
+ return re(n.presets || {});
4101
+ Zo(y) && n.onCompleted(y), Qo(y) && n.onConfirmation(y);
4089
4102
  }
4090
- async function h() {
4103
+ async function w() {
4091
4104
  try {
4092
- await w(), await _e();
4093
- } catch (v) {
4094
- const { message: L } = ze(v);
4095
- D.add("error", L);
4105
+ await V(), await N();
4106
+ } catch (y) {
4107
+ const { message: W } = He(y);
4108
+ F.add("error", W);
4096
4109
  }
4097
4110
  }
4098
- function w() {
4099
- return r.wait = "Loading process information.", at.getStartConfig(e, t).then((v) => {
4100
- i = v.steps.map((L) => ({
4101
- label: L.title,
4102
- name: L.stepName,
4103
- number: L.number,
4104
- fields: L.frontendEntity.objectTypes.reduce((ne, de) => (de.properties.forEach((k) => {
4105
- ne.push({
4106
- name: k.name,
4107
- label: k.title,
4108
- type: k.refEntityName || k.dataType
4111
+ function V() {
4112
+ return r.wait = "Loading process information.", lt.getStartConfig(e, t).then((y) => {
4113
+ i = y.steps.map((W) => ({
4114
+ label: W.title,
4115
+ name: W.stepName,
4116
+ number: W.number,
4117
+ fields: W.frontendEntity.objectTypes.reduce((ie, ge) => (ge.properties.forEach((ee) => {
4118
+ ie.push({
4119
+ name: ee.name,
4120
+ label: ee.title,
4121
+ type: ee.refEntityName || ee.dataType
4109
4122
  });
4110
- }), ne), [])
4123
+ }), ie), [])
4111
4124
  }));
4112
- }).then((v) => (r.wait = !1, v));
4125
+ }).then((y) => (r.wait = !1, y));
4113
4126
  }
4114
- function T(v) {
4115
- return a = v.nextStepName, s = v.token, v;
4127
+ function T(y) {
4128
+ return a = y.nextStepName, s = y.token, y;
4116
4129
  }
4117
- function F(v) {
4118
- const L = ze(v);
4119
- D.add("error", L.message);
4130
+ function S(y) {
4131
+ const W = He(y);
4132
+ F.add("error", W.message);
4120
4133
  }
4121
- function _e() {
4122
- return r.wait = "Starting process", at.startProcess(e, t).then(T).then(f).catch(F).finally(() => {
4134
+ function N() {
4135
+ return r.wait = "Starting process", lt.startProcess(e, t).then(T).then(f).catch(S).finally(() => {
4123
4136
  r.wait = null;
4124
4137
  });
4125
4138
  }
4126
- function ue(v = {}) {
4127
- return !s || !a ? Promise.reject("Not step or token.") : (r.wait = "Expect the result", at.runStep(e, t, a, s, v).then(T).then(f).catch(F).finally(() => {
4139
+ function re(y = {}) {
4140
+ return !s || !a ? Promise.reject("Not step or token.") : (r.wait = "Expect the result", lt.runStep(e, t, a, s, y).then(T).then(f).catch(S).finally(() => {
4128
4141
  r.wait = !1;
4129
4142
  }));
4130
4143
  }
4131
4144
  return {
4132
- initialize: h,
4145
+ initialize: w,
4133
4146
  state: r,
4134
- currentStepConfig: Ut(o),
4135
- next: ue
4147
+ currentStepConfig: Gt(o),
4148
+ next: re
4136
4149
  };
4137
4150
  }
4138
- function Za(t, e) {
4151
+ function ta(t, e) {
4139
4152
  for (let n = 0; n < t.length; n++) {
4140
4153
  const s = t[n];
4141
- if (!oe.getPropFromObject(e, s.name))
4154
+ if (!ue.getPropFromObject(e, s.name))
4142
4155
  return !1;
4143
4156
  }
4144
4157
  return !0;
4145
4158
  }
4146
- const Qa = "close-api/proxy/Equipment/Search";
4147
- class Ko {
4159
+ const na = "close-api/proxy/Equipment/Search";
4160
+ class Xa {
4148
4161
  static search(e, n, s, r, i) {
4149
4162
  const a = new URLSearchParams();
4150
4163
  a.append("pattern", e || ""), n && a.append("categoryId", n), s && a.append("useType", String(s)), r && a.append("statusCode", r), i && (a.append("limit", String(i.limit)), a.append("offset", String(i.offset)));
4151
- const o = `/${Qa}?${a.toString()}`;
4152
- return g(o, {
4164
+ const o = `/${na}?${a.toString()}`;
4165
+ return _(o, {
4153
4166
  method: "GET",
4154
4167
  headers: {
4155
4168
  "Content-Type": "application/json"
@@ -4157,102 +4170,102 @@ class Ko {
4157
4170
  });
4158
4171
  }
4159
4172
  }
4160
- const Yo = {
4173
+ const Za = {
4161
4174
  clickOutside: ke,
4162
- requestHandler: _t,
4163
- valuesToUpperCase: Qe,
4164
- prettyDate: mt,
4165
- prettyDateWithTime: ln,
4166
- Filter: Y,
4167
- staticLink: Ga,
4168
- groupArrayByField: za,
4169
- uuidv4: Ha,
4170
- Request: g,
4171
- prettyMoney: tn
4172
- }, Xo = {
4173
- widgets: jr,
4174
- usage: xr,
4175
- utils: Zr,
4176
- mixins: In,
4177
- config: Qr,
4178
- types: ei
4175
+ requestHandler: mt,
4176
+ valuesToUpperCase: et,
4177
+ prettyDate: vt,
4178
+ prettyDateWithTime: dn,
4179
+ Filter: X,
4180
+ staticLink: Jo,
4181
+ groupArrayByField: Ko,
4182
+ uuidv4: Yo,
4183
+ Request: _,
4184
+ prettyMoney: rn
4185
+ }, Qa = {
4186
+ widgets: Ur,
4187
+ usage: Br,
4188
+ utils: ei,
4189
+ mixins: kn,
4190
+ config: ti,
4191
+ types: ni
4179
4192
  };
4180
4193
  export {
4181
- qr as ApplicationManager,
4182
- Do as Communication,
4183
- wo as ComputedMetadata,
4184
- B as CoreError,
4185
- Y as Filter,
4186
- Z as List,
4187
- Wo as ListConfig,
4188
- E as Manager,
4189
- De as MetadataStore,
4190
- No as ModalValidation,
4191
- D as NotificationSystem,
4192
- ft as ProcessWrap,
4193
- g as Request,
4194
- W as SYMBOL_ROW,
4195
- et as Table,
4196
- So as WidgetBreadcrumbs,
4197
- _r as WidgetButton,
4198
- Oo as WidgetCard,
4199
- ko as WidgetForm,
4194
+ zr as ApplicationManager,
4195
+ Fa as Communication,
4196
+ $a as ComputedMetadata,
4197
+ q as CoreError,
4198
+ X as Filter,
4199
+ Q as List,
4200
+ Ma as ListConfig,
4201
+ $ as Manager,
4202
+ Me as MetadataStore,
4203
+ Oa as ModalValidation,
4204
+ F as NotificationSystem,
4205
+ _t as ProcessWrap,
4206
+ _ as Request,
4207
+ M as SYMBOL_ROW,
4208
+ tt as Table,
4209
+ Ia as WidgetBreadcrumbs,
4210
+ mr as WidgetButton,
4211
+ Va as WidgetCard,
4212
+ Pa as WidgetForm,
4200
4213
  R as WidgetIcon,
4201
- Po as WidgetImage,
4202
- Co as WidgetList,
4203
- Ht as WidgetMultiButton,
4204
- Mr as WidgetNotificationSystem,
4205
- Io as WidgetSection,
4206
- he as WidgetSpinner,
4207
- Ao as WidgetTable,
4208
- Ba as actionService,
4209
- j as authService,
4210
- Te as billingService,
4214
+ Ra as WidgetImage,
4215
+ Aa as WidgetList,
4216
+ Yt as WidgetMultiButton,
4217
+ jr as WidgetNotificationSystem,
4218
+ ka as WidgetSection,
4219
+ _e as WidgetSpinner,
4220
+ Na as WidgetTable,
4221
+ zo as actionService,
4222
+ x as authService,
4223
+ Se as billingService,
4211
4224
  ke as clickOutside,
4212
- Br as clientService,
4213
- qe as communicationService,
4214
- Ho as configurationService,
4215
- J as dataService,
4216
- Fo as debounce,
4217
- Xo as default,
4218
- zo as documentsService,
4219
- Ko as equipmentService,
4220
- ts as fileService,
4221
- ho as historyService,
4222
- $o as internationalizationService,
4223
- Vo as invitationService,
4224
- pn as metadataService,
4225
- vo as newImport,
4226
- Lo as openService,
4227
- ze as parseError,
4228
- bo as prettifyValueByMetadata,
4229
- at as processWizardService,
4230
- _t as requestHandler,
4231
- fn as ruleValidationService,
4232
- To as setupSocket,
4225
+ Gr as clientService,
4226
+ Ge as communicationService,
4227
+ Ka as configurationService,
4228
+ K as dataService,
4229
+ xa as debounce,
4230
+ Qa as default,
4231
+ Ja as documentsService,
4232
+ Xa as equipmentService,
4233
+ ss as fileService,
4234
+ ga as historyService,
4235
+ Ta as internationalizationService,
4236
+ Wa as invitationService,
4237
+ _n as metadataService,
4238
+ ba as newImport,
4239
+ Da as openService,
4240
+ He as parseError,
4241
+ Ea as prettifyValueByMetadata,
4242
+ lt as processWizardService,
4243
+ mt as requestHandler,
4244
+ gn as ruleValidationService,
4245
+ Ca as setupSocket,
4233
4246
  Ie as t,
4234
- fo as testTypes,
4235
- Mo as useCommunication,
4236
- qo as useCustomerState,
4237
- xo as useFormAction,
4238
- Uo as useFormLabel,
4239
- jo as useFormMetadata,
4240
- Go as useFormRequest,
4241
- Bo as useFormRequestData,
4242
- _o as useListConfig,
4243
- mo as useListFilter,
4244
- li as useListOrder,
4245
- oi as useListProvide,
4246
- ii as useListRead,
4247
- go as useListSearch,
4248
- yo as useListSelect,
4249
- ai as useListState,
4250
- lo as useManagerState,
4251
- Eo as useSocket,
4252
- po as useTableRequest,
4253
- uo as useTableState,
4254
- Jo as useWizard,
4255
- Yo as utils,
4256
- Ro as viewService
4247
+ _a as testTypes,
4248
+ ja as useCommunication,
4249
+ za as useCustomerState,
4250
+ Ba as useFormAction,
4251
+ qa as useFormLabel,
4252
+ Ua as useFormMetadata,
4253
+ Ha as useFormRequest,
4254
+ Ga as useFormRequestData,
4255
+ ma as useListConfig,
4256
+ va as useListFilter,
4257
+ ui as useListOrder,
4258
+ ci as useListProvide,
4259
+ ai as useListRead,
4260
+ ya as useListSearch,
4261
+ wa as useListSelect,
4262
+ li as useListState,
4263
+ da as useManagerState,
4264
+ Sa as useSocket,
4265
+ ha as useTableRequest,
4266
+ fa as useTableState,
4267
+ Ya as useWizard,
4268
+ Za as utils,
4269
+ La as viewService
4257
4270
  };
4258
4271
  //# sourceMappingURL=eservices-core.es.js.map