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