eservices-core 1.3.285 → 1.3.287

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
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{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_bold{font-weight:600}.text_nowrap{white-space:nowrap}.text_right{text-align:right}.text_center{text-align:center}.text_size_sm{font-size:12px;line-height:130%}.text_size_md{font-size:14px;line-height:140%}.text_error{color:red}.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}.overflow_auto{overflow:auto}.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-800b3803]{box-shadow:0 2px 2px #00000040;background-color:#fff;padding:20px 10px}.widget-filter-enum[data-v-cd8043dd]{box-shadow:0 2px 2px #00000040;background-color:#fff;padding:3px 0;max-height:400px;max-width:340px;min-width:180px;overflow:hidden auto}.widget-filter-enum-item[data-v-cd8043dd]{padding:6px 11px;transition:.1s;cursor:pointer}.widget-filter-enum-item[data-v-cd8043dd]:hover{background-color:#f1f1f1}[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-ed31ccd3]{position:relative}.widget-filter-item-arrow[data-v-ed31ccd3]{transform:rotate(180deg)}.widget-filter-item-label_active[data-v-ed31ccd3]{font-weight:700}.widget-filter-item[data-v-ed31ccd3]{display:grid;grid-template-columns:max-content max-content;align-items:center;cursor:pointer;padding:0 10px;color:#fff}.widget-filter-item[data-v-ed31ccd3]:not(.widget-filter-item_active){opacity:.6}.widget-filter-item-label[data-v-ed31ccd3]{-webkit-user-select:none;user-select:none;padding:4px 2px 4px 8px}.widget-filter-item-popup[data-v-ed31ccd3]{position:absolute;z-index:2;inset-block-start:100%;inset-inline-end:0}.widget-filter-item-arrow[data-v-ed31ccd3]{transition:.2s}.widget-table-panel-filter[data-v-89e1fa2d]{justify-content:end;background-color:var(--color-primary)}.version-item[data-v-efd61247]{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-efd61247]{white-space:nowrap}.line-clamp_5[data-v-efd61247]{text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.history-header[data-v-321c2f32]{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-321c2f32]{display:flex;flex-direction:column-reverse;overflow:auto}.wrap-modal-version-history[data-v-321c2f32]{min-height:380px}@media screen and (min-width: 756px){.wrap-modal-version-history[data-v-321c2f32]{min-width:800px;max-width:1000px}}.wrap-history[data-v-321c2f32]{height:100%;overflow:auto}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  "use strict";var mt=e=>{throw TypeError(e)};var gt=(e,n,t)=>n.has(e)||mt("Cannot "+t);var Pe=(e,n,t)=>(gt(e,n,"read from private field"),t?t.call(e):n.get(e)),Me=(e,n,t)=>n.has(e)?mt("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,t),Ce=(e,n,t,o)=>(gt(e,n,"write to private field"),o?o.call(e,t):n.set(e,t),t);/*!
3
- * eservices-core v1.3.285
3
+ * eservices-core v1.3.287
4
4
  * (c) 2024 ESERVICES
5
5
  */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),L=require("jenesius-vue-form"),se=require("vue-router"),yn=require("date-and-time"),Fe=require("debug"),G=require("jenesius-vue-modal"),R=class R extends Error{constructor(n,t=null){super(),this.message=n,this.details=t,this.id=R.ID++}static ParentFormNotFound(){return new R("Can't found parent form.")}static UndefinedNameOfCompositeFormController(n){return new R("Composite object name is undefined",n)}static EntityWithoutName(n){return new R("'Entity doesn't have a name",n)}static NotResolvedNameEventEmitter(n){return new R(`'${n}' is not a valid Event emitter name`)}static FormIsNotValidated(n){return new R("Form is not validated",n)}static ListWorkerIsRunningOrEnd(n){return new R("List data request is running or already done",n)}static ObjectIdNotNumber(n){return new R(`${n} (id) is not a number`)}static UndefinedErrorId(n,t){return R.ApiNotAvailable()}static ApiError(n){return new R("Request error",n)}static ApiNotAvailable(){return new R(`Sorry, we experience difficulties here.
6
6
  Please try again later or submit a feedback if problem doesn't go.`)}static AuthServiceError(n,t){return!n&&!t?R.ApiNotAvailable():new R(n||"Authorization Error",t)}static ApiResponseParseFailed(){return R.ApiNotAvailable()}static MissingIdInValuesEntity(n){return new R("Object doesn't have id",n)}static ObjectWithIdNotFound(n,t){return new R(`Can't find object with id: ${n}`,t)}static ObjectWithoutConnectToPresentArray(n,t){return new R("Object is not found.",{object:n,array:t})}static EntityWithoutId(n){return new R("Entity doesn't have id.",n)}static NotFoundedTableIndex(n,t){return new R(`Can't find the element with tableIndex ${n}`,t)}static UndefinedError(n,t=[]){return new R(n,t)}static TableArrayAlreadyIncludeProvidedIndexValue(n,t,o){return new R(`Array already includes the element with value ${n}`,{array:t,table:o})}static MetadataEntityIsNotAvailable(n){return new R(`Metadata for the ${n} is not currently available.`)}static RequestTookToLong(){return new R("The request took too long to complete. Try again later.")}};R.ID=0;let ne=R;const vn="Please try again later or submit a feedback if problem doesn't go.";function wn(e){return e.text().then(n=>{try{return JSON.parse(n)}catch{return vn}})}function pe(e,n={}){return n.redirect="manual",fetch(e,n).then(t=>t.type==="opaqueredirect"?void window.location.replace("/auth"):t).catch(()=>{throw ne.ApiNotAvailable()}).then(t=>wn(t).then(o=>{if(!t.ok)throw o;return o}))}class En{constructor(){this.public=!1,this.errors=new Proxy([],{set:(n,t,o)=>(t!=="length"&&this.public&&console.log(`Journal [Error] ${JSON.stringify(o)}`),n[t]=o,!0)}),window._journal=this}get error(){return{add:(...n)=>{this.errors.push(n)},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 En;class bn{static invite(n,t,o){return pe("/close-api/accounts/invitePerson",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationId:n,personKey:t,relatedRoleCode:o})})}static accept(n,t){return pe("/close-api/accounts/markInvite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({invitationId:n,version:t,mark:!0})})}static decline(n,t){return pe("/close-api/accounts/markInvite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({invitationId:n,version:t,mark:!1})})}}class _n{static getRequiredDocuments(n,t,o){const i=new URLSearchParams({entity:n,primaryKey:t,statusCode:o});return fetch(`/close-api/views/required-documents?${i.toString()}`).then(a=>a.json())}}class fe{static url(){return"close-api/billing"}static getBillingMetadata(n){return fetch(`/${fe.url()}/calculator/${n}`)}static calculate(n,t){return pe(`/${fe.url()}/calculator`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({entity:n,values:t})}).then(o=>{if(o&&o.status===1)return o;throw Array.isArray(o.notes)?new Error(o.notes[0]):ne.ApiNotAvailable()})}static parseMetadataField(n){function t(o){switch(o.type){case"ValueType":switch(o.dataType){case"Integer":return"number";default:return o.dataType}case"EntityReference":return o.dataType}}return{name:n.name,label:n.title,required:n.required,type:t(n)}}static createOnlinePayment(n,t){return pe(`/${fe.url()}/online-payment`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({paymentId:n,returnURL:t})})}static applyOnlinePayment(n){return pe(`/${fe.url()}/online-payment`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({response:n})})}}const kn={class:"widget-table__head-cell"},Cn={key:1,class:"widget-table__head-label margin_0 text_overflow"},It=r.defineComponent({__name:"widget-table-head-cell",props:{label:{},type:{}},emits:["select"],setup(e,{emit:n}){const t=n;function o(){t("select")}return(i,a)=>(r.openBlock(),r.createElementBlock("th",kn,[i.type==="multi-select"?(r.openBlock(),r.createBlock(r.unref(L.FormField),{key:0,onClick:o})):(r.openBlock(),r.createElementBlock("span",Cn,r.toDisplayString(i.label),1))]))}}),Tn={class:"widget-table__head"},Sn=r.defineComponent({__name:"widget-table-head",props:{config:{}},setup(e){return r.computed(()=>It),(n,t)=>(r.openBlock(),r.createElementBlock("tr",Tn,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.config,o=>r.renderSlot(n.$slots,"default",r.mergeProps({ref_for:!0},o),void 0,!0)),256))]))}}),W=(e,n)=>{const t=e.__vccOpts||e;for(const[o,i]of n)t[o]=i;return t},An=W(Sn,[["__scopeId","data-v-aa18d6fa"]]);function Ke(e){return Array.isArray(e)?Ke(e[0]):typeof e!="string"?null:e}function le(e){return Ke(e.name)}function In(e){const n=new RegExp(/\$\{([a-zA-Z0-9_.]+)}/,"g"),t=[];let o;for(;(o=n.exec(e))!==null;)t.push(o[1]);return t}function Nn(e,n){return In(e).forEach(o=>{e=e.replace(new RegExp("\\$\\{"+o+"}","g"),L.utils.getPropFromObject(n,o))}),e}function We(e){return n=>typeof n=="string"||typeof n=="number"?`${n} ${e}`:""}function Be(e,n){const t=le(e);if(typeof e.value=="string")return Nn(e.value,n);let o=t?L.utils.getPropFromObject(n,t):null;if(o===void 0&&(o=null),typeof e.value=="function")return e.value(o,n);if(e.value===null)return null;switch(e.unitValue&&(o=We(e.unitValue)(o)),e.unit&&(o=We(e.unit)(o)),e.type){case"number":{typeof o=="number"&&(o=new Intl.NumberFormat().format(o));break}case"date":{o=Re(typeof o=="string"?o:null);break}case"dateTime":case"dateWithTime":{o=tt(typeof o=="string"?o:null);break}case"money":{o=jt(o);break}case"DateTime":{o=Re(typeof o=="string"?o:null,e.format||S.dateTimeFormat);break}}return e.formatter&&(o=ge(e.formatter).exec(o,n)),typeof o=="boolean"&&(o=o?"✓":"—"),o}const Rn=1,Ln=5e3,On="static-folder",Nt="request-error",Rt="EntityTypeName",Fn="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:3e4,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:Rt,FIELD_NAME_REFERENCE_CHANGES:Fn,PATH_RESOLVER_ENTITY:"resolver",TOOL_PRINT_NAME:"Print"};function De(e){return[T.CORE_DEBUG_LABEL,e].join(":")}const Bn={class:"widget-filter-text flex gap_20"},Dn=r.defineComponent({__name:"widget-filter-text",props:{values:{}},emits:["update:values"],setup(e,{emit:n}){const t=e,o=n,i=r.ref("");function a(){o("update:values",i.value)}return r.watch(()=>t.values,l=>{if(typeof l!="string")return i.value="";i.value=l},{immediate:!0}),(l,c)=>{const s=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",Bn,[r.createVNode(r.unref(L.FormField),{type:"text",modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u)},null,8,["modelValue"]),r.createVNode(s,{onClick:a,type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(oe)("Apply")),1)]),_:1})])}}}),$n=W(Dn,[["__scopeId","data-v-800b3803"]]),xn={class:"widget-filter-enum"},Vn={class:"flex gap-10 padding-10"},Pn=r.defineComponent({__name:"widget-filter-entity",props:{baseEntity:{},filters:{},values:{},filterMetadata:{}},emits:["update:values","readProcess"],setup(e,{emit:n}){const t=e,o=r.ref([]),i=_e(t.filterMetadata.entity),a=d=>(t.values||[]).includes(d),l=n;function c(d){const h=t.values||[];return h.includes(d)?l("update:values",h.filter(y=>y!==d)):l("update:values",[...h,d])}const s=re(async()=>{o.value=await ce(t.baseEntity,{fields:t.filterMetadata.name.join(" "),order:[t.filterMetadata.name[1],"asc"],distinct:!0,filter:$(t.filters)}).then(d=>d.map(h=>({label:h[t.filterMetadata.name[1]],value:h[t.filterMetadata.name[0]]})))});function u(){l("update:values",[])}return r.watch(()=>s.loading,d=>{l("readProcess",d?"start":"end")},{immediate:!0}),r.watch(()=>i.value,()=>{s.loading||s.call()},{immediate:!0}),(d,h)=>{const y=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",xn,[r.createElementVNode("div",Vn,[r.createVNode(y,{label:"Reload filter",loading:r.unref(s).loading||!1,icon:"reload",onClick:h[0]||(h[0]=()=>r.unref(s).call())},null,8,["loading"]),r.createVNode(y,{label:"Clear",onClick:u})]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,v=>(r.openBlock(),r.createBlock(r.unref(L.FormField),{class:"widget-filter-enum-item",key:v.value,onClick:()=>c(v.value),type:"single-checkbox","model-value":a(v.value),label:v.label},null,8,["onClick","model-value","label"]))),128))])}}}),Mn=W(Pn,[["__scopeId","data-v-cd8043dd"]]),ye=r.reactive({});function jn(){ht(),setInterval(ht,50)}function Lt(){return ye}function ht(){const e={};Object.entries(localStorage).forEach(([n,t])=>{e[n]=!0,ye[n]!==t&&(ye[n]=t)}),Object.keys(ye).forEach(n=>{e[n]||delete ye[n]})}const S={getEntityLink(e,n){return`/forms/${e}/${n}`},iconHandlerText(){return""},iconTag:"i",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",tableFilterEntityBind:{String:$n,Entity:Mn},arrayListCellHandlers:[],arrayListRowHandlers:[],arrayFieldParamsHandlers:[]};function Un(e){jn();for(let n in e)S[n]=e[n]}const Wn={props:{name:String},setup(e,n){let t="unknown";try{t=n.slots.default()[0].children}catch{t=e.name}typeof t!="string"&&console.warn(`Name for Icon.vue is not string. ${t}`);try{t=t.replace(/\s+/g,"")}catch{}return()=>r.h(S.iconTag,{class:S.iconHandler?S.iconHandler(t):`icon icon-${t}`},S.iconHandlerText(t))}},ve=W(Wn,[["__scopeId","data-v-8a72b45f"]]),qn=Fe(De("setup-list-row"));function Hn(e,n){const t=e.config.map(o=>Gn(o,e,n));return r.h("tr",{class:"widget-table__row widget-table-row"},t)}function Gn(e,n,t){const o=n.values;let i=Be(e,o);const a={onClick:[],title:e.hint,class:["widget-table__cell widget-table-cell"]};function l(d){a.onClick.push(()=>d(o,e,t))}function c(d){Array.isArray(d)?a.class.push(...d):a.class.push(d)}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(L.FormField,{type:"single-checkbox",modelValue:n.selected})),l(yt.bind(null,t,!0));break}case"select":{u.push(r.h(L.FormField,{type:"single-radio",modelValue:n.selected})),l(yt.bind(null,t,!1));break}}if(e.onClick&&l(e.onClick),e.link)try{const d=e.link(o);if(d){const h=r.h(se.RouterLink,{to:d});u.push(h),c("widget-table-cell_link")}}catch(d){qn("Can't add router link",d)}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(ve,{name:e.icon})),typeof e.icon=="function")){const d=e.icon(o);d!==null&&u.push(r.h(ve,{name:d}))}return e.class&&(typeof e.class=="function"?c(e.class(o)):c(e.class)),S.listCellHandler&&(console.log("listCellHandler is deprecated. Please use coreUtils.addListCellHandler instead."),S.listCellHandler(e,o,{cellNodeChildren:u,addClass:c,addHandleClick:l,context:t})),S.arrayListCellHandlers&&S.arrayListCellHandlers.forEach(d=>d(e,o,{cellNodeChildren:u,addClass:c,addHandleClick:l,context:t})),s.push(r.h("td",a,u)),s}function yt(e,n){e.emit("select",n)}function Je(e,n){return()=>{try{return Hn(e,n)}catch(t){return console.warn(t),null}}}const zn={props:{values:Object,config:Object,selected:Boolean},setup:Je},Yn=["colspan"],vt=r.defineComponent({__name:"widget-table-form",props:{rowLength:{},component:{},values:{},isNew:{type:Boolean}},emits:["save","close"],setup(e,{emit:n}){const t=n,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=>t("close")),onSave:a[1]||(a[1]=l=>t("save",l))}),null,16,["values","new"]))],8,Yn)],512))}}),je="update:selectedRows",Xn="update:activeRow",Ot=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:n}){const t=e,o=r.ref(),i=n,a=r.useSlots(),l=r.computed(()=>{var v;return(v=a==null?void 0:a.default)==null?void 0:v.call(a)[0]});function c(){const m=t.selectedRows.length!==0?[]:[...t.array];i(je,m)}function s(v,m=!0){if(!t.selectedRows)return;if(!m)return i(je,t.selectedRows.includes(v)?[]:[v]);const g=[...t.selectedRows],w=g.indexOf(v);return w===-1?g.push(v):g.splice(w,1),i(je,g)}function u(v){i(Xn,v)}function d(v){i("save",v),i("update:activeRow",null)}const h=r.computed(()=>t.shortcut?t.config.filter(v=>v.name?!!t.array.find(m=>![null,""].includes(Be(v,m))):!0):t.config);r.watch(()=>t.activeRow,(v,m)=>{v===null&&typeof m=="number"&&setTimeout(()=>{if(!o.value)return;const g=o.value.querySelector(`tbody>tr:nth-child(${m+1})`)||o.value;g&&g.scrollIntoView({block:"center",behavior:"smooth"})},100)});function y(v){var g;const m={};return(g=S.arrayListRowHandlers)==null||g.forEach(w=>{try{Object.assign(m,w(v,t.rowOptionsHandler()))}catch{console.warn("Problem with arrayListRowHandler.")}}),m}return(v,m)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("table",{class:"widget-table",ref_key:"refTable",ref:o},[r.createElementVNode("thead",null,[r.createVNode(An,{config:h.value,onOrder:m[0]||(m[0]=g=>v.$emit("order",g))},{default:r.withCtx(g=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(v.$slots["head-cell"]||It),r.mergeProps(g,{onSelect:c}),null,16))]),_:1},8,["config"])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.array,(g,w)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:w},[r.createVNode(zn,r.mergeProps({config:h.value,values:g,selected:v.selectedRows.includes(g),onSelect:f=>s(g,f),onActivate:f=>u(w),class:v.classCallback?v.classCallback(g):"",ref_for:!0},y(g)),null,16,["config","values","selected","onSelect","onActivate","class"]),l.value&&v.activeRow===w?(r.openBlock(),r.createBlock(vt,{key:0,component:l.value,"row-length":v.config.length,values:g,onClose:m[1]||(m[1]=f=>i("update:activeRow",null)),onSave:d,"is-new":!1},null,8,["component","row-length","values"])):r.createCommentVNode("",!0)],64))),128)),v.activeRow===r.unref(T).LIST_ACTIVE_NEW?(r.openBlock(),r.createBlock(vt,{key:0,component:l.value,"row-length":h.value.length,onClose:m[2]||(m[2]=g=>i("update:activeRow",null)),onSave:d,"is-new":!0},null,8,["component","row-length"])):r.createCommentVNode("",!0)])],512)]))}}),Kn=r.defineComponent({__name:"widget-spinner",props:{color:{default:"#fff"}},setup(e){return(n,t)=>(r.openBlock(),r.createElementBlock("div",{class:"widget-spinner",style:r.normalizeStyle({"border-left":`1.1em solid ${n.color}`})},null,4))}}),be=W(Kn,[["__scopeId","data-v-0ef9ae88"]]),Jn={class:"widget-button"},Qn=r.defineComponent({__name:"widget-button",props:{wait:{type:Boolean}},setup(e){return(n,t)=>(r.openBlock(),r.createElementBlock("button",Jn,[n.wait?(r.openBlock(),r.createBlock(be,{key:0,class:"widget-button-spinner"})):r.createCommentVNode("",!0),r.renderSlot(n.$slots,"default",{},void 0,!0)]))}}),Zn=W(Qn,[["__scopeId","data-v-450dc564"]]),er={class:"widget-multi-button-wrap position_relative cursor_pointer"},tr={class:"widget-multi-button-body grid"},nr=["onClick"],rr={class:"widget-multi-button-side-wrap"},or=r.defineComponent({__name:"widget-multi-button",props:{label:{},array:{default:()=>[]}},setup(e){r.useCssVars(l=>({"04895bf1":o.value}));const n=e,t=r.reactive({active:!1,wait:!1}),o=r.computed(()=>n.array.length+(n.label?1:0));function i(l){if(!(typeof l!="function"||t.wait))return t.wait=!0,Promise.resolve().then(l).finally(()=>{t.wait=!1})}function a(l=!t.active){t.active=l}return(l,c)=>(r.openBlock(),r.createElementBlock("div",er,[r.createElementVNode("div",{class:r.normalizeClass(["overflow_hidden radius_20 widget-multi-button grid",t.active?"widget-multi-button_active":null])},[r.createElementVNode("div",tr,[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:d=>{i(s.callback),a(!1)}},r.toDisplayString(s.label),9,nr))),128))]),r.createElementVNode("div",rr,[r.createElementVNode("div",{class:r.normalizeClass(["grid-center widget-multi-button-side",t.active?"widget-multi-button-side_active":null]),onClick:c[1]||(c[1]=s=>a())},[t.wait?(r.openBlock(),r.createBlock(r.unref(be),{key:0,class:"widget-multi-button-side-spinner"})):l.array.length>1?(r.openBlock(),r.createBlock(r.unref(ve),{key:1,class:"widget-multi-button-side-icon"},{default:r.withCtx(()=>[r.createTextVNode("angle-small-down")]),_:1})):r.createCommentVNode("",!0)],2)])],2)]))}}),ir=W(or,[["__scopeId","data-v-d43a76ce"]]),ar={class:"widget-loader flex flex-align_center gap_10 padding_15"},sr={class:"text_md"},$e=r.defineComponent({__name:"widget-loader",props:{label:{}},setup(e){return(n,t)=>(r.openBlock(),r.createElementBlock("div",ar,[r.createVNode(be,{color:"var(--primary)",class:"padding_10"}),r.createElementVNode("span",sr,r.toDisplayString(n.label),1)]))}}),lr=["alt","src"],cr=r.defineComponent({__name:"widget-image",props:{src:{},alt:{},default:{}},setup(e){const n=e,t=r.ref();return r.onMounted(()=>{t.value&&(t.value.src=n.src),t.value.onerror=function(){n.default&&(t.value.src=n.default)}}),(o,i)=>(r.openBlock(),r.createElementBlock("img",{alt:o.alt,ref_key:"refImage",ref:t,src:o.src||o.$props.default},null,8,lr))}}),ur={props:{config:Array,values:Object,selected:Boolean},setup:Je},dr=W(ur,[["__scopeId","data-v-344a8cc1"]]),fr=e=>(r.pushScopeId("data-v-bf495d6a"),e=e(),r.popScopeId(),e),pr={class:"widget-list-head-cell"},mr=fr(()=>r.createElementVNode("div",{class:"head-cell-resize"},null,-1)),gr=r.defineComponent({__name:"widget-list-head-cell",props:{title:{},label:{},name:{},type:{},minWidth:{},maxWidth:{},width:{},order:{}},emits:["select","order"],setup(e,{emit:n}){const t=e,o=n;return t.title&&console.warn(`For cell ${t.name} using title,it should be replaced with label.`),(i,a)=>(r.openBlock(),r.createElementBlock("th",null,[r.createElementVNode("div",pr,[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(L.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(ve),{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),mr])]))}}),hr=W(gr,[["__scopeId","data-v-bf495d6a"]]),yr=r.defineComponent({__name:"widget-list-head",props:{config:{},order:{}},emits:["update:config","update:order","select"],setup(e,{emit:n}){const t=e,o=n,i=r.ref(),a=r.ref();r.onMounted(()=>{function u(m,g){let w=-1;do w++,g-=m[w];while(g>0&&w<m.length);return w}function d(m,g){let w=0;for(;g>0&&g>m[w]&&w<m.length;)g-=m[w],w++;return console.log(g,w),w>0?w:0}function h(m){try{a.value.style.insetInlineStart=m+"px"}catch(g){console.log(g)}}function y(m){try{a.value.style.width=m+"px",a.value.style.minWidth=m+"px",a.value.style.maxWidth=m+"px"}catch(g){console.log(g)}}function v(m){return m===null?!1:m.classList.contains("head-cell-resize")}i.value.addEventListener("pointerdown",function(g){var q;function w(V){return V.screenX+E-C}const f=i.value,p=[...f.children].filter(V=>V.localName==="th"),E=((q=f.offsetParent)==null?void 0:q.scrollLeft)||0,b=p.map(V=>V.clientWidth),N=v(g.target),C=f.getBoundingClientRect().left,k=w(g),_=u(b,k),A=b.slice(0,_).reduce((V,P)=>V+P,0),D=k-A,x=f.offsetWidth,Q=p[_].clientWidth;if(t.config[_].type==="multi-select")return;console.group("START"),console.log(),console.log("Start screenX",g.screenX),console.log("Widths",b),console.log("max width",x),console.log("Start Position",k),console.log("Position From",_),console.log("Start Position",_),console.log("Global offset (Отступ самой таблицы от края экрана)",C),console.log("Del",D),console.groupEnd(),a.value.innerText=p[_].textContent||"",a.value.style.display="grid",a.value.style.width=Q+"px",a.value.style.cursor="grabbing",h(A),y(Q),document.addEventListener("pointermove",O,{passive:!0}),document.addEventListener("pointerup",I);function I(V){if(console.group("END"),document.removeEventListener("pointermove",O),document.removeEventListener("pointerup",I),N&&(t.config[_].width=a.value.style.width,t.config[_].minWidth=a.value.style.width,t.config[_].maxWidth=a.value.style.width,l(t.config)),!N){const P=V.screenX+E-C;console.log("ENP Position",P);const j=d(b,P);if(console.log(_,"->",j),j!==_){const Y=t.config[_],de=t.config;de.splice(_,1),de.splice(j,0,Y),l(de)}else{const Y=t.config[_].name;c(Y)}}a.value.style.display="none",document.body.style.cursor="unset",console.groupEnd()}function O(V){if(N){const Y=w(V)-k+Q;y(Y);return}let P=V.screenX+E-C-D;P<0&&(P=0),P+Q>x&&(P=x-Q),h(P)}})});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(t.order.length===0||t.order[0]!==u)return void s([u]);const d=t.order.length===1||t.order[1]==="asc"?"asc":"desc";s([u,d==="asc"?"desc":"asc"])}function s(u){o("update:order",u)}return(u,d)=>(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,(h,y)=>(r.openBlock(),r.createBlock(hr,r.mergeProps({key:h,ref_for:!0},h,{onOrder:v=>c(h.name),onSelect:d[0]||(d[0]=v=>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))}}),vr=W(yr,[["__scopeId","data-v-ccffc6bd"]]),wr={class:"widget-list"},Er={class:"widget-list-body position_relative"},br=50,_r=r.defineComponent({__name:"widget-list",props:{array:{},config:{default:()=>[]},selectedRows:{default:()=>[]},order:{default:()=>[]}},emits:["scrollEnd","update:selectedRows","update:order","update:config"],setup(e,{emit:n}){const t=e,o=n;function i(s,u=!0){if(t.selectedRows)if(!u)l(t.selectedRows.includes(s)?[]:[s]);else{const d=[...t.selectedRows],h=d.indexOf(s);h===-1?d.push(s):d==null||d.splice(h,1),l(d)}}function a(){var s;if(((s=t.selectedRows)==null?void 0:s.length)!==t.array.length)return l([...t.array]);l([])}function l(s){o("update:selectedRows",s)}function c(s){if(!s)return;const u=s.target;u.scrollTop+u.clientHeight+br>u.scrollHeight&&o("scrollEnd")}return(s,u)=>(r.openBlock(),r.createElementBlock("div",{class:"es-list-container",onScrollPassive:c},[r.createElementVNode("table",wr,[r.createElementVNode("thead",null,[r.createVNode(vr,{onSelect:u[0]||(u[0]=d=>a()),"onUpdate:order":u[1]||(u[1]=d=>o("update:order",d)),"onUpdate:config":u[2]||(u[2]=d=>o("update:config",d)),config:s.config,order:s.order},null,8,["config","order"])]),r.createElementVNode("tbody",Er,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.array,(d,h)=>{var y;return r.openBlock(),r.createBlock(dr,{key:h,class:"widget-list-row",values:d,config:s.config,selected:(y=s.selectedRows)==null?void 0:y.includes(d),onSelect:v=>i(d,v)},null,8,["values","config","selected","onSelect"])}),128))])])],32))}});function Qe(){var a;const e=r.computed(()=>Object.keys(t).length===0||Object.values(t).includes(!0)),n=(a=r.getCurrentInstance())==null?void 0:a.uid;if(!n)throw"Undefined instance. Please check it.";const t=r.reactive({});r.provide(T.VISIBLE_ITEM_PROVIDE_NAME,{show(l){t[l]=!0},hide(l){t[l]=!1},remove(l){delete t[l]}});const o=r.inject(T.VISIBLE_ITEM_PROVIDE_NAME,{show(){},hide(){},remove(){}});return{visible:e,controller:{show(){o==null||o.show(n)},hide(){o==null||o.hide(n)},remove(){o==null||o.remove(n)}},visibleItems:t}}function Ft(e){const n={name:e,entity:r.inject(T.PROVIDE_ENTITY_NAME)};if(!n.name)throw new Error("Field without name try use metadata.");const t=r.ref(!1),o=r.ref(null);return e.split(".").reduce((i,a,l,c)=>l===c.length-1?i:i.then(()=>{var u,d;const s=(d=(u=o.value)==null?void 0:u.fieldsByName[a])==null?void 0:d.referencedEntity;if(!s)throw new Error("---");return ee.initEntity(s).then(()=>s)}).then(s=>{o.value=ee.get(s),n.entity=s,n.name=c[l+1]}),Promise.resolve().then(()=>ee.initEntity(n.entity)).then(()=>{o.value=ee.get(n.entity)})).finally(()=>t.value=!0),r.computed(()=>{if(!t.value||!o.value)return;const i=o.value.fieldsByName[n.name];if(i)return i})}const kr=r.defineComponent({__name:"widget-field",props:{name:{},type:{},label:{},usageContext:{type:Boolean,default:!0}},setup(e){const n=e,t=L.Form.getParentForm();_e();const o=ut(),i=r.computed(()=>{var g,w,f;const y=s.value,v=u(y),m={type:v,disabled:n.usageContext?!((g=c.value)!=null&&g.canSet):!1,label:n.label};return v==="Decimal"&&((f=(w=y==null?void 0:y.presentationType)==null?void 0:w.toLowerCase)==null?void 0:f.call(w))==="money"&&(m.money=!0),y&&Object.assign(m,{suffix:v==="number"?y.valueUnit:void 0,required:l.includes(v||"")?!1:y.required,label:n.label||y.displayName}),Array.isArray(S.arrayFieldParamsHandlers)&&S.arrayFieldParamsHandlers.forEach(p=>Object.assign(m,p(y,c.value,m,t,n.name))),m}),a=["MultiText","MultiWideText"],l=["switch","single-checkbox","single-radio"],c=r.computed(()=>{var y;return(y=o==null?void 0:o.value)==null?void 0:y.fields[n.name]}),s=Ft(n.name);function u(y){if(typeof n.type=="string"&&n.type.length!==0)return n.type;if(y){if(y.type==="Reference"||y.type==="Owned")return y.referencedEntity;if(y.dataType==="Boolean")return"single-checkbox";if(y.dataType==="DateTime")return"date";if(y.dataType==="Integer"||y.dataType==="Decimal")return"number";if(y.dataType==="List")return y.aggregatedEntity;if(a.includes(y.presentationType))return"textarea";if(y.presentationType==="PhoneNumber")return"tel"}return"text"}const d=r.computed(()=>{var y;return n.usageContext?((y=c.value)==null?void 0:y.canGet)===!0:!0}),{controller:h}=Qe();return r.watch(()=>d.value,y=>y?h.show():h.hide(),{immediate:!0}),r.onUnmounted(()=>h.remove()),(y,v)=>d.value?(r.openBlock(),r.createBlock(r.unref(L.FormField),r.mergeProps({key:0},{...y.$attrs,...i.value},{name:y.name}),null,16,["name"])):r.createCommentVNode("",!0)}});function Cr(e){return Array.isArray(e)&&(e==null?void 0:e[1])||T.DEFAULT_ORDER_DIR}const Tr=["fill"],Sr=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),Ar=[Sr],Ir=r.defineComponent({__name:"widget-icon-arrow-up",props:{color:{}},setup(e){return(n,t)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:n.color},Ar,8,Tr))}}),Nr={class:"widget-fast-table-head-cell-td"},Rr={key:1,class:"widget-head-cell-label"},Lr={key:2,class:"widget-head-cell-order"},Or=r.defineComponent({__name:"widget-fast-table-head-cell",props:{label:{},name:{},order:{},type:{},isFullSelected:{type:Boolean}},emits:["select"],setup(e,{emit:n}){const t=e,o=r.computed(()=>Ke(t.name));r.computed(()=>Cr(t.order));const i=n;function a(){i("select")}return(l,c)=>{var s;return r.openBlock(),r.createElementBlock("td",Nr,[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(L.FormField),{key:0,"model-value":l.isFullSelected,onClick:a,type:"single-checkbox"},null,8,["model-value"])):(r.openBlock(),r.createElementBlock("span",Rr,r.toDisplayString(l.label),1)),o.value===((s=l.order)==null?void 0:s[0])?(r.openBlock(),r.createElementBlock("div",Lr,[r.createVNode(Ir,{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)])}}}),Bt=W(Or,[["__scopeId","data-v-d131e64e"]]),Fr=["fill"],Br=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),Dr=[Br],$r=r.defineComponent({__name:"widget-icon-keyboard-arrow-down",props:{color:{}},setup(e){return(n,t)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:n.color},Dr,8,Fr))}}),xr={class:"widget-filter-item-popup"},Vr=r.defineComponent({__name:"widget-table-panel-filter-item",props:{entity:{},values:{},filters:{},filterItem:{}},emits:["update:values"],setup(e,{emit:n}){const t=e,o=n,i=S.tableFilterEntityBind,a=r.ref(),l=r.computed(()=>{const v=t.filterItem;return v.entity?"Entity":v.type?v.type:null});function c(v){s.value=v==="start"}const s=r.ref(!1),u=r.computed(()=>Array.isArray(t.values)||typeof t.values=="string"?t.values.length>0:!!t.values),d=r.ref(!1);let h=null;function y(v=!d.value){d.value=v,!d.value&&h?(h(),h=null):a.value&&(h=L.utils.clickOutside(a.value,y.bind(null,!1)))}return(v,m)=>{var g;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]=()=>y())},[r.createElementVNode("span",{class:r.normalizeClass(["widget-filter-item-label",{"widget-filter-item-label_active":u.value}])},r.toDisplayString(v.filterItem.label||"--"),3),s.value?(r.openBlock(),r.createBlock(be,{key:0})):(r.openBlock(),r.createBlock($r,{key:1,color:"white",class:r.normalizeClass({"widget-filter-item-arrow":d.value})},null,8,["class"]))],2),r.withDirectives(r.createElementVNode("div",xr,[l.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent((g=r.unref(i))==null?void 0:g[l.value]),{key:0,"filter-metadata":v.filterItem,values:v.values,filters:v.filters,"base-entity":v.entity,"onUpdate:values":m[1]||(m[1]=w=>o("update:values",w)),onReadProcess:c},null,40,["filter-metadata","values","filters","base-entity"])):r.createCommentVNode("",!0)],512),[[r.vShow,d.value]])],512)}}}),Dt=W(Vr,[["__scopeId","data-v-ed31ccd3"]]),Pr={class:"widget-table-panel-filter flex"},Mr=r.defineComponent({__name:"widget-table-panel-filters",props:{filtersConfig:{},filters:{},entity:{}},emits:["update:filters"],setup(e,{emit:n}){const t=e,o=n;function i(a,l){o("update:filters",{...t.filters,[a]:l})}return(a,l)=>(r.openBlock(),r.createElementBlock("div",Pr,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.filtersConfig,(c,s)=>{var u;return r.openBlock(),r.createBlock(Dt,{key:s,entity:a.entity,"filter-item":c,values:(u=a.filters)==null?void 0:u[r.unref(le)(c)],filters:a.filters,"onUpdate:values":d=>i(r.unref(le)(c),d)},null,8,["entity","filter-item","values","filters","onUpdate:values"])}),128))]))}}),jr=W(Mr,[["__scopeId","data-v-89e1fa2d"]]);function $t(e,n){const t=document.createElement("a");t.href=e,n!=null&&n.blank&&(t.target="_blank"),t.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{t.remove()},100)}const Ur={class:"widget-fast-table-tools flex gap-15"},Wr=r.defineComponent({__name:"widget-fast-table-tools",props:{tools:{},loading:{type:Boolean},selectedRows:{},metadata:{},canCreate:{type:Boolean}},emits:["reload","export","new"],setup(e,{emit:n}){const t=e,o=se.useRouter(),i=n,a=[{name:"config",label:"Settings",icon:"list-settings",buttonStyle:"default",callback:()=>null},{name:"export",label:"Save as CSV",icon:"list-download",buttonStyle:"default",callback:()=>i("export")},{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(t.tools)?t.tools:[]).reduce((m,g)=>(g.name==="*"?m.push(...a):m.push(g),m),[]));function s(m){return a.find(g=>g.name===m.name)}function u(m){return{...m,label:m.label||"Batch update",callback:async()=>{const g=t.metadata,w=g.name,f=t.selectedRows||[];if(t.selectedRows.length===0)return Ve.add("error","Kindly select at least one record to update");const p=await G.promptModal(T.MODAL_BATCH_VALUES,{entity:w,availableFields:m.availableFields||[]}),E=ct(w),b=f.map(N=>({primaryKey:N[E],version:g.versioned?N.Version:void 0}));await zt(w,{values:p,elements:b}).then(N=>{N.forEach(C=>{C.type==="reject"&&M("error")(C.data)})}).catch(M("error")),i("reload")}}}function d(m){return{...m,callback:()=>o.push(m.to)}}function h(m){return{...m,callback:()=>{const g=Xt(m.filename);$t(g,{blank:!0})}}}const y=r.computed(()=>{var w;const m=((w=l==null?void 0:l.actions)==null?void 0:w.value)||[],g=[];return c.value.forEach(f=>{if(!(typeof f.override=="string"&&!m.find(p=>p.name===f.override))){if(s(f)){if(f.name==="new"&&!t.canCreate)return;const p=a.find(E=>E.name===f.name);if(p)return g.push(p)}if(f.name==="redirect")return g.push(d(f));if(f.name==="batch-update")return g.push(u(f));if(f.name==="static-file")return g.push(h(f));{const p=m.find(E=>E.name===f.name);if(p)return g.push({label:p.title,...f,callback:()=>v(p)})}}}),g.map(f=>({...f,process:re(f.callback)}))});function v(m){var f;const g=(f=m.action.parameters.find(p=>p.dataTypeName==="IntegerArray"))==null?void 0:f.name,w={};return g&&(w[g]=t.selectedRows.map(p=>{if(!(typeof p=="object"&&p!==null))return null;const E=t.metadata.fieldNameForIdentification;return E?p[E]:null})),m.callback(w)}return(m,g)=>{const w=r.resolveComponent("widget-button");return r.openBlock(),r.createElementBlock("div",Ur,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.value,f=>(r.openBlock(),r.createBlock(w,{label:f.label,title:f.name,icon:f.icon,type:f.buttonStyle,loading:f.name==="reload"?m.loading:f.process.loading,onClick:()=>f.process.call()},null,8,["label","title","icon","type","loading","onClick"]))),256)),r.renderSlot(m.$slots,"default")])}}});function qr(e){const n=Lt(),t=se.useRouter(),o=r.reactive({entity:null,mark:null,settings:null});function i(p){const E={...u.value,...p};a(E)}function a(p){{const E=p.prefilters;E&&(Object.keys(E).forEach(b=>{var N,C;Array.isArray(E[b])&&E[b].length===0&&o.settings&&!((C=(N=o.settings)==null?void 0:N.prefilters)!=null&&C[b])&&delete E[b]}),L.utils.isEmptyObject(E)&&delete p.prefilters)}localStorage.setItem(s(o.entity,o.mark),JSON.stringify(p))}function l(){return o.entity?JSON.parse(localStorage[s(o.entity,o.mark)]||"{}"):null}function c(p,E){o.entity=p,o.mark=E,h.call()}function s(p,E){return"list-configuration:"+p+(E?"-"+E:"")}const u=r.computed(()=>o.entity?JSON.parse(n[s(o.entity,o.mark)]||"{}"):null),d=r.computed(()=>o.settings?ze(o.entity,o.settings.config,{router:t,activate:e}):[]),h=re(async function(){if(!o.entity)return;const E=await Wt(o.entity,o.mark);o.settings=Object.freeze(E)}),y=r.computed(()=>{var b;const p=u.value.order||null,E=((b=o.settings)==null?void 0:b.order)||null;return p||E||[]}),v=r.computed(()=>{var b;const p=u.value.prefilters||{};return{...((b=o.settings)==null?void 0:b.prefilters)||{},...p}}),m=r.computed(()=>{var p;return((p=o.settings)==null?void 0:p.filters)||[]}),g=r.computed(()=>{var p;return((p=o.settings)==null?void 0:p.label)||null}),w=r.computed(()=>{var p;return((p=o.settings)==null?void 0:p.tools)||[]}),f=r.computed(()=>!L.utils.isEmptyObject(u.value));return{state:o,get customFilters(){return o.settings.customFilters||[]},set:c,get:l,configuration:u,update:i,computedPrefilter:v,computedFiltersConfiguration:m,get cellConfig(){return o.settings?ze(o.entity,o.settings.config,{router:t,activate:e}):[]},get prefilters(){var p;return((p=l())==null?void 0:p.prefilters)||o.settings.prefilters||{}},get order(){var p;return((p=l())==null?void 0:p.order)||o.settings.order||[]},clean(){localStorage.removeItem(s(o.entity,o.mark))},cellConfiguration:d,computedLabel:g,computedTools:w,computedHasLocalConfiguration:f,computedOrder:y,get displayModeForNew(){return o.settings.displayModeForNew||"inline"}}}const Hr={class:"es-grid es-gap-15"},Gr={key:0,class:"title-md color-primary margin-0 widget-fast-table-label"},zr={class:""},Yr=r.defineComponent({__name:"widget-fast-table",props:{entity:{},mark:{},masterEntities:{},binding:{},actions:{},hideLabel:{type:Boolean}},setup(e,{expose:n}){const t=e,o=se.useRouter(),i=r.ref([]),a=r.ref(null),l=r.computed(()=>a.value?i.value.indexOf(a.value[2]):null);function c(I,O,q){a.value=[I,O,q]}const s=r.ref(null),u=L.Form.getParentForm(),d=r.ref([]),h=_e(t.entity),{state:y,update:v}=ut(t.entity,{masterEntities:t.masterEntities||[]}),m=re(async()=>{try{await w.call(),await v()}catch(I){const{message:O}=nt(I);s.value=O}});u instanceof L.Form&&u.subscribe({read:m.call.bind(null),name:t.entity,type:"table"}),r.watch(()=>t.mark,()=>{C.set(t.entity,t.mark)});function g(){return $.and($(C.prefilters),$(t.binding||{}))}const w=re(async function(){const O=t.entity;s.value=null,d.value=[];const q=await ce(O,{customFilters:C.customFilters,fields:ot(k.value).join(" "),order:C.order,filter:g()});i.value=Object.freeze(q.map(V=>Object.freeze(V)))}),{controller:f}=Qe();r.watch(()=>y.value,I=>{I&&(I.canRead?f.show():f.hide())},{immediate:!0});let p=[we.on("affected-entity",I=>{I.name===t.entity&&w.call()}),we.on("display-entity",async I=>{I.name===t.entity&&(w.promise&&await w.promise,c(I.name,I.id,i.value.find(O=>O[h.value.fieldNameForIdentification]===I.id)))})];r.onUnmounted(()=>{p.map(I=>I()),f.remove()});function E(I){function O(P){return Array.isArray(P)?O(P[0]):typeof P!="string"?null:P}const q=O(I);if(!q)return;const V=C.order;b("order",V[0]!==q?[q,"asc"]:V[1]==="desc"?[]:[q,"desc"])}function b(I,O){C.update({[I]:O}),w.call()}const N=r.computed(()=>m.wait),C=qr(c),k=C.cellConfiguration;C.set(t.entity,t.mark),r.watch(()=>C.state.settings,m.call);const _=r.computed(()=>C.state.settings);n({listSettings:_,array:i,config:k});function A(){G.openModal(T.MODAL_LIST_DOWNLOAD,{entity:t.entity,cellConfig:C.cellConfig,order:C.order,prefilters:g(),customFilters:C.customFilters})}function D(){switch(C.displayModeForNew){case"modal":return G.openModal(T.MODAL_ENTITY,{entity:t.entity});case"form":return o.push(lt(t.entity));case"inline":return a.value=[t.entity]}}function x(){C.clean(),w.call()}function Q(){return{entity:t.entity}}return(I,O)=>{var P;const q=r.resolveComponent("widget-button"),V=r.resolveComponent("widget-fast-table-form");return r.openBlock(),r.createElementBlock("div",Hr,[r.unref(C).computedLabel.value&&!I.hideLabel?(r.openBlock(),r.createElementBlock("p",Gr,r.toDisplayString(r.unref(C).computedLabel.value),1)):r.createCommentVNode("",!0),r.unref(h)?(r.openBlock(),r.createBlock(Wr,{key:1,metadata:r.unref(h),tools:r.unref(C).computedTools.value,loading:N.value,"selected-rows":d.value||[],onReload:r.unref(m).call,onExport:A,onNew:D,"can-create":((P=r.unref(y))==null?void 0:P.canCreate)||!1},{default:r.withCtx(()=>[r.renderSlot(I.$slots,"tools"),r.unref(C).computedHasLocalConfiguration.value?(r.openBlock(),r.createBlock(q,{key:0,onClick:x,type:"primary",label:"Clear all filters"})):r.createCommentVNode("",!0)]),_:3},8,["metadata","tools","loading","selected-rows","onReload","can-create"])):r.createCommentVNode("",!0),r.createElementVNode("div",zr,[r.createVNode(jr,{entity:I.entity,"filters-config":r.unref(C).computedFiltersConfiguration.value,filters:r.unref(C).computedPrefilter.value,"onUpdate:filters":O[0]||(O[0]=j=>b("prefilters",j))},null,8,["entity","filters-config","filters"]),r.createVNode(r.unref(Ot),{config:r.unref(k),array:i.value,"active-row":l.value,"onUpdate:activeRow":O[2]||(O[2]=j=>a.value=null),onOrder:E,class:"table",selectedRows:d.value,"onUpdate:selectedRows":O[3]||(O[3]=j=>d.value=j),"row-options-handler":Q},{"head-cell":r.withCtx(j=>{var Y,de,pt;return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(I.$slots["head-cell"]?I.$slots["head-cell"]:Bt),r.mergeProps({label:j.label},j,{onOrder:E,order:r.unref(C).computedOrder.value,type:j.type,"is-full-selected":((Y=d.value)==null?void 0:Y.length)===((de=i.value)==null?void 0:de.length)&&((pt=i.value)==null?void 0:pt.length)>0}),null,16,["label","order","type","is-full-selected"]))]}),default:r.withCtx(()=>{var j,Y;return[r.createVNode(V,{entity:(j=a.value)==null?void 0:j[0],"primary-key":((Y=a.value)==null?void 0:Y[1])||null,"master-entities":I.masterEntities||void 0,binding:I.binding,onFormUpdate:O[1]||(O[1]=()=>{a.value=null,r.unref(w).call()})},null,8,["entity","primary-key","master-entities","binding"])]}),_:1},8,["config","array","active-row","selectedRows"])])])}}});function xt(e,n={},t={}){const o=r.inject(T.PROVIDE_NAME_ACTIONS,null),i=typeof e=="string"?e:n,a=typeof n=="string"?t:n;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 Xr=r.defineComponent({__name:"widget-action",props:{name:{},overrideParams:{}},setup(e){const n=e,t=xt(n.name,n.overrideParams||{}),o=r.computed(()=>{if(t.value)return re(t.value.callback)});return(i,a)=>{var c;const l=r.resolveComponent("widget-button");return r.unref(t)?(r.openBlock(),r.createBlock(l,{key:0,label:r.unref(t).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)}}}),Kr=r.defineComponent({__name:"WidgetResolverEntity",setup(e){const n=se.useRouter(),t=se.useRoute();function o(){const i=t.params.entity,a=t.params.primaryKey;it(i,a).then(l=>n.replace(lt(l,a))).catch(l=>{M("error")(l),n.back()})}return r.onMounted(o),(i,a)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode($e,{label:"Loading..."})]))}}),Jr=r.defineComponent({__name:"modal-list-download",props:{entity:{},cellConfig:{},prefilters:{},order:{},customFilters:{}},setup(e){const n=e,t=r.computed(()=>o.finished?"Download CSV":`Download ${o.count} records.`),{state:o,downloadFile:i,reject:a,start:l}=mn({entity:n.entity,config:n.cellConfig,prefilters:n.prefilters,order:n.order,customFilters:n.customFilters});return G.onBeforeModalClose(a),r.onMounted(l),r.watch(()=>o.finished,()=>{i(),G.popModal()}),(c,s)=>{const u=r.resolveComponent("widget-button"),d=r.resolveComponent("widget-modal-wrap");return r.openBlock(),r.createBlock(d,null,{footer:r.withCtx(()=>[r.createVNode(u,{onClick:s[0]||(s[0]=h=>{r.unref(i)(),r.unref(G.popModal)()})},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.value),1)]),_:1})]),default:r.withCtx(()=>[r.createElementVNode("div",null,[r.createVNode($e,{label:"Loading"})])]),_:1})}}}),Ze=e=>(r.pushScopeId("data-v-efd61247"),e=e(),r.popScopeId(),e),Qr={class:"version-item"},Zr={class:"text_md"},eo={class:"version-item-date text_md"},to=Ze(()=>r.createElementVNode("span",null,null,-1)),no=Ze(()=>r.createElementVNode("div",null,null,-1)),ro=Ze(()=>r.createElementVNode("span",null,null,-1)),oo={class:"text_sm"},io={class:"text_sm line-clamp_5"},ao={class:"text_sm line-clamp_5"},so=r.defineComponent({__name:"version-item",props:{selectedFields:{},date:{},customerName:{},version:{},changes:{},entity:{}},setup(e){const n=e;function t(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(()=>[...n.changes||[]].sort(t)),i=r.computed(()=>(o.value||[]).filter(a=>Array.isArray(n.selectedFields)&&n.selectedFields.length!==0?n.selectedFields.includes(a.name):!0));return(a,l)=>(r.openBlock(),r.createElementBlock("div",Qr,[r.createElementVNode("span",Zr,[r.createElementVNode("b",null,r.toDisplayString(a.version),1)]),r.createElementVNode("span",eo,[r.createElementVNode("b",null,r.toDisplayString(r.unref(tt)(a.date)),1)]),to,no,(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,c=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:c.name},[ro,r.createElementVNode("span",oo,r.toDisplayString(c.name),1),r.createElementVNode("span",io,r.toDisplayString(r.unref(qe)(a.entity,c.name,c.newValue)),1),r.createElementVNode("span",ao,r.toDisplayString(r.unref(qe)(a.entity,c.name,c.oldValue)),1)],64))),128))]))}}),lo=W(so,[["__scopeId","data-v-efd61247"]]),et=e=>(r.pushScopeId("data-v-321c2f32"),e=e(),r.popScopeId(),e),co={key:1,class:"wrap-history"},uo={class:"history-header grid gap_10"},fo=et(()=>r.createElementVNode("span",null,null,-1)),po=et(()=>r.createElementVNode("span",{class:"text_md"},"New Value",-1)),mo=et(()=>r.createElementVNode("span",{class:"text_md"},"Old Value",-1)),go={class:"padding_15 grid gap_10 container-history"},ho=r.defineComponent({__name:"modal-version-history",props:{entity:{},primaryKey:{}},setup(e){const n=e,t=r.computed(()=>`${n.entity} Version History`),o=r.ref(),i=r.computed(()=>!s.value||Array.isArray(s.value)&&s.value.length===0?o.value:(o.value||[]).filter(h=>{var y;return h.action==="Insert"?!0:(y=h.changes)==null?void 0:y.find(v=>s.value&&s.value.includes(v.name))})),a=re(u),l=_e(n.entity),c=r.computed(()=>l.value.fields.map(h=>({label:h.displayName,value:h.name}))),s=r.ref(null);async function u(){try{const h=await Yt({entity:n.entity,primaryKey:n.primaryKey});o.value=h.history}catch(h){M("error")(h)}}r.onMounted(()=>a.call());function d(h){return h.currentValues.map(y=>({name:y.fieldName,newValue:y.value})).filter(y=>y.newValue)}return(h,y)=>{const v=r.resolveComponent("widget-modal-wrap");return r.openBlock(),r.createBlock(v,{label:t.value,class:"wrap-modal-version-history"},{default:r.withCtx(()=>[r.unref(a).loading?(r.openBlock(),r.createBlock(r.unref($e),{key:0,label:"Loading history..."})):(r.openBlock(),r.createElementBlock("div",co,[r.createElementVNode("div",uo,[fo,r.createVNode(r.unref(L.FormField),{type:"select",options:c.value,modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=m=>s.value=m),multiple:""},null,8,["options","modelValue"]),po,mo]),r.createElementVNode("div",go,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,(m,g)=>(r.openBlock(),r.createBlock(lo,{"selected-fields":s.value,date:m.utcCreated,"customer-name":"",version:m.version,changes:m.action==="Insert"?d(m):m.changes,entity:h.entity,key:g},null,8,["selected-fields","date","version","changes","entity"]))),128))])]))]),_:1},8,["label"])}}}),yo=W(ho,[["__scopeId","data-v-321c2f32"]]);function Vt(e,n,t){const o=window.URL.createObjectURL(e);$t(o,t),setTimeout(()=>{window.URL.revokeObjectURL(o)},100)}function vo(e,n){return fetch(`/close-api/document-builder/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({CatalogId:n})}).then(t=>t.blob()).then(t=>{Vt(t,e+n+"-print-form.pdf",{blank:!0})})}function tt(e){return Re(e,"YYYY/MM/DD HH:mm:ss")}function Re(e,n="YYYY/MM/DD"){if(!e)return"";try{const t=new Date(e);return yn.format(t,n)}catch(t){return console.log(t),"Invalid date"}}function re(e){function n(i){o.status=i}function t(...i){if(o.loading)return Promise.reject("The process has already started.");o.loading=!0,o.wait=!0;const a=Promise.resolve().then(()=>n(1)).then(()=>e(...i)).then(l=>(n(3),l)).catch(l=>{throw n(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:t,promise:null});return o}var Pt=(e=>(e[e.init=0]="init",e[e.loading=1]="loading",e[e.error=2]="error",e[e.done=3]="done",e))(Pt||{});function nt(e){return typeof e=="string"?Te(e):wo(e)?Te(e.message,e.children||e.details||[]):Eo(e)?Te(e.title,[e.detail||""]):Te(T.DEFAULT_ERROR_MESSAGE)}function wo(e){return!!(typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,"message"))}function Eo(e){return!!(typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,"title"))}function Te(e,n=[]){return{message:e,children:n}}function M(e="error"){return function(n){const{message:t,children:o}=nt(n);Ve.add(e,t,{children:o})}}function ce(e,n={}){const t=F();return Mt(n)&&n.id&&(n.primaryKey=n.id,delete n.id),t.emit("entity:read",{entity:e,...n})}function Mt(e){return!!(e.id||e.primaryKey)}function rt(e,n){const t=F();return Mt(n)&&n.id&&(n.primaryKey=n.id,delete n.id),t.emit("entity:update",{...n,entity:e})}function ot(e){return e.reduce((n,t)=>(t.name&&(typeof t.name=="string"?n.push(t.name):n.push(...t.name)),n),[])}function jt(e,n=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(n,"0"),o[1].length>n&&(o[1]=o[1].substring(0,n)),o.join(".")}function bo(e,n){const t=new Map;return e.forEach(o=>{var a;const i=n(o);t.has(i)||t.set(i,[]),(a=t.get(i))==null||a.push(o)}),t}function _o(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function ko(e){return e.text().then(n=>{try{return JSON.parse(n)}catch{return T.DEFAULT_ERROR_MESSAGE}})}function H(e,n={}){return X.isFront&&(n.headers||(n.headers={}),n.headers["Context-Id"]=X.contextId),n.redirect="manual",fetch(e,n).then(t=>t.type==="opaqueredirect"?void window.location.reload():t).catch(()=>{throw new Error(T.DEFAULT_ERROR_MESSAGE)}).then(t=>ko(t).then(o=>{if(!t.ok)throw o;return o}))}function Co(e,n=1e3){let t=0;return(...o)=>{clearTimeout(t),t=window.setTimeout(()=>e(...o),n)}}function To(e,n){let t=!1;return(...o)=>{if(!t)return t=!0,setTimeout(()=>t=!1,n),e(...o)}}const So=Fe(De("pretty-value-field-by-entity"));function qe(e,n,t){try{const o=ee.get(e);if(!o)throw new Error("For entity metadata is not loaded");const i=o.fieldsByName[n];if(!i)throw new Error(`For entity ${e} can't found fieldMetadata for field ${n}`);return i.dataType==="DateTime"&&typeof t=="string"?new Date(t).toLocaleString():t}catch(o){return So('Error by parse pretty value for entity %o "%s", field "%s" with value "%s"',o,e,n,t),t}}const ie=Fe(De("use-socket"));function F(){return Io}function Ao(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Blob]"}const Io=function(){let e=1,n,t;const o=new Set;let i=0;const a=new Set;function l(){if(n)i&&(clearTimeout(i),i=0);else return;i=setTimeout(()=>{n.close()},Ln*2);const f=new Uint8Array(1);f[0]=Rn,n.send(f)}setInterval(()=>{Array.from(o).forEach(f=>{w(f)&&(ie("Handler for event %s requestId %d was expired",f.event,f.requestId),f.requestId?s({requestId:f.requestId,event:Nt,data:{message:ne.RequestTookToLong().message}}):o.delete(f))})},1e3),setInterval(()=>{(!n||n.readyState===3)&&u()},T.DELAY_SOCKET_RECONNECT);function c(){return{safeQueue:a,requestId:e,handlers:o,socketInstance:n}}function s(f){const p=[...o.values()];ie("Handlers array length is %d. Response event: %s. Request id: %d",o.size,f.event,f.requestId),p.forEach(E=>{const b=f.requestId;(E.requestId&&E.requestId===b||!E.requestId&&E.event===f.event)&&(ie("Find appropriated handler: %d, event: %s",e,E.event),E.callback(f.data,f),E.once&&(o.delete(E),ie("Handler was removed by *once* params was passed. %o",E)))})}function u(){if(typeof t!="string"){console.log("Please initialize use-socket");return}console.log(`%cInitializing sockets: %c${t}`,"color: purple","color: black"),n=new WebSocket(t),n.onclose=function(f){ie("Connection to server was stopped: %d %s",f.code,f.reason),Array.from(o).forEach(p=>{p.guaranteedAnswer&&p.serializeString&&a.add(p.serializeString)})},n.onopen=function(){console.log("Socket was %cconnected.","color: green"),[...a.values()].forEach(f=>{d(f),a.delete(f)})},n.onerror=function(f){console.warn(f)},n.onmessage=f=>{var p;try{if(Ao(f.data)){l();return}const E=JSON.parse(f.data);if(!Ut(E)){console.warn("Data is %cnot correct %csocket answer.","color: red","color: black"),console.log(E);return}E.event==="progress"&&o.forEach(b=>{b.event===E.data.for.event&&b.requestId===E.data.for.requestId&&(console.log("UPDATE TIME"),b.timeToLive=new Date().getTime()-b.created+T.TIME_TO_LIVE_SOCKET_REQUEST)}),(p=E==null?void 0:E.data)!=null&&p.refresh&&location.reload(),s(E)}catch(E){console.warn("Socket handle %conmessage%c error.","color: red","color: black"),console.log(E)}}}function d(f){n.send(f)}function h(f,p){g({event:f,callback:p})}function y(f,p){g({event:f,callback:p,once:!0})}function v(){return n&&(n==null?void 0:n.readyState)===1}function m(f,p,E){const b=++e,N=JSON.stringify({requestId:b,event:f,data:p,contextId:X.contextId,url:S.socketURLHandler?S.socketURLHandler():window.location.href});return v()?d(N):(a.add(N),ie("Socket is not connected. Message was send to save-queue")),new Promise((C,k)=>{g({event:f,requestId:b,once:!0,guaranteedAnswer:!0,serializeString:N,callback:(_,A)=>{if(ie("Promise was resolve with next data:",_),No(A))return void k(_);E&&E(_,A),C(_)},timeToLive:T.TIME_TO_LIVE_SOCKET_REQUEST})})}function g(f){const p={timeToLive:0,...f,created:new Date().getTime()};o.add(p)}function w(f){return f.timeToLive===0||typeof f.timeToLive!="number"?!1:new Date().getTime()-f.created>f.timeToLive}return{get socket(){return n},on:h,once:y,emit:m,initialization(f){t=f},getDevInfo:c}}(),No=e=>!!Ut(e)&&e.event===Nt,Ut=e=>typeof e=="object"&&e!==null&&"event"in e&&typeof e.event=="string"&&"requestId"in e&&typeof e.requestId=="number"&&"data"in e;function Wt(e,n){return F().emit("list-setting:read",{entity:e,mark:n})}function Ro(e,n){return F().emit("metadata-field:treat",{entity:e,fieldName:n})}function qt(e,n){return F().emit("entity:create",{...n,entity:e})}function Ht(e,n){return F().emit("entity:delete",{...n,entity:e})}function Lo(e,n){return F().emit("usage-context:read",{...n,entity:e})}function Gt(e={}){return F().emit("tool:read",e)}function Oo(){return F().emit("metadata-list:read",{})}function zt(e,n){return F().emit("batch:update",{...n,entity:e})}function it(e,n){return F().emit("entity:resolve",{primaryKey:n,entity:e})}function Yt(e){return F().emit("history:read",e)}function Fo(e,n){return F().emit("entity:count",{...n,entity:e})}function Xt(e){return`/${On}/${e}`}function ge(e){return{exec(n,t){switch(e.name){case"replace-boolean":return ge.replaceBoolean(n,e.values);case"replace-record-operation":return ge.replaceRecordOperation(n)}}}}ge.replaceBoolean=Bo;ge.replaceRecordOperation=Do;function Bo(e,n){return typeof e!="boolean"?"":e?n[1]:n[0]}function Do(e){switch(e){case"A":case null:return"+";case"M":return"~";case"N":return"";case"D":return"✖";default:return"?"}}function $o(e={}){return F().emit("tool:execute",e)}const xo=Fe(De("wrap-tool-response"));function Kt(e,n){return e.handleConfirmation===void 0&&(e.handleConfirmation=Mo),e.handleAffectedEntity===void 0&&(e.handleAffectedEntity=Uo),e.handleCloseForm===void 0&&(e.handleCloseForm=Wo),e.handleValidationResult===void 0&&(e.handleValidationResult=jo),{...n,label:n.title,async callback(t={}){var l;const o=typeof e.values=="function"?e.values(n,e):e.values;let i={};n.action.targetName==="Record"&&o.hasOwnProperty("Id")&&(i.Id=o.Id,delete o.Id);const a=()=>$o({name:n.name,values:{...o,...t},primaryKeys:i,usageContext:n.usageContext}).then(async c=>{var s,u;if(!Vo(c))throw new Error("It is impossible to process the result of calls.");if(Array.isArray(e.handlers))for await(const d of e.handlers)await d(n,c,e);if(!c.success)throw e.handleValidationResult&&c.validationEffect&&((u=(s=c.validationEffect)==null?void 0:s.results)!=null&&u.length)&&e.handleValidationResult(n,c.validationEffect,e),new Error(c.message);return c.message&&Ve.add("info",c.message),Array.isArray(c.affectedEntities)&&e.handleAffectedEntity&&c.affectedEntities.forEach(d=>{var h;return(h=e.handleAffectedEntity)==null?void 0:h.call(e,n,d,e)}),n.closeHostForm&&e.handleCloseForm&&e.handleCloseForm(n,e),c}).catch(c=>{if(M("error")(c),e.handleReject)return e.handleReject(n,c,e)});if((l=e.overrides)!=null&&l[n.name])return e.overrides[n.name](n,e);if(n.paramDialog){const c=await qo(n,e);if(c===null)return;t=Object.assign(t,c||{})}return n.requireSave&&e.form&&e.form.changed?e.form.save().then(a):!n.confirmation||!e.handleConfirmation||n.paramDialog?a():e.handleConfirmation(n,a)}}}function Vo(e){return!!(e&&typeof e=="object"&&"affectedEntities"in e&&"success"in e)}function Po(e){const n="Are you sure?";return e===!0||typeof e=="string"&&e.toLowerCase()==="true"||e==="1"?n:typeof e=="string"?e:n}async function Mo(e,n){const t=Po(e.confirmation);if(!G.getComponentFromStore(T.MODAL_CONFIRM))throw new Error("The 'confirm' modal window is not installed. It provided inside 'constants.MODAL_CONFIRM'");if(await G.promptModal(T.MODAL_CONFIRM,{message:t}))return n()}function jo(e,n){const t=T.MODAL_VALIDATION_EFFECT;if(!G.getComponentFromStore(t))throw new Error("The 'validation-effect' modal window is not installed. It provided inside 'constants.MODAL_VALIDATION_EFFECT'");return new Promise(()=>{G.pushModal(t,n)})}function Uo(e,n,t){var s;function o(u){return u!==null&&typeof u=="object"&&typeof u.read=="function"}function i(u,d){u&&(xo("Affected Entity %s. Find form with name %s.",d,u.name),u.name===d&&o(u)&&u.read(),u instanceof L.Form&&u.dependencies.forEach(h=>i(h,d)))}we.emit("affected-entity",n);const{router:a,form:l}=t,c=(s=n.primaryKey)==null?void 0:s.Id;if(a&&n&&n.name===e.redirectEntity){we.emit("display-entity",{id:c,name:n.name}),S.getEntityLink&&a.push(S.getEntityLink(n.name,c));return}i(l,n.name)}function Wo(e,n){const{router:t}=n;t&&e.closeHostForm&&t.back()}function qo(e,n){var t;if((t=e.paramDialog)!=null&&t.name)return G.promptModal(e.paramDialog.name,{paramDialog:e.paramDialog,tool:e,options:n})}let ae={};function oe(e,...n){if(typeof e!="string")return console.trace(`Label is not provided for translation: ${e}`),"undefined";let t=L.utils.getPropFromObject((this==null?void 0:this.vocabulary)||ae,e);if(typeof t=="string")return wt(t,n);const o=L.utils.getPropFromObject(ae==null?void 0:ae.root,e);return typeof o=="string"?wt(o,n):(typeof t===void 0&&console.warn(`Translation for label "${e}" is not founded.`),e)}function wt(e,n){return n.forEach((t,o)=>{e=e.replaceAll(new RegExp(`\\{${o}}`,"g"),t)}),e}oe.setGlobalVocabulary=function(e){ae=e};oe.getScope=function(e){const n=typeof e=="string"?e:"root";return typeof e!="string"&&console.warn(`SCOPE ${e} for translate is not string.`),oe.bind({vocabulary:L.utils.getPropFromObject(ae,n.toLowerCase())})};oe.setVocabulary=function(e){return typeof e=="string"&&(e=L.utils.getPropFromObject(ae,e)),oe.bind({vocabulary:e})};function Ho(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He={exports:{}},B={},Ge={exports:{}},ue={};function Jt(){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 Go(e,n,t){}function zo(e,n,t){}var Yo=/javascript\s*\:/img;function Xo(e,n){return Yo.test(n)?"":n}ue.whiteList=Jt();ue.getDefaultWhiteList=Jt;ue.onAttr=Go;ue.onIgnoreAttr=zo;ue.safeAttrValue=Xo;var Ko={indexOf:function(e,n){var t,o;if(Array.prototype.indexOf)return e.indexOf(n);for(t=0,o=e.length;t<o;t++)if(e[t]===n)return t;return-1},forEach:function(e,n,t){var o,i;if(Array.prototype.forEach)return e.forEach(n,t);for(o=0,i=e.length;o<i;o++)n.call(t,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,"")}},he=Ko;function Jo(e,n){e=he.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,o=!1,i=0,a=0,l="";function c(){if(!o){var d=he.trim(e.slice(i,a)),h=d.indexOf(":");if(h!==-1){var y=he.trim(d.slice(0,h)),v=he.trim(d.slice(h+1));if(y){var m=n(i,l.length,y,v,d);m&&(l+=m+"; ")}}}i=a+1}for(;a<t;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 he.trim(l)}var Qo=Jo,Se=ue,Zo=Qo;function Et(e){return e==null}function ei(e){var n={};for(var t in e)n[t]=e[t];return n}function Qt(e){e=ei(e||{}),e.whiteList=e.whiteList||Se.whiteList,e.onAttr=e.onAttr||Se.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Se.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Se.safeAttrValue,this.options=e}Qt.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var n=this,t=n.options,o=t.whiteList,i=t.onAttr,a=t.onIgnoreAttr,l=t.safeAttrValue,c=Zo(e,function(s,u,d,h,y){var v=o[d],m=!1;if(v===!0?m=v:typeof v=="function"?m=v(h):v instanceof RegExp&&(m=v.test(h)),m!==!0&&(m=!1),h=l(d,h),!!h){var g={position:u,sourcePosition:s,source:y,isWhite:m};if(m){var w=i(d,h,g);return Et(w)?d+":"+h:w}else{var w=a(d,h,g);if(!Et(w))return w}}});return c};var ti=Qt;(function(e,n){var t=ue,o=ti;function i(l,c){var s=new o(c);return s.process(l)}n=e.exports=i,n.FilterCSS=o;for(var a in t)n[a]=t[a];typeof window<"u"&&(window.filterCSS=e.exports)})(Ge,Ge.exports);var at=Ge.exports,st={indexOf:function(e,n){var t,o;if(Array.prototype.indexOf)return e.indexOf(n);for(t=0,o=e.length;t<o;t++)if(e[t]===n)return t;return-1},forEach:function(e,n,t){var o,i;if(Array.prototype.forEach)return e.forEach(n,t);for(o=0,i=e.length;o<i;o++)n.call(t,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var n=/\s|\n|\t/,t=n.exec(e);return t?t.index:-1}},ni=at.FilterCSS,ri=at.getDefaultWhiteList,Le=st;function Zt(){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 en=new ni;function oi(e,n,t){}function ii(e,n,t){}function ai(e,n,t){}function si(e,n,t){}function tn(e){return e.replace(ci,"&lt;").replace(ui,"&gt;")}function li(e,n,t,o){if(t=ln(t),n==="href"||n==="src"){if(t=Le.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(n==="background"){if(Ae.lastIndex=0,Ae.test(t))return""}else if(n==="style"){if(bt.lastIndex=0,bt.test(t)||(_t.lastIndex=0,_t.test(t)&&(Ae.lastIndex=0,Ae.test(t))))return"";o!==!1&&(o=o||en,t=o.process(t))}return t=cn(t),t}var ci=/</g,ui=/>/g,di=/"/g,fi=/&quot;/g,pi=/&#([a-zA-Z0-9]*);?/gim,mi=/&colon;?/gim,gi=/&newline;?/gim,Ae=/((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,bt=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,_t=/u\s*r\s*l\s*\(.*/gi;function nn(e){return e.replace(di,"&quot;")}function rn(e){return e.replace(fi,'"')}function on(e){return e.replace(pi,function(t,o){return o[0]==="x"||o[0]==="X"?String.fromCharCode(parseInt(o.substr(1),16)):String.fromCharCode(parseInt(o,10))})}function an(e){return e.replace(mi,":").replace(gi," ")}function sn(e){for(var n="",t=0,o=e.length;t<o;t++)n+=e.charCodeAt(t)<32?" ":e.charAt(t);return Le.trim(n)}function ln(e){return e=rn(e),e=on(e),e=an(e),e=sn(e),e}function cn(e){return e=nn(e),e=tn(e),e}function hi(){return""}function yi(e,n){typeof n!="function"&&(n=function(){});var t=!Array.isArray(e);function o(l){return t?!0:Le.indexOf(e,l)!==-1}var i=[],a=!1;return{onIgnoreTag:function(l,c,s){if(o(l))if(s.isClosing){var u="[/removed]",d=s.position+u.length;return i.push([a!==!1?a:s.position,d]),a=!1,u}else return a||(a=s.position),"[removed]";else return n(l,c,s)},remove:function(l){var c="",s=0;return Le.forEach(i,function(u){c+=l.slice(s,u[0]),s=u[1]}),c+=l.slice(s),c}}}function vi(e){for(var n="",t=0;t<e.length;){var o=e.indexOf("<!--",t);if(o===-1){n+=e.slice(t);break}n+=e.slice(t,o);var i=e.indexOf("-->",o);if(i===-1)break;t=i+3}return n}function wi(e){var n=e.split("");return n=n.filter(function(t){var o=t.charCodeAt(0);return o===127?!1:o<=31?o===10||o===13:!0}),n.join("")}B.whiteList=Zt();B.getDefaultWhiteList=Zt;B.onTag=oi;B.onIgnoreTag=ii;B.onTagAttr=ai;B.onIgnoreTagAttr=si;B.safeAttrValue=li;B.escapeHtml=tn;B.escapeQuote=nn;B.unescapeQuote=rn;B.escapeHtmlEntities=on;B.escapeDangerHtml5Entities=an;B.clearNonPrintableCharacter=sn;B.friendlyAttrValue=ln;B.escapeAttrValue=cn;B.onIgnoreTagStripAll=hi;B.StripTagBody=yi;B.stripCommentTag=vi;B.stripBlankChar=wi;B.attributeWrapSign='"';B.cssFilter=en;B.getDefaultCSSWhiteList=ri;var xe={},te=st;function Ei(e){var n=te.spaceIndex(e),t;return n===-1?t=e.slice(1,-1):t=e.slice(1,n+1),t=te.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function bi(e){return e.slice(0,2)==="</"}function _i(e,n,t){var o="",i=0,a=!1,l=!1,c=0,s=e.length,u="",d="";e:for(c=0;c<s;c++){var h=e.charAt(c);if(a===!1){if(h==="<"){a=c;continue}}else if(l===!1){if(h==="<"){o+=t(e.slice(i,c)),a=c,i=c;continue}if(h===">"||c===s-1){o+=t(e.slice(i,a)),d=e.slice(a,c+1),u=Ei(d),o+=n(a,o.length,u,d,bi(d)),i=c+1,a=!1;continue}if(h==='"'||h==="'")for(var y=1,v=e.charAt(c-y);v.trim()===""||v==="=";){if(v==="="){l=h;continue e}v=e.charAt(c-++y)}}else if(h===l){l=!1;continue}}return i<s&&(o+=t(e.substr(i))),o}var ki=/[^a-zA-Z0-9\\_:.-]/gim;function Ci(e,n){var t=0,o=0,i=[],a=!1,l=e.length;function c(y,v){if(y=te.trim(y),y=y.replace(ki,"").toLowerCase(),!(y.length<1)){var m=n(y,v||"");m&&i.push(m)}}for(var s=0;s<l;s++){var u=e.charAt(s),d,h;if(a===!1&&u==="="){a=e.slice(t,s),t=s+1,o=e.charAt(t)==='"'||e.charAt(t)==="'"?t:Si(e,s+1);continue}if(a!==!1&&s===o){if(h=e.indexOf(u,s+1),h===-1)break;d=te.trim(e.slice(o+1,h)),c(a,d),a=!1,s=h,t=s+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),a===!1)if(h=Ti(e,s),h===-1){d=te.trim(e.slice(t,s)),c(d),a=!1,t=s+1;continue}else{s=h-1;continue}else if(h=Ai(e,s-1),h===-1){d=te.trim(e.slice(t,s)),d=kt(d),c(a,d),a=!1,t=s+1;continue}else continue}return t<e.length&&(a===!1?c(e.slice(t)):c(a,kt(te.trim(e.slice(t))))),te.trim(i.join(" "))}function Ti(e,n){for(;n<e.length;n++){var t=e[n];if(t!==" ")return t==="="?n:-1}}function Si(e,n){for(;n<e.length;n++){var t=e[n];if(t!==" ")return t==="'"||t==='"'?n:-1}}function Ai(e,n){for(;n>0;n--){var t=e[n];if(t!==" ")return t==="="?n:-1}}function Ii(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function kt(e){return Ii(e)?e.substr(1,e.length-2):e}xe.parseTag=_i;xe.parseAttr=Ci;var Ni=at.FilterCSS,z=B,un=xe,Ri=un.parseTag,Li=un.parseAttr,Ne=st;function Ie(e){return e==null}function Oi(e){var n=Ne.spaceIndex(e);if(n===-1)return{html:"",closing:e[e.length-2]==="/"};e=Ne.trim(e.slice(n+1,-1));var t=e[e.length-1]==="/";return t&&(e=Ne.trim(e.slice(0,-1))),{html:e,closing:t}}function Fi(e){var n={};for(var t in e)n[t]=e[t];return n}function Bi(e){var n={};for(var t in e)Array.isArray(e[t])?n[t.toLowerCase()]=e[t].map(function(o){return o.toLowerCase()}):n[t.toLowerCase()]=e[t];return n}function dn(e){e=Fi(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=z.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Bi(e.whiteList||e.allowList):e.whiteList=z.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":z.attributeWrapSign,e.onTag=e.onTag||z.onTag,e.onTagAttr=e.onTagAttr||z.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||z.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||z.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||z.safeAttrValue,e.escapeHtml=e.escapeHtml||z.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Ni(e.css))}dn.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var n=this,t=n.options,o=t.whiteList,i=t.onTag,a=t.onIgnoreTag,l=t.onTagAttr,c=t.onIgnoreTagAttr,s=t.safeAttrValue,u=t.escapeHtml,d=n.attributeWrapSign,h=n.cssFilter;t.stripBlankChar&&(e=z.stripBlankChar(e)),t.allowCommentTag||(e=z.stripCommentTag(e));var y=!1;t.stripIgnoreTagBody&&(y=z.StripTagBody(t.stripIgnoreTagBody,a),a=y.onIgnoreTag);var v=Ri(e,function(m,g,w,f,p){var E={sourcePosition:m,position:g,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(o,w)},b=i(w,f,E);if(!Ie(b))return b;if(E.isWhite){if(E.isClosing)return"</"+w+">";var N=Oi(f),C=o[w],k=Li(N.html,function(_,A){var D=Ne.indexOf(C,_)!==-1,x=l(w,_,A,D);return Ie(x)?D?(A=s(w,_,A,h),A?_+"="+d+A+d:_):(x=c(w,_,A,D),Ie(x)?void 0:x):x});return f="<"+w,k&&(f+=" "+k),N.closing&&(f+=" /"),f+=">",f}else return b=a(w,f,E),Ie(b)?u(f):b},u);return y&&(v=y.remove(v)),v};var Di=dn;(function(e,n){var t=B,o=xe,i=Di;function a(c,s){var u=new i(s);return u.process(c)}n=e.exports=a,n.filterXSS=a,n.FilterXSS=i,function(){for(var c in t)n[c]=t[c];for(var s in o)n[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)})(He,He.exports);var $i=He.exports;const xi=Ho($i);function Vi(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>'),xi(e)}function Pi(e,n,t,o){let i=e+n/60+t/3600;return(o=="S"||o=="W")&&(i=i*-1),i}function Mi(e,n){const t={dir:e<0?n==="long"?"W":"S":n==="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`${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`}function lt(e,n){const t=["forms",e];return n&&t.push(n),"/"+t.join("/")}function ji(e,n){return"/"+[T.PATH_RESOLVER_ENTITY,e,n].join("/")}function Ui(){return`/${T.PATH_RESOLVER_ENTITY}/:entity/:primaryKey`}function ct(e){const n=ee.get(e);if(!n)throw new Error(`Metadata ${e} is still missing.`);return n.useCatalogInsteadId?"CatalogId":n.fieldNameForIdentification}function ze(e,n,t){const o=oe.getScope(e.toLowerCase());return n.map(i=>{typeof i.label=="string"&&(i.label=o(i.label)),i.type==="history"&&(i.onClick=l=>G.openModal(T.MODAL_HISTORY,{primaryKey:l[ct(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[le(i)];return[await it(qi(i,c),s),s]}catch{return[]}};a&&(a==="form"?i.link=c=>{const s=c[le(i)];return s?ji(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 G.openModal(T.MODAL_ENTITY,{entity:s,primaryKey:u});case"inline":return t.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 Wi(i,i.type,i.presentation),S.listConvertCellConfigHandler&&S.listConvertCellConfigHandler(e,i),i})}function Wi(e,n,t){switch(n){case"Decimal":{t==="Money"&&(e.type="money");break}}return e}const qi=(e,n)=>e.useObjectTypeName?n[e.name[2]]:e.entity?e.entity:null;function Hi(e){if(!Array.isArray(S.arrayListCellHandlers))throw new Error("Configuration has mistake: arrayListCellHandlers is not an array");S.arrayListCellHandlers.push(e)}function Gi(e,n){const t=le(e);return t?L.utils.getPropFromObject(n,t):null}function zi(e){if(!Array.isArray(S.arrayFieldParamsHandlers))throw new Error("Configuration has mistake: arrayListCellHandlers is not an array");S.arrayFieldParamsHandlers.push(e)}const Yi={addListCellHandler:Hi,getCellModelValue:Gi,addFieldParamsHandler:zi};var fn=(e=>(e.form="form",e.inline="inline",e.modal="modal",e))(fn||{});function Xi(){const e=r.ref(null);function n(t){e.value=t}return{activeRow:e,activateRow:n}}function Ki(e,n){return typeof e!="object"||e===null?!1:Object.values(e).join().toLowerCase().includes(n)}async function pn(e,n){e()&&(await n(),await pn(e,n))}function Ji(e,n,t={}){let o=!1;const i=r.ref(""),a=r.computed(()=>l.filter(k=>u(k,i.value))),l=r.reactive([]);let c=0;const s=r.ref(!1);let u=(t==null?void 0:t.filterSearchFn)||((k,_)=>Ki(k,_));function d(){return t.masterEntities?typeof t.masterEntities=="function"?t.masterEntities():t.masterEntities:[]}function h(){const k=b();return typeof k.limit!="number"&&(k.limit=100),k.offset=c,(t.request||ce)(e,k).then(A=>(c+=A.length,A))}function y(k,_){var D;return typeof k.Version=="number"?k.Version:(D=l.find(x=>x.Id===_))==null?void 0:D.Version}function v(k,_){const A=l.findIndex(D=>D.Id===k);if(A===-1)throw new Error(`Can't found item with Id ${k}`);l.splice(A,1,_)}function m(k){const _=l.findIndex(A=>A.Id===k);if(_===-1)throw new Error(`Can't found item with Id ${k}`);l.splice(_,1)}async function g(k,_){try{const A=b(),D=y(_,k);delete _.Version,await rt(e,{id:k,values:_,version:D,masterEntities:d()});const x=await ce(e,{fields:A.fields||"",id:k});v(k,x)}catch(A){M()(A)}}async function w(k,_={}){try{const A=b(),D=y(_,k);delete _.Version,await Ht(e,{id:k,version:D,masterEntities:d()}),m(k)}catch(A){M()(A)}}async function f(k){try{await qt(e,{values:k,masterEntities:d()}),await N()}catch(_){M()(_)}}let p;async function E(){s.value=!0;try{p!=null&&p.signal&&!p.signal.aborted&&p.abort();let k=p=new AbortController,_=0;const D=b().limit||0;if(i.value&&!D){console.warn("Using textSearch assumes the use of limit.");return}await pn(()=>(D>0?_<D:!0)&&!o&&!k.signal.aborted,async()=>{const x=await h();k.signal.aborted||(l.push(...x),_+=x.filter(Q=>u(Q,i.value)).length,(x.length<D||D===0)&&(o=!0))})}catch(k){M()(k)}s.value=!1}function b(){return typeof n=="function"?n():n}async function N(){try{c=0,o=!1,l.splice(0,l.length),await E()}catch(k){M()(k)}}function C(){if(p)return p.abort();s.value=!1}return{array:l,updateById:g,next:E,reload:N,wait:s,create:f,deleteById:w,textSearch:i,filteredArray:a,abort:C}}function Qi(){function e(){return{organizations:X.organizations,currentContextId:X.contextId,person:X.person,context:X.context,contextType:X.contextType,userId:X.userId}}const n=r.reactive(e());return X.onupdateContext(()=>{Object.assign(n,e())}),n}function Zi(e,n,t){return F().emit("communication:create",{entityName:e,entityCatalogId:n,targetCode:t})}function ea(e,n,t){return F().emit("communication:read",{entityName:e,entityCatalogId:n,targetCode:t})}function ta(e,n){return F().emit("communication-message:create",{communicationId:e,text:n})}function na(e){return F().emit("communication-message:read",{communicationId:e})}function ra(e){const n=L.Form.getParentForm(),t=r.reactive([]);return n&&n.subscribe(e),e.read=()=>na(e.id).then(o=>(t.splice(0,t.length,...o),o)),{array:t}}function oa(e,n){e.read=()=>{const o=t();return Promise.resolve().then(()=>{if(!e.name)throw ne.EntityWithoutName(e);return ce(e.name,o)}).then(ft).then(i=>(i.hasOwnProperty("Version")&&(e.version=i.Version),e.setValues(i),i)).catch(M())},e.save=()=>{const o=t();return Promise.resolve().then(()=>{if(!e.name)throw ne.EntityWithoutName(e);return rt(e.name,{id:o.id,values:e.changes,version:e.version})}).then(i=>{e.version=i.version}).catch(i=>{throw M()(i),i})};function t(){return typeof n=="function"?n():n}}function _e(e){if(!e)return r.inject(T.PROVIDE_NAME_METADATA);ee.initEntity(e);const n=r.computed(()=>ee.state[e]);return r.provide(T.PROVIDE_NAME_METADATA,n),r.provide(T.PROVIDE_ENTITY_NAME,e),n}function ut(e,n={}){if(!e)return r.inject(T.PROVIDE_NAME_USAGE_CONTEXT);const t=r.ref(null);return r.provide(T.PROVIDE_NAME_USAGE_CONTEXT,t),{state:t,update:async function(){t.value=await Lo(e,ia(n||{}))}}}function ia(e){return typeof e=="function"?e():e}function aa(e){if(!e)return r.inject(T.PROVIDE_NAME_ACTIONS);const n=r.ref(!1),t=r.reactive([]),o=r.computed(()=>t.map(l=>Kt(e,l))),i={actions:o,update:a};r.provide(T.PROVIDE_NAME_ACTIONS,i),e.router=se.useRouter();function a(){if(n.value)return;n.value=!0,t.splice(0,t.length);const l=e==null?void 0:e.form;return Gt({masterEntities:e==null?void 0:e.masterEntities,id:l==null?void 0:l.id,entity:l==null?void 0:l.name}).then(c=>t.splice(0,0,...c)).catch(M("error")).finally(()=>n.value=!1)}return{actions:o,update:a,loading:r.readonly(n)}}function sa(e){function n(t){t.key==="Enter"&&e()}r.onMounted(()=>{document.addEventListener("keypress",n)}),r.onUnmounted(()=>{document.removeEventListener("keypress",n)})}function la(e,n={}){const t=r.reactive([]),o=s=>{const u=r.unref(e);if(s===void 0){t.length===0?u.forEach(a):u.forEach(l);return}i(s)?l(s):a(s)},i=s=>t.includes(s),a=s=>{n.handleSelect&&!n.handleSelect(s)||i(s)||t.push(s)},l=s=>{const u=t.findIndex(d=>d===s);u!==-1&&t.splice(u,1)},c=r.computed(()=>{const s=r.unref(e);return t.length===s.length&&s.length!==0});return[t,o,c,a,l]}function ca(e){const n=r.ref(""),t=r.computed(()=>{const o=n.value.toLowerCase();return r.unref(e).filter(i=>n.value.length?Object.values(i).join().toLowerCase().includes(o):!0)});return{search:n,searchArray:t}}class Ue{static async getStartConfig(n,t){return F().emit("wizard:configuration",{process:n,entity:t})}static async startProcess(n,t){return F().emit("wizard:start",{process:n,entity:t})}static async runStep(n,t,o,i,a){return F().emit("wizard:step",{process:n,entity:t,stepName:o,token:i,values:a})}}function ua(e){return e.statusName===U.Completed}function da(e){return[U.FinalStepWithConfirmation,U.NextStepWithConfirmation].includes(e.statusName)}function fa(e){return e.statusName===U.ValidationError}function pa(e){return e.statusName===U.Undefined}function ma(e,n,t){let o=null,i=[];const a=r.ref(!1),l=r.ref(null),c=r.computed(()=>h(i,l.value)),s=r.ref(null),u=r.reactive([]),d=r.computed(()=>u.map(p=>h(i,p)));function h(p,E){return p.find(b=>b.name===E)||null}async function y(p){var E;if(pa(p)){await t.onDisplayDataSet(p);return}if(!(da(p)&&!await t.onDisplayDataSet(p))){if(fa(p))return void t.onValidation(p.validationResults);g(p),await r.nextTick();{const b=((E=h(i,l.value))==null?void 0:E.fields)||[];if([U.FinalStep,U.NextStep,U.FinalStepWithConfirmation,U.NextStepWithConfirmation].includes(p.statusName)&&(!b.length||ga(b,t.presets)))return f(t.presets||{})}ua(p)&&t.onCompleted(p)}}async function v(){try{await m(),await w()}catch(p){M("error")(p)}}function m(){return a.value="Loading process information.",Ue.getStartConfig(n,e).then(p=>(s.value={label:p.processTitle,info:p.processInfo,icon:p.processIcon},i=p.steps.map(E=>{const b=E.frontendEntity.rootObject,N=Object.fromEntries(E.frontendEntity.objectTypes.map(C=>[C.name,C.properties]));return{label:E.title,name:E.stepName,number:E.number,rootObjectName:b,objectTypes:N,fields:N[b],buttonCaption:E.buttonCaption}}))).finally(()=>{a.value=!1})}function g(p){return[U.FinalStepWithConfirmation,U.NextStepWithConfirmation,U.NextStep,U.Completed,U.FinalStep].includes(p.statusName)?(o=p.token,l.value=p.nextStepName):console.log("Saving is not completed:",p),p}function w(){return a.value="Starting process",Ue.startProcess(n,e).then(y).catch(M("error")).finally(()=>{a.value=null})}function f(p={}){const E=l.value;return!o||!E?Promise.reject("Not step or token."):(a.value="Waiting for result...",Ue.runStep(n,e,E,o,p).then(y).then(b=>(u[u.length-1]!==E&&u.push(E),b)).catch(M("error")).finally(()=>{a.value=!1}))}return{initialize:v,loading:a,currentStepConfig:c,currentStepName:l,arrayPassedSteps:d,arrayProcessStepName:u,processInfo:s,next:f}}function ga(e,n){for(let t=0;t<e.length;t++){const o=e[t];if(!L.utils.getPropFromObject(n,o.name))return!1}return!0}function ha(e,n){const t=typeof e=="string"?e:e.name,o=Object.assign({},typeof e=="string"?{}:e.arguments,n||{});return{name:t,arguments:o}}function ya(e){return e.limit||(e.limit=150),e}function mn(e,n={}){const{limit:t}=ya(n),{prefilters:o,order:i}=e;if(!e.entity)throw new Error("-");if(!e.config)throw new Error("-");const a=e.entity,l=e.config,c=e.customFilters||[],s=[l.map(g=>d(g.label)).join(",")],u=r.reactive({count:0,rejected:!1,finished:!1,offset:0});function d(g){g===null&&(g=""),g===void 0&&(g="-");let w=typeof g!="string"?String(g):g;return w=w.replace(/"/g,'""'),w.search(/("|,|\n)/g)>=0&&(w='"'+w+'"'),w}function h(){return ce(a,{fields:ot(l).join(" "),limit:t,offset:u.offset,order:i,filter:typeof o=="string"?o:$(o||{}),customFilters:c.map(g=>{var w;return ha(g,(w=n.customFiltersData)==null?void 0:w[typeof g=="string"?g:g.name])})}).then(g=>(u.offset+=t,g))}function y(){const g="data:text/csv;charset=utf-8,"+s.join(`\r
8
- `),w=encodeURI(g),f=document.createElement("a");f.setAttribute("href",w),f.setAttribute("download",`${a}.csv`),document.body.appendChild(f),f.click()}function v(){u.rejected=!0}async function m(){return h().then(g=>{const w=g.map(f=>l.map(p=>d(Be(p,f))).join(","));return s.push(...w),u.count=s.length,g.length}).then(g=>{if(g!==t&&(u.finished=!0),g===t&&!u.rejected)return m()})}return{downloadFile:y,reject:v,state:u,start:m}}const Ve=new class{constructor(){this.store=r.reactive([])}add(n,t,o={}){const i=va(o),a=new Ye(n,t,i.timeout,i.children,i.click);return this.store.push(a),i.timeout&&setTimeout(this.remove.bind(this,a.id),i.timeout*1e3),a}remove(n){const t=this.store.findIndex(o=>o.id===n);if(t===-1)return!1;this.store.splice(t,1)}};function va(e){function n(o){return!!o&&typeof o=="object"}const t={timeout:10,click:()=>null,children:[]};return n(e)?{timeout:e.timeout||t.timeout,click:e.click||t.click,children:e.children||t.children}:t}const Oe=class Oe{constructor(n,t,o,i,a){this.type=n,this.message=t,this.timeout=o,this.children=i,this.click=a,this.id=Oe.cardId++}};Oe.cardId=1;let Ye=Oe;/*!
7
+ `&&c()}return he.trim(l)}var Qo=Jo,Se=ue,Zo=Qo;function Et(e){return e==null}function ei(e){var n={};for(var t in e)n[t]=e[t];return n}function Qt(e){e=ei(e||{}),e.whiteList=e.whiteList||Se.whiteList,e.onAttr=e.onAttr||Se.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Se.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Se.safeAttrValue,this.options=e}Qt.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var n=this,t=n.options,o=t.whiteList,i=t.onAttr,a=t.onIgnoreAttr,l=t.safeAttrValue,c=Zo(e,function(s,u,d,h,y){var v=o[d],m=!1;if(v===!0?m=v:typeof v=="function"?m=v(h):v instanceof RegExp&&(m=v.test(h)),m!==!0&&(m=!1),h=l(d,h),!!h){var g={position:u,sourcePosition:s,source:y,isWhite:m};if(m){var w=i(d,h,g);return Et(w)?d+":"+h:w}else{var w=a(d,h,g);if(!Et(w))return w}}});return c};var ti=Qt;(function(e,n){var t=ue,o=ti;function i(l,c){var s=new o(c);return s.process(l)}n=e.exports=i,n.FilterCSS=o;for(var a in t)n[a]=t[a];typeof window<"u"&&(window.filterCSS=e.exports)})(Ge,Ge.exports);var at=Ge.exports,st={indexOf:function(e,n){var t,o;if(Array.prototype.indexOf)return e.indexOf(n);for(t=0,o=e.length;t<o;t++)if(e[t]===n)return t;return-1},forEach:function(e,n,t){var o,i;if(Array.prototype.forEach)return e.forEach(n,t);for(o=0,i=e.length;o<i;o++)n.call(t,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var n=/\s|\n|\t/,t=n.exec(e);return t?t.index:-1}},ni=at.FilterCSS,ri=at.getDefaultWhiteList,Le=st;function Zt(){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 en=new ni;function oi(e,n,t){}function ii(e,n,t){}function ai(e,n,t){}function si(e,n,t){}function tn(e){return e.replace(ci,"&lt;").replace(ui,"&gt;")}function li(e,n,t,o){if(t=ln(t),n==="href"||n==="src"){if(t=Le.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(n==="background"){if(Ae.lastIndex=0,Ae.test(t))return""}else if(n==="style"){if(bt.lastIndex=0,bt.test(t)||(_t.lastIndex=0,_t.test(t)&&(Ae.lastIndex=0,Ae.test(t))))return"";o!==!1&&(o=o||en,t=o.process(t))}return t=cn(t),t}var ci=/</g,ui=/>/g,di=/"/g,fi=/&quot;/g,pi=/&#([a-zA-Z0-9]*);?/gim,mi=/&colon;?/gim,gi=/&newline;?/gim,Ae=/((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,bt=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,_t=/u\s*r\s*l\s*\(.*/gi;function nn(e){return e.replace(di,"&quot;")}function rn(e){return e.replace(fi,'"')}function on(e){return e.replace(pi,function(t,o){return o[0]==="x"||o[0]==="X"?String.fromCharCode(parseInt(o.substr(1),16)):String.fromCharCode(parseInt(o,10))})}function an(e){return e.replace(mi,":").replace(gi," ")}function sn(e){for(var n="",t=0,o=e.length;t<o;t++)n+=e.charCodeAt(t)<32?" ":e.charAt(t);return Le.trim(n)}function ln(e){return e=rn(e),e=on(e),e=an(e),e=sn(e),e}function cn(e){return e=nn(e),e=tn(e),e}function hi(){return""}function yi(e,n){typeof n!="function"&&(n=function(){});var t=!Array.isArray(e);function o(l){return t?!0:Le.indexOf(e,l)!==-1}var i=[],a=!1;return{onIgnoreTag:function(l,c,s){if(o(l))if(s.isClosing){var u="[/removed]",d=s.position+u.length;return i.push([a!==!1?a:s.position,d]),a=!1,u}else return a||(a=s.position),"[removed]";else return n(l,c,s)},remove:function(l){var c="",s=0;return Le.forEach(i,function(u){c+=l.slice(s,u[0]),s=u[1]}),c+=l.slice(s),c}}}function vi(e){for(var n="",t=0;t<e.length;){var o=e.indexOf("<!--",t);if(o===-1){n+=e.slice(t);break}n+=e.slice(t,o);var i=e.indexOf("-->",o);if(i===-1)break;t=i+3}return n}function wi(e){var n=e.split("");return n=n.filter(function(t){var o=t.charCodeAt(0);return o===127?!1:o<=31?o===10||o===13:!0}),n.join("")}B.whiteList=Zt();B.getDefaultWhiteList=Zt;B.onTag=oi;B.onIgnoreTag=ii;B.onTagAttr=ai;B.onIgnoreTagAttr=si;B.safeAttrValue=li;B.escapeHtml=tn;B.escapeQuote=nn;B.unescapeQuote=rn;B.escapeHtmlEntities=on;B.escapeDangerHtml5Entities=an;B.clearNonPrintableCharacter=sn;B.friendlyAttrValue=ln;B.escapeAttrValue=cn;B.onIgnoreTagStripAll=hi;B.StripTagBody=yi;B.stripCommentTag=vi;B.stripBlankChar=wi;B.attributeWrapSign='"';B.cssFilter=en;B.getDefaultCSSWhiteList=ri;var xe={},te=st;function Ei(e){var n=te.spaceIndex(e),t;return n===-1?t=e.slice(1,-1):t=e.slice(1,n+1),t=te.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function bi(e){return e.slice(0,2)==="</"}function _i(e,n,t){var o="",i=0,a=!1,l=!1,c=0,s=e.length,u="",d="";e:for(c=0;c<s;c++){var h=e.charAt(c);if(a===!1){if(h==="<"){a=c;continue}}else if(l===!1){if(h==="<"){o+=t(e.slice(i,c)),a=c,i=c;continue}if(h===">"||c===s-1){o+=t(e.slice(i,a)),d=e.slice(a,c+1),u=Ei(d),o+=n(a,o.length,u,d,bi(d)),i=c+1,a=!1;continue}if(h==='"'||h==="'")for(var y=1,v=e.charAt(c-y);v.trim()===""||v==="=";){if(v==="="){l=h;continue e}v=e.charAt(c-++y)}}else if(h===l){l=!1;continue}}return i<s&&(o+=t(e.substr(i))),o}var ki=/[^a-zA-Z0-9\\_:.-]/gim;function Ci(e,n){var t=0,o=0,i=[],a=!1,l=e.length;function c(y,v){if(y=te.trim(y),y=y.replace(ki,"").toLowerCase(),!(y.length<1)){var m=n(y,v||"");m&&i.push(m)}}for(var s=0;s<l;s++){var u=e.charAt(s),d,h;if(a===!1&&u==="="){a=e.slice(t,s),t=s+1,o=e.charAt(t)==='"'||e.charAt(t)==="'"?t:Si(e,s+1);continue}if(a!==!1&&s===o){if(h=e.indexOf(u,s+1),h===-1)break;d=te.trim(e.slice(o+1,h)),c(a,d),a=!1,s=h,t=s+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),a===!1)if(h=Ti(e,s),h===-1){d=te.trim(e.slice(t,s)),c(d),a=!1,t=s+1;continue}else{s=h-1;continue}else if(h=Ai(e,s-1),h===-1){d=te.trim(e.slice(t,s)),d=kt(d),c(a,d),a=!1,t=s+1;continue}else continue}return t<e.length&&(a===!1?c(e.slice(t)):c(a,kt(te.trim(e.slice(t))))),te.trim(i.join(" "))}function Ti(e,n){for(;n<e.length;n++){var t=e[n];if(t!==" ")return t==="="?n:-1}}function Si(e,n){for(;n<e.length;n++){var t=e[n];if(t!==" ")return t==="'"||t==='"'?n:-1}}function Ai(e,n){for(;n>0;n--){var t=e[n];if(t!==" ")return t==="="?n:-1}}function Ii(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function kt(e){return Ii(e)?e.substr(1,e.length-2):e}xe.parseTag=_i;xe.parseAttr=Ci;var Ni=at.FilterCSS,z=B,un=xe,Ri=un.parseTag,Li=un.parseAttr,Ne=st;function Ie(e){return e==null}function Oi(e){var n=Ne.spaceIndex(e);if(n===-1)return{html:"",closing:e[e.length-2]==="/"};e=Ne.trim(e.slice(n+1,-1));var t=e[e.length-1]==="/";return t&&(e=Ne.trim(e.slice(0,-1))),{html:e,closing:t}}function Fi(e){var n={};for(var t in e)n[t]=e[t];return n}function Bi(e){var n={};for(var t in e)Array.isArray(e[t])?n[t.toLowerCase()]=e[t].map(function(o){return o.toLowerCase()}):n[t.toLowerCase()]=e[t];return n}function dn(e){e=Fi(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=z.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Bi(e.whiteList||e.allowList):e.whiteList=z.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":z.attributeWrapSign,e.onTag=e.onTag||z.onTag,e.onTagAttr=e.onTagAttr||z.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||z.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||z.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||z.safeAttrValue,e.escapeHtml=e.escapeHtml||z.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Ni(e.css))}dn.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var n=this,t=n.options,o=t.whiteList,i=t.onTag,a=t.onIgnoreTag,l=t.onTagAttr,c=t.onIgnoreTagAttr,s=t.safeAttrValue,u=t.escapeHtml,d=n.attributeWrapSign,h=n.cssFilter;t.stripBlankChar&&(e=z.stripBlankChar(e)),t.allowCommentTag||(e=z.stripCommentTag(e));var y=!1;t.stripIgnoreTagBody&&(y=z.StripTagBody(t.stripIgnoreTagBody,a),a=y.onIgnoreTag);var v=Ri(e,function(m,g,w,f,p){var E={sourcePosition:m,position:g,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(o,w)},b=i(w,f,E);if(!Ie(b))return b;if(E.isWhite){if(E.isClosing)return"</"+w+">";var N=Oi(f),C=o[w],k=Li(N.html,function(_,A){var D=Ne.indexOf(C,_)!==-1,x=l(w,_,A,D);return Ie(x)?D?(A=s(w,_,A,h),A?_+"="+d+A+d:_):(x=c(w,_,A,D),Ie(x)?void 0:x):x});return f="<"+w,k&&(f+=" "+k),N.closing&&(f+=" /"),f+=">",f}else return b=a(w,f,E),Ie(b)?u(f):b},u);return y&&(v=y.remove(v)),v};var Di=dn;(function(e,n){var t=B,o=xe,i=Di;function a(c,s){var u=new i(s);return u.process(c)}n=e.exports=a,n.filterXSS=a,n.FilterXSS=i,function(){for(var c in t)n[c]=t[c];for(var s in o)n[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)})(He,He.exports);var $i=He.exports;const xi=Ho($i);function Vi(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>'),xi(e)}function Pi(e,n,t,o){let i=e+n/60+t/3600;return(o=="S"||o=="W")&&(i=i*-1),i}function Mi(e,n){const t={dir:e<0?n==="long"?"W":"S":n==="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`${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`}function lt(e,n){const t=["forms",e];return n&&t.push(n),"/"+t.join("/")}function ji(e,n){return"/"+[T.PATH_RESOLVER_ENTITY,e,n].join("/")}function Ui(){return`/${T.PATH_RESOLVER_ENTITY}/:entity/:primaryKey`}function ct(e){const n=ee.get(e);if(!n)throw new Error(`Metadata ${e} is still missing.`);return n.useCatalogInsteadId?"CatalogId":n.fieldNameForIdentification}function ze(e,n,t){const o=oe.getScope(e.toLowerCase());return n.map(i=>{typeof i.label=="string"&&(i.label=o(i.label)),i.type==="history"&&(i.onClick=l=>G.openModal(T.MODAL_HISTORY,{primaryKey:l[ct(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[le(i)];return[await it(qi(i,c),s),s]}catch{return[]}};a&&(a==="form"?i.link=c=>{const s=c[le(i)];return s?ji(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 G.openModal(T.MODAL_ENTITY,{entity:s,primaryKey:u});case"inline":return t.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 Wi(i,i.type,i.presentation),S.listConvertCellConfigHandler&&S.listConvertCellConfigHandler(e,i),i})}function Wi(e,n,t){switch(n){case"Decimal":{t==="Money"&&(e.type="money");break}}return e}const qi=(e,n)=>e.useObjectTypeName?n[e.name[2]]:e.entity?e.entity:null;function Hi(e){if(!Array.isArray(S.arrayListCellHandlers))throw new Error("Configuration has mistake: arrayListCellHandlers is not an array");S.arrayListCellHandlers.push(e)}function Gi(e,n){const t=le(e);return t?L.utils.getPropFromObject(n,t):null}function zi(e){if(!Array.isArray(S.arrayFieldParamsHandlers))throw new Error("Configuration has mistake: arrayListCellHandlers is not an array");S.arrayFieldParamsHandlers.push(e)}function Yi(e){if(!Array.isArray(S.arrayListRowHandlers))throw new Error("Configuration has mistake: arrayListRowHandlers is not an array");S.arrayListRowHandlers.push(e)}const Xi={addListCellHandler:Hi,getCellModelValue:Gi,addFieldParamsHandler:zi,addListRowHandler:Yi};var fn=(e=>(e.form="form",e.inline="inline",e.modal="modal",e))(fn||{});function Ki(){const e=r.ref(null);function n(t){e.value=t}return{activeRow:e,activateRow:n}}function Ji(e,n){return typeof e!="object"||e===null?!1:Object.values(e).join().toLowerCase().includes(n)}async function pn(e,n){e()&&(await n(),await pn(e,n))}function Qi(e,n,t={}){let o=!1;const i=r.ref(""),a=r.computed(()=>l.filter(k=>u(k,i.value))),l=r.reactive([]);let c=0;const s=r.ref(!1);let u=(t==null?void 0:t.filterSearchFn)||((k,_)=>Ji(k,_));function d(){return t.masterEntities?typeof t.masterEntities=="function"?t.masterEntities():t.masterEntities:[]}function h(){const k=b();return typeof k.limit!="number"&&(k.limit=100),k.offset=c,(t.request||ce)(e,k).then(A=>(c+=A.length,A))}function y(k,_){var D;return typeof k.Version=="number"?k.Version:(D=l.find(x=>x.Id===_))==null?void 0:D.Version}function v(k,_){const A=l.findIndex(D=>D.Id===k);if(A===-1)throw new Error(`Can't found item with Id ${k}`);l.splice(A,1,_)}function m(k){const _=l.findIndex(A=>A.Id===k);if(_===-1)throw new Error(`Can't found item with Id ${k}`);l.splice(_,1)}async function g(k,_){try{const A=b(),D=y(_,k);delete _.Version,await rt(e,{id:k,values:_,version:D,masterEntities:d()});const x=await ce(e,{fields:A.fields||"",id:k});v(k,x)}catch(A){M()(A)}}async function w(k,_={}){try{const A=b(),D=y(_,k);delete _.Version,await Ht(e,{id:k,version:D,masterEntities:d()}),m(k)}catch(A){M()(A)}}async function f(k){try{await qt(e,{values:k,masterEntities:d()}),await N()}catch(_){M()(_)}}let p;async function E(){s.value=!0;try{p!=null&&p.signal&&!p.signal.aborted&&p.abort();let k=p=new AbortController,_=0;const D=b().limit||0;if(i.value&&!D){console.warn("Using textSearch assumes the use of limit.");return}await pn(()=>(D>0?_<D:!0)&&!o&&!k.signal.aborted,async()=>{const x=await h();k.signal.aborted||(l.push(...x),_+=x.filter(Q=>u(Q,i.value)).length,(x.length<D||D===0)&&(o=!0))})}catch(k){M()(k)}s.value=!1}function b(){return typeof n=="function"?n():n}async function N(){try{c=0,o=!1,l.splice(0,l.length),await E()}catch(k){M()(k)}}function C(){if(p)return p.abort();s.value=!1}return{array:l,updateById:g,next:E,reload:N,wait:s,create:f,deleteById:w,textSearch:i,filteredArray:a,abort:C}}function Zi(){function e(){return{organizations:X.organizations,currentContextId:X.contextId,person:X.person,context:X.context,contextType:X.contextType,userId:X.userId}}const n=r.reactive(e());return X.onupdateContext(()=>{Object.assign(n,e())}),n}function ea(e,n,t){return F().emit("communication:create",{entityName:e,entityCatalogId:n,targetCode:t})}function ta(e,n,t){return F().emit("communication:read",{entityName:e,entityCatalogId:n,targetCode:t})}function na(e,n){return F().emit("communication-message:create",{communicationId:e,text:n})}function ra(e){return F().emit("communication-message:read",{communicationId:e})}function oa(e){const n=L.Form.getParentForm(),t=r.reactive([]);return n&&n.subscribe(e),e.read=()=>ra(e.id).then(o=>(t.splice(0,t.length,...o),o)),{array:t}}function ia(e,n){e.read=()=>{const o=t();return Promise.resolve().then(()=>{if(!e.name)throw ne.EntityWithoutName(e);return ce(e.name,o)}).then(ft).then(i=>(i.hasOwnProperty("Version")&&(e.version=i.Version),e.setValues(i),i)).catch(M())},e.save=()=>{const o=t();return Promise.resolve().then(()=>{if(!e.name)throw ne.EntityWithoutName(e);return rt(e.name,{id:o.id,values:e.changes,version:e.version})}).then(i=>{e.version=i.version}).catch(i=>{throw M()(i),i})};function t(){return typeof n=="function"?n():n}}function _e(e){if(!e)return r.inject(T.PROVIDE_NAME_METADATA);ee.initEntity(e);const n=r.computed(()=>ee.state[e]);return r.provide(T.PROVIDE_NAME_METADATA,n),r.provide(T.PROVIDE_ENTITY_NAME,e),n}function ut(e,n={}){if(!e)return r.inject(T.PROVIDE_NAME_USAGE_CONTEXT);const t=r.ref(null);return r.provide(T.PROVIDE_NAME_USAGE_CONTEXT,t),{state:t,update:async function(){t.value=await Lo(e,aa(n||{}))}}}function aa(e){return typeof e=="function"?e():e}function sa(e){if(!e)return r.inject(T.PROVIDE_NAME_ACTIONS);const n=r.ref(!1),t=r.reactive([]),o=r.computed(()=>t.map(l=>Kt(e,l))),i={actions:o,update:a};r.provide(T.PROVIDE_NAME_ACTIONS,i),e.router=se.useRouter();function a(){if(n.value)return;n.value=!0,t.splice(0,t.length);const l=e==null?void 0:e.form;return Gt({masterEntities:e==null?void 0:e.masterEntities,id:l==null?void 0:l.id,entity:l==null?void 0:l.name}).then(c=>t.splice(0,0,...c)).catch(M("error")).finally(()=>n.value=!1)}return{actions:o,update:a,loading:r.readonly(n)}}function la(e){function n(t){t.key==="Enter"&&e()}r.onMounted(()=>{document.addEventListener("keypress",n)}),r.onUnmounted(()=>{document.removeEventListener("keypress",n)})}function ca(e,n={}){const t=r.reactive([]),o=s=>{const u=r.unref(e);if(s===void 0){t.length===0?u.forEach(a):u.forEach(l);return}i(s)?l(s):a(s)},i=s=>t.includes(s),a=s=>{n.handleSelect&&!n.handleSelect(s)||i(s)||t.push(s)},l=s=>{const u=t.findIndex(d=>d===s);u!==-1&&t.splice(u,1)},c=r.computed(()=>{const s=r.unref(e);return t.length===s.length&&s.length!==0});return[t,o,c,a,l]}function ua(e){const n=r.ref(""),t=r.computed(()=>{const o=n.value.toLowerCase();return r.unref(e).filter(i=>n.value.length?Object.values(i).join().toLowerCase().includes(o):!0)});return{search:n,searchArray:t}}class Ue{static async getStartConfig(n,t){return F().emit("wizard:configuration",{process:n,entity:t})}static async startProcess(n,t){return F().emit("wizard:start",{process:n,entity:t})}static async runStep(n,t,o,i,a){return F().emit("wizard:step",{process:n,entity:t,stepName:o,token:i,values:a})}}function da(e){return e.statusName===U.Completed}function fa(e){return[U.FinalStepWithConfirmation,U.NextStepWithConfirmation].includes(e.statusName)}function pa(e){return e.statusName===U.ValidationError}function ma(e){return e.statusName===U.Undefined}function ga(e,n,t){let o=null,i=[];const a=r.ref(!1),l=r.ref(null),c=r.computed(()=>h(i,l.value)),s=r.ref(null),u=r.reactive([]),d=r.computed(()=>u.map(p=>h(i,p)));function h(p,E){return p.find(b=>b.name===E)||null}async function y(p){var E;if(ma(p)){await t.onDisplayDataSet(p);return}if(!(fa(p)&&!await t.onDisplayDataSet(p))){if(pa(p))return void t.onValidation(p.validationResults);g(p),await r.nextTick();{const b=((E=h(i,l.value))==null?void 0:E.fields)||[];if([U.FinalStep,U.NextStep,U.FinalStepWithConfirmation,U.NextStepWithConfirmation].includes(p.statusName)&&(!b.length||ha(b,t.presets)))return f(t.presets||{})}da(p)&&t.onCompleted(p)}}async function v(){try{await m(),await w()}catch(p){M("error")(p)}}function m(){return a.value="Loading process information.",Ue.getStartConfig(n,e).then(p=>(s.value={label:p.processTitle,info:p.processInfo,icon:p.processIcon},i=p.steps.map(E=>{const b=E.frontendEntity.rootObject,N=Object.fromEntries(E.frontendEntity.objectTypes.map(C=>[C.name,C.properties]));return{label:E.title,name:E.stepName,number:E.number,rootObjectName:b,objectTypes:N,fields:N[b],buttonCaption:E.buttonCaption}}))).finally(()=>{a.value=!1})}function g(p){return[U.FinalStepWithConfirmation,U.NextStepWithConfirmation,U.NextStep,U.Completed,U.FinalStep].includes(p.statusName)?(o=p.token,l.value=p.nextStepName):console.log("Saving is not completed:",p),p}function w(){return a.value="Starting process",Ue.startProcess(n,e).then(y).catch(M("error")).finally(()=>{a.value=null})}function f(p={}){const E=l.value;return!o||!E?Promise.reject("Not step or token."):(a.value="Waiting for result...",Ue.runStep(n,e,E,o,p).then(y).then(b=>(u[u.length-1]!==E&&u.push(E),b)).catch(M("error")).finally(()=>{a.value=!1}))}return{initialize:v,loading:a,currentStepConfig:c,currentStepName:l,arrayPassedSteps:d,arrayProcessStepName:u,processInfo:s,next:f}}function ha(e,n){for(let t=0;t<e.length;t++){const o=e[t];if(!L.utils.getPropFromObject(n,o.name))return!1}return!0}function ya(e,n){const t=typeof e=="string"?e:e.name,o=Object.assign({},typeof e=="string"?{}:e.arguments,n||{});return{name:t,arguments:o}}function va(e){return e.limit||(e.limit=150),e}function mn(e,n={}){const{limit:t}=va(n),{prefilters:o,order:i}=e;if(!e.entity)throw new Error("-");if(!e.config)throw new Error("-");const a=e.entity,l=e.config,c=e.customFilters||[],s=[l.map(g=>d(g.label)).join(",")],u=r.reactive({count:0,rejected:!1,finished:!1,offset:0});function d(g){g===null&&(g=""),g===void 0&&(g="-");let w=typeof g!="string"?String(g):g;return w=w.replace(/"/g,'""'),w.search(/("|,|\n)/g)>=0&&(w='"'+w+'"'),w}function h(){return ce(a,{fields:ot(l).join(" "),limit:t,offset:u.offset,order:i,filter:typeof o=="string"?o:$(o||{}),customFilters:c.map(g=>{var w;return ya(g,(w=n.customFiltersData)==null?void 0:w[typeof g=="string"?g:g.name])})}).then(g=>(u.offset+=t,g))}function y(){const g="data:text/csv;charset=utf-8,"+s.join(`\r
8
+ `),w=encodeURI(g),f=document.createElement("a");f.setAttribute("href",w),f.setAttribute("download",`${a}.csv`),document.body.appendChild(f),f.click()}function v(){u.rejected=!0}async function m(){return h().then(g=>{const w=g.map(f=>l.map(p=>d(Be(p,f))).join(","));return s.push(...w),u.count=s.length,g.length}).then(g=>{if(g!==t&&(u.finished=!0),g===t&&!u.rejected)return m()})}return{downloadFile:y,reject:v,state:u,start:m}}const Ve=new class{constructor(){this.store=r.reactive([])}add(n,t,o={}){const i=wa(o),a=new Ye(n,t,i.timeout,i.children,i.click);return this.store.push(a),i.timeout&&setTimeout(this.remove.bind(this,a.id),i.timeout*1e3),a}remove(n){const t=this.store.findIndex(o=>o.id===n);if(t===-1)return!1;this.store.splice(t,1)}};function wa(e){function n(o){return!!o&&typeof o=="object"}const t={timeout:10,click:()=>null,children:[]};return n(e)?{timeout:e.timeout||t.timeout,click:e.click||t.click,children:e.children||t.children}:t}const Oe=class Oe{constructor(n,t,o,i,a){this.type=n,this.message=t,this.timeout=o,this.children=i,this.click=a,this.id=Oe.cardId++}};Oe.cardId=1;let Ye=Oe;/*!
9
9
  * jenesius-event-emitter v1.0.2
10
10
  * (c) 2022 Jenesius
11
11
  * @license MIT
12
- */const Ct=function(e,n){return e in this.events||(this.events[e]=[]),this.events[e].push(n),this.off.bind(this,e,n)},Tt=function(e,n){e in this.events&&this.events[e].forEach(t=>t(n))},St=function(e,n){const t=this.events[e];if(!t)return;const o=t.indexOf(n);o!==-1&&t.splice(o,1)},At=function(){this.events={}};class Z{constructor(){this.events={}}on(n,t){return Ct.call(this,n,t)}emit(n,t){return Tt.call(this,n,t)}off(n,t){return St.call(this,n,t)}cleanEvents(){At.call(this)}static on(n,t){return Ct.call(Z,n,t)}static emit(n,t){return Tt.call(Z,n,t)}static off(n,t){return St.call(Z,n,t)}static cleanEvents(){At.call(Z)}}Z.events={};class wa extends Z{constructor(n){super(),this.name="Communication",this.read=()=>{},this.id=n}sendMessage(n){return ta(this.id,n)}static checkAndGenerate(n,t,o){return ea(n,t,o).then(i=>i.length===0?Zi(n,t,o):i[0])}}function Ea(){return F().emit("client:read",{})}class dt extends Error{static ConstContextCannotBeChanged(){return new dt("The current context is set to constant. In order to change it, you need to put Manager into a changeable state.")}}var Ee,me;const J=class J extends Z{constructor(){super(...arguments);Me(this,Ee);Me(this,me);this.isConstContext=!1,this.type="front",this.organizations=[],Ce(this,me,!1)}set language(t){localStorage.setItem(T.LOCALSTORAGE_LANGUAGE_KEY,t)}get language(){return localStorage.getItem(T.LOCALSTORAGE_LANGUAGE_KEY)||J.DEFAULT_LANGUAGE}get contextId(){return Pe(this,Ee)}set contextId(t){if(this.isConstContext)throw dt.ConstContextCannotBeChanged();Ce(this,Ee,t)}get contextType(){var t;if(this.contextId)return((t=this.person)==null?void 0:t.id)===this.contextId?"person":"organization"}get isBack(){return this.type==="back"}get isFront(){return this.type==="front"}set ready(t){Ce(this,me,t),this.emit(J.EVENT_READY_UPDATE,t)}get ready(){return Pe(this,me)}onReady(t){return this.on(J.EVENT_READY_UPDATE,t)}onupdateContext(t){return this.on(J.EVENT_CONTEXT_UPDATE,t)}setCurrentContext(t){if(this.contextId===t)return console.warn("[application-manager] The current context has already been installed.");this.contextId=t,localStorage.setItem(T.LOCALSTORAGE_CURRENT_CONTEXT_KEY,String(t)),this.emit(J.EVENT_CONTEXT_UPDATE,t),console.log(`Current context id %c${t}`,"color: purple")}get context(){var t;return this.contextId?this.contextId===((t=this.person)==null?void 0:t.id)?this.person:this.organizations.find(o=>o.id===this.contextId)||null:null}async init(){try{const t=await this.loadCustomerData();this.customer=t,this.person=t,this.organizations=t.organizations,this.userId=t.userId,this.restoreCurrentContext(),this.ready=!0}catch(t){M()(t)}}restoreCurrentContext(){var o,i;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 t=Number.parseInt(localStorage.getItem(T.LOCALSTORAGE_CURRENT_CONTEXT_KEY)||"");if(!Number.isNaN(t)&&this.validateContextId(Number(t)))this.setCurrentContext(t);else{if(!this.person)return console.warn("Make sure you call ID recovery after saving user data");this.setCurrentContext(this.person.id)}}loadCustomerData(){return Ea()}validateContextId(t){var o;try{return((o=this.person)==null?void 0:o.id)==t?!0:!!this.organizations.find(i=>i.id===t)}catch{return!1}}};Ee=new WeakMap,me=new WeakMap,J.DEFAULT_LANGUAGE="en",J.EVENT_CONTEXT_UPDATE="event:context-update",J.EVENT_READY_UPDATE="event:ready-update";let Xe=J;function ba(e){return F().emit("metadata:read",{entity:e})}const ee=function(){const n=r.reactive({}),t=new Map;function o(c){return n[c]}async function i(c){if(t.has(c)&&await t.get(c),n[c])return o(c);const s=await a(c);return l(c,s),o(c)}function a(c){const s=ba(c).finally(()=>{t.delete(c)});return t.set(c,s),s}function l(c,s){n[c]=s}return{state:n,initEntity:i,get:o,loadingFlags:t}}();class _a extends Z{on(n,t){return super.on(n,t)}emit(n,t){console.log("[event-bus] emit",n,t),super.emit(n,t)}off(n,t){super.off(n,t)}}class K{static login(n){return H(S.identityServerURL+"/api/Authenticate/Login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({...n,AppName:S.applicationName})})}static parseProcessAnswer(n){if(n.statusCode>4)throw new Error(n.statusName.replace(/([A-Z][a-z])/g," $1").replace(/(\d)/g," $1"));return n}static startRegistrationProcess(n){return K.requestStepRegistrationProcess("StartRegistration",n)}static confirmPhoneRegistrationProcess(n){return K.requestStepRegistrationProcess("ConfirmPhoneNumberByRegistration",n)}static confirmEmailRegistrationProcess(n){return K.requestStepRegistrationProcess("ConfirmEmailByRegistration",n)}static finishEmailRegistrationProcess(n){return K.requestStepRegistrationProcess("FinishRegistration",n)}static requestStepRegistrationProcess(n,t){return H(`${S.identityServerURL}/api/Authenticate/${n}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t)})}static startLoginProcess(n){return K.requestStepLoginProcess("StartLogin",n)}static loginWithPassword(n){return K.requestStepLoginProcess("LoginWithPassword",n)}static loginWithOtpCode(n){return K.requestStepLoginProcess("LoginWithOtpCode",n)}static requestStepLoginProcess(n,t){return H(`${S.identityServerURL}/api/Authenticate/${n}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t)}).then(K.parseLoginProcessAnswer)}static parseLoginProcessAnswer(n){if(n.statusCode>3)throw Error(n.statusName.replace(/([A-Z][a-z])/g," $1").replace(/(\d)/g," $1"));return n}static startPasswordReset(n,t){return H(`${S.identityServerURL}/api/Authenticate/StartAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({UserId:t,AppName:n})})}static confirmPhoneNumberByAccessRecovery(n,t,o,i){return H(`${S.identityServerURL}/api/Authenticate/ConfirmPhoneNumberByAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:n,Token:t,Prefix:o,Code:i})})}static confirmEmailByAccessRecovery(n,t,o,i){return H(`${S.identityServerURL}/api/Authenticate/ConfirmEmailByAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:n,Token:t,Prefix:o,Code:i})})}static finishAccessRecovery(n,t,o,i){return H(`${S.identityServerURL}/api/Authenticate/FinishAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:n,Token:t,Password:o,ConfirmedPassword:i})})}}class ka{static readHistoryById(n,t){return H(`/close-api/audits/history/${n}/${t}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}class Ca{static getConfiguration(){return H("/open-api/webserver-configuration",{method:"GET",headers:{"Content-Type":"application/json"}})}static async getList(n){return await H(`/open-api/data/${n}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}class Ta{static getDictionary(n){if(!n)throw new Error(`Can't get dictionary for ${n}.`);return H(`/open-api/internationalization/language/${n}`)}}class Sa{static async upload(n,t){const o=new FormData;return o.append("file",n),H(`/close-api/files?entityName=${t}`,{method:"POST",body:o}).then(i=>(i.filename=n.name,i))}}var gn=(e=>(e.Add="A",e.Delete="D",e.Modify="M",e.None="N",e))(gn||{}),hn=(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))(hn||{});function Aa(e){return typeof e!="object"||e===null?!1:!!(e.hasOwnProperty("start")||e.hasOwnProperty("end"))}function $(e){return Object.keys(e).reduce((n,t)=>{const o=e[t];if(Array.isArray(o)){const i=o.map(a=>typeof a=="string"?`'${a}'`:a).join(", ");return o.length&&n.push(`@${t} in (${i})`),n}if(Aa(o)){let i=function(a){var l;return((l=a.match(/([^Z]*)/))==null?void 0:l[0])+"0000Z"};return o.start&&n.push(`@${t} ge ${i(o.start)}`),o.end&&n.push(`@${t} le ${i(o.end)}`),n}return typeof o=="number"||typeof o=="boolean"?(n.push(`@${t} eq ${o}`),n):typeof o=="string"?(o.length!==0&&n.push(`@${t} eq '${o}'`),n):(o===null&&n.push($.is(t,o)),n)},[]).join(" and ")}function ke(e){return typeof e=="string"?`'${e}'`:`${e}`}$.includes=function(n,t){return`@${n} Contains ${ke(t)}`};$.beginWith=function(n,t){return`@${n} BeginWith ${ke(t)}`};$.notEq=function(n,t){return`@${n} nq ${ke(t)}`};$.eq=function(n,t){return Array.isArray(t)?$.in(n,t):`@${n} eq ${ke(t)}`};$.in=function(n,t){const o=t.map(ke).join(", ");return`@${n} in (${o})`};$.notIn=function(n,t){return!Array.isArray(t)||t.length===0?"":$.and(...t.map(o=>$.notEq(n,o)))};$.and=function(...n){return n.filter(t=>typeof t!="string"||t.trim().length===0?!1:t).map($.wrap).join(" and ")};$.wrap=function(n){return`(${n})`};$.is=function(n,t){return`@${n} is ${t}`};$.or=function(...n){return n.join(" or ")};function ft(e){return Object.keys(e).reduce((n,t)=>{let o=e[t];const i=t.charAt(0).toUpperCase()+t.slice(1);return typeof o=="object"&&!(o==null||Array.isArray(o))&&(o=ft(o)),n[i]=o,n},{})}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||{});function Ia(e){return typeof e!="string"?!1:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}const X=new Xe,we=new _a;exports.ApplicationStatus=hn;exports.AsyncProcessStatus=Pt;exports.Communication=wa;exports.CoreError=ne;exports.DisplayListRow=fn;exports.EventBus=we;exports.Filter=$;exports.Manager=X;exports.MetadataStore=ee;exports.ModalListDownload=Jr;exports.ModalVersionHistory=yo;exports.NotificationSystem=Ve;exports.OBJECT_TYPE_NAME_FIELD=Rt;exports.RecordOperation=gn;exports.WidgetAction=Xr;exports.WidgetButton=Zn;exports.WidgetFastTable=Yr;exports.WidgetFastTableHeadCell=Bt;exports.WidgetField=kr;exports.WidgetIcon=ve;exports.WidgetImage=cr;exports.WidgetList=_r;exports.WidgetLoader=$e;exports.WidgetMultiButton=ir;exports.WidgetResolverEntity=Kr;exports.WidgetSpinner=be;exports.WidgetTable=Ot;exports.WidgetTablePanelFilterItem=Dt;exports.asyncProcess=re;exports.authService=K;exports.billingService=fe;exports.catchUniversal=M;exports.config=Un;exports.configuration=S;exports.constants=T;exports.convertDDToDMS=Mi;exports.convertDMSToDD=Pi;exports.convertListConfig=ze;exports.coreUtils=Yi;exports.debounce=Co;exports.documentsService=_n;exports.downloadDocumentBuilderFile=vo;exports.fileService=Sa;exports.formatter=ge;exports.getCellName=le;exports.getCellValue=Be;exports.getEntityLink=lt;exports.getNamesFromListConfig=ot;exports.getPathForResolveRouter=Ui;exports.getPrimaryFieldNameForEntity=ct;exports.getUnitValue=We;exports.groupArrayByField=bo;exports.historyService=ka;exports.injectAction=xt;exports.internationalizationService=Ta;exports.invitationService=bn;exports.isUUID=Ia;exports.openBlobFile=Vt;exports.openService=Ca;exports.parseError=nt;exports.parseTextByMarkdown=Vi;exports.prettyDate=Re;exports.prettyDateWithTime=tt;exports.prettyMoney=jt;exports.prettyValueFieldByEntity=qe;exports.request=H;exports.setupListRow=Je;exports.staticLink=Xt;exports.t=oe;exports.throttle=To;exports.universalBatchUpdate=zt;exports.universalEntityCount=Fo;exports.universalEntityCreate=qt;exports.universalEntityDelete=Ht;exports.universalEntityRead=ce;exports.universalEntityResolve=it;exports.universalEntityUpdate=rt;exports.universalHistoryRead=Yt;exports.universalListSettingRead=Wt;exports.universalMetadataFieldTreat=Ro;exports.universalMetadataListRead=Oo;exports.universalToolRead=Gt;exports.useActions=aa;exports.useCommunication=ra;exports.useEnter=sa;exports.useFormEntity=oa;exports.useListActiveRow=Xi;exports.useListDownload=mn;exports.useListEntity=Ji;exports.useListSearch=ca;exports.useListSelect=la;exports.useLocalStorage=Lt;exports.useManagerState=Qi;exports.useMetadata=_e;exports.useMetadataField=Ft;exports.useSocket=F;exports.useUsageContext=ut;exports.useVisibleItem=Qe;exports.useWizard=ma;exports.uuidv4=_o;exports.valuesToUpperCase=ft;exports.wrapToolResponse=Kt;
12
+ */const Ct=function(e,n){return e in this.events||(this.events[e]=[]),this.events[e].push(n),this.off.bind(this,e,n)},Tt=function(e,n){e in this.events&&this.events[e].forEach(t=>t(n))},St=function(e,n){const t=this.events[e];if(!t)return;const o=t.indexOf(n);o!==-1&&t.splice(o,1)},At=function(){this.events={}};class Z{constructor(){this.events={}}on(n,t){return Ct.call(this,n,t)}emit(n,t){return Tt.call(this,n,t)}off(n,t){return St.call(this,n,t)}cleanEvents(){At.call(this)}static on(n,t){return Ct.call(Z,n,t)}static emit(n,t){return Tt.call(Z,n,t)}static off(n,t){return St.call(Z,n,t)}static cleanEvents(){At.call(Z)}}Z.events={};class Ea extends Z{constructor(n){super(),this.name="Communication",this.read=()=>{},this.id=n}sendMessage(n){return na(this.id,n)}static checkAndGenerate(n,t,o){return ta(n,t,o).then(i=>i.length===0?ea(n,t,o):i[0])}}function ba(){return F().emit("client:read",{})}class dt extends Error{static ConstContextCannotBeChanged(){return new dt("The current context is set to constant. In order to change it, you need to put Manager into a changeable state.")}}var Ee,me;const J=class J extends Z{constructor(){super(...arguments);Me(this,Ee);Me(this,me);this.isConstContext=!1,this.type="front",this.organizations=[],Ce(this,me,!1)}set language(t){localStorage.setItem(T.LOCALSTORAGE_LANGUAGE_KEY,t)}get language(){return localStorage.getItem(T.LOCALSTORAGE_LANGUAGE_KEY)||J.DEFAULT_LANGUAGE}get contextId(){return Pe(this,Ee)}set contextId(t){if(this.isConstContext)throw dt.ConstContextCannotBeChanged();Ce(this,Ee,t)}get contextType(){var t;if(this.contextId)return((t=this.person)==null?void 0:t.id)===this.contextId?"person":"organization"}get isBack(){return this.type==="back"}get isFront(){return this.type==="front"}set ready(t){Ce(this,me,t),this.emit(J.EVENT_READY_UPDATE,t)}get ready(){return Pe(this,me)}onReady(t){return this.on(J.EVENT_READY_UPDATE,t)}onupdateContext(t){return this.on(J.EVENT_CONTEXT_UPDATE,t)}setCurrentContext(t){if(this.contextId===t)return console.warn("[application-manager] The current context has already been installed.");this.contextId=t,localStorage.setItem(T.LOCALSTORAGE_CURRENT_CONTEXT_KEY,String(t)),this.emit(J.EVENT_CONTEXT_UPDATE,t),console.log(`Current context id %c${t}`,"color: purple")}get context(){var t;return this.contextId?this.contextId===((t=this.person)==null?void 0:t.id)?this.person:this.organizations.find(o=>o.id===this.contextId)||null:null}async init(){try{const t=await this.loadCustomerData();this.customer=t,this.person=t,this.organizations=t.organizations,this.userId=t.userId,this.restoreCurrentContext(),this.ready=!0}catch(t){M()(t)}}restoreCurrentContext(){var o,i;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 t=Number.parseInt(localStorage.getItem(T.LOCALSTORAGE_CURRENT_CONTEXT_KEY)||"");if(!Number.isNaN(t)&&this.validateContextId(Number(t)))this.setCurrentContext(t);else{if(!this.person)return console.warn("Make sure you call ID recovery after saving user data");this.setCurrentContext(this.person.id)}}loadCustomerData(){return ba()}validateContextId(t){var o;try{return((o=this.person)==null?void 0:o.id)==t?!0:!!this.organizations.find(i=>i.id===t)}catch{return!1}}};Ee=new WeakMap,me=new WeakMap,J.DEFAULT_LANGUAGE="en",J.EVENT_CONTEXT_UPDATE="event:context-update",J.EVENT_READY_UPDATE="event:ready-update";let Xe=J;function _a(e){return F().emit("metadata:read",{entity:e})}const ee=function(){const n=r.reactive({}),t=new Map;function o(c){return n[c]}async function i(c){if(t.has(c)&&await t.get(c),n[c])return o(c);const s=await a(c);return l(c,s),o(c)}function a(c){const s=_a(c).finally(()=>{t.delete(c)});return t.set(c,s),s}function l(c,s){n[c]=s}return{state:n,initEntity:i,get:o,loadingFlags:t}}();class ka extends Z{on(n,t){return super.on(n,t)}emit(n,t){console.log("[event-bus] emit",n,t),super.emit(n,t)}off(n,t){super.off(n,t)}}class K{static login(n){return H(S.identityServerURL+"/api/Authenticate/Login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({...n,AppName:S.applicationName})})}static parseProcessAnswer(n){if(n.statusCode>4)throw new Error(n.statusName.replace(/([A-Z][a-z])/g," $1").replace(/(\d)/g," $1"));return n}static startRegistrationProcess(n){return K.requestStepRegistrationProcess("StartRegistration",n)}static confirmPhoneRegistrationProcess(n){return K.requestStepRegistrationProcess("ConfirmPhoneNumberByRegistration",n)}static confirmEmailRegistrationProcess(n){return K.requestStepRegistrationProcess("ConfirmEmailByRegistration",n)}static finishEmailRegistrationProcess(n){return K.requestStepRegistrationProcess("FinishRegistration",n)}static requestStepRegistrationProcess(n,t){return H(`${S.identityServerURL}/api/Authenticate/${n}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t)})}static startLoginProcess(n){return K.requestStepLoginProcess("StartLogin",n)}static loginWithPassword(n){return K.requestStepLoginProcess("LoginWithPassword",n)}static loginWithOtpCode(n){return K.requestStepLoginProcess("LoginWithOtpCode",n)}static requestStepLoginProcess(n,t){return H(`${S.identityServerURL}/api/Authenticate/${n}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t)}).then(K.parseLoginProcessAnswer)}static parseLoginProcessAnswer(n){if(n.statusCode>3)throw Error(n.statusName.replace(/([A-Z][a-z])/g," $1").replace(/(\d)/g," $1"));return n}static startPasswordReset(n,t){return H(`${S.identityServerURL}/api/Authenticate/StartAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({UserId:t,AppName:n})})}static confirmPhoneNumberByAccessRecovery(n,t,o,i){return H(`${S.identityServerURL}/api/Authenticate/ConfirmPhoneNumberByAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:n,Token:t,Prefix:o,Code:i})})}static confirmEmailByAccessRecovery(n,t,o,i){return H(`${S.identityServerURL}/api/Authenticate/ConfirmEmailByAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:n,Token:t,Prefix:o,Code:i})})}static finishAccessRecovery(n,t,o,i){return H(`${S.identityServerURL}/api/Authenticate/FinishAccessRecovery`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({AppName:n,Token:t,Password:o,ConfirmedPassword:i})})}}class Ca{static readHistoryById(n,t){return H(`/close-api/audits/history/${n}/${t}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}class Ta{static getConfiguration(){return H("/open-api/webserver-configuration",{method:"GET",headers:{"Content-Type":"application/json"}})}static async getList(n){return await H(`/open-api/data/${n}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}class Sa{static getDictionary(n){if(!n)throw new Error(`Can't get dictionary for ${n}.`);return H(`/open-api/internationalization/language/${n}`)}}class Aa{static async upload(n,t){const o=new FormData;return o.append("file",n),o.append("entityName",t),H("/close-api/files",{method:"POST",body:o}).then(i=>(i.filename=n.name,i))}static getFileLink(n){return`/close-api/files/${n}`}}var gn=(e=>(e.Add="A",e.Delete="D",e.Modify="M",e.None="N",e))(gn||{}),hn=(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))(hn||{});function Ia(e){return typeof e!="object"||e===null?!1:!!(e.hasOwnProperty("start")||e.hasOwnProperty("end"))}function $(e){return Object.keys(e).reduce((n,t)=>{const o=e[t];if(Array.isArray(o)){const i=o.map(a=>typeof a=="string"?`'${a}'`:a).join(", ");return o.length&&n.push(`@${t} in (${i})`),n}if(Ia(o)){let i=function(a){var l;return((l=a.match(/([^Z]*)/))==null?void 0:l[0])+"0000Z"};return o.start&&n.push(`@${t} ge ${i(o.start)}`),o.end&&n.push(`@${t} le ${i(o.end)}`),n}return typeof o=="number"||typeof o=="boolean"?(n.push(`@${t} eq ${o}`),n):typeof o=="string"?(o.length!==0&&n.push(`@${t} eq '${o}'`),n):(o===null&&n.push($.is(t,o)),n)},[]).join(" and ")}function ke(e){return typeof e=="string"?`'${e}'`:`${e}`}$.includes=function(n,t){return`@${n} Contains ${ke(t)}`};$.beginWith=function(n,t){return`@${n} BeginWith ${ke(t)}`};$.notEq=function(n,t){return`@${n} nq ${ke(t)}`};$.eq=function(n,t){return Array.isArray(t)?$.in(n,t):`@${n} eq ${ke(t)}`};$.in=function(n,t){const o=t.map(ke).join(", ");return`@${n} in (${o})`};$.notIn=function(n,t){return!Array.isArray(t)||t.length===0?"":$.and(...t.map(o=>$.notEq(n,o)))};$.and=function(...n){return n.filter(t=>typeof t!="string"||t.trim().length===0?!1:t).map($.wrap).join(" and ")};$.wrap=function(n){return`(${n})`};$.is=function(n,t){return`@${n} is ${t}`};$.or=function(...n){return n.join(" or ")};function ft(e){return Object.keys(e).reduce((n,t)=>{let o=e[t];const i=t.charAt(0).toUpperCase()+t.slice(1);return typeof o=="object"&&!(o==null||Array.isArray(o))&&(o=ft(o)),n[i]=o,n},{})}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||{});function Na(e){return typeof e!="string"?!1:/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}const X=new Xe,we=new ka;exports.ApplicationStatus=hn;exports.AsyncProcessStatus=Pt;exports.Communication=Ea;exports.CoreError=ne;exports.DisplayListRow=fn;exports.EventBus=we;exports.Filter=$;exports.Manager=X;exports.MetadataStore=ee;exports.ModalListDownload=Jr;exports.ModalVersionHistory=yo;exports.NotificationSystem=Ve;exports.OBJECT_TYPE_NAME_FIELD=Rt;exports.RecordOperation=gn;exports.WidgetAction=Xr;exports.WidgetButton=Zn;exports.WidgetFastTable=Yr;exports.WidgetFastTableHeadCell=Bt;exports.WidgetField=kr;exports.WidgetIcon=ve;exports.WidgetImage=cr;exports.WidgetList=_r;exports.WidgetLoader=$e;exports.WidgetMultiButton=ir;exports.WidgetResolverEntity=Kr;exports.WidgetSpinner=be;exports.WidgetTable=Ot;exports.WidgetTablePanelFilterItem=Dt;exports.asyncProcess=re;exports.authService=K;exports.billingService=fe;exports.catchUniversal=M;exports.config=Un;exports.configuration=S;exports.constants=T;exports.convertDDToDMS=Mi;exports.convertDMSToDD=Pi;exports.convertListConfig=ze;exports.coreUtils=Xi;exports.debounce=Co;exports.documentsService=_n;exports.downloadDocumentBuilderFile=vo;exports.fileService=Aa;exports.formatter=ge;exports.getCellName=le;exports.getCellValue=Be;exports.getEntityLink=lt;exports.getNamesFromListConfig=ot;exports.getPathForResolveRouter=Ui;exports.getPrimaryFieldNameForEntity=ct;exports.getUnitValue=We;exports.groupArrayByField=bo;exports.historyService=Ca;exports.injectAction=xt;exports.internationalizationService=Sa;exports.invitationService=bn;exports.isUUID=Na;exports.openBlobFile=Vt;exports.openService=Ta;exports.parseError=nt;exports.parseTextByMarkdown=Vi;exports.prettyDate=Re;exports.prettyDateWithTime=tt;exports.prettyMoney=jt;exports.prettyValueFieldByEntity=qe;exports.request=H;exports.setupListRow=Je;exports.staticLink=Xt;exports.t=oe;exports.throttle=To;exports.universalBatchUpdate=zt;exports.universalEntityCount=Fo;exports.universalEntityCreate=qt;exports.universalEntityDelete=Ht;exports.universalEntityRead=ce;exports.universalEntityResolve=it;exports.universalEntityUpdate=rt;exports.universalHistoryRead=Yt;exports.universalListSettingRead=Wt;exports.universalMetadataFieldTreat=Ro;exports.universalMetadataListRead=Oo;exports.universalToolRead=Gt;exports.useActions=sa;exports.useCommunication=oa;exports.useEnter=la;exports.useFormEntity=ia;exports.useListActiveRow=Ki;exports.useListDownload=mn;exports.useListEntity=Qi;exports.useListSearch=ua;exports.useListSelect=ca;exports.useLocalStorage=Lt;exports.useManagerState=Zi;exports.useMetadata=_e;exports.useMetadataField=Ft;exports.useSocket=F;exports.useUsageContext=ut;exports.useVisibleItem=Qe;exports.useWizard=ga;exports.uuidv4=_o;exports.valuesToUpperCase=ft;exports.wrapToolResponse=Kt;
13
13
  //# sourceMappingURL=eservices-core.cjs.js.map