eservices-core 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
|
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 Ft, withCtx as he, withKeys as vn, computed as L, ref as G, normalizeStyle as pt, withModifiers as Mt, 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
3
|
import { openModal as zt } from "jenesius-vue-modal";
|
|
4
4
|
import { Form as Y, utils as ue, FormField as ct } from "jenesius-vue-form";
|
|
5
5
|
import Ht from "object-hash";
|
|
@@ -7,7 +7,7 @@ import { RouterLink as Jt, useRoute as $n } from "vue-router";
|
|
|
7
7
|
import En from "date-and-time";
|
|
8
8
|
import { Manager as Tn } from "socket.io-client";
|
|
9
9
|
/*!
|
|
10
|
-
* eservices-core v1.2.
|
|
10
|
+
* eservices-core v1.2.5
|
|
11
11
|
* (c) 2023 ESERVICES
|
|
12
12
|
*/
|
|
13
13
|
const g = (t, e) => {
|
|
@@ -270,7 +270,7 @@ const Nn = {
|
|
|
270
270
|
class: "input-text__error text_sm"
|
|
271
271
|
};
|
|
272
272
|
function Dn(t, e, n, s, r, i) {
|
|
273
|
-
const
|
|
273
|
+
const o = U("icon");
|
|
274
274
|
return c(), u("div", Pn, [
|
|
275
275
|
t.title ? (c(), u("p", On, [
|
|
276
276
|
Ae(m(t.title) + " ", 1),
|
|
@@ -289,14 +289,14 @@ function Dn(t, e, n, s, r, i) {
|
|
|
289
289
|
error: !!t.errorMessage,
|
|
290
290
|
ref: "input",
|
|
291
291
|
value: n.pretty(t.value),
|
|
292
|
-
onInput: e[0] || (e[0] = (...
|
|
292
|
+
onInput: e[0] || (e[0] = (...a) => i.onInput && i.onInput(...a))
|
|
293
293
|
}, null, 40, Ln),
|
|
294
294
|
t.password ? (c(), u("div", {
|
|
295
295
|
key: 0,
|
|
296
296
|
class: "input-text__password",
|
|
297
|
-
onClick: e[1] || (e[1] = (
|
|
297
|
+
onClick: e[1] || (e[1] = (a) => t.togglePasswordVisible())
|
|
298
298
|
}, [
|
|
299
|
-
C(
|
|
299
|
+
C(o, {
|
|
300
300
|
class: "cursor_pointer",
|
|
301
301
|
name: t.isPasswordVisible ? "eye-crossed" : "eye"
|
|
302
302
|
}, null, 8, ["name"])
|
|
@@ -305,18 +305,18 @@ function Dn(t, e, n, s, r, i) {
|
|
|
305
305
|
], 8, Vn)
|
|
306
306
|
]);
|
|
307
307
|
}
|
|
308
|
-
const
|
|
309
|
-
const
|
|
308
|
+
const Fn = /* @__PURE__ */ g(Nn, [["render", Dn], ["__scopeId", "data-v-65e2ee2d"]]);
|
|
309
|
+
const Mn = {
|
|
310
310
|
mixins: [de],
|
|
311
311
|
name: "InputToggle"
|
|
312
312
|
};
|
|
313
313
|
function jn(t, e, n, s, r, i) {
|
|
314
314
|
return c(), u("div", {
|
|
315
315
|
class: I(["input__toggle widget-input", { active: t.value, disabled: t.disabled || t.isInsideDisabled }]),
|
|
316
|
-
onClick: e[0] || (e[0] = (
|
|
316
|
+
onClick: e[0] || (e[0] = (o) => t.input(!t.value))
|
|
317
317
|
}, null, 2);
|
|
318
318
|
}
|
|
319
|
-
const xn = /* @__PURE__ */ g(
|
|
319
|
+
const xn = /* @__PURE__ */ g(Mn, [["render", jn], ["__scopeId", "data-v-56d58611"]]);
|
|
320
320
|
const Un = {
|
|
321
321
|
props: ["isActive", "title"],
|
|
322
322
|
name: "FragmentInputSelectItem"
|
|
@@ -386,7 +386,7 @@ const zn = {
|
|
|
386
386
|
class: "input-text__error position_absolute margin-0 text_sm color__text_red"
|
|
387
387
|
};
|
|
388
388
|
function ts(t, e, n, s, r, i) {
|
|
389
|
-
const
|
|
389
|
+
const o = U("icon"), a = U("fragment-input-select-item");
|
|
390
390
|
return c(), u("div", Hn, [
|
|
391
391
|
t.title ? (c(), u("p", Jn, [
|
|
392
392
|
Ae(m(t.title) + " ", 1),
|
|
@@ -399,18 +399,18 @@ function ts(t, e, n, s, r, i) {
|
|
|
399
399
|
}, [
|
|
400
400
|
d("div", Yn, [
|
|
401
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(
|
|
402
|
+
t.disabled || t.isInsideDisabled ? h("", !0) : (c(), v(o, {
|
|
403
403
|
key: 2,
|
|
404
404
|
class: "input-select__ico-toggle",
|
|
405
405
|
name: "caret-down"
|
|
406
406
|
}))
|
|
407
407
|
]),
|
|
408
408
|
d("div", Qn, [
|
|
409
|
-
t.value ? (c(), v(
|
|
409
|
+
t.value ? (c(), v(a, {
|
|
410
410
|
key: 0,
|
|
411
411
|
onClick: e[0] || (e[0] = (l) => t.input(null))
|
|
412
412
|
})) : h("", !0),
|
|
413
|
-
(c(!0), u(O, null, j(t.arrayParse, (l, p) => (c(), v(
|
|
413
|
+
(c(!0), u(O, null, j(t.arrayParse, (l, p) => (c(), v(a, {
|
|
414
414
|
class: "input-select-list__item",
|
|
415
415
|
key: p,
|
|
416
416
|
"is-active": l.value === t.value,
|
|
@@ -478,32 +478,32 @@ const rs = b({
|
|
|
478
478
|
},
|
|
479
479
|
mixins: [de],
|
|
480
480
|
components: { Icon: R }
|
|
481
|
-
}), is = { class: "container-input-file" },
|
|
481
|
+
}), is = { class: "container-input-file" }, as = {
|
|
482
482
|
key: 0,
|
|
483
483
|
class: "process-info input-file__wait text_size_sm"
|
|
484
|
-
},
|
|
484
|
+
}, os = {
|
|
485
485
|
key: 1,
|
|
486
486
|
class: "process-info input-file__error text_size_sm text_error"
|
|
487
487
|
};
|
|
488
488
|
function ls(t, e, n, s, r, i) {
|
|
489
|
-
const
|
|
489
|
+
const o = U("icon");
|
|
490
490
|
return c(), u("div", is, [
|
|
491
|
-
C(
|
|
491
|
+
C(o, {
|
|
492
492
|
name: "plus",
|
|
493
493
|
class: "icon__file-upload"
|
|
494
494
|
}),
|
|
495
495
|
d("input", {
|
|
496
496
|
type: "file",
|
|
497
497
|
class: "input-file",
|
|
498
|
-
onChange: e[0] || (e[0] = (
|
|
498
|
+
onChange: e[0] || (e[0] = (a) => t.onChange(a.target.files[0]))
|
|
499
499
|
}, null, 32),
|
|
500
|
-
t.pw.wait ? (c(), u("p",
|
|
501
|
-
t.pw.error ? (c(), u("p",
|
|
500
|
+
t.pw.wait ? (c(), u("p", as, "Loading...")) : h("", !0),
|
|
501
|
+
t.pw.error ? (c(), u("p", os, "Error load file")) : h("", !0)
|
|
502
502
|
]);
|
|
503
503
|
}
|
|
504
504
|
const cs = /* @__PURE__ */ g(rs, [["render", ls], ["__scopeId", "data-v-bdbf1475"]]), us = {
|
|
505
505
|
//InputAddress,
|
|
506
|
-
InputText:
|
|
506
|
+
InputText: Fn,
|
|
507
507
|
InputToggle: xn,
|
|
508
508
|
InputSelect: ns,
|
|
509
509
|
InputLoadFile: cs
|
|
@@ -531,7 +531,7 @@ const ds = {
|
|
|
531
531
|
return {};
|
|
532
532
|
},
|
|
533
533
|
name: "WidgetInputContainer"
|
|
534
|
-
}, ps = (t) => (Dt("data-v-1e3f1057"), t = t(),
|
|
534
|
+
}, ps = (t) => (Dt("data-v-1e3f1057"), t = t(), Ft(), t), fs = { class: "widget-input__container" }, hs = { class: "input-container__content" }, _s = /* @__PURE__ */ ps(() => /* @__PURE__ */ d("div", { class: "widget-input__underline" }, null, -1));
|
|
535
535
|
function gs(t, e, n, s, r, i) {
|
|
536
536
|
return c(), u("div", fs, [
|
|
537
537
|
d("div", hs, [
|
|
@@ -551,8 +551,8 @@ const ys = {
|
|
|
551
551
|
name: "InputText"
|
|
552
552
|
}, vs = ["type", "value"];
|
|
553
553
|
function ws(t, e, n, s, r, i) {
|
|
554
|
-
const
|
|
555
|
-
return c(), v(
|
|
554
|
+
const o = U("icon"), a = U("widget-input-container");
|
|
555
|
+
return c(), v(a, {
|
|
556
556
|
placeholder: t.placeholder,
|
|
557
557
|
error: !!t.errorMessage
|
|
558
558
|
}, {
|
|
@@ -569,7 +569,7 @@ function ws(t, e, n, s, r, i) {
|
|
|
569
569
|
class: "input-text__password",
|
|
570
570
|
onClick: e[2] || (e[2] = (l) => t.togglePasswordVisible())
|
|
571
571
|
}, [
|
|
572
|
-
C(
|
|
572
|
+
C(o, {
|
|
573
573
|
class: "cursor_pointer",
|
|
574
574
|
name: t.isPasswordVisible ? "eye-crossed" : "eye"
|
|
575
575
|
}, null, 8, ["name"])
|
|
@@ -649,7 +649,7 @@ const Es = b({
|
|
|
649
649
|
class: "input-text__error text_sm color__text_red"
|
|
650
650
|
};
|
|
651
651
|
function ks(t, e, n, s, r, i) {
|
|
652
|
-
const
|
|
652
|
+
const o = U("icon");
|
|
653
653
|
return c(), u(O, null, [
|
|
654
654
|
t.title ? (c(), u("p", Ts, [
|
|
655
655
|
Ae(m(t.title) + " ", 1),
|
|
@@ -668,14 +668,14 @@ function ks(t, e, n, s, r, i) {
|
|
|
668
668
|
error: !!t.errorMessage,
|
|
669
669
|
ref: "input",
|
|
670
670
|
value: t.pretty(t.value),
|
|
671
|
-
onInput: e[0] || (e[0] = (...
|
|
671
|
+
onInput: e[0] || (e[0] = (...a) => t.onInput && t.onInput(...a))
|
|
672
672
|
}, null, 40, Is),
|
|
673
673
|
t.password ? (c(), u("div", {
|
|
674
674
|
key: 0,
|
|
675
675
|
class: "input-text__password",
|
|
676
|
-
onClick: e[1] || (e[1] = (
|
|
676
|
+
onClick: e[1] || (e[1] = (a) => t.togglePasswordVisible())
|
|
677
677
|
}, [
|
|
678
|
-
C(
|
|
678
|
+
C(o, {
|
|
679
679
|
class: "cursor_pointer",
|
|
680
680
|
name: t.isPasswordVisible ? "eye-crossed" : "eye"
|
|
681
681
|
}, null, 8, ["name"])
|
|
@@ -698,17 +698,17 @@ const Rs = {
|
|
|
698
698
|
values: [Object, Array, String]
|
|
699
699
|
},
|
|
700
700
|
setup(t) {
|
|
701
|
-
Array.isArray(t.values) && t.values.forEach((
|
|
702
|
-
|
|
701
|
+
Array.isArray(t.values) && t.values.forEach((o) => {
|
|
702
|
+
o.func && console.warn("Prop func is deprecated. Use callback.", o);
|
|
703
703
|
});
|
|
704
704
|
const e = L(() => {
|
|
705
705
|
if (!s.value)
|
|
706
706
|
return "30px";
|
|
707
|
-
let
|
|
708
|
-
return Array.isArray(t.values) && (
|
|
707
|
+
let o = 0;
|
|
708
|
+
return Array.isArray(t.values) && (o += t.values.length), t.title && o++, typeof t.values == "string" && !Array.isArray(t.values) && o++, o * 30 + "px";
|
|
709
709
|
}), n = L(() => Array.isArray(t.values) ? t.values : typeof t.values == "string" ? { title: t.values } : [t.values]), s = G(!1);
|
|
710
|
-
function r(
|
|
711
|
-
s.value =
|
|
710
|
+
function r(o = !s.value) {
|
|
711
|
+
s.value = o, o && ke(i.value, () => r(!1));
|
|
712
712
|
}
|
|
713
713
|
const i = G(null);
|
|
714
714
|
return {
|
|
@@ -722,7 +722,7 @@ const Rs = {
|
|
|
722
722
|
name: "Button"
|
|
723
723
|
}, Vs = { class: "widget-button-wrap flex" }, Ls = ["onClick"];
|
|
724
724
|
function Ws(t, e, n, s, r, i) {
|
|
725
|
-
const
|
|
725
|
+
const o = U("icon");
|
|
726
726
|
return c(), u("div", Vs, [
|
|
727
727
|
d("div", {
|
|
728
728
|
class: I(["widget-button flex", { active: s.isActive }]),
|
|
@@ -735,20 +735,20 @@ function Ws(t, e, n, s, r, i) {
|
|
|
735
735
|
n.title ? (c(), u("span", {
|
|
736
736
|
key: 0,
|
|
737
737
|
class: "widget-button__list-elem cursor_pointer",
|
|
738
|
-
onClick: e[0] || (e[0] = (
|
|
738
|
+
onClick: e[0] || (e[0] = (a) => s.toggle())
|
|
739
739
|
}, m(n.title), 1)) : h("", !0),
|
|
740
|
-
(c(!0), u(O, null, j(s.array, (
|
|
740
|
+
(c(!0), u(O, null, j(s.array, (a, l) => (c(), u("span", {
|
|
741
741
|
class: "widget-button__list-elem cursor_pointer",
|
|
742
|
-
onClick: (p) => (
|
|
742
|
+
onClick: (p) => (a.callback(), s.toggle(!1)),
|
|
743
743
|
key: l
|
|
744
|
-
}, m(
|
|
744
|
+
}, m(a.title), 9, Ls))), 128))
|
|
745
745
|
], 4),
|
|
746
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] = Mt((a) => s.toggle(), ["stop"]))
|
|
750
750
|
}, [
|
|
751
|
-
C(
|
|
751
|
+
C(o, {
|
|
752
752
|
class: "widget-button__toggle-icon",
|
|
753
753
|
name: "angle-small-down"
|
|
754
754
|
})
|
|
@@ -765,16 +765,16 @@ const Ds = {
|
|
|
765
765
|
name: "WidgetFormFunctionItem",
|
|
766
766
|
components: { Icon: R }
|
|
767
767
|
};
|
|
768
|
-
function
|
|
769
|
-
const
|
|
768
|
+
function Fs(t, e, n, s, r, i) {
|
|
769
|
+
const o = U("icon");
|
|
770
770
|
return c(), u("div", {
|
|
771
771
|
class: "function-item cursor_pointer",
|
|
772
|
-
onClick: e[0] || (e[0] = (...
|
|
772
|
+
onClick: e[0] || (e[0] = (...a) => n.func && n.func(...a))
|
|
773
773
|
}, [
|
|
774
|
-
C(
|
|
774
|
+
C(o, { name: n.icon }, null, 8, ["name"])
|
|
775
775
|
]);
|
|
776
776
|
}
|
|
777
|
-
const
|
|
777
|
+
const Ms = /* @__PURE__ */ g(Ds, [["render", Fs], ["__scopeId", "data-v-73f7eb9f"]]);
|
|
778
778
|
const js = {
|
|
779
779
|
props: {
|
|
780
780
|
title: String
|
|
@@ -788,7 +788,7 @@ function Bs(t, e, n, s, r, i) {
|
|
|
788
788
|
}
|
|
789
789
|
const qs = /* @__PURE__ */ g(js, [["render", Bs], ["__scopeId", "data-v-c91ffa31"]]);
|
|
790
790
|
const Gs = {
|
|
791
|
-
components: { WidgetFormTitle: qs, WidgetFormFunctionItem:
|
|
791
|
+
components: { WidgetFormTitle: qs, WidgetFormFunctionItem: Ms, WidgetButton: Kt },
|
|
792
792
|
props: {
|
|
793
793
|
title: String,
|
|
794
794
|
button: {
|
|
@@ -800,11 +800,11 @@ const Gs = {
|
|
|
800
800
|
name: "WidgetForm"
|
|
801
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
802
|
function Ys(t, e, n, s, r, i) {
|
|
803
|
-
const
|
|
803
|
+
const o = U("widget-form-title"), a = U("widget-button"), l = U("widget-form-function-item");
|
|
804
804
|
return c(), u("div", zs, [
|
|
805
805
|
d("div", Hs, [
|
|
806
|
-
C(
|
|
807
|
-
Array.isArray(n.button) && n.button.length || !Array.isArray(n.button) && n.button ? (c(), v(
|
|
806
|
+
C(o, { title: n.title }, null, 8, ["title"]),
|
|
807
|
+
Array.isArray(n.button) && n.button.length || !Array.isArray(n.button) && n.button ? (c(), v(a, {
|
|
808
808
|
key: 0,
|
|
809
809
|
class: "widget-form__head-button",
|
|
810
810
|
values: n.button
|
|
@@ -866,8 +866,8 @@ function ir(t, e, n, s, r, i) {
|
|
|
866
866
|
])) : h("", !0)
|
|
867
867
|
], 2);
|
|
868
868
|
}
|
|
869
|
-
const
|
|
870
|
-
const
|
|
869
|
+
const ar = /* @__PURE__ */ g(Qs, [["render", ir], ["__scopeId", "data-v-9264f6f4"]]);
|
|
870
|
+
const or = {
|
|
871
871
|
name: "ContainerAuthView"
|
|
872
872
|
}, lr = { class: "container-auth-wrap" }, cr = { class: "container-auth-sidebar" }, ur = { class: "container-auth-main" };
|
|
873
873
|
function dr(t, e, n, s, r, i) {
|
|
@@ -880,8 +880,8 @@ function dr(t, e, n, s, r, i) {
|
|
|
880
880
|
])
|
|
881
881
|
]);
|
|
882
882
|
}
|
|
883
|
-
const pr = /* @__PURE__ */ g(
|
|
884
|
-
ContainerFormElem:
|
|
883
|
+
const pr = /* @__PURE__ */ g(or, [["render", dr], ["__scopeId", "data-v-0b1a5e81"]]), fr = {
|
|
884
|
+
ContainerFormElem: ar,
|
|
885
885
|
ContainerAuthView: pr
|
|
886
886
|
}, hr = /* @__PURE__ */ b({
|
|
887
887
|
__name: "WidgetSpinner",
|
|
@@ -916,7 +916,7 @@ const _e = /* @__PURE__ */ g(hr, [["__scopeId", "data-v-12ff0501"]]), _r = { cla
|
|
|
916
916
|
const s = _t(e.callback);
|
|
917
917
|
return (r, i) => (c(), u("div", {
|
|
918
918
|
class: "button-wrap",
|
|
919
|
-
onClick: i[0] || (i[0] = (
|
|
919
|
+
onClick: i[0] || (i[0] = (o) => P(s).call())
|
|
920
920
|
}, [
|
|
921
921
|
P(s).wait || r.wait ? (c(), v(_e, {
|
|
922
922
|
key: 0,
|
|
@@ -948,7 +948,7 @@ const mr = /* @__PURE__ */ g(gr, [["__scopeId", "data-v-937d2e62"]]), yr = { cla
|
|
|
948
948
|
function r(i) {
|
|
949
949
|
e.setFunction(i), e.call();
|
|
950
950
|
}
|
|
951
|
-
return (i,
|
|
951
|
+
return (i, o) => (c(), u("div", yr, [
|
|
952
952
|
d("div", vr, [
|
|
953
953
|
d("div", {
|
|
954
954
|
class: I(["button__content", { button__content_active: n.active }])
|
|
@@ -956,14 +956,14 @@ const mr = /* @__PURE__ */ g(gr, [["__scopeId", "data-v-937d2e62"]]), yr = { cla
|
|
|
956
956
|
i.title ? (c(), u("p", {
|
|
957
957
|
key: 0,
|
|
958
958
|
class: "button__content-title widget-multi-button-row",
|
|
959
|
-
onClick:
|
|
959
|
+
onClick: o[0] || (o[0] = (a) => s())
|
|
960
960
|
}, m(i.title), 1)) : h("", !0),
|
|
961
961
|
d("div", wr, [
|
|
962
|
-
(c(!0), u(O, null, j(i.array, (
|
|
962
|
+
(c(!0), u(O, null, j(i.array, (a, l) => (c(), u("p", {
|
|
963
963
|
class: "button__content-title widget-multi-button-row",
|
|
964
964
|
key: l,
|
|
965
|
-
onClick: (p) => (r(
|
|
966
|
-
}, m(
|
|
965
|
+
onClick: (p) => (r(a.callback), s(!1))
|
|
966
|
+
}, m(a.title), 9, br))), 128))
|
|
967
967
|
])
|
|
968
968
|
], 2),
|
|
969
969
|
d("div", $r, [
|
|
@@ -972,7 +972,7 @@ const mr = /* @__PURE__ */ g(gr, [["__scopeId", "data-v-937d2e62"]]), yr = { cla
|
|
|
972
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
|
-
onClick:
|
|
975
|
+
onClick: o[1] || (o[1] = (a) => s())
|
|
976
976
|
}, [
|
|
977
977
|
C(R, {
|
|
978
978
|
class: "button__toggle-icon",
|
|
@@ -991,7 +991,7 @@ const Yt = /* @__PURE__ */ g(Tr, [["__scopeId", "data-v-13176c56"]]), Sr = {
|
|
|
991
991
|
Icon: R
|
|
992
992
|
}, Ir = {
|
|
993
993
|
WidgetSpinner: _e
|
|
994
|
-
},
|
|
994
|
+
}, M = new class {
|
|
995
995
|
constructor() {
|
|
996
996
|
this.store = A([]);
|
|
997
997
|
}
|
|
@@ -1070,21 +1070,21 @@ const It = /* @__PURE__ */ g(Vr, [["__scopeId", "data-v-8a0a0924"]]), Lr = {
|
|
|
1070
1070
|
var i;
|
|
1071
1071
|
return !!((i = n.card.children) != null && i.length);
|
|
1072
1072
|
}), r = G(!0);
|
|
1073
|
-
return (i,
|
|
1073
|
+
return (i, o) => (c(), u("div", null, [
|
|
1074
1074
|
(c(), v(It, {
|
|
1075
1075
|
message: i.card.msg,
|
|
1076
1076
|
key: i.card.id,
|
|
1077
|
-
onClose:
|
|
1078
|
-
onToggle:
|
|
1077
|
+
onClose: o[0] || (o[0] = (a) => e("closeCard", i.card.id)),
|
|
1078
|
+
onToggle: o[1] || (o[1] = (a) => r.value = !r.value),
|
|
1079
1079
|
"is-group": s.value
|
|
1080
1080
|
}, null, 8, ["message", "is-group"])),
|
|
1081
1081
|
!r.value && i.card.children ? (c(), u("div", Lr, [
|
|
1082
1082
|
C(jt, { name: "fade" }, {
|
|
1083
1083
|
default: he(() => [
|
|
1084
|
-
(c(!0), u(O, null, j(i.card.children, (
|
|
1085
|
-
key:
|
|
1086
|
-
message:
|
|
1087
|
-
onClose: (l) => e("closeChild",
|
|
1084
|
+
(c(!0), u(O, null, j(i.card.children, (a) => (c(), v(It, {
|
|
1085
|
+
key: a.id,
|
|
1086
|
+
message: a.msg,
|
|
1087
|
+
onClose: (l) => e("closeChild", a.id)
|
|
1088
1088
|
}, null, 8, ["message", "onClose"]))), 128))
|
|
1089
1089
|
]),
|
|
1090
1090
|
_: 1
|
|
@@ -1093,17 +1093,17 @@ const It = /* @__PURE__ */ g(Vr, [["__scopeId", "data-v-8a0a0924"]]), Lr = {
|
|
|
1093
1093
|
]));
|
|
1094
1094
|
}
|
|
1095
1095
|
});
|
|
1096
|
-
const Dr = /* @__PURE__ */ g(Wr, [["__scopeId", "data-v-aa732044"]]),
|
|
1096
|
+
const Dr = /* @__PURE__ */ g(Wr, [["__scopeId", "data-v-aa732044"]]), Fr = { class: "container-errors" }, Mr = /* @__PURE__ */ b({
|
|
1097
1097
|
__name: "WidgetNotificationSystem",
|
|
1098
1098
|
setup(t) {
|
|
1099
|
-
return (e, n) => (c(), u("div",
|
|
1099
|
+
return (e, n) => (c(), u("div", Fr, [
|
|
1100
1100
|
C(jt, { name: "fade" }, {
|
|
1101
1101
|
default: he(() => [
|
|
1102
|
-
(c(!0), u(O, null, j(P(
|
|
1102
|
+
(c(!0), u(O, null, j(P(M).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(M).remove(s.id),
|
|
1106
|
+
onCloseChild: (r) => P(M).removeChild(s.id, r)
|
|
1107
1107
|
}, null, 8, ["card", "onCloseCard", "onCloseChild"]))), 128))
|
|
1108
1108
|
]),
|
|
1109
1109
|
_: 1
|
|
@@ -1111,7 +1111,7 @@ const Dr = /* @__PURE__ */ g(Wr, [["__scopeId", "data-v-aa732044"]]), Mr = { cla
|
|
|
1111
1111
|
]));
|
|
1112
1112
|
}
|
|
1113
1113
|
});
|
|
1114
|
-
const jr = /* @__PURE__ */ g(
|
|
1114
|
+
const jr = /* @__PURE__ */ g(Mr, [["__scopeId", "data-v-8e9870dd"]]), xr = {
|
|
1115
1115
|
default: jr
|
|
1116
1116
|
};
|
|
1117
1117
|
let Ur = {
|
|
@@ -1309,10 +1309,10 @@ var tn = (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
|
-
},
|
|
1312
|
+
}, at = (t, e, n, s) => (tn(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), ve, Me, je;
|
|
1313
1313
|
const pe = class H extends J {
|
|
1314
1314
|
constructor() {
|
|
1315
|
-
super(...arguments), it(this, ve, void 0), it(this,
|
|
1315
|
+
super(...arguments), it(this, ve, void 0), it(this, Me, "front"), this.organizations = [], it(this, je, !1);
|
|
1316
1316
|
}
|
|
1317
1317
|
set language(e) {
|
|
1318
1318
|
localStorage.setItem(H.LOCALSTORAGE_LANGUAGE_KEY, e);
|
|
@@ -1332,7 +1332,7 @@ const pe = class H extends J {
|
|
|
1332
1332
|
return ((e = this.person) == null ? void 0 : e.id) === this.contextId ? "person" : "organization";
|
|
1333
1333
|
}
|
|
1334
1334
|
set router(e) {
|
|
1335
|
-
|
|
1335
|
+
at(this, ve, e);
|
|
1336
1336
|
}
|
|
1337
1337
|
/**
|
|
1338
1338
|
* @description VueRouter of Application
|
|
@@ -1343,10 +1343,10 @@ const pe = class H extends J {
|
|
|
1343
1343
|
return De(this, ve);
|
|
1344
1344
|
}
|
|
1345
1345
|
set type(e) {
|
|
1346
|
-
|
|
1346
|
+
at(this, Me, e);
|
|
1347
1347
|
}
|
|
1348
1348
|
get type() {
|
|
1349
|
-
return De(this,
|
|
1349
|
+
return De(this, Me);
|
|
1350
1350
|
}
|
|
1351
1351
|
get isBack() {
|
|
1352
1352
|
return this.type === "back";
|
|
@@ -1355,7 +1355,7 @@ const pe = class H extends J {
|
|
|
1355
1355
|
return this.type === "front";
|
|
1356
1356
|
}
|
|
1357
1357
|
set ready(e) {
|
|
1358
|
-
|
|
1358
|
+
at(this, je, e), this.emit(H.EVENT_READY_UPDATE, e);
|
|
1359
1359
|
}
|
|
1360
1360
|
get ready() {
|
|
1361
1361
|
return De(this, je);
|
|
@@ -1395,7 +1395,7 @@ const pe = class H extends J {
|
|
|
1395
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
|
+
M.add("error", q.ApiNotAvailable().message);
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
1401
|
loadCustomerData() {
|
|
@@ -1428,7 +1428,7 @@ const pe = class H extends J {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
};
|
|
1430
1430
|
ve = /* @__PURE__ */ new WeakMap();
|
|
1431
|
-
|
|
1431
|
+
Me = /* @__PURE__ */ new WeakMap();
|
|
1432
1432
|
je = /* @__PURE__ */ new WeakMap();
|
|
1433
1433
|
pe.DEFAULT_LANGUAGE = "en";
|
|
1434
1434
|
pe.LOCALSTORAGE_LANGUAGE_KEY = "CurrentLanguage";
|
|
@@ -1438,7 +1438,7 @@ pe.EVENT_DATA_UPDATE = "event:data-update";
|
|
|
1438
1438
|
pe.CURRENT_CONTEXT_KEY = "CurrentContext";
|
|
1439
1439
|
let zr = pe;
|
|
1440
1440
|
const $ = new zr();
|
|
1441
|
-
function
|
|
1441
|
+
function uo() {
|
|
1442
1442
|
const t = A({
|
|
1443
1443
|
contextType: $.contextType,
|
|
1444
1444
|
contextId: $.contextId,
|
|
@@ -1479,8 +1479,8 @@ class Qe {
|
|
|
1479
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
|
-
for (let
|
|
1483
|
-
typeof r[
|
|
1482
|
+
for (let o in r)
|
|
1483
|
+
typeof r[o] == "boolean" ? i += ` ${o} ` : i += ` ${o} { ${s(r[o])} }`;
|
|
1484
1484
|
return i;
|
|
1485
1485
|
}
|
|
1486
1486
|
return s(n);
|
|
@@ -1494,8 +1494,8 @@ class Qe {
|
|
|
1494
1494
|
static parseFieldsToGraphQL(e) {
|
|
1495
1495
|
function n(s, r) {
|
|
1496
1496
|
if (r.includes(".")) {
|
|
1497
|
-
const i = r.indexOf("."),
|
|
1498
|
-
|
|
1497
|
+
const i = r.indexOf("."), o = r.substring(i + 1), a = r.substring(0, i);
|
|
1498
|
+
a in s || (s[a] = {}), n(s[a], o);
|
|
1499
1499
|
} else
|
|
1500
1500
|
s[r] = !0;
|
|
1501
1501
|
return s;
|
|
@@ -1547,9 +1547,9 @@ const Kr = {
|
|
|
1547
1547
|
components: { WidgetSpinner: _e }
|
|
1548
1548
|
}, Yr = { class: "modal__wait modal-default flex_column" };
|
|
1549
1549
|
function Xr(t, e, n, s, r, i) {
|
|
1550
|
-
const
|
|
1550
|
+
const o = U("widget-spinner");
|
|
1551
1551
|
return c(), u("div", Yr, [
|
|
1552
|
-
C(
|
|
1552
|
+
C(o),
|
|
1553
1553
|
d("p", null, m(n.message), 1)
|
|
1554
1554
|
]);
|
|
1555
1555
|
}
|
|
@@ -1570,10 +1570,10 @@ async function mt(t, e = {}) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
return Promise.resolve(t()).catch((s) => {
|
|
1572
1572
|
let r = s;
|
|
1573
|
-
if (typeof r == "string" && (r = q.UndefinedError(r)), e.error && (console.log(r, r.details), r instanceof q ?
|
|
1573
|
+
if (typeof r == "string" && (r = q.UndefinedError(r)), e.error && (console.log(r, r.details), r instanceof q ? M.add("error", r.message, {
|
|
1574
1574
|
children: r.details || [],
|
|
1575
1575
|
timeout: 12
|
|
1576
|
-
}) : r != null && r.message ?
|
|
1576
|
+
}) : r != null && r.message ? M.add("error", r.message) : (console.warn(r), M.add("error", q.ApiResponseParseFailed().message))), e.throw)
|
|
1577
1577
|
throw r;
|
|
1578
1578
|
}).finally(() => {
|
|
1579
1579
|
var s;
|
|
@@ -1616,10 +1616,10 @@ const Ce = {
|
|
|
1616
1616
|
runPromiseQueue: gt,
|
|
1617
1617
|
valuesToUpperCase: et
|
|
1618
1618
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1619
|
-
function
|
|
1619
|
+
function an(t, e = "") {
|
|
1620
1620
|
for (let n in t) {
|
|
1621
1621
|
if (typeof t[n] == "object") {
|
|
1622
|
-
|
|
1622
|
+
an(t[n], (e.length ? `${e}-` : "") + n);
|
|
1623
1623
|
continue;
|
|
1624
1624
|
}
|
|
1625
1625
|
let s = "--" + ((e.length ? `${e}-` : "") + n).replace(
|
|
@@ -1633,7 +1633,7 @@ const se = {};
|
|
|
1633
1633
|
function ti(t) {
|
|
1634
1634
|
for (let e in t)
|
|
1635
1635
|
se[e] = t[e];
|
|
1636
|
-
t.styles &&
|
|
1636
|
+
t.styles && an(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
1638
|
const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1639
1639
|
__proto__: null
|
|
@@ -1667,20 +1667,20 @@ class K {
|
|
|
1667
1667
|
* */
|
|
1668
1668
|
static async getList(e, n) {
|
|
1669
1669
|
const s = new URLSearchParams();
|
|
1670
|
-
function r(
|
|
1670
|
+
function r(o, a) {
|
|
1671
1671
|
const l = (p) => s.append("fields", p);
|
|
1672
|
-
if (typeof
|
|
1673
|
-
return l(
|
|
1674
|
-
if (Array.isArray(
|
|
1675
|
-
return l(
|
|
1676
|
-
if (typeof
|
|
1677
|
-
return l(Object.keys(
|
|
1672
|
+
if (typeof a == "string")
|
|
1673
|
+
return l(a);
|
|
1674
|
+
if (Array.isArray(a))
|
|
1675
|
+
return l(a.join(" "));
|
|
1676
|
+
if (typeof a == "object")
|
|
1677
|
+
return l(Object.keys(a).join(" "));
|
|
1678
1678
|
}
|
|
1679
|
-
function i(
|
|
1680
|
-
if (!
|
|
1679
|
+
function i(o, a) {
|
|
1680
|
+
if (!a || !Object.keys(a).length)
|
|
1681
1681
|
return;
|
|
1682
|
-
const l = Object.entries(
|
|
1683
|
-
|
|
1682
|
+
const l = Object.entries(a).map(([p, f]) => `@${p} ${f}`).join(",");
|
|
1683
|
+
o.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",
|
|
@@ -1694,20 +1694,20 @@ class K {
|
|
|
1694
1694
|
* */
|
|
1695
1695
|
static getCount(e, n) {
|
|
1696
1696
|
const s = new URLSearchParams();
|
|
1697
|
-
function r(
|
|
1697
|
+
function r(o, a) {
|
|
1698
1698
|
const l = (p) => s.append("fields", p);
|
|
1699
|
-
if (typeof
|
|
1700
|
-
return l(
|
|
1701
|
-
if (Array.isArray(
|
|
1702
|
-
return l(
|
|
1703
|
-
if (typeof
|
|
1704
|
-
return l(Object.keys(
|
|
1699
|
+
if (typeof a == "string")
|
|
1700
|
+
return l(a);
|
|
1701
|
+
if (Array.isArray(a))
|
|
1702
|
+
return l(a.join(" "));
|
|
1703
|
+
if (typeof a == "object")
|
|
1704
|
+
return l(Object.keys(a).join(" "));
|
|
1705
1705
|
}
|
|
1706
|
-
function i(
|
|
1707
|
-
if (!
|
|
1706
|
+
function i(o, a) {
|
|
1707
|
+
if (!a || !Object.keys(a).length)
|
|
1708
1708
|
return;
|
|
1709
|
-
const l = Object.entries(
|
|
1710
|
-
|
|
1709
|
+
const l = Object.entries(a).map(([p, f]) => `@${p} ${f}`).join(",");
|
|
1710
|
+
o.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",
|
|
@@ -1795,14 +1795,14 @@ class K {
|
|
|
1795
1795
|
});
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
|
-
var
|
|
1798
|
+
var on = (t, e, n) => {
|
|
1799
1799
|
if (!e.has(t))
|
|
1800
1800
|
throw TypeError("Cannot " + n);
|
|
1801
|
-
},
|
|
1801
|
+
}, ot = (t, e, n) => (on(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
|
-
}, Rt = (t, e, n, s) => (
|
|
1805
|
+
}, Rt = (t, e, n, s) => (on(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), we, xe;
|
|
1806
1806
|
const yt = class fe extends J {
|
|
1807
1807
|
constructor(e) {
|
|
1808
1808
|
super(), Ot(this, we, []), Ot(this, xe, !1), this.hashParams = "", this.offset = 0, this.name = e.name;
|
|
@@ -1811,7 +1811,7 @@ const yt = class fe extends J {
|
|
|
1811
1811
|
Rt(this, xe, e), this.emit(fe.EVENT_CHANGE_WAIT, e);
|
|
1812
1812
|
}
|
|
1813
1813
|
get wait() {
|
|
1814
|
-
return
|
|
1814
|
+
return ot(this, xe);
|
|
1815
1815
|
}
|
|
1816
1816
|
read(e) {
|
|
1817
1817
|
var r, i;
|
|
@@ -1821,8 +1821,8 @@ const yt = class fe extends J {
|
|
|
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), K.getList(this.name, n).then((
|
|
1825
|
-
this.array.push(...
|
|
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((o) => (this.offset === 0 && (this.array = []), this.offset += n.limit, o)).then((o) => {
|
|
1825
|
+
this.array.push(...o);
|
|
1826
1826
|
}).then(() => this.emit(fe.EVENT_DATA, this.array)).finally(() => {
|
|
1827
1827
|
this.wait = !1;
|
|
1828
1828
|
});
|
|
@@ -1831,10 +1831,10 @@ const yt = class fe extends J {
|
|
|
1831
1831
|
Rt(this, we, e), this.emit(fe.EVENT_DATA, this.array);
|
|
1832
1832
|
}
|
|
1833
1833
|
add(e) {
|
|
1834
|
-
|
|
1834
|
+
ot(this, we).push(...e), this.emit(fe.EVENT_DATA, this.array);
|
|
1835
1835
|
}
|
|
1836
1836
|
get array() {
|
|
1837
|
-
return
|
|
1837
|
+
return ot(this, we);
|
|
1838
1838
|
}
|
|
1839
1839
|
/**
|
|
1840
1840
|
* @description Function get all names from Config.
|
|
@@ -1868,7 +1868,7 @@ xe = /* @__PURE__ */ new WeakMap();
|
|
|
1868
1868
|
yt.EVENT_DATA = "LIST:DATA";
|
|
1869
1869
|
yt.EVENT_CHANGE_WAIT = "LIST:UPDATE-WAIT";
|
|
1870
1870
|
let ln = yt;
|
|
1871
|
-
const
|
|
1871
|
+
const F = Symbol("__ROW_INDEX__");
|
|
1872
1872
|
let tt = class extends ln {
|
|
1873
1873
|
constructor(e) {
|
|
1874
1874
|
super(e), this.rowIndex = 1, this.changes = {
|
|
@@ -1886,7 +1886,7 @@ let tt = class extends ln {
|
|
|
1886
1886
|
*/
|
|
1887
1887
|
create(e) {
|
|
1888
1888
|
const n = this.wrapData(e);
|
|
1889
|
-
this.changes.new[n[
|
|
1889
|
+
this.changes.new[n[F]] = 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 tt = class extends ln {
|
|
|
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[F] === e) && (this.changes.edit[e] = {
|
|
1904
1904
|
...this.changes.edit[e],
|
|
1905
1905
|
...s
|
|
1906
1906
|
}, this.emitChanges());
|
|
@@ -1908,12 +1908,12 @@ let tt = class extends ln {
|
|
|
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[F] === 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, F.toString()) && (n = ++this.rowIndex), {
|
|
1915
1915
|
...e,
|
|
1916
|
-
[
|
|
1916
|
+
[F]: n
|
|
1917
1917
|
};
|
|
1918
1918
|
}
|
|
1919
1919
|
emitChanges() {
|
|
@@ -1933,7 +1933,7 @@ let tt = class extends ln {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
};
|
|
1935
1935
|
tt.PROVIDE_NAME = "table-controller";
|
|
1936
|
-
function
|
|
1936
|
+
function ai(t) {
|
|
1937
1937
|
return function(n) {
|
|
1938
1938
|
return {
|
|
1939
1939
|
activate() {
|
|
@@ -1945,23 +1945,23 @@ function oi(t) {
|
|
|
1945
1945
|
};
|
|
1946
1946
|
};
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1948
|
+
function fo(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(ln.EVENT_DATA, (
|
|
1953
|
-
n.new = Object.keys(t.changes.new).reduce((
|
|
1954
|
-
const l = Number(
|
|
1955
|
-
return
|
|
1952
|
+
t.on(ln.EVENT_DATA, (o) => e.splice(0, e.length, ...o)), t.on(Y.EVENT_CHANGED, () => {
|
|
1953
|
+
n.new = Object.keys(t.changes.new).reduce((o, a) => {
|
|
1954
|
+
const l = Number(a);
|
|
1955
|
+
return o[l] = t.changes.new[l], o;
|
|
1956
1956
|
}, {});
|
|
1957
1957
|
});
|
|
1958
1958
|
const s = L(() => [
|
|
1959
|
-
...e.reduce((
|
|
1960
|
-
const l =
|
|
1961
|
-
return t.changes.remove.includes(l) ||
|
|
1962
|
-
...
|
|
1959
|
+
...e.reduce((o, a) => {
|
|
1960
|
+
const l = a[F];
|
|
1961
|
+
return t.changes.remove.includes(l) || o.push({
|
|
1962
|
+
...a,
|
|
1963
1963
|
...t.changes.edit[l]
|
|
1964
|
-
}),
|
|
1964
|
+
}), o;
|
|
1965
1965
|
}, []),
|
|
1966
1966
|
...Object.values(n.new)
|
|
1967
1967
|
]), r = Y.getParentForm();
|
|
@@ -1970,7 +1970,7 @@ function fa(t) {
|
|
|
1970
1970
|
array: s
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1973
|
+
function ho(t, e) {
|
|
1974
1974
|
t.read = () => K.getList(t.name, {
|
|
1975
1975
|
fields: e == null ? void 0 : e.fields
|
|
1976
1976
|
}).then((n) => t.array = n).then(() => t.emit(Y.EVENT_READ, t.array)), t.save = () => {
|
|
@@ -1981,7 +1981,7 @@ function ha(t, e) {
|
|
|
1981
1981
|
await K.updateById(t.name, s(Number(r)), i);
|
|
1982
1982
|
});
|
|
1983
1983
|
function s(r) {
|
|
1984
|
-
const i = t.array.find((
|
|
1984
|
+
const i = t.array.find((o) => o[F] === r);
|
|
1985
1985
|
return i.id | i.Id;
|
|
1986
1986
|
}
|
|
1987
1987
|
t.changes.remove.forEach(async (r) => {
|
|
@@ -1989,10 +1989,10 @@ function ha(t, e) {
|
|
|
1989
1989
|
}), t.emit(Y.EVENT_SAVE);
|
|
1990
1990
|
};
|
|
1991
1991
|
}
|
|
1992
|
-
const
|
|
1992
|
+
const _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1993
1993
|
__proto__: null
|
|
1994
1994
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1995
|
-
class
|
|
1995
|
+
class go {
|
|
1996
1996
|
static readHistoryById(e, n) {
|
|
1997
1997
|
return _(`/close-api/audits/history/${e}/${n}`, {
|
|
1998
1998
|
method: "GET",
|
|
@@ -2003,14 +2003,14 @@ class ga {
|
|
|
2003
2003
|
const r = s.history.map((i) => {
|
|
2004
2004
|
if (!i.changes)
|
|
2005
2005
|
return i;
|
|
2006
|
-
const
|
|
2007
|
-
...
|
|
2008
|
-
oldValue:
|
|
2009
|
-
name:
|
|
2006
|
+
const o = i.changes.map((a) => ({
|
|
2007
|
+
...a,
|
|
2008
|
+
oldValue: a.originalValue,
|
|
2009
|
+
name: a.fieldName
|
|
2010
2010
|
}));
|
|
2011
2011
|
return {
|
|
2012
2012
|
...i,
|
|
2013
|
-
changes:
|
|
2013
|
+
changes: o
|
|
2014
2014
|
};
|
|
2015
2015
|
});
|
|
2016
2016
|
return {
|
|
@@ -2023,21 +2023,21 @@ class ga {
|
|
|
2023
2023
|
var cn = (t, e, n) => {
|
|
2024
2024
|
if (!e.has(t))
|
|
2025
2025
|
throw TypeError("Cannot " + n);
|
|
2026
|
-
}, te = (t, e, n) => (cn(t, e, "read from private field"), n ? n.call(t) : e.get(t)),
|
|
2026
|
+
}, te = (t, e, n) => (cn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ae = (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
|
-
},
|
|
2030
|
+
}, oe = (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
2031
|
const le = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ne extends J {
|
|
2032
2032
|
constructor(e) {
|
|
2033
|
-
super(), this.LIST_ROW_KEY = 1,
|
|
2033
|
+
super(), this.LIST_ROW_KEY = 1, ae(this, Ue, void 0), this.array = [], ae(this, be, []), ae(this, Be, []), ae(this, qe, new Proxy({}, {
|
|
2034
2034
|
set: (n, s, r, i) => (n[s] = r, this.emit(ne.EVENT_FILTERS_UPDATE, n), !0),
|
|
2035
2035
|
deleteProperty: (n, s) => (delete n[s], this.emit(ne.EVENT_FILTERS_UPDATE, n), !0)
|
|
2036
|
-
})),
|
|
2037
|
-
}),
|
|
2036
|
+
})), ae(this, $e, !1), ae(this, Ee, (...n) => Promise), ae(this, ut, () => {
|
|
2037
|
+
}), oe(this, Ue, e.primaryKeys || []), this.name = e.name || void 0, e.config && oe(this, be, e.config);
|
|
2038
2038
|
}
|
|
2039
2039
|
set config(e) {
|
|
2040
|
-
|
|
2040
|
+
oe(this, be, e.map(ue.copyObject)), this.emitUpdateConfig();
|
|
2041
2041
|
}
|
|
2042
2042
|
get config() {
|
|
2043
2043
|
return te(this, be);
|
|
@@ -2049,7 +2049,7 @@ const le = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ne
|
|
|
2049
2049
|
return te(this, Be);
|
|
2050
2050
|
}
|
|
2051
2051
|
set order(e) {
|
|
2052
|
-
|
|
2052
|
+
oe(this, Be, e), this.emit(ne.EVENT_ORDER_UPDATE, this.order);
|
|
2053
2053
|
}
|
|
2054
2054
|
get filters() {
|
|
2055
2055
|
return te(this, qe);
|
|
@@ -2058,7 +2058,7 @@ const le = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ne
|
|
|
2058
2058
|
un(te(this, qe), e);
|
|
2059
2059
|
}
|
|
2060
2060
|
set wait(e) {
|
|
2061
|
-
|
|
2061
|
+
oe(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
|
|
@@ -2145,7 +2145,7 @@ const le = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ne
|
|
|
2145
2145
|
return Object.prototype.hasOwnProperty.call(e, le);
|
|
2146
2146
|
}
|
|
2147
2147
|
set read(e) {
|
|
2148
|
-
|
|
2148
|
+
oe(this, Ee, e);
|
|
2149
2149
|
}
|
|
2150
2150
|
get read() {
|
|
2151
2151
|
return (...e) => Promise.resolve().then(() => {
|
|
@@ -2154,7 +2154,7 @@ const le = "_______LIST_______ROW_______INDEX________NAME_______", Pe = class ne
|
|
|
2154
2154
|
}).finally(() => this.wait = !1);
|
|
2155
2155
|
}
|
|
2156
2156
|
set save(e) {
|
|
2157
|
-
|
|
2157
|
+
oe(this, Ee, e);
|
|
2158
2158
|
}
|
|
2159
2159
|
get save() {
|
|
2160
2160
|
return () => Promise.resolve().then(() => this.wait = !0).then(() => te(this, ut).call(this)).finally(() => this.wait = !1);
|
|
@@ -2210,22 +2210,22 @@ Pe.EVENT_CONFIG_UPDATE = "list-config:update";
|
|
|
2210
2210
|
Pe.EVENT_ORDER_UPDATE = "list-order:update";
|
|
2211
2211
|
Pe.EVENT_FILTERS_UPDATE = "list-filters:update";
|
|
2212
2212
|
let Q = Pe;
|
|
2213
|
-
function
|
|
2213
|
+
function oi(t, e) {
|
|
2214
2214
|
let n = "", s = 0, r;
|
|
2215
2215
|
t.read = (i = {}) => {
|
|
2216
2216
|
if (t.wait)
|
|
2217
2217
|
return r;
|
|
2218
2218
|
i.clean && (n = "", s = 0);
|
|
2219
|
-
let
|
|
2220
|
-
typeof
|
|
2221
|
-
const
|
|
2219
|
+
let o = e;
|
|
2220
|
+
typeof o == "function" && (o = o());
|
|
2221
|
+
const a = {};
|
|
2222
2222
|
if (!t.name)
|
|
2223
2223
|
throw new Error("Reading list`s data without name is not available.");
|
|
2224
|
-
|
|
2225
|
-
[
|
|
2226
|
-
}),
|
|
2227
|
-
const l = JSON.stringify(
|
|
2228
|
-
return l !== n && !Number.isNaN(l) && (s = 0, n = l), "limit" in
|
|
2224
|
+
o.order && Array.isArray(o.order) && o.order.length && (a.order = {
|
|
2225
|
+
[o.order[0]]: o.order[1] || "asc"
|
|
2226
|
+
}), o.fields && (a.fields = o.fields), o.filter && (a.filter = o.filter);
|
|
2227
|
+
const l = JSON.stringify(a.order) + JSON.stringify(a.filter) + JSON.stringify(a.fields);
|
|
2228
|
+
return l !== n && !Number.isNaN(l) && (s = 0, n = l), "limit" in o && (a.limit = o.limit), a.offset = s || o.offset || 0, r = K.getList(t.name, a).then((p) => ((s === 0 || i.clean) && t.set([]), s += a.limit, p)).then((p) => (t.add(...p), p)), r;
|
|
2229
2229
|
};
|
|
2230
2230
|
}
|
|
2231
2231
|
function li(t) {
|
|
@@ -2254,7 +2254,7 @@ function ci(t, e) {
|
|
|
2254
2254
|
};
|
|
2255
2255
|
return xt(n, r), r;
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function mo(t) {
|
|
2258
2258
|
const e = A([...t.config]);
|
|
2259
2259
|
return t.on(Q.EVENT_CONFIG_UPDATE, (n) => {
|
|
2260
2260
|
e.splice(0, e.length, ...n);
|
|
@@ -2266,7 +2266,7 @@ function ui(t) {
|
|
|
2266
2266
|
n.splice(0, n.length, ...s), t.read();
|
|
2267
2267
|
}), n;
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function yo(t) {
|
|
2270
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);
|
|
@@ -2281,37 +2281,37 @@ function un(t, e) {
|
|
|
2281
2281
|
t[n] = s;
|
|
2282
2282
|
});
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2284
|
+
function vo(t) {
|
|
2285
2285
|
const e = A(ue.copyObject(t.filters));
|
|
2286
2286
|
return t.on(Q.EVENT_FILTERS_UPDATE, (n) => {
|
|
2287
2287
|
un(e, n), t.read();
|
|
2288
2288
|
}), e;
|
|
2289
2289
|
}
|
|
2290
|
-
function
|
|
2290
|
+
function wo(t) {
|
|
2291
2291
|
const e = A([]);
|
|
2292
|
-
function n(
|
|
2293
|
-
return e.includes(
|
|
2292
|
+
function n(a) {
|
|
2293
|
+
return e.includes(a);
|
|
2294
2294
|
}
|
|
2295
|
-
function s(
|
|
2296
|
-
n(
|
|
2295
|
+
function s(a) {
|
|
2296
|
+
n(a) || e.push(a);
|
|
2297
2297
|
}
|
|
2298
|
-
function r(
|
|
2299
|
-
const l = e.findIndex((p) => p ===
|
|
2298
|
+
function r(a) {
|
|
2299
|
+
const l = e.findIndex((p) => p === a);
|
|
2300
2300
|
l !== -1 && e.splice(l, 1);
|
|
2301
2301
|
}
|
|
2302
|
-
function i(
|
|
2302
|
+
function i(a) {
|
|
2303
2303
|
const l = P(t);
|
|
2304
|
-
if (
|
|
2304
|
+
if (a === void 0) {
|
|
2305
2305
|
e.length === 0 ? l.forEach(s) : l.forEach(r);
|
|
2306
2306
|
return;
|
|
2307
2307
|
}
|
|
2308
|
-
n(
|
|
2308
|
+
n(a) ? r(a) : s(a);
|
|
2309
2309
|
}
|
|
2310
|
-
const
|
|
2311
|
-
const
|
|
2312
|
-
return e.length ===
|
|
2310
|
+
const o = L(() => {
|
|
2311
|
+
const a = P(t);
|
|
2312
|
+
return e.length === a.length && a.length !== 0;
|
|
2313
2313
|
});
|
|
2314
|
-
return [e, i,
|
|
2314
|
+
return [e, i, o, s, r];
|
|
2315
2315
|
}
|
|
2316
2316
|
class di extends Q {
|
|
2317
2317
|
constructor(e) {
|
|
@@ -2353,11 +2353,11 @@ const hi = {
|
|
|
2353
2353
|
}, _i = { class: "widget-table__head" }, gi = { class: "widget-table__head-title" };
|
|
2354
2354
|
function mi(t, e, n, s, r, i) {
|
|
2355
2355
|
return c(), u("tr", _i, [
|
|
2356
|
-
(c(!0), u(O, null, j(n.config, (
|
|
2356
|
+
(c(!0), u(O, null, j(n.config, (o, a) => (c(), u("th", {
|
|
2357
2357
|
class: "widget-table__head-cell",
|
|
2358
|
-
key:
|
|
2358
|
+
key: a
|
|
2359
2359
|
}, [
|
|
2360
|
-
d("p", gi, m(
|
|
2360
|
+
d("p", gi, m(o.title), 1)
|
|
2361
2361
|
]))), 128))
|
|
2362
2362
|
]);
|
|
2363
2363
|
}
|
|
@@ -2382,15 +2382,15 @@ function vi(t, e) {
|
|
|
2382
2382
|
function wi(t, e, n) {
|
|
2383
2383
|
const s = e.values;
|
|
2384
2384
|
let { name: r, value: i } = Q.getCellInfo(t, s);
|
|
2385
|
-
const
|
|
2385
|
+
const o = {
|
|
2386
2386
|
onClick: [],
|
|
2387
2387
|
class: ["widget-table__cell widget-table-cell"]
|
|
2388
2388
|
};
|
|
2389
|
-
function
|
|
2390
|
-
|
|
2389
|
+
function a(w) {
|
|
2390
|
+
o.onClick.push(() => w(s));
|
|
2391
2391
|
}
|
|
2392
2392
|
function l(w) {
|
|
2393
|
-
Array.isArray(w) ?
|
|
2393
|
+
Array.isArray(w) ? o.class.push(...w) : o.class.push(w);
|
|
2394
2394
|
}
|
|
2395
2395
|
const p = [], f = [];
|
|
2396
2396
|
if (t.hide && t.hide(s))
|
|
@@ -2414,7 +2414,7 @@ function wi(t, e, n) {
|
|
|
2414
2414
|
f.push(k(ct, {
|
|
2415
2415
|
type: "single-checkbox",
|
|
2416
2416
|
modelValue: e.selected
|
|
2417
|
-
})),
|
|
2417
|
+
})), a(bi.bind(null, n, !0));
|
|
2418
2418
|
}
|
|
2419
2419
|
if (t.checked) {
|
|
2420
2420
|
const w = t.checked(s);
|
|
@@ -2425,7 +2425,7 @@ function wi(t, e, n) {
|
|
|
2425
2425
|
})
|
|
2426
2426
|
);
|
|
2427
2427
|
}
|
|
2428
|
-
if (t.onClick &&
|
|
2428
|
+
if (t.onClick && a(t.onClick), t.link)
|
|
2429
2429
|
try {
|
|
2430
2430
|
const w = t.link(s);
|
|
2431
2431
|
if (w) {
|
|
@@ -2442,7 +2442,7 @@ function wi(t, e, n) {
|
|
|
2442
2442
|
k("p", {
|
|
2443
2443
|
class: "widget-list-cell-text"
|
|
2444
2444
|
}, i)
|
|
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",
|
|
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", o, f)), p;
|
|
2446
2446
|
}
|
|
2447
2447
|
function bi(t, e) {
|
|
2448
2448
|
t.emit("select", e);
|
|
@@ -2477,7 +2477,7 @@ const $i = {
|
|
|
2477
2477
|
setTimeout(() => {
|
|
2478
2478
|
s.value && s.value.scrollIntoView({ block: "nearest", inline: "nearest", behavior: "smooth" });
|
|
2479
2479
|
}, 250);
|
|
2480
|
-
}), (i,
|
|
2480
|
+
}), (i, o) => (c(), u("tr", {
|
|
2481
2481
|
class: "widget-table-form",
|
|
2482
2482
|
ref_key: "refTableForm",
|
|
2483
2483
|
ref: s
|
|
@@ -2486,8 +2486,8 @@ const $i = {
|
|
|
2486
2486
|
(c(), v(Ut(i.component), Bt(i.$attrs, {
|
|
2487
2487
|
values: i.values,
|
|
2488
2488
|
new: r.value,
|
|
2489
|
-
onClose:
|
|
2490
|
-
onSave:
|
|
2489
|
+
onClose: o[0] || (o[0] = (a) => e("close")),
|
|
2490
|
+
onSave: o[1] || (o[1] = (a) => e("save", a))
|
|
2491
2491
|
}), null, 16, ["values", "new"]))
|
|
2492
2492
|
], 8, Ei)
|
|
2493
2493
|
], 512));
|
|
@@ -2525,10 +2525,10 @@ const Ci = /* @__PURE__ */ g(Si, [["__scopeId", "data-v-a01a837d"]]), Ii = /* @_
|
|
|
2525
2525
|
values: l,
|
|
2526
2526
|
hash: Ht(l)
|
|
2527
2527
|
})));
|
|
2528
|
-
function
|
|
2528
|
+
function o(l, p = !0) {
|
|
2529
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
|
|
2531
|
+
function a(l) {
|
|
2532
2532
|
e("save", l), e("update:activeRow", null);
|
|
2533
2533
|
}
|
|
2534
2534
|
return (l, p) => (c(), u("div", null, [
|
|
@@ -2555,7 +2555,7 @@ const Ci = /* @__PURE__ */ g(Si, [["__scopeId", "data-v-a01a837d"]]), Ii = /* @_
|
|
|
2555
2555
|
config: l.config,
|
|
2556
2556
|
values: f,
|
|
2557
2557
|
selected: (T = l.selectRows) == null ? void 0 : T.includes(f),
|
|
2558
|
-
onSelect: (S) =>
|
|
2558
|
+
onSelect: (S) => o(f, S),
|
|
2559
2559
|
class: I(l.classCallback ? l.classCallback(f) : "")
|
|
2560
2560
|
}, null, 8, ["config", "values", "selected", "onSelect", "class"]),
|
|
2561
2561
|
r.value && l.activeRow === w ? (c(), v(Vt, {
|
|
@@ -2564,7 +2564,7 @@ const Ci = /* @__PURE__ */ g(Si, [["__scopeId", "data-v-a01a837d"]]), Ii = /* @_
|
|
|
2564
2564
|
"row-length": l.config.length,
|
|
2565
2565
|
values: f,
|
|
2566
2566
|
onClose: p[0] || (p[0] = (S) => e("update:activeRow", null)),
|
|
2567
|
-
onSave:
|
|
2567
|
+
onSave: a,
|
|
2568
2568
|
onRead: p[1] || (p[1] = (S) => e("read"))
|
|
2569
2569
|
}, null, 8, ["component", "row-length", "values"])) : h("", !0)
|
|
2570
2570
|
], 64);
|
|
@@ -2574,7 +2574,7 @@ const Ci = /* @__PURE__ */ g(Si, [["__scopeId", "data-v-a01a837d"]]), Ii = /* @_
|
|
|
2574
2574
|
component: r.value,
|
|
2575
2575
|
"row-length": l.config.length,
|
|
2576
2576
|
onClose: p[2] || (p[2] = (f) => e("update:activeRow", null)),
|
|
2577
|
-
onSave:
|
|
2577
|
+
onSave: a,
|
|
2578
2578
|
onRead: p[3] || (p[3] = (f) => e("read"))
|
|
2579
2579
|
}, null, 8, ["component", "row-length"])) : h("", !0)
|
|
2580
2580
|
])
|
|
@@ -2582,14 +2582,14 @@ const Ci = /* @__PURE__ */ g(Si, [["__scopeId", "data-v-a01a837d"]]), Ii = /* @_
|
|
|
2582
2582
|
]));
|
|
2583
2583
|
}
|
|
2584
2584
|
});
|
|
2585
|
-
const
|
|
2585
|
+
const bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2586
2586
|
__proto__: null,
|
|
2587
2587
|
List: Q,
|
|
2588
2588
|
Table: di,
|
|
2589
2589
|
WidgetTable: Ii,
|
|
2590
2590
|
useListOrder: ui,
|
|
2591
2591
|
useListProvide: ci,
|
|
2592
|
-
useListRead:
|
|
2592
|
+
useListRead: oi,
|
|
2593
2593
|
useListState: li,
|
|
2594
2594
|
useTableActiveRow: fi
|
|
2595
2595
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2619,17 +2619,17 @@ class Ai extends J {
|
|
|
2619
2619
|
return await _n.get(e);
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
const
|
|
2623
|
-
function $
|
|
2624
|
-
const e = G(
|
|
2625
|
-
return
|
|
2626
|
-
t === n.entityName && (e.value =
|
|
2622
|
+
const Fe = new Ai();
|
|
2623
|
+
function $o(t) {
|
|
2624
|
+
const e = G(Fe.get(t));
|
|
2625
|
+
return Fe.on(Fe.EVENT_NEW, (n) => {
|
|
2626
|
+
t === n.entityName && (e.value = Fe.get(t));
|
|
2627
2627
|
}), e;
|
|
2628
2628
|
}
|
|
2629
|
-
function
|
|
2629
|
+
function Eo(t, e) {
|
|
2630
2630
|
return e.dataType === "DateTime" && typeof t == "string" ? new Date(t).toLocaleString() : t;
|
|
2631
2631
|
}
|
|
2632
|
-
class
|
|
2632
|
+
class To {
|
|
2633
2633
|
/**
|
|
2634
2634
|
* @description Загрузка словаря для определённого языка.
|
|
2635
2635
|
* */
|
|
@@ -2662,13 +2662,13 @@ Ie.setVocabulary = function(t) {
|
|
|
2662
2662
|
vocabulary: t
|
|
2663
2663
|
});
|
|
2664
2664
|
};
|
|
2665
|
-
function
|
|
2665
|
+
function So(t = "default") {
|
|
2666
2666
|
if (dt.manager)
|
|
2667
2667
|
return dt.manager.socket(`/${t}`);
|
|
2668
2668
|
}
|
|
2669
2669
|
class dt {
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function Co(t = window.location.origin + "/socket.io") {
|
|
2672
2672
|
dt.manager = new Tn(t, {
|
|
2673
2673
|
reconnectionDelayMax: 1e3,
|
|
2674
2674
|
withCredentials: !0,
|
|
@@ -2711,7 +2711,7 @@ const Pi = /* @__PURE__ */ g(Ni, [["__scopeId", "data-v-1702aee0"]]), Oi = { cla
|
|
|
2711
2711
|
]));
|
|
2712
2712
|
}
|
|
2713
2713
|
});
|
|
2714
|
-
const
|
|
2714
|
+
const Io = /* @__PURE__ */ g(Ri, [["__scopeId", "data-v-1dfb2668"]]), Vi = {
|
|
2715
2715
|
props: {
|
|
2716
2716
|
config: Array,
|
|
2717
2717
|
values: Object,
|
|
@@ -2719,7 +2719,7 @@ const Ia = /* @__PURE__ */ g(Ri, [["__scopeId", "data-v-1dfb2668"]]), Vi = {
|
|
|
2719
2719
|
},
|
|
2720
2720
|
setup: pn
|
|
2721
2721
|
};
|
|
2722
|
-
const Li = /* @__PURE__ */ g(Vi, [["__scopeId", "data-v-47478206"]]), Wi = (t) => (Dt("data-v-03c9724f"), t = t(),
|
|
2722
|
+
const Li = /* @__PURE__ */ g(Vi, [["__scopeId", "data-v-47478206"]]), Wi = (t) => (Dt("data-v-03c9724f"), t = t(), Ft(), t), Di = { class: "head-cell" }, Fi = /* @__PURE__ */ Wi(() => /* @__PURE__ */ d("div", { class: "head-cell-resize" }, null, -1)), Mi = /* @__PURE__ */ b({
|
|
2723
2723
|
__name: "widget-list-head-cell",
|
|
2724
2724
|
props: {
|
|
2725
2725
|
title: {},
|
|
@@ -2743,7 +2743,7 @@ const Li = /* @__PURE__ */ g(Vi, [["__scopeId", "data-v-47478206"]]), Wi = (t) =
|
|
|
2743
2743
|
s.type === "multi-select" ? (c(), v(P(ct), {
|
|
2744
2744
|
key: 0,
|
|
2745
2745
|
type: "single-checkbox",
|
|
2746
|
-
onClick: r[0] || (r[0] =
|
|
2746
|
+
onClick: r[0] || (r[0] = Mt((i) => e("select"), ["stop", "prevent"]))
|
|
2747
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",
|
|
@@ -2759,12 +2759,12 @@ const Li = /* @__PURE__ */ g(Vi, [["__scopeId", "data-v-47478206"]]), Wi = (t) =
|
|
|
2759
2759
|
]),
|
|
2760
2760
|
_: 1
|
|
2761
2761
|
}, 8, ["class"])) : h("", !0),
|
|
2762
|
-
|
|
2762
|
+
Fi
|
|
2763
2763
|
])
|
|
2764
2764
|
]));
|
|
2765
2765
|
}
|
|
2766
2766
|
});
|
|
2767
|
-
const ji = /* @__PURE__ */ g(
|
|
2767
|
+
const ji = /* @__PURE__ */ g(Mi, [["__scopeId", "data-v-03c9724f"]]), xi = /* @__PURE__ */ b({
|
|
2768
2768
|
__name: "widget-list-head",
|
|
2769
2769
|
props: {
|
|
2770
2770
|
config: {},
|
|
@@ -2823,7 +2823,7 @@ const ji = /* @__PURE__ */ g(Fi, [["__scopeId", "data-v-03c9724f"]]), xi = /* @_
|
|
|
2823
2823
|
st.splice(D, 1), st.splice(Ve, 0, ye), i(st);
|
|
2824
2824
|
} else {
|
|
2825
2825
|
const ye = n.config[D].name;
|
|
2826
|
-
|
|
2826
|
+
o(ye);
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
2829
|
r.value.style.display = "none", document.body.style.cursor = "unset", console.groupEnd();
|
|
@@ -2842,7 +2842,7 @@ const ji = /* @__PURE__ */ g(Fi, [["__scopeId", "data-v-03c9724f"]]), xi = /* @_
|
|
|
2842
2842
|
function i(l) {
|
|
2843
2843
|
e("update:config", l);
|
|
2844
2844
|
}
|
|
2845
|
-
function
|
|
2845
|
+
function o(l) {
|
|
2846
2846
|
if (!l)
|
|
2847
2847
|
return;
|
|
2848
2848
|
if (Array.isArray(l)) {
|
|
@@ -2851,11 +2851,11 @@ const ji = /* @__PURE__ */ g(Fi, [["__scopeId", "data-v-03c9724f"]]), xi = /* @_
|
|
|
2851
2851
|
l = l[0];
|
|
2852
2852
|
}
|
|
2853
2853
|
if (n.order.length === 0 || n.order[0] !== l)
|
|
2854
|
-
return void
|
|
2854
|
+
return void a([l]);
|
|
2855
2855
|
const p = n.order.length === 1 || n.order[1] === "asc" ? "asc" : "desc";
|
|
2856
|
-
|
|
2856
|
+
a([l, p === "asc" ? "desc" : "asc"]);
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function a(l) {
|
|
2859
2859
|
e("update:order", l);
|
|
2860
2860
|
}
|
|
2861
2861
|
return (l, p) => (c(), u("tr", {
|
|
@@ -2864,7 +2864,7 @@ const ji = /* @__PURE__ */ g(Fi, [["__scopeId", "data-v-03c9724f"]]), xi = /* @_
|
|
|
2864
2864
|
ref: s
|
|
2865
2865
|
}, [
|
|
2866
2866
|
(c(!0), u(O, null, j(l.config, (f, w) => (c(), v(ji, Bt({ key: f }, f, {
|
|
2867
|
-
onOrder: (V) =>
|
|
2867
|
+
onOrder: (V) => o(f.name),
|
|
2868
2868
|
onSelect: p[0] || (p[0] = (V) => e("select")),
|
|
2869
2869
|
order: l.order
|
|
2870
2870
|
}), null, 16, ["onOrder", "order"]))), 128)),
|
|
@@ -2888,58 +2888,58 @@ const Ui = /* @__PURE__ */ g(xi, [["__scopeId", "data-v-ecab6d75"]]), Bi = 50, q
|
|
|
2888
2888
|
emits: ["scrollEnd", "update:selectedRows", "update:order", "update:config"],
|
|
2889
2889
|
setup(t, { emit: e }) {
|
|
2890
2890
|
const n = t;
|
|
2891
|
-
function s(
|
|
2891
|
+
function s(a, l = !0) {
|
|
2892
2892
|
var p;
|
|
2893
2893
|
if (n.selectedRows)
|
|
2894
2894
|
if (!l)
|
|
2895
|
-
i([
|
|
2895
|
+
i([a]);
|
|
2896
2896
|
else {
|
|
2897
|
-
const f = n.selectedRows.indexOf(
|
|
2898
|
-
f === -1 ? n.selectedRows.push(
|
|
2897
|
+
const f = n.selectedRows.indexOf(a);
|
|
2898
|
+
f === -1 ? n.selectedRows.push(a) : (p = n.selectedRows) == null || p.splice(f, 1), i(n.selectedRows);
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
2901
|
function r() {
|
|
2902
|
-
var
|
|
2903
|
-
if (((
|
|
2902
|
+
var a;
|
|
2903
|
+
if (((a = n.selectedRows) == null ? void 0 : a.length) !== n.array.length)
|
|
2904
2904
|
return i([...n.array]);
|
|
2905
2905
|
i([]);
|
|
2906
2906
|
}
|
|
2907
|
-
function i(
|
|
2908
|
-
e("update:selectedRows",
|
|
2907
|
+
function i(a) {
|
|
2908
|
+
e("update:selectedRows", a);
|
|
2909
2909
|
}
|
|
2910
|
-
function a
|
|
2911
|
-
if (!
|
|
2910
|
+
function o(a) {
|
|
2911
|
+
if (!a)
|
|
2912
2912
|
return;
|
|
2913
|
-
const l =
|
|
2913
|
+
const l = a.target;
|
|
2914
2914
|
l.scrollTop + l.clientHeight + Bi > l.scrollHeight && e("scrollEnd");
|
|
2915
2915
|
}
|
|
2916
|
-
return (
|
|
2916
|
+
return (a, l) => (c(), u("div", {
|
|
2917
2917
|
class: "es-list-container",
|
|
2918
|
-
onScrollPassive:
|
|
2918
|
+
onScrollPassive: o
|
|
2919
2919
|
}, [
|
|
2920
2920
|
d("table", {
|
|
2921
|
-
class: I(["widget-list", { "widget-list_load":
|
|
2921
|
+
class: I(["widget-list", { "widget-list_load": a.wait }])
|
|
2922
2922
|
}, [
|
|
2923
2923
|
d("thead", null, [
|
|
2924
2924
|
C(Ui, {
|
|
2925
2925
|
onSelect: l[0] || (l[0] = (p) => r()),
|
|
2926
2926
|
"onUpdate:order": l[1] || (l[1] = (p) => e("update:order", p)),
|
|
2927
2927
|
"onUpdate:config": l[2] || (l[2] = (p) => e("update:config", p)),
|
|
2928
|
-
config:
|
|
2929
|
-
order:
|
|
2928
|
+
config: a.config,
|
|
2929
|
+
order: a.order
|
|
2930
2930
|
}, null, 8, ["config", "order"])
|
|
2931
2931
|
]),
|
|
2932
2932
|
d("tbody", {
|
|
2933
|
-
class: I(["widget-list-body", { "widget-list-body_inactive":
|
|
2933
|
+
class: I(["widget-list-body", { "widget-list-body_inactive": a.wait }])
|
|
2934
2934
|
}, [
|
|
2935
|
-
(c(!0), u(O, null, j(
|
|
2935
|
+
(c(!0), u(O, null, j(a.array, (p, f) => {
|
|
2936
2936
|
var w;
|
|
2937
2937
|
return c(), v(Li, {
|
|
2938
2938
|
key: f,
|
|
2939
2939
|
class: "widget-list-row",
|
|
2940
2940
|
values: p,
|
|
2941
|
-
config:
|
|
2942
|
-
selected: (w =
|
|
2941
|
+
config: a.config,
|
|
2942
|
+
selected: (w = a.selectedRows) == null ? void 0 : w.includes(p),
|
|
2943
2943
|
onSelect: (V) => s(p, V)
|
|
2944
2944
|
}, null, 8, ["values", "config", "selected", "onSelect"]);
|
|
2945
2945
|
}), 128))
|
|
@@ -2948,7 +2948,7 @@ const Ui = /* @__PURE__ */ g(xi, [["__scopeId", "data-v-ecab6d75"]]), Bi = 50, q
|
|
|
2948
2948
|
], 32));
|
|
2949
2949
|
}
|
|
2950
2950
|
});
|
|
2951
|
-
const
|
|
2951
|
+
const Ao = /* @__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({
|
|
2952
2952
|
__name: "widget-section",
|
|
2953
2953
|
props: {
|
|
2954
2954
|
title: {}
|
|
@@ -2964,7 +2964,7 @@ const Aa = /* @__PURE__ */ g(qi, [["__scopeId", "data-v-eb609a21"]]), Gi = { cla
|
|
|
2964
2964
|
]));
|
|
2965
2965
|
}
|
|
2966
2966
|
});
|
|
2967
|
-
const
|
|
2967
|
+
const ko = /* @__PURE__ */ g(Ki, [["__scopeId", "data-v-07232553"]]);
|
|
2968
2968
|
const Yi = {
|
|
2969
2969
|
props: {
|
|
2970
2970
|
config: Array
|
|
@@ -2973,43 +2973,43 @@ const Yi = {
|
|
|
2973
2973
|
}, Xi = { class: "widget-table__head" }, Zi = { class: "widget-table__head-title" };
|
|
2974
2974
|
function Qi(t, e, n, s, r, i) {
|
|
2975
2975
|
return c(), u("tr", Xi, [
|
|
2976
|
-
(c(!0), u(O, null, j(n.config, (
|
|
2976
|
+
(c(!0), u(O, null, j(n.config, (o, a) => (c(), u("th", {
|
|
2977
2977
|
class: "widget-table__head-cell",
|
|
2978
|
-
key:
|
|
2978
|
+
key: a
|
|
2979
2979
|
}, [
|
|
2980
|
-
d("p", Zi, m(
|
|
2980
|
+
d("p", Zi, m(o.title), 1)
|
|
2981
2981
|
]))), 128))
|
|
2982
2982
|
]);
|
|
2983
2983
|
}
|
|
2984
|
-
const
|
|
2985
|
-
function
|
|
2986
|
-
const s = t.map((r) =>
|
|
2984
|
+
const ea = /* @__PURE__ */ g(Yi, [["render", Qi], ["__scopeId", "data-v-cae93640"]]);
|
|
2985
|
+
function ta(t, e, n) {
|
|
2986
|
+
const s = t.map((r) => na(r, e, n));
|
|
2987
2987
|
return k("tr", { class: "widget-table__row widget-table-row" }, s);
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2989
|
+
function na(t, e, n) {
|
|
2990
2990
|
const { name: s, value: r } = Q.getCellInfo(t, e), i = {
|
|
2991
2991
|
onClick: [],
|
|
2992
2992
|
class: ["widget-table__cell widget-table-cell"]
|
|
2993
2993
|
};
|
|
2994
|
-
function
|
|
2994
|
+
function o(f) {
|
|
2995
2995
|
i.onClick.push(() => f(r, e));
|
|
2996
2996
|
}
|
|
2997
|
-
function
|
|
2997
|
+
function a(f) {
|
|
2998
2998
|
Array.isArray(f) ? i.class.push(...f) : i.class.push(f);
|
|
2999
2999
|
}
|
|
3000
3000
|
const l = [], p = [];
|
|
3001
3001
|
if (t.type)
|
|
3002
|
-
switch (
|
|
3002
|
+
switch (a(`widget-table-cell_${t.type}`), t.type) {
|
|
3003
3003
|
case "edit": {
|
|
3004
|
-
t.icon = "edit",
|
|
3004
|
+
t.icon = "edit", o(n.activate);
|
|
3005
3005
|
break;
|
|
3006
3006
|
}
|
|
3007
3007
|
case "remove": {
|
|
3008
|
-
|
|
3008
|
+
o(n.removeRow), t.icon = "remove";
|
|
3009
3009
|
break;
|
|
3010
3010
|
}
|
|
3011
3011
|
case "select-multi": {
|
|
3012
|
-
|
|
3012
|
+
o(n.select.bind(n, !0)), a("widget-table-cell_use"), a("widget-table-cell_select"), p.push(k("div", { class: {
|
|
3013
3013
|
"table-cell-toggle": !0,
|
|
3014
3014
|
// @ts-ignore
|
|
3015
3015
|
"table-cell-toggle_active": n.selected.value
|
|
@@ -3017,7 +3017,7 @@ function no(t, e, n) {
|
|
|
3017
3017
|
break;
|
|
3018
3018
|
}
|
|
3019
3019
|
case "select": {
|
|
3020
|
-
|
|
3020
|
+
o(n.select.bind(n, !1)), a("widget-table-cell_use"), a("widget-table-cell_select"), p.push(k("div", { class: {
|
|
3021
3021
|
"table-cell-toggle": !0,
|
|
3022
3022
|
// @ts-ignore
|
|
3023
3023
|
"table-cell-toggle_active": n.selected.value
|
|
@@ -3025,14 +3025,14 @@ function no(t, e, n) {
|
|
|
3025
3025
|
break;
|
|
3026
3026
|
}
|
|
3027
3027
|
}
|
|
3028
|
-
return t.onClick &&
|
|
3028
|
+
return t.onClick && o(t.onClick), t.link && (p.push(k(Jt, {
|
|
3029
3029
|
to: t.link(r, e)
|
|
3030
|
-
})),
|
|
3030
|
+
})), a("list-cell-link")), t.href && (p.push(k("a", {
|
|
3031
3031
|
href: t.href(r, e),
|
|
3032
3032
|
target: "_blank"
|
|
3033
|
-
})),
|
|
3033
|
+
})), a("list-cell-link")), r && p.push(k("p", {}, r)), t.icon && p.push(k(R, { name: t.icon })), t.class && a(t.class), l.push(k("td", i, p)), l;
|
|
3034
3034
|
}
|
|
3035
|
-
const
|
|
3035
|
+
const sa = {
|
|
3036
3036
|
props: {
|
|
3037
3037
|
values: Object,
|
|
3038
3038
|
config: Object,
|
|
@@ -3042,7 +3042,7 @@ const so = {
|
|
|
3042
3042
|
setup(t, e) {
|
|
3043
3043
|
const { emit: n } = e, s = {
|
|
3044
3044
|
activate() {
|
|
3045
|
-
n("set", t.values[
|
|
3045
|
+
n("set", t.values[F]);
|
|
3046
3046
|
},
|
|
3047
3047
|
deactivate() {
|
|
3048
3048
|
n("set", null);
|
|
@@ -3055,9 +3055,9 @@ const so = {
|
|
|
3055
3055
|
n("select", r);
|
|
3056
3056
|
}
|
|
3057
3057
|
};
|
|
3058
|
-
return () =>
|
|
3058
|
+
return () => ta(t.config, t.values, s);
|
|
3059
3059
|
}
|
|
3060
|
-
},
|
|
3060
|
+
}, ra = { class: "widget-table-form" }, ia = ["colspan"], Lt = /* @__PURE__ */ b({
|
|
3061
3061
|
__name: "widget-table-form",
|
|
3062
3062
|
props: {
|
|
3063
3063
|
rowLength: {},
|
|
@@ -3067,28 +3067,28 @@ const so = {
|
|
|
3067
3067
|
},
|
|
3068
3068
|
setup(t) {
|
|
3069
3069
|
const e = t, n = L(() => {
|
|
3070
|
-
var
|
|
3071
|
-
return !((
|
|
3070
|
+
var o;
|
|
3071
|
+
return !((o = e.values) != null && o[F]);
|
|
3072
3072
|
}), s = ft(tt.PROVIDE_NAME);
|
|
3073
|
-
function r(
|
|
3074
|
-
s && (n.value ? s.create(
|
|
3073
|
+
function r(o) {
|
|
3074
|
+
s && (n.value ? s.create(o) : s.edit(e.values[F], o));
|
|
3075
3075
|
}
|
|
3076
3076
|
function i() {
|
|
3077
3077
|
e.controller.deactivate();
|
|
3078
3078
|
}
|
|
3079
|
-
return (
|
|
3080
|
-
d("td", { colspan:
|
|
3081
|
-
(c(), v(Ut(
|
|
3082
|
-
values:
|
|
3083
|
-
"table-controller":
|
|
3079
|
+
return (o, a) => (c(), u("tr", ra, [
|
|
3080
|
+
d("td", { colspan: o.rowLength }, [
|
|
3081
|
+
(c(), v(Ut(o.component), {
|
|
3082
|
+
values: o.values,
|
|
3083
|
+
"table-controller": o.controller,
|
|
3084
3084
|
onSave: r,
|
|
3085
3085
|
onClose: i,
|
|
3086
3086
|
new: n.value
|
|
3087
3087
|
}, null, 40, ["values", "table-controller", "new"]))
|
|
3088
|
-
], 8,
|
|
3088
|
+
], 8, ia)
|
|
3089
3089
|
]));
|
|
3090
3090
|
}
|
|
3091
|
-
}),
|
|
3091
|
+
}), No = /* @__PURE__ */ b({
|
|
3092
3092
|
__name: "widget-table",
|
|
3093
3093
|
props: {
|
|
3094
3094
|
array: {},
|
|
@@ -3102,50 +3102,50 @@ const so = {
|
|
|
3102
3102
|
const n = t;
|
|
3103
3103
|
ft(tt.PROVIDE_NAME);
|
|
3104
3104
|
const s = qt(), r = L(() => {
|
|
3105
|
-
var
|
|
3106
|
-
return (
|
|
3105
|
+
var a;
|
|
3106
|
+
return (a = s == null ? void 0 : s.default) == null ? void 0 : a.call(s)[0];
|
|
3107
3107
|
});
|
|
3108
|
-
function i(
|
|
3109
|
-
return n.selectRows ? l ? n.selectRows.indexOf(
|
|
3108
|
+
function i(a, l = !0) {
|
|
3109
|
+
return n.selectRows ? l ? n.selectRows.indexOf(a) === -1 ? e("update:selectRows", [...n.selectRows, a]) : e("update:selectRows", n.selectRows.filter((f) => f !== a)) : e("update:selectRows", [a]) : void 0;
|
|
3110
3110
|
}
|
|
3111
|
-
const
|
|
3112
|
-
return (
|
|
3113
|
-
class: I(["widget-table", { "widget-table_mini":
|
|
3111
|
+
const o = ai((a) => e("update:activeRow", a));
|
|
3112
|
+
return (a, l) => (c(), u("table", {
|
|
3113
|
+
class: I(["widget-table", { "widget-table_mini": a.mini }])
|
|
3114
3114
|
}, [
|
|
3115
|
-
C(
|
|
3115
|
+
C(ea, { config: a.config }, null, 8, ["config"]),
|
|
3116
3116
|
d("tbody", null, [
|
|
3117
|
-
(c(!0), u(O, null, j(
|
|
3117
|
+
(c(!0), u(O, null, j(a.array, (p, f) => {
|
|
3118
3118
|
var w;
|
|
3119
3119
|
return c(), u(O, { key: f }, [
|
|
3120
|
-
C(
|
|
3121
|
-
config:
|
|
3120
|
+
C(sa, {
|
|
3121
|
+
config: a.config,
|
|
3122
3122
|
values: p,
|
|
3123
|
-
selected: (w =
|
|
3123
|
+
selected: (w = a.selectRows) == null ? void 0 : w.includes(p[P(F)]),
|
|
3124
3124
|
onSet: l[0] || (l[0] = (V) => e("update:activeRow", V)),
|
|
3125
|
-
onSelect: (V) => i(p[P(
|
|
3125
|
+
onSelect: (V) => i(p[P(F)], V)
|
|
3126
3126
|
}, null, 8, ["config", "values", "selected", "onSelect"]),
|
|
3127
|
-
|
|
3127
|
+
a.activeRow === p[P(F)] ? (c(), v(Lt, {
|
|
3128
3128
|
key: 0,
|
|
3129
3129
|
component: r.value,
|
|
3130
|
-
controller: P(
|
|
3131
|
-
"row-length":
|
|
3130
|
+
controller: P(o)(p[P(F)]),
|
|
3131
|
+
"row-length": a.config.length,
|
|
3132
3132
|
values: p
|
|
3133
3133
|
}, null, 8, ["component", "controller", "row-length", "values"])) : h("", !0)
|
|
3134
3134
|
], 64);
|
|
3135
3135
|
}), 128)),
|
|
3136
|
-
|
|
3136
|
+
a.activeRow === 0 ? (c(), v(Lt, {
|
|
3137
3137
|
key: 0,
|
|
3138
3138
|
component: r.value,
|
|
3139
|
-
controller: P(
|
|
3140
|
-
"row-length":
|
|
3139
|
+
controller: P(o)(0),
|
|
3140
|
+
"row-length": a.config.length
|
|
3141
3141
|
}, null, 8, ["component", "controller", "row-length"])) : h("", !0)
|
|
3142
3142
|
])
|
|
3143
3143
|
], 2));
|
|
3144
3144
|
}
|
|
3145
|
-
}),
|
|
3145
|
+
}), aa = { class: "widget-form-info flex" }, oa = { class: "form-titles" }, la = { class: "form-title margin-0" }, ca = { class: "form-info text_size_md margin-0" }, ua = {
|
|
3146
3146
|
key: 0,
|
|
3147
3147
|
class: "form-container-label"
|
|
3148
|
-
},
|
|
3148
|
+
}, da = { class: "form-label__title text_size_sm" }, pa = /* @__PURE__ */ b({
|
|
3149
3149
|
__name: "WidgetFormInfo",
|
|
3150
3150
|
props: {
|
|
3151
3151
|
title: {},
|
|
@@ -3153,12 +3153,12 @@ const so = {
|
|
|
3153
3153
|
label: {}
|
|
3154
3154
|
},
|
|
3155
3155
|
setup(t) {
|
|
3156
|
-
return (e, n) => (c(), u("div",
|
|
3157
|
-
d("div",
|
|
3158
|
-
d("p",
|
|
3159
|
-
d("p",
|
|
3156
|
+
return (e, n) => (c(), u("div", aa, [
|
|
3157
|
+
d("div", oa, [
|
|
3158
|
+
d("p", la, m(e.title), 1),
|
|
3159
|
+
d("p", ca, m(e.info), 1)
|
|
3160
3160
|
]),
|
|
3161
|
-
e.label ? (c(), u("div",
|
|
3161
|
+
e.label ? (c(), u("div", ua, [
|
|
3162
3162
|
d("div", {
|
|
3163
3163
|
class: I(["form-label", `form-label_${e.label.type}`])
|
|
3164
3164
|
}, [
|
|
@@ -3167,13 +3167,13 @@ const so = {
|
|
|
3167
3167
|
class: "form-label__icon",
|
|
3168
3168
|
name: e.label.icon
|
|
3169
3169
|
}, null, 8, ["name"])) : h("", !0),
|
|
3170
|
-
d("p",
|
|
3170
|
+
d("p", da, m(e.label.title), 1)
|
|
3171
3171
|
], 2)
|
|
3172
3172
|
])) : h("", !0)
|
|
3173
3173
|
]));
|
|
3174
3174
|
}
|
|
3175
3175
|
});
|
|
3176
|
-
const
|
|
3176
|
+
const fa = /* @__PURE__ */ g(pa, [["__scopeId", "data-v-6ea1062c"]]), ha = { class: "wrap__widget-form" }, _a = { class: "widget-form" }, ga = { class: "widget-form__head" }, ma = { class: "head-image" }, ya = { key: 1 }, va = { class: "widget-form__body" }, wa = /* @__PURE__ */ b({
|
|
3177
3177
|
__name: "WidgetForm",
|
|
3178
3178
|
props: {
|
|
3179
3179
|
title: {},
|
|
@@ -3185,14 +3185,14 @@ const ho = /* @__PURE__ */ g(fo, [["__scopeId", "data-v-6ea1062c"]]), _o = { cla
|
|
|
3185
3185
|
wait: { type: Boolean }
|
|
3186
3186
|
},
|
|
3187
3187
|
setup(t) {
|
|
3188
|
-
return (e, n) => (c(), u("div",
|
|
3189
|
-
d("div",
|
|
3190
|
-
d("div",
|
|
3191
|
-
d("div",
|
|
3188
|
+
return (e, n) => (c(), u("div", ha, [
|
|
3189
|
+
d("div", _a, [
|
|
3190
|
+
d("div", ga, [
|
|
3191
|
+
d("div", ma, [
|
|
3192
3192
|
e.wait ? (c(), v(_e, {
|
|
3193
3193
|
key: 0,
|
|
3194
3194
|
color: "#3949AB"
|
|
3195
|
-
})) : (c(), u("div",
|
|
3195
|
+
})) : (c(), u("div", ya, [
|
|
3196
3196
|
e.icon ? (c(), v(R, {
|
|
3197
3197
|
key: 0,
|
|
3198
3198
|
class: "form-image",
|
|
@@ -3200,7 +3200,7 @@ const ho = /* @__PURE__ */ g(fo, [["__scopeId", "data-v-6ea1062c"]]), _o = { cla
|
|
|
3200
3200
|
}, null, 8, ["name"])) : h("", !0)
|
|
3201
3201
|
]))
|
|
3202
3202
|
]),
|
|
3203
|
-
C(
|
|
3203
|
+
C(fa, {
|
|
3204
3204
|
title: e.title,
|
|
3205
3205
|
info: e.info,
|
|
3206
3206
|
label: e.label
|
|
@@ -3211,14 +3211,14 @@ const ho = /* @__PURE__ */ g(fo, [["__scopeId", "data-v-6ea1062c"]]), _o = { cla
|
|
|
3211
3211
|
array: e.button
|
|
3212
3212
|
}, null, 8, ["array"])) : h("", !0)
|
|
3213
3213
|
]),
|
|
3214
|
-
d("div",
|
|
3214
|
+
d("div", va, [
|
|
3215
3215
|
B(e.$slots, "default", {}, void 0, !0)
|
|
3216
3216
|
])
|
|
3217
3217
|
])
|
|
3218
3218
|
]));
|
|
3219
3219
|
}
|
|
3220
3220
|
});
|
|
3221
|
-
const
|
|
3221
|
+
const Po = /* @__PURE__ */ g(wa, [["__scopeId", "data-v-3d88d93f"]]), ba = { class: "validation-item-header" }, $a = { class: "validation-item__title text_bold margin-0" }, Ea = { class: "validation-item-content" }, Ta = { class: "text_bold text_md margin-0" }, Sa = { class: "text_md margin-0" }, Ca = /* @__PURE__ */ b({
|
|
3222
3222
|
__name: "modal-validation-item",
|
|
3223
3223
|
props: {
|
|
3224
3224
|
message: {},
|
|
@@ -3231,42 +3231,42 @@ const Pa = /* @__PURE__ */ g(bo, [["__scopeId", "data-v-3d88d93f"]]), $o = { cla
|
|
|
3231
3231
|
return (e, n) => (c(), u("div", {
|
|
3232
3232
|
class: I(["validation-item", `validation-item_${e.statusName.toLowerCase()}`])
|
|
3233
3233
|
}, [
|
|
3234
|
-
d("div",
|
|
3235
|
-
d("p",
|
|
3234
|
+
d("div", ba, [
|
|
3235
|
+
d("p", $a, m(e.statusName), 1)
|
|
3236
3236
|
]),
|
|
3237
|
-
d("div",
|
|
3238
|
-
d("p",
|
|
3239
|
-
d("p",
|
|
3237
|
+
d("div", Ea, [
|
|
3238
|
+
d("p", Ta, m(e.title), 1),
|
|
3239
|
+
d("p", Sa, m(e.message), 1)
|
|
3240
3240
|
])
|
|
3241
3241
|
], 2));
|
|
3242
3242
|
}
|
|
3243
3243
|
});
|
|
3244
|
-
const
|
|
3244
|
+
const Ia = /* @__PURE__ */ g(Ca, [["__scopeId", "data-v-e6138c02"]]), Aa = { class: "modal-wrap" }, ka = { class: "modal-wrap-head" }, Na = { class: "modal-head__title margin-0" }, Pa = { class: "modal-wrap-body" }, Oa = /* @__PURE__ */ b({
|
|
3245
3245
|
__name: "modal-wrap",
|
|
3246
3246
|
props: {
|
|
3247
3247
|
title: {}
|
|
3248
3248
|
},
|
|
3249
3249
|
setup(t) {
|
|
3250
|
-
return (e, n) => (c(), u("div",
|
|
3251
|
-
d("div",
|
|
3252
|
-
d("p",
|
|
3250
|
+
return (e, n) => (c(), u("div", Aa, [
|
|
3251
|
+
d("div", ka, [
|
|
3252
|
+
d("p", Na, m(e.title), 1)
|
|
3253
3253
|
]),
|
|
3254
|
-
d("div",
|
|
3254
|
+
d("div", Pa, [
|
|
3255
3255
|
B(e.$slots, "default", {}, void 0, !0)
|
|
3256
3256
|
])
|
|
3257
3257
|
]));
|
|
3258
3258
|
}
|
|
3259
3259
|
});
|
|
3260
|
-
const
|
|
3260
|
+
const Ra = /* @__PURE__ */ g(Oa, [["__scopeId", "data-v-119165b9"]]), Va = { class: "modal-validation-body" }, La = /* @__PURE__ */ b({
|
|
3261
3261
|
__name: "modal-validation",
|
|
3262
3262
|
props: {
|
|
3263
3263
|
array: {}
|
|
3264
3264
|
},
|
|
3265
3265
|
setup(t) {
|
|
3266
|
-
return (e, n) => (c(), v(
|
|
3266
|
+
return (e, n) => (c(), v(Ra, { title: "Validation results" }, {
|
|
3267
3267
|
default: he(() => [
|
|
3268
|
-
d("div",
|
|
3269
|
-
(c(!0), u(O, null, j(e.array, (s, r) => (c(), v(
|
|
3268
|
+
d("div", Va, [
|
|
3269
|
+
(c(!0), u(O, null, j(e.array, (s, r) => (c(), v(Ia, {
|
|
3270
3270
|
key: r,
|
|
3271
3271
|
message: s.message,
|
|
3272
3272
|
name: s.name,
|
|
@@ -3280,7 +3280,7 @@ const Vo = /* @__PURE__ */ g(Ro, [["__scopeId", "data-v-119165b9"]]), Lo = { cla
|
|
|
3280
3280
|
}));
|
|
3281
3281
|
}
|
|
3282
3282
|
});
|
|
3283
|
-
const
|
|
3283
|
+
const Oo = /* @__PURE__ */ g(La, [["__scopeId", "data-v-a39cfe2f"]]), Wa = ["alt", "src"], Ro = /* @__PURE__ */ b({
|
|
3284
3284
|
__name: "widget-image",
|
|
3285
3285
|
props: {
|
|
3286
3286
|
src: {},
|
|
@@ -3298,9 +3298,9 @@ const Oa = /* @__PURE__ */ g(Wo, [["__scopeId", "data-v-a39cfe2f"]]), Do = ["alt
|
|
|
3298
3298
|
ref_key: "refImage",
|
|
3299
3299
|
ref: n,
|
|
3300
3300
|
src: s.src || s.$props.default
|
|
3301
|
-
}, null, 8,
|
|
3301
|
+
}, null, 8, Wa));
|
|
3302
3302
|
}
|
|
3303
|
-
}),
|
|
3303
|
+
}), Da = /* @__PURE__ */ b({
|
|
3304
3304
|
__name: "widget-input-check",
|
|
3305
3305
|
props: {
|
|
3306
3306
|
modelValue: { type: Boolean }
|
|
@@ -3322,10 +3322,10 @@ const Oa = /* @__PURE__ */ g(Wo, [["__scopeId", "data-v-a39cfe2f"]]), Do = ["alt
|
|
|
3322
3322
|
], 2));
|
|
3323
3323
|
}
|
|
3324
3324
|
});
|
|
3325
|
-
const
|
|
3325
|
+
const Fa = /* @__PURE__ */ g(Da, [["__scopeId", "data-v-f4a3dc6c"]]), Ma = { class: "widget-card" }, ja = { class: "widget-card-toggle" }, xa = { class: "widget-card-wrap" }, Ua = { class: "widget-card-content" }, Ba = {
|
|
3326
3326
|
key: 0,
|
|
3327
3327
|
class: "widget-card-title"
|
|
3328
|
-
},
|
|
3328
|
+
}, qa = /* @__PURE__ */ b({
|
|
3329
3329
|
__name: "widget-card",
|
|
3330
3330
|
props: {
|
|
3331
3331
|
title: {}
|
|
@@ -3337,14 +3337,14 @@ const Fo = /* @__PURE__ */ g(Mo, [["__scopeId", "data-v-f4a3dc6c"]]), jo = { cla
|
|
|
3337
3337
|
});
|
|
3338
3338
|
return e({
|
|
3339
3339
|
state: n
|
|
3340
|
-
}), (s, r) => (c(), u("div",
|
|
3341
|
-
d("div",
|
|
3342
|
-
C(
|
|
3340
|
+
}), (s, r) => (c(), u("div", Ma, [
|
|
3341
|
+
d("div", ja, [
|
|
3342
|
+
C(Fa, {
|
|
3343
3343
|
modelValue: n.selected,
|
|
3344
3344
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => n.selected = i)
|
|
3345
3345
|
}, null, 8, ["modelValue"])
|
|
3346
3346
|
]),
|
|
3347
|
-
d("div",
|
|
3347
|
+
d("div", xa, [
|
|
3348
3348
|
d("div", {
|
|
3349
3349
|
class: "widget-card-arrow",
|
|
3350
3350
|
onClick: r[1] || (r[1] = (i) => n.hidden = !n.hidden)
|
|
@@ -3354,8 +3354,8 @@ const Fo = /* @__PURE__ */ g(Mo, [["__scopeId", "data-v-f4a3dc6c"]]), jo = { cla
|
|
|
3354
3354
|
class: I(["card-icon-arrow", { "card-icon-arrow_active": !n.hidden }])
|
|
3355
3355
|
}, null, 8, ["class"])
|
|
3356
3356
|
]),
|
|
3357
|
-
d("div",
|
|
3358
|
-
s.title ? (c(), u("p",
|
|
3357
|
+
d("div", Ua, [
|
|
3358
|
+
s.title ? (c(), u("p", Ba, m(s.title), 1)) : h("", !0),
|
|
3359
3359
|
B(s.$slots, "main", {}, void 0, !0),
|
|
3360
3360
|
n.hidden ? h("", !0) : B(s.$slots, "sub", { key: 1 }, void 0, !0)
|
|
3361
3361
|
])
|
|
@@ -3363,7 +3363,7 @@ const Fo = /* @__PURE__ */ g(Mo, [["__scopeId", "data-v-f4a3dc6c"]]), jo = { cla
|
|
|
3363
3363
|
]));
|
|
3364
3364
|
}
|
|
3365
3365
|
});
|
|
3366
|
-
const
|
|
3366
|
+
const Vo = /* @__PURE__ */ g(qa, [["__scopeId", "data-v-bca33c5b"]]);
|
|
3367
3367
|
class x {
|
|
3368
3368
|
static parseError(e) {
|
|
3369
3369
|
let n = e.errors ? Object.values(e.errors).map((s) => s[0]) : null;
|
|
@@ -3503,7 +3503,7 @@ const fn = class Te {
|
|
|
3503
3503
|
};
|
|
3504
3504
|
fn.url = "/close-api/communications";
|
|
3505
3505
|
let Ge = fn;
|
|
3506
|
-
class
|
|
3506
|
+
class Lo {
|
|
3507
3507
|
static async getDefaultView(e) {
|
|
3508
3508
|
return _("/close-api/views/" + e, {
|
|
3509
3509
|
method: "GET",
|
|
@@ -3567,8 +3567,11 @@ class _n {
|
|
|
3567
3567
|
const r = new URLSearchParams();
|
|
3568
3568
|
return Je(r, s), n && r.append("id", n), _([this.url, e].join("/") + `?${r.toString()}`);
|
|
3569
3569
|
}
|
|
3570
|
+
static getFieldInformation(e, n) {
|
|
3571
|
+
return _(`/open-api/metadata/${e}/fields/${n}`);
|
|
3572
|
+
}
|
|
3570
3573
|
}
|
|
3571
|
-
class
|
|
3574
|
+
class Wo {
|
|
3572
3575
|
static invite(e, n, s) {
|
|
3573
3576
|
return _("/close-api/accounts/invitePerson", {
|
|
3574
3577
|
method: "POST",
|
|
@@ -3620,7 +3623,7 @@ class gn {
|
|
|
3620
3623
|
});
|
|
3621
3624
|
}
|
|
3622
3625
|
}
|
|
3623
|
-
class
|
|
3626
|
+
class Do {
|
|
3624
3627
|
static getConfiguration() {
|
|
3625
3628
|
return _("/open-api/webserver-configuration", {
|
|
3626
3629
|
method: "GET",
|
|
@@ -3630,7 +3633,7 @@ class Da {
|
|
|
3630
3633
|
});
|
|
3631
3634
|
}
|
|
3632
3635
|
}
|
|
3633
|
-
class
|
|
3636
|
+
class Ga {
|
|
3634
3637
|
static url() {
|
|
3635
3638
|
return "/close-api/actions";
|
|
3636
3639
|
}
|
|
@@ -3684,8 +3687,8 @@ const mn = class yn extends J {
|
|
|
3684
3687
|
}
|
|
3685
3688
|
};
|
|
3686
3689
|
mn.EVENT_DATA = "list-config:update";
|
|
3687
|
-
let
|
|
3688
|
-
class
|
|
3690
|
+
let Fo = mn;
|
|
3691
|
+
class Mo extends J {
|
|
3689
3692
|
constructor(e) {
|
|
3690
3693
|
super(), this.name = "Communication", this.read = () => {
|
|
3691
3694
|
}, this.id = e;
|
|
@@ -3697,7 +3700,7 @@ class Fa extends J {
|
|
|
3697
3700
|
return Ge.read(e).then((n) => n.length === 0 ? Ge.create(e) : n[0]);
|
|
3698
3701
|
}
|
|
3699
3702
|
}
|
|
3700
|
-
function
|
|
3703
|
+
function jo(t) {
|
|
3701
3704
|
const e = Y.getParentForm();
|
|
3702
3705
|
e ? e.subscribe(t) : console.warn(q.ParentFormNotFound());
|
|
3703
3706
|
const n = A([]);
|
|
@@ -3705,7 +3708,7 @@ function ja(t) {
|
|
|
3705
3708
|
array: n
|
|
3706
3709
|
};
|
|
3707
3710
|
}
|
|
3708
|
-
function
|
|
3711
|
+
function za(t) {
|
|
3709
3712
|
return typeof t != "object" || t === null ? !1 : !!(t.hasOwnProperty("start") || t.hasOwnProperty("end"));
|
|
3710
3713
|
}
|
|
3711
3714
|
function X(t) {
|
|
@@ -3715,10 +3718,10 @@ function X(t) {
|
|
|
3715
3718
|
const r = s.map((i) => typeof i == "string" ? `'${i}'` : i).join(", ");
|
|
3716
3719
|
return s.length && e.push(`@${n} in (${r})`), e;
|
|
3717
3720
|
}
|
|
3718
|
-
if (
|
|
3721
|
+
if (za(s)) {
|
|
3719
3722
|
let r = function(i) {
|
|
3720
|
-
var
|
|
3721
|
-
return ((
|
|
3723
|
+
var o;
|
|
3724
|
+
return ((o = i.match(/([^Z]*)/)) == null ? void 0 : o[0]) + "0000Z";
|
|
3722
3725
|
};
|
|
3723
3726
|
return s.start && e.push(`@${n} ge ${r(s.start)}`), s.end && e.push(`@${n} le ${r(s.end)}`), e;
|
|
3724
3727
|
}
|
|
@@ -3753,33 +3756,33 @@ X.is = function(e, n) {
|
|
|
3753
3756
|
X.or = function(...e) {
|
|
3754
3757
|
return e.join(" or ");
|
|
3755
3758
|
};
|
|
3756
|
-
function
|
|
3759
|
+
function Ha(t, e = "images") {
|
|
3757
3760
|
return `/static-folder/${e}/${t}`;
|
|
3758
3761
|
}
|
|
3759
|
-
function
|
|
3762
|
+
function Ja(t, e, n) {
|
|
3760
3763
|
return t.reduce((s, r) => {
|
|
3761
|
-
var
|
|
3764
|
+
var a;
|
|
3762
3765
|
let i = typeof e == "function" ? e(r) : r[e];
|
|
3763
|
-
const
|
|
3764
|
-
return
|
|
3766
|
+
const o = (a = s[s.length - 1]) == null ? void 0 : a.value;
|
|
3767
|
+
return o && n(o, i) ? s[s.length - 1].array.push(r) : s.push({
|
|
3765
3768
|
value: i,
|
|
3766
3769
|
array: [r]
|
|
3767
3770
|
}), s;
|
|
3768
3771
|
}, []);
|
|
3769
3772
|
}
|
|
3770
|
-
function
|
|
3773
|
+
function Ka() {
|
|
3771
3774
|
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(
|
|
3772
3775
|
/[018]/g,
|
|
3773
3776
|
(t) => (t ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> t / 4).toString(16)
|
|
3774
3777
|
);
|
|
3775
3778
|
}
|
|
3776
|
-
function
|
|
3779
|
+
function xo(t, e = 1e3) {
|
|
3777
3780
|
let n = 0;
|
|
3778
3781
|
return (...s) => {
|
|
3779
3782
|
clearTimeout(n), n = setTimeout(() => t(...s), e);
|
|
3780
3783
|
};
|
|
3781
3784
|
}
|
|
3782
|
-
function
|
|
3785
|
+
function Uo(t, e) {
|
|
3783
3786
|
const n = G(null);
|
|
3784
3787
|
function s() {
|
|
3785
3788
|
return t.name ? _n.getById(t.name, e, []).then((r) => {
|
|
@@ -3789,7 +3792,7 @@ function Ua(t, e) {
|
|
|
3789
3792
|
}).catch(() => {
|
|
3790
3793
|
n.value = null;
|
|
3791
3794
|
const r = q.MetadataEntityIsNotAvailable(t.name || "FORM_WITHOUT_NAME");
|
|
3792
|
-
|
|
3795
|
+
M.add("error", r.message);
|
|
3793
3796
|
}) : Promise.reject();
|
|
3794
3797
|
}
|
|
3795
3798
|
return t.on(Y.EVENT_READ, s), {
|
|
@@ -3802,21 +3805,21 @@ class wt extends Error {
|
|
|
3802
3805
|
return new wt("Status is undefined.");
|
|
3803
3806
|
}
|
|
3804
3807
|
}
|
|
3805
|
-
class
|
|
3808
|
+
class Ya extends wt {
|
|
3806
3809
|
}
|
|
3807
|
-
function
|
|
3810
|
+
function Bo(t, e) {
|
|
3808
3811
|
const n = A([]);
|
|
3809
|
-
async function s(i,
|
|
3812
|
+
async function s(i, o) {
|
|
3810
3813
|
if (!i)
|
|
3811
|
-
throw
|
|
3812
|
-
const
|
|
3813
|
-
n.splice(0, n.length), n.push(...
|
|
3814
|
+
throw Ya.UndefinedStatus();
|
|
3815
|
+
const a = await Ga.get({ criterion: i });
|
|
3816
|
+
n.splice(0, n.length), n.push(...a.map((l) => r(l, o)));
|
|
3814
3817
|
}
|
|
3815
3818
|
return {
|
|
3816
3819
|
actions: n,
|
|
3817
3820
|
update: s
|
|
3818
3821
|
};
|
|
3819
|
-
function r(i,
|
|
3822
|
+
function r(i, o) {
|
|
3820
3823
|
return {
|
|
3821
3824
|
title: i.title,
|
|
3822
3825
|
callback: () => (() => Promise.resolve().then(() => {
|
|
@@ -3826,7 +3829,7 @@ function Ba(t, e) {
|
|
|
3826
3829
|
method: "POST",
|
|
3827
3830
|
body: JSON.stringify({
|
|
3828
3831
|
keys: {
|
|
3829
|
-
Id:
|
|
3832
|
+
Id: o
|
|
3830
3833
|
},
|
|
3831
3834
|
contextId: $.contextId
|
|
3832
3835
|
}),
|
|
@@ -3837,10 +3840,10 @@ function Ba(t, e) {
|
|
|
3837
3840
|
if (!l.success)
|
|
3838
3841
|
throw e != null && e.ModalValidationResult && l.validationEffect ? zt(e.ModalValidationResult, {
|
|
3839
3842
|
rules: l.validationEffect.results
|
|
3840
|
-
}) :
|
|
3843
|
+
}) : M.add("error", l.message), new Error();
|
|
3841
3844
|
return l;
|
|
3842
3845
|
}).then((l) => {
|
|
3843
|
-
l.message &&
|
|
3846
|
+
l.message && M.add("info", l.message), e != null && e.handleAffectedEntities && e.handleAffectedEntities(l.affectedEntities);
|
|
3844
3847
|
}).then(() => t.read()))()
|
|
3845
3848
|
};
|
|
3846
3849
|
}
|
|
@@ -3853,7 +3856,7 @@ class Ke {
|
|
|
3853
3856
|
return fetch(`${Ke.url()}/status/${e}/${n}`).then((s) => s.json());
|
|
3854
3857
|
}
|
|
3855
3858
|
}
|
|
3856
|
-
function
|
|
3859
|
+
function qo(t) {
|
|
3857
3860
|
const e = A({
|
|
3858
3861
|
title: "Loading",
|
|
3859
3862
|
type: "wait"
|
|
@@ -3865,17 +3868,17 @@ function qa(t) {
|
|
|
3865
3868
|
});
|
|
3866
3869
|
}
|
|
3867
3870
|
return t.on(Y.EVENT_READ, (s) => {
|
|
3868
|
-
var
|
|
3871
|
+
var o, a;
|
|
3869
3872
|
const { code: r, name: i } = {
|
|
3870
|
-
code: (
|
|
3871
|
-
name: (
|
|
3873
|
+
code: (o = s.Status) == null ? void 0 : o.Code,
|
|
3874
|
+
name: (a = s.Status) == null ? void 0 : a.Name
|
|
3872
3875
|
};
|
|
3873
3876
|
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
3877
|
e.type = l.type, e.title = i;
|
|
3875
3878
|
}) : void console.log("Form without name.");
|
|
3876
3879
|
}), { label: e, update: n };
|
|
3877
3880
|
}
|
|
3878
|
-
function
|
|
3881
|
+
function Go(t, e) {
|
|
3879
3882
|
const n = $n(), s = L(() => Number(n.params.id)), r = A({
|
|
3880
3883
|
ready: !1,
|
|
3881
3884
|
show: !1
|
|
@@ -3910,7 +3913,7 @@ function Ga(t, e) {
|
|
|
3910
3913
|
formShadowState: r
|
|
3911
3914
|
};
|
|
3912
3915
|
}
|
|
3913
|
-
function
|
|
3916
|
+
function zo() {
|
|
3914
3917
|
const t = A({
|
|
3915
3918
|
contextId: $.contextId,
|
|
3916
3919
|
person: $.person,
|
|
@@ -3938,7 +3941,7 @@ function za() {
|
|
|
3938
3941
|
isPerson: n
|
|
3939
3942
|
};
|
|
3940
3943
|
}
|
|
3941
|
-
function
|
|
3944
|
+
function Ho(t, e) {
|
|
3942
3945
|
const n = A({
|
|
3943
3946
|
ready: !1,
|
|
3944
3947
|
show: !1
|
|
@@ -3955,8 +3958,8 @@ function Ha(t, e) {
|
|
|
3955
3958
|
fields: r.fields
|
|
3956
3959
|
});
|
|
3957
3960
|
}).then(Ce.valuesToUpperCase).then((i) => (i.hasOwnProperty("Version") && (t.version = Number(i.Version)), t.setValues(i), n.show = !0, i)).catch((i) => {
|
|
3958
|
-
const
|
|
3959
|
-
throw
|
|
3961
|
+
const o = He(i);
|
|
3962
|
+
throw M.add("error", o.message), o;
|
|
3960
3963
|
}).finally(() => {
|
|
3961
3964
|
n.ready = !0;
|
|
3962
3965
|
});
|
|
@@ -3969,12 +3972,12 @@ function Ha(t, e) {
|
|
|
3969
3972
|
}).then((i) => {
|
|
3970
3973
|
t.version = i.version || i.Version;
|
|
3971
3974
|
}).catch((i) => {
|
|
3972
|
-
const
|
|
3973
|
-
throw
|
|
3975
|
+
const o = He(i);
|
|
3976
|
+
throw M.add("error", o.message), o;
|
|
3974
3977
|
});
|
|
3975
3978
|
}, t.on(Y.EVENT_SAVE, t.read.bind(t)), { shadowFormState: n, initShadow: s };
|
|
3976
3979
|
}
|
|
3977
|
-
class
|
|
3980
|
+
class Jo {
|
|
3978
3981
|
static getRequiredDocuments(e, n, s) {
|
|
3979
3982
|
const r = new URLSearchParams({
|
|
3980
3983
|
entity: e,
|
|
@@ -4059,7 +4062,7 @@ class Se {
|
|
|
4059
4062
|
});
|
|
4060
4063
|
}
|
|
4061
4064
|
}
|
|
4062
|
-
class
|
|
4065
|
+
class Ko {
|
|
4063
4066
|
/**
|
|
4064
4067
|
* @description Загрузка конфигурации из списка
|
|
4065
4068
|
* */
|
|
@@ -4070,42 +4073,42 @@ class Ka {
|
|
|
4070
4073
|
return _(r);
|
|
4071
4074
|
}
|
|
4072
4075
|
}
|
|
4073
|
-
function
|
|
4076
|
+
function Xa(t) {
|
|
4074
4077
|
return t.statusName === "Completed";
|
|
4075
4078
|
}
|
|
4076
|
-
function
|
|
4079
|
+
function Za(t) {
|
|
4077
4080
|
return t.statusName === "FinalStepWithConfirmation";
|
|
4078
4081
|
}
|
|
4079
|
-
function
|
|
4082
|
+
function Qa(t) {
|
|
4080
4083
|
return t.statusName === "ValidationError";
|
|
4081
4084
|
}
|
|
4082
|
-
function
|
|
4085
|
+
function Yo(t, e, n) {
|
|
4083
4086
|
let s = null;
|
|
4084
4087
|
const r = A({
|
|
4085
4088
|
wait: null
|
|
4086
4089
|
});
|
|
4087
|
-
let i = [],
|
|
4088
|
-
const
|
|
4090
|
+
let i = [], o = null;
|
|
4091
|
+
const a = G(null);
|
|
4089
4092
|
function l() {
|
|
4090
|
-
|
|
4093
|
+
a.value = i.find((y) => y.name === o) || null;
|
|
4091
4094
|
}
|
|
4092
4095
|
function p() {
|
|
4093
4096
|
var y;
|
|
4094
|
-
return
|
|
4097
|
+
return o ? ((y = i.find((W) => W.name === o)) == null ? void 0 : y.fields) || [] : [];
|
|
4095
4098
|
}
|
|
4096
4099
|
function f(y) {
|
|
4097
|
-
if (l(),
|
|
4100
|
+
if (l(), Qa(y))
|
|
4098
4101
|
return void n.onValidation(y.validationResults);
|
|
4099
|
-
if ((y.statusName === "FinalStep" || y.statusName === "NextStep") && (!p().length ||
|
|
4102
|
+
if ((y.statusName === "FinalStep" || y.statusName === "NextStep") && (!p().length || eo(p(), n.presets)))
|
|
4100
4103
|
return re(n.presets || {});
|
|
4101
|
-
|
|
4104
|
+
Xa(y) && n.onCompleted(y), Za(y) && n.onConfirmation(y);
|
|
4102
4105
|
}
|
|
4103
4106
|
async function w() {
|
|
4104
4107
|
try {
|
|
4105
4108
|
await V(), await N();
|
|
4106
4109
|
} catch (y) {
|
|
4107
4110
|
const { message: W } = He(y);
|
|
4108
|
-
|
|
4111
|
+
M.add("error", W);
|
|
4109
4112
|
}
|
|
4110
4113
|
}
|
|
4111
4114
|
function V() {
|
|
@@ -4125,11 +4128,11 @@ function Ya(t, e, n) {
|
|
|
4125
4128
|
}).then((y) => (r.wait = !1, y));
|
|
4126
4129
|
}
|
|
4127
4130
|
function T(y) {
|
|
4128
|
-
return
|
|
4131
|
+
return o = y.nextStepName, s = y.token, y;
|
|
4129
4132
|
}
|
|
4130
4133
|
function S(y) {
|
|
4131
4134
|
const W = He(y);
|
|
4132
|
-
|
|
4135
|
+
M.add("error", W.message);
|
|
4133
4136
|
}
|
|
4134
4137
|
function N() {
|
|
4135
4138
|
return r.wait = "Starting process", lt.startProcess(e, t).then(T).then(f).catch(S).finally(() => {
|
|
@@ -4137,18 +4140,18 @@ function Ya(t, e, n) {
|
|
|
4137
4140
|
});
|
|
4138
4141
|
}
|
|
4139
4142
|
function re(y = {}) {
|
|
4140
|
-
return !s || !
|
|
4143
|
+
return !s || !o ? Promise.reject("Not step or token.") : (r.wait = "Expect the result", lt.runStep(e, t, o, s, y).then(T).then(f).catch(S).finally(() => {
|
|
4141
4144
|
r.wait = !1;
|
|
4142
4145
|
}));
|
|
4143
4146
|
}
|
|
4144
4147
|
return {
|
|
4145
4148
|
initialize: w,
|
|
4146
4149
|
state: r,
|
|
4147
|
-
currentStepConfig: Gt(
|
|
4150
|
+
currentStepConfig: Gt(a),
|
|
4148
4151
|
next: re
|
|
4149
4152
|
};
|
|
4150
4153
|
}
|
|
4151
|
-
function
|
|
4154
|
+
function eo(t, e) {
|
|
4152
4155
|
for (let n = 0; n < t.length; n++) {
|
|
4153
4156
|
const s = t[n];
|
|
4154
4157
|
if (!ue.getPropFromObject(e, s.name))
|
|
@@ -4156,13 +4159,13 @@ function ta(t, e) {
|
|
|
4156
4159
|
}
|
|
4157
4160
|
return !0;
|
|
4158
4161
|
}
|
|
4159
|
-
const
|
|
4160
|
-
class
|
|
4162
|
+
const to = "close-api/proxy/Equipment/Search";
|
|
4163
|
+
class Xo {
|
|
4161
4164
|
static search(e, n, s, r, i) {
|
|
4162
|
-
const
|
|
4163
|
-
|
|
4164
|
-
const
|
|
4165
|
-
return _(
|
|
4165
|
+
const o = new URLSearchParams();
|
|
4166
|
+
o.append("pattern", e || ""), n && o.append("categoryId", n), s && o.append("useType", String(s)), r && o.append("statusCode", r), i && (o.append("limit", String(i.limit)), o.append("offset", String(i.offset)));
|
|
4167
|
+
const a = `/${to}?${o.toString()}`;
|
|
4168
|
+
return _(a, {
|
|
4166
4169
|
method: "GET",
|
|
4167
4170
|
headers: {
|
|
4168
4171
|
"Content-Type": "application/json"
|
|
@@ -4170,19 +4173,19 @@ class Xa {
|
|
|
4170
4173
|
});
|
|
4171
4174
|
}
|
|
4172
4175
|
}
|
|
4173
|
-
const
|
|
4176
|
+
const Zo = {
|
|
4174
4177
|
clickOutside: ke,
|
|
4175
4178
|
requestHandler: mt,
|
|
4176
4179
|
valuesToUpperCase: et,
|
|
4177
4180
|
prettyDate: vt,
|
|
4178
4181
|
prettyDateWithTime: dn,
|
|
4179
4182
|
Filter: X,
|
|
4180
|
-
staticLink:
|
|
4181
|
-
groupArrayByField:
|
|
4182
|
-
uuidv4:
|
|
4183
|
+
staticLink: Ha,
|
|
4184
|
+
groupArrayByField: Ja,
|
|
4185
|
+
uuidv4: Ka,
|
|
4183
4186
|
Request: _,
|
|
4184
4187
|
prettyMoney: rn
|
|
4185
|
-
},
|
|
4188
|
+
}, Qo = {
|
|
4186
4189
|
widgets: Ur,
|
|
4187
4190
|
usage: Br,
|
|
4188
4191
|
utils: ei,
|
|
@@ -4192,80 +4195,80 @@ const Za = {
|
|
|
4192
4195
|
};
|
|
4193
4196
|
export {
|
|
4194
4197
|
zr as ApplicationManager,
|
|
4195
|
-
|
|
4196
|
-
$
|
|
4198
|
+
Mo as Communication,
|
|
4199
|
+
$o as ComputedMetadata,
|
|
4197
4200
|
q as CoreError,
|
|
4198
4201
|
X as Filter,
|
|
4199
4202
|
Q as List,
|
|
4200
|
-
|
|
4203
|
+
Fo as ListConfig,
|
|
4201
4204
|
$ as Manager,
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
+
Fe as MetadataStore,
|
|
4206
|
+
Oo as ModalValidation,
|
|
4207
|
+
M as NotificationSystem,
|
|
4205
4208
|
_t as ProcessWrap,
|
|
4206
4209
|
_ as Request,
|
|
4207
|
-
|
|
4210
|
+
F as SYMBOL_ROW,
|
|
4208
4211
|
tt as Table,
|
|
4209
|
-
|
|
4212
|
+
Io as WidgetBreadcrumbs,
|
|
4210
4213
|
mr as WidgetButton,
|
|
4211
|
-
|
|
4212
|
-
|
|
4214
|
+
Vo as WidgetCard,
|
|
4215
|
+
Po as WidgetForm,
|
|
4213
4216
|
R as WidgetIcon,
|
|
4214
|
-
|
|
4215
|
-
|
|
4217
|
+
Ro as WidgetImage,
|
|
4218
|
+
Ao as WidgetList,
|
|
4216
4219
|
Yt as WidgetMultiButton,
|
|
4217
4220
|
jr as WidgetNotificationSystem,
|
|
4218
|
-
|
|
4221
|
+
ko as WidgetSection,
|
|
4219
4222
|
_e as WidgetSpinner,
|
|
4220
|
-
|
|
4221
|
-
|
|
4223
|
+
No as WidgetTable,
|
|
4224
|
+
Ga as actionService,
|
|
4222
4225
|
x as authService,
|
|
4223
4226
|
Se as billingService,
|
|
4224
4227
|
ke as clickOutside,
|
|
4225
4228
|
Gr as clientService,
|
|
4226
4229
|
Ge as communicationService,
|
|
4227
|
-
|
|
4230
|
+
Ko as configurationService,
|
|
4228
4231
|
K as dataService,
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4232
|
+
xo as debounce,
|
|
4233
|
+
Qo as default,
|
|
4234
|
+
Jo as documentsService,
|
|
4235
|
+
Xo as equipmentService,
|
|
4233
4236
|
ss as fileService,
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
+
go as historyService,
|
|
4238
|
+
To as internationalizationService,
|
|
4239
|
+
Wo as invitationService,
|
|
4237
4240
|
_n as metadataService,
|
|
4238
|
-
|
|
4239
|
-
|
|
4241
|
+
bo as newImport,
|
|
4242
|
+
Do as openService,
|
|
4240
4243
|
He as parseError,
|
|
4241
|
-
|
|
4244
|
+
Eo as prettifyValueByMetadata,
|
|
4242
4245
|
lt as processWizardService,
|
|
4243
4246
|
mt as requestHandler,
|
|
4244
4247
|
gn as ruleValidationService,
|
|
4245
|
-
|
|
4248
|
+
Co as setupSocket,
|
|
4246
4249
|
Ie as t,
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4250
|
+
_o as testTypes,
|
|
4251
|
+
jo as useCommunication,
|
|
4252
|
+
zo as useCustomerState,
|
|
4253
|
+
Bo as useFormAction,
|
|
4254
|
+
qo as useFormLabel,
|
|
4255
|
+
Uo as useFormMetadata,
|
|
4256
|
+
Ho as useFormRequest,
|
|
4257
|
+
Go as useFormRequestData,
|
|
4258
|
+
mo as useListConfig,
|
|
4259
|
+
vo as useListFilter,
|
|
4257
4260
|
ui as useListOrder,
|
|
4258
4261
|
ci as useListProvide,
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
+
oi as useListRead,
|
|
4263
|
+
yo as useListSearch,
|
|
4264
|
+
wo as useListSelect,
|
|
4262
4265
|
li as useListState,
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4266
|
+
uo as useManagerState,
|
|
4267
|
+
So as useSocket,
|
|
4268
|
+
ho as useTableRequest,
|
|
4269
|
+
fo as useTableState,
|
|
4270
|
+
Yo as useWizard,
|
|
4271
|
+
Zo as utils,
|
|
4272
|
+
Lo as viewService
|
|
4270
4273
|
};
|
|
4271
4274
|
//# sourceMappingURL=eservices-core.es.js.map
|