@platforma-sdk/ui-vue 1.7.40 → 1.7.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-sdk/ui-vue
2
2
 
3
+ ## 1.7.41
4
+
5
+ ### Patch Changes
6
+
7
+ - 1e896c8: Make AgGrid resize handler transparent
8
+
3
9
  ## 1.7.40
4
10
 
5
11
  ### Patch Changes
package/dist/lib.js CHANGED
@@ -4178,6 +4178,7 @@ function uk() {
4178
4178
  n ? (J1.setLicenseKey(n), console.log("AG Grid Activated")) : console.log("AG Grid License not found");
4179
4179
  }
4180
4180
  const gk = dk.withParams({
4181
+ headerColumnResizeHandleColor: "transparent",
4181
4182
  accentColor: "#110529",
4182
4183
  borderColor: "#E1E3EB",
4183
4184
  cellHorizontalPaddingScale: 1,
package/dist/lib.umd.cjs CHANGED
@@ -14,7 +14,7 @@ ${e}}
14
14
  ${t}}
15
15
  `,{css:l,id:"variables"}},Cm=a=>Array.from(new Set(Object.values(a.getParams()).flat().map(e=>e==null?void 0:e.googleFont).filter(e=>typeof e=="string"))).sort(),Ml=async({root:a,part:e,scope:t,css:i})=>{let l=`:scope > style[data-ag-part="${e}"]`;t&&(l+=`[data-ag-scope="${t}"]`);let s=a.querySelector(l);if(!s){s=document.createElement("style"),s.dataset.agPart=e,t&&(s.dataset.agScope=t);const d=a.querySelectorAll(":scope > style[data-ag-part]"),u=d[d.length-1];u?u.insertAdjacentElement("afterend",s):a.firstElementChild?a.firstElementChild.insertAdjacentElement("beforebegin",s):a.appendChild(s)}if(s._agTextContent!==i)return s.textContent=i,s._agTextContent=i,Tm(s)},Td=(a,e)=>{for(const t of Array.from(e.querySelectorAll(`:scope > style[data-ag-scope="${a}"]`)))t.remove()},Ed=new Set,Sm=async a=>{if(Ed.has(a))return;Ed.add(a);const e=`@import url('https://${Nd}/css2?family=${encodeURIComponent(a)}:wght@100;200;300;400;500;600;700;800;900&display=swap');
16
16
  `;return Ml({css:e,part:`googleFont:${a}`,root:document.head})},Nd="fonts.googleapis.com",Tm=a=>new Promise(e=>{const t=()=>{a.removeEventListener("load",t),e()};a.addEventListener("load",t)}),Em=a=>a==null?String(a):`${typeof a} ${a}`,Nm='.ag-checkbox-input-wrapper,.ag-radio-button-input-wrapper{background-color:var(--ag-checkbox-unchecked-background-color);border:solid var(--ag-checkbox-border-width) var(--ag-checkbox-unchecked-border-color);flex:none;height:var(--ag-icon-size);position:relative;width:var(--ag-icon-size);& input{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:100%;opacity:0;width:100%}&:after{content:"";display:block;inset:0;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;pointer-events:none;position:absolute}&.ag-checked{background-color:var(--ag-checkbox-checked-background-color);border-color:var(--ag-checkbox-checked-border-color);&:after{background-color:var(--ag-checkbox-checked-shape-color)}}&:active,&:focus-within{box-shadow:var(--ag-focus-shadow)}&.ag-disabled{filter:grayscale();opacity:.5}}.ag-checkbox-input-wrapper{border-radius:var(--ag-checkbox-border-radius);&.ag-checked:after{-webkit-mask-image:var(--ag-checkbox-checked-shape-image);mask-image:var(--ag-checkbox-checked-shape-image)}&.ag-indeterminate{background-color:var(--ag-checkbox-indeterminate-background-color);border-color:var(--ag-checkbox-indeterminate-border-color);&:after{background-color:var(--ag-checkbox-indeterminate-shape-color);-webkit-mask-image:var(--ag-checkbox-indeterminate-shape-image);mask-image:var(--ag-checkbox-indeterminate-shape-image)}}}.ag-radio-button-input-wrapper{border-radius:100%;&.ag-checked:after{-webkit-mask-image:var(--ag-radio-checked-shape-image);mask-image:var(--ag-radio-checked-shape-image)}}',Bm=Ua("checkboxStyle","default").withAdditionalParams({checkboxBorderWidth:1,checkboxBorderRadius:{ref:"borderRadius"},checkboxUncheckedBackgroundColor:{ref:"backgroundColor"},checkboxUncheckedBorderColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxCheckedBackgroundColor:{ref:"accentColor"},checkboxCheckedBorderColor:{ref:"accentColor"},checkboxCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="7" fill="none"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75" d="M1 3.5 3.5 6l5-5"/></svg>'},checkboxCheckedShapeColor:{ref:"backgroundColor"},checkboxIndeterminateBackgroundColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxIndeterminateBorderColor:{ref:"foregroundColor",mix:.3,onto:"backgroundColor"},checkboxIndeterminateShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="10" height="2" fill="none"><rect width="10" height="2" fill="#000" rx="1"/></svg>'},checkboxIndeterminateShapeColor:{ref:"backgroundColor"},radioCheckedShapeImage:{svg:'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6" fill="none"><circle cx="3" cy="3" r="3" fill="#000"/></svg>'}}).withCSS(Nm),Vm=Ua("colorScheme","light"),Mm='.ag-icon:before{background-color:currentColor;content:"";display:block;height:var(--ag-icon-size);-webkit-mask-image:linear-gradient(#0000,#0000);mask-image:linear-gradient(#0000,#0000);-webkit-mask-size:contain;mask-size:contain;width:var(--ag-icon-size)}',Bd={aggregation:'<path d="M18 7V4H6l6 8-6 8h12v-3"/>',arrows:'<polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" x2="22" y1="12" y2="12"/><line x1="12" x2="12" y1="2" y2="22"/>',asc:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',cancel:'<circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>',chart:'<line x1="18" x2="18" y1="20" y2="10"/><line x1="12" x2="12" y1="20" y2="4"/><line x1="6" x2="6" y1="20" y2="14"/>',"color-picker":'<path d="m19 11-8-8-8.6 8.6a2 2 0 0 0 0 2.8l5.2 5.2c.8.8 2 .8 2.8 0L19 11Z"/><path d="m5 2 5 5"/><path d="M2 13h15"/><path d="M22 20a2 2 0 1 1-4 0c0-1.6 1.7-2.4 2-4 .3 1.6 2 2.4 2 4Z"/>',columns:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>',contracted:'<path d="m9 18 6-6-6-6"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',cross:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',csv:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',cut:'<circle cx="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/>',desc:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',down:'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',excel:'<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/>',expanded:'<path d="m15 18-6-6 6-6"/>',"eye-slash":'<path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/>',eye:'<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/>',filter:'<path d="M3 6h18"/><path d="M7 12h10"/><path d="M10 18h4"/>',first:'<path d="m17 18-6-6 6-6"/><path d="M7 6v12"/>',group:'<path d="M16 12H3"/><path d="M16 18H3"/><path d="M10 6H3"/><path d="M21 18V8a2 2 0 0 0-2-2h-5"/><path d="m16 8-2-2 2-2"/>',last:'<path d="m7 18 6-6-6-6"/><path d="M17 6v12"/>',left:'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',linked:'<path d="M9 17H7A5 5 0 0 1 7 7h2"/><path d="M15 7h2a5 5 0 1 1 0 10h-2"/><line x1="8" x2="16" y1="12" y2="12"/>',loading:'<line x1="12" x2="12" y1="2" y2="6"/><line x1="12" x2="12" y1="18" y2="22"/><line x1="4.93" x2="7.76" y1="4.93" y2="7.76"/><line x1="16.24" x2="19.07" y1="16.24" y2="19.07"/><line x1="2" x2="6" y1="12" y2="12"/><line x1="18" x2="22" y1="12" y2="12"/><line x1="4.93" x2="7.76" y1="19.07" y2="16.24"/><line x1="16.24" x2="19.07" y1="7.76" y2="4.93"/>',maximize:'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>',menu:'<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',"menu-alt":'<circle cx="12" cy="5" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="12" r="0.75" fill="#D9D9D9"/><circle cx="12" cy="19" r="0.75" fill="#D9D9D9"/>',minimize:'<polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" x2="21" y1="10" y2="3"/><line x1="3" x2="10" y1="21" y2="14"/>',minus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/>',next:'<path d="m9 18 6-6-6-6"/>',none:'<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',"not-allowed":'<circle cx="12" cy="12" r="10"/><path d="m4.9 4.9 14.2 14.2"/>',paste:'<path d="M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"/><path d="M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"/><path d="m17 10 4 4-4 4"/>',pin:'<line x1="12" x2="12" y1="17" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/>',pivot:'<path d="M15 3v18"/><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M21 9H3"/><path d="M21 15H3"/>',plus:'<circle cx="12" cy="12" r="10"/><path d="M8 12h8"/><path d="M12 8v8"/>',previous:'<path d="m15 18-6-6 6-6"/>',right:'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',save:'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',"small-down":'<path d="m6 9 6 6 6-6"/>',"small-left":'<path d="m15 18-6-6 6-6"/>',"small-right":'<path d="m9 18 6-6-6-6"/>',"small-up":'<path d="m18 15-6-6-6 6"/>',tick:'<path d="M20 6 9 17l-5-5"/>',"tree-closed":'<path d="m9 18 6-6-6-6"/>',"tree-indeterminate":'<path d="M5 12h14"/>',"tree-open":'<path d="m6 9 6 6 6-6"/>',unlinked:'<path d="M9 17H7A5 5 0 0 1 7 7"/><path d="M15 7h2a5 5 0 0 1 4 8"/><line x1="8" x2="12" y1="12" y2="12"/><line x1="2" x2="22" y1="2" y2="22"/>',up:'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',grip:'<circle cx="5" cy="8" r="0.5"/><circle cx="12" cy="8" r="0.5"/><circle cx="19" cy="8" r="0.5"/><circle cx="5" cy="16" r="0.5"/><circle cx="12" cy="16" r="0.5"/><circle cx="19" cy="16" r="0.5"/><g stroke="none" fill="currentColor"><circle cx="5" cy="8" r="1"/><circle cx="12" cy="8" r="1"/><circle cx="19" cy="8" r="1"/><circle cx="5" cy="16" r="1"/><circle cx="12" cy="16" r="1"/><circle cx="19" cy="16" r="1"/></g>',settings:'<path d="M20 7h-9"/><path d="M14 17H5"/><circle cx="17" cy="17" r="3"/><circle cx="7" cy="7" r="3"/>'},zm=(a={})=>{let e=Mm;for(const t of Object.keys(Bd)){const i=Am(t,a.strokeWidth||1.5);e+=`.ag-icon-${t}::before { mask-image: url('data:image/svg+xml,${encodeURIComponent(i)}'); }
17
- `}return e},Am=(a,e)=>{const t=Bd[a];if(!t)throw new Error(`Missing icon data for ${a}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon ag-icon-${a}" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${e}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+t+"</svg>"},Om=(a={})=>Ua("iconSet","quartz").withCSS(()=>zm(a)),Lm=":where(input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)){-moz-appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}:where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color)}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}&.ag-ltr :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-left:var(--ag-input-padding-start)}&.ag-rtl :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-right:var(--ag-input-padding-start)}",Dm=Ua("inputStyle","base").withAdditionalParams({inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"}}).withCSS(Lm),Im=yd(Dm,"bordered").withParams({inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:{ref:"accentColor"}},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:{ref:"foregroundColor",mix:.06,onto:"backgroundColor"},inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),Rm='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex;.ag-tabs-header{flex:1}}.ag-tabs-close-button-wrapper{border:0;padding:var(--ag-spacing)}&.ag-ltr .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}&.ag-rtl .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}&:focus-visible{box-shadow:inset var(--ag-focus-shadow)}}&.ag-ltr .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-left-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-right-color:var(--ag-tab-selected-border-color)}}}&.ag-rtl .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-right-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-left-color:var(--ag-tab-selected-border-color)}}}',Pm=Ua("tabStyle","base").withAdditionalParams({tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:"0",tabSelectedUnderlineTransitionDuration:"0",tabBarBorder:!1}).withCSS(Rm),jm=yd(Pm,"quartz").withParams({tabBarBorder:!0,tabBarBackgroundColor:{ref:"foregroundColor",mix:.05},tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),Fm=a=>vm(a).withPart(Bm),$m=Fm("quartz").withPart(Vm).withPart(Om).withPart(jm).withPart(()=>Im).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});function Vd(){Jt.ModuleRegistry.registerModules([Po.ClientSideRowModelModule,Lf.InfiniteRowModelModule,Jc.ServerSideRowModelModule,Df.CsvExportModule,Qc.ClipboardModule,Xc.RangeSelectionModule,If.RichSelectModule,Rf.MenuModule,Pf.ExcelExportModule]);const a=am("AGGRID_LICENSE");a?(Xe.LicenseManager.setLicenseKey(a),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const Md=$m.withParams({accentColor:"#110529",borderColor:"#E1E3EB",cellHorizontalPaddingScale:1,checkboxBorderRadius:"3px",checkboxUncheckedBorderColor:"#CFD1DB",columnBorder:!0,columnHoverColor:"#9BABCC16",fontFamily:"inherit",foregroundColor:"#110529",headerBackgroundColor:"#F7F8FA",headerColumnBorder:!0,headerFontWeight:600,headerRowBorder:!0,headerVerticalPaddingScale:.8,iconButtonHoverColor:"#9BABCC32",iconSize:"16px",menuBackgroundColor:"#FFFFFF",menuBorder:!0,menuTextColor:"#110529",rowHoverColor:"#9BABCC16",rowVerticalPaddingScale:1,selectedRowBackgroundColor:"#63E02424",sidePanelBorder:!1,spacing:"8px",tooltipBackgroundColor:"#110529",tooltipTextColor:"#FFFFFF",wrapperBorderRadius:"6px"}),zd=Symbol("sdk-vue");function zl(){return r.inject(zd)}function Zm(a,e){let t;Vd();const i=()=>{a.loadBlockState().then(s=>{l.loaded=!0;const d=Jf(s,a),u=e(d),p=Object.fromEntries(Object.entries(u.routes).map(([f,m])=>{const _=typeof m=="function"?m():m;return[f,r.markRaw(_)]}));t=Object.assign(d,{...u,getRoute(f){return p[f]}})}).catch(s=>{console.error("load initial state error",s),l.error=s})},l=r.reactive({loaded:!1,error:void 0,useApp(){return Ff(t,"App is not loaded")},install(s){s.provide(zd,this),i()}});return l}var Um=Object.defineProperty,Wm=(a,e,t)=>e in a?Um(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Hm=(a,e,t)=>Wm(a,e+"",t);const Gm=10,Ym=30,qm=[{text:"Delete row",value:"delete:row"},{text:"Update value",value:"update:value"}],Km=[{text:"Delete column",value:"delete:column"},{text:"Fit content",value:"expand:column"}],Jm=["^data-row-index"],Qm=["value"],Xm=r.defineComponent({__name:"TdCell",props:{cell:{},showContextOptions:{type:Function},cellEvents:{}},emits:["delete:row","update:value"],setup(a,{emit:e}){const t=e,i=a,l=r.reactive({edit:!1});function s(f){t("update:value",{rowIndex:i.cell.rowIndex,name:i.cell.colName,value:f.target.value}),l.edit=!1}function d(){const f=i.cellEvents??[];if(!i.showContextOptions){console.warn("inject showContextOptions interface for the table");return}const m=qm.filter(_=>f.includes(_.value));m.length&&i.showContextOptions(m,_=>{t(_,i.cell.rowIndex)})}const u=r.ref();function p(){i.cell.editable&&(l.edit=!0,requestAnimationFrame(()=>{var f,m;(m=(f=u.value)==null?void 0:f.querySelector("input"))==null||m.focus()}))}return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["cell",{[f.cell.class]:!0,edit:l.edit}]),"^data-row-index":f.cell.rowIndex,onContextmenu:d,onClick:r.withModifiers(p,["stop"])},[l.edit?(r.openBlock(),r.createElementBlock("input",{key:0,value:f.cell.value,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:s},null,40,Qm)):r.renderSlot(f.$slots,"default",{key:1})],42,Jm))}});function Ye(a,e,t,i=!1){r.onMounted(()=>{var l;return(l=r.unref(a))==null?void 0:l.addEventListener(e,t,i)}),r.onUnmounted(()=>{var l;return(l=r.unref(a))==null?void 0:l.removeEventListener(e,t,i)})}function ey(a){r.onMounted(()=>window.addEventListener("mouseup",a)),r.onUnmounted(()=>window.removeEventListener("mouseup",a))}function Ad(a){let e=!1;return function(...t){e?console.log("handle pressure"):(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function ty(a,e){let t;function i(s){t={...s}}ey(()=>{t=void 0,e()});const l=Ad(a);return Ye(window,"mousemove",s=>{t&&l({x:t.x,width:t.width,diff:s.x-t.x})}),{start:i}}var ry=Object.defineProperty,ny=(a,e,t)=>e in a?ry(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Al=(a,e,t)=>ny(a,typeof e!="symbol"?e+"":e,t);function Ol(a,e){if(a==null)throw Error(e??"Empty (null | undefined) value");return a}function ay(a,e){if(a===void 0)throw Error(e??"Undefined value");return a}function oy(a=void 0){return a}function iy(a){return a}function ly(a){return[...new Set(a)]}function sy(a,e){if(a==null)throw Error(e??"Empty (null | undefined) value")}function cy(a,e){if(a===void 0)throw Error(e??"Undefined value")}function Od(a,e,t){const i=Math.min(e,t),l=Math.max(e,t);return a>=i&&a<=l}function dy(a){return a.map(e=>({text:String(e),value:e}))}function uy(a){return function(...e){const t=a(...e);async function i(l){return l.done?Promise.resolve(l.value):Promise.resolve(l.value).then(s=>i(t.next(s))).catch(s=>i(t.throw(s)))}try{return i(t.next())}catch(l){return Promise.reject(l)}}}class gy{constructor(){Al(this,"promise"),Al(this,"resolve",()=>{}),Al(this,"reject",()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}function Jo(a){return new Promise(e=>setTimeout(e,a))}function py(){return new Promise(a=>queueMicrotask(a))}function fy(){const a=new Date().getTime();return function(){return new Date().getTime()-a}}function hy(){const a=performance.now();return function(){return performance.now()-a}}function Ld(a){return a()}function Wa(a,e,t){return e>a?e:a>t?t:a}function Ll(a,e){return e(a)}function qr(a,e){if(a!=null)return e(a)}function my(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function*Dd(a,e,t=1){for(let i=a;i<e;i+=t)yield i}function Id(a){const e=[];for(const t of a)e.push(t);return e}function yy(a,e){return Id(Dd(0,a)).map(e)}class by{constructor(e){this._delay=e}async*generate(){let e=0;for(;;)await Jo(this._delay),yield e++}async*[Symbol.asyncIterator](){let e=0;for(;;)await Jo(this._delay),yield e++}}function vy(a,e){return Array.from({length:a},(t,i)=>e(i))}function wy(a,e){throw Error(e)}function xy(a){return e=>a[e]()}function Rd(a){if(a&&a.ok)return a.value}function _y(a){if(a&&!a.ok)return a.error}function ky(a){if(a.ok)return a.value;throw Error(a.error)}function Cy(a){return Array.isArray(a)?a:[a]}async function Pd(a){return Object.fromEntries(await Promise.all(Object.entries(a).map(async([e,t])=>[e,await t])))}function Sy(a,e){return Object.keys(e).every(t=>a[t]===e[t])}const Dl=a=>a;function Ty(a){return a}function Ey(a){return Object.entries(a).map(([e,t])=>({key:e,value:t}))}const Qo=Object.freeze(Object.defineProperty({__proto__:null,Deferred:gy,Interval:by,alike:Sy,arrayFrom:vy,asConst:Ty,async:uy,between:Od,bool:iy,call:Ld,checkIfDefined:cy,checkIfNotEmpty:sy,clamp:Wa,delay:Jo,errorOptional:_y,exhaustive:wy,flatValue:Cy,identity:Dl,listToOptions:dy,match:xy,notEmpty:Ol,notUndef:ay,okOptional:Rd,performanceTimer:hy,randomInt:my,range:Dd,resolveAwaited:Pd,tap:Ll,tapIf:qr,tear:py,timer:fy,times:yy,toList:Id,undef:oy,unionize:Ey,uniqueValues:ly,unwrap:ky},Symbol.toStringTag,{value:"Module"}));function Ny(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function By(a){return a=a.replace(" ","-"),(a[0]||"").toLowerCase()+a.slice(1).replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Vy(a,e=[]){for(a=a?String(a):"";e.includes(a.charAt(0));)a=a.substr(1);for(;e.includes(a.charAt(a.length-1));)a=a.substr(0,a.length-1);return a}function jd(a){return a.replace(/^.*[\\/]/,"")}function Fd(a){return a.replace(/^.*?[.]/,"")}function My(a,e){const t=[];if(a.dataTransfer)for(let i=0;i<a.dataTransfer.items.length;i++){if(a.dataTransfer.items[i].kind!=="file")continue;const l=a.dataTransfer.items[i].getAsFile();l&&l.path&&t.push(l.path)}return e?t.filter(i=>e.includes(Fd(jd(i)))):t}const zy=(a,e,t="s")=>`${a} ${e}${a!==1?t:""}`;function Ay(a){try{return new RegExp(a),!0}catch{return!1}}function Oy(a){return a?a.charAt(0).toUpperCase()+a.slice(1):""}function Ly(a){return a?a.charAt(0).toLowerCase()+a.slice(1):""}function $d(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Ny(65,91));return e}function Zd(){return $d(42)}function Dy(a,e){return a.substring(0,a.indexOf(e))}function Iy(a,e){return a.substring(0,a.lastIndexOf(e))}function Ry(a,e){return a.substring(a.indexOf(e)+e.length,a.length)}function Py(a){if(typeof a!="string")throw Error("Expect string value, got: "+typeof a)}function jy(a){let e=0,t,i;if(a.length===0)return e;for(t=0;t<a.length;t++)i=a.charCodeAt(t),e=(e<<5)-e+i,e|=0;return e}const Fy=Object.freeze(Object.defineProperty({__proto__:null,after:Ry,assertString:Py,before:Dy,beforeLast:Iy,camelToKebab:By,extractExtension:Fd,extractFileName:jd,extractPaths:My,hashCode:jy,isRegexpValid:Ay,lcFirst:Ly,pluralize:zy,randomString:$d,trimChars:Vy,ucFirst:Oy,uniqueId:Zd},Symbol.toStringTag,{value:"Module"}));function Ha(a){return a!==null&&typeof a=="object"}function $y(a,e){return Object.keys(a).map(t=>e(a[t],t))}function Il(a,e){return Ha(a)&&Ha(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>Il(a[t],e[t])):a===e}function Ga(a){if(Array.isArray(a)){const e=[];for(let t=0;t<a.length;t++)e[t]=Ga(a[t]);return e}else if(Ha(a)){const e={};return Object.keys(a).forEach(t=>{e[t]=Ga(a[t])}),e}else return a}function Zy(a){return Array.isArray(a)?Object.assign([],a):Ha(a)?Object.assign({},a):a}function Uy(a,e){const t={};for(const i in e)e[i]!==a[i]&&(t[i]=a[i]);return t}function Wy(a,e,t){return Object.assign({},a,{[e]:t})}function Hy(a){return Object.entries(a).forEach(([e,t])=>{t instanceof Function&&(a[e]=t.bind(a))}),a}function Gy(a,e,t){return a[e]=t,a}function Yy(a,e){return a[e]}function qy(a,e){a={...a};const t=a[e];return delete a[e],[t,a]}function Ky(a,...e){return Object.assign({},...e.map(t=>({[t]:a[t]})))}function Jy(a,...e){return e.map(t=>a[t])}function Qy(a,...e){const t=Object.assign({},a);return e.forEach(i=>delete t[i]),t}const Rl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Hy,deepClone:Ga,deepEqual:Il,getProp:Yy,iSet:Wy,isObject:Ha,map:$y,omit:Qy,pick:Ky,pickValues:Jy,setProp:Gy,shallowClone:Zy,shallowDiff:Uy,shiftProp:qy},Symbol.toStringTag,{value:"Module"}));function Xy(a,e){const t=a.findIndex(e);if(t<0)return[];const i=(()=>{for(let l=t;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(t,i)}function Ud(a,e,t){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{i=void 0,a.apply(this,l)},e)}}const e0=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],t0=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],r0=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],n0=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Wd=(a,e)=>{let t=String(a);return typeof e=="string"||Array.isArray(e)?t=a.toLocaleString(e):e===!0&&(t=a.toLocaleString(void 0)),t};function Pl(a,e){if(a=typeof a=="bigint"?Number(a):a,!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);Object.assign(e,{bits:!1,binary:!1});const t=e.bits?e.binary?n0:r0:e.binary?t0:e0;if(e.signed&&a===0)return` 0 ${t[0]}`;const i=a<0,l=i?"-":e.signed?"+":"";if(i&&(a=-a),a<1){const p=Wd(a,e.locale);return l+p+" "+t[0]}const s=Math.min(Math.floor(e.binary?Math.log(a)/Math.log(1024):Math.log10(a)/3),t.length-1);a/=(e.binary?1024:1e3)**s,a=Number(a.toPrecision(3));const d=Wd(Number(a),e.locale),u=t[s];return l+d+" "+u}function a0(a){var e;const t=Qo.tapIf((e=r.unref(a))==null?void 0:e.querySelectorAll(".th-cell"),i=>[...i])??[];return t.map((i,l)=>{const{width:s,x:d}=i.getBoundingClientRect();return{index:l,width:s,x:d,right:d+s}}).slice(0,t.length-1)}function jl(){const a=r.reactive({x:0,y:0});function e(t){a.x=t.pageX,a.y=t.pageY}return r.onMounted(()=>window.addEventListener("mousemove",e)),r.onUnmounted(()=>window.removeEventListener("mousemove",e)),a}function Fl(a,e={}){const{delayEnter:t=0,delayLeave:i=0}=e,l=r.ref(!1);let s;const d=u=>{const p=u?t:i;s&&(clearTimeout(s),s=void 0),p?s=setTimeout(()=>l.value=u,p):l.value=u};return window&&(Ye(a,"mouseenter",()=>d(!0)),Ye(a,"mouseleave",()=>d(!1))),l}const{tapIf:o0,clamp:i0}=Qo;function l0(a,e){const t=jl(),i=Fl(e,{}),l=ty(d=>{o0(a.resizeTh,u=>{a.columnsMeta[u.index]={width:i0(d.width+d.diff,Ym,1e4)}})},()=>{a.resize=!1,a.resizeTh=void 0,document.body.style.cursor=""});function s(d){a.resizeTh&&(a.resize=!0,l.start({x:d.x,width:a.resizeTh.width}))}return r.watchEffect(()=>{if(!i.value){document.body.style.cursor="";return}if(a.resize)return;const d=a0(e).find(u=>Math.abs(t.x-u.right)<Gm);d?(document.body.style.cursor="col-resize",a.resizeTh=d):(a.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:s}}const Kr=(a,e)=>{const t=a.__vccOpts||a;for(const[i,l]of e)t[i]=l;return t},s0={},c0={class:"add-column-btn"};function d0(a,e){return r.openBlock(),r.createElementBlock("div",c0,e[0]||(e[0]=[r.createElementVNode("div",null,null,-1)]))}const u0=Kr(s0,[["render",d0]]),g0={},p0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f0(a,e){return r.openBlock(),r.createElementBlock("svg",p0,e[0]||(e[0]=[r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),r.createTextVNode(),r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const h0=Kr(g0,[["render",f0]]),m0=r.defineComponent({__name:"ThCell",props:{col:{},showContextOptions:{type:Function},columnEvents:{}},emits:["delete:column","expand:column","change:sort"],setup(a,{emit:e}){const t=e,i=a;function l(u,p){const f=p.indexOf(u)+1;return p[f>=p.length?0:f]}function s(){const u=i.columnEvents??[];if(!i.showContextOptions){console.warn("inject showContextOptions interface for the table");return}const p=Km.filter(f=>u.includes(f.value));p.length&&i.showContextOptions(p,f=>{t(f,i.col.name)})}function d(u,p){t("change:sort",{colName:u,direction:l(p??"DESC",["DESC","ASC"])})}return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["cell th-cell",{"justify-center":u.col.justify}]),onContextmenu:s},[u.col.valueType?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(u.col.valueType)},null,2)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(u.col.text)+" ",1),u.col.sort?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["sort",u.col.sort.direction]),onClick:p[0]||(p[0]=r.withModifiers(()=>{var f;return d(u.col.name,(f=u.col.sort)==null?void 0:f.direction)},["stop"]))},null,2)):r.createCommentVNode("",!0)],34))}}),y0=r.defineComponent({__name:"TRow",props:{index:{},visible:{type:Boolean},height:{}},setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",{class:"t-row",style:r.normalizeStyle(`height: ${e.height}px`)},[e.visible?r.renderSlot(e.$slots,"default",{key:0}):r.createCommentVNode("",!0)],4))}});function Hd(a){return typeof a=="number"||typeof a=="string"?a:String(a)}function b0(a,e,t){for(const[i,l]of Object.entries(a)){const s=Hd(e[i]),d=Hd(t[i]),u=l==="DESC"?-1:1;if(s!==d)return(s>d?1:-1)*u}return 0}function Gd(a){return a()}function $l(a,e){if(a==null)throw Error(e);return a}function Zl(a){let e=!1;return function(...t){e||(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Yd(a){return new Promise(e=>setTimeout(e,a))}function qd(a,e){const t=setTimeout(a,e);return()=>{clearTimeout(t)}}function Kd(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function v0(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Kd(65,91));return e}function Jd(a){return function(e){return 1-a(1-e)}}function w0(a){return function(e){return e<.5?a(2*e)/2:(2-a(2*(1-e)))/2}}function Qd(a){const{duration:e,draw:t,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=(u-l)/e;(p>1||s)&&(p=1);const f=i(p);t(f),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function x0(a){const{getFraction:e,draw:t,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=e(u-l);if(s)return;p>1&&(p=1);const f=i(p);t(f),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Xd(a,e){let t=-1;return(...i)=>{t!==-1&&(clearTimeout(t),t=-1),t=window.setTimeout(()=>a(...i),e)}}function Ul(a,e,t=!0){let i=0,l;return function(...s){l=()=>{a.apply(this,s),i=new Date().getTime()+e,l=null,t&&setTimeout(()=>{l&&l()},e)},new Date().getTime()>i&&l()}}function _0(a){return a.map(e=>({text:String(e),value:e}))}function Kn(a){return a.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const Wl=40,k0=r.defineComponent({__name:"index",props:{settings:{}},emits:["click:cell","delete:row","delete:column","change:sort","update:value"],setup(a){const{tapIf:e,tap:t}=Qo,{uniqueId:i}=Fy,l=a,s=r.reactive({rowIndex:-1,columnsMeta:{},resize:!1,resizeTh:void 0,bodyHeight:0,scrollTop:0}),d=r.ref(),u=r.ref(),p=r.ref(),f=()=>{e(p.value,U=>{s.bodyHeight=U.getBoundingClientRect().height})},m=r.computed(()=>l.settings.autoLastColumn?[...l.settings.columns,{name:i(),text:"_"}]:l.settings.columns),_=r.computed(()=>{const{columnsMeta:U}=s,I=r.unref(m),Z=Object.keys(U).length;return I.map((V,T)=>T==I.length-1?Z?"minmax(100px, 1fr)":V.width??"minmax(100px, 1fr)":U[T]?U[T].width+"px":V.width??"140px").join(" ")}),E=r.computed(()=>({gridColumn:"1 / "+r.unref(m).length+1})),B=r.computed(()=>r.unref(m).reduce((U,I)=>(U[I.name]=I.justify?"justify-"+I.justify:"",U),{})),M=r.computed(()=>{const U=r.unref(m),I=l.settings.rows.slice(),{bodyHeight:Z,scrollTop:V}=s;if(l.settings.selfSort){const W=U.reduce((P,G)=>{var oe;return(oe=G.sort)!=null&&oe.direction&&(P[G.name]=G.sort.direction),P},{});Object.keys(W).length&&I.sort((P,G)=>b0(W,P,G))}const T=160;let D=0;return I.map((W,P)=>{const G=t(W.__height?Number(W.__height):Wl,ie=>!Number.isFinite(ie)||ie<Wl?Wl:ie),oe=U.map(ie=>{const J=ie.name;return{colName:J,rowIndex:P,value:W[J],class:B.value[J]+(P===s.rowIndex?" hovered":""),slot:ie.slot,editable:ie.editable}}),de=Z?V<D+G+T&&D<Z+V+T:!1;return D+=G+1,{visible:de,height:G,cells:oe}})}),{mouseDown:C}=l0(s,d);function z(){e(u.value,U=>{var I;U.scrollLeft=((I=p.value)==null?void 0:I.scrollLeft)??0})}const v=Ul(()=>{var U;s.scrollTop=((U=p.value)==null?void 0:U.scrollTop)??0},10),O=()=>{z(),v()};function j(U){const I=m.value.findIndex(V=>V.name===U);if(I<0)return;const Z=l.settings.rows.reduce((V,T)=>{const D=9.52*Qo.call(()=>{const W=T[U];return W&&typeof W=="object"&&"segments"in W?W.segments.map(P=>P.sequence).join("").length:String(W??"").length});return D>V?D:V},0);s.columnsMeta[I]={width:Z}}return r.onMounted(()=>{r.nextTick(f)}),r.watchPostEffect(()=>{r.unref(l.settings),r.nextTick(f)}),Ye(window,"resize",()=>r.nextTick(f)),(U,I)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:d,class:"grid-table",onMousedown:I[5]||(I[5]=(...Z)=>r.unref(C)&&r.unref(C)(...Z))},[U.settings.addColumn?(r.openBlock(),r.createBlock(u0,{key:0,onClick:r.withModifiers(U.settings.addColumn,["stop"])},null,8,["onClick"])):r.createCommentVNode("",!0),I[9]||(I[9]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:u,class:"table-head",style:r.normalizeStyle({gridTemplateColumns:_.value})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.value,(Z,V)=>(r.openBlock(),r.createBlock(m0,{key:V,col:Z,"show-context-options":U.settings.showContextOptions,"column-events":U.settings.columnEvents,"onDelete:column":I[0]||(I[0]=T=>U.$emit("delete:column",T)),"onChange:sort":I[1]||(I[1]=T=>U.$emit("change:sort",T)),"onExpand:column":I[2]||(I[2]=T=>j(T))},null,8,["col","show-context-options","column-events"]))),128))],4),I[10]||(I[10]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:p,class:"table-body",onScroll:O},[M.value.length===0?(r.openBlock(),r.createElementBlock("div",{key:0,class:"table-body__no-data",style:r.normalizeStyle(E.value)},[r.createElementVNode("div",null,[r.createVNode(h0),I[6]||(I[6]=r.createTextVNode()),I[7]||(I[7]=r.createElementVNode("div",null,"No Data To Show",-1))])],4)):r.createCommentVNode("",!0),I[8]||(I[8]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(M.value,(Z,V)=>(r.openBlock(),r.createBlock(y0,{key:V,visible:Z.visible,height:Z.height,index:V,style:r.normalizeStyle({gridTemplateColumns:_.value})},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z.cells,(T,D)=>(r.openBlock(),r.createBlock(Xm,{key:D,cell:T,"show-context-options":U.settings.showContextOptions,"cell-events":U.settings.cellEvents,onClick:r.withModifiers(W=>U.$emit("click:cell",T),["stop"]),"onDelete:row":I[3]||(I[3]=W=>U.$emit("delete:row",W)),"onUpdate:value":I[4]||(I[4]=W=>U.$emit("update:value",W))},{default:r.withCtx(()=>[T.slot?r.renderSlot(U.$slots,T.colName,r.mergeProps({key:0,ref_for:!0},T),()=>[r.createTextVNode(r.toDisplayString(T.value),1)]):r.renderSlot(U.$slots,"default",r.mergeProps({key:1,ref_for:!0},T),()=>[r.createTextVNode(r.toDisplayString(T.value),1)])]),_:2},1032,["cell","show-context-options","cell-events","onClick"]))),128))]),_:2},1032,["visible","height","index","style"]))),128))],544)],544))}}),C0={class:"context-menu"},S0=["onClick"],T0=r.defineComponent({__name:"Menu",props:{options:{}},emits:["close"],setup(a,{emit:e}){const t=e,i=l=>{l.cb(),t("close")};return(l,s)=>(r.openBlock(),r.createElementBlock("div",C0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.options,(d,u)=>(r.openBlock(),r.createElementBlock("div",{key:u,onClick:r.withModifiers(p=>i(d),["stop"])},[r.createElementVNode("span",null,r.toDisplayString(d.text),1)],8,S0))),128))]))}}),E0=Kr(T0,[["__scopeId","data-v-12530966"]]);function Hl(a,e){a.preventDefault();const t=()=>{r.render(null,document.body)},i=r.h(E0,{options:e,onClose:()=>{t()}});r.render(i,document.body);const l=i.el;return l.style.top=a.clientY+"px",l.style.left=a.clientX+"px",document.addEventListener("click",s=>{l.contains(s.target)||t()}),t}const eu=Symbol(),Xo=()=>r.inject(eu),N0=["value"],B0={key:1},V0=r.defineComponent({__name:"BaseCellComponent",props:{modelValue:{},valueType:{},editable:{type:Boolean}},emits:["update:modelValue"],setup(a,{emit:e}){const t=e,i=a,l=r.reactive({edit:!1}),s=r.computed(()=>i.valueType),d=f=>{var m;let _=(m=f.target)==null?void 0:m.value;const E=r.unref(s),B=Ld(()=>E==="integer"?parseInt(_,10):E==="float"?Number(_):_);t("update:modelValue",B),l.edit=!1},u=r.ref(),p=f=>{!f.metaKey&&i.editable&&(l.edit=!0,requestAnimationFrame(()=>{var m,_;(_=(m=u.value)==null?void 0:m.querySelector("input"))==null||_.focus()}))};return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"baseRef",ref:u,class:r.normalizeClass(["base-cell",{"base-cell__edit":l.edit}]),onClick:p},[l.edit?(r.openBlock(),r.createElementBlock("input",{key:0,value:f.modelValue,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:d},null,40,N0)):(r.openBlock(),r.createElementBlock("div",B0,r.toDisplayString(f.modelValue),1))],2))}}),M0=["^data-row-index"],z0={key:0,class:"control-cell"},A0=r.defineComponent({__name:"TdCell",props:{cell:{}},setup(a){const e=a,t=Xo(),i=r.computed(()=>e.cell.column.valueType),l=f=>{qr(t.settings.value.onUpdatedRow,m=>{const _=e.cell.row,E={..._.dataRow,[e.cell.id]:f};m({..._,dataRow:E})})},s=f=>{f.metaKey&&t.selectRow(e.cell.row.primaryKey)},d=(f,m)=>{if(f.type==="contextmenu")f.preventDefault();else return;const _=t.settings??{},E=[],{onSelectedRows:B,onSelectedColumns:M}=_.value,C=t.data.selectedRows.has(m.primaryKey);B&&B.length&&(C?E.push({text:"Deselect row",cb(){t.data.selectedRows.delete(e.cell.row.primaryKey)}}):E.push({text:"Select row",cb(){t.selectRow(e.cell.row.primaryKey)}})),M&&M.length&&(E.push({text:"Select column",cb(){t.selectColumn(e.cell.column.id)}}),E.push({text:"Unselect column",cb(){t.unselectColumn(e.cell.column.id)}})),E.length&&Hl(f,E)},u=r.ref(),p=r.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["td-cell",{[f.cell.class]:!0}]),"^data-row-index":f.cell.row.index,onClick:s,onContextmenu:m[0]||(m[0]=_=>d(_,f.cell.row))},[f.cell.control?(r.openBlock(),r.createElementBlock("div",z0,r.toDisplayString(f.cell.row.index),1)):p.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.value),{key:1,"model-value":f.cell.value,"onUpdate:modelValue":l},null,8,["model-value"])):(r.openBlock(),r.createBlock(V0,{key:2,"model-value":f.cell.value,"value-type":i.value,editable:f.cell.column.editable,"onUpdate:modelValue":l},null,8,["model-value","value-type","editable"]))],42,M0))}}),O0={},L0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D0(a,e){return r.openBlock(),r.createElementBlock("svg",L0,e[0]||(e[0]=[r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),r.createTextVNode(),r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const I0=Kr(O0,[["render",D0]]),R0={class:"tr-head"},P0=r.defineComponent({__name:"TrHead",setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",R0,[r.renderSlot(e.$slots,"default")]))}});function j0(a,e){const t=e.indexOf(a)+1;return e[t>=e.length?0:t]}function F0(a,e){const t=a.findIndex(e);if(t<0)return[];const i=(()=>{for(let l=t;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(t,i)}const $0=["^data-col-id"],Z0=r.defineComponent({__name:"ThCell",props:{col:{}},emits:["delete:column","expand:column","change:sort"],setup(a,{emit:e}){const t=e;function i(s){s.preventDefault();const d=[];d.length&&Hl(s,d)}function l(s){var d;const u=((d=s.sort)==null?void 0:d.direction)??"DESC";t("change:sort",{colId:s.id,direction:j0(u,["DESC","ASC"])})}return(s,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["cell th-cell",{"justify-center":s.col.justify,frozen:s.col.frozen}]),"^data-col-id":s.col.id,onContextmenu:i},[s.col.valueType?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(s.col.valueType)},null,2)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(s.col.label)+" ",1),s.col.sort?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["sort",s.col.sort.direction]),onClick:d[0]||(d[0]=r.withModifiers(()=>l(s.col),["stop"]))},null,2)):r.createCommentVNode("",!0)],42,$0))}}),U0=r.defineComponent({__name:"TrBody",props:{row:{}},setup(a){const e=r.ref(),t=()=>{r.nextTick().then(()=>{qr(e.value,i=>i.scrollLeft=0)})};return(i,l)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"trRef",ref:e,class:r.normalizeClass(["tr-body",{selected:i.row.selected}]),scroll:"no",style:r.normalizeStyle(i.row.style),onScroll:t},[r.renderSlot(i.$slots,"default")],38))}}),W0=r.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(a){const e=Xo(),t=a,i=r.computed(()=>e.data.selectedColumns.has(t.column.id));return(l,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column-caret",{selected:i.value,frozen:l.column.frozen}])},null,2))}});function H0(a){r.onMounted(()=>window.addEventListener("mouseup",a)),r.onUnmounted(()=>window.removeEventListener("mouseup",a))}function G0(a,e){let t;function i(s){t={...s}}H0(()=>{t=void 0,e()});const l=Ad(a);return Ye(window,"mousemove",s=>{t&&l({x:t.x,width:t.width,diff:s.x-t.x})}),{start:i}}const Jn=1,Y0=10,q0=30,tu=60;function K0(a){var e;const t=qr((e=r.unref(a))==null?void 0:e.querySelectorAll(".th-cell"),i=>[...i])??[];return t.map(i=>{const{width:l,x:s}=i.getBoundingClientRect(),d=i.getAttribute("data-col-id");return Dl({colId:d,width:l,x:s,right:s+l})}).slice(0,t.length-1)}function J0(a,e){const t=jl(),i=Fl(e,{}),{data:l}=a,s=G0(u=>{qr(l.resizeTh,p=>{const f=l.columns.find(m=>m.id===p.colId);f&&(f.width=Wa(u.width+u.diff,q0,1e4),a.adjustWidth())})},()=>{l.resize=!1,l.resizeTh=void 0,document.body.style.cursor=""}),d=u=>{l.resizeTh&&(l.resize=!0,s.start({x:u.x,width:l.resizeTh.width}))};return r.watchEffect(()=>{if(!i.value){document.body.style.cursor="";return}if(l.resize)return;const u=K0(e).find(p=>Math.abs(t.x-p.right)<Y0);u?(document.body.style.cursor="col-resize",l.resizeTh=u):(l.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const Q0={key:0,class:"command-menu"},X0={key:0},eb=["onClick"],tb=r.defineComponent({__name:"RowsCommandMenu",setup(a){const e=Xo(),t=r.computed(()=>e.getSelectedRows()),i=r.computed(()=>t.value.length>0),l=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedRows)??[]}),s=r.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(t.value),e.data.selectedRows.clear(),e.data.rows=[]}})));return(d,u)=>i.value?(r.openBlock(),r.createElementBlock("div",Q0,[t.value.length?(r.openBlock(),r.createElementBlock("span",X0,r.toDisplayString(t.value.length)+" rows selected",1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(p,f)=>(r.openBlock(),r.createElementBlock("span",{key:f,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,eb))),128))])):r.createCommentVNode("",!0)}}),rb={key:0,class:"command-menu"},nb={key:0},ab=["onClick"],ob=r.defineComponent({__name:"ColumnsCommandMenu",setup(a){const e=Xo(),t=r.computed(()=>e.getSelectedColumns()),i=r.computed(()=>t.value.length>0),l=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedColumns)??[]}),s=r.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(t.value),e.data.selectedColumns.clear()}})));return(d,u)=>i.value?(r.openBlock(),r.createElementBlock("div",rb,[t.value.length?(r.openBlock(),r.createElementBlock("span",nb,"selected columns "+r.toDisplayString(t.value.length),1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(p,f)=>(r.openBlock(),r.createElementBlock("span",{key:f,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,ab))),128))])):r.createCommentVNode("",!0)}});function Jr(a,e){const t={el:void 0,x:0,y:0},i=l=>({x:l.x,y:l.y,dx:l.x-t.x,dy:l.y-t.y});Ye(document,"mousedown",l=>{l.target===r.unref(a)&&(l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault(),t.el=r.unref(a),t.x=l.x,t.y=l.y)}),Ye(document,"mouseup",l=>{t.el&&(t.el=void 0,e({...i(l),stop:!0},t))}),Ye(document,"mousemove",l=>{t.el&&e(i(l),t)})}const ib=r.defineComponent({__name:"TScroll",props:{offset:{},windowSize:{},dataSize:{}},emits:["change:offset"],setup(a,{emit:e}){const t=e,i=a,l=r.ref(),s=r.computed(()=>i.windowSize-12),d=r.computed(()=>i.windowSize<i.dataSize),u=r.computed(()=>Math.ceil(i.offset*(s.value/i.dataSize))),p=r.computed(()=>Math.ceil(s.value*s.value/i.dataSize)),f=r.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return Jr(l,(m,_)=>{const E=(u.value+m.dy)*i.dataSize/s.value;t("change:offset",E),_.x=m.x,_.y=m.y}),(m,_)=>(r.openBlock(),r.createElementBlock("div",{class:"t-scroll",style:r.normalizeStyle({height:`${m.windowSize}px`})},[r.createElementVNode("div",null,[d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"handleRef",ref:l,class:"t-scroll__handle",style:r.normalizeStyle(f.value)},null,4)):r.createCommentVNode("",!0)])],4))}});function lb(a){return r.computed(()=>{const{data:e,settings:t}=a,{bodyWidth:i,scrollLeft:l}=e,s=[...e.columns],d=Zd();t.value.controlColumn&&s.unshift({id:d,label:"#",width:60,frozen:!0});let u=0;const p=s.map(m=>{const _={...m,offset:u};return u+=m.width+Jn,_}),f=p.filter(m=>m.frozen);return Xy(p,m=>m.frozen?!1:l<m.offset+m.width&&m.offset<i+l).concat(f).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function sb(a,e){const t=r.computed(()=>e.value.reduce((i,l)=>(i[l.id]=l.justify?"justify-"+l.justify:"",i),{}));return r.computed(()=>a.rows.map(i=>{const l=t.value,{primaryKey:s,offset:d,dataRow:u,height:p}=i,f=e.value.map(m=>({id:m.id,column:m,row:i,value:u[m.id],class:l[m.id],editable:m.editable,width:m.width,style:m.style,control:m.control}));return Dl({style:{top:`${d-a.scrollTop}px`,height:`${i.height}px`},primaryKey:s,offset:d,height:p,cells:f,selected:a.selectedRows.has(s)})}))}const cb=async(a,e)=>{const{scrollTop:t,bodyHeight:i}=a;return await Jo(0),Pd({rows:e.getRows(t,i),dataWindow:a})};function db(a){const e=r.reactive({rowIndex:-1,columns:[],pendingLoads:0,currentWindow:void 0,rows:[],resize:!1,resizeTh:void 0,dataHeight:0,bodyHeight:a.settings.height,bodyWidth:0,scrollTop:0,scrollLeft:0,selectedRows:new Set,selectedColumns:new Set});r.watch(()=>a.settings,m=>{e.columns=Ga(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(_=>{e.dataHeight=_,f.updateBodyHeight()}).catch(_=>e.error=_)},{immediate:!0});const t=r.computed(()=>a.settings),i=r.computed(()=>e.columns.reduce((m,_)=>m+_.width+Jn,0)),l=r.computed(()=>Ll(f.data.dataHeight-f.data.bodyHeight,m=>m>0?m:0)),s=r.computed(()=>Ll(i.value-f.data.bodyWidth,m=>m>0?m:0)),d=r.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=lb({data:e,settings:t}),p=sb(e,u),f={data:e,settings:t,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((E,B)=>E+B.width+Jn,0),_=e.bodyWidth+e.scrollLeft;if(m<_){const E=e.columns[e.columns.length-1];E.width=E.width+(_-m)}},updateOffsets(m){this.updateScrollTop(e.scrollTop+m.deltaY),this.updateScrollLeft(e.scrollLeft+m.deltaX)},getSelectedRows(){return e.rows.filter(m=>e.selectedRows.has(m.primaryKey))},getSelectedColumns(){return e.columns.filter(m=>e.selectedColumns.has(m.id))},selectRow(m){e.selectedRows.add(m)},unselectRow(m){e.selectedRows.delete(m)},selectColumn(m){e.selectedColumns.add(m)},unselectColumn(m){e.selectedColumns.delete(m)},updateScrollTop(m){e.scrollTop=Wa(m,0,l.value)},updateScrollLeft(m){e.scrollLeft=Wa(m,0,s.value)},updateBodyHeight(){const{height:m}=a.settings,{dataHeight:_}=e,E=m>_?_:m;e.bodyHeight=E},updateDimensions(m){this.updateBodyHeight(),f.data.bodyWidth=m.width,f.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return r.watch(d,(m,_)=>{const E=m.current;(!E||m.scrollTop<E.scrollTop||m.scrollTop+m.bodyHeight>E.bodyHeight+E.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-tu,bodyHeight:m.bodyHeight+tu*2},cb(Ga(e.currentWindow),t.value.dataSource).then(({rows:B,dataWindow:M})=>{Il(e.currentWindow,M)&&(e.rows=B)}))},{deep:!0,immediate:!0}),r.provide(eu,f),f}const ub={class:"command-menu__container"},gb={key:0,class:"table-body__no-data"},pb={class:"carets"},Gl=r.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(a,{emit:e}){const t=e,i=a,l=db(i),s=r.computed(()=>l.data.rows.length===0),d=r.computed(()=>({height:s.value?"212px":l.data.bodyHeight+"px"}));r.watch(l.data,C=>t("update:data",C),{deep:!0}),r.watch(i,()=>m);const u=r.ref(),p=r.ref(),f=r.ref(),m=()=>{qr(f.value,C=>{l.updateDimensions(C.getBoundingClientRect())})},_=l.tableColumns,E=l.tableRows,{mouseDown:B}=J0(l,u);r.onMounted(()=>{r.nextTick(m)}),r.watchPostEffect(()=>{r.unref(i.settings),r.nextTick(m)}),Ye(window,"resize",()=>r.nextTick(m));const M=C=>{C.preventDefault(),l.updateOffsets(C)};return(C,z)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:z[2]||(z[2]=(...v)=>r.unref(B)&&r.unref(B)(...v))},[r.createElementVNode("div",ub,[r.createVNode(tb),z[3]||(z[3]=r.createTextVNode()),r.createVNode(ob)]),z[7]||(z[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[r.createVNode(P0,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,O)=>(r.openBlock(),r.createBlock(Z0,{key:O,col:v,style:r.normalizeStyle(v.style),"onChange:sort":z[0]||(z[0]=j=>C.$emit("change:sort",j))},null,8,["col","style"]))),128))]),_:1})],512),z[8]||(z[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:f,class:"table-body",style:r.normalizeStyle(d.value),onWheel:M},[s.value?(r.openBlock(),r.createElementBlock("div",gb,[r.createElementVNode("div",null,[r.createVNode(I0),z[4]||(z[4]=r.createTextVNode()),z[5]||(z[5]=r.createElementVNode("div",null,"No Data To Show",-1))])])):r.createCommentVNode("",!0),z[6]||(z[6]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(E),(v,O)=>(r.openBlock(),r.createBlock(U0,{key:O,row:v},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.cells,j=>(r.openBlock(),r.createBlock(A0,{key:j.column.id+":"+O,cell:j,style:r.normalizeStyle(j.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),z[9]||(z[9]=r.createTextVNode()),r.createElementVNode("div",pb,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,O)=>(r.openBlock(),r.createBlock(W0,{key:O,column:v,style:r.normalizeStyle(v.style),"onChange:sort":z[1]||(z[1]=j=>C.$emit("change:sort",j))},null,8,["column","style"]))),128))]),z[10]||(z[10]=r.createTextVNode()),r.createVNode(ib,{offset:r.unref(l).data.scrollTop,"window-size":r.unref(l).data.bodyHeight,"data-size":r.unref(l).data.dataHeight,"onChange:offset":r.unref(l).updateScrollTop},null,8,["offset","window-size","data-size","onChange:offset"])],544))}}),ru=new WeakMap;class fb{constructor(e,t,i){Hm(this,"dataHeight"),this.datum=e,this.resolveHeight=t,this.resolvePrimaryKey=i;const l=e.reduce((d,u,p)=>(d.indices.set(p,d.total),d.total+=this.resolveHeight(u,p)+Jn,d),{total:0,indices:new Map});this.dataHeight=l.total;const s=e.map((d,u)=>({dataRow:d,index:u,primaryKey:this.resolvePrimaryKey(d,u),offset:Ol(l.indices.get(u)),height:this.resolveHeight(d,u)}));ru.set(this,s)}get rows(){return ru.get(this)}async getHeight(){return this.dataHeight}async getRows(e,t){return F0(this.rows,i=>{const l=i.offset;return e<l+i.height&&l<t+e})}}class hb{constructor(e,t,i){this.api=e,this.rowHeight=t,this.resolvePrimaryKey=i}get height(){return this.rowHeight+Jn}async getHeight(){return await this.api.count()*this.height}async getRows(e,t){const i=Wa(Math.floor(e/this.height),0,Number.POSITIVE_INFINITY),l=Math.ceil(t+40/this.height);return(await this.api.query({offset:i,limit:l})).map((s,d)=>({dataRow:s,index:i+d,primaryKey:this.resolvePrimaryKey(s,i+d),offset:(i+d)*(this.rowHeight+Jn),height:this.rowHeight}))}}function mb(a){return Object.freeze(a)}function yb(a){return r.h(Gl,{settings:Object.freeze(a)})}function Yl(a,e){const t=new fb(a,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:t}}function bb(a,e){return r.computed(()=>{const t=r.unref(a);return Yl(t,r.unref(e))})}function vb(a,e){const t=r.computed(()=>{const l=r.unref(a);return Yl(l,r.unref(e))}),i=r.reactive({settings:t});return r.computed(()=>r.h(Gl,i))}const wb=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:hb,Component:Gl,factory:yb,rawDataSettings:Yl,settings:mb,useRawData:bb,useRawDataComponent:vb},Symbol.toStringTag,{value:"Module"}));function*xb(a,e){for(const t of a)yield e(t)}function _b(a){const e=[];for(const t of a)e.push(t);return e}const ql=new Map;function kb(a){return ql.has(a)||ql.set(a,r.ref(localStorage.getItem(a))),$l(ql.get(a),"...")}function Cb(a,e){e==null?localStorage.removeItem(a):localStorage.setItem(a,e)}function nu(a){const e=kb(a);return r.watch(e,t=>Cb(a,t)),e}const Kl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{_b(xb(Kl.values(),e=>e(a.matches?"dark":"light")))});const Sb=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",au=r.ref(Sb),Jl=nu("theme");function ou(a){const e=r.computed(()=>Jl.value?Jl.value:au.value),t=l=>{au.value=l,a&&a(l)};function i(){Jl.value=e.value==="light"?"dark":(e.value,"light")}return r.watch(e,l=>{a&&a(r.unref(l))}),r.onMounted(()=>{Kl.add(t)}),r.onUnmounted(()=>{Kl.delete(t)}),[e,i]}const Tb=r.defineComponent({__name:"ThemeSwitcher",setup(a){const[e,t]=ou();return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-theme-switcher",r.unref(e)]),onClick:l[0]||(l[0]=(...s)=>r.unref(t)&&r.unref(t)(...s))},l[1]||(l[1]=[r.createElementVNode("div",null,null,-1)]),2))}}),Eb={class:"pl-layout-component pl-block-page"},Nb={key:0,class:"pl-block-page__title"},Bb={class:"pl-block-page__title__append"},Vb={key:1},Mb={class:"pl-block-page__body"},zb={name:"PlBlockPage"},Ab=r.defineComponent({...zb,setup(a){const e=r.useSlots();return(t,i)=>(r.openBlock(),r.createElementBlock("div",Eb,[r.unref(e).title?(r.openBlock(),r.createElementBlock("div",Nb,[r.createElementVNode("h1",null,[r.renderSlot(t.$slots,"title")]),i[0]||(i[0]=r.createTextVNode()),r.createElementVNode("div",Bb,[r.renderSlot(t.$slots,"append")])])):(r.openBlock(),r.createElementBlock("div",Vb)),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",Mb,[r.renderSlot(t.$slots,"default")])]))}}),Ob={name:"PlContainer"},Lb=r.defineComponent({...Ob,props:{width:{}},setup(a){const e=a,t=r.computed(()=>({width:e.width}));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-container pl-layout-component",style:r.normalizeStyle(t.value)},[r.renderSlot(i.$slots,"default")],4))}}),Db={name:"PlRow"},Ib=r.defineComponent({...Db,props:{wrap:{type:Boolean},alignCenter:{type:Boolean}},setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["pl-layout-component pl-row",{wrap:e.wrap,"align-center":e.alignCenter}])},[r.renderSlot(e.$slots,"default")],2))}}),Rb={class:"pl-layout-component",style:{"flex-grow":"1"}},Pb={name:"PlSpacer"},iu=r.defineComponent({...Pb,setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",Rb))}}),jb={name:"PlGrid"},Fb=r.defineComponent({...jb,props:{columns:{}},setup(a){const e=a,t=r.computed(()=>({gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`}));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-layout-component pl-grid",style:r.normalizeStyle(t.value)},[r.renderSlot(i.$slots,"default")],4))}}),$b={key:0,class:"pl-alert__icon"},Zb={class:"pl-alert__main"},Ub={key:0},Wb={class:"pl-alert__main__text"},Hb={name:"PlAlert"},Gb=r.defineComponent({...Hb,props:{modelValue:{type:Boolean,default:!0},type:{default:void 0},label:{default:void 0},icon:{type:Boolean,default:void 0},closeable:{type:Boolean,default:void 0},monospace:{type:Boolean,default:void 0},whiteSpacePre:{type:Boolean,default:void 0},maxHeight:{default:void 0}},emits:["update:modelValue"],setup(a){const e={success:"success",warn:"warning",info:"edit",error:"error"};return(t,i)=>t.modelValue?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["pl-alert",[{monospace:t.monospace,whiteSpacePre:t.whiteSpacePre},t.type?`pl-alert__${t.type}`:""]]),style:r.normalizeStyle({maxHeight:t.maxHeight})},[t.icon&&t.type?(r.openBlock(),r.createElementBlock("div",$b,[r.createElementVNode("div",{class:r.normalizeClass(`icon-24 icon-${e[t.type]}`)},null,2)])):r.createCommentVNode("",!0),i[2]||(i[2]=r.createTextVNode()),r.createElementVNode("div",Zb,[t.label?(r.openBlock(),r.createElementBlock("label",Ub,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",Wb,[r.renderSlot(t.$slots,"default")])]),i[3]||(i[3]=r.createTextVNode()),t.closeable?(r.openBlock(),r.createElementBlock("div",{key:1,class:"pl-alert__close-btn","aria-label":"Close alert",role:"button",onClick:i[0]||(i[0]=l=>t.$emit("update:modelValue",!1))})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)}}),Ya=r.defineComponent({__name:"MaskIcon16",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>e.size==="large"?"--mask-size: 24px":""),i=r.computed(()=>`mask-16 mask-${e.name}`);return(l,s)=>(r.openBlock(),r.createElementBlock("i",{style:r.normalizeStyle(t.value),class:r.normalizeClass(i.value)},null,6))}});function lu(a){function e(t){const i=t.currentTarget,l=document.createElement("span"),s=Math.max(i.clientWidth,i.clientHeight),d=s/2;l.style.width=l.style.height=`${s}px`,l.style.left=`${t.clientX-i.offsetLeft-d}px`,l.style.top=`${t.clientY-i.offsetTop-d}px`,l.classList.add("ripple");const u=i.getElementsByClassName("ripple")[0];u&&u.remove(),i.appendChild(l)}r.onMounted(()=>{var t;(t=a.value)==null||t.addEventListener("click",e)})}const Yb={key:0},qb={inheritAttrs:!1},ei=r.defineComponent({...qb,__name:"BtnBase",props:{loading:{type:Boolean},small:{type:Boolean},large:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a,t=r.ref(),i=r.computed(()=>e.small||e.size==="small"),l=r.computed(()=>e.large||e.size==="large");return lu(t),(s,d)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btn",ref:t,tabindex:"0",class:{loading:s.loading,small:i.value,large:l.value,round:s.round,reverse:s.reverse,justifyCenter:s.justifyCenter,[s.$attrs.class+""]:!0}},{...s.$attrs,disabled:!!s.$attrs.disabled||s.loading}),[s.round?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",Yb,[r.renderSlot(s.$slots,"default")])),d[0]||(d[0]=r.createTextVNode()),s.loading?(r.openBlock(),r.createBlock(Ya,{key:1,name:"loading",size:s.size},null,8,["size"])):s.icon?(r.openBlock(),r.createBlock(Ya,{key:2,name:s.icon,size:s.size},null,8,["name","size"])):r.createCommentVNode("",!0)],16))}}),Kb={name:"PlBtnPrimary"},Ql=r.defineComponent({...Kb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(ei,r.mergeProps({class:"pl-btn-primary"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Jb={name:"PlBtnAccent"},Qb=r.defineComponent({...Jb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(ei,r.mergeProps({class:"pl-btn-accent"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Xb={name:"PlBtnDanger"},ev=r.defineComponent({...Xb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(ei,r.mergeProps({class:"pl-btn-danger"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),tv={name:"PlBtnSecondary"},Xl=r.defineComponent({...tv,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(ei,r.mergeProps(e,{class:"pl-btn-secondary"}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),rv={key:0},nv={name:"PlBtnGhost"},es=r.defineComponent({...nv,props:{loading:{type:Boolean},size:{default:void 0},round:{type:Boolean},icon:{default:void 0},reverse:{type:Boolean},justifyCenter:{type:Boolean,default:!1}},setup(a){const e=a,t=r.computed(()=>e.size==="small"),i=r.computed(()=>e.size==="large"),l=r.ref(),s=r.useSlots();return lu(l),(d,u)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btnRef",ref:l,tabindex:"0",class:["ui-btn-ghost",{loading:d.loading,small:t.value,large:i.value,round:d.round,reverse:d.reverse,justifyCenter:d.justifyCenter,[d.$attrs.class+""]:!0}]},{...d.$attrs,disabled:!!d.$attrs.disabled||d.loading}),[r.unref(s).default&&!d.round?(r.openBlock(),r.createElementBlock("span",rv,[r.renderSlot(d.$slots,"default")])):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),d.loading?(r.openBlock(),r.createBlock(Ya,{key:1,name:"loading",size:d.size},null,8,["size"])):d.icon?(r.openBlock(),r.createBlock(Ya,{key:2,name:d.icon,size:d.size},null,8,["name","size"])):r.createCommentVNode("",!0),u[1]||(u[1]=r.createTextVNode()),r.renderSlot(d.$slots,"append")],16))}}),av=r.defineComponent({__name:"PlBtnLink",props:{loading:{type:Boolean},size:{},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean},disabled:{type:Boolean}},setup(a){const e=a,t=r.ref(!1);return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-btn-link",{disabled:i.disabled,loading:i.loading,hover:t.value}]),onMouseover:l[0]||(l[0]=s=>t.value=!0),onMouseleave:l[1]||(l[1]=s=>t.value=!1)},[r.createVNode(Xl,r.mergeProps({round:"",hover:t.value},e),null,16,["hover"]),l[2]||(l[2]=r.createTextVNode()),r.renderSlot(i.$slots,"default")],34))}});function su(a,e){const t=Zl(()=>{if(a.value){const{scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p}=document.documentElement,f=a.value.getBoundingClientRect();e({scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p,offsetY:i+f.y,offsetX:l+f.x,top:f.top,right:f.right,bottom:f.bottom,left:f.left,width:f.width,height:f.height,x:f.x,y:f.y})}});r.onMounted(t),Ye(window,"scroll",t,!0),Ye(window,"resize",t,!0),Ye(window,"adjust",t,!0)}function ov(a,e){const t=r.ref();return su(a,i=>{t.value=i}),r.computed(()=>{const i=r.unref(t),l=r.unref(e),s=l.position??"top",d=l.gap??8;if(!i)return"";const u=i.offsetY+Math.floor(i.height/2),p=i.offsetX+Math.floor(i.width/2);return s==="top-left"?`left: ${i.offsetX}px; top: ${i.offsetY-d}px;`:s==="top"?`left: ${p}px; top: ${i.offsetY-d}px;`:s==="right"?`left: ${i.offsetX+i.width+d}px; top: ${u}px;`:s==="left"?`right: ${i.scrollWidth-i.x+d}px; top: ${u}px;`:""})}function ti(a,e){return e(a)}function it(a,e){if(a!=null)return e(a)}function iv(a){return Array.isArray(a)?a:[a]}function lv(a,e,...t){t.forEach(i=>{a[i]=e[i]})}function ri(a,e){Ye(document,"click",t=>{document.contains(t.target)&&(iv(a).map(i=>i.value).filter(i=>!!i).some(i=>i==null?void 0:i.contains(t.target))||e())})}const sv={},cv={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dv(a,e){return r.openBlock(),r.createElementBlock("svg",cv,e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.00222 8.00933L0 4.00711L4.00222 0.00488281L4.00222 8.00933Z",fill:"#24223D"},null,-1)]))}const uv=Kr(sv,[["render",dv]]),ts=new Map,gv={name:"PlTooltip"},$t=r.defineComponent({...gv,props:{openDelay:{default:100},closeDelay:{default:1e3},position:{default:"top"},hide:{type:Boolean},gap:{default:8},element:{default:"div"}},emits:["tooltip:close"],setup(a,{emit:e}){const t=e,i=Symbol(),l=a,s=r.reactive({open:!1,over:!1,tooltipOpen:!1,key:Symbol()});ts.set(i,()=>f()),r.watch(()=>s.open,C=>{requestAnimationFrame(()=>{s.tooltipOpen=C})});let d=()=>{};const u=Ul(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),p=()=>{s.open=!0;for(let[C,z]of ts.entries())C!==i&&z()},f=()=>{s.open=!1,t("tooltip:close")},m=async()=>{l.hide||(u(),s.over=!0,d(),await Yd(100),s.over&&p())},_=()=>{s.over=!1,d=qd(()=>{s.over||f()},l.closeDelay)};r.watch(()=>l.hide,C=>{C&&f()});const E=r.ref(),B=r.ref(),M=ov(E,r.toRef(l));return ri([E,B],()=>f()),r.onUnmounted(()=>{ts.delete(i)}),(C,z)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(C.element),r.mergeProps(C.$attrs,{ref_key:"rootRef",ref:E,onClick:m,onMouseover:m,onMouseleave:_}),{default:r.withCtx(()=>[r.renderSlot(C.$slots,"default"),z[1]||(z[1]=r.createTextVNode()),C.$slots.tooltip&&s.open?(r.openBlock(),r.createBlock(r.Teleport,{key:0,to:"body"},[r.createVNode(r.Transition,{name:"tooltip-transition"},{default:r.withCtx(()=>[s.tooltipOpen?(r.openBlock(),r.createElementBlock("div",{key:0,class:"pl-tooltip__container",style:r.normalizeStyle(r.unref(M))},[r.createElementVNode("div",{ref_key:"tooltip",ref:B,class:r.normalizeClass(["pl-tooltip",C.position]),onMouseover:m,onMouseleave:_},[r.createElementVNode("div",null,[r.renderSlot(C.$slots,"tooltip")]),z[0]||(z[0]=r.createTextVNode()),r.createVNode(uv)],34)],4)):r.createCommentVNode("",!0)]),_:3})])):r.createCommentVNode("",!0)]),_:3},16))}}),pv={},fv={class:"inner-border"};function hv(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",fv,[r.renderSlot(a.$slots,"default")])}const mv=Kr(pv,[["render",hv]]),yv={key:0},bv=["tabindex","onKeydown","onClick"],vv={key:1,class:"ui-btn-group__helper"},wv={key:2,class:"ui-btn-group__error"},xv={name:"PlBtnGroup"},_v=r.defineComponent({...xv,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean},helper:{},error:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=u=>i("update:modelValue",u),s=a,d=r.computed(()=>s.options.map(u=>({label:"label"in u?u.label:u.text,value:u.value})));return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-btn-group",{disabled:u.disabled}])},[u.label?(r.openBlock(),r.createElementBlock("label",yv,[r.createElementVNode("span",null,r.toDisplayString(u.label),1),p[0]||(p[0]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(u.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),p[1]||(p[1]=r.createTextVNode()),r.createVNode(mv,{class:"ui-btn-group__container"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(f,m)=>(r.openBlock(),r.createElementBlock("div",{key:m,class:r.normalizeClass(["ui-btn-group__option",{active:u.modelValue===f.value}]),tabindex:u.modelValue===f.value||u.disabled?void 0:0,onKeydown:r.withKeys(_=>l(f.value),["enter"]),onClick:_=>l(f.value)},r.toDisplayString(f.label),43,bv))),128))]),_:1}),p[2]||(p[2]=r.createTextVNode()),u.helper?(r.openBlock(),r.createElementBlock("div",vv,r.toDisplayString(u.helper),1)):u.error?(r.openBlock(),r.createElementBlock("div",wv,r.toDisplayString(u.error),1)):r.createCommentVNode("",!0)],2))}}),kv={inheritAttrs:!1},Cv={class:"double-contour"};function Sv(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",Cv,[r.createElementVNode("div",r.normalizeProps(r.guardReactiveProps(a.$attrs)),[r.renderSlot(a.$slots,"default")],16)])}const Qn=Kr(kv,[["render",Sv]]);function cu(a){r.onMounted(a),r.onUpdated(a)}const rs=new WeakMap,ns=new ResizeObserver(a=>{for(const e of a)it(rs.get(e.target),t=>t(e))});function du(a,e){rs.set(a,e),ns.unobserve(a),ns.observe(a)}function uu(a){ns.unobserve(a),rs.delete(a)}const Tv=8,gu=4;function Cn(a,e="label"){const t=new Set;cu(()=>{it(a==null?void 0:a.value,i=>{const l=i.querySelector(e);l&&(t.add(l),du(l,()=>{const s=Gd(()=>l.getBoundingClientRect().width+ti(Tv,d=>Number.isNaN(d)?gu:d+gu));i.style.getPropertyValue("--label-offset-right-x")!==`${s}px`&&i.style.setProperty("--label-offset-right-x",`${s}px`)}))})}),r.onBeforeUnmount(()=>{Array.from(t.values()).map(i=>uu(i))})}function Ev(a,e){const t=[];return e&&e.length>0&&e.forEach(i=>{const l=i(a);typeof l=="string"&&t.push(l)}),{isValid:t.length===0,errors:t}}function pu(a,e){return r.computed(()=>Ev(a.value,e))}const Nv={class:"ui-text-field__envelope"},Bv={key:0,ref:"label"},Vv={key:0,class:"required-icon"},Mv={key:1,class:"ui-text-field__prefix"},zv=["disabled","placeholder"],Av={class:"ui-text-field__append"},Ov={key:0,class:"ui-text-field__error"},Lv={key:1,class:"ui-text-field__helper"},Dv={name:"PlTextField"},fu=r.defineComponent({...Dv,props:{modelValue:{},label:{},clearable:{type:[Boolean,Function]},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.ref(void 0),d=r.ref(),u=r.computed({get(){return l.modelValue??""},set(M){i("update:modelValue",M)}}),p=()=>{l.clearable&&i("update:modelValue",l.clearable===!0?"":l.clearable())},f=pu(u,l.rules||[]),m=r.computed(()=>l.clearable?l.clearable===!0?l.modelValue==="":l.modelValue===l.clearable():l.modelValue===""),_=r.computed(()=>!m.value),E=r.computed(()=>{const M=[];return l.error&&M.push(l.error),f.value.isValid||M.push(...f.value.errors),M}),B=r.computed(()=>E.value.length>0);return Cn(s),(M,C)=>(r.openBlock(),r.createElementBlock("div",Nv,[r.createElementVNode("div",{ref_key:"rootRef",ref:s,class:r.normalizeClass(["ui-text-field",{error:B.value,disabled:M.disabled,dashed:M.dashed,nonEmpty:_.value}])},[M.label?(r.openBlock(),r.createElementBlock("label",Bv,[M.required?(r.openBlock(),r.createElementBlock("i",Vv)):r.createCommentVNode("",!0),C[1]||(C[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(M.label),1),C[2]||(C[2]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:1,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(M.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),C[4]||(C[4]=r.createTextVNode()),M.prefix?(r.openBlock(),r.createElementBlock("div",Mv,r.toDisplayString(M.prefix),1)):r.createCommentVNode("",!0),C[5]||(C[5]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":C[0]||(C[0]=z=>u.value=z),disabled:M.disabled,placeholder:M.placeholder||"...",type:"text",spellcheck:"false"},null,8,zv),[[r.vModelText,u.value]]),C[6]||(C[6]=r.createTextVNode()),r.createElementVNode("div",Av,[M.clearable&&_.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"icon icon--clear",onClick:p})):r.createCommentVNode("",!0),C[3]||(C[3]=r.createTextVNode()),r.renderSlot(M.$slots,"append")]),C[7]||(C[7]=r.createTextVNode()),r.createVNode(Qn,{class:"ui-text-field__contour"})],2),C[8]||(C[8]=r.createTextVNode()),B.value?(r.openBlock(),r.createElementBlock("div",Ov,r.toDisplayString(E.value.join(" ")),1)):M.helper?(r.openBlock(),r.createElementBlock("div",Lv,r.toDisplayString(M.helper),1)):r.createCommentVNode("",!0)]))}}),Iv={class:"ui-text-area__envelope"},Rv={key:0,ref:"label"},Pv={key:0,class:"required-icon"},jv=["readonly","rows","disabled","placeholder"],Fv={class:"ui-text-area__append"},$v={key:0,class:"ui-text-area__error"},Zv={key:1,class:"ui-text-area__helper"},Uv={name:"PlTextArea"},Wv=r.defineComponent({...Uv,props:{modelValue:{},label:{},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},dashed:{type:Boolean},rows:{},autogrow:{type:Boolean},rules:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.ref(),d=r.ref(),u=r.computed({get(){return l.modelValue??""},set(B){i("update:modelValue",B)}}),p=r.computed(()=>!!l.modelValue),f=pu(u,l.rules||[]);Cn(s);const m=r.computed(()=>{const B=[];return l.error&&B.push(l.error),B.push(...f.value.errors),B}),_=r.computed(()=>m.value.length>0),E=()=>{if(!l.autogrow)return;const B=d.value;B&&(B.style.height="auto",B.style.height=`${B.scrollHeight}px`)};return r.onMounted(()=>{E()}),(B,M)=>(r.openBlock(),r.createElementBlock("div",Iv,[r.createElementVNode("div",{ref_key:"root",ref:s,class:r.normalizeClass(["ui-text-area",{error:_.value,disabled:B.disabled,dashed:B.dashed,nonEmpty:p.value}])},[B.label?(r.openBlock(),r.createElementBlock("label",Rv,[B.required?(r.openBlock(),r.createElementBlock("i",Pv)):r.createCommentVNode("",!0),M[1]||(M[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(B.label),1),M[2]||(M[2]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:1,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(B.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),M[3]||(M[3]=r.createTextVNode()),r.withDirectives(r.createElementVNode("textarea",{ref_key:"input",ref:d,"onUpdate:modelValue":M[0]||(M[0]=C=>u.value=C),readonly:B.readonly,rows:B.rows,disabled:B.disabled,placeholder:B.placeholder??"...",spellcheck:"false",onInput:E},null,40,jv),[[r.vModelText,u.value]]),M[4]||(M[4]=r.createTextVNode()),r.createElementVNode("div",Fv,[r.renderSlot(B.$slots,"append")]),M[5]||(M[5]=r.createTextVNode()),r.createVNode(Qn,{class:"ui-text-area__contour"})],2),M[6]||(M[6]=r.createTextVNode()),_.value?(r.openBlock(),r.createElementBlock("div",$v,r.toDisplayString(m.value.join(" ")),1)):B.helper?(r.openBlock(),r.createElementBlock("div",Zv,r.toDisplayString(B.helper),1)):r.createCommentVNode("",!0)]))}});function hu(a,e){const t=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+t&&l>t}function mu(a,e){const t=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+t?"ceil":l>t?"floor":"visible"}function ni(a,e,t={}){const i=a.scrollTop,l=a.getBoundingClientRect().height,s=e.getBoundingClientRect().height,d=e.offsetTop,u=mu(a,e);if(u==="visible")return;const p=f=>{const m=u==="floor"?d-(l-s):d;a.scrollTop=i+f*(m-i)};hu(a,e)||Qd({duration:t.duration||100,timing:Jd(f=>f),draw:p})}function as(a,e,t,i){return a.addEventListener(e,t,i),function(){a.removeEventListener(e,t)}}function Hv(a,e){const t=e.getBoundingClientRect();return a.x<t.x||a.x>t.x+t.width||a.y<t.y||a.y>t.y+t.height}function yu(a){return a!==null&&typeof a=="object"}function tr(a,e){return yu(a)&&yu(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>tr(a[t],e[t])):a===e}function os(a,e){return a.some(t=>tr(t,e))}const Gv=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
17
+ `}return e},Am=(a,e)=>{const t=Bd[a];if(!t)throw new Error(`Missing icon data for ${a}`);return`<svg xmlns="http://www.w3.org/2000/svg" class="ag-icon ag-icon-${a}" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke="black" stroke-width="${e}" viewBox="0 0 24 24"><style>* { vector-effect: non-scaling-stroke; }</style>`+t+"</svg>"},Om=(a={})=>Ua("iconSet","quartz").withCSS(()=>zm(a)),Lm=":where(input[class^=ag-][type=number]:not(.ag-number-field-input-stepper)){-moz-appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}}:where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){background-color:var(--ag-input-background-color);border:var(--ag-input-border);border-radius:var(--ag-input-border-radius);color:var(--ag-input-text-color);cursor:pointer;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;min-height:var(--ag-input-height);padding:0;&:where(:disabled){background-color:var(--ag-input-disabled-background-color);border:var(--ag-input-disabled-border);color:var(--ag-input-disabled-text-color)}&:where(:focus){background-color:var(--ag-input-focus-background-color);border:var(--ag-input-focus-border);box-shadow:var(--ag-input-focus-shadow);color:var(--ag-input-focus-text-color)}&:where(:invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}&.ag-ltr :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-left:var(--ag-input-padding-start)}&.ag-rtl :where(input[class^=ag-]:not([type]),input[class^=ag-][type=text],input[class^=ag-][type=number],input[class^=ag-][type=tel],input[class^=ag-][type=date],input[class^=ag-][type=datetime-local],textarea[class^=ag-]){padding-right:var(--ag-input-padding-start)}",Dm=Ua("inputStyle","base").withAdditionalParams({inputBackgroundColor:"transparent",inputBorder:!1,inputBorderRadius:0,inputTextColor:{ref:"textColor"},inputPaddingStart:0,inputHeight:{calc:"max(iconSize, fontSize) + spacing * 2"},inputFocusBackgroundColor:{ref:"inputBackgroundColor"},inputFocusBorder:{ref:"inputBorder"},inputFocusShadow:"none",inputFocusTextColor:{ref:"inputTextColor"},inputDisabledBackgroundColor:{ref:"inputBackgroundColor"},inputDisabledBorder:{ref:"inputBorder"},inputDisabledTextColor:{ref:"inputTextColor"},inputInvalidBackgroundColor:{ref:"inputBackgroundColor"},inputInvalidBorder:{ref:"inputBorder"},inputInvalidTextColor:{ref:"inputTextColor"}}).withCSS(Lm),Im=yd(Dm,"bordered").withParams({inputBackgroundColor:{ref:"backgroundColor"},inputBorder:!0,inputBorderRadius:{ref:"borderRadius"},inputPaddingStart:{ref:"spacing"},inputFocusBorder:{color:{ref:"accentColor"}},inputFocusShadow:{ref:"focusShadow"},inputDisabledBackgroundColor:{ref:"foregroundColor",mix:.06,onto:"backgroundColor"},inputDisabledTextColor:{ref:"textColor",mix:.5},inputInvalidBorder:{color:{ref:"invalidColor"}}}),Rm='.ag-tabs-header{background-color:var(--ag-tab-bar-background-color);border-bottom:var(--ag-tab-bar-border);display:flex;gap:var(--ag-tab-spacing);padding:var(--ag-tab-bar-top-padding) var(--ag-tab-bar-horizontal-padding) 0}.ag-tabs-header-wrapper{display:flex;.ag-tabs-header{flex:1}}.ag-tabs-close-button-wrapper{border:0;padding:var(--ag-spacing)}&.ag-ltr .ag-tabs-close-button-wrapper{border-right:1px solid var(--ag-border-color)}&.ag-rtl .ag-tabs-close-button-wrapper{border-left:1px solid var(--ag-border-color)}.ag-tabs-close-button{background-color:unset;border:0;cursor:pointer;padding:0}.ag-tab{align-items:center;background-color:var(--ag-tab-background-color);border-left:var(--ag-tab-selected-border-width) solid transparent;border-right:var(--ag-tab-selected-border-width) solid transparent;color:var(--ag-tab-text-color);cursor:pointer;display:flex;flex:1;justify-content:center;padding:var(--ag-tab-top-padding) var(--ag-tab-horizontal-padding) var(--ag-tab-bottom-padding);position:relative;&:hover{background-color:var(--ag-tab-hover-background-color);color:var(--ag-tab-hover-text-color)}&.ag-tab-selected{background-color:var(--ag-tab-selected-background-color);color:var(--ag-tab-selected-text-color)}&:after{background-color:var(--ag-tab-selected-underline-color);bottom:0;content:"";display:block;height:var(--ag-tab-selected-underline-width);left:0;opacity:0;position:absolute;right:0;transition:opacity var(--ag-tab-selected-underline-transition-duration)}&.ag-tab-selected:after{opacity:1}&:focus-visible{box-shadow:inset var(--ag-focus-shadow)}}&.ag-ltr .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-left-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-right-color:var(--ag-tab-selected-border-color)}}}&.ag-rtl .ag-tab{&.ag-tab-selected{&:not(:first-of-type){border-right-color:var(--ag-tab-selected-border-color)}&:not(:last-of-type){border-left-color:var(--ag-tab-selected-border-color)}}}',Pm=Ua("tabStyle","base").withAdditionalParams({tabBarBackgroundColor:"transparent",tabBarHorizontalPadding:0,tabBarTopPadding:0,tabBackgroundColor:"transparent",tabTextColor:{ref:"textColor"},tabHorizontalPadding:{ref:"spacing"},tabTopPadding:{ref:"spacing"},tabBottomPadding:{ref:"spacing"},tabSpacing:"0",tabHoverBackgroundColor:{ref:"tabBackgroundColor"},tabHoverTextColor:{ref:"tabTextColor"},tabSelectedBackgroundColor:{ref:"tabBackgroundColor"},tabSelectedTextColor:{ref:"tabTextColor"},tabSelectedBorderWidth:1,tabSelectedBorderColor:"transparent",tabSelectedUnderlineColor:"transparent",tabSelectedUnderlineWidth:"0",tabSelectedUnderlineTransitionDuration:"0",tabBarBorder:!1}).withCSS(Rm),jm=yd(Pm,"quartz").withParams({tabBarBorder:!0,tabBarBackgroundColor:{ref:"foregroundColor",mix:.05},tabTextColor:{ref:"textColor",mix:.7},tabSelectedTextColor:{ref:"textColor"},tabHoverTextColor:{ref:"textColor"},tabSelectedBorderColor:{ref:"borderColor"},tabSelectedBackgroundColor:{ref:"backgroundColor"}}),Fm=a=>vm(a).withPart(Bm),$m=Fm("quartz").withPart(Vm).withPart(Om).withPart(jm).withPart(()=>Im).withParams({fontFamily:[{googleFont:"IBM Plex Sans"},"-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu"]});function Vd(){Jt.ModuleRegistry.registerModules([Po.ClientSideRowModelModule,Lf.InfiniteRowModelModule,Jc.ServerSideRowModelModule,Df.CsvExportModule,Qc.ClipboardModule,Xc.RangeSelectionModule,If.RichSelectModule,Rf.MenuModule,Pf.ExcelExportModule]);const a=am("AGGRID_LICENSE");a?(Xe.LicenseManager.setLicenseKey(a),console.log("AG Grid Activated")):console.log("AG Grid License not found")}const Md=$m.withParams({headerColumnResizeHandleColor:"transparent",accentColor:"#110529",borderColor:"#E1E3EB",cellHorizontalPaddingScale:1,checkboxBorderRadius:"3px",checkboxUncheckedBorderColor:"#CFD1DB",columnBorder:!0,columnHoverColor:"#9BABCC16",fontFamily:"inherit",foregroundColor:"#110529",headerBackgroundColor:"#F7F8FA",headerColumnBorder:!0,headerFontWeight:600,headerRowBorder:!0,headerVerticalPaddingScale:.8,iconButtonHoverColor:"#9BABCC32",iconSize:"16px",menuBackgroundColor:"#FFFFFF",menuBorder:!0,menuTextColor:"#110529",rowHoverColor:"#9BABCC16",rowVerticalPaddingScale:1,selectedRowBackgroundColor:"#63E02424",sidePanelBorder:!1,spacing:"8px",tooltipBackgroundColor:"#110529",tooltipTextColor:"#FFFFFF",wrapperBorderRadius:"6px"}),zd=Symbol("sdk-vue");function zl(){return r.inject(zd)}function Zm(a,e){let t;Vd();const i=()=>{a.loadBlockState().then(s=>{l.loaded=!0;const d=Jf(s,a),u=e(d),p=Object.fromEntries(Object.entries(u.routes).map(([f,m])=>{const _=typeof m=="function"?m():m;return[f,r.markRaw(_)]}));t=Object.assign(d,{...u,getRoute(f){return p[f]}})}).catch(s=>{console.error("load initial state error",s),l.error=s})},l=r.reactive({loaded:!1,error:void 0,useApp(){return Ff(t,"App is not loaded")},install(s){s.provide(zd,this),i()}});return l}var Um=Object.defineProperty,Wm=(a,e,t)=>e in a?Um(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Hm=(a,e,t)=>Wm(a,e+"",t);const Gm=10,Ym=30,qm=[{text:"Delete row",value:"delete:row"},{text:"Update value",value:"update:value"}],Km=[{text:"Delete column",value:"delete:column"},{text:"Fit content",value:"expand:column"}],Jm=["^data-row-index"],Qm=["value"],Xm=r.defineComponent({__name:"TdCell",props:{cell:{},showContextOptions:{type:Function},cellEvents:{}},emits:["delete:row","update:value"],setup(a,{emit:e}){const t=e,i=a,l=r.reactive({edit:!1});function s(f){t("update:value",{rowIndex:i.cell.rowIndex,name:i.cell.colName,value:f.target.value}),l.edit=!1}function d(){const f=i.cellEvents??[];if(!i.showContextOptions){console.warn("inject showContextOptions interface for the table");return}const m=qm.filter(_=>f.includes(_.value));m.length&&i.showContextOptions(m,_=>{t(_,i.cell.rowIndex)})}const u=r.ref();function p(){i.cell.editable&&(l.edit=!0,requestAnimationFrame(()=>{var f,m;(m=(f=u.value)==null?void 0:f.querySelector("input"))==null||m.focus()}))}return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["cell",{[f.cell.class]:!0,edit:l.edit}]),"^data-row-index":f.cell.rowIndex,onContextmenu:d,onClick:r.withModifiers(p,["stop"])},[l.edit?(r.openBlock(),r.createElementBlock("input",{key:0,value:f.cell.value,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:s},null,40,Qm)):r.renderSlot(f.$slots,"default",{key:1})],42,Jm))}});function Ye(a,e,t,i=!1){r.onMounted(()=>{var l;return(l=r.unref(a))==null?void 0:l.addEventListener(e,t,i)}),r.onUnmounted(()=>{var l;return(l=r.unref(a))==null?void 0:l.removeEventListener(e,t,i)})}function ey(a){r.onMounted(()=>window.addEventListener("mouseup",a)),r.onUnmounted(()=>window.removeEventListener("mouseup",a))}function Ad(a){let e=!1;return function(...t){e?console.log("handle pressure"):(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function ty(a,e){let t;function i(s){t={...s}}ey(()=>{t=void 0,e()});const l=Ad(a);return Ye(window,"mousemove",s=>{t&&l({x:t.x,width:t.width,diff:s.x-t.x})}),{start:i}}var ry=Object.defineProperty,ny=(a,e,t)=>e in a?ry(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,Al=(a,e,t)=>ny(a,typeof e!="symbol"?e+"":e,t);function Ol(a,e){if(a==null)throw Error(e??"Empty (null | undefined) value");return a}function ay(a,e){if(a===void 0)throw Error(e??"Undefined value");return a}function oy(a=void 0){return a}function iy(a){return a}function ly(a){return[...new Set(a)]}function sy(a,e){if(a==null)throw Error(e??"Empty (null | undefined) value")}function cy(a,e){if(a===void 0)throw Error(e??"Undefined value")}function Od(a,e,t){const i=Math.min(e,t),l=Math.max(e,t);return a>=i&&a<=l}function dy(a){return a.map(e=>({text:String(e),value:e}))}function uy(a){return function(...e){const t=a(...e);async function i(l){return l.done?Promise.resolve(l.value):Promise.resolve(l.value).then(s=>i(t.next(s))).catch(s=>i(t.throw(s)))}try{return i(t.next())}catch(l){return Promise.reject(l)}}}class gy{constructor(){Al(this,"promise"),Al(this,"resolve",()=>{}),Al(this,"reject",()=>{}),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}function Jo(a){return new Promise(e=>setTimeout(e,a))}function py(){return new Promise(a=>queueMicrotask(a))}function fy(){const a=new Date().getTime();return function(){return new Date().getTime()-a}}function hy(){const a=performance.now();return function(){return performance.now()-a}}function Ld(a){return a()}function Wa(a,e,t){return e>a?e:a>t?t:a}function Ll(a,e){return e(a)}function qr(a,e){if(a!=null)return e(a)}function my(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function*Dd(a,e,t=1){for(let i=a;i<e;i+=t)yield i}function Id(a){const e=[];for(const t of a)e.push(t);return e}function yy(a,e){return Id(Dd(0,a)).map(e)}class by{constructor(e){this._delay=e}async*generate(){let e=0;for(;;)await Jo(this._delay),yield e++}async*[Symbol.asyncIterator](){let e=0;for(;;)await Jo(this._delay),yield e++}}function vy(a,e){return Array.from({length:a},(t,i)=>e(i))}function wy(a,e){throw Error(e)}function xy(a){return e=>a[e]()}function Rd(a){if(a&&a.ok)return a.value}function _y(a){if(a&&!a.ok)return a.error}function ky(a){if(a.ok)return a.value;throw Error(a.error)}function Cy(a){return Array.isArray(a)?a:[a]}async function Pd(a){return Object.fromEntries(await Promise.all(Object.entries(a).map(async([e,t])=>[e,await t])))}function Sy(a,e){return Object.keys(e).every(t=>a[t]===e[t])}const Dl=a=>a;function Ty(a){return a}function Ey(a){return Object.entries(a).map(([e,t])=>({key:e,value:t}))}const Qo=Object.freeze(Object.defineProperty({__proto__:null,Deferred:gy,Interval:by,alike:Sy,arrayFrom:vy,asConst:Ty,async:uy,between:Od,bool:iy,call:Ld,checkIfDefined:cy,checkIfNotEmpty:sy,clamp:Wa,delay:Jo,errorOptional:_y,exhaustive:wy,flatValue:Cy,identity:Dl,listToOptions:dy,match:xy,notEmpty:Ol,notUndef:ay,okOptional:Rd,performanceTimer:hy,randomInt:my,range:Dd,resolveAwaited:Pd,tap:Ll,tapIf:qr,tear:py,timer:fy,times:yy,toList:Id,undef:oy,unionize:Ey,uniqueValues:ly,unwrap:ky},Symbol.toStringTag,{value:"Module"}));function Ny(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function By(a){return a=a.replace(" ","-"),(a[0]||"").toLowerCase()+a.slice(1).replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Vy(a,e=[]){for(a=a?String(a):"";e.includes(a.charAt(0));)a=a.substr(1);for(;e.includes(a.charAt(a.length-1));)a=a.substr(0,a.length-1);return a}function jd(a){return a.replace(/^.*[\\/]/,"")}function Fd(a){return a.replace(/^.*?[.]/,"")}function My(a,e){const t=[];if(a.dataTransfer)for(let i=0;i<a.dataTransfer.items.length;i++){if(a.dataTransfer.items[i].kind!=="file")continue;const l=a.dataTransfer.items[i].getAsFile();l&&l.path&&t.push(l.path)}return e?t.filter(i=>e.includes(Fd(jd(i)))):t}const zy=(a,e,t="s")=>`${a} ${e}${a!==1?t:""}`;function Ay(a){try{return new RegExp(a),!0}catch{return!1}}function Oy(a){return a?a.charAt(0).toUpperCase()+a.slice(1):""}function Ly(a){return a?a.charAt(0).toLowerCase()+a.slice(1):""}function $d(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Ny(65,91));return e}function Zd(){return $d(42)}function Dy(a,e){return a.substring(0,a.indexOf(e))}function Iy(a,e){return a.substring(0,a.lastIndexOf(e))}function Ry(a,e){return a.substring(a.indexOf(e)+e.length,a.length)}function Py(a){if(typeof a!="string")throw Error("Expect string value, got: "+typeof a)}function jy(a){let e=0,t,i;if(a.length===0)return e;for(t=0;t<a.length;t++)i=a.charCodeAt(t),e=(e<<5)-e+i,e|=0;return e}const Fy=Object.freeze(Object.defineProperty({__proto__:null,after:Ry,assertString:Py,before:Dy,beforeLast:Iy,camelToKebab:By,extractExtension:Fd,extractFileName:jd,extractPaths:My,hashCode:jy,isRegexpValid:Ay,lcFirst:Ly,pluralize:zy,randomString:$d,trimChars:Vy,ucFirst:Oy,uniqueId:Zd},Symbol.toStringTag,{value:"Module"}));function Ha(a){return a!==null&&typeof a=="object"}function $y(a,e){return Object.keys(a).map(t=>e(a[t],t))}function Il(a,e){return Ha(a)&&Ha(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>Il(a[t],e[t])):a===e}function Ga(a){if(Array.isArray(a)){const e=[];for(let t=0;t<a.length;t++)e[t]=Ga(a[t]);return e}else if(Ha(a)){const e={};return Object.keys(a).forEach(t=>{e[t]=Ga(a[t])}),e}else return a}function Zy(a){return Array.isArray(a)?Object.assign([],a):Ha(a)?Object.assign({},a):a}function Uy(a,e){const t={};for(const i in e)e[i]!==a[i]&&(t[i]=a[i]);return t}function Wy(a,e,t){return Object.assign({},a,{[e]:t})}function Hy(a){return Object.entries(a).forEach(([e,t])=>{t instanceof Function&&(a[e]=t.bind(a))}),a}function Gy(a,e,t){return a[e]=t,a}function Yy(a,e){return a[e]}function qy(a,e){a={...a};const t=a[e];return delete a[e],[t,a]}function Ky(a,...e){return Object.assign({},...e.map(t=>({[t]:a[t]})))}function Jy(a,...e){return e.map(t=>a[t])}function Qy(a,...e){const t=Object.assign({},a);return e.forEach(i=>delete t[i]),t}const Rl=Object.freeze(Object.defineProperty({__proto__:null,bindMethods:Hy,deepClone:Ga,deepEqual:Il,getProp:Yy,iSet:Wy,isObject:Ha,map:$y,omit:Qy,pick:Ky,pickValues:Jy,setProp:Gy,shallowClone:Zy,shallowDiff:Uy,shiftProp:qy},Symbol.toStringTag,{value:"Module"}));function Xy(a,e){const t=a.findIndex(e);if(t<0)return[];const i=(()=>{for(let l=t;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(t,i)}function Ud(a,e,t){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{i=void 0,a.apply(this,l)},e)}}const e0=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],t0=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],r0=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],n0=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Wd=(a,e)=>{let t=String(a);return typeof e=="string"||Array.isArray(e)?t=a.toLocaleString(e):e===!0&&(t=a.toLocaleString(void 0)),t};function Pl(a,e){if(a=typeof a=="bigint"?Number(a):a,!Number.isFinite(a))throw new TypeError(`Expected a finite number, got ${typeof a}: ${a}`);Object.assign(e,{bits:!1,binary:!1});const t=e.bits?e.binary?n0:r0:e.binary?t0:e0;if(e.signed&&a===0)return` 0 ${t[0]}`;const i=a<0,l=i?"-":e.signed?"+":"";if(i&&(a=-a),a<1){const p=Wd(a,e.locale);return l+p+" "+t[0]}const s=Math.min(Math.floor(e.binary?Math.log(a)/Math.log(1024):Math.log10(a)/3),t.length-1);a/=(e.binary?1024:1e3)**s,a=Number(a.toPrecision(3));const d=Wd(Number(a),e.locale),u=t[s];return l+d+" "+u}function a0(a){var e;const t=Qo.tapIf((e=r.unref(a))==null?void 0:e.querySelectorAll(".th-cell"),i=>[...i])??[];return t.map((i,l)=>{const{width:s,x:d}=i.getBoundingClientRect();return{index:l,width:s,x:d,right:d+s}}).slice(0,t.length-1)}function jl(){const a=r.reactive({x:0,y:0});function e(t){a.x=t.pageX,a.y=t.pageY}return r.onMounted(()=>window.addEventListener("mousemove",e)),r.onUnmounted(()=>window.removeEventListener("mousemove",e)),a}function Fl(a,e={}){const{delayEnter:t=0,delayLeave:i=0}=e,l=r.ref(!1);let s;const d=u=>{const p=u?t:i;s&&(clearTimeout(s),s=void 0),p?s=setTimeout(()=>l.value=u,p):l.value=u};return window&&(Ye(a,"mouseenter",()=>d(!0)),Ye(a,"mouseleave",()=>d(!1))),l}const{tapIf:o0,clamp:i0}=Qo;function l0(a,e){const t=jl(),i=Fl(e,{}),l=ty(d=>{o0(a.resizeTh,u=>{a.columnsMeta[u.index]={width:i0(d.width+d.diff,Ym,1e4)}})},()=>{a.resize=!1,a.resizeTh=void 0,document.body.style.cursor=""});function s(d){a.resizeTh&&(a.resize=!0,l.start({x:d.x,width:a.resizeTh.width}))}return r.watchEffect(()=>{if(!i.value){document.body.style.cursor="";return}if(a.resize)return;const d=a0(e).find(u=>Math.abs(t.x-u.right)<Gm);d?(document.body.style.cursor="col-resize",a.resizeTh=d):(a.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:s}}const Kr=(a,e)=>{const t=a.__vccOpts||a;for(const[i,l]of e)t[i]=l;return t},s0={},c0={class:"add-column-btn"};function d0(a,e){return r.openBlock(),r.createElementBlock("div",c0,e[0]||(e[0]=[r.createElementVNode("div",null,null,-1)]))}const u0=Kr(s0,[["render",d0]]),g0={},p0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f0(a,e){return r.openBlock(),r.createElementBlock("svg",p0,e[0]||(e[0]=[r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),r.createTextVNode(),r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const h0=Kr(g0,[["render",f0]]),m0=r.defineComponent({__name:"ThCell",props:{col:{},showContextOptions:{type:Function},columnEvents:{}},emits:["delete:column","expand:column","change:sort"],setup(a,{emit:e}){const t=e,i=a;function l(u,p){const f=p.indexOf(u)+1;return p[f>=p.length?0:f]}function s(){const u=i.columnEvents??[];if(!i.showContextOptions){console.warn("inject showContextOptions interface for the table");return}const p=Km.filter(f=>u.includes(f.value));p.length&&i.showContextOptions(p,f=>{t(f,i.col.name)})}function d(u,p){t("change:sort",{colName:u,direction:l(p??"DESC",["DESC","ASC"])})}return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["cell th-cell",{"justify-center":u.col.justify}]),onContextmenu:s},[u.col.valueType?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(u.col.valueType)},null,2)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(u.col.text)+" ",1),u.col.sort?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["sort",u.col.sort.direction]),onClick:p[0]||(p[0]=r.withModifiers(()=>{var f;return d(u.col.name,(f=u.col.sort)==null?void 0:f.direction)},["stop"]))},null,2)):r.createCommentVNode("",!0)],34))}}),y0=r.defineComponent({__name:"TRow",props:{index:{},visible:{type:Boolean},height:{}},setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",{class:"t-row",style:r.normalizeStyle(`height: ${e.height}px`)},[e.visible?r.renderSlot(e.$slots,"default",{key:0}):r.createCommentVNode("",!0)],4))}});function Hd(a){return typeof a=="number"||typeof a=="string"?a:String(a)}function b0(a,e,t){for(const[i,l]of Object.entries(a)){const s=Hd(e[i]),d=Hd(t[i]),u=l==="DESC"?-1:1;if(s!==d)return(s>d?1:-1)*u}return 0}function Gd(a){return a()}function $l(a,e){if(a==null)throw Error(e);return a}function Zl(a){let e=!1;return function(...t){e||(requestAnimationFrame(()=>{a(...t),e=!1}),e=!0)}}function Yd(a){return new Promise(e=>setTimeout(e,a))}function qd(a,e){const t=setTimeout(a,e);return()=>{clearTimeout(t)}}function Kd(a,e){return a=Math.ceil(a),e=Math.floor(e),Math.floor(Math.random()*(e-a))+a}function v0(a){let e="";for(let t=0;t<a;t++)e+=String.fromCharCode(Kd(65,91));return e}function Jd(a){return function(e){return 1-a(1-e)}}function w0(a){return function(e){return e<.5?a(2*e)/2:(2-a(2*(1-e)))/2}}function Qd(a){const{duration:e,draw:t,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=(u-l)/e;(p>1||s)&&(p=1);const f=i(p);t(f),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function x0(a){const{getFraction:e,draw:t,timing:i}=a,l=performance.now();let s=!1;return requestAnimationFrame(function d(u){let p=e(u-l);if(s)return;p>1&&(p=1);const f=i(p);t(f),p<1&&requestAnimationFrame(d)}),function(){s=!0}}function Xd(a,e){let t=-1;return(...i)=>{t!==-1&&(clearTimeout(t),t=-1),t=window.setTimeout(()=>a(...i),e)}}function Ul(a,e,t=!0){let i=0,l;return function(...s){l=()=>{a.apply(this,s),i=new Date().getTime()+e,l=null,t&&setTimeout(()=>{l&&l()},e)},new Date().getTime()>i&&l()}}function _0(a){return a.map(e=>({text:String(e),value:e}))}function Kn(a){return a.map(e=>({label:"label"in e?e.label:e.text,value:e.value,description:e.description}))}const Wl=40,k0=r.defineComponent({__name:"index",props:{settings:{}},emits:["click:cell","delete:row","delete:column","change:sort","update:value"],setup(a){const{tapIf:e,tap:t}=Qo,{uniqueId:i}=Fy,l=a,s=r.reactive({rowIndex:-1,columnsMeta:{},resize:!1,resizeTh:void 0,bodyHeight:0,scrollTop:0}),d=r.ref(),u=r.ref(),p=r.ref(),f=()=>{e(p.value,U=>{s.bodyHeight=U.getBoundingClientRect().height})},m=r.computed(()=>l.settings.autoLastColumn?[...l.settings.columns,{name:i(),text:"_"}]:l.settings.columns),_=r.computed(()=>{const{columnsMeta:U}=s,I=r.unref(m),Z=Object.keys(U).length;return I.map((V,T)=>T==I.length-1?Z?"minmax(100px, 1fr)":V.width??"minmax(100px, 1fr)":U[T]?U[T].width+"px":V.width??"140px").join(" ")}),E=r.computed(()=>({gridColumn:"1 / "+r.unref(m).length+1})),B=r.computed(()=>r.unref(m).reduce((U,I)=>(U[I.name]=I.justify?"justify-"+I.justify:"",U),{})),M=r.computed(()=>{const U=r.unref(m),I=l.settings.rows.slice(),{bodyHeight:Z,scrollTop:V}=s;if(l.settings.selfSort){const W=U.reduce((P,G)=>{var oe;return(oe=G.sort)!=null&&oe.direction&&(P[G.name]=G.sort.direction),P},{});Object.keys(W).length&&I.sort((P,G)=>b0(W,P,G))}const T=160;let D=0;return I.map((W,P)=>{const G=t(W.__height?Number(W.__height):Wl,ie=>!Number.isFinite(ie)||ie<Wl?Wl:ie),oe=U.map(ie=>{const J=ie.name;return{colName:J,rowIndex:P,value:W[J],class:B.value[J]+(P===s.rowIndex?" hovered":""),slot:ie.slot,editable:ie.editable}}),de=Z?V<D+G+T&&D<Z+V+T:!1;return D+=G+1,{visible:de,height:G,cells:oe}})}),{mouseDown:C}=l0(s,d);function z(){e(u.value,U=>{var I;U.scrollLeft=((I=p.value)==null?void 0:I.scrollLeft)??0})}const v=Ul(()=>{var U;s.scrollTop=((U=p.value)==null?void 0:U.scrollTop)??0},10),O=()=>{z(),v()};function j(U){const I=m.value.findIndex(V=>V.name===U);if(I<0)return;const Z=l.settings.rows.reduce((V,T)=>{const D=9.52*Qo.call(()=>{const W=T[U];return W&&typeof W=="object"&&"segments"in W?W.segments.map(P=>P.sequence).join("").length:String(W??"").length});return D>V?D:V},0);s.columnsMeta[I]={width:Z}}return r.onMounted(()=>{r.nextTick(f)}),r.watchPostEffect(()=>{r.unref(l.settings),r.nextTick(f)}),Ye(window,"resize",()=>r.nextTick(f)),(U,I)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:d,class:"grid-table",onMousedown:I[5]||(I[5]=(...Z)=>r.unref(C)&&r.unref(C)(...Z))},[U.settings.addColumn?(r.openBlock(),r.createBlock(u0,{key:0,onClick:r.withModifiers(U.settings.addColumn,["stop"])},null,8,["onClick"])):r.createCommentVNode("",!0),I[9]||(I[9]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:u,class:"table-head",style:r.normalizeStyle({gridTemplateColumns:_.value})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.value,(Z,V)=>(r.openBlock(),r.createBlock(m0,{key:V,col:Z,"show-context-options":U.settings.showContextOptions,"column-events":U.settings.columnEvents,"onDelete:column":I[0]||(I[0]=T=>U.$emit("delete:column",T)),"onChange:sort":I[1]||(I[1]=T=>U.$emit("change:sort",T)),"onExpand:column":I[2]||(I[2]=T=>j(T))},null,8,["col","show-context-options","column-events"]))),128))],4),I[10]||(I[10]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:p,class:"table-body",onScroll:O},[M.value.length===0?(r.openBlock(),r.createElementBlock("div",{key:0,class:"table-body__no-data",style:r.normalizeStyle(E.value)},[r.createElementVNode("div",null,[r.createVNode(h0),I[6]||(I[6]=r.createTextVNode()),I[7]||(I[7]=r.createElementVNode("div",null,"No Data To Show",-1))])],4)):r.createCommentVNode("",!0),I[8]||(I[8]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(M.value,(Z,V)=>(r.openBlock(),r.createBlock(y0,{key:V,visible:Z.visible,height:Z.height,index:V,style:r.normalizeStyle({gridTemplateColumns:_.value})},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z.cells,(T,D)=>(r.openBlock(),r.createBlock(Xm,{key:D,cell:T,"show-context-options":U.settings.showContextOptions,"cell-events":U.settings.cellEvents,onClick:r.withModifiers(W=>U.$emit("click:cell",T),["stop"]),"onDelete:row":I[3]||(I[3]=W=>U.$emit("delete:row",W)),"onUpdate:value":I[4]||(I[4]=W=>U.$emit("update:value",W))},{default:r.withCtx(()=>[T.slot?r.renderSlot(U.$slots,T.colName,r.mergeProps({key:0,ref_for:!0},T),()=>[r.createTextVNode(r.toDisplayString(T.value),1)]):r.renderSlot(U.$slots,"default",r.mergeProps({key:1,ref_for:!0},T),()=>[r.createTextVNode(r.toDisplayString(T.value),1)])]),_:2},1032,["cell","show-context-options","cell-events","onClick"]))),128))]),_:2},1032,["visible","height","index","style"]))),128))],544)],544))}}),C0={class:"context-menu"},S0=["onClick"],T0=r.defineComponent({__name:"Menu",props:{options:{}},emits:["close"],setup(a,{emit:e}){const t=e,i=l=>{l.cb(),t("close")};return(l,s)=>(r.openBlock(),r.createElementBlock("div",C0,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.options,(d,u)=>(r.openBlock(),r.createElementBlock("div",{key:u,onClick:r.withModifiers(p=>i(d),["stop"])},[r.createElementVNode("span",null,r.toDisplayString(d.text),1)],8,S0))),128))]))}}),E0=Kr(T0,[["__scopeId","data-v-12530966"]]);function Hl(a,e){a.preventDefault();const t=()=>{r.render(null,document.body)},i=r.h(E0,{options:e,onClose:()=>{t()}});r.render(i,document.body);const l=i.el;return l.style.top=a.clientY+"px",l.style.left=a.clientX+"px",document.addEventListener("click",s=>{l.contains(s.target)||t()}),t}const eu=Symbol(),Xo=()=>r.inject(eu),N0=["value"],B0={key:1},V0=r.defineComponent({__name:"BaseCellComponent",props:{modelValue:{},valueType:{},editable:{type:Boolean}},emits:["update:modelValue"],setup(a,{emit:e}){const t=e,i=a,l=r.reactive({edit:!1}),s=r.computed(()=>i.valueType),d=f=>{var m;let _=(m=f.target)==null?void 0:m.value;const E=r.unref(s),B=Ld(()=>E==="integer"?parseInt(_,10):E==="float"?Number(_):_);t("update:modelValue",B),l.edit=!1},u=r.ref(),p=f=>{!f.metaKey&&i.editable&&(l.edit=!0,requestAnimationFrame(()=>{var m,_;(_=(m=u.value)==null?void 0:m.querySelector("input"))==null||_.focus()}))};return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"baseRef",ref:u,class:r.normalizeClass(["base-cell",{"base-cell__edit":l.edit}]),onClick:p},[l.edit?(r.openBlock(),r.createElementBlock("input",{key:0,value:f.modelValue,onFocusout:m[0]||(m[0]=_=>l.edit=!1),onChange:d},null,40,N0)):(r.openBlock(),r.createElementBlock("div",B0,r.toDisplayString(f.modelValue),1))],2))}}),M0=["^data-row-index"],z0={key:0,class:"control-cell"},A0=r.defineComponent({__name:"TdCell",props:{cell:{}},setup(a){const e=a,t=Xo(),i=r.computed(()=>e.cell.column.valueType),l=f=>{qr(t.settings.value.onUpdatedRow,m=>{const _=e.cell.row,E={..._.dataRow,[e.cell.id]:f};m({..._,dataRow:E})})},s=f=>{f.metaKey&&t.selectRow(e.cell.row.primaryKey)},d=(f,m)=>{if(f.type==="contextmenu")f.preventDefault();else return;const _=t.settings??{},E=[],{onSelectedRows:B,onSelectedColumns:M}=_.value,C=t.data.selectedRows.has(m.primaryKey);B&&B.length&&(C?E.push({text:"Deselect row",cb(){t.data.selectedRows.delete(e.cell.row.primaryKey)}}):E.push({text:"Select row",cb(){t.selectRow(e.cell.row.primaryKey)}})),M&&M.length&&(E.push({text:"Select column",cb(){t.selectColumn(e.cell.column.id)}}),E.push({text:"Unselect column",cb(){t.unselectColumn(e.cell.column.id)}})),E.length&&Hl(f,E)},u=r.ref(),p=r.computed(()=>e.cell.column.component?e.cell.column.component():void 0);return(f,m)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"cellRef",ref:u,class:r.normalizeClass(["td-cell",{[f.cell.class]:!0}]),"^data-row-index":f.cell.row.index,onClick:s,onContextmenu:m[0]||(m[0]=_=>d(_,f.cell.row))},[f.cell.control?(r.openBlock(),r.createElementBlock("div",z0,r.toDisplayString(f.cell.row.index),1)):p.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p.value),{key:1,"model-value":f.cell.value,"onUpdate:modelValue":l},null,8,["model-value"])):(r.openBlock(),r.createBlock(V0,{key:2,"model-value":f.cell.value,"value-type":i.value,editable:f.cell.column.editable,"onUpdate:modelValue":l},null,8,["model-value","value-type","editable"]))],42,M0))}}),O0={},L0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D0(a,e){return r.openBlock(),r.createElementBlock("svg",L0,e[0]||(e[0]=[r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 41.5H9C7.61929 41.5 6.5 40.3807 6.5 39V24H9.5V38.5H24V41.5Z",fill:"#CFD1DB"},null,-1),r.createTextVNode(),r.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.5 9C41.5 7.61929 40.3807 6.5 39 6.5H9C7.61929 6.5 6.5 7.61929 6.5 9V19.5H9.5H28.5V38.5V41.5H39C40.3807 41.5 41.5 40.3807 41.5 39V9ZM38.5 9.5V16.5H31.5V9.5H38.5ZM38.5 38.5V19.5H31.5V38.5H38.5ZM9.5 9.5V16.5H28.5V9.5H9.5Z",fill:"#CFD1DB"},null,-1)]))}const I0=Kr(O0,[["render",D0]]),R0={class:"tr-head"},P0=r.defineComponent({__name:"TrHead",setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",R0,[r.renderSlot(e.$slots,"default")]))}});function j0(a,e){const t=e.indexOf(a)+1;return e[t>=e.length?0:t]}function F0(a,e){const t=a.findIndex(e);if(t<0)return[];const i=(()=>{for(let l=t;l<a.length;l++)if(!e(a[l],l))return l;return a.length})();return a.slice(t,i)}const $0=["^data-col-id"],Z0=r.defineComponent({__name:"ThCell",props:{col:{}},emits:["delete:column","expand:column","change:sort"],setup(a,{emit:e}){const t=e;function i(s){s.preventDefault();const d=[];d.length&&Hl(s,d)}function l(s){var d;const u=((d=s.sort)==null?void 0:d.direction)??"DESC";t("change:sort",{colId:s.id,direction:j0(u,["DESC","ASC"])})}return(s,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["cell th-cell",{"justify-center":s.col.justify,frozen:s.col.frozen}]),"^data-col-id":s.col.id,onContextmenu:i},[s.col.valueType?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(s.col.valueType)},null,2)):r.createCommentVNode("",!0),r.createTextVNode(" "+r.toDisplayString(s.col.label)+" ",1),s.col.sort?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["sort",s.col.sort.direction]),onClick:d[0]||(d[0]=r.withModifiers(()=>l(s.col),["stop"]))},null,2)):r.createCommentVNode("",!0)],42,$0))}}),U0=r.defineComponent({__name:"TrBody",props:{row:{}},setup(a){const e=r.ref(),t=()=>{r.nextTick().then(()=>{qr(e.value,i=>i.scrollLeft=0)})};return(i,l)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"trRef",ref:e,class:r.normalizeClass(["tr-body",{selected:i.row.selected}]),scroll:"no",style:r.normalizeStyle(i.row.style),onScroll:t},[r.renderSlot(i.$slots,"default")],38))}}),W0=r.defineComponent({__name:"ColumnCaret",props:{column:{}},setup(a){const e=Xo(),t=a,i=r.computed(()=>e.data.selectedColumns.has(t.column.id));return(l,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["column-caret",{selected:i.value,frozen:l.column.frozen}])},null,2))}});function H0(a){r.onMounted(()=>window.addEventListener("mouseup",a)),r.onUnmounted(()=>window.removeEventListener("mouseup",a))}function G0(a,e){let t;function i(s){t={...s}}H0(()=>{t=void 0,e()});const l=Ad(a);return Ye(window,"mousemove",s=>{t&&l({x:t.x,width:t.width,diff:s.x-t.x})}),{start:i}}const Jn=1,Y0=10,q0=30,tu=60;function K0(a){var e;const t=qr((e=r.unref(a))==null?void 0:e.querySelectorAll(".th-cell"),i=>[...i])??[];return t.map(i=>{const{width:l,x:s}=i.getBoundingClientRect(),d=i.getAttribute("data-col-id");return Dl({colId:d,width:l,x:s,right:s+l})}).slice(0,t.length-1)}function J0(a,e){const t=jl(),i=Fl(e,{}),{data:l}=a,s=G0(u=>{qr(l.resizeTh,p=>{const f=l.columns.find(m=>m.id===p.colId);f&&(f.width=Wa(u.width+u.diff,q0,1e4),a.adjustWidth())})},()=>{l.resize=!1,l.resizeTh=void 0,document.body.style.cursor=""}),d=u=>{l.resizeTh&&(l.resize=!0,s.start({x:u.x,width:l.resizeTh.width}))};return r.watchEffect(()=>{if(!i.value){document.body.style.cursor="";return}if(l.resize)return;const u=K0(e).find(p=>Math.abs(t.x-p.right)<Y0);u?(document.body.style.cursor="col-resize",l.resizeTh=u):(l.resizeTh=void 0,document.body.style.cursor="")}),{mouseDown:d}}const Q0={key:0,class:"command-menu"},X0={key:0},eb=["onClick"],tb=r.defineComponent({__name:"RowsCommandMenu",setup(a){const e=Xo(),t=r.computed(()=>e.getSelectedRows()),i=r.computed(()=>t.value.length>0),l=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedRows)??[]}),s=r.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(t.value),e.data.selectedRows.clear(),e.data.rows=[]}})));return(d,u)=>i.value?(r.openBlock(),r.createElementBlock("div",Q0,[t.value.length?(r.openBlock(),r.createElementBlock("span",X0,r.toDisplayString(t.value.length)+" rows selected",1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(p,f)=>(r.openBlock(),r.createElementBlock("span",{key:f,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,eb))),128))])):r.createCommentVNode("",!0)}}),rb={key:0,class:"command-menu"},nb={key:0},ab=["onClick"],ob=r.defineComponent({__name:"ColumnsCommandMenu",setup(a){const e=Xo(),t=r.computed(()=>e.getSelectedColumns()),i=r.computed(()=>t.value.length>0),l=r.computed(()=>{var d;return((d=e.settings)==null?void 0:d.value.onSelectedColumns)??[]}),s=r.computed(()=>l.value.map(d=>({label:d.label,cb:()=>{d.cb(t.value),e.data.selectedColumns.clear()}})));return(d,u)=>i.value?(r.openBlock(),r.createElementBlock("div",rb,[t.value.length?(r.openBlock(),r.createElementBlock("span",nb,"selected columns "+r.toDisplayString(t.value.length),1)):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),u[1]||(u[1]=r.createElementVNode("hr",null,null,-1)),u[2]||(u[2]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(p,f)=>(r.openBlock(),r.createElementBlock("span",{key:f,class:"command",onClick:r.withModifiers(p.cb,["stop"])},r.toDisplayString(p.label),9,ab))),128))])):r.createCommentVNode("",!0)}});function Jr(a,e){const t={el:void 0,x:0,y:0},i=l=>({x:l.x,y:l.y,dx:l.x-t.x,dy:l.y-t.y});Ye(document,"mousedown",l=>{l.target===r.unref(a)&&(l.stopPropagation&&l.stopPropagation(),l.preventDefault&&l.preventDefault(),t.el=r.unref(a),t.x=l.x,t.y=l.y)}),Ye(document,"mouseup",l=>{t.el&&(t.el=void 0,e({...i(l),stop:!0},t))}),Ye(document,"mousemove",l=>{t.el&&e(i(l),t)})}const ib=r.defineComponent({__name:"TScroll",props:{offset:{},windowSize:{},dataSize:{}},emits:["change:offset"],setup(a,{emit:e}){const t=e,i=a,l=r.ref(),s=r.computed(()=>i.windowSize-12),d=r.computed(()=>i.windowSize<i.dataSize),u=r.computed(()=>Math.ceil(i.offset*(s.value/i.dataSize))),p=r.computed(()=>Math.ceil(s.value*s.value/i.dataSize)),f=r.computed(()=>({top:`${u.value}px`,height:`${p.value}px`}));return Jr(l,(m,_)=>{const E=(u.value+m.dy)*i.dataSize/s.value;t("change:offset",E),_.x=m.x,_.y=m.y}),(m,_)=>(r.openBlock(),r.createElementBlock("div",{class:"t-scroll",style:r.normalizeStyle({height:`${m.windowSize}px`})},[r.createElementVNode("div",null,[d.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"handleRef",ref:l,class:"t-scroll__handle",style:r.normalizeStyle(f.value)},null,4)):r.createCommentVNode("",!0)])],4))}});function lb(a){return r.computed(()=>{const{data:e,settings:t}=a,{bodyWidth:i,scrollLeft:l}=e,s=[...e.columns],d=Zd();t.value.controlColumn&&s.unshift({id:d,label:"#",width:60,frozen:!0});let u=0;const p=s.map(m=>{const _={...m,offset:u};return u+=m.width+Jn,_}),f=p.filter(m=>m.frozen);return Xy(p,m=>m.frozen?!1:l<m.offset+m.width&&m.offset<i+l).concat(f).map(m=>({...m,style:{left:m.frozen?`${m.offset}px`:`${m.offset-e.scrollLeft}px`,width:`${m.width}px`},control:m.id===d}))})}function sb(a,e){const t=r.computed(()=>e.value.reduce((i,l)=>(i[l.id]=l.justify?"justify-"+l.justify:"",i),{}));return r.computed(()=>a.rows.map(i=>{const l=t.value,{primaryKey:s,offset:d,dataRow:u,height:p}=i,f=e.value.map(m=>({id:m.id,column:m,row:i,value:u[m.id],class:l[m.id],editable:m.editable,width:m.width,style:m.style,control:m.control}));return Dl({style:{top:`${d-a.scrollTop}px`,height:`${i.height}px`},primaryKey:s,offset:d,height:p,cells:f,selected:a.selectedRows.has(s)})}))}const cb=async(a,e)=>{const{scrollTop:t,bodyHeight:i}=a;return await Jo(0),Pd({rows:e.getRows(t,i),dataWindow:a})};function db(a){const e=r.reactive({rowIndex:-1,columns:[],pendingLoads:0,currentWindow:void 0,rows:[],resize:!1,resizeTh:void 0,dataHeight:0,bodyHeight:a.settings.height,bodyWidth:0,scrollTop:0,scrollLeft:0,selectedRows:new Set,selectedColumns:new Set});r.watch(()=>a.settings,m=>{e.columns=Ga(m.columns),e.currentWindow=void 0,m.dataSource.getHeight().then(_=>{e.dataHeight=_,f.updateBodyHeight()}).catch(_=>e.error=_)},{immediate:!0});const t=r.computed(()=>a.settings),i=r.computed(()=>e.columns.reduce((m,_)=>m+_.width+Jn,0)),l=r.computed(()=>Ll(f.data.dataHeight-f.data.bodyHeight,m=>m>0?m:0)),s=r.computed(()=>Ll(i.value-f.data.bodyWidth,m=>m>0?m:0)),d=r.computed(()=>({bodyHeight:e.bodyHeight,scrollTop:e.scrollTop,current:e.currentWindow})),u=lb({data:e,settings:t}),p=sb(e,u),f={data:e,settings:t,tableColumns:u,tableRows:p,adjustWidth:()=>{const m=e.columns.reduce((E,B)=>E+B.width+Jn,0),_=e.bodyWidth+e.scrollLeft;if(m<_){const E=e.columns[e.columns.length-1];E.width=E.width+(_-m)}},updateOffsets(m){this.updateScrollTop(e.scrollTop+m.deltaY),this.updateScrollLeft(e.scrollLeft+m.deltaX)},getSelectedRows(){return e.rows.filter(m=>e.selectedRows.has(m.primaryKey))},getSelectedColumns(){return e.columns.filter(m=>e.selectedColumns.has(m.id))},selectRow(m){e.selectedRows.add(m)},unselectRow(m){e.selectedRows.delete(m)},selectColumn(m){e.selectedColumns.add(m)},unselectColumn(m){e.selectedColumns.delete(m)},updateScrollTop(m){e.scrollTop=Wa(m,0,l.value)},updateScrollLeft(m){e.scrollLeft=Wa(m,0,s.value)},updateBodyHeight(){const{height:m}=a.settings,{dataHeight:_}=e,E=m>_?_:m;e.bodyHeight=E},updateDimensions(m){this.updateBodyHeight(),f.data.bodyWidth=m.width,f.adjustWidth(),e.rows=[],e.currentWindow=void 0}};return r.watch(d,(m,_)=>{const E=m.current;(!E||m.scrollTop<E.scrollTop||m.scrollTop+m.bodyHeight>E.bodyHeight+E.scrollTop)&&(e.currentWindow={scrollTop:m.scrollTop-tu,bodyHeight:m.bodyHeight+tu*2},cb(Ga(e.currentWindow),t.value.dataSource).then(({rows:B,dataWindow:M})=>{Il(e.currentWindow,M)&&(e.rows=B)}))},{deep:!0,immediate:!0}),r.provide(eu,f),f}const ub={class:"command-menu__container"},gb={key:0,class:"table-body__no-data"},pb={class:"carets"},Gl=r.defineComponent({__name:"TableComponent",props:{settings:{}},emits:["update:data","change:sort"],setup(a,{emit:e}){const t=e,i=a,l=db(i),s=r.computed(()=>l.data.rows.length===0),d=r.computed(()=>({height:s.value?"212px":l.data.bodyHeight+"px"}));r.watch(l.data,C=>t("update:data",C),{deep:!0}),r.watch(i,()=>m);const u=r.ref(),p=r.ref(),f=r.ref(),m=()=>{qr(f.value,C=>{l.updateDimensions(C.getBoundingClientRect())})},_=l.tableColumns,E=l.tableRows,{mouseDown:B}=J0(l,u);r.onMounted(()=>{r.nextTick(m)}),r.watchPostEffect(()=>{r.unref(i.settings),r.nextTick(m)}),Ye(window,"resize",()=>r.nextTick(m));const M=C=>{C.preventDefault(),l.updateOffsets(C)};return(C,z)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tableRef",ref:u,class:"data-table",onMousedown:z[2]||(z[2]=(...v)=>r.unref(B)&&r.unref(B)(...v))},[r.createElementVNode("div",ub,[r.createVNode(tb),z[3]||(z[3]=r.createTextVNode()),r.createVNode(ob)]),z[7]||(z[7]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"headRef",ref:p,class:"table-head"},[r.createVNode(P0,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,O)=>(r.openBlock(),r.createBlock(Z0,{key:O,col:v,style:r.normalizeStyle(v.style),"onChange:sort":z[0]||(z[0]=j=>C.$emit("change:sort",j))},null,8,["col","style"]))),128))]),_:1})],512),z[8]||(z[8]=r.createTextVNode()),r.createElementVNode("div",{ref_key:"bodyRef",ref:f,class:"table-body",style:r.normalizeStyle(d.value),onWheel:M},[s.value?(r.openBlock(),r.createElementBlock("div",gb,[r.createElementVNode("div",null,[r.createVNode(I0),z[4]||(z[4]=r.createTextVNode()),z[5]||(z[5]=r.createElementVNode("div",null,"No Data To Show",-1))])])):r.createCommentVNode("",!0),z[6]||(z[6]=r.createTextVNode()),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(E),(v,O)=>(r.openBlock(),r.createBlock(U0,{key:O,row:v},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.cells,j=>(r.openBlock(),r.createBlock(A0,{key:j.column.id+":"+O,cell:j,style:r.normalizeStyle(j.style)},null,8,["cell","style"]))),128))]),_:2},1032,["row"]))),128))],36),z[9]||(z[9]=r.createTextVNode()),r.createElementVNode("div",pb,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(_),(v,O)=>(r.openBlock(),r.createBlock(W0,{key:O,column:v,style:r.normalizeStyle(v.style),"onChange:sort":z[1]||(z[1]=j=>C.$emit("change:sort",j))},null,8,["column","style"]))),128))]),z[10]||(z[10]=r.createTextVNode()),r.createVNode(ib,{offset:r.unref(l).data.scrollTop,"window-size":r.unref(l).data.bodyHeight,"data-size":r.unref(l).data.dataHeight,"onChange:offset":r.unref(l).updateScrollTop},null,8,["offset","window-size","data-size","onChange:offset"])],544))}}),ru=new WeakMap;class fb{constructor(e,t,i){Hm(this,"dataHeight"),this.datum=e,this.resolveHeight=t,this.resolvePrimaryKey=i;const l=e.reduce((d,u,p)=>(d.indices.set(p,d.total),d.total+=this.resolveHeight(u,p)+Jn,d),{total:0,indices:new Map});this.dataHeight=l.total;const s=e.map((d,u)=>({dataRow:d,index:u,primaryKey:this.resolvePrimaryKey(d,u),offset:Ol(l.indices.get(u)),height:this.resolveHeight(d,u)}));ru.set(this,s)}get rows(){return ru.get(this)}async getHeight(){return this.dataHeight}async getRows(e,t){return F0(this.rows,i=>{const l=i.offset;return e<l+i.height&&l<t+e})}}class hb{constructor(e,t,i){this.api=e,this.rowHeight=t,this.resolvePrimaryKey=i}get height(){return this.rowHeight+Jn}async getHeight(){return await this.api.count()*this.height}async getRows(e,t){const i=Wa(Math.floor(e/this.height),0,Number.POSITIVE_INFINITY),l=Math.ceil(t+40/this.height);return(await this.api.query({offset:i,limit:l})).map((s,d)=>({dataRow:s,index:i+d,primaryKey:this.resolvePrimaryKey(s,i+d),offset:(i+d)*(this.rowHeight+Jn),height:this.rowHeight}))}}function mb(a){return Object.freeze(a)}function yb(a){return r.h(Gl,{settings:Object.freeze(a)})}function Yl(a,e){const t=new fb(a,e.resolveRowHeight,e.resolvePrimaryKey);return{...e,dataSource:t}}function bb(a,e){return r.computed(()=>{const t=r.unref(a);return Yl(t,r.unref(e))})}function vb(a,e){const t=r.computed(()=>{const l=r.unref(a);return Yl(l,r.unref(e))}),i=r.reactive({settings:t});return r.computed(()=>r.h(Gl,i))}const wb=Object.freeze(Object.defineProperty({__proto__:null,AsyncData:hb,Component:Gl,factory:yb,rawDataSettings:Yl,settings:mb,useRawData:bb,useRawDataComponent:vb},Symbol.toStringTag,{value:"Module"}));function*xb(a,e){for(const t of a)yield e(t)}function _b(a){const e=[];for(const t of a)e.push(t);return e}const ql=new Map;function kb(a){return ql.has(a)||ql.set(a,r.ref(localStorage.getItem(a))),$l(ql.get(a),"...")}function Cb(a,e){e==null?localStorage.removeItem(a):localStorage.setItem(a,e)}function nu(a){const e=kb(a);return r.watch(e,t=>Cb(a,t)),e}const Kl=new Set;window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{_b(xb(Kl.values(),e=>e(a.matches?"dark":"light")))});const Sb=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",au=r.ref(Sb),Jl=nu("theme");function ou(a){const e=r.computed(()=>Jl.value?Jl.value:au.value),t=l=>{au.value=l,a&&a(l)};function i(){Jl.value=e.value==="light"?"dark":(e.value,"light")}return r.watch(e,l=>{a&&a(r.unref(l))}),r.onMounted(()=>{Kl.add(t)}),r.onUnmounted(()=>{Kl.delete(t)}),[e,i]}const Tb=r.defineComponent({__name:"ThemeSwitcher",setup(a){const[e,t]=ou();return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-theme-switcher",r.unref(e)]),onClick:l[0]||(l[0]=(...s)=>r.unref(t)&&r.unref(t)(...s))},l[1]||(l[1]=[r.createElementVNode("div",null,null,-1)]),2))}}),Eb={class:"pl-layout-component pl-block-page"},Nb={key:0,class:"pl-block-page__title"},Bb={class:"pl-block-page__title__append"},Vb={key:1},Mb={class:"pl-block-page__body"},zb={name:"PlBlockPage"},Ab=r.defineComponent({...zb,setup(a){const e=r.useSlots();return(t,i)=>(r.openBlock(),r.createElementBlock("div",Eb,[r.unref(e).title?(r.openBlock(),r.createElementBlock("div",Nb,[r.createElementVNode("h1",null,[r.renderSlot(t.$slots,"title")]),i[0]||(i[0]=r.createTextVNode()),r.createElementVNode("div",Bb,[r.renderSlot(t.$slots,"append")])])):(r.openBlock(),r.createElementBlock("div",Vb)),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",Mb,[r.renderSlot(t.$slots,"default")])]))}}),Ob={name:"PlContainer"},Lb=r.defineComponent({...Ob,props:{width:{}},setup(a){const e=a,t=r.computed(()=>({width:e.width}));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-container pl-layout-component",style:r.normalizeStyle(t.value)},[r.renderSlot(i.$slots,"default")],4))}}),Db={name:"PlRow"},Ib=r.defineComponent({...Db,props:{wrap:{type:Boolean},alignCenter:{type:Boolean}},setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["pl-layout-component pl-row",{wrap:e.wrap,"align-center":e.alignCenter}])},[r.renderSlot(e.$slots,"default")],2))}}),Rb={class:"pl-layout-component",style:{"flex-grow":"1"}},Pb={name:"PlSpacer"},iu=r.defineComponent({...Pb,setup(a){return(e,t)=>(r.openBlock(),r.createElementBlock("div",Rb))}}),jb={name:"PlGrid"},Fb=r.defineComponent({...jb,props:{columns:{}},setup(a){const e=a,t=r.computed(()=>({gridTemplateColumns:`repeat(${e.columns}, minmax(0, 1fr))`}));return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:"pl-layout-component pl-grid",style:r.normalizeStyle(t.value)},[r.renderSlot(i.$slots,"default")],4))}}),$b={key:0,class:"pl-alert__icon"},Zb={class:"pl-alert__main"},Ub={key:0},Wb={class:"pl-alert__main__text"},Hb={name:"PlAlert"},Gb=r.defineComponent({...Hb,props:{modelValue:{type:Boolean,default:!0},type:{default:void 0},label:{default:void 0},icon:{type:Boolean,default:void 0},closeable:{type:Boolean,default:void 0},monospace:{type:Boolean,default:void 0},whiteSpacePre:{type:Boolean,default:void 0},maxHeight:{default:void 0}},emits:["update:modelValue"],setup(a){const e={success:"success",warn:"warning",info:"edit",error:"error"};return(t,i)=>t.modelValue?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["pl-alert",[{monospace:t.monospace,whiteSpacePre:t.whiteSpacePre},t.type?`pl-alert__${t.type}`:""]]),style:r.normalizeStyle({maxHeight:t.maxHeight})},[t.icon&&t.type?(r.openBlock(),r.createElementBlock("div",$b,[r.createElementVNode("div",{class:r.normalizeClass(`icon-24 icon-${e[t.type]}`)},null,2)])):r.createCommentVNode("",!0),i[2]||(i[2]=r.createTextVNode()),r.createElementVNode("div",Zb,[t.label?(r.openBlock(),r.createElementBlock("label",Ub,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0),i[1]||(i[1]=r.createTextVNode()),r.createElementVNode("div",Wb,[r.renderSlot(t.$slots,"default")])]),i[3]||(i[3]=r.createTextVNode()),t.closeable?(r.openBlock(),r.createElementBlock("div",{key:1,class:"pl-alert__close-btn","aria-label":"Close alert",role:"button",onClick:i[0]||(i[0]=l=>t.$emit("update:modelValue",!1))})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)}}),Ya=r.defineComponent({__name:"MaskIcon16",props:{name:{},size:{}},setup(a){const e=a,t=r.computed(()=>e.size==="large"?"--mask-size: 24px":""),i=r.computed(()=>`mask-16 mask-${e.name}`);return(l,s)=>(r.openBlock(),r.createElementBlock("i",{style:r.normalizeStyle(t.value),class:r.normalizeClass(i.value)},null,6))}});function lu(a){function e(t){const i=t.currentTarget,l=document.createElement("span"),s=Math.max(i.clientWidth,i.clientHeight),d=s/2;l.style.width=l.style.height=`${s}px`,l.style.left=`${t.clientX-i.offsetLeft-d}px`,l.style.top=`${t.clientY-i.offsetTop-d}px`,l.classList.add("ripple");const u=i.getElementsByClassName("ripple")[0];u&&u.remove(),i.appendChild(l)}r.onMounted(()=>{var t;(t=a.value)==null||t.addEventListener("click",e)})}const Yb={key:0},qb={inheritAttrs:!1},ei=r.defineComponent({...qb,__name:"BtnBase",props:{loading:{type:Boolean},small:{type:Boolean},large:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a,t=r.ref(),i=r.computed(()=>e.small||e.size==="small"),l=r.computed(()=>e.large||e.size==="large");return lu(t),(s,d)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btn",ref:t,tabindex:"0",class:{loading:s.loading,small:i.value,large:l.value,round:s.round,reverse:s.reverse,justifyCenter:s.justifyCenter,[s.$attrs.class+""]:!0}},{...s.$attrs,disabled:!!s.$attrs.disabled||s.loading}),[s.round?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",Yb,[r.renderSlot(s.$slots,"default")])),d[0]||(d[0]=r.createTextVNode()),s.loading?(r.openBlock(),r.createBlock(Ya,{key:1,name:"loading",size:s.size},null,8,["size"])):s.icon?(r.openBlock(),r.createBlock(Ya,{key:2,name:s.icon,size:s.size},null,8,["name","size"])):r.createCommentVNode("",!0)],16))}}),Kb={name:"PlBtnPrimary"},Ql=r.defineComponent({...Kb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(ei,r.mergeProps({class:"pl-btn-primary"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Jb={name:"PlBtnAccent"},Qb=r.defineComponent({...Jb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(ei,r.mergeProps({class:"pl-btn-accent"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Xb={name:"PlBtnDanger"},ev=r.defineComponent({...Xb,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(ei,r.mergeProps({class:"pl-btn-danger"},e),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),tv={name:"PlBtnSecondary"},Xl=r.defineComponent({...tv,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(a){const e=a;return(t,i)=>(r.openBlock(),r.createBlock(ei,r.mergeProps(e,{class:"pl-btn-secondary"}),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),rv={key:0},nv={name:"PlBtnGhost"},es=r.defineComponent({...nv,props:{loading:{type:Boolean},size:{default:void 0},round:{type:Boolean},icon:{default:void 0},reverse:{type:Boolean},justifyCenter:{type:Boolean,default:!1}},setup(a){const e=a,t=r.computed(()=>e.size==="small"),i=r.computed(()=>e.size==="large"),l=r.ref(),s=r.useSlots();return lu(l),(d,u)=>(r.openBlock(),r.createElementBlock("button",r.mergeProps({ref_key:"btnRef",ref:l,tabindex:"0",class:["ui-btn-ghost",{loading:d.loading,small:t.value,large:i.value,round:d.round,reverse:d.reverse,justifyCenter:d.justifyCenter,[d.$attrs.class+""]:!0}]},{...d.$attrs,disabled:!!d.$attrs.disabled||d.loading}),[r.unref(s).default&&!d.round?(r.openBlock(),r.createElementBlock("span",rv,[r.renderSlot(d.$slots,"default")])):r.createCommentVNode("",!0),u[0]||(u[0]=r.createTextVNode()),d.loading?(r.openBlock(),r.createBlock(Ya,{key:1,name:"loading",size:d.size},null,8,["size"])):d.icon?(r.openBlock(),r.createBlock(Ya,{key:2,name:d.icon,size:d.size},null,8,["name","size"])):r.createCommentVNode("",!0),u[1]||(u[1]=r.createTextVNode()),r.renderSlot(d.$slots,"append")],16))}}),av=r.defineComponent({__name:"PlBtnLink",props:{loading:{type:Boolean},size:{},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean},disabled:{type:Boolean}},setup(a){const e=a,t=r.ref(!1);return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-btn-link",{disabled:i.disabled,loading:i.loading,hover:t.value}]),onMouseover:l[0]||(l[0]=s=>t.value=!0),onMouseleave:l[1]||(l[1]=s=>t.value=!1)},[r.createVNode(Xl,r.mergeProps({round:"",hover:t.value},e),null,16,["hover"]),l[2]||(l[2]=r.createTextVNode()),r.renderSlot(i.$slots,"default")],34))}});function su(a,e){const t=Zl(()=>{if(a.value){const{scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p}=document.documentElement,f=a.value.getBoundingClientRect();e({scrollTop:i,scrollLeft:l,scrollHeight:s,scrollWidth:d,clientHeight:u,clientWidth:p,offsetY:i+f.y,offsetX:l+f.x,top:f.top,right:f.right,bottom:f.bottom,left:f.left,width:f.width,height:f.height,x:f.x,y:f.y})}});r.onMounted(t),Ye(window,"scroll",t,!0),Ye(window,"resize",t,!0),Ye(window,"adjust",t,!0)}function ov(a,e){const t=r.ref();return su(a,i=>{t.value=i}),r.computed(()=>{const i=r.unref(t),l=r.unref(e),s=l.position??"top",d=l.gap??8;if(!i)return"";const u=i.offsetY+Math.floor(i.height/2),p=i.offsetX+Math.floor(i.width/2);return s==="top-left"?`left: ${i.offsetX}px; top: ${i.offsetY-d}px;`:s==="top"?`left: ${p}px; top: ${i.offsetY-d}px;`:s==="right"?`left: ${i.offsetX+i.width+d}px; top: ${u}px;`:s==="left"?`right: ${i.scrollWidth-i.x+d}px; top: ${u}px;`:""})}function ti(a,e){return e(a)}function it(a,e){if(a!=null)return e(a)}function iv(a){return Array.isArray(a)?a:[a]}function lv(a,e,...t){t.forEach(i=>{a[i]=e[i]})}function ri(a,e){Ye(document,"click",t=>{document.contains(t.target)&&(iv(a).map(i=>i.value).filter(i=>!!i).some(i=>i==null?void 0:i.contains(t.target))||e())})}const sv={},cv={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dv(a,e){return r.openBlock(),r.createElementBlock("svg",cv,e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.00222 8.00933L0 4.00711L4.00222 0.00488281L4.00222 8.00933Z",fill:"#24223D"},null,-1)]))}const uv=Kr(sv,[["render",dv]]),ts=new Map,gv={name:"PlTooltip"},$t=r.defineComponent({...gv,props:{openDelay:{default:100},closeDelay:{default:1e3},position:{default:"top"},hide:{type:Boolean},gap:{default:8},element:{default:"div"}},emits:["tooltip:close"],setup(a,{emit:e}){const t=e,i=Symbol(),l=a,s=r.reactive({open:!1,over:!1,tooltipOpen:!1,key:Symbol()});ts.set(i,()=>f()),r.watch(()=>s.open,C=>{requestAnimationFrame(()=>{s.tooltipOpen=C})});let d=()=>{};const u=Ul(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),p=()=>{s.open=!0;for(let[C,z]of ts.entries())C!==i&&z()},f=()=>{s.open=!1,t("tooltip:close")},m=async()=>{l.hide||(u(),s.over=!0,d(),await Yd(100),s.over&&p())},_=()=>{s.over=!1,d=qd(()=>{s.over||f()},l.closeDelay)};r.watch(()=>l.hide,C=>{C&&f()});const E=r.ref(),B=r.ref(),M=ov(E,r.toRef(l));return ri([E,B],()=>f()),r.onUnmounted(()=>{ts.delete(i)}),(C,z)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(C.element),r.mergeProps(C.$attrs,{ref_key:"rootRef",ref:E,onClick:m,onMouseover:m,onMouseleave:_}),{default:r.withCtx(()=>[r.renderSlot(C.$slots,"default"),z[1]||(z[1]=r.createTextVNode()),C.$slots.tooltip&&s.open?(r.openBlock(),r.createBlock(r.Teleport,{key:0,to:"body"},[r.createVNode(r.Transition,{name:"tooltip-transition"},{default:r.withCtx(()=>[s.tooltipOpen?(r.openBlock(),r.createElementBlock("div",{key:0,class:"pl-tooltip__container",style:r.normalizeStyle(r.unref(M))},[r.createElementVNode("div",{ref_key:"tooltip",ref:B,class:r.normalizeClass(["pl-tooltip",C.position]),onMouseover:m,onMouseleave:_},[r.createElementVNode("div",null,[r.renderSlot(C.$slots,"tooltip")]),z[0]||(z[0]=r.createTextVNode()),r.createVNode(uv)],34)],4)):r.createCommentVNode("",!0)]),_:3})])):r.createCommentVNode("",!0)]),_:3},16))}}),pv={},fv={class:"inner-border"};function hv(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",fv,[r.renderSlot(a.$slots,"default")])}const mv=Kr(pv,[["render",hv]]),yv={key:0},bv=["tabindex","onKeydown","onClick"],vv={key:1,class:"ui-btn-group__helper"},wv={key:2,class:"ui-btn-group__error"},xv={name:"PlBtnGroup"},_v=r.defineComponent({...xv,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean},helper:{},error:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=u=>i("update:modelValue",u),s=a,d=r.computed(()=>s.options.map(u=>({label:"label"in u?u.label:u.text,value:u.value})));return(u,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ui-btn-group",{disabled:u.disabled}])},[u.label?(r.openBlock(),r.createElementBlock("label",yv,[r.createElementVNode("span",null,r.toDisplayString(u.label),1),p[0]||(p[0]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:0,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(u.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),p[1]||(p[1]=r.createTextVNode()),r.createVNode(mv,{class:"ui-btn-group__container"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value,(f,m)=>(r.openBlock(),r.createElementBlock("div",{key:m,class:r.normalizeClass(["ui-btn-group__option",{active:u.modelValue===f.value}]),tabindex:u.modelValue===f.value||u.disabled?void 0:0,onKeydown:r.withKeys(_=>l(f.value),["enter"]),onClick:_=>l(f.value)},r.toDisplayString(f.label),43,bv))),128))]),_:1}),p[2]||(p[2]=r.createTextVNode()),u.helper?(r.openBlock(),r.createElementBlock("div",vv,r.toDisplayString(u.helper),1)):u.error?(r.openBlock(),r.createElementBlock("div",wv,r.toDisplayString(u.error),1)):r.createCommentVNode("",!0)],2))}}),kv={inheritAttrs:!1},Cv={class:"double-contour"};function Sv(a,e,t,i,l,s){return r.openBlock(),r.createElementBlock("div",Cv,[r.createElementVNode("div",r.normalizeProps(r.guardReactiveProps(a.$attrs)),[r.renderSlot(a.$slots,"default")],16)])}const Qn=Kr(kv,[["render",Sv]]);function cu(a){r.onMounted(a),r.onUpdated(a)}const rs=new WeakMap,ns=new ResizeObserver(a=>{for(const e of a)it(rs.get(e.target),t=>t(e))});function du(a,e){rs.set(a,e),ns.unobserve(a),ns.observe(a)}function uu(a){ns.unobserve(a),rs.delete(a)}const Tv=8,gu=4;function Cn(a,e="label"){const t=new Set;cu(()=>{it(a==null?void 0:a.value,i=>{const l=i.querySelector(e);l&&(t.add(l),du(l,()=>{const s=Gd(()=>l.getBoundingClientRect().width+ti(Tv,d=>Number.isNaN(d)?gu:d+gu));i.style.getPropertyValue("--label-offset-right-x")!==`${s}px`&&i.style.setProperty("--label-offset-right-x",`${s}px`)}))})}),r.onBeforeUnmount(()=>{Array.from(t.values()).map(i=>uu(i))})}function Ev(a,e){const t=[];return e&&e.length>0&&e.forEach(i=>{const l=i(a);typeof l=="string"&&t.push(l)}),{isValid:t.length===0,errors:t}}function pu(a,e){return r.computed(()=>Ev(a.value,e))}const Nv={class:"ui-text-field__envelope"},Bv={key:0,ref:"label"},Vv={key:0,class:"required-icon"},Mv={key:1,class:"ui-text-field__prefix"},zv=["disabled","placeholder"],Av={class:"ui-text-field__append"},Ov={key:0,class:"ui-text-field__error"},Lv={key:1,class:"ui-text-field__helper"},Dv={name:"PlTextField"},fu=r.defineComponent({...Dv,props:{modelValue:{},label:{},clearable:{type:[Boolean,Function]},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.ref(void 0),d=r.ref(),u=r.computed({get(){return l.modelValue??""},set(M){i("update:modelValue",M)}}),p=()=>{l.clearable&&i("update:modelValue",l.clearable===!0?"":l.clearable())},f=pu(u,l.rules||[]),m=r.computed(()=>l.clearable?l.clearable===!0?l.modelValue==="":l.modelValue===l.clearable():l.modelValue===""),_=r.computed(()=>!m.value),E=r.computed(()=>{const M=[];return l.error&&M.push(l.error),f.value.isValid||M.push(...f.value.errors),M}),B=r.computed(()=>E.value.length>0);return Cn(s),(M,C)=>(r.openBlock(),r.createElementBlock("div",Nv,[r.createElementVNode("div",{ref_key:"rootRef",ref:s,class:r.normalizeClass(["ui-text-field",{error:B.value,disabled:M.disabled,dashed:M.dashed,nonEmpty:_.value}])},[M.label?(r.openBlock(),r.createElementBlock("label",Bv,[M.required?(r.openBlock(),r.createElementBlock("i",Vv)):r.createCommentVNode("",!0),C[1]||(C[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(M.label),1),C[2]||(C[2]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:1,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(M.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),C[4]||(C[4]=r.createTextVNode()),M.prefix?(r.openBlock(),r.createElementBlock("div",Mv,r.toDisplayString(M.prefix),1)):r.createCommentVNode("",!0),C[5]||(C[5]=r.createTextVNode()),r.withDirectives(r.createElementVNode("input",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":C[0]||(C[0]=z=>u.value=z),disabled:M.disabled,placeholder:M.placeholder||"...",type:"text",spellcheck:"false"},null,8,zv),[[r.vModelText,u.value]]),C[6]||(C[6]=r.createTextVNode()),r.createElementVNode("div",Av,[M.clearable&&_.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"icon icon--clear",onClick:p})):r.createCommentVNode("",!0),C[3]||(C[3]=r.createTextVNode()),r.renderSlot(M.$slots,"append")]),C[7]||(C[7]=r.createTextVNode()),r.createVNode(Qn,{class:"ui-text-field__contour"})],2),C[8]||(C[8]=r.createTextVNode()),B.value?(r.openBlock(),r.createElementBlock("div",Ov,r.toDisplayString(E.value.join(" ")),1)):M.helper?(r.openBlock(),r.createElementBlock("div",Lv,r.toDisplayString(M.helper),1)):r.createCommentVNode("",!0)]))}}),Iv={class:"ui-text-area__envelope"},Rv={key:0,ref:"label"},Pv={key:0,class:"required-icon"},jv=["readonly","rows","disabled","placeholder"],Fv={class:"ui-text-area__append"},$v={key:0,class:"ui-text-area__error"},Zv={key:1,class:"ui-text-area__helper"},Uv={name:"PlTextArea"},Wv=r.defineComponent({...Uv,props:{modelValue:{},label:{},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},dashed:{type:Boolean},rows:{},autogrow:{type:Boolean},rules:{}},emits:["update:modelValue"],setup(a,{emit:e}){const t=r.useSlots(),i=e,l=a,s=r.ref(),d=r.ref(),u=r.computed({get(){return l.modelValue??""},set(B){i("update:modelValue",B)}}),p=r.computed(()=>!!l.modelValue),f=pu(u,l.rules||[]);Cn(s);const m=r.computed(()=>{const B=[];return l.error&&B.push(l.error),B.push(...f.value.errors),B}),_=r.computed(()=>m.value.length>0),E=()=>{if(!l.autogrow)return;const B=d.value;B&&(B.style.height="auto",B.style.height=`${B.scrollHeight}px`)};return r.onMounted(()=>{E()}),(B,M)=>(r.openBlock(),r.createElementBlock("div",Iv,[r.createElementVNode("div",{ref_key:"root",ref:s,class:r.normalizeClass(["ui-text-area",{error:_.value,disabled:B.disabled,dashed:B.dashed,nonEmpty:p.value}])},[B.label?(r.openBlock(),r.createElementBlock("label",Rv,[B.required?(r.openBlock(),r.createElementBlock("i",Pv)):r.createCommentVNode("",!0),M[1]||(M[1]=r.createTextVNode()),r.createElementVNode("span",null,r.toDisplayString(B.label),1),M[2]||(M[2]=r.createTextVNode()),r.unref(t).tooltip?(r.openBlock(),r.createBlock(r.unref($t),{key:1,class:"info",position:"top"},{tooltip:r.withCtx(()=>[r.renderSlot(B.$slots,"tooltip")]),_:3})):r.createCommentVNode("",!0)],512)):r.createCommentVNode("",!0),M[3]||(M[3]=r.createTextVNode()),r.withDirectives(r.createElementVNode("textarea",{ref_key:"input",ref:d,"onUpdate:modelValue":M[0]||(M[0]=C=>u.value=C),readonly:B.readonly,rows:B.rows,disabled:B.disabled,placeholder:B.placeholder??"...",spellcheck:"false",onInput:E},null,40,jv),[[r.vModelText,u.value]]),M[4]||(M[4]=r.createTextVNode()),r.createElementVNode("div",Fv,[r.renderSlot(B.$slots,"append")]),M[5]||(M[5]=r.createTextVNode()),r.createVNode(Qn,{class:"ui-text-area__contour"})],2),M[6]||(M[6]=r.createTextVNode()),_.value?(r.openBlock(),r.createElementBlock("div",$v,r.toDisplayString(m.value.join(" ")),1)):B.helper?(r.openBlock(),r.createElementBlock("div",Zv,r.toDisplayString(B.helper),1)):r.createCommentVNode("",!0)]))}});function hu(a,e){const t=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+t&&l>t}function mu(a,e){const t=a.scrollTop,i=a.getBoundingClientRect().height,l=e.offsetTop,s=e.getBoundingClientRect().height;return l+s<i+t?"ceil":l>t?"floor":"visible"}function ni(a,e,t={}){const i=a.scrollTop,l=a.getBoundingClientRect().height,s=e.getBoundingClientRect().height,d=e.offsetTop,u=mu(a,e);if(u==="visible")return;const p=f=>{const m=u==="floor"?d-(l-s):d;a.scrollTop=i+f*(m-i)};hu(a,e)||Qd({duration:t.duration||100,timing:Jd(f=>f),draw:p})}function as(a,e,t,i){return a.addEventListener(e,t,i),function(){a.removeEventListener(e,t)}}function Hv(a,e){const t=e.getBoundingClientRect();return a.x<t.x||a.x>t.x+t.width||a.y<t.y||a.y>t.y+t.height}function yu(a){return a!==null&&typeof a=="object"}function tr(a,e){return yu(a)&&yu(e)?Object.keys(a).length!==Object.keys(e).length?!1:Object.keys(a).every(t=>tr(a[t],e[t])):a===e}function os(a,e){return a.some(t=>tr(t,e))}const Gv=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
18
18
  <path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 4.5H4.5L4.5 19.5H19.5V4.5ZM4.5 3C3.67157 3 3 3.67157 3 4.5V19.5C3 20.3284 3.67157 21 4.5 21H19.5C20.3284 21 21 20.3284 21 19.5V4.5C21 3.67157 20.3284 3 19.5 3H4.5Z" fill="#110529"/>
19
19
  </svg>
20
20
  `,Yv=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -1 +1 @@
1
- {"version":3,"file":"aggrid.d.ts","sourceRoot":"","sources":["../../src/aggrid.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,KAAK,EAAe,MAAM,4BAA4B,CAAC;AAErE,wBAAgB,cAAc,SAmB7B;AAED,eAAO,MAAM,WAAW,EAAE,KA4BxB,CAAC"}
1
+ {"version":3,"file":"aggrid.d.ts","sourceRoot":"","sources":["../../src/aggrid.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,KAAK,EAAe,MAAM,4BAA4B,CAAC;AAErE,wBAAgB,cAAc,SAmB7B;AAED,eAAO,MAAM,WAAW,EAAE,KA6BxB,CAAC"}