eservices-core 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eservices-core.cjs.js +5 -5
- package/dist/eservices-core.es.js +633 -647
- package/dist/eservices-core.umd.js +6 -6
- package/dist/frontend/core/services/configuration-service.d.ts +5 -5
- package/dist/frontend/core/widgets/list/widget-list.vue.d.ts +24 -7
- package/package.json +5 -5
- package/svg-folder/dist/icons.css +21 -0
- package/svg-folder/dist/icons.eot +0 -0
- package/svg-folder/dist/icons.woff +0 -0
- package/svg-folder/dist/icons.woff2 +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
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
|
|
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-6df67ed5]{position:relative}.widget-list-body[data-v-6df67ed5]:after{content:"";background-color:transparent;z-index:-1;transition:.1s}.widget-list-body_inactive[data-v-6df67ed5]: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 j, openBlock as l, createElementBlock as u, createTextVNode as Ie, toDisplayString as y, createCommentVNode as f, createElementVNode as d, createVNode as S, normalizeClass as I, createBlock as w, Fragment as O, renderList as M, reactive as A, defineComponent as b, renderSlot as U, pushScopeId as Lt, popScopeId as Wt, withCtx as fe, withKeys as gn, computed as V, ref as B, normalizeStyle as ct, withModifiers as mn, onMounted as Je, onUnmounted as yn, unref as P, TransitionGroup as Dt, provide as Mt, inject as ut, resolveDynamicComponent as Ft, mergeProps as jt, useSlots as Ut, Transition as vn, defineModel as Et, watch as Tt, readonly as xt } from "vue";
|
|
3
3
|
import { openModal as Bt } from "jenesius-vue-modal";
|
|
4
|
-
import { Form as
|
|
4
|
+
import { Form as J, utils as oe, FormField as at } from "jenesius-vue-form";
|
|
5
5
|
import qt from "object-hash";
|
|
6
6
|
import { RouterLink as Gt, useRoute as wn } from "vue-router";
|
|
7
7
|
import bn from "date-and-time";
|
|
8
8
|
import { Manager as $n } from "socket.io-client";
|
|
9
9
|
/*!
|
|
10
|
-
* eservices-core v1.2.
|
|
10
|
+
* eservices-core v1.2.3
|
|
11
11
|
* (c) 2023 ESERVICES
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
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;
|
|
@@ -30,21 +30,21 @@ const m = (t, e) => {
|
|
|
30
30
|
class: `icon icon-${n}`
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
}, R = /* @__PURE__ */
|
|
33
|
+
}, R = /* @__PURE__ */ g(En, [["__scopeId", "data-v-6412ede6"]]);
|
|
34
34
|
function Tn(t, e) {
|
|
35
35
|
return !!t && t === e || "password is not equal";
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ke(t) {
|
|
38
38
|
return Number(t.replace(/[^0-9.]/g, ""));
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
let s = String(
|
|
40
|
+
function dt(t, e = null) {
|
|
41
|
+
let s = String(Ke(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
44
|
const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
45
|
__proto__: null,
|
|
46
|
-
numeric:
|
|
47
|
-
prettyNumeric:
|
|
46
|
+
numeric: Ke,
|
|
47
|
+
prettyNumeric: dt,
|
|
48
48
|
validPassword: Tn
|
|
49
49
|
}, Symbol.toStringTag, { value: "Module" })), le = {
|
|
50
50
|
props: {
|
|
@@ -162,7 +162,7 @@ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
162
162
|
this.value = t;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
},
|
|
165
|
+
}, Ye = {
|
|
166
166
|
props: {
|
|
167
167
|
password: {
|
|
168
168
|
type: Boolean,
|
|
@@ -201,9 +201,9 @@ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
201
201
|
__proto__: null,
|
|
202
202
|
MixinInput: le,
|
|
203
203
|
MixinInputPassword: Cn,
|
|
204
|
-
MixinInputText:
|
|
204
|
+
MixinInputText: Ye
|
|
205
205
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
206
|
-
function
|
|
206
|
+
function Re(t, e = []) {
|
|
207
207
|
let n = t;
|
|
208
208
|
return e.forEach((s) => {
|
|
209
209
|
n = s(n);
|
|
@@ -231,21 +231,21 @@ const An = {
|
|
|
231
231
|
},
|
|
232
232
|
computed: {
|
|
233
233
|
prettyValue() {
|
|
234
|
-
return console.log("pretty value"), this.pretty(
|
|
234
|
+
return console.log("pretty value"), this.pretty(Re(this.modelValue, this.arrayInputPrettyModifiers));
|
|
235
235
|
},
|
|
236
236
|
arrayInputModifiers() {
|
|
237
237
|
let t = [];
|
|
238
|
-
return (this.numeric || this.prettyNumeric) && t.push(
|
|
238
|
+
return (this.numeric || this.prettyNumeric) && t.push(Ke), t;
|
|
239
239
|
},
|
|
240
240
|
arrayInputPrettyModifiers() {
|
|
241
241
|
let t = [];
|
|
242
|
-
return this.prettyNumeric && t.push(
|
|
242
|
+
return this.prettyNumeric && t.push(dt), t;
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
methods: {
|
|
246
246
|
//Not used
|
|
247
247
|
onChange(t) {
|
|
248
|
-
let e = this.modify(
|
|
248
|
+
let e = this.modify(Re(t.target.value, this.arrayInputModifiers));
|
|
249
249
|
this.input(e);
|
|
250
250
|
},
|
|
251
251
|
onInput() {
|
|
@@ -253,11 +253,11 @@ 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(
|
|
257
|
-
this.input(e), this.$refs.input.value = this.pretty(
|
|
256
|
+
let e = this.modify(Re(t.target.value, this.arrayInputModifiers));
|
|
257
|
+
this.input(e), this.$refs.input.value = this.pretty(Re(this.modelValue, this.arrayInputPrettyModifiers));
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
|
-
mixins: [le,
|
|
260
|
+
mixins: [le, Ye],
|
|
261
261
|
name: "InputText"
|
|
262
262
|
}, kn = { class: "input-wrap" }, Nn = {
|
|
263
263
|
key: 0,
|
|
@@ -270,12 +270,12 @@ const An = {
|
|
|
270
270
|
class: "input-text__error text_sm"
|
|
271
271
|
};
|
|
272
272
|
function Ln(t, e, n, s, r, i) {
|
|
273
|
-
const a =
|
|
273
|
+
const a = j("icon");
|
|
274
274
|
return l(), u("div", kn, [
|
|
275
275
|
t.title ? (l(), u("p", Nn, [
|
|
276
|
-
|
|
277
|
-
t.required ? (l(), u("span", Pn, "*")) :
|
|
278
|
-
])) :
|
|
276
|
+
Ie(y(t.title) + " ", 1),
|
|
277
|
+
t.required ? (l(), u("span", Pn, "*")) : f("", !0)
|
|
278
|
+
])) : f("", !0),
|
|
279
279
|
d("div", {
|
|
280
280
|
class: "input-text-container input_size_md flex",
|
|
281
281
|
disabled: t.disabled || t.isInsideDisabled,
|
|
@@ -296,16 +296,16 @@ function Ln(t, e, n, s, r, i) {
|
|
|
296
296
|
class: "input-text__password",
|
|
297
297
|
onClick: e[1] || (e[1] = (o) => t.togglePasswordVisible())
|
|
298
298
|
}, [
|
|
299
|
-
|
|
299
|
+
S(a, {
|
|
300
300
|
class: "cursor_pointer",
|
|
301
301
|
name: t.isPasswordVisible ? "eye-crossed" : "eye"
|
|
302
302
|
}, null, 8, ["name"])
|
|
303
|
-
])) :
|
|
304
|
-
t.errorMessage ? (l(), u("p", Vn, y(t.errorMessage), 1)) :
|
|
303
|
+
])) : f("", !0),
|
|
304
|
+
t.errorMessage ? (l(), u("p", Vn, y(t.errorMessage), 1)) : f("", !0)
|
|
305
305
|
], 8, On)
|
|
306
306
|
]);
|
|
307
307
|
}
|
|
308
|
-
const Wn = /* @__PURE__ */
|
|
308
|
+
const Wn = /* @__PURE__ */ g(An, [["render", Ln], ["__scopeId", "data-v-65e2ee2d"]]);
|
|
309
309
|
const Dn = {
|
|
310
310
|
mixins: [le],
|
|
311
311
|
name: "InputToggle"
|
|
@@ -316,20 +316,20 @@ function Mn(t, e, n, s, r, i) {
|
|
|
316
316
|
onClick: e[0] || (e[0] = (a) => t.input(!t.value))
|
|
317
317
|
}, null, 2);
|
|
318
318
|
}
|
|
319
|
-
const Fn = /* @__PURE__ */
|
|
319
|
+
const Fn = /* @__PURE__ */ g(Dn, [["render", Mn], ["__scopeId", "data-v-56d58611"]]);
|
|
320
320
|
const jn = {
|
|
321
321
|
props: ["isActive", "title"],
|
|
322
322
|
name: "FragmentInputSelectItem"
|
|
323
|
-
},
|
|
324
|
-
function
|
|
325
|
-
return l(), u("div",
|
|
323
|
+
}, Un = { class: "item-wrap" };
|
|
324
|
+
function xn(t, e, n, s, r, i) {
|
|
325
|
+
return l(), u("div", Un, [
|
|
326
326
|
d("p", {
|
|
327
327
|
class: I(["input-select__item cursor_pointer", { active: n.isActive }])
|
|
328
328
|
}, y(n.title), 3)
|
|
329
329
|
]);
|
|
330
330
|
}
|
|
331
|
-
const Bn = /* @__PURE__ */
|
|
332
|
-
function
|
|
331
|
+
const Bn = /* @__PURE__ */ g(jn, [["render", xn], ["__scopeId", "data-v-69ab8592"]]);
|
|
332
|
+
function Ae(t, e) {
|
|
333
333
|
if (!t)
|
|
334
334
|
return console.warn("Element is not provided.");
|
|
335
335
|
function n(r, i) {
|
|
@@ -363,7 +363,7 @@ const qn = {
|
|
|
363
363
|
},
|
|
364
364
|
watch: {
|
|
365
365
|
isActive(t) {
|
|
366
|
-
t &&
|
|
366
|
+
t && Ae(this.$refs.input, () => this.hide());
|
|
367
367
|
}
|
|
368
368
|
},
|
|
369
369
|
components: { Icon: R, FragmentInputSelectItem: Bn },
|
|
@@ -386,12 +386,12 @@ const qn = {
|
|
|
386
386
|
class: "input-text__error position_absolute margin-0 text_sm color__text_red"
|
|
387
387
|
};
|
|
388
388
|
function Qn(t, e, n, s, r, i) {
|
|
389
|
-
const a =
|
|
389
|
+
const a = j("icon"), o = j("fragment-input-select-item");
|
|
390
390
|
return l(), u("div", Gn, [
|
|
391
391
|
t.title ? (l(), u("p", zn, [
|
|
392
|
-
|
|
393
|
-
t.required ? (l(), u("span", Hn, "*")) :
|
|
394
|
-
])) :
|
|
392
|
+
Ie(y(t.title) + " ", 1),
|
|
393
|
+
t.required ? (l(), u("span", Hn, "*")) : f("", !0)
|
|
394
|
+
])) : f("", !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
397
|
onClick: e[1] || (e[1] = (c) => i.active()),
|
|
@@ -399,30 +399,30 @@ function Qn(t, e, n, s, r, i) {
|
|
|
399
399
|
}, [
|
|
400
400
|
d("div", Jn, [
|
|
401
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 ?
|
|
402
|
+
t.disabled || t.isInsideDisabled ? f("", !0) : (l(), w(a, {
|
|
403
403
|
key: 2,
|
|
404
404
|
class: "input-select__ico-toggle",
|
|
405
405
|
name: "caret-down"
|
|
406
406
|
}))
|
|
407
407
|
]),
|
|
408
408
|
d("div", Xn, [
|
|
409
|
-
t.value ? (l(),
|
|
409
|
+
t.value ? (l(), w(o, {
|
|
410
410
|
key: 0,
|
|
411
411
|
onClick: e[0] || (e[0] = (c) => t.input(null))
|
|
412
|
-
})) :
|
|
413
|
-
(l(!0), u(O, null, M(t.arrayParse, (c, p) => (l(),
|
|
412
|
+
})) : f("", !0),
|
|
413
|
+
(l(!0), u(O, null, M(t.arrayParse, (c, p) => (l(), w(o, {
|
|
414
414
|
class: "input-select-list__item",
|
|
415
415
|
key: p,
|
|
416
416
|
"is-active": c.value === t.value,
|
|
417
417
|
title: c.title,
|
|
418
|
-
onClick: (
|
|
418
|
+
onClick: (h) => t.input(c.value)
|
|
419
419
|
}, null, 8, ["is-active", "title", "onClick"]))), 128))
|
|
420
420
|
]),
|
|
421
|
-
t.errorMessage ? (l(), u("p", Zn, y(t.errorMessage), 1)) :
|
|
421
|
+
t.errorMessage ? (l(), u("p", Zn, y(t.errorMessage), 1)) : f("", !0)
|
|
422
422
|
], 2)
|
|
423
423
|
]);
|
|
424
424
|
}
|
|
425
|
-
const es = /* @__PURE__ */
|
|
425
|
+
const es = /* @__PURE__ */ g(qn, [["render", Qn], ["__scopeId", "data-v-c4acd469"]]);
|
|
426
426
|
class ts {
|
|
427
427
|
static async upload(e, n) {
|
|
428
428
|
const s = new FormData();
|
|
@@ -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
|
|
437
|
+
function pt(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 ns = b({
|
|
457
457
|
props: {
|
|
458
458
|
entityName: {
|
|
459
459
|
type: String,
|
|
@@ -465,7 +465,7 @@ const ns = $({
|
|
|
465
465
|
pw: null
|
|
466
466
|
}),
|
|
467
467
|
created() {
|
|
468
|
-
this.pw =
|
|
468
|
+
this.pw = pt(this.onLoad);
|
|
469
469
|
},
|
|
470
470
|
methods: {
|
|
471
471
|
async onChange(t) {
|
|
@@ -486,9 +486,9 @@ const ns = $({
|
|
|
486
486
|
class: "process-info input-file__error text_size_sm text_error"
|
|
487
487
|
};
|
|
488
488
|
function as(t, e, n, s, r, i) {
|
|
489
|
-
const a =
|
|
489
|
+
const a = j("icon");
|
|
490
490
|
return l(), u("div", ss, [
|
|
491
|
-
|
|
491
|
+
S(a, {
|
|
492
492
|
name: "plus",
|
|
493
493
|
class: "icon__file-upload"
|
|
494
494
|
}),
|
|
@@ -497,11 +497,11 @@ 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...")) :
|
|
501
|
-
t.pw.error ? (l(), u("p", is, "Error load file")) :
|
|
500
|
+
t.pw.wait ? (l(), u("p", rs, "Loading...")) : f("", !0),
|
|
501
|
+
t.pw.error ? (l(), u("p", is, "Error load file")) : f("", !0)
|
|
502
502
|
]);
|
|
503
503
|
}
|
|
504
|
-
const os = /* @__PURE__ */
|
|
504
|
+
const os = /* @__PURE__ */ g(ns, [["render", as], ["__scopeId", "data-v-bdbf1475"]]), ls = {
|
|
505
505
|
//InputAddress,
|
|
506
506
|
InputText: Wn,
|
|
507
507
|
InputToggle: Fn,
|
|
@@ -541,18 +541,18 @@ function hs(t, e, n, s, r, i) {
|
|
|
541
541
|
n.placeholder ? (l(), u("p", {
|
|
542
542
|
key: 0,
|
|
543
543
|
class: I(["widget-input__placeholder", { "widget-input__placeholder_error": n.error }])
|
|
544
|
-
}, y(n.placeholder), 3)) :
|
|
544
|
+
}, y(n.placeholder), 3)) : f("", !0)
|
|
545
545
|
]);
|
|
546
546
|
}
|
|
547
|
-
const _s = /* @__PURE__ */
|
|
547
|
+
const _s = /* @__PURE__ */ g(cs, [["render", hs], ["__scopeId", "data-v-1e3f1057"]]);
|
|
548
548
|
const gs = {
|
|
549
549
|
components: { Icon: R, WidgetInputContainer: _s },
|
|
550
|
-
mixins: [le,
|
|
550
|
+
mixins: [le, Ye],
|
|
551
551
|
name: "InputText"
|
|
552
552
|
}, ms = ["type", "value"];
|
|
553
553
|
function ys(t, e, n, s, r, i) {
|
|
554
|
-
const a =
|
|
555
|
-
return l(),
|
|
554
|
+
const a = j("icon"), o = j("widget-input-container");
|
|
555
|
+
return l(), w(o, {
|
|
556
556
|
placeholder: t.placeholder,
|
|
557
557
|
error: !!t.errorMessage
|
|
558
558
|
}, {
|
|
@@ -569,25 +569,25 @@ function ys(t, e, n, s, r, i) {
|
|
|
569
569
|
class: "input-text__password",
|
|
570
570
|
onClick: e[2] || (e[2] = (c) => t.togglePasswordVisible())
|
|
571
571
|
}, [
|
|
572
|
-
|
|
572
|
+
S(a, {
|
|
573
573
|
class: "cursor_pointer",
|
|
574
574
|
name: t.isPasswordVisible ? "eye-crossed" : "eye"
|
|
575
575
|
}, null, 8, ["name"])
|
|
576
|
-
])) :
|
|
576
|
+
])) : f("", !0)
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
579
|
}, 8, ["placeholder", "error"]);
|
|
580
580
|
}
|
|
581
|
-
const vs = /* @__PURE__ */
|
|
581
|
+
const vs = /* @__PURE__ */ g(gs, [["render", ys], ["__scopeId", "data-v-212b50e2"]]), ws = {
|
|
582
582
|
InputText: vs
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function Ve(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 bs = 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(
|
|
613
|
+
return console.log("pretty value"), this.pretty(Ve(this.modelValue, this.arrayInputPrettyModifiers));
|
|
614
614
|
},
|
|
615
615
|
arrayInputModifiers() {
|
|
616
616
|
let t = [];
|
|
617
|
-
return (this.numeric || this.prettyNumeric) && t.push(
|
|
617
|
+
return (this.numeric || this.prettyNumeric) && t.push(Ke), t;
|
|
618
618
|
},
|
|
619
619
|
arrayInputPrettyModifiers() {
|
|
620
620
|
let t = [];
|
|
621
|
-
return this.prettyNumeric && t.push(
|
|
621
|
+
return this.prettyNumeric && t.push(dt), t;
|
|
622
622
|
}
|
|
623
623
|
},
|
|
624
624
|
methods: {
|
|
625
625
|
//Not used
|
|
626
626
|
onChange(t) {
|
|
627
|
-
let e = this.modify(
|
|
627
|
+
let e = this.modify(Ve(t.target.value, this.arrayInputModifiers));
|
|
628
628
|
this.input(e);
|
|
629
629
|
},
|
|
630
630
|
onInput() {
|
|
@@ -632,11 +632,11 @@ 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(
|
|
636
|
-
this.input(e), this.$refs.input.value = this.pretty(
|
|
635
|
+
let e = this.modify(Ve(t.target.value, this.arrayInputModifiers));
|
|
636
|
+
this.input(e), this.$refs.input.value = this.pretty(Ve(this.modelValue, this.arrayInputPrettyModifiers));
|
|
637
637
|
}
|
|
638
638
|
},
|
|
639
|
-
mixins: [le,
|
|
639
|
+
mixins: [le, Ye],
|
|
640
640
|
name: "InputText"
|
|
641
641
|
}), $s = {
|
|
642
642
|
key: 0,
|
|
@@ -649,12 +649,12 @@ const bs = $({
|
|
|
649
649
|
class: "input-text__error text_sm color__text_red"
|
|
650
650
|
};
|
|
651
651
|
function Is(t, e, n, s, r, i) {
|
|
652
|
-
const a =
|
|
652
|
+
const a = j("icon");
|
|
653
653
|
return l(), u(O, null, [
|
|
654
654
|
t.title ? (l(), u("p", $s, [
|
|
655
|
-
|
|
656
|
-
t.required ? (l(), u("span", Es, "*")) :
|
|
657
|
-
])) :
|
|
655
|
+
Ie(y(t.title) + " ", 1),
|
|
656
|
+
t.required ? (l(), u("span", Es, "*")) : f("", !0)
|
|
657
|
+
])) : f("", !0),
|
|
658
658
|
d("div", {
|
|
659
659
|
class: "input-text-container flex",
|
|
660
660
|
disabled: t.disabled || t.isInsideDisabled,
|
|
@@ -675,16 +675,16 @@ function Is(t, e, n, s, r, i) {
|
|
|
675
675
|
class: "input-text__password",
|
|
676
676
|
onClick: e[1] || (e[1] = (o) => t.togglePasswordVisible())
|
|
677
677
|
}, [
|
|
678
|
-
|
|
678
|
+
S(a, {
|
|
679
679
|
class: "cursor_pointer",
|
|
680
680
|
name: t.isPasswordVisible ? "eye-crossed" : "eye"
|
|
681
681
|
}, null, 8, ["name"])
|
|
682
|
-
])) :
|
|
683
|
-
t.errorMessage ? (l(), u("p", Cs, y(t.errorMessage), 1)) :
|
|
682
|
+
])) : f("", !0),
|
|
683
|
+
t.errorMessage ? (l(), u("p", Cs, y(t.errorMessage), 1)) : f("", !0)
|
|
684
684
|
], 8, Ts)
|
|
685
685
|
], 64);
|
|
686
686
|
}
|
|
687
|
-
const As = /* @__PURE__ */
|
|
687
|
+
const As = /* @__PURE__ */ g(bs, [["render", Is], ["__scopeId", "data-v-9c3e5ea6"]]), ks = {
|
|
688
688
|
InputText: As
|
|
689
689
|
}, Ns = {
|
|
690
690
|
default: ls,
|
|
@@ -706,11 +706,11 @@ const Ps = {
|
|
|
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 =
|
|
709
|
+
}), n = V(() => Array.isArray(t.values) ? t.values : typeof t.values == "string" ? { title: t.values } : [t.values]), s = B(!1);
|
|
710
710
|
function r(a = !s.value) {
|
|
711
|
-
s.value = a, a &&
|
|
711
|
+
s.value = a, a && Ae(i.value, () => r(!1));
|
|
712
712
|
}
|
|
713
|
-
const i =
|
|
713
|
+
const i = B(null);
|
|
714
714
|
return {
|
|
715
715
|
isActive: s,
|
|
716
716
|
array: n,
|
|
@@ -722,7 +722,7 @@ const Ps = {
|
|
|
722
722
|
name: "Button"
|
|
723
723
|
}, Os = { class: "widget-button-wrap flex" }, Rs = ["onClick"];
|
|
724
724
|
function Vs(t, e, n, s, r, i) {
|
|
725
|
-
const a =
|
|
725
|
+
const a = j("icon");
|
|
726
726
|
return l(), u("div", Os, [
|
|
727
727
|
d("div", {
|
|
728
728
|
class: I(["widget-button flex", { active: s.isActive }]),
|
|
@@ -730,13 +730,13 @@ function Vs(t, e, n, s, r, i) {
|
|
|
730
730
|
}, [
|
|
731
731
|
d("div", {
|
|
732
732
|
class: "widget-button__list flex_column",
|
|
733
|
-
style:
|
|
733
|
+
style: ct({ maxHeight: s.maxHeight })
|
|
734
734
|
}, [
|
|
735
735
|
n.title ? (l(), 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)) :
|
|
739
|
+
}, y(n.title), 1)) : f("", !0),
|
|
740
740
|
(l(!0), u(O, null, M(s.array, (o, c) => (l(), u("span", {
|
|
741
741
|
class: "widget-button__list-elem cursor_pointer",
|
|
742
742
|
onClick: (p) => (o.callback(), s.toggle(!1)),
|
|
@@ -748,15 +748,15 @@ function Vs(t, e, n, s, r, i) {
|
|
|
748
748
|
class: "widget-button__toggle flex flex_center cursor_pointer",
|
|
749
749
|
onClick: e[1] || (e[1] = mn((o) => s.toggle(), ["stop"]))
|
|
750
750
|
}, [
|
|
751
|
-
|
|
751
|
+
S(a, {
|
|
752
752
|
class: "widget-button__toggle-icon",
|
|
753
753
|
name: "angle-small-down"
|
|
754
754
|
})
|
|
755
|
-
])) :
|
|
755
|
+
])) : f("", !0)
|
|
756
756
|
], 2)
|
|
757
757
|
]);
|
|
758
758
|
}
|
|
759
|
-
const zt = /* @__PURE__ */
|
|
759
|
+
const zt = /* @__PURE__ */ g(Ps, [["render", Vs], ["__scopeId", "data-v-b6be5c12"]]);
|
|
760
760
|
const Ls = {
|
|
761
761
|
props: {
|
|
762
762
|
icon: String,
|
|
@@ -766,29 +766,29 @@ const Ls = {
|
|
|
766
766
|
components: { Icon: R }
|
|
767
767
|
};
|
|
768
768
|
function Ws(t, e, n, s, r, i) {
|
|
769
|
-
const a =
|
|
769
|
+
const a = j("icon");
|
|
770
770
|
return l(), 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
|
+
S(a, { name: n.icon }, null, 8, ["name"])
|
|
775
775
|
]);
|
|
776
776
|
}
|
|
777
|
-
const Ds = /* @__PURE__ */
|
|
777
|
+
const Ds = /* @__PURE__ */ g(Ls, [["render", Ws], ["__scopeId", "data-v-73f7eb9f"]]);
|
|
778
778
|
const Ms = {
|
|
779
779
|
props: {
|
|
780
780
|
title: String
|
|
781
781
|
},
|
|
782
782
|
name: "WidgetFormTitle"
|
|
783
783
|
}, Fs = { class: "form-title" }, js = { class: "title_lg color__text_black margin-0" };
|
|
784
|
-
function
|
|
784
|
+
function Us(t, e, n, s, r, i) {
|
|
785
785
|
return l(), u("div", Fs, [
|
|
786
786
|
d("h2", js, y(n.title), 1)
|
|
787
787
|
]);
|
|
788
788
|
}
|
|
789
|
-
const
|
|
789
|
+
const xs = /* @__PURE__ */ g(Ms, [["render", Us], ["__scopeId", "data-v-c91ffa31"]]);
|
|
790
790
|
const Bs = {
|
|
791
|
-
components: { WidgetFormTitle:
|
|
791
|
+
components: { WidgetFormTitle: xs, WidgetFormFunctionItem: Ds, WidgetButton: zt },
|
|
792
792
|
props: {
|
|
793
793
|
title: String,
|
|
794
794
|
button: {
|
|
@@ -800,18 +800,18 @@ const Bs = {
|
|
|
800
800
|
name: "WidgetForm"
|
|
801
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
802
|
function Js(t, e, n, s, r, i) {
|
|
803
|
-
const a =
|
|
803
|
+
const a = j("widget-form-title"), o = j("widget-button"), c = j("widget-form-function-item");
|
|
804
804
|
return l(), u("div", qs, [
|
|
805
805
|
d("div", Gs, [
|
|
806
|
-
|
|
807
|
-
Array.isArray(n.button) && n.button.length || !Array.isArray(n.button) && n.button ? (l(),
|
|
806
|
+
S(a, { title: n.title }, null, 8, ["title"]),
|
|
807
|
+
Array.isArray(n.button) && n.button.length || !Array.isArray(n.button) && n.button ? (l(), w(o, {
|
|
808
808
|
key: 0,
|
|
809
809
|
class: "widget-form__head-button",
|
|
810
810
|
values: n.button
|
|
811
|
-
}, null, 8, ["values"])) :
|
|
811
|
+
}, null, 8, ["values"])) : f("", !0),
|
|
812
812
|
d("div", zs, [
|
|
813
|
-
(l(!0), u(O, null, M(n.functions, (p,
|
|
814
|
-
key:
|
|
813
|
+
(l(!0), u(O, null, M(n.functions, (p, h) => (l(), w(c, {
|
|
814
|
+
key: h,
|
|
815
815
|
icon: p.icon,
|
|
816
816
|
func: p.callback
|
|
817
817
|
}, null, 8, ["icon", "func"]))), 128))
|
|
@@ -822,7 +822,7 @@ function Js(t, e, n, s, r, i) {
|
|
|
822
822
|
])
|
|
823
823
|
]);
|
|
824
824
|
}
|
|
825
|
-
const Ks = /* @__PURE__ */
|
|
825
|
+
const Ks = /* @__PURE__ */ g(Bs, [["render", Js], ["__scopeId", "data-v-c3e88e10"]]), Ys = {
|
|
826
826
|
default: {
|
|
827
827
|
WidgetForm: Ks
|
|
828
828
|
}
|
|
@@ -860,13 +860,13 @@ function sr(t, e, n, s, r, i) {
|
|
|
860
860
|
n.subTitle ? (l(), u("div", er, [
|
|
861
861
|
d("span", tr, y(n.subTitle), 1),
|
|
862
862
|
U(t.$slots, "centerRight", {}, void 0, !0)
|
|
863
|
-
])) :
|
|
863
|
+
])) : f("", !0),
|
|
864
864
|
t.$slots.right ? (l(), u("div", nr, [
|
|
865
865
|
U(t.$slots, "right", {}, void 0, !0)
|
|
866
|
-
])) :
|
|
866
|
+
])) : f("", !0)
|
|
867
867
|
], 2);
|
|
868
868
|
}
|
|
869
|
-
const rr = /* @__PURE__ */
|
|
869
|
+
const rr = /* @__PURE__ */ g(Xs, [["render", sr], ["__scopeId", "data-v-9264f6f4"]]);
|
|
870
870
|
const ir = {
|
|
871
871
|
name: "ContainerAuthView"
|
|
872
872
|
}, ar = { class: "container-auth-wrap" }, or = { class: "container-auth-sidebar" }, lr = { class: "container-auth-main" };
|
|
@@ -880,10 +880,10 @@ function cr(t, e, n, s, r, i) {
|
|
|
880
880
|
])
|
|
881
881
|
]);
|
|
882
882
|
}
|
|
883
|
-
const ur = /* @__PURE__ */
|
|
883
|
+
const ur = /* @__PURE__ */ g(ir, [["render", cr], ["__scopeId", "data-v-0b1a5e81"]]), dr = {
|
|
884
884
|
ContainerFormElem: rr,
|
|
885
885
|
ContainerAuthView: ur
|
|
886
|
-
}, pr = /* @__PURE__ */
|
|
886
|
+
}, pr = /* @__PURE__ */ b({
|
|
887
887
|
__name: "WidgetSpinner",
|
|
888
888
|
props: {
|
|
889
889
|
color: {}
|
|
@@ -891,11 +891,11 @@ const ur = /* @__PURE__ */ m(ir, [["render", cr], ["__scopeId", "data-v-0b1a5e81
|
|
|
891
891
|
setup(t) {
|
|
892
892
|
return (e, n) => (l(), u("div", {
|
|
893
893
|
class: "loader",
|
|
894
|
-
style:
|
|
894
|
+
style: ct({ "border-left": `1.1em solid ${e.color ? e.color : "#fff"}` })
|
|
895
895
|
}, null, 4));
|
|
896
896
|
}
|
|
897
897
|
});
|
|
898
|
-
const he = /* @__PURE__ */
|
|
898
|
+
const he = /* @__PURE__ */ g(pr, [["__scopeId", "data-v-12ff0501"]]), fr = { class: "button-element" }, hr = /* @__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
|
-
|
|
911
|
+
Je(() => {
|
|
912
912
|
e.default && document.addEventListener("keypress", n);
|
|
913
913
|
}), yn(() => {
|
|
914
914
|
document.removeEventListener("keypress", n);
|
|
915
915
|
});
|
|
916
|
-
const s =
|
|
916
|
+
const s = pt(e.callback);
|
|
917
917
|
return (r, i) => (l(), 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(),
|
|
921
|
+
P(s).wait || r.wait ? (l(), w(he, {
|
|
922
922
|
key: 0,
|
|
923
923
|
class: "button-spinner"
|
|
924
|
-
})) :
|
|
924
|
+
})) : f("", !0),
|
|
925
925
|
d("button", fr, [
|
|
926
|
-
|
|
926
|
+
Ie(y(r.title) + " ", 1),
|
|
927
927
|
U(r.$slots, "default", {}, void 0, !0)
|
|
928
928
|
])
|
|
929
929
|
]));
|
|
930
930
|
}
|
|
931
931
|
});
|
|
932
|
-
const _r = /* @__PURE__ */
|
|
932
|
+
const _r = /* @__PURE__ */ g(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 = {
|
|
933
933
|
key: 0,
|
|
934
934
|
class: "button__size-progress"
|
|
935
|
-
}, $r = /* @__PURE__ */
|
|
935
|
+
}, $r = /* @__PURE__ */ b({
|
|
936
936
|
__name: "WidgetMultiButton",
|
|
937
937
|
props: {
|
|
938
938
|
title: {},
|
|
939
939
|
array: {}
|
|
940
940
|
},
|
|
941
941
|
setup(t) {
|
|
942
|
-
const e =
|
|
942
|
+
const e = pt(), n = A({
|
|
943
943
|
active: !1
|
|
944
944
|
});
|
|
945
945
|
function s(i = !n.active) {
|
|
@@ -957,7 +957,7 @@ const _r = /* @__PURE__ */ m(hr, [["__scopeId", "data-v-937d2e62"]]), gr = { cla
|
|
|
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)) :
|
|
960
|
+
}, y(i.title), 1)) : f("", !0),
|
|
961
961
|
d("div", yr, [
|
|
962
962
|
(l(!0), u(O, null, M(i.array, (o, c) => (l(), u("p", {
|
|
963
963
|
class: "button__content-title widget-multi-button-row",
|
|
@@ -968,23 +968,23 @@ const _r = /* @__PURE__ */ m(hr, [["__scopeId", "data-v-937d2e62"]]), gr = { cla
|
|
|
968
968
|
], 2),
|
|
969
969
|
d("div", wr, [
|
|
970
970
|
P(e).wait ? (l(), u("div", br, [
|
|
971
|
-
|
|
971
|
+
S(he, { class: "button-spinner" })
|
|
972
972
|
])) : i.array && i.array.length > 1 ? (l(), 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())
|
|
976
976
|
}, [
|
|
977
|
-
|
|
977
|
+
S(R, {
|
|
978
978
|
class: "button__toggle-icon",
|
|
979
979
|
name: "angle-small-down"
|
|
980
980
|
})
|
|
981
|
-
], 2)) :
|
|
981
|
+
], 2)) : f("", !0)
|
|
982
982
|
])
|
|
983
983
|
])
|
|
984
984
|
]));
|
|
985
985
|
}
|
|
986
986
|
});
|
|
987
|
-
const Ht = /* @__PURE__ */
|
|
987
|
+
const Ht = /* @__PURE__ */ g($r, [["__scopeId", "data-v-13176c56"]]), Er = {
|
|
988
988
|
WidgetButton: _r,
|
|
989
989
|
WidgetMultiButton: Ht
|
|
990
990
|
}, Tr = {
|
|
@@ -1028,7 +1028,7 @@ const Ht = /* @__PURE__ */ m($r, [["__scopeId", "data-v-13176c56"]]), Er = {
|
|
|
1028
1028
|
};
|
|
1029
1029
|
Jt.cardId = 1;
|
|
1030
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__ */
|
|
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__ */ b({
|
|
1032
1032
|
__name: "WidgetError",
|
|
1033
1033
|
props: {
|
|
1034
1034
|
isGroup: { type: Boolean },
|
|
@@ -1045,7 +1045,7 @@ const Ir = { class: "widget-error" }, Ar = { class: "widget-error-wrap" }, kr =
|
|
|
1045
1045
|
key: 0,
|
|
1046
1046
|
onClick: s[0] || (s[0] = (r) => e("toggle")),
|
|
1047
1047
|
class: "article-details"
|
|
1048
|
-
}, "See details")) :
|
|
1048
|
+
}, "See details")) : f("", !0),
|
|
1049
1049
|
d("div", Pr, [
|
|
1050
1050
|
d("div", {
|
|
1051
1051
|
class: "widget-error-close",
|
|
@@ -1056,10 +1056,10 @@ const Ir = { class: "widget-error" }, Ar = { class: "widget-error-wrap" }, kr =
|
|
|
1056
1056
|
]));
|
|
1057
1057
|
}
|
|
1058
1058
|
});
|
|
1059
|
-
const St = /* @__PURE__ */
|
|
1059
|
+
const St = /* @__PURE__ */ g(Or, [["__scopeId", "data-v-8a0a0924"]]), Rr = {
|
|
1060
1060
|
key: 0,
|
|
1061
1061
|
class: "widget-error-details"
|
|
1062
|
-
}, Vr = /* @__PURE__ */
|
|
1062
|
+
}, Vr = /* @__PURE__ */ b({
|
|
1063
1063
|
__name: "WidgetErrorGroup",
|
|
1064
1064
|
props: {
|
|
1065
1065
|
card: {}
|
|
@@ -1069,9 +1069,9 @@ const St = /* @__PURE__ */ m(Or, [["__scopeId", "data-v-8a0a0924"]]), Rr = {
|
|
|
1069
1069
|
const n = t, s = V(() => {
|
|
1070
1070
|
var i;
|
|
1071
1071
|
return !!((i = n.card.children) != null && i.length);
|
|
1072
|
-
}), r =
|
|
1072
|
+
}), r = B(!0);
|
|
1073
1073
|
return (i, a) => (l(), u("div", null, [
|
|
1074
|
-
(l(),
|
|
1074
|
+
(l(), w(St, {
|
|
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)),
|
|
@@ -1079,9 +1079,9 @@ const St = /* @__PURE__ */ m(Or, [["__scopeId", "data-v-8a0a0924"]]), Rr = {
|
|
|
1079
1079
|
"is-group": s.value
|
|
1080
1080
|
}, null, 8, ["message", "is-group"])),
|
|
1081
1081
|
!r.value && i.card.children ? (l(), u("div", Rr, [
|
|
1082
|
-
|
|
1082
|
+
S(Dt, { name: "fade" }, {
|
|
1083
1083
|
default: fe(() => [
|
|
1084
|
-
(l(!0), u(O, null, M(i.card.children, (o) => (l(),
|
|
1084
|
+
(l(!0), u(O, null, M(i.card.children, (o) => (l(), w(St, {
|
|
1085
1085
|
key: o.id,
|
|
1086
1086
|
message: o.msg,
|
|
1087
1087
|
onClose: (c) => e("closeChild", o.id)
|
|
@@ -1089,17 +1089,17 @@ const St = /* @__PURE__ */ m(Or, [["__scopeId", "data-v-8a0a0924"]]), Rr = {
|
|
|
1089
1089
|
]),
|
|
1090
1090
|
_: 1
|
|
1091
1091
|
})
|
|
1092
|
-
])) :
|
|
1092
|
+
])) : f("", !0)
|
|
1093
1093
|
]));
|
|
1094
1094
|
}
|
|
1095
1095
|
});
|
|
1096
|
-
const Lr = /* @__PURE__ */
|
|
1096
|
+
const Lr = /* @__PURE__ */ g(Vr, [["__scopeId", "data-v-aa732044"]]), Wr = { class: "container-errors" }, Dr = /* @__PURE__ */ b({
|
|
1097
1097
|
__name: "WidgetNotificationSystem",
|
|
1098
1098
|
setup(t) {
|
|
1099
1099
|
return (e, n) => (l(), u("div", Wr, [
|
|
1100
|
-
|
|
1100
|
+
S(Dt, { name: "fade" }, {
|
|
1101
1101
|
default: fe(() => [
|
|
1102
|
-
(l(!0), u(O, null, M(P(D).store, (s) => (l(),
|
|
1102
|
+
(l(!0), u(O, null, M(P(D).store, (s) => (l(), w(Lr, {
|
|
1103
1103
|
key: s.id,
|
|
1104
1104
|
card: s,
|
|
1105
1105
|
onCloseCard: (r) => P(D).remove(s.id),
|
|
@@ -1111,7 +1111,7 @@ const Lr = /* @__PURE__ */ m(Vr, [["__scopeId", "data-v-aa732044"]]), Wr = { cla
|
|
|
1111
1111
|
]));
|
|
1112
1112
|
}
|
|
1113
1113
|
});
|
|
1114
|
-
const Mr = /* @__PURE__ */
|
|
1114
|
+
const Mr = /* @__PURE__ */ g(Dr, [["__scopeId", "data-v-8e9870dd"]]), Fr = {
|
|
1115
1115
|
default: Mr
|
|
1116
1116
|
};
|
|
1117
1117
|
let jr = {
|
|
@@ -1123,10 +1123,10 @@ let jr = {
|
|
|
1123
1123
|
icons: Tr,
|
|
1124
1124
|
errorSystem: Fr
|
|
1125
1125
|
};
|
|
1126
|
-
const
|
|
1126
|
+
const Ur = {
|
|
1127
1127
|
inputs: Sn
|
|
1128
1128
|
};
|
|
1129
|
-
function
|
|
1129
|
+
function ke(t, e) {
|
|
1130
1130
|
if (typeof t != "object" || t === null)
|
|
1131
1131
|
return;
|
|
1132
1132
|
if (e in t)
|
|
@@ -1134,110 +1134,110 @@ function Ne(t, e) {
|
|
|
1134
1134
|
let n = e.indexOf(".");
|
|
1135
1135
|
if (n > -1) {
|
|
1136
1136
|
const s = e.substring(0, n);
|
|
1137
|
-
return s in t ?
|
|
1137
|
+
return s in t ? ke(t[s], e.substr(n + 1)) : void 0;
|
|
1138
1138
|
}
|
|
1139
1139
|
return t[e];
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function ft(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
|
|
1144
|
+
const Yt = class T extends Error {
|
|
1145
1145
|
constructor(e, n = null) {
|
|
1146
|
-
super(), this.message = e, this.details = n, this.id =
|
|
1146
|
+
super(), this.message = e, this.details = n, this.id = T.ID++;
|
|
1147
1147
|
}
|
|
1148
1148
|
/**
|
|
1149
1149
|
* @description Не удалось найти родительскую форму. Обычно ошибка используется при вызове Form.getParentForm();
|
|
1150
1150
|
* */
|
|
1151
1151
|
static ParentFormNotFound() {
|
|
1152
|
-
return new
|
|
1152
|
+
return new T("Can't found parent form.");
|
|
1153
1153
|
}
|
|
1154
1154
|
/**
|
|
1155
1155
|
* ОДИН ИЗ ЭЛЕМЕНТОВ, КОТОРЫЙ ПЫТАЕТСЯ ПОДПИСАТЬСЯ НА ФОРМУ
|
|
1156
1156
|
* НЕ ИМЕЕТ ПАРАМЕТРА NAME.
|
|
1157
1157
|
* */
|
|
1158
1158
|
static UndefinedNameOfCompositeFormController(e) {
|
|
1159
|
-
return new
|
|
1159
|
+
return new T("Composite object name is undefined", e);
|
|
1160
1160
|
}
|
|
1161
1161
|
static EntityWithoutName(e) {
|
|
1162
|
-
return new
|
|
1162
|
+
return new T("'Entity doesn't have a name", e);
|
|
1163
1163
|
}
|
|
1164
1164
|
static NotResolvedNameEventEmitter(e) {
|
|
1165
|
-
return new
|
|
1165
|
+
return new T(`'${e}' is not a valid Event emitter name`);
|
|
1166
1166
|
}
|
|
1167
1167
|
static FormIsNotValidated(e) {
|
|
1168
|
-
return new
|
|
1168
|
+
return new T("Form is not validated", e);
|
|
1169
1169
|
}
|
|
1170
1170
|
static ListWorkerIsRunningOrEnd(e) {
|
|
1171
|
-
return new
|
|
1171
|
+
return new T("List data request is running or already done", e);
|
|
1172
1172
|
}
|
|
1173
1173
|
static ObjectIdNotNumber(e) {
|
|
1174
|
-
return new
|
|
1174
|
+
return new T(`${e} (id) is not a number`);
|
|
1175
1175
|
}
|
|
1176
1176
|
static UndefinedErrorId(e, n) {
|
|
1177
|
-
return
|
|
1177
|
+
return T.ApiNotAvailable();
|
|
1178
1178
|
}
|
|
1179
1179
|
static ApiError(e) {
|
|
1180
|
-
return new
|
|
1180
|
+
return new T("Request error", e);
|
|
1181
1181
|
}
|
|
1182
1182
|
static ApiNotAvailable() {
|
|
1183
|
-
return new
|
|
1183
|
+
return new T(`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 ?
|
|
1187
|
+
return !e && !n ? T.ApiNotAvailable() : new T(e || "Authorization Error", n);
|
|
1188
1188
|
}
|
|
1189
1189
|
static ApiResponseParseFailed() {
|
|
1190
|
-
return
|
|
1190
|
+
return T.ApiNotAvailable();
|
|
1191
1191
|
}
|
|
1192
1192
|
static MissingIdInValuesEntity(e) {
|
|
1193
|
-
return new
|
|
1193
|
+
return new T(
|
|
1194
1194
|
"Object doesn't have id",
|
|
1195
1195
|
e
|
|
1196
1196
|
);
|
|
1197
1197
|
}
|
|
1198
1198
|
static ObjectWithIdNotFound(e, n) {
|
|
1199
|
-
return new
|
|
1199
|
+
return new T(`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
|
|
1206
|
+
return new T("Object is not found.", {
|
|
1207
1207
|
object: e,
|
|
1208
1208
|
array: n
|
|
1209
1209
|
});
|
|
1210
1210
|
}
|
|
1211
1211
|
static EntityWithoutId(e) {
|
|
1212
|
-
return new
|
|
1212
|
+
return new T("Entity doesn't have id.", e);
|
|
1213
1213
|
}
|
|
1214
1214
|
static NotFoundedTableIndex(e, n) {
|
|
1215
|
-
return new
|
|
1215
|
+
return new T(`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
|
|
1222
|
+
return new T(e, n);
|
|
1223
1223
|
}
|
|
1224
1224
|
static TableArrayAlreadyIncludeProvidedIndexValue(e, n, s) {
|
|
1225
|
-
return new
|
|
1225
|
+
return new T(`Array already includes the element with value ${e}`, { array: n, table: s });
|
|
1226
1226
|
}
|
|
1227
1227
|
static MetadataEntityIsNotAvailable(e) {
|
|
1228
|
-
return new
|
|
1228
|
+
return new T(`Metadata for the ${e} is not currently available.`);
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
1231
|
Yt.ID = 0;
|
|
1232
|
-
let
|
|
1232
|
+
let x = Yt;
|
|
1233
1233
|
const Xt = "Please try again later or submit a feedback if problem doesn't go.";
|
|
1234
|
-
function
|
|
1235
|
-
return typeof t == "string" ?
|
|
1234
|
+
function Ge(t) {
|
|
1235
|
+
return typeof t == "string" ? tt(t) : xr(t) ? tt(t.message) : tt(Xt);
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function xr(t) {
|
|
1238
1238
|
return !!(typeof t == "object" && Object.hasOwnProperty.call(t, "message") && t !== null);
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function tt(t, e = []) {
|
|
1241
1241
|
return {
|
|
1242
1242
|
message: t,
|
|
1243
1243
|
details: e
|
|
@@ -1245,13 +1245,13 @@ function nt(t, e = []) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
class Br {
|
|
1247
1247
|
static getClientData() {
|
|
1248
|
-
return
|
|
1248
|
+
return _("/close-api/client-content");
|
|
1249
1249
|
}
|
|
1250
1250
|
/**
|
|
1251
1251
|
* @description Получение навигационного меню для текущего контекста.
|
|
1252
1252
|
* */
|
|
1253
1253
|
static getNavigation() {
|
|
1254
|
-
return
|
|
1254
|
+
return _("/close-api/client/navigation");
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
/*!
|
|
@@ -1272,7 +1272,7 @@ const Ct = function(t, e) {
|
|
|
1272
1272
|
}, kt = function() {
|
|
1273
1273
|
this.events = {};
|
|
1274
1274
|
};
|
|
1275
|
-
class
|
|
1275
|
+
class z {
|
|
1276
1276
|
constructor() {
|
|
1277
1277
|
this.events = {};
|
|
1278
1278
|
}
|
|
@@ -1289,42 +1289,42 @@ class H {
|
|
|
1289
1289
|
kt.call(this);
|
|
1290
1290
|
}
|
|
1291
1291
|
static on(e, n) {
|
|
1292
|
-
return Ct.call(
|
|
1292
|
+
return Ct.call(z, e, n);
|
|
1293
1293
|
}
|
|
1294
1294
|
static emit(e, n) {
|
|
1295
|
-
return It.call(
|
|
1295
|
+
return It.call(z, e, n);
|
|
1296
1296
|
}
|
|
1297
1297
|
static off(e, n) {
|
|
1298
|
-
return At.call(
|
|
1298
|
+
return At.call(z, e, n);
|
|
1299
1299
|
}
|
|
1300
1300
|
static cleanEvents() {
|
|
1301
|
-
kt.call(
|
|
1301
|
+
kt.call(z);
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
|
|
1304
|
+
z.events = {};
|
|
1305
1305
|
var Zt = (t, e, n) => {
|
|
1306
1306
|
if (!e.has(t))
|
|
1307
1307
|
throw TypeError("Cannot " + n);
|
|
1308
|
-
},
|
|
1308
|
+
}, Le = (t, e, n) => (Zt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), nt = (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
|
-
},
|
|
1313
|
-
const ce = class
|
|
1312
|
+
}, st = (t, e, n, s) => (Zt(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), ye, De, Me;
|
|
1313
|
+
const ce = class G extends z {
|
|
1314
1314
|
constructor() {
|
|
1315
|
-
super(...arguments),
|
|
1315
|
+
super(...arguments), nt(this, ye, void 0), nt(this, De, "front"), this.organizations = [], nt(this, Me, !1);
|
|
1316
1316
|
}
|
|
1317
1317
|
set language(e) {
|
|
1318
|
-
localStorage.setItem(
|
|
1318
|
+
localStorage.setItem(G.LOCALSTORAGE_LANGUAGE_KEY, e);
|
|
1319
1319
|
}
|
|
1320
1320
|
get language() {
|
|
1321
|
-
return localStorage.getItem(
|
|
1321
|
+
return localStorage.getItem(G.LOCALSTORAGE_LANGUAGE_KEY) || G.DEFAULT_LANGUAGE;
|
|
1322
1322
|
}
|
|
1323
1323
|
/**
|
|
1324
1324
|
* @description Проверяет находится ли язык в local-storage
|
|
1325
1325
|
* */
|
|
1326
1326
|
checkLanguageInStorage() {
|
|
1327
|
-
return !!localStorage.getItem(
|
|
1327
|
+
return !!localStorage.getItem(G.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
|
-
|
|
1335
|
+
st(this, ye, e);
|
|
1336
1336
|
}
|
|
1337
1337
|
/**
|
|
1338
1338
|
* @description VueRouter of Application
|
|
1339
1339
|
* */
|
|
1340
1340
|
get router() {
|
|
1341
|
-
if (!
|
|
1341
|
+
if (!Le(this, ye))
|
|
1342
1342
|
throw new Error("Router was not founded. Please set router: Manager.router = router: VueRouter");
|
|
1343
|
-
return
|
|
1343
|
+
return Le(this, ye);
|
|
1344
1344
|
}
|
|
1345
1345
|
set type(e) {
|
|
1346
|
-
|
|
1346
|
+
st(this, De, e);
|
|
1347
1347
|
}
|
|
1348
1348
|
get type() {
|
|
1349
|
-
return
|
|
1349
|
+
return Le(this, De);
|
|
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
|
-
|
|
1358
|
+
st(this, Me, e), this.emit(G.EVENT_READY_UPDATE, e);
|
|
1359
1359
|
}
|
|
1360
1360
|
get ready() {
|
|
1361
|
-
return
|
|
1361
|
+
return Le(this, Me);
|
|
1362
1362
|
}
|
|
1363
1363
|
onReady(e) {
|
|
1364
|
-
return this.on(
|
|
1364
|
+
return this.on(G.EVENT_READY_UPDATE, e);
|
|
1365
1365
|
}
|
|
1366
1366
|
onupdateContext(e) {
|
|
1367
|
-
return this.on(
|
|
1367
|
+
return this.on(G.EVENT_CONTEXT_UPDATE, e);
|
|
1368
1368
|
}
|
|
1369
1369
|
onupdateData(e) {
|
|
1370
|
-
return this.on(
|
|
1370
|
+
return this.on(G.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(
|
|
1378
|
+
this.contextId = Number(e), localStorage.setItem(G.CURRENT_CONTEXT_KEY, String(e)), this.emit(G.EVENT_CONTEXT_UPDATE, e), console.log(`Current context id %c${e}`, "color: purple");
|
|
1379
1379
|
}
|
|
1380
1380
|
/**
|
|
1381
1381
|
* @description Возвращает текущий контекст. В случае, если контекст ещё не получен, или (Внутрення ошибка) не найде
|
|
@@ -1392,10 +1392,10 @@ 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(
|
|
1395
|
+
const n = Number.parseInt(localStorage.getItem(G.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",
|
|
1398
|
+
D.add("error", x.ApiNotAvailable().message);
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
1401
|
loadCustomerData() {
|
|
@@ -1428,8 +1428,8 @@ const ce = class z extends H {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
};
|
|
1430
1430
|
ye = /* @__PURE__ */ new WeakMap();
|
|
1431
|
+
De = /* @__PURE__ */ new WeakMap();
|
|
1431
1432
|
Me = /* @__PURE__ */ new WeakMap();
|
|
1432
|
-
Fe = /* @__PURE__ */ new WeakMap();
|
|
1433
1433
|
ce.DEFAULT_LANGUAGE = "en";
|
|
1434
1434
|
ce.LOCALSTORAGE_LANGUAGE_KEY = "CurrentLanguage";
|
|
1435
1435
|
ce.EVENT_CONTEXT_UPDATE = "event:context-update";
|
|
@@ -1437,15 +1437,15 @@ ce.EVENT_READY_UPDATE = "event:ready-update";
|
|
|
1437
1437
|
ce.EVENT_DATA_UPDATE = "event:data-update";
|
|
1438
1438
|
ce.CURRENT_CONTEXT_KEY = "CurrentContext";
|
|
1439
1439
|
let qr = ce;
|
|
1440
|
-
const
|
|
1440
|
+
const $ = new qr();
|
|
1441
1441
|
function lo() {
|
|
1442
1442
|
const t = A({
|
|
1443
|
-
contextType:
|
|
1444
|
-
contextId:
|
|
1445
|
-
context:
|
|
1443
|
+
contextType: $.contextType,
|
|
1444
|
+
contextId: $.contextId,
|
|
1445
|
+
context: $.context
|
|
1446
1446
|
});
|
|
1447
|
-
return
|
|
1448
|
-
t.contextType =
|
|
1447
|
+
return $.onupdateContext(() => {
|
|
1448
|
+
t.contextType = $.contextType, t.contextId = $.contextId, t.context = $.context;
|
|
1449
1449
|
}), t;
|
|
1450
1450
|
}
|
|
1451
1451
|
function Gr(t) {
|
|
@@ -1457,16 +1457,16 @@ function Gr(t) {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1461
|
-
return
|
|
1462
|
-
throw
|
|
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 x.ApiNotAvailable();
|
|
1463
1463
|
}).then((n) => Gr(n).then((s) => {
|
|
1464
1464
|
if (!n.ok)
|
|
1465
1465
|
throw s;
|
|
1466
1466
|
return s;
|
|
1467
1467
|
}));
|
|
1468
1468
|
}
|
|
1469
|
-
class
|
|
1469
|
+
class Xe {
|
|
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 =
|
|
1479
|
+
let n = Xe.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)
|
|
@@ -1547,18 +1547,18 @@ const Hr = {
|
|
|
1547
1547
|
components: { WidgetSpinner: he }
|
|
1548
1548
|
}, Jr = { class: "modal__wait modal-default flex_column" };
|
|
1549
1549
|
function Kr(t, e, n, s, r, i) {
|
|
1550
|
-
const a =
|
|
1550
|
+
const a = j("widget-spinner");
|
|
1551
1551
|
return l(), u("div", Jr, [
|
|
1552
|
-
|
|
1552
|
+
S(a),
|
|
1553
1553
|
d("p", null, y(n.message), 1)
|
|
1554
1554
|
]);
|
|
1555
1555
|
}
|
|
1556
|
-
const Yr = /* @__PURE__ */
|
|
1556
|
+
const Yr = /* @__PURE__ */ g(Hr, [["render", Kr], ["__scopeId", "data-v-430b5c94"]]), Xr = {
|
|
1557
1557
|
error: !0,
|
|
1558
1558
|
wait: !1,
|
|
1559
1559
|
throw: !0
|
|
1560
1560
|
};
|
|
1561
|
-
async function
|
|
1561
|
+
async function ht(t, e = {}) {
|
|
1562
1562
|
const n = {
|
|
1563
1563
|
modalWait: null
|
|
1564
1564
|
};
|
|
@@ -1570,21 +1570,21 @@ async function _t(t, e = {}) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
return Promise.resolve(t()).catch((s) => {
|
|
1572
1572
|
let r = s;
|
|
1573
|
-
if (typeof r == "string" && (r =
|
|
1573
|
+
if (typeof r == "string" && (r = x.UndefinedError(r)), e.error && (console.log(r, r.details), r instanceof x ? D.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",
|
|
1576
|
+
}) : r != null && r.message ? D.add("error", r.message) : (console.warn(r), D.add("error", x.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
|
|
1583
|
+
function Ze(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 =
|
|
1587
|
+
return typeof s == "object" && !(s == null || Array.isArray(s)) && (s = Ze(s)), e[r] = s, e;
|
|
1588
1588
|
}, {});
|
|
1589
1589
|
}
|
|
1590
1590
|
function tn(t, e = 2) {
|
|
@@ -1593,28 +1593,28 @@ function tn(t, e = 2) {
|
|
|
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
|
-
const
|
|
1597
|
-
Request:
|
|
1598
|
-
clickOutside:
|
|
1599
|
-
getPropFromObject:
|
|
1600
|
-
runPromiseQueue:
|
|
1601
|
-
GraphQL:
|
|
1596
|
+
const Se = {
|
|
1597
|
+
Request: _,
|
|
1598
|
+
clickOutside: Ae,
|
|
1599
|
+
getPropFromObject: ke,
|
|
1600
|
+
runPromiseQueue: ft,
|
|
1601
|
+
GraphQL: Xe,
|
|
1602
1602
|
firstChapterToLowerCase: en,
|
|
1603
|
-
requestHandler:
|
|
1604
|
-
valuesToUpperCase:
|
|
1603
|
+
requestHandler: ht,
|
|
1604
|
+
valuesToUpperCase: Ze,
|
|
1605
1605
|
prettyMoney: tn
|
|
1606
1606
|
}, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1607
1607
|
__proto__: null,
|
|
1608
|
-
GraphQL:
|
|
1608
|
+
GraphQL: Xe,
|
|
1609
1609
|
Journal: Qt,
|
|
1610
|
-
Request:
|
|
1611
|
-
clickOutside:
|
|
1612
|
-
default:
|
|
1610
|
+
Request: _,
|
|
1611
|
+
clickOutside: Ae,
|
|
1612
|
+
default: Se,
|
|
1613
1613
|
firstChapterToLowerCase: en,
|
|
1614
|
-
getPropFromObject:
|
|
1615
|
-
requestHandler:
|
|
1616
|
-
runPromiseQueue:
|
|
1617
|
-
valuesToUpperCase:
|
|
1614
|
+
getPropFromObject: ke,
|
|
1615
|
+
requestHandler: ht,
|
|
1616
|
+
runPromiseQueue: ft,
|
|
1617
|
+
valuesToUpperCase: Ze
|
|
1618
1618
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1619
1619
|
function nn(t, e = "") {
|
|
1620
1620
|
for (let n in t) {
|
|
@@ -1642,7 +1642,7 @@ function ti(t) {
|
|
|
1642
1642
|
return Array.isArray(t) && t.length === 2 && typeof t[0] == "string" && typeof t[1] == "number";
|
|
1643
1643
|
}
|
|
1644
1644
|
const ni = "masterId", si = "masterEntity";
|
|
1645
|
-
function
|
|
1645
|
+
function ze(t, e) {
|
|
1646
1646
|
if (!Array.isArray(e))
|
|
1647
1647
|
return;
|
|
1648
1648
|
if (ti(e))
|
|
@@ -1652,9 +1652,9 @@ function He(t, e) {
|
|
|
1652
1652
|
t.append(si, s[0]), t.append(ni, s[1].toString());
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
class
|
|
1655
|
+
class H {
|
|
1656
1656
|
static async anonymousGetList(e) {
|
|
1657
|
-
return await
|
|
1657
|
+
return await _(`/open-api/data/${e}`, {
|
|
1658
1658
|
method: "GET",
|
|
1659
1659
|
headers: {
|
|
1660
1660
|
"Content-Type": "application/json"
|
|
@@ -1679,10 +1679,10 @@ class J {
|
|
|
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,
|
|
1682
|
+
const c = Object.entries(o).map(([p, h]) => `@${p} ${h}`).join(",");
|
|
1683
1683
|
a.append("order", c);
|
|
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
|
|
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"
|
|
@@ -1706,10 +1706,10 @@ class J {
|
|
|
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,
|
|
1709
|
+
const c = Object.entries(o).map(([p, h]) => `@${p} ${h}`).join(",");
|
|
1710
1710
|
a.append("order", c);
|
|
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())),
|
|
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
|
|
1724
|
+
return ze(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
|
|
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
|
|
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
|
|
1770
|
+
return ze(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
|
|
1786
|
+
return H.removeByKeys(e, r, s);
|
|
1787
1787
|
}
|
|
1788
1788
|
static removeByKeys(e, n, s) {
|
|
1789
|
-
return
|
|
1789
|
+
return _(`/close-api/data/entities/${e}`, {
|
|
1790
1790
|
method: "delete",
|
|
1791
1791
|
headers: {
|
|
1792
1792
|
"Content-Type": "application/json"
|
|
@@ -1798,20 +1798,20 @@ class J {
|
|
|
1798
1798
|
var sn = (t, e, n) => {
|
|
1799
1799
|
if (!e.has(t))
|
|
1800
1800
|
throw TypeError("Cannot " + n);
|
|
1801
|
-
},
|
|
1801
|
+
}, rt = (t, e, n) => (sn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Nt = (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,
|
|
1806
|
-
const
|
|
1805
|
+
}, Pt = (t, e, n, s) => (sn(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), ve, Fe;
|
|
1806
|
+
const _t = class pe extends z {
|
|
1807
1807
|
constructor(e) {
|
|
1808
|
-
super(), Nt(this, ve, []), Nt(this,
|
|
1808
|
+
super(), Nt(this, ve, []), Nt(this, Fe, !1), this.hashParams = "", this.offset = 0, this.name = e.name;
|
|
1809
1809
|
}
|
|
1810
1810
|
set wait(e) {
|
|
1811
|
-
Pt(this,
|
|
1811
|
+
Pt(this, Fe, e), this.emit(pe.EVENT_CHANGE_WAIT, e);
|
|
1812
1812
|
}
|
|
1813
1813
|
get wait() {
|
|
1814
|
-
return
|
|
1814
|
+
return rt(this, Fe);
|
|
1815
1815
|
}
|
|
1816
1816
|
read(e) {
|
|
1817
1817
|
var r, i;
|
|
@@ -1821,7 +1821,7 @@ 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),
|
|
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), H.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
1826
|
}).then(() => this.emit(pe.EVENT_DATA, this.array)).finally(() => {
|
|
1827
1827
|
this.wait = !1;
|
|
@@ -1831,10 +1831,10 @@ const gt = class pe extends H {
|
|
|
1831
1831
|
Pt(this, ve, e), this.emit(pe.EVENT_DATA, this.array);
|
|
1832
1832
|
}
|
|
1833
1833
|
add(e) {
|
|
1834
|
-
|
|
1834
|
+
rt(this, ve).push(...e), this.emit(pe.EVENT_DATA, this.array);
|
|
1835
1835
|
}
|
|
1836
1836
|
get array() {
|
|
1837
|
-
return
|
|
1837
|
+
return rt(this, ve);
|
|
1838
1838
|
}
|
|
1839
1839
|
/**
|
|
1840
1840
|
* @description Function get all names from Config.
|
|
@@ -1851,7 +1851,7 @@ const gt = class pe extends H {
|
|
|
1851
1851
|
*/
|
|
1852
1852
|
static getCellInfo(e, n) {
|
|
1853
1853
|
const s = pe.getCellName(e), r = (() => {
|
|
1854
|
-
let i = s ?
|
|
1854
|
+
let i = s ? ke(n, s) : null;
|
|
1855
1855
|
return i === void 0 && (i = null), e.value ? e.value(i, n) : i;
|
|
1856
1856
|
})();
|
|
1857
1857
|
return {
|
|
@@ -1864,12 +1864,12 @@ const gt = class pe extends H {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
};
|
|
1866
1866
|
ve = /* @__PURE__ */ new WeakMap();
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
let rn =
|
|
1867
|
+
Fe = /* @__PURE__ */ new WeakMap();
|
|
1868
|
+
_t.EVENT_DATA = "LIST:DATA";
|
|
1869
|
+
_t.EVENT_CHANGE_WAIT = "LIST:UPDATE-WAIT";
|
|
1870
|
+
let rn = _t;
|
|
1871
1871
|
const W = Symbol("__ROW_INDEX__");
|
|
1872
|
-
let
|
|
1872
|
+
let Qe = class extends rn {
|
|
1873
1873
|
constructor(e) {
|
|
1874
1874
|
super(e), this.rowIndex = 1, this.changes = {
|
|
1875
1875
|
new: {},
|
|
@@ -1917,7 +1917,7 @@ let et = class extends rn {
|
|
|
1917
1917
|
};
|
|
1918
1918
|
}
|
|
1919
1919
|
emitChanges() {
|
|
1920
|
-
this.emit(
|
|
1920
|
+
this.emit(J.EVENT_CHANGED, !0);
|
|
1921
1921
|
}
|
|
1922
1922
|
/**
|
|
1923
1923
|
* @override
|
|
@@ -1932,7 +1932,7 @@ let et = class extends rn {
|
|
|
1932
1932
|
console.log(`[table] ${e}`);
|
|
1933
1933
|
}
|
|
1934
1934
|
};
|
|
1935
|
-
|
|
1935
|
+
Qe.PROVIDE_NAME = "table-controller";
|
|
1936
1936
|
function ri(t) {
|
|
1937
1937
|
return function(n) {
|
|
1938
1938
|
return {
|
|
@@ -1947,9 +1947,9 @@ function ri(t) {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
function uo(t) {
|
|
1949
1949
|
const e = A(t.array);
|
|
1950
|
-
Mt(
|
|
1950
|
+
Mt(Qe.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(
|
|
1952
|
+
t.on(rn.EVENT_DATA, (a) => e.splice(0, e.length, ...a)), t.on(J.EVENT_CHANGED, () => {
|
|
1953
1953
|
n.new = Object.keys(t.changes.new).reduce((a, o) => {
|
|
1954
1954
|
const c = Number(o);
|
|
1955
1955
|
return a[c] = t.changes.new[c], a;
|
|
@@ -1964,29 +1964,29 @@ function uo(t) {
|
|
|
1964
1964
|
}), a;
|
|
1965
1965
|
}, []),
|
|
1966
1966
|
...Object.values(n.new)
|
|
1967
|
-
]), r =
|
|
1967
|
+
]), r = J.getParentForm();
|
|
1968
1968
|
return r == null || r.subscribe(t), {
|
|
1969
|
-
activeRow:
|
|
1969
|
+
activeRow: B(null),
|
|
1970
1970
|
array: s
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
1973
|
function po(t, e) {
|
|
1974
|
-
t.read = () =>
|
|
1974
|
+
t.read = () => H.getList(t.name, {
|
|
1975
1975
|
fields: e == null ? void 0 : e.fields
|
|
1976
|
-
}).then((n) => t.array = n).then(() => t.emit(
|
|
1976
|
+
}).then((n) => t.array = n).then(() => t.emit(J.EVENT_READ, t.array)), t.save = () => {
|
|
1977
1977
|
const n = t.name;
|
|
1978
1978
|
Object.values(t.changes.new).forEach(async (r) => {
|
|
1979
|
-
await
|
|
1979
|
+
await H.create(n, r);
|
|
1980
1980
|
}), Object.entries(t.changes.edit).forEach(async ([r, i]) => {
|
|
1981
|
-
await
|
|
1981
|
+
await H.updateById(t.name, s(Number(r)), i);
|
|
1982
1982
|
});
|
|
1983
1983
|
function s(r) {
|
|
1984
1984
|
const i = t.array.find((a) => a[W] === r);
|
|
1985
1985
|
return i.id | i.Id;
|
|
1986
1986
|
}
|
|
1987
1987
|
t.changes.remove.forEach(async (r) => {
|
|
1988
|
-
await
|
|
1989
|
-
}), t.emit(
|
|
1988
|
+
await H.removeById(n, s(r), 0);
|
|
1989
|
+
}), t.emit(J.EVENT_SAVE);
|
|
1990
1990
|
};
|
|
1991
1991
|
}
|
|
1992
1992
|
const fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1994,7 +1994,7 @@ const fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1994
1994
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1995
1995
|
class ho {
|
|
1996
1996
|
static readHistoryById(e, n) {
|
|
1997
|
-
return
|
|
1997
|
+
return _(`/close-api/audits/history/${e}/${n}`, {
|
|
1998
1998
|
method: "GET",
|
|
1999
1999
|
headers: {
|
|
2000
2000
|
"Content-Type": "application/json"
|
|
@@ -2027,14 +2027,14 @@ var an = (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),
|
|
2031
|
-
const ie = "_______LIST_______ROW_______INDEX________NAME_______",
|
|
2030
|
+
}, re = (t, e, n, s) => (an(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), je, we, Ue, xe, be, $e, ot;
|
|
2031
|
+
const ie = "_______LIST_______ROW_______INDEX________NAME_______", Ne = class ee extends z {
|
|
2032
2032
|
constructor(e) {
|
|
2033
|
-
super(), this.LIST_ROW_KEY = 1, se(this,
|
|
2033
|
+
super(), this.LIST_ROW_KEY = 1, se(this, je, void 0), this.array = [], se(this, we, []), se(this, Ue, []), se(this, xe, new Proxy({}, {
|
|
2034
2034
|
set: (n, s, r, i) => (n[s] = r, this.emit(ee.EVENT_FILTERS_UPDATE, n), !0),
|
|
2035
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,
|
|
2037
|
-
}), re(this,
|
|
2036
|
+
})), se(this, be, !1), se(this, $e, (...n) => Promise), se(this, ot, () => {
|
|
2037
|
+
}), re(this, je, e.primaryKeys || []), this.name = e.name || void 0, e.config && re(this, we, e.config);
|
|
2038
2038
|
}
|
|
2039
2039
|
set config(e) {
|
|
2040
2040
|
re(this, we, e.map(oe.copyObject)), this.emitUpdateConfig();
|
|
@@ -2052,13 +2052,13 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
|
|
|
2052
2052
|
re(this, Ue, e), this.emit(ee.EVENT_ORDER_UPDATE, this.order);
|
|
2053
2053
|
}
|
|
2054
2054
|
get filters() {
|
|
2055
|
-
return Q(this,
|
|
2055
|
+
return Q(this, xe);
|
|
2056
2056
|
}
|
|
2057
2057
|
set filters(e) {
|
|
2058
|
-
on(Q(this,
|
|
2058
|
+
on(Q(this, xe), e);
|
|
2059
2059
|
}
|
|
2060
2060
|
set wait(e) {
|
|
2061
|
-
re(this, be, e), this.emit(
|
|
2061
|
+
re(this, be, e), this.emit(J.EVENT_WAIT, Q(this, be));
|
|
2062
2062
|
}
|
|
2063
2063
|
/**
|
|
2064
2064
|
* @description Value is true if request is running
|
|
@@ -2067,7 +2067,7 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
|
|
|
2067
2067
|
return Q(this, be);
|
|
2068
2068
|
}
|
|
2069
2069
|
get primaryKeys() {
|
|
2070
|
-
return Q(this,
|
|
2070
|
+
return Q(this, je);
|
|
2071
2071
|
}
|
|
2072
2072
|
/**
|
|
2073
2073
|
* @description Получение элемента массива по обычно индексу. Не путать с List.LIST_ROW_INDEX_NAME
|
|
@@ -2157,7 +2157,7 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
|
|
|
2157
2157
|
re(this, $e, e);
|
|
2158
2158
|
}
|
|
2159
2159
|
get save() {
|
|
2160
|
-
return () => Promise.resolve().then(() => this.wait = !0).then(() => Q(this,
|
|
2160
|
+
return () => Promise.resolve().then(() => this.wait = !0).then(() => Q(this, ot).call(this)).finally(() => this.wait = !1);
|
|
2161
2161
|
}
|
|
2162
2162
|
/**
|
|
2163
2163
|
* @description Function get all names from Config.
|
|
@@ -2189,7 +2189,7 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
|
|
|
2189
2189
|
*/
|
|
2190
2190
|
static getCellInfo(e, n) {
|
|
2191
2191
|
const s = ee.getCellName(e), r = (() => {
|
|
2192
|
-
let i = s ?
|
|
2192
|
+
let i = s ? ke(n, s) : null;
|
|
2193
2193
|
return i === void 0 && (i = null), e.value ? e.value(i, n) : i;
|
|
2194
2194
|
})();
|
|
2195
2195
|
return {
|
|
@@ -2198,18 +2198,18 @@ const ie = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ee
|
|
|
2198
2198
|
};
|
|
2199
2199
|
}
|
|
2200
2200
|
};
|
|
2201
|
-
|
|
2201
|
+
je = /* @__PURE__ */ new WeakMap();
|
|
2202
2202
|
we = /* @__PURE__ */ new WeakMap();
|
|
2203
2203
|
Ue = /* @__PURE__ */ new WeakMap();
|
|
2204
|
-
|
|
2204
|
+
xe = /* @__PURE__ */ new WeakMap();
|
|
2205
2205
|
be = /* @__PURE__ */ new WeakMap();
|
|
2206
2206
|
$e = /* @__PURE__ */ new WeakMap();
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
let Z =
|
|
2207
|
+
ot = /* @__PURE__ */ new WeakMap();
|
|
2208
|
+
Ne.EVENT_DATA = "list-data: update";
|
|
2209
|
+
Ne.EVENT_CONFIG_UPDATE = "list-config:update";
|
|
2210
|
+
Ne.EVENT_ORDER_UPDATE = "list-order:update";
|
|
2211
|
+
Ne.EVENT_FILTERS_UPDATE = "list-filters:update";
|
|
2212
|
+
let Z = Ne;
|
|
2213
2213
|
function ii(t, e) {
|
|
2214
2214
|
let n = "", s = 0, r;
|
|
2215
2215
|
t.read = (i = {}) => {
|
|
@@ -2225,7 +2225,7 @@ function ii(t, e) {
|
|
|
2225
2225
|
[a.order[0]]: a.order[1] || "asc"
|
|
2226
2226
|
}), a.fields && (o.fields = a.fields), a.filter && (o.filter = a.filter);
|
|
2227
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 =
|
|
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 = H.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
2231
|
function ai(t) {
|
|
@@ -2235,12 +2235,12 @@ function ai(t) {
|
|
|
2235
2235
|
});
|
|
2236
2236
|
return t.on(Z.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(
|
|
2238
|
+
}), t.on(J.EVENT_WAIT, () => {
|
|
2239
2239
|
e.wait = t.wait;
|
|
2240
2240
|
}), e;
|
|
2241
2241
|
}
|
|
2242
2242
|
function oi(t, e) {
|
|
2243
|
-
const n = "list-flex-config", s =
|
|
2243
|
+
const n = "list-flex-config", s = ut(n, void 0);
|
|
2244
2244
|
if (s)
|
|
2245
2245
|
return s;
|
|
2246
2246
|
if (!t || !e)
|
|
@@ -2267,7 +2267,7 @@ function li(t) {
|
|
|
2267
2267
|
}), n;
|
|
2268
2268
|
}
|
|
2269
2269
|
function go(t) {
|
|
2270
|
-
const e =
|
|
2270
|
+
const e = B(""), n = V(() => {
|
|
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
|
});
|
|
@@ -2331,12 +2331,12 @@ class ci extends Z {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
function ui() {
|
|
2333
2333
|
const t = this.changes.filter((e) => e.status === "active");
|
|
2334
|
-
return
|
|
2334
|
+
return ft(t.map((e) => {
|
|
2335
2335
|
console.log("++");
|
|
2336
2336
|
}));
|
|
2337
2337
|
}
|
|
2338
2338
|
function di() {
|
|
2339
|
-
const t =
|
|
2339
|
+
const t = B(null);
|
|
2340
2340
|
function e(n) {
|
|
2341
2341
|
t.value = n && qt(n);
|
|
2342
2342
|
}
|
|
@@ -2361,11 +2361,11 @@ function _i(t, e, n, s, r, i) {
|
|
|
2361
2361
|
]))), 128))
|
|
2362
2362
|
]);
|
|
2363
2363
|
}
|
|
2364
|
-
const gi = /* @__PURE__ */
|
|
2364
|
+
const gi = /* @__PURE__ */ g(pi, [["render", _i], ["__scopeId", "data-v-2ce532f4"]]);
|
|
2365
2365
|
function ln(t) {
|
|
2366
|
-
return
|
|
2366
|
+
return gt(t, "YYYY/MM/DD HH:mm:ss");
|
|
2367
2367
|
}
|
|
2368
|
-
function
|
|
2368
|
+
function gt(t, e = "YYYY/MM/DD") {
|
|
2369
2369
|
if (!t)
|
|
2370
2370
|
return "";
|
|
2371
2371
|
try {
|
|
@@ -2386,13 +2386,13 @@ function yi(t, e, n) {
|
|
|
2386
2386
|
onClick: [],
|
|
2387
2387
|
class: ["widget-table__cell widget-table-cell"]
|
|
2388
2388
|
};
|
|
2389
|
-
function o(
|
|
2390
|
-
a.onClick.push(() =>
|
|
2389
|
+
function o(m) {
|
|
2390
|
+
a.onClick.push(() => m(s));
|
|
2391
2391
|
}
|
|
2392
|
-
function c(
|
|
2393
|
-
Array.isArray(
|
|
2392
|
+
function c(m) {
|
|
2393
|
+
Array.isArray(m) ? a.class.push(...m) : a.class.push(m);
|
|
2394
2394
|
}
|
|
2395
|
-
const p = [],
|
|
2395
|
+
const p = [], h = [];
|
|
2396
2396
|
if (t.hide && t.hide(s))
|
|
2397
2397
|
return [N("td")];
|
|
2398
2398
|
if (t.type)
|
|
@@ -2402,7 +2402,7 @@ function yi(t, e, n) {
|
|
|
2402
2402
|
break;
|
|
2403
2403
|
}
|
|
2404
2404
|
case "date": {
|
|
2405
|
-
i =
|
|
2405
|
+
i = gt(typeof i == "string" ? i : null);
|
|
2406
2406
|
break;
|
|
2407
2407
|
}
|
|
2408
2408
|
case "dateTime":
|
|
@@ -2411,38 +2411,38 @@ function yi(t, e, n) {
|
|
|
2411
2411
|
break;
|
|
2412
2412
|
}
|
|
2413
2413
|
case "multi-select":
|
|
2414
|
-
|
|
2414
|
+
h.push(N(at, {
|
|
2415
2415
|
type: "single-checkbox",
|
|
2416
2416
|
modelValue: e.selected
|
|
2417
2417
|
})), o(vi.bind(null, n, !0));
|
|
2418
2418
|
}
|
|
2419
2419
|
if (t.checked) {
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
N(
|
|
2420
|
+
const m = t.checked(s);
|
|
2421
|
+
h.push(
|
|
2422
|
+
N(at, {
|
|
2423
2423
|
type: "single-checkbox",
|
|
2424
|
-
modelValue:
|
|
2424
|
+
modelValue: m
|
|
2425
2425
|
})
|
|
2426
2426
|
);
|
|
2427
2427
|
}
|
|
2428
2428
|
if (t.onClick && o(t.onClick), t.link)
|
|
2429
2429
|
try {
|
|
2430
|
-
const
|
|
2431
|
-
if (
|
|
2432
|
-
const
|
|
2433
|
-
|
|
2430
|
+
const m = t.link(s);
|
|
2431
|
+
if (m) {
|
|
2432
|
+
const E = N(Gt, { to: m });
|
|
2433
|
+
h.push(E), c("list-cell-link");
|
|
2434
2434
|
}
|
|
2435
|
-
} catch (
|
|
2436
|
-
console.warn("Error handle: Add Router link to cell",
|
|
2435
|
+
} catch (m) {
|
|
2436
|
+
console.warn("Error handle: Add Router link to cell", m);
|
|
2437
2437
|
}
|
|
2438
|
-
return t.href && (
|
|
2438
|
+
return t.href && (h.push(N("a", {
|
|
2439
2439
|
href: t.href(s),
|
|
2440
2440
|
target: "_blank"
|
|
2441
|
-
})), c("list-cell-link")), i != null &&
|
|
2441
|
+
})), c("list-cell-link")), i != null && h.push(
|
|
2442
2442
|
N("p", {
|
|
2443
2443
|
class: "widget-list-cell-text"
|
|
2444
2444
|
}, i)
|
|
2445
|
-
), t.icon &&
|
|
2445
|
+
), t.icon && h.push(N(R, { name: t.icon })), t.class && (typeof t.class == "function" ? c(t.class(s)) : c(t.class)), p.push(N("td", a, h)), p;
|
|
2446
2446
|
}
|
|
2447
2447
|
function vi(t, e) {
|
|
2448
2448
|
t.emit("select", e);
|
|
@@ -2463,7 +2463,7 @@ const wi = {
|
|
|
2463
2463
|
selected: Boolean
|
|
2464
2464
|
},
|
|
2465
2465
|
setup: cn
|
|
2466
|
-
}, bi = ["colspan"], Ot = /* @__PURE__ */
|
|
2466
|
+
}, bi = ["colspan"], Ot = /* @__PURE__ */ b({
|
|
2467
2467
|
__name: "widget-table-form",
|
|
2468
2468
|
props: {
|
|
2469
2469
|
rowLength: {},
|
|
@@ -2472,8 +2472,8 @@ const wi = {
|
|
|
2472
2472
|
},
|
|
2473
2473
|
emits: ["save", "remove", "close"],
|
|
2474
2474
|
setup(t, { emit: e }) {
|
|
2475
|
-
const n = t, s =
|
|
2476
|
-
return
|
|
2475
|
+
const n = t, s = B(), r = V(() => !n.values && !Z.hasKey(n.values));
|
|
2476
|
+
return Je(() => {
|
|
2477
2477
|
setTimeout(() => {
|
|
2478
2478
|
s.value && s.value.scrollIntoView({ block: "nearest", inline: "nearest", behavior: "smooth" });
|
|
2479
2479
|
}, 250);
|
|
@@ -2483,7 +2483,7 @@ const wi = {
|
|
|
2483
2483
|
ref: s
|
|
2484
2484
|
}, [
|
|
2485
2485
|
d("td", { colspan: i.rowLength }, [
|
|
2486
|
-
(l(),
|
|
2486
|
+
(l(), w(Ft(i.component), jt(i.$attrs, {
|
|
2487
2487
|
values: i.values,
|
|
2488
2488
|
new: r.value,
|
|
2489
2489
|
onClose: a[0] || (a[0] = (o) => e("close")),
|
|
@@ -2492,7 +2492,7 @@ const wi = {
|
|
|
2492
2492
|
], 8, bi)
|
|
2493
2493
|
], 512));
|
|
2494
2494
|
}
|
|
2495
|
-
}), $i = { class: "widget-loader" }, Ei = /* @__PURE__ */
|
|
2495
|
+
}), $i = { class: "widget-loader" }, Ei = /* @__PURE__ */ b({
|
|
2496
2496
|
__name: "widget-loader",
|
|
2497
2497
|
props: {
|
|
2498
2498
|
color: {},
|
|
@@ -2500,12 +2500,12 @@ const wi = {
|
|
|
2500
2500
|
},
|
|
2501
2501
|
setup(t) {
|
|
2502
2502
|
return (e, n) => (l(), u("div", $i, [
|
|
2503
|
-
|
|
2503
|
+
S(he, { color: e.color }, null, 8, ["color"]),
|
|
2504
2504
|
d("span", null, y(e.label), 1)
|
|
2505
2505
|
]));
|
|
2506
2506
|
}
|
|
2507
2507
|
});
|
|
2508
|
-
const Ti = /* @__PURE__ */
|
|
2508
|
+
const Ti = /* @__PURE__ */ g(Ei, [["__scopeId", "data-v-a01a837d"]]), Si = /* @__PURE__ */ b({
|
|
2509
2509
|
__name: "widget-table",
|
|
2510
2510
|
props: {
|
|
2511
2511
|
array: {},
|
|
@@ -2518,7 +2518,7 @@ 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 =
|
|
2521
|
+
const n = t, s = Ut(), r = V(() => {
|
|
2522
2522
|
var c;
|
|
2523
2523
|
return (c = s == null ? void 0 : s.default) == null ? void 0 : c.call(s)[0];
|
|
2524
2524
|
}), i = V(() => n.array.map((c) => ({
|
|
@@ -2526,57 +2526,57 @@ const Ti = /* @__PURE__ */ m(Ei, [["__scopeId", "data-v-a01a837d"]]), Si = /* @_
|
|
|
2526
2526
|
hash: qt(c)
|
|
2527
2527
|
})));
|
|
2528
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((
|
|
2529
|
+
return n.selectRows ? p ? n.selectRows.indexOf(c) === -1 ? e("update:selectRows", [...n.selectRows, c]) : e("update:selectRows", n.selectRows.filter((m) => m !== c)) : e("update:selectRows", [c]) : void 0;
|
|
2530
2530
|
}
|
|
2531
2531
|
function o(c) {
|
|
2532
2532
|
e("save", c), e("update:activeRow", null);
|
|
2533
2533
|
}
|
|
2534
2534
|
return (c, p) => (l(), u("div", null, [
|
|
2535
|
-
|
|
2535
|
+
S(vn, { name: "move-horizontal" }, {
|
|
2536
2536
|
default: fe(() => [
|
|
2537
|
-
c.wait ? (l(),
|
|
2537
|
+
c.wait ? (l(), w(Ti, {
|
|
2538
2538
|
key: 0,
|
|
2539
2539
|
label: "Loading data",
|
|
2540
2540
|
color: "black",
|
|
2541
2541
|
class: "widget-table-loader"
|
|
2542
|
-
})) :
|
|
2542
|
+
})) : f("", !0)
|
|
2543
2543
|
]),
|
|
2544
2544
|
_: 1
|
|
2545
2545
|
}),
|
|
2546
2546
|
d("table", {
|
|
2547
2547
|
class: I(["widget-table", { "widget-table_mini": c.mini }])
|
|
2548
2548
|
}, [
|
|
2549
|
-
|
|
2549
|
+
S(gi, { config: c.config }, null, 8, ["config"]),
|
|
2550
2550
|
d("tbody", null, [
|
|
2551
|
-
(l(!0), u(O, null, M(i.value, ({ values:
|
|
2552
|
-
var
|
|
2553
|
-
return l(), u(O, { key:
|
|
2554
|
-
|
|
2551
|
+
(l(!0), u(O, null, M(i.value, ({ values: h, hash: m }, E) => {
|
|
2552
|
+
var C;
|
|
2553
|
+
return l(), u(O, { key: E }, [
|
|
2554
|
+
S(wi, {
|
|
2555
2555
|
config: c.config,
|
|
2556
|
-
values:
|
|
2557
|
-
selected: (
|
|
2558
|
-
onSelect: (
|
|
2559
|
-
class: I(c.classCallback ? c.classCallback(
|
|
2556
|
+
values: h,
|
|
2557
|
+
selected: (C = c.selectRows) == null ? void 0 : C.includes(h),
|
|
2558
|
+
onSelect: (K) => a(h, K),
|
|
2559
|
+
class: I(c.classCallback ? c.classCallback(h) : "")
|
|
2560
2560
|
}, null, 8, ["config", "values", "selected", "onSelect", "class"]),
|
|
2561
|
-
r.value && c.activeRow ===
|
|
2561
|
+
r.value && c.activeRow === m ? (l(), w(Ot, {
|
|
2562
2562
|
key: 0,
|
|
2563
2563
|
component: r.value,
|
|
2564
2564
|
"row-length": c.config.length,
|
|
2565
|
-
values:
|
|
2566
|
-
onClose: p[0] || (p[0] = (
|
|
2565
|
+
values: h,
|
|
2566
|
+
onClose: p[0] || (p[0] = (K) => e("update:activeRow", null)),
|
|
2567
2567
|
onSave: o,
|
|
2568
|
-
onRead: p[1] || (p[1] = (
|
|
2569
|
-
}, null, 8, ["component", "row-length", "values"])) :
|
|
2568
|
+
onRead: p[1] || (p[1] = (K) => e("read"))
|
|
2569
|
+
}, null, 8, ["component", "row-length", "values"])) : f("", !0)
|
|
2570
2570
|
], 64);
|
|
2571
2571
|
}), 128)),
|
|
2572
|
-
c.activeRow === 0 ? (l(),
|
|
2572
|
+
c.activeRow === 0 ? (l(), w(Ot, {
|
|
2573
2573
|
key: 0,
|
|
2574
2574
|
component: r.value,
|
|
2575
2575
|
"row-length": c.config.length,
|
|
2576
|
-
onClose: p[2] || (p[2] = (
|
|
2576
|
+
onClose: p[2] || (p[2] = (h) => e("update:activeRow", null)),
|
|
2577
2577
|
onSave: o,
|
|
2578
|
-
onRead: p[3] || (p[3] = (
|
|
2579
|
-
}, null, 8, ["component", "row-length"])) :
|
|
2578
|
+
onRead: p[3] || (p[3] = (h) => e("read"))
|
|
2579
|
+
}, null, 8, ["component", "row-length"])) : f("", !0)
|
|
2580
2580
|
])
|
|
2581
2581
|
], 2)
|
|
2582
2582
|
]));
|
|
@@ -2593,7 +2593,7 @@ const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2593
2593
|
useListState: ai,
|
|
2594
2594
|
useTableActiveRow: di
|
|
2595
2595
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2596
|
-
class Ci extends
|
|
2596
|
+
class Ci extends z {
|
|
2597
2597
|
constructor() {
|
|
2598
2598
|
super(), this.EVENT_NEW = "event:new-metadata", this.store = {};
|
|
2599
2599
|
}
|
|
@@ -2619,11 +2619,11 @@ class Ci extends H {
|
|
|
2619
2619
|
return await pn.get(e);
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
const
|
|
2622
|
+
const We = new Ci();
|
|
2623
2623
|
function wo(t) {
|
|
2624
|
-
const e =
|
|
2625
|
-
return
|
|
2626
|
-
t === n.entityName && (e.value =
|
|
2624
|
+
const e = B(We.get(t));
|
|
2625
|
+
return We.on(We.EVENT_NEW, (n) => {
|
|
2626
|
+
t === n.entityName && (e.value = We.get(t));
|
|
2627
2627
|
}), e;
|
|
2628
2628
|
}
|
|
2629
2629
|
function bo(t, e) {
|
|
@@ -2636,11 +2636,11 @@ class $o {
|
|
|
2636
2636
|
static getDictionary(e) {
|
|
2637
2637
|
if (!e)
|
|
2638
2638
|
throw new Error(`Can't get dictionary for ${e}.`);
|
|
2639
|
-
return
|
|
2639
|
+
return _(`/open-api/internationalization/language/${e}`);
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
2642
|
let ae = {};
|
|
2643
|
-
function
|
|
2643
|
+
function Ce(t) {
|
|
2644
2644
|
if (typeof t != "string")
|
|
2645
2645
|
return console.trace(`Label is not provided for translation: ${t}`), "undefined";
|
|
2646
2646
|
const e = oe.getPropFromObject((this == null ? void 0 : this.vocabulary) || ae, t);
|
|
@@ -2649,33 +2649,33 @@ function Ie(t) {
|
|
|
2649
2649
|
const n = oe.getPropFromObject(ae == null ? void 0 : ae.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
|
+
Ce.setGlobalVocabulary = function(t) {
|
|
2653
2653
|
ae = t;
|
|
2654
2654
|
};
|
|
2655
|
-
|
|
2656
|
-
return
|
|
2655
|
+
Ce.getScope = function(t) {
|
|
2656
|
+
return Ce.bind({
|
|
2657
2657
|
vocabulary: oe.getPropFromObject(ae, t)
|
|
2658
2658
|
});
|
|
2659
2659
|
};
|
|
2660
|
-
|
|
2661
|
-
return typeof t == "string" && (t = oe.getPropFromObject(ae, t)),
|
|
2660
|
+
Ce.setVocabulary = function(t) {
|
|
2661
|
+
return typeof t == "string" && (t = oe.getPropFromObject(ae, t)), Ce.bind({
|
|
2662
2662
|
vocabulary: t
|
|
2663
2663
|
});
|
|
2664
2664
|
};
|
|
2665
2665
|
function Eo(t = "default") {
|
|
2666
|
-
if (
|
|
2667
|
-
return
|
|
2666
|
+
if (lt.manager)
|
|
2667
|
+
return lt.manager.socket(`/${t}`);
|
|
2668
2668
|
}
|
|
2669
|
-
class
|
|
2669
|
+
class lt {
|
|
2670
2670
|
}
|
|
2671
2671
|
function To(t = window.location.origin + "/socket.io") {
|
|
2672
|
-
|
|
2672
|
+
lt.manager = new $n(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 Ii = { class: "breadcrumb__title" }, Ai = /* @__PURE__ */ b({
|
|
2679
2679
|
__name: "widget-breadcrumb-item",
|
|
2680
2680
|
props: {
|
|
2681
2681
|
active: { type: Boolean },
|
|
@@ -2687,7 +2687,7 @@ const Ii = { class: "breadcrumb__title" }, Ai = /* @__PURE__ */ $({
|
|
|
2687
2687
|
class: I(["breadcrumb flex", { breadcrumb_active: e.active }])
|
|
2688
2688
|
}, [
|
|
2689
2689
|
d("p", Ii, y(e.title), 1),
|
|
2690
|
-
e.active ?
|
|
2690
|
+
e.active ? f("", !0) : (l(), w(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__ */
|
|
2698
|
+
const ki = /* @__PURE__ */ g(Ai, [["__scopeId", "data-v-1702aee0"]]), Ni = { class: "widget-breadcrumbs" }, Pi = /* @__PURE__ */ b({
|
|
2699
2699
|
__name: "widget-breadcrumbs",
|
|
2700
2700
|
props: {
|
|
2701
2701
|
array: {}
|
|
2702
2702
|
},
|
|
2703
2703
|
setup(t) {
|
|
2704
2704
|
return (e, n) => (l(), u("div", Ni, [
|
|
2705
|
-
(l(!0), u(O, null, M(e.array, (s, r) => (l(),
|
|
2705
|
+
(l(!0), u(O, null, M(e.array, (s, r) => (l(), w(ki, {
|
|
2706
2706
|
key: r,
|
|
2707
2707
|
title: s.title,
|
|
2708
2708
|
link: s.link,
|
|
@@ -2711,7 +2711,7 @@ const ki = /* @__PURE__ */ m(Ai, [["__scopeId", "data-v-1702aee0"]]), Ni = { cla
|
|
|
2711
2711
|
]));
|
|
2712
2712
|
}
|
|
2713
2713
|
});
|
|
2714
|
-
const So = /* @__PURE__ */
|
|
2714
|
+
const So = /* @__PURE__ */ g(Pi, [["__scopeId", "data-v-1dfb2668"]]), Oi = {
|
|
2715
2715
|
props: {
|
|
2716
2716
|
config: Array,
|
|
2717
2717
|
values: Object,
|
|
@@ -2719,7 +2719,7 @@ const So = /* @__PURE__ */ m(Pi, [["__scopeId", "data-v-1dfb2668"]]), Oi = {
|
|
|
2719
2719
|
},
|
|
2720
2720
|
setup: cn
|
|
2721
2721
|
};
|
|
2722
|
-
const Ri = /* @__PURE__ */
|
|
2722
|
+
const Ri = /* @__PURE__ */ g(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__ */ b({
|
|
2723
2723
|
__name: "widget-list-head-cell",
|
|
2724
2724
|
props: {
|
|
2725
2725
|
title: {},
|
|
@@ -2738,9 +2738,9 @@ const Ri = /* @__PURE__ */ m(Oi, [["__scopeId", "data-v-47478206"]]), Vi = (t) =
|
|
|
2738
2738
|
d("div", Li, [
|
|
2739
2739
|
d("div", {
|
|
2740
2740
|
class: "head-cell-content flex_grow",
|
|
2741
|
-
style:
|
|
2741
|
+
style: ct({ "min-width": s.minWidth, "max-width": s.maxWidth, width: s.width })
|
|
2742
2742
|
}, [
|
|
2743
|
-
s.type === "multi-select" ? (l(),
|
|
2743
|
+
s.type === "multi-select" ? (l(), w(P(at), {
|
|
2744
2744
|
key: 0,
|
|
2745
2745
|
type: "single-checkbox",
|
|
2746
2746
|
onClick: r[0] || (r[0] = (i) => e("select"))
|
|
@@ -2750,75 +2750,75 @@ const Ri = /* @__PURE__ */ m(Oi, [["__scopeId", "data-v-47478206"]]), Vi = (t) =
|
|
|
2750
2750
|
onClick: r[1] || (r[1] = (i) => e("order"))
|
|
2751
2751
|
}, y(s.title || s.label), 1))
|
|
2752
2752
|
], 4),
|
|
2753
|
-
s.name && s.order.length && s.order[0] === s.name ? (l(),
|
|
2753
|
+
s.name && s.order.length && s.order[0] === s.name ? (l(), w(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
2757
|
default: fe(() => [
|
|
2758
|
-
|
|
2758
|
+
Ie("core-arrow-up")
|
|
2759
2759
|
]),
|
|
2760
2760
|
_: 1
|
|
2761
|
-
}, 8, ["class"])) :
|
|
2761
|
+
}, 8, ["class"])) : f("", !0),
|
|
2762
2762
|
Wi
|
|
2763
2763
|
])
|
|
2764
2764
|
]));
|
|
2765
2765
|
}
|
|
2766
2766
|
});
|
|
2767
|
-
const Mi = /* @__PURE__ */
|
|
2767
|
+
const Mi = /* @__PURE__ */ g(Di, [["__scopeId", "data-v-7106cb6a"]]), Fi = /* @__PURE__ */ b({
|
|
2768
2768
|
__name: "widget-list-head",
|
|
2769
2769
|
setup(t) {
|
|
2770
|
-
const e =
|
|
2770
|
+
const e = Et("config", {
|
|
2771
2771
|
required: !0
|
|
2772
|
-
}), n =
|
|
2772
|
+
}), n = Et("order", {
|
|
2773
2773
|
required: !0,
|
|
2774
2774
|
default: () => []
|
|
2775
|
-
}), s =
|
|
2776
|
-
|
|
2777
|
-
function a(
|
|
2778
|
-
let
|
|
2775
|
+
}), s = B(), r = B();
|
|
2776
|
+
Je(() => {
|
|
2777
|
+
function a(m, E) {
|
|
2778
|
+
let C = -1;
|
|
2779
2779
|
do
|
|
2780
|
-
|
|
2781
|
-
while (
|
|
2782
|
-
return
|
|
2780
|
+
C++, E -= m[C];
|
|
2781
|
+
while (E > 0 && C < m.length);
|
|
2782
|
+
return C;
|
|
2783
2783
|
}
|
|
2784
|
-
function o(
|
|
2785
|
-
let
|
|
2786
|
-
for (;
|
|
2787
|
-
|
|
2788
|
-
return console.log(
|
|
2784
|
+
function o(m, E) {
|
|
2785
|
+
let C = 0;
|
|
2786
|
+
for (; E > 0 && E > m[C] && C < m.length; )
|
|
2787
|
+
E -= m[C], C++;
|
|
2788
|
+
return console.log(E, C), C > 0 ? C : 0;
|
|
2789
2789
|
}
|
|
2790
|
-
function c(
|
|
2790
|
+
function c(m) {
|
|
2791
2791
|
try {
|
|
2792
|
-
r.value.style.insetInlineStart =
|
|
2793
|
-
} catch (
|
|
2794
|
-
console.log(
|
|
2792
|
+
r.value.style.insetInlineStart = m + "px";
|
|
2793
|
+
} catch (E) {
|
|
2794
|
+
console.log(E);
|
|
2795
2795
|
}
|
|
2796
2796
|
}
|
|
2797
|
-
function p(
|
|
2797
|
+
function p(m) {
|
|
2798
2798
|
try {
|
|
2799
|
-
r.value.style.width =
|
|
2800
|
-
} catch (
|
|
2801
|
-
console.log(
|
|
2799
|
+
r.value.style.width = m + "px", r.value.style.minWidth = m + "px", r.value.style.maxWidth = m + "px";
|
|
2800
|
+
} catch (E) {
|
|
2801
|
+
console.log(E);
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2805
|
-
return
|
|
2804
|
+
function h(m) {
|
|
2805
|
+
return m === null ? !1 : m.classList.contains("head-cell-resize");
|
|
2806
2806
|
}
|
|
2807
|
-
s.value.addEventListener("pointerdown", function(
|
|
2808
|
-
var
|
|
2809
|
-
function
|
|
2810
|
-
return
|
|
2807
|
+
s.value.addEventListener("pointerdown", function(E) {
|
|
2808
|
+
var $t;
|
|
2809
|
+
function C(q) {
|
|
2810
|
+
return q.screenX + ue - ne;
|
|
2811
2811
|
}
|
|
2812
|
-
const
|
|
2813
|
-
console.group("START"), console.log(), console.log("Start screenX",
|
|
2814
|
-
function
|
|
2815
|
-
if (console.group("END"), document.removeEventListener("pointermove",
|
|
2816
|
-
const X =
|
|
2812
|
+
const K = s.value, _e = [...K.children].filter((q) => q.localName === "th"), ue = (($t = K.offsetParent) == null ? void 0 : $t.scrollLeft) || 0, v = _e.map((q) => q.clientWidth), L = h(E.target), ne = K.getBoundingClientRect().left, de = C(E), k = a(v, de), yt = v.slice(0, k).reduce((q, X) => q + X, 0), vt = de - yt, et = K.offsetWidth, ge = _e[k].clientWidth;
|
|
2813
|
+
console.group("START"), console.log(), console.log("Start screenX", E.screenX), console.log("Widths", v), console.log("max width", et), console.log("Start Position", de), console.log("Position From", k), console.log("Start Position", k), console.log("Global offset (Отступ самой таблицы от края экрана)", ne), console.log("Del", vt), 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(yt), p(ge), document.addEventListener("pointermove", bt, { passive: !0 }), document.addEventListener("pointerup", wt);
|
|
2814
|
+
function wt(q) {
|
|
2815
|
+
if (console.group("END"), document.removeEventListener("pointermove", bt), document.removeEventListener("pointerup", wt), 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 = q.screenX + ue - ne;
|
|
2817
2817
|
console.log("ENP Position", X);
|
|
2818
|
-
const
|
|
2819
|
-
if (console.log(k, "->",
|
|
2818
|
+
const Oe = o(v, X);
|
|
2819
|
+
if (console.log(k, "->", Oe), Oe !== k) {
|
|
2820
2820
|
const me = e.value[k];
|
|
2821
|
-
e.value.splice(k, 1), e.value.splice(
|
|
2821
|
+
e.value.splice(k, 1), e.value.splice(Oe, 0, me);
|
|
2822
2822
|
} else {
|
|
2823
2823
|
const me = e.value[k].name;
|
|
2824
2824
|
i(me);
|
|
@@ -2826,14 +2826,14 @@ const Mi = /* @__PURE__ */ m(Di, [["__scopeId", "data-v-7106cb6a"]]), Fi = /* @_
|
|
|
2826
2826
|
}
|
|
2827
2827
|
r.value.style.display = "none", document.body.style.cursor = "unset", console.groupEnd();
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2829
|
+
function bt(q) {
|
|
2830
2830
|
if (L) {
|
|
2831
|
-
const me =
|
|
2831
|
+
const me = C(q) - de + ge;
|
|
2832
2832
|
p(me);
|
|
2833
2833
|
return;
|
|
2834
2834
|
}
|
|
2835
|
-
let X =
|
|
2836
|
-
X < 0 && (X = 0), X + ge >
|
|
2835
|
+
let X = q.screenX + ue - ne - vt;
|
|
2836
|
+
X < 0 && (X = 0), X + ge > et && (X = et - ge), c(X);
|
|
2837
2837
|
}
|
|
2838
2838
|
});
|
|
2839
2839
|
});
|
|
@@ -2857,8 +2857,8 @@ const Mi = /* @__PURE__ */ m(Di, [["__scopeId", "data-v-7106cb6a"]]), Fi = /* @_
|
|
|
2857
2857
|
ref_key: "refHead",
|
|
2858
2858
|
ref: s
|
|
2859
2859
|
}, [
|
|
2860
|
-
(l(!0), u(O, null, M(e.value, (c, p) => (l(),
|
|
2861
|
-
onOrder: (
|
|
2860
|
+
(l(!0), u(O, null, M(e.value, (c, p) => (l(), w(Mi, jt({ key: c }, c, {
|
|
2861
|
+
onOrder: (h) => i(c.name),
|
|
2862
2862
|
order: n.value
|
|
2863
2863
|
}), null, 16, ["onOrder", "order"]))), 128)),
|
|
2864
2864
|
d("div", {
|
|
@@ -2869,65 +2869,51 @@ const Mi = /* @__PURE__ */ m(Di, [["__scopeId", "data-v-7106cb6a"]]), Fi = /* @_
|
|
|
2869
2869
|
], 512));
|
|
2870
2870
|
}
|
|
2871
2871
|
});
|
|
2872
|
-
const ji = /* @__PURE__ */
|
|
2872
|
+
const ji = /* @__PURE__ */ g(Fi, [["__scopeId", "data-v-1a4b03e9"]]), Ui = 50, xi = /* @__PURE__ */ b({
|
|
2873
2873
|
__name: "widget-list",
|
|
2874
2874
|
props: {
|
|
2875
2875
|
array: {},
|
|
2876
|
-
wait: { type: Boolean }
|
|
2876
|
+
wait: { type: Boolean },
|
|
2877
|
+
config: {},
|
|
2878
|
+
selectRows: {},
|
|
2879
|
+
order: {}
|
|
2877
2880
|
},
|
|
2878
2881
|
emits: ["scrollEnd"],
|
|
2879
2882
|
setup(t, { emit: e }) {
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
var h;
|
|
2883
|
-
if (r.value)
|
|
2884
|
-
if (!f)
|
|
2885
|
-
r.value = [p];
|
|
2886
|
-
else {
|
|
2887
|
-
const w = r.value.indexOf(p);
|
|
2888
|
-
w === -1 ? r.value.push(p) : (h = r.value) == null || h.splice(w, 1);
|
|
2889
|
-
}
|
|
2890
|
-
}
|
|
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 = [];
|
|
2896
|
-
}
|
|
2897
|
-
function c(p) {
|
|
2898
|
-
if (!p)
|
|
2883
|
+
function n(s) {
|
|
2884
|
+
if (!s)
|
|
2899
2885
|
return;
|
|
2900
|
-
const
|
|
2901
|
-
|
|
2886
|
+
const r = s.target;
|
|
2887
|
+
r.scrollTop + r.clientHeight + Ui > r.scrollHeight && e("scrollEnd");
|
|
2902
2888
|
}
|
|
2903
|
-
return (
|
|
2889
|
+
return (s, r) => (l(), u("div", {
|
|
2904
2890
|
class: "es-list-container",
|
|
2905
|
-
onScrollPassive:
|
|
2891
|
+
onScrollPassive: n
|
|
2906
2892
|
}, [
|
|
2907
2893
|
d("table", {
|
|
2908
|
-
class: I(["widget-list", { "widget-list_load":
|
|
2894
|
+
class: I(["widget-list", { "widget-list_load": s.wait }])
|
|
2909
2895
|
}, [
|
|
2910
2896
|
d("thead", null, [
|
|
2911
|
-
|
|
2912
|
-
onSelect:
|
|
2913
|
-
config: s.
|
|
2914
|
-
"onUpdate:config":
|
|
2915
|
-
order:
|
|
2916
|
-
"onUpdate:order":
|
|
2897
|
+
S(ji, {
|
|
2898
|
+
onSelect: r[0] || (r[0] = (i) => s.selectAll()),
|
|
2899
|
+
config: s.config,
|
|
2900
|
+
"onUpdate:config": r[1] || (r[1] = (i) => s.config = i),
|
|
2901
|
+
order: s.order,
|
|
2902
|
+
"onUpdate:order": r[2] || (r[2] = (i) => s.order = i)
|
|
2917
2903
|
}, null, 8, ["config", "order"])
|
|
2918
2904
|
]),
|
|
2919
2905
|
d("tbody", {
|
|
2920
|
-
class: I(["widget-list-body", { "widget-list-body_inactive":
|
|
2906
|
+
class: I(["widget-list-body", { "widget-list-body_inactive": s.wait }])
|
|
2921
2907
|
}, [
|
|
2922
|
-
(l(!0), u(O, null, M(
|
|
2923
|
-
var
|
|
2924
|
-
return l(),
|
|
2925
|
-
key:
|
|
2908
|
+
(l(!0), u(O, null, M(s.array, (i, a) => {
|
|
2909
|
+
var o;
|
|
2910
|
+
return l(), w(Ri, {
|
|
2911
|
+
key: a,
|
|
2926
2912
|
class: "widget-list-row",
|
|
2927
|
-
values:
|
|
2928
|
-
config: s.
|
|
2929
|
-
selected: (
|
|
2930
|
-
onSelect: (
|
|
2913
|
+
values: i,
|
|
2914
|
+
config: s.config,
|
|
2915
|
+
selected: (o = s.selectRows) == null ? void 0 : o.includes(i),
|
|
2916
|
+
onSelect: (c) => s.onSelect(i, c)
|
|
2931
2917
|
}, null, 8, ["values", "config", "selected", "onSelect"]);
|
|
2932
2918
|
}), 128))
|
|
2933
2919
|
], 2)
|
|
@@ -2935,7 +2921,7 @@ const ji = /* @__PURE__ */ m(Fi, [["__scopeId", "data-v-1a4b03e9"]]), xi = 50, U
|
|
|
2935
2921
|
], 32));
|
|
2936
2922
|
}
|
|
2937
2923
|
});
|
|
2938
|
-
const Co = /* @__PURE__ */
|
|
2924
|
+
const Co = /* @__PURE__ */ g(xi, [["__scopeId", "data-v-6df67ed5"]]), Bi = { class: "widget-section" }, qi = { class: "widget-section__header" }, Gi = { class: "widget-section-title" }, zi = { class: "widget-section__body" }, Hi = /* @__PURE__ */ b({
|
|
2939
2925
|
__name: "widget-section",
|
|
2940
2926
|
props: {
|
|
2941
2927
|
title: {}
|
|
@@ -2951,7 +2937,7 @@ const Co = /* @__PURE__ */ m(Ui, [["__scopeId", "data-v-5526b1ce"]]), Bi = { cla
|
|
|
2951
2937
|
]));
|
|
2952
2938
|
}
|
|
2953
2939
|
});
|
|
2954
|
-
const Io = /* @__PURE__ */
|
|
2940
|
+
const Io = /* @__PURE__ */ g(Hi, [["__scopeId", "data-v-07232553"]]);
|
|
2955
2941
|
const Ji = {
|
|
2956
2942
|
props: {
|
|
2957
2943
|
config: Array
|
|
@@ -2968,7 +2954,7 @@ function Xi(t, e, n, s, r, i) {
|
|
|
2968
2954
|
]))), 128))
|
|
2969
2955
|
]);
|
|
2970
2956
|
}
|
|
2971
|
-
const Zi = /* @__PURE__ */
|
|
2957
|
+
const Zi = /* @__PURE__ */ g(Ji, [["render", Xi], ["__scopeId", "data-v-cae93640"]]);
|
|
2972
2958
|
function Qi(t, e, n) {
|
|
2973
2959
|
const s = t.map((r) => ea(r, e, n));
|
|
2974
2960
|
return N("tr", { class: "widget-table__row widget-table-row" }, s);
|
|
@@ -2978,11 +2964,11 @@ function ea(t, e, n) {
|
|
|
2978
2964
|
onClick: [],
|
|
2979
2965
|
class: ["widget-table__cell widget-table-cell"]
|
|
2980
2966
|
};
|
|
2981
|
-
function a(
|
|
2982
|
-
i.onClick.push(() =>
|
|
2967
|
+
function a(h) {
|
|
2968
|
+
i.onClick.push(() => h(r, e));
|
|
2983
2969
|
}
|
|
2984
|
-
function o(
|
|
2985
|
-
Array.isArray(
|
|
2970
|
+
function o(h) {
|
|
2971
|
+
Array.isArray(h) ? i.class.push(...h) : i.class.push(h);
|
|
2986
2972
|
}
|
|
2987
2973
|
const c = [], p = [];
|
|
2988
2974
|
if (t.type)
|
|
@@ -3044,7 +3030,7 @@ const ta = {
|
|
|
3044
3030
|
};
|
|
3045
3031
|
return () => Qi(t.config, t.values, s);
|
|
3046
3032
|
}
|
|
3047
|
-
}, na = { class: "widget-table-form" }, sa = ["colspan"], Rt = /* @__PURE__ */
|
|
3033
|
+
}, na = { class: "widget-table-form" }, sa = ["colspan"], Rt = /* @__PURE__ */ b({
|
|
3048
3034
|
__name: "widget-table-form",
|
|
3049
3035
|
props: {
|
|
3050
3036
|
rowLength: {},
|
|
@@ -3056,7 +3042,7 @@ const ta = {
|
|
|
3056
3042
|
const e = t, n = V(() => {
|
|
3057
3043
|
var a;
|
|
3058
3044
|
return !((a = e.values) != null && a[W]);
|
|
3059
|
-
}), s =
|
|
3045
|
+
}), s = ut(Qe.PROVIDE_NAME);
|
|
3060
3046
|
function r(a) {
|
|
3061
3047
|
s && (n.value ? s.create(a) : s.edit(e.values[W], a));
|
|
3062
3048
|
}
|
|
@@ -3065,7 +3051,7 @@ const ta = {
|
|
|
3065
3051
|
}
|
|
3066
3052
|
return (a, o) => (l(), u("tr", na, [
|
|
3067
3053
|
d("td", { colspan: a.rowLength }, [
|
|
3068
|
-
(l(),
|
|
3054
|
+
(l(), w(Ft(a.component), {
|
|
3069
3055
|
values: a.values,
|
|
3070
3056
|
"table-controller": a.controller,
|
|
3071
3057
|
onSave: r,
|
|
@@ -3075,7 +3061,7 @@ const ta = {
|
|
|
3075
3061
|
], 8, sa)
|
|
3076
3062
|
]));
|
|
3077
3063
|
}
|
|
3078
|
-
}), Ao = /* @__PURE__ */
|
|
3064
|
+
}), Ao = /* @__PURE__ */ b({
|
|
3079
3065
|
__name: "widget-table",
|
|
3080
3066
|
props: {
|
|
3081
3067
|
array: {},
|
|
@@ -3087,52 +3073,52 @@ const ta = {
|
|
|
3087
3073
|
emits: ["update:activeRow", "update:selectRows"],
|
|
3088
3074
|
setup(t, { emit: e }) {
|
|
3089
3075
|
const n = t;
|
|
3090
|
-
|
|
3091
|
-
const s =
|
|
3076
|
+
ut(Qe.PROVIDE_NAME);
|
|
3077
|
+
const s = Ut(), r = V(() => {
|
|
3092
3078
|
var o;
|
|
3093
3079
|
return (o = s == null ? void 0 : s.default) == null ? void 0 : o.call(s)[0];
|
|
3094
3080
|
});
|
|
3095
3081
|
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((
|
|
3082
|
+
return n.selectRows ? c ? n.selectRows.indexOf(o) === -1 ? e("update:selectRows", [...n.selectRows, o]) : e("update:selectRows", n.selectRows.filter((h) => h !== o)) : e("update:selectRows", [o]) : void 0;
|
|
3097
3083
|
}
|
|
3098
3084
|
const a = ri((o) => e("update:activeRow", o));
|
|
3099
3085
|
return (o, c) => (l(), u("table", {
|
|
3100
3086
|
class: I(["widget-table", { "widget-table_mini": o.mini }])
|
|
3101
3087
|
}, [
|
|
3102
|
-
|
|
3088
|
+
S(Zi, { config: o.config }, null, 8, ["config"]),
|
|
3103
3089
|
d("tbody", null, [
|
|
3104
|
-
(l(!0), u(O, null, M(o.array, (p,
|
|
3105
|
-
var
|
|
3106
|
-
return l(), u(O, { key:
|
|
3107
|
-
|
|
3090
|
+
(l(!0), u(O, null, M(o.array, (p, h) => {
|
|
3091
|
+
var m;
|
|
3092
|
+
return l(), u(O, { key: h }, [
|
|
3093
|
+
S(ta, {
|
|
3108
3094
|
config: o.config,
|
|
3109
3095
|
values: p,
|
|
3110
|
-
selected: (
|
|
3111
|
-
onSet: c[0] || (c[0] = (
|
|
3112
|
-
onSelect: (
|
|
3096
|
+
selected: (m = o.selectRows) == null ? void 0 : m.includes(p[P(W)]),
|
|
3097
|
+
onSet: c[0] || (c[0] = (E) => e("update:activeRow", E)),
|
|
3098
|
+
onSelect: (E) => i(p[P(W)], E)
|
|
3113
3099
|
}, null, 8, ["config", "values", "selected", "onSelect"]),
|
|
3114
|
-
o.activeRow === p[P(W)] ? (l(),
|
|
3100
|
+
o.activeRow === p[P(W)] ? (l(), w(Rt, {
|
|
3115
3101
|
key: 0,
|
|
3116
3102
|
component: r.value,
|
|
3117
3103
|
controller: P(a)(p[P(W)]),
|
|
3118
3104
|
"row-length": o.config.length,
|
|
3119
3105
|
values: p
|
|
3120
|
-
}, null, 8, ["component", "controller", "row-length", "values"])) :
|
|
3106
|
+
}, null, 8, ["component", "controller", "row-length", "values"])) : f("", !0)
|
|
3121
3107
|
], 64);
|
|
3122
3108
|
}), 128)),
|
|
3123
|
-
o.activeRow === 0 ? (l(),
|
|
3109
|
+
o.activeRow === 0 ? (l(), w(Rt, {
|
|
3124
3110
|
key: 0,
|
|
3125
3111
|
component: r.value,
|
|
3126
3112
|
controller: P(a)(0),
|
|
3127
3113
|
"row-length": o.config.length
|
|
3128
|
-
}, null, 8, ["component", "controller", "row-length"])) :
|
|
3114
|
+
}, null, 8, ["component", "controller", "row-length"])) : f("", !0)
|
|
3129
3115
|
])
|
|
3130
3116
|
], 2));
|
|
3131
3117
|
}
|
|
3132
3118
|
}), 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 = {
|
|
3133
3119
|
key: 0,
|
|
3134
3120
|
class: "form-container-label"
|
|
3135
|
-
}, ca = { class: "form-label__title text_size_sm" }, ua = /* @__PURE__ */
|
|
3121
|
+
}, ca = { class: "form-label__title text_size_sm" }, ua = /* @__PURE__ */ b({
|
|
3136
3122
|
__name: "WidgetFormInfo",
|
|
3137
3123
|
props: {
|
|
3138
3124
|
title: {},
|
|
@@ -3149,18 +3135,18 @@ const ta = {
|
|
|
3149
3135
|
d("div", {
|
|
3150
3136
|
class: I(["form-label", `form-label_${e.label.type}`])
|
|
3151
3137
|
}, [
|
|
3152
|
-
e.label.icon ? (l(),
|
|
3138
|
+
e.label.icon ? (l(), w(R, {
|
|
3153
3139
|
key: 0,
|
|
3154
3140
|
class: "form-label__icon",
|
|
3155
3141
|
name: e.label.icon
|
|
3156
|
-
}, null, 8, ["name"])) :
|
|
3142
|
+
}, null, 8, ["name"])) : f("", !0),
|
|
3157
3143
|
d("p", ca, y(e.label.title), 1)
|
|
3158
3144
|
], 2)
|
|
3159
|
-
])) :
|
|
3145
|
+
])) : f("", !0)
|
|
3160
3146
|
]));
|
|
3161
3147
|
}
|
|
3162
3148
|
});
|
|
3163
|
-
const da = /* @__PURE__ */
|
|
3149
|
+
const da = /* @__PURE__ */ g(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__ */ b({
|
|
3164
3150
|
__name: "WidgetForm",
|
|
3165
3151
|
props: {
|
|
3166
3152
|
title: {},
|
|
@@ -3176,27 +3162,27 @@ const da = /* @__PURE__ */ m(ua, [["__scopeId", "data-v-6ea1062c"]]), pa = { cla
|
|
|
3176
3162
|
d("div", fa, [
|
|
3177
3163
|
d("div", ha, [
|
|
3178
3164
|
d("div", _a, [
|
|
3179
|
-
e.wait ? (l(),
|
|
3165
|
+
e.wait ? (l(), w(he, {
|
|
3180
3166
|
key: 0,
|
|
3181
3167
|
color: "#3949AB"
|
|
3182
3168
|
})) : (l(), u("div", ga, [
|
|
3183
|
-
e.icon ? (l(),
|
|
3169
|
+
e.icon ? (l(), w(R, {
|
|
3184
3170
|
key: 0,
|
|
3185
3171
|
class: "form-image",
|
|
3186
3172
|
name: e.icon
|
|
3187
|
-
}, null, 8, ["name"])) :
|
|
3173
|
+
}, null, 8, ["name"])) : f("", !0)
|
|
3188
3174
|
]))
|
|
3189
3175
|
]),
|
|
3190
|
-
|
|
3176
|
+
S(da, {
|
|
3191
3177
|
title: e.title,
|
|
3192
3178
|
info: e.info,
|
|
3193
3179
|
label: e.label
|
|
3194
3180
|
}, null, 8, ["title", "info", "label"]),
|
|
3195
|
-
e.button && e.button.length ? (l(),
|
|
3181
|
+
e.button && e.button.length ? (l(), w(Ht, {
|
|
3196
3182
|
key: 0,
|
|
3197
3183
|
class: "widget-form__button",
|
|
3198
3184
|
array: e.button
|
|
3199
|
-
}, null, 8, ["array"])) :
|
|
3185
|
+
}, null, 8, ["array"])) : f("", !0)
|
|
3200
3186
|
]),
|
|
3201
3187
|
d("div", ma, [
|
|
3202
3188
|
U(e.$slots, "default", {}, void 0, !0)
|
|
@@ -3205,7 +3191,7 @@ const da = /* @__PURE__ */ m(ua, [["__scopeId", "data-v-6ea1062c"]]), pa = { cla
|
|
|
3205
3191
|
]));
|
|
3206
3192
|
}
|
|
3207
3193
|
});
|
|
3208
|
-
const ko = /* @__PURE__ */
|
|
3194
|
+
const ko = /* @__PURE__ */ g(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__ */ b({
|
|
3209
3195
|
__name: "modal-validation-item",
|
|
3210
3196
|
props: {
|
|
3211
3197
|
message: {},
|
|
@@ -3228,7 +3214,7 @@ const ko = /* @__PURE__ */ m(ya, [["__scopeId", "data-v-3d88d93f"]]), va = { cla
|
|
|
3228
3214
|
], 2));
|
|
3229
3215
|
}
|
|
3230
3216
|
});
|
|
3231
|
-
const Sa = /* @__PURE__ */
|
|
3217
|
+
const Sa = /* @__PURE__ */ g(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__ */ b({
|
|
3232
3218
|
__name: "modal-wrap",
|
|
3233
3219
|
props: {
|
|
3234
3220
|
title: {}
|
|
@@ -3244,16 +3230,16 @@ const Sa = /* @__PURE__ */ m(Ta, [["__scopeId", "data-v-e6138c02"]]), Ca = { cla
|
|
|
3244
3230
|
]));
|
|
3245
3231
|
}
|
|
3246
3232
|
});
|
|
3247
|
-
const Pa = /* @__PURE__ */
|
|
3233
|
+
const Pa = /* @__PURE__ */ g(Na, [["__scopeId", "data-v-119165b9"]]), Oa = { class: "modal-validation-body" }, Ra = /* @__PURE__ */ b({
|
|
3248
3234
|
__name: "modal-validation",
|
|
3249
3235
|
props: {
|
|
3250
3236
|
array: {}
|
|
3251
3237
|
},
|
|
3252
3238
|
setup(t) {
|
|
3253
|
-
return (e, n) => (l(),
|
|
3239
|
+
return (e, n) => (l(), w(Pa, { title: "Validation results" }, {
|
|
3254
3240
|
default: fe(() => [
|
|
3255
3241
|
d("div", Oa, [
|
|
3256
|
-
(l(!0), u(O, null, M(e.array, (s, r) => (l(),
|
|
3242
|
+
(l(!0), u(O, null, M(e.array, (s, r) => (l(), w(Sa, {
|
|
3257
3243
|
key: r,
|
|
3258
3244
|
message: s.message,
|
|
3259
3245
|
name: s.name,
|
|
@@ -3267,7 +3253,7 @@ const Pa = /* @__PURE__ */ m(Na, [["__scopeId", "data-v-119165b9"]]), Oa = { cla
|
|
|
3267
3253
|
}));
|
|
3268
3254
|
}
|
|
3269
3255
|
});
|
|
3270
|
-
const No = /* @__PURE__ */
|
|
3256
|
+
const No = /* @__PURE__ */ g(Ra, [["__scopeId", "data-v-a39cfe2f"]]), Va = ["alt", "src"], Po = /* @__PURE__ */ b({
|
|
3271
3257
|
__name: "widget-image",
|
|
3272
3258
|
props: {
|
|
3273
3259
|
src: {},
|
|
@@ -3275,8 +3261,8 @@ const No = /* @__PURE__ */ m(Ra, [["__scopeId", "data-v-a39cfe2f"]]), Va = ["alt
|
|
|
3275
3261
|
default: {}
|
|
3276
3262
|
},
|
|
3277
3263
|
setup(t) {
|
|
3278
|
-
const e = t, n =
|
|
3279
|
-
return
|
|
3264
|
+
const e = t, n = B();
|
|
3265
|
+
return Je(() => {
|
|
3280
3266
|
n.value && (n.value.src = e.src), n.value.onerror = function() {
|
|
3281
3267
|
e.default && (n.value.src = e.default);
|
|
3282
3268
|
};
|
|
@@ -3287,7 +3273,7 @@ const No = /* @__PURE__ */ m(Ra, [["__scopeId", "data-v-a39cfe2f"]]), Va = ["alt
|
|
|
3287
3273
|
src: s.src || s.$props.default
|
|
3288
3274
|
}, null, 8, Va));
|
|
3289
3275
|
}
|
|
3290
|
-
}), La = /* @__PURE__ */
|
|
3276
|
+
}), La = /* @__PURE__ */ b({
|
|
3291
3277
|
__name: "widget-input-check",
|
|
3292
3278
|
props: {
|
|
3293
3279
|
modelValue: { type: Boolean }
|
|
@@ -3302,17 +3288,17 @@ const No = /* @__PURE__ */ m(Ra, [["__scopeId", "data-v-a39cfe2f"]]), Va = ["alt
|
|
|
3302
3288
|
class: I(["widget-input-check", { "widget-input-check_active": r.modelValue }]),
|
|
3303
3289
|
onClick: s
|
|
3304
3290
|
}, [
|
|
3305
|
-
r.modelValue ? (l(),
|
|
3291
|
+
r.modelValue ? (l(), w(R, {
|
|
3306
3292
|
key: 0,
|
|
3307
3293
|
name: "check"
|
|
3308
|
-
})) :
|
|
3294
|
+
})) : f("", !0)
|
|
3309
3295
|
], 2));
|
|
3310
3296
|
}
|
|
3311
3297
|
});
|
|
3312
|
-
const Wa = /* @__PURE__ */
|
|
3298
|
+
const Wa = /* @__PURE__ */ g(La, [["__scopeId", "data-v-f4a3dc6c"]]), Da = { class: "widget-card" }, Ma = { class: "widget-card-toggle" }, Fa = { class: "widget-card-wrap" }, ja = { class: "widget-card-content" }, Ua = {
|
|
3313
3299
|
key: 0,
|
|
3314
3300
|
class: "widget-card-title"
|
|
3315
|
-
},
|
|
3301
|
+
}, xa = /* @__PURE__ */ b({
|
|
3316
3302
|
__name: "widget-card",
|
|
3317
3303
|
props: {
|
|
3318
3304
|
title: {}
|
|
@@ -3326,7 +3312,7 @@ const Wa = /* @__PURE__ */ m(La, [["__scopeId", "data-v-f4a3dc6c"]]), Da = { cla
|
|
|
3326
3312
|
state: n
|
|
3327
3313
|
}), (s, r) => (l(), u("div", Da, [
|
|
3328
3314
|
d("div", Ma, [
|
|
3329
|
-
|
|
3315
|
+
S(Wa, {
|
|
3330
3316
|
modelValue: n.selected,
|
|
3331
3317
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => n.selected = i)
|
|
3332
3318
|
}, null, 8, ["modelValue"])
|
|
@@ -3336,31 +3322,31 @@ const Wa = /* @__PURE__ */ m(La, [["__scopeId", "data-v-f4a3dc6c"]]), Da = { cla
|
|
|
3336
3322
|
class: "widget-card-arrow",
|
|
3337
3323
|
onClick: r[1] || (r[1] = (i) => n.hidden = !n.hidden)
|
|
3338
3324
|
}, [
|
|
3339
|
-
|
|
3325
|
+
S(R, {
|
|
3340
3326
|
name: "angle-small-right",
|
|
3341
3327
|
class: I(["card-icon-arrow", { "card-icon-arrow_active": !n.hidden }])
|
|
3342
3328
|
}, null, 8, ["class"])
|
|
3343
3329
|
]),
|
|
3344
3330
|
d("div", ja, [
|
|
3345
|
-
s.title ? (l(), u("p",
|
|
3331
|
+
s.title ? (l(), u("p", Ua, y(s.title), 1)) : f("", !0),
|
|
3346
3332
|
U(s.$slots, "main", {}, void 0, !0),
|
|
3347
|
-
n.hidden ?
|
|
3333
|
+
n.hidden ? f("", !0) : U(s.$slots, "sub", { key: 1 }, void 0, !0)
|
|
3348
3334
|
])
|
|
3349
3335
|
])
|
|
3350
3336
|
]));
|
|
3351
3337
|
}
|
|
3352
3338
|
});
|
|
3353
|
-
const Oo = /* @__PURE__ */
|
|
3354
|
-
class
|
|
3339
|
+
const Oo = /* @__PURE__ */ g(xa, [["__scopeId", "data-v-bca33c5b"]]);
|
|
3340
|
+
class F {
|
|
3355
3341
|
static parseError(e) {
|
|
3356
3342
|
let n = e.errors ? Object.values(e.errors).map((s) => s[0]) : null;
|
|
3357
|
-
throw
|
|
3343
|
+
throw x.AuthServiceError(e.title, n);
|
|
3358
3344
|
}
|
|
3359
3345
|
/**
|
|
3360
3346
|
* @deprecated
|
|
3361
3347
|
* */
|
|
3362
3348
|
static login(e) {
|
|
3363
|
-
return
|
|
3349
|
+
return _(te.identityServerURL + "/api/Authenticate/Login", {
|
|
3364
3350
|
method: "POST",
|
|
3365
3351
|
headers: {
|
|
3366
3352
|
"Content-Type": "application/json"
|
|
@@ -3370,84 +3356,84 @@ class j {
|
|
|
3370
3356
|
...e,
|
|
3371
3357
|
AppName: te.applicationName
|
|
3372
3358
|
})
|
|
3373
|
-
}).catch(
|
|
3359
|
+
}).catch(F.parseError);
|
|
3374
3360
|
}
|
|
3375
3361
|
/**
|
|
3376
3362
|
* @deprecated
|
|
3377
3363
|
* */
|
|
3378
3364
|
static registration(e) {
|
|
3379
|
-
return e.AppName = te.applicationName,
|
|
3365
|
+
return e.AppName = te.applicationName, _(te.identityServerURL + "/api/Authenticate/Registration", {
|
|
3380
3366
|
method: "POST",
|
|
3381
3367
|
headers: {
|
|
3382
3368
|
"Content-Type": "application/json"
|
|
3383
3369
|
},
|
|
3384
3370
|
credentials: "include",
|
|
3385
3371
|
body: JSON.stringify(e)
|
|
3386
|
-
}).catch(
|
|
3372
|
+
}).catch(F.parseError);
|
|
3387
3373
|
}
|
|
3388
3374
|
static parseProcessAnswer(e) {
|
|
3389
3375
|
if (e.statusCode > 4)
|
|
3390
|
-
throw
|
|
3376
|
+
throw x.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
|
|
3391
3377
|
return e;
|
|
3392
3378
|
}
|
|
3393
3379
|
static startRegistrationProcess(e) {
|
|
3394
|
-
return
|
|
3380
|
+
return F.requestStepRegistrationProcess("StartRegistration", e);
|
|
3395
3381
|
}
|
|
3396
3382
|
static confirmPhoneRegistrationProcess(e) {
|
|
3397
|
-
return
|
|
3383
|
+
return F.requestStepRegistrationProcess("ConfirmPhoneNumberByRegistration", e);
|
|
3398
3384
|
}
|
|
3399
3385
|
static confirmEmailRegistrationProcess(e) {
|
|
3400
|
-
return
|
|
3386
|
+
return F.requestStepRegistrationProcess("ConfirmEmailByRegistration", e);
|
|
3401
3387
|
}
|
|
3402
3388
|
static finishEmailRegistrationProcess(e) {
|
|
3403
|
-
return
|
|
3389
|
+
return F.requestStepRegistrationProcess("FinishRegistration", e);
|
|
3404
3390
|
}
|
|
3405
3391
|
/**
|
|
3406
3392
|
* @description Steps of registration process are the same. Current method provide one requestInterface for all
|
|
3407
3393
|
* steps.
|
|
3408
3394
|
* */
|
|
3409
3395
|
static requestStepRegistrationProcess(e, n) {
|
|
3410
|
-
return
|
|
3396
|
+
return _(`${te.identityServerURL}/api/Authenticate/${e}`, {
|
|
3411
3397
|
method: "POST",
|
|
3412
3398
|
headers: {
|
|
3413
3399
|
"Content-Type": "application/json"
|
|
3414
3400
|
},
|
|
3415
3401
|
credentials: "include",
|
|
3416
3402
|
body: JSON.stringify(n)
|
|
3417
|
-
}).catch(
|
|
3403
|
+
}).catch(F.parseError);
|
|
3418
3404
|
}
|
|
3419
3405
|
static startLoginProcess(e) {
|
|
3420
|
-
return
|
|
3406
|
+
return F.requestStepLoginProcess("StartLogin", e);
|
|
3421
3407
|
}
|
|
3422
3408
|
static loginWithPassword(e) {
|
|
3423
|
-
return
|
|
3409
|
+
return F.requestStepLoginProcess("LoginWithPassword", e);
|
|
3424
3410
|
}
|
|
3425
3411
|
static loginWithOtpCode(e) {
|
|
3426
|
-
return
|
|
3412
|
+
return F.requestStepLoginProcess("LoginWithOtpCode", e);
|
|
3427
3413
|
}
|
|
3428
3414
|
/**
|
|
3429
3415
|
* @description Method for step-to-step login process
|
|
3430
3416
|
* @return {ILoginAnswer} answer
|
|
3431
3417
|
* */
|
|
3432
3418
|
static requestStepLoginProcess(e, n) {
|
|
3433
|
-
return
|
|
3419
|
+
return _(`${te.identityServerURL}/api/Authenticate/${e}`, {
|
|
3434
3420
|
method: "POST",
|
|
3435
3421
|
headers: {
|
|
3436
3422
|
"Content-Type": "application/json"
|
|
3437
3423
|
},
|
|
3438
3424
|
credentials: "include",
|
|
3439
3425
|
body: JSON.stringify(n)
|
|
3440
|
-
}).catch(
|
|
3426
|
+
}).catch(F.parseError).then(F.parseLoginProcessAnswer);
|
|
3441
3427
|
}
|
|
3442
3428
|
static parseLoginProcessAnswer(e) {
|
|
3443
3429
|
if (e.statusCode > 3)
|
|
3444
|
-
throw
|
|
3430
|
+
throw x.UndefinedError(e.statusName.replace(/([A-Z][a-z])/g, " $1").replace(/(\d)/g, " $1"));
|
|
3445
3431
|
return e;
|
|
3446
3432
|
}
|
|
3447
3433
|
}
|
|
3448
3434
|
const un = class Ee {
|
|
3449
3435
|
static async create(e) {
|
|
3450
|
-
return
|
|
3436
|
+
return _(Ee.url, {
|
|
3451
3437
|
method: "post",
|
|
3452
3438
|
body: JSON.stringify(e),
|
|
3453
3439
|
headers: {
|
|
@@ -3464,7 +3450,7 @@ const un = class Ee {
|
|
|
3464
3450
|
entityName: e.entity.name,
|
|
3465
3451
|
entityCatalogId: e.entity.catalogId
|
|
3466
3452
|
});
|
|
3467
|
-
return
|
|
3453
|
+
return _(Ee.url + "?" + n.toString(), {
|
|
3468
3454
|
method: "get"
|
|
3469
3455
|
});
|
|
3470
3456
|
}
|
|
@@ -3472,12 +3458,12 @@ const un = class Ee {
|
|
|
3472
3458
|
* @description Получение списка сообщений по Talk Id.
|
|
3473
3459
|
*/
|
|
3474
3460
|
static async readMessages(e) {
|
|
3475
|
-
return
|
|
3461
|
+
return _(`${Ee.url}/${e}/messages`, {
|
|
3476
3462
|
method: "get"
|
|
3477
3463
|
});
|
|
3478
3464
|
}
|
|
3479
3465
|
static async createMessage(e) {
|
|
3480
|
-
return
|
|
3466
|
+
return _(`${Ee.url}/${e.talkId}/messages`, {
|
|
3481
3467
|
method: "post",
|
|
3482
3468
|
body: JSON.stringify({
|
|
3483
3469
|
text: e.text
|
|
@@ -3489,10 +3475,10 @@ const un = class Ee {
|
|
|
3489
3475
|
}
|
|
3490
3476
|
};
|
|
3491
3477
|
un.url = "/close-api/communications";
|
|
3492
|
-
let
|
|
3478
|
+
let Be = un;
|
|
3493
3479
|
class Ro {
|
|
3494
3480
|
static async getDefaultView(e) {
|
|
3495
|
-
return
|
|
3481
|
+
return _("/close-api/views/" + e, {
|
|
3496
3482
|
method: "GET",
|
|
3497
3483
|
headers: {
|
|
3498
3484
|
"Content-Type": "application/json"
|
|
@@ -3506,9 +3492,9 @@ function Vt(t) {
|
|
|
3506
3492
|
createdEntities: t.createdEntites
|
|
3507
3493
|
};
|
|
3508
3494
|
}
|
|
3509
|
-
const dn = class
|
|
3495
|
+
const dn = class qe {
|
|
3510
3496
|
static async getStartConfig(e, n) {
|
|
3511
|
-
return
|
|
3497
|
+
return _([qe.url, e, n].join("/"), {
|
|
3512
3498
|
method: "GET",
|
|
3513
3499
|
headers: {
|
|
3514
3500
|
"Content-Type": "application/json"
|
|
@@ -3516,7 +3502,7 @@ const dn = class Ge {
|
|
|
3516
3502
|
});
|
|
3517
3503
|
}
|
|
3518
3504
|
static async startProcess(e, n) {
|
|
3519
|
-
return
|
|
3505
|
+
return _([qe.url, e, n].join("/"), {
|
|
3520
3506
|
method: "POST",
|
|
3521
3507
|
headers: {
|
|
3522
3508
|
"Content-Type": "application/json"
|
|
@@ -3524,7 +3510,7 @@ const dn = class Ge {
|
|
|
3524
3510
|
}).then(Vt);
|
|
3525
3511
|
}
|
|
3526
3512
|
static async runStep(e, n, s, r, i) {
|
|
3527
|
-
return
|
|
3513
|
+
return _([qe.url, e, n].join("/"), {
|
|
3528
3514
|
method: "PUT",
|
|
3529
3515
|
headers: {
|
|
3530
3516
|
"Content-Type": "application/json"
|
|
@@ -3538,7 +3524,7 @@ const dn = class Ge {
|
|
|
3538
3524
|
}
|
|
3539
3525
|
};
|
|
3540
3526
|
dn.url = "/close-api/views/process-wizard";
|
|
3541
|
-
let
|
|
3527
|
+
let it = dn;
|
|
3542
3528
|
class pn {
|
|
3543
3529
|
static get url() {
|
|
3544
3530
|
return "/close-api/metadata";
|
|
@@ -3552,12 +3538,12 @@ class pn {
|
|
|
3552
3538
|
}
|
|
3553
3539
|
static getById(e, n, s = []) {
|
|
3554
3540
|
const r = new URLSearchParams();
|
|
3555
|
-
return
|
|
3541
|
+
return ze(r, s), n && r.append("id", n), _([this.url, e].join("/") + `?${r.toString()}`);
|
|
3556
3542
|
}
|
|
3557
3543
|
}
|
|
3558
3544
|
class Vo {
|
|
3559
3545
|
static invite(e, n, s) {
|
|
3560
|
-
return
|
|
3546
|
+
return _("/close-api/accounts/invitePerson", {
|
|
3561
3547
|
method: "POST",
|
|
3562
3548
|
headers: {
|
|
3563
3549
|
"Content-Type": "application/json"
|
|
@@ -3570,7 +3556,7 @@ class Vo {
|
|
|
3570
3556
|
});
|
|
3571
3557
|
}
|
|
3572
3558
|
static accept(e, n) {
|
|
3573
|
-
return
|
|
3559
|
+
return _("/close-api/accounts/markInvite", {
|
|
3574
3560
|
method: "POST",
|
|
3575
3561
|
headers: {
|
|
3576
3562
|
"Content-Type": "application/json"
|
|
@@ -3583,7 +3569,7 @@ class Vo {
|
|
|
3583
3569
|
});
|
|
3584
3570
|
}
|
|
3585
3571
|
static decline(e, n) {
|
|
3586
|
-
return
|
|
3572
|
+
return _("/close-api/accounts/markInvite", {
|
|
3587
3573
|
method: "POST",
|
|
3588
3574
|
headers: {
|
|
3589
3575
|
"Content-Type": "application/json"
|
|
@@ -3601,7 +3587,7 @@ class fn {
|
|
|
3601
3587
|
return "/close-api/rules-validation/";
|
|
3602
3588
|
}
|
|
3603
3589
|
static validate(e, n) {
|
|
3604
|
-
return
|
|
3590
|
+
return _(fn.url + e, {
|
|
3605
3591
|
method: "POST",
|
|
3606
3592
|
body: JSON.stringify(n)
|
|
3607
3593
|
});
|
|
@@ -3609,7 +3595,7 @@ class fn {
|
|
|
3609
3595
|
}
|
|
3610
3596
|
class Lo {
|
|
3611
3597
|
static getConfiguration() {
|
|
3612
|
-
return
|
|
3598
|
+
return _("/open-api/webserver-configuration", {
|
|
3613
3599
|
method: "GET",
|
|
3614
3600
|
headers: {
|
|
3615
3601
|
"Content-Type": "application/json"
|
|
@@ -3629,12 +3615,12 @@ class Ba {
|
|
|
3629
3615
|
}
|
|
3630
3616
|
static getById(e, n, s = []) {
|
|
3631
3617
|
const r = new URLSearchParams();
|
|
3632
|
-
return
|
|
3618
|
+
return ze(r, s), _([this.url(), e, n].join("/") + `?${r.toString()}`, {
|
|
3633
3619
|
method: "GET"
|
|
3634
3620
|
});
|
|
3635
3621
|
}
|
|
3636
3622
|
}
|
|
3637
|
-
const hn = class _n extends
|
|
3623
|
+
const hn = class _n extends z {
|
|
3638
3624
|
constructor(e = []) {
|
|
3639
3625
|
super(), this.array = A([]), this.defaultArray = [], this.setDefault(e);
|
|
3640
3626
|
}
|
|
@@ -3672,23 +3658,23 @@ const hn = class _n extends H {
|
|
|
3672
3658
|
};
|
|
3673
3659
|
hn.EVENT_DATA = "list-config:update";
|
|
3674
3660
|
let Wo = hn;
|
|
3675
|
-
class Do extends
|
|
3661
|
+
class Do extends z {
|
|
3676
3662
|
constructor(e) {
|
|
3677
3663
|
super(), this.name = "Communication", this.read = () => {
|
|
3678
3664
|
}, this.id = e;
|
|
3679
3665
|
}
|
|
3680
3666
|
sendMessage(e) {
|
|
3681
|
-
return
|
|
3667
|
+
return Be.createMessage({ talkId: this.id, text: e });
|
|
3682
3668
|
}
|
|
3683
3669
|
static checkAndGenerate(e) {
|
|
3684
|
-
return
|
|
3670
|
+
return Be.read(e).then((n) => n.length === 0 ? Be.create(e) : n[0]);
|
|
3685
3671
|
}
|
|
3686
3672
|
}
|
|
3687
3673
|
function Mo(t) {
|
|
3688
|
-
const e =
|
|
3689
|
-
e ? e.subscribe(t) : console.warn(
|
|
3674
|
+
const e = J.getParentForm();
|
|
3675
|
+
e ? e.subscribe(t) : console.warn(x.ParentFormNotFound());
|
|
3690
3676
|
const n = A([]);
|
|
3691
|
-
return t.read = () =>
|
|
3677
|
+
return t.read = () => Be.readMessages(t.id).then((s) => (n.splice(0, n.length, ...s), s)), {
|
|
3692
3678
|
array: n
|
|
3693
3679
|
};
|
|
3694
3680
|
}
|
|
@@ -3712,23 +3698,23 @@ function Y(t) {
|
|
|
3712
3698
|
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);
|
|
3713
3699
|
}, []).join(" and ");
|
|
3714
3700
|
}
|
|
3715
|
-
function
|
|
3701
|
+
function Pe(t) {
|
|
3716
3702
|
return typeof t == "string" ? `'${t}'` : `${t}`;
|
|
3717
3703
|
}
|
|
3718
3704
|
Y.includes = function(e, n) {
|
|
3719
|
-
return `@${e} Contains ${
|
|
3705
|
+
return `@${e} Contains ${Pe(n)}`;
|
|
3720
3706
|
};
|
|
3721
3707
|
Y.beginWith = function(e, n) {
|
|
3722
|
-
return `@${e} BeginWith ${
|
|
3708
|
+
return `@${e} BeginWith ${Pe(n)}`;
|
|
3723
3709
|
};
|
|
3724
3710
|
Y.notEq = function(e, n) {
|
|
3725
|
-
return `@${e} nq ${
|
|
3711
|
+
return `@${e} nq ${Pe(n)}`;
|
|
3726
3712
|
};
|
|
3727
3713
|
Y.eq = function(e, n) {
|
|
3728
|
-
return Array.isArray(n) ? Y.in(e, n) : `@${e} eq ${
|
|
3714
|
+
return Array.isArray(n) ? Y.in(e, n) : `@${e} eq ${Pe(n)}`;
|
|
3729
3715
|
};
|
|
3730
3716
|
Y.in = function(e, n) {
|
|
3731
|
-
const s = n.map(
|
|
3717
|
+
const s = n.map(Pe).join(", ");
|
|
3732
3718
|
return `@${e} in (${s})`;
|
|
3733
3719
|
};
|
|
3734
3720
|
Y.and = function(...e) {
|
|
@@ -3767,7 +3753,7 @@ function Fo(t, e = 1e3) {
|
|
|
3767
3753
|
};
|
|
3768
3754
|
}
|
|
3769
3755
|
function jo(t, e) {
|
|
3770
|
-
const n =
|
|
3756
|
+
const n = B(null);
|
|
3771
3757
|
function s() {
|
|
3772
3758
|
return t.name ? pn.getById(t.name, e, []).then((r) => {
|
|
3773
3759
|
n.value = r, r.fields.forEach((i) => {
|
|
@@ -3775,23 +3761,23 @@ function jo(t, e) {
|
|
|
3775
3761
|
});
|
|
3776
3762
|
}).catch(() => {
|
|
3777
3763
|
n.value = null;
|
|
3778
|
-
const r =
|
|
3764
|
+
const r = x.MetadataEntityIsNotAvailable(t.name || "FORM_WITHOUT_NAME");
|
|
3779
3765
|
D.add("error", r.message);
|
|
3780
3766
|
}) : Promise.reject();
|
|
3781
3767
|
}
|
|
3782
|
-
return t.on(
|
|
3768
|
+
return t.on(J.EVENT_READ, s), {
|
|
3783
3769
|
metadata: n,
|
|
3784
3770
|
update: s
|
|
3785
3771
|
};
|
|
3786
3772
|
}
|
|
3787
|
-
class
|
|
3773
|
+
class mt extends Error {
|
|
3788
3774
|
static UndefinedStatus() {
|
|
3789
|
-
return new
|
|
3775
|
+
return new mt("Status is undefined.");
|
|
3790
3776
|
}
|
|
3791
3777
|
}
|
|
3792
|
-
class Ja extends
|
|
3778
|
+
class Ja extends mt {
|
|
3793
3779
|
}
|
|
3794
|
-
function
|
|
3780
|
+
function Uo(t, e) {
|
|
3795
3781
|
const n = A([]);
|
|
3796
3782
|
async function s(i, a) {
|
|
3797
3783
|
if (!i)
|
|
@@ -3815,7 +3801,7 @@ function xo(t, e) {
|
|
|
3815
3801
|
keys: {
|
|
3816
3802
|
Id: a
|
|
3817
3803
|
},
|
|
3818
|
-
contextId:
|
|
3804
|
+
contextId: $.contextId
|
|
3819
3805
|
}),
|
|
3820
3806
|
headers: {
|
|
3821
3807
|
"Content-Type": "application/json"
|
|
@@ -3832,32 +3818,32 @@ function xo(t, e) {
|
|
|
3832
3818
|
};
|
|
3833
3819
|
}
|
|
3834
3820
|
}
|
|
3835
|
-
class
|
|
3821
|
+
class He {
|
|
3836
3822
|
static url() {
|
|
3837
3823
|
return "/close-api/presentation";
|
|
3838
3824
|
}
|
|
3839
3825
|
static getStatuses(e, n) {
|
|
3840
|
-
return fetch(`${
|
|
3826
|
+
return fetch(`${He.url()}/status/${e}/${n}`).then((s) => s.json());
|
|
3841
3827
|
}
|
|
3842
3828
|
}
|
|
3843
|
-
function
|
|
3829
|
+
function xo(t) {
|
|
3844
3830
|
const e = A({
|
|
3845
3831
|
title: "Loading",
|
|
3846
3832
|
type: "wait"
|
|
3847
3833
|
});
|
|
3848
3834
|
function n(s) {
|
|
3849
3835
|
if (t.name && Number.isInteger(s))
|
|
3850
|
-
return
|
|
3836
|
+
return He.getStatuses(t.name, s).then((r) => {
|
|
3851
3837
|
e.type = r.type, e.title = r.name;
|
|
3852
3838
|
});
|
|
3853
3839
|
}
|
|
3854
|
-
return t.on(
|
|
3840
|
+
return t.on(J.EVENT_READ, (s) => {
|
|
3855
3841
|
var a, o;
|
|
3856
3842
|
const { code: r, name: i } = {
|
|
3857
3843
|
code: (a = s.Status) == null ? void 0 : a.Code,
|
|
3858
3844
|
name: (o = s.Status) == null ? void 0 : o.Name
|
|
3859
3845
|
};
|
|
3860
|
-
return t.name ? !Number.isInteger(r) && !i ? void console.log("Undefined code or name is Status prop.") :
|
|
3846
|
+
return t.name ? !Number.isInteger(r) && !i ? void console.log("Undefined code or name is Status prop.") : He.getStatuses(t.name, r).then((c) => {
|
|
3861
3847
|
e.type = c.type, e.title = i;
|
|
3862
3848
|
}) : void console.log("Form without name.");
|
|
3863
3849
|
}), { label: e, update: n };
|
|
@@ -3871,56 +3857,56 @@ function Bo(t, e) {
|
|
|
3871
3857
|
r.ready = !1;
|
|
3872
3858
|
}), Tt(() => s.value, () => {
|
|
3873
3859
|
Number.isInteger(s.value) && t.read();
|
|
3874
|
-
}, { immediate: !0 }), t.read =
|
|
3860
|
+
}, { immediate: !0 }), t.read = Se.requestHandler.bind(
|
|
3875
3861
|
null,
|
|
3876
3862
|
() => Promise.resolve().then(() => {
|
|
3877
3863
|
if (!t.name)
|
|
3878
3864
|
throw new Error("Form without entity name. Please set form.name");
|
|
3879
|
-
return
|
|
3865
|
+
return H.readById(t.name, s.value, {
|
|
3880
3866
|
fields: e.fields
|
|
3881
3867
|
});
|
|
3882
|
-
}).then(
|
|
3868
|
+
}).then(Se.valuesToUpperCase).then((i) => (Number.isInteger(i.Version) && (t.version = i.Version), t.setValues(i), r.show = !0, i)).catch((i) => {
|
|
3883
3869
|
throw Object.prototype.hasOwnProperty.call(i, "status") && [403, 404].includes(i.status) && (r.show = !1), i;
|
|
3884
3870
|
}).finally(() => {
|
|
3885
3871
|
r.ready = !0;
|
|
3886
3872
|
})
|
|
3887
|
-
), t.save =
|
|
3873
|
+
), t.save = Se.requestHandler.bind(
|
|
3888
3874
|
null,
|
|
3889
3875
|
() => Promise.resolve().then(() => {
|
|
3890
3876
|
if (!t.name)
|
|
3891
3877
|
throw new Error("Form without entity name. Please set form.name");
|
|
3892
|
-
return
|
|
3878
|
+
return H.updateById(t.name, s.value, t.changes, { version: t.version });
|
|
3893
3879
|
}).then((i) => {
|
|
3894
3880
|
t.version = i.version;
|
|
3895
3881
|
})
|
|
3896
|
-
), t.on(
|
|
3882
|
+
), t.on(J.EVENT_SAVE, t.read.bind(t)), {
|
|
3897
3883
|
formShadowState: r
|
|
3898
3884
|
};
|
|
3899
3885
|
}
|
|
3900
3886
|
function qo() {
|
|
3901
3887
|
const t = A({
|
|
3902
|
-
contextId:
|
|
3903
|
-
person:
|
|
3904
|
-
organizations:
|
|
3905
|
-
ready:
|
|
3906
|
-
user:
|
|
3888
|
+
contextId: $.contextId,
|
|
3889
|
+
person: $.person,
|
|
3890
|
+
organizations: $.organizations,
|
|
3891
|
+
ready: $.ready,
|
|
3892
|
+
user: $.user
|
|
3907
3893
|
}), e = V(() => {
|
|
3908
|
-
if (
|
|
3894
|
+
if (!$.ready || !$.person)
|
|
3909
3895
|
return null;
|
|
3910
3896
|
const s = t.contextId;
|
|
3911
|
-
return
|
|
3897
|
+
return $.person.id === s ? $.person : $.organizations.find((r) => r.id === s) || null;
|
|
3912
3898
|
}), n = V(() => {
|
|
3913
3899
|
var s;
|
|
3914
3900
|
return t.contextId === ((s = t.person) == null ? void 0 : s.id);
|
|
3915
3901
|
});
|
|
3916
|
-
return
|
|
3902
|
+
return $.onupdateContext((s) => {
|
|
3917
3903
|
t.contextId = s;
|
|
3918
|
-
}),
|
|
3919
|
-
t.person =
|
|
3920
|
-
}),
|
|
3904
|
+
}), $.onupdateData(() => {
|
|
3905
|
+
t.person = $.person, t.organizations = $.organizations, t.user = $.user;
|
|
3906
|
+
}), $.onReady((s) => {
|
|
3921
3907
|
t.ready = s;
|
|
3922
3908
|
}), {
|
|
3923
|
-
state:
|
|
3909
|
+
state: xt(t),
|
|
3924
3910
|
currentContext: e,
|
|
3925
3911
|
isPerson: n
|
|
3926
3912
|
};
|
|
@@ -3937,12 +3923,12 @@ function Go(t, e) {
|
|
|
3937
3923
|
let r = e();
|
|
3938
3924
|
return Promise.resolve().then(() => {
|
|
3939
3925
|
if (!t.name)
|
|
3940
|
-
throw
|
|
3941
|
-
return
|
|
3926
|
+
throw x.EntityWithoutName("Use Form Request");
|
|
3927
|
+
return H.readById(t.name, r.id, {
|
|
3942
3928
|
fields: r.fields
|
|
3943
3929
|
});
|
|
3944
|
-
}).then(
|
|
3945
|
-
const a =
|
|
3930
|
+
}).then(Se.valuesToUpperCase).then((i) => (i.hasOwnProperty("Version") && (t.version = Number(i.Version)), t.setValues(i), n.show = !0, i)).catch((i) => {
|
|
3931
|
+
const a = Ge(i);
|
|
3946
3932
|
throw D.add("error", a.message), a;
|
|
3947
3933
|
}).finally(() => {
|
|
3948
3934
|
n.ready = !0;
|
|
@@ -3951,15 +3937,15 @@ function Go(t, e) {
|
|
|
3951
3937
|
let r = e();
|
|
3952
3938
|
return Promise.resolve().then(() => {
|
|
3953
3939
|
if (!t.name)
|
|
3954
|
-
throw
|
|
3955
|
-
return
|
|
3940
|
+
throw x.EntityWithoutName("Use Form Request");
|
|
3941
|
+
return H.updateById(t.name, r.id, t.changes, { version: t.version });
|
|
3956
3942
|
}).then((i) => {
|
|
3957
3943
|
t.version = i.version || i.Version;
|
|
3958
3944
|
}).catch((i) => {
|
|
3959
|
-
const a =
|
|
3945
|
+
const a = Ge(i);
|
|
3960
3946
|
throw D.add("error", a.message), a;
|
|
3961
3947
|
});
|
|
3962
|
-
}, t.on(
|
|
3948
|
+
}, t.on(J.EVENT_SAVE, t.read.bind(t)), { shadowFormState: n, initShadow: s };
|
|
3963
3949
|
}
|
|
3964
3950
|
class zo {
|
|
3965
3951
|
static getRequiredDocuments(e, n, s) {
|
|
@@ -3979,7 +3965,7 @@ class Te {
|
|
|
3979
3965
|
return fetch(`/${Te.url()}/calculator/${e}`);
|
|
3980
3966
|
}
|
|
3981
3967
|
static calculate(e, n) {
|
|
3982
|
-
return
|
|
3968
|
+
return _(`/${Te.url()}/calculator`, {
|
|
3983
3969
|
method: "POST",
|
|
3984
3970
|
headers: {
|
|
3985
3971
|
"Content-Type": "application/json"
|
|
@@ -3991,7 +3977,7 @@ class Te {
|
|
|
3991
3977
|
}).then((s) => {
|
|
3992
3978
|
if (s && s.status === 1)
|
|
3993
3979
|
return s;
|
|
3994
|
-
throw Array.isArray(s.notes) ? new Error(s.notes[0]) :
|
|
3980
|
+
throw Array.isArray(s.notes) ? new Error(s.notes[0]) : x.ApiNotAvailable();
|
|
3995
3981
|
});
|
|
3996
3982
|
}
|
|
3997
3983
|
static parseMetadataField(e) {
|
|
@@ -4019,7 +4005,7 @@ class Te {
|
|
|
4019
4005
|
* @description Метод для создания онлайн платежа.
|
|
4020
4006
|
* */
|
|
4021
4007
|
static createOnlinePayment(e, n) {
|
|
4022
|
-
return
|
|
4008
|
+
return _(`/${Te.url()}/online-payment`, {
|
|
4023
4009
|
method: "POST",
|
|
4024
4010
|
headers: {
|
|
4025
4011
|
"Content-Type": "application/json"
|
|
@@ -4035,7 +4021,7 @@ class Te {
|
|
|
4035
4021
|
* все полученные данные(в нашем случае весь URL) на аппсервер.
|
|
4036
4022
|
* */
|
|
4037
4023
|
static applyOnlinePayment(e) {
|
|
4038
|
-
return
|
|
4024
|
+
return _(`/${Te.url()}/online-payment`, {
|
|
4039
4025
|
method: "PUT",
|
|
4040
4026
|
headers: {
|
|
4041
4027
|
"Content-Type": "application/json"
|
|
@@ -4054,7 +4040,7 @@ class Ho {
|
|
|
4054
4040
|
const s = new URLSearchParams();
|
|
4055
4041
|
s.set("entity", e), n && s.set("mark", n);
|
|
4056
4042
|
const r = `/close-api/views/list/configs?${s.toString()}`;
|
|
4057
|
-
return
|
|
4043
|
+
return _(r);
|
|
4058
4044
|
}
|
|
4059
4045
|
}
|
|
4060
4046
|
function Ka(t) {
|
|
@@ -4072,7 +4058,7 @@ function Jo(t, e, n) {
|
|
|
4072
4058
|
wait: null
|
|
4073
4059
|
});
|
|
4074
4060
|
let i = [], a = null;
|
|
4075
|
-
const o =
|
|
4061
|
+
const o = B(null);
|
|
4076
4062
|
function c() {
|
|
4077
4063
|
o.value = i.find((v) => v.name === a) || null;
|
|
4078
4064
|
}
|
|
@@ -4080,23 +4066,23 @@ function Jo(t, e, n) {
|
|
|
4080
4066
|
var v;
|
|
4081
4067
|
return a ? ((v = i.find((L) => L.name === a)) == null ? void 0 : v.fields) || [] : [];
|
|
4082
4068
|
}
|
|
4083
|
-
function
|
|
4069
|
+
function h(v) {
|
|
4084
4070
|
if (c(), Xa(v))
|
|
4085
4071
|
return void n.onValidation(v.validationResults);
|
|
4086
4072
|
if ((v.statusName === "FinalStep" || v.statusName === "NextStep") && (!p().length || Za(p(), n.presets)))
|
|
4087
4073
|
return ue(n.presets || {});
|
|
4088
4074
|
Ka(v) && n.onCompleted(v), Ya(v) && n.onConfirmation(v);
|
|
4089
4075
|
}
|
|
4090
|
-
async function
|
|
4076
|
+
async function m() {
|
|
4091
4077
|
try {
|
|
4092
|
-
await
|
|
4078
|
+
await E(), await _e();
|
|
4093
4079
|
} catch (v) {
|
|
4094
|
-
const { message: L } =
|
|
4080
|
+
const { message: L } = Ge(v);
|
|
4095
4081
|
D.add("error", L);
|
|
4096
4082
|
}
|
|
4097
4083
|
}
|
|
4098
|
-
function
|
|
4099
|
-
return r.wait = "Loading process information.",
|
|
4084
|
+
function E() {
|
|
4085
|
+
return r.wait = "Loading process information.", it.getStartConfig(e, t).then((v) => {
|
|
4100
4086
|
i = v.steps.map((L) => ({
|
|
4101
4087
|
label: L.title,
|
|
4102
4088
|
name: L.stepName,
|
|
@@ -4111,27 +4097,27 @@ function Jo(t, e, n) {
|
|
|
4111
4097
|
}));
|
|
4112
4098
|
}).then((v) => (r.wait = !1, v));
|
|
4113
4099
|
}
|
|
4114
|
-
function
|
|
4100
|
+
function C(v) {
|
|
4115
4101
|
return a = v.nextStepName, s = v.token, v;
|
|
4116
4102
|
}
|
|
4117
|
-
function
|
|
4118
|
-
const L =
|
|
4103
|
+
function K(v) {
|
|
4104
|
+
const L = Ge(v);
|
|
4119
4105
|
D.add("error", L.message);
|
|
4120
4106
|
}
|
|
4121
4107
|
function _e() {
|
|
4122
|
-
return r.wait = "Starting process",
|
|
4108
|
+
return r.wait = "Starting process", it.startProcess(e, t).then(C).then(h).catch(K).finally(() => {
|
|
4123
4109
|
r.wait = null;
|
|
4124
4110
|
});
|
|
4125
4111
|
}
|
|
4126
4112
|
function ue(v = {}) {
|
|
4127
|
-
return !s || !a ? Promise.reject("Not step or token.") : (r.wait = "Expect the result",
|
|
4113
|
+
return !s || !a ? Promise.reject("Not step or token.") : (r.wait = "Expect the result", it.runStep(e, t, a, s, v).then(C).then(h).catch(K).finally(() => {
|
|
4128
4114
|
r.wait = !1;
|
|
4129
4115
|
}));
|
|
4130
4116
|
}
|
|
4131
4117
|
return {
|
|
4132
|
-
initialize:
|
|
4118
|
+
initialize: m,
|
|
4133
4119
|
state: r,
|
|
4134
|
-
currentStepConfig:
|
|
4120
|
+
currentStepConfig: xt(o),
|
|
4135
4121
|
next: ue
|
|
4136
4122
|
};
|
|
4137
4123
|
}
|
|
@@ -4149,7 +4135,7 @@ class Ko {
|
|
|
4149
4135
|
const a = new URLSearchParams();
|
|
4150
4136
|
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
4137
|
const o = `/${Qa}?${a.toString()}`;
|
|
4152
|
-
return
|
|
4138
|
+
return _(o, {
|
|
4153
4139
|
method: "GET",
|
|
4154
4140
|
headers: {
|
|
4155
4141
|
"Content-Type": "application/json"
|
|
@@ -4158,20 +4144,20 @@ class Ko {
|
|
|
4158
4144
|
}
|
|
4159
4145
|
}
|
|
4160
4146
|
const Yo = {
|
|
4161
|
-
clickOutside:
|
|
4162
|
-
requestHandler:
|
|
4163
|
-
valuesToUpperCase:
|
|
4164
|
-
prettyDate:
|
|
4147
|
+
clickOutside: Ae,
|
|
4148
|
+
requestHandler: ht,
|
|
4149
|
+
valuesToUpperCase: Ze,
|
|
4150
|
+
prettyDate: gt,
|
|
4165
4151
|
prettyDateWithTime: ln,
|
|
4166
4152
|
Filter: Y,
|
|
4167
4153
|
staticLink: Ga,
|
|
4168
4154
|
groupArrayByField: za,
|
|
4169
4155
|
uuidv4: Ha,
|
|
4170
|
-
Request:
|
|
4156
|
+
Request: _,
|
|
4171
4157
|
prettyMoney: tn
|
|
4172
4158
|
}, Xo = {
|
|
4173
4159
|
widgets: jr,
|
|
4174
|
-
usage:
|
|
4160
|
+
usage: Ur,
|
|
4175
4161
|
utils: Zr,
|
|
4176
4162
|
mixins: In,
|
|
4177
4163
|
config: Qr,
|
|
@@ -4181,18 +4167,18 @@ export {
|
|
|
4181
4167
|
qr as ApplicationManager,
|
|
4182
4168
|
Do as Communication,
|
|
4183
4169
|
wo as ComputedMetadata,
|
|
4184
|
-
|
|
4170
|
+
x as CoreError,
|
|
4185
4171
|
Y as Filter,
|
|
4186
4172
|
Z as List,
|
|
4187
4173
|
Wo as ListConfig,
|
|
4188
|
-
|
|
4189
|
-
|
|
4174
|
+
$ as Manager,
|
|
4175
|
+
We as MetadataStore,
|
|
4190
4176
|
No as ModalValidation,
|
|
4191
4177
|
D as NotificationSystem,
|
|
4192
|
-
|
|
4193
|
-
|
|
4178
|
+
pt as ProcessWrap,
|
|
4179
|
+
_ as Request,
|
|
4194
4180
|
W as SYMBOL_ROW,
|
|
4195
|
-
|
|
4181
|
+
Qe as Table,
|
|
4196
4182
|
So as WidgetBreadcrumbs,
|
|
4197
4183
|
_r as WidgetButton,
|
|
4198
4184
|
Oo as WidgetCard,
|
|
@@ -4206,13 +4192,13 @@ export {
|
|
|
4206
4192
|
he as WidgetSpinner,
|
|
4207
4193
|
Ao as WidgetTable,
|
|
4208
4194
|
Ba as actionService,
|
|
4209
|
-
|
|
4195
|
+
F as authService,
|
|
4210
4196
|
Te as billingService,
|
|
4211
|
-
|
|
4197
|
+
Ae as clickOutside,
|
|
4212
4198
|
Br as clientService,
|
|
4213
|
-
|
|
4199
|
+
Be as communicationService,
|
|
4214
4200
|
Ho as configurationService,
|
|
4215
|
-
|
|
4201
|
+
H as dataService,
|
|
4216
4202
|
Fo as debounce,
|
|
4217
4203
|
Xo as default,
|
|
4218
4204
|
zo as documentsService,
|
|
@@ -4224,18 +4210,18 @@ export {
|
|
|
4224
4210
|
pn as metadataService,
|
|
4225
4211
|
vo as newImport,
|
|
4226
4212
|
Lo as openService,
|
|
4227
|
-
|
|
4213
|
+
Ge as parseError,
|
|
4228
4214
|
bo as prettifyValueByMetadata,
|
|
4229
|
-
|
|
4230
|
-
|
|
4215
|
+
it as processWizardService,
|
|
4216
|
+
ht as requestHandler,
|
|
4231
4217
|
fn as ruleValidationService,
|
|
4232
4218
|
To as setupSocket,
|
|
4233
|
-
|
|
4219
|
+
Ce as t,
|
|
4234
4220
|
fo as testTypes,
|
|
4235
4221
|
Mo as useCommunication,
|
|
4236
4222
|
qo as useCustomerState,
|
|
4237
|
-
|
|
4238
|
-
|
|
4223
|
+
Uo as useFormAction,
|
|
4224
|
+
xo as useFormLabel,
|
|
4239
4225
|
jo as useFormMetadata,
|
|
4240
4226
|
Go as useFormRequest,
|
|
4241
4227
|
Bo as useFormRequestData,
|