@stonecrop/aform 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,47 @@
1
- (function(O,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],e):(O=typeof globalThis<"u"?globalThis:O||self,e(O["@stonecrop/aform"]={},O.Vue,O.pinia))})(this,(function(O,e,Ft){"use strict";var tt=document.createElement("style");tt.textContent=`@import"https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap";.atable-cell{border-radius:0;box-sizing:border-box;outline:none;box-shadow:none;color:var(--sc-cell-text-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);border-spacing:0px;border-collapse:collapse;overflow:hidden;text-overflow:ellipsis;order:1;white-space:nowrap;max-width:40ch;border-top:1px solid var(--sc-row-border-color);margin:0 0 0 1px}.atable-cell a{color:var(--sc-cell-text-color);text-decoration:none}.atable-cell:focus,.atable-cell:focus-within{background-color:var(--sc-focus-cell-background);outline-width:var(--sc-atable-cell-border-width);outline-style:solid;outline-offset:calc(var(--sc-atable-cell-border-width) * -1);outline-color:var(--sc-focus-cell-outline);box-shadow:none;overflow:hidden;text-wrap:nowrap;box-sizing:border-box}.cell-modified{font-weight:700;font-style:italic}.cell-modified-highlight{background-color:var(--sc-cell-changed-color)}.row-index{color:var(--sc-header-text-color);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none;width:2ch;display:flex;align-items:center;justify-content:center}.expandable-row{border-top:1px solid var(--sc-row-border-color);height:var(--sc-atable-row-height)}.expandable-row>td:first-child{border-left:4px solid var(--sc-row-border-color)}.expanded-row{border-left:2px solid var(--sc-row-border-color)}.expandable-row:last-child{border-bottom:1px solid var(--sc-row-border-color)}.expanded-row-content{border-top:1px solid var(--sc-row-border-color);padding:1.5rem}.expandable-row.changed-row-gradient[data-v-a42297c7]:has(td.cell-modified){--cell-color-start: color-mix(in srgb, var(--sc-cell-changed-color), #fff 20%);--cell-color-end: color-mix(in srgb, var(--sc-cell-changed-color), #fff 60%);background:linear-gradient(90deg,var(--cell-color-start),var(--cell-color-end))}.aganttcell[data-v-8917a8a3]{background-color:#f9f9f9;width:100%;padding:0;height:100%}.gantt-container[data-v-8917a8a3]{position:relative;height:100%;background-color:#f0f0f0;border-radius:4px;overflow:visible}.gantt-bar[data-v-8917a8a3]{position:absolute;border-radius:4px;display:flex;align-items:center;justify-content:space-between;cursor:grab;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);transition:left .1s ease-out,width .1s ease-out;height:80%;top:50%;z-index:2;transform:translateY(-50%)}.gantt-bar[data-v-8917a8a3]:active{cursor:grabbing}.gantt-bar.is-dragging[data-v-8917a8a3]{z-index:10}.gantt-label[data-v-8917a8a3]{flex:1;text-align:center;font-size:12px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px;-webkit-user-select:none;user-select:none}.resize-handle[data-v-8917a8a3]{position:relative;width:12px;height:100%;cursor:ew-resize;display:flex;align-items:center;justify-content:center;z-index:0;background:#00000040}.left-resize-handle[data-v-8917a8a3]{border-right:1px solid rgba(0,0,0,.5)}.right-resize-handle[data-v-8917a8a3]{border-left:1px solid rgba(0,0,0,.5)}.handle-grip[data-v-8917a8a3]{width:4px;height:12px;border-radius:2px;background:#000c}.resize-handle[data-v-8917a8a3]:hover{background-color:#ffffff80}.vertical-indicator[data-v-8917a8a3]{position:absolute;width:2px;opacity:0;pointer-events:none;transition:opacity .2s ease;top:-100vh;height:100vh;z-index:5;background-color:var(--v6d722296)}.left-indicator[data-v-8917a8a3]{left:50%;transform:translate(-50%)}.right-indicator[data-v-8917a8a3]{right:50%;transform:translate(50%)}.resize-handle.is-dragging .vertical-indicator[data-v-8917a8a3]{opacity:.7}.gantt-container[data-v-8917a8a3]:after{content:"";position:absolute;inset:0;background-size:calc(100% / var(--v260b36f8)) 100%;background-image:linear-gradient(to right,rgba(0,0,0,.1) 1px,transparent 1px);pointer-events:none;z-index:1}.connection-handle[data-v-8917a8a3]{position:absolute;top:50%;transform:translateY(-50%);width:16px;height:16px;opacity:0;transition:opacity .2s ease;cursor:crosshair;z-index:15;display:flex;align-items:center;justify-content:center}.connection-handle.visible[data-v-8917a8a3]{opacity:1}.left-connection-handle[data-v-8917a8a3]{left:-16px}.right-connection-handle[data-v-8917a8a3]{right:-16px}.connection-dot[data-v-8917a8a3]{width:8px;height:8px;border-radius:50%;background-color:#2196f3;border:2px solid white;box-shadow:0 1px 3px #0000004d}.connection-handle:hover .connection-dot[data-v-8917a8a3]{background-color:#1976d2;transform:scale(1.2)}.connection-handle.is-dragging[data-v-8917a8a3]{opacity:1!important}.connection-handle.is-dragging .connection-dot[data-v-8917a8a3]{background-color:#1976d2;transform:scale(1.3);box-shadow:0 2px 8px #2196f366}.atable-row{background-color:#fff}.atable-row>td:first-child{border-left:4px solid var(--sc-row-border-color)}.list-index{color:var(--sc-header-text-color);font-weight:700;padding-left:var(--sc-atable-row-padding);padding-right:.5em;text-align:left;-webkit-user-select:none;user-select:none;width:7ch;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding)}.tree-index{color:var(--sc-header-text-color);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none;width:2ch;box-sizing:border-box;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding)}.atable-row:has(td.cell-modified)>td.sticky-column,.atable-row:has(td.cell-modified)>th.sticky-column,.atable-row:has(td.cell-modified)>td.sticky-index,.atable-row:has(td.cell-modified)>th.sticky-index{background:var(--sc-cell-changed-color)}.atable-row.changed-row-gradient[data-v-0fa91f83]:has(td.cell-modified){--cell-color-start: color-mix(in srgb, var(--sc-cell-changed-color), #fff 20%);--cell-color-end: color-mix(in srgb, var(--sc-cell-changed-color), #fff 60%);background:linear-gradient(90deg,var(--cell-color-start),var(--cell-color-end))}.gantt-connection-overlay[data-v-71911260]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.connection-path[data-v-71911260]{transition:stroke-width .2s ease;pointer-events:auto;cursor:pointer;stroke-dasharray:5px;stroke:var(--sc-cell-text-color)}#arrowhead-marker polygon[data-v-71911260]{fill:var(--sc-cell-text-color)}.animated-path[data-v-71911260]{animation:animated-dash-71911260 infinite 1.5s linear}.connection-path[data-v-71911260]:hover{stroke-width:3px}.connection-hitbox[data-v-71911260]{pointer-events:auto;cursor:pointer}@keyframes animated-dash-71911260{0%{stroke-dashoffset:0px}to{stroke-dashoffset:-10px}}.column-filter[data-v-8487462d]{display:flex;align-items:center;gap:.25rem;width:100%}.filter-input[data-v-8487462d],.filter-select[data-v-8487462d]{background-color:var(--sc-form-background)!important;padding:.15rem .2rem;border:1px solid var(--sc-form-border);border-radius:3px;font-size:.875rem;color:var(--sc-text-color);width:100%;box-sizing:border-box}.filter-input[data-v-8487462d]:focus,.filter-select[data-v-8487462d]:focus{outline:none;border-color:var(--sc-input-active-border-color)}.checkbox-filter[data-v-8487462d]{display:flex;align-items:center;gap:.25rem;font-size:.875rem;color:var(--sc-text-color);cursor:pointer}.filter-checkbox[data-v-8487462d]{margin:0}.date-range-filter[data-v-8487462d]{display:flex;gap:.25rem;align-items:center;width:100%}.date-range-filter .filter-input[data-v-8487462d]{flex:1;min-width:0}.date-separator[data-v-8487462d]{color:var(--sc-gray-50);font-weight:500;padding:0 .25rem;flex-shrink:0}.clear-btn[data-v-8487462d]{background:var(--sc-gray-10, #f0f0f0);border:1px solid var(--sc-form-border);border-radius:3px;color:var(--sc-gray-70);cursor:pointer;font-size:1rem;padding:.15rem .4rem;line-height:1;flex-shrink:0}.atable-header-row th{padding-left:.5ch!important;font-weight:700;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);box-sizing:border-box;color:var(--sc-header-text-color);position:relative}#header-index{padding-left:var(--sc-atable-row-padding);box-sizing:border-box}.tree-index{padding-right:0}th{order:1}.list-expansion-index{width:2ch;margin-left:5px}.cursor-pointer{cursor:pointer}.atable-filters-row th{padding:.25rem .5ch;vertical-align:top}:root{--sc-primary-color: #0098c9;--sc-primary-text-color: #ffffff;--sc-brand-color: #202a44;--sc-gray-5: #f2f2f2;--sc-gray-10: #e6e6e6;--sc-gray-20: #cccccc;--sc-gray-50: #808080;--sc-gray-60: #666666;--sc-gray-80: #333333;--sc-brand-danger: #e63c28;--sc-brand-success: #155724;--sc-brand-warning: #b99d3e;--sc-active-cell-background: #ffffff;--sc-active-cell-outline: #e6a92d;--sc-cell-border-color: #ffffff;--sc-cell-text-color: #3a3c41;--sc-focus-cell-background: #ffffff;--sc-focus-cell-outline: #000000;--sc-header-border-color: #ffffff;--sc-header-text-color: var(--sc-gray-20);--sc-row-border-color: var(--sc-gray-20);--sc-row-color-zebra-dark: #dddddd;--sc-row-color-zebra-light: #eeeeee;--sc-row-number-background-color: #ffffff;--sc-input-active-border-color: #000000;--sc-input-active-label-color: #000000;--sc-input-border-color: var(--sc-gray-20);--sc-input-label-color: var(--sc-gray-60);--sc-required-border: #e63c28;--sc-cell-changed-color: #d8edff;--sc-form-border: var(--sc-gray-5);--sc-form-background: #ffffff;--sc-input-field-background: #ffffff;--sc-input-field-disabled-background: var(--sc-gray-5);--sc-font-size: 10px;--sc-font-family: Arimo, Arial, sans-serif;--sc-table-font-size: 16px;--sc-atable-font-family: "Arimo", sans-serif;--sc-atable-row-padding: .125rem;--sc-atable-row-height: 1.5em;--sc-atable-cell-border-width: 2px;--sc-table-loading-color: 204, 204, 204;--sc-btn-border: #cccccc;--sc-btn-color: white;--sc-btn-hover: #f2f2f2;--sc-btn-label-color: black}.amodal{position:absolute;background-color:var(--sc-row-color-zebra-dark);z-index:5}.atable-container{position:relative}.sticky-index{position:sticky;left:0;z-index:10;order:0}.sticky-column,th.sticky-column,td.sticky-column,th.sticky-index,td.sticky-index{position:sticky;z-index:10;order:0;background:#fff}.sticky-column-edge,.atable th.sticky-column-edge{border-right:1px solid var(--sc-row-border-color)}[data-v-c0a0032f]:root{--sc-primary-color: #0098c9;--sc-primary-text-color: #ffffff;--sc-brand-color: #202a44;--sc-gray-5: #f2f2f2;--sc-gray-10: #e6e6e6;--sc-gray-20: #cccccc;--sc-gray-50: #808080;--sc-gray-60: #666666;--sc-gray-80: #333333;--sc-brand-danger: #e63c28;--sc-brand-success: #155724;--sc-brand-warning: #b99d3e;--sc-active-cell-background: #ffffff;--sc-active-cell-outline: #e6a92d;--sc-cell-border-color: #ffffff;--sc-cell-text-color: #3a3c41;--sc-focus-cell-background: #ffffff;--sc-focus-cell-outline: #000000;--sc-header-border-color: #ffffff;--sc-header-text-color: var(--sc-gray-20);--sc-row-border-color: var(--sc-gray-20);--sc-row-color-zebra-dark: #dddddd;--sc-row-color-zebra-light: #eeeeee;--sc-row-number-background-color: #ffffff;--sc-input-active-border-color: #000000;--sc-input-active-label-color: #000000;--sc-input-border-color: var(--sc-gray-20);--sc-input-label-color: var(--sc-gray-60);--sc-required-border: #e63c28;--sc-cell-changed-color: #d8edff;--sc-form-border: var(--sc-gray-5);--sc-form-background: #ffffff;--sc-input-field-background: #ffffff;--sc-input-field-disabled-background: var(--sc-gray-5);--sc-font-size: 10px;--sc-font-family: Arimo, Arial, sans-serif;--sc-table-font-size: 16px;--sc-atable-font-family: "Arimo", sans-serif;--sc-atable-row-padding: .125rem;--sc-atable-row-height: 1.5em;--sc-atable-cell-border-width: 2px;--sc-table-loading-color: 204, 204, 204;--sc-btn-border: #cccccc;--sc-btn-color: white;--sc-btn-hover: #f2f2f2;--sc-btn-label-color: black}.atable[data-v-c0a0032f]{position:relative;font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);border-collapse:collapse;box-sizing:border-box;table-layout:auto;width:auto;overflow:clip;height:1px}.atable th[data-v-c0a0032f]{border-width:0px;border-style:solid;border-radius:0;padding-left:.5ch;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);color:var(--sc-gray-60);height:var(--sc-atable-row-height);font-weight:300;letter-spacing:.05rem;order:1;box-sizing:border-box}.atable th[data-v-c0a0032f]:focus{outline:none}.atable[data-v-c0a0032f]:tbody{overflow:hidden;position:relative}.atable[data-v-c0a0032f]:tbody:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:transparent;z-index:100}.aloading[data-v-a930a25b]{width:100%;border-top:1px solid var(--sc-row-border-color);border-bottom:1px solid var(--sc-row-border-color);display:flex;background-color:#fff;border-left:4px solid var(--sc-row-border-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);align-items:center;box-sizing:border-box;background:var(--sc-focus-cell-background);overflow:hidden;position:relative}.aloading-bar[data-v-a930a25b]{width:100%;height:100%;position:absolute;left:-100%;top:0;background:linear-gradient(90deg,rgba(var(--sc-table-loading-color),0),rgba(var(--sc-table-loading-color),1),rgba(var(--sc-table-loading-color),0));animation:gradient-a930a25b infinite 2s;z-index:0}.aloading-header[data-v-a930a25b]{color:var(--sc-cell-text-color);font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);padding:0;margin:0;font-weight:400;z-index:1}.aloading-header[data-v-a930a25b]:after{content:"...";animation:ellipse-a930a25b 2s;animation-iteration-count:infinite}@keyframes gradient-a930a25b{0%{left:-100%}to{left:100%}}@keyframes ellipse-a930a25b{0%{content:""}20%{content:""}40%{content:"."}60%{content:".."}80%{content:"..."}}.aloading[data-v-e1165876]{width:100%;border-top:1px solid var(--sc-row-border-color);border-bottom:1px solid var(--sc-row-border-color);display:flex;background-color:#fff;border-left:4px solid var(--sc-row-border-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);align-items:center;box-sizing:border-box;background:var(--sc-focus-cell-background);overflow:hidden;position:relative}.aloading-bar[data-v-e1165876]{width:50%;height:3px;position:absolute;left:-100%;bottom:0;background:var(--sc-row-border-color);animation:bar-left-e1165876 infinite 2s;z-index:0}.aloading-header[data-v-e1165876]{color:var(--sc-cell-text-color);font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);padding:0;margin:0;font-weight:400;z-index:1}.aloading-header[data-v-e1165876]:after{content:"...";animation:ellipse-e1165876 2s;animation-iteration-count:infinite}@keyframes bar-left-e1165876{0%{left:-50%}to{left:100%}}@keyframes ellipse-e1165876{0%{content:""}20%{content:""}40%{content:"."}60%{content:".."}80%{content:"..."}}.aform_checkbox[data-v-f13fd4d6]{cursor:pointer;width:auto;margin-top:0;display:block}.aform_checkbox[data-v-f13fd4d6]:checked{accent-color:var(--sc-primary-color);border:1px solid black}.aform_checkbox-container[data-v-f13fd4d6]{width:100%;display:inline-block;text-align:left}.aform_checkbox-container input[data-v-f13fd4d6]{width:auto}.aform_checkbox-container:hover+.aform_field-label[data-v-f13fd4d6]{color:var(--sc-input-active-label-color)}div[data-v-a15ed922]{min-width:40ch;width:100%;box-sizing:border-box;border:1px solid transparent;padding:0rem;margin:0rem;margin-right:1ch}input[data-v-a15ed922]{width:calc(100% - 1ch);box-sizing:border-box;outline:1px solid transparent;border:1px solid var(--sc-input-border-color);padding:1ch .5ch .5ch 1ch;margin:.575rem 0 0;min-height:1.15rem;border-radius:.25rem}p[data-v-a15ed922],label[data-v-a15ed922]{color:var(--sc-input-label-color);display:block;min-height:1.15rem;padding:0rem;margin:0rem 0rem .25rem;border:1px solid transparent;box-sizing:border-box}p[data-v-a15ed922]{width:100%;color:red;font-size:85%;box-sizing:border-box}label[data-v-a15ed922]{z-index:2;font-size:80%;position:absolute;background:#fff;margin:-2.575rem 0 0 1ch;padding:0 .25ch;box-sizing:border-box}input[data-v-a15ed922]:focus{border:1px solid var(--sc-input-active-border-color)}input:focus+label[data-v-a15ed922]{color:var(--sc-input-active-label-color)}.autocomplete[data-v-31a6db8c]{position:relative}.input-wrapper[data-v-31a6db8c]{border:1px solid transparent;padding:0rem;margin:0rem;margin-right:1ch}input[data-v-31a6db8c]{width:calc(100% - 1ch);outline:1px solid transparent;border:1px solid var(--sc-input-border-color);padding:1ch .5ch .5ch 1ch;margin:.575rem 0 0;min-height:1.15rem;border-radius:.25rem}input[data-v-31a6db8c]:focus{border:1px solid var(--sc-input-active-border-color);border-radius:.25rem .25rem 0 0;border-bottom:none}label[data-v-31a6db8c]{display:block;min-height:1.15rem;padding:0rem;margin:0rem 0rem .25rem;border:1px solid transparent;z-index:2;font-size:80%;position:absolute;background:#fff;margin:-2.575rem 0 0 1ch;padding:0 .25ch}.autocomplete-results[data-v-31a6db8c]{position:absolute;width:calc(100% - 1ch + 1.5px);z-index:999;padding:0;margin:0;color:var(--sc-input-active-border-color);border:1px solid var(--sc-input-active-border-color);border-radius:0 0 .25rem .25rem;border-top:none;background-color:#fff}.autocomplete-result[data-v-31a6db8c]{list-style:none;text-align:left;padding:4px 6px;cursor:pointer;border-bottom:.5px solid lightgray}.autocomplete-result.is-active[data-v-31a6db8c],.autocomplete-result[data-v-31a6db8c]:hover{background-color:var(--sc-row-color-zebra-light);color:var(--sc-input-active-border-color)}.adatepicker[data-v-056d2b5e]{font-size:var(--sc-table-font-size);display:inline-table;color:var(--sc-cell-text-color);outline:none;border-collapse:collapse}.adatepicker tr[data-v-056d2b5e]{height:1.15rem;text-align:center;vertical-align:middle}.adatepicker td[data-v-056d2b5e]{border:2px solid transparent;outline:2px solid transparent;min-width:3ch;max-width:3ch}.adatepicker td[data-v-056d2b5e]:focus,.adatepicker td[data-v-056d2b5e]:focus-within{outline:1px dashed black;box-shadow:none;min-height:1.15em;max-height:1.15em;overflow:hidden}.adatepicker .selectedDate[data-v-056d2b5e]{outline:1px solid black;background:var(--sc-gray-20);font-weight:bolder}.adatepicker .todaysDate[data-v-056d2b5e]{font-weight:bolder;text-decoration:underline;color:#000}.days-header>td[data-v-056d2b5e]{font-weight:700}.prev-date[data-v-056d2b5e]{color:var(--sc-gray-20)}.collapse-button[data-v-6f1c1b45]{width:2ch;min-width:calc(66px - 4ch);background-color:transparent;font-size:150%;text-align:center;border:none;margin-top:-.5rem}.rotated[data-v-6f1c1b45]{transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transition:transform .25s;transform-origin:center center}.unrotated[data-v-6f1c1b45]{transform:rotate(0);-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transition:transform .25s}.aform_form-element{padding:0;margin:0;position:relative;box-sizing:border-box;flex-grow:1;min-width:20ch;margin-bottom:1rem}.aform_input-field{outline:1px solid var(--sc-input-border-color);outline-offset:-1px;font-size:1rem;padding:.5rem;margin:0;border-radius:0;box-sizing:border-box;width:100%;min-height:auto;position:relative;color:var(--sc-cell-text-color);background:var(--sc-input-field-background)}.aform_input-field:focus{outline:1px solid var(--sc-input-active-border-color)}.aform_input-field:focus+.aform_field-label{color:var(--sc-input-active-label-color)}.aform_field-label{color:var(--sc-input-label-color);display:inline-block;position:absolute;padding:0 .25rem;margin:0rem;z-index:2;font-size:.7rem;font-weight:300;letter-spacing:.05rem;background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-background) 50%);width:auto;box-sizing:border-box;background:#fff;margin:0;grid-row:1;top:0;left:10px;border:none;line-height:0;transform:translateY(-50%)}.aform_input-field:disabled{background:var(--sc-input-field-disabled-background)}.aform_input-field:disabled+.aform_field-label{background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-disabled-background) 50%)}.aform_input-field:disabled~p.aform_error{background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-disabled-background) 50%)}.aform_field-label:after{margin:0;padding:0;box-sizing:border-box;content:"";line-height:normal}p.aform_error{display:block;display:inline-block;display:none;background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-background) 50%);padding:0 .25rem;margin:0rem;width:auto;color:var(--sc-brand-danger);font-size:.7rem;position:absolute;right:0;top:0;line-height:0;background:#fff;padding:.25rem;transform:translate(-1rem,-50%);margin:0}.aform[data-v-06e17c5b]{display:flex;flex-wrap:wrap;gap:1rem;padding:1rem;border:1px solid var(--sc-form-border);border-left:4px solid var(--sc-form-border);margin-bottom:1rem;max-width:100%}@media screen and (max-width:400px){.aform[data-v-06e17c5b]{flex-direction:column}}.aform-nested-section[data-v-06e17c5b]{width:100%;padding:.5rem 0}.aform-nested-label[data-v-06e17c5b]{font-size:.9rem;font-weight:600;margin:0 0 .5rem;color:var(--sc-input-label-color, #666)}.aform-nested-section .aform[data-v-06e17c5b]{border-left-width:2px;margin-left:.5rem}fieldset[data-v-18fd6c61]{max-width:100%;width:100%;margin-right:2ch;border:1px solid transparent;border-bottom:1px solid var(--sc-gray-50)}legend[data-v-18fd6c61]{width:100%;height:1.15rem;border:1px solid transparent;padding-bottom:.5rem;font-size:110%;font-weight:600;-webkit-user-select:none;user-select:none}.collapse-button[data-v-18fd6c61]{float:right}.aform_file-attach[data-v-b700734f]{padding:1rem;display:flex;flex-wrap:wrap;gap:1rem;flex-direction:row;justify-content:center;align-items:center;border:1px dashed var(--sc-input-border-color);width:100%}@media screen and (max-width:400px){.aform_file-attach>.aform_form-btn[data-v-b700734f]{width:100%}}.aform_file-attach-feedback[data-v-b700734f]{color:var(--sc-input-label-color);width:100%;padding:.5rem;text-align:center;align-self:center}.aform_file-attach-feedback>li[data-v-b700734f]{list-style:none;font-style:italic}.aform_file-attach-feedback>p[data-v-b700734f]{margin-top:0}.aform_form-btn[data-v-b700734f]{padding:.5rem 2rem;width:auto;border:1px solid var(--sc-input-border-color);color:var(--sc-input-label-color);cursor:pointer;background-color:#fff}.aform_form-btn[data-v-b700734f]:disabled{background-color:var(--sc-gray-5)}.login-container[data-v-d9ffd0a7]{width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--sc-font-family)}.account-container[data-v-d9ffd0a7]{width:100%;margin-left:auto;margin-top:.5rem;margin-right:auto;display:flex;flex-direction:column;justify-content:center}.account-header[data-v-d9ffd0a7]{display:flex;flex-direction:column;text-align:center;margin-top:.5rem}#account-title[data-v-d9ffd0a7]{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.025em;margin:0}#account-subtitle[data-v-d9ffd0a7]{font-size:.875rem;line-height:1.25rem;margin:1rem}.login-form-container[data-v-d9ffd0a7]{display:grid;gap:.5rem}.login-form-element[data-v-d9ffd0a7]{display:grid;margin:.5rem 0;position:relative}.login-field[data-v-d9ffd0a7]{padding:.5rem .25rem .25rem .5rem;outline:1px solid transparent;border:1px solid var(--sc-input-border-color);border-radius:.25rem}.login-field[data-v-d9ffd0a7]:focus{border:1px solid black}.btn[data-v-d9ffd0a7]{background-color:var(--sc-btn-color);color:var(--sc-btn-label-color);border:1px solid var(--sc-btn-border);margin:.5rem 0;padding:.25rem;position:relative;cursor:pointer}.btn[data-v-d9ffd0a7]:hover{background-color:var(--sc-btn-hover)}.btn[data-v-d9ffd0a7]:disabled{background-color:var(--sc-input-field-disabled-background)}.disabled[data-v-d9ffd0a7]{opacity:.5}.loading-icon[data-v-d9ffd0a7]{animation:spin-d9ffd0a7 1s linear infinite forwards;display:inline-block;margin-right:.2rem;line-height:0;font-size:1rem;position:relative;top:.2rem}@keyframes spin-d9ffd0a7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
2
- /*$vite$:1*/`,document.head.appendChild(tt);function ot(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const Ht=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ut=t=>t!=null,Gt=Object.prototype.toString,jt=t=>Gt.call(t)==="[object Object]",Wt=()=>{};function ue(t){return Array.isArray(t)?t:[t]}function qt(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const oe=Ht?window:void 0;function ne(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function ie(...t){const o=(a,r,s,l)=>(a.addEventListener(r,s,l),()=>a.removeEventListener(r,s,l)),n=e.computed(()=>{const a=ue(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return qt(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>ne(s)))!==null&&a!==void 0?a:[oe].filter(s=>s!=null),ue(e.toValue(n.value?t[1]:t[0])),ue(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,l],i,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=jt(l)?{...l}:l,f=a.flatMap(g=>r.flatMap(w=>s.map(h=>o(g,w,h,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Yt(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Xt(t){const o=Yt();return e.computed(()=>(o.value,!!t()))}function Kt(t,o,n={}){const{window:a=oe,...r}=n;let s;const l=Xt(()=>a&&"MutationObserver"in a),i=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=ue(e.toValue(t)).map(ne).filter(Ut);return new Set(g)}),g=>{i(),l.value&&g.size&&(s=new MutationObserver(o),g.forEach(w=>s.observe(w,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),i()};return ot(f),{isSupported:l,stop:f,takeRecords:d}}function Jt(t,o,n={}){const{window:a=oe,document:r=a?.document,flush:s="sync"}=n;if(!a||!r)return Wt;let l;const i=f=>{l?.(),l=f},c=e.watchEffect(()=>{const f=ne(t);if(f){const{stop:g}=Kt(r,w=>{w.map(h=>[...h.removedNodes]).flat().some(h=>h===f||h.contains(f))&&o(w)},{window:a,childList:!0,subtree:!0});i(g)}},{flush:s}),d=()=>{c(),i()};return ot(d),d}function Qt(t={}){var o;const{window:n=oe,deep:a=!0,triggerOnRemoval:r=!1}=t,s=(o=t.document)!==null&&o!==void 0?o:n?.document,l=()=>{let d=s?.activeElement;if(a)for(var f;d?.shadowRoot;)d=d==null||(f=d.shadowRoot)===null||f===void 0?void 0:f.activeElement;return d},i=e.shallowRef(),c=()=>{i.value=l()};if(n){const d={capture:!0,passive:!0};ie(n,"blur",f=>{f.relatedTarget===null&&c()},d),ie(n,"focus",c,d)}return r&&Jt(i,c,{document:s}),c(),i}const Zt="focusin",eo="focusout",to=":focus-within";function oo(t,o={}){const{window:n=oe}=o,a=e.computed(()=>ne(t)),r=e.shallowRef(!1),s=e.computed(()=>r.value);if(!n||!Qt(o).value)return{focused:s};const l={passive:!0};return ie(a,Zt,()=>r.value=!0,l),ie(a,eo,()=>{var i,c,d;return r.value=(i=(c=a.value)===null||c===void 0||(d=c.matches)===null||d===void 0?void 0:d.call(c,to))!==null&&i!==void 0?i:!1},l),{focused:s}}function no(t,{window:o=oe,scrollTarget:n}={}){const a=e.ref(!1),r=()=>{if(!o)return;const s=o.document,l=ne(t);if(!l)a.value=!1;else{const i=l.getBoundingClientRect();a.value=i.top<=(o.innerHeight||s.documentElement.clientHeight)&&i.left<=(o.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return e.watch(()=>ne(t),()=>r(),{immediate:!0,flush:"post"}),o&&ie(n||o,"scroll",r,{capture:!1,passive:!0}),a}const W=t=>{let o=no(t).value;return o=o&&t.offsetHeight>0,o},q=t=>t.tabIndex>=0,nt=t=>{const o=t.target;return De(o)},De=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.previousElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.previousElementSibling;n&&(o=n)}return o&&(!q(o)||!W(o))?De(o):o},ao=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.firstElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.firstElementChild;r&&(n=r)}}return n&&(!q(n)||!W(n))?Be(n):n},at=t=>{const o=t.target;return Be(o)},Be=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.nextElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.nextElementSibling;n&&(o=n)}return o&&(!q(o)||!W(o))?Be(o):o},lo=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.lastElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.lastElementChild;r&&(n=r)}}return n&&(!q(n)||!W(n))?De(n):n},lt=t=>{const o=t.target;return Se(o)},Se=t=>{let o;return t.previousElementSibling?o=t.previousElementSibling:o=t.parentElement?.previousElementSibling?.lastElementChild,o&&(!q(o)||!W(o))?Se(o):o},rt=t=>{const o=t.target;return Me(o)},Me=t=>{let o;return t.nextElementSibling?o=t.nextElementSibling:o=t.parentElement?.nextElementSibling?.firstElementChild,o&&(!q(o)||!W(o))?Me(o):o},it=t=>{const o=t.target.parentElement?.firstElementChild;return o&&(!q(o)||!W(o))?Me(o):o},st=t=>{const o=t.target.parentElement?.lastElementChild;return o&&(!q(o)||!W(o))?Se(o):o},me=["alt","control","shift","meta"],ro={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},pe={"keydown.up":t=>{const o=nt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.down":t=>{const o=at(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.left":t=>{const o=lt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.right":t=>{const o=rt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.control.up":t=>{const o=ao(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.down":t=>{const o=lo(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.left":t=>{const o=it(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.right":t=>{const o=st(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.end":t=>{const o=st(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=at(t);o&&o.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=nt(t);o&&o.focus()}},"keydown.home":t=>{const o=it(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.tab":t=>{const o=rt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.shift.tab":t=>{const o=lt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())}};function Te(t){const o=l=>{let i=null;return l.parent&&(typeof l.parent=="string"?i=document.querySelector(l.parent):l.parent instanceof HTMLElement?i=l.parent:i=l.parent.value),i},n=l=>{const i=o(l);let c=[];if(typeof l.selectors=="string")c=Array.from(i?i.querySelectorAll(l.selectors):document.querySelectorAll(l.selectors));else if(Array.isArray(l.selectors))for(const d of l.selectors)d instanceof HTMLElement?c.push(d):c.push(d.$el);else if(l.selectors instanceof HTMLElement)c.push(l.selectors);else if(l.selectors?.value)if(Array.isArray(l.selectors.value))for(const d of l.selectors.value)d instanceof HTMLElement?c.push(d):c.push(d.$el);else c.push(l.selectors.value);return c},a=l=>{const i=o(l);let c=[];return l.selectors?c=n(l):i&&(c=Array.from(i.children).filter(d=>q(d)&&W(d))),c},r=l=>i=>{const c=ro[i.key]||i.key.toLowerCase();if(me.includes(c))return;const d=l.handlers||pe;for(const f of Object.keys(d)){const[g,...w]=f.split(".");if(g==="keydown"&&w.includes(c)){const h=d[f],C=w.filter(m=>me.includes(m)),x=me.some(m=>{const b=m.charAt(0).toUpperCase()+m.slice(1);return i.getModifierState(b)});if(C.length>0){if(x){for(const m of me)if(w.includes(m)){const b=m.charAt(0).toUpperCase()+m.slice(1);i.getModifierState(b)&&h(i)}}}else x||h(i)}}},s=[];e.onMounted(()=>{for(const l of t){const i=o(l),c=a(l),d=r(l),f=i?[i]:c;for(const g of f){const{focused:w}=oo(e.ref(g)),h=e.watch(w,C=>{C?g.addEventListener("keydown",d):g.removeEventListener("keydown",d)});s.push(h)}}}),e.onBeforeUnmount(()=>{for(const l of s)l()})}function Ae(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const ct=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const io=t=>t!=null,so=Object.prototype.toString,co=t=>so.call(t)==="[object Object]",ee=()=>{};function fo(...t){if(t.length!==1)return e.toRef(...t);const o=t[0];return typeof o=="function"?e.readonly(e.customRef(()=>({get:o,set:ee}))):e.ref(o)}function uo(t,o){function n(...a){return new Promise((r,s)=>{Promise.resolve(t(()=>o.apply(this,a),{fn:o,thisArg:this,args:a})).then(r).catch(s)})}return n}function mo(t,o={}){let n,a,r=ee;const s=i=>{clearTimeout(i),r(),r=ee};let l;return i=>{const c=e.toValue(t),d=e.toValue(o.maxWait);return n&&s(n),c<=0||d!==void 0&&d<=0?(a&&(s(a),a=void 0),Promise.resolve(i())):new Promise((f,g)=>{r=o.rejectOnCancel?g:f,l=i,d&&!a&&(a=setTimeout(()=>{n&&s(n),a=void 0,f(l())},d)),n=setTimeout(()=>{a&&s(a),a=void 0,f(i())},c)})}}function ge(t){return Array.isArray(t)?t:[t]}function po(t){return e.getCurrentInstance()}function go(t,o=200,n={}){return uo(mo(o,n),t)}function ho(t,o={}){if(!e.isRef(t))return e.toRefs(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const a in t.value)n[a]=e.customRef(()=>({get(){return t.value[a]},set(r){var s;if(!((s=e.toValue(o.replaceRef))!==null&&s!==void 0)||s)if(Array.isArray(t.value)){const l=[...t.value];l[a]=r,t.value=l}else{const l={...t.value,[a]:r};Object.setPrototypeOf(l,Object.getPrototypeOf(t.value)),t.value=l}else t.value[a]=r}}));return n}function bo(t,o=!0,n){po()?e.onMounted(t,n):o?t():e.nextTick(t)}function wo(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const se=ct?window:void 0;function G(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function J(...t){const o=(a,r,s,l)=>(a.addEventListener(r,s,l),()=>a.removeEventListener(r,s,l)),n=e.computed(()=>{const a=ge(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return wo(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>G(s)))!==null&&a!==void 0?a:[se].filter(s=>s!=null),ge(e.toValue(n.value?t[1]:t[0])),ge(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,l],i,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=co(l)?{...l}:l,f=a.flatMap(g=>r.flatMap(w=>s.map(h=>o(g,w,h,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function dt(t,o,n={}){const{window:a=se,ignore:r=[],capture:s=!0,detectIframe:l=!1,controls:i=!1}=n;if(!a)return i?{stop:ee,cancel:ee,trigger:ee}:ee;let c=!0;const d=m=>e.toValue(r).some(b=>{if(typeof b=="string")return Array.from(a.document.querySelectorAll(b)).some(v=>v===m.target||m.composedPath().includes(v));{const v=G(b);return v&&(m.target===v||m.composedPath().includes(v))}});function f(m){const b=e.toValue(m);return b&&b.$.subTree.shapeFlag===16}function g(m,b){const v=e.toValue(m),E=v.$.subTree&&v.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(V=>V.el===b.target||b.composedPath().includes(V.el))}const w=m=>{const b=G(t);if(m.target!=null&&!(!(b instanceof Element)&&f(t)&&g(t,m))&&!(!b||b===m.target||m.composedPath().includes(b))){if("detail"in m&&m.detail===0&&(c=!d(m)),!c){c=!0;return}o(m)}};let h=!1;const C=[J(a,"click",m=>{h||(h=!0,setTimeout(()=>{h=!1},0),w(m))},{passive:!0,capture:s}),J(a,"pointerdown",m=>{const b=G(t);c=!d(m)&&!!(b&&!m.composedPath().includes(b))},{passive:!0}),l&&J(a,"blur",m=>{setTimeout(()=>{var b;const v=G(t);((b=a.document.activeElement)===null||b===void 0?void 0:b.tagName)==="IFRAME"&&!v?.contains(a.document.activeElement)&&o(m)},0)},{passive:!0})].filter(Boolean),x=()=>C.forEach(m=>m());return i?{stop:x,cancel:()=>{c=!1},trigger:m=>{c=!0,w(m),c=!1}}:x}function xo(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function ft(t){const o=xo();return e.computed(()=>(o.value,!!t()))}function ut(t,o,n={}){const{window:a=se,...r}=n;let s;const l=ft(()=>a&&"MutationObserver"in a),i=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=ge(e.toValue(t)).map(G).filter(io);return new Set(g)}),g=>{i(),l.value&&g.size&&(s=new MutationObserver(o),g.forEach(w=>s.observe(w,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),i()};return Ae(f),{isSupported:l,stop:f,takeRecords:d}}function Ne(t,o={}){var n;const{pointerTypes:a,preventDefault:r,stopPropagation:s,exact:l,onMove:i,onEnd:c,onStart:d,initialValue:f,axis:g="both",draggingElement:w=se,containerElement:h,handle:C=t,buttons:x=[0]}=o,m=e.ref((n=e.toValue(f))!==null&&n!==void 0?n:{x:0,y:0}),b=e.ref(),v=k=>a?a.includes(k.pointerType):!0,E=k=>{e.toValue(r)&&k.preventDefault(),e.toValue(s)&&k.stopPropagation()},V=k=>{var M;if(!e.toValue(x).includes(k.button)||e.toValue(o.disabled)||!v(k)||e.toValue(l)&&k.target!==e.toValue(t))return;const P=e.toValue(h),_=P==null||(M=P.getBoundingClientRect)===null||M===void 0?void 0:M.call(P),N=e.toValue(t).getBoundingClientRect(),U={x:k.clientX-(P?N.left-_.left+P.scrollLeft:N.left),y:k.clientY-(P?N.top-_.top+P.scrollTop:N.top)};d?.(U,k)!==!1&&(b.value=U,E(k))},R=k=>{if(e.toValue(o.disabled)||!v(k)||!b.value)return;const M=e.toValue(h),P=e.toValue(t).getBoundingClientRect();let{x:_,y:N}=m.value;(g==="x"||g==="both")&&(_=k.clientX-b.value.x,M&&(_=Math.min(Math.max(0,_),M.scrollWidth-P.width))),(g==="y"||g==="both")&&(N=k.clientY-b.value.y,M&&(N=Math.min(Math.max(0,N),M.scrollHeight-P.height))),m.value={x:_,y:N},i?.(m.value,k),E(k)},D=k=>{e.toValue(o.disabled)||!v(k)||b.value&&(b.value=void 0,c?.(m.value,k),E(k))};if(ct){const k=()=>{var M;return{capture:(M=o.capture)!==null&&M!==void 0?M:!0,passive:!e.toValue(r)}};J(C,"pointerdown",V,k),J(w,"pointermove",R,k),J(w,"pointerup",D,k)}return{...ho(m),position:m,isDragging:e.computed(()=>!!b.value),style:e.computed(()=>`left:${m.value.x}px;top:${m.value.y}px;`)}}function $e(t,o,n={}){const{window:a=se,...r}=n;let s;const l=ft(()=>a&&"ResizeObserver"in a),i=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const f=e.toValue(t);return Array.isArray(f)?f.map(g=>G(g)):[G(f)]}),f=>{if(i(),l.value&&a){s=new ResizeObserver(o);for(const g of f)g&&s.observe(g,r)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Ae(d),{isSupported:l,stop:d}}function te(t,o={}){const{reset:n=!0,windowResize:a=!0,windowScroll:r=!0,immediate:s=!0,updateTiming:l="sync"}=o,i=e.shallowRef(0),c=e.shallowRef(0),d=e.shallowRef(0),f=e.shallowRef(0),g=e.shallowRef(0),w=e.shallowRef(0),h=e.shallowRef(0),C=e.shallowRef(0);function x(){const b=G(t);if(!b){n&&(i.value=0,c.value=0,d.value=0,f.value=0,g.value=0,w.value=0,h.value=0,C.value=0);return}const v=b.getBoundingClientRect();i.value=v.height,c.value=v.bottom,d.value=v.left,f.value=v.right,g.value=v.top,w.value=v.width,h.value=v.x,C.value=v.y}function m(){l==="sync"?x():l==="next-frame"&&requestAnimationFrame(()=>x())}return $e(t,m),e.watch(()=>G(t),b=>!b&&m()),ut(t,m,{attributeFilter:["style","class"]}),r&&J("scroll",m,{capture:!0,passive:!0}),a&&J("resize",m,{passive:!0}),bo(()=>{s&&m()}),{height:i,bottom:c,left:d,right:f,top:g,width:w,x:h,y:C,update:m}}function ze(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const _e=new WeakMap;function yo(t,o=!1){const n=e.shallowRef(o);let a="";e.watch(fo(t),l=>{const i=ze(e.toValue(l));if(i){const c=i;if(_e.get(c)||_e.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ze(e.toValue(t));!l||n.value||(l.style.overflow="hidden",n.value=!0)},s=()=>{const l=ze(e.toValue(t));!l||!n.value||(l.style.overflow=a,_e.delete(l),n.value=!1)};return Ae(s),e.computed({get(){return n.value},set(l){l?r():s()}})}const vo=t=>{const o=new DOMParser().parseFromString(t,"text/html");return Array.from(o.body.childNodes).some(n=>n.nodeType===1)},ko=(t=8)=>Array.from({length:t},()=>Math.floor(Math.random()*16).toString(16)).join(""),Eo=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Co=["innerHTML"],Io={key:2},Vo=e.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean,default:!1},debounce:{default:300}},setup(t,{expose:o}){const n=e.useTemplateRef("cell"),a=t.store.getCellData(t.colIndex,t.rowIndex),r=e.ref(""),s=e.ref(!1),l=t.store.columns[t.colIndex],i=t.store.rows[t.rowIndex],c=l.align||"center",d=l.width||"40ch",f=e.computed(()=>t.store.getCellDisplayValue(t.colIndex,t.rowIndex)),g=e.computed(()=>typeof f.value=="string"?vo(f.value):!1),w=e.computed(()=>({textAlign:c,width:d,fontWeight:s.value?"bold":"inherit",paddingLeft:t.store.getIndent(t.colIndex,t.store.display[t.rowIndex]?.indent)})),h=e.computed(()=>({"sticky-column":t.pinned,"cell-modified":s.value})),C=()=>{m(),x()},x=()=>{const{left:D,bottom:k,width:M,height:P}=te(n);l.mask,l.modalComponent&&t.store.$patch(_=>{_.modal.visible=!0,_.modal.colIndex=t.colIndex,_.modal.rowIndex=t.rowIndex,_.modal.left=D,_.modal.bottom=k,_.modal.width=M,_.modal.height=P,_.modal.cell=n.value,typeof l.modalComponent=="function"?_.modal.component=l.modalComponent({table:_.table,row:i,column:l}):_.modal.component=l.modalComponent,_.modal.componentProps=l.modalComponentExtraProps})};if(t.addNavigation){let D={...pe,"keydown.f2":x,"keydown.alt.up":x,"keydown.alt.down":x,"keydown.alt.left":x,"keydown.alt.right":x};typeof t.addNavigation=="object"&&(D={...D,...t.addNavigation}),Te([{selectors:n,handlers:D}])}const m=()=>{if(n.value&&l.edit){const D=window.getSelection();if(D)try{const k=document.createRange();k.selectNodeContents&&(k.selectNodeContents(n.value),D.removeAllRanges(),D.addRange(k))}catch{}}},b=()=>{n.value&&(r.value=n.value.textContent,m())},v=()=>{try{const D=window.getSelection();if(D&&D.rangeCount>0&&n.value){const k=D.getRangeAt(0),M=k.cloneRange();if(M.selectNodeContents&&M.setEnd)return M.selectNodeContents(n.value),M.setEnd(k.endContainer,k.endOffset),M.toString().length}}catch{}return 0},E=D=>{if(n.value)try{const k=window.getSelection();if(!k)return;let M=0;const P=document.createTreeWalker?document.createTreeWalker(n.value,NodeFilter.SHOW_TEXT,null):null;if(!P)return;let _,N=null;for(;_=P.nextNode();){const U=_,Z=M+U.textContent.length;if(D<=Z&&(N=document.createRange(),N.setStart&&N.setEnd)){N.setStart(U,D-M),N.setEnd(U,D-M);break}M=Z}N&&k.removeAllRanges&&k.addRange&&(k.removeAllRanges(),k.addRange(N))}catch{}},V=D=>{if(!l.edit)return;const k=D.target;if(k.textContent===r.value)return;const M=v();r.value=k.textContent,l.format?(s.value=k.textContent!==t.store.getFormattedValue(t.colIndex,t.rowIndex,a),t.store.setCellText(t.colIndex,t.rowIndex,k.textContent)):(s.value=k.textContent!==a,t.store.setCellData(t.colIndex,t.rowIndex,k.textContent)),e.nextTick().then(()=>{E(M)})},R=go(V,t.debounce);return o({currentData:r}),(D,k)=>(e.openBlock(),e.createElementBlock("td",{ref:"cell","data-colindex":t.colIndex,"data-rowindex":t.rowIndex,"data-editable":e.unref(l).edit,contenteditable:e.unref(l).edit,tabindex:t.tabIndex,spellcheck:!1,style:e.normalizeStyle(w.value),class:e.normalizeClass(["atable-cell",h.value]),onFocus:b,onPaste:V,onInput:k[0]||(k[0]=(...M)=>e.unref(R)&&e.unref(R)(...M)),onClick:C},[e.unref(l).cellComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l).cellComponent),e.mergeProps({key:0,value:f.value},e.unref(l).cellComponentProps),null,16,["value"])):g.value?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:f.value},null,8,Co)):(e.openBlock(),e.createElementBlock("span",Io,e.toDisplayString(f.value),1))],46,Eo))}}),Do=["tabindex"],Bo=["tabindex"],So=["colspan"],Mo=e.defineComponent({__name:"AExpansionRow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:()=>pe}},setup(t){const o=e.useTemplateRef("rowEl"),n=e.computed(()=>t.store.display[t.rowIndex].expanded?"▼":"►");if(t.addNavigation){const a={"keydown.control.g":r=>{r.stopPropagation(),r.preventDefault(),t.store.toggleRowExpand(t.rowIndex)}};typeof t.addNavigation=="object"&&Object.assign(a,t.addNavigation),Te([{selectors:o,handlers:a}])}return(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("tr",e.mergeProps(a.$attrs,{ref:"rowEl",tabindex:t.tabIndex,class:"expandable-row"}),[e.createElementVNode("td",{tabIndex:-1,class:"row-index",onClick:r[0]||(r[0]=s=>t.store.toggleRowExpand(t.rowIndex))},e.toDisplayString(n.value),1),e.renderSlot(a.$slots,"row",{},void 0,!0)],16,Do),t.store.display[t.rowIndex].expanded?(e.openBlock(),e.createElementBlock("tr",{key:0,ref:"rowExpanded",tabindex:t.tabIndex,class:"expanded-row"},[e.createElementVNode("td",{tabIndex:-1,colspan:t.store.columns.length+1,class:"expanded-row-content"},[e.renderSlot(a.$slots,"content",{},void 0,!0)],8,So)],8,Bo)):e.createCommentVNode("",!0)],64))}}),Q=(t,o)=>{const n=t.__vccOpts||t;for(const[a,r]of o)n[a]=r;return n},To=Q(Mo,[["__scopeId","data-v-a42297c7"]]),Ao=["colspan"],No={ref:"container",class:"gantt-container"},$o=["data-rowindex","data-colindex"],zo={key:2,class:"gantt-label"},_o=["x1","y1","x2","y2"],Ro=e.defineComponent({__name:"AGanttCell",props:{store:{},columnsCount:{},rowIndex:{},colIndex:{},start:{default:0},end:{default:0},colspan:{default:1},label:{default:""},color:{default:"#cccccc"}},emits:["connection:create"],setup(t,{expose:o,emit:n}){e.useCssVars(B=>({v6d722296:r.value,v260b36f8:B.colspan}));const a=n,r=e.ref(t.color.length>=6?t.color:"#cccccc"),s=`gantt-bar-row-${t.rowIndex}-col-${t.colIndex}`,l=e.useTemplateRef("container"),i=e.useTemplateRef("bar"),c=e.useTemplateRef("leftResizeHandle"),d=e.useTemplateRef("rightResizeHandle"),f=e.useTemplateRef("leftConnectionHandle"),g=e.useTemplateRef("rightConnectionHandle"),{width:w}=te(l),{left:h,right:C}=te(i),x=e.ref(t.start),m=e.ref(t.end||x.value+t.colspan),b=e.ref(!1),v=e.ref(!1),E=e.ref(!1),V=e.ref(!1),R=e.ref(!1),D=e.ref({startX:0,startY:0,endX:0,endY:0}),k=e.computed(()=>xe.value||U.value||Z.value),M=e.computed(()=>t.colspan>0?w.value/t.colspan:0),P=e.computed(()=>{const B=x.value/t.colspan*100,S=m.value/t.colspan*100;return{left:`${B}%`,width:`${S-B}%`,backgroundColor:r.value}}),_=e.computed(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",pointerEvents:"none",zIndex:1e3})),N=e.ref({startX:0,startPos:0}),{isDragging:U}=Ne(c,{axis:"x",onStart:()=>fe(h.value,x.value),onMove:({x:B})=>Ye(B),onEnd:({x:B})=>Xe(B)}),{isDragging:Z}=Ne(d,{axis:"x",onStart:()=>fe(C.value,m.value),onMove:({x:B})=>ye(B),onEnd:({x:B})=>Ke(B)}),{isDragging:xe}=Ne(i,{exact:!0,axis:"x",onStart:()=>fe(h.value,x.value),onMove:({x:B})=>ve(B),onEnd:({x:B})=>Je(B)});e.onMounted(()=>{Qe()}),e.onUnmounted(()=>{Ze()});function fe(B,S){i.value&&(i.value.style.transition="none"),N.value={startX:B,startPos:S}}function Ye(B){if(!U.value||!i.value)return;const S=(B-N.value.startX)/M.value,$=Math.max(0,Math.min(m.value-1,N.value.startPos+S));i.value.style.left=`${$/t.colspan*100}%`,i.value.style.width=`${(m.value-$)/t.colspan*100}%`}function Xe(B){if(!i.value)return;const S=B-N.value.startX,$=Math.round(S/M.value),L=x.value,F=Math.max(0,Math.min(m.value-1,N.value.startPos+$));x.value=F,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"resize",edge:"start",oldStart:L,newStart:F,end:m.value,delta:$,oldColspan:m.value-L,newColspan:m.value-F})}function ye(B){if(!Z.value||!i.value)return;const S=(B-N.value.startX)/M.value,$=Math.max(x.value+1,Math.min(t.columnsCount,N.value.startPos+S));i.value.style.width=`${($-x.value)/t.colspan*100}%`}function Ke(B){if(!i.value)return;const S=B-N.value.startX,$=Math.round(S/M.value),L=m.value,F=Math.max(x.value+1,Math.min(t.columnsCount,N.value.startPos+$));m.value=F,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"resize",edge:"end",oldEnd:L,newEnd:F,start:x.value,delta:$,oldColspan:L-x.value,newColspan:F-x.value})}function ve(B){if(!xe.value||!i.value)return;const S=(B-N.value.startX)/M.value,$=m.value-x.value,L=Math.max(0,Math.min(N.value.startPos+S,t.columnsCount-$));i.value.style.left=`${L/t.colspan*100}%`}function Je(B){if(!i.value)return;const S=B-N.value.startX,$=Math.round(S/M.value),L=m.value-x.value,F=x.value,u=m.value;let p=N.value.startPos+$,y=p+L;p<0?(p=0,y=L):y>t.columnsCount&&(y=t.columnsCount,p=y-L),x.value=p,m.value=y,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"bar",oldStart:F,oldEnd:u,newStart:p,newEnd:y,delta:$,colspan:y-p})}function Qe(){const{x:B,y:S}=te(i),{x:$,y:L}=te(f),{x:F,y:u}=te(g);t.store.registerGanttBar({id:s,rowIndex:t.rowIndex,colIndex:t.colIndex,startIndex:x,endIndex:m,color:r,label:t.label,position:{x:B,y:S}}),t.store.isDependencyGraphEnabled&&(t.store.registerConnectionHandle({id:`${s}-connection-left`,rowIndex:t.rowIndex,colIndex:t.colIndex,side:"left",position:{x:$,y:L},visible:b,barId:s}),t.store.registerConnectionHandle({id:`${s}-connection-right`,rowIndex:t.rowIndex,colIndex:t.colIndex,side:"right",position:{x:F,y:u},visible:v,barId:s}))}function Ze(){t.store.unregisterGanttBar(s),t.store.isDependencyGraphEnabled&&(t.store.unregisterConnectionHandle(`${s}-connection-left`),t.store.unregisterConnectionHandle(`${s}-connection-right`))}function et(){t.store.isDependencyGraphEnabled&&(b.value=!0,v.value=!0)}function ke(){!E.value&&!V.value&&(b.value=!1,v.value=!1)}function Ee(B,S){S.preventDefault(),S.stopPropagation(),R.value=!0,B==="left"?E.value=!0:V.value=!0;const $=B==="left"?f.value:g.value;if($){const u=$.getBoundingClientRect(),p=u.left+u.width/2,y=u.top+u.height/2;D.value={startX:p,startY:y,endX:p,endY:y}}const L=u=>{D.value.endX=u.clientX,D.value.endY=u.clientY},F=u=>{Ce(u,B),Ie(L,F)};document.addEventListener("mousemove",L),document.addEventListener("mouseup",F)}function Ce(B,S){const $=document.elementFromPoint(B.clientX,B.clientY)?.closest(".connection-handle");if($&&$!==(S==="left"?f.value:g.value)){const L=$.closest(".gantt-bar");if(L){const F=parseInt(L.getAttribute("data-rowindex")||"0"),u=parseInt(L.getAttribute("data-colindex")||"0"),p=$.classList.contains("left-connection-handle")?"left":"right",y=`gantt-bar-row-${F}-col-${u}`,A=t.store.createConnection(`${s}-connection-${S}`,`${y}-connection-${p}`);A&&a("connection:create",A)}}}function Ie(B,S){R.value=!1,E.value=!1,V.value=!1,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",S),i.value?.matches(":hover")||ke()}return o({barStyle:P,cleanupConnectionDrag:Ie,currentEnd:m,handleConnectionDrop:Ce,isLeftConnectionDragging:E,isLeftConnectionVisible:b,isRightConnectionDragging:V,isRightConnectionVisible:v,showDragPreview:R}),(B,S)=>(e.openBlock(),e.createElementBlock("td",{class:"aganttcell",colspan:t.colspan},[e.createElementVNode("div",No,[e.createElementVNode("div",{ref:"bar","data-rowindex":t.rowIndex,"data-colindex":t.colIndex,class:e.normalizeClass(["gantt-bar",{"is-dragging":k.value}]),style:e.normalizeStyle(P.value),onMouseenter:et,onMouseleave:ke},[t.store.isDependencyGraphEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"leftConnectionHandle",class:e.normalizeClass(["connection-handle left-connection-handle",{visible:b.value,"is-dragging":E.value}]),onMousedown:S[0]||(S[0]=e.withModifiers($=>Ee("left",$),["stop"]))},[...S[2]||(S[2]=[e.createElementVNode("div",{class:"connection-dot"},null,-1)])],34)):e.createCommentVNode("",!0),t.store.isDependencyGraphEnabled?(e.openBlock(),e.createElementBlock("div",{key:1,ref:"rightConnectionHandle",class:e.normalizeClass(["connection-handle right-connection-handle",{visible:v.value,"is-dragging":V.value}]),onMousedown:S[1]||(S[1]=e.withModifiers($=>Ee("right",$),["stop"]))},[...S[3]||(S[3]=[e.createElementVNode("div",{class:"connection-dot"},null,-1)])],34)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"leftResizeHandle",class:e.normalizeClass(["resize-handle left-resize-handle",{"is-dragging":e.unref(U)}])},[...S[4]||(S[4]=[e.createElementVNode("div",{class:"handle-grip"},null,-1),e.createElementVNode("div",{class:"vertical-indicator left-indicator"},null,-1)])],2),t.label?(e.openBlock(),e.createElementBlock("label",zo,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"rightResizeHandle",class:e.normalizeClass(["resize-handle right-resize-handle",{"is-dragging":e.unref(Z)}])},[...S[5]||(S[5]=[e.createElementVNode("div",{class:"handle-grip"},null,-1),e.createElementVNode("div",{class:"vertical-indicator right-indicator"},null,-1)])],2)],46,$o)],512),t.store.isDependencyGraphEnabled&&R.value?(e.openBlock(),e.createElementBlock("svg",{key:0,style:e.normalizeStyle(_.value)},[e.createElementVNode("line",{x1:D.value.startX,y1:D.value.startY,x2:D.value.endX,y2:D.value.endY,stroke:"#2196f3","stroke-width":"2","stroke-dasharray":"5,5"},null,8,_o)],4)):e.createCommentVNode("",!0)],8,Ao))}}),Lo=Q(Ro,[["__scopeId","data-v-8917a8a3"]]),Po=["tabindex"],Oo=e.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},setup(t){const o=e.useTemplateRef("rowEl"),n=e.computed(()=>t.store.isRowVisible(t.rowIndex)),a=e.computed(()=>t.store.getRowExpandSymbol(t.rowIndex));if(t.addNavigation){let r=pe;typeof t.addNavigation=="object"&&(r={...r,...t.addNavigation}),Te([{selectors:o,handlers:r}])}return(r,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("tr",{ref:"rowEl",tabindex:t.tabIndex,class:"atable-row"},[t.store.config.view!=="uncounted"?e.renderSlot(r.$slots,"index",{key:0},()=>[t.store.config.view==="list"?(e.openBlock(),e.createElementBlock("td",{key:0,tabIndex:-1,class:e.normalizeClass(["list-index",t.store.hasPinnedColumns?"sticky-index":""])},e.toDisplayString(t.rowIndex+1),3)):t.store.isTreeView?(e.openBlock(),e.createElementBlock("td",{key:1,tabIndex:-1,class:e.normalizeClass(["tree-index",t.store.hasPinnedColumns?"sticky-index":""]),onClick:s[0]||(s[0]=l=>t.store.toggleRowExpand(t.rowIndex))},e.toDisplayString(a.value),3)):e.createCommentVNode("",!0)],!0):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default",{},void 0,!0)],8,Po)),[[e.vShow,n.value]])}}),mt=Q(Oo,[["__scopeId","data-v-0fa91f83"]]),Re=new WeakMap,Fo={mounted(t,o){const n=!o.modifiers.bubble;let a;if(typeof o.value=="function")a=dt(t,o.value,{capture:n});else{const[r,s]=o.value;a=dt(t,r,Object.assign({capture:n},s))}Re.set(t,a)},unmounted(t){const o=Re.get(t);o&&typeof o=="function"?o():o?.stop(),Re.delete(t)}},Ho={mounted(t,o){typeof o.value=="function"?$e(t,o.value):$e(t,...o.value)}};function Uo(){let t=!1;const o=e.shallowRef(!1);return(n,a)=>{if(o.value=a.value,t)return;t=!0;const r=yo(n,a.value);e.watch(o,s=>r.value=s)}}Uo();const Go={class:"gantt-connection-overlay"},jo={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},Wo=["d","stroke-width","onDblclick"],qo=["id","d","stroke","stroke-width","onDblclick"],Yo=.25,he=16,Xo=e.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(t,{emit:o}){const n=o,a=e.computed(()=>t.store.connectionPaths.filter(l=>{const i=t.store.ganttBars.find(d=>d.id===l.from.barId),c=t.store.ganttBars.find(d=>d.id===l.to.barId);return i&&c})),r=l=>{const i=t.store.connectionHandles.find(k=>k.barId===l.from.barId&&k.side===l.from.side),c=t.store.connectionHandles.find(k=>k.barId===l.to.barId&&k.side===l.to.side);if(!i||!c)return"";const d=i.position.x+he/2,f=i.position.y+he/2,g=c.position.x+he/2,w=c.position.y+he/2,h=Math.abs(g-d),C=Math.max(h*Yo,50),x=d+(l.from.side==="left"?-C:C),m=g+(l.to.side==="left"?-C:C),b={x:.5*d+.5*x,y:.5*f+.5*f},v={x:.5*x+.5*m,y:.5*f+.5*w},E={x:.5*m+.5*g,y:.5*w+.5*w},V={x:.5*b.x+.5*v.x,y:.5*b.y+.5*v.y},R={x:.5*v.x+.5*E.x,y:.5*v.y+.5*E.y},D={x:.5*V.x+.5*R.x,y:.5*V.y+.5*R.y};return`M ${d} ${f} Q ${x} ${f}, ${D.x} ${D.y} Q ${m} ${w}, ${g} ${w}`},s=l=>{t.store.deleteConnection(l.id)&&n("connection:delete",l)};return(l,i)=>(e.openBlock(),e.createElementBlock("div",Go,[(e.openBlock(),e.createElementBlock("svg",jo,[i[0]||(i[0]=e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),e.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[e.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("path",{key:`${c.id}-hitbox`,d:r(c),stroke:"transparent","stroke-width":(c.style?.width||2)+10,fill:"none",class:"connection-hitbox",onDblclick:d=>s(c)},null,40,Wo))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("path",{id:c.id,key:c.id,d:r(c),stroke:c.style?.color||"#666","stroke-width":c.style?.width||2,fill:"none","marker-mid":"url(#arrowhead-marker)",class:"connection-path animated-path",onDblclick:d=>s(c)},null,40,qo))),128))]))]))}}),Ko=Q(Xo,[["__scopeId","data-v-71911260"]]),Jo={class:"column-filter"},Qo={key:2,class:"checkbox-filter"},Zo=["value"],en={key:5,class:"date-range-filter"},tn=e.defineComponent({__name:"ATableColumnFilter",props:{column:{},colIndex:{},store:{}},setup(t){const o=e.ref(""),n=e.reactive({startValue:"",endValue:""}),a=c=>{if(c.filterOptions)return c.filterOptions;const d=new Set;return t.store.rows.forEach(f=>{const g=f[c.name];g!=null&&g!==""&&d.add(g)}),Array.from(d).map(f=>({value:f,label:String(f)}))},r=e.computed(()=>!!(o.value||n.startValue||n.endValue)),s=c=>{!c&&t.column.filterType!=="checkbox"?(t.store.clearFilter(t.colIndex),o.value=""):(o.value=c,t.store.setFilter(t.colIndex,{value:c}))},l=(c,d)=>{c==="start"?n.startValue=d:n.endValue=d,!n.startValue&&!n.endValue?t.store.clearFilter(t.colIndex):t.store.setFilter(t.colIndex,{value:null,startValue:n.startValue,endValue:n.endValue})},i=()=>{o.value="",n.startValue="",n.endValue="",t.store.clearFilter(t.colIndex)};return(c,d)=>(e.openBlock(),e.createElementBlock("div",Jo,[(t.column.filterType||"text")==="text"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"text",class:"filter-input",onInput:d[1]||(d[1]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="number"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f),type:"number",class:"filter-input",onInput:d[3]||(d[3]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="checkbox"?(e.openBlock(),e.createElementBlock("label",Qo,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[4]||(d[4]=f=>o.value=f),type:"checkbox",class:"filter-checkbox",onChange:d[5]||(d[5]=f=>s(o.value))},null,544),[[e.vModelCheckbox,o.value]]),e.createElementVNode("span",null,e.toDisplayString(t.column.label),1)])):t.column.filterType==="select"?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:3,"onUpdate:modelValue":d[6]||(d[6]=f=>o.value=f),class:"filter-select",onChange:d[7]||(d[7]=f=>s(o.value))},[d[15]||(d[15]=e.createElementVNode("option",{value:""},"All",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a(t.column),f=>(e.openBlock(),e.createElementBlock("option",{key:f.value||f,value:f.value||f},e.toDisplayString(f.label||f),9,Zo))),128))],544)),[[e.vModelSelect,o.value]]):t.column.filterType==="date"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:4,"onUpdate:modelValue":d[8]||(d[8]=f=>o.value=f),type:"date",class:"filter-input",onChange:d[9]||(d[9]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="dateRange"?(e.openBlock(),e.createElementBlock("div",en,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[10]||(d[10]=f=>n.startValue=f),type:"date",class:"filter-input",onChange:d[11]||(d[11]=f=>l("start",n.startValue))},null,544),[[e.vModelText,n.startValue]]),d[16]||(d[16]=e.createElementVNode("span",{class:"date-separator"},"-",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[12]||(d[12]=f=>n.endValue=f),type:"date",class:"filter-input",onChange:d[13]||(d[13]=f=>l("end",n.endValue))},null,544),[[e.vModelText,n.endValue]])])):t.column.filterType==="component"&&t.column.filterComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.column.filterComponent),{key:6,value:o.value,column:t.column,colIndex:t.colIndex,store:t.store,"onUpdate:value":d[14]||(d[14]=f=>s(f))},null,40,["value","column","colIndex","store"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("button",{key:7,onClick:i,class:"clear-btn",title:"Clear"},"×")):e.createCommentVNode("",!0)]))}}),on=Q(tn,[["__scopeId","data-v-8487462d"]]),nn={key:0},an={class:"atable-header-row",tabindex:"-1"},ln=["data-colindex","onClick"],rn={key:0,class:"atable-filters-row"},pt=e.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(t){const o=e.computed(()=>t.columns.filter(r=>r.filterable)),n=r=>t.store.sortByColumn(r),a=r=>{for(const s of r){if(s.borderBoxSize.length===0)continue;const l=s.borderBoxSize[0].inlineSize,i=Number(s.target.dataset.colindex),c=t.store.columns[i]?.width;typeof c=="number"&&c!==l&&t.store.resizeColumn(i,l)}};return(r,s)=>t.columns.length?(e.openBlock(),e.createElementBlock("thead",nn,[e.createElementVNode("tr",an,[t.store.zeroColumn?(e.openBlock(),e.createElementBlock("th",{key:0,id:"header-index",class:e.normalizeClass([[t.store.hasPinnedColumns?"sticky-index":"",t.store.isTreeView?"tree-index":"",t.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(l,i)=>e.withDirectives((e.openBlock(),e.createElementBlock("th",{key:l.name,"data-colindex":i,tabindex:"-1",style:e.normalizeStyle(t.store.getHeaderCellStyle(l)),class:e.normalizeClass(`${l.pinned?"sticky-column":""} ${l.sortable===!1?"":"cursor-pointer"}`),onClick:c=>l.sortable!==!1?n(i):void 0},[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.label||String.fromCharCode(i+97).toUpperCase()),1)])],14,ln)),[[e.unref(Ho),a]])),128))]),o.value.length>0?(e.openBlock(),e.createElementBlock("tr",rn,[t.store.zeroColumn?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass([[t.store.hasPinnedColumns?"sticky-index":"",t.store.isTreeView?"tree-index":"",t.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columns,(l,i)=>(e.openBlock(),e.createElementBlock("th",{key:`filter-${l.name}`,class:e.normalizeClass(`${l.pinned?"sticky-column":""}`),style:e.normalizeStyle(t.store.getHeaderCellStyle(l))},[l.filterable?(e.openBlock(),e.createBlock(on,{key:0,column:l,"col-index":i,store:t.store},null,8,["column","col-index","store"])):e.createCommentVNode("",!0)],6))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}),gt=e.defineComponent({__name:"ATableModal",props:{store:{}},setup(t){const o=e.useTemplateRef("amodal"),{width:n,height:a}=te(o),r=e.computed(()=>{if(!(t.store.modal.height&&t.store.modal.width&&t.store.modal.left&&t.store.modal.bottom))return;const s=t.store.modal.cell?.closest("table");if(!s)return{};const l=s.offsetHeight||0,i=s.offsetWidth||0;let c=t.store.modal.cell?.offsetTop||0;const d=s.querySelector("thead")?.offsetHeight||0;c+=d,c=c+a.value<l?c:c-(a.value+t.store.modal.height);let f=t.store.modal.cell?.offsetLeft||0;return f=f+n.value<=i?f:f-(n.value-t.store.modal.width),{left:`${f}px`,top:`${c}px`}});return(s,l)=>(e.openBlock(),e.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",style:e.normalizeStyle(r.value),onClick:l[0]||(l[0]=e.withModifiers(()=>{},["stop"])),onInput:l[1]||(l[1]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(s.$slots,"default")],36))}}),sn=t=>{const o=t.id||ko();return Ft.defineStore(`table-${o}`,()=>{const n=()=>{const u=[Object.assign({},{rowModified:!1})],p=new Set;for(let I=0;I<r.value.length;I++){const T=r.value[I];T.parent!==null&&T.parent!==void 0&&p.add(T.parent)}const y=I=>r.value[I]?.gantt!==void 0,A=I=>{for(let T=0;T<r.value.length;T++)if(r.value[T].parent===I&&(y(T)||A(T)))return!0;return!1},z=I=>{const T=s.value,H=T.view==="tree"||T.view==="tree-gantt"?T.defaultTreeExpansion:void 0;if(!H)return!0;switch(H){case"root":return!1;case"branch":return A(I);case"leaf":return!0;default:return!0}};for(let I=0;I<r.value.length;I++){const T=r.value[I],H=T.parent===null||T.parent===void 0,j=p.has(I);u[I]={childrenOpen:z(I),expanded:!1,indent:T.indent||0,isParent:j,isRoot:H,rowModified:!1,open:H,parent:T.parent}}return u},a=e.ref(t.columns),r=e.ref(t.rows),s=e.ref(t.config||{}),l=e.ref({}),i=e.ref({}),c=e.computed(()=>{const u={};for(const[p,y]of a.value.entries())for(const[A,z]of r.value.entries())u[`${p}:${A}`]=z[y.name];return u}),d=e.computed({get:()=>{const u=n();for(let p=0;p<u.length;p++)l.value[p]&&(u[p].rowModified=l.value[p]),i.value[p]&&(i.value[p].childrenOpen!==void 0&&(u[p].childrenOpen=i.value[p].childrenOpen),i.value[p].expanded!==void 0&&(u[p].expanded=i.value[p].expanded));if(E.value){const p=(y,A)=>{const z=A[y];if(z.isRoot||z.parent===null||z.parent===void 0)return!0;const I=z.parent;return I<0||I>=A.length?!1:(A[I].childrenOpen||!1)&&p(I,A)};for(let y=0;y<u.length;y++)u[y].isRoot||(u[y].open=p(y,u))}return u},set:u=>{JSON.stringify(u)!==JSON.stringify(d.value)&&(d.value=u)}}),f=e.ref(t.modal||{visible:!1}),g=e.ref({}),w=e.ref([]),h=e.ref([]),C=e.ref([]),x=e.ref({column:null,direction:null}),m=e.ref({}),b=e.computed(()=>a.value.some(u=>u.pinned)),v=e.computed(()=>s.value.view==="gantt"||s.value.view==="tree-gantt"),E=e.computed(()=>s.value.view==="tree"||s.value.view==="tree-gantt"),V=e.computed(()=>{const u=s.value;return u.view==="gantt"||u.view==="tree-gantt"?u.dependencyGraph!==!1:!0}),R=e.computed(()=>`${Math.ceil(r.value.length/100+1)}ch`),D=e.computed(()=>s.value.view?["list","tree","tree-gantt","list-expansion"].includes(s.value.view):!1),k=e.computed(()=>{let u=r.value.map((p,y)=>({...p,originalIndex:y}));if(Object.entries(m.value).forEach(([p,y])=>{const A=parseInt(p),z=a.value[A];!z||!(y.value||y.startValue||y.endValue||z.filterType==="checkbox"&&y.value!==void 0)||(u=u.filter(I=>{const T=I[z.name];return F(T,y,z)}))}),x.value.column!==null&&x.value.direction){const p=a.value[x.value.column],y=x.value.direction;u.sort((A,z)=>{let I=A[p.name],T=z[p.name];I==null&&(I=""),T==null&&(T="");const H=Number(I),j=Number(T);if(!isNaN(H)&&!isNaN(j)&&I!==""&&T!=="")return y==="asc"?H-j:j-H;{const Ve=String(I).toLowerCase(),Ot=String(T).toLowerCase();return y==="asc"?Ve.localeCompare(Ot):Ot.localeCompare(Ve)}})}return u}),M=(u,p)=>c.value[`${u}:${p}`],P=(u,p,y)=>{const A=`${u}:${p}`,z=a.value[u];c.value[A]!==y&&(l.value[p]=!0),c.value[A]=y,r.value[p]={...r.value[p],[z.name]:y}},_=u=>{r.value=u},N=(u,p,y)=>{const A=`${u}:${p}`;c.value[A]!==y&&(l.value[p]=!0,g.value[A]=y)},U=u=>{const p=a.value.indexOf(u)===a.value.length-1,y=s.value.fullWidth?u.resizable&&!p:u.resizable;return{width:u.width||"40ch",textAlign:u.align||"center",...y&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},Z=(u,p)=>{if(u<0||u>=a.value.length)return;const y=Math.max(p,40);a.value[u]={...a.value[u],width:`${y}px`}},xe=u=>{const p=r.value[u];return v.value&&p.gantt!==void 0},fe=u=>!E.value||d.value[u].isRoot||d.value[u].open,Ye=u=>!E.value&&s.value.view!=="list-expansion"?"":E.value&&(d.value[u].isRoot||d.value[u].isParent)?d.value[u].childrenOpen?"▼":"►":s.value.view==="list-expansion"?d.value[u].expanded?"▼":"►":"",Xe=u=>{if(E.value){const p=i.value[u]||{},y=!(p.childrenOpen??d.value[u].childrenOpen);i.value[u]={...p,childrenOpen:y},y||ye(u)}else if(s.value.view==="list-expansion"){const p=i.value[u]||{},y=p.expanded??d.value[u].expanded;i.value[u]={...p,expanded:!y}}},ye=u=>{for(let p=0;p<r.value.length;p++)if(d.value[p].parent===u){const y=i.value[p]||{};i.value[p]={...y,childrenOpen:!1},ye(p)}},Ke=(u,p)=>{const y=M(u,p);return ve(u,p,y)},ve=(u,p,y)=>{const A=a.value[u],z=r.value[p],I=A.format;return I?typeof I=="function"?I(y,{table:c.value,row:z,column:A}):typeof I=="string"?Function(`"use strict";return (${I})`)()(y,{table:c.value,row:z,column:A}):y:y},Je=u=>{u.target instanceof Node&&f.value.parent?.contains(u.target)||f.value.visible&&(f.value.visible=!1)},Qe=(u,p)=>p&&u===0&&p>0?`${p}ch`:"inherit",Ze=u=>{const p=r.value[u.rowIndex]?.gantt;p&&(u.type==="resize"?u.edge==="start"?(p.startIndex=u.newStart,p.endIndex=u.end,p.colspan=p.endIndex-p.startIndex):u.edge==="end"&&(p.startIndex=u.start,p.endIndex=u.newEnd,p.colspan=p.endIndex-p.startIndex):u.type==="bar"&&(p.startIndex=u.newStart,p.endIndex=u.newEnd,p.colspan=p.endIndex-p.startIndex))},et=u=>{const p=w.value.findIndex(y=>y.id===u.id);p>=0?w.value[p]=u:w.value.push(u)},ke=u=>{const p=w.value.findIndex(y=>y.id===u);p>=0&&w.value.splice(p,1)},Ee=u=>{const p=h.value.findIndex(y=>y.id===u.id);p>=0?h.value[p]=u:h.value.push(u)},Ce=u=>{const p=h.value.findIndex(y=>y.id===u);p>=0&&h.value.splice(p,1)},Ie=(u,p,y)=>{const A=h.value.find(T=>T.id===u),z=h.value.find(T=>T.id===p);if(!A||!z)return console.warn("Cannot create connection: handle not found"),null;const I={id:`connection-${u}-${p}`,from:{barId:A.barId,side:A.side},to:{barId:z.barId,side:z.side},style:y?.style,label:y?.label};return C.value.push(I),I},B=u=>{const p=C.value.findIndex(y=>y.id===u);return p>=0?(C.value.splice(p,1),!0):!1},S=u=>C.value.filter(p=>p.from.barId===u||p.to.barId===u),$=u=>h.value.filter(p=>p.barId===u),L=u=>{if(a.value[u].sortable===!1)return;let p;x.value.column===u&&x.value.direction==="asc"?p="desc":p="asc",x.value.column=u,x.value.direction=p},F=(u,p,y)=>{const A=y.filterType||"text",z=p.value;if(!z&&A!=="dateRange"&&A!=="checkbox")return!0;switch(A){case"text":{let I="";return typeof u=="object"&&u!==null?I=Object.values(u).join(" "):I=String(u||""),I.toLowerCase().includes(String(z).toLowerCase())}case"number":{const I=Number(u),T=Number(z);return!isNaN(I)&&!isNaN(T)&&I===T}case"select":return u===z;case"checkbox":return z===!0?!!u:!0;case"date":{let I;if(typeof u=="number"){const H=new Date(u),j=new Date().getFullYear();I=new Date(j,H.getMonth(),H.getDate())}else I=new Date(String(u));const T=new Date(String(z));return I.toDateString()===T.toDateString()}case"dateRange":{const I=p.startValue,T=p.endValue;if(!I&&!T)return!0;let H;if(typeof u=="number"){const j=new Date(u),Ve=new Date().getFullYear();H=new Date(Ve,j.getMonth(),j.getDate())}else H=new Date(String(u));return!(I&&H<new Date(String(I))||T&&H>new Date(String(T)))}default:return!0}};return{columns:a,config:s,connectionHandles:h,connectionPaths:C,display:d,filterState:m,ganttBars:w,modal:f,rows:r,sortState:x,table:c,updates:g,filteredRows:k,hasPinnedColumns:b,isGanttView:v,isTreeView:E,isDependencyGraphEnabled:V,numberedRowWidth:R,zeroColumn:D,clearFilter:u=>{delete m.value[u]},closeModal:Je,createConnection:Ie,deleteConnection:B,getCellData:M,getCellDisplayValue:Ke,getConnectionsForBar:S,getFormattedValue:ve,getHandlesForBar:$,getHeaderCellStyle:U,getIndent:Qe,getRowExpandSymbol:Ye,isRowGantt:xe,isRowVisible:fe,registerConnectionHandle:Ee,registerGanttBar:et,resizeColumn:Z,setCellData:P,setCellText:N,setFilter:(u,p)=>{!p.value&&!p.startValue&&!p.endValue?delete m.value[u]:m.value[u]=p},sortByColumn:L,toggleRowExpand:Xe,unregisterConnectionHandle:Ce,unregisterGanttBar:ke,updateGanttBar:Ze,updateRows:_}})()},cn={class:"atable-container",style:{position:"relative"}},dn=e.defineComponent({__name:"ATable",props:e.mergeModels({id:{default:""},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:e.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update"],["update:rows","update:columns"]),setup(t,{expose:o,emit:n}){const a=e.useModel(t,"rows"),r=e.useModel(t,"columns"),s=n,l=e.useTemplateRef("table"),i=sn({columns:r.value,rows:a.value,id:t.id,config:t.config});i.$onAction(({name:h,store:C,args:x,after:m})=>{if(h==="setCellData"||h==="setCellText"){const[b,v,E]=x,V=C.getCellData(b,v);m(()=>{a.value=[...C.rows],s("cellUpdate",{colIndex:b,rowIndex:v,newValue:E,oldValue:V})})}else if(h==="updateGanttBar"){const[b]=x;let v=!1;b.type==="resize"?v=b.oldColspan!==b.newColspan:b.type==="bar"&&(v=b.oldStart!==b.newStart||b.oldEnd!==b.newEnd),v&&m(()=>{s("gantt:drag",b)})}else h==="resizeColumn"&&m(()=>{r.value=[...C.columns],s("columns:update",[...C.columns])})}),e.watch(()=>a.value,h=>{JSON.stringify(h)!==JSON.stringify(i.rows)&&(i.rows=[...h])},{deep:!0}),e.watch(r,h=>{JSON.stringify(h)!==JSON.stringify(i.columns)&&(i.columns=[...h],s("columns:update",[...h]))},{deep:!0}),e.onMounted(()=>{r.value.some(h=>h.pinned)&&(d(),i.isTreeView&&ut(l,d,{childList:!0,subtree:!0}))});const c=e.computed(()=>i.columns.filter(h=>h.pinned).length),d=()=>{const h=l.value,C=h?.rows[0],x=h?.rows[1],m=C?Array.from(C.cells):[];for(const[b,v]of m.entries()){const E=x?.cells[b];E&&(v.style.width=`${E.offsetWidth}px`)}for(const b of h?.rows||[]){let v=0;const E=[];for(const V of b.cells)(V.classList.contains("sticky-column")||V.classList.contains("sticky-index"))&&(V.style.left=`${v}px`,v+=V.offsetWidth,E.push(V));E.length>0&&E[E.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",h=>{if(h.key==="Escape"&&i.modal.visible){i.modal.visible=!1;const C=i.modal.parent;C&&e.nextTick().then(()=>{C.focus()})}});const f=h=>{if(!h.gantt||c.value===0)return i.columns;const C=[];for(let x=0;x<c.value;x++){const m={...i.columns[x]};m.originalIndex=x,C.push(m)}return C.push({...i.columns[c.value],isGantt:!0,colspan:h.gantt?.colspan||i.columns.length-c.value,originalIndex:c.value,width:"auto"}),C},g=h=>{s("connection:event",{type:"create",connection:h})},w=h=>{s("connection:event",{type:"delete",connection:h})};return o({store:i,createConnection:i.createConnection,deleteConnection:i.deleteConnection,getConnectionsForBar:i.getConnectionsForBar,getHandlesForBar:i.getHandlesForBar}),(h,C)=>(e.openBlock(),e.createElementBlock("div",cn,[e.withDirectives((e.openBlock(),e.createElementBlock("table",{ref:"table",class:"atable",style:e.normalizeStyle({width:e.unref(i).config.fullWidth?"100%":"auto"})},[e.renderSlot(h.$slots,"header",{data:e.unref(i)},()=>[e.createVNode(pt,{columns:e.unref(i).columns,store:e.unref(i)},null,8,["columns","store"])],!0),e.createElementVNode("tbody",null,[e.renderSlot(h.$slots,"body",{data:e.unref(i)},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).filteredRows,(x,m)=>(e.openBlock(),e.createBlock(mt,{key:`${x.originalIndex}-${m}`,row:x,rowIndex:x.originalIndex,store:e.unref(i)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(x),(b,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:b.name},[b.isGantt?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.ganttComponent||"AGanttCell"),{key:0,store:e.unref(i),"columns-count":e.unref(i).columns.length-c.value,color:x.gantt?.color,start:x.gantt?.startIndex,end:x.gantt?.endIndex,colspan:b.colspan,pinned:b.pinned,rowIndex:x.originalIndex,colIndex:b.originalIndex??v,style:e.normalizeStyle({textAlign:b?.align||"center",minWidth:b?.width||"40ch",width:e.unref(i).config.fullWidth?"auto":null}),"onConnection:create":g},null,40,["store","columns-count","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.cellComponent||"ACell"),{key:1,store:e.unref(i),pinned:b.pinned,rowIndex:x.originalIndex,colIndex:v,style:e.normalizeStyle({textAlign:b?.align||"center",width:e.unref(i).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),e.renderSlot(h.$slots,"footer",{data:e.unref(i)},void 0,!0),e.renderSlot(h.$slots,"modal",{data:e.unref(i)},()=>[e.withDirectives(e.createVNode(gt,{store:e.unref(i)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i).modal.component),e.mergeProps({key:`${e.unref(i).modal.rowIndex}:${e.unref(i).modal.colIndex}`,"col-index":e.unref(i).modal.colIndex,"row-index":e.unref(i).modal.rowIndex,store:e.unref(i)},e.unref(i).modal.componentProps),null,16,["col-index","row-index","store"]))]),_:1},8,["store"]),[[e.vShow,e.unref(i).modal.visible]])],!0)],4)),[[e.unref(Fo),e.unref(i).closeModal]]),e.unref(i).isGanttView&&e.unref(i).isDependencyGraphEnabled?(e.openBlock(),e.createBlock(Ko,{key:0,store:e.unref(i),"onConnection:delete":w},null,8,["store"])):e.createCommentVNode("",!0)]))}}),fn=Q(dn,[["__scopeId","data-v-c0a0032f"]]),un={},mn={class:"aloading"},pn={class:"aloading-header"};function gn(t,o){return e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("h2",pn,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),o[0]||(o[0]=e.createElementVNode("div",{class:"aloading-bar"},null,-1))])}const hn=Q(un,[["render",gn],["__scopeId","data-v-a930a25b"]]),bn={},wn={class:"aloading"},xn={class:"aloading-header"};function yn(t,o){return e.openBlock(),e.createElementBlock("div",wn,[e.createElementVNode("h2",xn,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),o[0]||(o[0]=e.createElementVNode("div",{class:"aloading-bar"},null,-1))])}const vn=Q(bn,[["render",yn],["__scopeId","data-v-e1165876"]]);function kn(t){t.component("ACell",Vo),t.component("AExpansionRow",To),t.component("AGanttCell",Lo),t.component("ARow",mt),t.component("ATable",fn),t.component("ATableHeader",pt),t.component("ATableLoading",hn),t.component("ATableLoadingBar",vn),t.component("ATableModal",gt)}const En={class:"aform_form-element"},Cn=["for"],In={class:"aform_checkbox-container aform_input-field"},Vn=["id","readonly","required"],Dn=["innerHTML"],Bn=e.defineComponent({__name:"ACheckbox",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:"&nbsp;"})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,a)=>(e.openBlock(),e.createElementBlock("div",En,[e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,Cn),e.createElementVNode("span",In,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),type:"checkbox",class:"aform_checkbox",readonly:t.readOnly,required:t.required},null,8,Vn),[[e.vModelCheckbox,o.value]])]),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Dn),[[e.vShow,t.validation.errorMessage]])]))}}),Y=(t,o)=>{const n=t.__vccOpts||t;for(const[a,r]of o)n[a]=r;return n},ht=Y(Bn,[["__scopeId","data-v-f13fd4d6"]]),bt=e.defineComponent({__name:"AComboBox",props:["event","cellData","tableID"],setup(t){return(o,n)=>{const a=e.resolveComponent("ATableModal");return e.openBlock(),e.createBlock(a,{event:t.event,"cell-data":t.cellData,class:"amodal"},{default:e.withCtx(()=>[...n[0]||(n[0]=[e.createElementVNode("div",null,[e.createElementVNode("input",{type:"text"}),e.createElementVNode("input",{type:"text"}),e.createElementVNode("input",{type:"text"})],-1)])]),_:1},8,["event","cell-data"])}}}),Sn=["id","disabled","required"],Mn=["for"],Tn=["innerHTML"],wt=Y(e.defineComponent({__name:"ADate",props:e.mergeModels({schema:{},label:{default:"Date"},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:"&nbsp;"})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue",{set:r=>new Date(r).toISOString().split("T")[0]}),n=e.useTemplateRef("date"),a=()=>{n.value&&"showPicker"in HTMLInputElement.prototype&&n.value.showPicker()};return(r,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,ref:"date","onUpdate:modelValue":s[0]||(s[0]=l=>o.value=l),type:"date",disabled:t.readOnly,required:t.required,onClick:a},null,8,Sn),[[e.vModelText,o.value]]),e.createElementVNode("label",{for:t.uuid},e.toDisplayString(t.label),9,Mn),e.withDirectives(e.createElementVNode("p",{innerHTML:t.validation.errorMessage},null,8,Tn),[[e.vShow,t.validation.errorMessage]])]))}}),[["__scopeId","data-v-a15ed922"]]);function xt(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}function yt(){const t=new Set,o=s=>{t.delete(s)};return{on:s=>{t.add(s);const l=()=>o(s);return xt(l),{off:l}},off:o,trigger:(...s)=>Promise.all(Array.from(t).map(l=>l(...s))),clear:()=>{t.clear()}}}const vt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const An=Object.prototype.toString,Nn=t=>An.call(t)==="[object Object]",ce=()=>{},$n=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);function zn(...t){if(t.length!==1)return e.toRef(...t);const o=t[0];return typeof o=="function"?e.readonly(e.customRef(()=>({get:o,set:ce}))):e.ref(o)}function Le(t){return Array.isArray(t)?t:[t]}function _n(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const kt=vt?window:void 0,Rn=vt?window.document:void 0;function ae(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function Pe(...t){const o=(a,r,s,l)=>(a.addEventListener(r,s,l),()=>a.removeEventListener(r,s,l)),n=e.computed(()=>{const a=Le(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return _n(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>ae(s)))!==null&&a!==void 0?a:[kt].filter(s=>s!=null),Le(e.toValue(n.value?t[1]:t[0])),Le(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,l],i,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=Nn(l)?{...l}:l,f=a.flatMap(g=>r.flatMap(w=>s.map(h=>o(g,w,h,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Et(t,o,n={}){const{window:a=kt,ignore:r=[],capture:s=!0,detectIframe:l=!1,controls:i=!1}=n;if(!a)return i?{stop:ce,cancel:ce,trigger:ce}:ce;let c=!0;const d=m=>e.toValue(r).some(b=>{if(typeof b=="string")return Array.from(a.document.querySelectorAll(b)).some(v=>v===m.target||m.composedPath().includes(v));{const v=ae(b);return v&&(m.target===v||m.composedPath().includes(v))}});function f(m){const b=e.toValue(m);return b&&b.$.subTree.shapeFlag===16}function g(m,b){const v=e.toValue(m),E=v.$.subTree&&v.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(V=>V.el===b.target||b.composedPath().includes(V.el))}const w=m=>{const b=ae(t);if(m.target!=null&&!(!(b instanceof Element)&&f(t)&&g(t,m))&&!(!b||b===m.target||m.composedPath().includes(b))){if("detail"in m&&m.detail===0&&(c=!d(m)),!c){c=!0;return}o(m)}};let h=!1;const C=[Pe(a,"click",m=>{h||(h=!0,setTimeout(()=>{h=!1},0),w(m))},{passive:!0,capture:s}),Pe(a,"pointerdown",m=>{const b=ae(t);c=!d(m)&&!!(b&&!m.composedPath().includes(b))},{passive:!0}),l&&Pe(a,"blur",m=>{setTimeout(()=>{var b;const v=ae(t);((b=a.document.activeElement)===null||b===void 0?void 0:b.tagName)==="IFRAME"&&!v?.contains(a.document.activeElement)&&o(m)},0)},{passive:!0})].filter(Boolean),x=()=>C.forEach(m=>m());return i?{stop:x,cancel:()=>{c=!1},trigger:m=>{c=!0,w(m),c=!1}}:x}const Ln={multiple:!0,accept:"*",reset:!1,directory:!1};function Pn(t){if(!t)return null;if(t instanceof FileList)return t;const o=new DataTransfer;for(const n of t)o.items.add(n);return o.files}function On(t={}){const{document:o=Rn}=t,n=e.ref(Pn(t.initialFiles)),{on:a,trigger:r}=yt(),{on:s,trigger:l}=yt(),i=e.computed(()=>{var g;const w=(g=ae(t.input))!==null&&g!==void 0?g:o?o.createElement("input"):void 0;return w&&(w.type="file",w.onchange=h=>{n.value=h.target.files,r(n.value)},w.oncancel=()=>{l()}),w}),c=()=>{n.value=null,i.value&&i.value.value&&(i.value.value="",r(null))},d=g=>{const w=i.value;w&&(w.multiple=e.toValue(g.multiple),w.accept=e.toValue(g.accept),w.webkitdirectory=e.toValue(g.directory),$n(g,"capture")&&(w.capture=e.toValue(g.capture)))},f=g=>{const w=i.value;if(!w)return;const h={...Ln,...t,...g};d(h),e.toValue(h.reset)&&c(),w.click()};return e.watchEffect(()=>{d(t)}),{files:e.readonly(n),open:f,reset:c,onCancel:s,onChange:a}}function Oe(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const Fe=new WeakMap;function Fn(t,o=!1){const n=e.shallowRef(o);let a="";e.watch(zn(t),l=>{const i=Oe(e.toValue(l));if(i){const c=i;if(Fe.get(c)||Fe.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Oe(e.toValue(t));!l||n.value||(l.style.overflow="hidden",n.value=!0)},s=()=>{const l=Oe(e.toValue(t));!l||!n.value||(l.style.overflow=a,Fe.delete(l),n.value=!1)};return xt(s),e.computed({get(){return n.value},set(l){l?r():s()}})}const He=new WeakMap,Hn={mounted(t,o){const n=!o.modifiers.bubble;let a;if(typeof o.value=="function")a=Et(t,o.value,{capture:n});else{const[r,s]=o.value;a=Et(t,r,Object.assign({capture:n},s))}He.set(t,a)},unmounted(t){const o=He.get(t);o&&typeof o=="function"?o():o?.stop(),He.delete(t)}};function Un(){let t=!1;const o=e.shallowRef(!1);return(n,a)=>{if(o.value=a.value,t)return;t=!0;const r=Fn(n,a.value);e.watch(o,s=>r.value=s)}}Un();const Gn={class:"input-wrapper"},jn={id:"autocomplete-results",class:"autocomplete-results"},Wn={key:0,class:"loading autocomplete-result"},qn=["onClick"],Ct=Y(e.defineComponent({__name:"ADropdown",props:e.mergeModels({label:{},items:{default:()=>[]},isAsync:{type:Boolean,default:!1},filterFunction:{type:Function,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=e.reactive({activeItemIndex:null,open:!1,loading:!1,results:t.items}),a=()=>i(),r=async()=>{if(n.open=!0,n.activeItemIndex=null,t.filterFunction){t.isAsync&&(n.loading=!0);try{const w=await t.filterFunction(o.value||"");n.results=w||[]}catch{n.results=[]}finally{t.isAsync&&(n.loading=!1)}}else c()},s=w=>{o.value=w,i(w)},l=()=>{n.activeItemIndex=t.isAsync?null:o.value&&t.items?.indexOf(o.value)||null,n.open=!0,n.results=t.isAsync?[]:t.items},i=w=>{n.activeItemIndex=null,n.open=!1,t.items?.includes(w||o.value||"")||(o.value="")},c=()=>{o.value?n.results=t.items?.filter(w=>w.toLowerCase().includes((o.value??"").toLowerCase())):n.results=t.items},d=()=>{const w=n.results?.length||0;if(n.activeItemIndex!=null){const h=isNaN(n.activeItemIndex)?0:n.activeItemIndex;n.activeItemIndex=(h+1)%w}else n.activeItemIndex=0},f=()=>{const w=n.results?.length||0;if(n.activeItemIndex!=null){const h=isNaN(n.activeItemIndex)?0:n.activeItemIndex;h===0?n.activeItemIndex=null:n.activeItemIndex=h-1}else n.activeItemIndex=w-1},g=()=>{if(n.results){const w=n.activeItemIndex||0,h=n.results[w];s(h)}n.activeItemIndex=0};return(w,h)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["autocomplete",{isOpen:n.open}])},[e.createElementVNode("div",Gn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":h[0]||(h[0]=C=>o.value=C),type:"text",onInput:r,onFocus:l,onKeydown:[e.withKeys(d,["down"]),e.withKeys(f,["up"]),e.withKeys(g,["enter"]),e.withKeys(a,["esc"]),e.withKeys(a,["tab"])]},null,544),[[e.vModelText,o.value]]),e.withDirectives(e.createElementVNode("ul",jn,[n.loading?(e.openBlock(),e.createElementBlock("li",Wn,"Loading results...")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.results,(C,x)=>(e.openBlock(),e.createElementBlock("li",{key:C,class:e.normalizeClass(["autocomplete-result",{"is-active":x===n.activeItemIndex}]),onClick:e.withModifiers(m=>s(C),["stop"])},e.toDisplayString(C),11,qn))),128))],512),[[e.vShow,n.open]]),e.createElementVNode("label",null,e.toDisplayString(t.label),1)])],2)),[[e.unref(Hn),a]])}}),[["__scopeId","data-v-31a6db8c"]]);function It(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const Yn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Xn=t=>t!=null,Kn=Object.prototype.toString,Jn=t=>Kn.call(t)==="[object Object]",Qn=()=>{};function be(t){return Array.isArray(t)?t:[t]}function Zn(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const le=Yn?window:void 0;function re(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function de(...t){const o=(a,r,s,l)=>(a.addEventListener(r,s,l),()=>a.removeEventListener(r,s,l)),n=e.computed(()=>{const a=be(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return Zn(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>re(s)))!==null&&a!==void 0?a:[le].filter(s=>s!=null),be(e.toValue(n.value?t[1]:t[0])),be(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,l],i,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=Jn(l)?{...l}:l,f=a.flatMap(g=>r.flatMap(w=>s.map(h=>o(g,w,h,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function ea(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function ta(t){const o=ea();return e.computed(()=>(o.value,!!t()))}function oa(t,o,n={}){const{window:a=le,...r}=n;let s;const l=ta(()=>a&&"MutationObserver"in a),i=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=be(e.toValue(t)).map(re).filter(Xn);return new Set(g)}),g=>{i(),l.value&&g.size&&(s=new MutationObserver(o),g.forEach(w=>s.observe(w,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),i()};return It(f),{isSupported:l,stop:f,takeRecords:d}}function na(t,o,n={}){const{window:a=le,document:r=a?.document,flush:s="sync"}=n;if(!a||!r)return Qn;let l;const i=f=>{l?.(),l=f},c=e.watchEffect(()=>{const f=re(t);if(f){const{stop:g}=oa(r,w=>{w.map(h=>[...h.removedNodes]).flat().some(h=>h===f||h.contains(f))&&o(w)},{window:a,childList:!0,subtree:!0});i(g)}},{flush:s}),d=()=>{c(),i()};return It(d),d}function aa(t={}){var o;const{window:n=le,deep:a=!0,triggerOnRemoval:r=!1}=t,s=(o=t.document)!==null&&o!==void 0?o:n?.document,l=()=>{let d=s?.activeElement;if(a)for(var f;d?.shadowRoot;)d=d==null||(f=d.shadowRoot)===null||f===void 0?void 0:f.activeElement;return d},i=e.shallowRef(),c=()=>{i.value=l()};if(n){const d={capture:!0,passive:!0};de(n,"blur",f=>{f.relatedTarget===null&&c()},d),de(n,"focus",c,d)}return r&&na(i,c,{document:s}),c(),i}const la="focusin",ra="focusout",ia=":focus-within";function sa(t,o={}){const{window:n=le}=o,a=e.computed(()=>re(t)),r=e.shallowRef(!1),s=e.computed(()=>r.value);if(!n||!aa(o).value)return{focused:s};const l={passive:!0};return de(a,la,()=>r.value=!0,l),de(a,ra,()=>{var i,c,d;return r.value=(i=(c=a.value)===null||c===void 0||(d=c.matches)===null||d===void 0?void 0:d.call(c,ia))!==null&&i!==void 0?i:!1},l),{focused:s}}function ca(t,{window:o=le,scrollTarget:n}={}){const a=e.ref(!1),r=()=>{if(!o)return;const s=o.document,l=re(t);if(!l)a.value=!1;else{const i=l.getBoundingClientRect();a.value=i.top<=(o.innerHeight||s.documentElement.clientHeight)&&i.left<=(o.innerWidth||s.documentElement.clientWidth)&&i.bottom>=0&&i.right>=0}};return e.watch(()=>re(t),()=>r(),{immediate:!0,flush:"post"}),o&&de(n||o,"scroll",r,{capture:!1,passive:!0}),a}const X=t=>{let o=ca(t).value;return o=o&&t.offsetHeight>0,o},K=t=>t.tabIndex>=0,Vt=t=>{const o=t.target;return Ue(o)},Ue=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.previousElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.previousElementSibling;n&&(o=n)}return o&&(!K(o)||!X(o))?Ue(o):o},da=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.firstElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.firstElementChild;r&&(n=r)}}return n&&(!K(n)||!X(n))?Ge(n):n},Dt=t=>{const o=t.target;return Ge(o)},Ge=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.nextElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.nextElementSibling;n&&(o=n)}return o&&(!K(o)||!X(o))?Ge(o):o},fa=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.lastElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.lastElementChild;r&&(n=r)}}return n&&(!K(n)||!X(n))?Ue(n):n},Bt=t=>{const o=t.target;return je(o)},je=t=>{let o;return t.previousElementSibling?o=t.previousElementSibling:o=t.parentElement?.previousElementSibling?.lastElementChild,o&&(!K(o)||!X(o))?je(o):o},St=t=>{const o=t.target;return We(o)},We=t=>{let o;return t.nextElementSibling?o=t.nextElementSibling:o=t.parentElement?.nextElementSibling?.firstElementChild,o&&(!K(o)||!X(o))?We(o):o},Mt=t=>{const o=t.target.parentElement?.firstElementChild;return o&&(!K(o)||!X(o))?We(o):o},Tt=t=>{const o=t.target.parentElement?.lastElementChild;return o&&(!K(o)||!X(o))?je(o):o},we=["alt","control","shift","meta"],ua={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},At={"keydown.up":t=>{const o=Vt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.down":t=>{const o=Dt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.left":t=>{const o=Bt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.right":t=>{const o=St(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.control.up":t=>{const o=da(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.down":t=>{const o=fa(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.left":t=>{const o=Mt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.right":t=>{const o=Tt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.end":t=>{const o=Tt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=Dt(t);o&&o.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=Vt(t);o&&o.focus()}},"keydown.home":t=>{const o=Mt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.tab":t=>{const o=St(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.shift.tab":t=>{const o=Bt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())}};function ma(t){const o=l=>{let i=null;return l.parent&&(typeof l.parent=="string"?i=document.querySelector(l.parent):l.parent instanceof HTMLElement?i=l.parent:i=l.parent.value),i},n=l=>{const i=o(l);let c=[];if(typeof l.selectors=="string")c=Array.from(i?i.querySelectorAll(l.selectors):document.querySelectorAll(l.selectors));else if(Array.isArray(l.selectors))for(const d of l.selectors)d instanceof HTMLElement?c.push(d):c.push(d.$el);else if(l.selectors instanceof HTMLElement)c.push(l.selectors);else if(l.selectors?.value)if(Array.isArray(l.selectors.value))for(const d of l.selectors.value)d instanceof HTMLElement?c.push(d):c.push(d.$el);else c.push(l.selectors.value);return c},a=l=>{const i=o(l);let c=[];return l.selectors?c=n(l):i&&(c=Array.from(i.children).filter(d=>K(d)&&X(d))),c},r=l=>i=>{const c=ua[i.key]||i.key.toLowerCase();if(we.includes(c))return;const d=l.handlers||At;for(const f of Object.keys(d)){const[g,...w]=f.split(".");if(g==="keydown"&&w.includes(c)){const h=d[f],C=w.filter(m=>we.includes(m)),x=we.some(m=>{const b=m.charAt(0).toUpperCase()+m.slice(1);return i.getModifierState(b)});if(C.length>0){if(x){for(const m of we)if(w.includes(m)){const b=m.charAt(0).toUpperCase()+m.slice(1);i.getModifierState(b)&&h(i)}}}else x||h(i)}}},s=[];e.onMounted(()=>{for(const l of t){const i=o(l),c=a(l),d=r(l),f=i?[i]:c;for(const g of f){const{focused:w}=sa(e.ref(g)),h=e.watch(w,C=>{C?g.addEventListener("keydown",d):g.removeEventListener("keydown",d)});s.push(h)}}}),e.onBeforeUnmount(()=>{for(const l of s)l()})}const pa={ref:"datepicker",class:"adatepicker",tabindex:"0"},ga={colspan:"5",tabindex:-1},ha=["onClick","onKeydown"],ba=6,Nt=7,$t=Y(e.defineComponent({__name:"ADatePicker",props:{modelValue:{default:new Date},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:o}){const n=e.useModel(t,"modelValue"),a=e.ref(new Date(n.value)),r=e.ref(a.value.getMonth()),s=e.ref(a.value.getFullYear()),l=e.ref([]),i=e.useTemplateRef("datepicker");e.onMounted(async()=>{c(),await e.nextTick();const E=document.getElementsByClassName("selectedDate");if(E.length>0)E[0].focus();else{const V=document.getElementsByClassName("todaysDate");V.length>0&&V[0].focus()}});const c=()=>{l.value=[];const E=new Date(s.value,r.value,1),V=E.getDay(),R=E.setDate(E.getDate()-V);for(const D of Array(43).keys())l.value.push(R+D*864e5)};e.watch([r,s],c);const d=()=>s.value-=1,f=()=>s.value+=1,g=()=>{r.value==0?(r.value=11,d()):r.value-=1},w=()=>{r.value==11?(r.value=0,f()):r.value+=1},h=E=>{const V=new Date;if(r.value===V.getMonth())return V.toDateString()===new Date(E).toDateString()},C=E=>new Date(E).toDateString()===new Date(a.value).toDateString(),x=(E,V)=>(E-1)*Nt+V,m=(E,V)=>l.value[x(E,V)],b=E=>{n.value=a.value=new Date(l.value[E])},v=e.computed(()=>new Date(s.value,r.value,1).toLocaleDateString(void 0,{year:"numeric",month:"long"}));return ma([{parent:i,selectors:"td",handlers:{...At,"keydown.pageup":g,"keydown.shift.pageup":d,"keydown.pagedown":w,"keydown.shift.pagedown":f,"keydown.enter":()=>{}}}]),o({currentMonth:r,currentYear:s,selectedDate:a}),(E,V)=>(e.openBlock(),e.createElementBlock("div",pa,[e.createElementVNode("table",null,[e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("td",{id:"previous-month-btn",tabindex:-1,onClick:g},"<"),e.createElementVNode("th",ga,e.toDisplayString(v.value),1),e.createElementVNode("td",{id:"next-month-btn",tabindex:-1,onClick:w},">")]),V[0]||(V[0]=e.createElementVNode("tr",{class:"days-header"},[e.createElementVNode("td",null,"M"),e.createElementVNode("td",null,"T"),e.createElementVNode("td",null,"W"),e.createElementVNode("td",null,"T"),e.createElementVNode("td",null,"F"),e.createElementVNode("td",null,"S"),e.createElementVNode("td",null,"S")],-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(ba,R=>e.createElementVNode("tr",{key:R},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(Nt,D=>e.createElementVNode("td",{ref_for:!0,ref:"celldate",key:x(R,D),contenteditable:!1,spellcheck:!1,tabindex:0,class:e.normalizeClass({todaysDate:h(m(R,D)),selectedDate:C(m(R,D))}),onClick:e.withModifiers(k=>b(x(R,D)),["prevent","stop"]),onKeydown:e.withKeys(k=>b(x(R,D)),["enter"])},e.toDisplayString(new Date(m(R,D)).getDate()),43,ha)),64))])),64))])])],512))}}),[["__scopeId","data-v-056d2b5e"]]),wa=Y(e.defineComponent({__name:"CollapseButton",props:{collapsed:{type:Boolean}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["collapse-button",t.collapsed?"rotated":"unrotated"])},"×",2))}}),[["__scopeId","data-v-6f1c1b45"]]),xa={class:"aform"},ya={key:0,class:"aform-nested-section"},va={key:0,class:"aform-nested-label"},qe=Y(e.defineComponent({__name:"AForm",props:e.mergeModels({schema:{},readOnly:{type:Boolean}},{data:{required:!0},dataModifiers:{}}),emits:e.mergeModels(["update:schema","update:data"],["update:data"]),setup(t,{emit:o}){const n=o,a=e.useModel(t,"data"),r=e.ref({});e.watchEffect(()=>{!t.schema||!a.value||t.schema.forEach(c=>{"schema"in c&&Array.isArray(c.schema)&&c.schema.length>0&&(!r.value[c.fieldname]&&a.value[c.fieldname]?r.value[c.fieldname]=a.value[c.fieldname]:r.value[c.fieldname]||(r.value[c.fieldname]={}))})}),e.watchEffect(()=>{Object.keys(r.value).forEach(c=>{a.value&&r.value[c]!==a.value[c]&&(a.value[c]=r.value[c],n("update:data",a.value))})}),e.watchEffect(()=>{a.value&&t.schema&&t.schema.forEach(c=>{c.fieldname&&a.value[c.fieldname]!==void 0&&(c.value=a.value[c.fieldname])})});const s=c=>{const d={};for(const[f,g]of Object.entries(c))["component","fieldtype"].includes(f)||(d[f]=g),f==="rows"&&(!g||Array.isArray(g)&&g.length===0)&&(d.rows=a.value[c.fieldname]||[]);return d},l=e.ref([]);e.watchEffect(()=>{t.schema&&l.value.length!==t.schema.length&&(l.value=t.schema.map((c,d)=>e.computed({get(){return c.value},set:f=>{const g=t.schema[d].fieldname;t.schema[d].value=f,g&&a.value&&(a.value[g]=f,n("update:data",a.value)),n("update:schema",t.schema)}})))});const i=e.computed(()=>l.value);return(c,d)=>{const f=e.resolveComponent("AForm",!0);return e.openBlock(),e.createElementBlock("form",xa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.schema,(g,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w},["schema"in g&&Array.isArray(g.schema)&&g.schema.length>0?(e.openBlock(),e.createElementBlock("div",ya,[g.label?(e.openBlock(),e.createElementBlock("h4",va,e.toDisplayString(g.label),1)):e.createCommentVNode("",!0),e.createVNode(f,{data:r.value[g.fieldname],"onUpdate:data":h=>r.value[g.fieldname]=h,schema:g.schema,"read-only":t.readOnly||g.readOnly},null,8,["data","onUpdate:data","schema","read-only"])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.component),e.mergeProps({key:1,modelValue:i.value[w].value,"onUpdate:modelValue":h=>i.value[w].value=h,schema:g,data:a.value[g.fieldname],"read-only":t.readOnly},{ref_for:!0},s(g)),null,16,["modelValue","onUpdate:modelValue","schema","data","read-only"]))],64))),128))])}}}),[["__scopeId","data-v-06e17c5b"]]),zt=Y(e.defineComponent({__name:"AFieldset",props:{schema:{},label:{},collapsible:{type:Boolean},data:{default:()=>({})}},setup(t,{expose:o}){const n=e.ref(!1),a=e.ref(t.data||[]),r=e.ref(t.schema),s=l=>{l.preventDefault(),t.collapsible&&(n.value=!n.value)};return o({collapsed:n}),(l,i)=>(e.openBlock(),e.createElementBlock("fieldset",null,[e.createElementVNode("legend",{onClick:s,onSubmit:s},[e.createTextVNode(e.toDisplayString(t.label)+" ",1),t.collapsible?(e.openBlock(),e.createBlock(wa,{key:0,collapsed:n.value},null,8,["collapsed"])):e.createCommentVNode("",!0)],32),e.renderSlot(l.$slots,"default",{collapsed:n.value},()=>[e.withDirectives(e.createVNode(qe,{schema:r.value,data:a.value,"onUpdate:data":i[0]||(i[0]=c=>a.value=c)},null,8,["schema","data"]),[[e.vShow,!n.value]])],!0)]))}}),[["__scopeId","data-v-18fd6c61"]]),ka={class:"aform_form-element aform_file-attach aform__grid--full"},Ea={key:0,class:"aform_file-attach-feedback"},Ca=["disabled"],_t=Y(e.defineComponent({__name:"AFileAttach",props:{label:{}},setup(t){const{files:o,open:n,reset:a,onChange:r}=On(),s=e.computed(()=>`${o.value.length} ${o.value.length===1?"file":"files"}`);return r(l=>l),(l,i)=>(e.openBlock(),e.createElementBlock("div",ka,[e.unref(o)?(e.openBlock(),e.createElementBlock("div",Ea,[e.createElementVNode("p",null,[i[2]||(i[2]=e.createTextVNode(" You have selected: ",-1)),e.createElementVNode("b",null,e.toDisplayString(s.value),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),c=>(e.openBlock(),e.createElementBlock("li",{key:c.name},e.toDisplayString(c.name),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"aform_form-btn",onClick:i[0]||(i[0]=c=>e.unref(n)())},e.toDisplayString(t.label),1),e.createElementVNode("button",{type:"button",disabled:!e.unref(o),class:"aform_form-btn",onClick:i[1]||(i[1]=c=>e.unref(a)())},"Reset",8,Ca)]))}}),[["__scopeId","data-v-b700734f"]]),Ia={class:"aform_form-element"},Va=["id","disabled","required"],Da=["for"],Ba=["innerHTML"],Rt=e.defineComponent({__name:"ANumericInput",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:"&nbsp;"})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,a)=>(e.openBlock(),e.createElementBlock("div",Ia,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),class:"aform_input-field",type:"number",disabled:t.readOnly,required:t.required},null,8,Va),[[e.vModelText,o.value]]),e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,Da),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Ba),[[e.vShow,t.validation.errorMessage]])]))}}),Lt={date:"##/##/####",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"};function Sa(t){try{return Function(`"use strict";return (${t})`)()}catch{}}function Ma(t){let o=t.value;if(o){const n=Sa(o);if(n){const a=t.instance?.locale;o=n(a)}}else{const a=t.instance?.schema?.fieldtype?.toLowerCase();a&&Lt[a]&&(o=Lt[a])}return o}function Ta(t,o){let n=t;const a=[o,"/","-","(",")"," "];for(const r of a)n=n.replaceAll(r,"");return n}function Aa(t,o,n){let a=o;for(const r of t){const s=a.indexOf(n);if(s!==-1){const l=a.substring(0,s),i=a.substring(s+1);a=l+r+i}}return a.slice(0,o.length)}function Na(t,o){const n=Ma(o);if(!n)return;const a="#",r=t.value,s=Ta(r,a);if(s){const l=Aa(s,n,a);o.instance?.maskFilled&&(o.instance.maskFilled=!l.includes(a)),t.value=l}else t.value=n}const $a={class:"aform_form-element"},za=["id","disabled","maxlength","required"],_a=["for"],Ra=["innerHTML"],Pt=e.defineComponent({__name:"ATextInput",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:"&nbsp;"})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.ref(!0),n=e.useModel(t,"modelValue");return(a,r)=>(e.openBlock(),e.createElementBlock("div",$a,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),class:"aform_input-field",disabled:t.readOnly,maxlength:t.mask&&o.value?t.mask.length:void 0,required:t.required},null,8,za),[[e.vModelText,n.value],[e.unref(Na),t.mask]]),e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,_a),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Ra),[[e.vShow,t.validation.errorMessage]])]))}}),La={class:"login-container"},Pa={class:"account-container"},Oa={class:"account-header"},Fa={id:"account-title"},Ha={id:"account-subtitle"},Ua={class:"login-form-container"},Ga={class:"login-form-email aform_form-element"},ja=["disabled"],Wa={class:"login-form-password aform_form-element"},qa=["disabled"],Ya=["disabled"],Xa={key:0,class:"material-symbols-outlined loading-icon"},Ka=Y(e.defineComponent({__name:"Login",props:{headerTitle:{default:"Login"},headerSubtitle:{default:"Enter your email and password to login"}},emits:["loginFailed","loginSuccess"],setup(t,{emit:o}){const n=o,a=e.ref(""),r=e.ref(""),s=e.ref(!1),l=e.ref(!1);function i(c){if(c.preventDefault(),s.value=!0,l.value){s.value=!1,n("loginFailed");return}s.value=!1,n("loginSuccess")}return(c,d)=>(e.openBlock(),e.createElementBlock("div",La,[e.createElementVNode("div",null,[e.createElementVNode("div",Pa,[e.createElementVNode("div",Oa,[e.createElementVNode("h1",Fa,e.toDisplayString(t.headerTitle),1),e.createElementVNode("p",Ha,e.toDisplayString(t.headerSubtitle),1)]),e.createElementVNode("form",{onSubmit:i},[e.createElementVNode("div",Ua,[e.createElementVNode("div",Ga,[d[2]||(d[2]=e.createElementVNode("label",{id:"login-email",for:"email",class:"aform_field-label"},"Email",-1)),e.withDirectives(e.createElementVNode("input",{id:"email","onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),class:"aform_input-field",name:"email",placeholder:"name@example.com",type:"email","auto-capitalize":"none","auto-complete":"email","auto-correct":"off",disabled:s.value},null,8,ja),[[e.vModelText,a.value]])]),e.createElementVNode("div",Wa,[d[3]||(d[3]=e.createElementVNode("label",{id:"login-password",for:"password",class:"aform_field-label"},"Password",-1)),e.withDirectives(e.createElementVNode("input",{id:"password","onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),class:"aform_input-field",name:"password",type:"password",disabled:s.value},null,8,qa),[[e.vModelText,r.value]])]),e.createElementVNode("button",{class:"btn",disabled:s.value||!a.value||!r.value,onClick:i},[s.value?(e.openBlock(),e.createElementBlock("span",Xa,"progress_activity")):e.createCommentVNode("",!0),d[4]||(d[4]=e.createElementVNode("span",{id:"login-form-button"},"Login",-1))],8,Ya)])],32),d[5]||(d[5]=e.createElementVNode("button",{class:"btn"},[e.createElementVNode("span",{id:"forgot-password-button"},"Forgot password?")],-1))])])]))}}),[["__scopeId","data-v-d9ffd0a7"]]);function Ja(t){t.use(kn),t.component("ACheckbox",ht),t.component("ACombobox",bt),t.component("ADate",wt),t.component("ADropdown",Ct),t.component("ADatePicker",$t),t.component("AFieldset",zt),t.component("AFileAttach",_t),t.component("AForm",qe),t.component("ANumericInput",Rt),t.component("ATextInput",Pt)}O.ACheckbox=ht,O.AComboBox=bt,O.ADate=wt,O.ADatePicker=$t,O.ADropdown=Ct,O.AFieldset=zt,O.AFileAttach=_t,O.AForm=qe,O.ANumericInput=Rt,O.ATextInput=Pt,O.Login=Ka,O.install=Ja,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(O,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","vue","pinia"],e):(O=typeof globalThis<"u"?globalThis:O||self,e(O["@stonecrop/aform"]={},O.Vue,O.pinia))})(this,(function(O,e,Wt){"use strict";var rt=document.createElement("style");rt.textContent=`@import"https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap";.atable-cell{border-radius:0;box-sizing:border-box;outline:none;box-shadow:none;color:var(--sc-cell-text-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);border-spacing:0px;border-collapse:collapse;overflow:hidden;text-overflow:ellipsis;order:1;white-space:nowrap;max-width:40ch;border-top:1px solid var(--sc-row-border-color);margin:0 0 0 1px}.atable-cell a{color:var(--sc-cell-text-color);text-decoration:none}.atable-cell:focus,.atable-cell:focus-within{background-color:var(--sc-focus-cell-background);outline-width:var(--sc-atable-cell-border-width);outline-style:solid;outline-offset:calc(var(--sc-atable-cell-border-width) * -1);outline-color:var(--sc-focus-cell-outline);box-shadow:none;overflow:hidden;text-wrap:nowrap;box-sizing:border-box}.cell-modified{font-weight:700;font-style:italic}.cell-modified-highlight{background-color:var(--sc-cell-changed-color)}.row-index{color:var(--sc-header-text-color);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none;width:2ch;display:flex;align-items:center;justify-content:center}.expandable-row{border-top:1px solid var(--sc-row-border-color);height:var(--sc-atable-row-height)}.expandable-row>td:first-child{border-left:4px solid var(--sc-row-border-color)}.expanded-row{border-left:2px solid var(--sc-row-border-color)}.expandable-row:last-child{border-bottom:1px solid var(--sc-row-border-color)}.expanded-row-content{border-top:1px solid var(--sc-row-border-color);padding:1.5rem}.expandable-row.changed-row-gradient[data-v-a42297c7]:has(td.cell-modified){--cell-color-start: color-mix(in srgb, var(--sc-cell-changed-color), #fff 20%);--cell-color-end: color-mix(in srgb, var(--sc-cell-changed-color), #fff 60%);background:linear-gradient(90deg,var(--cell-color-start),var(--cell-color-end))}.aganttcell[data-v-8917a8a3]{background-color:#f9f9f9;width:100%;padding:0;height:100%}.gantt-container[data-v-8917a8a3]{position:relative;height:100%;background-color:#f0f0f0;border-radius:4px;overflow:visible}.gantt-bar[data-v-8917a8a3]{position:absolute;border-radius:4px;display:flex;align-items:center;justify-content:space-between;cursor:grab;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);transition:left .1s ease-out,width .1s ease-out;height:80%;top:50%;z-index:2;transform:translateY(-50%)}.gantt-bar[data-v-8917a8a3]:active{cursor:grabbing}.gantt-bar.is-dragging[data-v-8917a8a3]{z-index:10}.gantt-label[data-v-8917a8a3]{flex:1;text-align:center;font-size:12px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px;-webkit-user-select:none;user-select:none}.resize-handle[data-v-8917a8a3]{position:relative;width:12px;height:100%;cursor:ew-resize;display:flex;align-items:center;justify-content:center;z-index:0;background:#00000040}.left-resize-handle[data-v-8917a8a3]{border-right:1px solid rgba(0,0,0,.5)}.right-resize-handle[data-v-8917a8a3]{border-left:1px solid rgba(0,0,0,.5)}.handle-grip[data-v-8917a8a3]{width:4px;height:12px;border-radius:2px;background:#000c}.resize-handle[data-v-8917a8a3]:hover{background-color:#ffffff80}.vertical-indicator[data-v-8917a8a3]{position:absolute;width:2px;opacity:0;pointer-events:none;transition:opacity .2s ease;top:-100vh;height:100vh;z-index:5;background-color:var(--v6d722296)}.left-indicator[data-v-8917a8a3]{left:50%;transform:translate(-50%)}.right-indicator[data-v-8917a8a3]{right:50%;transform:translate(50%)}.resize-handle.is-dragging .vertical-indicator[data-v-8917a8a3]{opacity:.7}.gantt-container[data-v-8917a8a3]:after{content:"";position:absolute;inset:0;background-size:calc(100% / var(--v260b36f8)) 100%;background-image:linear-gradient(to right,rgba(0,0,0,.1) 1px,transparent 1px);pointer-events:none;z-index:1}.connection-handle[data-v-8917a8a3]{position:absolute;top:50%;transform:translateY(-50%);width:16px;height:16px;opacity:0;transition:opacity .2s ease;cursor:crosshair;z-index:15;display:flex;align-items:center;justify-content:center}.connection-handle.visible[data-v-8917a8a3]{opacity:1}.left-connection-handle[data-v-8917a8a3]{left:-16px}.right-connection-handle[data-v-8917a8a3]{right:-16px}.connection-dot[data-v-8917a8a3]{width:8px;height:8px;border-radius:50%;background-color:#2196f3;border:2px solid white;box-shadow:0 1px 3px #0000004d}.connection-handle:hover .connection-dot[data-v-8917a8a3]{background-color:#1976d2;transform:scale(1.2)}.connection-handle.is-dragging[data-v-8917a8a3]{opacity:1!important}.connection-handle.is-dragging .connection-dot[data-v-8917a8a3]{background-color:#1976d2;transform:scale(1.3);box-shadow:0 2px 8px #2196f366}.atable-row-actions{width:2rem;min-width:2rem;padding:0 .25rem;vertical-align:middle;white-space:nowrap;border-top:1px solid var(--sc-row-border-color);background:#fff;-webkit-user-select:none;user-select:none;position:relative}.atable-row-actions.dropdown-active{z-index:500}.row-actions-icons{display:flex;gap:.25rem;align-items:center;justify-content:center}.row-action-btn{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:.125rem;border:none;background:transparent;cursor:pointer;border-radius:.25rem;transition:background-color .15s ease}.row-action-btn:hover{background-color:var(--sc-gray-10, #e5e5e5)}.row-action-btn:focus{outline:2px solid var(--sc-focus-cell-outline, #3b82f6);outline-offset:1px}.row-action-btn .action-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem}.row-action-btn .action-icon :deep(svg){width:100%;height:100%}.row-actions-dropdown{position:relative;display:inline-block}.row-actions-dropdown:has(button:focus){outline:2px solid var(--sc-focus-cell-outline);outline-offset:-2px}.row-actions-toggle{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border:none;background:transparent;cursor:pointer;border-radius:.25rem;font-size:1rem;font-weight:700;transition:background-color .15s ease}.row-actions-toggle:hover{background-color:var(--sc-gray-10, #e5e5e5)}.dropdown-icon{line-height:1}.row-actions-menu{position:fixed;z-index:9999;min-width:10rem;padding:.25rem 0;background:#fff;border:1px solid var(--sc-row-border-color);border-left:4px solid var(--sc-row-border-color);border-radius:0}.row-actions-menu.menu-flipped{box-shadow:0 -4px 6px -1px #0000001a,0 -2px 4px -2px #0000001a}.row-action-menu-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.5rem .75rem;border:none;background:transparent;cursor:pointer;text-align:left;font-size:.875rem;transition:background-color .15s ease}.row-action-menu-item:hover{background-color:var(--sc-gray-10, #f5f5f5)}.row-action-menu-item:focus{outline:none;background-color:var(--sc-gray-10, #f5f5f5)}.row-action-menu-item .action-icon{display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;flex-shrink:0}.row-action-menu-item .action-icon :deep(svg){width:100%;height:100%}.row-action-menu-item .action-label{flex:1}.atable-row{background-color:#fff}.atable-row>td:first-child{border-left:4px solid var(--sc-row-border-color)}.list-index{color:var(--sc-header-text-color);font-weight:700;padding-left:var(--sc-atable-row-padding);padding-right:.5em;text-align:left;-webkit-user-select:none;user-select:none;border-top:1px solid var(--sc-row-border-color);text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding)}.tree-index{color:var(--sc-header-text-color);font-weight:700;text-align:center;-webkit-user-select:none;user-select:none;width:2ch;box-sizing:border-box;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding)}.atable-row:has(td.cell-modified)>td.sticky-column,.atable-row:has(td.cell-modified)>th.sticky-column,.atable-row:has(td.cell-modified)>td.sticky-index,.atable-row:has(td.cell-modified)>th.sticky-index{background:var(--sc-cell-changed-color)}.atable-row.changed-row-gradient[data-v-c35a3748]:has(td.cell-modified){--cell-color-start: color-mix(in srgb, var(--sc-cell-changed-color), #fff 20%);--cell-color-end: color-mix(in srgb, var(--sc-cell-changed-color), #fff 60%);background:linear-gradient(90deg,var(--cell-color-start),var(--cell-color-end))}.gantt-connection-overlay[data-v-71911260]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1}.connection-path[data-v-71911260]{transition:stroke-width .2s ease;pointer-events:auto;cursor:pointer;stroke-dasharray:5px;stroke:var(--sc-cell-text-color)}#arrowhead-marker polygon[data-v-71911260]{fill:var(--sc-cell-text-color)}.animated-path[data-v-71911260]{animation:animated-dash-71911260 infinite 1.5s linear}.connection-path[data-v-71911260]:hover{stroke-width:3px}.connection-hitbox[data-v-71911260]{pointer-events:auto;cursor:pointer}@keyframes animated-dash-71911260{0%{stroke-dashoffset:0px}to{stroke-dashoffset:-10px}}.column-filter[data-v-8487462d]{display:flex;align-items:center;gap:.25rem;width:100%}.filter-input[data-v-8487462d],.filter-select[data-v-8487462d]{background-color:var(--sc-form-background)!important;padding:.15rem .2rem;border:1px solid var(--sc-form-border);border-radius:3px;font-size:.875rem;color:var(--sc-text-color);width:100%;box-sizing:border-box}.filter-input[data-v-8487462d]:focus,.filter-select[data-v-8487462d]:focus{outline:none;border-color:var(--sc-input-active-border-color)}.checkbox-filter[data-v-8487462d]{display:flex;align-items:center;gap:.25rem;font-size:.875rem;color:var(--sc-text-color);cursor:pointer}.filter-checkbox[data-v-8487462d]{margin:0}.date-range-filter[data-v-8487462d]{display:flex;gap:.25rem;align-items:center;width:100%}.date-range-filter .filter-input[data-v-8487462d]{flex:1;min-width:0}.date-separator[data-v-8487462d]{color:var(--sc-gray-50);font-weight:500;padding:0 .25rem;flex-shrink:0}.clear-btn[data-v-8487462d]{background:var(--sc-gray-10, #f0f0f0);border:1px solid var(--sc-form-border);border-radius:3px;color:var(--sc-gray-70);cursor:pointer;font-size:1rem;padding:.15rem .4rem;line-height:1;flex-shrink:0}.atable-header-row th{padding-left:.5ch!important;font-weight:700;min-width:3ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);box-sizing:border-box;color:var(--sc-header-text-color);position:relative}#header-index{padding-left:var(--sc-atable-row-padding);box-sizing:border-box;border-top:none}.tree-index{padding-right:0}th{order:1}.list-expansion-index{width:2ch;margin-left:5px}.cursor-pointer{cursor:pointer}.atable-filters-row th{padding:.25rem .5ch;vertical-align:top}.row-actions-header{width:2rem;min-width:2rem;padding:0 .25rem}:root{--sc-primary-color: #0098c9;--sc-primary-text-color: #ffffff;--sc-brand-color: #202a44;--sc-gray-5: #f2f2f2;--sc-gray-10: #e6e6e6;--sc-gray-20: #cccccc;--sc-gray-50: #808080;--sc-gray-60: #666666;--sc-gray-80: #333333;--sc-brand-danger: #e63c28;--sc-brand-success: #155724;--sc-brand-warning: #b99d3e;--sc-active-cell-background: #ffffff;--sc-active-cell-outline: #e6a92d;--sc-cell-border-color: #ffffff;--sc-cell-text-color: #3a3c41;--sc-focus-cell-background: #ffffff;--sc-focus-cell-outline: #000000;--sc-header-border-color: #ffffff;--sc-header-text-color: var(--sc-gray-20);--sc-row-border-color: var(--sc-gray-20);--sc-row-color-zebra-dark: #dddddd;--sc-row-color-zebra-light: #eeeeee;--sc-row-number-background-color: #ffffff;--sc-input-active-border-color: #000000;--sc-input-active-label-color: #000000;--sc-input-border-color: var(--sc-gray-20);--sc-input-label-color: var(--sc-gray-60);--sc-required-border: #e63c28;--sc-cell-changed-color: #d8edff;--sc-form-border: var(--sc-gray-5);--sc-form-background: #ffffff;--sc-input-field-background: #ffffff;--sc-input-field-disabled-background: var(--sc-gray-5);--sc-font-size: 10px;--sc-font-family: Arimo, Arial, sans-serif;--sc-table-font-size: 16px;--sc-atable-font-family: "Arimo", sans-serif;--sc-atable-row-padding: .125rem;--sc-atable-row-height: 1.5em;--sc-atable-cell-border-width: 2px;--sc-table-loading-color: 204, 204, 204;--sc-btn-border: #cccccc;--sc-btn-color: white;--sc-btn-hover: #f2f2f2;--sc-btn-label-color: black}.amodal{position:absolute;background-color:var(--sc-row-color-zebra-dark);z-index:5}.atable-container{position:relative}.sticky-index{position:sticky;left:0;z-index:10;order:0}.sticky-column,th.sticky-column,td.sticky-column,th.sticky-index,td.sticky-index{position:sticky;z-index:10;order:0;background:#fff}.sticky-column-edge,.atable th.sticky-column-edge{border-right:1px solid var(--sc-row-border-color)}[data-v-3d00d51b]:root{--sc-primary-color: #0098c9;--sc-primary-text-color: #ffffff;--sc-brand-color: #202a44;--sc-gray-5: #f2f2f2;--sc-gray-10: #e6e6e6;--sc-gray-20: #cccccc;--sc-gray-50: #808080;--sc-gray-60: #666666;--sc-gray-80: #333333;--sc-brand-danger: #e63c28;--sc-brand-success: #155724;--sc-brand-warning: #b99d3e;--sc-active-cell-background: #ffffff;--sc-active-cell-outline: #e6a92d;--sc-cell-border-color: #ffffff;--sc-cell-text-color: #3a3c41;--sc-focus-cell-background: #ffffff;--sc-focus-cell-outline: #000000;--sc-header-border-color: #ffffff;--sc-header-text-color: var(--sc-gray-20);--sc-row-border-color: var(--sc-gray-20);--sc-row-color-zebra-dark: #dddddd;--sc-row-color-zebra-light: #eeeeee;--sc-row-number-background-color: #ffffff;--sc-input-active-border-color: #000000;--sc-input-active-label-color: #000000;--sc-input-border-color: var(--sc-gray-20);--sc-input-label-color: var(--sc-gray-60);--sc-required-border: #e63c28;--sc-cell-changed-color: #d8edff;--sc-form-border: var(--sc-gray-5);--sc-form-background: #ffffff;--sc-input-field-background: #ffffff;--sc-input-field-disabled-background: var(--sc-gray-5);--sc-font-size: 10px;--sc-font-family: Arimo, Arial, sans-serif;--sc-table-font-size: 16px;--sc-atable-font-family: "Arimo", sans-serif;--sc-atable-row-padding: .125rem;--sc-atable-row-height: 1.5em;--sc-atable-cell-border-width: 2px;--sc-table-loading-color: 204, 204, 204;--sc-btn-border: #cccccc;--sc-btn-color: white;--sc-btn-hover: #f2f2f2;--sc-btn-label-color: black}.atable[data-v-3d00d51b]{position:relative;font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);border-collapse:collapse;box-sizing:border-box;table-layout:auto;width:auto;overflow:clip;height:1px}.atable th[data-v-3d00d51b]{border-width:0px;border-style:solid;border-radius:0;padding-left:.5ch;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);color:var(--sc-gray-60);height:var(--sc-atable-row-height);font-weight:300;letter-spacing:.05rem;order:1;box-sizing:border-box}.atable th[data-v-3d00d51b]:focus{outline:none}.atable[data-v-3d00d51b]:tbody{overflow:hidden;position:relative}.atable[data-v-3d00d51b]:tbody:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:transparent;z-index:100}.aloading[data-v-a930a25b]{width:100%;border-top:1px solid var(--sc-row-border-color);border-bottom:1px solid var(--sc-row-border-color);display:flex;background-color:#fff;border-left:4px solid var(--sc-row-border-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);align-items:center;box-sizing:border-box;background:var(--sc-focus-cell-background);overflow:hidden;position:relative}.aloading-bar[data-v-a930a25b]{width:100%;height:100%;position:absolute;left:-100%;top:0;background:linear-gradient(90deg,rgba(var(--sc-table-loading-color),0),rgba(var(--sc-table-loading-color),1),rgba(var(--sc-table-loading-color),0));animation:gradient-a930a25b infinite 2s;z-index:0}.aloading-header[data-v-a930a25b]{color:var(--sc-cell-text-color);font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);padding:0;margin:0;font-weight:400;z-index:1}.aloading-header[data-v-a930a25b]:after{content:"...";animation:ellipse-a930a25b 2s;animation-iteration-count:infinite}@keyframes gradient-a930a25b{0%{left:-100%}to{left:100%}}@keyframes ellipse-a930a25b{0%{content:""}20%{content:""}40%{content:"."}60%{content:".."}80%{content:"..."}}.aloading[data-v-e1165876]{width:100%;border-top:1px solid var(--sc-row-border-color);border-bottom:1px solid var(--sc-row-border-color);display:flex;background-color:#fff;border-left:4px solid var(--sc-row-border-color);padding-left:.5ch!important;padding-right:.5ch;padding-top:var(--sc-atable-row-padding);padding-bottom:var(--sc-atable-row-padding);align-items:center;box-sizing:border-box;background:var(--sc-focus-cell-background);overflow:hidden;position:relative}.aloading-bar[data-v-e1165876]{width:50%;height:3px;position:absolute;left:-100%;bottom:0;background:var(--sc-row-border-color);animation:bar-left-e1165876 infinite 2s;z-index:0}.aloading-header[data-v-e1165876]{color:var(--sc-cell-text-color);font-family:var(--sc-atable-font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--sc-table-font-size);padding:0;margin:0;font-weight:400;z-index:1}.aloading-header[data-v-e1165876]:after{content:"...";animation:ellipse-e1165876 2s;animation-iteration-count:infinite}@keyframes bar-left-e1165876{0%{left:-50%}to{left:100%}}@keyframes ellipse-e1165876{0%{content:""}20%{content:""}40%{content:"."}60%{content:".."}80%{content:"..."}}.aform_checkbox[data-v-f13fd4d6]{cursor:pointer;width:auto;margin-top:0;display:block}.aform_checkbox[data-v-f13fd4d6]:checked{accent-color:var(--sc-primary-color);border:1px solid black}.aform_checkbox-container[data-v-f13fd4d6]{width:100%;display:inline-block;text-align:left}.aform_checkbox-container input[data-v-f13fd4d6]{width:auto}.aform_checkbox-container:hover+.aform_field-label[data-v-f13fd4d6]{color:var(--sc-input-active-label-color)}div[data-v-a15ed922]{min-width:40ch;width:100%;box-sizing:border-box;border:1px solid transparent;padding:0rem;margin:0rem;margin-right:1ch}input[data-v-a15ed922]{width:calc(100% - 1ch);box-sizing:border-box;outline:1px solid transparent;border:1px solid var(--sc-input-border-color);padding:1ch .5ch .5ch 1ch;margin:.575rem 0 0;min-height:1.15rem;border-radius:.25rem}p[data-v-a15ed922],label[data-v-a15ed922]{color:var(--sc-input-label-color);display:block;min-height:1.15rem;padding:0rem;margin:0rem 0rem .25rem;border:1px solid transparent;box-sizing:border-box}p[data-v-a15ed922]{width:100%;color:red;font-size:85%;box-sizing:border-box}label[data-v-a15ed922]{z-index:2;font-size:80%;position:absolute;background:#fff;margin:-2.575rem 0 0 1ch;padding:0 .25ch;box-sizing:border-box}input[data-v-a15ed922]:focus{border:1px solid var(--sc-input-active-border-color)}input:focus+label[data-v-a15ed922]{color:var(--sc-input-active-label-color)}.autocomplete[data-v-31a6db8c]{position:relative}.input-wrapper[data-v-31a6db8c]{border:1px solid transparent;padding:0rem;margin:0rem;margin-right:1ch}input[data-v-31a6db8c]{width:calc(100% - 1ch);outline:1px solid transparent;border:1px solid var(--sc-input-border-color);padding:1ch .5ch .5ch 1ch;margin:.575rem 0 0;min-height:1.15rem;border-radius:.25rem}input[data-v-31a6db8c]:focus{border:1px solid var(--sc-input-active-border-color);border-radius:.25rem .25rem 0 0;border-bottom:none}label[data-v-31a6db8c]{display:block;min-height:1.15rem;padding:0rem;margin:0rem 0rem .25rem;border:1px solid transparent;z-index:2;font-size:80%;position:absolute;background:#fff;margin:-2.575rem 0 0 1ch;padding:0 .25ch}.autocomplete-results[data-v-31a6db8c]{position:absolute;width:calc(100% - 1ch + 1.5px);z-index:999;padding:0;margin:0;color:var(--sc-input-active-border-color);border:1px solid var(--sc-input-active-border-color);border-radius:0 0 .25rem .25rem;border-top:none;background-color:#fff}.autocomplete-result[data-v-31a6db8c]{list-style:none;text-align:left;padding:4px 6px;cursor:pointer;border-bottom:.5px solid lightgray}.autocomplete-result.is-active[data-v-31a6db8c],.autocomplete-result[data-v-31a6db8c]:hover{background-color:var(--sc-row-color-zebra-light);color:var(--sc-input-active-border-color)}.adatepicker[data-v-056d2b5e]{font-size:var(--sc-table-font-size);display:inline-table;color:var(--sc-cell-text-color);outline:none;border-collapse:collapse}.adatepicker tr[data-v-056d2b5e]{height:1.15rem;text-align:center;vertical-align:middle}.adatepicker td[data-v-056d2b5e]{border:2px solid transparent;outline:2px solid transparent;min-width:3ch;max-width:3ch}.adatepicker td[data-v-056d2b5e]:focus,.adatepicker td[data-v-056d2b5e]:focus-within{outline:1px dashed black;box-shadow:none;min-height:1.15em;max-height:1.15em;overflow:hidden}.adatepicker .selectedDate[data-v-056d2b5e]{outline:1px solid black;background:var(--sc-gray-20);font-weight:bolder}.adatepicker .todaysDate[data-v-056d2b5e]{font-weight:bolder;text-decoration:underline;color:#000}.days-header>td[data-v-056d2b5e]{font-weight:700}.prev-date[data-v-056d2b5e]{color:var(--sc-gray-20)}.collapse-button[data-v-6f1c1b45]{width:2ch;min-width:calc(66px - 4ch);background-color:transparent;font-size:150%;text-align:center;border:none;margin-top:-.5rem}.rotated[data-v-6f1c1b45]{transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transition:transform .25s;transform-origin:center center}.unrotated[data-v-6f1c1b45]{transform:rotate(0);-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transition:transform .25s}.aform_form-element{padding:0;margin:0;position:relative;box-sizing:border-box;flex-grow:1;min-width:20ch;margin-bottom:1rem}.aform_input-field{outline:1px solid var(--sc-input-border-color);outline-offset:-1px;font-size:1rem;padding:.5rem;margin:0;border-radius:0;box-sizing:border-box;width:100%;min-height:auto;position:relative;color:var(--sc-cell-text-color);background:var(--sc-input-field-background)}.aform_input-field:focus{outline:1px solid var(--sc-input-active-border-color)}.aform_input-field:focus+.aform_field-label{color:var(--sc-input-active-label-color)}.aform_field-label{color:var(--sc-input-label-color);display:inline-block;position:absolute;padding:0 .25rem;margin:0rem;z-index:2;font-size:.7rem;font-weight:300;letter-spacing:.05rem;background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-background) 50%);width:auto;box-sizing:border-box;background:#fff;margin:0;grid-row:1;top:0;left:10px;border:none;line-height:0;transform:translateY(-50%)}.aform_input-field:disabled{background:var(--sc-input-field-disabled-background)}.aform_input-field:disabled+.aform_field-label{background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-disabled-background) 50%)}.aform_input-field:disabled~p.aform_error{background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-disabled-background) 50%)}.aform_field-label:after{margin:0;padding:0;box-sizing:border-box;content:"";line-height:normal}p.aform_error{display:block;display:inline-block;display:none;background:linear-gradient(var(--sc-form-background) 50%,var(--sc-input-field-background) 50%);padding:0 .25rem;margin:0rem;width:auto;color:var(--sc-brand-danger);font-size:.7rem;position:absolute;right:0;top:0;line-height:0;background:#fff;padding:.25rem;transform:translate(-1rem,-50%);margin:0}.aform[data-v-06e17c5b]{display:flex;flex-wrap:wrap;gap:1rem;padding:1rem;border:1px solid var(--sc-form-border);border-left:4px solid var(--sc-form-border);margin-bottom:1rem;max-width:100%}@media screen and (max-width:400px){.aform[data-v-06e17c5b]{flex-direction:column}}.aform-nested-section[data-v-06e17c5b]{width:100%;padding:.5rem 0}.aform-nested-label[data-v-06e17c5b]{font-size:.9rem;font-weight:600;margin:0 0 .5rem;color:var(--sc-input-label-color, #666)}.aform-nested-section .aform[data-v-06e17c5b]{border-left-width:2px;margin-left:.5rem}fieldset[data-v-18fd6c61]{max-width:100%;width:100%;margin-right:2ch;border:1px solid transparent;border-bottom:1px solid var(--sc-gray-50)}legend[data-v-18fd6c61]{width:100%;height:1.15rem;border:1px solid transparent;padding-bottom:.5rem;font-size:110%;font-weight:600;-webkit-user-select:none;user-select:none}.collapse-button[data-v-18fd6c61]{float:right}.aform_file-attach[data-v-b700734f]{padding:1rem;display:flex;flex-wrap:wrap;gap:1rem;flex-direction:row;justify-content:center;align-items:center;border:1px dashed var(--sc-input-border-color);width:100%}@media screen and (max-width:400px){.aform_file-attach>.aform_form-btn[data-v-b700734f]{width:100%}}.aform_file-attach-feedback[data-v-b700734f]{color:var(--sc-input-label-color);width:100%;padding:.5rem;text-align:center;align-self:center}.aform_file-attach-feedback>li[data-v-b700734f]{list-style:none;font-style:italic}.aform_file-attach-feedback>p[data-v-b700734f]{margin-top:0}.aform_form-btn[data-v-b700734f]{padding:.5rem 2rem;width:auto;border:1px solid var(--sc-input-border-color);color:var(--sc-input-label-color);cursor:pointer;background-color:#fff}.aform_form-btn[data-v-b700734f]:disabled{background-color:var(--sc-gray-5)}.login-container[data-v-d9ffd0a7]{width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--sc-font-family)}.account-container[data-v-d9ffd0a7]{width:100%;margin-left:auto;margin-top:.5rem;margin-right:auto;display:flex;flex-direction:column;justify-content:center}.account-header[data-v-d9ffd0a7]{display:flex;flex-direction:column;text-align:center;margin-top:.5rem}#account-title[data-v-d9ffd0a7]{font-size:1.5rem;line-height:2rem;font-weight:600;letter-spacing:-.025em;margin:0}#account-subtitle[data-v-d9ffd0a7]{font-size:.875rem;line-height:1.25rem;margin:1rem}.login-form-container[data-v-d9ffd0a7]{display:grid;gap:.5rem}.login-form-element[data-v-d9ffd0a7]{display:grid;margin:.5rem 0;position:relative}.login-field[data-v-d9ffd0a7]{padding:.5rem .25rem .25rem .5rem;outline:1px solid transparent;border:1px solid var(--sc-input-border-color);border-radius:.25rem}.login-field[data-v-d9ffd0a7]:focus{border:1px solid black}.btn[data-v-d9ffd0a7]{background-color:var(--sc-btn-color);color:var(--sc-btn-label-color);border:1px solid var(--sc-btn-border);margin:.5rem 0;padding:.25rem;position:relative;cursor:pointer}.btn[data-v-d9ffd0a7]:hover{background-color:var(--sc-btn-hover)}.btn[data-v-d9ffd0a7]:disabled{background-color:var(--sc-input-field-disabled-background)}.disabled[data-v-d9ffd0a7]{opacity:.5}.loading-icon[data-v-d9ffd0a7]{animation:spin-d9ffd0a7 1s linear infinite forwards;display:inline-block;margin-right:.2rem;line-height:0;font-size:1rem;position:relative;top:.2rem}@keyframes spin-d9ffd0a7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
2
+ /*$vite$:1*/`,document.head.appendChild(rt);function it(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const Gt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ut=t=>t!=null,qt=Object.prototype.toString,Yt=t=>qt.call(t)==="[object Object]",Xt=()=>{};function ge(t){return Array.isArray(t)?t:[t]}function Jt(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const le=Gt?window:void 0;function re(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function de(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=ge(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return Jt(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>re(s)))!==null&&a!==void 0?a:[le].filter(s=>s!=null),ge(e.toValue(n.value?t[1]:t[0])),ge(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=Yt(i)?{...i}:i,f=a.flatMap(g=>r.flatMap(b=>s.map(x=>o(g,b,x,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Kt(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Qt(t){const o=Kt();return e.computed(()=>(o.value,!!t()))}function eo(t,o,n={}){const{window:a=le,...r}=n;let s;const i=Qt(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=ge(e.toValue(t)).map(re).filter(Ut);return new Set(g)}),g=>{l(),i.value&&g.size&&(s=new MutationObserver(o),g.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return it(f),{isSupported:i,stop:f,takeRecords:d}}function to(t,o,n={}){const{window:a=le,document:r=a?.document,flush:s="sync"}=n;if(!a||!r)return Xt;let i;const l=f=>{i?.(),i=f},c=e.watchEffect(()=>{const f=re(t);if(f){const{stop:g}=eo(r,b=>{b.map(x=>[...x.removedNodes]).flat().some(x=>x===f||x.contains(f))&&o(b)},{window:a,childList:!0,subtree:!0});l(g)}},{flush:s}),d=()=>{c(),l()};return it(d),d}function oo(t={}){var o;const{window:n=le,deep:a=!0,triggerOnRemoval:r=!1}=t,s=(o=t.document)!==null&&o!==void 0?o:n?.document,i=()=>{let d=s?.activeElement;if(a)for(var f;d?.shadowRoot;)d=d==null||(f=d.shadowRoot)===null||f===void 0?void 0:f.activeElement;return d},l=e.shallowRef(),c=()=>{l.value=i()};if(n){const d={capture:!0,passive:!0};de(n,"blur",f=>{f.relatedTarget===null&&c()},d),de(n,"focus",c,d)}return r&&to(l,c,{document:s}),c(),l}const no="focusin",ao="focusout",lo=":focus-within";function ro(t,o={}){const{window:n=le}=o,a=e.computed(()=>re(t)),r=e.shallowRef(!1),s=e.computed(()=>r.value);if(!n||!oo(o).value)return{focused:s};const i={passive:!0};return de(a,no,()=>r.value=!0,i),de(a,ao,()=>{var l,c,d;return r.value=(l=(c=a.value)===null||c===void 0||(d=c.matches)===null||d===void 0?void 0:d.call(c,lo))!==null&&l!==void 0?l:!1},i),{focused:s}}function io(t,{window:o=le,scrollTarget:n}={}){const a=e.ref(!1),r=()=>{if(!o)return;const s=o.document,i=re(t);if(!i)a.value=!1;else{const l=i.getBoundingClientRect();a.value=l.top<=(o.innerHeight||s.documentElement.clientHeight)&&l.left<=(o.innerWidth||s.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return e.watch(()=>re(t),()=>r(),{immediate:!0,flush:"post"}),o&&de(n||o,"scroll",r,{capture:!1,passive:!0}),a}const Y=t=>{let o=io(t).value;return o=o&&t.offsetHeight>0,o},X=t=>t.tabIndex>=0,st=t=>{const o=t.target;return Ae(o)},Ae=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.previousElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.previousElementSibling;n&&(o=n)}return o&&(!X(o)||!Y(o))?Ae(o):o},so=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.firstElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.firstElementChild;r&&(n=r)}}return n&&(!X(n)||!Y(n))?Ne(n):n},ct=t=>{const o=t.target;return Ne(o)},Ne=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.nextElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.nextElementSibling;n&&(o=n)}return o&&(!X(o)||!Y(o))?Ne(o):o},co=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.lastElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.lastElementChild;r&&(n=r)}}return n&&(!X(n)||!Y(n))?Ae(n):n},dt=t=>{const o=t.target;return Re(o)},Re=t=>{let o;return t.previousElementSibling?o=t.previousElementSibling:o=t.parentElement?.previousElementSibling?.lastElementChild,o&&(!X(o)||!Y(o))?Re(o):o},ft=t=>{const o=t.target;return $e(o)},$e=t=>{let o;return t.nextElementSibling?o=t.nextElementSibling:o=t.parentElement?.nextElementSibling?.firstElementChild,o&&(!X(o)||!Y(o))?$e(o):o},ut=t=>{const o=t.target.parentElement?.firstElementChild;return o&&(!X(o)||!Y(o))?$e(o):o},mt=t=>{const o=t.target.parentElement?.lastElementChild;return o&&(!X(o)||!Y(o))?Re(o):o},he=["alt","control","shift","meta"],fo={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},be={"keydown.up":t=>{const o=st(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.down":t=>{const o=ct(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.left":t=>{const o=dt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.right":t=>{const o=ft(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.control.up":t=>{const o=so(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.down":t=>{const o=co(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.left":t=>{const o=ut(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.right":t=>{const o=mt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.end":t=>{const o=mt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=ct(t);o&&o.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=st(t);o&&o.focus()}},"keydown.home":t=>{const o=ut(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.tab":t=>{const o=ft(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.shift.tab":t=>{const o=dt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())}};function ze(t){const o=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{const l=o(i);let c=[];if(typeof i.selectors=="string")c=Array.from(l?l.querySelectorAll(i.selectors):document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const d of i.selectors)d instanceof HTMLElement?c.push(d):c.push(d.$el);else if(i.selectors instanceof HTMLElement)c.push(i.selectors);else if(i.selectors?.value)if(Array.isArray(i.selectors.value))for(const d of i.selectors.value)d instanceof HTMLElement?c.push(d):c.push(d.$el);else c.push(i.selectors.value);return c},a=i=>{const l=o(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(d=>X(d)&&Y(d))),c},r=i=>l=>{const c=fo[l.key]||l.key.toLowerCase();if(he.includes(c))return;const d=i.handlers||be;for(const f of Object.keys(d)){const[g,...b]=f.split(".");if(g==="keydown"&&b.includes(c)){const x=d[f],k=b.filter(m=>he.includes(m)),v=he.some(m=>{const h=m.charAt(0).toUpperCase()+m.slice(1);return l.getModifierState(h)});if(k.length>0){if(v){for(const m of he)if(b.includes(m)){const h=m.charAt(0).toUpperCase()+m.slice(1);l.getModifierState(h)&&x(l)}}}else v||x(l)}}},s=[];e.onMounted(()=>{for(const i of t){const l=o(i),c=a(i),d=r(i),f=l?[l]:c;for(const g of f){const{focused:b}=ro(e.ref(g)),x=e.watch(b,k=>{k?g.addEventListener("keydown",d):g.removeEventListener("keydown",d)});s.push(x)}}}),e.onBeforeUnmount(()=>{for(const i of s)i()})}function _e(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const pt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const uo=t=>t!=null,mo=Object.prototype.toString,po=t=>mo.call(t)==="[object Object]",ne=()=>{};function go(...t){if(t.length!==1)return e.toRef(...t);const o=t[0];return typeof o=="function"?e.readonly(e.customRef(()=>({get:o,set:ne}))):e.ref(o)}function ho(t,o){function n(...a){return new Promise((r,s)=>{Promise.resolve(t(()=>o.apply(this,a),{fn:o,thisArg:this,args:a})).then(r).catch(s)})}return n}function bo(t,o={}){let n,a,r=ne;const s=l=>{clearTimeout(l),r(),r=ne};let i;return l=>{const c=e.toValue(t),d=e.toValue(o.maxWait);return n&&s(n),c<=0||d!==void 0&&d<=0?(a&&(s(a),a=void 0),Promise.resolve(l())):new Promise((f,g)=>{r=o.rejectOnCancel?g:f,i=l,d&&!a&&(a=setTimeout(()=>{n&&s(n),a=void 0,f(i())},d)),n=setTimeout(()=>{a&&s(a),a=void 0,f(l())},c)})}}function we(t){return Array.isArray(t)?t:[t]}function wo(t){return e.getCurrentInstance()}function vo(t,o=200,n={}){return ho(bo(o,n),t)}function xo(t,o={}){if(!e.isRef(t))return e.toRefs(t);const n=Array.isArray(t.value)?Array.from({length:t.value.length}):{};for(const a in t.value)n[a]=e.customRef(()=>({get(){return t.value[a]},set(r){var s;if(!((s=e.toValue(o.replaceRef))!==null&&s!==void 0)||s)if(Array.isArray(t.value)){const i=[...t.value];i[a]=r,t.value=i}else{const i={...t.value,[a]:r};Object.setPrototypeOf(i,Object.getPrototypeOf(t.value)),t.value=i}else t.value[a]=r}}));return n}function yo(t,o=!0,n){wo()?e.onMounted(t,n):o?t():e.nextTick(t)}function ko(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const fe=pt?window:void 0;function q(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function ee(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=we(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return ko(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>q(s)))!==null&&a!==void 0?a:[fe].filter(s=>s!=null),we(e.toValue(n.value?t[1]:t[0])),we(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=po(i)?{...i}:i,f=a.flatMap(g=>r.flatMap(b=>s.map(x=>o(g,b,x,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Le(t,o,n={}){const{window:a=fe,ignore:r=[],capture:s=!0,detectIframe:i=!1,controls:l=!1}=n;if(!a)return l?{stop:ne,cancel:ne,trigger:ne}:ne;let c=!0;const d=m=>e.toValue(r).some(h=>{if(typeof h=="string")return Array.from(a.document.querySelectorAll(h)).some(w=>w===m.target||m.composedPath().includes(w));{const w=q(h);return w&&(m.target===w||m.composedPath().includes(w))}});function f(m){const h=e.toValue(m);return h&&h.$.subTree.shapeFlag===16}function g(m,h){const w=e.toValue(m),E=w.$.subTree&&w.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(I=>I.el===h.target||h.composedPath().includes(I.el))}const b=m=>{const h=q(t);if(m.target!=null&&!(!(h instanceof Element)&&f(t)&&g(t,m))&&!(!h||h===m.target||m.composedPath().includes(h))){if("detail"in m&&m.detail===0&&(c=!d(m)),!c){c=!0;return}o(m)}};let x=!1;const k=[ee(a,"click",m=>{x||(x=!0,setTimeout(()=>{x=!1},0),b(m))},{passive:!0,capture:s}),ee(a,"pointerdown",m=>{const h=q(t);c=!d(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),i&&ee(a,"blur",m=>{setTimeout(()=>{var h;const w=q(t);((h=a.document.activeElement)===null||h===void 0?void 0:h.tagName)==="IFRAME"&&!w?.contains(a.document.activeElement)&&o(m)},0)},{passive:!0})].filter(Boolean),v=()=>k.forEach(m=>m());return l?{stop:v,cancel:()=>{c=!1},trigger:m=>{c=!0,b(m),c=!1}}:v}function Eo(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function gt(t){const o=Eo();return e.computed(()=>(o.value,!!t()))}function ht(t,o,n={}){const{window:a=fe,...r}=n;let s;const i=gt(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=we(e.toValue(t)).map(q).filter(uo);return new Set(g)}),g=>{l(),i.value&&g.size&&(s=new MutationObserver(o),g.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return _e(f),{isSupported:i,stop:f,takeRecords:d}}function He(t,o={}){var n;const{pointerTypes:a,preventDefault:r,stopPropagation:s,exact:i,onMove:l,onEnd:c,onStart:d,initialValue:f,axis:g="both",draggingElement:b=fe,containerElement:x,handle:k=t,buttons:v=[0]}=o,m=e.ref((n=e.toValue(f))!==null&&n!==void 0?n:{x:0,y:0}),h=e.ref(),w=C=>a?a.includes(C.pointerType):!0,E=C=>{e.toValue(r)&&C.preventDefault(),e.toValue(s)&&C.stopPropagation()},I=C=>{var T;if(!e.toValue(v).includes(C.button)||e.toValue(o.disabled)||!w(C)||e.toValue(i)&&C.target!==e.toValue(t))return;const P=e.toValue(x),L=P==null||(T=P.getBoundingClientRect)===null||T===void 0?void 0:T.call(P),z=e.toValue(t).getBoundingClientRect(),U={x:C.clientX-(P?z.left-L.left+P.scrollLeft:z.left),y:C.clientY-(P?z.top-L.top+P.scrollTop:z.top)};d?.(U,C)!==!1&&(h.value=U,E(C))},A=C=>{if(e.toValue(o.disabled)||!w(C)||!h.value)return;const T=e.toValue(x),P=e.toValue(t).getBoundingClientRect();let{x:L,y:z}=m.value;(g==="x"||g==="both")&&(L=C.clientX-h.value.x,T&&(L=Math.min(Math.max(0,L),T.scrollWidth-P.width))),(g==="y"||g==="both")&&(z=C.clientY-h.value.y,T&&(z=Math.min(Math.max(0,z),T.scrollHeight-P.height))),m.value={x:L,y:z},l?.(m.value,C),E(C)},B=C=>{e.toValue(o.disabled)||!w(C)||h.value&&(h.value=void 0,c?.(m.value,C),E(C))};if(pt){const C=()=>{var T;return{capture:(T=o.capture)!==null&&T!==void 0?T:!0,passive:!e.toValue(r)}};ee(k,"pointerdown",I,C),ee(b,"pointermove",A,C),ee(b,"pointerup",B,C)}return{...xo(m),position:m,isDragging:e.computed(()=>!!h.value),style:e.computed(()=>`left:${m.value.x}px;top:${m.value.y}px;`)}}function ve(t,o,n={}){const{window:a=fe,...r}=n;let s;const i=gt(()=>a&&"ResizeObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const f=e.toValue(t);return Array.isArray(f)?f.map(g=>q(g)):[q(f)]}),f=>{if(l(),i.value&&a){s=new ResizeObserver(o);for(const g of f)g&&s.observe(g,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return _e(d),{isSupported:i,stop:d}}function ae(t,o={}){const{reset:n=!0,windowResize:a=!0,windowScroll:r=!0,immediate:s=!0,updateTiming:i="sync"}=o,l=e.shallowRef(0),c=e.shallowRef(0),d=e.shallowRef(0),f=e.shallowRef(0),g=e.shallowRef(0),b=e.shallowRef(0),x=e.shallowRef(0),k=e.shallowRef(0);function v(){const h=q(t);if(!h){n&&(l.value=0,c.value=0,d.value=0,f.value=0,g.value=0,b.value=0,x.value=0,k.value=0);return}const w=h.getBoundingClientRect();l.value=w.height,c.value=w.bottom,d.value=w.left,f.value=w.right,g.value=w.top,b.value=w.width,x.value=w.x,k.value=w.y}function m(){i==="sync"?v():i==="next-frame"&&requestAnimationFrame(()=>v())}return ve(t,m),e.watch(()=>q(t),h=>!h&&m()),ht(t,m,{attributeFilter:["style","class"]}),r&&ee("scroll",m,{capture:!0,passive:!0}),a&&ee("resize",m,{passive:!0}),yo(()=>{s&&m()}),{height:l,bottom:c,left:d,right:f,top:g,width:b,x,y:k,update:m}}function Pe(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const Fe=new WeakMap;function Co(t,o=!1){const n=e.shallowRef(o);let a="";e.watch(go(t),i=>{const l=Pe(e.toValue(i));if(l){const c=l;if(Fe.get(c)||Fe.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const i=Pe(e.toValue(t));!i||n.value||(i.style.overflow="hidden",n.value=!0)},s=()=>{const i=Pe(e.toValue(t));!i||!n.value||(i.style.overflow=a,Fe.delete(i),n.value=!1)};return _e(s),e.computed({get(){return n.value},set(i){i?r():s()}})}const Mo=t=>{const o=new DOMParser().parseFromString(t,"text/html");return Array.from(o.body.childNodes).some(n=>n.nodeType===1)},Io=(t=8)=>Array.from({length:t},()=>Math.floor(Math.random()*16).toString(16)).join(""),Vo=["data-colindex","data-rowindex","data-editable","contenteditable","tabindex"],Bo=["innerHTML"],Do={key:2},So=e.defineComponent({__name:"ACell",props:{colIndex:{},rowIndex:{},store:{},addNavigation:{type:[Boolean,Object],default:!0},tabIndex:{default:0},pinned:{type:Boolean,default:!1},debounce:{default:300}},setup(t,{expose:o}){const n=e.useTemplateRef("cell"),a=t.store.getCellData(t.colIndex,t.rowIndex),r=e.ref(""),s=e.ref(!1),i=t.store.columns[t.colIndex],l=t.store.rows[t.rowIndex],c=i.align||"center",d=i.width||"40ch",f=e.computed(()=>t.store.getCellDisplayValue(t.colIndex,t.rowIndex)),g=e.computed(()=>typeof f.value=="string"?Mo(f.value):!1),b=e.computed(()=>({textAlign:c,width:d,fontWeight:s.value?"bold":"inherit",paddingLeft:t.store.getIndent(t.colIndex,t.store.display[t.rowIndex]?.indent)})),x=e.computed(()=>({"sticky-column":t.pinned,"cell-modified":s.value})),k=()=>{m(),v()},v=()=>{const{left:B,bottom:C,width:T,height:P}=ae(n);i.mask,i.modalComponent&&t.store.$patch(L=>{L.modal.visible=!0,L.modal.colIndex=t.colIndex,L.modal.rowIndex=t.rowIndex,L.modal.left=B,L.modal.bottom=C,L.modal.width=T,L.modal.height=P,L.modal.cell=n.value,typeof i.modalComponent=="function"?L.modal.component=i.modalComponent({table:L.table,row:l,column:i}):L.modal.component=i.modalComponent,L.modal.componentProps=i.modalComponentExtraProps})};if(t.addNavigation){let B={...be,"keydown.f2":v,"keydown.alt.up":v,"keydown.alt.down":v,"keydown.alt.left":v,"keydown.alt.right":v};typeof t.addNavigation=="object"&&(B={...B,...t.addNavigation}),ze([{selectors:n,handlers:B}])}const m=()=>{if(n.value&&i.edit){const B=window.getSelection();if(B)try{const C=document.createRange();C.selectNodeContents&&(C.selectNodeContents(n.value),B.removeAllRanges(),B.addRange(C))}catch{}}},h=()=>{n.value&&(r.value=n.value.textContent,m())},w=()=>{try{const B=window.getSelection();if(B&&B.rangeCount>0&&n.value){const C=B.getRangeAt(0),T=C.cloneRange();if(T.selectNodeContents&&T.setEnd)return T.selectNodeContents(n.value),T.setEnd(C.endContainer,C.endOffset),T.toString().length}}catch{}return 0},E=B=>{if(n.value)try{const C=window.getSelection();if(!C)return;let T=0;const P=document.createTreeWalker?document.createTreeWalker(n.value,NodeFilter.SHOW_TEXT,null):null;if(!P)return;let L,z=null;for(;L=P.nextNode();){const U=L,oe=T+U.textContent.length;if(B<=oe&&(z=document.createRange(),z.setStart&&z.setEnd)){z.setStart(U,B-T),z.setEnd(U,B-T);break}T=oe}z&&C.removeAllRanges&&C.addRange&&(C.removeAllRanges(),C.addRange(z))}catch{}},I=B=>{if(!i.edit)return;const C=B.target;if(C.textContent===r.value)return;const T=w();r.value=C.textContent,i.format?(s.value=C.textContent!==t.store.getFormattedValue(t.colIndex,t.rowIndex,a),t.store.setCellText(t.colIndex,t.rowIndex,C.textContent)):(s.value=C.textContent!==a,t.store.setCellData(t.colIndex,t.rowIndex,C.textContent)),e.nextTick().then(()=>{E(T)})},A=vo(I,t.debounce);return o({currentData:r}),(B,C)=>(e.openBlock(),e.createElementBlock("td",{ref:"cell","data-colindex":t.colIndex,"data-rowindex":t.rowIndex,"data-editable":e.unref(i).edit,contenteditable:e.unref(i).edit,tabindex:t.tabIndex,spellcheck:!1,style:e.normalizeStyle(b.value),class:e.normalizeClass(["atable-cell",x.value]),onFocus:h,onPaste:I,onInput:C[0]||(C[0]=(...T)=>e.unref(A)&&e.unref(A)(...T)),onClick:k},[e.unref(i).cellComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i).cellComponent),e.mergeProps({key:0,value:f.value},e.unref(i).cellComponentProps),null,16,["value"])):g.value?(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:f.value},null,8,Bo)):(e.openBlock(),e.createElementBlock("span",Do,e.toDisplayString(f.value),1))],46,Vo))}}),To=["tabindex"],Ao=["tabindex"],No=["colspan"],Ro=e.defineComponent({__name:"AExpansionRow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:()=>be}},setup(t){const o=e.useTemplateRef("rowEl"),n=e.computed(()=>t.store.display[t.rowIndex].expanded?"▼":"►");if(t.addNavigation){const a={"keydown.control.g":r=>{r.stopPropagation(),r.preventDefault(),t.store.toggleRowExpand(t.rowIndex)}};typeof t.addNavigation=="object"&&Object.assign(a,t.addNavigation),ze([{selectors:o,handlers:a}])}return(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("tr",e.mergeProps(a.$attrs,{ref:"rowEl",tabindex:t.tabIndex,class:"expandable-row"}),[e.createElementVNode("td",{tabIndex:-1,class:"row-index",onClick:r[0]||(r[0]=s=>t.store.toggleRowExpand(t.rowIndex))},e.toDisplayString(n.value),1),e.renderSlot(a.$slots,"row",{},void 0,!0)],16,To),t.store.display[t.rowIndex].expanded?(e.openBlock(),e.createElementBlock("tr",{key:0,ref:"rowExpanded",tabindex:t.tabIndex,class:"expanded-row"},[e.createElementVNode("td",{tabIndex:-1,colspan:t.store.columns.length+1,class:"expanded-row-content"},[e.renderSlot(a.$slots,"content",{},void 0,!0)],8,No)],8,Ao)):e.createCommentVNode("",!0)],64))}}),te=(t,o)=>{const n=t.__vccOpts||t;for(const[a,r]of o)n[a]=r;return n},$o=te(Ro,[["__scopeId","data-v-a42297c7"]]),zo=["colspan"],_o={ref:"container",class:"gantt-container"},Lo=["data-rowindex","data-colindex"],Ho={key:2,class:"gantt-label"},Po=["x1","y1","x2","y2"],Fo=e.defineComponent({__name:"AGanttCell",props:{store:{},columnsCount:{},rowIndex:{},colIndex:{},start:{default:0},end:{default:0},colspan:{default:1},label:{default:""},color:{default:"#cccccc"}},emits:["connection:create"],setup(t,{expose:o,emit:n}){e.useCssVars(S=>({v6d722296:r.value,v260b36f8:S.colspan}));const a=n,r=e.ref(t.color.length>=6?t.color:"#cccccc"),s=`gantt-bar-row-${t.rowIndex}-col-${t.colIndex}`,i=e.useTemplateRef("container"),l=e.useTemplateRef("bar"),c=e.useTemplateRef("leftResizeHandle"),d=e.useTemplateRef("rightResizeHandle"),f=e.useTemplateRef("leftConnectionHandle"),g=e.useTemplateRef("rightConnectionHandle"),{width:b}=ae(i),{left:x,right:k}=ae(l),v=e.ref(t.start),m=e.ref(t.end||v.value+t.colspan),h=e.ref(!1),w=e.ref(!1),E=e.ref(!1),I=e.ref(!1),A=e.ref(!1),B=e.ref({startX:0,startY:0,endX:0,endY:0}),C=e.computed(()=>Ce.value||U.value||oe.value),T=e.computed(()=>t.colspan>0?b.value/t.colspan:0),P=e.computed(()=>{const S=v.value/t.colspan*100,N=m.value/t.colspan*100;return{left:`${S}%`,width:`${N-S}%`,backgroundColor:r.value}}),L=e.computed(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",pointerEvents:"none",zIndex:1e3})),z=e.ref({startX:0,startPos:0}),{isDragging:U}=He(c,{axis:"x",onStart:()=>pe(x.value,v.value),onMove:({x:S})=>Qe(S),onEnd:({x:S})=>et(S)}),{isDragging:oe}=He(d,{axis:"x",onStart:()=>pe(k.value,m.value),onMove:({x:S})=>Me(S),onEnd:({x:S})=>tt(S)}),{isDragging:Ce}=He(l,{exact:!0,axis:"x",onStart:()=>pe(x.value,v.value),onMove:({x:S})=>Ie(S),onEnd:({x:S})=>ot(S)});e.onMounted(()=>{nt()}),e.onUnmounted(()=>{at()});function pe(S,N){l.value&&(l.value.style.transition="none"),z.value={startX:S,startPos:N}}function Qe(S){if(!U.value||!l.value)return;const N=(S-z.value.startX)/T.value,_=Math.max(0,Math.min(m.value-1,z.value.startPos+N));l.value.style.left=`${_/t.colspan*100}%`,l.value.style.width=`${(m.value-_)/t.colspan*100}%`}function et(S){if(!l.value)return;const N=S-z.value.startX,_=Math.round(N/T.value),H=v.value,Z=Math.max(0,Math.min(m.value-1,z.value.startPos+_));v.value=Z,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"resize",edge:"start",oldStart:H,newStart:Z,end:m.value,delta:_,oldColspan:m.value-H,newColspan:m.value-Z})}function Me(S){if(!oe.value||!l.value)return;const N=(S-z.value.startX)/T.value,_=Math.max(v.value+1,Math.min(t.columnsCount,z.value.startPos+N));l.value.style.width=`${(_-v.value)/t.colspan*100}%`}function tt(S){if(!l.value)return;const N=S-z.value.startX,_=Math.round(N/T.value),H=m.value,Z=Math.max(v.value+1,Math.min(t.columnsCount,z.value.startPos+_));m.value=Z,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"resize",edge:"end",oldEnd:H,newEnd:Z,start:v.value,delta:_,oldColspan:H-v.value,newColspan:Z-v.value})}function Ie(S){if(!Ce.value||!l.value)return;const N=(S-z.value.startX)/T.value,_=m.value-v.value,H=Math.max(0,Math.min(z.value.startPos+N,t.columnsCount-_));l.value.style.left=`${H/t.colspan*100}%`}function ot(S){if(!l.value)return;const N=S-z.value.startX,_=Math.round(N/T.value),H=m.value-v.value,Z=v.value,j=m.value;let G=z.value.startPos+_,W=G+H;G<0?(G=0,W=H):W>t.columnsCount&&(W=t.columnsCount,G=W-H),v.value=G,m.value=W,t.store.updateGanttBar({rowIndex:t.rowIndex,colIndex:t.colIndex,type:"bar",oldStart:Z,oldEnd:j,newStart:G,newEnd:W,delta:_,colspan:W-G})}function nt(){const{x:S,y:N}=ae(l),{x:_,y:H}=ae(f),{x:Z,y:j}=ae(g);t.store.registerGanttBar({id:s,rowIndex:t.rowIndex,colIndex:t.colIndex,startIndex:v,endIndex:m,color:r,label:t.label,position:{x:S,y:N}}),t.store.isDependencyGraphEnabled&&(t.store.registerConnectionHandle({id:`${s}-connection-left`,rowIndex:t.rowIndex,colIndex:t.colIndex,side:"left",position:{x:_,y:H},visible:h,barId:s}),t.store.registerConnectionHandle({id:`${s}-connection-right`,rowIndex:t.rowIndex,colIndex:t.colIndex,side:"right",position:{x:Z,y:j},visible:w,barId:s}))}function at(){t.store.unregisterGanttBar(s),t.store.isDependencyGraphEnabled&&(t.store.unregisterConnectionHandle(`${s}-connection-left`),t.store.unregisterConnectionHandle(`${s}-connection-right`))}function lt(){t.store.isDependencyGraphEnabled&&(h.value=!0,w.value=!0)}function Ve(){!E.value&&!I.value&&(h.value=!1,w.value=!1)}function Be(S,N){N.preventDefault(),N.stopPropagation(),A.value=!0,S==="left"?E.value=!0:I.value=!0;const _=S==="left"?f.value:g.value;if(_){const j=_.getBoundingClientRect(),G=j.left+j.width/2,W=j.top+j.height/2;B.value={startX:G,startY:W,endX:G,endY:W}}const H=j=>{B.value.endX=j.clientX,B.value.endY=j.clientY},Z=j=>{De(j,S),Se(H,Z)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",Z)}function De(S,N){const _=document.elementFromPoint(S.clientX,S.clientY)?.closest(".connection-handle");if(_&&_!==(N==="left"?f.value:g.value)){const H=_.closest(".gantt-bar");if(H){const Z=parseInt(H.getAttribute("data-rowindex")||"0"),j=parseInt(H.getAttribute("data-colindex")||"0"),G=_.classList.contains("left-connection-handle")?"left":"right",W=`gantt-bar-row-${Z}-col-${j}`,u=t.store.createConnection(`${s}-connection-${N}`,`${W}-connection-${G}`);u&&a("connection:create",u)}}}function Se(S,N){A.value=!1,E.value=!1,I.value=!1,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",N),l.value?.matches(":hover")||Ve()}return o({barStyle:P,cleanupConnectionDrag:Se,currentEnd:m,handleConnectionDrop:De,isLeftConnectionDragging:E,isLeftConnectionVisible:h,isRightConnectionDragging:I,isRightConnectionVisible:w,showDragPreview:A}),(S,N)=>(e.openBlock(),e.createElementBlock("td",{class:"aganttcell",colspan:t.colspan},[e.createElementVNode("div",_o,[e.createElementVNode("div",{ref:"bar","data-rowindex":t.rowIndex,"data-colindex":t.colIndex,class:e.normalizeClass(["gantt-bar",{"is-dragging":C.value}]),style:e.normalizeStyle(P.value),onMouseenter:lt,onMouseleave:Ve},[t.store.isDependencyGraphEnabled?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"leftConnectionHandle",class:e.normalizeClass(["connection-handle left-connection-handle",{visible:h.value,"is-dragging":E.value}]),onMousedown:N[0]||(N[0]=e.withModifiers(_=>Be("left",_),["stop"]))},[...N[2]||(N[2]=[e.createElementVNode("div",{class:"connection-dot"},null,-1)])],34)):e.createCommentVNode("",!0),t.store.isDependencyGraphEnabled?(e.openBlock(),e.createElementBlock("div",{key:1,ref:"rightConnectionHandle",class:e.normalizeClass(["connection-handle right-connection-handle",{visible:w.value,"is-dragging":I.value}]),onMousedown:N[1]||(N[1]=e.withModifiers(_=>Be("right",_),["stop"]))},[...N[3]||(N[3]=[e.createElementVNode("div",{class:"connection-dot"},null,-1)])],34)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"leftResizeHandle",class:e.normalizeClass(["resize-handle left-resize-handle",{"is-dragging":e.unref(U)}])},[...N[4]||(N[4]=[e.createElementVNode("div",{class:"handle-grip"},null,-1),e.createElementVNode("div",{class:"vertical-indicator left-indicator"},null,-1)])],2),t.label?(e.openBlock(),e.createElementBlock("label",Ho,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref:"rightResizeHandle",class:e.normalizeClass(["resize-handle right-resize-handle",{"is-dragging":e.unref(oe)}])},[...N[5]||(N[5]=[e.createElementVNode("div",{class:"handle-grip"},null,-1),e.createElementVNode("div",{class:"vertical-indicator right-indicator"},null,-1)])],2)],46,Lo)],512),t.store.isDependencyGraphEnabled&&A.value?(e.openBlock(),e.createElementBlock("svg",{key:0,style:e.normalizeStyle(L.value)},[e.createElementVNode("line",{x1:B.value.startX,y1:B.value.startY,x2:B.value.endX,y2:B.value.endY,stroke:"#2196f3","stroke-width":"2","stroke-dasharray":"5,5"},null,8,Po)],4)):e.createCommentVNode("",!0)],8,zo))}}),Oo=te(Fo,[["__scopeId","data-v-8917a8a3"]]),Zo=`<?xml version="1.0" encoding="UTF-8"?>
3
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
4
+ <path d="M32,64C14.35,64,0,49.65,0,32S14.35,0,32,0s32,14.35,32,32-14.35,32-32,32ZM32,4c-15.44,0-28,12.56-28,28s12.56,28,28,28,28-12.56,28-28S47.44,4,32,4Z" style="fill: #000; stroke-width: 0px;"/>
5
+ <polygon points="34 18 30 18 30 30 18 30 18 34 30 34 30 46 34 46 34 34 46 34 46 30 34 30 34 18" style="fill: #000; stroke-width: 0px;"/>
6
+ </svg>
7
+ `,jo=`<?xml version="1.0" encoding="UTF-8"?>
8
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
9
+ <path d="M32,64C14.35,64,0,49.65,0,32S14.35,0,32,0s32,14.35,32,32-14.35,32-32,32ZM32,4c-15.44,0-28,12.56-28,28s12.56,28,28,28,28-12.56,28-28S47.44,4,32,4Z" style="fill: #000; stroke-width: 0px;"/>
10
+ <polygon points="46.84 19.99 44.01 17.16 32 29.17 19.99 17.16 17.16 19.99 29.17 32 17.16 44.01 19.99 46.84 32 34.83 44.01 46.84 46.84 44.01 34.83 32 46.84 19.99" style="fill: #000; stroke-width: 0px;"/>
11
+ </svg>`,Wo=`<?xml version="1.0" encoding="UTF-8"?>
12
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.67">
13
+ <path d="M68.67,16.67h-14.67V2c0-1.1-.9-2-2-2H2C.9,0,0,.9,0,2v50c0,1.1.9,2,2,2h14.67v14.67c0,1.1.9,2,2,2h50c1.1,0,2-.9,2-2V18.67c0-1.1-.9-2-2-2ZM4,4h46v46H4V4ZM66.67,66.67H20.67v-12.67h31.33c1.1,0,2-.9,2-2v-31.33h12.67v46Z" style="fill: #000; stroke-width: 0px;"/>
14
+ <polygon points="41 25 29 25 29 13 25 13 25 25 13 25 13 29 25 29 25 41 29 41 29 29 41 29 41 25" style="fill: #000; stroke-width: 0px;"/>
15
+ </svg>`,Go=`<?xml version="1.0" encoding="UTF-8"?>
16
+ <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 70.6 61.5">
17
+ <path d="M68.6,45.8v13.7H2v-13.7h66.6M70.6,43.8H0v17.7h70.6v-17.7h0Z"/>
18
+ <path d="M68.6,24.2v13.7H2v-13.7h66.6M70.6,22.2H0v17.7h70.6v-17.7h0Z"/>
19
+ <g>
20
+ <polygon points="70.6 2.5 68.6 2.5 68.6 2 68.1 2 68.1 0 70.6 0 70.6 2.5"/>
21
+ <path d="M65.3,2h-2.9V0h2.9v2ZM59.6,2h-2.9V0h2.9v2ZM53.9,2h-2.9V0h2.9v2ZM48.2,2h-2.9V0h2.9v2ZM42.4,2h-2.9V0h2.9v2ZM36.7,2h-2.9V0h2.9v2ZM31,2h-2.9V0h2.9v2ZM25.3,2h-2.9V0h2.9v2ZM19.6,2h-2.9V0h2.9v2ZM13.9,2h-2.9V0h2.9v2ZM8.2,2h-2.9V0h2.9v2Z"/>
22
+ <polygon points="2 2.5 0 2.5 0 0 2.5 0 2.5 2 2 2 2 2.5"/>
23
+ <path d="M2,13.4H0v-2.7h2v2.7ZM2,8H0v-2.7h2v2.7Z"/>
24
+ <polygon points="2.5 18.7 0 18.7 0 16.2 2 16.2 2 16.7 2.5 16.7 2.5 18.7"/>
25
+ <path d="M65.3,18.7h-2.9v-2h2.9v2ZM59.6,18.7h-2.9v-2h2.9v2ZM53.9,18.7h-2.9v-2h2.9v2ZM48.2,18.7h-2.9v-2h2.9v2ZM42.4,18.7h-2.9v-2h2.9v2ZM36.7,18.7h-2.9v-2h2.9v2ZM31,18.7h-2.9v-2h2.9v2ZM25.3,18.7h-2.9v-2h2.9v2ZM19.6,18.7h-2.9v-2h2.9v2ZM13.9,18.7h-2.9v-2h2.9v2ZM8.2,18.7h-2.9v-2h2.9v2Z"/>
26
+ <polygon points="70.6 18.7 68.1 18.7 68.1 16.7 68.6 16.7 68.6 16.2 70.6 16.2 70.6 18.7"/>
27
+ <path d="M70.6,13.4h-2v-2.7h2v2.7ZM70.6,8h-2v-2.7h2v2.7Z"/>
28
+ </g>
29
+ </svg>`,Uo=`<?xml version="1.0" encoding="UTF-8"?>
30
+ <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 70.6 61.5">
31
+ <g>
32
+ <polygon points="70.6 45.3 68.6 45.3 68.6 44.8 68.1 44.8 68.1 42.8 70.6 42.8 70.6 45.3"/>
33
+ <path d="M65.3,44.8h-2.9v-2h2.9v2ZM59.6,44.8h-2.9v-2h2.9v2ZM53.9,44.8h-2.9v-2h2.9v2ZM48.2,44.8h-2.9v-2h2.9v2ZM42.4,44.8h-2.9v-2h2.9v2ZM36.7,44.8h-2.9v-2h2.9v2ZM31,44.8h-2.9v-2h2.9v2ZM25.3,44.8h-2.9v-2h2.9v2ZM19.6,44.8h-2.9v-2h2.9v2ZM13.9,44.8h-2.9v-2h2.9v2ZM8.2,44.8h-2.9v-2h2.9v2Z"/>
34
+ <polygon points="2 45.3 0 45.3 0 42.8 2.5 42.8 2.5 44.8 2 44.8 2 45.3"/>
35
+ <path d="M2,56.3H0v-2.7h2v2.7ZM2,50.8H0v-2.7h2v2.7Z"/>
36
+ <polygon points="2.5 61.5 0 61.5 0 59 2 59 2 59.5 2.5 59.5 2.5 61.5"/>
37
+ <path d="M65.3,61.5h-2.9v-2h2.9v2ZM59.6,61.5h-2.9v-2h2.9v2ZM53.9,61.5h-2.9v-2h2.9v2ZM48.2,61.5h-2.9v-2h2.9v2ZM42.4,61.5h-2.9v-2h2.9v2ZM36.7,61.5h-2.9v-2h2.9v2ZM31,61.5h-2.9v-2h2.9v2ZM25.3,61.5h-2.9v-2h2.9v2ZM19.6,61.5h-2.9v-2h2.9v2ZM13.9,61.5h-2.9v-2h2.9v2ZM8.2,61.5h-2.9v-2h2.9v2Z"/>
38
+ <polygon points="70.6 61.5 68.1 61.5 68.1 59.5 68.6 59.5 68.6 59 70.6 59 70.6 61.5"/>
39
+ <path d="M70.6,56.3h-2v-2.7h2v2.7ZM70.6,50.8h-2v-2.7h2v2.7Z"/>
40
+ </g>
41
+ <path d="M68.6,23.7v13.7H2v-13.7h66.6M70.6,21.7H0v17.7h70.6v-17.7h0Z"/>
42
+ <path d="M68.6,2v13.7H2V2h66.6M70.6,0H0v17.7h70.6V0h0Z"/>
43
+ </svg>`,qo=`<?xml version="1.0" encoding="UTF-8"?>
44
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.64">
45
+ <path d="M70.08,33.9l-9.75-9.75-2.83,2.83,6.33,6.33h-26.51V6.81l6.33,6.33,2.83-2.83L36.75.56c-.75-.75-2.08-.75-2.83,0l-9.75,9.75,2.83,2.83,6.33-6.33v26.5H6.83l6.33-6.33-2.83-2.83L.59,33.9c-.38.38-.59.88-.59,1.41s.21,1.04.59,1.41l9.75,9.75,2.83-2.83-6.33-6.33h26.5v26.51l-6.33-6.33-2.83,2.83,9.75,9.75c.38.38.88.59,1.41.59s1.04-.21,1.41-.59l9.75-9.75-2.83-2.83-6.33,6.33v-26.51h26.51l-6.33,6.33,2.83,2.83,9.75-9.75c.38-.38.59-.88.59-1.41s-.21-1.04-.59-1.41Z" style="fill: #000; stroke-width: 0px;"/>
46
+ </svg>`,Yo={add:Zo,delete:jo,duplicate:Wo,insertAbove:Go,insertBelow:Uo,move:qo},Xo={key:0,class:"row-actions-dropdown"},Jo=["aria-expanded"],Ko=["onClick"],Qo=["innerHTML"],en={class:"action-label"},tn={key:1,class:"row-actions-icons"},on=["title","aria-label","onClick"],nn=["innerHTML"],xe=e.defineComponent({__name:"ARowActions",props:{rowIndex:{},store:{},config:{},position:{}},emits:["action"],setup(t,{emit:o}){const n=t,a=o,r=e.useTemplateRef("actionsCell"),s=e.useTemplateRef("toggleButton"),i=e.ref(0),l=e.ref(!1),c=e.ref(!1),d=e.ref({top:0,left:0}),f={add:"Add Row",delete:"Delete Row",duplicate:"Duplicate Row",insertAbove:"Insert Above",insertBelow:"Insert Below",move:"Move Row"},g=e.computed(()=>{const h=[],w=n.config.actions||{},E=["add","delete","duplicate","insertAbove","insertBelow","move"];for(const I of E){const A=w[I];if(A===!1||A===void 0)continue;let B=!0,C=f[I],T=Yo[I];typeof A=="object"&&(B=A.enabled!==!1,C=A.label||C,T=A.icon||T),B&&h.push({type:I,label:C,icon:T})}return h}),b=e.computed(()=>{if(n.config.forceDropdown)return!0;const h=n.config.dropdownThreshold??150;return h===0?!1:i.value>0&&i.value<h}),x=e.computed(()=>l.value?c.value?{position:"fixed",bottom:`${window.innerHeight-d.value.top}px`,left:`${d.value.left}px`,top:"auto"}:{position:"fixed",top:`${d.value.top}px`,left:`${d.value.left}px`}:{});ve(r,h=>{const w=h[0];w&&(i.value=w.contentRect.width)});const k=()=>{l.value||v(),l.value=!l.value},v=()=>{if(!s.value)return;const h=s.value.getBoundingClientRect(),w=window.innerHeight,E=g.value.length*40+16,I=w-h.bottom,A=h.top;c.value=I<E&&A>E,c.value?d.value={top:h.top,left:h.left}:d.value={top:h.bottom,left:h.left}};Le(r,()=>{l.value=!1});const m=h=>{l.value=!1;const w=n.config.actions?.[h];typeof w=="object"&&w.handler&&w.handler(n.rowIndex,n.store)===!1||a("action",h,n.rowIndex)};return(h,w)=>(e.openBlock(),e.createElementBlock("td",{ref:"actionsCell",class:e.normalizeClass(["atable-row-actions",{"sticky-column":t.position==="before-index","dropdown-active":l.value}])},[b.value?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("button",{ref:"toggleButton",type:"button",class:"row-actions-toggle","aria-expanded":l.value,"aria-haspopup":"true",onClick:e.withModifiers(k,["stop"])},[...w[0]||(w[0]=[e.createElementVNode("span",{class:"dropdown-icon"},"⋮",-1)])],8,Jo),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["row-actions-menu",{"menu-flipped":c.value}]),style:e.normalizeStyle(x.value),role:"menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,E=>(e.openBlock(),e.createElementBlock("button",{key:E.type,type:"button",class:"row-action-menu-item",role:"menuitem",onClick:e.withModifiers(I=>m(E.type),["stop"])},[e.createElementVNode("span",{class:"action-icon",innerHTML:E.icon},null,8,Qo),e.createElementVNode("span",en,e.toDisplayString(E.label),1)],8,Ko))),128))],6),[[e.vShow,l.value]])])):(e.openBlock(),e.createElementBlock("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,E=>(e.openBlock(),e.createElementBlock("button",{key:E.type,type:"button",class:"row-action-btn",title:E.label,"aria-label":E.label,onClick:e.withModifiers(I=>m(E.type),["stop"])},[e.createElementVNode("span",{class:"action-icon",innerHTML:E.icon},null,8,nn)],8,on))),128))]))],2))}}),an=["tabindex"],ln=e.defineComponent({__name:"ARow",props:{rowIndex:{},store:{},tabIndex:{default:()=>-1},addNavigation:{type:[Boolean,Object],default:!1}},emits:["row:action"],setup(t,{emit:o}){const n=o,a=e.useTemplateRef("rowEl"),r=e.computed(()=>t.store.isRowVisible(t.rowIndex)),s=e.computed(()=>t.store.getRowExpandSymbol(t.rowIndex)),i=e.computed(()=>t.store.config.rowActions||{enabled:!1}),l=e.computed(()=>i.value.enabled),c=e.computed(()=>i.value.position||"before-index"),d=(f,g)=>{n("row:action",f,g)};if(t.addNavigation){let f=be;typeof t.addNavigation=="object"&&(f={...f,...t.addNavigation}),ze([{selectors:a,handlers:f}])}return(f,g)=>e.withDirectives((e.openBlock(),e.createElementBlock("tr",{ref:"rowEl",tabindex:t.tabIndex,class:"atable-row"},[l.value&&c.value==="before-index"?(e.openBlock(),e.createBlock(xe,{key:0,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0),t.store.config.view!=="uncounted"?e.renderSlot(f.$slots,"index",{key:1},()=>[t.store.config.view==="list"?(e.openBlock(),e.createElementBlock("td",{key:0,tabIndex:-1,class:e.normalizeClass(["list-index",t.store.hasPinnedColumns?"sticky-index":""])},e.toDisplayString(t.rowIndex+1),3)):t.store.isTreeView?(e.openBlock(),e.createElementBlock("td",{key:1,tabIndex:-1,class:e.normalizeClass(["tree-index",t.store.hasPinnedColumns?"sticky-index":""]),onClick:g[0]||(g[0]=b=>t.store.toggleRowExpand(t.rowIndex))},e.toDisplayString(s.value),3)):e.createCommentVNode("",!0)],!0):e.createCommentVNode("",!0),l.value&&c.value==="after-index"?(e.openBlock(),e.createBlock(xe,{key:2,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"default",{},void 0,!0),l.value&&c.value==="end"?(e.openBlock(),e.createBlock(xe,{key:3,"row-index":t.rowIndex,store:t.store,config:i.value,position:c.value,onAction:d},null,8,["row-index","store","config","position"])):e.createCommentVNode("",!0)],8,an)),[[e.vShow,r.value]])}}),bt=te(ln,[["__scopeId","data-v-c35a3748"]]),Oe=new WeakMap,rn={mounted(t,o){const n=!o.modifiers.bubble;let a;if(typeof o.value=="function")a=Le(t,o.value,{capture:n});else{const[r,s]=o.value;a=Le(t,r,Object.assign({capture:n},s))}Oe.set(t,a)},unmounted(t){const o=Oe.get(t);o&&typeof o=="function"?o():o?.stop(),Oe.delete(t)}},sn={mounted(t,o){typeof o.value=="function"?ve(t,o.value):ve(t,...o.value)}};function cn(){let t=!1;const o=e.shallowRef(!1);return(n,a)=>{if(o.value=a.value,t)return;t=!0;const r=Co(n,a.value);e.watch(o,s=>r.value=s)}}cn();const dn={class:"gantt-connection-overlay"},fn={class:"connection-svg",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1}},un=["d","stroke-width","onDblclick"],mn=["id","d","stroke","stroke-width","onDblclick"],pn=.25,ye=16,gn=e.defineComponent({__name:"AGanttConnection",props:{store:{}},emits:["connection:delete"],setup(t,{emit:o}){const n=o,a=e.computed(()=>t.store.connectionPaths.filter(i=>{const l=t.store.ganttBars.find(d=>d.id===i.from.barId),c=t.store.ganttBars.find(d=>d.id===i.to.barId);return l&&c})),r=i=>{const l=t.store.connectionHandles.find(C=>C.barId===i.from.barId&&C.side===i.from.side),c=t.store.connectionHandles.find(C=>C.barId===i.to.barId&&C.side===i.to.side);if(!l||!c)return"";const d=l.position.x+ye/2,f=l.position.y+ye/2,g=c.position.x+ye/2,b=c.position.y+ye/2,x=Math.abs(g-d),k=Math.max(x*pn,50),v=d+(i.from.side==="left"?-k:k),m=g+(i.to.side==="left"?-k:k),h={x:.5*d+.5*v,y:.5*f+.5*f},w={x:.5*v+.5*m,y:.5*f+.5*b},E={x:.5*m+.5*g,y:.5*b+.5*b},I={x:.5*h.x+.5*w.x,y:.5*h.y+.5*w.y},A={x:.5*w.x+.5*E.x,y:.5*w.y+.5*E.y},B={x:.5*I.x+.5*A.x,y:.5*I.y+.5*A.y};return`M ${d} ${f} Q ${v} ${f}, ${B.x} ${B.y} Q ${m} ${b}, ${g} ${b}`},s=i=>{t.store.deleteConnection(i.id)&&n("connection:delete",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",dn,[(e.openBlock(),e.createElementBlock("svg",fn,[l[0]||(l[0]=e.createElementVNode("defs",null,[e.createElementVNode("path",{id:"arrowhead",d:"M 0 -7 L 20 0 L 0 7Z",stroke:"black","stroke-width":"1",fill:"currentColor"}),e.createElementVNode("marker",{id:"arrowhead-marker",markerWidth:"10",markerHeight:"7",refX:"5",refY:"3.5",orient:"auto",markerUnits:"strokeWidth"},[e.createElementVNode("polygon",{points:"0 0, 10 3.5, 0 7",fill:"currentColor"})])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("path",{key:`${c.id}-hitbox`,d:r(c),stroke:"transparent","stroke-width":(c.style?.width||2)+10,fill:"none",class:"connection-hitbox",onDblclick:d=>s(c)},null,40,un))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createElementBlock("path",{id:c.id,key:c.id,d:r(c),stroke:c.style?.color||"#666","stroke-width":c.style?.width||2,fill:"none","marker-mid":"url(#arrowhead-marker)",class:"connection-path animated-path",onDblclick:d=>s(c)},null,40,mn))),128))]))]))}}),hn=te(gn,[["__scopeId","data-v-71911260"]]),bn={class:"column-filter"},wn={key:2,class:"checkbox-filter"},vn=["value"],xn={key:5,class:"date-range-filter"},yn=e.defineComponent({__name:"ATableColumnFilter",props:{column:{},colIndex:{},store:{}},setup(t){const o=e.ref(""),n=e.reactive({startValue:"",endValue:""}),a=c=>{if(c.filterOptions)return c.filterOptions;const d=new Set;return t.store.rows.forEach(f=>{const g=f[c.name];g!=null&&g!==""&&d.add(g)}),Array.from(d).map(f=>({value:f,label:String(f)}))},r=e.computed(()=>!!(o.value||n.startValue||n.endValue)),s=c=>{!c&&t.column.filterType!=="checkbox"?(t.store.clearFilter(t.colIndex),o.value=""):(o.value=c,t.store.setFilter(t.colIndex,{value:c}))},i=(c,d)=>{c==="start"?n.startValue=d:n.endValue=d,!n.startValue&&!n.endValue?t.store.clearFilter(t.colIndex):t.store.setFilter(t.colIndex,{value:null,startValue:n.startValue,endValue:n.endValue})},l=()=>{o.value="",n.startValue="",n.endValue="",t.store.clearFilter(t.colIndex)};return(c,d)=>(e.openBlock(),e.createElementBlock("div",bn,[(t.column.filterType||"text")==="text"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"text",class:"filter-input",onInput:d[1]||(d[1]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="number"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f),type:"number",class:"filter-input",onInput:d[3]||(d[3]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="checkbox"?(e.openBlock(),e.createElementBlock("label",wn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[4]||(d[4]=f=>o.value=f),type:"checkbox",class:"filter-checkbox",onChange:d[5]||(d[5]=f=>s(o.value))},null,544),[[e.vModelCheckbox,o.value]]),e.createElementVNode("span",null,e.toDisplayString(t.column.label),1)])):t.column.filterType==="select"?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:3,"onUpdate:modelValue":d[6]||(d[6]=f=>o.value=f),class:"filter-select",onChange:d[7]||(d[7]=f=>s(o.value))},[d[15]||(d[15]=e.createElementVNode("option",{value:""},"All",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a(t.column),f=>(e.openBlock(),e.createElementBlock("option",{key:f.value||f,value:f.value||f},e.toDisplayString(f.label||f),9,vn))),128))],544)),[[e.vModelSelect,o.value]]):t.column.filterType==="date"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:4,"onUpdate:modelValue":d[8]||(d[8]=f=>o.value=f),type:"date",class:"filter-input",onChange:d[9]||(d[9]=f=>s(o.value))},null,544)),[[e.vModelText,o.value]]):t.column.filterType==="dateRange"?(e.openBlock(),e.createElementBlock("div",xn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[10]||(d[10]=f=>n.startValue=f),type:"date",class:"filter-input",onChange:d[11]||(d[11]=f=>i("start",n.startValue))},null,544),[[e.vModelText,n.startValue]]),d[16]||(d[16]=e.createElementVNode("span",{class:"date-separator"},"-",-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[12]||(d[12]=f=>n.endValue=f),type:"date",class:"filter-input",onChange:d[13]||(d[13]=f=>i("end",n.endValue))},null,544),[[e.vModelText,n.endValue]])])):t.column.filterType==="component"&&t.column.filterComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.column.filterComponent),{key:6,value:o.value,column:t.column,colIndex:t.colIndex,store:t.store,"onUpdate:value":d[14]||(d[14]=f=>s(f))},null,40,["value","column","colIndex","store"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("button",{key:7,onClick:l,class:"clear-btn",title:"Clear"},"×")):e.createCommentVNode("",!0)]))}}),kn=te(yn,[["__scopeId","data-v-8487462d"]]),En={key:0},Cn={class:"atable-header-row",tabindex:"-1"},Mn={key:2,class:"row-actions-header"},In=["data-colindex","onClick"],Vn={key:3,class:"row-actions-header"},Bn={key:0,class:"atable-filters-row"},Dn={key:2,class:"row-actions-header"},Sn={key:3,class:"row-actions-header"},wt=e.defineComponent({__name:"ATableHeader",props:{columns:{},store:{}},setup(t){const o=t,n=e.computed(()=>o.columns.filter(l=>l.filterable)),a=e.computed(()=>o.store.config.value?.rowActions?.enabled??!1),r=e.computed(()=>o.store.config.value?.rowActions?.position??"before-index"),s=l=>o.store.sortByColumn(l),i=l=>{for(const c of l){if(c.borderBoxSize.length===0)continue;const d=c.borderBoxSize[0].inlineSize,f=Number(c.target.dataset.colindex),g=o.store.columns[f]?.width;typeof g=="number"&&g!==d&&o.store.resizeColumn(f,d)}};return(l,c)=>o.columns.length?(e.openBlock(),e.createElementBlock("thead",En,[e.createElementVNode("tr",Cn,[a.value&&r.value==="before-index"?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["row-actions-header",{"sticky-column":r.value==="before-index"}])},null,2)):e.createCommentVNode("",!0),o.store.zeroColumn?(e.openBlock(),e.createElementBlock("th",{key:1,id:"header-index",class:e.normalizeClass([[o.store.hasPinnedColumns?"sticky-index":"",o.store.isTreeView?"tree-index":"",o.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):e.createCommentVNode("",!0),a.value&&r.value==="after-index"?(e.openBlock(),e.createElementBlock("th",Mn)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(d,f)=>e.withDirectives((e.openBlock(),e.createElementBlock("th",{key:d.name,"data-colindex":f,tabindex:"-1",style:e.normalizeStyle(o.store.getHeaderCellStyle(d)),class:e.normalizeClass(`${d.pinned?"sticky-column":""} ${d.sortable===!1?"":"cursor-pointer"}`),onClick:g=>d.sortable!==!1?s(f):void 0},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label||String.fromCharCode(f+97).toUpperCase()),1)])],14,In)),[[e.unref(sn),i]])),128)),a.value&&r.value==="end"?(e.openBlock(),e.createElementBlock("th",Vn)):e.createCommentVNode("",!0)]),n.value.length>0?(e.openBlock(),e.createElementBlock("tr",Bn,[a.value&&r.value==="before-index"?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["row-actions-header",{"sticky-column":r.value==="before-index"}])},null,2)):e.createCommentVNode("",!0),o.store.zeroColumn?(e.openBlock(),e.createElementBlock("th",{key:1,class:e.normalizeClass([[o.store.hasPinnedColumns?"sticky-index":"",o.store.isTreeView?"tree-index":"",o.store.config.view==="list-expansion"?"list-expansion-index":""],"list-index"])},null,2)):e.createCommentVNode("",!0),a.value&&r.value==="after-index"?(e.openBlock(),e.createElementBlock("th",Dn)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(d,f)=>(e.openBlock(),e.createElementBlock("th",{key:`filter-${d.name}`,class:e.normalizeClass(`${d.pinned?"sticky-column":""}`),style:e.normalizeStyle(o.store.getHeaderCellStyle(d))},[d.filterable?(e.openBlock(),e.createBlock(kn,{key:0,column:d,"col-index":f,store:o.store},null,8,["column","col-index","store"])):e.createCommentVNode("",!0)],6))),128)),a.value&&r.value==="end"?(e.openBlock(),e.createElementBlock("th",Sn)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}),vt=e.defineComponent({__name:"ATableModal",props:{store:{}},setup(t){const o=e.useTemplateRef("amodal"),{width:n,height:a}=ae(o),r=e.computed(()=>{if(!(t.store.modal.height&&t.store.modal.width&&t.store.modal.left&&t.store.modal.bottom))return;const s=t.store.modal.cell?.closest("table");if(!s)return{};const i=s.offsetHeight||0,l=s.offsetWidth||0;let c=t.store.modal.cell?.offsetTop||0;const d=s.querySelector("thead")?.offsetHeight||0;c+=d,c=c+a.value<i?c:c-(a.value+t.store.modal.height);let f=t.store.modal.cell?.offsetLeft||0;return f=f+n.value<=l?f:f-(n.value-t.store.modal.width),{left:`${f}px`,top:`${c}px`}});return(s,i)=>(e.openBlock(),e.createElementBlock("div",{ref:"amodal",class:"amodal",tabindex:"-1",style:e.normalizeStyle(r.value),onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),onInput:i[1]||(i[1]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(s.$slots,"default")],36))}}),Tn=t=>{const o=t.id||Io();return Wt.defineStore(`table-${o}`,()=>{const n=()=>{const u=[Object.assign({},{rowModified:!1})],p=new Set;for(let M=0;M<r.value.length;M++){const V=r.value[M];V.parent!==null&&V.parent!==void 0&&p.add(V.parent)}const y=M=>r.value[M]?.gantt!==void 0,D=M=>{for(let V=0;V<r.value.length;V++)if(r.value[V].parent===M&&(y(V)||D(V)))return!0;return!1},R=M=>{const V=s.value,$=V.view==="tree"||V.view==="tree-gantt"?V.defaultTreeExpansion:void 0;if(!$)return!0;switch($){case"root":return!1;case"branch":return D(M);case"leaf":return!0;default:return!0}};for(let M=0;M<r.value.length;M++){const V=r.value[M],$=V.parent===null||V.parent===void 0,F=p.has(M);u[M]={childrenOpen:R(M),expanded:!1,indent:V.indent||0,isParent:F,isRoot:$,rowModified:!1,open:$,parent:V.parent}}return u},a=e.ref(t.columns),r=e.ref(t.rows),s=e.ref(t.config||{}),i=e.ref({}),l=e.ref({}),c=e.computed(()=>{const u={};for(const[p,y]of a.value.entries())for(const[D,R]of r.value.entries())u[`${p}:${D}`]=R[y.name];return u}),d=e.computed({get:()=>{const u=n();for(let p=0;p<u.length;p++)i.value[p]&&(u[p].rowModified=i.value[p]),l.value[p]&&(l.value[p].childrenOpen!==void 0&&(u[p].childrenOpen=l.value[p].childrenOpen),l.value[p].expanded!==void 0&&(u[p].expanded=l.value[p].expanded));if(E.value){const p=(y,D)=>{const R=D[y];if(R.isRoot||R.parent===null||R.parent===void 0)return!0;const M=R.parent;return M<0||M>=D.length?!1:(D[M].childrenOpen||!1)&&p(M,D)};for(let y=0;y<u.length;y++)u[y].isRoot||(u[y].open=p(y,u))}return u},set:u=>{JSON.stringify(u)!==JSON.stringify(d.value)&&(d.value=u)}}),f=e.ref(t.modal||{visible:!1}),g=e.ref({}),b=e.ref([]),x=e.ref([]),k=e.ref([]),v=e.ref({column:null,direction:null}),m=e.ref({}),h=e.computed(()=>a.value.some(u=>u.pinned)),w=e.computed(()=>s.value.view==="gantt"||s.value.view==="tree-gantt"),E=e.computed(()=>s.value.view==="tree"||s.value.view==="tree-gantt"),I=e.computed(()=>{const u=s.value;return u.view==="gantt"||u.view==="tree-gantt"?u.dependencyGraph!==!1:!0}),A=e.computed(()=>`${Math.ceil(r.value.length/100+1)}ch`),B=e.computed(()=>s.value.view?["list","tree","tree-gantt","list-expansion"].includes(s.value.view):!1),C=e.computed(()=>{let u=r.value.map((p,y)=>({...p,originalIndex:y}));if(Object.entries(m.value).forEach(([p,y])=>{const D=parseInt(p),R=a.value[D];!R||!(y.value||y.startValue||y.endValue||R.filterType==="checkbox"&&y.value!==void 0)||(u=u.filter(M=>{const V=M[R.name];return Z(V,y,R)}))}),v.value.column!==null&&v.value.direction){const p=a.value[v.value.column],y=v.value.direction;u.sort((D,R)=>{let M=D[p.name],V=R[p.name];M==null&&(M=""),V==null&&(V="");const $=Number(M),F=Number(V);if(!isNaN($)&&!isNaN(F)&&M!==""&&V!=="")return y==="asc"?$-F:F-$;{const Te=String(M).toLowerCase(),jt=String(V).toLowerCase();return y==="asc"?Te.localeCompare(jt):jt.localeCompare(Te)}})}return u}),T=(u,p)=>c.value[`${u}:${p}`],P=(u,p,y)=>{const D=`${u}:${p}`,R=a.value[u];c.value[D]!==y&&(i.value[p]=!0),c.value[D]=y,r.value[p]={...r.value[p],[R.name]:y}},L=u=>{r.value=u},z=(u,p,y)=>{const D=`${u}:${p}`;c.value[D]!==y&&(i.value[p]=!0,g.value[D]=y)},U=u=>{const p=a.value.indexOf(u)===a.value.length-1,y=s.value.fullWidth?u.resizable&&!p:u.resizable;return{width:u.width||"40ch",textAlign:u.align||"center",...y&&{resize:"horizontal",overflow:"hidden",whiteSpace:"nowrap"}}},oe=(u,p)=>{if(u<0||u>=a.value.length)return;const y=Math.max(p,40);a.value[u]={...a.value[u],width:`${y}px`}},Ce=u=>{const p=r.value[u];return w.value&&p.gantt!==void 0},pe=u=>!E.value||d.value[u].isRoot||d.value[u].open,Qe=u=>!E.value&&s.value.view!=="list-expansion"?"":E.value&&(d.value[u].isRoot||d.value[u].isParent)?d.value[u].childrenOpen?"▼":"►":s.value.view==="list-expansion"?d.value[u].expanded?"▼":"►":"",et=u=>{if(E.value){const p=l.value[u]||{},y=!(p.childrenOpen??d.value[u].childrenOpen);l.value[u]={...p,childrenOpen:y},y||Me(u)}else if(s.value.view==="list-expansion"){const p=l.value[u]||{},y=p.expanded??d.value[u].expanded;l.value[u]={...p,expanded:!y}}},Me=u=>{for(let p=0;p<r.value.length;p++)if(d.value[p].parent===u){const y=l.value[p]||{};l.value[p]={...y,childrenOpen:!1},Me(p)}},tt=(u,p)=>{const y=T(u,p);return Ie(u,p,y)},Ie=(u,p,y)=>{const D=a.value[u],R=r.value[p],M=D.format;return M?typeof M=="function"?M(y,{table:c.value,row:R,column:D}):typeof M=="string"?Function(`"use strict";return (${M})`)()(y,{table:c.value,row:R,column:D}):y:y},ot=u=>{u.target instanceof Node&&f.value.parent?.contains(u.target)||f.value.visible&&(f.value.visible=!1)},nt=(u,p)=>p&&u===0&&p>0?`${p}ch`:"inherit",at=u=>{const p=r.value[u.rowIndex]?.gantt;p&&(u.type==="resize"?u.edge==="start"?(p.startIndex=u.newStart,p.endIndex=u.end,p.colspan=p.endIndex-p.startIndex):u.edge==="end"&&(p.startIndex=u.start,p.endIndex=u.newEnd,p.colspan=p.endIndex-p.startIndex):u.type==="bar"&&(p.startIndex=u.newStart,p.endIndex=u.newEnd,p.colspan=p.endIndex-p.startIndex))},lt=u=>{const p=b.value.findIndex(y=>y.id===u.id);p>=0?b.value[p]=u:b.value.push(u)},Ve=u=>{const p=b.value.findIndex(y=>y.id===u);p>=0&&b.value.splice(p,1)},Be=u=>{const p=x.value.findIndex(y=>y.id===u.id);p>=0?x.value[p]=u:x.value.push(u)},De=u=>{const p=x.value.findIndex(y=>y.id===u);p>=0&&x.value.splice(p,1)},Se=(u,p,y)=>{const D=x.value.find(V=>V.id===u),R=x.value.find(V=>V.id===p);if(!D||!R)return console.warn("Cannot create connection: handle not found"),null;const M={id:`connection-${u}-${p}`,from:{barId:D.barId,side:D.side},to:{barId:R.barId,side:R.side},style:y?.style,label:y?.label};return k.value.push(M),M},S=u=>{const p=k.value.findIndex(y=>y.id===u);return p>=0?(k.value.splice(p,1),!0):!1},N=u=>k.value.filter(p=>p.from.barId===u||p.to.barId===u),_=u=>x.value.filter(p=>p.barId===u),H=u=>{if(a.value[u].sortable===!1)return;let p;v.value.column===u&&v.value.direction==="asc"?p="desc":p="asc",v.value.column=u,v.value.direction=p},Z=(u,p,y)=>{const D=y.filterType||"text",R=p.value;if(!R&&D!=="dateRange"&&D!=="checkbox")return!0;switch(D){case"text":{let M="";return typeof u=="object"&&u!==null?M=Object.values(u).join(" "):M=String(u||""),M.toLowerCase().includes(String(R).toLowerCase())}case"number":{const M=Number(u),V=Number(R);return!isNaN(M)&&!isNaN(V)&&M===V}case"select":return u===R;case"checkbox":return R===!0?!!u:!0;case"date":{let M;if(typeof u=="number"){const $=new Date(u),F=new Date().getFullYear();M=new Date(F,$.getMonth(),$.getDate())}else M=new Date(String(u));const V=new Date(String(R));return M.toDateString()===V.toDateString()}case"dateRange":{const M=p.startValue,V=p.endValue;if(!M&&!V)return!0;let $;if(typeof u=="number"){const F=new Date(u),Te=new Date().getFullYear();$=new Date(Te,F.getMonth(),F.getDate())}else $=new Date(String(u));return!(M&&$<new Date(String(M))||V&&$>new Date(String(V)))}default:return!0}},j=(u,p)=>{!p.value&&!p.startValue&&!p.endValue?delete m.value[u]:m.value[u]=p},G=u=>{delete m.value[u]},W=(u,p="end")=>{const y={};for(const R of a.value)y[R.name]="";u&&Object.assign(y,u);let D;return p==="start"?(D=0,r.value.unshift(y)):p==="end"?(D=r.value.length,r.value.push(y)):(D=Math.max(0,Math.min(p,r.value.length)),r.value.splice(D,0,y)),D};return{columns:a,config:s,connectionHandles:x,connectionPaths:k,display:d,filterState:m,ganttBars:b,modal:f,rows:r,sortState:v,table:c,updates:g,filteredRows:C,hasPinnedColumns:h,isGanttView:w,isTreeView:E,isDependencyGraphEnabled:I,numberedRowWidth:A,zeroColumn:B,addRow:W,clearFilter:G,closeModal:ot,createConnection:Se,deleteConnection:S,deleteRow:u=>{if(u<0||u>=r.value.length)return null;const[p]=r.value.splice(u,1);delete i.value[u],delete l.value[u];const y={},D={};for(const[R,M]of Object.entries(i.value)){const V=parseInt(R);V>u?y[V-1]=M:y[V]=M}for(const[R,M]of Object.entries(l.value)){const V=parseInt(R);V>u?D[V-1]=M:D[V]=M}return i.value=y,l.value=D,p},duplicateRow:u=>{if(u<0||u>=r.value.length)return-1;const p=r.value[u],y=JSON.parse(JSON.stringify(p)),D=u+1;return r.value.splice(D,0,y),D},getCellData:T,getCellDisplayValue:tt,getConnectionsForBar:N,getFormattedValue:Ie,getHandlesForBar:_,getHeaderCellStyle:U,getIndent:nt,getRowExpandSymbol:Qe,insertRowAbove:(u,p)=>{const y=Math.max(0,u);return W(p,y)},insertRowBelow:(u,p)=>{const y=Math.min(u+1,r.value.length);return W(p,y)},isRowGantt:Ce,isRowVisible:pe,moveRow:(u,p)=>{if(u<0||u>=r.value.length||p<0||p>=r.value.length||u===p)return!1;const[y]=r.value.splice(u,1);r.value.splice(p,0,y);const D={},R={};for(const[M,V]of Object.entries(i.value)){const $=parseInt(M);let F=$;$===u?F=p:u<p?$>u&&$<=p&&(F=$-1):$>=p&&$<u&&(F=$+1),D[F]=V}for(const[M,V]of Object.entries(l.value)){const $=parseInt(M);let F=$;$===u?F=p:u<p?$>u&&$<=p&&(F=$-1):$>=p&&$<u&&(F=$+1),R[F]=V}return i.value=D,l.value=R,!0},registerConnectionHandle:Be,registerGanttBar:lt,resizeColumn:oe,setCellData:P,setCellText:z,setFilter:j,sortByColumn:H,toggleRowExpand:et,unregisterConnectionHandle:De,unregisterGanttBar:Ve,updateGanttBar:at,updateRows:L}})()},An={class:"atable-container",style:{position:"relative"}},Nn=e.defineComponent({__name:"ATable",props:e.mergeModels({id:{default:""},config:{default:()=>new Object}},{rows:{required:!0},rowsModifiers:{},columns:{required:!0},columnsModifiers:{}}),emits:e.mergeModels(["cellUpdate","gantt:drag","connection:event","columns:update","row:add","row:delete","row:duplicate","row:insert-above","row:insert-below","row:move"],["update:rows","update:columns"]),setup(t,{expose:o,emit:n}){const a=e.useModel(t,"rows"),r=e.useModel(t,"columns"),s=n,i=e.useTemplateRef("table"),l=Tn({columns:r.value,rows:a.value,id:t.id,config:t.config});l.$onAction(({name:k,store:v,args:m,after:h})=>{if(k==="setCellData"||k==="setCellText"){const[w,E,I]=m,A=v.getCellData(w,E);h(()=>{a.value=[...v.rows],s("cellUpdate",{colIndex:w,rowIndex:E,newValue:I,oldValue:A})})}else if(k==="updateGanttBar"){const[w]=m;let E=!1;w.type==="resize"?E=w.oldColspan!==w.newColspan:w.type==="bar"&&(E=w.oldStart!==w.newStart||w.oldEnd!==w.newEnd),E&&h(()=>{s("gantt:drag",w)})}else k==="resizeColumn"&&h(()=>{r.value=[...v.columns],s("columns:update",[...v.columns])})}),e.watch(()=>a.value,k=>{JSON.stringify(k)!==JSON.stringify(l.rows)&&(l.rows=[...k])},{deep:!0}),e.watch(r,k=>{JSON.stringify(k)!==JSON.stringify(l.columns)&&(l.columns=[...k],s("columns:update",[...k]))},{deep:!0}),e.onMounted(()=>{r.value.some(k=>k.pinned)&&(d(),l.isTreeView&&ht(i,d,{childList:!0,subtree:!0}))});const c=e.computed(()=>l.columns.filter(k=>k.pinned).length),d=()=>{const k=i.value,v=k?.rows[0],m=k?.rows[1],h=v?Array.from(v.cells):[];for(const[w,E]of h.entries()){const I=m?.cells[w];I&&(E.style.width=`${I.offsetWidth}px`)}for(const w of k?.rows||[]){let E=0;const I=[];for(const A of w.cells)(A.classList.contains("sticky-column")||A.classList.contains("sticky-index"))&&(A.style.left=`${E}px`,E+=A.offsetWidth,I.push(A));I.length>0&&I[I.length-1].classList.add("sticky-column-edge")}};window.addEventListener("keydown",k=>{if(k.key==="Escape"&&l.modal.visible){l.modal.visible=!1;const v=l.modal.parent;v&&e.nextTick().then(()=>{v.focus()})}});const f=k=>{if(!k.gantt||c.value===0)return l.columns;const v=[];for(let m=0;m<c.value;m++){const h={...l.columns[m]};h.originalIndex=m,v.push(h)}return v.push({...l.columns[c.value],isGantt:!0,colspan:k.gantt?.colspan||l.columns.length-c.value,originalIndex:c.value,width:"auto"}),v},g=k=>{s("connection:event",{type:"create",connection:k})},b=k=>{s("connection:event",{type:"delete",connection:k})},x=(k,v)=>{switch(k){case"add":{const m=l.addRow({},v+1),h=l.rows[m];a.value=[...l.rows],s("row:add",{rowIndex:m,row:h});break}case"delete":{const m=l.deleteRow(v);m&&(a.value=[...l.rows],s("row:delete",{rowIndex:v,row:m}));break}case"duplicate":{const m=l.duplicateRow(v);if(m>=0){const h=l.rows[m];a.value=[...l.rows],s("row:duplicate",{sourceIndex:v,newIndex:m,row:h})}break}case"insertAbove":{const m=l.insertRowAbove(v),h=l.rows[m];a.value=[...l.rows],s("row:insert-above",{targetIndex:v,newIndex:m,row:h});break}case"insertBelow":{const m=l.insertRowBelow(v),h=l.rows[m];a.value=[...l.rows],s("row:insert-below",{targetIndex:v,newIndex:m,row:h});break}case"move":{s("row:move",{fromIndex:v,toIndex:-1});break}}};return o({store:l,createConnection:l.createConnection,deleteConnection:l.deleteConnection,getConnectionsForBar:l.getConnectionsForBar,getHandlesForBar:l.getHandlesForBar,addRow:l.addRow,deleteRow:l.deleteRow,duplicateRow:l.duplicateRow,insertRowAbove:l.insertRowAbove,insertRowBelow:l.insertRowBelow,moveRow:l.moveRow}),(k,v)=>(e.openBlock(),e.createElementBlock("div",An,[e.withDirectives((e.openBlock(),e.createElementBlock("table",{ref:"table",class:"atable",style:e.normalizeStyle({width:e.unref(l).config.fullWidth?"100%":"auto"})},[e.renderSlot(k.$slots,"header",{data:e.unref(l)},()=>[e.createVNode(wt,{columns:e.unref(l).columns,store:e.unref(l)},null,8,["columns","store"])],!0),e.createElementVNode("tbody",null,[e.renderSlot(k.$slots,"body",{data:e.unref(l)},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).filteredRows,(m,h)=>(e.openBlock(),e.createBlock(bt,{key:`${m.originalIndex}-${h}`,row:m,rowIndex:m.originalIndex,store:e.unref(l),"onRow:action":x},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(m),(w,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w.name},[w.isGantt?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.ganttComponent||"AGanttCell"),{key:0,store:e.unref(l),"columns-count":e.unref(l).columns.length-c.value,color:m.gantt?.color,start:m.gantt?.startIndex,end:m.gantt?.endIndex,colspan:w.colspan,pinned:w.pinned,rowIndex:m.originalIndex,colIndex:w.originalIndex??E,style:e.normalizeStyle({textAlign:w?.align||"center",minWidth:w?.width||"40ch",width:e.unref(l).config.fullWidth?"auto":null}),"onConnection:create":g},null,40,["store","columns-count","color","start","end","colspan","pinned","rowIndex","colIndex","style"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.cellComponent||"ACell"),{key:1,store:e.unref(l),pinned:w.pinned,rowIndex:m.originalIndex,colIndex:E,style:e.normalizeStyle({textAlign:w?.align||"center",width:e.unref(l).config.fullWidth?"auto":null}),spellcheck:"false"},null,8,["store","pinned","rowIndex","colIndex","style"]))],64))),128))]),_:2},1032,["row","rowIndex","store"]))),128))],!0)]),e.renderSlot(k.$slots,"footer",{data:e.unref(l)},void 0,!0),e.renderSlot(k.$slots,"modal",{data:e.unref(l)},()=>[e.withDirectives(e.createVNode(vt,{store:e.unref(l)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l).modal.component),e.mergeProps({key:`${e.unref(l).modal.rowIndex}:${e.unref(l).modal.colIndex}`,"col-index":e.unref(l).modal.colIndex,"row-index":e.unref(l).modal.rowIndex,store:e.unref(l)},e.unref(l).modal.componentProps),null,16,["col-index","row-index","store"]))]),_:1},8,["store"]),[[e.vShow,e.unref(l).modal.visible]])],!0)],4)),[[e.unref(rn),e.unref(l).closeModal]]),e.unref(l).isGanttView&&e.unref(l).isDependencyGraphEnabled?(e.openBlock(),e.createBlock(hn,{key:0,store:e.unref(l),"onConnection:delete":b},null,8,["store"])):e.createCommentVNode("",!0)]))}}),Rn=te(Nn,[["__scopeId","data-v-3d00d51b"]]),$n={},zn={class:"aloading"},_n={class:"aloading-header"};function Ln(t,o){return e.openBlock(),e.createElementBlock("div",zn,[e.createElementVNode("h2",_n,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),o[0]||(o[0]=e.createElementVNode("div",{class:"aloading-bar"},null,-1))])}const Hn=te($n,[["render",Ln],["__scopeId","data-v-a930a25b"]]),Pn={},Fn={class:"aloading"},On={class:"aloading-header"};function Zn(t,o){return e.openBlock(),e.createElementBlock("div",Fn,[e.createElementVNode("h2",On,[e.renderSlot(t.$slots,"default",{},void 0,!0)]),o[0]||(o[0]=e.createElementVNode("div",{class:"aloading-bar"},null,-1))])}const jn=te(Pn,[["render",Zn],["__scopeId","data-v-e1165876"]]);function Wn(t){t.component("ACell",So),t.component("AExpansionRow",$o),t.component("AGanttCell",Oo),t.component("ARow",bt),t.component("ARowActions",xe),t.component("ATable",Rn),t.component("ATableHeader",wt),t.component("ATableLoading",Hn),t.component("ATableLoadingBar",jn),t.component("ATableModal",vt)}const Gn={class:"aform_form-element"},Un=["for"],qn={class:"aform_checkbox-container aform_input-field"},Yn=["id","readonly","required"],Xn=["innerHTML"],Jn=e.defineComponent({__name:"ACheckbox",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:"&nbsp;"})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,a)=>(e.openBlock(),e.createElementBlock("div",Gn,[e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,Un),e.createElementVNode("span",qn,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),type:"checkbox",class:"aform_checkbox",readonly:t.readOnly,required:t.required},null,8,Yn),[[e.vModelCheckbox,o.value]])]),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Xn),[[e.vShow,t.validation.errorMessage]])]))}}),J=(t,o)=>{const n=t.__vccOpts||t;for(const[a,r]of o)n[a]=r;return n},xt=J(Jn,[["__scopeId","data-v-f13fd4d6"]]),yt=e.defineComponent({__name:"AComboBox",props:["event","cellData","tableID"],setup(t){return(o,n)=>{const a=e.resolveComponent("ATableModal");return e.openBlock(),e.createBlock(a,{event:t.event,"cell-data":t.cellData,class:"amodal"},{default:e.withCtx(()=>[...n[0]||(n[0]=[e.createElementVNode("div",null,[e.createElementVNode("input",{type:"text"}),e.createElementVNode("input",{type:"text"}),e.createElementVNode("input",{type:"text"})],-1)])]),_:1},8,["event","cell-data"])}}}),Kn=["id","disabled","required"],Qn=["for"],ea=["innerHTML"],kt=J(e.defineComponent({__name:"ADate",props:e.mergeModels({schema:{},label:{default:"Date"},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:"&nbsp;"})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue",{set:r=>new Date(r).toISOString().split("T")[0]}),n=e.useTemplateRef("date"),a=()=>{n.value&&"showPicker"in HTMLInputElement.prototype&&n.value.showPicker()};return(r,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,ref:"date","onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"date",disabled:t.readOnly,required:t.required,onClick:a},null,8,Kn),[[e.vModelText,o.value]]),e.createElementVNode("label",{for:t.uuid},e.toDisplayString(t.label),9,Qn),e.withDirectives(e.createElementVNode("p",{innerHTML:t.validation.errorMessage},null,8,ea),[[e.vShow,t.validation.errorMessage]])]))}}),[["__scopeId","data-v-a15ed922"]]);function Et(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}function Ct(){const t=new Set,o=s=>{t.delete(s)};return{on:s=>{t.add(s);const i=()=>o(s);return Et(i),{off:i}},off:o,trigger:(...s)=>Promise.all(Array.from(t).map(i=>i(...s))),clear:()=>{t.clear()}}}const Mt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ta=Object.prototype.toString,oa=t=>ta.call(t)==="[object Object]",ue=()=>{},na=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);function aa(...t){if(t.length!==1)return e.toRef(...t);const o=t[0];return typeof o=="function"?e.readonly(e.customRef(()=>({get:o,set:ue}))):e.ref(o)}function Ze(t){return Array.isArray(t)?t:[t]}function la(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const It=Mt?window:void 0,ra=Mt?window.document:void 0;function ie(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function je(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=Ze(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return la(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>ie(s)))!==null&&a!==void 0?a:[It].filter(s=>s!=null),Ze(e.toValue(n.value?t[1]:t[0])),Ze(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=oa(i)?{...i}:i,f=a.flatMap(g=>r.flatMap(b=>s.map(x=>o(g,b,x,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Vt(t,o,n={}){const{window:a=It,ignore:r=[],capture:s=!0,detectIframe:i=!1,controls:l=!1}=n;if(!a)return l?{stop:ue,cancel:ue,trigger:ue}:ue;let c=!0;const d=m=>e.toValue(r).some(h=>{if(typeof h=="string")return Array.from(a.document.querySelectorAll(h)).some(w=>w===m.target||m.composedPath().includes(w));{const w=ie(h);return w&&(m.target===w||m.composedPath().includes(w))}});function f(m){const h=e.toValue(m);return h&&h.$.subTree.shapeFlag===16}function g(m,h){const w=e.toValue(m),E=w.$.subTree&&w.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(I=>I.el===h.target||h.composedPath().includes(I.el))}const b=m=>{const h=ie(t);if(m.target!=null&&!(!(h instanceof Element)&&f(t)&&g(t,m))&&!(!h||h===m.target||m.composedPath().includes(h))){if("detail"in m&&m.detail===0&&(c=!d(m)),!c){c=!0;return}o(m)}};let x=!1;const k=[je(a,"click",m=>{x||(x=!0,setTimeout(()=>{x=!1},0),b(m))},{passive:!0,capture:s}),je(a,"pointerdown",m=>{const h=ie(t);c=!d(m)&&!!(h&&!m.composedPath().includes(h))},{passive:!0}),i&&je(a,"blur",m=>{setTimeout(()=>{var h;const w=ie(t);((h=a.document.activeElement)===null||h===void 0?void 0:h.tagName)==="IFRAME"&&!w?.contains(a.document.activeElement)&&o(m)},0)},{passive:!0})].filter(Boolean),v=()=>k.forEach(m=>m());return l?{stop:v,cancel:()=>{c=!1},trigger:m=>{c=!0,b(m),c=!1}}:v}const ia={multiple:!0,accept:"*",reset:!1,directory:!1};function sa(t){if(!t)return null;if(t instanceof FileList)return t;const o=new DataTransfer;for(const n of t)o.items.add(n);return o.files}function ca(t={}){const{document:o=ra}=t,n=e.ref(sa(t.initialFiles)),{on:a,trigger:r}=Ct(),{on:s,trigger:i}=Ct(),l=e.computed(()=>{var g;const b=(g=ie(t.input))!==null&&g!==void 0?g:o?o.createElement("input"):void 0;return b&&(b.type="file",b.onchange=x=>{n.value=x.target.files,r(n.value)},b.oncancel=()=>{i()}),b}),c=()=>{n.value=null,l.value&&l.value.value&&(l.value.value="",r(null))},d=g=>{const b=l.value;b&&(b.multiple=e.toValue(g.multiple),b.accept=e.toValue(g.accept),b.webkitdirectory=e.toValue(g.directory),na(g,"capture")&&(b.capture=e.toValue(g.capture)))},f=g=>{const b=l.value;if(!b)return;const x={...ia,...t,...g};d(x),e.toValue(x.reset)&&c(),b.click()};return e.watchEffect(()=>{d(t)}),{files:e.readonly(n),open:f,reset:c,onCancel:s,onChange:a}}function We(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const Ge=new WeakMap;function da(t,o=!1){const n=e.shallowRef(o);let a="";e.watch(aa(t),i=>{const l=We(e.toValue(i));if(l){const c=l;if(Ge.get(c)||Ge.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(a=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const r=()=>{const i=We(e.toValue(t));!i||n.value||(i.style.overflow="hidden",n.value=!0)},s=()=>{const i=We(e.toValue(t));!i||!n.value||(i.style.overflow=a,Ge.delete(i),n.value=!1)};return Et(s),e.computed({get(){return n.value},set(i){i?r():s()}})}const Ue=new WeakMap,fa={mounted(t,o){const n=!o.modifiers.bubble;let a;if(typeof o.value=="function")a=Vt(t,o.value,{capture:n});else{const[r,s]=o.value;a=Vt(t,r,Object.assign({capture:n},s))}Ue.set(t,a)},unmounted(t){const o=Ue.get(t);o&&typeof o=="function"?o():o?.stop(),Ue.delete(t)}};function ua(){let t=!1;const o=e.shallowRef(!1);return(n,a)=>{if(o.value=a.value,t)return;t=!0;const r=da(n,a.value);e.watch(o,s=>r.value=s)}}ua();const ma={class:"input-wrapper"},pa={id:"autocomplete-results",class:"autocomplete-results"},ga={key:0,class:"loading autocomplete-result"},ha=["onClick"],Bt=J(e.defineComponent({__name:"ADropdown",props:e.mergeModels({label:{},items:{default:()=>[]},isAsync:{type:Boolean,default:!1},filterFunction:{type:Function,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),n=e.reactive({activeItemIndex:null,open:!1,loading:!1,results:t.items}),a=()=>l(),r=async()=>{if(n.open=!0,n.activeItemIndex=null,t.filterFunction){t.isAsync&&(n.loading=!0);try{const b=await t.filterFunction(o.value||"");n.results=b||[]}catch{n.results=[]}finally{t.isAsync&&(n.loading=!1)}}else c()},s=b=>{o.value=b,l(b)},i=()=>{n.activeItemIndex=t.isAsync?null:o.value&&t.items?.indexOf(o.value)||null,n.open=!0,n.results=t.isAsync?[]:t.items},l=b=>{n.activeItemIndex=null,n.open=!1,t.items?.includes(b||o.value||"")||(o.value="")},c=()=>{o.value?n.results=t.items?.filter(b=>b.toLowerCase().includes((o.value??"").toLowerCase())):n.results=t.items},d=()=>{const b=n.results?.length||0;if(n.activeItemIndex!=null){const x=isNaN(n.activeItemIndex)?0:n.activeItemIndex;n.activeItemIndex=(x+1)%b}else n.activeItemIndex=0},f=()=>{const b=n.results?.length||0;if(n.activeItemIndex!=null){const x=isNaN(n.activeItemIndex)?0:n.activeItemIndex;x===0?n.activeItemIndex=null:n.activeItemIndex=x-1}else n.activeItemIndex=b-1},g=()=>{if(n.results){const b=n.activeItemIndex||0,x=n.results[b];s(x)}n.activeItemIndex=0};return(b,x)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["autocomplete",{isOpen:n.open}])},[e.createElementVNode("div",ma,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=k=>o.value=k),type:"text",onInput:r,onFocus:i,onKeydown:[e.withKeys(d,["down"]),e.withKeys(f,["up"]),e.withKeys(g,["enter"]),e.withKeys(a,["esc"]),e.withKeys(a,["tab"])]},null,544),[[e.vModelText,o.value]]),e.withDirectives(e.createElementVNode("ul",pa,[n.loading?(e.openBlock(),e.createElementBlock("li",ga,"Loading results...")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.results,(k,v)=>(e.openBlock(),e.createElementBlock("li",{key:k,class:e.normalizeClass(["autocomplete-result",{"is-active":v===n.activeItemIndex}]),onClick:e.withModifiers(m=>s(k),["stop"])},e.toDisplayString(k),11,ha))),128))],512),[[e.vShow,n.open]]),e.createElementVNode("label",null,e.toDisplayString(t.label),1)])],2)),[[e.unref(fa),a]])}}),[["__scopeId","data-v-31a6db8c"]]);function Dt(t,o){return e.getCurrentScope()?(e.onScopeDispose(t,o),!0):!1}const ba=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wa=t=>t!=null,va=Object.prototype.toString,xa=t=>va.call(t)==="[object Object]",ya=()=>{};function ke(t){return Array.isArray(t)?t:[t]}function ka(t,o,n){return e.watch(t,o,{...n,immediate:!0})}const se=ba?window:void 0;function ce(t){var o;const n=e.toValue(t);return(o=n?.$el)!==null&&o!==void 0?o:n}function me(...t){const o=(a,r,s,i)=>(a.addEventListener(r,s,i),()=>a.removeEventListener(r,s,i)),n=e.computed(()=>{const a=ke(e.toValue(t[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return ka(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(s=>ce(s)))!==null&&a!==void 0?a:[se].filter(s=>s!=null),ke(e.toValue(n.value?t[1]:t[0])),ke(e.unref(n.value?t[2]:t[1])),e.toValue(n.value?t[3]:t[2])]},([a,r,s,i],l,c)=>{if(!a?.length||!r?.length||!s?.length)return;const d=xa(i)?{...i}:i,f=a.flatMap(g=>r.flatMap(b=>s.map(x=>o(g,b,x,d))));c(()=>{f.forEach(g=>g())})},{flush:"post"})}function Ea(){const t=e.shallowRef(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Ca(t){const o=Ea();return e.computed(()=>(o.value,!!t()))}function Ma(t,o,n={}){const{window:a=se,...r}=n;let s;const i=Ca(()=>a&&"MutationObserver"in a),l=()=>{s&&(s.disconnect(),s=void 0)},c=e.watch(e.computed(()=>{const g=ke(e.toValue(t)).map(ce).filter(wa);return new Set(g)}),g=>{l(),i.value&&g.size&&(s=new MutationObserver(o),g.forEach(b=>s.observe(b,r)))},{immediate:!0,flush:"post"}),d=()=>s?.takeRecords(),f=()=>{c(),l()};return Dt(f),{isSupported:i,stop:f,takeRecords:d}}function Ia(t,o,n={}){const{window:a=se,document:r=a?.document,flush:s="sync"}=n;if(!a||!r)return ya;let i;const l=f=>{i?.(),i=f},c=e.watchEffect(()=>{const f=ce(t);if(f){const{stop:g}=Ma(r,b=>{b.map(x=>[...x.removedNodes]).flat().some(x=>x===f||x.contains(f))&&o(b)},{window:a,childList:!0,subtree:!0});l(g)}},{flush:s}),d=()=>{c(),l()};return Dt(d),d}function Va(t={}){var o;const{window:n=se,deep:a=!0,triggerOnRemoval:r=!1}=t,s=(o=t.document)!==null&&o!==void 0?o:n?.document,i=()=>{let d=s?.activeElement;if(a)for(var f;d?.shadowRoot;)d=d==null||(f=d.shadowRoot)===null||f===void 0?void 0:f.activeElement;return d},l=e.shallowRef(),c=()=>{l.value=i()};if(n){const d={capture:!0,passive:!0};me(n,"blur",f=>{f.relatedTarget===null&&c()},d),me(n,"focus",c,d)}return r&&Ia(l,c,{document:s}),c(),l}const Ba="focusin",Da="focusout",Sa=":focus-within";function Ta(t,o={}){const{window:n=se}=o,a=e.computed(()=>ce(t)),r=e.shallowRef(!1),s=e.computed(()=>r.value);if(!n||!Va(o).value)return{focused:s};const i={passive:!0};return me(a,Ba,()=>r.value=!0,i),me(a,Da,()=>{var l,c,d;return r.value=(l=(c=a.value)===null||c===void 0||(d=c.matches)===null||d===void 0?void 0:d.call(c,Sa))!==null&&l!==void 0?l:!1},i),{focused:s}}function Aa(t,{window:o=se,scrollTarget:n}={}){const a=e.ref(!1),r=()=>{if(!o)return;const s=o.document,i=ce(t);if(!i)a.value=!1;else{const l=i.getBoundingClientRect();a.value=l.top<=(o.innerHeight||s.documentElement.clientHeight)&&l.left<=(o.innerWidth||s.documentElement.clientWidth)&&l.bottom>=0&&l.right>=0}};return e.watch(()=>ce(t),()=>r(),{immediate:!0,flush:"post"}),o&&me(n||o,"scroll",r,{capture:!1,passive:!0}),a}const K=t=>{let o=Aa(t).value;return o=o&&t.offsetHeight>0,o},Q=t=>t.tabIndex>=0,St=t=>{const o=t.target;return qe(o)},qe=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.previousElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.previousElementSibling;n&&(o=n)}return o&&(!Q(o)||!K(o))?qe(o):o},Na=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.firstElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.firstElementChild;r&&(n=r)}}return n&&(!Q(n)||!K(n))?Ye(n):n},Tt=t=>{const o=t.target;return Ye(o)},Ye=t=>{let o;if(t instanceof HTMLTableCellElement){const n=t.parentElement?.nextElementSibling;if(n){const a=Array.from(n.children)[t.cellIndex];a&&(o=a)}}else if(t instanceof HTMLTableRowElement){const n=t.nextElementSibling;n&&(o=n)}return o&&(!Q(o)||!K(o))?Ye(o):o},Ra=t=>{const o=t.target;let n;if(o instanceof HTMLTableCellElement){const a=o.parentElement?.parentElement;if(a){const r=a.lastElementChild?.children[o.cellIndex];r&&(n=r)}}else if(o instanceof HTMLTableRowElement){const a=o.parentElement;if(a){const r=a.lastElementChild;r&&(n=r)}}return n&&(!Q(n)||!K(n))?qe(n):n},At=t=>{const o=t.target;return Xe(o)},Xe=t=>{let o;return t.previousElementSibling?o=t.previousElementSibling:o=t.parentElement?.previousElementSibling?.lastElementChild,o&&(!Q(o)||!K(o))?Xe(o):o},Nt=t=>{const o=t.target;return Je(o)},Je=t=>{let o;return t.nextElementSibling?o=t.nextElementSibling:o=t.parentElement?.nextElementSibling?.firstElementChild,o&&(!Q(o)||!K(o))?Je(o):o},Rt=t=>{const o=t.target.parentElement?.firstElementChild;return o&&(!Q(o)||!K(o))?Je(o):o},$t=t=>{const o=t.target.parentElement?.lastElementChild;return o&&(!Q(o)||!K(o))?Xe(o):o},Ee=["alt","control","shift","meta"],$a={ArrowUp:"up",ArrowDown:"down",ArrowLeft:"left",ArrowRight:"right"},zt={"keydown.up":t=>{const o=St(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.down":t=>{const o=Tt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.left":t=>{const o=At(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.right":t=>{const o=Nt(t);t.preventDefault(),t.stopPropagation(),o&&o.focus()},"keydown.control.up":t=>{const o=Na(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.down":t=>{const o=Ra(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.left":t=>{const o=Rt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.control.right":t=>{const o=$t(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.end":t=>{const o=$t(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=Tt(t);o&&o.focus()}},"keydown.shift.enter":t=>{if(t.target instanceof HTMLTableCellElement){t.preventDefault(),t.stopPropagation();const o=St(t);o&&o.focus()}},"keydown.home":t=>{const o=Rt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.tab":t=>{const o=Nt(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())},"keydown.shift.tab":t=>{const o=At(t);o&&(t.preventDefault(),t.stopPropagation(),o.focus())}};function za(t){const o=i=>{let l=null;return i.parent&&(typeof i.parent=="string"?l=document.querySelector(i.parent):i.parent instanceof HTMLElement?l=i.parent:l=i.parent.value),l},n=i=>{const l=o(i);let c=[];if(typeof i.selectors=="string")c=Array.from(l?l.querySelectorAll(i.selectors):document.querySelectorAll(i.selectors));else if(Array.isArray(i.selectors))for(const d of i.selectors)d instanceof HTMLElement?c.push(d):c.push(d.$el);else if(i.selectors instanceof HTMLElement)c.push(i.selectors);else if(i.selectors?.value)if(Array.isArray(i.selectors.value))for(const d of i.selectors.value)d instanceof HTMLElement?c.push(d):c.push(d.$el);else c.push(i.selectors.value);return c},a=i=>{const l=o(i);let c=[];return i.selectors?c=n(i):l&&(c=Array.from(l.children).filter(d=>Q(d)&&K(d))),c},r=i=>l=>{const c=$a[l.key]||l.key.toLowerCase();if(Ee.includes(c))return;const d=i.handlers||zt;for(const f of Object.keys(d)){const[g,...b]=f.split(".");if(g==="keydown"&&b.includes(c)){const x=d[f],k=b.filter(m=>Ee.includes(m)),v=Ee.some(m=>{const h=m.charAt(0).toUpperCase()+m.slice(1);return l.getModifierState(h)});if(k.length>0){if(v){for(const m of Ee)if(b.includes(m)){const h=m.charAt(0).toUpperCase()+m.slice(1);l.getModifierState(h)&&x(l)}}}else v||x(l)}}},s=[];e.onMounted(()=>{for(const i of t){const l=o(i),c=a(i),d=r(i),f=l?[l]:c;for(const g of f){const{focused:b}=Ta(e.ref(g)),x=e.watch(b,k=>{k?g.addEventListener("keydown",d):g.removeEventListener("keydown",d)});s.push(x)}}}),e.onBeforeUnmount(()=>{for(const i of s)i()})}const _a={ref:"datepicker",class:"adatepicker",tabindex:"0"},La={colspan:"5",tabindex:-1},Ha=["onClick","onKeydown"],Pa=6,_t=7,Lt=J(e.defineComponent({__name:"ADatePicker",props:{modelValue:{default:new Date},modelModifiers:{}},emits:["update:modelValue"],setup(t,{expose:o}){const n=e.useModel(t,"modelValue"),a=e.ref(new Date(n.value)),r=e.ref(a.value.getMonth()),s=e.ref(a.value.getFullYear()),i=e.ref([]),l=e.useTemplateRef("datepicker");e.onMounted(async()=>{c(),await e.nextTick();const E=document.getElementsByClassName("selectedDate");if(E.length>0)E[0].focus();else{const I=document.getElementsByClassName("todaysDate");I.length>0&&I[0].focus()}});const c=()=>{i.value=[];const E=new Date(s.value,r.value,1),I=E.getDay(),A=E.setDate(E.getDate()-I);for(const B of Array(43).keys())i.value.push(A+B*864e5)};e.watch([r,s],c);const d=()=>s.value-=1,f=()=>s.value+=1,g=()=>{r.value==0?(r.value=11,d()):r.value-=1},b=()=>{r.value==11?(r.value=0,f()):r.value+=1},x=E=>{const I=new Date;if(r.value===I.getMonth())return I.toDateString()===new Date(E).toDateString()},k=E=>new Date(E).toDateString()===new Date(a.value).toDateString(),v=(E,I)=>(E-1)*_t+I,m=(E,I)=>i.value[v(E,I)],h=E=>{n.value=a.value=new Date(i.value[E])},w=e.computed(()=>new Date(s.value,r.value,1).toLocaleDateString(void 0,{year:"numeric",month:"long"}));return za([{parent:l,selectors:"td",handlers:{...zt,"keydown.pageup":g,"keydown.shift.pageup":d,"keydown.pagedown":b,"keydown.shift.pagedown":f,"keydown.enter":()=>{}}}]),o({currentMonth:r,currentYear:s,selectedDate:a}),(E,I)=>(e.openBlock(),e.createElementBlock("div",_a,[e.createElementVNode("table",null,[e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("td",{id:"previous-month-btn",tabindex:-1,onClick:g},"<"),e.createElementVNode("th",La,e.toDisplayString(w.value),1),e.createElementVNode("td",{id:"next-month-btn",tabindex:-1,onClick:b},">")]),I[0]||(I[0]=e.createElementVNode("tr",{class:"days-header"},[e.createElementVNode("td",null,"M"),e.createElementVNode("td",null,"T"),e.createElementVNode("td",null,"W"),e.createElementVNode("td",null,"T"),e.createElementVNode("td",null,"F"),e.createElementVNode("td",null,"S"),e.createElementVNode("td",null,"S")],-1)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(Pa,A=>e.createElementVNode("tr",{key:A},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_t,B=>e.createElementVNode("td",{ref_for:!0,ref:"celldate",key:v(A,B),contenteditable:!1,spellcheck:!1,tabindex:0,class:e.normalizeClass({todaysDate:x(m(A,B)),selectedDate:k(m(A,B))}),onClick:e.withModifiers(C=>h(v(A,B)),["prevent","stop"]),onKeydown:e.withKeys(C=>h(v(A,B)),["enter"])},e.toDisplayString(new Date(m(A,B)).getDate()),43,Ha)),64))])),64))])])],512))}}),[["__scopeId","data-v-056d2b5e"]]),Fa=J(e.defineComponent({__name:"CollapseButton",props:{collapsed:{type:Boolean}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["collapse-button",t.collapsed?"rotated":"unrotated"])},"×",2))}}),[["__scopeId","data-v-6f1c1b45"]]),Oa={class:"aform"},Za={key:0,class:"aform-nested-section"},ja={key:0,class:"aform-nested-label"},Ke=J(e.defineComponent({__name:"AForm",props:e.mergeModels({schema:{},readOnly:{type:Boolean}},{data:{required:!0},dataModifiers:{}}),emits:e.mergeModels(["update:schema","update:data"],["update:data"]),setup(t,{emit:o}){const n=o,a=e.useModel(t,"data"),r=e.ref({});e.watchEffect(()=>{!t.schema||!a.value||t.schema.forEach(c=>{"schema"in c&&Array.isArray(c.schema)&&c.schema.length>0&&(!r.value[c.fieldname]&&a.value[c.fieldname]?r.value[c.fieldname]=a.value[c.fieldname]:r.value[c.fieldname]||(r.value[c.fieldname]={}))})}),e.watchEffect(()=>{Object.keys(r.value).forEach(c=>{a.value&&r.value[c]!==a.value[c]&&(a.value[c]=r.value[c],n("update:data",a.value))})}),e.watchEffect(()=>{a.value&&t.schema&&t.schema.forEach(c=>{c.fieldname&&a.value[c.fieldname]!==void 0&&(c.value=a.value[c.fieldname])})});const s=c=>{const d={};for(const[f,g]of Object.entries(c))["component","fieldtype"].includes(f)||(d[f]=g),f==="rows"&&(!g||Array.isArray(g)&&g.length===0)&&(d.rows=a.value[c.fieldname]||[]);return d},i=e.ref([]);e.watchEffect(()=>{t.schema&&i.value.length!==t.schema.length&&(i.value=t.schema.map((c,d)=>e.computed({get(){return c.value},set:f=>{const g=t.schema[d].fieldname;t.schema[d].value=f,g&&a.value&&(a.value[g]=f,n("update:data",a.value)),n("update:schema",t.schema)}})))});const l=e.computed(()=>i.value);return(c,d)=>{const f=e.resolveComponent("AForm",!0);return e.openBlock(),e.createElementBlock("form",Oa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.schema,(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:b},["schema"in g&&Array.isArray(g.schema)&&g.schema.length>0?(e.openBlock(),e.createElementBlock("div",Za,[g.label?(e.openBlock(),e.createElementBlock("h4",ja,e.toDisplayString(g.label),1)):e.createCommentVNode("",!0),e.createVNode(f,{data:r.value[g.fieldname],"onUpdate:data":x=>r.value[g.fieldname]=x,schema:g.schema,"read-only":t.readOnly||g.readOnly},null,8,["data","onUpdate:data","schema","read-only"])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.component),e.mergeProps({key:1,modelValue:l.value[b].value,"onUpdate:modelValue":x=>l.value[b].value=x,schema:g,data:a.value[g.fieldname],"read-only":t.readOnly},{ref_for:!0},s(g)),null,16,["modelValue","onUpdate:modelValue","schema","data","read-only"]))],64))),128))])}}}),[["__scopeId","data-v-06e17c5b"]]),Ht=J(e.defineComponent({__name:"AFieldset",props:{schema:{},label:{},collapsible:{type:Boolean},data:{default:()=>({})}},setup(t,{expose:o}){const n=e.ref(!1),a=e.ref(t.data||[]),r=e.ref(t.schema),s=i=>{i.preventDefault(),t.collapsible&&(n.value=!n.value)};return o({collapsed:n}),(i,l)=>(e.openBlock(),e.createElementBlock("fieldset",null,[e.createElementVNode("legend",{onClick:s,onSubmit:s},[e.createTextVNode(e.toDisplayString(t.label)+" ",1),t.collapsible?(e.openBlock(),e.createBlock(Fa,{key:0,collapsed:n.value},null,8,["collapsed"])):e.createCommentVNode("",!0)],32),e.renderSlot(i.$slots,"default",{collapsed:n.value},()=>[e.withDirectives(e.createVNode(Ke,{schema:r.value,data:a.value,"onUpdate:data":l[0]||(l[0]=c=>a.value=c)},null,8,["schema","data"]),[[e.vShow,!n.value]])],!0)]))}}),[["__scopeId","data-v-18fd6c61"]]),Wa={class:"aform_form-element aform_file-attach aform__grid--full"},Ga={key:0,class:"aform_file-attach-feedback"},Ua=["disabled"],Pt=J(e.defineComponent({__name:"AFileAttach",props:{label:{}},setup(t){const{files:o,open:n,reset:a,onChange:r}=ca(),s=e.computed(()=>`${o.value.length} ${o.value.length===1?"file":"files"}`);return r(i=>i),(i,l)=>(e.openBlock(),e.createElementBlock("div",Wa,[e.unref(o)?(e.openBlock(),e.createElementBlock("div",Ga,[e.createElementVNode("p",null,[l[2]||(l[2]=e.createTextVNode(" You have selected: ",-1)),e.createElementVNode("b",null,e.toDisplayString(s.value),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),c=>(e.openBlock(),e.createElementBlock("li",{key:c.name},e.toDisplayString(c.name),1))),128))])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"aform_form-btn",onClick:l[0]||(l[0]=c=>e.unref(n)())},e.toDisplayString(t.label),1),e.createElementVNode("button",{type:"button",disabled:!e.unref(o),class:"aform_form-btn",onClick:l[1]||(l[1]=c=>e.unref(a)())},"Reset",8,Ua)]))}}),[["__scopeId","data-v-b700734f"]]),qa={class:"aform_form-element"},Ya=["id","disabled","required"],Xa=["for"],Ja=["innerHTML"],Ft=e.defineComponent({__name:"ANumericInput",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:"&nbsp;"})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(n,a)=>(e.openBlock(),e.createElementBlock("div",qa,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":a[0]||(a[0]=r=>o.value=r),class:"aform_input-field",type:"number",disabled:t.readOnly,required:t.required},null,8,Ya),[[e.vModelText,o.value]]),e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,Xa),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,Ja),[[e.vShow,t.validation.errorMessage]])]))}}),Ot={date:"##/##/####",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"};function Ka(t){try{return Function(`"use strict";return (${t})`)()}catch{}}function Qa(t){let o=t.value;if(o){const n=Ka(o);if(n){const a=t.instance?.locale;o=n(a)}}else{const a=t.instance?.schema?.fieldtype?.toLowerCase();a&&Ot[a]&&(o=Ot[a])}return o}function el(t,o){let n=t;const a=[o,"/","-","(",")"," "];for(const r of a)n=n.replaceAll(r,"");return n}function tl(t,o,n){let a=o;for(const r of t){const s=a.indexOf(n);if(s!==-1){const i=a.substring(0,s),l=a.substring(s+1);a=i+r+l}}return a.slice(0,o.length)}function ol(t,o){const n=Qa(o);if(!n)return;const a="#",r=t.value,s=el(r,a);if(s){const i=tl(s,n,a);o.instance?.maskFilled&&(o.instance.maskFilled=!i.includes(a)),t.value=i}else t.value=n}const nl={class:"aform_form-element"},al=["id","disabled","maxlength","required"],ll=["for"],rl=["innerHTML"],Zt=e.defineComponent({__name:"ATextInput",props:e.mergeModels({schema:{},label:{},mask:{},required:{type:Boolean},readOnly:{type:Boolean},uuid:{},validation:{default:()=>({errorMessage:"&nbsp;"})}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.ref(!0),n=e.useModel(t,"modelValue");return(a,r)=>(e.openBlock(),e.createElementBlock("div",nl,[e.withDirectives(e.createElementVNode("input",{id:t.uuid,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),class:"aform_input-field",disabled:t.readOnly,maxlength:t.mask&&o.value?t.mask.length:void 0,required:t.required},null,8,al),[[e.vModelText,n.value],[e.unref(ol),t.mask]]),e.createElementVNode("label",{class:"aform_field-label",for:t.uuid},e.toDisplayString(t.label),9,ll),e.withDirectives(e.createElementVNode("p",{class:"aform_error",innerHTML:t.validation.errorMessage},null,8,rl),[[e.vShow,t.validation.errorMessage]])]))}}),il={class:"login-container"},sl={class:"account-container"},cl={class:"account-header"},dl={id:"account-title"},fl={id:"account-subtitle"},ul={class:"login-form-container"},ml={class:"login-form-email aform_form-element"},pl=["disabled"],gl={class:"login-form-password aform_form-element"},hl=["disabled"],bl=["disabled"],wl={key:0,class:"material-symbols-outlined loading-icon"},vl=J(e.defineComponent({__name:"Login",props:{headerTitle:{default:"Login"},headerSubtitle:{default:"Enter your email and password to login"}},emits:["loginFailed","loginSuccess"],setup(t,{emit:o}){const n=o,a=e.ref(""),r=e.ref(""),s=e.ref(!1),i=e.ref(!1);function l(c){if(c.preventDefault(),s.value=!0,i.value){s.value=!1,n("loginFailed");return}s.value=!1,n("loginSuccess")}return(c,d)=>(e.openBlock(),e.createElementBlock("div",il,[e.createElementVNode("div",null,[e.createElementVNode("div",sl,[e.createElementVNode("div",cl,[e.createElementVNode("h1",dl,e.toDisplayString(t.headerTitle),1),e.createElementVNode("p",fl,e.toDisplayString(t.headerSubtitle),1)]),e.createElementVNode("form",{onSubmit:l},[e.createElementVNode("div",ul,[e.createElementVNode("div",ml,[d[2]||(d[2]=e.createElementVNode("label",{id:"login-email",for:"email",class:"aform_field-label"},"Email",-1)),e.withDirectives(e.createElementVNode("input",{id:"email","onUpdate:modelValue":d[0]||(d[0]=f=>a.value=f),class:"aform_input-field",name:"email",placeholder:"name@example.com",type:"email","auto-capitalize":"none","auto-complete":"email","auto-correct":"off",disabled:s.value},null,8,pl),[[e.vModelText,a.value]])]),e.createElementVNode("div",gl,[d[3]||(d[3]=e.createElementVNode("label",{id:"login-password",for:"password",class:"aform_field-label"},"Password",-1)),e.withDirectives(e.createElementVNode("input",{id:"password","onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),class:"aform_input-field",name:"password",type:"password",disabled:s.value},null,8,hl),[[e.vModelText,r.value]])]),e.createElementVNode("button",{class:"btn",disabled:s.value||!a.value||!r.value,onClick:l},[s.value?(e.openBlock(),e.createElementBlock("span",wl,"progress_activity")):e.createCommentVNode("",!0),d[4]||(d[4]=e.createElementVNode("span",{id:"login-form-button"},"Login",-1))],8,bl)])],32),d[5]||(d[5]=e.createElementVNode("button",{class:"btn"},[e.createElementVNode("span",{id:"forgot-password-button"},"Forgot password?")],-1))])])]))}}),[["__scopeId","data-v-d9ffd0a7"]]);function xl(t){t.use(Wn),t.component("ACheckbox",xt),t.component("ACombobox",yt),t.component("ADate",kt),t.component("ADropdown",Bt),t.component("ADatePicker",Lt),t.component("AFieldset",Ht),t.component("AFileAttach",Pt),t.component("AForm",Ke),t.component("ANumericInput",Ft),t.component("ATextInput",Zt)}O.ACheckbox=xt,O.AComboBox=yt,O.ADate=kt,O.ADatePicker=Lt,O.ADropdown=Bt,O.AFieldset=Ht,O.AFileAttach=Pt,O.AForm=Ke,O.ANumericInput=Ft,O.ATextInput=Zt,O.Login=vl,O.install=xl,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
3
47
  //# sourceMappingURL=aform.umd.cjs.map