eservices-core 1.3.332 → 1.3.333
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,13 +1,13 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('*{--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}.justify-content-center{justify-content:center}.user-select-none{-webkit-user-select:none;user-select:none}.flex{display:flex}.flex_column,.flex-column{display:flex;flex-direction:column}.flex_center{display:flex;align-items:center;justify-content:center}.flex_full,.flex_grow,.flex-grow{flex-grow:1}.flex-align_center{align-items:center}.grid{display:grid}.grid-center{display:grid;place-content:center}.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_center,.text-center{text-align:center}.text_bold,.text-bold{font-weight:600}.text_nowrap{white-space:nowrap}.text_right{text-align:right}.text_size_sm{font-size:12px;line-height:130%}.text_size_md{font-size:14px;line-height:140%}.text_error{color:red}.text_overflow{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.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-light{color:var(--color-light)}.color-primary{color:var(--color-primary)}.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}.transition-fast{transition:.1s}.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_15{gap:15px}.gap_20{gap:20px}.gap-25{gap:25px}.margin-0,.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}.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,.widget-table-cell_money{text-align:end}.widget-list-cell-history{cursor:pointer}.widget-list-cell-history>span{color:var(--color-primary);font-size:16px;padding:0 10px}.widget-table-cell_multi-select>.container-input-wrap{align-items:center}.overflow_auto,.overflow-auto{overflow:auto}.overflow_hidden,.overflow-hidden{overflow:hidden}.padding_5{padding:5px}.padding_10{padding:10px}.padding_0{padding:0}.padding_15{padding:15px}.padding_20{padding:20px}.padding-5{padding:5px}.padding-0{padding:0}.padding-15{padding:15px}.padding-20{padding:20px}.radius_5{border-radius:5px}.radius_10{border-radius:10px}.radius_15{border-radius:15px}.radius_20{border-radius:20px}.es-card-list{box-shadow:#959da533 0 8px 24px;border:1px solid #f1f1f1;border-radius:4px;background-color:#fff}.color-gray{color:#ccc}.es-container-full{height:100%;width:100%}.es-cursor-pointer{cursor:pointer}.es-cursor-default{cursor:default}.flex,.es-flex{display:flex}.es-flex-column{display:flex;flex-direction:column}.es-flex-center{display:flex;align-items:center;justify-content:center}.es-flex-grow{flex-grow:1}.es-flex-justify-center{justify-content:center}.es-flex-justify-between{justify-content:space-between}.es-flex-align-center{align-items:center}.es-gap-1{gap:1px}.es-gap-2{gap:2px}.es-gap-3{gap:3px}.es-gap-4{gap:4px}.es-gap-5{gap:5px}.es-gap-6{gap:6px}.es-gap-7{gap:7px}.es-gap-8{gap:8px}.es-gap-9{gap:9px}.es-gap-10{gap:10px}.es-gap-15{gap:15px}.es-gap-20{gap:20px}.gap-10{gap:10px}.gap-15{gap:15px}.gap-5{gap:5px}.gap-20{gap:20px}.es-list-container,.es-overflow-auto{overflow:auto}.es-overflow-hidden{overflow:hidden}.es-padding-2{padding:2px}.es-padding-3{padding:3px}.es-padding-4{padding:4px}.es-padding-5{padding:5px}.es-padding-10{padding:10px}.es-padding-0{padding:0}.es-padding-7{padding:7px}.es-padding-15{padding:15px}.es-padding-20{padding:20px}.es-padding-v-5{padding:5px 0}.es-padding-h-5{padding:0 5px}.es-padding-is-5{padding-inline-start:5px}.es-padding-ie-5{padding-inline-end:5px}.padding-bottom-10{padding-bottom:10px}.padding-10{padding:10px}.es-position-relative{position:relative}.es-position-absolute{position:absolute}.es-position-absolute-full{position:absolute;left:0;top:0;width:100%;height:100%}.es-position-absolute-center{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto}.es-radius-2{border-radius:2px}.es-radius-3{border-radius:3px}.es-radius-4{border-radius:4px}.es-radius-5{border-radius:5px}.es-radius-6{border-radius:6px}.es-radius-7{border-radius:7px}.es-radius-8{border-radius:8px}.es-radius-9{border-radius:9px}.es-radius-10{border-radius:10px}.es-radius-15{border-radius:15px}.es-radius-20{border-radius:20px}.es-text-xs{font-weight:400;font-size:10px;line-height:13px}.es-text-sm{font-weight:400;font-size:12px;line-height:16px}.es-text-md{font-size:14px;line-height:20px}.es-text-lg{font-size:16px;line-height:24px}.es-text-xl{font-size:18px;line-height:25px}.es-text-center{text-align:center}.es-text-bold{font-weight:700}.es-text-no-wrap{text-wrap:nowrap}.es-weight-600{font-weight:600}.es-zindex-0{z-index:0}.es-zindex-1{z-index:1}.es-zindex-2{z-index:2}.es-zindex-3{z-index:3}.es-zindex-4{z-index:4}.es-zindex-5{z-index:5}.es-grid{display:grid}.es-grid-center{display:grid;place-content:center}.es-margin-0{margin:0}.widget-table__head-cell[data-v-aa18d6fa]{padding:18px;text-align:start}.widget-table__head-label[data-v-aa18d6fa]{font-weight:600;font-size:14px;line-height:19px}.widget-filter-text[data-v-f6da3bed]{padding:20px 10px}.widget-filter-enum[data-v-4c82f6e7]{padding:3px 0;max-height:400px;max-width:340px;min-width:180px;overflow:hidden auto}.widget-filter-enum-item[data-v-4c82f6e7]{padding:6px 11px;transition:.1s;cursor:pointer}.widget-filter-enum-item[data-v-4c82f6e7]:hover{background-color:#f1f1f1}.widget-filter-number[data-v-f9cd559e]{padding:4px 6px}[dir=rtl] .icon[data-v-8a72b45f]{transform:scaleX(-1)}.widget-spinner[data-v-0ef9ae88],.widget-spinner[data-v-0ef9ae88]:after{border-radius:50%;width:14px;height:14px}.widget-spinner[data-v-0ef9ae88]{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;transform:translateZ(0);animation:spinnerAnimation-0ef9ae88 1.1s infinite linear}@keyframes spinnerAnimation-0ef9ae88{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.widget-button[data-v-450dc564]{position:relative}.widget-button-spinner[data-v-450dc564]{position:absolute;top:0;bottom:0;left:5px;margin:auto}.widget-multi-button-wrap[data-v-d43a76ce]{--button-size: 40px;max-height:var(--button-size);z-index:1;width:fit-content}.widget-multi-button[data-v-d43a76ce]{grid-template-columns:1fr var(--button-size);background-color:var(--primary);grid-template-rows:var(--button-size);transition:var(--fast)}.widget-multi-button_active[data-v-d43a76ce]{grid-template-rows:calc(var(--button-size) * var(--04895bf1))}.widget-multi-button-body[data-v-d43a76ce]{min-width:80px}.widget-multi-button-body-label[data-v-d43a76ce]{padding:10px 10px 10px 20px;color:#fff;transition:background-color var(--fast)}.widget-multi-button-body-label[data-v-d43a76ce]:hover{background-color:#223296}.widget-multi-button-side[data-v-d43a76ce]{height:var(--button-size);transition:transform var(--fast),background-color var(--fast);color:#fff}.widget-multi-button-side_active[data-v-d43a76ce]{transform:rotate(180deg)}.widget-multi-button-side[data-v-d43a76ce]:hover{background-color:#223296}tr[data-v-344a8cc1]{border:1px solid #F3F4FC;height:30px}th[data-v-344a8cc1],td[data-v-344a8cc1]{position:relative;padding:0 11px}th[data-v-344a8cc1]{text-align:left}p[data-v-344a8cc1]{margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.widget-list-head-cell[data-v-bf495d6a]{padding:0 0 0 10px;display:flex}.widget-list-head-cell[data-v-bf495d6a]:hover{box-shadow:0 -1px #e7f2ff}.list-head-cell-label[data-v-bf495d6a]{padding:5px 0;white-space:nowrap;cursor:pointer}.head-cell-order[data-v-bf495d6a]{position:absolute;inset-inline-end:22px;inset-block:0 0;margin:auto;font-size:14px;height:14px}.head-cell-order_down[data-v-bf495d6a]{transform:rotate(180deg)}.head-cell-resize[data-v-bf495d6a]{padding:3px 10px;cursor:col-resize;transition:background-color .1s}.head-cell-resize[data-v-bf495d6a]:hover{background-color:#f5f5f5}.head-cell-resize[data-v-bf495d6a]:after{content:"";margin:auto;width:1px;height:100%;display:block;background-color:#d2d2d2}.widget-list-head[data-v-ccffc6bd]{position:sticky;top:-1px;z-index:1}.test-block[data-v-ccffc6bd]{position:absolute;z-index:2;display:none;height:calc(100% + 1px);place-content:center;inset-block-start:-1px;padding-inline:10px;background-color:#e7f2ff;-webkit-user-select:none;user-select:none;white-space:nowrap}.widget-list-head th[data-v-ccffc6bd]{position:sticky;top:0;z-index:2;-webkit-user-select:none;user-select:none}.widget-head-cell[data-v-d131e64e]{display:flex;gap:4px}.widget-head-cell-order[data-v-d131e64e]{display:flex;flex-direction:column;justify-content:center;gap:2px}.widget-head-cell-label[data-v-d131e64e]{cursor:pointer}.widget-fast-table-head-cell-td[data-v-d131e64e]{padding:7px}.widget-head-cell-order-icon[data-v-d131e64e]{transition:.1s;height:18px;width:18px}.widget-head-cell-order-icon_desc[data-v-d131e64e]{transform:rotate(180deg)}.widget-filter-item-container[data-v-43ed0322]{position:relative}.widget-filter-item-arrow[data-v-43ed0322]{transform:rotate(180deg)}.widget-filter-item-label_active[data-v-43ed0322]{font-weight:700}.widget-filter-item[data-v-43ed0322]{display:grid;grid-template-columns:max-content max-content;align-items:center;cursor:pointer;padding:0 10px;color:#fff}.widget-filter-item[data-v-43ed0322]:not(.widget-filter-item_active){opacity:.6}.widget-filter-item-label[data-v-43ed0322]{-webkit-user-select:none;user-select:none;padding:4px 2px 4px 8px}.widget-filter-item-popup[data-v-43ed0322]{position:absolute;z-index:2;inset-block-start:100%;inset-inline-end:0;box-shadow:0 2px 2px #00000040;background-color:#fff}.widget-filter-item-arrow[data-v-43ed0322]{transition:.2s}.widget-table-search[data-v-b712f344]{gap:5px;padding:0 10px 0 12px}.widget-table-search-icon[data-v-b712f344]{align-self:center}.widget-table-search-input[data-v-b712f344]{outline:none;background-color:transparent;border:0;padding:6px 5px;font-size:16px}.widget-table-panel-filter[data-v-8f09ec8d]{justify-content:space-between;background-color:var(--color-primary)}.widget-fast-table[data-v-49a850f8]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:max-content minmax(0,1fr);gap:15px}.widget-fast-table-body[data-v-49a850f8]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:max-content minmax(0,1fr)}.widget-fast-table-head[data-v-49a850f8]{display:grid;gap:15px}.main-table[data-v-49a850f8]{overflow:auto}.version-item[data-v-66cf2326]{display:grid;gap:2px 10px;grid-template-rows:max-content;grid-template-columns:min-content minmax(100px,200px) 1fr 1fr}.version-item-date[data-v-66cf2326]{white-space:nowrap}.line-clamp_5[data-v-66cf2326]{text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.history-header[data-v-cc723f37]{align-items:center;position:sticky;top:0;background-color:#fff;grid-template-rows:max-content;grid-template-columns:20px 210px 1fr 1fr}.container-history[data-v-cc723f37]{display:flex;flex-direction:column-reverse;overflow:auto}.wrap-modal-version-history[data-v-cc723f37]{min-height:380px}@media screen and (min-width: 756px){.wrap-modal-version-history[data-v-cc723f37]{min-width:800px;max-width:1000px}}.wrap-history[data-v-cc723f37]{height:100%;overflow:auto}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('*{--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}.justify-content-center{justify-content:center}.user-select-none{-webkit-user-select:none;user-select:none}.flex{display:flex}.flex_column,.flex-column{display:flex;flex-direction:column}.flex_center{display:flex;align-items:center;justify-content:center}.flex_full,.flex_grow,.flex-grow{flex-grow:1}.flex-align_center{align-items:center}.grid{display:grid}.grid-center{display:grid;place-content:center}.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_center,.text-center{text-align:center}.text_bold,.text-bold{font-weight:600}.text_nowrap{white-space:nowrap}.text_right{text-align:right}.text_size_sm{font-size:12px;line-height:130%}.text_size_md{font-size:14px;line-height:140%}.text_error{color:red}.text_overflow{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.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-light{color:var(--color-light)}.color-primary{color:var(--color-primary)}.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}.transition-fast{transition:.1s}.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_15{gap:15px}.gap_20{gap:20px}.gap-25{gap:25px}.margin-0,.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}.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,.widget-table-cell_money{text-align:end}.widget-list-cell-history{cursor:pointer}.widget-list-cell-history>span{color:var(--color-primary);font-size:16px;padding:0 10px}.widget-table-cell_multi-select>.container-input-wrap{align-items:center}.overflow_auto,.overflow-auto{overflow:auto}.overflow_hidden,.overflow-hidden{overflow:hidden}.padding_5{padding:5px}.padding_10{padding:10px}.padding_0{padding:0}.padding_15{padding:15px}.padding_20{padding:20px}.padding-5{padding:5px}.padding-0{padding:0}.padding-15{padding:15px}.padding-20{padding:20px}.radius_5{border-radius:5px}.radius_10{border-radius:10px}.radius_15{border-radius:15px}.radius_20{border-radius:20px}.es-card-list{box-shadow:#959da533 0 8px 24px;border:1px solid #f1f1f1;border-radius:4px;background-color:#fff}.color-gray{color:#ccc}.es-container-full{height:100%;width:100%}.es-cursor-pointer{cursor:pointer}.es-cursor-default{cursor:default}.flex,.es-flex{display:flex}.es-flex-column{display:flex;flex-direction:column}.es-flex-center{display:flex;align-items:center;justify-content:center}.es-flex-grow{flex-grow:1}.es-flex-justify-center{justify-content:center}.es-flex-justify-between{justify-content:space-between}.es-flex-align-center{align-items:center}.es-gap-1{gap:1px}.es-gap-2{gap:2px}.es-gap-3{gap:3px}.es-gap-4{gap:4px}.es-gap-5{gap:5px}.es-gap-6{gap:6px}.es-gap-7{gap:7px}.es-gap-8{gap:8px}.es-gap-9{gap:9px}.es-gap-10{gap:10px}.es-gap-15{gap:15px}.es-gap-20{gap:20px}.gap-10{gap:10px}.gap-15{gap:15px}.gap-5{gap:5px}.gap-20{gap:20px}.es-list-container,.es-overflow-auto{overflow:auto}.es-overflow-hidden{overflow:hidden}.es-padding-2{padding:2px}.es-padding-3{padding:3px}.es-padding-4{padding:4px}.es-padding-5{padding:5px}.es-padding-10{padding:10px}.es-padding-0{padding:0}.es-padding-7{padding:7px}.es-padding-15{padding:15px}.es-padding-20{padding:20px}.es-padding-v-5{padding:5px 0}.es-padding-h-5{padding:0 5px}.es-padding-is-5{padding-inline-start:5px}.es-padding-ie-5{padding-inline-end:5px}.padding-bottom-10{padding-bottom:10px}.padding-10{padding:10px}.es-position-relative{position:relative}.es-position-absolute{position:absolute}.es-position-absolute-full{position:absolute;left:0;top:0;width:100%;height:100%}.es-position-absolute-center{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto}.es-radius-2{border-radius:2px}.es-radius-3{border-radius:3px}.es-radius-4{border-radius:4px}.es-radius-5{border-radius:5px}.es-radius-6{border-radius:6px}.es-radius-7{border-radius:7px}.es-radius-8{border-radius:8px}.es-radius-9{border-radius:9px}.es-radius-10{border-radius:10px}.es-radius-15{border-radius:15px}.es-radius-20{border-radius:20px}.es-text-xs{font-weight:400;font-size:10px;line-height:13px}.es-text-sm{font-weight:400;font-size:12px;line-height:16px}.es-text-md{font-size:14px;line-height:20px}.es-text-lg{font-size:16px;line-height:24px}.es-text-xl{font-size:18px;line-height:25px}.es-text-center{text-align:center}.es-text-bold{font-weight:700}.es-text-no-wrap{text-wrap:nowrap}.es-weight-600{font-weight:600}.es-zindex-0{z-index:0}.es-zindex-1{z-index:1}.es-zindex-2{z-index:2}.es-zindex-3{z-index:3}.es-zindex-4{z-index:4}.es-zindex-5{z-index:5}.es-grid{display:grid}.es-grid-center{display:grid;place-content:center}.es-margin-0{margin:0}.widget-table__head-cell[data-v-aa18d6fa]{padding:18px;text-align:start}.widget-table__head-label[data-v-aa18d6fa]{font-weight:600;font-size:14px;line-height:19px}.widget-filter-text[data-v-f6da3bed]{padding:20px 10px}.widget-filter-enum[data-v-4c82f6e7]{padding:3px 0;max-height:400px;max-width:340px;min-width:180px;overflow:hidden auto}.widget-filter-enum-item[data-v-4c82f6e7]{padding:6px 11px;transition:.1s;cursor:pointer}.widget-filter-enum-item[data-v-4c82f6e7]:hover{background-color:#f1f1f1}.widget-filter-number[data-v-f9cd559e]{padding:4px 6px}[dir=rtl] .icon[data-v-8a72b45f]{transform:scaleX(-1)}.widget-spinner[data-v-0ef9ae88],.widget-spinner[data-v-0ef9ae88]:after{border-radius:50%;width:14px;height:14px}.widget-spinner[data-v-0ef9ae88]{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;transform:translateZ(0);animation:spinnerAnimation-0ef9ae88 1.1s infinite linear}@keyframes spinnerAnimation-0ef9ae88{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.widget-button[data-v-450dc564]{position:relative}.widget-button-spinner[data-v-450dc564]{position:absolute;top:0;bottom:0;left:5px;margin:auto}.widget-multi-button-wrap[data-v-d43a76ce]{--button-size: 40px;max-height:var(--button-size);z-index:1;width:fit-content}.widget-multi-button[data-v-d43a76ce]{grid-template-columns:1fr var(--button-size);background-color:var(--primary);grid-template-rows:var(--button-size);transition:var(--fast)}.widget-multi-button_active[data-v-d43a76ce]{grid-template-rows:calc(var(--button-size) * var(--04895bf1))}.widget-multi-button-body[data-v-d43a76ce]{min-width:80px}.widget-multi-button-body-label[data-v-d43a76ce]{padding:10px 10px 10px 20px;color:#fff;transition:background-color var(--fast)}.widget-multi-button-body-label[data-v-d43a76ce]:hover{background-color:#223296}.widget-multi-button-side[data-v-d43a76ce]{height:var(--button-size);transition:transform var(--fast),background-color var(--fast);color:#fff}.widget-multi-button-side_active[data-v-d43a76ce]{transform:rotate(180deg)}.widget-multi-button-side[data-v-d43a76ce]:hover{background-color:#223296}tr[data-v-344a8cc1]{border:1px solid #F3F4FC;height:30px}th[data-v-344a8cc1],td[data-v-344a8cc1]{position:relative;padding:0 11px}th[data-v-344a8cc1]{text-align:left}p[data-v-344a8cc1]{margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.widget-list-head-cell[data-v-bf495d6a]{padding:0 0 0 10px;display:flex}.widget-list-head-cell[data-v-bf495d6a]:hover{box-shadow:0 -1px #e7f2ff}.list-head-cell-label[data-v-bf495d6a]{padding:5px 0;white-space:nowrap;cursor:pointer}.head-cell-order[data-v-bf495d6a]{position:absolute;inset-inline-end:22px;inset-block:0 0;margin:auto;font-size:14px;height:14px}.head-cell-order_down[data-v-bf495d6a]{transform:rotate(180deg)}.head-cell-resize[data-v-bf495d6a]{padding:3px 10px;cursor:col-resize;transition:background-color .1s}.head-cell-resize[data-v-bf495d6a]:hover{background-color:#f5f5f5}.head-cell-resize[data-v-bf495d6a]:after{content:"";margin:auto;width:1px;height:100%;display:block;background-color:#d2d2d2}.widget-list-head[data-v-ccffc6bd]{position:sticky;top:-1px;z-index:1}.test-block[data-v-ccffc6bd]{position:absolute;z-index:2;display:none;height:calc(100% + 1px);place-content:center;inset-block-start:-1px;padding-inline:10px;background-color:#e7f2ff;-webkit-user-select:none;user-select:none;white-space:nowrap}.widget-list-head th[data-v-ccffc6bd]{position:sticky;top:0;z-index:2;-webkit-user-select:none;user-select:none}.widget-head-cell[data-v-d131e64e]{display:flex;gap:4px}.widget-head-cell-order[data-v-d131e64e]{display:flex;flex-direction:column;justify-content:center;gap:2px}.widget-head-cell-label[data-v-d131e64e]{cursor:pointer}.widget-fast-table-head-cell-td[data-v-d131e64e]{padding:7px}.widget-head-cell-order-icon[data-v-d131e64e]{transition:.1s;height:18px;width:18px}.widget-head-cell-order-icon_desc[data-v-d131e64e]{transform:rotate(180deg)}.widget-filter-item-container[data-v-43ed0322]{position:relative}.widget-filter-item-arrow[data-v-43ed0322]{transform:rotate(180deg)}.widget-filter-item-label_active[data-v-43ed0322]{font-weight:700}.widget-filter-item[data-v-43ed0322]{display:grid;grid-template-columns:max-content max-content;align-items:center;cursor:pointer;padding:0 10px;color:#fff}.widget-filter-item[data-v-43ed0322]:not(.widget-filter-item_active){opacity:.6}.widget-filter-item-label[data-v-43ed0322]{-webkit-user-select:none;user-select:none;padding:4px 2px 4px 8px}.widget-filter-item-popup[data-v-43ed0322]{position:absolute;z-index:2;inset-block-start:100%;inset-inline-end:0;box-shadow:0 2px 2px #00000040;background-color:#fff}.widget-filter-item-arrow[data-v-43ed0322]{transition:.2s}.widget-table-search[data-v-b712f344]{gap:5px;padding:0 10px 0 12px}.widget-table-search-icon[data-v-b712f344]{align-self:center}.widget-table-search-input[data-v-b712f344]{outline:none;background-color:transparent;border:0;padding:6px 5px;font-size:16px}.widget-table-panel-filter[data-v-8f09ec8d]{justify-content:space-between;background-color:var(--color-primary)}.widget-fast-table[data-v-8cd0abbf]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:max-content minmax(0,1fr);gap:15px}.widget-fast-table-body[data-v-8cd0abbf]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:max-content minmax(0,1fr)}.widget-fast-table-head[data-v-8cd0abbf]{display:grid;gap:15px}.main-table[data-v-8cd0abbf]{overflow:auto}.version-item[data-v-66cf2326]{display:grid;gap:2px 10px;grid-template-rows:max-content;grid-template-columns:min-content minmax(100px,200px) 1fr 1fr}.version-item-date[data-v-66cf2326]{white-space:nowrap}.line-clamp_5[data-v-66cf2326]{text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.history-header[data-v-cc723f37]{align-items:center;position:sticky;top:0;background-color:#fff;grid-template-rows:max-content;grid-template-columns:20px 210px 1fr 1fr}.container-history[data-v-cc723f37]{display:flex;flex-direction:column-reverse;overflow:auto}.wrap-modal-version-history[data-v-cc723f37]{min-height:380px}@media screen and (min-width: 756px){.wrap-modal-version-history[data-v-cc723f37]{min-width:800px;max-width:1000px}}.wrap-history[data-v-cc723f37]{height:100%;overflow:auto}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
"use strict";var yt=e=>{throw TypeError(e)};var vt=(e,t,n)=>t.has(e)||yt("Cannot "+n);var Ie=(e,t,n)=>(vt(e,t,"read from private field"),n?n.call(e):t.get(e)),Ne=(e,t,n)=>t.has(e)?yt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ue=(e,t,n,o)=>(vt(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);/*!
|
|
3
|
-
* eservices-core v1.3.
|
|
3
|
+
* eservices-core v1.3.333
|
|
4
4
|
* (c) 2025 ESERVICES
|
|
5
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),O=require("jenesius-vue-form"),se=require("vue-router"),In=require("date-and-time"),De=require("debug"),
|
|
6
|
-
Please try again later or submit a feedback if problem doesn't go.`)}static AuthServiceError(t,n){return!t&&!n?F.ApiNotAvailable():new F(t||"Authorization Error",n)}static ApiResponseParseFailed(){return F.ApiNotAvailable()}static MissingIdInValuesEntity(t){return new F("Object doesn't have id",t)}static ObjectWithIdNotFound(t,n){return new F(`Can't find object with id: ${t}`,n)}static ObjectWithoutConnectToPresentArray(t,n){return new F("Object is not found.",{object:t,array:n})}static EntityWithoutId(t){return new F("Entity doesn't have id.",t)}static NotFoundedTableIndex(t,n){return new F(`Can't find the element with tableIndex ${t}`,n)}static UndefinedError(t,n=[]){return new F(t,n)}static TableArrayAlreadyIncludeProvidedIndexValue(t,n,o){return new F(`Array already includes the element with value ${t}`,{array:n,table:o})}static MetadataEntityIsNotAvailable(t){return new F(`Metadata for the ${t} is not currently available.`)}static RequestTookToLong(){return new F("The request took too long to complete. Try again later.")}};F.ID=0;let re=F;const Nn="Please try again later or submit a feedback if problem doesn't go.";function Rn(e){return e.text().then(t=>{try{return JSON.parse(t)}catch{return Nn}})}function fe(e,t={}){return t.redirect="manual",fetch(e,t).then(n=>n.type==="opaqueredirect"?void window.location.replace("/auth"):n).catch(()=>{throw re.ApiNotAvailable()}).then(n=>Rn(n).then(o=>{if(!n.ok)throw o;return o}))}class On{constructor(){this.public=!1,this.errors=new Proxy([],{set:(t,n,o)=>(n!=="length"&&this.public&&console.log(`Journal [Error] ${JSON.stringify(o)}`),t[n]=o,!0)}),window._journal=this}get error(){return{add:(...t)=>{this.errors.push(t)},clean:()=>{this.errors.splice(0,this.errors.length)},console:()=>{console.log(this.errors)}}}welcome(){console.log("The journal has been initialized. To get access check %c_journal in console.","background: blue; color: white")}}new On;class Ln{static invite(t,n,o){return fe("/close-api/accounts/invitePerson",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationId:t,personKey:n,relatedRoleCode:o})})}static accept(t,n){return fe("/close-api/accounts/markInvite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({invitationId:t,version:n,mark:!0})})}static decline(t,n){return fe("/close-api/accounts/markInvite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({invitationId:t,version:n,mark:!1})})}}class Fn{static getRequiredDocuments(t,n,o){const i=new URLSearchParams({entity:t,primaryKey:n,statusCode:o});return fetch(`/close-api/views/required-documents?${i.toString()}`).then(a=>a.json())}}class de{static url(){return"close-api/billing"}static getBillingMetadata(t){return fetch(`/${de.url()}/calculator/${t}`)}static calculate(t,n){return fe(`/${de.url()}/calculator`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({entity:t,values:n})}).then(o=>{if(o&&o.status===1)return o;throw Array.isArray(o.notes)?new Error(o.notes[0]):re.ApiNotAvailable()})}static parseMetadataField(t){function n(o){switch(o.type){case"ValueType":switch(o.dataType){case"Integer":return"number";default:return o.dataType}case"EntityReference":return o.dataType}}return{name:t.name,label:t.title,required:t.required,type:n(t)}}static createOnlinePayment(t,n){return fe(`/${de.url()}/online-payment`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paymentId:t,returnURL:n})})}static applyOnlinePayment(t){return fe(`/${de.url()}/online-payment`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({response:t})})}}const xn={class:"widget-table__head-cell"},Bn={key:1,class:"widget-table__head-label margin_0 text_overflow"},Lt=r.defineComponent({__name:"widget-table-head-cell",props:{label:{},type:{}},emits:["select"],setup(e,{emit:t}){const n=t;function o(){n("select")}return(i,a)=>(r.openBlock(),r.createElementBlock("th",xn,[i.type==="multi-select"?(r.openBlock(),r.createBlock(r.unref(O.FormField),{key:0,onClick:o})):(r.openBlock(),r.createElementBlock("span",Bn,r.toDisplayString(i.label),1))]))}}),Vn={class:"widget-table__head"},$n=r.defineComponent({__name:"widget-table-head",props:{config:{}},setup(e){return r.computed(()=>Lt),(t,n)=>(r.openBlock(),r.createElementBlock("tr",Vn,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.config,o=>r.renderSlot(t.$slots,"default",r.mergeProps({ref_for:!0},o),void 0,!0)),256))]))}}),M=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Dn=M($n,[["__scopeId","data-v-aa18d6fa"]]);function Qe(e){return Array.isArray(e)?Qe(e[0]):typeof e!="string"?null:e}function ne(e){return Qe(e.name)}function Pn(e){const t=new RegExp(/\$\{([a-zA-Z0-9_.]+)}/,"g"),n=[];let o;for(;(o=t.exec(e))!==null;)n.push(o[1]);return n}function Mn(e,t){return Pn(e).forEach(o=>{e=e.replace(new RegExp("\\$\\{"+o+"}","g"),O.utils.getPropFromObject(t,o))}),e}function qe(e){return t=>typeof t=="string"||typeof t=="number"?`${t} ${e}`:""}function ke(e,t){const n=ne(e);if(typeof e.value=="string")return Mn(e.value,t);let o=n?O.utils.getPropFromObject(t,n):null;if(o===void 0&&(o=null),typeof e.value=="function")return e.value(o,t);if(e.value===null)return null;switch(e.unitValue&&(o=qe(e.unitValue)(o)),e.unit&&(o=qe(e.unit)(o)),e.type){case"number":{typeof o=="number"&&(o=new Intl.NumberFormat().format(o));break}case"date":{o=Be(typeof o=="string"?o:null);break}case"TimeSpan":{const i=o==null?void 0:o.match(/((\d)+.)?(\d+:\d+:\d+)/);i&&(o=`${i[2]||0} D ${i[3]}`);break}case"dateTime":case"dateWithTime":{o=rt(typeof o=="string"?o:null);break}case"money":{o=Gt(o);break}case"DateTime":{o=Be(typeof o=="string"?o:null,e.format||I.dateTimeFormat);break}}return e.formatter&&(o=he(e.formatter).exec(o,t)),typeof o=="boolean"&&(o=o?"✓":"—"),o}const jn=1,Un=5e3,Wn="static-folder",Ft="request-error",xt="EntityTypeName",Hn="REFERENCE_CHANGES",T={LIST_ACTIVE_NEW:-1,DEFAULT_ERROR_MESSAGE:"Please try again later or submit a feedback if problem doesn't go.",LOCALSTORAGE_CURRENT_CONTEXT_KEY:"CurrentContext",LOCALSTORAGE_LANGUAGE_KEY:"CurrentLanguage",DELAY_SOCKET_RECONNECT:1e3,PROVIDE_NAME_METADATA:"provide-metadata-config",PROVIDE_NAME_USAGE_CONTEXT:"provide-usage-context-config",PROVIDE_NAME_ACTIONS:"provide-actions",PROVIDE_ENTITY_NAME:"provide-entity-name",MODAL_VALIDATION_EFFECT:"validation-effect",MODAL_CONFIRM:"confirm",MODAL_LIST_DOWNLOAD:"list-download",MODAL_LIST_SETTINGS:"list-settings",MODAL_SIMPLE_TOOL_PARAMETERS:"SimpleToolParameters",MODAL_BATCH_VALUES:"batch-values",MODAL_ENTITY:"form-entity",MODAL_HISTORY:"entity-history",TIME_TO_LIVE_SOCKET_REQUEST:45e3,CORE_DEBUG_LABEL:"eservices-core",VISIBLE_ITEM_PROVIDE_NAME:"visible-item-provider",EVENT_FORM_UPDATE:"form-update",EVENT_AFFECTED_ENTITY:"affected-entity",DEFAULT_ORDER_DIR:"asc",TABLE_MOCK_FIELD:"_A_MOCK_ID_FIELD",OBJECT_TYPE_NAME_FIELD:xt,FIELD_NAME_REFERENCE_CHANGES:Hn,PATH_RESOLVER_ENTITY:"resolver",TOOL_PRINT_NAME:"Print"};function Pe(e){return[T.CORE_DEBUG_LABEL,e].join(":")}const qn={class:"widget-filter-text flex-column gap_10"},Gn={class:"flex gap_20"},zn=r.defineComponent({__name:"widget-filter-text",props:{values:{}},emits:["update:values","clear"],setup(e,{emit:t}){const n=e,o=t,i=new O.Form({parent:!1}),a={begin:"Begin with",end:"End with",include:"Contains"};function l(u="",f="include"){return{text:u,option:f}}r.onMounted(()=>{const u=n.values?typeof n.values=="string"?l(n.values):n.values:l();i.setValues(u)});function c(){o("update:values",i.values)}function s(){o("clear")}return r.watch(()=>n.values,u=>i.setValues(u||l()),{immediate:!0}),(u,f)=>{const d=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",qn,[r.createElementVNode("div",Gn,[r.createVNode(r.unref(O.FormField),{name:"text",type:"text",label:"Search"})]),r.createVNode(r.unref(O.FormField),{name:"option",type:"radio",options:a}),r.createElementVNode("div",null,[r.createVNode(d,{onClick:c,type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(G)("Apply")),1)]),_:1}),r.createVNode(d,{onClick:s},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(G)("Clear")),1)]),_:1})])])}}}),Kn=M(zn,[["__scopeId","data-v-f6da3bed"]]),Yn={class:"widget-filter-enum"},Xn={class:"flex gap-10 padding-10"},Jn=r.defineComponent({__name:"widget-filter-entity",props:{baseEntity:{},filters:{},values:{},filterMetadata:{}},emits:["update:values","readProcess"],setup(e,{emit:t}){const n=e,o=r.ref([]),i=Se(n.filterMetadata.entity),a=f=>(n.values||[]).includes(f),l=t;function c(f){const d=n.values||[];return d.includes(f)?l("update:values",d.filter(b=>b!==f)):l("update:values",[...d,f])}const s=oe(async()=>{o.value=await le(n.baseEntity,{fields:n.filterMetadata.name.join(" "),order:[n.filterMetadata.name[1],"asc"],distinct:!0,filter:R(n.filters)}).then(f=>f.map(d=>({label:d[n.filterMetadata.name[1]],value:d[n.filterMetadata.name[0]]})))});function u(){l("update:values",[])}return r.watch(()=>s.loading,f=>{l("readProcess",f?"start":"end")},{immediate:!0}),r.watch(()=>i.value,()=>{s.loading||s.call()},{immediate:!0}),(f,d)=>{const b=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",Yn,[r.createElementVNode("div",Xn,[r.createVNode(b,{label:"Reload filter",loading:r.unref(s).loading||!1,icon:"reload",onClick:d[0]||(d[0]=()=>r.unref(s).call())},null,8,["loading"]),r.createVNode(b,{label:"Clear",onClick:u})]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,h=>(r.openBlock(),r.createBlock(r.unref(O.FormField),{class:"widget-filter-enum-item",key:h.value,onClick:()=>c(h.value),type:"single-checkbox","model-value":a(h.value),label:h.label},null,8,["onClick","model-value","label"]))),128))])}}}),Qn=M(Jn,[["__scopeId","data-v-4c82f6e7"]]),Ee=r.reactive({});function Zn(){wt(),setInterval(wt,50)}function Bt(){return Ee}function wt(){const e={};Object.entries(localStorage).forEach(([t,n])=>{e[t]=!0,Ee[t]!==n&&(Ee[t]=n)}),Object.keys(Ee).forEach(t=>{e[t]||delete Ee[t]})}const er={class:"widget-filter-number flex-column es-gap-10"},tr={class:"flex es-gap-10"},nr={class:"flex gap-10"},rr=r.defineComponent({__name:"widget-filter-number",props:{baseEntity:{},values:{}},emits:["update:values","readProcess"],setup(e,{emit:t}){const n=e,o=t,i=new O.Form({parent:!1}),a=zt(()=>{const c=i.getValueByName("min"),s=i.getValueByName("max");return o("update:values",{min:c,max:s})},800);i.onvalue(a),r.watch(()=>n.values,()=>{n.values&&i.setValues(n.values)},{immediate:!0});function l(){i.cleanValues()}return(c,s)=>{const u=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",er,[r.createElementVNode("div",tr,[r.createVNode(r.unref(O.FormField),{name:"min",label:"More than",type:"number"}),r.createVNode(r.unref(O.FormField),{name:"max",label:"Less than",type:"number"})]),r.createElementVNode("div",nr,[r.createVNode(u,{label:"Clear",onClick:l})])])}}}),bt=M(rr,[["__scopeId","data-v-f9cd559e"]]),I={getEntityLink(e,t){return`/forms/${e}/${t}`},iconHandlerText(){return""},iconTag:"i",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",tableFilterEntityBind:{String:Kn,Entity:Qn,Decimal:bt,Integer:bt},arrayListCellHandlers:[],arrayListRowHandlers:[],arrayFieldParamsHandlers:[]};function or(e){Zn();for(let t in e)I[t]=e[t]}const ir={props:{name:String},setup(e,t){let n="unknown";try{n=t.slots.default()[0].children}catch{n=e.name}typeof n!="string"&&console.warn(`Name for Icon.vue is not string. ${n}`);try{n=n.replace(/\s+/g,"")}catch{}return()=>r.h(I.iconTag,{class:I.iconHandler?I.iconHandler(n):`icon icon-${n}`},I.iconHandlerText(n))}},ge=M(ir,[["__scopeId","data-v-8a72b45f"]]),ar=De(Pe("setup-list-row"));function sr(e,t){const n=e.config.map(o=>lr(o,e,t));return r.h("tr",{class:"widget-table__row widget-table-row"},n)}function lr(e,t,n){const o=t.values;let i=ke(e,o);const a={onClick:[],title:e.hint,class:["widget-table__cell widget-table-cell"]};function l(f){a.onClick.push(()=>f(o,e,n))}function c(f){Array.isArray(f)?a.class.push(...f):a.class.push(f)}const s=[],u=[];if(e.hide&&e.hide(o))return[r.h("td")];if(e.type)switch(c(`widget-table-cell_${e.type}`),e.type){case"multi-select":{u.push(r.h(O.FormField,{type:"single-checkbox",modelValue:t.selected})),l(Et.bind(null,n,!0));break}case"select":{u.push(r.h(O.FormField,{type:"single-radio",modelValue:t.selected})),l(Et.bind(null,n,!1));break}}if(e.onClick&&l(e.onClick),e.link)try{const f=e.link(o);if(f){const d=r.h(se.RouterLink,{to:f});u.push(d),c("widget-table-cell_link")}}catch(f){ar("Can't add router link",f)}if(e.href&&(u.push(r.h("a",{href:e.href(o),target:"_blank"})),c("widget-table-cell_link")),(typeof i=="string"||typeof i=="number")&&u.push(r.h("p",{class:"widget-list-cell-text"},i)),e.icon&&(typeof e.icon=="string"&&u.push(r.h(ge,{name:e.icon})),typeof e.icon=="function")){const f=e.icon(o);f!==null&&u.push(r.h(ge,{name:f}))}return e.class&&(typeof e.class=="function"?c(e.class(o)):c(e.class)),I.listCellHandler&&(console.log("listCellHandler is deprecated. Please use coreUtils.addListCellHandler instead."),I.listCellHandler(e,o,{cellNodeChildren:u,addClass:c,addHandleClick:l,context:n})),I.arrayListCellHandlers&&I.arrayListCellHandlers.forEach(f=>f(e,o,{cellNodeChildren:u,addClass:c,addHandleClick:l,context:n})),s.push(r.h("td",a,u)),s}function Et(e,t){e.emit("select",t)}function Ze(e,t){return()=>{try{return sr(e,t)}catch(n){return console.warn(n),null}}}const cr={props:{values:Object,config:Object,selected:Boolean},setup:Ze},ur=["colspan"],_t=r.defineComponent({__name:"widget-table-form",props:{rowLength:{},component:{},values:{},isNew:{type:Boolean}},emits:["save","close"],setup(e,{emit:t}){const n=t,o=r.ref();return r.onMounted(()=>{setTimeout(()=>{o.value&&o.value.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})},250)}),(i,a)=>(r.openBlock(),r.createElementBlock("tr",{class:"widget-table-form",ref_key:"refTableForm",ref:o},[r.createElementVNode("td",{colspan:i.rowLength},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps(i.$attrs,{values:i.values,new:i.isNew,onClose:a[0]||(a[0]=l=>n("close")),onSave:a[1]||(a[1]=l=>n("save",l))}),null,16,["values","new"]))],8,ur)],512))}}),We="update:selectedRows",dr="update:activeRow",Vt=r.defineComponent({__name:"widget-table",props:{array:{},config:{},activeRow:{default:null},selectedRows:{default:()=>[]},classCallback:{},shortcut:{type:Boolean,default:!1},rowOptionsHandler:{type:Function,default:()=>({})}},emits:["save","order"],setup(e,{emit:t}){const n=e,o=r.ref(),i=t,a=r.useSlots(),l=r.computed(()=>{var h;return(h=a==null?void 0:a.default)==null?void 0:h.call(a)[0]});function c(){const m=n.selectedRows.length!==0?[]:[...n.array];i(We,m)}function s(h,m=!0){if(!n.selectedRows)return;if(!m)return i(We,n.selectedRows.includes(h)?[]:[h]);const v=[...n.selectedRows],E=v.indexOf(h);return E===-1?v.push(h):v.splice(E,1),i(We,v)}function u(h){i(dr,h)}function f(h){i("save",h),i("update:activeRow",null)}const d=r.computed(()=>{const h=n.config.filter(m=>m.visible!==!1);return n.shortcut?h.filter(m=>m.name?!!n.array.find(v=>![null,""].includes(ke(m,v))):!0):h});r.watch(()=>n.activeRow,(h,m)=>{h===null&&typeof m=="number"&&setTimeout(()=>{if(!o.value)return;const v=o.value.querySelector(`tbody>tr:nth-child(${m+1})`)||o.value;v&&v.scrollIntoView({block:"center",behavior:"smooth"})},100)});function b(h){var v;const m={};return(v=I.arrayListRowHandlers)==null||v.forEach(E=>{try{Object.assign(m,E(h,n.rowOptionsHandler()))}catch{console.warn("Problem with arrayListRowHandler.")}}),m}return(h,m)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("table",{class:"widget-table",ref_key:"refTable",ref:o},[r.createElementVNode("thead",null,[r.createVNode(Dn,{config:d.value,onOrder:m[0]||(m[0]=v=>h.$emit("order",v))},{default:r.withCtx(v=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(h.$slots["head-cell"]||Lt),r.mergeProps(v,{onSelect:c}),null,16))]),_:1},8,["config"])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.array,(v,E)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:E},[r.createVNode(cr,r.mergeProps({test:E,config:d.value,values:v,selected:h.selectedRows.includes(v),onSelect:p=>s(v,p),onActivate:p=>u(E),class:h.classCallback?h.classCallback(v):"",ref_for:!0},b(v)),null,16,["test","config","values","selected","onSelect","onActivate","class"]),l.value&&h.activeRow===E?(r.openBlock(),r.createBlock(_t,{key:0,component:l.value,"row-length":h.config.length,values:v,onClose:m[1]||(m[1]=p=>i("update:activeRow",null)),onSave:f,"is-new":!1},null,8,["component","row-length","values"])):r.createCommentVNode("",!0)],64))),128)),h.activeRow===r.unref(T).LIST_ACTIVE_NEW?(r.openBlock(),r.createBlock(_t,{key:0,component:l.value,"row-length":d.value.length,onClose:m[2]||(m[2]=v=>i("update:activeRow",null)),onSave:f,"is-new":!0},null,8,["component","row-length"])):r.createCommentVNode("",!0)])],512),r.renderSlot(h.$slots,"footer")]))}}),fr=r.defineComponent({__name:"widget-spinner",props:{color:{default:"#fff"}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:"widget-spinner",style:r.normalizeStyle({"border-left":`1.1em solid ${t.color}`})},null,4))}}),Te=M(fr,[["__scopeId","data-v-0ef9ae88"]]),pr={class:"widget-button"},mr=r.defineComponent({__name:"widget-button",props:{wait:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("button",pr,[t.wait?(r.openBlock(),r.createBlock(Te,{key:0,class:"widget-button-spinner"})):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"default",{},void 0,!0)]))}}),gr=M(mr,[["__scopeId","data-v-450dc564"]]),hr={class:"widget-multi-button-wrap position_relative cursor_pointer"},yr={class:"widget-multi-button-body grid"},vr=["onClick"],wr={class:"widget-multi-button-side-wrap"},br=r.defineComponent({__name:"widget-multi-button",props:{label:{},array:{default:()=>[]}},setup(e){r.useCssVars(l=>({"04895bf1":o.value}));const t=e,n=r.reactive({active:!1,wait:!1}),o=r.computed(()=>t.array.length+(t.label?1:0));function i(l){if(!(typeof l!="function"||n.wait))return n.wait=!0,Promise.resolve().then(l).finally(()=>{n.wait=!1})}function a(l=!n.active){n.active=l}return(l,c)=>(r.openBlock(),r.createElementBlock("div",hr,[r.createElementVNode("div",{class:r.normalizeClass(["overflow_hidden radius_20 widget-multi-button grid",n.active?"widget-multi-button_active":null])},[r.createElementVNode("div",yr,[l.label?(r.openBlock(),r.createElementBlock("p",{key:0,class:"text_md margin_0 text_nowrap widget-multi-button-body-label",onClick:c[0]||(c[0]=s=>a())},r.toDisplayString(l.label),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.array,(s,u)=>(r.openBlock(),r.createElementBlock("p",{class:"text_md margin_0 text_nowrap widget-multi-button-body-label",key:u,onClick:f=>{i(s.callback),a(!1)}},r.toDisplayString(s.label),9,vr))),128))]),r.createElementVNode("div",wr,[r.createElementVNode("div",{class:r.normalizeClass(["grid-center widget-multi-button-side",n.active?"widget-multi-button-side_active":null]),onClick:c[1]||(c[1]=s=>a())},[n.wait?(r.openBlock(),r.createBlock(r.unref(Te),{key:0,class:"widget-multi-button-side-spinner"})):l.array.length>1?(r.openBlock(),r.createBlock(r.unref(ge),{key:1,class:"widget-multi-button-side-icon"},{default:r.withCtx(()=>[r.createTextVNode("angle-small-down")]),_:1})):r.createCommentVNode("",!0)],2)])],2)]))}}),Er=M(br,[["__scopeId","data-v-d43a76ce"]]),_r={class:"widget-loader flex flex-align_center gap_10 padding_15"},Cr={class:"text_md"},Me=r.defineComponent({__name:"widget-loader",props:{label:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",_r,[r.createVNode(Te,{color:"var(--primary)",class:"padding_10"}),r.createElementVNode("span",Cr,r.toDisplayString(t.label),1)]))}}),kr=["alt","src"],Tr=r.defineComponent({__name:"widget-image",props:{src:{},alt:{},default:{}},setup(e){const t=e,n=r.ref();return r.onMounted(()=>{n.value&&(n.value.src=t.src),n.value.onerror=function(){t.default&&(n.value.src=t.default)}}),(o,i)=>(r.openBlock(),r.createElementBlock("img",{alt:o.alt,ref_key:"refImage",ref:n,src:o.src||o.$props.default},null,8,kr))}}),Sr={props:{config:Array,values:Object,selected:Boolean},setup:Ze},Ar=M(Sr,[["__scopeId","data-v-344a8cc1"]]),Ir=e=>(r.pushScopeId("data-v-bf495d6a"),e=e(),r.popScopeId(),e),Nr={class:"widget-list-head-cell"},Rr=Ir(()=>r.createElementVNode("div",{class:"head-cell-resize"},null,-1)),Or=r.defineComponent({__name:"widget-list-head-cell",props:{title:{},label:{},name:{},type:{},minWidth:{},maxWidth:{},width:{},order:{}},emits:["select","order"],setup(e,{emit:t}){const n=e,o=t;return n.title&&console.warn(`For cell ${n.name} using title,it should be replaced with label.`),(i,a)=>(r.openBlock(),r.createElementBlock("th",null,[r.createElementVNode("div",Nr,[r.createElementVNode("div",{class:"head-cell-content flex_grow",style:r.normalizeStyle({"min-width":i.minWidth,"max-width":i.maxWidth,width:i.width})},[i.type==="multi-select"?(r.openBlock(),r.createBlock(r.unref(O.FormField),{key:0,type:"single-checkbox",onClick:a[0]||(a[0]=r.withModifiers(l=>o("select"),["stop","prevent"]))})):(r.openBlock(),r.createElementBlock("p",{key:1,class:"widget-list-head-label head-cell-label list-head-cell-label text_md margin-0",onClick:a[1]||(a[1]=l=>o("order"))},r.toDisplayString(i.title||i.label),1))],4),i.name&&i.order.length&&i.order[0]===i.name?(r.openBlock(),r.createBlock(r.unref(ge),{key:0,class:r.normalizeClass(["head-cell-order",{"head-cell-order_down":i.order.length>1&&i.order[1]==="desc"}])},{default:r.withCtx(()=>[r.createTextVNode("core-arrow-up")]),_:1},8,["class"])):r.createCommentVNode("",!0),Rr])]))}}),Lr=M(Or,[["__scopeId","data-v-bf495d6a"]]),Fr=r.defineComponent({__name:"widget-list-head",props:{config:{},order:{}},emits:["update:config","update:order","select"],setup(e,{emit:t}){const n=e,o=t,i=r.ref(),a=r.ref();r.onMounted(()=>{function u(m,v){let E=-1;do E++,v-=m[E];while(v>0&&E<m.length);return E}function f(m,v){let E=0;for(;v>0&&v>m[E]&&E<m.length;)v-=m[E],E++;return console.log(v,E),E>0?E:0}function d(m){try{a.value.style.insetInlineStart=m+"px"}catch(v){console.log(v)}}function b(m){try{a.value.style.width=m+"px",a.value.style.minWidth=m+"px",a.value.style.maxWidth=m+"px"}catch(v){console.log(v)}}function h(m){return m===null?!1:m.classList.contains("head-cell-resize")}i.value.addEventListener("pointerdown",function(v){var S;function E(A){return A.screenX+g-L}const p=i.value,y=[...p.children].filter(A=>A.localName==="th"),g=((S=p.offsetParent)==null?void 0:S.scrollLeft)||0,_=y.map(A=>A.clientWidth),k=h(v.target),L=p.getBoundingClientRect().left,w=E(v),C=u(_,w),N=_.slice(0,C).reduce((A,$)=>A+$,0),V=w-N,D=p.offsetWidth,Q=y[C].clientWidth;if(n.config[C].type==="multi-select")return;console.group("START"),console.log(),console.log("Start screenX",v.screenX),console.log("Widths",_),console.log("max width",D),console.log("Start Position",w),console.log("Position From",C),console.log("Start Position",C),console.log("Global offset (Отступ самой таблицы от края экрана)",L),console.log("Del",V),console.groupEnd(),a.value.innerText=y[C].textContent||"",a.value.style.display="grid",a.value.style.width=Q+"px",a.value.style.cursor="grabbing",d(N),b(Q),document.addEventListener("pointermove",ve,{passive:!0}),document.addEventListener("pointerup",Ae);function Ae(A){if(console.group("END"),document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ae),k&&(n.config[C].width=a.value.style.width,n.config[C].minWidth=a.value.style.width,n.config[C].maxWidth=a.value.style.width,l(n.config)),!k){const $=A.screenX+g-L;console.log("ENP Position",$);const z=f(_,$);if(console.log(C,"->",z),z!==C){const W=n.config[C],j=n.config;j.splice(C,1),j.splice(z,0,W),l(j)}else{const W=n.config[C].name;c(W)}}a.value.style.display="none",document.body.style.cursor="unset",console.groupEnd()}function ve(A){if(k){const W=E(A)-w+Q;b(W);return}let $=A.screenX+g-L-V;$<0&&($=0),$+Q>D&&($=D-Q),d($)}})});function l(u){o("update:config",u)}function c(u){if(!u)return;if(Array.isArray(u)){if(u.length<1)return;u=u[0]}if(n.order.length===0||n.order[0]!==u)return void s([u]);const f=n.order.length===1||n.order[1]==="asc"?"asc":"desc";s([u,f==="asc"?"desc":"asc"])}function s(u){o("update:order",u)}return(u,f)=>(r.openBlock(),r.createElementBlock("tr",{class:"widget-list-head",ref_key:"refHead",ref:i},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.config,(d,b)=>(r.openBlock(),r.createBlock(Lr,r.mergeProps({key:d,ref_for:!0},d,{onOrder:h=>c(d.name),onSelect:f[0]||(f[0]=h=>o("select")),order:u.order}),null,16,["onOrder","order"]))),128)),r.createElementVNode("div",{class:"test-block text_md",ref_key:"refDisplayPosition",ref:a},"test",512)],512))}}),xr=M(Fr,[["__scopeId","data-v-ccffc6bd"]]),Br={class:"widget-list"},Vr={class:"widget-list-body position_relative"},$r=50,Dr=r.defineComponent({__name:"widget-list",props:{array:{},config:{default:()=>[]},selectedRows:{default:()=>[]},order:{default:()=>[]}},emits:["scrollEnd","update:selectedRows","update:order","update:config"],setup(e,{emit:t}){const n=e,o=t;function i(s,u=!0){if(n.selectedRows)if(!u)l(n.selectedRows.includes(s)?[]:[s]);else{const f=[...n.selectedRows],d=f.indexOf(s);d===-1?f.push(s):f==null||f.splice(d,1),l(f)}}function a(){var s;if(((s=n.selectedRows)==null?void 0:s.length)!==n.array.length)return l([...n.array]);l([])}function l(s){o("update:selectedRows",s)}function c(s){if(!s)return;const u=s.target;u.scrollTop+u.clientHeight+$r>u.scrollHeight&&o("scrollEnd")}return(s,u)=>(r.openBlock(),r.createElementBlock("div",{class:"es-list-container",onScrollPassive:c},[r.createElementVNode("table",Br,[r.createElementVNode("thead",null,[r.createVNode(xr,{onSelect:u[0]||(u[0]=f=>a()),"onUpdate:order":u[1]||(u[1]=f=>o("update:order",f)),"onUpdate:config":u[2]||(u[2]=f=>o("update:config",f)),config:s.config,order:s.order},null,8,["config","order"])]),r.createElementVNode("tbody",Vr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.array,(f,d)=>{var b;return r.openBlock(),r.createBlock(Ar,{key:d,class:"widget-list-row",values:f,config:s.config,selected:(b=s.selectedRows)==null?void 0:b.includes(f),onSelect:h=>i(f,h)},null,8,["values","config","selected","onSelect"])}),128))])])],32))}});function et(){var a;const e=r.computed(()=>Object.keys(n).length===0||Object.values(n).includes(!0)),t=(a=r.getCurrentInstance())==null?void 0:a.uid;if(!t)throw"Undefined instance. Please check it.";const n=r.reactive({});r.provide(T.VISIBLE_ITEM_PROVIDE_NAME,{show(l){n[l]=!0},hide(l){n[l]=!1},remove(l){delete n[l]}});const o=r.inject(T.VISIBLE_ITEM_PROVIDE_NAME,{show(){},hide(){},remove(){}});return{visible:e,controller:{show(){o==null||o.show(t)},hide(){o==null||o.hide(t)},remove(){o==null||o.remove(t)}},visibleItems:n}}function $t(e){const t={name:e,entity:r.inject(T.PROVIDE_ENTITY_NAME)};if(!t.name)throw new Error("Field without name try use metadata.");const n=r.ref(!1),o=r.ref(null);return e.split(".").reduce((i,a,l,c)=>l===c.length-1?i:i.then(()=>{var u,f;const s=(f=(u=o.value)==null?void 0:u.fieldsByName[a])==null?void 0:f.referencedEntity;if(!s)throw new Error("---");return ee.initEntity(s).then(()=>s)}).then(s=>{o.value=ee.get(s),t.entity=s,t.name=c[l+1]}),Promise.resolve().then(()=>ee.initEntity(t.entity)).then(()=>{o.value=ee.get(t.entity)})).finally(()=>n.value=!0),r.computed(()=>{if(!n.value||!o.value)return;const i=o.value.fieldsByName[t.name];if(i)return i})}const Pr=r.defineComponent({__name:"widget-field",props:{name:{},type:{},label:{},usageContext:{type:Boolean,default:!0}},setup(e){const t=e,n=O.Form.getParentForm();Se();const o=ft(),i=r.computed(()=>{var m,v,E;const d=c.value,b=s(d),h={type:b,disabled:t.usageContext?!((m=l.value)!=null&&m.canSet):!1,label:t.label};return b==="Decimal"&&((E=(v=d==null?void 0:d.presentationType)==null?void 0:v.toLowerCase)==null?void 0:E.call(v))==="money"&&(h.money=!0),d&&Object.assign(h,{suffix:d.valueUnit||void 0,label:t.label||d.displayName}),Array.isArray(I.arrayFieldParamsHandlers)&&I.arrayFieldParamsHandlers.forEach(p=>Object.assign(h,p(d,l.value,h,n,t.name))),h}),a=["MultiText","MultiWideText"],l=r.computed(()=>{var d;return(d=o==null?void 0:o.value)==null?void 0:d.fields[t.name]}),c=$t(t.name);function s(d){if(typeof t.type=="string"&&t.type.length!==0)return t.type;if(d){if(d.type==="Reference"||d.type==="Owned")return d.referencedEntity;if(d.dataType==="Boolean")return"single-checkbox";if(d.dataType==="DateTime")return"date";if(d.dataType==="Integer"||d.dataType==="Decimal")return"number";if(d.dataType==="List")return d.aggregatedEntity;if(a.includes(d.presentationType))return"textarea";if(d.presentationType==="PhoneNumber")return"tel"}return"text"}const u=r.computed(()=>{var d;return t.usageContext?((d=l.value)==null?void 0:d.canGet)===!0:!0}),{controller:f}=et();return r.watch(()=>u.value,d=>d?f.show():f.hide(),{immediate:!0}),r.onUnmounted(()=>f.remove()),(d,b)=>u.value?(r.openBlock(),r.createBlock(r.unref(O.FormField),r.mergeProps({key:0},{...d.$attrs,...i.value},{name:d.name}),null,16,["name"])):r.createCommentVNode("",!0)}});function Mr(e){return Array.isArray(e)&&(e==null?void 0:e[1])||T.DEFAULT_ORDER_DIR}const jr=["fill"],Ur=r.createElementVNode("path",{d:"M440-647 244-451q-12 12-28 11.5T188-452q-11-12-11.5-28t11.5-28l264-264q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l264 264q11 11 11 27.5T772-452q-12 12-28.5 12T715-452L520-647v447q0 17-11.5 28.5T480-160q-17 0-28.5-11.5T440-200v-447Z"},null,-1),Wr=[Ur],Hr=r.defineComponent({__name:"widget-icon-arrow-up",props:{color:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:t.color},Wr,8,jr))}}),qr={class:"widget-fast-table-head-cell-td"},Gr={key:1,class:"widget-head-cell-label"},zr={key:2,class:"widget-head-cell-order"},Kr=r.defineComponent({__name:"widget-fast-table-head-cell",props:{label:{},name:{},order:{},type:{},isFullSelected:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const n=e,o=r.computed(()=>Qe(n.name));r.computed(()=>Mr(n.order));const i=t;function a(){i("select")}return(l,c)=>{var s;return r.openBlock(),r.createElementBlock("td",qr,[r.createElementVNode("div",{class:r.normalizeClass(["widget-head-cell",[l.type==="multi-select"?"justify-content-center":""]]),onClick:c[0]||(c[0]=u=>l.$emit("order",l.name))},[l.type==="multi-select"?(r.openBlock(),r.createBlock(r.unref(O.FormField),{key:0,"model-value":l.isFullSelected,onClick:a,type:"single-checkbox"},null,8,["model-value"])):(r.openBlock(),r.createElementBlock("span",Gr,r.toDisplayString(l.label),1)),o.value===((s=l.order)==null?void 0:s[0])?(r.openBlock(),r.createElementBlock("div",zr,[r.createVNode(Hr,{color:"var(--color-primary)",class:r.normalizeClass(["widget-head-cell-order-icon",`widget-head-cell-order-icon_${l.order[1]==="desc"?"desc":"asc"}`])},null,8,["class"])])):r.createCommentVNode("",!0)],2)])}}}),Dt=M(Kr,[["__scopeId","data-v-d131e64e"]]),Yr=["fill"],Xr=r.createElementVNode("path",{d:"M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z"},null,-1),Jr=[Xr],Qr=r.defineComponent({__name:"widget-icon-keyboard-arrow-down",props:{color:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:t.color},Jr,8,Yr))}}),Zr={class:"widget-filter-item-popup"},eo=r.defineComponent({__name:"widget-table-panel-filter-item",props:{entity:{},values:{},filters:{},filterItem:{}},emits:["update:values","clear"],setup(e,{emit:t}){const n=e,o=t,i=I.tableFilterEntityBind,a=r.ref(),l=r.computed(()=>{const h=n.filterItem;return h.entity?"Entity":h.type?h.type:null});function c(h){s.value=h==="start"}const s=r.ref(!1),u=r.computed(()=>Array.isArray(n.values)||typeof n.values=="string"?n.values.length>0:!!n.values),f=r.ref(!1);let d=null;function b(h=!f.value){f.value=h,!f.value&&d?(d(),d=null):a.value&&(d=O.utils.clickOutside(a.value,b.bind(null,!1)))}return(h,m)=>{var v;return r.openBlock(),r.createElementBlock("div",{class:"widget-filter-item-container grid",ref_key:"refFilterItem",ref:a},[r.createElementVNode("div",{class:r.normalizeClass(["widget-filter-item",{"widget-filter-item_active":u.value}]),onClick:m[0]||(m[0]=()=>b())},[r.createElementVNode("span",{class:r.normalizeClass(["widget-filter-item-label",{"widget-filter-item-label_active":u.value}])},r.toDisplayString(h.filterItem.label||"--"),3),s.value?(r.openBlock(),r.createBlock(Te,{key:0})):(r.openBlock(),r.createBlock(Qr,{key:1,color:"white",class:r.normalizeClass({"widget-filter-item-arrow":f.value})},null,8,["class"]))],2),r.withDirectives(r.createElementVNode("div",Zr,[l.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent((v=r.unref(i))==null?void 0:v[l.value]),{key:0,"filter-metadata":h.filterItem,values:h.values,filters:h.filters,"base-entity":h.entity,onClear:m[1]||(m[1]=E=>o("clear")),"onUpdate:values":m[2]||(m[2]=E=>o("update:values",E)),onReadProcess:c},null,40,["filter-metadata","values","filters","base-entity"])):r.createCommentVNode("",!0)],512),[[r.vShow,f.value]])],512)}}}),Pt=M(eo,[["__scopeId","data-v-43ed0322"]]),to={class:"widget-table-search flex"},no=["value","placeholder"],ro=r.defineComponent({__name:"widget-table-search",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;function o(i){const a=i.target;if(!a)return;const l=a.value;n("update:modelValue",l)}return(i,a)=>(r.openBlock(),r.createElementBlock("div",to,[r.createVNode(ge,{class:"widget-table-search-icon"},{default:r.withCtx(()=>[r.createTextVNode("search")]),_:1}),r.createElementVNode("input",{class:"widget-table-search-input",type:"text",alt:"Searching for data in a table",value:i.modelValue,onInput:o,placeholder:r.unref(G)("Filter by random text")},null,40,no)]))}}),oo=M(ro,[["__scopeId","data-v-b712f344"]]),io={class:"widget-table-panel-filter flex"},ao={class:"flex"},so=r.defineComponent({__name:"widget-table-panel-filters",props:{filtersConfig:{},filters:{},entity:{},search:{}},emits:["update:filters","update:search"],setup(e,{emit:t}){const n=e,o=t;function i(l,c){o("update:filters",{...n.filters,[l]:c})}function a(l){const c={...n.filters};delete c[l],o("update:filters",c)}return(l,c)=>(r.openBlock(),r.createElementBlock("div",io,[r.createVNode(oo,{"model-value":l.search,"onUpdate:modelValue":c[0]||(c[0]=s=>o("update:search",s))},null,8,["model-value"]),r.createElementVNode("div",ao,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.filtersConfig,(s,u)=>{var f;return r.openBlock(),r.createBlock(Pt,{key:u,entity:l.entity,"filter-item":s,values:(f=l.filters)==null?void 0:f[r.unref(ne)(s)],filters:l.filters,"onUpdate:values":d=>i(r.unref(ne)(s),d),onClear:d=>a(r.unref(ne)(s))},null,8,["entity","filter-item","values","filters","onUpdate:values","onClear"])}),128))])]))}}),lo=M(so,[["__scopeId","data-v-8f09ec8d"]]);function Mt(e,t){const n=document.createElement("a");n.href=e,t!=null&&t.blank&&(n.target="_blank"),n.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{n.remove()},100)}const co={class:"widget-fast-table-tools flex gap-15"},uo=r.defineComponent({__name:"widget-fast-table-tools",props:{tools:{},loading:{type:Boolean},selectedRows:{},metadata:{},canCreate:{type:Boolean},externalTools:{}},emits:["reload","export","new"],setup(e,{emit:t}){const n=e,o=se.useRouter(),i=t,a=[{name:"export",label:"Save as CSV",icon:"list-download",buttonStyle:"default",callback:m=>i("export",m)},{name:"reload",label:"Reload",icon:"reload",buttonStyle:"default",callback:()=>i("reload")},{name:"new",label:"Add New",icon:"new",buttonStyle:"primary",callback:()=>i("new")}],l=r.inject(T.PROVIDE_NAME_ACTIONS,null),c=r.computed(()=>(Array.isArray(n.tools)?n.tools:[]).reduce((m,v)=>(v.name==="*"?m.push(...a):m.push(v),m),[]));function s(m){return a.find(v=>v.name===m.name)}function u(m){return{...m,label:m.label||"Batch update",callback:async()=>{const v=n.metadata,E=v.name,p=n.selectedRows||[];if(n.selectedRows.length===0)return Ue.add("error","Kindly select at least one record to update");const y=await q.promptModal(T.MODAL_BATCH_VALUES,{entity:E,availableFields:m.availableFields||[]});if(!y)return;const g=dt(E),_=p.map(k=>({primaryKey:k[g],version:v.versioned?k.Version:void 0}));await Zt(E,{values:y,elements:_}).then(k=>{k.forEach(L=>{L.type==="reject"&&P("error")(L.data)})}).catch(P("error")),i("reload")}}}function f(m){return{...m,callback:()=>o.push(m.to)}}function d(m){return{...m,callback:()=>{const v=tn(m.filename);Mt(v,{blank:!0})}}}const b=r.computed(()=>{var E;const m=((E=l==null?void 0:l.actions)==null?void 0:E.value)||[],v=[];return c.value.forEach(p=>{if(!(typeof p.override=="string"&&!m.find(y=>y.name===p.override))){if(s(p)){if(p.name==="new"&&!n.canCreate)return;const y=a.find(g=>g.name===p.name);if(y){const g=Object.assign({},y,{callback:()=>y.callback(p.params||{})});return v.push(g)}}if(p.name==="redirect")return v.push(f(p));if(p.name==="batch-update")return v.push(u(p));if(p.name==="static-file")return v.push(d(p));{const y=m.find(g=>g.name===p.name);if(y)return v.push({label:y.title,...p,callback:()=>h(y)})}}}),Array.isArray(n.externalTools)&&v.push(...n.externalTools),v.map(p=>({...p,process:oe(p.callback)}))});function h(m){var p;const v=(p=m.action.parameters.find(y=>y.dataTypeName==="IntegerArray"))==null?void 0:p.name,E={};return v&&(E[v]=n.selectedRows.map(y=>{if(!(typeof y=="object"&&y!==null))return null;const g=n.metadata.fieldNameForIdentification;return g?y[g]:null})),m.callback(E)}return(m,v)=>{const E=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",co,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b.value,p=>(r.openBlock(),r.createBlock(E,{label:r.unref(G)(p.label),title:p.name,icon:p.icon,type:p.buttonStyle,loading:p.name==="reload"?m.loading:p.process.loading,onClick:()=>p.process.call()},null,8,["label","title","icon","type","loading","onClick"]))),256)),r.renderSlot(m.$slots,"default")])}}});function fo(e,t){const n=Bt(),o=se.useRouter(),i=r.reactive({entity:null,mark:null,settings:null});function a(g){const _={...f.value,...g};l(_)}function l(g){{const _=g.prefilters;_&&(Object.keys(_).forEach(k=>{var w,C;const L=_[k];Array.isArray(_[k])&&_[k].length===0&&i.settings&&!((C=(w=i.settings)==null?void 0:w.prefilters)!=null&&C[k])&&delete _[k],An(L)&&(typeof L.min!="number"&&delete L.min,typeof L.max!="number"&&delete L.max,Object.keys(L).length===0&&delete _[k])}),O.utils.isEmptyObject(_)&&delete g.prefilters)}localStorage.setItem(u(i.entity,i.mark),JSON.stringify(g)),t&&t()}function c(){return i.entity?JSON.parse(localStorage[u(i.entity,i.mark)]||"{}"):null}function s(g,_){i.entity=g,i.mark=_,b.call()}function u(g,_){return"list-configuration:"+g+(_?"-"+_:"")}const f=r.computed(()=>i.entity?JSON.parse(n[u(i.entity,i.mark)]||"{}"):null),d=r.computed(()=>i.settings?Ye(i.entity,i.settings.config,{router:o,activate:e}):[]),b=oe(async function(){if(!i.entity)return;const _=await Yt(i.entity,i.mark);i.settings=Object.freeze(_),t&&t()}),h=r.computed(()=>{var k;const g=f.value.order||null,_=((k=i.settings)==null?void 0:k.order)||null;return g||_||[]}),m=r.computed(()=>{var k;const g=f.value.prefilters||{};return{...((k=i.settings)==null?void 0:k.prefilters)||{},...g}}),v=r.computed(()=>{var g;return((g=i.settings)==null?void 0:g.filters)||[]}),E=r.computed(()=>{var g;return((g=i.settings)==null?void 0:g.label)||null}),p=r.computed(()=>{var g;return((g=i.settings)==null?void 0:g.tools)||[]}),y=r.computed(()=>!O.utils.isEmptyObject(f.value));return{state:i,get customFilters(){return i.settings.customFilters||[]},set:s,get:c,configuration:f,update:a,computedPrefilter:m,computedFiltersConfiguration:v,get cellConfig(){return i.settings?Ye(i.entity,i.settings.config,{router:o,activate:e}):[]},get prefilters(){var g;return((g=c())==null?void 0:g.prefilters)||i.settings.prefilters||{}},get order(){var g;return((g=c())==null?void 0:g.order)||i.settings.order||[]},clean(){localStorage.removeItem(u(i.entity,i.mark)),t&&t()},cellConfiguration:d,computedLabel:E,computedTools:p,computedHasLocalConfiguration:y,computedOrder:h,get displayModeForNew(){return i.settings.displayModeForNew||"inline"}}}var pe;class jt{constructor(t){Ne(this,pe);this.unloaded=!1,this.offset=0,this.array=r.reactive([]),ue(this,pe,null),this.process=oe(this.load.bind(this)),this.entity=t,this.limit=50}set options(t){ue(this,pe,t)}get requestReadOptions(){return Object.assign({},Ie(this,pe)||null,{offset:this.offset,limit:this.limit})}async next(){this.unloaded||this.process.loading||await this.process.call()}reload(){return this.clear(),this.next()}clear(){this.array.splice(0,this.array.length),this.offset=0,this.unloaded=!1}get loading(){return this.process.loading}init(t){this.options=t,this.clear()}async load(){const t=await le(this.entity,this.requestReadOptions);this.addData(t),t.length!==this.limit&&(this.unloaded=!0)}addData(t){this.array.push(...t.map(n=>Object.freeze(n))),this.offset+=t.length}}pe=new WeakMap;function po(e,t){const n=setInterval(()=>{mo(t)&&e.next()},2e3);r.onUnmounted(()=>{clearInterval(n)})}function mo(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}const go=["count","test"],ho={class:"widget-fast-table-head"},yo={key:0,class:"title-md color-primary margin-0 widget-fast-table-label"},vo={class:"widget-fast-table-body"},wo=r.defineComponent({__name:"widget-fast-table",props:{entity:{},mark:{},masterEntities:{},binding:{},actions:{},hideLabel:{type:Boolean},hideActions:{type:Boolean},disableUsageContext:{type:Boolean},externalTools:{}},setup(e,{expose:t}){const n=e,o=se.useRouter(),i=r.ref(null),a=r.computed(()=>i.value?u.value.indexOf(i.value[2]):null);function l(S,A,$){i.value=[S,A,$]}const c=new jt(n.entity),s=r.ref(""),u=r.computed(()=>Array.isArray(C.value)?s.value.length===0?c.array:c.array.filter(S=>!!C.value.find($=>{const z=ke($,S);return typeof z=="string"?z.includes(s.value):!1})):[]),f=r.ref(null),d=O.Form.getParentForm(),b=r.ref([]),h=Se(n.entity),{state:m,update:v}=ft(n.entity,{masterEntities:n.masterEntities||[]}),E=oe(async()=>{try{b.value=[],await c.reload(),n.disableUsageContext||await v()}catch(S){const{message:A}=ot(S);f.value=A}});d instanceof O.Form&&d.subscribe({read:E.call.bind(null),name:n.entity,type:"table"}),r.watch(()=>n.mark,()=>{w.set(n.entity,n.mark)});function p(){return R.and(R(w.prefilters),R(n.binding||{}))}const{controller:y}=et();r.watch(()=>m.value,S=>{S&&(S.canRead?y.show():y.hide())},{immediate:!0});let g=[_e.on("affected-entity",S=>{S.name===n.entity&&E.call()}),_e.on("display-entity",async S=>{S.name===n.entity&&(c.loading&&await c.process.promise,l(S.name,S.primaryKey,u.value.find(A=>A[h.value.fieldNameForIdentification]===S.primaryKey)))})];r.onUnmounted(()=>{g.map(S=>S()),y.remove()});function _(S){function A(W){return Array.isArray(W)?A(W[0]):typeof W!="string"?null:W}const $=A(S);if(!$)return;const z=w.order;k("order",z[0]!==$?[$,"asc"]:z[1]==="desc"?[]:[$,"desc"])}function k(S,A){w.update({[S]:A})}const L=r.computed(()=>E.wait),w=fo(l,()=>{c.init({customFilters:w.customFilters,fields:at(C.value).join(" "),order:w.order,filter:p(),useContextFilter:w.state.settings.useContextFilter}),c.next()}),C=w.cellConfiguration;w.set(n.entity,n.mark),r.watch(()=>w.state.settings,()=>setTimeout(E.call,50));const N=r.computed(()=>w.state.settings);t({listSettings:N,array:u,config:C,listDataController:c,selectedRows:b,listController:w});function V(S){q.openModal(T.MODAL_LIST_DOWNLOAD,{entity:n.entity,cellConfig:w.cellConfig,order:w.order,prefilters:p(),customFilters:w.customFilters,params:S})}function D(){switch(w.displayModeForNew){case"modal":return q.openModal(T.MODAL_ENTITY,{entity:n.entity});case"form":return o.push(ut(n.entity));case"inline":return i.value=[n.entity]}}function Q(){w.clean()}function Ae(){return{entity:n.entity}}const ve=r.ref();return r.onMounted(()=>{po(c,ve.value)}),(S,A)=>{var W;const $=r.resolveComponent("widget-button"),z=r.resolveComponent("widget-fast-table-form");return r.openBlock(),r.createElementBlock("div",{class:"widget-fast-table",count:b.value.length,test:i.value},[r.createElementVNode("div",ho,[r.unref(w).computedLabel.value&&!S.hideLabel?(r.openBlock(),r.createElementBlock("p",yo,r.toDisplayString(r.unref(G)(r.unref(w).computedLabel.value)),1)):r.createCommentVNode("",!0),r.unref(h)&&!S.hideActions?(r.openBlock(),r.createBlock(uo,{key:1,metadata:r.unref(h),tools:r.unref(w).computedTools.value,loading:L.value,"selected-rows":b.value||[],onReload:r.unref(E).call,onExport:V,onNew:D,"can-create":((W=r.unref(m))==null?void 0:W.canCreate)||!1,externalTools:S.externalTools||[]},{default:r.withCtx(()=>[r.renderSlot(S.$slots,"tools",{},void 0,!0),r.unref(w).computedHasLocalConfiguration.value?(r.openBlock(),r.createBlock($,{key:0,onClick:Q,type:"primary",label:r.unref(G)("Clear all filters")},null,8,["label"])):r.createCommentVNode("",!0)]),_:3},8,["metadata","tools","loading","selected-rows","onReload","can-create","externalTools"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",vo,[r.createVNode(lo,{search:s.value,"onUpdate:search":A[0]||(A[0]=j=>s.value=j),entity:S.entity,"filters-config":r.unref(w).computedFiltersConfiguration.value,filters:r.unref(w).computedPrefilter.value,"onUpdate:filters":A[1]||(A[1]=j=>k("prefilters",j))},null,8,["search","entity","filters-config","filters"]),r.createVNode(r.unref(Vt),{config:r.unref(C),array:u.value,"active-row":a.value,"onUpdate:activeRow":A[3]||(A[3]=j=>i.value=null),onOrder:_,class:"table main-table",selectedRows:b.value,"onUpdate:selectedRows":A[4]||(A[4]=j=>b.value=j),"row-options-handler":Ae},{"head-cell":r.withCtx(j=>{var we,gt,ht;return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(S.$slots["head-cell"]?S.$slots["head-cell"]:Dt),r.mergeProps({label:j.label},j,{onOrder:_,order:r.unref(w).computedOrder.value,type:j.type,"is-full-selected":((we=b.value)==null?void 0:we.length)===((gt=u.value)==null?void 0:gt.length)&&((ht=u.value)==null?void 0:ht.length)>0}),null,16,["label","order","type","is-full-selected"]))]}),footer:r.withCtx(()=>[r.createElementVNode("div",{style:{padding:"10px"},ref_key:"endOfTheScroll",ref:ve},null,512)]),default:r.withCtx(()=>{var j,we;return[r.createVNode(z,{entity:(j=i.value)==null?void 0:j[0],"primary-key":((we=i.value)==null?void 0:we[1])||null,"master-entities":S.masterEntities||void 0,binding:S.binding,onFormUpdate:A[2]||(A[2]=()=>{i.value=null,r.unref(c).reload()})},null,8,["entity","primary-key","master-entities","binding"])]}),_:1},8,["config","array","active-row","selectedRows"])])],8,go)}}}),bo=M(wo,[["__scopeId","data-v-49a850f8"]]);function Ut(e,t={},n={}){const o=r.inject(T.PROVIDE_NAME_ACTIONS,null),i=typeof e=="string"?e:t,a=typeof t=="string"?n:t;return r.computed(()=>{var s;const c=((typeof e=="string"?(s=o==null?void 0:o.actions)==null?void 0:s.value:r.unref(e))||[]).find(u=>u.name===i);return c?{...c,...a}:null})}const Eo=r.defineComponent({__name:"widget-action",props:{name:{},overrideParams:{}},setup(e){const t=e,n=Ut(t.name,t.overrideParams||{}),o=r.computed(()=>{if(n.value)return oe(n.value.callback)});return(i,a)=>{var c;const l=r.resolveComponent("widget-button");return r.unref(n)?(r.openBlock(),r.createBlock(l,{key:0,label:r.unref(n).label,loading:((c=o.value)==null?void 0:c.loading)||!1,onClick:a[0]||(a[0]=()=>{var s,u;return(u=(s=o.value)==null?void 0:s.call)==null?void 0:u.call(s,i.overrideParams||{})})},null,8,["label","loading"])):r.createCommentVNode("",!0)}}}),_o=r.defineComponent({__name:"WidgetResolverEntity",setup(e){const t=se.useRouter(),n=se.useRoute();function o(){const i=n.params.entity,a=n.params.primaryKey;st(i,a).then(l=>t.replace(ut(l,a))).catch(l=>{P("error")(l),t.back()})}return r.onMounted(o),(i,a)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(Me,{label:"Loading..."})]))}}),Co=r.defineComponent({__name:"modal-list-download",props:{entity:{},cellConfig:{},prefilters:{},order:{},customFilters:{},params:{}},setup(e){const t=e,n=r.computed(()=>o.finished?"Download CSV":`Download ${o.count} records.`),{state:o,downloadFile:i,reject:a,start:l}=En({entity:t.entity,config:t.cellConfig,prefilters:t.prefilters,order:t.order,customFilters:t.customFilters},t.params||{});return q.onBeforeModalClose(a),r.onMounted(l),r.watch(()=>o.finished,()=>{i(),q.popModal()}),(c,s)=>{const u=r.resolveComponent("widget-button"),f=r.resolveComponent("widget-modal-wrap");return r.openBlock(),r.createBlock(f,null,{footer:r.withCtx(()=>[r.createVNode(u,{onClick:s[0]||(s[0]=d=>{r.unref(i)(),r.unref(q.popModal)()})},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(n.value),1)]),_:1})]),default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createVNode(Me,{label:"Loading"})])]),_:1})}}}),Wt=e=>(r.pushScopeId("data-v-66cf2326"),e=e(),r.popScopeId(),e),ko={class:"version-item"},To={class:"text_md"},So={class:"version-item-date text_md"},Ao=Wt(()=>r.createElementVNode("span",null,null,-1)),Io=Wt(()=>r.createElementVNode("span",null,null,-1)),No={class:"text_sm"},Ro={class:"text_sm line-clamp_5"},Oo={class:"text_sm line-clamp_5"},Lo=r.defineComponent({__name:"version-item",props:{selectedFields:{},date:{},customerName:{},version:{},changes:{},entity:{}},setup(e){const t=e;function n(a,l){const c=a.name.toLowerCase(),s=l.name.toLowerCase();return s==="version"?-1:c==="version"?1:s.startsWith("utc")?-1:c.startsWith("utc")?1:0}const o=r.computed(()=>[...t.changes||[]].sort(n)),i=r.computed(()=>(o.value||[]).filter(a=>Array.isArray(t.selectedFields)&&t.selectedFields.length!==0?t.selectedFields.includes(a.name):!0));return(a,l)=>(r.openBlock(),r.createElementBlock("div",ko,[r.createElementVNode("span",To,[r.createElementVNode("b",null,r.toDisplayString(a.version),1)]),r.createElementVNode("span",So,[r.createElementVNode("b",null,r.toDisplayString(r.unref(rt)(a.date)),1)]),Ao,r.createElementVNode("span",null,[r.createTextVNode("by "),r.createElementVNode("b",null,r.toDisplayString(a.customerName),1)]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,c=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:c.name},[Io,r.createElementVNode("span",No,r.toDisplayString(c.name),1),r.createElementVNode("span",Ro,r.toDisplayString(r.unref(Ge)(a.entity,c.name,c.newValue)),1),r.createElementVNode("span",Oo,r.toDisplayString(r.unref(Ge)(a.entity,c.name,c.oldValue)),1)],64))),128))]))}}),Fo=M(Lo,[["__scopeId","data-v-66cf2326"]]),tt=e=>(r.pushScopeId("data-v-cc723f37"),e=e(),r.popScopeId(),e),xo={key:1,class:"wrap-history"},Bo={class:"history-header grid gap_10"},Vo=tt(()=>r.createElementVNode("span",null,null,-1)),$o=tt(()=>r.createElementVNode("span",{class:"text_md"},"New Value",-1)),Do=tt(()=>r.createElementVNode("span",{class:"text_md"},"Old Value",-1)),Po={class:"padding_15 grid gap_10 container-history"},Mo=r.defineComponent({__name:"modal-version-history",props:{entity:{},primaryKey:{}},setup(e){const t=e,n=r.computed(()=>`${l.value.description} Version History`),o=r.ref(),i=r.computed(()=>!s.value||Array.isArray(s.value)&&s.value.length===0?o.value:(o.value||[]).filter(d=>{var b;return d.action==="Insert"?!0:(b=d.changes)==null?void 0:b.find(h=>s.value&&s.value.includes(h.name))})),a=oe(u),l=Se(t.entity),c=r.computed(()=>l.value.fields.map(d=>({label:d.displayName,value:d.name}))),s=r.ref(null);async function u(){try{const d=await en({entity:t.entity,primaryKey:t.primaryKey});o.value=d.history}catch(d){P("error")(d)}}r.onMounted(()=>a.call());function f(d){return d.currentValues.map(b=>({name:b.fieldName,newValue:b.value})).filter(b=>b.newValue)}return(d,b)=>{const h=r.resolveComponent("widget-modal-wrap");return r.openBlock(),r.createBlock(h,{label:n.value,class:"wrap-modal-version-history"},{default:r.withCtx(()=>[r.unref(a).loading?(r.openBlock(),r.createBlock(r.unref(Me),{key:0,label:"Loading history..."})):(r.openBlock(),r.createElementBlock("div",xo,[r.createElementVNode("div",Bo,[Vo,r.createVNode(r.unref(O.FormField),{type:"select",options:c.value,modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=m=>s.value=m),multiple:""},null,8,["options","modelValue"]),$o,Do]),r.createElementVNode("div",Po,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(m,v)=>(r.openBlock(),r.createBlock(Fo,{"selected-fields":s.value,date:m.utcCreated,"customer-name":m.userName,version:m.version,changes:m.action==="Insert"?f(m):m.changes,entity:d.entity,key:v},null,8,["selected-fields","date","customer-name","version","changes","entity"]))),128))])]))]),_:1},8,["label"])}}}),jo=M(Mo,[["__scopeId","data-v-cc723f37"]]);function nt(e,t,n){const o=window.URL.createObjectURL(e);Mt(o,n),setTimeout(()=>{window.URL.revokeObjectURL(o)},100)}function Uo(e,t){return fetch(`/close-api/document-builder/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({CatalogId:t})}).then(n=>n.blob()).then(n=>{nt(n,e+t+"-print-form.pdf",{blank:!0})})}function rt(e){return Be(e,"YYYY/MM/DD HH:mm:ss")}function Be(e,t="YYYY/MM/DD"){if(!e)return"";try{const n=new Date(e);return In.format(n,t)}catch(n){return console.log(n),"Invalid date"}}function oe(e){function t(i){o.status=i}function n(...i){if(o.loading)return Promise.reject("The process has already started.");o.loading=!0,o.wait=!0;const a=Promise.resolve().then(()=>t(1)).then(()=>e(...i)).then(l=>(t(3),l)).catch(l=>{throw t(2),l}).finally(()=>{o.wait=!1,o.loading=!1,o.promise=null});return o.promise=a,a}const o=r.reactive({status:0,wait:!1,loading:!1,call:n,promise:null});return o}var Ht=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.error=2]="error",e[e.done=3]="done",e))(Ht||{});function ot(e){return typeof e=="string"?Re(e):Wo(e)?Re(e.message,e.children||e.details||[],e.traceId):Ho(e)?Re(e.title,[e.detail||""],e.traceId):Re(T.DEFAULT_ERROR_MESSAGE)}function Wo(e){return!!(typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,"message"))}function Ho(e){return!!(typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,"title"))}function Re(e,t=[],n){return{message:e,children:t,traceId:n}}function P(e="error"){return function(t){const{message:n,children:o,traceId:i}=ot(t);Ue.add(e,n,{children:o,traceId:i})}}function le(e,t={}){const n=x();return qt(t)&&t.id&&(t.primaryKey=t.id,delete t.id),n.emit("entity:read",{entity:e,...t})}function qt(e){return!!(e.id||e.primaryKey)}function it(e,t){const n=x();return qt(t)&&t.id&&(t.primaryKey=t.id,delete t.id),n.emit("entity:update",{...t,entity:e})}function at(e){return e.reduce((t,n)=>(n.name&&(typeof n.name=="string"?t.push(n.name):t.push(...n.name)),t),[])}function Gt(e,t=2){if(!(typeof e=="string"||typeof e=="number"))return"";let o=String(e).split(".");return o[0]=o[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),o.length<2&&(o[1]=""),o[1]=o[1].padEnd(t,"0"),o[1].length>t&&(o[1]=o[1].substring(0,t)),o.join(".")}function qo(e,t){const n=new Map;return e.forEach(o=>{var a;const i=t(o);n.has(i)||n.set(i,[]),(a=n.get(i))==null||a.push(o)}),n}function Go(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function zo(e){return e.text().then(t=>{try{return JSON.parse(t)}catch{return T.DEFAULT_ERROR_MESSAGE}})}function H(e,t={}){return Y.isFront&&(t.headers||(t.headers={}),t.headers["Context-Id"]=Y.contextId),t.redirect="manual",fetch(e,t).then(n=>n.type==="opaqueredirect"?void window.location.reload():n).catch(()=>{throw new Error(T.DEFAULT_ERROR_MESSAGE)}).then(n=>zo(n).then(o=>{if(!n.ok)throw o;return o}))}function zt(e,t=1e3){let n=0;return(...o)=>{clearTimeout(n),n=window.setTimeout(()=>e(...o),t)}}function Ko(e,t){let n=!1;return(...o)=>{if(!n)return n=!0,setTimeout(()=>n=!1,t),e(...o)}}const Yo=De(Pe("pretty-value-field-by-entity"));function Ge(e,t,n){try{const o=ee.get(e);if(!o)throw new Error("For entity metadata is not loaded");const i=o.fieldsByName[t];if(!i)throw new Error(`For entity ${e} can't found fieldMetadata for field ${t}`);return i.dataType==="DateTime"&&typeof n=="string"?new Date(n).toLocaleString():n}catch(o){return Yo('Error by parse pretty value for entity %o "%s", field "%s" with value "%s"',o,e,t,n),n}}const ie=De(Pe("use-socket"));function x(){return Jo}function Xo(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Blob]"}const Jo=function(){let e=1,t,n;const o=new Set;let i=0;const a=new Set;function l(){if(t)i&&(clearTimeout(i),i=0);else return;i=setTimeout(()=>{t.close()},Un*2);const p=new Uint8Array(1);p[0]=jn,t.send(p)}setInterval(()=>{Array.from(o).forEach(p=>{E(p)&&(ie("Handler for event %s requestId %d was expired",p.event,p.requestId),p.requestId?s({requestId:p.requestId,event:Ft,data:{message:re.RequestTookToLong().message}}):o.delete(p))})},1e3),setInterval(()=>{(!t||t.readyState===3)&&u()},T.DELAY_SOCKET_RECONNECT);function c(){return{safeQueue:a,requestId:e,handlers:o,socketInstance:t}}function s(p){const y=[...o.values()];ie("Handlers array length is %d. Response event: %s. Request id: %d",o.size,p.event,p.requestId),y.forEach(g=>{const _=p.requestId;(g.requestId&&g.requestId===_||!g.requestId&&g.event===p.event)&&(ie("Find appropriated handler: %d, event: %s",e,g.event),g.callback(p.data,p),g.once&&(o.delete(g),ie("Handler was removed by *once* params was passed. %o",g)))})}function u(){if(typeof n!="string"){console.log("Please initialize use-socket");return}console.log(`%cInitializing sockets: %c${n}`,"color: purple","color: black"),t=new WebSocket(n),t.onclose=function(p){ie("Connection to server was stopped: %d %s",p.code,p.reason),Array.from(o).forEach(y=>{y.guaranteedAnswer&&y.serializeString&&a.add(y.serializeString)})},t.onopen=function(){console.log("Socket was %cconnected.","color: green"),[...a.values()].forEach(p=>{f(p),a.delete(p)})},t.onerror=function(p){console.warn(p)},t.onmessage=p=>{var y;try{if(Xo(p.data)){l();return}const g=JSON.parse(p.data);if(!Kt(g)){console.warn("Data is %cnot correct %csocket answer.","color: red","color: black"),console.log(g);return}g.event==="progress"&&o.forEach(_=>{_.event===g.data.for.event&&_.requestId===g.data.for.requestId&&(console.log("UPDATE TIME"),_.timeToLive=new Date().getTime()-_.created+T.TIME_TO_LIVE_SOCKET_REQUEST)}),(y=g==null?void 0:g.data)!=null&&y.refresh&&location.reload(),s(g)}catch(g){console.warn("Socket handle %conmessage%c error.","color: red","color: black"),console.log(g)}}}function f(p){t.send(p)}function d(p,y){v({event:p,callback:y})}function b(p,y){v({event:p,callback:y,once:!0})}function h(){return t&&(t==null?void 0:t.readyState)===1}function m(p,y,g){const _=++e,k=JSON.stringify({requestId:_,event:p,data:y,contextId:Y.contextId,url:I.socketURLHandler?I.socketURLHandler():window.location.href});return h()?f(k):(a.add(k),ie("Socket is not connected. Message was send to save-queue")),new Promise((L,w)=>{v({event:p,requestId:_,once:!0,guaranteedAnswer:!0,serializeString:k,callback:(C,N)=>{if(ie("Promise was resolve with next data:",C),Qo(N))return void w(C);g&&g(C,N),L(C)},timeToLive:T.TIME_TO_LIVE_SOCKET_REQUEST})})}function v(p){const y={timeToLive:0,...p,created:new Date().getTime()};o.add(y)}function E(p){return p.timeToLive===0||typeof p.timeToLive!="number"?!1:new Date().getTime()-p.created>p.timeToLive}return{get socket(){return t},on:d,once:b,emit:m,initialization(p){n=p},getDevInfo:c}}(),Qo=e=>!!Kt(e)&&e.event===Ft,Kt=e=>typeof e=="object"&&e!==null&&"event"in e&&typeof e.event=="string"&&"requestId"in e&&typeof e.requestId=="number"&&"data"in e;function Yt(e,t){return x().emit("list-setting:read",{entity:e,mark:t})}function Zo(e,t){return x().emit("metadata-field:treat",{entity:e,fieldName:t})}function Xt(e,t){return x().emit("entity:create",{...t,entity:e})}function Jt(e,t){return x().emit("entity:delete",{...t,entity:e})}function ei(e,t){return x().emit("usage-context:read",{...t,entity:e})}function Qt(e={}){return x().emit("tool:read",e)}function ti(){return x().emit("metadata-list:read",{})}function Zt(e,t){return x().emit("batch:update",{...t,entity:e})}function st(e,t){return x().emit("entity:resolve",{primaryKey:t,entity:e})}function en(e){return x().emit("history:read",e)}function ni(e,t){return x().emit("entity:count",{...t,entity:e})}function tn(e){return`/${Wn}/${e}`}function he(e){return{exec(t,n){switch(e.name){case"replace-boolean":return he.replaceBoolean(t,e.values);case"replace-record-operation":return he.replaceRecordOperation(t)}}}}he.replaceBoolean=ri;he.replaceRecordOperation=oi;function ri(e,t){return typeof e!="boolean"?"":e?t[1]:t[0]}function oi(e){switch(e){case"A":case null:return"+";case"M":return"~";case"N":return"";case"D":return"✖";default:return"?"}}function ii(e={}){return x().emit("tool:execute",e)}const ai=De(Pe("wrap-tool-response"));function nn(e,t){return e.handleConfirmation===void 0&&(e.handleConfirmation=ci),e.handleAffectedEntity===void 0&&(e.handleAffectedEntity=di),e.handleCloseForm===void 0&&(e.handleCloseForm=fi),e.handleValidationResult===void 0&&(e.handleValidationResult=ui),{...t,label:t.title,async callback(n={}){var l;const o=typeof e.values=="function"?e.values(t,e):e.values;let i={};t.action.targetName==="Record"&&o.hasOwnProperty("Id")&&(i.Id=o.Id,delete o.Id);const a=()=>ii({name:t.name,values:{...o,...n},primaryKeys:i,usageContext:t.usageContext}).then(async c=>{var s,u,f,d;if(!si(c))throw new Error("It is impossible to process the result of calls.");if(Array.isArray(e.handlers))for await(const b of e.handlers)await b(t,c,e);if(!c.success)throw e.handleValidationResult&&c.validationEffect&&((u=(s=c.validationEffect)==null?void 0:s.results)!=null&&u.length)&&e.handleValidationResult(t,c.validationEffect,e),new Error(c.message);return t.showValidationResults&&e.handleValidationResult&&c.validationEffect&&(d=(f=c.validationEffect)==null?void 0:f.results)!=null&&d.length&&e.handleValidationResult(t,c.validationEffect,e),c.message&&Ue.add("info",c.message),Array.isArray(c.affectedEntities)&&e.handleAffectedEntity&&c.affectedEntities.forEach(b=>{var h;return(h=e.handleAffectedEntity)==null?void 0:h.call(e,t,b,e)}),t.closeHostForm&&e.handleCloseForm&&e.handleCloseForm(t,e),c}).catch(c=>{if(P("error")(c),e.handleReject)return e.handleReject(t,c,e)});if((l=e.overrides)!=null&&l[t.name])return e.overrides[t.name](t,e);if(t.paramDialog){const c=await pi(t,e);if(c===null)return;n=Object.assign(n,c||{})}return t.requireSave&&e.form&&e.form.changed?e.form.save().then(a):!t.confirmation||!e.handleConfirmation||t.paramDialog?a():e.handleConfirmation(t,a)}}}function si(e){return!!(e&&typeof e=="object"&&"affectedEntities"in e&&"success"in e)}function li(e){const t="Are you sure?";return e===!0||typeof e=="string"&&e.toLowerCase()==="true"||e==="1"?t:typeof e=="string"?e:t}async function ci(e,t){const n=li(e.confirmation);if(!q.getComponentFromStore(T.MODAL_CONFIRM))throw new Error("The 'confirm' modal window is not installed. It provided inside 'constants.MODAL_CONFIRM'");if(await q.promptModal(T.MODAL_CONFIRM,{message:n}))return t()}function ui(e,t){const n=T.MODAL_VALIDATION_EFFECT;if(!q.getComponentFromStore(n))throw new Error("The 'validation-effect' modal window is not installed. It provided inside 'constants.MODAL_VALIDATION_EFFECT'");return new Promise(()=>{q.pushModal(n,t)})}function di(e,t,n){var s;function o(u){return u!==null&&typeof u=="object"&&typeof u.read=="function"}function i(u,f){u&&(ai("Affected Entity %s. Find form with name %s.",f,u.name),u.name===f&&o(u)&&u.read(),u instanceof O.Form&&u.dependencies.forEach(d=>i(d,f)))}_e.emit("affected-entity",t);const{router:a,form:l}=n,c=typeof t.primaryKey=="string"?t.primaryKey:(s=t.primaryKey)==null?void 0:s.Id;if(a&&t&&t.name===e.redirectEntity){_e.emit("display-entity",{primaryKey:c,name:t.name}),I.getEntityLink&&a.push(I.getEntityLink(t.name,c));return}i(l,t.name)}function fi(e,t){const{router:n}=t;n&&e.closeHostForm&&n.back()}function pi(e,t){var n;if((n=e.paramDialog)!=null&&n.name)return q.promptModal(e.paramDialog.name,{paramDialog:e.paramDialog,tool:e,options:t})}let ae={};function G(e,...t){if(typeof e!="string")return console.trace(`Label is not provided for translation: ${e}`),"undefined";let n=O.utils.getPropFromObject((this==null?void 0:this.vocabulary)||ae,e);if(typeof n=="string")return Ct(n,t);const o=O.utils.getPropFromObject(ae==null?void 0:ae.root,e);return typeof o=="string"?Ct(o,t):(typeof n===void 0&&console.warn(`Translation for label "${e}" is not founded.`),e)}function Ct(e,t){return t.forEach((n,o)=>{e=e.replaceAll(new RegExp(`\\{${o}}`,"g"),n)}),e}G.setGlobalVocabulary=function(e){ae=e};G.getScope=function(e){const t=typeof e=="string"?e:"root";return typeof e!="string"&&console.warn(`SCOPE ${e} for translate is not string.`),G.bind({vocabulary:O.utils.getPropFromObject(ae,t.toLowerCase())})};G.setVocabulary=function(e){return typeof e=="string"&&(e=O.utils.getPropFromObject(ae,e)),G.bind({vocabulary:e})};function mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},B={},Ke={exports:{}},ce={};function rn(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function gi(e,t,n){}function hi(e,t,n){}var yi=/javascript\s*\:/img;function vi(e,t){return yi.test(t)?"":t}ce.whiteList=rn();ce.getDefaultWhiteList=rn;ce.onAttr=gi;ce.onIgnoreAttr=hi;ce.safeAttrValue=vi;var wi={indexOf:function(e,t){var n,o;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var o,i;if(Array.prototype.forEach)return e.forEach(t,n);for(o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},be=wi;function bi(e,t){e=be.trimRight(e),e[e.length-1]!==";"&&(e+=";");var n=e.length,o=!1,i=0,a=0,l="";function c(){if(!o){var f=be.trim(e.slice(i,a)),d=f.indexOf(":");if(d!==-1){var b=be.trim(f.slice(0,d)),h=be.trim(f.slice(d+1));if(b){var m=t(i,l.length,b,h,f);m&&(l+=m+"; ")}}}i=a+1}for(;a<n;a++){var s=e[a];if(s==="/"&&e[a+1]==="*"){var u=e.indexOf("*/",a+2);if(u===-1)break;a=u+1,i=a+1,o=!1}else s==="("?o=!0:s===")"?o=!1:s===";"?o||c():s===`
|
|
7
|
-
`&&c()}return be.trim(l)}var Ei=bi,Oe=ce,_i=Ei;function kt(e){return e==null}function Ci(e){var t={};for(var n in e)t[n]=e[n];return t}function on(e){e=Ci(e||{}),e.whiteList=e.whiteList||Oe.whiteList,e.onAttr=e.onAttr||Oe.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Oe.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Oe.safeAttrValue,this.options=e}on.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,o=n.whiteList,i=n.onAttr,a=n.onIgnoreAttr,l=n.safeAttrValue,c=_i(e,function(s,u,f,d,b){var h=o[f],m=!1;if(h===!0?m=h:typeof h=="function"?m=h(d):h instanceof RegExp&&(m=h.test(d)),m!==!0&&(m=!1),d=l(f,d),!!d){var v={position:u,sourcePosition:s,source:b,isWhite:m};if(m){var E=i(f,d,v);return kt(E)?f+":"+d:E}else{var E=a(f,d,v);if(!kt(E))return E}}});return c};var ki=on;(function(e,t){var n=ce,o=ki;function i(l,c){var s=new o(c);return s.process(l)}t=e.exports=i,t.FilterCSS=o;for(var a in n)t[a]=n[a];typeof window<"u"&&(window.filterCSS=e.exports)})(Ke,Ke.exports);var lt=Ke.exports,ct={indexOf:function(e,t){var n,o;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var o,i;if(Array.prototype.forEach)return e.forEach(t,n);for(o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}},Ti=lt.FilterCSS,Si=lt.getDefaultWhiteList,Ve=ct;function an(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var sn=new Ti;function Ai(e,t,n){}function Ii(e,t,n){}function Ni(e,t,n){}function Ri(e,t,n){}function ln(e){return e.replace(Li,"<").replace(Fi,">")}function Oi(e,t,n,o){if(n=mn(n),t==="href"||t==="src"){if(n=Ve.trim(n),n==="#")return"#";if(!(n.substr(0,7)==="http://"||n.substr(0,8)==="https://"||n.substr(0,7)==="mailto:"||n.substr(0,4)==="tel:"||n.substr(0,11)==="data:image/"||n.substr(0,6)==="ftp://"||n.substr(0,2)==="./"||n.substr(0,3)==="../"||n[0]==="#"||n[0]==="/"))return""}else if(t==="background"){if(Le.lastIndex=0,Le.test(n))return""}else if(t==="style"){if(Tt.lastIndex=0,Tt.test(n)||(St.lastIndex=0,St.test(n)&&(Le.lastIndex=0,Le.test(n))))return"";o!==!1&&(o=o||sn,n=o.process(n))}return n=gn(n),n}var Li=/</g,Fi=/>/g,xi=/"/g,Bi=/"/g,Vi=/&#([a-zA-Z0-9]*);?/gim,$i=/:?/gim,Di=/&newline;?/gim,Le=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Tt=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,St=/u\s*r\s*l\s*\(.*/gi;function cn(e){return e.replace(xi,""")}function un(e){return e.replace(Bi,'"')}function dn(e){return e.replace(Vi,function(n,o){return o[0]==="x"||o[0]==="X"?String.fromCharCode(parseInt(o.substr(1),16)):String.fromCharCode(parseInt(o,10))})}function fn(e){return e.replace($i,":").replace(Di," ")}function pn(e){for(var t="",n=0,o=e.length;n<o;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Ve.trim(t)}function mn(e){return e=un(e),e=dn(e),e=fn(e),e=pn(e),e}function gn(e){return e=cn(e),e=ln(e),e}function Pi(){return""}function Mi(e,t){typeof t!="function"&&(t=function(){});var n=!Array.isArray(e);function o(l){return n?!0:Ve.indexOf(e,l)!==-1}var i=[],a=!1;return{onIgnoreTag:function(l,c,s){if(o(l))if(s.isClosing){var u="[/removed]",f=s.position+u.length;return i.push([a!==!1?a:s.position,f]),a=!1,u}else return a||(a=s.position),"[removed]";else return t(l,c,s)},remove:function(l){var c="",s=0;return Ve.forEach(i,function(u){c+=l.slice(s,u[0]),s=u[1]}),c+=l.slice(s),c}}}function ji(e){for(var t="",n=0;n<e.length;){var o=e.indexOf("<!--",n);if(o===-1){t+=e.slice(n);break}t+=e.slice(n,o);var i=e.indexOf("-->",o);if(i===-1)break;n=i+3}return t}function Ui(e){var t=e.split("");return t=t.filter(function(n){var o=n.charCodeAt(0);return o===127?!1:o<=31?o===10||o===13:!0}),t.join("")}B.whiteList=an();B.getDefaultWhiteList=an;B.onTag=Ai;B.onIgnoreTag=Ii;B.onTagAttr=Ni;B.onIgnoreTagAttr=Ri;B.safeAttrValue=Oi;B.escapeHtml=ln;B.escapeQuote=cn;B.unescapeQuote=un;B.escapeHtmlEntities=dn;B.escapeDangerHtml5Entities=fn;B.clearNonPrintableCharacter=pn;B.friendlyAttrValue=mn;B.escapeAttrValue=gn;B.onIgnoreTagStripAll=Pi;B.StripTagBody=Mi;B.stripCommentTag=ji;B.stripBlankChar=Ui;B.attributeWrapSign='"';B.cssFilter=sn;B.getDefaultCSSWhiteList=Si;var je={},te=ct;function Wi(e){var t=te.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=te.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function Hi(e){return e.slice(0,2)==="</"}function qi(e,t,n){var o="",i=0,a=!1,l=!1,c=0,s=e.length,u="",f="";e:for(c=0;c<s;c++){var d=e.charAt(c);if(a===!1){if(d==="<"){a=c;continue}}else if(l===!1){if(d==="<"){o+=n(e.slice(i,c)),a=c,i=c;continue}if(d===">"||c===s-1){o+=n(e.slice(i,a)),f=e.slice(a,c+1),u=Wi(f),o+=t(a,o.length,u,f,Hi(f)),i=c+1,a=!1;continue}if(d==='"'||d==="'")for(var b=1,h=e.charAt(c-b);h.trim()===""||h==="=";){if(h==="="){l=d;continue e}h=e.charAt(c-++b)}}else if(d===l){l=!1;continue}}return i<s&&(o+=n(e.substr(i))),o}var Gi=/[^a-zA-Z0-9\\_:.-]/gim;function zi(e,t){var n=0,o=0,i=[],a=!1,l=e.length;function c(b,h){if(b=te.trim(b),b=b.replace(Gi,"").toLowerCase(),!(b.length<1)){var m=t(b,h||"");m&&i.push(m)}}for(var s=0;s<l;s++){var u=e.charAt(s),f,d;if(a===!1&&u==="="){a=e.slice(n,s),n=s+1,o=e.charAt(n)==='"'||e.charAt(n)==="'"?n:Yi(e,s+1);continue}if(a!==!1&&s===o){if(d=e.indexOf(u,s+1),d===-1)break;f=te.trim(e.slice(o+1,d)),c(a,f),a=!1,s=d,n=s+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),a===!1)if(d=Ki(e,s),d===-1){f=te.trim(e.slice(n,s)),c(f),a=!1,n=s+1;continue}else{s=d-1;continue}else if(d=Xi(e,s-1),d===-1){f=te.trim(e.slice(n,s)),f=At(f),c(a,f),a=!1,n=s+1;continue}else continue}return n<e.length&&(a===!1?c(e.slice(n)):c(a,At(te.trim(e.slice(n))))),te.trim(i.join(" "))}function Ki(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="="?t:-1}}function Yi(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="'"||n==='"'?t:-1}}function Xi(e,t){for(;t>0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function Ji(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function At(e){return Ji(e)?e.substr(1,e.length-2):e}je.parseTag=qi;je.parseAttr=zi;var Qi=lt.FilterCSS,K=B,hn=je,Zi=hn.parseTag,ea=hn.parseAttr,xe=ct;function Fe(e){return e==null}function ta(e){var t=xe.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=xe.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=xe.trim(e.slice(0,-1))),{html:e,closing:n}}function na(e){var t={};for(var n in e)t[n]=e[n];return t}function ra(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(o){return o.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function yn(e){e=na(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=K.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=ra(e.whiteList||e.allowList):e.whiteList=K.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":K.attributeWrapSign,e.onTag=e.onTag||K.onTag,e.onTagAttr=e.onTagAttr||K.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||K.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||K.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||K.safeAttrValue,e.escapeHtml=e.escapeHtml||K.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Qi(e.css))}yn.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,o=n.whiteList,i=n.onTag,a=n.onIgnoreTag,l=n.onTagAttr,c=n.onIgnoreTagAttr,s=n.safeAttrValue,u=n.escapeHtml,f=t.attributeWrapSign,d=t.cssFilter;n.stripBlankChar&&(e=K.stripBlankChar(e)),n.allowCommentTag||(e=K.stripCommentTag(e));var b=!1;n.stripIgnoreTagBody&&(b=K.StripTagBody(n.stripIgnoreTagBody,a),a=b.onIgnoreTag);var h=Zi(e,function(m,v,E,p,y){var g={sourcePosition:m,position:v,isClosing:y,isWhite:Object.prototype.hasOwnProperty.call(o,E)},_=i(E,p,g);if(!Fe(_))return _;if(g.isWhite){if(g.isClosing)return"</"+E+">";var k=ta(p),L=o[E],w=ea(k.html,function(C,N){var V=xe.indexOf(L,C)!==-1,D=l(E,C,N,V);return Fe(D)?V?(N=s(E,C,N,d),N?C+"="+f+N+f:C):(D=c(E,C,N,V),Fe(D)?void 0:D):D});return p="<"+E,w&&(p+=" "+w),k.closing&&(p+=" /"),p+=">",p}else return _=a(E,p,g),Fe(_)?u(p):_},u);return b&&(h=b.remove(h)),h};var oa=yn;(function(e,t){var n=B,o=je,i=oa;function a(c,s){var u=new i(s);return u.process(c)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=i,function(){for(var c in n)t[c]=n[c];for(var s in o)t[s]=o[s]}(),typeof window<"u"&&(window.filterXSS=e.exports);function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(ze,ze.exports);var ia=ze.exports;const aa=mi(ia);function sa(e){return e=e.replace(/\*\*([^*]+)\*\*/g,"<b>$1</b>"),e=e.replace(/\[icon:([^\]]+)]/g,"<widget-icon>$1</widget-icon>"),e=e.replace(/\[(.*)]\((.*)\)/g,'<router-link to = "$2">$1</router-link>'),aa(e)}function la(e,t,n,o){let i=e+t/60+n/3600;return(o=="S"||o=="W")&&(i=i*-1),i}function ca(e,t){const n={dir:e<0?t==="long"?"W":"S":t==="long"?"E":"N",deg:0|(e<0?e=-e:e),min:0|(e+=1e-9)%1*60,sec:(0|e*60%1*6e3)/100};return`${n.deg}° ${n.min}' ${n.sec}" ${n.dir}`}function ut(e,t){const n=["forms",e];return t&&n.push(t),"/"+n.join("/")}function vn(e,t){return"/"+[T.PATH_RESOLVER_ENTITY,e,t].join("/")}function ua(){return`/${T.PATH_RESOLVER_ENTITY}/:entity/:primaryKey`}function dt(e){const t=ee.get(e);if(!t)throw new Error(`Metadata ${e} is still missing.`);return t.useCatalogInsteadId?"CatalogId":t.fieldNameForIdentification}function Ye(e,t,n){const o=G.getScope(e.toLowerCase());return t.map(i=>{typeof i.label=="string"&&(i.label=o(i.label)),i.type==="history"&&(i.onClick=l=>q.openModal(T.MODAL_HISTORY,{primaryKey:l[dt(e)],entity:e}),i.icon="history",i.class="widget-list-cell-history",i.hint="Open the History");const a=i.displayMode;if(a){const l=async c=>{try{const s=c[ne(i)];return[await st(fa(i,c),s),s]}catch{return[]}};a&&(a==="form"?i.link=c=>{const s=c[ne(i)];return s?vn(i.entity,s):null}:i.onClick=async c=>{const[s,u]=await l(c);if(!s||!u)return null;switch(i.displayMode){case"modal":return q.openModal(T.MODAL_ENTITY,{entity:s,primaryKey:u});case"inline":return n.activate(s,u,c)}}),i.class="widget-table-cell_link cursor_pointer",typeof i.value!="string"&&(i.value=(c,s)=>s[i.name[1]])}return da(i,i.type,i.presentation),I.listConvertCellConfigHandler&&I.listConvertCellConfigHandler(e,i),i})}function da(e,t,n){switch(t){case"Decimal":{n==="Money"&&(e.type="money");break}}return e}const fa=(e,t)=>e.useObjectTypeName?t[e.name[2]]:e.entity?e.entity:null;function pa(e){return x().emit("usage-context:read-mandatory-fields",e)}async function ma(e,t,n){const o=await fetch(`/close-api/document-builder/${e}/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!o.ok)throw new Error(T.DEFAULT_ERROR_MESSAGE);const i=await o.blob();nt(i,`${e}.pdf`,{blank:!0})}function ga(e){if(!Array.isArray(I.arrayListCellHandlers))throw new Error("Configuration has mistake: arrayListCellHandlers is not an array");I.arrayListCellHandlers.push(e)}function ha(e,t){const n=ne(e);return n?O.utils.getPropFromObject(t,n):null}function ya(e){if(!Array.isArray(I.arrayFieldParamsHandlers))throw new Error("Configuration has mistake: arrayListCellHandlers is not an array");I.arrayFieldParamsHandlers.push(e)}function va(e){if(!Array.isArray(I.arrayListRowHandlers))throw new Error("Configuration has mistake: arrayListRowHandlers is not an array");I.arrayListRowHandlers.push(e)}const wa={addListCellHandler:ga,getCellModelValue:ha,addFieldParamsHandler:ya,addListRowHandler:va};var wn=(e=>(e.form="form",e.inline="inline",e.modal="modal",e))(wn||{});function ba(){const e=r.ref(null);function t(n){e.value=n}return{activeRow:e,activateRow:t}}function Ea(e,t){return typeof e!="object"||e===null?!1:Object.values(e).join().toLowerCase().includes(t)}async function bn(e,t){e()&&(await t(),await bn(e,t))}function _a(e,t,n={}){let o=!1;const i=r.ref(""),a=r.computed(()=>l.filter(w=>u(w,i.value))),l=r.reactive([]);let c=0;const s=r.ref(!1);let u=(n==null?void 0:n.filterSearchFn)||((w,C)=>Ea(w,C));function f(){return n.masterEntities?typeof n.masterEntities=="function"?n.masterEntities():n.masterEntities:[]}function d(){const w=_();return typeof w.limit!="number"&&(w.limit=100),w.offset=c,(n.request||le)(e,w).then(N=>(c+=N.length,N))}function b(w,C){var V;return typeof w.Version=="number"?w.Version:(V=l.find(D=>D.Id===C))==null?void 0:V.Version}function h(w,C){const N=l.findIndex(V=>V.Id===w);if(N===-1)throw new Error(`Can't found item with Id ${w}`);l.splice(N,1,C)}function m(w){const C=l.findIndex(N=>N.Id===w);if(C===-1)throw new Error(`Can't found item with Id ${w}`);l.splice(C,1)}async function v(w,C){try{const N=_(),V=b(C,w);delete C.Version,await it(e,{id:w,values:C,version:V,masterEntities:f()});const D=await le(e,{fields:N.fields||"",id:w});h(w,D)}catch(N){P()(N)}}async function E(w,C={}){try{const N=_(),V=b(C,w);delete C.Version,await Jt(e,{id:w,version:V,masterEntities:f()}),m(w)}catch(N){P()(N)}}async function p(w){try{await Xt(e,{values:w,masterEntities:f()}),await k()}catch(C){P()(C)}}let y;async function g(){s.value=!0;try{y!=null&&y.signal&&!y.signal.aborted&&y.abort();let w=y=new AbortController,C=0;const V=_().limit||0;if(i.value&&!V){console.warn("Using textSearch assumes the use of limit.");return}await bn(()=>(V>0?C<V:!0)&&!o&&!w.signal.aborted,async()=>{const D=await d();w.signal.aborted||(l.push(...D),C+=D.filter(Q=>u(Q,i.value)).length,(D.length<V||V===0)&&(o=!0))})}catch(w){P()(w)}s.value=!1}function _(){return typeof t=="function"?t():t}async function k(){try{c=0,o=!1,l.splice(0,l.length),await g()}catch(w){P()(w)}}function L(){if(y)return y.abort();s.value=!1}return{array:l,updateById:v,next:g,reload:k,wait:s,create:p,deleteById:E,textSearch:i,filteredArray:a,abort:L}}function Ca(){function e(){return{organizations:Y.organizations,currentContextId:Y.contextId,person:Y.person,context:Y.context,contextType:Y.contextType,userId:Y.userId}}const t=r.reactive(e());return Y.onupdateContext(()=>{Object.assign(t,e())}),t}function ka(e,t,n){return x().emit("communication:create",{entityName:e,entityCatalogId:t,targetCode:n})}function Ta(e,t,n){return x().emit("communication:read",{entityName:e,entityCatalogId:t,targetCode:n})}function Sa(e,t){return x().emit("communication-message:create",{communicationId:e,text:t})}function Aa(e){return x().emit("communication-message:read",{communicationId:e})}function Ia(e){const t=O.Form.getParentForm(),n=r.reactive([]);return t&&t.subscribe(e),e.read=()=>Aa(e.id).then(o=>(n.splice(0,n.length,...o),o)),{array:n}}function Na(e,t){e.read=()=>{const o=n();return Promise.resolve().then(()=>{if(!e.name)throw re.EntityWithoutName(e);return le(e.name,o)}).then(mt).then(i=>(i.hasOwnProperty("Version")&&(e.version=i.Version),e.setValues(i),i)).catch(P())},e.save=()=>{const o=n();return Promise.resolve().then(()=>{if(!e.name)throw re.EntityWithoutName(e);return it(e.name,{id:o.id,values:e.changes,version:e.version})}).then(i=>{e.version=i.version}).catch(i=>{throw P()(i),i})};function n(){return typeof t=="function"?t():t}}function Se(e){if(!e)return r.inject(T.PROVIDE_NAME_METADATA);ee.initEntity(e);const t=r.computed(()=>ee.state[e]);return r.provide(T.PROVIDE_NAME_METADATA,t),r.provide(T.PROVIDE_ENTITY_NAME,e),t}function ft(e,t={}){if(!e)return r.inject(T.PROVIDE_NAME_USAGE_CONTEXT);const n=r.ref(null);return r.provide(T.PROVIDE_NAME_USAGE_CONTEXT,n),{state:n,update:async function(){n.value=await ei(e,Ra(t||{}))}}}function Ra(e){return typeof e=="function"?e():e}function Oa(e){if(!e)return r.inject(T.PROVIDE_NAME_ACTIONS);const t=r.ref(!1),n=r.reactive([]),o=r.computed(()=>n.map(l=>nn(e,l))),i={actions:o,update:a};r.provide(T.PROVIDE_NAME_ACTIONS,i),e.router=se.useRouter();function a(){if(t.value)return;t.value=!0,n.splice(0,n.length);const l=e==null?void 0:e.form;return Qt({masterEntities:e==null?void 0:e.masterEntities,id:l==null?void 0:l.id,entity:l==null?void 0:l.name}).then(c=>n.splice(0,0,...c)).catch(P("error")).finally(()=>t.value=!1)}return{actions:o,update:a,loading:r.readonly(t)}}function La(e){function t(n){n.key==="Enter"&&e()}r.onMounted(()=>{document.addEventListener("keypress",t)}),r.onUnmounted(()=>{document.removeEventListener("keypress",t)})}function Fa(e,t={}){const n=r.reactive([]),o=s=>{const u=r.unref(e);if(s===void 0){n.length===0?u.forEach(a):u.forEach(l);return}i(s)?l(s):a(s)},i=s=>n.includes(s),a=s=>{t.handleSelect&&!t.handleSelect(s)||i(s)||n.push(s)},l=s=>{const u=n.findIndex(f=>f===s);u!==-1&&n.splice(u,1)},c=r.computed(()=>{const s=r.unref(e);return n.length===s.length&&s.length!==0});return[n,o,c,a,l]}function xa(e){const t=r.ref(""),n=r.computed(()=>{const o=t.value.toLowerCase();return r.unref(e).filter(i=>t.value.length?Object.values(i).join().toLowerCase().includes(o):!0)});return{search:t,searchArray:n}}class He{static async getStartConfig(t,n){return x().emit("wizard:configuration",{process:t,entity:n})}static async startProcess(t,n){return x().emit("wizard:start",{process:t,entity:n})}static async runStep(t,n,o,i,a){return x().emit("wizard:step",{process:t,entity:n,stepName:o,token:i,values:a})}}function Ba(e){return e.statusName===U.Completed}function Va(e){return[U.FinalStepWithConfirmation,U.NextStepWithConfirmation].includes(e.statusName)}function $a(e){return e.statusName===U.ValidationError}function Da(e){return e.statusName===U.Undefined}function Pa(e,t,n){let o=null,i=[];const a=r.ref(!1),l=r.ref(null),c=r.computed(()=>d(i,l.value)),s=r.ref(null),u=r.reactive([]),f=r.computed(()=>u.map(y=>d(i,y)));function d(y,g){return y.find(_=>_.name===g)||null}async function b(y){var g;if(Da(y)){await n.onDisplayDataSet(y);return}if(!(Va(y)&&!await n.onDisplayDataSet(y))){if($a(y))return void n.onValidation(y.validationResults);v(y),await r.nextTick();{const _=((g=d(i,l.value))==null?void 0:g.fields)||[];if([U.FinalStep,U.NextStep,U.FinalStepWithConfirmation,U.NextStepWithConfirmation].includes(y.statusName)&&(!_.length||Ma(_,n.presets)))return p(n.presets||{})}Ba(y)&&n.onCompleted(y)}}async function h(){try{await m(),await E()}catch(y){P("error")(y)}}function m(){return a.value="Loading process information.",He.getStartConfig(t,e).then(y=>(s.value={label:y.processTitle,info:y.processInfo,icon:y.processIcon},i=y.steps.map(g=>{const _=g.frontendEntity.rootObject,k=Object.fromEntries(g.frontendEntity.objectTypes.map(L=>[L.name,L.properties]));return{label:g.title,name:g.stepName,number:g.number,rootObjectName:_,objectTypes:k,fields:k[_],buttonCaption:g.buttonCaption}}))).finally(()=>{a.value=!1})}function v(y){return[U.FinalStepWithConfirmation,U.NextStepWithConfirmation,U.NextStep,U.Completed,U.FinalStep].includes(y.statusName)?(o=y.token,l.value=y.nextStepName):console.log("Saving is not completed:",y),y}function E(){return a.value="Starting process",He.startProcess(t,e).then(b).catch(P("error")).finally(()=>{a.value=null})}function p(y={}){const g=l.value;return!o||!g?Promise.reject("Not step or token."):(a.value="Waiting for result...",He.runStep(t,e,g,o,y).then(b).then(_=>(u[u.length-1]!==g&&u.push(g),_)).catch(P("error")).finally(()=>{a.value=!1}))}return{initialize:h,loading:a,currentStepConfig:c,currentStepName:l,arrayPassedSteps:f,arrayProcessStepName:u,processInfo:s,next:p}}function Ma(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(!O.utils.getPropFromObject(t,o.name))return!1}return!0}function ja(e,t){const n=typeof e=="string"?e:e.name,o=Object.assign({},typeof e=="string"?{}:e.arguments,t||{});return{name:n,arguments:o}}function Ua(e){return e.limit||(e.limit=150),e}function En(e,t={}){var v,E;const{limit:n}=Ua(t),{prefilters:o,order:i}=e;if(!e.entity)throw new Error("-");if(!e.config)throw new Error("-");const a=((v=t==null?void 0:t.overrideConfig)==null?void 0:v.entity)||e.entity,l=((E=t==null?void 0:t.overrideConfig)==null?void 0:E.config)||e.config,c=e.customFilters||[],s=[l.map(p=>f(p.label)).join(",")],u=r.reactive({count:0,rejected:!1,finished:!1,offset:0});function f(p){p===null&&(p=""),p===void 0&&(p="-");let y=typeof p!="string"?String(p):p;return y=y.replace(/"/g,'""'),y.search(/("|,|\n)/g)>=0&&(y='"'+y+'"'),y}function d(){var k,L;const p=(((k=t.overrideConfig)==null?void 0:k.fields)||at(l)).join(" "),y=t.overrideConfig?t.overrideConfig.order:i,g=t.overrideConfig?t.overrideConfig.filter:typeof o=="string"?o:R(o||{}),_=t.overrideConfig?t.overrideConfig.customFilters:c.map(w=>{var C;return ja(w,(C=t.customFiltersData)==null?void 0:C[typeof w=="string"?w:w.name])});return le(((L=t.overrideConfig)==null?void 0:L.entity)||a,{offset:u.offset,limit:n,fields:p,order:y,filter:g,customFilters:_}).then(w=>(u.offset+=n,w))}function b(){const p="data:text/csv;charset=utf-8,"+s.join(`\r
|
|
8
|
-
`),
|
|
5
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),O=require("jenesius-vue-form"),se=require("vue-router"),In=require("date-and-time"),De=require("debug"),W=require("jenesius-vue-modal"),L=class L extends Error{constructor(t,n=null){super(),this.message=t,this.details=n,this.id=L.ID++}static ParentFormNotFound(){return new L("Can't found parent form.")}static UndefinedNameOfCompositeFormController(t){return new L("Composite object name is undefined",t)}static EntityWithoutName(t){return new L("'Entity doesn't have a name",t)}static NotResolvedNameEventEmitter(t){return new L(`'${t}' is not a valid Event emitter name`)}static FormIsNotValidated(t){return new L("Form is not validated",t)}static ListWorkerIsRunningOrEnd(t){return new L("List data request is running or already done",t)}static ObjectIdNotNumber(t){return new L(`${t} (id) is not a number`)}static UndefinedErrorId(t,n){return L.ApiNotAvailable()}static ApiError(t){return new L("Request error",t)}static ApiNotAvailable(){return new L(`Sorry, we experience difficulties here.
|
|
6
|
+
Please try again later or submit a feedback if problem doesn't go.`)}static AuthServiceError(t,n){return!t&&!n?L.ApiNotAvailable():new L(t||"Authorization Error",n)}static ApiResponseParseFailed(){return L.ApiNotAvailable()}static MissingIdInValuesEntity(t){return new L("Object doesn't have id",t)}static ObjectWithIdNotFound(t,n){return new L(`Can't find object with id: ${t}`,n)}static ObjectWithoutConnectToPresentArray(t,n){return new L("Object is not found.",{object:t,array:n})}static EntityWithoutId(t){return new L("Entity doesn't have id.",t)}static NotFoundedTableIndex(t,n){return new L(`Can't find the element with tableIndex ${t}`,n)}static UndefinedError(t,n=[]){return new L(t,n)}static TableArrayAlreadyIncludeProvidedIndexValue(t,n,o){return new L(`Array already includes the element with value ${t}`,{array:n,table:o})}static MetadataEntityIsNotAvailable(t){return new L(`Metadata for the ${t} is not currently available.`)}static RequestTookToLong(){return new L("The request took too long to complete. Try again later.")}};L.ID=0;let re=L;const Nn="Please try again later or submit a feedback if problem doesn't go.";function Rn(e){return e.text().then(t=>{try{return JSON.parse(t)}catch{return Nn}})}function fe(e,t={}){return t.redirect="manual",fetch(e,t).then(n=>n.type==="opaqueredirect"?void window.location.replace("/auth"):n).catch(()=>{throw re.ApiNotAvailable()}).then(n=>Rn(n).then(o=>{if(!n.ok)throw o;return o}))}class On{constructor(){this.public=!1,this.errors=new Proxy([],{set:(t,n,o)=>(n!=="length"&&this.public&&console.log(`Journal [Error] ${JSON.stringify(o)}`),t[n]=o,!0)}),window._journal=this}get error(){return{add:(...t)=>{this.errors.push(t)},clean:()=>{this.errors.splice(0,this.errors.length)},console:()=>{console.log(this.errors)}}}welcome(){console.log("The journal has been initialized. To get access check %c_journal in console.","background: blue; color: white")}}new On;class Ln{static invite(t,n,o){return fe("/close-api/accounts/invitePerson",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationId:t,personKey:n,relatedRoleCode:o})})}static accept(t,n){return fe("/close-api/accounts/markInvite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({invitationId:t,version:n,mark:!0})})}static decline(t,n){return fe("/close-api/accounts/markInvite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({invitationId:t,version:n,mark:!1})})}}class Fn{static getRequiredDocuments(t,n,o){const i=new URLSearchParams({entity:t,primaryKey:n,statusCode:o});return fetch(`/close-api/views/required-documents?${i.toString()}`).then(a=>a.json())}}class de{static url(){return"close-api/billing"}static getBillingMetadata(t){return fetch(`/${de.url()}/calculator/${t}`)}static calculate(t,n){return fe(`/${de.url()}/calculator`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({entity:t,values:n})}).then(o=>{if(o&&o.status===1)return o;throw Array.isArray(o.notes)?new Error(o.notes[0]):re.ApiNotAvailable()})}static parseMetadataField(t){function n(o){switch(o.type){case"ValueType":switch(o.dataType){case"Integer":return"number";default:return o.dataType}case"EntityReference":return o.dataType}}return{name:t.name,label:t.title,required:t.required,type:n(t)}}static createOnlinePayment(t,n){return fe(`/${de.url()}/online-payment`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paymentId:t,returnURL:n})})}static applyOnlinePayment(t){return fe(`/${de.url()}/online-payment`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({response:t})})}}const xn={class:"widget-table__head-cell"},Bn={key:1,class:"widget-table__head-label margin_0 text_overflow"},Lt=r.defineComponent({__name:"widget-table-head-cell",props:{label:{},type:{}},emits:["select"],setup(e,{emit:t}){const n=t;function o(){n("select")}return(i,a)=>(r.openBlock(),r.createElementBlock("th",xn,[i.type==="multi-select"?(r.openBlock(),r.createBlock(r.unref(O.FormField),{key:0,onClick:o})):(r.openBlock(),r.createElementBlock("span",Bn,r.toDisplayString(i.label),1))]))}}),Vn={class:"widget-table__head"},$n=r.defineComponent({__name:"widget-table-head",props:{config:{}},setup(e){return r.computed(()=>Lt),(t,n)=>(r.openBlock(),r.createElementBlock("tr",Vn,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.config,o=>r.renderSlot(t.$slots,"default",r.mergeProps({ref_for:!0},o),void 0,!0)),256))]))}}),M=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Dn=M($n,[["__scopeId","data-v-aa18d6fa"]]);function Qe(e){return Array.isArray(e)?Qe(e[0]):typeof e!="string"?null:e}function ne(e){return Qe(e.name)}function Pn(e){const t=new RegExp(/\$\{([a-zA-Z0-9_.]+)}/,"g"),n=[];let o;for(;(o=t.exec(e))!==null;)n.push(o[1]);return n}function Mn(e,t){return Pn(e).forEach(o=>{e=e.replace(new RegExp("\\$\\{"+o+"}","g"),O.utils.getPropFromObject(t,o))}),e}function qe(e){return t=>typeof t=="string"||typeof t=="number"?`${t} ${e}`:""}function Ce(e,t){const n=ne(e);if(typeof e.value=="string")return Mn(e.value,t);let o=n?O.utils.getPropFromObject(t,n):null;if(o===void 0&&(o=null),typeof e.value=="function")return e.value(o,t);if(e.value===null)return null;switch(e.unitValue&&(o=qe(e.unitValue)(o)),e.unit&&(o=qe(e.unit)(o)),e.type){case"number":{typeof o=="number"&&(o=new Intl.NumberFormat().format(o));break}case"date":{o=Be(typeof o=="string"?o:null);break}case"TimeSpan":{const i=o==null?void 0:o.match(/((\d)+.)?(\d+:\d+:\d+)/);i&&(o=`${i[2]||0} D ${i[3]}`);break}case"dateTime":case"dateWithTime":{o=rt(typeof o=="string"?o:null);break}case"money":{o=Gt(o);break}case"DateTime":{o=Be(typeof o=="string"?o:null,e.format||I.dateTimeFormat);break}}return e.formatter&&(o=he(e.formatter).exec(o,t)),typeof o=="boolean"&&(o=o?"✓":"—"),o}const jn=1,Un=5e3,Wn="static-folder",Ft="request-error",xt="EntityTypeName",Hn="REFERENCE_CHANGES",T={LIST_ACTIVE_NEW:-1,DEFAULT_ERROR_MESSAGE:"Please try again later or submit a feedback if problem doesn't go.",LOCALSTORAGE_CURRENT_CONTEXT_KEY:"CurrentContext",LOCALSTORAGE_LANGUAGE_KEY:"CurrentLanguage",DELAY_SOCKET_RECONNECT:1e3,PROVIDE_NAME_METADATA:"provide-metadata-config",PROVIDE_NAME_USAGE_CONTEXT:"provide-usage-context-config",PROVIDE_NAME_ACTIONS:"provide-actions",PROVIDE_ENTITY_NAME:"provide-entity-name",MODAL_VALIDATION_EFFECT:"validation-effect",MODAL_CONFIRM:"confirm",MODAL_LIST_DOWNLOAD:"list-download",MODAL_LIST_SETTINGS:"list-settings",MODAL_SIMPLE_TOOL_PARAMETERS:"SimpleToolParameters",MODAL_BATCH_VALUES:"batch-values",MODAL_ENTITY:"form-entity",MODAL_HISTORY:"entity-history",TIME_TO_LIVE_SOCKET_REQUEST:45e3,CORE_DEBUG_LABEL:"eservices-core",VISIBLE_ITEM_PROVIDE_NAME:"visible-item-provider",EVENT_FORM_UPDATE:"form-update",EVENT_AFFECTED_ENTITY:"affected-entity",DEFAULT_ORDER_DIR:"asc",TABLE_MOCK_FIELD:"_A_MOCK_ID_FIELD",OBJECT_TYPE_NAME_FIELD:xt,FIELD_NAME_REFERENCE_CHANGES:Hn,PATH_RESOLVER_ENTITY:"resolver",TOOL_PRINT_NAME:"Print"};function Pe(e){return[T.CORE_DEBUG_LABEL,e].join(":")}const qn={class:"widget-filter-text flex-column gap_10"},Gn={class:"flex gap_20"},zn=r.defineComponent({__name:"widget-filter-text",props:{values:{}},emits:["update:values","clear"],setup(e,{emit:t}){const n=e,o=t,i=new O.Form({parent:!1}),a={begin:"Begin with",end:"End with",include:"Contains"};function c(u="",f="include"){return{text:u,option:f}}r.onMounted(()=>{const u=n.values?typeof n.values=="string"?c(n.values):n.values:c();i.setValues(u)});function l(){o("update:values",i.values)}function s(){o("clear")}return r.watch(()=>n.values,u=>i.setValues(u||c()),{immediate:!0}),(u,f)=>{const d=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",qn,[r.createElementVNode("div",Gn,[r.createVNode(r.unref(O.FormField),{name:"text",type:"text",label:"Search"})]),r.createVNode(r.unref(O.FormField),{name:"option",type:"radio",options:a}),r.createElementVNode("div",null,[r.createVNode(d,{onClick:l,type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(G)("Apply")),1)]),_:1}),r.createVNode(d,{onClick:s},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(G)("Clear")),1)]),_:1})])])}}}),Kn=M(zn,[["__scopeId","data-v-f6da3bed"]]),Yn={class:"widget-filter-enum"},Xn={class:"flex gap-10 padding-10"},Jn=r.defineComponent({__name:"widget-filter-entity",props:{baseEntity:{},filters:{},values:{},filterMetadata:{}},emits:["update:values","readProcess"],setup(e,{emit:t}){const n=e,o=r.ref([]),i=Se(n.filterMetadata.entity),a=f=>(n.values||[]).includes(f),c=t;function l(f){const d=n.values||[];return d.includes(f)?c("update:values",d.filter(w=>w!==f)):c("update:values",[...d,f])}const s=oe(async()=>{o.value=await le(n.baseEntity,{fields:n.filterMetadata.name.join(" "),order:[n.filterMetadata.name[1],"asc"],distinct:!0,filter:N(n.filters)}).then(f=>f.map(d=>({label:d[n.filterMetadata.name[1]],value:d[n.filterMetadata.name[0]]})))});function u(){c("update:values",[])}return r.watch(()=>s.loading,f=>{c("readProcess",f?"start":"end")},{immediate:!0}),r.watch(()=>i.value,()=>{s.loading||s.call()},{immediate:!0}),(f,d)=>{const w=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",Yn,[r.createElementVNode("div",Xn,[r.createVNode(w,{label:"Reload filter",loading:r.unref(s).loading||!1,icon:"reload",onClick:d[0]||(d[0]=()=>r.unref(s).call())},null,8,["loading"]),r.createVNode(w,{label:"Clear",onClick:u})]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,y=>(r.openBlock(),r.createBlock(r.unref(O.FormField),{class:"widget-filter-enum-item",key:y.value,onClick:()=>l(y.value),type:"single-checkbox","model-value":a(y.value),label:y.label},null,8,["onClick","model-value","label"]))),128))])}}}),Qn=M(Jn,[["__scopeId","data-v-4c82f6e7"]]),Ee=r.reactive({});function Zn(){wt(),setInterval(wt,50)}function Bt(){return Ee}function wt(){const e={};Object.entries(localStorage).forEach(([t,n])=>{e[t]=!0,Ee[t]!==n&&(Ee[t]=n)}),Object.keys(Ee).forEach(t=>{e[t]||delete Ee[t]})}const er={class:"widget-filter-number flex-column es-gap-10"},tr={class:"flex es-gap-10"},nr={class:"flex gap-10"},rr=r.defineComponent({__name:"widget-filter-number",props:{baseEntity:{},values:{}},emits:["update:values","readProcess"],setup(e,{emit:t}){const n=e,o=t,i=new O.Form({parent:!1}),a=zt(()=>{const l=i.getValueByName("min"),s=i.getValueByName("max");return o("update:values",{min:l,max:s})},800);i.onvalue(a),r.watch(()=>n.values,()=>{n.values&&i.setValues(n.values)},{immediate:!0});function c(){i.cleanValues()}return(l,s)=>{const u=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",er,[r.createElementVNode("div",tr,[r.createVNode(r.unref(O.FormField),{name:"min",label:"More than",type:"number"}),r.createVNode(r.unref(O.FormField),{name:"max",label:"Less than",type:"number"})]),r.createElementVNode("div",nr,[r.createVNode(u,{label:"Clear",onClick:c})])])}}}),bt=M(rr,[["__scopeId","data-v-f9cd559e"]]),I={getEntityLink(e,t){return`/forms/${e}/${t}`},iconHandlerText(){return""},iconTag:"i",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",tableFilterEntityBind:{String:Kn,Entity:Qn,Decimal:bt,Integer:bt},arrayListCellHandlers:[],arrayListRowHandlers:[],arrayFieldParamsHandlers:[]};function or(e){Zn();for(let t in e)I[t]=e[t]}const ir={props:{name:String},setup(e,t){let n="unknown";try{n=t.slots.default()[0].children}catch{n=e.name}typeof n!="string"&&console.warn(`Name for Icon.vue is not string. ${n}`);try{n=n.replace(/\s+/g,"")}catch{}return()=>r.h(I.iconTag,{class:I.iconHandler?I.iconHandler(n):`icon icon-${n}`},I.iconHandlerText(n))}},ge=M(ir,[["__scopeId","data-v-8a72b45f"]]),ar=De(Pe("setup-list-row"));function sr(e,t){const n=e.config.map(o=>lr(o,e,t));return r.h("tr",{class:"widget-table__row widget-table-row"},n)}function lr(e,t,n){const o=t.values;let i=Ce(e,o);const a={onClick:[],title:e.hint,class:["widget-table__cell widget-table-cell"]};function c(f){a.onClick.push(()=>f(o,e,n))}function l(f){Array.isArray(f)?a.class.push(...f):a.class.push(f)}const s=[],u=[];if(e.hide&&e.hide(o))return[r.h("td")];if(e.type)switch(l(`widget-table-cell_${e.type}`),e.type){case"multi-select":{u.push(r.h(O.FormField,{type:"single-checkbox",modelValue:t.selected})),c(Et.bind(null,n,!0));break}case"select":{u.push(r.h(O.FormField,{type:"single-radio",modelValue:t.selected})),c(Et.bind(null,n,!1));break}}if(e.onClick&&c(e.onClick),e.link)try{const f=e.link(o);if(f){const d=r.h(se.RouterLink,{to:f});u.push(d),l("widget-table-cell_link")}}catch(f){ar("Can't add router link",f)}if(e.href&&(u.push(r.h("a",{href:e.href(o),target:"_blank"})),l("widget-table-cell_link")),(typeof i=="string"||typeof i=="number")&&u.push(r.h("p",{class:"widget-list-cell-text"},i)),e.icon&&(typeof e.icon=="string"&&u.push(r.h(ge,{name:e.icon})),typeof e.icon=="function")){const f=e.icon(o);f!==null&&u.push(r.h(ge,{name:f}))}return e.class&&(typeof e.class=="function"?l(e.class(o)):l(e.class)),I.listCellHandler&&(console.log("listCellHandler is deprecated. Please use coreUtils.addListCellHandler instead."),I.listCellHandler(e,o,{cellNodeChildren:u,addClass:l,addHandleClick:c,context:n})),I.arrayListCellHandlers&&I.arrayListCellHandlers.forEach(f=>f(e,o,{cellNodeChildren:u,addClass:l,addHandleClick:c,context:n})),s.push(r.h("td",a,u)),s}function Et(e,t){e.emit("select",t)}function Ze(e,t){return()=>{try{return sr(e,t)}catch(n){return console.warn(n),null}}}const cr={props:{values:Object,config:Object,selected:Boolean},setup:Ze},ur=["colspan"],_t=r.defineComponent({__name:"widget-table-form",props:{rowLength:{},component:{},values:{},isNew:{type:Boolean}},emits:["save","close"],setup(e,{emit:t}){const n=t,o=r.ref();return r.onMounted(()=>{setTimeout(()=>{o.value&&o.value.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})},250)}),(i,a)=>(r.openBlock(),r.createElementBlock("tr",{class:"widget-table-form",ref_key:"refTableForm",ref:o},[r.createElementVNode("td",{colspan:i.rowLength},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps(i.$attrs,{values:i.values,new:i.isNew,onClose:a[0]||(a[0]=c=>n("close")),onSave:a[1]||(a[1]=c=>n("save",c))}),null,16,["values","new"]))],8,ur)],512))}}),We="update:selectedRows",dr="update:activeRow",Vt=r.defineComponent({__name:"widget-table",props:{array:{},config:{},activeRow:{default:null},selectedRows:{default:()=>[]},classCallback:{},shortcut:{type:Boolean,default:!1},rowOptionsHandler:{type:Function,default:()=>({})}},emits:["save","order"],setup(e,{emit:t}){const n=e,o=r.ref(),i=t,a=r.useSlots(),c=r.computed(()=>{var y;return(y=a==null?void 0:a.default)==null?void 0:y.call(a)[0]});function l(){const g=n.selectedRows.length!==0?[]:[...n.array];i(We,g)}function s(y,g=!0){if(!n.selectedRows)return;if(!g)return i(We,n.selectedRows.includes(y)?[]:[y]);const v=[...n.selectedRows],b=v.indexOf(y);return b===-1?v.push(y):v.splice(b,1),i(We,v)}function u(y){i(dr,y)}function f(y){i("save",y),i("update:activeRow",null)}const d=r.computed(()=>{const y=n.config.filter(g=>g.visible!==!1);return n.shortcut?y.filter(g=>g.name?!!n.array.find(v=>![null,""].includes(Ce(g,v))):!0):y});r.watch(()=>n.activeRow,(y,g)=>{y===null&&typeof g=="number"&&setTimeout(()=>{if(!o.value)return;const v=o.value.querySelector(`tbody>tr:nth-child(${g+1})`)||o.value;v&&v.scrollIntoView({block:"center",behavior:"smooth"})},100)});function w(y){var v;const g={};return(v=I.arrayListRowHandlers)==null||v.forEach(b=>{try{Object.assign(g,b(y,n.rowOptionsHandler()))}catch{console.warn("Problem with arrayListRowHandler.")}}),g}return(y,g)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("table",{class:"widget-table",ref_key:"refTable",ref:o},[r.createElementVNode("thead",null,[r.createVNode(Dn,{config:d.value,onOrder:g[0]||(g[0]=v=>y.$emit("order",v))},{default:r.withCtx(v=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(y.$slots["head-cell"]||Lt),r.mergeProps(v,{onSelect:l}),null,16))]),_:1},8,["config"])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.array,(v,b)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:b},[r.createVNode(cr,r.mergeProps({test:b,config:d.value,values:v,selected:y.selectedRows.includes(v),onSelect:h=>s(v,h),onActivate:h=>u(b),class:y.classCallback?y.classCallback(v):"",ref_for:!0},w(v)),null,16,["test","config","values","selected","onSelect","onActivate","class"]),c.value&&y.activeRow===b?(r.openBlock(),r.createBlock(_t,{key:0,component:c.value,"row-length":y.config.length,values:v,onClose:g[1]||(g[1]=h=>i("update:activeRow",null)),onSave:f,"is-new":!1},null,8,["component","row-length","values"])):r.createCommentVNode("",!0)],64))),128)),y.activeRow===r.unref(T).LIST_ACTIVE_NEW?(r.openBlock(),r.createBlock(_t,{key:0,component:c.value,"row-length":d.value.length,onClose:g[2]||(g[2]=v=>i("update:activeRow",null)),onSave:f,"is-new":!0},null,8,["component","row-length"])):r.createCommentVNode("",!0)])],512),r.renderSlot(y.$slots,"footer")]))}}),fr=r.defineComponent({__name:"widget-spinner",props:{color:{default:"#fff"}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:"widget-spinner",style:r.normalizeStyle({"border-left":`1.1em solid ${t.color}`})},null,4))}}),Te=M(fr,[["__scopeId","data-v-0ef9ae88"]]),pr={class:"widget-button"},mr=r.defineComponent({__name:"widget-button",props:{wait:{type:Boolean}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("button",pr,[t.wait?(r.openBlock(),r.createBlock(Te,{key:0,class:"widget-button-spinner"})):r.createCommentVNode("",!0),r.renderSlot(t.$slots,"default",{},void 0,!0)]))}}),gr=M(mr,[["__scopeId","data-v-450dc564"]]),hr={class:"widget-multi-button-wrap position_relative cursor_pointer"},yr={class:"widget-multi-button-body grid"},vr=["onClick"],wr={class:"widget-multi-button-side-wrap"},br=r.defineComponent({__name:"widget-multi-button",props:{label:{},array:{default:()=>[]}},setup(e){r.useCssVars(c=>({"04895bf1":o.value}));const t=e,n=r.reactive({active:!1,wait:!1}),o=r.computed(()=>t.array.length+(t.label?1:0));function i(c){if(!(typeof c!="function"||n.wait))return n.wait=!0,Promise.resolve().then(c).finally(()=>{n.wait=!1})}function a(c=!n.active){n.active=c}return(c,l)=>(r.openBlock(),r.createElementBlock("div",hr,[r.createElementVNode("div",{class:r.normalizeClass(["overflow_hidden radius_20 widget-multi-button grid",n.active?"widget-multi-button_active":null])},[r.createElementVNode("div",yr,[c.label?(r.openBlock(),r.createElementBlock("p",{key:0,class:"text_md margin_0 text_nowrap widget-multi-button-body-label",onClick:l[0]||(l[0]=s=>a())},r.toDisplayString(c.label),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.array,(s,u)=>(r.openBlock(),r.createElementBlock("p",{class:"text_md margin_0 text_nowrap widget-multi-button-body-label",key:u,onClick:f=>{i(s.callback),a(!1)}},r.toDisplayString(s.label),9,vr))),128))]),r.createElementVNode("div",wr,[r.createElementVNode("div",{class:r.normalizeClass(["grid-center widget-multi-button-side",n.active?"widget-multi-button-side_active":null]),onClick:l[1]||(l[1]=s=>a())},[n.wait?(r.openBlock(),r.createBlock(r.unref(Te),{key:0,class:"widget-multi-button-side-spinner"})):c.array.length>1?(r.openBlock(),r.createBlock(r.unref(ge),{key:1,class:"widget-multi-button-side-icon"},{default:r.withCtx(()=>[r.createTextVNode("angle-small-down")]),_:1})):r.createCommentVNode("",!0)],2)])],2)]))}}),Er=M(br,[["__scopeId","data-v-d43a76ce"]]),_r={class:"widget-loader flex flex-align_center gap_10 padding_15"},kr={class:"text_md"},Me=r.defineComponent({__name:"widget-loader",props:{label:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",_r,[r.createVNode(Te,{color:"var(--primary)",class:"padding_10"}),r.createElementVNode("span",kr,r.toDisplayString(t.label),1)]))}}),Cr=["alt","src"],Tr=r.defineComponent({__name:"widget-image",props:{src:{},alt:{},default:{}},setup(e){const t=e,n=r.ref();return r.onMounted(()=>{n.value&&(n.value.src=t.src),n.value.onerror=function(){t.default&&(n.value.src=t.default)}}),(o,i)=>(r.openBlock(),r.createElementBlock("img",{alt:o.alt,ref_key:"refImage",ref:n,src:o.src||o.$props.default},null,8,Cr))}}),Sr={props:{config:Array,values:Object,selected:Boolean},setup:Ze},Ar=M(Sr,[["__scopeId","data-v-344a8cc1"]]),Ir=e=>(r.pushScopeId("data-v-bf495d6a"),e=e(),r.popScopeId(),e),Nr={class:"widget-list-head-cell"},Rr=Ir(()=>r.createElementVNode("div",{class:"head-cell-resize"},null,-1)),Or=r.defineComponent({__name:"widget-list-head-cell",props:{title:{},label:{},name:{},type:{},minWidth:{},maxWidth:{},width:{},order:{}},emits:["select","order"],setup(e,{emit:t}){const n=e,o=t;return n.title&&console.warn(`For cell ${n.name} using title,it should be replaced with label.`),(i,a)=>(r.openBlock(),r.createElementBlock("th",null,[r.createElementVNode("div",Nr,[r.createElementVNode("div",{class:"head-cell-content flex_grow",style:r.normalizeStyle({"min-width":i.minWidth,"max-width":i.maxWidth,width:i.width})},[i.type==="multi-select"?(r.openBlock(),r.createBlock(r.unref(O.FormField),{key:0,type:"single-checkbox",onClick:a[0]||(a[0]=r.withModifiers(c=>o("select"),["stop","prevent"]))})):(r.openBlock(),r.createElementBlock("p",{key:1,class:"widget-list-head-label head-cell-label list-head-cell-label text_md margin-0",onClick:a[1]||(a[1]=c=>o("order"))},r.toDisplayString(i.title||i.label),1))],4),i.name&&i.order.length&&i.order[0]===i.name?(r.openBlock(),r.createBlock(r.unref(ge),{key:0,class:r.normalizeClass(["head-cell-order",{"head-cell-order_down":i.order.length>1&&i.order[1]==="desc"}])},{default:r.withCtx(()=>[r.createTextVNode("core-arrow-up")]),_:1},8,["class"])):r.createCommentVNode("",!0),Rr])]))}}),Lr=M(Or,[["__scopeId","data-v-bf495d6a"]]),Fr=r.defineComponent({__name:"widget-list-head",props:{config:{},order:{}},emits:["update:config","update:order","select"],setup(e,{emit:t}){const n=e,o=t,i=r.ref(),a=r.ref();r.onMounted(()=>{function u(g,v){let b=-1;do b++,v-=g[b];while(v>0&&b<g.length);return b}function f(g,v){let b=0;for(;v>0&&v>g[b]&&b<g.length;)v-=g[b],b++;return console.log(v,b),b>0?b:0}function d(g){try{a.value.style.insetInlineStart=g+"px"}catch(v){console.log(v)}}function w(g){try{a.value.style.width=g+"px",a.value.style.minWidth=g+"px",a.value.style.maxWidth=g+"px"}catch(v){console.log(v)}}function y(g){return g===null?!1:g.classList.contains("head-cell-resize")}i.value.addEventListener("pointerdown",function(v){var S;function b(A){return A.screenX+m-x}const h=i.value,p=[...h.children].filter(A=>A.localName==="th"),m=((S=h.offsetParent)==null?void 0:S.scrollLeft)||0,_=p.map(A=>A.clientWidth),C=y(v.target),x=h.getBoundingClientRect().left,E=b(v),k=u(_,E),R=_.slice(0,k).reduce((A,$)=>A+$,0),V=E-R,D=h.offsetWidth,Z=p[k].clientWidth;if(n.config[k].type==="multi-select")return;console.group("START"),console.log(),console.log("Start screenX",v.screenX),console.log("Widths",_),console.log("max width",D),console.log("Start Position",E),console.log("Position From",k),console.log("Start Position",k),console.log("Global offset (Отступ самой таблицы от края экрана)",x),console.log("Del",V),console.groupEnd(),a.value.innerText=p[k].textContent||"",a.value.style.display="grid",a.value.style.width=Z+"px",a.value.style.cursor="grabbing",d(R),w(Z),document.addEventListener("pointermove",ve,{passive:!0}),document.addEventListener("pointerup",Ae);function Ae(A){if(console.group("END"),document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ae),C&&(n.config[k].width=a.value.style.width,n.config[k].minWidth=a.value.style.width,n.config[k].maxWidth=a.value.style.width,c(n.config)),!C){const $=A.screenX+m-x;console.log("ENP Position",$);const z=f(_,$);if(console.log(k,"->",z),z!==k){const H=n.config[k],j=n.config;j.splice(k,1),j.splice(z,0,H),c(j)}else{const H=n.config[k].name;l(H)}}a.value.style.display="none",document.body.style.cursor="unset",console.groupEnd()}function ve(A){if(C){const H=b(A)-E+Z;w(H);return}let $=A.screenX+m-x-V;$<0&&($=0),$+Z>D&&($=D-Z),d($)}})});function c(u){o("update:config",u)}function l(u){if(!u)return;if(Array.isArray(u)){if(u.length<1)return;u=u[0]}if(n.order.length===0||n.order[0]!==u)return void s([u]);const f=n.order.length===1||n.order[1]==="asc"?"asc":"desc";s([u,f==="asc"?"desc":"asc"])}function s(u){o("update:order",u)}return(u,f)=>(r.openBlock(),r.createElementBlock("tr",{class:"widget-list-head",ref_key:"refHead",ref:i},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.config,(d,w)=>(r.openBlock(),r.createBlock(Lr,r.mergeProps({key:d,ref_for:!0},d,{onOrder:y=>l(d.name),onSelect:f[0]||(f[0]=y=>o("select")),order:u.order}),null,16,["onOrder","order"]))),128)),r.createElementVNode("div",{class:"test-block text_md",ref_key:"refDisplayPosition",ref:a},"test",512)],512))}}),xr=M(Fr,[["__scopeId","data-v-ccffc6bd"]]),Br={class:"widget-list"},Vr={class:"widget-list-body position_relative"},$r=50,Dr=r.defineComponent({__name:"widget-list",props:{array:{},config:{default:()=>[]},selectedRows:{default:()=>[]},order:{default:()=>[]}},emits:["scrollEnd","update:selectedRows","update:order","update:config"],setup(e,{emit:t}){const n=e,o=t;function i(s,u=!0){if(n.selectedRows)if(!u)c(n.selectedRows.includes(s)?[]:[s]);else{const f=[...n.selectedRows],d=f.indexOf(s);d===-1?f.push(s):f==null||f.splice(d,1),c(f)}}function a(){var s;if(((s=n.selectedRows)==null?void 0:s.length)!==n.array.length)return c([...n.array]);c([])}function c(s){o("update:selectedRows",s)}function l(s){if(!s)return;const u=s.target;u.scrollTop+u.clientHeight+$r>u.scrollHeight&&o("scrollEnd")}return(s,u)=>(r.openBlock(),r.createElementBlock("div",{class:"es-list-container",onScrollPassive:l},[r.createElementVNode("table",Br,[r.createElementVNode("thead",null,[r.createVNode(xr,{onSelect:u[0]||(u[0]=f=>a()),"onUpdate:order":u[1]||(u[1]=f=>o("update:order",f)),"onUpdate:config":u[2]||(u[2]=f=>o("update:config",f)),config:s.config,order:s.order},null,8,["config","order"])]),r.createElementVNode("tbody",Vr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.array,(f,d)=>{var w;return r.openBlock(),r.createBlock(Ar,{key:d,class:"widget-list-row",values:f,config:s.config,selected:(w=s.selectedRows)==null?void 0:w.includes(f),onSelect:y=>i(f,y)},null,8,["values","config","selected","onSelect"])}),128))])])],32))}});function et(){var a;const e=r.computed(()=>Object.keys(n).length===0||Object.values(n).includes(!0)),t=(a=r.getCurrentInstance())==null?void 0:a.uid;if(!t)throw"Undefined instance. Please check it.";const n=r.reactive({});r.provide(T.VISIBLE_ITEM_PROVIDE_NAME,{show(c){n[c]=!0},hide(c){n[c]=!1},remove(c){delete n[c]}});const o=r.inject(T.VISIBLE_ITEM_PROVIDE_NAME,{show(){},hide(){},remove(){}});return{visible:e,controller:{show(){o==null||o.show(t)},hide(){o==null||o.hide(t)},remove(){o==null||o.remove(t)}},visibleItems:n}}function $t(e){const t={name:e,entity:r.inject(T.PROVIDE_ENTITY_NAME)};if(!t.name)throw new Error("Field without name try use metadata.");const n=r.ref(!1),o=r.ref(null);return e.split(".").reduce((i,a,c,l)=>c===l.length-1?i:i.then(()=>{var u,f;const s=(f=(u=o.value)==null?void 0:u.fieldsByName[a])==null?void 0:f.referencedEntity;if(!s)throw new Error("---");return Q.initEntity(s).then(()=>s)}).then(s=>{o.value=Q.get(s),t.entity=s,t.name=l[c+1]}),Promise.resolve().then(()=>Q.initEntity(t.entity)).then(()=>{o.value=Q.get(t.entity)})).finally(()=>n.value=!0),r.computed(()=>{if(!n.value||!o.value)return;const i=o.value.fieldsByName[t.name];if(i)return i})}const Pr=r.defineComponent({__name:"widget-field",props:{name:{},type:{},label:{},usageContext:{type:Boolean,default:!0}},setup(e){const t=e,n=O.Form.getParentForm();Se();const o=ft(),i=r.computed(()=>{var g,v,b;const d=l.value,w=s(d),y={type:w,disabled:t.usageContext?!((g=c.value)!=null&&g.canSet):!1,label:t.label};return w==="Decimal"&&((b=(v=d==null?void 0:d.presentationType)==null?void 0:v.toLowerCase)==null?void 0:b.call(v))==="money"&&(y.money=!0),d&&Object.assign(y,{suffix:d.valueUnit||void 0,label:t.label||d.displayName}),Array.isArray(I.arrayFieldParamsHandlers)&&I.arrayFieldParamsHandlers.forEach(h=>Object.assign(y,h(d,c.value,y,n,t.name))),y}),a=["MultiText","MultiWideText"],c=r.computed(()=>{var d;return(d=o==null?void 0:o.value)==null?void 0:d.fields[t.name]}),l=$t(t.name);function s(d){if(typeof t.type=="string"&&t.type.length!==0)return t.type;if(d){if(d.type==="Reference"||d.type==="Owned")return d.referencedEntity;if(d.dataType==="Boolean")return"single-checkbox";if(d.dataType==="DateTime")return"date";if(d.dataType==="Integer"||d.dataType==="Decimal")return"number";if(d.dataType==="List")return d.aggregatedEntity;if(a.includes(d.presentationType))return"textarea";if(d.presentationType==="PhoneNumber")return"tel"}return"text"}const u=r.computed(()=>{var d;return t.usageContext?((d=c.value)==null?void 0:d.canGet)===!0:!0}),{controller:f}=et();return r.watch(()=>u.value,d=>d?f.show():f.hide(),{immediate:!0}),r.onUnmounted(()=>f.remove()),(d,w)=>u.value?(r.openBlock(),r.createBlock(r.unref(O.FormField),r.mergeProps({key:0},{...d.$attrs,...i.value},{name:d.name}),null,16,["name"])):r.createCommentVNode("",!0)}});function Mr(e){return Array.isArray(e)&&(e==null?void 0:e[1])||T.DEFAULT_ORDER_DIR}const jr=["fill"],Ur=r.createElementVNode("path",{d:"M440-647 244-451q-12 12-28 11.5T188-452q-11-12-11.5-28t11.5-28l264-264q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l264 264q11 11 11 27.5T772-452q-12 12-28.5 12T715-452L520-647v447q0 17-11.5 28.5T480-160q-17 0-28.5-11.5T440-200v-447Z"},null,-1),Wr=[Ur],Hr=r.defineComponent({__name:"widget-icon-arrow-up",props:{color:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:t.color},Wr,8,jr))}}),qr={class:"widget-fast-table-head-cell-td"},Gr={key:1,class:"widget-head-cell-label"},zr={key:2,class:"widget-head-cell-order"},Kr=r.defineComponent({__name:"widget-fast-table-head-cell",props:{label:{},name:{},order:{},type:{},isFullSelected:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const n=e,o=r.computed(()=>Qe(n.name));r.computed(()=>Mr(n.order));const i=t;function a(){i("select")}return(c,l)=>{var s;return r.openBlock(),r.createElementBlock("td",qr,[r.createElementVNode("div",{class:r.normalizeClass(["widget-head-cell",[c.type==="multi-select"?"justify-content-center":""]]),onClick:l[0]||(l[0]=u=>c.$emit("order",c.name))},[c.type==="multi-select"?(r.openBlock(),r.createBlock(r.unref(O.FormField),{key:0,"model-value":c.isFullSelected,onClick:a,type:"single-checkbox"},null,8,["model-value"])):(r.openBlock(),r.createElementBlock("span",Gr,r.toDisplayString(c.label),1)),o.value===((s=c.order)==null?void 0:s[0])?(r.openBlock(),r.createElementBlock("div",zr,[r.createVNode(Hr,{color:"var(--color-primary)",class:r.normalizeClass(["widget-head-cell-order-icon",`widget-head-cell-order-icon_${c.order[1]==="desc"?"desc":"asc"}`])},null,8,["class"])])):r.createCommentVNode("",!0)],2)])}}}),Dt=M(Kr,[["__scopeId","data-v-d131e64e"]]),Yr=["fill"],Xr=r.createElementVNode("path",{d:"M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z"},null,-1),Jr=[Xr],Qr=r.defineComponent({__name:"widget-icon-keyboard-arrow-down",props:{color:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:t.color},Jr,8,Yr))}}),Zr={class:"widget-filter-item-popup"},eo=r.defineComponent({__name:"widget-table-panel-filter-item",props:{entity:{},values:{},filters:{},filterItem:{}},emits:["update:values","clear"],setup(e,{emit:t}){const n=e,o=t,i=I.tableFilterEntityBind,a=r.ref(),c=r.computed(()=>{const y=n.filterItem;return y.entity?"Entity":y.type?y.type:null});function l(y){s.value=y==="start"}const s=r.ref(!1),u=r.computed(()=>Array.isArray(n.values)||typeof n.values=="string"?n.values.length>0:!!n.values),f=r.ref(!1);let d=null;function w(y=!f.value){f.value=y,!f.value&&d?(d(),d=null):a.value&&(d=O.utils.clickOutside(a.value,w.bind(null,!1)))}return(y,g)=>{var v;return r.openBlock(),r.createElementBlock("div",{class:"widget-filter-item-container grid",ref_key:"refFilterItem",ref:a},[r.createElementVNode("div",{class:r.normalizeClass(["widget-filter-item",{"widget-filter-item_active":u.value}]),onClick:g[0]||(g[0]=()=>w())},[r.createElementVNode("span",{class:r.normalizeClass(["widget-filter-item-label",{"widget-filter-item-label_active":u.value}])},r.toDisplayString(y.filterItem.label||"--"),3),s.value?(r.openBlock(),r.createBlock(Te,{key:0})):(r.openBlock(),r.createBlock(Qr,{key:1,color:"white",class:r.normalizeClass({"widget-filter-item-arrow":f.value})},null,8,["class"]))],2),r.withDirectives(r.createElementVNode("div",Zr,[c.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent((v=r.unref(i))==null?void 0:v[c.value]),{key:0,"filter-metadata":y.filterItem,values:y.values,filters:y.filters,"base-entity":y.entity,onClear:g[1]||(g[1]=b=>o("clear")),"onUpdate:values":g[2]||(g[2]=b=>o("update:values",b)),onReadProcess:l},null,40,["filter-metadata","values","filters","base-entity"])):r.createCommentVNode("",!0)],512),[[r.vShow,f.value]])],512)}}}),Pt=M(eo,[["__scopeId","data-v-43ed0322"]]),to={class:"widget-table-search flex"},no=["value","placeholder"],ro=r.defineComponent({__name:"widget-table-search",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;function o(i){const a=i.target;if(!a)return;const c=a.value;n("update:modelValue",c)}return(i,a)=>(r.openBlock(),r.createElementBlock("div",to,[r.createVNode(ge,{class:"widget-table-search-icon"},{default:r.withCtx(()=>[r.createTextVNode("search")]),_:1}),r.createElementVNode("input",{class:"widget-table-search-input",type:"text",alt:"Searching for data in a table",value:i.modelValue,onInput:o,placeholder:r.unref(G)("Filter by random text")},null,40,no)]))}}),oo=M(ro,[["__scopeId","data-v-b712f344"]]),io={class:"widget-table-panel-filter flex"},ao={class:"flex"},so=r.defineComponent({__name:"widget-table-panel-filters",props:{filtersConfig:{},filters:{},entity:{},search:{}},emits:["update:filters","update:search"],setup(e,{emit:t}){const n=e,o=t;function i(c,l){o("update:filters",{...n.filters,[c]:l})}function a(c){const l={...n.filters};delete l[c],o("update:filters",l)}return(c,l)=>(r.openBlock(),r.createElementBlock("div",io,[r.createVNode(oo,{"model-value":c.search,"onUpdate:modelValue":l[0]||(l[0]=s=>o("update:search",s))},null,8,["model-value"]),r.createElementVNode("div",ao,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.filtersConfig,(s,u)=>{var f;return r.openBlock(),r.createBlock(Pt,{key:u,entity:c.entity,"filter-item":s,values:(f=c.filters)==null?void 0:f[r.unref(ne)(s)],filters:c.filters,"onUpdate:values":d=>i(r.unref(ne)(s),d),onClear:d=>a(r.unref(ne)(s))},null,8,["entity","filter-item","values","filters","onUpdate:values","onClear"])}),128))])]))}}),lo=M(so,[["__scopeId","data-v-8f09ec8d"]]);function Mt(e,t){const n=document.createElement("a");n.href=e,t!=null&&t.blank&&(n.target="_blank"),n.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{n.remove()},100)}const co={class:"widget-fast-table-tools flex gap-15"},uo=r.defineComponent({__name:"widget-fast-table-tools",props:{tools:{},loading:{type:Boolean},selectedRows:{},metadata:{},canCreate:{type:Boolean},externalTools:{}},emits:["reload","export","new"],setup(e,{emit:t}){const n=e,o=se.useRouter(),i=t,a=[{name:"export",label:"Save as CSV",icon:"list-download",buttonStyle:"default",callback:g=>i("export",g)},{name:"reload",label:"Reload",icon:"reload",buttonStyle:"default",callback:()=>i("reload")},{name:"new",label:"Add New",icon:"new",buttonStyle:"primary",callback:()=>i("new")}],c=r.inject(T.PROVIDE_NAME_ACTIONS,null),l=r.computed(()=>(Array.isArray(n.tools)?n.tools:[]).reduce((g,v)=>(v.name==="*"?g.push(...a):g.push(v),g),[]));function s(g){return a.find(v=>v.name===g.name)}function u(g){return{...g,label:g.label||"Batch update",callback:async()=>{const v=n.metadata,b=v.name,h=n.selectedRows||[];if(n.selectedRows.length===0)return Ue.add("error","Kindly select at least one record to update");const p=await W.promptModal(T.MODAL_BATCH_VALUES,{entity:b,availableFields:g.availableFields||[]});if(!p)return;const m=dt(b),_=h.map(C=>({primaryKey:C[m],version:v.versioned?C.Version:void 0}));await Zt(b,{values:p,elements:_}).then(C=>{C.forEach(x=>{x.type==="reject"&&P("error")(x.data)})}).catch(P("error")),i("reload")}}}function f(g){return{...g,callback:()=>o.push(g.to)}}function d(g){return{...g,callback:()=>{const v=tn(g.filename);Mt(v,{blank:!0})}}}const w=r.computed(()=>{var b;const g=((b=c==null?void 0:c.actions)==null?void 0:b.value)||[],v=[];return l.value.forEach(h=>{if(!(typeof h.override=="string"&&!g.find(p=>p.name===h.override))){if(s(h)){if(h.name==="new"&&!n.canCreate)return;const p=a.find(m=>m.name===h.name);if(p){const m=Object.assign({},p,{callback:()=>p.callback(h.params||{})});return v.push(m)}}if(h.name==="redirect")return v.push(f(h));if(h.name==="batch-update")return v.push(u(h));if(h.name==="static-file")return v.push(d(h));{const p=g.find(m=>m.name===h.name);if(p)return v.push({label:p.title,...h,callback:()=>y(p)})}}}),Array.isArray(n.externalTools)&&v.push(...n.externalTools),v.map(h=>({...h,process:oe(h.callback)}))});function y(g){var h;const v=(h=g.action.parameters.find(p=>p.dataTypeName==="IntegerArray"))==null?void 0:h.name,b={};return v&&(b[v]=n.selectedRows.map(p=>{if(!(typeof p=="object"&&p!==null))return null;const m=n.metadata.fieldNameForIdentification;return m?p[m]:null})),g.callback(b)}return(g,v)=>{const b=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",co,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(w.value,h=>(r.openBlock(),r.createBlock(b,{label:r.unref(G)(h.label),title:h.name,icon:h.icon,type:h.buttonStyle,loading:h.name==="reload"?g.loading:h.process.loading,onClick:()=>h.process.call()},null,8,["label","title","icon","type","loading","onClick"]))),256)),r.renderSlot(g.$slots,"default")])}}});function fo(e,t){const n=Bt(),o=se.useRouter(),i=r.reactive({entity:null,mark:null,settings:null});function a(m){const _={...f.value,...m};c(_)}function c(m){{const _=m.prefilters;_&&(Object.keys(_).forEach(C=>{var E,k;const x=_[C];Array.isArray(_[C])&&_[C].length===0&&i.settings&&!((k=(E=i.settings)==null?void 0:E.prefilters)!=null&&k[C])&&delete _[C],An(x)&&(typeof x.min!="number"&&delete x.min,typeof x.max!="number"&&delete x.max,Object.keys(x).length===0&&delete _[C])}),O.utils.isEmptyObject(_)&&delete m.prefilters)}localStorage.setItem(u(i.entity,i.mark),JSON.stringify(m)),t&&t()}function l(){return i.entity?JSON.parse(localStorage[u(i.entity,i.mark)]||"{}"):null}function s(m,_){i.entity=m,i.mark=_,w.call()}function u(m,_){return"list-configuration:"+m+(_?"-"+_:"")}const f=r.computed(()=>i.entity?JSON.parse(n[u(i.entity,i.mark)]||"{}"):null),d=r.computed(()=>i.settings?Ye(i.entity,i.settings.config,{router:o,activate:e}):[]),w=oe(async function(){if(!i.entity)return;const _=await Yt(i.entity,i.mark);i.settings=Object.freeze(_),t&&t()}),y=r.computed(()=>{var C;const m=f.value.order||null,_=((C=i.settings)==null?void 0:C.order)||null;return m||_||[]}),g=r.computed(()=>{var C;const m=f.value.prefilters||{};return{...((C=i.settings)==null?void 0:C.prefilters)||{},...m}}),v=r.computed(()=>{var m;return((m=i.settings)==null?void 0:m.filters)||[]}),b=r.computed(()=>{var m;return((m=i.settings)==null?void 0:m.label)||null}),h=r.computed(()=>{var m;return((m=i.settings)==null?void 0:m.tools)||[]}),p=r.computed(()=>!O.utils.isEmptyObject(f.value));return{state:i,get customFilters(){return i.settings.customFilters||[]},set:s,get:l,configuration:f,update:a,computedPrefilter:g,computedFiltersConfiguration:v,get cellConfig(){return i.settings?Ye(i.entity,i.settings.config,{router:o,activate:e}):[]},get prefilters(){var m;return((m=l())==null?void 0:m.prefilters)||i.settings.prefilters||{}},get order(){var m;return((m=l())==null?void 0:m.order)||i.settings.order||[]},clean(){localStorage.removeItem(u(i.entity,i.mark)),t&&t()},cellConfiguration:d,computedLabel:b,computedTools:h,computedHasLocalConfiguration:p,computedOrder:y,get displayModeForNew(){return i.settings.displayModeForNew||"inline"}}}var pe;class jt{constructor(t){Ne(this,pe);this.unloaded=!1,this.offset=0,this.array=r.reactive([]),ue(this,pe,null),this.process=oe(this.load.bind(this)),this.entity=t,this.limit=50}set options(t){ue(this,pe,t)}get requestReadOptions(){return Object.assign({},Ie(this,pe)||null,{offset:this.offset,limit:this.limit})}async next(){this.unloaded||this.process.loading||await this.process.call()}reload(){return this.clear(),this.next()}clear(){this.array.splice(0,this.array.length),this.offset=0,this.unloaded=!1}get loading(){return this.process.loading}init(t){this.options=t,this.clear()}async load(){const t=await le(this.entity,this.requestReadOptions);this.addData(t),t.length!==this.limit&&(this.unloaded=!0)}addData(t){this.array.push(...t.map(n=>Object.freeze(n))),this.offset+=t.length}}pe=new WeakMap;function po(e,t){const n=setInterval(()=>{mo(t)&&e.next()},2e3);r.onUnmounted(()=>{clearInterval(n)})}function mo(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}const go=["count","test"],ho={class:"widget-fast-table-head"},yo={key:0,class:"title-md color-primary margin-0 widget-fast-table-label"},vo={class:"widget-fast-table-body"},wo=r.defineComponent({__name:"widget-fast-table",props:{entity:{},mark:{},masterEntities:{},binding:{},actions:{},hideLabel:{type:Boolean},hideActions:{type:Boolean},disableUsageContext:{type:Boolean},externalTools:{}},setup(e,{expose:t}){const n=e,o=se.useRouter(),i=r.ref(null),a=r.computed(()=>i.value?u.value.indexOf(i.value[2]):null);function c(S,A,$){i.value=[S,A,$]}const l=new jt(n.entity),s=r.ref(""),u=r.computed(()=>Array.isArray(k.value)?s.value.length===0?l.array:l.array.filter(S=>!!k.value.find($=>{const z=Ce($,S);return typeof z=="string"?z.includes(s.value):!1})):[]),f=r.ref(null),d=O.Form.getParentForm(),w=r.ref([]),y=Se(n.entity),{state:g,update:v}=ft(n.entity,{masterEntities:n.masterEntities||[]}),b=oe(async()=>{try{w.value=[],await l.reload(),n.disableUsageContext||await v()}catch(S){const{message:A}=ot(S);f.value=A}});d instanceof O.Form&&d.subscribe({read:b.call.bind(null),name:n.entity,type:"table"}),r.watch(()=>n.mark,()=>{E.set(n.entity,n.mark)});function h(){return N.and(N(E.prefilters),N(n.binding||{}))}const{controller:p}=et();r.watch(()=>g.value,S=>{S&&(S.canRead?p.show():p.hide())},{immediate:!0});let m=[_e.on("affected-entity",S=>{S.name===n.entity&&b.call()}),_e.on("display-entity",async S=>{S.name===n.entity&&(l.loading&&await l.process.promise,c(S.name,S.primaryKey,u.value.find(A=>A[y.value.fieldNameForIdentification]===S.primaryKey)))})];r.onUnmounted(()=>{m.map(S=>S()),p.remove()});function _(S){function A(H){return Array.isArray(H)?A(H[0]):typeof H!="string"?null:H}const $=A(S);if(!$)return;const z=E.order;C("order",z[0]!==$?[$,"asc"]:z[1]==="desc"?[]:[$,"desc"])}function C(S,A){E.update({[S]:A})}const x=r.computed(()=>b.wait),E=fo(c,()=>{l.init({customFilters:E.customFilters,fields:at(k.value).join(" "),order:E.order,filter:h(),useContextFilter:E.state.settings.useContextFilter}),l.next()}),k=E.cellConfiguration;E.set(n.entity,n.mark),r.watch(()=>E.state.settings,()=>setTimeout(b.call,50));const R=r.computed(()=>E.state.settings);t({listSettings:R,array:u,config:k,listDataController:l,selectedRows:w,listController:E});function V(S){W.openModal(T.MODAL_LIST_DOWNLOAD,{entity:n.entity,cellConfig:E.cellConfig,order:E.order,prefilters:h(),customFilters:E.customFilters,params:S,selectedRows:w.value})}function D(){switch(E.displayModeForNew){case"modal":return W.openModal(T.MODAL_ENTITY,{entity:n.entity});case"form":return o.push(ut(n.entity));case"inline":return i.value=[n.entity]}}function Z(){E.clean()}function Ae(){return{entity:n.entity}}const ve=r.ref();return r.onMounted(()=>{po(l,ve.value)}),(S,A)=>{var H;const $=r.resolveComponent("widget-button"),z=r.resolveComponent("widget-fast-table-form");return r.openBlock(),r.createElementBlock("div",{class:"widget-fast-table",count:w.value.length,test:i.value},[r.createElementVNode("div",ho,[r.unref(E).computedLabel.value&&!S.hideLabel?(r.openBlock(),r.createElementBlock("p",yo,r.toDisplayString(r.unref(G)(r.unref(E).computedLabel.value)),1)):r.createCommentVNode("",!0),r.unref(y)&&!S.hideActions?(r.openBlock(),r.createBlock(uo,{key:1,metadata:r.unref(y),tools:r.unref(E).computedTools.value,loading:x.value,"selected-rows":w.value||[],onReload:r.unref(b).call,onExport:V,onNew:D,"can-create":((H=r.unref(g))==null?void 0:H.canCreate)||!1,externalTools:S.externalTools||[]},{default:r.withCtx(()=>[r.renderSlot(S.$slots,"tools",{},void 0,!0),r.unref(E).computedHasLocalConfiguration.value?(r.openBlock(),r.createBlock($,{key:0,onClick:Z,type:"primary",label:r.unref(G)("Clear all filters")},null,8,["label"])):r.createCommentVNode("",!0)]),_:3},8,["metadata","tools","loading","selected-rows","onReload","can-create","externalTools"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",vo,[r.createVNode(lo,{search:s.value,"onUpdate:search":A[0]||(A[0]=j=>s.value=j),entity:S.entity,"filters-config":r.unref(E).computedFiltersConfiguration.value,filters:r.unref(E).computedPrefilter.value,"onUpdate:filters":A[1]||(A[1]=j=>C("prefilters",j))},null,8,["search","entity","filters-config","filters"]),r.createVNode(r.unref(Vt),{config:r.unref(k),array:u.value,"active-row":a.value,"onUpdate:activeRow":A[3]||(A[3]=j=>i.value=null),onOrder:_,class:"table main-table",selectedRows:w.value,"onUpdate:selectedRows":A[4]||(A[4]=j=>w.value=j),"row-options-handler":Ae},{"head-cell":r.withCtx(j=>{var we,gt,ht;return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(S.$slots["head-cell"]?S.$slots["head-cell"]:Dt),r.mergeProps({label:j.label},j,{onOrder:_,order:r.unref(E).computedOrder.value,type:j.type,"is-full-selected":((we=w.value)==null?void 0:we.length)===((gt=u.value)==null?void 0:gt.length)&&((ht=u.value)==null?void 0:ht.length)>0}),null,16,["label","order","type","is-full-selected"]))]}),footer:r.withCtx(()=>[r.createElementVNode("div",{style:{padding:"10px"},ref_key:"endOfTheScroll",ref:ve},null,512)]),default:r.withCtx(()=>{var j,we;return[r.createVNode(z,{entity:(j=i.value)==null?void 0:j[0],"primary-key":((we=i.value)==null?void 0:we[1])||null,"master-entities":S.masterEntities||void 0,binding:S.binding,onFormUpdate:A[2]||(A[2]=()=>{i.value=null,r.unref(l).reload()})},null,8,["entity","primary-key","master-entities","binding"])]}),_:1},8,["config","array","active-row","selectedRows"])])],8,go)}}}),bo=M(wo,[["__scopeId","data-v-8cd0abbf"]]);function Ut(e,t={},n={}){const o=r.inject(T.PROVIDE_NAME_ACTIONS,null),i=typeof e=="string"?e:t,a=typeof t=="string"?n:t;return r.computed(()=>{var s;const l=((typeof e=="string"?(s=o==null?void 0:o.actions)==null?void 0:s.value:r.unref(e))||[]).find(u=>u.name===i);return l?{...l,...a}:null})}const Eo=r.defineComponent({__name:"widget-action",props:{name:{},overrideParams:{}},setup(e){const t=e,n=Ut(t.name,t.overrideParams||{}),o=r.computed(()=>{if(n.value)return oe(n.value.callback)});return(i,a)=>{var l;const c=r.resolveComponent("widget-button");return r.unref(n)?(r.openBlock(),r.createBlock(c,{key:0,label:r.unref(n).label,loading:((l=o.value)==null?void 0:l.loading)||!1,onClick:a[0]||(a[0]=()=>{var s,u;return(u=(s=o.value)==null?void 0:s.call)==null?void 0:u.call(s,i.overrideParams||{})})},null,8,["label","loading"])):r.createCommentVNode("",!0)}}}),_o=r.defineComponent({__name:"WidgetResolverEntity",setup(e){const t=se.useRouter(),n=se.useRoute();function o(){const i=n.params.entity,a=n.params.primaryKey;st(i,a).then(c=>t.replace(ut(c,a))).catch(c=>{P("error")(c),t.back()})}return r.onMounted(o),(i,a)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(Me,{label:"Loading..."})]))}}),ko=r.defineComponent({__name:"modal-list-download",props:{entity:{},cellConfig:{},prefilters:{},order:{},customFilters:{},params:{},selectedRows:{}},setup(e){const t=e,n=r.computed(()=>o.finished?"Download CSV":`Download ${o.count} records.`),{state:o,downloadFile:i,reject:a,start:c,init:l}=En("csv",t.params.overrideEntity||t.entity,t.cellConfig,t.prefilters,t.order,150,t.customFilters,{...t.params||{},selectedRows:t.selectedRows||[]});return W.onBeforeModalClose(a),r.onMounted(async()=>{await l(),c()}),r.watch(()=>o.finished,()=>{i(),W.popModal()}),(s,u)=>{const f=r.resolveComponent("widget-button"),d=r.resolveComponent("widget-modal-wrap");return r.openBlock(),r.createBlock(d,null,{footer:r.withCtx(()=>[r.createVNode(f,{onClick:u[0]||(u[0]=w=>{r.unref(i)(),r.unref(W.popModal)()})},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(n.value),1)]),_:1})]),default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createVNode(Me,{label:"Loading"})])]),_:1})}}}),Wt=e=>(r.pushScopeId("data-v-66cf2326"),e=e(),r.popScopeId(),e),Co={class:"version-item"},To={class:"text_md"},So={class:"version-item-date text_md"},Ao=Wt(()=>r.createElementVNode("span",null,null,-1)),Io=Wt(()=>r.createElementVNode("span",null,null,-1)),No={class:"text_sm"},Ro={class:"text_sm line-clamp_5"},Oo={class:"text_sm line-clamp_5"},Lo=r.defineComponent({__name:"version-item",props:{selectedFields:{},date:{},customerName:{},version:{},changes:{},entity:{}},setup(e){const t=e;function n(a,c){const l=a.name.toLowerCase(),s=c.name.toLowerCase();return s==="version"?-1:l==="version"?1:s.startsWith("utc")?-1:l.startsWith("utc")?1:0}const o=r.computed(()=>[...t.changes||[]].sort(n)),i=r.computed(()=>(o.value||[]).filter(a=>Array.isArray(t.selectedFields)&&t.selectedFields.length!==0?t.selectedFields.includes(a.name):!0));return(a,c)=>(r.openBlock(),r.createElementBlock("div",Co,[r.createElementVNode("span",To,[r.createElementVNode("b",null,r.toDisplayString(a.version),1)]),r.createElementVNode("span",So,[r.createElementVNode("b",null,r.toDisplayString(r.unref(rt)(a.date)),1)]),Ao,r.createElementVNode("span",null,[r.createTextVNode("by "),r.createElementVNode("b",null,r.toDisplayString(a.customerName),1)]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,l=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:l.name},[Io,r.createElementVNode("span",No,r.toDisplayString(l.name),1),r.createElementVNode("span",Ro,r.toDisplayString(r.unref(Ge)(a.entity,l.name,l.newValue)),1),r.createElementVNode("span",Oo,r.toDisplayString(r.unref(Ge)(a.entity,l.name,l.oldValue)),1)],64))),128))]))}}),Fo=M(Lo,[["__scopeId","data-v-66cf2326"]]),tt=e=>(r.pushScopeId("data-v-cc723f37"),e=e(),r.popScopeId(),e),xo={key:1,class:"wrap-history"},Bo={class:"history-header grid gap_10"},Vo=tt(()=>r.createElementVNode("span",null,null,-1)),$o=tt(()=>r.createElementVNode("span",{class:"text_md"},"New Value",-1)),Do=tt(()=>r.createElementVNode("span",{class:"text_md"},"Old Value",-1)),Po={class:"padding_15 grid gap_10 container-history"},Mo=r.defineComponent({__name:"modal-version-history",props:{entity:{},primaryKey:{}},setup(e){const t=e,n=r.computed(()=>`${c.value.description} Version History`),o=r.ref(),i=r.computed(()=>!s.value||Array.isArray(s.value)&&s.value.length===0?o.value:(o.value||[]).filter(d=>{var w;return d.action==="Insert"?!0:(w=d.changes)==null?void 0:w.find(y=>s.value&&s.value.includes(y.name))})),a=oe(u),c=Se(t.entity),l=r.computed(()=>c.value.fields.map(d=>({label:d.displayName,value:d.name}))),s=r.ref(null);async function u(){try{const d=await en({entity:t.entity,primaryKey:t.primaryKey});o.value=d.history}catch(d){P("error")(d)}}r.onMounted(()=>a.call());function f(d){return d.currentValues.map(w=>({name:w.fieldName,newValue:w.value})).filter(w=>w.newValue)}return(d,w)=>{const y=r.resolveComponent("widget-modal-wrap");return r.openBlock(),r.createBlock(y,{label:n.value,class:"wrap-modal-version-history"},{default:r.withCtx(()=>[r.unref(a).loading?(r.openBlock(),r.createBlock(r.unref(Me),{key:0,label:"Loading history..."})):(r.openBlock(),r.createElementBlock("div",xo,[r.createElementVNode("div",Bo,[Vo,r.createVNode(r.unref(O.FormField),{type:"select",options:l.value,modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=g=>s.value=g),multiple:""},null,8,["options","modelValue"]),$o,Do]),r.createElementVNode("div",Po,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(g,v)=>(r.openBlock(),r.createBlock(Fo,{"selected-fields":s.value,date:g.utcCreated,"customer-name":g.userName,version:g.version,changes:g.action==="Insert"?f(g):g.changes,entity:d.entity,key:v},null,8,["selected-fields","date","customer-name","version","changes","entity"]))),128))])]))]),_:1},8,["label"])}}}),jo=M(Mo,[["__scopeId","data-v-cc723f37"]]);function nt(e,t,n){const o=window.URL.createObjectURL(e);Mt(o,n),setTimeout(()=>{window.URL.revokeObjectURL(o)},100)}function Uo(e,t){return fetch(`/close-api/document-builder/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({CatalogId:t})}).then(n=>n.blob()).then(n=>{nt(n,e+t+"-print-form.pdf",{blank:!0})})}function rt(e){return Be(e,"YYYY/MM/DD HH:mm:ss")}function Be(e,t="YYYY/MM/DD"){if(!e)return"";try{const n=new Date(e);return In.format(n,t)}catch(n){return console.log(n),"Invalid date"}}function oe(e){function t(i){o.status=i}function n(...i){if(o.loading)return Promise.reject("The process has already started.");o.loading=!0,o.wait=!0;const a=Promise.resolve().then(()=>t(1)).then(()=>e(...i)).then(c=>(t(3),c)).catch(c=>{throw t(2),c}).finally(()=>{o.wait=!1,o.loading=!1,o.promise=null});return o.promise=a,a}const o=r.reactive({status:0,wait:!1,loading:!1,call:n,promise:null});return o}var Ht=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.error=2]="error",e[e.done=3]="done",e))(Ht||{});function ot(e){return typeof e=="string"?Re(e):Wo(e)?Re(e.message,e.children||e.details||[],e.traceId):Ho(e)?Re(e.title,[e.detail||""],e.traceId):Re(T.DEFAULT_ERROR_MESSAGE)}function Wo(e){return!!(typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,"message"))}function Ho(e){return!!(typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,"title"))}function Re(e,t=[],n){return{message:e,children:t,traceId:n}}function P(e="error"){return function(t){const{message:n,children:o,traceId:i}=ot(t);Ue.add(e,n,{children:o,traceId:i})}}function le(e,t={}){const n=F();return qt(t)&&t.id&&(t.primaryKey=t.id,delete t.id),n.emit("entity:read",{entity:e,...t})}function qt(e){return!!(e.id||e.primaryKey)}function it(e,t){const n=F();return qt(t)&&t.id&&(t.primaryKey=t.id,delete t.id),n.emit("entity:update",{...t,entity:e})}function at(e){return e.reduce((t,n)=>(n.name&&(typeof n.name=="string"?t.push(n.name):t.push(...n.name)),t),[])}function Gt(e,t=2){if(!(typeof e=="string"||typeof e=="number"))return"";let o=String(e).split(".");return o[0]=o[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),o.length<2&&(o[1]=""),o[1]=o[1].padEnd(t,"0"),o[1].length>t&&(o[1]=o[1].substring(0,t)),o.join(".")}function qo(e,t){const n=new Map;return e.forEach(o=>{var a;const i=t(o);n.has(i)||n.set(i,[]),(a=n.get(i))==null||a.push(o)}),n}function Go(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function zo(e){return e.text().then(t=>{try{return JSON.parse(t)}catch{return T.DEFAULT_ERROR_MESSAGE}})}function q(e,t={}){return Y.isFront&&(t.headers||(t.headers={}),t.headers["Context-Id"]=Y.contextId),t.redirect="manual",fetch(e,t).then(n=>n.type==="opaqueredirect"?void window.location.reload():n).catch(()=>{throw new Error(T.DEFAULT_ERROR_MESSAGE)}).then(n=>zo(n).then(o=>{if(!n.ok)throw o;return o}))}function zt(e,t=1e3){let n=0;return(...o)=>{clearTimeout(n),n=window.setTimeout(()=>e(...o),t)}}function Ko(e,t){let n=!1;return(...o)=>{if(!n)return n=!0,setTimeout(()=>n=!1,t),e(...o)}}const Yo=De(Pe("pretty-value-field-by-entity"));function Ge(e,t,n){try{const o=Q.get(e);if(!o)throw new Error("For entity metadata is not loaded");const i=o.fieldsByName[t];if(!i)throw new Error(`For entity ${e} can't found fieldMetadata for field ${t}`);return i.dataType==="DateTime"&&typeof n=="string"?new Date(n).toLocaleString():n}catch(o){return Yo('Error by parse pretty value for entity %o "%s", field "%s" with value "%s"',o,e,t,n),n}}const ie=De(Pe("use-socket"));function F(){return Jo}function Xo(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Blob]"}const Jo=function(){let e=1,t,n;const o=new Set;let i=0;const a=new Set;function c(){if(t)i&&(clearTimeout(i),i=0);else return;i=setTimeout(()=>{t.close()},Un*2);const h=new Uint8Array(1);h[0]=jn,t.send(h)}setInterval(()=>{Array.from(o).forEach(h=>{b(h)&&(ie("Handler for event %s requestId %d was expired",h.event,h.requestId),h.requestId?s({requestId:h.requestId,event:Ft,data:{message:re.RequestTookToLong().message}}):o.delete(h))})},1e3),setInterval(()=>{(!t||t.readyState===3)&&u()},T.DELAY_SOCKET_RECONNECT);function l(){return{safeQueue:a,requestId:e,handlers:o,socketInstance:t}}function s(h){const p=[...o.values()];ie("Handlers array length is %d. Response event: %s. Request id: %d",o.size,h.event,h.requestId),p.forEach(m=>{const _=h.requestId;(m.requestId&&m.requestId===_||!m.requestId&&m.event===h.event)&&(ie("Find appropriated handler: %d, event: %s",e,m.event),m.callback(h.data,h),m.once&&(o.delete(m),ie("Handler was removed by *once* params was passed. %o",m)))})}function u(){if(typeof n!="string"){console.log("Please initialize use-socket");return}console.log(`%cInitializing sockets: %c${n}`,"color: purple","color: black"),t=new WebSocket(n),t.onclose=function(h){ie("Connection to server was stopped: %d %s",h.code,h.reason),Array.from(o).forEach(p=>{p.guaranteedAnswer&&p.serializeString&&a.add(p.serializeString)})},t.onopen=function(){console.log("Socket was %cconnected.","color: green"),[...a.values()].forEach(h=>{f(h),a.delete(h)})},t.onerror=function(h){console.warn(h)},t.onmessage=h=>{var p;try{if(Xo(h.data)){c();return}const m=JSON.parse(h.data);if(!Kt(m)){console.warn("Data is %cnot correct %csocket answer.","color: red","color: black"),console.log(m);return}m.event==="progress"&&o.forEach(_=>{_.event===m.data.for.event&&_.requestId===m.data.for.requestId&&(console.log("UPDATE TIME"),_.timeToLive=new Date().getTime()-_.created+T.TIME_TO_LIVE_SOCKET_REQUEST)}),(p=m==null?void 0:m.data)!=null&&p.refresh&&location.reload(),s(m)}catch(m){console.warn("Socket handle %conmessage%c error.","color: red","color: black"),console.log(m)}}}function f(h){t.send(h)}function d(h,p){v({event:h,callback:p})}function w(h,p){v({event:h,callback:p,once:!0})}function y(){return t&&(t==null?void 0:t.readyState)===1}function g(h,p,m){const _=++e,C=JSON.stringify({requestId:_,event:h,data:p,contextId:Y.contextId,url:I.socketURLHandler?I.socketURLHandler():window.location.href});return y()?f(C):(a.add(C),ie("Socket is not connected. Message was send to save-queue")),new Promise((x,E)=>{v({event:h,requestId:_,once:!0,guaranteedAnswer:!0,serializeString:C,callback:(k,R)=>{if(ie("Promise was resolve with next data:",k),Qo(R))return void E(k);m&&m(k,R),x(k)},timeToLive:T.TIME_TO_LIVE_SOCKET_REQUEST})})}function v(h){const p={timeToLive:0,...h,created:new Date().getTime()};o.add(p)}function b(h){return h.timeToLive===0||typeof h.timeToLive!="number"?!1:new Date().getTime()-h.created>h.timeToLive}return{get socket(){return t},on:d,once:w,emit:g,initialization(h){n=h},getDevInfo:l}}(),Qo=e=>!!Kt(e)&&e.event===Ft,Kt=e=>typeof e=="object"&&e!==null&&"event"in e&&typeof e.event=="string"&&"requestId"in e&&typeof e.requestId=="number"&&"data"in e;function Yt(e,t){return F().emit("list-setting:read",{entity:e,mark:t})}function Zo(e,t){return F().emit("metadata-field:treat",{entity:e,fieldName:t})}function Xt(e,t){return F().emit("entity:create",{...t,entity:e})}function Jt(e,t){return F().emit("entity:delete",{...t,entity:e})}function ei(e,t){return F().emit("usage-context:read",{...t,entity:e})}function Qt(e={}){return F().emit("tool:read",e)}function ti(){return F().emit("metadata-list:read",{})}function Zt(e,t){return F().emit("batch:update",{...t,entity:e})}function st(e,t){return F().emit("entity:resolve",{primaryKey:t,entity:e})}function en(e){return F().emit("history:read",e)}function ni(e,t){return F().emit("entity:count",{...t,entity:e})}function tn(e){return`/${Wn}/${e}`}function he(e){return{exec(t,n){switch(e.name){case"replace-boolean":return he.replaceBoolean(t,e.values);case"replace-record-operation":return he.replaceRecordOperation(t)}}}}he.replaceBoolean=ri;he.replaceRecordOperation=oi;function ri(e,t){return typeof e!="boolean"?"":e?t[1]:t[0]}function oi(e){switch(e){case"A":case null:return"+";case"M":return"~";case"N":return"";case"D":return"✖";default:return"?"}}function ii(e={}){return F().emit("tool:execute",e)}const ai=De(Pe("wrap-tool-response"));function nn(e,t){return e.handleConfirmation===void 0&&(e.handleConfirmation=ci),e.handleAffectedEntity===void 0&&(e.handleAffectedEntity=di),e.handleCloseForm===void 0&&(e.handleCloseForm=fi),e.handleValidationResult===void 0&&(e.handleValidationResult=ui),{...t,label:t.title,async callback(n={}){var c;const o=typeof e.values=="function"?e.values(t,e):e.values;let i={};t.action.targetName==="Record"&&o.hasOwnProperty("Id")&&(i.Id=o.Id,delete o.Id);const a=()=>ii({name:t.name,values:{...o,...n},primaryKeys:i,usageContext:t.usageContext}).then(async l=>{var s,u,f,d;if(!si(l))throw new Error("It is impossible to process the result of calls.");if(Array.isArray(e.handlers))for await(const w of e.handlers)await w(t,l,e);if(!l.success)throw e.handleValidationResult&&l.validationEffect&&((u=(s=l.validationEffect)==null?void 0:s.results)!=null&&u.length)&&e.handleValidationResult(t,l.validationEffect,e),new Error(l.message);return t.showValidationResults&&e.handleValidationResult&&l.validationEffect&&(d=(f=l.validationEffect)==null?void 0:f.results)!=null&&d.length&&e.handleValidationResult(t,l.validationEffect,e),l.message&&Ue.add("info",l.message),Array.isArray(l.affectedEntities)&&e.handleAffectedEntity&&l.affectedEntities.forEach(w=>{var y;return(y=e.handleAffectedEntity)==null?void 0:y.call(e,t,w,e)}),t.closeHostForm&&e.handleCloseForm&&e.handleCloseForm(t,e),l}).catch(l=>{if(P("error")(l),e.handleReject)return e.handleReject(t,l,e)});if((c=e.overrides)!=null&&c[t.name])return e.overrides[t.name](t,e);if(t.paramDialog){const l=await pi(t,e);if(l===null)return;n=Object.assign(n,l||{})}return t.requireSave&&e.form&&e.form.changed?e.form.save().then(a):!t.confirmation||!e.handleConfirmation||t.paramDialog?a():e.handleConfirmation(t,a)}}}function si(e){return!!(e&&typeof e=="object"&&"affectedEntities"in e&&"success"in e)}function li(e){const t="Are you sure?";return e===!0||typeof e=="string"&&e.toLowerCase()==="true"||e==="1"?t:typeof e=="string"?e:t}async function ci(e,t){const n=li(e.confirmation);if(!W.getComponentFromStore(T.MODAL_CONFIRM))throw new Error("The 'confirm' modal window is not installed. It provided inside 'constants.MODAL_CONFIRM'");if(await W.promptModal(T.MODAL_CONFIRM,{message:n}))return t()}function ui(e,t){const n=T.MODAL_VALIDATION_EFFECT;if(!W.getComponentFromStore(n))throw new Error("The 'validation-effect' modal window is not installed. It provided inside 'constants.MODAL_VALIDATION_EFFECT'");return new Promise(()=>{W.pushModal(n,t)})}function di(e,t,n){var s;function o(u){return u!==null&&typeof u=="object"&&typeof u.read=="function"}function i(u,f){u&&(ai("Affected Entity %s. Find form with name %s.",f,u.name),u.name===f&&o(u)&&u.read(),u instanceof O.Form&&u.dependencies.forEach(d=>i(d,f)))}_e.emit("affected-entity",t);const{router:a,form:c}=n,l=typeof t.primaryKey=="string"?t.primaryKey:(s=t.primaryKey)==null?void 0:s.Id;if(a&&t&&t.name===e.redirectEntity){_e.emit("display-entity",{primaryKey:l,name:t.name}),I.getEntityLink&&a.push(I.getEntityLink(t.name,l));return}i(c,t.name)}function fi(e,t){const{router:n}=t;n&&e.closeHostForm&&n.back()}function pi(e,t){var n;if((n=e.paramDialog)!=null&&n.name)return W.promptModal(e.paramDialog.name,{paramDialog:e.paramDialog,tool:e,options:t})}let ae={};function G(e,...t){if(typeof e!="string")return console.trace(`Label is not provided for translation: ${e}`),"undefined";let n=O.utils.getPropFromObject((this==null?void 0:this.vocabulary)||ae,e);if(typeof n=="string")return kt(n,t);const o=O.utils.getPropFromObject(ae==null?void 0:ae.root,e);return typeof o=="string"?kt(o,t):(typeof n===void 0&&console.warn(`Translation for label "${e}" is not founded.`),e)}function kt(e,t){return t.forEach((n,o)=>{e=e.replaceAll(new RegExp(`\\{${o}}`,"g"),n)}),e}G.setGlobalVocabulary=function(e){ae=e};G.getScope=function(e){const t=typeof e=="string"?e:"root";return typeof e!="string"&&console.warn(`SCOPE ${e} for translate is not string.`),G.bind({vocabulary:O.utils.getPropFromObject(ae,t.toLowerCase())})};G.setVocabulary=function(e){return typeof e=="string"&&(e=O.utils.getPropFromObject(ae,e)),G.bind({vocabulary:e})};function mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},B={},Ke={exports:{}},ce={};function rn(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function gi(e,t,n){}function hi(e,t,n){}var yi=/javascript\s*\:/img;function vi(e,t){return yi.test(t)?"":t}ce.whiteList=rn();ce.getDefaultWhiteList=rn;ce.onAttr=gi;ce.onIgnoreAttr=hi;ce.safeAttrValue=vi;var wi={indexOf:function(e,t){var n,o;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var o,i;if(Array.prototype.forEach)return e.forEach(t,n);for(o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},be=wi;function bi(e,t){e=be.trimRight(e),e[e.length-1]!==";"&&(e+=";");var n=e.length,o=!1,i=0,a=0,c="";function l(){if(!o){var f=be.trim(e.slice(i,a)),d=f.indexOf(":");if(d!==-1){var w=be.trim(f.slice(0,d)),y=be.trim(f.slice(d+1));if(w){var g=t(i,c.length,w,y,f);g&&(c+=g+"; ")}}}i=a+1}for(;a<n;a++){var s=e[a];if(s==="/"&&e[a+1]==="*"){var u=e.indexOf("*/",a+2);if(u===-1)break;a=u+1,i=a+1,o=!1}else s==="("?o=!0:s===")"?o=!1:s===";"?o||l():s===`
|
|
7
|
+
`&&l()}return be.trim(c)}var Ei=bi,Oe=ce,_i=Ei;function Ct(e){return e==null}function ki(e){var t={};for(var n in e)t[n]=e[n];return t}function on(e){e=ki(e||{}),e.whiteList=e.whiteList||Oe.whiteList,e.onAttr=e.onAttr||Oe.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Oe.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Oe.safeAttrValue,this.options=e}on.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,o=n.whiteList,i=n.onAttr,a=n.onIgnoreAttr,c=n.safeAttrValue,l=_i(e,function(s,u,f,d,w){var y=o[f],g=!1;if(y===!0?g=y:typeof y=="function"?g=y(d):y instanceof RegExp&&(g=y.test(d)),g!==!0&&(g=!1),d=c(f,d),!!d){var v={position:u,sourcePosition:s,source:w,isWhite:g};if(g){var b=i(f,d,v);return Ct(b)?f+":"+d:b}else{var b=a(f,d,v);if(!Ct(b))return b}}});return l};var Ci=on;(function(e,t){var n=ce,o=Ci;function i(c,l){var s=new o(l);return s.process(c)}t=e.exports=i,t.FilterCSS=o;for(var a in n)t[a]=n[a];typeof window<"u"&&(window.filterCSS=e.exports)})(Ke,Ke.exports);var lt=Ke.exports,ct={indexOf:function(e,t){var n,o;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var o,i;if(Array.prototype.forEach)return e.forEach(t,n);for(o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}},Ti=lt.FilterCSS,Si=lt.getDefaultWhiteList,Ve=ct;function an(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var sn=new Ti;function Ai(e,t,n){}function Ii(e,t,n){}function Ni(e,t,n){}function Ri(e,t,n){}function ln(e){return e.replace(Li,"<").replace(Fi,">")}function Oi(e,t,n,o){if(n=mn(n),t==="href"||t==="src"){if(n=Ve.trim(n),n==="#")return"#";if(!(n.substr(0,7)==="http://"||n.substr(0,8)==="https://"||n.substr(0,7)==="mailto:"||n.substr(0,4)==="tel:"||n.substr(0,11)==="data:image/"||n.substr(0,6)==="ftp://"||n.substr(0,2)==="./"||n.substr(0,3)==="../"||n[0]==="#"||n[0]==="/"))return""}else if(t==="background"){if(Le.lastIndex=0,Le.test(n))return""}else if(t==="style"){if(Tt.lastIndex=0,Tt.test(n)||(St.lastIndex=0,St.test(n)&&(Le.lastIndex=0,Le.test(n))))return"";o!==!1&&(o=o||sn,n=o.process(n))}return n=gn(n),n}var Li=/</g,Fi=/>/g,xi=/"/g,Bi=/"/g,Vi=/&#([a-zA-Z0-9]*);?/gim,$i=/:?/gim,Di=/&newline;?/gim,Le=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Tt=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,St=/u\s*r\s*l\s*\(.*/gi;function cn(e){return e.replace(xi,""")}function un(e){return e.replace(Bi,'"')}function dn(e){return e.replace(Vi,function(n,o){return o[0]==="x"||o[0]==="X"?String.fromCharCode(parseInt(o.substr(1),16)):String.fromCharCode(parseInt(o,10))})}function fn(e){return e.replace($i,":").replace(Di," ")}function pn(e){for(var t="",n=0,o=e.length;n<o;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Ve.trim(t)}function mn(e){return e=un(e),e=dn(e),e=fn(e),e=pn(e),e}function gn(e){return e=cn(e),e=ln(e),e}function Pi(){return""}function Mi(e,t){typeof t!="function"&&(t=function(){});var n=!Array.isArray(e);function o(c){return n?!0:Ve.indexOf(e,c)!==-1}var i=[],a=!1;return{onIgnoreTag:function(c,l,s){if(o(c))if(s.isClosing){var u="[/removed]",f=s.position+u.length;return i.push([a!==!1?a:s.position,f]),a=!1,u}else return a||(a=s.position),"[removed]";else return t(c,l,s)},remove:function(c){var l="",s=0;return Ve.forEach(i,function(u){l+=c.slice(s,u[0]),s=u[1]}),l+=c.slice(s),l}}}function ji(e){for(var t="",n=0;n<e.length;){var o=e.indexOf("<!--",n);if(o===-1){t+=e.slice(n);break}t+=e.slice(n,o);var i=e.indexOf("-->",o);if(i===-1)break;n=i+3}return t}function Ui(e){var t=e.split("");return t=t.filter(function(n){var o=n.charCodeAt(0);return o===127?!1:o<=31?o===10||o===13:!0}),t.join("")}B.whiteList=an();B.getDefaultWhiteList=an;B.onTag=Ai;B.onIgnoreTag=Ii;B.onTagAttr=Ni;B.onIgnoreTagAttr=Ri;B.safeAttrValue=Oi;B.escapeHtml=ln;B.escapeQuote=cn;B.unescapeQuote=un;B.escapeHtmlEntities=dn;B.escapeDangerHtml5Entities=fn;B.clearNonPrintableCharacter=pn;B.friendlyAttrValue=mn;B.escapeAttrValue=gn;B.onIgnoreTagStripAll=Pi;B.StripTagBody=Mi;B.stripCommentTag=ji;B.stripBlankChar=Ui;B.attributeWrapSign='"';B.cssFilter=sn;B.getDefaultCSSWhiteList=Si;var je={},te=ct;function Wi(e){var t=te.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=te.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function Hi(e){return e.slice(0,2)==="</"}function qi(e,t,n){var o="",i=0,a=!1,c=!1,l=0,s=e.length,u="",f="";e:for(l=0;l<s;l++){var d=e.charAt(l);if(a===!1){if(d==="<"){a=l;continue}}else if(c===!1){if(d==="<"){o+=n(e.slice(i,l)),a=l,i=l;continue}if(d===">"||l===s-1){o+=n(e.slice(i,a)),f=e.slice(a,l+1),u=Wi(f),o+=t(a,o.length,u,f,Hi(f)),i=l+1,a=!1;continue}if(d==='"'||d==="'")for(var w=1,y=e.charAt(l-w);y.trim()===""||y==="=";){if(y==="="){c=d;continue e}y=e.charAt(l-++w)}}else if(d===c){c=!1;continue}}return i<s&&(o+=n(e.substr(i))),o}var Gi=/[^a-zA-Z0-9\\_:.-]/gim;function zi(e,t){var n=0,o=0,i=[],a=!1,c=e.length;function l(w,y){if(w=te.trim(w),w=w.replace(Gi,"").toLowerCase(),!(w.length<1)){var g=t(w,y||"");g&&i.push(g)}}for(var s=0;s<c;s++){var u=e.charAt(s),f,d;if(a===!1&&u==="="){a=e.slice(n,s),n=s+1,o=e.charAt(n)==='"'||e.charAt(n)==="'"?n:Yi(e,s+1);continue}if(a!==!1&&s===o){if(d=e.indexOf(u,s+1),d===-1)break;f=te.trim(e.slice(o+1,d)),l(a,f),a=!1,s=d,n=s+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),a===!1)if(d=Ki(e,s),d===-1){f=te.trim(e.slice(n,s)),l(f),a=!1,n=s+1;continue}else{s=d-1;continue}else if(d=Xi(e,s-1),d===-1){f=te.trim(e.slice(n,s)),f=At(f),l(a,f),a=!1,n=s+1;continue}else continue}return n<e.length&&(a===!1?l(e.slice(n)):l(a,At(te.trim(e.slice(n))))),te.trim(i.join(" "))}function Ki(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="="?t:-1}}function Yi(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="'"||n==='"'?t:-1}}function Xi(e,t){for(;t>0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function Ji(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function At(e){return Ji(e)?e.substr(1,e.length-2):e}je.parseTag=qi;je.parseAttr=zi;var Qi=lt.FilterCSS,K=B,hn=je,Zi=hn.parseTag,ea=hn.parseAttr,xe=ct;function Fe(e){return e==null}function ta(e){var t=xe.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=xe.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=xe.trim(e.slice(0,-1))),{html:e,closing:n}}function na(e){var t={};for(var n in e)t[n]=e[n];return t}function ra(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(o){return o.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function yn(e){e=na(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=K.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=ra(e.whiteList||e.allowList):e.whiteList=K.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":K.attributeWrapSign,e.onTag=e.onTag||K.onTag,e.onTagAttr=e.onTagAttr||K.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||K.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||K.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||K.safeAttrValue,e.escapeHtml=e.escapeHtml||K.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Qi(e.css))}yn.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,o=n.whiteList,i=n.onTag,a=n.onIgnoreTag,c=n.onTagAttr,l=n.onIgnoreTagAttr,s=n.safeAttrValue,u=n.escapeHtml,f=t.attributeWrapSign,d=t.cssFilter;n.stripBlankChar&&(e=K.stripBlankChar(e)),n.allowCommentTag||(e=K.stripCommentTag(e));var w=!1;n.stripIgnoreTagBody&&(w=K.StripTagBody(n.stripIgnoreTagBody,a),a=w.onIgnoreTag);var y=Zi(e,function(g,v,b,h,p){var m={sourcePosition:g,position:v,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(o,b)},_=i(b,h,m);if(!Fe(_))return _;if(m.isWhite){if(m.isClosing)return"</"+b+">";var C=ta(h),x=o[b],E=ea(C.html,function(k,R){var V=xe.indexOf(x,k)!==-1,D=c(b,k,R,V);return Fe(D)?V?(R=s(b,k,R,d),R?k+"="+f+R+f:k):(D=l(b,k,R,V),Fe(D)?void 0:D):D});return h="<"+b,E&&(h+=" "+E),C.closing&&(h+=" /"),h+=">",h}else return _=a(b,h,m),Fe(_)?u(h):_},u);return w&&(y=w.remove(y)),y};var oa=yn;(function(e,t){var n=B,o=je,i=oa;function a(l,s){var u=new i(s);return u.process(l)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=i,function(){for(var l in n)t[l]=n[l];for(var s in o)t[s]=o[s]}(),typeof window<"u"&&(window.filterXSS=e.exports);function c(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}c()&&(self.filterXSS=e.exports)})(ze,ze.exports);var ia=ze.exports;const aa=mi(ia);function sa(e){return e=e.replace(/\*\*([^*]+)\*\*/g,"<b>$1</b>"),e=e.replace(/\[icon:([^\]]+)]/g,"<widget-icon>$1</widget-icon>"),e=e.replace(/\[(.*)]\((.*)\)/g,'<router-link to = "$2">$1</router-link>'),aa(e)}function la(e,t,n,o){let i=e+t/60+n/3600;return(o=="S"||o=="W")&&(i=i*-1),i}function ca(e,t){const n={dir:e<0?t==="long"?"W":"S":t==="long"?"E":"N",deg:0|(e<0?e=-e:e),min:0|(e+=1e-9)%1*60,sec:(0|e*60%1*6e3)/100};return`${n.deg}° ${n.min}' ${n.sec}" ${n.dir}`}function ut(e,t){const n=["forms",e];return t&&n.push(t),"/"+n.join("/")}function vn(e,t){return"/"+[T.PATH_RESOLVER_ENTITY,e,t].join("/")}function ua(){return`/${T.PATH_RESOLVER_ENTITY}/:entity/:primaryKey`}function dt(e){const t=Q.get(e);if(!t)throw new Error(`Metadata ${e} is still missing.`);return t.useCatalogInsteadId?"CatalogId":t.fieldNameForIdentification}function Ye(e,t,n){const o=G.getScope(e.toLowerCase());return t.map(i=>{typeof i.label=="string"&&(i.label=o(i.label)),i.type==="history"&&(i.onClick=c=>W.openModal(T.MODAL_HISTORY,{primaryKey:c[dt(e)],entity:e}),i.icon="history",i.class="widget-list-cell-history",i.hint="Open the History");const a=i.displayMode;if(a){const c=async l=>{try{const s=l[ne(i)];return[await st(fa(i,l),s),s]}catch{return[]}};a&&(a==="form"?i.link=l=>{const s=l[ne(i)];return s?vn(i.entity,s):null}:i.onClick=async l=>{const[s,u]=await c(l);if(!s||!u)return null;switch(i.displayMode){case"modal":return W.openModal(T.MODAL_ENTITY,{entity:s,primaryKey:u});case"inline":return n.activate(s,u,l)}}),i.class="widget-table-cell_link cursor_pointer",typeof i.value!="string"&&(i.value=(l,s)=>s[i.name[1]])}return da(i,i.type,i.presentation),I.listConvertCellConfigHandler&&I.listConvertCellConfigHandler(e,i),i})}function da(e,t,n){switch(t){case"Decimal":{n==="Money"&&(e.type="money");break}}return e}const fa=(e,t)=>e.useObjectTypeName?t[e.name[2]]:e.entity?e.entity:null;function pa(e){return F().emit("usage-context:read-mandatory-fields",e)}async function ma(e,t,n){const o=await fetch(`/close-api/document-builder/${e}/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!o.ok)throw new Error(T.DEFAULT_ERROR_MESSAGE);const i=await o.blob();nt(i,`${e}.pdf`,{blank:!0})}function ga(e){if(!Array.isArray(I.arrayListCellHandlers))throw new Error("Configuration has mistake: arrayListCellHandlers is not an array");I.arrayListCellHandlers.push(e)}function ha(e,t){const n=ne(e);return n?O.utils.getPropFromObject(t,n):null}function ya(e){if(!Array.isArray(I.arrayFieldParamsHandlers))throw new Error("Configuration has mistake: arrayListCellHandlers is not an array");I.arrayFieldParamsHandlers.push(e)}function va(e){if(!Array.isArray(I.arrayListRowHandlers))throw new Error("Configuration has mistake: arrayListRowHandlers is not an array");I.arrayListRowHandlers.push(e)}const wa={addListCellHandler:ga,getCellModelValue:ha,addFieldParamsHandler:ya,addListRowHandler:va};var wn=(e=>(e.form="form",e.inline="inline",e.modal="modal",e))(wn||{});function ba(){const e=r.ref(null);function t(n){e.value=n}return{activeRow:e,activateRow:t}}function Ea(e,t){return typeof e!="object"||e===null?!1:Object.values(e).join().toLowerCase().includes(t)}async function bn(e,t){e()&&(await t(),await bn(e,t))}function _a(e,t,n={}){let o=!1;const i=r.ref(""),a=r.computed(()=>c.filter(E=>u(E,i.value))),c=r.reactive([]);let l=0;const s=r.ref(!1);let u=(n==null?void 0:n.filterSearchFn)||((E,k)=>Ea(E,k));function f(){return n.masterEntities?typeof n.masterEntities=="function"?n.masterEntities():n.masterEntities:[]}function d(){const E=_();return typeof E.limit!="number"&&(E.limit=100),E.offset=l,(n.request||le)(e,E).then(R=>(l+=R.length,R))}function w(E,k){var V;return typeof E.Version=="number"?E.Version:(V=c.find(D=>D.Id===k))==null?void 0:V.Version}function y(E,k){const R=c.findIndex(V=>V.Id===E);if(R===-1)throw new Error(`Can't found item with Id ${E}`);c.splice(R,1,k)}function g(E){const k=c.findIndex(R=>R.Id===E);if(k===-1)throw new Error(`Can't found item with Id ${E}`);c.splice(k,1)}async function v(E,k){try{const R=_(),V=w(k,E);delete k.Version,await it(e,{id:E,values:k,version:V,masterEntities:f()});const D=await le(e,{fields:R.fields||"",id:E});y(E,D)}catch(R){P()(R)}}async function b(E,k={}){try{const R=_(),V=w(k,E);delete k.Version,await Jt(e,{id:E,version:V,masterEntities:f()}),g(E)}catch(R){P()(R)}}async function h(E){try{await Xt(e,{values:E,masterEntities:f()}),await C()}catch(k){P()(k)}}let p;async function m(){s.value=!0;try{p!=null&&p.signal&&!p.signal.aborted&&p.abort();let E=p=new AbortController,k=0;const V=_().limit||0;if(i.value&&!V){console.warn("Using textSearch assumes the use of limit.");return}await bn(()=>(V>0?k<V:!0)&&!o&&!E.signal.aborted,async()=>{const D=await d();E.signal.aborted||(c.push(...D),k+=D.filter(Z=>u(Z,i.value)).length,(D.length<V||V===0)&&(o=!0))})}catch(E){P()(E)}s.value=!1}function _(){return typeof t=="function"?t():t}async function C(){try{l=0,o=!1,c.splice(0,c.length),await m()}catch(E){P()(E)}}function x(){if(p)return p.abort();s.value=!1}return{array:c,updateById:v,next:m,reload:C,wait:s,create:h,deleteById:b,textSearch:i,filteredArray:a,abort:x}}function ka(){function e(){return{organizations:Y.organizations,currentContextId:Y.contextId,person:Y.person,context:Y.context,contextType:Y.contextType,userId:Y.userId}}const t=r.reactive(e());return Y.onupdateContext(()=>{Object.assign(t,e())}),t}function Ca(e,t,n){return F().emit("communication:create",{entityName:e,entityCatalogId:t,targetCode:n})}function Ta(e,t,n){return F().emit("communication:read",{entityName:e,entityCatalogId:t,targetCode:n})}function Sa(e,t){return F().emit("communication-message:create",{communicationId:e,text:t})}function Aa(e){return F().emit("communication-message:read",{communicationId:e})}function Ia(e){const t=O.Form.getParentForm(),n=r.reactive([]);return t&&t.subscribe(e),e.read=()=>Aa(e.id).then(o=>(n.splice(0,n.length,...o),o)),{array:n}}function Na(e,t){e.read=()=>{const o=n();return Promise.resolve().then(()=>{if(!e.name)throw re.EntityWithoutName(e);return le(e.name,o)}).then(mt).then(i=>(i.hasOwnProperty("Version")&&(e.version=i.Version),e.setValues(i),i)).catch(P())},e.save=()=>{const o=n();return Promise.resolve().then(()=>{if(!e.name)throw re.EntityWithoutName(e);return it(e.name,{id:o.id,values:e.changes,version:e.version})}).then(i=>{e.version=i.version}).catch(i=>{throw P()(i),i})};function n(){return typeof t=="function"?t():t}}function Se(e){if(!e)return r.inject(T.PROVIDE_NAME_METADATA);Q.initEntity(e);const t=r.computed(()=>Q.state[e]);return r.provide(T.PROVIDE_NAME_METADATA,t),r.provide(T.PROVIDE_ENTITY_NAME,e),t}function ft(e,t={}){if(!e)return r.inject(T.PROVIDE_NAME_USAGE_CONTEXT);const n=r.ref(null);return r.provide(T.PROVIDE_NAME_USAGE_CONTEXT,n),{state:n,update:async function(){n.value=await ei(e,Ra(t||{}))}}}function Ra(e){return typeof e=="function"?e():e}function Oa(e){if(!e)return r.inject(T.PROVIDE_NAME_ACTIONS);const t=r.ref(!1),n=r.reactive([]),o=r.computed(()=>n.map(c=>nn(e,c))),i={actions:o,update:a};r.provide(T.PROVIDE_NAME_ACTIONS,i),e.router=se.useRouter();function a(){if(t.value)return;t.value=!0,n.splice(0,n.length);const c=e==null?void 0:e.form;return Qt({masterEntities:e==null?void 0:e.masterEntities,id:c==null?void 0:c.id,entity:c==null?void 0:c.name}).then(l=>n.splice(0,0,...l)).catch(P("error")).finally(()=>t.value=!1)}return{actions:o,update:a,loading:r.readonly(t)}}function La(e){function t(n){n.key==="Enter"&&e()}r.onMounted(()=>{document.addEventListener("keypress",t)}),r.onUnmounted(()=>{document.removeEventListener("keypress",t)})}function Fa(e,t={}){const n=r.reactive([]),o=s=>{const u=r.unref(e);if(s===void 0){n.length===0?u.forEach(a):u.forEach(c);return}i(s)?c(s):a(s)},i=s=>n.includes(s),a=s=>{t.handleSelect&&!t.handleSelect(s)||i(s)||n.push(s)},c=s=>{const u=n.findIndex(f=>f===s);u!==-1&&n.splice(u,1)},l=r.computed(()=>{const s=r.unref(e);return n.length===s.length&&s.length!==0});return[n,o,l,a,c]}function xa(e){const t=r.ref(""),n=r.computed(()=>{const o=t.value.toLowerCase();return r.unref(e).filter(i=>t.value.length?Object.values(i).join().toLowerCase().includes(o):!0)});return{search:t,searchArray:n}}class He{static async getStartConfig(t,n){return F().emit("wizard:configuration",{process:t,entity:n})}static async startProcess(t,n){return F().emit("wizard:start",{process:t,entity:n})}static async runStep(t,n,o,i,a){return F().emit("wizard:step",{process:t,entity:n,stepName:o,token:i,values:a})}}function Ba(e){return e.statusName===U.Completed}function Va(e){return[U.FinalStepWithConfirmation,U.NextStepWithConfirmation].includes(e.statusName)}function $a(e){return e.statusName===U.ValidationError}function Da(e){return e.statusName===U.Undefined}function Pa(e,t,n){let o=null,i=[];const a=r.ref(!1),c=r.ref(null),l=r.computed(()=>d(i,c.value)),s=r.ref(null),u=r.reactive([]),f=r.computed(()=>u.map(p=>d(i,p)));function d(p,m){return p.find(_=>_.name===m)||null}async function w(p){var m;if(Da(p)){await n.onDisplayDataSet(p);return}if(!(Va(p)&&!await n.onDisplayDataSet(p))){if($a(p))return void n.onValidation(p.validationResults);v(p),await r.nextTick();{const _=((m=d(i,c.value))==null?void 0:m.fields)||[];if([U.FinalStep,U.NextStep,U.FinalStepWithConfirmation,U.NextStepWithConfirmation].includes(p.statusName)&&(!_.length||Ma(_,n.presets)))return h(n.presets||{})}Ba(p)&&n.onCompleted(p)}}async function y(){try{await g(),await b()}catch(p){P("error")(p)}}function g(){return a.value="Loading process information.",He.getStartConfig(t,e).then(p=>(s.value={label:p.processTitle,info:p.processInfo,icon:p.processIcon},i=p.steps.map(m=>{const _=m.frontendEntity.rootObject,C=Object.fromEntries(m.frontendEntity.objectTypes.map(x=>[x.name,x.properties]));return{label:m.title,name:m.stepName,number:m.number,rootObjectName:_,objectTypes:C,fields:C[_],buttonCaption:m.buttonCaption}}))).finally(()=>{a.value=!1})}function v(p){return[U.FinalStepWithConfirmation,U.NextStepWithConfirmation,U.NextStep,U.Completed,U.FinalStep].includes(p.statusName)?(o=p.token,c.value=p.nextStepName):console.log("Saving is not completed:",p),p}function b(){return a.value="Starting process",He.startProcess(t,e).then(w).catch(P("error")).finally(()=>{a.value=null})}function h(p={}){const m=c.value;return!o||!m?Promise.reject("Not step or token."):(a.value="Waiting for result...",He.runStep(t,e,m,o,p).then(w).then(_=>(u[u.length-1]!==m&&u.push(m),_)).catch(P("error")).finally(()=>{a.value=!1}))}return{initialize:y,loading:a,currentStepConfig:l,currentStepName:c,arrayPassedSteps:f,arrayProcessStepName:u,processInfo:s,next:h}}function Ma(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(!O.utils.getPropFromObject(t,o.name))return!1}return!0}function ja(e,t){const n=typeof e=="string"?e:e.name,o=Object.assign({},typeof e=="string"?{}:e.arguments,t||{});return{name:n,arguments:o}}function En(e,t,n,o,i,a,c,l={}){const s=F();a=a||150;let u=null;const f=[],d=r.reactive({count:0,rejected:!1,finished:!1,offset:0});function w(p){p===null&&(p=""),p===void 0&&(p="-");let m=typeof p!="string"?String(p):p;return m=m.replace(/"/g,'""'),m.search(/("|,|\n)/g)>=0&&(m='"'+m+'"'),m}async function y(){return le(t,{offset:d.offset,...u}).then(p=>(d.offset+=a,p))}function g(){const p="data:text/csv;charset=utf-8,"+f.join(`\r
|
|
8
|
+
`),m=encodeURI(p),_=document.createElement("a");_.setAttribute("href",m),_.setAttribute("download",`${t}.csv`),document.body.appendChild(_),_.click()}async function v(){if(n=l.extend?await s.emit("export-configuration:read",{entity:l.overrideEntity||t}).then(p=>p.map(m=>({label:m,name:m}))):n,u={limit:a||150,fields:at(n),order:i,filter:typeof o=="string"?o:N(o||{}),customFilters:Array.isArray(c)?c.map(p=>{var m;return ja(p,(m=l.customFiltersData)==null?void 0:m[typeof p=="string"?p:p.name])}):void 0},l.useSelectedRows&&Array.isArray(l.selectedRows)&&l.selectedRows.length){let p="";const m=await Q.initEntity(t);p=N({[m.primaryKey]:l.selectedRows.map(_=>_[m.primaryKey])}),u.filter.length?u.filter+=` and ${p}`:u.filter=p}l.overridePrefix&&typeof u.filter=="string"&&(u.filter=u.filter.replaceAll("@",p=>p+l.overridePrefix+".")),e==="csv"&&f.push(n.map(p=>w(p==null?void 0:p.label)).join(","))}function b(){d.rejected=!0}async function h(){return y().then(p=>{const m=p.map(_=>n.map(C=>w(Ce(C,_))).join(","));return f.push(...m),d.count=f.length,p.length}).then(p=>{if(p!==a&&(d.finished=!0),p===a&&!d.rejected)return h()}).catch(p=>{P("error")(p),W.closeModal()})}return{downloadFile:g,reject:b,state:d,start:h,init:v}}function _n(e,t){return r.computed(()=>(kn.value||[]).filter(n=>n.entityName===e&&n.templateTarget===t))}_n.init=function(t){kn.value=t};const kn=r.ref(),Ue=new class{constructor(){this.store=r.reactive([])}add(t,n,o={}){const i=Ua(o),a=new Xe(t,n,i.timeout,i.children,i.click,o.traceId||void 0);return this.store.push(a),i.timeout&&setTimeout(this.remove.bind(this,a.id),i.timeout*1e3),a}remove(t){const n=this.store.findIndex(o=>o.id===t);if(n===-1)return!1;this.store.splice(n,1)}};function Ua(e){function t(o){return!!o&&typeof o=="object"}const n={timeout:10,click:()=>null,children:[]};return t(e)?{timeout:e.timeout||n.timeout,click:e.click||n.click,children:e.children||n.children}:n}const $e=class $e{constructor(t,n,o,i,a,c){this.type=t,this.message=n,this.timeout=o,this.children=i,this.click=a,this.traceId=c,this.id=$e.cardId++}};$e.cardId=1;let Xe=$e;/*!
|
|
9
9
|
* jenesius-event-emitter v1.0.2
|
|
10
10
|
* (c) 2022 Jenesius
|
|
11
11
|
* @license MIT
|
|
12
|
-
*/const It=function(e,t){return e in this.events||(this.events[e]=[]),this.events[e].push(t),this.off.bind(this,e,t)},Nt=function(e,t){e in this.events&&this.events[e].forEach(n=>n(t))},Rt=function(e,t){const n=this.events[e];if(!n)return;const o=n.indexOf(t);o!==-1&&n.splice(o,1)},Ot=function(){this.events={}};class Z{constructor(){this.events={}}on(t,n){return It.call(this,t,n)}emit(t,n){return Nt.call(this,t,n)}off(t,n){return Rt.call(this,t,n)}cleanEvents(){Ot.call(this)}static on(t,n){return It.call(Z,t,n)}static emit(t,n){return Nt.call(Z,t,n)}static off(t,n){return Rt.call(Z,t,n)}static cleanEvents(){Ot.call(Z)}}Z.events={};class Ha extends Z{constructor(t){super(),this.name="Communication",this.read=()=>{},this.id=t}sendMessage(t){return Sa(this.id,t)}static checkAndGenerate(t,n,o){return Ta(t,n,o).then(i=>i.length===0?ka(t,n,o):i[0])}}function qa(){return x().emit("client:read",{})}class pt extends Error{static ConstContextCannotBeChanged(){return new pt("The current context is set to constant. In order to change it, you need to put Manager into a changeable state.")}}var Ce,me;const J=class J extends Z{constructor(){super(...arguments);Ne(this,Ce);Ne(this,me);this.isConstContext=!1,this.type="front",this.organizations=[],ue(this,me,!1)}set language(n){localStorage.setItem(T.LOCALSTORAGE_LANGUAGE_KEY,n)}get language(){return localStorage.getItem(T.LOCALSTORAGE_LANGUAGE_KEY)||J.DEFAULT_LANGUAGE}get contextId(){return Ie(this,Ce)}set contextId(n){if(this.isConstContext)throw pt.ConstContextCannotBeChanged();ue(this,Ce,n)}get contextType(){var n;if(this.contextId)return((n=this.person)==null?void 0:n.id)===this.contextId?"person":"organization"}get isBack(){return this.type==="back"}get isFront(){return this.type==="front"}set ready(n){ue(this,me,n),this.emit(J.EVENT_READY_UPDATE,n)}get ready(){return Ie(this,me)}onReady(n){return this.on(J.EVENT_READY_UPDATE,n)}onupdateContext(n){return this.on(J.EVENT_CONTEXT_UPDATE,n)}setCurrentContext(n){if(this.contextId===n)return console.warn("[application-manager] The current context has already been installed.");this.contextId=n,localStorage.setItem(T.LOCALSTORAGE_CURRENT_CONTEXT_KEY,String(n)),this.emit(J.EVENT_CONTEXT_UPDATE,n),console.log(`Current context id %c${n}`,"color: purple")}get context(){var n;return this.contextId?this.contextId===((n=this.person)==null?void 0:n.id)?this.person:this.organizations.find(o=>o.id===this.contextId)||null:null}async init(){try{const n=await this.loadCustomerData();this.customer=n,this.person=n,this.organizations=n.organizations,this.userId=n.userId,this.restoreCurrentContext(),this.ready=!0}catch(n){P()(n)}}restoreCurrentContext(){var o,i,a;if(typeof((o=this.customer)==null?void 0:o.constContextId)=="number"||((i=this.customer)==null?void 0:i.constContextId)===null)return this.setCurrentContext(this.customer.constContextId),this.isConstContext=!0;const n=((a=this.customer)==null?void 0:a.selectedContextId)||Number.parseInt(localStorage.getItem(T.LOCALSTORAGE_CURRENT_CONTEXT_KEY)||"");if(!Number.isNaN(n)&&n&&this.validateContextId(Number(n)))this.setCurrentContext(n);else{if(!this.person)return console.warn("Make sure you call ID recovery after saving user data");this.setCurrentContext(this.person.id)}}loadCustomerData(){return qa()}validateContextId(n){var o;try{return((o=this.person)==null?void 0:o.id)==n?!0:!!this.organizations.find(i=>i.id===n)}catch{return!1}}};Ce=new WeakMap,me=new WeakMap,J.DEFAULT_LANGUAGE="en",J.EVENT_CONTEXT_UPDATE="event:context-update",J.EVENT_READY_UPDATE="event:ready-update";let Je=J;function Ga(e){return x().emit("metadata:read",{entity:e})}const ee=function(){const t=r.reactive({}),n=new Map;function o(c){return t[c]}async function i(c){if(n.has(c)&&await n.get(c),t[c])return o(c);const s=await a(c);return l(c,s),o(c)}function a(c){const s=Ga(c).finally(()=>{n.delete(c)});return n.set(c,s),s}function l(c,s){t[c]=s}return{state:t,initEntity:i,get:o,loadingFlags:n}}();class za extends Z{on(t,n){return super.on(t,n)}emit(t,n){console.log("[event-bus] emit",t,n),super.emit(t,n)}off(t,n){super.off(t,n)}}class X{static login(t){return H(I.identityServerURL+"/api/Authenticate/Login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({...t,AppName:I.applicationName})})}static parseProcessAnswer(t){if(t.statusCode>4)throw new Error(t.statusName.replace(/([A-Z][a-z])/g," $1").replace(/(\d)/g," $1"));return t}static startRegistrationProcess(t){return X.requestStepRegistrationProcess("StartRegistration",t)}static confirmPhoneRegistrationProcess(t){return X.requestStepRegistrationProcess("ConfirmPhoneNumberByRegistration",t)}static confirmEmailRegistrationProcess(t){return X.requestStepRegistrationProcess("ConfirmEmailByRegistration",t)}static finishEmailRegistrationProcess(t){return X.requestStepRegistrationProcess("FinishRegistration",t)}static requestStepRegistrationProcess(t,n){return H(`${I.identityServerURL}/api/Authenticate/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(n)})}static startLoginProcess(t){return X.requestStepLoginProcess("StartLogin",t)}static loginWithPassword(t){return X.requestStepLoginProcess("LoginWithPassword",t)}static loginWithOtpCode(t){return X.requestStepLoginProcess("LoginWithOtpCode",t)}static requestStepLoginProcess(t,n){return H(`${I.identityServerURL}/api/Authenticate/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(n)}).then(X.parseLoginProcessAnswer)}static parseLoginProcessAnswer(t){if(t.statusCode>3)throw Error(t.statusName.replace(/([A-Z][a-z])/g," $1").replace(/(\d)/g," $1"));return t}static startPasswordReset(t,n){return H(`${I.identityServerURL}/api/Authenticate/StartAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({UserId:n,AppName:t})})}static confirmPhoneNumberByAccessRecovery(t,n,o,i){return H(`${I.identityServerURL}/api/Authenticate/ConfirmPhoneNumberByAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:t,Token:n,Prefix:o,Code:i})})}static confirmEmailByAccessRecovery(t,n,o,i){return H(`${I.identityServerURL}/api/Authenticate/ConfirmEmailByAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:t,Token:n,Prefix:o,Code:i})})}static finishAccessRecovery(t,n,o,i){return H(`${I.identityServerURL}/api/Authenticate/FinishAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:t,Token:n,Password:o,ConfirmedPassword:i})})}}class Ka{static readHistoryById(t,n){return H(`/close-api/audits/history/${t}/${n}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}class Ya{static getConfiguration(){return H("/open-api/webserver-configuration",{method:"GET",headers:{"Content-Type":"application/json"}})}static async getList(t){return await H(`/open-api/data/${t}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}class Xa{static getDictionary(t){if(!t)throw new Error(`Can't get dictionary for ${t}.`);return H(`/open-api/internationalization/language/${t}`)}}class Ja{static async upload(t,n){const o=new FormData;return o.append("file",t),o.append("entityName",n),H("/close-api/files",{method:"POST",body:o}).then(i=>(i.filename=t.name,i))}static getFileLink(t){return`/close-api/files/${t}`}}var kn=(e=>(e.Add="A",e.Delete="D",e.Modify="M",e.None="N",e))(kn||{}),Tn=(e=>(e.Approved="A",e.AwaitingFeedback="AF",e.AssignedForExam="AFE",e.Cancelled="C",e.Closed="CLS",e.Completed="CT",e.Draft="D",e.NotSatisfied="NSF",e.OnClarification="OC",e.Processing="P",e.Rejected="R",e.ReadyForExam="RFE",e.Submitted="S",e.SecurityCheck="SCK",e.Satisfied="SF",e.Withdrawn="W",e))(Tn||{});function Sn(e){return typeof e!="string"?!1:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)}function Qa(e){return typeof e!="object"||e===null?!1:!!(e.hasOwnProperty("start")||e.hasOwnProperty("end"))}function R(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];if(Array.isArray(o))return t.push(R.in(n,o)),t;if(An(o)&&(typeof o.min=="number"&&t.push(R.ge(n,o.min)),typeof o.max=="number"&&t.push(R.le(n,o.max))),Za(o)){if(o.text){const a=(l=>{switch(l){case"end":return R.endWith;case"begin":return R.beginWith;default:return R.includes}})(o.option);t.push(a(n,o.text))}return t}if(Qa(o)){let i=function(a){var l;return((l=a.match(/([^Z]*)/))==null?void 0:l[0])+"0000Z"};return o.start&&t.push(`@${n} ge ${i(o.start)}`),o.end&&t.push(`@${n} le ${i(o.end)}`),t}return typeof o=="number"||typeof o=="boolean"||typeof o=="string"?(t.push(R.eq(n,o)),t):(o===null&&t.push(R.is(n,o)),t)},[]).join(" and ")}function An(e){return e!==null&&typeof e=="object"&&("min"in e||"max"in e)}function Za(e){return e!==null&&typeof e=="object"&&"text"in e&&"option"in e}function ye(e){return typeof e=="string"&&Sn(e)?`{${e}}`:typeof e=="string"?`'${e}'`:`${e}`}R.includes=function(t,n){return`@${t} Contains ${ye(n)}`};R.beginWith=function(t,n){return`@${t} BeginWith ${ye(n)}`};R.endWith=function(t,n){return`@${t} EndWith ${ye(n)}`};R.notEq=function(t,n){return`@${t} nq ${ye(n)}`};R.eq=function(t,n){return Array.isArray(n)?R.in(t,n):`@${t} eq ${ye(n)}`};R.ge=function(t,n){return`@${t} ge ${n}`};R.le=function(t,n){return`@${t} le ${n}`};R.in=function(t,n){const o=n.map(ye).join(", ");return`@${t} in (${o})`};R.notIn=function(t,n){return!Array.isArray(n)||n.length===0?"":R.and(...n.map(o=>R.notEq(t,o)))};R.and=function(...t){return t.filter(n=>typeof n!="string"||n.trim().length===0?!1:n).map(R.wrap).join(" and ")};R.wrap=function(t){return`(${t})`};R.is=function(t,n){return`@${t} is ${n}`};R.or=function(...t){return t.join(" or ")};function mt(e){return Object.keys(e).reduce((t,n)=>{let o=e[n];const i=n.charAt(0).toUpperCase()+n.slice(1);return typeof o=="object"&&!(o==null||Array.isArray(o))&&(o=mt(o)),t[i]=o,t},{})}var U=(e=>(e.Completed="Completed",e.FinalStep="FinalStep",e.NextStep="NextStep",e.FinalStepWithConfirmation="FinalStepWithConfirmation",e.NextStepWithConfirmation="NextStepWithConfirmation",e.ValidationError="ValidationError",e.Undefined="Undefined",e))(U||{});const Y=new Je,_e=new za;exports.ApplicationStatus=Tn;exports.AsyncProcessStatus=Ht;exports.Communication=Ha;exports.CoreError=re;exports.DisplayListRow=wn;exports.EventBus=_e;exports.Filter=R;exports.ListDataController=jt;exports.Manager=Y;exports.MetadataStore=ee;exports.ModalListDownload=Co;exports.ModalVersionHistory=jo;exports.NotificationSystem=Ue;exports.OBJECT_TYPE_NAME_FIELD=xt;exports.RecordOperation=kn;exports.WidgetAction=Eo;exports.WidgetButton=gr;exports.WidgetFastTable=bo;exports.WidgetFastTableHeadCell=Dt;exports.WidgetField=Pr;exports.WidgetIcon=ge;exports.WidgetImage=Tr;exports.WidgetList=Dr;exports.WidgetLoader=Me;exports.WidgetMultiButton=Er;exports.WidgetResolverEntity=_o;exports.WidgetSpinner=Te;exports.WidgetTable=Vt;exports.WidgetTablePanelFilterItem=Pt;exports.asyncProcess=oe;exports.authService=X;exports.billingService=de;exports.catchUniversal=P;exports.config=or;exports.configuration=I;exports.constants=T;exports.convertDDToDMS=ca;exports.convertDMSToDD=la;exports.convertListConfig=Ye;exports.coreUtils=wa;exports.debounce=zt;exports.documentsService=Fn;exports.downloadDocumentBuilderFile=Uo;exports.fileService=Ja;exports.formatter=he;exports.getCellName=ne;exports.getCellValue=ke;exports.getEntityLink=ut;exports.getEntityResolveLink=vn;exports.getNamesFromListConfig=at;exports.getPathForResolveRouter=ua;exports.getPrimaryFieldNameForEntity=dt;exports.getUnitValue=qe;exports.groupArrayByField=qo;exports.historyService=Ka;exports.injectAction=Ut;exports.internationalizationService=Xa;exports.invitationService=Ln;exports.isUUID=Sn;exports.loadPrintForm=ma;exports.openBlobFile=nt;exports.openService=Ya;exports.parseError=ot;exports.parseTextByMarkdown=sa;exports.prettyDate=Be;exports.prettyDateWithTime=rt;exports.prettyMoney=Gt;exports.prettyValueFieldByEntity=Ge;exports.request=H;exports.setupListRow=Ze;exports.staticLink=tn;exports.t=G;exports.throttle=Ko;exports.universalBatchUpdate=Zt;exports.universalEntityCount=ni;exports.universalEntityCreate=Xt;exports.universalEntityDelete=Jt;exports.universalEntityRead=le;exports.universalEntityResolve=st;exports.universalEntityUpdate=it;exports.universalHistoryRead=en;exports.universalListSettingRead=Yt;exports.universalMandatoryFieldsRead=pa;exports.universalMetadataFieldTreat=Zo;exports.universalMetadataListRead=ti;exports.universalToolRead=Qt;exports.useActions=Oa;exports.useCommunication=Ia;exports.useEnter=La;exports.useFormEntity=Na;exports.useListActiveRow=ba;exports.useListDownload=En;exports.useListEntity=_a;exports.useListSearch=xa;exports.useListSelect=Fa;exports.useLocalStorage=Bt;exports.useManagerState=Ca;exports.useMetadata=Se;exports.useMetadataField=$t;exports.usePrintForm=_n;exports.useSocket=x;exports.useUsageContext=ft;exports.useVisibleItem=et;exports.useWizard=Pa;exports.uuidv4=Go;exports.valuesToUpperCase=mt;exports.wrapToolResponse=nn;
|
|
12
|
+
*/const It=function(e,t){return e in this.events||(this.events[e]=[]),this.events[e].push(t),this.off.bind(this,e,t)},Nt=function(e,t){e in this.events&&this.events[e].forEach(n=>n(t))},Rt=function(e,t){const n=this.events[e];if(!n)return;const o=n.indexOf(t);o!==-1&&n.splice(o,1)},Ot=function(){this.events={}};class ee{constructor(){this.events={}}on(t,n){return It.call(this,t,n)}emit(t,n){return Nt.call(this,t,n)}off(t,n){return Rt.call(this,t,n)}cleanEvents(){Ot.call(this)}static on(t,n){return It.call(ee,t,n)}static emit(t,n){return Nt.call(ee,t,n)}static off(t,n){return Rt.call(ee,t,n)}static cleanEvents(){Ot.call(ee)}}ee.events={};class Wa extends ee{constructor(t){super(),this.name="Communication",this.read=()=>{},this.id=t}sendMessage(t){return Sa(this.id,t)}static checkAndGenerate(t,n,o){return Ta(t,n,o).then(i=>i.length===0?Ca(t,n,o):i[0])}}function Ha(){return F().emit("client:read",{})}class pt extends Error{static ConstContextCannotBeChanged(){return new pt("The current context is set to constant. In order to change it, you need to put Manager into a changeable state.")}}var ke,me;const J=class J extends ee{constructor(){super(...arguments);Ne(this,ke);Ne(this,me);this.isConstContext=!1,this.type="front",this.organizations=[],ue(this,me,!1)}set language(n){localStorage.setItem(T.LOCALSTORAGE_LANGUAGE_KEY,n)}get language(){return localStorage.getItem(T.LOCALSTORAGE_LANGUAGE_KEY)||J.DEFAULT_LANGUAGE}get contextId(){return Ie(this,ke)}set contextId(n){if(this.isConstContext)throw pt.ConstContextCannotBeChanged();ue(this,ke,n)}get contextType(){var n;if(this.contextId)return((n=this.person)==null?void 0:n.id)===this.contextId?"person":"organization"}get isBack(){return this.type==="back"}get isFront(){return this.type==="front"}set ready(n){ue(this,me,n),this.emit(J.EVENT_READY_UPDATE,n)}get ready(){return Ie(this,me)}onReady(n){return this.on(J.EVENT_READY_UPDATE,n)}onupdateContext(n){return this.on(J.EVENT_CONTEXT_UPDATE,n)}setCurrentContext(n){if(this.contextId===n)return console.warn("[application-manager] The current context has already been installed.");this.contextId=n,localStorage.setItem(T.LOCALSTORAGE_CURRENT_CONTEXT_KEY,String(n)),this.emit(J.EVENT_CONTEXT_UPDATE,n),console.log(`Current context id %c${n}`,"color: purple")}get context(){var n;return this.contextId?this.contextId===((n=this.person)==null?void 0:n.id)?this.person:this.organizations.find(o=>o.id===this.contextId)||null:null}async init(){try{const n=await this.loadCustomerData();this.customer=n,this.person=n,this.organizations=n.organizations,this.userId=n.userId,this.restoreCurrentContext(),this.ready=!0}catch(n){P()(n)}}restoreCurrentContext(){var o,i,a;if(typeof((o=this.customer)==null?void 0:o.constContextId)=="number"||((i=this.customer)==null?void 0:i.constContextId)===null)return this.setCurrentContext(this.customer.constContextId),this.isConstContext=!0;const n=((a=this.customer)==null?void 0:a.selectedContextId)||Number.parseInt(localStorage.getItem(T.LOCALSTORAGE_CURRENT_CONTEXT_KEY)||"");if(!Number.isNaN(n)&&n&&this.validateContextId(Number(n)))this.setCurrentContext(n);else{if(!this.person)return console.warn("Make sure you call ID recovery after saving user data");this.setCurrentContext(this.person.id)}}loadCustomerData(){return Ha()}validateContextId(n){var o;try{return((o=this.person)==null?void 0:o.id)==n?!0:!!this.organizations.find(i=>i.id===n)}catch{return!1}}};ke=new WeakMap,me=new WeakMap,J.DEFAULT_LANGUAGE="en",J.EVENT_CONTEXT_UPDATE="event:context-update",J.EVENT_READY_UPDATE="event:ready-update";let Je=J;function qa(e){return F().emit("metadata:read",{entity:e})}const Q=function(){const t=r.reactive({}),n=new Map;function o(l){return t[l]}async function i(l){if(n.has(l)&&await n.get(l),t[l])return o(l);const s=await a(l);return c(l,s),o(l)}function a(l){const s=qa(l).finally(()=>{n.delete(l)});return n.set(l,s),s}function c(l,s){t[l]=s}return{state:t,initEntity:i,get:o,loadingFlags:n}}();class Ga extends ee{on(t,n){return super.on(t,n)}emit(t,n){console.log("[event-bus] emit",t,n),super.emit(t,n)}off(t,n){super.off(t,n)}}class X{static login(t){return q(I.identityServerURL+"/api/Authenticate/Login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({...t,AppName:I.applicationName})})}static parseProcessAnswer(t){if(t.statusCode>4)throw new Error(t.statusName.replace(/([A-Z][a-z])/g," $1").replace(/(\d)/g," $1"));return t}static startRegistrationProcess(t){return X.requestStepRegistrationProcess("StartRegistration",t)}static confirmPhoneRegistrationProcess(t){return X.requestStepRegistrationProcess("ConfirmPhoneNumberByRegistration",t)}static confirmEmailRegistrationProcess(t){return X.requestStepRegistrationProcess("ConfirmEmailByRegistration",t)}static finishEmailRegistrationProcess(t){return X.requestStepRegistrationProcess("FinishRegistration",t)}static requestStepRegistrationProcess(t,n){return q(`${I.identityServerURL}/api/Authenticate/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(n)})}static startLoginProcess(t){return X.requestStepLoginProcess("StartLogin",t)}static loginWithPassword(t){return X.requestStepLoginProcess("LoginWithPassword",t)}static loginWithOtpCode(t){return X.requestStepLoginProcess("LoginWithOtpCode",t)}static requestStepLoginProcess(t,n){return q(`${I.identityServerURL}/api/Authenticate/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(n)}).then(X.parseLoginProcessAnswer)}static parseLoginProcessAnswer(t){if(t.statusCode>3)throw Error(t.statusName.replace(/([A-Z][a-z])/g," $1").replace(/(\d)/g," $1"));return t}static startPasswordReset(t,n){return q(`${I.identityServerURL}/api/Authenticate/StartAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({UserId:n,AppName:t})})}static confirmPhoneNumberByAccessRecovery(t,n,o,i){return q(`${I.identityServerURL}/api/Authenticate/ConfirmPhoneNumberByAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:t,Token:n,Prefix:o,Code:i})})}static confirmEmailByAccessRecovery(t,n,o,i){return q(`${I.identityServerURL}/api/Authenticate/ConfirmEmailByAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:t,Token:n,Prefix:o,Code:i})})}static finishAccessRecovery(t,n,o,i){return q(`${I.identityServerURL}/api/Authenticate/FinishAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:t,Token:n,Password:o,ConfirmedPassword:i})})}}class za{static readHistoryById(t,n){return q(`/close-api/audits/history/${t}/${n}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}class Ka{static getConfiguration(){return q("/open-api/webserver-configuration",{method:"GET",headers:{"Content-Type":"application/json"}})}static async getList(t){return await q(`/open-api/data/${t}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}class Ya{static getDictionary(t){if(!t)throw new Error(`Can't get dictionary for ${t}.`);return q(`/open-api/internationalization/language/${t}`)}}class Xa{static async upload(t,n){const o=new FormData;return o.append("file",t),o.append("entityName",n),q("/close-api/files",{method:"POST",body:o}).then(i=>(i.filename=t.name,i))}static getFileLink(t){return`/close-api/files/${t}`}}var Cn=(e=>(e.Add="A",e.Delete="D",e.Modify="M",e.None="N",e))(Cn||{}),Tn=(e=>(e.Approved="A",e.AwaitingFeedback="AF",e.AssignedForExam="AFE",e.Cancelled="C",e.Closed="CLS",e.Completed="CT",e.Draft="D",e.NotSatisfied="NSF",e.OnClarification="OC",e.Processing="P",e.Rejected="R",e.ReadyForExam="RFE",e.Submitted="S",e.SecurityCheck="SCK",e.Satisfied="SF",e.Withdrawn="W",e))(Tn||{});function Sn(e){return typeof e!="string"?!1:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)}function Ja(e){return typeof e!="object"||e===null?!1:!!(e.hasOwnProperty("start")||e.hasOwnProperty("end"))}function N(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];if(Array.isArray(o))return t.push(N.in(n,o)),t;if(An(o)&&(typeof o.min=="number"&&t.push(N.ge(n,o.min)),typeof o.max=="number"&&t.push(N.le(n,o.max))),Qa(o)){if(o.text){const a=(c=>{switch(c){case"end":return N.endWith;case"begin":return N.beginWith;default:return N.includes}})(o.option);t.push(a(n,o.text))}return t}if(Ja(o)){let i=function(a){var c;return((c=a.match(/([^Z]*)/))==null?void 0:c[0])+"0000Z"};return o.start&&t.push(`@${n} ge ${i(o.start)}`),o.end&&t.push(`@${n} le ${i(o.end)}`),t}return typeof o=="number"||typeof o=="boolean"||typeof o=="string"?(t.push(N.eq(n,o)),t):(o===null&&t.push(N.is(n,o)),t)},[]).join(" and ")}function An(e){return e!==null&&typeof e=="object"&&("min"in e||"max"in e)}function Qa(e){return e!==null&&typeof e=="object"&&"text"in e&&"option"in e}function ye(e){return typeof e=="string"&&Sn(e)?`{${e}}`:typeof e=="string"?`'${e}'`:`${e}`}N.includes=function(t,n){return`@${t} Contains ${ye(n)}`};N.beginWith=function(t,n){return`@${t} BeginWith ${ye(n)}`};N.endWith=function(t,n){return`@${t} EndWith ${ye(n)}`};N.notEq=function(t,n){return`@${t} nq ${ye(n)}`};N.eq=function(t,n){return Array.isArray(n)?N.in(t,n):`@${t} eq ${ye(n)}`};N.ge=function(t,n){return`@${t} ge ${n}`};N.le=function(t,n){return`@${t} le ${n}`};N.in=function(t,n){const o=n.map(ye).join(", ");return`@${t} in (${o})`};N.notIn=function(t,n){return!Array.isArray(n)||n.length===0?"":N.and(...n.map(o=>N.notEq(t,o)))};N.and=function(...t){return t.filter(n=>typeof n!="string"||n.trim().length===0?!1:n).map(N.wrap).join(" and ")};N.wrap=function(t){return`(${t})`};N.is=function(t,n){return`@${t} is ${n}`};N.or=function(...t){return t.join(" or ")};function mt(e){return Object.keys(e).reduce((t,n)=>{let o=e[n];const i=n.charAt(0).toUpperCase()+n.slice(1);return typeof o=="object"&&!(o==null||Array.isArray(o))&&(o=mt(o)),t[i]=o,t},{})}var U=(e=>(e.Completed="Completed",e.FinalStep="FinalStep",e.NextStep="NextStep",e.FinalStepWithConfirmation="FinalStepWithConfirmation",e.NextStepWithConfirmation="NextStepWithConfirmation",e.ValidationError="ValidationError",e.Undefined="Undefined",e))(U||{});const Y=new Je,_e=new Ga;exports.ApplicationStatus=Tn;exports.AsyncProcessStatus=Ht;exports.Communication=Wa;exports.CoreError=re;exports.DisplayListRow=wn;exports.EventBus=_e;exports.Filter=N;exports.ListDataController=jt;exports.Manager=Y;exports.MetadataStore=Q;exports.ModalListDownload=ko;exports.ModalVersionHistory=jo;exports.NotificationSystem=Ue;exports.OBJECT_TYPE_NAME_FIELD=xt;exports.RecordOperation=Cn;exports.WidgetAction=Eo;exports.WidgetButton=gr;exports.WidgetFastTable=bo;exports.WidgetFastTableHeadCell=Dt;exports.WidgetField=Pr;exports.WidgetIcon=ge;exports.WidgetImage=Tr;exports.WidgetList=Dr;exports.WidgetLoader=Me;exports.WidgetMultiButton=Er;exports.WidgetResolverEntity=_o;exports.WidgetSpinner=Te;exports.WidgetTable=Vt;exports.WidgetTablePanelFilterItem=Pt;exports.asyncProcess=oe;exports.authService=X;exports.billingService=de;exports.catchUniversal=P;exports.config=or;exports.configuration=I;exports.constants=T;exports.convertDDToDMS=ca;exports.convertDMSToDD=la;exports.convertListConfig=Ye;exports.coreUtils=wa;exports.debounce=zt;exports.documentsService=Fn;exports.downloadDocumentBuilderFile=Uo;exports.fileService=Xa;exports.formatter=he;exports.getCellName=ne;exports.getCellValue=Ce;exports.getEntityLink=ut;exports.getEntityResolveLink=vn;exports.getNamesFromListConfig=at;exports.getPathForResolveRouter=ua;exports.getPrimaryFieldNameForEntity=dt;exports.getUnitValue=qe;exports.groupArrayByField=qo;exports.historyService=za;exports.injectAction=Ut;exports.internationalizationService=Ya;exports.invitationService=Ln;exports.isUUID=Sn;exports.loadPrintForm=ma;exports.openBlobFile=nt;exports.openService=Ka;exports.parseError=ot;exports.parseTextByMarkdown=sa;exports.prettyDate=Be;exports.prettyDateWithTime=rt;exports.prettyMoney=Gt;exports.prettyValueFieldByEntity=Ge;exports.request=q;exports.setupListRow=Ze;exports.staticLink=tn;exports.t=G;exports.throttle=Ko;exports.universalBatchUpdate=Zt;exports.universalEntityCount=ni;exports.universalEntityCreate=Xt;exports.universalEntityDelete=Jt;exports.universalEntityRead=le;exports.universalEntityResolve=st;exports.universalEntityUpdate=it;exports.universalHistoryRead=en;exports.universalListSettingRead=Yt;exports.universalMandatoryFieldsRead=pa;exports.universalMetadataFieldTreat=Zo;exports.universalMetadataListRead=ti;exports.universalToolRead=Qt;exports.useActions=Oa;exports.useCommunication=Ia;exports.useEnter=La;exports.useFormEntity=Na;exports.useListActiveRow=ba;exports.useListDownload=En;exports.useListEntity=_a;exports.useListSearch=xa;exports.useListSelect=Fa;exports.useLocalStorage=Bt;exports.useManagerState=ka;exports.useMetadata=Se;exports.useMetadataField=$t;exports.usePrintForm=_n;exports.useSocket=F;exports.useUsageContext=ft;exports.useVisibleItem=et;exports.useWizard=Pa;exports.uuidv4=Go;exports.valuesToUpperCase=mt;exports.wrapToolResponse=nn;
|
|
13
13
|
//# sourceMappingURL=eservices-core.cjs.js.map
|